@flowdot.ai/cli 1.1.1 → 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,80 +1,203 @@
1
- var AN=Object.create;var Xp=Object.defineProperty;var CN=Object.getOwnPropertyDescriptor;var $N=Object.getOwnPropertyNames;var ON=Object.getPrototypeOf,NN=Object.prototype.hasOwnProperty;var Et=(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 x=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qp=(e,t)=>{for(var r in t)Xp(e,r,{get:t[r],enumerable:!0})},MN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of $N(t))!NN.call(e,o)&&o!==r&&Xp(e,o,{get:()=>t[o],enumerable:!(n=CN(t,o))||n.enumerable});return e};var Or=(e,t,r)=>(r=e!=null?AN(ON(e)):{},MN(t||!e||!e.__esModule?Xp(r,"default",{value:e,enumerable:!0}):r,e));function Hi(e,t){return function(){return e.apply(t,arguments)}}var od=S(()=>{"use strict"});function Wi(e){return e!==null&&!Is(e)&&e.constructor!==null&&!Is(e.constructor)&&vr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}function PM(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&qw(e.buffer),t}function FM(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}function Ki(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),As(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Wi(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 Bw(e,t){if(Wi(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 sd(...e){let{caseless:t,skipUndefined:r}=Gw(this)&&this||{},n={},o=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;let a=t&&Bw(n,i)||i,c=id(n,a)?n[a]:void 0;Zc(c)&&Zc(s)?n[a]=sd(c,s):Zc(s)?n[a]=sd({},s):As(s)?n[a]=s.slice():(!r||!Is(s))&&(n[a]=s)};for(let s=0,i=e.length;s<i;s++)e[s]&&Ki(e[s],o);return n}function lD(e){return!!(e&&vr(e.append)&&e[Fw]==="FormData"&&e[tl])}var RM,el,tl,Fw,rl,un,nl,As,Is,qw,IM,vr,Uw,Vi,AM,Zc,CM,$M,OM,NM,MM,DM,LM,jM,Lw,jw,qM,UM,BM,GM,zM,HM,WM,Lo,Gw,VM,KM,JM,YM,XM,QM,ZM,eD,tD,rD,nD,id,oD,zw,sD,iD,aD,cD,uD,pD,dD,Hw,fD,mD,b,rt=S(()=>{"use strict";od();({toString:RM}=Object.prototype),{getPrototypeOf:el}=Object,{iterator:tl,toStringTag:Fw}=Symbol,rl=(e=>t=>{let r=RM.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),un=e=>(e=e.toLowerCase(),t=>rl(t)===e),nl=e=>t=>typeof t===e,{isArray:As}=Array,Is=nl("undefined");qw=un("ArrayBuffer");IM=nl("string"),vr=nl("function"),Uw=nl("number"),Vi=e=>e!==null&&typeof e=="object",AM=e=>e===!0||e===!1,Zc=e=>{if(rl(e)!=="object")return!1;let t=el(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Fw in e)&&!(tl in e)},CM=e=>{if(!Vi(e)||Wi(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},$M=un("Date"),OM=un("File"),NM=e=>!!(e&&typeof e.uri<"u"),MM=e=>e&&typeof e.getParts<"u",DM=un("Blob"),LM=un("FileList"),jM=e=>Vi(e)&&vr(e.pipe);Lw=FM(),jw=typeof Lw.FormData<"u"?Lw.FormData:void 0,qM=e=>{if(!e)return!1;if(jw&&e instanceof jw)return!0;let t=el(e);if(!t||t===Object.prototype||!vr(e.append))return!1;let r=rl(e);return r==="formdata"||r==="object"&&vr(e.toString)&&e.toString()==="[object FormData]"},UM=un("URLSearchParams"),[BM,GM,zM,HM]=["ReadableStream","Request","Response","Headers"].map(un),WM=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");Lo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gw=e=>!Is(e)&&e!==Lo;VM=(e,t,r,{allOwnKeys:n}={})=>(Ki(t,(o,s)=>{r&&vr(o)?Object.defineProperty(e,s,{__proto__:null,value:Hi(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),KM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),JM=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},YM=(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&&el(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},XM=(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},QM=e=>{if(!e)return null;if(As(e))return e;let t=e.length;if(!Uw(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},ZM=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&el(Uint8Array)),eD=(e,t)=>{let n=(e&&e[tl]).call(e),o;for(;(o=n.next())&&!o.done;){let s=o.value;t.call(e,s[0],s[1])}},tD=(e,t)=>{let r,n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},rD=un("HTMLFormElement"),nD=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),id=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),oD=un("RegExp"),zw=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};Ki(r,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(n[s]=i||o)}),Object.defineProperties(e,n)},sD=e=>{zw(e,(t,r)=>{if(vr(e)&&["arguments","caller","callee"].includes(r))return!1;let n=e[r];if(vr(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+"'")})}})},iD=(e,t)=>{let r={},n=o=>{o.forEach(s=>{r[s]=!0})};return As(e)?n(e):n(String(e).split(t)),r},aD=()=>{},cD=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;uD=e=>{let t=new Array(10),r=(n,o)=>{if(Vi(n)){if(t.indexOf(n)>=0)return;if(Wi(n))return n;if(!("toJSON"in n)){t[o]=n;let s=As(n)?[]:{};return Ki(n,(i,a)=>{let c=r(i,o+1);!Is(c)&&(s[a]=c)}),t[o]=void 0,s}}return n};return r(e,0)},pD=un("AsyncFunction"),dD=e=>e&&(Vi(e)||vr(e))&&vr(e.then)&&vr(e.catch),Hw=((e,t)=>e?setImmediate:t?((r,n)=>(Lo.addEventListener("message",({source:o,data:s})=>{o===Lo&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Lo.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",vr(Lo.postMessage)),fD=typeof queueMicrotask<"u"?queueMicrotask.bind(Lo):typeof process<"u"&&process.nextTick||Hw,mD=e=>e!=null&&vr(e[tl]),b={isArray:As,isArrayBuffer:qw,isBuffer:Wi,isFormData:qM,isArrayBufferView:PM,isString:IM,isNumber:Uw,isBoolean:AM,isObject:Vi,isPlainObject:Zc,isEmptyObject:CM,isReadableStream:BM,isRequest:GM,isResponse:zM,isHeaders:HM,isUndefined:Is,isDate:$M,isFile:OM,isReactNativeBlob:NM,isReactNative:MM,isBlob:DM,isRegExp:oD,isFunction:vr,isStream:jM,isURLSearchParams:UM,isTypedArray:ZM,isFileList:LM,forEach:Ki,merge:sd,extend:VM,trim:WM,stripBOM:KM,inherits:JM,toFlatObject:YM,kindOf:rl,kindOfTest:un,endsWith:XM,toArray:QM,forEachEntry:eD,matchAll:tD,isHTMLForm:rD,hasOwnProperty:id,hasOwnProp:id,reduceDescriptors:zw,freezeMethods:sD,toObjectSet:iD,toCamelCase:nD,noop:aD,toFiniteNumber:cD,findKey:Bw,global:Lo,isContextDefined:Gw,isSpecCompliantForm:lD,toJSONObject:uD,isAsyncFn:pD,isThenable:dD,setImmediate:Hw,asap:fD,isIterable:mD}});var hD,Ww,Vw=S(()=>{"use strict";rt();hD=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"]),Ww=e=>{let t={},r,n,o;return e&&e.split(`
2
- `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&hD[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t}});function yD(e){let t=0,r=e.length;for(;t<r;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){let n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}function Ji(e){return e&&String(e).trim().toLowerCase()}function vD(e){return yD(e.replace(gD,""))}function ol(e){return e===!1||e==null?e:b.isArray(e)?e.map(ol):vD(String(e))}function wD(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 ad(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 bD(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function _D(e,t){let r=b.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(o,s,i){return this[n].call(this,t,o,s,i)},configurable:!0})})}var Kw,gD,xD,Cs,at,pn=S(()=>{"use strict";rt();Vw();Kw=Symbol("internals"),gD=/[^\x09\x20-\x7E\x80-\xFF]/g;xD=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());Cs=class{constructor(t){t&&this.set(t)}set(t,r,n){let o=this;function s(a,c,u){let l=Ji(c);if(!l)throw new Error("header name must be a non-empty string");let p=b.findKey(o,l);(!p||o[p]===void 0||u===!0||u===void 0&&o[p]!==!1)&&(o[p||c]=ol(a))}let i=(a,c)=>b.forEach(a,(u,l)=>s(u,l,c));if(b.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(b.isString(t)&&(t=t.trim())&&!xD(t))i(Ww(t),r);else if(b.isObject(t)&&b.isIterable(t)){let a={},c,u;for(let l of t){if(!b.isArray(l))throw TypeError("Object iterator must return a key-value pair");a[u=l[0]]=(c=a[u])?b.isArray(c)?[...c,l[1]]:[c,l[1]]:l[1]}i(a,r)}else t!=null&&s(r,t,n);return this}get(t,r){if(t=Ji(t),t){let n=b.findKey(this,t);if(n){let o=this[n];if(!r)return o;if(r===!0)return wD(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=Ji(t),t){let n=b.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||ad(this,this[n],n,r)))}return!1}delete(t,r){let n=this,o=!1;function s(i){if(i=Ji(i),i){let a=b.findKey(n,i);a&&(!r||ad(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||ad(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]=ol(o),delete r[s];return}let a=t?bD(s):String(s).trim();a!==s&&delete r[s],r[a]=ol(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(`
3
- `)}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[Kw]=this[Kw]={accessors:{}}).accessors,o=this.prototype;function s(i){let a=Ji(i);n[a]||(_D(o,i),n[a]=!0)}return b.isArray(t)?t.forEach(s):s(t),this}};Cs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);b.reduceDescriptors(Cs.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});b.freezeMethods(Cs);at=Cs});function ED(e){if(b.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(b.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function TD(e,t){let r=new Set(t.map(s=>String(s).toLowerCase())),n=[],o=s=>{if(s===null||typeof s!="object"||b.isBuffer(s))return s;if(n.indexOf(s)!==-1)return;s instanceof at&&(s=s.toJSON()),n.push(s);let i;if(b.isArray(s))i=[],s.forEach((a,c)=>{let u=o(a);b.isUndefined(u)||(i[c]=u)});else{if(!b.isPlainObject(s)&&ED(s))return n.pop(),s;i=Object.create(null);for(let[a,c]of Object.entries(s)){let u=r.has(a.toLowerCase())?SD:o(c);b.isUndefined(u)||(i[a]=u)}}return n.pop(),i};return o(e)}var SD,Wt,$,Mr=S(()=>{"use strict";rt();pn();SD="[REDACTED ****]";Wt=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",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){let t=this.config,r=t&&b.hasOwnProp(t,"redact")?t.redact:void 0,n=b.isArray(r)&&r.length>0?TD(t,r):b.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};Wt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Wt.ERR_BAD_OPTION="ERR_BAD_OPTION";Wt.ECONNABORTED="ECONNABORTED";Wt.ETIMEDOUT="ETIMEDOUT";Wt.ECONNREFUSED="ECONNREFUSED";Wt.ERR_NETWORK="ERR_NETWORK";Wt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Wt.ERR_DEPRECATED="ERR_DEPRECATED";Wt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Wt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Wt.ERR_CANCELED="ERR_CANCELED";Wt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Wt.ERR_INVALID_URL="ERR_INVALID_URL";Wt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";$=Wt});var Xw=x((pee,Yw)=>{var Jw=Et("stream").Stream,kD=Et("util");Yw.exports=dn;function dn(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}kD.inherits(dn,Jw);dn.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(dn.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});dn.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};dn.prototype.resume=function(){this._released||this.release(),this.source.resume()};dn.prototype.pause=function(){this.source.pause()};dn.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};dn.prototype.pipe=function(){var e=Jw.prototype.pipe.apply(this,arguments);return this.resume(),e};dn.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)};dn.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 tx=x((dee,ex)=>{var RD=Et("util"),Zw=Et("stream").Stream,Qw=Xw();ex.exports=Tt;function Tt(){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}RD.inherits(Tt,Zw);Tt.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};Tt.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};Tt.prototype.append=function(e){var t=Tt.isStreamLike(e);if(t){if(!(e instanceof Qw)){var r=Qw.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};Tt.prototype.pipe=function(e,t){return Zw.prototype.pipe.call(this,e,t),this.resume(),e};Tt.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}};Tt.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=Tt.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};Tt.prototype._pipeNext=function(e){this._currentStream=e;var t=Tt.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()};Tt.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};Tt.prototype.write=function(e){this.emit("data",e)};Tt.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Tt.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")};Tt.prototype.end=function(){this._reset(),this.emit("end")};Tt.prototype.destroy=function(){this._reset(),this.emit("close")};Tt.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Tt.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};Tt.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)};Tt.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var rx=x((fee,PD)=>{PD.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 ox=x((mee,nx)=>{nx.exports=rx()});var ax=x(wr=>{"use strict";var sl=ox(),ID=Et("path").extname,sx=/^\s*([^;\s]*)(?:;|\s|$)/,AD=/^text\//i;wr.charset=ix;wr.charsets={lookup:ix};wr.contentType=CD;wr.extension=$D;wr.extensions=Object.create(null);wr.lookup=OD;wr.types=Object.create(null);ND(wr.extensions,wr.types);function ix(e){if(!e||typeof e!="string")return!1;var t=sx.exec(e),r=t&&sl[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&AD.test(t[1])?"UTF-8":!1}function CD(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?wr.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=wr.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}function $D(e){if(!e||typeof e!="string")return!1;var t=sx.exec(e),r=t&&wr.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}function OD(e){if(!e||typeof e!="string")return!1;var t=ID("x."+e).toLowerCase().substr(1);return t&&wr.types[t]||!1}function ND(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(sl).forEach(function(o){var s=sl[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 u=r.indexOf(sl[t[c]].source),l=r.indexOf(s.source);if(t[c]!=="application/octet-stream"&&(u>l||u===l&&t[c].substr(0,12)==="application/"))continue}t[c]=o}}})}});var lx=x((gee,cx)=>{cx.exports=MD;function MD(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}});var cd=x((yee,px)=>{var ux=lx();px.exports=DD;function DD(e){var t=!1;return ux(function(){t=!0}),function(n,o){t?e(n,o):ux(function(){e(n,o)})}}});var ld=x((vee,dx)=>{dx.exports=LD;function LD(e){Object.keys(e.jobs).forEach(jD.bind(e)),e.jobs={}}function jD(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}});var ud=x((wee,mx)=>{var fx=cd(),FD=ld();mx.exports=qD;function qD(e,t,r,n){var o=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[o]=UD(t,o,e[o],function(s,i){o in r.jobs&&(delete r.jobs[o],s?FD(r):r.results[o]=i,n(s,r.results))})}function UD(e,t,r,n){var o;return e.length==2?o=e(r,fx(n)):o=e(r,t,fx(n)),o}});var pd=x((xee,hx)=>{hx.exports=BD;function BD(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 dd=x((bee,gx)=>{var GD=ld(),zD=cd();gx.exports=HD;function HD(e){Object.keys(this.jobs).length&&(this.index=this.size,GD(this),zD(e)(null,this.results))}});var vx=x((_ee,yx)=>{var WD=ud(),VD=pd(),KD=dd();yx.exports=JD;function JD(e,t,r){for(var n=VD(e);n.index<(n.keyedList||e).length;)WD(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 KD.bind(n,r)}});var fd=x((See,il)=>{var wx=ud(),YD=pd(),XD=dd();il.exports=QD;il.exports.ascending=xx;il.exports.descending=ZD;function QD(e,t,r,n){var o=YD(e,r);return wx(e,t,o,function s(i,a){if(i){n(i,a);return}if(o.index++,o.index<(o.keyedList||e).length){wx(e,t,o,s);return}n(null,o.results)}),XD.bind(o,n)}function xx(e,t){return e<t?-1:e>t?1:0}function ZD(e,t){return-1*xx(e,t)}});var _x=x((Eee,bx)=>{var e1=fd();bx.exports=t1;function t1(e,t,r){return e1(e,t,null,r)}});var Ex=x((Tee,Sx)=>{Sx.exports={parallel:vx(),serial:_x(),serialOrdered:fd()}});var md=x((kee,Tx)=>{"use strict";Tx.exports=Object});var Rx=x((Ree,kx)=>{"use strict";kx.exports=Error});var Ix=x((Pee,Px)=>{"use strict";Px.exports=EvalError});var Cx=x((Iee,Ax)=>{"use strict";Ax.exports=RangeError});var Ox=x((Aee,$x)=>{"use strict";$x.exports=ReferenceError});var Mx=x((Cee,Nx)=>{"use strict";Nx.exports=SyntaxError});var al=x(($ee,Dx)=>{"use strict";Dx.exports=TypeError});var jx=x((Oee,Lx)=>{"use strict";Lx.exports=URIError});var qx=x((Nee,Fx)=>{"use strict";Fx.exports=Math.abs});var Bx=x((Mee,Ux)=>{"use strict";Ux.exports=Math.floor});var zx=x((Dee,Gx)=>{"use strict";Gx.exports=Math.max});var Wx=x((Lee,Hx)=>{"use strict";Hx.exports=Math.min});var Kx=x((jee,Vx)=>{"use strict";Vx.exports=Math.pow});var Yx=x((Fee,Jx)=>{"use strict";Jx.exports=Math.round});var Qx=x((qee,Xx)=>{"use strict";Xx.exports=Number.isNaN||function(t){return t!==t}});var eb=x((Uee,Zx)=>{"use strict";var r1=Qx();Zx.exports=function(t){return r1(t)||t===0?t:t<0?-1:1}});var rb=x((Bee,tb)=>{"use strict";tb.exports=Object.getOwnPropertyDescriptor});var hd=x((Gee,nb)=>{"use strict";var cl=rb();if(cl)try{cl([],"length")}catch{cl=null}nb.exports=cl});var sb=x((zee,ob)=>{"use strict";var ll=Object.defineProperty||!1;if(ll)try{ll({},"a",{value:1})}catch{ll=!1}ob.exports=ll});var gd=x((Hee,ib)=>{"use strict";ib.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 lb=x((Wee,cb)=>{"use strict";var ab=typeof Symbol<"u"&&Symbol,n1=gd();cb.exports=function(){return typeof ab!="function"||typeof Symbol!="function"||typeof ab("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n1()}});var yd=x((Vee,ub)=>{"use strict";ub.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var vd=x((Kee,pb)=>{"use strict";var o1=md();pb.exports=o1.getPrototypeOf||null});var mb=x((Jee,fb)=>{"use strict";var s1="Function.prototype.bind called on incompatible ",i1=Object.prototype.toString,a1=Math.max,c1="[object Function]",db=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},l1=function(t,r){for(var n=[],o=r||0,s=0;o<t.length;o+=1,s+=1)n[s]=t[o];return n},u1=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};fb.exports=function(t){var r=this;if(typeof r!="function"||i1.apply(r)!==c1)throw new TypeError(s1+r);for(var n=l1(arguments,1),o,s=function(){if(this instanceof o){var l=r.apply(this,db(n,arguments));return Object(l)===l?l:this}return r.apply(t,db(n,arguments))},i=a1(0,r.length-n.length),a=[],c=0;c<i;c++)a[c]="$"+c;if(o=Function("binder","return function ("+u1(a,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o}});var Yi=x((Yee,hb)=>{"use strict";var p1=mb();hb.exports=Function.prototype.bind||p1});var ul=x((Xee,gb)=>{"use strict";gb.exports=Function.prototype.call});var wd=x((Qee,yb)=>{"use strict";yb.exports=Function.prototype.apply});var wb=x((Zee,vb)=>{"use strict";vb.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var bb=x((ete,xb)=>{"use strict";var d1=Yi(),f1=wd(),m1=ul(),h1=wb();xb.exports=h1||d1.call(m1,f1)});var Sb=x((tte,_b)=>{"use strict";var g1=Yi(),y1=al(),v1=ul(),w1=bb();_b.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new y1("a function is required");return w1(g1,v1,t)}});var Ib=x((rte,Pb)=>{"use strict";var x1=Sb(),Eb=hd(),kb;try{kb=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var xd=!!kb&&Eb&&Eb(Object.prototype,"__proto__"),Rb=Object,Tb=Rb.getPrototypeOf;Pb.exports=xd&&typeof xd.get=="function"?x1([xd.get]):typeof Tb=="function"?function(t){return Tb(t==null?t:Rb(t))}:!1});var Nb=x((nte,Ob)=>{"use strict";var Ab=yd(),Cb=vd(),$b=Ib();Ob.exports=Ab?function(t){return Ab(t)}:Cb?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return Cb(t)}:$b?function(t){return $b(t)}:null});var pl=x((ote,Mb)=>{"use strict";var b1=Function.prototype.call,_1=Object.prototype.hasOwnProperty,S1=Yi();Mb.exports=S1.call(b1,_1)});var Bb=x((ste,Ub)=>{"use strict";var Pe,E1=md(),T1=Rx(),k1=Ix(),R1=Cx(),P1=Ox(),Ms=Mx(),Ns=al(),I1=jx(),A1=qx(),C1=Bx(),$1=zx(),O1=Wx(),N1=Kx(),M1=Yx(),D1=eb(),Fb=Function,bd=function(e){try{return Fb('"use strict"; return ('+e+").constructor;")()}catch{}},Xi=hd(),L1=sb(),_d=function(){throw new Ns},j1=Xi?(function(){try{return arguments.callee,_d}catch{try{return Xi(arguments,"callee").get}catch{return _d}}})():_d,$s=lb()(),Lt=Nb(),F1=vd(),q1=yd(),qb=wd(),Qi=ul(),Os={},U1=typeof Uint8Array>"u"||!Lt?Pe:Lt(Uint8Array),jo={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Pe:ArrayBuffer,"%ArrayIteratorPrototype%":$s&&Lt?Lt([][Symbol.iterator]()):Pe,"%AsyncFromSyncIteratorPrototype%":Pe,"%AsyncFunction%":Os,"%AsyncGenerator%":Os,"%AsyncGeneratorFunction%":Os,"%AsyncIteratorPrototype%":Os,"%Atomics%":typeof Atomics>"u"?Pe:Atomics,"%BigInt%":typeof BigInt>"u"?Pe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":T1,"%eval%":eval,"%EvalError%":k1,"%Float16Array%":typeof Float16Array>"u"?Pe:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Pe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Pe:FinalizationRegistry,"%Function%":Fb,"%GeneratorFunction%":Os,"%Int8Array%":typeof Int8Array>"u"?Pe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Pe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":$s&&Lt?Lt(Lt([][Symbol.iterator]())):Pe,"%JSON%":typeof JSON=="object"?JSON:Pe,"%Map%":typeof Map>"u"?Pe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!$s||!Lt?Pe:Lt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":E1,"%Object.getOwnPropertyDescriptor%":Xi,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Pe:Promise,"%Proxy%":typeof Proxy>"u"?Pe:Proxy,"%RangeError%":R1,"%ReferenceError%":P1,"%Reflect%":typeof Reflect>"u"?Pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Pe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!$s||!Lt?Pe:Lt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":$s&&Lt?Lt(""[Symbol.iterator]()):Pe,"%Symbol%":$s?Symbol:Pe,"%SyntaxError%":Ms,"%ThrowTypeError%":j1,"%TypedArray%":U1,"%TypeError%":Ns,"%Uint8Array%":typeof Uint8Array>"u"?Pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Pe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Pe:Uint32Array,"%URIError%":I1,"%WeakMap%":typeof WeakMap>"u"?Pe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Pe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Pe:WeakSet,"%Function.prototype.call%":Qi,"%Function.prototype.apply%":qb,"%Object.defineProperty%":L1,"%Object.getPrototypeOf%":F1,"%Math.abs%":A1,"%Math.floor%":C1,"%Math.max%":$1,"%Math.min%":O1,"%Math.pow%":N1,"%Math.round%":M1,"%Math.sign%":D1,"%Reflect.getPrototypeOf%":q1};if(Lt)try{null.error}catch(e){Db=Lt(Lt(e)),jo["%Error.prototype%"]=Db}var Db,B1=function e(t){var r;if(t==="%AsyncFunction%")r=bd("async function () {}");else if(t==="%GeneratorFunction%")r=bd("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=bd("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Lt&&(r=Lt(o.prototype))}return jo[t]=r,r},Lb={__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"]},Zi=Yi(),dl=pl(),G1=Zi.call(Qi,Array.prototype.concat),z1=Zi.call(qb,Array.prototype.splice),jb=Zi.call(Qi,String.prototype.replace),fl=Zi.call(Qi,String.prototype.slice),H1=Zi.call(Qi,RegExp.prototype.exec),W1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V1=/\\(\\)?/g,K1=function(t){var r=fl(t,0,1),n=fl(t,-1);if(r==="%"&&n!=="%")throw new Ms("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ms("invalid intrinsic syntax, expected opening `%`");var o=[];return jb(t,W1,function(s,i,a,c){o[o.length]=a?jb(c,V1,"$1"):i||s}),o},J1=function(t,r){var n=t,o;if(dl(Lb,n)&&(o=Lb[n],n="%"+o[0]+"%"),dl(jo,n)){var s=jo[n];if(s===Os&&(s=B1(n)),typeof s>"u"&&!r)throw new Ns("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:s}}throw new Ms("intrinsic "+t+" does not exist!")};Ub.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Ns("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Ns('"allowMissing" argument must be a boolean');if(H1(/^%?[^%]*%?$/,t)===null)throw new Ms("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=K1(t),o=n.length>0?n[0]:"",s=J1("%"+o+"%",r),i=s.name,a=s.value,c=!1,u=s.alias;u&&(o=u[0],z1(n,G1([0,1],u)));for(var l=1,p=!0;l<n.length;l+=1){var f=n[l],m=fl(f,0,1),h=fl(f,-1);if((m==='"'||m==="'"||m==="`"||h==='"'||h==="'"||h==="`")&&m!==h)throw new Ms("property names with quotes must have matching quotes");if((f==="constructor"||!p)&&(c=!0),o+="."+f,i="%"+o+"%",dl(jo,i))a=jo[i];else if(a!=null){if(!(f in a)){if(!r)throw new Ns("base intrinsic for "+t+" exists, but the property is not available.");return}if(Xi&&l+1>=n.length){var g=Xi(a,f);p=!!g,p&&"get"in g&&!("originalValue"in g.get)?a=g.get:a=a[f]}else p=dl(a,f),a=a[f];p&&!c&&(jo[i]=a)}}return a}});var zb=x((ite,Gb)=>{"use strict";var Y1=gd();Gb.exports=function(){return Y1()&&!!Symbol.toStringTag}});var Vb=x((ate,Wb)=>{"use strict";var X1=Bb(),Hb=X1("%Object.defineProperty%",!0),Q1=zb()(),Z1=pl(),eL=al(),ml=Q1?Symbol.toStringTag:null;Wb.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 eL("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");ml&&(n||!Z1(t,ml))&&(Hb?Hb(t,ml,{configurable:!o,enumerable:!1,value:r,writable:!1}):t[ml]=r)}});var Jb=x((cte,Kb)=>{"use strict";Kb.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var Xb=x((lte,Yb)=>{"use strict";var kd=tx(),tL=Et("util"),Sd=Et("path"),rL=Et("http"),nL=Et("https"),oL=Et("url").parse,sL=Et("fs"),iL=Et("stream").Stream,aL=Et("crypto"),Ed=ax(),cL=Ex(),lL=Vb(),uo=pl(),Td=Jb();function Me(e){if(!(this instanceof Me))return new Me(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],kd.call(this),e=e||{};for(var t in e)this[t]=e[t]}tL.inherits(Me,kd);Me.LINE_BREAK=`\r
4
- `;Me.DEFAULT_CONTENT_TYPE="application/octet-stream";Me.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=kd.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)};Me.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)+Me.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&uo(t,"httpVersion"))&&!(t instanceof iL))&&(r.knownLength||this._valuesToMeasure.push(t))};Me.prototype._lengthRetriever=function(e,t){uo(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):sL.stat(e.path,function(r,n){if(r){t(r);return}var o=n.size-(e.start?e.start:0);t(null,o)}):uo(e,"httpVersion")?t(null,Number(e.headers["content-length"])):uo(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};Me.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"&&Td(i,r.header);var a;for(var c in i)if(uo(i,c)){if(a=i[c],a==null)continue;Array.isArray(a)||(a=[a]),a.length&&(s+=c+": "+a.join("; ")+Me.LINE_BREAK)}return"--"+this.getBoundary()+Me.LINE_BREAK+s+Me.LINE_BREAK};Me.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=Sd.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=Sd.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&uo(e,"httpVersion")&&(r=Sd.basename(e.client._httpMessage.path||"")),r)return'filename="'+r+'"'};Me.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=Ed.lookup(e.name)),!r&&e&&e.path&&(r=Ed.lookup(e.path)),!r&&e&&e.readable&&uo(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=Ed.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=Me.DEFAULT_CONTENT_TYPE),r};Me.prototype._multiPartFooter=function(){return function(e){var t=Me.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};Me.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Me.LINE_BREAK};Me.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)uo(e,t)&&(r[t.toLowerCase()]=e[t]);return r};Me.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};Me.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Me.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(Me.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};Me.prototype._generateBoundary=function(){this._boundary="--------------------------"+aL.randomBytes(12).toString("hex")};Me.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};Me.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};Me.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}cL.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(o){t+=o}),e(null,t)})};Me.prototype.submit=function(e,t){var r,n,o={method:"post"};return typeof e=="string"?(e=oL(e),n=Td({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(n=Td(e,o),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=nL.request(n):r=rL.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(u,l){return r.removeListener("error",c),r.removeListener("response",a),t.call(this,u,l)};a=c.bind(this,null),r.on("error",c),r.on("response",a)}}.bind(this)),r};Me.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};Me.prototype.toString=function(){return"[object FormData]"};lL(Me.prototype,"FormData");Yb.exports=Me});var Qb,hl,Rd=S(()=>{Qb=Or(Xb(),1),hl=Qb.default});function Id(e){return b.isPlainObject(e)||b.isArray(e)}function Zb(e){return b.endsWith(e,"[]")?e.slice(0,-2):e}function Pd(e,t,r){return e?e.concat(t).map(function(o,s){return o=Zb(o),!r&&s?"["+o+"]":o}).join(r?".":""):t}function uL(e){return b.isArray(e)&&!e.some(Id)}function dL(e,t,r){if(!b.isObject(e))throw new TypeError("target must be an object");t=t||new(hl||FormData),r=b.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,v){return!b.isUndefined(v[w])});let n=r.metaTokens,o=r.visitor||p,s=r.dots,i=r.indexes,a=r.Blob||typeof Blob<"u"&&Blob,c=r.maxDepth===void 0?100:r.maxDepth,u=a&&b.isSpecCompliantForm(t);if(!b.isFunction(o))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(b.isDate(g))return g.toISOString();if(b.isBoolean(g))return g.toString();if(!u&&b.isBlob(g))throw new $("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(g)||b.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function p(g,w,v){let T=g;if(b.isReactNative(t)&&b.isReactNativeBlob(g))return t.append(Pd(v,w,s),l(g)),!1;if(g&&!v&&typeof g=="object"){if(b.endsWith(w,"{}"))w=n?w:w.slice(0,-2),g=JSON.stringify(g);else if(b.isArray(g)&&uL(g)||(b.isFileList(g)||b.endsWith(w,"[]"))&&(T=b.toArray(g)))return w=Zb(w),T.forEach(function(P,I){!(b.isUndefined(P)||P===null)&&t.append(i===!0?Pd([w],I,s):i===null?w:w+"[]",l(P))}),!1}return Id(g)?!0:(t.append(Pd(v,w,s),l(g)),!1)}let f=[],m=Object.assign(pL,{defaultVisitor:p,convertValue:l,isVisitable:Id});function h(g,w,v=0){if(!b.isUndefined(g)){if(v>c)throw new $("Object is too deeply nested ("+v+" levels). Max depth: "+c,$.ERR_FORM_DATA_DEPTH_EXCEEDED);if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+w.join("."));f.push(g),b.forEach(g,function(R,P){(!(b.isUndefined(R)||R===null)&&o.call(t,R,b.isString(P)?P.trim():P,w,m))===!0&&h(R,w?w.concat(P):[P],v+1)}),f.pop()}}if(!b.isObject(e))throw new TypeError("data must be an object");return h(e),t}var pL,po,ea=S(()=>{"use strict";rt();Mr();Rd();pL=b.toFlatObject(b,{},null,function(t){return/^is[A-Z]/.test(t)});po=dL});function e_(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(n){return t[n]})}function t_(e,t){this._pairs=[],e&&po(e,this,t)}var r_,n_,o_=S(()=>{"use strict";ea();r_=t_.prototype;r_.append=function(t,r){this._pairs.push([t,r])};r_.toString=function(t){let r=t?function(n){return t.call(this,n,e_)}:e_;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};n_=t_});function fL(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Fo(e,t,r){if(!t)return e;let n=r&&r.encode||fL,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 n_(t,o).toString(n),i){let a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}var gl=S(()=>{"use strict";rt();o_()});var Ad,Cd,s_=S(()=>{"use strict";rt();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 fo,ta=S(()=>{"use strict";fo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0}});import mL from"url";var i_,a_=S(()=>{"use strict";i_=mL.URLSearchParams});import hL from"crypto";var $d,c_,l_,gL,u_,p_=S(()=>{a_();Rd();$d="abcdefghijklmnopqrstuvwxyz",c_="0123456789",l_={DIGIT:c_,ALPHA:$d,ALPHA_DIGIT:$d+$d.toUpperCase()+c_},gL=(e=16,t=l_.ALPHA_DIGIT)=>{let r="",{length:n}=t,o=new Uint32Array(e);hL.randomFillSync(o);for(let s=0;s<e;s++)r+=t[o[s]%n];return r},u_={isNode:!0,classes:{URLSearchParams:i_,FormData:hl,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:l_,generateString:gL,protocols:["http","https","file","data"]}});var Md={};Qp(Md,{hasBrowserEnv:()=>Nd,hasStandardBrowserEnv:()=>yL,hasStandardBrowserWebWorkerEnv:()=>vL,navigator:()=>Od,origin:()=>wL});var Nd,Od,yL,vL,wL,d_=S(()=>{Nd=typeof window<"u"&&typeof document<"u",Od=typeof navigator=="object"&&navigator||void 0,yL=Nd&&(!Od||["ReactNative","NativeScript","NS"].indexOf(Od.product)<0),vL=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wL=Nd&&window.location.href||"http://localhost"});var Be,fn=S(()=>{p_();d_();Be={...Md,...u_}});function Dd(e,t){return po(e,new Be.classes.URLSearchParams,{visitor:function(r,n,o,s){return Be.isNode&&b.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}var f_=S(()=>{"use strict";rt();ea();fn()});function xL(e){return b.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function bL(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 _L(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]=b.isArray(o[i])?o[i].concat(n):[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]=bL(o[i])),!a)}if(b.isFormData(e)&&b.isFunction(e.entries)){let r={};return b.forEachEntry(e,(n,o)=>{t(xL(n),o,r,0)}),r}return null}var yl,Ld=S(()=>{"use strict";rt();yl=_L});function SL(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 Ds,jd,Ls,vl=S(()=>{"use strict";rt();Mr();ta();ea();f_();fn();Ld();Ds=(e,t)=>e!=null&&b.hasOwnProp(e,t)?e[t]:void 0;jd={transitional:fo,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(yl(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){let c=Ds(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return Dd(t,c).toString();if((a=b.isFileList(t))||n.indexOf("multipart/form-data")>-1){let u=Ds(this,"env"),l=u&&u.FormData;return po(a?{"files[]":t}:t,l&&new l,c)}}return s||o?(r.setContentType("application/json",!1),SL(t)):t}],transformResponse:[function(t){let r=Ds(this,"transitional")||jd.transitional,n=r&&r.forcedJSONParsing,o=Ds(this,"responseType"),s=o==="json";if(b.isResponse(t)||b.isReadableStream(t))return t;if(t&&b.isString(t)&&(n&&!o||s)){let a=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t,Ds(this,"parseReviver"))}catch(c){if(a)throw c.name==="SyntaxError"?$.from(c,$.ERR_BAD_RESPONSE,this,null,Ds(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Be.classes.FormData,Blob:Be.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","query"],e=>{jd.headers[e]={}});Ls=jd});function ra(e,t){let r=this||Ls,n=t||r,o=at.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 m_=S(()=>{"use strict";rt();vl();pn()});function na(e){return!!(e&&e.__CANCEL__)}var Fd=S(()=>{"use strict"});var qd,Dr,qo=S(()=>{"use strict";Mr();qd=class extends ${constructor(t,r,n){super(t??"canceled",$.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}},Dr=qd});function Pn(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new $("Request failed with status code "+r.status,r.status>=400&&r.status<500?$.ERR_BAD_REQUEST:$.ERR_BAD_RESPONSE,r.config,r.request,r))}var wl=S(()=>{"use strict";Mr()});function Ud(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}var h_=S(()=>{"use strict"});function Bd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}var g_=S(()=>{"use strict"});function Uo(e,t,r){let n=!Ud(t);return e&&(n||r===!1)?Bd(e,t):t}var xl=S(()=>{"use strict";h_();g_()});function TL(e){try{return new URL(e)}catch{return null}}function y_(e){var t=(typeof e=="string"?TL(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)||EL[r]||0,!kL(n,o)))return"";var s=Gd(r+"_proxy")||Gd("all_proxy");return s&&s.indexOf("://")===-1&&(s=r+"://"+s),s}function kL(e,t){var r=Gd("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 Gd(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}var EL,v_=S(()=>{"use strict";EL={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443}});var x_=x((ire,w_)=>{var js=1e3,Fs=js*60,qs=Fs*60,Bo=qs*24,RL=Bo*7,PL=Bo*365.25;w_.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return IL(e);if(r==="number"&&isFinite(e))return t.long?CL(e):AL(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function IL(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*PL;case"weeks":case"week":case"w":return r*RL;case"days":case"day":case"d":return r*Bo;case"hours":case"hour":case"hrs":case"hr":case"h":return r*qs;case"minutes":case"minute":case"mins":case"min":case"m":return r*Fs;case"seconds":case"second":case"secs":case"sec":case"s":return r*js;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function AL(e){var t=Math.abs(e);return t>=Bo?Math.round(e/Bo)+"d":t>=qs?Math.round(e/qs)+"h":t>=Fs?Math.round(e/Fs)+"m":t>=js?Math.round(e/js)+"s":e+"ms"}function CL(e){var t=Math.abs(e);return t>=Bo?bl(e,t,Bo,"day"):t>=qs?bl(e,t,qs,"hour"):t>=Fs?bl(e,t,Fs,"minute"):t>=js?bl(e,t,js,"second"):e+" ms"}function bl(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var zd=x((are,b_)=>{function $L(e){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=x_(),r.destroy=u,Object.keys(e).forEach(l=>{r[l]=e[l]}),r.names=[],r.skips=[],r.formatters={};function t(l){let p=0;for(let f=0;f<l.length;f++)p=(p<<5)-p+l.charCodeAt(f),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(l){let p,f=null,m,h;function g(...w){if(!g.enabled)return;let v=g,T=Number(new Date),R=T-(p||T);v.diff=R,v.prev=p,v.curr=T,p=T,w[0]=r.coerce(w[0]),typeof w[0]!="string"&&w.unshift("%O");let P=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,(j,F)=>{if(j==="%%")return"%";P++;let ie=r.formatters[F];if(typeof ie=="function"){let de=w[P];j=ie.call(v,de),w.splice(P,1),P--}return j}),r.formatArgs.call(v,w),(v.log||r.log).apply(v,w)}return g.namespace=l,g.useColors=r.useColors(),g.color=r.selectColor(l),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(m!==r.namespaces&&(m=r.namespaces,h=r.enabled(l)),h),set:w=>{f=w}}),typeof r.init=="function"&&r.init(g),g}function n(l,p){let f=r(this.namespace+(typeof p>"u"?":":p)+l);return f.log=this.log,f}function o(l){r.save(l),r.namespaces=l,r.names=[],r.skips=[];let p=(typeof l=="string"?l:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of p)f[0]==="-"?r.skips.push(f.slice(1)):r.names.push(f)}function s(l,p){let f=0,m=0,h=-1,g=0;for(;f<l.length;)if(m<p.length&&(p[m]===l[f]||p[m]==="*"))p[m]==="*"?(h=m,g=f,m++):(f++,m++);else if(h!==-1)m=h+1,g++,f=g;else return!1;for(;m<p.length&&p[m]==="*";)m++;return m===p.length}function i(){let l=[...r.names,...r.skips.map(p=>"-"+p)].join(",");return r.enable(""),l}function a(l){for(let p of r.skips)if(s(l,p))return!1;for(let p of r.names)if(s(l,p))return!0;return!1}function c(l){return l instanceof Error?l.stack||l.message:l}function u(){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}b_.exports=$L});var __=x((xr,_l)=>{xr.formatArgs=NL;xr.save=ML;xr.load=DL;xr.useColors=OL;xr.storage=LL();xr.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`."))}})();xr.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 OL(){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 NL(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+_l.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)}xr.log=console.debug||console.log||(()=>{});function ML(e){try{e?xr.storage.setItem("debug",e):xr.storage.removeItem("debug")}catch{}}function DL(){let e;try{e=xr.storage.getItem("debug")||xr.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function LL(){try{return localStorage}catch{}}_l.exports=zd()(xr);var{formatters:jL}=_l.exports;jL.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var E_=x((cre,S_)=>{"use strict";S_.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 Vd=x((lre,k_)=>{"use strict";var FL=Et("os"),T_=Et("tty"),Hr=E_(),{env:jt}=process,mo;Hr("no-color")||Hr("no-colors")||Hr("color=false")||Hr("color=never")?mo=0:(Hr("color")||Hr("colors")||Hr("color=true")||Hr("color=always"))&&(mo=1);"FORCE_COLOR"in jt&&(jt.FORCE_COLOR==="true"?mo=1:jt.FORCE_COLOR==="false"?mo=0:mo=jt.FORCE_COLOR.length===0?1:Math.min(parseInt(jt.FORCE_COLOR,10),3));function Hd(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Wd(e,t){if(mo===0)return 0;if(Hr("color=16m")||Hr("color=full")||Hr("color=truecolor"))return 3;if(Hr("color=256"))return 2;if(e&&!t&&mo===void 0)return 0;let r=mo||0;if(jt.TERM==="dumb")return r;if(process.platform==="win32"){let n=FL.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in jt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in jt)||jt.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in jt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(jt.TEAMCITY_VERSION)?1:0;if(jt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in jt){let n=parseInt((jt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(jt.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(jt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(jt.TERM)||"COLORTERM"in jt?1:r}function qL(e){let t=Wd(e,e&&e.isTTY);return Hd(t)}k_.exports={supportsColor:qL,stdout:Hd(Wd(!0,T_.isatty(1))),stderr:Hd(Wd(!0,T_.isatty(2)))}});var P_=x((Ft,El)=>{var UL=Et("tty"),Sl=Et("util");Ft.init=KL;Ft.log=HL;Ft.formatArgs=GL;Ft.save=WL;Ft.load=VL;Ft.useColors=BL;Ft.destroy=Sl.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Ft.colors=[6,2,3,4,5,1];try{let e=Vd();e&&(e.stderr||e).level>=2&&(Ft.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{}Ft.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 BL(){return"colors"in Ft.inspectOpts?!!Ft.inspectOpts.colors:UL.isatty(process.stderr.fd)}function GL(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+"+El.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=zL()+t+" "+e[0]}function zL(){return Ft.inspectOpts.hideDate?"":new Date().toISOString()+" "}function HL(...e){return process.stderr.write(Sl.formatWithOptions(Ft.inspectOpts,...e)+`
7
- `)}function WL(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function VL(){return process.env.DEBUG}function KL(e){e.inspectOpts={};let t=Object.keys(Ft.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=Ft.inspectOpts[t[r]]}El.exports=zd()(Ft);var{formatters:R_}=El.exports;R_.o=function(e){return this.inspectOpts.colors=this.useColors,Sl.inspect(e,this.inspectOpts).split(`
8
- `).map(t=>t.trim()).join(" ")};R_.O=function(e){return this.inspectOpts.colors=this.useColors,Sl.inspect(e,this.inspectOpts)}});var I_=x((ure,Kd)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Kd.exports=__():Kd.exports=P_()});var C_=x((pre,A_)=>{var oa;A_.exports=function(){if(!oa){try{oa=I_()("follow-redirects")}catch{}typeof oa!="function"&&(oa=function(){})}oa.apply(null,arguments)}});var D_=x((dre,af)=>{var ia=Et("url"),sa=ia.URL,JL=Et("http"),YL=Et("https"),Zd=Et("stream").Writable,ef=Et("assert"),$_=C_();(function(){var t=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=zo(Error.captureStackTrace);!t&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var tf=!1;try{ef(new sa(""))}catch(e){tf=e.code==="ERR_INVALID_URL"}var XL=["Authorization","Proxy-Authorization","Cookie"],QL=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],rf=["abort","aborted","connect","error","socket","timeout"],nf=Object.create(null);rf.forEach(function(e){nf[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var Yd=aa("ERR_INVALID_URL","Invalid URL",TypeError),Xd=aa("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),ZL=aa("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Xd),ej=aa("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),tj=aa("ERR_STREAM_WRITE_AFTER_END","write after end"),rj=Zd.prototype.destroy||N_;function br(e,t){Zd.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 Xd?o:new Xd({cause:o}))}},this._headerFilter=new RegExp("^(?:"+XL.concat(e.sensitiveHeaders).map(cj).join("|")+")$","i"),this._performRequest()}br.prototype=Object.create(Zd.prototype);br.prototype.abort=function(){sf(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};br.prototype.destroy=function(e){return sf(this._currentRequest,e),rj.call(this,e),this};br.prototype.write=function(e,t,r){if(this._ending)throw new tj;if(!Go(e)&&!ij(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(zo(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 ej),this.abort())};br.prototype.end=function(e,t,r){if(zo(e)?(r=e,e=t=null):zo(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}};br.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};br.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};br.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){br.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(br.prototype,e,{get:function(){return this._currentRequest[e]}})});br.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),sj(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))}};br.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 rf)n.on(o,nf[o]);if(this._currentUrl=/^\//.test(this._options.path)?ia.format(this._options):this._options.path,this._isRedirect){var s=0,i=this,a=this._requestBodyBuffers;(function c(u){if(n===i._currentRequest)if(u)i.emit("error",u);else if(s<a.length){var l=a[s++];n.finished||n.write(l.data,l.encoding,c)}else i._ended&&n.end()})()}};br.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(sf(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new ZL;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=[],Jd(/^content-/i,this._options.headers));var i=Jd(/^host$/i,this._options.headers),a=of(this._currentUrl),c=i||a.host,u=/^\w+:/.test(r)?this._currentUrl:ia.format(Object.assign(a,{host:c})),l=nj(r,u);if($_("redirecting to",l.href),this._isRedirect=!0,Qd(l,this._options),(l.protocol!==a.protocol&&l.protocol!=="https:"||l.host!==c&&!oj(l.host,c))&&Jd(this._headerFilter,this._options.headers),zo(o)){var p={headers:e.headers,statusCode:t},f={url:u,method:s,headers:n};o(this._options,p,f),this._sanitizeOptions(this._options)}this._performRequest()};function O_(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(u,l,p){return aj(u)?u=Qd(u):Go(u)?u=Qd(of(u)):(p=l,l=M_(u),u={protocol:o}),zo(l)&&(p=l,l=null),l=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},u,l),l.nativeProtocols=r,!Go(l.host)&&!Go(l.hostname)&&(l.hostname="::1"),ef.equal(l.protocol,o,"protocol mismatch"),$_("options",l),new br(l,p)}function c(u,l,p){var f=i.request(u,l,p);return f.end(),f}Object.defineProperties(i,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function N_(){}function of(e){var t;if(tf)t=new sa(e);else if(t=M_(ia.parse(e)),!Go(t.protocol))throw new Yd({input:e});return t}function nj(e,t){return tf?new sa(e,t):of(ia.resolve(t,e))}function M_(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Yd({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Yd({input:e.href||e});return e}function Qd(e,t){var r=t||{};for(var n of QL)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 Jd(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 aa(e,t,r){function n(o){zo(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 sf(e,t){for(var r of rf)e.removeListener(r,nf[r]);e.on("error",N_),e.destroy(t)}function oj(e,t){ef(Go(e)&&Go(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function sj(e){return e instanceof Array}function Go(e){return typeof e=="string"||e instanceof String}function zo(e){return typeof e=="function"}function ij(e){return typeof e=="object"&&"length"in e}function aj(e){return sa&&e instanceof sa}function cj(e){return e.replace(/[\]\\/()*+?.$]/g,"\\$&")}af.exports=O_({http:JL,https:YL});af.exports.wrap=O_});var Wn,ca=S(()=>{Wn="1.16.0"});function la(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}var cf=S(()=>{"use strict"});function lf(e,t,r){let n=r&&r.Blob||Be.classes.Blob,o=la(e);if(t===void 0&&n&&(t=!0),o==="data"){e=o.length?e.slice(o.length+1):e;let s=lj.exec(e);if(!s)throw new $("Invalid URL",$.ERR_INVALID_URL);let i=s[1],a=s[2],c=s[3],u=Buffer.from(decodeURIComponent(c),a?"base64":"utf8");if(t){if(!n)throw new $("Blob is not supported",$.ERR_NOT_SUPPORT);return new n([u],{type:i})}return u}throw new $("Unsupported protocol "+o,$.ERR_NOT_SUPPORT)}var lj,L_=S(()=>{"use strict";Mr();cf();fn();lj=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/});import uj from"stream";var uf,pf,df,j_=S(()=>{"use strict";rt();uf=Symbol("internals"),pf=class extends uj.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[uf]={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[uf];return r.onReadCallback&&r.onReadCallback(),super._read(t)}_transform(t,r,n){let o=this[uf],s=o.maxRate,i=this.readableHighWaterMark,a=o.timeWindow,c=1e3/a,u=s/c,l=o.minChunkSize!==!1?Math.max(o.minChunkSize,u*.01):0,p=(m,h)=>{let g=Buffer.byteLength(m);o.bytesSeen+=g,o.bytes+=g,o.isCaptured&&this.emit("progress",o.bytesSeen),this.push(m)?process.nextTick(h):o.onReadCallback=()=>{o.onReadCallback=null,process.nextTick(h)}},f=(m,h)=>{let g=Buffer.byteLength(m),w=null,v=i,T,R=0;if(s){let P=Date.now();(!o.ts||(R=P-o.ts)>=a)&&(o.ts=P,T=u-o.bytes,o.bytes=T<0?-T:0,R=0),T=u-o.bytes}if(s){if(T<=0)return setTimeout(()=>{h(null,m)},a-R);T<v&&(v=T)}v&&g>v&&g-v>l&&(w=m.subarray(v),m=m.subarray(0,v)),p(m,w?()=>{process.nextTick(h,null,w)}:h)};f(t,function m(h,g){if(h)return n(h);g?f(g,m):n(null)})}},df=pf});var F_,pj,Tl,ff=S(()=>{({asyncIterator:F_}=Symbol),pj=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[F_]?yield*e[F_]():yield e},Tl=pj});import dj from"util";import{Readable as fj}from"stream";var mj,ua,Ho,hj,gj,mf,yj,q_,U_=S(()=>{rt();ff();fn();mj=Be.ALPHABET.ALPHA_DIGIT+"-_",ua=typeof TextEncoder=="function"?new TextEncoder:new dj.TextEncoder,Ho=`\r
9
- `,hj=ua.encode(Ho),gj=2,mf=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)}"`:""}${Ho}`;if(o)r=ua.encode(String(r).replace(/\r?\n|\r\n?/g,Ho));else{let i=String(r.type||"application/octet-stream").replace(/[\r\n]/g,"");s+=`Content-Type: ${i}${Ho}`}this.headers=ua.encode(s+Ho),this.contentLength=o?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+gj,this.name=t,this.value=r}async*encode(){yield this.headers;let{value:t}=this;b.isTypedArray(t)?yield t:yield*Tl(t),yield hj}static escapeName(t){return String(t).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}},yj=(e,t,r)=>{let{tag:n="form-data-boundary",size:o=25,boundary:s=n+"-"+Be.generateString(o,mj)}=r||{};if(!b.isFormData(e))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 1-70 characters long");let i=ua.encode("--"+s+Ho),a=ua.encode("--"+s+"--"+Ho),c=a.byteLength,u=Array.from(e.entries()).map(([p,f])=>{let m=new mf(p,f);return c+=m.size,m});c+=i.byteLength*u.length,c=b.toFiniteNumber(c);let l={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(c)&&(l["Content-Length"]=c),t&&t(l),fj.from((async function*(){for(let p of u)yield i,yield*p.encode();yield a})())},q_=yj});import vj from"stream";var hf,B_,G_=S(()=>{"use strict";hf=class extends vj.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)}},B_=hf});var wj,z_,H_=S(()=>{rt();wj=(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,z_=wj});function gf(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)||_j[t.protocol.split(":",1)[0]]||0,o=V_(t.hostname.toLowerCase());return r.split(/[\s,]+/).some(s=>{if(!s)return!1;let[i,a]=Sj(s);return i=V_(i),!i||a&&a!==n?!1:(i.charAt(0)==="*"&&(i=i.slice(1)),i.charAt(0)==="."?o.endsWith(i):o===i||W_(o)&&W_(i))})}var xj,K_,bj,W_,_j,Sj,Ej,Tj,kj,V_,J_=S(()=>{xj=new Set(["localhost"]),K_=e=>{let t=e.split(".");return t.length!==4||t[0]!=="127"?!1:t.every(r=>/^\d+$/.test(r)&&Number(r)>=0&&Number(r)<=255)},bj=e=>{if(e==="::1")return!0;let t=e.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(t)return K_(t[1]);let r=e.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(r){let o=parseInt(r[1],16);return o>=32512&&o<=32767}let n=e.split(":");if(n.length===8){for(let o=0;o<7;o++)if(!/^0+$/.test(n[o]))return!1;return/^0*1$/.test(n[7])}return!1},W_=e=>e?xj.has(e)||K_(e)?!0:bj(e):!1,_j={http:80,https:443,ws:80,wss:443,ftp:21},Sj=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]},Ej=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,Tj=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,kj=e=>{if(typeof e!="string"||e.indexOf(":")===-1)return e;let t=e.match(Ej);if(t)return t[1];let r=e.match(Tj);if(r){let n=parseInt(r[1],16),o=parseInt(r[2],16);return`${n>>8}.${n&255}.${o>>8}.${o&255}`}return e},V_=e=>e&&(e.charAt(0)==="["&&e.charAt(e.length-1)==="]"&&(e=e.slice(1,-1)),kj(e.replace(/\.+$/,"")))});function Rj(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 u=Date.now(),l=n[s];i||(i=u),r[o]=c,n[o]=u;let p=s,f=0;for(;p!==o;)f+=r[p++],p=p%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i<t)return;let m=l&&u-l;return m?Math.round(f*1e3/m):void 0}}var Y_,X_=S(()=>{"use strict";Y_=Rj});function Pj(e,t){let r=0,n=1e3/t,o,s,i=(u,l=Date.now())=>{r=l,o=null,s&&(clearTimeout(s),s=null),e(...u)};return[(...u)=>{let l=Date.now(),p=l-r;p>=n?i(u,l):(o=u,s||(s=setTimeout(()=>{s=null,i(o)},n-p)))},()=>o&&i(o)]}var Q_,Z_=S(()=>{Q_=Pj});var Vn,Us,Bs,kl=S(()=>{X_();Z_();rt();Vn=(e,t,r=3)=>{let n=0,o=Y_(50,250);return Q_(s=>{let i=s.loaded,a=s.lengthComputable?s.total:void 0,c=a!=null?Math.min(i,a):i,u=Math.max(0,c-n),l=o(u);n=Math.max(n,c);let p={loaded:c,total:a,progress:a?c/a:void 0,bytes:u,rate:l||void 0,estimated:l&&a?(a-c)/l:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},r)},Us=(e,t)=>{let r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Bs=e=>(...t)=>b.asap(()=>e(...t))});function pa(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 i=n.length,a=n.length;for(let m=0;m<a;m++)if(n.charCodeAt(m)===37&&m+2<a){let h=n.charCodeAt(m+1),g=n.charCodeAt(m+2);(h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102)&&(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(i-=2,m+=2)}let c=0,u=a-1,l=m=>m>=2&&n.charCodeAt(m-2)===37&&n.charCodeAt(m-1)===51&&(n.charCodeAt(m)===68||n.charCodeAt(m)===100);u>=0&&(n.charCodeAt(u)===61?(c++,u--):l(u)&&(c++,u-=3)),c===1&&u>=0&&(n.charCodeAt(u)===61||l(u))&&c++;let f=Math.floor(i/4)*3-(c||0);return f>0?f:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let s=0;for(let i=0,a=n.length;i<a;i++){let c=n.charCodeAt(i);if(c<128)s+=1;else if(c<2048)s+=2;else if(c>=55296&&c<=56319&&i+1<a){let u=n.charCodeAt(i+1);u>=56320&&u<=57343?(s+=4,i++):s+=3}else s+=3}return s}var yf=S(()=>{});import Ij from"http";import Aj from"https";import c0 from"http2";import l0 from"util";import{resolve as e0}from"path";import ho from"zlib";import mn from"stream";import{EventEmitter as Cj}from"events";function Lj(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach(([n,o])=>{Dj.includes(n.toLowerCase())&&e.set(n,o)})}function Fj(e,t,r){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t,r)}function p0(e,t,r,n){let o=t;if(!o&&o!==!1){let s=y_(r);s&&(gf(r)||(o=new URL(s)))}if(n&&e.headers)for(let s of Object.keys(e.headers))s.toLowerCase()==="proxy-authorization"&&delete e.headers[s];if(o){let s=o instanceof URL,i=m=>s||b.hasOwnProp(o,m)?o[m]:void 0,a=i("username"),c=i("password"),u=b.hasOwnProp(o,"auth")?o.auth:void 0;if(a&&(u=(a||"")+":"+(c||"")),u){let m=typeof u=="object",h=m&&b.hasOwnProp(u,"username")?u.username:void 0,g=m&&b.hasOwnProp(u,"password")?u.password:void 0;if(!!(h||g))u=(h||"")+":"+(g||"");else if(m)throw new $("Invalid proxy authorization",$.ERR_BAD_OPTION,{proxy:o});let v=Buffer.from(u,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+v}let l=!1;for(let m of Object.keys(e.headers))if(m.toLowerCase()==="host"){l=!0;break}l||(e.headers.host=e.hostname+(e.port?":"+e.port:""));let p=i("hostname")||i("host");e.hostname=p,e.host=p,e.port=i("port"),e.path=r;let f=i("protocol");f&&(e.protocol=f.includes(":")?f:`${f}:`)}e.beforeRedirects.proxy=function(i){p0(i,t,i.href,!0)}}var u0,t0,$j,r0,Oj,Nj,Mj,Dj,n0,Rl,o0,s0,i0,vf,jj,qj,Uj,Bj,a0,Gj,d0,f0=S(()=>{rt();wl();xl();gl();v_();u0=Or(D_(),1);ca();ta();Mr();qo();fn();L_();pn();j_();U_();ff();G_();H_();J_();kl();yf();t0={flush:ho.constants.Z_SYNC_FLUSH,finishFlush:ho.constants.Z_SYNC_FLUSH},$j={flush:ho.constants.BROTLI_OPERATION_FLUSH,finishFlush:ho.constants.BROTLI_OPERATION_FLUSH},r0=b.isFunction(ho.createBrotliDecompress),{http:Oj,https:Nj}=u0.default,Mj=/https:?/,Dj=["content-type","content-length"];n0=Symbol("axios.http.socketListener"),Rl=Symbol("axios.http.currentReq"),o0=Be.protocols.map(e=>e+":"),s0=e=>{if(!b.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},i0=(e,[t,r])=>(e.on("end",r).on("error",r),t),vf=class{constructor(){this.sessions=Object.create(null)}getSession(t,r){r=Object.assign({sessionTimeout:1e3},r);let n=this.sessions[t];if(n){let l=n.length;for(let p=0;p<l;p++){let[f,m]=n[p];if(!f.destroyed&&!f.closed&&l0.isDeepStrictEqual(m,r))return f}}let o=c0.connect(t,r),s,i=()=>{if(s)return;s=!0;let l=n,p=l.length,f=p;for(;f--;)if(l[f][0]===o){p===1?delete this.sessions[t]:l.splice(f,1),o.closed||o.close();return}},a=o.request,{sessionTimeout:c}=r;if(c!=null){let l,p=0;o.request=function(){let f=a.apply(this,arguments);return p++,l&&(clearTimeout(l),l=null),f.once("close",()=>{--p||(l=setTimeout(()=>{l=null,i()},c))}),f}}o.once("close",i);let u=[o,r];return n?n.push(u):n=this.sessions[t]=[u],o}},jj=new vf;qj=typeof process<"u"&&b.kindOf(process)==="process",Uj=e=>new Promise((t,r)=>{let n,o,s=(c,u)=>{o||(o=!0,n&&n(c,u))},i=c=>{s(c),t(c)},a=c=>{s(c,!0),r(c)};e(i,a,c=>n=c).catch(a)}),Bj=({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)}},a0=(e,t)=>Bj(b.isObject(e)?e:{address:e,family:t}),Gj={request(e,t){let r=e.protocol+"//"+e.hostname+":"+(e.port||(e.protocol==="https:"?443:80)),{http2Options:n,headers:o}=e,s=jj.getSession(r,n),{HTTP2_HEADER_SCHEME:i,HTTP2_HEADER_METHOD:a,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:u}=c0.constants,l={[i]:e.protocol.replace(":",""),[a]:e.method,[c]:e.path};b.forEach(o,(f,m)=>{m.charAt(0)!==":"&&(l[m]=f)});let p=s.request(l);return p.once("response",f=>{let m=p;f=Object.assign({},f);let h=f[u];delete f[u],m.headers=f,m.statusCode=+h,t(m)}),p}},d0=qj&&function(t){return Uj(async function(n,o,s){let i=U=>b.hasOwnProp(t,U)?t[U]:void 0,a=i("data"),c=i("lookup"),u=i("family"),l=i("httpVersion");l===void 0&&(l=1);let p=i("http2Options"),f=i("responseType"),m=i("responseEncoding"),h=t.method.toUpperCase(),g,w=!1,v,T;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 R=l===2;if(c){let U=z_(c,O=>b.isArray(O)?O:[O]);c=(O,Ie,tt)=>{U(O,Ie,(Oe,_t,Dt)=>{if(Oe)return tt(Oe);let Re=b.isArray(_t)?_t.map(Rn=>a0(Rn)):[a0(_t,Dt)];Ie.all?tt(Oe,Re):tt(Oe,Re[0].address,Re[0].family)})}}let P=new Cj;function I(U){try{P.emit("abort",!U||U.type?new Dr(null,t,v):U)}catch(O){console.warn("emit error",O)}}function j(){T&&(clearTimeout(T),T=null)}function F(){let U=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",O=t.transitional||fo;return t.timeoutErrorMessage&&(U=t.timeoutErrorMessage),new $(U,O.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,t,v)}P.once("abort",o);let ie=()=>{j(),t.cancelToken&&t.cancelToken.unsubscribe(I),t.signal&&t.signal.removeEventListener("abort",I),P.removeAllListeners()};(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(I),t.signal&&(t.signal.aborted?I():t.signal.addEventListener("abort",I))),s((U,O)=>{if(g=!0,j(),O){w=!0,ie();return}let{data:Ie}=U;if(Ie instanceof mn.Readable||Ie instanceof mn.Duplex){let tt=mn.finished(Ie,()=>{tt(),ie()})}else ie()});let de=Uo(t.baseURL,t.url,t.allowAbsoluteUrls),te=new URL(de,Be.hasBrowserEnv?Be.origin:void 0),$e=te.protocol||o0[0];if($e==="data:"){if(t.maxContentLength>-1){let O=String(t.url||de||"");if(pa(O)>t.maxContentLength)return o(new $("maxContentLength size of "+t.maxContentLength+" exceeded",$.ERR_BAD_RESPONSE,t))}let U;if(h!=="GET")return Pn(n,o,{status:405,statusText:"method not allowed",headers:{},config:t});try{U=lf(t.url,f==="blob",{Blob:t.env&&t.env.Blob})}catch(O){throw $.from(O,$.ERR_BAD_REQUEST,t)}return f==="text"?(U=U.toString(m),(!m||m==="utf8")&&(U=b.stripBOM(U))):f==="stream"&&(U=mn.Readable.from(U)),Pn(n,o,{data:U,status:200,statusText:"OK",headers:new at,config:t})}if(o0.indexOf($e)===-1)return o(new $("Unsupported protocol "+$e,$.ERR_BAD_REQUEST,t));let oe=at.from(t.headers).normalize();oe.set("User-Agent","axios/"+Wn,!1);let{onUploadProgress:Y,onDownloadProgress:re}=t,Rt=t.maxRate,Gt,Mt;if(b.isSpecCompliantForm(a)){let U=oe.getContentType(/boundary=([-_\w\d]{10,70})/i);a=q_(a,O=>{oe.set(O)},{tag:`axios-${Wn}-boundary`,boundary:U&&U[1]||void 0})}else if(b.isFormData(a)&&b.isFunction(a.getHeaders)&&a.getHeaders!==Object.prototype.getHeaders){if(Lj(oe,a.getHeaders(),i("formDataHeaderPolicy")),!oe.hasContentLength())try{let U=await l0.promisify(a.getLength).call(a);Number.isFinite(U)&&U>=0&&oe.setContentLength(U)}catch{}}else if(b.isBlob(a)||b.isFile(a))a.size&&oe.setContentType(a.type||"application/octet-stream"),oe.setContentLength(a.size||0),a=mn.Readable.from(Tl(a));else if(a&&!b.isStream(a)){if(!Buffer.isBuffer(a))if(b.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(b.isString(a))a=Buffer.from(a,"utf-8");else return o(new $("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",$.ERR_BAD_REQUEST,t));if(oe.setContentLength(a.length,!1),t.maxBodyLength>-1&&a.length>t.maxBodyLength)return o(new $("Request body larger than maxBodyLength limit",$.ERR_BAD_REQUEST,t))}let zt=b.toFiniteNumber(oe.getContentLength());b.isArray(Rt)?(Gt=Rt[0],Mt=Rt[1]):Gt=Mt=Rt,a&&(Y||Gt)&&(b.isStream(a)||(a=mn.Readable.from(a,{objectMode:!1})),a=mn.pipeline([a,new df({maxRate:b.toFiniteNumber(Gt)})],b.noop),Y&&a.on("progress",i0(a,Us(zt,Vn(Bs(Y),!1,3)))));let Ze,ft=i("auth");if(ft){let U=ft.username||"",O=ft.password||"";Ze=U+":"+O}if(!Ze&&te.username){let U=s0(te.username),O=s0(te.password);Ze=U+":"+O}Ze&&oe.delete("authorization");let Ht;try{Ht=Fo(te.pathname+te.search,t.params,t.paramsSerializer).replace(/^\?/,"")}catch(U){let O=new Error(U.message);return O.config=t,O.url=t.url,O.exists=!0,o(O)}oe.set("Accept-Encoding","gzip, compress, deflate"+(r0?", br":""),!1);let et=Object.assign(Object.create(null),{path:Ht,method:h,headers:oe.toJSON(),agents:{http:t.httpAgent,https:t.httpsAgent},auth:Ze,protocol:$e,family:u,beforeRedirect:Fj,beforeRedirects:Object.create(null),http2Options:p});if(!b.isUndefined(c)&&(et.lookup=c),t.socketPath){if(typeof t.socketPath!="string")return o(new $("socketPath must be a string",$.ERR_BAD_OPTION_VALUE,t));if(t.allowedSocketPaths!=null){let U=Array.isArray(t.allowedSocketPaths)?t.allowedSocketPaths:[t.allowedSocketPaths],O=e0(t.socketPath);if(!U.some(tt=>typeof tt=="string"&&e0(tt)===O))return o(new $(`socketPath "${t.socketPath}" is not permitted by allowedSocketPaths`,$.ERR_BAD_OPTION_VALUE,t))}et.socketPath=t.socketPath}else et.hostname=te.hostname.startsWith("[")?te.hostname.slice(1,-1):te.hostname,et.port=te.port,p0(et,t.proxy,$e+"//"+te.hostname+(te.port?":"+te.port:"")+et.path);let ae,Zt=!1,ye=Mj.test(et.protocol);if(et.agent=ye?t.httpsAgent:t.httpAgent,R)ae=Gj;else{let U=i("transport");if(U)ae=U;else if(t.maxRedirects===0)ae=ye?Aj:Ij,Zt=!0;else{t.maxRedirects&&(et.maxRedirects=t.maxRedirects);let O=i("beforeRedirect");O&&(et.beforeRedirects.config=O),ae=ye?Nj:Oj}}t.maxBodyLength>-1?et.maxBodyLength=t.maxBodyLength:et.maxBodyLength=1/0,et.insecureHTTPParser=!!i("insecureHTTPParser"),v=ae.request(et,function(O){if(j(),v.destroyed)return;let Ie=[O],tt=b.toFiniteNumber(O.headers["content-length"]);if(re||Mt){let Re=new df({maxRate:b.toFiniteNumber(Mt)});re&&Re.on("progress",i0(Re,Us(tt,Vn(Bs(re),!0,3)))),Ie.push(Re)}let Oe=O,_t=O.req||v;if(t.decompress!==!1&&O.headers["content-encoding"])switch((h==="HEAD"||O.statusCode===204)&&delete O.headers["content-encoding"],(O.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":Ie.push(ho.createUnzip(t0)),delete O.headers["content-encoding"];break;case"deflate":Ie.push(new B_),Ie.push(ho.createUnzip(t0)),delete O.headers["content-encoding"];break;case"br":r0&&(Ie.push(ho.createBrotliDecompress($j)),delete O.headers["content-encoding"])}Oe=Ie.length>1?mn.pipeline(Ie,b.noop):Ie[0];let Dt={status:O.statusCode,statusText:O.statusMessage,headers:new at(O.headers),config:t,request:_t};if(f==="stream"){if(t.maxContentLength>-1){let Re=t.maxContentLength,Rn=Oe;async function*sn(){let A=0;for await(let H of Rn){if(A+=H.length,A>Re)throw new $("maxContentLength size of "+Re+" exceeded",$.ERR_BAD_RESPONSE,t,_t);yield H}}Oe=mn.Readable.from(sn(),{objectMode:!1})}Dt.data=Oe,Pn(n,o,Dt)}else{let Re=[],Rn=0;Oe.on("data",function(A){Re.push(A),Rn+=A.length,t.maxContentLength>-1&&Rn>t.maxContentLength&&(w=!0,Oe.destroy(),I(new $("maxContentLength size of "+t.maxContentLength+" exceeded",$.ERR_BAD_RESPONSE,t,_t)))}),Oe.on("aborted",function(){if(w)return;let A=new $("stream has been aborted",$.ERR_BAD_RESPONSE,t,_t,Dt);Oe.destroy(A),o(A)}),Oe.on("error",function(A){w||o($.from(A,null,t,_t,Dt))}),Oe.on("end",function(){try{let A=Re.length===1?Re[0]:Buffer.concat(Re);f!=="arraybuffer"&&(A=A.toString(m),(!m||m==="utf8")&&(A=b.stripBOM(A))),Dt.data=A}catch(A){return o($.from(A,null,t,Dt.request,Dt))}Pn(n,o,Dt)})}P.once("abort",Re=>{Oe.destroyed||(Oe.emit("error",Re),Oe.destroy())})}),P.once("abort",U=>{v.close?v.close():v.destroy(U)}),v.on("error",function(O){o($.from(O,null,t,v))});let Br=new Set;if(v.on("socket",function(O){O.setKeepAlive(!0,1e3*60),O[n0]||(O.on("error",function(tt){let Oe=O[Rl];Oe&&!Oe.destroyed&&Oe.destroy(tt)}),O[n0]=!0),O[Rl]=v,Br.add(O)}),v.once("close",function(){j();for(let O of Br)O[Rl]===v&&(O[Rl]=null);Br.clear()}),t.timeout){let U=parseInt(t.timeout,10);if(Number.isNaN(U)){I(new $("error trying to parse `config.timeout` to int",$.ERR_BAD_OPTION_VALUE,t,v));return}let O=function(){g||I(F())};Zt&&U>0&&(T=setTimeout(O,U)),v.setTimeout(U,O)}else v.setTimeout(0);if(b.isStream(a)){let U=!1,O=!1;a.on("end",()=>{U=!0}),a.once("error",tt=>{O=!0,v.destroy(tt)}),a.on("close",()=>{!U&&!O&&I(new Dr("Request stream has been aborted",t,v))});let Ie=a;if(t.maxBodyLength>-1&&t.maxRedirects===0){let tt=t.maxBodyLength,Oe=0;Ie=mn.pipeline([a,new mn.Transform({transform(_t,Dt,Re){if(Oe+=_t.length,Oe>tt)return Re(new $("Request body larger than maxBodyLength limit",$.ERR_BAD_REQUEST,t,v));Re(null,_t)}})],b.noop),Ie.on("error",_t=>{v.destroyed||v.destroy(_t)})}Ie.pipe(v)}else a&&v.write(a),v.end()})}});var m0,h0=S(()=>{fn();m0=Be.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Be.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Be.origin),Be.navigator&&/(msie|trident)/i.test(Be.navigator.userAgent)):()=>!0});var g0,y0=S(()=>{rt();fn();g0=Be.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.split(";");for(let r=0;r<t.length;r++){let n=t[r].replace(/^\s+/,""),o=n.indexOf("=");if(o!==-1&&n.slice(0,o)===e)return decodeURIComponent(n.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}}});function hn(e,t){t=t||{};let r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(u,l,p,f){return b.isPlainObject(u)&&b.isPlainObject(l)?b.merge.call({caseless:f},u,l):b.isPlainObject(l)?b.merge({},l):b.isArray(l)?l.slice():l}function o(u,l,p,f){if(b.isUndefined(l)){if(!b.isUndefined(u))return n(void 0,u,p,f)}else return n(u,l,p,f)}function s(u,l){if(!b.isUndefined(l))return n(void 0,l)}function i(u,l){if(b.isUndefined(l)){if(!b.isUndefined(u))return n(void 0,u)}else return n(void 0,l)}function a(u,l,p){if(b.hasOwnProp(t,p))return n(u,l);if(b.hasOwnProp(e,p))return n(void 0,u)}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,allowedSocketPaths:i,responseEncoding:i,validateStatus:a,headers:(u,l,p)=>o(v0(u),v0(l),p,!0)};return b.forEach(Object.keys({...e,...t}),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;let p=b.hasOwnProp(c,l)?c[l]:o,f=b.hasOwnProp(e,l)?e[l]:void 0,m=b.hasOwnProp(t,l)?t[l]:void 0,h=p(f,m,l);b.isUndefined(h)&&p!==a||(r[l]=h)}),r}var v0,Pl=S(()=>{"use strict";rt();pn();v0=e=>e instanceof at?{...e}:e});function Hj(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach(([n,o])=>{zj.includes(n.toLowerCase())&&e.set(n,o)})}var zj,Wj,Il,wf=S(()=>{fn();rt();h0();y0();xl();Pl();pn();gl();zj=["content-type","content-length"];Wj=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),Il=e=>{let t=hn({},e),r=f=>b.hasOwnProp(t,f)?t[f]:void 0,n=r("data"),o=r("withXSRFToken"),s=r("xsrfHeaderName"),i=r("xsrfCookieName"),a=r("headers"),c=r("auth"),u=r("baseURL"),l=r("allowAbsoluteUrls"),p=r("url");if(t.headers=a=at.from(a),t.url=Fo(Uo(u,p,l),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?Wj(c.password):""))),b.isFormData(n)&&(Be.hasStandardBrowserEnv||Be.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):b.isFunction(n.getHeaders)&&Hj(a,n.getHeaders(),r("formDataHeaderPolicy"))),Be.hasStandardBrowserEnv&&(b.isFunction(o)&&(o=o(t)),o===!0||o==null&&m0(t.url))){let m=s&&i&&g0.read(i);m&&a.set(s,m)}return t}});var Vj,w0,x0=S(()=>{rt();wl();ta();Mr();qo();cf();fn();pn();kl();wf();Vj=typeof XMLHttpRequest<"u",w0=Vj&&function(e){return new Promise(function(r,n){let o=Il(e),s=o.data,i=at.from(o.headers).normalize(),{responseType:a,onUploadProgress:c,onDownloadProgress:u}=o,l,p,f,m,h;function g(){m&&m(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(l),o.signal&&o.signal.removeEventListener("abort",l)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function v(){if(!w)return;let R=at.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),I={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:R,config:e,request:w};Pn(function(F){r(F),g()},function(F){n(F),g()},I),w=null}"onloadend"in w?w.onloadend=v:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.startsWith("file:"))||setTimeout(v)},w.onabort=function(){w&&(n(new $("Request aborted",$.ECONNABORTED,e,w)),g(),w=null)},w.onerror=function(P){let I=P&&P.message?P.message:"Network Error",j=new $(I,$.ERR_NETWORK,e,w);j.event=P||null,n(j),g(),w=null},w.ontimeout=function(){let P=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded",I=o.transitional||fo;o.timeoutErrorMessage&&(P=o.timeoutErrorMessage),n(new $(P,I.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,w)),g(),w=null},s===void 0&&i.setContentType(null),"setRequestHeader"in w&&b.forEach(i.toJSON(),function(P,I){w.setRequestHeader(I,P)}),b.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),a&&a!=="json"&&(w.responseType=o.responseType),u&&([f,h]=Vn(u,!0),w.addEventListener("progress",f)),c&&w.upload&&([p,m]=Vn(c),w.upload.addEventListener("progress",p),w.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(l=R=>{w&&(n(!R||R.type?new Dr(null,e,w):R),w.abort(),g(),w=null)},o.cancelToken&&o.cancelToken.subscribe(l),o.signal&&(o.signal.aborted?l():o.signal.addEventListener("abort",l)));let T=la(o.url);if(T&&!Be.protocols.includes(T)){n(new $("Unsupported protocol "+T+":",$.ERR_BAD_REQUEST,e));return}w.send(s||null)})}});var Kj,b0,_0=S(()=>{qo();Mr();rt();Kj=(e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o,s=function(u){if(!o){o=!0,a();let l=u instanceof Error?u:this.reason;n.abort(l instanceof $?l:new Dr(l instanceof Error?l.message:l))}},i=t&&setTimeout(()=>{i=null,s(new $(`timeout of ${t}ms exceeded`,$.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));let{signal:c}=n;return c.unsubscribe=()=>b.asap(a),c}},b0=Kj});var Jj,Yj,Xj,xf,S0=S(()=>{Jj=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},Yj=async function*(e,t){for await(let r of Xj(e))yield*Jj(r,t)},Xj=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()}},xf=(e,t,r,n)=>{let o=Yj(e,t),s=0,i,a=c=>{i||(i=!0,n&&n(c))};return new ReadableStream({async pull(c){try{let{done:u,value:l}=await o.next();if(u){a(),c.close();return}let p=l.byteLength;if(r){let f=s+=p;r(f)}c.enqueue(new Uint8Array(l))}catch(u){throw a(u),u}},cancel(c){return a(c),o.return()}},{highWaterMark:2})}});var E0,Al,T0,Qj,Zj,bf,ioe,k0=S(()=>{fn();rt();Mr();_0();S0();pn();kl();wf();wl();yf();ca();E0=64*1024,{isFunction:Al}=b,T0=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Qj=e=>{let t=b.global??globalThis,{ReadableStream:r,TextEncoder:n}=t;e=b.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:o,Request:s,Response:i}=e,a=o?Al(o):typeof fetch=="function",c=Al(s),u=Al(i);if(!a)return!1;let l=a&&Al(r),p=a&&(typeof n=="function"?(v=>T=>v.encode(T))(new n):async v=>new Uint8Array(await new s(v).arrayBuffer())),f=c&&l&&T0(()=>{let v=!1,T=new s(Be.origin,{body:new r,method:"POST",get duplex(){return v=!0,"half"}}),R=T.headers.has("Content-Type");return T.body!=null&&T.body.cancel(),v&&!R}),m=u&&l&&T0(()=>b.isReadableStream(new i("").body)),h={stream:m&&(v=>v.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!h[v]&&(h[v]=(T,R)=>{let P=T&&T[v];if(P)return P.call(T);throw new $(`Response type '${v}' is not supported`,$.ERR_NOT_SUPPORT,R)})});let g=async v=>{if(v==null)return 0;if(b.isBlob(v))return v.size;if(b.isSpecCompliantForm(v))return(await new s(Be.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(b.isArrayBufferView(v)||b.isArrayBuffer(v))return v.byteLength;if(b.isURLSearchParams(v)&&(v=v+""),b.isString(v))return(await p(v)).byteLength},w=async(v,T)=>{let R=b.toFiniteNumber(v.getContentLength());return R??g(T)};return async v=>{let{url:T,method:R,data:P,signal:I,cancelToken:j,timeout:F,onDownloadProgress:ie,onUploadProgress:de,responseType:te,headers:$e,withCredentials:oe="same-origin",fetchOptions:Y,maxContentLength:re,maxBodyLength:Rt}=Il(v),Gt=b.isNumber(re)&&re>-1,Mt=b.isNumber(Rt)&&Rt>-1,zt=o||fetch;te=te?(te+"").toLowerCase():"text";let Ze=b0([I,j&&j.toAbortSignal()],F),ft=null,Ht=Ze&&Ze.unsubscribe&&(()=>{Ze.unsubscribe()}),et;try{if(Gt&&typeof T=="string"&&T.startsWith("data:")&&pa(T)>re)throw new $("maxContentLength size of "+re+" exceeded",$.ERR_BAD_RESPONSE,v,ft);if(Mt&&R!=="get"&&R!=="head"){let O=await w($e,P);if(typeof O=="number"&&isFinite(O)&&O>Rt)throw new $("Request body larger than maxBodyLength limit",$.ERR_BAD_REQUEST,v,ft)}if(de&&f&&R!=="get"&&R!=="head"&&(et=await w($e,P))!==0){let O=new s(T,{method:"POST",body:P,duplex:"half"}),Ie;if(b.isFormData(P)&&(Ie=O.headers.get("content-type"))&&$e.setContentType(Ie),O.body){let[tt,Oe]=Us(et,Vn(Bs(de)));P=xf(O.body,E0,tt,Oe)}}b.isString(oe)||(oe=oe?"include":"omit");let ae=c&&"credentials"in s.prototype;if(b.isFormData(P)){let O=$e.getContentType();O&&/^multipart\/form-data/i.test(O)&&!/boundary=/i.test(O)&&$e.delete("content-type")}$e.set("User-Agent","axios/"+Wn,!1);let Zt={...Y,signal:Ze,method:R.toUpperCase(),headers:$e.normalize().toJSON(),body:P,duplex:"half",credentials:ae?oe:void 0};ft=c&&new s(T,Zt);let ye=await(c?zt(ft,Y):zt(T,Zt));if(Gt){let O=b.toFiniteNumber(ye.headers.get("content-length"));if(O!=null&&O>re)throw new $("maxContentLength size of "+re+" exceeded",$.ERR_BAD_RESPONSE,v,ft)}let Br=m&&(te==="stream"||te==="response");if(m&&ye.body&&(ie||Gt||Br&&Ht)){let O={};["status","statusText","headers"].forEach(Re=>{O[Re]=ye[Re]});let Ie=b.toFiniteNumber(ye.headers.get("content-length")),[tt,Oe]=ie&&Us(Ie,Vn(Bs(ie),!0))||[],_t=0,Dt=Re=>{if(Gt&&(_t=Re,_t>re))throw new $("maxContentLength size of "+re+" exceeded",$.ERR_BAD_RESPONSE,v,ft);tt&&tt(Re)};ye=new i(xf(ye.body,E0,Dt,()=>{Oe&&Oe(),Ht&&Ht()}),O)}te=te||"text";let U=await h[b.findKey(h,te)||"text"](ye,v);if(Gt&&!m&&!Br){let O;if(U!=null&&(typeof U.byteLength=="number"?O=U.byteLength:typeof U.size=="number"?O=U.size:typeof U=="string"&&(O=typeof n=="function"?new n().encode(U).byteLength:U.length)),typeof O=="number"&&O>re)throw new $("maxContentLength size of "+re+" exceeded",$.ERR_BAD_RESPONSE,v,ft)}return!Br&&Ht&&Ht(),await new Promise((O,Ie)=>{Pn(O,Ie,{data:U,headers:at.from(ye.headers),status:ye.status,statusText:ye.statusText,config:v,request:ft})})}catch(ae){if(Ht&&Ht(),Ze&&Ze.aborted&&Ze.reason instanceof $){let Zt=Ze.reason;throw Zt.config=v,ft&&(Zt.request=ft),ae!==Zt&&(Zt.cause=ae),Zt}throw ae&&ae.name==="TypeError"&&/Load failed|fetch/i.test(ae.message)?Object.assign(new $("Network Error",$.ERR_NETWORK,v,ft,ae&&ae.response),{cause:ae.cause||ae}):$.from(ae,ae&&ae.code,v,ft,ae&&ae.response)}}},Zj=new Map,bf=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:o}=t,s=[n,o,r],i=s.length,a=i,c,u,l=Zj;for(;a--;)c=s[a],u=l.get(c),u===void 0&&l.set(c,u=a?new Map:Qj(t)),l=u;return u},ioe=bf()});function rF(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,!tF(n)&&(o=_f[(a=String(n)).toLowerCase()],o===void 0))throw new $(`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,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build")),a=r?i.length>1?`since :
10
- `+i.map(R0).join(`
11
- `):" "+R0(i[0]):"as no adapter specified";throw new $("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}var _f,R0,tF,Cl,Sf=S(()=>{rt();f0();x0();k0();Mr();_f={http:d0,xhr:w0,fetch:{get:bf}};b.forEach(_f,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});R0=e=>`- ${e}`,tF=e=>b.isFunction(e)||e===null||e===!1;Cl={getAdapter:rF,adapters:_f}});function Ef(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Dr(null,e)}function $l(e){return Ef(e),e.headers=at.from(e.headers),e.data=ra.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cl.getAdapter(e.adapter||Ls.adapter,e)(e).then(function(n){Ef(e),e.response=n;try{n.data=ra.call(e,e.transformResponse,n)}finally{delete e.response}return n.headers=at.from(n.headers),n},function(n){if(!na(n)&&(Ef(e),n&&n.response)){e.response=n.response;try{n.response.data=ra.call(e,e.transformResponse,n.response)}finally{delete e.response}n.response.headers=at.from(n.response.headers)}return Promise.reject(n)})}var P0=S(()=>{"use strict";m_();Fd();vl();qo();pn();Sf()});function nF(e,t,r){if(typeof e!="object")throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let s=n[o],i=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(i){let a=e[s],c=a===void 0||i(a,s,e);if(c!==!0)throw new $("option "+s+" must be "+c,$.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new $("Unknown option "+s,$.ERR_BAD_OPTION)}}var Ol,I0,da,A0=S(()=>{"use strict";ca();Mr();Ol={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ol[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});I0={};Ol.transitional=function(t,r,n){function o(s,i){return"[Axios v"+Wn+"] Transitional option '"+s+"'"+i+(n?". "+n:"")}return(s,i,a)=>{if(t===!1)throw new $(o(i," has been removed"+(r?" in "+r:"")),$.ERR_DEPRECATED);return r&&!I0[i]&&(I0[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}};Ol.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};da={assertOptions:nF,validators:Ol}});var Wr,Gs,fa,C0=S(()=>{"use strict";rt();gl();s_();P0();Pl();xl();A0();pn();ta();Wr=da.validators,Gs=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=hn(this.defaults,r);let{transitional:n,paramsSerializer:o,headers:s}=r;n!==void 0&&da.assertOptions(n,{silentJSONParsing:Wr.transitional(Wr.boolean),forcedJSONParsing:Wr.transitional(Wr.boolean),clarifyTimeoutError:Wr.transitional(Wr.boolean),legacyInterceptorReqResOrdering:Wr.transitional(Wr.boolean)},!1),o!=null&&(b.isFunction(o)?r.paramsSerializer={serialize:o}:da.assertOptions(o,{encode:Wr.function,serialize:Wr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),da.assertOptions(r,{baseUrl:Wr.spelling("baseURL"),withXsrfToken:Wr.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","query","common"],h=>{delete s[h]}),r.headers=at.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 w=r.transitional||fo;w&&w.legacyInterceptorReqResOrdering?a.unshift(g.fulfilled,g.rejected):a.push(g.fulfilled,g.rejected)});let u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let l,p=0,f;if(!c){let h=[$l.bind(this),void 0];for(h.unshift(...a),h.push(...u),f=h.length,l=Promise.resolve(r);p<f;)l=l.then(h[p++],h[p++]);return l}f=a.length;let m=r;for(;p<f;){let h=a[p++],g=a[p++];try{m=h(m)}catch(w){g.call(this,w);break}}try{l=$l.call(this,m)}catch(h){return Promise.reject(h)}for(p=0,f=u.length;p<f;)l=l.then(u[p++],u[p++]);return l}getUri(t){t=hn(this.defaults,t);let r=Uo(t.baseURL,t.url,t.allowAbsoluteUrls);return Fo(r,t.params,t.paramsSerializer)}};b.forEach(["delete","get","head","options"],function(t){Gs.prototype[t]=function(r,n){return this.request(hn(n||{},{method:t,url:r,data:(n||{}).data}))}});b.forEach(["post","put","patch","query"],function(t){function r(n){return function(s,i,a){return this.request(hn(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Gs.prototype[t]=r(),t!=="query"&&(Gs.prototype[t+"Form"]=r(!0))});fa=Gs});var Tf,$0,O0=S(()=>{"use strict";qo();Tf=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 Dr(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}}},$0=Tf});function kf(e){return function(r){return e.apply(null,r)}}var N0=S(()=>{"use strict"});function Rf(e){return b.isObject(e)&&e.isAxiosError===!0}var M0=S(()=>{"use strict";rt()});var Pf,D0,L0=S(()=>{Pf={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(Pf).forEach(([e,t])=>{Pf[t]=e});D0=Pf});function j0(e){let t=new fa(e),r=Hi(fa.prototype.request,t);return b.extend(r,fa.prototype,t,{allOwnKeys:!0}),b.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return j0(hn(e,o))},r}var Ct,gt,F0=S(()=>{"use strict";rt();od();C0();Pl();vl();Ld();qo();O0();Fd();ca();ea();Mr();N0();M0();pn();Sf();L0();Ct=j0(Ls);Ct.Axios=fa;Ct.CanceledError=Dr;Ct.CancelToken=$0;Ct.isCancel=na;Ct.VERSION=Wn;Ct.toFormData=po;Ct.AxiosError=$;Ct.Cancel=Ct.CanceledError;Ct.all=function(t){return Promise.all(t)};Ct.spread=kf;Ct.isAxiosError=Rf;Ct.mergeConfig=hn;Ct.AxiosHeaders=at;Ct.formToJSON=e=>yl(b.isHTMLForm(e)?new FormData(e):e);Ct.getAdapter=Cl.getAdapter;Ct.HttpStatusCode=D0;Ct.default=Ct;gt=Ct});var nse,ose,sse,ise,ase,cse,lse,use,pse,dse,fse,mse,hse,gse,yse,vse,wse,In=S(()=>{F0();({Axios:nse,AxiosError:ose,CanceledError:sse,isCancel:ise,CancelToken:ase,VERSION:cse,all:lse,Cancel:use,isAxiosError:pse,spread:dse,toFormData:fse,AxiosHeaders:mse,HttpStatusCode:hse,formToJSON:gse,getAdapter:yse,mergeConfig:vse,create:wse}=gt)});function B0(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<=U0}return!1}function If(e,t){return q0.has(e)?!1:(e&&B0(e)?t.push(Number.parseInt(e,10)):t.push(e),!0)}function sF(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(!If(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")&&!If(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<=U0&&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"&&!oF(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(!If(r,t))return[];break}case"index":throw new Error("Index was not closed");case"start":{t.push("");break}}return t}function Nl(e){if(typeof e=="string")return sF(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(q0.has(n))return[];typeof n=="string"&&B0(n)?t.push(Number.parseInt(n,10)):t.push(n)}return t}return[]}function Af(e,t,r){if(!Wo(e)||typeof t!="string"&&!Array.isArray(t))return r===void 0?e:r;let n=Nl(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 ma(e,t,r){if(!Wo(e)||typeof t!="string"&&!Array.isArray(t))return e;let n=e,o=Nl(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(!Wo(e[i])){let c=typeof o[s+1]=="number";e[i]=c?[]:{}}e=e[i]}return n}function G0(e,t){if(!Wo(e)||typeof t!="string"&&!Array.isArray(t))return!1;let r=Nl(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],!Wo(e))return!1}}function Ml(e,t){if(!Wo(e)||typeof t!="string"&&!Array.isArray(t))return!1;let r=Nl(t);if(r.length===0)return!1;for(let n of r){if(!Wo(e)||!(n in e))return!1;e=e[n]}return!0}var Wo,q0,U0,oF,z0=S(()=>{Wo=e=>{let t=typeof e;return e!==null&&(t==="object"||t==="function")},q0=new Set(["__proto__","prototype","constructor"]),U0=1e6,oF=e=>e>="0"&&e<="9"});import xt from"node:path";import H0 from"node:os";import Cf from"node:process";function Of(e,{suffix:t="nodejs"}={}){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return t&&(e+=`-${t}`),Cf.platform==="darwin"?iF(e):Cf.platform==="win32"?aF(e):cF(e)}var go,$f,zs,iF,aF,cF,W0=S(()=>{go=H0.homedir(),$f=H0.tmpdir(),{env:zs}=Cf,iF=e=>{let t=xt.join(go,"Library");return{data:xt.join(t,"Application Support",e),config:xt.join(t,"Preferences",e),cache:xt.join(t,"Caches",e),log:xt.join(t,"Logs",e),temp:xt.join($f,e)}},aF=e=>{let t=zs.APPDATA||xt.join(go,"AppData","Roaming"),r=zs.LOCALAPPDATA||xt.join(go,"AppData","Local");return{data:xt.join(r,e,"Data"),config:xt.join(t,e,"Config"),cache:xt.join(r,e,"Cache"),log:xt.join(r,e,"Log"),temp:xt.join($f,e)}},cF=e=>{let t=xt.basename(go);return{data:xt.join(zs.XDG_DATA_HOME||xt.join(go,".local","share"),e),config:xt.join(zs.XDG_CONFIG_HOME||xt.join(go,".config"),e),cache:xt.join(zs.XDG_CACHE_HOME||xt.join(go,".cache"),e),log:xt.join(zs.XDG_STATE_HOME||xt.join(go,".local","state"),e),temp:xt.join($f,t,e)}}});var lF,An,V0=S(()=>{lF=(e,t)=>{let{onError:r}=t;return function(...o){return e.apply(void 0,o).catch(r)}},An=lF});var uF,gn,K0=S(()=>{uF=(e,t)=>{let{onError:r}=t;return function(...o){try{return e.apply(void 0,o)}catch(s){return r(s)}}},gn=uF});var J0=S(()=>{});var dF,Cn,Y0=S(()=>{J0();dF=(e,t)=>{let{isRetriable:r}=t;return function(o){let{timeout:s}=o,i=o.interval??250,a=Date.now()+s;return function c(...u){return e.apply(void 0,u).catch(l=>{if(!r(l)||Date.now()>=a)throw l;let p=Math.round(i*Math.random());return p>0?new Promise(m=>setTimeout(m,p)).then(()=>c.apply(void 0,u)):c.apply(void 0,u)})}}},Cn=dF});var fF,$n,X0=S(()=>{fF=(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(u){if(!r(u)||Date.now()>=i)throw u;continue}}}},$n=fF});var Nf=S(()=>{V0();K0();Y0();X0()});var ha,Mf,Q0=S(()=>{Df();ha={isChangeErrorOk:e=>{if(!ha.isNodeError(e))return!1;let{code:t}=e;return t==="ENOSYS"||!Z0&&(t==="EINVAL"||t==="EPERM")},isNodeError:e=>e instanceof Error,isRetriableError:e=>{if(!ha.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(!ha.isNodeError(e))throw e;if(!ha.isChangeErrorOk(e))throw e}},Mf=ha});import eS from"node:process";var ga,_r,Z0,Vt,Df=S(()=>{Q0();ga={onError:Mf.onChangeError},_r={onError:()=>{}},Z0=eS.getuid?!eS.getuid():!1,Vt={isRetriable:Mf.isRetriableError}});import Fe from"node:fs";import{promisify as er}from"node:util";var mF,qt,Lf=S(()=>{Nf();Nf();Df();mF={attempt:{chmod:An(er(Fe.chmod),ga),chown:An(er(Fe.chown),ga),close:An(er(Fe.close),_r),fsync:An(er(Fe.fsync),_r),mkdir:An(er(Fe.mkdir),_r),realpath:An(er(Fe.realpath),_r),stat:An(er(Fe.stat),_r),unlink:An(er(Fe.unlink),_r),chmodSync:gn(Fe.chmodSync,ga),chownSync:gn(Fe.chownSync,ga),closeSync:gn(Fe.closeSync,_r),existsSync:gn(Fe.existsSync,_r),fsyncSync:gn(Fe.fsync,_r),mkdirSync:gn(Fe.mkdirSync,_r),realpathSync:gn(Fe.realpathSync,_r),statSync:gn(Fe.statSync,_r),unlinkSync:gn(Fe.unlinkSync,_r)},retry:{close:Cn(er(Fe.close),Vt),fsync:Cn(er(Fe.fsync),Vt),open:Cn(er(Fe.open),Vt),readFile:Cn(er(Fe.readFile),Vt),rename:Cn(er(Fe.rename),Vt),stat:Cn(er(Fe.stat),Vt),write:Cn(er(Fe.write),Vt),writeFile:Cn(er(Fe.writeFile),Vt),closeSync:$n(Fe.closeSync,Vt),fsyncSync:$n(Fe.fsyncSync,Vt),openSync:$n(Fe.openSync,Vt),readFileSync:$n(Fe.readFileSync,Vt),renameSync:$n(Fe.renameSync,Vt),statSync:$n(Fe.statSync,Vt),writeSync:$n(Fe.writeSync,Vt),writeFileSync:$n(Fe.writeFileSync,Vt)}},qt=mF});import Vo from"node:process";var tS,jf,rS,nS,oS,sS,iS,aS,Jse,Ff,qf=S(()=>{tS="utf8",jf=438,rS=511,nS={},oS=Vo.geteuid?Vo.geteuid():-1,sS=Vo.getegid?Vo.getegid():-1,iS=1e3,aS=!!Vo.getuid,Jse=Vo.getuid?!Vo.getuid():!1,Ff=128});var cS,Uf,Dl,lS=S(()=>{cS=e=>e instanceof Error&&"code"in e,Uf=e=>typeof e=="string",Dl=e=>e===void 0});var uS=S(()=>{});import pS from"node:process";var dS,Ll,Bf=S(()=>{dS=pS.platform==="linux",Ll=pS.platform==="win32"});var Gf,fS,mS=S(()=>{Bf();Gf=["SIGHUP","SIGINT","SIGTERM"];Ll||Gf.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");dS&&Gf.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");fS=Gf});import Hs from"node:process";var zf,hS,gS=S(()=>{Bf();mS();zf=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&&(Ll&&t!=="SIGINT"&&t!=="SIGTERM"&&t!=="SIGKILL"?Hs.kill(Hs.pid,"SIGTERM"):Hs.kill(Hs.pid,t))}},this.hook=()=>{Hs.once("exit",()=>this.exit());for(let t of fS)try{Hs.once(t,()=>this.exit(t))}catch{}},this.register=t=>(this.callbacks.add(t),()=>{this.callbacks.delete(t)}),this.hook()}},hS=new zf});var hF,yS,vS=S(()=>{gS();hF=hS.register,yS=hF});import gF from"node:path";var Lr,ya,wS=S(()=>{Lf();vS();qf();Lr={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=Lr.truncate(t(e));return n in Lr.store?Lr.get(e,t,r):(Lr.store[n]=r,[n,()=>delete Lr.store[n]])},purge:e=>{Lr.store[e]&&(delete Lr.store[e],qt.attempt.unlink(e))},purgeSync:e=>{Lr.store[e]&&(delete Lr.store[e],qt.attempt.unlinkSync(e))},purgeSyncAll:()=>{for(let e in Lr.store)Lr.purgeSync(e)},truncate:e=>{let t=gF.basename(e);if(t.length<=Ff)return e;let r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(t);if(!r)return e;let n=t.length-Ff;return`${e.slice(0,-t.length)}${r[1]}${r[2].slice(0,-n)}${r[3]}`}};yS(Lr.purgeSyncAll);ya=Lr});import yF from"node:path";function Hf(e,t,r=nS){if(Uf(r))return Hf(e,t,{encoding:r});let o={timeout:r.timeout??iS},s=null,i=null,a=null;try{let c=qt.attempt.realpathSync(e),u=!!c;e=c||e,[i,s]=ya.get(e,r.tmpCreate||ya.create,r.tmpPurge!==!1);let l=aS&&Dl(r.chown),p=Dl(r.mode);if(u&&(l||p)){let f=qt.attempt.statSync(e);f&&(r={...r},l&&(r.chown={uid:f.uid,gid:f.gid}),p&&(r.mode=f.mode))}if(!u){let f=yF.dirname(e);qt.attempt.mkdirSync(f,{mode:rS,recursive:!0})}a=qt.retry.openSync(o)(i,"w",r.mode||jf),r.tmpCreated&&r.tmpCreated(i),Uf(t)?qt.retry.writeSync(o)(a,t,0,r.encoding||tS):Dl(t)||qt.retry.writeSync(o)(a,t,0,t.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?qt.retry.fsyncSync(o)(a):qt.attempt.fsync(a)),qt.retry.closeSync(o)(a),a=null,r.chown&&(r.chown.uid!==oS||r.chown.gid!==sS)&&qt.attempt.chownSync(i,r.chown.uid,r.chown.gid),r.mode&&r.mode!==jf&&qt.attempt.chmodSync(i,r.mode);try{qt.retry.renameSync(o)(i,e)}catch(f){if(!cS(f)||f.code!=="ENAMETOOLONG")throw f;qt.retry.renameSync(o)(i,ya.truncate(e))}s(),i=null}finally{a&&qt.attempt.closeSync(a),i&&ya.purge(i)}}var xS=S(()=>{Lf();qf();lS();uS();wS()});var xa=x(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.regexpCode=qe.getEsmExportName=qe.getProperty=qe.safeStringify=qe.stringify=qe.strConcat=qe.addCodeArg=qe.str=qe._=qe.nil=qe._Code=qe.Name=qe.IDENTIFIER=qe._CodeOrName=void 0;var va=class{};qe._CodeOrName=va;qe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ko=class extends va{constructor(t){if(super(),!qe.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}}};qe.Name=Ko;var Vr=class extends va{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 Ko&&(r[n.str]=(r[n.str]||0)+1),r),{})}};qe._Code=Vr;qe.nil=new Vr("");function bS(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Vf(r,t[n]),r.push(e[++n]);return new Vr(r)}qe._=bS;var Wf=new Vr("+");function _S(e,...t){let r=[wa(e[0])],n=0;for(;n<t.length;)r.push(Wf),Vf(r,t[n]),r.push(Wf,wa(e[++n]));return vF(r),new Vr(r)}qe.str=_S;function Vf(e,t){t instanceof Vr?e.push(...t._items):t instanceof Ko?e.push(t):e.push(bF(t))}qe.addCodeArg=Vf;function vF(e){let t=1;for(;t<e.length-1;){if(e[t]===Wf){let r=wF(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function wF(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Ko||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 Ko))return`"${e}${t.slice(1)}`}function xF(e,t){return t.emptyStr()?e:e.emptyStr()?t:_S`${e}${t}`}qe.strConcat=xF;function bF(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:wa(Array.isArray(e)?e.join(","):e)}function _F(e){return new Vr(wa(e))}qe.stringify=_F;function wa(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}qe.safeStringify=wa;function SF(e){return typeof e=="string"&&qe.IDENTIFIER.test(e)?new Vr(`.${e}`):bS`[${e}]`}qe.getProperty=SF;function EF(e){if(typeof e=="string"&&qe.IDENTIFIER.test(e))return new Vr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}qe.getEsmExportName=EF;function TF(e){return new Vr(e.toString())}qe.regexpCode=TF});var Yf=x(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.ValueScope=Er.ValueScopeName=Er.Scope=Er.varKinds=Er.UsedValueState=void 0;var Sr=xa(),Kf=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},jl;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(jl||(Er.UsedValueState=jl={}));Er.varKinds={const:new Sr.Name("const"),let:new Sr.Name("let"),var:new Sr.Name("var")};var Fl=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Sr.Name?t:this.name(t)}name(t){return new Sr.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}}};Er.Scope=Fl;var ql=class extends Sr.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Sr._)`.${new Sr.Name(r)}[${n}]`}};Er.ValueScopeName=ql;var kF=(0,Sr._)`\n`,Jf=class extends Fl{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?kF:Sr.nil}}get(){return this._scope}name(t){return new ql(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 l=a.get(i);if(l)return l}else a=this._values[s]=new Map;a.set(i,o);let c=this._scope[s]||(this._scope[s]=[]),u=c.length;return c[u]=r.ref,o.setValue(r,{property:s,itemIndex:u}),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,Sr._)`${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=Sr.nil;for(let i in t){let a=t[i];if(!a)continue;let c=n[i]=n[i]||new Map;a.forEach(u=>{if(c.has(u))return;c.set(u,jl.Started);let l=r(u);if(l){let p=this.opts.es5?Er.varKinds.var:Er.varKinds.const;s=(0,Sr._)`${s}${p} ${u} = ${l};${this.opts._n}`}else if(l=o?.(u))s=(0,Sr._)`${s}${l}${this.opts._n}`;else throw new Kf(u);c.set(u,jl.Completed)})}return s}};Er.ValueScope=Jf});var ve=x(_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=xa(),yn=Yf(),yo=xa();Object.defineProperty(_e,"_",{enumerable:!0,get:function(){return yo._}});Object.defineProperty(_e,"str",{enumerable:!0,get:function(){return yo.str}});Object.defineProperty(_e,"strConcat",{enumerable:!0,get:function(){return yo.strConcat}});Object.defineProperty(_e,"nil",{enumerable:!0,get:function(){return yo.nil}});Object.defineProperty(_e,"getProperty",{enumerable:!0,get:function(){return yo.getProperty}});Object.defineProperty(_e,"stringify",{enumerable:!0,get:function(){return yo.stringify}});Object.defineProperty(_e,"regexpCode",{enumerable:!0,get:function(){return yo.regexpCode}});Object.defineProperty(_e,"Name",{enumerable:!0,get:function(){return yo.Name}});var zl=Yf();Object.defineProperty(_e,"Scope",{enumerable:!0,get:function(){return zl.Scope}});Object.defineProperty(_e,"ValueScope",{enumerable:!0,get:function(){return zl.ValueScope}});Object.defineProperty(_e,"ValueScopeName",{enumerable:!0,get:function(){return zl.ValueScopeName}});Object.defineProperty(_e,"varKinds",{enumerable:!0,get:function(){return zl.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 Kn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Xf=class extends Kn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?yn.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=Vs(this.rhs,t,r)),this}get names(){return this.rhs instanceof Ae._CodeOrName?this.rhs.names:{}}},Ul=class extends Kn{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=Vs(this.rhs,t,r),this}get names(){let t=this.lhs instanceof Ae.Name?{}:{...this.lhs.names};return Gl(t,this.rhs)}},Qf=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}},Zf=class extends Kn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},em=class extends Kn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},tm=class extends Kn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},rm=class extends Kn{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=Vs(this.code,t,r),this}get names(){return this.code instanceof Ae._CodeOrName?this.code.names:{}}},ba=class extends Kn{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)||(RF(t,s.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Xo(t,r.names),{})}},Jn=class extends ba{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},nm=class extends ba{},Ws=class extends Jn{};Ws.kind="else";var Jo=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 Ws(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(SS(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=Vs(this.condition,t,r),this}get names(){let t=super.names;return Gl(t,this.condition),this.else&&Xo(t,this.else.names),t}};Jo.kind="if";var Yo=class extends Jn{};Yo.kind="for";var om=class extends Yo{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=Vs(this.iteration,t,r),this}get names(){return Xo(super.names,this.iteration.names)}},sm=class extends Yo{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?yn.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=Gl(super.names,this.from);return Gl(t,this.to)}},Bl=class extends Yo{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=Vs(this.iterable,t,r),this}get names(){return Xo(super.names,this.iterable.names)}},_a=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)}};_a.kind="func";var Sa=class extends ba{render(t){return"return "+super.render(t)}};Sa.kind="return";var im=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&&Xo(t,this.catch.names),this.finally&&Xo(t,this.finally.names),t}},Ea=class extends Jn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Ea.kind="catch";var Ta=class extends Jn{render(t){return"finally"+super.render(t)}};Ta.kind="finally";var am=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
16
- `:""},this._extScope=t,this._scope=new yn.Scope({parent:t}),this._nodes=[new nm]}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 Xf(t,s,n)),s}const(t,r,n){return this._def(yn.varKinds.const,t,r,n)}let(t,r,n){return this._def(yn.varKinds.let,t,r,n)}var(t,r,n){return this._def(yn.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Ul(t,r,n))}add(t,r){return this._leafNode(new Qf(t,_e.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==Ae.nil&&this._leafNode(new rm(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 Jo(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 Jo(t))}else(){return this._elseNode(new Ws)}endIf(){return this._endBlockNode(Jo,Ws)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new om(t),r)}forRange(t,r,n,o,s=this.opts.es5?yn.varKinds.var:yn.varKinds.let){let i=this._scope.toName(t);return this._for(new sm(s,i,r,n),()=>o(i))}forOf(t,r,n,o=yn.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 Bl("of",o,s,r),()=>n(s))}forIn(t,r,n,o=this.opts.es5?yn.varKinds.var:yn.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 Bl("in",o,s,r),()=>n(s))}endFor(){return this._endBlockNode(Yo)}label(t){return this._leafNode(new Zf(t))}break(t){return this._leafNode(new em(t))}return(t){let r=new Sa;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Sa)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new im;if(this._blockNode(o),this.code(t),r){let s=this.name("e");this._currNode=o.catch=new Ea(s),r(s)}return n&&(this._currNode=o.finally=new Ta,this.code(n)),this._endBlockNode(Ea,Ta)}throw(t){return this._leafNode(new tm(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 _a(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(_a)}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 Jo))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=am;function Xo(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Gl(e,t){return t instanceof Ae._CodeOrName?Xo(e,t.names):e}function Vs(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 RF(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function SS(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Ae._)`!${cm(e)}`}_e.not=SS;var PF=ES(_e.operators.AND);function IF(...e){return e.reduce(PF)}_e.and=IF;var AF=ES(_e.operators.OR);function CF(...e){return e.reduce(AF)}_e.or=CF;function ES(e){return(t,r)=>t===Ae.nil?r:r===Ae.nil?t:(0,Ae._)`${cm(t)} ${e} ${cm(r)}`}function cm(e){return e instanceof Ae.Name?e:(0,Ae._)`(${e})`}});var Te=x(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 Ye=ve(),$F=xa();function OF(e){let t={};for(let r of e)t[r]=!0;return t}Ee.toHash=OF;function NF(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(RS(e,t),!PS(t,e.self.RULES.all))}Ee.alwaysValidSchema=NF;function RS(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]||CS(e,`unknown keyword: "${s}"`)}Ee.checkUnknownRules=RS;function PS(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}Ee.schemaHasRules=PS;function MF(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=MF;function DF({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Ye._)`${r}`}return(0,Ye._)`${e}${t}${(0,Ye.getProperty)(n)}`}Ee.schemaRefOrVal=DF;function LF(e){return IS(decodeURIComponent(e))}Ee.unescapeFragment=LF;function jF(e){return encodeURIComponent(um(e))}Ee.escapeFragment=jF;function um(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}Ee.escapeJsonPointer=um;function IS(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}Ee.unescapeJsonPointer=IS;function FF(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}Ee.eachItem=FF;function TS({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,s,i,a)=>{let c=i===void 0?s:i instanceof Ye.Name?(s instanceof Ye.Name?e(o,s,i):t(o,s,i),i):s instanceof Ye.Name?(t(o,i,s),s):r(s,i);return a===Ye.Name&&!(c instanceof Ye.Name)?n(o,c):c}}Ee.mergeEvaluated={props:TS({mergeNames:(e,t,r)=>e.if((0,Ye._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Ye._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Ye._)`${r} || {}`).code((0,Ye._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Ye._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Ye._)`${r} || {}`),pm(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:AS}),items:TS({mergeNames:(e,t,r)=>e.if((0,Ye._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Ye._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Ye._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Ye._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function AS(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Ye._)`{}`);return t!==void 0&&pm(e,r,t),r}Ee.evaluatedPropsToName=AS;function pm(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Ye._)`${t}${(0,Ye.getProperty)(n)}`,!0))}Ee.setEvaluated=pm;var kS={};function qF(e,t){return e.scopeValue("func",{ref:t,code:kS[t.code]||(kS[t.code]=new $F._Code(t.code))})}Ee.useFunc=qF;var lm;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(lm||(Ee.Type=lm={}));function UF(e,t,r){if(e instanceof Ye.Name){let n=t===lm.Num;return r?n?(0,Ye._)`"[" + ${e} + "]"`:(0,Ye._)`"['" + ${e} + "']"`:n?(0,Ye._)`"/" + ${e}`:(0,Ye._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Ye.getProperty)(e).toString():"/"+um(e)}Ee.getErrorPath=UF;function CS(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=CS});var Kr=x(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});var tr=ve(),BF={data:new tr.Name("data"),valCxt:new tr.Name("valCxt"),instancePath:new tr.Name("instancePath"),parentData:new tr.Name("parentData"),parentDataProperty:new tr.Name("parentDataProperty"),rootData:new tr.Name("rootData"),dynamicAnchors:new tr.Name("dynamicAnchors"),vErrors:new tr.Name("vErrors"),errors:new tr.Name("errors"),this:new tr.Name("this"),self:new tr.Name("self"),scope:new tr.Name("scope"),json:new tr.Name("json"),jsonPos:new tr.Name("jsonPos"),jsonLen:new tr.Name("jsonLen"),jsonPart:new tr.Name("jsonPart")};dm.default=BF});var ka=x(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.extendErrors=rr.resetErrorsCount=rr.reportExtraError=rr.reportError=rr.keyword$DataError=rr.keywordError=void 0;var De=ve(),Hl=Te(),ur=Kr();rr.keywordError={message:({keyword:e})=>(0,De.str)`must pass "${e}" keyword validation`};rr.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,De.str)`"${e}" keyword must be ${t} ($data)`:(0,De.str)`"${e}" keyword is invalid ($data)`};function GF(e,t=rr.keywordError,r,n){let{it:o}=e,{gen:s,compositeRule:i,allErrors:a}=o,c=NS(e,t,r);n??(i||a)?$S(s,c):OS(o,(0,De._)`[${c}]`)}rr.reportError=GF;function zF(e,t=rr.keywordError,r){let{it:n}=e,{gen:o,compositeRule:s,allErrors:i}=n,a=NS(e,t,r);$S(o,a),s||i||OS(n,ur.default.vErrors)}rr.reportExtraError=zF;function HF(e,t){e.assign(ur.default.errors,t),e.if((0,De._)`${ur.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,De._)`${ur.default.vErrors}.length`,t),()=>e.assign(ur.default.vErrors,null)))}rr.resetErrorsCount=HF;function WF({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,ur.default.errors,a=>{e.const(i,(0,De._)`${ur.default.vErrors}[${a}]`),e.if((0,De._)`${i}.instancePath === undefined`,()=>e.assign((0,De._)`${i}.instancePath`,(0,De.strConcat)(ur.default.instancePath,s.errorPath))),e.assign((0,De._)`${i}.schemaPath`,(0,De.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,De._)`${i}.schema`,r),e.assign((0,De._)`${i}.data`,n))})}rr.extendErrors=WF;function $S(e,t){let r=e.const("err",t);e.if((0,De._)`${ur.default.vErrors} === null`,()=>e.assign(ur.default.vErrors,(0,De._)`[${r}]`),(0,De._)`${ur.default.vErrors}.push(${r})`),e.code((0,De._)`${ur.default.errors}++`)}function OS(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,De._)`new ${e.ValidationError}(${t})`):(r.assign((0,De._)`${n}.errors`,t),r.return(!1))}var Qo={keyword:new De.Name("keyword"),schemaPath:new De.Name("schemaPath"),params:new De.Name("params"),propertyName:new De.Name("propertyName"),message:new De.Name("message"),schema:new De.Name("schema"),parentSchema:new De.Name("parentSchema")};function NS(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,De._)`{}`:VF(e,t,r)}function VF(e,t,r={}){let{gen:n,it:o}=e,s=[KF(o,r),JF(e,r)];return YF(e,t,s),n.object(...s)}function KF({errorPath:e},{instancePath:t}){let r=t?(0,De.str)`${e}${(0,Hl.getErrorPath)(t,Hl.Type.Str)}`:e;return[ur.default.instancePath,(0,De.strConcat)(ur.default.instancePath,r)]}function JF({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,De.str)`${t}/${e}`;return r&&(o=(0,De.str)`${o}${(0,Hl.getErrorPath)(r,Hl.Type.Str)}`),[Qo.schemaPath,o]}function YF(e,{params:t,message:r},n){let{keyword:o,data:s,schemaValue:i,it:a}=e,{opts:c,propertyName:u,topSchemaRef:l,schemaPath:p}=a;n.push([Qo.keyword,o],[Qo.params,typeof t=="function"?t(e):t||(0,De._)`{}`]),c.messages&&n.push([Qo.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([Qo.schema,i],[Qo.parentSchema,(0,De._)`${l}${p}`],[ur.default.data,s]),u&&n.push([Qo.propertyName,u])}});var DS=x(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.boolOrEmptySchema=Ks.topBoolOrEmptySchema=void 0;var XF=ka(),QF=ve(),ZF=Kr(),eq={message:"boolean schema is false"};function tq(e){let{gen:t,schema:r,validateName:n}=e;r===!1?MS(e,!1):typeof r=="object"&&r.$async===!0?t.return(ZF.default.data):(t.assign((0,QF._)`${n}.errors`,null),t.return(!0))}Ks.topBoolOrEmptySchema=tq;function rq(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),MS(e)):r.var(t,!0)}Ks.boolOrEmptySchema=rq;function MS(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,XF.reportError)(o,eq,void 0,t)}});var fm=x(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.getRules=Js.isJSONType=void 0;var nq=["string","number","integer","boolean","null","object","array"],oq=new Set(nq);function sq(e){return typeof e=="string"&&oq.has(e)}Js.isJSONType=sq;function iq(){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:{}}}Js.getRules=iq});var mm=x(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.shouldUseRule=vo.shouldUseGroup=vo.schemaHasRulesForType=void 0;function aq({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&LS(e,n)}vo.schemaHasRulesForType=aq;function LS(e,t){return t.rules.some(r=>jS(e,r))}vo.shouldUseGroup=LS;function jS(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))}vo.shouldUseRule=jS});var Ra=x(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.reportTypeError=nr.checkDataTypes=nr.checkDataType=nr.coerceAndCheckDataType=nr.getJSONTypes=nr.getSchemaTypes=nr.DataType=void 0;var cq=fm(),lq=mm(),uq=ka(),we=ve(),FS=Te(),Ys;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Ys||(nr.DataType=Ys={}));function pq(e){let t=qS(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}nr.getSchemaTypes=pq;function qS(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(cq.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}nr.getJSONTypes=qS;function dq(e,t){let{gen:r,data:n,opts:o}=e,s=fq(t,o.coerceTypes),i=t.length>0&&!(s.length===0&&t.length===1&&(0,lq.schemaHasRulesForType)(e,t[0]));if(i){let a=gm(t,n,o.strictNumbers,Ys.Wrong);r.if(a,()=>{s.length?mq(e,t,s):ym(e)})}return i}nr.coerceAndCheckDataType=dq;var US=new Set(["string","number","integer","boolean","null"]);function fq(e,t){return t?e.filter(r=>US.has(r)||t==="array"&&r==="array"):[]}function mq(e,t,r){let{gen:n,data:o,opts:s}=e,i=n.let("dataType",(0,we._)`typeof ${o}`),a=n.let("coerced",(0,we._)`undefined`);s.coerceTypes==="array"&&n.if((0,we._)`${i} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,we._)`${o}[0]`).assign(i,(0,we._)`typeof ${o}`).if(gm(t,o,s.strictNumbers),()=>n.assign(a,o))),n.if((0,we._)`${a} !== undefined`);for(let u of r)(US.has(u)||u==="array"&&s.coerceTypes==="array")&&c(u);n.else(),ym(e),n.endIf(),n.if((0,we._)`${a} !== undefined`,()=>{n.assign(o,a),hq(e,a)});function c(u){switch(u){case"string":n.elseIf((0,we._)`${i} == "number" || ${i} == "boolean"`).assign(a,(0,we._)`"" + ${o}`).elseIf((0,we._)`${o} === null`).assign(a,(0,we._)`""`);return;case"number":n.elseIf((0,we._)`${i} == "boolean" || ${o} === null
17
- || (${i} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,we._)`+${o}`);return;case"integer":n.elseIf((0,we._)`${i} === "boolean" || ${o} === null
18
- || (${i} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,we._)`+${o}`);return;case"boolean":n.elseIf((0,we._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,we._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,we._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,we._)`${i} === "string" || ${i} === "number"
19
- || ${i} === "boolean" || ${o} === null`).assign(a,(0,we._)`[${o}]`)}}}function hq({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,we._)`${t} !== undefined`,()=>e.assign((0,we._)`${t}[${r}]`,n))}function hm(e,t,r,n=Ys.Correct){let o=n===Ys.Correct?we.operators.EQ:we.operators.NEQ,s;switch(e){case"null":return(0,we._)`${t} ${o} null`;case"array":s=(0,we._)`Array.isArray(${t})`;break;case"object":s=(0,we._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=i((0,we._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=i();break;default:return(0,we._)`typeof ${t} ${o} ${e}`}return n===Ys.Correct?s:(0,we.not)(s);function i(a=we.nil){return(0,we.and)((0,we._)`typeof ${t} == "number"`,a,r?(0,we._)`isFinite(${t})`:we.nil)}}nr.checkDataType=hm;function gm(e,t,r,n){if(e.length===1)return hm(e[0],t,r,n);let o,s=(0,FS.toHash)(e);if(s.array&&s.object){let i=(0,we._)`typeof ${t} != "object"`;o=s.null?i:(0,we._)`!${t} || ${i}`,delete s.null,delete s.array,delete s.object}else o=we.nil;s.number&&delete s.integer;for(let i in s)o=(0,we.and)(o,hm(i,t,r,n));return o}nr.checkDataTypes=gm;var gq={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,we._)`{type: ${e}}`:(0,we._)`{type: ${t}}`};function ym(e){let t=yq(e);(0,uq.reportError)(t,gq)}nr.reportTypeError=ym;function yq(e){let{gen:t,data:r,schema:n}=e,o=(0,FS.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var GS=x(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.assignDefaults=void 0;var Xs=ve(),vq=Te();function wq(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)BS(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,s)=>BS(e,s,o.default))}Wl.assignDefaults=wq;function BS(e,t,r){let{gen:n,compositeRule:o,data:s,opts:i}=e;if(r===void 0)return;let a=(0,Xs._)`${s}${(0,Xs.getProperty)(t)}`;if(o){(0,vq.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,Xs._)`${a} === undefined`;i.useDefaults==="empty"&&(c=(0,Xs._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Xs._)`${a} = ${(0,Xs.stringify)(r)}`)}});var Jr=x(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 ct=ve(),vm=Te(),wo=Kr(),xq=Te();function bq(e,t){let{gen:r,data:n,it:o}=e;r.if(xm(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,ct._)`${t}`},!0),e.error()})}Ve.checkReportMissingProp=bq;function _q({gen:e,data:t,it:{opts:r}},n,o){return(0,ct.or)(...n.map(s=>(0,ct.and)(xm(e,t,s,r.ownProperties),(0,ct._)`${o} = ${s}`)))}Ve.checkMissingProp=_q;function Sq(e,t){e.setParams({missingProperty:t},!0),e.error()}Ve.reportMissingProp=Sq;function zS(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ct._)`Object.prototype.hasOwnProperty`})}Ve.hasPropFunc=zS;function wm(e,t,r){return(0,ct._)`${zS(e)}.call(${t}, ${r})`}Ve.isOwnProperty=wm;function Eq(e,t,r,n){let o=(0,ct._)`${t}${(0,ct.getProperty)(r)} !== undefined`;return n?(0,ct._)`${o} && ${wm(e,t,r)}`:o}Ve.propertyInData=Eq;function xm(e,t,r,n){let o=(0,ct._)`${t}${(0,ct.getProperty)(r)} === undefined`;return n?(0,ct.or)(o,(0,ct.not)(wm(e,t,r))):o}Ve.noPropertyInData=xm;function HS(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ve.allSchemaProperties=HS;function Tq(e,t){return HS(t).filter(r=>!(0,vm.alwaysValidSchema)(e,t[r]))}Ve.schemaProperties=Tq;function kq({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:s},it:i},a,c,u){let l=u?(0,ct._)`${e}, ${t}, ${n}${o}`:t,p=[[wo.default.instancePath,(0,ct.strConcat)(wo.default.instancePath,s)],[wo.default.parentData,i.parentData],[wo.default.parentDataProperty,i.parentDataProperty],[wo.default.rootData,wo.default.rootData]];i.opts.dynamicRef&&p.push([wo.default.dynamicAnchors,wo.default.dynamicAnchors]);let f=(0,ct._)`${l}, ${r.object(...p)}`;return c!==ct.nil?(0,ct._)`${a}.call(${c}, ${f})`:(0,ct._)`${a}(${f})`}Ve.callValidateCode=kq;var Rq=(0,ct._)`new RegExp`;function Pq({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,ct._)`${o.code==="new RegExp"?Rq:(0,xq.useFunc)(e,o)}(${r}, ${n})`})}Ve.usePattern=Pq;function Iq(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,ct._)`${r}.length`);t.forRange("i",0,c,u=>{e.subschema({keyword:n,dataProp:u,dataPropType:vm.Type.Num},s),t.if((0,ct.not)(s),a)})}}Ve.validateArray=Iq;function Aq(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,vm.alwaysValidSchema)(o,c))&&!o.opts.unevaluated)return;let i=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((c,u)=>{let l=e.subschema({keyword:n,schemaProp:u,compositeRule:!0},a);t.assign(i,(0,ct._)`${i} || ${a}`),e.mergeValidEvaluated(l,a)||t.if((0,ct.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Ve.validateUnion=Aq});var KS=x(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.validateKeywordUsage=On.validSchemaType=On.funcKeywordCode=On.macroKeywordCode=void 0;var pr=ve(),Zo=Kr(),Cq=Jr(),$q=ka();function Oq(e,t){let{gen:r,keyword:n,schema:o,parentSchema:s,it:i}=e,a=t.macro.call(i.self,o,s,i),c=VS(r,n,a);i.opts.validateSchema!==!1&&i.self.validateSchema(a,!0);let u=r.name("valid");e.subschema({schema:a,schemaPath:pr.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},u),e.pass(u,()=>e.error(!0))}On.macroKeywordCode=Oq;function Nq(e,t){var r;let{gen:n,keyword:o,schema:s,parentSchema:i,$data:a,it:c}=e;Dq(c,t);let u=!a&&t.compile?t.compile.call(c.self,s,i,c):t.validate,l=VS(n,o,u),p=n.let("valid");e.block$data(p,f),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function f(){if(t.errors===!1)g(),t.modifying&&WS(e),w(()=>e.error());else{let v=t.async?m():h();t.modifying&&WS(e),w(()=>Mq(e,v))}}function m(){let v=n.let("ruleErrs",null);return n.try(()=>g((0,pr._)`await `),T=>n.assign(p,!1).if((0,pr._)`${T} instanceof ${c.ValidationError}`,()=>n.assign(v,(0,pr._)`${T}.errors`),()=>n.throw(T))),v}function h(){let v=(0,pr._)`${l}.errors`;return n.assign(v,null),g(pr.nil),v}function g(v=t.async?(0,pr._)`await `:pr.nil){let T=c.opts.passContext?Zo.default.this:Zo.default.self,R=!("compile"in t&&!a||t.schema===!1);n.assign(p,(0,pr._)`${v}${(0,Cq.callValidateCode)(e,l,T,R)}`,t.modifying)}function w(v){var T;n.if((0,pr.not)((T=t.valid)!==null&&T!==void 0?T:p),v)}}On.funcKeywordCode=Nq;function WS(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,pr._)`${n.parentData}[${n.parentDataProperty}]`))}function Mq(e,t){let{gen:r}=e;r.if((0,pr._)`Array.isArray(${t})`,()=>{r.assign(Zo.default.vErrors,(0,pr._)`${Zo.default.vErrors} === null ? ${t} : ${Zo.default.vErrors}.concat(${t})`).assign(Zo.default.errors,(0,pr._)`${Zo.default.vErrors}.length`),(0,$q.extendErrors)(e)},()=>e.error())}function Dq({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function VS(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,pr.stringify)(r)})}function Lq(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")}On.validSchemaType=Lq;function jq({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)}}On.validateKeywordUsage=jq});var YS=x(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.extendSubschemaMode=xo.extendSubschemaData=xo.getSubschema=void 0;var Nn=ve(),JS=Te();function Fq(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,Nn._)`${e.schemaPath}${(0,Nn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Nn._)`${e.schemaPath}${(0,Nn.getProperty)(t)}${(0,Nn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,JS.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')}xo.getSubschema=Fq;function qq(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:u,dataPathArr:l,opts:p}=t,f=a.let("data",(0,Nn._)`${t.data}${(0,Nn.getProperty)(r)}`,!0);c(f),e.errorPath=(0,Nn.str)`${u}${(0,JS.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,Nn._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(o!==void 0){let u=o instanceof Nn.Name?o:a.let("data",o,!0);c(u),i!==void 0&&(e.propertyName=i)}s&&(e.dataTypes=s);function c(u){e.data=u,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,u]}}xo.extendSubschemaData=qq;function Uq(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}xo.extendSubschemaMode=Uq});var Pa=x((qie,XS)=>{"use strict";XS.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 ZS=x((Uie,QS)=>{"use strict";var bo=QS.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(){};Vl(t,n,o,e,"",e)};bo.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};bo.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};bo.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};bo.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 Vl(e,t,r,n,o,s,i,a,c,u){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,o,s,i,a,c,u);for(var l in n){var p=n[l];if(Array.isArray(p)){if(l in bo.arrayKeywords)for(var f=0;f<p.length;f++)Vl(e,t,r,p[f],o+"/"+l+"/"+f,s,o,l,n,f)}else if(l in bo.propsKeywords){if(p&&typeof p=="object")for(var m in p)Vl(e,t,r,p[m],o+"/"+l+"/"+Bq(m),s,o,l,n,m)}else(l in bo.keywords||e.allKeys&&!(l in bo.skipKeywords))&&Vl(e,t,r,p,o+"/"+l,s,o,l,n)}r(n,o,s,i,a,c,u)}}function Bq(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Ia=x(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.getSchemaRefs=Tr.resolveUrl=Tr.normalizeId=Tr._getFullPath=Tr.getFullPath=Tr.inlineRef=void 0;var Gq=Te(),zq=Pa(),Hq=ZS(),Wq=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Vq(e,t=!0){return typeof e=="boolean"?!0:t===!0?!bm(e):t?eE(e)<=t:!1}Tr.inlineRef=Vq;var Kq=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function bm(e){for(let t in e){if(Kq.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(bm)||typeof r=="object"&&bm(r))return!0}return!1}function eE(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!Wq.has(r)&&(typeof e[r]=="object"&&(0,Gq.eachItem)(e[r],n=>t+=eE(n)),t===1/0))return 1/0}return t}function tE(e,t="",r){r!==!1&&(t=Qs(t));let n=e.parse(t);return rE(e,n)}Tr.getFullPath=tE;function rE(e,t){return e.serialize(t).split("#")[0]+"#"}Tr._getFullPath=rE;var Jq=/#\/?$/;function Qs(e){return e?e.replace(Jq,""):""}Tr.normalizeId=Qs;function Yq(e,t,r){return r=Qs(r),e.resolve(t,r)}Tr.resolveUrl=Yq;var Xq=/^[a-z_][-a-z0-9._]*$/i;function Qq(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=Qs(e[r]||t),s={"":o},i=tE(n,o,!1),a={},c=new Set;return Hq(e,{allKeys:!0},(p,f,m,h)=>{if(h===void 0)return;let g=i+f,w=s[h];typeof p[r]=="string"&&(w=v.call(this,p[r])),T.call(this,p.$anchor),T.call(this,p.$dynamicAnchor),s[f]=w;function v(R){let P=this.opts.uriResolver.resolve;if(R=Qs(w?P(w,R):R),c.has(R))throw l(R);c.add(R);let I=this.refs[R];return typeof I=="string"&&(I=this.refs[I]),typeof I=="object"?u(p,I.schema,R):R!==Qs(g)&&(R[0]==="#"?(u(p,a[R],R),a[R]=p):this.refs[R]=g),R}function T(R){if(typeof R=="string"){if(!Xq.test(R))throw new Error(`invalid anchor "${R}"`);v.call(this,`#${R}`)}}}),a;function u(p,f,m){if(f!==void 0&&!zq(p,f))throw l(m)}function l(p){return new Error(`reference "${p}" resolves to more than one schema`)}}Tr.getSchemaRefs=Qq});var $a=x(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.getData=_o.KeywordCxt=_o.validateFunctionCode=void 0;var aE=DS(),nE=Ra(),Sm=mm(),Kl=Ra(),Zq=GS(),Ca=KS(),_m=YS(),Z=ve(),le=Kr(),eU=Ia(),Yn=Te(),Aa=ka();function tU(e){if(uE(e)&&(pE(e),lE(e))){oU(e);return}cE(e,()=>(0,aE.topBoolOrEmptySchema)(e))}_o.validateFunctionCode=tU;function cE({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},s){o.code.es5?e.func(t,(0,Z._)`${le.default.data}, ${le.default.valCxt}`,n.$async,()=>{e.code((0,Z._)`"use strict"; ${oE(r,o)}`),nU(e,o),e.code(s)}):e.func(t,(0,Z._)`${le.default.data}, ${rU(o)}`,n.$async,()=>e.code(oE(r,o)).code(s))}function rU(e){return(0,Z._)`{${le.default.instancePath}="", ${le.default.parentData}, ${le.default.parentDataProperty}, ${le.default.rootData}=${le.default.data}${e.dynamicRef?(0,Z._)`, ${le.default.dynamicAnchors}={}`:Z.nil}}={}`}function nU(e,t){e.if(le.default.valCxt,()=>{e.var(le.default.instancePath,(0,Z._)`${le.default.valCxt}.${le.default.instancePath}`),e.var(le.default.parentData,(0,Z._)`${le.default.valCxt}.${le.default.parentData}`),e.var(le.default.parentDataProperty,(0,Z._)`${le.default.valCxt}.${le.default.parentDataProperty}`),e.var(le.default.rootData,(0,Z._)`${le.default.valCxt}.${le.default.rootData}`),t.dynamicRef&&e.var(le.default.dynamicAnchors,(0,Z._)`${le.default.valCxt}.${le.default.dynamicAnchors}`)},()=>{e.var(le.default.instancePath,(0,Z._)`""`),e.var(le.default.parentData,(0,Z._)`undefined`),e.var(le.default.parentDataProperty,(0,Z._)`undefined`),e.var(le.default.rootData,le.default.data),t.dynamicRef&&e.var(le.default.dynamicAnchors,(0,Z._)`{}`)})}function oU(e){let{schema:t,opts:r,gen:n}=e;cE(e,()=>{r.$comment&&t.$comment&&fE(e),lU(e),n.let(le.default.vErrors,null),n.let(le.default.errors,0),r.unevaluated&&sU(e),dE(e),dU(e)})}function sU(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 oE(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 iU(e,t){if(uE(e)&&(pE(e),lE(e))){aU(e,t);return}(0,aE.boolOrEmptySchema)(e,t)}function lE({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 uE(e){return typeof e.schema!="boolean"}function aU(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&fE(e),uU(e),pU(e);let s=n.const("_errs",le.default.errors);dE(e,s),n.var(t,(0,Z._)`${s} === ${le.default.errors}`)}function pE(e){(0,Yn.checkUnknownRules)(e),cU(e)}function dE(e,t){if(e.opts.jtd)return sE(e,[],!1,t);let r=(0,nE.getSchemaTypes)(e.schema),n=(0,nE.coerceAndCheckDataType)(e,r);sE(e,r,!n,t)}function cU(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Yn.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function lU(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Yn.checkStrictMode)(e,"default is ignored in the schema root")}function uU(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,eU.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function pU(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function fE({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let s=r.$comment;if(o.$comment===!0)e.code((0,Z._)`${le.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._)`${le.default.self}.opts.$comment(${s}, ${i}, ${a}.schema)`)}}function dU(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:s}=e;r.$async?t.if((0,Z._)`${le.default.errors} === 0`,()=>t.return(le.default.data),()=>t.throw((0,Z._)`new ${o}(${le.default.vErrors})`)):(t.assign((0,Z._)`${n}.errors`,le.default.vErrors),s.unevaluated&&fU(e),t.return((0,Z._)`${le.default.errors} === 0`))}function fU({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 sE(e,t,r,n){let{gen:o,schema:s,data:i,allErrors:a,opts:c,self:u}=e,{RULES:l}=u;if(s.$ref&&(c.ignoreKeywordsWithRef||!(0,Yn.schemaHasRulesButRef)(s,l))){o.block(()=>hE(e,"$ref",l.all.$ref.definition));return}c.jtd||mU(e,t),o.block(()=>{for(let f of l.rules)p(f);p(l.post)});function p(f){(0,Sm.shouldUseGroup)(s,f)&&(f.type?(o.if((0,Kl.checkDataType)(f.type,i,c.strictNumbers)),iE(e,f),t.length===1&&t[0]===f.type&&r&&(o.else(),(0,Kl.reportTypeError)(e)),o.endIf()):iE(e,f),a||o.if((0,Z._)`${le.default.errors} === ${n||0}`))}}function iE(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,Zq.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,Sm.shouldUseRule)(n,s)&&hE(e,s.keyword,s.definition,t.type)})}function mU(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(hU(e,t),e.opts.allowUnionTypes||gU(e,t),yU(e,e.dataTypes))}function hU(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{mE(e.dataTypes,r)||Em(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),wU(e,t)}}function gU(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Em(e,"use allowUnionTypes to allow union type keyword")}function yU(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=>vU(t,i))&&Em(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function vU(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function mE(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function wU(e,t){let r=[];for(let n of e.dataTypes)mE(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function Em(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Yn.checkStrictMode)(e,t,e.opts.strictTypes)}var Jl=class{constructor(t,r,n){if((0,Ca.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,Yn.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",gE(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ca.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",le.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?Aa.reportExtraError:Aa.reportError)(this,this.def.error,r)}$dataError(){(0,Aa.reportError)(this,this.def.$dataError||Aa.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Aa.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,Kl.checkDataTypes)(c,r,s.opts.strictNumbers,Kl.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,_m.getSubschema)(this.it,t);(0,_m.extendSubschemaData)(n,this.it,t),(0,_m.extendSubschemaMode)(n,t);let o={...this.it,...n,items:void 0,props:void 0};return iU(o,r),o}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Yn.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Yn.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}};_o.KeywordCxt=Jl;function hE(e,t,r,n){let o=new Jl(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Ca.funcKeywordCode)(o,r):"macro"in r?(0,Ca.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Ca.funcKeywordCode)(o,r)}var xU=/^\/(?:[^~]|~0|~1)*$/,bU=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function gE(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,s;if(e==="")return le.default.rootData;if(e[0]==="/"){if(!xU.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,s=le.default.rootData}else{let u=bU.exec(e);if(!u)throw new Error(`Invalid JSON-pointer: ${e}`);let l=+u[1];if(o=u[2],o==="#"){if(l>=t)throw new Error(c("property/index",l));return n[t-l]}if(l>t)throw new Error(c("data",l));if(s=r[t-l],!o)return s}let i=s,a=o.split("/");for(let u of a)u&&(s=(0,Z._)`${s}${(0,Z.getProperty)((0,Yn.unescapeJsonPointer)(u))}`,i=(0,Z._)`${i} && ${s}`);return i;function c(u,l){return`Cannot access ${u} ${l} levels up, current level is ${t}`}}_o.getData=gE});var Yl=x(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});var Tm=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};km.default=Tm});var Oa=x(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});var Rm=Ia(),Pm=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Rm.resolveUrl)(t,r,n),this.missingSchema=(0,Rm.normalizeId)((0,Rm.getFullPath)(t,this.missingRef))}};Im.default=Pm});var Na=x(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.resolveSchema=Yr.getCompilingSchema=Yr.resolveRef=Yr.compileSchema=Yr.SchemaEnv=void 0;var vn=ve(),_U=Yl(),es=Kr(),wn=Ia(),yE=Te(),SU=$a(),Zs=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,wn.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};Yr.SchemaEnv=Zs;function Cm(e){let t=vE.call(this,e);if(t)return t;let r=(0,wn.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:s}=this.opts,i=new vn.CodeGen(this.scope,{es5:n,lines:o,ownProperties:s}),a;e.$async&&(a=i.scopeValue("Error",{ref:_U.default,code:(0,vn._)`require("ajv/dist/runtime/validation_error").default`}));let c=i.scopeName("validate");e.validateName=c;let u={gen:i,allErrors:this.opts.allErrors,data:es.default.data,parentData:es.default.parentData,parentDataProperty:es.default.parentDataProperty,dataNames:[es.default.data],dataPathArr:[vn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,vn.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:vn.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,vn._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,SU.validateFunctionCode)(u),i.optimize(this.opts.code.optimize);let p=i.toString();l=`${i.scopeRefs(es.default.scope)}return ${p}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let m=new Function(`${es.default.self}`,`${es.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:c,validateCode:p,scopeValues:i._values}),this.opts.unevaluated){let{props:h,items:g}=u;m.evaluated={props:h instanceof vn.Name?void 0:h,items:g instanceof vn.Name?void 0:g,dynamicProps:h instanceof vn.Name,dynamicItems:g instanceof vn.Name},m.source&&(m.source.evaluated=(0,vn.stringify)(m.evaluated))}return e.validate=m,e}catch(p){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),p}finally{this._compilations.delete(e)}}Yr.compileSchema=Cm;function EU(e,t,r){var n;r=(0,wn.resolveUrl)(this.opts.uriResolver,t,r);let o=e.refs[r];if(o)return o;let s=RU.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 Zs({schema:i,schemaId:a,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=TU.call(this,s)}Yr.resolveRef=EU;function TU(e){return(0,wn.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Cm.call(this,e)}function vE(e){for(let t of this._compilations)if(kU(t,e))return t}Yr.getCompilingSchema=vE;function kU(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function RU(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Xl.call(this,e,t)}function Xl(e,t){let r=this.opts.uriResolver.parse(t),n=(0,wn._getFullPath)(this.opts.uriResolver,r),o=(0,wn.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return Am.call(this,r,e);let s=(0,wn.normalizeId)(n),i=this.refs[s]||this.schemas[s];if(typeof i=="string"){let a=Xl.call(this,e,i);return typeof a?.schema!="object"?void 0:Am.call(this,r,a)}if(typeof i?.schema=="object"){if(i.validate||Cm.call(this,i),s===(0,wn.normalizeId)(t)){let{schema:a}=i,{schemaId:c}=this.opts,u=a[c];return u&&(o=(0,wn.resolveUrl)(this.opts.uriResolver,o,u)),new Zs({schema:a,schemaId:c,root:e,baseId:o})}return Am.call(this,r,i)}}Yr.resolveSchema=Xl;var PU=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Am(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,yE.unescapeFragment)(a)];if(c===void 0)return;r=c;let u=typeof r=="object"&&r[this.opts.schemaId];!PU.has(a)&&u&&(t=(0,wn.resolveUrl)(this.opts.uriResolver,t,u))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,yE.schemaHasRulesButRef)(r,this.RULES)){let a=(0,wn.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Xl.call(this,n,a)}let{schemaId:i}=this.opts;if(s=s||new Zs({schema:r,schemaId:i,root:n,baseId:t}),s.schema!==s.root.schema)return s}});var wE=x((Vie,IU)=>{IU.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 Nm=x((Kie,TE)=>{"use strict";var AU=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),bE=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),$m=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),_E=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),CU=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function Om(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 $U=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function xE(e){return e.length=0,!0}function OU(e,t,r){if(e.length){let n=Om(e);if(n!=="")t.push(n);else return r.error=!0,!1;e.length=0}return!0}function NU(e){let t=0,r={error:!1,address:"",zone:""},n=[],o=[],s=!1,i=!1,a=OU;for(let c=0;c<e.length;c++){let u=e[c];if(!(u==="["||u==="]"))if(u===":"){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(u==="%"){if(!a(o,n,r))break;a=xE}else{o.push(u);continue}}return o.length&&(a===xE?r.zone=o.join(""):i?n.push(o.join("")):n.push(Om(o))),r.address=n.join(""),r}function SE(e){if(MU(e,":")<2)return{host:e,isIPV6:!1};let t=NU(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 MU(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function DU(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("")}var LU={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},jU=/[@/?#:]/g,FU=/[@/?#]/g;function EE(e,t){let r=t?FU:jU;return r.lastIndex=0,e.replace(r,n=>LU[n])}function qU(e,t=!1){if(e.indexOf("%")===-1)return e;let r="";for(let n=0;n<e.length;n++){if(e[n]==="%"&&n+2<e.length){let o=e.slice(n+1,n+3);if($m(o)){let s=o.toUpperCase(),i=String.fromCharCode(parseInt(s,16));t&&_E(i)?r+=i:r+="%"+s,n+=2;continue}}r+=e[n]}return r}function UU(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let n=e.slice(r+1,r+3);if($m(n)){let o=n.toUpperCase(),s=String.fromCharCode(parseInt(o,16));s!=="."&&_E(s)?t+=s:t+="%"+o,r+=2;continue}}CU(e[r])?t+=e[r]:t+=escape(e[r])}return t}function BU(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let n=e.slice(r+1,r+3);if($m(n)){t+="%"+n.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t}function GU(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!bE(r)){let n=SE(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=EE(r,!1)}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}TE.exports={nonSimpleDomain:$U,recomposeAuthority:GU,reescapeHostDelimiters:EE,normalizePercentEncoding:qU,normalizePathEncoding:UU,escapePreservingEscapes:BU,removeDotSegments:DU,isIPv4:bE,isUUID:AU,normalizeIPv6:SE,stringArrayToHexStripped:Om}});var AE=x((Jie,IE)=>{"use strict";var{isUUID:zU}=Nm(),HU=/([\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 Mm(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 kE(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function RE(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 KU(e){return e.secure=Mm(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function JU(e){if((e.port===(Mm(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 YU(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(HU);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=Dm(o);e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function XU(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=Dm(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 QU(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!zU(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function ZU(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var PE={scheme:"http",domainHost:!0,parse:kE,serialize:RE},e2={scheme:"https",domainHost:PE.domainHost,parse:kE,serialize:RE},Ql={scheme:"ws",domainHost:!0,parse:KU,serialize:JU},t2={scheme:"wss",domainHost:Ql.domainHost,parse:Ql.parse,serialize:Ql.serialize},r2={scheme:"urn",parse:YU,serialize:XU,skipNormalize:!0},n2={scheme:"urn:uuid",parse:QU,serialize:ZU,skipNormalize:!0},Zl={http:PE,https:e2,ws:Ql,wss:t2,urn:r2,"urn:uuid":n2};Object.setPrototypeOf(Zl,null);function Dm(e){return e&&(Zl[e]||Zl[e.toLowerCase()])||void 0}IE.exports={wsIsSecure:Mm,SCHEMES:Zl,isValidSchemeName:VU,getSchemeHandler:Dm}});var jm=x((Yie,eu)=>{"use strict";var{normalizeIPv6:o2,removeDotSegments:Ma,recomposeAuthority:s2,normalizePercentEncoding:i2,normalizePathEncoding:a2,escapePreservingEscapes:c2,reescapeHostDelimiters:l2,isIPv4:u2,nonSimpleDomain:p2}=Nm(),{SCHEMES:d2,getSchemeHandler:$E}=AE();function f2(e,t){return typeof e=="string"?e=v2(e,t):typeof e=="object"&&(e=ei(ts(e,t),t)),e}function m2(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},o=OE(ei(e,n),ei(t,n),n,!0);return n.skipEscape=!0,ts(o,n)}function OE(e,t,r,n){let o={};return n||(e=ei(ts(e,r),r),t=ei(ts(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=Ma(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=Ma(t.path||""),o.query=t.query):(t.path?(t.path[0]==="/"?o.path=Ma(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=Ma(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 h2(e,t,r){let n=CE(e,r),o=CE(t,r);return n!==void 0&&o!==void 0&&n.toLowerCase()===o.toLowerCase()}function ts(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=$E(n.scheme||r.scheme);s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=i2(r.path):(r.path=c2(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&o.push(r.scheme,":");let i=s2(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=Ma(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 g2=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function y2(e,t){if(t[2]!==void 0&&e.path&&e.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof e.port=="number"&&(e.port<0||e.port>65535))return"URI port is malformed."}function NE(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,s=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let i=e.match(g2);if(i){n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5]);let a=y2(n,i);if(a!==void 0&&(n.error=n.error||a,o=!0),n.host)if(u2(n.host)===!1){let l=o2(n.host);n.host=l.host.toLowerCase(),s=l.isIPV6}else s=!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 c=$E(r.scheme||n.scheme);if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&p2(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}if((!c||c&&!c.skipNormalize)&&(e.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=l2(unescape(n.host),s))),n.path&&(n.path=a2(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:o}}function ei(e,t){return NE(e,t).parsed}function v2(e,t){return ME(e,t).normalized}function ME(e,t){let{parsed:r,malformedAuthorityOrPort:n}=NE(e,t);return{normalized:n?e:ts(r,t),malformedAuthorityOrPort:n}}function CE(e,t){if(typeof e=="string"){let{normalized:r,malformedAuthorityOrPort:n}=ME(e,t);return n?void 0:r}if(typeof e=="object")return ts(e,t)}var Lm={SCHEMES:d2,normalize:f2,resolve:m2,resolveComponent:OE,equal:h2,serialize:ts,parse:ei};eu.exports=Lm;eu.exports.default=Lm;eu.exports.fastUri=Lm});var LE=x(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});var DE=jm();DE.code='require("ajv/dist/runtime/uri").default';Fm.default=DE});var HE=x(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.CodeGen=Kt.Name=Kt.nil=Kt.stringify=Kt.str=Kt._=Kt.KeywordCxt=void 0;var w2=$a();Object.defineProperty(Kt,"KeywordCxt",{enumerable:!0,get:function(){return w2.KeywordCxt}});var ti=ve();Object.defineProperty(Kt,"_",{enumerable:!0,get:function(){return ti._}});Object.defineProperty(Kt,"str",{enumerable:!0,get:function(){return ti.str}});Object.defineProperty(Kt,"stringify",{enumerable:!0,get:function(){return ti.stringify}});Object.defineProperty(Kt,"nil",{enumerable:!0,get:function(){return ti.nil}});Object.defineProperty(Kt,"Name",{enumerable:!0,get:function(){return ti.Name}});Object.defineProperty(Kt,"CodeGen",{enumerable:!0,get:function(){return ti.CodeGen}});var x2=Yl(),BE=Oa(),b2=fm(),Da=Na(),_2=ve(),La=Ia(),tu=Ra(),Um=Te(),jE=wE(),S2=LE(),GE=(e,t)=>new RegExp(e,t);GE.code="new RegExp";var E2=["removeAdditional","useDefaults","coerceTypes"],T2=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),k2={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."},R2={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},FE=200;function P2(e){var t,r,n,o,s,i,a,c,u,l,p,f,m,h,g,w,v,T,R,P,I,j,F,ie,de;let te=e.strict,$e=(t=e.code)===null||t===void 0?void 0:t.optimize,oe=$e===!0||$e===void 0?1:$e||0,Y=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:GE,re=(o=e.uriResolver)!==null&&o!==void 0?o:S2.default;return{strictSchema:(i=(s=e.strictSchema)!==null&&s!==void 0?s:te)!==null&&i!==void 0?i:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:te)!==null&&c!==void 0?c:!0,strictTypes:(l=(u=e.strictTypes)!==null&&u!==void 0?u:te)!==null&&l!==void 0?l:"log",strictTuples:(f=(p=e.strictTuples)!==null&&p!==void 0?p:te)!==null&&f!==void 0?f:"log",strictRequired:(h=(m=e.strictRequired)!==null&&m!==void 0?m:te)!==null&&h!==void 0?h:!1,code:e.code?{...e.code,optimize:oe,regExp:Y}:{optimize:oe,regExp:Y},loopRequired:(g=e.loopRequired)!==null&&g!==void 0?g:FE,loopEnum:(w=e.loopEnum)!==null&&w!==void 0?w:FE,meta:(v=e.meta)!==null&&v!==void 0?v:!0,messages:(T=e.messages)!==null&&T!==void 0?T:!0,inlineRefs:(R=e.inlineRefs)!==null&&R!==void 0?R:!0,schemaId:(P=e.schemaId)!==null&&P!==void 0?P:"$id",addUsedSchema:(I=e.addUsedSchema)!==null&&I!==void 0?I:!0,validateSchema:(j=e.validateSchema)!==null&&j!==void 0?j:!0,validateFormats:(F=e.validateFormats)!==null&&F!==void 0?F:!0,unicodeRegExp:(ie=e.unicodeRegExp)!==null&&ie!==void 0?ie:!0,int32range:(de=e.int32range)!==null&&de!==void 0?de:!0,uriResolver:re}}var ja=class{constructor(t={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...P2(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new _2.ValueScope({scope:{},prefixes:T2,es5:r,lines:n}),this.logger=N2(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,b2.getRules)(),qE.call(this,k2,t,"NOT SUPPORTED"),qE.call(this,R2,t,"DEPRECATED","warn"),this._metaOpts=$2.call(this),t.formats&&A2.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&C2.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),I2.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=jE;n==="id"&&(o={...jE},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(l,p){await s.call(this,l.$schema);let f=this._addSchema(l,p);return f.validate||i.call(this,f)}async function s(l){l&&!this.getSchema(l)&&await o.call(this,{$ref:l},!0)}async function i(l){try{return this._compileSchemaEnv(l)}catch(p){if(!(p instanceof BE.default))throw p;return a.call(this,p),await c.call(this,p.missingSchema),i.call(this,l)}}function a({missingSchema:l,missingRef:p}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${p} cannot be resolved`)}async function c(l){let p=await u.call(this,l);this.refs[l]||await s.call(this,p.$schema),this.refs[l]||this.addSchema(p,l,r)}async function u(l){let p=this._loading[l];if(p)return p;try{return await(this._loading[l]=n(l))}finally{delete this._loading[l]}}}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,La.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=UE.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new Da.SchemaEnv({schema:{},schemaId:n});if(r=Da.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=UE.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,La.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(D2.call(this,n,r),!r)return(0,Um.eachItem)(n,s=>qm.call(this,s)),this;j2.call(this,r);let o={...r,type:(0,tu.getJSONTypes)(r.type),schemaType:(0,tu.getJSONTypes)(r.schemaType)};return(0,Um.eachItem)(n,o.type.length===0?s=>qm.call(this,s,o):s=>o.type.forEach(i=>qm.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:u}=c.definition,l=i[a];u&&l&&(i[a]=zE(l))}}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,La.normalizeId)(i||n);let u=La.getSchemaRefs.call(this,t,n);return c=new Da.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:u}),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):Da.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{Da.compileSchema.call(this,t)}finally{this.opts=r}}};ja.ValidationError=x2.default;ja.MissingRefError=BE.default;Kt.default=ja;function qE(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 UE(e){return e=(0,La.normalizeId)(e),this.schemas[e]||this.refs[e]}function I2(){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 A2(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function C2(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 $2(){let e={...this.opts};for(let t of E2)delete e[t];return e}var O2={log(){},warn(){},error(){}};function N2(e){if(e===!1)return O2;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 M2=/^[a-z_$][a-z0-9_$:-]*$/i;function D2(e,t){let{RULES:r}=this;if((0,Um.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!M2.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 qm(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,tu.getJSONTypes)(t.type),schemaType:(0,tu.getJSONTypes)(t.schemaType)}};t.before?L2.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 L2(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 j2(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=zE(t)),e.validateSchema=this.compile(t,!0))}var F2={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function zE(e){return{anyOf:[e,F2]}}});var WE=x(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});var q2={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Bm.default=q2});var ou=x(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.callRef=rs.getValidate=void 0;var U2=Oa(),VE=Jr(),kr=ve(),ri=Kr(),KE=Na(),ru=Te(),B2={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:u}=s;if((r==="#"||r==="#/")&&o===u.baseId)return p();let l=KE.resolveRef.call(c,u,o,r);if(l===void 0)throw new U2.default(n.opts.uriResolver,o,r);if(l instanceof KE.SchemaEnv)return f(l);return m(l);function p(){if(s===u)return nu(e,i,s,s.$async);let h=t.scopeValue("root",{ref:u});return nu(e,(0,kr._)`${h}.validate`,u,u.$async)}function f(h){let g=JE(e,h);nu(e,g,h,h.$async)}function m(h){let g=t.scopeValue("schema",a.code.source===!0?{ref:h,code:(0,kr.stringify)(h)}:{ref:h}),w=t.name("valid"),v=e.subschema({schema:h,dataTypes:[],schemaPath:kr.nil,topSchemaRef:g,errSchemaPath:r},w);e.mergeEvaluated(v),e.ok(w)}}};function JE(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,kr._)`${r.scopeValue("wrapper",{ref:t})}.validate`}rs.getValidate=JE;function nu(e,t,r,n){let{gen:o,it:s}=e,{allErrors:i,schemaEnv:a,opts:c}=s,u=c.passContext?ri.default.this:kr.nil;n?l():p();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let h=o.let("valid");o.try(()=>{o.code((0,kr._)`await ${(0,VE.callValidateCode)(e,t,u)}`),m(t),i||o.assign(h,!0)},g=>{o.if((0,kr._)`!(${g} instanceof ${s.ValidationError})`,()=>o.throw(g)),f(g),i||o.assign(h,!1)}),e.ok(h)}function p(){e.result((0,VE.callValidateCode)(e,t,u),()=>m(t),()=>f(t))}function f(h){let g=(0,kr._)`${h}.errors`;o.assign(ri.default.vErrors,(0,kr._)`${ri.default.vErrors} === null ? ${g} : ${ri.default.vErrors}.concat(${g})`),o.assign(ri.default.errors,(0,kr._)`${ri.default.vErrors}.length`)}function m(h){var g;if(!s.opts.unevaluated)return;let w=(g=r?.validate)===null||g===void 0?void 0:g.evaluated;if(s.props!==!0)if(w&&!w.dynamicProps)w.props!==void 0&&(s.props=ru.mergeEvaluated.props(o,w.props,s.props));else{let v=o.var("props",(0,kr._)`${h}.evaluated.props`);s.props=ru.mergeEvaluated.props(o,v,s.props,kr.Name)}if(s.items!==!0)if(w&&!w.dynamicItems)w.items!==void 0&&(s.items=ru.mergeEvaluated.items(o,w.items,s.items));else{let v=o.var("items",(0,kr._)`${h}.evaluated.items`);s.items=ru.mergeEvaluated.items(o,v,s.items,kr.Name)}}}rs.callRef=nu;rs.default=B2});var YE=x(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});var G2=WE(),z2=ou(),H2=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",G2.default,z2.default];Gm.default=H2});var XE=x(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});var su=ve(),So=su.operators,iu={maximum:{okStr:"<=",ok:So.LTE,fail:So.GT},minimum:{okStr:">=",ok:So.GTE,fail:So.LT},exclusiveMaximum:{okStr:"<",ok:So.LT,fail:So.GTE},exclusiveMinimum:{okStr:">",ok:So.GT,fail:So.LTE}},W2={message:({keyword:e,schemaCode:t})=>(0,su.str)`must be ${iu[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,su._)`{comparison: ${iu[e].okStr}, limit: ${t}}`},V2={keyword:Object.keys(iu),type:"number",schemaType:"number",$data:!0,error:W2,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,su._)`${r} ${iu[t].fail} ${n} || isNaN(${r})`)}};zm.default=V2});var QE=x(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});var Fa=ve(),K2={message:({schemaCode:e})=>(0,Fa.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Fa._)`{multipleOf: ${e}}`},J2={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:K2,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,s=o.opts.multipleOfPrecision,i=t.let("res"),a=s?(0,Fa._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${s}`:(0,Fa._)`${i} !== parseInt(${i})`;e.fail$data((0,Fa._)`(${n} === 0 || (${i} = ${r}/${n}, ${a}))`)}};Hm.default=J2});var eT=x(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});function ZE(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}Wm.default=ZE;ZE.code='require("ajv/dist/runtime/ucs2length").default'});var tT=x(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});var ns=ve(),Y2=Te(),X2=eT(),Q2={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,ns.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,ns._)`{limit: ${e}}`},Z2={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Q2,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,s=t==="maxLength"?ns.operators.GT:ns.operators.LT,i=o.opts.unicode===!1?(0,ns._)`${r}.length`:(0,ns._)`${(0,Y2.useFunc)(e.gen,X2.default)}(${r})`;e.fail$data((0,ns._)`${i} ${s} ${n}`)}};Vm.default=Z2});var rT=x(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});var eB=Jr(),tB=Te(),ni=ve(),rB={message:({schemaCode:e})=>(0,ni.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,ni._)`{pattern: ${e}}`},nB={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:rB,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,u=c.code==="new RegExp"?(0,ni._)`new RegExp`:(0,tB.useFunc)(t,c),l=t.let("valid");t.try(()=>t.assign(l,(0,ni._)`${u}(${s}, ${a}).test(${r})`),()=>t.assign(l,!1)),e.fail$data((0,ni._)`!${l}`)}else{let c=(0,eB.usePattern)(e,o);e.fail$data((0,ni._)`!${c}.test(${r})`)}}};Km.default=nB});var nT=x(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});var qa=ve(),oB={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,qa.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,qa._)`{limit: ${e}}`},sB={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:oB,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?qa.operators.GT:qa.operators.LT;e.fail$data((0,qa._)`Object.keys(${r}).length ${o} ${n}`)}};Jm.default=sB});var oT=x(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});var Ua=Jr(),Ba=ve(),iB=Te(),aB={message:({params:{missingProperty:e}})=>(0,Ba.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Ba._)`{missingProperty: ${e}}`},cB={keyword:"required",type:"object",schemaType:"array",$data:!0,error:aB,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?u():l(),a.strictRequired){let m=e.parentSchema.properties,{definedProperties:h}=e.it;for(let g of r)if(m?.[g]===void 0&&!h.has(g)){let w=i.schemaEnv.baseId+i.errSchemaPath,v=`required property "${g}" is not defined at "${w}" (strictRequired)`;(0,iB.checkStrictMode)(i,v,i.opts.strictRequired)}}function u(){if(c||s)e.block$data(Ba.nil,p);else for(let m of r)(0,Ua.checkReportMissingProp)(e,m)}function l(){let m=t.let("missing");if(c||s){let h=t.let("valid",!0);e.block$data(h,()=>f(m,h)),e.ok(h)}else t.if((0,Ua.checkMissingProp)(e,r,m)),(0,Ua.reportMissingProp)(e,m),t.else()}function p(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,Ua.noPropertyInData)(t,o,m,a.ownProperties),()=>e.error())})}function f(m,h){e.setParams({missingProperty:m}),t.forOf(m,n,()=>{t.assign(h,(0,Ua.propertyInData)(t,o,m,a.ownProperties)),t.if((0,Ba.not)(h),()=>{e.error(),t.break()})},Ba.nil)}}};Ym.default=cB});var sT=x(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});var Ga=ve(),lB={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ga.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Ga._)`{limit: ${e}}`},uB={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:lB,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?Ga.operators.GT:Ga.operators.LT;e.fail$data((0,Ga._)`${r}.length ${o} ${n}`)}};Xm.default=uB});var au=x(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});var iT=Pa();iT.code='require("ajv/dist/runtime/equal").default';Qm.default=iT});var aT=x(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var Zm=Ra(),Jt=ve(),pB=Te(),dB=au(),fB={message:({params:{i:e,j:t}})=>(0,Jt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Jt._)`{i: ${e}, j: ${t}}`},mB={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:fB,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"),u=s.items?(0,Zm.getSchemaTypes)(s.items):[];e.block$data(c,l,(0,Jt._)`${i} === false`),e.ok(c);function l(){let h=t.let("i",(0,Jt._)`${r}.length`),g=t.let("j");e.setParams({i:h,j:g}),t.assign(c,!0),t.if((0,Jt._)`${h} > 1`,()=>(p()?f:m)(h,g))}function p(){return u.length>0&&!u.some(h=>h==="object"||h==="array")}function f(h,g){let w=t.name("item"),v=(0,Zm.checkDataTypes)(u,w,a.opts.strictNumbers,Zm.DataType.Wrong),T=t.const("indices",(0,Jt._)`{}`);t.for((0,Jt._)`;${h}--;`,()=>{t.let(w,(0,Jt._)`${r}[${h}]`),t.if(v,(0,Jt._)`continue`),u.length>1&&t.if((0,Jt._)`typeof ${w} == "string"`,(0,Jt._)`${w} += "_"`),t.if((0,Jt._)`typeof ${T}[${w}] == "number"`,()=>{t.assign(g,(0,Jt._)`${T}[${w}]`),e.error(),t.assign(c,!1).break()}).code((0,Jt._)`${T}[${w}] = ${h}`)})}function m(h,g){let w=(0,pB.useFunc)(t,dB.default),v=t.name("outer");t.label(v).for((0,Jt._)`;${h}--;`,()=>t.for((0,Jt._)`${g} = ${h}; ${g}--;`,()=>t.if((0,Jt._)`${w}(${r}[${h}], ${r}[${g}])`,()=>{e.error(),t.assign(c,!1).break(v)})))}}};eh.default=mB});var cT=x(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});var th=ve(),hB=Te(),gB=au(),yB={message:"must be equal to constant",params:({schemaCode:e})=>(0,th._)`{allowedValue: ${e}}`},vB={keyword:"const",$data:!0,error:yB,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,th._)`!${(0,hB.useFunc)(t,gB.default)}(${r}, ${o})`):e.fail((0,th._)`${s} !== ${r}`)}};rh.default=vB});var lT=x(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});var za=ve(),wB=Te(),xB=au(),bB={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,za._)`{allowedValues: ${e}}`},_B={keyword:"enum",schemaType:"array",$data:!0,error:bB,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,u=()=>c??(c=(0,wB.useFunc)(t,xB.default)),l;if(a||n)l=t.let("valid"),e.block$data(l,p);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let m=t.const("vSchema",s);l=(0,za.or)(...o.map((h,g)=>f(m,g)))}e.pass(l);function p(){t.assign(l,!1),t.forOf("v",s,m=>t.if((0,za._)`${u()}(${r}, ${m})`,()=>t.assign(l,!0).break()))}function f(m,h){let g=o[h];return typeof g=="object"&&g!==null?(0,za._)`${u()}(${r}, ${m}[${h}])`:(0,za._)`${r} === ${g}`}}};nh.default=_B});var uT=x(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var SB=XE(),EB=QE(),TB=tT(),kB=rT(),RB=nT(),PB=oT(),IB=sT(),AB=aT(),CB=cT(),$B=lT(),OB=[SB.default,EB.default,TB.default,kB.default,RB.default,PB.default,IB.default,AB.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},CB.default,$B.default];oh.default=OB});var ih=x(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.validateAdditionalItems=void 0;var os=ve(),sh=Te(),NB={message:({params:{len:e}})=>(0,os.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,os._)`{limit: ${e}}`},MB={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:NB,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,sh.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}pT(e,n)}};function pT(e,t){let{gen:r,schema:n,data:o,keyword:s,it:i}=e;i.items=!0;let a=r.const("len",(0,os._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,os._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,sh.alwaysValidSchema)(i,n)){let u=r.var("valid",(0,os._)`${a} <= ${t.length}`);r.if((0,os.not)(u),()=>c(u)),e.ok(u)}function c(u){r.forRange("i",t.length,a,l=>{e.subschema({keyword:s,dataProp:l,dataPropType:sh.Type.Num},u),i.allErrors||r.if((0,os.not)(u),()=>r.break())})}}Ha.validateAdditionalItems=pT;Ha.default=MB});var ah=x(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.validateTuple=void 0;var dT=ve(),cu=Te(),DB=Jr(),LB={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return fT(e,"additionalItems",t);r.items=!0,!(0,cu.alwaysValidSchema)(r,t)&&e.ok((0,DB.validateArray)(e))}};function fT(e,t,r=e.schema){let{gen:n,parentSchema:o,data:s,keyword:i,it:a}=e;l(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=cu.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),u=n.const("len",(0,dT._)`${s}.length`);r.forEach((p,f)=>{(0,cu.alwaysValidSchema)(a,p)||(n.if((0,dT._)`${u} > ${f}`,()=>e.subschema({keyword:i,schemaProp:f,dataProp:f},c)),e.ok(c))});function l(p){let{opts:f,errSchemaPath:m}=a,h=r.length,g=h===p.minItems&&(h===p.maxItems||p[t]===!1);if(f.strictTuples&&!g){let w=`"${i}" is ${h}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,cu.checkStrictMode)(a,w,f.strictTuples)}}}Wa.validateTuple=fT;Wa.default=LB});var mT=x(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var jB=ah(),FB={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,jB.validateTuple)(e,"items")};ch.default=FB});var gT=x(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});var hT=ve(),qB=Te(),UB=Jr(),BB=ih(),GB={message:({params:{len:e}})=>(0,hT.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,hT._)`{limit: ${e}}`},zB={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:GB,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,qB.alwaysValidSchema)(n,t)&&(o?(0,BB.validateAdditionalItems)(e,o):e.ok((0,UB.validateArray)(e)))}};lh.default=zB});var yT=x(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});var Xr=ve(),lu=Te(),HB={message:({params:{min:e,max:t}})=>t===void 0?(0,Xr.str)`must contain at least ${e} valid item(s)`:(0,Xr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Xr._)`{minContains: ${e}}`:(0,Xr._)`{minContains: ${e}, maxContains: ${t}}`},WB={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:HB,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:s}=e,i,a,{minContains:c,maxContains:u}=n;s.opts.next?(i=c===void 0?1:c,a=u):i=1;let l=t.const("len",(0,Xr._)`${o}.length`);if(e.setParams({min:i,max:a}),a===void 0&&i===0){(0,lu.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&i>a){(0,lu.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,lu.alwaysValidSchema)(s,r)){let g=(0,Xr._)`${l} >= ${i}`;a!==void 0&&(g=(0,Xr._)`${g} && ${l} <= ${a}`),e.pass(g);return}s.items=!0;let p=t.name("valid");a===void 0&&i===1?m(p,()=>t.if(p,()=>t.break())):i===0?(t.let(p,!0),a!==void 0&&t.if((0,Xr._)`${o}.length > 0`,f)):(t.let(p,!1),f()),e.result(p,()=>e.reset());function f(){let g=t.name("_valid"),w=t.let("count",0);m(g,()=>t.if(g,()=>h(w)))}function m(g,w){t.forRange("i",0,l,v=>{e.subschema({keyword:"contains",dataProp:v,dataPropType:lu.Type.Num,compositeRule:!0},g),w()})}function h(g){t.code((0,Xr._)`${g}++`),a===void 0?t.if((0,Xr._)`${g} >= ${i}`,()=>t.assign(p,!0).break()):(t.if((0,Xr._)`${g} > ${a}`,()=>t.assign(p,!1).break()),i===1?t.assign(p,!0):t.if((0,Xr._)`${g} >= ${i}`,()=>t.assign(p,!0)))}}};uh.default=WB});var uu=x(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.validateSchemaDeps=Mn.validatePropertyDeps=Mn.error=void 0;var ph=ve(),VB=Te(),Va=Jr();Mn.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,ph.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,ph._)`{property: ${e},
20
- missingProperty: ${n},
21
- depsCount: ${t},
22
- deps: ${r}}`};var KB={keyword:"dependencies",type:"object",schemaType:"object",error:Mn.error,code(e){let[t,r]=JB(e);vT(e,t),wT(e,r)}};function JB({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 vT(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,Va.propertyInData)(r,n,i,o.opts.ownProperties);e.setParams({property:i,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(c,()=>{for(let u of a)(0,Va.checkReportMissingProp)(e,u)}):(r.if((0,ph._)`${c} && (${(0,Va.checkMissingProp)(e,a,s)})`),(0,Va.reportMissingProp)(e,s),r.else())}}Mn.validatePropertyDeps=vT;function wT(e,t=e.schema){let{gen:r,data:n,keyword:o,it:s}=e,i=r.name("valid");for(let a in t)(0,VB.alwaysValidSchema)(s,t[a])||(r.if((0,Va.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))}Mn.validateSchemaDeps=wT;Mn.default=KB});var bT=x(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});var xT=ve(),YB=Te(),XB={message:"property name must be valid",params:({params:e})=>(0,xT._)`{propertyName: ${e.propertyName}}`},QB={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:XB,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,YB.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,xT.not)(s),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(s)}};dh.default=QB});var mh=x(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});var pu=Jr(),xn=ve(),ZB=Kr(),du=Te(),eG={message:"must NOT have additional properties",params:({params:e})=>(0,xn._)`{additionalProperty: ${e.additionalProperty}}`},tG={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:eG,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,du.alwaysValidSchema)(i,r))return;let u=(0,pu.allSchemaProperties)(n.properties),l=(0,pu.allSchemaProperties)(n.patternProperties);p(),e.ok((0,xn._)`${s} === ${ZB.default.errors}`);function p(){t.forIn("key",o,w=>{!u.length&&!l.length?h(w):t.if(f(w),()=>h(w))})}function f(w){let v;if(u.length>8){let T=(0,du.schemaRefOrVal)(i,n.properties,"properties");v=(0,pu.isOwnProperty)(t,T,w)}else u.length?v=(0,xn.or)(...u.map(T=>(0,xn._)`${w} === ${T}`)):v=xn.nil;return l.length&&(v=(0,xn.or)(v,...l.map(T=>(0,xn._)`${(0,pu.usePattern)(e,T)}.test(${w})`))),(0,xn.not)(v)}function m(w){t.code((0,xn._)`delete ${o}[${w}]`)}function h(w){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){m(w);return}if(r===!1){e.setParams({additionalProperty:w}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,du.alwaysValidSchema)(i,r)){let v=t.name("valid");c.removeAdditional==="failing"?(g(w,v,!1),t.if((0,xn.not)(v),()=>{e.reset(),m(w)})):(g(w,v),a||t.if((0,xn.not)(v),()=>t.break()))}}function g(w,v,T){let R={keyword:"additionalProperties",dataProp:w,dataPropType:du.Type.Str};T===!1&&Object.assign(R,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(R,v)}}};fh.default=tG});var ET=x(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});var rG=$a(),_T=Jr(),hh=Te(),ST=mh(),nG={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&&ST.default.code(new rG.KeywordCxt(s,ST.default,"additionalProperties"));let i=(0,_T.allSchemaProperties)(r);for(let p of i)s.definedProperties.add(p);s.opts.unevaluated&&i.length&&s.props!==!0&&(s.props=hh.mergeEvaluated.props(t,(0,hh.toHash)(i),s.props));let a=i.filter(p=>!(0,hh.alwaysValidSchema)(s,r[p]));if(a.length===0)return;let c=t.name("valid");for(let p of a)u(p)?l(p):(t.if((0,_T.propertyInData)(t,o,p,s.opts.ownProperties)),l(p),s.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(c);function u(p){return s.opts.useDefaults&&!s.compositeRule&&r[p].default!==void 0}function l(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},c)}}};gh.default=nG});var PT=x(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});var TT=Jr(),fu=ve(),kT=Te(),RT=Te(),oG={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,TT.allSchemaProperties)(r),c=a.filter(g=>(0,kT.alwaysValidSchema)(s,r[g]));if(a.length===0||c.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let u=i.strictSchema&&!i.allowMatchingProperties&&o.properties,l=t.name("valid");s.props!==!0&&!(s.props instanceof fu.Name)&&(s.props=(0,RT.evaluatedPropsToName)(t,s.props));let{props:p}=s;f();function f(){for(let g of a)u&&m(g),s.allErrors?h(g):(t.var(l,!0),h(g),t.if(l))}function m(g){for(let w in u)new RegExp(g).test(w)&&(0,kT.checkStrictMode)(s,`property ${w} matches pattern ${g} (use allowMatchingProperties)`)}function h(g){t.forIn("key",n,w=>{t.if((0,fu._)`${(0,TT.usePattern)(e,g)}.test(${w})`,()=>{let v=c.includes(g);v||e.subschema({keyword:"patternProperties",schemaProp:g,dataProp:w,dataPropType:RT.Type.Str},l),s.opts.unevaluated&&p!==!0?t.assign((0,fu._)`${p}[${w}]`,!0):!v&&!s.allErrors&&t.if((0,fu.not)(l),()=>t.break())})})}}};yh.default=oG});var IT=x(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});var sG=Te(),iG={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,sG.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"}};vh.default=iG});var AT=x(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});var aG=Jr(),cG={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:aG.validateUnion,error:{message:"must match a schema in anyOf"}};wh.default=cG});var CT=x(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});var mu=ve(),lG=Te(),uG={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,mu._)`{passingSchemas: ${e.passing}}`},pG={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:uG,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(u),e.result(i,()=>e.reset(),()=>e.error(!0));function u(){s.forEach((l,p)=>{let f;(0,lG.alwaysValidSchema)(o,l)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},c),p>0&&t.if((0,mu._)`${c} && ${i}`).assign(i,!1).assign(a,(0,mu._)`[${a}, ${p}]`).else(),t.if(c,()=>{t.assign(i,!0),t.assign(a,p),f&&e.mergeEvaluated(f,mu.Name)})})}}};xh.default=pG});var $T=x(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});var dG=Te(),fG={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,dG.alwaysValidSchema)(n,s))return;let a=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(a)})}};bh.default=fG});var MT=x(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});var hu=ve(),NT=Te(),mG={message:({params:e})=>(0,hu.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,hu._)`{failingKeyword: ${e.ifClause}}`},hG={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:mG,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,NT.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=OT(n,"then"),s=OT(n,"else");if(!o&&!s)return;let i=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),o&&s){let l=t.let("ifClause");e.setParams({ifClause:l}),t.if(a,u("then",l),u("else",l))}else o?t.if(a,u("then")):t.if((0,hu.not)(a),u("else"));e.pass(i,()=>e.error(!0));function c(){let l=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(l)}function u(l,p){return()=>{let f=e.subschema({keyword:l},a);t.assign(i,a),e.mergeValidEvaluated(f,i),p?t.assign(p,(0,hu._)`${l}`):e.setParams({ifClause:l})}}}};function OT(e,t){let r=e.schema[t];return r!==void 0&&!(0,NT.alwaysValidSchema)(e,r)}_h.default=hG});var DT=x(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});var gG=Te(),yG={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,gG.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Sh.default=yG});var LT=x(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});var vG=ih(),wG=mT(),xG=ah(),bG=gT(),_G=yT(),SG=uu(),EG=bT(),TG=mh(),kG=ET(),RG=PT(),PG=IT(),IG=AT(),AG=CT(),CG=$T(),$G=MT(),OG=DT();function NG(e=!1){let t=[PG.default,IG.default,AG.default,CG.default,$G.default,OG.default,EG.default,TG.default,SG.default,kG.default,RG.default];return e?t.push(wG.default,bG.default):t.push(vG.default,xG.default),t.push(_G.default),t}Eh.default=NG});var kh=x(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.dynamicAnchor=void 0;var Th=ve(),MG=Kr(),jT=Na(),DG=ou(),LG={keyword:"$dynamicAnchor",schemaType:"string",code:e=>FT(e,e.schema)};function FT(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let o=(0,Th._)`${MG.default.dynamicAnchors}${(0,Th.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:jG(e);r.if((0,Th._)`!${o}`,()=>r.assign(o,s))}Ka.dynamicAnchor=FT;function jG(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:o,baseId:s,localRefs:i,meta:a}=t.root,{schemaId:c}=n.opts,u=new jT.SchemaEnv({schema:r,schemaId:c,root:o,baseId:s,localRefs:i,meta:a});return jT.compileSchema.call(n,u),(0,DG.getValidate)(e,u)}Ka.default=LG});var Rh=x(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.dynamicRef=void 0;var qT=ve(),FG=Kr(),UT=ou(),qG={keyword:"$dynamicRef",schemaType:"string",code:e=>BT(e,e.schema)};function BT(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 u=r.let("_v",(0,qT._)`${FG.default.dynamicAnchors}${(0,qT.getProperty)(s)}`);r.if(u,a(u,c),a(o.validateName,c))}else a(o.validateName,c)()}function a(c,u){return u?()=>r.block(()=>{(0,UT.callRef)(e,c),r.let(u,!0)}):()=>(0,UT.callRef)(e,c)}}Ja.dynamicRef=BT;Ja.default=qG});var GT=x(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});var UG=kh(),BG=Te(),GG={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,UG.dynamicAnchor)(e,""):(0,BG.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Ph.default=GG});var zT=x(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});var zG=Rh(),HG={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,zG.dynamicRef)(e,e.schema)};Ih.default=HG});var HT=x(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});var WG=kh(),VG=Rh(),KG=GT(),JG=zT(),YG=[WG.default,VG.default,KG.default,JG.default];Ah.default=YG});var VT=x(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});var WT=uu(),XG={keyword:"dependentRequired",type:"object",schemaType:"object",error:WT.error,code:e=>(0,WT.validatePropertyDeps)(e)};Ch.default=XG});var KT=x($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});var QG=uu(),ZG={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,QG.validateSchemaDeps)(e)};$h.default=ZG});var JT=x(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});var ez=Te(),tz={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,ez.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Oh.default=tz});var YT=x(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});var rz=VT(),nz=KT(),oz=JT(),sz=[rz.default,nz.default,oz.default];Nh.default=sz});var QT=x(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});var Eo=ve(),XT=Te(),iz=Kr(),az={message:"must NOT have unevaluated properties",params:({params:e})=>(0,Eo._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},cz={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:az,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 Eo.Name?t.if((0,Eo._)`${a} !== true`,()=>t.forIn("key",n,p=>t.if(u(a,p),()=>c(p)))):a!==!0&&t.forIn("key",n,p=>a===void 0?c(p):t.if(l(a,p),()=>c(p))),s.props=!0,e.ok((0,Eo._)`${o} === ${iz.default.errors}`);function c(p){if(r===!1){e.setParams({unevaluatedProperty:p}),e.error(),i||t.break();return}if(!(0,XT.alwaysValidSchema)(s,r)){let f=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:p,dataPropType:XT.Type.Str},f),i||t.if((0,Eo.not)(f),()=>t.break())}}function u(p,f){return(0,Eo._)`!${p} || !${p}[${f}]`}function l(p,f){let m=[];for(let h in p)p[h]===!0&&m.push((0,Eo._)`${f} !== ${h}`);return(0,Eo.and)(...m)}}};Mh.default=cz});var ek=x(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});var ss=ve(),ZT=Te(),lz={message:({params:{len:e}})=>(0,ss.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ss._)`{limit: ${e}}`},uz={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:lz,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,ss._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,ss._)`${i} > ${s}`);else if(typeof r=="object"&&!(0,ZT.alwaysValidSchema)(o,r)){let c=t.var("valid",(0,ss._)`${i} <= ${s}`);t.if((0,ss.not)(c),()=>a(c,s)),e.ok(c)}o.items=!0;function a(c,u){t.forRange("i",u,i,l=>{e.subschema({keyword:"unevaluatedItems",dataProp:l,dataPropType:ZT.Type.Num},c),o.allErrors||t.if((0,ss.not)(c),()=>t.break())})}}};Dh.default=uz});var tk=x(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});var pz=QT(),dz=ek(),fz=[pz.default,dz.default];Lh.default=fz});var rk=x(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});var Pt=ve(),mz={message:({schemaCode:e})=>(0,Pt.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Pt._)`{format: ${e}}`},hz={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:mz,code(e,t){let{gen:r,data:n,$data:o,schema:s,schemaCode:i,it:a}=e,{opts:c,errSchemaPath:u,schemaEnv:l,self:p}=a;if(!c.validateFormats)return;o?f():m();function f(){let h=r.scopeValue("formats",{ref:p.formats,code:c.code.formats}),g=r.const("fDef",(0,Pt._)`${h}[${i}]`),w=r.let("fType"),v=r.let("format");r.if((0,Pt._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(w,(0,Pt._)`${g}.type || "string"`).assign(v,(0,Pt._)`${g}.validate`),()=>r.assign(w,(0,Pt._)`"string"`).assign(v,g)),e.fail$data((0,Pt.or)(T(),R()));function T(){return c.strictSchema===!1?Pt.nil:(0,Pt._)`${i} && !${v}`}function R(){let P=l.$async?(0,Pt._)`(${g}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,Pt._)`${v}(${n})`,I=(0,Pt._)`(typeof ${v} == "function" ? ${P} : ${v}.test(${n}))`;return(0,Pt._)`${v} && ${v} !== true && ${w} === ${t} && !${I}`}}function m(){let h=p.formats[s];if(!h){T();return}if(h===!0)return;let[g,w,v]=R(h);g===t&&e.pass(P());function T(){if(c.strictSchema===!1){p.logger.warn(I());return}throw new Error(I());function I(){return`unknown format "${s}" ignored in schema at path "${u}"`}}function R(I){let j=I instanceof RegExp?(0,Pt.regexpCode)(I):c.code.formats?(0,Pt._)`${c.code.formats}${(0,Pt.getProperty)(s)}`:void 0,F=r.scopeValue("formats",{key:s,ref:I,code:j});return typeof I=="object"&&!(I instanceof RegExp)?[I.type||"string",I.validate,(0,Pt._)`${F}.validate`]:["string",I,F]}function P(){if(typeof h=="object"&&!(h instanceof RegExp)&&h.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Pt._)`await ${v}(${n})`}return typeof w=="function"?(0,Pt._)`${v}(${n})`:(0,Pt._)`${v}.test(${n})`}}}};jh.default=hz});var nk=x(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0});var gz=rk(),yz=[gz.default];Fh.default=yz});var ok=x(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.contentVocabulary=oi.metadataVocabulary=void 0;oi.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];oi.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var ik=x(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});var vz=YE(),wz=uT(),xz=LT(),bz=HT(),_z=YT(),Sz=tk(),Ez=nk(),sk=ok(),Tz=[bz.default,vz.default,wz.default,(0,xz.default)(!0),Ez.default,sk.metadataVocabulary,sk.contentVocabulary,_z.default,Sz.default];qh.default=Tz});var ck=x(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.DiscrError=void 0;var ak;(function(e){e.Tag="tag",e.Mapping="mapping"})(ak||(gu.DiscrError=ak={}))});var uk=x(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});var si=ve(),Uh=ck(),lk=Na(),kz=Oa(),Rz=Te(),Pz={message:({params:{discrError:e,tagName:t}})=>e===Uh.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,si._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},Iz={keyword:"discriminator",type:"object",schemaType:"object",error:Pz,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),u=t.const("tag",(0,si._)`${r}${(0,si.getProperty)(a)}`);t.if((0,si._)`typeof ${u} == "string"`,()=>l(),()=>e.error(!1,{discrError:Uh.DiscrError.Tag,tag:u,tagName:a})),e.ok(c);function l(){let m=f();t.if(!1);for(let h in m)t.elseIf((0,si._)`${u} === ${h}`),t.assign(c,p(m[h]));t.else(),e.error(!1,{discrError:Uh.DiscrError.Mapping,tag:u,tagName:a}),t.endIf()}function p(m){let h=t.name("valid"),g=e.subschema({keyword:"oneOf",schemaProp:m},h);return e.mergeEvaluated(g,si.Name),h}function f(){var m;let h={},g=v(o),w=!0;for(let P=0;P<i.length;P++){let I=i[P];if(I?.$ref&&!(0,Rz.schemaHasRulesButRef)(I,s.self.RULES)){let F=I.$ref;if(I=lk.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,F),I instanceof lk.SchemaEnv&&(I=I.schema),I===void 0)throw new kz.default(s.opts.uriResolver,s.baseId,F)}let j=(m=I?.properties)===null||m===void 0?void 0:m[a];if(typeof j!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);w=w&&(g||v(I)),T(j,P)}if(!w)throw new Error(`discriminator: "${a}" must be required`);return h;function v({required:P}){return Array.isArray(P)&&P.includes(a)}function T(P,I){if(P.const)R(P.const,I);else if(P.enum)for(let j of P.enum)R(j,I);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function R(P,I){if(typeof P!="string"||P in h)throw new Error(`discriminator: "${a}" values must be unique strings`);h[P]=I}}}};Bh.default=Iz});var pk=x((Yae,Az)=>{Az.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 dk=x((Xae,Cz)=>{Cz.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 fk=x((Qae,$z)=>{$z.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 mk=x((Zae,Oz)=>{Oz.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 hk=x((ece,Nz)=>{Nz.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 gk=x((tce,Mz)=>{Mz.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 yk=x((rce,Dz)=>{Dz.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 vk=x((nce,Lz)=>{Lz.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 wk=x(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});var jz=pk(),Fz=dk(),qz=fk(),Uz=mk(),Bz=hk(),Gz=gk(),zz=yk(),Hz=vk(),Wz=["/properties"];function Vz(e){return[jz,Fz,qz,Uz,Bz,t(this,Gz),zz,t(this,Hz)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,Wz):n}}Gh.default=Vz});var xk=x((lt,Hh)=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.MissingRefError=lt.ValidationError=lt.CodeGen=lt.Name=lt.nil=lt.stringify=lt.str=lt._=lt.KeywordCxt=lt.Ajv2020=void 0;var Kz=HE(),Jz=ik(),Yz=uk(),Xz=wk(),zh="https://json-schema.org/draft/2020-12/schema",ii=class extends Kz.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),Jz.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Yz.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Xz.default.call(this,t),this.refs["http://json-schema.org/schema"]=zh)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(zh)?zh:void 0)}};lt.Ajv2020=ii;Hh.exports=lt=ii;Hh.exports.Ajv2020=ii;Object.defineProperty(lt,"__esModule",{value:!0});lt.default=ii;var Qz=$a();Object.defineProperty(lt,"KeywordCxt",{enumerable:!0,get:function(){return Qz.KeywordCxt}});var ai=ve();Object.defineProperty(lt,"_",{enumerable:!0,get:function(){return ai._}});Object.defineProperty(lt,"str",{enumerable:!0,get:function(){return ai.str}});Object.defineProperty(lt,"stringify",{enumerable:!0,get:function(){return ai.stringify}});Object.defineProperty(lt,"nil",{enumerable:!0,get:function(){return ai.nil}});Object.defineProperty(lt,"Name",{enumerable:!0,get:function(){return ai.Name}});Object.defineProperty(lt,"CodeGen",{enumerable:!0,get:function(){return ai.CodeGen}});var Zz=Yl();Object.defineProperty(lt,"ValidationError",{enumerable:!0,get:function(){return Zz.default}});var eH=Oa();Object.defineProperty(lt,"MissingRefError",{enumerable:!0,get:function(){return eH.default}})});var Pk=x(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.formatNames=Ln.fastFormats=Ln.fullFormats=void 0;function Dn(e,t){return{validate:e,compare:t}}Ln.fullFormats={date:Dn(Ek,Jh),time:Dn(Vh(!0),Yh),"date-time":Dn(bk(!0),kk),"iso-time":Dn(Vh(),Tk),"iso-date-time":Dn(bk(),Rk),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:iH,"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:fH,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:aH,int32:{type:"number",validate:uH},int64:{type:"number",validate:pH},float:{type:"number",validate:Sk},double:{type:"number",validate:Sk},password:!0,binary:!0};Ln.fastFormats={...Ln.fullFormats,date:Dn(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,Jh),time:Dn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Yh),"date-time":Dn(/^\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,kk),"iso-time":Dn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Tk),"iso-date-time":Dn(/^\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,Rk),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};Ln.formatNames=Object.keys(Ln.fullFormats);function tH(e){return e%4===0&&(e%100!==0||e%400===0)}var rH=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,nH=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Ek(e){let t=rH.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&&tH(r)?29:nH[n])}function Jh(e,t){if(e&&t)return e>t?1:e<t?-1:0}var Wh=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function Vh(e){return function(r){let n=Wh.exec(r);if(!n)return!1;let o=+n[1],s=+n[2],i=+n[3],a=n[4],c=n[5]==="-"?-1:1,u=+(n[6]||0),l=+(n[7]||0);if(u>23||l>59||e&&!a)return!1;if(o<=23&&s<=59&&i<60)return!0;let p=s-l*c,f=o-u*c-(p<0?1:0);return(f===23||f===-1)&&(p===59||p===-1)&&i<61}}function Yh(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 Tk(e,t){if(!(e&&t))return;let r=Wh.exec(e),n=Wh.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 Kh=/t|\s/i;function bk(e){let t=Vh(e);return function(n){let o=n.split(Kh);return o.length===2&&Ek(o[0])&&t(o[1])}}function kk(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),n=new Date(t).valueOf();if(r&&n)return r-n}function Rk(e,t){if(!(e&&t))return;let[r,n]=e.split(Kh),[o,s]=t.split(Kh),i=Jh(r,o);if(i!==void 0)return i||Yh(n,s)}var oH=/\/|:/,sH=/^(?:[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 iH(e){return oH.test(e)&&sH.test(e)}var _k=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function aH(e){return _k.lastIndex=0,_k.test(e)}var cH=-(2**31),lH=2**31-1;function uH(e){return Number.isInteger(e)&&e<=lH&&e>=cH}function pH(e){return Number.isInteger(e)}function Sk(){return!0}var dH=/[^\\]\\Z/;function fH(e){if(dH.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var Qa=x(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.regexpCode=Ue.getEsmExportName=Ue.getProperty=Ue.safeStringify=Ue.stringify=Ue.strConcat=Ue.addCodeArg=Ue.str=Ue._=Ue.nil=Ue._Code=Ue.Name=Ue.IDENTIFIER=Ue._CodeOrName=void 0;var Ya=class{};Ue._CodeOrName=Ya;Ue.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var is=class extends Ya{constructor(t){if(super(),!Ue.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}}};Ue.Name=is;var Qr=class extends Ya{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 is&&(r[n.str]=(r[n.str]||0)+1),r),{})}};Ue._Code=Qr;Ue.nil=new Qr("");function Ik(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Qh(r,t[n]),r.push(e[++n]);return new Qr(r)}Ue._=Ik;var Xh=new Qr("+");function Ak(e,...t){let r=[Xa(e[0])],n=0;for(;n<t.length;)r.push(Xh),Qh(r,t[n]),r.push(Xh,Xa(e[++n]));return mH(r),new Qr(r)}Ue.str=Ak;function Qh(e,t){t instanceof Qr?e.push(...t._items):t instanceof is?e.push(t):e.push(yH(t))}Ue.addCodeArg=Qh;function mH(e){let t=1;for(;t<e.length-1;){if(e[t]===Xh){let r=hH(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function hH(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof is||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 is))return`"${e}${t.slice(1)}`}function gH(e,t){return t.emptyStr()?e:e.emptyStr()?t:Ak`${e}${t}`}Ue.strConcat=gH;function yH(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Xa(Array.isArray(e)?e.join(","):e)}function vH(e){return new Qr(Xa(e))}Ue.stringify=vH;function Xa(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Ue.safeStringify=Xa;function wH(e){return typeof e=="string"&&Ue.IDENTIFIER.test(e)?new Qr(`.${e}`):Ik`[${e}]`}Ue.getProperty=wH;function xH(e){if(typeof e=="string"&&Ue.IDENTIFIER.test(e))return new Qr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Ue.getEsmExportName=xH;function bH(e){return new Qr(e.toString())}Ue.regexpCode=bH});var tg=x(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.ValueScope=Pr.ValueScopeName=Pr.Scope=Pr.varKinds=Pr.UsedValueState=void 0;var Rr=Qa(),Zh=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},yu;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(yu||(Pr.UsedValueState=yu={}));Pr.varKinds={const:new Rr.Name("const"),let:new Rr.Name("let"),var:new Rr.Name("var")};var vu=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Rr.Name?t:this.name(t)}name(t){return new Rr.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}}};Pr.Scope=vu;var wu=class extends Rr.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Rr._)`.${new Rr.Name(r)}[${n}]`}};Pr.ValueScopeName=wu;var _H=(0,Rr._)`\n`,eg=class extends vu{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?_H:Rr.nil}}get(){return this._scope}name(t){return new wu(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 l=a.get(i);if(l)return l}else a=this._values[s]=new Map;a.set(i,o);let c=this._scope[s]||(this._scope[s]=[]),u=c.length;return c[u]=r.ref,o.setValue(r,{property:s,itemIndex:u}),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,Rr._)`${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=Rr.nil;for(let i in t){let a=t[i];if(!a)continue;let c=n[i]=n[i]||new Map;a.forEach(u=>{if(c.has(u))return;c.set(u,yu.Started);let l=r(u);if(l){let p=this.opts.es5?Pr.varKinds.var:Pr.varKinds.const;s=(0,Rr._)`${s}${p} ${u} = ${l};${this.opts._n}`}else if(l=o?.(u))s=(0,Rr._)`${s}${l}${this.opts._n}`;else throw new Zh(u);c.set(u,yu.Completed)})}return s}};Pr.ValueScope=eg});var be=x(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.or=Se.and=Se.not=Se.CodeGen=Se.operators=Se.varKinds=Se.ValueScopeName=Se.ValueScope=Se.Scope=Se.Name=Se.regexpCode=Se.stringify=Se.getProperty=Se.nil=Se.strConcat=Se.str=Se._=void 0;var Ce=Qa(),bn=tg(),To=Qa();Object.defineProperty(Se,"_",{enumerable:!0,get:function(){return To._}});Object.defineProperty(Se,"str",{enumerable:!0,get:function(){return To.str}});Object.defineProperty(Se,"strConcat",{enumerable:!0,get:function(){return To.strConcat}});Object.defineProperty(Se,"nil",{enumerable:!0,get:function(){return To.nil}});Object.defineProperty(Se,"getProperty",{enumerable:!0,get:function(){return To.getProperty}});Object.defineProperty(Se,"stringify",{enumerable:!0,get:function(){return To.stringify}});Object.defineProperty(Se,"regexpCode",{enumerable:!0,get:function(){return To.regexpCode}});Object.defineProperty(Se,"Name",{enumerable:!0,get:function(){return To.Name}});var Su=tg();Object.defineProperty(Se,"Scope",{enumerable:!0,get:function(){return Su.Scope}});Object.defineProperty(Se,"ValueScope",{enumerable:!0,get:function(){return Su.ValueScope}});Object.defineProperty(Se,"ValueScopeName",{enumerable:!0,get:function(){return Su.ValueScopeName}});Object.defineProperty(Se,"varKinds",{enumerable:!0,get:function(){return Su.varKinds}});Se.operators={GT:new Ce._Code(">"),GTE:new Ce._Code(">="),LT:new Ce._Code("<"),LTE:new Ce._Code("<="),EQ:new Ce._Code("==="),NEQ:new Ce._Code("!=="),NOT:new Ce._Code("!"),OR:new Ce._Code("||"),AND:new Ce._Code("&&"),ADD:new Ce._Code("+")};var Xn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},rg=class extends Xn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?bn.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=li(this.rhs,t,r)),this}get names(){return this.rhs instanceof Ce._CodeOrName?this.rhs.names:{}}},xu=class extends Xn{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 Ce.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=li(this.rhs,t,r),this}get names(){let t=this.lhs instanceof Ce.Name?{}:{...this.lhs.names};return _u(t,this.rhs)}},ng=class extends xu{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},og=class extends Xn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},sg=class extends Xn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},ig=class extends Xn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},ag=class extends Xn{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=li(this.code,t,r),this}get names(){return this.code instanceof Ce._CodeOrName?this.code.names:{}}},Za=class extends Xn{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)||(SH(t,s.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>ls(t,r.names),{})}},Qn=class extends Za{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},cg=class extends Za{},ci=class extends Qn{};ci.kind="else";var as=class e extends Qn{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 ci(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(Ck(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=li(this.condition,t,r),this}get names(){let t=super.names;return _u(t,this.condition),this.else&&ls(t,this.else.names),t}};as.kind="if";var cs=class extends Qn{};cs.kind="for";var lg=class extends cs{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=li(this.iteration,t,r),this}get names(){return ls(super.names,this.iteration.names)}},ug=class extends cs{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?bn.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=_u(super.names,this.from);return _u(t,this.to)}},bu=class extends cs{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=li(this.iterable,t,r),this}get names(){return ls(super.names,this.iterable.names)}},ec=class extends Qn{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)}};ec.kind="func";var tc=class extends Za{render(t){return"return "+super.render(t)}};tc.kind="return";var pg=class extends Qn{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&&ls(t,this.catch.names),this.finally&&ls(t,this.finally.names),t}},rc=class extends Qn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};rc.kind="catch";var nc=class extends Qn{render(t){return"finally"+super.render(t)}};nc.kind="finally";var dg=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
23
- `:""},this._extScope=t,this._scope=new bn.Scope({parent:t}),this._nodes=[new cg]}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 rg(t,s,n)),s}const(t,r,n){return this._def(bn.varKinds.const,t,r,n)}let(t,r,n){return this._def(bn.varKinds.let,t,r,n)}var(t,r,n){return this._def(bn.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new xu(t,r,n))}add(t,r){return this._leafNode(new ng(t,Se.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==Ce.nil&&this._leafNode(new ag(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,Ce.addCodeArg)(r,o));return r.push("}"),new Ce._Code(r)}if(t,r,n){if(this._blockNode(new as(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 as(t))}else(){return this._elseNode(new ci)}endIf(){return this._endBlockNode(as,ci)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new lg(t),r)}forRange(t,r,n,o,s=this.opts.es5?bn.varKinds.var:bn.varKinds.let){let i=this._scope.toName(t);return this._for(new ug(s,i,r,n),()=>o(i))}forOf(t,r,n,o=bn.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let i=r instanceof Ce.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,Ce._)`${i}.length`,a=>{this.var(s,(0,Ce._)`${i}[${a}]`),n(s)})}return this._for(new bu("of",o,s,r),()=>n(s))}forIn(t,r,n,o=this.opts.es5?bn.varKinds.var:bn.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,Ce._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new bu("in",o,s,r),()=>n(s))}endFor(){return this._endBlockNode(cs)}label(t){return this._leafNode(new og(t))}break(t){return this._leafNode(new sg(t))}return(t){let r=new tc;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(tc)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new pg;if(this._blockNode(o),this.code(t),r){let s=this.name("e");this._currNode=o.catch=new rc(s),r(s)}return n&&(this._currNode=o.finally=new nc,this.code(n)),this._endBlockNode(rc,nc)}throw(t){return this._leafNode(new ig(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=Ce.nil,n,o){return this._blockNode(new ec(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(ec)}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 as))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}};Se.CodeGen=dg;function ls(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function _u(e,t){return t instanceof Ce._CodeOrName?ls(e,t.names):e}function li(e,t,r){if(e instanceof Ce.Name)return n(e);if(!o(e))return e;return new Ce._Code(e._items.reduce((s,i)=>(i instanceof Ce.Name&&(i=n(i)),i instanceof Ce._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 Ce._Code&&s._items.some(i=>i instanceof Ce.Name&&t[i.str]===1&&r[i.str]!==void 0)}}function SH(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function Ck(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Ce._)`!${fg(e)}`}Se.not=Ck;var EH=$k(Se.operators.AND);function TH(...e){return e.reduce(EH)}Se.and=TH;var kH=$k(Se.operators.OR);function RH(...e){return e.reduce(kH)}Se.or=RH;function $k(e){return(t,r)=>t===Ce.nil?r:r===Ce.nil?t:(0,Ce._)`${fg(t)} ${e} ${fg(r)}`}function fg(e){return e instanceof Ce.Name?e:(0,Ce._)`(${e})`}});var Le=x(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=be(),PH=Qa();function IH(e){let t={};for(let r of e)t[r]=!0;return t}ke.toHash=IH;function AH(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Mk(e,t),!Dk(t,e.self.RULES.all))}ke.alwaysValidSchema=AH;function Mk(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]||Fk(e,`unknown keyword: "${s}"`)}ke.checkUnknownRules=Mk;function Dk(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}ke.schemaHasRules=Dk;function CH(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=CH;function $H({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=$H;function OH(e){return Lk(decodeURIComponent(e))}ke.unescapeFragment=OH;function NH(e){return encodeURIComponent(hg(e))}ke.escapeFragment=NH;function hg(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ke.escapeJsonPointer=hg;function Lk(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ke.unescapeJsonPointer=Lk;function MH(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}ke.eachItem=MH;function Ok({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:Ok({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} || {}`),gg(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:jk}),items:Ok({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 jk(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Xe._)`{}`);return t!==void 0&&gg(e,r,t),r}ke.evaluatedPropsToName=jk;function gg(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Xe._)`${t}${(0,Xe.getProperty)(n)}`,!0))}ke.setEvaluated=gg;var Nk={};function DH(e,t){return e.scopeValue("func",{ref:t,code:Nk[t.code]||(Nk[t.code]=new PH._Code(t.code))})}ke.useFunc=DH;var mg;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(mg||(ke.Type=mg={}));function LH(e,t,r){if(e instanceof Xe.Name){let n=t===mg.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():"/"+hg(e)}ke.getErrorPath=LH;function Fk(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=Fk});var Zn=x(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});var or=be(),jH={data:new or.Name("data"),valCxt:new or.Name("valCxt"),instancePath:new or.Name("instancePath"),parentData:new or.Name("parentData"),parentDataProperty:new or.Name("parentDataProperty"),rootData:new or.Name("rootData"),dynamicAnchors:new or.Name("dynamicAnchors"),vErrors:new or.Name("vErrors"),errors:new or.Name("errors"),this:new or.Name("this"),self:new or.Name("self"),scope:new or.Name("scope"),json:new or.Name("json"),jsonPos:new or.Name("jsonPos"),jsonLen:new or.Name("jsonLen"),jsonPart:new or.Name("jsonPart")};yg.default=jH});var oc=x(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.extendErrors=sr.resetErrorsCount=sr.reportExtraError=sr.reportError=sr.keyword$DataError=sr.keywordError=void 0;var je=be(),Eu=Le(),dr=Zn();sr.keywordError={message:({keyword:e})=>(0,je.str)`must pass "${e}" keyword validation`};sr.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,je.str)`"${e}" keyword must be ${t} ($data)`:(0,je.str)`"${e}" keyword is invalid ($data)`};function FH(e,t=sr.keywordError,r,n){let{it:o}=e,{gen:s,compositeRule:i,allErrors:a}=o,c=Bk(e,t,r);n??(i||a)?qk(s,c):Uk(o,(0,je._)`[${c}]`)}sr.reportError=FH;function qH(e,t=sr.keywordError,r){let{it:n}=e,{gen:o,compositeRule:s,allErrors:i}=n,a=Bk(e,t,r);qk(o,a),s||i||Uk(n,dr.default.vErrors)}sr.reportExtraError=qH;function UH(e,t){e.assign(dr.default.errors,t),e.if((0,je._)`${dr.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,je._)`${dr.default.vErrors}.length`,t),()=>e.assign(dr.default.vErrors,null)))}sr.resetErrorsCount=UH;function BH({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,dr.default.errors,a=>{e.const(i,(0,je._)`${dr.default.vErrors}[${a}]`),e.if((0,je._)`${i}.instancePath === undefined`,()=>e.assign((0,je._)`${i}.instancePath`,(0,je.strConcat)(dr.default.instancePath,s.errorPath))),e.assign((0,je._)`${i}.schemaPath`,(0,je.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,je._)`${i}.schema`,r),e.assign((0,je._)`${i}.data`,n))})}sr.extendErrors=BH;function qk(e,t){let r=e.const("err",t);e.if((0,je._)`${dr.default.vErrors} === null`,()=>e.assign(dr.default.vErrors,(0,je._)`[${r}]`),(0,je._)`${dr.default.vErrors}.push(${r})`),e.code((0,je._)`${dr.default.errors}++`)}function Uk(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,je._)`new ${e.ValidationError}(${t})`):(r.assign((0,je._)`${n}.errors`,t),r.return(!1))}var us={keyword:new je.Name("keyword"),schemaPath:new je.Name("schemaPath"),params:new je.Name("params"),propertyName:new je.Name("propertyName"),message:new je.Name("message"),schema:new je.Name("schema"),parentSchema:new je.Name("parentSchema")};function Bk(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,je._)`{}`:GH(e,t,r)}function GH(e,t,r={}){let{gen:n,it:o}=e,s=[zH(o,r),HH(e,r)];return WH(e,t,s),n.object(...s)}function zH({errorPath:e},{instancePath:t}){let r=t?(0,je.str)`${e}${(0,Eu.getErrorPath)(t,Eu.Type.Str)}`:e;return[dr.default.instancePath,(0,je.strConcat)(dr.default.instancePath,r)]}function HH({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,je.str)`${t}/${e}`;return r&&(o=(0,je.str)`${o}${(0,Eu.getErrorPath)(r,Eu.Type.Str)}`),[us.schemaPath,o]}function WH(e,{params:t,message:r},n){let{keyword:o,data:s,schemaValue:i,it:a}=e,{opts:c,propertyName:u,topSchemaRef:l,schemaPath:p}=a;n.push([us.keyword,o],[us.params,typeof t=="function"?t(e):t||(0,je._)`{}`]),c.messages&&n.push([us.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([us.schema,i],[us.parentSchema,(0,je._)`${l}${p}`],[dr.default.data,s]),u&&n.push([us.propertyName,u])}});var zk=x(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.boolOrEmptySchema=ui.topBoolOrEmptySchema=void 0;var VH=oc(),KH=be(),JH=Zn(),YH={message:"boolean schema is false"};function XH(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Gk(e,!1):typeof r=="object"&&r.$async===!0?t.return(JH.default.data):(t.assign((0,KH._)`${n}.errors`,null),t.return(!0))}ui.topBoolOrEmptySchema=XH;function QH(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Gk(e)):r.var(t,!0)}ui.boolOrEmptySchema=QH;function Gk(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,VH.reportError)(o,YH,void 0,t)}});var vg=x(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.getRules=pi.isJSONType=void 0;var ZH=["string","number","integer","boolean","null","object","array"],e3=new Set(ZH);function t3(e){return typeof e=="string"&&e3.has(e)}pi.isJSONType=t3;function r3(){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:{}}}pi.getRules=r3});var wg=x(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.shouldUseRule=ko.shouldUseGroup=ko.schemaHasRulesForType=void 0;function n3({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Hk(e,n)}ko.schemaHasRulesForType=n3;function Hk(e,t){return t.rules.some(r=>Wk(e,r))}ko.shouldUseGroup=Hk;function Wk(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))}ko.shouldUseRule=Wk});var sc=x(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.reportTypeError=ir.checkDataTypes=ir.checkDataType=ir.coerceAndCheckDataType=ir.getJSONTypes=ir.getSchemaTypes=ir.DataType=void 0;var o3=vg(),s3=wg(),i3=oc(),xe=be(),Vk=Le(),di;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(di||(ir.DataType=di={}));function a3(e){let t=Kk(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}ir.getSchemaTypes=a3;function Kk(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(o3.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}ir.getJSONTypes=Kk;function c3(e,t){let{gen:r,data:n,opts:o}=e,s=l3(t,o.coerceTypes),i=t.length>0&&!(s.length===0&&t.length===1&&(0,s3.schemaHasRulesForType)(e,t[0]));if(i){let a=bg(t,n,o.strictNumbers,di.Wrong);r.if(a,()=>{s.length?u3(e,t,s):_g(e)})}return i}ir.coerceAndCheckDataType=c3;var Jk=new Set(["string","number","integer","boolean","null"]);function l3(e,t){return t?e.filter(r=>Jk.has(r)||t==="array"&&r==="array"):[]}function u3(e,t,r){let{gen:n,data:o,opts:s}=e,i=n.let("dataType",(0,xe._)`typeof ${o}`),a=n.let("coerced",(0,xe._)`undefined`);s.coerceTypes==="array"&&n.if((0,xe._)`${i} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,xe._)`${o}[0]`).assign(i,(0,xe._)`typeof ${o}`).if(bg(t,o,s.strictNumbers),()=>n.assign(a,o))),n.if((0,xe._)`${a} !== undefined`);for(let u of r)(Jk.has(u)||u==="array"&&s.coerceTypes==="array")&&c(u);n.else(),_g(e),n.endIf(),n.if((0,xe._)`${a} !== undefined`,()=>{n.assign(o,a),p3(e,a)});function c(u){switch(u){case"string":n.elseIf((0,xe._)`${i} == "number" || ${i} == "boolean"`).assign(a,(0,xe._)`"" + ${o}`).elseIf((0,xe._)`${o} === null`).assign(a,(0,xe._)`""`);return;case"number":n.elseIf((0,xe._)`${i} == "boolean" || ${o} === null
24
- || (${i} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,xe._)`+${o}`);return;case"integer":n.elseIf((0,xe._)`${i} === "boolean" || ${o} === null
25
- || (${i} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,xe._)`+${o}`);return;case"boolean":n.elseIf((0,xe._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,xe._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,xe._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,xe._)`${i} === "string" || ${i} === "number"
26
- || ${i} === "boolean" || ${o} === null`).assign(a,(0,xe._)`[${o}]`)}}}function p3({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,xe._)`${t} !== undefined`,()=>e.assign((0,xe._)`${t}[${r}]`,n))}function xg(e,t,r,n=di.Correct){let o=n===di.Correct?xe.operators.EQ:xe.operators.NEQ,s;switch(e){case"null":return(0,xe._)`${t} ${o} null`;case"array":s=(0,xe._)`Array.isArray(${t})`;break;case"object":s=(0,xe._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=i((0,xe._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=i();break;default:return(0,xe._)`typeof ${t} ${o} ${e}`}return n===di.Correct?s:(0,xe.not)(s);function i(a=xe.nil){return(0,xe.and)((0,xe._)`typeof ${t} == "number"`,a,r?(0,xe._)`isFinite(${t})`:xe.nil)}}ir.checkDataType=xg;function bg(e,t,r,n){if(e.length===1)return xg(e[0],t,r,n);let o,s=(0,Vk.toHash)(e);if(s.array&&s.object){let i=(0,xe._)`typeof ${t} != "object"`;o=s.null?i:(0,xe._)`!${t} || ${i}`,delete s.null,delete s.array,delete s.object}else o=xe.nil;s.number&&delete s.integer;for(let i in s)o=(0,xe.and)(o,xg(i,t,r,n));return o}ir.checkDataTypes=bg;var d3={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,xe._)`{type: ${e}}`:(0,xe._)`{type: ${t}}`};function _g(e){let t=f3(e);(0,i3.reportError)(t,d3)}ir.reportTypeError=_g;function f3(e){let{gen:t,data:r,schema:n}=e,o=(0,Vk.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var Xk=x(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.assignDefaults=void 0;var fi=be(),m3=Le();function h3(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)Yk(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,s)=>Yk(e,s,o.default))}Tu.assignDefaults=h3;function Yk(e,t,r){let{gen:n,compositeRule:o,data:s,opts:i}=e;if(r===void 0)return;let a=(0,fi._)`${s}${(0,fi.getProperty)(t)}`;if(o){(0,m3.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,fi._)`${a} === undefined`;i.useDefaults==="empty"&&(c=(0,fi._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,fi._)`${a} = ${(0,fi.stringify)(r)}`)}});var Zr=x(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.validateUnion=Ke.validateArray=Ke.usePattern=Ke.callValidateCode=Ke.schemaProperties=Ke.allSchemaProperties=Ke.noPropertyInData=Ke.propertyInData=Ke.isOwnProperty=Ke.hasPropFunc=Ke.reportMissingProp=Ke.checkMissingProp=Ke.checkReportMissingProp=void 0;var ut=be(),Sg=Le(),Ro=Zn(),g3=Le();function y3(e,t){let{gen:r,data:n,it:o}=e;r.if(Tg(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,ut._)`${t}`},!0),e.error()})}Ke.checkReportMissingProp=y3;function v3({gen:e,data:t,it:{opts:r}},n,o){return(0,ut.or)(...n.map(s=>(0,ut.and)(Tg(e,t,s,r.ownProperties),(0,ut._)`${o} = ${s}`)))}Ke.checkMissingProp=v3;function w3(e,t){e.setParams({missingProperty:t},!0),e.error()}Ke.reportMissingProp=w3;function Qk(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ut._)`Object.prototype.hasOwnProperty`})}Ke.hasPropFunc=Qk;function Eg(e,t,r){return(0,ut._)`${Qk(e)}.call(${t}, ${r})`}Ke.isOwnProperty=Eg;function x3(e,t,r,n){let o=(0,ut._)`${t}${(0,ut.getProperty)(r)} !== undefined`;return n?(0,ut._)`${o} && ${Eg(e,t,r)}`:o}Ke.propertyInData=x3;function Tg(e,t,r,n){let o=(0,ut._)`${t}${(0,ut.getProperty)(r)} === undefined`;return n?(0,ut.or)(o,(0,ut.not)(Eg(e,t,r))):o}Ke.noPropertyInData=Tg;function Zk(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ke.allSchemaProperties=Zk;function b3(e,t){return Zk(t).filter(r=>!(0,Sg.alwaysValidSchema)(e,t[r]))}Ke.schemaProperties=b3;function _3({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:s},it:i},a,c,u){let l=u?(0,ut._)`${e}, ${t}, ${n}${o}`:t,p=[[Ro.default.instancePath,(0,ut.strConcat)(Ro.default.instancePath,s)],[Ro.default.parentData,i.parentData],[Ro.default.parentDataProperty,i.parentDataProperty],[Ro.default.rootData,Ro.default.rootData]];i.opts.dynamicRef&&p.push([Ro.default.dynamicAnchors,Ro.default.dynamicAnchors]);let f=(0,ut._)`${l}, ${r.object(...p)}`;return c!==ut.nil?(0,ut._)`${a}.call(${c}, ${f})`:(0,ut._)`${a}(${f})`}Ke.callValidateCode=_3;var S3=(0,ut._)`new RegExp`;function E3({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,ut._)`${o.code==="new RegExp"?S3:(0,g3.useFunc)(e,o)}(${r}, ${n})`})}Ke.usePattern=E3;function T3(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,ut._)`${r}.length`);t.forRange("i",0,c,u=>{e.subschema({keyword:n,dataProp:u,dataPropType:Sg.Type.Num},s),t.if((0,ut.not)(s),a)})}}Ke.validateArray=T3;function k3(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,Sg.alwaysValidSchema)(o,c))&&!o.opts.unevaluated)return;let i=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((c,u)=>{let l=e.subschema({keyword:n,schemaProp:u,compositeRule:!0},a);t.assign(i,(0,ut._)`${i} || ${a}`),e.mergeValidEvaluated(l,a)||t.if((0,ut.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Ke.validateUnion=k3});var rR=x(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.validateKeywordUsage=jn.validSchemaType=jn.funcKeywordCode=jn.macroKeywordCode=void 0;var fr=be(),ps=Zn(),R3=Zr(),P3=oc();function I3(e,t){let{gen:r,keyword:n,schema:o,parentSchema:s,it:i}=e,a=t.macro.call(i.self,o,s,i),c=tR(r,n,a);i.opts.validateSchema!==!1&&i.self.validateSchema(a,!0);let u=r.name("valid");e.subschema({schema:a,schemaPath:fr.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},u),e.pass(u,()=>e.error(!0))}jn.macroKeywordCode=I3;function A3(e,t){var r;let{gen:n,keyword:o,schema:s,parentSchema:i,$data:a,it:c}=e;$3(c,t);let u=!a&&t.compile?t.compile.call(c.self,s,i,c):t.validate,l=tR(n,o,u),p=n.let("valid");e.block$data(p,f),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function f(){if(t.errors===!1)g(),t.modifying&&eR(e),w(()=>e.error());else{let v=t.async?m():h();t.modifying&&eR(e),w(()=>C3(e,v))}}function m(){let v=n.let("ruleErrs",null);return n.try(()=>g((0,fr._)`await `),T=>n.assign(p,!1).if((0,fr._)`${T} instanceof ${c.ValidationError}`,()=>n.assign(v,(0,fr._)`${T}.errors`),()=>n.throw(T))),v}function h(){let v=(0,fr._)`${l}.errors`;return n.assign(v,null),g(fr.nil),v}function g(v=t.async?(0,fr._)`await `:fr.nil){let T=c.opts.passContext?ps.default.this:ps.default.self,R=!("compile"in t&&!a||t.schema===!1);n.assign(p,(0,fr._)`${v}${(0,R3.callValidateCode)(e,l,T,R)}`,t.modifying)}function w(v){var T;n.if((0,fr.not)((T=t.valid)!==null&&T!==void 0?T:p),v)}}jn.funcKeywordCode=A3;function eR(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,fr._)`${n.parentData}[${n.parentDataProperty}]`))}function C3(e,t){let{gen:r}=e;r.if((0,fr._)`Array.isArray(${t})`,()=>{r.assign(ps.default.vErrors,(0,fr._)`${ps.default.vErrors} === null ? ${t} : ${ps.default.vErrors}.concat(${t})`).assign(ps.default.errors,(0,fr._)`${ps.default.vErrors}.length`),(0,P3.extendErrors)(e)},()=>e.error())}function $3({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function tR(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,fr.stringify)(r)})}function O3(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")}jn.validSchemaType=O3;function N3({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)}}jn.validateKeywordUsage=N3});var oR=x(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.extendSubschemaMode=Po.extendSubschemaData=Po.getSubschema=void 0;var Fn=be(),nR=Le();function M3(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,Fn._)`${e.schemaPath}${(0,Fn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Fn._)`${e.schemaPath}${(0,Fn.getProperty)(t)}${(0,Fn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,nR.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')}Po.getSubschema=M3;function D3(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:u,dataPathArr:l,opts:p}=t,f=a.let("data",(0,Fn._)`${t.data}${(0,Fn.getProperty)(r)}`,!0);c(f),e.errorPath=(0,Fn.str)`${u}${(0,nR.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,Fn._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(o!==void 0){let u=o instanceof Fn.Name?o:a.let("data",o,!0);c(u),i!==void 0&&(e.propertyName=i)}s&&(e.dataTypes=s);function c(u){e.data=u,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,u]}}Po.extendSubschemaData=D3;function L3(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}Po.extendSubschemaMode=L3});var iR=x((xce,sR)=>{"use strict";var Io=sR.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(){};ku(t,n,o,e,"",e)};Io.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Io.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Io.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Io.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 ku(e,t,r,n,o,s,i,a,c,u){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,o,s,i,a,c,u);for(var l in n){var p=n[l];if(Array.isArray(p)){if(l in Io.arrayKeywords)for(var f=0;f<p.length;f++)ku(e,t,r,p[f],o+"/"+l+"/"+f,s,o,l,n,f)}else if(l in Io.propsKeywords){if(p&&typeof p=="object")for(var m in p)ku(e,t,r,p[m],o+"/"+l+"/"+j3(m),s,o,l,n,m)}else(l in Io.keywords||e.allKeys&&!(l in Io.skipKeywords))&&ku(e,t,r,p,o+"/"+l,s,o,l,n)}r(n,o,s,i,a,c,u)}}function j3(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var ic=x(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.getSchemaRefs=Ir.resolveUrl=Ir.normalizeId=Ir._getFullPath=Ir.getFullPath=Ir.inlineRef=void 0;var F3=Le(),q3=Pa(),U3=iR(),B3=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function G3(e,t=!0){return typeof e=="boolean"?!0:t===!0?!kg(e):t?aR(e)<=t:!1}Ir.inlineRef=G3;var z3=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function kg(e){for(let t in e){if(z3.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(kg)||typeof r=="object"&&kg(r))return!0}return!1}function aR(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!B3.has(r)&&(typeof e[r]=="object"&&(0,F3.eachItem)(e[r],n=>t+=aR(n)),t===1/0))return 1/0}return t}function cR(e,t="",r){r!==!1&&(t=mi(t));let n=e.parse(t);return lR(e,n)}Ir.getFullPath=cR;function lR(e,t){return e.serialize(t).split("#")[0]+"#"}Ir._getFullPath=lR;var H3=/#\/?$/;function mi(e){return e?e.replace(H3,""):""}Ir.normalizeId=mi;function W3(e,t,r){return r=mi(r),e.resolve(t,r)}Ir.resolveUrl=W3;var V3=/^[a-z_][-a-z0-9._]*$/i;function K3(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=mi(e[r]||t),s={"":o},i=cR(n,o,!1),a={},c=new Set;return U3(e,{allKeys:!0},(p,f,m,h)=>{if(h===void 0)return;let g=i+f,w=s[h];typeof p[r]=="string"&&(w=v.call(this,p[r])),T.call(this,p.$anchor),T.call(this,p.$dynamicAnchor),s[f]=w;function v(R){let P=this.opts.uriResolver.resolve;if(R=mi(w?P(w,R):R),c.has(R))throw l(R);c.add(R);let I=this.refs[R];return typeof I=="string"&&(I=this.refs[I]),typeof I=="object"?u(p,I.schema,R):R!==mi(g)&&(R[0]==="#"?(u(p,a[R],R),a[R]=p):this.refs[R]=g),R}function T(R){if(typeof R=="string"){if(!V3.test(R))throw new Error(`invalid anchor "${R}"`);v.call(this,`#${R}`)}}}),a;function u(p,f,m){if(f!==void 0&&!q3(p,f))throw l(m)}function l(p){return new Error(`reference "${p}" resolves to more than one schema`)}}Ir.getSchemaRefs=K3});var lc=x(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.getData=Ao.KeywordCxt=Ao.validateFunctionCode=void 0;var mR=zk(),uR=sc(),Pg=wg(),Ru=sc(),J3=Xk(),cc=rR(),Rg=oR(),ee=be(),ue=Zn(),Y3=ic(),eo=Le(),ac=oc();function X3(e){if(yR(e)&&(vR(e),gR(e))){e5(e);return}hR(e,()=>(0,mR.topBoolOrEmptySchema)(e))}Ao.validateFunctionCode=X3;function hR({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},s){o.code.es5?e.func(t,(0,ee._)`${ue.default.data}, ${ue.default.valCxt}`,n.$async,()=>{e.code((0,ee._)`"use strict"; ${pR(r,o)}`),Z3(e,o),e.code(s)}):e.func(t,(0,ee._)`${ue.default.data}, ${Q3(o)}`,n.$async,()=>e.code(pR(r,o)).code(s))}function Q3(e){return(0,ee._)`{${ue.default.instancePath}="", ${ue.default.parentData}, ${ue.default.parentDataProperty}, ${ue.default.rootData}=${ue.default.data}${e.dynamicRef?(0,ee._)`, ${ue.default.dynamicAnchors}={}`:ee.nil}}={}`}function Z3(e,t){e.if(ue.default.valCxt,()=>{e.var(ue.default.instancePath,(0,ee._)`${ue.default.valCxt}.${ue.default.instancePath}`),e.var(ue.default.parentData,(0,ee._)`${ue.default.valCxt}.${ue.default.parentData}`),e.var(ue.default.parentDataProperty,(0,ee._)`${ue.default.valCxt}.${ue.default.parentDataProperty}`),e.var(ue.default.rootData,(0,ee._)`${ue.default.valCxt}.${ue.default.rootData}`),t.dynamicRef&&e.var(ue.default.dynamicAnchors,(0,ee._)`${ue.default.valCxt}.${ue.default.dynamicAnchors}`)},()=>{e.var(ue.default.instancePath,(0,ee._)`""`),e.var(ue.default.parentData,(0,ee._)`undefined`),e.var(ue.default.parentDataProperty,(0,ee._)`undefined`),e.var(ue.default.rootData,ue.default.data),t.dynamicRef&&e.var(ue.default.dynamicAnchors,(0,ee._)`{}`)})}function e5(e){let{schema:t,opts:r,gen:n}=e;hR(e,()=>{r.$comment&&t.$comment&&xR(e),s5(e),n.let(ue.default.vErrors,null),n.let(ue.default.errors,0),r.unevaluated&&t5(e),wR(e),c5(e)})}function t5(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 pR(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 r5(e,t){if(yR(e)&&(vR(e),gR(e))){n5(e,t);return}(0,mR.boolOrEmptySchema)(e,t)}function gR({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 yR(e){return typeof e.schema!="boolean"}function n5(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&xR(e),i5(e),a5(e);let s=n.const("_errs",ue.default.errors);wR(e,s),n.var(t,(0,ee._)`${s} === ${ue.default.errors}`)}function vR(e){(0,eo.checkUnknownRules)(e),o5(e)}function wR(e,t){if(e.opts.jtd)return dR(e,[],!1,t);let r=(0,uR.getSchemaTypes)(e.schema),n=(0,uR.coerceAndCheckDataType)(e,r);dR(e,r,!n,t)}function o5(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,eo.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function s5(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,eo.checkStrictMode)(e,"default is ignored in the schema root")}function i5(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Y3.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function a5(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function xR({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let s=r.$comment;if(o.$comment===!0)e.code((0,ee._)`${ue.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._)`${ue.default.self}.opts.$comment(${s}, ${i}, ${a}.schema)`)}}function c5(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:s}=e;r.$async?t.if((0,ee._)`${ue.default.errors} === 0`,()=>t.return(ue.default.data),()=>t.throw((0,ee._)`new ${o}(${ue.default.vErrors})`)):(t.assign((0,ee._)`${n}.errors`,ue.default.vErrors),s.unevaluated&&l5(e),t.return((0,ee._)`${ue.default.errors} === 0`))}function l5({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 dR(e,t,r,n){let{gen:o,schema:s,data:i,allErrors:a,opts:c,self:u}=e,{RULES:l}=u;if(s.$ref&&(c.ignoreKeywordsWithRef||!(0,eo.schemaHasRulesButRef)(s,l))){o.block(()=>_R(e,"$ref",l.all.$ref.definition));return}c.jtd||u5(e,t),o.block(()=>{for(let f of l.rules)p(f);p(l.post)});function p(f){(0,Pg.shouldUseGroup)(s,f)&&(f.type?(o.if((0,Ru.checkDataType)(f.type,i,c.strictNumbers)),fR(e,f),t.length===1&&t[0]===f.type&&r&&(o.else(),(0,Ru.reportTypeError)(e)),o.endIf()):fR(e,f),a||o.if((0,ee._)`${ue.default.errors} === ${n||0}`))}}function fR(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,J3.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,Pg.shouldUseRule)(n,s)&&_R(e,s.keyword,s.definition,t.type)})}function u5(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(p5(e,t),e.opts.allowUnionTypes||d5(e,t),f5(e,e.dataTypes))}function p5(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{bR(e.dataTypes,r)||Ig(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),h5(e,t)}}function d5(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Ig(e,"use allowUnionTypes to allow union type keyword")}function f5(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,Pg.shouldUseRule)(e.schema,o)){let{type:s}=o.definition;s.length&&!s.some(i=>m5(t,i))&&Ig(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function m5(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function bR(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function h5(e,t){let r=[];for(let n of e.dataTypes)bR(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,eo.checkStrictMode)(e,t,e.opts.strictTypes)}var Pu=class{constructor(t,r,n){if((0,cc.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,eo.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",SR(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,cc.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",ue.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?ac.reportExtraError:ac.reportError)(this,this.def.error,r)}$dataError(){(0,ac.reportError)(this,this.def.$dataError||ac.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ac.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,Ru.checkDataTypes)(c,r,s.opts.strictNumbers,Ru.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,Rg.getSubschema)(this.it,t);(0,Rg.extendSubschemaData)(n,this.it,t),(0,Rg.extendSubschemaMode)(n,t);let o={...this.it,...n,items:void 0,props:void 0};return r5(o,r),o}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=eo.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=eo.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}};Ao.KeywordCxt=Pu;function _R(e,t,r,n){let o=new Pu(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,cc.funcKeywordCode)(o,r):"macro"in r?(0,cc.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,cc.funcKeywordCode)(o,r)}var g5=/^\/(?:[^~]|~0|~1)*$/,y5=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function SR(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,s;if(e==="")return ue.default.rootData;if(e[0]==="/"){if(!g5.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,s=ue.default.rootData}else{let u=y5.exec(e);if(!u)throw new Error(`Invalid JSON-pointer: ${e}`);let l=+u[1];if(o=u[2],o==="#"){if(l>=t)throw new Error(c("property/index",l));return n[t-l]}if(l>t)throw new Error(c("data",l));if(s=r[t-l],!o)return s}let i=s,a=o.split("/");for(let u of a)u&&(s=(0,ee._)`${s}${(0,ee.getProperty)((0,eo.unescapeJsonPointer)(u))}`,i=(0,ee._)`${i} && ${s}`);return i;function c(u,l){return`Cannot access ${u} ${l} levels up, current level is ${t}`}}Ao.getData=SR});var Iu=x(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 uc=x(Ng=>{"use strict";Object.defineProperty(Ng,"__esModule",{value:!0});var $g=ic(),Og=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,$g.resolveUrl)(t,r,n),this.missingSchema=(0,$g.normalizeId)((0,$g.getFullPath)(t,this.missingRef))}};Ng.default=Og});var Cu=x(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.resolveSchema=en.getCompilingSchema=en.resolveRef=en.compileSchema=en.SchemaEnv=void 0;var _n=be(),v5=Iu(),ds=Zn(),Sn=ic(),ER=Le(),w5=lc(),hi=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={}}};en.SchemaEnv=hi;function Dg(e){let t=TR.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 _n.CodeGen(this.scope,{es5:n,lines:o,ownProperties:s}),a;e.$async&&(a=i.scopeValue("Error",{ref:v5.default,code:(0,_n._)`require("ajv/dist/runtime/validation_error").default`}));let c=i.scopeName("validate");e.validateName=c;let u={gen:i,allErrors:this.opts.allErrors,data:ds.default.data,parentData:ds.default.parentData,parentDataProperty:ds.default.parentDataProperty,dataNames:[ds.default.data],dataPathArr:[_n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,_n.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:_n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,_n._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,w5.validateFunctionCode)(u),i.optimize(this.opts.code.optimize);let p=i.toString();l=`${i.scopeRefs(ds.default.scope)}return ${p}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let m=new Function(`${ds.default.self}`,`${ds.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:c,validateCode:p,scopeValues:i._values}),this.opts.unevaluated){let{props:h,items:g}=u;m.evaluated={props:h instanceof _n.Name?void 0:h,items:g instanceof _n.Name?void 0:g,dynamicProps:h instanceof _n.Name,dynamicItems:g instanceof _n.Name},m.source&&(m.source.evaluated=(0,_n.stringify)(m.evaluated))}return e.validate=m,e}catch(p){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),p}finally{this._compilations.delete(e)}}en.compileSchema=Dg;function x5(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=S5.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 hi({schema:i,schemaId:a,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=b5.call(this,s)}en.resolveRef=x5;function b5(e){return(0,Sn.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Dg.call(this,e)}function TR(e){for(let t of this._compilations)if(_5(t,e))return t}en.getCompilingSchema=TR;function _5(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function S5(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Au.call(this,e,t)}function Au(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 Mg.call(this,r,e);let s=(0,Sn.normalizeId)(n),i=this.refs[s]||this.schemas[s];if(typeof i=="string"){let a=Au.call(this,e,i);return typeof a?.schema!="object"?void 0:Mg.call(this,r,a)}if(typeof i?.schema=="object"){if(i.validate||Dg.call(this,i),s===(0,Sn.normalizeId)(t)){let{schema:a}=i,{schemaId:c}=this.opts,u=a[c];return u&&(o=(0,Sn.resolveUrl)(this.opts.uriResolver,o,u)),new hi({schema:a,schemaId:c,root:e,baseId:o})}return Mg.call(this,r,i)}}en.resolveSchema=Au;var E5=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Mg(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,ER.unescapeFragment)(a)];if(c===void 0)return;r=c;let u=typeof r=="object"&&r[this.opts.schemaId];!E5.has(a)&&u&&(t=(0,Sn.resolveUrl)(this.opts.uriResolver,t,u))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,ER.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Sn.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Au.call(this,n,a)}let{schemaId:i}=this.opts;if(s=s||new hi({schema:r,schemaId:i,root:n,baseId:t}),s.schema!==s.root.schema)return s}});var kR=x((kce,T5)=>{T5.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 PR=x(Lg=>{"use strict";Object.defineProperty(Lg,"__esModule",{value:!0});var RR=jm();RR.code='require("ajv/dist/runtime/uri").default';Lg.default=RR});var DR=x(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.CodeGen=Yt.Name=Yt.nil=Yt.stringify=Yt.str=Yt._=Yt.KeywordCxt=void 0;var k5=lc();Object.defineProperty(Yt,"KeywordCxt",{enumerable:!0,get:function(){return k5.KeywordCxt}});var gi=be();Object.defineProperty(Yt,"_",{enumerable:!0,get:function(){return gi._}});Object.defineProperty(Yt,"str",{enumerable:!0,get:function(){return gi.str}});Object.defineProperty(Yt,"stringify",{enumerable:!0,get:function(){return gi.stringify}});Object.defineProperty(Yt,"nil",{enumerable:!0,get:function(){return gi.nil}});Object.defineProperty(Yt,"Name",{enumerable:!0,get:function(){return gi.Name}});Object.defineProperty(Yt,"CodeGen",{enumerable:!0,get:function(){return gi.CodeGen}});var R5=Iu(),OR=uc(),P5=vg(),pc=Cu(),I5=be(),dc=ic(),$u=sc(),Fg=Le(),IR=kR(),A5=PR(),NR=(e,t)=>new RegExp(e,t);NR.code="new RegExp";var C5=["removeAdditional","useDefaults","coerceTypes"],$5=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),O5={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."},N5={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},AR=200;function M5(e){var t,r,n,o,s,i,a,c,u,l,p,f,m,h,g,w,v,T,R,P,I,j,F,ie,de;let te=e.strict,$e=(t=e.code)===null||t===void 0?void 0:t.optimize,oe=$e===!0||$e===void 0?1:$e||0,Y=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:NR,re=(o=e.uriResolver)!==null&&o!==void 0?o:A5.default;return{strictSchema:(i=(s=e.strictSchema)!==null&&s!==void 0?s:te)!==null&&i!==void 0?i:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:te)!==null&&c!==void 0?c:!0,strictTypes:(l=(u=e.strictTypes)!==null&&u!==void 0?u:te)!==null&&l!==void 0?l:"log",strictTuples:(f=(p=e.strictTuples)!==null&&p!==void 0?p:te)!==null&&f!==void 0?f:"log",strictRequired:(h=(m=e.strictRequired)!==null&&m!==void 0?m:te)!==null&&h!==void 0?h:!1,code:e.code?{...e.code,optimize:oe,regExp:Y}:{optimize:oe,regExp:Y},loopRequired:(g=e.loopRequired)!==null&&g!==void 0?g:AR,loopEnum:(w=e.loopEnum)!==null&&w!==void 0?w:AR,meta:(v=e.meta)!==null&&v!==void 0?v:!0,messages:(T=e.messages)!==null&&T!==void 0?T:!0,inlineRefs:(R=e.inlineRefs)!==null&&R!==void 0?R:!0,schemaId:(P=e.schemaId)!==null&&P!==void 0?P:"$id",addUsedSchema:(I=e.addUsedSchema)!==null&&I!==void 0?I:!0,validateSchema:(j=e.validateSchema)!==null&&j!==void 0?j:!0,validateFormats:(F=e.validateFormats)!==null&&F!==void 0?F:!0,unicodeRegExp:(ie=e.unicodeRegExp)!==null&&ie!==void 0?ie:!0,int32range:(de=e.int32range)!==null&&de!==void 0?de:!0,uriResolver:re}}var fc=class{constructor(t={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...M5(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new I5.ValueScope({scope:{},prefixes:$5,es5:r,lines:n}),this.logger=U5(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,P5.getRules)(),CR.call(this,O5,t,"NOT SUPPORTED"),CR.call(this,N5,t,"DEPRECATED","warn"),this._metaOpts=F5.call(this),t.formats&&L5.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&j5.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),D5.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=IR;n==="id"&&(o={...IR},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(l,p){await s.call(this,l.$schema);let f=this._addSchema(l,p);return f.validate||i.call(this,f)}async function s(l){l&&!this.getSchema(l)&&await o.call(this,{$ref:l},!0)}async function i(l){try{return this._compileSchemaEnv(l)}catch(p){if(!(p instanceof OR.default))throw p;return a.call(this,p),await c.call(this,p.missingSchema),i.call(this,l)}}function a({missingSchema:l,missingRef:p}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${p} cannot be resolved`)}async function c(l){let p=await u.call(this,l);this.refs[l]||await s.call(this,p.$schema),this.refs[l]||this.addSchema(p,l,r)}async function u(l){let p=this._loading[l];if(p)return p;try{return await(this._loading[l]=n(l))}finally{delete this._loading[l]}}}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,dc.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=$R.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new pc.SchemaEnv({schema:{},schemaId:n});if(r=pc.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=$R.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,dc.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(G5.call(this,n,r),!r)return(0,Fg.eachItem)(n,s=>jg.call(this,s)),this;H5.call(this,r);let o={...r,type:(0,$u.getJSONTypes)(r.type),schemaType:(0,$u.getJSONTypes)(r.schemaType)};return(0,Fg.eachItem)(n,o.type.length===0?s=>jg.call(this,s,o):s=>o.type.forEach(i=>jg.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:u}=c.definition,l=i[a];u&&l&&(i[a]=MR(l))}}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,dc.normalizeId)(i||n);let u=dc.getSchemaRefs.call(this,t,n);return c=new pc.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:u}),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):pc.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{pc.compileSchema.call(this,t)}finally{this.opts=r}}};fc.ValidationError=R5.default;fc.MissingRefError=OR.default;Yt.default=fc;function CR(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 $R(e){return e=(0,dc.normalizeId)(e),this.schemas[e]||this.refs[e]}function D5(){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 L5(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function j5(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 F5(){let e={...this.opts};for(let t of C5)delete e[t];return e}var q5={log(){},warn(){},error(){}};function U5(e){if(e===!1)return q5;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 B5=/^[a-z_$][a-z0-9_$:-]*$/i;function G5(e,t){let{RULES:r}=this;if((0,Fg.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!B5.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 jg(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,$u.getJSONTypes)(t.type),schemaType:(0,$u.getJSONTypes)(t.schemaType)}};t.before?z5.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 z5(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 H5(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=MR(t)),e.validateSchema=this.compile(t,!0))}var W5={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function MR(e){return{anyOf:[e,W5]}}});var LR=x(qg=>{"use strict";Object.defineProperty(qg,"__esModule",{value:!0});var V5={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};qg.default=V5});var UR=x(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.callRef=fs.getValidate=void 0;var K5=uc(),jR=Zr(),Ar=be(),yi=Zn(),FR=Cu(),Ou=Le(),J5={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:u}=s;if((r==="#"||r==="#/")&&o===u.baseId)return p();let l=FR.resolveRef.call(c,u,o,r);if(l===void 0)throw new K5.default(n.opts.uriResolver,o,r);if(l instanceof FR.SchemaEnv)return f(l);return m(l);function p(){if(s===u)return Nu(e,i,s,s.$async);let h=t.scopeValue("root",{ref:u});return Nu(e,(0,Ar._)`${h}.validate`,u,u.$async)}function f(h){let g=qR(e,h);Nu(e,g,h,h.$async)}function m(h){let g=t.scopeValue("schema",a.code.source===!0?{ref:h,code:(0,Ar.stringify)(h)}:{ref:h}),w=t.name("valid"),v=e.subschema({schema:h,dataTypes:[],schemaPath:Ar.nil,topSchemaRef:g,errSchemaPath:r},w);e.mergeEvaluated(v),e.ok(w)}}};function qR(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Ar._)`${r.scopeValue("wrapper",{ref:t})}.validate`}fs.getValidate=qR;function Nu(e,t,r,n){let{gen:o,it:s}=e,{allErrors:i,schemaEnv:a,opts:c}=s,u=c.passContext?yi.default.this:Ar.nil;n?l():p();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let h=o.let("valid");o.try(()=>{o.code((0,Ar._)`await ${(0,jR.callValidateCode)(e,t,u)}`),m(t),i||o.assign(h,!0)},g=>{o.if((0,Ar._)`!(${g} instanceof ${s.ValidationError})`,()=>o.throw(g)),f(g),i||o.assign(h,!1)}),e.ok(h)}function p(){e.result((0,jR.callValidateCode)(e,t,u),()=>m(t),()=>f(t))}function f(h){let g=(0,Ar._)`${h}.errors`;o.assign(yi.default.vErrors,(0,Ar._)`${yi.default.vErrors} === null ? ${g} : ${yi.default.vErrors}.concat(${g})`),o.assign(yi.default.errors,(0,Ar._)`${yi.default.vErrors}.length`)}function m(h){var g;if(!s.opts.unevaluated)return;let w=(g=r?.validate)===null||g===void 0?void 0:g.evaluated;if(s.props!==!0)if(w&&!w.dynamicProps)w.props!==void 0&&(s.props=Ou.mergeEvaluated.props(o,w.props,s.props));else{let v=o.var("props",(0,Ar._)`${h}.evaluated.props`);s.props=Ou.mergeEvaluated.props(o,v,s.props,Ar.Name)}if(s.items!==!0)if(w&&!w.dynamicItems)w.items!==void 0&&(s.items=Ou.mergeEvaluated.items(o,w.items,s.items));else{let v=o.var("items",(0,Ar._)`${h}.evaluated.items`);s.items=Ou.mergeEvaluated.items(o,v,s.items,Ar.Name)}}}fs.callRef=Nu;fs.default=J5});var BR=x(Ug=>{"use strict";Object.defineProperty(Ug,"__esModule",{value:!0});var Y5=LR(),X5=UR(),Q5=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Y5.default,X5.default];Ug.default=Q5});var GR=x(Bg=>{"use strict";Object.defineProperty(Bg,"__esModule",{value:!0});var Mu=be(),Co=Mu.operators,Du={maximum:{okStr:"<=",ok:Co.LTE,fail:Co.GT},minimum:{okStr:">=",ok:Co.GTE,fail:Co.LT},exclusiveMaximum:{okStr:"<",ok:Co.LT,fail:Co.GTE},exclusiveMinimum:{okStr:">",ok:Co.GT,fail:Co.LTE}},Z5={message:({keyword:e,schemaCode:t})=>(0,Mu.str)`must be ${Du[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Mu._)`{comparison: ${Du[e].okStr}, limit: ${t}}`},eW={keyword:Object.keys(Du),type:"number",schemaType:"number",$data:!0,error:Z5,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Mu._)`${r} ${Du[t].fail} ${n} || isNaN(${r})`)}};Bg.default=eW});var zR=x(Gg=>{"use strict";Object.defineProperty(Gg,"__esModule",{value:!0});var mc=be(),tW={message:({schemaCode:e})=>(0,mc.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,mc._)`{multipleOf: ${e}}`},rW={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:tW,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,s=o.opts.multipleOfPrecision,i=t.let("res"),a=s?(0,mc._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${s}`:(0,mc._)`${i} !== parseInt(${i})`;e.fail$data((0,mc._)`(${n} === 0 || (${i} = ${r}/${n}, ${a}))`)}};Gg.default=rW});var WR=x(zg=>{"use strict";Object.defineProperty(zg,"__esModule",{value:!0});function HR(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}zg.default=HR;HR.code='require("ajv/dist/runtime/ucs2length").default'});var VR=x(Hg=>{"use strict";Object.defineProperty(Hg,"__esModule",{value:!0});var ms=be(),nW=Le(),oW=WR(),sW={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,ms.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,ms._)`{limit: ${e}}`},iW={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:sW,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,s=t==="maxLength"?ms.operators.GT:ms.operators.LT,i=o.opts.unicode===!1?(0,ms._)`${r}.length`:(0,ms._)`${(0,nW.useFunc)(e.gen,oW.default)}(${r})`;e.fail$data((0,ms._)`${i} ${s} ${n}`)}};Hg.default=iW});var KR=x(Wg=>{"use strict";Object.defineProperty(Wg,"__esModule",{value:!0});var aW=Zr(),cW=Le(),vi=be(),lW={message:({schemaCode:e})=>(0,vi.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,vi._)`{pattern: ${e}}`},uW={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:lW,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,u=c.code==="new RegExp"?(0,vi._)`new RegExp`:(0,cW.useFunc)(t,c),l=t.let("valid");t.try(()=>t.assign(l,(0,vi._)`${u}(${s}, ${a}).test(${r})`),()=>t.assign(l,!1)),e.fail$data((0,vi._)`!${l}`)}else{let c=(0,aW.usePattern)(e,o);e.fail$data((0,vi._)`!${c}.test(${r})`)}}};Wg.default=uW});var JR=x(Vg=>{"use strict";Object.defineProperty(Vg,"__esModule",{value:!0});var hc=be(),pW={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,hc.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,hc._)`{limit: ${e}}`},dW={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:pW,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?hc.operators.GT:hc.operators.LT;e.fail$data((0,hc._)`Object.keys(${r}).length ${o} ${n}`)}};Vg.default=dW});var YR=x(Kg=>{"use strict";Object.defineProperty(Kg,"__esModule",{value:!0});var gc=Zr(),yc=be(),fW=Le(),mW={message:({params:{missingProperty:e}})=>(0,yc.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,yc._)`{missingProperty: ${e}}`},hW={keyword:"required",type:"object",schemaType:"array",$data:!0,error:mW,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?u():l(),a.strictRequired){let m=e.parentSchema.properties,{definedProperties:h}=e.it;for(let g of r)if(m?.[g]===void 0&&!h.has(g)){let w=i.schemaEnv.baseId+i.errSchemaPath,v=`required property "${g}" is not defined at "${w}" (strictRequired)`;(0,fW.checkStrictMode)(i,v,i.opts.strictRequired)}}function u(){if(c||s)e.block$data(yc.nil,p);else for(let m of r)(0,gc.checkReportMissingProp)(e,m)}function l(){let m=t.let("missing");if(c||s){let h=t.let("valid",!0);e.block$data(h,()=>f(m,h)),e.ok(h)}else t.if((0,gc.checkMissingProp)(e,r,m)),(0,gc.reportMissingProp)(e,m),t.else()}function p(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,gc.noPropertyInData)(t,o,m,a.ownProperties),()=>e.error())})}function f(m,h){e.setParams({missingProperty:m}),t.forOf(m,n,()=>{t.assign(h,(0,gc.propertyInData)(t,o,m,a.ownProperties)),t.if((0,yc.not)(h),()=>{e.error(),t.break()})},yc.nil)}}};Kg.default=hW});var XR=x(Jg=>{"use strict";Object.defineProperty(Jg,"__esModule",{value:!0});var vc=be(),gW={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,vc.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,vc._)`{limit: ${e}}`},yW={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:gW,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?vc.operators.GT:vc.operators.LT;e.fail$data((0,vc._)`${r}.length ${o} ${n}`)}};Jg.default=yW});var Lu=x(Yg=>{"use strict";Object.defineProperty(Yg,"__esModule",{value:!0});var QR=Pa();QR.code='require("ajv/dist/runtime/equal").default';Yg.default=QR});var ZR=x(Qg=>{"use strict";Object.defineProperty(Qg,"__esModule",{value:!0});var Xg=sc(),Xt=be(),vW=Le(),wW=Lu(),xW={message:({params:{i:e,j:t}})=>(0,Xt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Xt._)`{i: ${e}, j: ${t}}`},bW={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:xW,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"),u=s.items?(0,Xg.getSchemaTypes)(s.items):[];e.block$data(c,l,(0,Xt._)`${i} === false`),e.ok(c);function l(){let h=t.let("i",(0,Xt._)`${r}.length`),g=t.let("j");e.setParams({i:h,j:g}),t.assign(c,!0),t.if((0,Xt._)`${h} > 1`,()=>(p()?f:m)(h,g))}function p(){return u.length>0&&!u.some(h=>h==="object"||h==="array")}function f(h,g){let w=t.name("item"),v=(0,Xg.checkDataTypes)(u,w,a.opts.strictNumbers,Xg.DataType.Wrong),T=t.const("indices",(0,Xt._)`{}`);t.for((0,Xt._)`;${h}--;`,()=>{t.let(w,(0,Xt._)`${r}[${h}]`),t.if(v,(0,Xt._)`continue`),u.length>1&&t.if((0,Xt._)`typeof ${w} == "string"`,(0,Xt._)`${w} += "_"`),t.if((0,Xt._)`typeof ${T}[${w}] == "number"`,()=>{t.assign(g,(0,Xt._)`${T}[${w}]`),e.error(),t.assign(c,!1).break()}).code((0,Xt._)`${T}[${w}] = ${h}`)})}function m(h,g){let w=(0,vW.useFunc)(t,wW.default),v=t.name("outer");t.label(v).for((0,Xt._)`;${h}--;`,()=>t.for((0,Xt._)`${g} = ${h}; ${g}--;`,()=>t.if((0,Xt._)`${w}(${r}[${h}], ${r}[${g}])`,()=>{e.error(),t.assign(c,!1).break(v)})))}}};Qg.default=bW});var eP=x(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});var Zg=be(),_W=Le(),SW=Lu(),EW={message:"must be equal to constant",params:({schemaCode:e})=>(0,Zg._)`{allowedValue: ${e}}`},TW={keyword:"const",$data:!0,error:EW,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Zg._)`!${(0,_W.useFunc)(t,SW.default)}(${r}, ${o})`):e.fail((0,Zg._)`${s} !== ${r}`)}};ey.default=TW});var tP=x(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});var wc=be(),kW=Le(),RW=Lu(),PW={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,wc._)`{allowedValues: ${e}}`},IW={keyword:"enum",schemaType:"array",$data:!0,error:PW,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,u=()=>c??(c=(0,kW.useFunc)(t,RW.default)),l;if(a||n)l=t.let("valid"),e.block$data(l,p);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let m=t.const("vSchema",s);l=(0,wc.or)(...o.map((h,g)=>f(m,g)))}e.pass(l);function p(){t.assign(l,!1),t.forOf("v",s,m=>t.if((0,wc._)`${u()}(${r}, ${m})`,()=>t.assign(l,!0).break()))}function f(m,h){let g=o[h];return typeof g=="object"&&g!==null?(0,wc._)`${u()}(${r}, ${m}[${h}])`:(0,wc._)`${r} === ${g}`}}};ty.default=IW});var rP=x(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});var AW=GR(),CW=zR(),$W=VR(),OW=KR(),NW=JR(),MW=YR(),DW=XR(),LW=ZR(),jW=eP(),FW=tP(),qW=[AW.default,CW.default,$W.default,OW.default,NW.default,MW.default,DW.default,LW.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},jW.default,FW.default];ry.default=qW});var oy=x(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.validateAdditionalItems=void 0;var hs=be(),ny=Le(),UW={message:({params:{len:e}})=>(0,hs.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,hs._)`{limit: ${e}}`},BW={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:UW,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,ny.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}nP(e,n)}};function nP(e,t){let{gen:r,schema:n,data:o,keyword:s,it:i}=e;i.items=!0;let a=r.const("len",(0,hs._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,hs._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,ny.alwaysValidSchema)(i,n)){let u=r.var("valid",(0,hs._)`${a} <= ${t.length}`);r.if((0,hs.not)(u),()=>c(u)),e.ok(u)}function c(u){r.forRange("i",t.length,a,l=>{e.subschema({keyword:s,dataProp:l,dataPropType:ny.Type.Num},u),i.allErrors||r.if((0,hs.not)(u),()=>r.break())})}}xc.validateAdditionalItems=nP;xc.default=BW});var sy=x(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.validateTuple=void 0;var oP=be(),ju=Le(),GW=Zr(),zW={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return sP(e,"additionalItems",t);r.items=!0,!(0,ju.alwaysValidSchema)(r,t)&&e.ok((0,GW.validateArray)(e))}};function sP(e,t,r=e.schema){let{gen:n,parentSchema:o,data:s,keyword:i,it:a}=e;l(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=ju.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),u=n.const("len",(0,oP._)`${s}.length`);r.forEach((p,f)=>{(0,ju.alwaysValidSchema)(a,p)||(n.if((0,oP._)`${u} > ${f}`,()=>e.subschema({keyword:i,schemaProp:f,dataProp:f},c)),e.ok(c))});function l(p){let{opts:f,errSchemaPath:m}=a,h=r.length,g=h===p.minItems&&(h===p.maxItems||p[t]===!1);if(f.strictTuples&&!g){let w=`"${i}" is ${h}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,ju.checkStrictMode)(a,w,f.strictTuples)}}}bc.validateTuple=sP;bc.default=zW});var iP=x(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});var HW=sy(),WW={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,HW.validateTuple)(e,"items")};iy.default=WW});var cP=x(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});var aP=be(),VW=Le(),KW=Zr(),JW=oy(),YW={message:({params:{len:e}})=>(0,aP.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,aP._)`{limit: ${e}}`},XW={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:YW,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,VW.alwaysValidSchema)(n,t)&&(o?(0,JW.validateAdditionalItems)(e,o):e.ok((0,KW.validateArray)(e)))}};ay.default=XW});var lP=x(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});var tn=be(),Fu=Le(),QW={message:({params:{min:e,max:t}})=>t===void 0?(0,tn.str)`must contain at least ${e} valid item(s)`:(0,tn.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,tn._)`{minContains: ${e}}`:(0,tn._)`{minContains: ${e}, maxContains: ${t}}`},ZW={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:QW,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:s}=e,i,a,{minContains:c,maxContains:u}=n;s.opts.next?(i=c===void 0?1:c,a=u):i=1;let l=t.const("len",(0,tn._)`${o}.length`);if(e.setParams({min:i,max:a}),a===void 0&&i===0){(0,Fu.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&i>a){(0,Fu.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Fu.alwaysValidSchema)(s,r)){let g=(0,tn._)`${l} >= ${i}`;a!==void 0&&(g=(0,tn._)`${g} && ${l} <= ${a}`),e.pass(g);return}s.items=!0;let p=t.name("valid");a===void 0&&i===1?m(p,()=>t.if(p,()=>t.break())):i===0?(t.let(p,!0),a!==void 0&&t.if((0,tn._)`${o}.length > 0`,f)):(t.let(p,!1),f()),e.result(p,()=>e.reset());function f(){let g=t.name("_valid"),w=t.let("count",0);m(g,()=>t.if(g,()=>h(w)))}function m(g,w){t.forRange("i",0,l,v=>{e.subschema({keyword:"contains",dataProp:v,dataPropType:Fu.Type.Num,compositeRule:!0},g),w()})}function h(g){t.code((0,tn._)`${g}++`),a===void 0?t.if((0,tn._)`${g} >= ${i}`,()=>t.assign(p,!0).break()):(t.if((0,tn._)`${g} > ${a}`,()=>t.assign(p,!1).break()),i===1?t.assign(p,!0):t.if((0,tn._)`${g} >= ${i}`,()=>t.assign(p,!0)))}}};cy.default=ZW});var dP=x(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.validateSchemaDeps=qn.validatePropertyDeps=qn.error=void 0;var ly=be(),eV=Le(),_c=Zr();qn.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,ly.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,ly._)`{property: ${e},
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
18
+ || (${i} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,he._)`+${o}`);return;case"integer":n.elseIf((0,he._)`${i} === "boolean" || ${o} === null
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"
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 tV={keyword:"dependencies",type:"object",schemaType:"object",error:qn.error,code(e){let[t,r]=rV(e);uP(e,t),pP(e,r)}};function rV({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 uP(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,_c.propertyInData)(r,n,i,o.opts.ownProperties);e.setParams({property:i,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(c,()=>{for(let u of a)(0,_c.checkReportMissingProp)(e,u)}):(r.if((0,ly._)`${c} && (${(0,_c.checkMissingProp)(e,a,s)})`),(0,_c.reportMissingProp)(e,s),r.else())}}qn.validatePropertyDeps=uP;function pP(e,t=e.schema){let{gen:r,data:n,keyword:o,it:s}=e,i=r.name("valid");for(let a in t)(0,eV.alwaysValidSchema)(s,t[a])||(r.if((0,_c.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))}qn.validateSchemaDeps=pP;qn.default=tV});var mP=x(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});var fP=be(),nV=Le(),oV={message:"property name must be valid",params:({params:e})=>(0,fP._)`{propertyName: ${e.propertyName}}`},sV={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:oV,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,nV.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,fP.not)(s),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(s)}};uy.default=sV});var dy=x(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});var qu=Zr(),En=be(),iV=Zn(),Uu=Le(),aV={message:"must NOT have additional properties",params:({params:e})=>(0,En._)`{additionalProperty: ${e.additionalProperty}}`},cV={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:aV,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,Uu.alwaysValidSchema)(i,r))return;let u=(0,qu.allSchemaProperties)(n.properties),l=(0,qu.allSchemaProperties)(n.patternProperties);p(),e.ok((0,En._)`${s} === ${iV.default.errors}`);function p(){t.forIn("key",o,w=>{!u.length&&!l.length?h(w):t.if(f(w),()=>h(w))})}function f(w){let v;if(u.length>8){let T=(0,Uu.schemaRefOrVal)(i,n.properties,"properties");v=(0,qu.isOwnProperty)(t,T,w)}else u.length?v=(0,En.or)(...u.map(T=>(0,En._)`${w} === ${T}`)):v=En.nil;return l.length&&(v=(0,En.or)(v,...l.map(T=>(0,En._)`${(0,qu.usePattern)(e,T)}.test(${w})`))),(0,En.not)(v)}function m(w){t.code((0,En._)`delete ${o}[${w}]`)}function h(w){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){m(w);return}if(r===!1){e.setParams({additionalProperty:w}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,Uu.alwaysValidSchema)(i,r)){let v=t.name("valid");c.removeAdditional==="failing"?(g(w,v,!1),t.if((0,En.not)(v),()=>{e.reset(),m(w)})):(g(w,v),a||t.if((0,En.not)(v),()=>t.break()))}}function g(w,v,T){let R={keyword:"additionalProperties",dataProp:w,dataPropType:Uu.Type.Str};T===!1&&Object.assign(R,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(R,v)}}};py.default=cV});var yP=x(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0});var lV=lc(),hP=Zr(),fy=Le(),gP=dy(),uV={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&&gP.default.code(new lV.KeywordCxt(s,gP.default,"additionalProperties"));let i=(0,hP.allSchemaProperties)(r);for(let p of i)s.definedProperties.add(p);s.opts.unevaluated&&i.length&&s.props!==!0&&(s.props=fy.mergeEvaluated.props(t,(0,fy.toHash)(i),s.props));let a=i.filter(p=>!(0,fy.alwaysValidSchema)(s,r[p]));if(a.length===0)return;let c=t.name("valid");for(let p of a)u(p)?l(p):(t.if((0,hP.propertyInData)(t,o,p,s.opts.ownProperties)),l(p),s.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(c);function u(p){return s.opts.useDefaults&&!s.compositeRule&&r[p].default!==void 0}function l(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},c)}}};my.default=uV});var bP=x(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});var vP=Zr(),Bu=be(),wP=Le(),xP=Le(),pV={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,vP.allSchemaProperties)(r),c=a.filter(g=>(0,wP.alwaysValidSchema)(s,r[g]));if(a.length===0||c.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let u=i.strictSchema&&!i.allowMatchingProperties&&o.properties,l=t.name("valid");s.props!==!0&&!(s.props instanceof Bu.Name)&&(s.props=(0,xP.evaluatedPropsToName)(t,s.props));let{props:p}=s;f();function f(){for(let g of a)u&&m(g),s.allErrors?h(g):(t.var(l,!0),h(g),t.if(l))}function m(g){for(let w in u)new RegExp(g).test(w)&&(0,wP.checkStrictMode)(s,`property ${w} matches pattern ${g} (use allowMatchingProperties)`)}function h(g){t.forIn("key",n,w=>{t.if((0,Bu._)`${(0,vP.usePattern)(e,g)}.test(${w})`,()=>{let v=c.includes(g);v||e.subschema({keyword:"patternProperties",schemaProp:g,dataProp:w,dataPropType:xP.Type.Str},l),s.opts.unevaluated&&p!==!0?t.assign((0,Bu._)`${p}[${w}]`,!0):!v&&!s.allErrors&&t.if((0,Bu.not)(l),()=>t.break())})})}}};hy.default=pV});var _P=x(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});var dV=Le(),fV={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,dV.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"}};gy.default=fV});var SP=x(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var mV=Zr(),hV={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:mV.validateUnion,error:{message:"must match a schema in anyOf"}};yy.default=hV});var EP=x(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});var Gu=be(),gV=Le(),yV={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Gu._)`{passingSchemas: ${e.passing}}`},vV={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:yV,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(u),e.result(i,()=>e.reset(),()=>e.error(!0));function u(){s.forEach((l,p)=>{let f;(0,gV.alwaysValidSchema)(o,l)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},c),p>0&&t.if((0,Gu._)`${c} && ${i}`).assign(i,!1).assign(a,(0,Gu._)`[${a}, ${p}]`).else(),t.if(c,()=>{t.assign(i,!0),t.assign(a,p),f&&e.mergeEvaluated(f,Gu.Name)})})}}};vy.default=vV});var TP=x(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});var wV=Le(),xV={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,wV.alwaysValidSchema)(n,s))return;let a=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(a)})}};wy.default=xV});var PP=x(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});var zu=be(),RP=Le(),bV={message:({params:e})=>(0,zu.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,zu._)`{failingKeyword: ${e.ifClause}}`},_V={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:bV,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,RP.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=kP(n,"then"),s=kP(n,"else");if(!o&&!s)return;let i=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),o&&s){let l=t.let("ifClause");e.setParams({ifClause:l}),t.if(a,u("then",l),u("else",l))}else o?t.if(a,u("then")):t.if((0,zu.not)(a),u("else"));e.pass(i,()=>e.error(!0));function c(){let l=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(l)}function u(l,p){return()=>{let f=e.subschema({keyword:l},a);t.assign(i,a),e.mergeValidEvaluated(f,i),p?t.assign(p,(0,zu._)`${l}`):e.setParams({ifClause:l})}}}};function kP(e,t){let r=e.schema[t];return r!==void 0&&!(0,RP.alwaysValidSchema)(e,r)}xy.default=_V});var IP=x(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var SV=Le(),EV={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,SV.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};by.default=EV});var AP=x(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});var TV=oy(),kV=iP(),RV=sy(),PV=cP(),IV=lP(),AV=dP(),CV=mP(),$V=dy(),OV=yP(),NV=bP(),MV=_P(),DV=SP(),LV=EP(),jV=TP(),FV=PP(),qV=IP();function UV(e=!1){let t=[MV.default,DV.default,LV.default,jV.default,FV.default,qV.default,CV.default,$V.default,AV.default,OV.default,NV.default];return e?t.push(kV.default,PV.default):t.push(TV.default,RV.default),t.push(IV.default),t}_y.default=UV});var CP=x(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var It=be(),BV={message:({schemaCode:e})=>(0,It.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,It._)`{format: ${e}}`},GV={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:BV,code(e,t){let{gen:r,data:n,$data:o,schema:s,schemaCode:i,it:a}=e,{opts:c,errSchemaPath:u,schemaEnv:l,self:p}=a;if(!c.validateFormats)return;o?f():m();function f(){let h=r.scopeValue("formats",{ref:p.formats,code:c.code.formats}),g=r.const("fDef",(0,It._)`${h}[${i}]`),w=r.let("fType"),v=r.let("format");r.if((0,It._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(w,(0,It._)`${g}.type || "string"`).assign(v,(0,It._)`${g}.validate`),()=>r.assign(w,(0,It._)`"string"`).assign(v,g)),e.fail$data((0,It.or)(T(),R()));function T(){return c.strictSchema===!1?It.nil:(0,It._)`${i} && !${v}`}function R(){let P=l.$async?(0,It._)`(${g}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,It._)`${v}(${n})`,I=(0,It._)`(typeof ${v} == "function" ? ${P} : ${v}.test(${n}))`;return(0,It._)`${v} && ${v} !== true && ${w} === ${t} && !${I}`}}function m(){let h=p.formats[s];if(!h){T();return}if(h===!0)return;let[g,w,v]=R(h);g===t&&e.pass(P());function T(){if(c.strictSchema===!1){p.logger.warn(I());return}throw new Error(I());function I(){return`unknown format "${s}" ignored in schema at path "${u}"`}}function R(I){let j=I instanceof RegExp?(0,It.regexpCode)(I):c.code.formats?(0,It._)`${c.code.formats}${(0,It.getProperty)(s)}`:void 0,F=r.scopeValue("formats",{key:s,ref:I,code:j});return typeof I=="object"&&!(I instanceof RegExp)?[I.type||"string",I.validate,(0,It._)`${F}.validate`]:["string",I,F]}function P(){if(typeof h=="object"&&!(h instanceof RegExp)&&h.async){if(!l.$async)throw new Error("async format in sync schema");return(0,It._)`await ${v}(${n})`}return typeof w=="function"?(0,It._)`${v}(${n})`:(0,It._)`${v}.test(${n})`}}}};Sy.default=GV});var $P=x(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var zV=CP(),HV=[zV.default];Ey.default=HV});var OP=x(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.contentVocabulary=wi.metadataVocabulary=void 0;wi.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];wi.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var MP=x(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var WV=BR(),VV=rP(),KV=AP(),JV=$P(),NP=OP(),YV=[WV.default,VV.default,(0,KV.default)(),JV.default,NP.metadataVocabulary,NP.contentVocabulary];Ty.default=YV});var LP=x(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.DiscrError=void 0;var DP;(function(e){e.Tag="tag",e.Mapping="mapping"})(DP||(Hu.DiscrError=DP={}))});var FP=x(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var xi=be(),ky=LP(),jP=Cu(),XV=uc(),QV=Le(),ZV={message:({params:{discrError:e,tagName:t}})=>e===ky.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,xi._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},eK={keyword:"discriminator",type:"object",schemaType:"object",error:ZV,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),u=t.const("tag",(0,xi._)`${r}${(0,xi.getProperty)(a)}`);t.if((0,xi._)`typeof ${u} == "string"`,()=>l(),()=>e.error(!1,{discrError:ky.DiscrError.Tag,tag:u,tagName:a})),e.ok(c);function l(){let m=f();t.if(!1);for(let h in m)t.elseIf((0,xi._)`${u} === ${h}`),t.assign(c,p(m[h]));t.else(),e.error(!1,{discrError:ky.DiscrError.Mapping,tag:u,tagName:a}),t.endIf()}function p(m){let h=t.name("valid"),g=e.subschema({keyword:"oneOf",schemaProp:m},h);return e.mergeEvaluated(g,xi.Name),h}function f(){var m;let h={},g=v(o),w=!0;for(let P=0;P<i.length;P++){let I=i[P];if(I?.$ref&&!(0,QV.schemaHasRulesButRef)(I,s.self.RULES)){let F=I.$ref;if(I=jP.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,F),I instanceof jP.SchemaEnv&&(I=I.schema),I===void 0)throw new XV.default(s.opts.uriResolver,s.baseId,F)}let j=(m=I?.properties)===null||m===void 0?void 0:m[a];if(typeof j!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);w=w&&(g||v(I)),T(j,P)}if(!w)throw new Error(`discriminator: "${a}" must be required`);return h;function v({required:P}){return Array.isArray(P)&&P.includes(a)}function T(P,I){if(P.const)R(P.const,I);else if(P.enum)for(let j of P.enum)R(j,I);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function R(P,I){if(typeof P!="string"||P in h)throw new Error(`discriminator: "${a}" values must be unique strings`);h[P]=I}}}};Ry.default=eK});var qP=x((mle,tK)=>{tK.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 BP=x((pt,Py)=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.MissingRefError=pt.ValidationError=pt.CodeGen=pt.Name=pt.nil=pt.stringify=pt.str=pt._=pt.KeywordCxt=pt.Ajv=void 0;var rK=DR(),nK=MP(),oK=FP(),UP=qP(),sK=["/properties"],Wu="http://json-schema.org/draft-07/schema",bi=class extends rK.default{_addVocabularies(){super._addVocabularies(),nK.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(oK.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(UP,sK):UP;this.addMetaSchema(t,Wu,!1),this.refs["http://json-schema.org/schema"]=Wu}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Wu)?Wu:void 0)}};pt.Ajv=bi;Py.exports=pt=bi;Py.exports.Ajv=bi;Object.defineProperty(pt,"__esModule",{value:!0});pt.default=bi;var iK=lc();Object.defineProperty(pt,"KeywordCxt",{enumerable:!0,get:function(){return iK.KeywordCxt}});var _i=be();Object.defineProperty(pt,"_",{enumerable:!0,get:function(){return _i._}});Object.defineProperty(pt,"str",{enumerable:!0,get:function(){return _i.str}});Object.defineProperty(pt,"stringify",{enumerable:!0,get:function(){return _i.stringify}});Object.defineProperty(pt,"nil",{enumerable:!0,get:function(){return _i.nil}});Object.defineProperty(pt,"Name",{enumerable:!0,get:function(){return _i.Name}});Object.defineProperty(pt,"CodeGen",{enumerable:!0,get:function(){return _i.CodeGen}});var aK=Iu();Object.defineProperty(pt,"ValidationError",{enumerable:!0,get:function(){return aK.default}});var cK=uc();Object.defineProperty(pt,"MissingRefError",{enumerable:!0,get:function(){return cK.default}})});var GP=x(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.formatLimitDefinition=void 0;var lK=BP(),Tn=be(),$o=Tn.operators,Vu={formatMaximum:{okStr:"<=",ok:$o.LTE,fail:$o.GT},formatMinimum:{okStr:">=",ok:$o.GTE,fail:$o.LT},formatExclusiveMaximum:{okStr:"<",ok:$o.LT,fail:$o.GTE},formatExclusiveMinimum:{okStr:">",ok:$o.GT,fail:$o.LTE}},uK={message:({keyword:e,schemaCode:t})=>(0,Tn.str)`should be ${Vu[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Tn._)`{comparison: ${Vu[e].okStr}, limit: ${t}}`};Si.formatLimitDefinition={keyword:Object.keys(Vu),type:"string",schemaType:"string",$data:!0,error:uK,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 lK.KeywordCxt(s,a.RULES.all.format.definition,"format");c.$data?u():l();function u(){let f=t.scopeValue("formats",{ref:a.formats,code:i.code.formats}),m=t.const("fmt",(0,Tn._)`${f}[${c.schemaCode}]`);e.fail$data((0,Tn.or)((0,Tn._)`typeof ${m} != "object"`,(0,Tn._)`${m} instanceof RegExp`,(0,Tn._)`typeof ${m}.compare != "function"`,p(m)))}function l(){let f=c.schema,m=a.formats[f];if(!m||m===!0)return;if(typeof m!="object"||m instanceof RegExp||typeof m.compare!="function")throw new Error(`"${o}": format "${f}" does not define "compare" function`);let h=t.scopeValue("formats",{key:f,ref:m,code:i.code.formats?(0,Tn._)`${i.code.formats}${(0,Tn.getProperty)(f)}`:void 0});e.fail$data(p(h))}function p(f){return(0,Tn._)`${f}.compare(${r}, ${n}) ${Vu[o].fail} 0`}},dependencies:["format"]};var pK=e=>(e.addKeyword(Si.formatLimitDefinition),e);Si.default=pK});var VP=x((Sc,WP)=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var Ei=Pk(),dK=GP(),Iy=be(),zP=new Iy.Name("fullFormats"),fK=new Iy.Name("fastFormats"),Ay=(e,t={keywords:!0})=>{if(Array.isArray(t))return HP(e,t,Ei.fullFormats,zP),e;let[r,n]=t.mode==="fast"?[Ei.fastFormats,fK]:[Ei.fullFormats,zP],o=t.formats||Ei.formatNames;return HP(e,o,r,n),t.keywords&&(0,dK.default)(e),e};Ay.get=(e,t="full")=>{let n=(t==="fast"?Ei.fastFormats:Ei.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function HP(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])}WP.exports=Sc=Ay;Object.defineProperty(Sc,"__esModule",{value:!0});Sc.default=Ay});function Cy(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let o of Reflect.ownKeys(t))mK(e,t,o,r);return gK(e,t),xK(e,t,n),e}var mK,hK,gK,yK,vK,wK,xK,KP=S(()=>{mK=(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);!hK(o,s)&&n||Object.defineProperty(e,r,s)},hK=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)},gK=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},yK=(e,t)=>`/* Wrapped ${e}*/
30
- ${t}`,vK=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),wK=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),xK=(e,t,r)=>{let n=r===""?"":`with ${r.trim()}() `,o=yK.bind(null,n,t.toString());Object.defineProperty(o,"name",wK);let{writable:s,enumerable:i,configurable:a}=vK;Object.defineProperty(e,"toString",{value:o,writable:s,enumerable:i,configurable:a})}});var bK,$y,JP=S(()=>{KP();bK=(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,u=function(...l){let p=this,f=()=>{i=void 0,a&&(clearTimeout(a),a=void 0),s&&(c=e.apply(p,l))},m=()=>{a=void 0,i&&(clearTimeout(i),i=void 0),s&&(c=e.apply(p,l))},h=o&&!i;return clearTimeout(i),i=setTimeout(f,r),n>0&&n!==Number.POSITIVE_INFINITY&&!a&&(a=setTimeout(m,n)),h&&(c=e.apply(p,l)),c};return Cy(u,e),u.cancel=()=>{i&&(clearTimeout(i),i=void 0),a&&(clearTimeout(a),a=void 0)},u},$y=bK});var Ec=x((wle,YP)=>{"use strict";var _K="2.0.0",SK=Number.MAX_SAFE_INTEGER||9007199254740991,EK=16,TK=250,kK=["major","premajor","minor","preminor","patch","prepatch","prerelease"];YP.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:EK,MAX_SAFE_BUILD_LENGTH:TK,MAX_SAFE_INTEGER:SK,RELEASE_TYPES:kK,SEMVER_SPEC_VERSION:_K,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Tc=x((xle,XP)=>{"use strict";var RK=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};XP.exports=RK});var Ti=x((Un,QP)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Oy,MAX_SAFE_BUILD_LENGTH:PK,MAX_LENGTH:IK}=Ec(),AK=Tc();Un=QP.exports={};var CK=Un.re=[],$K=Un.safeRe=[],W=Un.src=[],OK=Un.safeSrc=[],V=Un.t={},NK=0,Ny="[a-zA-Z0-9-]",MK=[["\\s",1],["\\d",IK],[Ny,PK]],DK=e=>{for(let[t,r]of MK)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},he=(e,t,r)=>{let n=DK(t),o=NK++;AK(e,o,t),V[e]=o,W[o]=t,OK[o]=n,CK[o]=new RegExp(t,r?"g":void 0),$K[o]=new RegExp(n,r?"g":void 0)};he("NUMERICIDENTIFIER","0|[1-9]\\d*");he("NUMERICIDENTIFIERLOOSE","\\d+");he("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Ny}*`);he("MAINVERSION",`(${W[V.NUMERICIDENTIFIER]})\\.(${W[V.NUMERICIDENTIFIER]})\\.(${W[V.NUMERICIDENTIFIER]})`);he("MAINVERSIONLOOSE",`(${W[V.NUMERICIDENTIFIERLOOSE]})\\.(${W[V.NUMERICIDENTIFIERLOOSE]})\\.(${W[V.NUMERICIDENTIFIERLOOSE]})`);he("PRERELEASEIDENTIFIER",`(?:${W[V.NONNUMERICIDENTIFIER]}|${W[V.NUMERICIDENTIFIER]})`);he("PRERELEASEIDENTIFIERLOOSE",`(?:${W[V.NONNUMERICIDENTIFIER]}|${W[V.NUMERICIDENTIFIERLOOSE]})`);he("PRERELEASE",`(?:-(${W[V.PRERELEASEIDENTIFIER]}(?:\\.${W[V.PRERELEASEIDENTIFIER]})*))`);he("PRERELEASELOOSE",`(?:-?(${W[V.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${W[V.PRERELEASEIDENTIFIERLOOSE]})*))`);he("BUILDIDENTIFIER",`${Ny}+`);he("BUILD",`(?:\\+(${W[V.BUILDIDENTIFIER]}(?:\\.${W[V.BUILDIDENTIFIER]})*))`);he("FULLPLAIN",`v?${W[V.MAINVERSION]}${W[V.PRERELEASE]}?${W[V.BUILD]}?`);he("FULL",`^${W[V.FULLPLAIN]}$`);he("LOOSEPLAIN",`[v=\\s]*${W[V.MAINVERSIONLOOSE]}${W[V.PRERELEASELOOSE]}?${W[V.BUILD]}?`);he("LOOSE",`^${W[V.LOOSEPLAIN]}$`);he("GTLT","((?:<|>)?=?)");he("XRANGEIDENTIFIERLOOSE",`${W[V.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);he("XRANGEIDENTIFIER",`${W[V.NUMERICIDENTIFIER]}|x|X|\\*`);he("XRANGEPLAIN",`[v=\\s]*(${W[V.XRANGEIDENTIFIER]})(?:\\.(${W[V.XRANGEIDENTIFIER]})(?:\\.(${W[V.XRANGEIDENTIFIER]})(?:${W[V.PRERELEASE]})?${W[V.BUILD]}?)?)?`);he("XRANGEPLAINLOOSE",`[v=\\s]*(${W[V.XRANGEIDENTIFIERLOOSE]})(?:\\.(${W[V.XRANGEIDENTIFIERLOOSE]})(?:\\.(${W[V.XRANGEIDENTIFIERLOOSE]})(?:${W[V.PRERELEASELOOSE]})?${W[V.BUILD]}?)?)?`);he("XRANGE",`^${W[V.GTLT]}\\s*${W[V.XRANGEPLAIN]}$`);he("XRANGELOOSE",`^${W[V.GTLT]}\\s*${W[V.XRANGEPLAINLOOSE]}$`);he("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Oy}})(?:\\.(\\d{1,${Oy}}))?(?:\\.(\\d{1,${Oy}}))?`);he("COERCE",`${W[V.COERCEPLAIN]}(?:$|[^\\d])`);he("COERCEFULL",W[V.COERCEPLAIN]+`(?:${W[V.PRERELEASE]})?(?:${W[V.BUILD]})?(?:$|[^\\d])`);he("COERCERTL",W[V.COERCE],!0);he("COERCERTLFULL",W[V.COERCEFULL],!0);he("LONETILDE","(?:~>?)");he("TILDETRIM",`(\\s*)${W[V.LONETILDE]}\\s+`,!0);Un.tildeTrimReplace="$1~";he("TILDE",`^${W[V.LONETILDE]}${W[V.XRANGEPLAIN]}$`);he("TILDELOOSE",`^${W[V.LONETILDE]}${W[V.XRANGEPLAINLOOSE]}$`);he("LONECARET","(?:\\^)");he("CARETTRIM",`(\\s*)${W[V.LONECARET]}\\s+`,!0);Un.caretTrimReplace="$1^";he("CARET",`^${W[V.LONECARET]}${W[V.XRANGEPLAIN]}$`);he("CARETLOOSE",`^${W[V.LONECARET]}${W[V.XRANGEPLAINLOOSE]}$`);he("COMPARATORLOOSE",`^${W[V.GTLT]}\\s*(${W[V.LOOSEPLAIN]})$|^$`);he("COMPARATOR",`^${W[V.GTLT]}\\s*(${W[V.FULLPLAIN]})$|^$`);he("COMPARATORTRIM",`(\\s*)${W[V.GTLT]}\\s*(${W[V.LOOSEPLAIN]}|${W[V.XRANGEPLAIN]})`,!0);Un.comparatorTrimReplace="$1$2$3";he("HYPHENRANGE",`^\\s*(${W[V.XRANGEPLAIN]})\\s+-\\s+(${W[V.XRANGEPLAIN]})\\s*$`);he("HYPHENRANGELOOSE",`^\\s*(${W[V.XRANGEPLAINLOOSE]})\\s+-\\s+(${W[V.XRANGEPLAINLOOSE]})\\s*$`);he("STAR","(<|>)?=?\\s*\\*");he("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");he("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Ku=x((ble,ZP)=>{"use strict";var LK=Object.freeze({loose:!0}),jK=Object.freeze({}),FK=e=>e?typeof e!="object"?LK:e:jK;ZP.exports=FK});var My=x((_le,rI)=>{"use strict";var eI=/^[0-9]+$/,tI=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let r=eI.test(e),n=eI.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)=>tI(t,e);rI.exports={compareIdentifiers:tI,rcompareIdentifiers:qK}});var ar=x((Sle,oI)=>{"use strict";var Ju=Tc(),{MAX_LENGTH:nI,MAX_SAFE_INTEGER:Yu}=Ec(),{safeRe:Xu,t:Qu}=Ti(),UK=Ku(),{compareIdentifiers:Dy}=My(),Ly=class e{constructor(t,r){if(r=UK(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>nI)throw new TypeError(`version is longer than ${nI} characters`);Ju("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Xu[Qu.LOOSE]:Xu[Qu.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>Yu||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Yu||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Yu||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<Yu)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(Ju("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(Ju("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 Dy(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(Ju("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 Dy(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?Xu[Qu.PRERELEASELOOSE]:Xu[Qu.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]),Dy(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}};oI.exports=Ly});var gs=x((Ele,iI)=>{"use strict";var sI=ar(),BK=(e,t,r=!1)=>{if(e instanceof sI)return e;try{return new sI(e,t)}catch(n){if(!r)return null;throw n}};iI.exports=BK});var cI=x((Tle,aI)=>{"use strict";var GK=gs(),zK=(e,t)=>{let r=GK(e,t);return r?r.version:null};aI.exports=zK});var uI=x((kle,lI)=>{"use strict";var HK=gs(),WK=(e,t)=>{let r=HK(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};lI.exports=WK});var fI=x((Rle,dI)=>{"use strict";var pI=ar(),VK=(e,t,r,n,o)=>{typeof r=="string"&&(o=n,n=r,r=void 0);try{return new pI(e instanceof pI?e.version:e,r).inc(t,n,o).version}catch{return null}};dI.exports=VK});var gI=x((Ple,hI)=>{"use strict";var mI=gs(),KK=(e,t)=>{let r=mI(e,null,!0),n=mI(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 l=c?"pre":"";return r.major!==n.major?l+"major":r.minor!==n.minor?l+"minor":r.patch!==n.patch?l+"patch":"prerelease"};hI.exports=KK});var vI=x((Ile,yI)=>{"use strict";var JK=ar(),YK=(e,t)=>new JK(e,t).major;yI.exports=YK});var xI=x((Ale,wI)=>{"use strict";var XK=ar(),QK=(e,t)=>new XK(e,t).minor;wI.exports=QK});var _I=x((Cle,bI)=>{"use strict";var ZK=ar(),e4=(e,t)=>new ZK(e,t).patch;bI.exports=e4});var EI=x(($le,SI)=>{"use strict";var t4=gs(),r4=(e,t)=>{let r=t4(e,t);return r&&r.prerelease.length?r.prerelease:null};SI.exports=r4});var rn=x((Ole,kI)=>{"use strict";var TI=ar(),n4=(e,t,r)=>new TI(e,r).compare(new TI(t,r));kI.exports=n4});var PI=x((Nle,RI)=>{"use strict";var o4=rn(),s4=(e,t,r)=>o4(t,e,r);RI.exports=s4});var AI=x((Mle,II)=>{"use strict";var i4=rn(),a4=(e,t)=>i4(e,t,!0);II.exports=a4});var Zu=x((Dle,$I)=>{"use strict";var CI=ar(),c4=(e,t,r)=>{let n=new CI(e,r),o=new CI(t,r);return n.compare(o)||n.compareBuild(o)};$I.exports=c4});var NI=x((Lle,OI)=>{"use strict";var l4=Zu(),u4=(e,t)=>e.sort((r,n)=>l4(r,n,t));OI.exports=u4});var DI=x((jle,MI)=>{"use strict";var p4=Zu(),d4=(e,t)=>e.sort((r,n)=>p4(n,r,t));MI.exports=d4});var kc=x((Fle,LI)=>{"use strict";var f4=rn(),m4=(e,t,r)=>f4(e,t,r)>0;LI.exports=m4});var ep=x((qle,jI)=>{"use strict";var h4=rn(),g4=(e,t,r)=>h4(e,t,r)<0;jI.exports=g4});var jy=x((Ule,FI)=>{"use strict";var y4=rn(),v4=(e,t,r)=>y4(e,t,r)===0;FI.exports=v4});var Fy=x((Ble,qI)=>{"use strict";var w4=rn(),x4=(e,t,r)=>w4(e,t,r)!==0;qI.exports=x4});var tp=x((Gle,UI)=>{"use strict";var b4=rn(),_4=(e,t,r)=>b4(e,t,r)>=0;UI.exports=_4});var rp=x((zle,BI)=>{"use strict";var S4=rn(),E4=(e,t,r)=>S4(e,t,r)<=0;BI.exports=E4});var qy=x((Hle,GI)=>{"use strict";var T4=jy(),k4=Fy(),R4=kc(),P4=tp(),I4=ep(),A4=rp(),C4=(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 T4(e,r,n);case"!=":return k4(e,r,n);case">":return R4(e,r,n);case">=":return P4(e,r,n);case"<":return I4(e,r,n);case"<=":return A4(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};GI.exports=C4});var HI=x((Wle,zI)=>{"use strict";var $4=ar(),O4=gs(),{safeRe:np,t:op}=Ti(),N4=(e,t)=>{if(e instanceof $4)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?np[op.COERCEFULL]:np[op.COERCE]);else{let c=t.includePrerelease?np[op.COERCERTLFULL]:np[op.COERCERTL],u;for(;(u=c.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),c.lastIndex=u.index+u[1].length+u[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 O4(`${n}.${o}.${s}${i}${a}`,t)};zI.exports=N4});var VI=x((Vle,WI)=>{"use strict";var Uy=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}};WI.exports=Uy});var nn=x((Kle,XI)=>{"use strict";var M4=/\s+/g,By=class e{constructor(t,r){if(r=L4(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof Gy)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(M4," "),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=>!JI(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&&z4(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&&B4)|(this.options.loose&&G4))+":"+t,o=KI.get(n);if(o)return o;let s=this.options.loose,i=s?mr[cr.HYPHENRANGELOOSE]:mr[cr.HYPHENRANGE];t=t.replace(i,e6(this.options.includePrerelease)),dt("hyphen replace",t),t=t.replace(mr[cr.COMPARATORTRIM],F4),dt("comparator trim",t),t=t.replace(mr[cr.TILDETRIM],q4),dt("tilde trim",t),t=t.replace(mr[cr.CARETTRIM],U4),dt("caret trim",t);let a=t.split(" ").map(p=>H4(p,this.options)).join(" ").split(/\s+/).map(p=>Z4(p,this.options));s&&(a=a.filter(p=>(dt("loose invalid filter",p,this.options),!!p.match(mr[cr.COMPARATORLOOSE])))),dt("range list",a);let c=new Map,u=a.map(p=>new Gy(p,this.options));for(let p of u){if(JI(p))return[p];c.set(p.value,p)}c.size>1&&c.has("")&&c.delete("");let l=[...c.values()];return KI.set(n,l),l}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>YI(n,r)&&t.set.some(o=>YI(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 j4(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(t6(this.set[r],t,this.options))return!0;return!1}};XI.exports=By;var D4=VI(),KI=new D4,L4=Ku(),Gy=Rc(),dt=Tc(),j4=ar(),{safeRe:mr,t:cr,comparatorTrimReplace:F4,tildeTrimReplace:q4,caretTrimReplace:U4}=Ti(),{FLAG_INCLUDE_PRERELEASE:B4,FLAG_LOOSE:G4}=Ec(),JI=e=>e.value==="<0.0.0-0",z4=e=>e.value==="",YI=(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},H4=(e,t)=>(e=e.replace(mr[cr.BUILD],""),dt("comp",e,t),e=K4(e,t),dt("caret",e),e=W4(e,t),dt("tildes",e),e=Y4(e,t),dt("xrange",e),e=Q4(e,t),dt("stars",e),e),hr=e=>!e||e.toLowerCase()==="x"||e==="*",W4=(e,t)=>e.trim().split(/\s+/).map(r=>V4(r,t)).join(" "),V4=(e,t)=>{let r=t.loose?mr[cr.TILDELOOSE]:mr[cr.TILDE];return e.replace(r,(n,o,s,i,a)=>{dt("tilde",e,n,o,s,i,a);let c;return hr(o)?c="":hr(s)?c=`>=${o}.0.0 <${+o+1}.0.0-0`:hr(i)?c=`>=${o}.${s}.0 <${o}.${+s+1}.0-0`:a?(dt("replaceTilde pr",a),c=`>=${o}.${s}.${i}-${a} <${o}.${+s+1}.0-0`):c=`>=${o}.${s}.${i} <${o}.${+s+1}.0-0`,dt("tilde return",c),c})},K4=(e,t)=>e.trim().split(/\s+/).map(r=>J4(r,t)).join(" "),J4=(e,t)=>{dt("caret",e,t);let r=t.loose?mr[cr.CARETLOOSE]:mr[cr.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(o,s,i,a,c)=>{dt("caret",e,o,s,i,a,c);let u;return hr(s)?u="":hr(i)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:hr(a)?s==="0"?u=`>=${s}.${i}.0${n} <${s}.${+i+1}.0-0`:u=`>=${s}.${i}.0${n} <${+s+1}.0.0-0`:c?(dt("replaceCaret pr",c),s==="0"?i==="0"?u=`>=${s}.${i}.${a}-${c} <${s}.${i}.${+a+1}-0`:u=`>=${s}.${i}.${a}-${c} <${s}.${+i+1}.0-0`:u=`>=${s}.${i}.${a}-${c} <${+s+1}.0.0-0`):(dt("no pr"),s==="0"?i==="0"?u=`>=${s}.${i}.${a}${n} <${s}.${i}.${+a+1}-0`:u=`>=${s}.${i}.${a}${n} <${s}.${+i+1}.0-0`:u=`>=${s}.${i}.${a} <${+s+1}.0.0-0`),dt("caret return",u),u})},Y4=(e,t)=>(dt("replaceXRanges",e,t),e.split(/\s+/).map(r=>X4(r,t)).join(" ")),X4=(e,t)=>{e=e.trim();let r=t.loose?mr[cr.XRANGELOOSE]:mr[cr.XRANGE];return e.replace(r,(n,o,s,i,a,c)=>{dt("xRange",e,n,o,s,i,a,c);let u=hr(s),l=u||hr(i),p=l||hr(a),f=p;return o==="="&&f&&(o=""),c=t.includePrerelease?"-0":"",u?o===">"||o==="<"?n="<0.0.0-0":n="*":o&&f?(l&&(i=0),a=0,o===">"?(o=">=",l?(s=+s+1,i=0,a=0):(i=+i+1,a=0)):o==="<="&&(o="<",l?s=+s+1:i=+i+1),o==="<"&&(c="-0"),n=`${o+s}.${i}.${a}${c}`):l?n=`>=${s}.0.0${c} <${+s+1}.0.0-0`:p&&(n=`>=${s}.${i}.0${c} <${s}.${+i+1}.0-0`),dt("xRange return",n),n})},Q4=(e,t)=>(dt("replaceStars",e,t),e.trim().replace(mr[cr.STAR],"")),Z4=(e,t)=>(dt("replaceGTE0",e,t),e.trim().replace(mr[t.includePrerelease?cr.GTE0PRE:cr.GTE0],"")),e6=e=>(t,r,n,o,s,i,a,c,u,l,p,f)=>(hr(n)?r="":hr(o)?r=`>=${n}.0.0${e?"-0":""}`:hr(s)?r=`>=${n}.${o}.0${e?"-0":""}`:i?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,hr(u)?c="":hr(l)?c=`<${+u+1}.0.0-0`:hr(p)?c=`<${u}.${+l+1}.0-0`:f?c=`<=${u}.${l}.${p}-${f}`:e?c=`<${u}.${l}.${+p+1}-0`:c=`<=${c}`,`${r} ${c}`.trim()),t6=(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(dt(e[n].semver),e[n].semver!==Gy.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 Rc=x((Jle,nA)=>{"use strict";var Pc=Symbol("SemVer ANY"),Wy=class e{static get ANY(){return Pc}constructor(t,r){if(r=QI(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),Hy("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===Pc?this.value="":this.value=this.operator+this.semver.version,Hy("comp",this)}parse(t){let r=this.options.loose?ZI[eA.COMPARATORLOOSE]:ZI[eA.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 tA(n[2],this.options.loose):this.semver=Pc}toString(){return this.value}test(t){if(Hy("Comparator.test",t,this.options.loose),this.semver===Pc||t===Pc)return!0;if(typeof t=="string")try{t=new tA(t,this.options)}catch{return!1}return zy(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 rA(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new rA(this.value,r).test(t.semver):(r=QI(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("=")||zy(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||zy(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};nA.exports=Wy;var QI=Ku(),{safeRe:ZI,t:eA}=Ti(),zy=qy(),Hy=Tc(),tA=ar(),rA=nn()});var Ic=x((Yle,oA)=>{"use strict";var r6=nn(),n6=(e,t,r)=>{try{t=new r6(t,r)}catch{return!1}return t.test(e)};oA.exports=n6});var iA=x((Xle,sA)=>{"use strict";var o6=nn(),s6=(e,t)=>new o6(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));sA.exports=s6});var cA=x((Qle,aA)=>{"use strict";var i6=ar(),a6=nn(),c6=(e,t,r)=>{let n=null,o=null,s=null;try{s=new a6(t,r)}catch{return null}return e.forEach(i=>{s.test(i)&&(!n||o.compare(i)===-1)&&(n=i,o=new i6(n,r))}),n};aA.exports=c6});var uA=x((Zle,lA)=>{"use strict";var l6=ar(),u6=nn(),p6=(e,t,r)=>{let n=null,o=null,s=null;try{s=new u6(t,r)}catch{return null}return e.forEach(i=>{s.test(i)&&(!n||o.compare(i)===1)&&(n=i,o=new l6(n,r))}),n};lA.exports=p6});var fA=x((eue,dA)=>{"use strict";var Vy=ar(),d6=nn(),pA=kc(),f6=(e,t)=>{e=new d6(e,t);let r=new Vy("0.0.0");if(e.test(r)||(r=new Vy("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 Vy(i.semver.version);switch(i.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||pA(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${i.operator}`)}}),s&&(!r||pA(r,s))&&(r=s)}return r&&e.test(r)?r:null};dA.exports=f6});var hA=x((tue,mA)=>{"use strict";var m6=nn(),h6=(e,t)=>{try{return new m6(e,t).range||"*"}catch{return null}};mA.exports=h6});var sp=x((rue,wA)=>{"use strict";var g6=ar(),vA=Rc(),{ANY:y6}=vA,v6=nn(),w6=Ic(),gA=kc(),yA=ep(),x6=rp(),b6=tp(),_6=(e,t,r,n)=>{e=new g6(e,n),t=new v6(t,n);let o,s,i,a,c;switch(r){case">":o=gA,s=x6,i=yA,a=">",c=">=";break;case"<":o=yA,s=b6,i=gA,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(w6(e,t,n))return!1;for(let u=0;u<t.set.length;++u){let l=t.set[u],p=null,f=null;if(l.forEach(m=>{m.semver===y6&&(m=new vA(">=0.0.0")),p=p||m,f=f||m,o(m.semver,p.semver,n)?p=m:i(m.semver,f.semver,n)&&(f=m)}),p.operator===a||p.operator===c||(!f.operator||f.operator===a)&&s(e,f.semver))return!1;if(f.operator===c&&i(e,f.semver))return!1}return!0};wA.exports=_6});var bA=x((nue,xA)=>{"use strict";var S6=sp(),E6=(e,t,r)=>S6(e,t,">",r);xA.exports=E6});var SA=x((oue,_A)=>{"use strict";var T6=sp(),k6=(e,t,r)=>T6(e,t,"<",r);_A.exports=k6});var kA=x((sue,TA)=>{"use strict";var EA=nn(),R6=(e,t,r)=>(e=new EA(e,r),t=new EA(t,r),e.intersects(t,r));TA.exports=R6});var PA=x((iue,RA)=>{"use strict";var P6=Ic(),I6=rn();RA.exports=(e,t,r)=>{let n=[],o=null,s=null,i=e.sort((l,p)=>I6(l,p,r));for(let l of i)P6(l,t,r)?(s=l,o||(o=l)):(s&&n.push([o,s]),s=null,o=null);o&&n.push([o,null]);let a=[];for(let[l,p]of n)l===p?a.push(l):!p&&l===i[0]?a.push("*"):p?l===i[0]?a.push(`<=${p}`):a.push(`${l} - ${p}`):a.push(`>=${l}`);let c=a.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return c.length<u.length?c:t}});var NA=x((aue,OA)=>{"use strict";var IA=nn(),Jy=Rc(),{ANY:Ky}=Jy,Ac=Ic(),Yy=rn(),A6=(e,t,r={})=>{if(e===t)return!0;e=new IA(e,r),t=new IA(t,r);let n=!1;e:for(let o of e.set){for(let s of t.set){let i=$6(o,s,r);if(n=n||i!==null,i)continue e}if(n)return!1}return!0},C6=[new Jy(">=0.0.0-0")],AA=[new Jy(">=0.0.0")],$6=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Ky){if(t.length===1&&t[0].semver===Ky)return!0;r.includePrerelease?e=C6:e=AA}if(t.length===1&&t[0].semver===Ky){if(r.includePrerelease)return!0;t=AA}let n=new Set,o,s;for(let m of e)m.operator===">"||m.operator===">="?o=CA(o,m,r):m.operator==="<"||m.operator==="<="?s=$A(s,m,r):n.add(m.semver);if(n.size>1)return null;let i;if(o&&s){if(i=Yy(o.semver,s.semver,r),i>0)return null;if(i===0&&(o.operator!==">="||s.operator!=="<="))return null}for(let m of n){if(o&&!Ac(m,String(o),r)||s&&!Ac(m,String(s),r))return null;for(let h of t)if(!Ac(m,String(h),r))return!1;return!0}let a,c,u,l,p=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,f=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 m of t){if(l=l||m.operator===">"||m.operator===">=",u=u||m.operator==="<"||m.operator==="<=",o){if(f&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===f.major&&m.semver.minor===f.minor&&m.semver.patch===f.patch&&(f=!1),m.operator===">"||m.operator===">="){if(a=CA(o,m,r),a===m&&a!==o)return!1}else if(o.operator===">="&&!Ac(o.semver,String(m),r))return!1}if(s){if(p&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===p.major&&m.semver.minor===p.minor&&m.semver.patch===p.patch&&(p=!1),m.operator==="<"||m.operator==="<="){if(c=$A(s,m,r),c===m&&c!==s)return!1}else if(s.operator==="<="&&!Ac(s.semver,String(m),r))return!1}if(!m.operator&&(s||o)&&i!==0)return!1}return!(o&&u&&!s&&i!==0||s&&l&&!o&&i!==0||f||p)},CA=(e,t,r)=>{if(!e)return t;let n=Yy(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},$A=(e,t,r)=>{if(!e)return t;let n=Yy(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};OA.exports=A6});var jA=x((cue,LA)=>{"use strict";var Xy=Ti(),MA=Ec(),O6=ar(),DA=My(),N6=gs(),M6=cI(),D6=uI(),L6=fI(),j6=gI(),F6=vI(),q6=xI(),U6=_I(),B6=EI(),G6=rn(),z6=PI(),H6=AI(),W6=Zu(),V6=NI(),K6=DI(),J6=kc(),Y6=ep(),X6=jy(),Q6=Fy(),Z6=tp(),e9=rp(),t9=qy(),r9=HI(),n9=Rc(),o9=nn(),s9=Ic(),i9=iA(),a9=cA(),c9=uA(),l9=fA(),u9=hA(),p9=sp(),d9=bA(),f9=SA(),m9=kA(),h9=PA(),g9=NA();LA.exports={parse:N6,valid:M6,clean:D6,inc:L6,diff:j6,major:F6,minor:q6,patch:U6,prerelease:B6,compare:G6,rcompare:z6,compareLoose:H6,compareBuild:W6,sort:V6,rsort:K6,gt:J6,lt:Y6,eq:X6,neq:Q6,gte:Z6,lte:e9,cmp:t9,coerce:r9,Comparator:n9,Range:o9,satisfies:s9,toComparators:i9,maxSatisfying:a9,minSatisfying:c9,minVersion:l9,validRange:u9,outside:p9,gtr:d9,ltr:f9,intersects:m9,simplifyRange:h9,subset:g9,SemVer:O6,re:Xy.re,src:Xy.src,tokens:Xy.t,SEMVER_SPEC_VERSION:MA.SEMVER_SPEC_VERSION,RELEASE_TYPES:MA.RELEASE_TYPES,compareIdentifiers:DA.compareIdentifiers,rcompareIdentifiers:DA.rcompareIdentifiers}});function qA(e,t,r){return e?e.constructor===t?!0:y9.call(e)===r:!1}function UA(e){return qA(e,Uint8Array,v9)}function x9(e){return qA(e,ArrayBuffer,w9)}function b9(e){return UA(e)||x9(e)}function _9(e){if(!UA(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}function S9(e){if(!b9(e))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``)}function ip(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)_9(o),r.set(o,n),n+=o.length;return r}function Cc(e,t="utf8"){return S9(e),FA[t]??=new globalThis.TextDecoder(t),FA[t].decode(e)}function E9(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}function ap(e){return E9(e),T9.encode(e)}var y9,v9,w9,FA,T9,lue,BA=S(()=>{y9=Object.prototype.toString,v9="[object Uint8Array]",w9="[object ArrayBuffer]";FA={utf8:new globalThis.TextDecoder("utf8")};T9=new globalThis.TextEncoder;lue=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"))});import{isDeepStrictEqual as GA}from"node:util";import Qy from"node:process";import to from"node:fs";import cp from"node:path";import $c from"node:crypto";import zA from"node:assert";var VA,KA,ys,HA,JA,k9,ro,WA,Zy,Oo,ev,vs,tv=S(()=>{z0();W0();xS();VA=Or(xk(),1),KA=Or(VP(),1);JP();ys=Or(jA(),1);BA();HA="aes-256-cbc",JA=new Set(["aes-256-cbc","aes-256-gcm","aes-256-ctr"]),k9=e=>typeof e=="string"&&JA.has(e),ro=()=>Object.create(null),WA=e=>e!==void 0,Zy=(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`)},Oo="__internal__",ev=`${Oo}.migrations.version`,vs=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??HA,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 ${Oo} key, as it's used to manage this module internal operations.`);let{store:n}=this,o=(s,i)=>{if(Zy(s,i),this.#e.accessPropertiesByDotNotation)ma(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?Ml(this.store,t):t in this.store}appendToArray(t,r){Zy(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)WA(this.#t[r])&&this.set(r,this.#t[r])}delete(t){let{store:r}=this;this.#e.accessPropertiesByDotNotation?G0(r,t):delete r[t],this.store=r}clear(){let t=ro();for(let r of Object.keys(this.#t))WA(this.#t[r])&&(Zy(r,this.#t[r]),this.#e.accessPropertiesByDotNotation?ma(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=to.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(ro(),s)})(r)}catch(t){if(t?.code==="ENOENT")return this._ensureDirectory(),ro();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 ro()}throw t}}set store(t){if(this._ensureDirectory(),!Ml(t,Oo))try{let r=to.readFileSync(this.path,this.#o?null:"utf8"),n=this._decryptData(r),o=this._deserialize(n);Ml(o,Oo)&&ma(t,Oo,Af(o,Oo))}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&&(to.unwatchFile(this.path),this.#c=!1),this.#r=void 0}_decryptData(t){let r=this.#o;if(!r)return typeof t=="string"?t:Cc(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:Cc(t);throw new Error("Failed to decrypt config data.")}let c=m=>{if(o===0)return{ciphertext:m};let h=m.length-o;if(h<0)throw new Error("Invalid authentication tag length.");return{ciphertext:m.slice(0,h),authenticationTag:m.slice(h)}},u=t.slice(0,16),l=t.slice(17),p=typeof l=="string"?ap(l):l,f=m=>{let{ciphertext:h,authenticationTag:g}=c(p),w=$c.pbkdf2Sync(r,m,1e4,32,"sha512"),v=$c.createDecipheriv(n,w,u);return g&&v.setAuthTag(g),Cc(ip([v.update(h),v.final()]))};try{return f(u)}catch{try{return f(u.toString())}catch{}}if(n==="aes-256-cbc")return typeof t=="string"?t:Cc(t);throw new Error("Failed to decrypt config data.")}_handleStoreChange(t){let r=this.store,n=()=>{let o=r,s=this.store;GA(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();GA(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(){to.mkdirSync(cp.dirname(this.path),{recursive:!0})}_write(t){let r=this._serialize(t),n=this.#o;if(n){let o=$c.randomBytes(16),s=$c.pbkdf2Sync(n,o,1e4,32,"sha512"),i=$c.createCipheriv(this.#s,s,o),a=ip([i.update(ap(r)),i.final()]),c=[o,ap(":"),a];this.#s==="aes-256-gcm"&&c.push(i.getAuthTag()),r=ip(c)}if(Qy.env.SNAP)to.writeFileSync(this.path,r,{mode:this.#e.configFileMode});else try{Hf(this.path,r,{mode:this.#e.configFileMode})}catch(o){if(o?.code==="EXDEV"){to.writeFileSync(this.path,r,{mode:this.#e.configFileMode});return}throw o}}_watch(){if(this._ensureDirectory(),to.existsSync(this.path)||this._write(ro()),Qy.platform==="win32"||Qy.platform==="darwin"){this.#r??=$y(()=>{this.events.dispatchEvent(new Event("change"))},{wait:100});let t=cp.dirname(this.path),r=cp.basename(this.path);this.#a=to.watch(t,{persistent:!1,encoding:"utf8"},(n,o)=>{o&&o!==r||typeof this.#r=="function"&&this.#r()})}else this.#r??=$y(()=>{this.events.dispatchEvent(new Event("change"))},{wait:1e3}),to.watchFile(this.path,{persistent:!1},(t,r)=>{typeof this.#r=="function"&&this.#r()}),this.#c=!0}_migrate(t,r,n){let o=this._get(ev,"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(ev,a),o=a,i=structuredClone(this.store)}catch(c){this.store=i;let u=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. ${u}`)}(this._isVersionInRangeFormat(o)||!ys.default.eq(o,r))&&this._set(ev,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===Oo||t.startsWith(`${Oo}.`)}_isVersionInRangeFormat(t){return ys.default.clean(t)===null}_shouldPerformMigration(t,r,n){return this._isVersionInRangeFormat(t)?r!=="0.0.0"&&ys.default.satisfies(r,t)?!1:ys.default.satisfies(n,t):!(ys.default.lte(t,r)||ys.default.gt(t,n))}_get(t,r){return Af(this.store,t,r)}_set(t,r){let{store:n}=this;ma(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??=HA,!k9(r.encryptionAlgorithm))throw new TypeError(`The \`encryptionAlgorithm\` option must be one of: ${[...JA].join(", ")}`);if(!r.cwd){if(!r.projectName)throw new Error("Please specify the `projectName` option.");r.cwd=Of(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=KA.default.default,n=new VA.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 cp.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(ro(),t.defaults??{},r);this._validate(n);try{zA.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(ro(),t.defaults??{},o);try{zA.deepEqual(o,s)}catch{this._write(s)}this._migrate(r,n,t.beforeEachMigration)}finally{this.#i=!1}}}}});import lr from"node:fs";import lp from"node:path";function I9(){return lp.join(P9,".flowdot")}function XA(){return lp.join(I9(),"logs")}function QA(){let e=XA();return YA?lp.join(e,`${YA}.log`):lp.join(e,"debug.log")}function A9(){try{let e=XA();lr.existsSync(e)||lr.mkdirSync(e,{recursive:!0,mode:448})}catch{}}function C9(e){try{if(!lr.existsSync(e))return;let r=lr.statSync(e).size;if(r>0){let o=lr.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?lr.writeSync(o,Buffer.alloc(a),0,a,s):lr.writeSync(o,i,0,a,s),s+=a}lr.fsyncSync(o)}finally{lr.closeSync(o)}}lr.unlinkSync(e)}catch{try{lr.unlinkSync(e)}catch{}}}function $9(){try{let e=QA();if(lr.existsSync(e)&&lr.statSync(e).size>R9){let r=e+".old";lr.existsSync(r)&&C9(r),lr.renameSync(e,r)}}catch{}}function rv(e,t,r,n=null){try{A9(),$9();let s={timestamp:new Date().toISOString(),level:e,category:t,message:r};n!=null&&(s.data=n);let i=JSON.stringify(s)+`
31
- `;lr.appendFileSync(QA(),i,{encoding:"utf-8",mode:384})}catch{}}function C(e,t,r=null){rv("DEBUG",e,t,r)}function B(e,t,r=null){rv("WARN",e,t,r)}function me(e,t,r=null){rv("ERROR",e,t,r)}var R9,P9,YA,G=S(()=>{"use strict";R9=10*1024*1024,P9=process.cwd(),YA=null});function N9(e){return e==="localhost"||e==="127.0.0.1"||e==="::1"||e==="[::1]"||e==="0.0.0.0"}function nv(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 u of r)if(n.startsWith(u))return{valid:!1,normalizedUrl:"",error:`Invalid URL scheme: ${u.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 u=parseInt(o.port,10);if(isNaN(u)||u<1||u>65535)return{valid:!1,normalizedUrl:"",error:`Invalid port: ${o.port}. Must be between 1 and 65535`}}if(o.protocol==="http:"&&!N9(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=O9.some(u=>s===u||s.endsWith("."+u)),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 O9,yt,ov,gr=S(()=>{"use strict";tv();G();O9=["flowdot.ai","flowdot.io","localhost","127.0.0.1","::1","0.0.0.0"];yt=class{store;constructor(){this.store=new vs({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=nv(r);if(!n.valid)throw new Error(`Invalid API URL: ${n.error}`);this.store.set(t,n.normalizedUrl),n.warning&&B("CONFIG",n.warning);return}this.store.set(t,r)}setApiUrl(t){let r=nv(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()}},ov=new yt});var eC=x((Pue,ZA)=>{"use strict";ZA.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 sv=x((Iue,rC)=>{var Oc=eC(),tC={};for(let e of Object.keys(Oc))tC[Oc[e]]=e;var X={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"]}};rC.exports=X;for(let e of Object.keys(X)){if(!("channels"in X[e]))throw new Error("missing channels property: "+e);if(!("labels"in X[e]))throw new Error("missing channel labels property: "+e);if(X[e].labels.length!==X[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=X[e];delete X[e].channels,delete X[e].labels,Object.defineProperty(X[e],"channels",{value:t}),Object.defineProperty(X[e],"labels",{value:r})}X.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 u=(o+s)/2;return s===o?c=0:u<=.5?c=i/(s+o):c=i/(2-s-o),[a,c*100,u*100]};X.rgb.hsv=function(e){let t,r,n,o,s,i=e[0]/255,a=e[1]/255,c=e[2]/255,u=Math.max(i,a,c),l=u-Math.min(i,a,c),p=function(f){return(u-f)/6/l+1/2};return l===0?(o=0,s=0):(s=l/u,t=p(i),r=p(a),n=p(c),i===u?o=n-r:a===u?o=1/3+t-n:c===u&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,s*100,u*100]};X.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],o=X.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]};X.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 M9(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}X.rgb.keyword=function(e){let t=tC[e];if(t)return t;let r=1/0,n;for(let o of Object.keys(Oc)){let s=Oc[o],i=M9(e,s);i<r&&(r=i,n=o)}return n};X.keyword.rgb=function(e){return Oc[e]};X.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]};X.rgb.lab=function(e){let t=X.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]};X.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 u=0;u<3;u++)s=t+1/3*-(u-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[u]=i*255;return c};X.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]};X.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]}};X.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]};X.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),u,l,p;switch(i){default:case 6:case 0:u=a,l=c,p=r;break;case 1:u=c,l=a,p=r;break;case 2:u=r,l=a,p=c;break;case 3:u=r,l=c,p=a;break;case 4:u=c,l=r,p=a;break;case 5:u=a,l=r,p=c;break}return[u*255,l*255,p*255]};X.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]};X.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]};X.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]};X.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,u=i**3;return s=a>.008856?a:(s-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o*=95.047,s*=100,i*=108.883,[o,s,i]};X.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]};X.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]};X.rgb.ansi16=function(e,t=null){let[r,n,o]=e,s=t===null?X.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};X.hsv.ansi16=function(e){return X.rgb.ansi16(X.hsv.rgb(e),e[2])};X.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)};X.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]};X.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]};X.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};X.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]};X.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]};X.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]};X.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]};X.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]};X.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]};X.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]};X.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]};X.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]};X.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};X.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};X.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};X.gray.hsl=function(e){return[0,0,e[0]]};X.gray.hsv=X.gray.hsl;X.gray.hwb=function(e){return[0,100,e[0]]};X.gray.cmyk=function(e){return[0,0,0,e[0]]};X.gray.lab=function(e){return[e[0],0,0]};X.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};X.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var oC=x((Aue,nC)=>{var pp=sv();function D9(){let e={},t=Object.keys(pp);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function L9(e){let t=D9(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),o=Object.keys(pp[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 j9(e,t){return function(r){return t(e(r))}}function F9(e,t){let r=[t[e].parent,e],n=pp[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),n=j9(pp[t[o].parent][o],n),o=t[o].parent;return n.conversion=r,n}nC.exports=function(e){let t=L9(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]=F9(i,t))}return r}});var iC=x((Cue,sC)=>{var iv=sv(),q9=oC(),ki={},U9=Object.keys(iv);function B9(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 G9(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}U9.forEach(e=>{ki[e]={},Object.defineProperty(ki[e],"channels",{value:iv[e].channels}),Object.defineProperty(ki[e],"labels",{value:iv[e].labels});let t=q9(e);Object.keys(t).forEach(n=>{let o=t[n];ki[e][n]=G9(o),ki[e][n].raw=B9(o)})});sC.exports=ki});var dC=x(($ue,pC)=>{"use strict";var aC=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,cC=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},lC=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},dp=e=>e,uC=(e,t,r)=>[e,t,r],Ri=(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})},av,Pi=(e,t,r,n)=>{av===void 0&&(av=iC());let o=n?10:0,s={};for(let[i,a]of Object.entries(av)){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 z9(){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",Ri(t.color,"ansi",()=>Pi(aC,"ansi16",dp,!1)),Ri(t.color,"ansi256",()=>Pi(cC,"ansi256",dp,!1)),Ri(t.color,"ansi16m",()=>Pi(lC,"rgb",uC,!1)),Ri(t.bgColor,"ansi",()=>Pi(aC,"ansi16",dp,!0)),Ri(t.bgColor,"ansi256",()=>Pi(cC,"ansi256",dp,!0)),Ri(t.bgColor,"ansi16m",()=>Pi(lC,"rgb",uC,!0)),t}Object.defineProperty(pC,"exports",{enumerable:!0,get:z9})});var mC=x((Oue,fC)=>{"use strict";var H9=(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},W9=(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
32
- `:`
33
- `)+r,o=n+1,n=e.indexOf(`
34
- `,o)}while(n!==-1);return s+=e.substr(o),s};fC.exports={stringReplaceAll:H9,stringEncaseCRLFWithFirstIndex:W9}});var wC=x((Nue,vC)=>{"use strict";var V9=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,hC=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,K9=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,J9=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Y9=new Map([["n",`
35
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function yC(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)):Y9.get(e)||e}function X9(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(K9))r.push(o[2].replace(J9,(a,c,u)=>c?yC(c):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`)}return r}function Q9(e){hC.lastIndex=0;let t=[],r;for(;(r=hC.exec(e))!==null;){let n=r[1];if(r[2]){let o=X9(n,r[2]);t.push([n].concat(o))}else t.push([n])}return t}function gC(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}vC.exports=(e,t)=>{let r=[],n=[],o=[];if(t.replace(V9,(s,i,a,c,u,l)=>{if(i)o.push(yC(i));else if(c){let p=o.join("");o=[],n.push(r.length===0?p:gC(e,r)(p)),r.push({inverse:a,styles:Q9(c)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(gC(e,r)(o.join(""))),o=[],r.pop()}else o.push(l)}),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 No=x((Mue,TC)=>{"use strict";var Nc=dC(),{stdout:lv,stderr:uv}=Vd(),{stringReplaceAll:Z9,stringEncaseCRLFWithFirstIndex:e8}=mC(),{isArray:fp}=Array,bC=["ansi","ansi","ansi256","ansi16m"],Ii=Object.create(null),t8=(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=lv?lv.level:0;e.level=t.level===void 0?r:t.level},pv=class{constructor(t){return _C(t)}},_C=e=>{let t={};return t8(t,e),t.template=(...r)=>EC(t.template,...r),Object.setPrototypeOf(t,mp.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=pv,t.template};function mp(e){return _C(e)}for(let[e,t]of Object.entries(Nc))Ii[e]={get(){let r=hp(this,dv(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};Ii.visible={get(){let e=hp(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var SC=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of SC)Ii[e]={get(){let{level:t}=this;return function(...r){let n=dv(Nc.color[bC[t]][e](...r),Nc.color.close,this._styler);return hp(this,n,this._isEmpty)}}};for(let e of SC){let t="bg"+e[0].toUpperCase()+e.slice(1);Ii[t]={get(){let{level:r}=this;return function(...n){let o=dv(Nc.bgColor[bC[r]][e](...n),Nc.bgColor.close,this._styler);return hp(this,o,this._isEmpty)}}}}var r8=Object.defineProperties(()=>{},{...Ii,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),dv=(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}},hp=(e,t,r)=>{let n=(...o)=>fp(o[0])&&fp(o[0].raw)?xC(n,EC(n,...o)):xC(n,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(n,r8),n._generator=e,n._styler=t,n._isEmpty=r,n},xC=(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=Z9(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
36
- `);return s!==-1&&(t=e8(t,o,n,s)),n+t+o},cv,EC=(e,...t)=>{let[r]=t;if(!fp(r)||!fp(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 cv===void 0&&(cv=wC()),cv(e,o.join(""))};Object.defineProperties(mp.prototype,Ii);var gp=mp();gp.supportsColor=lv;gp.stderr=mp({level:uv?uv.level:0});gp.stderr.supportsColor=uv;TC.exports=gp});async function yp(){if(!kC){kC=!0;try{fv=(await import("keytar")).default??await import("keytar")}catch{fv=null}}return fv}function PC(e){return`oauth-${e}-access`}function IC(e){return`oauth-${e}-refresh`}function AC(e){return`oauth-${e}-expires`}async function n8(e,t){let r=await yp();if(!r)throw new Error("keytar is not available \u2014 cannot save OAuth tokens");if(await r.setPassword(Ai,PC(e),t.access_token),t.refresh_token&&await r.setPassword(Ai,IC(e),t.refresh_token),t.expires_in){let n=Date.now()+t.expires_in*1e3;await r.setPassword(Ai,AC(e),n.toString())}}async function o8(e){let t=await yp();return t?await t.getPassword(Ai,PC(e)):null}async function s8(e){let t=await yp();return t?await t.getPassword(Ai,IC(e)):null}async function i8(e){let t=await yp();if(!t)return null;let r=await t.getPassword(Ai,AC(e));return r?parseInt(r,10):null}async function CC(e){let t=RC[e];if(!t)throw new Error(`Unknown OAuth provider: ${e}`);let r=await s8(e);if(!r)return null;let n=3,o=null;for(let s=0;s<n;s++)try{let a=(await gt.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 n8(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 $C(e){let t=await i8(e),r=Date.now();if(t&&r>=t-300*1e3){let o=await CC(e);if(o)return o}let n=await o8(e);if(!n)throw new Error(`No OAuth token found for provider: ${e}. Run: flowdot connect ${e}`);return n}async function mv(e,t,r){if(!RC[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 $C(e);if(e==="openai")return(await gt.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,gt.isAxiosError(a)){let c=a.response?.status,u=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 CC(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 l=Math.pow(2,i)*1e3;await new Promise(p=>setTimeout(p,l));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 l=Math.pow(2,i)*1e3;await new Promise(p=>setTimeout(p,l));continue}throw new Error(`${e} is experiencing issues. Please try again later.`)}throw new Error(`${e} API error: ${u}`)}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(u=>setTimeout(u,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 fv,kC,RC,Ai,Mc=S(()=>{"use strict";In();gr();fv=null,kC=!1;RC={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"}},Ai="flowdot-cli"});async function gv(e=!1){let t=Date.now();if(!e&&ws&&t-hv<a8)return C("SETTINGS","Using cached settings",{age:t-hv}),ws;try{let n=await(await nt()).get("/api/hub/settings");return n.data?.success&&n.data?.data?(ws=n.data.data,hv=t,C("SETTINGS","Fetched user settings",{hasPreferredModels:!!ws?.preferredModels,tiers:ws?.preferredModels?Object.keys(ws.preferredModels):[]}),ws):(B("SETTINGS","Failed to fetch settings",{response:n.data}),null)}catch(r){return me("SETTINGS","Error fetching user settings",{error:r.message}),null}}async function OC(){return(await gv())?.preferredModels||null}async function jr(e){try{let n=new vs,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 OC();if(!t)return B("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):(B("SETTINGS",`No model configured for tier: ${e}`,{availableTiers:Object.keys(t)}),null)}var ws,hv,a8,Cr=S(()=>{"use strict";ot();G();tv();ws=null,hv=0,a8=300*1e3});var DC={};Qp(DC,{checkCliAccess:()=>yv,clearCliAccessCache:()=>NC,displayUpgradeMessage:()=>vv,requireCliAccess:()=>MC});async function yv(){if(Bn&&Date.now()-Bn.checkedAt<c8)return C("CLI_ACCESS","Returning cached permission status",{canAccess:Bn.canAccess,cachedSecondsAgo:Math.floor((Date.now()-Bn.checkedAt)/1e3)}),{canAccess:Bn.canAccess,code:Bn.canAccess?"ACCESS_GRANTED":"NATIVE_APP_ACCESS_REQUIRED",upgradeUrl:Bn.canAccess?null:"https://flowdot.ai/subscriptions"};try{let t=await(await nt()).get("/api/cli/access-status"),r=t.data?.can_access??!1;return C("CLI_ACCESS","Permission check completed",{canAccess:r,code:t.data?.code}),Bn={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"),Bn={canAccess:!1,checkedAt:Date.now()},{canAccess:!1,code:"NATIVE_APP_ACCESS_REQUIRED",upgradeUrl:e.response?.data?.upgrade_url||"https://flowdot.ai/subscriptions"}):(B("CLI_ACCESS","Permission check failed, allowing access (fail-open)",{error:e.message,status:e.response?.status}),{canAccess:!0,code:"ACCESS_GRANTED",upgradeUrl:null})}}function NC(){Bn=null,C("CLI_ACCESS","Permission cache cleared")}function vv(){console.log(),console.log(ze.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(ze.default.yellow("\u2502 \u2502")),console.log(ze.default.yellow("\u2502 ")+ze.default.bold("This feature is not available on the free plan.")+ze.default.yellow(" \u2502")),console.log(ze.default.yellow("\u2502 \u2502")),console.log(ze.default.yellow("\u2502 The FlowDot CLI is available to subscribers. \u2502")),console.log(ze.default.yellow("\u2502 Upgrade your plan to unlock: \u2502")),console.log(ze.default.yellow("\u2502 \u2502")),console.log(ze.default.yellow("\u2502 ")+ze.default.white("\u2022 AI Agent execution from your terminal")+ze.default.yellow(" \u2502")),console.log(ze.default.yellow("\u2502 ")+ze.default.white("\u2022 Recipe execution and management")+ze.default.yellow(" \u2502")),console.log(ze.default.yellow("\u2502 ")+ze.default.white("\u2022 Workflow integration")+ze.default.yellow(" \u2502")),console.log(ze.default.yellow("\u2502 ")+ze.default.white("\u2022 Model browser and tier selection")+ze.default.yellow(" \u2502")),console.log(ze.default.yellow("\u2502 ")+ze.default.white("\u2022 Chat persistence and history")+ze.default.yellow(" \u2502")),console.log(ze.default.yellow("\u2502 \u2502")),console.log(ze.default.yellow("\u2502 Upgrade now at: ")+ze.default.cyan.underline("https://flowdot.ai/subscriptions")+ze.default.yellow(" \u2502")),console.log(ze.default.yellow("\u2502 \u2502")),console.log(ze.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 MC(){(await yv()).canAccess||(vv(),process.exit(1))}var ze,Bn,c8,wv=S(()=>{"use strict";ot();ze=Or(No(),1);G();Bn=null,c8=300*1e3});var BC={};Qp(BC,{clearToken:()=>UC,getApiClient:()=>nt,getToken:()=>Dc,isAuthenticated:()=>_v,saveToken:()=>qC,streamAgentRequest:()=>Ep,streamOllamaChat:()=>Sv});import*as wp from"node:http";import*as xp from"node:https";import{URL as jC}from"node:url";async function bp(){if(!LC){LC=!0;try{xv=(await import("keytar")).default??await import("keytar")}catch{xv=null}}return xv}function l8(){let n=process.env.FLOWDOT_API_TIMEOUT_MS;if(!n)return 6e4;let o=parseInt(n,10);return isNaN(o)?(B("API",`Invalid FLOWDOT_API_TIMEOUT_MS value "${n}", using default 60000ms`),6e4):o<5e3?(B("API",`FLOWDOT_API_TIMEOUT_MS ${o}ms is below minimum 5000ms, using minimum`),5e3):o>3e5?(B("API",`FLOWDOT_API_TIMEOUT_MS ${o}ms exceeds maximum 300000ms, using maximum`),3e5):o}function bv(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();u8.some(c=>i.includes(c.toLowerCase()))?r[o]="[REDACTED]":typeof s=="object"&&s!==null?r[o]=bv(s,t-1):typeof s=="string"&&s.length>100?r[o]=s.substring(0,50)+"...[truncated]":r[o]=s}return r}async function nt(){let e=vp.get("apiUrl"),t=await bp(),r=t?await t.getPassword(_p,Sp):null;C("API","getApiClient called",{apiUrl:e,hasToken:!!r,keytarAvailable:!!t});let n=gt.create({baseURL:e,timeout:l8(),headers:{"Content-Type":"application/json",Accept:"application/json"}});return r?n.defaults.headers.common.Authorization=`Bearer ${r}`:B("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-","");C("API","OAuth request detected",{providerId:s,model:o.data.model});try{let i=await mv(s,o.data.model,o.data.conversationHistory||[]);C("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){B("API","OAuth call failed, falling back to FlowDot tier",{providerId:s,error:i instanceof Error?i.message:String(i)});try{let a=vp.get("model")||"capable",c=await jr(a);if(!c)throw new Error(`Failed to resolve model tier "${a}"`);C("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 me("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)me("API","401 Unauthorized - token may be invalid or expired",{url:s?.url,hasAuthHeader:!!s?.headers?.Authorization});else if(o.response?.status===400){me("API","400 Bad Request",{url:s?.url,responseData:bv(o.response?.data)});let i=o.response?.data?.message||o.response?.data?.error||"Bad Request";console.error(FC.default.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(()=>(wv(),DC));c(),a(),process.exit(1)}me("API","403 Forbidden",{url:s?.url,responseCode:i?.code})}else if(o.response?.status>=500||p8(o)){s.__retryCount=s.__retryCount||0;let i=3,a=1e3;if(s.__retryCount<i)return s.__retryCount++,C("API",`Transient error (attempt ${s.__retryCount}/${i}), retrying...`,{url:s?.url,status:o.response?.status,error:o.message}),await new Promise(u=>setTimeout(u,a*s.__retryCount)),n.request(s);me("API",`Server error after ${i} retries`,{url:s?.url,status:o.response?.status,responseData:bv(o.response?.data)});let c=o.response?.data?.message||o.response?.data?.error||"";o.message=d8(o.response?.status,c,s?.url)}return Promise.reject(o)}),n}function p8(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 d8(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 qC(e){let t=await bp();if(!t)throw new Error("keytar is not available \u2014 cannot save auth token");await t.setPassword(_p,Sp,e)}async function Dc(){let e=await bp();return e?await e.getPassword(_p,Sp):null}async function UC(){let e=await bp();if(!e)throw new Error("keytar is not available \u2014 cannot clear auth token");await e.deletePassword(_p,Sp)}async function _v(){return!!await Dc()}function f8(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:{},u={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 l of u)if(a[l]===void 0||a[l]===null||a[l]==="")return{displayMessage:o,deferredAction:null};return{displayMessage:o,deferredAction:{type:s,payload:a}}}async function Sv(e){let t=vp.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 jC("/api/chat",t)}catch(l){o(new Error(`Invalid Ollama URL '${t}': ${l?.message||l}`));return}let i=s.protocol==="https:",a=i?xp:wp,c=JSON.stringify({model:e.model,messages:r,stream:!0}),u=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)}},l=>{if(l.statusCode!==200){let w="";l.on("data",v=>{w+=v.toString()}),l.on("end",()=>{o(new Error(`Local Ollama at ${t} returned ${l.statusCode}: ${w}`))});return}l.setEncoding("utf8");let p="",f="",m=0,h=!1,g=w=>{let v=w.trim();if(v)try{let R=JSON.parse(v)?.message?.content;if(typeof R=="string"&&R.length>0){p+=R;let P=Math.ceil(R.length/4);m+=P,e.onToken&&e.onToken(P)}}catch{}};l.on("data",w=>{f+=w;let v=f.split(`
37
- `);f=v.pop()||"";for(let T of v)g(T)}),l.on("end",()=>{h||(h=!0,f.length>0&&g(f),n({response:p,tokenCount:m}))}),l.on("error",w=>{h||(h=!0,o(new Error(`Local Ollama stream error at ${t}: ${w.message}`)))})});u.on("error",l=>{o(new Error(`Local Ollama at ${t} unreachable: ${l.message}`))}),u.write(c),u.end()})}async function m8(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 Sv({systemPrompt:e.systemPrompt,messages:t,model:e.model,onToken:e.onToken}),{displayMessage:n,deferredAction:o}=f8(r);return{success:!0,data:{response:n,...o?{deferredAction:o}:{}}}}catch(r){return{success:!1,error:r?.message||String(r)}}}async function Ep(e){let t=vp.get("apiUrl")||"http://localhost:8000",r=await Dc();return new Promise((n,o)=>{let s=new jC(`${t}/api/node-core-api/agent/conversation/stream`),i=s.protocol==="https:",a=i?xp:wp,c=i?new xp.Agent({keepAlive:!1}):new wp.Agent({keepAlive:!1}),u=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 l=JSON.parse(u);C("STREAM_REQUEST","Request body structure",{postDataKeys:Object.keys(l),conversationHistoryType:typeof l.conversationHistory,conversationHistoryIsArray:Array.isArray(l.conversationHistory),conversationHistoryFromPostData:l.conversationHistory?.map(P=>({role:P.role,contentLength:P.content?.length||0}))||"NONE",postDataLength:u.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(u),"X-FlowDot-Source":e.flowdotSource||process.env.FLOWDOT_CLIENT_SOURCE||"cli",...e.flowdotMode?{"x-flowdot-mode":e.flowdotMode}:{}}},f="",m=null,h=[],g=Date.now(),w=3e5,v=!1,T=a.request(p,P=>{if(P.statusCode!==200){let F="";P.on("data",ie=>{F+=ie.toString()}),P.on("end",()=>{v||(v=!0,n({success:!1,error:`Request failed with status ${P.statusCode}: ${F}`}))});return}P.setEncoding("utf8");let I="",j="";P.on("data",F=>{if(g=Date.now(),I+=F,F.trim().startsWith("{")&&!F.includes("data: "))try{let de=JSON.parse(F.trim());if(de.error||de.message){v||(v=!0,n({success:!1,error:de.error||de.message}));return}}catch{}j+=F;let ie=j.split(`
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(`
38
27
 
39
- `);j=ie.pop()||"";for(let de of ie){let te=de.split(`
40
- `);for(let $e of te)if($e.startsWith("data: ")){let oe=$e.slice(6).trim();if(oe==="[DONE]")continue;try{let Y=JSON.parse(oe);if(Y.type==="requires_local_handling"){if(v)return;v=!0,T.destroy();let re=typeof Y.systemPrompt=="string"?Y.systemPrompt:"";m8({systemPrompt:re,conversationHistory:e.conversationHistory,userMessage:e.message,model:e.model,onToken:e.onToken}).then(n).catch(Rt=>{n({success:!1,error:Rt?.message||String(Rt)})});return}else if(Y.type==="token"&&Y.content){f+=Y.content;let re=Math.ceil(Y.content.length/4);e.onToken&&e.onToken(re)}else if(Y.type==="complete")Y.data?.response&&(f=Y.data.response),Y.data?.deferredAction&&(m=Y.data.deferredAction,C("STREAM_REQUEST","Received deferredAction from server",{type:m?.type,hasPayload:!!m?.payload})),Y.data?.remainingActions&&(h=Y.data.remainingActions);else if(Y.type==="memory_action")e.onMemoryAction&&Y.action&&Y.memory&&(C("STREAM_REQUEST","Received memory_action event",{action:Y.action,memoryId:Y.memory?.id,hasUndoData:!!Y.undoData}),e.onMemoryAction({action:Y.action,memory:Y.memory,undoData:Y.undoData}));else if(Y.type==="error"){v||(v=!0,n({success:!1,error:Y.error||Y.data?.message||"Stream error"}));return}}catch{}}}}),P.on("end",()=>{if(!v){if(C("STREAM_REQUEST","Stream ended",{rawDataLength:I.length,fullResponseLength:f.length}),f.length===0&&I.trim().startsWith("{"))try{let F=JSON.parse(I.trim());if(F.error||F.message){v=!0,n({success:!1,error:F.error||F.message});return}}catch{}v=!0,n({success:!0,data:{response:f,deferredAction:m,remainingActions:h}})}}),P.on("error",F=>{v||(v=!0,n({success:!1,error:F.message}))})});T.on("error",P=>{v||(v=!0,n({success:!1,error:P.message}))});let R=setInterval(()=>{if(Date.now()-g>w){if(clearInterval(R),T.destroy(),v)return;v=!0,n({success:!1,error:`Stream timed out after ${w/1e3}s of inactivity`})}},1e4);T.on("close",()=>{clearInterval(R)}),T.write(u),T.end()})}var FC,vp,xv,LC,u8,_p,Sp,ot=S(()=>{"use strict";In();gr();FC=Or(No(),1);G();Mc();Cr();vp=new yt,xv=null,LC=!1;u8=["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"];_p="flowdot-cli",Sp="default"});import*as on from"node:fs";import*as kp from"node:path";import*as Gn from"node:os";import*as xs from"node:crypto";function v8(){let e=[Gn.hostname(),Gn.platform(),Gn.arch(),Gn.cpus()[0]?.model||"unknown-cpu",Gn.homedir(),"flowdot-permission-integrity-v1"],t=xs.createHash("sha256");return t.update(e.join("|")),t.digest()}function zC(e){let t=v8(),r=JSON.stringify(e),n=xs.createHmac("sha256",t);return n.update(r),n.digest("base64")}function w8(e,t){let r=zC(e);try{let n=Buffer.from(t,"base64"),o=Buffer.from(r,"base64");return n.length!==o.length?!1:xs.timingSafeEqual(n,o)}catch{return!1}}function Ev(){return kp.join(x8,".flowdot")}function HC(){return kp.join(Ev(),"permissions.json")}function b8(){return kp.join(Ev(),"session.json")}function _8(){let e=Ev();on.existsSync(e)||on.mkdirSync(e,{recursive:!0})}function S8(){let e=HC();if(!on.existsSync(e))return Tp();try{let t=on.readFileSync(e,"utf-8"),r=JSON.parse(t);if(E8(r)){if(!w8(r.data,r.signature)){B("PERMISSIONS","Permission file integrity check failed! File may have been tampered with."),B("PERMISSIONS","Resetting permissions to empty state for security.");let o=Tp();return GC(o),o}return r.data}let n=r;return T8(n)?(B("PERMISSIONS","Migrating unsigned permissions file to signed format."),GC(n),n):Tp()}catch{return Tp()}}function E8(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 T8(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 GC(e){_8(),e.updated=new Date().toISOString();let t={version:1,data:e,signature:zC(e),signedAt:new Date().toISOString()};on.writeFileSync(HC(),JSON.stringify(t,null,2),{mode:y8})}function k8(){let e=b8();if(!on.existsSync(e))return null;try{let t=on.readFileSync(e,"utf-8");return JSON.parse(t)}catch{return null}}function Tp(){let e=new Date().toISOString();return{version:1,created:e,updated:e,permissions:{}}}function bs(e,t){let r=S8(),n=k8(),o=R8(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 R8(e){return e.trim().replace(/\\/g,"/")}var y8,x8,Mo=S(()=>{"use strict";G();G();y8=384;x8=process.cwd()});var Lc=S(()=>{"use strict";});var kt,gpe,ype,no=S(()=>{"use strict";kt=Or(No(),1);Mo();G();Lc();Mo();gpe=`
41
- ${kt.default.yellow.bold("\u26A0\uFE0F WILDCARD PERMISSION WARNING")}
42
- ${kt.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")}
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)+`
43
41
 
44
- ${kt.default.yellow("You are granting access to a WILDCARD pattern.")}
45
- ${kt.default.yellow("This includes ALL tools/files matching this pattern, including")}
46
- ${kt.default.yellow("any that may be added in the future.")}
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=`
47
67
 
48
- ${kt.default.dim("For better security, consider granting permissions to specific items:")}
49
- ${kt.default.dim(" \u2022 mcp__server__specific-tool instead of mcp__server__*")}
50
- ${kt.default.dim(" \u2022 /specific/path/file.txt instead of /path/*")}
51
- ${kt.default.dim(" \u2022 specific-command instead of *")}
52
- `,ype={danger:`
53
- ${kt.default.red.bold("\u26A0\uFE0F EXECUTABLE FILE WARNING")}
54
- ${kt.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")}
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+=`:
55
87
 
56
- ${kt.default.red("The agent is creating an EXECUTABLE file.")}
57
- ${kt.default.red("This file type can be executed and may run arbitrary code.")}
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=`
58
103
 
59
- ${kt.default.dim("Security considerations:")}
60
- ${kt.default.dim(" \u2022 Review the file contents carefully before executing")}
61
- ${kt.default.dim(" \u2022 Ensure the file source is trusted")}
62
- ${kt.default.dim(" \u2022 Consider if this file type is necessary for the task")}
63
- `,warning:`
64
- ${kt.default.yellow.bold("\u26A0\uFE0F POTENTIALLY DANGEROUS FILE")}
65
- ${kt.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")}
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?`
66
128
 
67
- ${kt.default.yellow("The agent is creating a file type that could pose security risks.")}
68
- ${kt.default.yellow("Please review the contents carefully before opening or executing.")}
69
- `}});var Tv=S(()=>{"use strict";});var VC=S(()=>{"use strict";Tv();});import{exec as G8,spawn as Ape}from"node:child_process";import{promisify as z8}from"node:util";var H8,Dpe,Gpe,Pp=S(()=>{"use strict";H8=Or(No(),1);no();ot();gr();Cr();Tv();VC();Dpe=new yt,Gpe=z8(G8)});var jc=S(()=>{"use strict";});var KC=S(()=>{"use strict";jc();G();});import{exec as W8}from"node:child_process";import{promisify as V8}from"node:util";var Zpe,XC=S(()=>{"use strict";jc();G();Zpe=V8(W8)});var Fc=S(()=>{"use strict";jc();KC();XC();});var mJ,ude,Rv=S(()=>{"use strict";mJ=Or(No(),1);no();ot();gr();Cr();Fc();_s();ude=new yt});var QC=S(()=>{"use strict";});var Qt,oo=S(()=>{"use strict";Qt=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 Pv,ZC,zn,Iv=S(()=>{"use strict";G();Pv=class{providers=new Map;register(t){this.providers.has(t.id)&&B("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()}},ZC=new Pv,zn=ZC});var Ci,e$=S(()=>{"use strict";In();oo();G();Ci=class extends Qt{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){B("SEARCH",`DuckDuckGo search failed: ${i.message}`);try{return await this.performApiSearch(t,o,s)}catch(a){throw B("SEARCH",`DuckDuckGo fallback also failed: ${a.message}`),new Error(`DuckDuckGo search failed: ${i.message}`)}}}async performHtmlSearch(t,r,n){let o=await gt.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=[],u;for(;(u=o.exec(t))!==null;)i.push(u[1]),a.push(u[2]);for(;(u=s.exec(t))!==null;)c.push(u[1]);let l=Math.min(i.length,r);for(let p=0;p<l;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 gt.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 $i,t$=S(()=>{"use strict";In();oo();G();$i=class extends Qt{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 gt.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"):(B("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 Oi,r$=S(()=>{"use strict";In();oo();G();Oi=class extends Qt{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 gt.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"):(B("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 Ni,n$=S(()=>{"use strict";In();oo();G();Ni=class extends Qt{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 gt.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"):(B("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 Mi,o$=S(()=>{"use strict";In();oo();G();Mi=class extends Qt{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 gt.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"):(B("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 Di,s$=S(()=>{"use strict";In();oo();G();Di=class extends Qt{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 gt.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"):(B("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 Li,i$=S(()=>{"use strict";In();oo();G();Li=class extends Qt{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 gt.get(this.searchUrl,{params:{q:t,limit:s,sort:"relevance",type:"link"},headers:{Authorization:`Bearer ${a}`,"User-Agent":"FlowDot-CLI/1.0"},timeout:i}),u=this.parseResults(c.data);return C("SEARCH",`Reddit found ${u.length} results`),u}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"):(B("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 gt.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 Av=S(()=>{"use strict";e$();t$();r$();n$();o$();s$();i$();});function gJ(){zn.register(new Ci),zn.register(new $i),zn.register(new Oi),zn.register(new Ni),zn.register(new Mi),zn.register(new Di),zn.register(new Li),C("SEARCH",`Initialized ${zn.getRegisteredIds().length} search providers`)}var a$=S(()=>{"use strict";oo();Iv();Av();Iv();Av();G();gJ()});var cfe,Cv=S(()=>{"use strict";ot();G();cfe=300*1e3});var qc=S(()=>{"use strict";});var Sfe,Ss=S(()=>{"use strict";ot();gr();QC();a$();Cv();G();Cr();qc();Sfe=new yt});var $p=S(()=>{"use strict";});import{exec as bJ}from"node:child_process";import{promisify as _J}from"node:util";var SJ,Dfe,_s=S(()=>{"use strict";SJ=Or(No(),1);Pp();Rv();Ss();no();$p();Lc();Dfe=_J(bJ)});var Es=S(()=>{"use strict";G();qc();});var Ts=S(()=>{"use strict";G();qc();});var Kfe,g$=S(()=>{"use strict";gr();G();Es();Ts();Kfe=new yt});var Op=S(()=>{"use strict";_s();Es();Ts();g$();G();qc();});var v$=x((Np,y$)=>{(function(e,t){typeof Np=="object"&&typeof y$<"u"?t(Np):typeof define=="function"&&define.amd?define(["exports"],t):(e=e||self,t(e.exprEval={}))})(Np,function(e){"use strict";var t="INUMBER",r="IOP1",n="IOP2",o="IOP3",s="IVAR",i="IVARNAME",a="IFUNCALL",c="IFUNDEF",u="IEXPR",l="IEXPREVAL",p="IMEMBER",f="IENDSTATEMENT",m="IARRAY";function h(d,y){this.type=d,this.value=y??0}h.prototype.toString=function(){switch(this.type){case t:case r:case n:case o:case s:case i:case f:return this.value;case a:return"CALL "+this.value;case c:return"DEF "+this.value;case m:return"ARRAY "+this.value;case p:return"."+this.value;default:return"Invalid Instruction"}};function g(d){return new h(r,d)}function w(d){return new h(n,d)}function v(d){return new h(o,d)}function T(d,y,_,k,M){for(var K=[],z=[],pe,Ne,wt,it,At=0;At<d.length;At++){var ce=d[At],St=ce.type;if(St===t||St===i)Array.isArray(ce.value)?K.push.apply(K,T(ce.value.map(function(Kc){return new h(t,Kc)}).concat(new h(m,ce.value.length)),y,_,k,M)):K.push(ce);else if(St===s&&M.hasOwnProperty(ce.value))ce=new h(t,M[ce.value]),K.push(ce);else if(St===n&&K.length>1)Ne=K.pop(),pe=K.pop(),it=_[ce.value],ce=new h(t,it(pe.value,Ne.value)),K.push(ce);else if(St===o&&K.length>2)wt=K.pop(),Ne=K.pop(),pe=K.pop(),ce.value==="?"?K.push(pe.value?Ne.value:wt.value):(it=k[ce.value],ce=new h(t,it(pe.value,Ne.value,wt.value)),K.push(ce));else if(St===r&&K.length>0)pe=K.pop(),it=y[ce.value],ce=new h(t,it(pe.value)),K.push(ce);else if(St===u){for(;K.length>0;)z.push(K.shift());z.push(new h(u,T(ce.value,y,_,k,M)))}else if(St===p&&K.length>0)pe=K.pop(),K.push(new h(t,pe.value[ce.value]));else{for(;K.length>0;)z.push(K.shift());z.push(ce)}}for(;K.length>0;)z.push(K.shift());return z}function R(d,y,_){for(var k=[],M=0;M<d.length;M++){var K=d[M],z=K.type;if(z===s&&K.value===y)for(var pe=0;pe<_.tokens.length;pe++){var Ne=_.tokens[pe],wt;Ne.type===r?wt=g(Ne.value):Ne.type===n?wt=w(Ne.value):Ne.type===o?wt=v(Ne.value):wt=new h(Ne.type,Ne.value),k.push(wt)}else z===u?k.push(new h(u,R(K.value,y,_))):k.push(K)}return k}function P(d,y,_){var k=[],M,K,z,pe,Ne,wt;if(j(d))return F(d,_);for(var it=d.length,At=0;At<it;At++){var ce=d[At],St=ce.type;if(St===t||St===i)k.push(ce.value);else if(St===n)K=k.pop(),M=k.pop(),ce.value==="and"?k.push(M?!!P(K,y,_):!1):ce.value==="or"?k.push(M?!0:!!P(K,y,_)):ce.value==="="?(pe=y.binaryOps[ce.value],k.push(pe(M,P(K,y,_),_))):(pe=y.binaryOps[ce.value],k.push(pe(F(M,_),F(K,_))));else if(St===o)z=k.pop(),K=k.pop(),M=k.pop(),ce.value==="?"?k.push(P(M?K:z,y,_)):(pe=y.ternaryOps[ce.value],k.push(pe(F(M,_),F(K,_),F(z,_))));else if(St===s)if(ce.value in y.functions)k.push(y.functions[ce.value]);else if(ce.value in y.unaryOps&&y.parser.isOperatorEnabled(ce.value))k.push(y.unaryOps[ce.value]);else{var Kc=_[ce.value];if(Kc!==void 0)k.push(Kc);else throw new Error("undefined variable: "+ce.value)}else if(St===r)M=k.pop(),pe=y.unaryOps[ce.value],k.push(pe(F(M,_)));else if(St===a){for(wt=ce.value,Ne=[];wt-- >0;)Ne.unshift(F(k.pop(),_));if(pe=k.pop(),pe.apply&&pe.call)k.push(pe.apply(void 0,Ne));else throw new Error(pe+" is not a function")}else if(St===c)k.push((function(){for(var RN=k.pop(),Jp=[],PN=ce.value;PN-- >0;)Jp.unshift(k.pop());var vw=k.pop(),Yp=function(){for(var ww=Object.assign({},_),Jc=0,IN=Jp.length;Jc<IN;Jc++)ww[Jp[Jc]]=arguments[Jc];return P(RN,y,ww)};return Object.defineProperty(Yp,"name",{value:vw,writable:!1}),_[vw]=Yp,Yp})());else if(St===u)k.push(I(ce,y));else if(St===l)k.push(ce);else if(St===p)M=k.pop(),k.push(M[ce.value]);else if(St===f)k.pop();else if(St===m){for(wt=ce.value,Ne=[];wt-- >0;)Ne.unshift(k.pop());k.push(Ne)}else throw new Error("invalid Expression")}if(k.length>1)throw new Error("invalid Expression (parity)");return k[0]===0?0:F(k[0],_)}function I(d,y,_){return j(d)?d:{type:l,value:function(k){return P(d.value,y,k)}}}function j(d){return d&&d.type===l}function F(d,y){return j(d)?d.value(y):d}function ie(d,y){for(var _=[],k,M,K,z,pe,Ne,wt=0;wt<d.length;wt++){var it=d[wt],At=it.type;if(At===t)typeof it.value=="number"&&it.value<0?_.push("("+it.value+")"):Array.isArray(it.value)?_.push("["+it.value.map(de).join(", ")+"]"):_.push(de(it.value));else if(At===n)M=_.pop(),k=_.pop(),z=it.value,y?z==="^"?_.push("Math.pow("+k+", "+M+")"):z==="and"?_.push("(!!"+k+" && !!"+M+")"):z==="or"?_.push("(!!"+k+" || !!"+M+")"):z==="||"?_.push("(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }(("+k+"),("+M+")))"):z==="=="?_.push("("+k+" === "+M+")"):z==="!="?_.push("("+k+" !== "+M+")"):z==="["?_.push(k+"[("+M+") | 0]"):_.push("("+k+" "+z+" "+M+")"):z==="["?_.push(k+"["+M+"]"):_.push("("+k+" "+z+" "+M+")");else if(At===o)if(K=_.pop(),M=_.pop(),k=_.pop(),z=it.value,z==="?")_.push("("+k+" ? "+M+" : "+K+")");else throw new Error("invalid Expression");else if(At===s||At===i)_.push(it.value);else if(At===r)k=_.pop(),z=it.value,z==="-"||z==="+"?_.push("("+z+k+")"):y?z==="not"?_.push("(!"+k+")"):z==="!"?_.push("fac("+k+")"):_.push(z+"("+k+")"):z==="!"?_.push("("+k+"!)"):_.push("("+z+" "+k+")");else if(At===a){for(Ne=it.value,pe=[];Ne-- >0;)pe.unshift(_.pop());z=_.pop(),_.push(z+"("+pe.join(", ")+")")}else if(At===c){for(M=_.pop(),Ne=it.value,pe=[];Ne-- >0;)pe.unshift(_.pop());k=_.pop(),y?_.push("("+k+" = function("+pe.join(", ")+") { return "+M+" })"):_.push("("+k+"("+pe.join(", ")+") = "+M+")")}else if(At===p)k=_.pop(),_.push(k+"."+it.value);else if(At===m){for(Ne=it.value,pe=[];Ne-- >0;)pe.unshift(_.pop());_.push("["+pe.join(", ")+"]")}else if(At===u)_.push("("+ie(it.value,y)+")");else if(At!==f)throw new Error("invalid Expression")}return _.length>1&&(y?_=[_.join(",")]:_=[_.join(";")]),String(_[0])}function de(d){return typeof d=="string"?JSON.stringify(d).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"):d}function te(d,y){for(var _=0;_<d.length;_++)if(d[_]===y)return!0;return!1}function $e(d,y,_){_=_||{};for(var k=!!_.withMembers,M=null,K=0;K<d.length;K++){var z=d[K];z.type===s||z.type===i?!k&&!te(y,z.value)?y.push(z.value):(M!==null&&(te(y,M)||y.push(M)),M=z.value):z.type===p&&k&&M!==null?M+="."+z.value:z.type===u?$e(z.value,y,_):M!==null&&(te(y,M)||y.push(M),M=null)}M!==null&&!te(y,M)&&y.push(M)}function oe(d,y){this.tokens=d,this.parser=y,this.unaryOps=y.unaryOps,this.binaryOps=y.binaryOps,this.ternaryOps=y.ternaryOps,this.functions=y.functions}oe.prototype.simplify=function(d){return d=d||{},new oe(T(this.tokens,this.unaryOps,this.binaryOps,this.ternaryOps,d),this.parser)},oe.prototype.substitute=function(d,y){return y instanceof oe||(y=this.parser.parse(String(y))),new oe(R(this.tokens,d,y),this.parser)},oe.prototype.evaluate=function(d){return d=d||{},P(this.tokens,this,d)},oe.prototype.toString=function(){return ie(this.tokens,!1)},oe.prototype.symbols=function(d){d=d||{};var y=[];return $e(this.tokens,y,d),y},oe.prototype.variables=function(d){d=d||{};var y=[];$e(this.tokens,y,d);var _=this.functions;return y.filter(function(k){return!(k in _)})},oe.prototype.toJSFunction=function(d,y){var _=this,k=new Function(d,"with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return "+ie(this.simplify(y).tokens,!0)+"; }");return function(){return k.apply(_,arguments)}};var Y="TEOF",re="TOP",Rt="TNUMBER",Gt="TSTRING",Mt="TPAREN",zt="TBRACKET",Ze="TCOMMA",ft="TNAME",Ht="TSEMICOLON";function et(d,y,_){this.type=d,this.value=y,this.index=_}et.prototype.toString=function(){return this.type+": "+this.value};function ae(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}ae.prototype.newToken=function(d,y,_){return new et(d,y,_??this.pos)},ae.prototype.save=function(){this.savedPosition=this.pos,this.savedCurrent=this.current},ae.prototype.restore=function(){this.pos=this.savedPosition,this.current=this.savedCurrent},ae.prototype.next=function(){if(this.pos>=this.expression.length)return this.newToken(Y,"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)+'"')},ae.prototype.isString=function(){var d=!1,y=this.pos,_=this.expression.charAt(y);if(_==="'"||_==='"')for(var k=this.expression.indexOf(_,y+1);k>=0&&this.pos<this.expression.length;){if(this.pos=k+1,this.expression.charAt(k-1)!=="\\"){var M=this.expression.substring(y+1,k);this.current=this.newToken(Gt,this.unescape(M),y),d=!0;break}k=this.expression.indexOf(_,k+1)}return d},ae.prototype.isParen=function(){var d=this.expression.charAt(this.pos);return d==="("||d===")"?(this.current=this.newToken(Mt,d),this.pos++,!0):!1},ae.prototype.isBracket=function(){var d=this.expression.charAt(this.pos);return(d==="["||d==="]")&&this.isOperatorEnabled("[")?(this.current=this.newToken(zt,d),this.pos++,!0):!1},ae.prototype.isComma=function(){var d=this.expression.charAt(this.pos);return d===","?(this.current=this.newToken(Ze,","),this.pos++,!0):!1},ae.prototype.isSemicolon=function(){var d=this.expression.charAt(this.pos);return d===";"?(this.current=this.newToken(Ht,";"),this.pos++,!0):!1},ae.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 k=this.expression.substring(d,y);if(k in this.consts)return this.current=this.newToken(Rt,this.consts[k]),this.pos+=k.length,!0}return!1},ae.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 k=this.expression.substring(d,y);if(this.isOperatorEnabled(k)&&(k in this.binaryOps||k in this.unaryOps||k in this.ternaryOps))return this.current=this.newToken(re,k),this.pos+=k.length,!0}return!1},ae.prototype.isName=function(){for(var d=this.pos,y=d,_=!1;y<this.expression.length;y++){var k=this.expression.charAt(y);if(k.toUpperCase()===k.toLowerCase()){if(y===this.pos&&(k==="$"||k==="_")){k==="_"&&(_=!0);continue}else if(y===this.pos||!_||k!=="_"&&(k<"0"||k>"9"))break}else _=!0}if(_){var M=this.expression.substring(d,y);return this.current=this.newToken(ft,M),this.pos+=M.length,!0}return!1},ae.prototype.isWhitespace=function(){for(var d=!1,y=this.expression.charAt(this.pos);(y===" "||y===" "||y===`
70
- `||y==="\r")&&(d=!0,this.pos++,!(this.pos>=this.expression.length));)y=this.expression.charAt(this.pos);return d};var Zt=/^[0-9a-f]{4}$/i;ae.prototype.unescape=function(d){var y=d.indexOf("\\");if(y<0)return d;for(var _=d.substring(0,y);y>=0;){var k=d.charAt(++y);switch(k){case"'":_+="'";break;case'"':_+='"';break;case"\\":_+="\\";break;case"/":_+="/";break;case"b":_+="\b";break;case"f":_+="\f";break;case"n":_+=`
71
- `;break;case"r":_+="\r";break;case"t":_+=" ";break;case"u":var M=d.substring(y+1,y+5);Zt.test(M)||this.parseError("Illegal escape sequence: \\u"+M),_+=String.fromCharCode(parseInt(M,16)),y+=4;break;default:throw this.parseError('Illegal escape sequence: "\\'+k+'"')}++y;var K=d.indexOf("\\",y);_+=d.substring(y,K<0?d.length:K),y=K}return _},ae.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},ae.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 k=!1,M=d;d<this.expression.length;){var K=this.expression.charAt(d);if(_.test(K))d++,k=!0;else break}return k&&(this.current=this.newToken(Rt,parseInt(this.expression.substring(M,d),y)),this.pos=d),k},ae.prototype.isNumber=function(){for(var d=!1,y=this.pos,_=y,k=y,M=!1,K=!1,z;y<this.expression.length&&(z=this.expression.charAt(y),z>="0"&&z<="9"||!M&&z===".");)z==="."?M=!0:K=!0,y++,d=K;if(d&&(k=y),z==="e"||z==="E"){y++;for(var pe=!0,Ne=!1;y<this.expression.length;){if(z=this.expression.charAt(y),pe&&(z==="+"||z==="-"))pe=!1;else if(z>="0"&&z<="9")Ne=!0,pe=!1;else break;y++}Ne||(y=k)}return d?(this.current=this.newToken(Rt,parseFloat(this.expression.substring(_,y))),this.pos=y):this.pos=k,d},ae.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(re,y);else if(y==="\u2219"||y==="\u2022")this.current=this.newToken(re,"*");else if(y===">")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(re,">="),this.pos++):this.current=this.newToken(re,">");else if(y==="<")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(re,"<="),this.pos++):this.current=this.newToken(re,"<");else if(y==="|")if(this.expression.charAt(this.pos+1)==="|")this.current=this.newToken(re,"||"),this.pos++;else return!1;else if(y==="=")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(re,"=="),this.pos++):this.current=this.newToken(re,y);else if(y==="!")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(re,"!="),this.pos++):this.current=this.newToken(re,y);else return!1;return this.pos++,this.isOperatorEnabled(this.current.value)?!0:(this.pos=d,!1)},ae.prototype.isOperatorEnabled=function(d){return this.parser.isOperatorEnabled(d)},ae.prototype.getCoordinates=function(){var d=0,y,_=-1;do d++,y=this.pos-_,_=this.expression.indexOf(`
72
- `,_+1);while(_>=0&&_<this.pos);return{line:d,column:y}},ae.prototype.parseError=function(d){var y=this.getCoordinates();throw new Error("parse error ["+y.line+":"+y.column+"]: "+d)};function ye(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}ye.prototype.next=function(){return this.current=this.nextToken,this.nextToken=this.tokens.next()},ye.prototype.tokenMatches=function(d,y){return typeof y>"u"?!0:Array.isArray(y)?te(y,d.value):typeof y=="function"?y(d):d.value===y},ye.prototype.save=function(){this.savedCurrent=this.current,this.savedNextToken=this.nextToken,this.tokens.save()},ye.prototype.restore=function(){this.tokens.restore(),this.current=this.savedCurrent,this.nextToken=this.savedNextToken},ye.prototype.accept=function(d,y){return this.nextToken.type===d&&this.tokenMatches(this.nextToken,y)?(this.next(),!0):!1},ye.prototype.expect=function(d,y){if(!this.accept(d,y)){var _=this.tokens.getCoordinates();throw new Error("parse error ["+_.line+":"+_.column+"]: Expected "+(y||d))}},ye.prototype.parseAtom=function(d){var y=this.tokens.unaryOps;function _(M){return M.value in y}if(this.accept(ft)||this.accept(re,_))d.push(new h(s,this.current.value));else if(this.accept(Rt))d.push(new h(t,this.current.value));else if(this.accept(Gt))d.push(new h(t,this.current.value));else if(this.accept(Mt,"("))this.parseExpression(d),this.expect(Mt,")");else if(this.accept(zt,"["))if(this.accept(zt,"]"))d.push(new h(m,0));else{var k=this.parseArrayList(d);d.push(new h(m,k))}else throw new Error("unexpected "+this.nextToken)},ye.prototype.parseExpression=function(d){var y=[];this.parseUntilEndStatement(d,y)||(this.parseVariableAssignmentExpression(y),!this.parseUntilEndStatement(d,y)&&this.pushExpression(d,y))},ye.prototype.pushExpression=function(d,y){for(var _=0,k=y.length;_<k;_++)d.push(y[_])},ye.prototype.parseUntilEndStatement=function(d,y){return this.accept(Ht)?(this.nextToken&&this.nextToken.type!==Y&&!(this.nextToken.type===Mt&&this.nextToken.value===")")&&y.push(new h(f)),this.nextToken.type!==Y&&this.parseExpression(y),d.push(new h(u,y)),!0):!1},ye.prototype.parseArrayList=function(d){for(var y=0;!this.accept(zt,"]");)for(this.parseExpression(d),++y;this.accept(Ze);)this.parseExpression(d),++y;return y},ye.prototype.parseVariableAssignmentExpression=function(d){for(this.parseConditionalExpression(d);this.accept(re,"=");){var y=d.pop(),_=[],k=d.length-1;if(y.type===a){if(!this.tokens.isOperatorEnabled("()="))throw new Error("function definition is not permitted");for(var M=0,K=y.value+1;M<K;M++){var z=k-M;d[z].type===s&&(d[z]=new h(i,d[z].value))}this.parseVariableAssignmentExpression(_),d.push(new h(u,_)),d.push(new h(c,y.value));continue}if(y.type!==s&&y.type!==p)throw new Error("expected variable for assignment");this.parseVariableAssignmentExpression(_),d.push(new h(i,y.value)),d.push(new h(u,_)),d.push(w("="))}},ye.prototype.parseConditionalExpression=function(d){for(this.parseOrExpression(d);this.accept(re,"?");){var y=[],_=[];this.parseConditionalExpression(y),this.expect(re,":"),this.parseConditionalExpression(_),d.push(new h(u,y)),d.push(new h(u,_)),d.push(v("?"))}},ye.prototype.parseOrExpression=function(d){for(this.parseAndExpression(d);this.accept(re,"or");){var y=[];this.parseAndExpression(y),d.push(new h(u,y)),d.push(w("or"))}},ye.prototype.parseAndExpression=function(d){for(this.parseComparison(d);this.accept(re,"and");){var y=[];this.parseComparison(y),d.push(new h(u,y)),d.push(w("and"))}};var Br=["==","!=","<","<=",">=",">","in"];ye.prototype.parseComparison=function(d){for(this.parseAddSub(d);this.accept(re,Br);){var y=this.current;this.parseAddSub(d),d.push(w(y.value))}};var U=["+","-","||"];ye.prototype.parseAddSub=function(d){for(this.parseTerm(d);this.accept(re,U);){var y=this.current;this.parseTerm(d),d.push(w(y.value))}};var O=["*","/","%"];ye.prototype.parseTerm=function(d){for(this.parseFactor(d);this.accept(re,O);){var y=this.current;this.parseFactor(d),d.push(w(y.value))}},ye.prototype.parseFactor=function(d){var y=this.tokens.unaryOps;function _(M){return M.value in y}if(this.save(),this.accept(re,_)){if(this.current.value!=="-"&&this.current.value!=="+"){if(this.nextToken.type===Mt&&this.nextToken.value==="("){this.restore(),this.parseExponential(d);return}else if(this.nextToken.type===Ht||this.nextToken.type===Ze||this.nextToken.type===Y||this.nextToken.type===Mt&&this.nextToken.value===")"){this.restore(),this.parseAtom(d);return}}var k=this.current;this.parseFactor(d),d.push(g(k.value))}else this.parseExponential(d)},ye.prototype.parseExponential=function(d){for(this.parsePostfixExpression(d);this.accept(re,"^");)this.parseFactor(d),d.push(w("^"))},ye.prototype.parsePostfixExpression=function(d){for(this.parseFunctionCall(d);this.accept(re,"!");)d.push(g("!"))},ye.prototype.parseFunctionCall=function(d){var y=this.tokens.unaryOps;function _(K){return K.value in y}if(this.accept(re,_)){var k=this.current;this.parseAtom(d),d.push(g(k.value))}else for(this.parseMemberExpression(d);this.accept(Mt,"(");)if(this.accept(Mt,")"))d.push(new h(a,0));else{var M=this.parseArgumentList(d);d.push(new h(a,M))}},ye.prototype.parseArgumentList=function(d){for(var y=0;!this.accept(Mt,")");)for(this.parseExpression(d),++y;this.accept(Ze);)this.parseExpression(d),++y;return y},ye.prototype.parseMemberExpression=function(d){for(this.parseAtom(d);this.accept(re,".")||this.accept(zt,"[");){var y=this.current;if(y.value==="."){if(!this.allowMemberAccess)throw new Error('unexpected ".", member access is not permitted');this.expect(ft),d.push(new h(p,this.current.value))}else if(y.value==="["){if(!this.tokens.isOperatorEnabled("["))throw new Error('unexpected "[]", arrays are disabled');this.parseExpression(d),this.expect(zt,"]"),d.push(w("["))}else throw new Error("unexpected symbol: "+y.value)}};function Ie(d,y){return Number(d)+Number(y)}function tt(d,y){return d-y}function Oe(d,y){return d*y}function _t(d,y){return d/y}function Dt(d,y){return d%y}function Re(d,y){return Array.isArray(d)&&Array.isArray(y)?d.concat(y):""+d+y}function Rn(d,y){return d===y}function sn(d,y){return d!==y}function A(d,y){return d>y}function H(d,y){return d<y}function q(d,y){return d>=y}function fe(d,y){return d<=y}function Gr(d,y){return!!(d&&y)}function Wp(d,y){return!!(d||y)}function YO(d,y){return te(y,d)}function XO(d){return(Math.exp(d)-Math.exp(-d))/2}function QO(d){return(Math.exp(d)+Math.exp(-d))/2}function ZO(d){return d===1/0?1:d===-1/0?-1:(Math.exp(d)-Math.exp(-d))/(Math.exp(d)+Math.exp(-d))}function eN(d){return d===-1/0?d:Math.log(d+Math.sqrt(d*d+1))}function tN(d){return Math.log(d+Math.sqrt(d*d-1))}function rN(d){return Math.log((1+d)/(1-d))/2}function pw(d){return Math.log(d)*Math.LOG10E}function nN(d){return-d}function oN(d){return!d}function sN(d){return d<0?Math.ceil(d):Math.floor(d)}function iN(d){return Math.random()*(d||1)}function dw(d){return Kp(d+1)}function aN(d){return isFinite(d)&&d===Math.round(d)}var cN=4.7421875,Vp=[.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 Kp(d){var y,_;if(aN(d)){if(d<=0)return isFinite(d)?1/0:NaN;if(d>171)return 1/0;for(var k=d-2,M=d-1;k>1;)M*=k,k--;return M===0&&(M=1),M}if(d<.5)return Math.PI/(Math.sin(Math.PI*d)*Kp(1-d));if(d>=171.35)return 1/0;if(d>85){var K=d*d,z=K*d,pe=z*d,Ne=pe*d;return Math.sqrt(2*Math.PI/d)*Math.pow(d/Math.E,d)*(1+1/(12*d)+1/(288*K)-139/(51840*z)-571/(2488320*pe)+163879/(209018880*Ne)+5246819/(75246796800*Ne*d))}--d,_=Vp[0];for(var wt=1;wt<Vp.length;++wt)_+=Vp[wt]/(d+wt);return y=d+cN+.5,Math.sqrt(2*Math.PI)*Math.pow(y,d+.5)*Math.exp(-y)*_}function lN(d){return Array.isArray(d)?d.length:String(d).length}function fw(){for(var d=0,y=0,_=0;_<arguments.length;_++){var k=Math.abs(arguments[_]),M;y<k?(M=y/k,d=d*M*M+1,y=k):k>0?(M=k/y,d+=M*M):d+=k}return y===1/0?1/0:y*Math.sqrt(d)}function mw(d,y,_){return d?y:_}function uN(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 pN(d,y,_){return _&&(_[d]=y),y}function dN(d,y){return d[y|0]}function fN(d){return arguments.length===1&&Array.isArray(d)?Math.max.apply(Math,d):Math.max.apply(Math,arguments)}function mN(d){return arguments.length===1&&Array.isArray(d)?Math.min.apply(Math,d):Math.min.apply(Math,arguments)}function hN(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(_,k){return d(_,k)})}function gN(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(k,M,K){return d(k,M,K)},y)}function yN(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(_,k){return d(_,k)})}function vN(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 wN(d,y){if(!Array.isArray(y))throw new Error("Second argument to join is not an array");return y.join(d)}function xN(d){return(d>0)-(d<0)||+d}var hw=1/3;function bN(d){return d<0?-Math.pow(-d,hw):Math.pow(d,hw)}function _N(d){return Math.exp(d)-1}function SN(d){return Math.log(1+d)}function EN(d){return Math.log(d)/Math.LN2}function io(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||XO,cosh:Math.cosh||QO,tanh:Math.tanh||ZO,asinh:Math.asinh||eN,acosh:Math.acosh||tN,atanh:Math.atanh||rN,sqrt:Math.sqrt,cbrt:Math.cbrt||bN,log:Math.log,log2:Math.log2||EN,ln:Math.log,lg:Math.log10||pw,log10:Math.log10||pw,expm1:Math.expm1||_N,log1p:Math.log1p||SN,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:Math.trunc||sN,"-":nN,"+":Number,exp:Math.exp,not:oN,length:lN,"!":dw,sign:Math.sign||xN},this.binaryOps={"+":Ie,"-":tt,"*":Oe,"/":_t,"%":Dt,"^":Math.pow,"||":Re,"==":Rn,"!=":sn,">":A,"<":H,">=":q,"<=":fe,and:Gr,or:Wp,in:YO,"=":pN,"[":dN},this.ternaryOps={"?":mw},this.functions={random:iN,fac:dw,min:mN,max:fN,hypot:Math.hypot||fw,pyt:Math.hypot||fw,pow:Math.pow,atan2:Math.atan2,if:mw,gamma:Kp,roundTo:uN,map:hN,fold:gN,filter:yN,indexOf:vN,join:wN},this.consts={E:Math.E,PI:Math.PI,true:!0,false:!1}}io.prototype.parse=function(d){var y=[],_=new ye(this,new ae(this,d),{allowMemberAccess:this.options.allowMemberAccess});return _.parseExpression(y),_.expect(Y,"EOF"),new oe(y,this)},io.prototype.evaluate=function(d,y){return this.parse(d).evaluate(y)};var gw=new io;io.parse=function(d){return gw.parse(d)},io.evaluate=function(d,y){return gw.parse(d).evaluate(y)};var yw={"+":"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 TN(d){return yw.hasOwnProperty(d)?yw[d]:d}io.prototype.isOperatorEnabled=function(d){var y=TN(d),_=this.options.operators||{};return!(y in _)||!!_[y]};var kN={Parser:io,Expression:oe};e.Expression=oe,e.Parser=io,e.default=kN,Object.defineProperty(e,"__esModule",{value:!0})})});var Mp=S(()=>{"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 Uc(e,t){return`\u2191${Ov(e)} \u2193${Ov(t)}`}function Ov(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e)}function Bc(e){return e<.01?`$${e.toFixed(4)}`:`$${e.toFixed(2)}`}function Nv(e){return e.size===0?"":`(${Array.from(e).map(r=>{let n=r.split("/");return n[n.length-1]}).join(", ")})`}function Mv(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 Ut(e,t){return e.length<=t?e:e.substring(0,t-1)+"\u2026"}var Dv=S(()=>{"use strict";});var w$=S(()=>{"use strict";});function x$(e){return new Promise(t=>setTimeout(t,e))}var b$,Ame,_$,S$,DJ,E$,T$,LJ,Dp,Mme,Dme,Lv=S(()=>{"use strict";ot();gr();Mc();Cr();G();Op();b$=Or(v$(),1);Mp();Dv();Mp();w$();Ame=new b$.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}}),_$=30,S$=6e4,DJ=Math.ceil(S$/_$),E$=10,T$=6e4,LJ=Math.ceil(T$/E$);Dp=class{requestTimestamps=[];maxRequests;windowMs;minIntervalMs;queue=Promise.resolve();constructor(t=_$,r=S$,n=DJ){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 x$(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 x$(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}}},Mme=new Dp,Dme=new Dp(E$,T$,LJ)});var Lp=S(()=>{"use strict";Lv();G();});var FJ,jv=S(()=>{"use strict";FJ=Or(No(),1);});var Hme,Fv=S(()=>{"use strict";ot();G();jv();Hme=300*1e3});var k$=S(()=>{"use strict";G();Lp();Fv();});var R$=S(()=>{"use strict";G();ot();});var P$=S(()=>{"use strict";G();Ss();no();});var jp=S(()=>{"use strict";Mo();no();G();});var A$=S(()=>{"use strict";G();Ss();jp();});var C$=S(()=>{"use strict";G();Ss();jp();});var $$=S(()=>{"use strict";G();_s();});var O$=S(()=>{"use strict";G();no();Lc();Fc();});var N$=S(()=>{"use strict";G();Rv();no();Lc();Fc();});var M$=S(()=>{"use strict";G();_s();$p();});var D$=S(()=>{"use strict";G();Pp();});var L$=S(()=>{"use strict";G();});var j$=S(()=>{"use strict";G();});var qv=S(()=>{"use strict";G();});var Fp=S(()=>{"use strict";G();qv();});var ege,tge,rge,Gc=S(()=>{"use strict";G();Fp();Es();ege=1024*1024,tge=100*1024,rge=50*1024});var q$=S(()=>{"use strict";G();Gc();Es();Mo();});var Bv=S(()=>{"use strict";G();Ts();Gc();});var G$=S(()=>{"use strict";G();Bv();Ts();Mo();});import{FlowDotApiClient as KJ}from"@flowdot.ai/api";async function W$(){if(!z$){z$=!0;try{Gv=(await import("keytar")).default??await import("keytar")}catch{Gv=null}}return Gv}async function Hv(){let e=await W$(),t=e?await e.getPassword(V$,K$):null;if(!t)throw new Error("Not authenticated. Please run: flowdot auth login");if(!zv||t!==H$){let r=ov.get("apiUrl");zv=new KJ(r,t),H$=t}return zv}async function Up(){let e=await W$();return!!(e?await e.getPassword(V$,K$):null)}var Gv,z$,V$,K$,zv,H$,Wv=S(()=>{"use strict";gr();Gv=null,z$=!1;V$="flowdot-cli",K$="default",zv=null,H$=null});function Vv(e){if(J$[e])return J$[e];for(let{pattern:t,level:r}of JJ)if(e.includes(t))return r;return"prompt"}var J$,JJ,Kv=S(()=>{"use strict";J$={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"},JJ=[{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 N(e){let{toolName:t,description:r,handler:n,getPermissionDetails:o}=e;return async(s,i)=>{let a=s.payload||{};if(!await Up())return{success:!1,error:"Not authenticated. Please run: flowdot auth login",permissionDenied:!1};let u=Vv(t);if(u!=="none"){let l=bs("flowdot-tool",t);if(l==="deny")return{success:!1,error:`FlowDot tool is banned: ${t}`,permissionDenied:!0};if(l==="prompt"){let p=o?o(a):[];return{success:!1,error:"Permission required",requiresPermission:!0,permissionInfo:{category:"flowdot-tool",identifier:t,title:`FlowDot: ${r}`,description:YJ(u,t),details:p}}}}return Y$(n,a)}}function J(e){return async(t,r)=>{let n=t.payload||{};return await Up()?Y$(e,n):{success:!1,error:"Not authenticated. Please run: flowdot auth login"}}}async function Y$(e,t){try{let r=await Hv(),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 YJ(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 Hn=S(()=>{"use strict";Wv();Kv();Mo();});var XJ,QJ,ZJ,eY,tY,rY,nY,oY,sY,iY,aY,cY,lY,uY,pY,dY,fY,mY,hY,gY,X$,Q$,Z$=S(()=>{"use strict";Hn();XJ=J(E(async(e,t)=>e.listWorkflows(t.filter,t.favoritesOnly))),QJ=J(E(async(e,t)=>e.getWorkflow(t.workflowId))),ZJ=J(E(async(e,t)=>e.searchWorkflows(t.query,t.tags,t.page))),eY=J(E(async(e,t)=>e.getPublicWorkflows(t.page,t.sortBy))),tY=J(E(async(e,t)=>e.getWorkflowDetails(t.workflowId))),rY=J(E(async(e,t)=>e.getWorkflowGraph(t.workflowId))),nY=J(E(async(e,t)=>e.getWorkflowInputsSchema(t.workflowId))),oY=J(E(async(e,t)=>e.validateWorkflow(t.workflowId))),sY=J(E(async(e,t)=>e.getWorkflowTags(t.workflowId))),iY=J(E(async(e,t)=>e.getWorkflowMetrics(t.workflowId,t.period))),aY=J(E(async(e,t)=>e.getWorkflowComments(t.workflowId))),cY=N({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"]}),lY=N({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)}),uY=N({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"]}),pY=N({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!"]}),dY=N({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(", ")}`]}),fY=N({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"}`]}),mY=N({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"}`]}),hY=N({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}`]}),gY=N({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?"...":""}`]}),X$={flowdot_workflows_list:XJ,flowdot_workflows_get:QJ,flowdot_workflows_search:ZJ,flowdot_workflows_get_public:eY,flowdot_workflows_get_details:tY,flowdot_workflows_get_graph:rY,flowdot_workflows_get_inputs_schema:nY,flowdot_workflows_validate:oY,flowdot_workflows_get_tags:sY,flowdot_workflows_get_metrics:iY,flowdot_workflows_get_comments:aY,flowdot_workflows_execute:cY,flowdot_workflows_create:lY,flowdot_workflows_duplicate:uY,flowdot_workflows_set_tags:dY,flowdot_workflows_toggle_public:fY,flowdot_workflows_favorite:mY,flowdot_workflows_vote:hY,flowdot_workflows_add_comment:gY,flowdot_workflows_delete:pY},Q$=[{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 yY,vY,wY,xY,bY,eO,tO,rO=S(()=>{"use strict";Hn();yY=J(E(async(e,t)=>e.getExecution(t.executionId))),vY=J(E(async(e,t)=>e.getExecutionHistory(t.workflowId,t.page,t.limit))),wY=J(E(async(e,t)=>({streamUrl:e.getExecutionStreamUrl(t.executionId),authToken:e.getAuthToken()}))),xY=N({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"]}),bY=N({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"]}),eO={flowdot_executions_get:yY,flowdot_executions_get_history:vY,flowdot_executions_stream:wY,flowdot_executions_cancel:xY,flowdot_executions_retry:bY},tO=[{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 _Y,SY,EY,TY,kY,RY,PY,IY,AY,CY,$Y,OY,NY,MY,DY,LY,jY,FY,qY,UY,BY,GY,zY,HY,WY,VY,KY,nO,oO,sO=S(()=>{"use strict";Hn();_Y=J(E(async(e,t)=>e.listApps(t))),SY=J(E(async(e,t)=>e.searchPublicApps(t))),EY=J(E(async(e,t)=>e.getApp(t.appId))),TY=J(E(async(e,t)=>e.getAppComments(t.appId))),kY=J(E(async(e,t)=>e.getAppWorkflows(t.appId))),RY=J(E(async(e,t)=>e.listAppFiles(t.appId))),PY=J(E(async(e,t)=>e.getAppFile(t.appId,t.filePath))),IY=N({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)}),AY=N({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)}),CY=N({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!"]}),$Y=N({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"]}),OY=N({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"]}),NY=N({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"]}),MY=N({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"}`]}),DY=N({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}`]}),LY=N({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?"...":""}`]}),jY=N({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)}),FY=N({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}`]}),qY=N({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)}...`]}),UY=N({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`]}),BY=N({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`]}),GY=N({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)}...`]}),zY=N({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}`]}),HY=N({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}`]}),WY=N({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}`]}),VY=N({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!"]}),KY=N({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}`]}),nO={flowdot_apps_list:_Y,flowdot_apps_search:SY,flowdot_apps_get:EY,flowdot_apps_get_comments:TY,flowdot_apps_get_workflows:kY,flowdot_apps_list_files:RY,flowdot_apps_get_file:PY,flowdot_apps_create:IY,flowdot_apps_update:AY,flowdot_apps_clone:$Y,flowdot_apps_publish:OY,flowdot_apps_unpublish:NY,flowdot_apps_favorite:MY,flowdot_apps_vote:DY,flowdot_apps_add_comment:LY,flowdot_apps_link_workflow:jY,flowdot_apps_unlink_workflow:FY,flowdot_apps_edit_code:qY,flowdot_apps_append_code:UY,flowdot_apps_prepend_code:BY,flowdot_apps_insert_code:GY,flowdot_apps_create_file:zY,flowdot_apps_update_file:HY,flowdot_apps_rename_file:WY,flowdot_apps_set_entry_file:KY,flowdot_apps_delete:CY,flowdot_apps_delete_file:VY},oO=[{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 JY,YY,XY,QY,ZY,e7,t7,r7,n7,o7,s7,i7,iO,aO,cO=S(()=>{"use strict";Hn();JY=J(E(async(e,t)=>e.listCustomNodes(t))),YY=J(E(async(e,t)=>e.searchPublicCustomNodes(t))),XY=J(E(async(e,t)=>e.getCustomNode(t.nodeId))),QY=J(E(async(e,t)=>e.getCustomNodeComments(t.nodeId))),ZY=N({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)}),e7=N({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)}),t7=N({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!"]}),r7=N({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"]}),n7=N({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}`]}),o7=N({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}`]}),s7=N({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"}`]}),i7=N({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?"...":""}`]}),iO={flowdot_custom_nodes_list:JY,flowdot_custom_nodes_search:YY,flowdot_custom_nodes_get:XY,flowdot_custom_nodes_get_comments:QY,flowdot_custom_nodes_create:ZY,flowdot_custom_nodes_update:e7,flowdot_custom_nodes_copy:r7,flowdot_custom_nodes_toggle_visibility:n7,flowdot_custom_nodes_vote:o7,flowdot_custom_nodes_favorite:s7,flowdot_custom_nodes_add_comment:i7,flowdot_custom_nodes_delete:t7},aO=[{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 a7,c7,l7,u7,p7,d7,f7,m7,h7,g7,y7,v7,w7,x7,b7,lO,uO,pO=S(()=>{"use strict";Hn();a7=J(E(async(e,t)=>e.listKnowledgeCategories(t))),c7=J(E(async(e,t)=>e.getKnowledgeCategory(t.categoryId))),l7=J(E(async(e,t)=>e.listKnowledgeDocuments(t))),u7=J(E(async(e,t)=>e.getKnowledgeDocument(t.documentId))),p7=J(E(async(e,t)=>e.queryKnowledgeBase(t))),d7=J(E(async e=>e.getKnowledgeStorage())),f7=N({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)}),m7=N({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)}),h7=N({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!"]}),g7=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(()=>(ot(),BC)),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}`}}},y7=N({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"]}),v7=N({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"]}),w7=N({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"]}),x7=N({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"]}),b7=N({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!"]}),lO={flowdot_knowledge_list_categories:a7,flowdot_knowledge_get_category:c7,flowdot_knowledge_list_documents:l7,flowdot_knowledge_get_document:u7,flowdot_knowledge_query:p7,flowdot_knowledge_get_storage:d7,flowdot_knowledge_create_category:f7,flowdot_knowledge_update_category:m7,flowdot_knowledge_upload_text:g7,flowdot_knowledge_upload_from_url:y7,flowdot_knowledge_move_document:v7,flowdot_knowledge_transfer_document:w7,flowdot_knowledge_reprocess_document:x7,flowdot_knowledge_delete_category:h7,flowdot_knowledge_delete_document:b7},uO=[{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 _7,S7,E7,T7,k7,R7,P7,I7,A7,C7,$7,O7,N7,M7,D7,L7,j7,F7,q7,U7,B7,G7,z7,H7,W7,dO,fO,mO=S(()=>{"use strict";Hn();_7=J(E(async(e,t)=>e.listAgentToolkits(t))),S7=J(E(async(e,t)=>e.searchPublicAgentToolkits(t))),E7=J(E(async(e,t)=>e.getAgentToolkit(t.toolkitId))),T7=J(E(async e=>e.listInstalledToolkits())),k7=J(E(async(e,t)=>e.listToolkitTools(t.toolkitId))),R7=J(E(async(e,t)=>e.getToolkitTool(t.toolkitId,t.toolId))),P7=J(E(async(e,t)=>e.getToolkitComments(t.toolkitId))),I7=J(E(async(e,t)=>e.getToolkitInstallation(t.installationId))),A7=J(E(async(e,t)=>e.checkToolkitCredentials(t.installationId))),C7=N({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)}),$7=N({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)}),O7=N({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!"]}),N7=N({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"]}),M7=N({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}`]}),D7=N({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"]}),L7=N({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"]}),j7=N({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"]}),F7=N({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"}`]}),q7=N({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"}`]}),U7=N({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}`]}),B7=N({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"}`]}),G7=N({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?"...":""}`]}),z7=N({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}`]}),H7=N({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}`]}),W7=N({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!"]}),dO={flowdot_toolkits_list:_7,flowdot_toolkits_search:S7,flowdot_toolkits_get:E7,flowdot_toolkits_list_installed:T7,flowdot_toolkits_list_tools:k7,flowdot_toolkits_get_tool:R7,flowdot_toolkits_get_comments:P7,flowdot_toolkits_get_installation:I7,flowdot_toolkits_check_credentials:A7,flowdot_toolkits_create:C7,flowdot_toolkits_update:$7,flowdot_toolkits_copy:N7,flowdot_toolkits_toggle_visibility:M7,flowdot_toolkits_install:D7,flowdot_toolkits_update_installation:L7,flowdot_toolkits_toggle_active:F7,flowdot_toolkits_invoke_tool:q7,flowdot_toolkits_vote:U7,flowdot_toolkits_favorite:B7,flowdot_toolkits_add_comment:G7,flowdot_toolkits_create_tool:z7,flowdot_toolkits_update_tool:H7,flowdot_toolkits_delete:O7,flowdot_toolkits_uninstall:j7,flowdot_toolkits_delete_tool:W7},fO=[{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 V7,K7,J7,Y7,X7,Q7,Z7,eX,tX,rX,nX,oX,sX,iX,aX,cX,lX,uX,pX,dX,fX,mX,hX,gX,yX,vX,hO,gO,yO=S(()=>{"use strict";Hn();V7=J(E(async e=>e.listRecipes())),K7=J(E(async(e,t)=>e.getRecipe(t.hash))),J7=J(E(async(e,t)=>e.getRecipeDefinition(t.hash))),Y7=J(E(async(e,t)=>e.listPublicRecipes(t))),X7=J(E(async(e,t)=>e.listRecipeSteps(t.hash))),Q7=J(E(async(e,t)=>e.getRecipeStep(t.hash,t.stepId))),Z7=J(E(async(e,t)=>e.listRecipeStores(t.hash))),eX=J(E(async e=>e.listRecipeLinks())),tX=J(E(async(e,t)=>e.getRecipeComments(t.hash))),rX=N({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)}),nX=N({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)}),oX=N({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!"]}),sX=N({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"]}),iX=N({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}`]}),aX=N({toolName:"flowdot_recipes_unlink",description:"Unlink recipe",handler:E(async(e,t)=>e.unlinkRecipe(t.alias)),getPermissionDetails:e=>[`Alias: ${e.alias}`]}),cX=N({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}`]}),lX=N({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"}`]}),uX=N({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?"...":""}`]}),pX=N({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}`]}),dX=N({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}`]}),fX=N({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!"]}),mX=N({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(", ")}`]}),hX=N({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}`]}),gX=N({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}`]}),yX=N({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}`]}),vX=N({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!"]}),hO={flowdot_recipes_list:V7,flowdot_recipes_get:K7,flowdot_recipes_get_definition:J7,flowdot_recipes_browse:Y7,flowdot_recipes_list_steps:X7,flowdot_recipes_get_step:Q7,flowdot_recipes_list_stores:Z7,flowdot_recipes_list_links:eX,flowdot_recipes_get_comments:tX,flowdot_recipes_create:rX,flowdot_recipes_update:nX,flowdot_recipes_fork:sX,flowdot_recipes_link:iX,flowdot_recipes_unlink:aX,flowdot_recipes_vote:cX,flowdot_recipes_favorite:lX,flowdot_recipes_add_comment:uX,flowdot_recipes_add_step:pX,flowdot_recipes_update_step:dX,flowdot_recipes_reorder_steps:mX,flowdot_recipes_duplicate_step:hX,flowdot_recipes_add_store:gX,flowdot_recipes_update_store:yX,flowdot_recipes_delete:oX,flowdot_recipes_delete_step:fX,flowdot_recipes_delete_store:vX},gO=[{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 wX,xX,bX,_X,SX,EX,TX,kX,RX,PX,IX,AX,CX,$X,vO,wO,xO=S(()=>{"use strict";Hn();wX=J(E(async(e,t)=>e.getWorkflowPublicUrl(t.workflowId))),xX=J(E(async(e,t)=>{let{workflowId:r,...n}=t;return e.listSharedResults(r,n)})),bX=J(E(async(e,t)=>e.getSharedResult(t.workflowId,t.resultHash))),_X=J(E(async(e,t)=>e.getSharedResultComments(t.workflowId,t.resultHash))),SX=J(E(async(e,t)=>{let{workflowId:r,...n}=t;return e.listInputPresets(r,n)})),EX=J(E(async(e,t)=>e.getInputPreset(t.workflowId,t.presetHash))),TX=N({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)}),kX=N({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?"...":""}`]}),RX=N({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}`]}),PX=N({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)}),IX=N({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}`]}),AX=N({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!"]}),CX=N({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}`]}),$X=N({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"}`]}),vO={flowdot_sharing_get_public_url:wX,flowdot_sharing_list_shared_results:xX,flowdot_sharing_get_shared_result:bX,flowdot_sharing_get_shared_result_comments:_X,flowdot_sharing_list_input_presets:SX,flowdot_sharing_get_input_preset:EX,flowdot_sharing_create_shared_result:TX,flowdot_sharing_add_shared_result_comment:kX,flowdot_sharing_vote_shared_result:RX,flowdot_sharing_create_input_preset:PX,flowdot_sharing_update_input_preset:IX,flowdot_sharing_vote_input_preset:CX,flowdot_sharing_toggle_community_inputs:$X,flowdot_sharing_delete_input_preset:AX},wO=[{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 Jv(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 nt()).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,u=a.filter(p=>!p.success).length,l={success_count:i.data.success_count??c,failed_count:i.data.failed_count??u,results:a};return C("GOAL_SERVICES","Notification sent",{successCount:l.success_count,failedCount:l.failed_count}),l}catch(s){throw me("GOAL_SERVICES","Failed to send notification",{error:s.message}),s}}var Yv=S(()=>{"use strict";ot();G();Ss();});var OX,bO,_O,SO=S(()=>{"use strict";Yv();G();OX=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 Jv({message:r.message,title:r.title,channelTypes:r.channel_types})}}catch(n){return{success:!1,error:`Notification failed: ${n.message}`}}},bO={flowdot_comms_send_notification:OX},_O=[{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 uye,NX,Xv=S(()=>{"use strict";Z$();rO();sO();cO();pO();mO();yO();xO();SO();Wv();Kv();Hn();uye={...X$,...eO,...nO,...iO,...lO,...dO,...hO,...vO,...bO},NX=[...Q$,...tO,...oO,...aO,...uO,...fO,...gO,...wO,..._O]});var EO=S(()=>{"use strict";});var Qv=S(()=>{"use strict";G();Op();k$();R$();P$();A$();C$();$$();O$();N$();M$();D$();L$();j$();q$();G$();Xv();EO();Xv();});var Zv=S(()=>{"use strict";G();});var IO=S(()=>{"use strict";});var CO=S(()=>{"use strict";G();Gc();Ts();IO();Ts();Bv();});import{useState as Bt,useEffect as Hp,useRef as Hc,useCallback as lw,useImperativeHandle as HQ,forwardRef as WQ}from"react";import{Box as $r,Text as ne,useInput as VQ,useApp as KQ,useStdout as JQ,Static as YQ}from"ink";import XN,{useState as QN,useEffect as ZN}from"react";import{Text as eM,useInput as tM}from"ink";var xw=(e=0)=>t=>`\x1B[${t+e}m`,bw=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,_w=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,mt={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]}},wZ=Object.keys(mt.modifier),DN=Object.keys(mt.color),LN=Object.keys(mt.bgColor),xZ=[...DN,...LN];function jN(){let e=new Map;for(let[t,r]of Object.entries(mt)){for(let[n,o]of Object.entries(r))mt[n]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},r[n]=mt[n],e.set(o[0],o[1]);Object.defineProperty(mt,t,{value:r,enumerable:!1})}return Object.defineProperty(mt,"codes",{value:e,enumerable:!1}),mt.color.close="\x1B[39m",mt.bgColor.close="\x1B[49m",mt.color.ansi=xw(),mt.color.ansi256=bw(),mt.color.ansi16m=_w(),mt.bgColor.ansi=xw(10),mt.bgColor.ansi256=bw(10),mt.bgColor.ansi16m=_w(10),Object.defineProperties(mt,{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=>mt.rgbToAnsi256(...mt.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)=>mt.ansi256ToAnsi(mt.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>mt.ansi256ToAnsi(mt.hexToAnsi256(t)),enumerable:!1}}),mt}var FN=jN(),an=FN;import Zp from"node:process";import qN from"node:os";import Sw from"node:tty";function zr(e,t=globalThis.Deno?globalThis.Deno.args:Zp.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}var{env:ht}=Zp,Yc;zr("no-color")||zr("no-colors")||zr("color=false")||zr("color=never")?Yc=0:(zr("color")||zr("colors")||zr("color=true")||zr("color=always"))&&(Yc=1);function UN(){if("FORCE_COLOR"in ht)return ht.FORCE_COLOR==="true"?1:ht.FORCE_COLOR==="false"?0:ht.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ht.FORCE_COLOR,10),3)}function BN(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function GN(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=UN();n!==void 0&&(Yc=n);let o=r?Yc:n;if(o===0)return 0;if(r){if(zr("color=16m")||zr("color=full")||zr("color=truecolor"))return 3;if(zr("color=256"))return 2}if("TF_BUILD"in ht&&"AGENT_NAME"in ht)return 1;if(e&&!t&&o===void 0)return 0;let s=o||0;if(ht.TERM==="dumb")return s;if(Zp.platform==="win32"){let i=qN.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in ht)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(i=>i in ht)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(i=>i in ht)||ht.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in ht)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ht.TEAMCITY_VERSION)?1:0;if(ht.COLORTERM==="truecolor"||ht.TERM==="xterm-kitty"||ht.TERM==="xterm-ghostty"||ht.TERM==="wezterm")return 3;if("TERM_PROGRAM"in ht){let i=Number.parseInt((ht.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ht.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ht.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ht.TERM)||"COLORTERM"in ht?1:s}function Ew(e,t={}){let r=GN(e,{streamIsTTY:e&&e.isTTY,...t});return BN(r)}var zN={stdout:Ew({isTTY:Sw.isatty(1)}),stderr:Ew({isTTY:Sw.isatty(2)})},Tw=zN;function kw(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 Rw(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
73
129
  `:`
74
- `)+r,o=n+1,n=e.indexOf(`
75
- `,o)}while(n!==-1);return s+=e.slice(o),s}var{stdout:Pw,stderr:Iw}=Tw,ed=Symbol("GENERATOR"),ks=Symbol("STYLER"),Gi=Symbol("IS_EMPTY"),Aw=["ansi","ansi","ansi256","ansi16m"],Rs=Object.create(null),HN=(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=Pw?Pw.level:0;e.level=t.level===void 0?r:t.level};var WN=e=>{let t=(...r)=>r.join(" ");return HN(t,e),Object.setPrototypeOf(t,zi.prototype),t};function zi(e){return WN(e)}Object.setPrototypeOf(zi.prototype,Function.prototype);for(let[e,t]of Object.entries(an))Rs[e]={get(){let r=Xc(this,rd(t.open,t.close,this[ks]),this[Gi]);return Object.defineProperty(this,e,{value:r}),r}};Rs.visible={get(){let e=Xc(this,this[ks],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var td=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?an[r].ansi16m(...n):t==="ansi256"?an[r].ansi256(an.rgbToAnsi256(...n)):an[r].ansi(an.rgbToAnsi(...n)):e==="hex"?td("rgb",t,r,...an.hexToRgb(...n)):an[r][e](...n),VN=["rgb","hex","ansi256"];for(let e of VN){Rs[e]={get(){let{level:r}=this;return function(...n){let o=rd(td(e,Aw[r],"color",...n),an.color.close,this[ks]);return Xc(this,o,this[Gi])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Rs[t]={get(){let{level:r}=this;return function(...n){let o=rd(td(e,Aw[r],"bgColor",...n),an.bgColor.close,this[ks]);return Xc(this,o,this[Gi])}}}}var KN=Object.defineProperties(()=>{},{...Rs,level:{enumerable:!0,get(){return this[ed].level},set(e){this[ed].level=e}}}),rd=(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}},Xc=(e,t,r)=>{let n=(...o)=>JN(n,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(n,KN),n[ed]=e,n[ks]=t,n[Gi]=r,n},JN=(e,t)=>{if(e.level<=0||!t)return e[Gi]?"":t;let r=e[ks];if(r===void 0)return t;let{openAll:n,closeAll:o}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=kw(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
76
- `);return s!==-1&&(t=Rw(t,o,n,s)),n+t+o};Object.defineProperties(zi.prototype,Rs);var YN=zi(),AZ=zi({level:Iw?Iw.level:0});var ao=YN;function rM({value:e,placeholder:t="",focus:r=!0,mask:n,highlightPastedText:o=!1,showCursor:s=!0,onChange:i,onSubmit:a}){let[c,u]=QN({cursorOffset:(e||"").length,cursorWidth:0}),{cursorOffset:l,cursorWidth:p}=c;ZN(()=>{u(w=>{if(!r||!s)return w;let v=e||"";return w.cursorOffset>v.length-1?{cursorOffset:v.length,cursorWidth:0}:w})},[e,r,s]);let f=o?p:0,m=n?n.repeat(e.length):e,h=m,g=t?ao.grey(t):void 0;if(s&&r){g=t.length>0?ao.inverse(t[0])+ao.grey(t.slice(1)):ao.inverse(" "),h=m.length>0?"":ao.inverse(" ");let w=0;for(let v of m)h+=w>=l-f&&w<=l?ao.inverse(v):v,w++;m.length>0&&l===m.length&&(h+=ao.inverse(" "))}return tM((w,v)=>{if(v.upArrow||v.downArrow||v.ctrl&&w==="c"||v.tab||v.shift&&v.tab)return;if(v.return){a&&a(e);return}let T=l,R=e,P=0;v.leftArrow?s&&T--:v.rightArrow?s&&T++:v.backspace||v.delete?l>0&&(R=e.slice(0,l-1)+e.slice(l,e.length),T--):(R=e.slice(0,l)+w+e.slice(l,e.length),T+=w.length,w.length>1&&(P=w.length)),l<0&&(T=0),l>e.length&&(T=e.length),u({cursorOffset:T,cursorWidth:P}),R!==e&&i(R)},{isActive:r}),XN.createElement(eM,null,t?m.length>0?h:g:h)}var Cw=rM;import XQ from"react";import{Box as pM,Text as cn}from"ink";function Qc(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 Ps(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:e.toString()}function nM(e){let{startTime:t,inputTokens:r,outputTokens:n,provider:o,model:s,actionText:i}=e,a=Qc(t),c=Ps(n),u=o&&s?`${o}/${s}`.slice(0,50):s||"unknown",l=["esc to interrupt",a];return r&&r>0&&l.push(`\u2191 ${Ps(r)}`),l.push(`\u2193 ${c} tokens`),l.push(u),l.push(i),`(${l.join(" \xB7 ")})`}import{createContext as oM,useContext as sM,useState as iM,useEffect as aM,useMemo as cM}from"react";import{jsx as uM}from"react/jsx-runtime";var $w=oM({currentTime:Date.now()}),lM=({children:e,interval:t=1e3})=>{let[r,n]=iM(Date.now());aM(()=>{let s=setInterval(()=>{n(Date.now())},t);return()=>clearInterval(s)},[t]);let o=cM(()=>({currentTime:r}),[r]);return uM($w.Provider,{value:o,children:e})},Ow=()=>{let{currentTime:e}=sM($w);return e},Do=(e,t=!0)=>{let r=Ow();return!t||!e?0:r-e};import{jsx as ln,jsxs as dM}from"react/jsx-runtime";var Nw=({startTime:e,inputTokens:t=0,outputTokens:r,provider:n,model:o,actionText:s})=>{let i=Do(e,!0),a=Qc(e),c=n&&o?`${n}/${o}`.slice(0,45):o||"unknown",u=`\u2193 ${Ps(r)} tokens`,l=t>0?`\u2191 ${Ps(t)} \xB7 `:"";return dM(pM,{children:[ln(cn,{dimColor:!0,children:"(esc to interrupt"}),ln(cn,{dimColor:!0,children:" \xB7 "}),ln(cn,{color:"yellow",children:a}),ln(cn,{dimColor:!0,children:" \xB7 "}),l&&ln(cn,{color:"blue",children:l}),ln(cn,{color:"green",children:u}),ln(cn,{dimColor:!0,children:" \xB7 "}),ln(cn,{color:"cyan",children:c}),ln(cn,{dimColor:!0,children:" \xB7 "}),ln(cn,{color:"magenta",bold:!0,children:s}),ln(cn,{dimColor:!0,children:")"})]})};import{useState as fM,useEffect as mM}from"react";import{Box as co,Text as We}from"ink";import{Fragment as bM,jsx as Ge,jsxs as Nr}from"react/jsx-runtime";var Mw=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],hM=300,gM=({isActive:e=!0})=>{let[t,r]=fM(0);return mM(()=>{if(!e)return;let n=setInterval(()=>{r(o=>(o+1)%Mw.length)},hM);return()=>clearInterval(n)},[e]),Ge(We,{color:"yellow",children:Mw[t]})},yM=({status:e,isActive:t=!0})=>{switch(e){case"completed":return Ge(We,{color:"green",children:"\u2713"});case"in_progress":return Ge(gM,{isActive:t});case"failed":return Ge(We,{color:"red",children:"\u2717"});case"pending":default:return Ge(We,{color:"gray",children:"\u25CB"})}},vM=({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 Ge(We,{color:t[e],children:r[e]})},wM=({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",u=c.length>30?c.substring(0,27)+"...":c;return Nr(co,{children:[Ge(We,{color:"cyan",children:"("}),Ge(We,{color:"white",children:"Tasks"}),Ge(We,{color:"gray",children:" \xB7 "}),Nr(We,{color:n===o?"green":"yellow",children:[n,"/",o]}),Ge(We,{color:"gray",children:" \xB7 "}),Ge(We,{color:"white",children:`"${u}"`}),Ge(We,{color:"gray",children:" \xB7 "}),Ge(vM,{status:i}),Ge(We,{color:"gray",children:" \xB7 "}),Ge(We,{color:"gray",dimColor:!0,children:t}),Ge(We,{color:"cyan",children:")"})]})},xM=({state:e,toggleHint:t="ctrl+t",maxVisible:r=10})=>{let{tasks:n,completedCount:o,totalCount:s,title:i,status:a}=e,u=[...n].sort((p,f)=>p.status==="in_progress"?-1:f.status==="in_progress"?1:p.status==="pending"&&f.status!=="pending"?-1:f.status==="pending"&&p.status!=="pending"?1:0).slice(0,r),l=n.length-u.length;return Nr(co,{flexDirection:"column",borderStyle:"round",borderColor:"cyan",paddingX:1,children:[Nr(co,{justifyContent:"space-between",children:[Nr(co,{children:[Ge(We,{color:"cyan",bold:!0,children:"Tasks"}),i&&Nr(bM,{children:[Ge(We,{color:"gray",children:" - "}),Ge(We,{color:"white",children:i})]}),Ge(We,{color:"gray",children:" ("}),Nr(We,{color:o===s?"green":"yellow",children:[o,"/",s]}),Ge(We,{color:"gray",children:")"})]}),Nr(We,{color:"gray",dimColor:!0,children:["[",t," to collapse]"]})]}),Nr(co,{flexDirection:"column",marginTop:1,children:[u.map((p,f)=>Nr(co,{children:[Nr(We,{color:"gray",children:[String(f+1).padStart(2," "),". "]}),Ge(yM,{status:p.status}),Ge(We,{children:" "}),Ge(We,{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"&&Ge(We,{color:"gray",dimColor:!0,children:" [in progress]"}),p.status==="failed"&&p.error&&Nr(We,{color:"red",dimColor:!0,children:[" (",p.error,")"]})]},p.id)),l>0&&Nr(We,{color:"gray",dimColor:!0,children:[" ... and ",l," more"]})]}),a==="completed"&&Ge(co,{marginTop:1,children:Ge(We,{color:"green",children:"All tasks completed!"})}),a==="failed"&&Ge(co,{marginTop:1,children:Ge(We,{color:"red",children:"Some tasks failed. Check errors above."})})]})},nd=({state:e,isExpanded:t,toggleHint:r="ctrl+t",maxVisible:n=10})=>e.tasks.length===0?null:t?Ge(xM,{state:e,toggleHint:r,maxVisible:n}):Ge(wM,{state:e,toggleHint:r});nd.displayName="TaskPanel";import{Box as kn,Text as vt,useInput as EQ}from"ink";import{useState as _M,useEffect as SM}from"react";import{Text as EM}from"ink";import{jsx as kM}from"react/jsx-runtime";var Dw=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],TM=300,lo=({color:e="cyan"})=>{let[t,r]=_M(0);return SM(()=>{let n=setInterval(()=>{r(o=>(o+1)%Dw.length)},TM);return()=>clearInterval(n)},[]),kM(EM,{color:e,children:Dw[t]})};ot();gr();wv();Mc();Mo();no();Pp();ot();Cr();G();gr();Mc();Qv();Zv();Fp();qv();Es();Gc();Zv();Fp();Es();G();ot();G();var gve=60*1e3;Qv();ot();Cr();G();Fv();Lp();ot();Lp();var Nve=300*1e3,Mve=600*1e3;var Dve=60*1e3,Lve=3600*1e3,jve=50*1024,Fve=10*1024,qve=100*1024;G();G();ot();gr();Cr();G();var Qve=new yt;ot();gr();Cr();G();var nwe=new yt;ot();gr();Cr();G();var cwe=new yt;Cr();ot();gr();G();var fwe=600*1e3;G();ot();Cr();_s();G();Lv();Mp();Dv();Cv();Ss();ot();G();ot();Cr();G();jp();G();var $we=10*1024*1024;var Owe=process.cwd();ot();G();var PO=null;var Lwe=600*1e3;function tw(){return PO?.name?PO.name:null}G();jv();_s();$p();var qwe=100*1024;CO();Op();Fc();jc();var KX="\x1B";var txe=`${KX}\\`;G();var uxe={hubUrl:"",hubPublicKey:process.env.FLOWDOT_HUB_PUBLIC_KEY||"",reconnectEnabled:!0,reconnectMaxAttempts:10,reconnectBaseDelayMs:1e3,reconnectMaxDelayMs:3e4,heartbeatIntervalMs:3e4,connectionTimeoutMs:1e4};G();ot();Yv();import{Box as Bp,Text as qr}from"ink";import{jsx as Ur,jsxs as qi}from"react/jsx-runtime";var zc={branch:"\u251C\u2500",lastBranch:"\u2514\u2500",vertical:"\u2502 ",space:" ",corner:"\u23BF "};function bQ(e){switch(e){case"running":return Ur(lo,{});case"completed":return Ur(qr,{color:"green",children:"\u2713"});case"failed":return Ur(qr,{color:"red",children:"\u2717"});case"skipped":return Ur(qr,{color:"gray",children:"\u25CB"});case"pending":default:return Ur(qr,{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 Gp({step:e,isLast:t,depth:r=0,parentPrefix:n="",showDetails:o=!0}){let s=e.status==="running"&&!!e.startTime,i=Do(e.startTime,s),a=s?i:e.metrics.durationMs,c=t?zc.lastBranch:zc.branch,u=n+(t?zc.space:zc.vertical),l=[];if(l.push(e.stepName),e.currentTool&&l.push(e.currentTool),e.toolCount>0&&l.push(`${e.toolCount} tool${e.toolCount!==1?"s":""}`),e.activeText&&o&&l.push(Ut(e.activeText,25)),e.iterationIndex!==void 0&&e.iterationTotal!==void 0&&l.push(`[${e.iterationIndex+1}/${e.iterationTotal}]`),o&&(e.metrics.inputTokens>0||e.metrics.outputTokens>0)&&l.push(Uc(e.metrics.inputTokens,e.metrics.outputTokens)),o&&a>0&&l.push(Fr(a)),o&&e.metrics.cost!==void 0&&e.metrics.cost>0&&l.push(Bc(e.metrics.cost)),o&&e.metrics.model){let m=e.metrics.provider?`${e.metrics.provider}/${e.metrics.model}`:e.metrics.model;l.push(Ut(m,30))}let p=_Q(e.status),f=Mv(e.status);return qi(Bp,{flexDirection:"column",children:[qi(Bp,{children:[qi(qr,{color:"gray",children:[n,c]}),Ur(qr,{children:" "}),bQ(e.status),Ur(qr,{children:" "}),Ur(qr,{color:"gray",children:SQ(e.stepType)}),Ur(qr,{children:" "}),Ur(qr,{color:p,bold:e.status==="running",children:l.join(" \u25CF ")})]}),(e.status==="completed"||e.status==="failed")&&qi(Bp,{children:[qi(qr,{color:"gray",children:[u,zc.corner]}),Ur(qr,{color:p,children:f}),e.status==="failed"&&e.metrics.cost!==void 0&&qi(qr,{color:"red",children:[" (cost: $",e.metrics.cost.toFixed(4),")"]})]}),e.children&&e.children.length>0&&Ur(Bp,{flexDirection:"column",children:e.children.map((m,h)=>Ur(Gp,{step:m,isLast:h===e.children.length-1,depth:r+1,parentPrefix:u,showDetails:o},m.stepId))})]})}import{jsx as st,jsxs as yr}from"react/jsx-runtime";function TQ(e){switch(e){case"running":return st(lo,{});case"completed":return st(vt,{color:"green",children:"\u2713"});case"failed":return st(vt,{color:"red",children:"\u2717"});case"paused":return st(vt,{color:"yellow",children:"\u23F8"});case"pending":default:return st(vt,{color:"gray",children:"\u25E6"})}}function kQ(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 PQ(e){switch(e){case"completed":return st(vt,{color:"green",children:"\u2713"});case"in_progress":return st(lo,{});case"pending":default:return st(vt,{color:"gray",children:"\u25CB"})}}function IQ({tasks:e}){let{counters:t,recentTasks:r}=e;return yr(kn,{flexDirection:"column",marginTop:1,children:[yr(kn,{children:[st(vt,{color:"cyan",bold:!0,children:"Tasks: "}),yr(vt,{color:"green",children:[t.completed," done"]}),st(vt,{color:"gray",children:" / "}),yr(vt,{color:"yellow",children:[t.in_progress," active"]}),st(vt,{color:"gray",children:" / "}),yr(vt,{color:"gray",children:[t.pending," pending"]}),yr(vt,{color:"gray",children:[" (",t.total," total)"]})]}),r.length>0&&st(kn,{flexDirection:"column",marginTop:1,marginLeft:2,children:r.map((n,o)=>yr(kn,{children:[yr(vt,{color:"gray",children:[o===r.length-1?"\u2514\u2500":"\u251C\u2500"," "]}),PQ(n.status),st(vt,{children:" "}),st(vt,{color:n.status==="completed"?"green":n.status==="in_progress"?"yellow":"white",children:Ut(n.content,50)}),n.category&&yr(vt,{color:"gray",dimColor:!0,children:[" [",n.category,"]"]})]},n.id))})]})}function AQ({messages:e}){return st(kn,{flexDirection:"column",marginTop:1,children:e.map((t,r)=>st(kn,{children:st(vt,{color:t.color,children:t.message})},r))})}function CQ({recipeName:e,initialPrompt:t,status:r,metrics:n,elapsedMs:o,isExpanded:s,onToggle:i}){let a=kQ(r),c=[];c.push(e),t&&c.push(Ut(t,40)),c.push(Fr(o)),(n.totalInputTokens>0||n.totalOutputTokens>0)&&c.push(Uc(n.totalInputTokens,n.totalOutputTokens)),n.totalCost>0&&c.push(Bc(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 u=Nv(n.modelsUsed);return u&&c.push(u),yr(kn,{children:[TQ(r),st(vt,{children:" "}),st(vt,{color:a,bold:!0,children:c.join(" \u25CF ")}),yr(vt,{color:"gray",children:[" ","[",s?"\u25BC":"\u25B6","]"]})]})}function rw({state:e,isExpanded:t=!0,onToggleExpand:r,showKeyHint:n=!0}){let o=e?.status==="running",s=Do(e?.startTime,o),i=o?s:e?.aggregatedMetrics.totalDurationMs||0;if(EQ((h,g)=>{h==="r"&&g.ctrl&&r&&r()}),!e)return null;let{recipeName:a,initialPrompt:c,status:u,steps:l,aggregatedMetrics:p,tasks:f,outputMessages:m}=e;return yr(kn,{flexDirection:"column",borderStyle:"round",borderColor:"gray",paddingX:1,marginY:1,children:[st(CQ,{recipeName:a,initialPrompt:c,status:u,metrics:p,elapsedMs:i,isExpanded:t,onToggle:r}),t&&l.length>0&&st(kn,{flexDirection:"column",marginTop:1,children:l.map((h,g)=>st(Gp,{step:h,isLast:g===l.length-1,showDetails:!0},h.stepId))}),t&&f&&f.counters.total>0&&st(IQ,{tasks:f}),t&&m&&m.length>0&&st(AQ,{messages:m}),!t&&st(kn,{marginTop:1,children:yr(vt,{color:"gray",children:[p.completedSteps,"/",p.stepCount," steps completed",p.failedSteps>0&&yr(vt,{color:"red",children:[" (",p.failedSteps," failed)"]})]})}),n&&r&&st(kn,{marginTop:1,children:yr(vt,{color:"gray",dimColor:!0,children:["Press Ctrl+R to ",t?"collapse":"expand"]})})]})}function nw({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=nw();function ow(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes("\x1B")&&!e.includes("\x9B")?e:e.replace($Q,"")}import{Text as MO}from"ink";import{jsx as DO}from"react/jsx-runtime";var OQ=/^(bold|\/bold|[a-z]+-fg|\/[a-z]+-fg)$/;function NQ(e){return OQ.test(e)}function LO(e){let t={style:{},children:[]},r=[t],n=0,o=c=>{if(!c)return;let u=r[r.length-1],l=u.children[u.children.length-1];if(typeof l=="string"){u.children[u.children.length-1]=l+c;return}u.children.push(c)},s=c=>{let u=r[r.length-1],l={...u.style};c==="bold"?l.bold=!0:c.endsWith("-fg")&&(l.color=c.replace("-fg",""));let p={style:l,children:[]};u.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 u=e.substring(n+1,c);if(!NQ(u)){o(e[n]),n++;continue}u.startsWith("/")?i():s(u),n=c+1}else o(e[n]),n++;let a=(c,u)=>{let l=c.children.map((p,f)=>typeof p=="string"?p:a(p,`${u}-${f}`));return DO(MO,{color:c.style.color,bold:c.style.bold,children:l.length===1?l[0]:l},u)};return t.children.map((c,u)=>typeof c=="string"?DO(MO,{children:c},`text-${u}`):a(c,`node-${u}`))}import MQ from"node:os";function jO(){let e=tw();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 FO(){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 sw(){let e=jO();return`${FO()}, ${e}!`}import{useState as zp,useEffect as DQ}from"react";import{Box as ge,Text as L,useInput as LQ}from"ink";import{Fragment as zQ,jsx as D,jsxs as se}from"react/jsx-runtime";var He={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"},Ui={selected:"\u2591",error:"\u2593"};function iw(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 aw(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 jQ(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 qO(e,t){let r=(e||0)+(t||0);return r===0?"":r>=1e3?`${(r/1e3).toFixed(1)}k`:`${r}`}function FQ({steps:e,selectedIndex:t,currentStepId:r}){return se(ge,{flexDirection:"column",paddingX:2,children:[D(L,{color:"gray",dimColor:!0,children:"Timeline:"}),D(ge,{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",u=s===e.length-1,l=i?c?Ui.error:Ui.selected:" ",p=iw(o.status),f=aw(o.status),m=Ut(o.stepName,13);return se(ge,{flexDirection:"row",alignItems:"center",children:[se(ge,{flexDirection:"column",children:[se(L,{color:"gray",children:[He.topLeft,He.horizontal.repeat(17),He.topRight]}),se(L,{children:[D(L,{color:"gray",children:He.vertical}),D(L,{color:i?f:"gray",children:l.repeat(17)}),D(L,{color:"gray",children:He.vertical})]}),se(L,{children:[D(L,{color:"gray",children:He.vertical}),se(L,{color:i?f:void 0,bold:i,children:[" ",m.padEnd(16)]}),D(L,{color:"gray",children:He.vertical})]}),se(L,{children:[D(L,{color:"gray",children:He.vertical}),D(L,{color:i?f:"gray",children:l.repeat(17)}),D(L,{color:"gray",children:He.vertical})]}),se(L,{color:"gray",children:[He.bottomLeft,He.horizontal.repeat(17),He.bottomRight]}),D(ge,{justifyContent:"center",children:se(L,{color:f,children:[a?D(lo,{}):p," ",Fr(o.durationMs||0)]})})]}),!u&&D(ge,{marginX:1,children:se(L,{color:c?"red":"gray",children:[He.horizontal,He.horizontal,c?"\u2717":He.arrow,He.horizontal,He.horizontal]})})]},o.stepId)})})]})}function qQ({toolCalls:e,selectedIndex:t,stepFailed:r}){return e.length===0?D(ge,{borderStyle:"single",borderColor:"gray",paddingX:1,children:D(L,{color:"gray",dimColor:!0,children:"(no tool calls in this step)"})}):D(ge,{flexDirection:"column",borderStyle:"single",borderColor:"gray",children:e.map((n,o)=>{let s=o===t,i=!n.success,a=s?i?Ui.error:Ui.selected:" ",c=n.success?"\u2713":"\u2717",u=n.success?"green":"red",l=Object.entries(n.args||{}).map(([p,f])=>`${p}: ${typeof f=="string"?f:JSON.stringify(f)}`).join(", ");return D(ge,{paddingX:1,children:se(L,{children:[s?D(L,{color:u,children:He.arrow}):" ",se(L,{color:s?u:void 0,children:[a,n.tool.padEnd(14),a]}),D(L,{color:"gray",children:Ut(l,30).padEnd(32)}),D(L,{color:"gray",children:Fr(n.durationMs||0).padStart(6)}),D(L,{children:" "}),D(L,{color:u,children:c})]})},o)})})}function UQ({selectedToolCall:e,step:t}){if(!e)return se(ge,{flexDirection:"column",paddingX:1,children:[D(L,{color:"cyan",bold:!0,children:"DETAILS"}),D(L,{color:"gray",children:"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"}),D(ge,{marginTop:1,children:se(L,{color:"gray",dimColor:!0,children:["Select a tool call with \u2191\u2193",`
77
- `,"to view details here."]})})]});let r=e.success?"green":"red";return se(ge,{flexDirection:"column",paddingX:1,children:[D(L,{color:"cyan",bold:!0,children:"TOOL DETAILS"}),D(L,{color:"gray",children:"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"}),se(ge,{marginTop:1,flexDirection:"column",children:[se(L,{children:[D(L,{color:"gray",children:"Tool: "}),D(L,{bold:!0,children:e.tool})]}),se(L,{children:[D(L,{color:"gray",children:"Status: "}),D(L,{color:r,children:e.success?"\u2713 success":"\u2717 error"})]}),se(L,{children:[D(L,{color:"gray",children:"Duration: "}),D(L,{children:Fr(e.durationMs||0)})]}),se(ge,{marginTop:1,flexDirection:"column",children:[D(L,{color:"gray",children:"Input:"}),D(ge,{borderStyle:"single",borderColor:"gray",paddingX:1,marginTop:0,children:D(L,{children:JSON.stringify(e.args||{},null,2)})})]}),e.error&&se(ge,{marginTop:1,flexDirection:"column",children:[D(L,{color:"red",children:"Error Message:"}),D(ge,{borderStyle:"single",borderColor:"red",paddingX:1,marginTop:0,children:D(L,{color:"red",children:e.error})})]})]})]})}function BQ({stores:e,selectedStoreKey:t,storeKeys:r,selectedIndex:n}){return se(ge,{flexDirection:"column",children:[D(L,{color:"cyan",bold:!0,children:"Recipe Stores:"}),D(ge,{flexDirection:"column",borderStyle:"single",borderColor:"gray",marginTop:1,children:r.length===0?D(ge,{paddingX:1,children:D(L,{color:"gray",dimColor:!0,children:"(no stores)"})}):r.map((o,s)=>{let i=s===n,a=e[o],c=typeof a=="string"?Ut(a,30):Ut(JSON.stringify(a),30);return D(ge,{paddingX:1,children:se(L,{children:[i?D(L,{color:"cyan",children:He.arrow}):" ",se(L,{color:i?"cyan":void 0,children:[i?Ui.selected:" ",o.padEnd(20),i?Ui.selected:" "]}),D(L,{color:"gray",children:c})]})},o)})})]})}function GQ({storeKey:e,storeValue:t}){if(!e)return se(ge,{flexDirection:"column",paddingX:1,children:[D(L,{color:"cyan",bold:!0,children:"STORE VALUE"}),D(L,{color:"gray",children:"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"}),D(ge,{marginTop:1,children:se(L,{color:"gray",dimColor:!0,children:["Select a store with \u2191\u2193",`
78
- `,"to view its value here."]})})]});let r=typeof t=="string"?t:JSON.stringify(t,null,2);return se(ge,{flexDirection:"column",paddingX:1,children:[D(L,{color:"cyan",bold:!0,children:"STORE VALUE"}),D(L,{color:"gray",children:"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"}),se(ge,{marginTop:1,flexDirection:"column",children:[se(L,{children:[D(L,{color:"gray",children:"Key: "}),D(L,{bold:!0,children:e})]}),se(L,{children:[D(L,{color:"gray",children:"Type: "}),D(L,{children:typeof t})]}),se(ge,{marginTop:1,flexDirection:"column",children:[D(L,{color:"gray",children:"Value:"}),D(ge,{borderStyle:"single",borderColor:"gray",paddingX:1,marginTop:0,children:D(L,{children:Ut(r,500)})})]})]})]})}function cw({executionState:e,recipeName:t,initialPrompt:r,readOnly:n=!1,onExit:o,onRetryStep:s}){let[i,a]=zp(0),[c,u]=zp(0),[l,p]=zp(0),[f,m]=zp("tools"),h=e?.stepResults||[],g=h[i]||null,w=g?.toolCalls||[],v=w[c]||null,T=Object.keys(e?.stores||{}),R=T[l]||null,P=R&&e?.stores?e.stores[R]:null;if(DQ(()=>{u(0)},[i]),LQ(($e,oe)=>{if($e==="q"||oe.escape){o?.();return}if(oe.tab||$e==="s"){m(Y=>Y==="tools"?"stores":"tools");return}if(oe.leftArrow){a(Y=>Math.max(0,Y-1));return}if(oe.rightArrow){a(Y=>Math.min(h.length-1,Y+1));return}if(oe.upArrow){f==="tools"?u(Y=>Math.max(0,Y-1)):p(Y=>Math.max(0,Y-1));return}if(oe.downArrow){f==="tools"?u(Y=>Math.min(w.length-1,Y+1)):p(Y=>Math.min(T.length-1,Y+1));return}if($e==="r"&&!n&&g?.status==="failed"&&s){s(g.stepId);return}}),!e)return null;let I=e.status,j=aw(I),F=iw(I),ie=e.durationMs||0,de=e.totalTokens||0,te=["\u2190\u2192 Timeline","\u2191\u2193 "+(f==="tools"?"Tool Calls":"Stores"),"Tab Toggle View",g?.status==="failed"&&!n?"r Retry Step":null,"q Quit"].filter(Boolean).join(" \u2502 ");return se(ge,{flexDirection:"column",borderStyle:"round",borderColor:"gray",paddingX:1,children:[se(ge,{justifyContent:"space-between",paddingX:1,children:[se(L,{children:[D(L,{color:"cyan",bold:!0,children:"AUDIT: "}),D(L,{bold:!0,children:t}),r&&se(L,{color:"gray",children:[" - ",Ut(r,40)]})]}),se(L,{color:j,children:[I==="running"?D(lo,{}):F," ",Fr(ie)," total",de>0&&se(L,{color:"gray",children:[" \u2502 ",qO(de)," tokens"]})]})]}),D(ge,{children:se(L,{color:"gray",children:[He.teeRight,He.horizontal.repeat(100),He.teeLeft]})}),D(FQ,{steps:h,selectedIndex:i,currentStepId:e.currentStepId}),D(ge,{children:se(L,{color:"gray",children:[He.teeRight,He.horizontal.repeat(65),He.teeDown,He.horizontal.repeat(34),He.teeLeft]})}),se(ge,{children:[se(ge,{flexDirection:"column",width:"66%",paddingX:1,children:[g&&D(ge,{marginBottom:1,children:se(L,{children:[D(L,{color:"cyan",bold:!0,children:"STEP: "}),D(L,{bold:!0,children:g.stepName})]})}),g&&D(ge,{marginBottom:1,children:se(L,{color:"gray",children:["Type: ",jQ(g.stepType)," ",g.stepType||"agent"," \u2502 Status: ",D(L,{color:aw(g.status),children:iw(g.status)})," \u2502 Tokens: ",qO(g.inputTokensUsed,g.outputTokensUsed)]})}),D(ge,{marginBottom:1,children:se(L,{children:[D(L,{color:f==="tools"?"cyan":"gray",children:f==="tools"?"[Tools]":" Tools "}),D(L,{children:" "}),D(L,{color:f==="stores"?"cyan":"gray",children:f==="stores"?"[Stores]":" Stores "})]})}),f==="tools"?se(zQ,{children:[D(L,{color:"gray",children:"Tool Calls:"}),D(qQ,{toolCalls:w,selectedIndex:c,stepFailed:g?.status==="failed"}),g?.output&&se(ge,{marginTop:1,flexDirection:"column",children:[D(L,{color:"gray",children:"Output Preview:"}),D(L,{color:"gray",dimColor:!0,children:Ut(typeof g.output=="string"?g.output:JSON.stringify(g.output),80)})]}),g?.error&&se(ge,{marginTop:1,flexDirection:"column",children:[D(L,{color:"red",children:"Error:"}),D(ge,{borderStyle:"single",borderColor:"red",paddingX:1,children:D(L,{color:"red",children:g.error})})]})]}):D(BQ,{stores:e.stores||{},selectedStoreKey:R,storeKeys:T,selectedIndex:l})]}),D(ge,{children:D(L,{color:"gray",children:He.vertical})}),D(ge,{flexDirection:"column",width:"33%",children:f==="tools"?D(UQ,{selectedToolCall:v,step:g}):D(GQ,{storeKey:R,storeValue:P})})]}),D(ge,{children:se(L,{color:"gray",children:[He.teeRight,He.horizontal.repeat(100),He.teeLeft]})}),D(ge,{paddingX:1,children:D(L,{color:"gray",dimColor:!0,children:te})})]})}import{Fragment as Wc,jsx as Q,jsxs as Ot}from"react/jsx-runtime";var UO=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],QQ=300,ZQ=()=>{let[e,t]=Bt(0);return Hp(()=>{let r=setInterval(()=>{t(n=>(n+1)%UO.length)},QQ);return()=>clearInterval(r)},[]),Q(ne,{children:UO[e]})},BO=XQ.memo(({message:e,parseFormattedText:t})=>typeof e.text=="string"?e.text.includes("{")&&e.text.includes("}")?Q($r,{children:t(e.text)},e.id):e.type==="user"?Q(ne,{backgroundColor:"blackBright",color:"white",children:e.text},e.id):Q(ne,{color:e.type==="error"?"red":e.type==="success"?"green":"white",children:e.text},e.id):Q($r,{children:e.text},e.id),(e,t)=>e.message.id===t.message.id);BO.displayName="MessageRenderer";function eZ(e,t){let r=e.current;return t&&r.showing&&r.config?(r.config.onSelect(t),!0):!1}var GO=WQ(({onInput:e,onExit:t,initialHistory:r,onSaveHistory:n,onCancel:o},s)=>{let[i,a]=Bt([]),[c,u]=Bt(r),[l,p]=Bt(-1),[f,m]=Bt(""),[h,g]=Bt(!1),[w,v]=Bt(null),[T,R]=Bt("Type your message | Ctrl+C to exit | Ctrl+K to cancel operation "),[P,I]=Bt(null),[j,F]=Bt({showing:!1,selectedIndex:0,config:null,commentText:"",isInCommentMode:!1}),ie=Hc(j),[de,te]=Bt({showing:!1,selectedIndex:0,options:[],onSelect:void 0}),[$e,oe]=Bt({tasks:[],completedCount:0,totalCount:0,status:"idle"}),[Y,re]=Bt(!1),[Rt,Gt]=Bt(null),[Mt,zt]=Bt(!0),[Ze,ft]=Bt({showing:!1,executionState:null,recipeName:""}),Ht=Hc(0),et=Hc(!1),ae=Hc(null),{exit:Zt}=KQ(),{stdout:ye}=JQ(),Br=ye.columns||80,[U,O]=Bt(0),[Ie,tt]=Bt(0),Oe=A=>A>=1e3?`${(A/1e3).toFixed(1)}k`:A.toString(),_t=()=>Ot($r,{borderStyle:"round",paddingX:2,borderColor:"cyan",flexDirection:"column",children:[Q(ne,{color:"cyan",children:" ______ _ _____ _ "}),Q(ne,{color:"cyan",children:" | ____| | | __ \\ | | "}),Q(ne,{color:"cyan",children:" | |__ | | _____ _| | | | ___ | |_ "}),Q(ne,{color:"cyan",children:" | __| | |/ _ \\ \\ /\\ / / | | |/ _ \\| __|"}),Q(ne,{color:"cyan",children:" | | | | (_) \\ V V /| |__| | (_) | |_ "}),Q(ne,{color:"cyan",children:" |_| |_|\\___/ \\_/\\_/ |_____| \\___/ \\__|"}),Q(ne,{children:" "}),Q(ne,{color:"yellow",bold:!0,children:sw()}),Q(ne,{children:" "}),Q(ne,{children:"I can help with:"}),Q(ne,{children:" \u2022 Running workflows"}),Q(ne,{children:" \u2022 Searching the web for information"}),Q(ne,{children:" \u2022 Searching & analyzing code"}),Q(ne,{children:" \u2022 Executing commands (tests, builds, etc.)"}),Q(ne,{children:" \u2022 Editing & creating files"}),Q(ne,{children:" \u2022 Installing missing tools"}),Q(ne,{children:" "}),Q(ne,{children:'Type "/help" to see available commands'}),Q(ne,{children:"Use \u2191/\u2193 arrow keys to navigate history"})]}),Dt=Hc(0),Re=lw((A,H)=>{let q=`msg-${Date.now()}-${Dt.current++}`;a(fe=>[...fe,{id:q,type:A,text:H}])},[]);Hp(()=>{Re("system",_t())},[Re]),Hp(()=>{ae.current=Rt},[Rt]),Hp(()=>{ie.current=j},[j]);let Rn=lw(async A=>{if(A.trim()){Re("user",`> ${A}`),u(H=>{let q=[...H];return(q.length===0||q[q.length-1]!==A)&&(q.push(A),n(q)),q}),p(-1),m(""),g(!0),v("Processing..."),R("Processing... | Ctrl+K to cancel | Ctrl+C to exit");try{await e(A)}catch(H){Re("error",`Error: ${H.message}`)}finally{g(!1),v(null),R("Type your message | Ctrl+C to exit | Ctrl+K to cancel operation ")}}},[e,Re,n]);VQ((A,H)=>{if(j.showing&&j.config){let q=j.config;if(j.isInCommentMode){if(H.escape){q.onSelect("cancelled"),F({showing:!1,selectedIndex:0,config:null,commentText:"",isInCommentMode:!1});return}if(H.return){let fe=ie.current.commentText.trim();if(q.commentRequired&&!fe)return;q.onSelect("approve",fe||void 0),F({showing:!1,selectedIndex:0,config:null,commentText:"",isInCommentMode:!1});return}if(H.backspace||H.delete){F(fe=>({...fe,commentText:fe.commentText.slice(0,-1)}));return}if(A&&!H.ctrl&&!H.meta){F(fe=>({...fe,commentText:fe.commentText+A}));return}return}if(H.upArrow){F(fe=>({...fe,selectedIndex:Math.max(0,fe.selectedIndex-1)}));return}else if(H.downArrow){F(fe=>({...fe,selectedIndex:Math.min(fe.config.options.length-1,fe.selectedIndex+1)}));return}else if(H.return){let fe=q.options[j.selectedIndex];fe&&(q.onSelect(fe.value),F({showing:!1,selectedIndex:0,config:null,commentText:"",isInCommentMode:!1}));return}else if(H.escape){q.onSelect("no_once"),F({showing:!1,selectedIndex:0,config:null,commentText:"",isInCommentMode:!1});return}return}if(de.showing&&de.options.length>0){if(H.upArrow){te(q=>{let fe=q.selectedIndex-1;for(;fe>=0&&q.options[fe].isDisabled;)fe--;return fe<0&&(fe=q.selectedIndex),{...q,selectedIndex:fe}});return}else if(H.downArrow){te(q=>{let fe=q.selectedIndex+1;for(;fe<q.options.length&&q.options[fe].isDisabled;)fe++;return fe>=q.options.length&&(fe=q.selectedIndex),{...q,selectedIndex:fe}});return}else if(H.return){let q=de.options[de.selectedIndex];q&&!q.isDisabled&&(de.onSelect&&de.onSelect(q),te({showing:!1,selectedIndex:0,options:[],onSelect:void 0}));return}else if(H.escape){te({showing:!1,selectedIndex:0,options:[],onSelect:void 0});return}return}if(!(h&&!(H.ctrl&&A==="c")&&!(H.ctrl&&A==="k")&&!(H.ctrl&&A==="r")&&!(H.ctrl&&A==="t")&&!H.escape)){if(H.upArrow){if(c.length>0){let q=Math.min(l+1,c.length-1);p(q),m(c[c.length-1-q])}}else if(H.downArrow){if(l>-1){let q=Math.max(l-1,-1);p(q),m(q===-1?"":c[c.length-1-q])}}else if(!H.return)if(H.ctrl&&A==="c")t(),Zt();else if(H.ctrl&&A==="k")o(),et.current=!1;else if(H.escape){let q=Date.now(),fe=ae.current;fe&&(fe.status==="running"||fe.status==="paused")?et.current&&q-Ht.current<1500?(o(),et.current=!1):(Ht.current=q,et.current=!0,R("\u26A0\uFE0F Press Escape again to cancel recipe | Ctrl+C to exit"),setTimeout(()=>{et.current=!1,R("Type your message | Ctrl+C to exit | Ctrl+K to cancel operation ")},1500)):o()}else H.ctrl&&A==="t"?re(q=>!q):H.ctrl&&A==="r"&&zt(q=>!q)}});let sn=lw((A,H,q)=>{let fe=Ot($r,{borderStyle:"round",paddingX:2,borderColor:q,flexDirection:"column",children:[Q(ne,{bold:!0,color:q,children:A}),Q(ne,{children:" "}),ow(H).split(`
79
- `).map((Gr,Wp)=>Q(ne,{children:Gr},Wp))]});Re("system",fe)},[Re]);return HQ(s,()=>({appendOutput:(A,H)=>Re(A,H),displayError:A=>sn("Error",A,"red"),displaySuccess:A=>sn("Success",A,"green"),displayInfo:A=>sn("Info",A,"cyan"),showLoading:A=>{v(A),g(!0),R(`${A} | Ctrl+K to cancel | Ctrl+C to exit`)},hideLoading:()=>{v(null),g(!1),R("Type your message | Ctrl+C to exit | Ctrl+K to cancel operation ")},incrementCalls:(A=1)=>{O(H=>H+A)},addTokens:(A,H=0)=>{tt(q=>q+A+H)},resetUsage:()=>{O(0),tt(0)},getHistory:()=>c,setHistory:A=>{u(A),n(A)},clearOutput:()=>{process.stdout.write("\x1B[2J\x1B[H"),a([{id:`msg-${Date.now()}-${Dt.current++}`,type:"system",text:_t()}])},updateStatus:A=>R(A),updateMetrics:A=>{I(H=>H?{...H,...A}:{startTime:A.startTime||Date.now(),inputTokens:A.inputTokens||0,outputTokens:A.outputTokens||0,provider:A.provider||"FlowDot",model:A.model||"unknown",actionText:A.actionText||"thinking"})},resetMetrics:()=>I(null),exitApp:()=>{Zt(),t()},showPermissionPrompt:A=>{let H=A.commentRequired===!0;F({showing:!0,selectedIndex:0,config:A,commentText:"",isInCommentMode:H})},hidePermissionPrompt:A=>{eZ(ie,A),F({showing:!1,selectedIndex:0,config:null,commentText:"",isInCommentMode:!1})},showModelSelector:(A,H)=>{te({showing:!0,selectedIndex:0,options:A,onSelect:H})},hideModelSelector:()=>{te({showing:!1,selectedIndex:0,options:[],onSelect:void 0})},updateTaskState:A=>{oe(A)},toggleTaskPanel:()=>{re(A=>!A)},getTaskPanelExpanded:()=>Y,updateRecipeState:A=>{Gt(A)},startRecipeExecution:(A,H,q)=>{Gt({recipeHash:A,recipeName:H,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()}),zt(!0)},endRecipeExecution:A=>{Gt(H=>H?{...H,status:A?"completed":"failed"}:null),A&&zt(!1)},toggleRecipePanel:()=>{zt(A=>!A)},getRecipePanelExpanded:()=>Mt,showAuditView:(A,H,q)=>{ft({showing:!0,executionState:A,recipeName:H,initialPrompt:q})},hideAuditView:()=>{ft({showing:!1,executionState:null,recipeName:""})},isAuditViewShowing:()=>Ze.showing})),Ze.showing&&Ze.executionState?Q(cw,{executionState:Ze.executionState,recipeName:Ze.recipeName,initialPrompt:Ze.initialPrompt,onQuit:()=>ft({showing:!1,executionState:null,recipeName:""})}):Ot($r,{flexDirection:"column",children:[Q($r,{flexGrow:1,flexDirection:"column",children:Q(YQ,{items:i,children:A=>Q(BO,{message:A,parseFormattedText:LO},A.id)})}),j.showing&&j.config&&Ot($r,{borderStyle:"round",borderColor:"yellow",paddingX:2,flexDirection:"column",marginBottom:1,children:[Q(ne,{color:"yellow",bold:!0,children:j.isInCommentMode?"\u{1F4DD} Your Response Required":"\u{1F510} Permission Required"}),Q(ne,{children:" "}),Q(ne,{children:j.config.prompt}),j.config.path&&Ot(ne,{color:"gray",children:["Path: ",j.config.path]}),Q(ne,{children:" "}),j.isInCommentMode?Ot(Wc,{children:[j.config.commentPlaceholder&&Q(ne,{color:"gray",dimColor:!0,children:j.config.commentPlaceholder}),Ot($r,{borderStyle:"single",borderColor:"cyan",paddingX:1,marginTop:1,flexDirection:"column",minHeight:3,children:[j.commentText.split(`
80
- `).map((A,H)=>Q(ne,{color:"white",children:A||" "},H)),Q(ne,{color:"cyan",children:"\u2588"})]}),Q(ne,{children:" "}),Q(ne,{color:"gray",children:"Enter to submit, Esc to cancel"})]}):Ot(Wc,{children:[j.config.options.map((A,H)=>Ot(ne,{color:H===j.selectedIndex?"cyan":"white",children:[H===j.selectedIndex?"\u276F ":" ",A.label]},A.value)),Q(ne,{children:" "}),Q(ne,{color:"gray",children:"Use \u2191/\u2193 arrows to select, Enter to confirm, Esc to deny"})]})]}),de.showing&&de.options.length>0&&Ot($r,{borderStyle:"round",borderColor:"cyan",paddingX:2,flexDirection:"column",marginBottom:1,children:[Q(ne,{color:"cyan",bold:!0,children:"\u{1F3AF} Select a Model"}),Q(ne,{color:"gray",children:"Use \u2191/\u2193 arrows to select, Enter to confirm, Esc to cancel"}),Q(ne,{children:" "}),(()=>{let A=de.options.filter(q=>q.type==="oauth"||q.type==="info"),H=de.options.filter(q=>q.type==="tier");return Ot(Wc,{children:[A.length>0&&Ot(Wc,{children:[Q(ne,{dimColor:!0,children:"OAuth Providers:"}),A.map(q=>{let Gr=de.options.indexOf(q)===de.selectedIndex;return Ot($r,{marginLeft:2,flexDirection:"column",children:[Ot(ne,{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&&Q($r,{marginLeft:4,children:Q(ne,{dimColor:!0,children:q.description})})]},q.id)}),Q(ne,{children:" "})]}),H.length>0&&Ot(Wc,{children:[Q(ne,{dimColor:!0,children:"FlowDot Tiers:"}),H.map(q=>{let Gr=de.options.indexOf(q)===de.selectedIndex;return Ot(ne,{color:Gr?"cyan":"white",bold:Gr,children:[" ",Gr?"\u276F ":" ",q.isActive?"\u25CF ":"\u25CB ",q.label,q.description&&` - ${q.description}`,q.isActive&&" (active)"]},q.id)})]})]})})()]}),Rt&&!j.showing&&Q(rw,{state:Rt,isExpanded:Mt,onToggleExpand:()=>zt(A=>!A),showKeyHint:!0}),Q(nd,{state:$e,isExpanded:Y,toggleHint:"ctrl+t"}),Ot($r,{flexDirection:"column",children:[Q(ne,{color:"cyan",children:"\u2500".repeat(Br)}),Ot($r,{children:[Q(ne,{color:"green",children:h&&w?Q(ZQ,{}):"> "}),Q(Cw,{value:f,onChange:m,onSubmit:Rn,focus:!j.showing&&!de.showing,isDisabled:h,placeholder:h?w||"Processing...":""})]}),Q(ne,{color:"cyan",children:"\u2500".repeat(Br)}),h&&P?Q(Nw,{startTime:P.startTime,inputTokens:P.inputTokens,outputTokens:P.outputTokens,provider:P.provider,model:P.model,actionText:P.actionText}):Ot($r,{children:[Q(ne,{color:"cyan",width:"70%",wrap:"truncate-end",children:T}),Ot(ne,{color:"yellow",width:"30%",wrap:"truncate-end",children:[U>0?`${U} calls`:"",U>0&&Ie>0?" | ":"",Ie>0?`\u2193 ${Oe(Ie)} tokens`:""]})]})]})]})});GO.displayName="InteractiveUI";var tZ=["Cogitating","Pondering","Musing","Ruminating","Deliberating","Contemplating","Mulling","Percolating"],zO=["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 Bi(e){return e[Math.floor(Math.random()*e.length)]}function uw(e){switch(e){case"thinking":return Bi(tZ);case"processing":return Bi(zO);case"evaluating":return Bi(rZ);case"recovery":return Bi(nZ);case"synthesis":return Bi(oZ);default:return Bi(zO)}}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=uw(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")?`${uw("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 HO(e){return e[Math.floor(Math.random()*e.length)]}function WO(){return HO(cZ)}function VO(){return HO(lZ)}function uZ(){let e=VO(),t=WO();return`${e} Tip: ${t}`}var pZ=["\xB7","\u2722","*","\u2736","\u273B","\u273D","\u273B","\u2736","*","\u2722"],KO=["#FFD700","#FFA500","#FF6347","#FF4500","#FF6347","#FFA500"];function JO(){return{interval:100,frames:pZ}}function dZ(e,t){return e==="star"?{spinner:JO(),text:t,color:"yellow"}:{spinner:"dots",text:t}}function fZ(e){return KO[e%KO.length]}import{useState as Vc}from"react";import{Box as Nt,Text as Je,useInput as mZ}from"ink";import{Fragment as yZ,jsx as bt,jsxs as Qe}from"react/jsx-runtime";var so={topLeft:"\u250C",topRight:"\u2510",bottomLeft:"\u2514",bottomRight:"\u2518",horizontal:"\u2500",vertical:"\u2502",teeDown:"\u252C",teeUp:"\u2534",teeRight:"\u251C",teeLeft:"\u2524"};function hZ({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:Ut(e.content.replace(/\n/g," "),70),u=e.metrics,l=u?`${u.tokensIn||0}\u2193 ${u.tokensOut||0}\u2191 ${Fr(u.durationMs||0)}`:"";return Qe(Nt,{flexDirection:"column",borderStyle:"single",borderColor:r?s:"gray",marginBottom:1,children:[Qe(Nt,{paddingX:1,justifyContent:"space-between",children:[Qe(Je,{children:[Qe(Je,{color:s,bold:!0,children:[r?"\u25B6 ":" ","Message ",t+1," (",i,")"]}),a&&Qe(Je,{color:"gray",children:[" \u2502 ",a]})]}),Qe(Je,{color:"gray",dimColor:!0,children:[l,!n&&" [+]"]})]}),bt(Nt,{paddingX:1,children:bt(Je,{wrap:"wrap",children:c})}),n&&e.toolCalls&&e.toolCalls.length>0&&Qe(Nt,{flexDirection:"column",paddingX:1,marginTop:1,children:[Qe(Je,{color:"gray",children:["Tool Calls (",e.toolCalls.length,"):"]}),e.toolCalls.map((p,f)=>bt(Nt,{paddingLeft:2,children:Qe(Je,{children:[bt(Je,{color:p.error?"red":"green",children:p.error?"\u2717":"\u2713"}),Qe(Je,{children:[" ",p.tool]}),Qe(Je,{color:"gray",children:[" ","(",Fr(p.durationMs||0),")"]})]})},f))]})]})}function gZ({chat:e,onExit:t,onAskQuestion:r,pendingQuestion:n,pendingAnswer:o,isProcessing:s=!1}){let[i,a]=Vc(0),[c,u]=Vc(new Set),[l,p]=Vc(!1),[f,m]=Vc(""),[h,g]=Vc(0),w=e.messages||[],v=6;mZ((I,j)=>{if(l){if(j.escape){p(!1),m("");return}if(j.return){f.trim()&&r&&(r(f.trim()),m(""),p(!1));return}if(j.backspace||j.delete){m(F=>F.slice(0,-1));return}I&&!j.ctrl&&!j.meta&&m(F=>F+I);return}if(I==="q"||j.escape){t?.();return}if(I==="a"||I==="?"){p(!0);return}if(j.return||I===" "){u(F=>{let ie=new Set(F);return ie.has(i)?ie.delete(i):ie.add(i),ie});return}if(I==="e"){u(new Set(w.map((F,ie)=>ie)));return}if(I==="c"){u(new Set);return}if(j.upArrow){a(F=>{let ie=Math.max(0,F-1);return ie<h&&g(ie),ie});return}if(j.downArrow){a(F=>{let ie=Math.min(w.length-1,F+1);return ie>=h+v&&g(ie-v+1),ie});return}});let T=w.slice(h,h+v),R=e.created?new Date(e.created).toLocaleString():"Unknown",P=e.id.substring(0,8);return Qe(Nt,{flexDirection:"column",borderStyle:"round",borderColor:"cyan",paddingX:1,children:[Qe(Nt,{flexDirection:"column",paddingX:1,children:[Qe(Je,{children:[bt(Je,{color:"cyan",bold:!0,children:"AUDITING: "}),bt(Je,{bold:!0,children:`"${Ut(e.title,50)}"`})]}),Qe(Je,{color:"gray",children:["Session ID: ",P,"... \u2502 Created: ",R," \u2502 Messages: ",w.length]})]}),bt(Nt,{children:Qe(Je,{color:"gray",children:[so.teeRight,so.horizontal.repeat(78),so.teeLeft]})}),Qe(Nt,{flexDirection:"column",paddingX:1,marginY:1,children:[h>0&&bt(Nt,{justifyContent:"center",children:Qe(Je,{color:"gray",children:["\u25B2 ",h," more messages above"]})}),T.map((I,j)=>{let F=h+j;return bt(hZ,{message:I,index:F,isSelected:F===i,isExpanded:c.has(F)},F)}),h+v<w.length&&bt(Nt,{justifyContent:"center",children:Qe(Je,{color:"gray",children:["\u25BC ",w.length-h-v," more messages below"]})})]}),(n||o)&&Qe(yZ,{children:[bt(Nt,{children:Qe(Je,{color:"gray",children:[so.teeRight,so.horizontal.repeat(78),so.teeLeft]})}),Qe(Nt,{flexDirection:"column",paddingX:1,marginY:1,children:[n&&bt(Nt,{children:Qe(Je,{color:"blue",children:["Q: ",n]})}),s&&bt(Nt,{children:bt(Je,{color:"gray",dimColor:!0,children:"Thinking..."})}),o&&bt(Nt,{marginTop:1,children:Qe(Je,{color:"green",children:["A: ",o]})})]})]}),bt(Nt,{children:Qe(Je,{color:"gray",children:[so.teeRight,so.horizontal.repeat(78),so.teeLeft]})}),bt(Nt,{paddingX:1,children:l?Qe(Nt,{flexDirection:"column",width:"100%",children:[bt(Je,{color:"cyan",children:"Ask about this session:"}),Qe(Nt,{children:[bt(Je,{color:"cyan",children:"> "}),bt(Je,{children:f}),bt(Je,{color:"cyan",children:"\u2588"})]}),bt(Je,{color:"gray",dimColor:!0,children:"Enter: Submit \u2502 Esc: Cancel"})]}):bt(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"})})]})}export{gZ as AuditSession,cw as AuditView,GO as InteractiveUI,rw as RecipePanel,Gp as RecipeStepRenderer,lM as TimerProvider,Qc as formatElapsedTime,nM as formatMetricsLine,Ps as formatTokens,jO as getDisplayName,uZ as getExitMessage,sw as getPersonalizedGreeting,VO as getRandomFarewell,WO as getRandomTip,dZ as getSpinnerOptions,fZ as getStarColor,JO as getStarSpinner,uw as getStatusWord,FO as getTimeGreeting,aZ as isCreativeStatusEnabled,iZ as transformStatusMessage,Ow as useCurrentTime,Do as useElapsedTime};
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")}
170
+
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.")}
174
+
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")}
182
+
183
+ ${Q.red("The agent is creating an EXECUTABLE file.")}
184
+ ${Q.red("This file type can be executed and may run arbitrary code.")}
185
+
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")}
190
+ `,warning:`
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")}
193
+
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};