@flowdot.ai/cli 1.1.0 → 1.1.2

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.
package/dist/ui/index.js CHANGED
@@ -1,73 +1,203 @@
1
- var jO=Object.create;var Op=Object.defineProperty;var FO=Object.getOwnPropertyDescriptor;var qO=Object.getOwnPropertyNames;var UO=Object.getPrototypeOf,GO=Object.prototype.hasOwnProperty;var vt=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var S=(e,t)=>()=>(e&&(t=e(e=0)),t);var w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Np=(e,t)=>{for(var r in t)Op(e,r,{get:t[r],enumerable:!0})},zO=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of qO(t))!GO.call(e,o)&&o!==r&&Op(e,o,{get:()=>t[o],enumerable:!(n=FO(t,o))||n.enumerable});return e};var kr=(e,t,r)=>(r=e!=null?jO(UO(e)):{},zO(t||!e||!e.__esModule?Op(r,"default",{value:e,enumerable:!0}):r,e));function $i(e,t){return function(){return e.apply(t,arguments)}}var Dp=S(()=>{"use strict"});function Oi(e){return e!==null&&!vs(e)&&e.constructor!==null&&!vs(e.constructor)&&ur(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}function hN(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&iw(e.buffer),t}function kN(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}function Mi(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),ws(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Oi(e))return;let s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length,a;for(n=0;n<i;n++)a=s[n],t.call(null,e[a],a,e)}}function cw(e,t){if(Oi(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}function Lp(){let{caseless:e,skipUndefined:t}=lw(this)&&this||{},r={},n=(o,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let i=e&&cw(r,s)||s;jc(r[i])&&jc(o)?r[i]=Lp(r[i],o):jc(o)?r[i]=Lp({},o):ws(o)?r[i]=o.slice():(!t||!vs(o))&&(r[i]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&Mi(arguments[o],n);return r}function JN(e){return!!(e&&ur(e.append)&&e[sw]==="FormData"&&e[Fc])}var mN,jp,Fc,sw,qc,Qr,Uc,ws,vs,iw,gN,ur,aw,Ni,yN,jc,vN,wN,xN,bN,_N,SN,EN,TN,rw,nw,RN,IN,PN,AN,CN,$N,ON,Io,lw,NN,MN,DN,LN,jN,FN,qN,UN,GN,zN,BN,ow,HN,uw,VN,WN,KN,YN,XN,QN,ZN,pw,eM,tM,b,et=S(()=>{"use strict";Dp();({toString:mN}=Object.prototype),{getPrototypeOf:jp}=Object,{iterator:Fc,toStringTag:sw}=Symbol,qc=(e=>t=>{let r=mN.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Qr=e=>(e=e.toLowerCase(),t=>qc(t)===e),Uc=e=>t=>typeof t===e,{isArray:ws}=Array,vs=Uc("undefined");iw=Qr("ArrayBuffer");gN=Uc("string"),ur=Uc("function"),aw=Uc("number"),Ni=e=>e!==null&&typeof e=="object",yN=e=>e===!0||e===!1,jc=e=>{if(qc(e)!=="object")return!1;let t=jp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(sw in e)&&!(Fc in e)},vN=e=>{if(!Ni(e)||Oi(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},wN=Qr("Date"),xN=Qr("File"),bN=e=>!!(e&&typeof e.uri<"u"),_N=e=>e&&typeof e.getParts<"u",SN=Qr("Blob"),EN=Qr("FileList"),TN=e=>Ni(e)&&ur(e.pipe);rw=kN(),nw=typeof rw.FormData<"u"?rw.FormData:void 0,RN=e=>{let t;return e&&(nw&&e instanceof nw||ur(e.append)&&((t=qc(e))==="formdata"||t==="object"&&ur(e.toString)&&e.toString()==="[object FormData]"))},IN=Qr("URLSearchParams"),[PN,AN,CN,$N]=["ReadableStream","Request","Response","Headers"].map(Qr),ON=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");Io=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,lw=e=>!vs(e)&&e!==Io;NN=(e,t,r,{allOwnKeys:n}={})=>(Mi(t,(o,s)=>{r&&ur(o)?Object.defineProperty(e,s,{value:$i(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),MN=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),DN=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},LN=(e,t,r,n)=>{let o,s,i,a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!n||n(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=r!==!1&&jp(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},jN=(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},FN=e=>{if(!e)return null;if(ws(e))return e;let t=e.length;if(!aw(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},qN=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&jp(Uint8Array)),UN=(e,t)=>{let n=(e&&e[Fc]).call(e),o;for(;(o=n.next())&&!o.done;){let s=o.value;t.call(e,s[0],s[1])}},GN=(e,t)=>{let r,n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},zN=Qr("HTMLFormElement"),BN=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),ow=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),HN=Qr("RegExp"),uw=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};Mi(r,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(n[s]=i||o)}),Object.defineProperties(e,n)},VN=e=>{uw(e,(t,r)=>{if(ur(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let n=e[r];if(ur(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+"'")})}})},WN=(e,t)=>{let r={},n=o=>{o.forEach(s=>{r[s]=!0})};return ws(e)?n(e):n(String(e).split(t)),r},KN=()=>{},YN=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;XN=e=>{let t=new Array(10),r=(n,o)=>{if(Ni(n)){if(t.indexOf(n)>=0)return;if(Oi(n))return n;if(!("toJSON"in n)){t[o]=n;let s=ws(n)?[]:{};return Mi(n,(i,a)=>{let c=r(i,o+1);!vs(c)&&(s[a]=c)}),t[o]=void 0,s}}return n};return r(e,0)},QN=Qr("AsyncFunction"),ZN=e=>e&&(Ni(e)||ur(e))&&ur(e.then)&&ur(e.catch),pw=((e,t)=>e?setImmediate:t?((r,n)=>(Io.addEventListener("message",({source:o,data:s})=>{o===Io&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Io.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ur(Io.postMessage)),eM=typeof queueMicrotask<"u"?queueMicrotask.bind(Io):typeof process<"u"&&process.nextTick||pw,tM=e=>e!=null&&ur(e[Fc]),b={isArray:ws,isArrayBuffer:iw,isBuffer:Oi,isFormData:RN,isArrayBufferView:hN,isString:gN,isNumber:aw,isBoolean:yN,isObject:Ni,isPlainObject:jc,isEmptyObject:vN,isReadableStream:PN,isRequest:AN,isResponse:CN,isHeaders:$N,isUndefined:vs,isDate:wN,isFile:xN,isReactNativeBlob:bN,isReactNative:_N,isBlob:SN,isRegExp:HN,isFunction:ur,isStream:TN,isURLSearchParams:IN,isTypedArray:qN,isFileList:EN,forEach:Mi,merge:Lp,extend:NN,trim:ON,stripBOM:MN,inherits:DN,toFlatObject:LN,kindOf:qc,kindOfTest:Qr,endsWith:jN,toArray:FN,forEachEntry:UN,matchAll:GN,isHTMLForm:zN,hasOwnProperty:ow,hasOwnProp:ow,reduceDescriptors:uw,freezeMethods:VN,toObjectSet:WN,toCamelCase:BN,noop:KN,toFiniteNumber:YN,findKey:cw,global:Io,isContextDefined:lw,isSpecCompliantForm:JN,toJSONObject:XN,isAsyncFn:QN,isThenable:ZN,setImmediate:pw,asap:eM,isIterable:tM}});var tr,F,Ir=S(()=>{"use strict";et();tr=class e extends Error{static from(t,r,n,o,s,i){let a=new e(t.message,r||t.code,n,o,s);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),i&&Object.assign(a,i),a}constructor(t,r,n,o,s){super(t),Object.defineProperty(this,"message",{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),s&&(this.response=s,this.status=s.status)}toJSON(){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:b.toJSONObject(this.config),code:this.code,status:this.status}}};tr.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";tr.ERR_BAD_OPTION="ERR_BAD_OPTION";tr.ECONNABORTED="ECONNABORTED";tr.ETIMEDOUT="ETIMEDOUT";tr.ERR_NETWORK="ERR_NETWORK";tr.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";tr.ERR_DEPRECATED="ERR_DEPRECATED";tr.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";tr.ERR_BAD_REQUEST="ERR_BAD_REQUEST";tr.ERR_CANCELED="ERR_CANCELED";tr.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";tr.ERR_INVALID_URL="ERR_INVALID_URL";F=tr});var mw=w((eQ,fw)=>{var dw=vt("stream").Stream,rM=vt("util");fw.exports=Zr;function Zr(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}rM.inherits(Zr,dw);Zr.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(Zr.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});Zr.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Zr.prototype.resume=function(){this._released||this.release(),this.source.resume()};Zr.prototype.pause=function(){this.source.pause()};Zr.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};Zr.prototype.pipe=function(){var e=dw.prototype.pipe.apply(this,arguments);return this.resume(),e};Zr.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)};Zr.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 vw=w((tQ,yw)=>{var nM=vt("util"),gw=vt("stream").Stream,hw=mw();yw.exports=wt;function wt(){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}nM.inherits(wt,gw);wt.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};wt.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};wt.prototype.append=function(e){var t=wt.isStreamLike(e);if(t){if(!(e instanceof hw)){var r=hw.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};wt.prototype.pipe=function(e,t){return gw.prototype.pipe.call(this,e,t),this.resume(),e};wt.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}};wt.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=wt.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};wt.prototype._pipeNext=function(e){this._currentStream=e;var t=wt.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()};wt.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};wt.prototype.write=function(e){this.emit("data",e)};wt.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};wt.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")};wt.prototype.end=function(){this._reset(),this.emit("end")};wt.prototype.destroy=function(){this._reset(),this.emit("close")};wt.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};wt.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};wt.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)};wt.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var ww=w((rQ,oM)=>{oM.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var bw=w((nQ,xw)=>{xw.exports=ww()});var Ew=w(pr=>{"use strict";var Gc=bw(),sM=vt("path").extname,_w=/^\s*([^;\s]*)(?:;|\s|$)/,iM=/^text\//i;pr.charset=Sw;pr.charsets={lookup:Sw};pr.contentType=aM;pr.extension=cM;pr.extensions=Object.create(null);pr.lookup=lM;pr.types=Object.create(null);uM(pr.extensions,pr.types);function Sw(e){if(!e||typeof e!="string")return!1;var t=_w.exec(e),r=t&&Gc[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&iM.test(t[1])?"UTF-8":!1}function aM(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?pr.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=pr.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}function cM(e){if(!e||typeof e!="string")return!1;var t=_w.exec(e),r=t&&pr.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}function lM(e){if(!e||typeof e!="string")return!1;var t=sM("x."+e).toLowerCase().substr(1);return t&&pr.types[t]||!1}function uM(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(Gc).forEach(function(o){var s=Gc[o],i=s.extensions;if(!(!i||!i.length)){e[o]=i;for(var a=0;a<i.length;a++){var c=i[a];if(t[c]){var l=r.indexOf(Gc[t[c]].source),u=r.indexOf(s.source);if(t[c]!=="application/octet-stream"&&(l>u||l===u&&t[c].substr(0,12)==="application/"))continue}t[c]=o}}})}});var kw=w((sQ,Tw)=>{Tw.exports=pM;function pM(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}});var Fp=w((iQ,Iw)=>{var Rw=kw();Iw.exports=dM;function dM(e){var t=!1;return Rw(function(){t=!0}),function(n,o){t?e(n,o):Rw(function(){e(n,o)})}}});var qp=w((aQ,Pw)=>{Pw.exports=fM;function fM(e){Object.keys(e.jobs).forEach(mM.bind(e)),e.jobs={}}function mM(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}});var Up=w((cQ,Cw)=>{var Aw=Fp(),hM=qp();Cw.exports=gM;function gM(e,t,r,n){var o=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[o]=yM(t,o,e[o],function(s,i){o in r.jobs&&(delete r.jobs[o],s?hM(r):r.results[o]=i,n(s,r.results))})}function yM(e,t,r,n){var o;return e.length==2?o=e(r,Aw(n)):o=e(r,t,Aw(n)),o}});var Gp=w((lQ,$w)=>{$w.exports=vM;function vM(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,s){return t(e[o],e[s])}),n}});var zp=w((uQ,Ow)=>{var wM=qp(),xM=Fp();Ow.exports=bM;function bM(e){Object.keys(this.jobs).length&&(this.index=this.size,wM(this),xM(e)(null,this.results))}});var Mw=w((pQ,Nw)=>{var _M=Up(),SM=Gp(),EM=zp();Nw.exports=TM;function TM(e,t,r){for(var n=SM(e);n.index<(n.keyedList||e).length;)_M(e,t,n,function(o,s){if(o){r(o,s);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}),n.index++;return EM.bind(n,r)}});var Bp=w((dQ,zc)=>{var Dw=Up(),kM=Gp(),RM=zp();zc.exports=IM;zc.exports.ascending=Lw;zc.exports.descending=PM;function IM(e,t,r,n){var o=kM(e,r);return Dw(e,t,o,function s(i,a){if(i){n(i,a);return}if(o.index++,o.index<(o.keyedList||e).length){Dw(e,t,o,s);return}n(null,o.results)}),RM.bind(o,n)}function Lw(e,t){return e<t?-1:e>t?1:0}function PM(e,t){return-1*Lw(e,t)}});var Fw=w((fQ,jw)=>{var AM=Bp();jw.exports=CM;function CM(e,t,r){return AM(e,t,null,r)}});var Uw=w((mQ,qw)=>{qw.exports={parallel:Mw(),serial:Fw(),serialOrdered:Bp()}});var Hp=w((hQ,Gw)=>{"use strict";Gw.exports=Object});var Bw=w((gQ,zw)=>{"use strict";zw.exports=Error});var Vw=w((yQ,Hw)=>{"use strict";Hw.exports=EvalError});var Kw=w((vQ,Ww)=>{"use strict";Ww.exports=RangeError});var Jw=w((wQ,Yw)=>{"use strict";Yw.exports=ReferenceError});var Qw=w((xQ,Xw)=>{"use strict";Xw.exports=SyntaxError});var Bc=w((bQ,Zw)=>{"use strict";Zw.exports=TypeError});var tx=w((_Q,ex)=>{"use strict";ex.exports=URIError});var nx=w((SQ,rx)=>{"use strict";rx.exports=Math.abs});var sx=w((EQ,ox)=>{"use strict";ox.exports=Math.floor});var ax=w((TQ,ix)=>{"use strict";ix.exports=Math.max});var lx=w((kQ,cx)=>{"use strict";cx.exports=Math.min});var px=w((RQ,ux)=>{"use strict";ux.exports=Math.pow});var fx=w((IQ,dx)=>{"use strict";dx.exports=Math.round});var hx=w((PQ,mx)=>{"use strict";mx.exports=Number.isNaN||function(t){return t!==t}});var yx=w((AQ,gx)=>{"use strict";var $M=hx();gx.exports=function(t){return $M(t)||t===0?t:t<0?-1:1}});var wx=w((CQ,vx)=>{"use strict";vx.exports=Object.getOwnPropertyDescriptor});var Vp=w(($Q,xx)=>{"use strict";var Hc=wx();if(Hc)try{Hc([],"length")}catch{Hc=null}xx.exports=Hc});var _x=w((OQ,bx)=>{"use strict";var Vc=Object.defineProperty||!1;if(Vc)try{Vc({},"a",{value:1})}catch{Vc=!1}bx.exports=Vc});var Wp=w((NQ,Sx)=>{"use strict";Sx.exports=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 s 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 i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==o||a.enumerable!==!0)return!1}return!0}});var kx=w((MQ,Tx)=>{"use strict";var Ex=typeof Symbol<"u"&&Symbol,OM=Wp();Tx.exports=function(){return typeof Ex!="function"||typeof Symbol!="function"||typeof Ex("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:OM()}});var Kp=w((DQ,Rx)=>{"use strict";Rx.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Yp=w((LQ,Ix)=>{"use strict";var NM=Hp();Ix.exports=NM.getPrototypeOf||null});var Cx=w((jQ,Ax)=>{"use strict";var MM="Function.prototype.bind called on incompatible ",DM=Object.prototype.toString,LM=Math.max,jM="[object Function]",Px=function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var s=0;s<r.length;s+=1)n[s+t.length]=r[s];return n},FM=function(t,r){for(var n=[],o=r||0,s=0;o<t.length;o+=1,s+=1)n[s]=t[o];return n},qM=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};Ax.exports=function(t){var r=this;if(typeof r!="function"||DM.apply(r)!==jM)throw new TypeError(MM+r);for(var n=FM(arguments,1),o,s=function(){if(this instanceof o){var u=r.apply(this,Px(n,arguments));return Object(u)===u?u:this}return r.apply(t,Px(n,arguments))},i=LM(0,r.length-n.length),a=[],c=0;c<i;c++)a[c]="$"+c;if(o=Function("binder","return function ("+qM(a,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var l=function(){};l.prototype=r.prototype,o.prototype=new l,l.prototype=null}return o}});var Di=w((FQ,$x)=>{"use strict";var UM=Cx();$x.exports=Function.prototype.bind||UM});var Wc=w((qQ,Ox)=>{"use strict";Ox.exports=Function.prototype.call});var Jp=w((UQ,Nx)=>{"use strict";Nx.exports=Function.prototype.apply});var Dx=w((GQ,Mx)=>{"use strict";Mx.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var jx=w((zQ,Lx)=>{"use strict";var GM=Di(),zM=Jp(),BM=Wc(),HM=Dx();Lx.exports=HM||GM.call(BM,zM)});var qx=w((BQ,Fx)=>{"use strict";var VM=Di(),WM=Bc(),KM=Wc(),YM=jx();Fx.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new WM("a function is required");return YM(VM,KM,t)}});var Vx=w((HQ,Hx)=>{"use strict";var JM=qx(),Ux=Vp(),zx;try{zx=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Xp=!!zx&&Ux&&Ux(Object.prototype,"__proto__"),Bx=Object,Gx=Bx.getPrototypeOf;Hx.exports=Xp&&typeof Xp.get=="function"?JM([Xp.get]):typeof Gx=="function"?function(t){return Gx(t==null?t:Bx(t))}:!1});var Xx=w((VQ,Jx)=>{"use strict";var Wx=Kp(),Kx=Yp(),Yx=Vx();Jx.exports=Wx?function(t){return Wx(t)}:Kx?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return Kx(t)}:Yx?function(t){return Yx(t)}:null});var Kc=w((WQ,Qx)=>{"use strict";var XM=Function.prototype.call,QM=Object.prototype.hasOwnProperty,ZM=Di();Qx.exports=ZM.call(XM,QM)});var sb=w((KQ,ob)=>{"use strict";var Ie,eD=Hp(),tD=Bw(),rD=Vw(),nD=Kw(),oD=Jw(),Ss=Qw(),_s=Bc(),sD=tx(),iD=nx(),aD=sx(),cD=ax(),lD=lx(),uD=px(),pD=fx(),dD=yx(),rb=Function,Qp=function(e){try{return rb('"use strict"; return ('+e+").constructor;")()}catch{}},Li=Vp(),fD=_x(),Zp=function(){throw new _s},mD=Li?(function(){try{return arguments.callee,Zp}catch{try{return Li(arguments,"callee").get}catch{return Zp}}})():Zp,xs=kx()(),$t=Xx(),hD=Yp(),gD=Kp(),nb=Jp(),ji=Wc(),bs={},yD=typeof Uint8Array>"u"||!$t?Ie:$t(Uint8Array),Po={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Ie:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ie:ArrayBuffer,"%ArrayIteratorPrototype%":xs&&$t?$t([][Symbol.iterator]()):Ie,"%AsyncFromSyncIteratorPrototype%":Ie,"%AsyncFunction%":bs,"%AsyncGenerator%":bs,"%AsyncGeneratorFunction%":bs,"%AsyncIteratorPrototype%":bs,"%Atomics%":typeof Atomics>"u"?Ie:Atomics,"%BigInt%":typeof BigInt>"u"?Ie:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ie:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ie:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ie:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":tD,"%eval%":eval,"%EvalError%":rD,"%Float16Array%":typeof Float16Array>"u"?Ie:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Ie:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ie:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ie:FinalizationRegistry,"%Function%":rb,"%GeneratorFunction%":bs,"%Int8Array%":typeof Int8Array>"u"?Ie:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ie:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ie:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xs&&$t?$t($t([][Symbol.iterator]())):Ie,"%JSON%":typeof JSON=="object"?JSON:Ie,"%Map%":typeof Map>"u"?Ie:Map,"%MapIteratorPrototype%":typeof Map>"u"||!xs||!$t?Ie:$t(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":eD,"%Object.getOwnPropertyDescriptor%":Li,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ie:Promise,"%Proxy%":typeof Proxy>"u"?Ie:Proxy,"%RangeError%":nD,"%ReferenceError%":oD,"%Reflect%":typeof Reflect>"u"?Ie:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ie:Set,"%SetIteratorPrototype%":typeof Set>"u"||!xs||!$t?Ie:$t(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ie:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xs&&$t?$t(""[Symbol.iterator]()):Ie,"%Symbol%":xs?Symbol:Ie,"%SyntaxError%":Ss,"%ThrowTypeError%":mD,"%TypedArray%":yD,"%TypeError%":_s,"%Uint8Array%":typeof Uint8Array>"u"?Ie:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ie:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ie:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ie:Uint32Array,"%URIError%":sD,"%WeakMap%":typeof WeakMap>"u"?Ie:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ie:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ie:WeakSet,"%Function.prototype.call%":ji,"%Function.prototype.apply%":nb,"%Object.defineProperty%":fD,"%Object.getPrototypeOf%":hD,"%Math.abs%":iD,"%Math.floor%":aD,"%Math.max%":cD,"%Math.min%":lD,"%Math.pow%":uD,"%Math.round%":pD,"%Math.sign%":dD,"%Reflect.getPrototypeOf%":gD};if($t)try{null.error}catch(e){Zx=$t($t(e)),Po["%Error.prototype%"]=Zx}var Zx,vD=function e(t){var r;if(t==="%AsyncFunction%")r=Qp("async function () {}");else if(t==="%GeneratorFunction%")r=Qp("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Qp("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&$t&&(r=$t(o.prototype))}return Po[t]=r,r},eb={__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"]},Fi=Di(),Yc=Kc(),wD=Fi.call(ji,Array.prototype.concat),xD=Fi.call(nb,Array.prototype.splice),tb=Fi.call(ji,String.prototype.replace),Jc=Fi.call(ji,String.prototype.slice),bD=Fi.call(ji,RegExp.prototype.exec),_D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,SD=/\\(\\)?/g,ED=function(t){var r=Jc(t,0,1),n=Jc(t,-1);if(r==="%"&&n!=="%")throw new Ss("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ss("invalid intrinsic syntax, expected opening `%`");var o=[];return tb(t,_D,function(s,i,a,c){o[o.length]=a?tb(c,SD,"$1"):i||s}),o},TD=function(t,r){var n=t,o;if(Yc(eb,n)&&(o=eb[n],n="%"+o[0]+"%"),Yc(Po,n)){var s=Po[n];if(s===bs&&(s=vD(n)),typeof s>"u"&&!r)throw new _s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:s}}throw new Ss("intrinsic "+t+" does not exist!")};ob.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new _s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new _s('"allowMissing" argument must be a boolean');if(bD(/^%?[^%]*%?$/,t)===null)throw new Ss("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ED(t),o=n.length>0?n[0]:"",s=TD("%"+o+"%",r),i=s.name,a=s.value,c=!1,l=s.alias;l&&(o=l[0],xD(n,wD([0,1],l)));for(var u=1,p=!0;u<n.length;u+=1){var m=n[u],h=Jc(m,0,1),f=Jc(m,-1);if((h==='"'||h==="'"||h==="`"||f==='"'||f==="'"||f==="`")&&h!==f)throw new Ss("property names with quotes must have matching quotes");if((m==="constructor"||!p)&&(c=!0),o+="."+m,i="%"+o+"%",Yc(Po,i))a=Po[i];else if(a!=null){if(!(m in a)){if(!r)throw new _s("base intrinsic for "+t+" exists, but the property is not available.");return}if(Li&&u+1>=n.length){var g=Li(a,m);p=!!g,p&&"get"in g&&!("originalValue"in g.get)?a=g.get:a=a[m]}else p=Yc(a,m),a=a[m];p&&!c&&(Po[i]=a)}}return a}});var ab=w((YQ,ib)=>{"use strict";var kD=Wp();ib.exports=function(){return kD()&&!!Symbol.toStringTag}});var ub=w((JQ,lb)=>{"use strict";var RD=sb(),cb=RD("%Object.defineProperty%",!0),ID=ab()(),PD=Kc(),AD=Bc(),Xc=ID?Symbol.toStringTag:null;lb.exports=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 AD("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Xc&&(n||!PD(t,Xc))&&(cb?cb(t,Xc,{configurable:!o,enumerable:!1,value:r,writable:!1}):t[Xc]=r)}});var db=w((XQ,pb)=>{"use strict";pb.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var mb=w((QQ,fb)=>{"use strict";var nd=vw(),CD=vt("util"),ed=vt("path"),$D=vt("http"),OD=vt("https"),ND=vt("url").parse,MD=vt("fs"),DD=vt("stream").Stream,LD=vt("crypto"),td=Ew(),jD=Uw(),FD=ub(),eo=Kc(),rd=db();function $e(e){if(!(this instanceof $e))return new $e(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],nd.call(this),e=e||{};for(var t in e)this[t]=e[t]}CD.inherits($e,nd);$e.LINE_BREAK=`\r
2
- `;$e.DEFAULT_CONTENT_TYPE="application/octet-stream";$e.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=nd.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),s=this._multiPartFooter();n(o),n(t),n(s),this._trackLength(o,t,r)};$e.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)+$e.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&eo(t,"httpVersion"))&&!(t instanceof DD))&&(r.knownLength||this._valuesToMeasure.push(t))};$e.prototype._lengthRetriever=function(e,t){eo(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):MD.stat(e.path,function(r,n){if(r){t(r);return}var o=n.size-(e.start?e.start:0);t(null,o)}):eo(e,"httpVersion")?t(null,Number(e.headers["content-length"])):eo(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};$e.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),s="",i={"Content-Disposition":["form-data",'name="'+e+'"'].concat(n||[]),"Content-Type":[].concat(o||[])};typeof r.header=="object"&&rd(i,r.header);var a;for(var c in i)if(eo(i,c)){if(a=i[c],a==null)continue;Array.isArray(a)||(a=[a]),a.length&&(s+=c+": "+a.join("; ")+$e.LINE_BREAK)}return"--"+this.getBoundary()+$e.LINE_BREAK+s+$e.LINE_BREAK};$e.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=ed.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=ed.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&eo(e,"httpVersion")&&(r=ed.basename(e.client._httpMessage.path||"")),r)return'filename="'+r+'"'};$e.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=td.lookup(e.name)),!r&&e&&e.path&&(r=td.lookup(e.path)),!r&&e&&e.readable&&eo(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=td.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=$e.DEFAULT_CONTENT_TYPE),r};$e.prototype._multiPartFooter=function(){return function(e){var t=$e.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};$e.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+$e.LINE_BREAK};$e.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)eo(e,t)&&(r[t.toLowerCase()]=e[t]);return r};$e.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};$e.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};$e.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($e.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};$e.prototype._generateBoundary=function(){this._boundary="--------------------------"+LD.randomBytes(12).toString("hex")};$e.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};$e.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};$e.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}jD.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(o){t+=o}),e(null,t)})};$e.prototype.submit=function(e,t){var r,n,o={method:"post"};return typeof e=="string"?(e=ND(e),n=rd({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(n=rd(e,o),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=OD.request(n):r=$D.request(n),this.getLength(function(s,i){if(s&&s!=="Unknown stream"){this._error(s);return}if(i&&r.setHeader("Content-Length",i),this.pipe(r),t){var a,c=function(l,u){return r.removeListener("error",c),r.removeListener("response",a),t.call(this,l,u)};a=c.bind(this,null),r.on("error",c),r.on("response",a)}}.bind(this)),r};$e.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};$e.prototype.toString=function(){return"[object FormData]"};FD($e.prototype,"FormData");fb.exports=$e});var hb,Qc,od=S(()=>{hb=kr(mb(),1),Qc=hb.default});function id(e){return b.isPlainObject(e)||b.isArray(e)}function gb(e){return b.endsWith(e,"[]")?e.slice(0,-2):e}function sd(e,t,r){return e?e.concat(t).map(function(o,s){return o=gb(o),!r&&s?"["+o+"]":o}).join(r?".":""):t}function qD(e){return b.isArray(e)&&!e.some(id)}function GD(e,t,r){if(!b.isObject(e))throw new TypeError("target must be an object");t=t||new(Qc||FormData),r=b.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!b.isUndefined(v[g])});let n=r.metaTokens,o=r.visitor||u,s=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(t);if(!b.isFunction(o))throw new TypeError("visitor must be a function");function l(f){if(f===null)return"";if(b.isDate(f))return f.toISOString();if(b.isBoolean(f))return f.toString();if(!c&&b.isBlob(f))throw new F("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(f)||b.isTypedArray(f)?c&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,g,v){let x=f;if(b.isReactNative(t)&&b.isReactNativeBlob(f))return t.append(sd(v,g,s),l(f)),!1;if(f&&!v&&typeof f=="object"){if(b.endsWith(g,"{}"))g=n?g:g.slice(0,-2),f=JSON.stringify(f);else if(b.isArray(f)&&qD(f)||(b.isFileList(f)||b.endsWith(g,"[]"))&&(x=b.toArray(f)))return g=gb(g),x.forEach(function(k,P){!(b.isUndefined(k)||k===null)&&t.append(i===!0?sd([g],P,s):i===null?g:g+"[]",l(k))}),!1}return id(f)?!0:(t.append(sd(v,g,s),l(f)),!1)}let p=[],m=Object.assign(UD,{defaultVisitor:u,convertValue:l,isVisitable:id});function h(f,g){if(!b.isUndefined(f)){if(p.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));p.push(f),b.forEach(f,function(x,I){(!(b.isUndefined(x)||x===null)&&o.call(t,x,b.isString(I)?I.trim():I,g,m))===!0&&h(x,g?g.concat(I):[I])}),p.pop()}}if(!b.isObject(e))throw new TypeError("data must be an object");return h(e),t}var UD,to,qi=S(()=>{"use strict";et();Ir();od();UD=b.toFlatObject(b,{},null,function(t){return/^is[A-Z]/.test(t)});to=GD});function yb(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function vb(e,t){this._pairs=[],e&&to(e,this,t)}var wb,xb,bb=S(()=>{"use strict";qi();wb=vb.prototype;wb.append=function(t,r){this._pairs.push([t,r])};wb.toString=function(t){let r=t?function(n){return t.call(this,n,yb)}:yb;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};xb=vb});function zD(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ao(e,t,r){if(!t)return e;let n=r&&r.encode||zD,o=b.isFunction(r)?{serialize:r}:r,s=o&&o.serialize,i;if(s?i=s(t,o):i=b.isURLSearchParams(t)?t.toString():new xb(t,o).toString(n),i){let a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}var Zc=S(()=>{"use strict";et();bb()});var ad,cd,_b=S(()=>{"use strict";et();ad=class{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){b.forEach(this.handlers,function(n){n!==null&&t(n)})}},cd=ad});var ro,Ui=S(()=>{"use strict";ro={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0}});import BD from"url";var Sb,Eb=S(()=>{"use strict";Sb=BD.URLSearchParams});import HD from"crypto";var ld,Tb,kb,VD,Rb,Ib=S(()=>{Eb();od();ld="abcdefghijklmnopqrstuvwxyz",Tb="0123456789",kb={DIGIT:Tb,ALPHA:ld,ALPHA_DIGIT:ld+ld.toUpperCase()+Tb},VD=(e=16,t=kb.ALPHA_DIGIT)=>{let r="",{length:n}=t,o=new Uint32Array(e);HD.randomFillSync(o);for(let s=0;s<e;s++)r+=t[o[s]%n];return r},Rb={isNode:!0,classes:{URLSearchParams:Sb,FormData:Qc,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:kb,generateString:VD,protocols:["http","https","file","data"]}});var dd={};Np(dd,{hasBrowserEnv:()=>pd,hasStandardBrowserEnv:()=>WD,hasStandardBrowserWebWorkerEnv:()=>KD,navigator:()=>ud,origin:()=>YD});var pd,ud,WD,KD,YD,Pb=S(()=>{pd=typeof window<"u"&&typeof document<"u",ud=typeof navigator=="object"&&navigator||void 0,WD=pd&&(!ud||["ReactNative","NativeScript","NS"].indexOf(ud.product)<0),KD=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",YD=pd&&window.location.href||"http://localhost"});var Fe,en=S(()=>{Ib();Pb();Fe={...dd,...Rb}});function fd(e,t){return to(e,new Fe.classes.URLSearchParams,{visitor:function(r,n,o,s){return Fe.isNode&&b.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}var Ab=S(()=>{"use strict";et();qi();en()});function JD(e){return b.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function XD(e){let t={},r=Object.keys(e),n,o=r.length,s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}function QD(e){function t(r,n,o,s){let i=r[s++];if(i==="__proto__")return!0;let a=Number.isFinite(+i),c=s>=r.length;return i=!i&&b.isArray(o)?o.length:i,c?(b.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!a):((!o[i]||!b.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],s)&&b.isArray(o[i])&&(o[i]=XD(o[i])),!a)}if(b.isFormData(e)&&b.isFunction(e.entries)){let r={};return b.forEachEntry(e,(n,o)=>{t(JD(n),o,r,0)}),r}return null}var el,md=S(()=>{"use strict";et();el=QD});function ZD(e,t,r){if(b.isString(e))try{return(t||JSON.parse)(e),b.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var hd,Es,tl=S(()=>{"use strict";et();Ir();Ui();qi();Ab();en();md();hd={transitional:ro,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){let n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=b.isObject(t);if(s&&b.isHTMLForm(t)&&(t=new FormData(t)),b.isFormData(t))return o?JSON.stringify(el(t)):t;if(b.isArrayBuffer(t)||b.isBuffer(t)||b.isStream(t)||b.isFile(t)||b.isBlob(t)||b.isReadableStream(t))return t;if(b.isArrayBufferView(t))return t.buffer;if(b.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return fd(t,this.formSerializer).toString();if((a=b.isFileList(t))||n.indexOf("multipart/form-data")>-1){let c=this.env&&this.env.FormData;return to(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),ZD(t)):t}],transformResponse:[function(t){let r=this.transitional||hd.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(b.isResponse(t)||b.isReadableStream(t))return t;if(t&&b.isString(t)&&(n&&!this.responseType||o)){let i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(i)throw a.name==="SyntaxError"?F.from(a,F.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fe.classes.FormData,Blob:Fe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],e=>{hd.headers[e]={}});Es=hd});var e1,Cb,$b=S(()=>{"use strict";et();e1=b.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"]),Cb=e=>{let t={},r,n,o;return e&&e.split(`
3
- `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&e1[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t}});function Nb(e,t){if(!(e===!1||e==null)){if(b.isArray(e)){e.forEach(r=>Nb(r,t));return}if(!t1(String(e)))throw new Error(`Invalid character in header content ["${t}"]`)}}function Gi(e){return e&&String(e).trim().toLowerCase()}function r1(e){let t=e.length;for(;t>0;){let r=e.charCodeAt(t-1);if(r!==10&&r!==13)break;t-=1}return t===e.length?e:e.slice(0,t)}function rl(e){return e===!1||e==null?e:b.isArray(e)?e.map(rl):r1(String(e))}function n1(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}function gd(e,t,r,n,o){if(b.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!b.isString(t)){if(b.isString(n))return t.indexOf(n)!==-1;if(b.isRegExp(n))return n.test(t)}}function s1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function i1(e,t){let r=b.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,s,i){return this[n].call(this,t,o,s,i)},configurable:!0})})}var Ob,t1,o1,Ts,ft,mn=S(()=>{"use strict";et();$b();Ob=Symbol("internals"),t1=e=>!/[\r\n]/.test(e);o1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());Ts=class{constructor(t){t&&this.set(t)}set(t,r,n){let o=this;function s(a,c,l){let u=Gi(c);if(!u)throw new Error("header name must be a non-empty string");let p=b.findKey(o,u);(!p||o[p]===void 0||l===!0||l===void 0&&o[p]!==!1)&&(Nb(a,c),o[p||c]=rl(a))}let i=(a,c)=>b.forEach(a,(l,u)=>s(l,u,c));if(b.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(b.isString(t)&&(t=t.trim())&&!o1(t))i(Cb(t),r);else if(b.isObject(t)&&b.isIterable(t)){let a={},c,l;for(let u of t){if(!b.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[l=u[0]]=(c=a[l])?b.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}i(a,r)}else t!=null&&s(r,t,n);return this}get(t,r){if(t=Gi(t),t){let n=b.findKey(this,t);if(n){let o=this[n];if(!r)return o;if(r===!0)return n1(o);if(b.isFunction(r))return r.call(this,o,n);if(b.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Gi(t),t){let n=b.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||gd(this,this[n],n,r)))}return!1}delete(t,r){let n=this,o=!1;function s(i){if(i=Gi(i),i){let a=b.findKey(n,i);a&&(!r||gd(n,n[a],a,r))&&(delete n[a],o=!0)}}return b.isArray(t)?t.forEach(s):s(t),o}clear(t){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let s=r[n];(!t||gd(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){let r=this,n={};return b.forEach(this,(o,s)=>{let i=b.findKey(n,s);if(i){r[i]=rl(o),delete r[s];return}let a=t?s1(s):String(s).trim();a!==s&&delete r[s],r[a]=rl(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return b.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&b.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(`
4
- `)}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[Ob]=this[Ob]={accessors:{}}).accessors,o=this.prototype;function s(i){let a=Gi(i);n[a]||(i1(o,i),n[a]=!0)}return b.isArray(t)?t.forEach(s):s(t),this}};Ts.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);b.reduceDescriptors(Ts.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});b.freezeMethods(Ts);ft=Ts});function zi(e,t){let r=this||Es,n=t||r,o=ft.from(n.headers),s=n.data;return b.forEach(e,function(a){s=a.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}var Mb=S(()=>{"use strict";et();tl();mn()});function Bi(e){return!!(e&&e.__CANCEL__)}var yd=S(()=>{"use strict"});var vd,Pr,Co=S(()=>{"use strict";Ir();vd=class extends F{constructor(t,r,n){super(t??"canceled",F.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}},Pr=vd});function hn(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new F("Request failed with status code "+r.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}var nl=S(()=>{"use strict";Ir()});function wd(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}var Db=S(()=>{"use strict"});function xd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}var Lb=S(()=>{"use strict"});function $o(e,t,r){let n=!wd(t);return e&&(n||r==!1)?xd(e,t):t}var ol=S(()=>{"use strict";Db();Lb()});function c1(e){try{return new URL(e)}catch{return null}}function jb(e){var t=(typeof e=="string"?c1(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)||a1[r]||0,!l1(n,o)))return"";var s=bd(r+"_proxy")||bd("all_proxy");return s&&s.indexOf("://")===-1&&(s=r+"://"+s),s}function l1(e,t){var r=bd("no_proxy").toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(n){if(!n)return!0;var o=n.match(/^(.+):(\d+)$/),s=o?o[1]:n,i=o?parseInt(o[2]):0;return i&&i!==t?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!e.endsWith(s)):e!==s}):!0}function bd(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}var a1,Fb=S(()=>{"use strict";a1={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443}});var Ub=w((eee,qb)=>{var ks=1e3,Rs=ks*60,Is=Rs*60,Oo=Is*24,u1=Oo*7,p1=Oo*365.25;qb.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return d1(e);if(r==="number"&&isFinite(e))return t.long?m1(e):f1(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function d1(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*p1;case"weeks":case"week":case"w":return r*u1;case"days":case"day":case"d":return r*Oo;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Is;case"minutes":case"minute":case"mins":case"min":case"m":return r*Rs;case"seconds":case"second":case"secs":case"sec":case"s":return r*ks;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function f1(e){var t=Math.abs(e);return t>=Oo?Math.round(e/Oo)+"d":t>=Is?Math.round(e/Is)+"h":t>=Rs?Math.round(e/Rs)+"m":t>=ks?Math.round(e/ks)+"s":e+"ms"}function m1(e){var t=Math.abs(e);return t>=Oo?sl(e,t,Oo,"day"):t>=Is?sl(e,t,Is,"hour"):t>=Rs?sl(e,t,Rs,"minute"):t>=ks?sl(e,t,ks,"second"):e+" ms"}function sl(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var _d=w((tee,Gb)=>{function h1(e){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=Ub(),r.destroy=l,Object.keys(e).forEach(u=>{r[u]=e[u]}),r.names=[],r.skips=[],r.formatters={};function t(u){let p=0;for(let m=0;m<u.length;m++)p=(p<<5)-p+u.charCodeAt(m),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(u){let p,m=null,h,f;function g(...v){if(!g.enabled)return;let x=g,I=Number(new Date),k=I-(p||I);x.diff=k,x.prev=p,x.curr=I,p=I,v[0]=r.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let P=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(A,L)=>{if(A==="%%")return"%";P++;let Y=r.formatters[L];if(typeof Y=="function"){let ue=v[P];A=Y.call(x,ue),v.splice(P,1),P--}return A}),r.formatArgs.call(x,v),(x.log||r.log).apply(x,v)}return g.namespace=u,g.useColors=r.useColors(),g.color=r.selectColor(u),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(h!==r.namespaces&&(h=r.namespaces,f=r.enabled(u)),f),set:v=>{m=v}}),typeof r.init=="function"&&r.init(g),g}function n(u,p){let m=r(this.namespace+(typeof p>"u"?":":p)+u);return m.log=this.log,m}function o(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let p=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let m of p)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}function s(u,p){let m=0,h=0,f=-1,g=0;for(;m<u.length;)if(h<p.length&&(p[h]===u[m]||p[h]==="*"))p[h]==="*"?(f=h,g=m,h++):(m++,h++);else if(f!==-1)h=f+1,g++,m=g;else return!1;for(;h<p.length&&p[h]==="*";)h++;return h===p.length}function i(){let u=[...r.names,...r.skips.map(p=>"-"+p)].join(",");return r.enable(""),u}function a(u){for(let p of r.skips)if(s(u,p))return!1;for(let p of r.names)if(s(u,p))return!0;return!1}function c(u){return u instanceof Error?u.stack||u.message:u}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Gb.exports=h1});var zb=w((dr,il)=>{dr.formatArgs=y1;dr.save=v1;dr.load=w1;dr.useColors=g1;dr.storage=x1();dr.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`."))}})();dr.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 g1(){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+)/)}function y1(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+il.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)}dr.log=console.debug||console.log||(()=>{});function v1(e){try{e?dr.storage.setItem("debug",e):dr.storage.removeItem("debug")}catch{}}function w1(){let e;try{e=dr.storage.getItem("debug")||dr.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function x1(){try{return localStorage}catch{}}il.exports=_d()(dr);var{formatters:b1}=il.exports;b1.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Hb=w((ree,Bb)=>{"use strict";Bb.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 Td=w((nee,Wb)=>{"use strict";var _1=vt("os"),Vb=vt("tty"),Dr=Hb(),{env:Ot}=process,no;Dr("no-color")||Dr("no-colors")||Dr("color=false")||Dr("color=never")?no=0:(Dr("color")||Dr("colors")||Dr("color=true")||Dr("color=always"))&&(no=1);"FORCE_COLOR"in Ot&&(Ot.FORCE_COLOR==="true"?no=1:Ot.FORCE_COLOR==="false"?no=0:no=Ot.FORCE_COLOR.length===0?1:Math.min(parseInt(Ot.FORCE_COLOR,10),3));function Sd(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Ed(e,t){if(no===0)return 0;if(Dr("color=16m")||Dr("color=full")||Dr("color=truecolor"))return 3;if(Dr("color=256"))return 2;if(e&&!t&&no===void 0)return 0;let r=no||0;if(Ot.TERM==="dumb")return r;if(process.platform==="win32"){let n=_1.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Ot)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Ot)||Ot.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Ot)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ot.TEAMCITY_VERSION)?1:0;if(Ot.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ot){let n=parseInt((Ot.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ot.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ot.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ot.TERM)||"COLORTERM"in Ot?1:r}function S1(e){let t=Ed(e,e&&e.isTTY);return Sd(t)}Wb.exports={supportsColor:S1,stdout:Sd(Ed(!0,Vb.isatty(1))),stderr:Sd(Ed(!0,Vb.isatty(2)))}});var Yb=w((Nt,cl)=>{var E1=vt("tty"),al=vt("util");Nt.init=C1;Nt.log=I1;Nt.formatArgs=k1;Nt.save=P1;Nt.load=A1;Nt.useColors=T1;Nt.destroy=al.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Nt.colors=[6,2,3,4,5,1];try{let e=Td();e&&(e.stderr||e).level>=2&&(Nt.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{}Nt.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,s)=>s.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 T1(){return"colors"in Nt.inspectOpts?!!Nt.inspectOpts.colors:E1.isatty(process.stderr.fd)}function k1(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,o="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${o};1m${t} \x1B[0m`;e[0]=s+e[0].split(`
1
+ var dM=Object.create;var qp=Object.defineProperty;var fM=Object.getOwnPropertyDescriptor;var mM=Object.getOwnPropertyNames;var hM=Object.getPrototypeOf,gM=Object.prototype.hasOwnProperty;var Ue=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var b=(e,t)=>()=>(e&&(t=e(e=0)),t);var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),jp=(e,t)=>{for(var r in t)qp(e,r,{get:t[r],enumerable:!0})},yM=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of mM(t))!gM.call(e,o)&&o!==r&&qp(e,o,{get:()=>t[o],enumerable:!(n=fM(t,o))||n.enumerable});return e};var mn=(e,t,r)=>(r=e!=null?dM(hM(e)):{},yM(t||!e||!e.__esModule?qp(r,"default",{value:e,enumerable:!0}):r,e));function xM(){let e=new Map;for(let[t,r]of Object.entries(Ze)){for(let[n,o]of Object.entries(r))Ze[n]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},r[n]=Ze[n],e.set(o[0],o[1]);Object.defineProperty(Ze,t,{value:r,enumerable:!1})}return Object.defineProperty(Ze,"codes",{value:e,enumerable:!1}),Ze.color.close="\x1B[39m",Ze.bgColor.close="\x1B[49m",Ze.color.ansi=_v(),Ze.color.ansi256=Sv(),Ze.color.ansi16m=Tv(),Ze.bgColor.ansi=_v(10),Ze.bgColor.ansi256=Sv(10),Ze.bgColor.ansi16m=Tv(10),Object.defineProperties(Ze,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let o=Number.parseInt(n,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:t=>Ze.rgbToAnsi256(...Ze.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,o;if(t>=232)r=((t-232)*10+8)/255,n=r,o=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,o=a%6/5}let s=Math.max(r,n,o)*2;if(s===0)return 30;let i=30+(Math.round(o)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(i+=60),i},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>Ze.ansi256ToAnsi(Ze.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>Ze.ansi256ToAnsi(Ze.hexToAnsi256(t)),enumerable:!1}}),Ze}var _v,Sv,Tv,Ze,UZ,wM,vM,BZ,bM,Ar,kv=b(()=>{_v=(e=0)=>t=>`\x1B[${t+e}m`,Sv=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Tv=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,Ze={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},UZ=Object.keys(Ze.modifier),wM=Object.keys(Ze.color),vM=Object.keys(Ze.bgColor),BZ=[...wM,...vM];bM=xM(),Ar=bM});import Up from"node:process";import _M from"node:os";import Ev from"node:tty";function yr(e,t=globalThis.Deno?globalThis.Deno.args:Up.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}function SM(){if("FORCE_COLOR"in et)return et.FORCE_COLOR==="true"?1:et.FORCE_COLOR==="false"?0:et.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(et.FORCE_COLOR,10),3)}function TM(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function kM(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=SM();n!==void 0&&(wc=n);let o=r?wc:n;if(o===0)return 0;if(r){if(yr("color=16m")||yr("color=full")||yr("color=truecolor"))return 3;if(yr("color=256"))return 2}if("TF_BUILD"in et&&"AGENT_NAME"in et)return 1;if(e&&!t&&o===void 0)return 0;let s=o||0;if(et.TERM==="dumb")return s;if(Up.platform==="win32"){let i=_M.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in et)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(i=>i in et)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(i=>i in et)||et.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in et)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(et.TEAMCITY_VERSION)?1:0;if(et.COLORTERM==="truecolor"||et.TERM==="xterm-kitty"||et.TERM==="xterm-ghostty"||et.TERM==="wezterm")return 3;if("TERM_PROGRAM"in et){let i=Number.parseInt((et.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(et.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(et.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(et.TERM)||"COLORTERM"in et?1:s}function Rv(e,t={}){let r=kM(e,{streamIsTTY:e&&e.isTTY,...t});return TM(r)}var et,wc,EM,Iv,Av=b(()=>{({env:et}=Up);yr("no-color")||yr("no-colors")||yr("color=false")||yr("color=never")?wc=0:(yr("color")||yr("colors")||yr("color=true")||yr("color=always"))&&(wc=1);EM={stdout:Rv({isTTY:Ev.isatty(1)}),stderr:Rv({isTTY:Ev.isatty(2)})},Iv=EM});function Cv(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let o=t.length,s=0,i="";do i+=e.slice(s,n)+t+r,s=n+o,n=e.indexOf(t,s);while(n!==-1);return i+=e.slice(s),i}function Pv(e,t,r,n){let o=0,s="";do{let i=e[n-1]==="\r";s+=e.slice(o,i?n-1:n)+t+(i?`\r
2
+ `:`
3
+ `)+r,o=n+1,n=e.indexOf(`
4
+ `,o)}while(n!==-1);return s+=e.slice(o),s}var $v=b(()=>{});function ci(e){return IM(e)}var Ov,Nv,Bp,Ko,ai,Mv,zo,RM,IM,Gp,AM,CM,Hp,vc,PM,$M,QZ,Q,li=b(()=>{kv();Av();$v();({stdout:Ov,stderr:Nv}=Iv),Bp=Symbol("GENERATOR"),Ko=Symbol("STYLER"),ai=Symbol("IS_EMPTY"),Mv=["ansi","ansi","ansi256","ansi16m"],zo=Object.create(null),RM=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Ov?Ov.level:0;e.level=t.level===void 0?r:t.level},IM=e=>{let t=(...r)=>r.join(" ");return RM(t,e),Object.setPrototypeOf(t,ci.prototype),t};Object.setPrototypeOf(ci.prototype,Function.prototype);for(let[e,t]of Object.entries(Ar))zo[e]={get(){let r=vc(this,Hp(t.open,t.close,this[Ko]),this[ai]);return Object.defineProperty(this,e,{value:r}),r}};zo.visible={get(){let e=vc(this,this[Ko],!0);return Object.defineProperty(this,"visible",{value:e}),e}};Gp=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?Ar[r].ansi16m(...n):t==="ansi256"?Ar[r].ansi256(Ar.rgbToAnsi256(...n)):Ar[r].ansi(Ar.rgbToAnsi(...n)):e==="hex"?Gp("rgb",t,r,...Ar.hexToRgb(...n)):Ar[r][e](...n),AM=["rgb","hex","ansi256"];for(let e of AM){zo[e]={get(){let{level:r}=this;return function(...n){let o=Hp(Gp(e,Mv[r],"color",...n),Ar.color.close,this[Ko]);return vc(this,o,this[ai])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);zo[t]={get(){let{level:r}=this;return function(...n){let o=Hp(Gp(e,Mv[r],"bgColor",...n),Ar.bgColor.close,this[Ko]);return vc(this,o,this[ai])}}}}CM=Object.defineProperties(()=>{},{...zo,level:{enumerable:!0,get(){return this[Bp].level},set(e){this[Bp].level=e}}}),Hp=(e,t,r)=>{let n,o;return r===void 0?(n=e,o=t):(n=r.openAll+e,o=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:o,parent:r}},vc=(e,t,r)=>{let n=(...o)=>PM(n,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(n,CM),n[Bp]=e,n[Ko]=t,n[ai]=r,n},PM=(e,t)=>{if(e.level<=0||!t)return e[ai]?"":t;let r=e[Ko];if(r===void 0)return t;let{openAll:n,closeAll:o}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Cv(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
5
+ `);return s!==-1&&(t=Pv(t,o,n,s)),n+t+o};Object.defineProperties(ci.prototype,zo);$M=ci(),QZ=ci({level:Nv?Nv.level:0}),Q=$M});function pi(e,t){return function(){return e.apply(t,arguments)}}var zp=b(()=>{"use strict"});function di(e){return e!==null&&!Wo(e)&&e.constructor!==null&&!Wo(e.constructor)&&Yt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}function lD(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Hv(e.buffer),t}function mi(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Vo(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(di(e))return;let s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length,a;for(n=0;n<i;n++)a=s[n],t.call(null,e[a],a,e)}}function zv(e,t){if(di(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}function Wp(){let{caseless:e,skipUndefined:t}=Wv(this)&&this||{},r={},n=(o,s)=>{let i=e&&zv(r,s)||s;bc(r[i])&&bc(o)?r[i]=Wp(r[i],o):bc(o)?r[i]=Wp({},o):Vo(o)?r[i]=o.slice():(!t||!Wo(o))&&(r[i]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&mi(arguments[o],n);return r}function UD(e){return!!(e&&Yt(e.append)&&e[Gv]==="FormData"&&e[_c])}var cD,Vp,_c,Gv,Sc,Or,Tc,Vo,Wo,Hv,uD,Yt,Kv,fi,pD,bc,dD,fD,mD,hD,gD,yD,wD,vD,xD,bD,_D,SD,TD,oo,Wv,kD,ED,RD,ID,AD,CD,PD,$D,OD,ND,MD,Bv,DD,Vv,LD,FD,qD,jD,BD,GD,HD,Yv,KD,zD,_,Be=b(()=>{"use strict";zp();({toString:cD}=Object.prototype),{getPrototypeOf:Vp}=Object,{iterator:_c,toStringTag:Gv}=Symbol,Sc=(e=>t=>{let r=cD.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Or=e=>(e=e.toLowerCase(),t=>Sc(t)===e),Tc=e=>t=>typeof t===e,{isArray:Vo}=Array,Wo=Tc("undefined");Hv=Or("ArrayBuffer");uD=Tc("string"),Yt=Tc("function"),Kv=Tc("number"),fi=e=>e!==null&&typeof e=="object",pD=e=>e===!0||e===!1,bc=e=>{if(Sc(e)!=="object")return!1;let t=Vp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Gv in e)&&!(_c in e)},dD=e=>{if(!fi(e)||di(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},fD=Or("Date"),mD=Or("File"),hD=Or("Blob"),gD=Or("FileList"),yD=e=>fi(e)&&Yt(e.pipe),wD=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Yt(e.append)&&((t=Sc(e))==="formdata"||t==="object"&&Yt(e.toString)&&e.toString()==="[object FormData]"))},vD=Or("URLSearchParams"),[xD,bD,_D,SD]=["ReadableStream","Request","Response","Headers"].map(Or),TD=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");oo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wv=e=>!Wo(e)&&e!==oo;kD=(e,t,r,{allOwnKeys:n}={})=>(mi(t,(o,s)=>{r&&Yt(o)?e[s]=pi(o,r):e[s]=o},{allOwnKeys:n}),e),ED=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),RD=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},ID=(e,t,r,n)=>{let o,s,i,a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!n||n(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=r!==!1&&Vp(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},AD=(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},CD=e=>{if(!e)return null;if(Vo(e))return e;let t=e.length;if(!Kv(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},PD=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Vp(Uint8Array)),$D=(e,t)=>{let n=(e&&e[_c]).call(e),o;for(;(o=n.next())&&!o.done;){let s=o.value;t.call(e,s[0],s[1])}},OD=(e,t)=>{let r,n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},ND=Or("HTMLFormElement"),MD=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Bv=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),DD=Or("RegExp"),Vv=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};mi(r,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(n[s]=i||o)}),Object.defineProperties(e,n)},LD=e=>{Vv(e,(t,r)=>{if(Yt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let n=e[r];if(Yt(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+"'")})}})},FD=(e,t)=>{let r={},n=o=>{o.forEach(s=>{r[s]=!0})};return Vo(e)?n(e):n(String(e).split(t)),r},qD=()=>{},jD=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;BD=e=>{let t=new Array(10),r=(n,o)=>{if(fi(n)){if(t.indexOf(n)>=0)return;if(di(n))return n;if(!("toJSON"in n)){t[o]=n;let s=Vo(n)?[]:{};return mi(n,(i,a)=>{let c=r(i,o+1);!Wo(c)&&(s[a]=c)}),t[o]=void 0,s}}return n};return r(e,0)},GD=Or("AsyncFunction"),HD=e=>e&&(fi(e)||Yt(e))&&Yt(e.then)&&Yt(e.catch),Yv=((e,t)=>e?setImmediate:t?((r,n)=>(oo.addEventListener("message",({source:o,data:s})=>{o===oo&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),oo.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Yt(oo.postMessage)),KD=typeof queueMicrotask<"u"?queueMicrotask.bind(oo):typeof process<"u"&&process.nextTick||Yv,zD=e=>e!=null&&Yt(e[_c]),_={isArray:Vo,isArrayBuffer:Hv,isBuffer:di,isFormData:wD,isArrayBufferView:lD,isString:uD,isNumber:Kv,isBoolean:pD,isObject:fi,isPlainObject:bc,isEmptyObject:dD,isReadableStream:xD,isRequest:bD,isResponse:_D,isHeaders:SD,isUndefined:Wo,isDate:fD,isFile:mD,isBlob:hD,isRegExp:DD,isFunction:Yt,isStream:yD,isURLSearchParams:vD,isTypedArray:PD,isFileList:gD,forEach:mi,merge:Wp,extend:kD,trim:TD,stripBOM:ED,inherits:RD,toFlatObject:ID,kindOf:Sc,kindOfTest:Or,endsWith:AD,toArray:CD,forEachEntry:$D,matchAll:OD,isHTMLForm:ND,hasOwnProperty:Bv,hasOwnProp:Bv,reduceDescriptors:Vv,freezeMethods:LD,toObjectSet:FD,toCamelCase:MD,noop:qD,toFiniteNumber:jD,findKey:zv,global:oo,isContextDefined:Wv,isSpecCompliantForm:UD,toJSONObject:BD,isAsyncFn:GD,isThenable:HD,setImmediate:Yv,asap:KD,isIterable:zD}});function Yo(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}var Jv,Xv,j,lr=b(()=>{"use strict";Be();_.inherits(Yo,Error,{toJSON:function(){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:_.toJSONObject(this.config),code:this.code,status:this.status}}});Jv=Yo.prototype,Xv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Xv[e]={value:e}});Object.defineProperties(Yo,Xv);Object.defineProperty(Jv,"isAxiosError",{value:!0});Yo.from=(e,t,r,n,o,s)=>{let i=Object.create(Jv);_.toFlatObject(e,i,function(p){return p!==Error.prototype},l=>l!=="isAxiosError");let a=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return Yo.call(i,a,c,r,n,o),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",s&&Object.assign(i,s),i};j=Yo});var ex=v((Ree,Zv)=>{var Qv=Ue("stream").Stream,WD=Ue("util");Zv.exports=Nr;function Nr(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}WD.inherits(Nr,Qv);Nr.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(Nr.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});Nr.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Nr.prototype.resume=function(){this._released||this.release(),this.source.resume()};Nr.prototype.pause=function(){this.source.pause()};Nr.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};Nr.prototype.pipe=function(){var e=Qv.prototype.pipe.apply(this,arguments);return this.resume(),e};Nr.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)};Nr.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 ox=v((Iee,nx)=>{var VD=Ue("util"),rx=Ue("stream").Stream,tx=ex();nx.exports=ct;function ct(){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}VD.inherits(ct,rx);ct.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};ct.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};ct.prototype.append=function(e){var t=ct.isStreamLike(e);if(t){if(!(e instanceof tx)){var r=tx.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};ct.prototype.pipe=function(e,t){return rx.prototype.pipe.call(this,e,t),this.resume(),e};ct.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}};ct.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=ct.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};ct.prototype._pipeNext=function(e){this._currentStream=e;var t=ct.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()};ct.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};ct.prototype.write=function(e){this.emit("data",e)};ct.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};ct.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")};ct.prototype.end=function(){this._reset(),this.emit("end")};ct.prototype.destroy=function(){this._reset(),this.emit("close")};ct.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};ct.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};ct.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)};ct.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var sx=v((Aee,YD)=>{YD.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var ax=v((Cee,ix)=>{ix.exports=sx()});var ux=v(Jt=>{"use strict";var kc=ax(),JD=Ue("path").extname,cx=/^\s*([^;\s]*)(?:;|\s|$)/,XD=/^text\//i;Jt.charset=lx;Jt.charsets={lookup:lx};Jt.contentType=QD;Jt.extension=ZD;Jt.extensions=Object.create(null);Jt.lookup=eL;Jt.types=Object.create(null);tL(Jt.extensions,Jt.types);function lx(e){if(!e||typeof e!="string")return!1;var t=cx.exec(e),r=t&&kc[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&XD.test(t[1])?"UTF-8":!1}function QD(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Jt.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=Jt.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}function ZD(e){if(!e||typeof e!="string")return!1;var t=cx.exec(e),r=t&&Jt.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}function eL(e){if(!e||typeof e!="string")return!1;var t=JD("x."+e).toLowerCase().substr(1);return t&&Jt.types[t]||!1}function tL(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(kc).forEach(function(o){var s=kc[o],i=s.extensions;if(!(!i||!i.length)){e[o]=i;for(var a=0;a<i.length;a++){var c=i[a];if(t[c]){var l=r.indexOf(kc[t[c]].source),p=r.indexOf(s.source);if(t[c]!=="application/octet-stream"&&(l>p||l===p&&t[c].substr(0,12)==="application/"))continue}t[c]=o}}})}});var dx=v(($ee,px)=>{px.exports=rL;function rL(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}});var Yp=v((Oee,mx)=>{var fx=dx();mx.exports=nL;function nL(e){var t=!1;return fx(function(){t=!0}),function(n,o){t?e(n,o):fx(function(){e(n,o)})}}});var Jp=v((Nee,hx)=>{hx.exports=oL;function oL(e){Object.keys(e.jobs).forEach(sL.bind(e)),e.jobs={}}function sL(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}});var Xp=v((Mee,yx)=>{var gx=Yp(),iL=Jp();yx.exports=aL;function aL(e,t,r,n){var o=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[o]=cL(t,o,e[o],function(s,i){o in r.jobs&&(delete r.jobs[o],s?iL(r):r.results[o]=i,n(s,r.results))})}function cL(e,t,r,n){var o;return e.length==2?o=e(r,gx(n)):o=e(r,t,gx(n)),o}});var Qp=v((Dee,wx)=>{wx.exports=lL;function lL(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,s){return t(e[o],e[s])}),n}});var Zp=v((Lee,vx)=>{var uL=Jp(),pL=Yp();vx.exports=dL;function dL(e){Object.keys(this.jobs).length&&(this.index=this.size,uL(this),pL(e)(null,this.results))}});var bx=v((Fee,xx)=>{var fL=Xp(),mL=Qp(),hL=Zp();xx.exports=gL;function gL(e,t,r){for(var n=mL(e);n.index<(n.keyedList||e).length;)fL(e,t,n,function(o,s){if(o){r(o,s);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}),n.index++;return hL.bind(n,r)}});var ed=v((qee,Ec)=>{var _x=Xp(),yL=Qp(),wL=Zp();Ec.exports=vL;Ec.exports.ascending=Sx;Ec.exports.descending=xL;function vL(e,t,r,n){var o=yL(e,r);return _x(e,t,o,function s(i,a){if(i){n(i,a);return}if(o.index++,o.index<(o.keyedList||e).length){_x(e,t,o,s);return}n(null,o.results)}),wL.bind(o,n)}function Sx(e,t){return e<t?-1:e>t?1:0}function xL(e,t){return-1*Sx(e,t)}});var kx=v((jee,Tx)=>{var bL=ed();Tx.exports=_L;function _L(e,t,r){return bL(e,t,null,r)}});var Rx=v((Uee,Ex)=>{Ex.exports={parallel:bx(),serial:kx(),serialOrdered:ed()}});var td=v((Bee,Ix)=>{"use strict";Ix.exports=Object});var Cx=v((Gee,Ax)=>{"use strict";Ax.exports=Error});var $x=v((Hee,Px)=>{"use strict";Px.exports=EvalError});var Nx=v((Kee,Ox)=>{"use strict";Ox.exports=RangeError});var Dx=v((zee,Mx)=>{"use strict";Mx.exports=ReferenceError});var Fx=v((Wee,Lx)=>{"use strict";Lx.exports=SyntaxError});var Rc=v((Vee,qx)=>{"use strict";qx.exports=TypeError});var Ux=v((Yee,jx)=>{"use strict";jx.exports=URIError});var Gx=v((Jee,Bx)=>{"use strict";Bx.exports=Math.abs});var Kx=v((Xee,Hx)=>{"use strict";Hx.exports=Math.floor});var Wx=v((Qee,zx)=>{"use strict";zx.exports=Math.max});var Yx=v((Zee,Vx)=>{"use strict";Vx.exports=Math.min});var Xx=v((ete,Jx)=>{"use strict";Jx.exports=Math.pow});var Zx=v((tte,Qx)=>{"use strict";Qx.exports=Math.round});var tb=v((rte,eb)=>{"use strict";eb.exports=Number.isNaN||function(t){return t!==t}});var nb=v((nte,rb)=>{"use strict";var SL=tb();rb.exports=function(t){return SL(t)||t===0?t:t<0?-1:1}});var sb=v((ote,ob)=>{"use strict";ob.exports=Object.getOwnPropertyDescriptor});var rd=v((ste,ib)=>{"use strict";var Ic=sb();if(Ic)try{Ic([],"length")}catch{Ic=null}ib.exports=Ic});var cb=v((ite,ab)=>{"use strict";var Ac=Object.defineProperty||!1;if(Ac)try{Ac({},"a",{value:1})}catch{Ac=!1}ab.exports=Ac});var nd=v((ate,lb)=>{"use strict";lb.exports=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 s 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 i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==o||a.enumerable!==!0)return!1}return!0}});var db=v((cte,pb)=>{"use strict";var ub=typeof Symbol<"u"&&Symbol,TL=nd();pb.exports=function(){return typeof ub!="function"||typeof Symbol!="function"||typeof ub("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:TL()}});var od=v((lte,fb)=>{"use strict";fb.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var sd=v((ute,mb)=>{"use strict";var kL=td();mb.exports=kL.getPrototypeOf||null});var yb=v((pte,gb)=>{"use strict";var EL="Function.prototype.bind called on incompatible ",RL=Object.prototype.toString,IL=Math.max,AL="[object Function]",hb=function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var s=0;s<r.length;s+=1)n[s+t.length]=r[s];return n},CL=function(t,r){for(var n=[],o=r||0,s=0;o<t.length;o+=1,s+=1)n[s]=t[o];return n},PL=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};gb.exports=function(t){var r=this;if(typeof r!="function"||RL.apply(r)!==AL)throw new TypeError(EL+r);for(var n=CL(arguments,1),o,s=function(){if(this instanceof o){var p=r.apply(this,hb(n,arguments));return Object(p)===p?p:this}return r.apply(t,hb(n,arguments))},i=IL(0,r.length-n.length),a=[],c=0;c<i;c++)a[c]="$"+c;if(o=Function("binder","return function ("+PL(a,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var l=function(){};l.prototype=r.prototype,o.prototype=new l,l.prototype=null}return o}});var hi=v((dte,wb)=>{"use strict";var $L=yb();wb.exports=Function.prototype.bind||$L});var Cc=v((fte,vb)=>{"use strict";vb.exports=Function.prototype.call});var id=v((mte,xb)=>{"use strict";xb.exports=Function.prototype.apply});var _b=v((hte,bb)=>{"use strict";bb.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Tb=v((gte,Sb)=>{"use strict";var OL=hi(),NL=id(),ML=Cc(),DL=_b();Sb.exports=DL||OL.call(ML,NL)});var Eb=v((yte,kb)=>{"use strict";var LL=hi(),FL=Rc(),qL=Cc(),jL=Tb();kb.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new FL("a function is required");return jL(LL,qL,t)}});var $b=v((wte,Pb)=>{"use strict";var UL=Eb(),Rb=rd(),Ab;try{Ab=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var ad=!!Ab&&Rb&&Rb(Object.prototype,"__proto__"),Cb=Object,Ib=Cb.getPrototypeOf;Pb.exports=ad&&typeof ad.get=="function"?UL([ad.get]):typeof Ib=="function"?function(t){return Ib(t==null?t:Cb(t))}:!1});var Lb=v((vte,Db)=>{"use strict";var Ob=od(),Nb=sd(),Mb=$b();Db.exports=Ob?function(t){return Ob(t)}:Nb?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return Nb(t)}:Mb?function(t){return Mb(t)}:null});var Pc=v((xte,Fb)=>{"use strict";var BL=Function.prototype.call,GL=Object.prototype.hasOwnProperty,HL=hi();Fb.exports=HL.call(BL,GL)});var Kb=v((bte,Hb)=>{"use strict";var ve,KL=td(),zL=Cx(),WL=$x(),VL=Nx(),YL=Dx(),Zo=Fx(),Qo=Rc(),JL=Ux(),XL=Gx(),QL=Kx(),ZL=Wx(),e1=Yx(),t1=Xx(),r1=Zx(),n1=nb(),Bb=Function,cd=function(e){try{return Bb('"use strict"; return ('+e+").constructor;")()}catch{}},gi=rd(),o1=cb(),ld=function(){throw new Qo},s1=gi?(function(){try{return arguments.callee,ld}catch{try{return gi(arguments,"callee").get}catch{return ld}}})():ld,Jo=db()(),Tt=Lb(),i1=sd(),a1=od(),Gb=id(),yi=Cc(),Xo={},c1=typeof Uint8Array>"u"||!Tt?ve:Tt(Uint8Array),so={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ve:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ve:ArrayBuffer,"%ArrayIteratorPrototype%":Jo&&Tt?Tt([][Symbol.iterator]()):ve,"%AsyncFromSyncIteratorPrototype%":ve,"%AsyncFunction%":Xo,"%AsyncGenerator%":Xo,"%AsyncGeneratorFunction%":Xo,"%AsyncIteratorPrototype%":Xo,"%Atomics%":typeof Atomics>"u"?ve:Atomics,"%BigInt%":typeof BigInt>"u"?ve:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ve:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ve:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ve:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":zL,"%eval%":eval,"%EvalError%":WL,"%Float16Array%":typeof Float16Array>"u"?ve:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ve:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ve:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ve:FinalizationRegistry,"%Function%":Bb,"%GeneratorFunction%":Xo,"%Int8Array%":typeof Int8Array>"u"?ve:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ve:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ve:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Jo&&Tt?Tt(Tt([][Symbol.iterator]())):ve,"%JSON%":typeof JSON=="object"?JSON:ve,"%Map%":typeof Map>"u"?ve:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Jo||!Tt?ve:Tt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":KL,"%Object.getOwnPropertyDescriptor%":gi,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ve:Promise,"%Proxy%":typeof Proxy>"u"?ve:Proxy,"%RangeError%":VL,"%ReferenceError%":YL,"%Reflect%":typeof Reflect>"u"?ve:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ve:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Jo||!Tt?ve:Tt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ve:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Jo&&Tt?Tt(""[Symbol.iterator]()):ve,"%Symbol%":Jo?Symbol:ve,"%SyntaxError%":Zo,"%ThrowTypeError%":s1,"%TypedArray%":c1,"%TypeError%":Qo,"%Uint8Array%":typeof Uint8Array>"u"?ve:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ve:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ve:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ve:Uint32Array,"%URIError%":JL,"%WeakMap%":typeof WeakMap>"u"?ve:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ve:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ve:WeakSet,"%Function.prototype.call%":yi,"%Function.prototype.apply%":Gb,"%Object.defineProperty%":o1,"%Object.getPrototypeOf%":i1,"%Math.abs%":XL,"%Math.floor%":QL,"%Math.max%":ZL,"%Math.min%":e1,"%Math.pow%":t1,"%Math.round%":r1,"%Math.sign%":n1,"%Reflect.getPrototypeOf%":a1};if(Tt)try{null.error}catch(e){qb=Tt(Tt(e)),so["%Error.prototype%"]=qb}var qb,l1=function e(t){var r;if(t==="%AsyncFunction%")r=cd("async function () {}");else if(t==="%GeneratorFunction%")r=cd("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=cd("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Tt&&(r=Tt(o.prototype))}return so[t]=r,r},jb={__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"]},wi=hi(),$c=Pc(),u1=wi.call(yi,Array.prototype.concat),p1=wi.call(Gb,Array.prototype.splice),Ub=wi.call(yi,String.prototype.replace),Oc=wi.call(yi,String.prototype.slice),d1=wi.call(yi,RegExp.prototype.exec),f1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,m1=/\\(\\)?/g,h1=function(t){var r=Oc(t,0,1),n=Oc(t,-1);if(r==="%"&&n!=="%")throw new Zo("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Zo("invalid intrinsic syntax, expected opening `%`");var o=[];return Ub(t,f1,function(s,i,a,c){o[o.length]=a?Ub(c,m1,"$1"):i||s}),o},g1=function(t,r){var n=t,o;if($c(jb,n)&&(o=jb[n],n="%"+o[0]+"%"),$c(so,n)){var s=so[n];if(s===Xo&&(s=l1(n)),typeof s>"u"&&!r)throw new Qo("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:s}}throw new Zo("intrinsic "+t+" does not exist!")};Hb.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Qo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Qo('"allowMissing" argument must be a boolean');if(d1(/^%?[^%]*%?$/,t)===null)throw new Zo("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=h1(t),o=n.length>0?n[0]:"",s=g1("%"+o+"%",r),i=s.name,a=s.value,c=!1,l=s.alias;l&&(o=l[0],p1(n,u1([0,1],l)));for(var p=1,u=!0;p<n.length;p+=1){var d=n[p],g=Oc(d,0,1),m=Oc(d,-1);if((g==='"'||g==="'"||g==="`"||m==='"'||m==="'"||m==="`")&&g!==m)throw new Zo("property names with quotes must have matching quotes");if((d==="constructor"||!u)&&(c=!0),o+="."+d,i="%"+o+"%",$c(so,i))a=so[i];else if(a!=null){if(!(d in a)){if(!r)throw new Qo("base intrinsic for "+t+" exists, but the property is not available.");return}if(gi&&p+1>=n.length){var h=gi(a,d);u=!!h,u&&"get"in h&&!("originalValue"in h.get)?a=h.get:a=a[d]}else u=$c(a,d),a=a[d];u&&!c&&(so[i]=a)}}return a}});var Wb=v((_te,zb)=>{"use strict";var y1=nd();zb.exports=function(){return y1()&&!!Symbol.toStringTag}});var Jb=v((Ste,Yb)=>{"use strict";var w1=Kb(),Vb=w1("%Object.defineProperty%",!0),v1=Wb()(),x1=Pc(),b1=Rc(),Nc=v1?Symbol.toStringTag:null;Yb.exports=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 b1("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Nc&&(n||!x1(t,Nc))&&(Vb?Vb(t,Nc,{configurable:!o,enumerable:!1,value:r,writable:!1}):t[Nc]=r)}});var Qb=v((Tte,Xb)=>{"use strict";Xb.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var e_=v((kte,Zb)=>{"use strict";var fd=ox(),_1=Ue("util"),ud=Ue("path"),S1=Ue("http"),T1=Ue("https"),k1=Ue("url").parse,E1=Ue("fs"),R1=Ue("stream").Stream,I1=Ue("crypto"),pd=ux(),A1=Rx(),C1=Jb(),Pn=Pc(),dd=Qb();function Se(e){if(!(this instanceof Se))return new Se(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],fd.call(this),e=e||{};for(var t in e)this[t]=e[t]}_1.inherits(Se,fd);Se.LINE_BREAK=`\r
6
+ `;Se.DEFAULT_CONTENT_TYPE="application/octet-stream";Se.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=fd.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),s=this._multiPartFooter();n(o),n(t),n(s),this._trackLength(o,t,r)};Se.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)+Se.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Pn(t,"httpVersion"))&&!(t instanceof R1))&&(r.knownLength||this._valuesToMeasure.push(t))};Se.prototype._lengthRetriever=function(e,t){Pn(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):E1.stat(e.path,function(r,n){if(r){t(r);return}var o=n.size-(e.start?e.start:0);t(null,o)}):Pn(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Pn(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};Se.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),s="",i={"Content-Disposition":["form-data",'name="'+e+'"'].concat(n||[]),"Content-Type":[].concat(o||[])};typeof r.header=="object"&&dd(i,r.header);var a;for(var c in i)if(Pn(i,c)){if(a=i[c],a==null)continue;Array.isArray(a)||(a=[a]),a.length&&(s+=c+": "+a.join("; ")+Se.LINE_BREAK)}return"--"+this.getBoundary()+Se.LINE_BREAK+s+Se.LINE_BREAK};Se.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=ud.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=ud.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Pn(e,"httpVersion")&&(r=ud.basename(e.client._httpMessage.path||"")),r)return'filename="'+r+'"'};Se.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=pd.lookup(e.name)),!r&&e&&e.path&&(r=pd.lookup(e.path)),!r&&e&&e.readable&&Pn(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=pd.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=Se.DEFAULT_CONTENT_TYPE),r};Se.prototype._multiPartFooter=function(){return function(e){var t=Se.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};Se.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Se.LINE_BREAK};Se.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Pn(e,t)&&(r[t.toLowerCase()]=e[t]);return r};Se.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};Se.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Se.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(Se.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};Se.prototype._generateBoundary=function(){this._boundary="--------------------------"+I1.randomBytes(12).toString("hex")};Se.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};Se.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};Se.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}A1.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(o){t+=o}),e(null,t)})};Se.prototype.submit=function(e,t){var r,n,o={method:"post"};return typeof e=="string"?(e=k1(e),n=dd({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(n=dd(e,o),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=T1.request(n):r=S1.request(n),this.getLength(function(s,i){if(s&&s!=="Unknown stream"){this._error(s);return}if(i&&r.setHeader("Content-Length",i),this.pipe(r),t){var a,c=function(l,p){return r.removeListener("error",c),r.removeListener("response",a),t.call(this,l,p)};a=c.bind(this,null),r.on("error",c),r.on("response",a)}}.bind(this)),r};Se.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};Se.prototype.toString=function(){return"[object FormData]"};C1(Se,"FormData");Zb.exports=Se});var t_,Mc,md=b(()=>{t_=mn(e_(),1),Mc=t_.default});function hd(e){return _.isPlainObject(e)||_.isArray(e)}function n_(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function r_(e,t,r){return e?e.concat(t).map(function(o,s){return o=n_(o),!r&&s?"["+o+"]":o}).join(r?".":""):t}function P1(e){return _.isArray(e)&&!e.some(hd)}function O1(e,t,r){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new(Mc||FormData),r=_.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,w){return!_.isUndefined(w[h])});let n=r.metaTokens,o=r.visitor||p,s=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(t);if(!_.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(_.isDate(m))return m.toISOString();if(_.isBoolean(m))return m.toString();if(!c&&_.isBlob(m))throw new j("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(m)||_.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function p(m,h,w){let x=m;if(m&&!w&&typeof m=="object"){if(_.endsWith(h,"{}"))h=n?h:h.slice(0,-2),m=JSON.stringify(m);else if(_.isArray(m)&&P1(m)||(_.isFileList(m)||_.endsWith(h,"[]"))&&(x=_.toArray(m)))return h=n_(h),x.forEach(function(S,k){!(_.isUndefined(S)||S===null)&&t.append(i===!0?r_([h],k,s):i===null?h:h+"[]",l(S))}),!1}return hd(m)?!0:(t.append(r_(w,h,s),l(m)),!1)}let u=[],d=Object.assign($1,{defaultVisitor:p,convertValue:l,isVisitable:hd});function g(m,h){if(!_.isUndefined(m)){if(u.indexOf(m)!==-1)throw Error("Circular reference detected in "+h.join("."));u.push(m),_.forEach(m,function(x,E){(!(_.isUndefined(x)||x===null)&&o.call(t,x,_.isString(E)?E.trim():E,h,d))===!0&&g(x,h?h.concat(E):[E])}),u.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return g(e),t}var $1,$n,vi=b(()=>{"use strict";Be();lr();md();$1=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});$n=O1});function o_(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function s_(e,t){this._pairs=[],e&&$n(e,this,t)}var i_,a_,c_=b(()=>{"use strict";vi();i_=s_.prototype;i_.append=function(t,r){this._pairs.push([t,r])};i_.toString=function(t){let r=t?function(n){return t.call(this,n,o_)}:o_;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};a_=s_});function N1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function io(e,t,r){if(!t)return e;let n=r&&r.encode||N1;_.isFunction(r)&&(r={serialize:r});let o=r&&r.serialize,s;if(o?s=o(t,r):s=_.isURLSearchParams(t)?t.toString():new a_(t,r).toString(n),s){let i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}var Dc=b(()=>{"use strict";Be();c_()});var gd,yd,l_=b(()=>{"use strict";Be();gd=class{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){_.forEach(this.handlers,function(n){n!==null&&t(n)})}},yd=gd});var es,Lc=b(()=>{"use strict";es={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}});import M1 from"url";var u_,p_=b(()=>{"use strict";u_=M1.URLSearchParams});import D1 from"crypto";var wd,d_,f_,L1,m_,h_=b(()=>{p_();md();wd="abcdefghijklmnopqrstuvwxyz",d_="0123456789",f_={DIGIT:d_,ALPHA:wd,ALPHA_DIGIT:wd+wd.toUpperCase()+d_},L1=(e=16,t=f_.ALPHA_DIGIT)=>{let r="",{length:n}=t,o=new Uint32Array(e);D1.randomFillSync(o);for(let s=0;s<e;s++)r+=t[o[s]%n];return r},m_={isNode:!0,classes:{URLSearchParams:u_,FormData:Mc,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:f_,generateString:L1,protocols:["http","https","file","data"]}});var bd={};jp(bd,{hasBrowserEnv:()=>xd,hasStandardBrowserEnv:()=>F1,hasStandardBrowserWebWorkerEnv:()=>q1,navigator:()=>vd,origin:()=>j1});var xd,vd,F1,q1,j1,g_=b(()=>{xd=typeof window<"u"&&typeof document<"u",vd=typeof navigator=="object"&&navigator||void 0,F1=xd&&(!vd||["ReactNative","NativeScript","NS"].indexOf(vd.product)<0),q1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",j1=xd&&window.location.href||"http://localhost"});var Pe,Mr=b(()=>{h_();g_();Pe={...bd,...m_}});function _d(e,t){return $n(e,new Pe.classes.URLSearchParams,{visitor:function(r,n,o,s){return Pe.isNode&&_.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}var y_=b(()=>{"use strict";Be();vi();Mr()});function U1(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function B1(e){let t={},r=Object.keys(e),n,o=r.length,s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}function G1(e){function t(r,n,o,s){let i=r[s++];if(i==="__proto__")return!0;let a=Number.isFinite(+i),c=s>=r.length;return i=!i&&_.isArray(o)?o.length:i,c?(_.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!a):((!o[i]||!_.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],s)&&_.isArray(o[i])&&(o[i]=B1(o[i])),!a)}if(_.isFormData(e)&&_.isFunction(e.entries)){let r={};return _.forEachEntry(e,(n,o)=>{t(U1(n),o,r,0)}),r}return null}var Fc,Sd=b(()=>{"use strict";Be();Fc=G1});function H1(e,t,r){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Td,ts,qc=b(()=>{"use strict";Be();lr();Lc();vi();y_();Mr();Sd();Td={transitional:es,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){let n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=_.isObject(t);if(s&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return o?JSON.stringify(Fc(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t)||_.isReadableStream(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return _d(t,this.formSerializer).toString();if((a=_.isFileList(t))||n.indexOf("multipart/form-data")>-1){let c=this.env&&this.env.FormData;return $n(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),H1(t)):t}],transformResponse:[function(t){let r=this.transitional||Td.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(_.isResponse(t)||_.isReadableStream(t))return t;if(t&&_.isString(t)&&(n&&!this.responseType||o)){let i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(i)throw a.name==="SyntaxError"?j.from(a,j.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pe.classes.FormData,Blob:Pe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],e=>{Td.headers[e]={}});ts=Td});var K1,w_,v_=b(()=>{"use strict";Be();K1=_.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"]),w_=e=>{let t={},r,n,o;return e&&e.split(`
7
+ `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&K1[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t}});function xi(e){return e&&String(e).trim().toLowerCase()}function jc(e){return e===!1||e==null?e:_.isArray(e)?e.map(jc):String(e)}function z1(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}function kd(e,t,r,n,o){if(_.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!_.isString(t)){if(_.isString(n))return t.indexOf(n)!==-1;if(_.isRegExp(n))return n.test(t)}}function V1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Y1(e,t){let r=_.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,s,i){return this[n].call(this,t,o,s,i)},configurable:!0})})}var x_,W1,rs,ot,Wr=b(()=>{"use strict";Be();v_();x_=Symbol("internals");W1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());rs=class{constructor(t){t&&this.set(t)}set(t,r,n){let o=this;function s(a,c,l){let p=xi(c);if(!p)throw new Error("header name must be a non-empty string");let u=_.findKey(o,p);(!u||o[u]===void 0||l===!0||l===void 0&&o[u]!==!1)&&(o[u||c]=jc(a))}let i=(a,c)=>_.forEach(a,(l,p)=>s(l,p,c));if(_.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(_.isString(t)&&(t=t.trim())&&!W1(t))i(w_(t),r);else if(_.isObject(t)&&_.isIterable(t)){let a={},c,l;for(let p of t){if(!_.isArray(p))throw TypeError("Object iterator must return a key-value pair");a[l=p[0]]=(c=a[l])?_.isArray(c)?[...c,p[1]]:[c,p[1]]:p[1]}i(a,r)}else t!=null&&s(r,t,n);return this}get(t,r){if(t=xi(t),t){let n=_.findKey(this,t);if(n){let o=this[n];if(!r)return o;if(r===!0)return z1(o);if(_.isFunction(r))return r.call(this,o,n);if(_.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=xi(t),t){let n=_.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||kd(this,this[n],n,r)))}return!1}delete(t,r){let n=this,o=!1;function s(i){if(i=xi(i),i){let a=_.findKey(n,i);a&&(!r||kd(n,n[a],a,r))&&(delete n[a],o=!0)}}return _.isArray(t)?t.forEach(s):s(t),o}clear(t){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let s=r[n];(!t||kd(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){let r=this,n={};return _.forEach(this,(o,s)=>{let i=_.findKey(n,s);if(i){r[i]=jc(o),delete r[s];return}let a=t?V1(s):String(s).trim();a!==s&&delete r[s],r[a]=jc(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return _.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&_.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(`
8
+ `)}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[x_]=this[x_]={accessors:{}}).accessors,o=this.prototype;function s(i){let a=xi(i);n[a]||(Y1(o,i),n[a]=!0)}return _.isArray(t)?t.forEach(s):s(t),this}};rs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.reduceDescriptors(rs.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});_.freezeMethods(rs);ot=rs});function bi(e,t){let r=this||ts,n=t||r,o=ot.from(n.headers),s=n.data;return _.forEach(e,function(a){s=a.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}var b_=b(()=>{"use strict";Be();qc();Wr()});function _i(e){return!!(e&&e.__CANCEL__)}var Ed=b(()=>{"use strict"});function __(e,t,r){j.call(this,e??"canceled",j.ERR_CANCELED,t,r),this.name="CanceledError"}var ur,ao=b(()=>{"use strict";lr();Be();_.inherits(__,j,{__CANCEL__:!0});ur=__});function Vr(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new j("Request failed with status code "+r.status,[j.ERR_BAD_REQUEST,j.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}var Uc=b(()=>{"use strict";lr()});function Rd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}var S_=b(()=>{"use strict"});function Id(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}var T_=b(()=>{"use strict"});function co(e,t,r){let n=!Rd(t);return e&&(n||r==!1)?Id(e,t):t}var Bc=b(()=>{"use strict";S_();T_()});var E_=v(k_=>{"use strict";var J1=Ue("url").parse,X1={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},Q1=String.prototype.endsWith||function(e){return e.length<=this.length&&this.indexOf(e,this.length-e.length)!==-1};function Z1(e){var t=typeof e=="string"?J1(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)||X1[r]||0,!eF(n,o)))return"";var s=ns("npm_config_"+r+"_proxy")||ns(r+"_proxy")||ns("npm_config_proxy")||ns("all_proxy");return s&&s.indexOf("://")===-1&&(s=r+"://"+s),s}function eF(e,t){var r=(ns("npm_config_no_proxy")||ns("no_proxy")).toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(n){if(!n)return!0;var o=n.match(/^(.+):(\d+)$/),s=o?o[1]:n,i=o?parseInt(o[2]):0;return i&&i!==t?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!Q1.call(e,s)):e!==s}):!0}function ns(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}k_.getProxyForUrl=Z1});var I_=v((Ire,R_)=>{var os=1e3,ss=os*60,is=ss*60,lo=is*24,tF=lo*7,rF=lo*365.25;R_.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return nF(e);if(r==="number"&&isFinite(e))return t.long?sF(e):oF(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function nF(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*rF;case"weeks":case"week":case"w":return r*tF;case"days":case"day":case"d":return r*lo;case"hours":case"hour":case"hrs":case"hr":case"h":return r*is;case"minutes":case"minute":case"mins":case"min":case"m":return r*ss;case"seconds":case"second":case"secs":case"sec":case"s":return r*os;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function oF(e){var t=Math.abs(e);return t>=lo?Math.round(e/lo)+"d":t>=is?Math.round(e/is)+"h":t>=ss?Math.round(e/ss)+"m":t>=os?Math.round(e/os)+"s":e+"ms"}function sF(e){var t=Math.abs(e);return t>=lo?Gc(e,t,lo,"day"):t>=is?Gc(e,t,is,"hour"):t>=ss?Gc(e,t,ss,"minute"):t>=os?Gc(e,t,os,"second"):e+" ms"}function Gc(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var Ad=v((Are,A_)=>{function iF(e){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=I_(),r.destroy=l,Object.keys(e).forEach(p=>{r[p]=e[p]}),r.names=[],r.skips=[],r.formatters={};function t(p){let u=0;for(let d=0;d<p.length;d++)u=(u<<5)-u+p.charCodeAt(d),u|=0;return r.colors[Math.abs(u)%r.colors.length]}r.selectColor=t;function r(p){let u,d=null,g,m;function h(...w){if(!h.enabled)return;let x=h,E=Number(new Date),S=E-(u||E);x.diff=S,x.prev=u,x.curr=E,u=E,w[0]=r.coerce(w[0]),typeof w[0]!="string"&&w.unshift("%O");let k=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,(C,P)=>{if(C==="%%")return"%";k++;let $=r.formatters[P];if(typeof $=="function"){let H=w[k];C=$.call(x,H),w.splice(k,1),k--}return C}),r.formatArgs.call(x,w),(x.log||r.log).apply(x,w)}return h.namespace=p,h.useColors=r.useColors(),h.color=r.selectColor(p),h.extend=n,h.destroy=r.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(g!==r.namespaces&&(g=r.namespaces,m=r.enabled(p)),m),set:w=>{d=w}}),typeof r.init=="function"&&r.init(h),h}function n(p,u){let d=r(this.namespace+(typeof u>"u"?":":u)+p);return d.log=this.log,d}function o(p){r.save(p),r.namespaces=p,r.names=[],r.skips=[];let u=(typeof p=="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of u)d[0]==="-"?r.skips.push(d.slice(1)):r.names.push(d)}function s(p,u){let d=0,g=0,m=-1,h=0;for(;d<p.length;)if(g<u.length&&(u[g]===p[d]||u[g]==="*"))u[g]==="*"?(m=g,h=d,g++):(d++,g++);else if(m!==-1)g=m+1,h++,d=h;else return!1;for(;g<u.length&&u[g]==="*";)g++;return g===u.length}function i(){let p=[...r.names,...r.skips.map(u=>"-"+u)].join(",");return r.enable(""),p}function a(p){for(let u of r.skips)if(s(p,u))return!1;for(let u of r.names)if(s(p,u))return!0;return!1}function c(p){return p instanceof Error?p.stack||p.message:p}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}A_.exports=iF});var C_=v((Xt,Hc)=>{Xt.formatArgs=cF;Xt.save=lF;Xt.load=uF;Xt.useColors=aF;Xt.storage=pF();Xt.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`."))}})();Xt.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 aF(){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+)/)}function cF(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Hc.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)}Xt.log=console.debug||console.log||(()=>{});function lF(e){try{e?Xt.storage.setItem("debug",e):Xt.storage.removeItem("debug")}catch{}}function uF(){let e;try{e=Xt.storage.getItem("debug")||Xt.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function pF(){try{return localStorage}catch{}}Hc.exports=Ad()(Xt);var{formatters:dF}=Hc.exports;dF.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var $_=v((Cre,P_)=>{"use strict";P_.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 M_=v((Pre,N_)=>{"use strict";var fF=Ue("os"),O_=Ue("tty"),xr=$_(),{env:kt}=process,On;xr("no-color")||xr("no-colors")||xr("color=false")||xr("color=never")?On=0:(xr("color")||xr("colors")||xr("color=true")||xr("color=always"))&&(On=1);"FORCE_COLOR"in kt&&(kt.FORCE_COLOR==="true"?On=1:kt.FORCE_COLOR==="false"?On=0:On=kt.FORCE_COLOR.length===0?1:Math.min(parseInt(kt.FORCE_COLOR,10),3));function Cd(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Pd(e,t){if(On===0)return 0;if(xr("color=16m")||xr("color=full")||xr("color=truecolor"))return 3;if(xr("color=256"))return 2;if(e&&!t&&On===void 0)return 0;let r=On||0;if(kt.TERM==="dumb")return r;if(process.platform==="win32"){let n=fF.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in kt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in kt)||kt.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in kt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(kt.TEAMCITY_VERSION)?1:0;if(kt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in kt){let n=parseInt((kt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(kt.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(kt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(kt.TERM)||"COLORTERM"in kt?1:r}function mF(e){let t=Pd(e,e&&e.isTTY);return Cd(t)}N_.exports={supportsColor:mF,stdout:Cd(Pd(!0,O_.isatty(1))),stderr:Cd(Pd(!0,O_.isatty(2)))}});var L_=v((Et,zc)=>{var hF=Ue("tty"),Kc=Ue("util");Et.init=_F;Et.log=vF;Et.formatArgs=yF;Et.save=xF;Et.load=bF;Et.useColors=gF;Et.destroy=Kc.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Et.colors=[6,2,3,4,5,1];try{let e=M_();e&&(e.stderr||e).level>=2&&(Et.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{}Et.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,s)=>s.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 gF(){return"colors"in Et.inspectOpts?!!Et.inspectOpts.colors:hF.isatty(process.stderr.fd)}function yF(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,o="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${o};1m${t} \x1B[0m`;e[0]=s+e[0].split(`
5
9
  `).join(`
6
- `+s),e.push(o+"m+"+cl.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=R1()+t+" "+e[0]}function R1(){return Nt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function I1(...e){return process.stderr.write(al.formatWithOptions(Nt.inspectOpts,...e)+`
7
- `)}function P1(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function A1(){return process.env.DEBUG}function C1(e){e.inspectOpts={};let t=Object.keys(Nt.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=Nt.inspectOpts[t[r]]}cl.exports=_d()(Nt);var{formatters:Kb}=cl.exports;Kb.o=function(e){return this.inspectOpts.colors=this.useColors,al.inspect(e,this.inspectOpts).split(`
8
- `).map(t=>t.trim()).join(" ")};Kb.O=function(e){return this.inspectOpts.colors=this.useColors,al.inspect(e,this.inspectOpts)}});var Jb=w((oee,kd)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?kd.exports=zb():kd.exports=Yb()});var Qb=w((see,Xb)=>{var Hi;Xb.exports=function(){if(!Hi){try{Hi=Jb()("follow-redirects")}catch{}typeof Hi!="function"&&(Hi=function(){})}Hi.apply(null,arguments)}});var n_=w((iee,jd)=>{var Wi=vt("url"),Vi=Wi.URL,$1=vt("http"),O1=vt("https"),Cd=vt("stream").Writable,$d=vt("assert"),Zb=Qb();(function(){var t=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=Mo(Error.captureStackTrace);!t&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var Od=!1;try{$d(new Vi(""))}catch(e){Od=e.code==="ERR_INVALID_URL"}var N1=["Authorization","Proxy-Authorization","Cookie"],M1=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Nd=["abort","aborted","connect","error","socket","timeout"],Md=Object.create(null);Nd.forEach(function(e){Md[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var Id=Ki("ERR_INVALID_URL","Invalid URL",TypeError),Pd=Ki("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),D1=Ki("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Pd),L1=Ki("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),j1=Ki("ERR_STREAM_WRITE_AFTER_END","write after end"),F1=Cd.prototype.destroy||t_;function fr(e,t){Cd.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 Pd?o:new Pd({cause:o}))}},this._headerFilter=new RegExp("^(?:"+N1.concat(e.sensitiveHeaders).map(H1).join("|")+")$","i"),this._performRequest()}fr.prototype=Object.create(Cd.prototype);fr.prototype.abort=function(){Ld(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};fr.prototype.destroy=function(e){return Ld(this._currentRequest,e),F1.call(this,e),this};fr.prototype.write=function(e,t,r){if(this._ending)throw new j1;if(!No(e)&&!z1(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Mo(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 L1),this.abort())};fr.prototype.end=function(e,t,r){if(Mo(e)?(r=e,e=t=null):Mo(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}};fr.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};fr.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};fr.prototype.setTimeout=function(e,t){var r=this;function n(i){i.setTimeout(e),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function o(i){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},e),n(i)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),r.removeListener("close",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){fr.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(fr.prototype,e,{get:function(){return this._currentRequest[e]}})});fr.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),G1(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))}};fr.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 Nd)n.on(o,Md[o]);if(this._currentUrl=/^\//.test(this._options.path)?Wi.format(this._options):this._options.path,this._isRedirect){var s=0,i=this,a=this._requestBodyBuffers;(function c(l){if(n===i._currentRequest)if(l)i.emit("error",l);else if(s<a.length){var u=a[s++];n.finished||n.write(u.data,u.encoding,c)}else i._ended&&n.end()})()}};fr.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(Ld(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new D1;var n,o=this._options.beforeRedirect;o&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=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=[],Rd(/^content-/i,this._options.headers));var i=Rd(/^host$/i,this._options.headers),a=Dd(this._currentUrl),c=i||a.host,l=/^\w+:/.test(r)?this._currentUrl:Wi.format(Object.assign(a,{host:c})),u=q1(r,l);if(Zb("redirecting to",u.href),this._isRedirect=!0,Ad(u,this._options),(u.protocol!==a.protocol&&u.protocol!=="https:"||u.host!==c&&!U1(u.host,c))&&Rd(this._headerFilter,this._options.headers),Mo(o)){var p={headers:e.headers,statusCode:t},m={url:l,method:s,headers:n};o(this._options,p,m),this._sanitizeOptions(this._options)}this._performRequest()};function e_(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var o=n+":",s=r[o]=e[n],i=t[n]=Object.create(s);function a(l,u,p){return B1(l)?l=Ad(l):No(l)?l=Ad(Dd(l)):(p=u,u=r_(l),l={protocol:o}),Mo(u)&&(p=u,u=null),u=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},l,u),u.nativeProtocols=r,!No(u.host)&&!No(u.hostname)&&(u.hostname="::1"),$d.equal(u.protocol,o,"protocol mismatch"),Zb("options",u),new fr(u,p)}function c(l,u,p){var m=i.request(l,u,p);return m.end(),m}Object.defineProperties(i,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function t_(){}function Dd(e){var t;if(Od)t=new Vi(e);else if(t=r_(Wi.parse(e)),!No(t.protocol))throw new Id({input:e});return t}function q1(e,t){return Od?new Vi(e,t):Dd(Wi.resolve(t,e))}function r_(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Id({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Id({input:e.href||e});return e}function Ad(e,t){var r=t||{};for(var n of M1)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}function Rd(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()}function Ki(e,t,r){function n(o){Mo(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,o||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}function Ld(e,t){for(var r of Nd)e.removeListener(r,Md[r]);e.on("error",t_),e.destroy(t)}function U1(e,t){$d(No(e)&&No(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function G1(e){return e instanceof Array}function No(e){return typeof e=="string"||e instanceof String}function Mo(e){return typeof e=="function"}function z1(e){return typeof e=="object"&&"length"in e}function B1(e){return Vi&&e instanceof Vi}function H1(e){return e.replace(/[\]\\/()*+?.$]/g,"\\$&")}jd.exports=e_({http:$1,https:O1});jd.exports.wrap=e_});var Do,ll=S(()=>{Do="1.15.0"});function Yi(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}var Fd=S(()=>{"use strict"});function qd(e,t,r){let n=r&&r.Blob||Fe.classes.Blob,o=Yi(e);if(t===void 0&&n&&(t=!0),o==="data"){e=o.length?e.slice(o.length+1):e;let s=V1.exec(e);if(!s)throw new F("Invalid URL",F.ERR_INVALID_URL);let i=s[1],a=s[2],c=s[3],l=Buffer.from(decodeURIComponent(c),a?"base64":"utf8");if(t){if(!n)throw new F("Blob is not supported",F.ERR_NOT_SUPPORT);return new n([l],{type:i})}return l}throw new F("Unsupported protocol "+o,F.ERR_NOT_SUPPORT)}var V1,o_=S(()=>{"use strict";Ir();Fd();en();V1=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/});import W1 from"stream";var Ud,Gd,zd,s_=S(()=>{"use strict";et();Ud=Symbol("internals"),Gd=class extends W1.Transform{constructor(t){t=b.toFlatObject(t,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,o)=>!b.isUndefined(o[n])),super({readableHighWaterMark:t.chunkSize});let r=this[Ud]={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[Ud];return r.onReadCallback&&r.onReadCallback(),super._read(t)}_transform(t,r,n){let o=this[Ud],s=o.maxRate,i=this.readableHighWaterMark,a=o.timeWindow,c=1e3/a,l=s/c,u=o.minChunkSize!==!1?Math.max(o.minChunkSize,l*.01):0,p=(h,f)=>{let g=Buffer.byteLength(h);o.bytesSeen+=g,o.bytes+=g,o.isCaptured&&this.emit("progress",o.bytesSeen),this.push(h)?process.nextTick(f):o.onReadCallback=()=>{o.onReadCallback=null,process.nextTick(f)}},m=(h,f)=>{let g=Buffer.byteLength(h),v=null,x=i,I,k=0;if(s){let P=Date.now();(!o.ts||(k=P-o.ts)>=a)&&(o.ts=P,I=l-o.bytes,o.bytes=I<0?-I:0,k=0),I=l-o.bytes}if(s){if(I<=0)return setTimeout(()=>{f(null,h)},a-k);I<x&&(x=I)}x&&g>x&&g-x>u&&(v=h.subarray(x),h=h.subarray(0,x)),p(h,v?()=>{process.nextTick(f,null,v)}:f)};m(t,function h(f,g){if(f)return n(f);g?m(g,h):n(null)})}},zd=Gd});var i_,K1,ul,Bd=S(()=>{({asyncIterator:i_}=Symbol),K1=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[i_]?yield*e[i_]():yield e},ul=K1});import Y1 from"util";import{Readable as J1}from"stream";var X1,Ji,Lo,Q1,Z1,Hd,eL,a_,c_=S(()=>{et();Bd();en();X1=Fe.ALPHABET.ALPHA_DIGIT+"-_",Ji=typeof TextEncoder=="function"?new TextEncoder:new Y1.TextEncoder,Lo=`\r
9
- `,Q1=Ji.encode(Lo),Z1=2,Hd=class{constructor(t,r){let{escapeName:n}=this.constructor,o=b.isString(r),s=`Content-Disposition: form-data; name="${n(t)}"${!o&&r.name?`; filename="${n(r.name)}"`:""}${Lo}`;o?r=Ji.encode(String(r).replace(/\r?\n|\r\n?/g,Lo)):s+=`Content-Type: ${r.type||"application/octet-stream"}${Lo}`,this.headers=Ji.encode(s+Lo),this.contentLength=o?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+Z1,this.name=t,this.value=r}async*encode(){yield this.headers;let{value:t}=this;b.isTypedArray(t)?yield t:yield*ul(t),yield Q1}static escapeName(t){return String(t).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}},eL=(e,t,r)=>{let{tag:n="form-data-boundary",size:o=25,boundary:s=n+"-"+Fe.generateString(o,X1)}=r||{};if(!b.isFormData(e))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");let i=Ji.encode("--"+s+Lo),a=Ji.encode("--"+s+"--"+Lo),c=a.byteLength,l=Array.from(e.entries()).map(([p,m])=>{let h=new Hd(p,m);return c+=h.size,h});c+=i.byteLength*l.length,c=b.toFiniteNumber(c);let u={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(c)&&(u["Content-Length"]=c),t&&t(u),J1.from((async function*(){for(let p of l)yield i,yield*p.encode();yield a})())},a_=eL});import tL from"stream";var Vd,l_,u_=S(()=>{"use strict";Vd=class extends tL.Transform{__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)}},l_=Vd});var rL,p_,d_=S(()=>{et();rL=(e,t)=>b.isAsyncFn(e)?function(...r){let n=r.pop();e.apply(this,r).then(o=>{try{t?n(null,...t(o)):n(null,o)}catch(s){n(s)}},n)}:e,p_=rL});function Wd(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)||nL[t.protocol.split(":",1)[0]]||0,o=f_(t.hostname.toLowerCase());return r.split(/[\s,]+/).some(s=>{if(!s)return!1;let[i,a]=oL(s);return i=f_(i),!i||a&&a!==n?!1:(i.charAt(0)==="*"&&(i=i.slice(1)),i.charAt(0)==="."?o.endsWith(i):o===i)})}var nL,oL,f_,m_=S(()=>{nL={http:80,https:443,ws:80,wss:443,ftp:21},oL=e=>{let t=e,r=0;if(t.charAt(0)==="["){let s=t.indexOf("]");if(s!==-1){let i=t.slice(1,s),a=t.slice(s+1);return a.charAt(0)===":"&&/^\d+$/.test(a.slice(1))&&(r=Number.parseInt(a.slice(1),10)),[i,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]},f_=e=>e&&(e.charAt(0)==="["&&e.charAt(e.length-1)==="]"&&(e=e.slice(1,-1)),e.replace(/\.+$/,""))});function sL(e,t){e=e||10;let r=new Array(e),n=new Array(e),o=0,s=0,i;return t=t!==void 0?t:1e3,function(c){let l=Date.now(),u=n[s];i||(i=l),r[o]=c,n[o]=l;let p=s,m=0;for(;p!==o;)m+=r[p++],p=p%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i<t)return;let h=u&&l-u;return h?Math.round(m*1e3/h):void 0}}var h_,g_=S(()=>{"use strict";h_=sL});function iL(e,t){let r=0,n=1e3/t,o,s,i=(l,u=Date.now())=>{r=u,o=null,s&&(clearTimeout(s),s=null),e(...l)};return[(...l)=>{let u=Date.now(),p=u-r;p>=n?i(l,u):(o=l,s||(s=setTimeout(()=>{s=null,i(o)},n-p)))},()=>o&&i(o)]}var y_,v_=S(()=>{y_=iL});var Dn,Ps,As,pl=S(()=>{g_();v_();et();Dn=(e,t,r=3)=>{let n=0,o=h_(50,250);return y_(s=>{let i=s.loaded,a=s.lengthComputable?s.total:void 0,c=i-n,l=o(c),u=i<=a;n=i;let p={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a&&u?(a-i)/l:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},r)},Ps=(e,t)=>{let r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},As=e=>(...t)=>b.asap(()=>e(...t))});function Kd(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,i=n.length;for(let m=0;m<i;m++)if(n.charCodeAt(m)===37&&m+2<i){let h=n.charCodeAt(m+1),f=n.charCodeAt(m+2);(h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102)&&(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102)&&(s-=2,m+=2)}let a=0,c=i-1,l=m=>m>=2&&n.charCodeAt(m-2)===37&&n.charCodeAt(m-1)===51&&(n.charCodeAt(m)===68||n.charCodeAt(m)===100);c>=0&&(n.charCodeAt(c)===61?(a++,c--):l(c)&&(a++,c-=3)),a===1&&c>=0&&(n.charCodeAt(c)===61||l(c))&&a++;let p=Math.floor(s/4)*3-(a||0);return p>0?p:0}return Buffer.byteLength(n,"utf8")}var w_=S(()=>{});import aL from"http";import cL from"https";import T_ from"http2";import k_ from"util";import so from"zlib";import oo from"stream";import{EventEmitter as lL}from"events";function hL(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function I_(e,t,r){let n=t;if(!n&&n!==!1){let o=jb(r);o&&(Wd(r)||(n=new URL(o)))}if(n){if(n.username&&(n.auth=(n.username||"")+":"+(n.password||"")),n.auth){if(!!(n.auth.username||n.auth.password))n.auth=(n.auth.username||"")+":"+(n.auth.password||"");else if(typeof n.auth=="object")throw new F("Invalid proxy authorization",F.ERR_BAD_OPTION,{proxy:n});let i=Buffer.from(n.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+i}e.headers.host=e.hostname+(e.port?":"+e.port:"");let o=n.hostname||n.host;e.hostname=o,e.host=o,e.port=n.port,e.path=r,n.protocol&&(e.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}e.beforeRedirects.proxy=function(s){I_(s,t,s.href)}}var R_,x_,uL,b_,pL,dL,fL,__,S_,Yd,mL,gL,yL,vL,E_,wL,P_,A_=S(()=>{et();nl();ol();Zc();Fb();R_=kr(n_(),1);ll();Ui();Ir();Co();en();o_();mn();s_();c_();Bd();u_();d_();m_();pl();w_();x_={flush:so.constants.Z_SYNC_FLUSH,finishFlush:so.constants.Z_SYNC_FLUSH},uL={flush:so.constants.BROTLI_OPERATION_FLUSH,finishFlush:so.constants.BROTLI_OPERATION_FLUSH},b_=b.isFunction(so.createBrotliDecompress),{http:pL,https:dL}=R_.default,fL=/https:?/,__=Fe.protocols.map(e=>e+":"),S_=(e,[t,r])=>(e.on("end",r).on("error",r),t),Yd=class{constructor(){this.sessions=Object.create(null)}getSession(t,r){r=Object.assign({sessionTimeout:1e3},r);let n=this.sessions[t];if(n){let u=n.length;for(let p=0;p<u;p++){let[m,h]=n[p];if(!m.destroyed&&!m.closed&&k_.isDeepStrictEqual(h,r))return m}}let o=T_.connect(t,r),s,i=()=>{if(s)return;s=!0;let u=n,p=u.length,m=p;for(;m--;)if(u[m][0]===o){p===1?delete this.sessions[t]:u.splice(m,1),o.closed||o.close();return}},a=o.request,{sessionTimeout:c}=r;if(c!=null){let u,p=0;o.request=function(){let m=a.apply(this,arguments);return p++,u&&(clearTimeout(u),u=null),m.once("close",()=>{--p||(u=setTimeout(()=>{u=null,i()},c))}),m}}o.once("close",i);let l=[o,r];return n?n.push(l):n=this.sessions[t]=[l],o}},mL=new Yd;gL=typeof process<"u"&&b.kindOf(process)==="process",yL=e=>new Promise((t,r)=>{let n,o,s=(c,l)=>{o||(o=!0,n&&n(c,l))},i=c=>{s(c),t(c)},a=c=>{s(c,!0),r(c)};e(i,a,c=>n=c).catch(a)}),vL=({address:e,family:t})=>{if(!b.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}},E_=(e,t)=>vL(b.isObject(e)?e:{address:e,family:t}),wL={request(e,t){let r=e.protocol+"//"+e.hostname+":"+(e.port||(e.protocol==="https:"?443:80)),{http2Options:n,headers:o}=e,s=mL.getSession(r,n),{HTTP2_HEADER_SCHEME:i,HTTP2_HEADER_METHOD:a,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:l}=T_.constants,u={[i]:e.protocol.replace(":",""),[a]:e.method,[c]:e.path};b.forEach(o,(m,h)=>{h.charAt(0)!==":"&&(u[h]=m)});let p=s.request(u);return p.once("response",m=>{let h=p;m=Object.assign({},m);let f=m[l];delete m[l],h.headers=m,h.statusCode=+f,t(h)}),p}},P_=gL&&function(t){return yL(async function(n,o,s){let{data:i,lookup:a,family:c,httpVersion:l=1,http2Options:u}=t,{responseType:p,responseEncoding:m}=t,h=t.method.toUpperCase(),f,g=!1,v;if(l=+l,Number.isNaN(l))throw TypeError(`Invalid protocol version: '${t.httpVersion}' is not a number`);if(l!==1&&l!==2)throw TypeError(`Unsupported protocol version '${l}'`);let x=l===2;if(a){let re=p_(a,K=>b.isArray(K)?K:[K]);a=(K,Re,we)=>{re(K,Re,(Ze,xe,Tr)=>{if(Ze)return we(Ze);let Et=b.isArray(xe)?xe.map(Nn=>E_(Nn)):[E_(xe,Tr)];Re.all?we(Ze,Et):we(Ze,Et[0].address,Et[0].family)})}}let I=new lL;function k(re){try{I.emit("abort",!re||re.type?new Pr(null,t,v):re)}catch(K){console.warn("emit error",K)}}I.once("abort",o);let P=()=>{t.cancelToken&&t.cancelToken.unsubscribe(k),t.signal&&t.signal.removeEventListener("abort",k),I.removeAllListeners()};(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(k),t.signal&&(t.signal.aborted?k():t.signal.addEventListener("abort",k))),s((re,K)=>{if(f=!0,K){g=!0,P();return}let{data:Re}=re;if(Re instanceof oo.Readable||Re instanceof oo.Duplex){let we=oo.finished(Re,()=>{we(),P()})}else P()});let R=$o(t.baseURL,t.url,t.allowAbsoluteUrls),A=new URL(R,Fe.hasBrowserEnv?Fe.origin:void 0),L=A.protocol||__[0];if(L==="data:"){if(t.maxContentLength>-1){let K=String(t.url||R||"");if(Kd(K)>t.maxContentLength)return o(new F("maxContentLength size of "+t.maxContentLength+" exceeded",F.ERR_BAD_RESPONSE,t))}let re;if(h!=="GET")return hn(n,o,{status:405,statusText:"method not allowed",headers:{},config:t});try{re=qd(t.url,p==="blob",{Blob:t.env&&t.env.Blob})}catch(K){throw F.from(K,F.ERR_BAD_REQUEST,t)}return p==="text"?(re=re.toString(m),(!m||m==="utf8")&&(re=b.stripBOM(re))):p==="stream"&&(re=oo.Readable.from(re)),hn(n,o,{data:re,status:200,statusText:"OK",headers:new ft,config:t})}if(__.indexOf(L)===-1)return o(new F("Unsupported protocol "+L,F.ERR_BAD_REQUEST,t));let Y=ft.from(t.headers).normalize();Y.set("User-Agent","axios/"+Do,!1);let{onUploadProgress:ue,onDownloadProgress:Q}=t,Ke=t.maxRate,Se,ve;if(b.isSpecCompliantForm(i)){let re=Y.getContentType(/boundary=([-_\w\d]{10,70})/i);i=a_(i,K=>{Y.set(K)},{tag:`axios-${Do}-boundary`,boundary:re&&re[1]||void 0})}else if(b.isFormData(i)&&b.isFunction(i.getHeaders)){if(Y.set(i.getHeaders()),!Y.hasContentLength())try{let re=await k_.promisify(i.getLength).call(i);Number.isFinite(re)&&re>=0&&Y.setContentLength(re)}catch{}}else if(b.isBlob(i)||b.isFile(i))i.size&&Y.setContentType(i.type||"application/octet-stream"),Y.setContentLength(i.size||0),i=oo.Readable.from(ul(i));else if(i&&!b.isStream(i)){if(!Buffer.isBuffer(i))if(b.isArrayBuffer(i))i=Buffer.from(new Uint8Array(i));else if(b.isString(i))i=Buffer.from(i,"utf-8");else return o(new F("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",F.ERR_BAD_REQUEST,t));if(Y.setContentLength(i.length,!1),t.maxBodyLength>-1&&i.length>t.maxBodyLength)return o(new F("Request body larger than maxBodyLength limit",F.ERR_BAD_REQUEST,t))}let pe=b.toFiniteNumber(Y.getContentLength());b.isArray(Ke)?(Se=Ke[0],ve=Ke[1]):Se=ve=Ke,i&&(ue||Se)&&(b.isStream(i)||(i=oo.Readable.from(i,{objectMode:!1})),i=oo.pipeline([i,new zd({maxRate:b.toFiniteNumber(Se)})],b.noop),ue&&i.on("progress",S_(i,Ps(pe,Dn(As(ue),!1,3)))));let At;if(t.auth){let re=t.auth.username||"",K=t.auth.password||"";At=re+":"+K}if(!At&&A.username){let re=A.username,K=A.password;At=re+":"+K}At&&Y.delete("authorization");let lt;try{lt=Ao(A.pathname+A.search,t.params,t.paramsSerializer).replace(/^\?/,"")}catch(re){let K=new Error(re.message);return K.config=t,K.url=t.url,K.exists=!0,o(K)}Y.set("Accept-Encoding","gzip, compress, deflate"+(b_?", br":""),!1);let ze={path:lt,method:h,headers:Y.toJSON(),agents:{http:t.httpAgent,https:t.httpsAgent},auth:At,protocol:L,family:c,beforeRedirect:hL,beforeRedirects:{},http2Options:u};!b.isUndefined(a)&&(ze.lookup=a),t.socketPath?ze.socketPath=t.socketPath:(ze.hostname=A.hostname.startsWith("[")?A.hostname.slice(1,-1):A.hostname,ze.port=A.port,I_(ze,t.proxy,L+"//"+A.hostname+(A.port?":"+A.port:"")+ze.path));let Ye,Ct=fL.test(ze.protocol);if(ze.agent=Ct?t.httpsAgent:t.httpAgent,x?Ye=wL:t.transport?Ye=t.transport:t.maxRedirects===0?Ye=Ct?cL:aL:(t.maxRedirects&&(ze.maxRedirects=t.maxRedirects),t.beforeRedirect&&(ze.beforeRedirects.config=t.beforeRedirect),Ye=Ct?dL:pL),t.maxBodyLength>-1?ze.maxBodyLength=t.maxBodyLength:ze.maxBodyLength=1/0,t.insecureHTTPParser&&(ze.insecureHTTPParser=t.insecureHTTPParser),v=Ye.request(ze,function(K){if(v.destroyed)return;let Re=[K],we=b.toFiniteNumber(K.headers["content-length"]);if(Q||ve){let Et=new zd({maxRate:b.toFiniteNumber(ve)});Q&&Et.on("progress",S_(Et,Ps(we,Dn(As(Q),!0,3)))),Re.push(Et)}let Ze=K,xe=K.req||v;if(t.decompress!==!1&&K.headers["content-encoding"])switch((h==="HEAD"||K.statusCode===204)&&delete K.headers["content-encoding"],(K.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":Re.push(so.createUnzip(x_)),delete K.headers["content-encoding"];break;case"deflate":Re.push(new l_),Re.push(so.createUnzip(x_)),delete K.headers["content-encoding"];break;case"br":b_&&(Re.push(so.createBrotliDecompress(uL)),delete K.headers["content-encoding"])}Ze=Re.length>1?oo.pipeline(Re,b.noop):Re[0];let Tr={status:K.statusCode,statusText:K.statusMessage,headers:new ft(K.headers),config:t,request:xe};if(p==="stream")Tr.data=Ze,hn(n,o,Tr);else{let Et=[],Nn=0;Ze.on("data",function(Tt){Et.push(Tt),Nn+=Tt.length,t.maxContentLength>-1&&Nn>t.maxContentLength&&(g=!0,Ze.destroy(),k(new F("maxContentLength size of "+t.maxContentLength+" exceeded",F.ERR_BAD_RESPONSE,t,xe)))}),Ze.on("aborted",function(){if(g)return;let Tt=new F("stream has been aborted",F.ERR_BAD_RESPONSE,t,xe);Ze.destroy(Tt),o(Tt)}),Ze.on("error",function(Tt){v.destroyed||o(F.from(Tt,null,t,xe))}),Ze.on("end",function(){try{let Tt=Et.length===1?Et[0]:Buffer.concat(Et);p!=="arraybuffer"&&(Tt=Tt.toString(m),(!m||m==="utf8")&&(Tt=b.stripBOM(Tt))),Tr.data=Tt}catch(Tt){return o(F.from(Tt,null,t,Tr.request,Tr))}hn(n,o,Tr)})}I.once("abort",Et=>{Ze.destroyed||(Ze.emit("error",Et),Ze.destroy())})}),I.once("abort",re=>{v.close?v.close():v.destroy(re)}),v.on("error",function(K){o(F.from(K,null,t,v))}),v.on("socket",function(K){K.setKeepAlive(!0,1e3*60)}),t.timeout){let re=parseInt(t.timeout,10);if(Number.isNaN(re)){k(new F("error trying to parse `config.timeout` to int",F.ERR_BAD_OPTION_VALUE,t,v));return}v.setTimeout(re,function(){if(f)return;let Re=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",we=t.transitional||ro;t.timeoutErrorMessage&&(Re=t.timeoutErrorMessage),k(new F(Re,we.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,t,v))})}else v.setTimeout(0);if(b.isStream(i)){let re=!1,K=!1;i.on("end",()=>{re=!0}),i.once("error",Re=>{K=!0,v.destroy(Re)}),i.on("close",()=>{!re&&!K&&k(new Pr("Request stream has been aborted",t,v))}),i.pipe(v)}else i&&v.write(i),v.end()})}});var C_,$_=S(()=>{en();C_=Fe.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Fe.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Fe.origin),Fe.navigator&&/(msie|trident)/i.test(Fe.navigator.userAgent)):()=>!0});var O_,N_=S(()=>{et();en();O_=Fe.hasStandardBrowserEnv?{write(e,t,r,n,o,s,i){if(typeof document>"u")return;let a=[`${e}=${encodeURIComponent(t)}`];b.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),b.isString(n)&&a.push(`path=${n}`),b.isString(o)&&a.push(`domain=${o}`),s===!0&&a.push("secure"),b.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;let t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}}});function tn(e,t){t=t||{};let r={};function n(l,u,p,m){return b.isPlainObject(l)&&b.isPlainObject(u)?b.merge.call({caseless:m},l,u):b.isPlainObject(u)?b.merge({},u):b.isArray(u)?u.slice():u}function o(l,u,p,m){if(b.isUndefined(u)){if(!b.isUndefined(l))return n(void 0,l,p,m)}else return n(l,u,p,m)}function s(l,u){if(!b.isUndefined(u))return n(void 0,u)}function i(l,u){if(b.isUndefined(u)){if(!b.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function a(l,u,p){if(p in t)return n(l,u);if(p in e)return n(void 0,l)}let c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(l,u,p)=>o(M_(l),M_(u),p,!0)};return b.forEach(Object.keys({...e,...t}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;let p=b.hasOwnProp(c,u)?c[u]:o,m=p(e[u],t[u],u);b.isUndefined(m)&&p!==a||(r[u]=m)}),r}var M_,dl=S(()=>{"use strict";et();mn();M_=e=>e instanceof ft?{...e}:e});var fl,Jd=S(()=>{en();et();$_();N_();ol();dl();mn();Zc();fl=e=>{let t=tn({},e),{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;if(t.headers=i=ft.from(i),t.url=Ao($o(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),b.isFormData(r)){if(Fe.hasStandardBrowserEnv||Fe.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(b.isFunction(r.getHeaders)){let c=r.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([u,p])=>{l.includes(u.toLowerCase())&&i.set(u,p)})}}if(Fe.hasStandardBrowserEnv&&(n&&b.isFunction(n)&&(n=n(t)),n||n!==!1&&C_(t.url))){let c=o&&s&&O_.read(s);c&&i.set(o,c)}return t}});var xL,D_,L_=S(()=>{et();nl();Ui();Ir();Co();Fd();en();mn();pl();Jd();xL=typeof XMLHttpRequest<"u",D_=xL&&function(e){return new Promise(function(r,n){let o=fl(e),s=o.data,i=ft.from(o.headers).normalize(),{responseType:a,onUploadProgress:c,onDownloadProgress:l}=o,u,p,m,h,f;function g(){h&&h(),f&&f(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function x(){if(!v)return;let k=ft.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),R={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:k,config:e,request:v};hn(function(L){r(L),g()},function(L){n(L),g()},R),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(n(new F("Request aborted",F.ECONNABORTED,e,v)),v=null)},v.onerror=function(P){let R=P&&P.message?P.message:"Network Error",A=new F(R,F.ERR_NETWORK,e,v);A.event=P||null,n(A),v=null},v.ontimeout=function(){let P=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded",R=o.transitional||ro;o.timeoutErrorMessage&&(P=o.timeoutErrorMessage),n(new F(P,R.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,e,v)),v=null},s===void 0&&i.setContentType(null),"setRequestHeader"in v&&b.forEach(i.toJSON(),function(P,R){v.setRequestHeader(R,P)}),b.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),l&&([m,f]=Dn(l,!0),v.addEventListener("progress",m)),c&&v.upload&&([p,h]=Dn(c),v.upload.addEventListener("progress",p),v.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(u=k=>{v&&(n(!k||k.type?new Pr(null,e,v):k),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));let I=Yi(o.url);if(I&&Fe.protocols.indexOf(I)===-1){n(new F("Unsupported protocol "+I+":",F.ERR_BAD_REQUEST,e));return}v.send(s||null)})}});var bL,j_,F_=S(()=>{Co();Ir();et();bL=(e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o,s=function(l){if(!o){o=!0,a();let u=l instanceof Error?l:this.reason;n.abort(u instanceof F?u:new Pr(u instanceof Error?u.message:u))}},i=t&&setTimeout(()=>{i=null,s(new F(`timeout of ${t}ms exceeded`,F.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>l.addEventListener("abort",s));let{signal:c}=n;return c.unsubscribe=()=>b.asap(a),c}},j_=bL});var _L,SL,EL,Xd,q_=S(()=>{_L=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},SL=async function*(e,t){for await(let r of EL(e))yield*_L(r,t)},EL=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()}},Xd=(e,t,r,n)=>{let o=SL(e,t),s=0,i,a=c=>{i||(i=!0,n&&n(c))};return new ReadableStream({async pull(c){try{let{done:l,value:u}=await o.next();if(l){a(),c.close();return}let p=u.byteLength;if(r){let m=s+=p;r(m)}c.enqueue(new Uint8Array(u))}catch(l){throw a(l),l}},cancel(c){return a(c),o.return()}},{highWaterMark:2})}});var U_,ml,TL,G_,z_,B_,kL,RL,Qd,Xte,H_=S(()=>{en();et();Ir();F_();q_();mn();pl();Jd();nl();U_=64*1024,{isFunction:ml}=b,TL=(({Request:e,Response:t})=>({Request:e,Response:t}))(b.global),{ReadableStream:G_,TextEncoder:z_}=b.global,B_=(e,...t)=>{try{return!!e(...t)}catch{return!1}},kL=e=>{e=b.merge.call({skipUndefined:!0},TL,e);let{fetch:t,Request:r,Response:n}=e,o=t?ml(t):typeof fetch=="function",s=ml(r),i=ml(n);if(!o)return!1;let a=o&&ml(G_),c=o&&(typeof z_=="function"?(f=>g=>f.encode(g))(new z_):async f=>new Uint8Array(await new r(f).arrayBuffer())),l=s&&a&&B_(()=>{let f=!1,g=new G_,v=new r(Fe.origin,{body:g,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return g.cancel(),f&&!v}),u=i&&a&&B_(()=>b.isReadableStream(new n("").body)),p={stream:u&&(f=>f.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!p[f]&&(p[f]=(g,v)=>{let x=g&&g[f];if(x)return x.call(g);throw new F(`Response type '${f}' is not supported`,F.ERR_NOT_SUPPORT,v)})});let m=async f=>{if(f==null)return 0;if(b.isBlob(f))return f.size;if(b.isSpecCompliantForm(f))return(await new r(Fe.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(b.isArrayBufferView(f)||b.isArrayBuffer(f))return f.byteLength;if(b.isURLSearchParams(f)&&(f=f+""),b.isString(f))return(await c(f)).byteLength},h=async(f,g)=>{let v=b.toFiniteNumber(f.getContentLength());return v??m(g)};return async f=>{let{url:g,method:v,data:x,signal:I,cancelToken:k,timeout:P,onDownloadProgress:R,onUploadProgress:A,responseType:L,headers:Y,withCredentials:ue="same-origin",fetchOptions:Q}=fl(f),Ke=t||fetch;L=L?(L+"").toLowerCase():"text";let Se=j_([I,k&&k.toAbortSignal()],P),ve=null,pe=Se&&Se.unsubscribe&&(()=>{Se.unsubscribe()}),At;try{if(A&&l&&v!=="get"&&v!=="head"&&(At=await h(Y,x))!==0){let K=new r(g,{method:"POST",body:x,duplex:"half"}),Re;if(b.isFormData(x)&&(Re=K.headers.get("content-type"))&&Y.setContentType(Re),K.body){let[we,Ze]=Ps(At,Dn(As(A)));x=Xd(K.body,U_,we,Ze)}}b.isString(ue)||(ue=ue?"include":"omit");let lt=s&&"credentials"in r.prototype,ze={...Q,signal:Se,method:v.toUpperCase(),headers:Y.normalize().toJSON(),body:x,duplex:"half",credentials:lt?ue:void 0};ve=s&&new r(g,ze);let Ye=await(s?Ke(ve,Q):Ke(g,ze)),Ct=u&&(L==="stream"||L==="response");if(u&&(R||Ct&&pe)){let K={};["status","statusText","headers"].forEach(xe=>{K[xe]=Ye[xe]});let Re=b.toFiniteNumber(Ye.headers.get("content-length")),[we,Ze]=R&&Ps(Re,Dn(As(R),!0))||[];Ye=new n(Xd(Ye.body,U_,we,()=>{Ze&&Ze(),pe&&pe()}),K)}L=L||"text";let re=await p[b.findKey(p,L)||"text"](Ye,f);return!Ct&&pe&&pe(),await new Promise((K,Re)=>{hn(K,Re,{data:re,headers:ft.from(Ye.headers),status:Ye.status,statusText:Ye.statusText,config:f,request:ve})})}catch(lt){throw pe&&pe(),lt&&lt.name==="TypeError"&&/Load failed|fetch/i.test(lt.message)?Object.assign(new F("Network Error",F.ERR_NETWORK,f,ve,lt&&lt.response),{cause:lt.cause||lt}):F.from(lt,lt&&lt.code,f,ve,lt&&lt.response)}}},RL=new Map,Qd=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:o}=t,s=[n,o,r],i=s.length,a=i,c,l,u=RL;for(;a--;)c=s[a],l=u.get(c),l===void 0&&u.set(c,l=a?new Map:kL(t)),u=l;return l},Xte=Qd()});function AL(e,t){e=b.isArray(e)?e:[e];let{length:r}=e,n,o,s={};for(let i=0;i<r;i++){n=e[i];let a;if(o=n,!PL(n)&&(o=Zd[(a=String(n)).toLowerCase()],o===void 0))throw new F(`Unknown adapter '${a}'`);if(o&&(b.isFunction(o)||(o=o.get(t))))break;s[a||"#"+i]=o}if(!o){let i=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build")),a=r?i.length>1?`since :
10
- `+i.map(V_).join(`
11
- `):" "+V_(i[0]):"as no adapter specified";throw new F("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}var Zd,V_,PL,hl,ef=S(()=>{et();A_();L_();H_();Ir();Zd={http:P_,xhr:D_,fetch:{get:Qd}};b.forEach(Zd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});V_=e=>`- ${e}`,PL=e=>b.isFunction(e)||e===null||e===!1;hl={getAdapter:AL,adapters:Zd}});function tf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pr(null,e)}function gl(e){return tf(e),e.headers=ft.from(e.headers),e.data=zi.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),hl.getAdapter(e.adapter||Es.adapter,e)(e).then(function(n){return tf(e),n.data=zi.call(e,e.transformResponse,n),n.headers=ft.from(n.headers),n},function(n){return Bi(n)||(tf(e),n&&n.response&&(n.response.data=zi.call(e,e.transformResponse,n.response),n.response.headers=ft.from(n.response.headers))),Promise.reject(n)})}var W_=S(()=>{"use strict";Mb();yd();tl();Co();mn();ef()});function CL(e,t,r){if(typeof e!="object")throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let s=n[o],i=t[s];if(i){let a=e[s],c=a===void 0||i(a,s,e);if(c!==!0)throw new F("option "+s+" must be "+c,F.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new F("Unknown option "+s,F.ERR_BAD_OPTION)}}var yl,K_,Xi,Y_=S(()=>{"use strict";ll();Ir();yl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yl[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});K_={};yl.transitional=function(t,r,n){function o(s,i){return"[Axios v"+Do+"] Transitional option '"+s+"'"+i+(n?". "+n:"")}return(s,i,a)=>{if(t===!1)throw new F(o(i," has been removed"+(r?" in "+r:"")),F.ERR_DEPRECATED);return r&&!K_[i]&&(K_[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,a):!0}};yl.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};Xi={assertOptions:CL,validators:yl}});var Lr,Cs,Qi,J_=S(()=>{"use strict";et();Zc();_b();W_();dl();ol();Y_();mn();Ui();Lr=Xi.validators,Cs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new cd,response:new cd}}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 s=(()=>{if(!o.stack)return"";let i=o.stack.indexOf(`
12
- `);return i===-1?"":o.stack.slice(i+1)})();try{if(!n.stack)n.stack=s;else if(s){let i=s.indexOf(`
13
- `),a=i===-1?-1:s.indexOf(`
14
- `,i+1),c=a===-1?"":s.slice(a+1);String(n.stack).endsWith(c)||(n.stack+=`
15
- `+s)}}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=tn(this.defaults,r);let{transitional:n,paramsSerializer:o,headers:s}=r;n!==void 0&&Xi.assertOptions(n,{silentJSONParsing:Lr.transitional(Lr.boolean),forcedJSONParsing:Lr.transitional(Lr.boolean),clarifyTimeoutError:Lr.transitional(Lr.boolean),legacyInterceptorReqResOrdering:Lr.transitional(Lr.boolean)},!1),o!=null&&(b.isFunction(o)?r.paramsSerializer={serialize:o}:Xi.assertOptions(o,{encode:Lr.function,serialize:Lr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Xi.assertOptions(r,{baseUrl:Lr.spelling("baseURL"),withXsrfToken:Lr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&b.merge(s.common,s[r.method]);s&&b.forEach(["delete","get","head","post","put","patch","common"],f=>{delete s[f]}),r.headers=ft.concat(i,s);let a=[],c=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(r)===!1)return;c=c&&g.synchronous;let v=r.transitional||ro;v&&v.legacyInterceptorReqResOrdering?a.unshift(g.fulfilled,g.rejected):a.push(g.fulfilled,g.rejected)});let l=[];this.interceptors.response.forEach(function(g){l.push(g.fulfilled,g.rejected)});let u,p=0,m;if(!c){let f=[gl.bind(this),void 0];for(f.unshift(...a),f.push(...l),m=f.length,u=Promise.resolve(r);p<m;)u=u.then(f[p++],f[p++]);return u}m=a.length;let h=r;for(;p<m;){let f=a[p++],g=a[p++];try{h=f(h)}catch(v){g.call(this,v);break}}try{u=gl.call(this,h)}catch(f){return Promise.reject(f)}for(p=0,m=l.length;p<m;)u=u.then(l[p++],l[p++]);return u}getUri(t){t=tn(this.defaults,t);let r=$o(t.baseURL,t.url,t.allowAbsoluteUrls);return Ao(r,t.params,t.paramsSerializer)}};b.forEach(["delete","get","head","options"],function(t){Cs.prototype[t]=function(r,n){return this.request(tn(n||{},{method:t,url:r,data:(n||{}).data}))}});b.forEach(["post","put","patch"],function(t){function r(n){return function(s,i,a){return this.request(tn(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Cs.prototype[t]=r(),Cs.prototype[t+"Form"]=r(!0)});Qi=Cs});var rf,X_,Q_=S(()=>{"use strict";Co();rf=class e{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});let n=this;this.promise.then(o=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](o);n._listeners=null}),this.promise.then=o=>{let s,i=new Promise(a=>{n.subscribe(a),s=a}).then(o);return i.cancel=function(){n.unsubscribe(s)},i},t(function(s,i,a){n.reason||(n.reason=new Pr(s,i,a),r(n.reason))})}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=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new e(function(o){t=o}),cancel:t}}},X_=rf});function nf(e){return function(r){return e.apply(null,r)}}var Z_=S(()=>{"use strict"});function of(e){return b.isObject(e)&&e.isAxiosError===!0}var e0=S(()=>{"use strict";et()});var sf,t0,r0=S(()=>{sf={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(sf).forEach(([e,t])=>{sf[t]=e});t0=sf});function n0(e){let t=new Qi(e),r=$i(Qi.prototype.request,t);return b.extend(r,Qi.prototype,t,{allOwnKeys:!0}),b.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return n0(tn(e,o))},r}var Rt,ut,o0=S(()=>{"use strict";et();Dp();J_();dl();tl();md();Co();Q_();yd();ll();qi();Ir();Z_();e0();mn();ef();r0();Rt=n0(Es);Rt.Axios=Qi;Rt.CanceledError=Pr;Rt.CancelToken=X_;Rt.isCancel=Bi;Rt.VERSION=Do;Rt.toFormData=to;Rt.AxiosError=F;Rt.Cancel=Rt.CanceledError;Rt.all=function(t){return Promise.all(t)};Rt.spread=nf;Rt.isAxiosError=of;Rt.mergeConfig=tn;Rt.AxiosHeaders=ft;Rt.formToJSON=e=>el(b.isHTMLForm(e)?new FormData(e):e);Rt.getAdapter=hl.getAdapter;Rt.HttpStatusCode=t0;Rt.default=Rt;ut=Rt});var Kre,Yre,Jre,Xre,Qre,Zre,ene,tne,rne,nne,one,sne,ine,ane,cne,lne,gn=S(()=>{o0();({Axios:Kre,AxiosError:Yre,CanceledError:Jre,isCancel:Xre,CancelToken:Qre,VERSION:Zre,all:ene,Cancel:tne,isAxiosError:rne,spread:nne,toFormData:one,AxiosHeaders:sne,HttpStatusCode:ine,formToJSON:ane,getAdapter:cne,mergeConfig:lne}=ut)});function a0(e){if(e==="0")return!0;if(/^[1-9]\d*$/.test(e)){let t=Number.parseInt(e,10);return t<=Number.MAX_SAFE_INTEGER&&t<=i0}return!1}function af(e,t){return s0.has(e)?!1:(e&&a0(e)?t.push(Number.parseInt(e,10)):t.push(e),!0)}function OL(e){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);let t=[],r="",n="start",o=!1,s=0;for(let i of e){if(s++,o){r+=i,o=!1;continue}if(i==="\\"){if(n==="index")throw new Error(`Invalid character '${i}' in an index at position ${s}`);if(n==="indexEnd")throw new Error(`Invalid character '${i}' after an index at position ${s}`);o=!0,n=n==="start"?"property":n;continue}switch(i){case".":{if(n==="index")throw new Error(`Invalid character '${i}' in an index at position ${s}`);if(n==="indexEnd"){n="property";break}if(!af(r,t))return[];r="",n="property";break}case"[":{if(n==="index")throw new Error(`Invalid character '${i}' in an index at position ${s}`);if(n==="indexEnd"){n="index";break}if(n==="property"||n==="start"){if((r||n==="property")&&!af(r,t))return[];r=""}n="index";break}case"]":{if(n==="index"){if(r==="")r=(t.pop()||"")+"[]",n="property";else{let a=Number.parseInt(r,10);!Number.isNaN(a)&&Number.isFinite(a)&&a>=0&&a<=Number.MAX_SAFE_INTEGER&&a<=i0&&r===String(a)?t.push(a):t.push(r),r="",n="indexEnd"}break}if(n==="indexEnd")throw new Error(`Invalid character '${i}' after an index at position ${s}`);r+=i;break}default:{if(n==="index"&&!$L(i))throw new Error(`Invalid character '${i}' in an index at position ${s}`);if(n==="indexEnd")throw new Error(`Invalid character '${i}' after an index at position ${s}`);n==="start"&&(n="property"),r+=i}}}switch(o&&(r+="\\"),n){case"property":{if(!af(r,t))return[];break}case"index":throw new Error("Index was not closed");case"start":{t.push("");break}}return t}function vl(e){if(typeof e=="string")return OL(e);if(Array.isArray(e)){let t=[];for(let[r,n]of e.entries()){if(typeof n!="string"&&typeof n!="number")throw new TypeError(`Expected a string or number for path segment at index ${r}, got ${typeof n}`);if(typeof n=="number"&&!Number.isFinite(n))throw new TypeError(`Path segment at index ${r} must be a finite number, got ${n}`);if(s0.has(n))return[];typeof n=="string"&&a0(n)?t.push(Number.parseInt(n,10)):t.push(n)}return t}return[]}function cf(e,t,r){if(!jo(e)||typeof t!="string"&&!Array.isArray(t))return r===void 0?e:r;let n=vl(t);if(n.length===0)return r;for(let o=0;o<n.length;o++){let s=n[o];if(e=e[s],e==null){if(o!==n.length-1)return r;break}}return e===void 0?r:e}function Zi(e,t,r){if(!jo(e)||typeof t!="string"&&!Array.isArray(t))return e;let n=e,o=vl(t);if(o.length===0)return e;for(let s=0;s<o.length;s++){let i=o[s];if(s===o.length-1)e[i]=r;else if(!jo(e[i])){let c=typeof o[s+1]=="number";e[i]=c?[]:{}}e=e[i]}return n}function c0(e,t){if(!jo(e)||typeof t!="string"&&!Array.isArray(t))return!1;let r=vl(t);if(r.length===0)return!1;for(let n=0;n<r.length;n++){let o=r[n];if(n===r.length-1)return Object.hasOwn(e,o)?(delete e[o],!0):!1;if(e=e[o],!jo(e))return!1}}function wl(e,t){if(!jo(e)||typeof t!="string"&&!Array.isArray(t))return!1;let r=vl(t);if(r.length===0)return!1;for(let n of r){if(!jo(e)||!(n in e))return!1;e=e[n]}return!0}var jo,s0,i0,$L,l0=S(()=>{jo=e=>{let t=typeof e;return e!==null&&(t==="object"||t==="function")},s0=new Set(["__proto__","prototype","constructor"]),i0=1e6,$L=e=>e>="0"&&e<="9"});import mt from"node:path";import u0 from"node:os";import lf from"node:process";function pf(e,{suffix:t="nodejs"}={}){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return t&&(e+=`-${t}`),lf.platform==="darwin"?NL(e):lf.platform==="win32"?ML(e):DL(e)}var io,uf,$s,NL,ML,DL,p0=S(()=>{io=u0.homedir(),uf=u0.tmpdir(),{env:$s}=lf,NL=e=>{let t=mt.join(io,"Library");return{data:mt.join(t,"Application Support",e),config:mt.join(t,"Preferences",e),cache:mt.join(t,"Caches",e),log:mt.join(t,"Logs",e),temp:mt.join(uf,e)}},ML=e=>{let t=$s.APPDATA||mt.join(io,"AppData","Roaming"),r=$s.LOCALAPPDATA||mt.join(io,"AppData","Local");return{data:mt.join(r,e,"Data"),config:mt.join(t,e,"Config"),cache:mt.join(r,e,"Cache"),log:mt.join(r,e,"Log"),temp:mt.join(uf,e)}},DL=e=>{let t=mt.basename(io);return{data:mt.join($s.XDG_DATA_HOME||mt.join(io,".local","share"),e),config:mt.join($s.XDG_CONFIG_HOME||mt.join(io,".config"),e),cache:mt.join($s.XDG_CACHE_HOME||mt.join(io,".cache"),e),log:mt.join($s.XDG_STATE_HOME||mt.join(io,".local","state"),e),temp:mt.join(uf,t,e)}}});var LL,yn,d0=S(()=>{LL=(e,t)=>{let{onError:r}=t;return function(...o){return e.apply(void 0,o).catch(r)}},yn=LL});var jL,rn,f0=S(()=>{jL=(e,t)=>{let{onError:r}=t;return function(...o){try{return e.apply(void 0,o)}catch(s){return r(s)}}},rn=jL});var m0=S(()=>{});var qL,vn,h0=S(()=>{m0();qL=(e,t)=>{let{isRetriable:r}=t;return function(o){let{timeout:s}=o,i=o.interval??250,a=Date.now()+s;return function c(...l){return e.apply(void 0,l).catch(u=>{if(!r(u)||Date.now()>=a)throw u;let p=Math.round(i*Math.random());return p>0?new Promise(h=>setTimeout(h,p)).then(()=>c.apply(void 0,l)):c.apply(void 0,l)})}}},vn=qL});var UL,wn,g0=S(()=>{UL=(e,t)=>{let{isRetriable:r}=t;return function(o){let{timeout:s}=o,i=Date.now()+s;return function(...c){for(;;)try{return e.apply(void 0,c)}catch(l){if(!r(l)||Date.now()>=i)throw l;continue}}}},wn=UL});var df=S(()=>{d0();f0();h0();g0()});var ea,ff,y0=S(()=>{mf();ea={isChangeErrorOk:e=>{if(!ea.isNodeError(e))return!1;let{code:t}=e;return t==="ENOSYS"||!v0&&(t==="EINVAL"||t==="EPERM")},isNodeError:e=>e instanceof Error,isRetriableError:e=>{if(!ea.isNodeError(e))return!1;let{code:t}=e;return t==="EMFILE"||t==="ENFILE"||t==="EAGAIN"||t==="EBUSY"||t==="EACCESS"||t==="EACCES"||t==="EACCS"||t==="EPERM"},onChangeError:e=>{if(!ea.isNodeError(e))throw e;if(!ea.isChangeErrorOk(e))throw e}},ff=ea});import w0 from"node:process";var ta,mr,v0,Ft,mf=S(()=>{y0();ta={onError:ff.onChangeError},mr={onError:()=>{}},v0=w0.getuid?!w0.getuid():!1,Ft={isRetriable:ff.isRetriableError}});import De from"node:fs";import{promisify as Ht}from"node:util";var GL,Mt,hf=S(()=>{df();df();mf();GL={attempt:{chmod:yn(Ht(De.chmod),ta),chown:yn(Ht(De.chown),ta),close:yn(Ht(De.close),mr),fsync:yn(Ht(De.fsync),mr),mkdir:yn(Ht(De.mkdir),mr),realpath:yn(Ht(De.realpath),mr),stat:yn(Ht(De.stat),mr),unlink:yn(Ht(De.unlink),mr),chmodSync:rn(De.chmodSync,ta),chownSync:rn(De.chownSync,ta),closeSync:rn(De.closeSync,mr),existsSync:rn(De.existsSync,mr),fsyncSync:rn(De.fsync,mr),mkdirSync:rn(De.mkdirSync,mr),realpathSync:rn(De.realpathSync,mr),statSync:rn(De.statSync,mr),unlinkSync:rn(De.unlinkSync,mr)},retry:{close:vn(Ht(De.close),Ft),fsync:vn(Ht(De.fsync),Ft),open:vn(Ht(De.open),Ft),readFile:vn(Ht(De.readFile),Ft),rename:vn(Ht(De.rename),Ft),stat:vn(Ht(De.stat),Ft),write:vn(Ht(De.write),Ft),writeFile:vn(Ht(De.writeFile),Ft),closeSync:wn(De.closeSync,Ft),fsyncSync:wn(De.fsyncSync,Ft),openSync:wn(De.openSync,Ft),readFileSync:wn(De.readFileSync,Ft),renameSync:wn(De.renameSync,Ft),statSync:wn(De.statSync,Ft),writeSync:wn(De.writeSync,Ft),writeFileSync:wn(De.writeFileSync,Ft)}},Mt=GL});import Fo from"node:process";var x0,gf,b0,_0,S0,E0,T0,k0,Fne,yf,vf=S(()=>{x0="utf8",gf=438,b0=511,_0={},S0=Fo.geteuid?Fo.geteuid():-1,E0=Fo.getegid?Fo.getegid():-1,T0=1e3,k0=!!Fo.getuid,Fne=Fo.getuid?!Fo.getuid():!1,yf=128});var R0,wf,xl,I0=S(()=>{R0=e=>e instanceof Error&&"code"in e,wf=e=>typeof e=="string",xl=e=>e===void 0});var P0=S(()=>{});import A0 from"node:process";var C0,bl,xf=S(()=>{C0=A0.platform==="linux",bl=A0.platform==="win32"});var bf,$0,O0=S(()=>{xf();bf=["SIGHUP","SIGINT","SIGTERM"];bl||bf.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");C0&&bf.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");$0=bf});import Os from"node:process";var _f,N0,M0=S(()=>{xf();O0();_f=class{constructor(){this.callbacks=new Set,this.exited=!1,this.exit=t=>{if(!this.exited){this.exited=!0;for(let r of this.callbacks)r();t&&(bl&&t!=="SIGINT"&&t!=="SIGTERM"&&t!=="SIGKILL"?Os.kill(Os.pid,"SIGTERM"):Os.kill(Os.pid,t))}},this.hook=()=>{Os.once("exit",()=>this.exit());for(let t of $0)try{Os.once(t,()=>this.exit(t))}catch{}},this.register=t=>(this.callbacks.add(t),()=>{this.callbacks.delete(t)}),this.hook()}},N0=new _f});var zL,D0,L0=S(()=>{M0();zL=N0.register,D0=zL});import BL from"node:path";var Ar,ra,j0=S(()=>{hf();L0();vf();Ar={store:{},create:e=>{let t=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6),o=`.tmp-${Date.now().toString().slice(-10)}${t}`;return`${e}${o}`},get:(e,t,r=!0)=>{let n=Ar.truncate(t(e));return n in Ar.store?Ar.get(e,t,r):(Ar.store[n]=r,[n,()=>delete Ar.store[n]])},purge:e=>{Ar.store[e]&&(delete Ar.store[e],Mt.attempt.unlink(e))},purgeSync:e=>{Ar.store[e]&&(delete Ar.store[e],Mt.attempt.unlinkSync(e))},purgeSyncAll:()=>{for(let e in Ar.store)Ar.purgeSync(e)},truncate:e=>{let t=BL.basename(e);if(t.length<=yf)return e;let r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(t);if(!r)return e;let n=t.length-yf;return`${e.slice(0,-t.length)}${r[1]}${r[2].slice(0,-n)}${r[3]}`}};D0(Ar.purgeSyncAll);ra=Ar});import HL from"node:path";function Sf(e,t,r=_0){if(wf(r))return Sf(e,t,{encoding:r});let o={timeout:r.timeout??T0},s=null,i=null,a=null;try{let c=Mt.attempt.realpathSync(e),l=!!c;e=c||e,[i,s]=ra.get(e,r.tmpCreate||ra.create,r.tmpPurge!==!1);let u=k0&&xl(r.chown),p=xl(r.mode);if(l&&(u||p)){let m=Mt.attempt.statSync(e);m&&(r={...r},u&&(r.chown={uid:m.uid,gid:m.gid}),p&&(r.mode=m.mode))}if(!l){let m=HL.dirname(e);Mt.attempt.mkdirSync(m,{mode:b0,recursive:!0})}a=Mt.retry.openSync(o)(i,"w",r.mode||gf),r.tmpCreated&&r.tmpCreated(i),wf(t)?Mt.retry.writeSync(o)(a,t,0,r.encoding||x0):xl(t)||Mt.retry.writeSync(o)(a,t,0,t.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?Mt.retry.fsyncSync(o)(a):Mt.attempt.fsync(a)),Mt.retry.closeSync(o)(a),a=null,r.chown&&(r.chown.uid!==S0||r.chown.gid!==E0)&&Mt.attempt.chownSync(i,r.chown.uid,r.chown.gid),r.mode&&r.mode!==gf&&Mt.attempt.chmodSync(i,r.mode);try{Mt.retry.renameSync(o)(i,e)}catch(m){if(!R0(m)||m.code!=="ENAMETOOLONG")throw m;Mt.retry.renameSync(o)(i,ra.truncate(e))}s(),i=null}finally{a&&Mt.attempt.closeSync(a),i&&ra.purge(i)}}var F0=S(()=>{hf();vf();I0();P0();j0()});var sa=w(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.regexpCode=Le.getEsmExportName=Le.getProperty=Le.safeStringify=Le.stringify=Le.strConcat=Le.addCodeArg=Le.str=Le._=Le.nil=Le._Code=Le.Name=Le.IDENTIFIER=Le._CodeOrName=void 0;var na=class{};Le._CodeOrName=na;Le.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var qo=class extends na{constructor(t){if(super(),!Le.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Le.Name=qo;var jr=class extends na{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof qo&&(r[n.str]=(r[n.str]||0)+1),r),{})}};Le._Code=jr;Le.nil=new jr("");function q0(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Tf(r,t[n]),r.push(e[++n]);return new jr(r)}Le._=q0;var Ef=new jr("+");function U0(e,...t){let r=[oa(e[0])],n=0;for(;n<t.length;)r.push(Ef),Tf(r,t[n]),r.push(Ef,oa(e[++n]));return VL(r),new jr(r)}Le.str=U0;function Tf(e,t){t instanceof jr?e.push(...t._items):t instanceof qo?e.push(t):e.push(YL(t))}Le.addCodeArg=Tf;function VL(e){let t=1;for(;t<e.length-1;){if(e[t]===Ef){let r=WL(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function WL(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof qo||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof qo))return`"${e}${t.slice(1)}`}function KL(e,t){return t.emptyStr()?e:e.emptyStr()?t:U0`${e}${t}`}Le.strConcat=KL;function YL(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:oa(Array.isArray(e)?e.join(","):e)}function JL(e){return new jr(oa(e))}Le.stringify=JL;function oa(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Le.safeStringify=oa;function XL(e){return typeof e=="string"&&Le.IDENTIFIER.test(e)?new jr(`.${e}`):q0`[${e}]`}Le.getProperty=XL;function QL(e){if(typeof e=="string"&&Le.IDENTIFIER.test(e))return new jr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Le.getEsmExportName=QL;function ZL(e){return new jr(e.toString())}Le.regexpCode=ZL});var If=w(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.ValueScope=gr.ValueScopeName=gr.Scope=gr.varKinds=gr.UsedValueState=void 0;var hr=sa(),kf=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},_l;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(_l||(gr.UsedValueState=_l={}));gr.varKinds={const:new hr.Name("const"),let:new hr.Name("let"),var:new hr.Name("var")};var Sl=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof hr.Name?t:this.name(t)}name(t){return new hr.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};gr.Scope=Sl;var El=class extends hr.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,hr._)`.${new hr.Name(r)}[${n}]`}};gr.ValueScopeName=El;var ej=(0,hr._)`\n`,Rf=class extends Sl{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?ej:hr.nil}}get(){return this._scope}name(t){return new El(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(t),{prefix:s}=o,i=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[s];if(a){let u=a.get(i);if(u)return u}else a=this._values[s]=new Map;a.set(i,o);let c=this._scope[s]||(this._scope[s]=[]),l=c.length;return c[l]=r.ref,o.setValue(r,{property:s,itemIndex:l}),o}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,hr._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(t,r,n={},o){let s=hr.nil;for(let i in t){let a=t[i];if(!a)continue;let c=n[i]=n[i]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,_l.Started);let u=r(l);if(u){let p=this.opts.es5?gr.varKinds.var:gr.varKinds.const;s=(0,hr._)`${s}${p} ${l} = ${u};${this.opts._n}`}else if(u=o?.(l))s=(0,hr._)`${s}${u}${this.opts._n}`;else throw new kf(l);c.set(l,_l.Completed)})}return s}};gr.ValueScope=Rf});var me=w(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.or=be.and=be.not=be.CodeGen=be.operators=be.varKinds=be.ValueScopeName=be.ValueScope=be.Scope=be.Name=be.regexpCode=be.stringify=be.getProperty=be.nil=be.strConcat=be.str=be._=void 0;var Pe=sa(),nn=If(),ao=sa();Object.defineProperty(be,"_",{enumerable:!0,get:function(){return ao._}});Object.defineProperty(be,"str",{enumerable:!0,get:function(){return ao.str}});Object.defineProperty(be,"strConcat",{enumerable:!0,get:function(){return ao.strConcat}});Object.defineProperty(be,"nil",{enumerable:!0,get:function(){return ao.nil}});Object.defineProperty(be,"getProperty",{enumerable:!0,get:function(){return ao.getProperty}});Object.defineProperty(be,"stringify",{enumerable:!0,get:function(){return ao.stringify}});Object.defineProperty(be,"regexpCode",{enumerable:!0,get:function(){return ao.regexpCode}});Object.defineProperty(be,"Name",{enumerable:!0,get:function(){return ao.Name}});var Il=If();Object.defineProperty(be,"Scope",{enumerable:!0,get:function(){return Il.Scope}});Object.defineProperty(be,"ValueScope",{enumerable:!0,get:function(){return Il.ValueScope}});Object.defineProperty(be,"ValueScopeName",{enumerable:!0,get:function(){return Il.ValueScopeName}});Object.defineProperty(be,"varKinds",{enumerable:!0,get:function(){return Il.varKinds}});be.operators={GT:new Pe._Code(">"),GTE:new Pe._Code(">="),LT:new Pe._Code("<"),LTE:new Pe._Code("<="),EQ:new Pe._Code("==="),NEQ:new Pe._Code("!=="),NOT:new Pe._Code("!"),OR:new Pe._Code("||"),AND:new Pe._Code("&&"),ADD:new Pe._Code("+")};var Ln=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Pf=class extends Ln{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?nn.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=Ms(this.rhs,t,r)),this}get names(){return this.rhs instanceof Pe._CodeOrName?this.rhs.names:{}}},Tl=class extends Ln{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof Pe.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Ms(this.rhs,t,r),this}get names(){let t=this.lhs instanceof Pe.Name?{}:{...this.lhs.names};return Rl(t,this.rhs)}},Af=class extends Tl{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},Cf=class extends Ln{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},$f=class extends Ln{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},Of=class extends Ln{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Nf=class extends Ln{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=Ms(this.code,t,r),this}get names(){return this.code instanceof Pe._CodeOrName?this.code.names:{}}},ia=class extends Ln{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,o=n.length;for(;o--;){let s=n[o];s.optimizeNames(t,r)||(tj(t,s.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>zo(t,r.names),{})}},jn=class extends ia{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Mf=class extends ia{},Ns=class extends jn{};Ns.kind="else";var Uo=class e extends jn{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Ns(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(G0(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=Ms(this.condition,t,r),this}get names(){let t=super.names;return Rl(t,this.condition),this.else&&zo(t,this.else.names),t}};Uo.kind="if";var Go=class extends jn{};Go.kind="for";var Df=class extends Go{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=Ms(this.iteration,t,r),this}get names(){return zo(super.names,this.iteration.names)}},Lf=class extends Go{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?nn.varKinds.var:this.varKind,{name:n,from:o,to:s}=this;return`for(${r} ${n}=${o}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=Rl(super.names,this.from);return Rl(t,this.to)}},kl=class extends Go{constructor(t,r,n,o){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=o}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=Ms(this.iterable,t,r),this}get names(){return zo(super.names,this.iterable.names)}},aa=class extends jn{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};aa.kind="func";var ca=class extends ia{render(t){return"return "+super.render(t)}};ca.kind="return";var jf=class extends jn{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,o;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(o=this.finally)===null||o===void 0||o.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&zo(t,this.catch.names),this.finally&&zo(t,this.finally.names),t}},la=class extends jn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};la.kind="catch";var ua=class extends jn{render(t){return"finally"+super.render(t)}};ua.kind="finally";var Ff=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
16
- `:""},this._extScope=t,this._scope=new nn.Scope({parent:t}),this._nodes=[new Mf]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,o){let s=this._scope.toName(r);return n!==void 0&&o&&(this._constants[s.str]=n),this._leafNode(new Pf(t,s,n)),s}const(t,r,n){return this._def(nn.varKinds.const,t,r,n)}let(t,r,n){return this._def(nn.varKinds.let,t,r,n)}var(t,r,n){return this._def(nn.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Tl(t,r,n))}add(t,r){return this._leafNode(new Af(t,be.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==Pe.nil&&this._leafNode(new Nf(t)),this}object(...t){let r=["{"];for(let[n,o]of t)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,Pe.addCodeArg)(r,o));return r.push("}"),new Pe._Code(r)}if(t,r,n){if(this._blockNode(new Uo(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Uo(t))}else(){return this._elseNode(new Ns)}endIf(){return this._endBlockNode(Uo,Ns)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Df(t),r)}forRange(t,r,n,o,s=this.opts.es5?nn.varKinds.var:nn.varKinds.let){let i=this._scope.toName(t);return this._for(new Lf(s,i,r,n),()=>o(i))}forOf(t,r,n,o=nn.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let i=r instanceof Pe.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,Pe._)`${i}.length`,a=>{this.var(s,(0,Pe._)`${i}[${a}]`),n(s)})}return this._for(new kl("of",o,s,r),()=>n(s))}forIn(t,r,n,o=this.opts.es5?nn.varKinds.var:nn.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,Pe._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new kl("in",o,s,r),()=>n(s))}endFor(){return this._endBlockNode(Go)}label(t){return this._leafNode(new Cf(t))}break(t){return this._leafNode(new $f(t))}return(t){let r=new ca;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ca)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new jf;if(this._blockNode(o),this.code(t),r){let s=this.name("e");this._currNode=o.catch=new la(s),r(s)}return n&&(this._currNode=o.finally=new ua,this.code(n)),this._endBlockNode(la,ua)}throw(t){return this._leafNode(new Of(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=Pe.nil,n,o){return this._blockNode(new aa(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(aa)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Uo))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};be.CodeGen=Ff;function zo(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Rl(e,t){return t instanceof Pe._CodeOrName?zo(e,t.names):e}function Ms(e,t,r){if(e instanceof Pe.Name)return n(e);if(!o(e))return e;return new Pe._Code(e._items.reduce((s,i)=>(i instanceof Pe.Name&&(i=n(i)),i instanceof Pe._Code?s.push(...i._items):s.push(i),s),[]));function n(s){let i=r[s.str];return i===void 0||t[s.str]!==1?s:(delete t[s.str],i)}function o(s){return s instanceof Pe._Code&&s._items.some(i=>i instanceof Pe.Name&&t[i.str]===1&&r[i.str]!==void 0)}}function tj(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function G0(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Pe._)`!${qf(e)}`}be.not=G0;var rj=z0(be.operators.AND);function nj(...e){return e.reduce(rj)}be.and=nj;var oj=z0(be.operators.OR);function sj(...e){return e.reduce(oj)}be.or=sj;function z0(e){return(t,r)=>t===Pe.nil?r:r===Pe.nil?t:(0,Pe._)`${qf(t)} ${e} ${qf(r)}`}function qf(e){return e instanceof Pe.Name?e:(0,Pe._)`(${e})`}});var Te=w(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.checkStrictMode=Ee.getErrorPath=Ee.Type=Ee.useFunc=Ee.setEvaluated=Ee.evaluatedPropsToName=Ee.mergeEvaluated=Ee.eachItem=Ee.unescapeJsonPointer=Ee.escapeJsonPointer=Ee.escapeFragment=Ee.unescapeFragment=Ee.schemaRefOrVal=Ee.schemaHasRulesButRef=Ee.schemaHasRules=Ee.checkUnknownRules=Ee.alwaysValidSchema=Ee.toHash=void 0;var Je=me(),ij=sa();function aj(e){let t={};for(let r of e)t[r]=!0;return t}Ee.toHash=aj;function cj(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(V0(e,t),!W0(t,e.self.RULES.all))}Ee.alwaysValidSchema=cj;function V0(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let o=n.RULES.keywords;for(let s in t)o[s]||J0(e,`unknown keyword: "${s}"`)}Ee.checkUnknownRules=V0;function W0(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}Ee.schemaHasRules=W0;function lj(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}Ee.schemaHasRulesButRef=lj;function uj({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Je._)`${r}`}return(0,Je._)`${e}${t}${(0,Je.getProperty)(n)}`}Ee.schemaRefOrVal=uj;function pj(e){return K0(decodeURIComponent(e))}Ee.unescapeFragment=pj;function dj(e){return encodeURIComponent(Gf(e))}Ee.escapeFragment=dj;function Gf(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}Ee.escapeJsonPointer=Gf;function K0(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}Ee.unescapeJsonPointer=K0;function fj(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}Ee.eachItem=fj;function B0({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,s,i,a)=>{let c=i===void 0?s:i instanceof Je.Name?(s instanceof Je.Name?e(o,s,i):t(o,s,i),i):s instanceof Je.Name?(t(o,i,s),s):r(s,i);return a===Je.Name&&!(c instanceof Je.Name)?n(o,c):c}}Ee.mergeEvaluated={props:B0({mergeNames:(e,t,r)=>e.if((0,Je._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Je._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Je._)`${r} || {}`).code((0,Je._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Je._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Je._)`${r} || {}`),zf(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:Y0}),items:B0({mergeNames:(e,t,r)=>e.if((0,Je._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Je._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Je._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Je._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function Y0(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Je._)`{}`);return t!==void 0&&zf(e,r,t),r}Ee.evaluatedPropsToName=Y0;function zf(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Je._)`${t}${(0,Je.getProperty)(n)}`,!0))}Ee.setEvaluated=zf;var H0={};function mj(e,t){return e.scopeValue("func",{ref:t,code:H0[t.code]||(H0[t.code]=new ij._Code(t.code))})}Ee.useFunc=mj;var Uf;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Uf||(Ee.Type=Uf={}));function hj(e,t,r){if(e instanceof Je.Name){let n=t===Uf.Num;return r?n?(0,Je._)`"[" + ${e} + "]"`:(0,Je._)`"['" + ${e} + "']"`:n?(0,Je._)`"/" + ${e}`:(0,Je._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Je.getProperty)(e).toString():"/"+Gf(e)}Ee.getErrorPath=hj;function J0(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}Ee.checkStrictMode=J0});var Fr=w(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});var Vt=me(),gj={data:new Vt.Name("data"),valCxt:new Vt.Name("valCxt"),instancePath:new Vt.Name("instancePath"),parentData:new Vt.Name("parentData"),parentDataProperty:new Vt.Name("parentDataProperty"),rootData:new Vt.Name("rootData"),dynamicAnchors:new Vt.Name("dynamicAnchors"),vErrors:new Vt.Name("vErrors"),errors:new Vt.Name("errors"),this:new Vt.Name("this"),self:new Vt.Name("self"),scope:new Vt.Name("scope"),json:new Vt.Name("json"),jsonPos:new Vt.Name("jsonPos"),jsonLen:new Vt.Name("jsonLen"),jsonPart:new Vt.Name("jsonPart")};Bf.default=gj});var pa=w(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.extendErrors=Wt.resetErrorsCount=Wt.reportExtraError=Wt.reportError=Wt.keyword$DataError=Wt.keywordError=void 0;var Oe=me(),Pl=Te(),rr=Fr();Wt.keywordError={message:({keyword:e})=>(0,Oe.str)`must pass "${e}" keyword validation`};Wt.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,Oe.str)`"${e}" keyword must be ${t} ($data)`:(0,Oe.str)`"${e}" keyword is invalid ($data)`};function yj(e,t=Wt.keywordError,r,n){let{it:o}=e,{gen:s,compositeRule:i,allErrors:a}=o,c=Z0(e,t,r);n??(i||a)?X0(s,c):Q0(o,(0,Oe._)`[${c}]`)}Wt.reportError=yj;function vj(e,t=Wt.keywordError,r){let{it:n}=e,{gen:o,compositeRule:s,allErrors:i}=n,a=Z0(e,t,r);X0(o,a),s||i||Q0(n,rr.default.vErrors)}Wt.reportExtraError=vj;function wj(e,t){e.assign(rr.default.errors,t),e.if((0,Oe._)`${rr.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,Oe._)`${rr.default.vErrors}.length`,t),()=>e.assign(rr.default.vErrors,null)))}Wt.resetErrorsCount=wj;function xj({gen:e,keyword:t,schemaValue:r,data:n,errsCount:o,it:s}){if(o===void 0)throw new Error("ajv implementation error");let i=e.name("err");e.forRange("i",o,rr.default.errors,a=>{e.const(i,(0,Oe._)`${rr.default.vErrors}[${a}]`),e.if((0,Oe._)`${i}.instancePath === undefined`,()=>e.assign((0,Oe._)`${i}.instancePath`,(0,Oe.strConcat)(rr.default.instancePath,s.errorPath))),e.assign((0,Oe._)`${i}.schemaPath`,(0,Oe.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,Oe._)`${i}.schema`,r),e.assign((0,Oe._)`${i}.data`,n))})}Wt.extendErrors=xj;function X0(e,t){let r=e.const("err",t);e.if((0,Oe._)`${rr.default.vErrors} === null`,()=>e.assign(rr.default.vErrors,(0,Oe._)`[${r}]`),(0,Oe._)`${rr.default.vErrors}.push(${r})`),e.code((0,Oe._)`${rr.default.errors}++`)}function Q0(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,Oe._)`new ${e.ValidationError}(${t})`):(r.assign((0,Oe._)`${n}.errors`,t),r.return(!1))}var Bo={keyword:new Oe.Name("keyword"),schemaPath:new Oe.Name("schemaPath"),params:new Oe.Name("params"),propertyName:new Oe.Name("propertyName"),message:new Oe.Name("message"),schema:new Oe.Name("schema"),parentSchema:new Oe.Name("parentSchema")};function Z0(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,Oe._)`{}`:bj(e,t,r)}function bj(e,t,r={}){let{gen:n,it:o}=e,s=[_j(o,r),Sj(e,r)];return Ej(e,t,s),n.object(...s)}function _j({errorPath:e},{instancePath:t}){let r=t?(0,Oe.str)`${e}${(0,Pl.getErrorPath)(t,Pl.Type.Str)}`:e;return[rr.default.instancePath,(0,Oe.strConcat)(rr.default.instancePath,r)]}function Sj({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,Oe.str)`${t}/${e}`;return r&&(o=(0,Oe.str)`${o}${(0,Pl.getErrorPath)(r,Pl.Type.Str)}`),[Bo.schemaPath,o]}function Ej(e,{params:t,message:r},n){let{keyword:o,data:s,schemaValue:i,it:a}=e,{opts:c,propertyName:l,topSchemaRef:u,schemaPath:p}=a;n.push([Bo.keyword,o],[Bo.params,typeof t=="function"?t(e):t||(0,Oe._)`{}`]),c.messages&&n.push([Bo.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([Bo.schema,i],[Bo.parentSchema,(0,Oe._)`${u}${p}`],[rr.default.data,s]),l&&n.push([Bo.propertyName,l])}});var tS=w(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.boolOrEmptySchema=Ds.topBoolOrEmptySchema=void 0;var Tj=pa(),kj=me(),Rj=Fr(),Ij={message:"boolean schema is false"};function Pj(e){let{gen:t,schema:r,validateName:n}=e;r===!1?eS(e,!1):typeof r=="object"&&r.$async===!0?t.return(Rj.default.data):(t.assign((0,kj._)`${n}.errors`,null),t.return(!0))}Ds.topBoolOrEmptySchema=Pj;function Aj(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),eS(e)):r.var(t,!0)}Ds.boolOrEmptySchema=Aj;function eS(e,t){let{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Tj.reportError)(o,Ij,void 0,t)}});var Hf=w(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.getRules=Ls.isJSONType=void 0;var Cj=["string","number","integer","boolean","null","object","array"],$j=new Set(Cj);function Oj(e){return typeof e=="string"&&$j.has(e)}Ls.isJSONType=Oj;function Nj(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Ls.getRules=Nj});var Vf=w(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.shouldUseRule=co.shouldUseGroup=co.schemaHasRulesForType=void 0;function Mj({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&rS(e,n)}co.schemaHasRulesForType=Mj;function rS(e,t){return t.rules.some(r=>nS(e,r))}co.shouldUseGroup=rS;function nS(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}co.shouldUseRule=nS});var da=w(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.reportTypeError=Kt.checkDataTypes=Kt.checkDataType=Kt.coerceAndCheckDataType=Kt.getJSONTypes=Kt.getSchemaTypes=Kt.DataType=void 0;var Dj=Hf(),Lj=Vf(),jj=pa(),he=me(),oS=Te(),js;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(js||(Kt.DataType=js={}));function Fj(e){let t=sS(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}Kt.getSchemaTypes=Fj;function sS(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(Dj.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}Kt.getJSONTypes=sS;function qj(e,t){let{gen:r,data:n,opts:o}=e,s=Uj(t,o.coerceTypes),i=t.length>0&&!(s.length===0&&t.length===1&&(0,Lj.schemaHasRulesForType)(e,t[0]));if(i){let a=Kf(t,n,o.strictNumbers,js.Wrong);r.if(a,()=>{s.length?Gj(e,t,s):Yf(e)})}return i}Kt.coerceAndCheckDataType=qj;var iS=new Set(["string","number","integer","boolean","null"]);function Uj(e,t){return t?e.filter(r=>iS.has(r)||t==="array"&&r==="array"):[]}function Gj(e,t,r){let{gen:n,data:o,opts:s}=e,i=n.let("dataType",(0,he._)`typeof ${o}`),a=n.let("coerced",(0,he._)`undefined`);s.coerceTypes==="array"&&n.if((0,he._)`${i} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,he._)`${o}[0]`).assign(i,(0,he._)`typeof ${o}`).if(Kf(t,o,s.strictNumbers),()=>n.assign(a,o))),n.if((0,he._)`${a} !== undefined`);for(let l of r)(iS.has(l)||l==="array"&&s.coerceTypes==="array")&&c(l);n.else(),Yf(e),n.endIf(),n.if((0,he._)`${a} !== undefined`,()=>{n.assign(o,a),zj(e,a)});function c(l){switch(l){case"string":n.elseIf((0,he._)`${i} == "number" || ${i} == "boolean"`).assign(a,(0,he._)`"" + ${o}`).elseIf((0,he._)`${o} === null`).assign(a,(0,he._)`""`);return;case"number":n.elseIf((0,he._)`${i} == "boolean" || ${o} === null
10
+ `+s),e.push(o+"m+"+zc.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=wF()+t+" "+e[0]}function wF(){return Et.inspectOpts.hideDate?"":new Date().toISOString()+" "}function vF(...e){return process.stderr.write(Kc.formatWithOptions(Et.inspectOpts,...e)+`
11
+ `)}function xF(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function bF(){return process.env.DEBUG}function _F(e){e.inspectOpts={};let t=Object.keys(Et.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=Et.inspectOpts[t[r]]}zc.exports=Ad()(Et);var{formatters:D_}=zc.exports;D_.o=function(e){return this.inspectOpts.colors=this.useColors,Kc.inspect(e,this.inspectOpts).split(`
12
+ `).map(t=>t.trim()).join(" ")};D_.O=function(e){return this.inspectOpts.colors=this.useColors,Kc.inspect(e,this.inspectOpts)}});var F_=v(($re,$d)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?$d.exports=C_():$d.exports=L_()});var j_=v((Ore,q_)=>{var Si;q_.exports=function(){if(!Si){try{Si=F_()("follow-redirects")}catch{}typeof Si!="function"&&(Si=function(){})}Si.apply(null,arguments)}});var K_=v((Nre,Hd)=>{var ki=Ue("url"),Ti=ki.URL,SF=Ue("http"),TF=Ue("https"),Ld=Ue("stream").Writable,Fd=Ue("assert"),U_=j_();(function(){var t=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=po(Error.captureStackTrace);!t&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var qd=!1;try{Fd(new Ti(""))}catch(e){qd=e.code==="ERR_INVALID_URL"}var kF=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],jd=["abort","aborted","connect","error","socket","timeout"],Ud=Object.create(null);jd.forEach(function(e){Ud[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var Nd=Ei("ERR_INVALID_URL","Invalid URL",TypeError),Md=Ei("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),EF=Ei("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Md),RF=Ei("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),IF=Ei("ERR_STREAM_WRITE_AFTER_END","write after end"),AF=Ld.prototype.destroy||G_;function Qt(e,t){Ld.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 Md?o:new Md({cause:o}))}},this._performRequest()}Qt.prototype=Object.create(Ld.prototype);Qt.prototype.abort=function(){Gd(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Qt.prototype.destroy=function(e){return Gd(this._currentRequest,e),AF.call(this,e),this};Qt.prototype.write=function(e,t,r){if(this._ending)throw new IF;if(!uo(e)&&!$F(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(po(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 RF),this.abort())};Qt.prototype.end=function(e,t,r){if(po(e)?(r=e,e=t=null):po(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}};Qt.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};Qt.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};Qt.prototype.setTimeout=function(e,t){var r=this;function n(i){i.setTimeout(e),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function o(i){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},e),n(i)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),r.removeListener("close",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){Qt.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(Qt.prototype,e,{get:function(){return this._currentRequest[e]}})});Qt.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),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))}};Qt.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 jd)n.on(o,Ud[o]);if(this._currentUrl=/^\//.test(this._options.path)?ki.format(this._options):this._options.path,this._isRedirect){var s=0,i=this,a=this._requestBodyBuffers;(function c(l){if(n===i._currentRequest)if(l)i.emit("error",l);else if(s<a.length){var p=a[s++];n.finished||n.write(p.data,p.encoding,c)}else i._ended&&n.end()})()}};Qt.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(Gd(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new EF;var n,o=this._options.beforeRedirect;o&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=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=[],Od(/^content-/i,this._options.headers));var i=Od(/^host$/i,this._options.headers),a=Bd(this._currentUrl),c=i||a.host,l=/^\w+:/.test(r)?this._currentUrl:ki.format(Object.assign(a,{host:c})),p=CF(r,l);if(U_("redirecting to",p.href),this._isRedirect=!0,Dd(p,this._options),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==c&&!PF(p.host,c))&&Od(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),po(o)){var u={headers:e.headers,statusCode:t},d={url:l,method:s,headers:n};o(this._options,u,d),this._sanitizeOptions(this._options)}this._performRequest()};function B_(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var o=n+":",s=r[o]=e[n],i=t[n]=Object.create(s);function a(l,p,u){return OF(l)?l=Dd(l):uo(l)?l=Dd(Bd(l)):(u=p,p=H_(l),l={protocol:o}),po(p)&&(u=p,p=null),p=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},l,p),p.nativeProtocols=r,!uo(p.host)&&!uo(p.hostname)&&(p.hostname="::1"),Fd.equal(p.protocol,o,"protocol mismatch"),U_("options",p),new Qt(p,u)}function c(l,p,u){var d=i.request(l,p,u);return d.end(),d}Object.defineProperties(i,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function G_(){}function Bd(e){var t;if(qd)t=new Ti(e);else if(t=H_(ki.parse(e)),!uo(t.protocol))throw new Nd({input:e});return t}function CF(e,t){return qd?new Ti(e,t):Bd(ki.resolve(t,e))}function H_(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Nd({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Nd({input:e.href||e});return e}function Dd(e,t){var r=t||{};for(var n of kF)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}function Od(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()}function Ei(e,t,r){function n(o){po(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,o||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}function Gd(e,t){for(var r of jd)e.removeListener(r,Ud[r]);e.on("error",G_),e.destroy(t)}function PF(e,t){Fd(uo(e)&&uo(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function uo(e){return typeof e=="string"||e instanceof String}function po(e){return typeof e=="function"}function $F(e){return typeof e=="object"&&"length"in e}function OF(e){return Ti&&e instanceof Ti}Hd.exports=B_({http:SF,https:TF});Hd.exports.wrap=B_});var fo,Wc=b(()=>{fo="1.12.2"});function Ri(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}var Kd=b(()=>{"use strict"});function zd(e,t,r){let n=r&&r.Blob||Pe.classes.Blob,o=Ri(e);if(t===void 0&&n&&(t=!0),o==="data"){e=o.length?e.slice(o.length+1):e;let s=NF.exec(e);if(!s)throw new j("Invalid URL",j.ERR_INVALID_URL);let i=s[1],a=s[2],c=s[3],l=Buffer.from(decodeURIComponent(c),a?"base64":"utf8");if(t){if(!n)throw new j("Blob is not supported",j.ERR_NOT_SUPPORT);return new n([l],{type:i})}return l}throw new j("Unsupported protocol "+o,j.ERR_NOT_SUPPORT)}var NF,z_=b(()=>{"use strict";lr();Kd();Mr();NF=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/});import MF from"stream";var Wd,Vd,Yd,W_=b(()=>{"use strict";Be();Wd=Symbol("internals"),Vd=class extends MF.Transform{constructor(t){t=_.toFlatObject(t,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,o)=>!_.isUndefined(o[n])),super({readableHighWaterMark:t.chunkSize});let r=this[Wd]={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[Wd];return r.onReadCallback&&r.onReadCallback(),super._read(t)}_transform(t,r,n){let o=this[Wd],s=o.maxRate,i=this.readableHighWaterMark,a=o.timeWindow,c=1e3/a,l=s/c,p=o.minChunkSize!==!1?Math.max(o.minChunkSize,l*.01):0,u=(g,m)=>{let h=Buffer.byteLength(g);o.bytesSeen+=h,o.bytes+=h,o.isCaptured&&this.emit("progress",o.bytesSeen),this.push(g)?process.nextTick(m):o.onReadCallback=()=>{o.onReadCallback=null,process.nextTick(m)}},d=(g,m)=>{let h=Buffer.byteLength(g),w=null,x=i,E,S=0;if(s){let k=Date.now();(!o.ts||(S=k-o.ts)>=a)&&(o.ts=k,E=l-o.bytes,o.bytes=E<0?-E:0,S=0),E=l-o.bytes}if(s){if(E<=0)return setTimeout(()=>{m(null,g)},a-S);E<x&&(x=E)}x&&h>x&&h-x>p&&(w=g.subarray(x),g=g.subarray(0,x)),u(g,w?()=>{process.nextTick(m,null,w)}:m)};d(t,function g(m,h){if(m)return n(m);h?d(h,g):n(null)})}},Yd=Vd});var V_,DF,Vc,Jd=b(()=>{({asyncIterator:V_}=Symbol),DF=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[V_]?yield*e[V_]():yield e},Vc=DF});import LF from"util";import{Readable as FF}from"stream";var qF,Ii,mo,jF,UF,Xd,BF,Y_,J_=b(()=>{Be();Jd();Mr();qF=Pe.ALPHABET.ALPHA_DIGIT+"-_",Ii=typeof TextEncoder=="function"?new TextEncoder:new LF.TextEncoder,mo=`\r
13
+ `,jF=Ii.encode(mo),UF=2,Xd=class{constructor(t,r){let{escapeName:n}=this.constructor,o=_.isString(r),s=`Content-Disposition: form-data; name="${n(t)}"${!o&&r.name?`; filename="${n(r.name)}"`:""}${mo}`;o?r=Ii.encode(String(r).replace(/\r?\n|\r\n?/g,mo)):s+=`Content-Type: ${r.type||"application/octet-stream"}${mo}`,this.headers=Ii.encode(s+mo),this.contentLength=o?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+UF,this.name=t,this.value=r}async*encode(){yield this.headers;let{value:t}=this;_.isTypedArray(t)?yield t:yield*Vc(t),yield jF}static escapeName(t){return String(t).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}},BF=(e,t,r)=>{let{tag:n="form-data-boundary",size:o=25,boundary:s=n+"-"+Pe.generateString(o,qF)}=r||{};if(!_.isFormData(e))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");let i=Ii.encode("--"+s+mo),a=Ii.encode("--"+s+"--"+mo),c=a.byteLength,l=Array.from(e.entries()).map(([u,d])=>{let g=new Xd(u,d);return c+=g.size,g});c+=i.byteLength*l.length,c=_.toFiniteNumber(c);let p={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(c)&&(p["Content-Length"]=c),t&&t(p),FF.from((async function*(){for(let u of l)yield i,yield*u.encode();yield a})())},Y_=BF});import GF from"stream";var Qd,X_,Q_=b(()=>{"use strict";Qd=class extends GF.Transform{__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)}},X_=Qd});var HF,Z_,eS=b(()=>{Be();HF=(e,t)=>_.isAsyncFn(e)?function(...r){let n=r.pop();e.apply(this,r).then(o=>{try{t?n(null,...t(o)):n(null,o)}catch(s){n(s)}},n)}:e,Z_=HF});function KF(e,t){e=e||10;let r=new Array(e),n=new Array(e),o=0,s=0,i;return t=t!==void 0?t:1e3,function(c){let l=Date.now(),p=n[s];i||(i=l),r[o]=c,n[o]=l;let u=s,d=0;for(;u!==o;)d+=r[u++],u=u%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i<t)return;let g=p&&l-p;return g?Math.round(d*1e3/g):void 0}}var tS,rS=b(()=>{"use strict";tS=KF});function zF(e,t){let r=0,n=1e3/t,o,s,i=(l,p=Date.now())=>{r=p,o=null,s&&(clearTimeout(s),s=null),e(...l)};return[(...l)=>{let p=Date.now(),u=p-r;u>=n?i(l,p):(o=l,s||(s=setTimeout(()=>{s=null,i(o)},n-u)))},()=>o&&i(o)]}var nS,oS=b(()=>{nS=zF});var hn,as,cs,Yc=b(()=>{rS();oS();Be();hn=(e,t,r=3)=>{let n=0,o=tS(50,250);return nS(s=>{let i=s.loaded,a=s.lengthComputable?s.total:void 0,c=i-n,l=o(c),p=i<=a;n=i;let u={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a&&p?(a-i)/l:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(u)},r)},as=(e,t)=>{let r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},cs=e=>(...t)=>_.asap(()=>e(...t))});function Zd(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,i=n.length;for(let d=0;d<i;d++)if(n.charCodeAt(d)===37&&d+2<i){let g=n.charCodeAt(d+1),m=n.charCodeAt(d+2);(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(s-=2,d+=2)}let a=0,c=i-1,l=d=>d>=2&&n.charCodeAt(d-2)===37&&n.charCodeAt(d-1)===51&&(n.charCodeAt(d)===68||n.charCodeAt(d)===100);c>=0&&(n.charCodeAt(c)===61?(a++,c--):l(c)&&(a++,c-=3)),a===1&&c>=0&&(n.charCodeAt(c)===61||l(c))&&a++;let u=Math.floor(s/4)*3-(a||0);return u>0?u:0}return Buffer.byteLength(n,"utf8")}var sS=b(()=>{});import WF from"http";import VF from"https";import YF from"util";import Nn from"zlib";import ls from"stream";import{EventEmitter as JF}from"events";function tq(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function fS(e,t,r){let n=t;if(!n&&n!==!1){let o=pS.default.getProxyForUrl(r);o&&(n=new URL(o))}if(n){if(n.username&&(n.auth=(n.username||"")+":"+(n.password||"")),n.auth){(n.auth.username||n.auth.password)&&(n.auth=(n.auth.username||"")+":"+(n.auth.password||""));let s=Buffer.from(n.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+s}e.headers.host=e.hostname+(e.port?":"+e.port:"");let o=n.hostname||n.host;e.hostname=o,e.host=o,e.port=n.port,e.path=r,n.protocol&&(e.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}e.beforeRedirects.proxy=function(s){fS(s,t,s.href)}}var pS,dS,iS,XF,aS,QF,ZF,eq,cS,lS,rq,nq,oq,uS,mS,hS=b(()=>{"use strict";Be();Uc();Bc();Dc();pS=mn(E_(),1),dS=mn(K_(),1);Wc();Lc();lr();ao();Mr();z_();Wr();W_();J_();Jd();Q_();eS();Yc();sS();iS={flush:Nn.constants.Z_SYNC_FLUSH,finishFlush:Nn.constants.Z_SYNC_FLUSH},XF={flush:Nn.constants.BROTLI_OPERATION_FLUSH,finishFlush:Nn.constants.BROTLI_OPERATION_FLUSH},aS=_.isFunction(Nn.createBrotliDecompress),{http:QF,https:ZF}=dS.default,eq=/https:?/,cS=Pe.protocols.map(e=>e+":"),lS=(e,[t,r])=>(e.on("end",r).on("error",r),t);rq=typeof process<"u"&&_.kindOf(process)==="process",nq=e=>new Promise((t,r)=>{let n,o,s=(c,l)=>{o||(o=!0,n&&n(c,l))},i=c=>{s(c),t(c)},a=c=>{s(c,!0),r(c)};e(i,a,c=>n=c).catch(a)}),oq=({address:e,family:t})=>{if(!_.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}},uS=(e,t)=>oq(_.isObject(e)?e:{address:e,family:t}),mS=rq&&function(t){return nq(async function(n,o,s){let{data:i,lookup:a,family:c}=t,{responseType:l,responseEncoding:p}=t,u=t.method.toUpperCase(),d,g=!1,m;if(a){let ne=Z_(a,W=>_.isArray(W)?W:[W]);a=(W,Ce,Ct)=>{ne(W,Ce,(Ee,Qe,Re)=>{if(Ee)return Ct(Ee);let ft=_.isArray(Qe)?Qe.map(de=>uS(de)):[uS(Qe,Re)];Ce.all?Ct(Ee,ft):Ct(Ee,ft[0].address,ft[0].family)})}}let h=new JF,w=()=>{t.cancelToken&&t.cancelToken.unsubscribe(x),t.signal&&t.signal.removeEventListener("abort",x),h.removeAllListeners()};s((ne,W)=>{d=!0,W&&(g=!0,w())});function x(ne){h.emit("abort",!ne||ne.type?new ur(null,t,m):ne)}h.once("abort",o),(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(x),t.signal&&(t.signal.aborted?x():t.signal.addEventListener("abort",x)));let E=co(t.baseURL,t.url,t.allowAbsoluteUrls),S=new URL(E,Pe.hasBrowserEnv?Pe.origin:void 0),k=S.protocol||cS[0];if(k==="data:"){if(t.maxContentLength>-1){let W=String(t.url||E||"");if(Zd(W)>t.maxContentLength)return o(new j("maxContentLength size of "+t.maxContentLength+" exceeded",j.ERR_BAD_RESPONSE,t))}let ne;if(u!=="GET")return Vr(n,o,{status:405,statusText:"method not allowed",headers:{},config:t});try{ne=zd(t.url,l==="blob",{Blob:t.env&&t.env.Blob})}catch(W){throw j.from(W,j.ERR_BAD_REQUEST,t)}return l==="text"?(ne=ne.toString(p),(!p||p==="utf8")&&(ne=_.stripBOM(ne))):l==="stream"&&(ne=ls.Readable.from(ne)),Vr(n,o,{data:ne,status:200,statusText:"OK",headers:new ot,config:t})}if(cS.indexOf(k)===-1)return o(new j("Unsupported protocol "+k,j.ERR_BAD_REQUEST,t));let I=ot.from(t.headers).normalize();I.set("User-Agent","axios/"+fo,!1);let{onUploadProgress:C,onDownloadProgress:P}=t,$=t.maxRate,H,ge;if(_.isSpecCompliantForm(i)){let ne=I.getContentType(/boundary=([-_\w\d]{10,70})/i);i=Y_(i,W=>{I.set(W)},{tag:`axios-${fo}-boundary`,boundary:ne&&ne[1]||void 0})}else if(_.isFormData(i)&&_.isFunction(i.getHeaders)){if(I.set(i.getHeaders()),!I.hasContentLength())try{let ne=await YF.promisify(i.getLength).call(i);Number.isFinite(ne)&&ne>=0&&I.setContentLength(ne)}catch{}}else if(_.isBlob(i)||_.isFile(i))i.size&&I.setContentType(i.type||"application/octet-stream"),I.setContentLength(i.size||0),i=ls.Readable.from(Vc(i));else if(i&&!_.isStream(i)){if(!Buffer.isBuffer(i))if(_.isArrayBuffer(i))i=Buffer.from(new Uint8Array(i));else if(_.isString(i))i=Buffer.from(i,"utf-8");else return o(new j("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",j.ERR_BAD_REQUEST,t));if(I.setContentLength(i.length,!1),t.maxBodyLength>-1&&i.length>t.maxBodyLength)return o(new j("Request body larger than maxBodyLength limit",j.ERR_BAD_REQUEST,t))}let De=_.toFiniteNumber(I.getContentLength());_.isArray($)?(H=$[0],ge=$[1]):H=ge=$,i&&(C||H)&&(_.isStream(i)||(i=ls.Readable.from(i,{objectMode:!1})),i=ls.pipeline([i,new Yd({maxRate:_.toFiniteNumber(H)})],_.noop),C&&i.on("progress",lS(i,as(De,hn(cs(C),!1,3)))));let Z;if(t.auth){let ne=t.auth.username||"",W=t.auth.password||"";Z=ne+":"+W}if(!Z&&S.username){let ne=S.username,W=S.password;Z=ne+":"+W}Z&&I.delete("authorization");let J;try{J=io(S.pathname+S.search,t.params,t.paramsSerializer).replace(/^\?/,"")}catch(ne){let W=new Error(ne.message);return W.config=t,W.url=t.url,W.exists=!0,o(W)}I.set("Accept-Encoding","gzip, compress, deflate"+(aS?", br":""),!1);let te={path:J,method:u,headers:I.toJSON(),agents:{http:t.httpAgent,https:t.httpsAgent},auth:Z,protocol:k,family:c,beforeRedirect:tq,beforeRedirects:{}};!_.isUndefined(a)&&(te.lookup=a),t.socketPath?te.socketPath=t.socketPath:(te.hostname=S.hostname.startsWith("[")?S.hostname.slice(1,-1):S.hostname,te.port=S.port,fS(te,t.proxy,k+"//"+S.hostname+(S.port?":"+S.port:"")+te.path));let dt,lt=eq.test(te.protocol);if(te.agent=lt?t.httpsAgent:t.httpAgent,t.transport?dt=t.transport:t.maxRedirects===0?dt=lt?VF:WF:(t.maxRedirects&&(te.maxRedirects=t.maxRedirects),t.beforeRedirect&&(te.beforeRedirects.config=t.beforeRedirect),dt=lt?ZF:QF),t.maxBodyLength>-1?te.maxBodyLength=t.maxBodyLength:te.maxBodyLength=1/0,t.insecureHTTPParser&&(te.insecureHTTPParser=t.insecureHTTPParser),m=dt.request(te,function(W){if(m.destroyed)return;let Ce=[W],Ct=+W.headers["content-length"];if(P||ge){let de=new Yd({maxRate:_.toFiniteNumber(ge)});P&&de.on("progress",lS(de,as(Ct,hn(cs(P),!0,3)))),Ce.push(de)}let Ee=W,Qe=W.req||m;if(t.decompress!==!1&&W.headers["content-encoding"])switch((u==="HEAD"||W.statusCode===204)&&delete W.headers["content-encoding"],(W.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":Ce.push(Nn.createUnzip(iS)),delete W.headers["content-encoding"];break;case"deflate":Ce.push(new X_),Ce.push(Nn.createUnzip(iS)),delete W.headers["content-encoding"];break;case"br":aS&&(Ce.push(Nn.createBrotliDecompress(XF)),delete W.headers["content-encoding"])}Ee=Ce.length>1?ls.pipeline(Ce,_.noop):Ce[0];let Re=ls.finished(Ee,()=>{Re(),w()}),ft={status:W.statusCode,statusText:W.statusMessage,headers:new ot(W.headers),config:t,request:Qe};if(l==="stream")ft.data=Ee,Vr(n,o,ft);else{let de=[],no=0;Ee.on("data",function(mt){de.push(mt),no+=mt.length,t.maxContentLength>-1&&no>t.maxContentLength&&(g=!0,Ee.destroy(),o(new j("maxContentLength size of "+t.maxContentLength+" exceeded",j.ERR_BAD_RESPONSE,t,Qe)))}),Ee.on("aborted",function(){if(g)return;let mt=new j("stream has been aborted",j.ERR_BAD_RESPONSE,t,Qe);Ee.destroy(mt),o(mt)}),Ee.on("error",function(mt){m.destroyed||o(j.from(mt,null,t,Qe))}),Ee.on("end",function(){try{let mt=de.length===1?de[0]:Buffer.concat(de);l!=="arraybuffer"&&(mt=mt.toString(p),(!p||p==="utf8")&&(mt=_.stripBOM(mt))),ft.data=mt}catch(mt){return o(j.from(mt,null,t,ft.request,ft))}Vr(n,o,ft)})}h.once("abort",de=>{Ee.destroyed||(Ee.emit("error",de),Ee.destroy())})}),h.once("abort",ne=>{o(ne),m.destroy(ne)}),m.on("error",function(W){o(j.from(W,null,t,m))}),m.on("socket",function(W){W.setKeepAlive(!0,1e3*60)}),t.timeout){let ne=parseInt(t.timeout,10);if(Number.isNaN(ne)){o(new j("error trying to parse `config.timeout` to int",j.ERR_BAD_OPTION_VALUE,t,m));return}m.setTimeout(ne,function(){if(d)return;let Ce=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",Ct=t.transitional||es;t.timeoutErrorMessage&&(Ce=t.timeoutErrorMessage),o(new j(Ce,Ct.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,t,m)),x()})}if(_.isStream(i)){let ne=!1,W=!1;i.on("end",()=>{ne=!0}),i.once("error",Ce=>{W=!0,m.destroy(Ce)}),i.on("close",()=>{!ne&&!W&&x(new ur("Request stream has been aborted",t,m))}),i.pipe(m)}else m.end(i)})}});var gS,yS=b(()=>{Mr();gS=Pe.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Pe.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Pe.origin),Pe.navigator&&/(msie|trident)/i.test(Pe.navigator.userAgent)):()=>!0});var wS,vS=b(()=>{Be();Mr();wS=Pe.hasStandardBrowserEnv?{write(e,t,r,n,o,s){let i=[e+"="+encodeURIComponent(t)];_.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),_.isString(n)&&i.push("path="+n),_.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){let t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}}});function Dr(e,t){t=t||{};let r={};function n(l,p,u,d){return _.isPlainObject(l)&&_.isPlainObject(p)?_.merge.call({caseless:d},l,p):_.isPlainObject(p)?_.merge({},p):_.isArray(p)?p.slice():p}function o(l,p,u,d){if(_.isUndefined(p)){if(!_.isUndefined(l))return n(void 0,l,u,d)}else return n(l,p,u,d)}function s(l,p){if(!_.isUndefined(p))return n(void 0,p)}function i(l,p){if(_.isUndefined(p)){if(!_.isUndefined(l))return n(void 0,l)}else return n(void 0,p)}function a(l,p,u){if(u in t)return n(l,p);if(u in e)return n(void 0,l)}let c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(l,p,u)=>o(xS(l),xS(p),u,!0)};return _.forEach(Object.keys({...e,...t}),function(p){let u=c[p]||o,d=u(e[p],t[p],p);_.isUndefined(d)&&u!==a||(r[p]=d)}),r}var xS,Jc=b(()=>{"use strict";Be();Wr();xS=e=>e instanceof ot?{...e}:e});var Xc,ef=b(()=>{Mr();Be();yS();vS();Bc();Jc();Wr();Dc();Xc=e=>{let t=Dr({},e),{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;if(t.headers=i=ot.from(i),t.url=io(co(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),_.isFormData(r)){if(Pe.hasStandardBrowserEnv||Pe.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(_.isFunction(r.getHeaders)){let c=r.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([p,u])=>{l.includes(p.toLowerCase())&&i.set(p,u)})}}if(Pe.hasStandardBrowserEnv&&(n&&_.isFunction(n)&&(n=n(t)),n||n!==!1&&gS(t.url))){let c=o&&s&&wS.read(s);c&&i.set(o,c)}return t}});var sq,bS,_S=b(()=>{Be();Uc();Lc();lr();ao();Kd();Mr();Wr();Yc();ef();sq=typeof XMLHttpRequest<"u",bS=sq&&function(e){return new Promise(function(r,n){let o=Xc(e),s=o.data,i=ot.from(o.headers).normalize(),{responseType:a,onUploadProgress:c,onDownloadProgress:l}=o,p,u,d,g,m;function h(){g&&g(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function x(){if(!w)return;let S=ot.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),I={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:S,config:e,request:w};Vr(function(P){r(P),h()},function(P){n(P),h()},I),w=null}"onloadend"in w?w.onloadend=x:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(x)},w.onabort=function(){w&&(n(new j("Request aborted",j.ECONNABORTED,e,w)),w=null)},w.onerror=function(k){let I=k&&k.message?k.message:"Network Error",C=new j(I,j.ERR_NETWORK,e,w);C.event=k||null,n(C),w=null},w.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded",I=o.transitional||es;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),n(new j(k,I.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,e,w)),w=null},s===void 0&&i.setContentType(null),"setRequestHeader"in w&&_.forEach(i.toJSON(),function(k,I){w.setRequestHeader(I,k)}),_.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),a&&a!=="json"&&(w.responseType=o.responseType),l&&([d,m]=hn(l,!0),w.addEventListener("progress",d)),c&&w.upload&&([u,g]=hn(c),w.upload.addEventListener("progress",u),w.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(p=S=>{w&&(n(!S||S.type?new ur(null,e,w):S),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));let E=Ri(o.url);if(E&&Pe.protocols.indexOf(E)===-1){n(new j("Unsupported protocol "+E+":",j.ERR_BAD_REQUEST,e));return}w.send(s||null)})}});var iq,SS,TS=b(()=>{ao();lr();Be();iq=(e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o,s=function(l){if(!o){o=!0,a();let p=l instanceof Error?l:this.reason;n.abort(p instanceof j?p:new ur(p instanceof Error?p.message:p))}},i=t&&setTimeout(()=>{i=null,s(new j(`timeout ${t} of ms exceeded`,j.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>l.addEventListener("abort",s));let{signal:c}=n;return c.unsubscribe=()=>_.asap(a),c}},SS=iq});var aq,cq,lq,tf,kS=b(()=>{aq=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},cq=async function*(e,t){for await(let r of lq(e))yield*aq(r,t)},lq=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()}},tf=(e,t,r,n)=>{let o=cq(e,t),s=0,i,a=c=>{i||(i=!0,n&&n(c))};return new ReadableStream({async pull(c){try{let{done:l,value:p}=await o.next();if(l){a(),c.close();return}let u=p.byteLength;if(r){let d=s+=u;r(d)}c.enqueue(new Uint8Array(p))}catch(l){throw a(l),l}},cancel(c){return a(c),o.return()}},{highWaterMark:2})}});var ES,Qc,uq,RS,IS,AS,pq,dq,rf,boe,CS=b(()=>{Mr();Be();lr();TS();kS();Wr();Yc();ef();Uc();ES=64*1024,{isFunction:Qc}=_,uq=(({Request:e,Response:t})=>({Request:e,Response:t}))(_.global),{ReadableStream:RS,TextEncoder:IS}=_.global,AS=(e,...t)=>{try{return!!e(...t)}catch{return!1}},pq=e=>{e=_.merge.call({skipUndefined:!0},uq,e);let{fetch:t,Request:r,Response:n}=e,o=t?Qc(t):typeof fetch=="function",s=Qc(r),i=Qc(n);if(!o)return!1;let a=o&&Qc(RS),c=o&&(typeof IS=="function"?(m=>h=>m.encode(h))(new IS):async m=>new Uint8Array(await new r(m).arrayBuffer())),l=s&&a&&AS(()=>{let m=!1,h=new r(Pe.origin,{body:new RS,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!h}),p=i&&a&&AS(()=>_.isReadableStream(new n("").body)),u={stream:p&&(m=>m.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!u[m]&&(u[m]=(h,w)=>{let x=h&&h[m];if(x)return x.call(h);throw new j(`Response type '${m}' is not supported`,j.ERR_NOT_SUPPORT,w)})});let d=async m=>{if(m==null)return 0;if(_.isBlob(m))return m.size;if(_.isSpecCompliantForm(m))return(await new r(Pe.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(_.isArrayBufferView(m)||_.isArrayBuffer(m))return m.byteLength;if(_.isURLSearchParams(m)&&(m=m+""),_.isString(m))return(await c(m)).byteLength},g=async(m,h)=>{let w=_.toFiniteNumber(m.getContentLength());return w??d(h)};return async m=>{let{url:h,method:w,data:x,signal:E,cancelToken:S,timeout:k,onDownloadProgress:I,onUploadProgress:C,responseType:P,headers:$,withCredentials:H="same-origin",fetchOptions:ge}=Xc(m),De=t||fetch;P=P?(P+"").toLowerCase():"text";let Z=SS([E,S&&S.toAbortSignal()],k),J=null,te=Z&&Z.unsubscribe&&(()=>{Z.unsubscribe()}),dt;try{if(C&&l&&w!=="get"&&w!=="head"&&(dt=await g($,x))!==0){let Ee=new r(h,{method:"POST",body:x,duplex:"half"}),Qe;if(_.isFormData(x)&&(Qe=Ee.headers.get("content-type"))&&$.setContentType(Qe),Ee.body){let[Re,ft]=as(dt,hn(cs(C)));x=tf(Ee.body,ES,Re,ft)}}_.isString(H)||(H=H?"include":"omit");let lt=s&&"credentials"in r.prototype,ne={...ge,signal:Z,method:w.toUpperCase(),headers:$.normalize().toJSON(),body:x,duplex:"half",credentials:lt?H:void 0};J=s&&new r(h,ne);let W=await(s?De(J,ge):De(h,ne)),Ce=p&&(P==="stream"||P==="response");if(p&&(I||Ce&&te)){let Ee={};["status","statusText","headers"].forEach(de=>{Ee[de]=W[de]});let Qe=_.toFiniteNumber(W.headers.get("content-length")),[Re,ft]=I&&as(Qe,hn(cs(I),!0))||[];W=new n(tf(W.body,ES,Re,()=>{ft&&ft(),te&&te()}),Ee)}P=P||"text";let Ct=await u[_.findKey(u,P)||"text"](W,m);return!Ce&&te&&te(),await new Promise((Ee,Qe)=>{Vr(Ee,Qe,{data:Ct,headers:ot.from(W.headers),status:W.status,statusText:W.statusText,config:m,request:J})})}catch(lt){throw te&&te(),lt&&lt.name==="TypeError"&&/Load failed|fetch/i.test(lt.message)?Object.assign(new j("Network Error",j.ERR_NETWORK,m,J),{cause:lt.cause||lt}):j.from(lt,lt&&lt.code,m,J)}}},dq=new Map,rf=e=>{let t=e?e.env:{},{fetch:r,Request:n,Response:o}=t,s=[n,o,r],i=s.length,a=i,c,l,p=dq;for(;a--;)c=s[a],l=p.get(c),l===void 0&&p.set(c,l=a?new Map:pq(t)),p=l;return l},boe=rf()});var nf,PS,mq,Zc,of=b(()=>{Be();hS();_S();CS();lr();nf={http:mS,xhr:bS,fetch:{get:rf}};_.forEach(nf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});PS=e=>`- ${e}`,mq=e=>_.isFunction(e)||e===null||e===!1,Zc={getAdapter:(e,t)=>{e=_.isArray(e)?e:[e];let{length:r}=e,n,o,s={};for(let i=0;i<r;i++){n=e[i];let a;if(o=n,!mq(n)&&(o=nf[(a=String(n)).toLowerCase()],o===void 0))throw new j(`Unknown adapter '${a}'`);if(o&&(_.isFunction(o)||(o=o.get(t))))break;s[a||"#"+i]=o}if(!o){let i=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build")),a=r?i.length>1?`since :
14
+ `+i.map(PS).join(`
15
+ `):" "+PS(i[0]):"as no adapter specified";throw new j("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:nf}});function sf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ur(null,e)}function el(e){return sf(e),e.headers=ot.from(e.headers),e.data=bi.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Zc.getAdapter(e.adapter||ts.adapter,e)(e).then(function(n){return sf(e),n.data=bi.call(e,e.transformResponse,n),n.headers=ot.from(n.headers),n},function(n){return _i(n)||(sf(e),n&&n.response&&(n.response.data=bi.call(e,e.transformResponse,n.response),n.response.headers=ot.from(n.response.headers))),Promise.reject(n)})}var $S=b(()=>{"use strict";b_();Ed();qc();ao();Wr();of()});function hq(e,t,r){if(typeof e!="object")throw new j("options must be an object",j.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let s=n[o],i=t[s];if(i){let a=e[s],c=a===void 0||i(a,s,e);if(c!==!0)throw new j("option "+s+" must be "+c,j.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new j("Unknown option "+s,j.ERR_BAD_OPTION)}}var tl,OS,Ai,NS=b(()=>{"use strict";Wc();lr();tl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tl[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});OS={};tl.transitional=function(t,r,n){function o(s,i){return"[Axios v"+fo+"] Transitional option '"+s+"'"+i+(n?". "+n:"")}return(s,i,a)=>{if(t===!1)throw new j(o(i," has been removed"+(r?" in "+r:"")),j.ERR_DEPRECATED);return r&&!OS[i]&&(OS[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,a):!0}};tl.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};Ai={assertOptions:hq,validators:tl}});var Yr,us,Ci,MS=b(()=>{"use strict";Be();Dc();l_();$S();Jc();Bc();NS();Wr();Yr=Ai.validators,us=class{constructor(t){this.defaults=t||{},this.interceptors={request:new yd,response:new yd}}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 s=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
16
+ `+s):n.stack=s}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Dr(this.defaults,r);let{transitional:n,paramsSerializer:o,headers:s}=r;n!==void 0&&Ai.assertOptions(n,{silentJSONParsing:Yr.transitional(Yr.boolean),forcedJSONParsing:Yr.transitional(Yr.boolean),clarifyTimeoutError:Yr.transitional(Yr.boolean)},!1),o!=null&&(_.isFunction(o)?r.paramsSerializer={serialize:o}:Ai.assertOptions(o,{encode:Yr.function,serialize:Yr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Ai.assertOptions(r,{baseUrl:Yr.spelling("baseURL"),withXsrfToken:Yr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&_.merge(s.common,s[r.method]);s&&_.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),r.headers=ot.concat(i,s);let a=[],c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(c=c&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});let l=[];this.interceptors.response.forEach(function(h){l.push(h.fulfilled,h.rejected)});let p,u=0,d;if(!c){let m=[el.bind(this),void 0];for(m.unshift(...a),m.push(...l),d=m.length,p=Promise.resolve(r);u<d;)p=p.then(m[u++],m[u++]);return p}d=a.length;let g=r;for(;u<d;){let m=a[u++],h=a[u++];try{g=m(g)}catch(w){h.call(this,w);break}}try{p=el.call(this,g)}catch(m){return Promise.reject(m)}for(u=0,d=l.length;u<d;)p=p.then(l[u++],l[u++]);return p}getUri(t){t=Dr(this.defaults,t);let r=co(t.baseURL,t.url,t.allowAbsoluteUrls);return io(r,t.params,t.paramsSerializer)}};_.forEach(["delete","get","head","options"],function(t){us.prototype[t]=function(r,n){return this.request(Dr(n||{},{method:t,url:r,data:(n||{}).data}))}});_.forEach(["post","put","patch"],function(t){function r(n){return function(s,i,a){return this.request(Dr(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}us.prototype[t]=r(),us.prototype[t+"Form"]=r(!0)});Ci=us});var af,DS,LS=b(()=>{"use strict";ao();af=class e{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});let n=this;this.promise.then(o=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](o);n._listeners=null}),this.promise.then=o=>{let s,i=new Promise(a=>{n.subscribe(a),s=a}).then(o);return i.cancel=function(){n.unsubscribe(s)},i},t(function(s,i,a){n.reason||(n.reason=new ur(s,i,a),r(n.reason))})}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=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new e(function(o){t=o}),cancel:t}}},DS=af});function cf(e){return function(r){return e.apply(null,r)}}var FS=b(()=>{"use strict"});function lf(e){return _.isObject(e)&&e.isAxiosError===!0}var qS=b(()=>{"use strict";Be()});var uf,jS,US=b(()=>{uf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(uf).forEach(([e,t])=>{uf[t]=e});jS=uf});function BS(e){let t=new Ci(e),r=pi(Ci.prototype.request,t);return _.extend(r,Ci.prototype,t,{allOwnKeys:!0}),_.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return BS(Dr(e,o))},r}var gt,tt,GS=b(()=>{"use strict";Be();zp();MS();Jc();qc();Sd();ao();LS();Ed();Wc();vi();lr();FS();qS();Wr();of();US();gt=BS(ts);gt.Axios=Ci;gt.CanceledError=ur;gt.CancelToken=DS;gt.isCancel=_i;gt.VERSION=fo;gt.toFormData=$n;gt.AxiosError=j;gt.Cancel=gt.CanceledError;gt.all=function(t){return Promise.all(t)};gt.spread=cf;gt.isAxiosError=lf;gt.mergeConfig=Dr;gt.AxiosHeaders=ot;gt.formToJSON=e=>Fc(_.isHTMLForm(e)?new FormData(e):e);gt.getAdapter=Zc.getAdapter;gt.HttpStatusCode=jS;gt.default=gt;tt=gt});var yse,wse,vse,xse,bse,_se,Sse,Tse,kse,Ese,Rse,Ise,Ase,Cse,Pse,$se,Jr=b(()=>{GS();({Axios:yse,AxiosError:wse,CanceledError:vse,isCancel:xse,CancelToken:bse,VERSION:_se,all:Sse,Cancel:Tse,isAxiosError:kse,spread:Ese,toFormData:Rse,AxiosHeaders:Ise,HttpStatusCode:Ase,formToJSON:Cse,getAdapter:Pse,mergeConfig:$se}=tt)});function zS(e){if(e==="0")return!0;if(/^[1-9]\d*$/.test(e)){let t=Number.parseInt(e,10);return t<=Number.MAX_SAFE_INTEGER&&t<=KS}return!1}function pf(e,t){return HS.has(e)?!1:(e&&zS(e)?t.push(Number.parseInt(e,10)):t.push(e),!0)}function yq(e){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);let t=[],r="",n="start",o=!1,s=0;for(let i of e){if(s++,o){r+=i,o=!1;continue}if(i==="\\"){if(n==="index")throw new Error(`Invalid character '${i}' in an index at position ${s}`);if(n==="indexEnd")throw new Error(`Invalid character '${i}' after an index at position ${s}`);o=!0,n=n==="start"?"property":n;continue}switch(i){case".":{if(n==="index")throw new Error(`Invalid character '${i}' in an index at position ${s}`);if(n==="indexEnd"){n="property";break}if(!pf(r,t))return[];r="",n="property";break}case"[":{if(n==="index")throw new Error(`Invalid character '${i}' in an index at position ${s}`);if(n==="indexEnd"){n="index";break}if(n==="property"||n==="start"){if((r||n==="property")&&!pf(r,t))return[];r=""}n="index";break}case"]":{if(n==="index"){if(r==="")r=(t.pop()||"")+"[]",n="property";else{let a=Number.parseInt(r,10);!Number.isNaN(a)&&Number.isFinite(a)&&a>=0&&a<=Number.MAX_SAFE_INTEGER&&a<=KS&&r===String(a)?t.push(a):t.push(r),r="",n="indexEnd"}break}if(n==="indexEnd")throw new Error(`Invalid character '${i}' after an index at position ${s}`);r+=i;break}default:{if(n==="index"&&!gq(i))throw new Error(`Invalid character '${i}' in an index at position ${s}`);if(n==="indexEnd")throw new Error(`Invalid character '${i}' after an index at position ${s}`);n==="start"&&(n="property"),r+=i}}}switch(o&&(r+="\\"),n){case"property":{if(!pf(r,t))return[];break}case"index":throw new Error("Index was not closed");case"start":{t.push("");break}}return t}function rl(e){if(typeof e=="string")return yq(e);if(Array.isArray(e)){let t=[];for(let[r,n]of e.entries()){if(typeof n!="string"&&typeof n!="number")throw new TypeError(`Expected a string or number for path segment at index ${r}, got ${typeof n}`);if(typeof n=="number"&&!Number.isFinite(n))throw new TypeError(`Path segment at index ${r} must be a finite number, got ${n}`);if(HS.has(n))return[];typeof n=="string"&&zS(n)?t.push(Number.parseInt(n,10)):t.push(n)}return t}return[]}function df(e,t,r){if(!ho(e)||typeof t!="string"&&!Array.isArray(t))return r===void 0?e:r;let n=rl(t);if(n.length===0)return r;for(let o=0;o<n.length;o++){let s=n[o];if(e=e[s],e==null){if(o!==n.length-1)return r;break}}return e===void 0?r:e}function Pi(e,t,r){if(!ho(e)||typeof t!="string"&&!Array.isArray(t))return e;let n=e,o=rl(t);if(o.length===0)return e;for(let s=0;s<o.length;s++){let i=o[s];if(s===o.length-1)e[i]=r;else if(!ho(e[i])){let c=typeof o[s+1]=="number";e[i]=c?[]:{}}e=e[i]}return n}function WS(e,t){if(!ho(e)||typeof t!="string"&&!Array.isArray(t))return!1;let r=rl(t);if(r.length===0)return!1;for(let n=0;n<r.length;n++){let o=r[n];if(n===r.length-1)return Object.hasOwn(e,o)?(delete e[o],!0):!1;if(e=e[o],!ho(e))return!1}}function nl(e,t){if(!ho(e)||typeof t!="string"&&!Array.isArray(t))return!1;let r=rl(t);if(r.length===0)return!1;for(let n of r){if(!ho(e)||!(n in e))return!1;e=e[n]}return!0}var ho,HS,KS,gq,VS=b(()=>{ho=e=>{let t=typeof e;return e!==null&&(t==="object"||t==="function")},HS=new Set(["__proto__","prototype","constructor"]),KS=1e6,gq=e=>e>="0"&&e<="9"});import st from"node:path";import YS from"node:os";import ff from"node:process";function hf(e,{suffix:t="nodejs"}={}){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return t&&(e+=`-${t}`),ff.platform==="darwin"?wq(e):ff.platform==="win32"?vq(e):xq(e)}var Mn,mf,ps,wq,vq,xq,JS=b(()=>{Mn=YS.homedir(),mf=YS.tmpdir(),{env:ps}=ff,wq=e=>{let t=st.join(Mn,"Library");return{data:st.join(t,"Application Support",e),config:st.join(t,"Preferences",e),cache:st.join(t,"Caches",e),log:st.join(t,"Logs",e),temp:st.join(mf,e)}},vq=e=>{let t=ps.APPDATA||st.join(Mn,"AppData","Roaming"),r=ps.LOCALAPPDATA||st.join(Mn,"AppData","Local");return{data:st.join(r,e,"Data"),config:st.join(t,e,"Config"),cache:st.join(r,e,"Cache"),log:st.join(r,e,"Log"),temp:st.join(mf,e)}},xq=e=>{let t=st.basename(Mn);return{data:st.join(ps.XDG_DATA_HOME||st.join(Mn,".local","share"),e),config:st.join(ps.XDG_CONFIG_HOME||st.join(Mn,".config"),e),cache:st.join(ps.XDG_CACHE_HOME||st.join(Mn,".cache"),e),log:st.join(ps.XDG_STATE_HOME||st.join(Mn,".local","state"),e),temp:st.join(mf,t,e)}}});var gn,Xr,XS=b(()=>{gn=(e,t)=>function(...n){return e.apply(void 0,n).catch(t)},Xr=(e,t)=>function(...n){try{return e.apply(void 0,n)}catch(o){return t(o)}}});import QS from"node:process";var ZS,eT,Zt,ol=b(()=>{ZS=QS.getuid?!QS.getuid():!1,eT=1e4,Zt=()=>{}});var $i,ut,tT=b(()=>{ol();$i={isChangeErrorOk:e=>{if(!$i.isNodeError(e))return!1;let{code:t}=e;return t==="ENOSYS"||!ZS&&(t==="EINVAL"||t==="EPERM")},isNodeError:e=>e instanceof Error,isRetriableError:e=>{if(!$i.isNodeError(e))return!1;let{code:t}=e;return t==="EMFILE"||t==="ENFILE"||t==="EAGAIN"||t==="EBUSY"||t==="EACCESS"||t==="EACCES"||t==="EACCS"||t==="EPERM"},onChangeError:e=>{if(!$i.isNodeError(e))throw e;if(!$i.isChangeErrorOk(e))throw e}},ut=$i});var gf,rT,nT=b(()=>{ol();gf=class{constructor(){this.interval=25,this.intervalId=void 0,this.limit=eT,this.queueActive=new Set,this.queueWaiting=new Set,this.init=()=>{this.intervalId||(this.intervalId=setInterval(this.tick,this.interval))},this.reset=()=>{this.intervalId&&(clearInterval(this.intervalId),delete this.intervalId)},this.add=t=>{this.queueWaiting.add(t),this.queueActive.size<this.limit/2?this.tick():this.init()},this.remove=t=>{this.queueWaiting.delete(t),this.queueActive.delete(t)},this.schedule=()=>new Promise(t=>{let r=()=>this.remove(n),n=()=>t(r);this.add(n)}),this.tick=()=>{if(!(this.queueActive.size>=this.limit)){if(!this.queueWaiting.size)return this.reset();for(let t of this.queueWaiting){if(this.queueActive.size>=this.limit)break;this.queueWaiting.delete(t),this.queueActive.add(t),t()}}}}},rT=new gf});var yn,wn,oT=b(()=>{nT();yn=(e,t)=>function(n){return function o(...s){return rT.schedule().then(i=>{let a=l=>(i(),l),c=l=>{if(i(),Date.now()>=n)throw l;if(t(l)){let p=Math.round(100*Math.random());return new Promise(d=>setTimeout(d,p)).then(()=>o.apply(void 0,s))}throw l};return e.apply(void 0,s).then(a,c)})}},wn=(e,t)=>function(n){return function o(...s){try{return e.apply(void 0,s)}catch(i){if(Date.now()>n)throw i;if(t(i))return o.apply(void 0,s);throw i}}}});import Ie from"node:fs";import{promisify as Dt}from"node:util";var bq,Rt,yf=b(()=>{XS();ol();tT();oT();bq={attempt:{chmod:gn(Dt(Ie.chmod),ut.onChangeError),chown:gn(Dt(Ie.chown),ut.onChangeError),close:gn(Dt(Ie.close),Zt),fsync:gn(Dt(Ie.fsync),Zt),mkdir:gn(Dt(Ie.mkdir),Zt),realpath:gn(Dt(Ie.realpath),Zt),stat:gn(Dt(Ie.stat),Zt),unlink:gn(Dt(Ie.unlink),Zt),chmodSync:Xr(Ie.chmodSync,ut.onChangeError),chownSync:Xr(Ie.chownSync,ut.onChangeError),closeSync:Xr(Ie.closeSync,Zt),existsSync:Xr(Ie.existsSync,Zt),fsyncSync:Xr(Ie.fsync,Zt),mkdirSync:Xr(Ie.mkdirSync,Zt),realpathSync:Xr(Ie.realpathSync,Zt),statSync:Xr(Ie.statSync,Zt),unlinkSync:Xr(Ie.unlinkSync,Zt)},retry:{close:yn(Dt(Ie.close),ut.isRetriableError),fsync:yn(Dt(Ie.fsync),ut.isRetriableError),open:yn(Dt(Ie.open),ut.isRetriableError),readFile:yn(Dt(Ie.readFile),ut.isRetriableError),rename:yn(Dt(Ie.rename),ut.isRetriableError),stat:yn(Dt(Ie.stat),ut.isRetriableError),write:yn(Dt(Ie.write),ut.isRetriableError),writeFile:yn(Dt(Ie.writeFile),ut.isRetriableError),closeSync:wn(Ie.closeSync,ut.isRetriableError),fsyncSync:wn(Ie.fsyncSync,ut.isRetriableError),openSync:wn(Ie.openSync,ut.isRetriableError),readFileSync:wn(Ie.readFileSync,ut.isRetriableError),renameSync:wn(Ie.renameSync,ut.isRetriableError),statSync:wn(Ie.statSync,ut.isRetriableError),writeSync:wn(Ie.writeSync,ut.isRetriableError),writeFileSync:wn(Ie.writeFileSync,ut.isRetriableError)}},Rt=bq});import sT from"node:os";import wf from"node:process";var iT,vf,aT,cT,lT,uT,pT,dT,nie,xf,bf=b(()=>{iT="utf8",vf=438,aT=511,cT={},lT=sT.userInfo().uid,uT=sT.userInfo().gid,pT=1e3,dT=!!wf.getuid,nie=wf.getuid?!wf.getuid():!1,xf=128});var fT,_f,sl,mT=b(()=>{fT=e=>e instanceof Error&&"code"in e,_f=e=>typeof e=="string",sl=e=>e===void 0});var hT=b(()=>{});import gT from"node:process";var yT,il,Sf=b(()=>{yT=gT.platform==="linux",il=gT.platform==="win32"});var Tf,wT,vT=b(()=>{Sf();Tf=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];il||Tf.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");yT&&Tf.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");wT=Tf});import ds from"node:process";var kf,xT,bT=b(()=>{Sf();vT();kf=class{constructor(){this.callbacks=new Set,this.exited=!1,this.exit=t=>{if(!this.exited){this.exited=!0;for(let r of this.callbacks)r();t&&(il&&t!=="SIGINT"&&t!=="SIGTERM"&&t!=="SIGKILL"?ds.kill(ds.pid,"SIGTERM"):ds.kill(ds.pid,t))}},this.hook=()=>{ds.once("exit",()=>this.exit());for(let t of wT)try{ds.once(t,()=>this.exit(t))}catch{}},this.register=t=>(this.callbacks.add(t),()=>{this.callbacks.delete(t)}),this.hook()}},xT=new kf});var _q,_T,ST=b(()=>{bT();_q=xT.register,_T=_q});import Sq from"node:path";var pr,Oi,TT=b(()=>{yf();ST();bf();pr={store:{},create:e=>{let t=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6),o=`.tmp-${Date.now().toString().slice(-10)}${t}`;return`${e}${o}`},get:(e,t,r=!0)=>{let n=pr.truncate(t(e));return n in pr.store?pr.get(e,t,r):(pr.store[n]=r,[n,()=>delete pr.store[n]])},purge:e=>{pr.store[e]&&(delete pr.store[e],Rt.attempt.unlink(e))},purgeSync:e=>{pr.store[e]&&(delete pr.store[e],Rt.attempt.unlinkSync(e))},purgeSyncAll:()=>{for(let e in pr.store)pr.purgeSync(e)},truncate:e=>{let t=Sq.basename(e);if(t.length<=xf)return e;let r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(t);if(!r)return e;let n=t.length-xf;return`${e.slice(0,-t.length)}${r[1]}${r[2].slice(0,-n)}${r[3]}`}};_T(pr.purgeSyncAll);Oi=pr});import Tq from"node:path";function Ef(e,t,r=cT){if(_f(r))return Ef(e,t,{encoding:r});let n=Date.now()+((r.timeout??pT)||-1),o=null,s=null,i=null;try{let a=Rt.attempt.realpathSync(e),c=!!a;e=a||e,[s,o]=Oi.get(e,r.tmpCreate||Oi.create,r.tmpPurge!==!1);let l=dT&&sl(r.chown),p=sl(r.mode);if(c&&(l||p)){let u=Rt.attempt.statSync(e);u&&(r={...r},l&&(r.chown={uid:u.uid,gid:u.gid}),p&&(r.mode=u.mode))}if(!c){let u=Tq.dirname(e);Rt.attempt.mkdirSync(u,{mode:aT,recursive:!0})}i=Rt.retry.openSync(n)(s,"w",r.mode||vf),r.tmpCreated&&r.tmpCreated(s),_f(t)?Rt.retry.writeSync(n)(i,t,0,r.encoding||iT):sl(t)||Rt.retry.writeSync(n)(i,t,0,t.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?Rt.retry.fsyncSync(n)(i):Rt.attempt.fsync(i)),Rt.retry.closeSync(n)(i),i=null,r.chown&&(r.chown.uid!==lT||r.chown.gid!==uT)&&Rt.attempt.chownSync(s,r.chown.uid,r.chown.gid),r.mode&&r.mode!==vf&&Rt.attempt.chmodSync(s,r.mode);try{Rt.retry.renameSync(n)(s,e)}catch(u){if(!fT(u)||u.code!=="ENAMETOOLONG")throw u;Rt.retry.renameSync(n)(s,Oi.truncate(e))}o(),s=null}finally{i&&Rt.attempt.closeSync(i),s&&Oi.purge(s)}}var kT=b(()=>{yf();bf();mT();hT();TT()});var Di=v(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.regexpCode=Ae.getEsmExportName=Ae.getProperty=Ae.safeStringify=Ae.stringify=Ae.strConcat=Ae.addCodeArg=Ae.str=Ae._=Ae.nil=Ae._Code=Ae.Name=Ae.IDENTIFIER=Ae._CodeOrName=void 0;var Ni=class{};Ae._CodeOrName=Ni;Ae.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var go=class extends Ni{constructor(t){if(super(),!Ae.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Ae.Name=go;var br=class extends Ni{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof go&&(r[n.str]=(r[n.str]||0)+1),r),{})}};Ae._Code=br;Ae.nil=new br("");function ET(e,...t){let r=[e[0]],n=0;for(;n<t.length;)If(r,t[n]),r.push(e[++n]);return new br(r)}Ae._=ET;var Rf=new br("+");function RT(e,...t){let r=[Mi(e[0])],n=0;for(;n<t.length;)r.push(Rf),If(r,t[n]),r.push(Rf,Mi(e[++n]));return kq(r),new br(r)}Ae.str=RT;function If(e,t){t instanceof br?e.push(...t._items):t instanceof go?e.push(t):e.push(Iq(t))}Ae.addCodeArg=If;function kq(e){let t=1;for(;t<e.length-1;){if(e[t]===Rf){let r=Eq(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function Eq(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof go||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof go))return`"${e}${t.slice(1)}`}function Rq(e,t){return t.emptyStr()?e:e.emptyStr()?t:RT`${e}${t}`}Ae.strConcat=Rq;function Iq(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Mi(Array.isArray(e)?e.join(","):e)}function Aq(e){return new br(Mi(e))}Ae.stringify=Aq;function Mi(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Ae.safeStringify=Mi;function Cq(e){return typeof e=="string"&&Ae.IDENTIFIER.test(e)?new br(`.${e}`):ET`[${e}]`}Ae.getProperty=Cq;function Pq(e){if(typeof e=="string"&&Ae.IDENTIFIER.test(e))return new br(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Ae.getEsmExportName=Pq;function $q(e){return new br(e.toString())}Ae.regexpCode=$q});var Pf=v(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.ValueScope=tr.ValueScopeName=tr.Scope=tr.varKinds=tr.UsedValueState=void 0;var er=Di(),Af=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},al;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(al||(tr.UsedValueState=al={}));tr.varKinds={const:new er.Name("const"),let:new er.Name("let"),var:new er.Name("var")};var cl=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof er.Name?t:this.name(t)}name(t){return new er.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};tr.Scope=cl;var ll=class extends er.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,er._)`.${new er.Name(r)}[${n}]`}};tr.ValueScopeName=ll;var Oq=(0,er._)`\n`,Cf=class extends cl{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?Oq:er.nil}}get(){return this._scope}name(t){return new ll(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(t),{prefix:s}=o,i=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[s];if(a){let p=a.get(i);if(p)return p}else a=this._values[s]=new Map;a.set(i,o);let c=this._scope[s]||(this._scope[s]=[]),l=c.length;return c[l]=r.ref,o.setValue(r,{property:s,itemIndex:l}),o}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,er._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(t,r,n={},o){let s=er.nil;for(let i in t){let a=t[i];if(!a)continue;let c=n[i]=n[i]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,al.Started);let p=r(l);if(p){let u=this.opts.es5?tr.varKinds.var:tr.varKinds.const;s=(0,er._)`${s}${u} ${l} = ${p};${this.opts._n}`}else if(p=o?.(l))s=(0,er._)`${s}${p}${this.opts._n}`;else throw new Af(l);c.set(l,al.Completed)})}return s}};tr.ValueScope=Cf});var le=v(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.or=ye.and=ye.not=ye.CodeGen=ye.operators=ye.varKinds=ye.ValueScopeName=ye.ValueScope=ye.Scope=ye.Name=ye.regexpCode=ye.stringify=ye.getProperty=ye.nil=ye.strConcat=ye.str=ye._=void 0;var be=Di(),Lr=Pf(),Dn=Di();Object.defineProperty(ye,"_",{enumerable:!0,get:function(){return Dn._}});Object.defineProperty(ye,"str",{enumerable:!0,get:function(){return Dn.str}});Object.defineProperty(ye,"strConcat",{enumerable:!0,get:function(){return Dn.strConcat}});Object.defineProperty(ye,"nil",{enumerable:!0,get:function(){return Dn.nil}});Object.defineProperty(ye,"getProperty",{enumerable:!0,get:function(){return Dn.getProperty}});Object.defineProperty(ye,"stringify",{enumerable:!0,get:function(){return Dn.stringify}});Object.defineProperty(ye,"regexpCode",{enumerable:!0,get:function(){return Dn.regexpCode}});Object.defineProperty(ye,"Name",{enumerable:!0,get:function(){return Dn.Name}});var fl=Pf();Object.defineProperty(ye,"Scope",{enumerable:!0,get:function(){return fl.Scope}});Object.defineProperty(ye,"ValueScope",{enumerable:!0,get:function(){return fl.ValueScope}});Object.defineProperty(ye,"ValueScopeName",{enumerable:!0,get:function(){return fl.ValueScopeName}});Object.defineProperty(ye,"varKinds",{enumerable:!0,get:function(){return fl.varKinds}});ye.operators={GT:new be._Code(">"),GTE:new be._Code(">="),LT:new be._Code("<"),LTE:new be._Code("<="),EQ:new be._Code("==="),NEQ:new be._Code("!=="),NOT:new be._Code("!"),OR:new be._Code("||"),AND:new be._Code("&&"),ADD:new be._Code("+")};var vn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},$f=class extends vn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Lr.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=ms(this.rhs,t,r)),this}get names(){return this.rhs instanceof be._CodeOrName?this.rhs.names:{}}},ul=class extends vn{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof be.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=ms(this.rhs,t,r),this}get names(){let t=this.lhs instanceof be.Name?{}:{...this.lhs.names};return dl(t,this.rhs)}},Of=class extends ul{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},Nf=class extends vn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Mf=class extends vn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},Df=class extends vn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Lf=class extends vn{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=ms(this.code,t,r),this}get names(){return this.code instanceof be._CodeOrName?this.code.names:{}}},Li=class extends vn{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,o=n.length;for(;o--;){let s=n[o];s.optimizeNames(t,r)||(Nq(t,s.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>vo(t,r.names),{})}},xn=class extends Li{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Ff=class extends Li{},fs=class extends xn{};fs.kind="else";var yo=class e extends xn{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new fs(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(IT(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=ms(this.condition,t,r),this}get names(){let t=super.names;return dl(t,this.condition),this.else&&vo(t,this.else.names),t}};yo.kind="if";var wo=class extends xn{};wo.kind="for";var qf=class extends wo{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=ms(this.iteration,t,r),this}get names(){return vo(super.names,this.iteration.names)}},jf=class extends wo{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?Lr.varKinds.var:this.varKind,{name:n,from:o,to:s}=this;return`for(${r} ${n}=${o}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=dl(super.names,this.from);return dl(t,this.to)}},pl=class extends wo{constructor(t,r,n,o){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=o}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=ms(this.iterable,t,r),this}get names(){return vo(super.names,this.iterable.names)}},Fi=class extends xn{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};Fi.kind="func";var qi=class extends Li{render(t){return"return "+super.render(t)}};qi.kind="return";var Uf=class extends xn{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,o;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(o=this.finally)===null||o===void 0||o.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&vo(t,this.catch.names),this.finally&&vo(t,this.finally.names),t}},ji=class extends xn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};ji.kind="catch";var Ui=class extends xn{render(t){return"finally"+super.render(t)}};Ui.kind="finally";var Bf=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
17
+ `:""},this._extScope=t,this._scope=new Lr.Scope({parent:t}),this._nodes=[new Ff]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,o){let s=this._scope.toName(r);return n!==void 0&&o&&(this._constants[s.str]=n),this._leafNode(new $f(t,s,n)),s}const(t,r,n){return this._def(Lr.varKinds.const,t,r,n)}let(t,r,n){return this._def(Lr.varKinds.let,t,r,n)}var(t,r,n){return this._def(Lr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new ul(t,r,n))}add(t,r){return this._leafNode(new Of(t,ye.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==be.nil&&this._leafNode(new Lf(t)),this}object(...t){let r=["{"];for(let[n,o]of t)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,be.addCodeArg)(r,o));return r.push("}"),new be._Code(r)}if(t,r,n){if(this._blockNode(new yo(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new yo(t))}else(){return this._elseNode(new fs)}endIf(){return this._endBlockNode(yo,fs)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new qf(t),r)}forRange(t,r,n,o,s=this.opts.es5?Lr.varKinds.var:Lr.varKinds.let){let i=this._scope.toName(t);return this._for(new jf(s,i,r,n),()=>o(i))}forOf(t,r,n,o=Lr.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let i=r instanceof be.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,be._)`${i}.length`,a=>{this.var(s,(0,be._)`${i}[${a}]`),n(s)})}return this._for(new pl("of",o,s,r),()=>n(s))}forIn(t,r,n,o=this.opts.es5?Lr.varKinds.var:Lr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,be._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new pl("in",o,s,r),()=>n(s))}endFor(){return this._endBlockNode(wo)}label(t){return this._leafNode(new Nf(t))}break(t){return this._leafNode(new Mf(t))}return(t){let r=new qi;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(qi)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new Uf;if(this._blockNode(o),this.code(t),r){let s=this.name("e");this._currNode=o.catch=new ji(s),r(s)}return n&&(this._currNode=o.finally=new Ui,this.code(n)),this._endBlockNode(ji,Ui)}throw(t){return this._leafNode(new Df(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=be.nil,n,o){return this._blockNode(new Fi(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(Fi)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof yo))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};ye.CodeGen=Bf;function vo(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function dl(e,t){return t instanceof be._CodeOrName?vo(e,t.names):e}function ms(e,t,r){if(e instanceof be.Name)return n(e);if(!o(e))return e;return new be._Code(e._items.reduce((s,i)=>(i instanceof be.Name&&(i=n(i)),i instanceof be._Code?s.push(...i._items):s.push(i),s),[]));function n(s){let i=r[s.str];return i===void 0||t[s.str]!==1?s:(delete t[s.str],i)}function o(s){return s instanceof be._Code&&s._items.some(i=>i instanceof be.Name&&t[i.str]===1&&r[i.str]!==void 0)}}function Nq(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function IT(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,be._)`!${Gf(e)}`}ye.not=IT;var Mq=AT(ye.operators.AND);function Dq(...e){return e.reduce(Mq)}ye.and=Dq;var Lq=AT(ye.operators.OR);function Fq(...e){return e.reduce(Lq)}ye.or=Fq;function AT(e){return(t,r)=>t===be.nil?r:r===be.nil?t:(0,be._)`${Gf(t)} ${e} ${Gf(r)}`}function Gf(e){return e instanceof be.Name?e:(0,be._)`(${e})`}});var xe=v(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.checkStrictMode=we.getErrorPath=we.Type=we.useFunc=we.setEvaluated=we.evaluatedPropsToName=we.mergeEvaluated=we.eachItem=we.unescapeJsonPointer=we.escapeJsonPointer=we.escapeFragment=we.unescapeFragment=we.schemaRefOrVal=we.schemaHasRulesButRef=we.schemaHasRules=we.checkUnknownRules=we.alwaysValidSchema=we.toHash=void 0;var Ge=le(),qq=Di();function jq(e){let t={};for(let r of e)t[r]=!0;return t}we.toHash=jq;function Uq(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:($T(e,t),!OT(t,e.self.RULES.all))}we.alwaysValidSchema=Uq;function $T(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let o=n.RULES.keywords;for(let s in t)o[s]||DT(e,`unknown keyword: "${s}"`)}we.checkUnknownRules=$T;function OT(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}we.schemaHasRules=OT;function Bq(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}we.schemaHasRulesButRef=Bq;function Gq({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Ge._)`${r}`}return(0,Ge._)`${e}${t}${(0,Ge.getProperty)(n)}`}we.schemaRefOrVal=Gq;function Hq(e){return NT(decodeURIComponent(e))}we.unescapeFragment=Hq;function Kq(e){return encodeURIComponent(Kf(e))}we.escapeFragment=Kq;function Kf(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}we.escapeJsonPointer=Kf;function NT(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}we.unescapeJsonPointer=NT;function zq(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}we.eachItem=zq;function CT({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,s,i,a)=>{let c=i===void 0?s:i instanceof Ge.Name?(s instanceof Ge.Name?e(o,s,i):t(o,s,i),i):s instanceof Ge.Name?(t(o,i,s),s):r(s,i);return a===Ge.Name&&!(c instanceof Ge.Name)?n(o,c):c}}we.mergeEvaluated={props:CT({mergeNames:(e,t,r)=>e.if((0,Ge._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Ge._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Ge._)`${r} || {}`).code((0,Ge._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Ge._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Ge._)`${r} || {}`),zf(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:MT}),items:CT({mergeNames:(e,t,r)=>e.if((0,Ge._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Ge._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Ge._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Ge._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function MT(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Ge._)`{}`);return t!==void 0&&zf(e,r,t),r}we.evaluatedPropsToName=MT;function zf(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Ge._)`${t}${(0,Ge.getProperty)(n)}`,!0))}we.setEvaluated=zf;var PT={};function Wq(e,t){return e.scopeValue("func",{ref:t,code:PT[t.code]||(PT[t.code]=new qq._Code(t.code))})}we.useFunc=Wq;var Hf;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Hf||(we.Type=Hf={}));function Vq(e,t,r){if(e instanceof Ge.Name){let n=t===Hf.Num;return r?n?(0,Ge._)`"[" + ${e} + "]"`:(0,Ge._)`"['" + ${e} + "']"`:n?(0,Ge._)`"/" + ${e}`:(0,Ge._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Ge.getProperty)(e).toString():"/"+Kf(e)}we.getErrorPath=Vq;function DT(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}we.checkStrictMode=DT});var _r=v(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});var Lt=le(),Yq={data:new Lt.Name("data"),valCxt:new Lt.Name("valCxt"),instancePath:new Lt.Name("instancePath"),parentData:new Lt.Name("parentData"),parentDataProperty:new Lt.Name("parentDataProperty"),rootData:new Lt.Name("rootData"),dynamicAnchors:new Lt.Name("dynamicAnchors"),vErrors:new Lt.Name("vErrors"),errors:new Lt.Name("errors"),this:new Lt.Name("this"),self:new Lt.Name("self"),scope:new Lt.Name("scope"),json:new Lt.Name("json"),jsonPos:new Lt.Name("jsonPos"),jsonLen:new Lt.Name("jsonLen"),jsonPart:new Lt.Name("jsonPart")};Wf.default=Yq});var Bi=v(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.extendErrors=Ft.resetErrorsCount=Ft.reportExtraError=Ft.reportError=Ft.keyword$DataError=Ft.keywordError=void 0;var Te=le(),ml=xe(),Ht=_r();Ft.keywordError={message:({keyword:e})=>(0,Te.str)`must pass "${e}" keyword validation`};Ft.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,Te.str)`"${e}" keyword must be ${t} ($data)`:(0,Te.str)`"${e}" keyword is invalid ($data)`};function Jq(e,t=Ft.keywordError,r,n){let{it:o}=e,{gen:s,compositeRule:i,allErrors:a}=o,c=qT(e,t,r);n??(i||a)?LT(s,c):FT(o,(0,Te._)`[${c}]`)}Ft.reportError=Jq;function Xq(e,t=Ft.keywordError,r){let{it:n}=e,{gen:o,compositeRule:s,allErrors:i}=n,a=qT(e,t,r);LT(o,a),s||i||FT(n,Ht.default.vErrors)}Ft.reportExtraError=Xq;function Qq(e,t){e.assign(Ht.default.errors,t),e.if((0,Te._)`${Ht.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,Te._)`${Ht.default.vErrors}.length`,t),()=>e.assign(Ht.default.vErrors,null)))}Ft.resetErrorsCount=Qq;function Zq({gen:e,keyword:t,schemaValue:r,data:n,errsCount:o,it:s}){if(o===void 0)throw new Error("ajv implementation error");let i=e.name("err");e.forRange("i",o,Ht.default.errors,a=>{e.const(i,(0,Te._)`${Ht.default.vErrors}[${a}]`),e.if((0,Te._)`${i}.instancePath === undefined`,()=>e.assign((0,Te._)`${i}.instancePath`,(0,Te.strConcat)(Ht.default.instancePath,s.errorPath))),e.assign((0,Te._)`${i}.schemaPath`,(0,Te.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,Te._)`${i}.schema`,r),e.assign((0,Te._)`${i}.data`,n))})}Ft.extendErrors=Zq;function LT(e,t){let r=e.const("err",t);e.if((0,Te._)`${Ht.default.vErrors} === null`,()=>e.assign(Ht.default.vErrors,(0,Te._)`[${r}]`),(0,Te._)`${Ht.default.vErrors}.push(${r})`),e.code((0,Te._)`${Ht.default.errors}++`)}function FT(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,Te._)`new ${e.ValidationError}(${t})`):(r.assign((0,Te._)`${n}.errors`,t),r.return(!1))}var xo={keyword:new Te.Name("keyword"),schemaPath:new Te.Name("schemaPath"),params:new Te.Name("params"),propertyName:new Te.Name("propertyName"),message:new Te.Name("message"),schema:new Te.Name("schema"),parentSchema:new Te.Name("parentSchema")};function qT(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,Te._)`{}`:ej(e,t,r)}function ej(e,t,r={}){let{gen:n,it:o}=e,s=[tj(o,r),rj(e,r)];return nj(e,t,s),n.object(...s)}function tj({errorPath:e},{instancePath:t}){let r=t?(0,Te.str)`${e}${(0,ml.getErrorPath)(t,ml.Type.Str)}`:e;return[Ht.default.instancePath,(0,Te.strConcat)(Ht.default.instancePath,r)]}function rj({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,Te.str)`${t}/${e}`;return r&&(o=(0,Te.str)`${o}${(0,ml.getErrorPath)(r,ml.Type.Str)}`),[xo.schemaPath,o]}function nj(e,{params:t,message:r},n){let{keyword:o,data:s,schemaValue:i,it:a}=e,{opts:c,propertyName:l,topSchemaRef:p,schemaPath:u}=a;n.push([xo.keyword,o],[xo.params,typeof t=="function"?t(e):t||(0,Te._)`{}`]),c.messages&&n.push([xo.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([xo.schema,i],[xo.parentSchema,(0,Te._)`${p}${u}`],[Ht.default.data,s]),l&&n.push([xo.propertyName,l])}});var UT=v(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.boolOrEmptySchema=hs.topBoolOrEmptySchema=void 0;var oj=Bi(),sj=le(),ij=_r(),aj={message:"boolean schema is false"};function cj(e){let{gen:t,schema:r,validateName:n}=e;r===!1?jT(e,!1):typeof r=="object"&&r.$async===!0?t.return(ij.default.data):(t.assign((0,sj._)`${n}.errors`,null),t.return(!0))}hs.topBoolOrEmptySchema=cj;function lj(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),jT(e)):r.var(t,!0)}hs.boolOrEmptySchema=lj;function jT(e,t){let{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,oj.reportError)(o,aj,void 0,t)}});var Vf=v(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.getRules=gs.isJSONType=void 0;var uj=["string","number","integer","boolean","null","object","array"],pj=new Set(uj);function dj(e){return typeof e=="string"&&pj.has(e)}gs.isJSONType=dj;function fj(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}gs.getRules=fj});var Yf=v(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.shouldUseRule=Ln.shouldUseGroup=Ln.schemaHasRulesForType=void 0;function mj({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&BT(e,n)}Ln.schemaHasRulesForType=mj;function BT(e,t){return t.rules.some(r=>GT(e,r))}Ln.shouldUseGroup=BT;function GT(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}Ln.shouldUseRule=GT});var Gi=v(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.reportTypeError=qt.checkDataTypes=qt.checkDataType=qt.coerceAndCheckDataType=qt.getJSONTypes=qt.getSchemaTypes=qt.DataType=void 0;var hj=Vf(),gj=Yf(),yj=Bi(),he=le(),HT=xe(),ys;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(ys||(qt.DataType=ys={}));function wj(e){let t=KT(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}qt.getSchemaTypes=wj;function KT(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(hj.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}qt.getJSONTypes=KT;function vj(e,t){let{gen:r,data:n,opts:o}=e,s=xj(t,o.coerceTypes),i=t.length>0&&!(s.length===0&&t.length===1&&(0,gj.schemaHasRulesForType)(e,t[0]));if(i){let a=Xf(t,n,o.strictNumbers,ys.Wrong);r.if(a,()=>{s.length?bj(e,t,s):Qf(e)})}return i}qt.coerceAndCheckDataType=vj;var zT=new Set(["string","number","integer","boolean","null"]);function xj(e,t){return t?e.filter(r=>zT.has(r)||t==="array"&&r==="array"):[]}function bj(e,t,r){let{gen:n,data:o,opts:s}=e,i=n.let("dataType",(0,he._)`typeof ${o}`),a=n.let("coerced",(0,he._)`undefined`);s.coerceTypes==="array"&&n.if((0,he._)`${i} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,he._)`${o}[0]`).assign(i,(0,he._)`typeof ${o}`).if(Xf(t,o,s.strictNumbers),()=>n.assign(a,o))),n.if((0,he._)`${a} !== undefined`);for(let l of r)(zT.has(l)||l==="array"&&s.coerceTypes==="array")&&c(l);n.else(),Qf(e),n.endIf(),n.if((0,he._)`${a} !== undefined`,()=>{n.assign(o,a),_j(e,a)});function c(l){switch(l){case"string":n.elseIf((0,he._)`${i} == "number" || ${i} == "boolean"`).assign(a,(0,he._)`"" + ${o}`).elseIf((0,he._)`${o} === null`).assign(a,(0,he._)`""`);return;case"number":n.elseIf((0,he._)`${i} == "boolean" || ${o} === null
17
18
  || (${i} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,he._)`+${o}`);return;case"integer":n.elseIf((0,he._)`${i} === "boolean" || ${o} === null
18
19
  || (${i} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,he._)`+${o}`);return;case"boolean":n.elseIf((0,he._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,he._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,he._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,he._)`${i} === "string" || ${i} === "number"
19
- || ${i} === "boolean" || ${o} === null`).assign(a,(0,he._)`[${o}]`)}}}function zj({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,he._)`${t} !== undefined`,()=>e.assign((0,he._)`${t}[${r}]`,n))}function Wf(e,t,r,n=js.Correct){let o=n===js.Correct?he.operators.EQ:he.operators.NEQ,s;switch(e){case"null":return(0,he._)`${t} ${o} null`;case"array":s=(0,he._)`Array.isArray(${t})`;break;case"object":s=(0,he._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=i((0,he._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=i();break;default:return(0,he._)`typeof ${t} ${o} ${e}`}return n===js.Correct?s:(0,he.not)(s);function i(a=he.nil){return(0,he.and)((0,he._)`typeof ${t} == "number"`,a,r?(0,he._)`isFinite(${t})`:he.nil)}}Kt.checkDataType=Wf;function Kf(e,t,r,n){if(e.length===1)return Wf(e[0],t,r,n);let o,s=(0,oS.toHash)(e);if(s.array&&s.object){let i=(0,he._)`typeof ${t} != "object"`;o=s.null?i:(0,he._)`!${t} || ${i}`,delete s.null,delete s.array,delete s.object}else o=he.nil;s.number&&delete s.integer;for(let i in s)o=(0,he.and)(o,Wf(i,t,r,n));return o}Kt.checkDataTypes=Kf;var Bj={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,he._)`{type: ${e}}`:(0,he._)`{type: ${t}}`};function Yf(e){let t=Hj(e);(0,jj.reportError)(t,Bj)}Kt.reportTypeError=Yf;function Hj(e){let{gen:t,data:r,schema:n}=e,o=(0,oS.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var cS=w(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.assignDefaults=void 0;var Fs=me(),Vj=Te();function Wj(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)aS(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,s)=>aS(e,s,o.default))}Al.assignDefaults=Wj;function aS(e,t,r){let{gen:n,compositeRule:o,data:s,opts:i}=e;if(r===void 0)return;let a=(0,Fs._)`${s}${(0,Fs.getProperty)(t)}`;if(o){(0,Vj.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,Fs._)`${a} === undefined`;i.useDefaults==="empty"&&(c=(0,Fs._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Fs._)`${a} = ${(0,Fs.stringify)(r)}`)}});var qr=w(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.validateUnion=He.validateArray=He.usePattern=He.callValidateCode=He.schemaProperties=He.allSchemaProperties=He.noPropertyInData=He.propertyInData=He.isOwnProperty=He.hasPropFunc=He.reportMissingProp=He.checkMissingProp=He.checkReportMissingProp=void 0;var rt=me(),Jf=Te(),lo=Fr(),Kj=Te();function Yj(e,t){let{gen:r,data:n,it:o}=e;r.if(Qf(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,rt._)`${t}`},!0),e.error()})}He.checkReportMissingProp=Yj;function Jj({gen:e,data:t,it:{opts:r}},n,o){return(0,rt.or)(...n.map(s=>(0,rt.and)(Qf(e,t,s,r.ownProperties),(0,rt._)`${o} = ${s}`)))}He.checkMissingProp=Jj;function Xj(e,t){e.setParams({missingProperty:t},!0),e.error()}He.reportMissingProp=Xj;function lS(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,rt._)`Object.prototype.hasOwnProperty`})}He.hasPropFunc=lS;function Xf(e,t,r){return(0,rt._)`${lS(e)}.call(${t}, ${r})`}He.isOwnProperty=Xf;function Qj(e,t,r,n){let o=(0,rt._)`${t}${(0,rt.getProperty)(r)} !== undefined`;return n?(0,rt._)`${o} && ${Xf(e,t,r)}`:o}He.propertyInData=Qj;function Qf(e,t,r,n){let o=(0,rt._)`${t}${(0,rt.getProperty)(r)} === undefined`;return n?(0,rt.or)(o,(0,rt.not)(Xf(e,t,r))):o}He.noPropertyInData=Qf;function uS(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}He.allSchemaProperties=uS;function Zj(e,t){return uS(t).filter(r=>!(0,Jf.alwaysValidSchema)(e,t[r]))}He.schemaProperties=Zj;function eF({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:s},it:i},a,c,l){let u=l?(0,rt._)`${e}, ${t}, ${n}${o}`:t,p=[[lo.default.instancePath,(0,rt.strConcat)(lo.default.instancePath,s)],[lo.default.parentData,i.parentData],[lo.default.parentDataProperty,i.parentDataProperty],[lo.default.rootData,lo.default.rootData]];i.opts.dynamicRef&&p.push([lo.default.dynamicAnchors,lo.default.dynamicAnchors]);let m=(0,rt._)`${u}, ${r.object(...p)}`;return c!==rt.nil?(0,rt._)`${a}.call(${c}, ${m})`:(0,rt._)`${a}(${m})`}He.callValidateCode=eF;var tF=(0,rt._)`new RegExp`;function rF({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,s=o(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,rt._)`${o.code==="new RegExp"?tF:(0,Kj.useFunc)(e,o)}(${r}, ${n})`})}He.usePattern=rF;function nF(e){let{gen:t,data:r,keyword:n,it:o}=e,s=t.name("valid");if(o.allErrors){let a=t.let("valid",!0);return i(()=>t.assign(a,!1)),a}return t.var(s,!0),i(()=>t.break()),s;function i(a){let c=t.const("len",(0,rt._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Jf.Type.Num},s),t.if((0,rt.not)(s),a)})}}He.validateArray=nF;function oF(e){let{gen:t,schema:r,keyword:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Jf.alwaysValidSchema)(o,c))&&!o.opts.unevaluated)return;let i=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let u=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},a);t.assign(i,(0,rt._)`${i} || ${a}`),e.mergeValidEvaluated(u,a)||t.if((0,rt.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}He.validateUnion=oF});var fS=w(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.validateKeywordUsage=xn.validSchemaType=xn.funcKeywordCode=xn.macroKeywordCode=void 0;var nr=me(),Ho=Fr(),sF=qr(),iF=pa();function aF(e,t){let{gen:r,keyword:n,schema:o,parentSchema:s,it:i}=e,a=t.macro.call(i.self,o,s,i),c=dS(r,n,a);i.opts.validateSchema!==!1&&i.self.validateSchema(a,!0);let l=r.name("valid");e.subschema({schema:a,schemaPath:nr.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}xn.macroKeywordCode=aF;function cF(e,t){var r;let{gen:n,keyword:o,schema:s,parentSchema:i,$data:a,it:c}=e;uF(c,t);let l=!a&&t.compile?t.compile.call(c.self,s,i,c):t.validate,u=dS(n,o,l),p=n.let("valid");e.block$data(p,m),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function m(){if(t.errors===!1)g(),t.modifying&&pS(e),v(()=>e.error());else{let x=t.async?h():f();t.modifying&&pS(e),v(()=>lF(e,x))}}function h(){let x=n.let("ruleErrs",null);return n.try(()=>g((0,nr._)`await `),I=>n.assign(p,!1).if((0,nr._)`${I} instanceof ${c.ValidationError}`,()=>n.assign(x,(0,nr._)`${I}.errors`),()=>n.throw(I))),x}function f(){let x=(0,nr._)`${u}.errors`;return n.assign(x,null),g(nr.nil),x}function g(x=t.async?(0,nr._)`await `:nr.nil){let I=c.opts.passContext?Ho.default.this:Ho.default.self,k=!("compile"in t&&!a||t.schema===!1);n.assign(p,(0,nr._)`${x}${(0,sF.callValidateCode)(e,u,I,k)}`,t.modifying)}function v(x){var I;n.if((0,nr.not)((I=t.valid)!==null&&I!==void 0?I:p),x)}}xn.funcKeywordCode=cF;function pS(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,nr._)`${n.parentData}[${n.parentDataProperty}]`))}function lF(e,t){let{gen:r}=e;r.if((0,nr._)`Array.isArray(${t})`,()=>{r.assign(Ho.default.vErrors,(0,nr._)`${Ho.default.vErrors} === null ? ${t} : ${Ho.default.vErrors}.concat(${t})`).assign(Ho.default.errors,(0,nr._)`${Ho.default.vErrors}.length`),(0,iF.extendErrors)(e)},()=>e.error())}function uF({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function dS(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,nr.stringify)(r)})}function pF(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}xn.validSchemaType=pF;function dF({schema:e,opts:t,self:r,errSchemaPath:n},o,s){if(Array.isArray(o.keyword)?!o.keyword.includes(s):o.keyword!==s)throw new Error("ajv implementation error");let i=o.dependencies;if(i?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${s}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[s])){let c=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}xn.validateKeywordUsage=dF});var hS=w(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.extendSubschemaMode=uo.extendSubschemaData=uo.getSubschema=void 0;var bn=me(),mS=Te();function fF(e,{keyword:t,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:s,topSchemaRef:i}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,bn._)`${e.schemaPath}${(0,bn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,bn._)`${e.schemaPath}${(0,bn.getProperty)(t)}${(0,bn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,mS.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||s===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:i,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}uo.getSubschema=fF;function mF(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:s,propertyName:i}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:l,dataPathArr:u,opts:p}=t,m=a.let("data",(0,bn._)`${t.data}${(0,bn.getProperty)(r)}`,!0);c(m),e.errorPath=(0,bn.str)`${l}${(0,mS.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,bn._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(o!==void 0){let l=o instanceof bn.Name?o:a.let("data",o,!0);c(l),i!==void 0&&(e.propertyName=i)}s&&(e.dataTypes=s);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}uo.extendSubschemaData=mF;function hF(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:s}){n!==void 0&&(e.compositeRule=n),o!==void 0&&(e.createErrors=o),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}uo.extendSubschemaMode=hF});var fa=w((Aoe,gS)=>{"use strict";gS.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[o]))return!1;for(o=n;o--!==0;){var i=s[o];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r}});var vS=w((Coe,yS)=>{"use strict";var po=yS.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},o=r.post||function(){};Cl(t,n,o,e,"",e)};po.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};po.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};po.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};po.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Cl(e,t,r,n,o,s,i,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,o,s,i,a,c,l);for(var u in n){var p=n[u];if(Array.isArray(p)){if(u in po.arrayKeywords)for(var m=0;m<p.length;m++)Cl(e,t,r,p[m],o+"/"+u+"/"+m,s,o,u,n,m)}else if(u in po.propsKeywords){if(p&&typeof p=="object")for(var h in p)Cl(e,t,r,p[h],o+"/"+u+"/"+gF(h),s,o,u,n,h)}else(u in po.keywords||e.allKeys&&!(u in po.skipKeywords))&&Cl(e,t,r,p,o+"/"+u,s,o,u,n)}r(n,o,s,i,a,c,l)}}function gF(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var ma=w(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.getSchemaRefs=yr.resolveUrl=yr.normalizeId=yr._getFullPath=yr.getFullPath=yr.inlineRef=void 0;var yF=Te(),vF=fa(),wF=vS(),xF=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function bF(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Zf(e):t?wS(e)<=t:!1}yr.inlineRef=bF;var _F=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Zf(e){for(let t in e){if(_F.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Zf)||typeof r=="object"&&Zf(r))return!0}return!1}function wS(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!xF.has(r)&&(typeof e[r]=="object"&&(0,yF.eachItem)(e[r],n=>t+=wS(n)),t===1/0))return 1/0}return t}function xS(e,t="",r){r!==!1&&(t=qs(t));let n=e.parse(t);return bS(e,n)}yr.getFullPath=xS;function bS(e,t){return e.serialize(t).split("#")[0]+"#"}yr._getFullPath=bS;var SF=/#\/?$/;function qs(e){return e?e.replace(SF,""):""}yr.normalizeId=qs;function EF(e,t,r){return r=qs(r),e.resolve(t,r)}yr.resolveUrl=EF;var TF=/^[a-z_][-a-z0-9._]*$/i;function kF(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=qs(e[r]||t),s={"":o},i=xS(n,o,!1),a={},c=new Set;return wF(e,{allKeys:!0},(p,m,h,f)=>{if(f===void 0)return;let g=i+m,v=s[f];typeof p[r]=="string"&&(v=x.call(this,p[r])),I.call(this,p.$anchor),I.call(this,p.$dynamicAnchor),s[m]=v;function x(k){let P=this.opts.uriResolver.resolve;if(k=qs(v?P(v,k):k),c.has(k))throw u(k);c.add(k);let R=this.refs[k];return typeof R=="string"&&(R=this.refs[R]),typeof R=="object"?l(p,R.schema,k):k!==qs(g)&&(k[0]==="#"?(l(p,a[k],k),a[k]=p):this.refs[k]=g),k}function I(k){if(typeof k=="string"){if(!TF.test(k))throw new Error(`invalid anchor "${k}"`);x.call(this,`#${k}`)}}}),a;function l(p,m,h){if(m!==void 0&&!vF(p,m))throw u(h)}function u(p){return new Error(`reference "${p}" resolves to more than one schema`)}}yr.getSchemaRefs=kF});var ya=w(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.getData=fo.KeywordCxt=fo.validateFunctionCode=void 0;var kS=tS(),_S=da(),tm=Vf(),$l=da(),RF=cS(),ga=fS(),em=hS(),Z=me(),se=Fr(),IF=ma(),Fn=Te(),ha=pa();function PF(e){if(PS(e)&&(AS(e),IS(e))){$F(e);return}RS(e,()=>(0,kS.topBoolOrEmptySchema)(e))}fo.validateFunctionCode=PF;function RS({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},s){o.code.es5?e.func(t,(0,Z._)`${se.default.data}, ${se.default.valCxt}`,n.$async,()=>{e.code((0,Z._)`"use strict"; ${SS(r,o)}`),CF(e,o),e.code(s)}):e.func(t,(0,Z._)`${se.default.data}, ${AF(o)}`,n.$async,()=>e.code(SS(r,o)).code(s))}function AF(e){return(0,Z._)`{${se.default.instancePath}="", ${se.default.parentData}, ${se.default.parentDataProperty}, ${se.default.rootData}=${se.default.data}${e.dynamicRef?(0,Z._)`, ${se.default.dynamicAnchors}={}`:Z.nil}}={}`}function CF(e,t){e.if(se.default.valCxt,()=>{e.var(se.default.instancePath,(0,Z._)`${se.default.valCxt}.${se.default.instancePath}`),e.var(se.default.parentData,(0,Z._)`${se.default.valCxt}.${se.default.parentData}`),e.var(se.default.parentDataProperty,(0,Z._)`${se.default.valCxt}.${se.default.parentDataProperty}`),e.var(se.default.rootData,(0,Z._)`${se.default.valCxt}.${se.default.rootData}`),t.dynamicRef&&e.var(se.default.dynamicAnchors,(0,Z._)`${se.default.valCxt}.${se.default.dynamicAnchors}`)},()=>{e.var(se.default.instancePath,(0,Z._)`""`),e.var(se.default.parentData,(0,Z._)`undefined`),e.var(se.default.parentDataProperty,(0,Z._)`undefined`),e.var(se.default.rootData,se.default.data),t.dynamicRef&&e.var(se.default.dynamicAnchors,(0,Z._)`{}`)})}function $F(e){let{schema:t,opts:r,gen:n}=e;RS(e,()=>{r.$comment&&t.$comment&&$S(e),LF(e),n.let(se.default.vErrors,null),n.let(se.default.errors,0),r.unevaluated&&OF(e),CS(e),qF(e)})}function OF(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Z._)`${r}.evaluated`),t.if((0,Z._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Z._)`${e.evaluated}.props`,(0,Z._)`undefined`)),t.if((0,Z._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Z._)`${e.evaluated}.items`,(0,Z._)`undefined`))}function SS(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Z._)`/*# sourceURL=${r} */`:Z.nil}function NF(e,t){if(PS(e)&&(AS(e),IS(e))){MF(e,t);return}(0,kS.boolOrEmptySchema)(e,t)}function IS({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function PS(e){return typeof e.schema!="boolean"}function MF(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&$S(e),jF(e),FF(e);let s=n.const("_errs",se.default.errors);CS(e,s),n.var(t,(0,Z._)`${s} === ${se.default.errors}`)}function AS(e){(0,Fn.checkUnknownRules)(e),DF(e)}function CS(e,t){if(e.opts.jtd)return ES(e,[],!1,t);let r=(0,_S.getSchemaTypes)(e.schema),n=(0,_S.coerceAndCheckDataType)(e,r);ES(e,r,!n,t)}function DF(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Fn.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function LF(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Fn.checkStrictMode)(e,"default is ignored in the schema root")}function jF(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,IF.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function FF(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function $S({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let s=r.$comment;if(o.$comment===!0)e.code((0,Z._)`${se.default.self}.logger.log(${s})`);else if(typeof o.$comment=="function"){let i=(0,Z.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,Z._)`${se.default.self}.opts.$comment(${s}, ${i}, ${a}.schema)`)}}function qF(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:s}=e;r.$async?t.if((0,Z._)`${se.default.errors} === 0`,()=>t.return(se.default.data),()=>t.throw((0,Z._)`new ${o}(${se.default.vErrors})`)):(t.assign((0,Z._)`${n}.errors`,se.default.vErrors),s.unevaluated&&UF(e),t.return((0,Z._)`${se.default.errors} === 0`))}function UF({gen:e,evaluated:t,props:r,items:n}){r instanceof Z.Name&&e.assign((0,Z._)`${t}.props`,r),n instanceof Z.Name&&e.assign((0,Z._)`${t}.items`,n)}function ES(e,t,r,n){let{gen:o,schema:s,data:i,allErrors:a,opts:c,self:l}=e,{RULES:u}=l;if(s.$ref&&(c.ignoreKeywordsWithRef||!(0,Fn.schemaHasRulesButRef)(s,u))){o.block(()=>NS(e,"$ref",u.all.$ref.definition));return}c.jtd||GF(e,t),o.block(()=>{for(let m of u.rules)p(m);p(u.post)});function p(m){(0,tm.shouldUseGroup)(s,m)&&(m.type?(o.if((0,$l.checkDataType)(m.type,i,c.strictNumbers)),TS(e,m),t.length===1&&t[0]===m.type&&r&&(o.else(),(0,$l.reportTypeError)(e)),o.endIf()):TS(e,m),a||o.if((0,Z._)`${se.default.errors} === ${n||0}`))}}function TS(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,RF.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,tm.shouldUseRule)(n,s)&&NS(e,s.keyword,s.definition,t.type)})}function GF(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(zF(e,t),e.opts.allowUnionTypes||BF(e,t),HF(e,e.dataTypes))}function zF(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{OS(e.dataTypes,r)||rm(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),WF(e,t)}}function BF(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&rm(e,"use allowUnionTypes to allow union type keyword")}function HF(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,tm.shouldUseRule)(e.schema,o)){let{type:s}=o.definition;s.length&&!s.some(i=>VF(t,i))&&rm(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function VF(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function OS(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function WF(e,t){let r=[];for(let n of e.dataTypes)OS(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function rm(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Fn.checkStrictMode)(e,t,e.opts.strictTypes)}var Ol=class{constructor(t,r,n){if((0,ga.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Fn.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",MS(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,ga.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",se.default.errors))}result(t,r,n){this.failResult((0,Z.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,Z.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,Z._)`${r} !== undefined && (${(0,Z.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?ha.reportExtraError:ha.reportError)(this,this.def.error,r)}$dataError(){(0,ha.reportError)(this,this.def.$dataError||ha.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ha.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=Z.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=Z.nil,r=Z.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:s,def:i}=this;n.if((0,Z.or)((0,Z._)`${o} === undefined`,r)),t!==Z.nil&&n.assign(t,!0),(s.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==Z.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:s}=this;return(0,Z.or)(i(),a());function i(){if(n.length){if(!(r instanceof Z.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,Z._)`${(0,$l.checkDataTypes)(c,r,s.opts.strictNumbers,$l.DataType.Wrong)}`}return Z.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,Z._)`!${c}(${r})`}return Z.nil}}subschema(t,r){let n=(0,em.getSubschema)(this.it,t);(0,em.extendSubschemaData)(n,this.it,t),(0,em.extendSubschemaMode)(n,t);let o={...this.it,...n,items:void 0,props:void 0};return NF(o,r),o}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Fn.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Fn.mergeEvaluated.items(o,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(t,Z.Name)),!0}};fo.KeywordCxt=Ol;function NS(e,t,r,n){let o=new Ol(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,ga.funcKeywordCode)(o,r):"macro"in r?(0,ga.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,ga.funcKeywordCode)(o,r)}var KF=/^\/(?:[^~]|~0|~1)*$/,YF=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function MS(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,s;if(e==="")return se.default.rootData;if(e[0]==="/"){if(!KF.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,s=se.default.rootData}else{let l=YF.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let u=+l[1];if(o=l[2],o==="#"){if(u>=t)throw new Error(c("property/index",u));return n[t-u]}if(u>t)throw new Error(c("data",u));if(s=r[t-u],!o)return s}let i=s,a=o.split("/");for(let l of a)l&&(s=(0,Z._)`${s}${(0,Z.getProperty)((0,Fn.unescapeJsonPointer)(l))}`,i=(0,Z._)`${i} && ${s}`);return i;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}fo.getData=MS});var Nl=w(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});var nm=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};om.default=nm});var va=w(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});var sm=ma(),im=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,sm.resolveUrl)(t,r,n),this.missingSchema=(0,sm.normalizeId)((0,sm.getFullPath)(t,this.missingRef))}};am.default=im});var wa=w(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.resolveSchema=Ur.getCompilingSchema=Ur.resolveRef=Ur.compileSchema=Ur.SchemaEnv=void 0;var on=me(),JF=Nl(),Vo=Fr(),sn=ma(),DS=Te(),XF=ya(),Us=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,sn.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};Ur.SchemaEnv=Us;function lm(e){let t=LS.call(this,e);if(t)return t;let r=(0,sn.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:s}=this.opts,i=new on.CodeGen(this.scope,{es5:n,lines:o,ownProperties:s}),a;e.$async&&(a=i.scopeValue("Error",{ref:JF.default,code:(0,on._)`require("ajv/dist/runtime/validation_error").default`}));let c=i.scopeName("validate");e.validateName=c;let l={gen:i,allErrors:this.opts.allErrors,data:Vo.default.data,parentData:Vo.default.parentData,parentDataProperty:Vo.default.parentDataProperty,dataNames:[Vo.default.data],dataPathArr:[on.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,on.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:on.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,on._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(e),(0,XF.validateFunctionCode)(l),i.optimize(this.opts.code.optimize);let p=i.toString();u=`${i.scopeRefs(Vo.default.scope)}return ${p}`,this.opts.code.process&&(u=this.opts.code.process(u,e));let h=new Function(`${Vo.default.self}`,`${Vo.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:p,scopeValues:i._values}),this.opts.unevaluated){let{props:f,items:g}=l;h.evaluated={props:f instanceof on.Name?void 0:f,items:g instanceof on.Name?void 0:g,dynamicProps:f instanceof on.Name,dynamicItems:g instanceof on.Name},h.source&&(h.source.evaluated=(0,on.stringify)(h.evaluated))}return e.validate=h,e}catch(p){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),p}finally{this._compilations.delete(e)}}Ur.compileSchema=lm;function QF(e,t,r){var n;r=(0,sn.resolveUrl)(this.opts.uriResolver,t,r);let o=e.refs[r];if(o)return o;let s=tq.call(this,e,r);if(s===void 0){let i=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;i&&(s=new Us({schema:i,schemaId:a,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=ZF.call(this,s)}Ur.resolveRef=QF;function ZF(e){return(0,sn.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:lm.call(this,e)}function LS(e){for(let t of this._compilations)if(eq(t,e))return t}Ur.getCompilingSchema=LS;function eq(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function tq(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Ml.call(this,e,t)}function Ml(e,t){let r=this.opts.uriResolver.parse(t),n=(0,sn._getFullPath)(this.opts.uriResolver,r),o=(0,sn.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return cm.call(this,r,e);let s=(0,sn.normalizeId)(n),i=this.refs[s]||this.schemas[s];if(typeof i=="string"){let a=Ml.call(this,e,i);return typeof a?.schema!="object"?void 0:cm.call(this,r,a)}if(typeof i?.schema=="object"){if(i.validate||lm.call(this,i),s===(0,sn.normalizeId)(t)){let{schema:a}=i,{schemaId:c}=this.opts,l=a[c];return l&&(o=(0,sn.resolveUrl)(this.opts.uriResolver,o,l)),new Us({schema:a,schemaId:c,root:e,baseId:o})}return cm.call(this,r,i)}}Ur.resolveSchema=Ml;var rq=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function cm(e,{baseId:t,schema:r,root:n}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,DS.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!rq.has(a)&&l&&(t=(0,sn.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,DS.schemaHasRulesButRef)(r,this.RULES)){let a=(0,sn.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Ml.call(this,n,a)}let{schemaId:i}=this.opts;if(s=s||new Us({schema:r,schemaId:i,root:n,baseId:t}),s.schema!==s.root.schema)return s}});var jS=w((Loe,nq)=>{nq.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var pm=w((joe,GS)=>{"use strict";var oq=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),qS=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function um(e){let t="",r=0,n=0;for(n=0;n<e.length;n++)if(r=e[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n<e.length;n++){if(r=e[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}var sq=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function FS(e){return e.length=0,!0}function iq(e,t,r){if(e.length){let n=um(e);if(n!=="")t.push(n);else return r.error=!0,!1;e.length=0}return!0}function aq(e){let t=0,r={error:!1,address:"",zone:""},n=[],o=[],s=!1,i=!1,a=iq;for(let c=0;c<e.length;c++){let l=e[c];if(!(l==="["||l==="]"))if(l===":"){if(s===!0&&(i=!0),!a(o,n,r))break;if(++t>7){r.error=!0;break}c>0&&e[c-1]===":"&&(s=!0),n.push(":");continue}else if(l==="%"){if(!a(o,n,r))break;a=FS}else{o.push(l);continue}}return o.length&&(a===FS?r.zone=o.join(""):i?n.push(o.join("")):n.push(um(o))),r.address=n.join(""),r}function US(e){if(cq(e,":")<2)return{host:e,isIPV6:!1};let t=aq(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:n}}}function cq(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function lq(e){let t=e,r=[],n=-1,o=0;for(;o=t.length;){if(o===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(o===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(o===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((n=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")}function uq(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}function pq(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!qS(r)){let n=US(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=e.host}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}GS.exports={nonSimpleDomain:sq,recomposeAuthority:pq,normalizeComponentEncoding:uq,removeDotSegments:lq,isIPv4:qS,isUUID:oq,normalizeIPv6:US,stringArrayToHexStripped:um}});var WS=w((Foe,VS)=>{"use strict";var{isUUID:dq}=pm(),fq=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,mq=["http","https","ws","wss","urn","urn:uuid"];function hq(e){return mq.indexOf(e)!==-1}function dm(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function zS(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function BS(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function gq(e){return e.secure=dm(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function yq(e){if((e.port===(dm(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function vq(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(fq);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let o=`${n}:${t.nid||e.nid}`,s=fm(o);e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function wq(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),o=`${r}:${t.nid||n}`,s=fm(o);s&&(e=s.serialize(e,t));let i=e,a=e.nss;return i.path=`${n||t.nid}:${a}`,t.skipEscape=!0,i}function xq(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!dq(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function bq(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var HS={scheme:"http",domainHost:!0,parse:zS,serialize:BS},_q={scheme:"https",domainHost:HS.domainHost,parse:zS,serialize:BS},Dl={scheme:"ws",domainHost:!0,parse:gq,serialize:yq},Sq={scheme:"wss",domainHost:Dl.domainHost,parse:Dl.parse,serialize:Dl.serialize},Eq={scheme:"urn",parse:vq,serialize:wq,skipNormalize:!0},Tq={scheme:"urn:uuid",parse:xq,serialize:bq,skipNormalize:!0},Ll={http:HS,https:_q,ws:Dl,wss:Sq,urn:Eq,"urn:uuid":Tq};Object.setPrototypeOf(Ll,null);function fm(e){return e&&(Ll[e]||Ll[e.toLowerCase()])||void 0}VS.exports={wsIsSecure:dm,SCHEMES:Ll,isValidSchemeName:hq,getSchemeHandler:fm}});var hm=w((qoe,Fl)=>{"use strict";var{normalizeIPv6:kq,removeDotSegments:xa,recomposeAuthority:Rq,normalizeComponentEncoding:jl,isIPv4:Iq,nonSimpleDomain:Pq}=pm(),{SCHEMES:Aq,getSchemeHandler:KS}=WS();function Cq(e,t){return typeof e=="string"?e=_n(qn(e,t),t):typeof e=="object"&&(e=qn(_n(e,t),t)),e}function $q(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},o=YS(qn(e,n),qn(t,n),n,!0);return n.skipEscape=!0,_n(o,n)}function YS(e,t,r,n){let o={};return n||(e=qn(_n(e,r),r),t=qn(_n(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=xa(t.path||""),o.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=xa(t.path||""),o.query=t.query):(t.path?(t.path[0]==="/"?o.path=xa(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?o.path="/"+t.path:e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path,o.path=xa(o.path)),o.query=t.query):(o.path=e.path,t.query!==void 0?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function Oq(e,t,r){return typeof e=="string"?(e=unescape(e),e=_n(jl(qn(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=_n(jl(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=_n(jl(qn(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=_n(jl(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function _n(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),o=[],s=KS(n.scheme||r.scheme);s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&o.push(r.scheme,":");let i=Rq(r);if(i!==void 0&&(n.reference!=="suffix"&&o.push("//"),o.push(i),r.path&&r.path[0]!=="/"&&o.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(a=xa(a)),i===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),o.push(a)}return r.query!==void 0&&o.push("?",r.query),r.fragment!==void 0&&o.push("#",r.fragment),o.join("")}var Nq=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function qn(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},o=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let s=e.match(Nq);if(s){if(n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]),n.host)if(Iq(n.host)===!1){let c=kq(n.host);n.host=c.host.toLowerCase(),o=c.isIPV6}else o=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let i=KS(r.scheme||n.scheme);if(!r.unicodeSupport&&(!i||!i.unicodeSupport)&&n.host&&(r.domainHost||i&&i.domainHost)&&o===!1&&Pq(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(a){n.error=n.error||"Host's domain name can not be converted to ASCII: "+a}(!i||i&&!i.skipNormalize)&&(e.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=unescape(n.host))),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),i&&i.parse&&i.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var mm={SCHEMES:Aq,normalize:Cq,resolve:$q,resolveComponent:YS,equal:Oq,serialize:_n,parse:qn};Fl.exports=mm;Fl.exports.default=mm;Fl.exports.fastUri=mm});var XS=w(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});var JS=hm();JS.code='require("ajv/dist/runtime/uri").default';gm.default=JS});var sE=w(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.CodeGen=qt.Name=qt.nil=qt.stringify=qt.str=qt._=qt.KeywordCxt=void 0;var Mq=ya();Object.defineProperty(qt,"KeywordCxt",{enumerable:!0,get:function(){return Mq.KeywordCxt}});var Gs=me();Object.defineProperty(qt,"_",{enumerable:!0,get:function(){return Gs._}});Object.defineProperty(qt,"str",{enumerable:!0,get:function(){return Gs.str}});Object.defineProperty(qt,"stringify",{enumerable:!0,get:function(){return Gs.stringify}});Object.defineProperty(qt,"nil",{enumerable:!0,get:function(){return Gs.nil}});Object.defineProperty(qt,"Name",{enumerable:!0,get:function(){return Gs.Name}});Object.defineProperty(qt,"CodeGen",{enumerable:!0,get:function(){return Gs.CodeGen}});var Dq=Nl(),rE=va(),Lq=Hf(),ba=wa(),jq=me(),_a=ma(),ql=da(),vm=Te(),QS=jS(),Fq=XS(),nE=(e,t)=>new RegExp(e,t);nE.code="new RegExp";var qq=["removeAdditional","useDefaults","coerceTypes"],Uq=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Gq={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},zq={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},ZS=200;function Bq(e){var t,r,n,o,s,i,a,c,l,u,p,m,h,f,g,v,x,I,k,P,R,A,L,Y,ue;let Q=e.strict,Ke=(t=e.code)===null||t===void 0?void 0:t.optimize,Se=Ke===!0||Ke===void 0?1:Ke||0,ve=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:nE,pe=(o=e.uriResolver)!==null&&o!==void 0?o:Fq.default;return{strictSchema:(i=(s=e.strictSchema)!==null&&s!==void 0?s:Q)!==null&&i!==void 0?i:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:Q)!==null&&c!==void 0?c:!0,strictTypes:(u=(l=e.strictTypes)!==null&&l!==void 0?l:Q)!==null&&u!==void 0?u:"log",strictTuples:(m=(p=e.strictTuples)!==null&&p!==void 0?p:Q)!==null&&m!==void 0?m:"log",strictRequired:(f=(h=e.strictRequired)!==null&&h!==void 0?h:Q)!==null&&f!==void 0?f:!1,code:e.code?{...e.code,optimize:Se,regExp:ve}:{optimize:Se,regExp:ve},loopRequired:(g=e.loopRequired)!==null&&g!==void 0?g:ZS,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:ZS,meta:(x=e.meta)!==null&&x!==void 0?x:!0,messages:(I=e.messages)!==null&&I!==void 0?I:!0,inlineRefs:(k=e.inlineRefs)!==null&&k!==void 0?k:!0,schemaId:(P=e.schemaId)!==null&&P!==void 0?P:"$id",addUsedSchema:(R=e.addUsedSchema)!==null&&R!==void 0?R:!0,validateSchema:(A=e.validateSchema)!==null&&A!==void 0?A:!0,validateFormats:(L=e.validateFormats)!==null&&L!==void 0?L:!0,unicodeRegExp:(Y=e.unicodeRegExp)!==null&&Y!==void 0?Y:!0,int32range:(ue=e.int32range)!==null&&ue!==void 0?ue:!0,uriResolver:pe}}var Sa=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...Bq(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new jq.ValueScope({scope:{},prefixes:Uq,es5:r,lines:n}),this.logger=Jq(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,Lq.getRules)(),eE.call(this,Gq,t,"NOT SUPPORTED"),eE.call(this,zq,t,"DEPRECATED","warn"),this._metaOpts=Kq.call(this),t.formats&&Vq.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&Wq.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),Hq.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=QS;n==="id"&&(o={...QS},o.id=o.$id,delete o.$id),r&&t&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let o=n(r);return"$async"in n||(this.errors=n.errors),o}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return o.call(this,t,r);async function o(u,p){await s.call(this,u.$schema);let m=this._addSchema(u,p);return m.validate||i.call(this,m)}async function s(u){u&&!this.getSchema(u)&&await o.call(this,{$ref:u},!0)}async function i(u){try{return this._compileSchemaEnv(u)}catch(p){if(!(p instanceof rE.default))throw p;return a.call(this,p),await c.call(this,p.missingSchema),i.call(this,u)}}function a({missingSchema:u,missingRef:p}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${p} cannot be resolved`)}async function c(u){let p=await l.call(this,u);this.refs[u]||await s.call(this,p.$schema),this.refs[u]||this.addSchema(p,u,r)}async function l(u){let p=this._loading[u];if(p)return p;try{return await(this._loading[u]=n(u))}finally{delete this._loading[u]}}}addSchema(t,r,n,o=this.opts.validateSchema){if(Array.isArray(t)){for(let i of t)this.addSchema(i,void 0,n,o);return this}let s;if(typeof t=="object"){let{schemaId:i}=this.opts;if(s=t[i],s!==void 0&&typeof s!="string")throw new Error(`schema ${i} must be string`)}return r=(0,_a.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,o,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let o=this.validate(n,t);if(!o&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return o}getSchema(t){let r;for(;typeof(r=tE.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new ba.SchemaEnv({schema:{},schemaId:n});if(r=ba.resolveSchema.call(this,o,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=tE.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,_a.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Qq.call(this,n,r),!r)return(0,vm.eachItem)(n,s=>ym.call(this,s)),this;eU.call(this,r);let o={...r,type:(0,ql.getJSONTypes)(r.type),schemaType:(0,ql.getJSONTypes)(r.schemaType)};return(0,vm.eachItem)(n,o.type.length===0?s=>ym.call(this,s,o):s=>o.type.forEach(i=>ym.call(this,s,o,i))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let o=n.rules.findIndex(s=>s.keyword===t);o>=0&&n.rules.splice(o,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(o=>`${n}${o.instancePath} ${o.message}`).reduce((o,s)=>o+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let o of r){let s=o.split("/").slice(1),i=t;for(let a of s)i=i[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,u=i[a];l&&u&&(i[a]=oE(u))}}return t}_removeAllSchemas(t,r){for(let n in t){let o=t[n];(!r||r.test(n))&&(typeof o=="string"?delete t[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete t[n]))}}_addSchema(t,r,n,o=this.opts.validateSchema,s=this.opts.addUsedSchema){let i,{schemaId:a}=this.opts;if(typeof t=="object")i=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,_a.normalizeId)(i||n);let l=_a.getSchemaRefs.call(this,t,n);return c=new ba.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):ba.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{ba.compileSchema.call(this,t)}finally{this.opts=r}}};Sa.ValidationError=Dq.default;Sa.MissingRefError=rE.default;qt.default=Sa;function eE(e,t,r,n="error"){for(let o in e){let s=o;s in t&&this.logger[n](`${r}: option ${o}. ${e[s]}`)}}function tE(e){return e=(0,_a.normalizeId)(e),this.schemas[e]||this.refs[e]}function Hq(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function Vq(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function Wq(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function Kq(){let e={...this.opts};for(let t of qq)delete e[t];return e}var Yq={log(){},warn(){},error(){}};function Jq(e){if(e===!1)return Yq;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var Xq=/^[a-z_$][a-z0-9_$:-]*$/i;function Qq(e,t){let{RULES:r}=this;if((0,vm.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!Xq.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function ym(e,t,r){var n;let o=t?.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,i=o?s.post:s.rules.find(({type:c})=>c===r);if(i||(i={type:r,rules:[]},s.rules.push(i)),s.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,ql.getJSONTypes)(t.type),schemaType:(0,ql.getJSONTypes)(t.schemaType)}};t.before?Zq.call(this,i,a,t.before):i.rules.push(a),s.all[e]=a,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function Zq(e,t,r){let n=e.rules.findIndex(o=>o.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function eU(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=oE(t)),e.validateSchema=this.compile(t,!0))}var tU={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function oE(e){return{anyOf:[e,tU]}}});var iE=w(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});var rU={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};wm.default=rU});var zl=w(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.callRef=Wo.getValidate=void 0;var nU=va(),aE=qr(),vr=me(),zs=Fr(),cE=wa(),Ul=Te(),oU={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:s,validateName:i,opts:a,self:c}=n,{root:l}=s;if((r==="#"||r==="#/")&&o===l.baseId)return p();let u=cE.resolveRef.call(c,l,o,r);if(u===void 0)throw new nU.default(n.opts.uriResolver,o,r);if(u instanceof cE.SchemaEnv)return m(u);return h(u);function p(){if(s===l)return Gl(e,i,s,s.$async);let f=t.scopeValue("root",{ref:l});return Gl(e,(0,vr._)`${f}.validate`,l,l.$async)}function m(f){let g=lE(e,f);Gl(e,g,f,f.$async)}function h(f){let g=t.scopeValue("schema",a.code.source===!0?{ref:f,code:(0,vr.stringify)(f)}:{ref:f}),v=t.name("valid"),x=e.subschema({schema:f,dataTypes:[],schemaPath:vr.nil,topSchemaRef:g,errSchemaPath:r},v);e.mergeEvaluated(x),e.ok(v)}}};function lE(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,vr._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Wo.getValidate=lE;function Gl(e,t,r,n){let{gen:o,it:s}=e,{allErrors:i,schemaEnv:a,opts:c}=s,l=c.passContext?zs.default.this:vr.nil;n?u():p();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");let f=o.let("valid");o.try(()=>{o.code((0,vr._)`await ${(0,aE.callValidateCode)(e,t,l)}`),h(t),i||o.assign(f,!0)},g=>{o.if((0,vr._)`!(${g} instanceof ${s.ValidationError})`,()=>o.throw(g)),m(g),i||o.assign(f,!1)}),e.ok(f)}function p(){e.result((0,aE.callValidateCode)(e,t,l),()=>h(t),()=>m(t))}function m(f){let g=(0,vr._)`${f}.errors`;o.assign(zs.default.vErrors,(0,vr._)`${zs.default.vErrors} === null ? ${g} : ${zs.default.vErrors}.concat(${g})`),o.assign(zs.default.errors,(0,vr._)`${zs.default.vErrors}.length`)}function h(f){var g;if(!s.opts.unevaluated)return;let v=(g=r?.validate)===null||g===void 0?void 0:g.evaluated;if(s.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(s.props=Ul.mergeEvaluated.props(o,v.props,s.props));else{let x=o.var("props",(0,vr._)`${f}.evaluated.props`);s.props=Ul.mergeEvaluated.props(o,x,s.props,vr.Name)}if(s.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(s.items=Ul.mergeEvaluated.items(o,v.items,s.items));else{let x=o.var("items",(0,vr._)`${f}.evaluated.items`);s.items=Ul.mergeEvaluated.items(o,x,s.items,vr.Name)}}}Wo.callRef=Gl;Wo.default=oU});var uE=w(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});var sU=iE(),iU=zl(),aU=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",sU.default,iU.default];xm.default=aU});var pE=w(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});var Bl=me(),mo=Bl.operators,Hl={maximum:{okStr:"<=",ok:mo.LTE,fail:mo.GT},minimum:{okStr:">=",ok:mo.GTE,fail:mo.LT},exclusiveMaximum:{okStr:"<",ok:mo.LT,fail:mo.GTE},exclusiveMinimum:{okStr:">",ok:mo.GT,fail:mo.LTE}},cU={message:({keyword:e,schemaCode:t})=>(0,Bl.str)`must be ${Hl[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Bl._)`{comparison: ${Hl[e].okStr}, limit: ${t}}`},lU={keyword:Object.keys(Hl),type:"number",schemaType:"number",$data:!0,error:cU,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Bl._)`${r} ${Hl[t].fail} ${n} || isNaN(${r})`)}};bm.default=lU});var dE=w(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});var Ea=me(),uU={message:({schemaCode:e})=>(0,Ea.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Ea._)`{multipleOf: ${e}}`},pU={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:uU,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,s=o.opts.multipleOfPrecision,i=t.let("res"),a=s?(0,Ea._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${s}`:(0,Ea._)`${i} !== parseInt(${i})`;e.fail$data((0,Ea._)`(${n} === 0 || (${i} = ${r}/${n}, ${a}))`)}};_m.default=pU});var mE=w(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});function fE(e){let t=e.length,r=0,n=0,o;for(;n<t;)r++,o=e.charCodeAt(n++),o>=55296&&o<=56319&&n<t&&(o=e.charCodeAt(n),(o&64512)===56320&&n++);return r}Sm.default=fE;fE.code='require("ajv/dist/runtime/ucs2length").default'});var hE=w(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});var Ko=me(),dU=Te(),fU=mE(),mU={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Ko.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Ko._)`{limit: ${e}}`},hU={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:mU,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,s=t==="maxLength"?Ko.operators.GT:Ko.operators.LT,i=o.opts.unicode===!1?(0,Ko._)`${r}.length`:(0,Ko._)`${(0,dU.useFunc)(e.gen,fU.default)}(${r})`;e.fail$data((0,Ko._)`${i} ${s} ${n}`)}};Em.default=hU});var gE=w(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});var gU=qr(),yU=Te(),Bs=me(),vU={message:({schemaCode:e})=>(0,Bs.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Bs._)`{pattern: ${e}}`},wU={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:vU,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:s,it:i}=e,a=i.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=i.opts.code,l=c.code==="new RegExp"?(0,Bs._)`new RegExp`:(0,yU.useFunc)(t,c),u=t.let("valid");t.try(()=>t.assign(u,(0,Bs._)`${l}(${s}, ${a}).test(${r})`),()=>t.assign(u,!1)),e.fail$data((0,Bs._)`!${u}`)}else{let c=(0,gU.usePattern)(e,o);e.fail$data((0,Bs._)`!${c}.test(${r})`)}}};Tm.default=wU});var yE=w(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});var Ta=me(),xU={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Ta.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Ta._)`{limit: ${e}}`},bU={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:xU,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?Ta.operators.GT:Ta.operators.LT;e.fail$data((0,Ta._)`Object.keys(${r}).length ${o} ${n}`)}};km.default=bU});var vE=w(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});var ka=qr(),Ra=me(),_U=Te(),SU={message:({params:{missingProperty:e}})=>(0,Ra.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Ra._)`{missingProperty: ${e}}`},EU={keyword:"required",type:"object",schemaType:"array",$data:!0,error:SU,code(e){let{gen:t,schema:r,schemaCode:n,data:o,$data:s,it:i}=e,{opts:a}=i;if(!s&&r.length===0)return;let c=r.length>=a.loopRequired;if(i.allErrors?l():u(),a.strictRequired){let h=e.parentSchema.properties,{definedProperties:f}=e.it;for(let g of r)if(h?.[g]===void 0&&!f.has(g)){let v=i.schemaEnv.baseId+i.errSchemaPath,x=`required property "${g}" is not defined at "${v}" (strictRequired)`;(0,_U.checkStrictMode)(i,x,i.opts.strictRequired)}}function l(){if(c||s)e.block$data(Ra.nil,p);else for(let h of r)(0,ka.checkReportMissingProp)(e,h)}function u(){let h=t.let("missing");if(c||s){let f=t.let("valid",!0);e.block$data(f,()=>m(h,f)),e.ok(f)}else t.if((0,ka.checkMissingProp)(e,r,h)),(0,ka.reportMissingProp)(e,h),t.else()}function p(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,ka.noPropertyInData)(t,o,h,a.ownProperties),()=>e.error())})}function m(h,f){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(f,(0,ka.propertyInData)(t,o,h,a.ownProperties)),t.if((0,Ra.not)(f),()=>{e.error(),t.break()})},Ra.nil)}}};Rm.default=EU});var wE=w(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});var Ia=me(),TU={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ia.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Ia._)`{limit: ${e}}`},kU={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:TU,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?Ia.operators.GT:Ia.operators.LT;e.fail$data((0,Ia._)`${r}.length ${o} ${n}`)}};Im.default=kU});var Vl=w(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});var xE=fa();xE.code='require("ajv/dist/runtime/equal").default';Pm.default=xE});var bE=w(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});var Am=da(),Ut=me(),RU=Te(),IU=Vl(),PU={message:({params:{i:e,j:t}})=>(0,Ut.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Ut._)`{i: ${e}, j: ${t}}`},AU={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:PU,code(e){let{gen:t,data:r,$data:n,schema:o,parentSchema:s,schemaCode:i,it:a}=e;if(!n&&!o)return;let c=t.let("valid"),l=s.items?(0,Am.getSchemaTypes)(s.items):[];e.block$data(c,u,(0,Ut._)`${i} === false`),e.ok(c);function u(){let f=t.let("i",(0,Ut._)`${r}.length`),g=t.let("j");e.setParams({i:f,j:g}),t.assign(c,!0),t.if((0,Ut._)`${f} > 1`,()=>(p()?m:h)(f,g))}function p(){return l.length>0&&!l.some(f=>f==="object"||f==="array")}function m(f,g){let v=t.name("item"),x=(0,Am.checkDataTypes)(l,v,a.opts.strictNumbers,Am.DataType.Wrong),I=t.const("indices",(0,Ut._)`{}`);t.for((0,Ut._)`;${f}--;`,()=>{t.let(v,(0,Ut._)`${r}[${f}]`),t.if(x,(0,Ut._)`continue`),l.length>1&&t.if((0,Ut._)`typeof ${v} == "string"`,(0,Ut._)`${v} += "_"`),t.if((0,Ut._)`typeof ${I}[${v}] == "number"`,()=>{t.assign(g,(0,Ut._)`${I}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,Ut._)`${I}[${v}] = ${f}`)})}function h(f,g){let v=(0,RU.useFunc)(t,IU.default),x=t.name("outer");t.label(x).for((0,Ut._)`;${f}--;`,()=>t.for((0,Ut._)`${g} = ${f}; ${g}--;`,()=>t.if((0,Ut._)`${v}(${r}[${f}], ${r}[${g}])`,()=>{e.error(),t.assign(c,!1).break(x)})))}}};Cm.default=AU});var _E=w(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});var $m=me(),CU=Te(),$U=Vl(),OU={message:"must be equal to constant",params:({schemaCode:e})=>(0,$m._)`{allowedValue: ${e}}`},NU={keyword:"const",$data:!0,error:OU,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,$m._)`!${(0,CU.useFunc)(t,$U.default)}(${r}, ${o})`):e.fail((0,$m._)`${s} !== ${r}`)}};Om.default=NU});var SE=w(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});var Pa=me(),MU=Te(),DU=Vl(),LU={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Pa._)`{allowedValues: ${e}}`},jU={keyword:"enum",schemaType:"array",$data:!0,error:LU,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:s,it:i}=e;if(!n&&o.length===0)throw new Error("enum must have non-empty array");let a=o.length>=i.opts.loopEnum,c,l=()=>c??(c=(0,MU.useFunc)(t,DU.default)),u;if(a||n)u=t.let("valid"),e.block$data(u,p);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let h=t.const("vSchema",s);u=(0,Pa.or)(...o.map((f,g)=>m(h,g)))}e.pass(u);function p(){t.assign(u,!1),t.forOf("v",s,h=>t.if((0,Pa._)`${l()}(${r}, ${h})`,()=>t.assign(u,!0).break()))}function m(h,f){let g=o[f];return typeof g=="object"&&g!==null?(0,Pa._)`${l()}(${r}, ${h}[${f}])`:(0,Pa._)`${r} === ${g}`}}};Nm.default=jU});var EE=w(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0});var FU=pE(),qU=dE(),UU=hE(),GU=gE(),zU=yE(),BU=vE(),HU=wE(),VU=bE(),WU=_E(),KU=SE(),YU=[FU.default,qU.default,UU.default,GU.default,zU.default,BU.default,HU.default,VU.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},WU.default,KU.default];Mm.default=YU});var Lm=w(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.validateAdditionalItems=void 0;var Yo=me(),Dm=Te(),JU={message:({params:{len:e}})=>(0,Yo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Yo._)`{limit: ${e}}`},XU={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:JU,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Dm.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}TE(e,n)}};function TE(e,t){let{gen:r,schema:n,data:o,keyword:s,it:i}=e;i.items=!0;let a=r.const("len",(0,Yo._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Yo._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,Dm.alwaysValidSchema)(i,n)){let l=r.var("valid",(0,Yo._)`${a} <= ${t.length}`);r.if((0,Yo.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:s,dataProp:u,dataPropType:Dm.Type.Num},l),i.allErrors||r.if((0,Yo.not)(l),()=>r.break())})}}Aa.validateAdditionalItems=TE;Aa.default=XU});var jm=w(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.validateTuple=void 0;var kE=me(),Wl=Te(),QU=qr(),ZU={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return RE(e,"additionalItems",t);r.items=!0,!(0,Wl.alwaysValidSchema)(r,t)&&e.ok((0,QU.validateArray)(e))}};function RE(e,t,r=e.schema){let{gen:n,parentSchema:o,data:s,keyword:i,it:a}=e;u(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Wl.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,kE._)`${s}.length`);r.forEach((p,m)=>{(0,Wl.alwaysValidSchema)(a,p)||(n.if((0,kE._)`${l} > ${m}`,()=>e.subschema({keyword:i,schemaProp:m,dataProp:m},c)),e.ok(c))});function u(p){let{opts:m,errSchemaPath:h}=a,f=r.length,g=f===p.minItems&&(f===p.maxItems||p[t]===!1);if(m.strictTuples&&!g){let v=`"${i}" is ${f}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Wl.checkStrictMode)(a,v,m.strictTuples)}}}Ca.validateTuple=RE;Ca.default=ZU});var IE=w(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});var e2=jm(),t2={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,e2.validateTuple)(e,"items")};Fm.default=t2});var AE=w(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});var PE=me(),r2=Te(),n2=qr(),o2=Lm(),s2={message:({params:{len:e}})=>(0,PE.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,PE._)`{limit: ${e}}`},i2={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:s2,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,r2.alwaysValidSchema)(n,t)&&(o?(0,o2.validateAdditionalItems)(e,o):e.ok((0,n2.validateArray)(e)))}};qm.default=i2});var CE=w(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});var Gr=me(),Kl=Te(),a2={message:({params:{min:e,max:t}})=>t===void 0?(0,Gr.str)`must contain at least ${e} valid item(s)`:(0,Gr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Gr._)`{minContains: ${e}}`:(0,Gr._)`{minContains: ${e}, maxContains: ${t}}`},c2={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:a2,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:s}=e,i,a,{minContains:c,maxContains:l}=n;s.opts.next?(i=c===void 0?1:c,a=l):i=1;let u=t.const("len",(0,Gr._)`${o}.length`);if(e.setParams({min:i,max:a}),a===void 0&&i===0){(0,Kl.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&i>a){(0,Kl.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Kl.alwaysValidSchema)(s,r)){let g=(0,Gr._)`${u} >= ${i}`;a!==void 0&&(g=(0,Gr._)`${g} && ${u} <= ${a}`),e.pass(g);return}s.items=!0;let p=t.name("valid");a===void 0&&i===1?h(p,()=>t.if(p,()=>t.break())):i===0?(t.let(p,!0),a!==void 0&&t.if((0,Gr._)`${o}.length > 0`,m)):(t.let(p,!1),m()),e.result(p,()=>e.reset());function m(){let g=t.name("_valid"),v=t.let("count",0);h(g,()=>t.if(g,()=>f(v)))}function h(g,v){t.forRange("i",0,u,x=>{e.subschema({keyword:"contains",dataProp:x,dataPropType:Kl.Type.Num,compositeRule:!0},g),v()})}function f(g){t.code((0,Gr._)`${g}++`),a===void 0?t.if((0,Gr._)`${g} >= ${i}`,()=>t.assign(p,!0).break()):(t.if((0,Gr._)`${g} > ${a}`,()=>t.assign(p,!1).break()),i===1?t.assign(p,!0):t.if((0,Gr._)`${g} >= ${i}`,()=>t.assign(p,!0)))}}};Um.default=c2});var Yl=w(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.validateSchemaDeps=Sn.validatePropertyDeps=Sn.error=void 0;var Gm=me(),l2=Te(),$a=qr();Sn.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Gm.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Gm._)`{property: ${e},
20
- missingProperty: ${n},
21
- depsCount: ${t},
22
- deps: ${r}}`};var u2={keyword:"dependencies",type:"object",schemaType:"object",error:Sn.error,code(e){let[t,r]=p2(e);$E(e,t),OE(e,r)}};function p2({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let o=Array.isArray(e[n])?t:r;o[n]=e[n]}return[t,r]}function $E(e,t=e.schema){let{gen:r,data:n,it:o}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let i in t){let a=t[i];if(a.length===0)continue;let c=(0,$a.propertyInData)(r,n,i,o.opts.ownProperties);e.setParams({property:i,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(c,()=>{for(let l of a)(0,$a.checkReportMissingProp)(e,l)}):(r.if((0,Gm._)`${c} && (${(0,$a.checkMissingProp)(e,a,s)})`),(0,$a.reportMissingProp)(e,s),r.else())}}Sn.validatePropertyDeps=$E;function OE(e,t=e.schema){let{gen:r,data:n,keyword:o,it:s}=e,i=r.name("valid");for(let a in t)(0,l2.alwaysValidSchema)(s,t[a])||(r.if((0,$a.propertyInData)(r,n,a,s.opts.ownProperties),()=>{let c=e.subschema({keyword:o,schemaProp:a},i);e.mergeValidEvaluated(c,i)},()=>r.var(i,!0)),e.ok(i))}Sn.validateSchemaDeps=OE;Sn.default=u2});var ME=w(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});var NE=me(),d2=Te(),f2={message:"property name must be valid",params:({params:e})=>(0,NE._)`{propertyName: ${e.propertyName}}`},m2={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:f2,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,d2.alwaysValidSchema)(o,r))return;let s=t.name("valid");t.forIn("key",n,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},s),t.if((0,NE.not)(s),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(s)}};zm.default=m2});var Hm=w(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});var Jl=qr(),an=me(),h2=Fr(),Xl=Te(),g2={message:"must NOT have additional properties",params:({params:e})=>(0,an._)`{additionalProperty: ${e.additionalProperty}}`},y2={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:g2,code(e){let{gen:t,schema:r,parentSchema:n,data:o,errsCount:s,it:i}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=i;if(i.props=!0,c.removeAdditional!=="all"&&(0,Xl.alwaysValidSchema)(i,r))return;let l=(0,Jl.allSchemaProperties)(n.properties),u=(0,Jl.allSchemaProperties)(n.patternProperties);p(),e.ok((0,an._)`${s} === ${h2.default.errors}`);function p(){t.forIn("key",o,v=>{!l.length&&!u.length?f(v):t.if(m(v),()=>f(v))})}function m(v){let x;if(l.length>8){let I=(0,Xl.schemaRefOrVal)(i,n.properties,"properties");x=(0,Jl.isOwnProperty)(t,I,v)}else l.length?x=(0,an.or)(...l.map(I=>(0,an._)`${v} === ${I}`)):x=an.nil;return u.length&&(x=(0,an.or)(x,...u.map(I=>(0,an._)`${(0,Jl.usePattern)(e,I)}.test(${v})`))),(0,an.not)(x)}function h(v){t.code((0,an._)`delete ${o}[${v}]`)}function f(v){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,Xl.alwaysValidSchema)(i,r)){let x=t.name("valid");c.removeAdditional==="failing"?(g(v,x,!1),t.if((0,an.not)(x),()=>{e.reset(),h(v)})):(g(v,x),a||t.if((0,an.not)(x),()=>t.break()))}}function g(v,x,I){let k={keyword:"additionalProperties",dataProp:v,dataPropType:Xl.Type.Str};I===!1&&Object.assign(k,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(k,x)}}};Bm.default=y2});var jE=w(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});var v2=ya(),DE=qr(),Vm=Te(),LE=Hm(),w2={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&LE.default.code(new v2.KeywordCxt(s,LE.default,"additionalProperties"));let i=(0,DE.allSchemaProperties)(r);for(let p of i)s.definedProperties.add(p);s.opts.unevaluated&&i.length&&s.props!==!0&&(s.props=Vm.mergeEvaluated.props(t,(0,Vm.toHash)(i),s.props));let a=i.filter(p=>!(0,Vm.alwaysValidSchema)(s,r[p]));if(a.length===0)return;let c=t.name("valid");for(let p of a)l(p)?u(p):(t.if((0,DE.propertyInData)(t,o,p,s.opts.ownProperties)),u(p),s.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(c);function l(p){return s.opts.useDefaults&&!s.compositeRule&&r[p].default!==void 0}function u(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},c)}}};Wm.default=w2});var GE=w(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});var FE=qr(),Ql=me(),qE=Te(),UE=Te(),x2={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:o,it:s}=e,{opts:i}=s,a=(0,FE.allSchemaProperties)(r),c=a.filter(g=>(0,qE.alwaysValidSchema)(s,r[g]));if(a.length===0||c.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let l=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=t.name("valid");s.props!==!0&&!(s.props instanceof Ql.Name)&&(s.props=(0,UE.evaluatedPropsToName)(t,s.props));let{props:p}=s;m();function m(){for(let g of a)l&&h(g),s.allErrors?f(g):(t.var(u,!0),f(g),t.if(u))}function h(g){for(let v in l)new RegExp(g).test(v)&&(0,qE.checkStrictMode)(s,`property ${v} matches pattern ${g} (use allowMatchingProperties)`)}function f(g){t.forIn("key",n,v=>{t.if((0,Ql._)`${(0,FE.usePattern)(e,g)}.test(${v})`,()=>{let x=c.includes(g);x||e.subschema({keyword:"patternProperties",schemaProp:g,dataProp:v,dataPropType:UE.Type.Str},u),s.opts.unevaluated&&p!==!0?t.assign((0,Ql._)`${p}[${v}]`,!0):!x&&!s.allErrors&&t.if((0,Ql.not)(u),()=>t.break())})})}}};Km.default=x2});var zE=w(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});var b2=Te(),_2={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,b2.alwaysValidSchema)(n,r)){e.fail();return}let o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Ym.default=_2});var BE=w(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});var S2=qr(),E2={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:S2.validateUnion,error:{message:"must match a schema in anyOf"}};Jm.default=E2});var HE=w(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});var Zl=me(),T2=Te(),k2={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Zl._)`{passingSchemas: ${e.passing}}`},R2={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:k2,code(e){let{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let s=r,i=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(i,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((u,p)=>{let m;(0,T2.alwaysValidSchema)(o,u)?t.var(c,!0):m=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},c),p>0&&t.if((0,Zl._)`${c} && ${i}`).assign(i,!1).assign(a,(0,Zl._)`[${a}, ${p}]`).else(),t.if(c,()=>{t.assign(i,!0),t.assign(a,p),m&&e.mergeEvaluated(m,Zl.Name)})})}}};Xm.default=R2});var VE=w(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});var I2=Te(),P2={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let o=t.name("valid");r.forEach((s,i)=>{if((0,I2.alwaysValidSchema)(n,s))return;let a=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(a)})}};Qm.default=P2});var YE=w(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});var eu=me(),KE=Te(),A2={message:({params:e})=>(0,eu.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,eu._)`{failingKeyword: ${e.ifClause}}`},C2={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:A2,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,KE.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=WE(n,"then"),s=WE(n,"else");if(!o&&!s)return;let i=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),o&&s){let u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,l("then",u),l("else",u))}else o?t.if(a,l("then")):t.if((0,eu.not)(a),l("else"));e.pass(i,()=>e.error(!0));function c(){let u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function l(u,p){return()=>{let m=e.subschema({keyword:u},a);t.assign(i,a),e.mergeValidEvaluated(m,i),p?t.assign(p,(0,eu._)`${u}`):e.setParams({ifClause:u})}}}};function WE(e,t){let r=e.schema[t];return r!==void 0&&!(0,KE.alwaysValidSchema)(e,r)}Zm.default=C2});var JE=w(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var $2=Te(),O2={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,$2.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};eh.default=O2});var XE=w(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});var N2=Lm(),M2=IE(),D2=jm(),L2=AE(),j2=CE(),F2=Yl(),q2=ME(),U2=Hm(),G2=jE(),z2=GE(),B2=zE(),H2=BE(),V2=HE(),W2=VE(),K2=YE(),Y2=JE();function J2(e=!1){let t=[B2.default,H2.default,V2.default,W2.default,K2.default,Y2.default,q2.default,U2.default,F2.default,G2.default,z2.default];return e?t.push(M2.default,L2.default):t.push(N2.default,D2.default),t.push(j2.default),t}th.default=J2});var nh=w(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.dynamicAnchor=void 0;var rh=me(),X2=Fr(),QE=wa(),Q2=zl(),Z2={keyword:"$dynamicAnchor",schemaType:"string",code:e=>ZE(e,e.schema)};function ZE(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let o=(0,rh._)`${X2.default.dynamicAnchors}${(0,rh.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:eG(e);r.if((0,rh._)`!${o}`,()=>r.assign(o,s))}Oa.dynamicAnchor=ZE;function eG(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:o,baseId:s,localRefs:i,meta:a}=t.root,{schemaId:c}=n.opts,l=new QE.SchemaEnv({schema:r,schemaId:c,root:o,baseId:s,localRefs:i,meta:a});return QE.compileSchema.call(n,l),(0,Q2.getValidate)(e,l)}Oa.default=Z2});var oh=w(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.dynamicRef=void 0;var eT=me(),tG=Fr(),tT=zl(),rG={keyword:"$dynamicRef",schemaType:"string",code:e=>rT(e,e.schema)};function rT(e,t){let{gen:r,keyword:n,it:o}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let s=t.slice(1);if(o.allErrors)i();else{let c=r.let("valid",!1);i(c),e.ok(c)}function i(c){if(o.schemaEnv.root.dynamicAnchors[s]){let l=r.let("_v",(0,eT._)`${tG.default.dynamicAnchors}${(0,eT.getProperty)(s)}`);r.if(l,a(l,c),a(o.validateName,c))}else a(o.validateName,c)()}function a(c,l){return l?()=>r.block(()=>{(0,tT.callRef)(e,c),r.let(l,!0)}):()=>(0,tT.callRef)(e,c)}}Na.dynamicRef=rT;Na.default=rG});var nT=w(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});var nG=nh(),oG=Te(),sG={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,nG.dynamicAnchor)(e,""):(0,oG.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};sh.default=sG});var oT=w(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});var iG=oh(),aG={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,iG.dynamicRef)(e,e.schema)};ih.default=aG});var sT=w(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});var cG=nh(),lG=oh(),uG=nT(),pG=oT(),dG=[cG.default,lG.default,uG.default,pG.default];ah.default=dG});var aT=w(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var iT=Yl(),fG={keyword:"dependentRequired",type:"object",schemaType:"object",error:iT.error,code:e=>(0,iT.validatePropertyDeps)(e)};ch.default=fG});var cT=w(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});var mG=Yl(),hG={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,mG.validateSchemaDeps)(e)};lh.default=hG});var lT=w(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});var gG=Te(),yG={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,gG.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};uh.default=yG});var uT=w(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});var vG=aT(),wG=cT(),xG=lT(),bG=[vG.default,wG.default,xG.default];ph.default=bG});var dT=w(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});var ho=me(),pT=Te(),_G=Fr(),SG={message:"must NOT have unevaluated properties",params:({params:e})=>(0,ho._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},EG={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:SG,code(e){let{gen:t,schema:r,data:n,errsCount:o,it:s}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:i,props:a}=s;a instanceof ho.Name?t.if((0,ho._)`${a} !== true`,()=>t.forIn("key",n,p=>t.if(l(a,p),()=>c(p)))):a!==!0&&t.forIn("key",n,p=>a===void 0?c(p):t.if(u(a,p),()=>c(p))),s.props=!0,e.ok((0,ho._)`${o} === ${_G.default.errors}`);function c(p){if(r===!1){e.setParams({unevaluatedProperty:p}),e.error(),i||t.break();return}if(!(0,pT.alwaysValidSchema)(s,r)){let m=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:p,dataPropType:pT.Type.Str},m),i||t.if((0,ho.not)(m),()=>t.break())}}function l(p,m){return(0,ho._)`!${p} || !${p}[${m}]`}function u(p,m){let h=[];for(let f in p)p[f]===!0&&h.push((0,ho._)`${m} !== ${f}`);return(0,ho.and)(...h)}}};dh.default=EG});var mT=w(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});var Jo=me(),fT=Te(),TG={message:({params:{len:e}})=>(0,Jo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Jo._)`{limit: ${e}}`},kG={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:TG,code(e){let{gen:t,schema:r,data:n,it:o}=e,s=o.items||0;if(s===!0)return;let i=t.const("len",(0,Jo._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,Jo._)`${i} > ${s}`);else if(typeof r=="object"&&!(0,fT.alwaysValidSchema)(o,r)){let c=t.var("valid",(0,Jo._)`${i} <= ${s}`);t.if((0,Jo.not)(c),()=>a(c,s)),e.ok(c)}o.items=!0;function a(c,l){t.forRange("i",l,i,u=>{e.subschema({keyword:"unevaluatedItems",dataProp:u,dataPropType:fT.Type.Num},c),o.allErrors||t.if((0,Jo.not)(c),()=>t.break())})}}};fh.default=kG});var hT=w(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});var RG=dT(),IG=mT(),PG=[RG.default,IG.default];mh.default=PG});var gT=w(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});var _t=me(),AG={message:({schemaCode:e})=>(0,_t.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,_t._)`{format: ${e}}`},CG={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:AG,code(e,t){let{gen:r,data:n,$data:o,schema:s,schemaCode:i,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:p}=a;if(!c.validateFormats)return;o?m():h();function m(){let f=r.scopeValue("formats",{ref:p.formats,code:c.code.formats}),g=r.const("fDef",(0,_t._)`${f}[${i}]`),v=r.let("fType"),x=r.let("format");r.if((0,_t._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(v,(0,_t._)`${g}.type || "string"`).assign(x,(0,_t._)`${g}.validate`),()=>r.assign(v,(0,_t._)`"string"`).assign(x,g)),e.fail$data((0,_t.or)(I(),k()));function I(){return c.strictSchema===!1?_t.nil:(0,_t._)`${i} && !${x}`}function k(){let P=u.$async?(0,_t._)`(${g}.async ? await ${x}(${n}) : ${x}(${n}))`:(0,_t._)`${x}(${n})`,R=(0,_t._)`(typeof ${x} == "function" ? ${P} : ${x}.test(${n}))`;return(0,_t._)`${x} && ${x} !== true && ${v} === ${t} && !${R}`}}function h(){let f=p.formats[s];if(!f){I();return}if(f===!0)return;let[g,v,x]=k(f);g===t&&e.pass(P());function I(){if(c.strictSchema===!1){p.logger.warn(R());return}throw new Error(R());function R(){return`unknown format "${s}" ignored in schema at path "${l}"`}}function k(R){let A=R instanceof RegExp?(0,_t.regexpCode)(R):c.code.formats?(0,_t._)`${c.code.formats}${(0,_t.getProperty)(s)}`:void 0,L=r.scopeValue("formats",{key:s,ref:R,code:A});return typeof R=="object"&&!(R instanceof RegExp)?[R.type||"string",R.validate,(0,_t._)`${L}.validate`]:["string",R,L]}function P(){if(typeof f=="object"&&!(f instanceof RegExp)&&f.async){if(!u.$async)throw new Error("async format in sync schema");return(0,_t._)`await ${x}(${n})`}return typeof v=="function"?(0,_t._)`${x}(${n})`:(0,_t._)`${x}.test(${n})`}}}};hh.default=CG});var yT=w(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});var $G=gT(),OG=[$G.default];gh.default=OG});var vT=w(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.contentVocabulary=Hs.metadataVocabulary=void 0;Hs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Hs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var xT=w(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});var NG=uE(),MG=EE(),DG=XE(),LG=sT(),jG=uT(),FG=hT(),qG=yT(),wT=vT(),UG=[LG.default,NG.default,MG.default,(0,DG.default)(!0),qG.default,wT.metadataVocabulary,wT.contentVocabulary,jG.default,FG.default];yh.default=UG});var _T=w(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.DiscrError=void 0;var bT;(function(e){e.Tag="tag",e.Mapping="mapping"})(bT||(tu.DiscrError=bT={}))});var ET=w(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});var Vs=me(),vh=_T(),ST=wa(),GG=va(),zG=Te(),BG={message:({params:{discrError:e,tagName:t}})=>e===vh.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Vs._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},HG={keyword:"discriminator",type:"object",schemaType:"object",error:BG,code(e){let{gen:t,data:r,schema:n,parentSchema:o,it:s}=e,{oneOf:i}=o;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,Vs._)`${r}${(0,Vs.getProperty)(a)}`);t.if((0,Vs._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:vh.DiscrError.Tag,tag:l,tagName:a})),e.ok(c);function u(){let h=m();t.if(!1);for(let f in h)t.elseIf((0,Vs._)`${l} === ${f}`),t.assign(c,p(h[f]));t.else(),e.error(!1,{discrError:vh.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function p(h){let f=t.name("valid"),g=e.subschema({keyword:"oneOf",schemaProp:h},f);return e.mergeEvaluated(g,Vs.Name),f}function m(){var h;let f={},g=x(o),v=!0;for(let P=0;P<i.length;P++){let R=i[P];if(R?.$ref&&!(0,zG.schemaHasRulesButRef)(R,s.self.RULES)){let L=R.$ref;if(R=ST.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,L),R instanceof ST.SchemaEnv&&(R=R.schema),R===void 0)throw new GG.default(s.opts.uriResolver,s.baseId,L)}let A=(h=R?.properties)===null||h===void 0?void 0:h[a];if(typeof A!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);v=v&&(g||x(R)),I(A,P)}if(!v)throw new Error(`discriminator: "${a}" must be required`);return f;function x({required:P}){return Array.isArray(P)&&P.includes(a)}function I(P,R){if(P.const)k(P.const,R);else if(P.enum)for(let A of P.enum)k(A,R);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function k(P,R){if(typeof P!="string"||P in f)throw new Error(`discriminator: "${a}" values must be unique strings`);f[P]=R}}}};wh.default=HG});var TT=w((qse,VG)=>{VG.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var kT=w((Use,WG)=>{WG.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var RT=w((Gse,KG)=>{KG.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var IT=w((zse,YG)=>{YG.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var PT=w((Bse,JG)=>{JG.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var AT=w((Hse,XG)=>{XG.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var CT=w((Vse,QG)=>{QG.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var $T=w((Wse,ZG)=>{ZG.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var OT=w(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});var ez=TT(),tz=kT(),rz=RT(),nz=IT(),oz=PT(),sz=AT(),iz=CT(),az=$T(),cz=["/properties"];function lz(e){return[ez,tz,rz,nz,oz,t(this,sz),iz,t(this,az)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,cz):n}}xh.default=lz});var NT=w((nt,_h)=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.MissingRefError=nt.ValidationError=nt.CodeGen=nt.Name=nt.nil=nt.stringify=nt.str=nt._=nt.KeywordCxt=nt.Ajv2020=void 0;var uz=sE(),pz=xT(),dz=ET(),fz=OT(),bh="https://json-schema.org/draft/2020-12/schema",Ws=class extends uz.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),pz.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(dz.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(fz.default.call(this,t),this.refs["http://json-schema.org/schema"]=bh)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(bh)?bh:void 0)}};nt.Ajv2020=Ws;_h.exports=nt=Ws;_h.exports.Ajv2020=Ws;Object.defineProperty(nt,"__esModule",{value:!0});nt.default=Ws;var mz=ya();Object.defineProperty(nt,"KeywordCxt",{enumerable:!0,get:function(){return mz.KeywordCxt}});var Ks=me();Object.defineProperty(nt,"_",{enumerable:!0,get:function(){return Ks._}});Object.defineProperty(nt,"str",{enumerable:!0,get:function(){return Ks.str}});Object.defineProperty(nt,"stringify",{enumerable:!0,get:function(){return Ks.stringify}});Object.defineProperty(nt,"nil",{enumerable:!0,get:function(){return Ks.nil}});Object.defineProperty(nt,"Name",{enumerable:!0,get:function(){return Ks.Name}});Object.defineProperty(nt,"CodeGen",{enumerable:!0,get:function(){return Ks.CodeGen}});var hz=Nl();Object.defineProperty(nt,"ValidationError",{enumerable:!0,get:function(){return hz.default}});var gz=va();Object.defineProperty(nt,"MissingRefError",{enumerable:!0,get:function(){return gz.default}})});var GT=w(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.formatNames=Tn.fastFormats=Tn.fullFormats=void 0;function En(e,t){return{validate:e,compare:t}}Tn.fullFormats={date:En(jT,kh),time:En(Eh(!0),Rh),"date-time":En(MT(!0),qT),"iso-time":En(Eh(),FT),"iso-date-time":En(MT(),UT),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:_z,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Pz,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:Sz,int32:{type:"number",validate:kz},int64:{type:"number",validate:Rz},float:{type:"number",validate:LT},double:{type:"number",validate:LT},password:!0,binary:!0};Tn.fastFormats={...Tn.fullFormats,date:En(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,kh),time:En(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Rh),"date-time":En(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,qT),"iso-time":En(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,FT),"iso-date-time":En(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,UT),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Tn.formatNames=Object.keys(Tn.fullFormats);function yz(e){return e%4===0&&(e%100!==0||e%400===0)}var vz=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,wz=[0,31,28,31,30,31,30,31,31,30,31,30,31];function jT(e){let t=vz.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],o=+t[3];return n>=1&&n<=12&&o>=1&&o<=(n===2&&yz(r)?29:wz[n])}function kh(e,t){if(e&&t)return e>t?1:e<t?-1:0}var Sh=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function Eh(e){return function(r){let n=Sh.exec(r);if(!n)return!1;let o=+n[1],s=+n[2],i=+n[3],a=n[4],c=n[5]==="-"?-1:1,l=+(n[6]||0),u=+(n[7]||0);if(l>23||u>59||e&&!a)return!1;if(o<=23&&s<=59&&i<60)return!0;let p=s-u*c,m=o-l*c-(p<0?1:0);return(m===23||m===-1)&&(p===59||p===-1)&&i<61}}function Rh(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),n=new Date("2020-01-01T"+t).valueOf();if(r&&n)return r-n}function FT(e,t){if(!(e&&t))return;let r=Sh.exec(e),n=Sh.exec(t);if(r&&n)return e=r[1]+r[2]+r[3],t=n[1]+n[2]+n[3],e>t?1:e<t?-1:0}var Th=/t|\s/i;function MT(e){let t=Eh(e);return function(n){let o=n.split(Th);return o.length===2&&jT(o[0])&&t(o[1])}}function qT(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),n=new Date(t).valueOf();if(r&&n)return r-n}function UT(e,t){if(!(e&&t))return;let[r,n]=e.split(Th),[o,s]=t.split(Th),i=kh(r,o);if(i!==void 0)return i||Rh(n,s)}var xz=/\/|:/,bz=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function _z(e){return xz.test(e)&&bz.test(e)}var DT=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function Sz(e){return DT.lastIndex=0,DT.test(e)}var Ez=-(2**31),Tz=2**31-1;function kz(e){return Number.isInteger(e)&&e<=Tz&&e>=Ez}function Rz(e){return Number.isInteger(e)}function LT(){return!0}var Iz=/[^\\]\\Z/;function Pz(e){if(Iz.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var La=w(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.regexpCode=je.getEsmExportName=je.getProperty=je.safeStringify=je.stringify=je.strConcat=je.addCodeArg=je.str=je._=je.nil=je._Code=je.Name=je.IDENTIFIER=je._CodeOrName=void 0;var Ma=class{};je._CodeOrName=Ma;je.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Xo=class extends Ma{constructor(t){if(super(),!je.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};je.Name=Xo;var zr=class extends Ma{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof Xo&&(r[n.str]=(r[n.str]||0)+1),r),{})}};je._Code=zr;je.nil=new zr("");function zT(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Ph(r,t[n]),r.push(e[++n]);return new zr(r)}je._=zT;var Ih=new zr("+");function BT(e,...t){let r=[Da(e[0])],n=0;for(;n<t.length;)r.push(Ih),Ph(r,t[n]),r.push(Ih,Da(e[++n]));return Az(r),new zr(r)}je.str=BT;function Ph(e,t){t instanceof zr?e.push(...t._items):t instanceof Xo?e.push(t):e.push(Oz(t))}je.addCodeArg=Ph;function Az(e){let t=1;for(;t<e.length-1;){if(e[t]===Ih){let r=Cz(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function Cz(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Xo||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Xo))return`"${e}${t.slice(1)}`}function $z(e,t){return t.emptyStr()?e:e.emptyStr()?t:BT`${e}${t}`}je.strConcat=$z;function Oz(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Da(Array.isArray(e)?e.join(","):e)}function Nz(e){return new zr(Da(e))}je.stringify=Nz;function Da(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}je.safeStringify=Da;function Mz(e){return typeof e=="string"&&je.IDENTIFIER.test(e)?new zr(`.${e}`):zT`[${e}]`}je.getProperty=Mz;function Dz(e){if(typeof e=="string"&&je.IDENTIFIER.test(e))return new zr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}je.getEsmExportName=Dz;function Lz(e){return new zr(e.toString())}je.regexpCode=Lz});var $h=w(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.ValueScope=xr.ValueScopeName=xr.Scope=xr.varKinds=xr.UsedValueState=void 0;var wr=La(),Ah=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},ru;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(ru||(xr.UsedValueState=ru={}));xr.varKinds={const:new wr.Name("const"),let:new wr.Name("let"),var:new wr.Name("var")};var nu=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof wr.Name?t:this.name(t)}name(t){return new wr.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};xr.Scope=nu;var ou=class extends wr.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,wr._)`.${new wr.Name(r)}[${n}]`}};xr.ValueScopeName=ou;var jz=(0,wr._)`\n`,Ch=class extends nu{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?jz:wr.nil}}get(){return this._scope}name(t){return new ou(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(t),{prefix:s}=o,i=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[s];if(a){let u=a.get(i);if(u)return u}else a=this._values[s]=new Map;a.set(i,o);let c=this._scope[s]||(this._scope[s]=[]),l=c.length;return c[l]=r.ref,o.setValue(r,{property:s,itemIndex:l}),o}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,wr._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(t,r,n={},o){let s=wr.nil;for(let i in t){let a=t[i];if(!a)continue;let c=n[i]=n[i]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,ru.Started);let u=r(l);if(u){let p=this.opts.es5?xr.varKinds.var:xr.varKinds.const;s=(0,wr._)`${s}${p} ${l} = ${u};${this.opts._n}`}else if(u=o?.(l))s=(0,wr._)`${s}${u}${this.opts._n}`;else throw new Ah(l);c.set(l,ru.Completed)})}return s}};xr.ValueScope=Ch});var ye=w(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.or=_e.and=_e.not=_e.CodeGen=_e.operators=_e.varKinds=_e.ValueScopeName=_e.ValueScope=_e.Scope=_e.Name=_e.regexpCode=_e.stringify=_e.getProperty=_e.nil=_e.strConcat=_e.str=_e._=void 0;var Ae=La(),cn=$h(),go=La();Object.defineProperty(_e,"_",{enumerable:!0,get:function(){return go._}});Object.defineProperty(_e,"str",{enumerable:!0,get:function(){return go.str}});Object.defineProperty(_e,"strConcat",{enumerable:!0,get:function(){return go.strConcat}});Object.defineProperty(_e,"nil",{enumerable:!0,get:function(){return go.nil}});Object.defineProperty(_e,"getProperty",{enumerable:!0,get:function(){return go.getProperty}});Object.defineProperty(_e,"stringify",{enumerable:!0,get:function(){return go.stringify}});Object.defineProperty(_e,"regexpCode",{enumerable:!0,get:function(){return go.regexpCode}});Object.defineProperty(_e,"Name",{enumerable:!0,get:function(){return go.Name}});var cu=$h();Object.defineProperty(_e,"Scope",{enumerable:!0,get:function(){return cu.Scope}});Object.defineProperty(_e,"ValueScope",{enumerable:!0,get:function(){return cu.ValueScope}});Object.defineProperty(_e,"ValueScopeName",{enumerable:!0,get:function(){return cu.ValueScopeName}});Object.defineProperty(_e,"varKinds",{enumerable:!0,get:function(){return cu.varKinds}});_e.operators={GT:new Ae._Code(">"),GTE:new Ae._Code(">="),LT:new Ae._Code("<"),LTE:new Ae._Code("<="),EQ:new Ae._Code("==="),NEQ:new Ae._Code("!=="),NOT:new Ae._Code("!"),OR:new Ae._Code("||"),AND:new Ae._Code("&&"),ADD:new Ae._Code("+")};var Un=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Oh=class extends Un{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?cn.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=Js(this.rhs,t,r)),this}get names(){return this.rhs instanceof Ae._CodeOrName?this.rhs.names:{}}},su=class extends Un{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof Ae.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Js(this.rhs,t,r),this}get names(){let t=this.lhs instanceof Ae.Name?{}:{...this.lhs.names};return au(t,this.rhs)}},Nh=class extends su{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},Mh=class extends Un{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Dh=class extends Un{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},Lh=class extends Un{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},jh=class extends Un{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=Js(this.code,t,r),this}get names(){return this.code instanceof Ae._CodeOrName?this.code.names:{}}},ja=class extends Un{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,o=n.length;for(;o--;){let s=n[o];s.optimizeNames(t,r)||(Fz(t,s.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>es(t,r.names),{})}},Gn=class extends ja{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Fh=class extends ja{},Ys=class extends Gn{};Ys.kind="else";var Qo=class e extends Gn{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Ys(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(HT(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=Js(this.condition,t,r),this}get names(){let t=super.names;return au(t,this.condition),this.else&&es(t,this.else.names),t}};Qo.kind="if";var Zo=class extends Gn{};Zo.kind="for";var qh=class extends Zo{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=Js(this.iteration,t,r),this}get names(){return es(super.names,this.iteration.names)}},Uh=class extends Zo{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?cn.varKinds.var:this.varKind,{name:n,from:o,to:s}=this;return`for(${r} ${n}=${o}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=au(super.names,this.from);return au(t,this.to)}},iu=class extends Zo{constructor(t,r,n,o){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=o}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=Js(this.iterable,t,r),this}get names(){return es(super.names,this.iterable.names)}},Fa=class extends Gn{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};Fa.kind="func";var qa=class extends ja{render(t){return"return "+super.render(t)}};qa.kind="return";var Gh=class extends Gn{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,o;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(o=this.finally)===null||o===void 0||o.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&es(t,this.catch.names),this.finally&&es(t,this.finally.names),t}},Ua=class extends Gn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Ua.kind="catch";var Ga=class extends Gn{render(t){return"finally"+super.render(t)}};Ga.kind="finally";var zh=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
23
- `:""},this._extScope=t,this._scope=new cn.Scope({parent:t}),this._nodes=[new Fh]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,o){let s=this._scope.toName(r);return n!==void 0&&o&&(this._constants[s.str]=n),this._leafNode(new Oh(t,s,n)),s}const(t,r,n){return this._def(cn.varKinds.const,t,r,n)}let(t,r,n){return this._def(cn.varKinds.let,t,r,n)}var(t,r,n){return this._def(cn.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new su(t,r,n))}add(t,r){return this._leafNode(new Nh(t,_e.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==Ae.nil&&this._leafNode(new jh(t)),this}object(...t){let r=["{"];for(let[n,o]of t)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,Ae.addCodeArg)(r,o));return r.push("}"),new Ae._Code(r)}if(t,r,n){if(this._blockNode(new Qo(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Qo(t))}else(){return this._elseNode(new Ys)}endIf(){return this._endBlockNode(Qo,Ys)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new qh(t),r)}forRange(t,r,n,o,s=this.opts.es5?cn.varKinds.var:cn.varKinds.let){let i=this._scope.toName(t);return this._for(new Uh(s,i,r,n),()=>o(i))}forOf(t,r,n,o=cn.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let i=r instanceof Ae.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,Ae._)`${i}.length`,a=>{this.var(s,(0,Ae._)`${i}[${a}]`),n(s)})}return this._for(new iu("of",o,s,r),()=>n(s))}forIn(t,r,n,o=this.opts.es5?cn.varKinds.var:cn.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,Ae._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new iu("in",o,s,r),()=>n(s))}endFor(){return this._endBlockNode(Zo)}label(t){return this._leafNode(new Mh(t))}break(t){return this._leafNode(new Dh(t))}return(t){let r=new qa;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(qa)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new Gh;if(this._blockNode(o),this.code(t),r){let s=this.name("e");this._currNode=o.catch=new Ua(s),r(s)}return n&&(this._currNode=o.finally=new Ga,this.code(n)),this._endBlockNode(Ua,Ga)}throw(t){return this._leafNode(new Lh(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=Ae.nil,n,o){return this._blockNode(new Fa(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(Fa)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Qo))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};_e.CodeGen=zh;function es(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function au(e,t){return t instanceof Ae._CodeOrName?es(e,t.names):e}function Js(e,t,r){if(e instanceof Ae.Name)return n(e);if(!o(e))return e;return new Ae._Code(e._items.reduce((s,i)=>(i instanceof Ae.Name&&(i=n(i)),i instanceof Ae._Code?s.push(...i._items):s.push(i),s),[]));function n(s){let i=r[s.str];return i===void 0||t[s.str]!==1?s:(delete t[s.str],i)}function o(s){return s instanceof Ae._Code&&s._items.some(i=>i instanceof Ae.Name&&t[i.str]===1&&r[i.str]!==void 0)}}function Fz(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function HT(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Ae._)`!${Bh(e)}`}_e.not=HT;var qz=VT(_e.operators.AND);function Uz(...e){return e.reduce(qz)}_e.and=Uz;var Gz=VT(_e.operators.OR);function zz(...e){return e.reduce(Gz)}_e.or=zz;function VT(e){return(t,r)=>t===Ae.nil?r:r===Ae.nil?t:(0,Ae._)`${Bh(t)} ${e} ${Bh(r)}`}function Bh(e){return e instanceof Ae.Name?e:(0,Ae._)`(${e})`}});var Ne=w(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.checkStrictMode=ke.getErrorPath=ke.Type=ke.useFunc=ke.setEvaluated=ke.evaluatedPropsToName=ke.mergeEvaluated=ke.eachItem=ke.unescapeJsonPointer=ke.escapeJsonPointer=ke.escapeFragment=ke.unescapeFragment=ke.schemaRefOrVal=ke.schemaHasRulesButRef=ke.schemaHasRules=ke.checkUnknownRules=ke.alwaysValidSchema=ke.toHash=void 0;var Xe=ye(),Bz=La();function Hz(e){let t={};for(let r of e)t[r]=!0;return t}ke.toHash=Hz;function Vz(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(YT(e,t),!JT(t,e.self.RULES.all))}ke.alwaysValidSchema=Vz;function YT(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let o=n.RULES.keywords;for(let s in t)o[s]||ZT(e,`unknown keyword: "${s}"`)}ke.checkUnknownRules=YT;function JT(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}ke.schemaHasRules=JT;function Wz(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}ke.schemaHasRulesButRef=Wz;function Kz({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Xe._)`${r}`}return(0,Xe._)`${e}${t}${(0,Xe.getProperty)(n)}`}ke.schemaRefOrVal=Kz;function Yz(e){return XT(decodeURIComponent(e))}ke.unescapeFragment=Yz;function Jz(e){return encodeURIComponent(Vh(e))}ke.escapeFragment=Jz;function Vh(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ke.escapeJsonPointer=Vh;function XT(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ke.unescapeJsonPointer=XT;function Xz(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}ke.eachItem=Xz;function WT({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,s,i,a)=>{let c=i===void 0?s:i instanceof Xe.Name?(s instanceof Xe.Name?e(o,s,i):t(o,s,i),i):s instanceof Xe.Name?(t(o,i,s),s):r(s,i);return a===Xe.Name&&!(c instanceof Xe.Name)?n(o,c):c}}ke.mergeEvaluated={props:WT({mergeNames:(e,t,r)=>e.if((0,Xe._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Xe._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Xe._)`${r} || {}`).code((0,Xe._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Xe._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Xe._)`${r} || {}`),Wh(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:QT}),items:WT({mergeNames:(e,t,r)=>e.if((0,Xe._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Xe._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Xe._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Xe._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function QT(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Xe._)`{}`);return t!==void 0&&Wh(e,r,t),r}ke.evaluatedPropsToName=QT;function Wh(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Xe._)`${t}${(0,Xe.getProperty)(n)}`,!0))}ke.setEvaluated=Wh;var KT={};function Qz(e,t){return e.scopeValue("func",{ref:t,code:KT[t.code]||(KT[t.code]=new Bz._Code(t.code))})}ke.useFunc=Qz;var Hh;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Hh||(ke.Type=Hh={}));function Zz(e,t,r){if(e instanceof Xe.Name){let n=t===Hh.Num;return r?n?(0,Xe._)`"[" + ${e} + "]"`:(0,Xe._)`"['" + ${e} + "']"`:n?(0,Xe._)`"/" + ${e}`:(0,Xe._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Xe.getProperty)(e).toString():"/"+Vh(e)}ke.getErrorPath=Zz;function ZT(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}ke.checkStrictMode=ZT});var zn=w(Kh=>{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});var Yt=ye(),eB={data:new Yt.Name("data"),valCxt:new Yt.Name("valCxt"),instancePath:new Yt.Name("instancePath"),parentData:new Yt.Name("parentData"),parentDataProperty:new Yt.Name("parentDataProperty"),rootData:new Yt.Name("rootData"),dynamicAnchors:new Yt.Name("dynamicAnchors"),vErrors:new Yt.Name("vErrors"),errors:new Yt.Name("errors"),this:new Yt.Name("this"),self:new Yt.Name("self"),scope:new Yt.Name("scope"),json:new Yt.Name("json"),jsonPos:new Yt.Name("jsonPos"),jsonLen:new Yt.Name("jsonLen"),jsonPart:new Yt.Name("jsonPart")};Kh.default=eB});var za=w(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.extendErrors=Jt.resetErrorsCount=Jt.reportExtraError=Jt.reportError=Jt.keyword$DataError=Jt.keywordError=void 0;var Me=ye(),lu=Ne(),or=zn();Jt.keywordError={message:({keyword:e})=>(0,Me.str)`must pass "${e}" keyword validation`};Jt.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,Me.str)`"${e}" keyword must be ${t} ($data)`:(0,Me.str)`"${e}" keyword is invalid ($data)`};function tB(e,t=Jt.keywordError,r,n){let{it:o}=e,{gen:s,compositeRule:i,allErrors:a}=o,c=rk(e,t,r);n??(i||a)?ek(s,c):tk(o,(0,Me._)`[${c}]`)}Jt.reportError=tB;function rB(e,t=Jt.keywordError,r){let{it:n}=e,{gen:o,compositeRule:s,allErrors:i}=n,a=rk(e,t,r);ek(o,a),s||i||tk(n,or.default.vErrors)}Jt.reportExtraError=rB;function nB(e,t){e.assign(or.default.errors,t),e.if((0,Me._)`${or.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,Me._)`${or.default.vErrors}.length`,t),()=>e.assign(or.default.vErrors,null)))}Jt.resetErrorsCount=nB;function oB({gen:e,keyword:t,schemaValue:r,data:n,errsCount:o,it:s}){if(o===void 0)throw new Error("ajv implementation error");let i=e.name("err");e.forRange("i",o,or.default.errors,a=>{e.const(i,(0,Me._)`${or.default.vErrors}[${a}]`),e.if((0,Me._)`${i}.instancePath === undefined`,()=>e.assign((0,Me._)`${i}.instancePath`,(0,Me.strConcat)(or.default.instancePath,s.errorPath))),e.assign((0,Me._)`${i}.schemaPath`,(0,Me.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,Me._)`${i}.schema`,r),e.assign((0,Me._)`${i}.data`,n))})}Jt.extendErrors=oB;function ek(e,t){let r=e.const("err",t);e.if((0,Me._)`${or.default.vErrors} === null`,()=>e.assign(or.default.vErrors,(0,Me._)`[${r}]`),(0,Me._)`${or.default.vErrors}.push(${r})`),e.code((0,Me._)`${or.default.errors}++`)}function tk(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,Me._)`new ${e.ValidationError}(${t})`):(r.assign((0,Me._)`${n}.errors`,t),r.return(!1))}var ts={keyword:new Me.Name("keyword"),schemaPath:new Me.Name("schemaPath"),params:new Me.Name("params"),propertyName:new Me.Name("propertyName"),message:new Me.Name("message"),schema:new Me.Name("schema"),parentSchema:new Me.Name("parentSchema")};function rk(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,Me._)`{}`:sB(e,t,r)}function sB(e,t,r={}){let{gen:n,it:o}=e,s=[iB(o,r),aB(e,r)];return cB(e,t,s),n.object(...s)}function iB({errorPath:e},{instancePath:t}){let r=t?(0,Me.str)`${e}${(0,lu.getErrorPath)(t,lu.Type.Str)}`:e;return[or.default.instancePath,(0,Me.strConcat)(or.default.instancePath,r)]}function aB({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,Me.str)`${t}/${e}`;return r&&(o=(0,Me.str)`${o}${(0,lu.getErrorPath)(r,lu.Type.Str)}`),[ts.schemaPath,o]}function cB(e,{params:t,message:r},n){let{keyword:o,data:s,schemaValue:i,it:a}=e,{opts:c,propertyName:l,topSchemaRef:u,schemaPath:p}=a;n.push([ts.keyword,o],[ts.params,typeof t=="function"?t(e):t||(0,Me._)`{}`]),c.messages&&n.push([ts.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([ts.schema,i],[ts.parentSchema,(0,Me._)`${u}${p}`],[or.default.data,s]),l&&n.push([ts.propertyName,l])}});var ok=w(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.boolOrEmptySchema=Xs.topBoolOrEmptySchema=void 0;var lB=za(),uB=ye(),pB=zn(),dB={message:"boolean schema is false"};function fB(e){let{gen:t,schema:r,validateName:n}=e;r===!1?nk(e,!1):typeof r=="object"&&r.$async===!0?t.return(pB.default.data):(t.assign((0,uB._)`${n}.errors`,null),t.return(!0))}Xs.topBoolOrEmptySchema=fB;function mB(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),nk(e)):r.var(t,!0)}Xs.boolOrEmptySchema=mB;function nk(e,t){let{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,lB.reportError)(o,dB,void 0,t)}});var Yh=w(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.getRules=Qs.isJSONType=void 0;var hB=["string","number","integer","boolean","null","object","array"],gB=new Set(hB);function yB(e){return typeof e=="string"&&gB.has(e)}Qs.isJSONType=yB;function vB(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Qs.getRules=vB});var Jh=w(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.shouldUseRule=yo.shouldUseGroup=yo.schemaHasRulesForType=void 0;function wB({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&sk(e,n)}yo.schemaHasRulesForType=wB;function sk(e,t){return t.rules.some(r=>ik(e,r))}yo.shouldUseGroup=sk;function ik(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}yo.shouldUseRule=ik});var Ba=w(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.reportTypeError=Xt.checkDataTypes=Xt.checkDataType=Xt.coerceAndCheckDataType=Xt.getJSONTypes=Xt.getSchemaTypes=Xt.DataType=void 0;var xB=Yh(),bB=Jh(),_B=za(),ge=ye(),ak=Ne(),Zs;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Zs||(Xt.DataType=Zs={}));function SB(e){let t=ck(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}Xt.getSchemaTypes=SB;function ck(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(xB.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}Xt.getJSONTypes=ck;function EB(e,t){let{gen:r,data:n,opts:o}=e,s=TB(t,o.coerceTypes),i=t.length>0&&!(s.length===0&&t.length===1&&(0,bB.schemaHasRulesForType)(e,t[0]));if(i){let a=Qh(t,n,o.strictNumbers,Zs.Wrong);r.if(a,()=>{s.length?kB(e,t,s):Zh(e)})}return i}Xt.coerceAndCheckDataType=EB;var lk=new Set(["string","number","integer","boolean","null"]);function TB(e,t){return t?e.filter(r=>lk.has(r)||t==="array"&&r==="array"):[]}function kB(e,t,r){let{gen:n,data:o,opts:s}=e,i=n.let("dataType",(0,ge._)`typeof ${o}`),a=n.let("coerced",(0,ge._)`undefined`);s.coerceTypes==="array"&&n.if((0,ge._)`${i} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,ge._)`${o}[0]`).assign(i,(0,ge._)`typeof ${o}`).if(Qh(t,o,s.strictNumbers),()=>n.assign(a,o))),n.if((0,ge._)`${a} !== undefined`);for(let l of r)(lk.has(l)||l==="array"&&s.coerceTypes==="array")&&c(l);n.else(),Zh(e),n.endIf(),n.if((0,ge._)`${a} !== undefined`,()=>{n.assign(o,a),RB(e,a)});function c(l){switch(l){case"string":n.elseIf((0,ge._)`${i} == "number" || ${i} == "boolean"`).assign(a,(0,ge._)`"" + ${o}`).elseIf((0,ge._)`${o} === null`).assign(a,(0,ge._)`""`);return;case"number":n.elseIf((0,ge._)`${i} == "boolean" || ${o} === null
24
- || (${i} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,ge._)`+${o}`);return;case"integer":n.elseIf((0,ge._)`${i} === "boolean" || ${o} === null
25
- || (${i} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,ge._)`+${o}`);return;case"boolean":n.elseIf((0,ge._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,ge._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,ge._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,ge._)`${i} === "string" || ${i} === "number"
26
- || ${i} === "boolean" || ${o} === null`).assign(a,(0,ge._)`[${o}]`)}}}function RB({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ge._)`${t} !== undefined`,()=>e.assign((0,ge._)`${t}[${r}]`,n))}function Xh(e,t,r,n=Zs.Correct){let o=n===Zs.Correct?ge.operators.EQ:ge.operators.NEQ,s;switch(e){case"null":return(0,ge._)`${t} ${o} null`;case"array":s=(0,ge._)`Array.isArray(${t})`;break;case"object":s=(0,ge._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=i((0,ge._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=i();break;default:return(0,ge._)`typeof ${t} ${o} ${e}`}return n===Zs.Correct?s:(0,ge.not)(s);function i(a=ge.nil){return(0,ge.and)((0,ge._)`typeof ${t} == "number"`,a,r?(0,ge._)`isFinite(${t})`:ge.nil)}}Xt.checkDataType=Xh;function Qh(e,t,r,n){if(e.length===1)return Xh(e[0],t,r,n);let o,s=(0,ak.toHash)(e);if(s.array&&s.object){let i=(0,ge._)`typeof ${t} != "object"`;o=s.null?i:(0,ge._)`!${t} || ${i}`,delete s.null,delete s.array,delete s.object}else o=ge.nil;s.number&&delete s.integer;for(let i in s)o=(0,ge.and)(o,Xh(i,t,r,n));return o}Xt.checkDataTypes=Qh;var IB={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,ge._)`{type: ${e}}`:(0,ge._)`{type: ${t}}`};function Zh(e){let t=PB(e);(0,_B.reportError)(t,IB)}Xt.reportTypeError=Zh;function PB(e){let{gen:t,data:r,schema:n}=e,o=(0,ak.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var pk=w(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.assignDefaults=void 0;var ei=ye(),AB=Ne();function CB(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)uk(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,s)=>uk(e,s,o.default))}uu.assignDefaults=CB;function uk(e,t,r){let{gen:n,compositeRule:o,data:s,opts:i}=e;if(r===void 0)return;let a=(0,ei._)`${s}${(0,ei.getProperty)(t)}`;if(o){(0,AB.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,ei._)`${a} === undefined`;i.useDefaults==="empty"&&(c=(0,ei._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,ei._)`${a} = ${(0,ei.stringify)(r)}`)}});var Br=w(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.validateUnion=Ve.validateArray=Ve.usePattern=Ve.callValidateCode=Ve.schemaProperties=Ve.allSchemaProperties=Ve.noPropertyInData=Ve.propertyInData=Ve.isOwnProperty=Ve.hasPropFunc=Ve.reportMissingProp=Ve.checkMissingProp=Ve.checkReportMissingProp=void 0;var ot=ye(),eg=Ne(),vo=zn(),$B=Ne();function OB(e,t){let{gen:r,data:n,it:o}=e;r.if(rg(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,ot._)`${t}`},!0),e.error()})}Ve.checkReportMissingProp=OB;function NB({gen:e,data:t,it:{opts:r}},n,o){return(0,ot.or)(...n.map(s=>(0,ot.and)(rg(e,t,s,r.ownProperties),(0,ot._)`${o} = ${s}`)))}Ve.checkMissingProp=NB;function MB(e,t){e.setParams({missingProperty:t},!0),e.error()}Ve.reportMissingProp=MB;function dk(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ot._)`Object.prototype.hasOwnProperty`})}Ve.hasPropFunc=dk;function tg(e,t,r){return(0,ot._)`${dk(e)}.call(${t}, ${r})`}Ve.isOwnProperty=tg;function DB(e,t,r,n){let o=(0,ot._)`${t}${(0,ot.getProperty)(r)} !== undefined`;return n?(0,ot._)`${o} && ${tg(e,t,r)}`:o}Ve.propertyInData=DB;function rg(e,t,r,n){let o=(0,ot._)`${t}${(0,ot.getProperty)(r)} === undefined`;return n?(0,ot.or)(o,(0,ot.not)(tg(e,t,r))):o}Ve.noPropertyInData=rg;function fk(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ve.allSchemaProperties=fk;function LB(e,t){return fk(t).filter(r=>!(0,eg.alwaysValidSchema)(e,t[r]))}Ve.schemaProperties=LB;function jB({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:s},it:i},a,c,l){let u=l?(0,ot._)`${e}, ${t}, ${n}${o}`:t,p=[[vo.default.instancePath,(0,ot.strConcat)(vo.default.instancePath,s)],[vo.default.parentData,i.parentData],[vo.default.parentDataProperty,i.parentDataProperty],[vo.default.rootData,vo.default.rootData]];i.opts.dynamicRef&&p.push([vo.default.dynamicAnchors,vo.default.dynamicAnchors]);let m=(0,ot._)`${u}, ${r.object(...p)}`;return c!==ot.nil?(0,ot._)`${a}.call(${c}, ${m})`:(0,ot._)`${a}(${m})`}Ve.callValidateCode=jB;var FB=(0,ot._)`new RegExp`;function qB({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,s=o(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,ot._)`${o.code==="new RegExp"?FB:(0,$B.useFunc)(e,o)}(${r}, ${n})`})}Ve.usePattern=qB;function UB(e){let{gen:t,data:r,keyword:n,it:o}=e,s=t.name("valid");if(o.allErrors){let a=t.let("valid",!0);return i(()=>t.assign(a,!1)),a}return t.var(s,!0),i(()=>t.break()),s;function i(a){let c=t.const("len",(0,ot._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:eg.Type.Num},s),t.if((0,ot.not)(s),a)})}}Ve.validateArray=UB;function GB(e){let{gen:t,schema:r,keyword:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,eg.alwaysValidSchema)(o,c))&&!o.opts.unevaluated)return;let i=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let u=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},a);t.assign(i,(0,ot._)`${i} || ${a}`),e.mergeValidEvaluated(u,a)||t.if((0,ot.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Ve.validateUnion=GB});var gk=w(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.validateKeywordUsage=kn.validSchemaType=kn.funcKeywordCode=kn.macroKeywordCode=void 0;var sr=ye(),rs=zn(),zB=Br(),BB=za();function HB(e,t){let{gen:r,keyword:n,schema:o,parentSchema:s,it:i}=e,a=t.macro.call(i.self,o,s,i),c=hk(r,n,a);i.opts.validateSchema!==!1&&i.self.validateSchema(a,!0);let l=r.name("valid");e.subschema({schema:a,schemaPath:sr.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}kn.macroKeywordCode=HB;function VB(e,t){var r;let{gen:n,keyword:o,schema:s,parentSchema:i,$data:a,it:c}=e;KB(c,t);let l=!a&&t.compile?t.compile.call(c.self,s,i,c):t.validate,u=hk(n,o,l),p=n.let("valid");e.block$data(p,m),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function m(){if(t.errors===!1)g(),t.modifying&&mk(e),v(()=>e.error());else{let x=t.async?h():f();t.modifying&&mk(e),v(()=>WB(e,x))}}function h(){let x=n.let("ruleErrs",null);return n.try(()=>g((0,sr._)`await `),I=>n.assign(p,!1).if((0,sr._)`${I} instanceof ${c.ValidationError}`,()=>n.assign(x,(0,sr._)`${I}.errors`),()=>n.throw(I))),x}function f(){let x=(0,sr._)`${u}.errors`;return n.assign(x,null),g(sr.nil),x}function g(x=t.async?(0,sr._)`await `:sr.nil){let I=c.opts.passContext?rs.default.this:rs.default.self,k=!("compile"in t&&!a||t.schema===!1);n.assign(p,(0,sr._)`${x}${(0,zB.callValidateCode)(e,u,I,k)}`,t.modifying)}function v(x){var I;n.if((0,sr.not)((I=t.valid)!==null&&I!==void 0?I:p),x)}}kn.funcKeywordCode=VB;function mk(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,sr._)`${n.parentData}[${n.parentDataProperty}]`))}function WB(e,t){let{gen:r}=e;r.if((0,sr._)`Array.isArray(${t})`,()=>{r.assign(rs.default.vErrors,(0,sr._)`${rs.default.vErrors} === null ? ${t} : ${rs.default.vErrors}.concat(${t})`).assign(rs.default.errors,(0,sr._)`${rs.default.vErrors}.length`),(0,BB.extendErrors)(e)},()=>e.error())}function KB({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function hk(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,sr.stringify)(r)})}function YB(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}kn.validSchemaType=YB;function JB({schema:e,opts:t,self:r,errSchemaPath:n},o,s){if(Array.isArray(o.keyword)?!o.keyword.includes(s):o.keyword!==s)throw new Error("ajv implementation error");let i=o.dependencies;if(i?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${s}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[s])){let c=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}kn.validateKeywordUsage=JB});var vk=w(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.extendSubschemaMode=wo.extendSubschemaData=wo.getSubschema=void 0;var Rn=ye(),yk=Ne();function XB(e,{keyword:t,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:s,topSchemaRef:i}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,Rn._)`${e.schemaPath}${(0,Rn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Rn._)`${e.schemaPath}${(0,Rn.getProperty)(t)}${(0,Rn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,yk.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||s===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:i,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}wo.getSubschema=XB;function QB(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:s,propertyName:i}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:l,dataPathArr:u,opts:p}=t,m=a.let("data",(0,Rn._)`${t.data}${(0,Rn.getProperty)(r)}`,!0);c(m),e.errorPath=(0,Rn.str)`${l}${(0,yk.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,Rn._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(o!==void 0){let l=o instanceof Rn.Name?o:a.let("data",o,!0);c(l),i!==void 0&&(e.propertyName=i)}s&&(e.dataTypes=s);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}wo.extendSubschemaData=QB;function ZB(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:s}){n!==void 0&&(e.compositeRule=n),o!==void 0&&(e.createErrors=o),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}wo.extendSubschemaMode=ZB});var xk=w((uie,wk)=>{"use strict";var xo=wk.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},o=r.post||function(){};pu(t,n,o,e,"",e)};xo.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};xo.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};xo.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};xo.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function pu(e,t,r,n,o,s,i,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,o,s,i,a,c,l);for(var u in n){var p=n[u];if(Array.isArray(p)){if(u in xo.arrayKeywords)for(var m=0;m<p.length;m++)pu(e,t,r,p[m],o+"/"+u+"/"+m,s,o,u,n,m)}else if(u in xo.propsKeywords){if(p&&typeof p=="object")for(var h in p)pu(e,t,r,p[h],o+"/"+u+"/"+eH(h),s,o,u,n,h)}else(u in xo.keywords||e.allKeys&&!(u in xo.skipKeywords))&&pu(e,t,r,p,o+"/"+u,s,o,u,n)}r(n,o,s,i,a,c,l)}}function eH(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Ha=w(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.getSchemaRefs=br.resolveUrl=br.normalizeId=br._getFullPath=br.getFullPath=br.inlineRef=void 0;var tH=Ne(),rH=fa(),nH=xk(),oH=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function sH(e,t=!0){return typeof e=="boolean"?!0:t===!0?!ng(e):t?bk(e)<=t:!1}br.inlineRef=sH;var iH=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ng(e){for(let t in e){if(iH.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(ng)||typeof r=="object"&&ng(r))return!0}return!1}function bk(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!oH.has(r)&&(typeof e[r]=="object"&&(0,tH.eachItem)(e[r],n=>t+=bk(n)),t===1/0))return 1/0}return t}function _k(e,t="",r){r!==!1&&(t=ti(t));let n=e.parse(t);return Sk(e,n)}br.getFullPath=_k;function Sk(e,t){return e.serialize(t).split("#")[0]+"#"}br._getFullPath=Sk;var aH=/#\/?$/;function ti(e){return e?e.replace(aH,""):""}br.normalizeId=ti;function cH(e,t,r){return r=ti(r),e.resolve(t,r)}br.resolveUrl=cH;var lH=/^[a-z_][-a-z0-9._]*$/i;function uH(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=ti(e[r]||t),s={"":o},i=_k(n,o,!1),a={},c=new Set;return nH(e,{allKeys:!0},(p,m,h,f)=>{if(f===void 0)return;let g=i+m,v=s[f];typeof p[r]=="string"&&(v=x.call(this,p[r])),I.call(this,p.$anchor),I.call(this,p.$dynamicAnchor),s[m]=v;function x(k){let P=this.opts.uriResolver.resolve;if(k=ti(v?P(v,k):k),c.has(k))throw u(k);c.add(k);let R=this.refs[k];return typeof R=="string"&&(R=this.refs[R]),typeof R=="object"?l(p,R.schema,k):k!==ti(g)&&(k[0]==="#"?(l(p,a[k],k),a[k]=p):this.refs[k]=g),k}function I(k){if(typeof k=="string"){if(!lH.test(k))throw new Error(`invalid anchor "${k}"`);x.call(this,`#${k}`)}}}),a;function l(p,m,h){if(m!==void 0&&!rH(p,m))throw u(h)}function u(p){return new Error(`reference "${p}" resolves to more than one schema`)}}br.getSchemaRefs=uH});var Ka=w(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.getData=bo.KeywordCxt=bo.validateFunctionCode=void 0;var Ik=ok(),Ek=Ba(),sg=Jh(),du=Ba(),pH=pk(),Wa=gk(),og=vk(),ee=ye(),ie=zn(),dH=Ha(),Bn=Ne(),Va=za();function fH(e){if(Ck(e)&&($k(e),Ak(e))){gH(e);return}Pk(e,()=>(0,Ik.topBoolOrEmptySchema)(e))}bo.validateFunctionCode=fH;function Pk({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},s){o.code.es5?e.func(t,(0,ee._)`${ie.default.data}, ${ie.default.valCxt}`,n.$async,()=>{e.code((0,ee._)`"use strict"; ${Tk(r,o)}`),hH(e,o),e.code(s)}):e.func(t,(0,ee._)`${ie.default.data}, ${mH(o)}`,n.$async,()=>e.code(Tk(r,o)).code(s))}function mH(e){return(0,ee._)`{${ie.default.instancePath}="", ${ie.default.parentData}, ${ie.default.parentDataProperty}, ${ie.default.rootData}=${ie.default.data}${e.dynamicRef?(0,ee._)`, ${ie.default.dynamicAnchors}={}`:ee.nil}}={}`}function hH(e,t){e.if(ie.default.valCxt,()=>{e.var(ie.default.instancePath,(0,ee._)`${ie.default.valCxt}.${ie.default.instancePath}`),e.var(ie.default.parentData,(0,ee._)`${ie.default.valCxt}.${ie.default.parentData}`),e.var(ie.default.parentDataProperty,(0,ee._)`${ie.default.valCxt}.${ie.default.parentDataProperty}`),e.var(ie.default.rootData,(0,ee._)`${ie.default.valCxt}.${ie.default.rootData}`),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,ee._)`${ie.default.valCxt}.${ie.default.dynamicAnchors}`)},()=>{e.var(ie.default.instancePath,(0,ee._)`""`),e.var(ie.default.parentData,(0,ee._)`undefined`),e.var(ie.default.parentDataProperty,(0,ee._)`undefined`),e.var(ie.default.rootData,ie.default.data),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,ee._)`{}`)})}function gH(e){let{schema:t,opts:r,gen:n}=e;Pk(e,()=>{r.$comment&&t.$comment&&Nk(e),bH(e),n.let(ie.default.vErrors,null),n.let(ie.default.errors,0),r.unevaluated&&yH(e),Ok(e),EH(e)})}function yH(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,ee._)`${r}.evaluated`),t.if((0,ee._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,ee._)`${e.evaluated}.props`,(0,ee._)`undefined`)),t.if((0,ee._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,ee._)`${e.evaluated}.items`,(0,ee._)`undefined`))}function Tk(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,ee._)`/*# sourceURL=${r} */`:ee.nil}function vH(e,t){if(Ck(e)&&($k(e),Ak(e))){wH(e,t);return}(0,Ik.boolOrEmptySchema)(e,t)}function Ak({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function Ck(e){return typeof e.schema!="boolean"}function wH(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&Nk(e),_H(e),SH(e);let s=n.const("_errs",ie.default.errors);Ok(e,s),n.var(t,(0,ee._)`${s} === ${ie.default.errors}`)}function $k(e){(0,Bn.checkUnknownRules)(e),xH(e)}function Ok(e,t){if(e.opts.jtd)return kk(e,[],!1,t);let r=(0,Ek.getSchemaTypes)(e.schema),n=(0,Ek.coerceAndCheckDataType)(e,r);kk(e,r,!n,t)}function xH(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Bn.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function bH(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Bn.checkStrictMode)(e,"default is ignored in the schema root")}function _H(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,dH.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function SH(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function Nk({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let s=r.$comment;if(o.$comment===!0)e.code((0,ee._)`${ie.default.self}.logger.log(${s})`);else if(typeof o.$comment=="function"){let i=(0,ee.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,ee._)`${ie.default.self}.opts.$comment(${s}, ${i}, ${a}.schema)`)}}function EH(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:s}=e;r.$async?t.if((0,ee._)`${ie.default.errors} === 0`,()=>t.return(ie.default.data),()=>t.throw((0,ee._)`new ${o}(${ie.default.vErrors})`)):(t.assign((0,ee._)`${n}.errors`,ie.default.vErrors),s.unevaluated&&TH(e),t.return((0,ee._)`${ie.default.errors} === 0`))}function TH({gen:e,evaluated:t,props:r,items:n}){r instanceof ee.Name&&e.assign((0,ee._)`${t}.props`,r),n instanceof ee.Name&&e.assign((0,ee._)`${t}.items`,n)}function kk(e,t,r,n){let{gen:o,schema:s,data:i,allErrors:a,opts:c,self:l}=e,{RULES:u}=l;if(s.$ref&&(c.ignoreKeywordsWithRef||!(0,Bn.schemaHasRulesButRef)(s,u))){o.block(()=>Dk(e,"$ref",u.all.$ref.definition));return}c.jtd||kH(e,t),o.block(()=>{for(let m of u.rules)p(m);p(u.post)});function p(m){(0,sg.shouldUseGroup)(s,m)&&(m.type?(o.if((0,du.checkDataType)(m.type,i,c.strictNumbers)),Rk(e,m),t.length===1&&t[0]===m.type&&r&&(o.else(),(0,du.reportTypeError)(e)),o.endIf()):Rk(e,m),a||o.if((0,ee._)`${ie.default.errors} === ${n||0}`))}}function Rk(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,pH.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,sg.shouldUseRule)(n,s)&&Dk(e,s.keyword,s.definition,t.type)})}function kH(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(RH(e,t),e.opts.allowUnionTypes||IH(e,t),PH(e,e.dataTypes))}function RH(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Mk(e.dataTypes,r)||ig(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),CH(e,t)}}function IH(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&ig(e,"use allowUnionTypes to allow union type keyword")}function PH(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,sg.shouldUseRule)(e.schema,o)){let{type:s}=o.definition;s.length&&!s.some(i=>AH(t,i))&&ig(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function AH(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function Mk(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function CH(e,t){let r=[];for(let n of e.dataTypes)Mk(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function ig(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Bn.checkStrictMode)(e,t,e.opts.strictTypes)}var fu=class{constructor(t,r,n){if((0,Wa.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Bn.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",Lk(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Wa.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",ie.default.errors))}result(t,r,n){this.failResult((0,ee.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,ee.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,ee._)`${r} !== undefined && (${(0,ee.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Va.reportExtraError:Va.reportError)(this,this.def.error,r)}$dataError(){(0,Va.reportError)(this,this.def.$dataError||Va.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Va.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=ee.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=ee.nil,r=ee.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:s,def:i}=this;n.if((0,ee.or)((0,ee._)`${o} === undefined`,r)),t!==ee.nil&&n.assign(t,!0),(s.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==ee.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:s}=this;return(0,ee.or)(i(),a());function i(){if(n.length){if(!(r instanceof ee.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,ee._)`${(0,du.checkDataTypes)(c,r,s.opts.strictNumbers,du.DataType.Wrong)}`}return ee.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,ee._)`!${c}(${r})`}return ee.nil}}subschema(t,r){let n=(0,og.getSubschema)(this.it,t);(0,og.extendSubschemaData)(n,this.it,t),(0,og.extendSubschemaMode)(n,t);let o={...this.it,...n,items:void 0,props:void 0};return vH(o,r),o}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Bn.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Bn.mergeEvaluated.items(o,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(t,ee.Name)),!0}};bo.KeywordCxt=fu;function Dk(e,t,r,n){let o=new fu(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Wa.funcKeywordCode)(o,r):"macro"in r?(0,Wa.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Wa.funcKeywordCode)(o,r)}var $H=/^\/(?:[^~]|~0|~1)*$/,OH=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Lk(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,s;if(e==="")return ie.default.rootData;if(e[0]==="/"){if(!$H.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,s=ie.default.rootData}else{let l=OH.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let u=+l[1];if(o=l[2],o==="#"){if(u>=t)throw new Error(c("property/index",u));return n[t-u]}if(u>t)throw new Error(c("data",u));if(s=r[t-u],!o)return s}let i=s,a=o.split("/");for(let l of a)l&&(s=(0,ee._)`${s}${(0,ee.getProperty)((0,Bn.unescapeJsonPointer)(l))}`,i=(0,ee._)`${i} && ${s}`);return i;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}bo.getData=Lk});var mu=w(cg=>{"use strict";Object.defineProperty(cg,"__esModule",{value:!0});var ag=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};cg.default=ag});var Ya=w(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});var lg=Ha(),ug=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,lg.resolveUrl)(t,r,n),this.missingSchema=(0,lg.normalizeId)((0,lg.getFullPath)(t,this.missingRef))}};pg.default=ug});var gu=w(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.resolveSchema=Hr.getCompilingSchema=Hr.resolveRef=Hr.compileSchema=Hr.SchemaEnv=void 0;var ln=ye(),NH=mu(),ns=zn(),un=Ha(),jk=Ne(),MH=Ka(),ri=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,un.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};Hr.SchemaEnv=ri;function fg(e){let t=Fk.call(this,e);if(t)return t;let r=(0,un.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:s}=this.opts,i=new ln.CodeGen(this.scope,{es5:n,lines:o,ownProperties:s}),a;e.$async&&(a=i.scopeValue("Error",{ref:NH.default,code:(0,ln._)`require("ajv/dist/runtime/validation_error").default`}));let c=i.scopeName("validate");e.validateName=c;let l={gen:i,allErrors:this.opts.allErrors,data:ns.default.data,parentData:ns.default.parentData,parentDataProperty:ns.default.parentDataProperty,dataNames:[ns.default.data],dataPathArr:[ln.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,ln.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:ln.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,ln._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(e),(0,MH.validateFunctionCode)(l),i.optimize(this.opts.code.optimize);let p=i.toString();u=`${i.scopeRefs(ns.default.scope)}return ${p}`,this.opts.code.process&&(u=this.opts.code.process(u,e));let h=new Function(`${ns.default.self}`,`${ns.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:p,scopeValues:i._values}),this.opts.unevaluated){let{props:f,items:g}=l;h.evaluated={props:f instanceof ln.Name?void 0:f,items:g instanceof ln.Name?void 0:g,dynamicProps:f instanceof ln.Name,dynamicItems:g instanceof ln.Name},h.source&&(h.source.evaluated=(0,ln.stringify)(h.evaluated))}return e.validate=h,e}catch(p){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),p}finally{this._compilations.delete(e)}}Hr.compileSchema=fg;function DH(e,t,r){var n;r=(0,un.resolveUrl)(this.opts.uriResolver,t,r);let o=e.refs[r];if(o)return o;let s=FH.call(this,e,r);if(s===void 0){let i=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;i&&(s=new ri({schema:i,schemaId:a,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=LH.call(this,s)}Hr.resolveRef=DH;function LH(e){return(0,un.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:fg.call(this,e)}function Fk(e){for(let t of this._compilations)if(jH(t,e))return t}Hr.getCompilingSchema=Fk;function jH(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function FH(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||hu.call(this,e,t)}function hu(e,t){let r=this.opts.uriResolver.parse(t),n=(0,un._getFullPath)(this.opts.uriResolver,r),o=(0,un.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return dg.call(this,r,e);let s=(0,un.normalizeId)(n),i=this.refs[s]||this.schemas[s];if(typeof i=="string"){let a=hu.call(this,e,i);return typeof a?.schema!="object"?void 0:dg.call(this,r,a)}if(typeof i?.schema=="object"){if(i.validate||fg.call(this,i),s===(0,un.normalizeId)(t)){let{schema:a}=i,{schemaId:c}=this.opts,l=a[c];return l&&(o=(0,un.resolveUrl)(this.opts.uriResolver,o,l)),new ri({schema:a,schemaId:c,root:e,baseId:o})}return dg.call(this,r,i)}}Hr.resolveSchema=hu;var qH=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function dg(e,{baseId:t,schema:r,root:n}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,jk.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!qH.has(a)&&l&&(t=(0,un.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,jk.schemaHasRulesButRef)(r,this.RULES)){let a=(0,un.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=hu.call(this,n,a)}let{schemaId:i}=this.opts;if(s=s||new ri({schema:r,schemaId:i,root:n,baseId:t}),s.schema!==s.root.schema)return s}});var qk=w((gie,UH)=>{UH.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Gk=w(mg=>{"use strict";Object.defineProperty(mg,"__esModule",{value:!0});var Uk=hm();Uk.code='require("ajv/dist/runtime/uri").default';mg.default=Uk});var Jk=w(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.CodeGen=Gt.Name=Gt.nil=Gt.stringify=Gt.str=Gt._=Gt.KeywordCxt=void 0;var GH=Ka();Object.defineProperty(Gt,"KeywordCxt",{enumerable:!0,get:function(){return GH.KeywordCxt}});var ni=ye();Object.defineProperty(Gt,"_",{enumerable:!0,get:function(){return ni._}});Object.defineProperty(Gt,"str",{enumerable:!0,get:function(){return ni.str}});Object.defineProperty(Gt,"stringify",{enumerable:!0,get:function(){return ni.stringify}});Object.defineProperty(Gt,"nil",{enumerable:!0,get:function(){return ni.nil}});Object.defineProperty(Gt,"Name",{enumerable:!0,get:function(){return ni.Name}});Object.defineProperty(Gt,"CodeGen",{enumerable:!0,get:function(){return ni.CodeGen}});var zH=mu(),Wk=Ya(),BH=Yh(),Ja=gu(),HH=ye(),Xa=Ha(),yu=Ba(),gg=Ne(),zk=qk(),VH=Gk(),Kk=(e,t)=>new RegExp(e,t);Kk.code="new RegExp";var WH=["removeAdditional","useDefaults","coerceTypes"],KH=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),YH={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},JH={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Bk=200;function XH(e){var t,r,n,o,s,i,a,c,l,u,p,m,h,f,g,v,x,I,k,P,R,A,L,Y,ue;let Q=e.strict,Ke=(t=e.code)===null||t===void 0?void 0:t.optimize,Se=Ke===!0||Ke===void 0?1:Ke||0,ve=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Kk,pe=(o=e.uriResolver)!==null&&o!==void 0?o:VH.default;return{strictSchema:(i=(s=e.strictSchema)!==null&&s!==void 0?s:Q)!==null&&i!==void 0?i:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:Q)!==null&&c!==void 0?c:!0,strictTypes:(u=(l=e.strictTypes)!==null&&l!==void 0?l:Q)!==null&&u!==void 0?u:"log",strictTuples:(m=(p=e.strictTuples)!==null&&p!==void 0?p:Q)!==null&&m!==void 0?m:"log",strictRequired:(f=(h=e.strictRequired)!==null&&h!==void 0?h:Q)!==null&&f!==void 0?f:!1,code:e.code?{...e.code,optimize:Se,regExp:ve}:{optimize:Se,regExp:ve},loopRequired:(g=e.loopRequired)!==null&&g!==void 0?g:Bk,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:Bk,meta:(x=e.meta)!==null&&x!==void 0?x:!0,messages:(I=e.messages)!==null&&I!==void 0?I:!0,inlineRefs:(k=e.inlineRefs)!==null&&k!==void 0?k:!0,schemaId:(P=e.schemaId)!==null&&P!==void 0?P:"$id",addUsedSchema:(R=e.addUsedSchema)!==null&&R!==void 0?R:!0,validateSchema:(A=e.validateSchema)!==null&&A!==void 0?A:!0,validateFormats:(L=e.validateFormats)!==null&&L!==void 0?L:!0,unicodeRegExp:(Y=e.unicodeRegExp)!==null&&Y!==void 0?Y:!0,int32range:(ue=e.int32range)!==null&&ue!==void 0?ue:!0,uriResolver:pe}}var Qa=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...XH(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new HH.ValueScope({scope:{},prefixes:KH,es5:r,lines:n}),this.logger=n5(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,BH.getRules)(),Hk.call(this,YH,t,"NOT SUPPORTED"),Hk.call(this,JH,t,"DEPRECATED","warn"),this._metaOpts=t5.call(this),t.formats&&ZH.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&e5.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),QH.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=zk;n==="id"&&(o={...zk},o.id=o.$id,delete o.$id),r&&t&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let o=n(r);return"$async"in n||(this.errors=n.errors),o}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return o.call(this,t,r);async function o(u,p){await s.call(this,u.$schema);let m=this._addSchema(u,p);return m.validate||i.call(this,m)}async function s(u){u&&!this.getSchema(u)&&await o.call(this,{$ref:u},!0)}async function i(u){try{return this._compileSchemaEnv(u)}catch(p){if(!(p instanceof Wk.default))throw p;return a.call(this,p),await c.call(this,p.missingSchema),i.call(this,u)}}function a({missingSchema:u,missingRef:p}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${p} cannot be resolved`)}async function c(u){let p=await l.call(this,u);this.refs[u]||await s.call(this,p.$schema),this.refs[u]||this.addSchema(p,u,r)}async function l(u){let p=this._loading[u];if(p)return p;try{return await(this._loading[u]=n(u))}finally{delete this._loading[u]}}}addSchema(t,r,n,o=this.opts.validateSchema){if(Array.isArray(t)){for(let i of t)this.addSchema(i,void 0,n,o);return this}let s;if(typeof t=="object"){let{schemaId:i}=this.opts;if(s=t[i],s!==void 0&&typeof s!="string")throw new Error(`schema ${i} must be string`)}return r=(0,Xa.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,o,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let o=this.validate(n,t);if(!o&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return o}getSchema(t){let r;for(;typeof(r=Vk.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new Ja.SchemaEnv({schema:{},schemaId:n});if(r=Ja.resolveSchema.call(this,o,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Vk.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,Xa.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(s5.call(this,n,r),!r)return(0,gg.eachItem)(n,s=>hg.call(this,s)),this;a5.call(this,r);let o={...r,type:(0,yu.getJSONTypes)(r.type),schemaType:(0,yu.getJSONTypes)(r.schemaType)};return(0,gg.eachItem)(n,o.type.length===0?s=>hg.call(this,s,o):s=>o.type.forEach(i=>hg.call(this,s,o,i))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let o=n.rules.findIndex(s=>s.keyword===t);o>=0&&n.rules.splice(o,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(o=>`${n}${o.instancePath} ${o.message}`).reduce((o,s)=>o+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let o of r){let s=o.split("/").slice(1),i=t;for(let a of s)i=i[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,u=i[a];l&&u&&(i[a]=Yk(u))}}return t}_removeAllSchemas(t,r){for(let n in t){let o=t[n];(!r||r.test(n))&&(typeof o=="string"?delete t[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete t[n]))}}_addSchema(t,r,n,o=this.opts.validateSchema,s=this.opts.addUsedSchema){let i,{schemaId:a}=this.opts;if(typeof t=="object")i=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,Xa.normalizeId)(i||n);let l=Xa.getSchemaRefs.call(this,t,n);return c=new Ja.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Ja.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{Ja.compileSchema.call(this,t)}finally{this.opts=r}}};Qa.ValidationError=zH.default;Qa.MissingRefError=Wk.default;Gt.default=Qa;function Hk(e,t,r,n="error"){for(let o in e){let s=o;s in t&&this.logger[n](`${r}: option ${o}. ${e[s]}`)}}function Vk(e){return e=(0,Xa.normalizeId)(e),this.schemas[e]||this.refs[e]}function QH(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function ZH(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function e5(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function t5(){let e={...this.opts};for(let t of WH)delete e[t];return e}var r5={log(){},warn(){},error(){}};function n5(e){if(e===!1)return r5;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var o5=/^[a-z_$][a-z0-9_$:-]*$/i;function s5(e,t){let{RULES:r}=this;if((0,gg.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!o5.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function hg(e,t,r){var n;let o=t?.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,i=o?s.post:s.rules.find(({type:c})=>c===r);if(i||(i={type:r,rules:[]},s.rules.push(i)),s.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,yu.getJSONTypes)(t.type),schemaType:(0,yu.getJSONTypes)(t.schemaType)}};t.before?i5.call(this,i,a,t.before):i.rules.push(a),s.all[e]=a,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function i5(e,t,r){let n=e.rules.findIndex(o=>o.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function a5(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Yk(t)),e.validateSchema=this.compile(t,!0))}var c5={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Yk(e){return{anyOf:[e,c5]}}});var Xk=w(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});var l5={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};yg.default=l5});var tR=w(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.callRef=os.getValidate=void 0;var u5=Ya(),Qk=Br(),_r=ye(),oi=zn(),Zk=gu(),vu=Ne(),p5={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:s,validateName:i,opts:a,self:c}=n,{root:l}=s;if((r==="#"||r==="#/")&&o===l.baseId)return p();let u=Zk.resolveRef.call(c,l,o,r);if(u===void 0)throw new u5.default(n.opts.uriResolver,o,r);if(u instanceof Zk.SchemaEnv)return m(u);return h(u);function p(){if(s===l)return wu(e,i,s,s.$async);let f=t.scopeValue("root",{ref:l});return wu(e,(0,_r._)`${f}.validate`,l,l.$async)}function m(f){let g=eR(e,f);wu(e,g,f,f.$async)}function h(f){let g=t.scopeValue("schema",a.code.source===!0?{ref:f,code:(0,_r.stringify)(f)}:{ref:f}),v=t.name("valid"),x=e.subschema({schema:f,dataTypes:[],schemaPath:_r.nil,topSchemaRef:g,errSchemaPath:r},v);e.mergeEvaluated(x),e.ok(v)}}};function eR(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,_r._)`${r.scopeValue("wrapper",{ref:t})}.validate`}os.getValidate=eR;function wu(e,t,r,n){let{gen:o,it:s}=e,{allErrors:i,schemaEnv:a,opts:c}=s,l=c.passContext?oi.default.this:_r.nil;n?u():p();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");let f=o.let("valid");o.try(()=>{o.code((0,_r._)`await ${(0,Qk.callValidateCode)(e,t,l)}`),h(t),i||o.assign(f,!0)},g=>{o.if((0,_r._)`!(${g} instanceof ${s.ValidationError})`,()=>o.throw(g)),m(g),i||o.assign(f,!1)}),e.ok(f)}function p(){e.result((0,Qk.callValidateCode)(e,t,l),()=>h(t),()=>m(t))}function m(f){let g=(0,_r._)`${f}.errors`;o.assign(oi.default.vErrors,(0,_r._)`${oi.default.vErrors} === null ? ${g} : ${oi.default.vErrors}.concat(${g})`),o.assign(oi.default.errors,(0,_r._)`${oi.default.vErrors}.length`)}function h(f){var g;if(!s.opts.unevaluated)return;let v=(g=r?.validate)===null||g===void 0?void 0:g.evaluated;if(s.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(s.props=vu.mergeEvaluated.props(o,v.props,s.props));else{let x=o.var("props",(0,_r._)`${f}.evaluated.props`);s.props=vu.mergeEvaluated.props(o,x,s.props,_r.Name)}if(s.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(s.items=vu.mergeEvaluated.items(o,v.items,s.items));else{let x=o.var("items",(0,_r._)`${f}.evaluated.items`);s.items=vu.mergeEvaluated.items(o,x,s.items,_r.Name)}}}os.callRef=wu;os.default=p5});var rR=w(vg=>{"use strict";Object.defineProperty(vg,"__esModule",{value:!0});var d5=Xk(),f5=tR(),m5=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",d5.default,f5.default];vg.default=m5});var nR=w(wg=>{"use strict";Object.defineProperty(wg,"__esModule",{value:!0});var xu=ye(),_o=xu.operators,bu={maximum:{okStr:"<=",ok:_o.LTE,fail:_o.GT},minimum:{okStr:">=",ok:_o.GTE,fail:_o.LT},exclusiveMaximum:{okStr:"<",ok:_o.LT,fail:_o.GTE},exclusiveMinimum:{okStr:">",ok:_o.GT,fail:_o.LTE}},h5={message:({keyword:e,schemaCode:t})=>(0,xu.str)`must be ${bu[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,xu._)`{comparison: ${bu[e].okStr}, limit: ${t}}`},g5={keyword:Object.keys(bu),type:"number",schemaType:"number",$data:!0,error:h5,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,xu._)`${r} ${bu[t].fail} ${n} || isNaN(${r})`)}};wg.default=g5});var oR=w(xg=>{"use strict";Object.defineProperty(xg,"__esModule",{value:!0});var Za=ye(),y5={message:({schemaCode:e})=>(0,Za.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Za._)`{multipleOf: ${e}}`},v5={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:y5,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,s=o.opts.multipleOfPrecision,i=t.let("res"),a=s?(0,Za._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${s}`:(0,Za._)`${i} !== parseInt(${i})`;e.fail$data((0,Za._)`(${n} === 0 || (${i} = ${r}/${n}, ${a}))`)}};xg.default=v5});var iR=w(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});function sR(e){let t=e.length,r=0,n=0,o;for(;n<t;)r++,o=e.charCodeAt(n++),o>=55296&&o<=56319&&n<t&&(o=e.charCodeAt(n),(o&64512)===56320&&n++);return r}bg.default=sR;sR.code='require("ajv/dist/runtime/ucs2length").default'});var aR=w(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});var ss=ye(),w5=Ne(),x5=iR(),b5={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,ss.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,ss._)`{limit: ${e}}`},_5={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:b5,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,s=t==="maxLength"?ss.operators.GT:ss.operators.LT,i=o.opts.unicode===!1?(0,ss._)`${r}.length`:(0,ss._)`${(0,w5.useFunc)(e.gen,x5.default)}(${r})`;e.fail$data((0,ss._)`${i} ${s} ${n}`)}};_g.default=_5});var cR=w(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});var S5=Br(),E5=Ne(),si=ye(),T5={message:({schemaCode:e})=>(0,si.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,si._)`{pattern: ${e}}`},k5={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:T5,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:s,it:i}=e,a=i.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=i.opts.code,l=c.code==="new RegExp"?(0,si._)`new RegExp`:(0,E5.useFunc)(t,c),u=t.let("valid");t.try(()=>t.assign(u,(0,si._)`${l}(${s}, ${a}).test(${r})`),()=>t.assign(u,!1)),e.fail$data((0,si._)`!${u}`)}else{let c=(0,S5.usePattern)(e,o);e.fail$data((0,si._)`!${c}.test(${r})`)}}};Sg.default=k5});var lR=w(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});var ec=ye(),R5={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,ec.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,ec._)`{limit: ${e}}`},I5={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:R5,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?ec.operators.GT:ec.operators.LT;e.fail$data((0,ec._)`Object.keys(${r}).length ${o} ${n}`)}};Eg.default=I5});var uR=w(Tg=>{"use strict";Object.defineProperty(Tg,"__esModule",{value:!0});var tc=Br(),rc=ye(),P5=Ne(),A5={message:({params:{missingProperty:e}})=>(0,rc.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,rc._)`{missingProperty: ${e}}`},C5={keyword:"required",type:"object",schemaType:"array",$data:!0,error:A5,code(e){let{gen:t,schema:r,schemaCode:n,data:o,$data:s,it:i}=e,{opts:a}=i;if(!s&&r.length===0)return;let c=r.length>=a.loopRequired;if(i.allErrors?l():u(),a.strictRequired){let h=e.parentSchema.properties,{definedProperties:f}=e.it;for(let g of r)if(h?.[g]===void 0&&!f.has(g)){let v=i.schemaEnv.baseId+i.errSchemaPath,x=`required property "${g}" is not defined at "${v}" (strictRequired)`;(0,P5.checkStrictMode)(i,x,i.opts.strictRequired)}}function l(){if(c||s)e.block$data(rc.nil,p);else for(let h of r)(0,tc.checkReportMissingProp)(e,h)}function u(){let h=t.let("missing");if(c||s){let f=t.let("valid",!0);e.block$data(f,()=>m(h,f)),e.ok(f)}else t.if((0,tc.checkMissingProp)(e,r,h)),(0,tc.reportMissingProp)(e,h),t.else()}function p(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,tc.noPropertyInData)(t,o,h,a.ownProperties),()=>e.error())})}function m(h,f){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(f,(0,tc.propertyInData)(t,o,h,a.ownProperties)),t.if((0,rc.not)(f),()=>{e.error(),t.break()})},rc.nil)}}};Tg.default=C5});var pR=w(kg=>{"use strict";Object.defineProperty(kg,"__esModule",{value:!0});var nc=ye(),$5={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,nc.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,nc._)`{limit: ${e}}`},O5={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:$5,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?nc.operators.GT:nc.operators.LT;e.fail$data((0,nc._)`${r}.length ${o} ${n}`)}};kg.default=O5});var _u=w(Rg=>{"use strict";Object.defineProperty(Rg,"__esModule",{value:!0});var dR=fa();dR.code='require("ajv/dist/runtime/equal").default';Rg.default=dR});var fR=w(Pg=>{"use strict";Object.defineProperty(Pg,"__esModule",{value:!0});var Ig=Ba(),zt=ye(),N5=Ne(),M5=_u(),D5={message:({params:{i:e,j:t}})=>(0,zt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,zt._)`{i: ${e}, j: ${t}}`},L5={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:D5,code(e){let{gen:t,data:r,$data:n,schema:o,parentSchema:s,schemaCode:i,it:a}=e;if(!n&&!o)return;let c=t.let("valid"),l=s.items?(0,Ig.getSchemaTypes)(s.items):[];e.block$data(c,u,(0,zt._)`${i} === false`),e.ok(c);function u(){let f=t.let("i",(0,zt._)`${r}.length`),g=t.let("j");e.setParams({i:f,j:g}),t.assign(c,!0),t.if((0,zt._)`${f} > 1`,()=>(p()?m:h)(f,g))}function p(){return l.length>0&&!l.some(f=>f==="object"||f==="array")}function m(f,g){let v=t.name("item"),x=(0,Ig.checkDataTypes)(l,v,a.opts.strictNumbers,Ig.DataType.Wrong),I=t.const("indices",(0,zt._)`{}`);t.for((0,zt._)`;${f}--;`,()=>{t.let(v,(0,zt._)`${r}[${f}]`),t.if(x,(0,zt._)`continue`),l.length>1&&t.if((0,zt._)`typeof ${v} == "string"`,(0,zt._)`${v} += "_"`),t.if((0,zt._)`typeof ${I}[${v}] == "number"`,()=>{t.assign(g,(0,zt._)`${I}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,zt._)`${I}[${v}] = ${f}`)})}function h(f,g){let v=(0,N5.useFunc)(t,M5.default),x=t.name("outer");t.label(x).for((0,zt._)`;${f}--;`,()=>t.for((0,zt._)`${g} = ${f}; ${g}--;`,()=>t.if((0,zt._)`${v}(${r}[${f}], ${r}[${g}])`,()=>{e.error(),t.assign(c,!1).break(x)})))}}};Pg.default=L5});var mR=w(Cg=>{"use strict";Object.defineProperty(Cg,"__esModule",{value:!0});var Ag=ye(),j5=Ne(),F5=_u(),q5={message:"must be equal to constant",params:({schemaCode:e})=>(0,Ag._)`{allowedValue: ${e}}`},U5={keyword:"const",$data:!0,error:q5,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Ag._)`!${(0,j5.useFunc)(t,F5.default)}(${r}, ${o})`):e.fail((0,Ag._)`${s} !== ${r}`)}};Cg.default=U5});var hR=w($g=>{"use strict";Object.defineProperty($g,"__esModule",{value:!0});var oc=ye(),G5=Ne(),z5=_u(),B5={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,oc._)`{allowedValues: ${e}}`},H5={keyword:"enum",schemaType:"array",$data:!0,error:B5,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:s,it:i}=e;if(!n&&o.length===0)throw new Error("enum must have non-empty array");let a=o.length>=i.opts.loopEnum,c,l=()=>c??(c=(0,G5.useFunc)(t,z5.default)),u;if(a||n)u=t.let("valid"),e.block$data(u,p);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let h=t.const("vSchema",s);u=(0,oc.or)(...o.map((f,g)=>m(h,g)))}e.pass(u);function p(){t.assign(u,!1),t.forOf("v",s,h=>t.if((0,oc._)`${l()}(${r}, ${h})`,()=>t.assign(u,!0).break()))}function m(h,f){let g=o[f];return typeof g=="object"&&g!==null?(0,oc._)`${l()}(${r}, ${h}[${f}])`:(0,oc._)`${r} === ${g}`}}};$g.default=H5});var gR=w(Og=>{"use strict";Object.defineProperty(Og,"__esModule",{value:!0});var V5=nR(),W5=oR(),K5=aR(),Y5=cR(),J5=lR(),X5=uR(),Q5=pR(),Z5=fR(),e3=mR(),t3=hR(),r3=[V5.default,W5.default,K5.default,Y5.default,J5.default,X5.default,Q5.default,Z5.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},e3.default,t3.default];Og.default=r3});var Mg=w(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.validateAdditionalItems=void 0;var is=ye(),Ng=Ne(),n3={message:({params:{len:e}})=>(0,is.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,is._)`{limit: ${e}}`},o3={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:n3,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Ng.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}yR(e,n)}};function yR(e,t){let{gen:r,schema:n,data:o,keyword:s,it:i}=e;i.items=!0;let a=r.const("len",(0,is._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,is._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,Ng.alwaysValidSchema)(i,n)){let l=r.var("valid",(0,is._)`${a} <= ${t.length}`);r.if((0,is.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:s,dataProp:u,dataPropType:Ng.Type.Num},l),i.allErrors||r.if((0,is.not)(l),()=>r.break())})}}sc.validateAdditionalItems=yR;sc.default=o3});var Dg=w(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.validateTuple=void 0;var vR=ye(),Su=Ne(),s3=Br(),i3={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return wR(e,"additionalItems",t);r.items=!0,!(0,Su.alwaysValidSchema)(r,t)&&e.ok((0,s3.validateArray)(e))}};function wR(e,t,r=e.schema){let{gen:n,parentSchema:o,data:s,keyword:i,it:a}=e;u(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Su.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,vR._)`${s}.length`);r.forEach((p,m)=>{(0,Su.alwaysValidSchema)(a,p)||(n.if((0,vR._)`${l} > ${m}`,()=>e.subschema({keyword:i,schemaProp:m,dataProp:m},c)),e.ok(c))});function u(p){let{opts:m,errSchemaPath:h}=a,f=r.length,g=f===p.minItems&&(f===p.maxItems||p[t]===!1);if(m.strictTuples&&!g){let v=`"${i}" is ${f}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Su.checkStrictMode)(a,v,m.strictTuples)}}}ic.validateTuple=wR;ic.default=i3});var xR=w(Lg=>{"use strict";Object.defineProperty(Lg,"__esModule",{value:!0});var a3=Dg(),c3={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,a3.validateTuple)(e,"items")};Lg.default=c3});var _R=w(jg=>{"use strict";Object.defineProperty(jg,"__esModule",{value:!0});var bR=ye(),l3=Ne(),u3=Br(),p3=Mg(),d3={message:({params:{len:e}})=>(0,bR.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,bR._)`{limit: ${e}}`},f3={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:d3,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,l3.alwaysValidSchema)(n,t)&&(o?(0,p3.validateAdditionalItems)(e,o):e.ok((0,u3.validateArray)(e)))}};jg.default=f3});var SR=w(Fg=>{"use strict";Object.defineProperty(Fg,"__esModule",{value:!0});var Vr=ye(),Eu=Ne(),m3={message:({params:{min:e,max:t}})=>t===void 0?(0,Vr.str)`must contain at least ${e} valid item(s)`:(0,Vr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Vr._)`{minContains: ${e}}`:(0,Vr._)`{minContains: ${e}, maxContains: ${t}}`},h3={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:m3,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:s}=e,i,a,{minContains:c,maxContains:l}=n;s.opts.next?(i=c===void 0?1:c,a=l):i=1;let u=t.const("len",(0,Vr._)`${o}.length`);if(e.setParams({min:i,max:a}),a===void 0&&i===0){(0,Eu.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&i>a){(0,Eu.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Eu.alwaysValidSchema)(s,r)){let g=(0,Vr._)`${u} >= ${i}`;a!==void 0&&(g=(0,Vr._)`${g} && ${u} <= ${a}`),e.pass(g);return}s.items=!0;let p=t.name("valid");a===void 0&&i===1?h(p,()=>t.if(p,()=>t.break())):i===0?(t.let(p,!0),a!==void 0&&t.if((0,Vr._)`${o}.length > 0`,m)):(t.let(p,!1),m()),e.result(p,()=>e.reset());function m(){let g=t.name("_valid"),v=t.let("count",0);h(g,()=>t.if(g,()=>f(v)))}function h(g,v){t.forRange("i",0,u,x=>{e.subschema({keyword:"contains",dataProp:x,dataPropType:Eu.Type.Num,compositeRule:!0},g),v()})}function f(g){t.code((0,Vr._)`${g}++`),a===void 0?t.if((0,Vr._)`${g} >= ${i}`,()=>t.assign(p,!0).break()):(t.if((0,Vr._)`${g} > ${a}`,()=>t.assign(p,!1).break()),i===1?t.assign(p,!0):t.if((0,Vr._)`${g} >= ${i}`,()=>t.assign(p,!0)))}}};Fg.default=h3});var kR=w(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.validateSchemaDeps=In.validatePropertyDeps=In.error=void 0;var qg=ye(),g3=Ne(),ac=Br();In.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,qg.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,qg._)`{property: ${e},
20
+ || ${i} === "boolean" || ${o} === null`).assign(a,(0,he._)`[${o}]`)}}}function _j({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,he._)`${t} !== undefined`,()=>e.assign((0,he._)`${t}[${r}]`,n))}function Jf(e,t,r,n=ys.Correct){let o=n===ys.Correct?he.operators.EQ:he.operators.NEQ,s;switch(e){case"null":return(0,he._)`${t} ${o} null`;case"array":s=(0,he._)`Array.isArray(${t})`;break;case"object":s=(0,he._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=i((0,he._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=i();break;default:return(0,he._)`typeof ${t} ${o} ${e}`}return n===ys.Correct?s:(0,he.not)(s);function i(a=he.nil){return(0,he.and)((0,he._)`typeof ${t} == "number"`,a,r?(0,he._)`isFinite(${t})`:he.nil)}}qt.checkDataType=Jf;function Xf(e,t,r,n){if(e.length===1)return Jf(e[0],t,r,n);let o,s=(0,HT.toHash)(e);if(s.array&&s.object){let i=(0,he._)`typeof ${t} != "object"`;o=s.null?i:(0,he._)`!${t} || ${i}`,delete s.null,delete s.array,delete s.object}else o=he.nil;s.number&&delete s.integer;for(let i in s)o=(0,he.and)(o,Jf(i,t,r,n));return o}qt.checkDataTypes=Xf;var Sj={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,he._)`{type: ${e}}`:(0,he._)`{type: ${t}}`};function Qf(e){let t=Tj(e);(0,yj.reportError)(t,Sj)}qt.reportTypeError=Qf;function Tj(e){let{gen:t,data:r,schema:n}=e,o=(0,HT.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var VT=v(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.assignDefaults=void 0;var ws=le(),kj=xe();function Ej(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)WT(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,s)=>WT(e,s,o.default))}hl.assignDefaults=Ej;function WT(e,t,r){let{gen:n,compositeRule:o,data:s,opts:i}=e;if(r===void 0)return;let a=(0,ws._)`${s}${(0,ws.getProperty)(t)}`;if(o){(0,kj.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,ws._)`${a} === undefined`;i.useDefaults==="empty"&&(c=(0,ws._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,ws._)`${a} = ${(0,ws.stringify)(r)}`)}});var Sr=v(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.validateUnion=Le.validateArray=Le.usePattern=Le.callValidateCode=Le.schemaProperties=Le.allSchemaProperties=Le.noPropertyInData=Le.propertyInData=Le.isOwnProperty=Le.hasPropFunc=Le.reportMissingProp=Le.checkMissingProp=Le.checkReportMissingProp=void 0;var We=le(),Zf=xe(),Fn=_r(),Rj=xe();function Ij(e,t){let{gen:r,data:n,it:o}=e;r.if(tm(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,We._)`${t}`},!0),e.error()})}Le.checkReportMissingProp=Ij;function Aj({gen:e,data:t,it:{opts:r}},n,o){return(0,We.or)(...n.map(s=>(0,We.and)(tm(e,t,s,r.ownProperties),(0,We._)`${o} = ${s}`)))}Le.checkMissingProp=Aj;function Cj(e,t){e.setParams({missingProperty:t},!0),e.error()}Le.reportMissingProp=Cj;function YT(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,We._)`Object.prototype.hasOwnProperty`})}Le.hasPropFunc=YT;function em(e,t,r){return(0,We._)`${YT(e)}.call(${t}, ${r})`}Le.isOwnProperty=em;function Pj(e,t,r,n){let o=(0,We._)`${t}${(0,We.getProperty)(r)} !== undefined`;return n?(0,We._)`${o} && ${em(e,t,r)}`:o}Le.propertyInData=Pj;function tm(e,t,r,n){let o=(0,We._)`${t}${(0,We.getProperty)(r)} === undefined`;return n?(0,We.or)(o,(0,We.not)(em(e,t,r))):o}Le.noPropertyInData=tm;function JT(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Le.allSchemaProperties=JT;function $j(e,t){return JT(t).filter(r=>!(0,Zf.alwaysValidSchema)(e,t[r]))}Le.schemaProperties=$j;function Oj({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:s},it:i},a,c,l){let p=l?(0,We._)`${e}, ${t}, ${n}${o}`:t,u=[[Fn.default.instancePath,(0,We.strConcat)(Fn.default.instancePath,s)],[Fn.default.parentData,i.parentData],[Fn.default.parentDataProperty,i.parentDataProperty],[Fn.default.rootData,Fn.default.rootData]];i.opts.dynamicRef&&u.push([Fn.default.dynamicAnchors,Fn.default.dynamicAnchors]);let d=(0,We._)`${p}, ${r.object(...u)}`;return c!==We.nil?(0,We._)`${a}.call(${c}, ${d})`:(0,We._)`${a}(${d})`}Le.callValidateCode=Oj;var Nj=(0,We._)`new RegExp`;function Mj({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,s=o(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,We._)`${o.code==="new RegExp"?Nj:(0,Rj.useFunc)(e,o)}(${r}, ${n})`})}Le.usePattern=Mj;function Dj(e){let{gen:t,data:r,keyword:n,it:o}=e,s=t.name("valid");if(o.allErrors){let a=t.let("valid",!0);return i(()=>t.assign(a,!1)),a}return t.var(s,!0),i(()=>t.break()),s;function i(a){let c=t.const("len",(0,We._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Zf.Type.Num},s),t.if((0,We.not)(s),a)})}}Le.validateArray=Dj;function Lj(e){let{gen:t,schema:r,keyword:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Zf.alwaysValidSchema)(o,c))&&!o.opts.unevaluated)return;let i=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},a);t.assign(i,(0,We._)`${i} || ${a}`),e.mergeValidEvaluated(p,a)||t.if((0,We.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Le.validateUnion=Lj});var ZT=v(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.validateKeywordUsage=Qr.validSchemaType=Qr.funcKeywordCode=Qr.macroKeywordCode=void 0;var Kt=le(),bo=_r(),Fj=Sr(),qj=Bi();function jj(e,t){let{gen:r,keyword:n,schema:o,parentSchema:s,it:i}=e,a=t.macro.call(i.self,o,s,i),c=QT(r,n,a);i.opts.validateSchema!==!1&&i.self.validateSchema(a,!0);let l=r.name("valid");e.subschema({schema:a,schemaPath:Kt.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}Qr.macroKeywordCode=jj;function Uj(e,t){var r;let{gen:n,keyword:o,schema:s,parentSchema:i,$data:a,it:c}=e;Gj(c,t);let l=!a&&t.compile?t.compile.call(c.self,s,i,c):t.validate,p=QT(n,o,l),u=n.let("valid");e.block$data(u,d),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function d(){if(t.errors===!1)h(),t.modifying&&XT(e),w(()=>e.error());else{let x=t.async?g():m();t.modifying&&XT(e),w(()=>Bj(e,x))}}function g(){let x=n.let("ruleErrs",null);return n.try(()=>h((0,Kt._)`await `),E=>n.assign(u,!1).if((0,Kt._)`${E} instanceof ${c.ValidationError}`,()=>n.assign(x,(0,Kt._)`${E}.errors`),()=>n.throw(E))),x}function m(){let x=(0,Kt._)`${p}.errors`;return n.assign(x,null),h(Kt.nil),x}function h(x=t.async?(0,Kt._)`await `:Kt.nil){let E=c.opts.passContext?bo.default.this:bo.default.self,S=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,Kt._)`${x}${(0,Fj.callValidateCode)(e,p,E,S)}`,t.modifying)}function w(x){var E;n.if((0,Kt.not)((E=t.valid)!==null&&E!==void 0?E:u),x)}}Qr.funcKeywordCode=Uj;function XT(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Kt._)`${n.parentData}[${n.parentDataProperty}]`))}function Bj(e,t){let{gen:r}=e;r.if((0,Kt._)`Array.isArray(${t})`,()=>{r.assign(bo.default.vErrors,(0,Kt._)`${bo.default.vErrors} === null ? ${t} : ${bo.default.vErrors}.concat(${t})`).assign(bo.default.errors,(0,Kt._)`${bo.default.vErrors}.length`),(0,qj.extendErrors)(e)},()=>e.error())}function Gj({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function QT(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Kt.stringify)(r)})}function Hj(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}Qr.validSchemaType=Hj;function Kj({schema:e,opts:t,self:r,errSchemaPath:n},o,s){if(Array.isArray(o.keyword)?!o.keyword.includes(s):o.keyword!==s)throw new Error("ajv implementation error");let i=o.dependencies;if(i?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${s}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[s])){let c=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}Qr.validateKeywordUsage=Kj});var tk=v(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.extendSubschemaMode=qn.extendSubschemaData=qn.getSubschema=void 0;var Zr=le(),ek=xe();function zj(e,{keyword:t,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:s,topSchemaRef:i}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,Zr._)`${e.schemaPath}${(0,Zr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Zr._)`${e.schemaPath}${(0,Zr.getProperty)(t)}${(0,Zr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,ek.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||s===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:i,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}qn.getSubschema=zj;function Wj(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:s,propertyName:i}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:u}=t,d=a.let("data",(0,Zr._)`${t.data}${(0,Zr.getProperty)(r)}`,!0);c(d),e.errorPath=(0,Zr.str)`${l}${(0,ek.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,Zr._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(o!==void 0){let l=o instanceof Zr.Name?o:a.let("data",o,!0);c(l),i!==void 0&&(e.propertyName=i)}s&&(e.dataTypes=s);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}qn.extendSubschemaData=Wj;function Vj(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:s}){n!==void 0&&(e.compositeRule=n),o!==void 0&&(e.createErrors=o),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}qn.extendSubschemaMode=Vj});var rm=v((Wie,rk)=>{"use strict";rk.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[o]))return!1;for(o=n;o--!==0;){var i=s[o];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r}});var ok=v((Vie,nk)=>{"use strict";var jn=nk.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},o=r.post||function(){};gl(t,n,o,e,"",e)};jn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};jn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};jn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};jn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function gl(e,t,r,n,o,s,i,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,o,s,i,a,c,l);for(var p in n){var u=n[p];if(Array.isArray(u)){if(p in jn.arrayKeywords)for(var d=0;d<u.length;d++)gl(e,t,r,u[d],o+"/"+p+"/"+d,s,o,p,n,d)}else if(p in jn.propsKeywords){if(u&&typeof u=="object")for(var g in u)gl(e,t,r,u[g],o+"/"+p+"/"+Yj(g),s,o,p,n,g)}else(p in jn.keywords||e.allKeys&&!(p in jn.skipKeywords))&&gl(e,t,r,u,o+"/"+p,s,o,p,n)}r(n,o,s,i,a,c,l)}}function Yj(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Hi=v(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.getSchemaRefs=rr.resolveUrl=rr.normalizeId=rr._getFullPath=rr.getFullPath=rr.inlineRef=void 0;var Jj=xe(),Xj=rm(),Qj=ok(),Zj=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function eU(e,t=!0){return typeof e=="boolean"?!0:t===!0?!nm(e):t?sk(e)<=t:!1}rr.inlineRef=eU;var tU=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function nm(e){for(let t in e){if(tU.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(nm)||typeof r=="object"&&nm(r))return!0}return!1}function sk(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!Zj.has(r)&&(typeof e[r]=="object"&&(0,Jj.eachItem)(e[r],n=>t+=sk(n)),t===1/0))return 1/0}return t}function ik(e,t="",r){r!==!1&&(t=vs(t));let n=e.parse(t);return ak(e,n)}rr.getFullPath=ik;function ak(e,t){return e.serialize(t).split("#")[0]+"#"}rr._getFullPath=ak;var rU=/#\/?$/;function vs(e){return e?e.replace(rU,""):""}rr.normalizeId=vs;function nU(e,t,r){return r=vs(r),e.resolve(t,r)}rr.resolveUrl=nU;var oU=/^[a-z_][-a-z0-9._]*$/i;function sU(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=vs(e[r]||t),s={"":o},i=ik(n,o,!1),a={},c=new Set;return Qj(e,{allKeys:!0},(u,d,g,m)=>{if(m===void 0)return;let h=i+d,w=s[m];typeof u[r]=="string"&&(w=x.call(this,u[r])),E.call(this,u.$anchor),E.call(this,u.$dynamicAnchor),s[d]=w;function x(S){let k=this.opts.uriResolver.resolve;if(S=vs(w?k(w,S):S),c.has(S))throw p(S);c.add(S);let I=this.refs[S];return typeof I=="string"&&(I=this.refs[I]),typeof I=="object"?l(u,I.schema,S):S!==vs(h)&&(S[0]==="#"?(l(u,a[S],S),a[S]=u):this.refs[S]=h),S}function E(S){if(typeof S=="string"){if(!oU.test(S))throw new Error(`invalid anchor "${S}"`);x.call(this,`#${S}`)}}}),a;function l(u,d,g){if(d!==void 0&&!Xj(u,d))throw p(g)}function p(u){return new Error(`reference "${u}" resolves to more than one schema`)}}rr.getSchemaRefs=sU});var xs=v(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.getData=Un.KeywordCxt=Un.validateFunctionCode=void 0;var dk=UT(),ck=Gi(),sm=Yf(),yl=Gi(),iU=VT(),zi=ZT(),om=tk(),re=le(),ae=_r(),aU=Hi(),bn=xe(),Ki=Bi();function cU(e){if(hk(e)&&(gk(e),mk(e))){pU(e);return}fk(e,()=>(0,dk.topBoolOrEmptySchema)(e))}Un.validateFunctionCode=cU;function fk({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},s){o.code.es5?e.func(t,(0,re._)`${ae.default.data}, ${ae.default.valCxt}`,n.$async,()=>{e.code((0,re._)`"use strict"; ${lk(r,o)}`),uU(e,o),e.code(s)}):e.func(t,(0,re._)`${ae.default.data}, ${lU(o)}`,n.$async,()=>e.code(lk(r,o)).code(s))}function lU(e){return(0,re._)`{${ae.default.instancePath}="", ${ae.default.parentData}, ${ae.default.parentDataProperty}, ${ae.default.rootData}=${ae.default.data}${e.dynamicRef?(0,re._)`, ${ae.default.dynamicAnchors}={}`:re.nil}}={}`}function uU(e,t){e.if(ae.default.valCxt,()=>{e.var(ae.default.instancePath,(0,re._)`${ae.default.valCxt}.${ae.default.instancePath}`),e.var(ae.default.parentData,(0,re._)`${ae.default.valCxt}.${ae.default.parentData}`),e.var(ae.default.parentDataProperty,(0,re._)`${ae.default.valCxt}.${ae.default.parentDataProperty}`),e.var(ae.default.rootData,(0,re._)`${ae.default.valCxt}.${ae.default.rootData}`),t.dynamicRef&&e.var(ae.default.dynamicAnchors,(0,re._)`${ae.default.valCxt}.${ae.default.dynamicAnchors}`)},()=>{e.var(ae.default.instancePath,(0,re._)`""`),e.var(ae.default.parentData,(0,re._)`undefined`),e.var(ae.default.parentDataProperty,(0,re._)`undefined`),e.var(ae.default.rootData,ae.default.data),t.dynamicRef&&e.var(ae.default.dynamicAnchors,(0,re._)`{}`)})}function pU(e){let{schema:t,opts:r,gen:n}=e;fk(e,()=>{r.$comment&&t.$comment&&wk(e),gU(e),n.let(ae.default.vErrors,null),n.let(ae.default.errors,0),r.unevaluated&&dU(e),yk(e),vU(e)})}function dU(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,re._)`${r}.evaluated`),t.if((0,re._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,re._)`${e.evaluated}.props`,(0,re._)`undefined`)),t.if((0,re._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,re._)`${e.evaluated}.items`,(0,re._)`undefined`))}function lk(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,re._)`/*# sourceURL=${r} */`:re.nil}function fU(e,t){if(hk(e)&&(gk(e),mk(e))){mU(e,t);return}(0,dk.boolOrEmptySchema)(e,t)}function mk({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function hk(e){return typeof e.schema!="boolean"}function mU(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&wk(e),yU(e),wU(e);let s=n.const("_errs",ae.default.errors);yk(e,s),n.var(t,(0,re._)`${s} === ${ae.default.errors}`)}function gk(e){(0,bn.checkUnknownRules)(e),hU(e)}function yk(e,t){if(e.opts.jtd)return uk(e,[],!1,t);let r=(0,ck.getSchemaTypes)(e.schema),n=(0,ck.coerceAndCheckDataType)(e,r);uk(e,r,!n,t)}function hU(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,bn.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function gU(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,bn.checkStrictMode)(e,"default is ignored in the schema root")}function yU(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,aU.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function wU(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function wk({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let s=r.$comment;if(o.$comment===!0)e.code((0,re._)`${ae.default.self}.logger.log(${s})`);else if(typeof o.$comment=="function"){let i=(0,re.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,re._)`${ae.default.self}.opts.$comment(${s}, ${i}, ${a}.schema)`)}}function vU(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:s}=e;r.$async?t.if((0,re._)`${ae.default.errors} === 0`,()=>t.return(ae.default.data),()=>t.throw((0,re._)`new ${o}(${ae.default.vErrors})`)):(t.assign((0,re._)`${n}.errors`,ae.default.vErrors),s.unevaluated&&xU(e),t.return((0,re._)`${ae.default.errors} === 0`))}function xU({gen:e,evaluated:t,props:r,items:n}){r instanceof re.Name&&e.assign((0,re._)`${t}.props`,r),n instanceof re.Name&&e.assign((0,re._)`${t}.items`,n)}function uk(e,t,r,n){let{gen:o,schema:s,data:i,allErrors:a,opts:c,self:l}=e,{RULES:p}=l;if(s.$ref&&(c.ignoreKeywordsWithRef||!(0,bn.schemaHasRulesButRef)(s,p))){o.block(()=>xk(e,"$ref",p.all.$ref.definition));return}c.jtd||bU(e,t),o.block(()=>{for(let d of p.rules)u(d);u(p.post)});function u(d){(0,sm.shouldUseGroup)(s,d)&&(d.type?(o.if((0,yl.checkDataType)(d.type,i,c.strictNumbers)),pk(e,d),t.length===1&&t[0]===d.type&&r&&(o.else(),(0,yl.reportTypeError)(e)),o.endIf()):pk(e,d),a||o.if((0,re._)`${ae.default.errors} === ${n||0}`))}}function pk(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,iU.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,sm.shouldUseRule)(n,s)&&xk(e,s.keyword,s.definition,t.type)})}function bU(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(_U(e,t),e.opts.allowUnionTypes||SU(e,t),TU(e,e.dataTypes))}function _U(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{vk(e.dataTypes,r)||im(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),EU(e,t)}}function SU(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&im(e,"use allowUnionTypes to allow union type keyword")}function TU(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,sm.shouldUseRule)(e.schema,o)){let{type:s}=o.definition;s.length&&!s.some(i=>kU(t,i))&&im(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function kU(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function vk(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function EU(e,t){let r=[];for(let n of e.dataTypes)vk(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function im(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,bn.checkStrictMode)(e,t,e.opts.strictTypes)}var wl=class{constructor(t,r,n){if((0,zi.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,bn.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",bk(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,zi.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",ae.default.errors))}result(t,r,n){this.failResult((0,re.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,re.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,re._)`${r} !== undefined && (${(0,re.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Ki.reportExtraError:Ki.reportError)(this,this.def.error,r)}$dataError(){(0,Ki.reportError)(this,this.def.$dataError||Ki.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ki.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=re.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=re.nil,r=re.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:s,def:i}=this;n.if((0,re.or)((0,re._)`${o} === undefined`,r)),t!==re.nil&&n.assign(t,!0),(s.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==re.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:s}=this;return(0,re.or)(i(),a());function i(){if(n.length){if(!(r instanceof re.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,re._)`${(0,yl.checkDataTypes)(c,r,s.opts.strictNumbers,yl.DataType.Wrong)}`}return re.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,re._)`!${c}(${r})`}return re.nil}}subschema(t,r){let n=(0,om.getSubschema)(this.it,t);(0,om.extendSubschemaData)(n,this.it,t),(0,om.extendSubschemaMode)(n,t);let o={...this.it,...n,items:void 0,props:void 0};return fU(o,r),o}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=bn.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=bn.mergeEvaluated.items(o,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(t,re.Name)),!0}};Un.KeywordCxt=wl;function xk(e,t,r,n){let o=new wl(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,zi.funcKeywordCode)(o,r):"macro"in r?(0,zi.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,zi.funcKeywordCode)(o,r)}var RU=/^\/(?:[^~]|~0|~1)*$/,IU=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function bk(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,s;if(e==="")return ae.default.rootData;if(e[0]==="/"){if(!RU.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,s=ae.default.rootData}else{let l=IU.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(o=l[2],o==="#"){if(p>=t)throw new Error(c("property/index",p));return n[t-p]}if(p>t)throw new Error(c("data",p));if(s=r[t-p],!o)return s}let i=s,a=o.split("/");for(let l of a)l&&(s=(0,re._)`${s}${(0,re.getProperty)((0,bn.unescapeJsonPointer)(l))}`,i=(0,re._)`${i} && ${s}`);return i;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}Un.getData=bk});var Wi=v(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});var am=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};cm.default=am});var bs=v(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});var lm=Hi(),um=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,lm.resolveUrl)(t,r,n),this.missingSchema=(0,lm.normalizeId)((0,lm.getFullPath)(t,this.missingRef))}};pm.default=um});var Vi=v(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.resolveSchema=Tr.getCompilingSchema=Tr.resolveRef=Tr.compileSchema=Tr.SchemaEnv=void 0;var Fr=le(),AU=Wi(),_o=_r(),qr=Hi(),_k=xe(),CU=xs(),_s=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,qr.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};Tr.SchemaEnv=_s;function fm(e){let t=Sk.call(this,e);if(t)return t;let r=(0,qr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:s}=this.opts,i=new Fr.CodeGen(this.scope,{es5:n,lines:o,ownProperties:s}),a;e.$async&&(a=i.scopeValue("Error",{ref:AU.default,code:(0,Fr._)`require("ajv/dist/runtime/validation_error").default`}));let c=i.scopeName("validate");e.validateName=c;let l={gen:i,allErrors:this.opts.allErrors,data:_o.default.data,parentData:_o.default.parentData,parentDataProperty:_o.default.parentDataProperty,dataNames:[_o.default.data],dataPathArr:[Fr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Fr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Fr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Fr._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,CU.validateFunctionCode)(l),i.optimize(this.opts.code.optimize);let u=i.toString();p=`${i.scopeRefs(_o.default.scope)}return ${u}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let g=new Function(`${_o.default.self}`,`${_o.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:g}),g.errors=null,g.schema=e.schema,g.schemaEnv=e,e.$async&&(g.$async=!0),this.opts.code.source===!0&&(g.source={validateName:c,validateCode:u,scopeValues:i._values}),this.opts.unevaluated){let{props:m,items:h}=l;g.evaluated={props:m instanceof Fr.Name?void 0:m,items:h instanceof Fr.Name?void 0:h,dynamicProps:m instanceof Fr.Name,dynamicItems:h instanceof Fr.Name},g.source&&(g.source.evaluated=(0,Fr.stringify)(g.evaluated))}return e.validate=g,e}catch(u){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),u}finally{this._compilations.delete(e)}}Tr.compileSchema=fm;function PU(e,t,r){var n;r=(0,qr.resolveUrl)(this.opts.uriResolver,t,r);let o=e.refs[r];if(o)return o;let s=NU.call(this,e,r);if(s===void 0){let i=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;i&&(s=new _s({schema:i,schemaId:a,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=$U.call(this,s)}Tr.resolveRef=PU;function $U(e){return(0,qr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:fm.call(this,e)}function Sk(e){for(let t of this._compilations)if(OU(t,e))return t}Tr.getCompilingSchema=Sk;function OU(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function NU(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||vl.call(this,e,t)}function vl(e,t){let r=this.opts.uriResolver.parse(t),n=(0,qr._getFullPath)(this.opts.uriResolver,r),o=(0,qr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return dm.call(this,r,e);let s=(0,qr.normalizeId)(n),i=this.refs[s]||this.schemas[s];if(typeof i=="string"){let a=vl.call(this,e,i);return typeof a?.schema!="object"?void 0:dm.call(this,r,a)}if(typeof i?.schema=="object"){if(i.validate||fm.call(this,i),s===(0,qr.normalizeId)(t)){let{schema:a}=i,{schemaId:c}=this.opts,l=a[c];return l&&(o=(0,qr.resolveUrl)(this.opts.uriResolver,o,l)),new _s({schema:a,schemaId:c,root:e,baseId:o})}return dm.call(this,r,i)}}Tr.resolveSchema=vl;var MU=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function dm(e,{baseId:t,schema:r,root:n}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,_k.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!MU.has(a)&&l&&(t=(0,qr.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,_k.schemaHasRulesButRef)(r,this.RULES)){let a=(0,qr.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=vl.call(this,n,a)}let{schemaId:i}=this.opts;if(s=s||new _s({schema:r,schemaId:i,root:n,baseId:t}),s.schema!==s.root.schema)return s}});var Tk=v((eae,DU)=>{DU.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var hm=v((tae,Ik)=>{"use strict";var LU=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),Ek=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function mm(e){let t="",r=0,n=0;for(n=0;n<e.length;n++)if(r=e[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n<e.length;n++){if(r=e[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}var FU=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function kk(e){return e.length=0,!0}function qU(e,t,r){if(e.length){let n=mm(e);if(n!=="")t.push(n);else return r.error=!0,!1;e.length=0}return!0}function jU(e){let t=0,r={error:!1,address:"",zone:""},n=[],o=[],s=!1,i=!1,a=qU;for(let c=0;c<e.length;c++){let l=e[c];if(!(l==="["||l==="]"))if(l===":"){if(s===!0&&(i=!0),!a(o,n,r))break;if(++t>7){r.error=!0;break}c>0&&e[c-1]===":"&&(s=!0),n.push(":");continue}else if(l==="%"){if(!a(o,n,r))break;a=kk}else{o.push(l);continue}}return o.length&&(a===kk?r.zone=o.join(""):i?n.push(o.join("")):n.push(mm(o))),r.address=n.join(""),r}function Rk(e){if(UU(e,":")<2)return{host:e,isIPV6:!1};let t=jU(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:n}}}function UU(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function BU(e){let t=e,r=[],n=-1,o=0;for(;o=t.length;){if(o===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(o===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(o===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((n=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")}function GU(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}function HU(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!Ek(r)){let n=Rk(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=e.host}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}Ik.exports={nonSimpleDomain:FU,recomposeAuthority:HU,normalizeComponentEncoding:GU,removeDotSegments:BU,isIPv4:Ek,isUUID:LU,normalizeIPv6:Rk,stringArrayToHexStripped:mm}});var Ok=v((rae,$k)=>{"use strict";var{isUUID:KU}=hm(),zU=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,WU=["http","https","ws","wss","urn","urn:uuid"];function VU(e){return WU.indexOf(e)!==-1}function gm(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function Ak(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function Ck(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function YU(e){return e.secure=gm(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function JU(e){if((e.port===(gm(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function XU(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(zU);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let o=`${n}:${t.nid||e.nid}`,s=ym(o);e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function QU(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),o=`${r}:${t.nid||n}`,s=ym(o);s&&(e=s.serialize(e,t));let i=e,a=e.nss;return i.path=`${n||t.nid}:${a}`,t.skipEscape=!0,i}function ZU(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!KU(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function e2(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var Pk={scheme:"http",domainHost:!0,parse:Ak,serialize:Ck},t2={scheme:"https",domainHost:Pk.domainHost,parse:Ak,serialize:Ck},xl={scheme:"ws",domainHost:!0,parse:YU,serialize:JU},r2={scheme:"wss",domainHost:xl.domainHost,parse:xl.parse,serialize:xl.serialize},n2={scheme:"urn",parse:XU,serialize:QU,skipNormalize:!0},o2={scheme:"urn:uuid",parse:ZU,serialize:e2,skipNormalize:!0},bl={http:Pk,https:t2,ws:xl,wss:r2,urn:n2,"urn:uuid":o2};Object.setPrototypeOf(bl,null);function ym(e){return e&&(bl[e]||bl[e.toLowerCase()])||void 0}$k.exports={wsIsSecure:gm,SCHEMES:bl,isValidSchemeName:VU,getSchemeHandler:ym}});var Dk=v((nae,Sl)=>{"use strict";var{normalizeIPv6:s2,removeDotSegments:Yi,recomposeAuthority:i2,normalizeComponentEncoding:_l,isIPv4:a2,nonSimpleDomain:c2}=hm(),{SCHEMES:l2,getSchemeHandler:Nk}=Ok();function u2(e,t){return typeof e=="string"?e=en(_n(e,t),t):typeof e=="object"&&(e=_n(en(e,t),t)),e}function p2(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},o=Mk(_n(e,n),_n(t,n),n,!0);return n.skipEscape=!0,en(o,n)}function Mk(e,t,r,n){let o={};return n||(e=_n(en(e,r),r),t=_n(en(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=Yi(t.path||""),o.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=Yi(t.path||""),o.query=t.query):(t.path?(t.path[0]==="/"?o.path=Yi(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?o.path="/"+t.path:e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path,o.path=Yi(o.path)),o.query=t.query):(o.path=e.path,t.query!==void 0?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function d2(e,t,r){return typeof e=="string"?(e=unescape(e),e=en(_l(_n(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=en(_l(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=en(_l(_n(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=en(_l(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function en(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),o=[],s=Nk(n.scheme||r.scheme);s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&o.push(r.scheme,":");let i=i2(r);if(i!==void 0&&(n.reference!=="suffix"&&o.push("//"),o.push(i),r.path&&r.path[0]!=="/"&&o.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(a=Yi(a)),i===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),o.push(a)}return r.query!==void 0&&o.push("?",r.query),r.fragment!==void 0&&o.push("#",r.fragment),o.join("")}var f2=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function _n(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},o=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let s=e.match(f2);if(s){if(n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]),n.host)if(a2(n.host)===!1){let c=s2(n.host);n.host=c.host.toLowerCase(),o=c.isIPV6}else o=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let i=Nk(r.scheme||n.scheme);if(!r.unicodeSupport&&(!i||!i.unicodeSupport)&&n.host&&(r.domainHost||i&&i.domainHost)&&o===!1&&c2(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(a){n.error=n.error||"Host's domain name can not be converted to ASCII: "+a}(!i||i&&!i.skipNormalize)&&(e.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=unescape(n.host))),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),i&&i.parse&&i.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var wm={SCHEMES:l2,normalize:u2,resolve:p2,resolveComponent:Mk,equal:d2,serialize:en,parse:_n};Sl.exports=wm;Sl.exports.default=wm;Sl.exports.fastUri=wm});var Fk=v(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});var Lk=Dk();Lk.code='require("ajv/dist/runtime/uri").default';vm.default=Lk});var _m=v(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.CodeGen=Pt.Name=Pt.nil=Pt.stringify=Pt.str=Pt._=Pt.KeywordCxt=void 0;var m2=xs();Object.defineProperty(Pt,"KeywordCxt",{enumerable:!0,get:function(){return m2.KeywordCxt}});var Ss=le();Object.defineProperty(Pt,"_",{enumerable:!0,get:function(){return Ss._}});Object.defineProperty(Pt,"str",{enumerable:!0,get:function(){return Ss.str}});Object.defineProperty(Pt,"stringify",{enumerable:!0,get:function(){return Ss.stringify}});Object.defineProperty(Pt,"nil",{enumerable:!0,get:function(){return Ss.nil}});Object.defineProperty(Pt,"Name",{enumerable:!0,get:function(){return Ss.Name}});Object.defineProperty(Pt,"CodeGen",{enumerable:!0,get:function(){return Ss.CodeGen}});var h2=Wi(),Gk=bs(),g2=Vf(),Ji=Vi(),y2=le(),Xi=Hi(),Tl=Gi(),bm=xe(),qk=Tk(),w2=Fk(),Hk=(e,t)=>new RegExp(e,t);Hk.code="new RegExp";var v2=["removeAdditional","useDefaults","coerceTypes"],x2=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b2={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},_2={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},jk=200;function S2(e){var t,r,n,o,s,i,a,c,l,p,u,d,g,m,h,w,x,E,S,k,I,C,P,$,H;let ge=e.strict,De=(t=e.code)===null||t===void 0?void 0:t.optimize,Z=De===!0||De===void 0?1:De||0,J=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Hk,te=(o=e.uriResolver)!==null&&o!==void 0?o:w2.default;return{strictSchema:(i=(s=e.strictSchema)!==null&&s!==void 0?s:ge)!==null&&i!==void 0?i:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:ge)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:ge)!==null&&p!==void 0?p:"log",strictTuples:(d=(u=e.strictTuples)!==null&&u!==void 0?u:ge)!==null&&d!==void 0?d:"log",strictRequired:(m=(g=e.strictRequired)!==null&&g!==void 0?g:ge)!==null&&m!==void 0?m:!1,code:e.code?{...e.code,optimize:Z,regExp:J}:{optimize:Z,regExp:J},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:jk,loopEnum:(w=e.loopEnum)!==null&&w!==void 0?w:jk,meta:(x=e.meta)!==null&&x!==void 0?x:!0,messages:(E=e.messages)!==null&&E!==void 0?E:!0,inlineRefs:(S=e.inlineRefs)!==null&&S!==void 0?S:!0,schemaId:(k=e.schemaId)!==null&&k!==void 0?k:"$id",addUsedSchema:(I=e.addUsedSchema)!==null&&I!==void 0?I:!0,validateSchema:(C=e.validateSchema)!==null&&C!==void 0?C:!0,validateFormats:(P=e.validateFormats)!==null&&P!==void 0?P:!0,unicodeRegExp:($=e.unicodeRegExp)!==null&&$!==void 0?$:!0,int32range:(H=e.int32range)!==null&&H!==void 0?H:!0,uriResolver:te}}var Qi=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...S2(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new y2.ValueScope({scope:{},prefixes:x2,es5:r,lines:n}),this.logger=A2(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,g2.getRules)(),Uk.call(this,b2,t,"NOT SUPPORTED"),Uk.call(this,_2,t,"DEPRECATED","warn"),this._metaOpts=R2.call(this),t.formats&&k2.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&E2.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),T2.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=qk;n==="id"&&(o={...qk},o.id=o.$id,delete o.$id),r&&t&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let o=n(r);return"$async"in n||(this.errors=n.errors),o}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return o.call(this,t,r);async function o(p,u){await s.call(this,p.$schema);let d=this._addSchema(p,u);return d.validate||i.call(this,d)}async function s(p){p&&!this.getSchema(p)&&await o.call(this,{$ref:p},!0)}async function i(p){try{return this._compileSchemaEnv(p)}catch(u){if(!(u instanceof Gk.default))throw u;return a.call(this,u),await c.call(this,u.missingSchema),i.call(this,p)}}function a({missingSchema:p,missingRef:u}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${u} cannot be resolved`)}async function c(p){let u=await l.call(this,p);this.refs[p]||await s.call(this,u.$schema),this.refs[p]||this.addSchema(u,p,r)}async function l(p){let u=this._loading[p];if(u)return u;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,o=this.opts.validateSchema){if(Array.isArray(t)){for(let i of t)this.addSchema(i,void 0,n,o);return this}let s;if(typeof t=="object"){let{schemaId:i}=this.opts;if(s=t[i],s!==void 0&&typeof s!="string")throw new Error(`schema ${i} must be string`)}return r=(0,Xi.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,o,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let o=this.validate(n,t);if(!o&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return o}getSchema(t){let r;for(;typeof(r=Bk.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new Ji.SchemaEnv({schema:{},schemaId:n});if(r=Ji.resolveSchema.call(this,o,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Bk.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,Xi.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(P2.call(this,n,r),!r)return(0,bm.eachItem)(n,s=>xm.call(this,s)),this;O2.call(this,r);let o={...r,type:(0,Tl.getJSONTypes)(r.type),schemaType:(0,Tl.getJSONTypes)(r.schemaType)};return(0,bm.eachItem)(n,o.type.length===0?s=>xm.call(this,s,o):s=>o.type.forEach(i=>xm.call(this,s,o,i))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let o=n.rules.findIndex(s=>s.keyword===t);o>=0&&n.rules.splice(o,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(o=>`${n}${o.instancePath} ${o.message}`).reduce((o,s)=>o+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let o of r){let s=o.split("/").slice(1),i=t;for(let a of s)i=i[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,p=i[a];l&&p&&(i[a]=Kk(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let o=t[n];(!r||r.test(n))&&(typeof o=="string"?delete t[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete t[n]))}}_addSchema(t,r,n,o=this.opts.validateSchema,s=this.opts.addUsedSchema){let i,{schemaId:a}=this.opts;if(typeof t=="object")i=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,Xi.normalizeId)(i||n);let l=Xi.getSchemaRefs.call(this,t,n);return c=new Ji.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Ji.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{Ji.compileSchema.call(this,t)}finally{this.opts=r}}};Qi.ValidationError=h2.default;Qi.MissingRefError=Gk.default;Pt.default=Qi;function Uk(e,t,r,n="error"){for(let o in e){let s=o;s in t&&this.logger[n](`${r}: option ${o}. ${e[s]}`)}}function Bk(e){return e=(0,Xi.normalizeId)(e),this.schemas[e]||this.refs[e]}function T2(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function k2(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function E2(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function R2(){let e={...this.opts};for(let t of v2)delete e[t];return e}var I2={log(){},warn(){},error(){}};function A2(e){if(e===!1)return I2;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var C2=/^[a-z_$][a-z0-9_$:-]*$/i;function P2(e,t){let{RULES:r}=this;if((0,bm.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!C2.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function xm(e,t,r){var n;let o=t?.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,i=o?s.post:s.rules.find(({type:c})=>c===r);if(i||(i={type:r,rules:[]},s.rules.push(i)),s.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,Tl.getJSONTypes)(t.type),schemaType:(0,Tl.getJSONTypes)(t.schemaType)}};t.before?$2.call(this,i,a,t.before):i.rules.push(a),s.all[e]=a,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function $2(e,t,r){let n=e.rules.findIndex(o=>o.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function O2(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Kk(t)),e.validateSchema=this.compile(t,!0))}var N2={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Kk(e){return{anyOf:[e,N2]}}});var zk=v(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});var M2={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Sm.default=M2});var Rl=v(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.callRef=So.getValidate=void 0;var D2=bs(),Wk=Sr(),nr=le(),Ts=_r(),Vk=Vi(),kl=xe(),L2={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:s,validateName:i,opts:a,self:c}=n,{root:l}=s;if((r==="#"||r==="#/")&&o===l.baseId)return u();let p=Vk.resolveRef.call(c,l,o,r);if(p===void 0)throw new D2.default(n.opts.uriResolver,o,r);if(p instanceof Vk.SchemaEnv)return d(p);return g(p);function u(){if(s===l)return El(e,i,s,s.$async);let m=t.scopeValue("root",{ref:l});return El(e,(0,nr._)`${m}.validate`,l,l.$async)}function d(m){let h=Yk(e,m);El(e,h,m,m.$async)}function g(m){let h=t.scopeValue("schema",a.code.source===!0?{ref:m,code:(0,nr.stringify)(m)}:{ref:m}),w=t.name("valid"),x=e.subschema({schema:m,dataTypes:[],schemaPath:nr.nil,topSchemaRef:h,errSchemaPath:r},w);e.mergeEvaluated(x),e.ok(w)}}};function Yk(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,nr._)`${r.scopeValue("wrapper",{ref:t})}.validate`}So.getValidate=Yk;function El(e,t,r,n){let{gen:o,it:s}=e,{allErrors:i,schemaEnv:a,opts:c}=s,l=c.passContext?Ts.default.this:nr.nil;n?p():u();function p(){if(!a.$async)throw new Error("async schema referenced by sync schema");let m=o.let("valid");o.try(()=>{o.code((0,nr._)`await ${(0,Wk.callValidateCode)(e,t,l)}`),g(t),i||o.assign(m,!0)},h=>{o.if((0,nr._)`!(${h} instanceof ${s.ValidationError})`,()=>o.throw(h)),d(h),i||o.assign(m,!1)}),e.ok(m)}function u(){e.result((0,Wk.callValidateCode)(e,t,l),()=>g(t),()=>d(t))}function d(m){let h=(0,nr._)`${m}.errors`;o.assign(Ts.default.vErrors,(0,nr._)`${Ts.default.vErrors} === null ? ${h} : ${Ts.default.vErrors}.concat(${h})`),o.assign(Ts.default.errors,(0,nr._)`${Ts.default.vErrors}.length`)}function g(m){var h;if(!s.opts.unevaluated)return;let w=(h=r?.validate)===null||h===void 0?void 0:h.evaluated;if(s.props!==!0)if(w&&!w.dynamicProps)w.props!==void 0&&(s.props=kl.mergeEvaluated.props(o,w.props,s.props));else{let x=o.var("props",(0,nr._)`${m}.evaluated.props`);s.props=kl.mergeEvaluated.props(o,x,s.props,nr.Name)}if(s.items!==!0)if(w&&!w.dynamicItems)w.items!==void 0&&(s.items=kl.mergeEvaluated.items(o,w.items,s.items));else{let x=o.var("items",(0,nr._)`${m}.evaluated.items`);s.items=kl.mergeEvaluated.items(o,x,s.items,nr.Name)}}}So.callRef=El;So.default=L2});var km=v(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});var F2=zk(),q2=Rl(),j2=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",F2.default,q2.default];Tm.default=j2});var Jk=v(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});var Il=le(),Bn=Il.operators,Al={maximum:{okStr:"<=",ok:Bn.LTE,fail:Bn.GT},minimum:{okStr:">=",ok:Bn.GTE,fail:Bn.LT},exclusiveMaximum:{okStr:"<",ok:Bn.LT,fail:Bn.GTE},exclusiveMinimum:{okStr:">",ok:Bn.GT,fail:Bn.LTE}},U2={message:({keyword:e,schemaCode:t})=>(0,Il.str)`must be ${Al[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Il._)`{comparison: ${Al[e].okStr}, limit: ${t}}`},B2={keyword:Object.keys(Al),type:"number",schemaType:"number",$data:!0,error:U2,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Il._)`${r} ${Al[t].fail} ${n} || isNaN(${r})`)}};Em.default=B2});var Xk=v(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});var Zi=le(),G2={message:({schemaCode:e})=>(0,Zi.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Zi._)`{multipleOf: ${e}}`},H2={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:G2,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,s=o.opts.multipleOfPrecision,i=t.let("res"),a=s?(0,Zi._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${s}`:(0,Zi._)`${i} !== parseInt(${i})`;e.fail$data((0,Zi._)`(${n} === 0 || (${i} = ${r}/${n}, ${a}))`)}};Rm.default=H2});var Zk=v(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});function Qk(e){let t=e.length,r=0,n=0,o;for(;n<t;)r++,o=e.charCodeAt(n++),o>=55296&&o<=56319&&n<t&&(o=e.charCodeAt(n),(o&64512)===56320&&n++);return r}Im.default=Qk;Qk.code='require("ajv/dist/runtime/ucs2length").default'});var eE=v(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});var To=le(),K2=xe(),z2=Zk(),W2={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,To.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,To._)`{limit: ${e}}`},V2={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:W2,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,s=t==="maxLength"?To.operators.GT:To.operators.LT,i=o.opts.unicode===!1?(0,To._)`${r}.length`:(0,To._)`${(0,K2.useFunc)(e.gen,z2.default)}(${r})`;e.fail$data((0,To._)`${i} ${s} ${n}`)}};Am.default=V2});var tE=v(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});var Y2=Sr(),Cl=le(),J2={message:({schemaCode:e})=>(0,Cl.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Cl._)`{pattern: ${e}}`},X2={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:J2,code(e){let{data:t,$data:r,schema:n,schemaCode:o,it:s}=e,i=s.opts.unicodeRegExp?"u":"",a=r?(0,Cl._)`(new RegExp(${o}, ${i}))`:(0,Y2.usePattern)(e,n);e.fail$data((0,Cl._)`!${a}.test(${t})`)}};Cm.default=X2});var rE=v(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});var ea=le(),Q2={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,ea.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,ea._)`{limit: ${e}}`},Z2={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Q2,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?ea.operators.GT:ea.operators.LT;e.fail$data((0,ea._)`Object.keys(${r}).length ${o} ${n}`)}};Pm.default=Z2});var nE=v($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});var ta=Sr(),ra=le(),eB=xe(),tB={message:({params:{missingProperty:e}})=>(0,ra.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,ra._)`{missingProperty: ${e}}`},rB={keyword:"required",type:"object",schemaType:"array",$data:!0,error:tB,code(e){let{gen:t,schema:r,schemaCode:n,data:o,$data:s,it:i}=e,{opts:a}=i;if(!s&&r.length===0)return;let c=r.length>=a.loopRequired;if(i.allErrors?l():p(),a.strictRequired){let g=e.parentSchema.properties,{definedProperties:m}=e.it;for(let h of r)if(g?.[h]===void 0&&!m.has(h)){let w=i.schemaEnv.baseId+i.errSchemaPath,x=`required property "${h}" is not defined at "${w}" (strictRequired)`;(0,eB.checkStrictMode)(i,x,i.opts.strictRequired)}}function l(){if(c||s)e.block$data(ra.nil,u);else for(let g of r)(0,ta.checkReportMissingProp)(e,g)}function p(){let g=t.let("missing");if(c||s){let m=t.let("valid",!0);e.block$data(m,()=>d(g,m)),e.ok(m)}else t.if((0,ta.checkMissingProp)(e,r,g)),(0,ta.reportMissingProp)(e,g),t.else()}function u(){t.forOf("prop",n,g=>{e.setParams({missingProperty:g}),t.if((0,ta.noPropertyInData)(t,o,g,a.ownProperties),()=>e.error())})}function d(g,m){e.setParams({missingProperty:g}),t.forOf(g,n,()=>{t.assign(m,(0,ta.propertyInData)(t,o,g,a.ownProperties)),t.if((0,ra.not)(m),()=>{e.error(),t.break()})},ra.nil)}}};$m.default=rB});var oE=v(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});var na=le(),nB={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,na.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,na._)`{limit: ${e}}`},oB={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:nB,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?na.operators.GT:na.operators.LT;e.fail$data((0,na._)`${r}.length ${o} ${n}`)}};Om.default=oB});var Pl=v(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});var sE=rm();sE.code='require("ajv/dist/runtime/equal").default';Nm.default=sE});var iE=v(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});var Mm=Gi(),$t=le(),sB=xe(),iB=Pl(),aB={message:({params:{i:e,j:t}})=>(0,$t.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,$t._)`{i: ${e}, j: ${t}}`},cB={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:aB,code(e){let{gen:t,data:r,$data:n,schema:o,parentSchema:s,schemaCode:i,it:a}=e;if(!n&&!o)return;let c=t.let("valid"),l=s.items?(0,Mm.getSchemaTypes)(s.items):[];e.block$data(c,p,(0,$t._)`${i} === false`),e.ok(c);function p(){let m=t.let("i",(0,$t._)`${r}.length`),h=t.let("j");e.setParams({i:m,j:h}),t.assign(c,!0),t.if((0,$t._)`${m} > 1`,()=>(u()?d:g)(m,h))}function u(){return l.length>0&&!l.some(m=>m==="object"||m==="array")}function d(m,h){let w=t.name("item"),x=(0,Mm.checkDataTypes)(l,w,a.opts.strictNumbers,Mm.DataType.Wrong),E=t.const("indices",(0,$t._)`{}`);t.for((0,$t._)`;${m}--;`,()=>{t.let(w,(0,$t._)`${r}[${m}]`),t.if(x,(0,$t._)`continue`),l.length>1&&t.if((0,$t._)`typeof ${w} == "string"`,(0,$t._)`${w} += "_"`),t.if((0,$t._)`typeof ${E}[${w}] == "number"`,()=>{t.assign(h,(0,$t._)`${E}[${w}]`),e.error(),t.assign(c,!1).break()}).code((0,$t._)`${E}[${w}] = ${m}`)})}function g(m,h){let w=(0,sB.useFunc)(t,iB.default),x=t.name("outer");t.label(x).for((0,$t._)`;${m}--;`,()=>t.for((0,$t._)`${h} = ${m}; ${h}--;`,()=>t.if((0,$t._)`${w}(${r}[${m}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(x)})))}}};Dm.default=cB});var aE=v(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});var Lm=le(),lB=xe(),uB=Pl(),pB={message:"must be equal to constant",params:({schemaCode:e})=>(0,Lm._)`{allowedValue: ${e}}`},dB={keyword:"const",$data:!0,error:pB,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Lm._)`!${(0,lB.useFunc)(t,uB.default)}(${r}, ${o})`):e.fail((0,Lm._)`${s} !== ${r}`)}};Fm.default=dB});var cE=v(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});var oa=le(),fB=xe(),mB=Pl(),hB={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,oa._)`{allowedValues: ${e}}`},gB={keyword:"enum",schemaType:"array",$data:!0,error:hB,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:s,it:i}=e;if(!n&&o.length===0)throw new Error("enum must have non-empty array");let a=o.length>=i.opts.loopEnum,c,l=()=>c??(c=(0,fB.useFunc)(t,mB.default)),p;if(a||n)p=t.let("valid"),e.block$data(p,u);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let g=t.const("vSchema",s);p=(0,oa.or)(...o.map((m,h)=>d(g,h)))}e.pass(p);function u(){t.assign(p,!1),t.forOf("v",s,g=>t.if((0,oa._)`${l()}(${r}, ${g})`,()=>t.assign(p,!0).break()))}function d(g,m){let h=o[m];return typeof h=="object"&&h!==null?(0,oa._)`${l()}(${r}, ${g}[${m}])`:(0,oa._)`${r} === ${h}`}}};qm.default=gB});var Um=v(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});var yB=Jk(),wB=Xk(),vB=eE(),xB=tE(),bB=rE(),_B=nE(),SB=oE(),TB=iE(),kB=aE(),EB=cE(),RB=[yB.default,wB.default,vB.default,xB.default,bB.default,_B.default,SB.default,TB.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},kB.default,EB.default];jm.default=RB});var Gm=v(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.validateAdditionalItems=void 0;var ko=le(),Bm=xe(),IB={message:({params:{len:e}})=>(0,ko.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ko._)`{limit: ${e}}`},AB={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:IB,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Bm.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}lE(e,n)}};function lE(e,t){let{gen:r,schema:n,data:o,keyword:s,it:i}=e;i.items=!0;let a=r.const("len",(0,ko._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,ko._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,Bm.alwaysValidSchema)(i,n)){let l=r.var("valid",(0,ko._)`${a} <= ${t.length}`);r.if((0,ko.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,p=>{e.subschema({keyword:s,dataProp:p,dataPropType:Bm.Type.Num},l),i.allErrors||r.if((0,ko.not)(l),()=>r.break())})}}sa.validateAdditionalItems=lE;sa.default=AB});var Hm=v(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.validateTuple=void 0;var uE=le(),$l=xe(),CB=Sr(),PB={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return pE(e,"additionalItems",t);r.items=!0,!(0,$l.alwaysValidSchema)(r,t)&&e.ok((0,CB.validateArray)(e))}};function pE(e,t,r=e.schema){let{gen:n,parentSchema:o,data:s,keyword:i,it:a}=e;p(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=$l.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,uE._)`${s}.length`);r.forEach((u,d)=>{(0,$l.alwaysValidSchema)(a,u)||(n.if((0,uE._)`${l} > ${d}`,()=>e.subschema({keyword:i,schemaProp:d,dataProp:d},c)),e.ok(c))});function p(u){let{opts:d,errSchemaPath:g}=a,m=r.length,h=m===u.minItems&&(m===u.maxItems||u[t]===!1);if(d.strictTuples&&!h){let w=`"${i}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${g}"`;(0,$l.checkStrictMode)(a,w,d.strictTuples)}}}ia.validateTuple=pE;ia.default=PB});var dE=v(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});var $B=Hm(),OB={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,$B.validateTuple)(e,"items")};Km.default=OB});var mE=v(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});var fE=le(),NB=xe(),MB=Sr(),DB=Gm(),LB={message:({params:{len:e}})=>(0,fE.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,fE._)`{limit: ${e}}`},FB={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:LB,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,NB.alwaysValidSchema)(n,t)&&(o?(0,DB.validateAdditionalItems)(e,o):e.ok((0,MB.validateArray)(e)))}};zm.default=FB});var hE=v(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});var kr=le(),Ol=xe(),qB={message:({params:{min:e,max:t}})=>t===void 0?(0,kr.str)`must contain at least ${e} valid item(s)`:(0,kr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,kr._)`{minContains: ${e}}`:(0,kr._)`{minContains: ${e}, maxContains: ${t}}`},jB={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:qB,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:s}=e,i,a,{minContains:c,maxContains:l}=n;s.opts.next?(i=c===void 0?1:c,a=l):i=1;let p=t.const("len",(0,kr._)`${o}.length`);if(e.setParams({min:i,max:a}),a===void 0&&i===0){(0,Ol.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&i>a){(0,Ol.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Ol.alwaysValidSchema)(s,r)){let h=(0,kr._)`${p} >= ${i}`;a!==void 0&&(h=(0,kr._)`${h} && ${p} <= ${a}`),e.pass(h);return}s.items=!0;let u=t.name("valid");a===void 0&&i===1?g(u,()=>t.if(u,()=>t.break())):i===0?(t.let(u,!0),a!==void 0&&t.if((0,kr._)`${o}.length > 0`,d)):(t.let(u,!1),d()),e.result(u,()=>e.reset());function d(){let h=t.name("_valid"),w=t.let("count",0);g(h,()=>t.if(h,()=>m(w)))}function g(h,w){t.forRange("i",0,p,x=>{e.subschema({keyword:"contains",dataProp:x,dataPropType:Ol.Type.Num,compositeRule:!0},h),w()})}function m(h){t.code((0,kr._)`${h}++`),a===void 0?t.if((0,kr._)`${h} >= ${i}`,()=>t.assign(u,!0).break()):(t.if((0,kr._)`${h} > ${a}`,()=>t.assign(u,!1).break()),i===1?t.assign(u,!0):t.if((0,kr._)`${h} >= ${i}`,()=>t.assign(u,!0)))}}};Wm.default=jB});var Nl=v(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.validateSchemaDeps=tn.validatePropertyDeps=tn.error=void 0;var Vm=le(),UB=xe(),aa=Sr();tn.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Vm.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Vm._)`{property: ${e},
27
21
  missingProperty: ${n},
28
22
  depsCount: ${t},
29
- deps: ${r}}`};var y3={keyword:"dependencies",type:"object",schemaType:"object",error:In.error,code(e){let[t,r]=v3(e);ER(e,t),TR(e,r)}};function v3({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let o=Array.isArray(e[n])?t:r;o[n]=e[n]}return[t,r]}function ER(e,t=e.schema){let{gen:r,data:n,it:o}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let i in t){let a=t[i];if(a.length===0)continue;let c=(0,ac.propertyInData)(r,n,i,o.opts.ownProperties);e.setParams({property:i,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(c,()=>{for(let l of a)(0,ac.checkReportMissingProp)(e,l)}):(r.if((0,qg._)`${c} && (${(0,ac.checkMissingProp)(e,a,s)})`),(0,ac.reportMissingProp)(e,s),r.else())}}In.validatePropertyDeps=ER;function TR(e,t=e.schema){let{gen:r,data:n,keyword:o,it:s}=e,i=r.name("valid");for(let a in t)(0,g3.alwaysValidSchema)(s,t[a])||(r.if((0,ac.propertyInData)(r,n,a,s.opts.ownProperties),()=>{let c=e.subschema({keyword:o,schemaProp:a},i);e.mergeValidEvaluated(c,i)},()=>r.var(i,!0)),e.ok(i))}In.validateSchemaDeps=TR;In.default=y3});var IR=w(Ug=>{"use strict";Object.defineProperty(Ug,"__esModule",{value:!0});var RR=ye(),w3=Ne(),x3={message:"property name must be valid",params:({params:e})=>(0,RR._)`{propertyName: ${e.propertyName}}`},b3={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:x3,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,w3.alwaysValidSchema)(o,r))return;let s=t.name("valid");t.forIn("key",n,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},s),t.if((0,RR.not)(s),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(s)}};Ug.default=b3});var zg=w(Gg=>{"use strict";Object.defineProperty(Gg,"__esModule",{value:!0});var Tu=Br(),pn=ye(),_3=zn(),ku=Ne(),S3={message:"must NOT have additional properties",params:({params:e})=>(0,pn._)`{additionalProperty: ${e.additionalProperty}}`},E3={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:S3,code(e){let{gen:t,schema:r,parentSchema:n,data:o,errsCount:s,it:i}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=i;if(i.props=!0,c.removeAdditional!=="all"&&(0,ku.alwaysValidSchema)(i,r))return;let l=(0,Tu.allSchemaProperties)(n.properties),u=(0,Tu.allSchemaProperties)(n.patternProperties);p(),e.ok((0,pn._)`${s} === ${_3.default.errors}`);function p(){t.forIn("key",o,v=>{!l.length&&!u.length?f(v):t.if(m(v),()=>f(v))})}function m(v){let x;if(l.length>8){let I=(0,ku.schemaRefOrVal)(i,n.properties,"properties");x=(0,Tu.isOwnProperty)(t,I,v)}else l.length?x=(0,pn.or)(...l.map(I=>(0,pn._)`${v} === ${I}`)):x=pn.nil;return u.length&&(x=(0,pn.or)(x,...u.map(I=>(0,pn._)`${(0,Tu.usePattern)(e,I)}.test(${v})`))),(0,pn.not)(x)}function h(v){t.code((0,pn._)`delete ${o}[${v}]`)}function f(v){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,ku.alwaysValidSchema)(i,r)){let x=t.name("valid");c.removeAdditional==="failing"?(g(v,x,!1),t.if((0,pn.not)(x),()=>{e.reset(),h(v)})):(g(v,x),a||t.if((0,pn.not)(x),()=>t.break()))}}function g(v,x,I){let k={keyword:"additionalProperties",dataProp:v,dataPropType:ku.Type.Str};I===!1&&Object.assign(k,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(k,x)}}};Gg.default=E3});var CR=w(Hg=>{"use strict";Object.defineProperty(Hg,"__esModule",{value:!0});var T3=Ka(),PR=Br(),Bg=Ne(),AR=zg(),k3={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&AR.default.code(new T3.KeywordCxt(s,AR.default,"additionalProperties"));let i=(0,PR.allSchemaProperties)(r);for(let p of i)s.definedProperties.add(p);s.opts.unevaluated&&i.length&&s.props!==!0&&(s.props=Bg.mergeEvaluated.props(t,(0,Bg.toHash)(i),s.props));let a=i.filter(p=>!(0,Bg.alwaysValidSchema)(s,r[p]));if(a.length===0)return;let c=t.name("valid");for(let p of a)l(p)?u(p):(t.if((0,PR.propertyInData)(t,o,p,s.opts.ownProperties)),u(p),s.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(c);function l(p){return s.opts.useDefaults&&!s.compositeRule&&r[p].default!==void 0}function u(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},c)}}};Hg.default=k3});var MR=w(Vg=>{"use strict";Object.defineProperty(Vg,"__esModule",{value:!0});var $R=Br(),Ru=ye(),OR=Ne(),NR=Ne(),R3={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:o,it:s}=e,{opts:i}=s,a=(0,$R.allSchemaProperties)(r),c=a.filter(g=>(0,OR.alwaysValidSchema)(s,r[g]));if(a.length===0||c.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let l=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=t.name("valid");s.props!==!0&&!(s.props instanceof Ru.Name)&&(s.props=(0,NR.evaluatedPropsToName)(t,s.props));let{props:p}=s;m();function m(){for(let g of a)l&&h(g),s.allErrors?f(g):(t.var(u,!0),f(g),t.if(u))}function h(g){for(let v in l)new RegExp(g).test(v)&&(0,OR.checkStrictMode)(s,`property ${v} matches pattern ${g} (use allowMatchingProperties)`)}function f(g){t.forIn("key",n,v=>{t.if((0,Ru._)`${(0,$R.usePattern)(e,g)}.test(${v})`,()=>{let x=c.includes(g);x||e.subschema({keyword:"patternProperties",schemaProp:g,dataProp:v,dataPropType:NR.Type.Str},u),s.opts.unevaluated&&p!==!0?t.assign((0,Ru._)`${p}[${v}]`,!0):!x&&!s.allErrors&&t.if((0,Ru.not)(u),()=>t.break())})})}}};Vg.default=R3});var DR=w(Wg=>{"use strict";Object.defineProperty(Wg,"__esModule",{value:!0});var I3=Ne(),P3={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,I3.alwaysValidSchema)(n,r)){e.fail();return}let o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Wg.default=P3});var LR=w(Kg=>{"use strict";Object.defineProperty(Kg,"__esModule",{value:!0});var A3=Br(),C3={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:A3.validateUnion,error:{message:"must match a schema in anyOf"}};Kg.default=C3});var jR=w(Yg=>{"use strict";Object.defineProperty(Yg,"__esModule",{value:!0});var Iu=ye(),$3=Ne(),O3={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Iu._)`{passingSchemas: ${e.passing}}`},N3={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:O3,code(e){let{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let s=r,i=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(i,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((u,p)=>{let m;(0,$3.alwaysValidSchema)(o,u)?t.var(c,!0):m=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},c),p>0&&t.if((0,Iu._)`${c} && ${i}`).assign(i,!1).assign(a,(0,Iu._)`[${a}, ${p}]`).else(),t.if(c,()=>{t.assign(i,!0),t.assign(a,p),m&&e.mergeEvaluated(m,Iu.Name)})})}}};Yg.default=N3});var FR=w(Jg=>{"use strict";Object.defineProperty(Jg,"__esModule",{value:!0});var M3=Ne(),D3={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let o=t.name("valid");r.forEach((s,i)=>{if((0,M3.alwaysValidSchema)(n,s))return;let a=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(a)})}};Jg.default=D3});var GR=w(Xg=>{"use strict";Object.defineProperty(Xg,"__esModule",{value:!0});var Pu=ye(),UR=Ne(),L3={message:({params:e})=>(0,Pu.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Pu._)`{failingKeyword: ${e.ifClause}}`},j3={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:L3,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,UR.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=qR(n,"then"),s=qR(n,"else");if(!o&&!s)return;let i=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),o&&s){let u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,l("then",u),l("else",u))}else o?t.if(a,l("then")):t.if((0,Pu.not)(a),l("else"));e.pass(i,()=>e.error(!0));function c(){let u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function l(u,p){return()=>{let m=e.subschema({keyword:u},a);t.assign(i,a),e.mergeValidEvaluated(m,i),p?t.assign(p,(0,Pu._)`${u}`):e.setParams({ifClause:u})}}}};function qR(e,t){let r=e.schema[t];return r!==void 0&&!(0,UR.alwaysValidSchema)(e,r)}Xg.default=j3});var zR=w(Qg=>{"use strict";Object.defineProperty(Qg,"__esModule",{value:!0});var F3=Ne(),q3={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,F3.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Qg.default=q3});var BR=w(Zg=>{"use strict";Object.defineProperty(Zg,"__esModule",{value:!0});var U3=Mg(),G3=xR(),z3=Dg(),B3=_R(),H3=SR(),V3=kR(),W3=IR(),K3=zg(),Y3=CR(),J3=MR(),X3=DR(),Q3=LR(),Z3=jR(),eV=FR(),tV=GR(),rV=zR();function nV(e=!1){let t=[X3.default,Q3.default,Z3.default,eV.default,tV.default,rV.default,W3.default,K3.default,V3.default,Y3.default,J3.default];return e?t.push(G3.default,B3.default):t.push(U3.default,z3.default),t.push(H3.default),t}Zg.default=nV});var HR=w(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});var St=ye(),oV={message:({schemaCode:e})=>(0,St.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,St._)`{format: ${e}}`},sV={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:oV,code(e,t){let{gen:r,data:n,$data:o,schema:s,schemaCode:i,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:p}=a;if(!c.validateFormats)return;o?m():h();function m(){let f=r.scopeValue("formats",{ref:p.formats,code:c.code.formats}),g=r.const("fDef",(0,St._)`${f}[${i}]`),v=r.let("fType"),x=r.let("format");r.if((0,St._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(v,(0,St._)`${g}.type || "string"`).assign(x,(0,St._)`${g}.validate`),()=>r.assign(v,(0,St._)`"string"`).assign(x,g)),e.fail$data((0,St.or)(I(),k()));function I(){return c.strictSchema===!1?St.nil:(0,St._)`${i} && !${x}`}function k(){let P=u.$async?(0,St._)`(${g}.async ? await ${x}(${n}) : ${x}(${n}))`:(0,St._)`${x}(${n})`,R=(0,St._)`(typeof ${x} == "function" ? ${P} : ${x}.test(${n}))`;return(0,St._)`${x} && ${x} !== true && ${v} === ${t} && !${R}`}}function h(){let f=p.formats[s];if(!f){I();return}if(f===!0)return;let[g,v,x]=k(f);g===t&&e.pass(P());function I(){if(c.strictSchema===!1){p.logger.warn(R());return}throw new Error(R());function R(){return`unknown format "${s}" ignored in schema at path "${l}"`}}function k(R){let A=R instanceof RegExp?(0,St.regexpCode)(R):c.code.formats?(0,St._)`${c.code.formats}${(0,St.getProperty)(s)}`:void 0,L=r.scopeValue("formats",{key:s,ref:R,code:A});return typeof R=="object"&&!(R instanceof RegExp)?[R.type||"string",R.validate,(0,St._)`${L}.validate`]:["string",R,L]}function P(){if(typeof f=="object"&&!(f instanceof RegExp)&&f.async){if(!u.$async)throw new Error("async format in sync schema");return(0,St._)`await ${x}(${n})`}return typeof v=="function"?(0,St._)`${x}(${n})`:(0,St._)`${x}.test(${n})`}}}};ey.default=sV});var VR=w(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});var iV=HR(),aV=[iV.default];ty.default=aV});var WR=w(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.contentVocabulary=ii.metadataVocabulary=void 0;ii.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];ii.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var YR=w(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});var cV=rR(),lV=gR(),uV=BR(),pV=VR(),KR=WR(),dV=[cV.default,lV.default,(0,uV.default)(),pV.default,KR.metadataVocabulary,KR.contentVocabulary];ry.default=dV});var XR=w(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.DiscrError=void 0;var JR;(function(e){e.Tag="tag",e.Mapping="mapping"})(JR||(Au.DiscrError=JR={}))});var ZR=w(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var ai=ye(),ny=XR(),QR=gu(),fV=Ya(),mV=Ne(),hV={message:({params:{discrError:e,tagName:t}})=>e===ny.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,ai._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},gV={keyword:"discriminator",type:"object",schemaType:"object",error:hV,code(e){let{gen:t,data:r,schema:n,parentSchema:o,it:s}=e,{oneOf:i}=o;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,ai._)`${r}${(0,ai.getProperty)(a)}`);t.if((0,ai._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:ny.DiscrError.Tag,tag:l,tagName:a})),e.ok(c);function u(){let h=m();t.if(!1);for(let f in h)t.elseIf((0,ai._)`${l} === ${f}`),t.assign(c,p(h[f]));t.else(),e.error(!1,{discrError:ny.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function p(h){let f=t.name("valid"),g=e.subschema({keyword:"oneOf",schemaProp:h},f);return e.mergeEvaluated(g,ai.Name),f}function m(){var h;let f={},g=x(o),v=!0;for(let P=0;P<i.length;P++){let R=i[P];if(R?.$ref&&!(0,mV.schemaHasRulesButRef)(R,s.self.RULES)){let L=R.$ref;if(R=QR.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,L),R instanceof QR.SchemaEnv&&(R=R.schema),R===void 0)throw new fV.default(s.opts.uriResolver,s.baseId,L)}let A=(h=R?.properties)===null||h===void 0?void 0:h[a];if(typeof A!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);v=v&&(g||x(R)),I(A,P)}if(!v)throw new Error(`discriminator: "${a}" must be required`);return f;function x({required:P}){return Array.isArray(P)&&P.includes(a)}function I(P,R){if(P.const)k(P.const,R);else if(P.enum)for(let A of P.enum)k(A,R);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function k(P,R){if(typeof P!="string"||P in f)throw new Error(`discriminator: "${a}" values must be unique strings`);f[P]=R}}}};oy.default=gV});var eI=w((oae,yV)=>{yV.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var rI=w((st,sy)=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.MissingRefError=st.ValidationError=st.CodeGen=st.Name=st.nil=st.stringify=st.str=st._=st.KeywordCxt=st.Ajv=void 0;var vV=Jk(),wV=YR(),xV=ZR(),tI=eI(),bV=["/properties"],Cu="http://json-schema.org/draft-07/schema",ci=class extends vV.default{_addVocabularies(){super._addVocabularies(),wV.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(xV.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(tI,bV):tI;this.addMetaSchema(t,Cu,!1),this.refs["http://json-schema.org/schema"]=Cu}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Cu)?Cu:void 0)}};st.Ajv=ci;sy.exports=st=ci;sy.exports.Ajv=ci;Object.defineProperty(st,"__esModule",{value:!0});st.default=ci;var _V=Ka();Object.defineProperty(st,"KeywordCxt",{enumerable:!0,get:function(){return _V.KeywordCxt}});var li=ye();Object.defineProperty(st,"_",{enumerable:!0,get:function(){return li._}});Object.defineProperty(st,"str",{enumerable:!0,get:function(){return li.str}});Object.defineProperty(st,"stringify",{enumerable:!0,get:function(){return li.stringify}});Object.defineProperty(st,"nil",{enumerable:!0,get:function(){return li.nil}});Object.defineProperty(st,"Name",{enumerable:!0,get:function(){return li.Name}});Object.defineProperty(st,"CodeGen",{enumerable:!0,get:function(){return li.CodeGen}});var SV=mu();Object.defineProperty(st,"ValidationError",{enumerable:!0,get:function(){return SV.default}});var EV=Ya();Object.defineProperty(st,"MissingRefError",{enumerable:!0,get:function(){return EV.default}})});var nI=w(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.formatLimitDefinition=void 0;var TV=rI(),dn=ye(),So=dn.operators,$u={formatMaximum:{okStr:"<=",ok:So.LTE,fail:So.GT},formatMinimum:{okStr:">=",ok:So.GTE,fail:So.LT},formatExclusiveMaximum:{okStr:"<",ok:So.LT,fail:So.GTE},formatExclusiveMinimum:{okStr:">",ok:So.GT,fail:So.LTE}},kV={message:({keyword:e,schemaCode:t})=>(0,dn.str)`should be ${$u[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,dn._)`{comparison: ${$u[e].okStr}, limit: ${t}}`};ui.formatLimitDefinition={keyword:Object.keys($u),type:"string",schemaType:"string",$data:!0,error:kV,code(e){let{gen:t,data:r,schemaCode:n,keyword:o,it:s}=e,{opts:i,self:a}=s;if(!i.validateFormats)return;let c=new TV.KeywordCxt(s,a.RULES.all.format.definition,"format");c.$data?l():u();function l(){let m=t.scopeValue("formats",{ref:a.formats,code:i.code.formats}),h=t.const("fmt",(0,dn._)`${m}[${c.schemaCode}]`);e.fail$data((0,dn.or)((0,dn._)`typeof ${h} != "object"`,(0,dn._)`${h} instanceof RegExp`,(0,dn._)`typeof ${h}.compare != "function"`,p(h)))}function u(){let m=c.schema,h=a.formats[m];if(!h||h===!0)return;if(typeof h!="object"||h instanceof RegExp||typeof h.compare!="function")throw new Error(`"${o}": format "${m}" does not define "compare" function`);let f=t.scopeValue("formats",{key:m,ref:h,code:i.code.formats?(0,dn._)`${i.code.formats}${(0,dn.getProperty)(m)}`:void 0});e.fail$data(p(f))}function p(m){return(0,dn._)`${m}.compare(${r}, ${n}) ${$u[o].fail} 0`}},dependencies:["format"]};var RV=e=>(e.addKeyword(ui.formatLimitDefinition),e);ui.default=RV});var aI=w((cc,iI)=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});var pi=GT(),IV=nI(),iy=ye(),oI=new iy.Name("fullFormats"),PV=new iy.Name("fastFormats"),ay=(e,t={keywords:!0})=>{if(Array.isArray(t))return sI(e,t,pi.fullFormats,oI),e;let[r,n]=t.mode==="fast"?[pi.fastFormats,PV]:[pi.fullFormats,oI],o=t.formats||pi.formatNames;return sI(e,o,r,n),t.keywords&&(0,IV.default)(e),e};ay.get=(e,t="full")=>{let n=(t==="fast"?pi.fastFormats:pi.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function sI(e,t,r,n){var o,s;(o=(s=e.opts.code).formats)!==null&&o!==void 0||(s.formats=(0,iy._)`require("ajv-formats/dist/formats").${n}`);for(let i of t)e.addFormat(i,r[i])}iI.exports=cc=ay;Object.defineProperty(cc,"__esModule",{value:!0});cc.default=ay});function cy(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let o of Reflect.ownKeys(t))AV(e,t,o,r);return $V(e,t),DV(e,t,n),e}var AV,CV,$V,OV,NV,MV,DV,cI=S(()=>{AV=(e,t,r,n)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;let o=Object.getOwnPropertyDescriptor(e,r),s=Object.getOwnPropertyDescriptor(t,r);!CV(o,s)&&n||Object.defineProperty(e,r,s)},CV=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},$V=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},OV=(e,t)=>`/* Wrapped ${e}*/
30
- ${t}`,NV=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),MV=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),DV=(e,t,r)=>{let n=r===""?"":`with ${r.trim()}() `,o=OV.bind(null,n,t.toString());Object.defineProperty(o,"name",MV);let{writable:s,enumerable:i,configurable:a}=NV;Object.defineProperty(e,"toString",{value:o,writable:s,enumerable:i,configurable:a})}});var LV,ly,lI=S(()=>{cI();LV=(e,t={})=>{if(typeof e!="function")throw new TypeError(`Expected the first argument to be a function, got \`${typeof e}\``);let{wait:r=0,maxWait:n=Number.POSITIVE_INFINITY,before:o=!1,after:s=!0}=t;if(r<0||n<0)throw new RangeError("`wait` and `maxWait` must not be negative.");if(!o&&!s)throw new Error("Both `before` and `after` are false, function wouldn't be called.");let i,a,c,l=function(...u){let p=this,m=()=>{i=void 0,a&&(clearTimeout(a),a=void 0),s&&(c=e.apply(p,u))},h=()=>{a=void 0,i&&(clearTimeout(i),i=void 0),s&&(c=e.apply(p,u))},f=o&&!i;return clearTimeout(i),i=setTimeout(m,r),n>0&&n!==Number.POSITIVE_INFINITY&&!a&&(a=setTimeout(h,n)),f&&(c=e.apply(p,u)),c};return cy(l,e),l.cancel=()=>{i&&(clearTimeout(i),i=void 0),a&&(clearTimeout(a),a=void 0)},l},ly=LV});var lc=w((lae,uI)=>{"use strict";var jV="2.0.0",FV=Number.MAX_SAFE_INTEGER||9007199254740991,qV=16,UV=250,GV=["major","premajor","minor","preminor","patch","prepatch","prerelease"];uI.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:qV,MAX_SAFE_BUILD_LENGTH:UV,MAX_SAFE_INTEGER:FV,RELEASE_TYPES:GV,SEMVER_SPEC_VERSION:jV,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var uc=w((uae,pI)=>{"use strict";var zV=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};pI.exports=zV});var di=w((Pn,dI)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:uy,MAX_SAFE_BUILD_LENGTH:BV,MAX_LENGTH:HV}=lc(),VV=uc();Pn=dI.exports={};var WV=Pn.re=[],KV=Pn.safeRe=[],z=Pn.src=[],YV=Pn.safeSrc=[],B=Pn.t={},JV=0,py="[a-zA-Z0-9-]",XV=[["\\s",1],["\\d",HV],[py,BV]],QV=e=>{for(let[t,r]of XV)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},de=(e,t,r)=>{let n=QV(t),o=JV++;VV(e,o,t),B[e]=o,z[o]=t,YV[o]=n,WV[o]=new RegExp(t,r?"g":void 0),KV[o]=new RegExp(n,r?"g":void 0)};de("NUMERICIDENTIFIER","0|[1-9]\\d*");de("NUMERICIDENTIFIERLOOSE","\\d+");de("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${py}*`);de("MAINVERSION",`(${z[B.NUMERICIDENTIFIER]})\\.(${z[B.NUMERICIDENTIFIER]})\\.(${z[B.NUMERICIDENTIFIER]})`);de("MAINVERSIONLOOSE",`(${z[B.NUMERICIDENTIFIERLOOSE]})\\.(${z[B.NUMERICIDENTIFIERLOOSE]})\\.(${z[B.NUMERICIDENTIFIERLOOSE]})`);de("PRERELEASEIDENTIFIER",`(?:${z[B.NONNUMERICIDENTIFIER]}|${z[B.NUMERICIDENTIFIER]})`);de("PRERELEASEIDENTIFIERLOOSE",`(?:${z[B.NONNUMERICIDENTIFIER]}|${z[B.NUMERICIDENTIFIERLOOSE]})`);de("PRERELEASE",`(?:-(${z[B.PRERELEASEIDENTIFIER]}(?:\\.${z[B.PRERELEASEIDENTIFIER]})*))`);de("PRERELEASELOOSE",`(?:-?(${z[B.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${z[B.PRERELEASEIDENTIFIERLOOSE]})*))`);de("BUILDIDENTIFIER",`${py}+`);de("BUILD",`(?:\\+(${z[B.BUILDIDENTIFIER]}(?:\\.${z[B.BUILDIDENTIFIER]})*))`);de("FULLPLAIN",`v?${z[B.MAINVERSION]}${z[B.PRERELEASE]}?${z[B.BUILD]}?`);de("FULL",`^${z[B.FULLPLAIN]}$`);de("LOOSEPLAIN",`[v=\\s]*${z[B.MAINVERSIONLOOSE]}${z[B.PRERELEASELOOSE]}?${z[B.BUILD]}?`);de("LOOSE",`^${z[B.LOOSEPLAIN]}$`);de("GTLT","((?:<|>)?=?)");de("XRANGEIDENTIFIERLOOSE",`${z[B.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);de("XRANGEIDENTIFIER",`${z[B.NUMERICIDENTIFIER]}|x|X|\\*`);de("XRANGEPLAIN",`[v=\\s]*(${z[B.XRANGEIDENTIFIER]})(?:\\.(${z[B.XRANGEIDENTIFIER]})(?:\\.(${z[B.XRANGEIDENTIFIER]})(?:${z[B.PRERELEASE]})?${z[B.BUILD]}?)?)?`);de("XRANGEPLAINLOOSE",`[v=\\s]*(${z[B.XRANGEIDENTIFIERLOOSE]})(?:\\.(${z[B.XRANGEIDENTIFIERLOOSE]})(?:\\.(${z[B.XRANGEIDENTIFIERLOOSE]})(?:${z[B.PRERELEASELOOSE]})?${z[B.BUILD]}?)?)?`);de("XRANGE",`^${z[B.GTLT]}\\s*${z[B.XRANGEPLAIN]}$`);de("XRANGELOOSE",`^${z[B.GTLT]}\\s*${z[B.XRANGEPLAINLOOSE]}$`);de("COERCEPLAIN",`(^|[^\\d])(\\d{1,${uy}})(?:\\.(\\d{1,${uy}}))?(?:\\.(\\d{1,${uy}}))?`);de("COERCE",`${z[B.COERCEPLAIN]}(?:$|[^\\d])`);de("COERCEFULL",z[B.COERCEPLAIN]+`(?:${z[B.PRERELEASE]})?(?:${z[B.BUILD]})?(?:$|[^\\d])`);de("COERCERTL",z[B.COERCE],!0);de("COERCERTLFULL",z[B.COERCEFULL],!0);de("LONETILDE","(?:~>?)");de("TILDETRIM",`(\\s*)${z[B.LONETILDE]}\\s+`,!0);Pn.tildeTrimReplace="$1~";de("TILDE",`^${z[B.LONETILDE]}${z[B.XRANGEPLAIN]}$`);de("TILDELOOSE",`^${z[B.LONETILDE]}${z[B.XRANGEPLAINLOOSE]}$`);de("LONECARET","(?:\\^)");de("CARETTRIM",`(\\s*)${z[B.LONECARET]}\\s+`,!0);Pn.caretTrimReplace="$1^";de("CARET",`^${z[B.LONECARET]}${z[B.XRANGEPLAIN]}$`);de("CARETLOOSE",`^${z[B.LONECARET]}${z[B.XRANGEPLAINLOOSE]}$`);de("COMPARATORLOOSE",`^${z[B.GTLT]}\\s*(${z[B.LOOSEPLAIN]})$|^$`);de("COMPARATOR",`^${z[B.GTLT]}\\s*(${z[B.FULLPLAIN]})$|^$`);de("COMPARATORTRIM",`(\\s*)${z[B.GTLT]}\\s*(${z[B.LOOSEPLAIN]}|${z[B.XRANGEPLAIN]})`,!0);Pn.comparatorTrimReplace="$1$2$3";de("HYPHENRANGE",`^\\s*(${z[B.XRANGEPLAIN]})\\s+-\\s+(${z[B.XRANGEPLAIN]})\\s*$`);de("HYPHENRANGELOOSE",`^\\s*(${z[B.XRANGEPLAINLOOSE]})\\s+-\\s+(${z[B.XRANGEPLAINLOOSE]})\\s*$`);de("STAR","(<|>)?=?\\s*\\*");de("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");de("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Ou=w((pae,fI)=>{"use strict";var ZV=Object.freeze({loose:!0}),eW=Object.freeze({}),tW=e=>e?typeof e!="object"?ZV:e:eW;fI.exports=tW});var dy=w((dae,gI)=>{"use strict";var mI=/^[0-9]+$/,hI=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let r=mI.test(e),n=mI.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},rW=(e,t)=>hI(t,e);gI.exports={compareIdentifiers:hI,rcompareIdentifiers:rW}});var Qt=w((fae,vI)=>{"use strict";var Nu=uc(),{MAX_LENGTH:yI,MAX_SAFE_INTEGER:Mu}=lc(),{safeRe:Du,t:Lu}=di(),nW=Ou(),{compareIdentifiers:fy}=dy(),my=class e{constructor(t,r){if(r=nW(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>yI)throw new TypeError(`version is longer than ${yI} characters`);Nu("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Du[Lu.LOOSE]:Du[Lu.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Mu||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Mu||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Mu||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let s=+o;if(s>=0&&s<Mu)return s}return o}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Nu("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],o=t.prerelease[r];if(Nu("prerelease compare",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return fy(n,o)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],o=t.build[r];if(Nu("build compare",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return fy(n,o)}while(++r)}inc(t,r,n){if(t.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let o=`-${r}`.match(this.options.loose?Du[Lu.PRERELEASELOOSE]:Du[Lu.PRERELEASE]);if(!o||o[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let o=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[o];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(r){let s=[r,o];n===!1&&(s=[r]),fy(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};vI.exports=my});var as=w((mae,xI)=>{"use strict";var wI=Qt(),oW=(e,t,r=!1)=>{if(e instanceof wI)return e;try{return new wI(e,t)}catch(n){if(!r)return null;throw n}};xI.exports=oW});var _I=w((hae,bI)=>{"use strict";var sW=as(),iW=(e,t)=>{let r=sW(e,t);return r?r.version:null};bI.exports=iW});var EI=w((gae,SI)=>{"use strict";var aW=as(),cW=(e,t)=>{let r=aW(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};SI.exports=cW});var RI=w((yae,kI)=>{"use strict";var TI=Qt(),lW=(e,t,r,n,o)=>{typeof r=="string"&&(o=n,n=r,r=void 0);try{return new TI(e instanceof TI?e.version:e,r).inc(t,n,o).version}catch{return null}};kI.exports=lW});var AI=w((vae,PI)=>{"use strict";var II=as(),uW=(e,t)=>{let r=II(e,null,!0),n=II(t,null,!0),o=r.compare(n);if(o===0)return null;let s=o>0,i=s?r:n,a=s?n:r,c=!!i.prerelease.length;if(!!a.prerelease.length&&!c){if(!a.patch&&!a.minor)return"major";if(a.compareMain(i)===0)return a.minor&&!a.patch?"minor":"patch"}let u=c?"pre":"";return r.major!==n.major?u+"major":r.minor!==n.minor?u+"minor":r.patch!==n.patch?u+"patch":"prerelease"};PI.exports=uW});var $I=w((wae,CI)=>{"use strict";var pW=Qt(),dW=(e,t)=>new pW(e,t).major;CI.exports=dW});var NI=w((xae,OI)=>{"use strict";var fW=Qt(),mW=(e,t)=>new fW(e,t).minor;OI.exports=mW});var DI=w((bae,MI)=>{"use strict";var hW=Qt(),gW=(e,t)=>new hW(e,t).patch;MI.exports=gW});var jI=w((_ae,LI)=>{"use strict";var yW=as(),vW=(e,t)=>{let r=yW(e,t);return r&&r.prerelease.length?r.prerelease:null};LI.exports=vW});var Wr=w((Sae,qI)=>{"use strict";var FI=Qt(),wW=(e,t,r)=>new FI(e,r).compare(new FI(t,r));qI.exports=wW});var GI=w((Eae,UI)=>{"use strict";var xW=Wr(),bW=(e,t,r)=>xW(t,e,r);UI.exports=bW});var BI=w((Tae,zI)=>{"use strict";var _W=Wr(),SW=(e,t)=>_W(e,t,!0);zI.exports=SW});var ju=w((kae,VI)=>{"use strict";var HI=Qt(),EW=(e,t,r)=>{let n=new HI(e,r),o=new HI(t,r);return n.compare(o)||n.compareBuild(o)};VI.exports=EW});var KI=w((Rae,WI)=>{"use strict";var TW=ju(),kW=(e,t)=>e.sort((r,n)=>TW(r,n,t));WI.exports=kW});var JI=w((Iae,YI)=>{"use strict";var RW=ju(),IW=(e,t)=>e.sort((r,n)=>RW(n,r,t));YI.exports=IW});var pc=w((Pae,XI)=>{"use strict";var PW=Wr(),AW=(e,t,r)=>PW(e,t,r)>0;XI.exports=AW});var Fu=w((Aae,QI)=>{"use strict";var CW=Wr(),$W=(e,t,r)=>CW(e,t,r)<0;QI.exports=$W});var hy=w((Cae,ZI)=>{"use strict";var OW=Wr(),NW=(e,t,r)=>OW(e,t,r)===0;ZI.exports=NW});var gy=w(($ae,eP)=>{"use strict";var MW=Wr(),DW=(e,t,r)=>MW(e,t,r)!==0;eP.exports=DW});var qu=w((Oae,tP)=>{"use strict";var LW=Wr(),jW=(e,t,r)=>LW(e,t,r)>=0;tP.exports=jW});var Uu=w((Nae,rP)=>{"use strict";var FW=Wr(),qW=(e,t,r)=>FW(e,t,r)<=0;rP.exports=qW});var yy=w((Mae,nP)=>{"use strict";var UW=hy(),GW=gy(),zW=pc(),BW=qu(),HW=Fu(),VW=Uu(),WW=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return UW(e,r,n);case"!=":return GW(e,r,n);case">":return zW(e,r,n);case">=":return BW(e,r,n);case"<":return HW(e,r,n);case"<=":return VW(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};nP.exports=WW});var sP=w((Dae,oP)=>{"use strict";var KW=Qt(),YW=as(),{safeRe:Gu,t:zu}=di(),JW=(e,t)=>{if(e instanceof KW)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?Gu[zu.COERCEFULL]:Gu[zu.COERCE]);else{let c=t.includePrerelease?Gu[zu.COERCERTLFULL]:Gu[zu.COERCERTL],l;for(;(l=c.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||l.index+l[0].length!==r.index+r[0].length)&&(r=l),c.lastIndex=l.index+l[1].length+l[2].length;c.lastIndex=-1}if(r===null)return null;let n=r[2],o=r[3]||"0",s=r[4]||"0",i=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return YW(`${n}.${o}.${s}${i}${a}`,t)};oP.exports=JW});var aP=w((Lae,iP)=>{"use strict";var vy=class{constructor(){this.max=1e3,this.map=new Map}get(t){let r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){let o=this.map.keys().next().value;this.delete(o)}this.map.set(t,r)}return this}};iP.exports=vy});var Kr=w((jae,pP)=>{"use strict";var XW=/\s+/g,wy=class e{constructor(t,r){if(r=ZW(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof xy)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(XW," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(o=>!lP(o[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let o of this.set)if(o.length===1&&iK(o[0])){this.set=[o];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let r=this.set[t];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let n=((this.options.includePrerelease&&oK)|(this.options.loose&&sK))+":"+t,o=cP.get(n);if(o)return o;let s=this.options.loose,i=s?ir[Zt.HYPHENRANGELOOSE]:ir[Zt.HYPHENRANGE];t=t.replace(i,gK(this.options.includePrerelease)),it("hyphen replace",t),t=t.replace(ir[Zt.COMPARATORTRIM],tK),it("comparator trim",t),t=t.replace(ir[Zt.TILDETRIM],rK),it("tilde trim",t),t=t.replace(ir[Zt.CARETTRIM],nK),it("caret trim",t);let a=t.split(" ").map(p=>aK(p,this.options)).join(" ").split(/\s+/).map(p=>hK(p,this.options));s&&(a=a.filter(p=>(it("loose invalid filter",p,this.options),!!p.match(ir[Zt.COMPARATORLOOSE])))),it("range list",a);let c=new Map,l=a.map(p=>new xy(p,this.options));for(let p of l){if(lP(p))return[p];c.set(p.value,p)}c.size>1&&c.has("")&&c.delete("");let u=[...c.values()];return cP.set(n,u),u}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>uP(n,r)&&t.set.some(o=>uP(o,r)&&n.every(s=>o.every(i=>s.intersects(i,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new eK(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(yK(this.set[r],t,this.options))return!0;return!1}};pP.exports=wy;var QW=aP(),cP=new QW,ZW=Ou(),xy=dc(),it=uc(),eK=Qt(),{safeRe:ir,t:Zt,comparatorTrimReplace:tK,tildeTrimReplace:rK,caretTrimReplace:nK}=di(),{FLAG_INCLUDE_PRERELEASE:oK,FLAG_LOOSE:sK}=lc(),lP=e=>e.value==="<0.0.0-0",iK=e=>e.value==="",uP=(e,t)=>{let r=!0,n=e.slice(),o=n.pop();for(;r&&n.length;)r=n.every(s=>o.intersects(s,t)),o=n.pop();return r},aK=(e,t)=>(e=e.replace(ir[Zt.BUILD],""),it("comp",e,t),e=uK(e,t),it("caret",e),e=cK(e,t),it("tildes",e),e=dK(e,t),it("xrange",e),e=mK(e,t),it("stars",e),e),ar=e=>!e||e.toLowerCase()==="x"||e==="*",cK=(e,t)=>e.trim().split(/\s+/).map(r=>lK(r,t)).join(" "),lK=(e,t)=>{let r=t.loose?ir[Zt.TILDELOOSE]:ir[Zt.TILDE];return e.replace(r,(n,o,s,i,a)=>{it("tilde",e,n,o,s,i,a);let c;return ar(o)?c="":ar(s)?c=`>=${o}.0.0 <${+o+1}.0.0-0`:ar(i)?c=`>=${o}.${s}.0 <${o}.${+s+1}.0-0`:a?(it("replaceTilde pr",a),c=`>=${o}.${s}.${i}-${a} <${o}.${+s+1}.0-0`):c=`>=${o}.${s}.${i} <${o}.${+s+1}.0-0`,it("tilde return",c),c})},uK=(e,t)=>e.trim().split(/\s+/).map(r=>pK(r,t)).join(" "),pK=(e,t)=>{it("caret",e,t);let r=t.loose?ir[Zt.CARETLOOSE]:ir[Zt.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(o,s,i,a,c)=>{it("caret",e,o,s,i,a,c);let l;return ar(s)?l="":ar(i)?l=`>=${s}.0.0${n} <${+s+1}.0.0-0`:ar(a)?s==="0"?l=`>=${s}.${i}.0${n} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.0${n} <${+s+1}.0.0-0`:c?(it("replaceCaret pr",c),s==="0"?i==="0"?l=`>=${s}.${i}.${a}-${c} <${s}.${i}.${+a+1}-0`:l=`>=${s}.${i}.${a}-${c} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${a}-${c} <${+s+1}.0.0-0`):(it("no pr"),s==="0"?i==="0"?l=`>=${s}.${i}.${a}${n} <${s}.${i}.${+a+1}-0`:l=`>=${s}.${i}.${a}${n} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${a} <${+s+1}.0.0-0`),it("caret return",l),l})},dK=(e,t)=>(it("replaceXRanges",e,t),e.split(/\s+/).map(r=>fK(r,t)).join(" ")),fK=(e,t)=>{e=e.trim();let r=t.loose?ir[Zt.XRANGELOOSE]:ir[Zt.XRANGE];return e.replace(r,(n,o,s,i,a,c)=>{it("xRange",e,n,o,s,i,a,c);let l=ar(s),u=l||ar(i),p=u||ar(a),m=p;return o==="="&&m&&(o=""),c=t.includePrerelease?"-0":"",l?o===">"||o==="<"?n="<0.0.0-0":n="*":o&&m?(u&&(i=0),a=0,o===">"?(o=">=",u?(s=+s+1,i=0,a=0):(i=+i+1,a=0)):o==="<="&&(o="<",u?s=+s+1:i=+i+1),o==="<"&&(c="-0"),n=`${o+s}.${i}.${a}${c}`):u?n=`>=${s}.0.0${c} <${+s+1}.0.0-0`:p&&(n=`>=${s}.${i}.0${c} <${s}.${+i+1}.0-0`),it("xRange return",n),n})},mK=(e,t)=>(it("replaceStars",e,t),e.trim().replace(ir[Zt.STAR],"")),hK=(e,t)=>(it("replaceGTE0",e,t),e.trim().replace(ir[t.includePrerelease?Zt.GTE0PRE:Zt.GTE0],"")),gK=e=>(t,r,n,o,s,i,a,c,l,u,p,m)=>(ar(n)?r="":ar(o)?r=`>=${n}.0.0${e?"-0":""}`:ar(s)?r=`>=${n}.${o}.0${e?"-0":""}`:i?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,ar(l)?c="":ar(u)?c=`<${+l+1}.0.0-0`:ar(p)?c=`<${l}.${+u+1}.0-0`:m?c=`<=${l}.${u}.${p}-${m}`:e?c=`<${l}.${u}.${+p+1}-0`:c=`<=${c}`,`${r} ${c}`.trim()),yK=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(it(e[n].semver),e[n].semver!==xy.ANY&&e[n].semver.prerelease.length>0){let o=e[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}});var dc=w((Fae,yP)=>{"use strict";var fc=Symbol("SemVer ANY"),Sy=class e{static get ANY(){return fc}constructor(t,r){if(r=dP(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),_y("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===fc?this.value="":this.value=this.operator+this.semver.version,_y("comp",this)}parse(t){let r=this.options.loose?fP[mP.COMPARATORLOOSE]:fP[mP.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new hP(n[2],this.options.loose):this.semver=fc}toString(){return this.value}test(t){if(_y("Comparator.test",t,this.options.loose),this.semver===fc||t===fc)return!0;if(typeof t=="string")try{t=new hP(t,this.options)}catch{return!1}return by(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new gP(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new gP(this.value,r).test(t.semver):(r=dP(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||by(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||by(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};yP.exports=Sy;var dP=Ou(),{safeRe:fP,t:mP}=di(),by=yy(),_y=uc(),hP=Qt(),gP=Kr()});var mc=w((qae,vP)=>{"use strict";var vK=Kr(),wK=(e,t,r)=>{try{t=new vK(t,r)}catch{return!1}return t.test(e)};vP.exports=wK});var xP=w((Uae,wP)=>{"use strict";var xK=Kr(),bK=(e,t)=>new xK(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));wP.exports=bK});var _P=w((Gae,bP)=>{"use strict";var _K=Qt(),SK=Kr(),EK=(e,t,r)=>{let n=null,o=null,s=null;try{s=new SK(t,r)}catch{return null}return e.forEach(i=>{s.test(i)&&(!n||o.compare(i)===-1)&&(n=i,o=new _K(n,r))}),n};bP.exports=EK});var EP=w((zae,SP)=>{"use strict";var TK=Qt(),kK=Kr(),RK=(e,t,r)=>{let n=null,o=null,s=null;try{s=new kK(t,r)}catch{return null}return e.forEach(i=>{s.test(i)&&(!n||o.compare(i)===1)&&(n=i,o=new TK(n,r))}),n};SP.exports=RK});var RP=w((Bae,kP)=>{"use strict";var Ey=Qt(),IK=Kr(),TP=pc(),PK=(e,t)=>{e=new IK(e,t);let r=new Ey("0.0.0");if(e.test(r)||(r=new Ey("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){let o=e.set[n],s=null;o.forEach(i=>{let a=new Ey(i.semver.version);switch(i.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||TP(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${i.operator}`)}}),s&&(!r||TP(r,s))&&(r=s)}return r&&e.test(r)?r:null};kP.exports=PK});var PP=w((Hae,IP)=>{"use strict";var AK=Kr(),CK=(e,t)=>{try{return new AK(e,t).range||"*"}catch{return null}};IP.exports=CK});var Bu=w((Vae,OP)=>{"use strict";var $K=Qt(),$P=dc(),{ANY:OK}=$P,NK=Kr(),MK=mc(),AP=pc(),CP=Fu(),DK=Uu(),LK=qu(),jK=(e,t,r,n)=>{e=new $K(e,n),t=new NK(t,n);let o,s,i,a,c;switch(r){case">":o=AP,s=DK,i=CP,a=">",c=">=";break;case"<":o=CP,s=LK,i=AP,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(MK(e,t,n))return!1;for(let l=0;l<t.set.length;++l){let u=t.set[l],p=null,m=null;if(u.forEach(h=>{h.semver===OK&&(h=new $P(">=0.0.0")),p=p||h,m=m||h,o(h.semver,p.semver,n)?p=h:i(h.semver,m.semver,n)&&(m=h)}),p.operator===a||p.operator===c||(!m.operator||m.operator===a)&&s(e,m.semver))return!1;if(m.operator===c&&i(e,m.semver))return!1}return!0};OP.exports=jK});var MP=w((Wae,NP)=>{"use strict";var FK=Bu(),qK=(e,t,r)=>FK(e,t,">",r);NP.exports=qK});var LP=w((Kae,DP)=>{"use strict";var UK=Bu(),GK=(e,t,r)=>UK(e,t,"<",r);DP.exports=GK});var qP=w((Yae,FP)=>{"use strict";var jP=Kr(),zK=(e,t,r)=>(e=new jP(e,r),t=new jP(t,r),e.intersects(t,r));FP.exports=zK});var GP=w((Jae,UP)=>{"use strict";var BK=mc(),HK=Wr();UP.exports=(e,t,r)=>{let n=[],o=null,s=null,i=e.sort((u,p)=>HK(u,p,r));for(let u of i)BK(u,t,r)?(s=u,o||(o=u)):(s&&n.push([o,s]),s=null,o=null);o&&n.push([o,null]);let a=[];for(let[u,p]of n)u===p?a.push(u):!p&&u===i[0]?a.push("*"):p?u===i[0]?a.push(`<=${p}`):a.push(`${u} - ${p}`):a.push(`>=${u}`);let c=a.join(" || "),l=typeof t.raw=="string"?t.raw:String(t);return c.length<l.length?c:t}});var KP=w((Xae,WP)=>{"use strict";var zP=Kr(),ky=dc(),{ANY:Ty}=ky,hc=mc(),Ry=Wr(),VK=(e,t,r={})=>{if(e===t)return!0;e=new zP(e,r),t=new zP(t,r);let n=!1;e:for(let o of e.set){for(let s of t.set){let i=KK(o,s,r);if(n=n||i!==null,i)continue e}if(n)return!1}return!0},WK=[new ky(">=0.0.0-0")],BP=[new ky(">=0.0.0")],KK=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Ty){if(t.length===1&&t[0].semver===Ty)return!0;r.includePrerelease?e=WK:e=BP}if(t.length===1&&t[0].semver===Ty){if(r.includePrerelease)return!0;t=BP}let n=new Set,o,s;for(let h of e)h.operator===">"||h.operator===">="?o=HP(o,h,r):h.operator==="<"||h.operator==="<="?s=VP(s,h,r):n.add(h.semver);if(n.size>1)return null;let i;if(o&&s){if(i=Ry(o.semver,s.semver,r),i>0)return null;if(i===0&&(o.operator!==">="||s.operator!=="<="))return null}for(let h of n){if(o&&!hc(h,String(o),r)||s&&!hc(h,String(s),r))return null;for(let f of t)if(!hc(h,String(f),r))return!1;return!0}let a,c,l,u,p=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,m=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1;p&&p.prerelease.length===1&&s.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let h of t){if(u=u||h.operator===">"||h.operator===">=",l=l||h.operator==="<"||h.operator==="<=",o){if(m&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===m.major&&h.semver.minor===m.minor&&h.semver.patch===m.patch&&(m=!1),h.operator===">"||h.operator===">="){if(a=HP(o,h,r),a===h&&a!==o)return!1}else if(o.operator===">="&&!hc(o.semver,String(h),r))return!1}if(s){if(p&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===p.major&&h.semver.minor===p.minor&&h.semver.patch===p.patch&&(p=!1),h.operator==="<"||h.operator==="<="){if(c=VP(s,h,r),c===h&&c!==s)return!1}else if(s.operator==="<="&&!hc(s.semver,String(h),r))return!1}if(!h.operator&&(s||o)&&i!==0)return!1}return!(o&&l&&!s&&i!==0||s&&u&&!o&&i!==0||m||p)},HP=(e,t,r)=>{if(!e)return t;let n=Ry(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},VP=(e,t,r)=>{if(!e)return t;let n=Ry(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};WP.exports=VK});var QP=w((Qae,XP)=>{"use strict";var Iy=di(),YP=lc(),YK=Qt(),JP=dy(),JK=as(),XK=_I(),QK=EI(),ZK=RI(),e4=AI(),t4=$I(),r4=NI(),n4=DI(),o4=jI(),s4=Wr(),i4=GI(),a4=BI(),c4=ju(),l4=KI(),u4=JI(),p4=pc(),d4=Fu(),f4=hy(),m4=gy(),h4=qu(),g4=Uu(),y4=yy(),v4=sP(),w4=dc(),x4=Kr(),b4=mc(),_4=xP(),S4=_P(),E4=EP(),T4=RP(),k4=PP(),R4=Bu(),I4=MP(),P4=LP(),A4=qP(),C4=GP(),$4=KP();XP.exports={parse:JK,valid:XK,clean:QK,inc:ZK,diff:e4,major:t4,minor:r4,patch:n4,prerelease:o4,compare:s4,rcompare:i4,compareLoose:a4,compareBuild:c4,sort:l4,rsort:u4,gt:p4,lt:d4,eq:f4,neq:m4,gte:h4,lte:g4,cmp:y4,coerce:v4,Comparator:w4,Range:x4,satisfies:b4,toComparators:_4,maxSatisfying:S4,minSatisfying:E4,minVersion:T4,validRange:k4,outside:R4,gtr:I4,ltr:P4,intersects:A4,simplifyRange:C4,subset:$4,SemVer:YK,re:Iy.re,src:Iy.src,tokens:Iy.t,SEMVER_SPEC_VERSION:YP.SEMVER_SPEC_VERSION,RELEASE_TYPES:YP.RELEASE_TYPES,compareIdentifiers:JP.compareIdentifiers,rcompareIdentifiers:JP.rcompareIdentifiers}});function eA(e,t,r){return e?e.constructor===t?!0:O4.call(e)===r:!1}function tA(e){return eA(e,Uint8Array,N4)}function D4(e){return eA(e,ArrayBuffer,M4)}function L4(e){return tA(e)||D4(e)}function j4(e){if(!tA(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}function F4(e){if(!L4(e))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``)}function Hu(e,t){if(e.length===0)return new Uint8Array(0);t??=e.reduce((o,s)=>o+s.length,0);let r=new Uint8Array(t),n=0;for(let o of e)j4(o),r.set(o,n),n+=o.length;return r}function gc(e,t="utf8"){return F4(e),ZP[t]??=new globalThis.TextDecoder(t),ZP[t].decode(e)}function q4(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}function Vu(e){return q4(e),U4.encode(e)}var O4,N4,M4,ZP,U4,Zae,rA=S(()=>{O4=Object.prototype.toString,N4="[object Uint8Array]",M4="[object ArrayBuffer]";ZP={utf8:new globalThis.TextDecoder("utf8")};U4=new globalThis.TextEncoder;Zae=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"))});import{isDeepStrictEqual as nA}from"node:util";import Py from"node:process";import Hn from"node:fs";import Wu from"node:path";import yc from"node:crypto";import oA from"node:assert";var aA,cA,cs,sA,lA,G4,Vn,iA,Ay,Eo,Cy,ls,$y=S(()=>{l0();p0();F0();aA=kr(NT(),1),cA=kr(aI(),1);lI();cs=kr(QP(),1);rA();sA="aes-256-cbc",lA=new Set(["aes-256-cbc","aes-256-gcm","aes-256-ctr"]),G4=e=>typeof e=="string"&&lA.has(e),Vn=()=>Object.create(null),iA=e=>e!==void 0,Ay=(e,t)=>{let r=new Set(["undefined","symbol","function"]),n=typeof t;if(r.has(n))throw new TypeError(`Setting a value of type \`${n}\` for key \`${e}\` is not allowed as it's not supported by JSON`)},Eo="__internal__",Cy=`${Eo}.migrations.version`,ls=class{path;events;#n;#o;#s;#e;#t={};#i=!1;#a;#c;#r;constructor(t={}){let r=this.#l(t);this.#e=r,this.#u(r),this.#d(r),this.#f(r),this.events=new EventTarget,this.#o=r.encryptionKey,this.#s=r.encryptionAlgorithm??sA,this.path=this.#m(r),this.#h(r),r.watch&&this._watch()}get(t,r){if(this.#e.accessPropertiesByDotNotation)return this._get(t,r);let{store:n}=this;return t in n?n[t]:r}set(t,r){if(typeof t!="string"&&typeof t!="object")throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof t}`);if(typeof t!="object"&&r===void 0)throw new TypeError("Use `delete()` to clear values");if(this._containsReservedKey(t))throw new TypeError(`Please don't use the ${Eo} key, as it's used to manage this module internal operations.`);let{store:n}=this,o=(s,i)=>{if(Ay(s,i),this.#e.accessPropertiesByDotNotation)Zi(n,s,i);else{if(s==="__proto__"||s==="constructor"||s==="prototype")return;n[s]=i}};if(typeof t=="object"){let s=t;for(let[i,a]of Object.entries(s))o(i,a)}else o(t,r);this.store=n}has(t){return this.#e.accessPropertiesByDotNotation?wl(this.store,t):t in this.store}appendToArray(t,r){Ay(t,r);let n=this.#e.accessPropertiesByDotNotation?this._get(t,[]):t in this.store?this.store[t]:[];if(!Array.isArray(n))throw new TypeError(`The key \`${t}\` is already set to a non-array value`);this.set(t,[...n,r])}reset(...t){for(let r of t)iA(this.#t[r])&&this.set(r,this.#t[r])}delete(t){let{store:r}=this;this.#e.accessPropertiesByDotNotation?c0(r,t):delete r[t],this.store=r}clear(){let t=Vn();for(let r of Object.keys(this.#t))iA(this.#t[r])&&(Ay(r,this.#t[r]),this.#e.accessPropertiesByDotNotation?Zi(t,r,this.#t[r]):t[r]=this.#t[r]);this.store=t}onDidChange(t,r){if(typeof t!="string")throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof t}`);if(typeof r!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof r}`);return this._handleValueChange(()=>this.get(t),r)}onDidAnyChange(t){if(typeof t!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof t}`);return this._handleStoreChange(t)}get size(){return Object.keys(this.store).filter(r=>!this._isReservedKeyPath(r)).length}get store(){try{let t=Hn.readFileSync(this.path,this.#o?null:"utf8"),r=this._decryptData(t);return(o=>{let s=this._deserialize(o);return this.#i||this._validate(s),Object.assign(Vn(),s)})(r)}catch(t){if(t?.code==="ENOENT")return this._ensureDirectory(),Vn();if(this.#e.clearInvalidConfig){let r=t;if(r.name==="SyntaxError"||r.message?.startsWith("Config schema violation:")||r.message==="Failed to decrypt config data.")return Vn()}throw t}}set store(t){if(this._ensureDirectory(),!wl(t,Eo))try{let r=Hn.readFileSync(this.path,this.#o?null:"utf8"),n=this._decryptData(r),o=this._deserialize(n);wl(o,Eo)&&Zi(t,Eo,cf(o,Eo))}catch{}this.#i||this._validate(t),this._write(t),this.events.dispatchEvent(new Event("change"))}*[Symbol.iterator](){for(let[t,r]of Object.entries(this.store))this._isReservedKeyPath(t)||(yield[t,r])}_closeWatcher(){this.#a&&(this.#a.close(),this.#a=void 0),this.#c&&(Hn.unwatchFile(this.path),this.#c=!1),this.#r=void 0}_decryptData(t){let r=this.#o;if(!r)return typeof t=="string"?t:gc(t);let n=this.#s,o=n==="aes-256-gcm"?16:0,s=":".codePointAt(0),i=typeof t=="string"?t.codePointAt(16):t[16];if(!(s!==void 0&&i===s)){if(n==="aes-256-cbc")return typeof t=="string"?t:gc(t);throw new Error("Failed to decrypt config data.")}let c=h=>{if(o===0)return{ciphertext:h};let f=h.length-o;if(f<0)throw new Error("Invalid authentication tag length.");return{ciphertext:h.slice(0,f),authenticationTag:h.slice(f)}},l=t.slice(0,16),u=t.slice(17),p=typeof u=="string"?Vu(u):u,m=h=>{let{ciphertext:f,authenticationTag:g}=c(p),v=yc.pbkdf2Sync(r,h,1e4,32,"sha512"),x=yc.createDecipheriv(n,v,l);return g&&x.setAuthTag(g),gc(Hu([x.update(f),x.final()]))};try{return m(l)}catch{try{return m(l.toString())}catch{}}if(n==="aes-256-cbc")return typeof t=="string"?t:gc(t);throw new Error("Failed to decrypt config data.")}_handleStoreChange(t){let r=this.store,n=()=>{let o=r,s=this.store;nA(s,o)||(r=s,t.call(this,s,o))};return this.events.addEventListener("change",n),()=>{this.events.removeEventListener("change",n)}}_handleValueChange(t,r){let n=t(),o=()=>{let s=n,i=t();nA(i,s)||(n=i,r.call(this,i,s))};return this.events.addEventListener("change",o),()=>{this.events.removeEventListener("change",o)}}_deserialize=t=>JSON.parse(t);_serialize=t=>JSON.stringify(t,void 0," ");_validate(t){if(!this.#n||this.#n(t)||!this.#n.errors)return;let n=this.#n.errors.map(({instancePath:o,message:s=""})=>`\`${o.slice(1)}\` ${s}`);throw new Error("Config schema violation: "+n.join("; "))}_ensureDirectory(){Hn.mkdirSync(Wu.dirname(this.path),{recursive:!0})}_write(t){let r=this._serialize(t),n=this.#o;if(n){let o=yc.randomBytes(16),s=yc.pbkdf2Sync(n,o,1e4,32,"sha512"),i=yc.createCipheriv(this.#s,s,o),a=Hu([i.update(Vu(r)),i.final()]),c=[o,Vu(":"),a];this.#s==="aes-256-gcm"&&c.push(i.getAuthTag()),r=Hu(c)}if(Py.env.SNAP)Hn.writeFileSync(this.path,r,{mode:this.#e.configFileMode});else try{Sf(this.path,r,{mode:this.#e.configFileMode})}catch(o){if(o?.code==="EXDEV"){Hn.writeFileSync(this.path,r,{mode:this.#e.configFileMode});return}throw o}}_watch(){if(this._ensureDirectory(),Hn.existsSync(this.path)||this._write(Vn()),Py.platform==="win32"||Py.platform==="darwin"){this.#r??=ly(()=>{this.events.dispatchEvent(new Event("change"))},{wait:100});let t=Wu.dirname(this.path),r=Wu.basename(this.path);this.#a=Hn.watch(t,{persistent:!1,encoding:"utf8"},(n,o)=>{o&&o!==r||typeof this.#r=="function"&&this.#r()})}else this.#r??=ly(()=>{this.events.dispatchEvent(new Event("change"))},{wait:1e3}),Hn.watchFile(this.path,{persistent:!1},(t,r)=>{typeof this.#r=="function"&&this.#r()}),this.#c=!0}_migrate(t,r,n){let o=this._get(Cy,"0.0.0"),s=Object.keys(t).filter(a=>this._shouldPerformMigration(a,o,r)),i=structuredClone(this.store);for(let a of s)try{n&&n(this,{fromVersion:o,toVersion:a,finalVersion:r,versions:s});let c=t[a];c?.(this),this._set(Cy,a),o=a,i=structuredClone(this.store)}catch(c){this.store=i;let l=c instanceof Error?c.message:String(c);throw new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${l}`)}(this._isVersionInRangeFormat(o)||!cs.default.eq(o,r))&&this._set(Cy,r)}_containsReservedKey(t){return typeof t=="string"?this._isReservedKeyPath(t):!t||typeof t!="object"?!1:this._objectContainsReservedKey(t)}_objectContainsReservedKey(t){if(!t||typeof t!="object")return!1;for(let[r,n]of Object.entries(t))if(this._isReservedKeyPath(r)||this._objectContainsReservedKey(n))return!0;return!1}_isReservedKeyPath(t){return t===Eo||t.startsWith(`${Eo}.`)}_isVersionInRangeFormat(t){return cs.default.clean(t)===null}_shouldPerformMigration(t,r,n){return this._isVersionInRangeFormat(t)?r!=="0.0.0"&&cs.default.satisfies(r,t)?!1:cs.default.satisfies(n,t):!(cs.default.lte(t,r)||cs.default.gt(t,n))}_get(t,r){return cf(this.store,t,r)}_set(t,r){let{store:n}=this;Zi(n,t,r),this.store=n}#l(t){let r={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438,...t};if(r.encryptionAlgorithm??=sA,!G4(r.encryptionAlgorithm))throw new TypeError(`The \`encryptionAlgorithm\` option must be one of: ${[...lA].join(", ")}`);if(!r.cwd){if(!r.projectName)throw new Error("Please specify the `projectName` option.");r.cwd=pf(r.projectName,{suffix:r.projectSuffix}).config}return typeof r.fileExtension=="string"&&(r.fileExtension=r.fileExtension.replace(/^\.+/,"")),r}#u(t){if(!(t.schema??t.ajvOptions??t.rootSchema))return;if(t.schema&&typeof t.schema!="object")throw new TypeError("The `schema` option must be an object.");let r=cA.default.default,n=new aA.Ajv2020({allErrors:!0,useDefaults:!0,...t.ajvOptions});r(n);let o={...t.rootSchema,type:"object",properties:t.schema};this.#n=n.compile(o),this.#p(t.schema)}#p(t){let r=Object.entries(t??{});for(let[n,o]of r){if(!o||typeof o!="object"||!Object.hasOwn(o,"default"))continue;let{default:s}=o;s!==void 0&&(this.#t[n]=s)}}#d(t){t.defaults&&Object.assign(this.#t,t.defaults)}#f(t){t.serialize&&(this._serialize=t.serialize),t.deserialize&&(this._deserialize=t.deserialize)}#m(t){let r=typeof t.fileExtension=="string"?t.fileExtension:void 0,n=r?`.${r}`:"";return Wu.resolve(t.cwd,`${t.configName??"config"}${n}`)}#h(t){if(t.migrations){this.#g(t),this._validate(this.store);return}let r=this.store,n=Object.assign(Vn(),t.defaults??{},r);this._validate(n);try{oA.deepEqual(r,n)}catch{this.store=n}}#g(t){let{migrations:r,projectVersion:n}=t;if(r){if(!n)throw new Error("Please specify the `projectVersion` option.");this.#i=!0;try{let o=this.store,s=Object.assign(Vn(),t.defaults??{},o);try{oA.deepEqual(o,s)}catch{this._write(s)}this._migrate(r,n,t.beforeEachMigration)}finally{this.#i=!1}}}}});import er from"node:fs";import Ku from"node:path";function H4(){return Ku.join(B4,".flowdot")}function pA(){return Ku.join(H4(),"logs")}function dA(){let e=pA();return uA?Ku.join(e,`${uA}.log`):Ku.join(e,"debug.log")}function V4(){try{let e=pA();er.existsSync(e)||er.mkdirSync(e,{recursive:!0,mode:448})}catch{}}function W4(e){try{if(!er.existsSync(e))return;let r=er.statSync(e).size;if(r>0){let o=er.openSync(e,"r+");try{let s=0,i=Buffer.alloc(Math.min(65536,r));for(;s<r;){let a=Math.min(65536,r-s);a<65536?er.writeSync(o,Buffer.alloc(a),0,a,s):er.writeSync(o,i,0,a,s),s+=a}er.fsyncSync(o)}finally{er.closeSync(o)}}er.unlinkSync(e)}catch{try{er.unlinkSync(e)}catch{}}}function K4(){try{let e=dA();if(er.existsSync(e)&&er.statSync(e).size>z4){let r=e+".old";er.existsSync(r)&&W4(r),er.renameSync(e,r)}}catch{}}function Oy(e,t,r,n=null){try{V4(),K4();let s={timestamp:new Date().toISOString(),level:e,category:t,message:r};n!=null&&(s.data=n);let i=JSON.stringify(s)+`
31
- `;er.appendFileSync(dA(),i,{encoding:"utf-8",mode:384})}catch{}}function C(e,t,r=null){Oy("DEBUG",e,t,r)}function U(e,t,r=null){Oy("WARN",e,t,r)}function le(e,t,r=null){Oy("ERROR",e,t,r)}var z4,B4,uA,G=S(()=>{"use strict";z4=10*1024*1024,B4=process.cwd(),uA=null});function J4(e){return e==="localhost"||e==="127.0.0.1"||e==="::1"||e==="[::1]"||e==="0.0.0.0"}function Ny(e){let t=e.trim();if(!t)return{valid:!1,normalizedUrl:"",error:"URL cannot be empty"};let r=["javascript:","data:","file:","vbscript:","about:"],n=t.toLowerCase();for(let l of r)if(n.startsWith(l))return{valid:!1,normalizedUrl:"",error:`Invalid URL scheme: ${l.slice(0,-1)} is not allowed`};let o;try{o=new URL(t)}catch{return{valid:!1,normalizedUrl:"",error:"Invalid URL format. Expected format: https://example.com or http://localhost:8000"}}if(o.protocol!=="http:"&&o.protocol!=="https:")return{valid:!1,normalizedUrl:"",error:`Invalid protocol: ${o.protocol}. Only http: and https: are allowed`};let s=o.hostname;if(!s)return{valid:!1,normalizedUrl:"",error:"URL must include a hostname"};if(!/^[\w.:[\]-]+$/.test(s))return{valid:!1,normalizedUrl:"",error:"Invalid characters in hostname"};if(o.port){let l=parseInt(o.port,10);if(isNaN(l)||l<1||l>65535)return{valid:!1,normalizedUrl:"",error:`Invalid port: ${o.port}. Must be between 1 and 65535`}}if(o.protocol==="http:"&&!J4(s))return{valid:!1,normalizedUrl:"",error:"Insecure HTTP is only allowed for loopback/local development endpoints. Use HTTPS for all non-loopback servers."};let i=o.origin;o.pathname&&o.pathname!=="/"&&(i+=o.pathname.replace(/\/$/,""));let a=Y4.some(l=>s===l||s.endsWith("."+l)),c;return!a&&o.protocol==="https:"&&(c=`Warning: URL "${s}" is not a known FlowDot domain. Ensure this is a trusted server before proceeding. Known domains: flowdot.ai, localhost, 127.0.0.1`),{valid:!0,normalizedUrl:i,warning:c}}var Y4,pt,My,cr=S(()=>{"use strict";$y();G();Y4=["flowdot.ai","flowdot.io","localhost","127.0.0.1","::1","0.0.0.0"];pt=class{store;constructor(){this.store=new ls({projectName:"flowdot-cli",defaults:{apiUrl:"https://flowdot.ai",model:"capable",spinnerStyle:"dots",memoriesEnabled:!0}})}get(t){return this.store.get(t)}set(t,r){if(t==="apiUrl"&&typeof r=="string"){let n=Ny(r);if(!n.valid)throw new Error(`Invalid API URL: ${n.error}`);this.store.set(t,n.normalizedUrl),n.warning&&U("CONFIG",n.warning);return}this.store.set(t,r)}setApiUrl(t){let r=Ny(t);return r.valid&&this.store.set("apiUrl",r.normalizedUrl),r}getModel(){return this.get("model")}getOAuthProvider(){return this.get("oauthProvider")||null}setOAuthProvider(t,r){this.set("oauthProvider",t),this.set("oauthModel",r)}clearOAuthProvider(){this.set("oauthProvider",""),this.set("oauthModel","")}clear(){this.store.clear()}},My=new pt});var mA=w((vce,fA)=>{"use strict";fA.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Dy=w((wce,gA)=>{var vc=mA(),hA={};for(let e of Object.keys(vc))hA[vc[e]]=e;var J={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};gA.exports=J;for(let e of Object.keys(J)){if(!("channels"in J[e]))throw new Error("missing channels property: "+e);if(!("labels"in J[e]))throw new Error("missing channel labels property: "+e);if(J[e].labels.length!==J[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=J[e];delete J[e].channels,delete J[e].labels,Object.defineProperty(J[e],"channels",{value:t}),Object.defineProperty(J[e],"labels",{value:r})}J.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),s=Math.max(t,r,n),i=s-o,a,c;s===o?a=0:t===s?a=(r-n)/i:r===s?a=2+(n-t)/i:n===s&&(a=4+(t-r)/i),a=Math.min(a*60,360),a<0&&(a+=360);let l=(o+s)/2;return s===o?c=0:l<=.5?c=i/(s+o):c=i/(2-s-o),[a,c*100,l*100]};J.rgb.hsv=function(e){let t,r,n,o,s,i=e[0]/255,a=e[1]/255,c=e[2]/255,l=Math.max(i,a,c),u=l-Math.min(i,a,c),p=function(m){return(l-m)/6/u+1/2};return u===0?(o=0,s=0):(s=u/l,t=p(i),r=p(a),n=p(c),i===l?o=n-r:a===l?o=1/3+t-n:c===l&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,s*100,l*100]};J.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],o=J.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,s*100,n*100]};J.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-r,1-n),s=(1-t-o)/(1-o)||0,i=(1-r-o)/(1-o)||0,a=(1-n-o)/(1-o)||0;return[s*100,i*100,a*100,o*100]};function X4(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}J.rgb.keyword=function(e){let t=hA[e];if(t)return t;let r=1/0,n;for(let o of Object.keys(vc)){let s=vc[o],i=X4(e,s);i<r&&(r=i,n=o)}return n};J.keyword.rgb=function(e){return vc[e]};J.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let o=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,i=t*.0193+r*.1192+n*.9505;return[o*100,s*100,i*100]};J.rgb.lab=function(e){let t=J.rgb.xyz(e),r=t[0],n=t[1],o=t[2];r/=95.047,n/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let s=116*n-16,i=500*(r-n),a=200*(n-o);return[s,i,a]};J.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,o,s,i;if(r===0)return i=n*255,[i,i,i];n<.5?o=n*(1+r):o=n+r-n*r;let a=2*n-o,c=[0,0,0];for(let l=0;l<3;l++)s=t+1/3*-(l-1),s<0&&s++,s>1&&s--,6*s<1?i=a+(o-a)*6*s:2*s<1?i=o:3*s<2?i=a+(o-a)*(2/3-s)*6:i=a,c[l]=i*255;return c};J.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,o=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,o*=s<=1?s:2-s;let i=(n+r)/2,a=n===0?2*o/(s+o):2*r/(n+r);return[t,a*100,i*100]};J.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,o=Math.floor(t)%6,s=t-Math.floor(t),i=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,o){case 0:return[n,c,i];case 1:return[a,n,i];case 2:return[i,n,c];case 3:return[i,a,n];case 4:return[c,i,n];case 5:return[n,i,a]}};J.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01),s,i;i=(2-r)*n;let a=(2-r)*o;return s=r*o,s/=a<=1?a:2-a,s=s||0,i/=2,[t,s*100,i*100]};J.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,o=r+n,s;o>1&&(r/=o,n/=o);let i=Math.floor(6*t),a=1-n;s=6*t-i,(i&1)!==0&&(s=1-s);let c=r+s*(a-r),l,u,p;switch(i){default:case 6:case 0:l=a,u=c,p=r;break;case 1:l=c,u=a,p=r;break;case 2:l=r,u=a,p=c;break;case 3:l=r,u=c,p=a;break;case 4:l=c,u=r,p=a;break;case 5:l=a,u=r,p=c;break}return[l*255,u*255,p*255]};J.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100,s=1-Math.min(1,t*(1-o)+o),i=1-Math.min(1,r*(1-o)+o),a=1-Math.min(1,n*(1-o)+o);return[s*255,i*255,a*255]};J.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,o,s,i;return o=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,i=t*.0557+r*-.204+n*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),i=Math.min(Math.max(0,i),1),[o*255,s*255,i*255]};J.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let o=116*r-16,s=500*(t-r),i=200*(r-n);return[o,s,i]};J.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],o,s,i;s=(t+16)/116,o=r/500+s,i=s-n/200;let a=s**3,c=o**3,l=i**3;return s=a>.008856?a:(s-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,o*=95.047,s*=100,i*=108.883,[o,s,i]};J.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],o;o=Math.atan2(n,r)*360/2/Math.PI,o<0&&(o+=360);let i=Math.sqrt(r*r+n*n);return[t,i,o]};J.lch.lab=function(e){let t=e[0],r=e[1],o=e[2]/360*2*Math.PI,s=r*Math.cos(o),i=r*Math.sin(o);return[t,s,i]};J.rgb.ansi16=function(e,t=null){let[r,n,o]=e,s=t===null?J.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let i=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(i+=60),i};J.hsv.ansi16=function(e){return J.rgb.ansi16(J.hsv.rgb(e),e[2])};J.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};J.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,o=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,o,s]};J.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,n,o]};J.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};J.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),o=n>>16&255,s=n>>8&255,i=n&255;return[o,s,i]};J.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),i=o-s,a,c;return i<1?a=s/(1-i):a=0,i<=0?c=0:o===t?c=(r-n)/i%6:o===r?c=2+(n-t)/i:c=4+(t-r)/i,c/=6,c%=1,[c*360,i*100,a*100]};J.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),o=0;return n<1&&(o=(r-.5*n)/(1-n)),[e[0],n*100,o*100]};J.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],n*100,o*100]};J.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let o=[0,0,0],s=t%1*6,i=s%1,a=1-i,c=0;switch(Math.floor(s)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return c=(1-r)*n,[(r*o[0]+c)*255,(r*o[1]+c)*255,(r*o[2]+c)*255]};J.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),o=0;return n>0&&(o=t/n),[e[0],o*100,n*100]};J.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,o=0;return n>0&&n<.5?o=t/(2*n):n>=.5&&n<1&&(o=t/(2*(1-n))),[e[0],o*100,n*100]};J.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};J.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,o=n-t,s=0;return o<1&&(s=(n-o)/(1-o)),[e[0],o*100,s*100]};J.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};J.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};J.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};J.gray.hsl=function(e){return[0,0,e[0]]};J.gray.hsv=J.gray.hsl;J.gray.hwb=function(e){return[0,100,e[0]]};J.gray.cmyk=function(e){return[0,0,0,e[0]]};J.gray.lab=function(e){return[e[0],0,0]};J.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};J.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var vA=w((xce,yA)=>{var Ju=Dy();function Q4(){let e={},t=Object.keys(Ju);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Z4(e){let t=Q4(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),o=Object.keys(Ju[n]);for(let s=o.length,i=0;i<s;i++){let a=o[i],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}}return t}function e6(e,t){return function(r){return t(e(r))}}function t6(e,t){let r=[t[e].parent,e],n=Ju[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),n=e6(Ju[t[o].parent][o],n),o=t[o].parent;return n.conversion=r,n}yA.exports=function(e){let t=Z4(e),r={},n=Object.keys(t);for(let o=n.length,s=0;s<o;s++){let i=n[s];t[i].parent!==null&&(r[i]=t6(i,t))}return r}});var xA=w((bce,wA)=>{var Ly=Dy(),r6=vA(),fi={},n6=Object.keys(Ly);function o6(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function s6(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let o=e(r);if(typeof o=="object")for(let s=o.length,i=0;i<s;i++)o[i]=Math.round(o[i]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}n6.forEach(e=>{fi[e]={},Object.defineProperty(fi[e],"channels",{value:Ly[e].channels}),Object.defineProperty(fi[e],"labels",{value:Ly[e].labels});let t=r6(e);Object.keys(t).forEach(n=>{let o=t[n];fi[e][n]=s6(o),fi[e][n].raw=o6(o)})});wA.exports=fi});var kA=w((_ce,TA)=>{"use strict";var bA=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,_A=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},SA=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},Xu=e=>e,EA=(e,t,r)=>[e,t,r],mi=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},jy,hi=(e,t,r,n)=>{jy===void 0&&(jy=xA());let o=n?10:0,s={};for(let[i,a]of Object.entries(jy)){let c=i==="ansi16"?"ansi":i;i===t?s[c]=e(r,o):typeof a=="object"&&(s[c]=e(a[t],o))}return s};function i6(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[o,s]of Object.entries(n))t[o]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[o]=t[o],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",mi(t.color,"ansi",()=>hi(bA,"ansi16",Xu,!1)),mi(t.color,"ansi256",()=>hi(_A,"ansi256",Xu,!1)),mi(t.color,"ansi16m",()=>hi(SA,"rgb",EA,!1)),mi(t.bgColor,"ansi",()=>hi(bA,"ansi16",Xu,!0)),mi(t.bgColor,"ansi256",()=>hi(_A,"ansi256",Xu,!0)),mi(t.bgColor,"ansi16m",()=>hi(SA,"rgb",EA,!0)),t}Object.defineProperty(TA,"exports",{enumerable:!0,get:i6})});var IA=w((Sce,RA)=>{"use strict";var a6=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let o=t.length,s=0,i="";do i+=e.substr(s,n-s)+t+r,s=n+o,n=e.indexOf(t,s);while(n!==-1);return i+=e.substr(s),i},c6=(e,t,r,n)=>{let o=0,s="";do{let i=e[n-1]==="\r";s+=e.substr(o,(i?n-1:n)-o)+t+(i?`\r
23
+ deps: ${r}}`};var BB={keyword:"dependencies",type:"object",schemaType:"object",error:tn.error,code(e){let[t,r]=GB(e);gE(e,t),yE(e,r)}};function GB({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let o=Array.isArray(e[n])?t:r;o[n]=e[n]}return[t,r]}function gE(e,t=e.schema){let{gen:r,data:n,it:o}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let i in t){let a=t[i];if(a.length===0)continue;let c=(0,aa.propertyInData)(r,n,i,o.opts.ownProperties);e.setParams({property:i,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(c,()=>{for(let l of a)(0,aa.checkReportMissingProp)(e,l)}):(r.if((0,Vm._)`${c} && (${(0,aa.checkMissingProp)(e,a,s)})`),(0,aa.reportMissingProp)(e,s),r.else())}}tn.validatePropertyDeps=gE;function yE(e,t=e.schema){let{gen:r,data:n,keyword:o,it:s}=e,i=r.name("valid");for(let a in t)(0,UB.alwaysValidSchema)(s,t[a])||(r.if((0,aa.propertyInData)(r,n,a,s.opts.ownProperties),()=>{let c=e.subschema({keyword:o,schemaProp:a},i);e.mergeValidEvaluated(c,i)},()=>r.var(i,!0)),e.ok(i))}tn.validateSchemaDeps=yE;tn.default=BB});var vE=v(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});var wE=le(),HB=xe(),KB={message:"property name must be valid",params:({params:e})=>(0,wE._)`{propertyName: ${e.propertyName}}`},zB={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:KB,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,HB.alwaysValidSchema)(o,r))return;let s=t.name("valid");t.forIn("key",n,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},s),t.if((0,wE.not)(s),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(s)}};Ym.default=zB});var Xm=v(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});var Ml=Sr(),jr=le(),WB=_r(),Dl=xe(),VB={message:"must NOT have additional properties",params:({params:e})=>(0,jr._)`{additionalProperty: ${e.additionalProperty}}`},YB={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:VB,code(e){let{gen:t,schema:r,parentSchema:n,data:o,errsCount:s,it:i}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=i;if(i.props=!0,c.removeAdditional!=="all"&&(0,Dl.alwaysValidSchema)(i,r))return;let l=(0,Ml.allSchemaProperties)(n.properties),p=(0,Ml.allSchemaProperties)(n.patternProperties);u(),e.ok((0,jr._)`${s} === ${WB.default.errors}`);function u(){t.forIn("key",o,w=>{!l.length&&!p.length?m(w):t.if(d(w),()=>m(w))})}function d(w){let x;if(l.length>8){let E=(0,Dl.schemaRefOrVal)(i,n.properties,"properties");x=(0,Ml.isOwnProperty)(t,E,w)}else l.length?x=(0,jr.or)(...l.map(E=>(0,jr._)`${w} === ${E}`)):x=jr.nil;return p.length&&(x=(0,jr.or)(x,...p.map(E=>(0,jr._)`${(0,Ml.usePattern)(e,E)}.test(${w})`))),(0,jr.not)(x)}function g(w){t.code((0,jr._)`delete ${o}[${w}]`)}function m(w){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){g(w);return}if(r===!1){e.setParams({additionalProperty:w}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,Dl.alwaysValidSchema)(i,r)){let x=t.name("valid");c.removeAdditional==="failing"?(h(w,x,!1),t.if((0,jr.not)(x),()=>{e.reset(),g(w)})):(h(w,x),a||t.if((0,jr.not)(x),()=>t.break()))}}function h(w,x,E){let S={keyword:"additionalProperties",dataProp:w,dataPropType:Dl.Type.Str};E===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,x)}}};Jm.default=YB});var _E=v(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});var JB=xs(),xE=Sr(),Qm=xe(),bE=Xm(),XB={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&bE.default.code(new JB.KeywordCxt(s,bE.default,"additionalProperties"));let i=(0,xE.allSchemaProperties)(r);for(let u of i)s.definedProperties.add(u);s.opts.unevaluated&&i.length&&s.props!==!0&&(s.props=Qm.mergeEvaluated.props(t,(0,Qm.toHash)(i),s.props));let a=i.filter(u=>!(0,Qm.alwaysValidSchema)(s,r[u]));if(a.length===0)return;let c=t.name("valid");for(let u of a)l(u)?p(u):(t.if((0,xE.propertyInData)(t,o,u,s.opts.ownProperties)),p(u),s.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(u),e.ok(c);function l(u){return s.opts.useDefaults&&!s.compositeRule&&r[u].default!==void 0}function p(u){e.subschema({keyword:"properties",schemaProp:u,dataProp:u},c)}}};Zm.default=XB});var EE=v(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var SE=Sr(),Ll=le(),TE=xe(),kE=xe(),QB={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:o,it:s}=e,{opts:i}=s,a=(0,SE.allSchemaProperties)(r),c=a.filter(h=>(0,TE.alwaysValidSchema)(s,r[h]));if(a.length===0||c.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let l=i.strictSchema&&!i.allowMatchingProperties&&o.properties,p=t.name("valid");s.props!==!0&&!(s.props instanceof Ll.Name)&&(s.props=(0,kE.evaluatedPropsToName)(t,s.props));let{props:u}=s;d();function d(){for(let h of a)l&&g(h),s.allErrors?m(h):(t.var(p,!0),m(h),t.if(p))}function g(h){for(let w in l)new RegExp(h).test(w)&&(0,TE.checkStrictMode)(s,`property ${w} matches pattern ${h} (use allowMatchingProperties)`)}function m(h){t.forIn("key",n,w=>{t.if((0,Ll._)`${(0,SE.usePattern)(e,h)}.test(${w})`,()=>{let x=c.includes(h);x||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:w,dataPropType:kE.Type.Str},p),s.opts.unevaluated&&u!==!0?t.assign((0,Ll._)`${u}[${w}]`,!0):!x&&!s.allErrors&&t.if((0,Ll.not)(p),()=>t.break())})})}}};eh.default=QB});var RE=v(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});var ZB=xe(),eG={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,ZB.alwaysValidSchema)(n,r)){e.fail();return}let o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};th.default=eG});var IE=v(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});var tG=Sr(),rG={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:tG.validateUnion,error:{message:"must match a schema in anyOf"}};rh.default=rG});var AE=v(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});var Fl=le(),nG=xe(),oG={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Fl._)`{passingSchemas: ${e.passing}}`},sG={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:oG,code(e){let{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let s=r,i=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(i,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((p,u)=>{let d;(0,nG.alwaysValidSchema)(o,p)?t.var(c,!0):d=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,Fl._)`${c} && ${i}`).assign(i,!1).assign(a,(0,Fl._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(i,!0),t.assign(a,u),d&&e.mergeEvaluated(d,Fl.Name)})})}}};nh.default=sG});var CE=v(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var iG=xe(),aG={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let o=t.name("valid");r.forEach((s,i)=>{if((0,iG.alwaysValidSchema)(n,s))return;let a=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(a)})}};oh.default=aG});var OE=v(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});var ql=le(),$E=xe(),cG={message:({params:e})=>(0,ql.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,ql._)`{failingKeyword: ${e.ifClause}}`},lG={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:cG,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,$E.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=PE(n,"then"),s=PE(n,"else");if(!o&&!s)return;let i=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),o&&s){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(a,l("then",p),l("else",p))}else o?t.if(a,l("then")):t.if((0,ql.not)(a),l("else"));e.pass(i,()=>e.error(!0));function c(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(p)}function l(p,u){return()=>{let d=e.subschema({keyword:p},a);t.assign(i,a),e.mergeValidEvaluated(d,i),u?t.assign(u,(0,ql._)`${p}`):e.setParams({ifClause:p})}}}};function PE(e,t){let r=e.schema[t];return r!==void 0&&!(0,$E.alwaysValidSchema)(e,r)}sh.default=lG});var NE=v(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});var uG=xe(),pG={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,uG.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};ih.default=pG});var ch=v(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});var dG=Gm(),fG=dE(),mG=Hm(),hG=mE(),gG=hE(),yG=Nl(),wG=vE(),vG=Xm(),xG=_E(),bG=EE(),_G=RE(),SG=IE(),TG=AE(),kG=CE(),EG=OE(),RG=NE();function IG(e=!1){let t=[_G.default,SG.default,TG.default,kG.default,EG.default,RG.default,wG.default,vG.default,yG.default,xG.default,bG.default];return e?t.push(fG.default,hG.default):t.push(dG.default,mG.default),t.push(gG.default),t}ah.default=IG});var uh=v(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.dynamicAnchor=void 0;var lh=le(),AG=_r(),ME=Vi(),CG=Rl(),PG={keyword:"$dynamicAnchor",schemaType:"string",code:e=>DE(e,e.schema)};function DE(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let o=(0,lh._)`${AG.default.dynamicAnchors}${(0,lh.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:$G(e);r.if((0,lh._)`!${o}`,()=>r.assign(o,s))}ca.dynamicAnchor=DE;function $G(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:o,baseId:s,localRefs:i,meta:a}=t.root,{schemaId:c}=n.opts,l=new ME.SchemaEnv({schema:r,schemaId:c,root:o,baseId:s,localRefs:i,meta:a});return ME.compileSchema.call(n,l),(0,CG.getValidate)(e,l)}ca.default=PG});var ph=v(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.dynamicRef=void 0;var LE=le(),OG=_r(),FE=Rl(),NG={keyword:"$dynamicRef",schemaType:"string",code:e=>qE(e,e.schema)};function qE(e,t){let{gen:r,keyword:n,it:o}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let s=t.slice(1);if(o.allErrors)i();else{let c=r.let("valid",!1);i(c),e.ok(c)}function i(c){if(o.schemaEnv.root.dynamicAnchors[s]){let l=r.let("_v",(0,LE._)`${OG.default.dynamicAnchors}${(0,LE.getProperty)(s)}`);r.if(l,a(l,c),a(o.validateName,c))}else a(o.validateName,c)()}function a(c,l){return l?()=>r.block(()=>{(0,FE.callRef)(e,c),r.let(l,!0)}):()=>(0,FE.callRef)(e,c)}}la.dynamicRef=qE;la.default=NG});var jE=v(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});var MG=uh(),DG=xe(),LG={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,MG.dynamicAnchor)(e,""):(0,DG.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};dh.default=LG});var UE=v(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});var FG=ph(),qG={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,FG.dynamicRef)(e,e.schema)};fh.default=qG});var BE=v(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});var jG=uh(),UG=ph(),BG=jE(),GG=UE(),HG=[jG.default,UG.default,BG.default,GG.default];mh.default=HG});var HE=v(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});var GE=Nl(),KG={keyword:"dependentRequired",type:"object",schemaType:"object",error:GE.error,code:e=>(0,GE.validatePropertyDeps)(e)};hh.default=KG});var KE=v(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});var zG=Nl(),WG={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,zG.validateSchemaDeps)(e)};gh.default=WG});var zE=v(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});var VG=xe(),YG={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,VG.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};yh.default=YG});var WE=v(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});var JG=HE(),XG=KE(),QG=zE(),ZG=[JG.default,XG.default,QG.default];wh.default=ZG});var YE=v(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});var Gn=le(),VE=xe(),eH=_r(),tH={message:"must NOT have unevaluated properties",params:({params:e})=>(0,Gn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},rH={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:tH,code(e){let{gen:t,schema:r,data:n,errsCount:o,it:s}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:i,props:a}=s;a instanceof Gn.Name?t.if((0,Gn._)`${a} !== true`,()=>t.forIn("key",n,u=>t.if(l(a,u),()=>c(u)))):a!==!0&&t.forIn("key",n,u=>a===void 0?c(u):t.if(p(a,u),()=>c(u))),s.props=!0,e.ok((0,Gn._)`${o} === ${eH.default.errors}`);function c(u){if(r===!1){e.setParams({unevaluatedProperty:u}),e.error(),i||t.break();return}if(!(0,VE.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:u,dataPropType:VE.Type.Str},d),i||t.if((0,Gn.not)(d),()=>t.break())}}function l(u,d){return(0,Gn._)`!${u} || !${u}[${d}]`}function p(u,d){let g=[];for(let m in u)u[m]===!0&&g.push((0,Gn._)`${d} !== ${m}`);return(0,Gn.and)(...g)}}};vh.default=rH});var XE=v(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});var Eo=le(),JE=xe(),nH={message:({params:{len:e}})=>(0,Eo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Eo._)`{limit: ${e}}`},oH={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:nH,code(e){let{gen:t,schema:r,data:n,it:o}=e,s=o.items||0;if(s===!0)return;let i=t.const("len",(0,Eo._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,Eo._)`${i} > ${s}`);else if(typeof r=="object"&&!(0,JE.alwaysValidSchema)(o,r)){let c=t.var("valid",(0,Eo._)`${i} <= ${s}`);t.if((0,Eo.not)(c),()=>a(c,s)),e.ok(c)}o.items=!0;function a(c,l){t.forRange("i",l,i,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:JE.Type.Num},c),o.allErrors||t.if((0,Eo.not)(c),()=>t.break())})}}};xh.default=oH});var QE=v(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});var sH=YE(),iH=XE(),aH=[sH.default,iH.default];bh.default=aH});var ZE=v(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});var pt=le(),cH={message:({schemaCode:e})=>(0,pt.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,pt._)`{format: ${e}}`},lH={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:cH,code(e,t){let{gen:r,data:n,$data:o,schema:s,schemaCode:i,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:p,self:u}=a;if(!c.validateFormats)return;o?d():g();function d(){let m=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),h=r.const("fDef",(0,pt._)`${m}[${i}]`),w=r.let("fType"),x=r.let("format");r.if((0,pt._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(w,(0,pt._)`${h}.type || "string"`).assign(x,(0,pt._)`${h}.validate`),()=>r.assign(w,(0,pt._)`"string"`).assign(x,h)),e.fail$data((0,pt.or)(E(),S()));function E(){return c.strictSchema===!1?pt.nil:(0,pt._)`${i} && !${x}`}function S(){let k=p.$async?(0,pt._)`(${h}.async ? await ${x}(${n}) : ${x}(${n}))`:(0,pt._)`${x}(${n})`,I=(0,pt._)`(typeof ${x} == "function" ? ${k} : ${x}.test(${n}))`;return(0,pt._)`${x} && ${x} !== true && ${w} === ${t} && !${I}`}}function g(){let m=u.formats[s];if(!m){E();return}if(m===!0)return;let[h,w,x]=S(m);h===t&&e.pass(k());function E(){if(c.strictSchema===!1){u.logger.warn(I());return}throw new Error(I());function I(){return`unknown format "${s}" ignored in schema at path "${l}"`}}function S(I){let C=I instanceof RegExp?(0,pt.regexpCode)(I):c.code.formats?(0,pt._)`${c.code.formats}${(0,pt.getProperty)(s)}`:void 0,P=r.scopeValue("formats",{key:s,ref:I,code:C});return typeof I=="object"&&!(I instanceof RegExp)?[I.type||"string",I.validate,(0,pt._)`${P}.validate`]:["string",I,P]}function k(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!p.$async)throw new Error("async format in sync schema");return(0,pt._)`await ${x}(${n})`}return typeof w=="function"?(0,pt._)`${x}(${n})`:(0,pt._)`${x}.test(${n})`}}}};_h.default=lH});var Th=v(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});var uH=ZE(),pH=[uH.default];Sh.default=pH});var kh=v(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.contentVocabulary=ks.metadataVocabulary=void 0;ks.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];ks.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var tR=v(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});var dH=km(),fH=Um(),mH=ch(),hH=BE(),gH=WE(),yH=QE(),wH=Th(),eR=kh(),vH=[hH.default,dH.default,fH.default,(0,mH.default)(!0),wH.default,eR.metadataVocabulary,eR.contentVocabulary,gH.default,yH.default];Eh.default=vH});var nR=v(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.DiscrError=void 0;var rR;(function(e){e.Tag="tag",e.Mapping="mapping"})(rR||(jl.DiscrError=rR={}))});var Ah=v(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});var Es=le(),Rh=nR(),oR=Vi(),xH=bs(),bH=xe(),_H={message:({params:{discrError:e,tagName:t}})=>e===Rh.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Es._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},SH={keyword:"discriminator",type:"object",schemaType:"object",error:_H,code(e){let{gen:t,data:r,schema:n,parentSchema:o,it:s}=e,{oneOf:i}=o;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,Es._)`${r}${(0,Es.getProperty)(a)}`);t.if((0,Es._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:Rh.DiscrError.Tag,tag:l,tagName:a})),e.ok(c);function p(){let g=d();t.if(!1);for(let m in g)t.elseIf((0,Es._)`${l} === ${m}`),t.assign(c,u(g[m]));t.else(),e.error(!1,{discrError:Rh.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function u(g){let m=t.name("valid"),h=e.subschema({keyword:"oneOf",schemaProp:g},m);return e.mergeEvaluated(h,Es.Name),m}function d(){var g;let m={},h=x(o),w=!0;for(let k=0;k<i.length;k++){let I=i[k];if(I?.$ref&&!(0,bH.schemaHasRulesButRef)(I,s.self.RULES)){let P=I.$ref;if(I=oR.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,P),I instanceof oR.SchemaEnv&&(I=I.schema),I===void 0)throw new xH.default(s.opts.uriResolver,s.baseId,P)}let C=(g=I?.properties)===null||g===void 0?void 0:g[a];if(typeof C!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);w=w&&(h||x(I)),E(C,k)}if(!w)throw new Error(`discriminator: "${a}" must be required`);return m;function x({required:k}){return Array.isArray(k)&&k.includes(a)}function E(k,I){if(k.const)S(k.const,I);else if(k.enum)for(let C of k.enum)S(C,I);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function S(k,I){if(typeof k!="string"||k in m)throw new Error(`discriminator: "${a}" values must be unique strings`);m[k]=I}}}};Ih.default=SH});var sR=v((nce,TH)=>{TH.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var iR=v((oce,kH)=>{kH.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var aR=v((sce,EH)=>{EH.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var cR=v((ice,RH)=>{RH.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var lR=v((ace,IH)=>{IH.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var uR=v((cce,AH)=>{AH.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var pR=v((lce,CH)=>{CH.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var dR=v((uce,PH)=>{PH.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var fR=v(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});var $H=sR(),OH=iR(),NH=aR(),MH=cR(),DH=lR(),LH=uR(),FH=pR(),qH=dR(),jH=["/properties"];function UH(e){return[$H,OH,NH,MH,DH,t(this,LH),FH,t(this,qH)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,jH):n}}Ch.default=UH});var mR=v((Ve,$h)=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.MissingRefError=Ve.ValidationError=Ve.CodeGen=Ve.Name=Ve.nil=Ve.stringify=Ve.str=Ve._=Ve.KeywordCxt=Ve.Ajv2020=void 0;var BH=_m(),GH=tR(),HH=Ah(),KH=fR(),Ph="https://json-schema.org/draft/2020-12/schema",Rs=class extends BH.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),GH.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(HH.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(KH.default.call(this,t),this.refs["http://json-schema.org/schema"]=Ph)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ph)?Ph:void 0)}};Ve.Ajv2020=Rs;$h.exports=Ve=Rs;$h.exports.Ajv2020=Rs;Object.defineProperty(Ve,"__esModule",{value:!0});Ve.default=Rs;var zH=xs();Object.defineProperty(Ve,"KeywordCxt",{enumerable:!0,get:function(){return zH.KeywordCxt}});var Is=le();Object.defineProperty(Ve,"_",{enumerable:!0,get:function(){return Is._}});Object.defineProperty(Ve,"str",{enumerable:!0,get:function(){return Is.str}});Object.defineProperty(Ve,"stringify",{enumerable:!0,get:function(){return Is.stringify}});Object.defineProperty(Ve,"nil",{enumerable:!0,get:function(){return Is.nil}});Object.defineProperty(Ve,"Name",{enumerable:!0,get:function(){return Is.Name}});Object.defineProperty(Ve,"CodeGen",{enumerable:!0,get:function(){return Is.CodeGen}});var WH=Wi();Object.defineProperty(Ve,"ValidationError",{enumerable:!0,get:function(){return WH.default}});var VH=bs();Object.defineProperty(Ve,"MissingRefError",{enumerable:!0,get:function(){return VH.default}})});var _R=v(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.formatNames=nn.fastFormats=nn.fullFormats=void 0;function rn(e,t){return{validate:e,compare:t}}nn.fullFormats={date:rn(wR,Dh),time:rn(Nh(!0),Lh),"date-time":rn(hR(!0),xR),"iso-time":rn(Nh(),vR),"iso-date-time":rn(hR(),bR),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:eK,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:aK,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:tK,int32:{type:"number",validate:oK},int64:{type:"number",validate:sK},float:{type:"number",validate:yR},double:{type:"number",validate:yR},password:!0,binary:!0};nn.fastFormats={...nn.fullFormats,date:rn(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,Dh),time:rn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Lh),"date-time":rn(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,xR),"iso-time":rn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,vR),"iso-date-time":rn(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,bR),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};nn.formatNames=Object.keys(nn.fullFormats);function YH(e){return e%4===0&&(e%100!==0||e%400===0)}var JH=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,XH=[0,31,28,31,30,31,30,31,31,30,31,30,31];function wR(e){let t=JH.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],o=+t[3];return n>=1&&n<=12&&o>=1&&o<=(n===2&&YH(r)?29:XH[n])}function Dh(e,t){if(e&&t)return e>t?1:e<t?-1:0}var Oh=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function Nh(e){return function(r){let n=Oh.exec(r);if(!n)return!1;let o=+n[1],s=+n[2],i=+n[3],a=n[4],c=n[5]==="-"?-1:1,l=+(n[6]||0),p=+(n[7]||0);if(l>23||p>59||e&&!a)return!1;if(o<=23&&s<=59&&i<60)return!0;let u=s-p*c,d=o-l*c-(u<0?1:0);return(d===23||d===-1)&&(u===59||u===-1)&&i<61}}function Lh(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),n=new Date("2020-01-01T"+t).valueOf();if(r&&n)return r-n}function vR(e,t){if(!(e&&t))return;let r=Oh.exec(e),n=Oh.exec(t);if(r&&n)return e=r[1]+r[2]+r[3],t=n[1]+n[2]+n[3],e>t?1:e<t?-1:0}var Mh=/t|\s/i;function hR(e){let t=Nh(e);return function(n){let o=n.split(Mh);return o.length===2&&wR(o[0])&&t(o[1])}}function xR(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),n=new Date(t).valueOf();if(r&&n)return r-n}function bR(e,t){if(!(e&&t))return;let[r,n]=e.split(Mh),[o,s]=t.split(Mh),i=Dh(r,o);if(i!==void 0)return i||Lh(n,s)}var QH=/\/|:/,ZH=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function eK(e){return QH.test(e)&&ZH.test(e)}var gR=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function tK(e){return gR.lastIndex=0,gR.test(e)}var rK=-(2**31),nK=2**31-1;function oK(e){return Number.isInteger(e)&&e<=nK&&e>=rK}function sK(e){return Number.isInteger(e)}function yR(){return!0}var iK=/[^\\]\\Z/;function aK(e){if(iK.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var TR=v(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0});var cK=km(),lK=Um(),uK=ch(),pK=Th(),SR=kh(),dK=[cK.default,lK.default,(0,uK.default)(),pK.default,SR.metadataVocabulary,SR.contentVocabulary];Fh.default=dK});var kR=v((mce,fK)=>{fK.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var RR=v((Ye,qh)=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.MissingRefError=Ye.ValidationError=Ye.CodeGen=Ye.Name=Ye.nil=Ye.stringify=Ye.str=Ye._=Ye.KeywordCxt=Ye.Ajv=void 0;var mK=_m(),hK=TR(),gK=Ah(),ER=kR(),yK=["/properties"],Ul="http://json-schema.org/draft-07/schema",As=class extends mK.default{_addVocabularies(){super._addVocabularies(),hK.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(gK.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(ER,yK):ER;this.addMetaSchema(t,Ul,!1),this.refs["http://json-schema.org/schema"]=Ul}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ul)?Ul:void 0)}};Ye.Ajv=As;qh.exports=Ye=As;qh.exports.Ajv=As;Object.defineProperty(Ye,"__esModule",{value:!0});Ye.default=As;var wK=xs();Object.defineProperty(Ye,"KeywordCxt",{enumerable:!0,get:function(){return wK.KeywordCxt}});var Cs=le();Object.defineProperty(Ye,"_",{enumerable:!0,get:function(){return Cs._}});Object.defineProperty(Ye,"str",{enumerable:!0,get:function(){return Cs.str}});Object.defineProperty(Ye,"stringify",{enumerable:!0,get:function(){return Cs.stringify}});Object.defineProperty(Ye,"nil",{enumerable:!0,get:function(){return Cs.nil}});Object.defineProperty(Ye,"Name",{enumerable:!0,get:function(){return Cs.Name}});Object.defineProperty(Ye,"CodeGen",{enumerable:!0,get:function(){return Cs.CodeGen}});var vK=Wi();Object.defineProperty(Ye,"ValidationError",{enumerable:!0,get:function(){return vK.default}});var xK=bs();Object.defineProperty(Ye,"MissingRefError",{enumerable:!0,get:function(){return xK.default}})});var IR=v(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.formatLimitDefinition=void 0;var bK=RR(),Ur=le(),Hn=Ur.operators,Bl={formatMaximum:{okStr:"<=",ok:Hn.LTE,fail:Hn.GT},formatMinimum:{okStr:">=",ok:Hn.GTE,fail:Hn.LT},formatExclusiveMaximum:{okStr:"<",ok:Hn.LT,fail:Hn.GTE},formatExclusiveMinimum:{okStr:">",ok:Hn.GT,fail:Hn.LTE}},_K={message:({keyword:e,schemaCode:t})=>(0,Ur.str)`should be ${Bl[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Ur._)`{comparison: ${Bl[e].okStr}, limit: ${t}}`};Ps.formatLimitDefinition={keyword:Object.keys(Bl),type:"string",schemaType:"string",$data:!0,error:_K,code(e){let{gen:t,data:r,schemaCode:n,keyword:o,it:s}=e,{opts:i,self:a}=s;if(!i.validateFormats)return;let c=new bK.KeywordCxt(s,a.RULES.all.format.definition,"format");c.$data?l():p();function l(){let d=t.scopeValue("formats",{ref:a.formats,code:i.code.formats}),g=t.const("fmt",(0,Ur._)`${d}[${c.schemaCode}]`);e.fail$data((0,Ur.or)((0,Ur._)`typeof ${g} != "object"`,(0,Ur._)`${g} instanceof RegExp`,(0,Ur._)`typeof ${g}.compare != "function"`,u(g)))}function p(){let d=c.schema,g=a.formats[d];if(!g||g===!0)return;if(typeof g!="object"||g instanceof RegExp||typeof g.compare!="function")throw new Error(`"${o}": format "${d}" does not define "compare" function`);let m=t.scopeValue("formats",{key:d,ref:g,code:i.code.formats?(0,Ur._)`${i.code.formats}${(0,Ur.getProperty)(d)}`:void 0});e.fail$data(u(m))}function u(d){return(0,Ur._)`${d}.compare(${r}, ${n}) ${Bl[o].fail} 0`}},dependencies:["format"]};var SK=e=>(e.addKeyword(Ps.formatLimitDefinition),e);Ps.default=SK});var $R=v((ua,PR)=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});var $s=_R(),TK=IR(),jh=le(),AR=new jh.Name("fullFormats"),kK=new jh.Name("fastFormats"),Uh=(e,t={keywords:!0})=>{if(Array.isArray(t))return CR(e,t,$s.fullFormats,AR),e;let[r,n]=t.mode==="fast"?[$s.fastFormats,kK]:[$s.fullFormats,AR],o=t.formats||$s.formatNames;return CR(e,o,r,n),t.keywords&&(0,TK.default)(e),e};Uh.get=(e,t="full")=>{let n=(t==="fast"?$s.fastFormats:$s.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function CR(e,t,r,n){var o,s;(o=(s=e.opts.code).formats)!==null&&o!==void 0||(s.formats=(0,jh._)`require("ajv-formats/dist/formats").${n}`);for(let i of t)e.addFormat(i,r[i])}PR.exports=ua=Uh;Object.defineProperty(ua,"__esModule",{value:!0});ua.default=Uh});function Bh(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let o of Reflect.ownKeys(t))EK(e,t,o,r);return IK(e,t),$K(e,t,n),e}var EK,RK,IK,AK,CK,PK,$K,OR=b(()=>{EK=(e,t,r,n)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;let o=Object.getOwnPropertyDescriptor(e,r),s=Object.getOwnPropertyDescriptor(t,r);!RK(o,s)&&n||Object.defineProperty(e,r,s)},RK=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},IK=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},AK=(e,t)=>`/* Wrapped ${e}*/
24
+ ${t}`,CK=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),PK=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),$K=(e,t,r)=>{let n=r===""?"":`with ${r.trim()}() `,o=AK.bind(null,n,t.toString());Object.defineProperty(o,"name",PK);let{writable:s,enumerable:i,configurable:a}=CK;Object.defineProperty(e,"toString",{value:o,writable:s,enumerable:i,configurable:a})}});var OK,Gh,NR=b(()=>{OR();OK=(e,t={})=>{if(typeof e!="function")throw new TypeError(`Expected the first argument to be a function, got \`${typeof e}\``);let{wait:r=0,maxWait:n=Number.POSITIVE_INFINITY,before:o=!1,after:s=!0}=t;if(r<0||n<0)throw new RangeError("`wait` and `maxWait` must not be negative.");if(!o&&!s)throw new Error("Both `before` and `after` are false, function wouldn't be called.");let i,a,c,l=function(...p){let u=this,d=()=>{i=void 0,a&&(clearTimeout(a),a=void 0),s&&(c=e.apply(u,p))},g=()=>{a=void 0,i&&(clearTimeout(i),i=void 0),s&&(c=e.apply(u,p))},m=o&&!i;return clearTimeout(i),i=setTimeout(d,r),n>0&&n!==Number.POSITIVE_INFINITY&&!a&&(a=setTimeout(g,n)),m&&(c=e.apply(u,p)),c};return Bh(l,e),l.cancel=()=>{i&&(clearTimeout(i),i=void 0),a&&(clearTimeout(a),a=void 0)},l},Gh=OK});var pa=v((vce,MR)=>{"use strict";var NK="2.0.0",MK=Number.MAX_SAFE_INTEGER||9007199254740991,DK=16,LK=250,FK=["major","premajor","minor","preminor","patch","prepatch","prerelease"];MR.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:DK,MAX_SAFE_BUILD_LENGTH:LK,MAX_SAFE_INTEGER:MK,RELEASE_TYPES:FK,SEMVER_SPEC_VERSION:NK,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var da=v((xce,DR)=>{"use strict";var qK=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};DR.exports=qK});var Os=v((on,LR)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Hh,MAX_SAFE_BUILD_LENGTH:jK,MAX_LENGTH:UK}=pa(),BK=da();on=LR.exports={};var GK=on.re=[],HK=on.safeRe=[],K=on.src=[],KK=on.safeSrc=[],z=on.t={},zK=0,Kh="[a-zA-Z0-9-]",WK=[["\\s",1],["\\d",UK],[Kh,jK]],VK=e=>{for(let[t,r]of WK)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},fe=(e,t,r)=>{let n=VK(t),o=zK++;BK(e,o,t),z[e]=o,K[o]=t,KK[o]=n,GK[o]=new RegExp(t,r?"g":void 0),HK[o]=new RegExp(n,r?"g":void 0)};fe("NUMERICIDENTIFIER","0|[1-9]\\d*");fe("NUMERICIDENTIFIERLOOSE","\\d+");fe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Kh}*`);fe("MAINVERSION",`(${K[z.NUMERICIDENTIFIER]})\\.(${K[z.NUMERICIDENTIFIER]})\\.(${K[z.NUMERICIDENTIFIER]})`);fe("MAINVERSIONLOOSE",`(${K[z.NUMERICIDENTIFIERLOOSE]})\\.(${K[z.NUMERICIDENTIFIERLOOSE]})\\.(${K[z.NUMERICIDENTIFIERLOOSE]})`);fe("PRERELEASEIDENTIFIER",`(?:${K[z.NONNUMERICIDENTIFIER]}|${K[z.NUMERICIDENTIFIER]})`);fe("PRERELEASEIDENTIFIERLOOSE",`(?:${K[z.NONNUMERICIDENTIFIER]}|${K[z.NUMERICIDENTIFIERLOOSE]})`);fe("PRERELEASE",`(?:-(${K[z.PRERELEASEIDENTIFIER]}(?:\\.${K[z.PRERELEASEIDENTIFIER]})*))`);fe("PRERELEASELOOSE",`(?:-?(${K[z.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${K[z.PRERELEASEIDENTIFIERLOOSE]})*))`);fe("BUILDIDENTIFIER",`${Kh}+`);fe("BUILD",`(?:\\+(${K[z.BUILDIDENTIFIER]}(?:\\.${K[z.BUILDIDENTIFIER]})*))`);fe("FULLPLAIN",`v?${K[z.MAINVERSION]}${K[z.PRERELEASE]}?${K[z.BUILD]}?`);fe("FULL",`^${K[z.FULLPLAIN]}$`);fe("LOOSEPLAIN",`[v=\\s]*${K[z.MAINVERSIONLOOSE]}${K[z.PRERELEASELOOSE]}?${K[z.BUILD]}?`);fe("LOOSE",`^${K[z.LOOSEPLAIN]}$`);fe("GTLT","((?:<|>)?=?)");fe("XRANGEIDENTIFIERLOOSE",`${K[z.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);fe("XRANGEIDENTIFIER",`${K[z.NUMERICIDENTIFIER]}|x|X|\\*`);fe("XRANGEPLAIN",`[v=\\s]*(${K[z.XRANGEIDENTIFIER]})(?:\\.(${K[z.XRANGEIDENTIFIER]})(?:\\.(${K[z.XRANGEIDENTIFIER]})(?:${K[z.PRERELEASE]})?${K[z.BUILD]}?)?)?`);fe("XRANGEPLAINLOOSE",`[v=\\s]*(${K[z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${K[z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${K[z.XRANGEIDENTIFIERLOOSE]})(?:${K[z.PRERELEASELOOSE]})?${K[z.BUILD]}?)?)?`);fe("XRANGE",`^${K[z.GTLT]}\\s*${K[z.XRANGEPLAIN]}$`);fe("XRANGELOOSE",`^${K[z.GTLT]}\\s*${K[z.XRANGEPLAINLOOSE]}$`);fe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Hh}})(?:\\.(\\d{1,${Hh}}))?(?:\\.(\\d{1,${Hh}}))?`);fe("COERCE",`${K[z.COERCEPLAIN]}(?:$|[^\\d])`);fe("COERCEFULL",K[z.COERCEPLAIN]+`(?:${K[z.PRERELEASE]})?(?:${K[z.BUILD]})?(?:$|[^\\d])`);fe("COERCERTL",K[z.COERCE],!0);fe("COERCERTLFULL",K[z.COERCEFULL],!0);fe("LONETILDE","(?:~>?)");fe("TILDETRIM",`(\\s*)${K[z.LONETILDE]}\\s+`,!0);on.tildeTrimReplace="$1~";fe("TILDE",`^${K[z.LONETILDE]}${K[z.XRANGEPLAIN]}$`);fe("TILDELOOSE",`^${K[z.LONETILDE]}${K[z.XRANGEPLAINLOOSE]}$`);fe("LONECARET","(?:\\^)");fe("CARETTRIM",`(\\s*)${K[z.LONECARET]}\\s+`,!0);on.caretTrimReplace="$1^";fe("CARET",`^${K[z.LONECARET]}${K[z.XRANGEPLAIN]}$`);fe("CARETLOOSE",`^${K[z.LONECARET]}${K[z.XRANGEPLAINLOOSE]}$`);fe("COMPARATORLOOSE",`^${K[z.GTLT]}\\s*(${K[z.LOOSEPLAIN]})$|^$`);fe("COMPARATOR",`^${K[z.GTLT]}\\s*(${K[z.FULLPLAIN]})$|^$`);fe("COMPARATORTRIM",`(\\s*)${K[z.GTLT]}\\s*(${K[z.LOOSEPLAIN]}|${K[z.XRANGEPLAIN]})`,!0);on.comparatorTrimReplace="$1$2$3";fe("HYPHENRANGE",`^\\s*(${K[z.XRANGEPLAIN]})\\s+-\\s+(${K[z.XRANGEPLAIN]})\\s*$`);fe("HYPHENRANGELOOSE",`^\\s*(${K[z.XRANGEPLAINLOOSE]})\\s+-\\s+(${K[z.XRANGEPLAINLOOSE]})\\s*$`);fe("STAR","(<|>)?=?\\s*\\*");fe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");fe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Gl=v((bce,FR)=>{"use strict";var YK=Object.freeze({loose:!0}),JK=Object.freeze({}),XK=e=>e?typeof e!="object"?YK:e:JK;FR.exports=XK});var zh=v((_ce,UR)=>{"use strict";var qR=/^[0-9]+$/,jR=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let r=qR.test(e),n=qR.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},QK=(e,t)=>jR(t,e);UR.exports={compareIdentifiers:jR,rcompareIdentifiers:QK}});var jt=v((Sce,GR)=>{"use strict";var Hl=da(),{MAX_LENGTH:BR,MAX_SAFE_INTEGER:Kl}=pa(),{safeRe:zl,t:Wl}=Os(),ZK=Gl(),{compareIdentifiers:Wh}=zh(),Vh=class e{constructor(t,r){if(r=ZK(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>BR)throw new TypeError(`version is longer than ${BR} characters`);Hl("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?zl[Wl.LOOSE]:zl[Wl.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Kl||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Kl||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Kl||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let s=+o;if(s>=0&&s<Kl)return s}return o}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Hl("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],o=t.prerelease[r];if(Hl("prerelease compare",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return Wh(n,o)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],o=t.build[r];if(Hl("build compare",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return Wh(n,o)}while(++r)}inc(t,r,n){if(t.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let o=`-${r}`.match(this.options.loose?zl[Wl.PRERELEASELOOSE]:zl[Wl.PRERELEASE]);if(!o||o[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let o=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[o];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(r){let s=[r,o];n===!1&&(s=[r]),Wh(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};GR.exports=Vh});var Ro=v((Tce,KR)=>{"use strict";var HR=jt(),ez=(e,t,r=!1)=>{if(e instanceof HR)return e;try{return new HR(e,t)}catch(n){if(!r)return null;throw n}};KR.exports=ez});var WR=v((kce,zR)=>{"use strict";var tz=Ro(),rz=(e,t)=>{let r=tz(e,t);return r?r.version:null};zR.exports=rz});var YR=v((Ece,VR)=>{"use strict";var nz=Ro(),oz=(e,t)=>{let r=nz(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};VR.exports=oz});var QR=v((Rce,XR)=>{"use strict";var JR=jt(),sz=(e,t,r,n,o)=>{typeof r=="string"&&(o=n,n=r,r=void 0);try{return new JR(e instanceof JR?e.version:e,r).inc(t,n,o).version}catch{return null}};XR.exports=sz});var t0=v((Ice,e0)=>{"use strict";var ZR=Ro(),iz=(e,t)=>{let r=ZR(e,null,!0),n=ZR(t,null,!0),o=r.compare(n);if(o===0)return null;let s=o>0,i=s?r:n,a=s?n:r,c=!!i.prerelease.length;if(!!a.prerelease.length&&!c){if(!a.patch&&!a.minor)return"major";if(a.compareMain(i)===0)return a.minor&&!a.patch?"minor":"patch"}let p=c?"pre":"";return r.major!==n.major?p+"major":r.minor!==n.minor?p+"minor":r.patch!==n.patch?p+"patch":"prerelease"};e0.exports=iz});var n0=v((Ace,r0)=>{"use strict";var az=jt(),cz=(e,t)=>new az(e,t).major;r0.exports=cz});var s0=v((Cce,o0)=>{"use strict";var lz=jt(),uz=(e,t)=>new lz(e,t).minor;o0.exports=uz});var a0=v((Pce,i0)=>{"use strict";var pz=jt(),dz=(e,t)=>new pz(e,t).patch;i0.exports=dz});var l0=v(($ce,c0)=>{"use strict";var fz=Ro(),mz=(e,t)=>{let r=fz(e,t);return r&&r.prerelease.length?r.prerelease:null};c0.exports=mz});var Er=v((Oce,p0)=>{"use strict";var u0=jt(),hz=(e,t,r)=>new u0(e,r).compare(new u0(t,r));p0.exports=hz});var f0=v((Nce,d0)=>{"use strict";var gz=Er(),yz=(e,t,r)=>gz(t,e,r);d0.exports=yz});var h0=v((Mce,m0)=>{"use strict";var wz=Er(),vz=(e,t)=>wz(e,t,!0);m0.exports=vz});var Vl=v((Dce,y0)=>{"use strict";var g0=jt(),xz=(e,t,r)=>{let n=new g0(e,r),o=new g0(t,r);return n.compare(o)||n.compareBuild(o)};y0.exports=xz});var v0=v((Lce,w0)=>{"use strict";var bz=Vl(),_z=(e,t)=>e.sort((r,n)=>bz(r,n,t));w0.exports=_z});var b0=v((Fce,x0)=>{"use strict";var Sz=Vl(),Tz=(e,t)=>e.sort((r,n)=>Sz(n,r,t));x0.exports=Tz});var fa=v((qce,_0)=>{"use strict";var kz=Er(),Ez=(e,t,r)=>kz(e,t,r)>0;_0.exports=Ez});var Yl=v((jce,S0)=>{"use strict";var Rz=Er(),Iz=(e,t,r)=>Rz(e,t,r)<0;S0.exports=Iz});var Yh=v((Uce,T0)=>{"use strict";var Az=Er(),Cz=(e,t,r)=>Az(e,t,r)===0;T0.exports=Cz});var Jh=v((Bce,k0)=>{"use strict";var Pz=Er(),$z=(e,t,r)=>Pz(e,t,r)!==0;k0.exports=$z});var Jl=v((Gce,E0)=>{"use strict";var Oz=Er(),Nz=(e,t,r)=>Oz(e,t,r)>=0;E0.exports=Nz});var Xl=v((Hce,R0)=>{"use strict";var Mz=Er(),Dz=(e,t,r)=>Mz(e,t,r)<=0;R0.exports=Dz});var Xh=v((Kce,I0)=>{"use strict";var Lz=Yh(),Fz=Jh(),qz=fa(),jz=Jl(),Uz=Yl(),Bz=Xl(),Gz=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return Lz(e,r,n);case"!=":return Fz(e,r,n);case">":return qz(e,r,n);case">=":return jz(e,r,n);case"<":return Uz(e,r,n);case"<=":return Bz(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};I0.exports=Gz});var C0=v((zce,A0)=>{"use strict";var Hz=jt(),Kz=Ro(),{safeRe:Ql,t:Zl}=Os(),zz=(e,t)=>{if(e instanceof Hz)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?Ql[Zl.COERCEFULL]:Ql[Zl.COERCE]);else{let c=t.includePrerelease?Ql[Zl.COERCERTLFULL]:Ql[Zl.COERCERTL],l;for(;(l=c.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||l.index+l[0].length!==r.index+r[0].length)&&(r=l),c.lastIndex=l.index+l[1].length+l[2].length;c.lastIndex=-1}if(r===null)return null;let n=r[2],o=r[3]||"0",s=r[4]||"0",i=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return Kz(`${n}.${o}.${s}${i}${a}`,t)};A0.exports=zz});var $0=v((Wce,P0)=>{"use strict";var Qh=class{constructor(){this.max=1e3,this.map=new Map}get(t){let r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){let o=this.map.keys().next().value;this.delete(o)}this.map.set(t,r)}return this}};P0.exports=Qh});var Rr=v((Vce,D0)=>{"use strict";var Wz=/\s+/g,Zh=class e{constructor(t,r){if(r=Yz(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof eg)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(Wz," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(o=>!N0(o[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let o of this.set)if(o.length===1&&rW(o[0])){this.set=[o];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let r=this.set[t];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let n=((this.options.includePrerelease&&eW)|(this.options.loose&&tW))+":"+t,o=O0.get(n);if(o)return o;let s=this.options.loose,i=s?zt[Ut.HYPHENRANGELOOSE]:zt[Ut.HYPHENRANGE];t=t.replace(i,dW(this.options.includePrerelease)),Je("hyphen replace",t),t=t.replace(zt[Ut.COMPARATORTRIM],Xz),Je("comparator trim",t),t=t.replace(zt[Ut.TILDETRIM],Qz),Je("tilde trim",t),t=t.replace(zt[Ut.CARETTRIM],Zz),Je("caret trim",t);let a=t.split(" ").map(u=>nW(u,this.options)).join(" ").split(/\s+/).map(u=>pW(u,this.options));s&&(a=a.filter(u=>(Je("loose invalid filter",u,this.options),!!u.match(zt[Ut.COMPARATORLOOSE])))),Je("range list",a);let c=new Map,l=a.map(u=>new eg(u,this.options));for(let u of l){if(N0(u))return[u];c.set(u.value,u)}c.size>1&&c.has("")&&c.delete("");let p=[...c.values()];return O0.set(n,p),p}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>M0(n,r)&&t.set.some(o=>M0(o,r)&&n.every(s=>o.every(i=>s.intersects(i,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new Jz(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(fW(this.set[r],t,this.options))return!0;return!1}};D0.exports=Zh;var Vz=$0(),O0=new Vz,Yz=Gl(),eg=ma(),Je=da(),Jz=jt(),{safeRe:zt,t:Ut,comparatorTrimReplace:Xz,tildeTrimReplace:Qz,caretTrimReplace:Zz}=Os(),{FLAG_INCLUDE_PRERELEASE:eW,FLAG_LOOSE:tW}=pa(),N0=e=>e.value==="<0.0.0-0",rW=e=>e.value==="",M0=(e,t)=>{let r=!0,n=e.slice(),o=n.pop();for(;r&&n.length;)r=n.every(s=>o.intersects(s,t)),o=n.pop();return r},nW=(e,t)=>(e=e.replace(zt[Ut.BUILD],""),Je("comp",e,t),e=iW(e,t),Je("caret",e),e=oW(e,t),Je("tildes",e),e=cW(e,t),Je("xrange",e),e=uW(e,t),Je("stars",e),e),Wt=e=>!e||e.toLowerCase()==="x"||e==="*",oW=(e,t)=>e.trim().split(/\s+/).map(r=>sW(r,t)).join(" "),sW=(e,t)=>{let r=t.loose?zt[Ut.TILDELOOSE]:zt[Ut.TILDE];return e.replace(r,(n,o,s,i,a)=>{Je("tilde",e,n,o,s,i,a);let c;return Wt(o)?c="":Wt(s)?c=`>=${o}.0.0 <${+o+1}.0.0-0`:Wt(i)?c=`>=${o}.${s}.0 <${o}.${+s+1}.0-0`:a?(Je("replaceTilde pr",a),c=`>=${o}.${s}.${i}-${a} <${o}.${+s+1}.0-0`):c=`>=${o}.${s}.${i} <${o}.${+s+1}.0-0`,Je("tilde return",c),c})},iW=(e,t)=>e.trim().split(/\s+/).map(r=>aW(r,t)).join(" "),aW=(e,t)=>{Je("caret",e,t);let r=t.loose?zt[Ut.CARETLOOSE]:zt[Ut.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(o,s,i,a,c)=>{Je("caret",e,o,s,i,a,c);let l;return Wt(s)?l="":Wt(i)?l=`>=${s}.0.0${n} <${+s+1}.0.0-0`:Wt(a)?s==="0"?l=`>=${s}.${i}.0${n} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.0${n} <${+s+1}.0.0-0`:c?(Je("replaceCaret pr",c),s==="0"?i==="0"?l=`>=${s}.${i}.${a}-${c} <${s}.${i}.${+a+1}-0`:l=`>=${s}.${i}.${a}-${c} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${a}-${c} <${+s+1}.0.0-0`):(Je("no pr"),s==="0"?i==="0"?l=`>=${s}.${i}.${a}${n} <${s}.${i}.${+a+1}-0`:l=`>=${s}.${i}.${a}${n} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${a} <${+s+1}.0.0-0`),Je("caret return",l),l})},cW=(e,t)=>(Je("replaceXRanges",e,t),e.split(/\s+/).map(r=>lW(r,t)).join(" ")),lW=(e,t)=>{e=e.trim();let r=t.loose?zt[Ut.XRANGELOOSE]:zt[Ut.XRANGE];return e.replace(r,(n,o,s,i,a,c)=>{Je("xRange",e,n,o,s,i,a,c);let l=Wt(s),p=l||Wt(i),u=p||Wt(a),d=u;return o==="="&&d&&(o=""),c=t.includePrerelease?"-0":"",l?o===">"||o==="<"?n="<0.0.0-0":n="*":o&&d?(p&&(i=0),a=0,o===">"?(o=">=",p?(s=+s+1,i=0,a=0):(i=+i+1,a=0)):o==="<="&&(o="<",p?s=+s+1:i=+i+1),o==="<"&&(c="-0"),n=`${o+s}.${i}.${a}${c}`):p?n=`>=${s}.0.0${c} <${+s+1}.0.0-0`:u&&(n=`>=${s}.${i}.0${c} <${s}.${+i+1}.0-0`),Je("xRange return",n),n})},uW=(e,t)=>(Je("replaceStars",e,t),e.trim().replace(zt[Ut.STAR],"")),pW=(e,t)=>(Je("replaceGTE0",e,t),e.trim().replace(zt[t.includePrerelease?Ut.GTE0PRE:Ut.GTE0],"")),dW=e=>(t,r,n,o,s,i,a,c,l,p,u,d)=>(Wt(n)?r="":Wt(o)?r=`>=${n}.0.0${e?"-0":""}`:Wt(s)?r=`>=${n}.${o}.0${e?"-0":""}`:i?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,Wt(l)?c="":Wt(p)?c=`<${+l+1}.0.0-0`:Wt(u)?c=`<${l}.${+p+1}.0-0`:d?c=`<=${l}.${p}.${u}-${d}`:e?c=`<${l}.${p}.${+u+1}-0`:c=`<=${c}`,`${r} ${c}`.trim()),fW=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(Je(e[n].semver),e[n].semver!==eg.ANY&&e[n].semver.prerelease.length>0){let o=e[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}});var ma=v((Yce,B0)=>{"use strict";var ha=Symbol("SemVer ANY"),ng=class e{static get ANY(){return ha}constructor(t,r){if(r=L0(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),rg("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===ha?this.value="":this.value=this.operator+this.semver.version,rg("comp",this)}parse(t){let r=this.options.loose?F0[q0.COMPARATORLOOSE]:F0[q0.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new j0(n[2],this.options.loose):this.semver=ha}toString(){return this.value}test(t){if(rg("Comparator.test",t,this.options.loose),this.semver===ha||t===ha)return!0;if(typeof t=="string")try{t=new j0(t,this.options)}catch{return!1}return tg(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new U0(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new U0(this.value,r).test(t.semver):(r=L0(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||tg(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||tg(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};B0.exports=ng;var L0=Gl(),{safeRe:F0,t:q0}=Os(),tg=Xh(),rg=da(),j0=jt(),U0=Rr()});var ga=v((Jce,G0)=>{"use strict";var mW=Rr(),hW=(e,t,r)=>{try{t=new mW(t,r)}catch{return!1}return t.test(e)};G0.exports=hW});var K0=v((Xce,H0)=>{"use strict";var gW=Rr(),yW=(e,t)=>new gW(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));H0.exports=yW});var W0=v((Qce,z0)=>{"use strict";var wW=jt(),vW=Rr(),xW=(e,t,r)=>{let n=null,o=null,s=null;try{s=new vW(t,r)}catch{return null}return e.forEach(i=>{s.test(i)&&(!n||o.compare(i)===-1)&&(n=i,o=new wW(n,r))}),n};z0.exports=xW});var Y0=v((Zce,V0)=>{"use strict";var bW=jt(),_W=Rr(),SW=(e,t,r)=>{let n=null,o=null,s=null;try{s=new _W(t,r)}catch{return null}return e.forEach(i=>{s.test(i)&&(!n||o.compare(i)===1)&&(n=i,o=new bW(n,r))}),n};V0.exports=SW});var Q0=v((ele,X0)=>{"use strict";var og=jt(),TW=Rr(),J0=fa(),kW=(e,t)=>{e=new TW(e,t);let r=new og("0.0.0");if(e.test(r)||(r=new og("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){let o=e.set[n],s=null;o.forEach(i=>{let a=new og(i.semver.version);switch(i.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||J0(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${i.operator}`)}}),s&&(!r||J0(r,s))&&(r=s)}return r&&e.test(r)?r:null};X0.exports=kW});var eI=v((tle,Z0)=>{"use strict";var EW=Rr(),RW=(e,t)=>{try{return new EW(e,t).range||"*"}catch{return null}};Z0.exports=RW});var eu=v((rle,oI)=>{"use strict";var IW=jt(),nI=ma(),{ANY:AW}=nI,CW=Rr(),PW=ga(),tI=fa(),rI=Yl(),$W=Xl(),OW=Jl(),NW=(e,t,r,n)=>{e=new IW(e,n),t=new CW(t,n);let o,s,i,a,c;switch(r){case">":o=tI,s=$W,i=rI,a=">",c=">=";break;case"<":o=rI,s=OW,i=tI,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(PW(e,t,n))return!1;for(let l=0;l<t.set.length;++l){let p=t.set[l],u=null,d=null;if(p.forEach(g=>{g.semver===AW&&(g=new nI(">=0.0.0")),u=u||g,d=d||g,o(g.semver,u.semver,n)?u=g:i(g.semver,d.semver,n)&&(d=g)}),u.operator===a||u.operator===c||(!d.operator||d.operator===a)&&s(e,d.semver))return!1;if(d.operator===c&&i(e,d.semver))return!1}return!0};oI.exports=NW});var iI=v((nle,sI)=>{"use strict";var MW=eu(),DW=(e,t,r)=>MW(e,t,">",r);sI.exports=DW});var cI=v((ole,aI)=>{"use strict";var LW=eu(),FW=(e,t,r)=>LW(e,t,"<",r);aI.exports=FW});var pI=v((sle,uI)=>{"use strict";var lI=Rr(),qW=(e,t,r)=>(e=new lI(e,r),t=new lI(t,r),e.intersects(t,r));uI.exports=qW});var fI=v((ile,dI)=>{"use strict";var jW=ga(),UW=Er();dI.exports=(e,t,r)=>{let n=[],o=null,s=null,i=e.sort((p,u)=>UW(p,u,r));for(let p of i)jW(p,t,r)?(s=p,o||(o=p)):(s&&n.push([o,s]),s=null,o=null);o&&n.push([o,null]);let a=[];for(let[p,u]of n)p===u?a.push(p):!u&&p===i[0]?a.push("*"):u?p===i[0]?a.push(`<=${u}`):a.push(`${p} - ${u}`):a.push(`>=${p}`);let c=a.join(" || "),l=typeof t.raw=="string"?t.raw:String(t);return c.length<l.length?c:t}});var vI=v((ale,wI)=>{"use strict";var mI=Rr(),ig=ma(),{ANY:sg}=ig,ya=ga(),ag=Er(),BW=(e,t,r={})=>{if(e===t)return!0;e=new mI(e,r),t=new mI(t,r);let n=!1;e:for(let o of e.set){for(let s of t.set){let i=HW(o,s,r);if(n=n||i!==null,i)continue e}if(n)return!1}return!0},GW=[new ig(">=0.0.0-0")],hI=[new ig(">=0.0.0")],HW=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===sg){if(t.length===1&&t[0].semver===sg)return!0;r.includePrerelease?e=GW:e=hI}if(t.length===1&&t[0].semver===sg){if(r.includePrerelease)return!0;t=hI}let n=new Set,o,s;for(let g of e)g.operator===">"||g.operator===">="?o=gI(o,g,r):g.operator==="<"||g.operator==="<="?s=yI(s,g,r):n.add(g.semver);if(n.size>1)return null;let i;if(o&&s){if(i=ag(o.semver,s.semver,r),i>0)return null;if(i===0&&(o.operator!==">="||s.operator!=="<="))return null}for(let g of n){if(o&&!ya(g,String(o),r)||s&&!ya(g,String(s),r))return null;for(let m of t)if(!ya(g,String(m),r))return!1;return!0}let a,c,l,p,u=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,d=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1;u&&u.prerelease.length===1&&s.operator==="<"&&u.prerelease[0]===0&&(u=!1);for(let g of t){if(p=p||g.operator===">"||g.operator===">=",l=l||g.operator==="<"||g.operator==="<=",o){if(d&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===d.major&&g.semver.minor===d.minor&&g.semver.patch===d.patch&&(d=!1),g.operator===">"||g.operator===">="){if(a=gI(o,g,r),a===g&&a!==o)return!1}else if(o.operator===">="&&!ya(o.semver,String(g),r))return!1}if(s){if(u&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===u.major&&g.semver.minor===u.minor&&g.semver.patch===u.patch&&(u=!1),g.operator==="<"||g.operator==="<="){if(c=yI(s,g,r),c===g&&c!==s)return!1}else if(s.operator==="<="&&!ya(s.semver,String(g),r))return!1}if(!g.operator&&(s||o)&&i!==0)return!1}return!(o&&l&&!s&&i!==0||s&&p&&!o&&i!==0||d||u)},gI=(e,t,r)=>{if(!e)return t;let n=ag(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},yI=(e,t,r)=>{if(!e)return t;let n=ag(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};wI.exports=BW});var SI=v((cle,_I)=>{"use strict";var cg=Os(),xI=pa(),KW=jt(),bI=zh(),zW=Ro(),WW=WR(),VW=YR(),YW=QR(),JW=t0(),XW=n0(),QW=s0(),ZW=a0(),eV=l0(),tV=Er(),rV=f0(),nV=h0(),oV=Vl(),sV=v0(),iV=b0(),aV=fa(),cV=Yl(),lV=Yh(),uV=Jh(),pV=Jl(),dV=Xl(),fV=Xh(),mV=C0(),hV=ma(),gV=Rr(),yV=ga(),wV=K0(),vV=W0(),xV=Y0(),bV=Q0(),_V=eI(),SV=eu(),TV=iI(),kV=cI(),EV=pI(),RV=fI(),IV=vI();_I.exports={parse:zW,valid:WW,clean:VW,inc:YW,diff:JW,major:XW,minor:QW,patch:ZW,prerelease:eV,compare:tV,rcompare:rV,compareLoose:nV,compareBuild:oV,sort:sV,rsort:iV,gt:aV,lt:cV,eq:lV,neq:uV,gte:pV,lte:dV,cmp:fV,coerce:mV,Comparator:hV,Range:gV,satisfies:yV,toComparators:wV,maxSatisfying:vV,minSatisfying:xV,minVersion:bV,validRange:_V,outside:SV,gtr:TV,ltr:kV,intersects:EV,simplifyRange:RV,subset:IV,SemVer:KW,re:cg.re,src:cg.src,tokens:cg.t,SEMVER_SPEC_VERSION:xI.SEMVER_SPEC_VERSION,RELEASE_TYPES:xI.RELEASE_TYPES,compareIdentifiers:bI.compareIdentifiers,rcompareIdentifiers:bI.rcompareIdentifiers}});function kI(e,t,r){return e?e.constructor===t?!0:AV.call(e)===r:!1}function EI(e){return kI(e,Uint8Array,CV)}function $V(e){return kI(e,ArrayBuffer,PV)}function OV(e){return EI(e)||$V(e)}function NV(e){if(!EI(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}function MV(e){if(!OV(e))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``)}function tu(e,t){if(e.length===0)return new Uint8Array(0);t??=e.reduce((o,s)=>o+s.length,0);let r=new Uint8Array(t),n=0;for(let o of e)NV(o),r.set(o,n),n+=o.length;return r}function wa(e,t="utf8"){return MV(e),TI[t]??=new globalThis.TextDecoder(t),TI[t].decode(e)}function DV(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}function va(e){return DV(e),LV.encode(e)}var AV,CV,PV,TI,LV,lle,RI=b(()=>{AV=Object.prototype.toString,CV="[object Uint8Array]",PV="[object ArrayBuffer]";TI={utf8:new globalThis.TextDecoder("utf8")};LV=new globalThis.TextEncoder;lle=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"))});import{isDeepStrictEqual as II}from"node:util";import lg from"node:process";import Sn from"node:fs";import ru from"node:path";import Io from"node:crypto";import AI from"node:assert";var PI,$I,Ao,ug,Kn,CI,pg,zn,dg,Co,fg=b(()=>{VS();JS();kT();PI=mn(mR(),1),$I=mn($R(),1);NR();Ao=mn(SI(),1);RI();ug="aes-256-cbc",Kn=()=>Object.create(null),CI=e=>e!==void 0,pg=(e,t)=>{let r=new Set(["undefined","symbol","function"]),n=typeof t;if(r.has(n))throw new TypeError(`Setting a value of type \`${n}\` for key \`${e}\` is not allowed as it's not supported by JSON`)},zn="__internal__",dg=`${zn}.migrations.version`,Co=class{path;events;#o;#r;#e;#t={};#s=!1;#i;#a;#n;constructor(t={}){let r=this.#c(t);this.#e=r,this.#l(r),this.#p(r),this.#d(r),this.events=new EventTarget,this.#r=r.encryptionKey,this.path=this.#f(r),this.#m(r),r.watch&&this._watch()}get(t,r){if(this.#e.accessPropertiesByDotNotation)return this._get(t,r);let{store:n}=this;return t in n?n[t]:r}set(t,r){if(typeof t!="string"&&typeof t!="object")throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof t}`);if(typeof t!="object"&&r===void 0)throw new TypeError("Use `delete()` to clear values");if(this._containsReservedKey(t))throw new TypeError(`Please don't use the ${zn} key, as it's used to manage this module internal operations.`);let{store:n}=this,o=(s,i)=>{if(pg(s,i),this.#e.accessPropertiesByDotNotation)Pi(n,s,i);else{if(s==="__proto__"||s==="constructor"||s==="prototype")return;n[s]=i}};if(typeof t=="object"){let s=t;for(let[i,a]of Object.entries(s))o(i,a)}else o(t,r);this.store=n}has(t){return this.#e.accessPropertiesByDotNotation?nl(this.store,t):t in this.store}appendToArray(t,r){pg(t,r);let n=this.#e.accessPropertiesByDotNotation?this._get(t,[]):t in this.store?this.store[t]:[];if(!Array.isArray(n))throw new TypeError(`The key \`${t}\` is already set to a non-array value`);this.set(t,[...n,r])}reset(...t){for(let r of t)CI(this.#t[r])&&this.set(r,this.#t[r])}delete(t){let{store:r}=this;this.#e.accessPropertiesByDotNotation?WS(r,t):delete r[t],this.store=r}clear(){let t=Kn();for(let r of Object.keys(this.#t))CI(this.#t[r])&&(pg(r,this.#t[r]),this.#e.accessPropertiesByDotNotation?Pi(t,r,this.#t[r]):t[r]=this.#t[r]);this.store=t}onDidChange(t,r){if(typeof t!="string")throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof t}`);if(typeof r!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof r}`);return this._handleValueChange(()=>this.get(t),r)}onDidAnyChange(t){if(typeof t!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof t}`);return this._handleStoreChange(t)}get size(){return Object.keys(this.store).filter(r=>!this._isReservedKeyPath(r)).length}get store(){try{let t=Sn.readFileSync(this.path,this.#r?null:"utf8"),r=this._decryptData(t),n=this._deserialize(r);return this.#s||this._validate(n),Object.assign(Kn(),n)}catch(t){if(t?.code==="ENOENT")return this._ensureDirectory(),Kn();if(this.#e.clearInvalidConfig){let r=t;if(r.name==="SyntaxError"||r.message?.startsWith("Config schema violation:"))return Kn()}throw t}}set store(t){if(this._ensureDirectory(),!nl(t,zn))try{let r=Sn.readFileSync(this.path,this.#r?null:"utf8"),n=this._decryptData(r),o=this._deserialize(n);nl(o,zn)&&Pi(t,zn,df(o,zn))}catch{}this.#s||this._validate(t),this._write(t),this.events.dispatchEvent(new Event("change"))}*[Symbol.iterator](){for(let[t,r]of Object.entries(this.store))this._isReservedKeyPath(t)||(yield[t,r])}_closeWatcher(){this.#i&&(this.#i.close(),this.#i=void 0),this.#a&&(Sn.unwatchFile(this.path),this.#a=!1),this.#n=void 0}_decryptData(t){if(!this.#r)return typeof t=="string"?t:wa(t);try{let r=t.slice(0,16),n=Io.pbkdf2Sync(this.#r,r,1e4,32,"sha512"),o=Io.createDecipheriv(ug,n,r),s=t.slice(17),i=typeof s=="string"?va(s):s;return wa(tu([o.update(i),o.final()]))}catch{try{let r=t.slice(0,16),n=Io.pbkdf2Sync(this.#r,r.toString(),1e4,32,"sha512"),o=Io.createDecipheriv(ug,n,r),s=t.slice(17),i=typeof s=="string"?va(s):s;return wa(tu([o.update(i),o.final()]))}catch{}}return typeof t=="string"?t:wa(t)}_handleStoreChange(t){let r=this.store,n=()=>{let o=r,s=this.store;II(s,o)||(r=s,t.call(this,s,o))};return this.events.addEventListener("change",n),()=>{this.events.removeEventListener("change",n)}}_handleValueChange(t,r){let n=t(),o=()=>{let s=n,i=t();II(i,s)||(n=i,r.call(this,i,s))};return this.events.addEventListener("change",o),()=>{this.events.removeEventListener("change",o)}}_deserialize=t=>JSON.parse(t);_serialize=t=>JSON.stringify(t,void 0," ");_validate(t){if(!this.#o||this.#o(t)||!this.#o.errors)return;let n=this.#o.errors.map(({instancePath:o,message:s=""})=>`\`${o.slice(1)}\` ${s}`);throw new Error("Config schema violation: "+n.join("; "))}_ensureDirectory(){Sn.mkdirSync(ru.dirname(this.path),{recursive:!0})}_write(t){let r=this._serialize(t);if(this.#r){let n=Io.randomBytes(16),o=Io.pbkdf2Sync(this.#r,n,1e4,32,"sha512"),s=Io.createCipheriv(ug,o,n);r=tu([n,va(":"),s.update(va(r)),s.final()])}if(lg.env.SNAP)Sn.writeFileSync(this.path,r,{mode:this.#e.configFileMode});else try{Ef(this.path,r,{mode:this.#e.configFileMode})}catch(n){if(n?.code==="EXDEV"){Sn.writeFileSync(this.path,r,{mode:this.#e.configFileMode});return}throw n}}_watch(){if(this._ensureDirectory(),Sn.existsSync(this.path)||this._write(Kn()),lg.platform==="win32"||lg.platform==="darwin"){this.#n??=Gh(()=>{this.events.dispatchEvent(new Event("change"))},{wait:100});let t=ru.dirname(this.path),r=ru.basename(this.path);this.#i=Sn.watch(t,{persistent:!1,encoding:"utf8"},(n,o)=>{o&&o!==r||typeof this.#n=="function"&&this.#n()})}else this.#n??=Gh(()=>{this.events.dispatchEvent(new Event("change"))},{wait:1e3}),Sn.watchFile(this.path,{persistent:!1},(t,r)=>{typeof this.#n=="function"&&this.#n()}),this.#a=!0}_migrate(t,r,n){let o=this._get(dg,"0.0.0"),s=Object.keys(t).filter(a=>this._shouldPerformMigration(a,o,r)),i=structuredClone(this.store);for(let a of s)try{n&&n(this,{fromVersion:o,toVersion:a,finalVersion:r,versions:s});let c=t[a];c?.(this),this._set(dg,a),o=a,i=structuredClone(this.store)}catch(c){this.store=i;try{this._write(i)}catch{}let l=c instanceof Error?c.message:String(c);throw new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${l}`)}(this._isVersionInRangeFormat(o)||!Ao.default.eq(o,r))&&this._set(dg,r)}_containsReservedKey(t){return typeof t=="string"?this._isReservedKeyPath(t):!t||typeof t!="object"?!1:this._objectContainsReservedKey(t)}_objectContainsReservedKey(t){if(!t||typeof t!="object")return!1;for(let[r,n]of Object.entries(t))if(this._isReservedKeyPath(r)||this._objectContainsReservedKey(n))return!0;return!1}_isReservedKeyPath(t){return t===zn||t.startsWith(`${zn}.`)}_isVersionInRangeFormat(t){return Ao.default.clean(t)===null}_shouldPerformMigration(t,r,n){return this._isVersionInRangeFormat(t)?r!=="0.0.0"&&Ao.default.satisfies(r,t)?!1:Ao.default.satisfies(n,t):!(Ao.default.lte(t,r)||Ao.default.gt(t,n))}_get(t,r){return df(this.store,t,r)}_set(t,r){let{store:n}=this;Pi(n,t,r),this.store=n}#c(t){let r={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438,...t};if(!r.cwd){if(!r.projectName)throw new Error("Please specify the `projectName` option.");r.cwd=hf(r.projectName,{suffix:r.projectSuffix}).config}return typeof r.fileExtension=="string"&&(r.fileExtension=r.fileExtension.replace(/^\.+/,"")),r}#l(t){if(!(t.schema??t.ajvOptions??t.rootSchema))return;if(t.schema&&typeof t.schema!="object")throw new TypeError("The `schema` option must be an object.");let r=$I.default.default,n=new PI.Ajv2020({allErrors:!0,useDefaults:!0,...t.ajvOptions});r(n);let o={...t.rootSchema,type:"object",properties:t.schema};this.#o=n.compile(o),this.#u(t.schema)}#u(t){let r=Object.entries(t??{});for(let[n,o]of r){if(!o||typeof o!="object"||!Object.hasOwn(o,"default"))continue;let{default:s}=o;s!==void 0&&(this.#t[n]=s)}}#p(t){t.defaults&&Object.assign(this.#t,t.defaults)}#d(t){t.serialize&&(this._serialize=t.serialize),t.deserialize&&(this._deserialize=t.deserialize)}#f(t){let r=typeof t.fileExtension=="string"?t.fileExtension:void 0,n=r?`.${r}`:"";return ru.resolve(t.cwd,`${t.configName??"config"}${n}`)}#m(t){if(t.migrations){this.#h(t),this._validate(this.store);return}let r=this.store,n=Object.assign(Kn(),t.defaults??{},r);this._validate(n);try{AI.deepEqual(r,n)}catch{this.store=n}}#h(t){let{migrations:r,projectVersion:n}=t;if(r){if(!n)throw new Error("Please specify the `projectVersion` option.");this.#s=!0;try{let o=this.store,s=Object.assign(Kn(),t.defaults??{},o);try{AI.deepEqual(o,s)}catch{this._write(s)}this._migrate(r,n,t.beforeEachMigration)}finally{this.#s=!1}}}}});import Bt from"node:fs";import nu from"node:path";function jV(){return nu.join(qV,".flowdot")}function NI(){return nu.join(jV(),"logs")}function MI(){let e=NI();return OI?nu.join(e,`${OI}.log`):nu.join(e,"debug.log")}function UV(){try{let e=NI();Bt.existsSync(e)||Bt.mkdirSync(e,{recursive:!0,mode:448})}catch{}}function BV(e){try{if(!Bt.existsSync(e))return;let r=Bt.statSync(e).size;if(r>0){let o=Bt.openSync(e,"r+");try{let s=0,i=Buffer.alloc(Math.min(65536,r));for(;s<r;){let a=Math.min(65536,r-s);a<65536?Bt.writeSync(o,Buffer.alloc(a),0,a,s):Bt.writeSync(o,i,0,a,s),s+=a}Bt.fsyncSync(o)}finally{Bt.closeSync(o)}}Bt.unlinkSync(e)}catch{try{Bt.unlinkSync(e)}catch{}}}function GV(){try{let e=MI();if(Bt.existsSync(e)&&Bt.statSync(e).size>FV){let r=e+".old";Bt.existsSync(r)&&BV(r),Bt.renameSync(e,r)}}catch{}}function mg(e,t,r,n=null){try{UV(),GV();let s={timestamp:new Date().toISOString(),level:e,category:t,message:r};n!=null&&(s.data=n);let i=JSON.stringify(s)+`
25
+ `;Bt.appendFileSync(MI(),i,{encoding:"utf-8",mode:384})}catch{}}function O(e,t,r=null){mg("DEBUG",e,t,r)}function G(e,t,r=null){mg("WARN",e,t,r)}function pe(e,t,r=null){mg("ERROR",e,t,r)}var FV,qV,OI,U=b(()=>{"use strict";FV=10*1024*1024,qV=process.cwd(),OI=null});function KV(e){return e==="localhost"||e==="127.0.0.1"||e==="::1"||e==="[::1]"||e==="0.0.0.0"}function hg(e){let t=e.trim();if(!t)return{valid:!1,normalizedUrl:"",error:"URL cannot be empty"};let r=["javascript:","data:","file:","vbscript:","about:"],n=t.toLowerCase();for(let l of r)if(n.startsWith(l))return{valid:!1,normalizedUrl:"",error:`Invalid URL scheme: ${l.slice(0,-1)} is not allowed`};let o;try{o=new URL(t)}catch{return{valid:!1,normalizedUrl:"",error:"Invalid URL format. Expected format: https://example.com or http://localhost:8000"}}if(o.protocol!=="http:"&&o.protocol!=="https:")return{valid:!1,normalizedUrl:"",error:`Invalid protocol: ${o.protocol}. Only http: and https: are allowed`};let s=o.hostname;if(!s)return{valid:!1,normalizedUrl:"",error:"URL must include a hostname"};if(!/^[\w.:[\]-]+$/.test(s))return{valid:!1,normalizedUrl:"",error:"Invalid characters in hostname"};if(o.port){let l=parseInt(o.port,10);if(isNaN(l)||l<1||l>65535)return{valid:!1,normalizedUrl:"",error:`Invalid port: ${o.port}. Must be between 1 and 65535`}}if(o.protocol==="http:"&&!KV(s))return{valid:!1,normalizedUrl:"",error:"Insecure HTTP is only allowed for loopback/local development endpoints. Use HTTPS for all non-loopback servers."};let i=o.origin;o.pathname&&o.pathname!=="/"&&(i+=o.pathname.replace(/\/$/,""));let a=HV.some(l=>s===l||s.endsWith("."+l)),c;return!a&&o.protocol==="https:"&&(c=`Warning: URL "${s}" is not a known FlowDot domain. Ensure this is a trusted server before proceeding. Known domains: flowdot.ai, localhost, 127.0.0.1`),{valid:!0,normalizedUrl:i,warning:c}}var HV,Xe,gg,Gt=b(()=>{"use strict";fg();U();HV=["flowdot.ai","flowdot.io","localhost","127.0.0.1","::1","0.0.0.0"];Xe=class{store;constructor(){this.store=new Co({projectName:"flowdot-cli",defaults:{apiUrl:"https://flowdot.ai",model:"capable",spinnerStyle:"dots",memoriesEnabled:!0}})}get(t){return this.store.get(t)}set(t,r){if(t==="apiUrl"&&typeof r=="string"){let n=hg(r);if(!n.valid)throw new Error(`Invalid API URL: ${n.error}`);this.store.set(t,n.normalizedUrl),n.warning&&G("CONFIG",n.warning);return}this.store.set(t,r)}setApiUrl(t){let r=hg(t);return r.valid&&this.store.set("apiUrl",r.normalizedUrl),r}getModel(){return this.get("model")}getOAuthProvider(){return this.get("oauthProvider")||null}setOAuthProvider(t,r){this.set("oauthProvider",t),this.set("oauthModel",r)}clearOAuthProvider(){this.set("oauthProvider",""),this.set("oauthModel","")}clear(){this.store.clear()}},gg=new Xe});async function su(){if(!DI){DI=!0;try{yg=(await import("keytar")).default??await import("keytar")}catch{yg=null}}return yg}function FI(e){return`oauth-${e}-access`}function qI(e){return`oauth-${e}-refresh`}function jI(e){return`oauth-${e}-expires`}async function zV(e,t){let r=await su();if(!r)throw new Error("keytar is not available \u2014 cannot save OAuth tokens");if(await r.setPassword(Ns,FI(e),t.access_token),t.refresh_token&&await r.setPassword(Ns,qI(e),t.refresh_token),t.expires_in){let n=Date.now()+t.expires_in*1e3;await r.setPassword(Ns,jI(e),n.toString())}}async function WV(e){let t=await su();return t?await t.getPassword(Ns,FI(e)):null}async function VV(e){let t=await su();return t?await t.getPassword(Ns,qI(e)):null}async function YV(e){let t=await su();if(!t)return null;let r=await t.getPassword(Ns,jI(e));return r?parseInt(r,10):null}async function UI(e){let t=LI[e];if(!t)throw new Error(`Unknown OAuth provider: ${e}`);let r=await VV(e);if(!r)return null;let n=3,o=null;for(let s=0;s<n;s++)try{let a=(await tt.post(t.tokenUrl,new URLSearchParams({grant_type:"refresh_token",refresh_token:r,client_id:t.clientId||""}).toString(),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})).data;return await zV(e,a),a.access_token}catch(i){if(o=i,s<n-1){let a=Math.pow(2,s)*1e3;await new Promise(c=>setTimeout(c,a))}}return console.error(`Failed to refresh OAuth token for ${e} after ${n} attempts:`,o?.message),null}async function wg(e){let t=await YV(e),r=Date.now();if(t&&r>=t-300*1e3){let o=await UI(e);if(o)return o}let n=await WV(e);if(!n)throw new Error(`No OAuth token found for provider: ${e}. Run: flowdot connect ${e}`);return n}async function vg(e,t,r){if(!LI[e])throw new Error(`OAuth provider ${e} not implemented for API calls`);let o=3,s=null;for(let i=0;i<o;i++)try{let a=await wg(e);if(e==="openai")return(await tt.post("https://api.openai.com/v1/chat/completions",{model:t,messages:r},{headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json"}})).data.choices[0].message.content;throw new Error(`OAuth provider ${e} not implemented for API calls`)}catch(a){if(s=a,tt.isAxiosError(a)){let c=a.response?.status,l=a.response?.data?.error?.message||a.message;if(c===401||c===403){if(i===0&&(console.error(`OAuth authentication failed for ${e}. Attempting token refresh...`),await UI(e)))continue;throw new Error(`OAuth authentication failed for ${e}. Your session may have expired. Please reconnect: flowdot connect ${e}`)}if(c===429){if(console.warn(`Rate limit hit for ${e}. Retrying with backoff...`),i<o-1){let p=Math.pow(2,i)*1e3;await new Promise(u=>setTimeout(u,p));continue}throw new Error(`Rate limit exceeded for ${e}. Please try again later.`)}if(c&&c>=500){if(console.warn(`${e} server error (${c}). Retrying...`),i<o-1){let p=Math.pow(2,i)*1e3;await new Promise(u=>setTimeout(u,p));continue}throw new Error(`${e} is experiencing issues. Please try again later.`)}throw new Error(`${e} API error: ${l}`)}if(i<o-1){console.warn(`OAuth API call failed (attempt ${i+1}/${o}). Retrying...`);let c=Math.pow(2,i)*1e3;await new Promise(l=>setTimeout(l,c));continue}}throw new Error(`Failed to call ${e} API after ${o} attempts. Last error: ${s?.message||"Unknown error"}. Check your connection and try again, or disconnect OAuth provider to use FlowDot tier: flowdot disconnect`)}var yg,DI,LI,Ns,Ms=b(()=>{"use strict";Jr();Gt();yg=null,DI=!1;LI={openai:{id:"openai",displayName:"OpenAI (ChatGPT)",authUrl:"https://auth.openai.com/oauth/authorize",tokenUrl:"https://auth.openai.com/oauth/token",scopes:["openid","profile","email","offline_access","api.connectors.read","api.connectors.invoke"],requiresPKCE:!0,modelsEndpoint:"https://api.openai.com/v1/models",clientId:"app_EMoamEEZ73f0CkXaXp7hrann"}},Ns="flowdot-cli"});async function bg(e=!1){let t=Date.now();if(!e&&Po&&t-xg<JV)return O("SETTINGS","Using cached settings",{age:t-xg}),Po;try{let n=await(await Fe()).get("/api/hub/settings");return n.data?.success&&n.data?.data?(Po=n.data.data,xg=t,O("SETTINGS","Fetched user settings",{hasPreferredModels:!!Po?.preferredModels,tiers:Po?.preferredModels?Object.keys(Po.preferredModels):[]}),Po):(G("SETTINGS","Failed to fetch settings",{response:n.data}),null)}catch(r){return pe("SETTINGS","Error fetching user settings",{error:r.message}),null}}async function BI(){return(await bg())?.preferredModels||null}async function dr(e){try{let n=new Co,o=n.get("oauthProvider"),s=n.get("oauthModel");if(o&&s)return O("SETTINGS",`Resolved tier "${e}" via OAuth`,{provider:`oauth-${o}`,model:s}),{provider:`oauth-${o}`,model:s}}catch(n){O("SETTINGS",`OAuth config lookup failed, falling back to preferred models: ${n?.message}`)}let t=await BI();if(!t)return G("SETTINGS","No preferred models configured",{tier:e}),null;let r=t[e];return r?(O("SETTINGS",`Resolved tier "${e}"`,{provider:r.provider,model:r.model}),r):(G("SETTINGS",`No model configured for tier: ${e}`,{availableTiers:Object.keys(t)}),null)}var Po,xg,JV,or=b(()=>{"use strict";qe();U();fg();Po=null,xg=0,JV=300*1e3});var KI={};jp(KI,{checkCliAccess:()=>_g,clearCliAccessCache:()=>GI,displayUpgradeMessage:()=>Sg,requireCliAccess:()=>HI});async function _g(){if(sn&&Date.now()-sn.checkedAt<XV)return O("CLI_ACCESS","Returning cached permission status",{canAccess:sn.canAccess,cachedSecondsAgo:Math.floor((Date.now()-sn.checkedAt)/1e3)}),{canAccess:sn.canAccess,code:sn.canAccess?"ACCESS_GRANTED":"NATIVE_APP_ACCESS_REQUIRED",upgradeUrl:sn.canAccess?null:"https://flowdot.ai/subscriptions"};try{let t=await(await Fe()).get("/api/cli/access-status"),r=t.data?.can_access??!1;return O("CLI_ACCESS","Permission check completed",{canAccess:r,code:t.data?.code}),sn={canAccess:r,checkedAt:Date.now()},{canAccess:r,code:t.data?.code||(r?"ACCESS_GRANTED":"NATIVE_APP_ACCESS_REQUIRED"),upgradeUrl:r?null:t.data?.upgrade_url??"https://flowdot.ai/subscriptions"}}catch(e){return e.response?.status===401?(O("CLI_ACCESS","User not authenticated"),{canAccess:!1,code:"NATIVE_APP_ACCESS_REQUIRED",upgradeUrl:"https://flowdot.ai/subscriptions"}):e.response?.status===403&&e.response?.data?.code==="NATIVE_APP_ACCESS_REQUIRED"?(O("CLI_ACCESS","User lacks native_app_access permission"),sn={canAccess:!1,checkedAt:Date.now()},{canAccess:!1,code:"NATIVE_APP_ACCESS_REQUIRED",upgradeUrl:e.response?.data?.upgrade_url||"https://flowdot.ai/subscriptions"}):(G("CLI_ACCESS","Permission check failed, allowing access (fail-open)",{error:e.message,status:e.response?.status}),{canAccess:!0,code:"ACCESS_GRANTED",upgradeUrl:null})}}function GI(){sn=null,O("CLI_ACCESS","Permission cache cleared")}function Sg(){console.log(),console.log(Q.yellow("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510")),console.log(Q.yellow("\u2502 \u2502")),console.log(Q.yellow("\u2502 ")+Q.bold("This feature is not available on the free plan.")+Q.yellow(" \u2502")),console.log(Q.yellow("\u2502 \u2502")),console.log(Q.yellow("\u2502 The FlowDot CLI is available to subscribers. \u2502")),console.log(Q.yellow("\u2502 Upgrade your plan to unlock: \u2502")),console.log(Q.yellow("\u2502 \u2502")),console.log(Q.yellow("\u2502 ")+Q.white("\u2022 AI Agent execution from your terminal")+Q.yellow(" \u2502")),console.log(Q.yellow("\u2502 ")+Q.white("\u2022 Recipe execution and management")+Q.yellow(" \u2502")),console.log(Q.yellow("\u2502 ")+Q.white("\u2022 Workflow integration")+Q.yellow(" \u2502")),console.log(Q.yellow("\u2502 ")+Q.white("\u2022 Model browser and tier selection")+Q.yellow(" \u2502")),console.log(Q.yellow("\u2502 ")+Q.white("\u2022 Chat persistence and history")+Q.yellow(" \u2502")),console.log(Q.yellow("\u2502 \u2502")),console.log(Q.yellow("\u2502 Upgrade now at: ")+Q.cyan.underline("https://flowdot.ai/subscriptions")+Q.yellow(" \u2502")),console.log(Q.yellow("\u2502 \u2502")),console.log(Q.yellow("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518")),console.log()}async function HI(){(await _g()).canAccess||(Sg(),process.exit(1))}var sn,XV,Tg=b(()=>{"use strict";qe();li();U();sn=null,XV=300*1e3});var JI={};jp(JI,{clearToken:()=>YI,getApiClient:()=>Fe,getToken:()=>xa,isAuthenticated:()=>Rg,saveToken:()=>VI,streamAgentRequest:()=>du,streamOllamaChat:()=>Ig});import*as au from"node:http";import*as cu from"node:https";import{URL as WI}from"node:url";async function lu(){if(!zI){zI=!0;try{kg=(await import("keytar")).default??await import("keytar")}catch{kg=null}}return kg}function QV(){let n=process.env.FLOWDOT_API_TIMEOUT_MS;if(!n)return 6e4;let o=parseInt(n,10);return isNaN(o)?(G("API",`Invalid FLOWDOT_API_TIMEOUT_MS value "${n}", using default 60000ms`),6e4):o<5e3?(G("API",`FLOWDOT_API_TIMEOUT_MS ${o}ms is below minimum 5000ms, using minimum`),5e3):o>3e5?(G("API",`FLOWDOT_API_TIMEOUT_MS ${o}ms exceeds maximum 300000ms, using maximum`),3e5):o}function Eg(e,t=5){if(t<=0||e===null||e===void 0||typeof e!="object")return e;if(Array.isArray(e))return`[Array(${e.length})]`;let r={},n=e;for(let[o,s]of Object.entries(n)){let i=o.toLowerCase();ZV.some(c=>i.includes(c.toLowerCase()))?r[o]="[REDACTED]":typeof s=="object"&&s!==null?r[o]=Eg(s,t-1):typeof s=="string"&&s.length>100?r[o]=s.substring(0,50)+"...[truncated]":r[o]=s}return r}async function Fe(){let e=iu.get("apiUrl"),t=await lu(),r=t?await t.getPassword(uu,pu):null;O("API","getApiClient called",{apiUrl:e,hasToken:!!r,keytarAvailable:!!t});let n=tt.create({baseURL:e,timeout:QV(),headers:{"Content-Type":"application/json",Accept:"application/json"}});return r?n.defaults.headers.common.Authorization=`Bearer ${r}`:G("API","No token found in keytar - requests will be unauthenticated"),n.interceptors.request.use(async o=>{if(o.data?.provider?.startsWith("oauth-")){let s=o.data.provider.replace("oauth-","");O("API","OAuth request detected",{providerId:s,model:o.data.model});try{let i=await vg(s,o.data.model,o.data.conversationHistory||[]);O("API","OAuth call successful",{providerId:s}),o.adapter=()=>Promise.resolve({data:{success:!0,data:{response:i}},status:200,statusText:"OK",headers:{},config:o})}catch(i){G("API","OAuth call failed, falling back to FlowDot tier",{providerId:s,error:i instanceof Error?i.message:String(i)});try{let a=iu.get("model")||"capable",c=await dr(a);if(!c)throw new Error(`Failed to resolve model tier "${a}"`);O("API","Falling back to FlowDot tier",{tier:a,provider:c.provider,model:c.model}),o.data.provider=c.provider,o.data.model=c.model}catch(a){throw pe("API","Fallback to FlowDot tier failed",{error:a instanceof Error?a.message:String(a)}),i}}}return o}),n.interceptors.response.use(o=>o,async o=>{let s=o.config;if(o.response?.status===401)pe("API","401 Unauthorized - token may be invalid or expired",{url:s?.url,hasAuthHeader:!!s?.headers?.Authorization});else if(o.response?.status===400){pe("API","400 Bad Request",{url:s?.url,responseData:Eg(o.response?.data)});let i=o.response?.data?.message||o.response?.data?.error||"Bad Request";console.error(Q.red("API Error (400): "+i))}else if(o.response?.status===403){let i=o.response?.data;if(i?.code==="NATIVE_APP_ACCESS_REQUIRED"){let{displayUpgradeMessage:a,clearCliAccessCache:c}=await Promise.resolve().then(()=>(Tg(),KI));c(),a(),process.exit(1)}pe("API","403 Forbidden",{url:s?.url,responseCode:i?.code})}else if(o.response?.status>=500||e3(o)){s.__retryCount=s.__retryCount||0;let i=3,a=1e3;if(s.__retryCount<i)return s.__retryCount++,O("API",`Transient error (attempt ${s.__retryCount}/${i}), retrying...`,{url:s?.url,status:o.response?.status,error:o.message}),await new Promise(l=>setTimeout(l,a*s.__retryCount)),n.request(s);pe("API",`Server error after ${i} retries`,{url:s?.url,status:o.response?.status,responseData:Eg(o.response?.data)});let c=o.response?.data?.message||o.response?.data?.error||"";o.message=t3(o.response?.status,c,s?.url)}return Promise.reject(o)}),n}function e3(e){if(!e)return!1;let t=(e.message||"").toLowerCase(),r=e.code||"";return t.includes("timeout")||t.includes("network")||t.includes("econnreset")||t.includes("econnrefused")||t.includes("socket hang up")||r==="ECONNRESET"||r==="ECONNREFUSED"||r==="ETIMEDOUT"}function t3(e,t,r){let n=r?r.split("/").slice(-2).join("/"):"API";return e===502||e===503?"The FlowDot service is temporarily unavailable. Please try again in a moment.":e===504?"The request timed out. This may happen with complex operations - please try again.":t.includes("Could not connect")?"Unable to connect to the FlowDot service. Please check your internet connection or try again later.":t?`Server error: ${t}`:`The server encountered an error (${e}). This may be temporary - please try again.`}async function VI(e){let t=await lu();if(!t)throw new Error("keytar is not available \u2014 cannot save auth token");await t.setPassword(uu,pu,e)}async function xa(){let e=await lu();return e?await e.getPassword(uu,pu):null}async function YI(){let e=await lu();if(!e)throw new Error("keytar is not available \u2014 cannot clear auth token");await e.deletePassword(uu,pu)}async function Rg(){return!!await xa()}function r3(e){if(!e)return{displayMessage:"",deferredAction:null};let t=e.match(/```json\s*([\s\S]*?)\s*```/);if(!t)return{displayMessage:e,deferredAction:null};let r;try{r=JSON.parse(t[1])}catch{return{displayMessage:e,deferredAction:null}}let n=e.replace(/```json\s*[\s\S]*?\s*```/g,"").trim(),o=typeof r?.response=="string"&&r.response.length>0?r.response:n.length>0?n:e,s=typeof r?.action=="string"?r.action:null;if(!s||s==="none")return{displayMessage:o,deferredAction:null};if(s==="execute_workflow")return r.workflowId?{displayMessage:o,deferredAction:{type:"run_workflow",payload:{workflowId:r.workflowId,inputs:r.inputs||{},settings:r.settings||{}}}}:{displayMessage:o,deferredAction:null};if(!new Set(["run_workflow","web_search","fetch_url","scan_urls","invoke_toolkit_tool","invoke_mcp_tool","run_recipe"]).has(s))return{displayMessage:o,deferredAction:null};let a=r.payload&&typeof r.payload=="object"?r.payload:{},l={run_workflow:["workflowId"],web_search:["query"],fetch_url:["url"],scan_urls:["urls"],invoke_toolkit_tool:["tool"],invoke_mcp_tool:["tool"],run_recipe:["alias"]}[s]||[];for(let p of l)if(a[p]===void 0||a[p]===null||a[p]==="")return{displayMessage:o,deferredAction:null};return{displayMessage:o,deferredAction:{type:s,payload:a}}}async function Ig(e){let t=iu.get("ollamaUrl")||process.env.OLLAMA_HOST||"http://localhost:11434",r=[];return e.systemPrompt&&r.push({role:"system",content:e.systemPrompt}),r.push(...e.messages),new Promise((n,o)=>{let s;try{s=new WI("/api/chat",t)}catch(p){o(new Error(`Invalid Ollama URL '${t}': ${p?.message||p}`));return}let i=s.protocol==="https:",a=i?cu:au,c=JSON.stringify({model:e.model,messages:r,stream:!0}),l=a.request({hostname:s.hostname,port:s.port||(i?443:80),path:s.pathname,method:"POST",headers:{"Content-Type":"application/json","Content-Length":Buffer.byteLength(c)}},p=>{if(p.statusCode!==200){let w="";p.on("data",x=>{w+=x.toString()}),p.on("end",()=>{o(new Error(`Local Ollama at ${t} returned ${p.statusCode}: ${w}`))});return}p.setEncoding("utf8");let u="",d="",g=0,m=!1,h=w=>{let x=w.trim();if(x)try{let S=JSON.parse(x)?.message?.content;if(typeof S=="string"&&S.length>0){u+=S;let k=Math.ceil(S.length/4);g+=k,e.onToken&&e.onToken(k)}}catch{}};p.on("data",w=>{d+=w;let x=d.split(`
26
+ `);d=x.pop()||"";for(let E of x)h(E)}),p.on("end",()=>{m||(m=!0,d.length>0&&h(d),n({response:u,tokenCount:g}))}),p.on("error",w=>{m||(m=!0,o(new Error(`Local Ollama stream error at ${t}: ${w.message}`)))})});l.on("error",p=>{o(new Error(`Local Ollama at ${t} unreachable: ${p.message}`))}),l.write(c),l.end()})}async function n3(e){let t=[];t.push(...e.conversationHistory.map(r=>({role:r.role,content:r.content}))),t.push({role:"user",content:e.userMessage});try{let{response:r}=await Ig({systemPrompt:e.systemPrompt,messages:t,model:e.model,onToken:e.onToken}),{displayMessage:n,deferredAction:o}=r3(r);return{success:!0,data:{response:n,...o?{deferredAction:o}:{}}}}catch(r){return{success:!1,error:r?.message||String(r)}}}async function du(e){let t=iu.get("apiUrl")||"http://localhost:8000",r=await xa();return new Promise((n,o)=>{let s=new WI(`${t}/api/node-core-api/agent/conversation/stream`),i=s.protocol==="https:",a=i?cu:au,c=i?new cu.Agent({keepAlive:!1}):new au.Agent({keepAlive:!1}),l=JSON.stringify({message:e.message,conversationHistory:e.conversationHistory,selectedWorkflowIds:e.selectedWorkflowIds||[],conversationAssets:e.conversationAssets||[],provider:e.provider,model:e.model,max_tokens:e.maxTokens||4e3,deferToolExecution:!0,memoriesEnabled:e.memoriesEnabled!==!1,...e.systemPrompt&&{systemPrompt:e.systemPrompt}});O("STREAM_REQUEST","Sending request to server",{url:s.href,messageLength:e.message?.length||0,conversationHistoryLength:e.conversationHistory?.length||0,conversationHistoryRoles:e.conversationHistory?.map(k=>k.role)||[],provider:e.provider,model:e.model});let p=JSON.parse(l);O("STREAM_REQUEST","Request body structure",{postDataKeys:Object.keys(p),conversationHistoryType:typeof p.conversationHistory,conversationHistoryIsArray:Array.isArray(p.conversationHistory),conversationHistoryFromPostData:p.conversationHistory?.map(k=>({role:k.role,contentLength:k.content?.length||0}))||"NONE",postDataLength:l.length});let u={hostname:s.hostname,port:s.port||(i?443:80),path:s.pathname,method:"POST",agent:c,headers:{"Content-Type":"application/json",Accept:"text/event-stream",Authorization:r?`Bearer ${r}`:"","Content-Length":Buffer.byteLength(l),"X-FlowDot-Source":e.flowdotSource||process.env.FLOWDOT_CLIENT_SOURCE||"cli",...e.flowdotMode?{"x-flowdot-mode":e.flowdotMode}:{}}},d="",g=null,m=[],h=Date.now(),w=3e5,x=!1,E=a.request(u,k=>{if(k.statusCode!==200){let P="";k.on("data",$=>{P+=$.toString()}),k.on("end",()=>{x||(x=!0,n({success:!1,error:`Request failed with status ${k.statusCode}: ${P}`}))});return}k.setEncoding("utf8");let I="",C="";k.on("data",P=>{if(h=Date.now(),I+=P,P.trim().startsWith("{")&&!P.includes("data: "))try{let H=JSON.parse(P.trim());if(H.error||H.message){x||(x=!0,n({success:!1,error:H.error||H.message}));return}}catch{}C+=P;let $=C.split(`
27
+
28
+ `);C=$.pop()||"";for(let H of $){let ge=H.split(`
29
+ `);for(let De of ge)if(De.startsWith("data: ")){let Z=De.slice(6).trim();if(Z==="[DONE]")continue;try{let J=JSON.parse(Z);if(J.type==="requires_local_handling"){if(x)return;x=!0,E.destroy();let te=typeof J.systemPrompt=="string"?J.systemPrompt:"";n3({systemPrompt:te,conversationHistory:e.conversationHistory,userMessage:e.message,model:e.model,onToken:e.onToken}).then(n).catch(dt=>{n({success:!1,error:dt?.message||String(dt)})});return}else if(J.type==="token"&&J.content){d+=J.content;let te=Math.ceil(J.content.length/4);e.onToken&&e.onToken(te)}else if(J.type==="complete")J.data?.response&&(d=J.data.response),J.data?.deferredAction&&(g=J.data.deferredAction,O("STREAM_REQUEST","Received deferredAction from server",{type:g?.type,hasPayload:!!g?.payload})),J.data?.remainingActions&&(m=J.data.remainingActions);else if(J.type==="memory_action")e.onMemoryAction&&J.action&&J.memory&&(O("STREAM_REQUEST","Received memory_action event",{action:J.action,memoryId:J.memory?.id,hasUndoData:!!J.undoData}),e.onMemoryAction({action:J.action,memory:J.memory,undoData:J.undoData}));else if(J.type==="error"){x||(x=!0,n({success:!1,error:J.error||J.data?.message||"Stream error"}));return}}catch{}}}}),k.on("end",()=>{if(!x){if(O("STREAM_REQUEST","Stream ended",{rawDataLength:I.length,fullResponseLength:d.length}),d.length===0&&I.trim().startsWith("{"))try{let P=JSON.parse(I.trim());if(P.error||P.message){x=!0,n({success:!1,error:P.error||P.message});return}}catch{}x=!0,n({success:!0,data:{response:d,deferredAction:g,remainingActions:m}})}}),k.on("error",P=>{x||(x=!0,n({success:!1,error:P.message}))})});E.on("error",k=>{x||(x=!0,n({success:!1,error:k.message}))});let S=setInterval(()=>{if(Date.now()-h>w){if(clearInterval(S),E.destroy(),x)return;x=!0,n({success:!1,error:`Stream timed out after ${w/1e3}s of inactivity`})}},1e4);E.on("close",()=>{clearInterval(S)}),E.write(l),E.end()})}var iu,kg,zI,ZV,uu,pu,qe=b(()=>{"use strict";Jr();Gt();li();U();Ms();or();iu=new Xe,kg=null,zI=!1;ZV=["token","access_token","refresh_token","bearer","api_key","apikey","api-key","apiSecret","api_secret","password","passwd","pwd","secret","authorization","auth","credential","credentials","private_key","privatekey","private-key","connection_string","connectionstring","database_url","db_password","session_id","sessionid","session","cookie","cookies"];uu="flowdot-cli",pu="default"});var Vle,$o=b(()=>{"use strict";U();U();Vle=process.cwd()});var Ag=b(()=>{"use strict";});var fu=b(()=>{"use strict";});var Cg=b(()=>{"use strict"});var Oo=b(()=>{"use strict"});var No=b(()=>{"use strict"});var Pg=b(()=>{"use strict";No()});var $g=b(()=>{"use strict"});var Og=b(()=>{"use strict"});var ZI=b(()=>{"use strict";Oo();Pg();$g();Og()});var eA=b(()=>{"use strict"});var hu=b(()=>{"use strict";No()});var Ng=b(()=>{"use strict"});var oA=b(()=>{"use strict";Cg();No();hu();Ng()});var aA=b(()=>{"use strict";Oo();No();hu()});var cA=b(()=>{"use strict"});var lA=b(()=>{"use strict";No()});var mA=b(()=>{"use strict";oA();aA();No();hu();Ng();cA();lA()});var hA=b(()=>{"use strict"});var gA=b(()=>{"use strict"});var yA=b(()=>{"use strict"});var Lg=b(()=>{"use strict"});var Fg=b(()=>{"use strict";Lg()});var ke=v(Ot=>{"use strict";var qg=Symbol.for("yaml.alias"),vA=Symbol.for("yaml.document"),gu=Symbol.for("yaml.map"),xA=Symbol.for("yaml.pair"),jg=Symbol.for("yaml.scalar"),yu=Symbol.for("yaml.seq"),Tn=Symbol.for("yaml.node.type"),k3=e=>!!e&&typeof e=="object"&&e[Tn]===qg,E3=e=>!!e&&typeof e=="object"&&e[Tn]===vA,R3=e=>!!e&&typeof e=="object"&&e[Tn]===gu,I3=e=>!!e&&typeof e=="object"&&e[Tn]===xA,bA=e=>!!e&&typeof e=="object"&&e[Tn]===jg,A3=e=>!!e&&typeof e=="object"&&e[Tn]===yu;function _A(e){if(e&&typeof e=="object")switch(e[Tn]){case gu:case yu:return!0}return!1}function C3(e){if(e&&typeof e=="object")switch(e[Tn]){case qg:case gu:case jg:case yu:return!0}return!1}var P3=e=>(bA(e)||_A(e))&&!!e.anchor;Ot.ALIAS=qg;Ot.DOC=vA;Ot.MAP=gu;Ot.NODE_TYPE=Tn;Ot.PAIR=xA;Ot.SCALAR=jg;Ot.SEQ=yu;Ot.hasAnchor=P3;Ot.isAlias=k3;Ot.isCollection=_A;Ot.isDocument=E3;Ot.isMap=R3;Ot.isNode=C3;Ot.isPair=I3;Ot.isScalar=bA;Ot.isSeq=A3});var ba=v(Ug=>{"use strict";var _t=ke(),sr=Symbol("break visit"),SA=Symbol("skip children"),an=Symbol("remove node");function wu(e,t){let r=TA(t);_t.isDocument(e)?Ds(null,e.contents,r,Object.freeze([e]))===an&&(e.contents=null):Ds(null,e,r,Object.freeze([]))}wu.BREAK=sr;wu.SKIP=SA;wu.REMOVE=an;function Ds(e,t,r,n){let o=kA(e,t,r,n);if(_t.isNode(o)||_t.isPair(o))return EA(e,n,o),Ds(e,o,r,n);if(typeof o!="symbol"){if(_t.isCollection(t)){n=Object.freeze(n.concat(t));for(let s=0;s<t.items.length;++s){let i=Ds(s,t.items[s],r,n);if(typeof i=="number")s=i-1;else{if(i===sr)return sr;i===an&&(t.items.splice(s,1),s-=1)}}}else if(_t.isPair(t)){n=Object.freeze(n.concat(t));let s=Ds("key",t.key,r,n);if(s===sr)return sr;s===an&&(t.key=null);let i=Ds("value",t.value,r,n);if(i===sr)return sr;i===an&&(t.value=null)}}return o}async function vu(e,t){let r=TA(t);_t.isDocument(e)?await Ls(null,e.contents,r,Object.freeze([e]))===an&&(e.contents=null):await Ls(null,e,r,Object.freeze([]))}vu.BREAK=sr;vu.SKIP=SA;vu.REMOVE=an;async function Ls(e,t,r,n){let o=await kA(e,t,r,n);if(_t.isNode(o)||_t.isPair(o))return EA(e,n,o),Ls(e,o,r,n);if(typeof o!="symbol"){if(_t.isCollection(t)){n=Object.freeze(n.concat(t));for(let s=0;s<t.items.length;++s){let i=await Ls(s,t.items[s],r,n);if(typeof i=="number")s=i-1;else{if(i===sr)return sr;i===an&&(t.items.splice(s,1),s-=1)}}}else if(_t.isPair(t)){n=Object.freeze(n.concat(t));let s=await Ls("key",t.key,r,n);if(s===sr)return sr;s===an&&(t.key=null);let i=await Ls("value",t.value,r,n);if(i===sr)return sr;i===an&&(t.value=null)}}return o}function TA(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function kA(e,t,r,n){if(typeof r=="function")return r(e,t,n);if(_t.isMap(t))return r.Map?.(e,t,n);if(_t.isSeq(t))return r.Seq?.(e,t,n);if(_t.isPair(t))return r.Pair?.(e,t,n);if(_t.isScalar(t))return r.Scalar?.(e,t,n);if(_t.isAlias(t))return r.Alias?.(e,t,n)}function EA(e,t,r){let n=t[t.length-1];if(_t.isCollection(n))n.items[e]=r;else if(_t.isPair(n))e==="key"?n.key=r:n.value=r;else if(_t.isDocument(n))n.contents=r;else{let o=_t.isAlias(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}Ug.visit=wu;Ug.visitAsync=vu});var Bg=v(IA=>{"use strict";var RA=ke(),$3=ba(),O3={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},N3=e=>e.replace(/[!,[\]{}]/g,t=>O3[t]),_a=class e{constructor(t,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,r)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,r){this.atNextDocument&&(this.yaml={explicit:e.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},e.defaultTags),this.atNextDocument=!1);let n=t.trim().split(/[ \t]+/),o=n.shift();switch(o){case"%TAG":{if(n.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[s,i]=n;return this.tags[s]=i,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;let[s]=n;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{let i=/^\d+\.\d+$/.test(s);return r(6,`Unsupported YAML version ${s}`,i),!1}}default:return r(0,`Unknown directive ${o}`,!0),!1}}tagName(t,r){if(t==="!")return"!";if(t[0]!=="!")return r(`Not a valid tag: ${t}`),null;if(t[1]==="<"){let i=t.slice(2,-1);return i==="!"||i==="!!"?(r(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&r("Verbatim tags must end with a >"),i)}let[,n,o]=t.match(/^(.*!)([^!]*)$/s);o||r(`The ${t} tag has no suffix`);let s=this.tags[n];if(s)try{return s+decodeURIComponent(o)}catch(i){return r(String(i)),null}return n==="!"?t:(r(`Could not resolve tag: ${t}`),null)}tagString(t){for(let[r,n]of Object.entries(this.tags))if(t.startsWith(n))return r+N3(t.substring(n.length));return t[0]==="!"?t:`!<${t}>`}toString(t){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags),o;if(t&&n.length>0&&RA.isNode(t.contents)){let s={};$3.visit(t.contents,(i,a)=>{RA.isNode(a)&&a.tag&&(s[a.tag]=!0)}),o=Object.keys(s)}else o=[];for(let[s,i]of n)s==="!!"&&i==="tag:yaml.org,2002:"||(!t||o.some(a=>a.startsWith(i)))&&r.push(`%TAG ${s} ${i}`);return r.join(`
30
+ `)}};_a.defaultYaml={explicit:!1,version:"1.2"};_a.defaultTags={"!!":"tag:yaml.org,2002:"};IA.Directives=_a});var xu=v(Sa=>{"use strict";var AA=ke(),M3=ba();function D3(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(r)}return!0}function CA(e){let t=new Set;return M3.visit(e,{Value(r,n){n.anchor&&t.add(n.anchor)}}),t}function PA(e,t){for(let r=1;;++r){let n=`${e}${r}`;if(!t.has(n))return n}}function L3(e,t){let r=[],n=new Map,o=null;return{onAnchor:s=>{r.push(s),o??(o=CA(e));let i=PA(t,o);return o.add(i),i},setAnchors:()=>{for(let s of r){let i=n.get(s);if(typeof i=="object"&&i.anchor&&(AA.isScalar(i.node)||AA.isCollection(i.node)))i.node.anchor=i.anchor;else{let a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=s,a}}},sourceObjects:n}}Sa.anchorIsValid=D3;Sa.anchorNames=CA;Sa.createNodeAnchors=L3;Sa.findNewAnchor=PA});var Gg=v($A=>{"use strict";function Ta(e,t,r,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let o=0,s=n.length;o<s;++o){let i=n[o],a=Ta(e,n,String(o),i);a===void 0?delete n[o]:a!==i&&(n[o]=a)}else if(n instanceof Map)for(let o of Array.from(n.keys())){let s=n.get(o),i=Ta(e,n,o,s);i===void 0?n.delete(o):i!==s&&n.set(o,i)}else if(n instanceof Set)for(let o of Array.from(n)){let s=Ta(e,n,o,o);s===void 0?n.delete(o):s!==o&&(n.delete(o),n.add(s))}else for(let[o,s]of Object.entries(n)){let i=Ta(e,n,o,s);i===void 0?delete n[o]:i!==s&&(n[o]=i)}return e.call(t,r,n)}$A.applyReviver=Ta});var Wn=v(NA=>{"use strict";var F3=ke();function OA(e,t,r){if(Array.isArray(e))return e.map((n,o)=>OA(n,String(o),r));if(e&&typeof e.toJSON=="function"){if(!r||!F3.hasAnchor(e))return e.toJSON(t,r);let n={aliasCount:0,count:1,res:void 0};r.anchors.set(e,n),r.onCreate=s=>{n.res=s,delete r.onCreate};let o=e.toJSON(t,r);return r.onCreate&&r.onCreate(o),o}return typeof e=="bigint"&&!r?.keep?Number(e):e}NA.toJS=OA});var bu=v(DA=>{"use strict";var q3=Gg(),MA=ke(),j3=Wn(),Hg=class{constructor(t){Object.defineProperty(this,MA.NODE_TYPE,{value:t})}clone(){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:r,maxAliasCount:n,onAnchor:o,reviver:s}={}){if(!MA.isDocument(t))throw new TypeError("A document argument is required");let i={anchors:new Map,doc:t,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},a=j3.toJS(this,"",i);if(typeof o=="function")for(let{count:c,res:l}of i.anchors.values())o(l,c);return typeof s=="function"?q3.applyReviver(s,{"":a},"",a):a}};DA.NodeBase=Hg});var ka=v(LA=>{"use strict";var U3=xu(),B3=ba(),Fs=ke(),G3=bu(),H3=Wn(),Kg=class extends G3.NodeBase{constructor(t){super(Fs.ALIAS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,r){if(r?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let n;r?.aliasResolveCache?n=r.aliasResolveCache:(n=[],B3.visit(t,{Node:(s,i)=>{(Fs.isAlias(i)||Fs.hasAnchor(i))&&n.push(i)}}),r&&(r.aliasResolveCache=n));let o;for(let s of n){if(s===this)break;s.anchor===this.source&&(o=s)}return o}toJSON(t,r){if(!r)return{source:this.source};let{anchors:n,doc:o,maxAliasCount:s}=r,i=this.resolve(o,r);if(!i){let c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let a=n.get(i);if(a||(H3.toJS(i,null,r),a=n.get(i)),a?.res===void 0){let c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(s>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=_u(o,i,n)),a.count*a.aliasCount>s)){let c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return a.res}toString(t,r,n){let o=`*${this.source}`;if(t){if(U3.anchorIsValid(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){let s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(t.implicitKey)return`${o} `}return o}};function _u(e,t,r){if(Fs.isAlias(t)){let n=t.resolve(e),o=r&&n&&r.get(n);return o?o.count*o.aliasCount:0}else if(Fs.isCollection(t)){let n=0;for(let o of t.items){let s=_u(e,o,r);s>n&&(n=s)}return n}else if(Fs.isPair(t)){let n=_u(e,t.key,r),o=_u(e,t.value,r);return Math.max(n,o)}return 1}LA.Alias=Kg});var yt=v(zg=>{"use strict";var K3=ke(),z3=bu(),W3=Wn(),V3=e=>!e||typeof e!="function"&&typeof e!="object",Vn=class extends z3.NodeBase{constructor(t){super(K3.SCALAR),this.value=t}toJSON(t,r){return r?.keep?this.value:W3.toJS(this.value,t,r)}toString(){return String(this.value)}};Vn.BLOCK_FOLDED="BLOCK_FOLDED";Vn.BLOCK_LITERAL="BLOCK_LITERAL";Vn.PLAIN="PLAIN";Vn.QUOTE_DOUBLE="QUOTE_DOUBLE";Vn.QUOTE_SINGLE="QUOTE_SINGLE";zg.Scalar=Vn;zg.isScalarValue=V3});var Ea=v(qA=>{"use strict";var Y3=ka(),Mo=ke(),FA=yt(),J3="tag:yaml.org,2002:";function X3(e,t,r){if(t){let n=r.filter(s=>s.tag===t),o=n.find(s=>!s.format)??n[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return r.find(n=>n.identify?.(e)&&!n.format)}function Q3(e,t,r){if(Mo.isDocument(e)&&(e=e.contents),Mo.isNode(e))return e;if(Mo.isPair(e)){let u=r.schema[Mo.MAP].createNode?.(r.schema,null,r);return u.items.push(e),u}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:n,onAnchor:o,onTagObj:s,schema:i,sourceObjects:a}=r,c;if(n&&e&&typeof e=="object"){if(c=a.get(e),c)return c.anchor??(c.anchor=o(e)),new Y3.Alias(c.anchor);c={anchor:null,node:null},a.set(e,c)}t?.startsWith("!!")&&(t=J3+t.slice(2));let l=X3(e,t,i.tags);if(!l){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){let u=new FA.Scalar(e);return c&&(c.node=u),u}l=e instanceof Map?i[Mo.MAP]:Symbol.iterator in Object(e)?i[Mo.SEQ]:i[Mo.MAP]}s&&(s(l),delete r.onTagObj);let p=l?.createNode?l.createNode(r.schema,e,r):typeof l?.nodeClass?.from=="function"?l.nodeClass.from(r.schema,e,r):new FA.Scalar(e);return t?p.tag=t:l.default||(p.tag=l.tag),c&&(c.node=p),p}qA.createNode=Q3});var Tu=v(Su=>{"use strict";var Z3=Ea(),cn=ke(),e4=bu();function Wg(e,t,r){let n=r;for(let o=t.length-1;o>=0;--o){let s=t[o];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){let i=[];i[s]=n,n=i}else n=new Map([[s,n]])}return Z3.createNode(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}var jA=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done,Vg=class extends e4.NodeBase{constructor(t,r){super(t),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(t){let r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(r.schema=t),r.items=r.items.map(n=>cn.isNode(n)||cn.isPair(n)?n.clone(t):n),this.range&&(r.range=this.range.slice()),r}addIn(t,r){if(jA(t))this.add(r);else{let[n,...o]=t,s=this.get(n,!0);if(cn.isCollection(s))s.addIn(o,r);else if(s===void 0&&this.schema)this.set(n,Wg(this.schema,o,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}deleteIn(t){let[r,...n]=t;if(n.length===0)return this.delete(r);let o=this.get(r,!0);if(cn.isCollection(o))return o.deleteIn(n);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}getIn(t,r){let[n,...o]=t,s=this.get(n,!0);return o.length===0?!r&&cn.isScalar(s)?s.value:s:cn.isCollection(s)?s.getIn(o,r):void 0}hasAllNullValues(t){return this.items.every(r=>{if(!cn.isPair(r))return!1;let n=r.value;return n==null||t&&cn.isScalar(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(t){let[r,...n]=t;if(n.length===0)return this.has(r);let o=this.get(r,!0);return cn.isCollection(o)?o.hasIn(n):!1}setIn(t,r){let[n,...o]=t;if(o.length===0)this.set(n,r);else{let s=this.get(n,!0);if(cn.isCollection(s))s.setIn(o,r);else if(s===void 0&&this.schema)this.set(n,Wg(this.schema,o,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}};Su.Collection=Vg;Su.collectionFromPath=Wg;Su.isEmptyPath=jA});var Ra=v(ku=>{"use strict";var t4=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Yg(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var r4=(e,t,r)=>e.endsWith(`
31
+ `)?Yg(r,t):r.includes(`
32
+ `)?`
33
+ `+Yg(r,t):(e.endsWith(" ")?"":" ")+r;ku.indentComment=Yg;ku.lineComment=r4;ku.stringifyComment=t4});var BA=v(Ia=>{"use strict";var n4="flow",Jg="block",Eu="quoted";function o4(e,t,r="flow",{indentAtStart:n,lineWidth:o=80,minContentWidth:s=20,onFold:i,onOverflow:a}={}){if(!o||o<0)return e;o<s&&(s=0);let c=Math.max(1+s,1+o-t.length);if(e.length<=c)return e;let l=[],p={},u=o-t.length;typeof n=="number"&&(n>o-Math.max(2,s)?l.push(0):u=o-n);let d,g,m=!1,h=-1,w=-1,x=-1;r===Jg&&(h=UA(e,h,t.length),h!==-1&&(u=h+c));for(let S;S=e[h+=1];){if(r===Eu&&S==="\\"){switch(w=h,e[h+1]){case"x":h+=3;break;case"u":h+=5;break;case"U":h+=9;break;default:h+=1}x=h}if(S===`
34
+ `)r===Jg&&(h=UA(e,h,t.length)),u=h+t.length+c,d=void 0;else{if(S===" "&&g&&g!==" "&&g!==`
35
+ `&&g!==" "){let k=e[h+1];k&&k!==" "&&k!==`
36
+ `&&k!==" "&&(d=h)}if(h>=u)if(d)l.push(d),u=d+c,d=void 0;else if(r===Eu){for(;g===" "||g===" ";)g=S,S=e[h+=1],m=!0;let k=h>x+1?h-2:w-1;if(p[k])return e;l.push(k),p[k]=!0,u=k+c,d=void 0}else m=!0}g=S}if(m&&a&&a(),l.length===0)return e;i&&i();let E=e.slice(0,l[0]);for(let S=0;S<l.length;++S){let k=l[S],I=l[S+1]||e.length;k===0?E=`
37
+ ${t}${e.slice(0,I)}`:(r===Eu&&p[k]&&(E+=`${e[k]}\\`),E+=`
38
+ ${t}${e.slice(k+1,I)}`)}return E}function UA(e,t,r){let n=t,o=t+1,s=e[o];for(;s===" "||s===" ";)if(t<o+r)s=e[++t];else{do s=e[++t];while(s&&s!==`
39
+ `);n=t,o=t+1,s=e[o]}return n}Ia.FOLD_BLOCK=Jg;Ia.FOLD_FLOW=n4;Ia.FOLD_QUOTED=Eu;Ia.foldFlowLines=o4});var Ca=v(GA=>{"use strict";var Br=yt(),Yn=BA(),Iu=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Au=e=>/^(%|---|\.\.\.)/m.test(e);function s4(e,t,r){if(!t||t<0)return!1;let n=t-r,o=e.length;if(o<=n)return!1;for(let s=0,i=0;s<o;++s)if(e[s]===`
40
+ `){if(s-i>n)return!0;if(i=s+1,o-i<=n)return!1}return!0}function Aa(e,t){let r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;let{implicitKey:n}=t,o=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(Au(e)?" ":""),i="",a=0;for(let c=0,l=r[c];l;l=r[++c])if(l===" "&&r[c+1]==="\\"&&r[c+2]==="n"&&(i+=r.slice(a,c)+"\\ ",c+=1,a=c,l="\\"),l==="\\")switch(r[c+1]){case"u":{i+=r.slice(a,c);let p=r.substr(c+2,4);switch(p){case"0000":i+="\\0";break;case"0007":i+="\\a";break;case"000b":i+="\\v";break;case"001b":i+="\\e";break;case"0085":i+="\\N";break;case"00a0":i+="\\_";break;case"2028":i+="\\L";break;case"2029":i+="\\P";break;default:p.substr(0,2)==="00"?i+="\\x"+p.substr(2):i+=r.substr(c,6)}c+=5,a=c+1}break;case"n":if(n||r[c+2]==='"'||r.length<o)c+=1;else{for(i+=r.slice(a,c)+`
41
+
42
+ `;r[c+2]==="\\"&&r[c+3]==="n"&&r[c+4]!=='"';)i+=`
43
+ `,c+=2;i+=s,r[c+2]===" "&&(i+="\\"),c+=1,a=c+1}break;default:c+=1}return i=a?i+r.slice(a):r,n?i:Yn.foldFlowLines(i,s,Yn.FOLD_QUOTED,Iu(t,!1))}function Xg(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
44
+ `)||/[ \t]\n|\n[ \t]/.test(e))return Aa(e,t);let r=t.indent||(Au(e)?" ":""),n="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
45
+ ${r}`)+"'";return t.implicitKey?n:Yn.foldFlowLines(n,r,Yn.FOLD_FLOW,Iu(t,!1))}function qs(e,t){let{singleQuote:r}=t.options,n;if(r===!1)n=Aa;else{let o=e.includes('"'),s=e.includes("'");o&&!s?n=Xg:s&&!o?n=Aa:n=r?Xg:Aa}return n(e,t)}var Qg;try{Qg=new RegExp(`(^|(?<!
46
+ ))
47
+ +(?!
48
+ |$)`,"g")}catch{Qg=/\n+(?!\n|$)/g}function Ru({comment:e,type:t,value:r},n,o,s){let{blockQuote:i,commentString:a,lineWidth:c}=n.options;if(!i||/\n[\t ]+$/.test(r))return qs(r,n);let l=n.indent||(n.forceBlockIndent||Au(r)?" ":""),p=i==="literal"?!0:i==="folded"||t===Br.Scalar.BLOCK_FOLDED?!1:t===Br.Scalar.BLOCK_LITERAL?!0:!s4(r,c,l.length);if(!r)return p?`|
49
+ `:`>
50
+ `;let u,d;for(d=r.length;d>0;--d){let I=r[d-1];if(I!==`
51
+ `&&I!==" "&&I!==" ")break}let g=r.substring(d),m=g.indexOf(`
52
+ `);m===-1?u="-":r===g||m!==g.length-1?(u="+",s&&s()):u="",g&&(r=r.slice(0,-g.length),g[g.length-1]===`
53
+ `&&(g=g.slice(0,-1)),g=g.replace(Qg,`$&${l}`));let h=!1,w,x=-1;for(w=0;w<r.length;++w){let I=r[w];if(I===" ")h=!0;else if(I===`
54
+ `)x=w;else break}let E=r.substring(0,x<w?x+1:w);E&&(r=r.substring(E.length),E=E.replace(/\n+/g,`$&${l}`));let k=(h?l?"2":"1":"")+u;if(e&&(k+=" "+a(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!p){let I=r.replace(/\n+/g,`
55
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`),C=!1,P=Iu(n,!0);i!=="folded"&&t!==Br.Scalar.BLOCK_FOLDED&&(P.onOverflow=()=>{C=!0});let $=Yn.foldFlowLines(`${E}${I}${g}`,l,Yn.FOLD_BLOCK,P);if(!C)return`>${k}
56
+ ${l}${$}`}return r=r.replace(/\n+/g,`$&${l}`),`|${k}
57
+ ${l}${E}${r}${g}`}function i4(e,t,r,n){let{type:o,value:s}=e,{actualString:i,implicitKey:a,indent:c,indentStep:l,inFlow:p}=t;if(a&&s.includes(`
58
+ `)||p&&/[[\]{},]/.test(s))return qs(s,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return a||p||!s.includes(`
59
+ `)?qs(s,t):Ru(e,t,r,n);if(!a&&!p&&o!==Br.Scalar.PLAIN&&s.includes(`
60
+ `))return Ru(e,t,r,n);if(Au(s)){if(c==="")return t.forceBlockIndent=!0,Ru(e,t,r,n);if(a&&c===l)return qs(s,t)}let u=s.replace(/\n+/g,`$&
61
+ ${c}`);if(i){let d=h=>h.default&&h.tag!=="tag:yaml.org,2002:str"&&h.test?.test(u),{compat:g,tags:m}=t.doc.schema;if(m.some(d)||g?.some(d))return qs(s,t)}return a?u:Yn.foldFlowLines(u,c,Yn.FOLD_FLOW,Iu(t,!1))}function a4(e,t,r,n){let{implicitKey:o,inFlow:s}=t,i=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)}),{type:a}=e;a!==Br.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(i.value)&&(a=Br.Scalar.QUOTE_DOUBLE);let c=p=>{switch(p){case Br.Scalar.BLOCK_FOLDED:case Br.Scalar.BLOCK_LITERAL:return o||s?qs(i.value,t):Ru(i,t,r,n);case Br.Scalar.QUOTE_DOUBLE:return Aa(i.value,t);case Br.Scalar.QUOTE_SINGLE:return Xg(i.value,t);case Br.Scalar.PLAIN:return i4(i,t,r,n);default:return null}},l=c(a);if(l===null){let{defaultKeyType:p,defaultStringType:u}=t.options,d=o&&p||u;if(l=c(d),l===null)throw new Error(`Unsupported default string type ${d}`)}return l}GA.stringifyString=a4});var Pa=v(Zg=>{"use strict";var c4=xu(),Jn=ke(),l4=Ra(),u4=Ca();function p4(e,t){let r=Object.assign({blockQuote:!0,commentString:l4.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t),n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function d4(e,t){if(t.tag){let o=e.filter(s=>s.tag===t.tag);if(o.length>0)return o.find(s=>s.format===t.format)??o[0]}let r,n;if(Jn.isScalar(t)){n=t.value;let o=e.filter(s=>s.identify?.(n));if(o.length>1){let s=o.filter(i=>i.test);s.length>0&&(o=s)}r=o.find(s=>s.format===t.format)??o.find(s=>!s.format)}else n=t,r=e.find(o=>o.nodeClass&&n instanceof o.nodeClass);if(!r){let o=n?.constructor?.name??(n===null?"null":typeof n);throw new Error(`Tag not resolved for ${o} value`)}return r}function f4(e,t,{anchors:r,doc:n}){if(!n.directives)return"";let o=[],s=(Jn.isScalar(e)||Jn.isCollection(e))&&e.anchor;s&&c4.anchorIsValid(s)&&(r.add(s),o.push(`&${s}`));let i=e.tag??(t.default?null:t.tag);return i&&o.push(n.directives.tagString(i)),o.join(" ")}function m4(e,t,r,n){if(Jn.isPair(e))return e.toString(t,r,n);if(Jn.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o,s=Jn.isNode(e)?e:t.doc.createNode(e,{onTagObj:c=>o=c});o??(o=d4(t.doc.schema.tags,s));let i=f4(s,o,t);i.length>0&&(t.indentAtStart=(t.indentAtStart??0)+i.length+1);let a=typeof o.stringify=="function"?o.stringify(s,t,r,n):Jn.isScalar(s)?u4.stringifyString(s,t,r,n):s.toString(t,r,n);return i?Jn.isScalar(s)||a[0]==="{"||a[0]==="["?`${i} ${a}`:`${i}
62
+ ${t.indent}${a}`:a}Zg.createStringifyContext=p4;Zg.stringify=m4});var WA=v(zA=>{"use strict";var kn=ke(),HA=yt(),KA=Pa(),$a=Ra();function h4({key:e,value:t},r,n,o){let{allNullValues:s,doc:i,indent:a,indentStep:c,options:{commentString:l,indentSeq:p,simpleKeys:u}}=r,d=kn.isNode(e)&&e.comment||null;if(u){if(d)throw new Error("With simple keys, key nodes cannot have comments");if(kn.isCollection(e)||!kn.isNode(e)&&typeof e=="object"){let P="With simple keys, collection cannot be used as a key value";throw new Error(P)}}let g=!u&&(!e||d&&t==null&&!r.inFlow||kn.isCollection(e)||(kn.isScalar(e)?e.type===HA.Scalar.BLOCK_FOLDED||e.type===HA.Scalar.BLOCK_LITERAL:typeof e=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!g&&(u||!s),indent:a+c});let m=!1,h=!1,w=KA.stringify(e,r,()=>m=!0,()=>h=!0);if(!g&&!r.inFlow&&w.length>1024){if(u)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(r.inFlow){if(s||t==null)return m&&n&&n(),w===""?"?":g?`? ${w}`:w}else if(s&&!u||t==null&&g)return w=`? ${w}`,d&&!m?w+=$a.lineComment(w,r.indent,l(d)):h&&o&&o(),w;m&&(d=null),g?(d&&(w+=$a.lineComment(w,r.indent,l(d))),w=`? ${w}
63
+ ${a}:`):(w=`${w}:`,d&&(w+=$a.lineComment(w,r.indent,l(d))));let x,E,S;kn.isNode(t)?(x=!!t.spaceBefore,E=t.commentBefore,S=t.comment):(x=!1,E=null,S=null,t&&typeof t=="object"&&(t=i.createNode(t))),r.implicitKey=!1,!g&&!d&&kn.isScalar(t)&&(r.indentAtStart=w.length+1),h=!1,!p&&c.length>=2&&!r.inFlow&&!g&&kn.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor&&(r.indent=r.indent.substring(2));let k=!1,I=KA.stringify(t,r,()=>k=!0,()=>h=!0),C=" ";if(d||x||E){if(C=x?`
64
+ `:"",E){let P=l(E);C+=`
65
+ ${$a.indentComment(P,r.indent)}`}I===""&&!r.inFlow?C===`
66
+ `&&S&&(C=`
67
+
68
+ `):C+=`
69
+ ${r.indent}`}else if(!g&&kn.isCollection(t)){let P=I[0],$=I.indexOf(`
70
+ `),H=$!==-1,ge=r.inFlow??t.flow??t.items.length===0;if(H||!ge){let De=!1;if(H&&(P==="&"||P==="!")){let Z=I.indexOf(" ");P==="&"&&Z!==-1&&Z<$&&I[Z+1]==="!"&&(Z=I.indexOf(" ",Z+1)),(Z===-1||$<Z)&&(De=!0)}De||(C=`
71
+ ${r.indent}`)}}else(I===""||I[0]===`
72
+ `)&&(C="");return w+=C+I,r.inFlow?k&&n&&n():S&&!k?w+=$a.lineComment(w,r.indent,l(S)):h&&o&&o(),w}zA.stringifyPair=h4});var ty=v(ey=>{"use strict";var VA=Ue("process");function g4(e,...t){e==="debug"&&console.log(...t)}function y4(e,t){(e==="debug"||e==="warn")&&(typeof VA.emitWarning=="function"?VA.emitWarning(t):console.warn(t))}ey.debug=g4;ey.warn=y4});var Nu=v(Ou=>{"use strict";var $u=ke(),YA=yt(),Cu="<<",Pu={identify:e=>e===Cu||typeof e=="symbol"&&e.description===Cu,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new YA.Scalar(Symbol(Cu)),{addToJSMap:JA}),stringify:()=>Cu},w4=(e,t)=>(Pu.identify(t)||$u.isScalar(t)&&(!t.type||t.type===YA.Scalar.PLAIN)&&Pu.identify(t.value))&&e?.doc.schema.tags.some(r=>r.tag===Pu.tag&&r.default);function JA(e,t,r){let n=XA(e,r);if($u.isSeq(n))for(let o of n.items)ry(e,t,o);else if(Array.isArray(n))for(let o of n)ry(e,t,o);else ry(e,t,n)}function ry(e,t,r){let n=XA(e,r);if(!$u.isMap(n))throw new Error("Merge sources must be maps or map aliases");let o=n.toJSON(null,e,Map);for(let[s,i]of o)t instanceof Map?t.has(s)||t.set(s,i):t instanceof Set?t.add(s):Object.prototype.hasOwnProperty.call(t,s)||Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0});return t}function XA(e,t){return e&&$u.isAlias(t)?t.resolve(e.doc,e):t}Ou.addMergeToJSMap=JA;Ou.isMergeKey=w4;Ou.merge=Pu});var oy=v(eC=>{"use strict";var v4=ty(),QA=Nu(),x4=Pa(),ZA=ke(),ny=Wn();function b4(e,t,{key:r,value:n}){if(ZA.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,n);else if(QA.isMergeKey(e,r))QA.addMergeToJSMap(e,t,n);else{let o=ny.toJS(r,"",e);if(t instanceof Map)t.set(o,ny.toJS(n,o,e));else if(t instanceof Set)t.add(o);else{let s=_4(r,o,e),i=ny.toJS(n,s,e);s in t?Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):t[s]=i}}return t}function _4(e,t,r){if(t===null)return"";if(typeof t!="object")return String(t);if(ZA.isNode(e)&&r?.doc){let n=x4.createStringifyContext(r.doc,{});n.anchors=new Set;for(let s of r.anchors.keys())n.anchors.add(s.anchor);n.inFlow=!0,n.inStringifyKey=!0;let o=e.toString(n);if(!r.mapKeyWarned){let s=JSON.stringify(o);s.length>40&&(s=s.substring(0,36)+'..."'),v4.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return o}return JSON.stringify(t)}eC.addPairToJSMap=b4});var Xn=v(sy=>{"use strict";var tC=Ea(),S4=WA(),T4=oy(),Mu=ke();function k4(e,t,r){let n=tC.createNode(e,void 0,r),o=tC.createNode(t,void 0,r);return new Du(n,o)}var Du=class e{constructor(t,r=null){Object.defineProperty(this,Mu.NODE_TYPE,{value:Mu.PAIR}),this.key=t,this.value=r}clone(t){let{key:r,value:n}=this;return Mu.isNode(r)&&(r=r.clone(t)),Mu.isNode(n)&&(n=n.clone(t)),new e(r,n)}toJSON(t,r){let n=r?.mapAsMap?new Map:{};return T4.addPairToJSMap(r,n,this)}toString(t,r,n){return t?.doc?S4.stringifyPair(this,t,r,n):JSON.stringify(this)}};sy.Pair=Du;sy.createPair=k4});var iy=v(nC=>{"use strict";var Do=ke(),rC=Pa(),Lu=Ra();function E4(e,t,r){return(t.inFlow??e.flow?I4:R4)(e,t,r)}function R4({comment:e,items:t},r,{blockItemPrefix:n,flowChars:o,itemIndent:s,onChompKeep:i,onComment:a}){let{indent:c,options:{commentString:l}}=r,p=Object.assign({},r,{indent:s,type:null}),u=!1,d=[];for(let m=0;m<t.length;++m){let h=t[m],w=null;if(Do.isNode(h))!u&&h.spaceBefore&&d.push(""),Fu(r,d,h.commentBefore,u),h.comment&&(w=h.comment);else if(Do.isPair(h)){let E=Do.isNode(h.key)?h.key:null;E&&(!u&&E.spaceBefore&&d.push(""),Fu(r,d,E.commentBefore,u))}u=!1;let x=rC.stringify(h,p,()=>w=null,()=>u=!0);w&&(x+=Lu.lineComment(x,s,l(w))),u&&w&&(u=!1),d.push(n+x)}let g;if(d.length===0)g=o.start+o.end;else{g=d[0];for(let m=1;m<d.length;++m){let h=d[m];g+=h?`
73
+ ${c}${h}`:`
74
+ `}}return e?(g+=`
75
+ `+Lu.indentComment(l(e),c),a&&a()):u&&i&&i(),g}function I4({items:e},t,{flowChars:r,itemIndent:n}){let{indent:o,indentStep:s,flowCollectionPadding:i,options:{commentString:a}}=t;n+=s;let c=Object.assign({},t,{indent:n,inFlow:!0,type:null}),l=!1,p=0,u=[];for(let m=0;m<e.length;++m){let h=e[m],w=null;if(Do.isNode(h))h.spaceBefore&&u.push(""),Fu(t,u,h.commentBefore,!1),h.comment&&(w=h.comment);else if(Do.isPair(h)){let E=Do.isNode(h.key)?h.key:null;E&&(E.spaceBefore&&u.push(""),Fu(t,u,E.commentBefore,!1),E.comment&&(l=!0));let S=Do.isNode(h.value)?h.value:null;S?(S.comment&&(w=S.comment),S.commentBefore&&(l=!0)):h.value==null&&E?.comment&&(w=E.comment)}w&&(l=!0);let x=rC.stringify(h,c,()=>w=null);l||(l=u.length>p||x.includes(`
76
+ `)),m<e.length-1?x+=",":t.options.trailingComma&&(t.options.lineWidth>0&&(l||(l=u.reduce((E,S)=>E+S.length+2,2)+(x.length+2)>t.options.lineWidth)),l&&(x+=",")),w&&(x+=Lu.lineComment(x,n,a(w))),u.push(x),p=u.length}let{start:d,end:g}=r;if(u.length===0)return d+g;if(!l){let m=u.reduce((h,w)=>h+w.length+2,2);l=t.options.lineWidth>0&&m>t.options.lineWidth}if(l){let m=d;for(let h of u)m+=h?`
77
+ ${s}${o}${h}`:`
78
+ `;return`${m}
79
+ ${o}${g}`}else return`${d}${i}${u.join(" ")}${i}${g}`}function Fu({indent:e,options:{commentString:t}},r,n,o){if(n&&o&&(n=n.replace(/^\n+/,"")),n){let s=Lu.indentComment(t(n),e);r.push(s.trimStart())}}nC.stringifyCollection=E4});var Zn=v(cy=>{"use strict";var A4=iy(),C4=oy(),P4=Tu(),Qn=ke(),qu=Xn(),$4=yt();function Oa(e,t){let r=Qn.isScalar(t)?t.value:t;for(let n of e)if(Qn.isPair(n)&&(n.key===t||n.key===r||Qn.isScalar(n.key)&&n.key.value===r))return n}var ay=class extends P4.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Qn.MAP,t),this.items=[]}static from(t,r,n){let{keepUndefined:o,replacer:s}=n,i=new this(t),a=(c,l)=>{if(typeof s=="function")l=s.call(r,c,l);else if(Array.isArray(s)&&!s.includes(c))return;(l!==void 0||o)&&i.items.push(qu.createPair(c,l,n))};if(r instanceof Map)for(let[c,l]of r)a(c,l);else if(r&&typeof r=="object")for(let c of Object.keys(r))a(c,r[c]);return typeof t.sortMapEntries=="function"&&i.items.sort(t.sortMapEntries),i}add(t,r){let n;Qn.isPair(t)?n=t:!t||typeof t!="object"||!("key"in t)?n=new qu.Pair(t,t?.value):n=new qu.Pair(t.key,t.value);let o=Oa(this.items,n.key),s=this.schema?.sortMapEntries;if(o){if(!r)throw new Error(`Key ${n.key} already set`);Qn.isScalar(o.value)&&$4.isScalarValue(n.value)?o.value.value=n.value:o.value=n.value}else if(s){let i=this.items.findIndex(a=>s(n,a)<0);i===-1?this.items.push(n):this.items.splice(i,0,n)}else this.items.push(n)}delete(t){let r=Oa(this.items,t);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(t,r){let o=Oa(this.items,t)?.value;return(!r&&Qn.isScalar(o)?o.value:o)??void 0}has(t){return!!Oa(this.items,t)}set(t,r){this.add(new qu.Pair(t,r),!0)}toJSON(t,r,n){let o=n?new n:r?.mapAsMap?new Map:{};r?.onCreate&&r.onCreate(o);for(let s of this.items)C4.addPairToJSMap(r,o,s);return o}toString(t,r,n){if(!t)return JSON.stringify(this);for(let o of this.items)if(!Qn.isPair(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),A4.stringifyCollection(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:n,onComment:r})}};cy.YAMLMap=ay;cy.findPair=Oa});var js=v(sC=>{"use strict";var O4=ke(),oC=Zn(),N4={collection:"map",default:!0,nodeClass:oC.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){return O4.isMap(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,r)=>oC.YAMLMap.from(e,t,r)};sC.map=N4});var eo=v(iC=>{"use strict";var M4=Ea(),D4=iy(),L4=Tu(),Uu=ke(),F4=yt(),q4=Wn(),ly=class extends L4.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Uu.SEQ,t),this.items=[]}add(t){this.items.push(t)}delete(t){let r=ju(t);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(t,r){let n=ju(t);if(typeof n!="number")return;let o=this.items[n];return!r&&Uu.isScalar(o)?o.value:o}has(t){let r=ju(t);return typeof r=="number"&&r<this.items.length}set(t,r){let n=ju(t);if(typeof n!="number")throw new Error(`Expected a valid index, not ${t}.`);let o=this.items[n];Uu.isScalar(o)&&F4.isScalarValue(r)?o.value=r:this.items[n]=r}toJSON(t,r){let n=[];r?.onCreate&&r.onCreate(n);let o=0;for(let s of this.items)n.push(q4.toJS(s,String(o++),r));return n}toString(t,r,n){return t?D4.stringifyCollection(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:n,onComment:r}):JSON.stringify(this)}static from(t,r,n){let{replacer:o}=n,s=new this(t);if(r&&Symbol.iterator in Object(r)){let i=0;for(let a of r){if(typeof o=="function"){let c=r instanceof Set?a:String(i++);a=o.call(r,c,a)}s.items.push(M4.createNode(a,void 0,n))}}return s}};function ju(e){let t=Uu.isScalar(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}iC.YAMLSeq=ly});var Us=v(cC=>{"use strict";var j4=ke(),aC=eo(),U4={collection:"seq",default:!0,nodeClass:aC.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){return j4.isSeq(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,r)=>aC.YAMLSeq.from(e,t,r)};cC.seq=U4});var Na=v(lC=>{"use strict";var B4=Ca(),G4={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,n){return t=Object.assign({actualString:!0},t),B4.stringifyString(e,t,r,n)}};lC.string=G4});var Bu=v(dC=>{"use strict";var uC=yt(),pC={identify:e=>e==null,createNode:()=>new uC.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new uC.Scalar(null),stringify:({source:e},t)=>typeof e=="string"&&pC.test.test(e)?e:t.options.nullStr};dC.nullTag=pC});var uy=v(mC=>{"use strict";var H4=yt(),fC={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new H4.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&fC.test.test(e)){let n=e[0]==="t"||e[0]==="T";if(t===n)return e}return t?r.options.trueStr:r.options.falseStr}};mC.boolTag=fC});var Bs=v(hC=>{"use strict";function K4({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n=="bigint")return String(n);let o=typeof n=="number"?n:Number(n);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let s=Object.is(n,-0)?"-0":JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^-?\d/.test(s)&&!s.includes("e")){let i=s.indexOf(".");i<0&&(i=s.length,s+=".");let a=t-(s.length-i-1);for(;a-- >0;)s+="0"}return s}hC.stringifyNumber=K4});var dy=v(Gu=>{"use strict";var z4=yt(),py=Bs(),W4={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:py.stringifyNumber},V4={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():py.stringifyNumber(e)}},Y4={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new z4.Scalar(parseFloat(e)),r=e.indexOf(".");return r!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-r-1),t},stringify:py.stringifyNumber};Gu.float=Y4;Gu.floatExp=V4;Gu.floatNaN=W4});var my=v(Ku=>{"use strict";var gC=Bs(),Hu=e=>typeof e=="bigint"||Number.isInteger(e),fy=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function yC(e,t,r){let{value:n}=e;return Hu(n)&&n>=0?r+n.toString(t):gC.stringifyNumber(e)}var J4={identify:e=>Hu(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>fy(e,2,8,r),stringify:e=>yC(e,8,"0o")},X4={identify:Hu,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>fy(e,0,10,r),stringify:gC.stringifyNumber},Q4={identify:e=>Hu(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>fy(e,2,16,r),stringify:e=>yC(e,16,"0x")};Ku.int=X4;Ku.intHex=Q4;Ku.intOct=J4});var vC=v(wC=>{"use strict";var Z4=js(),e6=Bu(),t6=Us(),r6=Na(),n6=uy(),hy=dy(),gy=my(),o6=[Z4.map,t6.seq,r6.string,e6.nullTag,n6.boolTag,gy.intOct,gy.int,gy.intHex,hy.floatNaN,hy.floatExp,hy.float];wC.schema=o6});var _C=v(bC=>{"use strict";var s6=yt(),i6=js(),a6=Us();function xC(e){return typeof e=="bigint"||Number.isInteger(e)}var zu=({value:e})=>JSON.stringify(e),c6=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:zu},{identify:e=>e==null,createNode:()=>new s6.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:zu},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:zu},{identify:xC,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>xC(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:zu}],l6={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},u6=[i6.map,a6.seq].concat(c6,l6);bC.schema=u6});var wy=v(SC=>{"use strict";var Ma=Ue("buffer"),yy=yt(),p6=Ca(),d6={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Ma.Buffer=="function")return Ma.Buffer.from(e,"base64");if(typeof atob=="function"){let r=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(r.length);for(let o=0;o<r.length;++o)n[o]=r.charCodeAt(o);return n}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:r},n,o,s){if(!r)return"";let i=r,a;if(typeof Ma.Buffer=="function")a=i instanceof Ma.Buffer?i.toString("base64"):Ma.Buffer.from(i.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let l=0;l<i.length;++l)c+=String.fromCharCode(i[l]);a=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=yy.Scalar.BLOCK_LITERAL),t!==yy.Scalar.QUOTE_DOUBLE){let c=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),l=Math.ceil(a.length/c),p=new Array(l);for(let u=0,d=0;u<l;++u,d+=c)p[u]=a.substr(d,c);a=p.join(t===yy.Scalar.BLOCK_LITERAL?`
80
+ `:" ")}return p6.stringifyString({comment:e,type:t,value:a},n,o,s)}};SC.binary=d6});var Yu=v(Vu=>{"use strict";var Wu=ke(),vy=Xn(),f6=yt(),m6=eo();function TC(e,t){if(Wu.isSeq(e))for(let r=0;r<e.items.length;++r){let n=e.items[r];if(!Wu.isPair(n)){if(Wu.isMap(n)){n.items.length>1&&t("Each pair must have its own sequence indicator");let o=n.items[0]||new vy.Pair(new f6.Scalar(null));if(n.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${n.commentBefore}
81
+ ${o.key.commentBefore}`:n.commentBefore),n.comment){let s=o.value??o.key;s.comment=s.comment?`${n.comment}
82
+ ${s.comment}`:n.comment}n=o}e.items[r]=Wu.isPair(n)?n:new vy.Pair(n)}}else t("Expected a sequence for this tag");return e}function kC(e,t,r){let{replacer:n}=r,o=new m6.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let i of t){typeof n=="function"&&(i=n.call(t,String(s++),i));let a,c;if(Array.isArray(i))if(i.length===2)a=i[0],c=i[1];else throw new TypeError(`Expected [key, value] tuple: ${i}`);else if(i&&i instanceof Object){let l=Object.keys(i);if(l.length===1)a=l[0],c=i[a];else throw new TypeError(`Expected tuple with one key, not ${l.length} keys`)}else a=i;o.items.push(vy.createPair(a,c,r))}return o}var h6={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:TC,createNode:kC};Vu.createPairs=kC;Vu.pairs=h6;Vu.resolvePairs=TC});var _y=v(by=>{"use strict";var EC=ke(),xy=Wn(),Da=Zn(),g6=eo(),RC=Yu(),Lo=class e extends g6.YAMLSeq{constructor(){super(),this.add=Da.YAMLMap.prototype.add.bind(this),this.delete=Da.YAMLMap.prototype.delete.bind(this),this.get=Da.YAMLMap.prototype.get.bind(this),this.has=Da.YAMLMap.prototype.has.bind(this),this.set=Da.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(t,r){if(!r)return super.toJSON(t);let n=new Map;r?.onCreate&&r.onCreate(n);for(let o of this.items){let s,i;if(EC.isPair(o)?(s=xy.toJS(o.key,"",r),i=xy.toJS(o.value,s,r)):s=xy.toJS(o,"",r),n.has(s))throw new Error("Ordered maps must not include duplicate keys");n.set(s,i)}return n}static from(t,r,n){let o=RC.createPairs(t,r,n),s=new this;return s.items=o.items,s}};Lo.tag="tag:yaml.org,2002:omap";var y6={collection:"seq",identify:e=>e instanceof Map,nodeClass:Lo,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let r=RC.resolvePairs(e,t),n=[];for(let{key:o}of r.items)EC.isScalar(o)&&(n.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):n.push(o.value));return Object.assign(new Lo,r)},createNode:(e,t,r)=>Lo.from(e,t,r)};by.YAMLOMap=Lo;by.omap=y6});var $C=v(Sy=>{"use strict";var IC=yt();function AC({value:e,source:t},r){return t&&(e?CC:PC).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}var CC={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new IC.Scalar(!0),stringify:AC},PC={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new IC.Scalar(!1),stringify:AC};Sy.falseTag=PC;Sy.trueTag=CC});var OC=v(Ju=>{"use strict";var w6=yt(),Ty=Bs(),v6={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Ty.stringifyNumber},x6={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Ty.stringifyNumber(e)}},b6={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new w6.Scalar(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(r!==-1){let n=e.substring(r+1).replace(/_/g,"");n[n.length-1]==="0"&&(t.minFractionDigits=n.length)}return t},stringify:Ty.stringifyNumber};Ju.float=b6;Ju.floatExp=x6;Ju.floatNaN=v6});var MC=v(Fa=>{"use strict";var NC=Bs(),La=e=>typeof e=="bigint"||Number.isInteger(e);function Xu(e,t,r,{intAsBigInt:n}){let o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let i=BigInt(e);return o==="-"?BigInt(-1)*i:i}let s=parseInt(e,r);return o==="-"?-1*s:s}function ky(e,t,r){let{value:n}=e;if(La(n)){let o=n.toString(t);return n<0?"-"+r+o.substr(1):r+o}return NC.stringifyNumber(e)}var _6={identify:La,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>Xu(e,2,2,r),stringify:e=>ky(e,2,"0b")},S6={identify:La,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>Xu(e,1,8,r),stringify:e=>ky(e,8,"0")},T6={identify:La,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>Xu(e,0,10,r),stringify:NC.stringifyNumber},k6={identify:La,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>Xu(e,2,16,r),stringify:e=>ky(e,16,"0x")};Fa.int=T6;Fa.intBin=_6;Fa.intHex=k6;Fa.intOct=S6});var Ry=v(Ey=>{"use strict";var ep=ke(),Qu=Xn(),Zu=Zn(),Fo=class e extends Zu.YAMLMap{constructor(t){super(t),this.tag=e.tag}add(t){let r;ep.isPair(t)?r=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?r=new Qu.Pair(t.key,null):r=new Qu.Pair(t,null),Zu.findPair(this.items,r.key)||this.items.push(r)}get(t,r){let n=Zu.findPair(this.items,t);return!r&&ep.isPair(n)?ep.isScalar(n.key)?n.key.value:n.key:n}set(t,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);let n=Zu.findPair(this.items,t);n&&!r?this.items.splice(this.items.indexOf(n),1):!n&&r&&this.items.push(new Qu.Pair(t))}toJSON(t,r){return super.toJSON(t,r,Set)}toString(t,r,n){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),r,n);throw new Error("Set items must all have null values")}static from(t,r,n){let{replacer:o}=n,s=new this(t);if(r&&Symbol.iterator in Object(r))for(let i of r)typeof o=="function"&&(i=o.call(r,i,i)),s.items.push(Qu.createPair(i,null,n));return s}};Fo.tag="tag:yaml.org,2002:set";var E6={collection:"map",identify:e=>e instanceof Set,nodeClass:Fo,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>Fo.from(e,t,r),resolve(e,t){if(ep.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new Fo,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};Ey.YAMLSet=Fo;Ey.set=E6});var Ay=v(tp=>{"use strict";var R6=Bs();function Iy(e,t){let r=e[0],n=r==="-"||r==="+"?e.substring(1):e,o=i=>t?BigInt(i):Number(i),s=n.replace(/_/g,"").split(":").reduce((i,a)=>i*o(60)+o(a),o(0));return r==="-"?o(-1)*s:s}function DC(e){let{value:t}=e,r=i=>i;if(typeof t=="bigint")r=i=>BigInt(i);else if(isNaN(t)||!isFinite(t))return R6.stringifyNumber(e);let n="";t<0&&(n="-",t*=r(-1));let o=r(60),s=[t%o];return t<60?s.unshift(0):(t=(t-s[0])/o,s.unshift(t%o),t>=60&&(t=(t-s[0])/o,s.unshift(t))),n+s.map(i=>String(i).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var I6={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>Iy(e,r),stringify:DC},A6={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Iy(e,!1),stringify:DC},LC={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(LC.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,r,n,o,s,i,a]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0,l=Date.UTC(r,n-1,o,s||0,i||0,a||0,c),p=t[8];if(p&&p!=="Z"){let u=Iy(p,!1);Math.abs(u)<30&&(u*=60),l-=6e4*u}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};tp.floatTime=A6;tp.intTime=I6;tp.timestamp=LC});var jC=v(qC=>{"use strict";var C6=js(),P6=Bu(),$6=Us(),O6=Na(),N6=wy(),FC=$C(),Cy=OC(),rp=MC(),M6=Nu(),D6=_y(),L6=Yu(),F6=Ry(),Py=Ay(),q6=[C6.map,$6.seq,O6.string,P6.nullTag,FC.trueTag,FC.falseTag,rp.intBin,rp.intOct,rp.int,rp.intHex,Cy.floatNaN,Cy.floatExp,Cy.float,N6.binary,M6.merge,D6.omap,L6.pairs,F6.set,Py.intTime,Py.floatTime,Py.timestamp];qC.schema=q6});var JC=v(Ny=>{"use strict";var HC=js(),j6=Bu(),KC=Us(),U6=Na(),B6=uy(),$y=dy(),Oy=my(),G6=vC(),H6=_C(),zC=wy(),qa=Nu(),WC=_y(),VC=Yu(),UC=jC(),YC=Ry(),np=Ay(),BC=new Map([["core",G6.schema],["failsafe",[HC.map,KC.seq,U6.string]],["json",H6.schema],["yaml11",UC.schema],["yaml-1.1",UC.schema]]),GC={binary:zC.binary,bool:B6.boolTag,float:$y.float,floatExp:$y.floatExp,floatNaN:$y.floatNaN,floatTime:np.floatTime,int:Oy.int,intHex:Oy.intHex,intOct:Oy.intOct,intTime:np.intTime,map:HC.map,merge:qa.merge,null:j6.nullTag,omap:WC.omap,pairs:VC.pairs,seq:KC.seq,set:YC.set,timestamp:np.timestamp},K6={"tag:yaml.org,2002:binary":zC.binary,"tag:yaml.org,2002:merge":qa.merge,"tag:yaml.org,2002:omap":WC.omap,"tag:yaml.org,2002:pairs":VC.pairs,"tag:yaml.org,2002:set":YC.set,"tag:yaml.org,2002:timestamp":np.timestamp};function z6(e,t,r){let n=BC.get(t);if(n&&!e)return r&&!n.includes(qa.merge)?n.concat(qa.merge):n.slice();let o=n;if(!o)if(Array.isArray(e))o=[];else{let s=Array.from(BC.keys()).filter(i=>i!=="yaml11").map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${s} or define customTags array`)}if(Array.isArray(e))for(let s of e)o=o.concat(s);else typeof e=="function"&&(o=e(o.slice()));return r&&(o=o.concat(qa.merge)),o.reduce((s,i)=>{let a=typeof i=="string"?GC[i]:i;if(!a){let c=JSON.stringify(i),l=Object.keys(GC).map(p=>JSON.stringify(p)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${l}`)}return s.includes(a)||s.push(a),s},[])}Ny.coreKnownTags=K6;Ny.getTags=z6});var Ly=v(XC=>{"use strict";var My=ke(),W6=js(),V6=Us(),Y6=Na(),op=JC(),J6=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0,Dy=class e{constructor({compat:t,customTags:r,merge:n,resolveKnownTags:o,schema:s,sortMapEntries:i,toStringDefaults:a}){this.compat=Array.isArray(t)?op.getTags(t,"compat"):t?op.getTags(null,t):null,this.name=typeof s=="string"&&s||"core",this.knownTags=o?op.coreKnownTags:{},this.tags=op.getTags(r,this.name,n),this.toStringOptions=a??null,Object.defineProperty(this,My.MAP,{value:W6.map}),Object.defineProperty(this,My.SCALAR,{value:Y6.string}),Object.defineProperty(this,My.SEQ,{value:V6.seq}),this.sortMapEntries=typeof i=="function"?i:i===!0?J6:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};XC.Schema=Dy});var ZC=v(QC=>{"use strict";var X6=ke(),Fy=Pa(),ja=Ra();function Q6(e,t){let r=[],n=t.directives===!0;if(t.directives!==!1&&e.directives){let c=e.directives.toString(e);c?(r.push(c),n=!0):e.directives.docStart&&(n=!0)}n&&r.push("---");let o=Fy.createStringifyContext(e,t),{commentString:s}=o.options;if(e.commentBefore){r.length!==1&&r.unshift("");let c=s(e.commentBefore);r.unshift(ja.indentComment(c,""))}let i=!1,a=null;if(e.contents){if(X6.isNode(e.contents)){if(e.contents.spaceBefore&&n&&r.push(""),e.contents.commentBefore){let p=s(e.contents.commentBefore);r.push(ja.indentComment(p,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}let c=a?void 0:()=>i=!0,l=Fy.stringify(e.contents,o,()=>a=null,c);a&&(l+=ja.lineComment(l,"",s(a))),(l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${l}`:r.push(l)}else r.push(Fy.stringify(e.contents,o));if(e.directives?.docEnd)if(e.comment){let c=s(e.comment);c.includes(`
83
+ `)?(r.push("..."),r.push(ja.indentComment(c,""))):r.push(`... ${c}`)}else r.push("...");else{let c=e.comment;c&&i&&(c=c.replace(/^\n+/,"")),c&&((!i||a)&&r[r.length-1]!==""&&r.push(""),r.push(ja.indentComment(s(c),"")))}return r.join(`
84
+ `)+`
85
+ `}QC.stringifyDocument=Q6});var Ua=v(eP=>{"use strict";var Z6=ka(),Gs=Tu(),Ir=ke(),e9=Xn(),t9=Wn(),r9=Ly(),n9=ZC(),qy=xu(),o9=Gg(),s9=Ea(),jy=Bg(),Uy=class e{constructor(t,r,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Ir.NODE_TYPE,{value:Ir.DOC});let o=null;typeof r=="function"||Array.isArray(r)?o=r:n===void 0&&r&&(n=r,r=void 0);let s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=s;let{version:i}=s;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new jy.Directives({version:i}),this.setSchema(i,n),this.contents=t===void 0?null:this.createNode(t,o,n)}clone(){let t=Object.create(e.prototype,{[Ir.NODE_TYPE]:{value:Ir.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Ir.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Hs(this.contents)&&this.contents.add(t)}addIn(t,r){Hs(this.contents)&&this.contents.addIn(t,r)}createAlias(t,r){if(!t.anchor){let n=qy.anchorNames(this);t.anchor=!r||n.has(r)?qy.findNewAnchor(r||"a",n):r}return new Z6.Alias(t.anchor)}createNode(t,r,n){let o;if(typeof r=="function")t=r.call({"":t},"",t),o=r;else if(Array.isArray(r)){let w=E=>typeof E=="number"||E instanceof String||E instanceof Number,x=r.filter(w).map(String);x.length>0&&(r=r.concat(x)),o=r}else n===void 0&&r&&(n=r,r=void 0);let{aliasDuplicateObjects:s,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:l,tag:p}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:g}=qy.createNodeAnchors(this,i||"a"),m={aliasDuplicateObjects:s??!0,keepUndefined:c??!1,onAnchor:u,onTagObj:l,replacer:o,schema:this.schema,sourceObjects:g},h=s9.createNode(t,p,m);return a&&Ir.isCollection(h)&&(h.flow=!0),d(),h}createPair(t,r,n={}){let o=this.createNode(t,null,n),s=this.createNode(r,null,n);return new e9.Pair(o,s)}delete(t){return Hs(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Gs.isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):Hs(this.contents)?this.contents.deleteIn(t):!1}get(t,r){return Ir.isCollection(this.contents)?this.contents.get(t,r):void 0}getIn(t,r){return Gs.isEmptyPath(t)?!r&&Ir.isScalar(this.contents)?this.contents.value:this.contents:Ir.isCollection(this.contents)?this.contents.getIn(t,r):void 0}has(t){return Ir.isCollection(this.contents)?this.contents.has(t):!1}hasIn(t){return Gs.isEmptyPath(t)?this.contents!==void 0:Ir.isCollection(this.contents)?this.contents.hasIn(t):!1}set(t,r){this.contents==null?this.contents=Gs.collectionFromPath(this.schema,[t],r):Hs(this.contents)&&this.contents.set(t,r)}setIn(t,r){Gs.isEmptyPath(t)?this.contents=r:this.contents==null?this.contents=Gs.collectionFromPath(this.schema,Array.from(t),r):Hs(this.contents)&&this.contents.setIn(t,r)}setSchema(t,r={}){typeof t=="number"&&(t=String(t));let n;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new jy.Directives({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new jy.Directives({version:t}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(n)this.schema=new r9.Schema(Object.assign(n,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:r,mapAsMap:n,maxAliasCount:o,onAnchor:s,reviver:i}={}){let a={anchors:new Map,doc:this,keep:!t,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},c=t9.toJS(this.contents,r??"",a);if(typeof s=="function")for(let{count:l,res:p}of a.anchors.values())s(p,l);return typeof i=="function"?o9.applyReviver(i,{"":c},"",c):c}toJSON(t,r){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:r})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){let r=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return n9.stringifyDocument(this,t)}};function Hs(e){if(Ir.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}eP.Document=Uy});var Ha=v(Ga=>{"use strict";var Ba=class extends Error{constructor(t,r,n,o){super(),this.name=t,this.code=n,this.message=o,this.pos=r}},By=class extends Ba{constructor(t,r,n){super("YAMLParseError",t,r,n)}},Gy=class extends Ba{constructor(t,r,n){super("YAMLWarning",t,r,n)}},i9=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(a=>t.linePos(a));let{line:n,col:o}=r.linePos[0];r.message+=` at line ${n}, column ${o}`;let s=o-1,i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(s>=60&&i.length>80){let a=Math.min(s-39,i.length-79);i="\u2026"+i.substring(a),s-=a-1}if(i.length>80&&(i=i.substring(0,79)+"\u2026"),n>1&&/^ *$/.test(i.substring(0,s))){let a=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);a.length>80&&(a=a.substring(0,79)+`\u2026
86
+ `),i=a+i}if(/[^ ]/.test(i)){let a=1,c=r.linePos[1];c?.line===n&&c.col>o&&(a=Math.max(1,Math.min(c.col-o,80-s)));let l=" ".repeat(s)+"^".repeat(a);r.message+=`:
87
+
88
+ ${i}
89
+ ${l}
90
+ `}};Ga.YAMLError=Ba;Ga.YAMLParseError=By;Ga.YAMLWarning=Gy;Ga.prettifyError=i9});var Ka=v(tP=>{"use strict";function a9(e,{flow:t,indicator:r,next:n,offset:o,onError:s,parentIndent:i,startOnNewline:a}){let c=!1,l=a,p=a,u="",d="",g=!1,m=!1,h=null,w=null,x=null,E=null,S=null,k=null,I=null;for(let $ of e)switch(m&&($.type!=="space"&&$.type!=="newline"&&$.type!=="comma"&&s($.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m=!1),h&&(l&&$.type!=="comment"&&$.type!=="newline"&&s(h,"TAB_AS_INDENT","Tabs are not allowed as indentation"),h=null),$.type){case"space":!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&$.source.includes(" ")&&(h=$),p=!0;break;case"comment":{p||s($,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let H=$.source.substring(1)||" ";u?u+=d+H:u=H,d="",l=!1;break}case"newline":l?u?u+=$.source:(!k||r!=="seq-item-ind")&&(c=!0):d+=$.source,l=!0,g=!0,(w||x)&&(E=$),p=!0;break;case"anchor":w&&s($,"MULTIPLE_ANCHORS","A node can have at most one anchor"),$.source.endsWith(":")&&s($.offset+$.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),w=$,I??(I=$.offset),l=!1,p=!1,m=!0;break;case"tag":{x&&s($,"MULTIPLE_TAGS","A node can have at most one tag"),x=$,I??(I=$.offset),l=!1,p=!1,m=!0;break}case r:(w||x)&&s($,"BAD_PROP_ORDER",`Anchors and tags must be after the ${$.source} indicator`),k&&s($,"UNEXPECTED_TOKEN",`Unexpected ${$.source} in ${t??"collection"}`),k=$,l=r==="seq-item-ind"||r==="explicit-key-ind",p=!1;break;case"comma":if(t){S&&s($,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),S=$,l=!1,p=!1;break}default:s($,"UNEXPECTED_TOKEN",`Unexpected ${$.type} token`),l=!1,p=!1}let C=e[e.length-1],P=C?C.offset+C.source.length:o;return m&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&s(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),h&&(l&&h.indent<=i||n?.type==="block-map"||n?.type==="block-seq")&&s(h,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:S,found:k,spaceBefore:c,comment:u,hasNewline:g,anchor:w,tag:x,newlineAfterProp:E,end:P,start:I??P}}tP.resolveProps=a9});var sp=v(rP=>{"use strict";function Hy(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
91
+ `))return!0;if(e.end){for(let t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(let t of e.items){for(let r of t.start)if(r.type==="newline")return!0;if(t.sep){for(let r of t.sep)if(r.type==="newline")return!0}if(Hy(t.key)||Hy(t.value))return!0}return!1;default:return!0}}rP.containsNewline=Hy});var Ky=v(nP=>{"use strict";var c9=sp();function l9(e,t,r){if(t?.type==="flow-collection"){let n=t.end[0];n.indent===e&&(n.source==="]"||n.source==="}")&&c9.containsNewline(t)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}nP.flowIndentCheck=l9});var zy=v(sP=>{"use strict";var oP=ke();function u9(e,t,r){let{uniqueKeys:n}=e.options;if(n===!1)return!1;let o=typeof n=="function"?n:(s,i)=>s===i||oP.isScalar(s)&&oP.isScalar(i)&&s.value===i.value;return t.some(s=>o(s.key,r))}sP.mapIncludes=u9});var pP=v(uP=>{"use strict";var iP=Xn(),p9=Zn(),aP=Ka(),d9=sp(),cP=Ky(),f9=zy(),lP="All mapping items must start at the same column";function m9({composeNode:e,composeEmptyNode:t},r,n,o,s){let i=s?.nodeClass??p9.YAMLMap,a=new i(r.schema);r.atRoot&&(r.atRoot=!1);let c=n.offset,l=null;for(let p of n.items){let{start:u,key:d,sep:g,value:m}=p,h=aP.resolveProps(u,{indicator:"explicit-key-ind",next:d??g?.[0],offset:c,onError:o,parentIndent:n.indent,startOnNewline:!0}),w=!h.found;if(w){if(d&&(d.type==="block-seq"?o(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in d&&d.indent!==n.indent&&o(c,"BAD_INDENT",lP)),!h.anchor&&!h.tag&&!g){l=h.end,h.comment&&(a.comment?a.comment+=`
92
+ `+h.comment:a.comment=h.comment);continue}(h.newlineAfterProp||d9.containsNewline(d))&&o(d??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else h.found?.indent!==n.indent&&o(c,"BAD_INDENT",lP);r.atKey=!0;let x=h.end,E=d?e(r,d,h,o):t(r,x,u,null,h,o);r.schema.compat&&cP.flowIndentCheck(n.indent,d,o),r.atKey=!1,f9.mapIncludes(r,a.items,E)&&o(x,"DUPLICATE_KEY","Map keys must be unique");let S=aP.resolveProps(g??[],{indicator:"map-value-ind",next:m,offset:E.range[2],onError:o,parentIndent:n.indent,startOnNewline:!d||d.type==="block-scalar"});if(c=S.end,S.found){w&&(m?.type==="block-map"&&!S.hasNewline&&o(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&h.start<S.found.offset-1024&&o(E.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let k=m?e(r,m,S,o):t(r,c,g,null,S,o);r.schema.compat&&cP.flowIndentCheck(n.indent,m,o),c=k.range[2];let I=new iP.Pair(E,k);r.options.keepSourceTokens&&(I.srcToken=p),a.items.push(I)}else{w&&o(E.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),S.comment&&(E.comment?E.comment+=`
93
+ `+S.comment:E.comment=S.comment);let k=new iP.Pair(E);r.options.keepSourceTokens&&(k.srcToken=p),a.items.push(k)}}return l&&l<c&&o(l,"IMPOSSIBLE","Map comment with trailing content"),a.range=[n.offset,c,l??c],a}uP.resolveBlockMap=m9});var fP=v(dP=>{"use strict";var h9=eo(),g9=Ka(),y9=Ky();function w9({composeNode:e,composeEmptyNode:t},r,n,o,s){let i=s?.nodeClass??h9.YAMLSeq,a=new i(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let c=n.offset,l=null;for(let{start:p,value:u}of n.items){let d=g9.resolveProps(p,{indicator:"seq-item-ind",next:u,offset:c,onError:o,parentIndent:n.indent,startOnNewline:!0});if(!d.found)if(d.anchor||d.tag||u)u?.type==="block-seq"?o(d.end,"BAD_INDENT","All sequence items must start at the same column"):o(c,"MISSING_CHAR","Sequence item without - indicator");else{l=d.end,d.comment&&(a.comment=d.comment);continue}let g=u?e(r,u,d,o):t(r,d.end,p,null,d,o);r.schema.compat&&y9.flowIndentCheck(n.indent,u,o),c=g.range[2],a.items.push(g)}return a.range=[n.offset,c,l??c],a}dP.resolveBlockSeq=w9});var Ks=v(mP=>{"use strict";function v9(e,t,r,n){let o="";if(e){let s=!1,i="";for(let a of e){let{source:c,type:l}=a;switch(l){case"space":s=!0;break;case"comment":{r&&!s&&n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let p=c.substring(1)||" ";o?o+=i+p:o=p,i="";break}case"newline":o&&(i+=c),s=!0;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=c.length}}return{comment:o,offset:t}}mP.resolveEnd=v9});var wP=v(yP=>{"use strict";var x9=ke(),b9=Xn(),hP=Zn(),_9=eo(),S9=Ks(),gP=Ka(),T9=sp(),k9=zy(),Wy="Block collections are not allowed within flow collections",Vy=e=>e&&(e.type==="block-map"||e.type==="block-seq");function E9({composeNode:e,composeEmptyNode:t},r,n,o,s){let i=n.start.source==="{",a=i?"flow map":"flow sequence",c=s?.nodeClass??(i?hP.YAMLMap:_9.YAMLSeq),l=new c(r.schema);l.flow=!0;let p=r.atRoot;p&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let u=n.offset+n.start.source.length;for(let w=0;w<n.items.length;++w){let x=n.items[w],{start:E,key:S,sep:k,value:I}=x,C=gP.resolveProps(E,{flow:a,indicator:"explicit-key-ind",next:S??k?.[0],offset:u,onError:o,parentIndent:n.indent,startOnNewline:!1});if(!C.found){if(!C.anchor&&!C.tag&&!k&&!I){w===0&&C.comma?o(C.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):w<n.items.length-1&&o(C.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),C.comment&&(l.comment?l.comment+=`
94
+ `+C.comment:l.comment=C.comment),u=C.end;continue}!i&&r.options.strict&&T9.containsNewline(S)&&o(S,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(w===0)C.comma&&o(C.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(C.comma||o(C.start,"MISSING_CHAR",`Missing , between ${a} items`),C.comment){let P="";e:for(let $ of E)switch($.type){case"comma":case"space":break;case"comment":P=$.source.substring(1);break e;default:break e}if(P){let $=l.items[l.items.length-1];x9.isPair($)&&($=$.value??$.key),$.comment?$.comment+=`
95
+ `+P:$.comment=P,C.comment=C.comment.substring(P.length+1)}}if(!i&&!k&&!C.found){let P=I?e(r,I,C,o):t(r,C.end,k,null,C,o);l.items.push(P),u=P.range[2],Vy(I)&&o(P.range,"BLOCK_IN_FLOW",Wy)}else{r.atKey=!0;let P=C.end,$=S?e(r,S,C,o):t(r,P,E,null,C,o);Vy(S)&&o($.range,"BLOCK_IN_FLOW",Wy),r.atKey=!1;let H=gP.resolveProps(k??[],{flow:a,indicator:"map-value-ind",next:I,offset:$.range[2],onError:o,parentIndent:n.indent,startOnNewline:!1});if(H.found){if(!i&&!C.found&&r.options.strict){if(k)for(let Z of k){if(Z===H.found)break;if(Z.type==="newline"){o(Z,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}C.start<H.found.offset-1024&&o(H.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else I&&("source"in I&&I.source?.[0]===":"?o(I,"MISSING_CHAR",`Missing space after : in ${a}`):o(H.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let ge=I?e(r,I,H,o):H.found?t(r,H.end,k,null,H,o):null;ge?Vy(I)&&o(ge.range,"BLOCK_IN_FLOW",Wy):H.comment&&($.comment?$.comment+=`
96
+ `+H.comment:$.comment=H.comment);let De=new b9.Pair($,ge);if(r.options.keepSourceTokens&&(De.srcToken=x),i){let Z=l;k9.mapIncludes(r,Z.items,$)&&o(P,"DUPLICATE_KEY","Map keys must be unique"),Z.items.push(De)}else{let Z=new hP.YAMLMap(r.schema);Z.flow=!0,Z.items.push(De);let J=(ge??$).range;Z.range=[$.range[0],J[1],J[2]],l.items.push(Z)}u=ge?ge.range[2]:H.end}}let d=i?"}":"]",[g,...m]=n.end,h=u;if(g?.source===d)h=g.offset+g.source.length;else{let w=a[0].toUpperCase()+a.substring(1),x=p?`${w} must end with a ${d}`:`${w} in block collection must be sufficiently indented and end with a ${d}`;o(u,p?"MISSING_CHAR":"BAD_INDENT",x),g&&g.source.length!==1&&m.unshift(g)}if(m.length>0){let w=S9.resolveEnd(m,h,r.options.strict,o);w.comment&&(l.comment?l.comment+=`
97
+ `+w.comment:l.comment=w.comment),l.range=[n.offset,h,w.offset]}else l.range=[n.offset,h,h];return l}yP.resolveFlowCollection=E9});var xP=v(vP=>{"use strict";var R9=ke(),I9=yt(),A9=Zn(),C9=eo(),P9=pP(),$9=fP(),O9=wP();function Yy(e,t,r,n,o,s){let i=r.type==="block-map"?P9.resolveBlockMap(e,t,r,n,s):r.type==="block-seq"?$9.resolveBlockSeq(e,t,r,n,s):O9.resolveFlowCollection(e,t,r,n,s),a=i.constructor;return o==="!"||o===a.tagName?(i.tag=a.tagName,i):(o&&(i.tag=o),i)}function N9(e,t,r,n,o){let s=n.tag,i=s?t.directives.tagName(s.source,d=>o(s,"TAG_RESOLVE_FAILED",d)):null;if(r.type==="block-seq"){let{anchor:d,newlineAfterProp:g}=n,m=d&&s?d.offset>s.offset?d:s:d??s;m&&(!g||g.offset<m.offset)&&o(m,"MISSING_CHAR","Missing newline after block sequence props")}let a=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!s||!i||i==="!"||i===A9.YAMLMap.tagName&&a==="map"||i===C9.YAMLSeq.tagName&&a==="seq")return Yy(e,t,r,o,i);let c=t.schema.tags.find(d=>d.tag===i&&d.collection===a);if(!c){let d=t.schema.knownTags[i];if(d?.collection===a)t.schema.tags.push(Object.assign({},d,{default:!1})),c=d;else return d?o(s,"BAD_COLLECTION_TYPE",`${d.tag} used for ${a} collection, but expects ${d.collection??"scalar"}`,!0):o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,!0),Yy(e,t,r,o,i)}let l=Yy(e,t,r,o,i,c),p=c.resolve?.(l,d=>o(s,"TAG_RESOLVE_FAILED",d),t.options)??l,u=R9.isNode(p)?p:new I9.Scalar(p);return u.range=l.range,u.tag=i,c?.format&&(u.format=c.format),u}vP.composeCollection=N9});var Xy=v(bP=>{"use strict";var Jy=yt();function M9(e,t,r){let n=t.offset,o=D9(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[n,n,n]};let s=o.mode===">"?Jy.Scalar.BLOCK_FOLDED:Jy.Scalar.BLOCK_LITERAL,i=t.source?L9(t.source):[],a=i.length;for(let h=i.length-1;h>=0;--h){let w=i[h][1];if(w===""||w==="\r")a=h;else break}if(a===0){let h=o.chomp==="+"&&i.length>0?`
98
+ `.repeat(Math.max(1,i.length-1)):"",w=n+o.length;return t.source&&(w+=t.source.length),{value:h,type:s,comment:o.comment,range:[n,w,w]}}let c=t.indent+o.indent,l=t.offset+o.length,p=0;for(let h=0;h<a;++h){let[w,x]=i[h];if(x===""||x==="\r")o.indent===0&&w.length>c&&(c=w.length);else{w.length<c&&r(l+w.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(c=w.length),p=h,c===0&&!e.atRoot&&r(l,"BAD_INDENT","Block scalar values in collections must be indented");break}l+=w.length+x.length+1}for(let h=i.length-1;h>=a;--h)i[h][0].length>c&&(a=h+1);let u="",d="",g=!1;for(let h=0;h<p;++h)u+=i[h][0].slice(c)+`
99
+ `;for(let h=p;h<a;++h){let[w,x]=i[h];l+=w.length+x.length+1;let E=x[x.length-1]==="\r";if(E&&(x=x.slice(0,-1)),x&&w.length<c){let k=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;r(l-x.length-(E?2:1),"BAD_INDENT",k),w=""}s===Jy.Scalar.BLOCK_LITERAL?(u+=d+w.slice(c)+x,d=`
100
+ `):w.length>c||x[0]===" "?(d===" "?d=`
101
+ `:!g&&d===`
102
+ `&&(d=`
103
+
104
+ `),u+=d+w.slice(c)+x,d=`
105
+ `,g=!0):x===""?d===`
106
+ `?u+=`
107
+ `:d=`
108
+ `:(u+=d+x,d=" ",g=!1)}switch(o.chomp){case"-":break;case"+":for(let h=a;h<i.length;++h)u+=`
109
+ `+i[h][0].slice(c);u[u.length-1]!==`
110
+ `&&(u+=`
111
+ `);break;default:u+=`
112
+ `}let m=n+o.length+t.source.length;return{value:u,type:s,comment:o.comment,range:[n,m,m]}}function D9({offset:e,props:t},r,n){if(t[0].type!=="block-scalar-header")return n(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:o}=t[0],s=o[0],i=0,a="",c=-1;for(let d=1;d<o.length;++d){let g=o[d];if(!a&&(g==="-"||g==="+"))a=g;else{let m=Number(g);!i&&m?i=m:c===-1&&(c=e+d)}}c!==-1&&n(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let l=!1,p="",u=o.length;for(let d=1;d<t.length;++d){let g=t[d];switch(g.type){case"space":l=!0;case"newline":u+=g.source.length;break;case"comment":r&&!l&&n(g,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),u+=g.source.length,p=g.source.substring(1);break;case"error":n(g,"UNEXPECTED_TOKEN",g.message),u+=g.source.length;break;default:{let m=`Unexpected token in block scalar header: ${g.type}`;n(g,"UNEXPECTED_TOKEN",m);let h=g.source;h&&typeof h=="string"&&(u+=h.length)}}}return{mode:s,indent:i,chomp:a,comment:p,length:u}}function L9(e){let t=e.split(/\n( *)/),r=t[0],n=r.match(/^( *)/),s=[n?.[1]?[n[1],r.slice(n[1].length)]:["",r]];for(let i=1;i<t.length;i+=2)s.push([t[i],t[i+1]]);return s}bP.resolveBlockScalar=M9});var Zy=v(SP=>{"use strict";var Qy=yt(),F9=Ks();function q9(e,t,r){let{offset:n,type:o,source:s,end:i}=e,a,c,l=(d,g,m)=>r(n+d,g,m);switch(o){case"scalar":a=Qy.Scalar.PLAIN,c=j9(s,l);break;case"single-quoted-scalar":a=Qy.Scalar.QUOTE_SINGLE,c=U9(s,l);break;case"double-quoted-scalar":a=Qy.Scalar.QUOTE_DOUBLE,c=B9(s,l);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[n,n+s.length,n+s.length]}}let p=n+s.length,u=F9.resolveEnd(i,p,t,r);return{value:c,type:a,comment:u.comment,range:[n,p,u.offset]}}function j9(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),_P(e)}function U9(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),_P(e.slice(1,-1)).replace(/''/g,"'")}function _P(e){let t,r;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
113
+ `,"sy"),r=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
114
+ `,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=t.exec(e);if(!n)return e;let o=n[1],s=" ",i=t.lastIndex;for(r.lastIndex=i;n=r.exec(e);)n[1]===""?s===`
115
+ `?o+=s:s=`
116
+ `:(o+=s+n[1],s=" "),i=r.lastIndex;let a=/[ \t]*(.*)/sy;return a.lastIndex=i,n=a.exec(e),o+s+(n?.[1]??"")}function B9(e,t){let r="";for(let n=1;n<e.length-1;++n){let o=e[n];if(!(o==="\r"&&e[n+1]===`
117
+ `))if(o===`
118
+ `){let{fold:s,offset:i}=G9(e,n);r+=s,n=i}else if(o==="\\"){let s=e[++n],i=H9[s];if(i)r+=i;else if(s===`
119
+ `)for(s=e[n+1];s===" "||s===" ";)s=e[++n+1];else if(s==="\r"&&e[n+1]===`
120
+ `)for(s=e[++n+1];s===" "||s===" ";)s=e[++n+1];else if(s==="x"||s==="u"||s==="U"){let a=s==="x"?2:s==="u"?4:8;r+=K9(e,n+1,a,t),n+=a}else{let a=e.substr(n-1,2);t(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),r+=a}}else if(o===" "||o===" "){let s=n,i=e[n+1];for(;i===" "||i===" ";)i=e[++n+1];i!==`
121
+ `&&!(i==="\r"&&e[n+2]===`
122
+ `)&&(r+=n>s?e.slice(s,n+1):o)}else r+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}function G9(e,t){let r="",n=e[t+1];for(;(n===" "||n===" "||n===`
123
+ `||n==="\r")&&!(n==="\r"&&e[t+2]!==`
124
+ `);)n===`
125
+ `&&(r+=`
126
+ `),t+=1,n=e[t+1];return r||(r=" "),{fold:r,offset:t}}var H9={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
127
+ `,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function K9(e,t,r,n){let o=e.substr(t,r),i=o.length===r&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;try{return String.fromCodePoint(i)}catch{let a=e.substr(t-2,r+2);return n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}}SP.resolveFlowScalar=q9});var EP=v(kP=>{"use strict";var qo=ke(),TP=yt(),z9=Xy(),W9=Zy();function V9(e,t,r,n){let{value:o,type:s,comment:i,range:a}=t.type==="block-scalar"?z9.resolveBlockScalar(e,t,n):W9.resolveFlowScalar(t,e.options.strict,n),c=r?e.directives.tagName(r.source,u=>n(r,"TAG_RESOLVE_FAILED",u)):null,l;e.options.stringKeys&&e.atKey?l=e.schema[qo.SCALAR]:c?l=Y9(e.schema,o,c,r,n):t.type==="scalar"?l=J9(e,o,t,n):l=e.schema[qo.SCALAR];let p;try{let u=l.resolve(o,d=>n(r??t,"TAG_RESOLVE_FAILED",d),e.options);p=qo.isScalar(u)?u:new TP.Scalar(u)}catch(u){let d=u instanceof Error?u.message:String(u);n(r??t,"TAG_RESOLVE_FAILED",d),p=new TP.Scalar(o)}return p.range=a,p.source=o,s&&(p.type=s),c&&(p.tag=c),l.format&&(p.format=l.format),i&&(p.comment=i),p}function Y9(e,t,r,n,o){if(r==="!")return e[qo.SCALAR];let s=[];for(let a of e.tags)if(!a.collection&&a.tag===r)if(a.default&&a.test)s.push(a);else return a;for(let a of s)if(a.test?.test(t))return a;let i=e.knownTags[r];return i&&!i.collection?(e.tags.push(Object.assign({},i,{default:!1,test:void 0})),i):(o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),e[qo.SCALAR])}function J9({atKey:e,directives:t,schema:r},n,o,s){let i=r.tags.find(a=>(a.default===!0||e&&a.default==="key")&&a.test?.test(n))||r[qo.SCALAR];if(r.compat){let a=r.compat.find(c=>c.default&&c.test?.test(n))??r[qo.SCALAR];if(i.tag!==a.tag){let c=t.tagString(i.tag),l=t.tagString(a.tag),p=`Value may be parsed as either ${c} or ${l}`;s(o,"TAG_RESOLVE_FAILED",p,!0)}}return i}kP.composeScalar=V9});var IP=v(RP=>{"use strict";function X9(e,t,r){if(t){r??(r=t.length);for(let n=r-1;n>=0;--n){let o=t[n];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++n];o?.type==="space";)e+=o.source.length,o=t[++n];break}}return e}RP.emptyScalarPosition=X9});var PP=v(tw=>{"use strict";var Q9=ka(),Z9=ke(),e5=xP(),AP=EP(),t5=Ks(),r5=IP(),n5={composeNode:CP,composeEmptyNode:ew};function CP(e,t,r,n){let o=e.atKey,{spaceBefore:s,comment:i,anchor:a,tag:c}=r,l,p=!0;switch(t.type){case"alias":l=o5(e,t,n),(a||c)&&n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=AP.composeScalar(e,t,c,n),a&&(l.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{l=e5.composeCollection(n5,e,t,r,n),a&&(l.anchor=a.source.substring(1))}catch(u){let d=u instanceof Error?u.message:String(u);n(t,"RESOURCE_EXHAUSTION",d)}break;default:{let u=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",u),p=!1}}return l??(l=ew(e,t.offset,void 0,null,r,n)),a&&l.anchor===""&&n(a,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!Z9.isScalar(l)||typeof l.value!="string"||l.tag&&l.tag!=="tag:yaml.org,2002:str")&&n(c??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),s&&(l.spaceBefore=!0),i&&(t.type==="scalar"&&t.source===""?l.comment=i:l.commentBefore=i),e.options.keepSourceTokens&&p&&(l.srcToken=t),l}function ew(e,t,r,n,{spaceBefore:o,comment:s,anchor:i,tag:a,end:c},l){let p={type:"scalar",offset:r5.emptyScalarPosition(t,r,n),indent:-1,source:""},u=AP.composeScalar(e,p,a,l);return i&&(u.anchor=i.source.substring(1),u.anchor===""&&l(i,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(u.spaceBefore=!0),s&&(u.comment=s,u.range[2]=c),u}function o5({options:e},{offset:t,source:r,end:n},o){let s=new Q9.Alias(r.substring(1));s.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let i=t+r.length,a=t5.resolveEnd(n,i,e.strict,o);return s.range=[t,i,a.offset],a.comment&&(s.comment=a.comment),s}tw.composeEmptyNode=ew;tw.composeNode=CP});var NP=v(OP=>{"use strict";var s5=Ua(),$P=PP(),i5=Ks(),a5=Ka();function c5(e,t,{offset:r,start:n,value:o,end:s},i){let a=Object.assign({_directives:t},e),c=new s5.Document(void 0,a),l={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},p=a5.resolveProps(n,{indicator:"doc-start",next:o??s?.[0],offset:r,onError:i,parentIndent:0,startOnNewline:!0});p.found&&(c.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!p.hasNewline&&i(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=o?$P.composeNode(l,o,p,i):$P.composeEmptyNode(l,p.end,n,null,p,i);let u=c.contents.range[2],d=i5.resolveEnd(s,u,!1,i);return d.comment&&(c.comment=d.comment),c.range=[r,u,d.offset],c}OP.composeDoc=c5});var nw=v(LP=>{"use strict";var l5=Ue("process"),u5=Bg(),p5=Ua(),za=Ha(),MP=ke(),d5=NP(),f5=Ks();function Wa(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:r}=e;return[t,t+(typeof r=="string"?r.length:1)]}function DP(e){let t="",r=!1,n=!1;for(let o=0;o<e.length;++o){let s=e[o];switch(s[0]){case"#":t+=(t===""?"":n?`
128
+
32
129
  `:`
33
- `)+r,o=n+1,n=e.indexOf(`
34
- `,o)}while(n!==-1);return s+=e.substr(o),s};RA.exports={stringReplaceAll:a6,stringEncaseCRLFWithFirstIndex:c6}});var OA=w((Ece,$A)=>{"use strict";var l6=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,PA=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,u6=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,p6=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,d6=new Map([["n",`
35
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function CA(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):d6.get(e)||e}function f6(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),o;for(let s of n){let i=Number(s);if(!Number.isNaN(i))r.push(i);else if(o=s.match(u6))r.push(o[2].replace(p6,(a,c,l)=>c?CA(c):l));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`)}return r}function m6(e){PA.lastIndex=0;let t=[],r;for(;(r=PA.exec(e))!==null;){let n=r[1];if(r[2]){let o=f6(n,r[2]);t.push([n].concat(o))}else t.push([n])}return t}function AA(e,t){let r={};for(let o of t)for(let s of o.styles)r[s[0]]=o.inverse?null:s.slice(1);let n=e;for(let[o,s]of Object.entries(r))if(Array.isArray(s)){if(!(o in n))throw new Error(`Unknown Chalk style: ${o}`);n=s.length>0?n[o](...s):n[o]}return n}$A.exports=(e,t)=>{let r=[],n=[],o=[];if(t.replace(l6,(s,i,a,c,l,u)=>{if(i)o.push(CA(i));else if(c){let p=o.join("");o=[],n.push(r.length===0?p:AA(e,r)(p)),r.push({inverse:a,styles:m6(c)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(AA(e,r)(o.join(""))),o=[],r.pop()}else o.push(u)}),n.push(o.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var To=w((Tce,FA)=>{"use strict";var wc=kA(),{stdout:qy,stderr:Uy}=Td(),{stringReplaceAll:h6,stringEncaseCRLFWithFirstIndex:g6}=IA(),{isArray:Qu}=Array,MA=["ansi","ansi","ansi256","ansi16m"],gi=Object.create(null),y6=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=qy?qy.level:0;e.level=t.level===void 0?r:t.level},Gy=class{constructor(t){return DA(t)}},DA=e=>{let t={};return y6(t,e),t.template=(...r)=>jA(t.template,...r),Object.setPrototypeOf(t,Zu.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Gy,t.template};function Zu(e){return DA(e)}for(let[e,t]of Object.entries(wc))gi[e]={get(){let r=ep(this,zy(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};gi.visible={get(){let e=ep(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var LA=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of LA)gi[e]={get(){let{level:t}=this;return function(...r){let n=zy(wc.color[MA[t]][e](...r),wc.color.close,this._styler);return ep(this,n,this._isEmpty)}}};for(let e of LA){let t="bg"+e[0].toUpperCase()+e.slice(1);gi[t]={get(){let{level:r}=this;return function(...n){let o=zy(wc.bgColor[MA[r]][e](...n),wc.bgColor.close,this._styler);return ep(this,o,this._isEmpty)}}}}var v6=Object.defineProperties(()=>{},{...gi,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),zy=(e,t,r)=>{let n,o;return r===void 0?(n=e,o=t):(n=r.openAll+e,o=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:o,parent:r}},ep=(e,t,r)=>{let n=(...o)=>Qu(o[0])&&Qu(o[0].raw)?NA(n,jA(n,...o)):NA(n,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(n,v6),n._generator=e,n._styler=t,n._isEmpty=r,n},NA=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:o}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=h6(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
36
- `);return s!==-1&&(t=g6(t,o,n,s)),n+t+o},Fy,jA=(e,...t)=>{let[r]=t;if(!Qu(r)||!Qu(r.raw))return t.join(" ");let n=t.slice(1),o=[r.raw[0]];for(let s=1;s<r.length;s++)o.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Fy===void 0&&(Fy=OA()),Fy(e,o.join(""))};Object.defineProperties(Zu.prototype,gi);var tp=Zu();tp.supportsColor=qy;tp.stderr=Zu({level:Uy?Uy.level:0});tp.stderr.supportsColor=Uy;FA.exports=tp});import yi from"keytar";function UA(e){return`oauth-${e}-access`}function GA(e){return`oauth-${e}-refresh`}function zA(e){return`oauth-${e}-expires`}async function w6(e,t){if(await yi.setPassword(vi,UA(e),t.access_token),t.refresh_token&&await yi.setPassword(vi,GA(e),t.refresh_token),t.expires_in){let r=Date.now()+t.expires_in*1e3;await yi.setPassword(vi,zA(e),r.toString())}}async function x6(e){return await yi.getPassword(vi,UA(e))}async function b6(e){return await yi.getPassword(vi,GA(e))}async function _6(e){let t=await yi.getPassword(vi,zA(e));return t?parseInt(t,10):null}async function BA(e){let t=qA[e];if(!t)throw new Error(`Unknown OAuth provider: ${e}`);let r=await b6(e);if(!r)return null;let n=3,o=null;for(let s=0;s<n;s++)try{let a=(await ut.post(t.tokenUrl,new URLSearchParams({grant_type:"refresh_token",refresh_token:r,client_id:t.clientId||""}).toString(),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})).data;return await w6(e,a),a.access_token}catch(i){if(o=i,s<n-1){let a=Math.pow(2,s)*1e3;await new Promise(c=>setTimeout(c,a))}}return console.error(`Failed to refresh OAuth token for ${e} after ${n} attempts:`,o?.message),null}async function HA(e){let t=await _6(e),r=Date.now();if(t&&r>=t-300*1e3){let o=await BA(e);if(o)return o}let n=await x6(e);if(!n)throw new Error(`No OAuth token found for provider: ${e}. Run: flowdot connect ${e}`);return n}async function By(e,t,r){if(!qA[e])throw new Error(`OAuth provider ${e} not implemented for API calls`);let o=3,s=null;for(let i=0;i<o;i++)try{let a=await HA(e);if(e==="openai")return(await ut.post("https://api.openai.com/v1/chat/completions",{model:t,messages:r},{headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json"}})).data.choices[0].message.content;throw new Error(`OAuth provider ${e} not implemented for API calls`)}catch(a){if(s=a,ut.isAxiosError(a)){let c=a.response?.status,l=a.response?.data?.error?.message||a.message;if(c===401||c===403){if(i===0&&(console.error(`OAuth authentication failed for ${e}. Attempting token refresh...`),await BA(e)))continue;throw new Error(`OAuth authentication failed for ${e}. Your session may have expired. Please reconnect: flowdot connect ${e}`)}if(c===429){if(console.warn(`Rate limit hit for ${e}. Retrying with backoff...`),i<o-1){let u=Math.pow(2,i)*1e3;await new Promise(p=>setTimeout(p,u));continue}throw new Error(`Rate limit exceeded for ${e}. Please try again later.`)}if(c&&c>=500){if(console.warn(`${e} server error (${c}). Retrying...`),i<o-1){let u=Math.pow(2,i)*1e3;await new Promise(p=>setTimeout(p,u));continue}throw new Error(`${e} is experiencing issues. Please try again later.`)}throw new Error(`${e} API error: ${l}`)}if(i<o-1){console.warn(`OAuth API call failed (attempt ${i+1}/${o}). Retrying...`);let c=Math.pow(2,i)*1e3;await new Promise(l=>setTimeout(l,c));continue}}throw new Error(`Failed to call ${e} API after ${o} attempts. Last error: ${s?.message||"Unknown error"}. Check your connection and try again, or disconnect OAuth provider to use FlowDot tier: flowdot disconnect`)}var qA,vi,xc=S(()=>{"use strict";gn();cr();qA={openai:{id:"openai",displayName:"OpenAI (ChatGPT)",authUrl:"https://auth.openai.com/oauth/authorize",tokenUrl:"https://auth.openai.com/oauth/token",scopes:["openid","profile","email","offline_access","api.connectors.read","api.connectors.invoke"],requiresPKCE:!0,modelsEndpoint:"https://api.openai.com/v1/models",clientId:"app_EMoamEEZ73f0CkXaXp7hrann"}},vi="flowdot-cli"});async function Vy(e=!1){let t=Date.now();if(!e&&us&&t-Hy<S6)return C("SETTINGS","Using cached settings",{age:t-Hy}),us;try{let n=await(await at()).get("/api/hub/settings");return n.data?.success&&n.data?.data?(us=n.data.data,Hy=t,C("SETTINGS","Fetched user settings",{hasPreferredModels:!!us?.preferredModels,tiers:us?.preferredModels?Object.keys(us.preferredModels):[]}),us):(U("SETTINGS","Failed to fetch settings",{response:n.data}),null)}catch(r){return le("SETTINGS","Error fetching user settings",{error:r.message}),null}}async function VA(){return(await Vy())?.preferredModels||null}async function Cr(e){try{let n=new ls,o=n.get("oauthProvider"),s=n.get("oauthModel");if(o&&s)return C("SETTINGS",`Resolved tier "${e}" via OAuth`,{provider:`oauth-${o}`,model:s}),{provider:`oauth-${o}`,model:s}}catch(n){C("SETTINGS",`OAuth config lookup failed, falling back to preferred models: ${n?.message}`)}let t=await VA();if(!t)return U("SETTINGS","No preferred models configured",{tier:e}),null;let r=t[e];return r?(C("SETTINGS",`Resolved tier "${e}"`,{provider:r.provider,model:r.model}),r):(U("SETTINGS",`No model configured for tier: ${e}`,{availableTiers:Object.keys(t)}),null)}var us,Hy,S6,Sr=S(()=>{"use strict";ct();G();$y();us=null,Hy=0,S6=300*1e3});var YA={};Np(YA,{checkCliAccess:()=>Wy,clearCliAccessCache:()=>WA,displayUpgradeMessage:()=>Ky,requireCliAccess:()=>KA});async function Wy(){if(An&&Date.now()-An.checkedAt<E6)return C("CLI_ACCESS","Returning cached permission status",{canAccess:An.canAccess,cachedSecondsAgo:Math.floor((Date.now()-An.checkedAt)/1e3)}),{canAccess:An.canAccess,code:An.canAccess?"ACCESS_GRANTED":"NATIVE_APP_ACCESS_REQUIRED",upgradeUrl:An.canAccess?null:"https://flowdot.ai/subscriptions"};try{let t=await(await at()).get("/api/cli/access-status"),r=t.data?.can_access??!1;return C("CLI_ACCESS","Permission check completed",{canAccess:r,code:t.data?.code}),An={canAccess:r,checkedAt:Date.now()},{canAccess:r,code:t.data?.code||(r?"ACCESS_GRANTED":"NATIVE_APP_ACCESS_REQUIRED"),upgradeUrl:r?null:t.data?.upgrade_url??"https://flowdot.ai/subscriptions"}}catch(e){return e.response?.status===401?(C("CLI_ACCESS","User not authenticated"),{canAccess:!1,code:"NATIVE_APP_ACCESS_REQUIRED",upgradeUrl:"https://flowdot.ai/subscriptions"}):e.response?.status===403&&e.response?.data?.code==="NATIVE_APP_ACCESS_REQUIRED"?(C("CLI_ACCESS","User lacks native_app_access permission"),An={canAccess:!1,checkedAt:Date.now()},{canAccess:!1,code:"NATIVE_APP_ACCESS_REQUIRED",upgradeUrl:e.response?.data?.upgrade_url||"https://flowdot.ai/subscriptions"}):(U("CLI_ACCESS","Permission check failed, allowing access (fail-open)",{error:e.message,status:e.response?.status}),{canAccess:!0,code:"ACCESS_GRANTED",upgradeUrl:null})}}function WA(){An=null,C("CLI_ACCESS","Permission cache cleared")}function Ky(){console.log(),console.log(Ue.default.yellow("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510")),console.log(Ue.default.yellow("\u2502 \u2502")),console.log(Ue.default.yellow("\u2502 ")+Ue.default.bold("This feature is not available on the free plan.")+Ue.default.yellow(" \u2502")),console.log(Ue.default.yellow("\u2502 \u2502")),console.log(Ue.default.yellow("\u2502 The FlowDot CLI is available to subscribers. \u2502")),console.log(Ue.default.yellow("\u2502 Upgrade your plan to unlock: \u2502")),console.log(Ue.default.yellow("\u2502 \u2502")),console.log(Ue.default.yellow("\u2502 ")+Ue.default.white("\u2022 AI Agent execution from your terminal")+Ue.default.yellow(" \u2502")),console.log(Ue.default.yellow("\u2502 ")+Ue.default.white("\u2022 Recipe execution and management")+Ue.default.yellow(" \u2502")),console.log(Ue.default.yellow("\u2502 ")+Ue.default.white("\u2022 Workflow integration")+Ue.default.yellow(" \u2502")),console.log(Ue.default.yellow("\u2502 ")+Ue.default.white("\u2022 Model browser and tier selection")+Ue.default.yellow(" \u2502")),console.log(Ue.default.yellow("\u2502 ")+Ue.default.white("\u2022 Chat persistence and history")+Ue.default.yellow(" \u2502")),console.log(Ue.default.yellow("\u2502 \u2502")),console.log(Ue.default.yellow("\u2502 Upgrade now at: ")+Ue.default.cyan.underline("https://flowdot.ai/subscriptions")+Ue.default.yellow(" \u2502")),console.log(Ue.default.yellow("\u2502 \u2502")),console.log(Ue.default.yellow("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518")),console.log()}async function KA(){(await Wy()).canAccess||(Ky(),process.exit(1))}var Ue,An,E6,Yy=S(()=>{"use strict";ct();Ue=kr(To(),1);G();An=null,E6=300*1e3});var QA={};Np(QA,{clearToken:()=>XA,getApiClient:()=>at,getToken:()=>bc,isAuthenticated:()=>tv,saveToken:()=>JA,streamAgentRequest:()=>sp});import*as Zy from"node:http";import*as ev from"node:https";import{URL as T6}from"node:url";import rp from"keytar";function k6(){let n=process.env.FLOWDOT_API_TIMEOUT_MS;if(!n)return 6e4;let o=parseInt(n,10);return isNaN(o)?(U("API",`Invalid FLOWDOT_API_TIMEOUT_MS value "${n}", using default 60000ms`),6e4):o<5e3?(U("API",`FLOWDOT_API_TIMEOUT_MS ${o}ms is below minimum 5000ms, using minimum`),5e3):o>3e5?(U("API",`FLOWDOT_API_TIMEOUT_MS ${o}ms exceeds maximum 300000ms, using maximum`),3e5):o}function Qy(e,t=5){if(t<=0||e===null||e===void 0||typeof e!="object")return e;if(Array.isArray(e))return`[Array(${e.length})]`;let r={},n=e;for(let[o,s]of Object.entries(n)){let i=o.toLowerCase();R6.some(c=>i.includes(c.toLowerCase()))?r[o]="[REDACTED]":typeof s=="object"&&s!==null?r[o]=Qy(s,t-1):typeof s=="string"&&s.length>100?r[o]=s.substring(0,50)+"...[truncated]":r[o]=s}return r}async function at(){let e=Jy.get("apiUrl"),t=await rp.getPassword(np,op);C("API","getApiClient called",{apiUrl:e,hasToken:!!t});let r=ut.create({baseURL:e,timeout:k6(),headers:{"Content-Type":"application/json",Accept:"application/json"}});return t?r.defaults.headers.common.Authorization=`Bearer ${t}`:U("API","No token found in keytar - requests will be unauthenticated"),r.interceptors.request.use(async n=>{if(n.data?.provider?.startsWith("oauth-")){let o=n.data.provider.replace("oauth-","");C("API","OAuth request detected",{providerId:o,model:n.data.model});try{let s=await By(o,n.data.model,n.data.conversationHistory||[]);C("API","OAuth call successful",{providerId:o}),n.adapter=()=>Promise.resolve({data:{success:!0,data:{response:s}},status:200,statusText:"OK",headers:{},config:n})}catch(s){U("API","OAuth call failed, falling back to FlowDot tier",{providerId:o,error:s instanceof Error?s.message:String(s)});try{let i=Jy.get("model")||"capable",a=await Cr(i);if(!a)throw new Error(`Failed to resolve model tier "${i}"`);C("API","Falling back to FlowDot tier",{tier:i,provider:a.provider,model:a.model}),n.data.provider=a.provider,n.data.model=a.model}catch(i){throw le("API","Fallback to FlowDot tier failed",{error:i instanceof Error?i.message:String(i)}),s}}}return n}),r.interceptors.response.use(n=>n,async n=>{let o=n.config;if(n.response?.status===401)le("API","401 Unauthorized - token may be invalid or expired",{url:o?.url,hasAuthHeader:!!o?.headers?.Authorization}),console.error(Xy.default.red("Authentication error. Please run: flowdot auth login"));else if(n.response?.status===400){le("API","400 Bad Request",{url:o?.url,responseData:Qy(n.response?.data)});let s=n.response?.data?.message||n.response?.data?.error||"Bad Request";console.error(Xy.default.red("API Error (400): "+s))}else if(n.response?.status===403){let s=n.response?.data;if(s?.code==="NATIVE_APP_ACCESS_REQUIRED"){let{displayUpgradeMessage:i,clearCliAccessCache:a}=await Promise.resolve().then(()=>(Yy(),YA));a(),i(),process.exit(1)}le("API","403 Forbidden",{url:o?.url,responseCode:s?.code})}else if(n.response?.status>=500||I6(n)){o.__retryCount=o.__retryCount||0;let s=3,i=1e3;if(o.__retryCount<s)return o.__retryCount++,C("API",`Transient error (attempt ${o.__retryCount}/${s}), retrying...`,{url:o?.url,status:n.response?.status,error:n.message}),await new Promise(c=>setTimeout(c,i*o.__retryCount)),r.request(o);le("API",`Server error after ${s} retries`,{url:o?.url,status:n.response?.status,responseData:Qy(n.response?.data)});let a=n.response?.data?.message||n.response?.data?.error||"";n.message=P6(n.response?.status,a,o?.url)}return Promise.reject(n)}),r}function I6(e){if(!e)return!1;let t=(e.message||"").toLowerCase(),r=e.code||"";return t.includes("timeout")||t.includes("network")||t.includes("econnreset")||t.includes("econnrefused")||t.includes("socket hang up")||r==="ECONNRESET"||r==="ECONNREFUSED"||r==="ETIMEDOUT"}function P6(e,t,r){let n=r?r.split("/").slice(-2).join("/"):"API";return e===502||e===503?"The FlowDot service is temporarily unavailable. Please try again in a moment.":e===504?"The request timed out. This may happen with complex operations - please try again.":t.includes("Could not connect")?"Unable to connect to the FlowDot service. Please check your internet connection or try again later.":t?`Server error: ${t}`:`The server encountered an error (${e}). This may be temporary - please try again.`}async function JA(e){await rp.setPassword(np,op,e)}async function bc(){return await rp.getPassword(np,op)}async function XA(){await rp.deletePassword(np,op)}async function tv(){return!!await bc()}async function sp(e){let t=Jy.get("apiUrl")||"http://localhost:8000",r=await bc();return new Promise((n,o)=>{let s=new T6(`${t}/api/node-core-api/agent/conversation/stream`),i=s.protocol==="https:",a=i?ev:Zy,c=i?new ev.Agent({keepAlive:!1}):new Zy.Agent({keepAlive:!1}),l=JSON.stringify({message:e.message,conversationHistory:e.conversationHistory,selectedWorkflowIds:e.selectedWorkflowIds||[],conversationAssets:e.conversationAssets||[],provider:e.provider,model:e.model,max_tokens:e.maxTokens||4e3,deferToolExecution:!0,memoriesEnabled:e.memoriesEnabled!==!1,...e.systemPrompt&&{systemPrompt:e.systemPrompt}});C("STREAM_REQUEST","Sending request to server",{url:s.href,messageLength:e.message?.length||0,conversationHistoryLength:e.conversationHistory?.length||0,conversationHistoryRoles:e.conversationHistory?.map(P=>P.role)||[],provider:e.provider,model:e.model});let u=JSON.parse(l);C("STREAM_REQUEST","Request body structure",{postDataKeys:Object.keys(u),conversationHistoryType:typeof u.conversationHistory,conversationHistoryIsArray:Array.isArray(u.conversationHistory),conversationHistoryFromPostData:u.conversationHistory?.map(P=>({role:P.role,contentLength:P.content?.length||0}))||"NONE",postDataLength:l.length});let p={hostname:s.hostname,port:s.port||(i?443:80),path:s.pathname,method:"POST",agent:c,headers:{"Content-Type":"application/json",Accept:"text/event-stream",Authorization:r?`Bearer ${r}`:"","Content-Length":Buffer.byteLength(l),"X-FlowDot-Source":e.flowdotSource||process.env.FLOWDOT_CLIENT_SOURCE||"cli",...e.flowdotMode?{"x-flowdot-mode":e.flowdotMode}:{}}},m="",h=null,f=[],g=Date.now(),v=3e5,x=!1,I=a.request(p,P=>{if(P.statusCode!==200){let A="";P.on("data",L=>{A+=L.toString()}),P.on("end",()=>{x||(x=!0,n({success:!1,error:`Request failed with status ${P.statusCode}: ${A}`}))});return}P.setEncoding("utf8");let R="";P.on("data",A=>{if(g=Date.now(),R+=A,A.trim().startsWith("{")&&!A.includes("data: "))try{let Y=JSON.parse(A.trim());if(Y.error||Y.message){x||(x=!0,n({success:!1,error:Y.error||Y.message}));return}}catch{}let L=A.split(`
37
- `);for(let Y of L)if(Y.startsWith("data: ")){let ue=Y.slice(6);if(ue==="[DONE]")continue;try{let Q=JSON.parse(ue);if(Q.type==="token"&&Q.content){m+=Q.content;let Ke=Math.ceil(Q.content.length/4);e.onToken&&e.onToken(Ke)}else if(Q.type==="complete")Q.data?.response&&(m=Q.data.response),Q.data?.deferredAction&&(h=Q.data.deferredAction,C("STREAM_REQUEST","Received deferredAction from server",{type:h?.type,hasPayload:!!h?.payload})),Q.data?.remainingActions&&(f=Q.data.remainingActions);else if(Q.type==="memory_action")e.onMemoryAction&&Q.action&&Q.memory&&(C("STREAM_REQUEST","Received memory_action event",{action:Q.action,memoryId:Q.memory?.id,hasUndoData:!!Q.undoData}),e.onMemoryAction({action:Q.action,memory:Q.memory,undoData:Q.undoData}));else if(Q.type==="error"){x||(x=!0,n({success:!1,error:Q.error||Q.data?.message||"Stream error"}));return}}catch{}}}),P.on("end",()=>{if(!x){if(C("STREAM_REQUEST","Stream ended",{rawDataLength:R.length,fullResponseLength:m.length}),m.length===0&&R.trim().startsWith("{"))try{let A=JSON.parse(R.trim());if(A.error||A.message){x=!0,n({success:!1,error:A.error||A.message});return}}catch{}x=!0,n({success:!0,data:{response:m,deferredAction:h,remainingActions:f}})}}),P.on("error",A=>{x||(x=!0,n({success:!1,error:A.message}))})});I.on("error",P=>{x||(x=!0,n({success:!1,error:P.message}))});let k=setInterval(()=>{if(Date.now()-g>v){if(clearInterval(k),I.destroy(),x)return;x=!0,n({success:!1,error:`Stream timed out after ${v/1e3}s of inactivity`})}},1e4);I.on("close",()=>{clearInterval(k)}),I.write(l),I.end()})}var Xy,Jy,R6,np,op,ct=S(()=>{"use strict";gn();cr();Xy=kr(To(),1);G();xc();Sr();Jy=new pt;R6=["token","access_token","refresh_token","bearer","api_key","apikey","api-key","apiSecret","api_secret","password","passwd","pwd","secret","authorization","auth","credential","credentials","private_key","privatekey","private-key","connection_string","connectionstring","database_url","db_password","session_id","sessionid","session","cookie","cookies"];np="flowdot-cli",op="default"});import*as Yr from"node:fs";import*as ap from"node:path";import*as Cn from"node:os";import*as ps from"node:crypto";function O6(){let e=[Cn.hostname(),Cn.platform(),Cn.arch(),Cn.cpus()[0]?.model||"unknown-cpu",Cn.homedir(),"flowdot-permission-integrity-v1"],t=ps.createHash("sha256");return t.update(e.join("|")),t.digest()}function eC(e){let t=O6(),r=JSON.stringify(e),n=ps.createHmac("sha256",t);return n.update(r),n.digest("base64")}function N6(e,t){let r=eC(e);try{let n=Buffer.from(t,"base64"),o=Buffer.from(r,"base64");return n.length!==o.length?!1:ps.timingSafeEqual(n,o)}catch{return!1}}function rv(){return ap.join(M6,".flowdot")}function tC(){return ap.join(rv(),"permissions.json")}function D6(){return ap.join(rv(),"session.json")}function L6(){let e=rv();Yr.existsSync(e)||Yr.mkdirSync(e,{recursive:!0})}function j6(){let e=tC();if(!Yr.existsSync(e))return ip();try{let t=Yr.readFileSync(e,"utf-8"),r=JSON.parse(t);if(F6(r)){if(!N6(r.data,r.signature)){U("PERMISSIONS","Permission file integrity check failed! File may have been tampered with."),U("PERMISSIONS","Resetting permissions to empty state for security.");let o=ip();return ZA(o),o}return r.data}let n=r;return q6(n)?(U("PERMISSIONS","Migrating unsigned permissions file to signed format."),ZA(n),n):ip()}catch{return ip()}}function F6(e){if(typeof e!="object"||e===null)return!1;let t=e;return typeof t.signature=="string"&&typeof t.signedAt=="string"&&typeof t.data=="object"&&t.data!==null}function q6(e){if(typeof e!="object"||e===null)return!1;let t=e;return typeof t.version=="number"&&typeof t.created=="string"&&typeof t.updated=="string"&&typeof t.permissions=="object"}function ZA(e){L6(),e.updated=new Date().toISOString();let t={version:1,data:e,signature:eC(e),signedAt:new Date().toISOString()};Yr.writeFileSync(tC(),JSON.stringify(t,null,2),{mode:$6})}function U6(){let e=D6();if(!Yr.existsSync(e))return null;try{let t=Yr.readFileSync(e,"utf-8");return JSON.parse(t)}catch{return null}}function ip(){let e=new Date().toISOString();return{version:1,created:e,updated:e,permissions:{}}}function ds(e,t){let r=j6(),n=U6(),o=G6(t),s=r.permissions[e];if(s&&(s[o]==="deny"||s["*"]==="deny"))return"deny";if(s&&(s[o]==="allow"||s["*"]==="allow"))return"allow";if(n){let i=n.permissions[e];if(i&&(i[o]==="allow"||i["*"]==="allow"))return"allow"}return"prompt"}function G6(e){return e.trim().replace(/\\/g,"/")}var $6,M6,ko=S(()=>{"use strict";G();G();$6=384;M6=process.cwd()});var _c=S(()=>{"use strict";});var xt,cle,lle,Wn=S(()=>{"use strict";xt=kr(To(),1);ko();G();_c();ko();cle=`
38
- ${xt.default.yellow.bold("\u26A0\uFE0F WILDCARD PERMISSION WARNING")}
39
- ${xt.default.yellow("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501")}
130
+ `)+(s.substring(1)||" "),r=!0,n=!1;break;case"%":e[o+1]?.[0]!=="#"&&(o+=1),r=!1;break;default:r||(n=!0),r=!1}}return{comment:t,afterEmptyLine:n}}var rw=class{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,n,o,s)=>{let i=Wa(r);s?this.warnings.push(new za.YAMLWarning(i,n,o)):this.errors.push(new za.YAMLParseError(i,n,o))},this.directives=new u5.Directives({version:t.version||"1.2"}),this.options=t}decorate(t,r){let{comment:n,afterEmptyLine:o}=DP(this.prelude);if(n){let s=t.contents;if(r)t.comment=t.comment?`${t.comment}
131
+ ${n}`:n;else if(o||t.directives.docStart||!s)t.commentBefore=n;else if(MP.isCollection(s)&&!s.flow&&s.items.length>0){let i=s.items[0];MP.isPair(i)&&(i=i.key);let a=i.commentBefore;i.commentBefore=a?`${n}
132
+ ${a}`:n}else{let i=s.commentBefore;s.commentBefore=i?`${n}
133
+ ${i}`:n}}if(r){for(let s=0;s<this.errors.length;++s)t.errors.push(this.errors[s]);for(let s=0;s<this.warnings.length;++s)t.warnings.push(this.warnings[s])}else t.errors=this.errors,t.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:DP(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,r=!1,n=-1){for(let o of t)yield*this.next(o);yield*this.end(r,n)}*next(t){switch(l5.env.LOG_STREAM&&console.dir(t,{depth:null}),t.type){case"directive":this.directives.add(t.source,(r,n,o)=>{let s=Wa(t);s[0]+=r,this.onError(s,"BAD_DIRECTIVE",n,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{let r=d5.composeDoc(this.options,this.directives,t,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{let r=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,n=new za.YAMLParseError(Wa(t),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){let n="Unexpected doc-end without preceding document";this.errors.push(new za.YAMLParseError(Wa(t),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;let r=f5.resolveEnd(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){let n=this.doc.comment;this.doc.comment=n?`${n}
134
+ ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new za.YAMLParseError(Wa(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){let n=Object.assign({_directives:this.directives},this.options),o=new p5.Document(void 0,n);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,r,r],this.decorate(o,!1),yield o}}};LP.Composer=rw});var jP=v(ip=>{"use strict";var m5=Xy(),h5=Zy(),g5=Ha(),FP=Ca();function y5(e,t=!0,r){if(e){let n=(o,s,i)=>{let a=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(r)r(a,s,i);else throw new g5.YAMLParseError([a,a+1],s,i)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return h5.resolveFlowScalar(e,t,n);case"block-scalar":return m5.resolveBlockScalar({options:{strict:t}},e,n)}}return null}function w5(e,t){let{implicitKey:r=!1,indent:n,inFlow:o=!1,offset:s=-1,type:i="PLAIN"}=t,a=FP.stringifyString({type:i,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),c=t.end??[{type:"newline",offset:-1,indent:n,source:`
135
+ `}];switch(a[0]){case"|":case">":{let l=a.indexOf(`
136
+ `),p=a.substring(0,l),u=a.substring(l+1)+`
137
+ `,d=[{type:"block-scalar-header",offset:s,indent:n,source:p}];return qP(d,c)||d.push({type:"newline",offset:-1,indent:n,source:`
138
+ `}),{type:"block-scalar",offset:s,indent:n,props:d,source:u}}case'"':return{type:"double-quoted-scalar",offset:s,indent:n,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:s,indent:n,source:a,end:c};default:return{type:"scalar",offset:s,indent:n,source:a,end:c}}}function v5(e,t,r={}){let{afterKey:n=!1,implicitKey:o=!1,inFlow:s=!1,type:i}=r,a="indent"in e?e.indent:null;if(n&&typeof a=="number"&&(a+=2),!i)switch(e.type){case"single-quoted-scalar":i="QUOTE_SINGLE";break;case"double-quoted-scalar":i="QUOTE_DOUBLE";break;case"block-scalar":{let l=e.props[0];if(l.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i=l.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:i="PLAIN"}let c=FP.stringifyString({type:i,value:t},{implicitKey:o||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":x5(e,c);break;case'"':ow(e,c,"double-quoted-scalar");break;case"'":ow(e,c,"single-quoted-scalar");break;default:ow(e,c,"scalar")}}function x5(e,t){let r=t.indexOf(`
139
+ `),n=t.substring(0,r),o=t.substring(r+1)+`
140
+ `;if(e.type==="block-scalar"){let s=e.props[0];if(s.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s.source=n,e.source=o}else{let{offset:s}=e,i="indent"in e?e.indent:-1,a=[{type:"block-scalar-header",offset:s,indent:i,source:n}];qP(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:i,source:`
141
+ `});for(let c of Object.keys(e))c!=="type"&&c!=="offset"&&delete e[c];Object.assign(e,{type:"block-scalar",indent:i,props:a,source:o})}}function qP(e,t){if(t)for(let r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function ow(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{let n=e.props.slice(1),o=t.length;e.props[0].type==="block-scalar-header"&&(o-=e.props[0].source.length);for(let s of n)s.offset+=o;delete e.props,Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{let o={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
142
+ `};delete e.items,Object.assign(e,{type:r,source:t,end:[o]});break}default:{let n="indent"in e?e.indent:-1,o="end"in e&&Array.isArray(e.end)?e.end.filter(s=>s.type==="space"||s.type==="comment"||s.type==="newline"):[];for(let s of Object.keys(e))s!=="type"&&s!=="offset"&&delete e[s];Object.assign(e,{type:r,indent:n,source:t,end:o})}}}ip.createScalarToken=w5;ip.resolveAsScalar=y5;ip.setScalarValue=v5});var BP=v(UP=>{"use strict";var b5=e=>"type"in e?cp(e):ap(e);function cp(e){switch(e.type){case"block-scalar":{let t="";for(let r of e.props)t+=cp(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(let r of e.items)t+=ap(r);return t}case"flow-collection":{let t=e.start.source;for(let r of e.items)t+=ap(r);for(let r of e.end)t+=r.source;return t}case"document":{let t=ap(e);if(e.end)for(let r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let r of e.end)t+=r.source;return t}}}function ap({start:e,key:t,sep:r,value:n}){let o="";for(let s of e)o+=s.source;if(t&&(o+=cp(t)),r)for(let s of r)o+=s.source;return n&&(o+=cp(n)),o}UP.stringify=b5});var zP=v(KP=>{"use strict";var sw=Symbol("break visit"),_5=Symbol("skip children"),GP=Symbol("remove item");function jo(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),HP(Object.freeze([]),e,t)}jo.BREAK=sw;jo.SKIP=_5;jo.REMOVE=GP;jo.itemAtPath=(e,t)=>{let r=e;for(let[n,o]of t){let s=r?.[n];if(s&&"items"in s)r=s.items[o];else return}return r};jo.parentCollection=(e,t)=>{let r=jo.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],o=r?.[n];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function HP(e,t,r){let n=r(t,e);if(typeof n=="symbol")return n;for(let o of["key","value"]){let s=t[o];if(s&&"items"in s){for(let i=0;i<s.items.length;++i){let a=HP(Object.freeze(e.concat([[o,i]])),s.items[i],r);if(typeof a=="number")i=a-1;else{if(a===sw)return sw;a===GP&&(s.items.splice(i,1),i-=1)}}typeof n=="function"&&o==="key"&&(n=n(t,e))}}return typeof n=="function"?n(t,e):n}KP.visit=jo});var lp=v(ir=>{"use strict";var iw=jP(),S5=BP(),T5=zP(),aw="\uFEFF",cw="",lw="",uw="",k5=e=>!!e&&"items"in e,E5=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function R5(e){switch(e){case aw:return"<BOM>";case cw:return"<DOC>";case lw:return"<FLOW_END>";case uw:return"<SCALAR>";default:return JSON.stringify(e)}}function I5(e){switch(e){case aw:return"byte-order-mark";case cw:return"doc-mode";case lw:return"flow-error-end";case uw:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
143
+ `:case`\r
144
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}ir.createScalarToken=iw.createScalarToken;ir.resolveAsScalar=iw.resolveAsScalar;ir.setScalarValue=iw.setScalarValue;ir.stringify=S5.stringify;ir.visit=T5.visit;ir.BOM=aw;ir.DOCUMENT=cw;ir.FLOW_END=lw;ir.SCALAR=uw;ir.isCollection=k5;ir.isScalar=E5;ir.prettyToken=R5;ir.tokenType=I5});var fw=v(VP=>{"use strict";var Va=lp();function Gr(e){switch(e){case void 0:case" ":case`
145
+ `:case"\r":case" ":return!0;default:return!1}}var WP=new Set("0123456789ABCDEFabcdef"),A5=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),up=new Set(",[]{}"),C5=new Set(` ,[]{}
146
+ \r `),pw=e=>!e||C5.has(e),dw=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,r=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!r;let n=this.next??"stream";for(;n&&(r||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let t=this.pos,r=this.buffer[t];for(;r===" "||r===" ";)r=this.buffer[++t];return!r||r==="#"||r===`
147
+ `?!0:r==="\r"?this.buffer[t+1]===`
148
+ `:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let r=this.buffer[t];if(this.indentNext>0){let n=0;for(;r===" ";)r=this.buffer[++n+t];if(r==="\r"){let o=this.buffer[n+t+1];if(o===`
149
+ `||!o&&!this.atEnd)return t+n+1}return r===`
150
+ `||n>=this.indentNext||!r&&!this.atEnd?t+n:-1}if(r==="-"||r==="."){let n=this.buffer.substr(t,3);if((n==="---"||n==="...")&&Gr(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
151
+ `,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Va.BOM&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let r=t.length,n=t.indexOf("#");for(;n!==-1;){let s=t[n-1];if(s===" "||s===" "){r=n-1;break}else n=t.indexOf("#",n+1)}for(;;){let s=t[r-1];if(s===" "||s===" ")r-=1;else break}let o=(yield*this.pushCount(r))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){let r=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-r),yield*this.pushNewline(),"stream"}return yield Va.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let r=this.peek(3);if((r==="---"||r==="...")&&Gr(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,r==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Gr(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[t,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Gr(r)){let n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let t=this.getLine();if(t===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(t[r]){case"#":yield*this.pushCount(t.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(pw),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,r,n=-1;do t=yield*this.pushNewline(),t>0?(r=yield*this.pushSpaces(!1),this.indentValue=n=r):r=0,r+=yield*this.pushSpaces(!0);while(t+r>0);let o=this.getLine();if(o===null)return this.setNext("flow");if((n!==-1&&n<this.indentNext&&o[0]!=="#"||n===0&&(o.startsWith("---")||o.startsWith("..."))&&Gr(o[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield Va.FLOW_END,yield*this.parseLineStart();let s=0;for(;o[s]===",";)s+=yield*this.pushCount(1),s+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(s+=yield*this.pushIndicators(),o[s]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-s),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(pw),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let i=this.charAt(1);if(this.flowKey||Gr(i)||i===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let t=this.charAt(0),r=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;r!==-1&&this.buffer[r+1]==="'";)r=this.buffer.indexOf("'",r+2);else for(;r!==-1;){let s=0;for(;this.buffer[r-1-s]==="\\";)s+=1;if(s%2===0)break;r=this.buffer.indexOf('"',r+1)}let n=this.buffer.substring(0,r),o=n.indexOf(`
152
+ `,this.pos);if(o!==-1){for(;o!==-1;){let s=this.continueScalar(o+1);if(s===-1)break;o=n.indexOf(`
153
+ `,s)}o!==-1&&(r=o-(n[o-1]==="\r"?2:1))}if(r===-1){if(!this.atEnd)return this.setNext("quoted-scalar");r=this.buffer.length}return yield*this.pushToIndex(r+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){let r=this.buffer[++t];if(r==="+")this.blockScalarKeep=!0;else if(r>"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>Gr(r)||r==="#")}*parseBlockScalar(){let t=this.pos-1,r=0,n;e:for(let s=this.pos;n=this.buffer[s];++s)switch(n){case" ":r+=1;break;case`
154
+ `:t=s,r=0;break;case"\r":{let i=this.buffer[s+1];if(!i&&!this.atEnd)return this.setNext("block-scalar");if(i===`
155
+ `)break}default:break e}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let s=this.continueScalar(t+1);if(s===-1)break;t=this.buffer.indexOf(`
156
+ `,s)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let o=t+1;for(n=this.buffer[o];n===" ";)n=this.buffer[++o];if(n===" "){for(;n===" "||n===" "||n==="\r"||n===`
157
+ `;)n=this.buffer[++o];t=o-1}else if(!this.blockScalarKeep)do{let s=t-1,i=this.buffer[s];i==="\r"&&(i=this.buffer[--s]);let a=s;for(;i===" ";)i=this.buffer[--s];if(i===`
158
+ `&&s>=this.pos&&s+1+r>a)t=s;else break}while(!0);return yield Va.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let t=this.flowLevel>0,r=this.pos-1,n=this.pos-1,o;for(;o=this.buffer[++n];)if(o===":"){let s=this.buffer[n+1];if(Gr(s)||t&&up.has(s))break;r=n}else if(Gr(o)){let s=this.buffer[n+1];if(o==="\r"&&(s===`
159
+ `?(n+=1,o=`
160
+ `,s=this.buffer[n+1]):r=n),s==="#"||t&&up.has(s))break;if(o===`
161
+ `){let i=this.continueScalar(n+1);if(i===-1)break;n=Math.max(n,i-2)}}else{if(t&&up.has(o))break;r=n}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield Va.SCALAR,yield*this.pushToIndex(r+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,r){let n=this.buffer.slice(this.pos,t);return n?(yield n,this.pos+=n.length,n.length):(r&&(yield""),0)}*pushIndicators(){let t=0;e:for(;;){switch(this.charAt(0)){case"!":t+=yield*this.pushTag(),t+=yield*this.pushSpaces(!0);continue e;case"&":t+=yield*this.pushUntil(pw),t+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{let r=this.flowLevel>0,n=this.charAt(1);if(Gr(n)||r&&up.has(n)){r?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,t+=yield*this.pushCount(1),t+=yield*this.pushSpaces(!0);continue e}}}break e}return t}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,r=this.buffer[t];for(;!Gr(r)&&r!==">";)r=this.buffer[++t];return yield*this.pushToIndex(r===">"?t+1:t,!1)}else{let t=this.pos+1,r=this.buffer[t];for(;r;)if(A5.has(r))r=this.buffer[++t];else if(r==="%"&&WP.has(this.buffer[t+1])&&WP.has(this.buffer[t+2]))r=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){let t=this.buffer[this.pos];return t===`
162
+ `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
163
+ `?yield*this.pushCount(2):0}*pushSpaces(t){let r=this.pos-1,n;do n=this.buffer[++r];while(n===" "||t&&n===" ");let o=r-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=r),o}*pushUntil(t){let r=this.pos,n=this.buffer[r];for(;!t(n);)n=this.buffer[++r];return yield*this.pushToIndex(r,!1)}};VP.Lexer=dw});var hw=v(YP=>{"use strict";var mw=class{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let r=0,n=this.lineStarts.length;for(;r<n;){let s=r+n>>1;this.lineStarts[s]<t?r=s+1:n=s}if(this.lineStarts[r]===t)return{line:r+1,col:1};if(r===0)return{line:0,col:t};let o=this.lineStarts[r-1];return{line:r,col:t-o+1}}}};YP.LineCounter=mw});var yw=v(e$=>{"use strict";var P5=Ue("process"),JP=lp(),$5=fw();function to(e,t){for(let r=0;r<e.length;++r)if(e[r].type===t)return!0;return!1}function XP(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function ZP(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function pp(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function zs(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function dp(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let r=0;r<t.length;++r)e.push(t[r])}function QP(e){if(e.start.type==="flow-seq-start")for(let t of e.items)t.sep&&!t.value&&!to(t.start,"explicit-key-ind")&&!to(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,ZP(t.value)?t.value.end?dp(t.value.end,t.sep):t.value.end=t.sep:dp(t.start,t.sep),delete t.sep)}var gw=class{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new $5.Lexer,this.onNewLine=t}*parse(t,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(t,r))yield*this.next(n);r||(yield*this.end())}*next(t){if(this.source=t,P5.env.LOG_TOKENS&&console.log("|",JP.prettyToken(t)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}let r=JP.tokenType(t);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{let n=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let t=this.peek(1);if(this.type==="doc-end"&&t?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){let r=t??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{let n=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in n?n.indent:0:r.type==="flow-collection"&&n.type==="document"&&(r.indent=0),r.type==="flow-collection"&&QP(r),n.type){case"document":n.value=r;break;case"block-scalar":n.props.push(r);break;case"block-map":{let o=n.items[n.items.length-1];if(o.value){n.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=r;else{Object.assign(o,{key:r,sep:[]}),this.onKeyLine=!o.explicitKey;return}break}case"block-seq":{let o=n.items[n.items.length-1];o.value?n.items.push({start:[],value:r}):o.value=r;break}case"flow-collection":{let o=n.items[n.items.length-1];!o||o.value?n.items.push({start:[],key:r,sep:[]}):o.sep?o.value=r:Object.assign(o,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){let o=r.items[r.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&XP(o.start)===-1&&(r.indent===0||o.start.every(s=>s.type!=="comment"||s.indent<r.indent))&&(n.type==="document"?n.end=o.start:n.items.push({start:o.start}),r.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{XP(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}let r=this.startBlockValue(t);r?this.stack.push(r):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){let r=pp(this.peek(2)),n=zs(r),o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];let s={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:n,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let r=this.source.indexOf(`
164
+ `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
165
+ `,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){let r=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){let n="end"in r.value?r.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,t.indent)){let o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){dp(o,r.start),o.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=t.indent){let n=!this.onKeyLine&&this.indent===t.indent,o=n&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind",s=[];if(o&&r.sep&&!r.value){let i=[];for(let a=0;a<r.sep.length;++a){let c=r.sep[a];switch(c.type){case"newline":i.push(a);break;case"space":break;case"comment":c.indent>t.indent&&(i.length=0);break;default:i.length=0}}i.length>=2&&(s=r.sep.splice(i[1]))}switch(this.type){case"anchor":case"tag":o||r.value?(s.push(this.sourceToken),t.items.push({start:s}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):o||r.value?(s.push(this.sourceToken),t.items.push({start:s,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(r.explicitKey)if(r.sep)if(r.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(to(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(ZP(r.key)&&!to(r.sep,"newline")){let i=zs(r.start),a=r.key,c=r.sep;c.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:a,sep:c}]})}else s.length>0?r.sep=r.sep.concat(s,this.sourceToken):r.sep.push(this.sourceToken);else if(to(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{let i=zs(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||o?t.items.push({start:s,key:null,sep:[this.sourceToken]}):to(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let i=this.flowScalar(this.type);o||r.value?(t.items.push({start:s,key:i,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(i):(Object.assign(r,{key:i,sep:[]}),this.onKeyLine=!0);return}default:{let i=this.startBlockValue(t);if(i){if(i.type==="block-seq"){if(!r.explicitKey&&r.sep&&!to(r.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else n&&t.items.push({start:s});this.stack.push(i);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){let r=t.items[t.items.length-1];switch(this.type){case"newline":if(r.value){let n="end"in r.value?r.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,t.indent)){let o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){dp(o,r.start),o.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=t.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;r.value||to(r.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>t.indent){let n=this.startBlockValue(t);if(n){this.stack.push(n);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){let r=t.items[t.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n?.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?t.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let o=this.flowScalar(this.type);!r||r.value?t.items.push({start:[],key:o,sep:[]}):r.sep?this.stack.push(o):Object.assign(r,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}let n=this.startBlockValue(t);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===t.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){let o=pp(n),s=zs(o);QP(t);let i=t.end.splice(1,t.end.length);i.push(this.sourceToken);let a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:s,key:t,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let r=this.source.indexOf(`
166
+ `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
167
+ `,r)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let r=pp(t),n=zs(r);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let r=pp(t),n=zs(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,r){return this.type!=="comment"||this.indent<=r?!1:t.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};e$.Parser=gw});var s$=v(Ja=>{"use strict";var t$=nw(),O5=Ua(),Ya=Ha(),N5=ty(),M5=ke(),D5=hw(),r$=yw();function n$(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new D5.LineCounter||null,prettyErrors:t}}function L5(e,t={}){let{lineCounter:r,prettyErrors:n}=n$(t),o=new r$.Parser(r?.addNewLine),s=new t$.Composer(t),i=Array.from(s.compose(o.parse(e)));if(n&&r)for(let a of i)a.errors.forEach(Ya.prettifyError(e,r)),a.warnings.forEach(Ya.prettifyError(e,r));return i.length>0?i:Object.assign([],{empty:!0},s.streamInfo())}function o$(e,t={}){let{lineCounter:r,prettyErrors:n}=n$(t),o=new r$.Parser(r?.addNewLine),s=new t$.Composer(t),i=null;for(let a of s.compose(o.parse(e),!0,e.length))if(!i)i=a;else if(i.options.logLevel!=="silent"){i.errors.push(new Ya.YAMLParseError(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&r&&(i.errors.forEach(Ya.prettifyError(e,r)),i.warnings.forEach(Ya.prettifyError(e,r))),i}function F5(e,t,r){let n;typeof t=="function"?n=t:r===void 0&&t&&typeof t=="object"&&(r=t);let o=o$(e,r);if(!o)return null;if(o.warnings.forEach(s=>N5.warn(o.options.logLevel,s)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:n},r))}function q5(e,t,r){let n=null;if(typeof t=="function"||Array.isArray(t)?n=t:r===void 0&&t&&(r=t),typeof r=="string"&&(r=r.length),typeof r=="number"){let o=Math.round(r);r=o<1?void 0:o>8?{indent:8}:{indent:o}}if(e===void 0){let{keepUndefined:o}=r??t??{};if(!o)return}return M5.isDocument(e)&&!n?e.toString(r):new O5.Document(e,n,r).toString(r)}Ja.parse=F5;Ja.parseAllDocuments=L5;Ja.parseDocument=o$;Ja.stringify=q5});var vw=v(Me=>{"use strict";var j5=nw(),U5=Ua(),B5=Ly(),ww=Ha(),G5=ka(),ro=ke(),H5=Xn(),K5=yt(),z5=Zn(),W5=eo(),V5=lp(),Y5=fw(),J5=hw(),X5=yw(),fp=s$(),i$=ba();Me.Composer=j5.Composer;Me.Document=U5.Document;Me.Schema=B5.Schema;Me.YAMLError=ww.YAMLError;Me.YAMLParseError=ww.YAMLParseError;Me.YAMLWarning=ww.YAMLWarning;Me.Alias=G5.Alias;Me.isAlias=ro.isAlias;Me.isCollection=ro.isCollection;Me.isDocument=ro.isDocument;Me.isMap=ro.isMap;Me.isNode=ro.isNode;Me.isPair=ro.isPair;Me.isScalar=ro.isScalar;Me.isSeq=ro.isSeq;Me.Pair=H5.Pair;Me.Scalar=K5.Scalar;Me.YAMLMap=z5.YAMLMap;Me.YAMLSeq=W5.YAMLSeq;Me.CST=V5;Me.Lexer=Y5.Lexer;Me.LineCounter=J5.LineCounter;Me.Parser=X5.Parser;Me.parse=fp.parse;Me.parseAllDocuments=fp.parseAllDocuments;Me.parseDocument=fp.parseDocument;Me.stringify=fp.stringify;Me.visit=i$.visit;Me.visitAsync=i$.visitAsync});var Q5,Z5,sde,xw=b(()=>{"use strict";Q5=mn(vw(),1);Oo();Z5=["once","session","forever","banned"],sde=["prompt",...Z5]});var bw=b(()=>{"use strict"});var _w=b(()=>{"use strict";Oo()});var c$,l$=b(()=>{"use strict";c$=mn(vw(),1);Oo();xw();bw();_w()});var u$=b(()=>{"use strict";Fg()});var p$=b(()=>{"use strict"});var d$=b(()=>{"use strict"});var f$=b(()=>{"use strict"});var m$=b(()=>{"use strict";p$();d$();f$()});var Xa=b(()=>{"use strict";Cg();ZI();Pg();$g();eA();mA();hA();gA();yA();Og();Fg();l$();xw();bw();_w();u$();Lg();m$();Oo()});var Sw=b(()=>{"use strict";Xa();Ag();});var Qa=b(()=>{"use strict";});var bfe,_fe,ln=b(()=>{"use strict";li();$o();U();Qa();$o();bfe=`
168
+ ${Q.yellow.bold("\u26A0\uFE0F WILDCARD PERMISSION WARNING")}
169
+ ${Q.yellow("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501")}
40
170
 
41
- ${xt.default.yellow("You are granting access to a WILDCARD pattern.")}
42
- ${xt.default.yellow("This includes ALL tools/files matching this pattern, including")}
43
- ${xt.default.yellow("any that may be added in the future.")}
171
+ ${Q.yellow("You are granting access to a WILDCARD pattern.")}
172
+ ${Q.yellow("This includes ALL tools/files matching this pattern, including")}
173
+ ${Q.yellow("any that may be added in the future.")}
44
174
 
45
- ${xt.default.dim("For better security, consider granting permissions to specific items:")}
46
- ${xt.default.dim(" \u2022 mcp__server__specific-tool instead of mcp__server__*")}
47
- ${xt.default.dim(" \u2022 /specific/path/file.txt instead of /path/*")}
48
- ${xt.default.dim(" \u2022 specific-command instead of *")}
49
- `,lle={danger:`
50
- ${xt.default.red.bold("\u26A0\uFE0F EXECUTABLE FILE WARNING")}
51
- ${xt.default.red("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501")}
175
+ ${Q.dim("For better security, consider granting permissions to specific items:")}
176
+ ${Q.dim(" \u2022 mcp__server__specific-tool instead of mcp__server__*")}
177
+ ${Q.dim(" \u2022 /specific/path/file.txt instead of /path/*")}
178
+ ${Q.dim(" \u2022 specific-command instead of *")}
179
+ `,_fe={danger:`
180
+ ${Q.red.bold("\u26A0\uFE0F EXECUTABLE FILE WARNING")}
181
+ ${Q.red("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501")}
52
182
 
53
- ${xt.default.red("The agent is creating an EXECUTABLE file.")}
54
- ${xt.default.red("This file type can be executed and may run arbitrary code.")}
183
+ ${Q.red("The agent is creating an EXECUTABLE file.")}
184
+ ${Q.red("This file type can be executed and may run arbitrary code.")}
55
185
 
56
- ${xt.default.dim("Security considerations:")}
57
- ${xt.default.dim(" \u2022 Review the file contents carefully before executing")}
58
- ${xt.default.dim(" \u2022 Ensure the file source is trusted")}
59
- ${xt.default.dim(" \u2022 Consider if this file type is necessary for the task")}
186
+ ${Q.dim("Security considerations:")}
187
+ ${Q.dim(" \u2022 Review the file contents carefully before executing")}
188
+ ${Q.dim(" \u2022 Ensure the file source is trusted")}
189
+ ${Q.dim(" \u2022 Consider if this file type is necessary for the task")}
60
190
  `,warning:`
61
- ${xt.default.yellow.bold("\u26A0\uFE0F POTENTIALLY DANGEROUS FILE")}
62
- ${xt.default.yellow("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501")}
191
+ ${Q.yellow.bold("\u26A0\uFE0F POTENTIALLY DANGEROUS FILE")}
192
+ ${Q.yellow("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501")}
63
193
 
64
- ${xt.default.yellow("The agent is creating a file type that could pose security risks.")}
65
- ${xt.default.yellow("Please review the contents carefully before opening or executing.")}
66
- `}});var nv=S(()=>{"use strict";});var nC=S(()=>{"use strict";nv();});import{exec as o9,spawn as _le}from"node:child_process";import{promisify as s9}from"node:util";var i9,Ile,Mle,lp=S(()=>{"use strict";i9=kr(To(),1);Wn();ct();cr();Sr();nv();nC();Ile=new pt,Mle=s9(o9)});var Sc=S(()=>{"use strict";});var oC=S(()=>{"use strict";Sc();G();});import{exec as a9}from"node:child_process";import{promisify as c9}from"node:util";var Hle,aC=S(()=>{"use strict";Sc();G();Hle=c9(a9)});var Ec=S(()=>{"use strict";Sc();oC();aC();});var P9,rue,sv=S(()=>{"use strict";P9=kr(To(),1);Wn();ct();cr();Sr();Ec();fs();rue=new pt});var cC=S(()=>{"use strict";});var Bt,Kn=S(()=>{"use strict";Bt=class{validateApiKeys(t){if(!this.requiresApiKey)return{valid:!0,missing:[]};let r=this.apiKeyFields.filter(n=>!t[n]);return{valid:r.length===0,missing:r}}cleanText(t){return t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/\s+/g," ").trim()}}});var iv,lC,$n,av=S(()=>{"use strict";G();iv=class{providers=new Map;register(t){this.providers.has(t.id)&&U("SEARCH",`Provider ${t.id} already registered, overwriting`),this.providers.set(t.id,t),C("SEARCH",`Registered provider: ${t.id}`)}get(t){return this.providers.get(t)}has(t){return this.providers.has(t)}getRegisteredIds(){return Array.from(this.providers.keys())}getAll(){return Array.from(this.providers.values())}clear(){this.providers.clear()}},lC=new iv,$n=lC});var wi,uC=S(()=>{"use strict";gn();Kn();G();wi=class extends Bt{id="duckduckgo";name="DuckDuckGo";requiresApiKey=!1;apiKeyFields=[];async search(t,r,n){let o=n?.maxResults||10,s=n?.timeout||1e4;C("SEARCH",`DuckDuckGo searching for: ${t}`);try{let i=await this.performHtmlSearch(t,o,s);return i.length>0?(C("SEARCH",`DuckDuckGo found ${i.length} results`),i):(C("SEARCH","DuckDuckGo HTML search returned no results, trying API"),await this.performApiSearch(t,o,s))}catch(i){U("SEARCH",`DuckDuckGo search failed: ${i.message}`);try{return await this.performApiSearch(t,o,s)}catch(a){throw U("SEARCH",`DuckDuckGo fallback also failed: ${a.message}`),new Error(`DuckDuckGo search failed: ${i.message}`)}}}async performHtmlSearch(t,r,n){let o=await ut.get("https://html.duckduckgo.com/html/",{params:{q:t},headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"},timeout:n});return this.parseHtmlResults(o.data,r)}parseHtmlResults(t,r){let n=[],o=/<a[^>]+class="result__a"[^>]+href="([^"]+)"[^>]*>([^<]+)<\/a>/g,s=/<a[^>]+class="result__snippet"[^>]*>([^<]+)<\/a>/g,i=[],a=[],c=[],l;for(;(l=o.exec(t))!==null;)i.push(l[1]),a.push(l[2]);for(;(l=s.exec(t))!==null;)c.push(l[1]);let u=Math.min(i.length,r);for(let p=0;p<u;p++)i[p]&&a[p]&&n.push({title:this.cleanText(a[p]),url:i[p],snippet:c[p]?this.cleanText(c[p]):"",source:"duckduckgo"});return n}async performApiSearch(t,r,n){let s=(await ut.get("https://api.duckduckgo.com/",{params:{q:t,format:"json",no_html:1,skip_disambig:1},timeout:n})).data,i=[];if(s.Abstract&&i.push({title:s.Heading||"Summary",url:s.AbstractURL||"",snippet:s.Abstract,source:"duckduckgo"}),s.RelatedTopics){let a=r-i.length;s.RelatedTopics.slice(0,a).forEach(c=>{c.Text&&c.FirstURL&&i.push({title:c.Text.split(" - ")[0]||"Related Topic",url:c.FirstURL,snippet:c.Text,source:"duckduckgo"})})}return i}}});var xi,pC=S(()=>{"use strict";gn();Kn();G();xi=class extends Bt{id="google";name="Google Search";requiresApiKey=!0;apiKeyFields=["GOOGLE_SEARCH_API_KEY","GOOGLE_SEARCH_ENGINE_ID"];baseUrl="https://www.googleapis.com/customsearch/v1";async search(t,r,n){let o=this.validateApiKeys(r);if(!o.valid)throw new Error(`Missing required API keys: ${o.missing.join(", ")}`);let s=Math.min(n?.maxResults||10,10),i=n?.timeout||1e4;C("SEARCH",`Google searching for: ${t}`);try{let a=await ut.get(this.baseUrl,{params:{key:r.GOOGLE_SEARCH_API_KEY,cx:r.GOOGLE_SEARCH_ENGINE_ID,q:t,num:s},timeout:i}),c=this.parseResults(a.data);return C("SEARCH",`Google found ${c.length} results`),c}catch(a){throw a.response?.status===403?new Error("Google API quota exceeded or invalid API key"):a.response?.status===400?new Error("Google API: Invalid request or search engine ID"):(U("SEARCH",`Google search failed: ${a.message}`),new Error(`Google search failed: ${a.message}`))}}parseResults(t){return!t.items||!Array.isArray(t.items)?[]:t.items.map(r=>({title:this.cleanText(r.title||""),url:r.link||"",snippet:this.cleanText(r.snippet||""),source:"google"}))}}});var bi,dC=S(()=>{"use strict";gn();Kn();G();bi=class extends Bt{id="bing";name="Bing Search";requiresApiKey=!0;apiKeyFields=["BING_SEARCH_API_KEY"];baseUrl="https://api.bing.microsoft.com/v7.0/search";async search(t,r,n){let o=this.validateApiKeys(r);if(!o.valid)throw new Error(`Missing required API keys: ${o.missing.join(", ")}`);let s=Math.min(n?.maxResults||10,50),i=n?.timeout||1e4;C("SEARCH",`Bing searching for: ${t}`);try{let a=await ut.get(this.baseUrl,{params:{q:t,count:s,responseFilter:"Webpages"},headers:{"Ocp-Apim-Subscription-Key":r.BING_SEARCH_API_KEY},timeout:i}),c=this.parseResults(a.data);return C("SEARCH",`Bing found ${c.length} results`),c}catch(a){throw a.response?.status===401?new Error("Bing API: Invalid or expired API key"):a.response?.status===403?new Error("Bing API: Quota exceeded or subscription inactive"):(U("SEARCH",`Bing search failed: ${a.message}`),new Error(`Bing search failed: ${a.message}`))}}parseResults(t){return!t.webPages?.value||!Array.isArray(t.webPages.value)?[]:t.webPages.value.map(r=>({title:this.cleanText(r.name||""),url:r.url||"",snippet:this.cleanText(r.snippet||""),source:"bing"}))}}});var _i,fC=S(()=>{"use strict";gn();Kn();G();_i=class extends Bt{id="brave";name="Brave Search";requiresApiKey=!0;apiKeyFields=["BRAVE_SEARCH_API_KEY"];baseUrl="https://api.search.brave.com/res/v1/web/search";async search(t,r,n){let o=this.validateApiKeys(r);if(!o.valid)throw new Error(`Missing required API keys: ${o.missing.join(", ")}`);let s=Math.min(n?.maxResults||10,20),i=n?.timeout||1e4;C("SEARCH",`Brave searching for: ${t}`);try{let a=await ut.get(this.baseUrl,{params:{q:t,count:s},headers:{Accept:"application/json","Accept-Encoding":"gzip","X-Subscription-Token":r.BRAVE_SEARCH_API_KEY},timeout:i}),c=this.parseResults(a.data);return C("SEARCH",`Brave found ${c.length} results`),c}catch(a){throw a.response?.status===401?new Error("Brave API: Invalid API key"):a.response?.status===429?new Error("Brave API: Rate limit exceeded"):(U("SEARCH",`Brave search failed: ${a.message}`),new Error(`Brave search failed: ${a.message}`))}}parseResults(t){return!t.web?.results||!Array.isArray(t.web.results)?[]:t.web.results.map(r=>({title:this.cleanText(r.title||""),url:r.url||"",snippet:this.cleanText(r.description||""),source:"brave"}))}}});var Si,mC=S(()=>{"use strict";gn();Kn();G();Si=class extends Bt{id="serpapi";name="SerpAPI";requiresApiKey=!0;apiKeyFields=["SERPAPI_API_KEY"];baseUrl="https://serpapi.com/search";async search(t,r,n){let o=this.validateApiKeys(r);if(!o.valid)throw new Error(`Missing required API keys: ${o.missing.join(", ")}`);let s=Math.min(n?.maxResults||10,100),i=n?.timeout||15e3;C("SEARCH",`SerpAPI searching for: ${t}`);try{let a=await ut.get(this.baseUrl,{params:{q:t,api_key:r.SERPAPI_API_KEY,engine:"google",num:s},timeout:i}),c=this.parseResults(a.data);return C("SEARCH",`SerpAPI found ${c.length} results`),c}catch(a){throw a.response?.status===401?new Error("SerpAPI: Invalid API key"):a.response?.status===429?new Error("SerpAPI: Monthly limit exceeded"):(U("SEARCH",`SerpAPI search failed: ${a.message}`),new Error(`SerpAPI search failed: ${a.message}`))}}parseResults(t){return!t.organic_results||!Array.isArray(t.organic_results)?[]:t.organic_results.map(r=>({title:this.cleanText(r.title||""),url:r.link||"",snippet:this.cleanText(r.snippet||""),source:"serpapi"}))}}});var Ei,hC=S(()=>{"use strict";gn();Kn();G();Ei=class extends Bt{id="serper";name="Serper";requiresApiKey=!0;apiKeyFields=["SERPER_API_KEY"];baseUrl="https://google.serper.dev/search";async search(t,r,n){let o=this.validateApiKeys(r);if(!o.valid)throw new Error(`Missing required API keys: ${o.missing.join(", ")}`);let s=Math.min(n?.maxResults||10,100),i=n?.timeout||1e4;C("SEARCH",`Serper searching for: ${t}`);try{let a=await ut.post(this.baseUrl,{q:t,num:s},{headers:{"X-API-KEY":r.SERPER_API_KEY,"Content-Type":"application/json"},timeout:i}),c=this.parseResults(a.data);return C("SEARCH",`Serper found ${c.length} results`),c}catch(a){throw a.response?.status===401?new Error("Serper: Invalid API key"):a.response?.status===429?new Error("Serper: Rate limit exceeded"):(U("SEARCH",`Serper search failed: ${a.message}`),new Error(`Serper search failed: ${a.message}`))}}parseResults(t){return!t.organic||!Array.isArray(t.organic)?[]:t.organic.map(r=>({title:this.cleanText(r.title||""),url:r.link||"",snippet:this.cleanText(r.snippet||""),source:"serper"}))}}});var Ti,gC=S(()=>{"use strict";gn();Kn();G();Ti=class extends Bt{id="reddit";name="Reddit";requiresApiKey=!0;apiKeyFields=["REDDIT_CLIENT_ID","REDDIT_CLIENT_SECRET"];authUrl="https://www.reddit.com/api/v1/access_token";searchUrl="https://oauth.reddit.com/search";accessToken=null;tokenExpiry=0;async search(t,r,n){let o=this.validateApiKeys(r);if(!o.valid)throw new Error(`Missing required API keys: ${o.missing.join(", ")}`);let s=Math.min(n?.maxResults||10,100),i=n?.timeout||1e4;C("SEARCH",`Reddit searching for: ${t}`);try{let a=await this.getAccessToken(r),c=await ut.get(this.searchUrl,{params:{q:t,limit:s,sort:"relevance",type:"link"},headers:{Authorization:`Bearer ${a}`,"User-Agent":"FlowDot-CLI/1.0"},timeout:i}),l=this.parseResults(c.data);return C("SEARCH",`Reddit found ${l.length} results`),l}catch(a){throw a.response?.status===401?(this.accessToken=null,this.tokenExpiry=0,new Error("Reddit: Authentication failed, please check credentials")):a.response?.status===429?new Error("Reddit: Rate limit exceeded"):(U("SEARCH",`Reddit search failed: ${a.message}`),new Error(`Reddit search failed: ${a.message}`))}}async getAccessToken(t){if(this.accessToken&&Date.now()<this.tokenExpiry)return this.accessToken;try{let r=await ut.post(this.authUrl,"grant_type=client_credentials",{auth:{username:t.REDDIT_CLIENT_ID,password:t.REDDIT_CLIENT_SECRET},headers:{"Content-Type":"application/x-www-form-urlencoded","User-Agent":"FlowDot-CLI/1.0"},timeout:1e4});if(!r.data.access_token)throw new Error("No access token in response");return this.accessToken=r.data.access_token,this.tokenExpiry=Date.now()+r.data.expires_in*1e3-300*1e3,this.accessToken}catch(r){throw new Error(`Reddit authentication failed: ${r.message}`)}}parseResults(t){return!t.data?.children||!Array.isArray(t.data.children)?[]:t.data.children.map(r=>{let n=r.data;return{title:this.cleanText(n.title||""),url:`https://www.reddit.com${n.permalink}`,snippet:this.cleanText(n.selftext?.substring(0,200)||`r/${n.subreddit} \u2022 ${n.score} points \u2022 ${n.num_comments} comments`),source:"reddit"}})}}});var cv=S(()=>{"use strict";uC();pC();dC();fC();mC();hC();gC();});function C9(){$n.register(new wi),$n.register(new xi),$n.register(new bi),$n.register(new _i),$n.register(new Si),$n.register(new Ei),$n.register(new Ti),C("SEARCH",`Initialized ${$n.getRegisteredIds().length} search providers`)}var yC=S(()=>{"use strict";Kn();av();cv();av();cv();G();C9()});var epe,lv=S(()=>{"use strict";ct();G();epe=300*1e3});var Tc=S(()=>{"use strict";});var hpe,ms=S(()=>{"use strict";ct();cr();cC();yC();lv();G();Sr();Tc();hpe=new pt});var fp=S(()=>{"use strict";});import{exec as D9}from"node:child_process";import{promisify as L9}from"node:util";var j9,Ipe,fs=S(()=>{"use strict";j9=kr(To(),1);lp();sv();ms();Wn();fp();_c();Ipe=L9(D9)});var hs=S(()=>{"use strict";G();Tc();});var gs=S(()=>{"use strict";G();Tc();});import jpe from"keytar";var Gpe,kC=S(()=>{"use strict";cr();G();hs();gs();Gpe=new pt});var mp=S(()=>{"use strict";fs();hs();gs();kC();G();Tc();});var IC=w((hp,RC)=>{(function(e,t){typeof hp=="object"&&typeof RC<"u"?t(hp):typeof define=="function"&&define.amd?define(["exports"],t):(e=e||self,t(e.exprEval={}))})(hp,function(e){"use strict";var t="INUMBER",r="IOP1",n="IOP2",o="IOP3",s="IVAR",i="IVARNAME",a="IFUNCALL",c="IFUNDEF",l="IEXPR",u="IEXPREVAL",p="IMEMBER",m="IENDSTATEMENT",h="IARRAY";function f(d,y){this.type=d,this.value=y??0}f.prototype.toString=function(){switch(this.type){case t:case r:case n:case o:case s:case i:case m:return this.value;case a:return"CALL "+this.value;case c:return"DEF "+this.value;case h:return"ARRAY "+this.value;case p:return"."+this.value;default:return"Invalid Instruction"}};function g(d){return new f(r,d)}function v(d){return new f(n,d)}function x(d){return new f(o,d)}function I(d,y,_,T,O){for(var V=[],q=[],ae,Ce,dt,tt,kt=0;kt<d.length;kt++){var oe=d[kt],yt=oe.type;if(yt===t||yt===i)Array.isArray(oe.value)?V.push.apply(V,I(oe.value.map(function(Mc){return new f(t,Mc)}).concat(new f(h,oe.value.length)),y,_,T,O)):V.push(oe);else if(yt===s&&O.hasOwnProperty(oe.value))oe=new f(t,O[oe.value]),V.push(oe);else if(yt===n&&V.length>1)Ce=V.pop(),ae=V.pop(),tt=_[oe.value],oe=new f(t,tt(ae.value,Ce.value)),V.push(oe);else if(yt===o&&V.length>2)dt=V.pop(),Ce=V.pop(),ae=V.pop(),oe.value==="?"?V.push(ae.value?Ce.value:dt.value):(tt=T[oe.value],oe=new f(t,tt(ae.value,Ce.value,dt.value)),V.push(oe));else if(yt===r&&V.length>0)ae=V.pop(),tt=y[oe.value],oe=new f(t,tt(ae.value)),V.push(oe);else if(yt===l){for(;V.length>0;)q.push(V.shift());q.push(new f(l,I(oe.value,y,_,T,O)))}else if(yt===p&&V.length>0)ae=V.pop(),V.push(new f(t,ae.value[oe.value]));else{for(;V.length>0;)q.push(V.shift());q.push(oe)}}for(;V.length>0;)q.push(V.shift());return q}function k(d,y,_){for(var T=[],O=0;O<d.length;O++){var V=d[O],q=V.type;if(q===s&&V.value===y)for(var ae=0;ae<_.tokens.length;ae++){var Ce=_.tokens[ae],dt;Ce.type===r?dt=g(Ce.value):Ce.type===n?dt=v(Ce.value):Ce.type===o?dt=x(Ce.value):dt=new f(Ce.type,Ce.value),T.push(dt)}else q===l?T.push(new f(l,k(V.value,y,_))):T.push(V)}return T}function P(d,y,_){var T=[],O,V,q,ae,Ce,dt;if(A(d))return L(d,_);for(var tt=d.length,kt=0;kt<tt;kt++){var oe=d[kt],yt=oe.type;if(yt===t||yt===i)T.push(oe.value);else if(yt===n)V=T.pop(),O=T.pop(),oe.value==="and"?T.push(O?!!P(V,y,_):!1):oe.value==="or"?T.push(O?!0:!!P(V,y,_)):oe.value==="="?(ae=y.binaryOps[oe.value],T.push(ae(O,P(V,y,_),_))):(ae=y.binaryOps[oe.value],T.push(ae(L(O,_),L(V,_))));else if(yt===o)q=T.pop(),V=T.pop(),O=T.pop(),oe.value==="?"?T.push(P(O?V:q,y,_)):(ae=y.ternaryOps[oe.value],T.push(ae(L(O,_),L(V,_),L(q,_))));else if(yt===s)if(oe.value in y.functions)T.push(y.functions[oe.value]);else if(oe.value in y.unaryOps&&y.parser.isOperatorEnabled(oe.value))T.push(y.unaryOps[oe.value]);else{var Mc=_[oe.value];if(Mc!==void 0)T.push(Mc);else throw new Error("undefined variable: "+oe.value)}else if(yt===r)O=T.pop(),ae=y.unaryOps[oe.value],T.push(ae(L(O,_)));else if(yt===a){for(dt=oe.value,Ce=[];dt-- >0;)Ce.unshift(L(T.pop(),_));if(ae=T.pop(),ae.apply&&ae.call)T.push(ae.apply(void 0,Ce));else throw new Error(ae+" is not a function")}else if(yt===c)T.push((function(){for(var MO=T.pop(),Cp=[],DO=oe.value;DO-- >0;)Cp.unshift(T.pop());var Yv=T.pop(),$p=function(){for(var Jv=Object.assign({},_),Dc=0,LO=Cp.length;Dc<LO;Dc++)Jv[Cp[Dc]]=arguments[Dc];return P(MO,y,Jv)};return Object.defineProperty($p,"name",{value:Yv,writable:!1}),_[Yv]=$p,$p})());else if(yt===l)T.push(R(oe,y));else if(yt===u)T.push(oe);else if(yt===p)O=T.pop(),T.push(O[oe.value]);else if(yt===m)T.pop();else if(yt===h){for(dt=oe.value,Ce=[];dt-- >0;)Ce.unshift(T.pop());T.push(Ce)}else throw new Error("invalid Expression")}if(T.length>1)throw new Error("invalid Expression (parity)");return T[0]===0?0:L(T[0],_)}function R(d,y,_){return A(d)?d:{type:u,value:function(T){return P(d.value,y,T)}}}function A(d){return d&&d.type===u}function L(d,y){return A(d)?d.value(y):d}function Y(d,y){for(var _=[],T,O,V,q,ae,Ce,dt=0;dt<d.length;dt++){var tt=d[dt],kt=tt.type;if(kt===t)typeof tt.value=="number"&&tt.value<0?_.push("("+tt.value+")"):Array.isArray(tt.value)?_.push("["+tt.value.map(ue).join(", ")+"]"):_.push(ue(tt.value));else if(kt===n)O=_.pop(),T=_.pop(),q=tt.value,y?q==="^"?_.push("Math.pow("+T+", "+O+")"):q==="and"?_.push("(!!"+T+" && !!"+O+")"):q==="or"?_.push("(!!"+T+" || !!"+O+")"):q==="||"?_.push("(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }(("+T+"),("+O+")))"):q==="=="?_.push("("+T+" === "+O+")"):q==="!="?_.push("("+T+" !== "+O+")"):q==="["?_.push(T+"[("+O+") | 0]"):_.push("("+T+" "+q+" "+O+")"):q==="["?_.push(T+"["+O+"]"):_.push("("+T+" "+q+" "+O+")");else if(kt===o)if(V=_.pop(),O=_.pop(),T=_.pop(),q=tt.value,q==="?")_.push("("+T+" ? "+O+" : "+V+")");else throw new Error("invalid Expression");else if(kt===s||kt===i)_.push(tt.value);else if(kt===r)T=_.pop(),q=tt.value,q==="-"||q==="+"?_.push("("+q+T+")"):y?q==="not"?_.push("(!"+T+")"):q==="!"?_.push("fac("+T+")"):_.push(q+"("+T+")"):q==="!"?_.push("("+T+"!)"):_.push("("+q+" "+T+")");else if(kt===a){for(Ce=tt.value,ae=[];Ce-- >0;)ae.unshift(_.pop());q=_.pop(),_.push(q+"("+ae.join(", ")+")")}else if(kt===c){for(O=_.pop(),Ce=tt.value,ae=[];Ce-- >0;)ae.unshift(_.pop());T=_.pop(),y?_.push("("+T+" = function("+ae.join(", ")+") { return "+O+" })"):_.push("("+T+"("+ae.join(", ")+") = "+O+")")}else if(kt===p)T=_.pop(),_.push(T+"."+tt.value);else if(kt===h){for(Ce=tt.value,ae=[];Ce-- >0;)ae.unshift(_.pop());_.push("["+ae.join(", ")+"]")}else if(kt===l)_.push("("+Y(tt.value,y)+")");else if(kt!==m)throw new Error("invalid Expression")}return _.length>1&&(y?_=[_.join(",")]:_=[_.join(";")]),String(_[0])}function ue(d){return typeof d=="string"?JSON.stringify(d).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"):d}function Q(d,y){for(var _=0;_<d.length;_++)if(d[_]===y)return!0;return!1}function Ke(d,y,_){_=_||{};for(var T=!!_.withMembers,O=null,V=0;V<d.length;V++){var q=d[V];q.type===s||q.type===i?!T&&!Q(y,q.value)?y.push(q.value):(O!==null&&(Q(y,O)||y.push(O)),O=q.value):q.type===p&&T&&O!==null?O+="."+q.value:q.type===l?Ke(q.value,y,_):O!==null&&(Q(y,O)||y.push(O),O=null)}O!==null&&!Q(y,O)&&y.push(O)}function Se(d,y){this.tokens=d,this.parser=y,this.unaryOps=y.unaryOps,this.binaryOps=y.binaryOps,this.ternaryOps=y.ternaryOps,this.functions=y.functions}Se.prototype.simplify=function(d){return d=d||{},new Se(I(this.tokens,this.unaryOps,this.binaryOps,this.ternaryOps,d),this.parser)},Se.prototype.substitute=function(d,y){return y instanceof Se||(y=this.parser.parse(String(y))),new Se(k(this.tokens,d,y),this.parser)},Se.prototype.evaluate=function(d){return d=d||{},P(this.tokens,this,d)},Se.prototype.toString=function(){return Y(this.tokens,!1)},Se.prototype.symbols=function(d){d=d||{};var y=[];return Ke(this.tokens,y,d),y},Se.prototype.variables=function(d){d=d||{};var y=[];Ke(this.tokens,y,d);var _=this.functions;return y.filter(function(T){return!(T in _)})},Se.prototype.toJSFunction=function(d,y){var _=this,T=new Function(d,"with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return "+Y(this.simplify(y).tokens,!0)+"; }");return function(){return T.apply(_,arguments)}};var ve="TEOF",pe="TOP",At="TNUMBER",lt="TSTRING",ze="TPAREN",Ye="TBRACKET",Ct="TCOMMA",re="TNAME",K="TSEMICOLON";function Re(d,y,_){this.type=d,this.value=y,this.index=_}Re.prototype.toString=function(){return this.type+": "+this.value};function we(d,y){this.pos=0,this.current=null,this.unaryOps=d.unaryOps,this.binaryOps=d.binaryOps,this.ternaryOps=d.ternaryOps,this.consts=d.consts,this.expression=y,this.savedPosition=0,this.savedCurrent=null,this.options=d.options,this.parser=d}we.prototype.newToken=function(d,y,_){return new Re(d,y,_??this.pos)},we.prototype.save=function(){this.savedPosition=this.pos,this.savedCurrent=this.current},we.prototype.restore=function(){this.pos=this.savedPosition,this.current=this.savedCurrent},we.prototype.next=function(){if(this.pos>=this.expression.length)return this.newToken(ve,"EOF");if(this.isWhitespace()||this.isComment())return this.next();if(this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isBracket()||this.isComma()||this.isSemicolon()||this.isNamedOp()||this.isConst()||this.isName())return this.current;this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')},we.prototype.isString=function(){var d=!1,y=this.pos,_=this.expression.charAt(y);if(_==="'"||_==='"')for(var T=this.expression.indexOf(_,y+1);T>=0&&this.pos<this.expression.length;){if(this.pos=T+1,this.expression.charAt(T-1)!=="\\"){var O=this.expression.substring(y+1,T);this.current=this.newToken(lt,this.unescape(O),y),d=!0;break}T=this.expression.indexOf(_,T+1)}return d},we.prototype.isParen=function(){var d=this.expression.charAt(this.pos);return d==="("||d===")"?(this.current=this.newToken(ze,d),this.pos++,!0):!1},we.prototype.isBracket=function(){var d=this.expression.charAt(this.pos);return(d==="["||d==="]")&&this.isOperatorEnabled("[")?(this.current=this.newToken(Ye,d),this.pos++,!0):!1},we.prototype.isComma=function(){var d=this.expression.charAt(this.pos);return d===","?(this.current=this.newToken(Ct,","),this.pos++,!0):!1},we.prototype.isSemicolon=function(){var d=this.expression.charAt(this.pos);return d===";"?(this.current=this.newToken(K,";"),this.pos++,!0):!1},we.prototype.isConst=function(){for(var d=this.pos,y=d;y<this.expression.length;y++){var _=this.expression.charAt(y);if(_.toUpperCase()===_.toLowerCase()&&(y===this.pos||_!=="_"&&_!=="."&&(_<"0"||_>"9")))break}if(y>d){var T=this.expression.substring(d,y);if(T in this.consts)return this.current=this.newToken(At,this.consts[T]),this.pos+=T.length,!0}return!1},we.prototype.isNamedOp=function(){for(var d=this.pos,y=d;y<this.expression.length;y++){var _=this.expression.charAt(y);if(_.toUpperCase()===_.toLowerCase()&&(y===this.pos||_!=="_"&&(_<"0"||_>"9")))break}if(y>d){var T=this.expression.substring(d,y);if(this.isOperatorEnabled(T)&&(T in this.binaryOps||T in this.unaryOps||T in this.ternaryOps))return this.current=this.newToken(pe,T),this.pos+=T.length,!0}return!1},we.prototype.isName=function(){for(var d=this.pos,y=d,_=!1;y<this.expression.length;y++){var T=this.expression.charAt(y);if(T.toUpperCase()===T.toLowerCase()){if(y===this.pos&&(T==="$"||T==="_")){T==="_"&&(_=!0);continue}else if(y===this.pos||!_||T!=="_"&&(T<"0"||T>"9"))break}else _=!0}if(_){var O=this.expression.substring(d,y);return this.current=this.newToken(re,O),this.pos+=O.length,!0}return!1},we.prototype.isWhitespace=function(){for(var d=!1,y=this.expression.charAt(this.pos);(y===" "||y===" "||y===`
67
- `||y==="\r")&&(d=!0,this.pos++,!(this.pos>=this.expression.length));)y=this.expression.charAt(this.pos);return d};var Ze=/^[0-9a-f]{4}$/i;we.prototype.unescape=function(d){var y=d.indexOf("\\");if(y<0)return d;for(var _=d.substring(0,y);y>=0;){var T=d.charAt(++y);switch(T){case"'":_+="'";break;case'"':_+='"';break;case"\\":_+="\\";break;case"/":_+="/";break;case"b":_+="\b";break;case"f":_+="\f";break;case"n":_+=`
68
- `;break;case"r":_+="\r";break;case"t":_+=" ";break;case"u":var O=d.substring(y+1,y+5);Ze.test(O)||this.parseError("Illegal escape sequence: \\u"+O),_+=String.fromCharCode(parseInt(O,16)),y+=4;break;default:throw this.parseError('Illegal escape sequence: "\\'+T+'"')}++y;var V=d.indexOf("\\",y);_+=d.substring(y,V<0?d.length:V),y=V}return _},we.prototype.isComment=function(){var d=this.expression.charAt(this.pos);return d==="/"&&this.expression.charAt(this.pos+1)==="*"?(this.pos=this.expression.indexOf("*/",this.pos)+2,this.pos===1&&(this.pos=this.expression.length),!0):!1},we.prototype.isRadixInteger=function(){var d=this.pos;if(d>=this.expression.length-2||this.expression.charAt(d)!=="0")return!1;++d;var y,_;if(this.expression.charAt(d)==="x")y=16,_=/^[0-9a-f]$/i,++d;else if(this.expression.charAt(d)==="b")y=2,_=/^[01]$/i,++d;else return!1;for(var T=!1,O=d;d<this.expression.length;){var V=this.expression.charAt(d);if(_.test(V))d++,T=!0;else break}return T&&(this.current=this.newToken(At,parseInt(this.expression.substring(O,d),y)),this.pos=d),T},we.prototype.isNumber=function(){for(var d=!1,y=this.pos,_=y,T=y,O=!1,V=!1,q;y<this.expression.length&&(q=this.expression.charAt(y),q>="0"&&q<="9"||!O&&q===".");)q==="."?O=!0:V=!0,y++,d=V;if(d&&(T=y),q==="e"||q==="E"){y++;for(var ae=!0,Ce=!1;y<this.expression.length;){if(q=this.expression.charAt(y),ae&&(q==="+"||q==="-"))ae=!1;else if(q>="0"&&q<="9")Ce=!0,ae=!1;else break;y++}Ce||(y=T)}return d?(this.current=this.newToken(At,parseFloat(this.expression.substring(_,y))),this.pos=y):this.pos=T,d},we.prototype.isOperator=function(){var d=this.pos,y=this.expression.charAt(this.pos);if(y==="+"||y==="-"||y==="*"||y==="/"||y==="%"||y==="^"||y==="?"||y===":"||y===".")this.current=this.newToken(pe,y);else if(y==="\u2219"||y==="\u2022")this.current=this.newToken(pe,"*");else if(y===">")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(pe,">="),this.pos++):this.current=this.newToken(pe,">");else if(y==="<")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(pe,"<="),this.pos++):this.current=this.newToken(pe,"<");else if(y==="|")if(this.expression.charAt(this.pos+1)==="|")this.current=this.newToken(pe,"||"),this.pos++;else return!1;else if(y==="=")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(pe,"=="),this.pos++):this.current=this.newToken(pe,y);else if(y==="!")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(pe,"!="),this.pos++):this.current=this.newToken(pe,y);else return!1;return this.pos++,this.isOperatorEnabled(this.current.value)?!0:(this.pos=d,!1)},we.prototype.isOperatorEnabled=function(d){return this.parser.isOperatorEnabled(d)},we.prototype.getCoordinates=function(){var d=0,y,_=-1;do d++,y=this.pos-_,_=this.expression.indexOf(`
69
- `,_+1);while(_>=0&&_<this.pos);return{line:d,column:y}},we.prototype.parseError=function(d){var y=this.getCoordinates();throw new Error("parse error ["+y.line+":"+y.column+"]: "+d)};function xe(d,y,_){this.parser=d,this.tokens=y,this.current=null,this.nextToken=null,this.next(),this.savedCurrent=null,this.savedNextToken=null,this.allowMemberAccess=_.allowMemberAccess!==!1}xe.prototype.next=function(){return this.current=this.nextToken,this.nextToken=this.tokens.next()},xe.prototype.tokenMatches=function(d,y){return typeof y>"u"?!0:Array.isArray(y)?Q(y,d.value):typeof y=="function"?y(d):d.value===y},xe.prototype.save=function(){this.savedCurrent=this.current,this.savedNextToken=this.nextToken,this.tokens.save()},xe.prototype.restore=function(){this.tokens.restore(),this.current=this.savedCurrent,this.nextToken=this.savedNextToken},xe.prototype.accept=function(d,y){return this.nextToken.type===d&&this.tokenMatches(this.nextToken,y)?(this.next(),!0):!1},xe.prototype.expect=function(d,y){if(!this.accept(d,y)){var _=this.tokens.getCoordinates();throw new Error("parse error ["+_.line+":"+_.column+"]: Expected "+(y||d))}},xe.prototype.parseAtom=function(d){var y=this.tokens.unaryOps;function _(O){return O.value in y}if(this.accept(re)||this.accept(pe,_))d.push(new f(s,this.current.value));else if(this.accept(At))d.push(new f(t,this.current.value));else if(this.accept(lt))d.push(new f(t,this.current.value));else if(this.accept(ze,"("))this.parseExpression(d),this.expect(ze,")");else if(this.accept(Ye,"["))if(this.accept(Ye,"]"))d.push(new f(h,0));else{var T=this.parseArrayList(d);d.push(new f(h,T))}else throw new Error("unexpected "+this.nextToken)},xe.prototype.parseExpression=function(d){var y=[];this.parseUntilEndStatement(d,y)||(this.parseVariableAssignmentExpression(y),!this.parseUntilEndStatement(d,y)&&this.pushExpression(d,y))},xe.prototype.pushExpression=function(d,y){for(var _=0,T=y.length;_<T;_++)d.push(y[_])},xe.prototype.parseUntilEndStatement=function(d,y){return this.accept(K)?(this.nextToken&&this.nextToken.type!==ve&&!(this.nextToken.type===ze&&this.nextToken.value===")")&&y.push(new f(m)),this.nextToken.type!==ve&&this.parseExpression(y),d.push(new f(l,y)),!0):!1},xe.prototype.parseArrayList=function(d){for(var y=0;!this.accept(Ye,"]");)for(this.parseExpression(d),++y;this.accept(Ct);)this.parseExpression(d),++y;return y},xe.prototype.parseVariableAssignmentExpression=function(d){for(this.parseConditionalExpression(d);this.accept(pe,"=");){var y=d.pop(),_=[],T=d.length-1;if(y.type===a){if(!this.tokens.isOperatorEnabled("()="))throw new Error("function definition is not permitted");for(var O=0,V=y.value+1;O<V;O++){var q=T-O;d[q].type===s&&(d[q]=new f(i,d[q].value))}this.parseVariableAssignmentExpression(_),d.push(new f(l,_)),d.push(new f(c,y.value));continue}if(y.type!==s&&y.type!==p)throw new Error("expected variable for assignment");this.parseVariableAssignmentExpression(_),d.push(new f(i,y.value)),d.push(new f(l,_)),d.push(v("="))}},xe.prototype.parseConditionalExpression=function(d){for(this.parseOrExpression(d);this.accept(pe,"?");){var y=[],_=[];this.parseConditionalExpression(y),this.expect(pe,":"),this.parseConditionalExpression(_),d.push(new f(l,y)),d.push(new f(l,_)),d.push(x("?"))}},xe.prototype.parseOrExpression=function(d){for(this.parseAndExpression(d);this.accept(pe,"or");){var y=[];this.parseAndExpression(y),d.push(new f(l,y)),d.push(v("or"))}},xe.prototype.parseAndExpression=function(d){for(this.parseComparison(d);this.accept(pe,"and");){var y=[];this.parseComparison(y),d.push(new f(l,y)),d.push(v("and"))}};var Tr=["==","!=","<","<=",">=",">","in"];xe.prototype.parseComparison=function(d){for(this.parseAddSub(d);this.accept(pe,Tr);){var y=this.current;this.parseAddSub(d),d.push(v(y.value))}};var Et=["+","-","||"];xe.prototype.parseAddSub=function(d){for(this.parseTerm(d);this.accept(pe,Et);){var y=this.current;this.parseTerm(d),d.push(v(y.value))}};var Nn=["*","/","%"];xe.prototype.parseTerm=function(d){for(this.parseFactor(d);this.accept(pe,Nn);){var y=this.current;this.parseFactor(d),d.push(v(y.value))}},xe.prototype.parseFactor=function(d){var y=this.tokens.unaryOps;function _(O){return O.value in y}if(this.save(),this.accept(pe,_)){if(this.current.value!=="-"&&this.current.value!=="+"){if(this.nextToken.type===ze&&this.nextToken.value==="("){this.restore(),this.parseExponential(d);return}else if(this.nextToken.type===K||this.nextToken.type===Ct||this.nextToken.type===ve||this.nextToken.type===ze&&this.nextToken.value===")"){this.restore(),this.parseAtom(d);return}}var T=this.current;this.parseFactor(d),d.push(g(T.value))}else this.parseExponential(d)},xe.prototype.parseExponential=function(d){for(this.parsePostfixExpression(d);this.accept(pe,"^");)this.parseFactor(d),d.push(v("^"))},xe.prototype.parsePostfixExpression=function(d){for(this.parseFunctionCall(d);this.accept(pe,"!");)d.push(g("!"))},xe.prototype.parseFunctionCall=function(d){var y=this.tokens.unaryOps;function _(V){return V.value in y}if(this.accept(pe,_)){var T=this.current;this.parseAtom(d),d.push(g(T.value))}else for(this.parseMemberExpression(d);this.accept(ze,"(");)if(this.accept(ze,")"))d.push(new f(a,0));else{var O=this.parseArgumentList(d);d.push(new f(a,O))}},xe.prototype.parseArgumentList=function(d){for(var y=0;!this.accept(ze,")");)for(this.parseExpression(d),++y;this.accept(Ct);)this.parseExpression(d),++y;return y},xe.prototype.parseMemberExpression=function(d){for(this.parseAtom(d);this.accept(pe,".")||this.accept(Ye,"[");){var y=this.current;if(y.value==="."){if(!this.allowMemberAccess)throw new Error('unexpected ".", member access is not permitted');this.expect(re),d.push(new f(p,this.current.value))}else if(y.value==="["){if(!this.tokens.isOperatorEnabled("["))throw new Error('unexpected "[]", arrays are disabled');this.parseExpression(d),this.expect(Ye,"]"),d.push(v("["))}else throw new Error("unexpected symbol: "+y.value)}};function Mn(d,y){return Number(d)+Number(y)}function Tt(d,y){return d-y}function kp(d,y){return d*y}function Oc(d,y){return d/y}function Nc(d,y){return d%y}function fn(d,y){return Array.isArray(d)&&Array.isArray(y)?d.concat(y):""+d+y}function Rp(d,y){return d===y}function Ci(d,y){return d!==y}function N(d,y){return d>y}function H(d,y){return d<y}function j(d,y){return d>=y}function ce(d,y){return d<=y}function Mr(d,y){return!!(d&&y)}function Ip(d,y){return!!(d||y)}function oO(d,y){return Q(y,d)}function sO(d){return(Math.exp(d)-Math.exp(-d))/2}function iO(d){return(Math.exp(d)+Math.exp(-d))/2}function aO(d){return d===1/0?1:d===-1/0?-1:(Math.exp(d)-Math.exp(-d))/(Math.exp(d)+Math.exp(-d))}function cO(d){return d===-1/0?d:Math.log(d+Math.sqrt(d*d+1))}function lO(d){return Math.log(d+Math.sqrt(d*d-1))}function uO(d){return Math.log((1+d)/(1-d))/2}function Gv(d){return Math.log(d)*Math.LOG10E}function pO(d){return-d}function dO(d){return!d}function fO(d){return d<0?Math.ceil(d):Math.floor(d)}function mO(d){return Math.random()*(d||1)}function zv(d){return Ap(d+1)}function hO(d){return isFinite(d)&&d===Math.round(d)}var gO=4.7421875,Pp=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function Ap(d){var y,_;if(hO(d)){if(d<=0)return isFinite(d)?1/0:NaN;if(d>171)return 1/0;for(var T=d-2,O=d-1;T>1;)O*=T,T--;return O===0&&(O=1),O}if(d<.5)return Math.PI/(Math.sin(Math.PI*d)*Ap(1-d));if(d>=171.35)return 1/0;if(d>85){var V=d*d,q=V*d,ae=q*d,Ce=ae*d;return Math.sqrt(2*Math.PI/d)*Math.pow(d/Math.E,d)*(1+1/(12*d)+1/(288*V)-139/(51840*q)-571/(2488320*ae)+163879/(209018880*Ce)+5246819/(75246796800*Ce*d))}--d,_=Pp[0];for(var dt=1;dt<Pp.length;++dt)_+=Pp[dt]/(d+dt);return y=d+gO+.5,Math.sqrt(2*Math.PI)*Math.pow(y,d+.5)*Math.exp(-y)*_}function yO(d){return Array.isArray(d)?d.length:String(d).length}function Bv(){for(var d=0,y=0,_=0;_<arguments.length;_++){var T=Math.abs(arguments[_]),O;y<T?(O=y/T,d=d*O*O+1,y=T):T>0?(O=T/y,d+=O*O):d+=T}return y===1/0?1/0:y*Math.sqrt(d)}function Hv(d,y,_){return d?y:_}function vO(d,y){return typeof y>"u"||+y==0?Math.round(d):(d=+d,y=-+y,isNaN(d)||!(typeof y=="number"&&y%1===0)?NaN:(d=d.toString().split("e"),d=Math.round(+(d[0]+"e"+(d[1]?+d[1]-y:-y))),d=d.toString().split("e"),+(d[0]+"e"+(d[1]?+d[1]+y:y))))}function wO(d,y,_){return _&&(_[d]=y),y}function xO(d,y){return d[y|0]}function bO(d){return arguments.length===1&&Array.isArray(d)?Math.max.apply(Math,d):Math.max.apply(Math,arguments)}function _O(d){return arguments.length===1&&Array.isArray(d)?Math.min.apply(Math,d):Math.min.apply(Math,arguments)}function SO(d,y){if(typeof d!="function")throw new Error("First argument to map is not a function");if(!Array.isArray(y))throw new Error("Second argument to map is not an array");return y.map(function(_,T){return d(_,T)})}function EO(d,y,_){if(typeof d!="function")throw new Error("First argument to fold is not a function");if(!Array.isArray(_))throw new Error("Second argument to fold is not an array");return _.reduce(function(T,O,V){return d(T,O,V)},y)}function TO(d,y){if(typeof d!="function")throw new Error("First argument to filter is not a function");if(!Array.isArray(y))throw new Error("Second argument to filter is not an array");return y.filter(function(_,T){return d(_,T)})}function kO(d,y){if(!(Array.isArray(y)||typeof y=="string"))throw new Error("Second argument to indexOf is not a string or array");return y.indexOf(d)}function RO(d,y){if(!Array.isArray(y))throw new Error("Second argument to join is not an array");return y.join(d)}function IO(d){return(d>0)-(d<0)||+d}var Vv=1/3;function PO(d){return d<0?-Math.pow(-d,Vv):Math.pow(d,Vv)}function AO(d){return Math.exp(d)-1}function CO(d){return Math.log(1+d)}function $O(d){return Math.log(d)/Math.LN2}function Xn(d){this.options=d||{},this.unaryOps={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Math.sinh||sO,cosh:Math.cosh||iO,tanh:Math.tanh||aO,asinh:Math.asinh||cO,acosh:Math.acosh||lO,atanh:Math.atanh||uO,sqrt:Math.sqrt,cbrt:Math.cbrt||PO,log:Math.log,log2:Math.log2||$O,ln:Math.log,lg:Math.log10||Gv,log10:Math.log10||Gv,expm1:Math.expm1||AO,log1p:Math.log1p||CO,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:Math.trunc||fO,"-":pO,"+":Number,exp:Math.exp,not:dO,length:yO,"!":zv,sign:Math.sign||IO},this.binaryOps={"+":Mn,"-":Tt,"*":kp,"/":Oc,"%":Nc,"^":Math.pow,"||":fn,"==":Rp,"!=":Ci,">":N,"<":H,">=":j,"<=":ce,and:Mr,or:Ip,in:oO,"=":wO,"[":xO},this.ternaryOps={"?":Hv},this.functions={random:mO,fac:zv,min:_O,max:bO,hypot:Math.hypot||Bv,pyt:Math.hypot||Bv,pow:Math.pow,atan2:Math.atan2,if:Hv,gamma:Ap,roundTo:vO,map:SO,fold:EO,filter:TO,indexOf:kO,join:RO},this.consts={E:Math.E,PI:Math.PI,true:!0,false:!1}}Xn.prototype.parse=function(d){var y=[],_=new xe(this,new we(this,d),{allowMemberAccess:this.options.allowMemberAccess});return _.parseExpression(y),_.expect(ve,"EOF"),new Se(y,this)},Xn.prototype.evaluate=function(d,y){return this.parse(d).evaluate(y)};var Wv=new Xn;Xn.parse=function(d){return Wv.parse(d)},Xn.evaluate=function(d,y){return Wv.parse(d).evaluate(y)};var Kv={"+":"add","-":"subtract","*":"multiply","/":"divide","%":"remainder","^":"power","!":"factorial","<":"comparison",">":"comparison","<=":"comparison",">=":"comparison","==":"comparison","!=":"comparison","||":"concatenate",and:"logical",or:"logical",not:"logical","?":"conditional",":":"conditional","=":"assignment","[":"array","()=":"fndef"};function OO(d){return Kv.hasOwnProperty(d)?Kv[d]:d}Xn.prototype.isOperatorEnabled=function(d){var y=OO(d),_=this.options.operators||{};return!(y in _)||!!_[y]};var NO={Parser:Xn,Expression:Se};e.Expression=Se,e.Parser=Xn,e.default=NO,Object.defineProperty(e,"__esModule",{value:!0})})});var gp=S(()=>{"use strict";});function $r(e){if(e<1e3)return`${e}ms`;let t=Math.floor(e/1e3);if(t<60)return`${t}s`;let r=Math.floor(t/60),n=t%60;return`${r}m ${n}s`}function kc(e,t){return`\u2191${pv(e)} \u2193${pv(t)}`}function pv(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e)}function Rc(e){return e<.01?`$${e.toFixed(4)}`:`$${e.toFixed(2)}`}function dv(e){return e.size===0?"":`(${Array.from(e).map(r=>{let n=r.split("/");return n[n.length-1]}).join(", ")})`}function fv(e){switch(e){case"running":return"Working";case"completed":return"Done";case"failed":return"Failed";case"skipped":return"Skipped";case"pending":default:return"Pending"}}function Lt(e,t){return e.length<=t?e:e.substring(0,t-1)+"\u2026"}var mv=S(()=>{"use strict";});var PC=S(()=>{"use strict";});function AC(e){return new Promise(t=>setTimeout(t,e))}var CC,bde,$C,OC,J9,NC,MC,X9,yp,kde,Rde,hv=S(()=>{"use strict";ct();cr();xc();Sr();G();mp();CC=kr(IC(),1);gp();mv();gp();PC();bde=new CC.Parser({operators:{logical:!0,comparison:!0,in:!1,assignment:!1,conditional:!0,add:!0,concatenate:!0,subtract:!0,multiply:!0,divide:!0,remainder:!0,power:!0,factorial:!1,prefix:!0,postfix:!1,array:!0,fndef:!1}}),$C=30,OC=6e4,J9=Math.ceil(OC/$C),NC=10,MC=6e4,X9=Math.ceil(MC/NC);yp=class{requestTimestamps=[];maxRequests;windowMs;minIntervalMs;queue=Promise.resolve();constructor(t=$C,r=OC,n=J9){this.maxRequests=t,this.windowMs=r,this.minIntervalMs=n}async acquire(){let t=this.queue.then(()=>this._waitAndRecord());return this.queue=t.catch(()=>{}),t}async _waitAndRecord(){await this._waitForCapacity(),await this._waitForInterval(),this.requestTimestamps.push(Date.now())}async _waitForCapacity(){let t=Date.now();if(this.requestTimestamps=this.requestTimestamps.filter(r=>t-r<this.windowMs),this.requestTimestamps.length>=this.maxRequests){let r=this.requestTimestamps[0],n=this.windowMs-(t-r)+100;if(n>0)return C("RECIPE",`Rate limit: waiting ${n}ms for capacity (${this.requestTimestamps.length}/${this.maxRequests} requests in window)`),await AC(n),this._waitForCapacity()}}async _waitForInterval(){if(this.requestTimestamps.length>0){let t=this.requestTimestamps[this.requestTimestamps.length-1],r=Date.now()-t;if(r<this.minIntervalMs){let n=this.minIntervalMs-r;C("RECIPE",`Rate limit: throttling ${n}ms between requests`),await AC(n)}}}async waitForCapacity(){return this.acquire()}recordRequest(){}getStats(){let t=Date.now();return this.requestTimestamps=this.requestTimestamps.filter(r=>t-r<this.windowMs),{requestsInWindow:this.requestTimestamps.length,maxRequests:this.maxRequests,windowMs:this.windowMs}}},kde=new yp,Rde=new yp(NC,MC,X9)});var gv=S(()=>{"use strict";hv();G();});var Z9,yv=S(()=>{"use strict";Z9=kr(To(),1);});var Dde,vv=S(()=>{"use strict";ct();G();yv();Dde=300*1e3});var DC=S(()=>{"use strict";G();gv();vv();});var LC=S(()=>{"use strict";G();ct();});var jC=S(()=>{"use strict";G();ms();Wn();});var vp=S(()=>{"use strict";ko();Wn();G();});var qC=S(()=>{"use strict";G();ms();vp();});var UC=S(()=>{"use strict";G();ms();vp();});var GC=S(()=>{"use strict";G();fs();});var zC=S(()=>{"use strict";G();Wn();_c();Ec();});var BC=S(()=>{"use strict";G();sv();Wn();_c();Ec();});var HC=S(()=>{"use strict";G();fs();fp();});var VC=S(()=>{"use strict";G();lp();});var WC=S(()=>{"use strict";G();});var KC=S(()=>{"use strict";G();});var wv=S(()=>{"use strict";G();});var wp=S(()=>{"use strict";G();wv();});var Hfe,Vfe,Wfe,Ic=S(()=>{"use strict";G();wp();hs();Hfe=1024*1024,Vfe=100*1024,Wfe=50*1024});var JC=S(()=>{"use strict";G();Ic();hs();ko();});var bv=S(()=>{"use strict";G();gs();Ic();});var ZC=S(()=>{"use strict";G();bv();gs();ko();});import{FlowDotApiClient as c8}from"@flowdot.ai/api";import t$ from"keytar";async function Sv(){let e=await t$.getPassword(r$,n$);if(!e)throw new Error("Not authenticated. Please run: flowdot auth login");if(!_v||e!==e$){let t=My.get("apiUrl");_v=new c8(t,e),e$=e}return _v}async function bp(){return!!await t$.getPassword(r$,n$)}var r$,n$,_v,e$,Ev=S(()=>{"use strict";cr();r$="flowdot-cli",n$="default",_v=null,e$=null});function Tv(e){if(o$[e])return o$[e];for(let{pattern:t,level:r}of l8)if(e.includes(t))return r;return"prompt"}var o$,l8,kv=S(()=>{"use strict";o$={flowdot_workflows_list:"none",flowdot_workflows_get:"none",flowdot_workflows_search:"none",flowdot_workflows_get_public:"none",flowdot_workflows_get_details:"none",flowdot_workflows_get_graph:"none",flowdot_workflows_get_inputs_schema:"none",flowdot_workflows_get_tags:"none",flowdot_workflows_get_metrics:"none",flowdot_workflows_get_comments:"none",flowdot_workflows_validate:"none",flowdot_workflows_execute:"prompt",flowdot_workflows_create:"prompt",flowdot_workflows_duplicate:"prompt",flowdot_workflows_set_tags:"prompt",flowdot_workflows_toggle_public:"prompt",flowdot_workflows_favorite:"prompt",flowdot_workflows_vote:"prompt",flowdot_workflows_add_comment:"prompt",flowdot_workflows_delete:"always",flowdot_executions_get:"none",flowdot_executions_get_history:"none",flowdot_executions_stream:"none",flowdot_executions_cancel:"prompt",flowdot_executions_retry:"prompt",flowdot_apps_list:"none",flowdot_apps_get:"none",flowdot_apps_search:"none",flowdot_apps_get_template:"none",flowdot_apps_get_comments:"none",flowdot_apps_get_workflows:"none",flowdot_apps_list_files:"none",flowdot_apps_get_file:"none",flowdot_apps_create:"prompt",flowdot_apps_update:"prompt",flowdot_apps_clone:"prompt",flowdot_apps_publish:"prompt",flowdot_apps_unpublish:"prompt",flowdot_apps_favorite:"prompt",flowdot_apps_vote:"prompt",flowdot_apps_add_comment:"prompt",flowdot_apps_link_workflow:"prompt",flowdot_apps_unlink_workflow:"prompt",flowdot_apps_edit_code:"prompt",flowdot_apps_append_code:"prompt",flowdot_apps_prepend_code:"prompt",flowdot_apps_insert_code:"prompt",flowdot_apps_create_file:"prompt",flowdot_apps_update_file:"prompt",flowdot_apps_rename_file:"prompt",flowdot_apps_set_entry_file:"prompt",flowdot_apps_delete:"always",flowdot_apps_delete_file:"always",flowdot_custom_nodes_list:"none",flowdot_custom_nodes_get:"none",flowdot_custom_nodes_search:"none",flowdot_custom_nodes_get_comments:"none",flowdot_custom_nodes_create:"prompt",flowdot_custom_nodes_update:"prompt",flowdot_custom_nodes_copy:"prompt",flowdot_custom_nodes_toggle_visibility:"prompt",flowdot_custom_nodes_vote:"prompt",flowdot_custom_nodes_favorite:"prompt",flowdot_custom_nodes_add_comment:"prompt",flowdot_custom_nodes_delete:"always",flowdot_knowledge_list_categories:"none",flowdot_knowledge_get_category:"none",flowdot_knowledge_list_documents:"none",flowdot_knowledge_get_document:"none",flowdot_knowledge_query:"none",flowdot_knowledge_get_storage:"none",flowdot_knowledge_create_category:"prompt",flowdot_knowledge_update_category:"prompt",flowdot_knowledge_upload_text:"prompt",flowdot_knowledge_upload_from_url:"prompt",flowdot_knowledge_move_document:"prompt",flowdot_knowledge_transfer_document:"prompt",flowdot_knowledge_reprocess_document:"prompt",flowdot_knowledge_delete_category:"always",flowdot_knowledge_delete_document:"always",flowdot_toolkits_list:"none",flowdot_toolkits_get:"none",flowdot_toolkits_search:"none",flowdot_toolkits_list_installed:"none",flowdot_toolkits_list_tools:"none",flowdot_toolkits_get_tool:"none",flowdot_toolkits_get_comments:"none",flowdot_toolkits_get_installation:"none",flowdot_toolkits_check_credentials:"none",flowdot_toolkits_create:"prompt",flowdot_toolkits_update:"prompt",flowdot_toolkits_copy:"prompt",flowdot_toolkits_toggle_visibility:"prompt",flowdot_toolkits_install:"prompt",flowdot_toolkits_update_installation:"prompt",flowdot_toolkits_toggle_active:"prompt",flowdot_toolkits_invoke_tool:"prompt",flowdot_toolkits_vote:"prompt",flowdot_toolkits_favorite:"prompt",flowdot_toolkits_add_comment:"prompt",flowdot_toolkits_create_tool:"prompt",flowdot_toolkits_update_tool:"prompt",flowdot_toolkits_delete:"always",flowdot_toolkits_uninstall:"always",flowdot_toolkits_delete_tool:"always",flowdot_recipes_list:"none",flowdot_recipes_get:"none",flowdot_recipes_get_definition:"none",flowdot_recipes_browse:"none",flowdot_recipes_list_steps:"none",flowdot_recipes_get_step:"none",flowdot_recipes_list_stores:"none",flowdot_recipes_list_links:"none",flowdot_recipes_get_comments:"none",flowdot_recipes_create:"prompt",flowdot_recipes_update:"prompt",flowdot_recipes_fork:"prompt",flowdot_recipes_link:"prompt",flowdot_recipes_unlink:"prompt",flowdot_recipes_vote:"prompt",flowdot_recipes_favorite:"prompt",flowdot_recipes_add_comment:"prompt",flowdot_recipes_add_step:"prompt",flowdot_recipes_update_step:"prompt",flowdot_recipes_reorder_steps:"prompt",flowdot_recipes_duplicate_step:"prompt",flowdot_recipes_add_store:"prompt",flowdot_recipes_update_store:"prompt",flowdot_recipes_delete:"always",flowdot_recipes_delete_step:"always",flowdot_recipes_delete_store:"always",flowdot_sharing_get_public_url:"none",flowdot_sharing_list_shared_results:"none",flowdot_sharing_get_shared_result:"none",flowdot_sharing_get_shared_result_comments:"none",flowdot_sharing_list_input_presets:"none",flowdot_sharing_get_input_preset:"none",flowdot_sharing_create_shared_result:"prompt",flowdot_sharing_add_shared_result_comment:"prompt",flowdot_sharing_vote_shared_result:"prompt",flowdot_sharing_create_input_preset:"prompt",flowdot_sharing_update_input_preset:"prompt",flowdot_sharing_vote_input_preset:"prompt",flowdot_sharing_toggle_community_inputs:"prompt",flowdot_sharing_delete_input_preset:"always",flowdot_teams_list:"none",flowdot_nodes_list:"none",flowdot_nodes_get_schema:"none",flowdot_comms_send_notification:"prompt",flowdot_agent_chat:"prompt",flowdot_search:"none"},l8=[{pattern:"_list",level:"none"},{pattern:"_get",level:"none"},{pattern:"_search",level:"none"},{pattern:"_browse",level:"none"},{pattern:"_validate",level:"none"},{pattern:"_check",level:"none"},{pattern:"_create",level:"prompt"},{pattern:"_update",level:"prompt"},{pattern:"_execute",level:"prompt"},{pattern:"_invoke",level:"prompt"},{pattern:"_vote",level:"prompt"},{pattern:"_favorite",level:"prompt"},{pattern:"_add_",level:"prompt"},{pattern:"_copy",level:"prompt"},{pattern:"_clone",level:"prompt"},{pattern:"_fork",level:"prompt"},{pattern:"_link",level:"prompt"},{pattern:"_toggle",level:"prompt"},{pattern:"_publish",level:"prompt"},{pattern:"_edit",level:"prompt"},{pattern:"_append",level:"prompt"},{pattern:"_prepend",level:"prompt"},{pattern:"_insert",level:"prompt"},{pattern:"_rename",level:"prompt"},{pattern:"_move",level:"prompt"},{pattern:"_transfer",level:"prompt"},{pattern:"_reorder",level:"prompt"},{pattern:"_duplicate",level:"prompt"},{pattern:"_install",level:"prompt"},{pattern:"_uninstall",level:"always"},{pattern:"_delete",level:"always"},{pattern:"_remove",level:"always"},{pattern:"_destroy",level:"always"}]});function $(e){let{toolName:t,description:r,handler:n,getPermissionDetails:o}=e;return async(s,i)=>{let a=s.payload||{};if(!await bp())return{success:!1,error:"Not authenticated. Please run: flowdot auth login",permissionDenied:!1};let l=Tv(t);if(l!=="none"){let u=ds("flowdot-tool",t);if(u==="deny")return{success:!1,error:`FlowDot tool is banned: ${t}`,permissionDenied:!0};if(u==="prompt"){let p=o?o(a):[];return{success:!1,error:"Permission required",requiresPermission:!0,permissionInfo:{category:"flowdot-tool",identifier:t,title:`FlowDot: ${r}`,description:u8(l,t),details:p}}}}return s$(n,a)}}function W(e){return async(t,r)=>{let n=t.payload||{};return await bp()?s$(e,n):{success:!1,error:"Not authenticated. Please run: flowdot auth login"}}}async function s$(e,t){try{let r=await Sv(),n=await e(r,t);return n.success?{success:!0,data:n.data}:{success:!1,error:n.error||"Operation failed"}}catch(r){let n=r instanceof Error?r.message:String(r);return n.includes("401")||n.includes("Unauthorized")?{success:!1,error:"Authentication failed. Please run: flowdot auth login",permissionDenied:!0}:{success:!1,error:n}}}function u8(e,t){let r=t.replace("flowdot_","").replace(/_/g," ");switch(e){case"prompt":return`This operation will ${r}. Allow this action?`;case"always":return`Warning: This is a destructive operation that will ${r}. This action cannot be undone.`;default:return`Perform ${r}`}}function E(e){return async(t,r)=>{try{return{success:!0,data:await e(t,r)}}catch(n){return{success:!1,error:n instanceof Error?n.message:String(n)}}}}var On=S(()=>{"use strict";Ev();kv();ko();});var p8,d8,f8,m8,h8,g8,y8,v8,w8,x8,b8,_8,S8,E8,T8,k8,R8,I8,P8,A8,i$,a$,c$=S(()=>{"use strict";On();p8=W(E(async(e,t)=>e.listWorkflows(t.filter,t.favoritesOnly))),d8=W(E(async(e,t)=>e.getWorkflow(t.workflowId))),f8=W(E(async(e,t)=>e.searchWorkflows(t.query,t.tags,t.page))),m8=W(E(async(e,t)=>e.getPublicWorkflows(t.page,t.sortBy))),h8=W(E(async(e,t)=>e.getWorkflowDetails(t.workflowId))),g8=W(E(async(e,t)=>e.getWorkflowGraph(t.workflowId))),y8=W(E(async(e,t)=>e.getWorkflowInputsSchema(t.workflowId))),v8=W(E(async(e,t)=>e.validateWorkflow(t.workflowId))),w8=W(E(async(e,t)=>e.getWorkflowTags(t.workflowId))),x8=W(E(async(e,t)=>e.getWorkflowMetrics(t.workflowId,t.period))),b8=W(E(async(e,t)=>e.getWorkflowComments(t.workflowId))),_8=$({toolName:"flowdot_workflows_execute",description:"Execute workflow",handler:E(async(e,t)=>e.executeWorkflow(t.workflowId,t.inputs||{},t.waitForCompletion??!0,t.mode||"flowdot")),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,e.inputs?`Inputs: ${Object.keys(e.inputs).join(", ")}`:"No inputs"]}),S8=$({toolName:"flowdot_workflows_create",description:"Create new workflow",handler:E(async(e,t)=>e.createWorkflow(t.name,t.description)),getPermissionDetails:e=>[`Name: ${e.name}`,e.description?`Description: ${e.description}`:""].filter(Boolean)}),E8=$({toolName:"flowdot_workflows_duplicate",description:"Duplicate workflow",handler:E(async(e,t)=>e.duplicateWorkflow(t.workflowId,t.name)),getPermissionDetails:e=>[`Source Workflow ID: ${e.workflowId}`,e.name?`New Name: ${e.name}`:"Using default name"]}),T8=$({toolName:"flowdot_workflows_delete",description:"Delete workflow",handler:E(async(e,t)=>e.deleteWorkflow(t.workflowId)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,"WARNING: This action cannot be undone!"]}),k8=$({toolName:"flowdot_workflows_set_tags",description:"Set workflow tags",handler:E(async(e,t)=>e.setWorkflowTags(t.workflowId,t.tags)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Tags: ${e.tags.join(", ")}`]}),R8=$({toolName:"flowdot_workflows_toggle_public",description:"Toggle workflow visibility",handler:E(async(e,t)=>e.toggleWorkflowPublic(t.workflowId,t.isPublic)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`New Visibility: ${e.isPublic?"Public":"Private"}`]}),I8=$({toolName:"flowdot_workflows_favorite",description:"Favorite workflow",handler:E(async(e,t)=>e.favoriteWorkflow(t.workflowId,t.favorite)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Action: ${e.favorite?"Add to favorites":"Remove from favorites"}`]}),P8=$({toolName:"flowdot_workflows_vote",description:"Vote on workflow",handler:E(async(e,t)=>e.voteWorkflow(t.workflowId,t.vote)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Vote: ${e.vote}`]}),A8=$({toolName:"flowdot_workflows_add_comment",description:"Add workflow comment",handler:E(async(e,t)=>e.addWorkflowComment(t.workflowId,t.content,t.parentId)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Comment: ${e.content.substring(0,50)}${e.content.length>50?"...":""}`]}),i$={flowdot_workflows_list:p8,flowdot_workflows_get:d8,flowdot_workflows_search:f8,flowdot_workflows_get_public:m8,flowdot_workflows_get_details:h8,flowdot_workflows_get_graph:g8,flowdot_workflows_get_inputs_schema:y8,flowdot_workflows_validate:v8,flowdot_workflows_get_tags:w8,flowdot_workflows_get_metrics:x8,flowdot_workflows_get_comments:b8,flowdot_workflows_execute:_8,flowdot_workflows_create:S8,flowdot_workflows_duplicate:E8,flowdot_workflows_set_tags:k8,flowdot_workflows_toggle_public:R8,flowdot_workflows_favorite:I8,flowdot_workflows_vote:P8,flowdot_workflows_add_comment:A8,flowdot_workflows_delete:T8},a$=[{id:"flowdot_workflows_list",name:"List Workflows",description:"List workflows available to the current user.",parameters:{required:{},optional:{filter:"Filter string to search by name",favoritesOnly:"If true, only return favorited workflows"}},returns:"Array of workflow objects with id, name, description, is_public, etc."},{id:"flowdot_workflows_get",name:"Get Workflow",description:"Get a specific workflow by its ID/hash.",parameters:{required:{workflowId:"The workflow ID or hash"}},returns:"Workflow object with full details"},{id:"flowdot_workflows_search",name:"Search Workflows",description:"Search workflows by name, description, or tags.",parameters:{required:{query:"Search query string"},optional:{tags:"Array of tags to filter by",page:"Page number for pagination"}},returns:"Paginated list of matching workflows"},{id:"flowdot_workflows_get_public",name:"Get Public Workflows",description:"Browse public workflows from all users.",parameters:{required:{},optional:{page:"Page number for pagination",sortBy:"Sort order (trending, recent, etc.)"}},returns:"Paginated list of public workflows"},{id:"flowdot_workflows_get_details",name:"Get Workflow Details",description:"Get detailed workflow information including nodes, connections, and signature.",parameters:{required:{workflowId:"The workflow ID"}},returns:"Detailed workflow object with nodes, connections, signature, tags, etc."},{id:"flowdot_workflows_get_inputs_schema",name:"Get Workflow Input Schema",description:"Get the input schema for a workflow (what inputs it requires).",parameters:{required:{workflowId:"The workflow ID"}},returns:"Schema object with inputs, settings, and usage notes"},{id:"flowdot_workflows_execute",name:"Execute Workflow",description:"Execute a workflow with the given inputs. Requires permission.",parameters:{required:{workflowId:"The workflow ID to execute"},optional:{inputs:"Object containing input values for the workflow",waitForCompletion:"If true (default), wait for execution to complete",mode:"Execution mode (default: flowdot)"}},returns:"Execution result with execution_id, status, and outputs"},{id:"flowdot_workflows_create",name:"Create Workflow",description:"Create a new empty workflow. Requires permission.",parameters:{required:{name:"Name for the new workflow"},optional:{description:"Description of the workflow"}},returns:"Created workflow object with id, name, created_at"},{id:"flowdot_workflows_duplicate",name:"Duplicate Workflow",description:"Create a copy of an existing workflow. Requires permission.",parameters:{required:{workflowId:"The workflow ID to duplicate"},optional:{name:"Name for the new workflow (optional)"}},returns:"New workflow object"},{id:"flowdot_workflows_delete",name:"Delete Workflow",description:"Permanently delete a workflow. This action cannot be undone. Always requires permission.",parameters:{required:{workflowId:"The workflow ID to delete"}},returns:"Success status"},{id:"flowdot_workflows_toggle_public",name:"Toggle Workflow Visibility",description:"Make a workflow public or private. Requires permission.",parameters:{required:{workflowId:"The workflow ID",isPublic:"True to make public, false to make private"}},returns:"Success status"},{id:"flowdot_workflows_favorite",name:"Favorite Workflow",description:"Add or remove a workflow from favorites. Requires permission.",parameters:{required:{workflowId:"The workflow ID",favorite:"True to favorite, false to unfavorite"}},returns:"Success status"},{id:"flowdot_workflows_validate",name:"Validate Workflow",description:"Check a workflow for errors and warnings.",parameters:{required:{workflowId:"The workflow ID to validate"}},returns:"Validation result with valid status, errors, and warnings"},{id:"flowdot_workflows_get_metrics",name:"Get Workflow Metrics",description:"Get execution metrics for a workflow.",parameters:{required:{workflowId:"The workflow ID"},optional:{period:'Time period for metrics (e.g., "7d", "30d")'}},returns:"Metrics object with execution counts, success rate, avg duration"}]});var C8,$8,O8,N8,M8,l$,u$,p$=S(()=>{"use strict";On();C8=W(E(async(e,t)=>e.getExecution(t.executionId))),$8=W(E(async(e,t)=>e.getExecutionHistory(t.workflowId,t.page,t.limit))),O8=W(E(async(e,t)=>({streamUrl:e.getExecutionStreamUrl(t.executionId),authToken:e.getAuthToken()}))),N8=$({toolName:"flowdot_executions_cancel",description:"Cancel execution",handler:E(async(e,t)=>e.cancelExecution(t.executionId)),getPermissionDetails:e=>[`Execution ID: ${e.executionId}`,"This will stop the running execution"]}),M8=$({toolName:"flowdot_executions_retry",description:"Retry execution",handler:E(async(e,t)=>e.retryExecution(t.executionId)),getPermissionDetails:e=>[`Execution ID: ${e.executionId}`,"This will create a new execution with the same inputs"]}),l$={flowdot_executions_get:C8,flowdot_executions_get_history:$8,flowdot_executions_stream:O8,flowdot_executions_cancel:N8,flowdot_executions_retry:M8},u$=[{id:"flowdot_executions_get",name:"Get Execution",description:"Get the status and results of a workflow execution.",parameters:{required:{executionId:"The execution ID"}},returns:"Execution object with status, inputs, outputs, and timing information"},{id:"flowdot_executions_get_history",name:"Get Execution History",description:"Get the execution history for a workflow.",parameters:{required:{workflowId:"The workflow ID"},optional:{page:"Page number for pagination",limit:"Number of results per page"}},returns:"Paginated list of execution history items"},{id:"flowdot_executions_stream",name:"Get Execution Stream",description:"Get the SSE stream URL for real-time execution updates.",parameters:{required:{executionId:"The execution ID to stream"}},returns:"Stream URL and authentication token for SSE connection"},{id:"flowdot_executions_cancel",name:"Cancel Execution",description:"Cancel a running workflow execution. Requires permission.",parameters:{required:{executionId:"The execution ID to cancel"}},returns:"Success status"},{id:"flowdot_executions_retry",name:"Retry Execution",description:"Retry a failed workflow execution with the same inputs. Requires permission.",parameters:{required:{executionId:"The execution ID to retry"}},returns:"New execution object"}]});var D8,L8,j8,F8,q8,U8,G8,z8,B8,H8,V8,W8,K8,Y8,J8,X8,Q8,Z8,eY,tY,rY,nY,oY,sY,iY,aY,cY,d$,f$,m$=S(()=>{"use strict";On();D8=W(E(async(e,t)=>e.listApps(t))),L8=W(E(async(e,t)=>e.searchPublicApps(t))),j8=W(E(async(e,t)=>e.getApp(t.appId))),F8=W(E(async(e,t)=>e.getAppComments(t.appId))),q8=W(E(async(e,t)=>e.getAppWorkflows(t.appId))),U8=W(E(async(e,t)=>e.listAppFiles(t.appId))),G8=W(E(async(e,t)=>e.getAppFile(t.appId,t.filePath))),z8=$({toolName:"flowdot_apps_create",description:"Create new app",handler:E(async(e,t)=>e.createApp(t)),getPermissionDetails:e=>[`Name: ${e.name}`,e.description?`Description: ${e.description}`:""].filter(Boolean)}),B8=$({toolName:"flowdot_apps_update",description:"Update app",handler:E(async(e,t)=>{let{appId:r,...n}=t;return e.updateApp(r,n)}),getPermissionDetails:e=>[`App ID: ${e.appId}`,e.name?`Name: ${e.name}`:""].filter(Boolean)}),H8=$({toolName:"flowdot_apps_delete",description:"Delete app",handler:E(async(e,t)=>e.deleteApp(t.appId)),getPermissionDetails:e=>[`App ID: ${e.appId}`,"WARNING: This action cannot be undone!"]}),V8=$({toolName:"flowdot_apps_clone",description:"Clone app",handler:E(async(e,t)=>e.cloneApp(t.appId,t.name)),getPermissionDetails:e=>[`Source App ID: ${e.appId}`,e.name?`New Name: ${e.name}`:"Using default name"]}),W8=$({toolName:"flowdot_apps_publish",description:"Publish app",handler:E(async(e,t)=>e.publishApp(t.appId)),getPermissionDetails:e=>[`App ID: ${e.appId}`,"This will make the app publicly visible"]}),K8=$({toolName:"flowdot_apps_unpublish",description:"Unpublish app",handler:E(async(e,t)=>e.unpublishApp(t.appId)),getPermissionDetails:e=>[`App ID: ${e.appId}`,"This will make the app private"]}),Y8=$({toolName:"flowdot_apps_favorite",description:"Favorite app",handler:E(async(e,t)=>e.favoriteApp(t.appId,t.favorite)),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Action: ${e.favorite?"Add to favorites":"Remove from favorites"}`]}),J8=$({toolName:"flowdot_apps_vote",description:"Vote on app",handler:E(async(e,t)=>e.voteApp(t.appId,t.vote)),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Vote: ${e.vote}`]}),X8=$({toolName:"flowdot_apps_add_comment",description:"Add app comment",handler:E(async(e,t)=>e.addAppComment(t.appId,t.content,t.parentId)),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Comment: ${e.content.substring(0,50)}${e.content.length>50?"...":""}`]}),Q8=$({toolName:"flowdot_apps_link_workflow",description:"Link workflow to app",handler:E(async(e,t)=>e.linkAppWorkflow(t.appId,t.workflowHash,t.alias)),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Workflow Hash: ${e.workflowHash}`,e.alias?`Alias: ${e.alias}`:""].filter(Boolean)}),Z8=$({toolName:"flowdot_apps_unlink_workflow",description:"Unlink workflow from app",handler:E(async(e,t)=>e.unlinkAppWorkflow(t.appId,t.workflowHash)),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Workflow Hash: ${e.workflowHash}`]}),eY=$({toolName:"flowdot_apps_edit_code",description:"Edit app code",handler:E(async(e,t)=>{let{appId:r,...n}=t;return e.editAppCode(r,n)}),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Find: ${e.old_string.substring(0,30)}...`,`Replace: ${e.new_string.substring(0,30)}...`]}),tY=$({toolName:"flowdot_apps_append_code",description:"Append app code",handler:E(async(e,t)=>{let{appId:r,...n}=t;return e.appendAppCode(r,n)}),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Content length: ${e.content.length} characters`]}),rY=$({toolName:"flowdot_apps_prepend_code",description:"Prepend app code",handler:E(async(e,t)=>{let{appId:r,...n}=t;return e.prependAppCode(r,n)}),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Content length: ${e.content.length} characters`]}),nY=$({toolName:"flowdot_apps_insert_code",description:"Insert app code",handler:E(async(e,t)=>{let{appId:r,...n}=t;return e.insertAppCode(r,n)}),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Insert after: ${e.after_pattern.substring(0,30)}...`]}),oY=$({toolName:"flowdot_apps_create_file",description:"Create app file",handler:E(async(e,t)=>{let{appId:r,...n}=t;return e.createAppFile(r,n)}),getPermissionDetails:e=>[`App ID: ${e.appId}`,`File path: ${e.path}`]}),sY=$({toolName:"flowdot_apps_update_file",description:"Update app file",handler:E(async(e,t)=>{let{appId:r,filePath:n,...o}=t;return e.updateAppFile(r,n,o)}),getPermissionDetails:e=>[`App ID: ${e.appId}`,`File path: ${e.filePath}`]}),iY=$({toolName:"flowdot_apps_rename_file",description:"Rename app file",handler:E(async(e,t)=>{let{appId:r,filePath:n,...o}=t;return e.renameAppFile(r,n,o)}),getPermissionDetails:e=>[`App ID: ${e.appId}`,`File: ${e.filePath}`,`New name: ${e.new_path}`]}),aY=$({toolName:"flowdot_apps_delete_file",description:"Delete app file",handler:E(async(e,t)=>e.deleteAppFile(t.appId,t.filePath)),getPermissionDetails:e=>[`App ID: ${e.appId}`,`File path: ${e.filePath}`,"WARNING: This action cannot be undone!"]}),cY=$({toolName:"flowdot_apps_set_entry_file",description:"Set app entry file",handler:E(async(e,t)=>e.setAppEntryFile(t.appId,t.filePath)),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Entry file: ${e.filePath}`]}),d$={flowdot_apps_list:D8,flowdot_apps_search:L8,flowdot_apps_get:j8,flowdot_apps_get_comments:F8,flowdot_apps_get_workflows:q8,flowdot_apps_list_files:U8,flowdot_apps_get_file:G8,flowdot_apps_create:z8,flowdot_apps_update:B8,flowdot_apps_clone:V8,flowdot_apps_publish:W8,flowdot_apps_unpublish:K8,flowdot_apps_favorite:Y8,flowdot_apps_vote:J8,flowdot_apps_add_comment:X8,flowdot_apps_link_workflow:Q8,flowdot_apps_unlink_workflow:Z8,flowdot_apps_edit_code:eY,flowdot_apps_append_code:tY,flowdot_apps_prepend_code:rY,flowdot_apps_insert_code:nY,flowdot_apps_create_file:oY,flowdot_apps_update_file:sY,flowdot_apps_rename_file:iY,flowdot_apps_set_entry_file:cY,flowdot_apps_delete:H8,flowdot_apps_delete_file:aY},f$=[{id:"flowdot_apps_list",name:"List Apps",description:"List user's own apps with optional filters.",parameters:{required:{},optional:{search:"Search string to filter by name",category:"Category to filter by",limit:"Results per page",page:"Page number"}},returns:"Paginated list of app objects"},{id:"flowdot_apps_search",name:"Search Apps",description:"Search public apps in the marketplace.",parameters:{required:{},optional:{q:"Search query",category:"Category filter",tag:"Tag filter",mobile_compatible:"Filter for mobile-compatible apps",sort:"Sort order",limit:"Results per page",page:"Page number"}},returns:"Paginated list of public apps"},{id:"flowdot_apps_get",name:"Get App",description:"Get a specific app with full details including code.",parameters:{required:{appId:"The app ID"}},returns:"App object with full details"},{id:"flowdot_apps_create",name:"Create App",description:"Create a new app. Requires permission.",parameters:{required:{name:"Name for the new app"},optional:{description:"Description of the app",code:"Initial app code",category:"App category"}},returns:"Created app object"},{id:"flowdot_apps_update",name:"Update App",description:"Update an existing app. Requires permission.",parameters:{required:{appId:"The app ID to update"},optional:{name:"New name",description:"New description",code:"New code"}},returns:"Success status"},{id:"flowdot_apps_delete",name:"Delete App",description:"Permanently delete an app. This action cannot be undone. Always requires permission.",parameters:{required:{appId:"The app ID to delete"}},returns:"Success status"},{id:"flowdot_apps_clone",name:"Clone App",description:"Clone a public app to your library. Requires permission.",parameters:{required:{appId:"The app ID to clone"},optional:{name:"Name for the cloned app"}},returns:"Cloned app object"},{id:"flowdot_apps_publish",name:"Publish App",description:"Make an app public. Requires permission.",parameters:{required:{appId:"The app ID to publish"}},returns:"Success status"},{id:"flowdot_apps_unpublish",name:"Unpublish App",description:"Make an app private. Requires permission.",parameters:{required:{appId:"The app ID to unpublish"}},returns:"Success status"},{id:"flowdot_apps_edit_code",name:"Edit App Code",description:"Edit app code using find and replace. Requires permission.",parameters:{required:{appId:"The app ID",old_string:"String to find",new_string:"String to replace with"},optional:{file_path:"Specific file path for multi-file apps"}},returns:"Updated code preview"},{id:"flowdot_apps_append_code",name:"Append App Code",description:"Append content to the end of app code. Requires permission.",parameters:{required:{appId:"The app ID",content:"Content to append"},optional:{file_path:"Specific file path for multi-file apps"}},returns:"Updated code preview"},{id:"flowdot_apps_list_files",name:"List App Files",description:"List all files in a multi-file app.",parameters:{required:{appId:"The app ID"}},returns:"Array of file objects with path and metadata"},{id:"flowdot_apps_create_file",name:"Create App File",description:"Create a new file in a multi-file app. Requires permission.",parameters:{required:{appId:"The app ID",path:"File path",content:"File content"}},returns:"Created file object"},{id:"flowdot_apps_delete_file",name:"Delete App File",description:"Delete a file from a multi-file app. Always requires permission.",parameters:{required:{appId:"The app ID",filePath:"Path of file to delete"}},returns:"Success status"}]});var lY,uY,pY,dY,fY,mY,hY,gY,yY,vY,wY,xY,h$,g$,y$=S(()=>{"use strict";On();lY=W(E(async(e,t)=>e.listCustomNodes(t))),uY=W(E(async(e,t)=>e.searchPublicCustomNodes(t))),pY=W(E(async(e,t)=>e.getCustomNode(t.nodeId))),dY=W(E(async(e,t)=>e.getCustomNodeComments(t.nodeId))),fY=$({toolName:"flowdot_custom_nodes_create",description:"Create custom node",handler:E(async(e,t)=>e.createCustomNode(t)),getPermissionDetails:e=>[`Name: ${e.name}`,`Type: ${e.type_name}`,e.description?`Description: ${e.description}`:""].filter(Boolean)}),mY=$({toolName:"flowdot_custom_nodes_update",description:"Update custom node",handler:E(async(e,t)=>{let{nodeId:r,...n}=t;return e.updateCustomNode(r,n)}),getPermissionDetails:e=>[`Node ID: ${e.nodeId}`,e.name?`Name: ${e.name}`:""].filter(Boolean)}),hY=$({toolName:"flowdot_custom_nodes_delete",description:"Delete custom node",handler:E(async(e,t)=>e.deleteCustomNode(t.nodeId)),getPermissionDetails:e=>[`Node ID: ${e.nodeId}`,"WARNING: This action cannot be undone!"]}),gY=$({toolName:"flowdot_custom_nodes_copy",description:"Copy custom node",handler:E(async(e,t)=>e.copyCustomNode(t.nodeId,t.name)),getPermissionDetails:e=>[`Source Node ID: ${e.nodeId}`,e.name?`New Name: ${e.name}`:"Using default name"]}),yY=$({toolName:"flowdot_custom_nodes_toggle_visibility",description:"Toggle custom node visibility",handler:E(async(e,t)=>e.toggleCustomNodeVisibility(t.nodeId,t.visibility)),getPermissionDetails:e=>[`Node ID: ${e.nodeId}`,`New Visibility: ${e.visibility}`]}),vY=$({toolName:"flowdot_custom_nodes_vote",description:"Vote on custom node",handler:E(async(e,t)=>e.voteCustomNode(t.nodeId,t.vote)),getPermissionDetails:e=>[`Node ID: ${e.nodeId}`,`Vote: ${e.vote}`]}),wY=$({toolName:"flowdot_custom_nodes_favorite",description:"Favorite custom node",handler:E(async(e,t)=>e.favoriteCustomNode(t.nodeId,t.favorite)),getPermissionDetails:e=>[`Node ID: ${e.nodeId}`,`Action: ${e.favorite?"Add to favorites":"Remove from favorites"}`]}),xY=$({toolName:"flowdot_custom_nodes_add_comment",description:"Add custom node comment",handler:E(async(e,t)=>e.addCustomNodeComment(t.nodeId,t.content,t.parentId)),getPermissionDetails:e=>[`Node ID: ${e.nodeId}`,`Comment: ${e.content.substring(0,50)}${e.content.length>50?"...":""}`]}),h$={flowdot_custom_nodes_list:lY,flowdot_custom_nodes_search:uY,flowdot_custom_nodes_get:pY,flowdot_custom_nodes_get_comments:dY,flowdot_custom_nodes_create:fY,flowdot_custom_nodes_update:mY,flowdot_custom_nodes_copy:gY,flowdot_custom_nodes_toggle_visibility:yY,flowdot_custom_nodes_vote:vY,flowdot_custom_nodes_favorite:wY,flowdot_custom_nodes_add_comment:xY,flowdot_custom_nodes_delete:hY},g$=[{id:"flowdot_custom_nodes_list",name:"List Custom Nodes",description:"List user's own custom nodes.",parameters:{required:{},optional:{search:"Search string",category:"Category filter",limit:"Results per page",page:"Page number"}},returns:"Paginated list of custom node objects"},{id:"flowdot_custom_nodes_search",name:"Search Public Custom Nodes",description:"Search public custom nodes in the marketplace.",parameters:{required:{},optional:{q:"Search query",category:"Category filter",tags:"Array of tags to filter by",verified_only:"Only return verified nodes",sort:"Sort order",limit:"Results per page",page:"Page number"}},returns:"Paginated list of public custom nodes"},{id:"flowdot_custom_nodes_get",name:"Get Custom Node",description:"Get a specific custom node with full details including script_code.",parameters:{required:{nodeId:"The custom node ID"}},returns:"Custom node object with full details"},{id:"flowdot_custom_nodes_create",name:"Create Custom Node",description:"Create a new custom node. Requires permission.",parameters:{required:{name:"Display name for the node",type_name:"Unique type identifier (snake_case)",category:"Node category",script_code:"JavaScript code for the node"},optional:{description:"Description of what the node does",inputs:"Array of input definitions",outputs:"Array of output definitions",properties:"Array of property definitions"}},returns:"Created custom node object"},{id:"flowdot_custom_nodes_update",name:"Update Custom Node",description:"Update an existing custom node. Requires permission.",parameters:{required:{nodeId:"The custom node ID to update"},optional:{name:"New name",description:"New description",script_code:"New script code",inputs:"New input definitions",outputs:"New output definitions"}},returns:"Success status"},{id:"flowdot_custom_nodes_delete",name:"Delete Custom Node",description:"Permanently delete a custom node. This action cannot be undone. Always requires permission.",parameters:{required:{nodeId:"The custom node ID to delete"}},returns:"Success status"},{id:"flowdot_custom_nodes_copy",name:"Copy Custom Node",description:"Copy a public custom node to your library. Requires permission.",parameters:{required:{nodeId:"The custom node ID to copy"},optional:{name:"Name for the copied node"}},returns:"Copied custom node object"},{id:"flowdot_custom_nodes_toggle_visibility",name:"Toggle Custom Node Visibility",description:"Change the visibility of a custom node. Requires permission.",parameters:{required:{nodeId:"The custom node ID",visibility:"New visibility (private, public, or unlisted)"}},returns:"Success status"},{id:"flowdot_custom_nodes_vote",name:"Vote Custom Node",description:"Vote on a custom node. Requires permission.",parameters:{required:{nodeId:"The custom node ID",vote:"Vote type (up, down, or remove)"}},returns:"Vote result with new vote counts"},{id:"flowdot_custom_nodes_favorite",name:"Favorite Custom Node",description:"Add or remove a custom node from favorites. Requires permission.",parameters:{required:{nodeId:"The custom node ID",favorite:"True to favorite, false to unfavorite"}},returns:"Success status"}]});var bY,_Y,SY,EY,TY,kY,RY,IY,PY,AY,CY,$Y,OY,NY,MY,v$,w$,x$=S(()=>{"use strict";On();bY=W(E(async(e,t)=>e.listKnowledgeCategories(t))),_Y=W(E(async(e,t)=>e.getKnowledgeCategory(t.categoryId))),SY=W(E(async(e,t)=>e.listKnowledgeDocuments(t))),EY=W(E(async(e,t)=>e.getKnowledgeDocument(t.documentId))),TY=W(E(async(e,t)=>e.queryKnowledgeBase(t))),kY=W(E(async e=>e.getKnowledgeStorage())),RY=$({toolName:"flowdot_knowledge_create_category",description:"Create knowledge category",handler:E(async(e,t)=>e.createKnowledgeCategory(t)),getPermissionDetails:e=>[`Name: ${e.name}`,e.description?`Description: ${e.description}`:""].filter(Boolean)}),IY=$({toolName:"flowdot_knowledge_update_category",description:"Update knowledge category",handler:E(async(e,t)=>{let{categoryId:r,...n}=t;return e.updateKnowledgeCategory(r,n)}),getPermissionDetails:e=>[`Category ID: ${e.categoryId}`,e.name?`New Name: ${e.name}`:""].filter(Boolean)}),PY=$({toolName:"flowdot_knowledge_delete_category",description:"Delete knowledge category",handler:E(async(e,t)=>e.deleteKnowledgeCategory(t.categoryId)),getPermissionDetails:e=>[`Category ID: ${e.categoryId}`,"WARNING: This will delete all documents in this category!"]}),AY=async(e,t)=>{let r=e.payload||{};if(!r.title||!r.content)return{success:!1,error:"Missing required parameters: title, content"};try{let{getApiClient:n}=await Promise.resolve().then(()=>(ct(),QA)),s=await(await n()).post("/api/hub/knowledge/documents/upload-text",{title:r.title,content:r.content,category_id:r.category_id,mime_type:r.mime_type||"text/markdown",team_id:r.team_id});return{success:!0,data:s.data?.data||s.data}}catch(n){return{success:!1,error:`Upload failed: ${n.message}`}}},CY=$({toolName:"flowdot_knowledge_upload_from_url",description:"Upload document from URL",handler:E(async(e,t)=>e.uploadDocumentFromUrl(t)),getPermissionDetails:e=>[`URL: ${e.url}`,e.title?`Title: ${e.title}`:"Auto-detect title",e.category_id?`Category ID: ${e.category_id}`:"No category"]}),$Y=$({toolName:"flowdot_knowledge_move_document",description:"Move document to category",handler:E(async(e,t)=>e.moveDocumentToCategory(t.documentId,t.categoryId)),getPermissionDetails:e=>[`Document ID: ${e.documentId}`,e.categoryId?`New Category ID: ${e.categoryId}`:"Move to uncategorized"]}),OY=$({toolName:"flowdot_knowledge_transfer_document",description:"Transfer document ownership",handler:E(async(e,t)=>{let{documentId:r,...n}=t;return e.transferDocumentOwnership(r,n)}),getPermissionDetails:e=>[`Document ID: ${e.documentId}`,e.team_id?`Transfer to Team ID: ${e.team_id}`:"Transfer to personal"]}),NY=$({toolName:"flowdot_knowledge_reprocess_document",description:"Reprocess document",handler:E(async(e,t)=>e.reprocessDocument(t.documentId)),getPermissionDetails:e=>[`Document ID: ${e.documentId}`,"This will re-process the document for RAG indexing"]}),MY=$({toolName:"flowdot_knowledge_delete_document",description:"Delete knowledge document",handler:E(async(e,t)=>e.deleteKnowledgeDocument(t.documentId)),getPermissionDetails:e=>[`Document ID: ${e.documentId}`,"WARNING: This action cannot be undone!"]}),v$={flowdot_knowledge_list_categories:bY,flowdot_knowledge_get_category:_Y,flowdot_knowledge_list_documents:SY,flowdot_knowledge_get_document:EY,flowdot_knowledge_query:TY,flowdot_knowledge_get_storage:kY,flowdot_knowledge_create_category:RY,flowdot_knowledge_update_category:IY,flowdot_knowledge_upload_text:AY,flowdot_knowledge_upload_from_url:CY,flowdot_knowledge_move_document:$Y,flowdot_knowledge_transfer_document:OY,flowdot_knowledge_reprocess_document:NY,flowdot_knowledge_delete_category:PY,flowdot_knowledge_delete_document:MY},w$=[{id:"flowdot_knowledge_list_categories",name:"List Knowledge Categories",description:"List knowledge base categories.",parameters:{required:{},optional:{team_id:"Filter by team ID",personal:"If true, only return personal categories"}},returns:"Array of category objects"},{id:"flowdot_knowledge_get_category",name:"Get Knowledge Category",description:"Get a specific knowledge base category.",parameters:{required:{categoryId:"The category ID"}},returns:"Category object with details"},{id:"flowdot_knowledge_list_documents",name:"List Knowledge Documents",description:"List knowledge base documents with optional filters.",parameters:{required:{},optional:{category_id:"Filter by category ID",team_id:"Filter by team ID",status:"Filter by status (pending, processing, ready, failed)"}},returns:"Array of document objects"},{id:"flowdot_knowledge_get_document",name:"Get Knowledge Document",description:"Get a specific knowledge base document.",parameters:{required:{documentId:"The document ID"}},returns:"Document object with content and metadata"},{id:"flowdot_knowledge_query",name:"Query Knowledge Base",description:"Query the knowledge base using RAG (Retrieval-Augmented Generation).",parameters:{required:{query:"The search query"},optional:{category_ids:"Array of category IDs to search within",document_ids:"Array of document IDs to search within",team_id:"Team ID for team knowledge bases",limit:"Maximum number of results"}},returns:"Query response with relevant document chunks and similarity scores"},{id:"flowdot_knowledge_get_storage",name:"Get Knowledge Storage",description:"Get knowledge base storage usage information.",parameters:{required:{}},returns:"Storage usage object with limits and current usage"},{id:"flowdot_knowledge_create_category",name:"Create Knowledge Category",description:"Create a new knowledge base category. Requires permission.",parameters:{required:{name:"Category name"},optional:{description:"Category description",team_id:"Team ID for team category"}},returns:"Created category object"},{id:"flowdot_knowledge_upload_text",name:"Upload Text Document",description:"Upload text content as a knowledge document. Requires permission.",parameters:{required:{title:"Document title",content:"Text content to upload"},optional:{category_id:"Category to add document to",team_id:"Team ID for team document"}},returns:"Uploaded document object"},{id:"flowdot_knowledge_upload_from_url",name:"Upload Document from URL",description:"Upload a document from a URL. Requires permission.",parameters:{required:{url:"URL to fetch content from"},optional:{title:"Document title (auto-detected if not provided)",category_id:"Category to add document to",team_id:"Team ID for team document"}},returns:"Uploaded document object"},{id:"flowdot_knowledge_delete_category",name:"Delete Knowledge Category",description:"Delete a knowledge category and all its documents. Always requires permission.",parameters:{required:{categoryId:"The category ID to delete"}},returns:"Success status"},{id:"flowdot_knowledge_delete_document",name:"Delete Knowledge Document",description:"Delete a knowledge document. Always requires permission.",parameters:{required:{documentId:"The document ID to delete"}},returns:"Success status"}]});var DY,LY,jY,FY,qY,UY,GY,zY,BY,HY,VY,WY,KY,YY,JY,XY,QY,ZY,eJ,tJ,rJ,nJ,oJ,sJ,iJ,b$,_$,S$=S(()=>{"use strict";On();DY=W(E(async(e,t)=>e.listAgentToolkits(t))),LY=W(E(async(e,t)=>e.searchPublicAgentToolkits(t))),jY=W(E(async(e,t)=>e.getAgentToolkit(t.toolkitId))),FY=W(E(async e=>e.listInstalledToolkits())),qY=W(E(async(e,t)=>e.listToolkitTools(t.toolkitId))),UY=W(E(async(e,t)=>e.getToolkitTool(t.toolkitId,t.toolId))),GY=W(E(async(e,t)=>e.getToolkitComments(t.toolkitId))),zY=W(E(async(e,t)=>e.getToolkitInstallation(t.installationId))),BY=W(E(async(e,t)=>e.checkToolkitCredentials(t.installationId))),HY=$({toolName:"flowdot_toolkits_create",description:"Create toolkit",handler:E(async(e,t)=>e.createAgentToolkit(t)),getPermissionDetails:e=>[`Name: ${e.name}`,e.description?`Description: ${e.description}`:""].filter(Boolean)}),VY=$({toolName:"flowdot_toolkits_update",description:"Update toolkit",handler:E(async(e,t)=>{let{toolkitId:r,...n}=t;return e.updateAgentToolkit(r,n)}),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,e.name?`Name: ${e.name}`:""].filter(Boolean)}),WY=$({toolName:"flowdot_toolkits_delete",description:"Delete toolkit",handler:E(async(e,t)=>e.deleteAgentToolkit(t.toolkitId)),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,"WARNING: This action cannot be undone!"]}),KY=$({toolName:"flowdot_toolkits_copy",description:"Copy toolkit",handler:E(async(e,t)=>e.copyAgentToolkit(t.toolkitId,t.name)),getPermissionDetails:e=>[`Source Toolkit ID: ${e.toolkitId}`,e.name?`New Name: ${e.name}`:"Using default name"]}),YY=$({toolName:"flowdot_toolkits_toggle_visibility",description:"Toggle toolkit visibility",handler:E(async(e,t)=>e.toggleToolkitVisibility(t.toolkitId,t.visibility)),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,`New Visibility: ${e.visibility}`]}),JY=$({toolName:"flowdot_toolkits_install",description:"Install toolkit",handler:E(async(e,t)=>e.installToolkit(t.toolkitId)),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,"This will add the toolkit to your installed toolkits"]}),XY=$({toolName:"flowdot_toolkits_update_installation",description:"Update toolkit installation",handler:E(async(e,t)=>e.updateToolkitInstallation(t.installationId,t.credentialMapping)),getPermissionDetails:e=>[`Installation ID: ${e.installationId}`,"Updating credential mapping"]}),QY=$({toolName:"flowdot_toolkits_uninstall",description:"Uninstall toolkit",handler:E(async(e,t)=>e.uninstallToolkit(t.installationId)),getPermissionDetails:e=>[`Installation ID: ${e.installationId}`,"This will remove the toolkit from your installed toolkits"]}),ZY=$({toolName:"flowdot_toolkits_toggle_active",description:"Toggle toolkit active status",handler:E(async(e,t)=>e.toggleToolkitActive(t.installationId,t.isActive)),getPermissionDetails:e=>[`Installation ID: ${e.installationId}`,`New Status: ${e.isActive?"Active":"Inactive"}`]}),eJ=$({toolName:"flowdot_toolkits_invoke_tool",description:"Invoke toolkit tool",handler:E(async(e,t)=>e.invokeToolkitTool(t)),getPermissionDetails:e=>[`Installation ID: ${e.installation_id}`,`Tool: ${e.tool_name}`,`Inputs: ${Object.keys(e.inputs||{}).join(", ")||"none"}`]}),tJ=$({toolName:"flowdot_toolkits_vote",description:"Vote on toolkit",handler:E(async(e,t)=>e.voteToolkit(t.toolkitId,t.vote)),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,`Vote: ${e.vote}`]}),rJ=$({toolName:"flowdot_toolkits_favorite",description:"Favorite toolkit",handler:E(async(e,t)=>e.favoriteToolkit(t.toolkitId,t.favorite)),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,`Action: ${e.favorite?"Add to favorites":"Remove from favorites"}`]}),nJ=$({toolName:"flowdot_toolkits_add_comment",description:"Add toolkit comment",handler:E(async(e,t)=>e.addToolkitComment(t.toolkitId,t.content,t.parentId)),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,`Comment: ${e.content.substring(0,50)}${e.content.length>50?"...":""}`]}),oJ=$({toolName:"flowdot_toolkits_create_tool",description:"Create toolkit tool",handler:E(async(e,t)=>{let{toolkitId:r,...n}=t;return e.createToolkitTool(r,n)}),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,`Tool Name: ${e.name}`]}),sJ=$({toolName:"flowdot_toolkits_update_tool",description:"Update toolkit tool",handler:E(async(e,t)=>{let{toolkitId:r,toolId:n,...o}=t;return e.updateToolkitTool(r,n,o)}),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,`Tool ID: ${e.toolId}`]}),iJ=$({toolName:"flowdot_toolkits_delete_tool",description:"Delete toolkit tool",handler:E(async(e,t)=>e.deleteToolkitTool(t.toolkitId,t.toolId)),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,`Tool ID: ${e.toolId}`,"WARNING: This action cannot be undone!"]}),b$={flowdot_toolkits_list:DY,flowdot_toolkits_search:LY,flowdot_toolkits_get:jY,flowdot_toolkits_list_installed:FY,flowdot_toolkits_list_tools:qY,flowdot_toolkits_get_tool:UY,flowdot_toolkits_get_comments:GY,flowdot_toolkits_get_installation:zY,flowdot_toolkits_check_credentials:BY,flowdot_toolkits_create:HY,flowdot_toolkits_update:VY,flowdot_toolkits_copy:KY,flowdot_toolkits_toggle_visibility:YY,flowdot_toolkits_install:JY,flowdot_toolkits_update_installation:XY,flowdot_toolkits_toggle_active:ZY,flowdot_toolkits_invoke_tool:eJ,flowdot_toolkits_vote:tJ,flowdot_toolkits_favorite:rJ,flowdot_toolkits_add_comment:nJ,flowdot_toolkits_create_tool:oJ,flowdot_toolkits_update_tool:sJ,flowdot_toolkits_delete:WY,flowdot_toolkits_uninstall:QY,flowdot_toolkits_delete_tool:iJ},_$=[{id:"flowdot_toolkits_list",name:"List Toolkits",description:"List user's own agent toolkits.",parameters:{required:{},optional:{search:"Search string",category:"Category filter",limit:"Results per page",page:"Page number"}},returns:"Paginated list of toolkit objects"},{id:"flowdot_toolkits_search",name:"Search Toolkits",description:"Search public toolkits in the marketplace.",parameters:{required:{},optional:{query:"Search query",category:"Category filter",tags:"Array of tags",verified_only:"Only verified toolkits",sort:"Sort order",limit:"Results per page",page:"Page number"}},returns:"Paginated list of public toolkits"},{id:"flowdot_toolkits_get",name:"Get Toolkit",description:"Get detailed information about a toolkit.",parameters:{required:{toolkitId:"The toolkit ID"}},returns:"Toolkit object with full details"},{id:"flowdot_toolkits_list_installed",name:"List Installed Toolkits",description:"List all toolkits installed by the user.",parameters:{required:{}},returns:"Array of installed toolkit objects"},{id:"flowdot_toolkits_list_tools",name:"List Toolkit Tools",description:"List all tools in a toolkit.",parameters:{required:{toolkitId:"The toolkit ID"}},returns:"Array of toolkit tool objects"},{id:"flowdot_toolkits_install",name:"Install Toolkit",description:"Install a toolkit. Requires permission.",parameters:{required:{toolkitId:"The toolkit ID to install"}},returns:"Installation result with installation ID"},{id:"flowdot_toolkits_uninstall",name:"Uninstall Toolkit",description:"Uninstall a toolkit. Always requires permission.",parameters:{required:{installationId:"The installation ID"}},returns:"Success status"},{id:"flowdot_toolkits_invoke_tool",name:"Invoke Toolkit Tool",description:"Invoke a tool from an installed toolkit. Requires permission.",parameters:{required:{installation_id:"The toolkit installation ID",tool_name:"Name of the tool to invoke"},optional:{inputs:"Object containing tool inputs",credential_overrides:"Optional credential overrides"}},returns:"Tool execution result"},{id:"flowdot_toolkits_create",name:"Create Toolkit",description:"Create a new agent toolkit. Requires permission.",parameters:{required:{name:"Toolkit name"},optional:{description:"Toolkit description",category:"Toolkit category",icon:"Icon identifier"}},returns:"Created toolkit object"},{id:"flowdot_toolkits_delete",name:"Delete Toolkit",description:"Delete a toolkit. Always requires permission.",parameters:{required:{toolkitId:"The toolkit ID to delete"}},returns:"Success status"}]});var aJ,cJ,lJ,uJ,pJ,dJ,fJ,mJ,hJ,gJ,yJ,vJ,wJ,xJ,bJ,_J,SJ,EJ,TJ,kJ,RJ,IJ,PJ,AJ,CJ,$J,E$,T$,k$=S(()=>{"use strict";On();aJ=W(E(async e=>e.listRecipes())),cJ=W(E(async(e,t)=>e.getRecipe(t.hash))),lJ=W(E(async(e,t)=>e.getRecipeDefinition(t.hash))),uJ=W(E(async(e,t)=>e.listPublicRecipes(t))),pJ=W(E(async(e,t)=>e.listRecipeSteps(t.hash))),dJ=W(E(async(e,t)=>e.getRecipeStep(t.hash,t.stepId))),fJ=W(E(async(e,t)=>e.listRecipeStores(t.hash))),mJ=W(E(async e=>e.listRecipeLinks())),hJ=W(E(async(e,t)=>e.getRecipeComments(t.hash))),gJ=$({toolName:"flowdot_recipes_create",description:"Create recipe",handler:E(async(e,t)=>e.createRecipe(t)),getPermissionDetails:e=>[`Name: ${e.name}`,e.description?`Description: ${e.description}`:""].filter(Boolean)}),yJ=$({toolName:"flowdot_recipes_update",description:"Update recipe",handler:E(async(e,t)=>{let{hash:r,...n}=t;return e.updateRecipe(r,n)}),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,e.name?`Name: ${e.name}`:""].filter(Boolean)}),vJ=$({toolName:"flowdot_recipes_delete",description:"Delete recipe",handler:E(async(e,t)=>e.deleteRecipe(t.hash)),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,"WARNING: This action cannot be undone!"]}),wJ=$({toolName:"flowdot_recipes_fork",description:"Fork recipe",handler:E(async(e,t)=>e.forkRecipe(t.hash,t.newName)),getPermissionDetails:e=>[`Source Recipe Hash: ${e.hash}`,e.newName?`New Name: ${e.newName}`:"Using default name"]}),xJ=$({toolName:"flowdot_recipes_link",description:"Link recipe",handler:E(async(e,t)=>{let{hash:r,...n}=t;return e.linkRecipe(r,n)}),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Alias: ${e.alias}`]}),bJ=$({toolName:"flowdot_recipes_unlink",description:"Unlink recipe",handler:E(async(e,t)=>e.unlinkRecipe(t.alias)),getPermissionDetails:e=>[`Alias: ${e.alias}`]}),_J=$({toolName:"flowdot_recipes_vote",description:"Vote on recipe",handler:E(async(e,t)=>e.voteRecipe(t.hash,t.vote)),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Vote: ${e.vote}`]}),SJ=$({toolName:"flowdot_recipes_favorite",description:"Favorite recipe",handler:E(async(e,t)=>e.favoriteRecipe(t.hash,t.favorite)),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Action: ${e.favorite?"Add to favorites":"Remove from favorites"}`]}),EJ=$({toolName:"flowdot_recipes_add_comment",description:"Add recipe comment",handler:E(async(e,t)=>e.addRecipeComment(t.hash,t.content,t.parentId)),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Comment: ${e.content.substring(0,50)}${e.content.length>50?"...":""}`]}),TJ=$({toolName:"flowdot_recipes_add_step",description:"Add recipe step",handler:E(async(e,t)=>{let{hash:r,...n}=t;return e.addRecipeStep(r,n)}),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Step Type: ${e.type}`,`Step Name: ${e.name}`]}),kJ=$({toolName:"flowdot_recipes_update_step",description:"Update recipe step",handler:E(async(e,t)=>{let{hash:r,stepId:n,...o}=t;return e.updateRecipeStep(r,n,o)}),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Step ID: ${e.stepId}`]}),RJ=$({toolName:"flowdot_recipes_delete_step",description:"Delete recipe step",handler:E(async(e,t)=>e.deleteRecipeStep(t.hash,t.stepId)),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Step ID: ${e.stepId}`,"WARNING: This action cannot be undone!"]}),IJ=$({toolName:"flowdot_recipes_reorder_steps",description:"Reorder recipe steps",handler:E(async(e,t)=>e.reorderRecipeSteps(t.hash,t.stepIds)),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`New Order: ${e.stepIds.join(", ")}`]}),PJ=$({toolName:"flowdot_recipes_duplicate_step",description:"Duplicate recipe step",handler:E(async(e,t)=>e.duplicateRecipeStep(t.hash,t.stepId)),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Step ID: ${e.stepId}`]}),AJ=$({toolName:"flowdot_recipes_add_store",description:"Add recipe store",handler:E(async(e,t)=>{let{hash:r,...n}=t;return e.addRecipeStore(r,n)}),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Store Key: ${e.key}`]}),CJ=$({toolName:"flowdot_recipes_update_store",description:"Update recipe store",handler:E(async(e,t)=>{let{hash:r,storeId:n,...o}=t;return e.updateRecipeStore(r,n,o)}),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Store ID: ${e.storeId}`]}),$J=$({toolName:"flowdot_recipes_delete_store",description:"Delete recipe store",handler:E(async(e,t)=>e.deleteRecipeStore(t.hash,t.storeId)),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Store ID: ${e.storeId}`,"WARNING: This action cannot be undone!"]}),E$={flowdot_recipes_list:aJ,flowdot_recipes_get:cJ,flowdot_recipes_get_definition:lJ,flowdot_recipes_browse:uJ,flowdot_recipes_list_steps:pJ,flowdot_recipes_get_step:dJ,flowdot_recipes_list_stores:fJ,flowdot_recipes_list_links:mJ,flowdot_recipes_get_comments:hJ,flowdot_recipes_create:gJ,flowdot_recipes_update:yJ,flowdot_recipes_fork:wJ,flowdot_recipes_link:xJ,flowdot_recipes_unlink:bJ,flowdot_recipes_vote:_J,flowdot_recipes_favorite:SJ,flowdot_recipes_add_comment:EJ,flowdot_recipes_add_step:TJ,flowdot_recipes_update_step:kJ,flowdot_recipes_reorder_steps:IJ,flowdot_recipes_duplicate_step:PJ,flowdot_recipes_add_store:AJ,flowdot_recipes_update_store:CJ,flowdot_recipes_delete:vJ,flowdot_recipes_delete_step:RJ,flowdot_recipes_delete_store:$J},T$=[{id:"flowdot_recipes_list",name:"List Recipes",description:"List user's agent recipes.",parameters:{required:{}},returns:"Array of recipe objects"},{id:"flowdot_recipes_get",name:"Get Recipe",description:"Get a specific recipe by hash.",parameters:{required:{hash:"The recipe hash"}},returns:"Recipe object with full details"},{id:"flowdot_recipes_get_definition",name:"Get Recipe Definition",description:"Get recipe definition for CLI execution.",parameters:{required:{hash:"The recipe hash"}},returns:"Recipe definition with steps, stores, and input schema"},{id:"flowdot_recipes_browse",name:"Browse Recipes",description:"Browse public recipes with optional filters.",parameters:{required:{},optional:{q:"Search query",category:"Category filter",tags:"Array of tags",sort:"Sort order",page:"Page number",limit:"Results per page"}},returns:"Paginated list of public recipes"},{id:"flowdot_recipes_create",name:"Create Recipe",description:"Create a new agent recipe. Requires permission.",parameters:{required:{name:"Recipe name"},optional:{description:"Recipe description",category:"Recipe category",visibility:"Visibility (private, public, unlisted)"}},returns:"Created recipe object"},{id:"flowdot_recipes_delete",name:"Delete Recipe",description:"Delete a recipe. Always requires permission.",parameters:{required:{hash:"The recipe hash to delete"}},returns:"Success status"},{id:"flowdot_recipes_fork",name:"Fork Recipe",description:"Fork a public recipe to your library. Requires permission.",parameters:{required:{hash:"The recipe hash to fork"},optional:{newName:"Name for the forked recipe"}},returns:"Forked recipe object"},{id:"flowdot_recipes_link",name:"Link Recipe",description:"Link a recipe with an alias for easy access. Requires permission.",parameters:{required:{hash:"The recipe hash",alias:"The alias to use"}},returns:"Link result"},{id:"flowdot_recipes_list_steps",name:"List Recipe Steps",description:"List all steps in a recipe.",parameters:{required:{hash:"The recipe hash"}},returns:"Array of step objects"},{id:"flowdot_recipes_add_step",name:"Add Recipe Step",description:"Add a new step to a recipe. Requires permission.",parameters:{required:{hash:"The recipe hash",type:"Step type (prompt, tool, condition, loop)",name:"Step name"},optional:{prompt:"Prompt template for prompt steps",tool:"Tool name for tool steps",inputs:"Input mapping"}},returns:"Created step object"},{id:"flowdot_recipes_delete_step",name:"Delete Recipe Step",description:"Delete a step from a recipe. Always requires permission.",parameters:{required:{hash:"The recipe hash",stepId:"The step ID to delete"}},returns:"Success status"}]});var OJ,NJ,MJ,DJ,LJ,jJ,FJ,qJ,UJ,GJ,zJ,BJ,HJ,VJ,R$,I$,P$=S(()=>{"use strict";On();OJ=W(E(async(e,t)=>e.getWorkflowPublicUrl(t.workflowId))),NJ=W(E(async(e,t)=>{let{workflowId:r,...n}=t;return e.listSharedResults(r,n)})),MJ=W(E(async(e,t)=>e.getSharedResult(t.workflowId,t.resultHash))),DJ=W(E(async(e,t)=>e.getSharedResultComments(t.workflowId,t.resultHash))),LJ=W(E(async(e,t)=>{let{workflowId:r,...n}=t;return e.listInputPresets(r,n)})),jJ=W(E(async(e,t)=>e.getInputPreset(t.workflowId,t.presetHash))),FJ=$({toolName:"flowdot_sharing_create_shared_result",description:"Create shared result",handler:E(async(e,t)=>{let{workflowId:r,...n}=t;return e.createSharedResult(r,n)}),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Execution ID: ${e.execution_id}`,e.title?`Title: ${e.title}`:""].filter(Boolean)}),qJ=$({toolName:"flowdot_sharing_add_shared_result_comment",description:"Add shared result comment",handler:E(async(e,t)=>e.addSharedResultComment(t.workflowId,t.resultHash,t.content,t.parentId)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Result Hash: ${e.resultHash}`,`Comment: ${e.content.substring(0,50)}${e.content.length>50?"...":""}`]}),UJ=$({toolName:"flowdot_sharing_vote_shared_result",description:"Vote on shared result",handler:E(async(e,t)=>e.voteSharedResult(t.workflowId,t.resultHash,t.vote)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Result Hash: ${e.resultHash}`,`Vote: ${e.vote}`]}),GJ=$({toolName:"flowdot_sharing_create_input_preset",description:"Create input preset",handler:E(async(e,t)=>{let{workflowId:r,...n}=t;return e.createInputPreset(r,n)}),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,e.title?`Title: ${e.title}`:"",`Inputs: ${Object.keys(e.inputs||{}).join(", ")||"none"}`].filter(Boolean)}),zJ=$({toolName:"flowdot_sharing_update_input_preset",description:"Update input preset",handler:E(async(e,t)=>{let{workflowId:r,presetHash:n,...o}=t;return e.updateInputPreset(r,n,o)}),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Preset Hash: ${e.presetHash}`]}),BJ=$({toolName:"flowdot_sharing_delete_input_preset",description:"Delete input preset",handler:E(async(e,t)=>e.deleteInputPreset(t.workflowId,t.presetHash)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Preset Hash: ${e.presetHash}`,"WARNING: This action cannot be undone!"]}),HJ=$({toolName:"flowdot_sharing_vote_input_preset",description:"Vote on input preset",handler:E(async(e,t)=>e.voteInputPreset(t.workflowId,t.presetHash,t.vote)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Preset Hash: ${e.presetHash}`,`Vote: ${e.vote}`]}),VJ=$({toolName:"flowdot_sharing_toggle_community_inputs",description:"Toggle community inputs",handler:E(async(e,t)=>e.toggleCommunityInputs(t.workflowId,t.enabled)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Community Inputs: ${e.enabled?"Enable":"Disable"}`]}),R$={flowdot_sharing_get_public_url:OJ,flowdot_sharing_list_shared_results:NJ,flowdot_sharing_get_shared_result:MJ,flowdot_sharing_get_shared_result_comments:DJ,flowdot_sharing_list_input_presets:LJ,flowdot_sharing_get_input_preset:jJ,flowdot_sharing_create_shared_result:FJ,flowdot_sharing_add_shared_result_comment:qJ,flowdot_sharing_vote_shared_result:UJ,flowdot_sharing_create_input_preset:GJ,flowdot_sharing_update_input_preset:zJ,flowdot_sharing_vote_input_preset:HJ,flowdot_sharing_toggle_community_inputs:VJ,flowdot_sharing_delete_input_preset:BJ},I$=[{id:"flowdot_sharing_get_public_url",name:"Get Workflow Public URL",description:"Get the public URL for a workflow.",parameters:{required:{workflowId:"The workflow ID"}},returns:"Public URL and sharing information"},{id:"flowdot_sharing_list_shared_results",name:"List Shared Results",description:"List shared results for a workflow.",parameters:{required:{workflowId:"The workflow ID"},optional:{sort:"Sort order",limit:"Results per page",page:"Page number"}},returns:"Paginated list of shared results"},{id:"flowdot_sharing_get_shared_result",name:"Get Shared Result",description:"Get a specific shared result.",parameters:{required:{workflowId:"The workflow ID",resultHash:"The shared result hash"}},returns:"Shared result with details"},{id:"flowdot_sharing_create_shared_result",name:"Create Shared Result",description:"Share an execution result publicly. Requires permission.",parameters:{required:{workflowId:"The workflow ID",execution_id:"The execution ID to share"},optional:{title:"Title for the shared result",description:"Description"}},returns:"Created shared result object"},{id:"flowdot_sharing_list_input_presets",name:"List Input Presets",description:"List input presets for a workflow.",parameters:{required:{workflowId:"The workflow ID"},optional:{sort:"Sort order",limit:"Results per page",page:"Page number"}},returns:"List of input presets with community presets"},{id:"flowdot_sharing_get_input_preset",name:"Get Input Preset",description:"Get a specific input preset.",parameters:{required:{workflowId:"The workflow ID",presetHash:"The preset hash"}},returns:"Input preset with details"},{id:"flowdot_sharing_create_input_preset",name:"Create Input Preset",description:"Create an input preset for a workflow. Requires permission.",parameters:{required:{workflowId:"The workflow ID",inputs:"Object containing preset input values"},optional:{title:"Title for the preset",description:"Description of the preset"}},returns:"Created input preset object"},{id:"flowdot_sharing_update_input_preset",name:"Update Input Preset",description:"Update an input preset. Requires permission.",parameters:{required:{workflowId:"The workflow ID",presetHash:"The preset hash to update"},optional:{title:"New title",description:"New description",inputs:"Updated input values"}},returns:"Updated input preset object"},{id:"flowdot_sharing_delete_input_preset",name:"Delete Input Preset",description:"Delete an input preset. Always requires permission.",parameters:{required:{workflowId:"The workflow ID",presetHash:"The preset hash to delete"}},returns:"Success status"},{id:"flowdot_sharing_toggle_community_inputs",name:"Toggle Community Inputs",description:"Enable or disable community input presets for a workflow. Requires permission.",parameters:{required:{workflowId:"The workflow ID",enabled:"True to enable, false to disable community inputs"}},returns:"Toggle result with new status"}]});async function Rv(e){let{message:t,title:r,channelTypes:n=["telegram"],priority:o="normal"}=e;C("GOAL_SERVICES","Sending notification",{messageLength:t.length,title:r,channelTypes:n,priority:o});try{let i=await(await at()).post("/api/comms/notify",{message:t,title:r,channel_types:n,priority:o});if(!i.data)throw new Error("Empty response from notify endpoint");let a=i.data.results||[],c=a.filter(p=>p.success).length,l=a.filter(p=>!p.success).length,u={success_count:i.data.success_count??c,failed_count:i.data.failed_count??l,results:a};return C("GOAL_SERVICES","Notification sent",{successCount:u.success_count,failedCount:u.failed_count}),u}catch(s){throw le("GOAL_SERVICES","Failed to send notification",{error:s.message}),s}}var Iv=S(()=>{"use strict";ct();G();ms();});var WJ,A$,C$,$$=S(()=>{"use strict";Iv();G();WJ=async(e,t)=>{let r=e.payload||{};if(!r.message)return{success:!1,error:"Missing required parameter: message"};try{return C("COMMS","Sending notification",{messageLength:r.message.length,title:r.title,channelTypes:r.channel_types}),{success:!0,data:await Rv({message:r.message,title:r.title,channelTypes:r.channel_types})}}catch(n){return{success:!1,error:`Notification failed: ${n.message}`}}},A$={flowdot_comms_send_notification:WJ},C$=[{id:"flowdot_comms_send_notification",name:"Send Notification",description:"Send a notification message via configured COMMS channels (Telegram, Discord, Slack, etc.).",parameters:{required:{message:"string - The notification message to send (max 2000 chars)"},optional:{title:'string - Title for the notification (default: "FlowDot")',channel_types:'string[] - Channel types to send to (e.g., ["telegram"]). Sends to all configured channels if omitted.'}},returns:"Notification result with success status and per-channel delivery results"}]});var rhe,KJ,Pv=S(()=>{"use strict";c$();p$();m$();y$();x$();S$();k$();P$();$$();Ev();kv();On();rhe={...i$,...l$,...d$,...h$,...v$,...b$,...E$,...R$,...A$},KJ=[...a$,...u$,...f$,...g$,...w$,..._$,...T$,...I$,...C$]});var O$=S(()=>{"use strict";});var Av=S(()=>{"use strict";G();mp();DC();LC();jC();qC();UC();GC();zC();BC();HC();VC();WC();KC();JC();ZC();Pv();O$();Pv();});var Cv=S(()=>{"use strict";G();});import{useState as jt,useEffect as Tp,useRef as Ac,useCallback as qv,useImperativeHandle as rX,forwardRef as nX}from"react";import{Box as Er,Text as te,useInput as oX,useApp as sX,useStdout as iX,Static as aX}from"ink";import cX from"ink-text-input";import lX from"react";import{Box as QO,Text as Jr}from"ink";function Lc(e){let t=Date.now()-e,r=Math.floor(t/1e3),n=Math.floor(r/60),o=Math.floor(n/60),s=n%60,i=r%60,a=[];return o>0&&a.push(`${o}h`),(s>0||o>0)&&a.push(`${s}m`),a.push(`${i}s`),a.join(" ")}function ys(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:e.toString()}function BO(e){let{startTime:t,inputTokens:r,outputTokens:n,provider:o,model:s,actionText:i}=e,a=Lc(t),c=ys(n),l=o&&s?`${o}/${s}`.slice(0,50):s||"unknown",u=["esc to interrupt",a];return r&&r>0&&u.push(`\u2191 ${ys(r)}`),u.push(`\u2193 ${c} tokens`),u.push(l),u.push(i),`(${u.join(" \xB7 ")})`}import{createContext as HO,useContext as VO,useState as WO,useEffect as KO,useMemo as YO}from"react";import{jsx as XO}from"react/jsx-runtime";var Xv=HO({currentTime:Date.now()}),JO=({children:e,interval:t=1e3})=>{let[r,n]=WO(Date.now());KO(()=>{let s=setInterval(()=>{n(Date.now())},t);return()=>clearInterval(s)},[t]);let o=YO(()=>({currentTime:r}),[r]);return XO(Xv.Provider,{value:o,children:e})},Qv=()=>{let{currentTime:e}=VO(Xv);return e},Ro=(e,t=!0)=>{let r=Qv();return!t||!e?0:r-e};import{jsx as Xr,jsxs as ZO}from"react/jsx-runtime";var Zv=({startTime:e,inputTokens:t=0,outputTokens:r,provider:n,model:o,actionText:s})=>{let i=Ro(e,!0),a=Lc(e),c=n&&o?`${n}/${o}`.slice(0,45):o||"unknown",l=`\u2193 ${ys(r)} tokens`,u=t>0?`\u2191 ${ys(t)} \xB7 `:"";return ZO(QO,{children:[Xr(Jr,{dimColor:!0,children:"(esc to interrupt"}),Xr(Jr,{dimColor:!0,children:" \xB7 "}),Xr(Jr,{color:"yellow",children:a}),Xr(Jr,{dimColor:!0,children:" \xB7 "}),u&&Xr(Jr,{color:"blue",children:u}),Xr(Jr,{color:"green",children:l}),Xr(Jr,{dimColor:!0,children:" \xB7 "}),Xr(Jr,{color:"cyan",children:c}),Xr(Jr,{dimColor:!0,children:" \xB7 "}),Xr(Jr,{color:"magenta",bold:!0,children:s}),Xr(Jr,{dimColor:!0,children:")"})]})};import{useState as eN,useEffect as tN}from"react";import{Box as Qn,Text as Be}from"ink";import{Fragment as cN,jsx as qe,jsxs as Rr}from"react/jsx-runtime";var ew=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],rN=300,nN=({isActive:e=!0})=>{let[t,r]=eN(0);return tN(()=>{if(!e)return;let n=setInterval(()=>{r(o=>(o+1)%ew.length)},rN);return()=>clearInterval(n)},[e]),qe(Be,{color:"yellow",children:ew[t]})},oN=({status:e,isActive:t=!0})=>{switch(e){case"completed":return qe(Be,{color:"green",children:"\u2713"});case"in_progress":return qe(nN,{isActive:t});case"failed":return qe(Be,{color:"red",children:"\u2717"});case"pending":default:return qe(Be,{color:"gray",children:"\u25CB"})}},sN=({status:e})=>{let t={idle:"gray",working:"yellow",paused:"blue",completed:"green",failed:"red"},r={idle:"Idle",working:"Working",paused:"Paused",completed:"Done",failed:"Failed"};return qe(Be,{color:t[e],children:r[e]})},iN=({state:e,toggleHint:t="ctrl+t"})=>{let{tasks:r,completedCount:n,totalCount:o,currentTask:s,status:i,title:a}=e,c=s?.activeForm||s?.description||a||"Tasks",l=c.length>30?c.substring(0,27)+"...":c;return Rr(Qn,{children:[qe(Be,{color:"cyan",children:"("}),qe(Be,{color:"white",children:"Tasks"}),qe(Be,{color:"gray",children:" \xB7 "}),Rr(Be,{color:n===o?"green":"yellow",children:[n,"/",o]}),qe(Be,{color:"gray",children:" \xB7 "}),qe(Be,{color:"white",children:`"${l}"`}),qe(Be,{color:"gray",children:" \xB7 "}),qe(sN,{status:i}),qe(Be,{color:"gray",children:" \xB7 "}),qe(Be,{color:"gray",dimColor:!0,children:t}),qe(Be,{color:"cyan",children:")"})]})},aN=({state:e,toggleHint:t="ctrl+t",maxVisible:r=10})=>{let{tasks:n,completedCount:o,totalCount:s,title:i,status:a}=e,l=[...n].sort((p,m)=>p.status==="in_progress"?-1:m.status==="in_progress"?1:p.status==="pending"&&m.status!=="pending"?-1:m.status==="pending"&&p.status!=="pending"?1:0).slice(0,r),u=n.length-l.length;return Rr(Qn,{flexDirection:"column",borderStyle:"round",borderColor:"cyan",paddingX:1,children:[Rr(Qn,{justifyContent:"space-between",children:[Rr(Qn,{children:[qe(Be,{color:"cyan",bold:!0,children:"Tasks"}),i&&Rr(cN,{children:[qe(Be,{color:"gray",children:" - "}),qe(Be,{color:"white",children:i})]}),qe(Be,{color:"gray",children:" ("}),Rr(Be,{color:o===s?"green":"yellow",children:[o,"/",s]}),qe(Be,{color:"gray",children:")"})]}),Rr(Be,{color:"gray",dimColor:!0,children:["[",t," to collapse]"]})]}),Rr(Qn,{flexDirection:"column",marginTop:1,children:[l.map((p,m)=>Rr(Qn,{children:[Rr(Be,{color:"gray",children:[String(m+1).padStart(2," "),". "]}),qe(oN,{status:p.status}),qe(Be,{children:" "}),qe(Be,{color:p.status==="completed"?"green":p.status==="failed"?"red":p.status==="in_progress"?"yellow":"white",children:p.status==="in_progress"&&p.activeForm||p.description}),p.status==="in_progress"&&qe(Be,{color:"gray",dimColor:!0,children:" [in progress]"}),p.status==="failed"&&p.error&&Rr(Be,{color:"red",dimColor:!0,children:[" (",p.error,")"]})]},p.id)),u>0&&Rr(Be,{color:"gray",dimColor:!0,children:[" ... and ",u," more"]})]}),a==="completed"&&qe(Qn,{marginTop:1,children:qe(Be,{color:"green",children:"All tasks completed!"})}),a==="failed"&&qe(Qn,{marginTop:1,children:qe(Be,{color:"red",children:"Some tasks failed. Check errors above."})})]})},Mp=({state:e,isExpanded:t,toggleHint:r="ctrl+t",maxVisible:n=10})=>e.tasks.length===0?null:t?qe(aN,{state:e,toggleHint:r,maxVisible:n}):qe(iN,{state:e,toggleHint:r});Mp.displayName="TaskPanel";import{Box as Yn,Text as ht,useInput as D7}from"ink";import{useState as lN,useEffect as uN}from"react";import{Text as pN}from"ink";import{jsx as fN}from"react/jsx-runtime";var tw=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],dN=300,Zn=({color:e="cyan"})=>{let[t,r]=lN(0);return uN(()=>{let n=setInterval(()=>{r(o=>(o+1)%tw.length)},dN);return()=>clearInterval(n)},[]),fN(pN,{color:e,children:tw[t]})};ct();cr();Yy();xc();ko();Wn();lp();ct();Sr();G();cr();xc();Av();Cv();wp();wv();hs();Ic();Cv();wp();hs();G();ct();G();var cge=60*1e3;Av();ct();Sr();G();vv();gv();ct();cr();Sr();G();var Rge=new pt;ct();cr();Sr();G();var $ge=new pt;ct();cr();Sr();G();var Lge=new pt;Sr();ct();cr();G();var Gge=600*1e3;G();ct();Sr();fs();G();hv();gp();mv();lv();ms();ct();G();ct();Sr();G();vp();G();var aye=10*1024*1024;var cye=process.cwd();ct();G();var L$=null;var dye=600*1e3;function $v(){return L$?.name?L$.name:null}G();yv();fs();fp();var hye=100*1024;G();Ic();gs();gs();bv();mp();Ec();Sc();var i7="\x1B";var Aye=`${i7}\\`;G();var Fye={hubUrl:"",hubPublicKey:process.env.FLOWDOT_HUB_PUBLIC_KEY||"",reconnectEnabled:!0,reconnectMaxAttempts:10,reconnectBaseDelayMs:1e3,reconnectMaxDelayMs:3e4,heartbeatIntervalMs:3e4,connectionTimeoutMs:1e4};var Hye=300*1e3,Vye=600*1e3;var Wye=60*1e3,Kye=3600*1e3,Yye=50*1024,Jye=10*1024,Xye=100*1024;G();ct();Iv();import{Box as _p,Text as Or}from"ink";import{jsx as Nr,jsxs as Ii}from"react/jsx-runtime";var Pc={branch:"\u251C\u2500",lastBranch:"\u2514\u2500",vertical:"\u2502 ",space:" ",corner:"\u23BF "};function O7(e){switch(e){case"running":return Nr(Zn,{});case"completed":return Nr(Or,{color:"green",children:"\u2713"});case"failed":return Nr(Or,{color:"red",children:"\u2717"});case"skipped":return Nr(Or,{color:"gray",children:"\u25CB"});case"pending":default:return Nr(Or,{color:"gray",children:"\u25E6"})}}function N7(e){switch(e){case"running":return"cyan";case"completed":return"green";case"failed":return"red";case"skipped":return"gray";case"pending":default:return"gray"}}function M7(e){switch(e){case"agent":return"\u{1F916}";case"loop":return"\u{1F504}";case"parallel":return"\u2AD8";case"gate":return"\u{1F6A7}";case"branch":return"\u2442";case"invoke":return"\u{1F4E6}";default:return"\u2022"}}function Sp({step:e,isLast:t,depth:r=0,parentPrefix:n="",showDetails:o=!0}){let s=e.status==="running"&&!!e.startTime,i=Ro(e.startTime,s),a=s?i:e.metrics.durationMs,c=t?Pc.lastBranch:Pc.branch,l=n+(t?Pc.space:Pc.vertical),u=[];if(u.push(e.stepName),e.currentTool&&u.push(e.currentTool),e.toolCount>0&&u.push(`${e.toolCount} tool${e.toolCount!==1?"s":""}`),e.activeText&&o&&u.push(Lt(e.activeText,25)),e.iterationIndex!==void 0&&e.iterationTotal!==void 0&&u.push(`[${e.iterationIndex+1}/${e.iterationTotal}]`),o&&(e.metrics.inputTokens>0||e.metrics.outputTokens>0)&&u.push(kc(e.metrics.inputTokens,e.metrics.outputTokens)),o&&a>0&&u.push($r(a)),o&&e.metrics.cost!==void 0&&e.metrics.cost>0&&u.push(Rc(e.metrics.cost)),o&&e.metrics.model){let h=e.metrics.provider?`${e.metrics.provider}/${e.metrics.model}`:e.metrics.model;u.push(Lt(h,30))}let p=N7(e.status),m=fv(e.status);return Ii(_p,{flexDirection:"column",children:[Ii(_p,{children:[Ii(Or,{color:"gray",children:[n,c]}),Nr(Or,{children:" "}),O7(e.status),Nr(Or,{children:" "}),Nr(Or,{color:"gray",children:M7(e.stepType)}),Nr(Or,{children:" "}),Nr(Or,{color:p,bold:e.status==="running",children:u.join(" \u25CF ")})]}),(e.status==="completed"||e.status==="failed")&&Ii(_p,{children:[Ii(Or,{color:"gray",children:[l,Pc.corner]}),Nr(Or,{color:p,children:m}),e.status==="failed"&&e.metrics.cost!==void 0&&Ii(Or,{color:"red",children:[" (cost: $",e.metrics.cost.toFixed(4),")"]})]}),e.children&&e.children.length>0&&Nr(_p,{flexDirection:"column",children:e.children.map((h,f)=>Nr(Sp,{step:h,isLast:f===e.children.length-1,depth:r+1,parentPrefix:l,showDetails:o},h.stepId))})]})}import{jsx as bt,jsxs as lr}from"react/jsx-runtime";function L7(e){switch(e){case"running":return bt(Zn,{});case"completed":return bt(ht,{color:"green",children:"\u2713"});case"failed":return bt(ht,{color:"red",children:"\u2717"});case"paused":return bt(ht,{color:"yellow",children:"\u23F8"});case"pending":default:return bt(ht,{color:"gray",children:"\u25E6"})}}function j7(e){switch(e){case"running":return"cyan";case"completed":return"green";case"failed":return"red";case"paused":return"yellow";case"pending":default:return"gray"}}function F7(e){let t=["th","st","nd","rd"],r=e%100;return e+(t[(r-20)%10]||t[r]||t[0])}function q7(e){switch(e){case"completed":return bt(ht,{color:"green",children:"\u2713"});case"in_progress":return bt(Zn,{});case"pending":default:return bt(ht,{color:"gray",children:"\u25CB"})}}function U7({tasks:e}){let{counters:t,recentTasks:r}=e;return lr(Yn,{flexDirection:"column",marginTop:1,children:[lr(Yn,{children:[bt(ht,{color:"cyan",bold:!0,children:"Tasks: "}),lr(ht,{color:"green",children:[t.completed," done"]}),bt(ht,{color:"gray",children:" / "}),lr(ht,{color:"yellow",children:[t.in_progress," active"]}),bt(ht,{color:"gray",children:" / "}),lr(ht,{color:"gray",children:[t.pending," pending"]}),lr(ht,{color:"gray",children:[" (",t.total," total)"]})]}),r.length>0&&bt(Yn,{flexDirection:"column",marginTop:1,marginLeft:2,children:r.map((n,o)=>lr(Yn,{children:[lr(ht,{color:"gray",children:[o===r.length-1?"\u2514\u2500":"\u251C\u2500"," "]}),q7(n.status),bt(ht,{children:" "}),bt(ht,{color:n.status==="completed"?"green":n.status==="in_progress"?"yellow":"white",children:Lt(n.content,50)}),n.category&&lr(ht,{color:"gray",dimColor:!0,children:[" [",n.category,"]"]})]},n.id))})]})}function G7({recipeName:e,initialPrompt:t,status:r,metrics:n,elapsedMs:o,isExpanded:s,onToggle:i}){let a=j7(r),c=[];c.push(e),t&&c.push(Lt(t,40)),c.push($r(o)),(n.totalInputTokens>0||n.totalOutputTokens>0)&&c.push(kc(n.totalInputTokens,n.totalOutputTokens)),n.totalCost>0&&c.push(Rc(n.totalCost)),n.iterationCount>1&&c.push(`${F7(n.iterationCount)} Attempt`),n.subAgentCount>0&&c.push(`${n.subAgentCount} Sub Agent${n.subAgentCount!==1?"s":""}`),n.toolCallCount>0&&c.push(`${n.toolCallCount} tool${n.toolCallCount!==1?"s":""}`);let l=dv(n.modelsUsed);return l&&c.push(l),lr(Yn,{children:[L7(r),bt(ht,{children:" "}),bt(ht,{color:a,bold:!0,children:c.join(" \u25CF ")}),lr(ht,{color:"gray",children:[" ","[",s?"\u25BC":"\u25B6","]"]})]})}function Ov({state:e,isExpanded:t=!0,onToggleExpand:r,showKeyHint:n=!0}){let o=e?.status==="running",s=Ro(e?.startTime,o),i=o?s:e?.aggregatedMetrics.totalDurationMs||0;if(D7((h,f)=>{h==="r"&&f.ctrl&&r&&r()}),!e)return null;let{recipeName:a,initialPrompt:c,status:l,steps:u,aggregatedMetrics:p,tasks:m}=e;return lr(Yn,{flexDirection:"column",borderStyle:"round",borderColor:"gray",paddingX:1,marginY:1,children:[bt(G7,{recipeName:a,initialPrompt:c,status:l,metrics:p,elapsedMs:i,isExpanded:t,onToggle:r}),t&&u.length>0&&bt(Yn,{flexDirection:"column",marginTop:1,children:u.map((h,f)=>bt(Sp,{step:h,isLast:f===u.length-1,showDetails:!0},h.stepId))}),t&&m&&m.counters.total>0&&bt(U7,{tasks:m}),!t&&bt(Yn,{marginTop:1,children:lr(ht,{color:"gray",children:[p.completedSteps,"/",p.stepCount," steps completed",p.failedSteps>0&&lr(ht,{color:"red",children:[" (",p.failedSteps," failed)"]})]})}),n&&r&&bt(Yn,{marginTop:1,children:lr(ht,{color:"gray",dimColor:!0,children:["Press Ctrl+R to ",t?"collapse":"expand"]})})]})}function Nv({onlyFirst:e=!1}={}){let o="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(o,e?void 0:"g")}var z7=Nv();function Mv(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes("\x1B")&&!e.includes("\x9B")?e:e.replace(z7,"")}import{Text as z$}from"ink";import{jsx as B$}from"react/jsx-runtime";var B7=/^(bold|\/bold|[a-z]+-fg|\/[a-z]+-fg)$/;function H7(e){return B7.test(e)}function H$(e){let t={style:{},children:[]},r=[t],n=0,o=c=>{if(!c)return;let l=r[r.length-1],u=l.children[l.children.length-1];if(typeof u=="string"){l.children[l.children.length-1]=u+c;return}l.children.push(c)},s=c=>{let l=r[r.length-1],u={...l.style};c==="bold"?u.bold=!0:c.endsWith("-fg")&&(u.color=c.replace("-fg",""));let p={style:u,children:[]};l.children.push(p),r.push(p)},i=()=>{r.length>1&&r.pop()};for(;n<e.length;)if(e[n]==="{"){let c=e.indexOf("}",n);if(c===-1){o(e[n]),n++;continue}let l=e.substring(n+1,c);if(!H7(l)){o(e[n]),n++;continue}l.startsWith("/")?i():s(l),n=c+1}else o(e[n]),n++;let a=(c,l)=>{let u=c.children.map((p,m)=>typeof p=="string"?p:a(p,`${l}-${m}`));return B$(z$,{color:c.style.color,bold:c.style.bold,children:u.length===1?u[0]:u},l)};return t.children.map((c,l)=>typeof c=="string"?B$(z$,{children:c},`text-${l}`):a(c,`node-${l}`))}import V7 from"node:os";function V$(){let e=$v();if(e)return e;try{let t=V7.userInfo();if(t.username)return t.username.charAt(0).toUpperCase()+t.username.slice(1)}catch{}return"friend"}function W$(){let e=new Date().getHours();return e<5?"Burning the midnight oil":e<12?"Good morning":e<17?"Good afternoon":e<21?"Good evening":"Working late"}function Dv(){let e=V$();return`${W$()}, ${e}!`}import{useState as Ep,useEffect as W7}from"react";import{Box as fe,Text as D,useInput as K7}from"ink";import{Fragment as tX,jsx as M,jsxs as ne}from"react/jsx-runtime";var Ge={topLeft:"\u250C",topRight:"\u2510",bottomLeft:"\u2514",bottomRight:"\u2518",horizontal:"\u2500",vertical:"\u2502",teeDown:"\u252C",teeUp:"\u2534",teeRight:"\u251C",teeLeft:"\u2524",cross:"\u253C",arrow:"\u25B6",arrowEmpty:"\u25B7"},Pi={selected:"\u2591",error:"\u2593"};function Lv(e){switch(e){case"running":return"\u25D0";case"completed":return"\u2713";case"failed":return"\u2717";case"paused":return"\u23F8";case"skipped":return"\u25CB";case"pending":default:return"\u25E6"}}function jv(e){switch(e){case"running":return"cyan";case"completed":return"green";case"failed":return"red";case"paused":return"yellow";case"skipped":return"gray";case"pending":default:return"gray"}}function Y7(e){switch(e){case"agent":return"\u{1F916}";case"loop":return"\u{1F504}";case"parallel":return"\u2AD8";case"gate":return"\u{1F6A7}";case"branch":return"\u2442";case"invoke":return"\u{1F4E6}";default:return"\u2022"}}function K$(e,t){let r=(e||0)+(t||0);return r===0?"":r>=1e3?`${(r/1e3).toFixed(1)}k`:`${r}`}function J7({steps:e,selectedIndex:t,currentStepId:r}){return ne(fe,{flexDirection:"column",paddingX:2,children:[M(D,{color:"gray",dimColor:!0,children:"Timeline:"}),M(fe,{marginTop:1,children:e.map((o,s)=>{let i=s===t,a=o.stepId===r&&o.status!=="completed"&&o.status!=="failed",c=o.status==="failed",l=s===e.length-1,u=i?c?Pi.error:Pi.selected:" ",p=Lv(o.status),m=jv(o.status),h=Lt(o.stepName,13);return ne(fe,{flexDirection:"row",alignItems:"center",children:[ne(fe,{flexDirection:"column",children:[ne(D,{color:"gray",children:[Ge.topLeft,Ge.horizontal.repeat(17),Ge.topRight]}),ne(D,{children:[M(D,{color:"gray",children:Ge.vertical}),M(D,{color:i?m:"gray",children:u.repeat(17)}),M(D,{color:"gray",children:Ge.vertical})]}),ne(D,{children:[M(D,{color:"gray",children:Ge.vertical}),ne(D,{color:i?m:void 0,bold:i,children:[" ",h.padEnd(16)]}),M(D,{color:"gray",children:Ge.vertical})]}),ne(D,{children:[M(D,{color:"gray",children:Ge.vertical}),M(D,{color:i?m:"gray",children:u.repeat(17)}),M(D,{color:"gray",children:Ge.vertical})]}),ne(D,{color:"gray",children:[Ge.bottomLeft,Ge.horizontal.repeat(17),Ge.bottomRight]}),M(fe,{justifyContent:"center",children:ne(D,{color:m,children:[a?M(Zn,{}):p," ",$r(o.durationMs||0)]})})]}),!l&&M(fe,{marginX:1,children:ne(D,{color:c?"red":"gray",children:[Ge.horizontal,Ge.horizontal,c?"\u2717":Ge.arrow,Ge.horizontal,Ge.horizontal]})})]},o.stepId)})})]})}function X7({toolCalls:e,selectedIndex:t,stepFailed:r}){return e.length===0?M(fe,{borderStyle:"single",borderColor:"gray",paddingX:1,children:M(D,{color:"gray",dimColor:!0,children:"(no tool calls in this step)"})}):M(fe,{flexDirection:"column",borderStyle:"single",borderColor:"gray",children:e.map((n,o)=>{let s=o===t,i=!n.success,a=s?i?Pi.error:Pi.selected:" ",c=n.success?"\u2713":"\u2717",l=n.success?"green":"red",u=Object.entries(n.args||{}).map(([p,m])=>`${p}: ${typeof m=="string"?m:JSON.stringify(m)}`).join(", ");return M(fe,{paddingX:1,children:ne(D,{children:[s?M(D,{color:l,children:Ge.arrow}):" ",ne(D,{color:s?l:void 0,children:[a,n.tool.padEnd(14),a]}),M(D,{color:"gray",children:Lt(u,30).padEnd(32)}),M(D,{color:"gray",children:$r(n.durationMs||0).padStart(6)}),M(D,{children:" "}),M(D,{color:l,children:c})]})},o)})})}function Q7({selectedToolCall:e,step:t}){if(!e)return ne(fe,{flexDirection:"column",paddingX:1,children:[M(D,{color:"cyan",bold:!0,children:"DETAILS"}),M(D,{color:"gray",children:"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"}),M(fe,{marginTop:1,children:ne(D,{color:"gray",dimColor:!0,children:["Select a tool call with \u2191\u2193",`
70
- `,"to view details here."]})})]});let r=e.success?"green":"red";return ne(fe,{flexDirection:"column",paddingX:1,children:[M(D,{color:"cyan",bold:!0,children:"TOOL DETAILS"}),M(D,{color:"gray",children:"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"}),ne(fe,{marginTop:1,flexDirection:"column",children:[ne(D,{children:[M(D,{color:"gray",children:"Tool: "}),M(D,{bold:!0,children:e.tool})]}),ne(D,{children:[M(D,{color:"gray",children:"Status: "}),M(D,{color:r,children:e.success?"\u2713 success":"\u2717 error"})]}),ne(D,{children:[M(D,{color:"gray",children:"Duration: "}),M(D,{children:$r(e.durationMs||0)})]}),ne(fe,{marginTop:1,flexDirection:"column",children:[M(D,{color:"gray",children:"Input:"}),M(fe,{borderStyle:"single",borderColor:"gray",paddingX:1,marginTop:0,children:M(D,{children:JSON.stringify(e.args||{},null,2)})})]}),e.error&&ne(fe,{marginTop:1,flexDirection:"column",children:[M(D,{color:"red",children:"Error Message:"}),M(fe,{borderStyle:"single",borderColor:"red",paddingX:1,marginTop:0,children:M(D,{color:"red",children:e.error})})]})]})]})}function Z7({stores:e,selectedStoreKey:t,storeKeys:r,selectedIndex:n}){return ne(fe,{flexDirection:"column",children:[M(D,{color:"cyan",bold:!0,children:"Recipe Stores:"}),M(fe,{flexDirection:"column",borderStyle:"single",borderColor:"gray",marginTop:1,children:r.length===0?M(fe,{paddingX:1,children:M(D,{color:"gray",dimColor:!0,children:"(no stores)"})}):r.map((o,s)=>{let i=s===n,a=e[o],c=typeof a=="string"?Lt(a,30):Lt(JSON.stringify(a),30);return M(fe,{paddingX:1,children:ne(D,{children:[i?M(D,{color:"cyan",children:Ge.arrow}):" ",ne(D,{color:i?"cyan":void 0,children:[i?Pi.selected:" ",o.padEnd(20),i?Pi.selected:" "]}),M(D,{color:"gray",children:c})]})},o)})})]})}function eX({storeKey:e,storeValue:t}){if(!e)return ne(fe,{flexDirection:"column",paddingX:1,children:[M(D,{color:"cyan",bold:!0,children:"STORE VALUE"}),M(D,{color:"gray",children:"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"}),M(fe,{marginTop:1,children:ne(D,{color:"gray",dimColor:!0,children:["Select a store with \u2191\u2193",`
71
- `,"to view its value here."]})})]});let r=typeof t=="string"?t:JSON.stringify(t,null,2);return ne(fe,{flexDirection:"column",paddingX:1,children:[M(D,{color:"cyan",bold:!0,children:"STORE VALUE"}),M(D,{color:"gray",children:"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"}),ne(fe,{marginTop:1,flexDirection:"column",children:[ne(D,{children:[M(D,{color:"gray",children:"Key: "}),M(D,{bold:!0,children:e})]}),ne(D,{children:[M(D,{color:"gray",children:"Type: "}),M(D,{children:typeof t})]}),ne(fe,{marginTop:1,flexDirection:"column",children:[M(D,{color:"gray",children:"Value:"}),M(fe,{borderStyle:"single",borderColor:"gray",paddingX:1,marginTop:0,children:M(D,{children:Lt(r,500)})})]})]})]})}function Fv({executionState:e,recipeName:t,initialPrompt:r,readOnly:n=!1,onExit:o,onRetryStep:s}){let[i,a]=Ep(0),[c,l]=Ep(0),[u,p]=Ep(0),[m,h]=Ep("tools"),f=e?.stepResults||[],g=f[i]||null,v=g?.toolCalls||[],x=v[c]||null,I=Object.keys(e?.stores||{}),k=I[u]||null,P=k&&e?.stores?e.stores[k]:null;if(W7(()=>{l(0)},[i]),K7((Ke,Se)=>{if(Ke==="q"||Se.escape){o?.();return}if(Se.tab||Ke==="s"){h(ve=>ve==="tools"?"stores":"tools");return}if(Se.leftArrow){a(ve=>Math.max(0,ve-1));return}if(Se.rightArrow){a(ve=>Math.min(f.length-1,ve+1));return}if(Se.upArrow){m==="tools"?l(ve=>Math.max(0,ve-1)):p(ve=>Math.max(0,ve-1));return}if(Se.downArrow){m==="tools"?l(ve=>Math.min(v.length-1,ve+1)):p(ve=>Math.min(I.length-1,ve+1));return}if(Ke==="r"&&!n&&g?.status==="failed"&&s){s(g.stepId);return}}),!e)return null;let R=e.status,A=jv(R),L=Lv(R),Y=e.durationMs||0,ue=e.totalTokens||0,Q=["\u2190\u2192 Timeline","\u2191\u2193 "+(m==="tools"?"Tool Calls":"Stores"),"Tab Toggle View",g?.status==="failed"&&!n?"r Retry Step":null,"q Quit"].filter(Boolean).join(" \u2502 ");return ne(fe,{flexDirection:"column",borderStyle:"round",borderColor:"gray",paddingX:1,children:[ne(fe,{justifyContent:"space-between",paddingX:1,children:[ne(D,{children:[M(D,{color:"cyan",bold:!0,children:"AUDIT: "}),M(D,{bold:!0,children:t}),r&&ne(D,{color:"gray",children:[" - ",Lt(r,40)]})]}),ne(D,{color:A,children:[R==="running"?M(Zn,{}):L," ",$r(Y)," total",ue>0&&ne(D,{color:"gray",children:[" \u2502 ",K$(ue)," tokens"]})]})]}),M(fe,{children:ne(D,{color:"gray",children:[Ge.teeRight,Ge.horizontal.repeat(100),Ge.teeLeft]})}),M(J7,{steps:f,selectedIndex:i,currentStepId:e.currentStepId}),M(fe,{children:ne(D,{color:"gray",children:[Ge.teeRight,Ge.horizontal.repeat(65),Ge.teeDown,Ge.horizontal.repeat(34),Ge.teeLeft]})}),ne(fe,{children:[ne(fe,{flexDirection:"column",width:"66%",paddingX:1,children:[g&&M(fe,{marginBottom:1,children:ne(D,{children:[M(D,{color:"cyan",bold:!0,children:"STEP: "}),M(D,{bold:!0,children:g.stepName})]})}),g&&M(fe,{marginBottom:1,children:ne(D,{color:"gray",children:["Type: ",Y7(g.stepType)," ",g.stepType||"agent"," \u2502 Status: ",M(D,{color:jv(g.status),children:Lv(g.status)})," \u2502 Tokens: ",K$(g.inputTokensUsed,g.outputTokensUsed)]})}),M(fe,{marginBottom:1,children:ne(D,{children:[M(D,{color:m==="tools"?"cyan":"gray",children:m==="tools"?"[Tools]":" Tools "}),M(D,{children:" "}),M(D,{color:m==="stores"?"cyan":"gray",children:m==="stores"?"[Stores]":" Stores "})]})}),m==="tools"?ne(tX,{children:[M(D,{color:"gray",children:"Tool Calls:"}),M(X7,{toolCalls:v,selectedIndex:c,stepFailed:g?.status==="failed"}),g?.output&&ne(fe,{marginTop:1,flexDirection:"column",children:[M(D,{color:"gray",children:"Output Preview:"}),M(D,{color:"gray",dimColor:!0,children:Lt(typeof g.output=="string"?g.output:JSON.stringify(g.output),80)})]}),g?.error&&ne(fe,{marginTop:1,flexDirection:"column",children:[M(D,{color:"red",children:"Error:"}),M(fe,{borderStyle:"single",borderColor:"red",paddingX:1,children:M(D,{color:"red",children:g.error})})]})]}):M(Z7,{stores:e.stores||{},selectedStoreKey:k,storeKeys:I,selectedIndex:u})]}),M(fe,{children:M(D,{color:"gray",children:Ge.vertical})}),M(fe,{flexDirection:"column",width:"33%",children:m==="tools"?M(Q7,{selectedToolCall:x,step:g}):M(eX,{storeKey:k,storeValue:P})})]}),M(fe,{children:ne(D,{color:"gray",children:[Ge.teeRight,Ge.horizontal.repeat(100),Ge.teeLeft]})}),M(fe,{paddingX:1,children:M(D,{color:"gray",dimColor:!0,children:Q})})]})}import{Fragment as Cc,jsx as X,jsxs as It}from"react/jsx-runtime";var Y$=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],uX=300,pX=()=>{let[e,t]=jt(0);return Tp(()=>{let r=setInterval(()=>{t(n=>(n+1)%Y$.length)},uX);return()=>clearInterval(r)},[]),X(te,{children:Y$[e]})},J$=lX.memo(({message:e,parseFormattedText:t})=>typeof e.text=="string"?e.text.includes("{")&&e.text.includes("}")?X(Er,{children:t(e.text)},e.id):e.type==="user"?X(te,{backgroundColor:"blackBright",color:"white",children:e.text},e.id):X(te,{color:e.type==="error"?"red":e.type==="success"?"green":"white",children:e.text},e.id):X(Er,{children:e.text},e.id),(e,t)=>e.message.id===t.message.id);J$.displayName="MessageRenderer";function dX(e,t){let r=e.current;return t&&r.showing&&r.config?(r.config.onSelect(t),!0):!1}var X$=nX(({onInput:e,onExit:t,initialHistory:r,onSaveHistory:n,onCancel:o},s)=>{let[i,a]=jt([]),[c,l]=jt(r),[u,p]=jt(-1),[m,h]=jt(""),[f,g]=jt(!1),[v,x]=jt(null),[I,k]=jt("Type your message | Ctrl+C to exit | Ctrl+K to cancel operation "),[P,R]=jt(null),[A,L]=jt({showing:!1,selectedIndex:0,config:null,commentText:"",isInCommentMode:!1}),Y=Ac(A),[ue,Q]=jt({showing:!1,selectedIndex:0,options:[],onSelect:void 0}),[Ke,Se]=jt({tasks:[],completedCount:0,totalCount:0,status:"idle"}),[ve,pe]=jt(!1),[At,lt]=jt(null),[ze,Ye]=jt(!0),[Ct,re]=jt({showing:!1,executionState:null,recipeName:""}),K=Ac(0),Re=Ac(!1),we=Ac(null),{exit:Ze}=sX(),{stdout:xe}=iX(),Tr=xe.columns||80,[Et,Nn]=jt(0),[Mn,Tt]=jt(0),kp=N=>N>=1e3?`${(N/1e3).toFixed(1)}k`:N.toString(),Oc=()=>It(Er,{borderStyle:"round",paddingX:2,borderColor:"cyan",flexDirection:"column",children:[X(te,{color:"cyan",children:" ______ _ _____ _ "}),X(te,{color:"cyan",children:" | ____| | | __ \\ | | "}),X(te,{color:"cyan",children:" | |__ | | _____ _| | | | ___ | |_ "}),X(te,{color:"cyan",children:" | __| | |/ _ \\ \\ /\\ / / | | |/ _ \\| __|"}),X(te,{color:"cyan",children:" | | | | (_) \\ V V /| |__| | (_) | |_ "}),X(te,{color:"cyan",children:" |_| |_|\\___/ \\_/\\_/ |_____| \\___/ \\__|"}),X(te,{children:" "}),X(te,{color:"yellow",bold:!0,children:Dv()}),X(te,{children:" "}),X(te,{children:"I can help with:"}),X(te,{children:" \u2022 Running workflows"}),X(te,{children:" \u2022 Searching the web for information"}),X(te,{children:" \u2022 Searching & analyzing code"}),X(te,{children:" \u2022 Executing commands (tests, builds, etc.)"}),X(te,{children:" \u2022 Editing & creating files"}),X(te,{children:" \u2022 Installing missing tools"}),X(te,{children:" "}),X(te,{children:'Type "/help" to see available commands'}),X(te,{children:"Use \u2191/\u2193 arrow keys to navigate history"})]}),Nc=Ac(0),fn=qv((N,H)=>{let j=`msg-${Date.now()}-${Nc.current++}`;a(ce=>[...ce,{id:j,type:N,text:H}])},[]);Tp(()=>{fn("system",Oc())},[fn]),Tp(()=>{we.current=At},[At]),Tp(()=>{Y.current=A},[A]);let Rp=qv(async N=>{if(N.trim()){fn("user",`> ${N}`),l(H=>{let j=[...H];return(j.length===0||j[j.length-1]!==N)&&(j.push(N),n(j)),j}),p(-1),h(""),g(!0),x("Processing..."),k("Processing... | Ctrl+K to cancel | Ctrl+C to exit");try{await e(N)}catch(H){fn("error",`Error: ${H.message}`)}finally{g(!1),x(null),k("Type your message | Ctrl+C to exit | Ctrl+K to cancel operation ")}}},[e,fn,n]);oX((N,H)=>{if(A.showing&&A.config){let j=A.config;if(A.isInCommentMode){if(H.escape){j.onSelect("cancelled"),L({showing:!1,selectedIndex:0,config:null,commentText:"",isInCommentMode:!1});return}if(H.return){let ce=Y.current.commentText.trim();if(j.commentRequired&&!ce)return;j.onSelect("approve",ce||void 0),L({showing:!1,selectedIndex:0,config:null,commentText:"",isInCommentMode:!1});return}if(H.backspace||H.delete){L(ce=>({...ce,commentText:ce.commentText.slice(0,-1)}));return}if(N&&!H.ctrl&&!H.meta){L(ce=>({...ce,commentText:ce.commentText+N}));return}return}if(H.upArrow){L(ce=>({...ce,selectedIndex:Math.max(0,ce.selectedIndex-1)}));return}else if(H.downArrow){L(ce=>({...ce,selectedIndex:Math.min(ce.config.options.length-1,ce.selectedIndex+1)}));return}else if(H.return){let ce=j.options[A.selectedIndex];ce&&(j.onSelect(ce.value),L({showing:!1,selectedIndex:0,config:null,commentText:"",isInCommentMode:!1}));return}else if(H.escape){j.onSelect("no_once"),L({showing:!1,selectedIndex:0,config:null,commentText:"",isInCommentMode:!1});return}return}if(ue.showing&&ue.options.length>0){if(H.upArrow){Q(j=>{let ce=j.selectedIndex-1;for(;ce>=0&&j.options[ce].isDisabled;)ce--;return ce<0&&(ce=j.selectedIndex),{...j,selectedIndex:ce}});return}else if(H.downArrow){Q(j=>{let ce=j.selectedIndex+1;for(;ce<j.options.length&&j.options[ce].isDisabled;)ce++;return ce>=j.options.length&&(ce=j.selectedIndex),{...j,selectedIndex:ce}});return}else if(H.return){let j=ue.options[ue.selectedIndex];j&&!j.isDisabled&&(ue.onSelect&&ue.onSelect(j),Q({showing:!1,selectedIndex:0,options:[],onSelect:void 0}));return}else if(H.escape){Q({showing:!1,selectedIndex:0,options:[],onSelect:void 0});return}return}if(!(f&&!(H.ctrl&&N==="c")&&!(H.ctrl&&N==="k")&&!(H.ctrl&&N==="r")&&!(H.ctrl&&N==="t")&&!H.escape)){if(H.upArrow){if(c.length>0){let j=Math.min(u+1,c.length-1);p(j),h(c[c.length-1-j])}}else if(H.downArrow){if(u>-1){let j=Math.max(u-1,-1);p(j),h(j===-1?"":c[c.length-1-j])}}else if(!H.return)if(H.ctrl&&N==="c")t(),Ze();else if(H.ctrl&&N==="k")o(),Re.current=!1;else if(H.escape){let j=Date.now(),ce=we.current;ce&&(ce.status==="running"||ce.status==="paused")?Re.current&&j-K.current<1500?(o(),Re.current=!1):(K.current=j,Re.current=!0,k("\u26A0\uFE0F Press Escape again to cancel recipe | Ctrl+C to exit"),setTimeout(()=>{Re.current=!1,k("Type your message | Ctrl+C to exit | Ctrl+K to cancel operation ")},1500)):o()}else H.ctrl&&N==="t"?pe(j=>!j):H.ctrl&&N==="r"&&Ye(j=>!j)}});let Ci=qv((N,H,j)=>{let ce=It(Er,{borderStyle:"round",paddingX:2,borderColor:j,flexDirection:"column",children:[X(te,{bold:!0,color:j,children:N}),X(te,{children:" "}),Mv(H).split(`
72
- `).map((Mr,Ip)=>X(te,{children:Mr},Ip))]});fn("system",ce)},[fn]);return rX(s,()=>({appendOutput:(N,H)=>fn(N,H),displayError:N=>Ci("Error",N,"red"),displaySuccess:N=>Ci("Success",N,"green"),displayInfo:N=>Ci("Info",N,"cyan"),showLoading:N=>{x(N),g(!0),k(`${N} | Ctrl+K to cancel | Ctrl+C to exit`)},hideLoading:()=>{x(null),g(!1),k("Type your message | Ctrl+C to exit | Ctrl+K to cancel operation ")},incrementCalls:(N=1)=>{Nn(H=>H+N)},addTokens:(N,H=0)=>{Tt(j=>j+N+H)},resetUsage:()=>{Nn(0),Tt(0)},getHistory:()=>c,setHistory:N=>{l(N),n(N)},clearOutput:()=>{process.stdout.write("\x1B[2J\x1B[H"),a([{id:`msg-${Date.now()}-${Nc.current++}`,type:"system",text:Oc()}])},updateStatus:N=>k(N),updateMetrics:N=>{R(H=>H?{...H,...N}:{startTime:N.startTime||Date.now(),inputTokens:N.inputTokens||0,outputTokens:N.outputTokens||0,provider:N.provider||"FlowDot",model:N.model||"unknown",actionText:N.actionText||"thinking"})},resetMetrics:()=>R(null),exitApp:()=>{Ze(),t()},showPermissionPrompt:N=>{let H=N.commentRequired===!0;L({showing:!0,selectedIndex:0,config:N,commentText:"",isInCommentMode:H})},hidePermissionPrompt:N=>{dX(Y,N),L({showing:!1,selectedIndex:0,config:null,commentText:"",isInCommentMode:!1})},showModelSelector:(N,H)=>{Q({showing:!0,selectedIndex:0,options:N,onSelect:H})},hideModelSelector:()=>{Q({showing:!1,selectedIndex:0,options:[],onSelect:void 0})},updateTaskState:N=>{Se(N)},toggleTaskPanel:()=>{pe(N=>!N)},getTaskPanelExpanded:()=>ve,updateRecipeState:N=>{lt(N)},startRecipeExecution:(N,H,j)=>{lt({recipeHash:N,recipeName:H,initialPrompt:j,status:"pending",steps:[],aggregatedMetrics:{totalDurationMs:0,totalInputTokens:0,totalOutputTokens:0,totalCost:0,iterationCount:1,subAgentCount:0,stepCount:0,completedSteps:0,failedSteps:0,skippedSteps:0,toolCallCount:0,modelsUsed:new Set},startTime:Date.now()}),Ye(!0)},endRecipeExecution:N=>{lt(H=>H?{...H,status:N?"completed":"failed"}:null),N&&Ye(!1)},toggleRecipePanel:()=>{Ye(N=>!N)},getRecipePanelExpanded:()=>ze,showAuditView:(N,H,j)=>{re({showing:!0,executionState:N,recipeName:H,initialPrompt:j})},hideAuditView:()=>{re({showing:!1,executionState:null,recipeName:""})},isAuditViewShowing:()=>Ct.showing})),Ct.showing&&Ct.executionState?X(Fv,{executionState:Ct.executionState,recipeName:Ct.recipeName,initialPrompt:Ct.initialPrompt,onQuit:()=>re({showing:!1,executionState:null,recipeName:""})}):It(Er,{flexDirection:"column",children:[X(Er,{flexGrow:1,flexDirection:"column",children:X(aX,{items:i,children:N=>X(J$,{message:N,parseFormattedText:H$},N.id)})}),A.showing&&A.config&&It(Er,{borderStyle:"round",borderColor:"yellow",paddingX:2,flexDirection:"column",marginBottom:1,children:[X(te,{color:"yellow",bold:!0,children:A.isInCommentMode?"\u{1F4DD} Your Response Required":"\u{1F510} Permission Required"}),X(te,{children:" "}),X(te,{children:A.config.prompt}),A.config.path&&It(te,{color:"gray",children:["Path: ",A.config.path]}),X(te,{children:" "}),A.isInCommentMode?It(Cc,{children:[A.config.commentPlaceholder&&X(te,{color:"gray",dimColor:!0,children:A.config.commentPlaceholder}),It(Er,{borderStyle:"single",borderColor:"cyan",paddingX:1,marginTop:1,flexDirection:"column",minHeight:3,children:[A.commentText.split(`
73
- `).map((N,H)=>X(te,{color:"white",children:N||" "},H)),X(te,{color:"cyan",children:"\u2588"})]}),X(te,{children:" "}),X(te,{color:"gray",children:"Enter to submit, Esc to cancel"})]}):It(Cc,{children:[A.config.options.map((N,H)=>It(te,{color:H===A.selectedIndex?"cyan":"white",children:[H===A.selectedIndex?"\u276F ":" ",N.label]},N.value)),X(te,{children:" "}),X(te,{color:"gray",children:"Use \u2191/\u2193 arrows to select, Enter to confirm, Esc to deny"})]})]}),ue.showing&&ue.options.length>0&&It(Er,{borderStyle:"round",borderColor:"cyan",paddingX:2,flexDirection:"column",marginBottom:1,children:[X(te,{color:"cyan",bold:!0,children:"\u{1F3AF} Select a Model"}),X(te,{color:"gray",children:"Use \u2191/\u2193 arrows to select, Enter to confirm, Esc to cancel"}),X(te,{children:" "}),(()=>{let N=ue.options.filter(j=>j.type==="oauth"||j.type==="info"),H=ue.options.filter(j=>j.type==="tier");return It(Cc,{children:[N.length>0&&It(Cc,{children:[X(te,{dimColor:!0,children:"OAuth Providers:"}),N.map(j=>{let Mr=ue.options.indexOf(j)===ue.selectedIndex;return It(Er,{marginLeft:2,flexDirection:"column",children:[It(te,{color:Mr?"cyan":j.isDisabled?"gray":"white",bold:Mr,dimColor:j.isDisabled,children:[Mr?"\u276F ":" ",j.isActive?"\u25CF ":"\u25CB ",j.label,j.isActive&&" (active)"]}),j.description&&X(Er,{marginLeft:4,children:X(te,{dimColor:!0,children:j.description})})]},j.id)}),X(te,{children:" "})]}),H.length>0&&It(Cc,{children:[X(te,{dimColor:!0,children:"FlowDot Tiers:"}),H.map(j=>{let Mr=ue.options.indexOf(j)===ue.selectedIndex;return It(te,{color:Mr?"cyan":"white",bold:Mr,children:[" ",Mr?"\u276F ":" ",j.isActive?"\u25CF ":"\u25CB ",j.label,j.description&&` - ${j.description}`,j.isActive&&" (active)"]},j.id)})]})]})})()]}),At&&!A.showing&&X(Ov,{state:At,isExpanded:ze,onToggleExpand:()=>Ye(N=>!N),showKeyHint:!0}),X(Mp,{state:Ke,isExpanded:ve,toggleHint:"ctrl+t"}),It(Er,{flexDirection:"column",children:[X(te,{color:"cyan",children:"\u2500".repeat(Tr)}),It(Er,{children:[X(te,{color:"green",children:f&&v?X(pX,{}):"> "}),X(cX,{value:m,onChange:h,onSubmit:Rp,focus:!A.showing&&!ue.showing,isDisabled:f,placeholder:f?v||"Processing...":""})]}),X(te,{color:"cyan",children:"\u2500".repeat(Tr)}),f&&P?X(Zv,{startTime:P.startTime,inputTokens:P.inputTokens,outputTokens:P.outputTokens,provider:P.provider,model:P.model,actionText:P.actionText}):It(Er,{children:[X(te,{color:"cyan",width:"70%",wrap:"truncate-end",children:I}),It(te,{color:"yellow",width:"30%",wrap:"truncate-end",children:[Et>0?`${Et} calls`:"",Et>0&&Mn>0?" | ":"",Mn>0?`\u2193 ${kp(Mn)} tokens`:""]})]})]})]})});X$.displayName="InteractiveUI";var fX=["Cogitating","Pondering","Musing","Ruminating","Deliberating","Contemplating","Mulling","Percolating"],Q$=["Churning","Synthesizing","Conjuring","Weaving","Crafting","Orchestrating","Assembling","Forging"],mX=["Scrutinizing","Assessing","Examining","Inspecting","Analyzing","Gauging","Appraising","Measuring"],hX=["Recalibrating","Adjusting","Pivoting","Adapting","Regrouping","Refocusing"],gX=["Distilling","Crystallizing","Condensing","Composing","Formulating","Refining"];function Ai(e){return e[Math.floor(Math.random()*e.length)]}function Uv(e){switch(e){case"thinking":return Ai(fX);case"processing":return Ai(Q$);case"evaluating":return Ai(mX);case"recovery":return Ai(hX);case"synthesis":return Ai(gX);default:return Ai(Q$)}}var yX={"Planning tasks":{category:"thinking",suffix:"the plan"},"Fetching workflows":{category:"processing",suffix:"workflows"},"Synthesizing response":{category:"synthesis",suffix:"the response"},"Evaluating completeness":{category:"evaluating",suffix:"results"},"Attempting recovery":{category:"recovery",suffix:"strategy"},"Re-planning based on feedback":{category:"thinking",suffix:"alternatives"},Processing:{category:"processing",suffix:""},Thinking:{category:"thinking",suffix:""}};function vX(e){for(let[t,r]of Object.entries(yX))if(e.toLowerCase().startsWith(t.toLowerCase())){let n=Uv(r.category),o=r.suffix?` ${r.suffix}`:"",s=e.slice(t.length).trim(),i=s.startsWith("...")?s.slice(3).trim():s;return`${n}${o}${i?` ${i}`:""}...`}return e.endsWith("...")&&e.slice(0,-3).trim().endsWith("ing")?`${Uv("processing")}...`:e}function wX(){return!0}var xX=['Use the agent command for autonomous task execution: flowdot agent "your request"',"You can browse public workflows with: flowdot workflows browse","Set your preferred model with: flowdot config set model capable","Use /clear to reset the chat output","Press \u2191/\u2193 arrow keys to navigate command history","Long outputs are collapsible - press Ctrl+O to expand them","You can cancel a running request with Ctrl+K","Check your API usage with: flowdot config get","FlowDot supports custom workflows for repeated tasks","Use /model <name> to switch models mid-conversation","Recipes let you create reusable agent workflows",'You can search your codebase with: flowdot agent "search for X"',"Need help? Try: flowdot --help"],bX=["See ya!","Catch you later!","Until next time!","Happy coding!","Bye for now!","Take care!"];function Z$(e){return e[Math.floor(Math.random()*e.length)]}function eO(){return Z$(xX)}function tO(){return Z$(bX)}function _X(){let e=tO(),t=eO();return`${e} Tip: ${t}`}var SX=["\xB7","\u2722","*","\u2736","\u273B","\u273D","\u273B","\u2736","*","\u2722"],rO=["#FFD700","#FFA500","#FF6347","#FF4500","#FF6347","#FFA500"];function nO(){return{interval:100,frames:SX}}function EX(e,t){return e==="star"?{spinner:nO(),text:t,color:"yellow"}:{spinner:"dots",text:t}}function TX(e){return rO[e%rO.length]}import{useState as $c}from"react";import{Box as Pt,Text as We,useInput as kX}from"ink";import{Fragment as PX,jsx as gt,jsxs as Qe}from"react/jsx-runtime";var Jn={topLeft:"\u250C",topRight:"\u2510",bottomLeft:"\u2514",bottomRight:"\u2518",horizontal:"\u2500",vertical:"\u2502",teeDown:"\u252C",teeUp:"\u2534",teeRight:"\u251C",teeLeft:"\u2524"};function RX({message:e,index:t,isSelected:r,isExpanded:n}){let s={user:"blue",assistant:"green",system:"gray"}[e.role]||"gray",i=e.role.charAt(0).toUpperCase()+e.role.slice(1),a=e.timestamp?new Date(e.timestamp).toLocaleTimeString():"",c=n?e.content:Lt(e.content.replace(/\n/g," "),70),l=e.metrics,u=l?`${l.tokensIn||0}\u2193 ${l.tokensOut||0}\u2191 ${$r(l.durationMs||0)}`:"";return Qe(Pt,{flexDirection:"column",borderStyle:"single",borderColor:r?s:"gray",marginBottom:1,children:[Qe(Pt,{paddingX:1,justifyContent:"space-between",children:[Qe(We,{children:[Qe(We,{color:s,bold:!0,children:[r?"\u25B6 ":" ","Message ",t+1," (",i,")"]}),a&&Qe(We,{color:"gray",children:[" \u2502 ",a]})]}),Qe(We,{color:"gray",dimColor:!0,children:[u,!n&&" [+]"]})]}),gt(Pt,{paddingX:1,children:gt(We,{wrap:"wrap",children:c})}),n&&e.toolCalls&&e.toolCalls.length>0&&Qe(Pt,{flexDirection:"column",paddingX:1,marginTop:1,children:[Qe(We,{color:"gray",children:["Tool Calls (",e.toolCalls.length,"):"]}),e.toolCalls.map((p,m)=>gt(Pt,{paddingLeft:2,children:Qe(We,{children:[gt(We,{color:p.error?"red":"green",children:p.error?"\u2717":"\u2713"}),Qe(We,{children:[" ",p.tool]}),Qe(We,{color:"gray",children:[" ","(",$r(p.durationMs||0),")"]})]})},m))]})]})}function IX({chat:e,onExit:t,onAskQuestion:r,pendingQuestion:n,pendingAnswer:o,isProcessing:s=!1}){let[i,a]=$c(0),[c,l]=$c(new Set),[u,p]=$c(!1),[m,h]=$c(""),[f,g]=$c(0),v=e.messages||[],x=6;kX((R,A)=>{if(u){if(A.escape){p(!1),h("");return}if(A.return){m.trim()&&r&&(r(m.trim()),h(""),p(!1));return}if(A.backspace||A.delete){h(L=>L.slice(0,-1));return}R&&!A.ctrl&&!A.meta&&h(L=>L+R);return}if(R==="q"||A.escape){t?.();return}if(R==="a"||R==="?"){p(!0);return}if(A.return||R===" "){l(L=>{let Y=new Set(L);return Y.has(i)?Y.delete(i):Y.add(i),Y});return}if(R==="e"){l(new Set(v.map((L,Y)=>Y)));return}if(R==="c"){l(new Set);return}if(A.upArrow){a(L=>{let Y=Math.max(0,L-1);return Y<f&&g(Y),Y});return}if(A.downArrow){a(L=>{let Y=Math.min(v.length-1,L+1);return Y>=f+x&&g(Y-x+1),Y});return}});let I=v.slice(f,f+x),k=e.created?new Date(e.created).toLocaleString():"Unknown",P=e.id.substring(0,8);return Qe(Pt,{flexDirection:"column",borderStyle:"round",borderColor:"cyan",paddingX:1,children:[Qe(Pt,{flexDirection:"column",paddingX:1,children:[Qe(We,{children:[gt(We,{color:"cyan",bold:!0,children:"AUDITING: "}),gt(We,{bold:!0,children:`"${Lt(e.title,50)}"`})]}),Qe(We,{color:"gray",children:["Session ID: ",P,"... \u2502 Created: ",k," \u2502 Messages: ",v.length]})]}),gt(Pt,{children:Qe(We,{color:"gray",children:[Jn.teeRight,Jn.horizontal.repeat(78),Jn.teeLeft]})}),Qe(Pt,{flexDirection:"column",paddingX:1,marginY:1,children:[f>0&&gt(Pt,{justifyContent:"center",children:Qe(We,{color:"gray",children:["\u25B2 ",f," more messages above"]})}),I.map((R,A)=>{let L=f+A;return gt(RX,{message:R,index:L,isSelected:L===i,isExpanded:c.has(L)},L)}),f+x<v.length&&gt(Pt,{justifyContent:"center",children:Qe(We,{color:"gray",children:["\u25BC ",v.length-f-x," more messages below"]})})]}),(n||o)&&Qe(PX,{children:[gt(Pt,{children:Qe(We,{color:"gray",children:[Jn.teeRight,Jn.horizontal.repeat(78),Jn.teeLeft]})}),Qe(Pt,{flexDirection:"column",paddingX:1,marginY:1,children:[n&&gt(Pt,{children:Qe(We,{color:"blue",children:["Q: ",n]})}),s&&gt(Pt,{children:gt(We,{color:"gray",dimColor:!0,children:"Thinking..."})}),o&&gt(Pt,{marginTop:1,children:Qe(We,{color:"green",children:["A: ",o]})})]})]}),gt(Pt,{children:Qe(We,{color:"gray",children:[Jn.teeRight,Jn.horizontal.repeat(78),Jn.teeLeft]})}),gt(Pt,{paddingX:1,children:u?Qe(Pt,{flexDirection:"column",width:"100%",children:[gt(We,{color:"cyan",children:"Ask about this session:"}),Qe(Pt,{children:[gt(We,{color:"cyan",children:"> "}),gt(We,{children:m}),gt(We,{color:"cyan",children:"\u2588"})]}),gt(We,{color:"gray",dimColor:!0,children:"Enter: Submit \u2502 Esc: Cancel"})]}):gt(We,{color:"gray",dimColor:!0,children:"\u2191\u2193 Navigate \u2502 Enter/Space: Expand \u2502 e: Expand All \u2502 c: Collapse All \u2502 a/?: Ask Question \u2502 q: Quit"})})]})}export{IX as AuditSession,Fv as AuditView,X$ as InteractiveUI,Ov as RecipePanel,Sp as RecipeStepRenderer,JO as TimerProvider,Lc as formatElapsedTime,BO as formatMetricsLine,ys as formatTokens,V$ as getDisplayName,_X as getExitMessage,Dv as getPersonalizedGreeting,tO as getRandomFarewell,eO as getRandomTip,EX as getSpinnerOptions,TX as getStarColor,nO as getStarSpinner,Uv as getStatusWord,W$ as getTimeGreeting,wX as isCreativeStatusEnabled,vX as transformStatusMessage,Qv as useCurrentTime,Ro as useElapsedTime};
194
+ ${Q.yellow("The agent is creating a file type that could pose security risks.")}
195
+ ${Q.yellow("Please review the contents carefully before opening or executing.")}
196
+ `}});var Tw=b(()=>{"use strict";Xa();ln();fu();});var kw=b(()=>{"use strict";});var w$=b(()=>{"use strict";kw();});import{exec as DY,spawn as jfe}from"node:child_process";import{promisify as LY}from"node:util";var zfe,Zfe,hp=b(()=>{"use strict";ln();qe();Gt();or();kw();w$();zfe=new Xe,Zfe=LY(DY)});var Za=b(()=>{"use strict";});var v$=b(()=>{"use strict";Za();U();});import{exec as FY}from"node:child_process";import{promisify as qY}from"node:util";var lme,_$=b(()=>{"use strict";Za();U();lme=qY(FY)});var ec=b(()=>{"use strict";Za();v$();_$();});var xme,Rw=b(()=>{"use strict";ln();qe();Gt();or();ec();Uo();xme=new Xe});var S$=b(()=>{"use strict";});var Nt,En=b(()=>{"use strict";Nt=class{validateApiKeys(t){if(!this.requiresApiKey)return{valid:!0,missing:[]};let r=this.apiKeyFields.filter(n=>!t[n]);return{valid:r.length===0,missing:r}}cleanText(t){return t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/\s+/g," ").trim()}}});var Iw,T$,un,Aw=b(()=>{"use strict";U();Iw=class{providers=new Map;register(t){this.providers.has(t.id)&&G("SEARCH",`Provider ${t.id} already registered, overwriting`),this.providers.set(t.id,t),O("SEARCH",`Registered provider: ${t.id}`)}get(t){return this.providers.get(t)}has(t){return this.providers.has(t)}getRegisteredIds(){return Array.from(this.providers.keys())}getAll(){return Array.from(this.providers.values())}clear(){this.providers.clear()}},T$=new Iw,un=T$});var Ws,k$=b(()=>{"use strict";Jr();En();U();Ws=class extends Nt{id="duckduckgo";name="DuckDuckGo";requiresApiKey=!1;apiKeyFields=[];async search(t,r,n){let o=n?.maxResults||10,s=n?.timeout||1e4;O("SEARCH",`DuckDuckGo searching for: ${t}`);try{let i=await this.performHtmlSearch(t,o,s);return i.length>0?(O("SEARCH",`DuckDuckGo found ${i.length} results`),i):(O("SEARCH","DuckDuckGo HTML search returned no results, trying API"),await this.performApiSearch(t,o,s))}catch(i){G("SEARCH",`DuckDuckGo search failed: ${i.message}`);try{return await this.performApiSearch(t,o,s)}catch(a){throw G("SEARCH",`DuckDuckGo fallback also failed: ${a.message}`),new Error(`DuckDuckGo search failed: ${i.message}`)}}}async performHtmlSearch(t,r,n){let o=await tt.get("https://html.duckduckgo.com/html/",{params:{q:t},headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"},timeout:n});return this.parseHtmlResults(o.data,r)}parseHtmlResults(t,r){let n=[],o=/<a[^>]+class="result__a"[^>]+href="([^"]+)"[^>]*>([^<]+)<\/a>/g,s=/<a[^>]+class="result__snippet"[^>]*>([^<]+)<\/a>/g,i=[],a=[],c=[],l;for(;(l=o.exec(t))!==null;)i.push(l[1]),a.push(l[2]);for(;(l=s.exec(t))!==null;)c.push(l[1]);let p=Math.min(i.length,r);for(let u=0;u<p;u++)i[u]&&a[u]&&n.push({title:this.cleanText(a[u]),url:i[u],snippet:c[u]?this.cleanText(c[u]):"",source:"duckduckgo"});return n}async performApiSearch(t,r,n){let s=(await tt.get("https://api.duckduckgo.com/",{params:{q:t,format:"json",no_html:1,skip_disambig:1},timeout:n})).data,i=[];if(s.Abstract&&i.push({title:s.Heading||"Summary",url:s.AbstractURL||"",snippet:s.Abstract,source:"duckduckgo"}),s.RelatedTopics){let a=r-i.length;s.RelatedTopics.slice(0,a).forEach(c=>{c.Text&&c.FirstURL&&i.push({title:c.Text.split(" - ")[0]||"Related Topic",url:c.FirstURL,snippet:c.Text,source:"duckduckgo"})})}return i}}});var Vs,E$=b(()=>{"use strict";Jr();En();U();Vs=class extends Nt{id="google";name="Google Search";requiresApiKey=!0;apiKeyFields=["GOOGLE_SEARCH_API_KEY","GOOGLE_SEARCH_ENGINE_ID"];baseUrl="https://www.googleapis.com/customsearch/v1";async search(t,r,n){let o=this.validateApiKeys(r);if(!o.valid)throw new Error(`Missing required API keys: ${o.missing.join(", ")}`);let s=Math.min(n?.maxResults||10,10),i=n?.timeout||1e4;O("SEARCH",`Google searching for: ${t}`);try{let a=await tt.get(this.baseUrl,{params:{key:r.GOOGLE_SEARCH_API_KEY,cx:r.GOOGLE_SEARCH_ENGINE_ID,q:t,num:s},timeout:i}),c=this.parseResults(a.data);return O("SEARCH",`Google found ${c.length} results`),c}catch(a){throw a.response?.status===403?new Error("Google API quota exceeded or invalid API key"):a.response?.status===400?new Error("Google API: Invalid request or search engine ID"):(G("SEARCH",`Google search failed: ${a.message}`),new Error(`Google search failed: ${a.message}`))}}parseResults(t){return!t.items||!Array.isArray(t.items)?[]:t.items.map(r=>({title:this.cleanText(r.title||""),url:r.link||"",snippet:this.cleanText(r.snippet||""),source:"google"}))}}});var Ys,R$=b(()=>{"use strict";Jr();En();U();Ys=class extends Nt{id="bing";name="Bing Search";requiresApiKey=!0;apiKeyFields=["BING_SEARCH_API_KEY"];baseUrl="https://api.bing.microsoft.com/v7.0/search";async search(t,r,n){let o=this.validateApiKeys(r);if(!o.valid)throw new Error(`Missing required API keys: ${o.missing.join(", ")}`);let s=Math.min(n?.maxResults||10,50),i=n?.timeout||1e4;O("SEARCH",`Bing searching for: ${t}`);try{let a=await tt.get(this.baseUrl,{params:{q:t,count:s,responseFilter:"Webpages"},headers:{"Ocp-Apim-Subscription-Key":r.BING_SEARCH_API_KEY},timeout:i}),c=this.parseResults(a.data);return O("SEARCH",`Bing found ${c.length} results`),c}catch(a){throw a.response?.status===401?new Error("Bing API: Invalid or expired API key"):a.response?.status===403?new Error("Bing API: Quota exceeded or subscription inactive"):(G("SEARCH",`Bing search failed: ${a.message}`),new Error(`Bing search failed: ${a.message}`))}}parseResults(t){return!t.webPages?.value||!Array.isArray(t.webPages.value)?[]:t.webPages.value.map(r=>({title:this.cleanText(r.name||""),url:r.url||"",snippet:this.cleanText(r.snippet||""),source:"bing"}))}}});var Js,I$=b(()=>{"use strict";Jr();En();U();Js=class extends Nt{id="brave";name="Brave Search";requiresApiKey=!0;apiKeyFields=["BRAVE_SEARCH_API_KEY"];baseUrl="https://api.search.brave.com/res/v1/web/search";async search(t,r,n){let o=this.validateApiKeys(r);if(!o.valid)throw new Error(`Missing required API keys: ${o.missing.join(", ")}`);let s=Math.min(n?.maxResults||10,20),i=n?.timeout||1e4;O("SEARCH",`Brave searching for: ${t}`);try{let a=await tt.get(this.baseUrl,{params:{q:t,count:s},headers:{Accept:"application/json","Accept-Encoding":"gzip","X-Subscription-Token":r.BRAVE_SEARCH_API_KEY},timeout:i}),c=this.parseResults(a.data);return O("SEARCH",`Brave found ${c.length} results`),c}catch(a){throw a.response?.status===401?new Error("Brave API: Invalid API key"):a.response?.status===429?new Error("Brave API: Rate limit exceeded"):(G("SEARCH",`Brave search failed: ${a.message}`),new Error(`Brave search failed: ${a.message}`))}}parseResults(t){return!t.web?.results||!Array.isArray(t.web.results)?[]:t.web.results.map(r=>{let n={title:this.cleanText(r.title||""),url:r.url||"",snippet:this.cleanText(r.description||""),source:"brave"};return typeof r.page_age=="string"&&r.page_age.length>0&&(n.publishedDate=r.page_age),Array.isArray(r.extra_snippets)&&r.extra_snippets.length>0&&(n.extraSnippets=r.extra_snippets.filter(o=>typeof o=="string"&&o.length>0).map(o=>this.cleanText(o))),n})}}});var Xs,A$=b(()=>{"use strict";Jr();En();U();Xs=class extends Nt{id="serpapi";name="SerpAPI";requiresApiKey=!0;apiKeyFields=["SERPAPI_API_KEY"];baseUrl="https://serpapi.com/search";async search(t,r,n){let o=this.validateApiKeys(r);if(!o.valid)throw new Error(`Missing required API keys: ${o.missing.join(", ")}`);let s=Math.min(n?.maxResults||10,100),i=n?.timeout||15e3;O("SEARCH",`SerpAPI searching for: ${t}`);try{let a=await tt.get(this.baseUrl,{params:{q:t,api_key:r.SERPAPI_API_KEY,engine:"google",num:s},timeout:i}),c=this.parseResults(a.data);return O("SEARCH",`SerpAPI found ${c.length} results`),c}catch(a){throw a.response?.status===401?new Error("SerpAPI: Invalid API key"):a.response?.status===429?new Error("SerpAPI: Monthly limit exceeded"):(G("SEARCH",`SerpAPI search failed: ${a.message}`),new Error(`SerpAPI search failed: ${a.message}`))}}parseResults(t){return!t.organic_results||!Array.isArray(t.organic_results)?[]:t.organic_results.map(r=>({title:this.cleanText(r.title||""),url:r.link||"",snippet:this.cleanText(r.snippet||""),source:"serpapi"}))}}});var Qs,C$=b(()=>{"use strict";Jr();En();U();Qs=class extends Nt{id="serper";name="Serper";requiresApiKey=!0;apiKeyFields=["SERPER_API_KEY"];baseUrl="https://google.serper.dev/search";async search(t,r,n){let o=this.validateApiKeys(r);if(!o.valid)throw new Error(`Missing required API keys: ${o.missing.join(", ")}`);let s=Math.min(n?.maxResults||10,100),i=n?.timeout||1e4;O("SEARCH",`Serper searching for: ${t}`);try{let a=await tt.post(this.baseUrl,{q:t,num:s},{headers:{"X-API-KEY":r.SERPER_API_KEY,"Content-Type":"application/json"},timeout:i}),c=this.parseResults(a.data);return O("SEARCH",`Serper found ${c.length} results`),c}catch(a){throw a.response?.status===401?new Error("Serper: Invalid API key"):a.response?.status===429?new Error("Serper: Rate limit exceeded"):(G("SEARCH",`Serper search failed: ${a.message}`),new Error(`Serper search failed: ${a.message}`))}}parseResults(t){return!t.organic||!Array.isArray(t.organic)?[]:t.organic.map(r=>{let n={title:this.cleanText(r.title||""),url:r.link||"",snippet:this.cleanText(r.snippet||""),source:"serper"};return typeof r.date=="string"&&r.date.length>0&&(n.publishedDate=r.date),n})}}});var Zs,P$=b(()=>{"use strict";Jr();En();U();Zs=class extends Nt{id="reddit";name="Reddit";requiresApiKey=!0;apiKeyFields=["REDDIT_CLIENT_ID","REDDIT_CLIENT_SECRET"];authUrl="https://www.reddit.com/api/v1/access_token";searchUrl="https://oauth.reddit.com/search";accessToken=null;tokenExpiry=0;async search(t,r,n){let o=this.validateApiKeys(r);if(!o.valid)throw new Error(`Missing required API keys: ${o.missing.join(", ")}`);let s=Math.min(n?.maxResults||10,100),i=n?.timeout||1e4;O("SEARCH",`Reddit searching for: ${t}`);try{let a=await this.getAccessToken(r),c=await tt.get(this.searchUrl,{params:{q:t,limit:s,sort:"relevance",type:"link"},headers:{Authorization:`Bearer ${a}`,"User-Agent":"FlowDot-CLI/1.0"},timeout:i}),l=this.parseResults(c.data);return O("SEARCH",`Reddit found ${l.length} results`),l}catch(a){throw a.response?.status===401?(this.accessToken=null,this.tokenExpiry=0,new Error("Reddit: Authentication failed, please check credentials")):a.response?.status===429?new Error("Reddit: Rate limit exceeded"):(G("SEARCH",`Reddit search failed: ${a.message}`),new Error(`Reddit search failed: ${a.message}`))}}async getAccessToken(t){if(this.accessToken&&Date.now()<this.tokenExpiry)return this.accessToken;try{let r=await tt.post(this.authUrl,"grant_type=client_credentials",{auth:{username:t.REDDIT_CLIENT_ID,password:t.REDDIT_CLIENT_SECRET},headers:{"Content-Type":"application/x-www-form-urlencoded","User-Agent":"FlowDot-CLI/1.0"},timeout:1e4});if(!r.data.access_token)throw new Error("No access token in response");return this.accessToken=r.data.access_token,this.tokenExpiry=Date.now()+r.data.expires_in*1e3-300*1e3,this.accessToken}catch(r){throw new Error(`Reddit authentication failed: ${r.message}`)}}parseResults(t){return!t.data?.children||!Array.isArray(t.data.children)?[]:t.data.children.map(r=>{let n=r.data;return{title:this.cleanText(n.title||""),url:`https://www.reddit.com${n.permalink}`,snippet:this.cleanText(n.selftext?.substring(0,200)||`r/${n.subreddit} \u2022 ${n.score} points \u2022 ${n.num_comments} comments`),source:"reddit"}})}}});var Cw=b(()=>{"use strict";k$();E$();R$();I$();A$();C$();P$();});function aJ(){un.register(new Ws),un.register(new Vs),un.register(new Ys),un.register(new Js),un.register(new Xs),un.register(new Qs),un.register(new Zs),O("SEARCH",`Initialized ${un.getRegisteredIds().length} search providers`)}var $$=b(()=>{"use strict";En();Aw();Cw();Aw();Cw();U();aJ()});var whe,Pw=b(()=>{"use strict";qe();U();whe=300*1e3});var tc=b(()=>{"use strict";});var Ohe,Bo=b(()=>{"use strict";qe();Gt();S$();$$();Pw();U();or();tc();Ohe=new Xe});var vp=b(()=>{"use strict";});import{exec as dJ}from"node:child_process";import{promisify as fJ}from"node:util";var zhe,Uo=b(()=>{"use strict";hp();Rw();Bo();ln();vp();Qa();zhe=fJ(dJ)});var Go=b(()=>{"use strict";U();tc();});var Ho=b(()=>{"use strict";U();tc();});var oge,U$=b(()=>{"use strict";Gt();U();Go();Ho();oge=new Xe});var rc=b(()=>{"use strict";Uo();Go();Ho();U$();U();tc();});var Ow=b(()=>{"use strict";Xa();Sw();fu();Tw()});var B$=b(()=>{"use strict";rc();Ow();});var H$=v((xp,G$)=>{(function(e,t){typeof xp=="object"&&typeof G$<"u"?t(xp):typeof define=="function"&&define.amd?define(["exports"],t):(e=e||self,t(e.exprEval={}))})(xp,function(e){"use strict";var t="INUMBER",r="IOP1",n="IOP2",o="IOP3",s="IVAR",i="IVARNAME",a="IFUNCALL",c="IFUNDEF",l="IEXPR",p="IEXPREVAL",u="IMEMBER",d="IENDSTATEMENT",g="IARRAY";function m(f,y){this.type=f,this.value=y??0}m.prototype.toString=function(){switch(this.type){case t:case r:case n:case o:case s:case i:case d:return this.value;case a:return"CALL "+this.value;case c:return"DEF "+this.value;case g:return"ARRAY "+this.value;case u:return"."+this.value;default:return"Invalid Instruction"}};function h(f){return new m(r,f)}function w(f){return new m(n,f)}function x(f){return new m(o,f)}function E(f,y,T,A,M){for(var Y=[],B=[],ce,_e,nt,ze,ht=0;ht<f.length;ht++){var ie=f[ht],at=ie.type;if(at===t||at===i)Array.isArray(ie.value)?Y.push.apply(Y,E(ie.value.map(function(gc){return new m(t,gc)}).concat(new m(g,ie.value.length)),y,T,A,M)):Y.push(ie);else if(at===s&&M.hasOwnProperty(ie.value))ie=new m(t,M[ie.value]),Y.push(ie);else if(at===n&&Y.length>1)_e=Y.pop(),ce=Y.pop(),ze=T[ie.value],ie=new m(t,ze(ce.value,_e.value)),Y.push(ie);else if(at===o&&Y.length>2)nt=Y.pop(),_e=Y.pop(),ce=Y.pop(),ie.value==="?"?Y.push(ce.value?_e.value:nt.value):(ze=A[ie.value],ie=new m(t,ze(ce.value,_e.value,nt.value)),Y.push(ie));else if(at===r&&Y.length>0)ce=Y.pop(),ze=y[ie.value],ie=new m(t,ze(ce.value)),Y.push(ie);else if(at===l){for(;Y.length>0;)B.push(Y.shift());B.push(new m(l,E(ie.value,y,T,A,M)))}else if(at===u&&Y.length>0)ce=Y.pop(),Y.push(new m(t,ce.value[ie.value]));else{for(;Y.length>0;)B.push(Y.shift());B.push(ie)}}for(;Y.length>0;)B.push(Y.shift());return B}function S(f,y,T){for(var A=[],M=0;M<f.length;M++){var Y=f[M],B=Y.type;if(B===s&&Y.value===y)for(var ce=0;ce<T.tokens.length;ce++){var _e=T.tokens[ce],nt;_e.type===r?nt=h(_e.value):_e.type===n?nt=w(_e.value):_e.type===o?nt=x(_e.value):nt=new m(_e.type,_e.value),A.push(nt)}else B===l?A.push(new m(l,S(Y.value,y,T))):A.push(Y)}return A}function k(f,y,T){var A=[],M,Y,B,ce,_e,nt;if(C(f))return P(f,T);for(var ze=f.length,ht=0;ht<ze;ht++){var ie=f[ht],at=ie.type;if(at===t||at===i)A.push(ie.value);else if(at===n)Y=A.pop(),M=A.pop(),ie.value==="and"?A.push(M?!!k(Y,y,T):!1):ie.value==="or"?A.push(M?!0:!!k(Y,y,T)):ie.value==="="?(ce=y.binaryOps[ie.value],A.push(ce(M,k(Y,y,T),T))):(ce=y.binaryOps[ie.value],A.push(ce(P(M,T),P(Y,T))));else if(at===o)B=A.pop(),Y=A.pop(),M=A.pop(),ie.value==="?"?A.push(k(M?Y:B,y,T)):(ce=y.ternaryOps[ie.value],A.push(ce(P(M,T),P(Y,T),P(B,T))));else if(at===s)if(ie.value in y.functions)A.push(y.functions[ie.value]);else if(ie.value in y.unaryOps&&y.parser.isOperatorEnabled(ie.value))A.push(y.unaryOps[ie.value]);else{var gc=T[ie.value];if(gc!==void 0)A.push(gc);else throw new Error("undefined variable: "+ie.value)}else if(at===r)M=A.pop(),ce=y.unaryOps[ie.value],A.push(ce(P(M,T)));else if(at===a){for(nt=ie.value,_e=[];nt-- >0;)_e.unshift(P(A.pop(),T));if(ce=A.pop(),ce.apply&&ce.call)A.push(ce.apply(void 0,_e));else throw new Error(ce+" is not a function")}else if(at===c)A.push((function(){for(var lM=A.pop(),Lp=[],uM=ie.value;uM-- >0;)Lp.unshift(A.pop());var xv=A.pop(),Fp=function(){for(var bv=Object.assign({},T),yc=0,pM=Lp.length;yc<pM;yc++)bv[Lp[yc]]=arguments[yc];return k(lM,y,bv)};return Object.defineProperty(Fp,"name",{value:xv,writable:!1}),T[xv]=Fp,Fp})());else if(at===l)A.push(I(ie,y));else if(at===p)A.push(ie);else if(at===u)M=A.pop(),A.push(M[ie.value]);else if(at===d)A.pop();else if(at===g){for(nt=ie.value,_e=[];nt-- >0;)_e.unshift(A.pop());A.push(_e)}else throw new Error("invalid Expression")}if(A.length>1)throw new Error("invalid Expression (parity)");return A[0]===0?0:P(A[0],T)}function I(f,y,T){return C(f)?f:{type:p,value:function(A){return k(f.value,y,A)}}}function C(f){return f&&f.type===p}function P(f,y){return C(f)?f.value(y):f}function $(f,y){for(var T=[],A,M,Y,B,ce,_e,nt=0;nt<f.length;nt++){var ze=f[nt],ht=ze.type;if(ht===t)typeof ze.value=="number"&&ze.value<0?T.push("("+ze.value+")"):Array.isArray(ze.value)?T.push("["+ze.value.map(H).join(", ")+"]"):T.push(H(ze.value));else if(ht===n)M=T.pop(),A=T.pop(),B=ze.value,y?B==="^"?T.push("Math.pow("+A+", "+M+")"):B==="and"?T.push("(!!"+A+" && !!"+M+")"):B==="or"?T.push("(!!"+A+" || !!"+M+")"):B==="||"?T.push("(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }(("+A+"),("+M+")))"):B==="=="?T.push("("+A+" === "+M+")"):B==="!="?T.push("("+A+" !== "+M+")"):B==="["?T.push(A+"[("+M+") | 0]"):T.push("("+A+" "+B+" "+M+")"):B==="["?T.push(A+"["+M+"]"):T.push("("+A+" "+B+" "+M+")");else if(ht===o)if(Y=T.pop(),M=T.pop(),A=T.pop(),B=ze.value,B==="?")T.push("("+A+" ? "+M+" : "+Y+")");else throw new Error("invalid Expression");else if(ht===s||ht===i)T.push(ze.value);else if(ht===r)A=T.pop(),B=ze.value,B==="-"||B==="+"?T.push("("+B+A+")"):y?B==="not"?T.push("(!"+A+")"):B==="!"?T.push("fac("+A+")"):T.push(B+"("+A+")"):B==="!"?T.push("("+A+"!)"):T.push("("+B+" "+A+")");else if(ht===a){for(_e=ze.value,ce=[];_e-- >0;)ce.unshift(T.pop());B=T.pop(),T.push(B+"("+ce.join(", ")+")")}else if(ht===c){for(M=T.pop(),_e=ze.value,ce=[];_e-- >0;)ce.unshift(T.pop());A=T.pop(),y?T.push("("+A+" = function("+ce.join(", ")+") { return "+M+" })"):T.push("("+A+"("+ce.join(", ")+") = "+M+")")}else if(ht===u)A=T.pop(),T.push(A+"."+ze.value);else if(ht===g){for(_e=ze.value,ce=[];_e-- >0;)ce.unshift(T.pop());T.push("["+ce.join(", ")+"]")}else if(ht===l)T.push("("+$(ze.value,y)+")");else if(ht!==d)throw new Error("invalid Expression")}return T.length>1&&(y?T=[T.join(",")]:T=[T.join(";")]),String(T[0])}function H(f){return typeof f=="string"?JSON.stringify(f).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"):f}function ge(f,y){for(var T=0;T<f.length;T++)if(f[T]===y)return!0;return!1}function De(f,y,T){T=T||{};for(var A=!!T.withMembers,M=null,Y=0;Y<f.length;Y++){var B=f[Y];B.type===s||B.type===i?!A&&!ge(y,B.value)?y.push(B.value):(M!==null&&(ge(y,M)||y.push(M)),M=B.value):B.type===u&&A&&M!==null?M+="."+B.value:B.type===l?De(B.value,y,T):M!==null&&(ge(y,M)||y.push(M),M=null)}M!==null&&!ge(y,M)&&y.push(M)}function Z(f,y){this.tokens=f,this.parser=y,this.unaryOps=y.unaryOps,this.binaryOps=y.binaryOps,this.ternaryOps=y.ternaryOps,this.functions=y.functions}Z.prototype.simplify=function(f){return f=f||{},new Z(E(this.tokens,this.unaryOps,this.binaryOps,this.ternaryOps,f),this.parser)},Z.prototype.substitute=function(f,y){return y instanceof Z||(y=this.parser.parse(String(y))),new Z(S(this.tokens,f,y),this.parser)},Z.prototype.evaluate=function(f){return f=f||{},k(this.tokens,this,f)},Z.prototype.toString=function(){return $(this.tokens,!1)},Z.prototype.symbols=function(f){f=f||{};var y=[];return De(this.tokens,y,f),y},Z.prototype.variables=function(f){f=f||{};var y=[];De(this.tokens,y,f);var T=this.functions;return y.filter(function(A){return!(A in T)})},Z.prototype.toJSFunction=function(f,y){var T=this,A=new Function(f,"with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return "+$(this.simplify(y).tokens,!0)+"; }");return function(){return A.apply(T,arguments)}};var J="TEOF",te="TOP",dt="TNUMBER",lt="TSTRING",ne="TPAREN",W="TBRACKET",Ce="TCOMMA",Ct="TNAME",Ee="TSEMICOLON";function Qe(f,y,T){this.type=f,this.value=y,this.index=T}Qe.prototype.toString=function(){return this.type+": "+this.value};function Re(f,y){this.pos=0,this.current=null,this.unaryOps=f.unaryOps,this.binaryOps=f.binaryOps,this.ternaryOps=f.ternaryOps,this.consts=f.consts,this.expression=y,this.savedPosition=0,this.savedCurrent=null,this.options=f.options,this.parser=f}Re.prototype.newToken=function(f,y,T){return new Qe(f,y,T??this.pos)},Re.prototype.save=function(){this.savedPosition=this.pos,this.savedCurrent=this.current},Re.prototype.restore=function(){this.pos=this.savedPosition,this.current=this.savedCurrent},Re.prototype.next=function(){if(this.pos>=this.expression.length)return this.newToken(J,"EOF");if(this.isWhitespace()||this.isComment())return this.next();if(this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isBracket()||this.isComma()||this.isSemicolon()||this.isNamedOp()||this.isConst()||this.isName())return this.current;this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')},Re.prototype.isString=function(){var f=!1,y=this.pos,T=this.expression.charAt(y);if(T==="'"||T==='"')for(var A=this.expression.indexOf(T,y+1);A>=0&&this.pos<this.expression.length;){if(this.pos=A+1,this.expression.charAt(A-1)!=="\\"){var M=this.expression.substring(y+1,A);this.current=this.newToken(lt,this.unescape(M),y),f=!0;break}A=this.expression.indexOf(T,A+1)}return f},Re.prototype.isParen=function(){var f=this.expression.charAt(this.pos);return f==="("||f===")"?(this.current=this.newToken(ne,f),this.pos++,!0):!1},Re.prototype.isBracket=function(){var f=this.expression.charAt(this.pos);return(f==="["||f==="]")&&this.isOperatorEnabled("[")?(this.current=this.newToken(W,f),this.pos++,!0):!1},Re.prototype.isComma=function(){var f=this.expression.charAt(this.pos);return f===","?(this.current=this.newToken(Ce,","),this.pos++,!0):!1},Re.prototype.isSemicolon=function(){var f=this.expression.charAt(this.pos);return f===";"?(this.current=this.newToken(Ee,";"),this.pos++,!0):!1},Re.prototype.isConst=function(){for(var f=this.pos,y=f;y<this.expression.length;y++){var T=this.expression.charAt(y);if(T.toUpperCase()===T.toLowerCase()&&(y===this.pos||T!=="_"&&T!=="."&&(T<"0"||T>"9")))break}if(y>f){var A=this.expression.substring(f,y);if(A in this.consts)return this.current=this.newToken(dt,this.consts[A]),this.pos+=A.length,!0}return!1},Re.prototype.isNamedOp=function(){for(var f=this.pos,y=f;y<this.expression.length;y++){var T=this.expression.charAt(y);if(T.toUpperCase()===T.toLowerCase()&&(y===this.pos||T!=="_"&&(T<"0"||T>"9")))break}if(y>f){var A=this.expression.substring(f,y);if(this.isOperatorEnabled(A)&&(A in this.binaryOps||A in this.unaryOps||A in this.ternaryOps))return this.current=this.newToken(te,A),this.pos+=A.length,!0}return!1},Re.prototype.isName=function(){for(var f=this.pos,y=f,T=!1;y<this.expression.length;y++){var A=this.expression.charAt(y);if(A.toUpperCase()===A.toLowerCase()){if(y===this.pos&&(A==="$"||A==="_")){A==="_"&&(T=!0);continue}else if(y===this.pos||!T||A!=="_"&&(A<"0"||A>"9"))break}else T=!0}if(T){var M=this.expression.substring(f,y);return this.current=this.newToken(Ct,M),this.pos+=M.length,!0}return!1},Re.prototype.isWhitespace=function(){for(var f=!1,y=this.expression.charAt(this.pos);(y===" "||y===" "||y===`
197
+ `||y==="\r")&&(f=!0,this.pos++,!(this.pos>=this.expression.length));)y=this.expression.charAt(this.pos);return f};var ft=/^[0-9a-f]{4}$/i;Re.prototype.unescape=function(f){var y=f.indexOf("\\");if(y<0)return f;for(var T=f.substring(0,y);y>=0;){var A=f.charAt(++y);switch(A){case"'":T+="'";break;case'"':T+='"';break;case"\\":T+="\\";break;case"/":T+="/";break;case"b":T+="\b";break;case"f":T+="\f";break;case"n":T+=`
198
+ `;break;case"r":T+="\r";break;case"t":T+=" ";break;case"u":var M=f.substring(y+1,y+5);ft.test(M)||this.parseError("Illegal escape sequence: \\u"+M),T+=String.fromCharCode(parseInt(M,16)),y+=4;break;default:throw this.parseError('Illegal escape sequence: "\\'+A+'"')}++y;var Y=f.indexOf("\\",y);T+=f.substring(y,Y<0?f.length:Y),y=Y}return T},Re.prototype.isComment=function(){var f=this.expression.charAt(this.pos);return f==="/"&&this.expression.charAt(this.pos+1)==="*"?(this.pos=this.expression.indexOf("*/",this.pos)+2,this.pos===1&&(this.pos=this.expression.length),!0):!1},Re.prototype.isRadixInteger=function(){var f=this.pos;if(f>=this.expression.length-2||this.expression.charAt(f)!=="0")return!1;++f;var y,T;if(this.expression.charAt(f)==="x")y=16,T=/^[0-9a-f]$/i,++f;else if(this.expression.charAt(f)==="b")y=2,T=/^[01]$/i,++f;else return!1;for(var A=!1,M=f;f<this.expression.length;){var Y=this.expression.charAt(f);if(T.test(Y))f++,A=!0;else break}return A&&(this.current=this.newToken(dt,parseInt(this.expression.substring(M,f),y)),this.pos=f),A},Re.prototype.isNumber=function(){for(var f=!1,y=this.pos,T=y,A=y,M=!1,Y=!1,B;y<this.expression.length&&(B=this.expression.charAt(y),B>="0"&&B<="9"||!M&&B===".");)B==="."?M=!0:Y=!0,y++,f=Y;if(f&&(A=y),B==="e"||B==="E"){y++;for(var ce=!0,_e=!1;y<this.expression.length;){if(B=this.expression.charAt(y),ce&&(B==="+"||B==="-"))ce=!1;else if(B>="0"&&B<="9")_e=!0,ce=!1;else break;y++}_e||(y=A)}return f?(this.current=this.newToken(dt,parseFloat(this.expression.substring(T,y))),this.pos=y):this.pos=A,f},Re.prototype.isOperator=function(){var f=this.pos,y=this.expression.charAt(this.pos);if(y==="+"||y==="-"||y==="*"||y==="/"||y==="%"||y==="^"||y==="?"||y===":"||y===".")this.current=this.newToken(te,y);else if(y==="\u2219"||y==="\u2022")this.current=this.newToken(te,"*");else if(y===">")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(te,">="),this.pos++):this.current=this.newToken(te,">");else if(y==="<")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(te,"<="),this.pos++):this.current=this.newToken(te,"<");else if(y==="|")if(this.expression.charAt(this.pos+1)==="|")this.current=this.newToken(te,"||"),this.pos++;else return!1;else if(y==="=")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(te,"=="),this.pos++):this.current=this.newToken(te,y);else if(y==="!")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(te,"!="),this.pos++):this.current=this.newToken(te,y);else return!1;return this.pos++,this.isOperatorEnabled(this.current.value)?!0:(this.pos=f,!1)},Re.prototype.isOperatorEnabled=function(f){return this.parser.isOperatorEnabled(f)},Re.prototype.getCoordinates=function(){var f=0,y,T=-1;do f++,y=this.pos-T,T=this.expression.indexOf(`
199
+ `,T+1);while(T>=0&&T<this.pos);return{line:f,column:y}},Re.prototype.parseError=function(f){var y=this.getCoordinates();throw new Error("parse error ["+y.line+":"+y.column+"]: "+f)};function de(f,y,T){this.parser=f,this.tokens=y,this.current=null,this.nextToken=null,this.next(),this.savedCurrent=null,this.savedNextToken=null,this.allowMemberAccess=T.allowMemberAccess!==!1}de.prototype.next=function(){return this.current=this.nextToken,this.nextToken=this.tokens.next()},de.prototype.tokenMatches=function(f,y){return typeof y>"u"?!0:Array.isArray(y)?ge(y,f.value):typeof y=="function"?y(f):f.value===y},de.prototype.save=function(){this.savedCurrent=this.current,this.savedNextToken=this.nextToken,this.tokens.save()},de.prototype.restore=function(){this.tokens.restore(),this.current=this.savedCurrent,this.nextToken=this.savedNextToken},de.prototype.accept=function(f,y){return this.nextToken.type===f&&this.tokenMatches(this.nextToken,y)?(this.next(),!0):!1},de.prototype.expect=function(f,y){if(!this.accept(f,y)){var T=this.tokens.getCoordinates();throw new Error("parse error ["+T.line+":"+T.column+"]: Expected "+(y||f))}},de.prototype.parseAtom=function(f){var y=this.tokens.unaryOps;function T(M){return M.value in y}if(this.accept(Ct)||this.accept(te,T))f.push(new m(s,this.current.value));else if(this.accept(dt))f.push(new m(t,this.current.value));else if(this.accept(lt))f.push(new m(t,this.current.value));else if(this.accept(ne,"("))this.parseExpression(f),this.expect(ne,")");else if(this.accept(W,"["))if(this.accept(W,"]"))f.push(new m(g,0));else{var A=this.parseArrayList(f);f.push(new m(g,A))}else throw new Error("unexpected "+this.nextToken)},de.prototype.parseExpression=function(f){var y=[];this.parseUntilEndStatement(f,y)||(this.parseVariableAssignmentExpression(y),!this.parseUntilEndStatement(f,y)&&this.pushExpression(f,y))},de.prototype.pushExpression=function(f,y){for(var T=0,A=y.length;T<A;T++)f.push(y[T])},de.prototype.parseUntilEndStatement=function(f,y){return this.accept(Ee)?(this.nextToken&&this.nextToken.type!==J&&!(this.nextToken.type===ne&&this.nextToken.value===")")&&y.push(new m(d)),this.nextToken.type!==J&&this.parseExpression(y),f.push(new m(l,y)),!0):!1},de.prototype.parseArrayList=function(f){for(var y=0;!this.accept(W,"]");)for(this.parseExpression(f),++y;this.accept(Ce);)this.parseExpression(f),++y;return y},de.prototype.parseVariableAssignmentExpression=function(f){for(this.parseConditionalExpression(f);this.accept(te,"=");){var y=f.pop(),T=[],A=f.length-1;if(y.type===a){if(!this.tokens.isOperatorEnabled("()="))throw new Error("function definition is not permitted");for(var M=0,Y=y.value+1;M<Y;M++){var B=A-M;f[B].type===s&&(f[B]=new m(i,f[B].value))}this.parseVariableAssignmentExpression(T),f.push(new m(l,T)),f.push(new m(c,y.value));continue}if(y.type!==s&&y.type!==u)throw new Error("expected variable for assignment");this.parseVariableAssignmentExpression(T),f.push(new m(i,y.value)),f.push(new m(l,T)),f.push(w("="))}},de.prototype.parseConditionalExpression=function(f){for(this.parseOrExpression(f);this.accept(te,"?");){var y=[],T=[];this.parseConditionalExpression(y),this.expect(te,":"),this.parseConditionalExpression(T),f.push(new m(l,y)),f.push(new m(l,T)),f.push(x("?"))}},de.prototype.parseOrExpression=function(f){for(this.parseAndExpression(f);this.accept(te,"or");){var y=[];this.parseAndExpression(y),f.push(new m(l,y)),f.push(w("or"))}},de.prototype.parseAndExpression=function(f){for(this.parseComparison(f);this.accept(te,"and");){var y=[];this.parseComparison(y),f.push(new m(l,y)),f.push(w("and"))}};var no=["==","!=","<","<=",">=",">","in"];de.prototype.parseComparison=function(f){for(this.parseAddSub(f);this.accept(te,no);){var y=this.current;this.parseAddSub(f),f.push(w(y.value))}};var fn=["+","-","||"];de.prototype.parseAddSub=function(f){for(this.parseTerm(f);this.accept(te,fn);){var y=this.current;this.parseTerm(f),f.push(w(y.value))}};var mt=["*","/","%"];de.prototype.parseTerm=function(f){for(this.parseFactor(f);this.accept(te,mt);){var y=this.current;this.parseFactor(f),f.push(w(y.value))}},de.prototype.parseFactor=function(f){var y=this.tokens.unaryOps;function T(M){return M.value in y}if(this.save(),this.accept(te,T)){if(this.current.value!=="-"&&this.current.value!=="+"){if(this.nextToken.type===ne&&this.nextToken.value==="("){this.restore(),this.parseExponential(f);return}else if(this.nextToken.type===Ee||this.nextToken.type===Ce||this.nextToken.type===J||this.nextToken.type===ne&&this.nextToken.value===")"){this.restore(),this.parseAtom(f);return}}var A=this.current;this.parseFactor(f),f.push(h(A.value))}else this.parseExponential(f)},de.prototype.parseExponential=function(f){for(this.parsePostfixExpression(f);this.accept(te,"^");)this.parseFactor(f),f.push(w("^"))},de.prototype.parsePostfixExpression=function(f){for(this.parseFunctionCall(f);this.accept(te,"!");)f.push(h("!"))},de.prototype.parseFunctionCall=function(f){var y=this.tokens.unaryOps;function T(Y){return Y.value in y}if(this.accept(te,T)){var A=this.current;this.parseAtom(f),f.push(h(A.value))}else for(this.parseMemberExpression(f);this.accept(ne,"(");)if(this.accept(ne,")"))f.push(new m(a,0));else{var M=this.parseArgumentList(f);f.push(new m(a,M))}},de.prototype.parseArgumentList=function(f){for(var y=0;!this.accept(ne,")");)for(this.parseExpression(f),++y;this.accept(Ce);)this.parseExpression(f),++y;return y},de.prototype.parseMemberExpression=function(f){for(this.parseAtom(f);this.accept(te,".")||this.accept(W,"[");){var y=this.current;if(y.value==="."){if(!this.allowMemberAccess)throw new Error('unexpected ".", member access is not permitted');this.expect(Ct),f.push(new m(u,this.current.value))}else if(y.value==="["){if(!this.tokens.isOperatorEnabled("["))throw new Error('unexpected "[]", arrays are disabled');this.parseExpression(f),this.expect(W,"]"),f.push(w("["))}else throw new Error("unexpected symbol: "+y.value)}};function si(f,y){return Number(f)+Number(y)}function fc(f,y){return f-y}function $p(f,y){return f*y}function mc(f,y){return f/y}function hc(f,y){return f%y}function zr(f,y){return Array.isArray(f)&&Array.isArray(y)?f.concat(y):""+f+y}function Op(f,y){return f===y}function ii(f,y){return f!==y}function D(f,y){return f>y}function V(f,y){return f<y}function q(f,y){return f>=y}function ue(f,y){return f<=y}function gr(f,y){return!!(f&&y)}function Np(f,y){return!!(f||y)}function $N(f,y){return ge(y,f)}function ON(f){return(Math.exp(f)-Math.exp(-f))/2}function NN(f){return(Math.exp(f)+Math.exp(-f))/2}function MN(f){return f===1/0?1:f===-1/0?-1:(Math.exp(f)-Math.exp(-f))/(Math.exp(f)+Math.exp(-f))}function DN(f){return f===-1/0?f:Math.log(f+Math.sqrt(f*f+1))}function LN(f){return Math.log(f+Math.sqrt(f*f-1))}function FN(f){return Math.log((1+f)/(1-f))/2}function fv(f){return Math.log(f)*Math.LOG10E}function qN(f){return-f}function jN(f){return!f}function UN(f){return f<0?Math.ceil(f):Math.floor(f)}function BN(f){return Math.random()*(f||1)}function mv(f){return Dp(f+1)}function GN(f){return isFinite(f)&&f===Math.round(f)}var HN=4.7421875,Mp=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function Dp(f){var y,T;if(GN(f)){if(f<=0)return isFinite(f)?1/0:NaN;if(f>171)return 1/0;for(var A=f-2,M=f-1;A>1;)M*=A,A--;return M===0&&(M=1),M}if(f<.5)return Math.PI/(Math.sin(Math.PI*f)*Dp(1-f));if(f>=171.35)return 1/0;if(f>85){var Y=f*f,B=Y*f,ce=B*f,_e=ce*f;return Math.sqrt(2*Math.PI/f)*Math.pow(f/Math.E,f)*(1+1/(12*f)+1/(288*Y)-139/(51840*B)-571/(2488320*ce)+163879/(209018880*_e)+5246819/(75246796800*_e*f))}--f,T=Mp[0];for(var nt=1;nt<Mp.length;++nt)T+=Mp[nt]/(f+nt);return y=f+HN+.5,Math.sqrt(2*Math.PI)*Math.pow(y,f+.5)*Math.exp(-y)*T}function KN(f){return Array.isArray(f)?f.length:String(f).length}function hv(){for(var f=0,y=0,T=0;T<arguments.length;T++){var A=Math.abs(arguments[T]),M;y<A?(M=y/A,f=f*M*M+1,y=A):A>0?(M=A/y,f+=M*M):f+=A}return y===1/0?1/0:y*Math.sqrt(f)}function gv(f,y,T){return f?y:T}function zN(f,y){return typeof y>"u"||+y==0?Math.round(f):(f=+f,y=-+y,isNaN(f)||!(typeof y=="number"&&y%1===0)?NaN:(f=f.toString().split("e"),f=Math.round(+(f[0]+"e"+(f[1]?+f[1]-y:-y))),f=f.toString().split("e"),+(f[0]+"e"+(f[1]?+f[1]+y:y))))}function WN(f,y,T){return T&&(T[f]=y),y}function VN(f,y){return f[y|0]}function YN(f){return arguments.length===1&&Array.isArray(f)?Math.max.apply(Math,f):Math.max.apply(Math,arguments)}function JN(f){return arguments.length===1&&Array.isArray(f)?Math.min.apply(Math,f):Math.min.apply(Math,arguments)}function XN(f,y){if(typeof f!="function")throw new Error("First argument to map is not a function");if(!Array.isArray(y))throw new Error("Second argument to map is not an array");return y.map(function(T,A){return f(T,A)})}function QN(f,y,T){if(typeof f!="function")throw new Error("First argument to fold is not a function");if(!Array.isArray(T))throw new Error("Second argument to fold is not an array");return T.reduce(function(A,M,Y){return f(A,M,Y)},y)}function ZN(f,y){if(typeof f!="function")throw new Error("First argument to filter is not a function");if(!Array.isArray(y))throw new Error("Second argument to filter is not an array");return y.filter(function(T,A){return f(T,A)})}function eM(f,y){if(!(Array.isArray(y)||typeof y=="string"))throw new Error("Second argument to indexOf is not a string or array");return y.indexOf(f)}function tM(f,y){if(!Array.isArray(y))throw new Error("Second argument to join is not an array");return y.join(f)}function rM(f){return(f>0)-(f<0)||+f}var yv=1/3;function nM(f){return f<0?-Math.pow(-f,yv):Math.pow(f,yv)}function oM(f){return Math.exp(f)-1}function sM(f){return Math.log(1+f)}function iM(f){return Math.log(f)/Math.LN2}function An(f){this.options=f||{},this.unaryOps={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Math.sinh||ON,cosh:Math.cosh||NN,tanh:Math.tanh||MN,asinh:Math.asinh||DN,acosh:Math.acosh||LN,atanh:Math.atanh||FN,sqrt:Math.sqrt,cbrt:Math.cbrt||nM,log:Math.log,log2:Math.log2||iM,ln:Math.log,lg:Math.log10||fv,log10:Math.log10||fv,expm1:Math.expm1||oM,log1p:Math.log1p||sM,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:Math.trunc||UN,"-":qN,"+":Number,exp:Math.exp,not:jN,length:KN,"!":mv,sign:Math.sign||rM},this.binaryOps={"+":si,"-":fc,"*":$p,"/":mc,"%":hc,"^":Math.pow,"||":zr,"==":Op,"!=":ii,">":D,"<":V,">=":q,"<=":ue,and:gr,or:Np,in:$N,"=":WN,"[":VN},this.ternaryOps={"?":gv},this.functions={random:BN,fac:mv,min:JN,max:YN,hypot:Math.hypot||hv,pyt:Math.hypot||hv,pow:Math.pow,atan2:Math.atan2,if:gv,gamma:Dp,roundTo:zN,map:XN,fold:QN,filter:ZN,indexOf:eM,join:tM},this.consts={E:Math.E,PI:Math.PI,true:!0,false:!1}}An.prototype.parse=function(f){var y=[],T=new de(this,new Re(this,f),{allowMemberAccess:this.options.allowMemberAccess});return T.parseExpression(y),T.expect(J,"EOF"),new Z(y,this)},An.prototype.evaluate=function(f,y){return this.parse(f).evaluate(y)};var wv=new An;An.parse=function(f){return wv.parse(f)},An.evaluate=function(f,y){return wv.parse(f).evaluate(y)};var vv={"+":"add","-":"subtract","*":"multiply","/":"divide","%":"remainder","^":"power","!":"factorial","<":"comparison",">":"comparison","<=":"comparison",">=":"comparison","==":"comparison","!=":"comparison","||":"concatenate",and:"logical",or:"logical",not:"logical","?":"conditional",":":"conditional","=":"assignment","[":"array","()=":"fndef"};function aM(f){return vv.hasOwnProperty(f)?vv[f]:f}An.prototype.isOperatorEnabled=function(f){var y=aM(f),T=this.options.operators||{};return!(y in T)||!!T[y]};var cM={Parser:An,Expression:Z};e.Expression=Z,e.Parser=An,e.default=cM,Object.defineProperty(e,"__esModule",{value:!0})})});var bp=b(()=>{"use strict";});function fr(e){if(e<1e3)return`${e}ms`;let t=Math.floor(e/1e3);if(t<60)return`${t}s`;let r=Math.floor(t/60),n=t%60;return`${r}m ${n}s`}function nc(e,t){return`\u2191${Nw(e)} \u2193${Nw(t)}`}function Nw(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e)}function oc(e){return e<.01?`$${e.toFixed(4)}`:`$${e.toFixed(2)}`}function Mw(e){return e.size===0?"":`(${Array.from(e).map(r=>{let n=r.split("/");return n[n.length-1]}).join(", ")})`}function Dw(e){switch(e){case"running":return"Working";case"completed":return"Done";case"failed":return"Failed";case"skipped":return"Skipped";case"pending":default:return"Pending"}}function It(e,t){return e.length<=t?e:e.substring(0,t-1)+"\u2026"}var Lw=b(()=>{"use strict";});var K$=b(()=>{"use strict";});function z$(e){return new Promise(t=>setTimeout(t,e))}var W$,Bge,V$,Y$,CJ,J$,X$,PJ,_p,Wge,Vge,Fw=b(()=>{"use strict";qe();Gt();Ms();or();U();rc();W$=mn(H$(),1);bp();Lw();bp();K$();Bge=new W$.Parser({operators:{logical:!0,comparison:!0,in:!1,assignment:!1,conditional:!0,add:!0,concatenate:!0,subtract:!0,multiply:!0,divide:!0,remainder:!0,power:!0,factorial:!1,prefix:!0,postfix:!1,array:!0,fndef:!1}}),V$=30,Y$=6e4,CJ=Math.ceil(Y$/V$),J$=10,X$=6e4,PJ=Math.ceil(X$/J$);_p=class{requestTimestamps=[];maxRequests;windowMs;minIntervalMs;queue=Promise.resolve();constructor(t=V$,r=Y$,n=CJ){this.maxRequests=t,this.windowMs=r,this.minIntervalMs=n}async acquire(){let t=this.queue.then(()=>this._waitAndRecord());return this.queue=t.catch(()=>{}),t}async _waitAndRecord(){await this._waitForCapacity(),await this._waitForInterval(),this.requestTimestamps.push(Date.now())}async _waitForCapacity(){let t=Date.now();if(this.requestTimestamps=this.requestTimestamps.filter(r=>t-r<this.windowMs),this.requestTimestamps.length>=this.maxRequests){let r=this.requestTimestamps[0],n=this.windowMs-(t-r)+100;if(n>0)return O("RECIPE",`Rate limit: waiting ${n}ms for capacity (${this.requestTimestamps.length}/${this.maxRequests} requests in window)`),await z$(n),this._waitForCapacity()}}async _waitForInterval(){if(this.requestTimestamps.length>0){let t=this.requestTimestamps[this.requestTimestamps.length-1],r=Date.now()-t;if(r<this.minIntervalMs){let n=this.minIntervalMs-r;O("RECIPE",`Rate limit: throttling ${n}ms between requests`),await z$(n)}}}async waitForCapacity(){return this.acquire()}recordRequest(){}getStats(){let t=Date.now();return this.requestTimestamps=this.requestTimestamps.filter(r=>t-r<this.windowMs),{requestsInWindow:this.requestTimestamps.length,maxRequests:this.maxRequests,windowMs:this.windowMs}}},Wge=new _p,Vge=new _p(J$,X$,PJ)});var Sp=b(()=>{"use strict";Fw();U();});var qw=b(()=>{"use strict";});var uye,jw=b(()=>{"use strict";qe();U();qw();uye=300*1e3});var Q$=b(()=>{"use strict";U();Sp();jw();});var Z$=b(()=>{"use strict";U();qe();});var eO=b(()=>{"use strict";U();Bo();ln();});var Tp=b(()=>{"use strict";$o();ln();U();});var rO=b(()=>{"use strict";U();Bo();Tp();});var nO=b(()=>{"use strict";U();Bo();Tp();});var oO=b(()=>{"use strict";U();Uo();});var sO=b(()=>{"use strict";U();ln();Qa();ec();});var iO=b(()=>{"use strict";U();Rw();ln();Qa();ec();});var aO=b(()=>{"use strict";U();Uo();vp();});var cO=b(()=>{"use strict";U();hp();});var lO=b(()=>{"use strict";U();});var uO=b(()=>{"use strict";U();});var Uw=b(()=>{"use strict";U();});var kp=b(()=>{"use strict";U();Uw();});var vwe,xwe,bwe,sc=b(()=>{"use strict";U();kp();Go();vwe=1024*1024,xwe=100*1024,bwe=50*1024});var dO=b(()=>{"use strict";U();sc();Go();$o();});var Hw=b(()=>{"use strict";U();Ho();sc();});var mO=b(()=>{"use strict";U();Hw();Ho();$o();});import{FlowDotApiClient as UJ}from"@flowdot.ai/api";async function yO(){if(!hO){hO=!0;try{Kw=(await import("keytar")).default??await import("keytar")}catch{Kw=null}}return Kw}async function Ww(){let e=await yO(),t=e?await e.getPassword(wO,vO):null;if(!t)throw new Error("Not authenticated. Please run: flowdot auth login");if(!zw||t!==gO){let r=gg.get("apiUrl");zw=new UJ(r,t),gO=t}return zw}async function Ep(){let e=await yO();return!!(e?await e.getPassword(wO,vO):null)}var Kw,hO,wO,vO,zw,gO,Vw=b(()=>{"use strict";Gt();Kw=null,hO=!1;wO="flowdot-cli",vO="default",zw=null,gO=null});function N(e){let{toolName:t,description:r,handler:n,getPermissionDetails:o}=e;return async(s,i)=>{let a=s.payload||{};return await Ep()?xO(n,a):{success:!1,error:"Not authenticated. Please run: flowdot auth login",permissionDenied:!1}}}function X(e){return async(t,r)=>{let n=t.payload||{};return await Ep()?xO(e,n):{success:!1,error:"Not authenticated. Please run: flowdot auth login"}}}async function xO(e,t){try{let r=await Ww(),n=await e(r,t);return n.success?{success:!0,data:n.data}:{success:!1,error:n.error||"Operation failed"}}catch(r){let n=r instanceof Error?r.message:String(r);return n.includes("401")||n.includes("Unauthorized")?{success:!1,error:"Authentication failed. Please run: flowdot auth login",permissionDenied:!0}:{success:!1,error:n}}}function R(e){return async(t,r)=>{try{return{success:!0,data:await e(t,r)}}catch(n){return{success:!1,error:n instanceof Error?n.message:String(n)}}}}var pn=b(()=>{"use strict";Vw();});var BJ,GJ,HJ,KJ,zJ,WJ,VJ,YJ,JJ,XJ,QJ,ZJ,e8,t8,r8,n8,o8,s8,i8,a8,bO,_O,SO=b(()=>{"use strict";pn();BJ=X(R(async(e,t)=>e.listWorkflows(t.filter,t.favoritesOnly))),GJ=X(R(async(e,t)=>e.getWorkflow(t.workflowId))),HJ=X(R(async(e,t)=>e.searchWorkflows(t.query,t.tags,t.page))),KJ=X(R(async(e,t)=>e.getPublicWorkflows(t.page,t.sortBy))),zJ=X(R(async(e,t)=>e.getWorkflowDetails(t.workflowId))),WJ=X(R(async(e,t)=>e.getWorkflowGraph(t.workflowId))),VJ=X(R(async(e,t)=>e.getWorkflowInputsSchema(t.workflowId))),YJ=X(R(async(e,t)=>e.validateWorkflow(t.workflowId))),JJ=X(R(async(e,t)=>e.getWorkflowTags(t.workflowId))),XJ=X(R(async(e,t)=>e.getWorkflowMetrics(t.workflowId,t.period))),QJ=X(R(async(e,t)=>e.getWorkflowComments(t.workflowId))),ZJ=N({toolName:"flowdot_workflows_execute",description:"Execute workflow",handler:R(async(e,t)=>e.executeWorkflow(t.workflowId,t.inputs||{},t.waitForCompletion??!0,t.mode||"flowdot")),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,e.inputs?`Inputs: ${Object.keys(e.inputs).join(", ")}`:"No inputs"]}),e8=N({toolName:"flowdot_workflows_create",description:"Create new workflow",handler:R(async(e,t)=>e.createWorkflow(t.name,t.description)),getPermissionDetails:e=>[`Name: ${e.name}`,e.description?`Description: ${e.description}`:""].filter(Boolean)}),t8=N({toolName:"flowdot_workflows_duplicate",description:"Duplicate workflow",handler:R(async(e,t)=>e.duplicateWorkflow(t.workflowId,t.name)),getPermissionDetails:e=>[`Source Workflow ID: ${e.workflowId}`,e.name?`New Name: ${e.name}`:"Using default name"]}),r8=N({toolName:"flowdot_workflows_delete",description:"Delete workflow",handler:R(async(e,t)=>e.deleteWorkflow(t.workflowId)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,"WARNING: This action cannot be undone!"]}),n8=N({toolName:"flowdot_workflows_set_tags",description:"Set workflow tags",handler:R(async(e,t)=>e.setWorkflowTags(t.workflowId,t.tags)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Tags: ${e.tags.join(", ")}`]}),o8=N({toolName:"flowdot_workflows_toggle_public",description:"Toggle workflow visibility",handler:R(async(e,t)=>e.toggleWorkflowPublic(t.workflowId,t.isPublic)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`New Visibility: ${e.isPublic?"Public":"Private"}`]}),s8=N({toolName:"flowdot_workflows_favorite",description:"Favorite workflow",handler:R(async(e,t)=>e.favoriteWorkflow(t.workflowId,t.favorite)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Action: ${e.favorite?"Add to favorites":"Remove from favorites"}`]}),i8=N({toolName:"flowdot_workflows_vote",description:"Vote on workflow",handler:R(async(e,t)=>e.voteWorkflow(t.workflowId,t.vote)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Vote: ${e.vote}`]}),a8=N({toolName:"flowdot_workflows_add_comment",description:"Add workflow comment",handler:R(async(e,t)=>e.addWorkflowComment(t.workflowId,t.content,t.parentId)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Comment: ${e.content.substring(0,50)}${e.content.length>50?"...":""}`]}),bO={flowdot_workflows_list:BJ,flowdot_workflows_get:GJ,flowdot_workflows_search:HJ,flowdot_workflows_get_public:KJ,flowdot_workflows_get_details:zJ,flowdot_workflows_get_graph:WJ,flowdot_workflows_get_inputs_schema:VJ,flowdot_workflows_validate:YJ,flowdot_workflows_get_tags:JJ,flowdot_workflows_get_metrics:XJ,flowdot_workflows_get_comments:QJ,flowdot_workflows_execute:ZJ,flowdot_workflows_create:e8,flowdot_workflows_duplicate:t8,flowdot_workflows_set_tags:n8,flowdot_workflows_toggle_public:o8,flowdot_workflows_favorite:s8,flowdot_workflows_vote:i8,flowdot_workflows_add_comment:a8,flowdot_workflows_delete:r8},_O=[{id:"flowdot_workflows_list",name:"List Workflows",description:"List workflows available to the current user.",parameters:{required:{},optional:{filter:"Filter string to search by name",favoritesOnly:"If true, only return favorited workflows"}},returns:"Array of workflow objects with id, name, description, is_public, etc."},{id:"flowdot_workflows_get",name:"Get Workflow",description:"Get a specific workflow by its ID/hash.",parameters:{required:{workflowId:"The workflow ID or hash"}},returns:"Workflow object with full details"},{id:"flowdot_workflows_search",name:"Search Workflows",description:"Search workflows by name, description, or tags.",parameters:{required:{query:"Search query string"},optional:{tags:"Array of tags to filter by",page:"Page number for pagination"}},returns:"Paginated list of matching workflows"},{id:"flowdot_workflows_get_public",name:"Get Public Workflows",description:"Browse public workflows from all users.",parameters:{required:{},optional:{page:"Page number for pagination",sortBy:"Sort order (trending, recent, etc.)"}},returns:"Paginated list of public workflows"},{id:"flowdot_workflows_get_details",name:"Get Workflow Details",description:"Get detailed workflow information including nodes, connections, and signature.",parameters:{required:{workflowId:"The workflow ID"}},returns:"Detailed workflow object with nodes, connections, signature, tags, etc."},{id:"flowdot_workflows_get_inputs_schema",name:"Get Workflow Input Schema",description:"Get the input schema for a workflow (what inputs it requires).",parameters:{required:{workflowId:"The workflow ID"}},returns:"Schema object with inputs, settings, and usage notes"},{id:"flowdot_workflows_execute",name:"Execute Workflow",description:"Execute a workflow with the given inputs. Requires permission.",parameters:{required:{workflowId:"The workflow ID to execute"},optional:{inputs:"Object containing input values for the workflow",waitForCompletion:"If true (default), wait for execution to complete",mode:"Execution mode (default: flowdot)"}},returns:"Execution result with execution_id, status, and outputs"},{id:"flowdot_workflows_create",name:"Create Workflow",description:"Create a new empty workflow. Requires permission.",parameters:{required:{name:"Name for the new workflow"},optional:{description:"Description of the workflow"}},returns:"Created workflow object with id, name, created_at"},{id:"flowdot_workflows_duplicate",name:"Duplicate Workflow",description:"Create a copy of an existing workflow. Requires permission.",parameters:{required:{workflowId:"The workflow ID to duplicate"},optional:{name:"Name for the new workflow (optional)"}},returns:"New workflow object"},{id:"flowdot_workflows_delete",name:"Delete Workflow",description:"Permanently delete a workflow. This action cannot be undone. Always requires permission.",parameters:{required:{workflowId:"The workflow ID to delete"}},returns:"Success status"},{id:"flowdot_workflows_toggle_public",name:"Toggle Workflow Visibility",description:"Make a workflow public or private. Requires permission.",parameters:{required:{workflowId:"The workflow ID",isPublic:"True to make public, false to make private"}},returns:"Success status"},{id:"flowdot_workflows_favorite",name:"Favorite Workflow",description:"Add or remove a workflow from favorites. Requires permission.",parameters:{required:{workflowId:"The workflow ID",favorite:"True to favorite, false to unfavorite"}},returns:"Success status"},{id:"flowdot_workflows_validate",name:"Validate Workflow",description:"Check a workflow for errors and warnings.",parameters:{required:{workflowId:"The workflow ID to validate"}},returns:"Validation result with valid status, errors, and warnings"},{id:"flowdot_workflows_get_metrics",name:"Get Workflow Metrics",description:"Get execution metrics for a workflow.",parameters:{required:{workflowId:"The workflow ID"},optional:{period:'Time period for metrics (e.g., "7d", "30d")'}},returns:"Metrics object with execution counts, success rate, avg duration"}]});var c8,l8,u8,p8,d8,TO,kO,EO=b(()=>{"use strict";pn();c8=X(R(async(e,t)=>e.getExecution(t.executionId))),l8=X(R(async(e,t)=>e.getExecutionHistory(t.workflowId,t.page,t.limit))),u8=X(R(async(e,t)=>({streamUrl:e.getExecutionStreamUrl(t.executionId),authToken:e.getAuthToken()}))),p8=N({toolName:"flowdot_executions_cancel",description:"Cancel execution",handler:R(async(e,t)=>e.cancelExecution(t.executionId)),getPermissionDetails:e=>[`Execution ID: ${e.executionId}`,"This will stop the running execution"]}),d8=N({toolName:"flowdot_executions_retry",description:"Retry execution",handler:R(async(e,t)=>e.retryExecution(t.executionId)),getPermissionDetails:e=>[`Execution ID: ${e.executionId}`,"This will create a new execution with the same inputs"]}),TO={flowdot_executions_get:c8,flowdot_executions_get_history:l8,flowdot_executions_stream:u8,flowdot_executions_cancel:p8,flowdot_executions_retry:d8},kO=[{id:"flowdot_executions_get",name:"Get Execution",description:"Get the status and results of a workflow execution.",parameters:{required:{executionId:"The execution ID"}},returns:"Execution object with status, inputs, outputs, and timing information"},{id:"flowdot_executions_get_history",name:"Get Execution History",description:"Get the execution history for a workflow.",parameters:{required:{workflowId:"The workflow ID"},optional:{page:"Page number for pagination",limit:"Number of results per page"}},returns:"Paginated list of execution history items"},{id:"flowdot_executions_stream",name:"Get Execution Stream",description:"Get the SSE stream URL for real-time execution updates.",parameters:{required:{executionId:"The execution ID to stream"}},returns:"Stream URL and authentication token for SSE connection"},{id:"flowdot_executions_cancel",name:"Cancel Execution",description:"Cancel a running workflow execution. Requires permission.",parameters:{required:{executionId:"The execution ID to cancel"}},returns:"Success status"},{id:"flowdot_executions_retry",name:"Retry Execution",description:"Retry a failed workflow execution with the same inputs. Requires permission.",parameters:{required:{executionId:"The execution ID to retry"}},returns:"New execution object"}]});var f8,m8,h8,g8,y8,w8,v8,x8,b8,_8,S8,T8,k8,E8,R8,I8,A8,C8,P8,$8,O8,N8,M8,D8,L8,F8,q8,RO,IO,AO=b(()=>{"use strict";pn();f8=X(R(async(e,t)=>e.listApps(t))),m8=X(R(async(e,t)=>e.searchPublicApps(t))),h8=X(R(async(e,t)=>e.getApp(t.appId))),g8=X(R(async(e,t)=>e.getAppComments(t.appId))),y8=X(R(async(e,t)=>e.getAppWorkflows(t.appId))),w8=X(R(async(e,t)=>e.listAppFiles(t.appId))),v8=X(R(async(e,t)=>e.getAppFile(t.appId,t.filePath))),x8=N({toolName:"flowdot_apps_create",description:"Create new app",handler:R(async(e,t)=>e.createApp(t)),getPermissionDetails:e=>[`Name: ${e.name}`,e.description?`Description: ${e.description}`:""].filter(Boolean)}),b8=N({toolName:"flowdot_apps_update",description:"Update app",handler:R(async(e,t)=>{let{appId:r,...n}=t;return e.updateApp(r,n)}),getPermissionDetails:e=>[`App ID: ${e.appId}`,e.name?`Name: ${e.name}`:""].filter(Boolean)}),_8=N({toolName:"flowdot_apps_delete",description:"Delete app",handler:R(async(e,t)=>e.deleteApp(t.appId)),getPermissionDetails:e=>[`App ID: ${e.appId}`,"WARNING: This action cannot be undone!"]}),S8=N({toolName:"flowdot_apps_clone",description:"Clone app",handler:R(async(e,t)=>e.cloneApp(t.appId,t.name)),getPermissionDetails:e=>[`Source App ID: ${e.appId}`,e.name?`New Name: ${e.name}`:"Using default name"]}),T8=N({toolName:"flowdot_apps_publish",description:"Publish app",handler:R(async(e,t)=>e.publishApp(t.appId)),getPermissionDetails:e=>[`App ID: ${e.appId}`,"This will make the app publicly visible"]}),k8=N({toolName:"flowdot_apps_unpublish",description:"Unpublish app",handler:R(async(e,t)=>e.unpublishApp(t.appId)),getPermissionDetails:e=>[`App ID: ${e.appId}`,"This will make the app private"]}),E8=N({toolName:"flowdot_apps_favorite",description:"Favorite app",handler:R(async(e,t)=>e.favoriteApp(t.appId,t.favorite)),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Action: ${e.favorite?"Add to favorites":"Remove from favorites"}`]}),R8=N({toolName:"flowdot_apps_vote",description:"Vote on app",handler:R(async(e,t)=>e.voteApp(t.appId,t.vote)),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Vote: ${e.vote}`]}),I8=N({toolName:"flowdot_apps_add_comment",description:"Add app comment",handler:R(async(e,t)=>e.addAppComment(t.appId,t.content,t.parentId)),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Comment: ${e.content.substring(0,50)}${e.content.length>50?"...":""}`]}),A8=N({toolName:"flowdot_apps_link_workflow",description:"Link workflow to app",handler:R(async(e,t)=>e.linkAppWorkflow(t.appId,t.workflowHash,t.alias)),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Workflow Hash: ${e.workflowHash}`,e.alias?`Alias: ${e.alias}`:""].filter(Boolean)}),C8=N({toolName:"flowdot_apps_unlink_workflow",description:"Unlink workflow from app",handler:R(async(e,t)=>e.unlinkAppWorkflow(t.appId,t.workflowHash)),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Workflow Hash: ${e.workflowHash}`]}),P8=N({toolName:"flowdot_apps_edit_code",description:"Edit app code",handler:R(async(e,t)=>{let{appId:r,...n}=t;return e.editAppCode(r,n)}),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Find: ${e.old_string.substring(0,30)}...`,`Replace: ${e.new_string.substring(0,30)}...`]}),$8=N({toolName:"flowdot_apps_append_code",description:"Append app code",handler:R(async(e,t)=>{let{appId:r,...n}=t;return e.appendAppCode(r,n)}),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Content length: ${e.content.length} characters`]}),O8=N({toolName:"flowdot_apps_prepend_code",description:"Prepend app code",handler:R(async(e,t)=>{let{appId:r,...n}=t;return e.prependAppCode(r,n)}),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Content length: ${e.content.length} characters`]}),N8=N({toolName:"flowdot_apps_insert_code",description:"Insert app code",handler:R(async(e,t)=>{let{appId:r,...n}=t;return e.insertAppCode(r,n)}),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Insert after: ${e.after_pattern.substring(0,30)}...`]}),M8=N({toolName:"flowdot_apps_create_file",description:"Create app file",handler:R(async(e,t)=>{let{appId:r,...n}=t;return e.createAppFile(r,n)}),getPermissionDetails:e=>[`App ID: ${e.appId}`,`File path: ${e.path}`]}),D8=N({toolName:"flowdot_apps_update_file",description:"Update app file",handler:R(async(e,t)=>{let{appId:r,filePath:n,...o}=t;return e.updateAppFile(r,n,o)}),getPermissionDetails:e=>[`App ID: ${e.appId}`,`File path: ${e.filePath}`]}),L8=N({toolName:"flowdot_apps_rename_file",description:"Rename app file",handler:R(async(e,t)=>{let{appId:r,filePath:n,...o}=t;return e.renameAppFile(r,n,o)}),getPermissionDetails:e=>[`App ID: ${e.appId}`,`File: ${e.filePath}`,`New name: ${e.new_path}`]}),F8=N({toolName:"flowdot_apps_delete_file",description:"Delete app file",handler:R(async(e,t)=>e.deleteAppFile(t.appId,t.filePath)),getPermissionDetails:e=>[`App ID: ${e.appId}`,`File path: ${e.filePath}`,"WARNING: This action cannot be undone!"]}),q8=N({toolName:"flowdot_apps_set_entry_file",description:"Set app entry file",handler:R(async(e,t)=>e.setAppEntryFile(t.appId,t.filePath)),getPermissionDetails:e=>[`App ID: ${e.appId}`,`Entry file: ${e.filePath}`]}),RO={flowdot_apps_list:f8,flowdot_apps_search:m8,flowdot_apps_get:h8,flowdot_apps_get_comments:g8,flowdot_apps_get_workflows:y8,flowdot_apps_list_files:w8,flowdot_apps_get_file:v8,flowdot_apps_create:x8,flowdot_apps_update:b8,flowdot_apps_clone:S8,flowdot_apps_publish:T8,flowdot_apps_unpublish:k8,flowdot_apps_favorite:E8,flowdot_apps_vote:R8,flowdot_apps_add_comment:I8,flowdot_apps_link_workflow:A8,flowdot_apps_unlink_workflow:C8,flowdot_apps_edit_code:P8,flowdot_apps_append_code:$8,flowdot_apps_prepend_code:O8,flowdot_apps_insert_code:N8,flowdot_apps_create_file:M8,flowdot_apps_update_file:D8,flowdot_apps_rename_file:L8,flowdot_apps_set_entry_file:q8,flowdot_apps_delete:_8,flowdot_apps_delete_file:F8},IO=[{id:"flowdot_apps_list",name:"List Apps",description:"List user's own apps with optional filters.",parameters:{required:{},optional:{search:"Search string to filter by name",category:"Category to filter by",limit:"Results per page",page:"Page number"}},returns:"Paginated list of app objects"},{id:"flowdot_apps_search",name:"Search Apps",description:"Search public apps in the marketplace.",parameters:{required:{},optional:{q:"Search query",category:"Category filter",tag:"Tag filter",mobile_compatible:"Filter for mobile-compatible apps",sort:"Sort order",limit:"Results per page",page:"Page number"}},returns:"Paginated list of public apps"},{id:"flowdot_apps_get",name:"Get App",description:"Get a specific app with full details including code.",parameters:{required:{appId:"The app ID"}},returns:"App object with full details"},{id:"flowdot_apps_create",name:"Create App",description:"Create a new app. Requires permission.",parameters:{required:{name:"Name for the new app"},optional:{description:"Description of the app",code:"Initial app code",category:"App category"}},returns:"Created app object"},{id:"flowdot_apps_update",name:"Update App",description:"Update an existing app. Requires permission.",parameters:{required:{appId:"The app ID to update"},optional:{name:"New name",description:"New description",code:"New code"}},returns:"Success status"},{id:"flowdot_apps_delete",name:"Delete App",description:"Permanently delete an app. This action cannot be undone. Always requires permission.",parameters:{required:{appId:"The app ID to delete"}},returns:"Success status"},{id:"flowdot_apps_clone",name:"Clone App",description:"Clone a public app to your library. Requires permission.",parameters:{required:{appId:"The app ID to clone"},optional:{name:"Name for the cloned app"}},returns:"Cloned app object"},{id:"flowdot_apps_publish",name:"Publish App",description:"Make an app public. Requires permission.",parameters:{required:{appId:"The app ID to publish"}},returns:"Success status"},{id:"flowdot_apps_unpublish",name:"Unpublish App",description:"Make an app private. Requires permission.",parameters:{required:{appId:"The app ID to unpublish"}},returns:"Success status"},{id:"flowdot_apps_edit_code",name:"Edit App Code",description:"Edit app code using find and replace. Requires permission.",parameters:{required:{appId:"The app ID",old_string:"String to find",new_string:"String to replace with"},optional:{file_path:"Specific file path for multi-file apps"}},returns:"Updated code preview"},{id:"flowdot_apps_append_code",name:"Append App Code",description:"Append content to the end of app code. Requires permission.",parameters:{required:{appId:"The app ID",content:"Content to append"},optional:{file_path:"Specific file path for multi-file apps"}},returns:"Updated code preview"},{id:"flowdot_apps_list_files",name:"List App Files",description:"List all files in a multi-file app.",parameters:{required:{appId:"The app ID"}},returns:"Array of file objects with path and metadata"},{id:"flowdot_apps_create_file",name:"Create App File",description:"Create a new file in a multi-file app. Requires permission.",parameters:{required:{appId:"The app ID",path:"File path",content:"File content"}},returns:"Created file object"},{id:"flowdot_apps_delete_file",name:"Delete App File",description:"Delete a file from a multi-file app. Always requires permission.",parameters:{required:{appId:"The app ID",filePath:"Path of file to delete"}},returns:"Success status"}]});var j8,U8,B8,G8,H8,K8,z8,W8,V8,Y8,J8,X8,CO,PO,$O=b(()=>{"use strict";pn();j8=X(R(async(e,t)=>e.listCustomNodes(t))),U8=X(R(async(e,t)=>e.searchPublicCustomNodes(t))),B8=X(R(async(e,t)=>e.getCustomNode(t.nodeId))),G8=X(R(async(e,t)=>e.getCustomNodeComments(t.nodeId))),H8=N({toolName:"flowdot_custom_nodes_create",description:"Create custom node",handler:R(async(e,t)=>e.createCustomNode(t)),getPermissionDetails:e=>[`Name: ${e.name}`,`Type: ${e.type_name}`,e.description?`Description: ${e.description}`:""].filter(Boolean)}),K8=N({toolName:"flowdot_custom_nodes_update",description:"Update custom node",handler:R(async(e,t)=>{let{nodeId:r,...n}=t;return e.updateCustomNode(r,n)}),getPermissionDetails:e=>[`Node ID: ${e.nodeId}`,e.name?`Name: ${e.name}`:""].filter(Boolean)}),z8=N({toolName:"flowdot_custom_nodes_delete",description:"Delete custom node",handler:R(async(e,t)=>e.deleteCustomNode(t.nodeId)),getPermissionDetails:e=>[`Node ID: ${e.nodeId}`,"WARNING: This action cannot be undone!"]}),W8=N({toolName:"flowdot_custom_nodes_copy",description:"Copy custom node",handler:R(async(e,t)=>e.copyCustomNode(t.nodeId,t.name)),getPermissionDetails:e=>[`Source Node ID: ${e.nodeId}`,e.name?`New Name: ${e.name}`:"Using default name"]}),V8=N({toolName:"flowdot_custom_nodes_toggle_visibility",description:"Toggle custom node visibility",handler:R(async(e,t)=>e.toggleCustomNodeVisibility(t.nodeId,t.visibility)),getPermissionDetails:e=>[`Node ID: ${e.nodeId}`,`New Visibility: ${e.visibility}`]}),Y8=N({toolName:"flowdot_custom_nodes_vote",description:"Vote on custom node",handler:R(async(e,t)=>e.voteCustomNode(t.nodeId,t.vote)),getPermissionDetails:e=>[`Node ID: ${e.nodeId}`,`Vote: ${e.vote}`]}),J8=N({toolName:"flowdot_custom_nodes_favorite",description:"Favorite custom node",handler:R(async(e,t)=>e.favoriteCustomNode(t.nodeId,t.favorite)),getPermissionDetails:e=>[`Node ID: ${e.nodeId}`,`Action: ${e.favorite?"Add to favorites":"Remove from favorites"}`]}),X8=N({toolName:"flowdot_custom_nodes_add_comment",description:"Add custom node comment",handler:R(async(e,t)=>e.addCustomNodeComment(t.nodeId,t.content,t.parentId)),getPermissionDetails:e=>[`Node ID: ${e.nodeId}`,`Comment: ${e.content.substring(0,50)}${e.content.length>50?"...":""}`]}),CO={flowdot_custom_nodes_list:j8,flowdot_custom_nodes_search:U8,flowdot_custom_nodes_get:B8,flowdot_custom_nodes_get_comments:G8,flowdot_custom_nodes_create:H8,flowdot_custom_nodes_update:K8,flowdot_custom_nodes_copy:W8,flowdot_custom_nodes_toggle_visibility:V8,flowdot_custom_nodes_vote:Y8,flowdot_custom_nodes_favorite:J8,flowdot_custom_nodes_add_comment:X8,flowdot_custom_nodes_delete:z8},PO=[{id:"flowdot_custom_nodes_list",name:"List Custom Nodes",description:"List user's own custom nodes.",parameters:{required:{},optional:{search:"Search string",category:"Category filter",limit:"Results per page",page:"Page number"}},returns:"Paginated list of custom node objects"},{id:"flowdot_custom_nodes_search",name:"Search Public Custom Nodes",description:"Search public custom nodes in the marketplace.",parameters:{required:{},optional:{q:"Search query",category:"Category filter",tags:"Array of tags to filter by",verified_only:"Only return verified nodes",sort:"Sort order",limit:"Results per page",page:"Page number"}},returns:"Paginated list of public custom nodes"},{id:"flowdot_custom_nodes_get",name:"Get Custom Node",description:"Get a specific custom node with full details including script_code.",parameters:{required:{nodeId:"The custom node ID"}},returns:"Custom node object with full details"},{id:"flowdot_custom_nodes_create",name:"Create Custom Node",description:"Create a new custom node. Requires permission.",parameters:{required:{name:"Display name for the node",type_name:"Unique type identifier (snake_case)",category:"Node category",script_code:"JavaScript code for the node"},optional:{description:"Description of what the node does",inputs:"Array of input definitions",outputs:"Array of output definitions",properties:"Array of property definitions"}},returns:"Created custom node object"},{id:"flowdot_custom_nodes_update",name:"Update Custom Node",description:"Update an existing custom node. Requires permission.",parameters:{required:{nodeId:"The custom node ID to update"},optional:{name:"New name",description:"New description",script_code:"New script code",inputs:"New input definitions",outputs:"New output definitions"}},returns:"Success status"},{id:"flowdot_custom_nodes_delete",name:"Delete Custom Node",description:"Permanently delete a custom node. This action cannot be undone. Always requires permission.",parameters:{required:{nodeId:"The custom node ID to delete"}},returns:"Success status"},{id:"flowdot_custom_nodes_copy",name:"Copy Custom Node",description:"Copy a public custom node to your library. Requires permission.",parameters:{required:{nodeId:"The custom node ID to copy"},optional:{name:"Name for the copied node"}},returns:"Copied custom node object"},{id:"flowdot_custom_nodes_toggle_visibility",name:"Toggle Custom Node Visibility",description:"Change the visibility of a custom node. Requires permission.",parameters:{required:{nodeId:"The custom node ID",visibility:"New visibility (private, public, or unlisted)"}},returns:"Success status"},{id:"flowdot_custom_nodes_vote",name:"Vote Custom Node",description:"Vote on a custom node. Requires permission.",parameters:{required:{nodeId:"The custom node ID",vote:"Vote type (up, down, or remove)"}},returns:"Vote result with new vote counts"},{id:"flowdot_custom_nodes_favorite",name:"Favorite Custom Node",description:"Add or remove a custom node from favorites. Requires permission.",parameters:{required:{nodeId:"The custom node ID",favorite:"True to favorite, false to unfavorite"}},returns:"Success status"}]});var Q8,Z8,eX,tX,rX,nX,oX,sX,iX,aX,cX,lX,uX,pX,dX,OO,NO,MO=b(()=>{"use strict";pn();Q8=X(R(async(e,t)=>e.listKnowledgeCategories(t))),Z8=X(R(async(e,t)=>e.getKnowledgeCategory(t.categoryId))),eX=X(R(async(e,t)=>e.listKnowledgeDocuments(t))),tX=X(R(async(e,t)=>e.getKnowledgeDocument(t.documentId))),rX=X(R(async(e,t)=>e.queryKnowledgeBase(t))),nX=X(R(async e=>e.getKnowledgeStorage())),oX=N({toolName:"flowdot_knowledge_create_category",description:"Create knowledge category",handler:R(async(e,t)=>e.createKnowledgeCategory(t)),getPermissionDetails:e=>[`Name: ${e.name}`,e.description?`Description: ${e.description}`:""].filter(Boolean)}),sX=N({toolName:"flowdot_knowledge_update_category",description:"Update knowledge category",handler:R(async(e,t)=>{let{categoryId:r,...n}=t;return e.updateKnowledgeCategory(r,n)}),getPermissionDetails:e=>[`Category ID: ${e.categoryId}`,e.name?`New Name: ${e.name}`:""].filter(Boolean)}),iX=N({toolName:"flowdot_knowledge_delete_category",description:"Delete knowledge category",handler:R(async(e,t)=>e.deleteKnowledgeCategory(t.categoryId)),getPermissionDetails:e=>[`Category ID: ${e.categoryId}`,"WARNING: This will delete all documents in this category!"]}),aX=async(e,t)=>{let r=e.payload||{};if(!r.title||!r.content)return{success:!1,error:"Missing required parameters: title, content"};try{let{getApiClient:n}=await Promise.resolve().then(()=>(qe(),JI)),s=await(await n()).post("/api/hub/knowledge/documents/upload-text",{title:r.title,content:r.content,category_id:r.category_id,mime_type:r.mime_type||"text/markdown",team_id:r.team_id});return{success:!0,data:s.data?.data||s.data}}catch(n){return{success:!1,error:`Upload failed: ${n.message}`}}},cX=N({toolName:"flowdot_knowledge_upload_from_url",description:"Upload document from URL",handler:R(async(e,t)=>e.uploadDocumentFromUrl(t)),getPermissionDetails:e=>[`URL: ${e.url}`,e.title?`Title: ${e.title}`:"Auto-detect title",e.category_id?`Category ID: ${e.category_id}`:"No category"]}),lX=N({toolName:"flowdot_knowledge_move_document",description:"Move document to category",handler:R(async(e,t)=>e.moveDocumentToCategory(t.documentId,t.categoryId)),getPermissionDetails:e=>[`Document ID: ${e.documentId}`,e.categoryId?`New Category ID: ${e.categoryId}`:"Move to uncategorized"]}),uX=N({toolName:"flowdot_knowledge_transfer_document",description:"Transfer document ownership",handler:R(async(e,t)=>{let{documentId:r,...n}=t;return e.transferDocumentOwnership(r,n)}),getPermissionDetails:e=>[`Document ID: ${e.documentId}`,e.team_id?`Transfer to Team ID: ${e.team_id}`:"Transfer to personal"]}),pX=N({toolName:"flowdot_knowledge_reprocess_document",description:"Reprocess document",handler:R(async(e,t)=>e.reprocessDocument(t.documentId)),getPermissionDetails:e=>[`Document ID: ${e.documentId}`,"This will re-process the document for RAG indexing"]}),dX=N({toolName:"flowdot_knowledge_delete_document",description:"Delete knowledge document",handler:R(async(e,t)=>e.deleteKnowledgeDocument(t.documentId)),getPermissionDetails:e=>[`Document ID: ${e.documentId}`,"WARNING: This action cannot be undone!"]}),OO={flowdot_knowledge_list_categories:Q8,flowdot_knowledge_get_category:Z8,flowdot_knowledge_list_documents:eX,flowdot_knowledge_get_document:tX,flowdot_knowledge_query:rX,flowdot_knowledge_get_storage:nX,flowdot_knowledge_create_category:oX,flowdot_knowledge_update_category:sX,flowdot_knowledge_upload_text:aX,flowdot_knowledge_upload_from_url:cX,flowdot_knowledge_move_document:lX,flowdot_knowledge_transfer_document:uX,flowdot_knowledge_reprocess_document:pX,flowdot_knowledge_delete_category:iX,flowdot_knowledge_delete_document:dX},NO=[{id:"flowdot_knowledge_list_categories",name:"List Knowledge Categories",description:"List knowledge base categories.",parameters:{required:{},optional:{team_id:"Filter by team ID",personal:"If true, only return personal categories"}},returns:"Array of category objects"},{id:"flowdot_knowledge_get_category",name:"Get Knowledge Category",description:"Get a specific knowledge base category.",parameters:{required:{categoryId:"The category ID"}},returns:"Category object with details"},{id:"flowdot_knowledge_list_documents",name:"List Knowledge Documents",description:"List knowledge base documents with optional filters.",parameters:{required:{},optional:{category_id:"Filter by category ID",team_id:"Filter by team ID",status:"Filter by status (pending, processing, ready, failed)"}},returns:"Array of document objects"},{id:"flowdot_knowledge_get_document",name:"Get Knowledge Document",description:"Get a specific knowledge base document.",parameters:{required:{documentId:"The document ID"}},returns:"Document object with content and metadata"},{id:"flowdot_knowledge_query",name:"Query Knowledge Base",description:"Query the knowledge base using RAG (Retrieval-Augmented Generation).",parameters:{required:{query:"The search query"},optional:{category_ids:"Array of category IDs to search within",document_ids:"Array of document IDs to search within",team_id:"Team ID for team knowledge bases",limit:"Maximum number of results"}},returns:"Query response with relevant document chunks and similarity scores"},{id:"flowdot_knowledge_get_storage",name:"Get Knowledge Storage",description:"Get knowledge base storage usage information.",parameters:{required:{}},returns:"Storage usage object with limits and current usage"},{id:"flowdot_knowledge_create_category",name:"Create Knowledge Category",description:"Create a new knowledge base category. Requires permission.",parameters:{required:{name:"Category name"},optional:{description:"Category description",team_id:"Team ID for team category"}},returns:"Created category object"},{id:"flowdot_knowledge_upload_text",name:"Upload Text Document",description:"Upload text content as a knowledge document. Requires permission.",parameters:{required:{title:"Document title",content:"Text content to upload"},optional:{category_id:"Category to add document to",team_id:"Team ID for team document"}},returns:"Uploaded document object"},{id:"flowdot_knowledge_upload_from_url",name:"Upload Document from URL",description:"Upload a document from a URL. Requires permission.",parameters:{required:{url:"URL to fetch content from"},optional:{title:"Document title (auto-detected if not provided)",category_id:"Category to add document to",team_id:"Team ID for team document"}},returns:"Uploaded document object"},{id:"flowdot_knowledge_delete_category",name:"Delete Knowledge Category",description:"Delete a knowledge category and all its documents. Always requires permission.",parameters:{required:{categoryId:"The category ID to delete"}},returns:"Success status"},{id:"flowdot_knowledge_delete_document",name:"Delete Knowledge Document",description:"Delete a knowledge document. Always requires permission.",parameters:{required:{documentId:"The document ID to delete"}},returns:"Success status"}]});var fX,mX,hX,gX,yX,wX,vX,xX,bX,_X,SX,TX,kX,EX,RX,IX,AX,CX,PX,$X,OX,NX,MX,DX,LX,DO,LO,FO=b(()=>{"use strict";pn();fX=X(R(async(e,t)=>e.listAgentToolkits(t))),mX=X(R(async(e,t)=>e.searchPublicAgentToolkits(t))),hX=X(R(async(e,t)=>e.getAgentToolkit(t.toolkitId))),gX=X(R(async e=>e.listInstalledToolkits())),yX=X(R(async(e,t)=>e.listToolkitTools(t.toolkitId))),wX=X(R(async(e,t)=>e.getToolkitTool(t.toolkitId,t.toolId))),vX=X(R(async(e,t)=>e.getToolkitComments(t.toolkitId))),xX=X(R(async(e,t)=>e.getToolkitInstallation(t.installationId))),bX=X(R(async(e,t)=>e.checkToolkitCredentials(t.installationId))),_X=N({toolName:"flowdot_toolkits_create",description:"Create toolkit",handler:R(async(e,t)=>e.createAgentToolkit(t)),getPermissionDetails:e=>[`Name: ${e.name}`,e.description?`Description: ${e.description}`:""].filter(Boolean)}),SX=N({toolName:"flowdot_toolkits_update",description:"Update toolkit",handler:R(async(e,t)=>{let{toolkitId:r,...n}=t;return e.updateAgentToolkit(r,n)}),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,e.name?`Name: ${e.name}`:""].filter(Boolean)}),TX=N({toolName:"flowdot_toolkits_delete",description:"Delete toolkit",handler:R(async(e,t)=>e.deleteAgentToolkit(t.toolkitId)),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,"WARNING: This action cannot be undone!"]}),kX=N({toolName:"flowdot_toolkits_copy",description:"Copy toolkit",handler:R(async(e,t)=>e.copyAgentToolkit(t.toolkitId,t.name)),getPermissionDetails:e=>[`Source Toolkit ID: ${e.toolkitId}`,e.name?`New Name: ${e.name}`:"Using default name"]}),EX=N({toolName:"flowdot_toolkits_toggle_visibility",description:"Toggle toolkit visibility",handler:R(async(e,t)=>e.toggleToolkitVisibility(t.toolkitId,t.visibility)),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,`New Visibility: ${e.visibility}`]}),RX=N({toolName:"flowdot_toolkits_install",description:"Install toolkit",handler:R(async(e,t)=>e.installToolkit(t.toolkitId)),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,"This will add the toolkit to your installed toolkits"]}),IX=N({toolName:"flowdot_toolkits_update_installation",description:"Update toolkit installation",handler:R(async(e,t)=>e.updateToolkitInstallation(t.installationId,t.credentialMapping)),getPermissionDetails:e=>[`Installation ID: ${e.installationId}`,"Updating credential mapping"]}),AX=N({toolName:"flowdot_toolkits_uninstall",description:"Uninstall toolkit",handler:R(async(e,t)=>e.uninstallToolkit(t.installationId)),getPermissionDetails:e=>[`Installation ID: ${e.installationId}`,"This will remove the toolkit from your installed toolkits"]}),CX=N({toolName:"flowdot_toolkits_toggle_active",description:"Toggle toolkit active status",handler:R(async(e,t)=>e.toggleToolkitActive(t.installationId,t.isActive)),getPermissionDetails:e=>[`Installation ID: ${e.installationId}`,`New Status: ${e.isActive?"Active":"Inactive"}`]}),PX=N({toolName:"flowdot_toolkits_invoke_tool",description:"Invoke toolkit tool",handler:R(async(e,t)=>e.invokeToolkitTool(t)),getPermissionDetails:e=>[`Installation ID: ${e.installation_id}`,`Tool: ${e.tool_name}`,`Inputs: ${Object.keys(e.inputs||{}).join(", ")||"none"}`]}),$X=N({toolName:"flowdot_toolkits_vote",description:"Vote on toolkit",handler:R(async(e,t)=>e.voteToolkit(t.toolkitId,t.vote)),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,`Vote: ${e.vote}`]}),OX=N({toolName:"flowdot_toolkits_favorite",description:"Favorite toolkit",handler:R(async(e,t)=>e.favoriteToolkit(t.toolkitId,t.favorite)),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,`Action: ${e.favorite?"Add to favorites":"Remove from favorites"}`]}),NX=N({toolName:"flowdot_toolkits_add_comment",description:"Add toolkit comment",handler:R(async(e,t)=>e.addToolkitComment(t.toolkitId,t.content,t.parentId)),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,`Comment: ${e.content.substring(0,50)}${e.content.length>50?"...":""}`]}),MX=N({toolName:"flowdot_toolkits_create_tool",description:"Create toolkit tool",handler:R(async(e,t)=>{let{toolkitId:r,...n}=t;return e.createToolkitTool(r,n)}),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,`Tool Name: ${e.name}`]}),DX=N({toolName:"flowdot_toolkits_update_tool",description:"Update toolkit tool",handler:R(async(e,t)=>{let{toolkitId:r,toolId:n,...o}=t;return e.updateToolkitTool(r,n,o)}),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,`Tool ID: ${e.toolId}`]}),LX=N({toolName:"flowdot_toolkits_delete_tool",description:"Delete toolkit tool",handler:R(async(e,t)=>e.deleteToolkitTool(t.toolkitId,t.toolId)),getPermissionDetails:e=>[`Toolkit ID: ${e.toolkitId}`,`Tool ID: ${e.toolId}`,"WARNING: This action cannot be undone!"]}),DO={flowdot_toolkits_list:fX,flowdot_toolkits_search:mX,flowdot_toolkits_get:hX,flowdot_toolkits_list_installed:gX,flowdot_toolkits_list_tools:yX,flowdot_toolkits_get_tool:wX,flowdot_toolkits_get_comments:vX,flowdot_toolkits_get_installation:xX,flowdot_toolkits_check_credentials:bX,flowdot_toolkits_create:_X,flowdot_toolkits_update:SX,flowdot_toolkits_copy:kX,flowdot_toolkits_toggle_visibility:EX,flowdot_toolkits_install:RX,flowdot_toolkits_update_installation:IX,flowdot_toolkits_toggle_active:CX,flowdot_toolkits_invoke_tool:PX,flowdot_toolkits_vote:$X,flowdot_toolkits_favorite:OX,flowdot_toolkits_add_comment:NX,flowdot_toolkits_create_tool:MX,flowdot_toolkits_update_tool:DX,flowdot_toolkits_delete:TX,flowdot_toolkits_uninstall:AX,flowdot_toolkits_delete_tool:LX},LO=[{id:"flowdot_toolkits_list",name:"List Toolkits",description:"List user's own agent toolkits.",parameters:{required:{},optional:{search:"Search string",category:"Category filter",limit:"Results per page",page:"Page number"}},returns:"Paginated list of toolkit objects"},{id:"flowdot_toolkits_search",name:"Search Toolkits",description:"Search public toolkits in the marketplace.",parameters:{required:{},optional:{query:"Search query",category:"Category filter",tags:"Array of tags",verified_only:"Only verified toolkits",sort:"Sort order",limit:"Results per page",page:"Page number"}},returns:"Paginated list of public toolkits"},{id:"flowdot_toolkits_get",name:"Get Toolkit",description:"Get detailed information about a toolkit.",parameters:{required:{toolkitId:"The toolkit ID"}},returns:"Toolkit object with full details"},{id:"flowdot_toolkits_list_installed",name:"List Installed Toolkits",description:"List all toolkits installed by the user.",parameters:{required:{}},returns:"Array of installed toolkit objects"},{id:"flowdot_toolkits_list_tools",name:"List Toolkit Tools",description:"List all tools in a toolkit.",parameters:{required:{toolkitId:"The toolkit ID"}},returns:"Array of toolkit tool objects"},{id:"flowdot_toolkits_install",name:"Install Toolkit",description:"Install a toolkit. Requires permission.",parameters:{required:{toolkitId:"The toolkit ID to install"}},returns:"Installation result with installation ID"},{id:"flowdot_toolkits_uninstall",name:"Uninstall Toolkit",description:"Uninstall a toolkit. Always requires permission.",parameters:{required:{installationId:"The installation ID"}},returns:"Success status"},{id:"flowdot_toolkits_invoke_tool",name:"Invoke Toolkit Tool",description:"Invoke a tool from an installed toolkit. Requires permission.",parameters:{required:{installation_id:"The toolkit installation ID",tool_name:"Name of the tool to invoke"},optional:{inputs:"Object containing tool inputs",credential_overrides:"Optional credential overrides"}},returns:"Tool execution result"},{id:"flowdot_toolkits_create",name:"Create Toolkit",description:"Create a new agent toolkit. Requires permission.",parameters:{required:{name:"Toolkit name"},optional:{description:"Toolkit description",category:"Toolkit category",icon:"Icon identifier"}},returns:"Created toolkit object"},{id:"flowdot_toolkits_delete",name:"Delete Toolkit",description:"Delete a toolkit. Always requires permission.",parameters:{required:{toolkitId:"The toolkit ID to delete"}},returns:"Success status"}]});var FX,qX,jX,UX,BX,GX,HX,KX,zX,WX,VX,YX,JX,XX,QX,ZX,e7,t7,r7,n7,o7,s7,i7,a7,c7,l7,qO,jO,UO=b(()=>{"use strict";pn();FX=X(R(async e=>e.listRecipes())),qX=X(R(async(e,t)=>e.getRecipe(t.hash))),jX=X(R(async(e,t)=>e.getRecipeDefinition(t.hash))),UX=X(R(async(e,t)=>e.listPublicRecipes(t))),BX=X(R(async(e,t)=>e.listRecipeSteps(t.hash))),GX=X(R(async(e,t)=>e.getRecipeStep(t.hash,t.stepId))),HX=X(R(async(e,t)=>e.listRecipeStores(t.hash))),KX=X(R(async e=>e.listRecipeLinks())),zX=X(R(async(e,t)=>e.getRecipeComments(t.hash))),WX=N({toolName:"flowdot_recipes_create",description:"Create recipe",handler:R(async(e,t)=>e.createRecipe(t)),getPermissionDetails:e=>[`Name: ${e.name}`,e.description?`Description: ${e.description}`:""].filter(Boolean)}),VX=N({toolName:"flowdot_recipes_update",description:"Update recipe",handler:R(async(e,t)=>{let{hash:r,...n}=t;return e.updateRecipe(r,n)}),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,e.name?`Name: ${e.name}`:""].filter(Boolean)}),YX=N({toolName:"flowdot_recipes_delete",description:"Delete recipe",handler:R(async(e,t)=>e.deleteRecipe(t.hash)),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,"WARNING: This action cannot be undone!"]}),JX=N({toolName:"flowdot_recipes_fork",description:"Fork recipe",handler:R(async(e,t)=>e.forkRecipe(t.hash,t.newName)),getPermissionDetails:e=>[`Source Recipe Hash: ${e.hash}`,e.newName?`New Name: ${e.newName}`:"Using default name"]}),XX=N({toolName:"flowdot_recipes_link",description:"Link recipe",handler:R(async(e,t)=>{let{hash:r,...n}=t;return e.linkRecipe(r,n)}),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Alias: ${e.alias}`]}),QX=N({toolName:"flowdot_recipes_unlink",description:"Unlink recipe",handler:R(async(e,t)=>e.unlinkRecipe(t.alias)),getPermissionDetails:e=>[`Alias: ${e.alias}`]}),ZX=N({toolName:"flowdot_recipes_vote",description:"Vote on recipe",handler:R(async(e,t)=>e.voteRecipe(t.hash,t.vote)),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Vote: ${e.vote}`]}),e7=N({toolName:"flowdot_recipes_favorite",description:"Favorite recipe",handler:R(async(e,t)=>e.favoriteRecipe(t.hash,t.favorite)),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Action: ${e.favorite?"Add to favorites":"Remove from favorites"}`]}),t7=N({toolName:"flowdot_recipes_add_comment",description:"Add recipe comment",handler:R(async(e,t)=>e.addRecipeComment(t.hash,t.content,t.parentId)),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Comment: ${e.content.substring(0,50)}${e.content.length>50?"...":""}`]}),r7=N({toolName:"flowdot_recipes_add_step",description:"Add recipe step",handler:R(async(e,t)=>{let{hash:r,...n}=t;return e.addRecipeStep(r,n)}),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Step Type: ${e.type}`,`Step Name: ${e.name}`]}),n7=N({toolName:"flowdot_recipes_update_step",description:"Update recipe step",handler:R(async(e,t)=>{let{hash:r,stepId:n,...o}=t;return e.updateRecipeStep(r,n,o)}),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Step ID: ${e.stepId}`]}),o7=N({toolName:"flowdot_recipes_delete_step",description:"Delete recipe step",handler:R(async(e,t)=>e.deleteRecipeStep(t.hash,t.stepId)),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Step ID: ${e.stepId}`,"WARNING: This action cannot be undone!"]}),s7=N({toolName:"flowdot_recipes_reorder_steps",description:"Reorder recipe steps",handler:R(async(e,t)=>e.reorderRecipeSteps(t.hash,t.stepIds)),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`New Order: ${e.stepIds.join(", ")}`]}),i7=N({toolName:"flowdot_recipes_duplicate_step",description:"Duplicate recipe step",handler:R(async(e,t)=>e.duplicateRecipeStep(t.hash,t.stepId)),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Step ID: ${e.stepId}`]}),a7=N({toolName:"flowdot_recipes_add_store",description:"Add recipe store",handler:R(async(e,t)=>{let{hash:r,...n}=t;return e.addRecipeStore(r,n)}),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Store Key: ${e.key}`]}),c7=N({toolName:"flowdot_recipes_update_store",description:"Update recipe store",handler:R(async(e,t)=>{let{hash:r,storeId:n,...o}=t;return e.updateRecipeStore(r,n,o)}),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Store ID: ${e.storeId}`]}),l7=N({toolName:"flowdot_recipes_delete_store",description:"Delete recipe store",handler:R(async(e,t)=>e.deleteRecipeStore(t.hash,t.storeId)),getPermissionDetails:e=>[`Recipe Hash: ${e.hash}`,`Store ID: ${e.storeId}`,"WARNING: This action cannot be undone!"]}),qO={flowdot_recipes_list:FX,flowdot_recipes_get:qX,flowdot_recipes_get_definition:jX,flowdot_recipes_browse:UX,flowdot_recipes_list_steps:BX,flowdot_recipes_get_step:GX,flowdot_recipes_list_stores:HX,flowdot_recipes_list_links:KX,flowdot_recipes_get_comments:zX,flowdot_recipes_create:WX,flowdot_recipes_update:VX,flowdot_recipes_fork:JX,flowdot_recipes_link:XX,flowdot_recipes_unlink:QX,flowdot_recipes_vote:ZX,flowdot_recipes_favorite:e7,flowdot_recipes_add_comment:t7,flowdot_recipes_add_step:r7,flowdot_recipes_update_step:n7,flowdot_recipes_reorder_steps:s7,flowdot_recipes_duplicate_step:i7,flowdot_recipes_add_store:a7,flowdot_recipes_update_store:c7,flowdot_recipes_delete:YX,flowdot_recipes_delete_step:o7,flowdot_recipes_delete_store:l7},jO=[{id:"flowdot_recipes_list",name:"List Recipes",description:"List user's agent recipes.",parameters:{required:{}},returns:"Array of recipe objects"},{id:"flowdot_recipes_get",name:"Get Recipe",description:"Get a specific recipe by hash.",parameters:{required:{hash:"The recipe hash"}},returns:"Recipe object with full details"},{id:"flowdot_recipes_get_definition",name:"Get Recipe Definition",description:"Get recipe definition for CLI execution.",parameters:{required:{hash:"The recipe hash"}},returns:"Recipe definition with steps, stores, and input schema"},{id:"flowdot_recipes_browse",name:"Browse Recipes",description:"Browse public recipes with optional filters.",parameters:{required:{},optional:{q:"Search query",category:"Category filter",tags:"Array of tags",sort:"Sort order",page:"Page number",limit:"Results per page"}},returns:"Paginated list of public recipes"},{id:"flowdot_recipes_create",name:"Create Recipe",description:"Create a new agent recipe. Requires permission.",parameters:{required:{name:"Recipe name"},optional:{description:"Recipe description",category:"Recipe category",visibility:"Visibility (private, public, unlisted)"}},returns:"Created recipe object"},{id:"flowdot_recipes_delete",name:"Delete Recipe",description:"Delete a recipe. Always requires permission.",parameters:{required:{hash:"The recipe hash to delete"}},returns:"Success status"},{id:"flowdot_recipes_fork",name:"Fork Recipe",description:"Fork a public recipe to your library. Requires permission.",parameters:{required:{hash:"The recipe hash to fork"},optional:{newName:"Name for the forked recipe"}},returns:"Forked recipe object"},{id:"flowdot_recipes_link",name:"Link Recipe",description:"Link a recipe with an alias for easy access. Requires permission.",parameters:{required:{hash:"The recipe hash",alias:"The alias to use"}},returns:"Link result"},{id:"flowdot_recipes_list_steps",name:"List Recipe Steps",description:"List all steps in a recipe.",parameters:{required:{hash:"The recipe hash"}},returns:"Array of step objects"},{id:"flowdot_recipes_add_step",name:"Add Recipe Step",description:"Add a new step to a recipe. Requires permission.",parameters:{required:{hash:"The recipe hash",type:"Step type (prompt, tool, condition, loop)",name:"Step name"},optional:{prompt:"Prompt template for prompt steps",tool:"Tool name for tool steps",inputs:"Input mapping"}},returns:"Created step object"},{id:"flowdot_recipes_delete_step",name:"Delete Recipe Step",description:"Delete a step from a recipe. Always requires permission.",parameters:{required:{hash:"The recipe hash",stepId:"The step ID to delete"}},returns:"Success status"}]});var u7,p7,d7,f7,m7,h7,g7,y7,w7,v7,x7,b7,_7,S7,BO,GO,HO=b(()=>{"use strict";pn();u7=X(R(async(e,t)=>e.getWorkflowPublicUrl(t.workflowId))),p7=X(R(async(e,t)=>{let{workflowId:r,...n}=t;return e.listSharedResults(r,n)})),d7=X(R(async(e,t)=>e.getSharedResult(t.workflowId,t.resultHash))),f7=X(R(async(e,t)=>e.getSharedResultComments(t.workflowId,t.resultHash))),m7=X(R(async(e,t)=>{let{workflowId:r,...n}=t;return e.listInputPresets(r,n)})),h7=X(R(async(e,t)=>e.getInputPreset(t.workflowId,t.presetHash))),g7=N({toolName:"flowdot_sharing_create_shared_result",description:"Create shared result",handler:R(async(e,t)=>{let{workflowId:r,...n}=t;return e.createSharedResult(r,n)}),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Execution ID: ${e.execution_id}`,e.title?`Title: ${e.title}`:""].filter(Boolean)}),y7=N({toolName:"flowdot_sharing_add_shared_result_comment",description:"Add shared result comment",handler:R(async(e,t)=>e.addSharedResultComment(t.workflowId,t.resultHash,t.content,t.parentId)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Result Hash: ${e.resultHash}`,`Comment: ${e.content.substring(0,50)}${e.content.length>50?"...":""}`]}),w7=N({toolName:"flowdot_sharing_vote_shared_result",description:"Vote on shared result",handler:R(async(e,t)=>e.voteSharedResult(t.workflowId,t.resultHash,t.vote)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Result Hash: ${e.resultHash}`,`Vote: ${e.vote}`]}),v7=N({toolName:"flowdot_sharing_create_input_preset",description:"Create input preset",handler:R(async(e,t)=>{let{workflowId:r,...n}=t;return e.createInputPreset(r,n)}),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,e.title?`Title: ${e.title}`:"",`Inputs: ${Object.keys(e.inputs||{}).join(", ")||"none"}`].filter(Boolean)}),x7=N({toolName:"flowdot_sharing_update_input_preset",description:"Update input preset",handler:R(async(e,t)=>{let{workflowId:r,presetHash:n,...o}=t;return e.updateInputPreset(r,n,o)}),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Preset Hash: ${e.presetHash}`]}),b7=N({toolName:"flowdot_sharing_delete_input_preset",description:"Delete input preset",handler:R(async(e,t)=>e.deleteInputPreset(t.workflowId,t.presetHash)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Preset Hash: ${e.presetHash}`,"WARNING: This action cannot be undone!"]}),_7=N({toolName:"flowdot_sharing_vote_input_preset",description:"Vote on input preset",handler:R(async(e,t)=>e.voteInputPreset(t.workflowId,t.presetHash,t.vote)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Preset Hash: ${e.presetHash}`,`Vote: ${e.vote}`]}),S7=N({toolName:"flowdot_sharing_toggle_community_inputs",description:"Toggle community inputs",handler:R(async(e,t)=>e.toggleCommunityInputs(t.workflowId,t.enabled)),getPermissionDetails:e=>[`Workflow ID: ${e.workflowId}`,`Community Inputs: ${e.enabled?"Enable":"Disable"}`]}),BO={flowdot_sharing_get_public_url:u7,flowdot_sharing_list_shared_results:p7,flowdot_sharing_get_shared_result:d7,flowdot_sharing_get_shared_result_comments:f7,flowdot_sharing_list_input_presets:m7,flowdot_sharing_get_input_preset:h7,flowdot_sharing_create_shared_result:g7,flowdot_sharing_add_shared_result_comment:y7,flowdot_sharing_vote_shared_result:w7,flowdot_sharing_create_input_preset:v7,flowdot_sharing_update_input_preset:x7,flowdot_sharing_vote_input_preset:_7,flowdot_sharing_toggle_community_inputs:S7,flowdot_sharing_delete_input_preset:b7},GO=[{id:"flowdot_sharing_get_public_url",name:"Get Workflow Public URL",description:"Get the public URL for a workflow.",parameters:{required:{workflowId:"The workflow ID"}},returns:"Public URL and sharing information"},{id:"flowdot_sharing_list_shared_results",name:"List Shared Results",description:"List shared results for a workflow.",parameters:{required:{workflowId:"The workflow ID"},optional:{sort:"Sort order",limit:"Results per page",page:"Page number"}},returns:"Paginated list of shared results"},{id:"flowdot_sharing_get_shared_result",name:"Get Shared Result",description:"Get a specific shared result.",parameters:{required:{workflowId:"The workflow ID",resultHash:"The shared result hash"}},returns:"Shared result with details"},{id:"flowdot_sharing_create_shared_result",name:"Create Shared Result",description:"Share an execution result publicly. Requires permission.",parameters:{required:{workflowId:"The workflow ID",execution_id:"The execution ID to share"},optional:{title:"Title for the shared result",description:"Description"}},returns:"Created shared result object"},{id:"flowdot_sharing_list_input_presets",name:"List Input Presets",description:"List input presets for a workflow.",parameters:{required:{workflowId:"The workflow ID"},optional:{sort:"Sort order",limit:"Results per page",page:"Page number"}},returns:"List of input presets with community presets"},{id:"flowdot_sharing_get_input_preset",name:"Get Input Preset",description:"Get a specific input preset.",parameters:{required:{workflowId:"The workflow ID",presetHash:"The preset hash"}},returns:"Input preset with details"},{id:"flowdot_sharing_create_input_preset",name:"Create Input Preset",description:"Create an input preset for a workflow. Requires permission.",parameters:{required:{workflowId:"The workflow ID",inputs:"Object containing preset input values"},optional:{title:"Title for the preset",description:"Description of the preset"}},returns:"Created input preset object"},{id:"flowdot_sharing_update_input_preset",name:"Update Input Preset",description:"Update an input preset. Requires permission.",parameters:{required:{workflowId:"The workflow ID",presetHash:"The preset hash to update"},optional:{title:"New title",description:"New description",inputs:"Updated input values"}},returns:"Updated input preset object"},{id:"flowdot_sharing_delete_input_preset",name:"Delete Input Preset",description:"Delete an input preset. Always requires permission.",parameters:{required:{workflowId:"The workflow ID",presetHash:"The preset hash to delete"}},returns:"Success status"},{id:"flowdot_sharing_toggle_community_inputs",name:"Toggle Community Inputs",description:"Enable or disable community input presets for a workflow. Requires permission.",parameters:{required:{workflowId:"The workflow ID",enabled:"True to enable, false to disable community inputs"}},returns:"Toggle result with new status"}]});async function Yw(e){let{message:t,title:r,channelTypes:n=["telegram"],priority:o="normal"}=e;O("GOAL_SERVICES","Sending notification",{messageLength:t.length,title:r,channelTypes:n,priority:o});try{let i=await(await Fe()).post("/api/comms/notify",{message:t,title:r,channel_types:n,priority:o});if(!i.data)throw new Error("Empty response from notify endpoint");let a=i.data.results||[],c=a.filter(u=>u.success).length,l=a.filter(u=>!u.success).length,p={success_count:i.data.success_count??c,failed_count:i.data.failed_count??l,results:a};return O("GOAL_SERVICES","Notification sent",{successCount:p.success_count,failedCount:p.failed_count}),p}catch(s){throw pe("GOAL_SERVICES","Failed to send notification",{error:s.message}),s}}var Jw=b(()=>{"use strict";qe();U();Bo();});var T7,KO,zO,WO=b(()=>{"use strict";Jw();U();T7=async(e,t)=>{let r=e.payload||{};if(!r.message)return{success:!1,error:"Missing required parameter: message"};try{return O("COMMS","Sending notification",{messageLength:r.message.length,title:r.title,channelTypes:r.channel_types}),{success:!0,data:await Yw({message:r.message,title:r.title,channelTypes:r.channel_types})}}catch(n){return{success:!1,error:`Notification failed: ${n.message}`}}},KO={flowdot_comms_send_notification:T7},zO=[{id:"flowdot_comms_send_notification",name:"Send Notification",description:"Send a notification message via configured COMMS channels (Telegram, Discord, Slack, etc.).",parameters:{required:{message:"string - The notification message to send (max 2000 chars)"},optional:{title:'string - Title for the notification (default: "FlowDot")',channel_types:'string[] - Channel types to send to (e.g., ["telegram"]). Sends to all configured channels if omitted.'}},returns:"Notification result with success status and per-channel delivery results"}]});var VO=b(()=>{"use strict";});var Ave,k7,Xw=b(()=>{"use strict";SO();EO();AO();$O();MO();FO();UO();HO();WO();Vw();VO();pn();Ave={...bO,...TO,...RO,...CO,...OO,...DO,...qO,...BO,...KO},k7=[..._O,...kO,...IO,...PO,...NO,...LO,...jO,...GO,...zO]});var YO=b(()=>{"use strict";});var Qw=b(()=>{"use strict";U();rc();Q$();Z$();eO();rO();nO();oO();sO();iO();aO();cO();lO();uO();dO();mO();Xw();YO();Xw();});var Zw=b(()=>{"use strict";U();});var tN=b(()=>{"use strict";});var nN=b(()=>{"use strict";U();sc();Ho();tN();Ho();Hw();});import{useState as At,useEffect as Cp,useRef as ac,useCallback as pv,useImperativeHandle as KQ,forwardRef as zQ}from"react";import{Box as ar,Text as oe,useInput as WQ,useApp as VQ,useStdout as YQ,Static as JQ}from"ink";li();import OM,{useState as NM,useEffect as MM}from"react";import{Text as DM,useInput as LM}from"ink";function FM({value:e,placeholder:t="",focus:r=!0,mask:n,highlightPastedText:o=!1,showCursor:s=!0,onChange:i,onSubmit:a}){let[c,l]=NM({cursorOffset:(e||"").length,cursorWidth:0}),{cursorOffset:p,cursorWidth:u}=c;MM(()=>{l(w=>{if(!r||!s)return w;let x=e||"";return w.cursorOffset>x.length-1?{cursorOffset:x.length,cursorWidth:0}:w})},[e,r,s]);let d=o?u:0,g=n?n.repeat(e.length):e,m=g,h=t?Q.grey(t):void 0;if(s&&r){h=t.length>0?Q.inverse(t[0])+Q.grey(t.slice(1)):Q.inverse(" "),m=g.length>0?"":Q.inverse(" ");let w=0;for(let x of g)m+=w>=p-d&&w<=p?Q.inverse(x):x,w++;g.length>0&&p===g.length&&(m+=Q.inverse(" "))}return LM((w,x)=>{if(x.upArrow||x.downArrow||x.ctrl&&w==="c"||x.tab||x.shift&&x.tab)return;if(x.return){a&&a(e);return}let E=p,S=e,k=0;x.leftArrow?s&&E--:x.rightArrow?s&&E++:x.backspace||x.delete?p>0&&(S=e.slice(0,p-1)+e.slice(p,e.length),E--):(S=e.slice(0,p)+w+e.slice(p,e.length),E+=w.length,w.length>1&&(k=w.length)),p<0&&(E=0),p>e.length&&(E=e.length),l({cursorOffset:E,cursorWidth:k}),S!==e&&i(S)},{isActive:r}),OM.createElement(DM,null,t?g.length>0?m:h:m)}var Dv=FM;import XQ from"react";import{Box as zM,Text as Pr}from"ink";function xc(e){let t=Date.now()-e,r=Math.floor(t/1e3),n=Math.floor(r/60),o=Math.floor(n/60),s=n%60,i=r%60,a=[];return o>0&&a.push(`${o}h`),(s>0||o>0)&&a.push(`${s}m`),a.push(`${i}s`),a.join(" ")}function wr(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:e.toString()}function qM(e){let{startTime:t,inputTokens:r,outputTokens:n,provider:o,model:s,actionText:i}=e,a=xc(t),c=wr(n),l=o&&s?`${o}/${s}`.slice(0,50):s||"unknown",p=["esc to interrupt",a];return r&&r>0&&p.push(`\u2191 ${wr(r)}`),p.push(`\u2193 ${c} tokens`),p.push(l),p.push(i),`(${p.join(" \xB7 ")})`}import{createContext as jM,useContext as UM,useState as BM,useEffect as GM,useMemo as HM}from"react";import{jsx as KM}from"react/jsx-runtime";var Lv=jM({currentTime:Date.now()}),ui=({children:e,interval:t=1e3})=>{let[r,n]=BM(Date.now());GM(()=>{let s=setInterval(()=>{n(Date.now())},t);return()=>clearInterval(s)},[t]);let o=HM(()=>({currentTime:r}),[r]);return KM(Lv.Provider,{value:o,children:e})},Fv=()=>{let{currentTime:e}=UM(Lv);return e},Cr=(e,t=!0)=>{let r=Fv();return!t||!e?0:r-e};import{jsx as $r,jsxs as WM}from"react/jsx-runtime";var qv=({startTime:e,inputTokens:t=0,outputTokens:r,provider:n,model:o,actionText:s})=>{let i=Cr(e,!0),a=xc(e),c=n&&o?`${n}/${o}`.slice(0,45):o||"unknown",l=`\u2193 ${wr(r)} tokens`,p=t>0?`\u2191 ${wr(t)} \xB7 `:"";return WM(zM,{children:[$r(Pr,{dimColor:!0,children:"(esc to interrupt"}),$r(Pr,{dimColor:!0,children:" \xB7 "}),$r(Pr,{color:"yellow",children:a}),$r(Pr,{dimColor:!0,children:" \xB7 "}),p&&$r(Pr,{color:"blue",children:p}),$r(Pr,{color:"green",children:l}),$r(Pr,{dimColor:!0,children:" \xB7 "}),$r(Pr,{color:"cyan",children:c}),$r(Pr,{dimColor:!0,children:" \xB7 "}),$r(Pr,{color:"magenta",bold:!0,children:s}),$r(Pr,{dimColor:!0,children:")"})]})};import{useState as VM,useEffect as YM}from"react";import{Box as Cn,Text as Ne}from"ink";import{Fragment as rD,jsx as $e,jsxs as cr}from"react/jsx-runtime";var jv=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],JM=300,XM=({isActive:e=!0})=>{let[t,r]=VM(0);return YM(()=>{if(!e)return;let n=setInterval(()=>{r(o=>(o+1)%jv.length)},JM);return()=>clearInterval(n)},[e]),$e(Ne,{color:"yellow",children:jv[t]})},QM=({status:e,isActive:t=!0})=>{switch(e){case"completed":return $e(Ne,{color:"green",children:"\u2713"});case"in_progress":return $e(XM,{isActive:t});case"failed":return $e(Ne,{color:"red",children:"\u2717"});case"pending":default:return $e(Ne,{color:"gray",children:"\u25CB"})}},ZM=({status:e})=>{let t={idle:"gray",working:"yellow",paused:"blue",completed:"green",failed:"red"},r={idle:"Idle",working:"Working",paused:"Paused",completed:"Done",failed:"Failed"};return $e(Ne,{color:t[e],children:r[e]})},eD=({state:e,toggleHint:t="ctrl+t"})=>{let{tasks:r,completedCount:n,totalCount:o,currentTask:s,status:i,title:a}=e,c=s?.activeForm||s?.description||a||"Tasks",l=c.length>30?c.substring(0,27)+"...":c;return cr(Cn,{children:[$e(Ne,{color:"cyan",children:"("}),$e(Ne,{color:"white",children:"Tasks"}),$e(Ne,{color:"gray",children:" \xB7 "}),cr(Ne,{color:n===o?"green":"yellow",children:[n,"/",o]}),$e(Ne,{color:"gray",children:" \xB7 "}),$e(Ne,{color:"white",children:`"${l}"`}),$e(Ne,{color:"gray",children:" \xB7 "}),$e(ZM,{status:i}),$e(Ne,{color:"gray",children:" \xB7 "}),$e(Ne,{color:"gray",dimColor:!0,children:t}),$e(Ne,{color:"cyan",children:")"})]})},tD=({state:e,toggleHint:t="ctrl+t",maxVisible:r=10})=>{let{tasks:n,completedCount:o,totalCount:s,title:i,status:a}=e,l=[...n].sort((u,d)=>u.status==="in_progress"?-1:d.status==="in_progress"?1:u.status==="pending"&&d.status!=="pending"?-1:d.status==="pending"&&u.status!=="pending"?1:0).slice(0,r),p=n.length-l.length;return cr(Cn,{flexDirection:"column",borderStyle:"round",borderColor:"cyan",paddingX:1,children:[cr(Cn,{justifyContent:"space-between",children:[cr(Cn,{children:[$e(Ne,{color:"cyan",bold:!0,children:"Tasks"}),i&&cr(rD,{children:[$e(Ne,{color:"gray",children:" - "}),$e(Ne,{color:"white",children:i})]}),$e(Ne,{color:"gray",children:" ("}),cr(Ne,{color:o===s?"green":"yellow",children:[o,"/",s]}),$e(Ne,{color:"gray",children:")"})]}),cr(Ne,{color:"gray",dimColor:!0,children:["[",t," to collapse]"]})]}),cr(Cn,{flexDirection:"column",marginTop:1,children:[l.map((u,d)=>cr(Cn,{children:[cr(Ne,{color:"gray",children:[String(d+1).padStart(2," "),". "]}),$e(QM,{status:u.status}),$e(Ne,{children:" "}),$e(Ne,{color:u.status==="completed"?"green":u.status==="failed"?"red":u.status==="in_progress"?"yellow":"white",children:u.status==="in_progress"&&u.activeForm||u.description}),u.status==="in_progress"&&$e(Ne,{color:"gray",dimColor:!0,children:" [in progress]"}),u.status==="failed"&&u.error&&cr(Ne,{color:"red",dimColor:!0,children:[" (",u.error,")"]})]},u.id)),p>0&&cr(Ne,{color:"gray",dimColor:!0,children:[" ... and ",p," more"]})]}),a==="completed"&&$e(Cn,{marginTop:1,children:$e(Ne,{color:"green",children:"All tasks completed!"})}),a==="failed"&&$e(Cn,{marginTop:1,children:$e(Ne,{color:"red",children:"Some tasks failed. Check errors above."})})]})},Kp=({state:e,isExpanded:t,toggleHint:r="ctrl+t",maxVisible:n=10})=>e.tasks.length===0?null:t?$e(tD,{state:e,toggleHint:r,maxVisible:n}):$e(eD,{state:e,toggleHint:r});Kp.displayName="TaskPanel";import{Box as Hr,Text as rt,useInput as TQ}from"ink";import{useState as nD,useEffect as oD}from"react";import{Text as sD}from"ink";import{jsx as aD}from"react/jsx-runtime";var Uv=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],iD=300,vr=({color:e="cyan"})=>{let[t,r]=nD(0);return oD(()=>{let n=setInterval(()=>{r(o=>(o+1)%Uv.length)},iD);return()=>clearInterval(n)},[]),aD(sD,{color:e,children:Uv[t]})};qe();Gt();Tg();Ms();$o();Ag();fu();Sw();Tw();B$();ln();hp();qe();or();U();Gt();Ms();Qw();Zw();kp();Uw();Go();sc();Zw();kp();Go();U();qe();U();var Mxe=60*1e3;Qw();qe();or();U();jw();Sp();qe();Sp();var Zxe=300*1e3,ebe=600*1e3;var tbe=60*1e3,rbe=3600*1e3,nbe=50*1024,obe=10*1024,sbe=100*1024;U();U();Ow();Xa();qe();Gt();or();U();var ybe=new Xe;qe();Gt();or();U();var _be=new Xe;qe();Gt();or();U();var Rbe=new Xe;or();qe();Gt();U();var $be=600*1e3;U();qe();or();Uo();U();Fw();bp();Lw();Pw();Bo();qe();U();qe();or();U();Tp();U();var Xbe=10*1024*1024;var Qbe=process.cwd();qe();U();var eN=null;var r_e=600*1e3;function tv(){return eN?.name?eN.name:null}U();qw();Uo();vp();var s_e=100*1024;nN();rc();ec();Za();var q7="\x1B";var x_e=`${q7}\\`;U();var A_e={hubUrl:"",hubPublicKey:process.env.FLOWDOT_HUB_PUBLIC_KEY||"",reconnectEnabled:!0,reconnectMaxAttempts:10,reconnectBaseDelayMs:1e3,reconnectMaxDelayMs:3e4,heartbeatIntervalMs:3e4,connectionTimeoutMs:1e4};U();qe();U();import*as rv from"node:path";import*as aN from"node:os";var WSe=rv.join(aN.homedir(),".flowdot","selected-character.json");qe();Ms();Gt();var tTe=5*1024*1024;import*as nv from"node:path";import*as lN from"node:os";var iTe=nv.join(lN.homedir(),".flowdot","voice-permissions.json");var vQ=48e3;var xQ=10,dTe=vQ*xQ/1e3;qe();Jw();import{Box as Rp,Text as mr}from"ink";import{jsx as hr,jsxs as ri}from"react/jsx-runtime";var ic={branch:"\u251C\u2500",lastBranch:"\u2514\u2500",vertical:"\u2502 ",space:" ",corner:"\u23BF "};function bQ(e){switch(e){case"running":return hr(vr,{});case"completed":return hr(mr,{color:"green",children:"\u2713"});case"failed":return hr(mr,{color:"red",children:"\u2717"});case"skipped":return hr(mr,{color:"gray",children:"\u25CB"});case"pending":default:return hr(mr,{color:"gray",children:"\u25E6"})}}function _Q(e){switch(e){case"running":return"cyan";case"completed":return"green";case"failed":return"red";case"skipped":return"gray";case"pending":default:return"gray"}}function SQ(e){switch(e){case"agent":return"\u{1F916}";case"loop":return"\u{1F504}";case"parallel":return"\u2AD8";case"gate":return"\u{1F6A7}";case"branch":return"\u2442";case"invoke":return"\u{1F4E6}";case"output":return"\u{1F4E2}";default:return"\u2022"}}function Ip({step:e,isLast:t,depth:r=0,parentPrefix:n="",showDetails:o=!0}){let s=e.status==="running"&&!!e.startTime,i=Cr(e.startTime,s),a=s?i:e.metrics.durationMs,c=t?ic.lastBranch:ic.branch,l=n+(t?ic.space:ic.vertical),p=[];if(p.push(e.stepName),e.currentTool&&p.push(e.currentTool),e.toolCount>0&&p.push(`${e.toolCount} tool${e.toolCount!==1?"s":""}`),e.activeText&&o&&p.push(It(e.activeText,25)),e.iterationIndex!==void 0&&e.iterationTotal!==void 0&&p.push(`[${e.iterationIndex+1}/${e.iterationTotal}]`),o&&(e.metrics.inputTokens>0||e.metrics.outputTokens>0)&&p.push(nc(e.metrics.inputTokens,e.metrics.outputTokens)),o&&a>0&&p.push(fr(a)),o&&e.metrics.cost!==void 0&&e.metrics.cost>0&&p.push(oc(e.metrics.cost)),o&&e.metrics.model){let g=e.metrics.provider?`${e.metrics.provider}/${e.metrics.model}`:e.metrics.model;p.push(It(g,30))}let u=_Q(e.status),d=Dw(e.status);return ri(Rp,{flexDirection:"column",children:[ri(Rp,{children:[ri(mr,{color:"gray",children:[n,c]}),hr(mr,{children:" "}),bQ(e.status),hr(mr,{children:" "}),hr(mr,{color:"gray",children:SQ(e.stepType)}),hr(mr,{children:" "}),hr(mr,{color:u,bold:e.status==="running",children:p.join(" \u25CF ")})]}),(e.status==="completed"||e.status==="failed")&&ri(Rp,{children:[ri(mr,{color:"gray",children:[l,ic.corner]}),hr(mr,{color:u,children:d}),e.status==="failed"&&e.metrics.cost!==void 0&&ri(mr,{color:"red",children:[" (cost: $",e.metrics.cost.toFixed(4),")"]})]}),e.children&&e.children.length>0&&hr(Rp,{flexDirection:"column",children:e.children.map((g,m)=>hr(Ip,{step:g,isLast:m===e.children.length-1,depth:r+1,parentPrefix:l,showDetails:o},g.stepId))})]})}import{jsx as Ke,jsxs as Vt}from"react/jsx-runtime";function kQ(e){switch(e){case"running":return Ke(vr,{});case"completed":return Ke(rt,{color:"green",children:"\u2713"});case"failed":return Ke(rt,{color:"red",children:"\u2717"});case"paused":return Ke(rt,{color:"yellow",children:"\u23F8"});case"pending":default:return Ke(rt,{color:"gray",children:"\u25E6"})}}function EQ(e){switch(e){case"running":return"cyan";case"completed":return"green";case"failed":return"red";case"paused":return"yellow";case"pending":default:return"gray"}}function RQ(e){let t=["th","st","nd","rd"],r=e%100;return e+(t[(r-20)%10]||t[r]||t[0])}function IQ(e){switch(e){case"completed":return Ke(rt,{color:"green",children:"\u2713"});case"in_progress":return Ke(vr,{});case"pending":default:return Ke(rt,{color:"gray",children:"\u25CB"})}}function AQ({tasks:e}){let{counters:t,recentTasks:r}=e;return Vt(Hr,{flexDirection:"column",marginTop:1,children:[Vt(Hr,{children:[Ke(rt,{color:"cyan",bold:!0,children:"Tasks: "}),Vt(rt,{color:"green",children:[t.completed," done"]}),Ke(rt,{color:"gray",children:" / "}),Vt(rt,{color:"yellow",children:[t.in_progress," active"]}),Ke(rt,{color:"gray",children:" / "}),Vt(rt,{color:"gray",children:[t.pending," pending"]}),Vt(rt,{color:"gray",children:[" (",t.total," total)"]})]}),r.length>0&&Ke(Hr,{flexDirection:"column",marginTop:1,marginLeft:2,children:r.map((n,o)=>Vt(Hr,{children:[Vt(rt,{color:"gray",children:[o===r.length-1?"\u2514\u2500":"\u251C\u2500"," "]}),IQ(n.status),Ke(rt,{children:" "}),Ke(rt,{color:n.status==="completed"?"green":n.status==="in_progress"?"yellow":"white",children:It(n.content,50)}),n.category&&Vt(rt,{color:"gray",dimColor:!0,children:[" [",n.category,"]"]})]},n.id))})]})}function CQ({messages:e}){return Ke(Hr,{flexDirection:"column",marginTop:1,children:e.map((t,r)=>Ke(Hr,{children:Ke(rt,{color:t.color,children:t.message})},r))})}function PQ({recipeName:e,initialPrompt:t,status:r,metrics:n,elapsedMs:o,isExpanded:s,onToggle:i}){let a=EQ(r),c=[];c.push(e),t&&c.push(It(t,40)),c.push(fr(o)),(n.totalInputTokens>0||n.totalOutputTokens>0)&&c.push(nc(n.totalInputTokens,n.totalOutputTokens)),n.totalCost>0&&c.push(oc(n.totalCost)),n.iterationCount>1&&c.push(`${RQ(n.iterationCount)} Attempt`),n.subAgentCount>0&&c.push(`${n.subAgentCount} Sub Agent${n.subAgentCount!==1?"s":""}`),n.toolCallCount>0&&c.push(`${n.toolCallCount} tool${n.toolCallCount!==1?"s":""}`);let l=Mw(n.modelsUsed);return l&&c.push(l),Vt(Hr,{children:[kQ(r),Ke(rt,{children:" "}),Ke(rt,{color:a,bold:!0,children:c.join(" \u25CF ")}),Vt(rt,{color:"gray",children:[" ","[",s?"\u25BC":"\u25B6","]"]})]})}function ov({state:e,isExpanded:t=!0,onToggleExpand:r,showKeyHint:n=!0}){let o=e?.status==="running",s=Cr(e?.startTime,o),i=o?s:e?.aggregatedMetrics.totalDurationMs||0;if(TQ((m,h)=>{m==="r"&&h.ctrl&&r&&r()}),!e)return null;let{recipeName:a,initialPrompt:c,status:l,steps:p,aggregatedMetrics:u,tasks:d,outputMessages:g}=e;return Vt(Hr,{flexDirection:"column",borderStyle:"round",borderColor:"gray",paddingX:1,marginY:1,children:[Ke(PQ,{recipeName:a,initialPrompt:c,status:l,metrics:u,elapsedMs:i,isExpanded:t,onToggle:r}),t&&p.length>0&&Ke(Hr,{flexDirection:"column",marginTop:1,children:p.map((m,h)=>Ke(Ip,{step:m,isLast:h===p.length-1,showDetails:!0},m.stepId))}),t&&d&&d.counters.total>0&&Ke(AQ,{tasks:d}),t&&g&&g.length>0&&Ke(CQ,{messages:g}),!t&&Ke(Hr,{marginTop:1,children:Vt(rt,{color:"gray",children:[u.completedSteps,"/",u.stepCount," steps completed",u.failedSteps>0&&Vt(rt,{color:"red",children:[" (",u.failedSteps," failed)"]})]})}),n&&r&&Ke(Hr,{marginTop:1,children:Vt(rt,{color:"gray",dimColor:!0,children:["Press Ctrl+R to ",t?"collapse":"expand"]})})]})}function sv({onlyFirst:e=!1}={}){let o="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(o,e?void 0:"g")}var $Q=sv();function iv(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace($Q,"")}import{Text as uN}from"ink";import{jsx as pN}from"react/jsx-runtime";var OQ=/^(bold|\/bold|[a-z]+-fg|\/[a-z]+-fg)$/;function NQ(e){return OQ.test(e)}function dN(e){let t={style:{},children:[]},r=[t],n=0,o=c=>{if(!c)return;let l=r[r.length-1],p=l.children[l.children.length-1];if(typeof p=="string"){l.children[l.children.length-1]=p+c;return}l.children.push(c)},s=c=>{let l=r[r.length-1],p={...l.style};c==="bold"?p.bold=!0:c.endsWith("-fg")&&(p.color=c.replace("-fg",""));let u={style:p,children:[]};l.children.push(u),r.push(u)},i=()=>{r.length>1&&r.pop()};for(;n<e.length;)if(e[n]==="{"){let c=e.indexOf("}",n);if(c===-1){o(e[n]),n++;continue}let l=e.substring(n+1,c);if(!NQ(l)){o(e[n]),n++;continue}l.startsWith("/")?i():s(l),n=c+1}else o(e[n]),n++;let a=(c,l)=>{let p=c.children.map((u,d)=>typeof u=="string"?u:a(u,`${l}-${d}`));return pN(uN,{color:c.style.color,bold:c.style.bold,children:p.length===1?p[0]:p},l)};return t.children.map((c,l)=>typeof c=="string"?pN(uN,{children:c},`text-${l}`):a(c,`node-${l}`))}import MQ from"node:os";function fN(){let e=tv();if(e)return e;try{let t=MQ.userInfo();if(t.username)return t.username.charAt(0).toUpperCase()+t.username.slice(1)}catch{}return"friend"}function mN(){let e=new Date().getHours();return e<5?"Burning the midnight oil":e<12?"Good morning":e<17?"Good afternoon":e<21?"Good evening":"Working late"}function av(){let e=fN();return`${mN()}, ${e}!`}import{useState as Ap,useEffect as DQ}from"react";import{Box as me,Text as F,useInput as LQ}from"ink";import{Fragment as HQ,jsx as L,jsxs as se}from"react/jsx-runtime";var Oe={topLeft:"\u250C",topRight:"\u2510",bottomLeft:"\u2514",bottomRight:"\u2518",horizontal:"\u2500",vertical:"\u2502",teeDown:"\u252C",teeUp:"\u2534",teeRight:"\u251C",teeLeft:"\u2524",cross:"\u253C",arrow:"\u25B6",arrowEmpty:"\u25B7"},ni={selected:"\u2591",error:"\u2593"};function cv(e){switch(e){case"running":return"\u25D0";case"completed":return"\u2713";case"failed":return"\u2717";case"paused":return"\u23F8";case"skipped":return"\u25CB";case"pending":default:return"\u25E6"}}function lv(e){switch(e){case"running":return"cyan";case"completed":return"green";case"failed":return"red";case"paused":return"yellow";case"skipped":return"gray";case"pending":default:return"gray"}}function FQ(e){switch(e){case"agent":return"\u{1F916}";case"loop":return"\u{1F504}";case"parallel":return"\u2AD8";case"gate":return"\u{1F6A7}";case"branch":return"\u2442";case"invoke":return"\u{1F4E6}";default:return"\u2022"}}function hN(e,t){let r=(e||0)+(t||0);return r===0?"":r>=1e3?`${(r/1e3).toFixed(1)}k`:`${r}`}function qQ({steps:e,selectedIndex:t,currentStepId:r}){return se(me,{flexDirection:"column",paddingX:2,children:[L(F,{color:"gray",dimColor:!0,children:"Timeline:"}),L(me,{marginTop:1,children:e.map((o,s)=>{let i=s===t,a=o.stepId===r&&o.status!=="completed"&&o.status!=="failed",c=o.status==="failed",l=s===e.length-1,p=i?c?ni.error:ni.selected:" ",u=cv(o.status),d=lv(o.status),g=It(o.stepName,13);return se(me,{flexDirection:"row",alignItems:"center",children:[se(me,{flexDirection:"column",children:[se(F,{color:"gray",children:[Oe.topLeft,Oe.horizontal.repeat(17),Oe.topRight]}),se(F,{children:[L(F,{color:"gray",children:Oe.vertical}),L(F,{color:i?d:"gray",children:p.repeat(17)}),L(F,{color:"gray",children:Oe.vertical})]}),se(F,{children:[L(F,{color:"gray",children:Oe.vertical}),se(F,{color:i?d:void 0,bold:i,children:[" ",g.padEnd(16)]}),L(F,{color:"gray",children:Oe.vertical})]}),se(F,{children:[L(F,{color:"gray",children:Oe.vertical}),L(F,{color:i?d:"gray",children:p.repeat(17)}),L(F,{color:"gray",children:Oe.vertical})]}),se(F,{color:"gray",children:[Oe.bottomLeft,Oe.horizontal.repeat(17),Oe.bottomRight]}),L(me,{justifyContent:"center",children:se(F,{color:d,children:[a?L(vr,{}):u," ",fr(o.durationMs||0)]})})]}),!l&&L(me,{marginX:1,children:se(F,{color:c?"red":"gray",children:[Oe.horizontal,Oe.horizontal,c?"\u2717":Oe.arrow,Oe.horizontal,Oe.horizontal]})})]},o.stepId)})})]})}function jQ({toolCalls:e,selectedIndex:t,stepFailed:r}){return e.length===0?L(me,{borderStyle:"single",borderColor:"gray",paddingX:1,children:L(F,{color:"gray",dimColor:!0,children:"(no tool calls in this step)"})}):L(me,{flexDirection:"column",borderStyle:"single",borderColor:"gray",children:e.map((n,o)=>{let s=o===t,i=!n.success,a=s?i?ni.error:ni.selected:" ",c=n.success?"\u2713":"\u2717",l=n.success?"green":"red",p=Object.entries(n.args||{}).map(([u,d])=>`${u}: ${typeof d=="string"?d:JSON.stringify(d)}`).join(", ");return L(me,{paddingX:1,children:se(F,{children:[s?L(F,{color:l,children:Oe.arrow}):" ",se(F,{color:s?l:void 0,children:[a,n.tool.padEnd(14),a]}),L(F,{color:"gray",children:It(p,30).padEnd(32)}),L(F,{color:"gray",children:fr(n.durationMs||0).padStart(6)}),L(F,{children:" "}),L(F,{color:l,children:c})]})},o)})})}function UQ({selectedToolCall:e,step:t}){if(!e)return se(me,{flexDirection:"column",paddingX:1,children:[L(F,{color:"cyan",bold:!0,children:"DETAILS"}),L(F,{color:"gray",children:"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"}),L(me,{marginTop:1,children:se(F,{color:"gray",dimColor:!0,children:["Select a tool call with \u2191\u2193",`
200
+ `,"to view details here."]})})]});let r=e.success?"green":"red";return se(me,{flexDirection:"column",paddingX:1,children:[L(F,{color:"cyan",bold:!0,children:"TOOL DETAILS"}),L(F,{color:"gray",children:"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"}),se(me,{marginTop:1,flexDirection:"column",children:[se(F,{children:[L(F,{color:"gray",children:"Tool: "}),L(F,{bold:!0,children:e.tool})]}),se(F,{children:[L(F,{color:"gray",children:"Status: "}),L(F,{color:r,children:e.success?"\u2713 success":"\u2717 error"})]}),se(F,{children:[L(F,{color:"gray",children:"Duration: "}),L(F,{children:fr(e.durationMs||0)})]}),se(me,{marginTop:1,flexDirection:"column",children:[L(F,{color:"gray",children:"Input:"}),L(me,{borderStyle:"single",borderColor:"gray",paddingX:1,marginTop:0,children:L(F,{children:JSON.stringify(e.args||{},null,2)})})]}),e.error&&se(me,{marginTop:1,flexDirection:"column",children:[L(F,{color:"red",children:"Error Message:"}),L(me,{borderStyle:"single",borderColor:"red",paddingX:1,marginTop:0,children:L(F,{color:"red",children:e.error})})]})]})]})}function BQ({stores:e,selectedStoreKey:t,storeKeys:r,selectedIndex:n}){return se(me,{flexDirection:"column",children:[L(F,{color:"cyan",bold:!0,children:"Recipe Stores:"}),L(me,{flexDirection:"column",borderStyle:"single",borderColor:"gray",marginTop:1,children:r.length===0?L(me,{paddingX:1,children:L(F,{color:"gray",dimColor:!0,children:"(no stores)"})}):r.map((o,s)=>{let i=s===n,a=e[o],c=typeof a=="string"?It(a,30):It(JSON.stringify(a),30);return L(me,{paddingX:1,children:se(F,{children:[i?L(F,{color:"cyan",children:Oe.arrow}):" ",se(F,{color:i?"cyan":void 0,children:[i?ni.selected:" ",o.padEnd(20),i?ni.selected:" "]}),L(F,{color:"gray",children:c})]})},o)})})]})}function GQ({storeKey:e,storeValue:t}){if(!e)return se(me,{flexDirection:"column",paddingX:1,children:[L(F,{color:"cyan",bold:!0,children:"STORE VALUE"}),L(F,{color:"gray",children:"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"}),L(me,{marginTop:1,children:se(F,{color:"gray",dimColor:!0,children:["Select a store with \u2191\u2193",`
201
+ `,"to view its value here."]})})]});let r=typeof t=="string"?t:JSON.stringify(t,null,2);return se(me,{flexDirection:"column",paddingX:1,children:[L(F,{color:"cyan",bold:!0,children:"STORE VALUE"}),L(F,{color:"gray",children:"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"}),se(me,{marginTop:1,flexDirection:"column",children:[se(F,{children:[L(F,{color:"gray",children:"Key: "}),L(F,{bold:!0,children:e})]}),se(F,{children:[L(F,{color:"gray",children:"Type: "}),L(F,{children:typeof t})]}),se(me,{marginTop:1,flexDirection:"column",children:[L(F,{color:"gray",children:"Value:"}),L(me,{borderStyle:"single",borderColor:"gray",paddingX:1,marginTop:0,children:L(F,{children:It(r,500)})})]})]})]})}function uv({executionState:e,recipeName:t,initialPrompt:r,readOnly:n=!1,onExit:o,onRetryStep:s}){let[i,a]=Ap(0),[c,l]=Ap(0),[p,u]=Ap(0),[d,g]=Ap("tools"),m=e?.stepResults||[],h=m[i]||null,w=h?.toolCalls||[],x=w[c]||null,E=Object.keys(e?.stores||{}),S=E[p]||null,k=S&&e?.stores?e.stores[S]:null;if(DQ(()=>{l(0)},[i]),LQ((De,Z)=>{if(De==="q"||Z.escape){o?.();return}if(Z.tab||De==="s"){g(J=>J==="tools"?"stores":"tools");return}if(Z.leftArrow){a(J=>Math.max(0,J-1));return}if(Z.rightArrow){a(J=>Math.min(m.length-1,J+1));return}if(Z.upArrow){d==="tools"?l(J=>Math.max(0,J-1)):u(J=>Math.max(0,J-1));return}if(Z.downArrow){d==="tools"?l(J=>Math.min(w.length-1,J+1)):u(J=>Math.min(E.length-1,J+1));return}if(De==="r"&&!n&&h?.status==="failed"&&s){s(h.stepId);return}}),!e)return null;let I=e.status,C=lv(I),P=cv(I),$=e.durationMs||0,H=e.totalTokens||0,ge=["\u2190\u2192 Timeline","\u2191\u2193 "+(d==="tools"?"Tool Calls":"Stores"),"Tab Toggle View",h?.status==="failed"&&!n?"r Retry Step":null,"q Quit"].filter(Boolean).join(" \u2502 ");return se(me,{flexDirection:"column",borderStyle:"round",borderColor:"gray",paddingX:1,children:[se(me,{justifyContent:"space-between",paddingX:1,children:[se(F,{children:[L(F,{color:"cyan",bold:!0,children:"AUDIT: "}),L(F,{bold:!0,children:t}),r&&se(F,{color:"gray",children:[" - ",It(r,40)]})]}),se(F,{color:C,children:[I==="running"?L(vr,{}):P," ",fr($)," total",H>0&&se(F,{color:"gray",children:[" \u2502 ",hN(H)," tokens"]})]})]}),L(me,{children:se(F,{color:"gray",children:[Oe.teeRight,Oe.horizontal.repeat(100),Oe.teeLeft]})}),L(qQ,{steps:m,selectedIndex:i,currentStepId:e.currentStepId}),L(me,{children:se(F,{color:"gray",children:[Oe.teeRight,Oe.horizontal.repeat(65),Oe.teeDown,Oe.horizontal.repeat(34),Oe.teeLeft]})}),se(me,{children:[se(me,{flexDirection:"column",width:"66%",paddingX:1,children:[h&&L(me,{marginBottom:1,children:se(F,{children:[L(F,{color:"cyan",bold:!0,children:"STEP: "}),L(F,{bold:!0,children:h.stepName})]})}),h&&L(me,{marginBottom:1,children:se(F,{color:"gray",children:["Type: ",FQ(h.stepType)," ",h.stepType||"agent"," \u2502 Status: ",L(F,{color:lv(h.status),children:cv(h.status)})," \u2502 Tokens: ",hN(h.inputTokensUsed,h.outputTokensUsed)]})}),L(me,{marginBottom:1,children:se(F,{children:[L(F,{color:d==="tools"?"cyan":"gray",children:d==="tools"?"[Tools]":" Tools "}),L(F,{children:" "}),L(F,{color:d==="stores"?"cyan":"gray",children:d==="stores"?"[Stores]":" Stores "})]})}),d==="tools"?se(HQ,{children:[L(F,{color:"gray",children:"Tool Calls:"}),L(jQ,{toolCalls:w,selectedIndex:c,stepFailed:h?.status==="failed"}),h?.output&&se(me,{marginTop:1,flexDirection:"column",children:[L(F,{color:"gray",children:"Output Preview:"}),L(F,{color:"gray",dimColor:!0,children:It(typeof h.output=="string"?h.output:JSON.stringify(h.output),80)})]}),h?.error&&se(me,{marginTop:1,flexDirection:"column",children:[L(F,{color:"red",children:"Error:"}),L(me,{borderStyle:"single",borderColor:"red",paddingX:1,children:L(F,{color:"red",children:h.error})})]})]}):L(BQ,{stores:e.stores||{},selectedStoreKey:S,storeKeys:E,selectedIndex:p})]}),L(me,{children:L(F,{color:"gray",children:Oe.vertical})}),L(me,{flexDirection:"column",width:"33%",children:d==="tools"?L(UQ,{selectedToolCall:x,step:h}):L(GQ,{storeKey:S,storeValue:k})})]}),L(me,{children:se(F,{color:"gray",children:[Oe.teeRight,Oe.horizontal.repeat(100),Oe.teeLeft]})}),L(me,{paddingX:1,children:L(F,{color:"gray",dimColor:!0,children:ge})})]})}import{Fragment as cc,jsx as ee,jsxs as vt}from"react/jsx-runtime";var gN=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],QQ=300,ZQ=()=>{let[e,t]=At(0);return Cp(()=>{let r=setInterval(()=>{t(n=>(n+1)%gN.length)},QQ);return()=>clearInterval(r)},[]),ee(oe,{children:gN[e]})},yN=XQ.memo(({message:e,parseFormattedText:t})=>typeof e.text=="string"?e.text.includes("{")&&e.text.includes("}")?ee(ar,{children:t(e.text)},e.id):e.type==="user"?ee(oe,{backgroundColor:"blackBright",color:"white",children:e.text},e.id):ee(oe,{color:e.type==="error"?"red":e.type==="success"?"green":"white",children:e.text},e.id):ee(ar,{children:e.text},e.id),(e,t)=>e.message.id===t.message.id);yN.displayName="MessageRenderer";function eZ(e,t){let r=e.current;return t&&r.showing&&r.config?(r.config.onSelect(t),!0):!1}var wN=zQ(({onInput:e,onExit:t,initialHistory:r,onSaveHistory:n,onCancel:o},s)=>{let[i,a]=At([]),[c,l]=At(r),[p,u]=At(-1),[d,g]=At(""),[m,h]=At(!1),[w,x]=At(null),[E,S]=At("Type your message | Ctrl+C to exit | Ctrl+K to cancel operation "),[k,I]=At(null),[C,P]=At({showing:!1,selectedIndex:0,config:null,commentText:"",isInCommentMode:!1}),$=ac(C),[H,ge]=At({showing:!1,selectedIndex:0,options:[],onSelect:void 0}),[De,Z]=At({tasks:[],completedCount:0,totalCount:0,status:"idle"}),[J,te]=At(!1),[dt,lt]=At(null),[ne,W]=At(!0),[Ce,Ct]=At({showing:!1,executionState:null,recipeName:""}),Ee=ac(0),Qe=ac(!1),Re=ac(null),{exit:ft}=VQ(),{stdout:de}=YQ(),no=de.columns||80,[fn,mt]=At(0),[si,fc]=At(0),$p=D=>D>=1e3?`${(D/1e3).toFixed(1)}k`:D.toString(),mc=()=>vt(ar,{borderStyle:"round",paddingX:2,borderColor:"cyan",flexDirection:"column",children:[ee(oe,{color:"cyan",children:" ______ _ _____ _ "}),ee(oe,{color:"cyan",children:" | ____| | | __ \\ | | "}),ee(oe,{color:"cyan",children:" | |__ | | _____ _| | | | ___ | |_ "}),ee(oe,{color:"cyan",children:" | __| | |/ _ \\ \\ /\\ / / | | |/ _ \\| __|"}),ee(oe,{color:"cyan",children:" | | | | (_) \\ V V /| |__| | (_) | |_ "}),ee(oe,{color:"cyan",children:" |_| |_|\\___/ \\_/\\_/ |_____| \\___/ \\__|"}),ee(oe,{children:" "}),ee(oe,{color:"yellow",bold:!0,children:av()}),ee(oe,{children:" "}),ee(oe,{children:"I can help with:"}),ee(oe,{children:" \u2022 Running workflows"}),ee(oe,{children:" \u2022 Searching the web for information"}),ee(oe,{children:" \u2022 Searching & analyzing code"}),ee(oe,{children:" \u2022 Executing commands (tests, builds, etc.)"}),ee(oe,{children:" \u2022 Editing & creating files"}),ee(oe,{children:" \u2022 Installing missing tools"}),ee(oe,{children:" "}),ee(oe,{children:'Type "/help" to see available commands'}),ee(oe,{children:"Use \u2191/\u2193 arrow keys to navigate history"})]}),hc=ac(0),zr=pv((D,V)=>{let q=`msg-${Date.now()}-${hc.current++}`;a(ue=>[...ue,{id:q,type:D,text:V}])},[]);Cp(()=>{zr("system",mc())},[zr]),Cp(()=>{Re.current=dt},[dt]),Cp(()=>{$.current=C},[C]);let Op=pv(async D=>{if(D.trim()){zr("user",`> ${D}`),l(V=>{let q=[...V];return(q.length===0||q[q.length-1]!==D)&&(q.push(D),n(q)),q}),u(-1),g(""),h(!0),x("Processing..."),S("Processing... | Ctrl+K to cancel | Ctrl+C to exit");try{await e(D)}catch(V){zr("error",`Error: ${V.message}`)}finally{h(!1),x(null),S("Type your message | Ctrl+C to exit | Ctrl+K to cancel operation ")}}},[e,zr,n]);WQ((D,V)=>{if(C.showing&&C.config){let q=C.config;if(C.isInCommentMode){if(V.escape){q.onSelect("cancelled"),P({showing:!1,selectedIndex:0,config:null,commentText:"",isInCommentMode:!1});return}if(V.return){let ue=$.current.commentText.trim();if(q.commentRequired&&!ue)return;q.onSelect("approve",ue||void 0),P({showing:!1,selectedIndex:0,config:null,commentText:"",isInCommentMode:!1});return}if(V.backspace||V.delete){P(ue=>({...ue,commentText:ue.commentText.slice(0,-1)}));return}if(D&&!V.ctrl&&!V.meta){P(ue=>({...ue,commentText:ue.commentText+D}));return}return}if(V.upArrow){P(ue=>({...ue,selectedIndex:Math.max(0,ue.selectedIndex-1)}));return}else if(V.downArrow){P(ue=>({...ue,selectedIndex:Math.min(ue.config.options.length-1,ue.selectedIndex+1)}));return}else if(V.return){let ue=q.options[C.selectedIndex];ue&&(q.onSelect(ue.value),P({showing:!1,selectedIndex:0,config:null,commentText:"",isInCommentMode:!1}));return}else if(V.escape){q.onSelect("no_once"),P({showing:!1,selectedIndex:0,config:null,commentText:"",isInCommentMode:!1});return}return}if(H.showing&&H.options.length>0){if(V.upArrow){ge(q=>{let ue=q.selectedIndex-1;for(;ue>=0&&q.options[ue].isDisabled;)ue--;return ue<0&&(ue=q.selectedIndex),{...q,selectedIndex:ue}});return}else if(V.downArrow){ge(q=>{let ue=q.selectedIndex+1;for(;ue<q.options.length&&q.options[ue].isDisabled;)ue++;return ue>=q.options.length&&(ue=q.selectedIndex),{...q,selectedIndex:ue}});return}else if(V.return){let q=H.options[H.selectedIndex];q&&!q.isDisabled&&(H.onSelect&&H.onSelect(q),ge({showing:!1,selectedIndex:0,options:[],onSelect:void 0}));return}else if(V.escape){ge({showing:!1,selectedIndex:0,options:[],onSelect:void 0});return}return}if(!(m&&!(V.ctrl&&D==="c")&&!(V.ctrl&&D==="k")&&!(V.ctrl&&D==="r")&&!(V.ctrl&&D==="t")&&!V.escape)){if(V.upArrow){if(c.length>0){let q=Math.min(p+1,c.length-1);u(q),g(c[c.length-1-q])}}else if(V.downArrow){if(p>-1){let q=Math.max(p-1,-1);u(q),g(q===-1?"":c[c.length-1-q])}}else if(!V.return)if(V.ctrl&&D==="c")t(),ft();else if(V.ctrl&&D==="k")o(),Qe.current=!1;else if(V.escape){let q=Date.now(),ue=Re.current;ue&&(ue.status==="running"||ue.status==="paused")?Qe.current&&q-Ee.current<1500?(o(),Qe.current=!1):(Ee.current=q,Qe.current=!0,S("\u26A0\uFE0F Press Escape again to cancel recipe | Ctrl+C to exit"),setTimeout(()=>{Qe.current=!1,S("Type your message | Ctrl+C to exit | Ctrl+K to cancel operation ")},1500)):o()}else V.ctrl&&D==="t"?te(q=>!q):V.ctrl&&D==="r"&&W(q=>!q)}});let ii=pv((D,V,q)=>{let ue=vt(ar,{borderStyle:"round",paddingX:2,borderColor:q,flexDirection:"column",children:[ee(oe,{bold:!0,color:q,children:D}),ee(oe,{children:" "}),iv(V).split(`
202
+ `).map((gr,Np)=>ee(oe,{children:gr},Np))]});zr("system",ue)},[zr]);return KQ(s,()=>({appendOutput:(D,V)=>zr(D,V),displayError:D=>ii("Error",D,"red"),displaySuccess:D=>ii("Success",D,"green"),displayInfo:D=>ii("Info",D,"cyan"),showLoading:D=>{x(D),h(!0),S(`${D} | Ctrl+K to cancel | Ctrl+C to exit`)},hideLoading:()=>{x(null),h(!1),S("Type your message | Ctrl+C to exit | Ctrl+K to cancel operation ")},incrementCalls:(D=1)=>{mt(V=>V+D)},addTokens:(D,V=0)=>{fc(q=>q+D+V)},resetUsage:()=>{mt(0),fc(0)},getHistory:()=>c,setHistory:D=>{l(D),n(D)},clearOutput:()=>{process.stdout.write("\x1B[2J\x1B[H"),a([{id:`msg-${Date.now()}-${hc.current++}`,type:"system",text:mc()}])},updateStatus:D=>S(D),updateMetrics:D=>{I(V=>V?{...V,...D}:{startTime:D.startTime||Date.now(),inputTokens:D.inputTokens||0,outputTokens:D.outputTokens||0,provider:D.provider||"FlowDot",model:D.model||"unknown",actionText:D.actionText||"thinking"})},resetMetrics:()=>I(null),exitApp:()=>{ft(),t()},showPermissionPrompt:D=>{let V=D.commentRequired===!0;P({showing:!0,selectedIndex:0,config:D,commentText:"",isInCommentMode:V})},hidePermissionPrompt:D=>{eZ($,D),P({showing:!1,selectedIndex:0,config:null,commentText:"",isInCommentMode:!1})},showModelSelector:(D,V)=>{ge({showing:!0,selectedIndex:0,options:D,onSelect:V})},hideModelSelector:()=>{ge({showing:!1,selectedIndex:0,options:[],onSelect:void 0})},updateTaskState:D=>{Z(D)},toggleTaskPanel:()=>{te(D=>!D)},getTaskPanelExpanded:()=>J,updateRecipeState:D=>{lt(D)},startRecipeExecution:(D,V,q)=>{lt({recipeHash:D,recipeName:V,initialPrompt:q,status:"pending",steps:[],aggregatedMetrics:{totalDurationMs:0,totalInputTokens:0,totalOutputTokens:0,totalCost:0,iterationCount:1,subAgentCount:0,stepCount:0,completedSteps:0,failedSteps:0,skippedSteps:0,toolCallCount:0,modelsUsed:new Set},startTime:Date.now()}),W(!0)},endRecipeExecution:D=>{lt(V=>V?{...V,status:D?"completed":"failed"}:null),D&&W(!1)},toggleRecipePanel:()=>{W(D=>!D)},getRecipePanelExpanded:()=>ne,showAuditView:(D,V,q)=>{Ct({showing:!0,executionState:D,recipeName:V,initialPrompt:q})},hideAuditView:()=>{Ct({showing:!1,executionState:null,recipeName:""})},isAuditViewShowing:()=>Ce.showing})),Ce.showing&&Ce.executionState?ee(uv,{executionState:Ce.executionState,recipeName:Ce.recipeName,initialPrompt:Ce.initialPrompt,onQuit:()=>Ct({showing:!1,executionState:null,recipeName:""})}):vt(ar,{flexDirection:"column",children:[ee(ar,{flexGrow:1,flexDirection:"column",children:ee(JQ,{items:i,children:D=>ee(yN,{message:D,parseFormattedText:dN},D.id)})}),C.showing&&C.config&&vt(ar,{borderStyle:"round",borderColor:"yellow",paddingX:2,flexDirection:"column",marginBottom:1,children:[ee(oe,{color:"yellow",bold:!0,children:C.isInCommentMode?"\u{1F4DD} Your Response Required":"\u{1F510} Permission Required"}),ee(oe,{children:" "}),ee(oe,{children:C.config.prompt}),C.config.path&&vt(oe,{color:"gray",children:["Path: ",C.config.path]}),ee(oe,{children:" "}),C.isInCommentMode?vt(cc,{children:[C.config.commentPlaceholder&&ee(oe,{color:"gray",dimColor:!0,children:C.config.commentPlaceholder}),vt(ar,{borderStyle:"single",borderColor:"cyan",paddingX:1,marginTop:1,flexDirection:"column",minHeight:3,children:[C.commentText.split(`
203
+ `).map((D,V)=>ee(oe,{color:"white",children:D||" "},V)),ee(oe,{color:"cyan",children:"\u2588"})]}),ee(oe,{children:" "}),ee(oe,{color:"gray",children:"Enter to submit, Esc to cancel"})]}):vt(cc,{children:[C.config.options.map((D,V)=>vt(oe,{color:V===C.selectedIndex?"cyan":"white",children:[V===C.selectedIndex?"\u276F ":" ",D.label]},D.value)),ee(oe,{children:" "}),ee(oe,{color:"gray",children:"Use \u2191/\u2193 arrows to select, Enter to confirm, Esc to deny"})]})]}),H.showing&&H.options.length>0&&vt(ar,{borderStyle:"round",borderColor:"cyan",paddingX:2,flexDirection:"column",marginBottom:1,children:[ee(oe,{color:"cyan",bold:!0,children:"\u{1F3AF} Select a Model"}),ee(oe,{color:"gray",children:"Use \u2191/\u2193 arrows to select, Enter to confirm, Esc to cancel"}),ee(oe,{children:" "}),(()=>{let D=H.options.filter(q=>q.type==="oauth"||q.type==="info"),V=H.options.filter(q=>q.type==="tier");return vt(cc,{children:[D.length>0&&vt(cc,{children:[ee(oe,{dimColor:!0,children:"OAuth Providers:"}),D.map(q=>{let gr=H.options.indexOf(q)===H.selectedIndex;return vt(ar,{marginLeft:2,flexDirection:"column",children:[vt(oe,{color:gr?"cyan":q.isDisabled?"gray":"white",bold:gr,dimColor:q.isDisabled,children:[gr?"\u276F ":" ",q.isActive?"\u25CF ":"\u25CB ",q.label,q.isActive&&" (active)"]}),q.description&&ee(ar,{marginLeft:4,children:ee(oe,{dimColor:!0,children:q.description})})]},q.id)}),ee(oe,{children:" "})]}),V.length>0&&vt(cc,{children:[ee(oe,{dimColor:!0,children:"FlowDot Tiers:"}),V.map(q=>{let gr=H.options.indexOf(q)===H.selectedIndex;return vt(oe,{color:gr?"cyan":"white",bold:gr,children:[" ",gr?"\u276F ":" ",q.isActive?"\u25CF ":"\u25CB ",q.label,q.description&&` - ${q.description}`,q.isActive&&" (active)"]},q.id)})]})]})})()]}),dt&&!C.showing&&ee(ov,{state:dt,isExpanded:ne,onToggleExpand:()=>W(D=>!D),showKeyHint:!0}),ee(Kp,{state:De,isExpanded:J,toggleHint:"ctrl+t"}),vt(ar,{flexDirection:"column",children:[ee(oe,{color:"cyan",children:"\u2500".repeat(no)}),vt(ar,{children:[ee(oe,{color:"green",children:m&&w?ee(ZQ,{}):"> "}),ee(Dv,{value:d,onChange:g,onSubmit:Op,focus:!C.showing&&!H.showing,isDisabled:m,placeholder:m?w||"Processing...":""})]}),ee(oe,{color:"cyan",children:"\u2500".repeat(no)}),m&&k?ee(qv,{startTime:k.startTime,inputTokens:k.inputTokens,outputTokens:k.outputTokens,provider:k.provider,model:k.model,actionText:k.actionText}):vt(ar,{children:[ee(oe,{color:"cyan",width:"70%",wrap:"truncate-end",children:E}),vt(oe,{color:"yellow",width:"30%",wrap:"truncate-end",children:[fn>0?`${fn} calls`:"",fn>0&&si>0?" | ":"",si>0?`\u2193 ${$p(si)} tokens`:""]})]})]})]})});wN.displayName="InteractiveUI";var tZ=["Cogitating","Pondering","Musing","Ruminating","Deliberating","Contemplating","Mulling","Percolating"],vN=["Churning","Synthesizing","Conjuring","Weaving","Crafting","Orchestrating","Assembling","Forging"],rZ=["Scrutinizing","Assessing","Examining","Inspecting","Analyzing","Gauging","Appraising","Measuring"],nZ=["Recalibrating","Adjusting","Pivoting","Adapting","Regrouping","Refocusing"],oZ=["Distilling","Crystallizing","Condensing","Composing","Formulating","Refining"];function oi(e){return e[Math.floor(Math.random()*e.length)]}function dv(e){switch(e){case"thinking":return oi(tZ);case"processing":return oi(vN);case"evaluating":return oi(rZ);case"recovery":return oi(nZ);case"synthesis":return oi(oZ);default:return oi(vN)}}var sZ={"Planning tasks":{category:"thinking",suffix:"the plan"},"Fetching workflows":{category:"processing",suffix:"workflows"},"Synthesizing response":{category:"synthesis",suffix:"the response"},"Evaluating completeness":{category:"evaluating",suffix:"results"},"Attempting recovery":{category:"recovery",suffix:"strategy"},"Re-planning based on feedback":{category:"thinking",suffix:"alternatives"},Processing:{category:"processing",suffix:""},Thinking:{category:"thinking",suffix:""}};function iZ(e){for(let[t,r]of Object.entries(sZ))if(e.toLowerCase().startsWith(t.toLowerCase())){let n=dv(r.category),o=r.suffix?` ${r.suffix}`:"",s=e.slice(t.length).trim(),i=s.startsWith("...")?s.slice(3).trim():s;return`${n}${o}${i?` ${i}`:""}...`}return e.endsWith("...")&&e.slice(0,-3).trim().endsWith("ing")?`${dv("processing")}...`:e}function aZ(){return!0}var cZ=['Use the agent command for autonomous task execution: flowdot agent "your request"',"You can browse public workflows with: flowdot workflows browse","Set your preferred model with: flowdot config set model capable","Use /clear to reset the chat output","Press \u2191/\u2193 arrow keys to navigate command history","Long outputs are collapsible - press Ctrl+O to expand them","You can cancel a running request with Ctrl+K","Check your API usage with: flowdot config get","FlowDot supports custom workflows for repeated tasks","Use /model <name> to switch models mid-conversation","Recipes let you create reusable agent workflows",'You can search your codebase with: flowdot agent "search for X"',"Need help? Try: flowdot --help"],lZ=["See ya!","Catch you later!","Until next time!","Happy coding!","Bye for now!","Take care!"];function xN(e){return e[Math.floor(Math.random()*e.length)]}function bN(){return xN(cZ)}function _N(){return xN(lZ)}function uZ(){let e=_N(),t=bN();return`${e} Tip: ${t}`}var pZ=["\xB7","\u2722","*","\u2736","\u273B","\u273D","\u273B","\u2736","*","\u2722"],SN=["#FFD700","#FFA500","#FF6347","#FF4500","#FF6347","#FFA500"];function TN(){return{interval:100,frames:pZ}}function dZ(e,t){return e==="star"?{spinner:TN(),text:t,color:"yellow"}:{spinner:"dots",text:t}}function fZ(e){return SN[e%SN.length]}import{useState as Pp,useImperativeHandle as mZ,forwardRef as hZ,useCallback as gZ}from"react";import{Box as pc,Text as lc,Static as yZ}from"ink";import{jsx as Kr,jsxs as uc}from"react/jsx-runtime";var kN=3,wZ=0,EN=0;function vZ({step:e}){let t=Cr(e.startTime,!0),r=Math.max(0,Math.floor(t/1e3)),n=r>=60?`${Math.floor(r/60)}m ${r%60}s`:`${r}s`,o=e.metrics,s=!!(o?.provider&&o?.model),i=o?.currentTool?`calling ${o.currentTool}`:o?.activeText?o.activeText:o?.actionText??"cooking",a=["esc to interrupt",n];o?.inputTokens&&o.inputTokens>0&&a.push(`\u2191 ${wr(o.inputTokens)}`),o?.outputTokens&&o.outputTokens>0&&a.push(`\u2193 ${wr(o.outputTokens)} tokens`),o?.toolCount&&o.toolCount>0&&a.push(`${o.toolCount} tool${o.toolCount===1?"":"s"}`),s&&a.push(`${o.provider}/${o.model}`.slice(0,50)),a.push(i);let c=`(${a.join(" \xB7 ")})`,l=e.iterTotal!==void 0?` [${(e.iterIndex??0)+1}/${e.iterTotal}]`:"";return uc(pc,{children:[Kr(vr,{color:"cyan"}),Kr(lc,{color:"cyan",children:" \u2192 "}),uc(lc,{bold:!0,color:"cyan",children:[e.stepName,l]}),uc(lc,{dimColor:!0,children:[" ",c]})]})}function xZ(e){switch(e){case"retry":case"rate_limit":return"yellow";case"warning":return"red";case"tool":return"magenta";case"iteration":return"gray";case"header":case"info":default:return"gray"}}function bZ({rows:e}){return e.length===0?null:Kr(pc,{flexDirection:"column",children:e.map(t=>Kr(pc,{children:uc(lc,{dimColor:!0,color:xZ(t.kind),children:[" ",t.text]})},t.key))})}function _Z({staticRows:e,liveStep:t,tail:r,paused:n}){return uc(pc,{flexDirection:"column",children:[Kr(yZ,{items:e,children:o=>Kr(pc,{children:Kr(lc,{color:o.color,bold:o.bold,children:o.text})},o.key)}),!n&&t&&Kr(vZ,{step:t}),!n&&t&&Kr(bZ,{rows:r})]})}var RN=hZ(({banner:e},t)=>{let[r,n]=Pp(()=>e?[{key:`static_${EN++}`,text:e,color:"cyan",bold:!0}]:[]),[o,s]=Pp(null),[i,a]=Pp([]),[c,l]=Pp(!1),p=gZ(u=>{n(d=>[...d,{key:`static_${EN++}`,...u}])},[]);return mZ(t,()=>({pushBanner(u,d){p({text:u,color:d??"cyan",bold:!0})},onStepStart(u,d){s({stepId:u,stepName:d,startTime:Date.now(),metrics:null}),a([])},onStepComplete(u){let d=u.status==="completed"?"\u2713":u.status==="failed"?"\u2717":"\u25CB",g=u.status==="completed"?"green":u.status==="failed"?"red":"yellow",m=[],h=u.durationMs??0;m.push(h>=6e4?`${Math.floor(h/6e4)}m ${Math.floor(h%6e4/1e3)}s`:h>=1e3?`${(h/1e3).toFixed(1)}s`:`${h}ms`),u.inputTokensUsed&&u.inputTokensUsed>0&&m.push(`\u2191 ${wr(u.inputTokensUsed)}`),u.outputTokensUsed&&u.outputTokensUsed>0?m.push(`\u2193 ${wr(u.outputTokensUsed)}`):u.tokensUsed&&u.tokensUsed>0&&m.push(`${wr(u.tokensUsed)} tokens`),u.toolCalls&&u.toolCalls.length>0&&m.push(`${u.toolCalls.length} tool${u.toolCalls.length===1?"":"s"}`),u.cost&&u.cost>0&&m.push(`$${u.cost.toFixed(4)}`),u.provider&&u.model&&m.push(`${u.provider}/${u.model}`.slice(0,40)),p({text:`${d} ${u.stepName} (${m.join(" \xB7 ")})`,color:g}),u.error&&p({text:` Error: ${u.error}`,color:"red"}),s(null),a([])},onStepEvent(u){s(d=>d&&u.iterIndex!==void 0?{...d,iterIndex:u.iterIndex,iterTotal:u.iterTotal??d.iterTotal}:d),a(d=>{let g=[...d,{key:++wZ,kind:u.kind,text:u.text}];return g.length>kN?g.slice(g.length-kN):g})},onMetricsUpdate(u){s(d=>{if(!d)return d;let g={...d.metrics??{},...u};return{...d,metrics:g}})},onOutput(u,d){p({text:u,color:d})},pause(){l(!0)},resume(){l(!1)}}),[p]),Kr(ui,{interval:1e3,children:Kr(_Z,{staticRows:r,liveStep:o,tail:i,paused:c})})});RN.displayName="RecipeStreamView";import{useState as dc}from"react";import{Box as xt,Text as je,useInput as SZ}from"ink";import{Fragment as EZ,jsx as it,jsxs as He}from"react/jsx-runtime";var Rn={topLeft:"\u250C",topRight:"\u2510",bottomLeft:"\u2514",bottomRight:"\u2518",horizontal:"\u2500",vertical:"\u2502",teeDown:"\u252C",teeUp:"\u2534",teeRight:"\u251C",teeLeft:"\u2524"};function TZ({message:e,index:t,isSelected:r,isExpanded:n}){let s={user:"blue",assistant:"green",system:"gray"}[e.role]||"gray",i=e.role.charAt(0).toUpperCase()+e.role.slice(1),a=e.timestamp?new Date(e.timestamp).toLocaleTimeString():"",c=n?e.content:It(e.content.replace(/\n/g," "),70),l=e.metrics,p=l?`${l.tokensIn||0}\u2193 ${l.tokensOut||0}\u2191 ${fr(l.durationMs||0)}`:"";return He(xt,{flexDirection:"column",borderStyle:"single",borderColor:r?s:"gray",marginBottom:1,children:[He(xt,{paddingX:1,justifyContent:"space-between",children:[He(je,{children:[He(je,{color:s,bold:!0,children:[r?"\u25B6 ":" ","Message ",t+1," (",i,")"]}),a&&He(je,{color:"gray",children:[" \u2502 ",a]})]}),He(je,{color:"gray",dimColor:!0,children:[p,!n&&" [+]"]})]}),it(xt,{paddingX:1,children:it(je,{wrap:"wrap",children:c})}),n&&e.toolCalls&&e.toolCalls.length>0&&He(xt,{flexDirection:"column",paddingX:1,marginTop:1,children:[He(je,{color:"gray",children:["Tool Calls (",e.toolCalls.length,"):"]}),e.toolCalls.map((u,d)=>it(xt,{paddingLeft:2,children:He(je,{children:[it(je,{color:u.error?"red":"green",children:u.error?"\u2717":"\u2713"}),He(je,{children:[" ",u.tool]}),He(je,{color:"gray",children:[" ","(",fr(u.durationMs||0),")"]})]})},d))]})]})}function kZ({chat:e,onExit:t,onAskQuestion:r,pendingQuestion:n,pendingAnswer:o,isProcessing:s=!1}){let[i,a]=dc(0),[c,l]=dc(new Set),[p,u]=dc(!1),[d,g]=dc(""),[m,h]=dc(0),w=e.messages||[],x=6;SZ((I,C)=>{if(p){if(C.escape){u(!1),g("");return}if(C.return){d.trim()&&r&&(r(d.trim()),g(""),u(!1));return}if(C.backspace||C.delete){g(P=>P.slice(0,-1));return}I&&!C.ctrl&&!C.meta&&g(P=>P+I);return}if(I==="q"||C.escape){t?.();return}if(I==="a"||I==="?"){u(!0);return}if(C.return||I===" "){l(P=>{let $=new Set(P);return $.has(i)?$.delete(i):$.add(i),$});return}if(I==="e"){l(new Set(w.map((P,$)=>$)));return}if(I==="c"){l(new Set);return}if(C.upArrow){a(P=>{let $=Math.max(0,P-1);return $<m&&h($),$});return}if(C.downArrow){a(P=>{let $=Math.min(w.length-1,P+1);return $>=m+x&&h($-x+1),$});return}});let E=w.slice(m,m+x),S=e.created?new Date(e.created).toLocaleString():"Unknown",k=e.id.substring(0,8);return He(xt,{flexDirection:"column",borderStyle:"round",borderColor:"cyan",paddingX:1,children:[He(xt,{flexDirection:"column",paddingX:1,children:[He(je,{children:[it(je,{color:"cyan",bold:!0,children:"AUDITING: "}),it(je,{bold:!0,children:`"${It(e.title,50)}"`})]}),He(je,{color:"gray",children:["Session ID: ",k,"... \u2502 Created: ",S," \u2502 Messages: ",w.length]})]}),it(xt,{children:He(je,{color:"gray",children:[Rn.teeRight,Rn.horizontal.repeat(78),Rn.teeLeft]})}),He(xt,{flexDirection:"column",paddingX:1,marginY:1,children:[m>0&&it(xt,{justifyContent:"center",children:He(je,{color:"gray",children:["\u25B2 ",m," more messages above"]})}),E.map((I,C)=>{let P=m+C;return it(TZ,{message:I,index:P,isSelected:P===i,isExpanded:c.has(P)},P)}),m+x<w.length&&it(xt,{justifyContent:"center",children:He(je,{color:"gray",children:["\u25BC ",w.length-m-x," more messages below"]})})]}),(n||o)&&He(EZ,{children:[it(xt,{children:He(je,{color:"gray",children:[Rn.teeRight,Rn.horizontal.repeat(78),Rn.teeLeft]})}),He(xt,{flexDirection:"column",paddingX:1,marginY:1,children:[n&&it(xt,{children:He(je,{color:"blue",children:["Q: ",n]})}),s&&it(xt,{children:it(je,{color:"gray",dimColor:!0,children:"Thinking..."})}),o&&it(xt,{marginTop:1,children:He(je,{color:"green",children:["A: ",o]})})]})]}),it(xt,{children:He(je,{color:"gray",children:[Rn.teeRight,Rn.horizontal.repeat(78),Rn.teeLeft]})}),it(xt,{paddingX:1,children:p?He(xt,{flexDirection:"column",width:"100%",children:[it(je,{color:"cyan",children:"Ask about this session:"}),He(xt,{children:[it(je,{color:"cyan",children:"> "}),it(je,{children:d}),it(je,{color:"cyan",children:"\u2588"})]}),it(je,{color:"gray",dimColor:!0,children:"Enter: Submit \u2502 Esc: Cancel"})]}):it(je,{color:"gray",dimColor:!0,children:"\u2191\u2193 Navigate \u2502 Enter/Space: Expand \u2502 e: Expand All \u2502 c: Collapse All \u2502 a/?: Ask Question \u2502 q: Quit"})})]})}import{useState as In,useImperativeHandle as RZ,forwardRef as IZ}from"react";import{Box as dn,Text as St,Static as AZ}from"ink";import{jsx as bt,jsxs as Mt}from"react/jsx-runtime";var IN=6,CZ=0,PZ=0;function $Z(e,t){return e==="error"?"red":e==="ended"?"gray":e==="connecting"?"yellow":t==="speaking"?"magenta":"cyan"}function OZ(e,t){return e==="error"?"Error":e==="ended"?"Ended":e==="connecting"?"Connecting\u2026":t==="speaking"?"Agent speaking":t==="thinking"?"Agent thinking":"Listening"}function NZ(e){switch(e){case"flowdot-core":return"cyan";case"flowdot-knowledge":return"magenta";case"flowdot-email":return"yellow";case"flowdot-research":return"blue";case"flowdot-build":return"green";default:return"gray"}}function MZ(e){switch(e){case"started":return"\u23F3";case"completed":return"\u2713";case"failed":return"\u2717";default:return"?"}}function DZ({characterName:e,characterSubtitle:t,startedAt:r,phase:n,agentState:o}){let s=Cr(r,n!=="ended"&&n!=="error"),i=Math.max(0,Math.floor(s/1e3)),a=i>=60?`${Math.floor(i/60)}m ${String(i%60).padStart(2,"0")}s`:`${i}s`;return Mt(dn,{flexDirection:"row",children:[Mt(St,{bold:!0,color:"cyan",children:["\u{1F4DE} ",e]}),t?Mt(St,{dimColor:!0,children:[" \xB7 ",t]}):null,Mt(St,{dimColor:!0,children:[" \xB7 ",a]}),bt(St,{children:" \xB7 "}),n==="connecting"?bt(vr,{color:"yellow"}):null,Mt(St,{bold:!0,color:$Z(n,o),children:[" ",OZ(n,o)]})]})}function LZ({chips:e}){return e.length?Mt(dn,{flexDirection:"column",marginTop:1,children:[bt(St,{dimColor:!0,children:"Tools:"}),e.map(t=>Mt(dn,{flexDirection:"row",children:[bt(St,{color:NZ(t.toolkitName),children:"\u25CF "}),Mt(St,{bold:!0,children:[MZ(t.phase)," "]}),bt(St,{children:t.toolTitle||t.toolName}),Mt(St,{dimColor:!0,children:[" (",t.toolkitName,")"]}),t.error?Mt(St,{color:"red",children:[" \u2014 ",t.error]}):null]},t.eventId))]}):null}function CN(e){return e==="user"?{prefix:"\u25B8 you:",color:"green"}:{prefix:"\u25C2 agent:",color:"cyan"}}function AN({partial:e}){if(!e)return null;let{prefix:t,color:r}=CN(e.role);return Mt(dn,{flexDirection:"row",children:[Mt(St,{color:r,bold:!0,children:[t," "]}),bt(St,{dimColor:!0,children:e.text})]})}function FZ({row:e}){if(e.kind==="banner")return bt(St,{color:e.bannerColor,children:e.bannerText});let{prefix:t,color:r}=CN(e.transcriptRole);return Mt(dn,{flexDirection:"row",children:[Mt(St,{color:r,bold:!0,children:[t," "]}),bt(St,{children:e.transcriptText})]})}function qZ(e,t){let[r,n]=In("connecting"),[o,s]=In("initializing"),[i,a]=In(null),[c,l]=In([]),[p,u]=In([]),[d,g]=In(null),[m,h]=In(null),[w,x]=In(!1),[E]=In(()=>Date.now());return RZ(t,()=>({setStatus:S=>n(S),setAgentState:S=>s(S),setError:S=>{a(S),S&&n("error")},pushToolEvent:S=>{l(k=>{let I=k.findIndex($=>$.eventId===S.eventId);if(S.phase==="started"){if(I>=0)return k;let $={eventId:S.eventId,toolkitName:S.toolkitName,toolName:S.toolName,toolTitle:S.toolTitle??S.toolName,phase:"started",startedAt:S.ts??Date.now()},H=[...k,$];return H.length>IN?H.slice(-IN):H}if(I<0)return k;let C={...k[I]};C.phase=S.phase,C.endedAt=S.ts??Date.now(),S.phase==="failed"&&(C.error=S.error);let P=[...k];return P[I]=C,P})},pushTranscript:S=>{if(S.final){u(I=>[...I,{key:`t${PZ++}`,kind:"transcript",transcriptRole:S.role,transcriptText:S.text}]),S.role==="user"?g(null):h(null);return}let k={role:S.role,text:S.text};S.role==="user"?g(k):h(k)},pushBanner:(S,k)=>{u(I=>[...I,{key:`b${CZ++}`,kind:"banner",bannerText:S,bannerColor:k}])},pause:()=>x(!0),resume:()=>x(!1)}),[]),w?bt(dn,{children:bt(St,{dimColor:!0,children:"(call view paused while awaiting input)"})}):Mt(dn,{flexDirection:"column",children:[bt(AZ,{items:p,children:S=>bt(FZ,{row:S},S.key)}),bt(DZ,{characterName:e.characterName,characterSubtitle:e.characterSubtitle,startedAt:E,phase:r,agentState:o}),i?bt(dn,{marginTop:1,children:Mt(St,{color:"red",bold:!0,children:["Error: ",i]})}):null,bt(LZ,{chips:c}),d||m?Mt(dn,{flexDirection:"column",marginTop:1,children:[bt(AN,{partial:d}),bt(AN,{partial:m})]}):null,bt(dn,{marginTop:1,children:bt(St,{dimColor:!0,children:"Ctrl+C end \xB7 /mute \xB7 /unmute \xB7 /interrupt \xB7 /end"})})]})}var PN=IZ((e,t)=>bt(ui,{children:qZ(e,t)}));PN.displayName="CallView";export{kZ as AuditSession,uv as AuditView,PN as CallView,wN as InteractiveUI,ov as RecipePanel,Ip as RecipeStepRenderer,RN as RecipeStreamView,ui as TimerProvider,xc as formatElapsedTime,qM as formatMetricsLine,wr as formatTokens,fN as getDisplayName,uZ as getExitMessage,av as getPersonalizedGreeting,_N as getRandomFarewell,bN as getRandomTip,dZ as getSpinnerOptions,fZ as getStarColor,TN as getStarSpinner,dv as getStatusWord,mN as getTimeGreeting,aZ as isCreativeStatusEnabled,iZ as transformStatusMessage,Fv as useCurrentTime,Cr as useElapsedTime};