@superglue/cli 1.1.117 → 1.1.118

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.117",
4
+ "version": "1.1.118",
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 zU=Object.create;var jd=Object.defineProperty;var qU=Object.getOwnPropertyDescriptor;var EU=Object.getOwnPropertyNames;var IU=Object.getPrototypeOf,jU=Object.prototype.hasOwnProperty;var Fe=(o,e)=>()=>(o&&(e=o(o=0)),e);var f=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports),sE=(o,e)=>{for(var t in e)jd(o,t,{get:e[t],enumerable:!0})},cE=(o,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of EU(e))!jU.call(o,i)&&i!==t&&jd(o,i,{get:()=>e[i],enumerable:!(a=qU(e,i))||a.enumerable});return o};var pe=(o,e,t)=>(t=o!=null?zU(IU(o)):{},cE(e||!o||!o.__esModule?jd(t,"default",{value:o,enumerable:!0}):t,o)),Sy=o=>cE(jd({},"__esModule",{value:!0}),o);var gE=f((Z2e,dE)=>{"use strict";var mE=9007199254740991,CU="[object Arguments]",SU="[object Function]",BU="[object GeneratorFunction]",QU=/^(?:0|[1-9]\d*)$/;function _U(o,e){for(var t=-1,a=Array(o);++t<o;)a[t]=e(t);return a}function DU(o,e){return function(t){return o(e(t))}}var Cd=Object.prototype,By=Cd.hasOwnProperty,lE=Cd.toString,TU=Cd.propertyIsEnumerable,RU=DU(Object.keys,Object);function NU(o,e){var t=PU(o)||LU(o)?_U(o.length,String):[],a=t.length,i=!!a;for(var r in o)(e||By.call(o,r))&&!(i&&(r=="length"||UU(r,a)))&&t.push(r);return t}function OU(o){if(!MU(o))return RU(o);var e=[];for(var t in Object(o))By.call(o,t)&&t!="constructor"&&e.push(t);return e}function UU(o,e){return e=e??mE,!!e&&(typeof o=="number"||QU.test(o))&&o>-1&&o%1==0&&o<e}function MU(o){var e=o&&o.constructor,t=typeof e=="function"&&e.prototype||Cd;return o===t}function LU(o){return FU(o)&&By.call(o,"callee")&&(!TU.call(o,"callee")||lE.call(o)==CU)}var PU=Array.isArray;function uE(o){return o!=null&&HU(o.length)&&!$U(o)}function FU(o){return VU(o)&&uE(o)}function $U(o){var e=GU(o)?lE.call(o):"";return e==SU||e==BU}function HU(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=mE}function GU(o){var e=typeof o;return!!o&&(e=="object"||e=="function")}function VU(o){return!!o&&typeof o=="object"}function YU(o){return uE(o)?NU(o):OU(o)}dE.exports=YU});var PE=f((Wm,tc)=>{"use strict";var JU=200,xE="__lodash_hash_undefined__",WU=800,ZU=16,zE=9007199254740991,qE="[object Arguments]",KU="[object Array]",XU="[object AsyncFunction]",eM="[object Boolean]",oM="[object Date]",tM="[object Error]",EE="[object Function]",aM="[object GeneratorFunction]",iM="[object Map]",rM="[object Number]",nM="[object Null]",IE="[object Object]",sM="[object Proxy]",cM="[object RegExp]",mM="[object Set]",lM="[object String]",uM="[object Undefined]",dM="[object WeakMap]",gM="[object ArrayBuffer]",pM="[object DataView]",hM="[object Float32Array]",fM="[object Float64Array]",bM="[object Int8Array]",yM="[object Int16Array]",kM="[object Int32Array]",AM="[object Uint8Array]",vM="[object Uint8ClampedArray]",wM="[object Uint16Array]",xM="[object Uint32Array]",zM=/[\\^$.*+?()[\]{}|]/g,qM=/^\[object .+?Constructor\]$/,EM=/^(?:0|[1-9]\d*)$/,Ve={};Ve[hM]=Ve[fM]=Ve[bM]=Ve[yM]=Ve[kM]=Ve[AM]=Ve[vM]=Ve[wM]=Ve[xM]=!0;Ve[qE]=Ve[KU]=Ve[gM]=Ve[eM]=Ve[pM]=Ve[oM]=Ve[tM]=Ve[EE]=Ve[iM]=Ve[rM]=Ve[IE]=Ve[cM]=Ve[mM]=Ve[lM]=Ve[dM]=!1;var jE=typeof global=="object"&&global&&global.Object===Object&&global,IM=typeof self=="object"&&self&&self.Object===Object&&self,Xm=jE||IM||Function("return this")(),CE=typeof Wm=="object"&&Wm&&!Wm.nodeType&&Wm,Zm=CE&&typeof tc=="object"&&tc&&!tc.nodeType&&tc,SE=Zm&&Zm.exports===CE,Qy=SE&&jE.process,pE=(function(){try{var o=Zm&&Zm.require&&Zm.require("util").types;return o||Qy&&Qy.binding&&Qy.binding("util")}catch{}})(),hE=pE&&pE.isTypedArray;function jM(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 CM(o,e){for(var t=-1,a=Array(o);++t<o;)a[t]=e(t);return a}function SM(o){return function(e){return o(e)}}function BM(o,e){return o?.[e]}function QM(o,e){return function(t){return o(e(t))}}var _M=Array.prototype,DM=Function.prototype,Qd=Object.prototype,_y=Xm["__core-js_shared__"],_d=DM.toString,mr=Qd.hasOwnProperty,fE=(function(){var o=/[^.]+$/.exec(_y&&_y.keys&&_y.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),BE=Qd.toString,TM=_d.call(Object),RM=RegExp("^"+_d.call(mr).replace(zM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Sd=SE?Xm.Buffer:void 0,bE=Xm.Symbol,yE=Xm.Uint8Array,kE=Sd?Sd.allocUnsafe:void 0,QE=QM(Object.getPrototypeOf,Object),AE=Object.create,NM=Qd.propertyIsEnumerable,OM=_M.splice,Yn=bE?bE.toStringTag:void 0,Bd=(function(){try{var o=Uy(Object,"defineProperty");return o({},"",{}),o}catch{}})(),UM=Sd?Sd.isBuffer:void 0,vE=Math.max,MM=Date.now,_E=Uy(Xm,"Map"),Km=Uy(Object,"create"),LM=(function(){function o(){}return function(e){if(!Wn(e))return{};if(AE)return AE(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 PM(){this.__data__=Km?Km(null):{},this.size=0}function FM(o){var e=this.has(o)&&delete this.__data__[o];return this.size-=e?1:0,e}function $M(o){var e=this.__data__;if(Km){var t=e[o];return t===xE?void 0:t}return mr.call(e,o)?e[o]:void 0}function HM(o){var e=this.__data__;return Km?e[o]!==void 0:mr.call(e,o)}function GM(o,e){var t=this.__data__;return this.size+=this.has(o)?0:1,t[o]=Km&&e===void 0?xE:e,this}Jn.prototype.clear=PM;Jn.prototype.delete=FM;Jn.prototype.get=$M;Jn.prototype.has=HM;Jn.prototype.set=GM;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 VM(){this.__data__=[],this.size=0}function YM(o){var e=this.__data__,t=Dd(e,o);if(t<0)return!1;var a=e.length-1;return t==a?e.pop():OM.call(e,t,1),--this.size,!0}function JM(o){var e=this.__data__,t=Dd(e,o);return t<0?void 0:e[t][1]}function WM(o){return Dd(this.__data__,o)>-1}function ZM(o,e){var t=this.__data__,a=Dd(t,o);return a<0?(++this.size,t.push([o,e])):t[a][1]=e,this}lr.prototype.clear=VM;lr.prototype.delete=YM;lr.prototype.get=JM;lr.prototype.has=WM;lr.prototype.set=ZM;function ac(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 KM(){this.size=0,this.__data__={hash:new Jn,map:new(_E||lr),string:new Jn}}function XM(o){var e=Rd(this,o).delete(o);return this.size-=e?1:0,e}function eL(o){return Rd(this,o).get(o)}function oL(o){return Rd(this,o).has(o)}function tL(o,e){var t=Rd(this,o),a=t.size;return t.set(o,e),this.size+=t.size==a?0:1,this}ac.prototype.clear=KM;ac.prototype.delete=XM;ac.prototype.get=eL;ac.prototype.has=oL;ac.prototype.set=tL;function ic(o){var e=this.__data__=new lr(o);this.size=e.size}function aL(){this.__data__=new lr,this.size=0}function iL(o){var e=this.__data__,t=e.delete(o);return this.size=e.size,t}function rL(o){return this.__data__.get(o)}function nL(o){return this.__data__.has(o)}function sL(o,e){var t=this.__data__;if(t instanceof lr){var a=t.__data__;if(!_E||a.length<JU-1)return a.push([o,e]),this.size=++t.size,this;t=this.__data__=new ac(a)}return t.set(o,e),this.size=t.size,this}ic.prototype.clear=aL;ic.prototype.delete=iL;ic.prototype.get=rL;ic.prototype.has=nL;ic.prototype.set=sL;function cL(o,e){var t=Ny(o),a=!t&&Ry(o),i=!t&&!a&&NE(o),r=!t&&!a&&!i&&UE(o),n=t||a||i||r,s=n?CM(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")||TE(m,c)))&&s.push(m);return s}function Dy(o,e,t){(t!==void 0&&!Nd(o[e],t)||t===void 0&&!(e in o))&&Oy(o,e,t)}function mL(o,e,t){var a=o[e];(!(mr.call(o,e)&&Nd(a,t))||t===void 0&&!(e in o))&&Oy(o,e,t)}function Dd(o,e){for(var t=o.length;t--;)if(Nd(o[t][0],e))return t;return-1}function Oy(o,e,t){e=="__proto__"&&Bd?Bd(o,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):o[e]=t}var lL=xL();function Td(o){return o==null?o===void 0?uM:nM:Yn&&Yn in Object(o)?zL(o):SL(o)}function wE(o){return el(o)&&Td(o)==qE}function uL(o){if(!Wn(o)||jL(o))return!1;var e=Ly(o)?RM:qM;return e.test(DL(o))}function dL(o){return el(o)&&OE(o.length)&&!!Ve[Td(o)]}function gL(o){if(!Wn(o))return CL(o);var e=RE(o),t=[];for(var a in o)a=="constructor"&&(e||!mr.call(o,a))||t.push(a);return t}function DE(o,e,t,a,i){o!==e&&lL(e,function(r,n){if(i||(i=new ic),Wn(r))pL(o,e,n,t,DE,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)}},ME)}function pL(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&&NE(c),h=!d&&!g&&UE(c);l=c,d||g||h?Ny(s)?l=s:TL(s)?l=AL(s):g?(u=!1,l=bL(c,!0)):h?(u=!1,l=kL(c,!0)):l=[]:RL(c)||Ry(c)?(l=s,Ry(s)?l=NL(s):(!Wn(s)||Ly(s))&&(l=qL(c))):u=!1}u&&(n.set(c,l),i(l,c,a,r,n),n.delete(c)),Dy(o,t,l)}function hL(o,e){return QL(BL(o,e,LE),o+"")}var fL=Bd?function(o,e){return Bd(o,"toString",{configurable:!0,enumerable:!1,value:UL(e),writable:!0})}:LE;function bL(o,e){if(e)return o.slice();var t=o.length,a=kE?kE(t):new o.constructor(t);return o.copy(a),a}function yL(o){var e=new o.constructor(o.byteLength);return new yE(e).set(new yE(o)),e}function kL(o,e){var t=e?yL(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.length)}function AL(o,e){var t=-1,a=o.length;for(e||(e=Array(a));++t<a;)e[t]=o[t];return e}function vL(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):mL(t,s,c)}return t}function wL(o){return hL(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&&EL(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 xL(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 Rd(o,e){var t=o.__data__;return IL(e)?t[typeof e=="string"?"string":"hash"]:t.map}function Uy(o,e){var t=BM(o,e);return uL(t)?t:void 0}function zL(o){var e=mr.call(o,Yn),t=o[Yn];try{o[Yn]=void 0;var a=!0}catch{}var i=BE.call(o);return a&&(e?o[Yn]=t:delete o[Yn]),i}function qL(o){return typeof o.constructor=="function"&&!RE(o)?LM(QE(o)):{}}function TE(o,e){var t=typeof o;return e=e??zE,!!e&&(t=="number"||t!="symbol"&&EM.test(o))&&o>-1&&o%1==0&&o<e}function EL(o,e,t){if(!Wn(t))return!1;var a=typeof e;return(a=="number"?My(t)&&TE(e,t.length):a=="string"&&e in t)?Nd(t[e],o):!1}function IL(o){var e=typeof o;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?o!=="__proto__":o===null}function jL(o){return!!fE&&fE in o}function RE(o){var e=o&&o.constructor,t=typeof e=="function"&&e.prototype||Qd;return o===t}function CL(o){var e=[];if(o!=null)for(var t in Object(o))e.push(t);return e}function SL(o){return BE.call(o)}function BL(o,e,t){return e=vE(e===void 0?o.length-1:e,0),function(){for(var a=arguments,i=-1,r=vE(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),jM(o,this,s)}}function Ty(o,e){if(!(e==="constructor"&&typeof o[e]=="function")&&e!="__proto__")return o[e]}var QL=_L(fL);function _L(o){var e=0,t=0;return function(){var a=MM(),i=ZU-(a-t);if(t=a,i>0){if(++e>=WU)return arguments[0]}else e=0;return o.apply(void 0,arguments)}}function DL(o){if(o!=null){try{return _d.call(o)}catch{}try{return o+""}catch{}}return""}function Nd(o,e){return o===e||o!==o&&e!==e}var Ry=wE((function(){return arguments})())?wE:function(o){return el(o)&&mr.call(o,"callee")&&!NM.call(o,"callee")},Ny=Array.isArray;function My(o){return o!=null&&OE(o.length)&&!Ly(o)}function TL(o){return el(o)&&My(o)}var NE=UM||ML;function Ly(o){if(!Wn(o))return!1;var e=Td(o);return e==EE||e==aM||e==XU||e==sM}function OE(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=zE}function Wn(o){var e=typeof o;return o!=null&&(e=="object"||e=="function")}function el(o){return o!=null&&typeof o=="object"}function RL(o){if(!el(o)||Td(o)!=IE)return!1;var e=QE(o);if(e===null)return!0;var t=mr.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&_d.call(t)==TM}var UE=hE?SM(hE):dL;function NL(o){return vL(o,ME(o))}function ME(o){return My(o)?cL(o,!0):gL(o)}var OL=wL(function(o,e,t){DE(o,e,t)});function UL(o){return function(){return o}}function LE(o){return o}function ML(){return!1}tc.exports=OL});var t1=f((K2e,o1)=>{"use strict";var GE=200,$y="__lodash_hash_undefined__",LL=1/0,PL=9007199254740991,FL="[object Function]",$L="[object GeneratorFunction]",HL=/[\\^$.*+?()[\]{}|]/g,GL=/^\[object .+?Constructor\]$/,VL=typeof global=="object"&&global&&global.Object===Object&&global,YL=typeof self=="object"&&self&&self.Object===Object&&self,Hy=VL||YL||Function("return this")();function JL(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 WL(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 VE(o,e){var t=o?o.length:0;return!!t&&eP(o,e,0)>-1}function YE(o,e,t){for(var a=-1,i=o?o.length:0;++a<i;)if(t(e,o[a]))return!0;return!1}function ZL(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 KL(o,e){for(var t=-1,a=e.length,i=o.length;++t<a;)o[i+t]=e[t];return o}function XL(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 eP(o,e,t){if(e!==e)return XL(o,oP,t);for(var a=t-1,i=o.length;++a<i;)if(o[a]===e)return a;return-1}function oP(o){return o!==o}function tP(o){return function(e){return o(e)}}function JE(o,e){return o.has(e)}function aP(o,e){return o?.[e]}function iP(o){var e=!1;if(o!=null&&typeof o.toString!="function")try{e=!!(o+"")}catch{}return e}function WE(o){var e=-1,t=Array(o.size);return o.forEach(function(a){t[++e]=a}),t}var rP=Array.prototype,nP=Function.prototype,ZE=Object.prototype,Py=Hy["__core-js_shared__"],FE=(function(){var o=/[^.]+$/.exec(Py&&Py.keys&&Py.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),KE=nP.toString,Gy=ZE.hasOwnProperty,sP=ZE.toString,cP=RegExp("^"+KE.call(Gy).replace(HL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mP=rP.splice,$E=Math.max,lP=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 uP(){this.__data__=ol?ol(null):{}}function dP(o){return this.has(o)&&delete this.__data__[o]}function gP(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 pP(o){var e=this.__data__;return ol?e[o]!==void 0:Gy.call(e,o)}function hP(o,e){var t=this.__data__;return t[o]=ol&&e===void 0?$y:e,this}Zn.prototype.clear=uP;Zn.prototype.delete=dP;Zn.prototype.get=gP;Zn.prototype.has=pP;Zn.prototype.set=hP;function rc(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 fP(){this.__data__=[]}function bP(o){var e=this.__data__,t=Od(e,o);if(t<0)return!1;var a=e.length-1;return t==a?e.pop():mP.call(e,t,1),!0}function yP(o){var e=this.__data__,t=Od(e,o);return t<0?void 0:e[t][1]}function kP(o){return Od(this.__data__,o)>-1}function AP(o,e){var t=this.__data__,a=Od(t,o);return a<0?t.push([o,e]):t[a][1]=e,this}rc.prototype.clear=fP;rc.prototype.delete=bP;rc.prototype.get=yP;rc.prototype.has=kP;rc.prototype.set=AP;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 vP(){this.__data__={hash:new Zn,map:new(lP||rc),string:new Zn}}function wP(o){return Ud(this,o).delete(o)}function xP(o){return Ud(this,o).get(o)}function zP(o){return Ud(this,o).has(o)}function qP(o,e){return Ud(this,o).set(o,e),this}nc.prototype.clear=vP;nc.prototype.delete=wP;nc.prototype.get=xP;nc.prototype.has=zP;nc.prototype.set=qP;function tl(o){var e=-1,t=o?o.length:0;for(this.__data__=new nc;++e<t;)this.add(o[e])}function EP(o){return this.__data__.set(o,$y),this}function IP(o){return this.__data__.has(o)}tl.prototype.add=tl.prototype.push=EP;tl.prototype.has=IP;function Od(o,e){for(var t=o.length;t--;)if(NP(o[t][0],e))return t;return-1}function HE(o,e,t,a){var i=-1,r=VE,n=!0,s=o.length,c=[],m=e.length;if(!s)return c;t&&(e=ZL(e,tP(t))),a?(r=YE,n=!1):e.length>=GE&&(r=JE,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 jP(o){if(!e1(o)||DP(o))return!1;var e=XE(o)||iP(o)?cP:GL;return e.test(TP(o))}function CP(o,e){return e=$E(e===void 0?o.length-1:e,0),function(){for(var t=arguments,a=-1,i=$E(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,JL(o,this,n)}}function SP(o,e,t){var a=-1,i=VE,r=o.length,n=!0,s=[],c=s;if(t)n=!1,i=YE;else if(r>=GE){var m=e?null:QP(o);if(m)return WE(m);n=!1,i=JE,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 BP(o,e,t){for(var a=-1,i=o.length;++a<i;)var r=r?KL(HE(r,o[a],e,t),HE(o[a],r,e,t)):o[a];return r&&r.length?SP(r,e,t):[]}var QP=Fy&&1/WE(new Fy([,-0]))[1]==LL?function(o){return new Fy(o)}:PP;function Ud(o,e){var t=o.__data__;return _P(e)?t[typeof e=="string"?"string":"hash"]:t.map}function Vy(o,e){var t=aP(o,e);return jP(t)?t:void 0}function _P(o){var e=typeof o;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?o!=="__proto__":o===null}function DP(o){return!!FE&&FE in o}function TP(o){if(o!=null){try{return KE.call(o)}catch{}try{return o+""}catch{}}return""}var RP=CP(function(o){return BP(WL(o,UP))});function NP(o,e){return o===e||o!==o&&e!==e}function OP(o){return o!=null&&MP(o.length)&&!XE(o)}function UP(o){return LP(o)&&OP(o)}function XE(o){var e=e1(o)?sP.call(o):"";return e==FL||e==$L}function MP(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=PL}function e1(o){var e=typeof o;return!!o&&(e=="object"||e=="function")}function LP(o){return!!o&&typeof o=="object"}function PP(){}o1.exports=RP});var Ld=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=YP;ur.convertRequiredToArray=al;ur.generateDefaultFromSchema=il;ur.parseJsonSafe=Md;ur.normalizeToolSchemas=JP;var Yy=Zy(gE()),Jy=Zy(PE()),FP=Zy(t1());function sc(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&&sc(o[r],i[r]))}var $P={required:!1,requiredDepth:Number.POSITIVE_INFINITY,postProcessFnc:null,strings:{preProcessFnc:null},arrays:{mode:"all"},objects:{preProcessFnc:null,postProcessFnc:null,additionalProperties:!0}},HP={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)}},cc={typeNames:["integer","number","string","array","object","boolean","null","date"],getType(o){return cc.typeNames.find(e=>HP[e](o))},mergeSchemaObjs(o,e){if(!o||!e)return null;let t=(0,Yy.default)(o),a=(0,Yy.default)(e);if(!sc(t,a)){if(o.type==="array"&&e.type==="array"&&sc((0,FP.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)=>sc(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(cc.getType(o[s])==="object"){let c=cc.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(!sc(o[s],e[s]))return null;i[s]=o[s]}}return i}};function GP(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 VP(o){return GP(o.map(e=>cc.getType(e)))}var Wy=class{constructor(e){this.options=(0,Jy.default)({},$P,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)=>cc.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=VP(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--,!sc(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=cc.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 YP(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 Md(o){if(typeof o!="string")return o;try{return JSON.parse(o)}catch{return o}}function JP(o){let e={...o};return e.inputSchema&&(e.inputSchema=Md(e.inputSchema)),e.outputSchema&&(e.outputSchema=Md(e.outputSchema)),e.responseSchema&&(e.responseSchema=Md(e.responseSchema)),e}});var $t=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=WP;N.isTransformConfig=ZP;N.RUN_COMMAND_EFFECT_KINDS=["tool","tool_state","system","project","schedule","mcp_server","role","playbook","artifact","share","org_settings","file"];var a1;(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"})(a1||(N.SupportedFileType=a1={}));var i1;(function(o){o.GET="GET",o.POST="POST",o.PUT="PUT",o.DELETE="DELETE",o.PATCH="PATCH",o.HEAD="HEAD",o.OPTIONS="OPTIONS"})(i1||(N.HttpMethod=i1={}));var r1;(function(o){o.ENABLED="ENABLED",o.READONLY="READONLY",o.WRITEONLY="WRITEONLY",o.DISABLED="DISABLED"})(r1||(N.CacheMode=r1={}));var n1;(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"})(n1||(N.FileType=n1={}));var s1;(function(o){o.NONE="NONE",o.OAUTH2="OAUTH2",o.HEADER="HEADER",o.QUERY_PARAM="QUERY_PARAM"})(s1||(N.AuthType=s1={}));var c1;(function(o){o.GZIP="GZIP",o.DEFLATE="DEFLATE",o.NONE="NONE",o.AUTO="AUTO",o.ZIP="ZIP"})(c1||(N.DecompressionMethod=c1={}));var m1;(function(o){o.OFFSET_BASED="OFFSET_BASED",o.PAGE_BASED="PAGE_BASED",o.CURSOR_BASED="CURSOR_BASED",o.DISABLED="DISABLED"})(m1||(N.PaginationType=m1={}));var l1;(function(o){o.DEBUG="DEBUG",o.INFO="INFO",o.WARN="WARN",o.ERROR="ERROR"})(l1||(N.LogLevel=l1={}));var u1;(function(o){o.CREATE="CREATE",o.UPDATE="UPDATE",o.UPSERT="UPSERT"})(u1||(N.UpsertMode=u1={}));var d1;(function(o){o.MERGE="MERGE",o.REPLACE="REPLACE"})(d1||(N.CredentialMode=d1={}));var g1;(function(o){o.RUNNING="RUNNING",o.SUCCESS="SUCCESS",o.FAILED="FAILED",o.ABORTED="ABORTED"})(g1||(N.RunStatus=g1={}));var p1;(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"})(p1||(N.RequestSource=p1={}));var h1;(function(o){o.FULL="full",o.DRAFT="draft",o.SINGLE_STEP="single-step"})(h1||(N.RunExecutionKind=h1={}));N.MAX_BULK_MUTATION_IDS=100;N.MAX_BULK_RESOURCE_SHARE_OPERATIONS=1e3;function WP(o){return!o||typeof o!="object"?!1:o.type==="request"||!("type"in o)||o.type===void 0}function ZP(o){return o?.type==="transform"}var f1;(function(o){o.PENDING="PENDING",o.UPLOADING="UPLOADING",o.PROCESSING="PROCESSING",o.COMPLETED="COMPLETED",o.FAILED="FAILED"})(f1||(N.FileStatus=f1={}));var Yr;(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"})(Yr||(N.AgentType=Yr={}));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={[Yr.MAIN]:[...N.AGENT_NATIVE_TOOLS],[Yr.PLAYGROUND]:[...N.AGENT_NATIVE_TOOLS],[Yr.SYSTEM_PLAYGROUND]:[...N.AGENT_NATIVE_TOOLS],[Yr.PLAYBOOK_PLAYGROUND]:[...N.AGENT_NATIVE_TOOLS],[Yr.ARTIFACT_PLAYGROUND]:[...N.AGENT_NATIVE_TOOLS],[Yr.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","brand-guidelines"];N.SKILL_REFERENCE_NAMES=["http","graphql","postgres","mssql","odbc","redis","mongodb","sftp-smb","suitecloud","tool-files","tunnel-handling"];N.LOADABLE_MARKDOWN_NAMES=[...N.SKILL_BODY_NAMES,...N.SKILL_REFERENCE_NAMES];var b1;(function(o){o.CONFIRMED="confirmed",o.DECLINED="declined",o.OAUTH_SUCCESS="oauth_success",o.OAUTH_FAILURE="oauth_failure"})(b1||(N.ConfirmationAction=b1={}));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 KP,k1,y1,XP,eF,oF,tF,A1=Fe(()=>{"use strict";KP=o=>{let e=y1(o,0);if(e===void 0||!eF(o[e]))return;let t=y1(o,e+1);if(t!==void 0)return oF(o,e,t)},k1=KP,y1=(o,e)=>{for(let t=e;t<o.length;t+=1){let a=o[t];if(!XP(a))return t}},XP=o=>o===" "||o===" "||o===`
2
+ "use strict";var zU=Object.create;var jd=Object.defineProperty;var qU=Object.getOwnPropertyDescriptor;var EU=Object.getOwnPropertyNames;var IU=Object.getPrototypeOf,jU=Object.prototype.hasOwnProperty;var Fe=(o,e)=>()=>(o&&(e=o(o=0)),e);var f=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports),sE=(o,e)=>{for(var t in e)jd(o,t,{get:e[t],enumerable:!0})},cE=(o,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of EU(e))!jU.call(o,i)&&i!==t&&jd(o,i,{get:()=>e[i],enumerable:!(a=qU(e,i))||a.enumerable});return o};var pe=(o,e,t)=>(t=o!=null?zU(IU(o)):{},cE(e||!o||!o.__esModule?jd(t,"default",{value:o,enumerable:!0}):t,o)),Sy=o=>cE(jd({},"__esModule",{value:!0}),o);var gE=f((Z2e,dE)=>{"use strict";var mE=9007199254740991,CU="[object Arguments]",SU="[object Function]",BU="[object GeneratorFunction]",QU=/^(?:0|[1-9]\d*)$/;function _U(o,e){for(var t=-1,a=Array(o);++t<o;)a[t]=e(t);return a}function DU(o,e){return function(t){return o(e(t))}}var Cd=Object.prototype,By=Cd.hasOwnProperty,lE=Cd.toString,TU=Cd.propertyIsEnumerable,RU=DU(Object.keys,Object);function NU(o,e){var t=PU(o)||LU(o)?_U(o.length,String):[],a=t.length,i=!!a;for(var r in o)(e||By.call(o,r))&&!(i&&(r=="length"||UU(r,a)))&&t.push(r);return t}function OU(o){if(!MU(o))return RU(o);var e=[];for(var t in Object(o))By.call(o,t)&&t!="constructor"&&e.push(t);return e}function UU(o,e){return e=e??mE,!!e&&(typeof o=="number"||QU.test(o))&&o>-1&&o%1==0&&o<e}function MU(o){var e=o&&o.constructor,t=typeof e=="function"&&e.prototype||Cd;return o===t}function LU(o){return FU(o)&&By.call(o,"callee")&&(!TU.call(o,"callee")||lE.call(o)==CU)}var PU=Array.isArray;function uE(o){return o!=null&&HU(o.length)&&!$U(o)}function FU(o){return VU(o)&&uE(o)}function $U(o){var e=GU(o)?lE.call(o):"";return e==SU||e==BU}function HU(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=mE}function GU(o){var e=typeof o;return!!o&&(e=="object"||e=="function")}function VU(o){return!!o&&typeof o=="object"}function YU(o){return uE(o)?NU(o):OU(o)}dE.exports=YU});var PE=f((Wm,tc)=>{"use strict";var JU=200,xE="__lodash_hash_undefined__",WU=800,ZU=16,zE=9007199254740991,qE="[object Arguments]",KU="[object Array]",XU="[object AsyncFunction]",eM="[object Boolean]",oM="[object Date]",tM="[object Error]",EE="[object Function]",aM="[object GeneratorFunction]",iM="[object Map]",rM="[object Number]",nM="[object Null]",IE="[object Object]",sM="[object Proxy]",cM="[object RegExp]",mM="[object Set]",lM="[object String]",uM="[object Undefined]",dM="[object WeakMap]",gM="[object ArrayBuffer]",pM="[object DataView]",hM="[object Float32Array]",fM="[object Float64Array]",bM="[object Int8Array]",yM="[object Int16Array]",kM="[object Int32Array]",AM="[object Uint8Array]",vM="[object Uint8ClampedArray]",wM="[object Uint16Array]",xM="[object Uint32Array]",zM=/[\\^$.*+?()[\]{}|]/g,qM=/^\[object .+?Constructor\]$/,EM=/^(?:0|[1-9]\d*)$/,Ve={};Ve[hM]=Ve[fM]=Ve[bM]=Ve[yM]=Ve[kM]=Ve[AM]=Ve[vM]=Ve[wM]=Ve[xM]=!0;Ve[qE]=Ve[KU]=Ve[gM]=Ve[eM]=Ve[pM]=Ve[oM]=Ve[tM]=Ve[EE]=Ve[iM]=Ve[rM]=Ve[IE]=Ve[cM]=Ve[mM]=Ve[lM]=Ve[dM]=!1;var jE=typeof global=="object"&&global&&global.Object===Object&&global,IM=typeof self=="object"&&self&&self.Object===Object&&self,Xm=jE||IM||Function("return this")(),CE=typeof Wm=="object"&&Wm&&!Wm.nodeType&&Wm,Zm=CE&&typeof tc=="object"&&tc&&!tc.nodeType&&tc,SE=Zm&&Zm.exports===CE,Qy=SE&&jE.process,pE=(function(){try{var o=Zm&&Zm.require&&Zm.require("util").types;return o||Qy&&Qy.binding&&Qy.binding("util")}catch{}})(),hE=pE&&pE.isTypedArray;function jM(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 CM(o,e){for(var t=-1,a=Array(o);++t<o;)a[t]=e(t);return a}function SM(o){return function(e){return o(e)}}function BM(o,e){return o?.[e]}function QM(o,e){return function(t){return o(e(t))}}var _M=Array.prototype,DM=Function.prototype,Qd=Object.prototype,_y=Xm["__core-js_shared__"],_d=DM.toString,mr=Qd.hasOwnProperty,fE=(function(){var o=/[^.]+$/.exec(_y&&_y.keys&&_y.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),BE=Qd.toString,TM=_d.call(Object),RM=RegExp("^"+_d.call(mr).replace(zM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Sd=SE?Xm.Buffer:void 0,bE=Xm.Symbol,yE=Xm.Uint8Array,kE=Sd?Sd.allocUnsafe:void 0,QE=QM(Object.getPrototypeOf,Object),AE=Object.create,NM=Qd.propertyIsEnumerable,OM=_M.splice,Yn=bE?bE.toStringTag:void 0,Bd=(function(){try{var o=Uy(Object,"defineProperty");return o({},"",{}),o}catch{}})(),UM=Sd?Sd.isBuffer:void 0,vE=Math.max,MM=Date.now,_E=Uy(Xm,"Map"),Km=Uy(Object,"create"),LM=(function(){function o(){}return function(e){if(!Wn(e))return{};if(AE)return AE(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 PM(){this.__data__=Km?Km(null):{},this.size=0}function FM(o){var e=this.has(o)&&delete this.__data__[o];return this.size-=e?1:0,e}function $M(o){var e=this.__data__;if(Km){var t=e[o];return t===xE?void 0:t}return mr.call(e,o)?e[o]:void 0}function HM(o){var e=this.__data__;return Km?e[o]!==void 0:mr.call(e,o)}function GM(o,e){var t=this.__data__;return this.size+=this.has(o)?0:1,t[o]=Km&&e===void 0?xE:e,this}Jn.prototype.clear=PM;Jn.prototype.delete=FM;Jn.prototype.get=$M;Jn.prototype.has=HM;Jn.prototype.set=GM;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 VM(){this.__data__=[],this.size=0}function YM(o){var e=this.__data__,t=Dd(e,o);if(t<0)return!1;var a=e.length-1;return t==a?e.pop():OM.call(e,t,1),--this.size,!0}function JM(o){var e=this.__data__,t=Dd(e,o);return t<0?void 0:e[t][1]}function WM(o){return Dd(this.__data__,o)>-1}function ZM(o,e){var t=this.__data__,a=Dd(t,o);return a<0?(++this.size,t.push([o,e])):t[a][1]=e,this}lr.prototype.clear=VM;lr.prototype.delete=YM;lr.prototype.get=JM;lr.prototype.has=WM;lr.prototype.set=ZM;function ac(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 KM(){this.size=0,this.__data__={hash:new Jn,map:new(_E||lr),string:new Jn}}function XM(o){var e=Rd(this,o).delete(o);return this.size-=e?1:0,e}function eL(o){return Rd(this,o).get(o)}function oL(o){return Rd(this,o).has(o)}function tL(o,e){var t=Rd(this,o),a=t.size;return t.set(o,e),this.size+=t.size==a?0:1,this}ac.prototype.clear=KM;ac.prototype.delete=XM;ac.prototype.get=eL;ac.prototype.has=oL;ac.prototype.set=tL;function ic(o){var e=this.__data__=new lr(o);this.size=e.size}function aL(){this.__data__=new lr,this.size=0}function iL(o){var e=this.__data__,t=e.delete(o);return this.size=e.size,t}function rL(o){return this.__data__.get(o)}function nL(o){return this.__data__.has(o)}function sL(o,e){var t=this.__data__;if(t instanceof lr){var a=t.__data__;if(!_E||a.length<JU-1)return a.push([o,e]),this.size=++t.size,this;t=this.__data__=new ac(a)}return t.set(o,e),this.size=t.size,this}ic.prototype.clear=aL;ic.prototype.delete=iL;ic.prototype.get=rL;ic.prototype.has=nL;ic.prototype.set=sL;function cL(o,e){var t=Ny(o),a=!t&&Ry(o),i=!t&&!a&&NE(o),r=!t&&!a&&!i&&UE(o),n=t||a||i||r,s=n?CM(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")||TE(m,c)))&&s.push(m);return s}function Dy(o,e,t){(t!==void 0&&!Nd(o[e],t)||t===void 0&&!(e in o))&&Oy(o,e,t)}function mL(o,e,t){var a=o[e];(!(mr.call(o,e)&&Nd(a,t))||t===void 0&&!(e in o))&&Oy(o,e,t)}function Dd(o,e){for(var t=o.length;t--;)if(Nd(o[t][0],e))return t;return-1}function Oy(o,e,t){e=="__proto__"&&Bd?Bd(o,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):o[e]=t}var lL=xL();function Td(o){return o==null?o===void 0?uM:nM:Yn&&Yn in Object(o)?zL(o):SL(o)}function wE(o){return el(o)&&Td(o)==qE}function uL(o){if(!Wn(o)||jL(o))return!1;var e=Ly(o)?RM:qM;return e.test(DL(o))}function dL(o){return el(o)&&OE(o.length)&&!!Ve[Td(o)]}function gL(o){if(!Wn(o))return CL(o);var e=RE(o),t=[];for(var a in o)a=="constructor"&&(e||!mr.call(o,a))||t.push(a);return t}function DE(o,e,t,a,i){o!==e&&lL(e,function(r,n){if(i||(i=new ic),Wn(r))pL(o,e,n,t,DE,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)}},ME)}function pL(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&&NE(c),h=!d&&!g&&UE(c);l=c,d||g||h?Ny(s)?l=s:TL(s)?l=AL(s):g?(u=!1,l=bL(c,!0)):h?(u=!1,l=kL(c,!0)):l=[]:RL(c)||Ry(c)?(l=s,Ry(s)?l=NL(s):(!Wn(s)||Ly(s))&&(l=qL(c))):u=!1}u&&(n.set(c,l),i(l,c,a,r,n),n.delete(c)),Dy(o,t,l)}function hL(o,e){return QL(BL(o,e,LE),o+"")}var fL=Bd?function(o,e){return Bd(o,"toString",{configurable:!0,enumerable:!1,value:UL(e),writable:!0})}:LE;function bL(o,e){if(e)return o.slice();var t=o.length,a=kE?kE(t):new o.constructor(t);return o.copy(a),a}function yL(o){var e=new o.constructor(o.byteLength);return new yE(e).set(new yE(o)),e}function kL(o,e){var t=e?yL(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.length)}function AL(o,e){var t=-1,a=o.length;for(e||(e=Array(a));++t<a;)e[t]=o[t];return e}function vL(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):mL(t,s,c)}return t}function wL(o){return hL(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&&EL(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 xL(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 Rd(o,e){var t=o.__data__;return IL(e)?t[typeof e=="string"?"string":"hash"]:t.map}function Uy(o,e){var t=BM(o,e);return uL(t)?t:void 0}function zL(o){var e=mr.call(o,Yn),t=o[Yn];try{o[Yn]=void 0;var a=!0}catch{}var i=BE.call(o);return a&&(e?o[Yn]=t:delete o[Yn]),i}function qL(o){return typeof o.constructor=="function"&&!RE(o)?LM(QE(o)):{}}function TE(o,e){var t=typeof o;return e=e??zE,!!e&&(t=="number"||t!="symbol"&&EM.test(o))&&o>-1&&o%1==0&&o<e}function EL(o,e,t){if(!Wn(t))return!1;var a=typeof e;return(a=="number"?My(t)&&TE(e,t.length):a=="string"&&e in t)?Nd(t[e],o):!1}function IL(o){var e=typeof o;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?o!=="__proto__":o===null}function jL(o){return!!fE&&fE in o}function RE(o){var e=o&&o.constructor,t=typeof e=="function"&&e.prototype||Qd;return o===t}function CL(o){var e=[];if(o!=null)for(var t in Object(o))e.push(t);return e}function SL(o){return BE.call(o)}function BL(o,e,t){return e=vE(e===void 0?o.length-1:e,0),function(){for(var a=arguments,i=-1,r=vE(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),jM(o,this,s)}}function Ty(o,e){if(!(e==="constructor"&&typeof o[e]=="function")&&e!="__proto__")return o[e]}var QL=_L(fL);function _L(o){var e=0,t=0;return function(){var a=MM(),i=ZU-(a-t);if(t=a,i>0){if(++e>=WU)return arguments[0]}else e=0;return o.apply(void 0,arguments)}}function DL(o){if(o!=null){try{return _d.call(o)}catch{}try{return o+""}catch{}}return""}function Nd(o,e){return o===e||o!==o&&e!==e}var Ry=wE((function(){return arguments})())?wE:function(o){return el(o)&&mr.call(o,"callee")&&!NM.call(o,"callee")},Ny=Array.isArray;function My(o){return o!=null&&OE(o.length)&&!Ly(o)}function TL(o){return el(o)&&My(o)}var NE=UM||ML;function Ly(o){if(!Wn(o))return!1;var e=Td(o);return e==EE||e==aM||e==XU||e==sM}function OE(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=zE}function Wn(o){var e=typeof o;return o!=null&&(e=="object"||e=="function")}function el(o){return o!=null&&typeof o=="object"}function RL(o){if(!el(o)||Td(o)!=IE)return!1;var e=QE(o);if(e===null)return!0;var t=mr.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&_d.call(t)==TM}var UE=hE?SM(hE):dL;function NL(o){return vL(o,ME(o))}function ME(o){return My(o)?cL(o,!0):gL(o)}var OL=wL(function(o,e,t){DE(o,e,t)});function UL(o){return function(){return o}}function LE(o){return o}function ML(){return!1}tc.exports=OL});var t1=f((K2e,o1)=>{"use strict";var GE=200,$y="__lodash_hash_undefined__",LL=1/0,PL=9007199254740991,FL="[object Function]",$L="[object GeneratorFunction]",HL=/[\\^$.*+?()[\]{}|]/g,GL=/^\[object .+?Constructor\]$/,VL=typeof global=="object"&&global&&global.Object===Object&&global,YL=typeof self=="object"&&self&&self.Object===Object&&self,Hy=VL||YL||Function("return this")();function JL(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 WL(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 VE(o,e){var t=o?o.length:0;return!!t&&eP(o,e,0)>-1}function YE(o,e,t){for(var a=-1,i=o?o.length:0;++a<i;)if(t(e,o[a]))return!0;return!1}function ZL(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 KL(o,e){for(var t=-1,a=e.length,i=o.length;++t<a;)o[i+t]=e[t];return o}function XL(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 eP(o,e,t){if(e!==e)return XL(o,oP,t);for(var a=t-1,i=o.length;++a<i;)if(o[a]===e)return a;return-1}function oP(o){return o!==o}function tP(o){return function(e){return o(e)}}function JE(o,e){return o.has(e)}function aP(o,e){return o?.[e]}function iP(o){var e=!1;if(o!=null&&typeof o.toString!="function")try{e=!!(o+"")}catch{}return e}function WE(o){var e=-1,t=Array(o.size);return o.forEach(function(a){t[++e]=a}),t}var rP=Array.prototype,nP=Function.prototype,ZE=Object.prototype,Py=Hy["__core-js_shared__"],FE=(function(){var o=/[^.]+$/.exec(Py&&Py.keys&&Py.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),KE=nP.toString,Gy=ZE.hasOwnProperty,sP=ZE.toString,cP=RegExp("^"+KE.call(Gy).replace(HL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mP=rP.splice,$E=Math.max,lP=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 uP(){this.__data__=ol?ol(null):{}}function dP(o){return this.has(o)&&delete this.__data__[o]}function gP(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 pP(o){var e=this.__data__;return ol?e[o]!==void 0:Gy.call(e,o)}function hP(o,e){var t=this.__data__;return t[o]=ol&&e===void 0?$y:e,this}Zn.prototype.clear=uP;Zn.prototype.delete=dP;Zn.prototype.get=gP;Zn.prototype.has=pP;Zn.prototype.set=hP;function rc(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 fP(){this.__data__=[]}function bP(o){var e=this.__data__,t=Od(e,o);if(t<0)return!1;var a=e.length-1;return t==a?e.pop():mP.call(e,t,1),!0}function yP(o){var e=this.__data__,t=Od(e,o);return t<0?void 0:e[t][1]}function kP(o){return Od(this.__data__,o)>-1}function AP(o,e){var t=this.__data__,a=Od(t,o);return a<0?t.push([o,e]):t[a][1]=e,this}rc.prototype.clear=fP;rc.prototype.delete=bP;rc.prototype.get=yP;rc.prototype.has=kP;rc.prototype.set=AP;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 vP(){this.__data__={hash:new Zn,map:new(lP||rc),string:new Zn}}function wP(o){return Ud(this,o).delete(o)}function xP(o){return Ud(this,o).get(o)}function zP(o){return Ud(this,o).has(o)}function qP(o,e){return Ud(this,o).set(o,e),this}nc.prototype.clear=vP;nc.prototype.delete=wP;nc.prototype.get=xP;nc.prototype.has=zP;nc.prototype.set=qP;function tl(o){var e=-1,t=o?o.length:0;for(this.__data__=new nc;++e<t;)this.add(o[e])}function EP(o){return this.__data__.set(o,$y),this}function IP(o){return this.__data__.has(o)}tl.prototype.add=tl.prototype.push=EP;tl.prototype.has=IP;function Od(o,e){for(var t=o.length;t--;)if(NP(o[t][0],e))return t;return-1}function HE(o,e,t,a){var i=-1,r=VE,n=!0,s=o.length,c=[],m=e.length;if(!s)return c;t&&(e=ZL(e,tP(t))),a?(r=YE,n=!1):e.length>=GE&&(r=JE,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 jP(o){if(!e1(o)||DP(o))return!1;var e=XE(o)||iP(o)?cP:GL;return e.test(TP(o))}function CP(o,e){return e=$E(e===void 0?o.length-1:e,0),function(){for(var t=arguments,a=-1,i=$E(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,JL(o,this,n)}}function SP(o,e,t){var a=-1,i=VE,r=o.length,n=!0,s=[],c=s;if(t)n=!1,i=YE;else if(r>=GE){var m=e?null:QP(o);if(m)return WE(m);n=!1,i=JE,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 BP(o,e,t){for(var a=-1,i=o.length;++a<i;)var r=r?KL(HE(r,o[a],e,t),HE(o[a],r,e,t)):o[a];return r&&r.length?SP(r,e,t):[]}var QP=Fy&&1/WE(new Fy([,-0]))[1]==LL?function(o){return new Fy(o)}:PP;function Ud(o,e){var t=o.__data__;return _P(e)?t[typeof e=="string"?"string":"hash"]:t.map}function Vy(o,e){var t=aP(o,e);return jP(t)?t:void 0}function _P(o){var e=typeof o;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?o!=="__proto__":o===null}function DP(o){return!!FE&&FE in o}function TP(o){if(o!=null){try{return KE.call(o)}catch{}try{return o+""}catch{}}return""}var RP=CP(function(o){return BP(WL(o,UP))});function NP(o,e){return o===e||o!==o&&e!==e}function OP(o){return o!=null&&MP(o.length)&&!XE(o)}function UP(o){return LP(o)&&OP(o)}function XE(o){var e=e1(o)?sP.call(o):"";return e==FL||e==$L}function MP(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=PL}function e1(o){var e=typeof o;return!!o&&(e=="object"||e=="function")}function LP(o){return!!o&&typeof o=="object"}function PP(){}o1.exports=RP});var Ld=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=YP;ur.convertRequiredToArray=al;ur.generateDefaultFromSchema=il;ur.parseJsonSafe=Md;ur.normalizeToolSchemas=JP;var Yy=Zy(gE()),Jy=Zy(PE()),FP=Zy(t1());function sc(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&&sc(o[r],i[r]))}var $P={required:!1,requiredDepth:Number.POSITIVE_INFINITY,postProcessFnc:null,strings:{preProcessFnc:null},arrays:{mode:"all"},objects:{preProcessFnc:null,postProcessFnc:null,additionalProperties:!0}},HP={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)}},cc={typeNames:["integer","number","string","array","object","boolean","null","date"],getType(o){return cc.typeNames.find(e=>HP[e](o))},mergeSchemaObjs(o,e){if(!o||!e)return null;let t=(0,Yy.default)(o),a=(0,Yy.default)(e);if(!sc(t,a)){if(o.type==="array"&&e.type==="array"&&sc((0,FP.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)=>sc(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(cc.getType(o[s])==="object"){let c=cc.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(!sc(o[s],e[s]))return null;i[s]=o[s]}}return i}};function GP(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 VP(o){return GP(o.map(e=>cc.getType(e)))}var Wy=class{constructor(e){this.options=(0,Jy.default)({},$P,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)=>cc.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=VP(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--,!sc(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=cc.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 YP(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 Md(o){if(typeof o!="string")return o;try{return JSON.parse(o)}catch{return o}}function JP(o){let e={...o};return e.inputSchema&&(e.inputSchema=Md(e.inputSchema)),e.outputSchema&&(e.outputSchema=Md(e.outputSchema)),e.responseSchema&&(e.responseSchema=Md(e.responseSchema)),e}});var $t=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=WP;N.isTransformConfig=ZP;N.RUN_COMMAND_EFFECT_KINDS=["tool","tool_state","system","project","schedule","mcp_server","role","playbook","artifact","share","org_settings","file"];var a1;(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"})(a1||(N.SupportedFileType=a1={}));var i1;(function(o){o.GET="GET",o.POST="POST",o.PUT="PUT",o.DELETE="DELETE",o.PATCH="PATCH",o.HEAD="HEAD",o.OPTIONS="OPTIONS"})(i1||(N.HttpMethod=i1={}));var r1;(function(o){o.ENABLED="ENABLED",o.READONLY="READONLY",o.WRITEONLY="WRITEONLY",o.DISABLED="DISABLED"})(r1||(N.CacheMode=r1={}));var n1;(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"})(n1||(N.FileType=n1={}));var s1;(function(o){o.NONE="NONE",o.OAUTH2="OAUTH2",o.HEADER="HEADER",o.QUERY_PARAM="QUERY_PARAM"})(s1||(N.AuthType=s1={}));var c1;(function(o){o.GZIP="GZIP",o.DEFLATE="DEFLATE",o.NONE="NONE",o.AUTO="AUTO",o.ZIP="ZIP"})(c1||(N.DecompressionMethod=c1={}));var m1;(function(o){o.OFFSET_BASED="OFFSET_BASED",o.PAGE_BASED="PAGE_BASED",o.CURSOR_BASED="CURSOR_BASED",o.DISABLED="DISABLED"})(m1||(N.PaginationType=m1={}));var l1;(function(o){o.DEBUG="DEBUG",o.INFO="INFO",o.WARN="WARN",o.ERROR="ERROR"})(l1||(N.LogLevel=l1={}));var u1;(function(o){o.CREATE="CREATE",o.UPDATE="UPDATE",o.UPSERT="UPSERT"})(u1||(N.UpsertMode=u1={}));var d1;(function(o){o.MERGE="MERGE",o.REPLACE="REPLACE"})(d1||(N.CredentialMode=d1={}));var g1;(function(o){o.RUNNING="RUNNING",o.SUCCESS="SUCCESS",o.FAILED="FAILED",o.ABORTED="ABORTED"})(g1||(N.RunStatus=g1={}));var p1;(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"})(p1||(N.RequestSource=p1={}));var h1;(function(o){o.FULL="full",o.DRAFT="draft",o.SINGLE_STEP="single-step"})(h1||(N.RunExecutionKind=h1={}));N.MAX_BULK_MUTATION_IDS=100;N.MAX_BULK_RESOURCE_SHARE_OPERATIONS=1e3;function WP(o){return!o||typeof o!="object"?!1:o.type==="request"||!("type"in o)||o.type===void 0}function ZP(o){return o?.type==="transform"}var f1;(function(o){o.PENDING="PENDING",o.UPLOADING="UPLOADING",o.PROCESSING="PROCESSING",o.COMPLETED="COMPLETED",o.FAILED="FAILED"})(f1||(N.FileStatus=f1={}));var Yr;(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"})(Yr||(N.AgentType=Yr={}));N.PLAYGROUND_TOOL_DRAFT_ID="@playground-draft";N.PLAYBOOK_PLAYGROUND_DRAFT_ID="@playground-draft";N.AGENT_NATIVE_TOOLS=["run_command","load_skill","use_checklist","set_credentials","authenticate_oauth"];N.AGENT_TOOLS={[Yr.MAIN]:[...N.AGENT_NATIVE_TOOLS],[Yr.PLAYGROUND]:[...N.AGENT_NATIVE_TOOLS],[Yr.SYSTEM_PLAYGROUND]:[...N.AGENT_NATIVE_TOOLS],[Yr.PLAYBOOK_PLAYGROUND]:[...N.AGENT_NATIVE_TOOLS],[Yr.ARTIFACT_PLAYGROUND]:[...N.AGENT_NATIVE_TOOLS],[Yr.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","brand-guidelines"];N.SKILL_REFERENCE_NAMES=["http","graphql","postgres","mssql","odbc","redis","mongodb","sftp-smb","suitecloud","tool-files","tunnel-handling"];N.LOADABLE_MARKDOWN_NAMES=[...N.SKILL_BODY_NAMES,...N.SKILL_REFERENCE_NAMES];var b1;(function(o){o.CONFIRMED="confirmed",o.DECLINED="declined",o.OAUTH_SUCCESS="oauth_success",o.OAUTH_FAILURE="oauth_failure"})(b1||(N.ConfirmationAction=b1={}));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 KP,k1,y1,XP,eF,oF,tF,A1=Fe(()=>{"use strict";KP=o=>{let e=y1(o,0);if(e===void 0||!eF(o[e]))return;let t=y1(o,e+1);if(t!==void 0)return oF(o,e,t)},k1=KP,y1=(o,e)=>{for(let t=e;t<o.length;t+=1){let a=o[t];if(!XP(a))return t}},XP=o=>o===" "||o===" "||o===`
3
3
  `||o==="\r",eF=o=>o==="{"||o==="[",oF=(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 tF(a);if(a===void 0)a=r;else if(a[0]===r)a+=r;else return}},tF=o=>o===void 0?0:o[0]===" "?o.length:o});var v1,Ky,aF,iF,w1=Fe(()=>{"use strict";v1=(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(aF,"$1").replace(iF,"$1");return r.length<=t?r:a===1?void 0:Ky(o,e,t,a-1)},aF=/(e)\+/iu,iF=/\.?0*($|e)/iu});var z1,rF,nF,x1,q1=Fe(()=>{"use strict";z1=(o,e)=>{if(typeof o!="string")throw new TypeError(`Input must be a JSON string: ${o}`);rF(e)},rF=o=>{if(nF(o),o<0)throw new TypeError(`"maxSize" argument must be positive: ${o}`);if(o<x1)throw new TypeError(`"maxSize" argument must be at least ${x1}: ${o}`)},nF=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}`)},x1=7});var Pd,E1,Fd,sF,cF,mF,lF,I1,uF,dF,gF,pF,hF,fF,Xy=Fe(()=>{"use strict";Pd=(o,e,t)=>{let a=I1(e,t);return E1(o,e,a)},E1=(o,e,t)=>{if(t>=e)return t;let a=o[t];return a>=hF&&a<=fF?E1(o,e,t+1):t},Fd=(o,e,t)=>{if(t===void 0)return t;let a=I1(e,t);return sF(o,a)},sF=(o,e)=>cF(o,e)?e-3:mF(o,e)?e-2:lF(o,e)?e-1:e,cF=(o,e)=>e>=3&&o[e-3]>=uF&&o[e-3]<=dF,mF=(o,e)=>e>=2&&o[e-2]>=gF,lF=(o,e)=>e>=1&&o[e-1]>=pF,I1=(o,e)=>e<0||Object.is(e,-0)?Math.max(o+e,0):e,uF=240,dF=244,gF=224,pF=194,hF=128,fF=191});var j1,C1=Fe(()=>{"use strict";Xy();j1=(o,e,t)=>{let a=globalThis.Buffer.from(o),i=Pd(a,a.length,e),r=Fd(a,a.length,t);return i===0&&r>=a.length?a.toString():a.toString("utf8",i,r)}});var S1,B1=Fe(()=>{"use strict";S1=/[\uD800-\uDFFF]/gu});var $d,yF,tk=Fe(()=>{"use strict";B1();$d=o=>yF(o)?o.replace(S1,"\uFFFD"):o,yF=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,Q1=Fe(()=>{"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,xF,zF,_1=Fe(()=>{"use strict";Q1();ik=(o,e,t)=>e<0||Object.is(e,-0)?zF(o,e,t):xF(o,e,t),xF=(o,e,t)=>ak({input:o,targetByteCount:e,firstStartSurrogate:55296,lastStartSurrogate:56319,firstEndSurrogate:56320,lastEndSurrogate:57343,increment:1,canBacktrack:t,shift:0,charIndexInit:0}),zF=(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 Hd,qF,D1=Fe(()=>{"use strict";tk();_1();Hd=(o,e,t)=>{let a=ik(o,e,!1),i=qF(o,t),r=a===0&&i===void 0?o:o.slice(a,i);return $d(r)},qF=(o,e)=>{if(e===void 0)return e;let t=ik(o,e,!0);return t===o.length?void 0:t}});var R1,EF,rk,T1,IF,jF,Gd,N1=Fe(()=>{"use strict";Xy();R1=(o,e,t)=>{let{textEncoder:a,textDecoder:i}=EF(),r=IF(o),{written:n}=a.encodeInto(o,r),s=Pd(r,n,e),c=Fd(r,n,t),m=c===void 0?n:Math.min(c,n),l=r.subarray(s,m);return i.decode(l)},EF=()=>(rk===void 0&&(rk=new globalThis.TextEncoder,T1=new globalThis.TextDecoder("utf8",{fatal:!1})),{textEncoder:rk,textDecoder:T1}),IF=o=>{let e=o.length*3;return e>jF?new Uint8Array(e):((Gd===void 0||Gd.length<e)&&(Gd=new Uint8Array(e)),Gd)},jF=1e5});var O1,nk,U1,M1=Fe(()=>{"use strict";O1=(o,e)=>{if(e===void 0)return e;let t=nk(o,e);return t>=o.length*U1?void 0:t},nk=(o,e)=>e<=o.length*-U1?0:e,U1=4});var L1,CF,SF,P1,F1=Fe(()=>{"use strict";L1=(o,e,t)=>{if(typeof o!="string")throw new TypeError(`First argument must be a string: ${o}`);CF(e),SF(t)},CF=o=>{if(o===void 0)throw new TypeError("Second argument is required.");P1("Second",o)},SF=o=>{o!==void 0&&P1("Third",o)},P1=(o,e)=>{if(!Number.isInteger(e))throw new TypeError(`${o} argument must be an integer: ${e}`)}});var $1,BF,sk,H1=Fe(()=>{"use strict";$1=o=>{let e=!0,t=0;for(let a=0;a<sk;a+=1){let i=BF(o,a);i<=127||(e&&(e=!1),i>2047&&(t+=1))}return{asciiOnly:e,longCharsPercentage:t/sk}},BF=(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 QF,G1,_F,DF,TF,RF,V1,Y1=Fe(()=>{"use strict";C1();D1();N1();M1();tk();F1();H1();QF=(o,e,t)=>{if(L1(o,e,t),o==="")return o;let a=nk(o,e),i=O1(o,t);return i===void 0&&Object.is(a,0)?$d(o):_F(o,a,i)},G1=QF,_F=(o,e,t)=>{if(o.length<=DF)return Hd(o,e,t);let{asciiOnly:a,longCharsPercentage:i}=$1(o);return a?RF(o,e,t):i>=TF?Hd(o,e,t):V1(o,e,t)},DF=200,TF=.4,RF=(o,e,t)=>"Buffer"in globalThis&&"from"in globalThis.Buffer?j1(o,e,t):V1(o,e,t),V1=(o,e,t)=>"TextEncoder"in globalThis?R1(o,e,t):Hd(o,e,t)});var W1,NF,OF,UF,MF,rl,J1,Z1=Fe(()=>{"use strict";Y1();W1=(o,e)=>{let t=JSON.stringify(o),a=UF(t),i=G1(a,0,e-J1.length-rl.length*2),n=`${NF(i)}${J1}`;return MF(n)},NF=o=>o.replace(OF,""),OF=/(\\|\\u[0-9a-fA-F]{0,3})$/u,UF=o=>o.slice(rl.length,-rl.length),MF=o=>`${rl}${o}${rl}`,rl='"',J1="..."});var K1,X1=Fe(()=>{"use strict";K1=o=>globalThis.Buffer.byteLength(o)});var ck,LF,PF,FF,$F,HF,GF,eI=Fe(()=>{"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<=LF)continue;if(i<=PF){t+=1;continue}if(t+=2,i<FF||i>$F)continue;let r=o.charCodeAt(a+1);r<HF||r>GF||(a+=1)}return t},LF=127,PF=2047,FF=55296,$F=56319,HF=56320,GF=57343});var oI,VF,YF,JF,Vd,tI=Fe(()=>{"use strict";oI=()=>VF.bind(void 0,new TextEncoder),VF=(o,e)=>{let t=YF(e);return o.encodeInto(e,t).written},YF=o=>{let e=o.length*3;return e>JF?new Uint8Array(e):((Vd===void 0||Vd.length<e)&&(Vd=new Uint8Array(e)),Vd)},JF=1e5});var ZF,KF,aI,iI=Fe(()=>{"use strict";X1();eI();tI();ZF=()=>"Buffer"in globalThis&&"byteLength"in globalThis.Buffer?K1:"TextEncoder"in globalThis?KF.bind(void 0,oI()):ck,KF=(o,e)=>e.length<100?ck(e):o(e),aI=ZF()});var rI,XF,e$,o$,t$,mk,nI=Fe(()=>{"use strict";iI();rI=o=>{if(o===null)return XF;if(o===!0)return e$;if(o===!1)return o$;let e=typeof o;return e==="object"?t$:e==="number"?JSON.stringify(o).length:mk(o)},XF=4,e$=4,o$=5,t$=2,mk=o=>aI(JSON.stringify(o))});var Yd,cI,mI,lI,a$,uI,sI,dI,i$,nl=Fe(()=>{"use strict";nI();Yd=({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}},cI=o=>rI(o),mI=(o,e,t)=>{let a=uI({empty:o,indent:e,depth:t,keySpaceSize:0}),i=dI(o);return a+i},lI=({key:o,empty:e,indent:t,depth:a})=>{let i=uI({empty:e,indent:t,depth:a,keySpaceSize:1}),r=mk(o),n=dI(e);return i+r+a$+n},a$=1,uI=({empty:o,indent:e,depth:t,keySpaceSize:a})=>{if(e===void 0)return 0;let i=sI+e*(t+1),r=o?sI+e*t:0;return a+i+r},sI=1,dI=o=>o?0:i$,i$=1});var Jd,r$,lk=Fe(()=>{"use strict";nl();Jd=({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}=Yd({size:s,increment:a,maxSize:i,truncatedProps:e,path:d,value:u});return h?{empty:n,size:g,truncatedProps:k}:r$({value:u,truncatedProps:e,path:d,maxSize:i,empty:n,size:s,newSize:g,truncateValue:c,indent:m,depth:l})},r$=({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 gI,pI=Fe(()=>{"use strict";lk();nl();gI=({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=mI(m.empty,n,s);m=Jd({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 hI,fI=Fe(()=>{"use strict";lk();nl();hI=({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=lI({key:l,empty:m.empty,indent:n,depth:s});m=Jd({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 Wd,n$,bI=Fe(()=>{"use strict";pI();fI();nl();Wd=({value:o,truncatedProps:e,path:t,size:a,maxSize:i,indent:r,depth:n})=>{let s=cI(o),{size:c,stop:m,truncatedProps:l}=Yd({size:a,increment:s,maxSize:i,truncatedProps:e,path:t,value:o});return m?{value:void 0,size:c,truncatedProps:l}:n$({value:o,truncatedProps:l,path:t,size:c,maxSize:i,indent:r,depth:n})},n$=({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)?gI({array:o,truncatedProps:e,path:t,size:a,maxSize:i,truncateValue:Wd,indent:r,depth:n}):hI({object:o,truncatedProps:e,path:t,size:a,maxSize:i,truncateValue:Wd,indent:r,depth:n})});var yI={};sE(yI,{default:()=>c$});var s$,c$,m$,l$,u$,kI=Fe(()=>{"use strict";A1();w1();q1();Z1();bI();s$=(o,e)=>{z1(o,e);let t=m$(o),a=l$(o),{value:i,truncatedProps:r}=Wd({value:a,truncatedProps:[],path:[],size:0,maxSize:e,indent:t,depth:0});return{jsonString:u$({newValue:i,value:a,maxSize:e,indent:t}),truncatedProps:r}},c$=s$,m$=o=>{let e=k1(o);return typeof e=="string"?e.length:e},l$=o=>{try{return JSON.parse(o)}catch(e){throw new TypeError(`Invalid JSON string: "${o}"
5
5
  ${e.message}`)}},u$=({newValue:o,value:e,maxSize:t,indent:a})=>o!==void 0?JSON.stringify(o,void 0,a):typeof e=="number"?v1(e,t):W1(e,t)});var vI=f(AI=>{"use strict";Object.defineProperty(AI,"__esModule",{value:!0})});var Jr=f(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.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))}};Zd.CronField=uk});var wI=f(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.CronDayOfMonth=void 0;var d$=Jr(),g$=1,p$=31,h$=Object.freeze(["L"]),dk=class extends d$.CronField{static get min(){return g$}static get max(){return p$}static get chars(){return h$}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}};Kd.CronDayOfMonth=dk});var xI=f(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.CronDayOfWeek=void 0;var f$=Jr(),b$=0,y$=7,k$=Object.freeze(["L"]),gk=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}get nthDay(){return this.options.nthDayOfWeek??0}};Xd.CronDayOfWeek=gk});var zI=f(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});eg.CronHour=void 0;var A$=Jr(),v$=0,w$=23,x$=Object.freeze([]),pk=class extends A$.CronField{static get min(){return v$}static get max(){return w$}static get chars(){return x$}constructor(e,t){super(e,t),this.validate()}get values(){return super.values}};eg.CronHour=pk});var qI=f(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});og.CronMinute=void 0;var z$=Jr(),q$=0,E$=59,I$=Object.freeze([]),hk=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}};og.CronMinute=hk});var oj=f(zt=>{"use strict";Object.defineProperty(zt,"__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()}`)}},Kr=class extends gr{},mg=class extends gr{constructor(e){super(`Invalid unit ${e}`)}},Eo=class extends gr{},Ra=class extends gr{constructor(){super("Zone is an abstract class")}},L="numeric",va="short",wt="long",lg={year:L,month:L,day:L},t2={year:L,month:va,day:L},j$={year:L,month:va,day:L,weekday:va},a2={year:L,month:wt,day:L},i2={year:L,month:wt,day:L,weekday:wt},r2={hour:L,minute:L},n2={hour:L,minute:L,second:L},s2={hour:L,minute:L,second:L,timeZoneName:va},c2={hour:L,minute:L,second:L,timeZoneName:wt},m2={hour:L,minute:L,hourCycle:"h23"},l2={hour:L,minute:L,second:L,hourCycle:"h23"},u2={hour:L,minute:L,second:L,hourCycle:"h23",timeZoneName:va},d2={hour:L,minute:L,second:L,hourCycle:"h23",timeZoneName:wt},g2={year:L,month:L,day:L,hour:L,minute:L},p2={year:L,month:L,day:L,hour:L,minute:L,second:L},h2={year:L,month:va,day:L,hour:L,minute:L},f2={year:L,month:va,day:L,hour:L,minute:L,second:L},C$={year:L,month:va,day:L,weekday:va,hour:L,minute:L},b2={year:L,month:wt,day:L,hour:L,minute:L,timeZoneName:va},y2={year:L,month:wt,day:L,hour:L,minute:L,second:L,timeZoneName:va},k2={year:L,month:wt,day:L,weekday:wt,hour:L,minute:L,timeZoneName:wt},A2={year:L,month:wt,day:L,weekday:wt,hour:L,minute:L,second:L,timeZoneName:wt},en=class{get type(){throw new Ra}get name(){throw new Ra}get ianaName(){return this.name}get isUniversal(){throw new Ra}offsetName(e,t){throw new Ra}formatOffset(e,t){throw new Ra}offset(e){throw new Ra}equals(e){throw new Ra}get isValid(){throw new Ra}},fk=null,dl=class o extends en{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 B2(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 S$(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 B$={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Q$(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 _$(o,e){let t=o.formatToParts(e),a=[];for(let i=0;i<t.length;i++){let{type:r,value:n}=t[i],s=B$[r];r==="era"?a[s]=n:ue(s)||(a[s]=parseInt(n,10))}return a}var bk=new Map,pr=class o extends en{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 B2(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=S$(this.name),[i,r,n,s,c,m,l]=a.formatToParts?_$(a,t):Q$(a,t);s==="BC"&&(i=-Math.abs(i)+1);let d=bg({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}},EI={};function D$(o,e={}){let t=JSON.stringify([o,e]),a=EI[t];return a||(a=new Intl.ListFormat(o,e),EI[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 T$(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 R$(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 N$(){return cl||(cl=new Intl.DateTimeFormat().resolvedOptions().locale,cl)}var _k=new Map;function v2(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 O$(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={...w2,...e}),Dk.set(o,e)}return e}function U$(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 M$(o,e,t){return(t||e)&&(o.includes("-u-")||(o+="-u"),t&&(o+=`-ca-${t}`),e&&(o+=`-nu-${e}`)),o}function L$(o){let e=[];for(let t=1;t<=12;t++){let a=Ke.utc(2009,t,1);e.push(o(a))}return e}function P$(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 tg(o,e,t,a){let i=o.listingMode();return i==="error"?null:i==="en"?t(e):a(e)}function F$(o){return o.numberingSystem&&o.numberingSystem!=="latn"?!1:o.numberingSystem==="latn"||!o.locale||o.locale.startsWith("en")||v2(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=T$(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&&C2()&&(this.rtf=R$(e,a))}format(e,t){return this.rtf?this.rtf.format(e,t):lH(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}},w2={firstDay:1,minimalDays:4,weekend:[6,7]},$e=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":N$()),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]=U$(e);this.locale=n,this.numberingSystem=t||s||null,this.outputCalendar=a||c||null,this.weekSettings=i,this.intl=M$(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=F$(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 tg(this,e,D2,()=>{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]=L$(n)}return this.monthsCache[r][e]})}weekdays(e,t=!1){return tg(this,e,N2,()=>{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]=P$(r=>this.extract(r,a,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return tg(this,void 0,()=>O2,()=>{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 tg(this,e,U2,()=>{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 D$(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||v2(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:S2()?O$(this.locale):w2}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,xt=class o extends en{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(yg(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}},ug=class extends en{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 Zr(o,e){if(ue(o)||o===null)return e;if(o instanceof en)return o;if(J$(o)){let t=o.toLowerCase();return t==="default"?e:t==="local"||t==="system"?dl.instance:t==="utc"||t==="gmt"?xt.utcInstance:xt.parseSpecifier(t)||pr.create(o)}else return Xr(o)?xt.instance(o):typeof o=="object"&&"offset"in o&&typeof o.offset=="function"?o:new ug(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"},II={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]},$$=Pk.hanidec.replace(/[\[|\]]/g,"").split("");function H$(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+=$$.indexOf(o[t]);else for(let i in II){let[r,n]=II[i];a>=r&&a<=n&&(e+=a-r)}}return parseInt(e,10)}else return e}var Ok=new Map;function G$(){Ok.clear()}function ka({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 jI=()=>Date.now(),CI="system",SI=null,BI=null,QI=null,_I=60,DI,TI=null,Ye=class{static get now(){return jI}static set now(e){jI=e}static set defaultZone(e){CI=e}static get defaultZone(){return Zr(CI,dl.instance)}static get defaultLocale(){return SI}static set defaultLocale(e){SI=e}static get defaultNumberingSystem(){return BI}static set defaultNumberingSystem(e){BI=e}static get defaultOutputCalendar(){return QI}static set defaultOutputCalendar(e){QI=e}static get defaultWeekSettings(){return TI}static set defaultWeekSettings(e){TI=Uk(e)}static get twoDigitCutoffYear(){return _I}static set twoDigitCutoffYear(e){_I=e%100}static get throwOnInvalid(){return DI}static set throwOnInvalid(e){DI=e}static resetCaches(){$e.resetCache(),pr.resetCache(),Ke.resetCache(),G$()}},vt=class{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},x2=[0,31,59,90,120,151,181,212,243,273,304,334],z2=[0,31,60,91,121,152,182,213,244,274,305,335];function Gt(o,e){return new vt("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 q2(o,e,t){return t+(pl(o)?z2:x2)[e-1]}function E2(o,e){let t=pl(o)?z2:x2,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 dg(o,e=4,t=1){let{year:a,month:i,day:r}=o,n=q2(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,...kg(o)}}function RI(o,e=4,t=1){let{weekYear:a,weekNumber:i,weekday:r}=o,n=$k(Fk(a,1,e),t),s=dc(a),c=i*7+r-n-7+e,m;c<1?(m=a-1,c+=dc(m)):c>s?(m=a+1,c-=dc(a)):m=a;let{month:l,day:u}=E2(m,c);return{year:m,month:l,day:u,...kg(o)}}function kk(o){let{year:e,month:t,day:a}=o,i=q2(e,t,a);return{year:e,ordinal:i,...kg(o)}}function NI(o){let{year:e,ordinal:t}=o,{month:a,day:i}=E2(e,t);return{year:e,month:a,day:i,...kg(o)}}function OI(o,e){if(!ue(o.localWeekday)||!ue(o.localWeekNumber)||!ue(o.localWeekYear)){if(!ue(o.weekday)||!ue(o.weekNumber)||!ue(o.weekYear))throw new Kr("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 V$(o,e=4,t=1){let a=fg(o.weekYear),i=Vt(o.weekNumber,1,gl(o.weekYear,e,t)),r=Vt(o.weekday,1,7);return a?i?r?!1:Gt("weekday",o.weekday):Gt("week",o.weekNumber):Gt("weekYear",o.weekYear)}function Y$(o){let e=fg(o.year),t=Vt(o.ordinal,1,dc(o.year));return e?t?!1:Gt("ordinal",o.ordinal):Gt("year",o.year)}function I2(o){let e=fg(o.year),t=Vt(o.month,1,12),a=Vt(o.day,1,gg(o.year,o.month));return e?t?a?!1:Gt("day",o.day):Gt("month",o.month):Gt("year",o.year)}function j2(o){let{hour:e,minute:t,second:a,millisecond:i}=o,r=Vt(e,0,23)||e===24&&t===0&&a===0&&i===0,n=Vt(t,0,59),s=Vt(a,0,59),c=Vt(i,0,999);return r?n?s?c?!1:Gt("millisecond",i):Gt("second",a):Gt("minute",t):Gt("hour",e)}function ue(o){return typeof o>"u"}function Xr(o){return typeof o=="number"}function fg(o){return typeof o=="number"&&o%1===0}function J$(o){return typeof o=="string"}function W$(o){return Object.prototype.toString.call(o)==="[object Date]"}function C2(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function S2(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Z$(o){return Array.isArray(o)?o:[o]}function UI(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 K$(o,e){return e.reduce((t,a)=>(t[a]=o[a],t),{})}function pc(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(!Vt(o.firstDay,1,7)||!Vt(o.minimalDays,1,7)||!Array.isArray(o.weekend)||o.weekend.some(e=>!Vt(e,1,7)))throw new Eo("Invalid week settings");return{firstDay:o.firstDay,minimalDays:o.minimalDays,weekend:Array.from(o.weekend)}}function Vt(o,e,t){return fg(o)&&o>=e&&o<=t}function X$(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 Wr(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 dc(o){return pl(o)?366:365}function gg(o,e){let t=X$(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 bg(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 MI(o,e,t){return-$k(Fk(o,1,e),t)+e-1}function gl(o,e=4,t=1){let a=MI(o,e,t),i=MI(o+1,e,t);return(dc(o)-a+i)/7}function Mk(o){return o>99?o:o>Ye.twoDigitCutoffYear?1900+o:2e3+o}function B2(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 yg(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 Q2(o){let e=Number(o);if(typeof o=="boolean"||o===""||!Number.isFinite(e))throw new Eo(`Invalid unit value ${o}`);return e}function pg(o,e){let t={};for(let a in o)if(pc(o,a)){let i=o[a];if(i==null)continue;t[e(a)]=Q2(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 kg(o){return K$(o,["hour","minute","second","millisecond"])}var eH=["January","February","March","April","May","June","July","August","September","October","November","December"],_2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],oH=["J","F","M","A","M","J","J","A","S","O","N","D"];function D2(o){switch(o){case"narrow":return[...oH];case"short":return[..._2];case"long":return[...eH];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 T2=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],R2=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],tH=["M","T","W","T","F","S","S"];function N2(o){switch(o){case"narrow":return[...tH];case"short":return[...R2];case"long":return[...T2];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var O2=["AM","PM"],aH=["Before Christ","Anno Domini"],iH=["BC","AD"],rH=["B","A"];function U2(o){switch(o){case"narrow":return[...rH];case"short":return[...iH];case"long":return[...aH];default:return null}}function nH(o){return O2[o.hour<12?0:1]}function sH(o,e){return N2(e)[o.weekday-1]}function cH(o,e){return D2(e)[o.month-1]}function mH(o,e){return U2(e)[o.year<0?0:1]}function lH(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 LI(o,e){let t="";for(let a of o)a.literal?t+=a.val:t+=e(a.val);return t}var uH={D:lg,DD:t2,DDD:a2,DDDD:i2,t:r2,tt:n2,ttt:s2,tttt:c2,T:m2,TT:l2,TTT:u2,TTTT:d2,f:g2,ff:h2,fff:b2,ffff:k2,F:p2,FF:f2,FFF:y2,FFFF:A2},At=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 uH[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?nH(e):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(g,h)=>a?cH(e,g):r(h?{month:g}:{month:g,day:"numeric"},"month"),m=(g,h)=>a?sH(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?mH(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 LI(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 LI(n,r(c,m))}},M2=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function hc(...o){let e=o.reduce((t,a)=>t+a.source,"");return RegExp(`^${e}$`)}function fc(...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 bc(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 L2(...o){return(e,t)=>{let a={},i;for(i=0;i<o.length;i++)a[o[i]]=Wr(e[t+i]);return[a,null,t+i]}}var P2=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,dH=`(?:${P2.source}?(?:\\[(${M2.source})\\])?)?`,Vk=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,F2=RegExp(`${Vk.source}${dH}`),Yk=RegExp(`(?:[Tt]${F2.source})?`),gH=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,pH=/(\d{4})-?W(\d\d)(?:-?(\d))?/,hH=/(\d{4})-?(\d{3})/,fH=L2("weekYear","weekNumber","weekDay"),bH=L2("year","ordinal"),yH=/(\d{4})-(\d\d)-(\d\d)/,$2=RegExp(`${Vk.source} ?(?:${P2.source}|(${M2.source}))?`),kH=RegExp(`(?: ${$2.source})?`);function gc(o,e,t){let a=o[e];return ue(a)?t:Wr(a)}function AH(o,e){return[{year:gc(o,e),month:gc(o,e+1,1),day:gc(o,e+2,1)},null,e+3]}function yc(o,e){return[{hours:gc(o,e,0),minutes:gc(o,e+1,0),seconds:gc(o,e+2,0),milliseconds:Hk(o[e+3])},null,e+4]}function hl(o,e){let t=!o[e]&&!o[e+1],a=yg(o[e+1],o[e+2]),i=t?null:xt.instance(a);return[{},i,e+3]}function fl(o,e){let t=o[e]?pr.create(o[e]):null;return[{},t,e+1]}var vH=RegExp(`^T?${Vk.source}$`),wH=/^-?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 xH(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 zH={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(Wr(e)):Wr(e),month:_2.indexOf(t)+1,day:Wr(a),hour:Wr(i),minute:Wr(r)};return n&&(s.second=Wr(n)),o&&(s.weekday=o.length>3?T2.indexOf(o)+1:R2.indexOf(o)+1),s}var qH=/^(?:(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 EH(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=zH[c]:m?g=0:g=yg(l,u),[d,new xt(g)]}function IH(o){return o.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var jH=/^(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$/,CH=/^(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$/,SH=/^(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 PI(o){let[,e,t,a,i,r,n,s]=o;return[Jk(e,i,a,t,r,n,s),xt.utcInstance]}function BH(o){let[,e,t,a,i,r,n,s]=o;return[Jk(e,s,t,a,i,r,n),xt.utcInstance]}var QH=hc(gH,Yk),_H=hc(pH,Yk),DH=hc(hH,Yk),TH=hc(F2),H2=fc(AH,yc,hl,fl),RH=fc(fH,yc,hl,fl),NH=fc(bH,yc,hl,fl),OH=fc(yc,hl,fl);function UH(o){return bc(o,[QH,H2],[_H,RH],[DH,NH],[TH,OH])}function MH(o){return bc(IH(o),[qH,EH])}function LH(o){return bc(o,[jH,PI],[CH,PI],[SH,BH])}function PH(o){return bc(o,[wH,xH])}var FH=fc(yc);function $H(o){return bc(o,[vH,FH])}var HH=hc(yH,kH),GH=hc($2),VH=fc(yc,hl,fl);function YH(o){return bc(o,[HH,H2],[GH,VH])}var FI="Invalid Duration",G2={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}},JH={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},...G2},Ht=146097/400,mc=146097/4800,WH={years:{quarters:4,months:12,weeks:Ht/7,days:Ht,hours:Ht*24,minutes:Ht*24*60,seconds:Ht*24*60*60,milliseconds:Ht*24*60*60*1e3},quarters:{months:3,weeks:Ht/28,days:Ht/4,hours:Ht*24/4,minutes:Ht*24*60/4,seconds:Ht*24*60*60/4,milliseconds:Ht*24*60*60*1e3/4},months:{weeks:mc/7,days:mc,hours:mc*24,minutes:mc*24*60,seconds:mc*24*60*60,milliseconds:mc*24*60*60*1e3},...G2},es=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ZH=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 V2(o,e){var t;let a=(t=e.milliseconds)!=null?t:0;for(let i of ZH.slice(1))e[i]&&(a+=e[i]*o[i].milliseconds);return a}function $I(o,e){let t=V2(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 HI(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?WH:JH;e.matrix&&(a=e.matrix),this.values=e.values,this.loc=e.loc||$e.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:pg(e,o.normalizeUnit),loc:$e.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(Xr(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]=PH(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]=$H(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 vt?e:new vt(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 mg(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?At.create(this.loc,a).formatDurationFromString(this,e):FI}toHuman(e={}){if(!this.isValid)return FI;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?V2(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)(pc(t.values,i)||pc(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]=Q2(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,...pg(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 $I(this.matrix,e),dr(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=HI(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;Xr(i[n])&&(s+=i[n]);let c=Math.trunc(s);t[n]=c,a[n]=(s*1e3-c*1e3)/1e3}else Xr(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 $I(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=HI(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}},lc="Invalid Interval";function KH(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 vt?e:new vt(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=KH(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()})`:lc}[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=lg,t={}){return this.isValid?At.create(this.s.loc.clone(t),e).formatInterval(this):lc}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:lc}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:lc}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:lc}toFormat(e,{separator:t=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:lc}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 Zr(e,Ye.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||$e.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||$e.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||$e.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:a=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||$e.create(t,a,r)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:a=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||$e.create(t,a,r)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:a=null,locObj:i=null}={}){return(i||$e.create(t,a,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:a=null,locObj:i=null}={}){return(i||$e.create(t,a,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return $e.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return $e.create(t,null,"gregory").eras(e)}static features(){return{relative:C2(),localeWeek:S2()}}};function GI(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 XH(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=GI(c,m);return(l-l%7)/7}],["days",GI]],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 eG(o,e,t,a){let[i,r,n,s]=XH(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 oG="missing Intl.DateTimeFormat.formatToParts support";function _e(o,e=t=>t){return{regex:o,deser:([t])=>e(H$(t))}}var tG="\xA0",Y2=`[ ${tG}]`,J2=new RegExp(Y2,"g");function aG(o){return o.replace(/\./g,"\\.?").replace(J2,Y2)}function VI(o){return o.replace(/\./g,"").replace(J2," ").toLowerCase()}function Aa(o,e){return o===null?null:{regex:RegExp(o.map(aG).join("|")),deser:([t])=>o.findIndex(a=>VI(t)===VI(a))+e}}function YI(o,e){return{regex:o,deser:([,t,a])=>yg(t,a),groups:e}}function ag(o){return{regex:o,deser:([e])=>e}}function iG(o){return o.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function rG(o,e){let t=ka(e),a=ka(e,"{2}"),i=ka(e,"{3}"),r=ka(e,"{4}"),n=ka(e,"{6}"),s=ka(e,"{1,2}"),c=ka(e,"{1,3}"),m=ka(e,"{1,6}"),l=ka(e,"{1,9}"),u=ka(e,"{2,4}"),d=ka(e,"{4,6}"),g=w=>({regex:RegExp(iG(w.val)),deser:([x])=>x,literal:!0}),k=(w=>{if(o.literal)return g(w);switch(w.val){case"G":return Aa(e.eras("short"),0);case"GG":return Aa(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 Aa(e.months("short",!0),1);case"MMMM":return Aa(e.months("long",!0),1);case"L":return _e(s);case"LL":return _e(a);case"LLL":return Aa(e.months("short",!1),1);case"LLLL":return Aa(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 ag(l);case"uu":return ag(s);case"uuu":return _e(t);case"a":return Aa(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 Aa(e.weekdays("short",!1),1);case"EEEE":return Aa(e.weekdays("long",!1),1);case"ccc":return Aa(e.weekdays("short",!0),1);case"cccc":return Aa(e.weekdays("long",!0),1);case"Z":case"ZZ":return YI(new RegExp(`([+-]${s.source})(?::(${a.source}))?`),2);case"ZZZ":return YI(new RegExp(`([+-]${s.source})(${a.source})?`),2);case"z":return ag(/[a-z_+-/]{1,256}?/i);case" ":return ag(/[^\S\n\r]/);default:return g(w)}})(o)||{invalidReason:oG};return k.token=o,k}var nG={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 sG(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=nG[n];if(typeof s=="object"&&(s=s[r]),s)return{literal:!1,val:s}}function cG(o){return[`^${o.map(t=>t.regex).reduce((t,a)=>`${t}(${a.source})`,"")}$`,o]}function mG(o,e,t){let a=o.match(e);if(a){let i={},r=1;for(let n in t)if(pc(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 lG(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 xt(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 uG(){return Ak||(Ak=Ke.fromMillis(1555555555555)),Ak}function dG(o,e){if(o.literal)return o;let t=At.macroTokenToFormatOpts(o.val),a=K2(t,e);return a==null||a.includes(void 0)?o:a}function W2(o,e){return Array.prototype.concat(...o.map(t=>dG(t,e)))}var hg=class{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=W2(At.parseFormat(t),e),this.units=this.tokens.map(a=>rG(a,e)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,i]=cG(this.units);this.regex=RegExp(a,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){let[t,a]=mG(e,this.regex,this.handlers),[i,r,n]=a?lG(a):[null,null,void 0];if(pc(a,"a")&&pc(a,"H"))throw new Kr("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 Z2(o,e,t){return new hg(o,t).explainFromTokens(e)}function gG(o,e,t){let{result:a,zone:i,specificOffset:r,invalidReason:n}=Z2(o,e,t);return[a,i,r,n]}function K2(o,e){if(!o)return null;let a=At.create(e,o).dtFormatter(uG()),i=a.formatToParts(),r=a.resolvedOptions();return i.map(n=>sG(n,o,r))}var vk="Invalid DateTime",JI=864e13;function ml(o){return new vt("unsupported zone",`the zone "${o.name}" is not supported`)}function wk(o){return o.weekData===null&&(o.weekData=dg(o.c)),o.weekData}function xk(o){return o.localWeekData===null&&(o.localWeekData=dg(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 X2(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 ig(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 ng(o,e,t){return X2(bg(o),e,t)}function WI(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,gg(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=bg(r),[c,m]=X2(s,t,o.zone);return n!==0&&(c+=n,m=o.zone.offset(c)),{ts:c,o:m}}function uc(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 vt("unparsable",`the input "${i}" can't be parsed as ${a}`))}function rg(o,e,t=!0){return o.isValid?At.create($e.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 ZI(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 ej={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},pG={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},hG={ordinal:1,hour:0,minute:0,second:0,millisecond:0},sg=["year","month","day","hour","minute","second","millisecond"],fG=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],bG=["year","ordinal","hour","minute","second","millisecond"];function cg(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 mg(o);return e}function KI(o){switch(o.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return cg(o)}}function yG(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 XI(o,e){let t=Zr(e.zone,Ye.defaultZone);if(!t.isValid)return Ke.invalid(ml(t));let a=$e.fromObject(e),i,r;if(ue(o.year))i=Ye.now();else{for(let c of sg)ue(o[c])&&(o[c]=ej[c]);let n=I2(o)||j2(o);if(n)return Ke.invalid(n);let s=yG(t);[i,r]=ng(o,s,t)}return new Ke({ts:i,zone:t,loc:a,o:r})}function e2(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 o2(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 vt("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=Xr(e.o)&&!e.old?e.o:t.offset(this.ts);i=ig(this.ts,s),a=Number.isNaN(i.year)?new vt("invalid input"):null,i=a?null:i,r=a?null:s}this._zone=t,this.loc=e.loc||$e.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]=o2(arguments),[a,i,r,n,s,c,m]=t;return XI({year:a,month:i,day:r,hour:n,minute:s,second:c,millisecond:m},e)}static utc(){let[e,t]=o2(arguments),[a,i,r,n,s,c,m]=t;return e.zone=xt.utcInstance,XI({year:a,month:i,day:r,hour:n,minute:s,second:c,millisecond:m},e)}static fromJSDate(e,t={}){let a=W$(e)?e.valueOf():NaN;if(Number.isNaN(a))return o.invalid("invalid input");let i=Zr(t.zone,Ye.defaultZone);return i.isValid?new o({ts:a,zone:i,loc:$e.fromObject(t)}):o.invalid(ml(i))}static fromMillis(e,t={}){if(Xr(e))return e<-JI||e>JI?o.invalid("Timestamp out of range"):new o({ts:e,zone:Zr(t.zone,Ye.defaultZone),loc:$e.fromObject(t)});throw new Eo(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(Xr(e))return new o({ts:e*1e3,zone:Zr(t.zone,Ye.defaultZone),loc:$e.fromObject(t)});throw new Eo("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};let a=Zr(t.zone,Ye.defaultZone);if(!a.isValid)return o.invalid(ml(a));let i=$e.fromObject(t),r=pg(e,KI),{minDaysInFirstWeek:n,startOfWeek:s}=OI(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 Kr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&l)throw new Kr("Can't mix ordinal dates with month/day");let k=h||r.weekday&&!g,w,x,E=ig(c,m);k?(w=fG,x=pG,E=dg(E,n,s)):l?(w=bG,x=hG,E=kk(E)):(w=sg,x=ej);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?V$(r,n,s):l?Y$(r):I2(r),D=_||j2(r);if(D)return o.invalid(D);let H=k?RI(r,n,s):l?NI(r):r,[J,X]=ng(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]=UH(e);return uc(a,i,t,"ISO 8601",e)}static fromRFC2822(e,t={}){let[a,i]=MH(e);return uc(a,i,t,"RFC 2822",e)}static fromHTTP(e,t={}){let[a,i]=LH(e);return uc(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=$e.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0}),[s,c,m,l]=gG(n,e,t);return l?o.invalid(l):uc(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]=YH(e);return uc(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 vt?e:new vt(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=K2(e,$e.fromObject(t));return a?a.map(i=>i?i.val:null).join(""):null}static expandFormat(e,t={}){return W2(At.parseFormat(e),$e.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=bg(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=ig(c,n),u=ig(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 gg(this.year,this.month)}get daysInYear(){return this.isValid?dc(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}=At.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:a,outputCalendar:i}}toUTC(e=0,t={}){return this.setZone(xt.instance(e),t)}toLocal(){return this.setZone(Ye.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:a=!1}={}){if(e=Zr(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]=ng(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=pg(e,KI),{minDaysInFirstWeek:a,startOfWeek:i}=OI(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 Kr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&n)throw new Kr("Can't mix ordinal dates with month/day");let u;r?u=RI({...dg(this.c,a,i),...t},a,i):ue(t.ordinal)?(u={...this.toObject(),...t},ue(t.day)&&(u.day=Math.min(gg(u.year,u.month),u.day))):u=NI({...kk(this.c),...t});let[d,g]=ng(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,WI(this,t))}minus(e){if(!this.isValid)return this;let t=Ao.fromDurationLike(e).negate();return Xn(this,WI(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?At.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):vk}toLocaleString(e=lg,t={}){return this.isValid?At.create(this.loc.clone(t),e).formatDateTime(this):vk}toLocaleParts(e={}){return this.isValid?At.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=cg(n);let s=e==="extended",c=zk(this,s,n);return sg.indexOf(n)>=3&&(c+="T"),c+=ZI(this,s,t,a,i,r,n),c}toISODate({format:e="extended",precision:t="day"}={}){return this.isValid?zk(this,e==="extended",cg(t)):null}toISOWeekDate(){return rg(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=cg(s),(i&&sg.indexOf(s)>=3?"T":"")+ZI(this,n==="extended",t,e,a,r,s)):null}toRFC2822(){return rg(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return rg(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")),rg(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=Z$(t).map(Ao.normalizeUnit),n=e.valueOf()>this.valueOf(),s=n?this:e,c=n?e:this,m=eG(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),e2(t,this.plus(a),{...e,numeric:"always",units:i,unit:r})}toRelativeCalendar(e={}){return this.isValid?e2(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 UI(e,t=>t.valueOf(),Math.min)}static max(...e){if(!e.every(o.isDateTime))throw new Eo("max requires all arguments be DateTimes");return UI(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,a={}){let{locale:i=null,numberingSystem:r=null}=a,n=$e.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0});return Z2(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=$e.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return new hg(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=$e.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):uc(s,c,a,`format ${t.format}`,e,m)}static get DATE_SHORT(){return lg}static get DATE_MED(){return t2}static get DATE_MED_WITH_WEEKDAY(){return j$}static get DATE_FULL(){return a2}static get DATE_HUGE(){return i2}static get TIME_SIMPLE(){return r2}static get TIME_WITH_SECONDS(){return n2}static get TIME_WITH_SHORT_OFFSET(){return s2}static get TIME_WITH_LONG_OFFSET(){return c2}static get TIME_24_SIMPLE(){return m2}static get TIME_24_WITH_SECONDS(){return l2}static get TIME_24_WITH_SHORT_OFFSET(){return u2}static get TIME_24_WITH_LONG_OFFSET(){return d2}static get DATETIME_SHORT(){return g2}static get DATETIME_SHORT_WITH_SECONDS(){return p2}static get DATETIME_MED(){return h2}static get DATETIME_MED_WITH_SECONDS(){return f2}static get DATETIME_MED_WITH_WEEKDAY(){return C$}static get DATETIME_FULL(){return b2}static get DATETIME_FULL_WITH_SECONDS(){return y2}static get DATETIME_HUGE(){return k2}static get DATETIME_HUGE_WITH_SECONDS(){return A2}};function sl(o){if(Ke.isDateTime(o))return o;if(o&&o.valueOf&&Xr(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 kG="3.7.2";zt.DateTime=Ke;zt.Duration=Ao;zt.FixedOffsetZone=xt;zt.IANAZone=pr;zt.Info=os;zt.Interval=ts;zt.InvalidZone=ug;zt.Settings=Ye;zt.SystemZone=dl;zt.VERSION=kG;zt.Zone=en});var wg=f(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.CronDate=Wo.DAYS_IN_MONTH=Wo.DateMathOp=Wo.TimeUnit=void 0;var as=oj(),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 Ag;(function(o){o.Add="Add",o.Subtract="Subtract"})(Ag||(Wo.DateMathOp=Ag={}));Wo.DAYS_IN_MONTH=Object.freeze([31,29,31,30,31,30,31,31,30,31,30,31]);var vg=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===Ag.Add){this.addUnit(t);return}if(e===Ag.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=vg;Wo.default=vg});var tj=f(xg=>{"use strict";Object.defineProperty(xg,"__esModule",{value:!0});xg.CronMonth=void 0;var AG=wg(),vG=Jr(),wG=1,xG=12,zG=Object.freeze([]),Wk=class extends vG.CronField{static get min(){return wG}static get max(){return xG}static get chars(){return zG}static get daysInMonth(){return AG.DAYS_IN_MONTH}constructor(e,t){super(e,t),this.validate()}get values(){return super.values}};xg.CronMonth=Wk});var aj=f(zg=>{"use strict";Object.defineProperty(zg,"__esModule",{value:!0});zg.CronSecond=void 0;var qG=Jr(),EG=0,IG=59,jG=Object.freeze([]),Zk=class extends qG.CronField{static get min(){return EG}static get max(){return IG}static get chars(){return jG}constructor(e,t){super(e,t),this.validate()}get values(){return super.values}};zg.CronSecond=Zk});var qg=f(rt=>{"use strict";var CG=rt&&rt.__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]})),on=rt&&rt.__exportStar||function(o,e){for(var t in o)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&CG(e,o,t)};Object.defineProperty(rt,"__esModule",{value:!0});on(vI(),rt);on(wI(),rt);on(xI(),rt);on(Jr(),rt);on(zI(),rt);on(qI(),rt);on(tj(),rt);on(aj(),rt)});var Xk=f(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});Eg.CronFieldCollection=void 0;var Yt=qg(),Kk=class o{#e;#o;#a;#i;#r;#t;static from(e,t){return new o({second:this.resolveField(Yt.CronSecond,e.second,t.second),minute:this.resolveField(Yt.CronMinute,e.minute,t.minute),hour:this.resolveField(Yt.CronHour,e.hour,t.hour),dayOfMonth:this.resolveField(Yt.CronDayOfMonth,e.dayOfMonth,t.dayOfMonth),month:this.resolveField(Yt.CronMonth,e.month,t.month),dayOfWeek:this.resolveField(Yt.CronDayOfWeek,e.dayOfWeek,t.dayOfWeek)})}static resolveField(e,t,a){return a?a instanceof Yt.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)<=Yt.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 Yt.CronDayOfWeek){t=6;let r=this.#t.values;a=r[r.length-1]===7?r.slice(0,-1):r}e instanceof Yt.CronDayOfMonth&&(t=this.#r.values.length===1?Yt.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 Yt.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()}}};Eg.CronFieldCollection=Kk});var eA=f(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.CronExpression=Jt.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE=Jt.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE=void 0;var io=wg();Jt.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE="Out of the time span range";Jt.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE="Invalid expression, loop limit exceeded";var ij=1e4,Ig=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(Jt.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE);if(this.#r&&t>this.#r.getTime())throw new Error(Jt.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<ij;){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>ij)throw new Error(Jt.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()})}}};Jt.CronExpression=Ig;Jt.default=Ig});var rj=f(oA=>{"use strict";Object.defineProperty(oA,"__esModule",{value:!0});oA.seededRandom=QG;function SG(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 BG(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 QG(o){let e=o?SG(o)():Math.floor(Math.random()*1e10);return BG(e)}});var jg=f(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.CronExpressionParser=Kt.DayOfWeek=Kt.Months=Kt.CronUnit=Kt.PredefinedExpressions=void 0;var _G=Xk(),DG=eA(),TG=rj(),Wt=qg(),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||(Kt.PredefinedExpressions=tA={}));var Zt;(function(o){o.Second="Second",o.Minute="Minute",o.Hour="Hour",o.DayOfMonth="DayOfMonth",o.Month="Month",o.DayOfWeek="DayOfWeek"})(Zt||(Kt.CronUnit=Zt={}));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||(Kt.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||(Kt.DayOfWeek=iA={}));var rA=class o{static parse(e,t={}){let{strict:a=!1,hashSeed:i}=t,r=(0,TG.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(Zt.Second,n.second,Wt.CronSecond.constraints,r),c=o.#o(Zt.Minute,n.minute,Wt.CronMinute.constraints,r),m=o.#o(Zt.Hour,n.hour,Wt.CronHour.constraints,r),l=o.#o(Zt.Month,n.month,Wt.CronMonth.constraints,r),u=o.#o(Zt.DayOfMonth,n.dayOfMonth,Wt.CronDayOfMonth.constraints,r),{dayOfWeek:d,nthDayOfWeek:g}=o.#u(n.dayOfWeek),h=o.#o(Zt.DayOfWeek,d,Wt.CronDayOfWeek.constraints,r),k=new _G.CronFieldCollection({second:new Wt.CronSecond(s,{rawValue:n.second}),minute:new Wt.CronMinute(c,{rawValue:n.minute}),hour:new Wt.CronHour(m,{rawValue:n.hour}),dayOfMonth:new Wt.CronDayOfMonth(u,{rawValue:n.dayOfMonth}),month:new Wt.CronMonth(l,{rawValue:n.month}),dayOfWeek:new Wt.CronDayOfWeek(h,{rawValue:n.dayOfWeek,nthDayOfWeek:g})});return new DG.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===Zt.Month||e===Zt.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===Zt.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===Zt.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))}};Kt.CronExpressionParser=rA});var nj=f(Na=>{"use strict";var RG=Na&&Na.__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]})),NG=Na&&Na.__setModuleDefault||(Object.create?(function(o,e){Object.defineProperty(o,"default",{enumerable:!0,value:e})}):function(o,e){o.default=e}),OG=Na&&Na.__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"&&RG(t,e,a[i]);return NG(t,e),t}})();Object.defineProperty(Na,"__esModule",{value:!0});Na.CronFileParser=void 0;var UG=jg(),nA=class o{static async parseFile(e){let{readFile:t}=await Promise.resolve().then(()=>OG(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(`
@@ -156,7 +156,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
156
156
  </td>
157
157
  </tr>
158
158
  </table>
159
- <p style="margin:0;font-size:13px;line-height:1.5;color:#8a8a8a;text-align:center;">You receive this because you created the magic link. Answers can still change after submission; the submitted version stays available on the artifact page.</p>`})}});var F8=f(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.HTML_ARTIFACT_PERMISSIONS_POLICY=na.PORTABLE_HTML_ARTIFACT_VERSION=void 0;na.escapeText=nu;na.escapeAttribute=ln;na.buildPortableHtmlArtifactDocument=Xle;var Wle=Pa();na.PORTABLE_HTML_ARTIFACT_VERSION=2;var Zle=["accelerometer","all-screens-capture","ambient-light-sensor","attribution-reporting","autoplay","battery","bluetooth","browsing-topics","camera","captured-surface-control","clipboard-read","clipboard-write","compute-pressure","deferred-fetch","digital-credentials-create","digital-credentials-get","direct-sockets","display-capture","encrypted-media","execution-while-not-rendered","execution-while-out-of-viewport","focus-without-user-activation","fullscreen","gamepad","geolocation","gyroscope","hid","identity-credentials-get","idle-detection","join-ad-interest-group","keyboard-map","language-detector","language-model","local-fonts","magnetometer","microphone","midi","navigation-override","otp-credentials","payment","picture-in-picture","publickey-credentials-get","run-ad-auction","screen-wake-lock","serial","smart-card","speaker-selection","storage-access","sync-xhr","tools","translator","usb","web-share","window-management","xr-spatial-tracking"];na.HTML_ARTIFACT_PERMISSIONS_POLICY=Zle.map(o=>`${o} 'none'`).join("; ");var Kle=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","frame-src 'self'","child-src 'self'","base-uri 'none'","form-action 'none'"].join("; ");function nu(o){return o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ln(o){return nu(o).replace(/"/g,"&quot;")}function Xle({artifact:o,initialData:e={},branding:t}){let i=`<script>(()=>{const frame=document.querySelector("iframe");const data=${(0,Wle.safeStringify)(e,0).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")};window.addEventListener("message",event=>{if(event.source===frame.contentWindow&&event.data&&event.data.source==="superglue-artifact"&&event.data.type==="ready"){frame.contentWindow.postMessage({source:"superglue-artifact-host",type:"init",data},"*")}})})();</script>`,r=t?.name?`<span style="font-size:14px;font-weight:600;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">${nu(t.name)}</span>`:"",n=t?`<header style="flex:none;display:flex;align-items:center;gap:16px;min-height:64px;padding:0 20px;background:#fff;border-bottom:1px solid #e5e7eb;font-family:system-ui,sans-serif"><span style="display:flex;align-items:center;gap:10px;flex:none;min-width:0;max-width:40%"><img src="${ln(t.src)}" alt="${ln(t.alt)}" style="height:32px;width:auto;max-width:160px;object-fit:contain"/>${r}</span><span style="flex:none;width:1px;height:24px;background:#e5e7eb"></span><span style="flex:1;min-width:0;font-size:14px;font-weight:500;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">${nu(o.title)}</span></header>`:"";return`<!doctype html><html lang="en" data-superglue-artifact-wrapper="${na.PORTABLE_HTML_ARTIFACT_VERSION}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="referrer" content="no-referrer"><meta name="superglue-artifact-wrapper" content="${na.PORTABLE_HTML_ARTIFACT_VERSION}"><meta name="superglue-artifact-id" content="${ln(o.id)}"><meta name="superglue-artifact-content-hash" content="${ln(o.contentHash)}"><meta http-equiv="Content-Security-Policy" content="${Kle}"><title>${nu(o.title)}</title><style>html,body{width:100%;height:100%;margin:0;overflow:hidden;background:#f6f6f6}body{display:flex;flex-direction:column}iframe{display:block;flex:1;width:100%;border:0;background:#fff}</style></head><body>${n}<iframe title="${ln(o.title)}" srcdoc="${ln(o.html)}" sandbox="allow-scripts" allow="${ln(na.HTML_ARTIFACT_PERMISSIONS_POLICY)}" referrerpolicy="no-referrer"></iframe>${i}</body></html>`}});var $8=f(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});zh.HTML_ARTIFACT_BRIDGE_SOURCE=void 0;zh.HTML_ARTIFACT_BRIDGE_SOURCE=String.raw`(() => {
159
+ <p style="margin:0;font-size:13px;line-height:1.5;color:#8a8a8a;text-align:center;">You receive this because you created the magic link. Answers can still change after submission; the submitted version stays available on the artifact page.</p>`})}});var F8=f(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.HTML_ARTIFACT_PERMISSIONS_POLICY=na.PORTABLE_HTML_ARTIFACT_VERSION=void 0;na.escapeText=nu;na.escapeAttribute=ln;na.buildPortableHtmlArtifactDocument=Xle;var Wle=Pa();na.PORTABLE_HTML_ARTIFACT_VERSION=2;var Zle=["accelerometer","all-screens-capture","ambient-light-sensor","attribution-reporting","autoplay","battery","bluetooth","browsing-topics","camera","captured-surface-control","clipboard-read","clipboard-write","compute-pressure","deferred-fetch","digital-credentials-create","digital-credentials-get","direct-sockets","display-capture","encrypted-media","execution-while-not-rendered","execution-while-out-of-viewport","focus-without-user-activation","fullscreen","gamepad","geolocation","gyroscope","hid","identity-credentials-get","idle-detection","join-ad-interest-group","keyboard-map","language-detector","language-model","local-fonts","magnetometer","microphone","midi","navigation-override","otp-credentials","payment","picture-in-picture","publickey-credentials-get","run-ad-auction","screen-wake-lock","serial","smart-card","speaker-selection","storage-access","sync-xhr","tools","translator","usb","web-share","window-management","xr-spatial-tracking"];na.HTML_ARTIFACT_PERMISSIONS_POLICY=Zle.map(o=>`${o} 'none'`).join("; ");var Kle=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","frame-src 'self'","child-src 'self'","base-uri 'none'","form-action 'none'"].join("; ");function nu(o){return o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ln(o){return nu(o).replace(/"/g,"&quot;")}function Xle({artifact:o,initialData:e={},branding:t}){let i=`<script>(()=>{const frame=document.querySelector("iframe");const data=${(0,Wle.safeStringify)(e,0).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")};window.addEventListener("message",event=>{if(event.source===frame.contentWindow&&event.data&&event.data.source==="superglue-artifact"&&event.data.type==="ready"){frame.contentWindow.postMessage({source:"superglue-artifact-host",type:"init",data},"*")}})})();</script>`,r=t?.name?`<span style="font-size:14px;font-weight:600;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">${nu(t.name)}</span>`:"",n=t?`<header style="flex:none;display:flex;align-items:center;gap:16px;min-height:64px;padding:0 20px;background:#fff;border-bottom:1px solid #e5e7eb;font-family:system-ui,sans-serif"><span style="display:flex;align-items:center;gap:10px;flex:none;min-width:0;max-width:40%"><img src="${ln(t.src)}" alt="${ln(t.alt)}" style="height:32px;width:auto;max-width:160px;object-fit:contain"/>${r}</span><span style="flex:none;width:1px;height:24px;background:#e5e7eb"></span><span style="flex:1;min-width:0;font-size:14px;font-weight:500;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">${nu(o.title)}</span></header>`:"";return`<!doctype html><html lang="en" data-superglue-artifact-wrapper="${na.PORTABLE_HTML_ARTIFACT_VERSION}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="referrer" content="no-referrer"><meta name="superglue-artifact-wrapper" content="${na.PORTABLE_HTML_ARTIFACT_VERSION}"><meta name="superglue-artifact-id" content="${ln(o.id)}"><meta name="superglue-artifact-content-hash" content="${ln(o.contentHash)}"><meta http-equiv="Content-Security-Policy" content="${Kle}"><title>${nu(o.title)}</title><style>html,body{width:100%;height:100%;margin:0;overflow:hidden;background:#f6f6f6}body{display:flex;flex-direction:column}iframe{display:block;flex:1;width:100%;border:0;background:#fff}</style></head><body>${n}<iframe title="${ln(o.title)}" srcdoc="${ln(o.html)}" sandbox="allow-scripts allow-popups allow-popups-to-escape-sandbox" allow="${ln(na.HTML_ARTIFACT_PERMISSIONS_POLICY)}" referrerpolicy="no-referrer"></iframe>${i}</body></html>`}});var $8=f(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});zh.HTML_ARTIFACT_BRIDGE_SOURCE=void 0;zh.HTML_ARTIFACT_BRIDGE_SOURCE=String.raw`(() => {
160
160
  const HOST_SOURCE = "superglue-artifact-host";
161
161
  const ARTIFACT_SOURCE = "superglue-artifact";
162
162
  const FIELD_SELECTOR = "input[name],select[name],textarea[name]";
@@ -486,6 +486,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
486
486
  }, true);
487
487
 
488
488
  document.addEventListener("click", (event) => {
489
+ const anchor = event.target instanceof Element ? event.target.closest('a[href^="#"]') : null;
490
+ if (anchor) {
491
+ event.preventDefault();
492
+ let id = anchor.getAttribute("href").slice(1);
493
+ try {
494
+ id = decodeURIComponent(id);
495
+ } catch {}
496
+ const destination = id ? document.getElementById(id) : null;
497
+ if (!destination) {
498
+ if (!id) window.scrollTo({ top: 0, behavior: "smooth" });
499
+ return;
500
+ }
501
+ const page = destination.closest(PAGE_SELECTOR);
502
+ if (page && page.hidden) navigate("go-to", page.getAttribute("data-sg-page"));
503
+ destination.scrollIntoView({ behavior: "smooth", block: "start" });
504
+ return;
505
+ }
489
506
  const target = event.target instanceof Element ? event.target.closest("[data-sg-action]") : null;
490
507
  if (!target) return;
491
508
  const action = target.getAttribute("data-sg-action") || "";
@@ -1690,7 +1707,7 @@ ${r}`;break;case"retry":qN(r)&&(t[i]=r);break;case"id":EN(r)&&(t[i]=r);break;cas
1690
1707
  `);o.stack=t?`${t}
1691
1708
  ${r}`:i.stack}G.exports.fetch=function(e,t=void 0){return BIe(e,t).catch(a=>{throw NN?LN(a,NN):a&&typeof a=="object"&&Error.captureStackTrace(a,G.exports.fetch),a})};G.exports.Headers=$s().Headers;G.exports.Response=md().Response;G.exports.Request=xm().Request;G.exports.FormData=mf().FormData;var{setGlobalOrigin:QIe,getGlobalOrigin:_Ie}=tx();G.exports.setGlobalOrigin=QIe;G.exports.getGlobalOrigin=_Ie;var{CacheStorage:DIe}=xR(),{kConstruct:TIe}=Me();G.exports.caches=new DIe(TIe);var{deleteCookie:RIe,getCookies:NIe,getSetCookies:OIe,setCookie:UIe,parseCookie:MIe}=TR();G.exports.deleteCookie=RIe;G.exports.getCookies=NIe;G.exports.getSetCookies=OIe;G.exports.setCookie=UIe;G.exports.parseCookie=MIe;var{parseMIMEType:LIe,serializeAMimeType:PIe}=ca();G.exports.parseMIMEType=LIe;G.exports.serializeAMimeType=PIe;var{CloseEvent:FIe,ErrorEvent:$Ie,MessageEvent:HIe}=jb(),{WebSocket:GIe,ping:VIe}=pN();G.exports.WebSocket=GIe;G.exports.CloseEvent=FIe;G.exports.ErrorEvent=$Ie;G.exports.MessageEvent=HIe;G.exports.ping=VIe;G.exports.WebSocketStream=wN().WebSocketStream;G.exports.WebSocketError=Qq().WebSocketError;G.exports.request=vd(Dm.request);G.exports.stream=vd(Dm.stream);G.exports.pipeline=vd(Dm.pipeline);G.exports.connect=vd(Dm.connect);G.exports.upgrade=vd(Dm.upgrade);G.exports.MockClient=kIe;G.exports.MockCallHistory=AIe;G.exports.MockCallHistoryLog=vIe;G.exports.MockPool=xIe;G.exports.MockAgent=wIe;G.exports.SnapshotAgent=zIe;G.exports.mockErrors=qIe;var{EventSource:YIe}=RN();G.exports.EventSource=YIe;function JIe(){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=JIe});var $N=f(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.SuperglueClient=Rm.SuperglueHttpError=void 0;var Tm=$t(),Ur=zv(),WIe=Kv(),ZIe=o3(),KIe=Pa(),Mr=xc(),XIe=Pg(),xd=14400*1e3,wd;if(typeof globalThis.process<"u"&&globalThis.process.versions?.node)try{let{Agent:o}=PN();wd=new o({headersTimeout:xd,bodyTimeout:xd})}catch{}function FN(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 Oq=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 WIe.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;FN(t);let r=await this.refreshToken();return FN(t),!r||r===a?i:(i.body?.cancel(),e(r))}isInfrastructureError(e){return(0,KIe.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(xd),...wd?{dispatcher:wd}:{}})},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(xd,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(xd),...wd?{dispatcher:wd}:{}}),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,ZIe.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,Mr.toUTCISOString)(c,"run.startedAt"),completedAt:(0,Mr.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,Mr.requireUTCDate)(e.lastRunAt,"schedule.lastRunAt"):void 0,nextRunAt:(0,Mr.requireUTCDate)(e.nextRunAt,"schedule.nextRunAt"),createdAt:(0,Mr.requireUTCDate)(e.createdAt,"schedule.createdAt"),updatedAt:(0,Mr.requireUTCDate)(e.updatedAt,"schedule.updatedAt")}}async listRuns(e={}){let t=(0,Ur.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,Mr.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,Mr.toUTCISOString)(e.from,"activity.from"):e.from),e?.to&&t.set("to",e.to instanceof Date?(0,Mr.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,Ur.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,Ur.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,Ur.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,Ur.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,XIe.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,Ur.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,Ur.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,Ur.createListQueryParams)(e),a=t.size>0?`?${t.toString()}`:"";return this.restRequest("GET",`/v1/systems${a}`)}async listAllSystems(e={}){return(0,Ur.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=Oq});var GN=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=e2e;ao.parseJSON=o2e;ao.isValidJson=t2e;ao.prettyPrintJson=a2e;ao.minifyJson=i2e;var Ta=class{validate(e){try{return JSON.parse(e),!0}catch{return!1}}};ao.RepairStrategy=Ta;var Fb=class extends Ta{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 Ta{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 Ta{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 Ta{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 Ta{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 Ta{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 Uq=class extends Ta{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`
1692
1709
  `: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}},Mq=class extends Ta{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 Uq,new Mq,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 HN=new Nm;function e2e(o,e){return(e?new Nm(e):HN).parse(o)}function o2e(o){let e=HN.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 t2e(o){try{return JSON.parse(o),!0}catch{return!1}}function a2e(o,e=2){return JSON.stringify(o,null,e)}function i2e(o){let t=new Nm().parse(o);if(t.success)return JSON.stringify(t.data);throw new Error("Cannot minify invalid JSON")}});var Lt=f(oe=>{"use strict";var r2e=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)&&r2e(e,o,t)};Object.defineProperty(oe,"__esModule",{value:!0});oe.SSELogSubscriptionManager=oe.SuperglueHttpError=oe.SuperglueClient=void 0;he(DC(),oe);he($C(),oe);he(c8(),oe);he(g8(),oe);he(b8(),oe);he(ru(),oe);he(N8(),oe);he(O8(),oe);he(U8(),oe);he(M8(),oe);he(zv(),oe);he(P8(),oe);he(F8(),oe);he($8(),oe);he(Iv(),oe);he(G8(),oe);he(Y8(),oe);he(J8(),oe);he(Z8(),oe);he(Ld(),oe);he(X8(),oe);he(eQ(),oe);he(tQ(),oe);he(rQ(),oe);he(nQ(),oe);he(dQ(),oe);he(pQ(),oe);he(fQ(),oe);he(bQ(),oe);he(jQ(),oe);he(SQ(),oe);he(Pv(),oe);he(PQ(),oe);he(Jv(),oe);he(GQ(),oe);he(WQ(),oe);he(KQ(),oe);he($t(),oe);he(Pa(),oe);he(XQ(),oe);he(e3(),oe);he(jh(),oe);he(xc(),oe);he(Pg(),oe);var VN=$N();Object.defineProperty(oe,"SuperglueClient",{enumerable:!0,get:function(){return VN.SuperglueClient}});Object.defineProperty(oe,"SuperglueHttpError",{enumerable:!0,get:function(){return VN.SuperglueHttpError}});var n2e=Kv();Object.defineProperty(oe,"SSELogSubscriptionManager",{enumerable:!0,get:function(){return n2e.SSELogSubscriptionManager}});he(GN(),oe)});var Cy=require("commander");var yt=pe(require("fs")),WN=pe(require("os")),Lr=pe(require("path")),zd=pe(Lt()),YN=new Set(["runner","builder","admin"]),JN={output:{mode:"stdout",directory:".superglue/output"},preset:"admin"};function Pr(o){let e=Lr.join(process.cwd(),".superglue"),t=WN.homedir();if(!t)return e;let a=Lr.join(t,".superglue");return o===!0?e:o===!1?a:yt.existsSync(Lr.join(e,"config.json"))?e:a}function Lq(o){return Lr.join(Pr(o),"config.json")}function Jb(o){let e=Lq(o);if(!yt.existsSync(e))return{};try{return JSON.parse(yt.readFileSync(e,"utf-8"))}catch{return{}}}function Om(o){let e=Jb(),t=o.apiKey||(0,zd.readProcessEnvironmentValue)("SUPERGLUE_API_KEY")||e.apiKey||"",a=o.endpoint||(0,zd.readProcessEnvironmentValue)("SUPERGLUE_API_ENDPOINT")||e.endpoint||"https://api.superglue.cloud",i=(0,zd.readProcessEnvironmentValue)("SUPERGLUE_WEB_ENDPOINT")||e.webEndpoint||a.replace(/:3002\b/,":3001").replace(/api\.superglue/,"app.superglue"),r=(0,zd.readProcessEnvironmentValue)("SUPERGLUE_CLI_PRESET"),n=r&&YN.has(r)?r:e.preset&&YN.has(e.preset)?e.preset:"admin";return{...JN,...e,apiKey:t,endpoint:a,webEndpoint:i,preset:n,output:{...JN.output,...e.output}}}function Wb(o,e){let t=Pr(e);yt.existsSync(t)||yt.mkdirSync(t,{recursive:!0}),yt.writeFileSync(Lr.join(t,"config.json"),JSON.stringify(o,null,2)+`
1693
- `,{mode:384})}function Zb(o,e){let t=Lr.join(Pr(e),"drafts");if(yt.existsSync(t)||yt.mkdirSync(t,{recursive:!0}),o.output.mode==="stdout+file"){let a=Lr.resolve(o.output.directory);yt.existsSync(a)||yt.mkdirSync(a,{recursive:!0})}}var Yq=pe(Lt());var Pq=pe(require("readline"));var XN=require("child_process"),eO=require("util");var ZN={name:"@superglue/cli",version:"1.1.117",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 c2e=(0,eO.promisify)(XN.exec),it=ZN.version;function KN(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=KN(t[r]||"0"),s=KN(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 oO(){me()&&(Kb=ey())}async function tO(){if(!(!me()||!Kb)){try{let o=new Promise(t=>{setTimeout(()=>t(null),2e3).unref()}),e=await Promise.race([Kb,o]);e&&Xb(it,e)<0&&(console.error(""),console.error(`${b.cyan}${b.bold} Update available: ${it} \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 aO(){let o=await ey();if(!o)return{success:!1,message:"Could not fetch latest version from npm"};if(Xb(it,o)>=0)return{success:!0,message:`Already on latest version (${it})`};try{return await c2e("npm install -g @superglue/cli@latest"),{success:!0,message:`Updated from ${it} 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,ba=()=>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 iO(o,e){let t=e||o;return`\x1B]8;;${o}\x07${b.underline}${b.cyan}${t}${b.reset}\x1B]8;;\x07`}function rO(){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${it}${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 nO(o){me()&&console.log(` ${b.yellow}\u26A0${b.reset} ${o}`)}function Yo(o){me()&&console.log(` ${b.dim}${o}${b.reset}`)}function Fr(o){me()&&(console.log(`
1710
+ `,{mode:384})}function Zb(o,e){let t=Lr.join(Pr(e),"drafts");if(yt.existsSync(t)||yt.mkdirSync(t,{recursive:!0}),o.output.mode==="stdout+file"){let a=Lr.resolve(o.output.directory);yt.existsSync(a)||yt.mkdirSync(a,{recursive:!0})}}var Yq=pe(Lt());var Pq=pe(require("readline"));var XN=require("child_process"),eO=require("util");var ZN={name:"@superglue/cli",version:"1.1.118",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 c2e=(0,eO.promisify)(XN.exec),it=ZN.version;function KN(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=KN(t[r]||"0"),s=KN(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 oO(){me()&&(Kb=ey())}async function tO(){if(!(!me()||!Kb)){try{let o=new Promise(t=>{setTimeout(()=>t(null),2e3).unref()}),e=await Promise.race([Kb,o]);e&&Xb(it,e)<0&&(console.error(""),console.error(`${b.cyan}${b.bold} Update available: ${it} \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 aO(){let o=await ey();if(!o)return{success:!1,message:"Could not fetch latest version from npm"};if(Xb(it,o)>=0)return{success:!0,message:`Already on latest version (${it})`};try{return await c2e("npm install -g @superglue/cli@latest"),{success:!0,message:`Updated from ${it} 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,ba=()=>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 iO(o,e){let t=e||o;return`\x1B]8;;${o}\x07${b.underline}${b.cyan}${t}${b.reset}\x1B]8;;\x07`}function rO(){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${it}${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 nO(o){me()&&console.log(` ${b.yellow}\u26A0${b.reset} ${o}`)}function Yo(o){me()&&console.log(` ${b.dim}${o}${b.reset}`)}function Fr(o){me()&&(console.log(`
1694
1711
  ${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(`
1695
1712
  ${b.dim}0 results${b.reset}
1696
1713
  `);return}let a=e||Object.keys(o[0]),i=ba()?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(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superglue/cli",
3
- "version": "1.1.117",
3
+ "version": "1.1.118",
4
4
  "bin": {
5
5
  "sg": "./dist/cli.js"
6
6
  },