@superglue/cli 1.1.104 → 1.1.105

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "superglue",
3
3
  "description": "Build, test, and manage superglue tools via the sg CLI. Use when working with superglue tools, systems, APIs, SDKs, or the sg command.",
4
- "version": "1.1.104",
4
+ "version": "1.1.105",
5
5
  "author": {
6
6
  "name": "superglue",
7
7
  "email": "hello@superglue.cloud"
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var jU=Object.create;var Id=Object.defineProperty;var CU=Object.getOwnPropertyDescriptor;var SU=Object.getOwnPropertyNames;var BU=Object.getPrototypeOf,QU=Object.prototype.hasOwnProperty;var Pe=(o,e)=>()=>(o&&(e=o(o=0)),e);var f=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports),mE=(o,e)=>{for(var t in e)Id(o,t,{get:e[t],enumerable:!0})},lE=(o,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of SU(e))!QU.call(o,i)&&i!==t&&Id(o,i,{get:()=>e[i],enumerable:!(a=CU(e,i))||a.enumerable});return o};var pe=(o,e,t)=>(t=o!=null?jU(BU(o)):{},lE(e||!o||!o.__esModule?Id(t,"default",{value:o,enumerable:!0}):t,o)),Sy=o=>lE(Id({},"__esModule",{value:!0}),o);var hE=f((tje,pE)=>{"use strict";var uE=9007199254740991,_U="[object Arguments]",DU="[object Function]",TU="[object GeneratorFunction]",RU=/^(?:0|[1-9]\d*)$/;function NU(o,e){for(var t=-1,a=Array(o);++t<o;)a[t]=e(t);return a}function OU(o,e){return function(t){return o(e(t))}}var jd=Object.prototype,By=jd.hasOwnProperty,dE=jd.toString,UU=jd.propertyIsEnumerable,MU=OU(Object.keys,Object);function LU(o,e){var t=GU(o)||HU(o)?NU(o.length,String):[],a=t.length,i=!!a;for(var r in o)(e||By.call(o,r))&&!(i&&(r=="length"||FU(r,a)))&&t.push(r);return t}function PU(o){if(!$U(o))return MU(o);var e=[];for(var t in Object(o))By.call(o,t)&&t!="constructor"&&e.push(t);return e}function FU(o,e){return e=e??uE,!!e&&(typeof o=="number"||RU.test(o))&&o>-1&&o%1==0&&o<e}function $U(o){var e=o&&o.constructor,t=typeof e=="function"&&e.prototype||jd;return o===t}function HU(o){return VU(o)&&By.call(o,"callee")&&(!UU.call(o,"callee")||dE.call(o)==_U)}var GU=Array.isArray;function gE(o){return o!=null&&JU(o.length)&&!YU(o)}function VU(o){return ZU(o)&&gE(o)}function YU(o){var e=WU(o)?dE.call(o):"";return e==DU||e==TU}function JU(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=uE}function WU(o){var e=typeof o;return!!o&&(e=="object"||e=="function")}function ZU(o){return!!o&&typeof o=="object"}function KU(o){return gE(o)?LU(o):PU(o)}pE.exports=KU});var $E=f((Wm,ac)=>{"use strict";var XU=200,qE="__lodash_hash_undefined__",eM=800,oM=16,EE=9007199254740991,IE="[object Arguments]",tM="[object Array]",aM="[object AsyncFunction]",iM="[object Boolean]",rM="[object Date]",nM="[object Error]",jE="[object Function]",sM="[object GeneratorFunction]",cM="[object Map]",mM="[object Number]",lM="[object Null]",CE="[object Object]",uM="[object Proxy]",dM="[object RegExp]",gM="[object Set]",pM="[object String]",hM="[object Undefined]",fM="[object WeakMap]",bM="[object ArrayBuffer]",yM="[object DataView]",kM="[object Float32Array]",AM="[object Float64Array]",vM="[object Int8Array]",wM="[object Int16Array]",xM="[object Int32Array]",zM="[object Uint8Array]",qM="[object Uint8ClampedArray]",EM="[object Uint16Array]",IM="[object Uint32Array]",jM=/[\\^$.*+?()[\]{}|]/g,CM=/^\[object .+?Constructor\]$/,SM=/^(?:0|[1-9]\d*)$/,Ve={};Ve[kM]=Ve[AM]=Ve[vM]=Ve[wM]=Ve[xM]=Ve[zM]=Ve[qM]=Ve[EM]=Ve[IM]=!0;Ve[IE]=Ve[tM]=Ve[bM]=Ve[iM]=Ve[yM]=Ve[rM]=Ve[nM]=Ve[jE]=Ve[cM]=Ve[mM]=Ve[CE]=Ve[dM]=Ve[gM]=Ve[pM]=Ve[fM]=!1;var SE=typeof global=="object"&&global&&global.Object===Object&&global,BM=typeof self=="object"&&self&&self.Object===Object&&self,Xm=SE||BM||Function("return this")(),BE=typeof Wm=="object"&&Wm&&!Wm.nodeType&&Wm,Zm=BE&&typeof ac=="object"&&ac&&!ac.nodeType&&ac,QE=Zm&&Zm.exports===BE,Qy=QE&&SE.process,fE=(function(){try{var o=Zm&&Zm.require&&Zm.require("util").types;return o||Qy&&Qy.binding&&Qy.binding("util")}catch{}})(),bE=fE&&fE.isTypedArray;function QM(o,e,t){switch(t.length){case 0:return o.call(e);case 1:return o.call(e,t[0]);case 2:return o.call(e,t[0],t[1]);case 3:return o.call(e,t[0],t[1],t[2])}return o.apply(e,t)}function _M(o,e){for(var t=-1,a=Array(o);++t<o;)a[t]=e(t);return a}function DM(o){return function(e){return o(e)}}function TM(o,e){return o?.[e]}function RM(o,e){return function(t){return o(e(t))}}var NM=Array.prototype,OM=Function.prototype,Bd=Object.prototype,_y=Xm["__core-js_shared__"],Qd=OM.toString,mr=Bd.hasOwnProperty,yE=(function(){var o=/[^.]+$/.exec(_y&&_y.keys&&_y.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),_E=Bd.toString,UM=Qd.call(Object),MM=RegExp("^"+Qd.call(mr).replace(jM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Cd=QE?Xm.Buffer:void 0,kE=Xm.Symbol,AE=Xm.Uint8Array,vE=Cd?Cd.allocUnsafe:void 0,DE=RM(Object.getPrototypeOf,Object),wE=Object.create,LM=Bd.propertyIsEnumerable,PM=NM.splice,Yn=kE?kE.toStringTag:void 0,Sd=(function(){try{var o=Uy(Object,"defineProperty");return o({},"",{}),o}catch{}})(),FM=Cd?Cd.isBuffer:void 0,xE=Math.max,$M=Date.now,TE=Uy(Xm,"Map"),Km=Uy(Object,"create"),HM=(function(){function o(){}return function(e){if(!Wn(e))return{};if(wE)return wE(e);o.prototype=e;var t=new o;return o.prototype=void 0,t}})();function Jn(o){var e=-1,t=o==null?0:o.length;for(this.clear();++e<t;){var a=o[e];this.set(a[0],a[1])}}function GM(){this.__data__=Km?Km(null):{},this.size=0}function VM(o){var e=this.has(o)&&delete this.__data__[o];return this.size-=e?1:0,e}function YM(o){var e=this.__data__;if(Km){var t=e[o];return t===qE?void 0:t}return mr.call(e,o)?e[o]:void 0}function JM(o){var e=this.__data__;return Km?e[o]!==void 0:mr.call(e,o)}function WM(o,e){var t=this.__data__;return this.size+=this.has(o)?0:1,t[o]=Km&&e===void 0?qE:e,this}Jn.prototype.clear=GM;Jn.prototype.delete=VM;Jn.prototype.get=YM;Jn.prototype.has=JM;Jn.prototype.set=WM;function lr(o){var e=-1,t=o==null?0:o.length;for(this.clear();++e<t;){var a=o[e];this.set(a[0],a[1])}}function ZM(){this.__data__=[],this.size=0}function KM(o){var e=this.__data__,t=_d(e,o);if(t<0)return!1;var a=e.length-1;return t==a?e.pop():PM.call(e,t,1),--this.size,!0}function XM(o){var e=this.__data__,t=_d(e,o);return t<0?void 0:e[t][1]}function eL(o){return _d(this.__data__,o)>-1}function oL(o,e){var t=this.__data__,a=_d(t,o);return a<0?(++this.size,t.push([o,e])):t[a][1]=e,this}lr.prototype.clear=ZM;lr.prototype.delete=KM;lr.prototype.get=XM;lr.prototype.has=eL;lr.prototype.set=oL;function ic(o){var e=-1,t=o==null?0:o.length;for(this.clear();++e<t;){var a=o[e];this.set(a[0],a[1])}}function tL(){this.size=0,this.__data__={hash:new Jn,map:new(TE||lr),string:new Jn}}function aL(o){var e=Td(this,o).delete(o);return this.size-=e?1:0,e}function iL(o){return Td(this,o).get(o)}function rL(o){return Td(this,o).has(o)}function nL(o,e){var t=Td(this,o),a=t.size;return t.set(o,e),this.size+=t.size==a?0:1,this}ic.prototype.clear=tL;ic.prototype.delete=aL;ic.prototype.get=iL;ic.prototype.has=rL;ic.prototype.set=nL;function rc(o){var e=this.__data__=new lr(o);this.size=e.size}function sL(){this.__data__=new lr,this.size=0}function cL(o){var e=this.__data__,t=e.delete(o);return this.size=e.size,t}function mL(o){return this.__data__.get(o)}function lL(o){return this.__data__.has(o)}function uL(o,e){var t=this.__data__;if(t instanceof lr){var a=t.__data__;if(!TE||a.length<XU-1)return a.push([o,e]),this.size=++t.size,this;t=this.__data__=new ic(a)}return t.set(o,e),this.size=t.size,this}rc.prototype.clear=sL;rc.prototype.delete=cL;rc.prototype.get=mL;rc.prototype.has=lL;rc.prototype.set=uL;function dL(o,e){var t=Ny(o),a=!t&&Ry(o),i=!t&&!a&&UE(o),r=!t&&!a&&!i&&LE(o),n=t||a||i||r,s=n?_M(o.length,String):[],c=s.length;for(var m in o)(e||mr.call(o,m))&&!(n&&(m=="length"||i&&(m=="offset"||m=="parent")||r&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||NE(m,c)))&&s.push(m);return s}function Dy(o,e,t){(t!==void 0&&!Rd(o[e],t)||t===void 0&&!(e in o))&&Oy(o,e,t)}function gL(o,e,t){var a=o[e];(!(mr.call(o,e)&&Rd(a,t))||t===void 0&&!(e in o))&&Oy(o,e,t)}function _d(o,e){for(var t=o.length;t--;)if(Rd(o[t][0],e))return t;return-1}function Oy(o,e,t){e=="__proto__"&&Sd?Sd(o,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):o[e]=t}var pL=IL();function Dd(o){return o==null?o===void 0?hM:lM:Yn&&Yn in Object(o)?jL(o):DL(o)}function zE(o){return el(o)&&Dd(o)==IE}function hL(o){if(!Wn(o)||QL(o))return!1;var e=Ly(o)?MM:CM;return e.test(OL(o))}function fL(o){return el(o)&&ME(o.length)&&!!Ve[Dd(o)]}function bL(o){if(!Wn(o))return _L(o);var e=OE(o),t=[];for(var a in o)a=="constructor"&&(e||!mr.call(o,a))||t.push(a);return t}function RE(o,e,t,a,i){o!==e&&pL(e,function(r,n){if(i||(i=new rc),Wn(r))yL(o,e,n,t,RE,a,i);else{var s=a?a(Ty(o,n),r,n+"",o,e,i):void 0;s===void 0&&(s=r),Dy(o,n,s)}},PE)}function yL(o,e,t,a,i,r,n){var s=Ty(o,t),c=Ty(e,t),m=n.get(c);if(m){Dy(o,t,m);return}var l=r?r(s,c,t+"",o,e,n):void 0,u=l===void 0;if(u){var d=Ny(c),g=!d&&UE(c),h=!d&&!g&&LE(c);l=c,d||g||h?Ny(s)?l=s:UL(s)?l=zL(s):g?(u=!1,l=vL(c,!0)):h?(u=!1,l=xL(c,!0)):l=[]:ML(c)||Ry(c)?(l=s,Ry(s)?l=LL(s):(!Wn(s)||Ly(s))&&(l=CL(c))):u=!1}u&&(n.set(c,l),i(l,c,a,r,n),n.delete(c)),Dy(o,t,l)}function kL(o,e){return RL(TL(o,e,FE),o+"")}var AL=Sd?function(o,e){return Sd(o,"toString",{configurable:!0,enumerable:!1,value:FL(e),writable:!0})}:FE;function vL(o,e){if(e)return o.slice();var t=o.length,a=vE?vE(t):new o.constructor(t);return o.copy(a),a}function wL(o){var e=new o.constructor(o.byteLength);return new AE(e).set(new AE(o)),e}function xL(o,e){var t=e?wL(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.length)}function zL(o,e){var t=-1,a=o.length;for(e||(e=Array(a));++t<a;)e[t]=o[t];return e}function qL(o,e,t,a){var i=!t;t||(t={});for(var r=-1,n=e.length;++r<n;){var s=e[r],c=a?a(t[s],o[s],s,t,o):void 0;c===void 0&&(c=o[s]),i?Oy(t,s,c):gL(t,s,c)}return t}function EL(o){return kL(function(e,t){var a=-1,i=t.length,r=i>1?t[i-1]:void 0,n=i>2?t[2]:void 0;for(r=o.length>3&&typeof r=="function"?(i--,r):void 0,n&&SL(t[0],t[1],n)&&(r=i<3?void 0:r,i=1),e=Object(e);++a<i;){var s=t[a];s&&o(e,s,a,r)}return e})}function IL(o){return function(e,t,a){for(var i=-1,r=Object(e),n=a(e),s=n.length;s--;){var c=n[o?s:++i];if(t(r[c],c,r)===!1)break}return e}}function Td(o,e){var t=o.__data__;return BL(e)?t[typeof e=="string"?"string":"hash"]:t.map}function Uy(o,e){var t=TM(o,e);return hL(t)?t:void 0}function jL(o){var e=mr.call(o,Yn),t=o[Yn];try{o[Yn]=void 0;var a=!0}catch{}var i=_E.call(o);return a&&(e?o[Yn]=t:delete o[Yn]),i}function CL(o){return typeof o.constructor=="function"&&!OE(o)?HM(DE(o)):{}}function NE(o,e){var t=typeof o;return e=e??EE,!!e&&(t=="number"||t!="symbol"&&SM.test(o))&&o>-1&&o%1==0&&o<e}function SL(o,e,t){if(!Wn(t))return!1;var a=typeof e;return(a=="number"?My(t)&&NE(e,t.length):a=="string"&&e in t)?Rd(t[e],o):!1}function BL(o){var e=typeof o;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?o!=="__proto__":o===null}function QL(o){return!!yE&&yE in o}function OE(o){var e=o&&o.constructor,t=typeof e=="function"&&e.prototype||Bd;return o===t}function _L(o){var e=[];if(o!=null)for(var t in Object(o))e.push(t);return e}function DL(o){return _E.call(o)}function TL(o,e,t){return e=xE(e===void 0?o.length-1:e,0),function(){for(var a=arguments,i=-1,r=xE(a.length-e,0),n=Array(r);++i<r;)n[i]=a[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=a[i];return s[e]=t(n),QM(o,this,s)}}function Ty(o,e){if(!(e==="constructor"&&typeof o[e]=="function")&&e!="__proto__")return o[e]}var RL=NL(AL);function NL(o){var e=0,t=0;return function(){var a=$M(),i=oM-(a-t);if(t=a,i>0){if(++e>=eM)return arguments[0]}else e=0;return o.apply(void 0,arguments)}}function OL(o){if(o!=null){try{return Qd.call(o)}catch{}try{return o+""}catch{}}return""}function Rd(o,e){return o===e||o!==o&&e!==e}var Ry=zE((function(){return arguments})())?zE:function(o){return el(o)&&mr.call(o,"callee")&&!LM.call(o,"callee")},Ny=Array.isArray;function My(o){return o!=null&&ME(o.length)&&!Ly(o)}function UL(o){return el(o)&&My(o)}var UE=FM||$L;function Ly(o){if(!Wn(o))return!1;var e=Dd(o);return e==jE||e==sM||e==aM||e==uM}function ME(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=EE}function Wn(o){var e=typeof o;return o!=null&&(e=="object"||e=="function")}function el(o){return o!=null&&typeof o=="object"}function ML(o){if(!el(o)||Dd(o)!=CE)return!1;var e=DE(o);if(e===null)return!0;var t=mr.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Qd.call(t)==UM}var LE=bE?DM(bE):fL;function LL(o){return qL(o,PE(o))}function PE(o){return My(o)?dL(o,!0):bL(o)}var PL=EL(function(o,e,t){RE(o,e,t)});function FL(o){return function(){return o}}function FE(o){return o}function $L(){return!1}ac.exports=PL});var i1=f((aje,a1)=>{"use strict";var YE=200,$y="__lodash_hash_undefined__",HL=1/0,GL=9007199254740991,VL="[object Function]",YL="[object GeneratorFunction]",JL=/[\\^$.*+?()[\]{}|]/g,WL=/^\[object .+?Constructor\]$/,ZL=typeof global=="object"&&global&&global.Object===Object&&global,KL=typeof self=="object"&&self&&self.Object===Object&&self,Hy=ZL||KL||Function("return this")();function XL(o,e,t){switch(t.length){case 0:return o.call(e);case 1:return o.call(e,t[0]);case 2:return o.call(e,t[0],t[1]);case 3:return o.call(e,t[0],t[1],t[2])}return o.apply(e,t)}function eP(o,e){for(var t=-1,a=o?o.length:0,i=0,r=[];++t<a;){var n=o[t];e(n,t,o)&&(r[i++]=n)}return r}function JE(o,e){var t=o?o.length:0;return!!t&&iP(o,e,0)>-1}function WE(o,e,t){for(var a=-1,i=o?o.length:0;++a<i;)if(t(e,o[a]))return!0;return!1}function oP(o,e){for(var t=-1,a=o?o.length:0,i=Array(a);++t<a;)i[t]=e(o[t],t,o);return i}function tP(o,e){for(var t=-1,a=e.length,i=o.length;++t<a;)o[i+t]=e[t];return o}function aP(o,e,t,a){for(var i=o.length,r=t+(a?1:-1);a?r--:++r<i;)if(e(o[r],r,o))return r;return-1}function iP(o,e,t){if(e!==e)return aP(o,rP,t);for(var a=t-1,i=o.length;++a<i;)if(o[a]===e)return a;return-1}function rP(o){return o!==o}function nP(o){return function(e){return o(e)}}function ZE(o,e){return o.has(e)}function sP(o,e){return o?.[e]}function cP(o){var e=!1;if(o!=null&&typeof o.toString!="function")try{e=!!(o+"")}catch{}return e}function KE(o){var e=-1,t=Array(o.size);return o.forEach(function(a){t[++e]=a}),t}var mP=Array.prototype,lP=Function.prototype,XE=Object.prototype,Py=Hy["__core-js_shared__"],HE=(function(){var o=/[^.]+$/.exec(Py&&Py.keys&&Py.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),e1=lP.toString,Gy=XE.hasOwnProperty,uP=XE.toString,dP=RegExp("^"+e1.call(Gy).replace(JL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gP=mP.splice,GE=Math.max,pP=Vy(Hy,"Map"),Fy=Vy(Hy,"Set"),ol=Vy(Object,"create");function Zn(o){var e=-1,t=o?o.length:0;for(this.clear();++e<t;){var a=o[e];this.set(a[0],a[1])}}function hP(){this.__data__=ol?ol(null):{}}function fP(o){return this.has(o)&&delete this.__data__[o]}function bP(o){var e=this.__data__;if(ol){var t=e[o];return t===$y?void 0:t}return Gy.call(e,o)?e[o]:void 0}function yP(o){var e=this.__data__;return ol?e[o]!==void 0:Gy.call(e,o)}function kP(o,e){var t=this.__data__;return t[o]=ol&&e===void 0?$y:e,this}Zn.prototype.clear=hP;Zn.prototype.delete=fP;Zn.prototype.get=bP;Zn.prototype.has=yP;Zn.prototype.set=kP;function nc(o){var e=-1,t=o?o.length:0;for(this.clear();++e<t;){var a=o[e];this.set(a[0],a[1])}}function AP(){this.__data__=[]}function vP(o){var e=this.__data__,t=Nd(e,o);if(t<0)return!1;var a=e.length-1;return t==a?e.pop():gP.call(e,t,1),!0}function wP(o){var e=this.__data__,t=Nd(e,o);return t<0?void 0:e[t][1]}function xP(o){return Nd(this.__data__,o)>-1}function zP(o,e){var t=this.__data__,a=Nd(t,o);return a<0?t.push([o,e]):t[a][1]=e,this}nc.prototype.clear=AP;nc.prototype.delete=vP;nc.prototype.get=wP;nc.prototype.has=xP;nc.prototype.set=zP;function sc(o){var e=-1,t=o?o.length:0;for(this.clear();++e<t;){var a=o[e];this.set(a[0],a[1])}}function qP(){this.__data__={hash:new Zn,map:new(pP||nc),string:new Zn}}function EP(o){return Od(this,o).delete(o)}function IP(o){return Od(this,o).get(o)}function jP(o){return Od(this,o).has(o)}function CP(o,e){return Od(this,o).set(o,e),this}sc.prototype.clear=qP;sc.prototype.delete=EP;sc.prototype.get=IP;sc.prototype.has=jP;sc.prototype.set=CP;function tl(o){var e=-1,t=o?o.length:0;for(this.__data__=new sc;++e<t;)this.add(o[e])}function SP(o){return this.__data__.set(o,$y),this}function BP(o){return this.__data__.has(o)}tl.prototype.add=tl.prototype.push=SP;tl.prototype.has=BP;function Nd(o,e){for(var t=o.length;t--;)if(LP(o[t][0],e))return t;return-1}function VE(o,e,t,a){var i=-1,r=JE,n=!0,s=o.length,c=[],m=e.length;if(!s)return c;t&&(e=oP(e,nP(t))),a?(r=WE,n=!1):e.length>=YE&&(r=ZE,n=!1,e=new tl(e));e:for(;++i<s;){var l=o[i],u=t?t(l):l;if(l=a||l!==0?l:0,n&&u===u){for(var d=m;d--;)if(e[d]===u)continue e;c.push(l)}else r(e,u,a)||c.push(l)}return c}function QP(o){if(!t1(o)||OP(o))return!1;var e=o1(o)||cP(o)?dP:WL;return e.test(UP(o))}function _P(o,e){return e=GE(e===void 0?o.length-1:e,0),function(){for(var t=arguments,a=-1,i=GE(t.length-e,0),r=Array(i);++a<i;)r[a]=t[e+a];a=-1;for(var n=Array(e+1);++a<e;)n[a]=t[a];return n[e]=r,XL(o,this,n)}}function DP(o,e,t){var a=-1,i=JE,r=o.length,n=!0,s=[],c=s;if(t)n=!1,i=WE;else if(r>=YE){var m=e?null:RP(o);if(m)return KE(m);n=!1,i=ZE,c=new tl}else c=e?[]:s;e:for(;++a<r;){var l=o[a],u=e?e(l):l;if(l=t||l!==0?l:0,n&&u===u){for(var d=c.length;d--;)if(c[d]===u)continue e;e&&c.push(u),s.push(l)}else i(c,u,t)||(c!==s&&c.push(u),s.push(l))}return s}function TP(o,e,t){for(var a=-1,i=o.length;++a<i;)var r=r?tP(VE(r,o[a],e,t),VE(o[a],r,e,t)):o[a];return r&&r.length?DP(r,e,t):[]}var RP=Fy&&1/KE(new Fy([,-0]))[1]==HL?function(o){return new Fy(o)}:GP;function Od(o,e){var t=o.__data__;return NP(e)?t[typeof e=="string"?"string":"hash"]:t.map}function Vy(o,e){var t=sP(o,e);return QP(t)?t:void 0}function NP(o){var e=typeof o;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?o!=="__proto__":o===null}function OP(o){return!!HE&&HE in o}function UP(o){if(o!=null){try{return e1.call(o)}catch{}try{return o+""}catch{}}return""}var MP=_P(function(o){return TP(eP(o,FP))});function LP(o,e){return o===e||o!==o&&e!==e}function PP(o){return o!=null&&$P(o.length)&&!o1(o)}function FP(o){return HP(o)&&PP(o)}function o1(o){var e=t1(o)?uP.call(o):"";return e==VL||e==YL}function $P(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=GL}function t1(o){var e=typeof o;return!!o&&(e=="object"||e=="function")}function HP(o){return!!o&&typeof o=="object"}function GP(){}a1.exports=MP});var Md=f(ur=>{"use strict";var Zy=ur&&ur.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(ur,"__esModule",{value:!0});ur.toJsonSchema=KP;ur.convertRequiredToArray=al;ur.generateDefaultFromSchema=il;ur.parseJsonSafe=Ud;ur.normalizeToolSchemas=XP;var Yy=Zy(hE()),Jy=Zy($E()),VP=Zy(i1());function cc(o,e){if(o===e)return!0;if(o===null||e===null||typeof o!="object"||typeof e!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t=Object.keys(o),a=Object.keys(e);if(t.length!==a.length)return!1;let i=e;return t.every(r=>r in i&&cc(o[r],i[r]))}var YP={required:!1,requiredDepth:Number.POSITIVE_INFINITY,postProcessFnc:null,strings:{preProcessFnc:null},arrays:{mode:"all"},objects:{preProcessFnc:null,postProcessFnc:null,additionalProperties:!0}},JP={string:function(e){return typeof e=="string"},number:function(e){return typeof e=="number"&&isFinite(e)},integer:function(e){return typeof e=="number"&&e%1===0},boolean:function(e){return typeof e=="boolean"},array:function(e){return e instanceof Array},null:function(e){return e===null},date:function(e){return e instanceof Date},any:function(e){return!0},object:function(e){return e&&typeof e=="object"&&!(e instanceof Array)&&!(e instanceof Date)}},mc={typeNames:["integer","number","string","array","object","boolean","null","date"],getType(o){return mc.typeNames.find(e=>JP[e](o))},mergeSchemaObjs(o,e){if(!o||!e)return null;let t=(0,Yy.default)(o),a=(0,Yy.default)(e);if(!cc(t,a)){if(o.type==="array"&&e.type==="array"&&cc((0,VP.default)(t,a),["items"])){let r=t.length>a.length?e:o,n=t.length>a.length?o:e;if((0,Yy.default)(r).reduce((c,m)=>cc(r[m],n[m])&&c,!0))return r}if(o.type!=="object"||e.type!=="object")return null}let i={};for(let r=0,{length:n}=t;r<n;r++){let s=t[r];if(mc.getType(o[s])==="object"){let c=mc.mergeSchemaObjs(o[s],e[s]);if(c)i[s]=c;else{if(o.type==="object"||e.type==="object")return{type:"object"};if(s!=="items"||o.type!=="array"||e.type!=="array")return null}}else if(s==="type")if(o[s]!==e[s])if(o[s]==="integer"&&e[s]==="number"||o[s]==="number"&&e[s]==="integer")i[s]="number";else return null;else i[s]=o[s];else{if(!cc(o[s],e[s]))return null;i[s]=o[s]}}return i}};function WP(o){let e;for(let t=0,{length:a}=o;t<a;t++){let i=o[t];if(t>0&&(i==="integer"&&e==="number"?i="number":i==="number"&&e==="integer"&&(e="number"),e!==i))return null;e=i}return e}function ZP(o){return WP(o.map(e=>mc.getType(e)))}var Wy=class{constructor(e){this.options=(0,Jy.default)({},YP,e),this.depth=0,this.getObjectSchemaDefault=this.getObjectSchemaDefault.bind(this),this.getStringSchemaDefault=this.getStringSchemaDefault.bind(this),this.objectPostProcessDefault=this.objectPostProcessDefault.bind(this),this.commmonPostProcessDefault=this.commmonPostProcessDefault.bind(this),this.objectPostProcessDefault=this.objectPostProcessDefault.bind(this)}getCommonArrayItemSchema(e){let t=e.map(a=>{this.depth++;let i=this.getSchema(a);return this.depth--,i});return t.reduce((a,i)=>mc.mergeSchemaObjs(a,i),t.pop())}getObjectSchemaDefault(e){let t={type:"object"},a=Object.keys(e);return a.length>0&&(t.properties=a.reduce((i,r)=>(this.depth++,i[r]=this.getSchema(e[r]),this.depth--,i),{})),t}getObjectSchema(e){return this.options.objects.preProcessFnc?this.options.objects.preProcessFnc(e,this.getObjectSchemaDefault):this.getObjectSchemaDefault(e)}getArraySchemaMerging(e){let t={type:"array"},a=ZP(e);if(a)if(t.items={type:a},a!=="integer"&&a!=="number"){let i=this.getCommonArrayItemSchema(e);i&&(t.items=i)}else this.options.required&&(t.items.required=!0);return t}getArraySchemaNoMerging(e){let t={type:"array"};return e.length>0&&(this.depth++,t.items=this.getSchema(e[0]),this.depth--),t}getArraySchemaTuple(e){let t={type:"array"};return e.length>0&&(t.items=e.map(a=>{this.depth++;let i=this.getSchema(a);return this.depth--,i})),t}getArraySchemaUniform(e){let t=this.getArraySchemaNoMerging(e);if(e.length>1)for(let a=1;a<e.length;a++){this.depth++;let i=this.getSchema(e[a]);if(this.depth--,!cc(t.items,i))throw new Error("Invalid schema, incompatible array items")}return t}getArraySchema(e){if(e.length===0)return{type:"array"};switch(this.options.arrays.mode){case"all":return this.getArraySchemaMerging(e);case"first":return this.getArraySchemaNoMerging(e);case"uniform":return this.getArraySchemaUniform(e);case"tuple":return this.getArraySchemaTuple(e);default:throw new Error(`Unknown array mode option '${this.options.arrays.mode}'`)}}getStringSchemaDefault(e){return{type:"string"}}getStringSchema(e){return this.options.strings.preProcessFnc?this.options.strings.preProcessFnc(e,this.getStringSchemaDefault):this.getStringSchemaDefault(e)}commmonPostProcessDefault(e,t,a){return this.options.required&&this.depth<=this.options.requiredDepth?(0,Jy.default)({},t,{required:!0}):t}objectPostProcessDefault(e,t){return this.options.objects.additionalProperties===!1&&Object.getOwnPropertyNames(t).length>0?(0,Jy.default)({},e,{additionalProperties:!1}):e}getSchema(e){let t=mc.getType(e);t||(t="null");let a;switch(t){case"object":a=this.getObjectSchema(e);break;case"array":a=this.getArraySchema(e);break;case"string":a=this.getStringSchema(e);break;default:a={type:t}}return this.options.postProcessFnc?a=this.options.postProcessFnc(t,a,e,this.commmonPostProcessDefault):a=this.commmonPostProcessDefault(t,a,e),t==="object"&&(this.options.objects.postProcessFnc?a=this.options.objects.postProcessFnc(a,e,this.objectPostProcessDefault):a=this.objectPostProcessDefault(a,e)),a}};function KP(o,e){return new Wy(e).getSchema(o)}function al(o){if(!o||typeof o!="object")return o;if(Array.isArray(o))return o.map(t=>al(t));let e={...o};if(delete e.required,e.properties&&typeof e.properties=="object"){let t=[],a={};for(let[i,r]of Object.entries(e.properties)){let n=r;if(n&&typeof n=="object"&&n.required===!0){t.push(i);let{required:s,...c}=n;a[i]=al(c)}else a[i]=al(n)}e.properties=a,t.length>0&&(e.required=t)}return e.items&&(e.items=al(e.items)),e}function il(o){if(!o||typeof o!="object")return null;if(o.const!==void 0)return o.const;if(o.enum&&Array.isArray(o.enum)&&o.enum.length>0)return o.enum[0];if(o.default!==void 0)return o.default;if(o.oneOf&&Array.isArray(o.oneOf)&&o.oneOf.length>0)return il(o.oneOf[0]);if(o.anyOf&&Array.isArray(o.anyOf)&&o.anyOf.length>0)return il(o.anyOf[0]);switch(Array.isArray(o.type)?o.type[0]:o.type){case"string":case"number":case"integer":case"boolean":return null;case"null":return null;case"array":return o.items?[]:[];case"object":let t={};if(o.properties&&typeof o.properties=="object"){let a=o.required||[];for(let[i,r]of Object.entries(o.properties))t[i]=il(r)}return t;default:if(o.properties&&typeof o.properties=="object"){let a={};for(let[i,r]of Object.entries(o.properties))a[i]=il(r);return a}return null}}function Ud(o){if(typeof o!="string")return o;try{return JSON.parse(o)}catch{return o}}function XP(o){let e={...o};return e.inputSchema&&(e.inputSchema=Ud(e.inputSchema)),e.outputSchema&&(e.outputSchema=Ud(e.outputSchema)),e.responseSchema&&(e.responseSchema=Ud(e.responseSchema)),e}});var Ht=f(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.PLAYBOOK_LIMITS=N.MCP_SERVER_AUTH_MODES=N.OAUTH_POPUP_CLOSED_MESSAGE=N.OAUTH_CONTINUATION_REASON_MAX_CHARS=N.AGENT_REQUEST_BUSY_STATUSES=N.AGENT_SESSION_RESOURCE_KINDS=N.AGENT_MESSAGE_SCHEMA_VERSION=N.AGENT_APPROVAL_MODES=N.ConfirmationAction=N.LOADABLE_MARKDOWN_NAMES=N.SKILL_REFERENCE_NAMES=N.SKILL_BODY_NAMES=N.AGENT_CHECKLIST_MAX_LABEL_CHARS=N.AGENT_CHECKLIST_MAX_ITEMS=N.AGENT_CHECKLIST_MIN_ITEMS=N.DYNAMIC_AGENT_TOOLS=N.AGENT_TOOLS=N.AGENT_NATIVE_TOOLS=N.PLAYBOOK_PLAYGROUND_DRAFT_ID=N.PLAYGROUND_TOOL_DRAFT_ID=N.AgentType=N.FileStatus=N.MAX_BULK_RESOURCE_SHARE_OPERATIONS=N.MAX_BULK_MUTATION_IDS=N.RunExecutionKind=N.RequestSource=N.RunStatus=N.CredentialMode=N.UpsertMode=N.LogLevel=N.PaginationType=N.DecompressionMethod=N.AuthType=N.FileType=N.CacheMode=N.HttpMethod=N.SupportedFileType=N.RUN_COMMAND_EFFECT_KINDS=void 0;N.isRequestConfig=eF;N.isTransformConfig=oF;N.RUN_COMMAND_EFFECT_KINDS=["tool","tool_state","system","project","schedule","mcp_server","role","playbook","artifact","share"];var r1;(function(o){o.JSON="JSON",o.CSV="CSV",o.XML="XML",o.HTML="HTML",o.YAML="YAML",o.EXCEL="EXCEL",o.PDF="PDF",o.DOCX="DOCX",o.PPTX="PPTX",o.ZIP="ZIP",o.GZIP="GZIP",o.BINARY="BINARY",o.RAW="RAW",o.AUTO="AUTO"})(r1||(N.SupportedFileType=r1={}));var n1;(function(o){o.GET="GET",o.POST="POST",o.PUT="PUT",o.DELETE="DELETE",o.PATCH="PATCH",o.HEAD="HEAD",o.OPTIONS="OPTIONS"})(n1||(N.HttpMethod=n1={}));var s1;(function(o){o.ENABLED="ENABLED",o.READONLY="READONLY",o.WRITEONLY="WRITEONLY",o.DISABLED="DISABLED"})(s1||(N.CacheMode=s1={}));var c1;(function(o){o.CSV="CSV",o.JSON="JSON",o.XML="XML",o.YAML="YAML",o.EXCEL="EXCEL",o.HTML="HTML",o.PDF="PDF",o.DOCX="DOCX",o.PPTX="PPTX",o.ZIP="ZIP",o.BINARY="BINARY",o.RAW="RAW",o.AUTO="AUTO"})(c1||(N.FileType=c1={}));var m1;(function(o){o.NONE="NONE",o.OAUTH2="OAUTH2",o.HEADER="HEADER",o.QUERY_PARAM="QUERY_PARAM"})(m1||(N.AuthType=m1={}));var l1;(function(o){o.GZIP="GZIP",o.DEFLATE="DEFLATE",o.NONE="NONE",o.AUTO="AUTO",o.ZIP="ZIP"})(l1||(N.DecompressionMethod=l1={}));var u1;(function(o){o.OFFSET_BASED="OFFSET_BASED",o.PAGE_BASED="PAGE_BASED",o.CURSOR_BASED="CURSOR_BASED",o.DISABLED="DISABLED"})(u1||(N.PaginationType=u1={}));var d1;(function(o){o.DEBUG="DEBUG",o.INFO="INFO",o.WARN="WARN",o.ERROR="ERROR"})(d1||(N.LogLevel=d1={}));var g1;(function(o){o.CREATE="CREATE",o.UPDATE="UPDATE",o.UPSERT="UPSERT"})(g1||(N.UpsertMode=g1={}));var p1;(function(o){o.MERGE="MERGE",o.REPLACE="REPLACE"})(p1||(N.CredentialMode=p1={}));var h1;(function(o){o.RUNNING="RUNNING",o.SUCCESS="SUCCESS",o.FAILED="FAILED",o.ABORTED="ABORTED"})(h1||(N.RunStatus=h1={}));var f1;(function(o){o.API="api",o.FRONTEND="frontend",o.AGENT="agent",o.SCHEDULER="scheduler",o.MCP="mcp",o.TOOL_CHAIN="tool-chain",o.WEBHOOK="webhook",o.CLI="cli"})(f1||(N.RequestSource=f1={}));var b1;(function(o){o.FULL="full",o.DRAFT="draft",o.SINGLE_STEP="single-step"})(b1||(N.RunExecutionKind=b1={}));N.MAX_BULK_MUTATION_IDS=100;N.MAX_BULK_RESOURCE_SHARE_OPERATIONS=1e3;function eF(o){return!o||typeof o!="object"?!1:o.type==="request"||!("type"in o)||o.type===void 0}function oF(o){return o?.type==="transform"}var y1;(function(o){o.PENDING="PENDING",o.UPLOADING="UPLOADING",o.PROCESSING="PROCESSING",o.COMPLETED="COMPLETED",o.FAILED="FAILED"})(y1||(N.FileStatus=y1={}));var Jr;(function(o){o.MAIN="main",o.PLAYGROUND="playground",o.SYSTEM_PLAYGROUND="system_playground",o.PLAYBOOK_PLAYGROUND="playbook_playground",o.ARTIFACT_PLAYGROUND="artifact_playground",o.ACCESS_RULES="access_rules"})(Jr||(N.AgentType=Jr={}));N.PLAYGROUND_TOOL_DRAFT_ID="@playground-draft";N.PLAYBOOK_PLAYGROUND_DRAFT_ID="@playground-draft";N.AGENT_NATIVE_TOOLS=["run_command","load_skill","create_artifact","run_tool","use_checklist","set_credentials","authenticate_oauth"];N.AGENT_TOOLS={[Jr.MAIN]:[...N.AGENT_NATIVE_TOOLS],[Jr.PLAYGROUND]:[...N.AGENT_NATIVE_TOOLS],[Jr.SYSTEM_PLAYGROUND]:[...N.AGENT_NATIVE_TOOLS],[Jr.PLAYBOOK_PLAYGROUND]:[...N.AGENT_NATIVE_TOOLS],[Jr.ARTIFACT_PLAYGROUND]:[...N.AGENT_NATIVE_TOOLS],[Jr.ACCESS_RULES]:[...N.AGENT_NATIVE_TOOLS]};N.DYNAMIC_AGENT_TOOLS=["web_search"];N.AGENT_CHECKLIST_MIN_ITEMS=4;N.AGENT_CHECKLIST_MAX_ITEMS=15;N.AGENT_CHECKLIST_MAX_LABEL_CHARS=120;N.SKILL_BODY_NAMES=["superglue-info","tool-building","tool-editing","system-setup","access-management","tool-deployment","notifications","artifacts","playbooks","projects","superglue-brain","email","workspace-apps","meetings"];N.SKILL_REFERENCE_NAMES=["http","graphql","postgres","mssql","odbc","redis","mongodb","sftp-smb","tool-files","tunnel-handling"];N.LOADABLE_MARKDOWN_NAMES=[...N.SKILL_BODY_NAMES,...N.SKILL_REFERENCE_NAMES];var k1;(function(o){o.CONFIRMED="confirmed",o.DECLINED="declined",o.OAUTH_SUCCESS="oauth_success",o.OAUTH_FAILURE="oauth_failure"})(k1||(N.ConfirmationAction=k1={}));N.AGENT_APPROVAL_MODES=["ask","act"];N.AGENT_MESSAGE_SCHEMA_VERSION=1;N.AGENT_SESSION_RESOURCE_KINDS=["tool","system","playbook","artifact"];N.AGENT_REQUEST_BUSY_STATUSES=["queued","claimed","running","cancelling"];N.OAUTH_CONTINUATION_REASON_MAX_CHARS=500;N.OAUTH_POPUP_CLOSED_MESSAGE="OAuth authentication did not complete.";N.MCP_SERVER_AUTH_MODES=["oauth","creator_api_key"];N.PLAYBOOK_LIMITS={name:120,whenToRun:500,inputs:25e3,instructions:1e5,completionCriteria:25e3,systemRefs:10,toolRefs:25,credentialRefs:10,fileRefs:15,compiledRender:512e3}});var tF,v1,A1,aF,iF,rF,nF,w1=Pe(()=>{"use strict";tF=o=>{let e=A1(o,0);if(e===void 0||!iF(o[e]))return;let t=A1(o,e+1);if(t!==void 0)return rF(o,e,t)},v1=tF,A1=(o,e)=>{for(let t=e;t<o.length;t+=1){let a=o[t];if(!aF(a))return t}},aF=o=>o===" "||o===" "||o===`
2
+ "use strict";var jU=Object.create;var Id=Object.defineProperty;var CU=Object.getOwnPropertyDescriptor;var SU=Object.getOwnPropertyNames;var BU=Object.getPrototypeOf,QU=Object.prototype.hasOwnProperty;var Pe=(o,e)=>()=>(o&&(e=o(o=0)),e);var f=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports),mE=(o,e)=>{for(var t in e)Id(o,t,{get:e[t],enumerable:!0})},lE=(o,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of SU(e))!QU.call(o,i)&&i!==t&&Id(o,i,{get:()=>e[i],enumerable:!(a=CU(e,i))||a.enumerable});return o};var pe=(o,e,t)=>(t=o!=null?jU(BU(o)):{},lE(e||!o||!o.__esModule?Id(t,"default",{value:o,enumerable:!0}):t,o)),Sy=o=>lE(Id({},"__esModule",{value:!0}),o);var hE=f((tje,pE)=>{"use strict";var uE=9007199254740991,_U="[object Arguments]",DU="[object Function]",TU="[object GeneratorFunction]",RU=/^(?:0|[1-9]\d*)$/;function NU(o,e){for(var t=-1,a=Array(o);++t<o;)a[t]=e(t);return a}function OU(o,e){return function(t){return o(e(t))}}var jd=Object.prototype,By=jd.hasOwnProperty,dE=jd.toString,UU=jd.propertyIsEnumerable,MU=OU(Object.keys,Object);function LU(o,e){var t=GU(o)||HU(o)?NU(o.length,String):[],a=t.length,i=!!a;for(var r in o)(e||By.call(o,r))&&!(i&&(r=="length"||FU(r,a)))&&t.push(r);return t}function PU(o){if(!$U(o))return MU(o);var e=[];for(var t in Object(o))By.call(o,t)&&t!="constructor"&&e.push(t);return e}function FU(o,e){return e=e??uE,!!e&&(typeof o=="number"||RU.test(o))&&o>-1&&o%1==0&&o<e}function $U(o){var e=o&&o.constructor,t=typeof e=="function"&&e.prototype||jd;return o===t}function HU(o){return VU(o)&&By.call(o,"callee")&&(!UU.call(o,"callee")||dE.call(o)==_U)}var GU=Array.isArray;function gE(o){return o!=null&&JU(o.length)&&!YU(o)}function VU(o){return ZU(o)&&gE(o)}function YU(o){var e=WU(o)?dE.call(o):"";return e==DU||e==TU}function JU(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=uE}function WU(o){var e=typeof o;return!!o&&(e=="object"||e=="function")}function ZU(o){return!!o&&typeof o=="object"}function KU(o){return gE(o)?LU(o):PU(o)}pE.exports=KU});var $E=f((Wm,ac)=>{"use strict";var XU=200,qE="__lodash_hash_undefined__",eM=800,oM=16,EE=9007199254740991,IE="[object Arguments]",tM="[object Array]",aM="[object AsyncFunction]",iM="[object Boolean]",rM="[object Date]",nM="[object Error]",jE="[object Function]",sM="[object GeneratorFunction]",cM="[object Map]",mM="[object Number]",lM="[object Null]",CE="[object Object]",uM="[object Proxy]",dM="[object RegExp]",gM="[object Set]",pM="[object String]",hM="[object Undefined]",fM="[object WeakMap]",bM="[object ArrayBuffer]",yM="[object DataView]",kM="[object Float32Array]",AM="[object Float64Array]",vM="[object Int8Array]",wM="[object Int16Array]",xM="[object Int32Array]",zM="[object Uint8Array]",qM="[object Uint8ClampedArray]",EM="[object Uint16Array]",IM="[object Uint32Array]",jM=/[\\^$.*+?()[\]{}|]/g,CM=/^\[object .+?Constructor\]$/,SM=/^(?:0|[1-9]\d*)$/,Ve={};Ve[kM]=Ve[AM]=Ve[vM]=Ve[wM]=Ve[xM]=Ve[zM]=Ve[qM]=Ve[EM]=Ve[IM]=!0;Ve[IE]=Ve[tM]=Ve[bM]=Ve[iM]=Ve[yM]=Ve[rM]=Ve[nM]=Ve[jE]=Ve[cM]=Ve[mM]=Ve[CE]=Ve[dM]=Ve[gM]=Ve[pM]=Ve[fM]=!1;var SE=typeof global=="object"&&global&&global.Object===Object&&global,BM=typeof self=="object"&&self&&self.Object===Object&&self,Xm=SE||BM||Function("return this")(),BE=typeof Wm=="object"&&Wm&&!Wm.nodeType&&Wm,Zm=BE&&typeof ac=="object"&&ac&&!ac.nodeType&&ac,QE=Zm&&Zm.exports===BE,Qy=QE&&SE.process,fE=(function(){try{var o=Zm&&Zm.require&&Zm.require("util").types;return o||Qy&&Qy.binding&&Qy.binding("util")}catch{}})(),bE=fE&&fE.isTypedArray;function QM(o,e,t){switch(t.length){case 0:return o.call(e);case 1:return o.call(e,t[0]);case 2:return o.call(e,t[0],t[1]);case 3:return o.call(e,t[0],t[1],t[2])}return o.apply(e,t)}function _M(o,e){for(var t=-1,a=Array(o);++t<o;)a[t]=e(t);return a}function DM(o){return function(e){return o(e)}}function TM(o,e){return o?.[e]}function RM(o,e){return function(t){return o(e(t))}}var NM=Array.prototype,OM=Function.prototype,Bd=Object.prototype,_y=Xm["__core-js_shared__"],Qd=OM.toString,mr=Bd.hasOwnProperty,yE=(function(){var o=/[^.]+$/.exec(_y&&_y.keys&&_y.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),_E=Bd.toString,UM=Qd.call(Object),MM=RegExp("^"+Qd.call(mr).replace(jM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Cd=QE?Xm.Buffer:void 0,kE=Xm.Symbol,AE=Xm.Uint8Array,vE=Cd?Cd.allocUnsafe:void 0,DE=RM(Object.getPrototypeOf,Object),wE=Object.create,LM=Bd.propertyIsEnumerable,PM=NM.splice,Yn=kE?kE.toStringTag:void 0,Sd=(function(){try{var o=Uy(Object,"defineProperty");return o({},"",{}),o}catch{}})(),FM=Cd?Cd.isBuffer:void 0,xE=Math.max,$M=Date.now,TE=Uy(Xm,"Map"),Km=Uy(Object,"create"),HM=(function(){function o(){}return function(e){if(!Wn(e))return{};if(wE)return wE(e);o.prototype=e;var t=new o;return o.prototype=void 0,t}})();function Jn(o){var e=-1,t=o==null?0:o.length;for(this.clear();++e<t;){var a=o[e];this.set(a[0],a[1])}}function GM(){this.__data__=Km?Km(null):{},this.size=0}function VM(o){var e=this.has(o)&&delete this.__data__[o];return this.size-=e?1:0,e}function YM(o){var e=this.__data__;if(Km){var t=e[o];return t===qE?void 0:t}return mr.call(e,o)?e[o]:void 0}function JM(o){var e=this.__data__;return Km?e[o]!==void 0:mr.call(e,o)}function WM(o,e){var t=this.__data__;return this.size+=this.has(o)?0:1,t[o]=Km&&e===void 0?qE:e,this}Jn.prototype.clear=GM;Jn.prototype.delete=VM;Jn.prototype.get=YM;Jn.prototype.has=JM;Jn.prototype.set=WM;function lr(o){var e=-1,t=o==null?0:o.length;for(this.clear();++e<t;){var a=o[e];this.set(a[0],a[1])}}function ZM(){this.__data__=[],this.size=0}function KM(o){var e=this.__data__,t=_d(e,o);if(t<0)return!1;var a=e.length-1;return t==a?e.pop():PM.call(e,t,1),--this.size,!0}function XM(o){var e=this.__data__,t=_d(e,o);return t<0?void 0:e[t][1]}function eL(o){return _d(this.__data__,o)>-1}function oL(o,e){var t=this.__data__,a=_d(t,o);return a<0?(++this.size,t.push([o,e])):t[a][1]=e,this}lr.prototype.clear=ZM;lr.prototype.delete=KM;lr.prototype.get=XM;lr.prototype.has=eL;lr.prototype.set=oL;function ic(o){var e=-1,t=o==null?0:o.length;for(this.clear();++e<t;){var a=o[e];this.set(a[0],a[1])}}function tL(){this.size=0,this.__data__={hash:new Jn,map:new(TE||lr),string:new Jn}}function aL(o){var e=Td(this,o).delete(o);return this.size-=e?1:0,e}function iL(o){return Td(this,o).get(o)}function rL(o){return Td(this,o).has(o)}function nL(o,e){var t=Td(this,o),a=t.size;return t.set(o,e),this.size+=t.size==a?0:1,this}ic.prototype.clear=tL;ic.prototype.delete=aL;ic.prototype.get=iL;ic.prototype.has=rL;ic.prototype.set=nL;function rc(o){var e=this.__data__=new lr(o);this.size=e.size}function sL(){this.__data__=new lr,this.size=0}function cL(o){var e=this.__data__,t=e.delete(o);return this.size=e.size,t}function mL(o){return this.__data__.get(o)}function lL(o){return this.__data__.has(o)}function uL(o,e){var t=this.__data__;if(t instanceof lr){var a=t.__data__;if(!TE||a.length<XU-1)return a.push([o,e]),this.size=++t.size,this;t=this.__data__=new ic(a)}return t.set(o,e),this.size=t.size,this}rc.prototype.clear=sL;rc.prototype.delete=cL;rc.prototype.get=mL;rc.prototype.has=lL;rc.prototype.set=uL;function dL(o,e){var t=Ny(o),a=!t&&Ry(o),i=!t&&!a&&UE(o),r=!t&&!a&&!i&&LE(o),n=t||a||i||r,s=n?_M(o.length,String):[],c=s.length;for(var m in o)(e||mr.call(o,m))&&!(n&&(m=="length"||i&&(m=="offset"||m=="parent")||r&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||NE(m,c)))&&s.push(m);return s}function Dy(o,e,t){(t!==void 0&&!Rd(o[e],t)||t===void 0&&!(e in o))&&Oy(o,e,t)}function gL(o,e,t){var a=o[e];(!(mr.call(o,e)&&Rd(a,t))||t===void 0&&!(e in o))&&Oy(o,e,t)}function _d(o,e){for(var t=o.length;t--;)if(Rd(o[t][0],e))return t;return-1}function Oy(o,e,t){e=="__proto__"&&Sd?Sd(o,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):o[e]=t}var pL=IL();function Dd(o){return o==null?o===void 0?hM:lM:Yn&&Yn in Object(o)?jL(o):DL(o)}function zE(o){return el(o)&&Dd(o)==IE}function hL(o){if(!Wn(o)||QL(o))return!1;var e=Ly(o)?MM:CM;return e.test(OL(o))}function fL(o){return el(o)&&ME(o.length)&&!!Ve[Dd(o)]}function bL(o){if(!Wn(o))return _L(o);var e=OE(o),t=[];for(var a in o)a=="constructor"&&(e||!mr.call(o,a))||t.push(a);return t}function RE(o,e,t,a,i){o!==e&&pL(e,function(r,n){if(i||(i=new rc),Wn(r))yL(o,e,n,t,RE,a,i);else{var s=a?a(Ty(o,n),r,n+"",o,e,i):void 0;s===void 0&&(s=r),Dy(o,n,s)}},PE)}function yL(o,e,t,a,i,r,n){var s=Ty(o,t),c=Ty(e,t),m=n.get(c);if(m){Dy(o,t,m);return}var l=r?r(s,c,t+"",o,e,n):void 0,u=l===void 0;if(u){var d=Ny(c),g=!d&&UE(c),h=!d&&!g&&LE(c);l=c,d||g||h?Ny(s)?l=s:UL(s)?l=zL(s):g?(u=!1,l=vL(c,!0)):h?(u=!1,l=xL(c,!0)):l=[]:ML(c)||Ry(c)?(l=s,Ry(s)?l=LL(s):(!Wn(s)||Ly(s))&&(l=CL(c))):u=!1}u&&(n.set(c,l),i(l,c,a,r,n),n.delete(c)),Dy(o,t,l)}function kL(o,e){return RL(TL(o,e,FE),o+"")}var AL=Sd?function(o,e){return Sd(o,"toString",{configurable:!0,enumerable:!1,value:FL(e),writable:!0})}:FE;function vL(o,e){if(e)return o.slice();var t=o.length,a=vE?vE(t):new o.constructor(t);return o.copy(a),a}function wL(o){var e=new o.constructor(o.byteLength);return new AE(e).set(new AE(o)),e}function xL(o,e){var t=e?wL(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.length)}function zL(o,e){var t=-1,a=o.length;for(e||(e=Array(a));++t<a;)e[t]=o[t];return e}function qL(o,e,t,a){var i=!t;t||(t={});for(var r=-1,n=e.length;++r<n;){var s=e[r],c=a?a(t[s],o[s],s,t,o):void 0;c===void 0&&(c=o[s]),i?Oy(t,s,c):gL(t,s,c)}return t}function EL(o){return kL(function(e,t){var a=-1,i=t.length,r=i>1?t[i-1]:void 0,n=i>2?t[2]:void 0;for(r=o.length>3&&typeof r=="function"?(i--,r):void 0,n&&SL(t[0],t[1],n)&&(r=i<3?void 0:r,i=1),e=Object(e);++a<i;){var s=t[a];s&&o(e,s,a,r)}return e})}function IL(o){return function(e,t,a){for(var i=-1,r=Object(e),n=a(e),s=n.length;s--;){var c=n[o?s:++i];if(t(r[c],c,r)===!1)break}return e}}function Td(o,e){var t=o.__data__;return BL(e)?t[typeof e=="string"?"string":"hash"]:t.map}function Uy(o,e){var t=TM(o,e);return hL(t)?t:void 0}function jL(o){var e=mr.call(o,Yn),t=o[Yn];try{o[Yn]=void 0;var a=!0}catch{}var i=_E.call(o);return a&&(e?o[Yn]=t:delete o[Yn]),i}function CL(o){return typeof o.constructor=="function"&&!OE(o)?HM(DE(o)):{}}function NE(o,e){var t=typeof o;return e=e??EE,!!e&&(t=="number"||t!="symbol"&&SM.test(o))&&o>-1&&o%1==0&&o<e}function SL(o,e,t){if(!Wn(t))return!1;var a=typeof e;return(a=="number"?My(t)&&NE(e,t.length):a=="string"&&e in t)?Rd(t[e],o):!1}function BL(o){var e=typeof o;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?o!=="__proto__":o===null}function QL(o){return!!yE&&yE in o}function OE(o){var e=o&&o.constructor,t=typeof e=="function"&&e.prototype||Bd;return o===t}function _L(o){var e=[];if(o!=null)for(var t in Object(o))e.push(t);return e}function DL(o){return _E.call(o)}function TL(o,e,t){return e=xE(e===void 0?o.length-1:e,0),function(){for(var a=arguments,i=-1,r=xE(a.length-e,0),n=Array(r);++i<r;)n[i]=a[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=a[i];return s[e]=t(n),QM(o,this,s)}}function Ty(o,e){if(!(e==="constructor"&&typeof o[e]=="function")&&e!="__proto__")return o[e]}var RL=NL(AL);function NL(o){var e=0,t=0;return function(){var a=$M(),i=oM-(a-t);if(t=a,i>0){if(++e>=eM)return arguments[0]}else e=0;return o.apply(void 0,arguments)}}function OL(o){if(o!=null){try{return Qd.call(o)}catch{}try{return o+""}catch{}}return""}function Rd(o,e){return o===e||o!==o&&e!==e}var Ry=zE((function(){return arguments})())?zE:function(o){return el(o)&&mr.call(o,"callee")&&!LM.call(o,"callee")},Ny=Array.isArray;function My(o){return o!=null&&ME(o.length)&&!Ly(o)}function UL(o){return el(o)&&My(o)}var UE=FM||$L;function Ly(o){if(!Wn(o))return!1;var e=Dd(o);return e==jE||e==sM||e==aM||e==uM}function ME(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=EE}function Wn(o){var e=typeof o;return o!=null&&(e=="object"||e=="function")}function el(o){return o!=null&&typeof o=="object"}function ML(o){if(!el(o)||Dd(o)!=CE)return!1;var e=DE(o);if(e===null)return!0;var t=mr.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Qd.call(t)==UM}var LE=bE?DM(bE):fL;function LL(o){return qL(o,PE(o))}function PE(o){return My(o)?dL(o,!0):bL(o)}var PL=EL(function(o,e,t){RE(o,e,t)});function FL(o){return function(){return o}}function FE(o){return o}function $L(){return!1}ac.exports=PL});var i1=f((aje,a1)=>{"use strict";var YE=200,$y="__lodash_hash_undefined__",HL=1/0,GL=9007199254740991,VL="[object Function]",YL="[object GeneratorFunction]",JL=/[\\^$.*+?()[\]{}|]/g,WL=/^\[object .+?Constructor\]$/,ZL=typeof global=="object"&&global&&global.Object===Object&&global,KL=typeof self=="object"&&self&&self.Object===Object&&self,Hy=ZL||KL||Function("return this")();function XL(o,e,t){switch(t.length){case 0:return o.call(e);case 1:return o.call(e,t[0]);case 2:return o.call(e,t[0],t[1]);case 3:return o.call(e,t[0],t[1],t[2])}return o.apply(e,t)}function eP(o,e){for(var t=-1,a=o?o.length:0,i=0,r=[];++t<a;){var n=o[t];e(n,t,o)&&(r[i++]=n)}return r}function JE(o,e){var t=o?o.length:0;return!!t&&iP(o,e,0)>-1}function WE(o,e,t){for(var a=-1,i=o?o.length:0;++a<i;)if(t(e,o[a]))return!0;return!1}function oP(o,e){for(var t=-1,a=o?o.length:0,i=Array(a);++t<a;)i[t]=e(o[t],t,o);return i}function tP(o,e){for(var t=-1,a=e.length,i=o.length;++t<a;)o[i+t]=e[t];return o}function aP(o,e,t,a){for(var i=o.length,r=t+(a?1:-1);a?r--:++r<i;)if(e(o[r],r,o))return r;return-1}function iP(o,e,t){if(e!==e)return aP(o,rP,t);for(var a=t-1,i=o.length;++a<i;)if(o[a]===e)return a;return-1}function rP(o){return o!==o}function nP(o){return function(e){return o(e)}}function ZE(o,e){return o.has(e)}function sP(o,e){return o?.[e]}function cP(o){var e=!1;if(o!=null&&typeof o.toString!="function")try{e=!!(o+"")}catch{}return e}function KE(o){var e=-1,t=Array(o.size);return o.forEach(function(a){t[++e]=a}),t}var mP=Array.prototype,lP=Function.prototype,XE=Object.prototype,Py=Hy["__core-js_shared__"],HE=(function(){var o=/[^.]+$/.exec(Py&&Py.keys&&Py.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),e1=lP.toString,Gy=XE.hasOwnProperty,uP=XE.toString,dP=RegExp("^"+e1.call(Gy).replace(JL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gP=mP.splice,GE=Math.max,pP=Vy(Hy,"Map"),Fy=Vy(Hy,"Set"),ol=Vy(Object,"create");function Zn(o){var e=-1,t=o?o.length:0;for(this.clear();++e<t;){var a=o[e];this.set(a[0],a[1])}}function hP(){this.__data__=ol?ol(null):{}}function fP(o){return this.has(o)&&delete this.__data__[o]}function bP(o){var e=this.__data__;if(ol){var t=e[o];return t===$y?void 0:t}return Gy.call(e,o)?e[o]:void 0}function yP(o){var e=this.__data__;return ol?e[o]!==void 0:Gy.call(e,o)}function kP(o,e){var t=this.__data__;return t[o]=ol&&e===void 0?$y:e,this}Zn.prototype.clear=hP;Zn.prototype.delete=fP;Zn.prototype.get=bP;Zn.prototype.has=yP;Zn.prototype.set=kP;function nc(o){var e=-1,t=o?o.length:0;for(this.clear();++e<t;){var a=o[e];this.set(a[0],a[1])}}function AP(){this.__data__=[]}function vP(o){var e=this.__data__,t=Nd(e,o);if(t<0)return!1;var a=e.length-1;return t==a?e.pop():gP.call(e,t,1),!0}function wP(o){var e=this.__data__,t=Nd(e,o);return t<0?void 0:e[t][1]}function xP(o){return Nd(this.__data__,o)>-1}function zP(o,e){var t=this.__data__,a=Nd(t,o);return a<0?t.push([o,e]):t[a][1]=e,this}nc.prototype.clear=AP;nc.prototype.delete=vP;nc.prototype.get=wP;nc.prototype.has=xP;nc.prototype.set=zP;function sc(o){var e=-1,t=o?o.length:0;for(this.clear();++e<t;){var a=o[e];this.set(a[0],a[1])}}function qP(){this.__data__={hash:new Zn,map:new(pP||nc),string:new Zn}}function EP(o){return Od(this,o).delete(o)}function IP(o){return Od(this,o).get(o)}function jP(o){return Od(this,o).has(o)}function CP(o,e){return Od(this,o).set(o,e),this}sc.prototype.clear=qP;sc.prototype.delete=EP;sc.prototype.get=IP;sc.prototype.has=jP;sc.prototype.set=CP;function tl(o){var e=-1,t=o?o.length:0;for(this.__data__=new sc;++e<t;)this.add(o[e])}function SP(o){return this.__data__.set(o,$y),this}function BP(o){return this.__data__.has(o)}tl.prototype.add=tl.prototype.push=SP;tl.prototype.has=BP;function Nd(o,e){for(var t=o.length;t--;)if(LP(o[t][0],e))return t;return-1}function VE(o,e,t,a){var i=-1,r=JE,n=!0,s=o.length,c=[],m=e.length;if(!s)return c;t&&(e=oP(e,nP(t))),a?(r=WE,n=!1):e.length>=YE&&(r=ZE,n=!1,e=new tl(e));e:for(;++i<s;){var l=o[i],u=t?t(l):l;if(l=a||l!==0?l:0,n&&u===u){for(var d=m;d--;)if(e[d]===u)continue e;c.push(l)}else r(e,u,a)||c.push(l)}return c}function QP(o){if(!t1(o)||OP(o))return!1;var e=o1(o)||cP(o)?dP:WL;return e.test(UP(o))}function _P(o,e){return e=GE(e===void 0?o.length-1:e,0),function(){for(var t=arguments,a=-1,i=GE(t.length-e,0),r=Array(i);++a<i;)r[a]=t[e+a];a=-1;for(var n=Array(e+1);++a<e;)n[a]=t[a];return n[e]=r,XL(o,this,n)}}function DP(o,e,t){var a=-1,i=JE,r=o.length,n=!0,s=[],c=s;if(t)n=!1,i=WE;else if(r>=YE){var m=e?null:RP(o);if(m)return KE(m);n=!1,i=ZE,c=new tl}else c=e?[]:s;e:for(;++a<r;){var l=o[a],u=e?e(l):l;if(l=t||l!==0?l:0,n&&u===u){for(var d=c.length;d--;)if(c[d]===u)continue e;e&&c.push(u),s.push(l)}else i(c,u,t)||(c!==s&&c.push(u),s.push(l))}return s}function TP(o,e,t){for(var a=-1,i=o.length;++a<i;)var r=r?tP(VE(r,o[a],e,t),VE(o[a],r,e,t)):o[a];return r&&r.length?DP(r,e,t):[]}var RP=Fy&&1/KE(new Fy([,-0]))[1]==HL?function(o){return new Fy(o)}:GP;function Od(o,e){var t=o.__data__;return NP(e)?t[typeof e=="string"?"string":"hash"]:t.map}function Vy(o,e){var t=sP(o,e);return QP(t)?t:void 0}function NP(o){var e=typeof o;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?o!=="__proto__":o===null}function OP(o){return!!HE&&HE in o}function UP(o){if(o!=null){try{return e1.call(o)}catch{}try{return o+""}catch{}}return""}var MP=_P(function(o){return TP(eP(o,FP))});function LP(o,e){return o===e||o!==o&&e!==e}function PP(o){return o!=null&&$P(o.length)&&!o1(o)}function FP(o){return HP(o)&&PP(o)}function o1(o){var e=t1(o)?uP.call(o):"";return e==VL||e==YL}function $P(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=GL}function t1(o){var e=typeof o;return!!o&&(e=="object"||e=="function")}function HP(o){return!!o&&typeof o=="object"}function GP(){}a1.exports=MP});var Md=f(ur=>{"use strict";var Zy=ur&&ur.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(ur,"__esModule",{value:!0});ur.toJsonSchema=KP;ur.convertRequiredToArray=al;ur.generateDefaultFromSchema=il;ur.parseJsonSafe=Ud;ur.normalizeToolSchemas=XP;var Yy=Zy(hE()),Jy=Zy($E()),VP=Zy(i1());function cc(o,e){if(o===e)return!0;if(o===null||e===null||typeof o!="object"||typeof e!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t=Object.keys(o),a=Object.keys(e);if(t.length!==a.length)return!1;let i=e;return t.every(r=>r in i&&cc(o[r],i[r]))}var YP={required:!1,requiredDepth:Number.POSITIVE_INFINITY,postProcessFnc:null,strings:{preProcessFnc:null},arrays:{mode:"all"},objects:{preProcessFnc:null,postProcessFnc:null,additionalProperties:!0}},JP={string:function(e){return typeof e=="string"},number:function(e){return typeof e=="number"&&isFinite(e)},integer:function(e){return typeof e=="number"&&e%1===0},boolean:function(e){return typeof e=="boolean"},array:function(e){return e instanceof Array},null:function(e){return e===null},date:function(e){return e instanceof Date},any:function(e){return!0},object:function(e){return e&&typeof e=="object"&&!(e instanceof Array)&&!(e instanceof Date)}},mc={typeNames:["integer","number","string","array","object","boolean","null","date"],getType(o){return mc.typeNames.find(e=>JP[e](o))},mergeSchemaObjs(o,e){if(!o||!e)return null;let t=(0,Yy.default)(o),a=(0,Yy.default)(e);if(!cc(t,a)){if(o.type==="array"&&e.type==="array"&&cc((0,VP.default)(t,a),["items"])){let r=t.length>a.length?e:o,n=t.length>a.length?o:e;if((0,Yy.default)(r).reduce((c,m)=>cc(r[m],n[m])&&c,!0))return r}if(o.type!=="object"||e.type!=="object")return null}let i={};for(let r=0,{length:n}=t;r<n;r++){let s=t[r];if(mc.getType(o[s])==="object"){let c=mc.mergeSchemaObjs(o[s],e[s]);if(c)i[s]=c;else{if(o.type==="object"||e.type==="object")return{type:"object"};if(s!=="items"||o.type!=="array"||e.type!=="array")return null}}else if(s==="type")if(o[s]!==e[s])if(o[s]==="integer"&&e[s]==="number"||o[s]==="number"&&e[s]==="integer")i[s]="number";else return null;else i[s]=o[s];else{if(!cc(o[s],e[s]))return null;i[s]=o[s]}}return i}};function WP(o){let e;for(let t=0,{length:a}=o;t<a;t++){let i=o[t];if(t>0&&(i==="integer"&&e==="number"?i="number":i==="number"&&e==="integer"&&(e="number"),e!==i))return null;e=i}return e}function ZP(o){return WP(o.map(e=>mc.getType(e)))}var Wy=class{constructor(e){this.options=(0,Jy.default)({},YP,e),this.depth=0,this.getObjectSchemaDefault=this.getObjectSchemaDefault.bind(this),this.getStringSchemaDefault=this.getStringSchemaDefault.bind(this),this.objectPostProcessDefault=this.objectPostProcessDefault.bind(this),this.commmonPostProcessDefault=this.commmonPostProcessDefault.bind(this),this.objectPostProcessDefault=this.objectPostProcessDefault.bind(this)}getCommonArrayItemSchema(e){let t=e.map(a=>{this.depth++;let i=this.getSchema(a);return this.depth--,i});return t.reduce((a,i)=>mc.mergeSchemaObjs(a,i),t.pop())}getObjectSchemaDefault(e){let t={type:"object"},a=Object.keys(e);return a.length>0&&(t.properties=a.reduce((i,r)=>(this.depth++,i[r]=this.getSchema(e[r]),this.depth--,i),{})),t}getObjectSchema(e){return this.options.objects.preProcessFnc?this.options.objects.preProcessFnc(e,this.getObjectSchemaDefault):this.getObjectSchemaDefault(e)}getArraySchemaMerging(e){let t={type:"array"},a=ZP(e);if(a)if(t.items={type:a},a!=="integer"&&a!=="number"){let i=this.getCommonArrayItemSchema(e);i&&(t.items=i)}else this.options.required&&(t.items.required=!0);return t}getArraySchemaNoMerging(e){let t={type:"array"};return e.length>0&&(this.depth++,t.items=this.getSchema(e[0]),this.depth--),t}getArraySchemaTuple(e){let t={type:"array"};return e.length>0&&(t.items=e.map(a=>{this.depth++;let i=this.getSchema(a);return this.depth--,i})),t}getArraySchemaUniform(e){let t=this.getArraySchemaNoMerging(e);if(e.length>1)for(let a=1;a<e.length;a++){this.depth++;let i=this.getSchema(e[a]);if(this.depth--,!cc(t.items,i))throw new Error("Invalid schema, incompatible array items")}return t}getArraySchema(e){if(e.length===0)return{type:"array"};switch(this.options.arrays.mode){case"all":return this.getArraySchemaMerging(e);case"first":return this.getArraySchemaNoMerging(e);case"uniform":return this.getArraySchemaUniform(e);case"tuple":return this.getArraySchemaTuple(e);default:throw new Error(`Unknown array mode option '${this.options.arrays.mode}'`)}}getStringSchemaDefault(e){return{type:"string"}}getStringSchema(e){return this.options.strings.preProcessFnc?this.options.strings.preProcessFnc(e,this.getStringSchemaDefault):this.getStringSchemaDefault(e)}commmonPostProcessDefault(e,t,a){return this.options.required&&this.depth<=this.options.requiredDepth?(0,Jy.default)({},t,{required:!0}):t}objectPostProcessDefault(e,t){return this.options.objects.additionalProperties===!1&&Object.getOwnPropertyNames(t).length>0?(0,Jy.default)({},e,{additionalProperties:!1}):e}getSchema(e){let t=mc.getType(e);t||(t="null");let a;switch(t){case"object":a=this.getObjectSchema(e);break;case"array":a=this.getArraySchema(e);break;case"string":a=this.getStringSchema(e);break;default:a={type:t}}return this.options.postProcessFnc?a=this.options.postProcessFnc(t,a,e,this.commmonPostProcessDefault):a=this.commmonPostProcessDefault(t,a,e),t==="object"&&(this.options.objects.postProcessFnc?a=this.options.objects.postProcessFnc(a,e,this.objectPostProcessDefault):a=this.objectPostProcessDefault(a,e)),a}};function KP(o,e){return new Wy(e).getSchema(o)}function al(o){if(!o||typeof o!="object")return o;if(Array.isArray(o))return o.map(t=>al(t));let e={...o};if(delete e.required,e.properties&&typeof e.properties=="object"){let t=[],a={};for(let[i,r]of Object.entries(e.properties)){let n=r;if(n&&typeof n=="object"&&n.required===!0){t.push(i);let{required:s,...c}=n;a[i]=al(c)}else a[i]=al(n)}e.properties=a,t.length>0&&(e.required=t)}return e.items&&(e.items=al(e.items)),e}function il(o){if(!o||typeof o!="object")return null;if(o.const!==void 0)return o.const;if(o.enum&&Array.isArray(o.enum)&&o.enum.length>0)return o.enum[0];if(o.default!==void 0)return o.default;if(o.oneOf&&Array.isArray(o.oneOf)&&o.oneOf.length>0)return il(o.oneOf[0]);if(o.anyOf&&Array.isArray(o.anyOf)&&o.anyOf.length>0)return il(o.anyOf[0]);switch(Array.isArray(o.type)?o.type[0]:o.type){case"string":case"number":case"integer":case"boolean":return null;case"null":return null;case"array":return o.items?[]:[];case"object":let t={};if(o.properties&&typeof o.properties=="object"){let a=o.required||[];for(let[i,r]of Object.entries(o.properties))t[i]=il(r)}return t;default:if(o.properties&&typeof o.properties=="object"){let a={};for(let[i,r]of Object.entries(o.properties))a[i]=il(r);return a}return null}}function Ud(o){if(typeof o!="string")return o;try{return JSON.parse(o)}catch{return o}}function XP(o){let e={...o};return e.inputSchema&&(e.inputSchema=Ud(e.inputSchema)),e.outputSchema&&(e.outputSchema=Ud(e.outputSchema)),e.responseSchema&&(e.responseSchema=Ud(e.responseSchema)),e}});var Ht=f(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.PLAYBOOK_LIMITS=N.MCP_SERVER_AUTH_MODES=N.OAUTH_POPUP_CLOSED_MESSAGE=N.OAUTH_CONTINUATION_REASON_MAX_CHARS=N.AGENT_REQUEST_BUSY_STATUSES=N.AGENT_SESSION_RESOURCE_KINDS=N.AGENT_MESSAGE_SCHEMA_VERSION=N.AGENT_APPROVAL_MODES=N.ConfirmationAction=N.LOADABLE_MARKDOWN_NAMES=N.SKILL_REFERENCE_NAMES=N.SKILL_BODY_NAMES=N.AGENT_CHECKLIST_MAX_LABEL_CHARS=N.AGENT_CHECKLIST_MAX_ITEMS=N.AGENT_CHECKLIST_MIN_ITEMS=N.DYNAMIC_AGENT_TOOLS=N.AGENT_TOOLS=N.AGENT_NATIVE_TOOLS=N.PLAYBOOK_PLAYGROUND_DRAFT_ID=N.PLAYGROUND_TOOL_DRAFT_ID=N.AgentType=N.FileStatus=N.MAX_BULK_RESOURCE_SHARE_OPERATIONS=N.MAX_BULK_MUTATION_IDS=N.RunExecutionKind=N.RequestSource=N.RunStatus=N.CredentialMode=N.UpsertMode=N.LogLevel=N.PaginationType=N.DecompressionMethod=N.AuthType=N.FileType=N.CacheMode=N.HttpMethod=N.SupportedFileType=N.RUN_COMMAND_EFFECT_KINDS=void 0;N.isRequestConfig=eF;N.isTransformConfig=oF;N.RUN_COMMAND_EFFECT_KINDS=["tool","tool_state","system","project","schedule","mcp_server","role","playbook","artifact","share","file"];var r1;(function(o){o.JSON="JSON",o.CSV="CSV",o.XML="XML",o.HTML="HTML",o.YAML="YAML",o.EXCEL="EXCEL",o.PDF="PDF",o.DOCX="DOCX",o.PPTX="PPTX",o.ZIP="ZIP",o.GZIP="GZIP",o.BINARY="BINARY",o.RAW="RAW",o.AUTO="AUTO"})(r1||(N.SupportedFileType=r1={}));var n1;(function(o){o.GET="GET",o.POST="POST",o.PUT="PUT",o.DELETE="DELETE",o.PATCH="PATCH",o.HEAD="HEAD",o.OPTIONS="OPTIONS"})(n1||(N.HttpMethod=n1={}));var s1;(function(o){o.ENABLED="ENABLED",o.READONLY="READONLY",o.WRITEONLY="WRITEONLY",o.DISABLED="DISABLED"})(s1||(N.CacheMode=s1={}));var c1;(function(o){o.CSV="CSV",o.JSON="JSON",o.XML="XML",o.YAML="YAML",o.EXCEL="EXCEL",o.HTML="HTML",o.PDF="PDF",o.DOCX="DOCX",o.PPTX="PPTX",o.ZIP="ZIP",o.BINARY="BINARY",o.RAW="RAW",o.AUTO="AUTO"})(c1||(N.FileType=c1={}));var m1;(function(o){o.NONE="NONE",o.OAUTH2="OAUTH2",o.HEADER="HEADER",o.QUERY_PARAM="QUERY_PARAM"})(m1||(N.AuthType=m1={}));var l1;(function(o){o.GZIP="GZIP",o.DEFLATE="DEFLATE",o.NONE="NONE",o.AUTO="AUTO",o.ZIP="ZIP"})(l1||(N.DecompressionMethod=l1={}));var u1;(function(o){o.OFFSET_BASED="OFFSET_BASED",o.PAGE_BASED="PAGE_BASED",o.CURSOR_BASED="CURSOR_BASED",o.DISABLED="DISABLED"})(u1||(N.PaginationType=u1={}));var d1;(function(o){o.DEBUG="DEBUG",o.INFO="INFO",o.WARN="WARN",o.ERROR="ERROR"})(d1||(N.LogLevel=d1={}));var g1;(function(o){o.CREATE="CREATE",o.UPDATE="UPDATE",o.UPSERT="UPSERT"})(g1||(N.UpsertMode=g1={}));var p1;(function(o){o.MERGE="MERGE",o.REPLACE="REPLACE"})(p1||(N.CredentialMode=p1={}));var h1;(function(o){o.RUNNING="RUNNING",o.SUCCESS="SUCCESS",o.FAILED="FAILED",o.ABORTED="ABORTED"})(h1||(N.RunStatus=h1={}));var f1;(function(o){o.API="api",o.FRONTEND="frontend",o.AGENT="agent",o.SCHEDULER="scheduler",o.MCP="mcp",o.TOOL_CHAIN="tool-chain",o.WEBHOOK="webhook",o.CLI="cli"})(f1||(N.RequestSource=f1={}));var b1;(function(o){o.FULL="full",o.DRAFT="draft",o.SINGLE_STEP="single-step"})(b1||(N.RunExecutionKind=b1={}));N.MAX_BULK_MUTATION_IDS=100;N.MAX_BULK_RESOURCE_SHARE_OPERATIONS=1e3;function eF(o){return!o||typeof o!="object"?!1:o.type==="request"||!("type"in o)||o.type===void 0}function oF(o){return o?.type==="transform"}var y1;(function(o){o.PENDING="PENDING",o.UPLOADING="UPLOADING",o.PROCESSING="PROCESSING",o.COMPLETED="COMPLETED",o.FAILED="FAILED"})(y1||(N.FileStatus=y1={}));var Jr;(function(o){o.MAIN="main",o.PLAYGROUND="playground",o.SYSTEM_PLAYGROUND="system_playground",o.PLAYBOOK_PLAYGROUND="playbook_playground",o.ARTIFACT_PLAYGROUND="artifact_playground",o.ACCESS_RULES="access_rules"})(Jr||(N.AgentType=Jr={}));N.PLAYGROUND_TOOL_DRAFT_ID="@playground-draft";N.PLAYBOOK_PLAYGROUND_DRAFT_ID="@playground-draft";N.AGENT_NATIVE_TOOLS=["run_command","load_skill","create_artifact","use_checklist","set_credentials","authenticate_oauth"];N.AGENT_TOOLS={[Jr.MAIN]:[...N.AGENT_NATIVE_TOOLS],[Jr.PLAYGROUND]:[...N.AGENT_NATIVE_TOOLS],[Jr.SYSTEM_PLAYGROUND]:[...N.AGENT_NATIVE_TOOLS],[Jr.PLAYBOOK_PLAYGROUND]:[...N.AGENT_NATIVE_TOOLS],[Jr.ARTIFACT_PLAYGROUND]:[...N.AGENT_NATIVE_TOOLS],[Jr.ACCESS_RULES]:[...N.AGENT_NATIVE_TOOLS]};N.DYNAMIC_AGENT_TOOLS=["web_search"];N.AGENT_CHECKLIST_MIN_ITEMS=4;N.AGENT_CHECKLIST_MAX_ITEMS=15;N.AGENT_CHECKLIST_MAX_LABEL_CHARS=120;N.SKILL_BODY_NAMES=["superglue-info","tool-building","tool-editing","system-setup","access-management","tool-deployment","notifications","artifacts","playbooks","projects","superglue-brain","email","workspace-apps","meetings"];N.SKILL_REFERENCE_NAMES=["http","graphql","postgres","mssql","odbc","redis","mongodb","sftp-smb","tool-files","tunnel-handling"];N.LOADABLE_MARKDOWN_NAMES=[...N.SKILL_BODY_NAMES,...N.SKILL_REFERENCE_NAMES];var k1;(function(o){o.CONFIRMED="confirmed",o.DECLINED="declined",o.OAUTH_SUCCESS="oauth_success",o.OAUTH_FAILURE="oauth_failure"})(k1||(N.ConfirmationAction=k1={}));N.AGENT_APPROVAL_MODES=["ask","act"];N.AGENT_MESSAGE_SCHEMA_VERSION=1;N.AGENT_SESSION_RESOURCE_KINDS=["tool","system","playbook","artifact"];N.AGENT_REQUEST_BUSY_STATUSES=["queued","claimed","running","cancelling"];N.OAUTH_CONTINUATION_REASON_MAX_CHARS=500;N.OAUTH_POPUP_CLOSED_MESSAGE="OAuth authentication did not complete.";N.MCP_SERVER_AUTH_MODES=["oauth","creator_api_key"];N.PLAYBOOK_LIMITS={name:120,whenToRun:500,inputs:25e3,instructions:1e5,completionCriteria:25e3,systemRefs:10,toolRefs:25,credentialRefs:10,fileRefs:15,compiledRender:512e3}});var tF,v1,A1,aF,iF,rF,nF,w1=Pe(()=>{"use strict";tF=o=>{let e=A1(o,0);if(e===void 0||!iF(o[e]))return;let t=A1(o,e+1);if(t!==void 0)return rF(o,e,t)},v1=tF,A1=(o,e)=>{for(let t=e;t<o.length;t+=1){let a=o[t];if(!aF(a))return t}},aF=o=>o===" "||o===" "||o===`
3
3
  `||o==="\r",iF=o=>o==="{"||o==="[",rF=(o,e,t)=>{let a;for(let i=t-1;i>e;i-=1){let r=o[i];if(r==="\r")return;if(r===`
4
4
  `)return nF(a);if(a===void 0)a=r;else if(a[0]===r)a+=r;else return}},nF=o=>o===void 0?0:o[0]===" "?o.length:o});var x1,Ky,sF,cF,z1=Pe(()=>{"use strict";x1=(o,e)=>{let t=Ky(o,"toPrecision",e,e);return t===void 0?Ky(o,"toExponential",e,e):t},Ky=(o,e,t,a)=>{let r=o[e](a).replace(sF,"$1").replace(cF,"$1");return r.length<=t?r:a===1?void 0:Ky(o,e,t,a-1)},sF=/(e)\+/iu,cF=/\.?0*($|e)/iu});var E1,mF,lF,q1,I1=Pe(()=>{"use strict";E1=(o,e)=>{if(typeof o!="string")throw new TypeError(`Input must be a JSON string: ${o}`);mF(e)},mF=o=>{if(lF(o),o<0)throw new TypeError(`"maxSize" argument must be positive: ${o}`);if(o<q1)throw new TypeError(`"maxSize" argument must be at least ${q1}: ${o}`)},lF=o=>{if(o===void 0)throw new TypeError('"maxSize" argument must be defined');if(!Number.isInteger(o))throw new TypeError(`"maxSize" argument must be an integer: ${o}`)},q1=7});var Ld,j1,Pd,uF,dF,gF,pF,C1,hF,fF,bF,yF,kF,AF,Xy=Pe(()=>{"use strict";Ld=(o,e,t)=>{let a=C1(e,t);return j1(o,e,a)},j1=(o,e,t)=>{if(t>=e)return t;let a=o[t];return a>=kF&&a<=AF?j1(o,e,t+1):t},Pd=(o,e,t)=>{if(t===void 0)return t;let a=C1(e,t);return uF(o,a)},uF=(o,e)=>dF(o,e)?e-3:gF(o,e)?e-2:pF(o,e)?e-1:e,dF=(o,e)=>e>=3&&o[e-3]>=hF&&o[e-3]<=fF,gF=(o,e)=>e>=2&&o[e-2]>=bF,pF=(o,e)=>e>=1&&o[e-1]>=yF,C1=(o,e)=>e<0||Object.is(e,-0)?Math.max(o+e,0):e,hF=240,fF=244,bF=224,yF=194,kF=128,AF=191});var S1,B1=Pe(()=>{"use strict";Xy();S1=(o,e,t)=>{let a=globalThis.Buffer.from(o),i=Ld(a,a.length,e),r=Pd(a,a.length,t);return i===0&&r>=a.length?a.toString():a.toString("utf8",i,r)}});var Q1,_1=Pe(()=>{"use strict";Q1=/[\uD800-\uDFFF]/gu});var Fd,wF,tk=Pe(()=>{"use strict";_1();Fd=o=>wF(o)?o.replace(Q1,"\uFFFD"):o,wF=o=>{for(let e=0;e<o.length;e+=1){let t=o.codePointAt(e);if(t>=55296&&t<=57343)return!0}return!1}});var ak,D1=Pe(()=>{"use strict";ak=({input:o,targetByteCount:e,firstStartSurrogate:t,lastStartSurrogate:a,firstEndSurrogate:i,lastEndSurrogate:r,increment:n,canBacktrack:s,shift:c,charIndexInit:m})=>{let l=m,u=l,d=0;for(;d<e;l+=n){u=l;let h=o.charCodeAt(l);if(Number.isNaN(h))break;if(h<=127){d+=1;continue}if(h<=2047){d+=2;continue}if(d+=3,h<t||h>a)continue;let k=o.charCodeAt(l+n);Number.isNaN(k)||k<i||k>r||(d+=1,l+=n)}return(s&&d>e?u:l)+c}});var ik,IF,jF,T1=Pe(()=>{"use strict";D1();ik=(o,e,t)=>e<0||Object.is(e,-0)?jF(o,e,t):IF(o,e,t),IF=(o,e,t)=>ak({input:o,targetByteCount:e,firstStartSurrogate:55296,lastStartSurrogate:56319,firstEndSurrogate:56320,lastEndSurrogate:57343,increment:1,canBacktrack:t,shift:0,charIndexInit:0}),jF=(o,e,t)=>ak({input:o,targetByteCount:-e,firstStartSurrogate:56320,lastStartSurrogate:57343,firstEndSurrogate:55296,lastEndSurrogate:56319,increment:-1,canBacktrack:!t,shift:1,charIndexInit:o.length-1})});var $d,CF,R1=Pe(()=>{"use strict";tk();T1();$d=(o,e,t)=>{let a=ik(o,e,!1),i=CF(o,t),r=a===0&&i===void 0?o:o.slice(a,i);return Fd(r)},CF=(o,e)=>{if(e===void 0)return e;let t=ik(o,e,!0);return t===o.length?void 0:t}});var O1,SF,rk,N1,BF,QF,Hd,U1=Pe(()=>{"use strict";Xy();O1=(o,e,t)=>{let{textEncoder:a,textDecoder:i}=SF(),r=BF(o),{written:n}=a.encodeInto(o,r),s=Ld(r,n,e),c=Pd(r,n,t),m=c===void 0?n:Math.min(c,n),l=r.subarray(s,m);return i.decode(l)},SF=()=>(rk===void 0&&(rk=new globalThis.TextEncoder,N1=new globalThis.TextDecoder("utf8",{fatal:!1})),{textEncoder:rk,textDecoder:N1}),BF=o=>{let e=o.length*3;return e>QF?new Uint8Array(e):((Hd===void 0||Hd.length<e)&&(Hd=new Uint8Array(e)),Hd)},QF=1e5});var M1,nk,L1,P1=Pe(()=>{"use strict";M1=(o,e)=>{if(e===void 0)return e;let t=nk(o,e);return t>=o.length*L1?void 0:t},nk=(o,e)=>e<=o.length*-L1?0:e,L1=4});var F1,_F,DF,$1,H1=Pe(()=>{"use strict";F1=(o,e,t)=>{if(typeof o!="string")throw new TypeError(`First argument must be a string: ${o}`);_F(e),DF(t)},_F=o=>{if(o===void 0)throw new TypeError("Second argument is required.");$1("Second",o)},DF=o=>{o!==void 0&&$1("Third",o)},$1=(o,e)=>{if(!Number.isInteger(e))throw new TypeError(`${o} argument must be an integer: ${e}`)}});var G1,TF,sk,V1=Pe(()=>{"use strict";G1=o=>{let e=!0,t=0;for(let a=0;a<sk;a+=1){let i=TF(o,a);i<=127||(e&&(e=!1),i>2047&&(t+=1))}return{asciiOnly:e,longCharsPercentage:t/sk}},TF=(o,e)=>{let t=sk-1,a=1-(t-e)/t,i=Math.round(a*(o.length-1));return o.charCodeAt(i)},sk=50});var RF,Y1,NF,OF,UF,MF,J1,W1=Pe(()=>{"use strict";B1();R1();U1();P1();tk();H1();V1();RF=(o,e,t)=>{if(F1(o,e,t),o==="")return o;let a=nk(o,e),i=M1(o,t);return i===void 0&&Object.is(a,0)?Fd(o):NF(o,a,i)},Y1=RF,NF=(o,e,t)=>{if(o.length<=OF)return $d(o,e,t);let{asciiOnly:a,longCharsPercentage:i}=G1(o);return a?MF(o,e,t):i>=UF?$d(o,e,t):J1(o,e,t)},OF=200,UF=.4,MF=(o,e,t)=>"Buffer"in globalThis&&"from"in globalThis.Buffer?S1(o,e,t):J1(o,e,t),J1=(o,e,t)=>"TextEncoder"in globalThis?O1(o,e,t):$d(o,e,t)});var K1,LF,PF,FF,$F,rl,Z1,X1=Pe(()=>{"use strict";W1();K1=(o,e)=>{let t=JSON.stringify(o),a=FF(t),i=Y1(a,0,e-Z1.length-rl.length*2),n=`${LF(i)}${Z1}`;return $F(n)},LF=o=>o.replace(PF,""),PF=/(\\|\\u[0-9a-fA-F]{0,3})$/u,FF=o=>o.slice(rl.length,-rl.length),$F=o=>`${rl}${o}${rl}`,rl='"',Z1="..."});var eI,oI=Pe(()=>{"use strict";eI=o=>globalThis.Buffer.byteLength(o)});var ck,HF,GF,VF,YF,JF,WF,tI=Pe(()=>{"use strict";ck=o=>{let e=o.length,t=e;for(let a=0;a<e;a+=1){let i=o.charCodeAt(a);if(i<=HF)continue;if(i<=GF){t+=1;continue}if(t+=2,i<VF||i>YF)continue;let r=o.charCodeAt(a+1);r<JF||r>WF||(a+=1)}return t},HF=127,GF=2047,VF=55296,YF=56319,JF=56320,WF=57343});var aI,ZF,KF,XF,Gd,iI=Pe(()=>{"use strict";aI=()=>ZF.bind(void 0,new TextEncoder),ZF=(o,e)=>{let t=KF(e);return o.encodeInto(e,t).written},KF=o=>{let e=o.length*3;return e>XF?new Uint8Array(e):((Gd===void 0||Gd.length<e)&&(Gd=new Uint8Array(e)),Gd)},XF=1e5});var o$,t$,rI,nI=Pe(()=>{"use strict";oI();tI();iI();o$=()=>"Buffer"in globalThis&&"byteLength"in globalThis.Buffer?eI:"TextEncoder"in globalThis?t$.bind(void 0,aI()):ck,t$=(o,e)=>e.length<100?ck(e):o(e),rI=o$()});var sI,a$,i$,r$,n$,mk,cI=Pe(()=>{"use strict";nI();sI=o=>{if(o===null)return a$;if(o===!0)return i$;if(o===!1)return r$;let e=typeof o;return e==="object"?n$:e==="number"?JSON.stringify(o).length:mk(o)},a$=4,i$=4,r$=5,n$=2,mk=o=>rI(JSON.stringify(o))});var Vd,lI,uI,dI,s$,gI,mI,pI,c$,nl=Pe(()=>{"use strict";cI();Vd=({size:o,increment:e,maxSize:t,truncatedProps:a,path:i,value:r})=>{let n=o+e,s=n>t;return s?{size:o,stop:s,truncatedProps:[...a,{path:i,value:r}]}:{size:n,stop:s,truncatedProps:a}},lI=o=>sI(o),uI=(o,e,t)=>{let a=gI({empty:o,indent:e,depth:t,keySpaceSize:0}),i=pI(o);return a+i},dI=({key:o,empty:e,indent:t,depth:a})=>{let i=gI({empty:e,indent:t,depth:a,keySpaceSize:1}),r=mk(o),n=pI(e);return i+r+s$+n},s$=1,gI=({empty:o,indent:e,depth:t,keySpaceSize:a})=>{if(e===void 0)return 0;let i=mI+e*(t+1),r=o?mI+e*t:0;return a+i+r},mI=1,pI=o=>o?0:c$,c$=1});var Yd,m$,lk=Pe(()=>{"use strict";nl();Yd=({parent:o,truncatedProps:e,path:t,increment:a,maxSize:i,key:r,empty:n,size:s,truncateValue:c,indent:m,depth:l})=>{let u=o[r],d=[...t,r],{size:g,stop:h,truncatedProps:k}=Vd({size:s,increment:a,maxSize:i,truncatedProps:e,path:d,value:u});return h?{empty:n,size:g,truncatedProps:k}:m$({value:u,truncatedProps:e,path:d,maxSize:i,empty:n,size:s,newSize:g,truncateValue:c,indent:m,depth:l})},m$=({value:o,truncatedProps:e,path:t,maxSize:a,empty:i,size:r,newSize:n,truncateValue:s,indent:c,depth:m})=>{let{value:l,size:u,truncatedProps:d}=s({value:o,truncatedProps:e,path:t,size:n,maxSize:a,indent:c,depth:m+1});return l===void 0?{empty:i,size:r,truncatedProps:d}:{empty:!1,size:u,value:l,truncatedProps:d}}});var hI,fI=Pe(()=>{"use strict";lk();nl();hI=({array:o,truncatedProps:e,path:t,size:a,maxSize:i,truncateValue:r,indent:n,depth:s})=>{let c=[],m={empty:!0,size:a,truncatedProps:e};for(let l=0;l<o.length;l+=1){let u=uI(m.empty,n,s);m=Yd({parent:o,truncatedProps:m.truncatedProps,path:t,increment:u,maxSize:i,key:l,empty:m.empty,size:m.size,truncateValue:r,indent:n,depth:s}),m.value!==void 0&&c.push(m.value)}return{value:c,size:m.size,truncatedProps:m.truncatedProps}}});var bI,yI=Pe(()=>{"use strict";lk();nl();bI=({object:o,truncatedProps:e,path:t,size:a,maxSize:i,truncateValue:r,indent:n,depth:s})=>{let c={},m={empty:!0,size:a,truncatedProps:e};for(let l in o){let u=dI({key:l,empty:m.empty,indent:n,depth:s});m=Yd({parent:o,truncatedProps:m.truncatedProps,path:t,increment:u,maxSize:i,key:l,empty:m.empty,size:m.size,truncateValue:r,indent:n,depth:s}),m.value!==void 0&&(c[l]=m.value)}return{value:c,size:m.size,truncatedProps:m.truncatedProps}}});var Jd,l$,kI=Pe(()=>{"use strict";fI();yI();nl();Jd=({value:o,truncatedProps:e,path:t,size:a,maxSize:i,indent:r,depth:n})=>{let s=lI(o),{size:c,stop:m,truncatedProps:l}=Vd({size:a,increment:s,maxSize:i,truncatedProps:e,path:t,value:o});return m?{value:void 0,size:c,truncatedProps:l}:l$({value:o,truncatedProps:l,path:t,size:c,maxSize:i,indent:r,depth:n})},l$=({value:o,truncatedProps:e,path:t,size:a,maxSize:i,indent:r,depth:n})=>typeof o!="object"||o===null?{value:o,size:a,truncatedProps:e}:Array.isArray(o)?hI({array:o,truncatedProps:e,path:t,size:a,maxSize:i,truncateValue:Jd,indent:r,depth:n}):bI({object:o,truncatedProps:e,path:t,size:a,maxSize:i,truncateValue:Jd,indent:r,depth:n})});var AI={};mE(AI,{default:()=>d$});var u$,d$,g$,p$,h$,vI=Pe(()=>{"use strict";w1();z1();I1();X1();kI();u$=(o,e)=>{E1(o,e);let t=g$(o),a=p$(o),{value:i,truncatedProps:r}=Jd({value:a,truncatedProps:[],path:[],size:0,maxSize:e,indent:t,depth:0});return{jsonString:h$({newValue:i,value:a,maxSize:e,indent:t}),truncatedProps:r}},d$=u$,g$=o=>{let e=v1(o);return typeof e=="string"?e.length:e},p$=o=>{try{return JSON.parse(o)}catch(e){throw new TypeError(`Invalid JSON string: "${o}"
5
5
  ${e.message}`)}},h$=({newValue:o,value:e,maxSize:t,indent:a})=>o!==void 0?JSON.stringify(o,void 0,a):typeof e=="number"?x1(e,t):K1(e,t)});var xI=f(wI=>{"use strict";Object.defineProperty(wI,"__esModule",{value:!0})});var Wr=f(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.CronField=void 0;var uk=class o{#e=!1;#o=!1;#a=!1;#i=[];options={rawValue:""};static get min(){throw new Error("min must be overridden")}static get max(){throw new Error("max must be overridden")}static get chars(){return Object.freeze([])}static get validChars(){return/^[?,*\dH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}static get constraints(){return{min:this.min,max:this.max,chars:this.chars,validChars:this.validChars}}constructor(e,t={rawValue:""}){if(!Array.isArray(e))throw new Error(`${this.constructor.name} Validation error, values is not an array`);if(!(e.length>0))throw new Error(`${this.constructor.name} Validation error, values contains no values`);this.options={...t,rawValue:t.rawValue??""},this.#i=e.sort(o.sorter),this.#a=this.options.wildcard!==void 0?this.options.wildcard:this.#r(),this.#e=this.options.rawValue.includes("L")||e.includes("L"),this.#o=this.options.rawValue.includes("?")||e.includes("?")}get min(){return this.constructor.min}get max(){return this.constructor.max}get chars(){return this.constructor.chars}get hasLastChar(){return this.#e}get hasQuestionMarkChar(){return this.#o}get isWildcard(){return this.#a}get values(){return this.#i}static sorter(e,t){let a=typeof e=="number",i=typeof t=="number";return a&&i?e-t:!a&&!i?e.localeCompare(t):a?-1:1}static findNearestValueInList(e,t,a=!1){if(a){for(let i=e.length-1;i>=0;i--)if(e[i]<t)return e[i];return null}for(let i=0;i<e.length;i++)if(e[i]>t)return e[i];return null}findNearestValue(e,t=!1){return this.constructor.findNearestValueInList(this.values,e,t)}serialize(){return{wildcard:this.#a,values:this.#i}}validate(){let e,t=this.chars.length>0?` or chars ${this.chars.join("")}`:"",a=s=>c=>new RegExp(`^\\d{0,2}${c}$`).test(s),i=s=>(e=s,typeof s=="number"?s>=this.min&&s<=this.max:this.chars.some(a(s)));if(!this.#i.every(i))throw new Error(`${this.constructor.name} Validation error, got value ${e} expected range ${this.min}-${this.max}${t}`);let n=this.#i.find((s,c)=>this.#i.indexOf(s)!==c);if(n)throw new Error(`${this.constructor.name} Validation error, duplicate values found: ${n}`)}#r(){return this.options.rawValue.length>0?["*","?"].includes(this.options.rawValue):Array.from({length:this.max-this.min+1},(e,t)=>t+this.min).every(e=>this.#i.includes(e))}};Wd.CronField=uk});var zI=f(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.CronDayOfMonth=void 0;var f$=Wr(),b$=1,y$=31,k$=Object.freeze(["L"]),dk=class extends f$.CronField{static get min(){return b$}static get max(){return y$}static get chars(){return k$}static get validChars(){return/^[?,*\dLH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(e,t){super(e,t),this.validate()}get values(){return super.values}};Zd.CronDayOfMonth=dk});var qI=f(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.CronDayOfWeek=void 0;var A$=Wr(),v$=0,w$=7,x$=Object.freeze(["L"]),gk=class extends A$.CronField{static get min(){return v$}static get max(){return w$}static get chars(){return x$}static get validChars(){return/^[?,*\dLH#/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(e,t){super(e,t),this.validate()}get values(){return super.values}get nthDay(){return this.options.nthDayOfWeek??0}};Kd.CronDayOfWeek=gk});var EI=f(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.CronHour=void 0;var z$=Wr(),q$=0,E$=23,I$=Object.freeze([]),pk=class extends z$.CronField{static get min(){return q$}static get max(){return E$}static get chars(){return I$}constructor(e,t){super(e,t),this.validate()}get values(){return super.values}};Xd.CronHour=pk});var II=f(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});eg.CronMinute=void 0;var j$=Wr(),C$=0,S$=59,B$=Object.freeze([]),hk=class extends j$.CronField{static get min(){return C$}static get max(){return S$}static get chars(){return B$}constructor(e,t){super(e,t),this.validate()}get values(){return super.values}};eg.CronMinute=hk});var aj=f(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});var gr=class extends Error{},qk=class extends gr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},Ek=class extends gr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},Ik=class extends gr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Xr=class extends gr{},cg=class extends gr{constructor(e){super(`Invalid unit ${e}`)}},Eo=class extends gr{},Na=class extends gr{constructor(){super("Zone is an abstract class")}},L="numeric",wa="short",xt="long",mg={year:L,month:L,day:L},i2={year:L,month:wa,day:L},Q$={year:L,month:wa,day:L,weekday:wa},r2={year:L,month:xt,day:L},n2={year:L,month:xt,day:L,weekday:xt},s2={hour:L,minute:L},c2={hour:L,minute:L,second:L},m2={hour:L,minute:L,second:L,timeZoneName:wa},l2={hour:L,minute:L,second:L,timeZoneName:xt},u2={hour:L,minute:L,hourCycle:"h23"},d2={hour:L,minute:L,second:L,hourCycle:"h23"},g2={hour:L,minute:L,second:L,hourCycle:"h23",timeZoneName:wa},p2={hour:L,minute:L,second:L,hourCycle:"h23",timeZoneName:xt},h2={year:L,month:L,day:L,hour:L,minute:L},f2={year:L,month:L,day:L,hour:L,minute:L,second:L},b2={year:L,month:wa,day:L,hour:L,minute:L},y2={year:L,month:wa,day:L,hour:L,minute:L,second:L},_$={year:L,month:wa,day:L,weekday:wa,hour:L,minute:L},k2={year:L,month:xt,day:L,hour:L,minute:L,timeZoneName:wa},A2={year:L,month:xt,day:L,hour:L,minute:L,second:L,timeZoneName:wa},v2={year:L,month:xt,day:L,weekday:xt,hour:L,minute:L,timeZoneName:xt},w2={year:L,month:xt,day:L,weekday:xt,hour:L,minute:L,second:L,timeZoneName:xt},on=class{get type(){throw new Na}get name(){throw new Na}get ianaName(){return this.name}get isUniversal(){throw new Na}offsetName(e,t){throw new Na}formatOffset(e,t){throw new Na}offset(e){throw new Na}equals(e){throw new Na}get isValid(){throw new Na}},fk=null,dl=class o extends on{static get instance(){return fk===null&&(fk=new o),fk}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:a}){return _2(e,t,a)}formatOffset(e,t){return ul(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}},jk=new Map;function D$(o){let e=jk.get(o);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:o,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),jk.set(o,e)),e}var T$={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function R$(o,e){let t=o.format(e).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,i,r,n,s,c,m,l]=a;return[n,i,r,s,c,m,l]}function N$(o,e){let t=o.formatToParts(e),a=[];for(let i=0;i<t.length;i++){let{type:r,value:n}=t[i],s=T$[r];r==="era"?a[s]=n:ue(s)||(a[s]=parseInt(n,10))}return a}var bk=new Map,pr=class o extends on{static create(e){let t=bk.get(e);return t===void 0&&bk.set(e,t=new o(e)),t}static resetCache(){bk.clear(),jk.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=o.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:a}){return _2(e,t,a,this.name)}formatOffset(e,t){return ul(this.offset(e),t)}offset(e){if(!this.valid)return NaN;let t=new Date(e);if(isNaN(t))return NaN;let a=D$(this.name),[i,r,n,s,c,m,l]=a.formatToParts?N$(a,t):R$(a,t);s==="BC"&&(i=-Math.abs(i)+1);let d=fg({year:i,month:r,day:n,hour:c===24?0:c,minute:m,second:l,millisecond:0}),g=+t,h=g%1e3;return g-=h>=0?h:1e3+h,(d-g)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}},jI={};function O$(o,e={}){let t=JSON.stringify([o,e]),a=jI[t];return a||(a=new Intl.ListFormat(o,e),jI[t]=a),a}var Ck=new Map;function Sk(o,e={}){let t=JSON.stringify([o,e]),a=Ck.get(t);return a===void 0&&(a=new Intl.DateTimeFormat(o,e),Ck.set(t,a)),a}var Bk=new Map;function U$(o,e={}){let t=JSON.stringify([o,e]),a=Bk.get(t);return a===void 0&&(a=new Intl.NumberFormat(o,e),Bk.set(t,a)),a}var Qk=new Map;function M$(o,e={}){let{base:t,...a}=e,i=JSON.stringify([o,a]),r=Qk.get(i);return r===void 0&&(r=new Intl.RelativeTimeFormat(o,e),Qk.set(i,r)),r}var cl=null;function L$(){return cl||(cl=new Intl.DateTimeFormat().resolvedOptions().locale,cl)}var _k=new Map;function x2(o){let e=_k.get(o);return e===void 0&&(e=new Intl.DateTimeFormat(o).resolvedOptions(),_k.set(o,e)),e}var Dk=new Map;function P$(o){let e=Dk.get(o);if(!e){let t=new Intl.Locale(o);e="getWeekInfo"in t?t.getWeekInfo():t.weekInfo,"minimalDays"in e||(e={...z2,...e}),Dk.set(o,e)}return e}function F$(o){let e=o.indexOf("-x-");e!==-1&&(o=o.substring(0,e));let t=o.indexOf("-u-");if(t===-1)return[o];{let a,i;try{a=Sk(o).resolvedOptions(),i=o}catch{let c=o.substring(0,t);a=Sk(c).resolvedOptions(),i=c}let{numberingSystem:r,calendar:n}=a;return[i,r,n]}}function $$(o,e,t){return(t||e)&&(o.includes("-u-")||(o+="-u"),t&&(o+=`-ca-${t}`),e&&(o+=`-nu-${e}`)),o}function H$(o){let e=[];for(let t=1;t<=12;t++){let a=Ke.utc(2009,t,1);e.push(o(a))}return e}function G$(o){let e=[];for(let t=1;t<=7;t++){let a=Ke.utc(2016,11,13+t);e.push(o(a))}return e}function og(o,e,t,a){let i=o.listingMode();return i==="error"?null:i==="en"?t(e):a(e)}function V$(o){return o.numberingSystem&&o.numberingSystem!=="latn"?!1:o.numberingSystem==="latn"||!o.locale||o.locale.startsWith("en")||x2(o.locale).numberingSystem==="latn"}var Tk=class{constructor(e,t,a){this.padTo=a.padTo||0,this.floor=a.floor||!1;let{padTo:i,floor:r,...n}=a;if(!t||Object.keys(n).length>0){let s={useGrouping:!1,...a};a.padTo>0&&(s.minimumIntegerDigits=a.padTo),this.inf=U$(e,s)}}format(e){if(this.inf){let t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{let t=this.floor?Math.floor(e):Gk(e,3);return ho(t,this.padTo)}}},Rk=class{constructor(e,t,a){this.opts=a,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let n=-1*(e.offset/60),s=n>=0?`Etc/GMT+${n}`:`Etc/GMT${n}`;e.offset!==0&&pr.create(s).valid?(i=s,this.dt=e):(i="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let r={...this.opts};r.timeZone=r.timeZone||i,this.dtf=Sk(t,r)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(t=>{if(t.type==="timeZoneName"){let a=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:a}}else return t}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},Nk=class{constructor(e,t,a){this.opts={style:"long",...a},!t&&B2()&&(this.rtf=M$(e,a))}format(e,t){return this.rtf?this.rtf.format(e,t):pH(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}},z2={firstDay:1,minimalDays:4,weekend:[6,7]},Fe=class o{static fromOpts(e){return o.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,a,i,r=!1){let n=e||Ye.defaultLocale,s=n||(r?"en-US":L$()),c=t||Ye.defaultNumberingSystem,m=a||Ye.defaultOutputCalendar,l=Uk(i)||Ye.defaultWeekSettings;return new o(s,c,m,l,n)}static resetCache(){cl=null,Ck.clear(),Bk.clear(),Qk.clear(),_k.clear(),Dk.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:a,weekSettings:i}={}){return o.create(e,t,a,i)}constructor(e,t,a,i,r){let[n,s,c]=F$(e);this.locale=n,this.numberingSystem=t||s||null,this.outputCalendar=a||c||null,this.weekSettings=i,this.intl=$$(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=V$(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:o.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Uk(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return og(this,e,R2,()=>{let a=this.intl==="ja"||this.intl.startsWith("ja-");t&=!a;let i=t?{month:e,day:"numeric"}:{month:e},r=t?"format":"standalone";if(!this.monthsCache[r][e]){let n=a?s=>this.dtFormatter(s,i).format():s=>this.extract(s,i,"month");this.monthsCache[r][e]=H$(n)}return this.monthsCache[r][e]})}weekdays(e,t=!1){return og(this,e,U2,()=>{let a=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=G$(r=>this.extract(r,a,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return og(this,void 0,()=>M2,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ke.utc(2016,11,13,9),Ke.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return og(this,e,L2,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[Ke.utc(-40,1,1),Ke.utc(2017,1,1)].map(a=>this.extract(a,t,"era"))),this.eraCache[e]})}extract(e,t,a){let i=this.dtFormatter(e,t),r=i.formatToParts(),n=r.find(s=>s.type.toLowerCase()===a);return n?n.value:null}numberFormatter(e={}){return new Tk(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Rk(e,this.intl,t)}relFormatter(e={}){return new Nk(this.intl,this.isEnglish(),e)}listFormatter(e={}){return O$(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||x2(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Q2()?P$(this.locale):z2}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},yk=null,zt=class o extends on{static get utcInstance(){return yk===null&&(yk=new o(0)),yk}static instance(e){return e===0?o.utcInstance:new o(e)}static parseSpecifier(e){if(e){let t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new o(bg(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ul(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ul(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return ul(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}},lg=class extends on{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Kr(o,e){if(ue(o)||o===null)return e;if(o instanceof on)return o;if(X$(o)){let t=o.toLowerCase();return t==="default"?e:t==="local"||t==="system"?dl.instance:t==="utc"||t==="gmt"?zt.utcInstance:zt.parseSpecifier(t)||pr.create(o)}else return en(o)?zt.instance(o):typeof o=="object"&&"offset"in o&&typeof o.offset=="function"?o:new lg(o)}var Pk={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},CI={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Y$=Pk.hanidec.replace(/[\[|\]]/g,"").split("");function J$(o){let e=parseInt(o,10);if(isNaN(e)){e="";for(let t=0;t<o.length;t++){let a=o.charCodeAt(t);if(o[t].search(Pk.hanidec)!==-1)e+=Y$.indexOf(o[t]);else for(let i in CI){let[r,n]=CI[i];a>=r&&a<=n&&(e+=a-r)}}return parseInt(e,10)}else return e}var Ok=new Map;function W$(){Ok.clear()}function Aa({numberingSystem:o},e=""){let t=o||"latn",a=Ok.get(t);a===void 0&&(a=new Map,Ok.set(t,a));let i=a.get(e);return i===void 0&&(i=new RegExp(`${Pk[t]}${e}`),a.set(e,i)),i}var SI=()=>Date.now(),BI="system",QI=null,_I=null,DI=null,TI=60,RI,NI=null,Ye=class{static get now(){return SI}static set now(e){SI=e}static set defaultZone(e){BI=e}static get defaultZone(){return Kr(BI,dl.instance)}static get defaultLocale(){return QI}static set defaultLocale(e){QI=e}static get defaultNumberingSystem(){return _I}static set defaultNumberingSystem(e){_I=e}static get defaultOutputCalendar(){return DI}static set defaultOutputCalendar(e){DI=e}static get defaultWeekSettings(){return NI}static set defaultWeekSettings(e){NI=Uk(e)}static get twoDigitCutoffYear(){return TI}static set twoDigitCutoffYear(e){TI=e%100}static get throwOnInvalid(){return RI}static set throwOnInvalid(e){RI=e}static resetCaches(){Fe.resetCache(),pr.resetCache(),Ke.resetCache(),W$()}},wt=class{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},q2=[0,31,59,90,120,151,181,212,243,273,304,334],E2=[0,31,60,91,121,152,182,213,244,274,305,335];function Vt(o,e){return new wt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${o}, which is invalid`)}function Fk(o,e,t){let a=new Date(Date.UTC(o,e-1,t));o<100&&o>=0&&a.setUTCFullYear(a.getUTCFullYear()-1900);let i=a.getUTCDay();return i===0?7:i}function I2(o,e,t){return t+(pl(o)?E2:q2)[e-1]}function j2(o,e){let t=pl(o)?E2:q2,a=t.findIndex(r=>r<e),i=e-t[a];return{month:a+1,day:i}}function $k(o,e){return(o-e+7)%7+1}function ug(o,e=4,t=1){let{year:a,month:i,day:r}=o,n=I2(a,i,r),s=$k(Fk(a,i,r),t),c=Math.floor((n-s+14-e)/7),m;return c<1?(m=a-1,c=gl(m,e,t)):c>gl(a,e,t)?(m=a+1,c=1):m=a,{weekYear:m,weekNumber:c,weekday:s,...yg(o)}}function OI(o,e=4,t=1){let{weekYear:a,weekNumber:i,weekday:r}=o,n=$k(Fk(a,1,e),t),s=gc(a),c=i*7+r-n-7+e,m;c<1?(m=a-1,c+=gc(m)):c>s?(m=a+1,c-=gc(a)):m=a;let{month:l,day:u}=j2(m,c);return{year:m,month:l,day:u,...yg(o)}}function kk(o){let{year:e,month:t,day:a}=o,i=I2(e,t,a);return{year:e,ordinal:i,...yg(o)}}function UI(o){let{year:e,ordinal:t}=o,{month:a,day:i}=j2(e,t);return{year:e,month:a,day:i,...yg(o)}}function MI(o,e){if(!ue(o.localWeekday)||!ue(o.localWeekNumber)||!ue(o.localWeekYear)){if(!ue(o.weekday)||!ue(o.weekNumber)||!ue(o.weekYear))throw new Xr("Cannot mix locale-based week fields with ISO-based week fields");return ue(o.localWeekday)||(o.weekday=o.localWeekday),ue(o.localWeekNumber)||(o.weekNumber=o.localWeekNumber),ue(o.localWeekYear)||(o.weekYear=o.localWeekYear),delete o.localWeekday,delete o.localWeekNumber,delete o.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Z$(o,e=4,t=1){let a=hg(o.weekYear),i=Yt(o.weekNumber,1,gl(o.weekYear,e,t)),r=Yt(o.weekday,1,7);return a?i?r?!1:Vt("weekday",o.weekday):Vt("week",o.weekNumber):Vt("weekYear",o.weekYear)}function K$(o){let e=hg(o.year),t=Yt(o.ordinal,1,gc(o.year));return e?t?!1:Vt("ordinal",o.ordinal):Vt("year",o.year)}function C2(o){let e=hg(o.year),t=Yt(o.month,1,12),a=Yt(o.day,1,dg(o.year,o.month));return e?t?a?!1:Vt("day",o.day):Vt("month",o.month):Vt("year",o.year)}function S2(o){let{hour:e,minute:t,second:a,millisecond:i}=o,r=Yt(e,0,23)||e===24&&t===0&&a===0&&i===0,n=Yt(t,0,59),s=Yt(a,0,59),c=Yt(i,0,999);return r?n?s?c?!1:Vt("millisecond",i):Vt("second",a):Vt("minute",t):Vt("hour",e)}function ue(o){return typeof o>"u"}function en(o){return typeof o=="number"}function hg(o){return typeof o=="number"&&o%1===0}function X$(o){return typeof o=="string"}function eH(o){return Object.prototype.toString.call(o)==="[object Date]"}function B2(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Q2(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function oH(o){return Array.isArray(o)?o:[o]}function LI(o,e,t){if(o.length!==0)return o.reduce((a,i)=>{let r=[e(i),i];return a&&t(a[0],r[0])===a[0]?a:r},null)[1]}function tH(o,e){return e.reduce((t,a)=>(t[a]=o[a],t),{})}function hc(o,e){return Object.prototype.hasOwnProperty.call(o,e)}function Uk(o){if(o==null)return null;if(typeof o!="object")throw new Eo("Week settings must be an object");if(!Yt(o.firstDay,1,7)||!Yt(o.minimalDays,1,7)||!Array.isArray(o.weekend)||o.weekend.some(e=>!Yt(e,1,7)))throw new Eo("Invalid week settings");return{firstDay:o.firstDay,minimalDays:o.minimalDays,weekend:Array.from(o.weekend)}}function Yt(o,e,t){return hg(o)&&o>=e&&o<=t}function aH(o,e){return o-e*Math.floor(o/e)}function ho(o,e=2){let t=o<0,a;return t?a="-"+(""+-o).padStart(e,"0"):a=(""+o).padStart(e,"0"),a}function Zr(o){if(!(ue(o)||o===null||o===""))return parseInt(o,10)}function Kn(o){if(!(ue(o)||o===null||o===""))return parseFloat(o)}function Hk(o){if(!(ue(o)||o===null||o==="")){let e=parseFloat("0."+o)*1e3;return Math.floor(e)}}function Gk(o,e,t="round"){let a=10**e;switch(t){case"expand":return o>0?Math.ceil(o*a)/a:Math.floor(o*a)/a;case"trunc":return Math.trunc(o*a)/a;case"round":return Math.round(o*a)/a;case"floor":return Math.floor(o*a)/a;case"ceil":return Math.ceil(o*a)/a;default:throw new RangeError(`Value rounding ${t} is out of range`)}}function pl(o){return o%4===0&&(o%100!==0||o%400===0)}function gc(o){return pl(o)?366:365}function dg(o,e){let t=aH(e-1,12)+1,a=o+(e-t)/12;return t===2?pl(a)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function fg(o){let e=Date.UTC(o.year,o.month-1,o.day,o.hour,o.minute,o.second,o.millisecond);return o.year<100&&o.year>=0&&(e=new Date(e),e.setUTCFullYear(o.year,o.month-1,o.day)),+e}function PI(o,e,t){return-$k(Fk(o,1,e),t)+e-1}function gl(o,e=4,t=1){let a=PI(o,e,t),i=PI(o+1,e,t);return(gc(o)-a+i)/7}function Mk(o){return o>99?o:o>Ye.twoDigitCutoffYear?1900+o:2e3+o}function _2(o,e,t,a=null){let i=new Date(o),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};a&&(r.timeZone=a);let n={timeZoneName:e,...r},s=new Intl.DateTimeFormat(t,n).formatToParts(i).find(c=>c.type.toLowerCase()==="timezonename");return s?s.value:null}function bg(o,e){let t=parseInt(o,10);Number.isNaN(t)&&(t=0);let a=parseInt(e,10)||0,i=t<0||Object.is(t,-0)?-a:a;return t*60+i}function D2(o){let e=Number(o);if(typeof o=="boolean"||o===""||!Number.isFinite(e))throw new Eo(`Invalid unit value ${o}`);return e}function gg(o,e){let t={};for(let a in o)if(hc(o,a)){let i=o[a];if(i==null)continue;t[e(a)]=D2(i)}return t}function ul(o,e){let t=Math.trunc(Math.abs(o/60)),a=Math.trunc(Math.abs(o%60)),i=o>=0?"+":"-";switch(e){case"short":return`${i}${ho(t,2)}:${ho(a,2)}`;case"narrow":return`${i}${t}${a>0?`:${a}`:""}`;case"techie":return`${i}${ho(t,2)}${ho(a,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function yg(o){return tH(o,["hour","minute","second","millisecond"])}var iH=["January","February","March","April","May","June","July","August","September","October","November","December"],T2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],rH=["J","F","M","A","M","J","J","A","S","O","N","D"];function R2(o){switch(o){case"narrow":return[...rH];case"short":return[...T2];case"long":return[...iH];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var N2=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],O2=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],nH=["M","T","W","T","F","S","S"];function U2(o){switch(o){case"narrow":return[...nH];case"short":return[...O2];case"long":return[...N2];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var M2=["AM","PM"],sH=["Before Christ","Anno Domini"],cH=["BC","AD"],mH=["B","A"];function L2(o){switch(o){case"narrow":return[...mH];case"short":return[...cH];case"long":return[...sH];default:return null}}function lH(o){return M2[o.hour<12?0:1]}function uH(o,e){return U2(e)[o.weekday-1]}function dH(o,e){return R2(e)[o.month-1]}function gH(o,e){return L2(e)[o.year<0?0:1]}function pH(o,e,t="always",a=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=["hours","minutes","seconds"].indexOf(o)===-1;if(t==="auto"&&r){let u=o==="days";switch(e){case 1:return u?"tomorrow":`next ${i[o][0]}`;case-1:return u?"yesterday":`last ${i[o][0]}`;case 0:return u?"today":`this ${i[o][0]}`}}let n=Object.is(e,-0)||e<0,s=Math.abs(e),c=s===1,m=i[o],l=a?c?m[1]:m[2]||m[1]:c?i[o][0]:o;return n?`${s} ${l} ago`:`in ${s} ${l}`}function FI(o,e){let t="";for(let a of o)a.literal?t+=a.val:t+=e(a.val);return t}var hH={D:mg,DD:i2,DDD:r2,DDDD:n2,t:s2,tt:c2,ttt:m2,tttt:l2,T:u2,TT:d2,TTT:g2,TTTT:p2,f:h2,ff:b2,fff:k2,ffff:v2,F:f2,FF:y2,FFF:A2,FFFF:w2},vt=class o{static create(e,t={}){return new o(e,t)}static parseFormat(e){let t=null,a="",i=!1,r=[];for(let n=0;n<e.length;n++){let s=e.charAt(n);s==="'"?((a.length>0||i)&&r.push({literal:i||/^\s+$/.test(a),val:a===""?"'":a}),t=null,a="",i=!i):i||s===t?a+=s:(a.length>0&&r.push({literal:/^\s+$/.test(a),val:a}),a=s,t=s)}return a.length>0&&r.push({literal:i||/^\s+$/.test(a),val:a}),r}static macroTokenToFormatOpts(e){return hH[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,a=void 0){if(this.opts.forceSimple)return ho(e,t);let i={...this.opts};return t>0&&(i.padTo=t),a&&(i.signDisplay=a),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,t){let a=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",r=(g,h)=>this.loc.extract(e,g,h),n=g=>e.isOffsetFixed&&e.offset===0&&g.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,g.format):"",s=()=>a?lH(e):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(g,h)=>a?dH(e,g):r(h?{month:g}:{month:g,day:"numeric"},"month"),m=(g,h)=>a?uH(e,g):r(h?{weekday:g}:{weekday:g,month:"long",day:"numeric"},"weekday"),l=g=>{let h=o.macroTokenToFormatOpts(g);return h?this.formatWithSystemDefault(e,h):g},u=g=>a?gH(e,g):r({era:g},"era"),d=g=>{switch(g){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return n({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return n({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return n({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return s();case"d":return i?r({day:"numeric"},"day"):this.num(e.day);case"dd":return i?r({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return m("short",!0);case"cccc":return m("long",!0);case"ccccc":return m("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return m("short",!1);case"EEEE":return m("long",!1);case"EEEEE":return m("narrow",!1);case"L":return i?r({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?r({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return i?r({month:"numeric"},"month"):this.num(e.month);case"MM":return i?r({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return i?r({year:"numeric"},"year"):this.num(e.year);case"yy":return i?r({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?r({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?r({year:"numeric"},"year"):this.num(e.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(g)}};return FI(o.parseFormat(t),d)}formatDurationFromString(e,t){let a=this.opts.signMode==="negativeLargestOnly"?-1:1,i=l=>{switch(l[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},r=(l,u)=>d=>{let g=i(d);if(g){let h=u.isNegativeDuration&&g!==u.largestUnit?a:1,k;return this.opts.signMode==="negativeLargestOnly"&&g!==u.largestUnit?k="never":this.opts.signMode==="all"?k="always":k="auto",this.num(l.get(g)*h,d.length,k)}else return d},n=o.parseFormat(t),s=n.reduce((l,{literal:u,val:d})=>u?l:l.concat(d),[]),c=e.shiftTo(...s.map(i).filter(l=>l)),m={isNegativeDuration:c<0,largestUnit:Object.keys(c.values)[0]};return FI(n,r(c,m))}},P2=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function fc(...o){let e=o.reduce((t,a)=>t+a.source,"");return RegExp(`^${e}$`)}function bc(...o){return e=>o.reduce(([t,a,i],r)=>{let[n,s,c]=r(e,i);return[{...t,...n},s||a,c]},[{},null,1]).slice(0,2)}function yc(o,...e){if(o==null)return[null,null];for(let[t,a]of e){let i=t.exec(o);if(i)return a(i)}return[null,null]}function F2(...o){return(e,t)=>{let a={},i;for(i=0;i<o.length;i++)a[o[i]]=Zr(e[t+i]);return[a,null,t+i]}}var $2=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,fH=`(?:${$2.source}?(?:\\[(${P2.source})\\])?)?`,Vk=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,H2=RegExp(`${Vk.source}${fH}`),Yk=RegExp(`(?:[Tt]${H2.source})?`),bH=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,yH=/(\d{4})-?W(\d\d)(?:-?(\d))?/,kH=/(\d{4})-?(\d{3})/,AH=F2("weekYear","weekNumber","weekDay"),vH=F2("year","ordinal"),wH=/(\d{4})-(\d\d)-(\d\d)/,G2=RegExp(`${Vk.source} ?(?:${$2.source}|(${P2.source}))?`),xH=RegExp(`(?: ${G2.source})?`);function pc(o,e,t){let a=o[e];return ue(a)?t:Zr(a)}function zH(o,e){return[{year:pc(o,e),month:pc(o,e+1,1),day:pc(o,e+2,1)},null,e+3]}function kc(o,e){return[{hours:pc(o,e,0),minutes:pc(o,e+1,0),seconds:pc(o,e+2,0),milliseconds:Hk(o[e+3])},null,e+4]}function hl(o,e){let t=!o[e]&&!o[e+1],a=bg(o[e+1],o[e+2]),i=t?null:zt.instance(a);return[{},i,e+3]}function fl(o,e){let t=o[e]?pr.create(o[e]):null;return[{},t,e+1]}var qH=RegExp(`^T?${Vk.source}$`),EH=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function IH(o){let[e,t,a,i,r,n,s,c,m]=o,l=e[0]==="-",u=c&&c[0]==="-",d=(g,h=!1)=>g!==void 0&&(h||g&&l)?-g:g;return[{years:d(Kn(t)),months:d(Kn(a)),weeks:d(Kn(i)),days:d(Kn(r)),hours:d(Kn(n)),minutes:d(Kn(s)),seconds:d(Kn(c),c==="-0"),milliseconds:d(Hk(m),u)}]}var jH={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Jk(o,e,t,a,i,r,n){let s={year:e.length===2?Mk(Zr(e)):Zr(e),month:T2.indexOf(t)+1,day:Zr(a),hour:Zr(i),minute:Zr(r)};return n&&(s.second=Zr(n)),o&&(s.weekday=o.length>3?N2.indexOf(o)+1:O2.indexOf(o)+1),s}var CH=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function SH(o){let[,e,t,a,i,r,n,s,c,m,l,u]=o,d=Jk(e,i,a,t,r,n,s),g;return c?g=jH[c]:m?g=0:g=bg(l,u),[d,new zt(g)]}function BH(o){return o.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var QH=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,_H=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,DH=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function $I(o){let[,e,t,a,i,r,n,s]=o;return[Jk(e,i,a,t,r,n,s),zt.utcInstance]}function TH(o){let[,e,t,a,i,r,n,s]=o;return[Jk(e,s,t,a,i,r,n),zt.utcInstance]}var RH=fc(bH,Yk),NH=fc(yH,Yk),OH=fc(kH,Yk),UH=fc(H2),V2=bc(zH,kc,hl,fl),MH=bc(AH,kc,hl,fl),LH=bc(vH,kc,hl,fl),PH=bc(kc,hl,fl);function FH(o){return yc(o,[RH,V2],[NH,MH],[OH,LH],[UH,PH])}function $H(o){return yc(BH(o),[CH,SH])}function HH(o){return yc(o,[QH,$I],[_H,$I],[DH,TH])}function GH(o){return yc(o,[EH,IH])}var VH=bc(kc);function YH(o){return yc(o,[qH,VH])}var JH=fc(wH,xH),WH=fc(G2),ZH=bc(kc,hl,fl);function KH(o){return yc(o,[JH,V2],[WH,ZH])}var HI="Invalid Duration",Y2={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},XH={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...Y2},Gt=146097/400,lc=146097/4800,eG={years:{quarters:4,months:12,weeks:Gt/7,days:Gt,hours:Gt*24,minutes:Gt*24*60,seconds:Gt*24*60*60,milliseconds:Gt*24*60*60*1e3},quarters:{months:3,weeks:Gt/28,days:Gt/4,hours:Gt*24/4,minutes:Gt*24*60/4,seconds:Gt*24*60*60/4,milliseconds:Gt*24*60*60*1e3/4},months:{weeks:lc/7,days:lc,hours:lc*24,minutes:lc*24*60,seconds:lc*24*60*60,milliseconds:lc*24*60*60*1e3},...Y2},es=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],oG=es.slice(0).reverse();function dr(o,e,t=!1){let a={values:t?e.values:{...o.values,...e.values||{}},loc:o.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||o.conversionAccuracy,matrix:e.matrix||o.matrix};return new Ao(a)}function J2(o,e){var t;let a=(t=e.milliseconds)!=null?t:0;for(let i of oG.slice(1))e[i]&&(a+=e[i]*o[i].milliseconds);return a}function GI(o,e){let t=J2(o,e)<0?-1:1;es.reduceRight((a,i)=>{if(ue(e[i]))return a;if(a){let r=e[a]*t,n=o[i][a],s=Math.floor(r/n);e[i]+=s*t,e[a]-=s*n*t}return i},null),es.reduce((a,i)=>{if(ue(e[i]))return a;if(a){let r=e[a]%1;e[a]-=r,e[i]+=r*o[a][i]}return i},null)}function VI(o){let e={};for(let[t,a]of Object.entries(o))a!==0&&(e[t]=a);return e}var Ao=class o{constructor(e){let t=e.conversionAccuracy==="longterm"||!1,a=t?eG:XH;e.matrix&&(a=e.matrix),this.values=e.values,this.loc=e.loc||Fe.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=a,this.isLuxonDuration=!0}static fromMillis(e,t){return o.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new Eo(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new o({values:gg(e,o.normalizeUnit),loc:Fe.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(en(e))return o.fromMillis(e);if(o.isDuration(e))return e;if(typeof e=="object")return o.fromObject(e);throw new Eo(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){let[a]=GH(e);return a?o.fromObject(a,t):o.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){let[a]=YH(e);return a?o.fromObject(a,t):o.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new Eo("need to specify a reason the Duration is invalid");let a=e instanceof wt?e:new wt(e,t);if(Ye.throwOnInvalid)throw new Ik(a);return new o({invalid:a})}static normalizeUnit(e){let t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!t)throw new cg(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){let a={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?vt.create(this.loc,a).formatDurationFromString(this,e):HI}toHuman(e={}){if(!this.isValid)return HI;let t=e.showZeros!==!1,a=es.map(i=>{let r=this.values[i];return ue(r)||r===0&&!t?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(r)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(a)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Gk(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Ke.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?J2(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let t=o.fromDurationLike(e),a={};for(let i of es)(hc(t.values,i)||hc(this.values,i))&&(a[i]=t.get(i)+this.get(i));return dr(this,{values:a},!0)}minus(e){if(!this.isValid)return this;let t=o.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let a of Object.keys(this.values))t[a]=D2(e(this.values[a],a));return dr(this,{values:t},!0)}get(e){return this[o.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let t={...this.values,...gg(e,o.normalizeUnit)};return dr(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:a,matrix:i}={}){let n={loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:i,conversionAccuracy:a};return dr(this,n)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return GI(this.matrix,e),dr(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=VI(this.normalize().shiftToAll().toObject());return dr(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(n=>o.normalizeUnit(n));let t={},a={},i=this.toObject(),r;for(let n of es)if(e.indexOf(n)>=0){r=n;let s=0;for(let m in a)s+=this.matrix[m][n]*a[m],a[m]=0;en(i[n])&&(s+=i[n]);let c=Math.trunc(s);t[n]=c,a[n]=(s*1e3-c*1e3)/1e3}else en(i[n])&&(a[n]=i[n]);for(let n in a)a[n]!==0&&(t[r]+=n===r?a[n]:a[n]/this.matrix[r][n]);return GI(this.matrix,t),dr(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return dr(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=VI(this.values);return dr(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(a,i){return a===void 0||a===0?i===void 0||i===0:a===i}for(let a of es)if(!t(this.values[a],e.values[a]))return!1;return!0}},uc="Invalid Interval";function tG(o,e){return!o||!o.isValid?ts.invalid("missing or invalid start"):!e||!e.isValid?ts.invalid("missing or invalid end"):e<o?ts.invalid("end before start",`The end of an interval must be after its start, but you had start=${o.toISO()} and end=${e.toISO()}`):null}var ts=class o{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new Eo("need to specify a reason the Interval is invalid");let a=e instanceof wt?e:new wt(e,t);if(Ye.throwOnInvalid)throw new Ek(a);return new o({invalid:a})}static fromDateTimes(e,t){let a=sl(e),i=sl(t),r=tG(a,i);return r??new o({start:a,end:i})}static after(e,t){let a=Ao.fromDurationLike(t),i=sl(e);return o.fromDateTimes(i,i.plus(a))}static before(e,t){let a=Ao.fromDurationLike(t),i=sl(e);return o.fromDateTimes(i.minus(a),i)}static fromISO(e,t){let[a,i]=(e||"").split("/",2);if(a&&i){let r,n;try{r=Ke.fromISO(a,t),n=r.isValid}catch{n=!1}let s,c;try{s=Ke.fromISO(i,t),c=s.isValid}catch{c=!1}if(n&&c)return o.fromDateTimes(r,s);if(n){let m=Ao.fromISO(i,t);if(m.isValid)return o.after(r,m)}else if(c){let m=Ao.fromISO(a,t);if(m.isValid)return o.before(s,m)}}return o.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;let a=this.start.startOf(e,t),i;return t!=null&&t.useLocaleWeeks?i=this.end.reconfigure({locale:a.locale}):i=this.end,i=i.startOf(e,t),Math.floor(i.diff(a,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:t}={}){return this.isValid?o.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];let t=e.map(sl).filter(n=>this.contains(n)).sort((n,s)=>n.toMillis()-s.toMillis()),a=[],{s:i}=this,r=0;for(;i<this.e;){let n=t[r]||this.e,s=+n>+this.e?this.e:n;a.push(o.fromDateTimes(i,s)),i=s,r+=1}return a}splitBy(e){let t=Ao.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:a}=this,i=1,r,n=[];for(;a<this.e;){let s=this.start.plus(t.mapUnits(c=>c*i));r=+s>+this.e?this.e:s,n.push(o.fromDateTimes(a,r)),a=r,i+=1}return n}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let t=this.s>e.s?this.s:e.s,a=this.e<e.e?this.e:e.e;return t>=a?null:o.fromDateTimes(t,a)}union(e){if(!this.isValid)return this;let t=this.s<e.s?this.s:e.s,a=this.e>e.e?this.e:e.e;return o.fromDateTimes(t,a)}static merge(e){let[t,a]=e.sort((i,r)=>i.s-r.s).reduce(([i,r],n)=>r?r.overlaps(n)||r.abutsStart(n)?[i,r.union(n)]:[i.concat([r]),n]:[i,n],[[],null]);return a&&t.push(a),t}static xor(e){let t=null,a=0,i=[],r=e.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),n=Array.prototype.concat(...r),s=n.sort((c,m)=>c.time-m.time);for(let c of s)a+=c.type==="s"?1:-1,a===1?t=c.time:(t&&+t!=+c.time&&i.push(o.fromDateTimes(t,c.time)),t=null);return o.merge(i)}difference(...e){return o.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:uc}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=mg,t={}){return this.isValid?vt.create(this.s.loc.clone(t),e).formatInterval(this):uc}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:uc}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:uc}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:uc}toFormat(e,{separator:t=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:uc}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Ao.invalid(this.invalidReason)}mapEndpoints(e){return o.fromDateTimes(e(this.s),e(this.e))}},os=class{static hasDST(e=Ye.defaultZone){let t=Ke.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return pr.isValidZone(e)}static normalizeZone(e){return Kr(e,Ye.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Fe.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Fe.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Fe.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:a=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||Fe.create(t,a,r)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:a=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||Fe.create(t,a,r)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:a=null,locObj:i=null}={}){return(i||Fe.create(t,a,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:a=null,locObj:i=null}={}){return(i||Fe.create(t,a,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Fe.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Fe.create(t,null,"gregory").eras(e)}static features(){return{relative:B2(),localeWeek:Q2()}}};function YI(o,e){let t=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=t(e)-t(o);return Math.floor(Ao.fromMillis(a).as("days"))}function aG(o,e,t){let a=[["years",(c,m)=>m.year-c.year],["quarters",(c,m)=>m.quarter-c.quarter+(m.year-c.year)*4],["months",(c,m)=>m.month-c.month+(m.year-c.year)*12],["weeks",(c,m)=>{let l=YI(c,m);return(l-l%7)/7}],["days",YI]],i={},r=o,n,s;for(let[c,m]of a)t.indexOf(c)>=0&&(n=c,i[c]=m(o,e),s=r.plus(i),s>e?(i[c]--,o=r.plus(i),o>e&&(s=o,i[c]--,o=r.plus(i))):o=s);return[o,i,s,n]}function iG(o,e,t,a){let[i,r,n,s]=aG(o,e,t),c=e-i,m=t.filter(u=>["hours","minutes","seconds","milliseconds"].indexOf(u)>=0);m.length===0&&(n<e&&(n=i.plus({[s]:1})),n!==i&&(r[s]=(r[s]||0)+c/(n-i)));let l=Ao.fromObject(r,a);return m.length>0?Ao.fromMillis(c,a).shiftTo(...m).plus(l):l}var rG="missing Intl.DateTimeFormat.formatToParts support";function _e(o,e=t=>t){return{regex:o,deser:([t])=>e(J$(t))}}var nG="\xA0",W2=`[ ${nG}]`,Z2=new RegExp(W2,"g");function sG(o){return o.replace(/\./g,"\\.?").replace(Z2,W2)}function JI(o){return o.replace(/\./g,"").replace(Z2," ").toLowerCase()}function va(o,e){return o===null?null:{regex:RegExp(o.map(sG).join("|")),deser:([t])=>o.findIndex(a=>JI(t)===JI(a))+e}}function WI(o,e){return{regex:o,deser:([,t,a])=>bg(t,a),groups:e}}function tg(o){return{regex:o,deser:([e])=>e}}function cG(o){return o.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function mG(o,e){let t=Aa(e),a=Aa(e,"{2}"),i=Aa(e,"{3}"),r=Aa(e,"{4}"),n=Aa(e,"{6}"),s=Aa(e,"{1,2}"),c=Aa(e,"{1,3}"),m=Aa(e,"{1,6}"),l=Aa(e,"{1,9}"),u=Aa(e,"{2,4}"),d=Aa(e,"{4,6}"),g=w=>({regex:RegExp(cG(w.val)),deser:([x])=>x,literal:!0}),k=(w=>{if(o.literal)return g(w);switch(w.val){case"G":return va(e.eras("short"),0);case"GG":return va(e.eras("long"),0);case"y":return _e(m);case"yy":return _e(u,Mk);case"yyyy":return _e(r);case"yyyyy":return _e(d);case"yyyyyy":return _e(n);case"M":return _e(s);case"MM":return _e(a);case"MMM":return va(e.months("short",!0),1);case"MMMM":return va(e.months("long",!0),1);case"L":return _e(s);case"LL":return _e(a);case"LLL":return va(e.months("short",!1),1);case"LLLL":return va(e.months("long",!1),1);case"d":return _e(s);case"dd":return _e(a);case"o":return _e(c);case"ooo":return _e(i);case"HH":return _e(a);case"H":return _e(s);case"hh":return _e(a);case"h":return _e(s);case"mm":return _e(a);case"m":return _e(s);case"q":return _e(s);case"qq":return _e(a);case"s":return _e(s);case"ss":return _e(a);case"S":return _e(c);case"SSS":return _e(i);case"u":return tg(l);case"uu":return tg(s);case"uuu":return _e(t);case"a":return va(e.meridiems(),0);case"kkkk":return _e(r);case"kk":return _e(u,Mk);case"W":return _e(s);case"WW":return _e(a);case"E":case"c":return _e(t);case"EEE":return va(e.weekdays("short",!1),1);case"EEEE":return va(e.weekdays("long",!1),1);case"ccc":return va(e.weekdays("short",!0),1);case"cccc":return va(e.weekdays("long",!0),1);case"Z":case"ZZ":return WI(new RegExp(`([+-]${s.source})(?::(${a.source}))?`),2);case"ZZZ":return WI(new RegExp(`([+-]${s.source})(${a.source})?`),2);case"z":return tg(/[a-z_+-/]{1,256}?/i);case" ":return tg(/[^\S\n\r]/);default:return g(w)}})(o)||{invalidReason:rG};return k.token=o,k}var lG={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function uG(o,e,t){let{type:a,value:i}=o;if(a==="literal"){let c=/^\s+$/.test(i);return{literal:!c,val:c?" ":i}}let r=e[a],n=a;a==="hour"&&(e.hour12!=null?n=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?n="hour12":n="hour24":n=t.hour12?"hour12":"hour24");let s=lG[n];if(typeof s=="object"&&(s=s[r]),s)return{literal:!1,val:s}}function dG(o){return[`^${o.map(t=>t.regex).reduce((t,a)=>`${t}(${a.source})`,"")}$`,o]}function gG(o,e,t){let a=o.match(e);if(a){let i={},r=1;for(let n in t)if(hc(t,n)){let s=t[n],c=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(a.slice(r,r+c))),r+=c}return[a,i]}else return[a,{}]}function pG(o){let e=r=>{switch(r){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},t=null,a;return ue(o.z)||(t=pr.create(o.z)),ue(o.Z)||(t||(t=new zt(o.Z)),a=o.Z),ue(o.q)||(o.M=(o.q-1)*3+1),ue(o.h)||(o.h<12&&o.a===1?o.h+=12:o.h===12&&o.a===0&&(o.h=0)),o.G===0&&o.y&&(o.y=-o.y),ue(o.u)||(o.S=Hk(o.u)),[Object.keys(o).reduce((r,n)=>{let s=e(n);return s&&(r[s]=o[n]),r},{}),t,a]}var Ak=null;function hG(){return Ak||(Ak=Ke.fromMillis(1555555555555)),Ak}function fG(o,e){if(o.literal)return o;let t=vt.macroTokenToFormatOpts(o.val),a=ej(t,e);return a==null||a.includes(void 0)?o:a}function K2(o,e){return Array.prototype.concat(...o.map(t=>fG(t,e)))}var pg=class{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=K2(vt.parseFormat(t),e),this.units=this.tokens.map(a=>mG(a,e)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,i]=dG(this.units);this.regex=RegExp(a,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){let[t,a]=gG(e,this.regex,this.handlers),[i,r,n]=a?pG(a):[null,null,void 0];if(hc(a,"a")&&hc(a,"H"))throw new Xr("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:a,result:i,zone:r,specificOffset:n}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function X2(o,e,t){return new pg(o,t).explainFromTokens(e)}function bG(o,e,t){let{result:a,zone:i,specificOffset:r,invalidReason:n}=X2(o,e,t);return[a,i,r,n]}function ej(o,e){if(!o)return null;let a=vt.create(e,o).dtFormatter(hG()),i=a.formatToParts(),r=a.resolvedOptions();return i.map(n=>uG(n,o,r))}var vk="Invalid DateTime",ZI=864e13;function ml(o){return new wt("unsupported zone",`the zone "${o.name}" is not supported`)}function wk(o){return o.weekData===null&&(o.weekData=ug(o.c)),o.weekData}function xk(o){return o.localWeekData===null&&(o.localWeekData=ug(o.c,o.loc.getMinDaysInFirstWeek(),o.loc.getStartOfWeek())),o.localWeekData}function Xn(o,e){let t={ts:o.ts,zone:o.zone,c:o.c,o:o.o,loc:o.loc,invalid:o.invalid};return new Ke({...t,...e,old:t})}function oj(o,e,t){let a=o-e*60*1e3,i=t.offset(a);if(e===i)return[a,e];a-=(i-e)*60*1e3;let r=t.offset(a);return i===r?[a,i]:[o-Math.min(i,r)*60*1e3,Math.max(i,r)]}function ag(o,e){o+=e*60*1e3;let t=new Date(o);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function rg(o,e,t){return oj(fg(o),e,t)}function KI(o,e){let t=o.o,a=o.c.year+Math.trunc(e.years),i=o.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,r={...o.c,year:a,month:i,day:Math.min(o.c.day,dg(a,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},n=Ao.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=fg(r),[c,m]=oj(s,t,o.zone);return n!==0&&(c+=n,m=o.zone.offset(c)),{ts:c,o:m}}function dc(o,e,t,a,i,r){let{setZone:n,zone:s}=t;if(o&&Object.keys(o).length!==0||e){let c=e||s,m=Ke.fromObject(o,{...t,zone:c,specificOffset:r});return n?m:m.setZone(s)}else return Ke.invalid(new wt("unparsable",`the input "${i}" can't be parsed as ${a}`))}function ig(o,e,t=!0){return o.isValid?vt.create(Fe.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(o,e):null}function zk(o,e,t){let a=o.c.year>9999||o.c.year<0,i="";if(a&&o.c.year>=0&&(i+="+"),i+=ho(o.c.year,a?6:4),t==="year")return i;if(e){if(i+="-",i+=ho(o.c.month),t==="month")return i;i+="-"}else if(i+=ho(o.c.month),t==="month")return i;return i+=ho(o.c.day),i}function XI(o,e,t,a,i,r,n){let s=!t||o.c.millisecond!==0||o.c.second!==0,c="";switch(n){case"day":case"month":case"year":break;default:if(c+=ho(o.c.hour),n==="hour")break;if(e){if(c+=":",c+=ho(o.c.minute),n==="minute")break;s&&(c+=":",c+=ho(o.c.second))}else{if(c+=ho(o.c.minute),n==="minute")break;s&&(c+=ho(o.c.second))}if(n==="second")break;s&&(!a||o.c.millisecond!==0)&&(c+=".",c+=ho(o.c.millisecond,3))}return i&&(o.isOffsetFixed&&o.offset===0&&!r?c+="Z":o.o<0?(c+="-",c+=ho(Math.trunc(-o.o/60)),c+=":",c+=ho(Math.trunc(-o.o%60))):(c+="+",c+=ho(Math.trunc(o.o/60)),c+=":",c+=ho(Math.trunc(o.o%60)))),r&&(c+="["+o.zone.ianaName+"]"),c}var tj={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},yG={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},kG={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ng=["year","month","day","hour","minute","second","millisecond"],AG=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],vG=["year","ordinal","hour","minute","second","millisecond"];function sg(o){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[o.toLowerCase()];if(!e)throw new cg(o);return e}function e2(o){switch(o.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return sg(o)}}function wG(o){if(ll===void 0&&(ll=Ye.now()),o.type!=="iana")return o.offset(ll);let e=o.name,t=Lk.get(e);return t===void 0&&(t=o.offset(ll),Lk.set(e,t)),t}function o2(o,e){let t=Kr(e.zone,Ye.defaultZone);if(!t.isValid)return Ke.invalid(ml(t));let a=Fe.fromObject(e),i,r;if(ue(o.year))i=Ye.now();else{for(let c of ng)ue(o[c])&&(o[c]=tj[c]);let n=C2(o)||S2(o);if(n)return Ke.invalid(n);let s=wG(t);[i,r]=rg(o,s,t)}return new Ke({ts:i,zone:t,loc:a,o:r})}function t2(o,e,t){let a=ue(t.round)?!0:t.round,i=ue(t.rounding)?"trunc":t.rounding,r=(s,c)=>(s=Gk(s,a||t.calendary?0:2,t.calendary?"round":i),e.loc.clone(t).relFormatter(t).format(s,c)),n=s=>t.calendary?e.hasSame(o,s)?0:e.startOf(s).diff(o.startOf(s),s).get(s):e.diff(o,s).get(s);if(t.unit)return r(n(t.unit),t.unit);for(let s of t.units){let c=n(s);if(Math.abs(c)>=1)return r(c,s)}return r(o>e?-0:0,t.units[t.units.length-1])}function a2(o){let e={},t;return o.length>0&&typeof o[o.length-1]=="object"?(e=o[o.length-1],t=Array.from(o).slice(0,o.length-1)):t=Array.from(o),[e,t]}var ll,Lk=new Map,Ke=class o{constructor(e){let t=e.zone||Ye.defaultZone,a=e.invalid||(Number.isNaN(e.ts)?new wt("invalid input"):null)||(t.isValid?null:ml(t));this.ts=ue(e.ts)?Ye.now():e.ts;let i=null,r=null;if(!a)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[i,r]=[e.old.c,e.old.o];else{let s=en(e.o)&&!e.old?e.o:t.offset(this.ts);i=ag(this.ts,s),a=Number.isNaN(i.year)?new wt("invalid input"):null,i=a?null:i,r=a?null:s}this._zone=t,this.loc=e.loc||Fe.create(),this.invalid=a,this.weekData=null,this.localWeekData=null,this.c=i,this.o=r,this.isLuxonDateTime=!0}static now(){return new o({})}static local(){let[e,t]=a2(arguments),[a,i,r,n,s,c,m]=t;return o2({year:a,month:i,day:r,hour:n,minute:s,second:c,millisecond:m},e)}static utc(){let[e,t]=a2(arguments),[a,i,r,n,s,c,m]=t;return e.zone=zt.utcInstance,o2({year:a,month:i,day:r,hour:n,minute:s,second:c,millisecond:m},e)}static fromJSDate(e,t={}){let a=eH(e)?e.valueOf():NaN;if(Number.isNaN(a))return o.invalid("invalid input");let i=Kr(t.zone,Ye.defaultZone);return i.isValid?new o({ts:a,zone:i,loc:Fe.fromObject(t)}):o.invalid(ml(i))}static fromMillis(e,t={}){if(en(e))return e<-ZI||e>ZI?o.invalid("Timestamp out of range"):new o({ts:e,zone:Kr(t.zone,Ye.defaultZone),loc:Fe.fromObject(t)});throw new Eo(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(en(e))return new o({ts:e*1e3,zone:Kr(t.zone,Ye.defaultZone),loc:Fe.fromObject(t)});throw new Eo("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};let a=Kr(t.zone,Ye.defaultZone);if(!a.isValid)return o.invalid(ml(a));let i=Fe.fromObject(t),r=gg(e,e2),{minDaysInFirstWeek:n,startOfWeek:s}=MI(r,i),c=Ye.now(),m=ue(t.specificOffset)?a.offset(c):t.specificOffset,l=!ue(r.ordinal),u=!ue(r.year),d=!ue(r.month)||!ue(r.day),g=u||d,h=r.weekYear||r.weekNumber;if((g||l)&&h)throw new Xr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&l)throw new Xr("Can't mix ordinal dates with month/day");let k=h||r.weekday&&!g,w,x,E=ag(c,m);k?(w=AG,x=yG,E=ug(E,n,s)):l?(w=vG,x=kG,E=kk(E)):(w=ng,x=tj);let q=!1;for(let ve of w){let xe=r[ve];ue(xe)?q?r[ve]=x[ve]:r[ve]=E[ve]:q=!0}let _=k?Z$(r,n,s):l?K$(r):C2(r),D=_||S2(r);if(D)return o.invalid(D);let H=k?OI(r,n,s):l?UI(r):r,[J,X]=rg(H,m,a),Y=new o({ts:J,zone:a,o:X,loc:i});return r.weekday&&g&&e.weekday!==Y.weekday?o.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${Y.toISO()}`):Y.isValid?Y:o.invalid(Y.invalid)}static fromISO(e,t={}){let[a,i]=FH(e);return dc(a,i,t,"ISO 8601",e)}static fromRFC2822(e,t={}){let[a,i]=$H(e);return dc(a,i,t,"RFC 2822",e)}static fromHTTP(e,t={}){let[a,i]=HH(e);return dc(a,i,t,"HTTP",t)}static fromFormat(e,t,a={}){if(ue(e)||ue(t))throw new Eo("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:r=null}=a,n=Fe.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0}),[s,c,m,l]=bG(n,e,t);return l?o.invalid(l):dc(s,c,a,`format ${t}`,e,m)}static fromString(e,t,a={}){return o.fromFormat(e,t,a)}static fromSQL(e,t={}){let[a,i]=KH(e);return dc(a,i,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new Eo("need to specify a reason the DateTime is invalid");let a=e instanceof wt?e:new wt(e,t);if(Ye.throwOnInvalid)throw new qk(a);return new o({invalid:a})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let a=ej(e,Fe.fromObject(t));return a?a.map(i=>i?i.val:null).join(""):null}static expandFormat(e,t={}){return K2(vt.parseFormat(e),Fe.fromObject(t)).map(i=>i.val).join("")}static resetCache(){ll=void 0,Lk.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?wk(this).weekYear:NaN}get weekNumber(){return this.isValid?wk(this).weekNumber:NaN}get weekday(){return this.isValid?wk(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?xk(this).weekday:NaN}get localWeekNumber(){return this.isValid?xk(this).weekNumber:NaN}get localWeekYear(){return this.isValid?xk(this).weekYear:NaN}get ordinal(){return this.isValid?kk(this.c).ordinal:NaN}get monthShort(){return this.isValid?os.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?os.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?os.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?os.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,t=6e4,a=fg(this.c),i=this.zone.offset(a-e),r=this.zone.offset(a+e),n=this.zone.offset(a-i*t),s=this.zone.offset(a-r*t);if(n===s)return[this];let c=a-n*t,m=a-s*t,l=ag(c,n),u=ag(m,s);return l.hour===u.hour&&l.minute===u.minute&&l.second===u.second&&l.millisecond===u.millisecond?[Xn(this,{ts:c}),Xn(this,{ts:m})]:[this]}get isInLeapYear(){return pl(this.year)}get daysInMonth(){return dg(this.year,this.month)}get daysInYear(){return this.isValid?gc(this.year):NaN}get weeksInWeekYear(){return this.isValid?gl(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?gl(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:a,calendar:i}=vt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:a,outputCalendar:i}}toUTC(e=0,t={}){return this.setZone(zt.instance(e),t)}toLocal(){return this.setZone(Ye.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:a=!1}={}){if(e=Kr(e,Ye.defaultZone),e.equals(this.zone))return this;if(e.isValid){let i=this.ts;if(t||a){let r=e.offset(this.ts),n=this.toObject();[i]=rg(n,r,e)}return Xn(this,{ts:i,zone:e})}else return o.invalid(ml(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:a}={}){let i=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:a});return Xn(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let t=gg(e,e2),{minDaysInFirstWeek:a,startOfWeek:i}=MI(t,this.loc),r=!ue(t.weekYear)||!ue(t.weekNumber)||!ue(t.weekday),n=!ue(t.ordinal),s=!ue(t.year),c=!ue(t.month)||!ue(t.day),m=s||c,l=t.weekYear||t.weekNumber;if((m||n)&&l)throw new Xr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&n)throw new Xr("Can't mix ordinal dates with month/day");let u;r?u=OI({...ug(this.c,a,i),...t},a,i):ue(t.ordinal)?(u={...this.toObject(),...t},ue(t.day)&&(u.day=Math.min(dg(u.year,u.month),u.day))):u=UI({...kk(this.c),...t});let[d,g]=rg(u,this.o,this.zone);return Xn(this,{ts:d,o:g})}plus(e){if(!this.isValid)return this;let t=Ao.fromDurationLike(e);return Xn(this,KI(this,t))}minus(e){if(!this.isValid)return this;let t=Ao.fromDurationLike(e).negate();return Xn(this,KI(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;let a={},i=Ao.normalizeUnit(e);switch(i){case"years":a.month=1;case"quarters":case"months":a.day=1;case"weeks":case"days":a.hour=0;case"hours":a.minute=0;case"minutes":a.second=0;case"seconds":a.millisecond=0;break}if(i==="weeks")if(t){let r=this.loc.getStartOfWeek(),{weekday:n}=this;n<r&&(a.weekNumber=this.weekNumber-1),a.weekday=r}else a.weekday=1;if(i==="quarters"){let r=Math.ceil(this.month/3);a.month=(r-1)*3+1}return this.set(a)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?vt.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):vk}toLocaleString(e=mg,t={}){return this.isValid?vt.create(this.loc.clone(t),e).formatDateTime(this):vk}toLocaleParts(e={}){return this.isValid?vt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:a=!1,includeOffset:i=!0,extendedZone:r=!1,precision:n="milliseconds"}={}){if(!this.isValid)return null;n=sg(n);let s=e==="extended",c=zk(this,s,n);return ng.indexOf(n)>=3&&(c+="T"),c+=XI(this,s,t,a,i,r,n),c}toISODate({format:e="extended",precision:t="day"}={}){return this.isValid?zk(this,e==="extended",sg(t)):null}toISOWeekDate(){return ig(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:a=!0,includePrefix:i=!1,extendedZone:r=!1,format:n="extended",precision:s="milliseconds"}={}){return this.isValid?(s=sg(s),(i&&ng.indexOf(s)>=3?"T":"")+XI(this,n==="extended",t,e,a,r,s)):null}toRFC2822(){return ig(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ig(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?zk(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:a=!0}={}){let i="HH:mm:ss.SSS";return(t||e)&&(a&&(i+=" "),t?i+="z":e&&(i+="ZZ")),ig(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():vk}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",a={}){if(!this.isValid||!e.isValid)return Ao.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...a},r=oH(t).map(Ao.normalizeUnit),n=e.valueOf()>this.valueOf(),s=n?this:e,c=n?e:this,m=iG(s,c,r,i);return n?m.negate():m}diffNow(e="milliseconds",t={}){return this.diff(o.now(),e,t)}until(e){return this.isValid?ts.fromDateTimes(this,e):this}hasSame(e,t,a){if(!this.isValid)return!1;let i=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t,a)<=i&&i<=r.endOf(t,a)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let t=e.base||o.fromObject({},{zone:this.zone}),a=e.padding?this<t?-e.padding:e.padding:0,i=["years","months","days","hours","minutes","seconds"],r=e.unit;return Array.isArray(e.unit)&&(i=e.unit,r=void 0),t2(t,this.plus(a),{...e,numeric:"always",units:i,unit:r})}toRelativeCalendar(e={}){return this.isValid?t2(e.base||o.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(o.isDateTime))throw new Eo("min requires all arguments be DateTimes");return LI(e,t=>t.valueOf(),Math.min)}static max(...e){if(!e.every(o.isDateTime))throw new Eo("max requires all arguments be DateTimes");return LI(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,a={}){let{locale:i=null,numberingSystem:r=null}=a,n=Fe.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0});return X2(n,e,t)}static fromStringExplain(e,t,a={}){return o.fromFormatExplain(e,t,a)}static buildFormatParser(e,t={}){let{locale:a=null,numberingSystem:i=null}=t,r=Fe.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return new pg(r,e)}static fromFormatParser(e,t,a={}){if(ue(e)||ue(t))throw new Eo("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:r=null}=a,n=Fe.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0});if(!n.equals(t.locale))throw new Eo(`fromFormatParser called with a locale of ${n}, but the format parser was created for ${t.locale}`);let{result:s,zone:c,specificOffset:m,invalidReason:l}=t.explainFromTokens(e);return l?o.invalid(l):dc(s,c,a,`format ${t.format}`,e,m)}static get DATE_SHORT(){return mg}static get DATE_MED(){return i2}static get DATE_MED_WITH_WEEKDAY(){return Q$}static get DATE_FULL(){return r2}static get DATE_HUGE(){return n2}static get TIME_SIMPLE(){return s2}static get TIME_WITH_SECONDS(){return c2}static get TIME_WITH_SHORT_OFFSET(){return m2}static get TIME_WITH_LONG_OFFSET(){return l2}static get TIME_24_SIMPLE(){return u2}static get TIME_24_WITH_SECONDS(){return d2}static get TIME_24_WITH_SHORT_OFFSET(){return g2}static get TIME_24_WITH_LONG_OFFSET(){return p2}static get DATETIME_SHORT(){return h2}static get DATETIME_SHORT_WITH_SECONDS(){return f2}static get DATETIME_MED(){return b2}static get DATETIME_MED_WITH_SECONDS(){return y2}static get DATETIME_MED_WITH_WEEKDAY(){return _$}static get DATETIME_FULL(){return k2}static get DATETIME_FULL_WITH_SECONDS(){return A2}static get DATETIME_HUGE(){return v2}static get DATETIME_HUGE_WITH_SECONDS(){return w2}};function sl(o){if(Ke.isDateTime(o))return o;if(o&&o.valueOf&&en(o.valueOf()))return Ke.fromJSDate(o);if(o&&typeof o=="object")return Ke.fromObject(o);throw new Eo(`Unknown datetime argument: ${o}, of type ${typeof o}`)}var xG="3.7.2";qt.DateTime=Ke;qt.Duration=Ao;qt.FixedOffsetZone=zt;qt.IANAZone=pr;qt.Info=os;qt.Interval=ts;qt.InvalidZone=lg;qt.Settings=Ye;qt.SystemZone=dl;qt.VERSION=xG;qt.Zone=on});var vg=f(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.CronDate=Wo.DAYS_IN_MONTH=Wo.DateMathOp=Wo.TimeUnit=void 0;var as=aj(),No;(function(o){o.Second="Second",o.Minute="Minute",o.Hour="Hour",o.Day="Day",o.Month="Month",o.Year="Year"})(No||(Wo.TimeUnit=No={}));var kg;(function(o){o.Add="Add",o.Subtract="Subtract"})(kg||(Wo.DateMathOp=kg={}));Wo.DAYS_IN_MONTH=Object.freeze([31,29,31,30,31,30,31,31,30,31,30,31]);var Ag=class o{#e;#o=null;#a=null;#i={add:{[No.Year]:this.addYear.bind(this),[No.Month]:this.addMonth.bind(this),[No.Day]:this.addDay.bind(this),[No.Hour]:this.addHour.bind(this),[No.Minute]:this.addMinute.bind(this),[No.Second]:this.addSecond.bind(this)},subtract:{[No.Year]:this.subtractYear.bind(this),[No.Month]:this.subtractMonth.bind(this),[No.Day]:this.subtractDay.bind(this),[No.Hour]:this.subtractHour.bind(this),[No.Minute]:this.subtractMinute.bind(this),[No.Second]:this.subtractSecond.bind(this)}};constructor(e,t){let a={zone:t};if(e?e instanceof o?(this.#e=e.#e,this.#o=e.#o,this.#a=e.#a):e instanceof Date?this.#e=as.DateTime.fromJSDate(e,a):typeof e=="number"?this.#e=as.DateTime.fromMillis(e,a):(this.#e=as.DateTime.fromISO(e,a),this.#e.isValid||(this.#e=as.DateTime.fromRFC2822(e,a)),this.#e.isValid||(this.#e=as.DateTime.fromSQL(e,a)),this.#e.isValid||(this.#e=as.DateTime.fromFormat(e,"EEE, d MMM yyyy HH:mm:ss",a))):this.#e=as.DateTime.local(),!this.#e.isValid)throw new Error(`CronDate: unhandled timestamp: ${e}`);t&&t!==this.#e.zoneName&&(this.#e=this.#e.setZone(t))}static#r(e){return e%4===0&&e%100!==0||e%400===0}get dstStart(){return this.#o}set dstStart(e){this.#o=e}get dstEnd(){return this.#a}set dstEnd(e){this.#a=e}addYear(){this.#e=this.#e.plus({years:1})}addMonth(){this.#e=this.#e.plus({months:1}).startOf("month")}addDay(){this.#e=this.#e.plus({days:1}).startOf("day")}addHour(){this.#e=this.#e.plus({hours:1}).startOf("hour")}addMinute(){this.#e=this.#e.plus({minutes:1}).startOf("minute")}addSecond(){this.#e=this.#e.plus({seconds:1})}subtractYear(){this.#e=this.#e.minus({years:1})}subtractMonth(){this.#e=this.#e.minus({months:1}).endOf("month").startOf("second")}subtractDay(){this.#e=this.#e.minus({days:1}).endOf("day").startOf("second")}subtractHour(){this.#e=this.#e.minus({hours:1}).endOf("hour").startOf("second")}subtractMinute(){this.#e=this.#e.minus({minutes:1}).endOf("minute").startOf("second")}subtractSecond(){this.#e=this.#e.minus({seconds:1})}addUnit(e){this.#i.add[e]()}subtractUnit(e){this.#i.subtract[e]()}invokeDateOperation(e,t){if(e===kg.Add){this.addUnit(t);return}if(e===kg.Subtract){this.subtractUnit(t);return}throw new Error(`Invalid verb: ${e}`)}getDate(){return this.#e.day}getFullYear(){return this.#e.year}getDay(){let e=this.#e.weekday;return e===7?0:e}getMonth(){return this.#e.month-1}getHours(){return this.#e.hour}getMinutes(){return this.#e.minute}getSeconds(){return this.#e.second}getMilliseconds(){return this.#e.millisecond}getUTCOffset(){return this.#e.offset}setStartOfDay(){this.#e=this.#e.startOf("day")}setEndOfDay(){this.#e=this.#e.endOf("day")}getTime(){return this.#e.valueOf()}getUTCDate(){return this.#t().day}getUTCFullYear(){return this.#t().year}getUTCDay(){let e=this.#t().weekday;return e===7?0:e}getUTCMonth(){return this.#t().month-1}getUTCHours(){return this.#t().hour}getUTCMinutes(){return this.#t().minute}getUTCSeconds(){return this.#t().second}toISOString(){return this.#e.toUTC().toISO()}toJSON(){return this.#e.toJSON()}setDate(e){this.#e=this.#e.set({day:e})}setFullYear(e){this.#e=this.#e.set({year:e})}setDay(e){this.#e=this.#e.set({weekday:e})}setMonth(e){this.#e=this.#e.set({month:e+1})}setHours(e){this.#e=this.#e.set({hour:e})}setMinutes(e){this.#e=this.#e.set({minute:e})}setSeconds(e){this.#e=this.#e.set({second:e})}setMilliseconds(e){this.#e=this.#e.set({millisecond:e})}toString(){return this.toDate().toString()}toDate(){return this.#e.toJSDate()}isLastDayOfMonth(){let{day:e,month:t}=this.#e;if(t===2){let a=o.#r(this.#e.year);return e===Wo.DAYS_IN_MONTH[t-1]-(a?0:1)}return e===Wo.DAYS_IN_MONTH[t-1]}isLastWeekdayOfMonth(){let{day:e,month:t}=this.#e,a;return t===2?a=Wo.DAYS_IN_MONTH[t-1]-(o.#r(this.#e.year)?0:1):a=Wo.DAYS_IN_MONTH[t-1],e>a-7}applyDateOperation(e,t,a){if(t===No.Month||t===No.Day){this.invokeDateOperation(e,t);return}let i=this.getHours();this.invokeDateOperation(e,t);let r=this.getHours(),n=r-i;n===2?a!==24&&(this.dstStart=r):n===0&&this.getMinutes()===0&&this.getSeconds()===0&&a!==24&&(this.dstEnd=r)}#t(){return this.#e.toUTC()}};Wo.CronDate=Ag;Wo.default=Ag});var ij=f(wg=>{"use strict";Object.defineProperty(wg,"__esModule",{value:!0});wg.CronMonth=void 0;var zG=vg(),qG=Wr(),EG=1,IG=12,jG=Object.freeze([]),Wk=class extends qG.CronField{static get min(){return EG}static get max(){return IG}static get chars(){return jG}static get daysInMonth(){return zG.DAYS_IN_MONTH}constructor(e,t){super(e,t),this.validate()}get values(){return super.values}};wg.CronMonth=Wk});var rj=f(xg=>{"use strict";Object.defineProperty(xg,"__esModule",{value:!0});xg.CronSecond=void 0;var CG=Wr(),SG=0,BG=59,QG=Object.freeze([]),Zk=class extends CG.CronField{static get min(){return SG}static get max(){return BG}static get chars(){return QG}constructor(e,t){super(e,t),this.validate()}get values(){return super.values}};xg.CronSecond=Zk});var zg=f(nt=>{"use strict";var _G=nt&&nt.__createBinding||(Object.create?(function(o,e,t,a){a===void 0&&(a=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(o,a,i)}):(function(o,e,t,a){a===void 0&&(a=t),o[a]=e[t]})),tn=nt&&nt.__exportStar||function(o,e){for(var t in o)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&_G(e,o,t)};Object.defineProperty(nt,"__esModule",{value:!0});tn(xI(),nt);tn(zI(),nt);tn(qI(),nt);tn(Wr(),nt);tn(EI(),nt);tn(II(),nt);tn(ij(),nt);tn(rj(),nt)});var Xk=f(qg=>{"use strict";Object.defineProperty(qg,"__esModule",{value:!0});qg.CronFieldCollection=void 0;var Jt=zg(),Kk=class o{#e;#o;#a;#i;#r;#t;static from(e,t){return new o({second:this.resolveField(Jt.CronSecond,e.second,t.second),minute:this.resolveField(Jt.CronMinute,e.minute,t.minute),hour:this.resolveField(Jt.CronHour,e.hour,t.hour),dayOfMonth:this.resolveField(Jt.CronDayOfMonth,e.dayOfMonth,t.dayOfMonth),month:this.resolveField(Jt.CronMonth,e.month,t.month),dayOfWeek:this.resolveField(Jt.CronDayOfWeek,e.dayOfWeek,t.dayOfWeek)})}static resolveField(e,t,a){return a?a instanceof Jt.CronField?a:new e(a):t}constructor({second:e,minute:t,hour:a,dayOfMonth:i,month:r,dayOfWeek:n}){if(!e)throw new Error("Validation error, Field second is missing");if(!t)throw new Error("Validation error, Field minute is missing");if(!a)throw new Error("Validation error, Field hour is missing");if(!i)throw new Error("Validation error, Field dayOfMonth is missing");if(!r)throw new Error("Validation error, Field month is missing");if(!n)throw new Error("Validation error, Field dayOfWeek is missing");if(r.values.length===1&&!i.hasLastChar&&!(parseInt(i.values[0],10)<=Jt.CronMonth.daysInMonth[r.values[0]-1]))throw new Error("Invalid explicit day of month definition");this.#e=e,this.#o=t,this.#a=a,this.#r=r,this.#t=n,this.#i=i}get second(){return this.#e}get minute(){return this.#o}get hour(){return this.#a}get dayOfMonth(){return this.#i}get month(){return this.#r}get dayOfWeek(){return this.#t}static compactField(e){if(e.length===0)return[];let t=[],a;return e.forEach((i,r,n)=>{if(a===void 0){a={start:i,count:1};return}let s=n[r-1]||a.start,c=n[r+1];if(i==="L"||i==="W"){t.push(a),t.push({start:i,count:1}),a=void 0;return}if(a.step===void 0&&c!==void 0){let m=i-s,l=c-i;if(m<=l){a={...a,count:2,end:i,step:m};return}a.step=1}i-(a.end??0)===a.step?(a.count++,a.end=i):(a.count===1?t.push({start:a.start,count:1}):a.count===2?(t.push({start:a.start,count:1}),t.push({start:a.end??s,count:1})):t.push(a),a={start:i,count:1})}),a&&t.push(a),t}static#c(e,t,a){let i=t.step;return i?i===1&&t.start===e.min&&t.end&&t.end>=a?e.hasQuestionMarkChar?"?":"*":i!==1&&t.start===e.min&&t.end&&t.end>=a-i+1?`*/${i}`:null:null}static#n(e,t){let a=e.step;if(a===1)return`${e.start}-${e.end}`;let i=e.start===0?e.count-1:e.count;if(!a)throw new Error("Unexpected range step");if(!e.end)throw new Error("Unexpected range end");if(a*i>e.end){let r=(s,c)=>{if(typeof e.start!="number")throw new Error("Unexpected range start");return c%a===0?e.start+c:null};if(typeof e.start!="number")throw new Error("Unexpected range start");let n={length:e.end-e.start+1};return Array.from(n,r).filter(s=>s!==null).join(",")}return e.end===t-a+1?`${e.start}/${a}`:`${e.start}-${e.end}/${a}`}stringifyField(e){let t=e.max,a=e.values;if(e instanceof Jt.CronDayOfWeek){t=6;let r=this.#t.values;a=r[r.length-1]===7?r.slice(0,-1):r}e instanceof Jt.CronDayOfMonth&&(t=this.#r.values.length===1?Jt.CronMonth.daysInMonth[this.#r.values[0]-1]:e.max);let i=o.compactField(a);if(i.length===1){let r=o.#c(e,i[0],t);if(r)return r}return i.map(r=>{let n=r.count===1?r.start.toString():o.#n(r,t);return e instanceof Jt.CronDayOfWeek&&e.nthDay>0?`${n}#${e.nthDay}`:n}).join(",")}stringify(e=!1){let t=[];return e&&t.push(this.stringifyField(this.#e)),t.push(this.stringifyField(this.#o),this.stringifyField(this.#a),this.stringifyField(this.#i),this.stringifyField(this.#r),this.stringifyField(this.#t)),t.join(" ")}serialize(){return{second:this.#e.serialize(),minute:this.#o.serialize(),hour:this.#a.serialize(),dayOfMonth:this.#i.serialize(),month:this.#r.serialize(),dayOfWeek:this.#t.serialize()}}};qg.CronFieldCollection=Kk});var eA=f(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.CronExpression=Wt.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE=Wt.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE=void 0;var io=vg();Wt.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE="Out of the time span range";Wt.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE="Invalid expression, loop limit exceeded";var nj=1e4,Eg=class o{#e;#o;#a;#i;#r;#t;#c=null;#n=!1;constructor(e,t){this.#e=t,this.#o=t.tz,this.#i=t.startDate?new io.CronDate(t.startDate,this.#o):null,this.#r=t.endDate?new io.CronDate(t.endDate,this.#o):null;let a=t.currentDate??t.startDate;if(a){let i=new io.CronDate(a,this.#o);this.#i&&i.getTime()<this.#i.getTime()?a=this.#i:this.#r&&i.getTime()>this.#r.getTime()&&(a=this.#r)}this.#a=new io.CronDate(a,this.#o),this.#t=e}get fields(){return this.#t}static fieldsToExpression(e,t){return new o(e,t||{})}static#s(e,t){return t.some(a=>a===e)}#m(e,t){return e[t?e.length-1:0]}#u(e){let t=`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}`;if(this.#c===t)return this.#n;let a=new io.CronDate(e);a.setStartOfDay();let i=new io.CronDate(e);return i.setEndOfDay(),this.#c=t,this.#n=a.getUTCOffset()!==i.getUTCOffset(),this.#n}#l(e,t,a){let i=this.#t.second.values,r=e.getSeconds(),n=this.#t.second.findNearestValue(r,a);if(n!==null){e.setSeconds(n);return}e.applyDateOperation(t,io.TimeUnit.Minute,this.#t.hour.values.length),e.setSeconds(this.#m(i,a))}#d(e,t,a){let i=this.#t.minute.values,r=this.#t.second.values,n=e.getMinutes(),s=this.#t.minute.findNearestValue(n,a);if(s!==null){e.setMinutes(s),e.setSeconds(this.#m(r,a));return}e.applyDateOperation(t,io.TimeUnit.Hour,this.#t.hour.values.length),e.setMinutes(this.#m(i,a)),e.setSeconds(this.#m(r,a))}static#p(e,t){let a=t.isLastWeekdayOfMonth();return e.some(i=>{let r=parseInt(i.toString().charAt(0),10)%7;if(Number.isNaN(r))throw new Error(`Invalid last weekday of the month expression: ${i}`);return t.getDay()===r&&a})}next(){return this.#f()}prev(){return this.#f(!0)}hasNext(){let e=this.#a;try{return this.#f(),!0}catch{return!1}finally{this.#a=e}}hasPrev(){let e=this.#a;try{return this.#f(!0),!0}catch{return!1}finally{this.#a=e}}take(e){let t=[];if(e>=0)for(let a=0;a<e;a++)try{t.push(this.next())}catch{return t}else for(let a=0;a>e;a--)try{t.push(this.prev())}catch{return t}return t}reset(e){this.#a=new io.CronDate(e||this.#e.currentDate)}stringify(e=!1){return this.#t.stringify(e)}includesDate(e){let{second:t,minute:a,hour:i,month:r}=this.#t,n=new io.CronDate(e,this.#o);return!(!t.values.includes(n.getSeconds())||!a.values.includes(n.getMinutes())||!i.values.includes(n.getHours())||!r.values.includes(n.getMonth()+1)||!this.#g(n)||this.#t.dayOfWeek.nthDay>0&&Math.ceil(n.getDate()/7)!==this.#t.dayOfWeek.nthDay)}toString(){return this.#e.expression||this.stringify(!0)}#g(e){let t=this.#t.dayOfMonth.isWildcard,a=!t,i=this.#t.dayOfWeek.isWildcard,r=!i,n=o.#s(e.getDate(),this.#t.dayOfMonth.values)||this.#t.dayOfMonth.hasLastChar&&e.isLastDayOfMonth(),s=o.#s(e.getDay(),this.#t.dayOfWeek.values)||this.#t.dayOfWeek.hasLastChar&&o.#p(this.#t.dayOfWeek.values,e);return!!(a&&r&&(n||s)||n&&!r||t&&!i&&s)}#b(e,t,a){let i=this.#t.hour.values,r=i,n=e.getHours(),s=o.#s(n,i),c=e.dstStart===n,m=e.dstEnd===n;if(c)return o.#s(n-1,i)?!0:(e.invokeDateOperation(t,io.TimeUnit.Hour),!1);if(m&&!a)return e.dstEnd=null,e.applyDateOperation(io.DateMathOp.Add,io.TimeUnit.Hour,r.length),!1;if(s)return!0;e.dstStart=null;let l=this.#t.hour.findNearestValue(n,a);if(l===null)return e.applyDateOperation(t,io.TimeUnit.Day,r.length),!1;if(this.#u(e)){let u=a?n-l:l-n;for(let d=0;d<u;d++)e.applyDateOperation(t,io.TimeUnit.Hour,r.length)}else e.setHours(l);return e.setMinutes(this.#m(this.#t.minute.values,a)),e.setSeconds(this.#m(this.#t.second.values,a)),!1}#h(e){if(!this.#i&&!this.#r)return;let t=e.getTime();if(this.#i&&t<this.#i.getTime())throw new Error(Wt.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE);if(this.#r&&t>this.#r.getTime())throw new Error(Wt.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE)}#f(e=!1){let t=e?io.DateMathOp.Subtract:io.DateMathOp.Add,a=new io.CronDate(this.#a),i=a.getTime(),r=0;for(;++r<nj;){if(this.#h(a),!this.#g(a)){a.applyDateOperation(t,io.TimeUnit.Day,this.#t.hour.values.length);continue}if(!(this.#t.dayOfWeek.nthDay<=0||Math.ceil(a.getDate()/7)===this.#t.dayOfWeek.nthDay)){a.applyDateOperation(t,io.TimeUnit.Day,this.#t.hour.values.length);continue}if(!o.#s(a.getMonth()+1,this.#t.month.values)){a.applyDateOperation(t,io.TimeUnit.Month,this.#t.hour.values.length);continue}if(this.#b(a,t,e)){if(!o.#s(a.getMinutes(),this.#t.minute.values)){this.#d(a,t,e);continue}if(!o.#s(a.getSeconds(),this.#t.second.values)){this.#l(a,t,e);continue}if(i===a.getTime()){(t==="Add"||a.getMilliseconds()===0)&&a.applyDateOperation(t,io.TimeUnit.Second,this.#t.hour.values.length);continue}break}}if(r>nj)throw new Error(Wt.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE);return a.getMilliseconds()!==0&&a.setMilliseconds(0),this.#a=a,a}[Symbol.iterator](){return{next:()=>({value:this.#f(),done:!this.hasNext()})}}};Wt.CronExpression=Eg;Wt.default=Eg});var sj=f(oA=>{"use strict";Object.defineProperty(oA,"__esModule",{value:!0});oA.seededRandom=RG;function DG(o){let e=2166136261;for(let t=0;t<o.length;t++)e^=o.charCodeAt(t),e=Math.imul(e,16777619);return()=>e>>>0}function TG(o){return()=>{let e=o+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}}function RG(o){let e=o?DG(o)():Math.floor(Math.random()*1e10);return TG(e)}});var Ig=f(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.CronExpressionParser=Xt.DayOfWeek=Xt.Months=Xt.CronUnit=Xt.PredefinedExpressions=void 0;var NG=Xk(),OG=eA(),UG=sj(),Zt=zg(),tA;(function(o){o["@yearly"]="0 0 0 1 1 *",o["@annually"]="0 0 0 1 1 *",o["@monthly"]="0 0 0 1 * *",o["@weekly"]="0 0 0 * * 0",o["@daily"]="0 0 0 * * *",o["@hourly"]="0 0 * * * *",o["@minutely"]="0 * * * * *",o["@secondly"]="* * * * * *",o["@weekdays"]="0 0 0 * * 1-5",o["@weekends"]="0 0 0 * * 0,6"})(tA||(Xt.PredefinedExpressions=tA={}));var Kt;(function(o){o.Second="Second",o.Minute="Minute",o.Hour="Hour",o.DayOfMonth="DayOfMonth",o.Month="Month",o.DayOfWeek="DayOfWeek"})(Kt||(Xt.CronUnit=Kt={}));var aA;(function(o){o[o.jan=1]="jan",o[o.feb=2]="feb",o[o.mar=3]="mar",o[o.apr=4]="apr",o[o.may=5]="may",o[o.jun=6]="jun",o[o.jul=7]="jul",o[o.aug=8]="aug",o[o.sep=9]="sep",o[o.oct=10]="oct",o[o.nov=11]="nov",o[o.dec=12]="dec"})(aA||(Xt.Months=aA={}));var iA;(function(o){o[o.sun=0]="sun",o[o.mon=1]="mon",o[o.tue=2]="tue",o[o.wed=3]="wed",o[o.thu=4]="thu",o[o.fri=5]="fri",o[o.sat=6]="sat"})(iA||(Xt.DayOfWeek=iA={}));var rA=class o{static parse(e,t={}){let{strict:a=!1,hashSeed:i}=t,r=(0,UG.seededRandom)(i);e=tA[e]||e;let n=o.#e(e,a);if(!(n.dayOfMonth==="*"||n.dayOfWeek==="*"||!a))throw new Error("Cannot use both dayOfMonth and dayOfWeek together in strict mode!");let s=o.#o(Kt.Second,n.second,Zt.CronSecond.constraints,r),c=o.#o(Kt.Minute,n.minute,Zt.CronMinute.constraints,r),m=o.#o(Kt.Hour,n.hour,Zt.CronHour.constraints,r),l=o.#o(Kt.Month,n.month,Zt.CronMonth.constraints,r),u=o.#o(Kt.DayOfMonth,n.dayOfMonth,Zt.CronDayOfMonth.constraints,r),{dayOfWeek:d,nthDayOfWeek:g}=o.#u(n.dayOfWeek),h=o.#o(Kt.DayOfWeek,d,Zt.CronDayOfWeek.constraints,r),k=new NG.CronFieldCollection({second:new Zt.CronSecond(s,{rawValue:n.second}),minute:new Zt.CronMinute(c,{rawValue:n.minute}),hour:new Zt.CronHour(m,{rawValue:n.hour}),dayOfMonth:new Zt.CronDayOfMonth(u,{rawValue:n.dayOfMonth}),month:new Zt.CronMonth(l,{rawValue:n.month}),dayOfWeek:new Zt.CronDayOfWeek(h,{rawValue:n.dayOfWeek,nthDayOfWeek:g})});return new OG.CronExpression(k,{...t,expression:e})}static#e(e,t){if(t&&!e.length)throw new Error("Invalid cron expression");e=e||"0 * * * * *";let a=e.trim().split(/\s+/);if(t&&a.length<6)throw new Error("Invalid cron expression, expected 6 fields");if(a.length>6)throw new Error("Invalid cron expression, too many fields");let i=["*","*","*","*","*","0"];a.length<i.length&&a.unshift(...i.slice(a.length));let[r,n,s,c,m,l]=a;return{second:r,minute:n,hour:s,dayOfMonth:c,month:m,dayOfWeek:l}}static#o(e,t,a,i){if((e===Kt.Month||e===Kt.DayOfWeek)&&(t=t.replace(/[a-z]{3}/gi,r=>{r=r.toLowerCase();let n=aA[r]||iA[r];if(n===void 0)throw new Error(`Validation error, cannot resolve alias "${r}"`);return n.toString()})),!a.validChars.test(t))throw new Error(`Invalid characters, got value: ${t}`);return t=this.#a(t,a),t=this.#i(t,a,i),this.#r(e,t,a)}static#a(e,t){return e.replace(/[*?]/g,t.min+"-"+t.max)}static#i(e,t,a){let i=a();return e.replace(/H(?:\((\d+)-(\d+)\))?(?:\/(\d+))?/g,(r,n,s,c)=>{if(n&&s&&c){let m=parseInt(n,10),l=parseInt(s,10),u=parseInt(c,10);if(m>l)throw new Error(`Invalid range: ${m}-${l}, min > max`);if(u<=0)throw new Error(`Invalid step: ${u}, must be positive`);let d=Math.max(m,t.min),g=Math.floor(i*u),h=[];for(let k=Math.floor(d/u)*u+g;k<=l;k+=u)k>=d&&h.push(k);return h.join(",")}else if(n&&s){let m=parseInt(n,10),l=parseInt(s,10);if(m>l)throw new Error(`Invalid range: ${m}-${l}, min > max`);return String(Math.floor(i*(l-m+1))+m)}else if(c){let m=parseInt(c,10);if(m<=0)throw new Error(`Invalid step: ${m}, must be positive`);let l=Math.floor(i*m),u=[];for(let d=Math.floor(t.min/m)*m+l;d<=t.max;d+=m)d>=t.min&&u.push(d);return u.join(",")}else return String(Math.floor(i*(t.max-t.min+1)+t.min))})}static#r(e,t,a){let i=[];function r(s,c){if(Array.isArray(s))i.push(...s);else if(o.#l(c,s))i.push(s);else{let m=parseInt(s.toString(),10);if(!(m>=c.min&&m<=c.max))throw new Error(`Constraint error, got value ${s} expected range ${c.min}-${c.max}`);i.push(e===Kt.DayOfWeek?m%7:s)}}return t.split(",").forEach(s=>{if(!(s.length>0))throw new Error("Invalid list value format");r(o.#t(e,s,a),a)}),i}static#t(e,t,a){let i=t.split("/");if(i.length>2)throw new Error(`Invalid repeat: ${t}`);return i.length===2?(isNaN(parseInt(i[0],10))||(i[0]=`${i[0]}-${a.max}`),o.#m(e,i[0],parseInt(i[1],10),a)):o.#m(e,t,1,a)}static#c(e,t,a){if(!(!isNaN(e)&&!isNaN(t)&&e>=a.min&&t<=a.max))throw new Error(`Constraint error, got range ${e}-${t} expected range ${a.min}-${a.max}`);if(e>t)throw new Error(`Invalid range: ${e}-${t}, min(${e}) > max(${t})`)}static#n(e){if(!(!isNaN(e)&&e>0))throw new Error(`Constraint error, cannot repeat at every ${e} time.`)}static#s(e,t,a,i){let r=[];e===Kt.DayOfWeek&&a%7===0&&r.push(0);for(let n=t;n<=a;n+=i)r.indexOf(n)===-1&&r.push(n);return r}static#m(e,t,a,i){let r=t.split("-");if(r.length<=1)return isNaN(+t)?t:+t;let[n,s]=r.map(c=>parseInt(c,10));return this.#c(n,s,i),this.#n(a),this.#s(e,n,s,a)}static#u(e){let t=e.split("#");if(t.length<=1)return{dayOfWeek:t[0]};let a=+t[t.length-1],i=e.match(/([,-/])/);if(i!==null)throw new Error(`Constraint error, invalid dayOfWeek \`#\` and \`${i?.[0]}\` special characters are incompatible`);if(!(t.length<=2&&!isNaN(a)&&a>=1&&a<=5))throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return{dayOfWeek:t[0],nthDayOfWeek:a}}static#l(e,t){return e.chars.some(a=>t.toString().includes(a))}};Xt.CronExpressionParser=rA});var cj=f(Oa=>{"use strict";var MG=Oa&&Oa.__createBinding||(Object.create?(function(o,e,t,a){a===void 0&&(a=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(o,a,i)}):(function(o,e,t,a){a===void 0&&(a=t),o[a]=e[t]})),LG=Oa&&Oa.__setModuleDefault||(Object.create?(function(o,e){Object.defineProperty(o,"default",{enumerable:!0,value:e})}):function(o,e){o.default=e}),PG=Oa&&Oa.__importStar||(function(){var o=function(e){return o=Object.getOwnPropertyNames||function(t){var a=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(a[a.length]=i);return a},o(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a=o(e),i=0;i<a.length;i++)a[i]!=="default"&&MG(t,e,a[i]);return LG(t,e),t}})();Object.defineProperty(Oa,"__esModule",{value:!0});Oa.CronFileParser=void 0;var FG=Ig(),nA=class o{static async parseFile(e){let{readFile:t}=await Promise.resolve().then(()=>PG(require("fs/promises"))),a=await t(e,"utf8");return o.#e(a)}static parseFileSync(e){let{readFileSync:t}=require("fs"),a=t(e,"utf8");return o.#e(a)}static#e(e){let t=e.split(`
@@ -995,7 +995,7 @@ Ask for VPN/tunnel access to the ProLaw SQL Server, the database name, and a ded
995
995
 
996
996
  Before writing queries, introspect the schema and confirm the ProLaw version, modules, and firm customizations. Matter, transaction, document, time, invoice, payment, trust, calendar, and docket data can be permission-sensitive and schema names may differ between firms.
997
997
 
998
- On-prem SQL Server instances often use private network access and internal certificates. If connection setup fails with TLS/certificate errors, coordinate with IT before changing the URL to include encrypt=false or trustServerCertificate=true. No public OpenAPI spec was found; if the customer uses a partner-built ProLaw API, create a separate HTTP system using that connector's real base URL and documentation.`},pylon:{name:"pylon",apiUrl:"https://api.getpylon.com",regex:"^.*(getpylon\\.com|pylon).*$",icon:"default",docsUrl:"https://app.getpylon.com/docs/api",preferredAuthType:"api_key",hideInTemplatePicker:!0,keywords:["solar","projects","solar_projects","design","energy","pylon","JSON:API","photovoltaic","renewable"]},composio:{name:"composio",apiUrl:"https://connect.composio.dev",regex:"^.*(composio\\.dev|composio).*$",icon:"/logos/composio.png",docsUrl:"https://docs.composio.dev/api-reference/",openApiUrl:"https://backend.composio.dev/api/v3/openapi.json",preferredAuthType:"api_key",keywords:["composio","mcp","integrations","connections","toolkits","apps","automation","oauth","model context protocol"]},nextcloud_tables:{name:"nextcloud_tables",apiUrl:"",regex:"^.*(nextcloud.*tables|next\\..*\\.online.*tables).*$",icon:"nextcloud",docsUrl:"https://github.com/nextcloud/tables/wiki/API",openApiUrl:"https://raw.githubusercontent.com/nextcloud/tables/main/openapi.json",preferredAuthType:"basic_auth",keywords:["nextcloud","tables","rows","columns","ocs","self-hosted","database","spreadsheet"],systemSpecificInstructions:"Nextcloud Tables is self-hosted, so the base URL is always the user's instance URL (e.g. https://cloud.example.com). All API requests MUST include the header `OCS-APIRequest: true` or Nextcloud returns HTML instead of JSON. Authentication is HTTP Basic Auth using the Nextcloud username and an app password (not the account password)."},elevenlabs:{name:"elevenlabs",apiUrl:"https://api.elevenlabs.io",regex:"^(.*\\.)?elevenlabs\\.io(/.*)?$",icon:"elevenlabs",docsUrl:"https://elevenlabs.io/docs/api-reference",preferredAuthType:"api_key",keywords:["convai","agents","conversations","voice","text_to_speech","speech_synthesis","audio","asr","tts","xi-api-key"]},gong:{name:"gong",apiUrl:"https://{your-gong-base-url}/v2",regex:"^(.*\\.)?api\\.gong\\.io(/.*)?$",icon:"/logos/gong.svg",docsUrl:"https://help.gong.io/apidocs",preferredAuthType:"basic_auth",keywords:["calls","users","transcripts","trackers","scorecards","stats","activities","crm","deals","conversations"],systemSpecificInstructions:"Default auth is Basic Auth: username = access key, password = access key secret. Most direct customer integrations can use https://api.gong.io/v2. If you are building a published or multi-customer app, use OAuth instead and send API requests to the api_base_url_for_customer returned with the bearer token response."},langfuse:{name:"langfuse",apiUrl:"https://{your-langfuse-host}/api/public",regex:"^.*langfuse.*$",icon:"/logos/langfuse.png",docsUrl:"https://langfuse.com/docs/api-and-data-platform/features/public-api",openApiUrl:"https://cloud.langfuse.com/generated/api/openapi.yml",preferredAuthType:"basic_auth",keywords:["traces","observations","prompts","scores","datasets","sessions","metrics","evaluations","llm_connections","api keys"],systemSpecificInstructions:"This template targets the Public API on your Langfuse host at /api/public. Auth is HTTP Basic: username = public key, password = secret key. The docs site publishes llms.txt and llms-docs.txt, so the docs URL here is set to the public API docs page for LLM-friendly discovery."},qlik:{name:"qlik",apiUrl:"https://{tenant}.{region}.qlikcloud.com/api/v1",regex:"^.*(qlik|qlikcloud\\.com).*$",icon:"simpleicons:qlik",docsUrl:"https://qlik.dev/apis/rest/",preferredAuthType:"oauth2",oauth:{authUrl:"https://{tenant}.{region}.qlikcloud.com/oauth/authorize",tokenUrl:"https://{tenant}.{region}.qlikcloud.com/oauth/token",scopes:"user_default offline_access"},keywords:["qlik","qlik cloud","apps","spaces","users","groups","data-files","data-sets","data-connections","reloads","automations","items","collections","analytics","oauth","bearer"],systemSpecificInstructions:`Qlik Cloud REST API setup guide (as of April 2026):
998
+ On-prem SQL Server instances often use private network access and internal certificates. If connection setup fails with TLS/certificate errors, coordinate with IT before changing the URL to include encrypt=false or trustServerCertificate=true. No public OpenAPI spec was found; if the customer uses a partner-built ProLaw API, create a separate HTTP system using that connector's real base URL and documentation.`},pylon:{name:"pylon",apiUrl:"https://api.getpylon.com",regex:"^.*(getpylon\\.com|pylon).*$",icon:"default",docsUrl:"https://app.getpylon.com/docs/api",preferredAuthType:"api_key",hideInTemplatePicker:!0,keywords:["solar","projects","solar_projects","design","energy","pylon","JSON:API","photovoltaic","renewable"]},composio:{name:"composio",apiUrl:"https://connect.composio.dev",regex:"^.*(composio\\.dev|composio).*$",icon:"/logos/composio.png",docsUrl:"https://docs.composio.dev/api-reference/",openApiUrl:"https://backend.composio.dev/api/v3/openapi.json",preferredAuthType:"api_key",keywords:["composio","mcp","integrations","connections","toolkits","apps","automation","oauth","model context protocol"]},nextcloud_tables:{name:"nextcloud_tables",apiUrl:"",regex:"^.*(nextcloud.*tables|next\\..*\\.online.*tables).*$",icon:"nextcloud",docsUrl:"https://github.com/nextcloud/tables/wiki/API",openApiUrl:"https://raw.githubusercontent.com/nextcloud/tables/main/openapi.json",preferredAuthType:"basic_auth",keywords:["nextcloud","tables","rows","columns","ocs","self-hosted","database","spreadsheet"],systemSpecificInstructions:"Nextcloud Tables is self-hosted, so the base URL is always the user's instance URL (e.g. https://cloud.example.com). All API requests MUST include the header `OCS-APIRequest: true` or Nextcloud returns HTML instead of JSON. Authentication is HTTP Basic Auth using the Nextcloud username and an app password (not the account password)."},elevenlabs:{name:"elevenlabs",apiUrl:"https://api.elevenlabs.io",regex:"^(.*\\.)?elevenlabs\\.io(/.*)?$",icon:"elevenlabs",docsUrl:"https://elevenlabs.io/docs/api-reference",preferredAuthType:"api_key",keywords:["convai","agents","conversations","voice","text_to_speech","speech_synthesis","audio","asr","tts","xi-api-key"]},gong:{name:"gong",apiUrl:"https://{your-gong-base-url}/v2",regex:"^(.*\\.)?api\\.gong\\.io(/.*)?$",icon:"/logos/gong.svg",docsUrl:"https://help.gong.io/apidocs",preferredAuthType:"basic_auth",keywords:["calls","users","transcripts","trackers","scorecards","stats","activities","crm","deals","conversations"],systemSpecificInstructions:"Default auth is Basic Auth: username = access key, password = access key secret. Most direct customer integrations can use https://api.gong.io/v2. If you are building a published or multi-customer app, use OAuth instead and send API requests to the api_base_url_for_customer returned with the bearer token response."},langfuse:{name:"langfuse",apiUrl:"https://{your-langfuse-host}/api/public",regex:"^.*langfuse.*$",icon:"/logos/langfuse.png",docsUrl:"https://langfuse.com/docs/api-and-data-platform/features/public-api",openApiUrl:"https://cloud.langfuse.com/generated/api/openapi.yml",preferredAuthType:"basic_auth",keywords:["traces","observations","prompts","scores","datasets","sessions","metrics","evaluations","llm_connections","api keys"],systemSpecificInstructions:"This template targets the Public API on your Langfuse host at /api/public (EU cloud: https://cloud.langfuse.com/api/public, US cloud: https://us.cloud.langfuse.com/api/public). Auth is HTTP Basic: username = public key, password = secret key. Traces, sessions, and projects live only under /api/public (for example /api/public/traces); datasets, prompts, scores, observations, metrics, evaluators, and evaluation-rules have /api/public/v2 versions, which new work should use. The legacy /api/public/ingestion endpoint is deprecated in favor of OTLP at /api/public/otel/v1/traces. The docs site publishes llms.txt and llms-docs.txt, so the docs URL here is set to the public API docs page for LLM-friendly discovery."},qlik:{name:"qlik",apiUrl:"https://{tenant}.{region}.qlikcloud.com/api/v1",regex:"^.*(qlik|qlikcloud\\.com).*$",icon:"simpleicons:qlik",docsUrl:"https://qlik.dev/apis/rest/",preferredAuthType:"oauth2",oauth:{authUrl:"https://{tenant}.{region}.qlikcloud.com/oauth/authorize",tokenUrl:"https://{tenant}.{region}.qlikcloud.com/oauth/token",scopes:"user_default offline_access"},keywords:["qlik","qlik cloud","apps","spaces","users","groups","data-files","data-sets","data-connections","reloads","automations","items","collections","analytics","oauth","bearer"],systemSpecificInstructions:`Qlik Cloud REST API setup guide (as of April 2026):
999
999
 
1000
1000
  TENANT URL FORMAT:
1001
1001
  The base URL is https://{tenant}.{region}.qlikcloud.com/api/v1. The {tenant} and {region} (e.g. us, eu, ap) are specific to the customer's deployment. Ask the user for their full tenant URL before creating the system \u2014 the region subdomain is required (e.g. my-tenant.us.qlikcloud.com, NOT my-tenant.qlikcloud.com).
@@ -1663,7 +1663,7 @@ ${r}`;break;case"retry":CN(r)&&(t[i]=r);break;case"id":SN(r)&&(t[i]=r);break;cas
1663
1663
  `);o.stack=t?`${t}
1664
1664
  ${r}`:i.stack}G.exports.fetch=function(e,t=void 0){return RIe(e,t).catch(a=>{throw LN?HN(a,LN):a&&typeof a=="object"&&Error.captureStackTrace(a,G.exports.fetch),a})};G.exports.Headers=Hs().Headers;G.exports.Response=cd().Response;G.exports.Request=xm().Request;G.exports.FormData=mf().FormData;var{setGlobalOrigin:NIe,getGlobalOrigin:OIe}=ix();G.exports.setGlobalOrigin=NIe;G.exports.getGlobalOrigin=OIe;var{CacheStorage:UIe}=IR(),{kConstruct:MIe}=Ue();G.exports.caches=new UIe(MIe);var{deleteCookie:LIe,getCookies:PIe,getSetCookies:FIe,setCookie:$Ie,parseCookie:HIe}=UR();G.exports.deleteCookie=LIe;G.exports.getCookies=PIe;G.exports.getSetCookies=FIe;G.exports.setCookie=$Ie;G.exports.parseCookie=HIe;var{parseMIMEType:GIe,serializeAMimeType:VIe}=ma();G.exports.parseMIMEType=GIe;G.exports.serializeAMimeType=VIe;var{CloseEvent:YIe,ErrorEvent:JIe,MessageEvent:WIe}=jb(),{WebSocket:ZIe,ping:KIe}=yN();G.exports.WebSocket=ZIe;G.exports.CloseEvent=YIe;G.exports.ErrorEvent=JIe;G.exports.MessageEvent=WIe;G.exports.ping=KIe;G.exports.WebSocketStream=EN().WebSocketStream;G.exports.WebSocketError=Dq().WebSocketError;G.exports.request=Ad(Dm.request);G.exports.stream=Ad(Dm.stream);G.exports.pipeline=Ad(Dm.pipeline);G.exports.connect=Ad(Dm.connect);G.exports.upgrade=Ad(Dm.upgrade);G.exports.MockClient=zIe;G.exports.MockCallHistory=qIe;G.exports.MockCallHistoryLog=EIe;G.exports.MockPool=jIe;G.exports.MockAgent=IIe;G.exports.SnapshotAgent=CIe;G.exports.mockErrors=SIe;var{EventSource:XIe}=MN();G.exports.EventSource=XIe;function e2e(){globalThis.fetch=G.exports.fetch,globalThis.Headers=G.exports.Headers,globalThis.Response=G.exports.Response,globalThis.Request=G.exports.Request,globalThis.FormData=G.exports.FormData,globalThis.WebSocket=G.exports.WebSocket,globalThis.CloseEvent=G.exports.CloseEvent,globalThis.ErrorEvent=G.exports.ErrorEvent,globalThis.MessageEvent=G.exports.MessageEvent,globalThis.EventSource=G.exports.EventSource}G.exports.install=e2e});var YN=f(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.SuperglueClient=Rm.SuperglueHttpError=void 0;var Tm=Ht(),Mr=xv(),o2e=ew(),t2e=rQ(),a2e=Fa(),Lr=zc(),i2e=Lg(),wd=14400*1e3,vd;if(typeof globalThis.process<"u"&&globalThis.process.versions?.node)try{let{Agent:o}=GN();vd=new o({headersTimeout:wd,bodyTimeout:wd})}catch{}function VN(o){if(o?.aborted)throw o.reason??new DOMException("Aborted","AbortError")}var Pb=class extends Error{constructor(e,t,a,i){super(e),this.status=t,this.code=a,this.details=i,this.name="SuperglueHttpError"}};Rm.SuperglueHttpError=Pb;var Mq=class{constructor({apiKey:e,apiEndpoint:t,onInfrastructureError:a,refreshToken:i,sseTokenProvider:r,tokenProvider:n}){if(!e&&!n)throw new Error("SuperglueClient requires either apiKey or tokenProvider");this.tokenProvider=n??(async()=>e),this.apiEndpoint=t??"https://api.superglue.cloud",this.sseManager=new o2e.SSELogSubscriptionManager(this.apiEndpoint,r??this.tokenProvider,i),this.onInfrastructureError=a,this.refreshToken=i}async getApiKey(){return this.tokenProvider()}async fetchWithAuthRetry(e,t){let a=await this.getApiKey(),i=await e(a);if(i.status!==401||!this.refreshToken)return i;VN(t);let r=await this.refreshToken();return VN(t),!r||r===a?i:(i.body?.cancel(),e(r))}isInfrastructureError(e){return(0,a2e.isAbortError)(e)?!1:!!(e instanceof TypeError&&e.message.toLowerCase().includes("fetch")||e instanceof Error&&e.name==="TimeoutError")}async restRequest(e,t,a,i,r){let s=await(await this.restResponse({method:e,path:t,body:a,extraHeaders:i,requestInit:r})).text();if(s)return JSON.parse(s)}async restResponse({method:e,path:t,body:a,extraHeaders:i,requestInit:r}){let n=`${this.apiEndpoint.replace(/\/$/,"")}${t}`,s=a!=null,c=typeof FormData<"u"&&a instanceof FormData,m=u=>{let d={Authorization:`Bearer ${u}`,...i};return s&&!c&&e!=="GET"&&(d["Content-Type"]="application/json"),fetch(n,{...r,method:e,headers:d,body:s?c?a:JSON.stringify(a):void 0,signal:r?.signal??AbortSignal.timeout(wd),...vd?{dispatcher:vd}:{}})},l;try{l=await this.fetchWithAuthRetry(m,r?.signal)}catch(u){throw this.isInfrastructureError(u)&&this.onInfrastructureError?.(),u}if(!l.ok)throw await this.buildHttpError(l);return l}async uploadFiles(e,t){if(typeof t?.process!="boolean")throw new Error("process must be a boolean");if(e.length===0)return[];let a=e.map(l=>({...l,contentLength:l.contentLength??this.getUploadContentLength(l.content)})),r=(await this.restRequest("POST","/v1/files/uploads",{process:t.process,files:a.map(({fileName:l,contentType:u,contentLength:d})=>({fileName:l,contentLength:d,...u?{contentType:u}:{}}))})).data.files;if(r.length!==a.length)throw await Promise.all(r.map(l=>this.deleteFileUpload(l.id).catch(()=>{}))),new Error("Upload response did not match the selected files");let n=await Promise.allSettled(r.map(async(l,u)=>{let d=a[u],g=await fetch(l.uploadUrl,{method:"PUT",body:d.content,headers:d.contentType?{"Content-Type":d.contentType}:void 0,signal:AbortSignal.timeout(Math.min(wd,l.expiresIn*1e3))});if(!g.ok)throw new Error(`Upload failed for ${d.fileName}: ${g.status} ${g.statusText}`);return l.id})),s=n.flatMap(l=>l.status==="fulfilled"?[l.value]:[]),c=new Map;if(s.length>0)try{let l=await this.restRequest("POST","/v1/files/uploads/complete",{fileIds:s});c=new Map(l.data.files.map(u=>[u.id,u]))}catch(l){c=new Map(s.map(u=>[u,{id:u,fileName:a[r.findIndex(d=>d.id===u)]?.fileName||u,contentLength:a[r.findIndex(d=>d.id===u)]?.contentLength||0,status:"failed",error:l instanceof Error?l.message:String(l)}]))}let m=r.map((l,u)=>{let d=n[u],g=a[u];return d.status==="rejected"?{id:l.id,fileName:g.fileName,contentLength:g.contentLength,status:"failed",error:d.reason instanceof Error?d.reason.message:String(d.reason)}:c.get(l.id)||{id:l.id,fileName:g.fileName,contentLength:g.contentLength,status:"failed",error:"Upload completion returned no result"}});return await Promise.all(m.filter(l=>l.status==="failed").map(l=>this.deleteFileUpload(l.id).catch(()=>{}))),m}async deleteFileUpload(e){await this.restRequest("DELETE",`/v1/files/uploads/${encodeURIComponent(e)}`)}getUploadContentLength(e){return typeof e=="string"?new TextEncoder().encode(e).byteLength:e instanceof Uint8Array?e.byteLength:e.size}async buildHttpError(e){e.status>=500&&this.onInfrastructureError?.();let t=await e.text(),a=`HTTP ${e.status}: ${t}`,i,r;try{let n=JSON.parse(t);n&&typeof n=="object"&&!Array.isArray(n)&&(r=n),typeof n?.code=="string"&&(i=n.code);let s=n.error;typeof s=="string"?a=s:s&&typeof s=="object"&&(a=s.message||JSON.stringify(s))}catch{}return new Pb(a,e.status,i,r)}async streamRequest(e,t,a){let i=e.includes("?")?"&":"?",r=`${this.apiEndpoint.replace(/\/$/,"")}${e}${i}stream=true`,n=m=>fetch(r,{method:"POST",headers:{Authorization:`Bearer ${m}`,Accept:"text/event-stream","Content-Type":"application/json"},body:JSON.stringify(t),signal:a??AbortSignal.timeout(wd),...vd?{dispatcher:vd}:{}}),s;try{s=await this.fetchWithAuthRetry(n,a)}catch(m){throw this.isInfrastructureError(m)&&this.onInfrastructureError?.(),m}if(!s.ok)throw await this.buildHttpError(s);if(!(s.headers.get("content-type")||"").includes("text/event-stream")){let m=await s.text();return m?JSON.parse(m):void 0}try{return await(0,t2e.consumeEventStreamResult)(s)}catch(m){throw this.isInfrastructureError(m)&&this.onInfrastructureError?.(),m}}async subscribeToLogsSSE(e={}){return this.sseManager.subscribeToLogs(e)}async disconnect(){await this.sseManager.disconnect()}async getMe(){return this.restRequest("GET","/v1/me")}async completeOnboarding(){return this.restRequest("POST","/v1/me/onboarding/complete")}async runTool(e){let t=await this.restRequest("POST",`/v1/tools/${encodeURIComponent(e.toolId)}/run`,{inputs:e.payload,files:e.files,credentials:e.credentials,includeStepResultData:e.includeStepResultData,options:e.options,runId:e.runId,stateFixture:e.stateFixture},void 0,e.signal?{signal:e.signal}:void 0);return{success:t.status==="success",data:t.data,error:t.error,tool:t.tool,stepResults:t.stepResults?.map(a=>({...a}))||[],...t.fileArtifacts&&t.fileArtifacts.length>0?{fileArtifacts:t.fileArtifacts}:{},...t.metadata?.warnings?.length?{warnings:t.metadata.warnings}:{}}}async runToolConfig(e){let t=e.createRun?"/v1/tools/run?createRun=true":"/v1/tools/run",a=await this.restRequest("POST",t,{tool:e.tool,payload:e.payload,files:e.files,credentials:e.credentials,includeStepResultData:e.includeStepResultData,options:e.options,runId:e.runId,stateFixture:e.stateFixture,executionKind:e.executionKind,parentToolId:e.parentToolId,draftId:e.draftId},e.traceId?{"X-Trace-Id":e.traceId}:void 0,e.signal?{signal:e.signal}:void 0);return{success:a.status?a.status==="success":a.success??!1,data:a.data,error:a.error,tool:a.tool||e.tool,stepResults:a.stepResults?.map(r=>({...r}))||[],...a.fileArtifacts&&a.fileArtifacts.length>0?{fileArtifacts:a.fileArtifacts}:{},...a.metadata?.warnings?.length?{warnings:a.metadata.warnings}:{}}}async abortToolExecution(e){return{success:!0,runId:(await this.restRequest("POST",`/v1/runs/${encodeURIComponent(e)}/cancel`)).runId}}async executeStep({step:e,payload:t,files:a,previousResults:i,credentials:r,options:n,runId:s,systemIds:c,createRun:m,parentToolId:l,stepIndex:u,stepId:d,signal:g,stream:h}){let k={step:e,payload:t,files:a,previousResults:i,credentials:r,options:n,runId:s,systemIds:c,createRun:m,parentToolId:l,stepIndex:u,stepId:d};return h?this.streamRequest("/v1/tools/step/run",k,g):this.restRequest("POST","/v1/tools/step/run",k,void 0,g?{signal:g}:void 0)}async abortStep(e){return this.restRequest("POST","/v1/tools/step/abort",{runId:e})}async executeTransformOnly({outputTransform:e,outputSchema:t,inputSchema:a,payload:i,files:r,stepResults:n,options:s,runId:c,createRun:m,parentToolId:l,stepId:u,signal:d,stream:g}){let h={outputTransform:e,outputSchema:t,inputSchema:a,payload:i,files:r,stepResults:n,options:s,runId:c,createRun:m,parentToolId:l,stepId:u};return g?this.streamRequest("/v1/tools/transform/run",h,d):this.restRequest("POST","/v1/tools/transform/run",h,void 0,d?{signal:d}:void 0)}async createRun({toolId:e,toolConfig:t,toolResult:a,stepResults:i,toolPayload:r,status:n,error:s,startedAt:c,completedAt:m,executionKind:l,parentToolId:u,draftId:d}){return this.restRequest("POST","/v1/runs",{toolId:e,toolConfig:t,toolResult:a,stepResults:i,toolPayload:r,status:n,error:s,startedAt:(0,Lr.toUTCISOString)(c,"run.startedAt"),completedAt:(0,Lr.toUTCISOString)(m,"run.completedAt"),executionKind:l,parentToolId:u,draftId:d})}async checkRunLimit(){return(await this.restRequest("POST","/v1/runs/check-limit")).data}async extract({file:e,envelope:t}){if(!e)throw new Error("File must be provided for extract.");let a=new FormData;a.append("file",e);let i=t?"/v1/extract?envelope=true":"/v1/extract";return this.restRequest("POST",i,a)}mapOpenAPIRunToRun(e){let t={running:Tm.RunStatus.RUNNING,success:Tm.RunStatus.SUCCESS,failed:Tm.RunStatus.FAILED,aborted:Tm.RunStatus.ABORTED};return{runId:e.runId??e.id,toolId:e.toolId,tool:e.tool,systemIds:e.systemIds,status:t[e.status]??Tm.RunStatus.FAILED,toolPayload:e.toolPayload,data:e.data,toolResult:e.data,error:e.error,stepResults:e.stepResults,options:e.options,requestSource:e.requestSource,traceId:e.traceId,resultStorageUri:e.resultStorageUri,userId:e.userId,userEmail:e.userEmail,userName:e.userName,metadata:{...e.metadata,executionKind:e.metadata?.executionKind??Tm.RunExecutionKind.FULL},fileArtifacts:e.fileArtifacts}}mapOpenAPIScheduleToToolSchedule(e){return{...e,lastRunAt:e.lastRunAt?(0,Lr.requireUTCDate)(e.lastRunAt,"schedule.lastRunAt"):void 0,nextRunAt:(0,Lr.requireUTCDate)(e.nextRunAt,"schedule.nextRunAt"),createdAt:(0,Lr.requireUTCDate)(e.createdAt,"schedule.createdAt"),updatedAt:(0,Lr.requireUTCDate)(e.updatedAt,"schedule.updatedAt")}}async listRuns(e={}){let t=(0,Mr.createSearchListQueryParams)(e);e.toolId!==void 0&&t.set("toolId",e.toolId),e.searchUserIds?.length&&t.set("searchUserIds",e.searchUserIds.join(",")),e.includeTotal!==void 0&&t.set("includeTotal",String(e.includeTotal)),e.startedAfter!==void 0&&t.set("startedAfter",e.startedAfter instanceof Date?(0,Lr.toUTCISOString)(e.startedAfter,"run.startedAfter"):e.startedAfter),e.statuses!==void 0?t.set("status",e.statuses.join(",")):e.status!==void 0&&t.set("status",e.status),e.requestSources!==void 0&&t.set("requestSources",e.requestSources.join(",")),e.executionKinds!==void 0&&t.set("executionKinds",e.executionKinds.join(",")),e.userId!==void 0&&t.set("userId",e.userId),e.systemId!==void 0&&t.set("systemId",e.systemId),e.systemIds!==void 0&&t.set("systemIds",e.systemIds.join(","));let a=t.size>0?`?${t.toString()}`:"",i=await this.restRequest("GET",`/v1/runs${a}`,void 0,void 0,{signal:e.signal});return{data:i.data.map(r=>this.mapOpenAPIRunToRun(r)),total:i.total,page:i.page,limit:i.limit,hasMore:i.hasMore}}async getActivityCounts(e){let t=new URLSearchParams;e?.from&&t.set("from",e.from instanceof Date?(0,Lr.toUTCISOString)(e.from,"activity.from"):e.from),e?.to&&t.set("to",e.to instanceof Date?(0,Lr.toUTCISOString)(e.to,"activity.to"):e.to);let a=t.toString();return(await this.restRequest("GET",`/v1/activity/counts${a?`?${a}`:""}`,void 0,void 0,{signal:e?.signal})).counts}async getRun(e){try{let t=await this.restRequest("GET",`/v1/runs/${encodeURIComponent(e)}`);return this.mapOpenAPIRunToRun(t)}catch(t){if(t.message?.includes("404")||t.message?.includes("not found"))return null;throw t}}async getTool(e){try{return await this.restRequest("GET",`/v1/tools/${encodeURIComponent(e)}`)}catch(t){if(t.message?.includes("404")||t.message?.includes("not found")||t.message?.includes("403")||t.message?.includes("not allowed"))return null;throw t}}async getToolState(e){return(await this.restRequest("GET",`/v1/tools/${encodeURIComponent(e)}/state`)).state}async setToolState(e,t){await this.restRequest("PUT",`/v1/tools/${encodeURIComponent(e)}/state`,{state:t})}async deleteToolState(e){return(await this.restRequest("DELETE",`/v1/tools/${encodeURIComponent(e)}/state`)).deletedKeys}async archiveTool(e,t=!0){return this.updateTool(e,{archived:t})}async bulkArchiveTools(e,t=!0){return this.restRequest("POST","/v1/tools/bulk/archive",{ids:e,archived:t})}async bulkDeleteTools(e){return this.restRequest("POST","/v1/tools/bulk/delete",{ids:e})}async listTools(e={}){let t=(0,Mr.createListQueryParams)(e);e.includeArchived!==void 0&&t.set("includeArchived",String(e.includeArchived));let a=t.size>0?`?${t.toString()}`:"";return this.restRequest("GET",`/v1/tools${a}`)}async listAllTools(e={}){return(0,Mr.listAllPages)((t,a)=>this.listTools({...e,page:t,limit:a}))}async createTool(e,t){return this.restRequest("POST","/v1/tools",{...t,id:e})}async updateTool(e,t){return this.restRequest("PUT",`/v1/tools/${encodeURIComponent(e)}`,t)}async deleteTool(e){try{return await this.restRequest("DELETE",`/v1/tools/${encodeURIComponent(e)}`),!0}catch(t){if(t.message?.includes("404"))return!1;throw t}}async renameTool(e,t){return this.restRequest("POST",`/v1/tools/${encodeURIComponent(e)}/rename`,{newId:t})}async getWorkflow(e){return this.getTool(e)}async archiveWorkflow(e,t=!0){return this.upsertWorkflow(e,{archived:t})}async createWorkflow(e,t){return this.createTool(e,t)}async updateWorkflow(e,t){return this.updateTool(e,t)}async upsertWorkflow(e,t){return await this.getTool(e)?this.updateTool(e,t):this.createTool(e,t)}async deleteWorkflow(e){return this.deleteTool(e)}async renameWorkflow(e,t){return this.renameTool(e,t)}async listSchedules(e={}){let t=(0,Mr.createListQueryParams)(e),a=t.size>0?`?${t.toString()}`:"",i=e.toolId?`/v1/tools/${encodeURIComponent(e.toolId)}/schedules${a}`:`/v1/schedules${a}`,r=await this.restRequest("GET",i);return{...r,data:r.data.map(n=>this.mapOpenAPIScheduleToToolSchedule(n))}}async listAllSchedules(e={}){return(0,Mr.listAllPages)((t,a)=>this.listSchedules({...e,page:t,limit:a}))}async getToolSchedule(e,t){try{let a=await this.restRequest("GET",`/v1/tools/${encodeURIComponent(e)}/schedules/${encodeURIComponent(t)}`);return this.mapOpenAPIScheduleToToolSchedule(a)}catch(a){if(a.message?.includes("404")||a.message?.includes("not found"))return null;throw a}}async createToolSchedule(e,t){let a=await this.restRequest("POST",`/v1/tools/${encodeURIComponent(e)}/schedules`,{...t,timezone:t.timezone||(0,i2e.getRuntimeTimezone)()});return this.mapOpenAPIScheduleToToolSchedule(a)}async updateToolSchedule(e,t,a){let i=await this.restRequest("PUT",`/v1/tools/${encodeURIComponent(e)}/schedules/${encodeURIComponent(t)}`,a);return this.mapOpenAPIScheduleToToolSchedule(i)}async deleteToolSchedule(e,t){return await this.restRequest("DELETE",`/v1/tools/${encodeURIComponent(e)}/schedules/${encodeURIComponent(t)}`),!0}async bulkSetSchedulesEnabled(e,t){return this.restRequest("POST","/v1/schedules/bulk/enable",{ids:e,enabled:t})}async bulkDeleteSchedules(e){return this.restRequest("POST","/v1/schedules/bulk/delete",{ids:e})}async listCredentials(e={}){let t=(0,Mr.createListQueryParams)(e);e.systemId!==void 0&&t.set("systemId",e.systemId);let a=t.size>0?`?${t.toString()}`:"";return this.restRequest("GET",`/v1/credentials${a}`)}async listAllCredentials(e={}){return(0,Mr.listAllPages)((t,a)=>this.listCredentials({...e,page:t,limit:a}))}async createCredentials(e){return(await this.restRequest("POST","/v1/credentials",e)).data}async replaceCredentials(e,t){return(await this.restRequest("PUT",`/v1/credentials/${encodeURIComponent(e)}`,{credentials:t})).data}async updateCredentials(e,t){return(await this.restRequest("PATCH",`/v1/credentials/${encodeURIComponent(e)}`,t)).data}async deleteCredentials(e){await this.restRequest("DELETE",`/v1/credentials/${encodeURIComponent(e)}`)}async setDefaultCredentials(e){await this.restRequest("POST",`/v1/credentials/${encodeURIComponent(e)}/default`)}async listSystems(e={}){let t=(0,Mr.createListQueryParams)(e),a=t.size>0?`?${t.toString()}`:"";return this.restRequest("GET",`/v1/systems${a}`)}async listAllSystems(e={}){return(0,Mr.listAllPages)((t,a)=>this.listSystems({...e,page:t,limit:a}))}async getSystem(e){return(await this.restRequest("GET",`/v1/systems/${encodeURIComponent(e)}`)).data}async createSystem(e){return(await this.restRequest("POST","/v1/systems",e)).data}async updateSystem(e,t){return(await this.restRequest("PATCH",`/v1/systems/${encodeURIComponent(e)}`,t)).data}async deleteSystem(e){return await this.restRequest("DELETE",`/v1/systems/${encodeURIComponent(e)}`),!0}async bulkDeleteSystems(e){return this.restRequest("POST","/v1/systems/bulk/delete",{ids:e})}async createOAuthExchange(e){return(await this.restRequest("POST","/v1/oauth/exchanges",e)).data}async completeOAuthExchange(e,t){return(await this.restRequest("POST",`/v1/oauth/exchanges/${encodeURIComponent(e)}/complete`,t)).data}async searchSystemDocumentation(e,t){return(await this.restRequest("POST",`/v1/systems/${encodeURIComponent(e)}/documentation/search`,{keywords:t})).data}async triggerSystemDocumentationScrapeJob(e,t){return(await this.restRequest("POST",`/v1/systems/${encodeURIComponent(e)}/documentation/scrape`,t)).data}async fetchOpenApiSpec(e,t,a){return(await this.restRequest("POST",`/v1/systems/${encodeURIComponent(e)}/documentation/openapi`,{url:t,link:a?.link})).data}async uploadSystemDocumentationFiles(e,t,a){let i=await this.uploadFiles(t,{process:!0}),r=i.flatMap(n=>n.status==="uploaded"?[n.id]:[]);if(r.length>0)try{await this.restRequest("POST",`/v1/systems/${encodeURIComponent(e)}/documentation/files`,{fileIds:r,link:a?.link!==!1})}catch(n){throw await Promise.all(r.map(s=>this.deleteFileUpload(s).catch(()=>{}))),n}if(!a?.settle){let n=i.filter(s=>s.status==="failed");if(n.length>0)throw new Error(n.map(s=>s.error).join("; "))}return i}async listSystemDocumentationFiles(e,t){let a=new URLSearchParams;t?.length&&a.set("fileIds",t.join(","));let i=a.size>0?`?${a.toString()}`:"";return(await this.restRequest("GET",`/v1/systems/${encodeURIComponent(e)}/documentation/files${i}`)).data}async getSystemDocumentationFileContent(e,t,a){return(await this.restRequest("GET",`/v1/systems/${encodeURIComponent(e)}/documentation/files/${encodeURIComponent(t)}/content?processed=${a.processed}`)).data}async deleteSystemDocumentationFile(e,t){await this.restRequest("DELETE",`/v1/systems/${encodeURIComponent(e)}/documentation/files/${encodeURIComponent(t)}`)}async generateCredentialsLink(e){try{return{success:!0,credentialsUrl:(await this.restRequest("POST","/v1/authenticate",e||{})).data.credentialsUrl}}catch(t){return{success:!1,error:t.message}}}};Rm.SuperglueClient=Mq});var WN=f(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.UnquotedKeyStrategy=ao.TripleQuoteStrategy=ao.TrailingCommaStrategy=ao.SingleQuoteStrategy=ao.PythonLiteralStrategy=ao.CommentStrategy=ao.ResilientJsonParser=ao.RepairStrategy=void 0;ao.parseJsonResilient=r2e;ao.parseJSON=n2e;ao.isValidJson=s2e;ao.prettyPrintJson=c2e;ao.minifyJson=m2e;var Ra=class{validate(e){try{return JSON.parse(e),!0}catch{return!1}}};ao.RepairStrategy=Ra;var Fb=class extends Ra{constructor(){super(...arguments),this.name="TripleQuoteRepair",this.description="Converts triple-quoted strings to proper JSON, parsing nested JSON content"}canApply(e){return/"""/.test(e)}apply(e){return e.replace(/"""([\s\S]*?)"""/g,(t,a)=>{let i=a.trim();if(i.startsWith("{")&&i.endsWith("}")||i.startsWith("[")&&i.endsWith("]"))try{let n=JSON.parse(i);return JSON.stringify(n)}catch{return`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}"`}return`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}"`})}};ao.TripleQuoteStrategy=Fb;var $b=class extends Ra{constructor(){super(...arguments),this.name="PythonLiteralRepair",this.description="Converts Python literals to JavaScript equivalents"}canApply(e){return/\b(None|True|False)\b/.test(e)}apply(e){return e.replace(/\bNone\b/g,"null").replace(/\bTrue\b/g,"true").replace(/\bFalse\b/g,"false")}};ao.PythonLiteralStrategy=$b;var Hb=class extends Ra{constructor(){super(...arguments),this.name="TrailingCommaRepair",this.description="Removes trailing commas from objects and arrays"}canApply(e){return/,\s*[}\]]/.test(e)}apply(e){return e.replace(/,(\s*[}\]])/g,"$1")}};ao.TrailingCommaStrategy=Hb;var Gb=class extends Ra{constructor(){super(...arguments),this.name="SingleQuoteRepair",this.description="Converts single quotes to double quotes"}canApply(e){return/[{,]\s*'[^']*'\s*:/.test(e)||/:\s*'[^']*'/.test(e)}apply(e){let t=e.replace(/([{,]\s*)'([^']+)'(\s*:)/g,'$1"$2"$3');return t=t.replace(/(:\s*)'([^']+)'(\s*[,}])/g,'$1"$2"$3'),t}};ao.SingleQuoteStrategy=Gb;var Vb=class extends Ra{constructor(){super(...arguments),this.name="UnquotedKeyRepair",this.description="Adds quotes to unquoted object keys"}canApply(e){return/[{,]\s*[a-zA-Z_$][a-zA-Z0-9_$]*\s*:/.test(e)}apply(e){return e.replace(/([{,]\s*)([a-zA-Z_$][a-zA-Z0-9_$]*)(\s*:)/g,'$1"$2"$3')}};ao.UnquotedKeyStrategy=Vb;var Yb=class extends Ra{constructor(){super(...arguments),this.name="CommentRemoval",this.description="Removes JavaScript-style comments"}canApply(e){return/\/\/.*$|\/\*[\s\S]*?\*\//m.test(e)}apply(e){let t=e.replace(/\/\/.*$/gm,"");return t=t.replace(/\/\*[\s\S]*?\*\//g,""),t}};ao.CommentStrategy=Yb;var Lq=class extends Ra{constructor(){super(...arguments),this.name="UnescapedControlCharactersRepair",this.description="Escapes unescaped control characters (newlines, tabs, etc.) in JSON strings"}canApply(e){try{return JSON.parse(e),!1}catch(t){let a=t.message||"";return a.includes("control character")||a.includes("Bad control")||a.includes("Unexpected token")&&/[\n\r\t]/.test(e)}}apply(e){let t="",a=!1,i=!1;for(let r=0;r<e.length;r++){let n=e[r],s=r>0?e[r-1]:"";if(i){t+=n,i=!1;continue}if(n==="\\"&&a){t+=n,i=!0;continue}if(n==='"'&&s!=="\\"){a=!a,t+=n;continue}if(a)switch(n){case`
1665
1665
  `:t+="\\n";break;case"\r":t+="\\r";break;case" ":t+="\\t";break;case"\b":t+="\\b";break;case"\f":t+="\\f";break;default:let c=n.charCodeAt(0);c<32?t+="\\u"+("0000"+c.toString(16)).slice(-4):t+=n}else t+=n}return t}},Pq=class extends Ra{constructor(){super(...arguments),this.name="TrailingCharactersRepair",this.description="Removes trailing characters after valid JSON structure"}canApply(e){let t=e.trim();if(!t.startsWith("{")&&!t.startsWith("["))return!1;let a=0,i=0,r=!1,n=!1;for(let s=0;s<t.length;s++){let c=t[s];if(r)n?n=!1:c==="\\"?n=!0:c==='"'&&(r=!1);else if(c==='"')r=!0;else if(c==="{")a++;else if(c==="}"){if(a--,a===0&&i===0&&s>0&&s<t.length-1)return!0}else if(c==="[")i++;else if(c==="]"&&(i--,i===0&&a===0&&s>0&&s<t.length-1))return!0}return!1}apply(e){let t=e.trim(),a=0,i=0,r=!1,n=!1,s=-1;for(let c=0;c<t.length;c++){let m=t[c];if(r)n?n=!1:m==="\\"?n=!0:m==='"'&&(r=!1);else if(m==='"')r=!0;else if(m==="{")a++;else if(m==="}"){if(a--,a===0&&i===0&&c>0){s=c;break}}else if(m==="[")i++;else if(m==="]"&&(i--,i===0&&a===0&&c>0)){s=c;break}}return s>0&&s<t.length-1?t.substring(0,s+1):e}},Nm=class{constructor(e={}){this.strategies=[],this.repairLog=[],this.options={attemptRepair:!0,maxDepth:10,preserveStringsOnFailure:!1,logRepairs:!1,...e},this.initializeDefaultStrategies(),e.customStrategies&&this.strategies.push(...e.customStrategies)}initializeDefaultStrategies(){this.strategies=[new Fb,new Gb,new Lq,new Pq,new $b,new Hb,new Vb,new Yb]}parse(e){let t=Date.now();this.repairLog=[];let a=e instanceof Buffer?e.toString("utf8"):String(e);try{return{success:!0,data:JSON.parse(a),metadata:{parseTime:Date.now()-t,strategiesApplied:[]}}}catch(n){if(!this.options.attemptRepair)return{success:!1,error:`JSON parse error: ${n}`,metadata:{parseTime:Date.now()-t}}}let i=a,r=[];for(let n of this.strategies)if(n.canApply(i)){let s=i;if(i=n.apply(i),s!==i){r.push(n.name),this.repairLog.push(n.description),this.options.logRepairs&&console.log(`Applied ${n.name}: ${n.description}`);try{return{success:!0,data:JSON.parse(i),repairs:this.repairLog,metadata:{parseTime:Date.now()-t,strategiesApplied:r}}}catch{}}}try{return{success:!0,data:JSON.parse(i),repairs:this.repairLog,metadata:{parseTime:Date.now()-t,strategiesApplied:r}}}catch(n){let s=this.aggressiveFallback(i);return s.success?{...s,repairs:[...this.repairLog,"Applied aggressive fallback"],metadata:{parseTime:Date.now()-t,strategiesApplied:[...r,"AggressiveFallback"]}}:{success:!1,error:`Failed to parse JSON after applying ${r.length} strategies: ${n}`,repairs:this.repairLog,metadata:{parseTime:Date.now()-t,strategiesApplied:r}}}}aggressiveFallback(e){try{let t=e.indexOf("{"),a=e.indexOf("[");if(t===-1&&a===-1)return{success:!1,error:"No JSON-like structure found"};let i=t===-1?a:a===-1?t:Math.min(t,a),r=e.substring(i);for(let s of this.strategies)s.canApply(r)&&(r=s.apply(r));return{success:!0,data:JSON.parse(r)}}catch(t){return{success:!1,error:`Aggressive fallback failed: ${t}`}}}addStrategy(e){this.strategies.push(e)}removeStrategy(e){this.strategies=this.strategies.filter(t=>t.name!==e)}getStrategies(){return this.strategies.map(e=>e.name)}};ao.ResilientJsonParser=Nm;var JN=new Nm;function r2e(o,e){return(e?new Nm(e):JN).parse(o)}function n2e(o){let e=JN.parse(o);if(e.success)return e.repairs&&e.repairs.length>0&&console.log("JSON parsed with repairs:",e.repairs),e.data;throw new Error(`Failed to parse JSON: ${e.error}`)}function s2e(o){try{return JSON.parse(o),!0}catch{return!1}}function c2e(o,e=2){return JSON.stringify(o,null,e)}function m2e(o){let t=new Nm().parse(o);if(t.success)return JSON.stringify(t.data);throw new Error("Cannot minify invalid JSON")}});var Pt=f(oe=>{"use strict";var l2e=oe&&oe.__createBinding||(Object.create?(function(o,e,t,a){a===void 0&&(a=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(o,a,i)}):(function(o,e,t,a){a===void 0&&(a=t),o[a]=e[t]})),he=oe&&oe.__exportStar||function(o,e){for(var t in o)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&l2e(e,o,t)};Object.defineProperty(oe,"__esModule",{value:!0});oe.SSELogSubscriptionManager=oe.SuperglueHttpError=oe.SuperglueClient=void 0;he(NC(),oe);he(VC(),oe);he(u8(),oe);he(f8(),oe);he(A8(),oe);he(iu(),oe);he(M8(),oe);he(L8(),oe);he(P8(),oe);he(F8(),oe);he(xv(),oe);he(H8(),oe);he(G8(),oe);he(V8(),oe);he(Ev(),oe);he(W8(),oe);he(K8(),oe);he(X8(),oe);he(o3(),oe);he(Md(),oe);he(a3(),oe);he(i3(),oe);he(n3(),oe);he(m3(),oe);he(Cv(),oe);he(h3(),oe);he(b3(),oe);he(k3(),oe);he(A3(),oe);he(B3(),oe);he(_3(),oe);he(Fv(),oe);he(G3(),oe);he(Zv(),oe);he(W3(),oe);he(eQ(),oe);he(tQ(),oe);he(Ht(),oe);he(Fa(),oe);he(aQ(),oe);he(iQ(),oe);he(jh(),oe);he(zc(),oe);he(Lg(),oe);var ZN=YN();Object.defineProperty(oe,"SuperglueClient",{enumerable:!0,get:function(){return ZN.SuperglueClient}});Object.defineProperty(oe,"SuperglueHttpError",{enumerable:!0,get:function(){return ZN.SuperglueHttpError}});var u2e=ew();Object.defineProperty(oe,"SSELogSubscriptionManager",{enumerable:!0,get:function(){return u2e.SSELogSubscriptionManager}});he(WN(),oe)});var Cy=require("commander");var kt=pe(require("fs")),eO=pe(require("os")),Pr=pe(require("path")),xd=pe(Pt()),KN=new Set(["runner","builder","admin"]),XN={output:{mode:"stdout",directory:".superglue/output"},preset:"admin"};function Fr(o){let e=Pr.join(process.cwd(),".superglue"),t=eO.homedir();if(!t)return e;let a=Pr.join(t,".superglue");return o===!0?e:o===!1?a:kt.existsSync(Pr.join(e,"config.json"))?e:a}function Fq(o){return Pr.join(Fr(o),"config.json")}function Jb(o){let e=Fq(o);if(!kt.existsSync(e))return{};try{return JSON.parse(kt.readFileSync(e,"utf-8"))}catch{return{}}}function Om(o){let e=Jb(),t=o.apiKey||(0,xd.readProcessEnvironmentValue)("SUPERGLUE_API_KEY")||e.apiKey||"",a=o.endpoint||(0,xd.readProcessEnvironmentValue)("SUPERGLUE_API_ENDPOINT")||e.endpoint||"https://api.superglue.cloud",i=(0,xd.readProcessEnvironmentValue)("SUPERGLUE_WEB_ENDPOINT")||e.webEndpoint||a.replace(/:3002\b/,":3001").replace(/api\.superglue/,"app.superglue"),r=(0,xd.readProcessEnvironmentValue)("SUPERGLUE_CLI_PRESET"),n=r&&KN.has(r)?r:e.preset&&KN.has(e.preset)?e.preset:"admin";return{...XN,...e,apiKey:t,endpoint:a,webEndpoint:i,preset:n,output:{...XN.output,...e.output}}}function Wb(o,e){let t=Fr(e);kt.existsSync(t)||kt.mkdirSync(t,{recursive:!0}),kt.writeFileSync(Pr.join(t,"config.json"),JSON.stringify(o,null,2)+`
1666
- `,{mode:384})}function Zb(o,e){let t=Pr.join(Fr(e),"drafts");if(kt.existsSync(t)||kt.mkdirSync(t,{recursive:!0}),o.output.mode==="stdout+file"){let a=Pr.resolve(o.output.directory);kt.existsSync(a)||kt.mkdirSync(a,{recursive:!0})}}var Wq=pe(Pt());var $q=pe(require("readline"));var aO=require("child_process"),iO=require("util");var oO={name:"@superglue/cli",version:"1.1.104",bin:{sg:"./dist/cli.js"},files:[".claude-plugin/","dist/","skills/","LICENSE"],dependencies:{commander:"15.0.0-0","fast-json-patch":"3.1.1"},devDependencies:{"@superglue/shared":"file:../shared","@types/node":"25.5.0",tsup:"8.5.1",typescript:"5.8.3"},scripts:{build:"tsup && (cp -r skills dist/ 2>/dev/null || true)",dev:"tsup --watch","type-check":"tsc --noEmit",prepublishOnly:"npm run build"},publishConfig:{access:"public"}};var g2e=(0,iO.promisify)(aO.exec),rt=oO.version;function tO(o){let e=o.match(/^(\d+)(?:-(.+))?$/);return e?{numeric:parseInt(e[1],10),prerelease:e[2]||null}:{numeric:0,prerelease:o}}function Xb(o,e){let t=o.split("."),a=e.split("."),i=Math.max(t.length,a.length);for(let r=0;r<i;r++){let n=tO(t[r]||"0"),s=tO(a[r]||"0");if(n.numeric<s.numeric)return-1;if(n.numeric>s.numeric||n.prerelease===null&&s.prerelease!==null)return 1;if(n.prerelease!==null&&s.prerelease===null)return-1;if(n.prerelease!==null&&s.prerelease!==null){if(n.prerelease<s.prerelease)return-1;if(n.prerelease>s.prerelease)return 1}}return 0}async function ey(){try{let o=await fetch("https://registry.npmjs.org/@superglue/cli/latest",{signal:AbortSignal.timeout(5e3)});return o.ok&&(await o.json()).version||null}catch{return null}}var Kb=null;function rO(){me()&&(Kb=ey())}async function nO(){if(!(!me()||!Kb)){try{let o=new Promise(t=>{setTimeout(()=>t(null),2e3).unref()}),e=await Promise.race([Kb,o]);e&&Xb(rt,e)<0&&(console.error(""),console.error(`${b.cyan}${b.bold} Update available: ${rt} \u2192 ${e}${b.reset}`),console.error(`${b.cyan} Run ${b.bold}sg update${b.reset}${b.cyan} to upgrade${b.reset}`),console.error(""))}catch{}Kb=null}}async function sO(){let o=await ey();if(!o)return{success:!1,message:"Could not fetch latest version from npm"};if(Xb(rt,o)>=0)return{success:!0,message:`Already on latest version (${rt})`};try{return await g2e("npm install -g @superglue/cli@latest"),{success:!0,message:`Updated from ${rt} to ${o}`}}catch(e){return{success:!1,message:`Update failed: ${e.message}. Try manually: npm install -g @superglue/cli@latest`}}}var me=()=>process.argv.includes("--table")&&process.stdout.isTTY,ya=()=>process.argv.includes("--full"),b={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",italic:"\x1B[3m",underline:"\x1B[4m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m",gray:"\x1B[90m",bgRed:"\x1B[41m",bgGreen:"\x1B[42m",bgYellow:"\x1B[43m",bgBlue:"\x1B[44m",bgMagenta:"\x1B[45m",bgCyan:"\x1B[46m"};function cO(o,e){let t=e||o;return`\x1B]8;;${o}\x07${b.underline}${b.cyan}${t}${b.reset}\x1B]8;;\x07`}function mO(){if(!me())return;let o=b.reset,e=b.dim,t="\x1B[47;30m",a=[" #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@- "," =@@@- @@@@ "," @@@ @@% "," -@@ @@@@= @@@ @@@ @@@@@#@ @@@@@@@ @@@@@@@ @@@@@@ @@@ @@@ @@@ @@@@@@* %@@ "," @@ @@@ *@ @@@ @@@ @@@ :@@ @@@ @@@ -@@ @@@ @% @@@ @@@ @@@ @@* @@# "," #@@ @@@# @@@ @@@ @@@ :@@ @@@ @@@ -@@ @@@ @@@ @@@ @@@ @@* @@ "," @@- @@@@= @@@ @@@ @@@@@@@ @@@@@@ @@@@@@@ @@@ @@% @@@ @@@ @@@ @@@@@. @@."," #@% .@@@@ @@@ @@@ @@@ @@@ @@@ -@@ @@@ @@% @@@ @@@ @@@ @@* @@ "," @@ @ @@@ @@@ @@@ @@@ @@@ @@@ -@@ @@@ @@% @@@ @@@ @@@ @@* *@@ "," -@@ @@@@= @@@@@@ @@@ @@@@@@@ @@@ -@@ @@@@@@ @@@@@@% @@@@@@. @@@@@@* #@@ "," :@@* @@@ "," %@@@ =@@@. "," :@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@% "];console.log(""),a.forEach(i=>{let r=i.search(/\S/),n=i.length-[...i].reverse().join("").search(/\S/)-1;if(r===-1)return console.log(" "+i);let s=i.slice(0,r),c=i.slice(r,n+1).split("").map(l=>l===" "?" ":"\u2588").join(""),m=i.slice(n+1);console.log(` ${s}${t}${c}${o}${m}`)}),console.log(` ${e} CLI v${rt}${o}`),console.log("")}function eo(o){if(!me())return{stop:()=>{},update:()=>{},log:()=>{}};let e=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],t=0,a=o,i=()=>process.stdout.write("\r\x1B[2K"),r=()=>{process.stdout.write(`\r ${b.cyan}${e[t++%e.length]}${b.reset} ${a}`)},n=setInterval(r,80);return{update:s=>{a=s},log:s=>{i(),console.log(` ${b.dim}\u2502${b.reset} ${s}`),r()},stop:s=>{clearInterval(n),i(),s&&console.log(` ${s}`)}}}function te(o){me()?oy(o):console.log(JSON.stringify(o,null,2))}function qe(o,e){me()?(console.log(` ${b.green}\u2713${b.reset} ${o}`),e&&oy(e,4)):console.log(JSON.stringify({success:!0,message:o,...e&&typeof e=="object"?e:{data:e}}))}function I(o,e){me()?(console.error(` ${b.red}\u2717${b.reset} ${o}`),e&&oy(e,4)):console.error(JSON.stringify({success:!1,error:o,details:e}))}function lO(o){me()&&console.log(` ${b.yellow}\u26A0${b.reset} ${o}`)}function Yo(o){me()&&console.log(` ${b.dim}${o}${b.reset}`)}function $r(o){me()&&(console.log(`
1666
+ `,{mode:384})}function Zb(o,e){let t=Pr.join(Fr(e),"drafts");if(kt.existsSync(t)||kt.mkdirSync(t,{recursive:!0}),o.output.mode==="stdout+file"){let a=Pr.resolve(o.output.directory);kt.existsSync(a)||kt.mkdirSync(a,{recursive:!0})}}var Wq=pe(Pt());var $q=pe(require("readline"));var aO=require("child_process"),iO=require("util");var oO={name:"@superglue/cli",version:"1.1.105",bin:{sg:"./dist/cli.js"},files:[".claude-plugin/","dist/","skills/","LICENSE"],dependencies:{commander:"15.0.0-0","fast-json-patch":"3.1.1"},devDependencies:{"@superglue/shared":"file:../shared","@types/node":"25.5.0",tsup:"8.5.1",typescript:"5.8.3"},scripts:{build:"tsup && (cp -r skills dist/ 2>/dev/null || true)",dev:"tsup --watch","type-check":"tsc --noEmit",prepublishOnly:"npm run build"},publishConfig:{access:"public"}};var g2e=(0,iO.promisify)(aO.exec),rt=oO.version;function tO(o){let e=o.match(/^(\d+)(?:-(.+))?$/);return e?{numeric:parseInt(e[1],10),prerelease:e[2]||null}:{numeric:0,prerelease:o}}function Xb(o,e){let t=o.split("."),a=e.split("."),i=Math.max(t.length,a.length);for(let r=0;r<i;r++){let n=tO(t[r]||"0"),s=tO(a[r]||"0");if(n.numeric<s.numeric)return-1;if(n.numeric>s.numeric||n.prerelease===null&&s.prerelease!==null)return 1;if(n.prerelease!==null&&s.prerelease===null)return-1;if(n.prerelease!==null&&s.prerelease!==null){if(n.prerelease<s.prerelease)return-1;if(n.prerelease>s.prerelease)return 1}}return 0}async function ey(){try{let o=await fetch("https://registry.npmjs.org/@superglue/cli/latest",{signal:AbortSignal.timeout(5e3)});return o.ok&&(await o.json()).version||null}catch{return null}}var Kb=null;function rO(){me()&&(Kb=ey())}async function nO(){if(!(!me()||!Kb)){try{let o=new Promise(t=>{setTimeout(()=>t(null),2e3).unref()}),e=await Promise.race([Kb,o]);e&&Xb(rt,e)<0&&(console.error(""),console.error(`${b.cyan}${b.bold} Update available: ${rt} \u2192 ${e}${b.reset}`),console.error(`${b.cyan} Run ${b.bold}sg update${b.reset}${b.cyan} to upgrade${b.reset}`),console.error(""))}catch{}Kb=null}}async function sO(){let o=await ey();if(!o)return{success:!1,message:"Could not fetch latest version from npm"};if(Xb(rt,o)>=0)return{success:!0,message:`Already on latest version (${rt})`};try{return await g2e("npm install -g @superglue/cli@latest"),{success:!0,message:`Updated from ${rt} to ${o}`}}catch(e){return{success:!1,message:`Update failed: ${e.message}. Try manually: npm install -g @superglue/cli@latest`}}}var me=()=>process.argv.includes("--table")&&process.stdout.isTTY,ya=()=>process.argv.includes("--full"),b={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",italic:"\x1B[3m",underline:"\x1B[4m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m",gray:"\x1B[90m",bgRed:"\x1B[41m",bgGreen:"\x1B[42m",bgYellow:"\x1B[43m",bgBlue:"\x1B[44m",bgMagenta:"\x1B[45m",bgCyan:"\x1B[46m"};function cO(o,e){let t=e||o;return`\x1B]8;;${o}\x07${b.underline}${b.cyan}${t}${b.reset}\x1B]8;;\x07`}function mO(){if(!me())return;let o=b.reset,e=b.dim,t="\x1B[47;30m",a=[" #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@- "," =@@@- @@@@ "," @@@ @@% "," -@@ @@@@= @@@ @@@ @@@@@#@ @@@@@@@ @@@@@@@ @@@@@@ @@@ @@@ @@@ @@@@@@* %@@ "," @@ @@@ *@ @@@ @@@ @@@ :@@ @@@ @@@ -@@ @@@ @% @@@ @@@ @@@ @@* @@# "," #@@ @@@# @@@ @@@ @@@ :@@ @@@ @@@ -@@ @@@ @@@ @@@ @@@ @@* @@ "," @@- @@@@= @@@ @@@ @@@@@@@ @@@@@@ @@@@@@@ @@@ @@% @@@ @@@ @@@ @@@@@. @@."," #@% .@@@@ @@@ @@@ @@@ @@@ @@@ -@@ @@@ @@% @@@ @@@ @@@ @@* @@ "," @@ @ @@@ @@@ @@@ @@@ @@@ @@@ -@@ @@@ @@% @@@ @@@ @@@ @@* *@@ "," -@@ @@@@= @@@@@@ @@@ @@@@@@@ @@@ -@@ @@@@@@ @@@@@@% @@@@@@. @@@@@@* #@@ "," :@@* @@@ "," %@@@ =@@@. "," :@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@% "];console.log(""),a.forEach(i=>{let r=i.search(/\S/),n=i.length-[...i].reverse().join("").search(/\S/)-1;if(r===-1)return console.log(" "+i);let s=i.slice(0,r),c=i.slice(r,n+1).split("").map(l=>l===" "?" ":"\u2588").join(""),m=i.slice(n+1);console.log(` ${s}${t}${c}${o}${m}`)}),console.log(` ${e} CLI v${rt}${o}`),console.log("")}function eo(o){if(!me())return{stop:()=>{},update:()=>{},log:()=>{}};let e=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],t=0,a=o,i=()=>process.stdout.write("\r\x1B[2K"),r=()=>{process.stdout.write(`\r ${b.cyan}${e[t++%e.length]}${b.reset} ${a}`)},n=setInterval(r,80);return{update:s=>{a=s},log:s=>{i(),console.log(` ${b.dim}\u2502${b.reset} ${s}`),r()},stop:s=>{clearInterval(n),i(),s&&console.log(` ${s}`)}}}function te(o){me()?oy(o):console.log(JSON.stringify(o,null,2))}function qe(o,e){me()?(console.log(` ${b.green}\u2713${b.reset} ${o}`),e&&oy(e,4)):console.log(JSON.stringify({success:!0,message:o,...e&&typeof e=="object"?e:{data:e}}))}function I(o,e){me()?(console.error(` ${b.red}\u2717${b.reset} ${o}`),e&&oy(e,4)):console.error(JSON.stringify({success:!1,error:o,details:e}))}function lO(o){me()&&console.log(` ${b.yellow}\u26A0${b.reset} ${o}`)}function Yo(o){me()&&console.log(` ${b.dim}${o}${b.reset}`)}function $r(o){me()&&(console.log(`
1667
1667
  ${b.bold}${b.cyan}${o}${b.reset}`),console.log(` ${b.dim}${"\u2500".repeat(o.length)}${b.reset}`))}function ir(o,e,t){if(!me()){console.log(JSON.stringify({success:!0,total:t?.total??o.length,items:o}));return}if(o.length===0){console.log(`
1668
1668
  ${b.dim}0 results${b.reset}
1669
1669
  `);return}let a=e||Object.keys(o[0]),i=ya()?1/0:60,r=a.map(l=>Math.min(i,Math.max(l.length,...o.map(u=>String(u[l]??"").replace(/[\n\r]+/g," ").trim().length))));console.log("");let n=a.map((l,u)=>`${b.bold}${b.cyan}${l.toUpperCase().padEnd(r[u])}${b.reset}`).join(" ");console.log(` ${n}`);let s=r.map(l=>`${b.dim}${"\u2500".repeat(l)}${b.reset}`).join(`${b.dim}\u2500\u2500${b.reset}`);console.log(` ${s}`);for(let l of o){let u=a.map((d,g)=>{let h=String(l[d]??"").replace(/[\n\r]+/g," ").trim();if(h.length>i){let w=`\u2026 (${h.length})`;h=h.slice(0,Math.max(0,i-w.length))+`${b.dim}${w}${b.reset}`}return d==="status"?`${{success:b.green,running:b.yellow,failed:b.red,aborted:b.red,error:b.red,pending:b.dim}[h.toLowerCase()]||""}${h.padEnd(r[g])}${b.reset}`:h.padEnd(r[g])}).join(" ");console.log(` ${u}`)}let c=t?.total??o.length,m=c===o.length?`${o.length} result${o.length===1?"":"s"}`:`${o.length} of ${c} result${c===1?"":"s"}`;console.log(`
@@ -214,7 +214,7 @@ Agents familiar with the web agent (its native tools and the `superglue` node mo
214
214
  | ------------------------------------------------ | ---------------------------------------------- | ------------------------------------------------------------------ |
215
215
  | `tools.writeTool` (superglue module; new id) | `sg tool build --config '{...}'` | CLI is not AI-powered — you provide the full JSON config |
216
216
  | `tools.writeTool` (superglue/approved; saved id) | `sg tool edit --tool <id> --patches '[...]'` | JSON Patch (RFC 6902). Use `--draft <id>` for drafts |
217
- | `run_tool` | `sg tool run --tool <id>` / `--draft <id>` | Add `--include-step-results` to inspect per-step data |
217
+ | `tools.runTool` | `sg tool run --tool <id>` / `--draft <id>` | Add `--include-step-results` to inspect per-step data |
218
218
  | `run_command` with `vfs` for `/org/tools/` | `sg tool find --id <id>` / `sg tool find <q>` | Full config with `--id`, compact search with a query string |
219
219
  | `tools.writeSystem` (superglue module; new id) | `sg system create --name "..." --url "..."` | Use `--template <id>` when available |
220
220
  | `tools.writeSystem` (superglue/approved; saved) | `sg system edit --id <id> ...` | Edits the system with that exact ID |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superglue/cli",
3
- "version": "1.1.104",
3
+ "version": "1.1.105",
4
4
  "bin": {
5
5
  "sg": "./dist/cli.js"
6
6
  },
@@ -214,7 +214,7 @@ Agents familiar with the web agent (its native tools and the `superglue` node mo
214
214
  | ------------------------------------------------ | ---------------------------------------------- | ------------------------------------------------------------------ |
215
215
  | `tools.writeTool` (superglue module; new id) | `sg tool build --config '{...}'` | CLI is not AI-powered — you provide the full JSON config |
216
216
  | `tools.writeTool` (superglue/approved; saved id) | `sg tool edit --tool <id> --patches '[...]'` | JSON Patch (RFC 6902). Use `--draft <id>` for drafts |
217
- | `run_tool` | `sg tool run --tool <id>` / `--draft <id>` | Add `--include-step-results` to inspect per-step data |
217
+ | `tools.runTool` | `sg tool run --tool <id>` / `--draft <id>` | Add `--include-step-results` to inspect per-step data |
218
218
  | `run_command` with `vfs` for `/org/tools/` | `sg tool find --id <id>` / `sg tool find <q>` | Full config with `--id`, compact search with a query string |
219
219
  | `tools.writeSystem` (superglue module; new id) | `sg system create --name "..." --url "..."` | Use `--template <id>` when available |
220
220
  | `tools.writeSystem` (superglue/approved; saved) | `sg system edit --id <id> ...` | Edits the system with that exact ID |