'use strict'; !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0aaaa9ed-b8ab-54a8-a93f-99e3edf4e7af")}catch(e){}}(); var chunkLAQIPRAO_js = require('./chunk-LAQIPRAO.js'); var chunkO2POOKSN_js = require('./chunk-O2POOKSN.js'); var chunkIM5VGDJQ_js = require('./chunk-IM5VGDJQ.js'); var chunkLTE3MQL2_js = require('./chunk-LTE3MQL2.js'); var chunkHZVCNUTP_js = require('./chunk-HZVCNUTP.js'); var chunkF6FLWRPJ_js = require('./chunk-F6FLWRPJ.js'); var chunkTKGT252T_js = require('./chunk-TKGT252T.js'); var perf_hooks = require('perf_hooks'); var ux = require('path'); var Doe = require('util'); var fs$1 = require('fs'); var R$ = require('child_process'); var wi = require('os'); var readline = require('readline'); var worker_threads = require('worker_threads'); var j1 = require('http'); var Rot = require('https'); var xf = require('stream'); var Hg = require('zlib'); var nc = require('net'); var OF = require('tls'); var Yot = require('module'); var PTe = require('dns'); var buffer = require('buffer'); var url = require('url'); var crypto = require('crypto'); var promises = require('fs/promises'); var ON = require('process'); require('timers/promises'); var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null; function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; } function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n.default = e; return Object.freeze(n); } var ux__namespace = /*#__PURE__*/_interopNamespace(ux); var Doe__namespace = /*#__PURE__*/_interopNamespace(Doe); var R$__default = /*#__PURE__*/_interopDefault(R$); var wi__namespace = /*#__PURE__*/_interopNamespace(wi); var j1__namespace = /*#__PURE__*/_interopNamespace(j1); var Rot__namespace = /*#__PURE__*/_interopNamespace(Rot); var xf__default = /*#__PURE__*/_interopDefault(xf); var Hg__default = /*#__PURE__*/_interopDefault(Hg); var nc__namespace = /*#__PURE__*/_interopNamespace(nc); var OF__namespace = /*#__PURE__*/_interopNamespace(OF); var Yot__default = /*#__PURE__*/_interopDefault(Yot); var PTe__default = /*#__PURE__*/_interopDefault(PTe); var ON__default = /*#__PURE__*/_interopDefault(ON); var KY=chunkTKGT252T_js.c((CLr,$Y)=>{var GY=Symbol("@@any-observable/REGISTRATION"),Nu;$Y.exports=(e,t)=>(r,n={})=>{let i=n.global!==!1;if(i&&!Nu&&(Nu=e[GY]),Nu&&r&&Nu.implementation!==r)throw new Error(`any-observable already defined as \`${Nu.implementation}\`. You can only register an implementation before the first call to \`require('any-observable')\` and an implementation cannot be changed`);return Nu||(r&&n.Observable?Nu={Observable:n.Observable,implementation:r}:Nu=t(r),i&&(e[GY]=Nu)),Nu};});var JR=chunkTKGT252T_js.c((wLr,WY)=>{WY.exports=KY()(global,YY);function YY(e){let t;if(e==="global.Observable")t={Observable:global.Observable,implementation:"global.Observable"};else if(e){let r=chunkTKGT252T_js.a(e);t={Observable:r.Observable||r.default||r,implementation:e};}else t=uVe();if(!t)throw new Error("Cannot find any-observable implementation nor `global.Observable`. You must install polyfill or call `require('any-observable/register') with your preferred implementation, for example, `require('any-observable/register')('rxjs')` on app load prior to any `require('any-observable').");return t}function uVe(){let e=["rxjs","zen-observable"];for(let t of e)try{return YY(t)}catch{}}});var ZY=chunkTKGT252T_js.c(Wx=>{Object.defineProperty(Wx,"__esModule",{value:!0});Wx.Observable=void 0;function tM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XY(e,t){for(var r=0;r1,a=!1,o=arguments[1],u=o;return new i(function(l){return n.subscribe({next:function(c){var p=!a;if(a=!0,!p||s)try{u=r(u,c);}catch(h){return l.error(h)}else u=c;},error:function(c){l.error(c);},complete:function(){if(!a&&!s)return l.error(new TypeError("Cannot reduce an empty sequence"));l.next(u),l.complete();}})})}},{key:"concat",value:function(){for(var r=this,n=arguments.length,i=new Array(n),s=0;s=0&&a.splice(p,1),u();}});a.push(c);},error:function(l){s.error(l);},complete:function(){u();}});function u(){o.closed&&a.length===0&&s.complete();}return function(){a.forEach(function(l){return l.unsubscribe()}),o.unsubscribe();}})}},{key:ZR,value:function(){return this}}],[{key:"from",value:function(r){var n=typeof this=="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var i=Kx(r,ZR);if(i){var s=i.call(r);if(Object(s)!==s)throw new TypeError(s+" is not an object");return cVe(s)&&s.constructor===n?s:new n(function(a){return s.subscribe(a)})}if(iM("iterator")&&(i=Kx(r,lVe),i))return new n(function(a){$x(function(){if(!a.closed){var o=!0,u=!1,l=void 0;try{for(var c=i.call(r)[Symbol.iterator](),p;!(o=(p=c.next()).done);o=!0){var h=p.value;if(a.next(h),a.closed)return}}catch(f){u=!0,l=f;}finally{try{!o&&c.return!=null&&c.return();}finally{if(u)throw l}}a.complete();}});});if(Array.isArray(r))return new n(function(a){$x(function(){if(!a.closed){for(var o=0;o{eW.exports=ZY().Observable;});var LW,kW=chunkTKGT252T_js.b(()=>{LW=typeof globalThis=="object"?globalThis:global;});var FW=chunkTKGT252T_js.b(()=>{kW();});var BW=chunkTKGT252T_js.b(()=>{FW();});var jl,KM=chunkTKGT252T_js.b(()=>{jl="1.9.0";});function XVe(e){var t=new Set([e]),r=new Set,n=e.match(jW);if(!n)return function(){return !1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return function(u){return u===e};function s(o){return r.add(o),!1}function a(o){return t.add(o),!0}return function(u){if(t.has(u))return !0;if(r.has(u))return !1;var l=u.match(jW);if(!l)return s(u);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||i.major!==c.major?s(u):i.major===0?i.minor===c.minor&&i.patch<=c.patch?a(u):s(u):i.minor<=c.minor?a(u):s(u)}}var jW,UW,qW=chunkTKGT252T_js.b(()=>{KM();jW=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;UW=XVe(jl);});function ju(e,t,r,n){var i;n===void 0&&(n=!1);var s=gE[yE]=(i=gE[yE])!==null&&i!==void 0?i:{version:jl};if(!n&&s[e]){var a=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(a.stack||a.message),!1}if(s.version!==jl){var a=new Error("@opentelemetry/api: Registration of version v"+s.version+" for "+e+" does not match previously registered API v"+jl);return r.error(a.stack||a.message),!1}return s[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+jl+"."),!0}function Ia(e){var t,r,n=(t=gE[yE])===null||t===void 0?void 0:t.version;if(!(!n||!UW(n)))return (r=gE[yE])===null||r===void 0?void 0:r[e]}function Uu(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+jl+".");var r=gE[yE];r&&delete r[e];}var zVe,yE,gE,Nh=chunkTKGT252T_js.b(()=>{BW();KM();qW();zVe=jl.split(".")[0],yE=Symbol.for("opentelemetry.js.api."+zVe),gE=LW;});function SE(e,t,r){var n=Ia("diag");if(n)return r.unshift(t),n[e].apply(n,QVe([],JVe(r),!1))}var JVe,QVe,VW,HW=chunkTKGT252T_js.b(()=>{Nh();JVe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s},QVe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n{(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL";})(ln||(ln={}));});function GW(e,t){eln.ALL&&(e=ln.ALL),t=t||{};function r(n,i){var s=t[n];return typeof s=="function"&&e>=i?s.bind(t):function(){}}return {error:r("error",ln.ERROR),warn:r("warn",ln.WARN),info:r("info",ln.INFO),debug:r("debug",ln.DEBUG),verbose:r("verbose",ln.VERBOSE)}}var $W=chunkTKGT252T_js.b(()=>{gA();});var ZVe,e7e,t7e,ls,Rh=chunkTKGT252T_js.b(()=>{HW();$W();gA();Nh();ZVe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s},e7e=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n";c.warn("Current logger will be overwritten from "+h),p.warn("Current logger will overwrite one already registered from "+h);}return ju("diag",p,r,!0)};r.setLogger=n,r.disable=function(){Uu(t7e,r);},r.createComponentLogger=function(i){return new VW(i)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error");}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}();});var r7e,n7e,KW,YW=chunkTKGT252T_js.b(()=>{r7e=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s},n7e=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},KW=function(){function e(t){this._entries=t?new Map(t):new Map;}return e.prototype.getEntry=function(t){var r=this._entries.get(t);if(r)return Object.assign({},r)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var r=r7e(t,2),n=r[0],i=r[1];return [n,i]})},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t,r,n=[],i=0;i{WW=Symbol("BaggageEntryMetadata");});function zW(e){return e===void 0&&(e={}),new KW(new Map(Object.entries(e)))}function SA(e){return typeof e!="string"&&(i7e.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:WW,toString:function(){return e}}}var i7e,YM=chunkTKGT252T_js.b(()=>{Rh();YW();XW();i7e=ls.instance();});function xs(e){return Symbol.for(e)}var s7e,Qm,TE=chunkTKGT252T_js.b(()=>{s7e=function(){function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,i){var s=new e(r._currentContext);return s._currentContext.set(n,i),s},r.deleteValue=function(n){var i=new e(r._currentContext);return i._currentContext.delete(n),i};}return e}(),Qm=new s7e;});var WM,JW,QW=chunkTKGT252T_js.b(()=>{WM=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],JW=function(){function e(){function t(n){return function(){for(var i=[],s=0;s{Mh=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i;}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s]);},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t;}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n);}}(),a7e=function(){function e(){}return e.prototype.createGauge=function(t,r){return m7e},e.prototype.createHistogram=function(t,r){return y7e},e.prototype.createCounter=function(t,r){return d7e},e.prototype.createUpDownCounter=function(t,r){return g7e},e.prototype.createObservableGauge=function(t,r){return T7e},e.prototype.createObservableCounter=function(t,r){return S7e},e.prototype.createObservableUpDownCounter=function(t,r){return E7e},e.prototype.addBatchObservableCallback=function(t,r){},e.prototype.removeBatchObservableCallback=function(t){},e}(),TA=function(){function e(){}return e}(),o7e=function(e){Mh(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(TA),u7e=function(e){Mh(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(TA),l7e=function(e){Mh(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(TA),c7e=function(e){Mh(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(TA),XM=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),p7e=function(e){Mh(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(XM),f7e=function(e){Mh(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(XM),h7e=function(e){Mh(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(XM),zM=new a7e,d7e=new o7e,m7e=new l7e,y7e=new c7e,g7e=new u7e,S7e=new p7e,T7e=new f7e,E7e=new h7e;});var EA,eX=chunkTKGT252T_js.b(()=>{(function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE";})(EA||(EA={}));});var bA,vA,QM=chunkTKGT252T_js.b(()=>{bA={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},vA={set:function(e,t,r){e!=null&&(e[t]=r);}};});var b7e,v7e,tX,rX=chunkTKGT252T_js.b(()=>{TE();b7e=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s},v7e=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n{rX();Nh();Rh();_7e=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s},x7e=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n{(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED";})(hn||(hn={}));});var Lh,kh,Zm,_A=chunkTKGT252T_js.b(()=>{eL();Lh="0000000000000000",kh="00000000000000000000000000000000",Zm={traceId:kh,spanId:Lh,traceFlags:hn.NONE};});var wp,xA=chunkTKGT252T_js.b(()=>{_A();wp=function(){function e(t){t===void 0&&(t=Zm),this._spanContext=t;}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,r){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return !1},e.prototype.recordException=function(t,r){},e}();});function AA(e){return e.getValue(tL)||void 0}function nX(){return AA(Cp.getInstance().active())}function bE(e,t){return e.setValue(tL,t)}function iX(e){return e.deleteValue(tL)}function sX(e,t){return bE(e,new wp(t))}function PA(e){var t;return (t=AA(e))===null||t===void 0?void 0:t.spanContext()}var tL,rL=chunkTKGT252T_js.b(()=>{TE();xA();EE();tL=xs("OpenTelemetry Context Key SPAN");});function Fh(e){return P7e.test(e)&&e!==kh}function nL(e){return C7e.test(e)&&e!==Lh}function oa(e){return Fh(e.traceId)&&nL(e.spanId)}function aX(e){return new wp(e)}var P7e,C7e,CA=chunkTKGT252T_js.b(()=>{_A();xA();P7e=/^([0-9a-f]{32})$/i,C7e=/^[0-9a-f]{16}$/i;});function w7e(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var iL,wA,sL=chunkTKGT252T_js.b(()=>{EE();rL();xA();CA();iL=Cp.getInstance(),wA=function(){function e(){}return e.prototype.startSpan=function(t,r,n){n===void 0&&(n=iL.active());var i=!!(r!=null&&r.root);if(i)return new wp;var s=n&&PA(n);return w7e(s)&&oa(s)?new wp(s):new wp},e.prototype.startActiveSpan=function(t,r,n,i){var s,a,o;if(!(arguments.length<2)){arguments.length===2?o=r:arguments.length===3?(s=r,o=n):(s=r,a=n,o=i);var u=a??iL.active(),l=this.startSpan(t,s,u),c=bE(u,l);return iL.with(c,o,void 0,l)}},e}();});var I7e,IA,aL=chunkTKGT252T_js.b(()=>{sL();I7e=new wA,IA=function(){function e(t,r,n,i){this._provider=t,this.name=r,this.version=n,this.options=i;}return e.prototype.startSpan=function(t,r,n){return this._getTracer().startSpan(t,r,n)},e.prototype.startActiveSpan=function(t,r,n,i){var s=this._getTracer();return Reflect.apply(s.startActiveSpan,s,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):I7e},e}();});var oX,uX=chunkTKGT252T_js.b(()=>{sL();oX=function(){function e(){}return e.prototype.getTracer=function(t,r,n){return new wA},e}();});var O7e,vE,oL=chunkTKGT252T_js.b(()=>{aL();uX();O7e=new oX,vE=function(){function e(){}return e.prototype.getTracer=function(t,r,n){var i;return (i=this.getDelegateTracer(t,r,n))!==null&&i!==void 0?i:new IA(this,t,r,n)},e.prototype.getDelegate=function(){var t;return (t=this._delegate)!==null&&t!==void 0?t:O7e},e.prototype.setDelegate=function(t){this._delegate=t;},e.prototype.getDelegateTracer=function(t,r,n){var i;return (i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,r,n)},e}();});var ua,lX=chunkTKGT252T_js.b(()=>{(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED";})(ua||(ua={}));});var cs,cX=chunkTKGT252T_js.b(()=>{(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER";})(cs||(cs={}));});var Qa,pX=chunkTKGT252T_js.b(()=>{(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR";})(Qa||(Qa={}));});function fX(e){return R7e.test(e)}function hX(e){return M7e.test(e)&&!L7e.test(e)}var uL,D7e,N7e,R7e,M7e,L7e,dX=chunkTKGT252T_js.b(()=>{uL="[_0-9a-z-*/]",D7e="[a-z]"+uL+"{0,255}",N7e="[a-z0-9]"+uL+"{0,240}@[a-z]"+uL+"{0,13}",R7e=new RegExp("^(?:"+D7e+"|"+N7e+")$"),M7e=/^[ -~]{0,255}[!-~]$/,L7e=/,|=/;});var mX,k7e,yX,gX,SX,TX=chunkTKGT252T_js.b(()=>{dX();mX=32,k7e=512,yX=",",gX="=",SX=function(){function e(t){this._internalState=new Map,t&&this._parse(t);}return e.prototype.set=function(t,r){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n},e.prototype.unset=function(t){var r=this._clone();return r._internalState.delete(t),r},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(r,n){return r.push(n+gX+t.get(n)),r},[]).join(yX)},e.prototype._parse=function(t){t.length>k7e||(this._internalState=t.split(yX).reverse().reduce(function(r,n){var i=n.trim(),s=i.indexOf(gX);if(s!==-1){var a=i.slice(0,s),o=i.slice(s+1,n.length);fX(a)&&hX(o)&&r.set(a,o);}return r},new Map),this._internalState.size>mX&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,mX))));},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}();});function EX(e){return new SX(e)}var bX=chunkTKGT252T_js.b(()=>{TX();});var gr,vX=chunkTKGT252T_js.b(()=>{EE();gr=Cp.getInstance();});var _t,_X=chunkTKGT252T_js.b(()=>{Rh();_t=ls.instance();});var F7e,xX,AX=chunkTKGT252T_js.b(()=>{JM();F7e=function(){function e(){}return e.prototype.getMeter=function(t,r,n){return zM},e}(),xX=new F7e;});var lL,PX,CX=chunkTKGT252T_js.b(()=>{AX();Nh();Rh();lL="metrics",PX=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return ju(lL,t,ls.instance())},e.prototype.getMeterProvider=function(){return Ia(lL)||xX},e.prototype.getMeter=function(t,r,n){return this.getMeterProvider().getMeter(t,r,n)},e.prototype.disable=function(){Uu(lL,ls.instance());},e}();});var Bh,wX=chunkTKGT252T_js.b(()=>{CX();Bh=PX.getInstance();});var IX,OX=chunkTKGT252T_js.b(()=>{IX=function(){function e(){}return e.prototype.inject=function(t,r){},e.prototype.extract=function(t,r){return t},e.prototype.fields=function(){return []},e}();});function pL(e){return e.getValue(cL)||void 0}function DX(){return pL(Cp.getInstance().active())}function NX(e,t){return e.setValue(cL,t)}function RX(e){return e.deleteValue(cL)}var cL,MX=chunkTKGT252T_js.b(()=>{EE();TE();cL=xs("OpenTelemetry Baggage Key");});var fL,B7e,LX,kX=chunkTKGT252T_js.b(()=>{Nh();OX();QM();MX();YM();Rh();fL="propagation",B7e=new IX,LX=function(){function e(){this.createBaggage=zW,this.getBaggage=pL,this.getActiveBaggage=DX,this.setBaggage=NX,this.deleteBaggage=RX;}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return ju(fL,t,ls.instance())},e.prototype.inject=function(t,r,n){return n===void 0&&(n=vA),this._getGlobalPropagator().inject(t,r,n)},e.prototype.extract=function(t,r,n){return n===void 0&&(n=bA),this._getGlobalPropagator().extract(t,r,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Uu(fL,ls.instance());},e.prototype._getGlobalPropagator=function(){return Ia(fL)||B7e},e}();});var As,FX=chunkTKGT252T_js.b(()=>{kX();As=LX.getInstance();});var hL,BX,jX=chunkTKGT252T_js.b(()=>{Nh();oL();CA();rL();Rh();hL="trace",BX=function(){function e(){this._proxyTracerProvider=new vE,this.wrapSpanContext=aX,this.isSpanContextValid=oa,this.deleteSpan=iX,this.getSpan=AA,this.getActiveSpan=nX,this.getSpanContext=PA,this.setSpan=bE,this.setSpanContext=sX;}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var r=ju(hL,this._proxyTracerProvider,ls.instance());return r&&this._proxyTracerProvider.setDelegate(t),r},e.prototype.getTracerProvider=function(){return Ia(hL)||this._proxyTracerProvider},e.prototype.getTracer=function(t,r){return this.getTracerProvider().getTracer(t,r)},e.prototype.disable=function(){Uu(hL,ls.instance()),this._proxyTracerProvider=new vE;},e}();});var qt,UX=chunkTKGT252T_js.b(()=>{jX();qt=BX.getInstance();});var Gr={};chunkTKGT252T_js.d(Gr,{DiagConsoleLogger:()=>JW,DiagLogLevel:()=>ln,INVALID_SPANID:()=>Lh,INVALID_SPAN_CONTEXT:()=>Zm,INVALID_TRACEID:()=>kh,ProxyTracer:()=>IA,ProxyTracerProvider:()=>vE,ROOT_CONTEXT:()=>Qm,SamplingDecision:()=>ua,SpanKind:()=>cs,SpanStatusCode:()=>Qa,TraceFlags:()=>hn,ValueType:()=>EA,baggageEntryMetadataFromString:()=>SA,context:()=>gr,createContextKey:()=>xs,createNoopMeter:()=>ZW,createTraceState:()=>EX,default:()=>j7e,defaultTextMapGetter:()=>bA,defaultTextMapSetter:()=>vA,diag:()=>_t,isSpanContextValid:()=>oa,isValidSpanId:()=>nL,isValidTraceId:()=>Fh,metrics:()=>Bh,propagation:()=>As,trace:()=>qt});var j7e,pt=chunkTKGT252T_js.b(()=>{YM();TE();QW();gA();JM();eX();QM();aL();oL();lX();cX();pX();eL();bX();CA();_A();vX();_X();wX();FX();UX();j7e={context:gr,diag:_t,metrics:Bh,propagation:As,trace:qt};});function zo(e){return e.setValue(dL,!0)}function qX(e){return e.deleteValue(dL)}function qu(e){return e.getValue(dL)===!0}var dL,_E=chunkTKGT252T_js.b(()=>{pt();dL=xs("OpenTelemetry SDK Context Key SUPPRESS_TRACING");});var VX,OA,ey,DA,HX,GX,$X,mL=chunkTKGT252T_js.b(()=>{VX="=",OA=";",ey=",",DA="baggage",HX=180,GX=4096,$X=8192;});function NA(e){return e.reduce(function(t,r){var n=""+t+(t!==""?ey:"")+r;return n.length>$X?t:n},"")}function RA(e){return e.getAllEntries().map(function(t){var r=U7e(t,2),n=r[0],i=r[1],s=encodeURIComponent(n)+"="+encodeURIComponent(i.value);return i.metadata!==void 0&&(s+=OA+i.metadata.toString()),s})}function xE(e){var t=e.split(OA);if(!(t.length<=0)){var r=t.shift();if(r){var n=r.indexOf(VX);if(!(n<=0)){var i=decodeURIComponent(r.substring(0,n).trim()),s=decodeURIComponent(r.substring(n+1).trim()),a;return t.length>0&&(a=SA(t.join(OA))),{key:i,value:s,metadata:a}}}}}function KX(e){return typeof e!="string"||e.length===0?{}:e.split(ey).map(function(t){return xE(t)}).filter(function(t){return t!==void 0&&t.value.length>0}).reduce(function(t,r){return t[r.key]=r.value,t},{})}var U7e,yL=chunkTKGT252T_js.b(()=>{pt();mL();U7e=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s};});var ty,YX=chunkTKGT252T_js.b(()=>{pt();_E();mL();yL();ty=function(){function e(){}return e.prototype.inject=function(t,r,n){var i=As.getBaggage(t);if(!(!i||qu(t))){var s=RA(i).filter(function(o){return o.length<=GX}).slice(0,HX),a=NA(s);a.length>0&&n.set(r,DA,a);}},e.prototype.extract=function(t,r,n){var i=n.get(r,DA),s=Array.isArray(i)?i.join(ey):i;if(!s)return t;var a={};if(s.length===0)return t;var o=s.split(ey);return o.forEach(function(u){var l=xE(u);if(l){var c={value:l.value};l.metadata&&(c.metadata=l.metadata),a[l.key]=c;}}),Object.entries(a).length===0?t:As.setBaggage(t,As.createBaggage(a))},e.prototype.fields=function(){return [DA]},e}();});var WX,XX=chunkTKGT252T_js.b(()=>{WX=function(){function e(t,r){this._monotonicClock=r,this._epochMillis=t.now(),this._performanceMillis=r.now();}return e.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},e}();});function Ip(e){var t,r,n={};if(typeof e!="object"||e==null)return n;try{for(var i=zX(Object.entries(e)),s=i.next();!s.done;s=i.next()){var a=q7e(s.value,2),o=a[0],u=a[1];if(!gL(o)){_t.warn("Invalid attribute key: "+o);continue}if(!AE(u)){_t.warn("Invalid attribute value set for key: "+o);continue}Array.isArray(u)?n[o]=u.slice():n[o]=u;}}catch(l){t={error:l};}finally{try{s&&!s.done&&(r=i.return)&&r.call(i);}finally{if(t)throw t.error}}return n}function gL(e){return typeof e=="string"&&e.length>0}function AE(e){return e==null?!0:Array.isArray(e)?V7e(e):JX(e)}function V7e(e){var t,r,n;try{for(var i=zX(e),s=i.next();!s.done;s=i.next()){var a=s.value;if(a!=null){if(!n){if(JX(a)){n=typeof a;continue}return !1}if(typeof a!==n)return !1}}}catch(o){t={error:o};}finally{try{s&&!s.done&&(r=i.return)&&r.call(i);}finally{if(t)throw t.error}}return !0}function JX(e){switch(typeof e){case"number":case"boolean":case"string":return !0}return !1}var zX,q7e,QX=chunkTKGT252T_js.b(()=>{pt();zX=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},q7e=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s};});function MA(){return function(e){_t.error(H7e(e));}}function H7e(e){return typeof e=="string"?e:JSON.stringify(G7e(e))}function G7e(e){for(var t={},r=e;r!==null;)Object.getOwnPropertyNames(r).forEach(function(n){if(!t[n]){var i=r[n];i&&(t[n]=String(i));}}),r=Object.getPrototypeOf(r);return t}var SL=chunkTKGT252T_js.b(()=>{pt();});function ez(e){ZX=e;}function Jo(e){try{ZX(e);}catch{}}var ZX,TL=chunkTKGT252T_js.b(()=>{SL();ZX=MA();});var la,EL=chunkTKGT252T_js.b(()=>{(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio";})(la||(la={}));});function Y7e(e){return K7e.indexOf(e)>-1}function X7e(e){return W7e.indexOf(e)>-1}function J7e(e){return z7e.indexOf(e)>-1}function Q7e(e,t,r){if(!(typeof r[e]>"u")){var n=String(r[e]);t[e]=n.toLowerCase()==="true";}}function Z7e(e,t,r,n,i){if(n===void 0&&(n=-1/0),i===void 0&&(i=1/0),typeof r[e]<"u"){var s=Number(r[e]);isNaN(s)||(si?t[e]=i:t[e]=s);}}function eHe(e,t,r,n){n===void 0&&(n=$7e);var i=r[e];typeof i=="string"&&(t[e]=i.split(n).map(function(s){return s.trim()}));}function rHe(e,t,r){var n=r[e];if(typeof n=="string"){var i=tHe[n.toUpperCase()];i!=null&&(t[e]=i);}}function CE(e){var t={};for(var r in PE){var n=r;switch(n){case"OTEL_LOG_LEVEL":rHe(n,t,e);break;default:if(Y7e(n))Q7e(n,t,e);else if(X7e(n))Z7e(n,t,e);else if(J7e(n))eHe(n,t,e);else {var i=e[n];typeof i<"u"&&i!==null&&(t[n]=String(i));}}}return t}var $7e,K7e,W7e,z7e,jh,Uh,bL,vL,PE,tHe,_L=chunkTKGT252T_js.b(()=>{pt();EL();$7e=",",K7e=["OTEL_SDK_DISABLED"];W7e=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];z7e=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];jh=1/0,Uh=128,bL=128,vL=128,PE={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:ln.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:jh,OTEL_ATTRIBUTE_COUNT_LIMIT:Uh,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:jh,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Uh,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:jh,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Uh,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:bL,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:vL,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:la.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};tHe={ALL:ln.ALL,VERBOSE:ln.VERBOSE,DEBUG:ln.DEBUG,INFO:ln.INFO,WARN:ln.WARN,ERROR:ln.ERROR,NONE:ln.NONE};});function Oa(){var e=CE(process.env);return Object.assign({},PE,e)}function ry(){return CE(process.env)}var tz=chunkTKGT252T_js.b(()=>{_L();});var LA,rz=chunkTKGT252T_js.b(()=>{LA=typeof globalThis=="object"?globalThis:global;});function nz(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function kA(e){for(var t=new Uint8Array(e.length/2),r=0,n=0;n{});function FA(e){return Buffer.from(kA(e)).toString("base64")}var iz=chunkTKGT252T_js.b(()=>{xL();});function sz(e){return function(){for(var r=0;r>>0,r*4);for(var r=0;r0);r++)r===e-1&&(BA[e-1]=1);return BA.toString("hex",0,e)}}var nHe,az,jA,BA,oz=chunkTKGT252T_js.b(()=>{nHe=8,az=16,jA=function(){function e(){this.generateTraceId=sz(az),this.generateSpanId=sz(nHe);}return e}(),BA=Buffer.allocUnsafe(az);});var Za,uz=chunkTKGT252T_js.b(()=>{Za=perf_hooks.performance;});var UA,AL=chunkTKGT252T_js.b(()=>{UA="1.26.0";});function ii(e){for(var t={},r=e.length,n=0;n{});var lz,cz,pz,fz,hz,dz,mz,yz,gz,Sz,Tz,Ez,bz,vz,_z,xz,Az,Pz,Cz,wz,Iz,Oz,Dz,Nz,Rz,Mz,Lz,kz,Fz,Bz,jz,Uz,qz,Vz,Hz,Gz,$z,Kz,Yz,Wz,Xz,zz,Jz,Qz,Zz,eJ,tJ,rJ,nJ,iJ,sJ,aJ,oJ,uJ,lJ,cJ,pJ,fJ,hJ,dJ,mJ,yJ,gJ,SJ,TJ,EJ,bJ,vJ,_J,xJ,AJ,PJ,CJ,wJ,IJ,OJ,DJ,NJ,RJ,MJ,LJ,kJ,FJ,BJ,jJ,UJ,qJ,VJ,HJ,GJ,$J,KJ,YJ,WJ,XJ,zJ,JJ,QJ,ZJ,eQ,tQ,rQ,nQ,iQ,sQ,aQ,oQ,uQ,lQ,cQ,pQ,fQ,hQ,dQ,mQ,yQ,gQ,SQ,TQ,EQ,bQ,vQ,_Q,xQ,AQ,PQ,CQ,wQ,sHe,CL,aHe,oHe,uHe,lHe,wL,cHe,pHe,fHe,hHe,dHe,mHe,yHe,gHe,SHe,THe,EHe,bHe,vHe,_He,wE,IE,IL,xHe,OL,AHe,PHe,CHe,wHe,IHe,OHe,DHe,NHe,RHe,MHe,LHe,kHe,FHe,BHe,jHe,UHe,qHe,VHe,HHe,GHe,$He,KHe,YHe,WHe,XHe,zHe,JHe,QHe,ZHe,eGe,tGe,rGe,nGe,iGe,OE,ny,DL,sGe,aGe,qA,oGe,uGe,lGe,cGe,pGe,fGe,hGe,dGe,mGe,yGe,gGe,SGe,TGe,EGe,bGe,vGe,_Ge,xGe,AGe,PGe,CGe,wGe,IGe,OGe,DGe,NGe,RGe,MGe,LGe,kGe,FGe,NL,BGe,jGe,UGe,qGe,VGe,HGe,GGe,$Ge,KGe,YGe,WGe,XGe,zGe,JGe,QGe,ZGe,e$e,t$e,r$e,RL,n$e,ML,i$e,s$e,a$e,o$e,u$e,l$e,c$e,p$e,f$e,IQ,OQ,DQ,NQ,RQ,MQ,LQ,kQ,FQ,BQ,jQ,UQ,qQ,VQ,HQ,GQ,$Q,KQ,YQ,WQ,XQ,zQ,JQ,QQ,ZQ,eZ,tZ,rZ,nZ,iZ,sZ,aZ,oZ,uZ,lZ,cZ,pZ,fZ,hZ,dZ,mZ,yZ,gZ,SZ,TZ,EZ,bZ,h$e,d$e,m$e,y$e,g$e,S$e,T$e,E$e,b$e,v$e,_$e,x$e,A$e,P$e,C$e,w$e,I$e,O$e,D$e,N$e,R$e,M$e,L$e,k$e,F$e,B$e,j$e,U$e,q$e,V$e,H$e,G$e,$$e,K$e,Y$e,W$e,X$e,z$e,J$e,Q$e,Z$e,eKe,tKe,rKe,nKe,iKe,sKe,aKe,vZ,_Z,xZ,AZ,PZ,CZ,wZ,IZ,OZ,DZ,NZ,oKe,uKe,lKe,cKe,pKe,fKe,hKe,dKe,mKe,yKe,gKe,SKe,RZ,MZ,LZ,kZ,FZ,TKe,EKe,bKe,vKe,_Ke,xKe,BZ,jZ,UZ,AKe,PKe,CKe,wKe,qZ,VZ,HZ,GZ,IKe,OKe,DKe,NKe,RKe,$Z,KZ,YZ,WZ,XZ,zZ,JZ,MKe,LKe,kKe,FKe,BKe,jKe,UKe,qKe,QZ,ZZ,eee,tee,ree,VKe,HKe,GKe,$Ke,KKe,YKe,nee,iee,see,aee,oee,uee,lee,cee,pee,fee,hee,dee,mee,yee,gee,See,Tee,Eee,bee,vee,_ee,WKe,XKe,zKe,JKe,QKe,ZKe,eYe,tYe,rYe,nYe,iYe,sYe,aYe,oYe,uYe,lYe,cYe,pYe,fYe,hYe,dYe,mYe,xee,Aee,Pee,Cee,wee,yYe,gYe,SYe,TYe,EYe,bYe,Iee,Oee,vYe,_Ye,xYe,Dee,Nee,AYe,PYe,CYe,Ree,Mee,Lee,kee,Fee,Bee,jee,Uee,qee,Vee,Hee,Gee,$ee,Kee,Yee,Wee,Xee,wYe,IYe,OYe,DYe,NYe,RYe,MYe,LYe,kYe,FYe,BYe,jYe,UYe,qYe,VYe,HYe,GYe,$Ye,zee,Jee,KYe,YYe,WYe,Qee=chunkTKGT252T_js.b(()=>{PL();lz="aws.lambda.invoked_arn",cz="db.system",pz="db.connection_string",fz="db.user",hz="db.jdbc.driver_classname",dz="db.name",mz="db.statement",yz="db.operation",gz="db.mssql.instance_name",Sz="db.cassandra.keyspace",Tz="db.cassandra.page_size",Ez="db.cassandra.consistency_level",bz="db.cassandra.table",vz="db.cassandra.idempotence",_z="db.cassandra.speculative_execution_count",xz="db.cassandra.coordinator.id",Az="db.cassandra.coordinator.dc",Pz="db.hbase.namespace",Cz="db.redis.database_index",wz="db.mongodb.collection",Iz="db.sql.table",Oz="exception.type",Dz="exception.message",Nz="exception.stacktrace",Rz="exception.escaped",Mz="faas.trigger",Lz="faas.execution",kz="faas.document.collection",Fz="faas.document.operation",Bz="faas.document.time",jz="faas.document.name",Uz="faas.time",qz="faas.cron",Vz="faas.coldstart",Hz="faas.invoked_name",Gz="faas.invoked_provider",$z="faas.invoked_region",Kz="net.transport",Yz="net.peer.ip",Wz="net.peer.port",Xz="net.peer.name",zz="net.host.ip",Jz="net.host.port",Qz="net.host.name",Zz="net.host.connection.type",eJ="net.host.connection.subtype",tJ="net.host.carrier.name",rJ="net.host.carrier.mcc",nJ="net.host.carrier.mnc",iJ="net.host.carrier.icc",sJ="peer.service",aJ="enduser.id",oJ="enduser.role",uJ="enduser.scope",lJ="thread.id",cJ="thread.name",pJ="code.function",fJ="code.namespace",hJ="code.filepath",dJ="code.lineno",mJ="http.method",yJ="http.url",gJ="http.target",SJ="http.host",TJ="http.scheme",EJ="http.status_code",bJ="http.flavor",vJ="http.user_agent",_J="http.request_content_length",xJ="http.request_content_length_uncompressed",AJ="http.response_content_length",PJ="http.response_content_length_uncompressed",CJ="http.server_name",wJ="http.route",IJ="http.client_ip",OJ="aws.dynamodb.table_names",DJ="aws.dynamodb.consumed_capacity",NJ="aws.dynamodb.item_collection_metrics",RJ="aws.dynamodb.provisioned_read_capacity",MJ="aws.dynamodb.provisioned_write_capacity",LJ="aws.dynamodb.consistent_read",kJ="aws.dynamodb.projection",FJ="aws.dynamodb.limit",BJ="aws.dynamodb.attributes_to_get",jJ="aws.dynamodb.index_name",UJ="aws.dynamodb.select",qJ="aws.dynamodb.global_secondary_indexes",VJ="aws.dynamodb.local_secondary_indexes",HJ="aws.dynamodb.exclusive_start_table",GJ="aws.dynamodb.table_count",$J="aws.dynamodb.scan_forward",KJ="aws.dynamodb.segment",YJ="aws.dynamodb.total_segments",WJ="aws.dynamodb.count",XJ="aws.dynamodb.scanned_count",zJ="aws.dynamodb.attribute_definitions",JJ="aws.dynamodb.global_secondary_index_updates",QJ="messaging.system",ZJ="messaging.destination",eQ="messaging.destination_kind",tQ="messaging.temp_destination",rQ="messaging.protocol",nQ="messaging.protocol_version",iQ="messaging.url",sQ="messaging.message_id",aQ="messaging.conversation_id",oQ="messaging.message_payload_size_bytes",uQ="messaging.message_payload_compressed_size_bytes",lQ="messaging.operation",cQ="messaging.consumer_id",pQ="messaging.rabbitmq.routing_key",fQ="messaging.kafka.message_key",hQ="messaging.kafka.consumer_group",dQ="messaging.kafka.client_id",mQ="messaging.kafka.partition",yQ="messaging.kafka.tombstone",gQ="rpc.system",SQ="rpc.service",TQ="rpc.method",EQ="rpc.grpc.status_code",bQ="rpc.jsonrpc.version",vQ="rpc.jsonrpc.request_id",_Q="rpc.jsonrpc.error_code",xQ="rpc.jsonrpc.error_message",AQ="message.type",PQ="message.id",CQ="message.compressed_size",wQ="message.uncompressed_size",sHe=lz,CL=cz,aHe=pz,oHe=fz,uHe=hz,lHe=dz,wL=mz,cHe=yz,pHe=gz,fHe=Sz,hHe=Tz,dHe=Ez,mHe=bz,yHe=vz,gHe=_z,SHe=xz,THe=Az,EHe=Pz,bHe=Cz,vHe=wz,_He=Iz,wE=Oz,IE=Dz,IL=Nz,xHe=Rz,OL=Mz,AHe=Lz,PHe=kz,CHe=Fz,wHe=Bz,IHe=jz,OHe=Uz,DHe=qz,NHe=Vz,RHe=Hz,MHe=Gz,LHe=$z,kHe=Kz,FHe=Yz,BHe=Wz,jHe=Xz,UHe=zz,qHe=Jz,VHe=Qz,HHe=Zz,GHe=eJ,$He=tJ,KHe=rJ,YHe=nJ,WHe=iJ,XHe=sJ,zHe=aJ,JHe=oJ,QHe=uJ,ZHe=lJ,eGe=cJ,tGe=pJ,rGe=fJ,nGe=hJ,iGe=dJ,OE=mJ,ny=yJ,DL=gJ,sGe=SJ,aGe=TJ,qA=EJ,oGe=bJ,uGe=vJ,lGe=_J,cGe=xJ,pGe=AJ,fGe=PJ,hGe=CJ,dGe=wJ,mGe=IJ,yGe=OJ,gGe=DJ,SGe=NJ,TGe=RJ,EGe=MJ,bGe=LJ,vGe=kJ,_Ge=FJ,xGe=BJ,AGe=jJ,PGe=UJ,CGe=qJ,wGe=VJ,IGe=HJ,OGe=GJ,DGe=$J,NGe=KJ,RGe=YJ,MGe=WJ,LGe=XJ,kGe=zJ,FGe=JJ,NL=QJ,BGe=ZJ,jGe=eQ,UGe=tQ,qGe=rQ,VGe=nQ,HGe=iQ,GGe=sQ,$Ge=aQ,KGe=oQ,YGe=uQ,WGe=lQ,XGe=cQ,zGe=pQ,JGe=fQ,QGe=hQ,ZGe=dQ,e$e=mQ,t$e=yQ,r$e=gQ,RL=SQ,n$e=TQ,ML=EQ,i$e=bQ,s$e=vQ,a$e=_Q,o$e=xQ,u$e=AQ,l$e=PQ,c$e=CQ,p$e=wQ,f$e=ii([lz,cz,pz,fz,hz,dz,mz,yz,gz,Sz,Tz,Ez,bz,vz,_z,xz,Az,Pz,Cz,wz,Iz,Oz,Dz,Nz,Rz,Mz,Lz,kz,Fz,Bz,jz,Uz,qz,Vz,Hz,Gz,$z,Kz,Yz,Wz,Xz,zz,Jz,Qz,Zz,eJ,tJ,rJ,nJ,iJ,sJ,aJ,oJ,uJ,lJ,cJ,pJ,fJ,hJ,dJ,mJ,yJ,gJ,SJ,TJ,EJ,bJ,vJ,_J,xJ,AJ,PJ,CJ,wJ,IJ,OJ,DJ,NJ,RJ,MJ,LJ,kJ,FJ,BJ,jJ,UJ,qJ,VJ,HJ,GJ,$J,KJ,YJ,WJ,XJ,zJ,JJ,QJ,ZJ,eQ,tQ,rQ,nQ,iQ,sQ,aQ,oQ,uQ,lQ,cQ,pQ,fQ,hQ,dQ,mQ,yQ,gQ,SQ,TQ,EQ,bQ,vQ,_Q,xQ,AQ,PQ,CQ,wQ]),IQ="other_sql",OQ="mssql",DQ="mysql",NQ="oracle",RQ="db2",MQ="postgresql",LQ="redshift",kQ="hive",FQ="cloudscape",BQ="hsqldb",jQ="progress",UQ="maxdb",qQ="hanadb",VQ="ingres",HQ="firstsql",GQ="edb",$Q="cache",KQ="adabas",YQ="firebird",WQ="derby",XQ="filemaker",zQ="informix",JQ="instantdb",QQ="interbase",ZQ="mariadb",eZ="netezza",tZ="pervasive",rZ="pointbase",nZ="sqlite",iZ="sybase",sZ="teradata",aZ="vertica",oZ="h2",uZ="coldfusion",lZ="cassandra",cZ="hbase",pZ="mongodb",fZ="redis",hZ="couchbase",dZ="couchdb",mZ="cosmosdb",yZ="dynamodb",gZ="neo4j",SZ="geode",TZ="elasticsearch",EZ="memcached",bZ="cockroachdb",h$e=IQ,d$e=OQ,m$e=DQ,y$e=NQ,g$e=RQ,S$e=MQ,T$e=LQ,E$e=kQ,b$e=FQ,v$e=BQ,_$e=jQ,x$e=UQ,A$e=qQ,P$e=VQ,C$e=HQ,w$e=GQ,I$e=$Q,O$e=KQ,D$e=YQ,N$e=WQ,R$e=XQ,M$e=zQ,L$e=JQ,k$e=QQ,F$e=ZQ,B$e=eZ,j$e=tZ,U$e=rZ,q$e=nZ,V$e=iZ,H$e=sZ,G$e=aZ,$$e=oZ,K$e=uZ,Y$e=lZ,W$e=cZ,X$e=pZ,z$e=fZ,J$e=hZ,Q$e=dZ,Z$e=mZ,eKe=yZ,tKe=gZ,rKe=SZ,nKe=TZ,iKe=EZ,sKe=bZ,aKe=ii([IQ,OQ,DQ,NQ,RQ,MQ,LQ,kQ,FQ,BQ,jQ,UQ,qQ,VQ,HQ,GQ,$Q,KQ,YQ,WQ,XQ,zQ,JQ,QQ,ZQ,eZ,tZ,rZ,nZ,iZ,sZ,aZ,oZ,uZ,lZ,cZ,pZ,fZ,hZ,dZ,mZ,yZ,gZ,SZ,TZ,EZ,bZ]),vZ="all",_Z="each_quorum",xZ="quorum",AZ="local_quorum",PZ="one",CZ="two",wZ="three",IZ="local_one",OZ="any",DZ="serial",NZ="local_serial",oKe=vZ,uKe=_Z,lKe=xZ,cKe=AZ,pKe=PZ,fKe=CZ,hKe=wZ,dKe=IZ,mKe=OZ,yKe=DZ,gKe=NZ,SKe=ii([vZ,_Z,xZ,AZ,PZ,CZ,wZ,IZ,OZ,DZ,NZ]),RZ="datasource",MZ="http",LZ="pubsub",kZ="timer",FZ="other",TKe=RZ,EKe=MZ,bKe=LZ,vKe=kZ,_Ke=FZ,xKe=ii([RZ,MZ,LZ,kZ,FZ]),BZ="insert",jZ="edit",UZ="delete",AKe=BZ,PKe=jZ,CKe=UZ,wKe=ii([BZ,jZ,UZ]),qZ="alibaba_cloud",VZ="aws",HZ="azure",GZ="gcp",IKe=qZ,OKe=VZ,DKe=HZ,NKe=GZ,RKe=ii([qZ,VZ,HZ,GZ]),$Z="ip_tcp",KZ="ip_udp",YZ="ip",WZ="unix",XZ="pipe",zZ="inproc",JZ="other",MKe=$Z,LKe=KZ,kKe=YZ,FKe=WZ,BKe=XZ,jKe=zZ,UKe=JZ,qKe=ii([$Z,KZ,YZ,WZ,XZ,zZ,JZ]),QZ="wifi",ZZ="wired",eee="cell",tee="unavailable",ree="unknown",VKe=QZ,HKe=ZZ,GKe=eee,$Ke=tee,KKe=ree,YKe=ii([QZ,ZZ,eee,tee,ree]),nee="gprs",iee="edge",see="umts",aee="cdma",oee="evdo_0",uee="evdo_a",lee="cdma2000_1xrtt",cee="hsdpa",pee="hsupa",fee="hspa",hee="iden",dee="evdo_b",mee="lte",yee="ehrpd",gee="hspap",See="gsm",Tee="td_scdma",Eee="iwlan",bee="nr",vee="nrnsa",_ee="lte_ca",WKe=nee,XKe=iee,zKe=see,JKe=aee,QKe=oee,ZKe=uee,eYe=lee,tYe=cee,rYe=pee,nYe=fee,iYe=hee,sYe=dee,aYe=mee,oYe=yee,uYe=gee,lYe=See,cYe=Tee,pYe=Eee,fYe=bee,hYe=vee,dYe=_ee,mYe=ii([nee,iee,see,aee,oee,uee,lee,cee,pee,fee,hee,dee,mee,yee,gee,See,Tee,Eee,bee,vee,_ee]),xee="1.0",Aee="1.1",Pee="2.0",Cee="SPDY",wee="QUIC",yYe=xee,gYe=Aee,SYe=Pee,TYe=Cee,EYe=wee,bYe={HTTP_1_0:xee,HTTP_1_1:Aee,HTTP_2_0:Pee,SPDY:Cee,QUIC:wee},Iee="queue",Oee="topic",vYe=Iee,_Ye=Oee,xYe=ii([Iee,Oee]),Dee="receive",Nee="process",AYe=Dee,PYe=Nee,CYe=ii([Dee,Nee]),Ree=0,Mee=1,Lee=2,kee=3,Fee=4,Bee=5,jee=6,Uee=7,qee=8,Vee=9,Hee=10,Gee=11,$ee=12,Kee=13,Yee=14,Wee=15,Xee=16,wYe=Ree,IYe=Mee,OYe=Lee,DYe=kee,NYe=Fee,RYe=Bee,MYe=jee,LYe=Uee,kYe=qee,FYe=Vee,BYe=Hee,jYe=Gee,UYe=$ee,qYe=Kee,VYe=Yee,HYe=Wee,GYe=Xee,$Ye={OK:Ree,CANCELLED:Mee,UNKNOWN:Lee,INVALID_ARGUMENT:kee,DEADLINE_EXCEEDED:Fee,NOT_FOUND:Bee,ALREADY_EXISTS:jee,PERMISSION_DENIED:Uee,RESOURCE_EXHAUSTED:qee,FAILED_PRECONDITION:Vee,ABORTED:Hee,OUT_OF_RANGE:Gee,UNIMPLEMENTED:$ee,INTERNAL:Kee,UNAVAILABLE:Yee,DATA_LOSS:Wee,UNAUTHENTICATED:Xee},zee="SENT",Jee="RECEIVED",KYe=zee,YYe=Jee,WYe=ii([zee,Jee]);});var Zee=chunkTKGT252T_js.b(()=>{Qee();});var ete,tte,rte,nte,ite,ste,ate,ote,ute,lte,cte,pte,fte,hte,dte,mte,yte,gte,Ste,Tte,Ete,bte,vte,_te,xte,Ate,Pte,Cte,wte,Ite,Ote,Dte,Nte,Rte,Mte,Lte,kte,Fte,Bte,jte,Ute,qte,Vte,Hte,Gte,$te,Kte,Yte,Wte,Xte,zte,Jte,Qte,Zte,ere,tre,rre,nre,ire,sre,are,ore,ure,lre,cre,pre,fre,hre,dre,mre,yre,gre,Sre,Tre,Ere,bre,vre,_re,xre,Are,Pre,XYe,zYe,JYe,QYe,ZYe,eWe,tWe,rWe,nWe,iWe,sWe,aWe,oWe,uWe,lWe,cWe,pWe,fWe,hWe,dWe,mWe,yWe,gWe,SWe,TWe,EWe,bWe,vWe,_We,xWe,AWe,PWe,CWe,wWe,IWe,OWe,DWe,NWe,RWe,MWe,LWe,kWe,FWe,BWe,jWe,UWe,qWe,VWe,HWe,GWe,$We,KWe,YWe,WWe,XWe,zWe,JWe,QWe,ZWe,eXe,tXe,rXe,nXe,iXe,sXe,aXe,oXe,LL,uXe,lXe,kL,FL,cXe,pXe,iy,sy,ay,fXe,hXe,dXe,mXe,yXe,Cre,wre,Ire,Ore,gXe,SXe,TXe,EXe,bXe,Dre,Nre,Rre,Mre,Lre,kre,Fre,Bre,jre,Ure,qre,Vre,Hre,Gre,$re,Kre,Yre,vXe,_Xe,xXe,AXe,PXe,CXe,wXe,IXe,OXe,DXe,NXe,RXe,MXe,LXe,kXe,FXe,BXe,jXe,Wre,Xre,UXe,qXe,VXe,zre,Jre,Qre,Zre,ene,tne,rne,HXe,GXe,$Xe,KXe,YXe,WXe,XXe,zXe,nne,ine,sne,ane,one,une,lne,cne,pne,fne,hne,JXe,QXe,ZXe,eze,tze,rze,nze,ize,sze,aze,oze,uze,dne,mne,yne,gne,Sne,Tne,Ene,bne,vne,_ne,lze,cze,pze,fze,hze,BL,dze,mze,yze,gze,Sze,xne=chunkTKGT252T_js.b(()=>{PL();ete="cloud.provider",tte="cloud.account.id",rte="cloud.region",nte="cloud.availability_zone",ite="cloud.platform",ste="aws.ecs.container.arn",ate="aws.ecs.cluster.arn",ote="aws.ecs.launchtype",ute="aws.ecs.task.arn",lte="aws.ecs.task.family",cte="aws.ecs.task.revision",pte="aws.eks.cluster.arn",fte="aws.log.group.names",hte="aws.log.group.arns",dte="aws.log.stream.names",mte="aws.log.stream.arns",yte="container.name",gte="container.id",Ste="container.runtime",Tte="container.image.name",Ete="container.image.tag",bte="deployment.environment",vte="device.id",_te="device.model.identifier",xte="device.model.name",Ate="faas.name",Pte="faas.id",Cte="faas.version",wte="faas.instance",Ite="faas.max_memory",Ote="host.id",Dte="host.name",Nte="host.type",Rte="host.arch",Mte="host.image.name",Lte="host.image.id",kte="host.image.version",Fte="k8s.cluster.name",Bte="k8s.node.name",jte="k8s.node.uid",Ute="k8s.namespace.name",qte="k8s.pod.uid",Vte="k8s.pod.name",Hte="k8s.container.name",Gte="k8s.replicaset.uid",$te="k8s.replicaset.name",Kte="k8s.deployment.uid",Yte="k8s.deployment.name",Wte="k8s.statefulset.uid",Xte="k8s.statefulset.name",zte="k8s.daemonset.uid",Jte="k8s.daemonset.name",Qte="k8s.job.uid",Zte="k8s.job.name",ere="k8s.cronjob.uid",tre="k8s.cronjob.name",rre="os.type",nre="os.description",ire="os.name",sre="os.version",are="process.pid",ore="process.executable.name",ure="process.executable.path",lre="process.command",cre="process.command_line",pre="process.command_args",fre="process.owner",hre="process.runtime.name",dre="process.runtime.version",mre="process.runtime.description",yre="service.name",gre="service.namespace",Sre="service.instance.id",Tre="service.version",Ere="telemetry.sdk.name",bre="telemetry.sdk.language",vre="telemetry.sdk.version",_re="telemetry.auto.version",xre="webengine.name",Are="webengine.version",Pre="webengine.description",XYe=ete,zYe=tte,JYe=rte,QYe=nte,ZYe=ite,eWe=ste,tWe=ate,rWe=ote,nWe=ute,iWe=lte,sWe=cte,aWe=pte,oWe=fte,uWe=hte,lWe=dte,cWe=mte,pWe=yte,fWe=gte,hWe=Ste,dWe=Tte,mWe=Ete,yWe=bte,gWe=vte,SWe=_te,TWe=xte,EWe=Ate,bWe=Pte,vWe=Cte,_We=wte,xWe=Ite,AWe=Ote,PWe=Dte,CWe=Nte,wWe=Rte,IWe=Mte,OWe=Lte,DWe=kte,NWe=Fte,RWe=Bte,MWe=jte,LWe=Ute,kWe=qte,FWe=Vte,BWe=Hte,jWe=Gte,UWe=$te,qWe=Kte,VWe=Yte,HWe=Wte,GWe=Xte,$We=zte,KWe=Jte,YWe=Qte,WWe=Zte,XWe=ere,zWe=tre,JWe=rre,QWe=nre,ZWe=ire,eXe=sre,tXe=are,rXe=ore,nXe=ure,iXe=lre,sXe=cre,aXe=pre,oXe=fre,LL=hre,uXe=dre,lXe=mre,kL=yre,FL=gre,cXe=Sre,pXe=Tre,iy=Ere,sy=bre,ay=vre,fXe=_re,hXe=xre,dXe=Are,mXe=Pre,yXe=ii([ete,tte,rte,nte,ite,ste,ate,ote,ute,lte,cte,pte,fte,hte,dte,mte,yte,gte,Ste,Tte,Ete,bte,vte,_te,xte,Ate,Pte,Cte,wte,Ite,Ote,Dte,Nte,Rte,Mte,Lte,kte,Fte,Bte,jte,Ute,qte,Vte,Hte,Gte,$te,Kte,Yte,Wte,Xte,zte,Jte,Qte,Zte,ere,tre,rre,nre,ire,sre,are,ore,ure,lre,cre,pre,fre,hre,dre,mre,yre,gre,Sre,Tre,Ere,bre,vre,_re,xre,Are,Pre]),Cre="alibaba_cloud",wre="aws",Ire="azure",Ore="gcp",gXe=Cre,SXe=wre,TXe=Ire,EXe=Ore,bXe=ii([Cre,wre,Ire,Ore]),Dre="alibaba_cloud_ecs",Nre="alibaba_cloud_fc",Rre="aws_ec2",Mre="aws_ecs",Lre="aws_eks",kre="aws_lambda",Fre="aws_elastic_beanstalk",Bre="azure_vm",jre="azure_container_instances",Ure="azure_aks",qre="azure_functions",Vre="azure_app_service",Hre="gcp_compute_engine",Gre="gcp_cloud_run",$re="gcp_kubernetes_engine",Kre="gcp_cloud_functions",Yre="gcp_app_engine",vXe=Dre,_Xe=Nre,xXe=Rre,AXe=Mre,PXe=Lre,CXe=kre,wXe=Fre,IXe=Bre,OXe=jre,DXe=Ure,NXe=qre,RXe=Vre,MXe=Hre,LXe=Gre,kXe=$re,FXe=Kre,BXe=Yre,jXe=ii([Dre,Nre,Rre,Mre,Lre,kre,Fre,Bre,jre,Ure,qre,Vre,Hre,Gre,$re,Kre,Yre]),Wre="ec2",Xre="fargate",UXe=Wre,qXe=Xre,VXe=ii([Wre,Xre]),zre="amd64",Jre="arm32",Qre="arm64",Zre="ia64",ene="ppc32",tne="ppc64",rne="x86",HXe=zre,GXe=Jre,$Xe=Qre,KXe=Zre,YXe=ene,WXe=tne,XXe=rne,zXe=ii([zre,Jre,Qre,Zre,ene,tne,rne]),nne="windows",ine="linux",sne="darwin",ane="freebsd",one="netbsd",une="openbsd",lne="dragonflybsd",cne="hpux",pne="aix",fne="solaris",hne="z_os",JXe=nne,QXe=ine,ZXe=sne,eze=ane,tze=one,rze=une,nze=lne,ize=cne,sze=pne,aze=fne,oze=hne,uze=ii([nne,ine,sne,ane,one,une,lne,cne,pne,fne,hne]),dne="cpp",mne="dotnet",yne="erlang",gne="go",Sne="java",Tne="nodejs",Ene="php",bne="python",vne="ruby",_ne="webjs",lze=dne,cze=mne,pze=yne,fze=gne,hze=Sne,BL=Tne,dze=Ene,mze=bne,yze=vne,gze=_ne,Sze=ii([dne,mne,yne,gne,Sne,Tne,Ene,bne,vne,_ne]);});var Ane=chunkTKGT252T_js.b(()=>{xne();});var Tze,Eze,bze,vze,_ze,xze,Aze,Pze,Cze,wze,Ize,Oze,Dze,Nze,Rze,Mze,Lze,kze,Fze,Bze,jze,Uze,qze,Vze,Hze,Gze,$ze,Kze,Yze,Wze,Xze,zze,Jze,Qze,Zze,eJe,tJe,rJe,nJe,iJe,sJe,DE,aJe,oJe,uJe,lJe,cJe,pJe,fJe,hJe,dJe,mJe,yJe,gJe,SJe,VA,NE,TJe,EJe,bJe,vJe,_Je,xJe,AJe,PJe,CJe,wJe,IJe,OJe,DJe,NJe,RJe,MJe,LJe,kJe,FJe,BJe,jJe,UJe,qJe,VJe,HJe,GJe,$Je,KJe,YJe,WJe,XJe,zJe,JJe,QJe,ZJe,eQe,tQe,jL,UL,rQe,nQe,iQe,sQe,aQe,oQe,uQe,lQe,cQe,oy,pQe,fQe,hQe,dQe,Pne=chunkTKGT252T_js.b(()=>{Tze="aspnetcore.rate_limiting.result",Eze="acquired",bze="endpoint_limiter",vze="global_limiter",_ze="request_canceled",xze="telemetry.sdk.language",Aze="cpp",Pze="dotnet",Cze="erlang",wze="go",Ize="java",Oze="nodejs",Dze="php",Nze="python",Rze="ruby",Mze="rust",Lze="swift",kze="webjs",Fze="telemetry.sdk.name",Bze="telemetry.sdk.version",jze="aspnetcore.diagnostics.handler.type",Uze="aspnetcore.diagnostics.exception.result",qze="aborted",Vze="handled",Hze="skipped",Gze="unhandled",$ze="aspnetcore.rate_limiting.policy",Kze="aspnetcore.request.is_unhandled",Yze="aspnetcore.routing.is_fallback",Wze="aspnetcore.routing.match_status",Xze="failure",zze="success",Jze="client.address",Qze="client.port",Zze="error.type",eJe="_OTHER",tJe="exception.escaped",rJe="exception.message",nJe="exception.stacktrace",iJe="exception.type",sJe=function(e){return "http.request.header."+e},DE="http.request.method",aJe="_OTHER",oJe="CONNECT",uJe="DELETE",lJe="GET",cJe="HEAD",pJe="OPTIONS",fJe="PATCH",hJe="POST",dJe="PUT",mJe="TRACE",yJe="http.request.method_original",gJe="http.request.resend_count",SJe=function(e){return "http.response.header."+e},VA="http.response.status_code",NE="http.route",TJe="jvm.gc.action",EJe="jvm.gc.name",bJe="jvm.memory.pool.name",vJe="jvm.memory.type",_Je="heap",xJe="non_heap",AJe="jvm.thread.daemon",PJe="jvm.thread.state",CJe="blocked",wJe="new",IJe="runnable",OJe="terminated",DJe="timed_waiting",NJe="waiting",RJe="network.local.address",MJe="network.local.port",LJe="network.peer.address",kJe="network.peer.port",FJe="network.protocol.name",BJe="network.protocol.version",jJe="network.transport",UJe="pipe",qJe="quic",VJe="tcp",HJe="udp",GJe="unix",$Je="network.type",KJe="ipv4",YJe="ipv6",WJe="otel.scope.name",XJe="otel.scope.version",zJe="otel.status_code",JJe="ERROR",QJe="OK",ZJe="otel.status_description",eQe="server.address",tQe="server.port",jL="service.name",UL="service.version",rQe="signalr.connection.status",nQe="app_shutdown",iQe="normal_closure",sQe="timeout",aQe="signalr.transport",oQe="long_polling",uQe="server_sent_events",lQe="web_sockets",cQe="url.fragment",oy="url.full",pQe="url.path",fQe="url.query",hQe="url.scheme",dQe="user_agent.original";});var mQe,yQe,gQe,SQe,TQe,EQe,bQe,vQe,_Qe,xQe,AQe,PQe,CQe,wQe,IQe,OQe,DQe,NQe,RQe,MQe,LQe,kQe,FQe,BQe,jQe,UQe,qQe,VQe,HQe,GQe,$Qe,Cne=chunkTKGT252T_js.b(()=>{mQe="aspnetcore.diagnostics.exceptions",yQe="aspnetcore.rate_limiting.active_request_leases",gQe="aspnetcore.rate_limiting.queued_requests",SQe="aspnetcore.rate_limiting.request.time_in_queue",TQe="aspnetcore.rate_limiting.request_lease.duration",EQe="aspnetcore.rate_limiting.requests",bQe="aspnetcore.routing.match_attempts",vQe="http.client.request.duration",_Qe="http.server.request.duration",xQe="jvm.class.count",AQe="jvm.class.loaded",PQe="jvm.class.unloaded",CQe="jvm.cpu.count",wQe="jvm.cpu.recent_utilization",IQe="jvm.cpu.time",OQe="jvm.gc.duration",DQe="jvm.memory.committed",NQe="jvm.memory.limit",RQe="jvm.memory.used",MQe="jvm.memory.used_after_last_gc",LQe="jvm.thread.count",kQe="kestrel.active_connections",FQe="kestrel.active_tls_handshakes",BQe="kestrel.connection.duration",jQe="kestrel.queued_connections",UQe="kestrel.queued_requests",qQe="kestrel.rejected_connections",VQe="kestrel.tls_handshake.duration",HQe="kestrel.upgraded_connections",GQe="signalr.server.active_connections",$Qe="signalr.server.connection.duration";});var si={};chunkTKGT252T_js.d(si,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>qze,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>Vze,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>Hze,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>Gze,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>Eze,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>bze,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>vze,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>_ze,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>Xze,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>zze,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>Uze,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>jze,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>$ze,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>Tze,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>Kze,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>Yze,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>Wze,ATTR_CLIENT_ADDRESS:()=>Jze,ATTR_CLIENT_PORT:()=>Qze,ATTR_ERROR_TYPE:()=>Zze,ATTR_EXCEPTION_ESCAPED:()=>tJe,ATTR_EXCEPTION_MESSAGE:()=>rJe,ATTR_EXCEPTION_STACKTRACE:()=>nJe,ATTR_EXCEPTION_TYPE:()=>iJe,ATTR_HTTP_REQUEST_HEADER:()=>sJe,ATTR_HTTP_REQUEST_METHOD:()=>DE,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>yJe,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>gJe,ATTR_HTTP_RESPONSE_HEADER:()=>SJe,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>VA,ATTR_HTTP_ROUTE:()=>NE,ATTR_JVM_GC_ACTION:()=>TJe,ATTR_JVM_GC_NAME:()=>EJe,ATTR_JVM_MEMORY_POOL_NAME:()=>bJe,ATTR_JVM_MEMORY_TYPE:()=>vJe,ATTR_JVM_THREAD_DAEMON:()=>AJe,ATTR_JVM_THREAD_STATE:()=>PJe,ATTR_NETWORK_LOCAL_ADDRESS:()=>RJe,ATTR_NETWORK_LOCAL_PORT:()=>MJe,ATTR_NETWORK_PEER_ADDRESS:()=>LJe,ATTR_NETWORK_PEER_PORT:()=>kJe,ATTR_NETWORK_PROTOCOL_NAME:()=>FJe,ATTR_NETWORK_PROTOCOL_VERSION:()=>BJe,ATTR_NETWORK_TRANSPORT:()=>jJe,ATTR_NETWORK_TYPE:()=>$Je,ATTR_OTEL_SCOPE_NAME:()=>WJe,ATTR_OTEL_SCOPE_VERSION:()=>XJe,ATTR_OTEL_STATUS_CODE:()=>zJe,ATTR_OTEL_STATUS_DESCRIPTION:()=>ZJe,ATTR_SERVER_ADDRESS:()=>eQe,ATTR_SERVER_PORT:()=>tQe,ATTR_SERVICE_NAME:()=>jL,ATTR_SERVICE_VERSION:()=>UL,ATTR_SIGNALR_CONNECTION_STATUS:()=>rQe,ATTR_SIGNALR_TRANSPORT:()=>aQe,ATTR_TELEMETRY_SDK_LANGUAGE:()=>xze,ATTR_TELEMETRY_SDK_NAME:()=>Fze,ATTR_TELEMETRY_SDK_VERSION:()=>Bze,ATTR_URL_FRAGMENT:()=>cQe,ATTR_URL_FULL:()=>oy,ATTR_URL_PATH:()=>pQe,ATTR_URL_QUERY:()=>fQe,ATTR_URL_SCHEME:()=>hQe,ATTR_USER_AGENT_ORIGINAL:()=>dQe,AWSECSLAUNCHTYPEVALUES_EC2:()=>UXe,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>qXe,AwsEcsLaunchtypeValues:()=>VXe,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>vXe,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>_Xe,CLOUDPLATFORMVALUES_AWS_EC2:()=>xXe,CLOUDPLATFORMVALUES_AWS_ECS:()=>AXe,CLOUDPLATFORMVALUES_AWS_EKS:()=>PXe,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>wXe,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>CXe,CLOUDPLATFORMVALUES_AZURE_AKS:()=>DXe,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>RXe,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>OXe,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>NXe,CLOUDPLATFORMVALUES_AZURE_VM:()=>IXe,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>BXe,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>FXe,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>LXe,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>MXe,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>kXe,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>gXe,CLOUDPROVIDERVALUES_AWS:()=>SXe,CLOUDPROVIDERVALUES_AZURE:()=>TXe,CLOUDPROVIDERVALUES_GCP:()=>EXe,CloudPlatformValues:()=>jXe,CloudProviderValues:()=>bXe,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>oKe,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>mKe,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>uKe,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>dKe,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>cKe,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>gKe,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>pKe,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>lKe,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>yKe,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>hKe,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>fKe,DBSYSTEMVALUES_ADABAS:()=>O$e,DBSYSTEMVALUES_CACHE:()=>I$e,DBSYSTEMVALUES_CASSANDRA:()=>Y$e,DBSYSTEMVALUES_CLOUDSCAPE:()=>b$e,DBSYSTEMVALUES_COCKROACHDB:()=>sKe,DBSYSTEMVALUES_COLDFUSION:()=>K$e,DBSYSTEMVALUES_COSMOSDB:()=>Z$e,DBSYSTEMVALUES_COUCHBASE:()=>J$e,DBSYSTEMVALUES_COUCHDB:()=>Q$e,DBSYSTEMVALUES_DB2:()=>g$e,DBSYSTEMVALUES_DERBY:()=>N$e,DBSYSTEMVALUES_DYNAMODB:()=>eKe,DBSYSTEMVALUES_EDB:()=>w$e,DBSYSTEMVALUES_ELASTICSEARCH:()=>nKe,DBSYSTEMVALUES_FILEMAKER:()=>R$e,DBSYSTEMVALUES_FIREBIRD:()=>D$e,DBSYSTEMVALUES_FIRSTSQL:()=>C$e,DBSYSTEMVALUES_GEODE:()=>rKe,DBSYSTEMVALUES_H2:()=>$$e,DBSYSTEMVALUES_HANADB:()=>A$e,DBSYSTEMVALUES_HBASE:()=>W$e,DBSYSTEMVALUES_HIVE:()=>E$e,DBSYSTEMVALUES_HSQLDB:()=>v$e,DBSYSTEMVALUES_INFORMIX:()=>M$e,DBSYSTEMVALUES_INGRES:()=>P$e,DBSYSTEMVALUES_INSTANTDB:()=>L$e,DBSYSTEMVALUES_INTERBASE:()=>k$e,DBSYSTEMVALUES_MARIADB:()=>F$e,DBSYSTEMVALUES_MAXDB:()=>x$e,DBSYSTEMVALUES_MEMCACHED:()=>iKe,DBSYSTEMVALUES_MONGODB:()=>X$e,DBSYSTEMVALUES_MSSQL:()=>d$e,DBSYSTEMVALUES_MYSQL:()=>m$e,DBSYSTEMVALUES_NEO4J:()=>tKe,DBSYSTEMVALUES_NETEZZA:()=>B$e,DBSYSTEMVALUES_ORACLE:()=>y$e,DBSYSTEMVALUES_OTHER_SQL:()=>h$e,DBSYSTEMVALUES_PERVASIVE:()=>j$e,DBSYSTEMVALUES_POINTBASE:()=>U$e,DBSYSTEMVALUES_POSTGRESQL:()=>S$e,DBSYSTEMVALUES_PROGRESS:()=>_$e,DBSYSTEMVALUES_REDIS:()=>z$e,DBSYSTEMVALUES_REDSHIFT:()=>T$e,DBSYSTEMVALUES_SQLITE:()=>q$e,DBSYSTEMVALUES_SYBASE:()=>V$e,DBSYSTEMVALUES_TERADATA:()=>H$e,DBSYSTEMVALUES_VERTICA:()=>G$e,DbCassandraConsistencyLevelValues:()=>SKe,DbSystemValues:()=>aKe,ERROR_TYPE_VALUE_OTHER:()=>eJe,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>CKe,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>PKe,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>AKe,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>IKe,FAASINVOKEDPROVIDERVALUES_AWS:()=>OKe,FAASINVOKEDPROVIDERVALUES_AZURE:()=>DKe,FAASINVOKEDPROVIDERVALUES_GCP:()=>NKe,FAASTRIGGERVALUES_DATASOURCE:()=>TKe,FAASTRIGGERVALUES_HTTP:()=>EKe,FAASTRIGGERVALUES_OTHER:()=>_Ke,FAASTRIGGERVALUES_PUBSUB:()=>bKe,FAASTRIGGERVALUES_TIMER:()=>vKe,FaasDocumentOperationValues:()=>wKe,FaasInvokedProviderValues:()=>RKe,FaasTriggerValues:()=>xKe,HOSTARCHVALUES_AMD64:()=>HXe,HOSTARCHVALUES_ARM32:()=>GXe,HOSTARCHVALUES_ARM64:()=>$Xe,HOSTARCHVALUES_IA64:()=>KXe,HOSTARCHVALUES_PPC32:()=>YXe,HOSTARCHVALUES_PPC64:()=>WXe,HOSTARCHVALUES_X86:()=>XXe,HTTPFLAVORVALUES_HTTP_1_0:()=>yYe,HTTPFLAVORVALUES_HTTP_1_1:()=>gYe,HTTPFLAVORVALUES_HTTP_2_0:()=>SYe,HTTPFLAVORVALUES_QUIC:()=>EYe,HTTPFLAVORVALUES_SPDY:()=>TYe,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>oJe,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>uJe,HTTP_REQUEST_METHOD_VALUE_GET:()=>lJe,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>cJe,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>pJe,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>aJe,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>fJe,HTTP_REQUEST_METHOD_VALUE_POST:()=>hJe,HTTP_REQUEST_METHOD_VALUE_PUT:()=>dJe,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>mJe,HostArchValues:()=>zXe,HttpFlavorValues:()=>bYe,JVM_MEMORY_TYPE_VALUE_HEAP:()=>_Je,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>xJe,JVM_THREAD_STATE_VALUE_BLOCKED:()=>CJe,JVM_THREAD_STATE_VALUE_NEW:()=>wJe,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>IJe,JVM_THREAD_STATE_VALUE_TERMINATED:()=>OJe,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>DJe,JVM_THREAD_STATE_VALUE_WAITING:()=>NJe,MESSAGETYPEVALUES_RECEIVED:()=>YYe,MESSAGETYPEVALUES_SENT:()=>KYe,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>vYe,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>_Ye,MESSAGINGOPERATIONVALUES_PROCESS:()=>PYe,MESSAGINGOPERATIONVALUES_RECEIVE:()=>AYe,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>mQe,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>yQe,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>gQe,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>EQe,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>TQe,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>SQe,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>bQe,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>vQe,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>_Qe,METRIC_JVM_CLASS_COUNT:()=>xQe,METRIC_JVM_CLASS_LOADED:()=>AQe,METRIC_JVM_CLASS_UNLOADED:()=>PQe,METRIC_JVM_CPU_COUNT:()=>CQe,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>wQe,METRIC_JVM_CPU_TIME:()=>IQe,METRIC_JVM_GC_DURATION:()=>OQe,METRIC_JVM_MEMORY_COMMITTED:()=>DQe,METRIC_JVM_MEMORY_LIMIT:()=>NQe,METRIC_JVM_MEMORY_USED:()=>RQe,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>MQe,METRIC_JVM_THREAD_COUNT:()=>LQe,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>kQe,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>FQe,METRIC_KESTREL_CONNECTION_DURATION:()=>BQe,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>jQe,METRIC_KESTREL_QUEUED_REQUESTS:()=>UQe,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>qQe,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>VQe,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>HQe,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>GQe,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>$Qe,MessageTypeValues:()=>WYe,MessagingDestinationKindValues:()=>xYe,MessagingOperationValues:()=>CYe,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>JKe,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>eYe,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>XKe,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>oYe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>QKe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>ZKe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>sYe,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>WKe,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>lYe,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>tYe,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>nYe,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>uYe,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>rYe,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>iYe,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>pYe,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>aYe,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>dYe,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>fYe,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>hYe,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>cYe,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>zKe,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>GKe,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>$Ke,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>KKe,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>VKe,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>HKe,NETTRANSPORTVALUES_INPROC:()=>jKe,NETTRANSPORTVALUES_IP:()=>kKe,NETTRANSPORTVALUES_IP_TCP:()=>MKe,NETTRANSPORTVALUES_IP_UDP:()=>LKe,NETTRANSPORTVALUES_OTHER:()=>UKe,NETTRANSPORTVALUES_PIPE:()=>BKe,NETTRANSPORTVALUES_UNIX:()=>FKe,NETWORK_TRANSPORT_VALUE_PIPE:()=>UJe,NETWORK_TRANSPORT_VALUE_QUIC:()=>qJe,NETWORK_TRANSPORT_VALUE_TCP:()=>VJe,NETWORK_TRANSPORT_VALUE_UDP:()=>HJe,NETWORK_TRANSPORT_VALUE_UNIX:()=>GJe,NETWORK_TYPE_VALUE_IPV4:()=>KJe,NETWORK_TYPE_VALUE_IPV6:()=>YJe,NetHostConnectionSubtypeValues:()=>mYe,NetHostConnectionTypeValues:()=>YKe,NetTransportValues:()=>qKe,OSTYPEVALUES_AIX:()=>sze,OSTYPEVALUES_DARWIN:()=>ZXe,OSTYPEVALUES_DRAGONFLYBSD:()=>nze,OSTYPEVALUES_FREEBSD:()=>eze,OSTYPEVALUES_HPUX:()=>ize,OSTYPEVALUES_LINUX:()=>QXe,OSTYPEVALUES_NETBSD:()=>tze,OSTYPEVALUES_OPENBSD:()=>rze,OSTYPEVALUES_SOLARIS:()=>aze,OSTYPEVALUES_WINDOWS:()=>JXe,OSTYPEVALUES_Z_OS:()=>oze,OTEL_STATUS_CODE_VALUE_ERROR:()=>JJe,OTEL_STATUS_CODE_VALUE_OK:()=>QJe,OsTypeValues:()=>uze,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>BYe,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>MYe,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>IYe,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>HYe,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>NYe,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>FYe,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>qYe,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>DYe,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>RYe,RPCGRPCSTATUSCODEVALUES_OK:()=>wYe,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>jYe,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>LYe,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>kYe,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>GYe,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>VYe,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>UYe,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>OYe,RpcGrpcStatusCodeValues:()=>$Ye,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>xGe,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>kGe,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>bGe,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>gGe,SEMATTRS_AWS_DYNAMODB_COUNT:()=>MGe,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>IGe,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>CGe,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>FGe,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>AGe,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>SGe,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>_Ge,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>wGe,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>vGe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>TGe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>EGe,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>LGe,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>DGe,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>NGe,SEMATTRS_AWS_DYNAMODB_SELECT:()=>PGe,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>OGe,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>yGe,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>RGe,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>sHe,SEMATTRS_CODE_FILEPATH:()=>nGe,SEMATTRS_CODE_FUNCTION:()=>tGe,SEMATTRS_CODE_LINENO:()=>iGe,SEMATTRS_CODE_NAMESPACE:()=>rGe,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>dHe,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>THe,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>SHe,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>yHe,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>fHe,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>hHe,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>gHe,SEMATTRS_DB_CASSANDRA_TABLE:()=>mHe,SEMATTRS_DB_CONNECTION_STRING:()=>aHe,SEMATTRS_DB_HBASE_NAMESPACE:()=>EHe,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>uHe,SEMATTRS_DB_MONGODB_COLLECTION:()=>vHe,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>pHe,SEMATTRS_DB_NAME:()=>lHe,SEMATTRS_DB_OPERATION:()=>cHe,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>bHe,SEMATTRS_DB_SQL_TABLE:()=>_He,SEMATTRS_DB_STATEMENT:()=>wL,SEMATTRS_DB_SYSTEM:()=>CL,SEMATTRS_DB_USER:()=>oHe,SEMATTRS_ENDUSER_ID:()=>zHe,SEMATTRS_ENDUSER_ROLE:()=>JHe,SEMATTRS_ENDUSER_SCOPE:()=>QHe,SEMATTRS_EXCEPTION_ESCAPED:()=>xHe,SEMATTRS_EXCEPTION_MESSAGE:()=>IE,SEMATTRS_EXCEPTION_STACKTRACE:()=>IL,SEMATTRS_EXCEPTION_TYPE:()=>wE,SEMATTRS_FAAS_COLDSTART:()=>NHe,SEMATTRS_FAAS_CRON:()=>DHe,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>PHe,SEMATTRS_FAAS_DOCUMENT_NAME:()=>IHe,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>CHe,SEMATTRS_FAAS_DOCUMENT_TIME:()=>wHe,SEMATTRS_FAAS_EXECUTION:()=>AHe,SEMATTRS_FAAS_INVOKED_NAME:()=>RHe,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>MHe,SEMATTRS_FAAS_INVOKED_REGION:()=>LHe,SEMATTRS_FAAS_TIME:()=>OHe,SEMATTRS_FAAS_TRIGGER:()=>OL,SEMATTRS_HTTP_CLIENT_IP:()=>mGe,SEMATTRS_HTTP_FLAVOR:()=>oGe,SEMATTRS_HTTP_HOST:()=>sGe,SEMATTRS_HTTP_METHOD:()=>OE,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>lGe,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>cGe,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>pGe,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>fGe,SEMATTRS_HTTP_ROUTE:()=>dGe,SEMATTRS_HTTP_SCHEME:()=>aGe,SEMATTRS_HTTP_SERVER_NAME:()=>hGe,SEMATTRS_HTTP_STATUS_CODE:()=>qA,SEMATTRS_HTTP_TARGET:()=>DL,SEMATTRS_HTTP_URL:()=>ny,SEMATTRS_HTTP_USER_AGENT:()=>uGe,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>c$e,SEMATTRS_MESSAGE_ID:()=>l$e,SEMATTRS_MESSAGE_TYPE:()=>u$e,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>p$e,SEMATTRS_MESSAGING_CONSUMER_ID:()=>XGe,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>$Ge,SEMATTRS_MESSAGING_DESTINATION:()=>BGe,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>jGe,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>ZGe,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>QGe,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>JGe,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>e$e,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>t$e,SEMATTRS_MESSAGING_MESSAGE_ID:()=>GGe,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>YGe,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>KGe,SEMATTRS_MESSAGING_OPERATION:()=>WGe,SEMATTRS_MESSAGING_PROTOCOL:()=>qGe,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>VGe,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>zGe,SEMATTRS_MESSAGING_SYSTEM:()=>NL,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>UGe,SEMATTRS_MESSAGING_URL:()=>HGe,SEMATTRS_NET_HOST_CARRIER_ICC:()=>WHe,SEMATTRS_NET_HOST_CARRIER_MCC:()=>KHe,SEMATTRS_NET_HOST_CARRIER_MNC:()=>YHe,SEMATTRS_NET_HOST_CARRIER_NAME:()=>$He,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>GHe,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>HHe,SEMATTRS_NET_HOST_IP:()=>UHe,SEMATTRS_NET_HOST_NAME:()=>VHe,SEMATTRS_NET_HOST_PORT:()=>qHe,SEMATTRS_NET_PEER_IP:()=>FHe,SEMATTRS_NET_PEER_NAME:()=>jHe,SEMATTRS_NET_PEER_PORT:()=>BHe,SEMATTRS_NET_TRANSPORT:()=>kHe,SEMATTRS_PEER_SERVICE:()=>XHe,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>ML,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>a$e,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>o$e,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>s$e,SEMATTRS_RPC_JSONRPC_VERSION:()=>i$e,SEMATTRS_RPC_METHOD:()=>n$e,SEMATTRS_RPC_SERVICE:()=>RL,SEMATTRS_RPC_SYSTEM:()=>r$e,SEMATTRS_THREAD_ID:()=>ZHe,SEMATTRS_THREAD_NAME:()=>eGe,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>tWe,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>eWe,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>rWe,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>nWe,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>iWe,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>sWe,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>aWe,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>uWe,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>oWe,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>cWe,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>lWe,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>zYe,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>QYe,SEMRESATTRS_CLOUD_PLATFORM:()=>ZYe,SEMRESATTRS_CLOUD_PROVIDER:()=>XYe,SEMRESATTRS_CLOUD_REGION:()=>JYe,SEMRESATTRS_CONTAINER_ID:()=>fWe,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>dWe,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>mWe,SEMRESATTRS_CONTAINER_NAME:()=>pWe,SEMRESATTRS_CONTAINER_RUNTIME:()=>hWe,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>yWe,SEMRESATTRS_DEVICE_ID:()=>gWe,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>SWe,SEMRESATTRS_DEVICE_MODEL_NAME:()=>TWe,SEMRESATTRS_FAAS_ID:()=>bWe,SEMRESATTRS_FAAS_INSTANCE:()=>_We,SEMRESATTRS_FAAS_MAX_MEMORY:()=>xWe,SEMRESATTRS_FAAS_NAME:()=>EWe,SEMRESATTRS_FAAS_VERSION:()=>vWe,SEMRESATTRS_HOST_ARCH:()=>wWe,SEMRESATTRS_HOST_ID:()=>AWe,SEMRESATTRS_HOST_IMAGE_ID:()=>OWe,SEMRESATTRS_HOST_IMAGE_NAME:()=>IWe,SEMRESATTRS_HOST_IMAGE_VERSION:()=>DWe,SEMRESATTRS_HOST_NAME:()=>PWe,SEMRESATTRS_HOST_TYPE:()=>CWe,SEMRESATTRS_K8S_CLUSTER_NAME:()=>NWe,SEMRESATTRS_K8S_CONTAINER_NAME:()=>BWe,SEMRESATTRS_K8S_CRONJOB_NAME:()=>zWe,SEMRESATTRS_K8S_CRONJOB_UID:()=>XWe,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>KWe,SEMRESATTRS_K8S_DAEMONSET_UID:()=>$We,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>VWe,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>qWe,SEMRESATTRS_K8S_JOB_NAME:()=>WWe,SEMRESATTRS_K8S_JOB_UID:()=>YWe,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>LWe,SEMRESATTRS_K8S_NODE_NAME:()=>RWe,SEMRESATTRS_K8S_NODE_UID:()=>MWe,SEMRESATTRS_K8S_POD_NAME:()=>FWe,SEMRESATTRS_K8S_POD_UID:()=>kWe,SEMRESATTRS_K8S_REPLICASET_NAME:()=>UWe,SEMRESATTRS_K8S_REPLICASET_UID:()=>jWe,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>GWe,SEMRESATTRS_K8S_STATEFULSET_UID:()=>HWe,SEMRESATTRS_OS_DESCRIPTION:()=>QWe,SEMRESATTRS_OS_NAME:()=>ZWe,SEMRESATTRS_OS_TYPE:()=>JWe,SEMRESATTRS_OS_VERSION:()=>eXe,SEMRESATTRS_PROCESS_COMMAND:()=>iXe,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>aXe,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>sXe,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>rXe,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>nXe,SEMRESATTRS_PROCESS_OWNER:()=>oXe,SEMRESATTRS_PROCESS_PID:()=>tXe,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>lXe,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>LL,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>uXe,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>cXe,SEMRESATTRS_SERVICE_NAME:()=>kL,SEMRESATTRS_SERVICE_NAMESPACE:()=>FL,SEMRESATTRS_SERVICE_VERSION:()=>pXe,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>fXe,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>sy,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>iy,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>ay,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>mXe,SEMRESATTRS_WEBENGINE_NAME:()=>hXe,SEMRESATTRS_WEBENGINE_VERSION:()=>dXe,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>nQe,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>iQe,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>sQe,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>oQe,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>uQe,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>lQe,SemanticAttributes:()=>f$e,SemanticResourceAttributes:()=>yXe,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>lze,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>cze,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>pze,TELEMETRYSDKLANGUAGEVALUES_GO:()=>fze,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>hze,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>BL,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>dze,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>mze,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>yze,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>gze,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>Aze,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>Pze,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>Cze,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>wze,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>Ize,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>Oze,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>Dze,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>Nze,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>Rze,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>Mze,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>Lze,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>kze,TelemetrySdkLanguageValues:()=>Sze});var dn=chunkTKGT252T_js.b(()=>{Zee();Ane();Pne();Cne();});var uy,Op,wne=chunkTKGT252T_js.b(()=>{AL();dn();Op=(uy={},uy[iy]="opentelemetry",uy[LL]="node",uy[sy]=BL,uy[ay]=UA,uy);});function ly(e){e.unref();}var Ine=chunkTKGT252T_js.b(()=>{});var One=chunkTKGT252T_js.b(()=>{tz();rz();iz();oz();uz();wne();Ine();});var qL=chunkTKGT252T_js.b(()=>{One();});function Qo(e){var t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*YQe);return [r,n]}function cy(){var e=Za.timeOrigin;if(typeof e!="number"){var t=Za;e=t.timing&&t.timing.fetchStart;}return e}function RE(e){var t=Qo(cy()),r=Qo(typeof e=="number"?e:Za.now());return LE(t,r)}function Nne(e){if(py(e))return e;if(typeof e=="number")return e=HA&&(r[1]-=HA,r[0]+=1),r}var Dne,KQe,YQe,HA,Fne=chunkTKGT252T_js.b(()=>{qL();Dne=9,KQe=6,YQe=Math.pow(10,KQe),HA=Math.pow(10,Dne);});var fy,Bne=chunkTKGT252T_js.b(()=>{(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED";})(fy||(fy={}));});var WQe,$A,jne=chunkTKGT252T_js.b(()=>{pt();WQe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},$A=function(){function e(t){t===void 0&&(t={});var r;this._propagators=(r=t.propagators)!==null&&r!==void 0?r:[],this._fields=Array.from(new Set(this._propagators.map(function(n){return typeof n.fields=="function"?n.fields():[]}).reduce(function(n,i){return n.concat(i)},[])));}return e.prototype.inject=function(t,r,n){var i,s;try{for(var a=WQe(this._propagators),o=a.next();!o.done;o=a.next()){var u=o.value;try{u.inject(t,r,n);}catch(l){_t.warn("Failed to inject with "+u.constructor.name+". Err: "+l.message);}}}catch(l){i={error:l};}finally{try{o&&!o.done&&(s=a.return)&&s.call(a);}finally{if(i)throw i.error}}},e.prototype.extract=function(t,r,n){return this._propagators.reduce(function(i,s){try{return s.extract(i,r,n)}catch(a){_t.warn("Failed to inject with "+s.constructor.name+". Err: "+a.message);}return i},t)},e.prototype.fields=function(){return this._fields.slice()},e}();});function Une(e){return JQe.test(e)}function qne(e){return QQe.test(e)&&!ZQe.test(e)}var VL,XQe,zQe,JQe,QQe,ZQe,Vne=chunkTKGT252T_js.b(()=>{VL="[_0-9a-z-*/]",XQe="[a-z]"+VL+"{0,255}",zQe="[a-z0-9]"+VL+"{0,240}@[a-z]"+VL+"{0,13}",JQe=new RegExp("^(?:"+XQe+"|"+zQe+")$"),QQe=/^[ -~]{0,255}[!-~]$/,ZQe=/,|=/;});var Hne,eZe,Gne,$ne,qh,HL=chunkTKGT252T_js.b(()=>{Vne();Hne=32,eZe=512,Gne=",",$ne="=",qh=function(){function e(t){this._internalState=new Map,t&&this._parse(t);}return e.prototype.set=function(t,r){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n},e.prototype.unset=function(t){var r=this._clone();return r._internalState.delete(t),r},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(r,n){return r.push(n+$ne+t.get(n)),r},[]).join(Gne)},e.prototype._parse=function(t){t.length>eZe||(this._internalState=t.split(Gne).reverse().reduce(function(r,n){var i=n.trim(),s=i.indexOf($ne);if(s!==-1){var a=i.slice(0,s),o=i.slice(s+1,n.length);Une(a)&&qne(o)&&r.set(a,o);}return r},new Map),this._internalState.size>Hne&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Hne))));},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}();});function GL(e){var t=aZe.exec(e);return !t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var kE,FE,tZe,rZe,nZe,iZe,sZe,aZe,KA,Kne=chunkTKGT252T_js.b(()=>{pt();_E();HL();kE="traceparent",FE="tracestate",tZe="00",rZe="(?!ff)[\\da-f]{2}",nZe="(?![0]{32})[\\da-f]{32}",iZe="(?![0]{16})[\\da-f]{16}",sZe="[\\da-f]{2}",aZe=new RegExp("^\\s?("+rZe+")-("+nZe+")-("+iZe+")-("+sZe+")(-.*)?\\s?$");KA=function(){function e(){}return e.prototype.inject=function(t,r,n){var i=qt.getSpanContext(t);if(!(!i||qu(t)||!oa(i))){var s=tZe+"-"+i.traceId+"-"+i.spanId+"-0"+Number(i.traceFlags||hn.NONE).toString(16);n.set(r,kE,s),i.traceState&&n.set(r,FE,i.traceState.serialize());}},e.prototype.extract=function(t,r,n){var i=n.get(r,kE);if(!i)return t;var s=Array.isArray(i)?i[0]:i;if(typeof s!="string")return t;var a=GL(s);if(!a)return t;a.isRemote=!0;var o=n.get(r,FE);if(o){var u=Array.isArray(o)?o.join(","):o;a.traceState=new qh(typeof u=="string"?u:void 0);}return qt.setSpanContext(t,a)},e.prototype.fields=function(){return [kE,FE]},e}();});function Yne(e,t){return e.setValue($L,t)}function Wne(e){return e.deleteValue($L)}function Xne(e){return e.getValue($L)}var $L,YA,zne=chunkTKGT252T_js.b(()=>{pt();$L=xs("OpenTelemetry SDK Context Key RPC_METADATA");(function(e){e.HTTP="http";})(YA||(YA={}));});var BE,KL=chunkTKGT252T_js.b(()=>{pt();BE=function(){function e(){}return e.prototype.shouldSample=function(){return {decision:ua.NOT_RECORD}},e.prototype.toString=function(){return "AlwaysOffSampler"},e}();});var hy,YL=chunkTKGT252T_js.b(()=>{pt();hy=function(){function e(){}return e.prototype.shouldSample=function(){return {decision:ua.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return "AlwaysOnSampler"},e}();});var Jne,Qne=chunkTKGT252T_js.b(()=>{pt();TL();KL();YL();Jne=function(){function e(t){var r,n,i,s;this._root=t.root,this._root||(Jo(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new hy),this._remoteParentSampled=(r=t.remoteParentSampled)!==null&&r!==void 0?r:new hy,this._remoteParentNotSampled=(n=t.remoteParentNotSampled)!==null&&n!==void 0?n:new BE,this._localParentSampled=(i=t.localParentSampled)!==null&&i!==void 0?i:new hy,this._localParentNotSampled=(s=t.localParentNotSampled)!==null&&s!==void 0?s:new BE;}return e.prototype.shouldSample=function(t,r,n,i,s,a){var o=qt.getSpanContext(t);return !o||!oa(o)?this._root.shouldSample(t,r,n,i,s,a):o.isRemote?o.traceFlags&hn.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,i,s,a):this._remoteParentNotSampled.shouldSample(t,r,n,i,s,a):o.traceFlags&hn.SAMPLED?this._localParentSampled.shouldSample(t,r,n,i,s,a):this._localParentNotSampled.shouldSample(t,r,n,i,s,a)},e.prototype.toString=function(){return "ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},e}();});var Zne,eie=chunkTKGT252T_js.b(()=>{pt();Zne=function(){function e(t){t===void 0&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295);}return e.prototype.shouldSample=function(t,r){return {decision:Fh(r)&&this._accumulate(r)=1?1:t<=0?0:t},e.prototype._accumulate=function(t){for(var r=0,n=0;n>>0;}return r},e}();});function hZe(e,t){return function(r){return e(t(r))}}function WL(e){if(!dZe(e)||mZe(e)!==oZe)return !1;var t=fZe(e);if(t===null)return !0;var r=nie.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&tie.call(r)===pZe}function dZe(e){return e!=null&&typeof e=="object"}function mZe(e){return e==null?e===void 0?lZe:uZe:Vh&&Vh in Object(e)?yZe(e):gZe(e)}function yZe(e){var t=nie.call(e,Vh),r=e[Vh],n=!1;try{e[Vh]=void 0,n=!0;}catch{}var i=iie.call(e);return n&&(t?e[Vh]=r:delete e[Vh]),i}function gZe(e){return iie.call(e)}var oZe,uZe,lZe,cZe,tie,pZe,fZe,rie,nie,Vh,iie,sie=chunkTKGT252T_js.b(()=>{oZe="[object Object]",uZe="[object Null]",lZe="[object Undefined]",cZe=Function.prototype,tie=cZe.toString,pZe=tie.call(Object),fZe=hZe(Object.getPrototypeOf,Object),rie=Object.prototype,nie=rie.hasOwnProperty,Vh=Symbol?Symbol.toStringTag:void 0,iie=rie.toString;});function zA(){for(var e=[],t=0;t0;)r=oie(r,e.shift(),0,n);return r}function XL(e){return XA(e)?e.slice():e}function oie(e,t,r,n){r===void 0&&(r=0);var i;if(!(r>SZe)){if(r++,WA(e)||WA(t)||uie(t))i=XL(t);else if(XA(e)){if(i=e.slice(),XA(t))for(var s=0,a=t.length;s"u"?delete i[u]:i[u]=l;else {var c=i[u],p=l;if(aie(e,u,n)||aie(t,u,n))delete i[u];else {if(jE(c)&&jE(p)){var h=n.get(c)||[],f=n.get(p)||[];h.push({obj:e,key:u}),f.push({obj:t,key:u}),n.set(c,h),n.set(p,f);}i[u]=oie(i[u],l,r,n);}}}}else i=t;return i}}function aie(e,t,r){for(var n=r.get(e[t])||[],i=0,s=n.length;i"u"||e instanceof Date||e instanceof RegExp||e===null}function TZe(e,t){return !(!WL(e)||!WL(t))}var SZe,lie=chunkTKGT252T_js.b(()=>{sie();SZe=20;});function cie(e,t){var r,n=new Promise(function(s,a){r=setTimeout(function(){a(new zL("Operation timed out."));},t);});return Promise.race([e,n]).then(function(i){return clearTimeout(r),i},function(i){throw clearTimeout(r),i})}var EZe,zL,pie=chunkTKGT252T_js.b(()=>{EZe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i;}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s]);},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t;}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n);}}(),zL=function(e){EZe(t,e);function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return t}(Error);});function JL(e,t){return typeof t=="string"?e===t:!!e.match(t)}function fie(e,t){var r,n;if(!t)return !1;try{for(var i=bZe(t),s=i.next();!s.done;s=i.next()){var a=s.value;if(JL(e,a))return !0}}catch(o){r={error:o};}finally{try{s&&!s.done&&(n=i.return)&&n.call(i);}finally{if(r)throw r.error}}return !1}var bZe,hie=chunkTKGT252T_js.b(()=>{bZe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};});function UE(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var die=chunkTKGT252T_js.b(()=>{});var mie,yie=chunkTKGT252T_js.b(()=>{mie=function(){function e(){var t=this;this._promise=new Promise(function(r,n){t._resolve=r,t._reject=n;});}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t);},e.prototype.reject=function(t){this._reject(t);},e}();});var vZe,_Ze,JA,gie=chunkTKGT252T_js.b(()=>{yie();vZe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s},_Ze=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n{pt();_E();});var eo={};chunkTKGT252T_js.d(eo,{AlwaysOffSampler:()=>BE,AlwaysOnSampler:()=>hy,AnchoredClock:()=>WX,BindOnceFuture:()=>JA,CompositePropagator:()=>$A,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Uh,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>jh,DEFAULT_ENVIRONMENT:()=>PE,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>bL,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>vL,ExportResultCode:()=>fy,ParentBasedSampler:()=>Jne,RPCType:()=>YA,RandomIdGenerator:()=>jA,SDK_INFO:()=>Op,TRACE_PARENT_HEADER:()=>kE,TRACE_STATE_HEADER:()=>FE,TimeoutError:()=>zL,TraceIdRatioBasedSampler:()=>Zne,TraceState:()=>qh,TracesSamplerValues:()=>la,VERSION:()=>UA,W3CBaggagePropagator:()=>ty,W3CTraceContextPropagator:()=>KA,_globalThis:()=>LA,addHrTimes:()=>LE,baggageUtils:()=>xZe,callWithTimeout:()=>cie,deleteRPCMetadata:()=>Wne,getEnv:()=>Oa,getEnvWithoutDefaults:()=>ry,getRPCMetadata:()=>Xne,getTimeOrigin:()=>cy,globalErrorHandler:()=>Jo,hexToBase64:()=>FA,hexToBinary:()=>kA,hrTime:()=>RE,hrTimeDuration:()=>GA,hrTimeToMicroseconds:()=>kne,hrTimeToMilliseconds:()=>Lne,hrTimeToNanoseconds:()=>Mne,hrTimeToTimeStamp:()=>Rne,internal:()=>AZe,isAttributeKey:()=>gL,isAttributeValue:()=>AE,isTimeInput:()=>ME,isTimeInputHrTime:()=>py,isTracingSuppressed:()=>qu,isUrlIgnored:()=>fie,isWrapped:()=>UE,loggingErrorHandler:()=>MA,merge:()=>zA,millisToHrTime:()=>Qo,otperformance:()=>Za,parseEnvironment:()=>CE,parseTraceParent:()=>GL,sanitizeAttributes:()=>Ip,setGlobalErrorHandler:()=>ez,setRPCMetadata:()=>Yne,suppressTracing:()=>zo,timeInputToHrTime:()=>Nne,unrefTimer:()=>ly,unsuppressTracing:()=>qX,urlMatches:()=>JL});var xZe,AZe,jn=chunkTKGT252T_js.b(()=>{YX();XX();QX();TL();SL();Fne();xL();Bne();yL();qL();jne();Kne();zne();KL();YL();Qne();eie();_E();HL();_L();lie();EL();pie();hie();die();gie();AL();Tie();xZe={getKeyPairs:RA,serializeKeyPairs:NA,parseKeyPairsIntoRecord:KX,parsePairKeyValue:xE},AZe={_export:Sie};});var Eie=chunkTKGT252T_js.c(qE=>{Object.defineProperty(qE,"__esModule",{value:!0});qE.AttributeNames=void 0;(function(e){e.HTTP_ERROR_NAME="http.error_name",e.HTTP_ERROR_MESSAGE="http.error_message",e.HTTP_STATUS_TEXT="http.status_text";})(qE.AttributeNames||(qE.AttributeNames={}));});var QL=chunkTKGT252T_js.c(Et=>{Object.defineProperty(Et,"__esModule",{value:!0});Et.headerCapture=Et.getIncomingRequestMetricAttributesOnResponse=Et.getIncomingRequestAttributesOnResponse=Et.getIncomingRequestMetricAttributes=Et.getIncomingRequestAttributes=Et.getOutgoingRequestMetricAttributesOnResponse=Et.getOutgoingRequestAttributesOnResponse=Et.setAttributesFromHttpKind=Et.getOutgoingRequestMetricAttributes=Et.getOutgoingRequestAttributes=Et.extractHostnameAndPort=Et.isValidOptionsType=Et.getRequestInfo=Et.isCompressed=Et.setResponseContentLengthAttribute=Et.setRequestContentLengthAttribute=Et.setSpanWithError=Et.isIgnored=Et.satisfiesPattern=Et.parseResponseStatus=Et.getAbsoluteUrl=void 0;var VE=(pt(),chunkTKGT252T_js.f(Gr)),ft=(dn(),chunkTKGT252T_js.f(si)),bie=(jn(),chunkTKGT252T_js.f(eo)),QA=chunkTKGT252T_js.a("url"),ZA=Eie(),CZe=(e,t,r="http:")=>{let n=e||{},i=n.protocol||r,s=(n.port||"").toString(),a=n.path||"/",o=n.host||n.hostname||t.host||"localhost";return o.indexOf(":")===-1&&s&&s!=="80"&&s!=="443"&&(o+=`:${s}`),`${i}//${o}${a}`};Et.getAbsoluteUrl=CZe;var wZe=(e,t)=>{let r=e===VE.SpanKind.CLIENT?400:500;return t&&t>=100&&t{if(typeof t=="string")return t===e;if(t instanceof RegExp)return t.test(e);if(typeof t=="function")return t(e);throw new TypeError("Pattern is in unsupported datatype")};Et.satisfiesPattern=IZe;var OZe=(e,t,r)=>{if(!t)return !1;try{for(let n of t)if((0,Et.satisfiesPattern)(e,n))return !0}catch(n){r&&r(n);}return !1};Et.isIgnored=OZe;var DZe=(e,t)=>{let r=t.message;e.setAttribute(ZA.AttributeNames.HTTP_ERROR_NAME,t.name),e.setAttribute(ZA.AttributeNames.HTTP_ERROR_MESSAGE,r),e.setStatus({code:VE.SpanStatusCode.ERROR,message:r}),e.recordException(t);};Et.setSpanWithError=DZe;var NZe=(e,t)=>{let r=vie(e.headers);r!==null&&((0, Et.isCompressed)(e.headers)?t[ft.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH]=r:t[ft.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED]=r);};Et.setRequestContentLengthAttribute=NZe;var RZe=(e,t)=>{let r=vie(e.headers);r!==null&&((0, Et.isCompressed)(e.headers)?t[ft.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH]=r:t[ft.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED]=r);};Et.setResponseContentLengthAttribute=RZe;function vie(e){let t=e["content-length"];if(t===void 0)return null;let r=parseInt(t,10);return isNaN(r)?null:r}var MZe=e=>{let t=e["content-encoding"];return !!t&&t!=="identity"};Et.isCompressed=MZe;var LZe=(e,t)=>{let r="/",n="",i;if(typeof e=="string")i=QA.parse(e),r=i.pathname||"/",n=`${i.protocol||"http:"}//${i.host}`,t!==void 0&&Object.assign(i,t);else if(e instanceof QA.URL)i={protocol:e.protocol,hostname:typeof e.hostname=="string"&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,path:`${e.pathname||""}${e.search||""}`},e.port!==""&&(i.port=Number(e.port)),(e.username||e.password)&&(i.auth=`${e.username}:${e.password}`),r=e.pathname,n=e.origin,t!==void 0&&Object.assign(i,t);else {i=Object.assign({protocol:e.host?"http:":void 0},e),r=e.pathname,!r&&i.path&&(r=QA.parse(i.path).pathname||"/");let a=i.host||(i.port!=null?`${i.hostname}${i.port}`:i.hostname);n=`${i.protocol||"http:"}//${a}`;}let s=i.method?i.method.toUpperCase():"GET";return {origin:n,pathname:r,method:s,optionsParsed:i}};Et.getRequestInfo=LZe;var kZe=e=>{if(!e)return !1;let t=typeof e;return t==="string"||t==="object"&&!Array.isArray(e)};Et.isValidOptionsType=kZe;var FZe=e=>{var t;if(e.hostname&&e.port)return {hostname:e.hostname,port:e.port};let r=((t=e.host)===null||t===void 0?void 0:t.match(/^([^:/ ]+)(:\d{1,5})?/))||null,n=e.hostname||(r===null?"localhost":r[1]),i=e.port;return i||(r&&r[2]?i=r[2].substring(1):i=e.protocol==="https:"?"443":"80"),{hostname:n,port:i}};Et.extractHostnameAndPort=FZe;var BZe=(e,t)=>{var r;let n=t.hostname,i=t.port,s=e.method,a=s?s.toUpperCase():"GET",o=e.headers||{},u=o["user-agent"],l={[ft.SEMATTRS_HTTP_URL]:(0, Et.getAbsoluteUrl)(e,o,`${t.component}:`),[ft.SEMATTRS_HTTP_METHOD]:a,[ft.SEMATTRS_HTTP_TARGET]:e.path||"/",[ft.SEMATTRS_NET_PEER_NAME]:n,[ft.SEMATTRS_HTTP_HOST]:(r=o.host)!==null&&r!==void 0?r:`${n}:${i}`};return u!==void 0&&(l[ft.SEMATTRS_HTTP_USER_AGENT]=u),Object.assign(l,t.hookAttributes)};Et.getOutgoingRequestAttributes=BZe;var jZe=e=>{let t={};return t[ft.SEMATTRS_HTTP_METHOD]=e[ft.SEMATTRS_HTTP_METHOD],t[ft.SEMATTRS_NET_PEER_NAME]=e[ft.SEMATTRS_NET_PEER_NAME],t};Et.getOutgoingRequestMetricAttributes=jZe;var UZe=(e,t)=>{e&&(t[ft.SEMATTRS_HTTP_FLAVOR]=e,e.toUpperCase()!=="QUIC"?t[ft.SEMATTRS_NET_TRANSPORT]=ft.NETTRANSPORTVALUES_IP_TCP:t[ft.SEMATTRS_NET_TRANSPORT]=ft.NETTRANSPORTVALUES_IP_UDP);};Et.setAttributesFromHttpKind=UZe;var qZe=e=>{let{statusCode:t,statusMessage:r,httpVersion:n,socket:i}=e,s={};if(i){let{remoteAddress:a,remotePort:o}=i;s[ft.SEMATTRS_NET_PEER_IP]=a,s[ft.SEMATTRS_NET_PEER_PORT]=o;}return (0, Et.setResponseContentLengthAttribute)(e,s),t&&(s[ft.SEMATTRS_HTTP_STATUS_CODE]=t,s[ZA.AttributeNames.HTTP_STATUS_TEXT]=(r||"").toUpperCase()),(0, Et.setAttributesFromHttpKind)(n,s),s};Et.getOutgoingRequestAttributesOnResponse=qZe;var VZe=e=>{let t={};return t[ft.SEMATTRS_NET_PEER_PORT]=e[ft.SEMATTRS_NET_PEER_PORT],t[ft.SEMATTRS_HTTP_STATUS_CODE]=e[ft.SEMATTRS_HTTP_STATUS_CODE],t[ft.SEMATTRS_HTTP_FLAVOR]=e[ft.SEMATTRS_HTTP_FLAVOR],t};Et.getOutgoingRequestMetricAttributesOnResponse=VZe;var HZe=(e,t)=>{let r=e.headers,n=r["user-agent"],i=r["x-forwarded-for"],s=e.method||"GET",a=e.httpVersion,o=e.url?QA.parse(e.url):null,u=(o==null?void 0:o.host)||r.host,l=(o==null?void 0:o.hostname)||(u==null?void 0:u.replace(/^(.*)(:[0-9]{1,5})/,"$1"))||"localhost",c=t.serverName,p={[ft.SEMATTRS_HTTP_URL]:(0, Et.getAbsoluteUrl)(o,r,`${t.component}:`),[ft.SEMATTRS_HTTP_HOST]:u,[ft.SEMATTRS_NET_HOST_NAME]:l,[ft.SEMATTRS_HTTP_METHOD]:s,[ft.SEMATTRS_HTTP_SCHEME]:t.component};return typeof i=="string"&&(p[ft.SEMATTRS_HTTP_CLIENT_IP]=i.split(",")[0]),typeof c=="string"&&(p[ft.SEMATTRS_HTTP_SERVER_NAME]=c),o&&(p[ft.SEMATTRS_HTTP_TARGET]=o.path||"/"),n!==void 0&&(p[ft.SEMATTRS_HTTP_USER_AGENT]=n),(0, Et.setRequestContentLengthAttribute)(e,p),(0, Et.setAttributesFromHttpKind)(a,p),Object.assign(p,t.hookAttributes)};Et.getIncomingRequestAttributes=HZe;var GZe=e=>{let t={};return t[ft.SEMATTRS_HTTP_SCHEME]=e[ft.SEMATTRS_HTTP_SCHEME],t[ft.SEMATTRS_HTTP_METHOD]=e[ft.SEMATTRS_HTTP_METHOD],t[ft.SEMATTRS_NET_HOST_NAME]=e[ft.SEMATTRS_NET_HOST_NAME],t[ft.SEMATTRS_HTTP_FLAVOR]=e[ft.SEMATTRS_HTTP_FLAVOR],t};Et.getIncomingRequestMetricAttributes=GZe;var $Ze=(e,t)=>{let{socket:r}=e,{statusCode:n,statusMessage:i}=t,s=(0, bie.getRPCMetadata)(VE.context.active()),a={};if(r){let{localAddress:o,localPort:u,remoteAddress:l,remotePort:c}=r;a[ft.SEMATTRS_NET_HOST_IP]=o,a[ft.SEMATTRS_NET_HOST_PORT]=u,a[ft.SEMATTRS_NET_PEER_IP]=l,a[ft.SEMATTRS_NET_PEER_PORT]=c;}return a[ft.SEMATTRS_HTTP_STATUS_CODE]=n,a[ZA.AttributeNames.HTTP_STATUS_TEXT]=(i||"").toUpperCase(),(s==null?void 0:s.type)===bie.RPCType.HTTP&&s.route!==void 0&&(a[ft.SEMATTRS_HTTP_ROUTE]=s.route),a};Et.getIncomingRequestAttributesOnResponse=$Ze;var KZe=e=>{let t={};return t[ft.SEMATTRS_HTTP_STATUS_CODE]=e[ft.SEMATTRS_HTTP_STATUS_CODE],t[ft.SEMATTRS_NET_HOST_PORT]=e[ft.SEMATTRS_NET_HOST_PORT],e[ft.SEMATTRS_HTTP_ROUTE]!==void 0&&(t[ft.SEMATTRS_HTTP_ROUTE]=e[ft.SEMATTRS_HTTP_ROUTE]),t};Et.getIncomingRequestMetricAttributesOnResponse=KZe;function YZe(e,t){let r=new Map;for(let n=0,i=t.length;n{for(let s of r.keys()){let a=i(s);if(a===void 0)continue;let o=r.get(s),u=`http.${e}.header.${o}`;typeof a=="string"?n.setAttribute(u,[a]):Array.isArray(a)?n.setAttribute(u,a):n.setAttribute(u,[a]);}}}Et.headerCapture=YZe;});var _ie=chunkTKGT252T_js.c(eP=>{Object.defineProperty(eP,"__esModule",{value:!0});eP.VERSION=void 0;eP.VERSION="0.53.0";});var ZL,xie=chunkTKGT252T_js.b(()=>{ZL=function(){function e(){}return e.prototype.emit=function(t){},e}(),new ZL;});var WZe,ek,Aie=chunkTKGT252T_js.b(()=>{xie();WZe=function(){function e(){}return e.prototype.getLogger=function(t,r,n){return new ZL},e}(),ek=new WZe;});var tP,Pie=chunkTKGT252T_js.b(()=>{tP=typeof globalThis=="object"?globalThis:global;});var Cie=chunkTKGT252T_js.b(()=>{Pie();});var wie=chunkTKGT252T_js.b(()=>{Cie();});function Iie(e,t,r){return function(n){return n===e?t:r}}var HE,dy,tk,Oie=chunkTKGT252T_js.b(()=>{wie();HE=Symbol.for("io.opentelemetry.js.api.logs"),dy=tP;tk=1;});var Die,Nie=chunkTKGT252T_js.b(()=>{Oie();Aie();Die=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(t){return dy[HE]?this.getLoggerProvider():(dy[HE]=Iie(tk,t,ek),t)},e.prototype.getLoggerProvider=function(){var t,r;return (r=(t=dy[HE])===null||t===void 0?void 0:t.call(dy,tk))!==null&&r!==void 0?r:ek},e.prototype.getLogger=function(t,r,n){return this.getLoggerProvider().getLogger(t,r,n)},e.prototype.disable=function(){delete dy[HE];},e}();});var rP,rk=chunkTKGT252T_js.b(()=>{Nie();rP=Die.getInstance();});function Rie(e,t,r,n){for(var i=0,s=e.length;i{});function nP(e){var t,r,n=e.tracerProvider||qt.getTracerProvider(),i=e.meterProvider||Bh.getMeterProvider(),s=e.loggerProvider||rP.getLoggerProvider(),a=(r=(t=e.instrumentations)===null||t===void 0?void 0:t.flat())!==null&&r!==void 0?r:[];return Rie(a,n,i,s),function(){Mie(a);}}var kie=chunkTKGT252T_js.b(()=>{pt();rk();Lie();});var ik=chunkTKGT252T_js.c((w4r,jie)=>{function nk(e){return typeof e=="function"}var Ps=console.error.bind(console);function GE(e,t,r){var n=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:n,writable:!0,value:r});}function $E(e){e&&e.logger&&(nk(e.logger)?Ps=e.logger:Ps("new logger isn't a function, not replacing"));}function Fie(e,t,r){if(!e||!e[t]){Ps("no original function "+t+" to wrap");return}if(!r){Ps("no wrapper function"),Ps(new Error().stack);return}if(!nk(e[t])||!nk(r)){Ps("original object and wrapper must be functions");return}var n=e[t],i=r(n,t);return GE(i,"__original",n),GE(i,"__unwrap",function(){e[t]===i&&GE(e,t,n);}),GE(i,"__wrapped",!0),GE(e,t,i),i}function XZe(e,t,r){if(e)Array.isArray(e)||(e=[e]);else {Ps("must provide one or more modules to patch"),Ps(new Error().stack);return}if(!(t&&Array.isArray(t))){Ps("must provide one or more functions to wrap on modules");return}e.forEach(function(n){t.forEach(function(i){Fie(n,i,r);});});}function Bie(e,t){if(!e||!e[t]){Ps("no function to unwrap."),Ps(new Error().stack);return}if(!e[t].__unwrap)Ps("no original to unwrap to -- has "+t+" already been unwrapped?");else return e[t].__unwrap()}function zZe(e,t){if(e)Array.isArray(e)||(e=[e]);else {Ps("must provide one or more modules to patch"),Ps(new Error().stack);return}if(!(t&&Array.isArray(t))){Ps("must provide one or more functions to unwrap on modules");return}e.forEach(function(r){t.forEach(function(n){Bie(r,n);});});}$E.wrap=Fie;$E.massWrap=XZe;$E.unwrap=Bie;$E.massUnwrap=zZe;jie.exports=$E;});var Dp,sk,Uie,qie=chunkTKGT252T_js.b(()=>{pt();rk();Dp=chunkTKGT252T_js.e(ik()),sk=function(){return sk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{var my=1e3,yy=my*60,gy=yy*60,Hh=gy*24,JZe=Hh*7,QZe=Hh*365.25;Vie.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return ZZe(e);if(r==="number"&&isFinite(e))return t.long?tet(e):eet(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function ZZe(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*QZe;case"weeks":case"week":case"w":return r*JZe;case"days":case"day":case"d":return r*Hh;case"hours":case"hour":case"hrs":case"hr":case"h":return r*gy;case"minutes":case"minute":case"mins":case"min":case"m":return r*yy;case"seconds":case"second":case"secs":case"sec":case"s":return r*my;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function eet(e){var t=Math.abs(e);return t>=Hh?Math.round(e/Hh)+"d":t>=gy?Math.round(e/gy)+"h":t>=yy?Math.round(e/yy)+"m":t>=my?Math.round(e/my)+"s":e+"ms"}function tet(e){var t=Math.abs(e);return t>=Hh?iP(e,t,Hh,"day"):t>=gy?iP(e,t,gy,"hour"):t>=yy?iP(e,t,yy,"minute"):t>=my?iP(e,t,my,"second"):e+" ms"}function iP(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var ak=chunkTKGT252T_js.c((R4r,Gie)=>{function ret(e){r.debug=r,r.default=r,r.coerce=u,r.disable=s,r.enable=i,r.enabled=a,r.humanize=Hie(),r.destroy=l,Object.keys(e).forEach(c=>{r[c]=e[c];}),r.names=[],r.skips=[],r.formatters={};function t(c){let p=0;for(let h=0;h{if(b==="%%")return "%";S++;let D=r.formatters[A];if(typeof D=="function"){let P=y[S];b=D.call(g,P),y.splice(S,1),S--;}return b}),r.formatArgs.call(g,y),(g.log||r.log).apply(g,y);}return m.namespace=c,m.useColors=r.useColors(),m.color=r.selectColor(c),m.extend=n,m.destroy=r.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(f!==r.namespaces&&(f=r.namespaces,d=r.enabled(c)),d),set:y=>{h=y;}}),typeof r.init=="function"&&r.init(m),m}function n(c,p){let h=r(this.namespace+(typeof p>"u"?":":p)+c);return h.log=this.log,h}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let p,h=(typeof c=="string"?c:"").split(/[\s,]+/),f=h.length;for(p=0;p"-"+p)].join(",");return r.enable(""),c}function a(c){if(c[c.length-1]==="*")return !0;let p,h;for(p=0,h=r.skips.length;p{Da.formatArgs=iet;Da.save=set;Da.load=aet;Da.useColors=net;Da.storage=oet();Da.destroy=(()=>{let e=!1;return ()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})();Da.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function net(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return !0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return !1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function iet(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+sP.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r));}),e.splice(n,0,t);}Da.log=console.debug||console.log||(()=>{});function set(e){try{e?Da.storage.setItem("debug",e):Da.storage.removeItem("debug");}catch{}}function aet(){let e;try{e=Da.storage.getItem("debug");}catch{}return !e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function oet(){try{return localStorage}catch{}}sP.exports=ak()(Da);var{formatters:uet}=sP.exports;uet.j=function(e){try{return JSON.stringify(e)}catch(t){return "[UnexpectedJSONParseError]: "+t.message}};});var Yie=chunkTKGT252T_js.c((Mi,oP)=>{var cet=chunkTKGT252T_js.a("tty"),aP=chunkTKGT252T_js.a("util");Mi.init=get;Mi.log=det;Mi.formatArgs=fet;Mi.save=met;Mi.load=yet;Mi.useColors=pet;Mi.destroy=aP.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Mi.colors=[6,2,3,4,5,1];try{let e=chunkF6FLWRPJ_js.B();e&&(e.stderr||e).level>=2&&(Mi.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]);}catch{}Mi.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[t];return /^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function pet(){return "colors"in Mi.inspectOpts?!!Mi.inspectOpts.colors:cet.isatty(process.stderr.fd)}function fet(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${t} \x1B[0m`;e[0]=s+e[0].split(` `).join(` `+s),e.push(i+"m+"+oP.exports.humanize(this.diff)+"\x1B[0m");}else e[0]=het()+t+" "+e[0];}function het(){return Mi.inspectOpts.hideDate?"":new Date().toISOString()+" "}function det(...e){return process.stderr.write(aP.formatWithOptions(Mi.inspectOpts,...e)+` `)}function met(e){e?process.env.DEBUG=e:delete process.env.DEBUG;}function yet(){return process.env.DEBUG}function get(e){e.inspectOpts={};let t=Object.keys(Mi.inspectOpts);for(let r=0;rt.trim()).join(" ")};Kie.O=function(e){return this.inspectOpts.colors=this.useColors,aP.inspect(e,this.inspectOpts)};});var Wie=chunkTKGT252T_js.c((M4r,ok)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ok.exports=$ie():ok.exports=Yie();});var lk=chunkTKGT252T_js.c((L4r,Xie)=>{var uk=chunkTKGT252T_js.a("path");Xie.exports=function(e){var t=e.split(uk.sep),r=t.lastIndexOf("node_modules");if(r!==-1&&t[r+1]){var n=t[r+1][0]==="@",i=n?t[r+1]+"/"+t[r+2]:t[r+1],s=n?3:2;return {name:i,basedir:t.slice(0,r+s).join(uk.sep),path:t.slice(r+s).join(uk.sep)}}};});var zie=chunkTKGT252T_js.c((k4r,Tet)=>{Tet.exports={name:"require-in-the-middle",version:"7.4.0",description:"Module to hook into the Node.js require function",main:"index.js",types:"types/index.d.ts",dependencies:{debug:"^4.3.5","module-details-from-path":"^1.0.3",resolve:"^1.22.8"},devDependencies:{"@babel/core":"^7.9.0","@babel/preset-env":"^7.9.5","@babel/preset-typescript":"^7.9.0","@babel/register":"^7.9.0","ipp-printer":"^1.0.0",patterns:"^1.0.3",roundround:"^0.2.0",semver:"^6.3.0",standard:"^14.3.1",tape:"^4.11.0"},scripts:{test:"npm run test:lint && npm run test:tape && npm run test:babel","test:lint":"standard","test:tape":"tape test/*.js","test:babel":"node test/babel/babel-register.js"},repository:{type:"git",url:"git+https://github.com/elastic/require-in-the-middle.git"},keywords:["require","hook","shim","shimmer","shimming","patch","monkey","monkeypatch","module","load"],files:["types"],author:"Thomas Watson Steen (https://twitter.com/wa7son)",license:"MIT",bugs:{url:"https://github.com/elastic/require-in-the-middle/issues"},homepage:"https://github.com/elastic/require-in-the-middle#readme",engines:{node:">=8.6.0"}};});var hk=chunkTKGT252T_js.c((F4r,fk)=>{var Sy=chunkTKGT252T_js.a("path"),Ul=chunkTKGT252T_js.a("module"),ck=chunkF6FLWRPJ_js.o(),ai=Wie()("require-in-the-middle"),Eet=lk();fk.exports=YE;fk.exports.Hook=YE;var KE;if(Ul.isBuiltin)KE=Ul.isBuiltin;else {let[e,t]=process.versions.node.split(".").map(Number);e===8&&t<8?KE=r=>r==="http2"?!0:!!ck.core[r]:KE=r=>!!ck.core[r];}var bet=/([/\\]index)?(\.js)?$/,pk=class{constructor(){this._localCache=new Map,this._kRitmExports=Symbol("RitmExports");}has(t,r){if(this._localCache.has(t))return !0;if(r)return !1;{let n=chunkTKGT252T_js.a.cache[t];return !!(n&&this._kRitmExports in n)}}get(t,r){let n=this._localCache.get(t);if(n!==void 0)return n;if(!r){let i=chunkTKGT252T_js.a.cache[t];return i&&i[this._kRitmExports]}}set(t,r,n){n?this._localCache.set(t,r):t in chunkTKGT252T_js.a.cache?chunkTKGT252T_js.a.cache[t][this._kRitmExports]=r:(ai('non-core module is unexpectedly not in require.cache: "%s"',t),this._localCache.set(t,r));}};function YE(e,t,r){if(!(this instanceof YE))return new YE(e,t,r);if(typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),typeof Ul._resolveFilename!="function"){console.error("Error: Expected Module._resolveFilename to be a function (was: %s) - aborting!",typeof Ul._resolveFilename),console.error("Please report this error as an issue related to Node.js %s at %s",process.version,zie().bugs.url);return}this._cache=new pk,this._unhooked=!1,this._origRequire=Ul.prototype.require;let n=this,i=new Set,s=t?t.internals===!0:!1,a=Array.isArray(e);ai("registering require hook"),this._require=Ul.prototype.require=function(u){return n._unhooked===!0?(ai("ignoring require call - module is soft-unhooked"),n._origRequire.apply(this,arguments)):o.call(this,arguments,!1)},typeof process.getBuiltinModule=="function"&&(this._origGetBuiltinModule=process.getBuiltinModule,this._getBuiltinModule=process.getBuiltinModule=function(u){return n._unhooked===!0?(ai("ignoring process.getBuiltinModule call - module is soft-unhooked"),n._origGetBuiltinModule.apply(this,arguments)):o.call(this,arguments,!0)});function o(u,l){let c=u[0],p=KE(c),h;if(p){if(h=c,c.startsWith("node:")){let v=c.slice(5);KE(v)&&(h=v);}}else {if(l)return ai("call to process.getBuiltinModule with unknown built-in id"),n._origGetBuiltinModule.apply(this,u);try{h=Ul._resolveFilename(c,this);}catch(v){return ai('Module._resolveFilename("%s") threw %j, calling original Module.require',c,v.message),n._origRequire.apply(this,u)}}let f,d;if(ai("processing %s module require('%s'): %s",p===!0?"core":"non-core",c,h),n._cache.has(h,p)===!0)return ai("returning already patched cached module: %s",h),n._cache.get(h,p);let m=i.has(h);m===!1&&i.add(h);let y=l?n._origGetBuiltinModule.apply(this,u):n._origRequire.apply(this,u);if(m===!0)return ai("module is in the process of being patched already - ignoring: %s",h),y;if(i.delete(h),p===!0){if(a===!0&&e.includes(h)===!1)return ai("ignoring core module not on whitelist: %s",h),y;f=h;}else if(a===!0&&e.includes(h)){let v=Sy.parse(h);f=v.name,d=v.dir;}else {let v=Eet(h);if(v===void 0)return ai("could not parse filename: %s",h),y;f=v.name,d=v.basedir;let E=vet(v);ai("resolved filename to module: %s (id: %s, resolved: %s, basedir: %s)",f,c,E,d);let S=!1;if(a){if(!c.startsWith(".")&&e.includes(c)&&(f=c,S=!0),!e.includes(f)&&!e.includes(E))return y;e.includes(E)&&E!==f&&(f=E,S=!0);}if(!S){let x;try{x=ck.sync(f,{basedir:d});}catch{return ai("could not resolve module: %s",f),n._cache.set(h,y,p),y}if(x!==h)if(s===!0)f=f+Sy.sep+Sy.relative(d,h),ai("preparing to process require of internal file: %s",f);else return ai("ignoring require of non-main module file: %s",x),n._cache.set(h,y,p),y}}n._cache.set(h,y,p),ai("calling require hook: %s",f);let g=r(y,f,d);return n._cache.set(h,g,p),ai("returning module: %s",f),g}}YE.prototype.unhook=function(){this._unhooked=!0,this._require===Ul.prototype.require?(Ul.prototype.require=this._origRequire,ai("require unhook successful")):ai("require unhook unsuccessful"),process.getBuiltinModule!==void 0&&(this._getBuiltinModule===process.getBuiltinModule?(process.getBuiltinModule=this._origGetBuiltinModule,ai("process.getBuiltinModule unhook successful")):ai("process.getBuiltinModule unhook unsuccessful"));};function vet(e){let t=Sy.sep!=="/"?e.path.split(Sy.sep).join("/"):e.path;return Sy.posix.join(e.name,t).replace(bet,"")}});var Jie,Qie,Zie,WE,ese,tse,rse=chunkTKGT252T_js.b(()=>{Jie=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Qie=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s},Zie=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n{nse=chunkTKGT252T_js.e(hk());rse();_et=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},xet=["afterEach","after","beforeEach","before","describe","it"].every(function(e){return typeof global[e]=="function"}),ise=function(){function e(){this._moduleNameTrie=new tse,this._initialize();}return e.prototype._initialize=function(){var t=this;new nse.Hook(null,{internals:!0},function(r,n,i){var s,a,o=Aet(n),u=t._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:i===void 0});try{for(var l=_et(u),c=l.next();!c.done;c=l.next()){var p=c.value.onRequire;r=p(r,n,i);}}catch(h){s={error:h};}finally{try{c&&!c.done&&(a=l.return)&&a.call(l);}finally{if(s)throw s.error}}return r});},e.prototype.register=function(t,r){var n={moduleName:t,onRequire:r};return this._moduleNameTrie.insert(n),n},e.getInstance=function(){var t;return xet?new e:this._instance=(t=this._instance)!==null&&t!==void 0?t:new e},e}();});var lse=chunkTKGT252T_js.c(XE=>{var ase=[],mk=new WeakMap,ose=new Map,use=[],Pet={set(e,t,r){return mk.get(e)[t](r)},defineProperty(e,t,r){if(!("value"in r))throw new Error("Getters/setters are not supported for exports property descriptors.");return mk.get(e)[t](r.value)}};function Cet(e,t,r,n){ose.set(e,n),mk.set(t,r);let i=new Proxy(t,Pet);ase.forEach(s=>s(e,i)),use.push([e,i]);}XE.register=Cet;XE.importHooks=ase;XE.specifiers=ose;XE.toHook=use;});var Sk=chunkTKGT252T_js.c((H4r,Ty)=>{var cse=chunkTKGT252T_js.a("path"),wet=lk(),{fileURLToPath:pse}=chunkTKGT252T_js.a("url"),{MessageChannel:Iet}=chunkTKGT252T_js.a("worker_threads"),{importHooks:yk,specifiers:Oet,toHook:Det}=lse();function hse(e){yk.push(e),Det.forEach(([t,r])=>e(t,r));}function dse(e){let t=yk.indexOf(e);t>-1&&yk.splice(t,1);}function fse(e,t,r,n){let i=e(t,r,n);i&&i!==t&&(t.default=i);}var gk;function Net(){let{port1:e,port2:t}=new Iet,r=0,n;gk=o=>{r++,e.postMessage(o);},e.on("message",()=>{r--,n&&r<=0&&n();}).unref();function i(){let o=setInterval(()=>{},1e3),u=new Promise(l=>{n=l;}).then(()=>{clearInterval(o);});return r===0&&n(),u}let s=t;return {registerOptions:{data:{addHookMessagePort:s,include:[]},transferList:[s]},addHookMessagePort:s,waitForAllMessagesAcknowledged:i}}function zE(e,t,r){if(!(this instanceof zE))return new zE(e,t,r);typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null);let n=t?t.internals===!0:!1;gk&&Array.isArray(e)&&gk(e),this._iitmHook=(i,s)=>{let a=i,o=i.startsWith("node:"),u;if(o)i=i.replace(/^node:/,"");else {if(i.startsWith("file://"))try{i=pse(i);}catch{}let l=wet(i);l&&(i=l.name,u=l.basedir);}if(e){for(let l of e)if(l===i){if(u){if(n)i=i+cse.sep+cse.relative(u,pse(a));else if(!u.endsWith(Oet.get(a)))continue}fse(r,s,i,u);}}else fse(r,s,i,u);},hse(this._iitmHook);}zE.prototype.unhook=function(){dse(this._iitmHook);};Ty.exports=zE;Ty.exports.Hook=zE;Ty.exports.addHook=hse;Ty.exports.removeHook=dse;Ty.exports.createAddHookMessageChannel=Net;});function mse(e,t,r){var n,i;try{i=e();}catch(s){n=s;}finally{if(t(n,i),n&&!r)throw n;return i}}function yse(e,t,r){return Ret(this,void 0,void 0,function(){var n,i,s;return Met(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,3,4]),[4,e()];case 1:return i=a.sent(),[3,4];case 2:return s=a.sent(),n=s,[3,4];case 3:if(t(n,i),n&&!r)throw n;return [2,i];case 4:return [2]}})})}function uP(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var Ret,Met,Tk=chunkTKGT252T_js.b(()=>{Ret=function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s);})}return new(r||(r=Promise))(function(s,a){function o(c){try{l(n.next(c));}catch(p){a(p);}}function u(c){try{l(n.throw(c));}catch(p){a(p);}}function l(c){c.done?s(c.value):i(c.value).then(o,u);}l((n=n.apply(e,t||[])).next());})},Met=function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=l[0]&2?i.return:l[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,l[1])).done)return s;switch(i=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]"u"?e.includes("*"):e.some(function(n){return (0, Tse.satisfies)(t,n,{includePrerelease:r})})}var Tse,QE,Ese,bse,Let,JE,by,vse=chunkTKGT252T_js.b(()=>{Tse=chunkTKGT252T_js.e(chunkHZVCNUTP_js.a()),QE=chunkTKGT252T_js.e(ik());qie();sse();Ese=chunkTKGT252T_js.e(Sk());pt();bse=chunkTKGT252T_js.e(hk());Tk();Let=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i;}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s]);},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t;}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n);}}(),JE=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},by=function(e){Let(t,e);function t(r,n,i){var s=e.call(this,r,n,i)||this;s._hooks=[],s._requireInTheMiddleSingleton=ise.getInstance(),s._enabled=!1,s._wrap=function(o,u,l){if(uP(o[u])&&s._unwrap(o,u),Doe.types.isProxy(o)){var c=(0, QE.wrap)(Object.assign({},o),u,l);return Object.defineProperty(o,u,{value:c}),c}else return (0, QE.wrap)(o,u,l)},s._unwrap=function(o,u){return Doe.types.isProxy(o)?Object.defineProperty(o,u,{value:o[u]}):(0, QE.unwrap)(o,u)},s._massWrap=function(o,u,l){if(o)Array.isArray(o)||(o=[o]);else {_t.error("must provide one or more modules to patch");return}if(!(u&&Array.isArray(u))){_t.error("must provide one or more functions to wrap on modules");return}o.forEach(function(c){u.forEach(function(p){s._wrap(c,p,l);});});},s._massUnwrap=function(o,u){if(o)Array.isArray(o)||(o=[o]);else {_t.error("must provide one or more modules to patch");return}if(!(u&&Array.isArray(u))){_t.error("must provide one or more functions to wrap on modules");return}o.forEach(function(l){u.forEach(function(c){s._unwrap(l,c);});});};var a=s.init();return a&&!Array.isArray(a)&&(a=[a]),s._modules=a||[],s._config.enabled&&s.enable(),s}return t.prototype._warnOnPreloadedModules=function(){var r=this;this._modules.forEach(function(n){var i=n.name;try{var s=chunkTKGT252T_js.a.resolve(i);chunkTKGT252T_js.a.cache[s]&&r._diag.warn("Module "+i+" has been loaded before "+r.instrumentationName+" so it might not work, please initialize it before requiring "+i);}catch{}});},t.prototype._extractPackageVersion=function(r){try{var n=fs$1.readFileSync(ux__namespace.join(r,"package.json"),{encoding:"utf8"}),i=JSON.parse(n).version;return typeof i=="string"?i:void 0}catch{_t.warn("Failed extracting version",r);}},t.prototype._onRequire=function(r,n,i,s){var a=this,o;if(!s)return typeof r.patch=="function"&&(r.moduleExports=n,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:r.name}),r.patch(n)):n;var u=this._extractPackageVersion(s);if(r.moduleVersion=u,r.name===i)return Sse(r.supportedVersions,u,r.includePrerelease)&&typeof r.patch=="function"&&(r.moduleExports=n,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:r.name,version:r.moduleVersion,baseDir:s}),r.patch(n,r.moduleVersion)):n;var l=(o=r.files)!==null&&o!==void 0?o:[],c=ux__namespace.normalize(i),p=l.filter(function(h){return h.name===c}).filter(function(h){return Sse(h.supportedVersions,u,r.includePrerelease)});return p.reduce(function(h,f){return f.moduleExports=h,a._enabled?(a._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:r.name,version:r.moduleVersion,fileName:f.name,baseDir:s}),f.patch(h,r.moduleVersion)):h},n)},t.prototype.enable=function(){var r,n,i,s,a,o,u=this;if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){try{for(var l=JE(this._modules),c=l.next();!c.done;c=l.next()){var p=c.value;typeof p.patch=="function"&&p.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:p.name,version:p.moduleVersion}),p.patch(p.moduleExports,p.moduleVersion));try{for(var h=(i=void 0,JE(p.files)),f=h.next();!f.done;f=h.next()){var d=f.value;d.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:p.name,version:p.moduleVersion,fileName:d.name}),d.patch(d.moduleExports,p.moduleVersion));}}catch(S){i={error:S};}finally{try{f&&!f.done&&(s=h.return)&&s.call(h);}finally{if(i)throw i.error}}}}catch(S){r={error:S};}finally{try{c&&!c.done&&(n=l.return)&&n.call(l);}finally{if(r)throw r.error}}return}this._warnOnPreloadedModules();var m=function(S){var x=function(P,V,X){return u._onRequire(S,P,V,X)},b=function(P,V,X){return u._onRequire(S,P,V,X)},A=ux__namespace.isAbsolute(S.name)?new bse.Hook([S.name],{internals:!0},b):y._requireInTheMiddleSingleton.register(S.name,b);y._hooks.push(A);var D=new Ese.Hook([S.name],{internals:!1},x);y._hooks.push(D);},y=this;try{for(var g=JE(this._modules),v=g.next();!v.done;v=g.next()){var E=v.value;m(E);}}catch(S){a={error:S};}finally{try{v&&!v.done&&(o=g.return)&&o.call(g);}finally{if(a)throw a.error}}}},t.prototype.disable=function(){var r,n,i,s;if(this._enabled){this._enabled=!1;try{for(var a=JE(this._modules),o=a.next();!o.done;o=a.next()){var u=o.value;typeof u.unpatch=="function"&&u.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:u.name,version:u.moduleVersion}),u.unpatch(u.moduleExports,u.moduleVersion));try{for(var l=(i=void 0,JE(u.files)),c=l.next();!c.done;c=l.next()){var p=c.value;p.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:u.name,version:u.moduleVersion,fileName:p.name}),p.unpatch(p.moduleExports,u.moduleVersion));}}catch(h){i={error:h};}finally{try{c&&!c.done&&(s=l.return)&&s.call(l);}finally{if(i)throw i.error}}}}catch(h){r={error:h};}finally{try{o&&!o.done&&(n=a.return)&&n.call(a);}finally{if(r)throw r.error}}}},t.prototype.isEnabled=function(){return this._enabled},t}(Uie);});var _se=chunkTKGT252T_js.b(()=>{});var xse=chunkTKGT252T_js.b(()=>{vse();_se();});var Ek=chunkTKGT252T_js.b(()=>{xse();});var cP,Ase=chunkTKGT252T_js.b(()=>{cP=function(){function e(t,r,n,i,s){this.name=t,this.supportedVersions=r,this.patch=n,this.unpatch=i,this.files=s||[];}return e}();});var ZE,Pse=chunkTKGT252T_js.b(()=>{Ek();ZE=function(){function e(t,r,n,i){this.supportedVersions=r,this.patch=n,this.unpatch=i,this.name=ux.normalize(t);}return e}();});var zn={};chunkTKGT252T_js.d(zn,{InstrumentationBase:()=>by,InstrumentationNodeModuleDefinition:()=>cP,InstrumentationNodeModuleFile:()=>ZE,isWrapped:()=>uP,registerInstrumentations:()=>nP,safeExecuteInTheMiddle:()=>mse,safeExecuteInTheMiddleAsync:()=>yse});var Rn=chunkTKGT252T_js.b(()=>{kie();Ek();Ase();Pse();Tk();});var Ose=chunkTKGT252T_js.c(pP=>{Object.defineProperty(pP,"__esModule",{value:!0});pP.HttpInstrumentation=void 0;var kt=(pt(),chunkTKGT252T_js.f(Gr)),vy=(jn(),chunkTKGT252T_js.f(eo)),Cse=chunkHZVCNUTP_js.a(),wse=chunkTKGT252T_js.a("url"),Mn=QL(),Fet=_ie(),to=(Rn(),chunkTKGT252T_js.f(zn)),Ise=(jn(),chunkTKGT252T_js.f(eo)),bk=chunkTKGT252T_js.a("events"),Bet=(dn(),chunkTKGT252T_js.f(si)),vk=class extends to.InstrumentationBase{constructor(t={}){super("@opentelemetry/instrumentation-http",Fet.VERSION,t),this._spanNotEnded=new WeakSet,this._headerCapture=this._createHeaderCapture();}_updateMetricInstruments(){this._httpServerDurationHistogram=this.meter.createHistogram("http.server.duration",{description:"Measures the duration of inbound HTTP requests.",unit:"ms",valueType:kt.ValueType.DOUBLE}),this._httpClientDurationHistogram=this.meter.createHistogram("http.client.duration",{description:"Measures the duration of outbound HTTP requests.",unit:"ms",valueType:kt.ValueType.DOUBLE});}setConfig(t={}){super.setConfig(t),this._headerCapture=this._createHeaderCapture();}init(){return [this._getHttpsInstrumentation(),this._getHttpInstrumentation()]}_getHttpInstrumentation(){return new to.InstrumentationNodeModuleDefinition("http",["*"],t=>{if(!this.getConfig().disableOutgoingRequestInstrumentation){let r=this._wrap(t,"request",this._getPatchOutgoingRequestFunction("http"));this._wrap(t,"get",this._getPatchOutgoingGetFunction(r));}return this.getConfig().disableIncomingRequestInstrumentation||this._wrap(t.Server.prototype,"emit",this._getPatchIncomingRequestFunction("http")),t},t=>{t!==void 0&&(this.getConfig().disableOutgoingRequestInstrumentation||(this._unwrap(t,"request"),this._unwrap(t,"get")),this.getConfig().disableIncomingRequestInstrumentation||this._unwrap(t.Server.prototype,"emit"));})}_getHttpsInstrumentation(){return new to.InstrumentationNodeModuleDefinition("https",["*"],t=>{if(!this.getConfig().disableOutgoingRequestInstrumentation){let r=this._wrap(t,"request",this._getPatchHttpsOutgoingRequestFunction("https"));this._wrap(t,"get",this._getPatchHttpsOutgoingGetFunction(r));}return this.getConfig().disableIncomingRequestInstrumentation||this._wrap(t.Server.prototype,"emit",this._getPatchIncomingRequestFunction("https")),t},t=>{t!==void 0&&(this.getConfig().disableOutgoingRequestInstrumentation||(this._unwrap(t,"request"),this._unwrap(t,"get")),this.getConfig().disableIncomingRequestInstrumentation||this._unwrap(t.Server.prototype,"emit"));})}_getPatchIncomingRequestFunction(t){return r=>this._incomingRequestFunction(t,r)}_getPatchOutgoingRequestFunction(t){return r=>this._outgoingRequestFunction(t,r)}_getPatchOutgoingGetFunction(t){return r=>function(i,...s){let a=t(i,...s);return a.end(),a}}_getPatchHttpsOutgoingRequestFunction(t){return r=>{let n=this;return function(s,...a){var o;return t==="https"&&typeof s=="object"&&((o=s==null?void 0:s.constructor)===null||o===void 0?void 0:o.name)!=="URL"&&(s=Object.assign({},s),n._setDefaultOptions(s)),n._getPatchOutgoingRequestFunction(t)(r)(s,...a)}}}_setDefaultOptions(t){t.protocol=t.protocol||"https:",t.port=t.port||443;}_getPatchHttpsOutgoingGetFunction(t){return r=>{let n=this;return function(s,...a){return n._getPatchOutgoingGetFunction(t)(r)(s,...a)}}}_traceClientRequest(t,r,n,i){this.getConfig().requestHook&&this._callRequestHook(r,t);let s=!1;return t.prependListener("response",a=>{this._diag.debug("outgoingRequest on response()"),t.listenerCount("response")<=1&&a.resume();let o=Mn.getOutgoingRequestAttributesOnResponse(a);r.setAttributes(o),i=Object.assign(i,Mn.getOutgoingRequestMetricAttributesOnResponse(o)),this.getConfig().responseHook&&this._callResponseHook(r,a),this._headerCapture.client.captureRequestHeaders(r,l=>t.getHeader(l)),this._headerCapture.client.captureResponseHeaders(r,l=>a.headers[l]),kt.context.bind(kt.context.active(),a);let u=()=>{if(this._diag.debug("outgoingRequest on end()"),s)return;s=!0;let l;a.aborted&&!a.complete?l={code:kt.SpanStatusCode.ERROR}:l={code:Mn.parseResponseStatus(kt.SpanKind.CLIENT,a.statusCode)},r.setStatus(l),this.getConfig().applyCustomAttributesOnSpan&&(0, to.safeExecuteInTheMiddle)(()=>this.getConfig().applyCustomAttributesOnSpan(r,t,a),()=>{},!0),this._closeHttpSpan(r,kt.SpanKind.CLIENT,n,i);};a.on("end",u),Cse.lt(process.version,"16.0.0")&&a.on("close",u),a.on(bk.errorMonitor,l=>{this._diag.debug("outgoingRequest on error()",l),!s&&(s=!0,Mn.setSpanWithError(r,l),r.setStatus({code:kt.SpanStatusCode.ERROR,message:l.message}),this._closeHttpSpan(r,kt.SpanKind.CLIENT,n,i));});}),t.on("close",()=>{this._diag.debug("outgoingRequest on request close()"),!(t.aborted||s)&&(s=!0,this._closeHttpSpan(r,kt.SpanKind.CLIENT,n,i));}),t.on(bk.errorMonitor,a=>{this._diag.debug("outgoingRequest on request error()",a),!s&&(s=!0,Mn.setSpanWithError(r,a),this._closeHttpSpan(r,kt.SpanKind.CLIENT,n,i));}),this._diag.debug("http.ClientRequest return request"),t}_incomingRequestFunction(t,r){let n=this;return function(s,...a){if(s!=="request")return r.apply(this,[s,...a]);let o=a[0],u=a[1],l=o.url&&wse.parse(o.url).pathname||"/",c=o.method||"GET";if(n._diag.debug(`${t} instrumentation incomingRequest`),Mn.isIgnored(l,n.getConfig().ignoreIncomingPaths,E=>n._diag.error("caught ignoreIncomingPaths error: ",E))||(0, to.safeExecuteInTheMiddle)(()=>{var E,S;return (S=(E=n.getConfig()).ignoreIncomingRequestHook)===null||S===void 0?void 0:S.call(E,o)},E=>{E!=null&&n._diag.error("caught ignoreIncomingRequestHook error: ",E);},!0))return kt.context.with((0, vy.suppressTracing)(kt.context.active()),()=>(kt.context.bind(kt.context.active(),o),kt.context.bind(kt.context.active(),u),r.apply(this,[s,...a])));let p=o.headers,h=Mn.getIncomingRequestAttributes(o,{component:t,serverName:n.getConfig().serverName,hookAttributes:n._callStartSpanHook(o,n.getConfig().startIncomingSpanHook)}),f={kind:kt.SpanKind.SERVER,attributes:h},d=(0, vy.hrTime)(),m=Mn.getIncomingRequestMetricAttributes(h),y=kt.propagation.extract(kt.ROOT_CONTEXT,p),g=n._startHttpSpan(c,f,y),v={type:Ise.RPCType.HTTP,span:g};return kt.context.with((0, Ise.setRPCMetadata)(kt.trace.setSpan(y,g),v),()=>{kt.context.bind(kt.context.active(),o),kt.context.bind(kt.context.active(),u),n.getConfig().requestHook&&n._callRequestHook(g,o),n.getConfig().responseHook&&n._callResponseHook(g,u),n._headerCapture.server.captureRequestHeaders(g,S=>o.headers[S]);let E=!1;return u.on("close",()=>{E||n._onServerResponseFinish(o,u,g,m,d);}),u.on(bk.errorMonitor,S=>{E=!0,n._onServerResponseError(g,m,d,S);}),(0, to.safeExecuteInTheMiddle)(()=>r.apply(this,[s,...a]),S=>{if(S)throw Mn.setSpanWithError(g,S),n._closeHttpSpan(g,kt.SpanKind.SERVER,d,m),S})})}}_outgoingRequestFunction(t,r){let n=this;return function(s,...a){if(!Mn.isValidOptionsType(s))return r.apply(this,[s,...a]);let o=typeof a[0]=="object"&&(typeof s=="string"||s instanceof wse.URL)?a.shift():void 0,{origin:u,pathname:l,method:c,optionsParsed:p}=Mn.getRequestInfo(s,o);if(t==="http"&&Cse.lt(process.version,"9.0.0")&&p.protocol==="https:")return r.apply(this,[p,...a]);if(Mn.isIgnored(u+l,n.getConfig().ignoreOutgoingUrls,x=>n._diag.error("caught ignoreOutgoingUrls error: ",x))||(0, to.safeExecuteInTheMiddle)(()=>{var x,b;return (b=(x=n.getConfig()).ignoreOutgoingRequestHook)===null||b===void 0?void 0:b.call(x,p)},x=>{x!=null&&n._diag.error("caught ignoreOutgoingRequestHook error: ",x);},!0))return r.apply(this,[p,...a]);let{hostname:h,port:f}=Mn.extractHostnameAndPort(p),d=Mn.getOutgoingRequestAttributes(p,{component:t,port:f,hostname:h,hookAttributes:n._callStartSpanHook(p,n.getConfig().startOutgoingSpanHook)}),m=(0, vy.hrTime)(),y=Mn.getOutgoingRequestMetricAttributes(d),g={kind:kt.SpanKind.CLIENT,attributes:d},v=n._startHttpSpan(c,g),E=kt.context.active(),S=kt.trace.setSpan(E,v);return p.headers?p.headers=Object.assign({},p.headers):p.headers={},kt.propagation.inject(S,p.headers),kt.context.with(S,()=>{let x=a[a.length-1];typeof x=="function"&&(a[a.length-1]=kt.context.bind(E,x));let b=(0, to.safeExecuteInTheMiddle)(()=>r.apply(this,[p,...a]),A=>{if(A)throw Mn.setSpanWithError(v,A),n._closeHttpSpan(v,kt.SpanKind.CLIENT,m,y),A});return n._diag.debug(`${t} instrumentation outgoingRequest`),kt.context.bind(E,b),n._traceClientRequest(b,v,m,y)})}}_onServerResponseFinish(t,r,n,i,s){let a=Mn.getIncomingRequestAttributesOnResponse(t,r);i=Object.assign(i,Mn.getIncomingRequestMetricAttributesOnResponse(a)),this._headerCapture.server.captureResponseHeaders(n,u=>r.getHeader(u)),n.setAttributes(a).setStatus({code:Mn.parseResponseStatus(kt.SpanKind.SERVER,r.statusCode)});let o=a[Bet.SEMATTRS_HTTP_ROUTE];o&&n.updateName(`${t.method||"GET"} ${o}`),this.getConfig().applyCustomAttributesOnSpan&&(0, to.safeExecuteInTheMiddle)(()=>this.getConfig().applyCustomAttributesOnSpan(n,t,r),()=>{},!0),this._closeHttpSpan(n,kt.SpanKind.SERVER,s,i);}_onServerResponseError(t,r,n,i){Mn.setSpanWithError(t,i),this._closeHttpSpan(t,kt.SpanKind.SERVER,n,r);}_startHttpSpan(t,r,n=kt.context.active()){let i=r.kind===kt.SpanKind.CLIENT?this.getConfig().requireParentforOutgoingSpans:this.getConfig().requireParentforIncomingSpans,s,a=kt.trace.getSpan(n);return i===!0&&a===void 0?s=kt.trace.wrapSpanContext(kt.INVALID_SPAN_CONTEXT):i===!0&&(a!=null&&a.spanContext().isRemote)?s=a:s=this.tracer.startSpan(t,r,n),this._spanNotEnded.add(s),s}_closeHttpSpan(t,r,n,i){if(!this._spanNotEnded.has(t))return;t.end(),this._spanNotEnded.delete(t);let s=(0, vy.hrTimeToMilliseconds)((0, vy.hrTimeDuration)(n,(0, vy.hrTime)()));r===kt.SpanKind.SERVER?this._httpServerDurationHistogram.record(s,i):r===kt.SpanKind.CLIENT&&this._httpClientDurationHistogram.record(s,i);}_callResponseHook(t,r){(0, to.safeExecuteInTheMiddle)(()=>this.getConfig().responseHook(t,r),()=>{},!0);}_callRequestHook(t,r){(0, to.safeExecuteInTheMiddle)(()=>this.getConfig().requestHook(t,r),()=>{},!0);}_callStartSpanHook(t,r){if(typeof r=="function")return (0, to.safeExecuteInTheMiddle)(()=>r(t),()=>{},!0)}_createHeaderCapture(){var t,r,n,i,s,a,o,u,l,c,p,h;let f=this.getConfig();return {client:{captureRequestHeaders:Mn.headerCapture("request",(n=(r=(t=f.headersToSpanAttributes)===null||t===void 0?void 0:t.client)===null||r===void 0?void 0:r.requestHeaders)!==null&&n!==void 0?n:[]),captureResponseHeaders:Mn.headerCapture("response",(a=(s=(i=f.headersToSpanAttributes)===null||i===void 0?void 0:i.client)===null||s===void 0?void 0:s.responseHeaders)!==null&&a!==void 0?a:[])},server:{captureRequestHeaders:Mn.headerCapture("request",(l=(u=(o=f.headersToSpanAttributes)===null||o===void 0?void 0:o.server)===null||u===void 0?void 0:u.requestHeaders)!==null&&l!==void 0?l:[]),captureResponseHeaders:Mn.headerCapture("response",(h=(p=(c=f.headersToSpanAttributes)===null||c===void 0?void 0:c.server)===null||p===void 0?void 0:p.responseHeaders)!==null&&h!==void 0?h:[])}}}};pP.HttpInstrumentation=vk;});var Dse=chunkTKGT252T_js.c(Lt=>{Object.defineProperty(Lt,"__esModule",{value:!0});Lt.setSpanWithError=Lt.setResponseContentLengthAttribute=Lt.setRequestContentLengthAttribute=Lt.setAttributesFromHttpKind=Lt.satisfiesPattern=Lt.parseResponseStatus=Lt.isValidOptionsType=Lt.isIgnored=Lt.isCompressed=Lt.headerCapture=Lt.getRequestInfo=Lt.getOutgoingRequestMetricAttributesOnResponse=Lt.getOutgoingRequestMetricAttributes=Lt.getOutgoingRequestAttributesOnResponse=Lt.getOutgoingRequestAttributes=Lt.getIncomingRequestMetricAttributesOnResponse=Lt.getIncomingRequestMetricAttributes=Lt.getIncomingRequestAttributesOnResponse=Lt.getIncomingRequestAttributes=Lt.getAbsoluteUrl=Lt.extractHostnameAndPort=Lt.HttpInstrumentation=void 0;var jet=Ose();Object.defineProperty(Lt,"HttpInstrumentation",{enumerable:!0,get:function(){return jet.HttpInstrumentation}});var oi=QL();Object.defineProperty(Lt,"extractHostnameAndPort",{enumerable:!0,get:function(){return oi.extractHostnameAndPort}});Object.defineProperty(Lt,"getAbsoluteUrl",{enumerable:!0,get:function(){return oi.getAbsoluteUrl}});Object.defineProperty(Lt,"getIncomingRequestAttributes",{enumerable:!0,get:function(){return oi.getIncomingRequestAttributes}});Object.defineProperty(Lt,"getIncomingRequestAttributesOnResponse",{enumerable:!0,get:function(){return oi.getIncomingRequestAttributesOnResponse}});Object.defineProperty(Lt,"getIncomingRequestMetricAttributes",{enumerable:!0,get:function(){return oi.getIncomingRequestMetricAttributes}});Object.defineProperty(Lt,"getIncomingRequestMetricAttributesOnResponse",{enumerable:!0,get:function(){return oi.getIncomingRequestMetricAttributesOnResponse}});Object.defineProperty(Lt,"getOutgoingRequestAttributes",{enumerable:!0,get:function(){return oi.getOutgoingRequestAttributes}});Object.defineProperty(Lt,"getOutgoingRequestAttributesOnResponse",{enumerable:!0,get:function(){return oi.getOutgoingRequestAttributesOnResponse}});Object.defineProperty(Lt,"getOutgoingRequestMetricAttributes",{enumerable:!0,get:function(){return oi.getOutgoingRequestMetricAttributes}});Object.defineProperty(Lt,"getOutgoingRequestMetricAttributesOnResponse",{enumerable:!0,get:function(){return oi.getOutgoingRequestMetricAttributesOnResponse}});Object.defineProperty(Lt,"getRequestInfo",{enumerable:!0,get:function(){return oi.getRequestInfo}});Object.defineProperty(Lt,"headerCapture",{enumerable:!0,get:function(){return oi.headerCapture}});Object.defineProperty(Lt,"isCompressed",{enumerable:!0,get:function(){return oi.isCompressed}});Object.defineProperty(Lt,"isIgnored",{enumerable:!0,get:function(){return oi.isIgnored}});Object.defineProperty(Lt,"isValidOptionsType",{enumerable:!0,get:function(){return oi.isValidOptionsType}});Object.defineProperty(Lt,"parseResponseStatus",{enumerable:!0,get:function(){return oi.parseResponseStatus}});Object.defineProperty(Lt,"satisfiesPattern",{enumerable:!0,get:function(){return oi.satisfiesPattern}});Object.defineProperty(Lt,"setAttributesFromHttpKind",{enumerable:!0,get:function(){return oi.setAttributesFromHttpKind}});Object.defineProperty(Lt,"setRequestContentLengthAttribute",{enumerable:!0,get:function(){return oi.setRequestContentLengthAttribute}});Object.defineProperty(Lt,"setResponseContentLengthAttribute",{enumerable:!0,get:function(){return oi.setResponseContentLengthAttribute}});Object.defineProperty(Lt,"setSpanWithError",{enumerable:!0,get:function(){return oi.setSpanWithError}});});var hae,dae=chunkTKGT252T_js.b(()=>{hae="exception";});var prt,mae,frt,yae,gae=chunkTKGT252T_js.b(()=>{pt();jn();dn();dae();prt=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},mae=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s},frt=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(r),this):(_t.warn("Invalid attribute value set for key: "+t),this)},e.prototype.setAttributes=function(t){var r,n;try{for(var i=prt(Object.entries(t)),s=i.next();!s.done;s=i.next()){var a=mae(s.value,2),o=a[0],u=a[1];this.setAttribute(o,u);}}catch(l){r={error:l};}finally{try{s&&!s.done&&(n=i.return)&&n.call(i);}finally{if(r)throw r.error}}return this},e.prototype.addEvent=function(t,r,n){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return _t.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&_t.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),ME(r)&&(ME(n)||(n=r),r=void 0);var i=Ip(r);return this.events.push({name:t,attributes:i,time:this._getTime(n),droppedAttributesCount:0}),this},e.prototype.addLink=function(t){return this.links.push(t),this},e.prototype.addLinks=function(t){var r;return (r=this.links).push.apply(r,frt([],mae(t),!1)),this},e.prototype.setStatus=function(t){return this._isSpanEnded()?this:(this.status=t,this)},e.prototype.updateName=function(t){return this._isSpanEnded()?this:(this.name=t,this)},e.prototype.end=function(t){if(this._isSpanEnded()){_t.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once.");return}this._ended=!0,this.endTime=this._getTime(t),this._duration=GA(this.startTime,this.endTime),this._duration[0]<0&&(_t.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&_t.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this);},e.prototype._getTime=function(t){if(typeof t=="number"&&t{(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED";})(fs||(fs={}));});var Dy,Xk=chunkTKGT252T_js.b(()=>{f0();Dy=function(){function e(){}return e.prototype.shouldSample=function(){return {decision:fs.NOT_RECORD}},e.prototype.toString=function(){return "AlwaysOffSampler"},e}();});var Up,zk=chunkTKGT252T_js.b(()=>{f0();Up=function(){function e(){}return e.prototype.shouldSample=function(){return {decision:fs.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return "AlwaysOnSampler"},e}();});var wP,Sae=chunkTKGT252T_js.b(()=>{pt();jn();Xk();zk();wP=function(){function e(t){var r,n,i,s;this._root=t.root,this._root||(Jo(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Up),this._remoteParentSampled=(r=t.remoteParentSampled)!==null&&r!==void 0?r:new Up,this._remoteParentNotSampled=(n=t.remoteParentNotSampled)!==null&&n!==void 0?n:new Dy,this._localParentSampled=(i=t.localParentSampled)!==null&&i!==void 0?i:new Up,this._localParentNotSampled=(s=t.localParentNotSampled)!==null&&s!==void 0?s:new Dy;}return e.prototype.shouldSample=function(t,r,n,i,s,a){var o=qt.getSpanContext(t);return !o||!oa(o)?this._root.shouldSample(t,r,n,i,s,a):o.isRemote?o.traceFlags&hn.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,i,s,a):this._remoteParentNotSampled.shouldSample(t,r,n,i,s,a):o.traceFlags&hn.SAMPLED?this._localParentSampled.shouldSample(t,r,n,i,s,a):this._localParentNotSampled.shouldSample(t,r,n,i,s,a)},e.prototype.toString=function(){return "ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},e}();});var Jk,Tae=chunkTKGT252T_js.b(()=>{pt();f0();Jk=function(){function e(t){t===void 0&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295);}return e.prototype.shouldSample=function(t,r){return {decision:Fh(r)&&this._accumulate(r)=1?1:t<=0?0:t},e.prototype._accumulate=function(t){for(var r=0,n=0;n>>0;}return r},e}();});function IP(){var e=Oa();return {sampler:Qk(hrt),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:e.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:e.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:e.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:e.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function Qk(e){switch(e===void 0&&(e=Oa()),e.OTEL_TRACES_SAMPLER){case la.AlwaysOn:return new Up;case la.AlwaysOff:return new Dy;case la.ParentBasedAlwaysOn:return new wP({root:new Up});case la.ParentBasedAlwaysOff:return new wP({root:new Dy});case la.TraceIdRatio:return new Jk(Eae(e));case la.ParentBasedTraceIdRatio:return new wP({root:new Jk(Eae(e))});default:return _t.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+drt+'".'),new Up}}function Eae(e){if(e.OTEL_TRACES_SAMPLER_ARG===void 0||e.OTEL_TRACES_SAMPLER_ARG==="")return _t.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+Ny+"."),Ny;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(_t.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+Ny+"."),Ny):t<0||t>1?(_t.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+Ny+"."),Ny):t}var hrt,drt,Ny,Zk=chunkTKGT252T_js.b(()=>{pt();jn();Xk();zk();Sae();Tae();hrt=Oa(),drt=la.AlwaysOn,Ny=1;});function bae(e){var t={sampler:Qk()},r=IP(),n=Object.assign({},r,t,e);return n.generalLimits=Object.assign({},r.generalLimits,e.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,e.spanLimits||{}),n}function vae(e){var t,r,n,i,s,a,o,u,l,c,p,h,f=Object.assign({},e.spanLimits),d=ry();return f.attributeCountLimit=(a=(s=(i=(r=(t=e.spanLimits)===null||t===void 0?void 0:t.attributeCountLimit)!==null&&r!==void 0?r:(n=e.generalLimits)===null||n===void 0?void 0:n.attributeCountLimit)!==null&&i!==void 0?i:d.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&s!==void 0?s:d.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&a!==void 0?a:Uh,f.attributeValueLengthLimit=(h=(p=(c=(u=(o=e.spanLimits)===null||o===void 0?void 0:o.attributeValueLengthLimit)!==null&&u!==void 0?u:(l=e.generalLimits)===null||l===void 0?void 0:l.attributeValueLengthLimit)!==null&&c!==void 0?c:d.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&p!==void 0?p:d.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&h!==void 0?h:jh,Object.assign({},e,{spanLimits:f})}var e2=chunkTKGT252T_js.b(()=>{Zk();jn();});var _ae,xae=chunkTKGT252T_js.b(()=>{pt();jn();_ae=function(){function e(t,r){this._exporter=t,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var n=Oa();this._maxExportBatchSize=typeof(r==null?void 0:r.maxExportBatchSize)=="number"?r.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof(r==null?void 0:r.maxQueueSize)=="number"?r.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof(r==null?void 0:r.scheduledDelayMillis)=="number"?r.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof(r==null?void 0:r.exportTimeoutMillis)=="number"?r.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new JA(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(_t.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize);}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(t,r){},e.prototype.onEnd=function(t){this._shutdownOnce.isCalled||t.spanContext().traceFlags&hn.SAMPLED&&this._addToBuffer(t);},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){var t=this;return Promise.resolve().then(function(){return t.onShutdown()}).then(function(){return t._flushAll()}).then(function(){return t._exporter.shutdown()})},e.prototype._addToBuffer=function(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&_t.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(_t.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer();},e.prototype._flushAll=function(){var t=this;return new Promise(function(r,n){for(var i=[],s=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize),a=0,o=s;a0&&(t._clearTimer(),t._maybeStartTimer());}).catch(function(n){t._isExporting=!1,Jo(n);});};if(this._finishedSpans.length>=this._maxExportBatchSize)return r();this._timer===void 0&&(this._timer=setTimeout(function(){return r()},this._scheduledDelayMillis),ly(this._timer));}},e.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0);},e}();});var mrt,OP,Aae=chunkTKGT252T_js.b(()=>{xae();mrt=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i;}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s]);},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t;}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n);}}(),OP=function(e){mrt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onShutdown=function(){},t}(_ae);});function Pae(e){return function(){for(var r=0;r>>0,r*4);for(var r=0;r0);r++)r===e-1&&(DP[e-1]=1);return DP.toString("hex",0,e)}}var yrt,Cae,NP,DP,wae=chunkTKGT252T_js.b(()=>{yrt=8,Cae=16,NP=function(){function e(){this.generateTraceId=Pae(Cae),this.generateSpanId=Pae(yrt);}return e}(),DP=Buffer.allocUnsafe(Cae);});var Iae=chunkTKGT252T_js.b(()=>{Aae();wae();});var t2=chunkTKGT252T_js.b(()=>{Iae();});var r2,Oae=chunkTKGT252T_js.b(()=>{pt();jn();gae();e2();t2();r2=function(){function e(t,r,n){this._tracerProvider=n;var i=bae(r);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=r.idGenerator||new NP,this.resource=n.resource,this.instrumentationLibrary=t;}return e.prototype.startSpan=function(t,r,n){var i,s,a;r===void 0&&(r={}),n===void 0&&(n=gr.active()),r.root&&(n=qt.deleteSpan(n));var o=qt.getSpan(n);if(qu(n)){_t.debug("Instrumentation suppressed, returning Noop Span");var u=qt.wrapSpanContext(Zm);return u}var l=o==null?void 0:o.spanContext(),c=this._idGenerator.generateSpanId(),p,h,f;!l||!qt.isSpanContextValid(l)?p=this._idGenerator.generateTraceId():(p=l.traceId,h=l.traceState,f=l.spanId);var d=(i=r.kind)!==null&&i!==void 0?i:cs.INTERNAL,m=((s=r.links)!==null&&s!==void 0?s:[]).map(function(b){return {context:b.context,attributes:Ip(b.attributes)}}),y=Ip(r.attributes),g=this._sampler.shouldSample(n,p,t,d,y,m);h=(a=g.traceState)!==null&&a!==void 0?a:h;var v=g.decision===ua.RECORD_AND_SAMPLED?hn.SAMPLED:hn.NONE,E={traceId:p,spanId:c,traceFlags:v,traceState:h};if(g.decision===ua.NOT_RECORD){_t.debug("Recording is off, propagating context in a non-recording span");var u=qt.wrapSpanContext(E);return u}var S=Ip(Object.assign(y,g.attributes)),x=new yae(this,n,t,E,d,f,m,r.startTime,void 0,S);return x},e.prototype.startActiveSpan=function(t,r,n,i){var s,a,o;if(!(arguments.length<2)){arguments.length===2?o=r:arguments.length===3?(s=r,o=n):(s=r,a=n,o=i);var u=a??gr.active(),l=this.startSpan(t,s,u),c=qt.setSpan(u,l);return gr.with(c,o,void 0,l)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}();});function RP(){return "unknown_service:"+process.argv0}var Dae=chunkTKGT252T_js.b(()=>{});var Nae=chunkTKGT252T_js.b(()=>{Dae();});var Rae=chunkTKGT252T_js.b(()=>{Nae();});var qp,grt,Srt,Trt,Ry,Mae=chunkTKGT252T_js.b(()=>{pt();dn();jn();Rae();qp=function(){return qp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&s[s.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s},Ry=function(){function e(t,r){var n=this,i;this._attributes=t,this.asyncAttributesPending=r!=null,this._syncAttributes=(i=this._attributes)!==null&&i!==void 0?i:{},this._asyncAttributesPromise=r==null?void 0:r.then(function(s){return n._attributes=Object.assign({},n._attributes,s),n.asyncAttributesPending=!1,s},function(s){return _t.debug("a resource's async attributes promise rejected: %s",s),n.asyncAttributesPending=!1,{}});}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e((t={},t[kL]=RP(),t[sy]=Op[sy],t[iy]=Op[iy],t[ay]=Op[ay],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&_t.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return grt(this,void 0,void 0,function(){return Srt(this,function(t){switch(t.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:t.sent(),t.label=2;case 2:return [2]}})})},e.prototype.merge=function(t){var r=this,n;if(!t)return this;var i=qp(qp({},this._syncAttributes),(n=t._syncAttributes)!==null&&n!==void 0?n:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(i);var s=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(a){var o,u=Trt(a,2),l=u[0],c=u[1];return qp(qp(qp(qp({},r._syncAttributes),l),(o=t._syncAttributes)!==null&&o!==void 0?o:t.attributes),c)});return new e(i,s)},e.EMPTY=new e({}),e}();});var n2=chunkTKGT252T_js.b(()=>{Mae();});var MP,Lae,kae=chunkTKGT252T_js.b(()=>{jn();MP=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Lae=function(){function e(t){this._spanProcessors=t;}return e.prototype.forceFlush=function(){var t,r,n=[];try{for(var i=MP(this._spanProcessors),s=i.next();!s.done;s=i.next()){var a=s.value;n.push(a.forceFlush());}}catch(o){t={error:o};}finally{try{s&&!s.done&&(r=i.return)&&r.call(i);}finally{if(t)throw t.error}}return new Promise(function(o){Promise.all(n).then(function(){o();}).catch(function(u){Jo(u||new Error("MultiSpanProcessor: forceFlush failed")),o();});})},e.prototype.onStart=function(t,r){var n,i;try{for(var s=MP(this._spanProcessors),a=s.next();!a.done;a=s.next()){var o=a.value;o.onStart(t,r);}}catch(u){n={error:u};}finally{try{a&&!a.done&&(i=s.return)&&i.call(s);}finally{if(n)throw n.error}}},e.prototype.onEnd=function(t){var r,n;try{for(var i=MP(this._spanProcessors),s=i.next();!s.done;s=i.next()){var a=s.value;a.onEnd(t);}}catch(o){r={error:o};}finally{try{s&&!s.done&&(n=i.return)&&n.call(i);}finally{if(r)throw r.error}}},e.prototype.shutdown=function(){var t,r,n=[];try{for(var i=MP(this._spanProcessors),s=i.next();!s.done;s=i.next()){var a=s.value;n.push(a.shutdown());}}catch(o){t={error:o};}finally{try{s&&!s.done&&(r=i.return)&&r.call(i);}finally{if(t)throw t.error}}return new Promise(function(o,u){Promise.all(n).then(function(){o();},u);})},e}();});var Fae,Bae=chunkTKGT252T_js.b(()=>{Fae=function(){function e(){}return e.prototype.onStart=function(t,r){},e.prototype.onEnd=function(t){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}();});var Vp,i2,jae=chunkTKGT252T_js.b(()=>{pt();jn();n2();LP();Zk();kae();Bae();t2();e2();(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved";})(Vp||(Vp={}));i2=function(){function e(t){t===void 0&&(t={});var r;this._registeredSpanProcessors=[],this._tracers=new Map;var n=zA({},IP(),vae(t));this.resource=(r=n.resource)!==null&&r!==void 0?r:Ry.empty(),this.resource=Ry.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});var i=this._buildExporterFromEnv();if(i!==void 0){var s=new OP(i);this.activeSpanProcessor=s;}else this.activeSpanProcessor=new Fae;}return e.prototype.getTracer=function(t,r,n){var i=t+"@"+(r||"")+":"+((n==null?void 0:n.schemaUrl)||"");return this._tracers.has(i)||this._tracers.set(i,new r2({name:t,version:r,schemaUrl:n==null?void 0:n.schemaUrl},this._config,this)),this._tracers.get(i)},e.prototype.addSpanProcessor=function(t){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(r){return _t.error("Error while trying to shutdown current span processor",r)}),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new Lae(this._registeredSpanProcessors);},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(t){t===void 0&&(t={}),qt.setGlobalTracerProvider(this),t.propagator===void 0&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&gr.setGlobalContextManager(t.contextManager),t.propagator&&As.setGlobalPropagator(t.propagator);},e.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,r=this._registeredSpanProcessors.map(function(n){return new Promise(function(i){var s,a=setTimeout(function(){i(new Error("Span processor did not completed within timeout period of "+t+" ms")),s=Vp.timeout;},t);n.forceFlush().then(function(){clearTimeout(a),s!==Vp.timeout&&(s=Vp.resolved,i(s));}).catch(function(o){clearTimeout(a),s=Vp.error,i(o);});})});return new Promise(function(n,i){Promise.all(r).then(function(s){var a=s.filter(function(o){return o!==Vp.resolved});a.length>0?i(a):n();}).catch(function(s){return i([s])});})},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(t){var r;return (r=this.constructor._registeredPropagators.get(t))===null||r===void 0?void 0:r()},e.prototype._getSpanExporter=function(t){var r;return (r=this.constructor._registeredExporters.get(t))===null||r===void 0?void 0:r()},e.prototype._buildPropagatorFromEnv=function(){var t=this,r=Array.from(new Set(Oa().OTEL_PROPAGATORS)),n=r.map(function(s){var a=t._getPropagator(s);return a||_t.warn('Propagator "'+s+'" requested through environment variable is unavailable.'),a}),i=n.reduce(function(s,a){return a&&s.push(a),s},[]);if(i.length!==0)return r.length===1?i[0]:new $A({propagators:i})},e.prototype._buildExporterFromEnv=function(){var t=Oa().OTEL_TRACES_EXPORTER;if(!(t==="none"||t==="")){var r=this._getSpanExporter(t);return r||_t.error('Exporter "'+t+'" requested through environment variable is unavailable.'),r}},e._registeredPropagators=new Map([["tracecontext",function(){return new KA}],["baggage",function(){return new ty}]]),e._registeredExporters=new Map,e}();});var LP=chunkTKGT252T_js.b(()=>{Oae();jae();f0();});var Eoe=chunkTKGT252T_js.c(Fy=>{Object.defineProperty(Fy,"__esModule",{value:!0});Fy.PACKAGE_NAME=Fy.PACKAGE_VERSION=void 0;Fy.PACKAGE_VERSION="0.6.0";Fy.PACKAGE_NAME="@opentelemetry/instrumentation-undici";});var boe=chunkTKGT252T_js.c(VP=>{Object.defineProperty(VP,"__esModule",{value:!0});VP.SemanticAttributes=void 0;VP.SemanticAttributes={HTTP_CONNECTION_STATE:"http.connection.state",ERROR_TYPE:"error.type",HTTP_REQUEST_BODY_SIZE:"http.request.body.size",HTTP_REQUEST_METHOD:"http.request.method",HTTP_REQUEST_METHOD_ORIGINAL:"http.request.method_original",HTTP_REQUEST_RESEND_COUNT:"http.request.resend_count",HTTP_RESPONSE_BODY_SIZE:"http.response.body.size",HTTP_RESPONSE_STATUS_CODE:"http.response.status_code",HTTP_ROUTE:"http.route",NETWORK_PEER_ADDRESS:"network.peer.address",NETWORK_PEER_PORT:"network.peer.port",NETWORK_PROTOCOL_NAME:"network.protocol.name",NETWORK_PROTOCOL_VERSION:"network.protocol.version",SERVER_ADDRESS:"server.address",SERVER_PORT:"server.port",URL_FULL:"url.full",URL_PATH:"url.path",URL_QUERY:"url.query",URL_SCHEME:"url.scheme",USER_AGENT_ORIGINAL:"user_agent.original"};});var _oe=chunkTKGT252T_js.c(GP=>{Object.defineProperty(GP,"__esModule",{value:!0});GP.UndiciInstrumentation=void 0;var fnt=chunkTKGT252T_js.a("diagnostics_channel"),hnt=chunkTKGT252T_js.a("url"),h0=(Rn(),chunkTKGT252T_js.f(zn)),Ra=(pt(),chunkTKGT252T_js.f(Gr)),voe=Eoe(),Ci=boe(),HP=(jn(),chunkTKGT252T_js.f(eo)),_2=class extends h0.InstrumentationBase{constructor(t={}){super(voe.PACKAGE_NAME,voe.PACKAGE_VERSION,t),this._recordFromReq=new WeakMap;}init(){}disable(){super.disable(),this._channelSubs.forEach(t=>t.channel.unsubscribe(t.onMessage)),this._channelSubs.length=0;}enable(){super.enable(),this._channelSubs=this._channelSubs||[],!(this._channelSubs.length>0)&&(this.subscribeToChannel("undici:request:create",this.onRequestCreated.bind(this)),this.subscribeToChannel("undici:client:sendHeaders",this.onRequestHeaders.bind(this)),this.subscribeToChannel("undici:request:headers",this.onResponseHeaders.bind(this)),this.subscribeToChannel("undici:request:trailers",this.onDone.bind(this)),this.subscribeToChannel("undici:request:error",this.onError.bind(this)));}_updateMetricInstruments(){this._httpClientDurationHistogram=this.meter.createHistogram("http.client.request.duration",{description:"Measures the duration of outbound HTTP requests.",unit:"s",valueType:Ra.ValueType.DOUBLE,advice:{explicitBucketBoundaries:[.005,.01,.025,.05,.075,.1,.25,.5,.75,1,2.5,5,7.5,10]}});}subscribeToChannel(t,r){let n=fnt.channel(t);n.subscribe(r),this._channelSubs.push({name:t,channel:n,onMessage:r});}onRequestCreated({request:t}){let r=this.getConfig(),n=r.enabled!==!1;if((0, h0.safeExecuteInTheMiddle)(()=>{var x;return !n||t.method==="CONNECT"||((x=r.ignoreRequestHook)===null||x===void 0?void 0:x.call(r,t))},x=>x&&this._diag.error("caught ignoreRequestHook error: ",x),!0))return;let s=(0, HP.hrTime)(),a=new hnt.URL(t.origin+t.path),o=a.protocol.replace(":",""),u=this.getRequestMethod(t.method),l={[Ci.SemanticAttributes.HTTP_REQUEST_METHOD]:u,[Ci.SemanticAttributes.HTTP_REQUEST_METHOD_ORIGINAL]:t.method,[Ci.SemanticAttributes.URL_FULL]:a.toString(),[Ci.SemanticAttributes.URL_PATH]:a.pathname,[Ci.SemanticAttributes.URL_QUERY]:a.search,[Ci.SemanticAttributes.URL_SCHEME]:o},c={https:"443",http:"80"},p=a.hostname,h=a.port||c[o];l[Ci.SemanticAttributes.SERVER_ADDRESS]=p,h&&!isNaN(Number(h))&&(l[Ci.SemanticAttributes.SERVER_PORT]=Number(h));let f;if(Array.isArray(t.headers)){let x=t.headers.findIndex(b=>b.toLowerCase()==="user-agent");x>=0&&(f=t.headers[x+1]);}else if(typeof t.headers=="string"){let b=t.headers.split(`\r `).find(A=>A.toLowerCase().startsWith("user-agent"));f=b&&b.substring(b.indexOf(":")+1).trim();}f&&(l[Ci.SemanticAttributes.USER_AGENT_ORIGINAL]=f);let d=(0, h0.safeExecuteInTheMiddle)(()=>{var x;return (x=r.startSpanHook)===null||x===void 0?void 0:x.call(r,t)},x=>x&&this._diag.error("caught startSpanHook error: ",x),!0);d&&Object.entries(d).forEach(([x,b])=>{l[x]=b;});let m=Ra.context.active(),y=Ra.trace.getSpan(m),g;r.requireParentforSpans&&(!y||!Ra.trace.isSpanContextValid(y.spanContext()))?g=Ra.trace.wrapSpanContext(Ra.INVALID_SPAN_CONTEXT):g=this.tracer.startSpan(u==="_OTHER"?"HTTP":u,{kind:Ra.SpanKind.CLIENT,attributes:l},m),(0, h0.safeExecuteInTheMiddle)(()=>{var x;return (x=r.requestHook)===null||x===void 0?void 0:x.call(r,g,t)},x=>x&&this._diag.error("caught requestHook error: ",x),!0);let v=Ra.trace.setSpan(Ra.context.active(),g),E={};Ra.propagation.inject(v,E);let S=Object.entries(E);for(let x=0;xh.toLowerCase())),p=Array.isArray(t.headers)?t.headers:t.headers.split(`\r `);p.forEach((h,f)=>{let d=h.indexOf(":"),m=d!==-1,y=(m?h.substring(0,d):h).toLowerCase(),g=m?h.substring(d+1):p[f+1];c.has(y)&&(l[`http.request.header.${y}`]=g.trim());});}a.setAttributes(l);}onResponseHeaders({request:t,response:r}){var n,i;let s=this._recordFromReq.get(t);if(!s)return;let{span:a,attributes:o}=s,u={[Ci.SemanticAttributes.HTTP_RESPONSE_STATUS_CODE]:r.statusCode},l=this.getConfig();(0, h0.safeExecuteInTheMiddle)(()=>{var p;return (p=l.responseHook)===null||p===void 0?void 0:p.call(l,a,{request:t,response:r})},p=>p&&this._diag.error("caught responseHook error: ",p),!0);let c=new Set;!((n=l.headersToSpanAttributes)===null||n===void 0)&&n.responseHeaders&&((i=l.headersToSpanAttributes)===null||i===void 0||i.responseHeaders.forEach(p=>c.add(p.toLowerCase())));for(let p=0;p=400?Ra.SpanStatusCode.ERROR:Ra.SpanStatusCode.UNSET}),s.attributes=Object.assign(o,u);}onDone({request:t}){let r=this._recordFromReq.get(t);if(!r)return;let{span:n,attributes:i,startTime:s}=r;n.end(),this._recordFromReq.delete(t),this.recordRequestDuration(i,s);}onError({request:t,error:r}){let n=this._recordFromReq.get(t);if(!n)return;let{span:i,attributes:s,startTime:a}=n;i.recordException(r),i.setStatus({code:Ra.SpanStatusCode.ERROR,message:r.message}),i.end(),this._recordFromReq.delete(t),s[Ci.SemanticAttributes.ERROR_TYPE]=r.message,this.recordRequestDuration(s,a);}recordRequestDuration(t,r){let n={};[Ci.SemanticAttributes.HTTP_RESPONSE_STATUS_CODE,Ci.SemanticAttributes.HTTP_REQUEST_METHOD,Ci.SemanticAttributes.SERVER_ADDRESS,Ci.SemanticAttributes.SERVER_PORT,Ci.SemanticAttributes.URL_SCHEME,Ci.SemanticAttributes.ERROR_TYPE].forEach(a=>{a in t&&(n[a]=t[a]);});let s=(0, HP.hrTimeToMilliseconds)((0, HP.hrTimeDuration)(r,(0, HP.hrTime)()))/1e3;this._httpClientDurationHistogram.record(s,n);}getRequestMethod(t){let r={CONNECT:!0,OPTIONS:!0,HEAD:!0,GET:!0,POST:!0,PUT:!0,PATCH:!0,DELETE:!0,TRACE:!0};return t.toUpperCase()in r?t.toUpperCase():"_OTHER"}};GP.UndiciInstrumentation=_2;});var Aoe=chunkTKGT252T_js.c(xoe=>{Object.defineProperty(xoe,"__esModule",{value:!0});});var Coe=chunkTKGT252T_js.c($p=>{var dnt=$p&&$p.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),Poe=$p&&$p.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&dnt(t,e,r);};Object.defineProperty($p,"__esModule",{value:!0});Poe(_oe(),$p);Poe(Aoe(),$p);});var KP=chunkTKGT252T_js.c(y0=>{Object.defineProperty(y0,"__esModule",{value:!0});y0.ExpressLayerType=void 0;(function(e){e.ROUTER="router",e.MIDDLEWARE="middleware",e.REQUEST_HANDLER="request_handler";})(y0.ExpressLayerType||(y0.ExpressLayerType={}));});var YP=chunkTKGT252T_js.c(g0=>{Object.defineProperty(g0,"__esModule",{value:!0});g0.AttributeNames=void 0;(function(e){e.EXPRESS_TYPE="express.type",e.EXPRESS_NAME="express.name";})(g0.AttributeNames||(g0.AttributeNames={}));});var w2=chunkTKGT252T_js.c(By=>{Object.defineProperty(By,"__esModule",{value:!0});By._LAYERS_STORE_PROPERTY=By.kLayerPatched=void 0;By.kLayerPatched=Symbol("express-layer-patched");By._LAYERS_STORE_PROPERTY="__ot_middlewares";});var tue=chunkTKGT252T_js.c(so=>{Object.defineProperty(so,"__esModule",{value:!0});so.getLayerPath=so.asErrorAndMessage=so.isLayerIgnored=so.getLayerMetadata=so.storeLayerPath=void 0;var I2=KP(),jy=YP(),O2=w2(),Ait=(e,t)=>{Array.isArray(e[O2._LAYERS_STORE_PROPERTY])===!1&&Object.defineProperty(e,O2._LAYERS_STORE_PROPERTY,{enumerable:!1,value:[]}),t!==void 0&&e[O2._LAYERS_STORE_PROPERTY].push(t);};so.storeLayerPath=Ait;var Pit=(e,t)=>e.name==="router"?{attributes:{[jy.AttributeNames.EXPRESS_NAME]:t,[jy.AttributeNames.EXPRESS_TYPE]:I2.ExpressLayerType.ROUTER},name:`router - ${t}`}:e.name==="bound dispatch"?{attributes:{[jy.AttributeNames.EXPRESS_NAME]:t??"request handler",[jy.AttributeNames.EXPRESS_TYPE]:I2.ExpressLayerType.REQUEST_HANDLER},name:`request handler${e.path?` - ${t}`:""}`}:{attributes:{[jy.AttributeNames.EXPRESS_NAME]:e.name,[jy.AttributeNames.EXPRESS_TYPE]:I2.ExpressLayerType.MIDDLEWARE},name:`middleware - ${e.name}`};so.getLayerMetadata=Pit;var Cit=(e,t)=>{if(typeof t=="string")return t===e;if(t instanceof RegExp)return t.test(e);if(typeof t=="function")return t(e);throw new TypeError("Pattern is in unsupported datatype")},wit=(e,t,r)=>{var n;if(Array.isArray(r==null?void 0:r.ignoreLayersType)&&(!((n=r==null?void 0:r.ignoreLayersType)===null||n===void 0)&&n.includes(t)))return !0;if(Array.isArray(r==null?void 0:r.ignoreLayers)===!1)return !1;try{for(let i of r.ignoreLayers)if(Cit(e,i))return !0}catch{}return !1};so.isLayerIgnored=wit;var Iit=e=>e instanceof Error?[e,e.message]:[String(e),String(e)];so.asErrorAndMessage=Iit;var Oit=e=>Array.isArray(e[0])?e[0].map(t=>eue(t)||"").join(","):eue(e[0]);so.getLayerPath=Oit;var eue=e=>{if(typeof e=="string")return e;if(e instanceof RegExp||typeof e=="number")return e.toString()};});var rue=chunkTKGT252T_js.c(Uy=>{Object.defineProperty(Uy,"__esModule",{value:!0});Uy.PACKAGE_NAME=Uy.PACKAGE_VERSION=void 0;Uy.PACKAGE_VERSION="0.42.0";Uy.PACKAGE_NAME="@opentelemetry/instrumentation-express";});var oue=chunkTKGT252T_js.c(WP=>{Object.defineProperty(WP,"__esModule",{value:!0});WP.ExpressInstrumentation=void 0;var nue=(jn(),chunkTKGT252T_js.f(eo)),Jh=(pt(),chunkTKGT252T_js.f(Gr)),iue=KP(),sue=YP(),Kp=tue(),aue=rue(),qy=(Rn(),chunkTKGT252T_js.f(zn)),Dit=(dn(),chunkTKGT252T_js.f(si)),S0=w2(),D2=class extends qy.InstrumentationBase{constructor(t={}){super(aue.PACKAGE_NAME,aue.PACKAGE_VERSION,t);}init(){return [new qy.InstrumentationNodeModuleDefinition("express",[">=4.0.0 <5"],t=>{let r=t.Router;return (0, qy.isWrapped)(r.route)&&this._unwrap(r,"route"),this._wrap(r,"route",this._getRoutePatch()),(0, qy.isWrapped)(r.use)&&this._unwrap(r,"use"),this._wrap(r,"use",this._getRouterUsePatch()),(0, qy.isWrapped)(t.application.use)&&this._unwrap(t.application,"use"),this._wrap(t.application,"use",this._getAppUsePatch()),t},t=>{if(t===void 0)return;let r=t.Router;this._unwrap(r,"route"),this._unwrap(r,"use"),this._unwrap(t.application,"use");})]}_getRoutePatch(){let t=this;return function(r){return function(...i){let s=r.apply(this,i),a=this.stack[this.stack.length-1];return t._applyPatch(a,(0, Kp.getLayerPath)(i)),s}}}_getRouterUsePatch(){let t=this;return function(r){return function(...i){let s=r.apply(this,i),a=this.stack[this.stack.length-1];return t._applyPatch(a,(0, Kp.getLayerPath)(i)),s}}}_getAppUsePatch(){let t=this;return function(r){return function(...i){let s=r.apply(this,i),a=this._router.stack[this._router.stack.length-1];return t._applyPatch(a,(0, Kp.getLayerPath)(i)),s}}}_applyPatch(t,r){let n=this;t[S0.kLayerPatched]!==!0&&(t[S0.kLayerPatched]=!0,this._wrap(t,"handle",i=>{if(i.length===4)return i;let s=function(a,o){(0, Kp.storeLayerPath)(a,r);let u=a[S0._LAYERS_STORE_PROPERTY].filter(S=>S!=="/"&&S!=="/*").join("").replace(/\/{2,}/g,"/"),l={[Dit.SEMATTRS_HTTP_ROUTE]:u.length>0?u:"/"},c=(0, Kp.getLayerMetadata)(t,r),p=c.attributes[sue.AttributeNames.EXPRESS_TYPE],h=(0, nue.getRPCMetadata)(Jh.context.active());if((h==null?void 0:h.type)===nue.RPCType.HTTP&&(h.route=u||"/"),(0, Kp.isLayerIgnored)(c.name,p,n.getConfig()))return p===iue.ExpressLayerType.MIDDLEWARE&&a[S0._LAYERS_STORE_PROPERTY].pop(),i.apply(this,arguments);if(Jh.trace.getSpan(Jh.context.active())===void 0)return i.apply(this,arguments);let f=n._getSpanName({request:a,layerType:p,route:u},c.name),d=n.tracer.startSpan(f,{attributes:Object.assign(l,c.attributes)}),{requestHook:m}=n.getConfig();m&&(0, qy.safeExecuteInTheMiddle)(()=>m(d,{request:a,layerType:p,route:u}),S=>{S&&Jh.diag.error("express instrumentation: request hook failed",S);},!0);let y=!1;c.attributes[sue.AttributeNames.EXPRESS_TYPE]!==iue.ExpressLayerType.MIDDLEWARE&&(d.end(),y=!0);let g=()=>{y===!1&&(y=!0,d.end());},v=Array.from(arguments),E=v.findIndex(S=>typeof S=="function");E>=0&&(arguments[E]=function(){var S;let x=arguments[0],b=![void 0,null,"route","router"].includes(x);if(!y&&b){let[D,P]=(0, Kp.asErrorAndMessage)(x);d.recordException(D),d.setStatus({code:Jh.SpanStatusCode.ERROR,message:P});}return y===!1&&(y=!0,(S=a.res)===null||S===void 0||S.removeListener("finish",g),d.end()),a.route&&b||a[S0._LAYERS_STORE_PROPERTY].pop(),v[E].apply(this,arguments)});try{return i.apply(this,arguments)}catch(S){let[x,b]=(0, Kp.asErrorAndMessage)(S);throw d.recordException(x),d.setStatus({code:Jh.SpanStatusCode.ERROR,message:b}),S}finally{y||o.once("finish",g);}};for(let a in i)Object.defineProperty(s,a,{get(){return i[a]},set(o){i[a]=o;}});return s}));}_getSpanName(t,r){var n;let{spanNameHook:i}=this.getConfig();if(!(i instanceof Function))return r;try{return (n=i(t,r))!==null&&n!==void 0?n:r}catch(s){return Jh.diag.error("express instrumentation: error calling span name rewrite hook",s),r}}};WP.ExpressInstrumentation=D2;});var lue=chunkTKGT252T_js.c(uue=>{Object.defineProperty(uue,"__esModule",{value:!0});});var cue=chunkTKGT252T_js.c(Gu=>{var Nit=Gu&&Gu.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),XP=Gu&&Gu.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Nit(t,e,r);};Object.defineProperty(Gu,"__esModule",{value:!0});XP(oue(),Gu);XP(KP(),Gu);XP(YP(),Gu);XP(lue(),Gu);});var N2=chunkTKGT252T_js.c(ru=>{Object.defineProperty(ru,"__esModule",{value:!0});ru.FastifyNames=ru.FastifyTypes=ru.AttributeNames=void 0;(function(e){e.FASTIFY_NAME="fastify.name",e.FASTIFY_TYPE="fastify.type",e.HOOK_NAME="hook.name",e.PLUGIN_NAME="plugin.name";})(ru.AttributeNames||(ru.AttributeNames={}));(function(e){e.MIDDLEWARE="middleware",e.REQUEST_HANDLER="request_handler";})(ru.FastifyTypes||(ru.FastifyTypes={}));(function(e){e.MIDDLEWARE="middleware",e.REQUEST_HANDLER="request handler";})(ru.FastifyNames||(ru.FastifyNames={}));});var yue=chunkTKGT252T_js.c(mue=>{Object.defineProperty(mue,"__esModule",{value:!0});});var R2=chunkTKGT252T_js.c(Vy=>{Object.defineProperty(Vy,"__esModule",{value:!0});Vy.hooksNamesToWrap=Vy.spanRequestSymbol=void 0;Vy.spanRequestSymbol=Symbol("opentelemetry.instrumentation.fastify.request_active_span");Vy.hooksNamesToWrap=new Set(["onTimeout","onRequest","preParsing","preValidation","preSerialization","preHandler","onSend","onResponse","onError"]);});var Sue=chunkTKGT252T_js.c(Yp=>{Object.defineProperty(Yp,"__esModule",{value:!0});Yp.safeExecuteInTheMiddleMaybePromise=Yp.endSpan=Yp.startSpan=void 0;var Fit=(pt(),chunkTKGT252T_js.f(Gr)),JP=R2();function Bit(e,t,r,n={}){let i=t.startSpan(r,{attributes:n}),s=e[JP.spanRequestSymbol]||[];return s.push(i),Object.defineProperty(e,JP.spanRequestSymbol,{enumerable:!1,configurable:!0,value:s}),i}Yp.startSpan=Bit;function jit(e,t){let r=e[JP.spanRequestSymbol]||[];r.length&&(r.forEach(n=>{t&&(n.setStatus({code:Fit.SpanStatusCode.ERROR,message:t.message}),n.recordException(t)),n.end();}),delete e[JP.spanRequestSymbol]);}Yp.endSpan=jit;function Uit(e,t,r){let n,i;try{i=e(),gue(i)&&i.then(s=>t(void 0,s),s=>t(s));}catch(s){n=s;}finally{if(!gue(i)&&(t(n,i),n&&!r))throw n;return i}}Yp.safeExecuteInTheMiddleMaybePromise=Uit;function gue(e){var t;return typeof e=="object"&&e&&typeof((t=Object.getOwnPropertyDescriptor(e,"then"))===null||t===void 0?void 0:t.value)=="function"||!1}});var Tue=chunkTKGT252T_js.c(Hy=>{Object.defineProperty(Hy,"__esModule",{value:!0});Hy.PACKAGE_NAME=Hy.PACKAGE_VERSION=void 0;Hy.PACKAGE_VERSION="0.39.0";Hy.PACKAGE_NAME="@opentelemetry/instrumentation-fastify";});var vue=chunkTKGT252T_js.c(Xp=>{Object.defineProperty(Xp,"__esModule",{value:!0});Xp.FastifyInstrumentation=Xp.ANONYMOUS_NAME=void 0;var Wp=(pt(),chunkTKGT252T_js.f(Gr)),Eue=(jn(),chunkTKGT252T_js.f(eo)),QP=(Rn(),chunkTKGT252T_js.f(zn)),qit=(dn(),chunkTKGT252T_js.f(si)),Vit=R2(),$u=N2(),Gy=Sue(),bue=Tue();Xp.ANONYMOUS_NAME="anonymous";var M2=class extends QP.InstrumentationBase{constructor(t={}){super(bue.PACKAGE_NAME,bue.PACKAGE_VERSION,t);}init(){return [new QP.InstrumentationNodeModuleDefinition("fastify",[">=3.0.0 <5"],t=>this._patchConstructor(t))]}_hookOnRequest(){let t=this;return function(n,i,s){if(!t.isEnabled())return s();t._wrap(i,"send",t._patchSend());let a=n,o=(0, Eue.getRPCMetadata)(Wp.context.active()),u=a.routeOptions?a.routeOptions.url:n.routerPath;u&&(o==null?void 0:o.type)===Eue.RPCType.HTTP&&(o.route=u),s();}}_wrapHandler(t,r,n,i){let s=this;return this._diag.debug("Patching fastify route.handler function"),function(...a){if(!s.isEnabled())return n.apply(this,a);let o=n.name||t||Xp.ANONYMOUS_NAME,u=`${$u.FastifyNames.MIDDLEWARE} - ${o}`,l=a[1],c=(0, Gy.startSpan)(l,s.tracer,u,{[$u.AttributeNames.FASTIFY_TYPE]:$u.FastifyTypes.MIDDLEWARE,[$u.AttributeNames.PLUGIN_NAME]:t,[$u.AttributeNames.HOOK_NAME]:r}),p=i&&a[a.length-1];return p&&(a[a.length-1]=function(...h){(0, Gy.endSpan)(l),p.apply(this,h);}),Wp.context.with(Wp.trace.setSpan(Wp.context.active(),c),()=>(0, Gy.safeExecuteInTheMiddleMaybePromise)(()=>n.apply(this,a),h=>{h instanceof Error&&(c.setStatus({code:Wp.SpanStatusCode.ERROR,message:h.message}),c.recordException(h)),i||(0, Gy.endSpan)(l);}))}}_wrapAddHook(){let t=this;return this._diag.debug("Patching fastify server.addHook function"),function(r){return function(...i){let s=i[0],a=i[1],o=this.pluginName;if(!Vit.hooksNamesToWrap.has(s))return r.apply(this,i);let u=typeof i[i.length-1]=="function"&&a.constructor.name!=="AsyncFunction";return r.apply(this,[s,t._wrapHandler(o,s,a,u)])}}}_patchConstructor(t){let r=this;function n(...i){let s=t.fastify.apply(this,i);return s.addHook("onRequest",r._hookOnRequest()),s.addHook("preHandler",r._hookPreHandler()),r._wrap(s,"addHook",r._wrapAddHook()),s}return n.fastify=n,n.default=n,n}_patchSend(){let t=this;return this._diag.debug("Patching fastify reply.send function"),function(n){return function(...s){let a=s[0];return t.isEnabled()?(0, QP.safeExecuteInTheMiddle)(()=>n.apply(this,s),o=>{!o&&a instanceof Error&&(o=a),(0, Gy.endSpan)(this,o);}):n.apply(this,s)}}}_hookPreHandler(){let t=this;return this._diag.debug("Patching fastify preHandler function"),function(n,i,s){var a,o;if(!t.isEnabled())return s();let u=n,l=((a=u.routeOptions)===null||a===void 0?void 0:a.handler)||((o=u.context)===null||o===void 0?void 0:o.handler),c=l!=null&&l.name.startsWith("bound ")?l.name.substr(6):l==null?void 0:l.name,p=`${$u.FastifyNames.REQUEST_HANDLER} - ${c||this.pluginName||Xp.ANONYMOUS_NAME}`,h={[$u.AttributeNames.PLUGIN_NAME]:this.pluginName,[$u.AttributeNames.FASTIFY_TYPE]:$u.FastifyTypes.REQUEST_HANDLER,[qit.SEMATTRS_HTTP_ROUTE]:u.routeOptions?u.routeOptions.url:n.routerPath};c&&(h[$u.AttributeNames.FASTIFY_NAME]=c);let f=(0, Gy.startSpan)(i,t.tracer,p,h),{requestHook:d}=t.getConfig();return d&&(0, QP.safeExecuteInTheMiddle)(()=>d(f,{request:n}),m=>{m&&t._diag.error("request hook failed",m);},!0),Wp.context.with(Wp.trace.setSpan(Wp.context.active(),f),()=>{s();})}}};Xp.FastifyInstrumentation=M2;});var _ue=chunkTKGT252T_js.c(Kl=>{var Hit=Kl&&Kl.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),L2=Kl&&Kl.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Hit(t,e,r);};Object.defineProperty(Kl,"__esModule",{value:!0});L2(N2(),Kl);L2(yue(),Kl);L2(vue(),Kl);});var k2=chunkTKGT252T_js.c(nu=>{Object.defineProperty(nu,"__esModule",{value:!0});nu.SpanNames=nu.TokenKind=nu.AllowedOperationTypes=void 0;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription";})(nu.AllowedOperationTypes||(nu.AllowedOperationTypes={}));(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment";})(nu.TokenKind||(nu.TokenKind={}));(function(e){e.EXECUTE="graphql.execute",e.PARSE="graphql.parse",e.RESOLVE="graphql.resolve",e.VALIDATE="graphql.validate",e.SCHEMA_VALIDATE="graphql.validateSchema",e.SCHEMA_PARSE="graphql.parseSchema";})(nu.SpanNames||(nu.SpanNames={}));});var F2=chunkTKGT252T_js.c(T0=>{Object.defineProperty(T0,"__esModule",{value:!0});T0.AttributeNames=void 0;(function(e){e.SOURCE="graphql.source",e.FIELD_NAME="graphql.field.name",e.FIELD_PATH="graphql.field.path",e.FIELD_TYPE="graphql.field.type",e.OPERATION_TYPE="graphql.operation.type",e.OPERATION_NAME="graphql.operation.name",e.VARIABLES="graphql.variables.",e.ERROR_VALIDATION_NAME="graphql.validation.error";})(T0.AttributeNames||(T0.AttributeNames={}));});var ZP=chunkTKGT252T_js.c($y=>{Object.defineProperty($y,"__esModule",{value:!0});$y.OTEL_GRAPHQL_DATA_SYMBOL=$y.OTEL_PATCHED_SYMBOL=void 0;$y.OTEL_PATCHED_SYMBOL=Symbol.for("opentelemetry.patched");$y.OTEL_GRAPHQL_DATA_SYMBOL=Symbol.for("opentelemetry.graphql_data");});var wue=chunkTKGT252T_js.c(eC=>{Object.defineProperty(eC,"__esModule",{value:!0});eC.OPERATION_NOT_SUPPORTED=void 0;ZP();eC.OPERATION_NOT_SUPPORTED="Operation$operationName$not supported";});var Uue=chunkTKGT252T_js.c(Ii=>{Object.defineProperty(Ii,"__esModule",{value:!0});Ii.wrapFieldResolver=Ii.wrapFields=Ii.getSourceFromLocation=Ii.getOperation=Ii.endSpan=Ii.addSpanSource=Ii.addInputVariableAttributes=Ii.isPromise=void 0;var Yy=(pt(),chunkTKGT252T_js.f(Gr)),zp=k2(),Ky=F2(),Yl=ZP(),Iue=Object.values(zp.AllowedOperationTypes),zit=e=>typeof(e==null?void 0:e.then)=="function";Ii.isPromise=zit;var Jit=e=>typeof e=="object"&&e!==null;function B2(e,t,r){Array.isArray(r)?r.forEach((n,i)=>{B2(e,`${t}.${i}`,n);}):r instanceof Object?Object.entries(r).forEach(([n,i])=>{B2(e,`${t}.${n}`,i);}):e.setAttribute(`${Ky.AttributeNames.VARIABLES}${String(t)}`,r);}function Qit(e,t){Object.entries(t).forEach(([r,n])=>{B2(e,r,n);});}Ii.addInputVariableAttributes=Qit;function Rue(e,t,r,n,i){let s=Fue(t,r,n,i);e.setAttribute(Ky.AttributeNames.SOURCE,s);}Ii.addSpanSource=Rue;function Zit(e,t,r,n,i){let s=Mue(r,i),a=!1;if(!s){a=!0;let o=Lue(r,i);s={parent:o,span:est(e,t,r,n,i,o.span),error:null},nst(r,i,s);}return {spanAdded:a,field:s}}function est(e,t,r,n,i,s){var a,o;let u={[Ky.AttributeNames.FIELD_NAME]:n.fieldName,[Ky.AttributeNames.FIELD_PATH]:i.join("."),[Ky.AttributeNames.FIELD_TYPE]:n.returnType.toString()},l=e.startSpan(`${zp.SpanNames.RESOLVE} ${u[Ky.AttributeNames.FIELD_PATH]}`,{attributes:u},s?Yy.trace.setSpan(Yy.context.active(),s):void 0),c=r[Yl.OTEL_GRAPHQL_DATA_SYMBOL].source,p=n.fieldNodes.find(h=>h.kind==="Field");return p&&Rue(l,c.loc,t().allowValues,(a=p.loc)===null||a===void 0?void 0:a.start,(o=p.loc)===null||o===void 0?void 0:o.end),l}function tst(e,t){t&&e.recordException(t),e.end();}Ii.endSpan=tst;function rst(e,t){if(!(!e||!Array.isArray(e.definitions)))return t?e.definitions.filter(r=>{var n;return Iue.indexOf((n=r)===null||n===void 0?void 0:n.operation)!==-1}).find(r=>{var n,i;return t===((i=(n=r)===null||n===void 0?void 0:n.name)===null||i===void 0?void 0:i.value)}):e.definitions.find(r=>{var n;return Iue.indexOf((n=r)===null||n===void 0?void 0:n.operation)!==-1})}Ii.getOperation=rst;function nst(e,t,r){return e[Yl.OTEL_GRAPHQL_DATA_SYMBOL].fields[t.join(".")]=r}function Mue(e,t){return e[Yl.OTEL_GRAPHQL_DATA_SYMBOL].fields[t.join(".")]}function Lue(e,t){for(let r=t.length-1;r>0;r--){let n=Mue(e,t.slice(0,r));if(n)return n}return {span:e[Yl.OTEL_GRAPHQL_DATA_SYMBOL].span}}function ist(e,t){let r=[],n=t;for(;n;){let i=n.key;e&&typeof i=="number"&&(i="*"),r.push(String(i)),n=n.prev;}return r.reverse()}function sst(e){return kue(` `,e)}function Oue(e){return kue(" ",e)}function kue(e,t){let r="";for(let n=0;nu){l=l.next,c=l==null?void 0:l.line;continue}let p=l.value||l.kind,h="";!t&&ast.indexOf(l.kind)>=0&&(p="*"),l.kind===zp.TokenKind.STRING&&(p=`"${p}"`),l.kind===zp.TokenKind.EOF&&(p=""),l.line>c?(a+=sst(l.line-c),c=l.line,h=Oue(l.column-1)):l.line===((i=l.prev)===null||i===void 0?void 0:i.line)&&(h=Oue(l.start-(((s=l.prev)===null||s===void 0?void 0:s.end)||0))),a+=h+p,l&&(l=l.next);}}return a}Ii.getSourceFromLocation=Fue;function Bue(e,t,r){if(!e||typeof e.getFields!="function"||e[Yl.OTEL_PATCHED_SYMBOL])return;let n=e.getFields();e[Yl.OTEL_PATCHED_SYMBOL]=!0,Object.keys(n).forEach(i=>{let s=n[i];if(s&&(s.resolve&&(s.resolve=jue(t,r,s.resolve)),s.type)){let a=s.type;for(;a.ofType;)a=a.ofType;Bue(a,t,r);}});}Ii.wrapFields=Bue;var Due=(e,t,r)=>{r&&(e.recordException(t),e.setStatus({code:Yy.SpanStatusCode.ERROR,message:t.message}),e.end());},Nue=(e,t)=>{t&&e.end();};function jue(e,t,r,n=!1){if(i[Yl.OTEL_PATCHED_SYMBOL]||typeof r!="function")return r;function i(s,a,o,u){if(!r)return;let l=t();if(l.ignoreTrivialResolveSpans&&n&&(Jit(s)||typeof s=="function")&&typeof s[u.fieldName]!="function")return r.call(this,s,a,o,u);if(!o[Yl.OTEL_GRAPHQL_DATA_SYMBOL])return r.call(this,s,a,o,u);let c=ist(l.mergeItems,u&&u.path),p=c.filter(d=>typeof d=="string").length,h,f=!1;if(l.depth>=0&&l.depth{try{let d=r.call(this,s,a,o,u);return (0,Ii.isPromise)(d)?d.then(m=>(Nue(h.span,f),m),m=>{throw Due(h.span,m,f),m}):(Nue(h.span,f),d)}catch(d){throw Due(h.span,d,f),d}})}return i[Yl.OTEL_PATCHED_SYMBOL]=!0,i}Ii.wrapFieldResolver=jue;});var que=chunkTKGT252T_js.c(Wy=>{Object.defineProperty(Wy,"__esModule",{value:!0});Wy.PACKAGE_NAME=Wy.PACKAGE_VERSION=void 0;Wy.PACKAGE_VERSION="0.43.0";Wy.PACKAGE_NAME="@opentelemetry/instrumentation-graphql";});var Gue=chunkTKGT252T_js.c(nC=>{Object.defineProperty(nC,"__esModule",{value:!0});nC.GraphQLInstrumentation=void 0;var Wl=(pt(),chunkTKGT252T_js.f(Gr)),ao=(Rn(),chunkTKGT252T_js.f(zn)),E0=k2(),tC=F2(),j2=ZP(),ost=wue(),hs=Uue(),Vue=que(),Hue={mergeItems:!1,depth:-1,allowValues:!1,ignoreResolveSpans:!1},rC=[">=14.0.0 <17"],U2=class extends ao.InstrumentationBase{constructor(t={}){super(Vue.PACKAGE_NAME,Vue.PACKAGE_VERSION,Object.assign(Object.assign({},Hue),t));}setConfig(t={}){super.setConfig(Object.assign(Object.assign({},Hue),t));}init(){let t=new ao.InstrumentationNodeModuleDefinition("graphql",rC);return t.files.push(this._addPatchingExecute()),t.files.push(this._addPatchingParser()),t.files.push(this._addPatchingValidate()),t}_addPatchingExecute(){return new ao.InstrumentationNodeModuleFile("graphql/execution/execute.js",rC,t=>((0, ao.isWrapped)(t.execute)&&this._unwrap(t,"execute"),this._wrap(t,"execute",this._patchExecute(t.defaultFieldResolver)),t),t=>{t&&this._unwrap(t,"execute");})}_addPatchingParser(){return new ao.InstrumentationNodeModuleFile("graphql/language/parser.js",rC,t=>((0, ao.isWrapped)(t.parse)&&this._unwrap(t,"parse"),this._wrap(t,"parse",this._patchParse()),t),t=>{t&&this._unwrap(t,"parse");})}_addPatchingValidate(){return new ao.InstrumentationNodeModuleFile("graphql/validation/validate.js",rC,t=>((0, ao.isWrapped)(t.validate)&&this._unwrap(t,"validate"),this._wrap(t,"validate",this._patchValidate()),t),t=>{t&&this._unwrap(t,"validate");})}_patchExecute(t){let r=this;return function(i){return function(){let a;if(arguments.length>=2){let l=arguments;a=r._wrapExecuteArgs(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],t);}else {let l=arguments[0];a=r._wrapExecuteArgs(l.schema,l.document,l.rootValue,l.contextValue,l.variableValues,l.operationName,l.fieldResolver,l.typeResolver,t);}let o=(0, hs.getOperation)(a.document,a.operationName),u=r._createExecuteSpan(o,a);return a.contextValue[j2.OTEL_GRAPHQL_DATA_SYMBOL]={source:a.document?a.document||a.document[j2.OTEL_GRAPHQL_DATA_SYMBOL]:void 0,span:u,fields:{}},Wl.context.with(Wl.trace.setSpan(Wl.context.active(),u),()=>(0, ao.safeExecuteInTheMiddle)(()=>i.apply(this,[a]),(l,c)=>{r._handleExecutionResult(u,l,c);}))}}}_handleExecutionResult(t,r,n){let i=this.getConfig();if(n===void 0||r){(0, hs.endSpan)(t,r);return}if((0, hs.isPromise)(n))n.then(s=>{if(typeof i.responseHook!="function"){(0, hs.endSpan)(t);return}this._executeResponseHook(t,s);},s=>{(0, hs.endSpan)(t,s);});else {if(typeof i.responseHook!="function"){(0, hs.endSpan)(t);return}this._executeResponseHook(t,n);}}_executeResponseHook(t,r){let{responseHook:n}=this.getConfig();n&&(0, ao.safeExecuteInTheMiddle)(()=>{n(t,r);},i=>{i&&this._diag.error("Error running response hook",i),(0, hs.endSpan)(t,void 0);},!0);}_patchParse(){let t=this;return function(n){return function(s,a){return t._parse(this,n,s,a)}}}_patchValidate(){let t=this;return function(n){return function(s,a,o,u,l){return t._validate(this,n,s,a,o,l,u)}}}_parse(t,r,n,i){let s=this.getConfig(),a=this.tracer.startSpan(E0.SpanNames.PARSE);return Wl.context.with(Wl.trace.setSpan(Wl.context.active(),a),()=>(0, ao.safeExecuteInTheMiddle)(()=>r.call(t,n,i),(o,u)=>{u&&((0, hs.getOperation)(u)?u.loc&&(0, hs.addSpanSource)(a,u.loc,s.allowValues):a.updateName(E0.SpanNames.SCHEMA_PARSE)),(0, hs.endSpan)(a,o);}))}_validate(t,r,n,i,s,a,o){let u=this.tracer.startSpan(E0.SpanNames.VALIDATE,{});return Wl.context.with(Wl.trace.setSpan(Wl.context.active(),u),()=>(0, ao.safeExecuteInTheMiddle)(()=>r.call(t,n,i,s,o,a),(l,c)=>{i.loc||u.updateName(E0.SpanNames.SCHEMA_VALIDATE),c&&c.length&&u.recordException({name:tC.AttributeNames.ERROR_VALIDATION_NAME,message:JSON.stringify(c)}),(0, hs.endSpan)(u,l);}))}_createExecuteSpan(t,r){var n;let i=this.getConfig(),s=this.tracer.startSpan(E0.SpanNames.EXECUTE,{});if(t){let{operation:a,name:o}=t;s.setAttribute(tC.AttributeNames.OPERATION_TYPE,a);let u=o==null?void 0:o.value;u?(s.setAttribute(tC.AttributeNames.OPERATION_NAME,u),s.updateName(`${a} ${u}`)):s.updateName(a);}else {let a=" ";r.operationName&&(a=` "${r.operationName}" `),a=ost.OPERATION_NOT_SUPPORTED.replace("$operationName$",a),s.setAttribute(tC.AttributeNames.OPERATION_NAME,a);}return !((n=r.document)===null||n===void 0)&&n.loc&&(0, hs.addSpanSource)(s,r.document.loc,i.allowValues),r.variableValues&&i.allowValues&&(0, hs.addInputVariableAttributes)(s,r.variableValues),s}_wrapExecuteArgs(t,r,n,i,s,a,o,u,l){if(i||(i={}),i[j2.OTEL_GRAPHQL_DATA_SYMBOL]||this.getConfig().ignoreResolveSpans)return {schema:t,document:r,rootValue:n,contextValue:i,variableValues:s,operationName:a,fieldResolver:o,typeResolver:u};let c=o==null,p=o??l;return o=(0, hs.wrapFieldResolver)(this.tracer,()=>this.getConfig(),p,c),t&&((0, hs.wrapFields)(t.getQueryType(),this.tracer,()=>this.getConfig()),(0, hs.wrapFields)(t.getMutationType(),this.tracer,()=>this.getConfig())),{schema:t,document:r,rootValue:n,contextValue:i,variableValues:s,operationName:a,fieldResolver:o,typeResolver:u}}};nC.GraphQLInstrumentation=U2;});var Kue=chunkTKGT252T_js.c($ue=>{Object.defineProperty($ue,"__esModule",{value:!0});});var Wue=chunkTKGT252T_js.c(Jp=>{var ust=Jp&&Jp.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),Yue=Jp&&Jp.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ust(t,e,r);};Object.defineProperty(Jp,"__esModule",{value:!0});Yue(Gue(),Jp);Yue(Kue(),Jp);});var Zue=chunkTKGT252T_js.c(Xy=>{Object.defineProperty(Xy,"__esModule",{value:!0});Xy.PACKAGE_NAME=Xy.PACKAGE_VERSION=void 0;Xy.PACKAGE_VERSION="0.3.0";Xy.PACKAGE_NAME="@opentelemetry/instrumentation-kafkajs";});var ele=chunkTKGT252T_js.c(iC=>{Object.defineProperty(iC,"__esModule",{value:!0});iC.bufferTextMapGetter=void 0;iC.bufferTextMapGetter={get(e,t){var r;if(!e)return;let n=Object.keys(e);for(let i of n)if(i===t||i.toLowerCase()===t)return (r=e[i])===null||r===void 0?void 0:r.toString()},keys(e){return e?Object.keys(e):[]}};});var nle=chunkTKGT252T_js.c(sC=>{Object.defineProperty(sC,"__esModule",{value:!0});sC.KafkaJsInstrumentation=void 0;var zi=(pt(),chunkTKGT252T_js.f(Gr)),Qp=(dn(),chunkTKGT252T_js.f(si)),tle=Zue(),rle=ele(),iu=(Rn(),chunkTKGT252T_js.f(zn)),q2=class extends iu.InstrumentationBase{constructor(t={}){super(tle.PACKAGE_NAME,tle.PACKAGE_VERSION,t);}init(){let t=n=>{var i,s;(0, iu.isWrapped)((i=n==null?void 0:n.Kafka)===null||i===void 0?void 0:i.prototype.producer)&&this._unwrap(n.Kafka.prototype,"producer"),(0, iu.isWrapped)((s=n==null?void 0:n.Kafka)===null||s===void 0?void 0:s.prototype.consumer)&&this._unwrap(n.Kafka.prototype,"consumer");};return new iu.InstrumentationNodeModuleDefinition("kafkajs",[">=0.1.0 <3"],n=>{var i,s;return t(n),this._wrap((i=n==null?void 0:n.Kafka)===null||i===void 0?void 0:i.prototype,"producer",this._getProducerPatch()),this._wrap((s=n==null?void 0:n.Kafka)===null||s===void 0?void 0:s.prototype,"consumer",this._getConsumerPatch()),n},t)}_getConsumerPatch(){let t=this;return r=>function(...i){let s=r.apply(this,i);return (0, iu.isWrapped)(s.run)&&t._unwrap(s,"run"),t._wrap(s,"run",t._getConsumerRunPatch()),s}}_getProducerPatch(){let t=this;return r=>function(...i){let s=r.apply(this,i);return (0, iu.isWrapped)(s.sendBatch)&&t._unwrap(s,"sendBatch"),t._wrap(s,"sendBatch",t._getProducerSendBatchPatch()),(0, iu.isWrapped)(s.send)&&t._unwrap(s,"send"),t._wrap(s,"send",t._getProducerSendPatch()),s}}_getConsumerRunPatch(){let t=this;return r=>function(...i){let s=i[0];return s!=null&&s.eachMessage&&((0, iu.isWrapped)(s.eachMessage)&&t._unwrap(s,"eachMessage"),t._wrap(s,"eachMessage",t._getConsumerEachMessagePatch())),s!=null&&s.eachBatch&&((0, iu.isWrapped)(s.eachBatch)&&t._unwrap(s,"eachBatch"),t._wrap(s,"eachBatch",t._getConsumerEachBatchPatch())),r.call(this,s)}}_getConsumerEachMessagePatch(){let t=this;return r=>function(...i){let s=i[0],a=zi.propagation.extract(zi.ROOT_CONTEXT,s.message.headers,rle.bufferTextMapGetter),o=t._startConsumerSpan(s.topic,s.message,Qp.MESSAGINGOPERATIONVALUES_PROCESS,a),u=zi.context.with(zi.trace.setSpan(a,o),()=>r.apply(this,i));return t._endSpansOnPromise([o],u)}}_getConsumerEachBatchPatch(){return t=>{let r=this;return function(...i){let s=i[0],a=r._startConsumerSpan(s.batch.topic,void 0,Qp.MESSAGINGOPERATIONVALUES_RECEIVE,zi.ROOT_CONTEXT);return zi.context.with(zi.trace.setSpan(zi.context.active(),a),()=>{let o=s.batch.messages.map(l=>{var c;let p=zi.propagation.extract(zi.ROOT_CONTEXT,l.headers,rle.bufferTextMapGetter),h=(c=zi.trace.getSpan(p))===null||c===void 0?void 0:c.spanContext(),f;return h&&(f={context:h}),r._startConsumerSpan(s.batch.topic,l,Qp.MESSAGINGOPERATIONVALUES_PROCESS,void 0,f)}),u=t.apply(this,i);return o.unshift(a),r._endSpansOnPromise(o,u)})}}}_getProducerSendBatchPatch(){let t=this;return r=>function(...i){let o=(i[0].topicMessages||[]).map(l=>l.messages.map(c=>t._startProducerSpan(l.topic,c))).reduce((l,c)=>l.concat(c),[]),u=r.apply(this,i);return t._endSpansOnPromise(o,u)}}_getProducerSendPatch(){let t=this;return r=>function(...i){let s=i[0],a=s.messages.map(u=>t._startProducerSpan(s.topic,u)),o=r.apply(this,i);return t._endSpansOnPromise(a,o)}}_endSpansOnPromise(t,r){return Promise.resolve(r).catch(n=>{let i;throw typeof n=="string"?i=n:typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"message")&&(i=n.message),t.forEach(s=>s.setStatus({code:zi.SpanStatusCode.ERROR,message:i})),n}).finally(()=>{t.forEach(n=>n.end());})}_startConsumerSpan(t,r,n,i,s){let a=this.tracer.startSpan(t,{kind:zi.SpanKind.CONSUMER,attributes:{[Qp.SEMATTRS_MESSAGING_SYSTEM]:"kafka",[Qp.SEMATTRS_MESSAGING_DESTINATION]:t,[Qp.SEMATTRS_MESSAGING_OPERATION]:n},links:s?[s]:[]},i),{consumerHook:o}=this.getConfig();return o&&r&&(0, iu.safeExecuteInTheMiddle)(()=>o(a,{topic:t,message:r}),u=>{u&&this._diag.error("consumerHook error",u);},!0),a}_startProducerSpan(t,r){var n;let i=this.tracer.startSpan(t,{kind:zi.SpanKind.PRODUCER,attributes:{[Qp.SEMATTRS_MESSAGING_SYSTEM]:"kafka",[Qp.SEMATTRS_MESSAGING_DESTINATION]:t}});r.headers=(n=r.headers)!==null&&n!==void 0?n:{},zi.propagation.inject(zi.trace.setSpan(zi.context.active(),i),r.headers);let{producerHook:s}=this.getConfig();return s&&(0, iu.safeExecuteInTheMiddle)(()=>s(i,{topic:t,message:r}),a=>{a&&this._diag.error("producerHook error",a);},!0),i}};sC.KafkaJsInstrumentation=q2;});var sle=chunkTKGT252T_js.c(ile=>{Object.defineProperty(ile,"__esModule",{value:!0});});var ole=chunkTKGT252T_js.c(Zp=>{var cst=Zp&&Zp.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),ale=Zp&&Zp.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&cst(t,e,r);};Object.defineProperty(Zp,"__esModule",{value:!0});ale(nle(),Zp);ale(sle(),Zp);});var fle=chunkTKGT252T_js.c(b0=>{Object.defineProperty(b0,"__esModule",{value:!0});b0.MongodbCommandType=void 0;(function(e){e.CREATE_INDEXES="createIndexes",e.FIND_AND_MODIFY="findAndModify",e.IS_MASTER="isMaster",e.COUNT="count",e.AGGREGATE="aggregate",e.UNKNOWN="unknown";})(b0.MongodbCommandType||(b0.MongodbCommandType={}));});var hle=chunkTKGT252T_js.c(zy=>{Object.defineProperty(zy,"__esModule",{value:!0});zy.PACKAGE_NAME=zy.PACKAGE_VERSION=void 0;zy.PACKAGE_VERSION="0.47.0";zy.PACKAGE_NAME="@opentelemetry/instrumentation-mongodb";});var mle=chunkTKGT252T_js.c(aC=>{Object.defineProperty(aC,"__esModule",{value:!0});aC.MongoDBInstrumentation=void 0;var Un=(pt(),chunkTKGT252T_js.f(Gr)),xn=(Rn(),chunkTKGT252T_js.f(zn)),Xl=(dn(),chunkTKGT252T_js.f(si)),ef=fle(),dle=hle(),V2=class e extends xn.InstrumentationBase{constructor(t={}){super(dle.PACKAGE_NAME,dle.PACKAGE_VERSION,t);}_updateMetricInstruments(){this._connectionsUsage=this.meter.createUpDownCounter("db.client.connections.usage",{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"});}init(){let{v3PatchConnection:t,v3UnpatchConnection:r}=this._getV3ConnectionPatches(),{v4PatchConnect:n,v4UnpatchConnect:i}=this._getV4ConnectPatches(),{v4PatchConnectionCallback:s,v4PatchConnectionPromise:a,v4UnpatchConnection:o}=this._getV4ConnectionPatches(),{v4PatchConnectionPool:u,v4UnpatchConnectionPool:l}=this._getV4ConnectionPoolPatches(),{v4PatchSessions:c,v4UnpatchSessions:p}=this._getV4SessionsPatches();return [new xn.InstrumentationNodeModuleDefinition("mongodb",[">=3.3.0 <4"],void 0,void 0,[new xn.InstrumentationNodeModuleFile("mongodb/lib/core/wireprotocol/index.js",[">=3.3.0 <4"],t,r)]),new xn.InstrumentationNodeModuleDefinition("mongodb",[">=4.0.0 <7"],void 0,void 0,[new xn.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection.js",[">=4.0.0 <6.4"],s,o),new xn.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection.js",[">=6.4.0 <7"],a,o),new xn.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection_pool.js",[">=4.0.0 <6.4"],u,l),new xn.InstrumentationNodeModuleFile("mongodb/lib/cmap/connect.js",[">=4.0.0 <7"],n,i),new xn.InstrumentationNodeModuleFile("mongodb/lib/sessions.js",[">=4.0.0 <7"],c,p)])]}_getV3ConnectionPatches(){return {v3PatchConnection:t=>((0, xn.isWrapped)(t.insert)&&this._unwrap(t,"insert"),this._wrap(t,"insert",this._getV3PatchOperation("insert")),(0, xn.isWrapped)(t.remove)&&this._unwrap(t,"remove"),this._wrap(t,"remove",this._getV3PatchOperation("remove")),(0, xn.isWrapped)(t.update)&&this._unwrap(t,"update"),this._wrap(t,"update",this._getV3PatchOperation("update")),(0, xn.isWrapped)(t.command)&&this._unwrap(t,"command"),this._wrap(t,"command",this._getV3PatchCommand()),(0, xn.isWrapped)(t.query)&&this._unwrap(t,"query"),this._wrap(t,"query",this._getV3PatchFind()),(0, xn.isWrapped)(t.getMore)&&this._unwrap(t,"getMore"),this._wrap(t,"getMore",this._getV3PatchCursor()),t),v3UnpatchConnection:t=>{t!==void 0&&(this._unwrap(t,"insert"),this._unwrap(t,"remove"),this._unwrap(t,"update"),this._unwrap(t,"command"),this._unwrap(t,"query"),this._unwrap(t,"getMore"));}}}_getV4SessionsPatches(){return {v4PatchSessions:t=>((0, xn.isWrapped)(t.acquire)&&this._unwrap(t,"acquire"),this._wrap(t.ServerSessionPool.prototype,"acquire",this._getV4AcquireCommand()),(0, xn.isWrapped)(t.release)&&this._unwrap(t,"release"),this._wrap(t.ServerSessionPool.prototype,"release",this._getV4ReleaseCommand()),t),v4UnpatchSessions:t=>{t!==void 0&&((0, xn.isWrapped)(t.acquire)&&this._unwrap(t,"acquire"),(0, xn.isWrapped)(t.release)&&this._unwrap(t,"release"));}}}_getV4AcquireCommand(){let t=this;return r=>function(){let i=this.sessions.length,s=r.call(this),a=this.sessions.length;return i===a?t._connectionsUsage.add(1,{state:"used","pool.name":t._poolName}):i-1===a&&(t._connectionsUsage.add(-1,{state:"idle","pool.name":t._poolName}),t._connectionsUsage.add(1,{state:"used","pool.name":t._poolName})),s}}_getV4ReleaseCommand(){let t=this;return r=>function(i){let s=r.call(this,i);return t._connectionsUsage.add(-1,{state:"used","pool.name":t._poolName}),t._connectionsUsage.add(1,{state:"idle","pool.name":t._poolName}),s}}_getV4ConnectionPoolPatches(){return {v4PatchConnectionPool:t=>{let r=t.ConnectionPool.prototype;return (0, xn.isWrapped)(r.checkOut)&&this._unwrap(r,"checkOut"),this._wrap(r,"checkOut",this._getV4ConnectionPoolCheckOut()),t},v4UnpatchConnectionPool:t=>{t!==void 0&&this._unwrap(t.ConnectionPool.prototype,"checkOut");}}}_getV4ConnectPatches(){return {v4PatchConnect:t=>((0, xn.isWrapped)(t.connect)&&this._unwrap(t,"connect"),this._wrap(t,"connect",this._getV4ConnectCommand()),t),v4UnpatchConnect:t=>{t!==void 0&&this._unwrap(t,"connect");}}}_getV4ConnectionPoolCheckOut(){return t=>function(n){let i=Un.context.bind(Un.context.active(),n);return t.call(this,i)}}_getV4ConnectCommand(){let t=this;return r=>function(i,s){if(r.length===1){let o=r.call(this,i);return o&&typeof o.then=="function"&&o.then(()=>t.setPoolName(i),()=>{}),o}let a=function(o,u){if(o||!u){s(o,u);return}t.setPoolName(i),s(o,u);};return r.call(this,i,a)}}_getV4ConnectionPatches(){return {v4PatchConnectionCallback:t=>((0, xn.isWrapped)(t.Connection.prototype.command)&&this._unwrap(t.Connection.prototype,"command"),this._wrap(t.Connection.prototype,"command",this._getV4PatchCommandCallback()),t),v4PatchConnectionPromise:t=>((0, xn.isWrapped)(t.Connection.prototype.command)&&this._unwrap(t.Connection.prototype,"command"),this._wrap(t.Connection.prototype,"command",this._getV4PatchCommandPromise()),t),v4UnpatchConnection:t=>{t!==void 0&&this._unwrap(t.Connection.prototype,"command");}}}_getV3PatchOperation(t){let r=this;return n=>function(s,a,o,u,l){let c=Un.trace.getSpan(Un.context.active()),p=typeof u=="function"?u:l;if(!c||typeof p!="function"||typeof o!="object")return typeof u=="function"?n.call(this,s,a,o,u):n.call(this,s,a,o,u,l);let h=r.tracer.startSpan(`mongodb.${t}`,{kind:Un.SpanKind.CLIENT});r._populateV3Attributes(h,a,s,o[0],t);let f=r._patchEnd(h,p);return typeof u=="function"?n.call(this,s,a,o,f):n.call(this,s,a,o,u,f)}}_getV3PatchCommand(){let t=this;return r=>function(i,s,a,o,u){let l=Un.trace.getSpan(Un.context.active()),c=typeof o=="function"?o:u;if(!l||typeof c!="function"||typeof a!="object")return typeof o=="function"?r.call(this,i,s,a,o):r.call(this,i,s,a,o,u);let p=e._getCommandType(a),h=p===ef.MongodbCommandType.UNKNOWN?"command":p,f=t.tracer.startSpan(`mongodb.${h}`,{kind:Un.SpanKind.CLIENT}),d=p===ef.MongodbCommandType.UNKNOWN?void 0:p;t._populateV3Attributes(f,s,i,a,d);let m=t._patchEnd(f,c);return typeof o=="function"?r.call(this,i,s,a,m):r.call(this,i,s,a,o,m)}}_getV4PatchCommandCallback(){let t=this;return r=>function(i,s,a,o){let u=Un.trace.getSpan(Un.context.active()),l=o,c=Object.keys(s)[0];if(typeof l!="function"||typeof s!="object"||s.ismaster||s.hello)return r.call(this,i,s,a,o);let p;u&&(p=t.tracer.startSpan(`mongodb.${c}`,{kind:Un.SpanKind.CLIENT}),t._populateV4Attributes(p,this,i,s,c));let h=t._patchEnd(p,l,this.id,c);return r.call(this,i,s,a,h)}}_getV4PatchCommandPromise(){let t=this;return r=>function(...i){let[s,a]=i,o=Un.trace.getSpan(Un.context.active()),u=Object.keys(a)[0],l=()=>{};if(typeof a!="object"||a.ismaster||a.hello)return r.apply(this,i);let c;o&&(c=t.tracer.startSpan(`mongodb.${u}`,{kind:Un.SpanKind.CLIENT}),t._populateV4Attributes(c,this,s,a,u));let p=t._patchEnd(c,l,this.id,u),h=r.apply(this,i);return h.then(f=>p(null,f),f=>p(f)),h}}_getV3PatchFind(){let t=this;return r=>function(i,s,a,o,u,l){let c=Un.trace.getSpan(Un.context.active()),p=typeof u=="function"?u:l;if(!c||typeof p!="function"||typeof a!="object")return typeof u=="function"?r.call(this,i,s,a,o,u):r.call(this,i,s,a,o,u,l);let h=t.tracer.startSpan("mongodb.find",{kind:Un.SpanKind.CLIENT});t._populateV3Attributes(h,s,i,a,"find");let f=t._patchEnd(h,p);return typeof u=="function"?r.call(this,i,s,a,o,f):r.call(this,i,s,a,o,u,f)}}_getV3PatchCursor(){let t=this;return r=>function(i,s,a,o,u,l){let c=Un.trace.getSpan(Un.context.active()),p=typeof u=="function"?u:l;if(!c||typeof p!="function")return typeof u=="function"?r.call(this,i,s,a,o,u):r.call(this,i,s,a,o,u,l);let h=t.tracer.startSpan("mongodb.getMore",{kind:Un.SpanKind.CLIENT});t._populateV3Attributes(h,s,i,a.cmd,"getMore");let f=t._patchEnd(h,p);return typeof u=="function"?r.call(this,i,s,a,o,f):r.call(this,i,s,a,o,u,f)}}static _getCommandType(t){return t.createIndexes!==void 0?ef.MongodbCommandType.CREATE_INDEXES:t.findandmodify!==void 0?ef.MongodbCommandType.FIND_AND_MODIFY:t.ismaster!==void 0?ef.MongodbCommandType.IS_MASTER:t.count!==void 0?ef.MongodbCommandType.COUNT:t.aggregate!==void 0?ef.MongodbCommandType.AGGREGATE:ef.MongodbCommandType.UNKNOWN}_populateV4Attributes(t,r,n,i,s){let a,o;if(r){let l=typeof r.address=="string"?r.address.split(":"):"";l.length===2&&(a=l[0],o=l[1]);}let u;i!=null&&i.documents&&i.documents[0]?u=i.documents[0]:i!=null&&i.cursors?u=i.cursors:u=i,this._addAllSpanAttributes(t,n.db,n.collection,a,o,u,s);}_populateV3Attributes(t,r,n,i,s){var a,o,u,l,c,p,h,f;let d,m;if(n&&n.s&&(d=(o=(a=n.s.options)===null||a===void 0?void 0:a.host)!==null&&o!==void 0?o:n.s.host,m=(c=(l=(u=n.s.options)===null||u===void 0?void 0:u.port)!==null&&l!==void 0?l:n.s.port)===null||c===void 0?void 0:c.toString(),d==null||m==null)){let E=(p=n.description)===null||p===void 0?void 0:p.address;if(E){let S=E.split(":");d=S[0],m=S[1];}}let[y,g]=r.toString().split("."),v=(f=(h=i==null?void 0:i.query)!==null&&h!==void 0?h:i==null?void 0:i.q)!==null&&f!==void 0?f:i;this._addAllSpanAttributes(t,y,g,d,m,v,s);}_addAllSpanAttributes(t,r,n,i,s,a,o){if(t.setAttributes({[Xl.SEMATTRS_DB_SYSTEM]:Xl.DBSYSTEMVALUES_MONGODB,[Xl.SEMATTRS_DB_NAME]:r,[Xl.SEMATTRS_DB_MONGODB_COLLECTION]:n,[Xl.SEMATTRS_DB_OPERATION]:o,[Xl.SEMATTRS_DB_CONNECTION_STRING]:`mongodb://${i}:${s}/${r}`}),i&&s){t.setAttribute(Xl.SEMATTRS_NET_PEER_NAME,i);let c=parseInt(s,10);isNaN(c)||t.setAttribute(Xl.SEMATTRS_NET_PEER_PORT,c);}if(!a)return;let{dbStatementSerializer:u}=this.getConfig(),l=typeof u=="function"?u:this._defaultDbStatementSerializer.bind(this);(0, xn.safeExecuteInTheMiddle)(()=>{let c=l(a);t.setAttribute(Xl.SEMATTRS_DB_STATEMENT,c);},c=>{c&&this._diag.error("Error running dbStatementSerializer hook",c);},!0);}_defaultDbStatementSerializer(t){let{enhancedDatabaseReporting:r}=this.getConfig(),n=r?t:this._scrubStatement(t);return JSON.stringify(n)}_scrubStatement(t){return Array.isArray(t)?t.map(r=>this._scrubStatement(r)):typeof t=="object"&&t!==null?Object.fromEntries(Object.entries(t).map(([r,n])=>[r,this._scrubStatement(n)])):"?"}_handleExecutionResult(t,r){let{responseHook:n}=this.getConfig();typeof n=="function"&&(0, xn.safeExecuteInTheMiddle)(()=>{n(t,{data:r});},i=>{i&&this._diag.error("Error running response hook",i);},!0);}_patchEnd(t,r,n,i){let s=Un.context.active(),a=this;return function(...u){let l=u[0];if(t){if(l instanceof Error)t==null||t.setStatus({code:Un.SpanStatusCode.ERROR,message:l.message});else {let c=u[1];a._handleExecutionResult(t,c);}t.end();}return Un.context.with(s,()=>(i==="endSessions"&&a._connectionsUsage.add(-1,{state:"idle","pool.name":a._poolName}),r.apply(this,u)))}}setPoolName(t){var r,n;let i=(r=t.hostAddress)===null||r===void 0?void 0:r.host,s=(n=t.hostAddress)===null||n===void 0?void 0:n.port,a=t.dbName,o=`mongodb://${i}:${s}/${a}`;this._poolName=o;}};aC.MongoDBInstrumentation=V2;});var yle=chunkTKGT252T_js.c(v0=>{Object.defineProperty(v0,"__esModule",{value:!0});v0.MongodbCommandType=void 0;(function(e){e.CREATE_INDEXES="createIndexes",e.FIND_AND_MODIFY="findAndModify",e.IS_MASTER="isMaster",e.COUNT="count",e.UNKNOWN="unknown";})(v0.MongodbCommandType||(v0.MongodbCommandType={}));});var Sle=chunkTKGT252T_js.c(tf=>{var dst=tf&&tf.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),gle=tf&&tf.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&dst(t,e,r);};Object.defineProperty(tf,"__esModule",{value:!0});gle(mle(),tf);gle(yle(),tf);});var Ale=chunkTKGT252T_js.c(rf=>{Object.defineProperty(rf,"__esModule",{value:!0});rf.handleCallbackResponse=rf.handlePromiseResponse=rf.getAttributesFromCollection=void 0;var _le=(pt(),chunkTKGT252T_js.f(Gr)),yst=(Rn(),chunkTKGT252T_js.f(zn)),_0=(dn(),chunkTKGT252T_js.f(si));function gst(e){return {[_0.SEMATTRS_DB_MONGODB_COLLECTION]:e.name,[_0.SEMATTRS_DB_NAME]:e.conn.name,[_0.SEMATTRS_DB_USER]:e.conn.user,[_0.SEMATTRS_NET_PEER_NAME]:e.conn.host,[_0.SEMATTRS_NET_PEER_PORT]:e.conn.port}}rf.getAttributesFromCollection=gst;function xle(e,t={}){e.recordException(t),e.setStatus({code:_le.SpanStatusCode.ERROR,message:`${t.message} ${t.code?` Mongoose Error Code: ${t.code}`:""}`});}function H2(e,t,r,n=void 0){r&&(0, yst.safeExecuteInTheMiddle)(()=>r(e,{moduleVersion:n,response:t}),i=>{i&&_le.diag.error("mongoose instrumentation: responseHook error",i);},!0);}function Sst(e,t,r,n=void 0){return e instanceof Promise?e.then(i=>(H2(t,i,r,n),i)).catch(i=>{throw xle(t,i),i}).finally(()=>t.end()):(H2(t,e,r,n),t.end(),e)}rf.handlePromiseResponse=Sst;function Tst(e,t,r,n,i,s,a=void 0){let o=0;return i.length===2&&(o=1),i[o]=(u,l)=>(u?xle(n,u):H2(n,l,s,a),n.end(),e(u,l)),t.apply(r,i)}rf.handleCallbackResponse=Tst;});var Ple=chunkTKGT252T_js.c(Jy=>{Object.defineProperty(Jy,"__esModule",{value:!0});Jy.PACKAGE_NAME=Jy.PACKAGE_VERSION=void 0;Jy.PACKAGE_VERSION="0.42.0";Jy.PACKAGE_NAME="@opentelemetry/instrumentation-mongoose";});var Dle=chunkTKGT252T_js.c(Ku=>{Object.defineProperty(Ku,"__esModule",{value:!0});Ku.MongooseInstrumentation=Ku._STORED_PARENT_SPAN=void 0;var ws=(pt(),chunkTKGT252T_js.f(Gr)),Est=(jn(),chunkTKGT252T_js.f(eo)),G2=Ale(),Cle=(Rn(),chunkTKGT252T_js.f(zn)),wle=Ple(),x0=(dn(),chunkTKGT252T_js.f(si)),oC=["deleteOne","deleteMany","find","findOne","estimatedDocumentCount","countDocuments","distinct","where","$where","findOneAndUpdate","findOneAndDelete","findOneAndReplace"],bst=["remove","count","findOneAndRemove",...oC],vst=["count","findOneAndRemove",...oC],_st=[...oC];function Ile(e){return e?e.startsWith("6.")||e.startsWith("5.")?bst:e.startsWith("7.")?vst:_st:oC}function Ole(e){return e&&(e.startsWith("5.")||e.startsWith("6."))||!1}Ku._STORED_PARENT_SPAN=Symbol("stored-parent-span");var $2=class extends Cle.InstrumentationBase{constructor(t={}){super(wle.PACKAGE_NAME,wle.PACKAGE_VERSION,t);}init(){return new Cle.InstrumentationNodeModuleDefinition("mongoose",[">=5.9.7 <9"],this.patch.bind(this),this.unpatch.bind(this))}patch(t,r){return this._wrap(t.Model.prototype,"save",this.patchOnModelMethods("save",r)),t.Model.prototype.$save=t.Model.prototype.save,Ole(r)&&this._wrap(t.Model.prototype,"remove",this.patchOnModelMethods("remove",r)),this._wrap(t.Query.prototype,"exec",this.patchQueryExec(r)),this._wrap(t.Aggregate.prototype,"exec",this.patchAggregateExec(r)),Ile(r).forEach(i=>{this._wrap(t.Query.prototype,i,this.patchAndCaptureSpanContext(i));}),this._wrap(t.Model,"aggregate",this.patchModelAggregate()),t}unpatch(t,r){let n=Ile(r);this._unwrap(t.Model.prototype,"save"),t.Model.prototype.$save=t.Model.prototype.save,Ole(r)&&this._unwrap(t.Model.prototype,"remove"),this._unwrap(t.Query.prototype,"exec"),this._unwrap(t.Aggregate.prototype,"exec"),n.forEach(i=>{this._unwrap(t.Query.prototype,i);}),this._unwrap(t.Model,"aggregate");}patchAggregateExec(t){let r=this;return n=>function(s){var a;if(r.getConfig().requireParentSpan&&ws.trace.getSpan(ws.context.active())===void 0)return n.apply(this,arguments);let o=this[Ku._STORED_PARENT_SPAN],u={},{dbStatementSerializer:l}=r.getConfig();l&&(u[x0.SEMATTRS_DB_STATEMENT]=l("aggregate",{options:this.options,aggregatePipeline:this._pipeline}));let c=r._startSpan(this._model.collection,(a=this._model)===null||a===void 0?void 0:a.modelName,"aggregate",u,o);return r._handleResponse(c,n,this,arguments,s,t)}}patchQueryExec(t){let r=this;return n=>function(s){if(r.getConfig().requireParentSpan&&ws.trace.getSpan(ws.context.active())===void 0)return n.apply(this,arguments);let a=this[Ku._STORED_PARENT_SPAN],o={},{dbStatementSerializer:u}=r.getConfig();u&&(o[x0.SEMATTRS_DB_STATEMENT]=u(this.op,{condition:this._conditions,updates:this._update,options:this.options,fields:this._fields}));let l=r._startSpan(this.mongooseCollection,this.model.modelName,this.op,o,a);return r._handleResponse(l,n,this,arguments,s,t)}}patchOnModelMethods(t,r){let n=this;return i=>function(a,o){if(n.getConfig().requireParentSpan&&ws.trace.getSpan(ws.context.active())===void 0)return i.apply(this,arguments);let u={document:this};a&&!(a instanceof Function)&&(u.options=a);let l={},{dbStatementSerializer:c}=n.getConfig();c&&(l[x0.SEMATTRS_DB_STATEMENT]=c(t,u));let p=n._startSpan(this.constructor.collection,this.constructor.modelName,t,l);return a instanceof Function&&(o=a,a=void 0),n._handleResponse(p,i,this,arguments,o,r)}}patchModelAggregate(){let t=this;return r=>function(){let i=ws.trace.getSpan(ws.context.active()),s=t._callOriginalFunction(()=>r.apply(this,arguments));return s&&(s[Ku._STORED_PARENT_SPAN]=i),s}}patchAndCaptureSpanContext(t){let r=this;return n=>function(){return this[Ku._STORED_PARENT_SPAN]=ws.trace.getSpan(ws.context.active()),r._callOriginalFunction(()=>n.apply(this,arguments))}}_startSpan(t,r,n,i,s){return this.tracer.startSpan(`mongoose.${r}.${n}`,{kind:ws.SpanKind.CLIENT,attributes:Object.assign(Object.assign(Object.assign({},i),(0, G2.getAttributesFromCollection)(t)),{[x0.SEMATTRS_DB_OPERATION]:n,[x0.SEMATTRS_DB_SYSTEM]:"mongoose"})},s?ws.trace.setSpan(ws.context.active(),s):void 0)}_handleResponse(t,r,n,i,s,a=void 0){let o=this;if(s instanceof Function)return o._callOriginalFunction(()=>(0, G2.handleCallbackResponse)(s,r,n,t,i,o.getConfig().responseHook,a));{let u=o._callOriginalFunction(()=>r.apply(n,i));return (0, G2.handlePromiseResponse)(u,t,o.getConfig().responseHook,a)}}_callOriginalFunction(t){return this.getConfig().suppressInternalInstrumentation?ws.context.with((0, Est.suppressTracing)(ws.context.active()),t):t()}};Ku.MongooseInstrumentation=$2;});var Rle=chunkTKGT252T_js.c(Nle=>{Object.defineProperty(Nle,"__esModule",{value:!0});});var Lle=chunkTKGT252T_js.c(nf=>{var xst=nf&&nf.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),Mle=nf&&nf.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&xst(t,e,r);};Object.defineProperty(nf,"__esModule",{value:!0});Mle(Dle(),nf);Mle(Rle(),nf);});var Ule=chunkTKGT252T_js.c(A0=>{Object.defineProperty(A0,"__esModule",{value:!0});A0.AttributeNames=void 0;(function(e){e.MYSQL_VALUES="db.mysql.values";})(A0.AttributeNames||(A0.AttributeNames={}));});var Vle=chunkTKGT252T_js.c(ca=>{Object.defineProperty(ca,"__esModule",{value:!0});ca.getPoolName=ca.arrayStringifyHelper=ca.getSpanName=ca.getDbValues=ca.getDbStatement=ca.getConnectionAttributes=void 0;var zl=(dn(),chunkTKGT252T_js.f(si));function Cst(e){let{host:t,port:r,database:n,user:i}=wst(e),s=parseInt(r,10);return isNaN(s)?{[zl.SEMATTRS_NET_PEER_NAME]:t,[zl.SEMATTRS_DB_CONNECTION_STRING]:qle(t,r,n),[zl.SEMATTRS_DB_NAME]:n,[zl.SEMATTRS_DB_USER]:i}:{[zl.SEMATTRS_NET_PEER_NAME]:t,[zl.SEMATTRS_NET_PEER_PORT]:s,[zl.SEMATTRS_DB_CONNECTION_STRING]:qle(t,r,n),[zl.SEMATTRS_DB_NAME]:n,[zl.SEMATTRS_DB_USER]:i}}ca.getConnectionAttributes=Cst;function wst(e){let{host:t,port:r,database:n,user:i}=e&&e.connectionConfig||e||{};return {host:t,port:r,database:n,user:i}}function qle(e,t,r){let n=`jdbc:mysql://${e||"localhost"}`;return typeof t=="number"&&(n+=`:${t}`),typeof r=="string"&&(n+=`/${r}`),n}function Ist(e){return typeof e=="string"?e:e.sql}ca.getDbStatement=Ist;function Ost(e,t){return K2(typeof e=="string"?t:t||e.values)}ca.getDbValues=Ost;function Dst(e){return typeof e=="object"?e.sql:e.split(" ")[0]}ca.getSpanName=Dst;function K2(e){return e?`[${e.toString()}]`:""}ca.arrayStringifyHelper=K2;function Nst(e){let t=e.config.connectionConfig,r="";return r+=t.host?`host: '${t.host}', `:"",r+=t.port?`port: ${t.port}, `:"",r+=t.database?`database: '${t.database}', `:"",r+=t.user?`user: '${t.user}'`:"",t.user||(r=r.substring(0,r.length-2)),r.trim()}ca.getPoolName=Nst;});var Hle=chunkTKGT252T_js.c(Qy=>{Object.defineProperty(Qy,"__esModule",{value:!0});Qy.PACKAGE_NAME=Qy.PACKAGE_VERSION=void 0;Qy.PACKAGE_VERSION="0.41.0";Qy.PACKAGE_NAME="@opentelemetry/instrumentation-mysql";});var $le=chunkTKGT252T_js.c(lC=>{Object.defineProperty(lC,"__esModule",{value:!0});lC.MySQLInstrumentation=void 0;var pa=(pt(),chunkTKGT252T_js.f(Gr)),Zy=(Rn(),chunkTKGT252T_js.f(zn)),Y2=(dn(),chunkTKGT252T_js.f(si)),Rst=Ule(),eg=Vle(),Gle=Hle(),uC=class e extends Zy.InstrumentationBase{constructor(t={}){super(Gle.PACKAGE_NAME,Gle.PACKAGE_VERSION,t),this._setMetricInstruments();}setMeterProvider(t){super.setMeterProvider(t),this._setMetricInstruments();}_setMetricInstruments(){this._connectionsUsage=this.meter.createUpDownCounter("db.client.connections.usage",{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"});}init(){return [new Zy.InstrumentationNodeModuleDefinition("mysql",[">=2.0.0 <3"],t=>((0, Zy.isWrapped)(t.createConnection)&&this._unwrap(t,"createConnection"),this._wrap(t,"createConnection",this._patchCreateConnection()),(0, Zy.isWrapped)(t.createPool)&&this._unwrap(t,"createPool"),this._wrap(t,"createPool",this._patchCreatePool()),(0, Zy.isWrapped)(t.createPoolCluster)&&this._unwrap(t,"createPoolCluster"),this._wrap(t,"createPoolCluster",this._patchCreatePoolCluster()),t),t=>{t!==void 0&&(this._unwrap(t,"createConnection"),this._unwrap(t,"createPool"),this._unwrap(t,"createPoolCluster"));})]}_patchCreateConnection(){return t=>{let r=this;return function(i){let s=t(...arguments);return r._wrap(s,"query",r._patchQuery(s)),s}}}_patchCreatePool(){return t=>{let r=this;return function(i){let s=t(...arguments);return r._wrap(s,"query",r._patchQuery(s)),r._wrap(s,"getConnection",r._patchGetConnection(s)),r._wrap(s,"end",r._patchPoolEnd(s)),r._setPoolcallbacks(s,r,""),s}}}_patchPoolEnd(t){return r=>{let n=this;return function(s){let a=t._allConnections.length,o=t._freeConnections.length,u=a-o,l=(0, eg.getPoolName)(t);n._connectionsUsage.add(-u,{state:"used",name:l}),n._connectionsUsage.add(-o,{state:"idle",name:l}),r.apply(t,arguments);}}}_patchCreatePoolCluster(){return t=>{let r=this;return function(i){let s=t(...arguments);return r._wrap(s,"getConnection",r._patchGetConnection(s)),r._wrap(s,"add",r._patchAdd(s)),s}}}_patchAdd(t){return r=>{let n=this;return function(s,a){if(!n._enabled)return n._unwrap(t,"add"),r.apply(t,arguments);r.apply(t,arguments);let o=t._nodes;if(o){let u=typeof s=="object"?"CLUSTER::"+t._lastId:String(s),l=o[u].pool;n._setPoolcallbacks(l,n,s);}}}}_patchGetConnection(t){return r=>{let n=this;return function(s,a,o){if(!n._enabled)return n._unwrap(t,"getConnection"),r.apply(t,arguments);if(arguments.length===1&&typeof s=="function"){let u=n._getConnectionCallbackPatchFn(s);return r.call(t,u)}if(arguments.length===2&&typeof a=="function"){let u=n._getConnectionCallbackPatchFn(a);return r.call(t,s,u)}if(arguments.length===3&&typeof o=="function"){let u=n._getConnectionCallbackPatchFn(o);return r.call(t,s,a,u)}return r.apply(t,arguments)}}}_getConnectionCallbackPatchFn(t){let r=this,n=pa.context.active();return function(i,s){s&&((0, Zy.isWrapped)(s.query)||r._wrap(s,"query",r._patchQuery(s))),typeof t=="function"&&pa.context.with(n,t,this,i,s);}}_patchQuery(t){return r=>{let n=this;return function(i,s,a){if(!n._enabled)return n._unwrap(t,"query"),r.apply(t,arguments);let o=n.tracer.startSpan((0, eg.getSpanName)(i),{kind:pa.SpanKind.CLIENT,attributes:Object.assign(Object.assign({},e.COMMON_ATTRIBUTES),(0, eg.getConnectionAttributes)(t.config))});if(o.setAttribute(Y2.SEMATTRS_DB_STATEMENT,(0, eg.getDbStatement)(i)),n.getConfig().enhancedDatabaseReporting){let c;Array.isArray(s)?c=s:arguments[2]&&(c=[s]),o.setAttribute(Rst.AttributeNames.MYSQL_VALUES,(0, eg.getDbValues)(i,c));}let u=Array.from(arguments).findIndex(c=>typeof c=="function"),l=pa.context.active();if(u===-1){let c=pa.context.with(pa.trace.setSpan(pa.context.active(),o),()=>r.apply(t,arguments));return pa.context.bind(l,c),c.on("error",p=>o.setStatus({code:pa.SpanStatusCode.ERROR,message:p.message})).on("end",()=>{o.end();})}else return n._wrap(arguments,u,n._patchCallbackQuery(o,l)),pa.context.with(pa.trace.setSpan(pa.context.active(),o),()=>r.apply(t,arguments))}}}_patchCallbackQuery(t,r){return n=>function(i,s,a){return i&&t.setStatus({code:pa.SpanStatusCode.ERROR,message:i.message}),t.end(),pa.context.with(r,()=>n(...arguments))}}_setPoolcallbacks(t,r,n){let i=n||(0, eg.getPoolName)(t);t.on("connection",s=>{r._connectionsUsage.add(1,{state:"idle",name:i});}),t.on("acquire",s=>{r._connectionsUsage.add(-1,{state:"idle",name:i}),r._connectionsUsage.add(1,{state:"used",name:i});}),t.on("release",s=>{r._connectionsUsage.add(-1,{state:"used",name:i}),r._connectionsUsage.add(1,{state:"idle",name:i});});}};lC.MySQLInstrumentation=uC;uC.COMMON_ATTRIBUTES={[Y2.SEMATTRS_DB_SYSTEM]:Y2.DBSYSTEMVALUES_MYSQL};});var Yle=chunkTKGT252T_js.c(Kle=>{Object.defineProperty(Kle,"__esModule",{value:!0});});var Xle=chunkTKGT252T_js.c(sf=>{var Mst=sf&&sf.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),Wle=sf&&sf.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Mst(t,e,r);};Object.defineProperty(sf,"__esModule",{value:!0});Wle($le(),sf);Wle(Yle(),sf);});var X2=chunkTKGT252T_js.c(cC=>{Object.defineProperty(cC,"__esModule",{value:!0});cC.addSqlCommenterComment=void 0;var W2=(pt(),chunkTKGT252T_js.f(Gr)),kst=(jn(),chunkTKGT252T_js.f(eo));function Fst(e){let t=e.indexOf("--");if(t>=0)return !0;if(e.indexOf("/*")<0)return !1;let n=e.indexOf("*/");return t`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}function jst(e,t){if(typeof t!="string"||t.length===0||Fst(t))return t;let r=new kst.W3CTraceContextPropagator,n={};r.inject(W2.trace.setSpan(W2.ROOT_CONTEXT,e),n,W2.defaultTextMapSetter);let i=Object.keys(n).sort();if(i.length===0)return t;let s=i.map(a=>{let o=Bst(n[a]);return `${a}='${o}'`}).join(",");return `${t} /*${s}*/`}cC.addSqlCommenterComment=jst;});var tce=chunkTKGT252T_js.c(Yu=>{Object.defineProperty(Yu,"__esModule",{value:!0});Yu.once=Yu.getSpanName=Yu.getDbStatement=Yu.getConnectionAttributes=void 0;var Jl=(dn(),chunkTKGT252T_js.f(si));function Ust(e){let{host:t,port:r,database:n,user:i}=qst(e),s=parseInt(r,10);return isNaN(s)?{[Jl.SEMATTRS_NET_PEER_NAME]:t,[Jl.SEMATTRS_DB_CONNECTION_STRING]:ece(t,r,n),[Jl.SEMATTRS_DB_NAME]:n,[Jl.SEMATTRS_DB_USER]:i}:{[Jl.SEMATTRS_NET_PEER_NAME]:t,[Jl.SEMATTRS_NET_PEER_PORT]:s,[Jl.SEMATTRS_DB_CONNECTION_STRING]:ece(t,r,n),[Jl.SEMATTRS_DB_NAME]:n,[Jl.SEMATTRS_DB_USER]:i}}Yu.getConnectionAttributes=Ust;function qst(e){let{host:t,port:r,database:n,user:i}=e&&e.connectionConfig||e||{};return {host:t,port:r,database:n,user:i}}function ece(e,t,r){let n=`jdbc:mysql://${e||"localhost"}`;return typeof t=="number"&&(n+=`:${t}`),typeof r=="string"&&(n+=`/${r}`),n}function Vst(e,t,r){return typeof e=="string"?r?t(e,r):e:r||e.values?t(e.sql,r||e.values):e.sql}Yu.getDbStatement=Vst;function Hst(e){var t;let r=typeof e=="object"?e.sql:e;return (t=r==null?void 0:r.split(" "))===null||t===void 0?void 0:t[0]}Yu.getSpanName=Hst;var Gst=e=>{let t=!1;return (...r)=>{if(!t)return t=!0,e(...r)}};Yu.once=Gst;});var rce=chunkTKGT252T_js.c(tg=>{Object.defineProperty(tg,"__esModule",{value:!0});tg.PACKAGE_NAME=tg.PACKAGE_VERSION=void 0;tg.PACKAGE_VERSION="0.41.0";tg.PACKAGE_NAME="@opentelemetry/instrumentation-mysql2";});var ace=chunkTKGT252T_js.c(hC=>{Object.defineProperty(hC,"__esModule",{value:!0});hC.MySQL2Instrumentation=void 0;var nce=(pt(),chunkTKGT252T_js.f(Gr)),P0=(Rn(),chunkTKGT252T_js.f(zn)),z2=(dn(),chunkTKGT252T_js.f(si)),ice=X2(),pC=tce(),sce=rce(),fC=class e extends P0.InstrumentationBase{constructor(t={}){super(sce.PACKAGE_NAME,sce.PACKAGE_VERSION,t);}init(){return [new P0.InstrumentationNodeModuleDefinition("mysql2",[">=1.4.2 <4"],t=>{let r=t.Connection.prototype;return (0, P0.isWrapped)(r.query)&&this._unwrap(r,"query"),this._wrap(r,"query",this._patchQuery(t.format,!1)),(0, P0.isWrapped)(r.execute)&&this._unwrap(r,"execute"),this._wrap(r,"execute",this._patchQuery(t.format,!0)),t},t=>{if(t===void 0)return;let r=t.Connection.prototype;this._unwrap(r,"query"),this._unwrap(r,"execute");})]}_patchQuery(t,r){return n=>{let i=this;return function(s,a,o){let u;Array.isArray(a)?u=a:arguments[2]&&(u=[a]);let l=i.tracer.startSpan((0, pC.getSpanName)(s),{kind:nce.SpanKind.CLIENT,attributes:Object.assign(Object.assign(Object.assign({},e.COMMON_ATTRIBUTES),(0, pC.getConnectionAttributes)(this.config)),{[z2.SEMATTRS_DB_STATEMENT]:(0, pC.getDbStatement)(s,t,u)})});!r&&i.getConfig().addSqlCommenterCommentToQueries&&(arguments[0]=s=typeof s=="string"?(0, ice.addSqlCommenterComment)(l,s):Object.assign(s,{sql:(0, ice.addSqlCommenterComment)(l,s.sql)}));let c=(0, pC.once)((p,h)=>{if(p)l.setStatus({code:nce.SpanStatusCode.ERROR,message:p.message});else {let{responseHook:f}=i.getConfig();typeof f=="function"&&(0, P0.safeExecuteInTheMiddle)(()=>{f(l,{queryResults:h});},d=>{d&&i._diag.warn("Failed executing responseHook",d);},!0);}l.end();});if(arguments.length===1){typeof s.onResult=="function"&&i._wrap(s,"onResult",i._patchCallbackQuery(c));let p=n.apply(this,arguments);return p.once("error",h=>{c(h);}).once("result",h=>{c(void 0,h);}),p}return typeof arguments[1]=="function"?i._wrap(arguments,1,i._patchCallbackQuery(c)):typeof arguments[2]=="function"&&i._wrap(arguments,2,i._patchCallbackQuery(c)),n.apply(this,arguments)}}}_patchCallbackQuery(t){return r=>function(n,i,s){return t(n,i),r(...arguments)}}};hC.MySQL2Instrumentation=fC;fC.COMMON_ATTRIBUTES={[z2.SEMATTRS_DB_SYSTEM]:z2.DBSYSTEMVALUES_MYSQL};});var uce=chunkTKGT252T_js.c(oce=>{Object.defineProperty(oce,"__esModule",{value:!0});});var cce=chunkTKGT252T_js.c(af=>{var $st=af&&af.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),lce=af&&af.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&$st(t,e,r);};Object.defineProperty(af,"__esModule",{value:!0});lce(ace(),af);lce(uce(),af);});var mce=chunkTKGT252T_js.c(dC=>{Object.defineProperty(dC,"__esModule",{value:!0});dC.endSpan=void 0;var Yst=(pt(),chunkTKGT252T_js.f(Gr)),Wst=(e,t)=>{t&&(e.recordException(t),e.setStatus({code:Yst.SpanStatusCode.ERROR,message:t.message})),e.end();};dC.endSpan=Wst;});var J2=chunkTKGT252T_js.c(mC=>{Object.defineProperty(mC,"__esModule",{value:!0});mC.defaultDbStatementSerializer=void 0;var Xst=[{regex:/^ECHO/i,args:0},{regex:/^(LPUSH|MSET|PFA|PUBLISH|RPUSH|SADD|SET|SPUBLISH|XADD|ZADD)/i,args:1},{regex:/^(HSET|HMSET|LSET|LINSERT)/i,args:2},{regex:/^(ACL|BIT|B[LRZ]|CLIENT|CLUSTER|CONFIG|COMMAND|DECR|DEL|EVAL|EX|FUNCTION|GEO|GET|HINCR|HMGET|HSCAN|INCR|L[TRLM]|MEMORY|P[EFISTU]|RPOP|S[CDIMORSU]|XACK|X[CDGILPRT]|Z[CDILMPRS])/i,args:-1}],zst=(e,t)=>{var r,n;if(Array.isArray(t)&&t.length){let i=(n=(r=Xst.find(({regex:a})=>a.test(e)))===null||r===void 0?void 0:r.args)!==null&&n!==void 0?n:0,s=i>=0?t.slice(0,i):t;return t.length>s.length&&s.push(`[${t.length-i} other arguments]`),`${e} ${s.join(" ")}`}return e};mC.defaultDbStatementSerializer=zst;});var yce=chunkTKGT252T_js.c(rg=>{Object.defineProperty(rg,"__esModule",{value:!0});rg.PACKAGE_NAME=rg.PACKAGE_VERSION=void 0;rg.PACKAGE_VERSION="0.43.0";rg.PACKAGE_NAME="@opentelemetry/instrumentation-ioredis";});var Ece=chunkTKGT252T_js.c(gC=>{Object.defineProperty(gC,"__esModule",{value:!0});gC.IORedisInstrumentation=void 0;var of=(pt(),chunkTKGT252T_js.f(Gr)),yC=(Rn(),chunkTKGT252T_js.f(zn)),oo=(dn(),chunkTKGT252T_js.f(si)),gce=(Rn(),chunkTKGT252T_js.f(zn)),C0=mce(),Jst=J2(),Sce=yce(),Tce={requireParentSpan:!0},Q2=class extends yC.InstrumentationBase{constructor(t={}){super(Sce.PACKAGE_NAME,Sce.PACKAGE_VERSION,Object.assign(Object.assign({},Tce),t));}setConfig(t={}){super.setConfig(Object.assign(Object.assign({},Tce),t));}init(){return [new yC.InstrumentationNodeModuleDefinition("ioredis",[">=2.0.0 <6"],(t,r)=>{let n=t[Symbol.toStringTag]==="Module"?t.default:t;return (0, yC.isWrapped)(n.prototype.sendCommand)&&this._unwrap(n.prototype,"sendCommand"),this._wrap(n.prototype,"sendCommand",this._patchSendCommand(r)),(0, yC.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect"),this._wrap(n.prototype,"connect",this._patchConnection()),t},t=>{if(t===void 0)return;let r=t[Symbol.toStringTag]==="Module"?t.default:t;this._unwrap(r.prototype,"sendCommand"),this._unwrap(r.prototype,"connect");})]}_patchSendCommand(t){return r=>this._traceSendCommand(r,t)}_patchConnection(){return t=>this._traceConnection(t)}_traceSendCommand(t,r){let n=this;return function(i){if(arguments.length<1||typeof i!="object")return t.apply(this,arguments);let s=n.getConfig(),a=s.dbStatementSerializer||Jst.defaultDbStatementSerializer,o=of.trace.getSpan(of.context.active())===void 0;if(s.requireParentSpan===!0&&o)return t.apply(this,arguments);let u=n.tracer.startSpan(i.name,{kind:of.SpanKind.CLIENT,attributes:{[oo.SEMATTRS_DB_SYSTEM]:oo.DBSYSTEMVALUES_REDIS,[oo.SEMATTRS_DB_STATEMENT]:a(i.name,i.args)}}),{requestHook:l}=s;l&&(0, gce.safeExecuteInTheMiddle)(()=>l(u,{moduleVersion:r,cmdName:i.name,cmdArgs:i.args}),h=>{h&&of.diag.error("ioredis instrumentation: request hook failed",h);},!0);let{host:c,port:p}=this.options;u.setAttributes({[oo.SEMATTRS_NET_PEER_NAME]:c,[oo.SEMATTRS_NET_PEER_PORT]:p,[oo.SEMATTRS_DB_CONNECTION_STRING]:`redis://${c}:${p}`});try{let h=t.apply(this,arguments),f=i.resolve;i.resolve=function(m){(0,gce.safeExecuteInTheMiddle)(()=>{var y;return (y=s.responseHook)===null||y===void 0?void 0:y.call(s,u,i.name,i.args,m)},y=>{y&&of.diag.error("ioredis instrumentation: response hook failed",y);},!0),(0,C0.endSpan)(u,null),f(m);};let d=i.reject;return i.reject=function(m){(0,C0.endSpan)(u,m),d(m);},h}catch(h){throw (0, C0.endSpan)(u,h),h}}}_traceConnection(t){let r=this;return function(){let n=of.trace.getSpan(of.context.active())===void 0;if(r.getConfig().requireParentSpan===!0&&n)return t.apply(this,arguments);let i=r.tracer.startSpan("connect",{kind:of.SpanKind.CLIENT,attributes:{[oo.SEMATTRS_DB_SYSTEM]:oo.DBSYSTEMVALUES_REDIS,[oo.SEMATTRS_DB_STATEMENT]:"connect"}}),{host:s,port:a}=this.options;i.setAttributes({[oo.SEMATTRS_NET_PEER_NAME]:s,[oo.SEMATTRS_NET_PEER_PORT]:a,[oo.SEMATTRS_DB_CONNECTION_STRING]:`redis://${s}:${a}`});try{let o=t.apply(this,arguments);return (0,C0.endSpan)(i,null),o}catch(o){throw (0, C0.endSpan)(i,o),o}}}};gC.IORedisInstrumentation=Q2;});var vce=chunkTKGT252T_js.c(bce=>{Object.defineProperty(bce,"__esModule",{value:!0});});var xce=chunkTKGT252T_js.c(uf=>{var Qst=uf&&uf.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),_ce=uf&&uf.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Qst(t,e,r);};Object.defineProperty(uf,"__esModule",{value:!0});_ce(Ece(),uf);_ce(vce(),uf);});var Ace=chunkTKGT252T_js.c(SC=>{Object.defineProperty(SC,"__esModule",{value:!0});SC.getClientAttributes=void 0;var w0=(dn(),chunkTKGT252T_js.f(si));function Zst(e,t){var r,n;return {[w0.SEMATTRS_DB_SYSTEM]:w0.DBSYSTEMVALUES_REDIS,[w0.SEMATTRS_NET_PEER_NAME]:(r=t==null?void 0:t.socket)===null||r===void 0?void 0:r.host,[w0.SEMATTRS_NET_PEER_PORT]:(n=t==null?void 0:t.socket)===null||n===void 0?void 0:n.port,[w0.SEMATTRS_DB_CONNECTION_STRING]:eat(e,t==null?void 0:t.url)}}SC.getClientAttributes=Zst;function eat(e,t){if(typeof t=="string")try{let r=new URL(t);return r.searchParams.delete("user_pwd"),r.username="",r.password="",r.href}catch(r){e.error("failed to sanitize redis connection url",r);}}});var Pce=chunkTKGT252T_js.c(ng=>{Object.defineProperty(ng,"__esModule",{value:!0});ng.PACKAGE_NAME=ng.PACKAGE_VERSION=void 0;ng.PACKAGE_VERSION="0.42.0";ng.PACKAGE_NAME="@opentelemetry/instrumentation-redis-4";});var Dce=chunkTKGT252T_js.c(EC=>{Object.defineProperty(EC,"__esModule",{value:!0});EC.RedisInstrumentation=void 0;var uo=(pt(),chunkTKGT252T_js.f(Gr)),Li=(Rn(),chunkTKGT252T_js.f(zn)),Cce=Ace(),tat=J2(),wce=Pce(),rat=(dn(),chunkTKGT252T_js.f(si)),I0=Symbol("opentelemetry.instrumentation.redis.open_spans"),Ice=Symbol("opentelemetry.instrumentation.redis.multi_command_options"),Oce={requireParentSpan:!1},TC=class e extends Li.InstrumentationBase{constructor(t={}){super(wce.PACKAGE_NAME,wce.PACKAGE_VERSION,Object.assign(Object.assign({},Oce),t));}setConfig(t={}){super.setConfig(Object.assign(Object.assign({},Oce),t));}init(){return [this._getInstrumentationNodeModuleDefinition("@redis/client"),this._getInstrumentationNodeModuleDefinition("@node-redis/client")]}_getInstrumentationNodeModuleDefinition(t){let r=new Li.InstrumentationNodeModuleFile(`${t}/dist/lib/commander.js`,["^1.0.0"],(s,a)=>{let o=s.transformCommandArguments;if(!o)return this._diag.error("internal instrumentation error, missing transformCommandArguments function"),s;let u=a!=null&&a.startsWith("1.0.")?"extendWithCommands":"attachCommands";return (0, Li.isWrapped)(s==null?void 0:s[u])&&this._unwrap(s,u),this._wrap(s,u,this._getPatchExtendWithCommands(o)),s},s=>{(0, Li.isWrapped)(s==null?void 0:s.extendWithCommands)&&this._unwrap(s,"extendWithCommands"),(0, Li.isWrapped)(s==null?void 0:s.attachCommands)&&this._unwrap(s,"attachCommands");}),n=new Li.InstrumentationNodeModuleFile(`${t}/dist/lib/client/multi-command.js`,["^1.0.0"],s=>{var a;let o=(a=s==null?void 0:s.default)===null||a===void 0?void 0:a.prototype;return (0, Li.isWrapped)(o==null?void 0:o.exec)&&this._unwrap(o,"exec"),this._wrap(o,"exec",this._getPatchMultiCommandsExec()),(0, Li.isWrapped)(o==null?void 0:o.addCommand)&&this._unwrap(o,"addCommand"),this._wrap(o,"addCommand",this._getPatchMultiCommandsAddCommand()),s},s=>{var a;let o=(a=s==null?void 0:s.default)===null||a===void 0?void 0:a.prototype;(0, Li.isWrapped)(o==null?void 0:o.exec)&&this._unwrap(o,"exec"),(0, Li.isWrapped)(o==null?void 0:o.addCommand)&&this._unwrap(o,"addCommand");}),i=new Li.InstrumentationNodeModuleFile(`${t}/dist/lib/client/index.js`,["^1.0.0"],s=>{var a;let o=(a=s==null?void 0:s.default)===null||a===void 0?void 0:a.prototype;return o!=null&&o.multi&&((0, Li.isWrapped)(o==null?void 0:o.multi)&&this._unwrap(o,"multi"),this._wrap(o,"multi",this._getPatchRedisClientMulti())),o!=null&&o.MULTI&&((0, Li.isWrapped)(o==null?void 0:o.MULTI)&&this._unwrap(o,"MULTI"),this._wrap(o,"MULTI",this._getPatchRedisClientMulti())),(0, Li.isWrapped)(o==null?void 0:o.sendCommand)&&this._unwrap(o,"sendCommand"),this._wrap(o,"sendCommand",this._getPatchRedisClientSendCommand()),this._wrap(o,"connect",this._getPatchedClientConnect()),s},s=>{var a;let o=(a=s==null?void 0:s.default)===null||a===void 0?void 0:a.prototype;(0, Li.isWrapped)(o==null?void 0:o.multi)&&this._unwrap(o,"multi"),(0, Li.isWrapped)(o==null?void 0:o.MULTI)&&this._unwrap(o,"MULTI"),(0, Li.isWrapped)(o==null?void 0:o.sendCommand)&&this._unwrap(o,"sendCommand");});return new Li.InstrumentationNodeModuleDefinition(t,["^1.0.0"],s=>s,()=>{},[r,n,i])}_getPatchExtendWithCommands(t){let r=this;return function(i){return function(a){var o;if(((o=a==null?void 0:a.BaseClass)===null||o===void 0?void 0:o.name)!=="RedisClient")return i.apply(this,arguments);let u=a.executor;return a.executor=function(l,c){let p=t(l,c).args;return r._traceClientCommand(u,this,arguments,p)},i.apply(this,arguments)}}}_getPatchMultiCommandsExec(){let t=this;return function(n){return function(){let s=n.apply(this,arguments);return typeof(s==null?void 0:s.then)!="function"?(t._diag.error("got non promise result when patching RedisClientMultiCommand.exec"),s):s.then(a=>{let o=this[I0];return t._endSpansWithRedisReplies(o,a),a}).catch(a=>{let o=this[I0];if(!o)t._diag.error("cannot find open spans to end for redis multi command");else {let u=a.constructor.name==="MultiErrorReply"?a.replies:new Array(o.length).fill(a);t._endSpansWithRedisReplies(o,u);}return Promise.reject(a)})}}}_getPatchMultiCommandsAddCommand(){let t=this;return function(n){return function(s){return t._traceClientCommand(n,this,arguments,s)}}}_getPatchRedisClientMulti(){return function(r){return function(){let i=r.apply(this,arguments);return i[Ice]=this.options,i}}}_getPatchRedisClientSendCommand(){let t=this;return function(n){return function(s){return t._traceClientCommand(n,this,arguments,s)}}}_getPatchedClientConnect(){let t=this;return function(n){return function(){let s=this.options,a=(0, Cce.getClientAttributes)(t._diag,s),o=t.tracer.startSpan(`${e.COMPONENT}-connect`,{kind:uo.SpanKind.CLIENT,attributes:a});return uo.context.with(uo.trace.setSpan(uo.context.active(),o),()=>n.apply(this)).then(l=>(o.end(),l)).catch(l=>(o.recordException(l),o.setStatus({code:uo.SpanStatusCode.ERROR,message:l.message}),o.end(),Promise.reject(l)))}}}_traceClientCommand(t,r,n,i){if(uo.trace.getSpan(uo.context.active())===void 0&&this.getConfig().requireParentSpan)return t.apply(r,n);let a=r.options||r[Ice],o=i[0],u=i.slice(1),l=this.getConfig().dbStatementSerializer||tat.defaultDbStatementSerializer,c=(0, Cce.getClientAttributes)(this._diag,a);try{let f=l(o,u);f!=null&&(c[rat.SEMATTRS_DB_STATEMENT]=f);}catch(f){this._diag.error("dbStatementSerializer throw an exception",f,{commandName:o});}let p=this.tracer.startSpan(`${e.COMPONENT}-${o}`,{kind:uo.SpanKind.CLIENT,attributes:c}),h=uo.context.with(uo.trace.setSpan(uo.context.active(),p),()=>t.apply(r,n));if(typeof(h==null?void 0:h.then)=="function")h.then(f=>{this._endSpanWithResponse(p,o,u,f,void 0);},f=>{this._endSpanWithResponse(p,o,u,null,f);});else {let f=h;f[I0]=f[I0]||[],f[I0].push({span:p,commandName:o,commandArgs:u});}return h}_endSpansWithRedisReplies(t,r){if(!t)return this._diag.error("cannot find open spans to end for redis multi command");if(r.length!==t.length)return this._diag.error("number of multi command spans does not match response from redis");for(let n=0;n{Object.defineProperty(Nce,"__esModule",{value:!0});});var Lce=chunkTKGT252T_js.c(lf=>{var nat=lf&&lf.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),Mce=lf&&lf.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&nat(t,e,r);};Object.defineProperty(lf,"__esModule",{value:!0});Mce(Dce(),lf);Mce(Rce(),lf);});var $ce=chunkTKGT252T_js.c(ig=>{Object.defineProperty(ig,"__esModule",{value:!0});ig.PACKAGE_NAME=ig.PACKAGE_VERSION=void 0;ig.PACKAGE_VERSION="0.40.0";ig.PACKAGE_NAME="@opentelemetry/instrumentation-nestjs-core";});var rF=chunkTKGT252T_js.c(D0=>{Object.defineProperty(D0,"__esModule",{value:!0});D0.AttributeNames=void 0;(function(e){e.VERSION="nestjs.version",e.TYPE="nestjs.type",e.MODULE="nestjs.module",e.CONTROLLER="nestjs.controller",e.CALLBACK="nestjs.callback",e.PIPES="nestjs.pipes",e.INTERCEPTORS="nestjs.interceptors",e.GUARDS="nestjs.guards";})(D0.AttributeNames||(D0.AttributeNames={}));});var Kce=chunkTKGT252T_js.c(N0=>{Object.defineProperty(N0,"__esModule",{value:!0});N0.NestType=void 0;(function(e){e.APP_CREATION="app_creation",e.REQUEST_CONTEXT="request_context",e.REQUEST_HANDLER="handler";})(N0.NestType||(N0.NestType={}));});var Yce=chunkTKGT252T_js.c(sg=>{Object.defineProperty(sg,"__esModule",{value:!0});sg.NestType=sg.AttributeNames=void 0;var fat=rF();Object.defineProperty(sg,"AttributeNames",{enumerable:!0,get:function(){return fat.AttributeNames}});var hat=Kce();Object.defineProperty(sg,"NestType",{enumerable:!0,get:function(){return hat.NestType}});});var Xce=chunkTKGT252T_js.c(bC=>{Object.defineProperty(bC,"__esModule",{value:!0});bC.NestInstrumentation=void 0;var Wu=(pt(),chunkTKGT252T_js.f(Gr)),R0=(Rn(),chunkTKGT252T_js.f(zn)),Wce=$ce(),nF=(dn(),chunkTKGT252T_js.f(si)),Ma=Yce(),iF=[">=4.0.0 <11"],Ql=class e extends R0.InstrumentationBase{constructor(t={}){super(Wce.PACKAGE_NAME,Wce.PACKAGE_VERSION,t);}init(){let t=new R0.InstrumentationNodeModuleDefinition(e.COMPONENT,iF);return t.files.push(this.getNestFactoryFileInstrumentation(iF),this.getRouterExecutionContextFileInstrumentation(iF)),t}getNestFactoryFileInstrumentation(t){return new R0.InstrumentationNodeModuleFile("@nestjs/core/nest-factory.js",t,(r,n)=>(this.ensureWrapped(r.NestFactoryStatic.prototype,"create",dat(this.tracer,n)),r),r=>{this._unwrap(r.NestFactoryStatic.prototype,"create");})}getRouterExecutionContextFileInstrumentation(t){return new R0.InstrumentationNodeModuleFile("@nestjs/core/router/router-execution-context.js",t,(r,n)=>(this.ensureWrapped(r.RouterExecutionContext.prototype,"create",mat(this.tracer,n)),r),r=>{this._unwrap(r.RouterExecutionContext.prototype,"create");})}ensureWrapped(t,r,n){(0, R0.isWrapped)(t[r])&&this._unwrap(t,r),this._wrap(t,r,n);}};bC.NestInstrumentation=Ql;Ql.COMPONENT="@nestjs/core";Ql.COMMON_ATTRIBUTES={component:Ql.COMPONENT};function dat(e,t){return function(n){return function(s){let a=e.startSpan("Create Nest App",{attributes:Object.assign(Object.assign({},Ql.COMMON_ATTRIBUTES),{[Ma.AttributeNames.TYPE]:Ma.NestType.APP_CREATION,[Ma.AttributeNames.VERSION]:t,[Ma.AttributeNames.MODULE]:s.name})}),o=Wu.trace.setSpan(Wu.context.active(),a);return Wu.context.with(o,async()=>{try{return await n.apply(this,arguments)}catch(u){throw sF(a,u)}finally{a.end();}})}}}function mat(e,t){return function(n){return function(s,a){arguments[1]=yat(e,t,a);let o=n.apply(this,arguments),u=a.name,l=s.constructor&&s.constructor.name?s.constructor.name:"UnnamedInstance",c=u?`${l}.${u}`:l;return function(p,h,f){var d,m;let y=e.startSpan(c,{attributes:Object.assign(Object.assign({},Ql.COMMON_ATTRIBUTES),{[Ma.AttributeNames.VERSION]:t,[Ma.AttributeNames.TYPE]:Ma.NestType.REQUEST_CONTEXT,[nF.SEMATTRS_HTTP_METHOD]:p.method,[nF.SEMATTRS_HTTP_URL]:p.originalUrl||p.url,[nF.SEMATTRS_HTTP_ROUTE]:((d=p.route)===null||d===void 0?void 0:d.path)||((m=p.routeOptions)===null||m===void 0?void 0:m.url)||p.routerPath,[Ma.AttributeNames.CONTROLLER]:l,[Ma.AttributeNames.CALLBACK]:u})}),g=Wu.trace.setSpan(Wu.context.active(),y);return Wu.context.with(g,async()=>{try{return await o.apply(this,arguments)}catch(v){throw sF(y,v)}finally{y.end();}})}}}}function yat(e,t,r){let n=r.name||"anonymous nest handler",i={attributes:Object.assign(Object.assign({},Ql.COMMON_ATTRIBUTES),{[Ma.AttributeNames.VERSION]:t,[Ma.AttributeNames.TYPE]:Ma.NestType.REQUEST_HANDLER,[Ma.AttributeNames.CALLBACK]:r.name})},s=function(){let a=e.startSpan(n,i),o=Wu.trace.setSpan(Wu.context.active(),a);return Wu.context.with(o,async()=>{try{return await r.apply(this,arguments)}catch(u){throw sF(a,u)}finally{a.end();}})};return r.name&&Object.defineProperty(s,"name",{value:r.name}),Reflect.getMetadataKeys(r).forEach(a=>{Reflect.defineMetadata(a,Reflect.getMetadata(a,r),s);}),s}var sF=(e,t)=>(e.recordException(t),e.setStatus({code:Wu.SpanStatusCode.ERROR,message:t.message}),t);});var Jce=chunkTKGT252T_js.c(cf=>{var gat=cf&&cf.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),zce=cf&&cf.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&gat(t,e,r);};Object.defineProperty(cf,"__esModule",{value:!0});zce(Xce(),cf);zce(rF(),cf);});var uF=chunkTKGT252T_js.c(M0=>{Object.defineProperty(M0,"__esModule",{value:!0});M0.AttributeNames=void 0;(function(e){e.PG_VALUES="db.postgresql.values",e.PG_PLAN="db.postgresql.plan",e.IDLE_TIMEOUT_MILLIS="db.postgresql.idle.timeout.millis",e.MAX_CLIENT="db.postgresql.max.client";})(M0.AttributeNames||(M0.AttributeNames={}));});var lF=chunkTKGT252T_js.c(L0=>{Object.defineProperty(L0,"__esModule",{value:!0});L0.SpanNames=void 0;(function(e){e.QUERY_PREFIX="pg.query",e.CONNECT="pg.connect",e.POOL_CONNECT="pg-pool.connect";})(L0.SpanNames||(L0.SpanNames={}));});var upe=chunkTKGT252T_js.c(Sn=>{Object.defineProperty(Sn,"__esModule",{value:!0});Sn.isObjectWithTextString=Sn.getErrorMessage=Sn.patchClientConnectCallback=Sn.patchCallbackPGPool=Sn.patchCallback=Sn.handleExecutionResult=Sn.handleConfigQuery=Sn.shouldSkipInstrumentation=Sn.getSemanticAttributesFromPool=Sn.getSemanticAttributesFromConnection=Sn.getConnectionString=Sn.getQuerySpanName=void 0;var ff=(pt(),chunkTKGT252T_js.f(Gr)),vC=uF(),Is=(dn(),chunkTKGT252T_js.f(si)),xat=(Rn(),chunkTKGT252T_js.f(zn)),npe=lF();function ipe(e,t){if(!t)return npe.SpanNames.QUERY_PREFIX;let r=typeof t.name=="string"&&t.name?t.name:Aat(t.text);return `${npe.SpanNames.QUERY_PREFIX}:${r}${e?` ${e}`:""}`}Sn.getQuerySpanName=ipe;function Aat(e){let t=e.indexOf(" "),r=t===-1?e:e.slice(0,t);return r=r.toUpperCase(),r.endsWith(";")?r.slice(0,-1):r}function cF(e){let t=e.host||"localhost",r=e.port||5432,n=e.database||"";return `postgresql://${t}:${r}/${n}`}Sn.getConnectionString=cF;function spe(e){if(Number.isInteger(e))return e}function ape(e){return {[Is.SEMATTRS_DB_SYSTEM]:Is.DBSYSTEMVALUES_POSTGRESQL,[Is.SEMATTRS_DB_NAME]:e.database,[Is.SEMATTRS_DB_CONNECTION_STRING]:cF(e),[Is.SEMATTRS_NET_PEER_NAME]:e.host,[Is.SEMATTRS_NET_PEER_PORT]:spe(e.port),[Is.SEMATTRS_DB_USER]:e.user}}Sn.getSemanticAttributesFromConnection=ape;function Pat(e){return {[Is.SEMATTRS_DB_SYSTEM]:Is.DBSYSTEMVALUES_POSTGRESQL,[Is.SEMATTRS_DB_NAME]:e.database,[Is.SEMATTRS_DB_CONNECTION_STRING]:cF(e),[Is.SEMATTRS_NET_PEER_NAME]:e.host,[Is.SEMATTRS_NET_PEER_PORT]:spe(e.port),[Is.SEMATTRS_DB_USER]:e.user,[vC.AttributeNames.IDLE_TIMEOUT_MILLIS]:e.idleTimeoutMillis,[vC.AttributeNames.MAX_CLIENT]:e.maxClient}}Sn.getSemanticAttributesFromPool=Pat;function Cat(e){return e.requireParentSpan===!0&&ff.trace.getSpan(ff.context.active())===void 0}Sn.shouldSkipInstrumentation=Cat;function wat(e,t,r){let{connectionParameters:n}=this,i=n.database,s=ipe(i,r),a=e.startSpan(s,{kind:ff.SpanKind.CLIENT,attributes:ape(n)});if(!r)return a;if(r.text&&a.setAttribute(Is.SEMATTRS_DB_STATEMENT,r.text),t.enhancedDatabaseReporting&&Array.isArray(r.values))try{let o=r.values.map(u=>u==null?"null":u instanceof Buffer?u.toString():typeof u=="object"?typeof u.toPostgres=="function"?u.toPostgres():JSON.stringify(u):u.toString());a.setAttribute(vC.AttributeNames.PG_VALUES,o);}catch(o){ff.diag.error("failed to stringify ",r.values,o);}return typeof r.name=="string"&&a.setAttribute(vC.AttributeNames.PG_PLAN,r.name),a}Sn.handleConfigQuery=wat;function ope(e,t,r){typeof e.responseHook=="function"&&(0, xat.safeExecuteInTheMiddle)(()=>{e.responseHook(t,{data:r});},n=>{n&&ff.diag.error("Error running response hook",n);},!0);}Sn.handleExecutionResult=ope;function Iat(e,t,r){return function(i,s){i?t.setStatus({code:ff.SpanStatusCode.ERROR,message:i.message}):ope(e,t,s),t.end(),r.call(this,i,s);}}Sn.patchCallback=Iat;function Oat(e,t){return function(n,i,s){n&&e.setStatus({code:ff.SpanStatusCode.ERROR,message:n.message}),e.end(),t.call(this,n,i,s);}}Sn.patchCallbackPGPool=Oat;function Dat(e,t){return function(n){n&&e.setStatus({code:ff.SpanStatusCode.ERROR,message:n.message}),e.end(),t.apply(this,arguments);}}Sn.patchClientConnectCallback=Dat;function Nat(e){return typeof e=="object"&&e!==null&&"message"in e?String(e.message):void 0}Sn.getErrorMessage=Nat;function Rat(e){var t;return typeof e=="object"&&typeof((t=e)===null||t===void 0?void 0:t.text)=="string"}Sn.isObjectWithTextString=Rat;});var lpe=chunkTKGT252T_js.c(ug=>{Object.defineProperty(ug,"__esModule",{value:!0});ug.PACKAGE_NAME=ug.PACKAGE_VERSION=void 0;ug.PACKAGE_VERSION="0.44.0";ug.PACKAGE_NAME="@opentelemetry/instrumentation-pg";});var dpe=chunkTKGT252T_js.c(_C=>{Object.defineProperty(_C,"__esModule",{value:!0});_C.PgInstrumentation=void 0;var Zl=(Rn(),chunkTKGT252T_js.f(zn)),mn=(pt(),chunkTKGT252T_js.f(Gr)),fa=upe(),cpe=X2(),ppe=lpe(),fpe=lF(),pF=class extends Zl.InstrumentationBase{constructor(t={}){super(ppe.PACKAGE_NAME,ppe.PACKAGE_VERSION,t);}init(){let t=new Zl.InstrumentationNodeModuleDefinition("pg",[">=8.0.0 <9"],n=>{let i=n[Symbol.toStringTag]==="Module"?n.default:n;return (0, Zl.isWrapped)(i.Client.prototype.query)&&this._unwrap(i.Client.prototype,"query"),(0, Zl.isWrapped)(i.Client.prototype.connect)&&this._unwrap(i.Client.prototype,"connect"),this._wrap(i.Client.prototype,"query",this._getClientQueryPatch()),this._wrap(i.Client.prototype,"connect",this._getClientConnectPatch()),n},n=>{let i=n[Symbol.toStringTag]==="Module"?n.default:n;(0, Zl.isWrapped)(i.Client.prototype.query)&&this._unwrap(i.Client.prototype,"query");}),r=new Zl.InstrumentationNodeModuleDefinition("pg-pool",[">=2.0.0 <4"],n=>((0, Zl.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect"),this._wrap(n.prototype,"connect",this._getPoolConnectPatch()),n),n=>{(0, Zl.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect");});return [t,r]}_getClientConnectPatch(){let t=this;return r=>function(i){if(fa.shouldSkipInstrumentation(t.getConfig()))return r.call(this,i);let s=t.tracer.startSpan(fpe.SpanNames.CONNECT,{kind:mn.SpanKind.CLIENT,attributes:fa.getSemanticAttributesFromConnection(this)});if(i){let o=mn.trace.getSpan(mn.context.active());i=fa.patchClientConnectCallback(s,i),o&&(i=mn.context.bind(mn.context.active(),i));}let a=mn.context.with(mn.trace.setSpan(mn.context.active(),s),()=>r.call(this,i));return hpe(s,a)}}_getClientQueryPatch(){let t=this;return r=>(this._diag.debug("Patching pg.Client.prototype.query"),function(...i){if(fa.shouldSkipInstrumentation(t.getConfig()))return r.apply(this,i);let s=i[0],a=typeof s=="string",o=fa.isObjectWithTextString(s),u=a?{text:s,values:Array.isArray(i[1])?i[1]:void 0}:o?s:void 0,l=t.getConfig(),c=fa.handleConfigQuery.call(this,t.tracer,l,u);if(l.addSqlCommenterCommentToQueries&&(i[0]=a?(0, cpe.addSqlCommenterComment)(c,s):o?Object.assign(Object.assign({},s),{text:(0, cpe.addSqlCommenterComment)(c,s.text)}):i[0]),i.length>0){let f=mn.trace.getSpan(mn.context.active());if(typeof i[i.length-1]=="function")i[i.length-1]=fa.patchCallback(l,c,i[i.length-1]),f&&(i[i.length-1]=mn.context.bind(mn.context.active(),i[i.length-1]));else if(typeof(u==null?void 0:u.callback)=="function"){let d=fa.patchCallback(t.getConfig(),c,u.callback);f&&(d=mn.context.bind(mn.context.active(),d)),i[0].callback=d;}}let{requestHook:p}=l;typeof p=="function"&&u&&(0, Zl.safeExecuteInTheMiddle)(()=>{let{database:f,host:d,port:m,user:y}=this.connectionParameters;p(c,{connection:{database:f,host:d,port:m,user:y},query:{text:u.text,values:u.values,name:u.name}});},f=>{f&&t._diag.error("Error running query hook",f);},!0);let h;try{h=r.apply(this,i);}catch(f){throw c.setStatus({code:mn.SpanStatusCode.ERROR,message:fa.getErrorMessage(f)}),c.end(),f}return h instanceof Promise?h.then(f=>new Promise(d=>{fa.handleExecutionResult(t.getConfig(),c,f),c.end(),d(f);})).catch(f=>new Promise((d,m)=>{c.setStatus({code:mn.SpanStatusCode.ERROR,message:f.message}),c.end(),m(f);})):h})}_getPoolConnectPatch(){let t=this;return r=>function(i){if(fa.shouldSkipInstrumentation(t.getConfig()))return r.call(this,i);let s=t.tracer.startSpan(fpe.SpanNames.POOL_CONNECT,{kind:mn.SpanKind.CLIENT,attributes:fa.getSemanticAttributesFromPool(this.options)});if(i){let o=mn.trace.getSpan(mn.context.active());i=fa.patchCallbackPGPool(s,i),o&&(i=mn.context.bind(mn.context.active(),i));}let a=mn.context.with(mn.trace.setSpan(mn.context.active(),s),()=>r.call(this,i));return hpe(s,a)}}};_C.PgInstrumentation=pF;function hpe(e,t){if(!(t instanceof Promise))return t;let r=t;return mn.context.bind(mn.context.active(),r.then(n=>(e.end(),n)).catch(n=>(e.setStatus({code:mn.SpanStatusCode.ERROR,message:fa.getErrorMessage(n)}),e.end(),Promise.reject(n))))}});var ype=chunkTKGT252T_js.c(mpe=>{Object.defineProperty(mpe,"__esModule",{value:!0});});var gpe=chunkTKGT252T_js.c(ec=>{var Mat=ec&&ec.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),fF=ec&&ec.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Mat(t,e,r);};Object.defineProperty(ec,"__esModule",{value:!0});fF(dpe(),ec);fF(ype(),ec);fF(uF(),ec);});var vpe=chunkTKGT252T_js.c(lg=>{Object.defineProperty(lg,"__esModule",{value:!0});lg.PACKAGE_NAME=lg.PACKAGE_VERSION=void 0;lg.PACKAGE_VERSION="0.41.0";lg.PACKAGE_NAME="@opentelemetry/instrumentation-hapi";});var hF=chunkTKGT252T_js.c(Xu=>{Object.defineProperty(Xu,"__esModule",{value:!0});Xu.HapiLifecycleMethodNames=Xu.HapiLayerType=Xu.handlerPatched=Xu.HapiComponentName=void 0;Xu.HapiComponentName="@hapi/hapi";Xu.handlerPatched=Symbol("hapi-handler-patched");Xu.HapiLayerType={ROUTER:"router",PLUGIN:"plugin",EXT:"server.ext"};Xu.HapiLifecycleMethodNames=new Set(["onPreAuth","onCredentials","onPostAuth","onPreHandler","onPostHandler","onPreResponse","onRequest"]);});var dF=chunkTKGT252T_js.c(k0=>{Object.defineProperty(k0,"__esModule",{value:!0});k0.AttributeNames=void 0;(function(e){e.HAPI_TYPE="hapi.type",e.PLUGIN_NAME="hapi.plugin.name",e.EXT_TYPE="server.ext.type";})(k0.AttributeNames||(k0.AttributeNames={}));});var _pe=chunkTKGT252T_js.c(mi=>{Object.defineProperty(mi,"__esModule",{value:!0});mi.getPluginFromInput=mi.getExtMetadata=mi.getRouteMetadata=mi.isPatchableExtMethod=mi.isDirectExtInput=mi.isLifecycleExtEventObj=mi.isLifecycleExtType=mi.getPluginName=void 0;var xC=(dn(),chunkTKGT252T_js.f(si)),F0=hF(),hf=dF();function Fat(e){return e.name?e.name:e.pkg.name}mi.getPluginName=Fat;var Bat=e=>typeof e=="string"&&F0.HapiLifecycleMethodNames.has(e);mi.isLifecycleExtType=Bat;var jat=e=>{var t;let r=(t=e)===null||t===void 0?void 0:t.type;return r!==void 0&&(0, mi.isLifecycleExtType)(r)};mi.isLifecycleExtEventObj=jat;var Uat=e=>Array.isArray(e)&&e.length<=3&&(0, mi.isLifecycleExtType)(e[0])&&typeof e[1]=="function";mi.isDirectExtInput=Uat;var qat=e=>!Array.isArray(e);mi.isPatchableExtMethod=qat;var Vat=(e,t)=>t?{attributes:{[xC.SEMATTRS_HTTP_ROUTE]:e.path,[xC.SEMATTRS_HTTP_METHOD]:e.method,[hf.AttributeNames.HAPI_TYPE]:F0.HapiLayerType.PLUGIN,[hf.AttributeNames.PLUGIN_NAME]:t},name:`${t}: route - ${e.path}`}:{attributes:{[xC.SEMATTRS_HTTP_ROUTE]:e.path,[xC.SEMATTRS_HTTP_METHOD]:e.method,[hf.AttributeNames.HAPI_TYPE]:F0.HapiLayerType.ROUTER},name:`route - ${e.path}`};mi.getRouteMetadata=Vat;var Hat=(e,t)=>t?{attributes:{[hf.AttributeNames.EXT_TYPE]:e,[hf.AttributeNames.HAPI_TYPE]:F0.HapiLayerType.EXT,[hf.AttributeNames.PLUGIN_NAME]:t},name:`${t}: ext - ${e}`}:{attributes:{[hf.AttributeNames.EXT_TYPE]:e,[hf.AttributeNames.HAPI_TYPE]:F0.HapiLayerType.EXT},name:`ext - ${e}`};mi.getExtMetadata=Hat;var Gat=e=>"plugin"in e?"plugin"in e.plugin?e.plugin.plugin:e.plugin:e;mi.getPluginFromInput=Gat;});var Ppe=chunkTKGT252T_js.c(PC=>{Object.defineProperty(PC,"__esModule",{value:!0});PC.HapiInstrumentation=void 0;var La=(pt(),chunkTKGT252T_js.f(Gr)),xpe=(jn(),chunkTKGT252T_js.f(eo)),AC=(Rn(),chunkTKGT252T_js.f(zn)),Ape=vpe(),B0=hF(),tc=_pe(),mF=class extends AC.InstrumentationBase{constructor(t={}){super(Ape.PACKAGE_NAME,Ape.PACKAGE_VERSION,t);}init(){return new AC.InstrumentationNodeModuleDefinition(B0.HapiComponentName,[">=17.0.0 <22"],t=>{let r=t[Symbol.toStringTag]==="Module"?t.default:t;return (0, AC.isWrapped)(r.server)||this._wrap(r,"server",this._getServerPatch.bind(this)),(0, AC.isWrapped)(r.Server)||this._wrap(r,"Server",this._getServerPatch.bind(this)),r},t=>{let r=t[Symbol.toStringTag]==="Module"?t.default:t;this._massUnwrap([r],["server","Server"]);})}_getServerPatch(t){let r=this,n=this;return function(s){let a=t.apply(this,[s]);return n._wrap(a,"route",o=>r._getServerRoutePatch.bind(r)(o)),n._wrap(a,"ext",o=>r._getServerExtPatch.bind(r)(o)),n._wrap(a,"register",r._getServerRegisterPatch.bind(r)),a}}_getServerRegisterPatch(t){let r=this;return function(i,s){if(Array.isArray(i))for(let a of i){let o=(0, tc.getPluginFromInput)(a);r._wrapRegisterHandler(o);}else {let a=(0, tc.getPluginFromInput)(i);r._wrapRegisterHandler(a);}return t.apply(this,[i,s])}}_getServerExtPatch(t,r){let n=this;return function(...s){if(Array.isArray(s[0])){let a=s[0];for(let o=0;or._getServerRoutePatch.bind(r)(l,n)),s._wrap(o,"ext",l=>r._getServerExtPatch.bind(r)(l,n)),i(o,u)};t.register=a;}_wrapExtMethods(t,r,n){let i=this;if(t instanceof Array){for(let s=0;sasync function(...o){if(La.trace.getSpan(La.context.active())===void 0)return await a.call(this,...o);let u=(0, xpe.getRPCMetadata)(La.context.active());(u==null?void 0:u.type)===xpe.RPCType.HTTP&&(u.route=t.path);let l=(0, tc.getRouteMetadata)(t,r),c=i.tracer.startSpan(l.name,{attributes:l.attributes});try{return await La.context.with(La.trace.setSpan(La.context.active(),c),()=>a.call(this,...o))}catch(p){throw c.recordException(p),c.setStatus({code:La.SpanStatusCode.ERROR,message:p.message}),p}finally{c.end();}};if(typeof t.handler=="function")t.handler=s(t.handler);else if(typeof t.options=="function"){let a=t.options;t.options=function(o){let u=a(o);return typeof u.handler=="function"&&(u.handler=s(u.handler)),u};}else typeof((n=t.options)===null||n===void 0?void 0:n.handler)=="function"&&(t.options.handler=s(t.options.handler));return t}};PC.HapiInstrumentation=mF;});var wpe=chunkTKGT252T_js.c(df=>{var $at=df&&df.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),Cpe=df&&df.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&$at(t,e,r);};Object.defineProperty(df,"__esModule",{value:!0});Cpe(Ppe(),df);Cpe(dF(),df);});var CC=chunkTKGT252T_js.c(j0=>{Object.defineProperty(j0,"__esModule",{value:!0});j0.KoaLayerType=void 0;(function(e){e.ROUTER="router",e.MIDDLEWARE="middleware";})(j0.KoaLayerType||(j0.KoaLayerType={}));});var Rpe=chunkTKGT252T_js.c(cg=>{Object.defineProperty(cg,"__esModule",{value:!0});cg.PACKAGE_NAME=cg.PACKAGE_VERSION=void 0;cg.PACKAGE_VERSION="0.43.0";cg.PACKAGE_NAME="@opentelemetry/instrumentation-koa";});var yF=chunkTKGT252T_js.c(U0=>{Object.defineProperty(U0,"__esModule",{value:!0});U0.AttributeNames=void 0;(function(e){e.KOA_TYPE="koa.type",e.KOA_NAME="koa.name";})(U0.AttributeNames||(U0.AttributeNames={}));});var Lpe=chunkTKGT252T_js.c(pg=>{Object.defineProperty(pg,"__esModule",{value:!0});pg.isLayerIgnored=pg.getMiddlewareMetadata=void 0;var Mpe=CC(),wC=yF(),Xat=(dn(),chunkTKGT252T_js.f(si)),zat=(e,t,r,n)=>{var i;return r?{attributes:{[wC.AttributeNames.KOA_NAME]:n==null?void 0:n.toString(),[wC.AttributeNames.KOA_TYPE]:Mpe.KoaLayerType.ROUTER,[Xat.SEMATTRS_HTTP_ROUTE]:n==null?void 0:n.toString()},name:e._matchedRouteName||`router - ${n}`}:{attributes:{[wC.AttributeNames.KOA_NAME]:(i=t.name)!==null&&i!==void 0?i:"middleware",[wC.AttributeNames.KOA_TYPE]:Mpe.KoaLayerType.MIDDLEWARE},name:`middleware - ${t.name}`}};pg.getMiddlewareMetadata=zat;var Jat=(e,t)=>{var r;return !!(Array.isArray(t==null?void 0:t.ignoreLayersType)&&(!((r=t==null?void 0:t.ignoreLayersType)===null||r===void 0)&&r.includes(e)))};pg.isLayerIgnored=Jat;});var kpe=chunkTKGT252T_js.c(IC=>{Object.defineProperty(IC,"__esModule",{value:!0});IC.kLayerPatched=void 0;IC.kLayerPatched=Symbol("koa-layer-patched");});var Vpe=chunkTKGT252T_js.c(OC=>{Object.defineProperty(OC,"__esModule",{value:!0});OC.KoaInstrumentation=void 0;var zu=(pt(),chunkTKGT252T_js.f(Gr)),q0=(Rn(),chunkTKGT252T_js.f(zn)),Fpe=CC(),Bpe=Rpe(),jpe=Lpe(),Upe=(jn(),chunkTKGT252T_js.f(eo)),qpe=kpe(),gF=class extends q0.InstrumentationBase{constructor(t={}){super(Bpe.PACKAGE_NAME,Bpe.PACKAGE_VERSION,t);}init(){return new q0.InstrumentationNodeModuleDefinition("koa",[">=2.0.0 <3"],t=>{let r=t[Symbol.toStringTag]==="Module"?t.default:t;return r==null?r:((0, q0.isWrapped)(r.prototype.use)&&this._unwrap(r.prototype,"use"),this._wrap(r.prototype,"use",this._getKoaUsePatch.bind(this)),t)},t=>{let r=t[Symbol.toStringTag]==="Module"?t.default:t;(0, q0.isWrapped)(r.prototype.use)&&this._unwrap(r.prototype,"use");})}_getKoaUsePatch(t){let r=this;return function(i){let s;return i.router?s=r._patchRouterDispatch(i):s=r._patchLayer(i,!1),t.apply(this,[s])}}_patchRouterDispatch(t){var r;zu.diag.debug("Patching @koa/router dispatch");let n=t.router,i=(r=n==null?void 0:n.stack)!==null&&r!==void 0?r:[];for(let s of i){let a=s.path,o=s.stack;for(let u=0;u{if(zu.trace.getSpan(zu.context.active())===void 0)return t(s,a);let u=(0, jpe.getMiddlewareMetadata)(s,t,r,n),l=this.tracer.startSpan(u.name,{attributes:u.attributes}),c=(0, Upe.getRPCMetadata)(zu.context.active());(c==null?void 0:c.type)===Upe.RPCType.HTTP&&s._matchedRoute&&(c.route=s._matchedRoute.toString());let{requestHook:p}=this.getConfig();p&&(0, q0.safeExecuteInTheMiddle)(()=>p(l,{context:s,middlewareLayer:t,layerType:i}),f=>{f&&zu.diag.error("koa instrumentation: request hook failed",f);},!0);let h=zu.trace.setSpan(zu.context.active(),l);return zu.context.with(h,async()=>{try{return await t(s,a)}catch(f){throw l.recordException(f),f}finally{l.end();}})})}};OC.KoaInstrumentation=gF;});var Hpe=chunkTKGT252T_js.c(rc=>{var Qat=rc&&rc.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),SF=rc&&rc.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Qat(t,e,r);};Object.defineProperty(rc,"__esModule",{value:!0});SF(Vpe(),rc);SF(CC(),rc);SF(yF(),rc);});var TF=chunkTKGT252T_js.c(su=>{Object.defineProperty(su,"__esModule",{value:!0});su.ConnectNames=su.ConnectTypes=su.AttributeNames=void 0;(function(e){e.CONNECT_TYPE="connect.type",e.CONNECT_NAME="connect.name";})(su.AttributeNames||(su.AttributeNames={}));(function(e){e.MIDDLEWARE="middleware",e.REQUEST_HANDLER="request_handler";})(su.ConnectTypes||(su.ConnectTypes={}));(function(e){e.MIDDLEWARE="middleware",e.REQUEST_HANDLER="request handler";})(su.ConnectNames||(su.ConnectNames={}));});var Wpe=chunkTKGT252T_js.c(fg=>{Object.defineProperty(fg,"__esModule",{value:!0});fg.PACKAGE_NAME=fg.PACKAGE_VERSION=void 0;fg.PACKAGE_VERSION="0.39.0";fg.PACKAGE_NAME="@opentelemetry/instrumentation-connect";});var Xpe=chunkTKGT252T_js.c(DC=>{Object.defineProperty(DC,"__esModule",{value:!0});DC._LAYERS_STORE_PROPERTY=void 0;DC._LAYERS_STORE_PROPERTY=Symbol("opentelemetry.instrumentation-connect.request-route-stack");});var zpe=chunkTKGT252T_js.c(yf=>{Object.defineProperty(yf,"__esModule",{value:!0});yf.generateRoute=yf.replaceCurrentStackRoute=yf.addNewStackLayer=void 0;var iot=(pt(),chunkTKGT252T_js.f(Gr)),mf=Xpe(),sot=e=>{Array.isArray(e[mf._LAYERS_STORE_PROPERTY])===!1&&Object.defineProperty(e,mf._LAYERS_STORE_PROPERTY,{enumerable:!1,value:[]}),e[mf._LAYERS_STORE_PROPERTY].push("/");let t=e[mf._LAYERS_STORE_PROPERTY].length;return ()=>{t===e[mf._LAYERS_STORE_PROPERTY].length?e[mf._LAYERS_STORE_PROPERTY].pop():iot.diag.warn("Connect: Trying to pop the stack multiple time");}};yf.addNewStackLayer=sot;var aot=(e,t)=>{t&&e[mf._LAYERS_STORE_PROPERTY].splice(-1,1,t);};yf.replaceCurrentStackRoute=aot;var oot=e=>e[mf._LAYERS_STORE_PROPERTY].reduce((t,r)=>t.replace(/\/+$/,"")+r);yf.generateRoute=oot;});var Zpe=chunkTKGT252T_js.c(gf=>{Object.defineProperty(gf,"__esModule",{value:!0});gf.ConnectInstrumentation=gf.ANONYMOUS_NAME=void 0;var uot=(pt(),chunkTKGT252T_js.f(Gr)),Jpe=(jn(),chunkTKGT252T_js.f(eo)),hg=TF(),Qpe=Wpe(),NC=(Rn(),chunkTKGT252T_js.f(zn)),lot=(dn(),chunkTKGT252T_js.f(si)),EF=zpe();gf.ANONYMOUS_NAME="anonymous";var bF=class extends NC.InstrumentationBase{constructor(t={}){super(Qpe.PACKAGE_NAME,Qpe.PACKAGE_VERSION,t);}init(){return [new NC.InstrumentationNodeModuleDefinition("connect",[">=3.0.0 <4"],t=>this._patchConstructor(t))]}_patchApp(t){(0, NC.isWrapped)(t.use)||this._wrap(t,"use",this._patchUse.bind(this)),(0, NC.isWrapped)(t.handle)||this._wrap(t,"handle",this._patchHandle.bind(this));}_patchConstructor(t){let r=this;return function(...n){let i=t.apply(this,n);return r._patchApp(i),i}}_patchNext(t,r){return function(i){let s=t.apply(this,[i]);return r(),s}}_startSpan(t,r){let n,i,s;t?(n=hg.ConnectTypes.REQUEST_HANDLER,s=hg.ConnectNames.REQUEST_HANDLER,i=t):(n=hg.ConnectTypes.MIDDLEWARE,s=hg.ConnectNames.MIDDLEWARE,i=r.name||gf.ANONYMOUS_NAME);let a=`${s} - ${i}`,o={attributes:{[lot.SEMATTRS_HTTP_ROUTE]:t.length>0?t:"/",[hg.AttributeNames.CONNECT_TYPE]:n,[hg.AttributeNames.CONNECT_NAME]:i}};return this.tracer.startSpan(a,o)}_patchMiddleware(t,r){let n=this,i=r.length===4;function s(){if(!n.isEnabled())return r.apply(this,arguments);let[a,o,u]=i?[1,2,3]:[0,1,2],l=arguments[a],c=arguments[o],p=arguments[u];(0, EF.replaceCurrentStackRoute)(l,t);let h=(0, Jpe.getRPCMetadata)(uot.context.active());t&&(h==null?void 0:h.type)===Jpe.RPCType.HTTP&&(h.route=(0, EF.generateRoute)(l));let f="";t?f=`request handler - ${t}`:f=`middleware - ${r.name||gf.ANONYMOUS_NAME}`;let d=n._startSpan(t,r);n._diag.debug("start span",f);let m=!1;function y(){m?n._diag.debug(`span ${d.name} - already finished`):(m=!0,n._diag.debug(`finishing span ${d.name}`),d.end()),c.removeListener("close",y);}return c.addListener("close",y),arguments[u]=n._patchNext(p,y),r.apply(this,arguments)}return Object.defineProperty(s,"length",{value:r.length,writable:!1,configurable:!0}),s}_patchUse(t){let r=this;return function(...n){let i=n[n.length-1],s=n[n.length-2]||"";return n[n.length-1]=r._patchMiddleware(s,i),t.apply(this,n)}}_patchHandle(t){let r=this;return function(){let[n,i]=[0,2],s=arguments[n],a=arguments[i],o=(0, EF.addNewStackLayer)(s);return typeof a=="function"&&(arguments[i]=r._patchOut(a,o)),t.apply(this,arguments)}}_patchOut(t,r){return function(...i){return r(),Reflect.apply(t,this,i)}}};gf.ConnectInstrumentation=bF;});var tfe=chunkTKGT252T_js.c(Sf=>{var cot=Sf&&Sf.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),efe=Sf&&Sf.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&cot(t,e,r);};Object.defineProperty(Sf,"__esModule",{value:!0});efe(TF(),Sf);efe(Zpe(),Sf);});var ofe=chunkTKGT252T_js.c(dg=>{Object.defineProperty(dg,"__esModule",{value:!0});dg.PACKAGE_NAME=dg.PACKAGE_VERSION=void 0;dg.PACKAGE_VERSION="0.39.0";dg.PACKAGE_NAME="@opentelemetry/instrumentation-generic-pool";});var lfe=chunkTKGT252T_js.c(RC=>{Object.defineProperty(RC,"__esModule",{value:!0});RC.GenericPoolInstrumentation=void 0;var mg=(pt(),chunkTKGT252T_js.f(Gr)),Qh=(Rn(),chunkTKGT252T_js.f(zn)),ufe=ofe(),_F="generic-pool",xF=class extends Qh.InstrumentationBase{constructor(t={}){super(ufe.PACKAGE_NAME,ufe.PACKAGE_VERSION,t),this._isDisabled=!1;}init(){return [new Qh.InstrumentationNodeModuleDefinition(_F,[">=3.0.0 <4"],t=>{let r=t.Pool;return (0, Qh.isWrapped)(r.prototype.acquire)&&this._unwrap(r.prototype,"acquire"),this._wrap(r.prototype,"acquire",this._acquirePatcher.bind(this)),t},t=>{let r=t.Pool;return this._unwrap(r.prototype,"acquire"),t}),new Qh.InstrumentationNodeModuleDefinition(_F,[">=2.4.0 <3"],t=>{let r=t.Pool;return (0, Qh.isWrapped)(r.prototype.acquire)&&this._unwrap(r.prototype,"acquire"),this._wrap(r.prototype,"acquire",this._acquireWithCallbacksPatcher.bind(this)),t},t=>{let r=t.Pool;return this._unwrap(r.prototype,"acquire"),t}),new Qh.InstrumentationNodeModuleDefinition(_F,[">=2.0.0 <2.4"],t=>(this._isDisabled=!1,(0, Qh.isWrapped)(t.Pool)&&this._unwrap(t,"Pool"),this._wrap(t,"Pool",this._poolWrapper.bind(this)),t),t=>(this._isDisabled=!0,t))]}_acquirePatcher(t){let r=this;return function(...i){let s=mg.context.active(),a=r.tracer.startSpan("generic-pool.acquire",{},s);return mg.context.with(mg.trace.setSpan(s,a),()=>t.call(this,...i).then(o=>(a.end(),o),o=>{throw a.recordException(o),a.end(),o}))}}_poolWrapper(t){let r=this;return function(){let i=t.apply(this,arguments);return r._wrap(i,"acquire",r._acquireWithCallbacksPatcher.bind(r)),i}}_acquireWithCallbacksPatcher(t){let r=this;return function(i,s){if(r._isDisabled)return t.call(this,i,s);let a=mg.context.active(),o=r.tracer.startSpan("generic-pool.acquire",{},a);return mg.context.with(mg.trace.setSpan(a,o),()=>{t.call(this,(u,l)=>{if(o.end(),i)return i(u,l)},s);})}}};RC.GenericPoolInstrumentation=xF;});var cfe=chunkTKGT252T_js.c(Zh=>{var Sot=Zh&&Zh.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),Tot=Zh&&Zh.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Sot(t,e,r);};Object.defineProperty(Zh,"__esModule",{value:!0});Tot(lfe(),Zh);});var PF=chunkTKGT252T_js.c(MC=>{Object.defineProperty(MC,"__esModule",{value:!0});MC.AbstractAsyncHooksContextManager=void 0;var bot=chunkTKGT252T_js.a("events"),vot=["addListener","on","once","prependListener","prependOnceListener"],AF=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1;}bind(t,r){return r instanceof bot.EventEmitter?this._bindEventEmitter(t,r):typeof r=="function"?this._bindFunction(t,r):r}_bindFunction(t,r){let n=this,i=function(...s){return n.with(t,()=>r.apply(this,s))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),i}_bindEventEmitter(t,r){return this._getPatchMap(r)!==void 0||(this._createPatchMap(r),vot.forEach(i=>{r[i]!==void 0&&(r[i]=this._patchAddListener(r,r[i],t));}),typeof r.removeListener=="function"&&(r.removeListener=this._patchRemoveListener(r,r.removeListener)),typeof r.off=="function"&&(r.off=this._patchRemoveListener(r,r.off)),typeof r.removeAllListeners=="function"&&(r.removeAllListeners=this._patchRemoveAllListeners(r,r.removeAllListeners))),r}_patchRemoveListener(t,r){let n=this;return function(i,s){var a;let o=(a=n._getPatchMap(t))===null||a===void 0?void 0:a[i];if(o===void 0)return r.call(this,i,s);let u=o.get(s);return r.call(this,i,u||s)}}_patchRemoveAllListeners(t,r){let n=this;return function(i){let s=n._getPatchMap(t);return s!==void 0&&(arguments.length===0?n._createPatchMap(t):s[i]!==void 0&&delete s[i]),r.apply(this,arguments)}}_patchAddListener(t,r,n){let i=this;return function(s,a){if(i._wrapped)return r.call(this,s,a);let o=i._getPatchMap(t);o===void 0&&(o=i._createPatchMap(t));let u=o[s];u===void 0&&(u=new WeakMap,o[s]=u);let l=i.bind(n,a);u.set(a,l),i._wrapped=!0;try{return r.call(this,s,l)}finally{i._wrapped=!1;}}}_createPatchMap(t){let r=Object.create(null);return t[this._kOtListeners]=r,r}_getPatchMap(t){return t[this._kOtListeners]}};MC.AbstractAsyncHooksContextManager=AF;});var mfe=chunkTKGT252T_js.c(LC=>{Object.defineProperty(LC,"__esModule",{value:!0});LC.AsyncHooksContextManager=void 0;var _ot=(pt(),chunkTKGT252T_js.f(Gr)),xot=chunkTKGT252T_js.a("async_hooks"),Aot=PF(),CF=class extends Aot.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=xot.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)});}active(){var t;return (t=this._stack[this._stack.length-1])!==null&&t!==void 0?t:_ot.ROOT_CONTEXT}with(t,r,n,...i){this._enterContext(t);try{return r.call(n,...i)}finally{this._exitContext();}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(t,r){if(r==="TIMERWRAP")return;let n=this._stack[this._stack.length-1];n!==void 0&&this._contexts.set(t,n);}_destroy(t){this._contexts.delete(t);}_before(t){let r=this._contexts.get(t);r!==void 0&&this._enterContext(r);}_after(){this._exitContext();}_enterContext(t){this._stack.push(t);}_exitContext(){this._stack.pop();}};LC.AsyncHooksContextManager=CF;});var yfe=chunkTKGT252T_js.c(kC=>{Object.defineProperty(kC,"__esModule",{value:!0});kC.AsyncLocalStorageContextManager=void 0;var Pot=(pt(),chunkTKGT252T_js.f(Gr)),Cot=chunkTKGT252T_js.a("async_hooks"),wot=PF(),wF=class extends wot.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new Cot.AsyncLocalStorage;}active(){var t;return (t=this._asyncLocalStorage.getStore())!==null&&t!==void 0?t:Pot.ROOT_CONTEXT}with(t,r,n,...i){let s=n==null?r:r.bind(n);return this._asyncLocalStorage.run(t,s,...i)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};kC.AsyncLocalStorageContextManager=wF;});var gfe=chunkTKGT252T_js.c(yg=>{Object.defineProperty(yg,"__esModule",{value:!0});yg.AsyncLocalStorageContextManager=yg.AsyncHooksContextManager=void 0;var Iot=mfe();Object.defineProperty(yg,"AsyncHooksContextManager",{enumerable:!0,get:function(){return Iot.AsyncHooksContextManager}});var Oot=yfe();Object.defineProperty(yg,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return Oot.AsyncLocalStorageContextManager}});});var kfe=chunkTKGT252T_js.c((pWr,NF)=>{var Lfe=(e,t,r)=>new Promise((n,i)=>{if(r=Object.assign({concurrency:1/0},r),typeof t!="function")throw new TypeError("Mapper function is required");let{concurrency:s}=r;if(!(typeof s=="number"&&s>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${s}\` (${typeof s})`);let a=[],o=e[Symbol.iterator](),u=!1,l=!1,c=0,p=0,h=()=>{if(u)return;let f=o.next(),d=p;if(p++,f.done){l=!0,c===0&&n(a);return}c++,Promise.resolve(f.value).then(m=>t(m,d)).then(m=>{a[d]=m,c--,h();},m=>{u=!0,i(m);});};for(let f=0;f{RF.exports=Ffe;RF.exports.default=Ffe;function Ffe(e){return !!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}});var Ufe=chunkTKGT252T_js.c((hWr,jfe)=>{jfe.exports=JR()().Observable;});var Vfe=chunkTKGT252T_js.c((dWr,qfe)=>{var aut=Ufe();function MF(e,t,r){let n=e===!1?!1:e||t;if(r&&!n||n&&typeof n!="string")throw new TypeError(t+"Event must be a string.");return n}qfe.exports=(e,t)=>{t=t||{};let r=!1,n=[],i=t.await,s=MF(t.dataEvent,"data",!0),a=MF(t.errorEvent,"error"),o=MF(t.endEvent,"end");function u(){r=!0,n.forEach(c=>{e.removeListener(s,c);}),n=null;}let l=new Promise((c,p)=>{function h(f){i?i.then(c):c(f);}o?e.once(o,h):i&&h(),a&&e.once(a,p),i&&i.catch(p);}).catch(c=>{throw u(),c}).then(c=>(u(),c));return new aut(c=>{if(l.then(c.complete.bind(c)).catch(c.error.bind(c)),r)return null;let p=h=>{c.next(h);};return e.on(s,p),n.push(p),()=>{if(e.removeListener(s,p),r)return;let h=n.indexOf(p);h!==-1&&n.splice(h,1);}})};});function et(e,t){LF(e,t);function r(){this.constructor=e;}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r);}var LF,Xr=chunkTKGT252T_js.b(()=>{LF=function(e,t){return LF=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n;}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);},LF(e,t)};});function ic(e){return typeof e=="function"}var $0=chunkTKGT252T_js.b(()=>{});var kF,ds,K0=chunkTKGT252T_js.b(()=>{kF=!1,ds={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;""+t.stack;}kF=e;},get useDeprecatedSynchronousErrorHandling(){return kF}};});function sc(e){setTimeout(function(){throw e},0);}var UC=chunkTKGT252T_js.b(()=>{});var gg,FF=chunkTKGT252T_js.b(()=>{K0();UC();gg={closed:!0,next:function(e){},error:function(e){if(ds.useDeprecatedSynchronousErrorHandling)throw e;sc(e);},complete:function(){}};});var qn,lo=chunkTKGT252T_js.b(()=>{qn=function(){return Array.isArray||function(e){return e&&typeof e.length=="number"}}();});function Sg(e){return e!==null&&typeof e=="object"}var qC=chunkTKGT252T_js.b(()=>{});var out,ed,BF=chunkTKGT252T_js.b(()=>{out=function(){function e(t){return Error.call(this),this.message=t?t.length+` errors occurred during unsubscription: `+t.map(function(r,n){return n+1+") "+r.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=t,this}return e.prototype=Object.create(Error.prototype),e}(),ed=out;});function Hfe(e){return e.reduce(function(t,r){return t.concat(r instanceof ed?r.errors:r)},[])}var Dr,Os=chunkTKGT252T_js.b(()=>{lo();qC();$0();BF();Dr=function(){function e(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t);}return e.prototype.unsubscribe=function(){var t;if(!this.closed){var r=this,n=r._parentOrParents,i=r._ctorUnsubscribe,s=r._unsubscribe,a=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(n!==null)for(var o=0;o{td=function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();});var cn,Gfe,ka=chunkTKGT252T_js.b(()=>{Xr();$0();FF();Os();VC();K0();UC();cn=function(e){et(t,e);function t(r,n,i){var s=e.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=gg;break;case 1:if(!r){s.destination=gg;break}if(typeof r=="object"){r instanceof t?(s.syncErrorThrowable=r.syncErrorThrowable,s.destination=r,r.add(s)):(s.syncErrorThrowable=!0,s.destination=new Gfe(s,r));break}default:s.syncErrorThrowable=!0,s.destination=new Gfe(s,r,n,i);break}return s}return t.prototype[td]=function(){return this},t.create=function(r,n,i){var s=new t(r,n,i);return s.syncErrorThrowable=!1,s},t.prototype.next=function(r){this.isStopped||this._next(r);},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r));},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete());},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this));},t.prototype._next=function(r){this.destination.next(r);},t.prototype._error=function(r){this.destination.error(r),this.unsubscribe();},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe();},t.prototype._unsubscribeAndRecycle=function(){var r=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=r,this},t}(Dr),Gfe=function(e){et(t,e);function t(r,n,i,s){var a=e.call(this)||this;a._parentSubscriber=r;var o,u=a;return ic(n)?o=n:n&&(o=n.next,i=n.error,s=n.complete,n!==gg&&(u=Object.create(n),ic(u.unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(a))),a._context=u,a._next=o,a._error=i,a._complete=s,a}return t.prototype.next=function(r){if(!this.isStopped&&this._next){var n=this._parentSubscriber;!ds.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?this.__tryOrUnsub(this._next,r):this.__tryOrSetError(n,this._next,r)&&this.unsubscribe();}},t.prototype.error=function(r){if(!this.isStopped){var n=this._parentSubscriber,i=ds.useDeprecatedSynchronousErrorHandling;if(this._error)!i||!n.syncErrorThrowable?(this.__tryOrUnsub(this._error,r),this.unsubscribe()):(this.__tryOrSetError(n,this._error,r),this.unsubscribe());else if(n.syncErrorThrowable)i?(n.syncErrorValue=r,n.syncErrorThrown=!0):sc(r),this.unsubscribe();else {if(this.unsubscribe(),i)throw r;sc(r);}}},t.prototype.complete=function(){var r=this;if(!this.isStopped){var n=this._parentSubscriber;if(this._complete){var i=function(){return r._complete.call(r._context)};!ds.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?(this.__tryOrUnsub(i),this.unsubscribe()):(this.__tryOrSetError(n,i),this.unsubscribe());}else this.unsubscribe();}},t.prototype.__tryOrUnsub=function(r,n){try{r.call(this._context,n);}catch(i){if(this.unsubscribe(),ds.useDeprecatedSynchronousErrorHandling)throw i;sc(i);}},t.prototype.__tryOrSetError=function(r,n,i){if(!ds.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,i);}catch(s){return ds.useDeprecatedSynchronousErrorHandling?(r.syncErrorValue=s,r.syncErrorThrown=!0,!0):(sc(s),!0)}return !1},t.prototype._unsubscribe=function(){var r=this._parentSubscriber;this._context=null,this._parentSubscriber=null,r.unsubscribe();},t}(cn);});function Tg(e){for(;e;){var t=e,r=t.closed,n=t.destination,i=t.isStopped;if(r||i)return !1;n&&n instanceof cn?e=n:e=null;}return !0}var HC=chunkTKGT252T_js.b(()=>{ka();});function $fe(e,t,r){if(e){if(e instanceof cn)return e;if(e[td])return e[td]()}return !e&&!t&&!r?new cn(gg):new cn(e,t,r)}var Kfe=chunkTKGT252T_js.b(()=>{ka();VC();FF();});var co,rd=chunkTKGT252T_js.b(()=>{co=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();});function ac(e){return e}var Y0=chunkTKGT252T_js.b(()=>{});function Yfe(){for(var e=[],t=0;t{Y0();});function Wfe(e){if(e||(e=ds.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var Ze,Lr=chunkTKGT252T_js.b(()=>{HC();Kfe();rd();UF();K0();Ze=function(){function e(t){this._isScalar=!1,t&&(this._subscribe=t);}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this.operator,s=$fe(t,r,n);if(i?s.add(i.call(s,this.source)):s.add(this.source||ds.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),ds.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){ds.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=r),Tg(t)?t.error(r):console.warn(r);}},e.prototype.forEach=function(t,r){var n=this;return r=Wfe(r),new r(function(i,s){var a;a=n.subscribe(function(o){try{t(o);}catch(u){s(u),a&&a.unsubscribe();}},s,i);})},e.prototype._subscribe=function(t){var r=this.source;return r&&r.subscribe(t)},e.prototype[co]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r{uut=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),po=uut;});var GC,qF=chunkTKGT252T_js.b(()=>{Xr();Os();GC=function(e){et(t,e);function t(r,n){var i=e.call(this)||this;return i.subject=r,i.subscriber=n,i.closed=!1,i}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var r=this.subject,n=r.observers;if(this.subject=null,!(!n||n.length===0||r.isStopped||r.closed)){var i=n.indexOf(this.subscriber);i!==-1&&n.splice(i,1);}}},t}(Dr);});var VF,oc,Xfe,Eg=chunkTKGT252T_js.b(()=>{Xr();Lr();ka();Os();W0();qF();VC();VF=function(e){et(t,e);function t(r){var n=e.call(this,r)||this;return n.destination=r,n}return t}(cn),oc=function(e){et(t,e);function t(){var r=e.call(this)||this;return r.observers=[],r.closed=!1,r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype[td]=function(){return new VF(this)},t.prototype.lift=function(r){var n=new Xfe(this,this);return n.operator=r,n},t.prototype.next=function(r){if(this.closed)throw new po;if(!this.isStopped)for(var n=this.observers,i=n.length,s=n.slice(),a=0;a{Xr();ka();lut=function(){function e(t){this.connectable=t;}return e.prototype.call=function(t,r){var n=this.connectable;n._refCount++;var i=new cut(t,n),s=r.subscribe(i);return i.closed||(i.connection=n.connect()),s},e}(),cut=function(e){et(t,e);function t(r,n){var i=e.call(this,r)||this;return i.connectable=n,i}return t.prototype._unsubscribe=function(){var r=this.connectable;if(!r){this.connection=null;return}this.connectable=null;var n=r._refCount;if(n<=0){this.connection=null;return}if(r._refCount=n-1,n>1){this.connection=null;return}var i=this.connection,s=r._connection;this.connection=null,s&&(!i||s===i)&&s.unsubscribe();},t}(cn);});var Qfe,put,Zfe=chunkTKGT252T_js.b(()=>{Xr();Eg();Lr();Os();Jfe();Qfe=function(e){et(t,e);function t(r,n){var i=e.call(this)||this;return i.source=r,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return t.prototype._subscribe=function(r){return this.getSubject().subscribe(r)},t.prototype.getSubject=function(){var r=this._subject;return (!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var r=this._connection;return r||(this._isComplete=!1,r=this._connection=new Dr,r.add(this.source.subscribe(new put(this.getSubject(),this))),r.closed&&(this._connection=null,r=Dr.EMPTY)),r},t.prototype.refCount=function(){return zfe()(this)},t}(Ze),put=function(e){et(t,e);function t(r,n){var i=e.call(this,r)||this;return i.connectable=n,i}return t.prototype._error=function(r){this._unsubscribe(),e.prototype._error.call(this,r);},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this);},t.prototype._unsubscribe=function(){var r=this.connectable;if(r){this.connectable=null;var n=r._connection;r._refCount=0,r._subject=null,r._connection=null,n&&n.unsubscribe();}},t}(VF);});var ehe,fut,the=chunkTKGT252T_js.b(()=>{Xr();Os();Lr();ehe=function(e){et(t,e);function t(r,n,i){var s=e.call(this)||this;return s.key=r,s.groupSubject=n,s.refCountSubscription=i,s}return t.prototype._subscribe=function(r){var n=new Dr,i=this,s=i.refCountSubscription,a=i.groupSubject;return s&&!s.closed&&n.add(new fut(s)),n.add(a.subscribe(r)),n},t}(Ze),fut=function(e){et(t,e);function t(r){var n=e.call(this)||this;return n.parent=r,r.count++,n}return t.prototype.unsubscribe=function(){var r=this.parent;!r.closed&&!this.closed&&(e.prototype.unsubscribe.call(this),r.count-=1,r.count===0&&r.attemptedToUnsubscribe&&r.unsubscribe());},t}(Dr);});var rhe,nhe=chunkTKGT252T_js.b(()=>{Xr();Eg();W0();rhe=function(e){et(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return n&&!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new po;return this._value},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r);},t}(oc);});var ihe,she=chunkTKGT252T_js.b(()=>{Xr();Os();ihe=function(e){et(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return this},t}(Dr);});var Qu,bg=chunkTKGT252T_js.b(()=>{Xr();she();Qu=function(e){et(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(r,n){if(n===void 0&&(n=0),this.closed)return this;this.state=r;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),setInterval(r.flush.bind(r,this),i)},t.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!==null&&this.delay===i&&this.pending===!1)return n;clearInterval(n);},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));},t.prototype._execute=function(r,n){var i=!1,s=void 0;try{this.work(r);}catch(a){i=!0,s=!!a&&a||new Error(a);}if(i)return this.unsubscribe(),s},t.prototype._unsubscribe=function(){var r=this.id,n=this.scheduler,i=n.actions,s=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,s!==-1&&i.splice(s,1),r!=null&&(this.id=this.recycleAsyncId(n,r,null)),this.delay=null;},t}(ihe);});var ahe,ohe=chunkTKGT252T_js.b(()=>{Xr();bg();ahe=function(e){et(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i}return t.prototype.schedule=function(r,n){return n===void 0&&(n=0),n>0?e.prototype.schedule.call(this,r,n):(this.delay=n,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,n){return n>0||this.closed?e.prototype.execute.call(this,r,n):this._execute(r,n)},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),i!==null&&i>0||i===null&&this.delay>0?e.prototype.requestAsyncId.call(this,r,n,i):r.flush(this)},t}(Qu);});var X0,HF=chunkTKGT252T_js.b(()=>{X0=function(){function e(t,r){r===void 0&&(r=e.now),this.SchedulerAction=t,this.now=r;}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.SchedulerAction(this,t).schedule(n,r)},e.now=function(){return Date.now()},e}();});var Zu,vg=chunkTKGT252T_js.b(()=>{Xr();HF();Zu=function(e){et(t,e);function t(r,n){n===void 0&&(n=X0.now);var i=e.call(this,r,function(){return t.delegate&&t.delegate!==i?t.delegate.now():n()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return t.prototype.schedule=function(r,n,i){return n===void 0&&(n=0),t.delegate&&t.delegate!==this?t.delegate.schedule(r,n,i):e.prototype.schedule.call(this,r,n,i)},t.prototype.flush=function(r){var n=this.actions;if(this.active){n.push(r);return}var i;this.active=!0;do if(i=r.execute(r.state,r.delay))break;while(r=n.shift());if(this.active=!1,i){for(;r=n.shift();)r.unsubscribe();throw i}},t}(X0);});var uhe,lhe=chunkTKGT252T_js.b(()=>{Xr();vg();uhe=function(e){et(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Zu);});var GF,$C,$F=chunkTKGT252T_js.b(()=>{ohe();lhe();GF=new uhe(ahe),$C=GF;});function _g(e){return e?hut(e):el}function hut(e){return new Ze(function(t){return e.schedule(function(){return t.complete()})})}var el,Tf=chunkTKGT252T_js.b(()=>{Lr();el=new Ze(function(e){return e.complete()});});function Ds(e){return e&&typeof e.schedule=="function"}var Ef=chunkTKGT252T_js.b(()=>{});var KC,KF=chunkTKGT252T_js.b(()=>{KC=function(e){return function(t){for(var r=0,n=e.length;r{Lr();Os();});function tl(e,t){return t?xg(e,t):new Ze(KC(e))}var Ag=chunkTKGT252T_js.b(()=>{Lr();KF();YC();});function Pg(){for(var e=[],t=0;t{Ef();Ag();YC();});function XC(e,t){return t?new Ze(function(r){return t.schedule(dut,0,{error:e,subscriber:r})}):new Ze(function(r){return r.error(e)})}function dut(e){var t=e.error,r=e.subscriber;r.error(t);}var YF=chunkTKGT252T_js.b(()=>{Lr();});var zC,Cg,WF=chunkTKGT252T_js.b(()=>{Tf();WC();YF();zC||(zC={});Cg=function(){function e(t,r,n){this.kind=t,this.value=r,this.error=n,this.hasValue=t==="N";}return e.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},e.prototype.do=function(t,r,n){var i=this.kind;switch(i){case"N":return t&&t(this.value);case"E":return r&&r(this.error);case"C":return n&&n()}},e.prototype.accept=function(t,r,n){return t&&typeof t.next=="function"?this.observe(t):this.do(t,r,n)},e.prototype.toObservable=function(){var t=this.kind;switch(t){case"N":return Pg(this.value);case"E":return XC(this.error);case"C":return _g()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return typeof t<"u"?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();});var che,mut,phe=chunkTKGT252T_js.b(()=>{Xr();ka();WF();che=function(e){et(t,e);function t(r,n,i){i===void 0&&(i=0);var s=e.call(this,r)||this;return s.scheduler=n,s.delay=i,s}return t.dispatch=function(r){var n=r.notification,i=r.destination;n.observe(i),this.unsubscribe();},t.prototype.scheduleMessage=function(r){var n=this.destination;n.add(this.scheduler.schedule(t.dispatch,this.delay,new mut(r,this.destination)));},t.prototype._next=function(r){this.scheduleMessage(Cg.createNext(r));},t.prototype._error=function(r){this.scheduleMessage(Cg.createError(r)),this.unsubscribe();},t.prototype._complete=function(){this.scheduleMessage(Cg.createComplete()),this.unsubscribe();},t}(cn),mut=function(){function e(t,r){this.notification=t,this.destination=r;}return e}();});var fhe,yut,hhe=chunkTKGT252T_js.b(()=>{Xr();Eg();$F();Os();phe();W0();qF();fhe=function(e){et(t,e);function t(r,n,i){r===void 0&&(r=Number.POSITIVE_INFINITY),n===void 0&&(n=Number.POSITIVE_INFINITY);var s=e.call(this)||this;return s.scheduler=i,s._events=[],s._infiniteTimeWindow=!1,s._bufferSize=r<1?1:r,s._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(s._infiniteTimeWindow=!0,s.next=s.nextInfiniteTimeWindow):s.next=s.nextTimeWindow,s}return t.prototype.nextInfiniteTimeWindow=function(r){if(!this.isStopped){var n=this._events;n.push(r),n.length>this._bufferSize&&n.shift();}e.prototype.next.call(this,r);},t.prototype.nextTimeWindow=function(r){this.isStopped||(this._events.push(new yut(this._getNow(),r)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,r);},t.prototype._subscribe=function(r){var n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,a=i.length,o;if(this.closed)throw new po;if(this.isStopped||this.hasError?o=Dr.EMPTY:(this.observers.push(r),o=new GC(this,r)),s&&r.add(r=new che(r,s)),n)for(var u=0;un&&(o=Math.max(o,a-n)),o>0&&s.splice(0,o),s},t}(oc),yut=function(){function e(t,r){this.time=t,this.value=r;}return e}();});var bf,JC=chunkTKGT252T_js.b(()=>{Xr();Eg();Os();bf=function(e){et(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.value=null,r.hasNext=!1,r.hasCompleted=!1,r}return t.prototype._subscribe=function(r){return this.hasError?(r.error(this.thrownError),Dr.EMPTY):this.hasCompleted&&this.hasNext?(r.next(this.value),r.complete(),Dr.EMPTY):e.prototype._subscribe.call(this,r)},t.prototype.next=function(r){this.hasCompleted||(this.value=r,this.hasNext=!0);},t.prototype.error=function(r){this.hasCompleted||e.prototype.error.call(this,r);},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this);},t}(oc);});function dhe(e){return e in XF?(delete XF[e],!0):!1}var gut,Sut,XF,zF,mhe=chunkTKGT252T_js.b(()=>{gut=1,Sut=function(){return Promise.resolve()}(),XF={};zF={setImmediate:function(e){var t=gut++;return XF[t]=!0,Sut.then(function(){return dhe(t)&&e()}),t},clearImmediate:function(e){dhe(e);}};});var yhe,ghe=chunkTKGT252T_js.b(()=>{Xr();mhe();bg();yhe=function(e){et(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i}return t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,r,n,i):(r.actions.push(this),r.scheduled||(r.scheduled=zF.setImmediate(r.flush.bind(r,null))))},t.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!==null&&i>0||i===null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,i);r.actions.length===0&&(zF.clearImmediate(n),r.scheduled=void 0);},t}(Qu);});var She,The=chunkTKGT252T_js.b(()=>{Xr();vg();She=function(e){et(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this.active=!0,this.scheduled=void 0;var n=this.actions,i,s=-1,a=n.length;r=r||n.shift();do if(i=r.execute(r.state,r.delay))break;while(++s{ghe();The();JF=new She(yhe),Ehe=JF;});var QF,nd,QC=chunkTKGT252T_js.b(()=>{bg();vg();QF=new Zu(Qu),nd=QF;});var vhe,_he=chunkTKGT252T_js.b(()=>{Xr();bg();vhe=function(e){et(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i}return t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,r,n,i):(r.actions.push(this),r.scheduled||(r.scheduled=requestAnimationFrame(function(){return r.flush(null)})))},t.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!==null&&i>0||i===null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,i);r.actions.length===0&&(cancelAnimationFrame(n),r.scheduled=void 0);},t}(Qu);});var xhe,Ahe=chunkTKGT252T_js.b(()=>{Xr();vg();xhe=function(e){et(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this.active=!0,this.scheduled=void 0;var n=this.actions,i,s=-1,a=n.length;r=r||n.shift();do if(i=r.execute(r.state,r.delay))break;while(++s{_he();Ahe();ZF=new xhe(vhe),Phe=ZF;});var whe,eB,Ihe=chunkTKGT252T_js.b(()=>{Xr();bg();vg();whe=function(e){et(t,e);function t(r,n){r===void 0&&(r=eB),n===void 0&&(n=Number.POSITIVE_INFINITY);var i=e.call(this,r,function(){return i.frame})||this;return i.maxFrames=n,i.frame=0,i.index=-1,i}return t.prototype.flush=function(){for(var r=this,n=r.actions,i=r.maxFrames,s,a;(a=n[0])&&a.delay<=i&&(n.shift(),this.frame=a.delay,!(s=a.execute(a.state,a.delay))););if(s){for(;a=n.shift();)a.unsubscribe();throw s}},t.frameTimeFactor=10,t}(Zu),eB=function(e){et(t,e);function t(r,n,i){i===void 0&&(i=r.index+=1);var s=e.call(this,r,n)||this;return s.scheduler=r,s.work=n,s.index=i,s.active=!0,s.index=r.index=i,s}return t.prototype.schedule=function(r,n){if(n===void 0&&(n=0),!this.id)return e.prototype.schedule.call(this,r,n);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(r,n)},t.prototype.requestAsyncId=function(r,n,i){i===void 0&&(i=0),this.delay=r.frame+i;var s=r.actions;return s.push(this),s.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(r,n,i){},t.prototype._execute=function(r,n){if(this.active===!0)return e.prototype._execute.call(this,r,n)},t.sortActions=function(r,n){return r.delay===n.delay?r.index===n.index?0:r.index>n.index?1:-1:r.delay>n.delay?1:-1},t}(Qu);});function ZC(){}var tB=chunkTKGT252T_js.b(()=>{});function Ohe(e){return !!e&&(e instanceof Ze||typeof e.lift=="function"&&typeof e.subscribe=="function")}var Dhe=chunkTKGT252T_js.b(()=>{Lr();});var Tut,Nhe,Rhe=chunkTKGT252T_js.b(()=>{Tut=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}(),Nhe=Tut;});var Eut,Mhe,Lhe=chunkTKGT252T_js.b(()=>{Eut=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),Mhe=Eut;});var but,khe,Fhe=chunkTKGT252T_js.b(()=>{but=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}(),khe=but;});function fo(e,t){return function(n){if(typeof e!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new vut(e,t))}}var vut,_ut,id=chunkTKGT252T_js.b(()=>{Xr();ka();vut=function(){function e(t,r){this.project=t,this.thisArg=r;}return e.prototype.call=function(t,r){return r.subscribe(new _ut(t,this.project,this.thisArg))},e}(),_ut=function(e){et(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.project=n,s.count=0,s.thisArg=i||s,s}return t.prototype._next=function(r){var n;try{n=this.project.call(this.thisArg,r,this.count++);}catch(i){this.destination.error(i);return}this.destination.next(n);},t}(cn);});function rB(e,t,r){if(t)if(Ds(t))r=t;else return function(){for(var n=[],i=0;i{Lr();JC();id();HC();lo();Ef();});function nB(e,t,r){if(t)if(Ds(t))r=t;else return function(){for(var n=[],i=0;i{Lr();JC();id();HC();Ef();lo();});var e1,iB=chunkTKGT252T_js.b(()=>{Xr();ka();e1=function(e){et(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.notifyNext=function(r,n,i,s,a){this.destination.next(n);},t.prototype.notifyError=function(r,n){this.destination.error(r);},t.prototype.notifyComplete=function(r){this.destination.complete();},t}(cn);});var qhe,Vhe=chunkTKGT252T_js.b(()=>{Xr();ka();qhe=function(e){et(t,e);function t(r,n,i){var s=e.call(this)||this;return s.parent=r,s.outerValue=n,s.outerIndex=i,s.index=0,s}return t.prototype._next=function(r){this.parent.notifyNext(this.outerValue,r,this.outerIndex,this.index++,this);},t.prototype._error=function(r){this.parent.notifyError(r,this),this.unsubscribe();},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe();},t}(cn);});var Hhe,Ghe=chunkTKGT252T_js.b(()=>{UC();Hhe=function(e){return function(t){return e.then(function(r){t.closed||(t.next(r),t.complete());},function(r){return t.error(r)}).then(null,sc),t}};});function wut(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Fa,wg=chunkTKGT252T_js.b(()=>{Fa=wut();});var $he,Khe=chunkTKGT252T_js.b(()=>{wg();$he=function(e){return function(t){var r=e[Fa]();do{var n=void 0;try{n=r.next();}catch(i){return t.error(i),t}if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}while(!0);return typeof r.return=="function"&&t.add(function(){r.return&&r.return();}),t}};});var Yhe,Whe=chunkTKGT252T_js.b(()=>{rd();Yhe=function(e){return function(t){var r=e[co]();if(typeof r.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return r.subscribe(t)}};});var t1,sB=chunkTKGT252T_js.b(()=>{t1=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};});function r1(e){return !!e&&typeof e.subscribe!="function"&&typeof e.then=="function"}var aB=chunkTKGT252T_js.b(()=>{});var uc,z0=chunkTKGT252T_js.b(()=>{KF();Ghe();Khe();Whe();sB();aB();qC();wg();rd();uc=function(e){if(e&&typeof e[co]=="function")return Yhe(e);if(t1(e))return KC(e);if(r1(e))return Hhe(e);if(e&&typeof e[Fa]=="function")return $he(e);var t=Sg(e)?"an invalid object":"'"+e+"'",r="You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(r)};});function n1(e,t,r,n,i){if(i===void 0&&(i=new qhe(e,r,n)),!i.closed)return t instanceof Ze?t.subscribe(i):uc(t)(i)}var oB=chunkTKGT252T_js.b(()=>{Vhe();z0();Lr();});function zhe(){for(var e=[],t=0;t{Xr();Ef();lo();iB();oB();Ag();Xhe={};Iut=function(){function e(t){this.resultSelector=t;}return e.prototype.call=function(t,r){return r.subscribe(new Out(t,this.resultSelector))},e}(),Out=function(e){et(t,e);function t(r,n){var i=e.call(this,r)||this;return i.resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return t.prototype._next=function(r){this.values.push(Xhe),this.observables.push(r);},t.prototype._complete=function(){var r=this.observables,n=r.length;if(n===0)this.destination.complete();else {this.active=n,this.toRespond=n;for(var i=0;i{Lr();Os();rd();});function ede(e,t){return new Ze(function(r){var n=new Dr;return n.add(t.schedule(function(){return e.then(function(i){n.add(t.schedule(function(){r.next(i),n.add(t.schedule(function(){return r.complete()}));}));},function(i){n.add(t.schedule(function(){return r.error(i)}));})})),n})}var tde=chunkTKGT252T_js.b(()=>{Lr();Os();});function rde(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ze(function(r){var n=new Dr,i;return n.add(function(){i&&typeof i.return=="function"&&i.return();}),n.add(t.schedule(function(){i=e[Fa](),n.add(t.schedule(function(){if(!r.closed){var s,a;try{var o=i.next();s=o.value,a=o.done;}catch(u){r.error(u);return}a?r.complete():(r.next(s),this.schedule());}}));})),n})}var nde=chunkTKGT252T_js.b(()=>{Lr();Os();wg();});function ide(e){return e&&typeof e[co]=="function"}var sde=chunkTKGT252T_js.b(()=>{rd();});function ade(e){return e&&typeof e[Fa]=="function"}var ode=chunkTKGT252T_js.b(()=>{wg();});function i1(e,t){if(e!=null){if(ide(e))return Qhe(e,t);if(r1(e))return ede(e,t);if(t1(e))return xg(e,t);if(ade(e)||typeof e=="string")return rde(e,t)}throw new TypeError((e!==null&&typeof e||e)+" is not observable")}var uB=chunkTKGT252T_js.b(()=>{Zhe();tde();YC();nde();sde();aB();sB();ode();});function ho(e,t){return t?i1(e,t):e instanceof Ze?e:new Ze(uc(e))}var sd=chunkTKGT252T_js.b(()=>{Lr();z0();uB();});function o1(e,t){if(!t.closed){if(e instanceof Ze)return e.subscribe(t);var r;try{r=uc(e)(t);}catch(n){t.error(n);}return r}}var s1,a1,lB=chunkTKGT252T_js.b(()=>{Xr();ka();Lr();z0();s1=function(e){et(t,e);function t(r){var n=e.call(this)||this;return n.parent=r,n}return t.prototype._next=function(r){this.parent.notifyNext(r);},t.prototype._error=function(r){this.parent.notifyError(r),this.unsubscribe();},t.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe();},t}(cn),a1=function(e){et(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.notifyNext=function(r){this.destination.next(r);},t.prototype.notifyError=function(r){this.destination.error(r);},t.prototype.notifyComplete=function(){this.destination.complete();},t}(cn);});function cB(e,t,r){return r===void 0&&(r=Number.POSITIVE_INFINITY),typeof t=="function"?function(n){return n.pipe(cB(function(i,s){return ho(e(i,s)).pipe(fo(function(a,o){return t(i,a,s,o)}))},r))}:(typeof t=="number"&&(r=t),function(n){return n.lift(new Dut(e,r))})}var Dut,Nut,ude=chunkTKGT252T_js.b(()=>{Xr();id();sd();lB();Dut=function(){function e(t,r){r===void 0&&(r=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=r;}return e.prototype.call=function(t,r){return r.subscribe(new Nut(t,this.project,this.concurrent))},e}(),Nut=function(e){et(t,e);function t(r,n,i){i===void 0&&(i=Number.POSITIVE_INFINITY);var s=e.call(this,r)||this;return s.project=n,s.concurrent=i,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return t.prototype._next=function(r){this.active0?this._next(r.shift()):this.active===0&&this.hasCompleted&&this.destination.complete();},t}(a1);});function u1(e){return e===void 0&&(e=Number.POSITIVE_INFINITY),cB(ac,e)}var pB=chunkTKGT252T_js.b(()=>{ude();Y0();});function lde(){return u1(1)}var cde=chunkTKGT252T_js.b(()=>{pB();});function pde(){for(var e=[],t=0;t{WC();cde();});function l1(e){return new Ze(function(t){var r;try{r=e();}catch(i){t.error(i);return}var n=r?ho(r):_g();return n.subscribe(t)})}var fB=chunkTKGT252T_js.b(()=>{Lr();sd();Tf();});function hde(){for(var e=[],t=0;t{Lr();lo();id();qC();sd();});function hB(e,t,r,n){return ic(r)&&(n=r,r=void 0),n?hB(e,t,r).pipe(fo(function(i){return qn(i)?n.apply(void 0,i):n(i)})):new Ze(function(i){function s(a){arguments.length>1?i.next(Array.prototype.slice.call(arguments)):i.next(a);}mde(e,t,s,i,r);})}function mde(e,t,r,n,i){var s;if(Lut(e)){var a=e;e.addEventListener(t,r,i),s=function(){return a.removeEventListener(t,r,i)};}else if(Mut(e)){var o=e;e.on(t,r),s=function(){return o.off(t,r)};}else if(Rut(e)){var u=e;e.addListener(t,r),s=function(){return u.removeListener(t,r)};}else if(e&&e.length)for(var l=0,c=e.length;l{Lr();lo();$0();id();});function dB(e,t,r){return r?dB(e,t).pipe(fo(function(n){return qn(n)?r.apply(void 0,n):r(n)})):new Ze(function(n){var i=function(){for(var a=[],o=0;o{Lr();lo();$0();id();});function Sde(e,t,r,n,i){var s,a;if(arguments.length==1){var o=e;a=o.initialState,t=o.condition,r=o.iterate,s=o.resultSelector||ac,i=o.scheduler;}else n===void 0||Ds(n)?(a=e,s=ac,i=n):(a=e,s=n);return new Ze(function(u){var l=a;if(i)return i.schedule(kut,0,{subscriber:u,iterate:r,condition:t,resultSelector:s,state:l});do{if(t){var c=void 0;try{c=t(l);}catch(h){u.error(h);return}if(!c){u.complete();break}}var p=void 0;try{p=s(l);}catch(h){u.error(h);return}if(u.next(p),u.closed)break;try{l=r(l);}catch(h){u.error(h);return}}while(!0)})}function kut(e){var t=e.subscriber,r=e.condition;if(!t.closed){if(e.needIterate)try{e.state=e.iterate(e.state);}catch(s){t.error(s);return}else e.needIterate=!0;if(r){var n=void 0;try{n=r(e.state);}catch(s){t.error(s);return}if(!n){t.complete();return}if(t.closed)return}var i;try{i=e.resultSelector(e.state);}catch(s){t.error(s);return}if(!t.closed&&(t.next(i),!t.closed))return this.schedule(e)}}var Tde=chunkTKGT252T_js.b(()=>{Lr();Y0();Ef();});function Ede(e,t,r){return t===void 0&&(t=el),r===void 0&&(r=el),l1(function(){return e()?t:r})}var bde=chunkTKGT252T_js.b(()=>{fB();Tf();});function J0(e){return !qn(e)&&e-parseFloat(e)+1>=0}var mB=chunkTKGT252T_js.b(()=>{lo();});function vde(e,t){return e===void 0&&(e=0),t===void 0&&(t=nd),(!J0(e)||e<0)&&(e=0),(!t||typeof t.schedule!="function")&&(t=nd),new Ze(function(r){return r.add(t.schedule(Fut,e,{subscriber:r,counter:0,period:e})),r})}function Fut(e){var t=e.subscriber,r=e.counter,n=e.period;t.next(r),this.schedule({subscriber:t,counter:r+1,period:n},n);}var _de=chunkTKGT252T_js.b(()=>{Lr();QC();mB();});function xde(){for(var e=[],t=0;t1&&typeof e[e.length-1]=="number"&&(r=e.pop())):typeof i=="number"&&(r=e.pop()),n===null&&e.length===1&&e[0]instanceof Ze?e[0]:u1(r)(tl(e,n))}var Ade=chunkTKGT252T_js.b(()=>{Lr();Ef();pB();Ag();});function Pde(){return yB}var yB,gB=chunkTKGT252T_js.b(()=>{Lr();tB();yB=new Ze(ZC);});function p1(){for(var e=[],t=0;t{Lr();sd();lo();Tf();});function wde(e,t){return t?new Ze(function(r){var n=Object.keys(e),i=new Dr;return i.add(t.schedule(But,0,{keys:n,index:0,subscriber:r,subscription:i,obj:e})),i}):new Ze(function(r){for(var n=Object.keys(e),i=0;i{Lr();Os();});function Ode(e,t){function r(){return !r.pred.apply(r.thisArg,arguments)}return r.pred=e,r.thisArg=t,r}var Dde=chunkTKGT252T_js.b(()=>{});function SB(e,t){return function(n){return n.lift(new jut(e,t))}}var jut,Uut,Nde=chunkTKGT252T_js.b(()=>{Xr();ka();jut=function(){function e(t,r){this.predicate=t,this.thisArg=r;}return e.prototype.call=function(t,r){return r.subscribe(new Uut(t,this.predicate,this.thisArg))},e}(),Uut=function(e){et(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.predicate=n,s.thisArg=i,s.count=0,s}return t.prototype._next=function(r){var n;try{n=this.predicate.call(this.thisArg,r,this.count++);}catch(i){this.destination.error(i);return}n&&this.destination.next(r);},t}(cn);});function Rde(e,t,r){return [SB(t,r)(new Ze(uc(e))),SB(Ode(t,r))(new Ze(uc(e)))]}var Mde=chunkTKGT252T_js.b(()=>{Dde();z0();Nde();Lr();});function Lde(){for(var e=[],t=0;t{Xr();lo();Ag();iB();oB();qut=function(){function e(){}return e.prototype.call=function(t,r){return r.subscribe(new Vut(t))},e}(),Vut=function(e){et(t,e);function t(r){var n=e.call(this,r)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return t.prototype._next=function(r){this.observables.push(r);},t.prototype._complete=function(){var r=this.observables,n=r.length;if(n===0)this.destination.complete();else {for(var i=0;i=t){n.complete();break}if(n.next(s++),n.closed)break}while(!0)})}function Hut(e){var t=e.start,r=e.index,n=e.count,i=e.subscriber;if(r>=n){i.complete();return}i.next(t),!i.closed&&(e.index=r+1,e.start=t+1,this.schedule(e));}var Bde=chunkTKGT252T_js.b(()=>{Lr();});function jde(e,t,r){e===void 0&&(e=0);var n=-1;return J0(t)?n=Number(t)<1&&1||Number(t):Ds(t)&&(r=t),Ds(r)||(r=nd),new Ze(function(i){var s=J0(e)?e:+e-r.now();return r.schedule(Gut,s,{index:0,period:n,subscriber:i})})}function Gut(e){var t=e.index,r=e.period,n=e.subscriber;if(n.next(t),!n.closed){if(r===-1)return n.complete();e.index=t+1,this.schedule(e,r);}}var Ude=chunkTKGT252T_js.b(()=>{Lr();QC();mB();Ef();});function qde(e,t){return new Ze(function(r){var n;try{n=e();}catch(o){r.error(o);return}var i;try{i=t(n);}catch(o){r.error(o);return}var s=i?ho(i):el,a=s.subscribe(r);return function(){a.unsubscribe(),n&&n.unsubscribe();}})}var Vde=chunkTKGT252T_js.b(()=>{Lr();sd();Tf();});function Hde(){for(var e=[],t=0;t{Xr();Ag();lo();ka();wg();lB();$ut=function(){function e(t){this.resultSelector=t;}return e.prototype.call=function(t,r){return r.subscribe(new Kut(t,this.resultSelector))},e}(),Kut=function(e){et(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.resultSelector=n,s.iterators=[],s.active=0,s.resultSelector=typeof n=="function"?n:void 0,s}return t.prototype._next=function(r){var n=this.iterators;qn(r)?n.push(new Wut(r)):typeof r[Fa]=="function"?n.push(new Yut(r[Fa]())):n.push(new Xut(this.destination,this,r));},t.prototype._complete=function(){var r=this.iterators,n=r.length;if(this.unsubscribe(),n===0){this.destination.complete();return}this.active=n;for(var i=0;ithis.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),Xut=function(e){et(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.parent=n,s.observable=i,s.stillUnsubscribed=!0,s.buffer=[],s.isComplete=!1,s}return t.prototype[Fa]=function(){return this},t.prototype.next=function(){var r=this.buffer;return r.length===0&&this.isComplete?{value:null,done:!0}:{value:r.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return this.buffer.length===0&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete();},t.prototype.notifyNext=function(r){this.buffer.push(r),this.parent.checkIterators();},t.prototype.subscribe=function(){return o1(this.observable,new s1(this))},t}(a1);});var $de={};chunkTKGT252T_js.d($de,{ArgumentOutOfRangeError:()=>Nhe,AsyncSubject:()=>bf,BehaviorSubject:()=>rhe,ConnectableObservable:()=>Qfe,EMPTY:()=>el,EmptyError:()=>Mhe,GroupedObservable:()=>ehe,NEVER:()=>yB,Notification:()=>Cg,NotificationKind:()=>zC,ObjectUnsubscribedError:()=>po,Observable:()=>Ze,ReplaySubject:()=>fhe,Scheduler:()=>X0,Subject:()=>oc,Subscriber:()=>cn,Subscription:()=>Dr,TimeoutError:()=>khe,UnsubscriptionError:()=>ed,VirtualAction:()=>eB,VirtualTimeScheduler:()=>whe,animationFrame:()=>Phe,animationFrameScheduler:()=>ZF,asap:()=>Ehe,asapScheduler:()=>JF,async:()=>nd,asyncScheduler:()=>QF,bindCallback:()=>rB,bindNodeCallback:()=>nB,combineLatest:()=>zhe,concat:()=>pde,config:()=>ds,defer:()=>l1,empty:()=>_g,forkJoin:()=>hde,from:()=>ho,fromEvent:()=>hB,fromEventPattern:()=>dB,generate:()=>Sde,identity:()=>ac,iif:()=>Ede,interval:()=>vde,isObservable:()=>Ohe,merge:()=>xde,never:()=>Pde,noop:()=>ZC,observable:()=>co,of:()=>Pg,onErrorResumeNext:()=>p1,pairs:()=>wde,partition:()=>Rde,pipe:()=>Yfe,queue:()=>$C,queueScheduler:()=>GF,race:()=>Lde,range:()=>Fde,scheduled:()=>i1,throwError:()=>XC,timer:()=>jde,using:()=>qde,zip:()=>Hde});var Kde=chunkTKGT252T_js.b(()=>{Lr();Zfe();the();rd();Eg();nhe();hhe();JC();bhe();QC();$F();Che();Ihe();HF();Os();ka();WF();UF();tB();Y0();Dhe();Rhe();Lhe();W0();BF();Fhe();Bhe();Uhe();Jhe();fde();fB();Tf();dde();sd();yde();gde();Tde();bde();_de();Ade();gB();WC();Cde();Ide();Mde();kde();Bde();YF();Ude();Vde();Gde();uB();Tf();gB();K0();});var Wde=chunkTKGT252T_js.c((ttn,Yde)=>{var TB=class{static get nonTTY(){return !0}render(){}end(){}};Yde.exports=TB;});var Jde=chunkTKGT252T_js.c((rtn,zde)=>{var zut=chunkF6FLWRPJ_js.m(),Xde=process.platform,au={tick:"\u2714",cross:"\u2716",star:"\u2605",square:"\u2587",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",play:"\u25B6",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",circleQuestionMark:"?\u20DD",bullet:"\u25CF",dot:"\u2024",line:"\u2500",ellipsis:"\u2026",pointer:"\u276F",pointerSmall:"\u203A",info:"\u2139",warning:"\u26A0",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",heart:"\u2665",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",questionMarkPrefix:"?\u20DD",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneSeventh:"\u2150",oneEighth:"\u215B",oneNinth:"\u2151",oneTenth:"\u2152",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E"},Jut={tick:"\u221A",cross:"\xD7",star:"*",square:"\u2588",squareSmall:"[ ]",squareSmallFilled:"[\u2588]",play:"\u25BA",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",circleQuestionMark:"(?)",bullet:"*",dot:".",line:"\u2500",ellipsis:"...",pointer:">",pointerSmall:"\xBB",info:"i",warning:"\u203C",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",heart:au.heart,arrowUp:au.arrowUp,arrowDown:au.arrowDown,arrowLeft:au.arrowLeft,arrowRight:au.arrowRight,radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",questionMarkPrefix:"\uFF1F",oneHalf:"1/2",oneThird:"1/3",oneQuarter:"1/4",oneFifth:"1/5",oneSixth:"1/6",oneSeventh:"1/7",oneEighth:"1/8",oneNinth:"1/9",oneTenth:"1/10",twoThirds:"2/3",twoFifths:"2/5",threeQuarters:"3/4",threeFifths:"3/5",threeEighths:"3/8",fourFifths:"4/5",fiveSixths:"5/6",fiveEighths:"5/8",sevenEighths:"7/8"};Xde==="linux"&&(au.questionMarkPrefix="?");var f1=Xde==="win32"?Jut:au,Qut=e=>(f1===au||Object.keys(au).forEach(t=>{au[t]!==f1[t]&&(e=e.replace(new RegExp(zut(au[t]),"g"),f1[t]));}),e);zde.exports=Object.assign(Qut,f1);});var Zde=chunkTKGT252T_js.c((ntn,Qde)=>{Qde.exports=(e,t)=>{for(let r of Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};});var tme=chunkTKGT252T_js.c((itn,eme)=>{var Zut=Zde();eme.exports=(e,t)=>{if(t===!0)throw new TypeError("The second argument is now an options object");if(typeof e!="function")throw new TypeError("Expected a function");t=t||{};let r,n=!1,i=e.displayName||e.name||"",s=function(){if(n){if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r}return n=!0,r=e.apply(this,arguments),e=null,r};return Zut(s,e),s};});var rme=chunkTKGT252T_js.c((stn,h1)=>{h1.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&h1.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&h1.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");});var ome=chunkTKGT252T_js.c((atn,Dg)=>{var Ln=global.process,ad=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};ad(Ln)?(nme=chunkTKGT252T_js.a("assert"),Ig=rme(),ime=/^win/i.test(Ln.platform),Q0=chunkTKGT252T_js.a("events"),typeof Q0!="function"&&(Q0=Q0.EventEmitter),Ln.__signal_exit_emitter__?ki=Ln.__signal_exit_emitter__:(ki=Ln.__signal_exit_emitter__=new Q0,ki.count=0,ki.emitted={}),ki.infinite||(ki.setMaxListeners(1/0),ki.infinite=!0),Dg.exports=function(e,t){if(!ad(global.process))return function(){};nme.equal(typeof e,"function","a callback must be provided for exit handler"),Og===!1&&EB();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){ki.removeListener(r,e),ki.listeners("exit").length===0&&ki.listeners("afterexit").length===0&&d1();};return ki.on(r,e),n},d1=function(){!Og||!ad(global.process)||(Og=!1,Ig.forEach(function(t){try{Ln.removeListener(t,m1[t]);}catch{}}),Ln.emit=y1,Ln.reallyExit=bB,ki.count-=1);},Dg.exports.unload=d1,od=function(t,r,n){ki.emitted[t]||(ki.emitted[t]=!0,ki.emit(t,r,n));},m1={},Ig.forEach(function(e){m1[e]=function(){if(ad(global.process)){var r=Ln.listeners(e);r.length===ki.count&&(d1(),od("exit",null,e),od("afterexit",null,e),ime&&e==="SIGHUP"&&(e="SIGINT"),Ln.kill(Ln.pid,e));}};}),Dg.exports.signals=function(){return Ig},Og=!1,EB=function(){Og||!ad(global.process)||(Og=!0,ki.count+=1,Ig=Ig.filter(function(t){try{return Ln.on(t,m1[t]),!0}catch{return !1}}),Ln.emit=ame,Ln.reallyExit=sme);},Dg.exports.load=EB,bB=Ln.reallyExit,sme=function(t){ad(global.process)&&(Ln.exitCode=t||0,od("exit",Ln.exitCode,null),od("afterexit",Ln.exitCode,null),bB.call(Ln,Ln.exitCode));},y1=Ln.emit,ame=function(t,r){if(t==="exit"&&ad(global.process)){r!==void 0&&(Ln.exitCode=r);var n=y1.apply(this,arguments);return od("exit",Ln.exitCode,null),od("afterexit",Ln.exitCode,null),n}else return y1.apply(this,arguments)}):Dg.exports=function(){return function(){}};var nme,Ig,ime,Q0,ki,d1,od,m1,Og,EB,bB,sme,y1,ame;});var lme=chunkTKGT252T_js.c((otn,ume)=>{var elt=tme(),tlt=ome();ume.exports=elt(()=>{tlt(()=>{process.stderr.write("\x1B[?25h");},{alwaysLast:!0});});});var vB=chunkTKGT252T_js.c(Ng=>{var rlt=lme(),g1=!1;Ng.show=e=>{let t=e||process.stderr;t.isTTY&&(g1=!1,t.write("\x1B[?25h"));};Ng.hide=e=>{let t=e||process.stderr;t.isTTY&&(rlt(),g1=!0,t.write("\x1B[?25l"));};Ng.toggle=(e,t)=>{e!==void 0&&(g1=e),g1?Ng.show(t):Ng.hide(t);};});var pme=chunkTKGT252T_js.c((ltn,cme)=>{cme.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};});var _B=chunkTKGT252T_js.c((ctn,mme)=>{var ud=pme(),dme={};for(S1 in ud)ud.hasOwnProperty(S1)&&(dme[ud[S1]]=S1);var S1,ot=mme.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(Ns in ot)if(ot.hasOwnProperty(Ns)){if(!("channels"in ot[Ns]))throw new Error("missing channels property: "+Ns);if(!("labels"in ot[Ns]))throw new Error("missing channel labels property: "+Ns);if(ot[Ns].labels.length!==ot[Ns].channels)throw new Error("channel and label counts mismatch: "+Ns);fme=ot[Ns].channels,hme=ot[Ns].labels,delete ot[Ns].channels,delete ot[Ns].labels,Object.defineProperty(ot[Ns],"channels",{value:fme}),Object.defineProperty(ot[Ns],"labels",{value:hme});}var fme,hme,Ns;ot.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),a=s-i,o,u,l;return s===i?o=0:t===s?o=(r-n)/a:r===s?o=2+(n-t)/a:n===s&&(o=4+(t-r)/a),o=Math.min(o*60,360),o<0&&(o+=360),l=(i+s)/2,s===i?u=0:l<=.5?u=a/(s+i):u=a/(2-s-i),[o,u*100,l*100]};ot.rgb.hsv=function(e){var t,r,n,i,s,a=e[0]/255,o=e[1]/255,u=e[2]/255,l=Math.max(a,o,u),c=l-Math.min(a,o,u),p=function(h){return (l-h)/6/c+1/2};return c===0?i=s=0:(s=c/l,t=p(a),r=p(o),n=p(u),a===l?i=n-r:o===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,l*100]};ot.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=ot.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};ot.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,s,a,o;return o=Math.min(1-t,1-r,1-n),i=(1-t-o)/(1-o)||0,s=(1-r-o)/(1-o)||0,a=(1-n-o)/(1-o)||0,[i*100,s*100,a*100,o*100]};function nlt(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}ot.rgb.keyword=function(e){var t=dme[e];if(t)return t;var r=1/0,n;for(var i in ud)if(ud.hasOwnProperty(i)){var s=ud[i],a=nlt(e,s);a.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,a=t*.0193+r*.1192+n*.9505;return [i*100,s*100,a*100]};ot.rgb.lab=function(e){var t=ot.rgb.xyz(e),r=t[0],n=t[1],i=t[2],s,a,o;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,a=500*(r-n),o=200*(n-i),[s,a,o]};ot.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,a,o,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,o=[0,0,0];for(var l=0;l<3;l++)a=t+1/3*-(l-1),a<0&&a++,a>1&&a--,6*a<1?u=i+(s-i)*6*a:2*a<1?u=s:3*a<2?u=i+(s-i)*(2/3-a)*6:u=i,o[l]=u*255;return o};ot.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01),a,o;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r),[t,a*100,o*100]};ot.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),a=255*n*(1-r),o=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return [n,u,a];case 1:return [o,n,a];case 2:return [a,n,u];case 3:return [a,o,n];case 4:return [u,a,n];case 5:return [n,a,o]}};ot.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,a,o;return o=(2-r)*n,s=(2-r)*i,a=r*i,a/=s<=1?s:2-s,a=a||0,o/=2,[t,a*100,o*100]};ot.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,a,o,u;i>1&&(r/=i,n/=i),s=Math.floor(6*t),a=1-n,o=6*t-s,s&1&&(o=1-o),u=r+o*(a-r);var l,c,p;switch(s){default:case 6:case 0:l=a,c=u,p=r;break;case 1:l=u,c=a,p=r;break;case 2:l=r,c=a,p=u;break;case 3:l=r,c=u,p=a;break;case 4:l=u,c=r,p=a;break;case 5:l=a,c=r,p=u;break}return [l*255,c*255,p*255]};ot.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s,a,o;return s=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),[s*255,a*255,o*255]};ot.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,a;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,a=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),a=Math.min(Math.max(0,a),1),[i*255,s*255,a*255]};ot.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,a;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(t-r),a=200*(r-n),[i,s,a]};ot.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,s,a;s=(t+16)/116,i=r/500+s,a=s-n/200;var o=Math.pow(s,3),u=Math.pow(i,3),l=Math.pow(a,3);return s=o>.008856?o:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,a=l>.008856?l:(a-16/116)/7.787,i*=95.047,s*=100,a*=108.883,[i,s,a]};ot.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,s,a;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),a=Math.sqrt(r*r+n*n),[t,a,s]};ot.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,a;return a=n/360*2*Math.PI,i=r*Math.cos(a),s=r*Math.sin(a),[t,i,s]};ot.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:ot.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(s+=60),s};ot.hsv.ansi16=function(e){return ot.rgb.ansi16(ot.hsv.rgb(e),e[2])};ot.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};ot.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return [n,i,s]};ot.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return [t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,s=r%6/5*255;return [n,i,s]};ot.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return "000000".substring(r.length)+r};ot.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return [0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(o){return o+o}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,a=n&255;return [i,s,a]};ot.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),a=i-s,o,u;return a<1?o=s/(1-a):o=0,a<=0?u=0:i===t?u=(r-n)/a%6:i===r?u=2+(n-t)/a:u=4+(t-r)/a+4,u/=6,u%=1,[u*360,a*100,o*100]};ot.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};ot.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};ot.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return [n*255,n*255,n*255];var i=[0,0,0],s=t%1*6,a=s%1,o=1-a,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o;}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};ot.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};ot.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};ot.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return [e[0],(n-t)*100,(1-n)*100]};ot.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};ot.apple.rgb=function(e){return [e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};ot.rgb.apple=function(e){return [e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};ot.gray.rgb=function(e){return [e[0]/100*255,e[0]/100*255,e[0]/100*255]};ot.gray.hsl=ot.gray.hsv=function(e){return [0,0,e[0]]};ot.gray.hwb=function(e){return [0,100,e[0]]};ot.gray.cmyk=function(e){return [0,0,0,e[0]]};ot.gray.lab=function(e){return [e[0],0,0]};ot.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return "000000".substring(n.length)+n};ot.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return [t/255*100]};});var gme=chunkTKGT252T_js.c((ptn,yme)=>{var T1=_B();function ilt(){for(var e={},t=Object.keys(T1),r=t.length,n=0;n{var xB=_B(),ult=gme(),Rg={},llt=Object.keys(xB);function clt(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return "conversion"in e&&(t.conversion=e.conversion),t}function plt(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,s=0;s{var Mg=Tme(),E1=(e,t)=>function(){return `\x1B[${e.apply(Mg,arguments)+t}m`},b1=(e,t)=>function(){let r=e.apply(Mg,arguments);return `\x1B[${38+t};5;${r}m`},v1=(e,t)=>function(){let r=e.apply(Mg,arguments);return `\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function flt(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(let i of Object.keys(t)){let s=t[i];for(let a of Object.keys(s)){let o=s[a];t[a]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},s[a]=t[a],e.set(o[0],o[1]);}Object.defineProperty(t,i,{value:s,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1});}let r=i=>i,n=(i,s,a)=>[i,s,a];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:E1(r,0)},t.color.ansi256={ansi256:b1(r,0)},t.color.ansi16m={rgb:v1(n,0)},t.bgColor.ansi={ansi:E1(r,10)},t.bgColor.ansi256={ansi256:b1(r,10)},t.bgColor.ansi16m={rgb:v1(n,10)};for(let i of Object.keys(Mg)){if(typeof Mg[i]!="object")continue;let s=Mg[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(t.color.ansi[i]=E1(s.ansi16,0),t.bgColor.ansi[i]=E1(s.ansi16,10)),"ansi256"in s&&(t.color.ansi256[i]=b1(s.ansi256,0),t.bgColor.ansi256[i]=b1(s.ansi256,10)),"rgb"in s&&(t.color.ansi16m[i]=v1(s.rgb,0),t.bgColor.ansi16m[i]=v1(s.rgb,10));}return t}Object.defineProperty(Eme,"exports",{enumerable:!0,get:flt});});var _me=chunkTKGT252T_js.c((dtn,vme)=>{vme.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n{var hlt=chunkTKGT252T_js.a("os"),ou=_me(),ms=process.env,Lg;ou("no-color")||ou("no-colors")||ou("color=false")?Lg=!1:(ou("color")||ou("colors")||ou("color=true")||ou("color=always"))&&(Lg=!0);"FORCE_COLOR"in ms&&(Lg=ms.FORCE_COLOR.length===0||parseInt(ms.FORCE_COLOR,10)!==0);function dlt(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function mlt(e){if(Lg===!1)return 0;if(ou("color=16m")||ou("color=full")||ou("color=truecolor"))return 3;if(ou("color=256"))return 2;if(e&&!e.isTTY&&Lg!==!0)return 0;let t=Lg?1:0;if(process.platform==="win32"){let r=hlt.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in ms)return ["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in ms)||ms.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in ms)return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ms.TEAMCITY_VERSION)?1:0;if(ms.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ms){let r=parseInt((ms.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ms.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return /-256(color)?$/i.test(ms.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ms.TERM)||"COLORTERM"in ms?1:(ms.TERM==="dumb",t)}function AB(e){let t=mlt(e);return dlt(t)}xme.exports={supportsColor:AB,stdout:AB(process.stdout),stderr:AB(process.stderr)};});var Ome=chunkTKGT252T_js.c((ytn,Ime)=>{var ylt=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Pme=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,glt=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Slt=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Tlt=new Map([["n",` `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function wme(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):Tlt.get(e)||e}function Elt(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(glt))r.push(i[2].replace(Slt,(a,o,u)=>o?wme(o):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function blt(e){Pme.lastIndex=0;let t=[],r;for(;(r=Pme.exec(e))!==null;){let n=r[1];if(r[2]){let i=Elt(n,r[2]);t.push([n].concat(i));}else t.push([n]);}return t}function Cme(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i];}return n}Ime.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(ylt,(s,a,o,u,l,c)=>{if(a)i.push(wme(a));else if(u){let p=i.join("");i=[],n.push(r.length===0?p:Cme(e,r)(p)),r.push({inverse:o,styles:blt(u)});}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Cme(e,r)(i.join(""))),i=[],r.pop();}else i.push(c);}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")};});var Lme=chunkTKGT252T_js.c((gtn,eb)=>{var CB=chunkF6FLWRPJ_js.m(),yi=bme(),PB=Ame().stdout,vlt=Ome(),Nme=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Rme=["ansi","ansi","ansi256","ansi16m"],Mme=new Set(["gray"]),kg=Object.create(null);function Dme(e,t){t=t||{};let r=PB?PB.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0;}function Z0(e){if(!this||!(this instanceof Z0)||this.template){let t={};return Dme(t,e),t.template=function(){let r=[].slice.call(arguments);return Alt.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,Z0.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=Z0,t.template}Dme(this,e);}Nme&&(yi.blue.open="\x1B[94m");for(let e of Object.keys(yi))yi[e].closeRe=new RegExp(CB(yi[e].close),"g"),kg[e]={get(){let t=yi[e];return _1.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};kg.visible={get(){return _1.call(this,this._styles||[],!0,"visible")}};yi.color.closeRe=new RegExp(CB(yi.color.close),"g");for(let e of Object.keys(yi.color.ansi))Mme.has(e)||(kg[e]={get(){let t=this.level;return function(){let n={open:yi.color[Rme[t]][e].apply(null,arguments),close:yi.color.close,closeRe:yi.color.closeRe};return _1.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});yi.bgColor.closeRe=new RegExp(CB(yi.bgColor.close),"g");for(let e of Object.keys(yi.bgColor.ansi)){if(Mme.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);kg[t]={get(){let r=this.level;return function(){let i={open:yi.bgColor[Rme[r]][e].apply(null,arguments),close:yi.bgColor.close,closeRe:yi.bgColor.closeRe};return _1.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}};}var _lt=Object.defineProperties(()=>{},kg);function _1(e,t,r){let n=function(){return xlt.apply(n,arguments)};n._styles=e,n._empty=t;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s;}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s;}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=_lt,n}function xlt(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return "";if(t>1)for(let i=1;i{var kme=6e4;Fme.exports=function(t){var r=new Date(t.getTime()),n=r.getTimezoneOffset();r.setSeconds(0,0);var i=r.getTime()%kme;return n*kme+i};});var wB=chunkTKGT252T_js.c((Ttn,jme)=>{function Plt(e){return e instanceof Date}jme.exports=Plt;});var vf=chunkTKGT252T_js.c((Etn,qme)=>{var IB=Bme(),Clt=wB(),OB=36e5,DB=6e4,wlt=2,Ilt=/[T ]/,Olt=/:/,Dlt=/^(\d{2})$/,Nlt=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],Rlt=/^(\d{4})/,Mlt=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],Llt=/^-(\d{2})$/,klt=/^-?(\d{3})$/,Flt=/^-?(\d{2})-?(\d{2})$/,Blt=/^-?W(\d{2})$/,jlt=/^-?W(\d{2})-?(\d{1})$/,Ult=/^(\d{2}([.,]\d*)?)$/,qlt=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,Vlt=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,Hlt=/([Z+-].*)$/,Glt=/^(Z)$/,$lt=/^([+-])(\d{2})$/,Klt=/^([+-])(\d{2}):?(\d{2})$/;function Ylt(e,t){if(Clt(e))return new Date(e.getTime());if(typeof e!="string")return new Date(e);var r=t||{},n=r.additionalDigits;n==null?n=wlt:n=Number(n);var i=Wlt(e),s=Xlt(i.date,n),a=s.year,o=s.restDateString,u=zlt(o,a);if(u){var l=u.getTime(),c=0,p;if(i.time&&(c=Jlt(i.time)),i.timezone)p=Qlt(i.timezone)*DB;else {var h=l+c,f=new Date(h);p=IB(f);var d=new Date(h);d.setDate(f.getDate()+1);var m=IB(d)-IB(f);m>0&&(p+=m);}return new Date(l+c+p)}else return new Date(e)}function Wlt(e){var t={},r=e.split(Ilt),n;if(Olt.test(r[0])?(t.date=null,n=r[0]):(t.date=r[0],n=r[1]),n){var i=Hlt.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n;}return t}function Xlt(e,t){var r=Nlt[t],n=Mlt[t],i;if(i=Rlt.exec(e)||n.exec(e),i){var s=i[1];return {year:parseInt(s,10),restDateString:e.slice(s.length)}}if(i=Dlt.exec(e)||r.exec(e),i){var a=i[1];return {year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}return {year:null}}function zlt(e,t){if(t===null)return null;var r,n,i,s;if(e.length===0)return n=new Date(0),n.setUTCFullYear(t),n;if(r=Llt.exec(e),r)return n=new Date(0),i=parseInt(r[1],10)-1,n.setUTCFullYear(t,i),n;if(r=klt.exec(e),r){n=new Date(0);var a=parseInt(r[1],10);return n.setUTCFullYear(t,0,a),n}if(r=Flt.exec(e),r){n=new Date(0),i=parseInt(r[1],10)-1;var o=parseInt(r[2],10);return n.setUTCFullYear(t,i,o),n}if(r=Blt.exec(e),r)return s=parseInt(r[1],10)-1,Ume(t,s);if(r=jlt.exec(e),r){s=parseInt(r[1],10)-1;var u=parseInt(r[2],10)-1;return Ume(t,s,u)}return null}function Jlt(e){var t,r,n;if(t=Ult.exec(e),t)return r=parseFloat(t[1].replace(",",".")),r%24*OB;if(t=qlt.exec(e),t)return r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")),r%24*OB+n*DB;if(t=Vlt.exec(e),t){r=parseInt(t[1],10),n=parseInt(t[2],10);var i=parseFloat(t[3].replace(",","."));return r%24*OB+n*DB+i*1e3}return null}function Qlt(e){var t,r;return t=Glt.exec(e),t?0:(t=$lt.exec(e),t?(r=parseInt(t[2],10)*60,t[1]==="+"?-r:r):(t=Klt.exec(e),t?(r=parseInt(t[2],10)*60+parseInt(t[3],10),t[1]==="+"?-r:r):0))}function Ume(e,t,r){t=t||0,r=r||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,s=t*7+r+1-i;return n.setUTCDate(n.getUTCDate()+s),n}qme.exports=Ylt;});var Hme=chunkTKGT252T_js.c((btn,Vme)=>{var Zlt=vf();function ect(e){var t=Zlt(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}Vme.exports=ect;});var $me=chunkTKGT252T_js.c((vtn,Gme)=>{var tct=vf();function rct(e){var t=tct(e);return t.setHours(0,0,0,0),t}Gme.exports=rct;});var Xme=chunkTKGT252T_js.c((_tn,Wme)=>{var Kme=$me(),Yme=6e4,nct=864e5;function ict(e,t){var r=Kme(e),n=Kme(t),i=r.getTime()-r.getTimezoneOffset()*Yme,s=n.getTime()-n.getTimezoneOffset()*Yme;return Math.round((i-s)/nct)}Wme.exports=ict;});var Jme=chunkTKGT252T_js.c((xtn,zme)=>{var sct=vf(),act=Hme(),oct=Xme();function uct(e){var t=sct(e),r=oct(t,act(t)),n=r+1;return n}zme.exports=uct;});var Zme=chunkTKGT252T_js.c((Atn,Qme)=>{var lct=vf();function cct(e,t){var r=t&&Number(t.weekStartsOn)||0,n=lct(e),i=n.getDay(),s=(i{var pct=Zme();function fct(e){return pct(e,{weekStartsOn:1})}eye.exports=fct;});var NB=chunkTKGT252T_js.c((Ctn,rye)=>{var hct=vf(),tye=x1();function dct(e){var t=hct(e),r=t.getFullYear(),n=new Date(0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);var i=tye(n),s=new Date(0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);var a=tye(s);return t.getTime()>=i.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}rye.exports=dct;});var iye=chunkTKGT252T_js.c((wtn,nye)=>{var mct=NB(),yct=x1();function gct(e){var t=mct(e),r=new Date(0);r.setFullYear(t,0,4),r.setHours(0,0,0,0);var n=yct(r);return n}nye.exports=gct;});var aye=chunkTKGT252T_js.c((Itn,sye)=>{var Sct=vf(),Tct=x1(),Ect=iye(),bct=6048e5;function vct(e){var t=Sct(e),r=Tct(t).getTime()-Ect(t).getTime();return Math.round(r/bct)+1}sye.exports=vct;});var uye=chunkTKGT252T_js.c((Otn,oye)=>{var _ct=wB();function xct(e){if(_ct(e))return !isNaN(e);throw new TypeError(toString.call(e)+" is not an instance of Date")}oye.exports=xct;});var cye=chunkTKGT252T_js.c((Dtn,lye)=>{function Act(){var e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function t(r,n,i){i=i||{};var s;return typeof e[r]=="string"?s=e[r]:n===1?s=e[r].one:s=e[r].other.replace("{{count}}",n),i.addSuffix?i.comparison>0?"in "+s:s+" ago":s}return {localize:t}}lye.exports=Act;});var fye=chunkTKGT252T_js.c((Ntn,pye)=>{var Pct=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];function Cct(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);var n=Pct.concat(t).sort().reverse(),i=new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+n.join("|")+"|.)","g");return i}pye.exports=Cct;});var dye=chunkTKGT252T_js.c((Rtn,hye)=>{var wct=fye();function Ict(){var e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],t=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Su","Mo","Tu","We","Th","Fr","Sa"],n=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s=["AM","PM"],a=["am","pm"],o=["a.m.","p.m."],u={MMM:function(c){return e[c.getMonth()]},MMMM:function(c){return t[c.getMonth()]},dd:function(c){return r[c.getDay()]},ddd:function(c){return n[c.getDay()]},dddd:function(c){return i[c.getDay()]},A:function(c){return c.getHours()/12>=1?s[1]:s[0]},a:function(c){return c.getHours()/12>=1?a[1]:a[0]},aa:function(c){return c.getHours()/12>=1?o[1]:o[0]}},l=["M","D","DDD","d","Q","W"];return l.forEach(function(c){u[c+"o"]=function(p,h){return Oct(h[c](p))};}),{formatters:u,formattingTokensRegExp:wct(u)}}function Oct(e){var t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"}hye.exports=Ict;});var yye=chunkTKGT252T_js.c((Mtn,mye)=>{var Dct=cye(),Nct=dye();mye.exports={distanceInWords:Dct(),format:Nct()};});var _ye=chunkTKGT252T_js.c((Ltn,vye)=>{var gye=Jme(),Sye=aye(),Tye=NB(),Rct=vf(),Mct=uye(),Eye=yye();function Lct(e,t,r){var n=t?String(t):"YYYY-MM-DDTHH:mm:ss.SSSZ",i=r||{},s=i.locale,a=Eye.format.formatters,o=Eye.format.formattingTokensRegExp;s&&s.format&&s.format.formatters&&(a=s.format.formatters,s.format.formattingTokensRegExp&&(o=s.format.formattingTokensRegExp));var u=Rct(e);if(!Mct(u))return "Invalid Date";var l=kct(n,a,o);return l(u)}var RB={M:function(e){return e.getMonth()+1},MM:function(e){return ha(e.getMonth()+1,2)},Q:function(e){return Math.ceil((e.getMonth()+1)/3)},D:function(e){return e.getDate()},DD:function(e){return ha(e.getDate(),2)},DDD:function(e){return gye(e)},DDDD:function(e){return ha(gye(e),3)},d:function(e){return e.getDay()},E:function(e){return e.getDay()||7},W:function(e){return Sye(e)},WW:function(e){return ha(Sye(e),2)},YY:function(e){return ha(e.getFullYear(),4).substr(2)},YYYY:function(e){return ha(e.getFullYear(),4)},GG:function(e){return String(Tye(e)).substr(2)},GGGG:function(e){return Tye(e)},H:function(e){return e.getHours()},HH:function(e){return ha(e.getHours(),2)},h:function(e){var t=e.getHours();return t===0?12:t>12?t%12:t},hh:function(e){return ha(RB.h(e),2)},m:function(e){return e.getMinutes()},mm:function(e){return ha(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return ha(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return ha(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return ha(e.getMilliseconds(),3)},Z:function(e){return bye(e.getTimezoneOffset(),":")},ZZ:function(e){return bye(e.getTimezoneOffset())},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()}};function kct(e,t,r){var n=e.match(r),i=n.length,s,a;for(s=0;s0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),s=n%60;return r+ha(i,2)+t+ha(s,2)}function ha(e,t){for(var r=Math.abs(e).toString();r.length{var Bct=Lme(),jct=_ye();xye.log=(e,t)=>{if(e.dateFormat===!1){console.log(t);return}let r=jct(new Date,e.dateFormat);console.log(Bct.dim(`[${r}]`)+` ${t}`);};});var Oye=chunkTKGT252T_js.c((Ftn,Iye)=>{var Pye=Jde(),Cye=vB(),Uct=Aye(),qct=(e,t,r)=>{let n=Uct.log.bind(void 0,r);if(t.type==="STATE"){let i=e.isPending()?"started":e.state;n(`${e.title} [${i}]`),e.isSkipped()&&e.output&&n(`${Pye.arrowRight} ${e.output}`);}else t.type==="DATA"?n(`${Pye.arrowRight} ${t.data}`):t.type==="TITLE"&&n(`${e.title} [title changed]`);},wye=(e,t)=>{for(let r of e)r.subscribe(n=>{if(n.type==="SUBTASKS"){wye(r.subtasks,t);return}qct(r,n,t);},n=>{console.log(n);});},MB=class{constructor(t,r){this._tasks=t,this._options=Object.assign({dateFormat:"HH:mm:ss"},r);}static get nonTTY(){return !0}render(){Cye.hide(),wye(this._tasks,this._options);}end(){Cye.show();}};Iye.exports=MB;});var Rye=chunkTKGT252T_js.c((Btn,Nye)=>{var Sr=Nye.exports,tn="\x1B[",P1="\x1B]",tb="\x07",A1=";",Dye=process.env.TERM_PROGRAM==="Apple_Terminal";Sr.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?tn+(e+1)+"G":tn+(t+1)+";"+(e+1)+"H"};Sr.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=tn+-e+"D":e>0&&(r+=tn+e+"C"),t<0?r+=tn+-t+"A":t>0&&(r+=tn+t+"B"),r};Sr.cursorUp=e=>tn+(typeof e=="number"?e:1)+"A";Sr.cursorDown=e=>tn+(typeof e=="number"?e:1)+"B";Sr.cursorForward=e=>tn+(typeof e=="number"?e:1)+"C";Sr.cursorBackward=e=>tn+(typeof e=="number"?e:1)+"D";Sr.cursorLeft=tn+"G";Sr.cursorSavePosition=tn+(Dye?"7":"s");Sr.cursorRestorePosition=tn+(Dye?"8":"u");Sr.cursorGetPosition=tn+"6n";Sr.cursorNextLine=tn+"E";Sr.cursorPrevLine=tn+"F";Sr.cursorHide=tn+"?25l";Sr.cursorShow=tn+"?25h";Sr.eraseLines=e=>{let t="";for(let r=0;r[P1,"8",A1,A1,t,tb,e,P1,"8",A1,A1,tb].join("");Sr.image=(e,t)=>{t=t||{};let r=P1+"1337;File=inline=1";return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+tb};Sr.iTerm={};Sr.iTerm.setCwd=e=>P1+"50;CurrentDir="+(e||process.cwd())+tb;});var Lye=chunkTKGT252T_js.c((jtn,Mye)=>{Mye.exports=()=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");return new RegExp(e,"g")};});var LB=chunkTKGT252T_js.c((Utn,kye)=>{var Vct=Lye();kye.exports=e=>typeof e=="string"?e.replace(Vct(),""):e;});var Bye=chunkTKGT252T_js.c((qtn,Fye)=>{Fye.exports=e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);});var Uye=chunkTKGT252T_js.c((Vtn,jye)=>{var Hct=LB(),Gct=Bye();jye.exports=e=>{if(typeof e!="string"||e.length===0)return 0;e=Hct(e);let t=0;for(let r=0;r=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=Gct(n)?2:1);}return t};});var Hye=chunkTKGT252T_js.c((Htn,Vye)=>{var C1=Uye(),$ct=LB(),FB=new Set(["\x1B","\x9B"]),Kct=39,Yct=new Map([[0,0],[1,22],[2,22],[3,23],[4,24],[7,27],[8,28],[9,29],[30,39],[31,39],[32,39],[33,39],[34,39],[35,39],[36,39],[37,39],[90,39],[40,49],[41,49],[42,49],[43,49],[44,49],[45,49],[46,49],[47,49]]),qye=e=>`${FB.values().next().value}[${e}m`,Wct=e=>e.split(" ").map(t=>C1(t)),kB=(e,t,r)=>{let n=Array.from(t),i=!1,s=C1($ct(e[e.length-1]));for(let a of n.entries()){let o=a[0],u=a[1],l=C1(u);if(s+l<=r?e[e.length-1]+=u:(e.push(u),s=0),FB.has(u))i=!0;else if(i&&u==="m"){i=!1;continue}i||(s+=l,s===r&&o0&&e.length>1&&(e[e.length-2]+=e.pop());},Xct=(e,t,r)=>{let n=r||{};if(e.trim()==="")return n.trim===!1?e:e.trim();let i="",s="",a,o=Wct(e),u=e.split(" "),l=[""];for(let c of Array.from(u).entries()){let p=c[0],h=c[1];l[l.length-1]=n.trim===!1?l[l.length-1]:l[l.length-1].trim();let f=C1(l[l.length-1]);if((f||h==="")&&(f===t&&n.wordWrap===!1&&(l.push(""),f=0),l[l.length-1]+=" ",f++),o[p]>t&&n.hard){f&&l.push(""),kB(l,h,t);continue}if(f+o[p]>t&&f>0){if(n.wordWrap===!1&&ft&&n.wordWrap===!1){kB(l,h,t);continue}l[l.length-1]+=h;}i=l.map(c=>n.trim===!1?c:c.trim()).join(` `);for(let c of Array.from(i).entries()){let p=c[0],h=c[1];if(s+=h,FB.has(h)){let d=parseFloat(/\d[^m]*/.exec(i.slice(p,p+4)));a=d===Kct?null:d;}let f=Yct.get(Number(a));a&&f&&(i[p+1]===` `?s+=qye(f):h===` `&&(s+=qye(a)));}return s};Vye.exports=(e,t,r)=>String(e).normalize().split(` `).map(n=>Xct(n,t,r)).join(` `);});var Kye=chunkTKGT252T_js.c((Gtn,w1)=>{var Gye=Rye(),$ye=vB(),zct=Hye(),Jct=e=>{let t=e.columns;return t?process.platform==="win32"?t-1:t:80},BB=(e,t)=>{t=Object.assign({showCursor:!1},t);let r=0,n=function(){t.showCursor||$ye.hide();let i=[].join.call(arguments," ")+` `;i=zct(i,Jct(e),{trim:!1,hard:!0,wordWrap:!1}),e.write(Gye.eraseLines(r)+i),r=i.split(` `).length;};return n.clear=()=>{e.write(Gye.eraseLines(r)),r=0;},n.done=()=>{r=0,t.showCursor||$ye.show();},n};w1.exports=BB(process.stdout);w1.exports.stderr=BB(process.stderr);w1.exports.create=BB;});var Wye=chunkTKGT252T_js.c(($tn,Yye)=>{function Qct(){var e={modifiers:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},colors:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39]},bgColors:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49]}};return e.colors.grey=e.colors.gray,Object.keys(e).forEach(function(t){var r=e[t];Object.keys(r).forEach(function(n){var i=r[n];e[n]=r[n]={open:"\x1B["+i[0]+"m",close:"\x1B["+i[1]+"m"};}),Object.defineProperty(e,t,{value:r,enumerable:!1});}),e}Object.defineProperty(Yye,"exports",{enumerable:!0,get:Qct});});var I1=chunkTKGT252T_js.c((Ktn,Xye)=>{Xye.exports=function(){return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g};});var jB=chunkTKGT252T_js.c((Ytn,zye)=>{var Zct=I1()();zye.exports=function(e){return typeof e=="string"?e.replace(Zct,""):e};});var Zye=chunkTKGT252T_js.c((Wtn,Qye)=>{var ept=I1(),Jye=new RegExp(ept().source);Qye.exports=Jye.test.bind(Jye);});var nge=chunkTKGT252T_js.c((Xtn,rge)=>{var tge=process.argv,ege=tge.indexOf("--"),ld=function(e){e="--"+e;var t=tge.indexOf(e);return t!==-1&&(ege!==-1?t{var tpt=chunkF6FLWRPJ_js.m(),lc=Wye(),rpt=jB(),npt=Zye(),ige=nge(),sge=Object.defineProperties,age=process.platform==="win32"&&!/^xterm/i.test(process.env.TERM);function oge(e){this.enabled=!e||e.enabled===void 0?ige:e.enabled;}age&&(lc.blue.open="\x1B[94m");var uge=function(){var e={};return Object.keys(lc).forEach(function(t){lc[t].closeRe=new RegExp(tpt(lc[t].close),"g"),e[t]={get:function(){return lge.call(this,this._styles.concat(t))}};}),e}(),ipt=sge(function(){},uge);function lge(e){var t=function(){return spt.apply(t,arguments)};return t._styles=e,t.enabled=this.enabled,t.__proto__=ipt,t}function spt(){var e=arguments,t=e.length,r=t!==0&&String(arguments[0]);if(t>1)for(var n=1;n{var cge=Object.getOwnPropertySymbols,opt=Object.prototype.hasOwnProperty,upt=Object.prototype.propertyIsEnumerable;function lpt(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function cpt(){try{if(!Object.assign)return !1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return !1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(n.join("")!=="0123456789")return !1;var i={};return "abcdefghijklmnopqrst".split("").forEach(function(s){i[s]=s;}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return !1}}pge.exports=cpt()?Object.assign:function(e,t){for(var r,n=lpt(e),i,s=1;s{var ppt=fge(),fpt=chunkF6FLWRPJ_js.m(),hge=process.platform,uu={tick:"\u2714",cross:"\u2716",star:"\u2605",square:"\u2587",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",play:"\u25B6",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",circleQuestionMark:"?\u20DD",bullet:"\u25CF",dot:"\u2024",line:"\u2500",ellipsis:"\u2026",pointer:"\u276F",pointerSmall:"\u203A",info:"\u2139",warning:"\u26A0",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",heart:"\u2665",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",questionMarkPrefix:"?\u20DD",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneSeventh:"\u2150",oneEighth:"\u215B",oneNinth:"\u2151",oneTenth:"\u2152",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E"},hpt={tick:"\u221A",cross:"\xD7",star:"*",square:"\u2588",squareSmall:"[ ]",squareSmallFilled:"[\u2588]",play:"\u25BA",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",circleQuestionMark:"(?)",bullet:"*",dot:".",line:"\u2500",ellipsis:"...",pointer:">",pointerSmall:"\xBB",info:"i",warning:"\u203C",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",heart:uu.heart,arrowUp:uu.arrowUp,arrowDown:uu.arrowDown,arrowLeft:uu.arrowLeft,arrowRight:uu.arrowRight,radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",questionMarkPrefix:"\uFF1F",oneHalf:"1/2",oneThird:"1/3",oneQuarter:"1/4",oneFifth:"1/5",oneSixth:"1/6",oneSeventh:"1/7",oneEighth:"1/8",oneNinth:"1/9",oneTenth:"1/10",twoThirds:"2/3",twoFifths:"2/5",threeQuarters:"3/4",threeFifths:"3/5",threeEighths:"3/8",fourFifths:"4/5",fiveSixths:"5/6",fiveEighths:"5/8",sevenEighths:"7/8"};hge==="linux"&&(uu.questionMarkPrefix="?");var D1=hge==="win32"?hpt:uu,dpt=function(e){return D1===uu||Object.keys(uu).forEach(function(t){uu[t]!==D1[t]&&(e=e.replace(new RegExp(fpt(uu[t]),"g"),D1[t]));}),e};dge.exports=ppt(dpt,D1);});var yge=chunkTKGT252T_js.c((Ztn,mge)=>{mge.exports=(e,t,r)=>{let n=typeof r=="object"?Object.assign({indent:" "},r):{indent:r||" "};if(t=t===void 0?1:t,typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof n.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);if(t===0)return e;let i=n.includeEmptyLines?/^/mg:/^(?!\s*$)/mg;return e.replace(i,n.indent.repeat(t))};});var Ege=chunkTKGT252T_js.c((ern,Tge)=>{var Sge=["\x1B","\x9B"],qB=39,mpt={0:0,1:22,2:22,3:23,4:24,7:27,8:28,9:29,30:39,31:39,32:39,33:39,34:39,35:39,36:39,37:39,90:39,40:49,41:49,42:49,43:49,44:49,45:49,46:49,47:49};function gge(e){return Sge[0]+"["+e+"m"}Tge.exports=function(e,t,r){r=r||e.length;for(var n=!1,i,s=0,a="",o=0;ot&&s<=r)a+=l;else if(s===t&&i!==void 0&&i!==qB)a+=gge(i);else if(s>=r){i!==void 0&&(a+=gge(mpt[i]||qB));break}}return a};});var vge=chunkTKGT252T_js.c((trn,bge)=>{var ypt=I1()();bge.exports=function(e){return typeof e=="string"?e.replace(ypt,""):e};});var xge=chunkTKGT252T_js.c((rrn,_ge)=>{_ge.exports=function(e,t){if(e==null)throw TypeError();e=String(e);var r=e.length,n=t?Number(t):0;if(Number.isNaN(n)&&(n=0),!(n<0||n>=r)){var i=e.charCodeAt(n);if(i>=55296&&i<=56319&&r>n+1){var s=e.charCodeAt(n+1);if(s>=56320&&s<=57343)return (i-55296)*1024+s-56320+65536}return i}};});var Pge=chunkTKGT252T_js.c((nrn,Age)=>{Age.exports=Number.isNaN||function(e){return e!==e};});var wge=chunkTKGT252T_js.c((irn,Cge)=>{var gpt=Pge();Cge.exports=function(e){return gpt(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)};});var Oge=chunkTKGT252T_js.c((srn,Ige)=>{var Spt=vge(),Tpt=xge(),Ept=wge();Ige.exports=function(e){if(typeof e!="string"||e.length===0)return 0;var t=0;e=Spt(e);for(var r=0;r=127&&n<=159||(n>=65536&&r++,Ept(n)?t+=2:t++);}return t};});var Nge=chunkTKGT252T_js.c((arn,Dge)=>{var N1=Ege(),bpt=Oge();Dge.exports=function(e,t,r){r=r||{};var n=r.position||"end",i="\u2026";if(typeof e!="string")throw new TypeError("Expected `input` to be a string, got "+typeof e);if(typeof t!="number")throw new TypeError("Expected `columns` to be a number, got "+typeof t);if(t<1)return "";if(t===1)return i;var s=bpt(e);if(s<=t)return e;if(n==="start")return i+N1(e,s-t+1,s);if(n==="middle"){var a=Math.floor(t/2);return N1(e,0,a)+i+N1(e,s-(t-a)+1,s)}else if(n==="end")return N1(e,0,t-1)+i;throw new Error("Expected `options.position` to be either `start`, `middle` or `end`, got "+n)};});var Mge=chunkTKGT252T_js.c((orn,Rge)=>{var _f=O1(),vpt={info:_f.blue("\u2139"),success:_f.green("\u2714"),warning:_f.yellow("\u26A0"),error:_f.red("\u2716")},_pt={info:_f.blue("i"),success:_f.green("\u221A"),warning:_f.yellow("\u203C"),error:_f.red("\xD7")};Rge.exports=process.platform==="win32"?_pt:vpt;});var Lge=chunkTKGT252T_js.c((urn,HB)=>{var VB=process.platform==="win32"?["-","\\","|","/"]:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"];HB.exports=function(){var e=0;return function(){return VB[e=++e%VB.length]}};HB.exports.frames=VB;});var jge=chunkTKGT252T_js.c($B=>{var GB=O1(),kge=Mge(),Bge=UB(),xpt=Lge(),Fge=GB.yellow(Bge.pointer),Apt=GB.yellow(Bge.arrowDown);$B.isDefined=e=>e!=null;$B.getSymbol=(e,t)=>(e.spinner||(e.spinner=xpt()),e.isPending()?t.showSubtasks!==!1&&e.subtasks.length>0?Fge:GB.yellow(e.spinner()):e.isCompleted()?kge.success:e.hasFailed()?e.subtasks.length>0?Fge:kge.error:e.isSkipped()?Apt:" ");});var XB=chunkTKGT252T_js.c((crn,Gge)=>{var YB=Kye(),Uge=O1(),Ppt=UB(),qge=yge(),Cpt=Nge(),wpt=jB(),KB=jge(),Hge=(e,t,r)=>{r=r||0;let n=[];for(let i of e)if(i.isEnabled()){let s=i.isSkipped()?` ${Uge.dim("[skipped]")}`:"";if(n.push(qge(` ${KB.getSymbol(i,t)} ${i.title}${s}`,r," ")),(i.isPending()||i.isSkipped()||i.hasFailed())&&KB.isDefined(i.output)){let a=i.output;if(typeof a=="string"&&(a=wpt(a.trim().split(` `).filter(Boolean).pop()),a===""&&(a=void 0)),KB.isDefined(a)){let o=qge(`${Ppt.arrowRight} ${a}`,r," ");n.push(` ${Uge.gray(Cpt(o,process.stdout.columns-3))}`);}}(i.isPending()||i.hasFailed()||t.collapse===!1)&&(i.hasFailed()||t.showSubtasks!==!1)&&i.subtasks.length>0&&(n=n.concat(Hge(i.subtasks,t,r+1)));}return n.join(` `)},Vge=(e,t)=>{YB(Hge(e,t));},WB=class{constructor(t,r){this._tasks=t,this._options=Object.assign({showSubtasks:!0,collapse:!0,clearOutput:!1},r);}render(){this._id||(this._id=setInterval(()=>{Vge(this._tasks,this._options);},100));}end(t){this._id&&(clearInterval(this._id),this._id=void 0),Vge(this._tasks,this._options),this._options.clearOutput&&t===void 0?YB.clear():YB.done();}};Gge.exports=WB;});var zB=chunkTKGT252T_js.c(Yge=>{var R1={silent:Wde(),verbose:Oye(),default:XB()},$ge=e=>process.stdout.isTTY===!0||e.nonTTY===!0,Kge=e=>typeof e=="string"?R1[e]||R1.default:typeof e=="function"?e:R1.default;Yge.getRenderer=(e,t)=>{let r=Kge(e);return $ge(r)||(r=Kge(t),(!r||!$ge(r))&&(r=R1.verbose)),r};});var JB=chunkTKGT252T_js.c((frn,Wge)=>{var Bg={PENDING:0,COMPLETED:1,FAILED:2,SKIPPED:3};Bg.toString=e=>{switch(e){case Bg.PENDING:return "pending";case Bg.COMPLETED:return "completed";case Bg.FAILED:return "failed";case Bg.SKIPPED:return "skipped";default:return "unknown"}};Wge.exports=Bg;});var zge=chunkTKGT252T_js.c((hrn,Xge)=>{var cc=Xge.exports=function(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"};cc.writable=function(e){return cc(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"};cc.readable=function(e){return cc(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object"};cc.duplex=function(e){return cc.writable(e)&&cc.readable(e)};cc.transform=function(e){return cc.duplex(e)&&typeof e._transform=="function"&&typeof e._transformState=="object"};});function QB(e){var t,r=e.Symbol;return typeof r=="function"?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}var Jge=chunkTKGT252T_js.b(()=>{});var Qge={};chunkTKGT252T_js.d(Qge,{default:()=>Opt});var jg,Ipt,Opt,Zge=chunkTKGT252T_js.b(()=>{Jge();typeof self<"u"?jg=self:typeof window<"u"?jg=window:typeof global<"u"?jg=global:typeof module<"u"?jg=module:jg=Function("return this")();Ipt=QB(jg),Opt=Ipt;});var rSe=chunkTKGT252T_js.c((yrn,tSe)=>{var eSe=(Zge(),chunkTKGT252T_js.f(Qge)).default;tSe.exports=e=>!!(e&&e[eSe]&&e===e[eSe]());});var sSe=chunkTKGT252T_js.c(M1=>{var Dpt=zge(),nSe=typeof Symbol=="function"&&Symbol.observable||"@@observable",iSe=e=>!!(e&&e[nSe]&&e===e[nSe]())||rSe()(e);M1.isListr=e=>!!(e&&e.setRenderer&&e.add&&e.run);M1.isObservable=e=>iSe(e);M1.isStream=e=>Dpt(e)&&!iSe(e);});var L1=chunkTKGT252T_js.c((Srn,aSe)=>{var ZB=class extends Error{constructor(t){super(t),this.name="ListrError";}};aSe.exports=ZB;});var uSe=chunkTKGT252T_js.c((Trn,oSe)=>{var Npt=Bfe(),Rpt=Vfe(),Mpt=(Kde(),chunkTKGT252T_js.f($de)).Subject,Lpt=zB(),pc=JB(),e3=sSe(),kpt=L1(),Fpt=()=>!1,t3=class extends Mpt{constructor(t,r,n){if(super(),!r)throw new TypeError("Expected a task");if(typeof r.title!="string")throw new TypeError(`Expected property \`title\` to be of type \`string\`, got \`${typeof r.title}\``);if(typeof r.task!="function")throw new TypeError(`Expected property \`task\` to be of type \`function\`, got \`${typeof r.task}\``);if(r.skip&&typeof r.skip!="function")throw new TypeError(`Expected property \`skip\` to be of type \`function\`, got \`${typeof r.skip}\``);if(r.enabled&&typeof r.enabled!="function")throw new TypeError(`Expected property \`enabled\` to be of type \`function\`, got \`${typeof r.enabled}\``);this._listr=t,this._options=n||{},this._subtasks=[],this._enabledFn=r.enabled,this._isEnabled=!0,this.output=void 0,this.title=r.title,this.skip=r.skip||Fpt,this.task=r.task;}get subtasks(){return this._subtasks}set state(t){this._state=t,this.next({type:"STATE"});}get state(){return pc.toString(this._state)}check(t){if(this._state===void 0&&this._enabledFn){let r=this._enabledFn(t);this._isEnabled!==r&&(this._isEnabled=r,this.next({type:"ENABLED",data:r}));}}hasSubtasks(){return this._subtasks.length>0}isPending(){return this._state===pc.PENDING}isSkipped(){return this._state===pc.SKIPPED}isCompleted(){return this._state===pc.COMPLETED}isEnabled(){return this._isEnabled}hasFailed(){return this._state===pc.FAILED}run(t,r){let n=i=>e3.isListr(i)?(i._options=Object.assign(this._options,i._options),i.exitOnError=i._options.exitOnError,i.setRenderer(Lpt.getRenderer("silent")),this._subtasks=i.tasks,this.next({type:"SUBTASKS"}),i.run(t)):(e3.isStream(i)&&(i=Rpt(i)),e3.isObservable(i)&&(i=new Promise((s,a)=>{i.subscribe({next:o=>{this.output=o,this.next({type:"DATA",data:o});},error:a,complete:s});})),Npt(i)?i.then(n):i);return Promise.resolve().then(()=>(this.state=pc.PENDING,this.skip(t))).then(i=>{if(i){typeof i=="string"&&(this.output=i),this.state=pc.SKIPPED;return}return n(this.task(t,r))}).then(()=>{this.isPending()&&(this.state=pc.COMPLETED);}).catch(i=>{if(this.state=pc.FAILED,i instanceof kpt){r.report(i);return}if(this.hasSubtasks()||(this.output=i.message),this.next({type:"DATA",data:i.message}),r.report(i),this._listr.exitOnError!==!1)throw i}).then(()=>{this.complete();})}};oSe.exports=t3;});var cSe=chunkTKGT252T_js.c((Ern,lSe)=>{var Bpt=JB(),jpt=L1(),r3=class{constructor(t,r){this._task=t,this._errors=r;}set title(t){this._task.title=t,this._task.next({type:"TITLE",data:t});}set output(t){this._task.output=t,this._task.next({type:"DATA",data:t});}get title(){return this._task.title}report(t){if(t instanceof jpt)for(let r of t.errors)this._errors.push(r);else this._errors.push(t);}skip(t){if(t&&typeof t!="string")throw new TypeError(`Expected \`message\` to be of type \`string\`, got \`${typeof t}\``);t&&(this._task.output=t),this._task.state=Bpt.SKIPPED;}run(t){return this._task.run(t,this)}};lSe.exports=r3;});var hSe=chunkTKGT252T_js.c((brn,fSe)=>{var Upt=kfe(),qpt=uSe(),Vpt=cSe(),pSe=zB(),Hpt=L1(),Gpt=(e,t,r)=>e.isEnabled()?new Vpt(e,r).run(t):Promise.resolve(),n3=class{constructor(t,r){if(t&&!Array.isArray(t)&&typeof t=="object"){if(typeof t.title=="string"&&typeof t.task=="function")throw new TypeError("Expected an array of tasks or an options object, got a task object");r=t,t=[];}if(t&&!Array.isArray(t))throw new TypeError("Expected an array of tasks");this._options=Object.assign({showSubtasks:!0,concurrent:!1,renderer:"default",nonTTYRenderer:"verbose"},r),this._tasks=[],this.concurrency=1,this._options.concurrent===!0?this.concurrency=1/0:typeof this._options.concurrent=="number"&&(this.concurrency=this._options.concurrent),this._RendererClass=pSe.getRenderer(this._options.renderer,this._options.nonTTYRenderer),this.exitOnError=this._options.exitOnError,this.add(t||[]);}_checkAll(t){for(let r of this._tasks)r.check(t);}get tasks(){return this._tasks}setRenderer(t){this._RendererClass=pSe.getRenderer(t);}add(t){let r=Array.isArray(t)?t:[t];for(let n of r)this._tasks.push(new qpt(this,n,this._options));return this}render(){return this._renderer||(this._renderer=new this._RendererClass(this._tasks,this._options)),this._renderer.render()}run(t){this.render(),t=t||Object.create(null);let r=[];return this._checkAll(t),Upt(this._tasks,i=>(this._checkAll(t),Gpt(i,t,r)),{concurrency:this.concurrency}).then(()=>{if(r.length>0){let i=new Hpt("Something went wrong");throw i.errors=r,i}return this._renderer.end(),t}).catch(i=>{throw i.context=t,this._renderer.end(i),i})}};fSe.exports=n3;});var mSe=chunkTKGT252T_js.c((vrn,dSe)=>{function mo(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0));}dSe.exports=mo;mo.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0);};mo.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null;};mo.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return !1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return !1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts);},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts);},r),this._options.unref&&this._timer.unref(),!0};mo.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb();},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts);};mo.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e);};mo.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e);};mo.prototype.start=mo.prototype.try;mo.prototype.errors=function(){return this._errors};mo.prototype.attempts=function(){return this._attempts};mo.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n=r&&(t=i,r=a);}return t};});var ySe=chunkTKGT252T_js.c(cd=>{var $pt=mSe();cd.operation=function(e){var t=cd.timeouts(e);return new $pt(t,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};cd.timeouts=function(e){if(e instanceof Array)return [].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i{gSe.exports=ySe();});var Ug=chunkTKGT252T_js.c((Arn,TSe)=>{var Kpt=SSe();function Ypt(e,t){function r(n,i){var s=t||{},a;"randomize"in s||(s.randomize=!0),a=Kpt.operation(s);function o(c){i(c||new Error("Aborted"));}function u(c,p){if(c.bail){o(c);return}a.retry(c)?s.onRetry&&s.onRetry(c,p):i(a.mainError());}function l(c){var p;try{p=e(o,c);}catch(h){u(h,c);return}Promise.resolve(p).then(n).catch(function(f){u(f,c);});}a.attempt(l);}return new Promise(r)}TSe.exports=Ypt;});var VSe=chunkTKGT252T_js.c(ya=>{var pft=ya&&ya.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i);}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),fft=ya&&ya.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),USe=ya&&ya.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&pft(t,e,r);return fft(t,e),t};Object.defineProperty(ya,"__esModule",{value:!0});ya.req=ya.json=ya.toBuffer=void 0;var hft=USe(chunkTKGT252T_js.a("http")),dft=USe(chunkTKGT252T_js.a("https"));async function qSe(e){let t=0,r=[];for await(let n of e)t+=n.length,r.push(n);return Buffer.concat(r,t)}ya.toBuffer=qSe;async function mft(e){let r=(await qSe(e)).toString("utf8");try{return JSON.parse(r)}catch(n){let i=n;throw i.message+=` (input: ${r})`,i}}ya.json=mft;function yft(e,t={}){let n=((typeof e=="string"?e:e.href).startsWith("https:")?dft:hft).request(e,t),i=new Promise((s,a)=>{n.once("response",s).once("error",a).end();});return n.then=i.then.bind(i),n}ya.req=yft;});var KSe=chunkTKGT252T_js.c(Ba=>{var GSe=Ba&&Ba.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i);}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),gft=Ba&&Ba.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),$Se=Ba&&Ba.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&GSe(t,e,r);return gft(t,e),t},Sft=Ba&&Ba.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&GSe(t,e,r);};Object.defineProperty(Ba,"__esModule",{value:!0});Ba.Agent=void 0;var Tft=$Se(chunkTKGT252T_js.a("net")),HSe=$Se(chunkTKGT252T_js.a("http")),Eft=chunkTKGT252T_js.a("https");Sft(VSe(),Ba);var nl=Symbol("AgentBaseInternalState"),c3=class extends HSe.Agent{constructor(t){super(t),this[nl]={};}isSecureEndpoint(t){if(t){if(typeof t.secureEndpoint=="boolean")return t.secureEndpoint;if(typeof t.protocol=="string")return t.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(` `).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(t){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[t]||(this.sockets[t]=[]);let r=new Tft.Socket({writable:!1});return this.sockets[t].push(r),this.totalSocketCount++,r}decrementSockets(t,r){if(!this.sockets[t]||r===null)return;let n=this.sockets[t],i=n.indexOf(r);i!==-1&&(n.splice(i,1),this.totalSocketCount--,n.length===0&&delete this.sockets[t]);}getName(t){return (typeof t.secureEndpoint=="boolean"?t.secureEndpoint:this.isSecureEndpoint(t))?Eft.Agent.prototype.getName.call(this,t):super.getName(t)}createSocket(t,r,n){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(i),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(t,i)).then(o=>{if(this.decrementSockets(s,a),o instanceof HSe.Agent)return o.addRequest(t,i);this[nl].currentSocket=o,super.createSocket(t,r,n);},o=>{this.decrementSockets(s,a),n(o);});}createConnection(){let t=this[nl].currentSocket;if(this[nl].currentSocket=void 0,!t)throw new Error("No socket was returned in the `connect()` function");return t}get defaultPort(){return this[nl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(t){this[nl]&&(this[nl].defaultPort=t);}get protocol(){return this[nl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(t){this[nl]&&(this[nl].protocol=t);}};Ba.Agent=c3;});var YSe=chunkTKGT252T_js.c($g=>{var bft=$g&&$g.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($g,"__esModule",{value:!0});$g.parseProxyResponse=void 0;var vft=bft(chunkHZVCNUTP_js.D()),G1=(0, vft.default)("https-proxy-agent:parse-proxy-response");function _ft(e){return new Promise((t,r)=>{let n=0,i=[];function s(){let c=e.read();c?l(c):e.once("readable",s);}function a(){e.removeListener("end",o),e.removeListener("error",u),e.removeListener("readable",s);}function o(){a(),G1("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"));}function u(c){a(),G1("onerror %o",c),r(c);}function l(c){i.push(c),n+=c.length;let p=Buffer.concat(i,n),h=p.indexOf(`\r \r `);if(h===-1){G1("have not received end of HTTP headers yet..."),s();return}let f=p.slice(0,h).toString("ascii").split(`\r `),d=f.shift();if(!d)return e.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=d.split(" "),y=+m[1],g=m.slice(2).join(" "),v={};for(let E of f){if(!E)continue;let S=E.indexOf(":");if(S===-1)return e.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${E}"`));let x=E.slice(0,S).toLowerCase(),b=E.slice(S+1).trimStart(),A=v[x];typeof A=="string"?v[x]=[A,b]:Array.isArray(A)?A.push(b):v[x]=b;}G1("got proxy server response: %o %o",d,v),a(),t({connect:{statusCode:y,statusText:g,headers:v},buffered:p});}e.on("error",u),e.on("end",o),s();})}$g.parseProxyResponse=_ft;});var QSe=chunkTKGT252T_js.c(To=>{var xft=To&&To.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i);}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),Aft=To&&To.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),zSe=To&&To.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&xft(t,e,r);return Aft(t,e),t},JSe=To&&To.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(To,"__esModule",{value:!0});To.HttpsProxyAgent=void 0;var ib=zSe(chunkTKGT252T_js.a("net")),WSe=zSe(chunkTKGT252T_js.a("tls")),Pft=JSe(chunkTKGT252T_js.a("assert")),Cft=JSe(chunkHZVCNUTP_js.D()),wft=KSe(),Ift=chunkTKGT252T_js.a("url"),Oft=YSe(),sb=(0, Cft.default)("https-proxy-agent"),$1=class extends wft.Agent{constructor(t,r){super(r),this.options={path:void 0},this.proxy=typeof t=="string"?new Ift.URL(t):t,this.proxyHeaders=(r==null?void 0:r.headers)??{},sb("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?XSe(r,"headers"):null,host:n,port:i};}async connect(t,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let i;if(n.protocol==="https:"){sb("Creating `tls.Socket`: %o",this.connectOpts);let h=this.connectOpts.servername||this.connectOpts.host;i=WSe.connect({...this.connectOpts,servername:h&&ib.isIP(h)?void 0:h});}else sb("Creating `net.Socket`: %o",this.connectOpts),i=ib.connect(this.connectOpts);let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=ib.isIPv6(r.host)?`[${r.host}]`:r.host,o=`CONNECT ${a}:${r.port} HTTP/1.1\r `;if(n.username||n.password){let h=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`;}s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(s))o+=`${h}: ${s[h]}\r `;let u=(0, Oft.parseProxyResponse)(i);i.write(`${o}\r `);let{connect:l,buffered:c}=await u;if(t.emit("proxyConnect",l),this.emit("proxyConnect",l,t),l.statusCode===200){if(t.once("socket",Dft),r.secureEndpoint){sb("Upgrading socket connection to TLS");let h=r.servername||r.host;return WSe.connect({...XSe(r,"host","path","port"),socket:i,servername:ib.isIP(h)?void 0:h})}return i}i.destroy();let p=new ib.Socket({writable:!1});return p.readable=!0,t.once("socket",h=>{sb("Replaying proxy buffer for failed request"),(0, Pft.default)(h.listenerCount("data")>0),h.push(c),h.push(null);}),p}};$1.protocols=["http","https"];To.HttpsProxyAgent=$1;function Dft(e){e.resume();}function XSe(e,...t){let r={},n;for(n in e)t.includes(n)||(r[n]=e[n]);return r}});var eTe=chunkTKGT252T_js.c((Bnn,ZSe)=>{ZSe.exports=function(t,r){if(r=r.split(":")[0],t=+t,!t)return !1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return !1}return t!==0};});var nTe=chunkTKGT252T_js.c(p3=>{var Nft=Object.prototype.hasOwnProperty,Rft;function tTe(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function rTe(e){try{return encodeURIComponent(e)}catch{return null}}function Mft(e){for(var t=/([^=?#&]+)=?([^&]*)/g,r={},n;n=t.exec(e);){var i=tTe(n[1]),s=tTe(n[2]);i===null||s===null||i in r||(r[i]=s);}return r}function Lft(e,t){t=t||"";var r=[],n,i;typeof t!="string"&&(t="?");for(i in e)if(Nft.call(e,i)){if(n=e[i],!n&&(n===null||n===Rft||isNaN(n))&&(n=""),i=rTe(i),n=rTe(n),i===null||n===null)continue;r.push(i+"="+n);}return r.length?t+r.join("&"):""}p3.stringify=Lft;p3.parse=Mft;});var pTe=chunkTKGT252T_js.c((Unn,cTe)=>{var sTe=eTe(),K1=nTe(),kft=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,aTe=/[\n\r\t]/g,Fft=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,oTe=/:\d+$/,Bft=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,jft=/^[a-zA-Z]:/;function h3(e){return (e||"").toString().replace(kft,"")}var f3=[["#","hash"],["?","query"],function(t,r){return il(r.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],iTe={hash:1,query:1};function uTe(e){var t;typeof window<"u"?t=window:typeof global<"u"?t=global:typeof self<"u"?t=self:t={};var r=t.location||{};e=e||r;var n={},i=typeof e,s;if(e.protocol==="blob:")n=new sl(unescape(e.pathname),{});else if(i==="string"){n=new sl(e,{});for(s in iTe)delete n[s];}else if(i==="object"){for(s in e)s in iTe||(n[s]=e[s]);n.slashes===void 0&&(n.slashes=Fft.test(e.href));}return n}function il(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function lTe(e,t){e=h3(e),e=e.replace(aTe,""),t=t||{};var r=Bft.exec(e),n=r[1]?r[1].toLowerCase():"",i=!!r[2],s=!!r[3],a=0,o;return i?s?(o=r[2]+r[3]+r[4],a=r[2].length+r[3].length):(o=r[2]+r[4],a=r[2].length):s?(o=r[3]+r[4],a=r[3].length):o=r[4],n==="file:"?a>=2&&(o=o.slice(2)):il(n)?o=r[4]:n?i&&(o=o.slice(2)):a>=2&&il(t.protocol)&&(o=r[4]),{protocol:n,slashes:i||il(n),slashesCount:a,rest:o}}function Uft(e,t){if(e==="")return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,i=r[n-1],s=!1,a=0;n--;)r[n]==="."?r.splice(n,1):r[n]===".."?(r.splice(n,1),a++):a&&(n===0&&(s=!0),r.splice(n,1),a--);return s&&r.unshift(""),(i==="."||i==="..")&&r.push(""),r.join("/")}function sl(e,t,r){if(e=h3(e),e=e.replace(aTe,""),!(this instanceof sl))return new sl(e,t,r);var n,i,s,a,o,u,l=f3.slice(),c=typeof t,p=this,h=0;for(c!=="object"&&c!=="string"&&(r=t,t=null),r&&typeof r!="function"&&(r=K1.parse),t=uTe(t),i=lTe(e||"",t),n=!i.protocol&&!i.slashes,p.slashes=i.slashes||n&&t.slashes,p.protocol=i.protocol||t.protocol||"",e=i.rest,(i.protocol==="file:"&&(i.slashesCount!==2||jft.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!il(p.protocol)))&&(l[3]=[/(.*)/,"pathname"]);h{fTe.exports=function(){try{return global.URL?global.URL:chunkTKGT252T_js.a("url").URL}catch{return pTe()}}();});var yTe=chunkTKGT252T_js.c((Vnn,mTe)=>{function dTe(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t);}dTe.prototype.match=function(e){var t=!0,r=this.parts,n,i=r.length,s;if(typeof e=="string"||e instanceof String)if(!this.hasWild&&this.text!=e)t=!1;else {for(s=(e||"").split(this.separator),n=0;t&&n{var d3=void 0;function Hft(){var e=(process.env.NO_PROXY||"").split(",").map(function(t){return t.trim().toLowerCase().replace(/\.$/,".*").replace(/^\./,"*.")}).reduce(function(t,r){return t.push(r),/^\*\./.test(r)&&t.push(r.substr(2)),t},[]).filter(function(t){return t});d3=e.length?e:[];}gTe.exports=function(){return d3===void 0&&Hft(),d3};});var ETe=chunkTKGT252T_js.c((Gnn,TTe)=>{var Gft=yTe(),$ft=STe();TTe.exports=function(t){var r=String(t||"").toLowerCase();return !!$ft().filter(function(n){return Gft(n,r)}).length};});var vTe=chunkTKGT252T_js.c(($nn,bTe)=>{var Kft=hTe(),Yft=ETe();bTe.exports=function(t){var r=new Kft(t);return Yft(r.host)};});var OTe=chunkTKGT252T_js.c((sin,ITe)=>{ITe.exports=function(e){try{return e()}catch{}};});var FTe=chunkTKGT252T_js.c((ain,kTe)=>{kTe.exports=LTe;LTe.sync=Qft;var g3=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",DTe=chunkTKGT252T_js.a("path"),Jft=g3?";":":",NTe=chunkF6FLWRPJ_js.b();function RTe(e){var t=new Error("not found: "+e);return t.code="ENOENT",t}function MTe(e,t){var r=t.colon||Jft,n=t.path||process.env.PATH||"",i=[""];n=n.split(r);var s="";return g3&&(n.unshift(process.cwd()),s=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM",i=s.split(r),e.indexOf(".")!==-1&&i[0]!==""&&i.unshift("")),(e.match(/\//)||g3&&e.match(/\\/))&&(n=[""]),{env:n,ext:i,extExe:s}}function LTe(e,t,r){typeof t=="function"&&(r=t,t={});var n=MTe(e,t),i=n.env,s=n.ext,a=n.extExe,o=[];(function u(l,c){if(l===c)return t.all&&o.length?r(null,o):r(RTe(e));var p=i[l];p.charAt(0)==='"'&&p.slice(-1)==='"'&&(p=p.slice(1,-1));var h=DTe.join(p,e);!p&&/^\.[\\\/]/.test(e)&&(h=e.slice(0,2)+h),function f(d,m){if(d===m)return u(l+1,c);var y=s[d];NTe(h+y,{pathExt:a},function(g,v){if(!g&&v)if(t.all)o.push(h+y);else return r(null,h+y);return f(d+1,m)});}(0,s.length);})(0,i.length);}function Qft(e,t){t=t||{};for(var r=MTe(e,t),n=r.env,i=r.ext,s=r.extExe,a=[],o=0,u=n.length;o{BTe.exports=e=>{e=e||{};let t=e.env||process.env;return (e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).find(n=>n.toUpperCase()==="PATH")||"Path"};});var HTe=chunkTKGT252T_js.c((uin,VTe)=>{var UTe=chunkTKGT252T_js.a("path"),Zft=FTe(),eht=jTe()();function qTe(e,t){let r=process.cwd(),n=e.options.cwd!=null;if(n)try{process.chdir(e.options.cwd);}catch{}let i;try{i=Zft.sync(e.command,{path:(e.options.env||process.env)[eht],pathExt:t?UTe.delimiter:void 0});}catch{}finally{process.chdir(r);}return i&&(i=UTe.resolve(n?e.options.cwd:"",i)),i}function tht(e){return qTe(e)||qTe(e,!0)}VTe.exports=tht;});var GTe=chunkTKGT252T_js.c((lin,T3)=>{var S3=/([()\][%!^"`<>&|;, *?])/g;function rht(e){return e=e.replace(S3,"^$1"),e}function nht(e,t){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(S3,"^$1"),t&&(e=e.replace(S3,"^$1")),e}T3.exports.command=rht;T3.exports.argument=nht;});var KTe=chunkTKGT252T_js.c((cin,$Te)=>{$Te.exports=/^#!.*/;});var WTe=chunkTKGT252T_js.c((pin,YTe)=>{var iht=KTe();YTe.exports=function(e){var t=e.match(iht);if(!t)return null;var r=t[0].replace(/#! ?/,"").split(" "),n=r[0].split("/").pop(),i=r[1];return n==="env"?i:n+(i?" "+i:"")};});var zTe=chunkTKGT252T_js.c((fin,XTe)=>{var E3=chunkTKGT252T_js.a("fs"),sht=WTe();function aht(e){let r;Buffer.alloc?r=Buffer.alloc(150):(r=new Buffer(150),r.fill(0));let n;try{n=E3.openSync(e,"r"),E3.readSync(n,r,0,150,0),E3.closeSync(n);}catch{}return sht(r.toString())}XTe.exports=aht;});var hEe=chunkTKGT252T_js.c((Ft,fEe)=>{Ft=fEe.exports=Tr;var rn;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?rn=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:rn=function(){};Ft.SEMVER_SPEC_VERSION="2.0.0";var ob=256,Y1=Number.MAX_SAFE_INTEGER||9007199254740991,b3=16,oht=ob-6,ub=Ft.re=[],Tn=Ft.safeRe=[],Ae=Ft.src=[],dr=0,P3="[a-zA-Z0-9-]",v3=[["\\s",1],["\\d",ob],[P3,oht]];function Z1(e){for(var t=0;t)?=?)";var W1=dr++;Ae[W1]=Ae[Yg]+"|x|X|\\*";var X1=dr++;Ae[X1]=Ae[Kg]+"|x|X|\\*";var hd=dr++;Ae[hd]="[v=\\s]*("+Ae[X1]+")(?:\\.("+Ae[X1]+")(?:\\.("+Ae[X1]+")(?:"+Ae[w3]+")?"+Ae[cb]+"?)?)?";var Xg=dr++;Ae[Xg]="[v=\\s]*("+Ae[W1]+")(?:\\.("+Ae[W1]+")(?:\\.("+Ae[W1]+")(?:"+Ae[I3]+")?"+Ae[cb]+"?)?)?";var tEe=dr++;Ae[tEe]="^"+Ae[Qg]+"\\s*"+Ae[hd]+"$";var rEe=dr++;Ae[rEe]="^"+Ae[Qg]+"\\s*"+Ae[Xg]+"$";var nEe=dr++;Ae[nEe]="(?:^|[^\\d])(\\d{1,"+b3+"})(?:\\.(\\d{1,"+b3+"}))?(?:\\.(\\d{1,"+b3+"}))?(?:$|[^\\d])";var ew=dr++;Ae[ew]="(?:~>?)";var zg=dr++;Ae[zg]="(\\s*)"+Ae[ew]+"\\s+";ub[zg]=new RegExp(Ae[zg],"g");Tn[zg]=new RegExp(Z1(Ae[zg]),"g");var uht="$1~",iEe=dr++;Ae[iEe]="^"+Ae[ew]+Ae[hd]+"$";var sEe=dr++;Ae[sEe]="^"+Ae[ew]+Ae[Xg]+"$";var tw=dr++;Ae[tw]="(?:\\^)";var Jg=dr++;Ae[Jg]="(\\s*)"+Ae[tw]+"\\s+";ub[Jg]=new RegExp(Ae[Jg],"g");Tn[Jg]=new RegExp(Z1(Ae[Jg]),"g");var lht="$1^",aEe=dr++;Ae[aEe]="^"+Ae[tw]+Ae[hd]+"$";var oEe=dr++;Ae[oEe]="^"+Ae[tw]+Ae[Xg]+"$";var R3=dr++;Ae[R3]="^"+Ae[Qg]+"\\s*("+D3+")$|^$";var M3=dr++;Ae[M3]="^"+Ae[Qg]+"\\s*("+eEe+")$|^$";var dd=dr++;Ae[dd]="(\\s*)"+Ae[Qg]+"\\s*("+D3+"|"+Ae[hd]+")";ub[dd]=new RegExp(Ae[dd],"g");Tn[dd]=new RegExp(Z1(Ae[dd]),"g");var cht="$1$2$3",uEe=dr++;Ae[uEe]="^\\s*("+Ae[hd]+")\\s+-\\s+("+Ae[hd]+")\\s*$";var lEe=dr++;Ae[lEe]="^\\s*("+Ae[Xg]+")\\s+-\\s+("+Ae[Xg]+")\\s*$";var cEe=dr++;Ae[cEe]="(<|>)?=?\\s*\\*";for(al=0;alob)return null;var r=t.loose?Tn[N3]:Tn[O3];if(!r.test(e))return null;try{return new Tr(e,t)}catch{return null}}Ft.valid=pht;function pht(e,t){var r=md(e,t);return r?r.version:null}Ft.clean=fht;function fht(e,t){var r=md(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}Ft.SemVer=Tr;function Tr(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Tr){if(e.loose===t.loose)return e;e=e.version;}else if(typeof e!="string")throw new TypeError("Invalid Version: "+e);if(e.length>ob)throw new TypeError("version is longer than "+ob+" characters");if(!(this instanceof Tr))return new Tr(e,t);rn("SemVer",e,t),this.options=t,this.loose=!!t.loose;var r=e.trim().match(t.loose?Tn[N3]:Tn[O3]);if(!r)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Y1||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Y1||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Y1||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(function(n){if(/^[0-9]+$/.test(n)){var i=+n;if(i>=0&&i=0;)typeof this.prerelease[r]=="number"&&(this.prerelease[r]++,r=-2);r===-1&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this};Ft.inc=hht;function hht(e,t,r,n){typeof r=="string"&&(n=r,r=void 0);try{return new Tr(e,r).inc(t,n).version}catch{return null}}Ft.diff=dht;function dht(e,t){if(L3(e,t))return null;var r=md(e),n=md(t),i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease";}for(var a in r)if((a==="major"||a==="minor"||a==="patch")&&r[a]!==n[a])return i+a;return s}Ft.compareIdentifiers=Wg;var JTe=/^[0-9]+$/;function Wg(e,t){var r=JTe.test(e),n=JTe.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e0}Ft.lt=z1;function z1(e,t,r){return hc(e,t,r)<0}Ft.eq=L3;function L3(e,t,r){return hc(e,t,r)===0}Ft.neq=pEe;function pEe(e,t,r){return hc(e,t,r)!==0}Ft.gte=k3;function k3(e,t,r){return hc(e,t,r)>=0}Ft.lte=F3;function F3(e,t,r){return hc(e,t,r)<=0}Ft.cmp=J1;function J1(e,t,r,n){switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return L3(e,r,n);case"!=":return pEe(e,r,n);case">":return lb(e,r,n);case">=":return k3(e,r,n);case"<":return z1(e,r,n);case"<=":return F3(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}Ft.Comparator=Eo;function Eo(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Eo){if(e.loose===!!t.loose)return e;e=e.value;}if(!(this instanceof Eo))return new Eo(e,t);e=e.trim().split(/\s+/).join(" "),rn("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===pb?this.value="":this.value=this.operator+this.semver.version,rn("comp",this);}var pb={};Eo.prototype.parse=function(e){var t=this.options.loose?Tn[R3]:Tn[M3],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1],this.operator==="="&&(this.operator=""),r[2]?this.semver=new Tr(r[2],this.options.loose):this.semver=pb;};Eo.prototype.toString=function(){return this.value};Eo.prototype.test=function(e){return rn("Comparator.test",e,this.options.loose),this.semver===pb?!0:(typeof e=="string"&&(e=new Tr(e,this.options)),J1(e,this.operator,this.semver,this.options))};Eo.prototype.intersects=function(e,t){if(!(e instanceof Eo))throw new TypeError("a Comparator is required");(!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1});var r;if(this.operator==="")return r=new Vn(e.value,t),Q1(this.value,r,t);if(e.operator==="")return r=new Vn(this.value,t),Q1(e.semver,r,t);var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),s=this.semver.version===e.semver.version,a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),o=J1(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),u=J1(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||i||s&&a||o||u};Ft.Range=Vn;function Vn(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Vn)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Vn(e.raw,t);if(e instanceof Eo)return new Vn(e.value,t);if(!(this instanceof Vn))return new Vn(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(r){return this.parseRange(r.trim())},this).filter(function(r){return r.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format();}Vn.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range};Vn.prototype.toString=function(){return this.range};Vn.prototype.parseRange=function(e){var t=this.options.loose,r=t?Tn[lEe]:Tn[uEe];e=e.replace(r,Nht),rn("hyphen replace",e),e=e.replace(Tn[dd],cht),rn("comparator trim",e,Tn[dd]),e=e.replace(Tn[zg],uht),e=e.replace(Tn[Jg],lht);var n=t?Tn[R3]:Tn[M3],i=e.split(" ").map(function(s){return xht(s,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(s){return !!s.match(n)})),i=i.map(function(s){return new Eo(s,this.options)},this),i};Vn.prototype.intersects=function(e,t){if(!(e instanceof Vn))throw new TypeError("a Range is required");return this.set.some(function(r){return r.every(function(n){return e.set.some(function(i){return i.every(function(s){return n.intersects(s,t)})})})})};Ft.toComparators=_ht;function _ht(e,t){return new Vn(e,t).set.map(function(r){return r.map(function(n){return n.value}).join(" ").trim().split(" ")})}function xht(e,t){return rn("comp",e,t),e=Cht(e,t),rn("caret",e),e=Aht(e,t),rn("tildes",e),e=Iht(e,t),rn("xrange",e),e=Dht(e,t),rn("stars",e),e}function Rs(e){return !e||e.toLowerCase()==="x"||e==="*"}function Aht(e,t){return e.trim().split(/\s+/).map(function(r){return Pht(r,t)}).join(" ")}function Pht(e,t){var r=t.loose?Tn[sEe]:Tn[iEe];return e.replace(r,function(n,i,s,a,o){rn("tilde",e,n,i,s,a,o);var u;return Rs(i)?u="":Rs(s)?u=">="+i+".0.0 <"+(+i+1)+".0.0":Rs(a)?u=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0":o?(rn("replaceTilde pr",o),u=">="+i+"."+s+"."+a+"-"+o+" <"+i+"."+(+s+1)+".0"):u=">="+i+"."+s+"."+a+" <"+i+"."+(+s+1)+".0",rn("tilde return",u),u})}function Cht(e,t){return e.trim().split(/\s+/).map(function(r){return wht(r,t)}).join(" ")}function wht(e,t){rn("caret",e,t);var r=t.loose?Tn[oEe]:Tn[aEe];return e.replace(r,function(n,i,s,a,o){rn("caret",e,n,i,s,a,o);var u;return Rs(i)?u="":Rs(s)?u=">="+i+".0.0 <"+(+i+1)+".0.0":Rs(a)?i==="0"?u=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0":u=">="+i+"."+s+".0 <"+(+i+1)+".0.0":o?(rn("replaceCaret pr",o),i==="0"?s==="0"?u=">="+i+"."+s+"."+a+"-"+o+" <"+i+"."+s+"."+(+a+1):u=">="+i+"."+s+"."+a+"-"+o+" <"+i+"."+(+s+1)+".0":u=">="+i+"."+s+"."+a+"-"+o+" <"+(+i+1)+".0.0"):(rn("no pr"),i==="0"?s==="0"?u=">="+i+"."+s+"."+a+" <"+i+"."+s+"."+(+a+1):u=">="+i+"."+s+"."+a+" <"+i+"."+(+s+1)+".0":u=">="+i+"."+s+"."+a+" <"+(+i+1)+".0.0"),rn("caret return",u),u})}function Iht(e,t){return rn("replaceXRanges",e,t),e.split(/\s+/).map(function(r){return Oht(r,t)}).join(" ")}function Oht(e,t){e=e.trim();var r=t.loose?Tn[rEe]:Tn[tEe];return e.replace(r,function(n,i,s,a,o,u){rn("xRange",e,n,i,s,a,o,u);var l=Rs(s),c=l||Rs(a),p=c||Rs(o),h=p;return i==="="&&h&&(i=""),l?i===">"||i==="<"?n="<0.0.0":n="*":i&&h?(c&&(a=0),o=0,i===">"?(i=">=",c?(s=+s+1,a=0,o=0):(a=+a+1,o=0)):i==="<="&&(i="<",c?s=+s+1:a=+a+1),n=i+s+"."+a+"."+o):c?n=">="+s+".0.0 <"+(+s+1)+".0.0":p&&(n=">="+s+"."+a+".0 <"+s+"."+(+a+1)+".0"),rn("xRange return",n),n})}function Dht(e,t){return rn("replaceStars",e,t),e.trim().replace(Tn[cEe],"")}function Nht(e,t,r,n,i,s,a,o,u,l,c,p,h){return Rs(r)?t="":Rs(n)?t=">="+r+".0.0":Rs(i)?t=">="+r+"."+n+".0":t=">="+t,Rs(u)?o="":Rs(l)?o="<"+(+u+1)+".0.0":Rs(c)?o="<"+u+"."+(+l+1)+".0":p?o="<="+u+"."+l+"."+c+"-"+p:o="<="+o,(t+" "+o).trim()}Vn.prototype.test=function(e){if(!e)return !1;typeof e=="string"&&(e=new Tr(e,this.options));for(var t=0;t0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return !0}return !1}return !0}Ft.satisfies=Q1;function Q1(e,t,r){try{t=new Vn(t,r);}catch{return !1}return t.test(e)}Ft.maxSatisfying=Mht;function Mht(e,t,r){var n=null,i=null;try{var s=new Vn(t,r);}catch{return null}return e.forEach(function(a){s.test(a)&&(!n||i.compare(a)===-1)&&(n=a,i=new Tr(n,r));}),n}Ft.minSatisfying=Lht;function Lht(e,t,r){var n=null,i=null;try{var s=new Vn(t,r);}catch{return null}return e.forEach(function(a){s.test(a)&&(!n||i.compare(a)===1)&&(n=a,i=new Tr(n,r));}),n}Ft.minVersion=kht;function kht(e,t){e=new Vn(e,t);var r=new Tr("0.0.0");if(e.test(r)||(r=new Tr("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!r||lb(r,a))&&(r=a);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+s.operator)}});}return r&&e.test(r)?r:null}Ft.validRange=Fht;function Fht(e,t){try{return new Vn(e,t).range||"*"}catch{return null}}Ft.ltr=Bht;function Bht(e,t,r){return B3(e,t,"<",r)}Ft.gtr=jht;function jht(e,t,r){return B3(e,t,">",r)}Ft.outside=B3;function B3(e,t,r,n){e=new Tr(e,n),t=new Vn(t,n);var i,s,a,o,u;switch(r){case">":i=lb,s=F3,a=z1,o=">",u=">=";break;case"<":i=z1,s=k3,a=lb,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Q1(e,t,n))return !1;for(var l=0;l=0.0.0")),p=p||f,h=h||f,i(f.semver,p.semver,n)?p=f:a(f.semver,h.semver,n)&&(h=f);}),p.operator===o||p.operator===u||(!h.operator||h.operator===o)&&s(e,h.semver))return !1;if(h.operator===u&&a(e,h.semver))return !1}return !0}Ft.prerelease=Uht;function Uht(e,t){var r=md(e,t);return r&&r.prerelease.length?r.prerelease:null}Ft.intersects=qht;function qht(e,t,r){return e=new Vn(e,r),t=new Vn(t,r),e.intersects(t)}Ft.coerce=Vht;function Vht(e){if(e instanceof Tr)return e;if(typeof e!="string")return null;var t=e.match(Tn[nEe]);return t==null?null:md(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}});var SEe=chunkTKGT252T_js.c((hin,gEe)=>{var Hht=chunkTKGT252T_js.a("path"),Ght=OTe(),dEe=HTe(),mEe=GTe(),$ht=zTe(),Kht=hEe(),yEe=process.platform==="win32",Yht=/\.(?:com|exe)$/i,Wht=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i,Xht=Ght(()=>Kht.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",!0))||!1;function zht(e){e.file=dEe(e);let t=e.file&&$ht(e.file);return t?(e.args.unshift(e.file),e.command=t,dEe(e)):e.file}function Jht(e){if(!yEe)return e;let t=zht(e),r=!Yht.test(t);if(e.options.forceShell||r){let n=Wht.test(t);e.command=Hht.normalize(e.command),e.command=mEe.command(e.command),e.args=e.args.map(s=>mEe.argument(s,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0;}return e}function Qht(e){if(Xht)return e;let t=[e.command].concat(e.args).join(" ");return yEe?(e.command=typeof e.options.shell=="string"?e.options.shell:process.env.comspec||"cmd.exe",e.args=["/d","/s","/c",`"${t}"`],e.options.windowsVerbatimArguments=!0):(typeof e.options.shell=="string"?e.command=e.options.shell:process.platform==="android"?e.command="/system/bin/sh":e.command="/bin/sh",e.args=["-c",t]),e}function Zht(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?Qht(n):Jht(n)}gEe.exports=Zht;});var bEe=chunkTKGT252T_js.c((din,EEe)=>{var j3=process.platform==="win32";function U3(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function edt(e,t){if(!j3)return;let r=e.emit;e.emit=function(n,i){if(n==="exit"){let s=TEe(i,t);if(s)return r.call(e,"error",s)}return r.apply(e,arguments)};}function TEe(e,t){return j3&&e===1&&!t.file?U3(t.original,"spawn"):null}function tdt(e,t){return j3&&e===1&&!t.file?U3(t.original,"spawnSync"):null}EEe.exports={hookChildProcess:edt,verifyENOENT:TEe,verifyENOENTSync:tdt,notFoundError:U3};});var xEe=chunkTKGT252T_js.c((min,Zg)=>{var vEe=chunkTKGT252T_js.a("child_process"),q3=SEe(),V3=bEe();function _Ee(e,t,r){let n=q3(e,t,r),i=vEe.spawn(n.command,n.args,n.options);return V3.hookChildProcess(i,n),i}function rdt(e,t,r){let n=q3(e,t,r),i=vEe.spawnSync(n.command,n.args,n.options);return i.error=i.error||V3.verifyENOENTSync(i.status,n),i}Zg.exports=_Ee;Zg.exports.spawn=_Ee;Zg.exports.sync=rdt;Zg.exports._parse=q3;Zg.exports._enoent=V3;});var PEe=chunkTKGT252T_js.c((yin,H3)=>{var AEe=(e,...t)=>new Promise(r=>{r(e(...t));});H3.exports=AEe;H3.exports.default=AEe;});var wEe=chunkTKGT252T_js.c((gin,G3)=>{var ndt=PEe(),CEe=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let t=[],r=0,n=()=>{r--,t.length>0&&t.shift()();},i=(o,u,...l)=>{r++;let c=ndt(o,...l);u(c),c.then(n,n);},s=(o,u,...l)=>{rnew Promise(l=>s(o,l,...u));return Object.defineProperties(a,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0;}}}),a};G3.exports=CEe;G3.exports.default=CEe;});var DEe=chunkTKGT252T_js.c((Sin,$3)=>{var IEe=wEe(),rw=class extends Error{constructor(t){super(),this.value=t;}},idt=async(e,t)=>t(await e),sdt=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new rw(t[0]);return !1},OEe=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=IEe(r.concurrency),i=[...e].map(a=>[a,n(idt,a,t)]),s=IEe(r.preserveOrder?1:1/0);try{await Promise.all(i.map(a=>s(sdt,a)));}catch(a){if(a instanceof rw)return a.value;throw a}};$3.exports=OEe;$3.exports.default=OEe;});var FEe=chunkTKGT252T_js.c((Tin,K3)=>{var NEe=chunkTKGT252T_js.a("path"),nw=chunkTKGT252T_js.a("fs"),{promisify:REe}=chunkTKGT252T_js.a("util"),adt=DEe(),odt=REe(nw.stat),udt=REe(nw.lstat),MEe={directory:"isDirectory",file:"isFile"};function LEe({type:e}){if(!(e in MEe))throw new Error(`Invalid type specified: ${e}`)}var kEe=(e,t)=>e===void 0||t[MEe[e]]();K3.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},LEe(t);let r=t.allowSymlinks?odt:udt;return adt(e,async n=>{try{let i=await r(NEe.resolve(t.cwd,n));return kEe(t.type,i)}catch{return !1}},t)};K3.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},LEe(t);let r=t.allowSymlinks?nw.statSync:nw.lstatSync;for(let n of e)try{let i=r(NEe.resolve(t.cwd,n));if(kEe(t.type,i))return n}catch{}};});var jEe=chunkTKGT252T_js.c((Ein,Y3)=>{var BEe=chunkTKGT252T_js.a("fs"),{promisify:ldt}=chunkTKGT252T_js.a("util"),cdt=ldt(BEe.access);Y3.exports=async e=>{try{return await cdt(e),!0}catch{return !1}};Y3.exports.sync=e=>{try{return BEe.accessSync(e),!0}catch{return !1}};});var qEe=chunkTKGT252T_js.c((bin,eS)=>{var Af=chunkTKGT252T_js.a("path"),iw=FEe(),UEe=jEe(),W3=Symbol("findUp.stop");eS.exports=async(e,t={})=>{let r=Af.resolve(t.cwd||""),{root:n}=Af.parse(r),i=[].concat(e),s=async a=>{if(typeof e!="function")return iw(i,a);let o=await e(a.cwd);return typeof o=="string"?iw([o],a):o};for(;;){let a=await s({...t,cwd:r});if(a===W3)return;if(a)return Af.resolve(r,a);if(r===n)return;r=Af.dirname(r);}};eS.exports.sync=(e,t={})=>{let r=Af.resolve(t.cwd||""),{root:n}=Af.parse(r),i=[].concat(e),s=a=>{if(typeof e!="function")return iw.sync(i,a);let o=e(a.cwd);return typeof o=="string"?iw.sync([o],a):o};for(;;){let a=s({...t,cwd:r});if(a===W3)return;if(a)return Af.resolve(r,a);if(r===n)return;r=Af.dirname(r);}};eS.exports.exists=UEe;eS.exports.sync.exists=UEe.sync;eS.exports.stop=W3;});var $Ee=chunkTKGT252T_js.c((vin,sw)=>{var VEe=chunkTKGT252T_js.a("path"),HEe=qEe(),GEe=async e=>{let t=await HEe("package.json",{cwd:e});return t&&VEe.dirname(t)};sw.exports=GEe;sw.exports.default=GEe;sw.exports.sync=e=>{let t=HEe.sync("package.json",{cwd:e});return t&&VEe.dirname(t)};});var ow=chunkTKGT252T_js.c((_in,XEe)=>{var KEe=chunkTKGT252T_js.a("fs"),YEe=chunkTKGT252T_js.a("path"),aw=xEe(),pdt=$Ee(),tS,rS,yd;function fdt(){tS=void 0,rS=void 0,yd=void 0;}function WEe(){if(tS!==void 0)return tS;try{let e=aw.sync("yarn",["--version"]);tS=!!(e.stdout&&e.stdout.toString().trim());}catch{tS=!1;}return tS}function hdt(){if(rS!==void 0)return rS;try{let e=aw.sync("npm",["--version"]);rS=!!(e.stdout&&e.stdout.toString().trim());}catch{rS=!1;}return rS}function Pf(){if(yd!==void 0)return yd;let e=pdt.sync();if(e){let t=YEe.join(e,"package-lock.json"),r=YEe.join(e,"yarn.lock");try{return KEe.statSync(r),yd="yarn",yd}catch{}try{return KEe.statSync(t),yd="npm",yd}catch{}}return WEe()?"yarn":"npm"}function ddt(...e){return e.unshift(Pf()),aw(...e)}function mdt(...e){return e.unshift(Pf()),aw.sync(...e)}Pf.hasYarn=WEe;Pf.hasNpm=hdt;Pf.spawn=ddt;Pf.spawn.sync=mdt;Pf.clearCache=fdt;XEe.exports=Pf;});var s0e=chunkTKGT252T_js.c((Oin,i0e)=>{var nS=process.stdin,t0e=process.stdout,Tdt={prompt:bdt,confirm:vdt,multiline:_dt};function Edt(e){let t={},r=0;return new Promise(function(n,i){function s(o){let u=o.key,l=o.msg,c=Tdt[o.fn];if(!u)throw new Error("A value for `key` must be defined for question "+r);if(!l)throw new Error("A value for `msg` must be defined for question "+r);if(!c)throw new Error('A value for `fn` must be "prompt", "confirm", or "multiline" for question '+r);c&&c(l,u,t).then(function(){a();});}function a(){if(r{var Lbe=chunkLTE3MQL2_js.b().fromCallback,Fs=chunkLTE3MQL2_js.a(),Nyt=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof Fs[e]=="function");Object.assign(bc,Fs);Nyt.forEach(e=>{bc[e]=Lbe(Fs[e]);});bc.exists=function(e,t){return typeof t=="function"?Fs.exists(e,t):new Promise(r=>Fs.exists(e,r))};bc.read=function(e,t,r,n,i,s){return typeof s=="function"?Fs.read(e,t,r,n,i,s):new Promise((a,o)=>{Fs.read(e,t,r,n,i,(u,l,c)=>{if(u)return o(u);a({bytesRead:l,buffer:c});});})};bc.write=function(e,t,...r){return typeof r[r.length-1]=="function"?Fs.write(e,t,...r):new Promise((n,i)=>{Fs.write(e,t,...r,(s,a,o)=>{if(s)return i(s);n({bytesWritten:a,buffer:o});});})};bc.readv=function(e,t,...r){return typeof r[r.length-1]=="function"?Fs.readv(e,t,...r):new Promise((n,i)=>{Fs.readv(e,t,...r,(s,a,o)=>{if(s)return i(s);n({bytesRead:a,buffers:o});});})};bc.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?Fs.writev(e,t,...r):new Promise((n,i)=>{Fs.writev(e,t,...r,(s,a,o)=>{if(s)return i(s);n({bytesWritten:a,buffers:o});});})};typeof Fs.realpath.native=="function"?bc.realpath.native=Lbe(Fs.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003");});var Fbe=chunkTKGT252T_js.c((lan,kbe)=>{var Ryt=chunkTKGT252T_js.a("path");kbe.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Ryt.parse(t).root,""))){let n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}};});var qbe=chunkTKGT252T_js.c((can,vj)=>{var Bbe=Bs(),{checkPath:jbe}=Fbe(),Ube=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};vj.exports.makeDir=async(e,t)=>(jbe(e),Bbe.mkdir(e,{mode:Ube(t),recursive:!0}));vj.exports.makeDirSync=(e,t)=>(jbe(e),Bbe.mkdirSync(e,{mode:Ube(t),recursive:!0}));});var fu=chunkTKGT252T_js.c((pan,Vbe)=>{var Myt=chunkLTE3MQL2_js.b().fromPromise,{makeDir:Lyt,makeDirSync:_j}=qbe(),xj=Myt(Lyt);Vbe.exports={mkdirs:xj,mkdirsSync:_j,mkdirp:xj,mkdirpSync:_j,ensureDir:xj,ensureDirSync:_j};});var Nf=chunkTKGT252T_js.c((fan,Gbe)=>{var kyt=chunkLTE3MQL2_js.b().fromPromise,Hbe=Bs();function Fyt(e){return Hbe.access(e).then(()=>!0).catch(()=>!1)}Gbe.exports={pathExists:kyt(Fyt),pathExistsSync:Hbe.existsSync};});var Aj=chunkTKGT252T_js.c((han,$be)=>{var yS=Bs(),Byt=chunkLTE3MQL2_js.b().fromPromise;async function jyt(e,t,r){let n=await yS.open(e,"r+"),i=null;try{await yS.futimes(n,t,r);}finally{try{await yS.close(n);}catch(s){i=s;}}if(i)throw i}function Uyt(e,t,r){let n=yS.openSync(e,"r+");return yS.futimesSync(n,t,r),yS.closeSync(n)}$be.exports={utimesMillis:Byt(jyt),utimesMillisSync:Uyt};});var Ld=chunkTKGT252T_js.c((dan,Xbe)=>{var gS=Bs(),ji=chunkTKGT252T_js.a("path"),Kbe=chunkLTE3MQL2_js.b().fromPromise;function qyt(e,t,r){let n=r.dereference?i=>gS.stat(i,{bigint:!0}):i=>gS.lstat(i,{bigint:!0});return Promise.all([n(e),n(t).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,s])=>({srcStat:i,destStat:s}))}function Vyt(e,t,r){let n,i=r.dereference?a=>gS.statSync(a,{bigint:!0}):a=>gS.lstatSync(a,{bigint:!0}),s=i(e);try{n=i(t);}catch(a){if(a.code==="ENOENT")return {srcStat:s,destStat:null};throw a}return {srcStat:s,destStat:n}}async function Hyt(e,t,r,n){let{srcStat:i,destStat:s}=await qyt(e,t,n);if(s){if(xb(i,s)){let a=ji.basename(e),o=ji.basename(t);if(r==="move"&&a!==o&&a.toLowerCase()===o.toLowerCase())return {srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&Pj(e,t))throw new Error(bw(e,t,r));return {srcStat:i,destStat:s}}function Gyt(e,t,r,n){let{srcStat:i,destStat:s}=Vyt(e,t,n);if(s){if(xb(i,s)){let a=ji.basename(e),o=ji.basename(t);if(r==="move"&&a!==o&&a.toLowerCase()===o.toLowerCase())return {srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&Pj(e,t))throw new Error(bw(e,t,r));return {srcStat:i,destStat:s}}async function Ybe(e,t,r,n){let i=ji.resolve(ji.dirname(e)),s=ji.resolve(ji.dirname(r));if(s===i||s===ji.parse(s).root)return;let a;try{a=await gS.stat(s,{bigint:!0});}catch(o){if(o.code==="ENOENT")return;throw o}if(xb(t,a))throw new Error(bw(e,r,n));return Ybe(e,t,s,n)}function Wbe(e,t,r,n){let i=ji.resolve(ji.dirname(e)),s=ji.resolve(ji.dirname(r));if(s===i||s===ji.parse(s).root)return;let a;try{a=gS.statSync(s,{bigint:!0});}catch(o){if(o.code==="ENOENT")return;throw o}if(xb(t,a))throw new Error(bw(e,r,n));return Wbe(e,t,s,n)}function xb(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function Pj(e,t){let r=ji.resolve(e).split(ji.sep).filter(i=>i),n=ji.resolve(t).split(ji.sep).filter(i=>i);return r.every((i,s)=>n[s]===i)}function bw(e,t,r){return `Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}Xbe.exports={checkPaths:Kbe(Hyt),checkPathsSync:Gyt,checkParentPaths:Kbe(Ybe),checkParentPathsSync:Wbe,isSrcSubdir:Pj,areIdentical:xb};});var eve=chunkTKGT252T_js.c((man,Zbe)=>{var gs=Bs(),Ab=chunkTKGT252T_js.a("path"),{mkdirs:$yt}=fu(),{pathExists:Kyt}=Nf(),{utimesMillis:Yyt}=Aj(),Pb=Ld();async function Wyt(e,t,r={}){typeof r=="function"&&(r={filter:r}),r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended; see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:n,destStat:i}=await Pb.checkPaths(e,t,"copy",r);if(await Pb.checkParentPaths(e,n,t,"copy"),!await Jbe(e,t,r))return;let a=Ab.dirname(t);await Kyt(a)||await $yt(a),await Qbe(i,e,t,r);}async function Jbe(e,t,r){return r.filter?r.filter(e,t):!0}async function Qbe(e,t,r,n){let s=await(n.dereference?gs.stat:gs.lstat)(t);if(s.isDirectory())return Qyt(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return Xyt(s,e,t,r,n);if(s.isSymbolicLink())return Zyt(e,t,r,n);throw s.isSocket()?new Error(`Cannot copy a socket file: ${t}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}async function Xyt(e,t,r,n,i){if(!t)return zbe(e,r,n,i);if(i.overwrite)return await gs.unlink(n),zbe(e,r,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}async function zbe(e,t,r,n){if(await gs.copyFile(t,r),n.preserveTimestamps){zyt(e.mode)&&await Jyt(r,e.mode);let i=await gs.stat(t);await Yyt(r,i.atime,i.mtime);}return gs.chmod(r,e.mode)}function zyt(e){return (e&128)===0}function Jyt(e,t){return gs.chmod(e,t|128)}async function Qyt(e,t,r,n,i){t||await gs.mkdir(n);let s=await gs.readdir(r);await Promise.all(s.map(async a=>{let o=Ab.join(r,a),u=Ab.join(n,a);if(!await Jbe(o,u,i))return;let{destStat:c}=await Pb.checkPaths(o,u,"copy",i);return Qbe(c,o,u,i)})),t||await gs.chmod(n,e.mode);}async function Zyt(e,t,r,n){let i=await gs.readlink(t);if(n.dereference&&(i=Ab.resolve(process.cwd(),i)),!e)return gs.symlink(i,r);let s=null;try{s=await gs.readlink(r);}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return gs.symlink(i,r);throw a}if(n.dereference&&(s=Ab.resolve(process.cwd(),s)),Pb.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(Pb.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return await gs.unlink(r),gs.symlink(i,r)}Zbe.exports=Wyt;});var sve=chunkTKGT252T_js.c((yan,ive)=>{var js=chunkLTE3MQL2_js.a(),Cb=chunkTKGT252T_js.a("path"),egt=fu().mkdirsSync,tgt=Aj().utimesMillisSync,wb=Ld();function rgt(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended; see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:n,destStat:i}=wb.checkPathsSync(e,t,"copy",r);if(wb.checkParentPathsSync(e,n,t,"copy"),r.filter&&!r.filter(e,t))return;let s=Cb.dirname(t);return js.existsSync(s)||egt(s),tve(i,e,t,r)}function tve(e,t,r,n){let s=(n.dereference?js.statSync:js.lstatSync)(t);if(s.isDirectory())return lgt(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return ngt(s,e,t,r,n);if(s.isSymbolicLink())return fgt(e,t,r,n);throw s.isSocket()?new Error(`Cannot copy a socket file: ${t}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function ngt(e,t,r,n,i){return t?igt(e,r,n,i):rve(e,r,n,i)}function igt(e,t,r,n){if(n.overwrite)return js.unlinkSync(r),rve(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function rve(e,t,r,n){return js.copyFileSync(t,r),n.preserveTimestamps&&sgt(e.mode,t,r),Cj(r,e.mode)}function sgt(e,t,r){return agt(e)&&ogt(r,e),ugt(t,r)}function agt(e){return (e&128)===0}function ogt(e,t){return Cj(e,t|128)}function Cj(e,t){return js.chmodSync(e,t)}function ugt(e,t){let r=js.statSync(e);return tgt(t,r.atime,r.mtime)}function lgt(e,t,r,n,i){return t?nve(r,n,i):cgt(e.mode,r,n,i)}function cgt(e,t,r,n){return js.mkdirSync(r),nve(t,r,n),Cj(r,e)}function nve(e,t,r){js.readdirSync(e).forEach(n=>pgt(n,e,t,r));}function pgt(e,t,r,n){let i=Cb.join(t,e),s=Cb.join(r,e);if(n.filter&&!n.filter(i,s))return;let{destStat:a}=wb.checkPathsSync(i,s,"copy",n);return tve(a,i,s,n)}function fgt(e,t,r,n){let i=js.readlinkSync(t);if(n.dereference&&(i=Cb.resolve(process.cwd(),i)),e){let s;try{s=js.readlinkSync(r);}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return js.symlinkSync(i,r);throw a}if(n.dereference&&(s=Cb.resolve(process.cwd(),s)),wb.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(wb.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return hgt(i,r)}else return js.symlinkSync(i,r)}function hgt(e,t){return js.unlinkSync(t),js.symlinkSync(e,t)}ive.exports=rgt;});var vw=chunkTKGT252T_js.c((gan,ave)=>{var dgt=chunkLTE3MQL2_js.b().fromPromise;ave.exports={copy:dgt(eve()),copySync:sve()};});var Ib=chunkTKGT252T_js.c((San,uve)=>{var ove=chunkLTE3MQL2_js.a(),mgt=chunkLTE3MQL2_js.b().fromCallback;function ygt(e,t){ove.rm(e,{recursive:!0,force:!0},t);}function ggt(e){ove.rmSync(e,{recursive:!0,force:!0});}uve.exports={remove:mgt(ygt),removeSync:ggt};});var yve=chunkTKGT252T_js.c((Tan,mve)=>{var Sgt=chunkLTE3MQL2_js.b().fromPromise,pve=Bs(),fve=chunkTKGT252T_js.a("path"),hve=fu(),dve=Ib(),lve=Sgt(async function(t){let r;try{r=await pve.readdir(t);}catch{return hve.mkdirs(t)}return Promise.all(r.map(n=>dve.remove(fve.join(t,n))))});function cve(e){let t;try{t=pve.readdirSync(e);}catch{return hve.mkdirsSync(e)}t.forEach(r=>{r=fve.join(e,r),dve.removeSync(r);});}mve.exports={emptyDirSync:cve,emptydirSync:cve,emptyDir:lve,emptydir:lve};});var Eve=chunkTKGT252T_js.c((Ean,Tve)=>{var Tgt=chunkLTE3MQL2_js.b().fromPromise,gve=chunkTKGT252T_js.a("path"),vc=Bs(),Sve=fu();async function Egt(e){let t;try{t=await vc.stat(e);}catch{}if(t&&t.isFile())return;let r=gve.dirname(e),n=null;try{n=await vc.stat(r);}catch(i){if(i.code==="ENOENT"){await Sve.mkdirs(r),await vc.writeFile(e,"");return}else throw i}n.isDirectory()?await vc.writeFile(e,""):await vc.readdir(r);}function bgt(e){let t;try{t=vc.statSync(e);}catch{}if(t&&t.isFile())return;let r=gve.dirname(e);try{vc.statSync(r).isDirectory()||vc.readdirSync(r);}catch(n){if(n&&n.code==="ENOENT")Sve.mkdirsSync(r);else throw n}vc.writeFileSync(e,"");}Tve.exports={createFile:Tgt(Egt),createFileSync:bgt};});var Ave=chunkTKGT252T_js.c((ban,xve)=>{var vgt=chunkLTE3MQL2_js.b().fromPromise,bve=chunkTKGT252T_js.a("path"),Rf=Bs(),vve=fu(),{pathExists:_gt}=Nf(),{areIdentical:_ve}=Ld();async function xgt(e,t){let r;try{r=await Rf.lstat(t);}catch{}let n;try{n=await Rf.lstat(e);}catch(a){throw a.message=a.message.replace("lstat","ensureLink"),a}if(r&&_ve(n,r))return;let i=bve.dirname(t);await _gt(i)||await vve.mkdirs(i),await Rf.link(e,t);}function Agt(e,t){let r;try{r=Rf.lstatSync(t);}catch{}try{let s=Rf.lstatSync(e);if(r&&_ve(s,r))return}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=bve.dirname(t);return Rf.existsSync(n)||vve.mkdirsSync(n),Rf.linkSync(e,t)}xve.exports={createLink:vgt(xgt),createLinkSync:Agt};});var Cve=chunkTKGT252T_js.c((van,Pve)=>{var Mf=chunkTKGT252T_js.a("path"),Ob=Bs(),{pathExists:Pgt}=Nf(),Cgt=chunkLTE3MQL2_js.b().fromPromise;async function wgt(e,t){if(Mf.isAbsolute(e)){try{await Ob.lstat(e);}catch(s){throw s.message=s.message.replace("lstat","ensureSymlink"),s}return {toCwd:e,toDst:e}}let r=Mf.dirname(t),n=Mf.join(r,e);if(await Pgt(n))return {toCwd:n,toDst:e};try{await Ob.lstat(e);}catch(s){throw s.message=s.message.replace("lstat","ensureSymlink"),s}return {toCwd:e,toDst:Mf.relative(r,e)}}function Igt(e,t){if(Mf.isAbsolute(e)){if(!Ob.existsSync(e))throw new Error("absolute srcpath does not exist");return {toCwd:e,toDst:e}}let r=Mf.dirname(t),n=Mf.join(r,e);if(Ob.existsSync(n))return {toCwd:n,toDst:e};if(!Ob.existsSync(e))throw new Error("relative srcpath does not exist");return {toCwd:e,toDst:Mf.relative(r,e)}}Pve.exports={symlinkPaths:Cgt(wgt),symlinkPathsSync:Igt};});var Ove=chunkTKGT252T_js.c((_an,Ive)=>{var wve=Bs(),Ogt=chunkLTE3MQL2_js.b().fromPromise;async function Dgt(e,t){if(t)return t;let r;try{r=await wve.lstat(e);}catch{return "file"}return r&&r.isDirectory()?"dir":"file"}function Ngt(e,t){if(t)return t;let r;try{r=wve.lstatSync(e);}catch{return "file"}return r&&r.isDirectory()?"dir":"file"}Ive.exports={symlinkType:Ogt(Dgt),symlinkTypeSync:Ngt};});var Mve=chunkTKGT252T_js.c((xan,Rve)=>{var Rgt=chunkLTE3MQL2_js.b().fromPromise,Dve=chunkTKGT252T_js.a("path"),ll=Bs(),{mkdirs:Mgt,mkdirsSync:Lgt}=fu(),{symlinkPaths:kgt,symlinkPathsSync:Fgt}=Cve(),{symlinkType:Bgt,symlinkTypeSync:jgt}=Ove(),{pathExists:Ugt}=Nf(),{areIdentical:Nve}=Ld();async function qgt(e,t,r){let n;try{n=await ll.lstat(t);}catch{}if(n&&n.isSymbolicLink()){let[o,u]=await Promise.all([ll.stat(e),ll.stat(t)]);if(Nve(o,u))return}let i=await kgt(e,t);e=i.toDst;let s=await Bgt(i.toCwd,r),a=Dve.dirname(t);return await Ugt(a)||await Mgt(a),ll.symlink(e,t,s)}function Vgt(e,t,r){let n;try{n=ll.lstatSync(t);}catch{}if(n&&n.isSymbolicLink()){let o=ll.statSync(e),u=ll.statSync(t);if(Nve(o,u))return}let i=Fgt(e,t);e=i.toDst,r=jgt(i.toCwd,r);let s=Dve.dirname(t);return ll.existsSync(s)||Lgt(s),ll.symlinkSync(e,t,r)}Rve.exports={createSymlink:Rgt(qgt),createSymlinkSync:Vgt};});var Vve=chunkTKGT252T_js.c((Aan,qve)=>{var{createFile:Lve,createFileSync:kve}=Eve(),{createLink:Fve,createLinkSync:Bve}=Ave(),{createSymlink:jve,createSymlinkSync:Uve}=Mve();qve.exports={createFile:Lve,createFileSync:kve,ensureFile:Lve,ensureFileSync:kve,createLink:Fve,createLinkSync:Bve,ensureLink:Fve,ensureLinkSync:Bve,createSymlink:jve,createSymlinkSync:Uve,ensureSymlink:jve,ensureSymlinkSync:Uve};});var Gve=chunkTKGT252T_js.c((Pan,Hve)=>{var _w=chunkLTE3MQL2_js.d();Hve.exports={readJson:_w.readFile,readJsonSync:_w.readFileSync,writeJson:_w.writeFile,writeJsonSync:_w.writeFileSync};});var xw=chunkTKGT252T_js.c((Can,Yve)=>{var Hgt=chunkLTE3MQL2_js.b().fromPromise,wj=Bs(),$ve=chunkTKGT252T_js.a("path"),Kve=fu(),Ggt=Nf().pathExists;async function $gt(e,t,r="utf-8"){let n=$ve.dirname(e);return await Ggt(n)||await Kve.mkdirs(n),wj.writeFile(e,t,r)}function Kgt(e,...t){let r=$ve.dirname(e);wj.existsSync(r)||Kve.mkdirsSync(r),wj.writeFileSync(e,...t);}Yve.exports={outputFile:Hgt($gt),outputFileSync:Kgt};});var Xve=chunkTKGT252T_js.c((wan,Wve)=>{var{stringify:Ygt}=chunkLTE3MQL2_js.c(),{outputFile:Wgt}=xw();async function Xgt(e,t,r={}){let n=Ygt(t,r);await Wgt(e,n,r);}Wve.exports=Xgt;});var Jve=chunkTKGT252T_js.c((Ian,zve)=>{var{stringify:zgt}=chunkLTE3MQL2_js.c(),{outputFileSync:Jgt}=xw();function Qgt(e,t,r){let n=zgt(t,r);Jgt(e,n,r);}zve.exports=Qgt;});var Zve=chunkTKGT252T_js.c((Oan,Qve)=>{var Zgt=chunkLTE3MQL2_js.b().fromPromise,Us=Gve();Us.outputJson=Zgt(Xve());Us.outputJsonSync=Jve();Us.outputJSON=Us.outputJson;Us.outputJSONSync=Us.outputJsonSync;Us.writeJSON=Us.writeJson;Us.writeJSONSync=Us.writeJsonSync;Us.readJSON=Us.readJson;Us.readJSONSync=Us.readJsonSync;Qve.exports=Us;});var i_e=chunkTKGT252T_js.c((Dan,n_e)=>{var eSt=Bs(),e_e=chunkTKGT252T_js.a("path"),{copy:tSt}=vw(),{remove:r_e}=Ib(),{mkdirp:rSt}=fu(),{pathExists:nSt}=Nf(),t_e=Ld();async function iSt(e,t,r={}){let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:s=!1}=await t_e.checkPaths(e,t,"move",r);await t_e.checkParentPaths(e,i,t,"move");let a=e_e.dirname(t);return e_e.parse(a).root!==a&&await rSt(a),sSt(e,t,n,s)}async function sSt(e,t,r,n){if(!n){if(r)await r_e(t);else if(await nSt(t))throw new Error("dest already exists.")}try{await eSt.rename(e,t);}catch(i){if(i.code!=="EXDEV")throw i;await aSt(e,t,r);}}async function aSt(e,t,r){return await tSt(e,t,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),r_e(e)}n_e.exports=iSt;});var l_e=chunkTKGT252T_js.c((Nan,u_e)=>{var a_e=chunkLTE3MQL2_js.a(),Oj=chunkTKGT252T_js.a("path"),oSt=vw().copySync,o_e=Ib().removeSync,uSt=fu().mkdirpSync,s_e=Ld();function lSt(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:s=!1}=s_e.checkPathsSync(e,t,"move",r);return s_e.checkParentPathsSync(e,i,t,"move"),cSt(t)||uSt(Oj.dirname(t)),pSt(e,t,n,s)}function cSt(e){let t=Oj.dirname(e);return Oj.parse(t).root===t}function pSt(e,t,r,n){if(n)return Ij(e,t,r);if(r)return o_e(t),Ij(e,t,r);if(a_e.existsSync(t))throw new Error("dest already exists.");return Ij(e,t,r)}function Ij(e,t,r){try{a_e.renameSync(e,t);}catch(n){if(n.code!=="EXDEV")throw n;return fSt(e,t,r)}}function fSt(e,t,r){return oSt(e,t,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),o_e(e)}u_e.exports=lSt;});var p_e=chunkTKGT252T_js.c((Ran,c_e)=>{var hSt=chunkLTE3MQL2_js.b().fromPromise;c_e.exports={move:hSt(i_e()),moveSync:l_e()};});var Dj=chunkTKGT252T_js.c((Man,f_e)=>{f_e.exports={...Bs(),...vw(),...yve(),...Vve(),...Zve(),...fu(),...p_e(),...xw(),...Nf(),...Ib()};});var Aw={};chunkTKGT252T_js.d(Aw,{dedent:()=>h_e,default:()=>dSt});function h_e(e){for(var t=[],r=1;r{dSt=h_e;});var Cw=chunkTKGT252T_js.c(Nj=>{Object.defineProperty(Nj,"__esModule",{value:!0});Nj.default=mSt;function mSt(e,t){let r=Object.keys(t);for(let n of r)if(e[n]!==t[n])return !1;return !0}});var Db=chunkTKGT252T_js.c(Rj=>{Object.defineProperty(Rj,"__esModule",{value:!0});Rj.default=ySt;var d_e=new Set;function ySt(e,t,r=""){if(d_e.has(e))return;d_e.add(e);let{internal:n,trace:i}=gSt(1,2);n||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\` ${i}`);}function gSt(e,t){let{stackTraceLimit:r,prepareStackTrace:n}=Error,i;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(a,o){i=o;},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=n,!i)return {internal:!1,trace:""};let s=i.slice(1+e,1+e+t);return {internal:/[\\/]@babel[\\/]/.test(s[1].getFileName()),trace:s.map(a=>` at ${a}`).join(` `)}}});var ci=chunkTKGT252T_js.c(N=>{Object.defineProperty(N,"__esModule",{value:!0});N.isAccessor=Dvt;N.isAnyTypeAnnotation=QTt;N.isArgumentPlaceholder=C0t;N.isArrayExpression=SSt;N.isArrayPattern=yTt;N.isArrayTypeAnnotation=ZTt;N.isArrowFunctionExpression=gTt;N.isAssignmentExpression=TSt;N.isAssignmentPattern=mTt;N.isAwaitExpression=UTt;N.isBigIntLiteral=VTt;N.isBinary=evt;N.isBinaryExpression=ESt;N.isBindExpression=w0t;N.isBlock=nvt;N.isBlockParent=rvt;N.isBlockStatement=xSt;N.isBooleanLiteral=$St;N.isBooleanLiteralTypeAnnotation=tEt;N.isBooleanTypeAnnotation=eEt;N.isBreakStatement=ASt;N.isCallExpression=PSt;N.isCatchClause=CSt;N.isClass=wvt;N.isClassAccessorProperty=YTt;N.isClassBody=STt;N.isClassDeclaration=ETt;N.isClassExpression=TTt;N.isClassImplements=nEt;N.isClassMethod=NTt;N.isClassPrivateMethod=XTt;N.isClassPrivateProperty=WTt;N.isClassProperty=KTt;N.isCompletionStatement=avt;N.isConditional=ovt;N.isConditionalExpression=wSt;N.isContinueStatement=ISt;N.isDebuggerStatement=OSt;N.isDecimalLiteral=L0t;N.isDeclaration=yvt;N.isDeclareClass=iEt;N.isDeclareExportAllDeclaration=hEt;N.isDeclareExportDeclaration=fEt;N.isDeclareFunction=sEt;N.isDeclareInterface=aEt;N.isDeclareModule=oEt;N.isDeclareModuleExports=uEt;N.isDeclareOpaqueType=cEt;N.isDeclareTypeAlias=lEt;N.isDeclareVariable=pEt;N.isDeclaredPredicate=dEt;N.isDecorator=O0t;N.isDirective=vSt;N.isDirectiveLiteral=_St;N.isDoExpression=D0t;N.isDoWhileStatement=DSt;N.isEmptyStatement=NSt;N.isEmptyTypeAnnotation=AEt;N.isEnumBody=Bvt;N.isEnumBooleanBody=ZEt;N.isEnumBooleanMember=n0t;N.isEnumDeclaration=QEt;N.isEnumDefaultedMember=a0t;N.isEnumMember=jvt;N.isEnumNumberBody=e0t;N.isEnumNumberMember=i0t;N.isEnumStringBody=t0t;N.isEnumStringMember=s0t;N.isEnumSymbolBody=r0t;N.isExistsTypeAnnotation=mEt;N.isExportAllDeclaration=bTt;N.isExportDeclaration=Ivt;N.isExportDefaultDeclaration=vTt;N.isExportDefaultSpecifier=N0t;N.isExportNamedDeclaration=_Tt;N.isExportNamespaceSpecifier=HTt;N.isExportSpecifier=xTt;N.isExpression=Zbt;N.isExpressionStatement=RSt;N.isExpressionWrapper=cvt;N.isFile=MSt;N.isFlow=Rvt;N.isFlowBaseAnnotation=Lvt;N.isFlowDeclaration=kvt;N.isFlowPredicate=Fvt;N.isFlowType=Mvt;N.isFor=pvt;N.isForInStatement=LSt;N.isForOfStatement=ATt;N.isForStatement=kSt;N.isForXStatement=fvt;N.isFunction=hvt;N.isFunctionDeclaration=FSt;N.isFunctionExpression=BSt;N.isFunctionParent=dvt;N.isFunctionTypeAnnotation=yEt;N.isFunctionTypeParam=gEt;N.isGenericTypeAnnotation=SEt;N.isIdentifier=jSt;N.isIfStatement=USt;N.isImmutable=bvt;N.isImport=qTt;N.isImportAttribute=I0t;N.isImportDeclaration=PTt;N.isImportDefaultSpecifier=CTt;N.isImportExpression=OTt;N.isImportNamespaceSpecifier=wTt;N.isImportOrExportDeclaration=m_e;N.isImportSpecifier=ITt;N.isIndexedAccessType=o0t;N.isInferredPredicate=TEt;N.isInterfaceDeclaration=bEt;N.isInterfaceExtends=EEt;N.isInterfaceTypeAnnotation=vEt;N.isInterpreterDirective=bSt;N.isIntersectionTypeAnnotation=_Et;N.isJSX=Uvt;N.isJSXAttribute=l0t;N.isJSXClosingElement=c0t;N.isJSXClosingFragment=_0t;N.isJSXElement=p0t;N.isJSXEmptyExpression=f0t;N.isJSXExpressionContainer=h0t;N.isJSXFragment=b0t;N.isJSXIdentifier=m0t;N.isJSXMemberExpression=y0t;N.isJSXNamespacedName=g0t;N.isJSXOpeningElement=S0t;N.isJSXOpeningFragment=v0t;N.isJSXSpreadAttribute=T0t;N.isJSXSpreadChild=d0t;N.isJSXText=E0t;N.isLVal=Svt;N.isLabeledStatement=qSt;N.isLiteral=Evt;N.isLogicalExpression=YSt;N.isLoop=uvt;N.isMemberExpression=WSt;N.isMetaProperty=DTt;N.isMethod=_vt;N.isMiscellaneous=qvt;N.isMixedTypeAnnotation=xEt;N.isModuleDeclaration=zvt;N.isModuleExpression=k0t;N.isModuleSpecifier=Ovt;N.isNewExpression=XSt;N.isNoop=x0t;N.isNullLiteral=GSt;N.isNullLiteralTypeAnnotation=rEt;N.isNullableTypeAnnotation=PEt;N.isNumberLiteral=Kvt;N.isNumberLiteralTypeAnnotation=CEt;N.isNumberTypeAnnotation=wEt;N.isNumericLiteral=HSt;N.isObjectExpression=JSt;N.isObjectMember=xvt;N.isObjectMethod=QSt;N.isObjectPattern=RTt;N.isObjectProperty=ZSt;N.isObjectTypeAnnotation=IEt;N.isObjectTypeCallProperty=DEt;N.isObjectTypeIndexer=NEt;N.isObjectTypeInternalSlot=OEt;N.isObjectTypeProperty=REt;N.isObjectTypeSpreadProperty=MEt;N.isOpaqueType=LEt;N.isOptionalCallExpression=$Tt;N.isOptionalIndexedAccessType=u0t;N.isOptionalMemberExpression=GTt;N.isParenthesizedExpression=nTt;N.isPattern=Cvt;N.isPatternLike=gvt;N.isPipelineBareFunction=j0t;N.isPipelinePrimaryTopicReference=U0t;N.isPipelineTopicExpression=B0t;N.isPlaceholder=A0t;N.isPrivate=Nvt;N.isPrivateName=zTt;N.isProgram=zSt;N.isProperty=Avt;N.isPureish=mvt;N.isQualifiedTypeIdentifier=kEt;N.isRecordExpression=R0t;N.isRegExpLiteral=KSt;N.isRegexLiteral=Yvt;N.isRestElement=eTt;N.isRestProperty=Wvt;N.isReturnStatement=tTt;N.isScopable=tvt;N.isSequenceExpression=rTt;N.isSpreadElement=MTt;N.isSpreadProperty=Xvt;N.isStandardized=Qbt;N.isStatement=ivt;N.isStaticBlock=JTt;N.isStringLiteral=VSt;N.isStringLiteralTypeAnnotation=FEt;N.isStringTypeAnnotation=BEt;N.isSuper=LTt;N.isSwitchCase=iTt;N.isSwitchStatement=sTt;N.isSymbolTypeAnnotation=jEt;N.isTSAnyKeyword=z0t;N.isTSArrayType=ybt;N.isTSAsExpression=Lbt;N.isTSBaseType=$vt;N.isTSBigIntKeyword=Q0t;N.isTSBooleanKeyword=J0t;N.isTSCallSignatureDeclaration=$0t;N.isTSConditionalType=_bt;N.isTSConstructSignatureDeclaration=K0t;N.isTSConstructorType=pbt;N.isTSDeclareFunction=V0t;N.isTSDeclareMethod=H0t;N.isTSEntityName=Tvt;N.isTSEnumDeclaration=Bbt;N.isTSEnumMember=jbt;N.isTSExportAssignment=Kbt;N.isTSExpressionWithTypeArguments=Obt;N.isTSExternalModuleReference=Gbt;N.isTSFunctionType=cbt;N.isTSImportEqualsDeclaration=Hbt;N.isTSImportType=Vbt;N.isTSIndexSignature=X0t;N.isTSIndexedAccessType=Cbt;N.isTSInferType=xbt;N.isTSInstantiationExpression=Mbt;N.isTSInterfaceBody=Nbt;N.isTSInterfaceDeclaration=Dbt;N.isTSIntersectionType=vbt;N.isTSIntrinsicKeyword=Z0t;N.isTSLiteralType=Ibt;N.isTSMappedType=wbt;N.isTSMethodSignature=W0t;N.isTSModuleBlock=qbt;N.isTSModuleDeclaration=Ubt;N.isTSNamedTupleMember=Ebt;N.isTSNamespaceExportDeclaration=Ybt;N.isTSNeverKeyword=ebt;N.isTSNonNullExpression=$bt;N.isTSNullKeyword=tbt;N.isTSNumberKeyword=rbt;N.isTSObjectKeyword=nbt;N.isTSOptionalType=Sbt;N.isTSParameterProperty=q0t;N.isTSParenthesizedType=Abt;N.isTSPropertySignature=Y0t;N.isTSQualifiedName=G0t;N.isTSRestType=Tbt;N.isTSSatisfiesExpression=kbt;N.isTSStringKeyword=ibt;N.isTSSymbolKeyword=sbt;N.isTSThisType=lbt;N.isTSTupleType=gbt;N.isTSType=Gvt;N.isTSTypeAliasDeclaration=Rbt;N.isTSTypeAnnotation=Wbt;N.isTSTypeAssertion=Fbt;N.isTSTypeElement=Hvt;N.isTSTypeLiteral=mbt;N.isTSTypeOperator=Pbt;N.isTSTypeParameter=Jbt;N.isTSTypeParameterDeclaration=zbt;N.isTSTypeParameterInstantiation=Xbt;N.isTSTypePredicate=hbt;N.isTSTypeQuery=dbt;N.isTSTypeReference=fbt;N.isTSUndefinedKeyword=abt;N.isTSUnionType=bbt;N.isTSUnknownKeyword=obt;N.isTSVoidKeyword=ubt;N.isTaggedTemplateExpression=kTt;N.isTemplateElement=FTt;N.isTemplateLiteral=BTt;N.isTerminatorless=svt;N.isThisExpression=aTt;N.isThisTypeAnnotation=UEt;N.isThrowStatement=oTt;N.isTopicReference=F0t;N.isTryStatement=uTt;N.isTupleExpression=M0t;N.isTupleTypeAnnotation=qEt;N.isTypeAlias=HEt;N.isTypeAnnotation=GEt;N.isTypeCastExpression=$Et;N.isTypeParameter=KEt;N.isTypeParameterDeclaration=YEt;N.isTypeParameterInstantiation=WEt;N.isTypeScript=Vvt;N.isTypeofTypeAnnotation=VEt;N.isUnaryExpression=lTt;N.isUnaryLike=Pvt;N.isUnionTypeAnnotation=XEt;N.isUpdateExpression=cTt;N.isUserWhitespacable=vvt;N.isV8IntrinsicIdentifier=P0t;N.isVariableDeclaration=pTt;N.isVariableDeclarator=fTt;N.isVariance=zEt;N.isVoidTypeAnnotation=JEt;N.isWhile=lvt;N.isWhileStatement=hTt;N.isWithStatement=dTt;N.isYieldExpression=jTt;var B=Cw(),Nb=Db();function SSt(e,t){return !e||e.type!=="ArrayExpression"?!1:t==null||(0, B.default)(e,t)}function TSt(e,t){return !e||e.type!=="AssignmentExpression"?!1:t==null||(0, B.default)(e,t)}function ESt(e,t){return !e||e.type!=="BinaryExpression"?!1:t==null||(0, B.default)(e,t)}function bSt(e,t){return !e||e.type!=="InterpreterDirective"?!1:t==null||(0, B.default)(e,t)}function vSt(e,t){return !e||e.type!=="Directive"?!1:t==null||(0, B.default)(e,t)}function _St(e,t){return !e||e.type!=="DirectiveLiteral"?!1:t==null||(0, B.default)(e,t)}function xSt(e,t){return !e||e.type!=="BlockStatement"?!1:t==null||(0, B.default)(e,t)}function ASt(e,t){return !e||e.type!=="BreakStatement"?!1:t==null||(0, B.default)(e,t)}function PSt(e,t){return !e||e.type!=="CallExpression"?!1:t==null||(0, B.default)(e,t)}function CSt(e,t){return !e||e.type!=="CatchClause"?!1:t==null||(0, B.default)(e,t)}function wSt(e,t){return !e||e.type!=="ConditionalExpression"?!1:t==null||(0, B.default)(e,t)}function ISt(e,t){return !e||e.type!=="ContinueStatement"?!1:t==null||(0, B.default)(e,t)}function OSt(e,t){return !e||e.type!=="DebuggerStatement"?!1:t==null||(0, B.default)(e,t)}function DSt(e,t){return !e||e.type!=="DoWhileStatement"?!1:t==null||(0, B.default)(e,t)}function NSt(e,t){return !e||e.type!=="EmptyStatement"?!1:t==null||(0, B.default)(e,t)}function RSt(e,t){return !e||e.type!=="ExpressionStatement"?!1:t==null||(0, B.default)(e,t)}function MSt(e,t){return !e||e.type!=="File"?!1:t==null||(0, B.default)(e,t)}function LSt(e,t){return !e||e.type!=="ForInStatement"?!1:t==null||(0, B.default)(e,t)}function kSt(e,t){return !e||e.type!=="ForStatement"?!1:t==null||(0, B.default)(e,t)}function FSt(e,t){return !e||e.type!=="FunctionDeclaration"?!1:t==null||(0, B.default)(e,t)}function BSt(e,t){return !e||e.type!=="FunctionExpression"?!1:t==null||(0, B.default)(e,t)}function jSt(e,t){return !e||e.type!=="Identifier"?!1:t==null||(0, B.default)(e,t)}function USt(e,t){return !e||e.type!=="IfStatement"?!1:t==null||(0, B.default)(e,t)}function qSt(e,t){return !e||e.type!=="LabeledStatement"?!1:t==null||(0, B.default)(e,t)}function VSt(e,t){return !e||e.type!=="StringLiteral"?!1:t==null||(0, B.default)(e,t)}function HSt(e,t){return !e||e.type!=="NumericLiteral"?!1:t==null||(0, B.default)(e,t)}function GSt(e,t){return !e||e.type!=="NullLiteral"?!1:t==null||(0, B.default)(e,t)}function $St(e,t){return !e||e.type!=="BooleanLiteral"?!1:t==null||(0, B.default)(e,t)}function KSt(e,t){return !e||e.type!=="RegExpLiteral"?!1:t==null||(0, B.default)(e,t)}function YSt(e,t){return !e||e.type!=="LogicalExpression"?!1:t==null||(0, B.default)(e,t)}function WSt(e,t){return !e||e.type!=="MemberExpression"?!1:t==null||(0, B.default)(e,t)}function XSt(e,t){return !e||e.type!=="NewExpression"?!1:t==null||(0, B.default)(e,t)}function zSt(e,t){return !e||e.type!=="Program"?!1:t==null||(0, B.default)(e,t)}function JSt(e,t){return !e||e.type!=="ObjectExpression"?!1:t==null||(0, B.default)(e,t)}function QSt(e,t){return !e||e.type!=="ObjectMethod"?!1:t==null||(0, B.default)(e,t)}function ZSt(e,t){return !e||e.type!=="ObjectProperty"?!1:t==null||(0, B.default)(e,t)}function eTt(e,t){return !e||e.type!=="RestElement"?!1:t==null||(0, B.default)(e,t)}function tTt(e,t){return !e||e.type!=="ReturnStatement"?!1:t==null||(0, B.default)(e,t)}function rTt(e,t){return !e||e.type!=="SequenceExpression"?!1:t==null||(0, B.default)(e,t)}function nTt(e,t){return !e||e.type!=="ParenthesizedExpression"?!1:t==null||(0, B.default)(e,t)}function iTt(e,t){return !e||e.type!=="SwitchCase"?!1:t==null||(0, B.default)(e,t)}function sTt(e,t){return !e||e.type!=="SwitchStatement"?!1:t==null||(0, B.default)(e,t)}function aTt(e,t){return !e||e.type!=="ThisExpression"?!1:t==null||(0, B.default)(e,t)}function oTt(e,t){return !e||e.type!=="ThrowStatement"?!1:t==null||(0, B.default)(e,t)}function uTt(e,t){return !e||e.type!=="TryStatement"?!1:t==null||(0, B.default)(e,t)}function lTt(e,t){return !e||e.type!=="UnaryExpression"?!1:t==null||(0, B.default)(e,t)}function cTt(e,t){return !e||e.type!=="UpdateExpression"?!1:t==null||(0, B.default)(e,t)}function pTt(e,t){return !e||e.type!=="VariableDeclaration"?!1:t==null||(0, B.default)(e,t)}function fTt(e,t){return !e||e.type!=="VariableDeclarator"?!1:t==null||(0, B.default)(e,t)}function hTt(e,t){return !e||e.type!=="WhileStatement"?!1:t==null||(0, B.default)(e,t)}function dTt(e,t){return !e||e.type!=="WithStatement"?!1:t==null||(0, B.default)(e,t)}function mTt(e,t){return !e||e.type!=="AssignmentPattern"?!1:t==null||(0, B.default)(e,t)}function yTt(e,t){return !e||e.type!=="ArrayPattern"?!1:t==null||(0, B.default)(e,t)}function gTt(e,t){return !e||e.type!=="ArrowFunctionExpression"?!1:t==null||(0, B.default)(e,t)}function STt(e,t){return !e||e.type!=="ClassBody"?!1:t==null||(0, B.default)(e,t)}function TTt(e,t){return !e||e.type!=="ClassExpression"?!1:t==null||(0, B.default)(e,t)}function ETt(e,t){return !e||e.type!=="ClassDeclaration"?!1:t==null||(0, B.default)(e,t)}function bTt(e,t){return !e||e.type!=="ExportAllDeclaration"?!1:t==null||(0, B.default)(e,t)}function vTt(e,t){return !e||e.type!=="ExportDefaultDeclaration"?!1:t==null||(0, B.default)(e,t)}function _Tt(e,t){return !e||e.type!=="ExportNamedDeclaration"?!1:t==null||(0, B.default)(e,t)}function xTt(e,t){return !e||e.type!=="ExportSpecifier"?!1:t==null||(0, B.default)(e,t)}function ATt(e,t){return !e||e.type!=="ForOfStatement"?!1:t==null||(0, B.default)(e,t)}function PTt(e,t){return !e||e.type!=="ImportDeclaration"?!1:t==null||(0, B.default)(e,t)}function CTt(e,t){return !e||e.type!=="ImportDefaultSpecifier"?!1:t==null||(0, B.default)(e,t)}function wTt(e,t){return !e||e.type!=="ImportNamespaceSpecifier"?!1:t==null||(0, B.default)(e,t)}function ITt(e,t){return !e||e.type!=="ImportSpecifier"?!1:t==null||(0, B.default)(e,t)}function OTt(e,t){return !e||e.type!=="ImportExpression"?!1:t==null||(0, B.default)(e,t)}function DTt(e,t){return !e||e.type!=="MetaProperty"?!1:t==null||(0, B.default)(e,t)}function NTt(e,t){return !e||e.type!=="ClassMethod"?!1:t==null||(0, B.default)(e,t)}function RTt(e,t){return !e||e.type!=="ObjectPattern"?!1:t==null||(0, B.default)(e,t)}function MTt(e,t){return !e||e.type!=="SpreadElement"?!1:t==null||(0, B.default)(e,t)}function LTt(e,t){return !e||e.type!=="Super"?!1:t==null||(0, B.default)(e,t)}function kTt(e,t){return !e||e.type!=="TaggedTemplateExpression"?!1:t==null||(0, B.default)(e,t)}function FTt(e,t){return !e||e.type!=="TemplateElement"?!1:t==null||(0, B.default)(e,t)}function BTt(e,t){return !e||e.type!=="TemplateLiteral"?!1:t==null||(0, B.default)(e,t)}function jTt(e,t){return !e||e.type!=="YieldExpression"?!1:t==null||(0, B.default)(e,t)}function UTt(e,t){return !e||e.type!=="AwaitExpression"?!1:t==null||(0, B.default)(e,t)}function qTt(e,t){return !e||e.type!=="Import"?!1:t==null||(0, B.default)(e,t)}function VTt(e,t){return !e||e.type!=="BigIntLiteral"?!1:t==null||(0, B.default)(e,t)}function HTt(e,t){return !e||e.type!=="ExportNamespaceSpecifier"?!1:t==null||(0, B.default)(e,t)}function GTt(e,t){return !e||e.type!=="OptionalMemberExpression"?!1:t==null||(0, B.default)(e,t)}function $Tt(e,t){return !e||e.type!=="OptionalCallExpression"?!1:t==null||(0, B.default)(e,t)}function KTt(e,t){return !e||e.type!=="ClassProperty"?!1:t==null||(0, B.default)(e,t)}function YTt(e,t){return !e||e.type!=="ClassAccessorProperty"?!1:t==null||(0, B.default)(e,t)}function WTt(e,t){return !e||e.type!=="ClassPrivateProperty"?!1:t==null||(0, B.default)(e,t)}function XTt(e,t){return !e||e.type!=="ClassPrivateMethod"?!1:t==null||(0, B.default)(e,t)}function zTt(e,t){return !e||e.type!=="PrivateName"?!1:t==null||(0, B.default)(e,t)}function JTt(e,t){return !e||e.type!=="StaticBlock"?!1:t==null||(0, B.default)(e,t)}function QTt(e,t){return !e||e.type!=="AnyTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function ZTt(e,t){return !e||e.type!=="ArrayTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function eEt(e,t){return !e||e.type!=="BooleanTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function tEt(e,t){return !e||e.type!=="BooleanLiteralTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function rEt(e,t){return !e||e.type!=="NullLiteralTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function nEt(e,t){return !e||e.type!=="ClassImplements"?!1:t==null||(0, B.default)(e,t)}function iEt(e,t){return !e||e.type!=="DeclareClass"?!1:t==null||(0, B.default)(e,t)}function sEt(e,t){return !e||e.type!=="DeclareFunction"?!1:t==null||(0, B.default)(e,t)}function aEt(e,t){return !e||e.type!=="DeclareInterface"?!1:t==null||(0, B.default)(e,t)}function oEt(e,t){return !e||e.type!=="DeclareModule"?!1:t==null||(0, B.default)(e,t)}function uEt(e,t){return !e||e.type!=="DeclareModuleExports"?!1:t==null||(0, B.default)(e,t)}function lEt(e,t){return !e||e.type!=="DeclareTypeAlias"?!1:t==null||(0, B.default)(e,t)}function cEt(e,t){return !e||e.type!=="DeclareOpaqueType"?!1:t==null||(0, B.default)(e,t)}function pEt(e,t){return !e||e.type!=="DeclareVariable"?!1:t==null||(0, B.default)(e,t)}function fEt(e,t){return !e||e.type!=="DeclareExportDeclaration"?!1:t==null||(0, B.default)(e,t)}function hEt(e,t){return !e||e.type!=="DeclareExportAllDeclaration"?!1:t==null||(0, B.default)(e,t)}function dEt(e,t){return !e||e.type!=="DeclaredPredicate"?!1:t==null||(0, B.default)(e,t)}function mEt(e,t){return !e||e.type!=="ExistsTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function yEt(e,t){return !e||e.type!=="FunctionTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function gEt(e,t){return !e||e.type!=="FunctionTypeParam"?!1:t==null||(0, B.default)(e,t)}function SEt(e,t){return !e||e.type!=="GenericTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function TEt(e,t){return !e||e.type!=="InferredPredicate"?!1:t==null||(0, B.default)(e,t)}function EEt(e,t){return !e||e.type!=="InterfaceExtends"?!1:t==null||(0, B.default)(e,t)}function bEt(e,t){return !e||e.type!=="InterfaceDeclaration"?!1:t==null||(0, B.default)(e,t)}function vEt(e,t){return !e||e.type!=="InterfaceTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function _Et(e,t){return !e||e.type!=="IntersectionTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function xEt(e,t){return !e||e.type!=="MixedTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function AEt(e,t){return !e||e.type!=="EmptyTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function PEt(e,t){return !e||e.type!=="NullableTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function CEt(e,t){return !e||e.type!=="NumberLiteralTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function wEt(e,t){return !e||e.type!=="NumberTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function IEt(e,t){return !e||e.type!=="ObjectTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function OEt(e,t){return !e||e.type!=="ObjectTypeInternalSlot"?!1:t==null||(0, B.default)(e,t)}function DEt(e,t){return !e||e.type!=="ObjectTypeCallProperty"?!1:t==null||(0, B.default)(e,t)}function NEt(e,t){return !e||e.type!=="ObjectTypeIndexer"?!1:t==null||(0, B.default)(e,t)}function REt(e,t){return !e||e.type!=="ObjectTypeProperty"?!1:t==null||(0, B.default)(e,t)}function MEt(e,t){return !e||e.type!=="ObjectTypeSpreadProperty"?!1:t==null||(0, B.default)(e,t)}function LEt(e,t){return !e||e.type!=="OpaqueType"?!1:t==null||(0, B.default)(e,t)}function kEt(e,t){return !e||e.type!=="QualifiedTypeIdentifier"?!1:t==null||(0, B.default)(e,t)}function FEt(e,t){return !e||e.type!=="StringLiteralTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function BEt(e,t){return !e||e.type!=="StringTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function jEt(e,t){return !e||e.type!=="SymbolTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function UEt(e,t){return !e||e.type!=="ThisTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function qEt(e,t){return !e||e.type!=="TupleTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function VEt(e,t){return !e||e.type!=="TypeofTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function HEt(e,t){return !e||e.type!=="TypeAlias"?!1:t==null||(0, B.default)(e,t)}function GEt(e,t){return !e||e.type!=="TypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function $Et(e,t){return !e||e.type!=="TypeCastExpression"?!1:t==null||(0, B.default)(e,t)}function KEt(e,t){return !e||e.type!=="TypeParameter"?!1:t==null||(0, B.default)(e,t)}function YEt(e,t){return !e||e.type!=="TypeParameterDeclaration"?!1:t==null||(0, B.default)(e,t)}function WEt(e,t){return !e||e.type!=="TypeParameterInstantiation"?!1:t==null||(0, B.default)(e,t)}function XEt(e,t){return !e||e.type!=="UnionTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function zEt(e,t){return !e||e.type!=="Variance"?!1:t==null||(0, B.default)(e,t)}function JEt(e,t){return !e||e.type!=="VoidTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function QEt(e,t){return !e||e.type!=="EnumDeclaration"?!1:t==null||(0, B.default)(e,t)}function ZEt(e,t){return !e||e.type!=="EnumBooleanBody"?!1:t==null||(0, B.default)(e,t)}function e0t(e,t){return !e||e.type!=="EnumNumberBody"?!1:t==null||(0, B.default)(e,t)}function t0t(e,t){return !e||e.type!=="EnumStringBody"?!1:t==null||(0, B.default)(e,t)}function r0t(e,t){return !e||e.type!=="EnumSymbolBody"?!1:t==null||(0, B.default)(e,t)}function n0t(e,t){return !e||e.type!=="EnumBooleanMember"?!1:t==null||(0, B.default)(e,t)}function i0t(e,t){return !e||e.type!=="EnumNumberMember"?!1:t==null||(0, B.default)(e,t)}function s0t(e,t){return !e||e.type!=="EnumStringMember"?!1:t==null||(0, B.default)(e,t)}function a0t(e,t){return !e||e.type!=="EnumDefaultedMember"?!1:t==null||(0, B.default)(e,t)}function o0t(e,t){return !e||e.type!=="IndexedAccessType"?!1:t==null||(0, B.default)(e,t)}function u0t(e,t){return !e||e.type!=="OptionalIndexedAccessType"?!1:t==null||(0, B.default)(e,t)}function l0t(e,t){return !e||e.type!=="JSXAttribute"?!1:t==null||(0, B.default)(e,t)}function c0t(e,t){return !e||e.type!=="JSXClosingElement"?!1:t==null||(0, B.default)(e,t)}function p0t(e,t){return !e||e.type!=="JSXElement"?!1:t==null||(0, B.default)(e,t)}function f0t(e,t){return !e||e.type!=="JSXEmptyExpression"?!1:t==null||(0, B.default)(e,t)}function h0t(e,t){return !e||e.type!=="JSXExpressionContainer"?!1:t==null||(0, B.default)(e,t)}function d0t(e,t){return !e||e.type!=="JSXSpreadChild"?!1:t==null||(0, B.default)(e,t)}function m0t(e,t){return !e||e.type!=="JSXIdentifier"?!1:t==null||(0, B.default)(e,t)}function y0t(e,t){return !e||e.type!=="JSXMemberExpression"?!1:t==null||(0, B.default)(e,t)}function g0t(e,t){return !e||e.type!=="JSXNamespacedName"?!1:t==null||(0, B.default)(e,t)}function S0t(e,t){return !e||e.type!=="JSXOpeningElement"?!1:t==null||(0, B.default)(e,t)}function T0t(e,t){return !e||e.type!=="JSXSpreadAttribute"?!1:t==null||(0, B.default)(e,t)}function E0t(e,t){return !e||e.type!=="JSXText"?!1:t==null||(0, B.default)(e,t)}function b0t(e,t){return !e||e.type!=="JSXFragment"?!1:t==null||(0, B.default)(e,t)}function v0t(e,t){return !e||e.type!=="JSXOpeningFragment"?!1:t==null||(0, B.default)(e,t)}function _0t(e,t){return !e||e.type!=="JSXClosingFragment"?!1:t==null||(0, B.default)(e,t)}function x0t(e,t){return !e||e.type!=="Noop"?!1:t==null||(0, B.default)(e,t)}function A0t(e,t){return !e||e.type!=="Placeholder"?!1:t==null||(0, B.default)(e,t)}function P0t(e,t){return !e||e.type!=="V8IntrinsicIdentifier"?!1:t==null||(0, B.default)(e,t)}function C0t(e,t){return !e||e.type!=="ArgumentPlaceholder"?!1:t==null||(0, B.default)(e,t)}function w0t(e,t){return !e||e.type!=="BindExpression"?!1:t==null||(0, B.default)(e,t)}function I0t(e,t){return !e||e.type!=="ImportAttribute"?!1:t==null||(0, B.default)(e,t)}function O0t(e,t){return !e||e.type!=="Decorator"?!1:t==null||(0, B.default)(e,t)}function D0t(e,t){return !e||e.type!=="DoExpression"?!1:t==null||(0, B.default)(e,t)}function N0t(e,t){return !e||e.type!=="ExportDefaultSpecifier"?!1:t==null||(0, B.default)(e,t)}function R0t(e,t){return !e||e.type!=="RecordExpression"?!1:t==null||(0, B.default)(e,t)}function M0t(e,t){return !e||e.type!=="TupleExpression"?!1:t==null||(0, B.default)(e,t)}function L0t(e,t){return !e||e.type!=="DecimalLiteral"?!1:t==null||(0, B.default)(e,t)}function k0t(e,t){return !e||e.type!=="ModuleExpression"?!1:t==null||(0, B.default)(e,t)}function F0t(e,t){return !e||e.type!=="TopicReference"?!1:t==null||(0, B.default)(e,t)}function B0t(e,t){return !e||e.type!=="PipelineTopicExpression"?!1:t==null||(0, B.default)(e,t)}function j0t(e,t){return !e||e.type!=="PipelineBareFunction"?!1:t==null||(0, B.default)(e,t)}function U0t(e,t){return !e||e.type!=="PipelinePrimaryTopicReference"?!1:t==null||(0, B.default)(e,t)}function q0t(e,t){return !e||e.type!=="TSParameterProperty"?!1:t==null||(0, B.default)(e,t)}function V0t(e,t){return !e||e.type!=="TSDeclareFunction"?!1:t==null||(0, B.default)(e,t)}function H0t(e,t){return !e||e.type!=="TSDeclareMethod"?!1:t==null||(0, B.default)(e,t)}function G0t(e,t){return !e||e.type!=="TSQualifiedName"?!1:t==null||(0, B.default)(e,t)}function $0t(e,t){return !e||e.type!=="TSCallSignatureDeclaration"?!1:t==null||(0, B.default)(e,t)}function K0t(e,t){return !e||e.type!=="TSConstructSignatureDeclaration"?!1:t==null||(0, B.default)(e,t)}function Y0t(e,t){return !e||e.type!=="TSPropertySignature"?!1:t==null||(0, B.default)(e,t)}function W0t(e,t){return !e||e.type!=="TSMethodSignature"?!1:t==null||(0, B.default)(e,t)}function X0t(e,t){return !e||e.type!=="TSIndexSignature"?!1:t==null||(0, B.default)(e,t)}function z0t(e,t){return !e||e.type!=="TSAnyKeyword"?!1:t==null||(0, B.default)(e,t)}function J0t(e,t){return !e||e.type!=="TSBooleanKeyword"?!1:t==null||(0, B.default)(e,t)}function Q0t(e,t){return !e||e.type!=="TSBigIntKeyword"?!1:t==null||(0, B.default)(e,t)}function Z0t(e,t){return !e||e.type!=="TSIntrinsicKeyword"?!1:t==null||(0, B.default)(e,t)}function ebt(e,t){return !e||e.type!=="TSNeverKeyword"?!1:t==null||(0, B.default)(e,t)}function tbt(e,t){return !e||e.type!=="TSNullKeyword"?!1:t==null||(0, B.default)(e,t)}function rbt(e,t){return !e||e.type!=="TSNumberKeyword"?!1:t==null||(0, B.default)(e,t)}function nbt(e,t){return !e||e.type!=="TSObjectKeyword"?!1:t==null||(0, B.default)(e,t)}function ibt(e,t){return !e||e.type!=="TSStringKeyword"?!1:t==null||(0, B.default)(e,t)}function sbt(e,t){return !e||e.type!=="TSSymbolKeyword"?!1:t==null||(0, B.default)(e,t)}function abt(e,t){return !e||e.type!=="TSUndefinedKeyword"?!1:t==null||(0, B.default)(e,t)}function obt(e,t){return !e||e.type!=="TSUnknownKeyword"?!1:t==null||(0, B.default)(e,t)}function ubt(e,t){return !e||e.type!=="TSVoidKeyword"?!1:t==null||(0, B.default)(e,t)}function lbt(e,t){return !e||e.type!=="TSThisType"?!1:t==null||(0, B.default)(e,t)}function cbt(e,t){return !e||e.type!=="TSFunctionType"?!1:t==null||(0, B.default)(e,t)}function pbt(e,t){return !e||e.type!=="TSConstructorType"?!1:t==null||(0, B.default)(e,t)}function fbt(e,t){return !e||e.type!=="TSTypeReference"?!1:t==null||(0, B.default)(e,t)}function hbt(e,t){return !e||e.type!=="TSTypePredicate"?!1:t==null||(0, B.default)(e,t)}function dbt(e,t){return !e||e.type!=="TSTypeQuery"?!1:t==null||(0, B.default)(e,t)}function mbt(e,t){return !e||e.type!=="TSTypeLiteral"?!1:t==null||(0, B.default)(e,t)}function ybt(e,t){return !e||e.type!=="TSArrayType"?!1:t==null||(0, B.default)(e,t)}function gbt(e,t){return !e||e.type!=="TSTupleType"?!1:t==null||(0, B.default)(e,t)}function Sbt(e,t){return !e||e.type!=="TSOptionalType"?!1:t==null||(0, B.default)(e,t)}function Tbt(e,t){return !e||e.type!=="TSRestType"?!1:t==null||(0, B.default)(e,t)}function Ebt(e,t){return !e||e.type!=="TSNamedTupleMember"?!1:t==null||(0, B.default)(e,t)}function bbt(e,t){return !e||e.type!=="TSUnionType"?!1:t==null||(0, B.default)(e,t)}function vbt(e,t){return !e||e.type!=="TSIntersectionType"?!1:t==null||(0, B.default)(e,t)}function _bt(e,t){return !e||e.type!=="TSConditionalType"?!1:t==null||(0, B.default)(e,t)}function xbt(e,t){return !e||e.type!=="TSInferType"?!1:t==null||(0, B.default)(e,t)}function Abt(e,t){return !e||e.type!=="TSParenthesizedType"?!1:t==null||(0, B.default)(e,t)}function Pbt(e,t){return !e||e.type!=="TSTypeOperator"?!1:t==null||(0, B.default)(e,t)}function Cbt(e,t){return !e||e.type!=="TSIndexedAccessType"?!1:t==null||(0, B.default)(e,t)}function wbt(e,t){return !e||e.type!=="TSMappedType"?!1:t==null||(0, B.default)(e,t)}function Ibt(e,t){return !e||e.type!=="TSLiteralType"?!1:t==null||(0, B.default)(e,t)}function Obt(e,t){return !e||e.type!=="TSExpressionWithTypeArguments"?!1:t==null||(0, B.default)(e,t)}function Dbt(e,t){return !e||e.type!=="TSInterfaceDeclaration"?!1:t==null||(0, B.default)(e,t)}function Nbt(e,t){return !e||e.type!=="TSInterfaceBody"?!1:t==null||(0, B.default)(e,t)}function Rbt(e,t){return !e||e.type!=="TSTypeAliasDeclaration"?!1:t==null||(0, B.default)(e,t)}function Mbt(e,t){return !e||e.type!=="TSInstantiationExpression"?!1:t==null||(0, B.default)(e,t)}function Lbt(e,t){return !e||e.type!=="TSAsExpression"?!1:t==null||(0, B.default)(e,t)}function kbt(e,t){return !e||e.type!=="TSSatisfiesExpression"?!1:t==null||(0, B.default)(e,t)}function Fbt(e,t){return !e||e.type!=="TSTypeAssertion"?!1:t==null||(0, B.default)(e,t)}function Bbt(e,t){return !e||e.type!=="TSEnumDeclaration"?!1:t==null||(0, B.default)(e,t)}function jbt(e,t){return !e||e.type!=="TSEnumMember"?!1:t==null||(0, B.default)(e,t)}function Ubt(e,t){return !e||e.type!=="TSModuleDeclaration"?!1:t==null||(0, B.default)(e,t)}function qbt(e,t){return !e||e.type!=="TSModuleBlock"?!1:t==null||(0, B.default)(e,t)}function Vbt(e,t){return !e||e.type!=="TSImportType"?!1:t==null||(0, B.default)(e,t)}function Hbt(e,t){return !e||e.type!=="TSImportEqualsDeclaration"?!1:t==null||(0, B.default)(e,t)}function Gbt(e,t){return !e||e.type!=="TSExternalModuleReference"?!1:t==null||(0, B.default)(e,t)}function $bt(e,t){return !e||e.type!=="TSNonNullExpression"?!1:t==null||(0, B.default)(e,t)}function Kbt(e,t){return !e||e.type!=="TSExportAssignment"?!1:t==null||(0, B.default)(e,t)}function Ybt(e,t){return !e||e.type!=="TSNamespaceExportDeclaration"?!1:t==null||(0, B.default)(e,t)}function Wbt(e,t){return !e||e.type!=="TSTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function Xbt(e,t){return !e||e.type!=="TSTypeParameterInstantiation"?!1:t==null||(0, B.default)(e,t)}function zbt(e,t){return !e||e.type!=="TSTypeParameterDeclaration"?!1:t==null||(0, B.default)(e,t)}function Jbt(e,t){return !e||e.type!=="TSTypeParameter"?!1:t==null||(0, B.default)(e,t)}function Qbt(e,t){if(!e)return !1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return !1}break;default:return !1}return t==null||(0, B.default)(e,t)}function Zbt(e,t){if(!e)return !1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return !1}break;default:return !1}return t==null||(0, B.default)(e,t)}function evt(e,t){if(!e)return !1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return !1}return t==null||(0, B.default)(e,t)}function tvt(e,t){if(!e)return !1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return !1}return t==null||(0, B.default)(e,t)}function rvt(e,t){if(!e)return !1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return !1}return t==null||(0, B.default)(e,t)}function nvt(e,t){if(!e)return !1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return !1}return t==null||(0, B.default)(e,t)}function ivt(e,t){if(!e)return !1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return !1}break;default:return !1}return t==null||(0, B.default)(e,t)}function svt(e,t){if(!e)return !1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return !1}return t==null||(0, B.default)(e,t)}function avt(e,t){if(!e)return !1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return !1}return t==null||(0, B.default)(e,t)}function ovt(e,t){if(!e)return !1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return !1}return t==null||(0, B.default)(e,t)}function uvt(e,t){if(!e)return !1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return !1}return t==null||(0, B.default)(e,t)}function lvt(e,t){if(!e)return !1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return !1}return t==null||(0, B.default)(e,t)}function cvt(e,t){if(!e)return !1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return !1}return t==null||(0, B.default)(e,t)}function pvt(e,t){if(!e)return !1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return !1}return t==null||(0, B.default)(e,t)}function fvt(e,t){if(!e)return !1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return !1}return t==null||(0, B.default)(e,t)}function hvt(e,t){if(!e)return !1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return !1}return t==null||(0, B.default)(e,t)}function dvt(e,t){if(!e)return !1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return !1}return t==null||(0, B.default)(e,t)}function mvt(e,t){if(!e)return !1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return !1}return t==null||(0, B.default)(e,t)}function yvt(e,t){if(!e)return !1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":break;case"Placeholder":if(e.expectedNode==="Declaration")break;default:return !1}return t==null||(0, B.default)(e,t)}function gvt(e,t){if(!e)return !1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return !1}break;default:return !1}return t==null||(0, B.default)(e,t)}function Svt(e,t){if(!e)return !1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return !1}break;default:return !1}return t==null||(0, B.default)(e,t)}function Tvt(e,t){if(!e)return !1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return !1}return t==null||(0, B.default)(e,t)}function Evt(e,t){if(!e)return !1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return !1}return t==null||(0, B.default)(e,t)}function bvt(e,t){if(!e)return !1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return !1}return t==null||(0, B.default)(e,t)}function vvt(e,t){if(!e)return !1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return !1}return t==null||(0, B.default)(e,t)}function _vt(e,t){if(!e)return !1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return !1}return t==null||(0, B.default)(e,t)}function xvt(e,t){if(!e)return !1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return !1}return t==null||(0, B.default)(e,t)}function Avt(e,t){if(!e)return !1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return !1}return t==null||(0, B.default)(e,t)}function Pvt(e,t){if(!e)return !1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return !1}return t==null||(0, B.default)(e,t)}function Cvt(e,t){if(!e)return !1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return !1}return t==null||(0, B.default)(e,t)}function wvt(e,t){if(!e)return !1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return !1}return t==null||(0, B.default)(e,t)}function m_e(e,t){if(!e)return !1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return !1}return t==null||(0, B.default)(e,t)}function Ivt(e,t){if(!e)return !1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return !1}return t==null||(0, B.default)(e,t)}function Ovt(e,t){if(!e)return !1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return !1}return t==null||(0, B.default)(e,t)}function Dvt(e,t){if(!e)return !1;switch(e.type){case"ClassAccessorProperty":break;default:return !1}return t==null||(0, B.default)(e,t)}function Nvt(e,t){if(!e)return !1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return !1}return t==null||(0, B.default)(e,t)}function Rvt(e,t){if(!e)return !1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return !1}return t==null||(0, B.default)(e,t)}function Mvt(e,t){if(!e)return !1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return !1}return t==null||(0, B.default)(e,t)}function Lvt(e,t){if(!e)return !1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return !1}return t==null||(0, B.default)(e,t)}function kvt(e,t){if(!e)return !1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return !1}return t==null||(0, B.default)(e,t)}function Fvt(e,t){if(!e)return !1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return !1}return t==null||(0, B.default)(e,t)}function Bvt(e,t){if(!e)return !1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return !1}return t==null||(0, B.default)(e,t)}function jvt(e,t){if(!e)return !1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return !1}return t==null||(0, B.default)(e,t)}function Uvt(e,t){if(!e)return !1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return !1}return t==null||(0, B.default)(e,t)}function qvt(e,t){if(!e)return !1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return !1}return t==null||(0, B.default)(e,t)}function Vvt(e,t){if(!e)return !1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return !1}return t==null||(0, B.default)(e,t)}function Hvt(e,t){if(!e)return !1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return !1}return t==null||(0, B.default)(e,t)}function Gvt(e,t){if(!e)return !1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return !1}return t==null||(0, B.default)(e,t)}function $vt(e,t){if(!e)return !1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSLiteralType":break;default:return !1}return t==null||(0, B.default)(e,t)}function Kvt(e,t){return (0, Nb.default)("isNumberLiteral","isNumericLiteral"),!e||e.type!=="NumberLiteral"?!1:t==null||(0, B.default)(e,t)}function Yvt(e,t){return (0, Nb.default)("isRegexLiteral","isRegExpLiteral"),!e||e.type!=="RegexLiteral"?!1:t==null||(0, B.default)(e,t)}function Wvt(e,t){return (0, Nb.default)("isRestProperty","isRestElement"),!e||e.type!=="RestProperty"?!1:t==null||(0, B.default)(e,t)}function Xvt(e,t){return (0, Nb.default)("isSpreadProperty","isSpreadElement"),!e||e.type!=="SpreadProperty"?!1:t==null||(0, B.default)(e,t)}function zvt(e,t){return (0, Nb.default)("isModuleDeclaration","isImportOrExportDeclaration"),m_e(e,t)}});var Lj=chunkTKGT252T_js.c(Mj=>{Object.defineProperty(Mj,"__esModule",{value:!0});Mj.default=Jvt;var Rb=ci();function Jvt(e,t,r){if(!(0, Rb.isMemberExpression)(e))return !1;let n=Array.isArray(t)?t:t.split("."),i=[],s;for(s=e;(0, Rb.isMemberExpression)(s);s=s.object)i.push(s.property);if(i.push(s),i.lengthn.length)return !1;for(let a=0,o=i.length-1;a{Object.defineProperty(kj,"__esModule",{value:!0});kj.default=Zvt;var Qvt=Lj();function Zvt(e,t){let r=e.split(".");return n=>(0, Qvt.default)(n,r,t)}});var y_e=chunkTKGT252T_js.c(ww=>{Object.defineProperty(ww,"__esModule",{value:!0});ww.default=void 0;var e_t=Fj(),t_t=(0, e_t.default)("React.Component");ww.default=t_t;});var g_e=chunkTKGT252T_js.c(Bj=>{Object.defineProperty(Bj,"__esModule",{value:!0});Bj.default=r_t;function r_t(e){return !!e&&/^[a-z]/.test(e)}});var jj=chunkTKGT252T_js.c((Han,S_e)=>{var Mb=null;function Lb(e){if(Mb!==null&&typeof Mb.property){let t=Mb;return Mb=Lb.prototype=null,t}return Mb=Lb.prototype=e??Object.create(null),new Lb}Lb();S_e.exports=function(t){return Lb(t)};});var Iw=chunkTKGT252T_js.c(Uj=>{Object.defineProperty(Uj,"__esModule",{value:!0});Uj.default=n_t;var T_e=xo();function n_t(e,t){if(e===t)return !0;if(e==null||T_e.ALIAS_KEYS[t])return !1;let r=T_e.FLIPPED_ALIAS_KEYS[t];if(r){if(r[0]===e)return !0;for(let n of r)if(e===n)return !0}return !1}});var Vj=chunkTKGT252T_js.c(qj=>{Object.defineProperty(qj,"__esModule",{value:!0});qj.default=s_t;var i_t=xo();function s_t(e,t){if(e===t)return !0;let r=i_t.PLACEHOLDERS_ALIAS[e];if(r){for(let n of r)if(t===n)return !0}return !1}});var SS=chunkTKGT252T_js.c(Hj=>{Object.defineProperty(Hj,"__esModule",{value:!0});Hj.default=c_t;var a_t=Cw(),o_t=Iw(),u_t=Vj(),l_t=xo();function c_t(e,t,r){return t?(0, o_t.default)(t.type,e)?typeof r>"u"?!0:(0, a_t.default)(t,r):!r&&t.type==="Placeholder"&&e in l_t.FLIPPED_ALIAS_KEYS?(0, u_t.default)(t.expectedNode,e):!1:!1}});var TS=chunkTKGT252T_js.c($j=>{Object.defineProperty($j,"__esModule",{value:!0});$j.default=p_t;var Gj=chunkF6FLWRPJ_js.k();function p_t(e,t=!0){return typeof e!="string"||t&&((0, Gj.isKeyword)(e)||(0, Gj.isStrictReservedWord)(e,!0))?!1:(0, Gj.isIdentifierName)(e)}});var __e=chunkTKGT252T_js.c(kb=>{Object.defineProperty(kb,"__esModule",{value:!0});kb.readCodePoint=v_e;kb.readInt=b_e;kb.readStringContents=h_t;var f_t=function(t){return t>=48&&t<=57},E_e={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Ow={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function h_t(e,t,r,n,i,s){let a=r,o=n,u=i,l="",c=null,p=r,{length:h}=t;for(;;){if(r>=h){s.unterminated(a,o,u),l+=t.slice(p,r);break}let f=t.charCodeAt(r);if(d_t(e,f,t,r)){l+=t.slice(p,r);break}if(f===92){l+=t.slice(p,r);let d=m_t(t,r,n,i,e==="template",s);d.ch===null&&!c?c={pos:r,lineStart:n,curLine:i}:l+=d.ch,{pos:r,lineStart:n,curLine:i}=d,p=r;}else f===8232||f===8233?(++r,++i,n=r):f===10||f===13?e==="template"?(l+=t.slice(p,r)+` `,++r,f===13&&t.charCodeAt(r)===10&&++r,++i,p=n=r):s.unterminated(a,o,u):++r;}return {pos:r,str:l,firstInvalidLoc:c,lineStart:n,curLine:i,containsInvalid:!!c}}function d_t(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function m_t(e,t,r,n,i,s){let a=!i;t++;let o=l=>({pos:t,ch:l,lineStart:r,curLine:n}),u=e.charCodeAt(t++);switch(u){case 110:return o(` `);case 114:return o("\r");case 120:{let l;return {code:l,pos:t}=Kj(e,t,r,n,2,!1,a,s),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return {code:l,pos:t}=v_e(e,t,r,n,a,s),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,r,n);default:if(u>=48&&u<=55){let l=t-1,p=e.slice(l,t+2).match(/^[0-7]+/)[0],h=parseInt(p,8);h>255&&(p=p.slice(0,-1),h=parseInt(p,8)),t+=p.length-1;let f=e.charCodeAt(t);if(p!=="0"||f===56||f===57){if(i)return o(null);s.strictNumericEscape(l,r,n);}return o(String.fromCharCode(h))}return o(String.fromCharCode(u))}}function Kj(e,t,r,n,i,s,a,o){let u=t,l;return {n:l,pos:t}=b_e(e,t,r,n,16,i,s,!1,o,!a),l===null&&(a?o.invalidEscapeSequence(u,r,n):t=u-1),{code:l,pos:t}}function b_e(e,t,r,n,i,s,a,o,u,l){let c=t,p=i===16?E_e.hex:E_e.decBinOct,h=i===16?Ow.hex:i===10?Ow.dec:i===8?Ow.oct:Ow.bin,f=!1,d=0;for(let m=0,y=s??1/0;m=97?v=g-97+10:g>=65?v=g-65+10:f_t(g)?v=g-48:v=1/0,v>=i){if(v<=9&&l)return {n:null,pos:t};if(v<=9&&u.invalidDigit(t,r,n,i))v=0;else if(a)v=0,f=!0;else break}++t,d=d*i+v;}return t===c||s!=null&&t-c!==s||f?{n:null,pos:t}:{n:d,pos:t}}function v_e(e,t,r,n,i,s){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Kj(e,t,r,n,e.indexOf("}",t)-t,!0,i,s),++t,o!==null&&o>1114111)if(i)s.invalidCodePoint(t,r,n);else return {code:null,pos:t}}else ({code:o,pos:t}=Kj(e,t,r,n,4,!1,i,s));return {code:o,pos:t}}});var Lf=chunkTKGT252T_js.c(Kt=>{Object.defineProperty(Kt,"__esModule",{value:!0});Kt.UPDATE_OPERATORS=Kt.UNARY_OPERATORS=Kt.STRING_UNARY_OPERATORS=Kt.STATEMENT_OR_BLOCK_KEYS=Kt.NUMBER_UNARY_OPERATORS=Kt.NUMBER_BINARY_OPERATORS=Kt.NOT_LOCAL_BINDING=Kt.LOGICAL_OPERATORS=Kt.INHERIT_KEYS=Kt.FOR_INIT_KEYS=Kt.FLATTENABLE_KEYS=Kt.EQUALITY_BINARY_OPERATORS=Kt.COMPARISON_BINARY_OPERATORS=Kt.COMMENT_KEYS=Kt.BOOLEAN_UNARY_OPERATORS=Kt.BOOLEAN_NUMBER_BINARY_OPERATORS=Kt.BOOLEAN_BINARY_OPERATORS=Kt.BLOCK_SCOPED_SYMBOL=Kt.BINARY_OPERATORS=Kt.ASSIGNMENT_OPERATORS=void 0;Kt.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];Kt.FLATTENABLE_KEYS=["body","expressions"];Kt.FOR_INIT_KEYS=["left","init"];Kt.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];var y_t=Kt.LOGICAL_OPERATORS=["||","&&","??"];Kt.UPDATE_OPERATORS=["++","--"];var g_t=Kt.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],S_t=Kt.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],T_t=Kt.COMPARISON_BINARY_OPERATORS=[...S_t,"in","instanceof"],E_t=Kt.BOOLEAN_BINARY_OPERATORS=[...T_t,...g_t],x_e=Kt.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];Kt.BINARY_OPERATORS=["+",...x_e,...E_t,"|>"];Kt.ASSIGNMENT_OPERATORS=["=","+=",...x_e.map(e=>e+"="),...y_t.map(e=>e+"=")];var b_t=Kt.BOOLEAN_UNARY_OPERATORS=["delete","!"],v_t=Kt.NUMBER_UNARY_OPERATORS=["+","-","~"],__t=Kt.STRING_UNARY_OPERATORS=["typeof"];Kt.UNARY_OPERATORS=["void","throw",...b_t,...v_t,...__t];Kt.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};Kt.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");Kt.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding");});var _c=chunkTKGT252T_js.c(wr=>{Object.defineProperty(wr,"__esModule",{value:!0});wr.VISITOR_KEYS=wr.NODE_PARENT_VALIDATIONS=wr.NODE_FIELDS=wr.FLIPPED_ALIAS_KEYS=wr.DEPRECATED_KEYS=wr.BUILDER_KEYS=wr.ALIAS_KEYS=void 0;wr.arrayOf=P_e;wr.arrayOfType=C_e;wr.assertEach=w_e;wr.assertNodeOrValueType=L_t;wr.assertNodeType=Wj;wr.assertOneOf=M_t;wr.assertOptionalChainStart=F_t;wr.assertShape=k_t;wr.assertValueType=Jj;wr.chain=I_e;wr.default=O_e;wr.defineAliasedType=U_t;wr.typeIs=Rw;wr.validate=zj;wr.validateArrayOfType=R_t;wr.validateOptional=D_t;wr.validateOptionalType=N_t;wr.validateType=O_t;var A_e=SS(),Nw=Mw(),x_t=wr.VISITOR_KEYS={},A_t=wr.ALIAS_KEYS={},Yj=wr.FLIPPED_ALIAS_KEYS={},P_t=wr.NODE_FIELDS={},C_t=wr.BUILDER_KEYS={},w_t=wr.DEPRECATED_KEYS={},I_t=wr.NODE_PARENT_VALIDATIONS={};function Dw(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function zj(e){return {validate:e}}function Rw(e){return typeof e=="string"?Wj(e):Wj(...e)}function O_t(e){return zj(Rw(e))}function D_t(e){return {validate:e,optional:!0}}function N_t(e){return {validate:Rw(e),optional:!0}}function P_e(e){return I_e(Jj("array"),w_e(e))}function C_e(e){return P_e(Rw(e))}function R_t(e){return zj(C_e(e))}function w_e(e){function t(r,n,i){if(Array.isArray(i))for(let s=0;s=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var B_t=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],j_t=["default","optional","deprecated","validate"],Xj={};function U_t(...e){return (t,r={})=>{let n=r.aliases;if(!n){var i;r.inherits&&(n=(i=Xj[r.inherits].aliases)==null?void 0:i.slice()),(n)!=null||(n=[]),r.aliases=n;}let a=e.filter(o=>!n.includes(o));n.unshift(...a),O_e(t,r);}}function O_e(e,t={}){let r=t.inherits&&Xj[t.inherits]||{},n=t.fields;if(!n&&(n={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let u of o){let l=r.fields[u],c=l.default;if(Array.isArray(c)?c.length>0:c&&typeof c=="object")throw new Error("field defaults can only be primitives or empty arrays currently");n[u]={default:Array.isArray(c)?[]:c,optional:l.optional,deprecated:l.deprecated,validate:l.validate};}}let i=t.visitor||r.visitor||[],s=t.aliases||r.aliases||[],a=t.builder||r.builder||t.visitor||[];for(let o of Object.keys(t))if(B_t.indexOf(o)===-1)throw new Error(`Unknown type option "${o}" on ${e}`);t.deprecatedAlias&&(w_t[t.deprecatedAlias]=e);for(let o of i.concat(a))n[o]=n[o]||{};for(let o of Object.keys(n)){let u=n[o];u.default!==void 0&&a.indexOf(o)===-1&&(u.optional=!0),u.default===void 0?u.default=null:!u.validate&&u.default!=null&&(u.validate=Jj(Dw(u.default)));for(let l of Object.keys(u))if(j_t.indexOf(l)===-1)throw new Error(`Unknown field key "${l}" on ${e}.${o}`)}x_t[e]=t.visitor=i,C_t[e]=t.builder=a,P_t[e]=t.fields=n,A_t[e]=t.aliases=s,s.forEach(o=>{Yj[o]=Yj[o]||[],Yj[o].push(e);}),t.validate&&(I_t[e]=t.validate),Xj[e]=t;}});var Zj=chunkTKGT252T_js.c(Sa=>{Object.defineProperty(Sa,"__esModule",{value:!0});Sa.patternLikeCommon=Sa.functionTypeAnnotationCommon=Sa.functionDeclarationCommon=Sa.functionCommon=Sa.classMethodOrPropertyCommon=Sa.classMethodOrDeclareMethodCommon=void 0;var qs=SS(),q_t=TS(),D_e=chunkF6FLWRPJ_js.k(),V_t=__e(),Fb=Lf(),w=_c(),Oe=(0, w.defineAliasedType)("Standardized");Oe("ArrayExpression",{fields:{elements:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});Oe("AssignmentExpression",{fields:{operator:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return (0, w.assertValueType)("string");let e=(0, w.assertOneOf)(...Fb.ASSIGNMENT_OPERATORS),t=(0, w.assertOneOf)("=");return function(r,n,i){((0, qs.default)("Pattern",r.left)?t:e)(r,n,i);}}()},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, w.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0, w.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0, w.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});Oe("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0, w.assertOneOf)(...Fb.BINARY_OPERATORS)},left:{validate:function(){let e=(0, w.assertNodeType)("Expression"),t=(0, w.assertNodeType)("Expression","PrivateName");return Object.assign(function(n,i,s){(n.operator==="in"?t:e)(n,i,s);},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0, w.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});Oe("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0, w.assertValueType)("string")}}});Oe("Directive",{visitor:["value"],fields:{value:{validate:(0, w.assertNodeType)("DirectiveLiteral")}}});Oe("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0, w.assertValueType)("string")}}});Oe("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Directive"))),default:[]},body:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]});Oe("BreakStatement",{visitor:["label"],fields:{label:{validate:(0, w.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});Oe("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0, w.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Expression","SpreadElement","ArgumentPlaceholder")))}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0, w.assertOneOf)(!0,!1),optional:!0}},{typeArguments:{validate:(0, w.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0, w.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});Oe("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0, w.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0, w.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});Oe("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0, w.assertNodeType)("Expression")},consequent:{validate:(0, w.assertNodeType)("Expression")},alternate:{validate:(0, w.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});Oe("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0, w.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});Oe("DebuggerStatement",{aliases:["Statement"]});Oe("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:(0, w.assertNodeType)("Expression")},body:{validate:(0, w.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});Oe("EmptyStatement",{aliases:["Statement"]});Oe("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0, w.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});Oe("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0, w.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, w.assertEach)((0, w.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0, w.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});Oe("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, w.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0, w.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0, w.assertNodeType)("Expression")},body:{validate:(0, w.assertNodeType)("Statement")}}});Oe("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0, w.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0, w.assertNodeType)("Expression"),optional:!0},update:{validate:(0, w.assertNodeType)("Expression"),optional:!0},body:{validate:(0, w.assertNodeType)("Statement")}}});var ES=()=>({params:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Identifier","Pattern","RestElement")))},generator:{default:!1},async:{default:!1}});Sa.functionCommon=ES;var kd=()=>({returnType:{validate:(0, w.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0, w.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});Sa.functionTypeAnnotationCommon=kd;var N_e=()=>Object.assign({},ES(),{declare:{validate:(0, w.assertValueType)("boolean"),optional:!0},id:{validate:(0, w.assertNodeType)("Identifier"),optional:!0}});Sa.functionDeclarationCommon=N_e;Oe("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:Object.assign({},N_e(),kd(),{body:{validate:(0, w.assertNodeType)("BlockStatement")},predicate:{validate:(0, w.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return ()=>{};let e=(0, w.assertNodeType)("Identifier");return function(t,r,n){(0, qs.default)("ExportDefaultDeclaration",t)||e(n,"id",n.id);}}()});Oe("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},ES(),kd(),{id:{validate:(0, w.assertNodeType)("Identifier"),optional:!0},body:{validate:(0, w.assertNodeType)("BlockStatement")},predicate:{validate:(0, w.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var bS=()=>({typeAnnotation:{validate:(0, w.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0, w.assertValueType)("boolean"),optional:!0},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0}});Sa.patternLikeCommon=bS;Oe("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},bS(),{name:{validate:(0, w.chain)((0, w.assertValueType)("string"),Object.assign(function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&!(0, q_t.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)},{type:"string"}))}}),validate(e,t,r){if(!process.env.BABEL_TYPES_8_BREAKING)return;let n=/\.(\w+)$/.exec(t);if(!n)return;let[,i]=n,s={computed:!1};if(i==="property"){if((0, qs.default)("MemberExpression",e,s)||(0, qs.default)("OptionalMemberExpression",e,s))return}else if(i==="key"){if((0, qs.default)("Property",e,s)||(0, qs.default)("Method",e,s))return}else if(i==="exported"){if((0, qs.default)("ExportSpecifier",e))return}else if(i==="imported"){if((0, qs.default)("ImportSpecifier",e,{imported:r}))return}else if(i==="meta"&&(0, qs.default)("MetaProperty",e,{meta:r}))return;if(((0, D_e.isKeyword)(r.name)||(0, D_e.isReservedWord)(r.name,!1))&&r.name!=="this")throw new TypeError(`"${r.name}" is not a valid identifier`)}});Oe("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0, w.assertNodeType)("Expression")},consequent:{validate:(0, w.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0, w.assertNodeType)("Statement")}}});Oe("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0, w.assertNodeType)("Identifier")},body:{validate:(0, w.assertNodeType)("Statement")}}});Oe("StringLiteral",{builder:["value"],fields:{value:{validate:(0, w.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});Oe("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0, w.chain)((0, w.assertValueType)("number"),Object.assign(function(e,t,r){},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});Oe("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});Oe("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0, w.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});Oe("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0, w.assertValueType)("string")},flags:{validate:(0, w.chain)((0, w.assertValueType)("string"),Object.assign(function(e,t,r){if(!process.env.BABEL_TYPES_8_BREAKING)return;let n=/[^gimsuy]/.exec(r);if(n)throw new TypeError(`"${n[0]}" is not a valid RegExp flag`)},{type:"string"})),default:""}}});Oe("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0, w.assertOneOf)(...Fb.LOGICAL_OPERATORS)},left:{validate:(0, w.assertNodeType)("Expression")},right:{validate:(0, w.assertNodeType)("Expression")}}});Oe("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0, w.assertNodeType)("Expression","Super")},property:{validate:function(){let e=(0, w.assertNodeType)("Identifier","PrivateName"),t=(0, w.assertNodeType)("Expression"),r=function(n,i,s){(n.computed?t:e)(n,i,s);};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0, w.assertOneOf)(!0,!1),optional:!0}})});Oe("NewExpression",{inherits:"CallExpression"});Oe("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0, w.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0, w.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Directive"))),default:[]},body:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block"]});Oe("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("ObjectMethod","ObjectProperty","SpreadElement")))}}});Oe("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],fields:Object.assign({},ES(),kd(),{kind:Object.assign({validate:(0, w.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){let e=(0, w.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0, w.assertNodeType)("Expression"),r=function(n,i,s){(n.computed?t:e)(n,i,s);};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r}()},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0},body:{validate:(0, w.assertNodeType)("BlockStatement")}}),visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]});Oe("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){let e=(0, w.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0, w.assertNodeType)("Expression");return Object.assign(function(n,i,s){(n.computed?t:e)(n,i,s);},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0, w.assertNodeType)("Expression","PatternLike")},shorthand:{validate:(0, w.chain)((0, w.assertValueType)("boolean"),Object.assign(function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true")},{type:"boolean"}),function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&!(0, qs.default)("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}),default:!1},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:function(){let e=(0, w.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0, w.assertNodeType)("Expression");return function(r,n,i){if(!process.env.BABEL_TYPES_8_BREAKING)return;((0, qs.default)("ObjectPattern",r)?e:t)(i,"value",i.value);}}()});Oe("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},bS(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, w.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0, w.assertNodeType)("LVal")}}),validate(e,t){if(!process.env.BABEL_TYPES_8_BREAKING)return;let r=/(\w+)\[(\d+)\]/.exec(t);if(!r)throw new Error("Internal Babel error: malformed key.");let[,n,i]=r;if(e[n].length>+i+1)throw new TypeError(`RestElement must be last element of ${n}`)}});Oe("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0, w.assertNodeType)("Expression"),optional:!0}}});Oe("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Expression")))}},aliases:["Expression"]});Oe("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0, w.assertNodeType)("Expression")}}});Oe("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0, w.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Statement")))}}});Oe("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0, w.assertNodeType)("Expression")},cases:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("SwitchCase")))}}});Oe("ThisExpression",{aliases:["Expression"]});Oe("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0, w.assertNodeType)("Expression")}}});Oe("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:(0, w.chain)((0, w.assertNodeType)("BlockStatement"),Object.assign(function(e){if(process.env.BABEL_TYPES_8_BREAKING&&!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:(0, w.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0, w.assertNodeType)("BlockStatement")}}});Oe("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0, w.assertNodeType)("Expression")},operator:{validate:(0, w.assertOneOf)(...Fb.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});Oe("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, w.assertNodeType)("Identifier","MemberExpression"):(0, w.assertNodeType)("Expression")},operator:{validate:(0, w.assertOneOf)(...Fb.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});Oe("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0, w.assertValueType)("boolean"),optional:!0},kind:{validate:(0, w.assertOneOf)("var","let","const","using","await using")},declarations:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("VariableDeclarator")))}},validate(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&(0, qs.default)("ForXStatement",e,{left:r})&&r.declarations.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${e.type}`)}});Oe("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return (0, w.assertNodeType)("LVal");let e=(0, w.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),t=(0, w.assertNodeType)("Identifier");return function(r,n,i){(r.init?e:t)(r,n,i);}}()},definite:{optional:!0,validate:(0, w.assertValueType)("boolean")},init:{optional:!0,validate:(0, w.assertNodeType)("Expression")}}});Oe("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0, w.assertNodeType)("Expression")},body:{validate:(0, w.assertNodeType)("Statement")}}});Oe("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0, w.assertNodeType)("Expression")},body:{validate:(0, w.assertNodeType)("Statement")}}});Oe("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},bS(),{left:{validate:(0, w.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0, w.assertNodeType)("Expression")},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0}})});Oe("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},bS(),{elements:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeOrValueType)("null","PatternLike","LVal")))}})});Oe("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},ES(),kd(),{expression:{validate:(0, w.assertValueType)("boolean")},body:{validate:(0, w.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0, w.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});Oe("ClassBody",{visitor:["body"],fields:{body:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")))}}});Oe("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0, w.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0, w.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0, w.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0, w.assertNodeType)("Expression")},superTypeParameters:{validate:(0, w.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0, w.assertNodeType)("InterfaceExtends"),optional:!0}}});Oe("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0, w.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0, w.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0, w.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0, w.assertNodeType)("Expression")},superTypeParameters:{validate:(0, w.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0, w.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0, w.assertValueType)("boolean"),optional:!0},abstract:{validate:(0, w.assertValueType)("boolean"),optional:!0}},validate:function(){let e=(0, w.assertNodeType)("Identifier");return function(t,r,n){process.env.BABEL_TYPES_8_BREAKING&&((0, qs.default)("ExportDefaultDeclaration",t)||e(n,"id",n.id));}}()});Oe("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:(0, w.assertNodeType)("StringLiteral")},exportKind:(0, w.validateOptional)((0, w.assertOneOf)("type","value")),attributes:{optional:!0,validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("ImportAttribute")))}}});Oe("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0, w.assertNodeType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression")},exportKind:(0, w.validateOptional)((0, w.assertOneOf)("value"))}});Oe("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:(0, w.chain)((0, w.assertNodeType)("Declaration"),Object.assign(function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")},{oneOfNodeTypes:["Declaration"]}),function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&e.source)throw new TypeError("Cannot export a declaration from a source")})},attributes:{optional:!0,validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("ImportAttribute")))},specifiers:{default:[],validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)(function(){let e=(0, w.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0, w.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?function(r,n,i){(r.source?e:t)(r,n,i);}:e}()))},source:{validate:(0, w.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0, w.validateOptional)((0, w.assertOneOf)("type","value"))}});Oe("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, w.assertNodeType)("Identifier")},exported:{validate:(0, w.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0, w.assertOneOf)("type","value"),optional:!0}}});Oe("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return (0, w.assertNodeType)("VariableDeclaration","LVal");let e=(0, w.assertNodeType)("VariableDeclaration"),t=(0, w.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return function(r,n,i){(0, qs.default)("VariableDeclaration",i)?e(r,n,i):t(r,n,i);}}()},right:{validate:(0, w.assertNodeType)("Expression")},body:{validate:(0, w.assertNodeType)("Statement")},await:{default:!1}}});Oe("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{attributes:{optional:!0,validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("ImportAttribute")))},module:{optional:!0,validate:(0, w.assertValueType)("boolean")},phase:{default:null,validate:(0, w.assertOneOf)("source","defer")},specifiers:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0, w.assertNodeType)("StringLiteral")},importKind:{validate:(0, w.assertOneOf)("type","typeof","value"),optional:!0}}});Oe("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, w.assertNodeType)("Identifier")}}});Oe("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, w.assertNodeType)("Identifier")}}});Oe("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, w.assertNodeType)("Identifier")},imported:{validate:(0, w.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0, w.assertOneOf)("type","typeof","value"),optional:!0}}});Oe("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0, w.assertOneOf)("source","defer")},source:{validate:(0, w.assertNodeType)("Expression")},options:{validate:(0, w.assertNodeType)("Expression"),optional:!0}}});Oe("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0, w.chain)((0, w.assertNodeType)("Identifier"),Object.assign(function(e,t,r){if(!process.env.BABEL_TYPES_8_BREAKING)return;let n;switch(r.name){case"function":n="sent";break;case"new":n="target";break;case"import":n="meta";break}if(!(0, qs.default)("Identifier",e.property,{name:n}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]}))},property:{validate:(0, w.assertNodeType)("Identifier")}}});var Lw=()=>({abstract:{validate:(0, w.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0, w.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0, w.assertValueType)("boolean"),optional:!0},key:{validate:(0, w.chain)(function(){let e=(0, w.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0, w.assertNodeType)("Expression");return function(r,n,i){(r.computed?t:e)(r,n,i);}}(),(0, w.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});Sa.classMethodOrPropertyCommon=Lw;var Qj=()=>Object.assign({},ES(),Lw(),{params:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Identifier","Pattern","RestElement","TSParameterProperty")))},kind:{validate:(0, w.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0, w.chain)((0, w.assertValueType)("string"),(0, w.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0}});Sa.classMethodOrDeclareMethodCommon=Qj;Oe("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["key","params","body","decorators","returnType","typeParameters"],fields:Object.assign({},Qj(),kd(),{body:{validate:(0, w.assertNodeType)("BlockStatement")}})});Oe("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},bS(),{properties:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("RestElement","ObjectProperty")))}})});Oe("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0, w.assertNodeType)("Expression")}}});Oe("Super",{aliases:["Expression"]});Oe("TaggedTemplateExpression",{visitor:["tag","quasi","typeParameters"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0, w.assertNodeType)("Expression")},quasi:{validate:(0, w.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0, w.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});Oe("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0, w.chain)((0, w.assertShape)({raw:{validate:(0, w.assertValueType)("string")},cooked:{validate:(0, w.assertValueType)("string"),optional:!0}}),function(t){let r=t.value.raw,n=!1,i=()=>{throw new Error("Internal @babel/types error.")},{str:s,firstInvalidLoc:a}=(0, V_t.readStringContents)("template",r,0,0,0,{unterminated(){n=!0;},strictNumericEscape:i,invalidEscapeSequence:i,numericSeparatorInEscapeSequence:i,unexpectedNumericSeparator:i,invalidDigit:i,invalidCodePoint:i});if(!n)throw new Error("Invalid raw");t.value.cooked=a?null:s;})},tail:{default:!1}}});Oe("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("TemplateElement")))},expressions:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Expression","TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions. Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});Oe("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0, w.chain)((0, w.assertValueType)("boolean"),Object.assign(function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})),default:!1},argument:{optional:!0,validate:(0, w.assertNodeType)("Expression")}}});Oe("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0, w.assertNodeType)("Expression")}}});Oe("Import",{aliases:["Expression"]});Oe("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0, w.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});Oe("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0, w.assertNodeType)("Identifier")}}});Oe("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0, w.assertNodeType)("Expression")},property:{validate:function(){let e=(0, w.assertNodeType)("Identifier"),t=(0, w.assertNodeType)("Expression");return Object.assign(function(n,i,s){(n.computed?t:e)(n,i,s);},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, w.chain)((0, w.assertValueType)("boolean"),(0, w.assertOptionalChainStart)()):(0, w.assertValueType)("boolean")}}});Oe("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0, w.assertNodeType)("Expression")},arguments:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Expression","SpreadElement","ArgumentPlaceholder")))},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, w.chain)((0, w.assertValueType)("boolean"),(0, w.assertOptionalChainStart)()):(0, w.assertValueType)("boolean")},typeArguments:{validate:(0, w.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0, w.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}});Oe("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},Lw(),{value:{validate:(0, w.assertNodeType)("Expression"),optional:!0},definite:{validate:(0, w.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0, w.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0, w.assertValueType)("boolean"),optional:!0},declare:{validate:(0, w.assertValueType)("boolean"),optional:!0},variance:{validate:(0, w.assertNodeType)("Variance"),optional:!0}})});Oe("ClassAccessorProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},Lw(),{key:{validate:(0, w.chain)(function(){let e=(0, w.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0, w.assertNodeType)("Expression");return function(r,n,i){(r.computed?t:e)(r,n,i);}}(),(0, w.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0, w.assertNodeType)("Expression"),optional:!0},definite:{validate:(0, w.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0, w.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0, w.assertValueType)("boolean"),optional:!0},declare:{validate:(0, w.assertValueType)("boolean"),optional:!0},variance:{validate:(0, w.assertNodeType)("Variance"),optional:!0}})});Oe("ClassPrivateProperty",{visitor:["key","value","decorators","typeAnnotation"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0, w.assertNodeType)("PrivateName")},value:{validate:(0, w.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0, w.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0},static:{validate:(0, w.assertValueType)("boolean"),default:!1},readonly:{validate:(0, w.assertValueType)("boolean"),optional:!0},definite:{validate:(0, w.assertValueType)("boolean"),optional:!0},variance:{validate:(0, w.assertNodeType)("Variance"),optional:!0}}});Oe("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},Qj(),kd(),{kind:{validate:(0, w.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0, w.assertNodeType)("PrivateName")},body:{validate:(0, w.assertNodeType)("BlockStatement")}})});Oe("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0, w.assertNodeType)("Identifier")}}});Oe("StaticBlock",{visitor:["body"],fields:{body:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","FunctionParent"]});});var R_e=chunkTKGT252T_js.c(()=>{var ee=_c(),nt=(0, ee.defineAliasedType)("Flow"),eU=e=>{let t=e==="DeclareClass";nt(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0, ee.validateType)("Identifier"),typeParameters:(0, ee.validateOptionalType)("TypeParameterDeclaration"),extends:(0, ee.validateOptional)((0, ee.arrayOfType)("InterfaceExtends"))},t?{mixins:(0, ee.validateOptional)((0, ee.arrayOfType)("InterfaceExtends")),implements:(0, ee.validateOptional)((0, ee.arrayOfType)("ClassImplements"))}:{},{body:(0, ee.validateType)("ObjectTypeAnnotation")})});};nt("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0, ee.validateType)("FlowType")}});nt("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0, ee.validate)((0, ee.assertValueType)("boolean"))}});nt("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0, ee.validateType)("Identifier"),typeParameters:(0, ee.validateOptionalType)("TypeParameterInstantiation")}});eU("DeclareClass");nt("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, ee.validateType)("Identifier"),predicate:(0, ee.validateOptionalType)("DeclaredPredicate")}});eU("DeclareInterface");nt("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, ee.validateType)(["Identifier","StringLiteral"]),body:(0, ee.validateType)("BlockStatement"),kind:(0, ee.validateOptional)((0, ee.assertOneOf)("CommonJS","ES"))}});nt("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0, ee.validateType)("TypeAnnotation")}});nt("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, ee.validateType)("Identifier"),typeParameters:(0, ee.validateOptionalType)("TypeParameterDeclaration"),right:(0, ee.validateType)("FlowType")}});nt("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, ee.validateType)("Identifier"),typeParameters:(0, ee.validateOptionalType)("TypeParameterDeclaration"),supertype:(0, ee.validateOptionalType)("FlowType"),impltype:(0, ee.validateOptionalType)("FlowType")}});nt("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, ee.validateType)("Identifier")}});nt("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:(0, ee.validateOptionalType)("Flow"),specifiers:(0, ee.validateOptional)((0, ee.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0, ee.validateOptionalType)("StringLiteral"),default:(0, ee.validateOptional)((0, ee.assertValueType)("boolean"))}});nt("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:(0, ee.validateType)("StringLiteral"),exportKind:(0, ee.validateOptional)((0, ee.assertOneOf)("type","value"))}});nt("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0, ee.validateType)("Flow")}});nt("ExistsTypeAnnotation",{aliases:["FlowType"]});nt("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0, ee.validateOptionalType)("TypeParameterDeclaration"),params:(0, ee.validate)((0, ee.arrayOfType)("FunctionTypeParam")),rest:(0, ee.validateOptionalType)("FunctionTypeParam"),this:(0, ee.validateOptionalType)("FunctionTypeParam"),returnType:(0, ee.validateType)("FlowType")}});nt("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0, ee.validateOptionalType)("Identifier"),typeAnnotation:(0, ee.validateType)("FlowType"),optional:(0, ee.validateOptional)((0, ee.assertValueType)("boolean"))}});nt("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0, ee.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0, ee.validateOptionalType)("TypeParameterInstantiation")}});nt("InferredPredicate",{aliases:["FlowPredicate"]});nt("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0, ee.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0, ee.validateOptionalType)("TypeParameterInstantiation")}});eU("InterfaceDeclaration");nt("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0, ee.validateOptional)((0, ee.arrayOfType)("InterfaceExtends")),body:(0, ee.validateType)("ObjectTypeAnnotation")}});nt("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0, ee.validate)((0, ee.arrayOfType)("FlowType"))}});nt("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0, ee.validateType)("FlowType")}});nt("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0, ee.validate)((0, ee.assertValueType)("number"))}});nt("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0, ee.validate)((0, ee.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:{validate:(0, ee.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0, ee.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0, ee.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0, ee.assertValueType)("boolean"),default:!1},inexact:(0, ee.validateOptional)((0, ee.assertValueType)("boolean"))}});nt("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0, ee.validateType)("Identifier"),value:(0, ee.validateType)("FlowType"),optional:(0, ee.validate)((0, ee.assertValueType)("boolean")),static:(0, ee.validate)((0, ee.assertValueType)("boolean")),method:(0, ee.validate)((0, ee.assertValueType)("boolean"))}});nt("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0, ee.validateType)("FlowType"),static:(0, ee.validate)((0, ee.assertValueType)("boolean"))}});nt("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0, ee.validateOptionalType)("Identifier"),key:(0, ee.validateType)("FlowType"),value:(0, ee.validateType)("FlowType"),static:(0, ee.validate)((0, ee.assertValueType)("boolean")),variance:(0, ee.validateOptionalType)("Variance")}});nt("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0, ee.validateType)(["Identifier","StringLiteral"]),value:(0, ee.validateType)("FlowType"),kind:(0, ee.validate)((0, ee.assertOneOf)("init","get","set")),static:(0, ee.validate)((0, ee.assertValueType)("boolean")),proto:(0, ee.validate)((0, ee.assertValueType)("boolean")),optional:(0, ee.validate)((0, ee.assertValueType)("boolean")),variance:(0, ee.validateOptionalType)("Variance"),method:(0, ee.validate)((0, ee.assertValueType)("boolean"))}});nt("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0, ee.validateType)("FlowType")}});nt("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, ee.validateType)("Identifier"),typeParameters:(0, ee.validateOptionalType)("TypeParameterDeclaration"),supertype:(0, ee.validateOptionalType)("FlowType"),impltype:(0, ee.validateType)("FlowType")}});nt("QualifiedTypeIdentifier",{visitor:["id","qualification"],fields:{id:(0, ee.validateType)("Identifier"),qualification:(0, ee.validateType)(["Identifier","QualifiedTypeIdentifier"])}});nt("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0, ee.validate)((0, ee.assertValueType)("string"))}});nt("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0, ee.validate)((0, ee.arrayOfType)("FlowType"))}});nt("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0, ee.validateType)("FlowType")}});nt("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, ee.validateType)("Identifier"),typeParameters:(0, ee.validateOptionalType)("TypeParameterDeclaration"),right:(0, ee.validateType)("FlowType")}});nt("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0, ee.validateType)("FlowType")}});nt("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0, ee.validateType)("Expression"),typeAnnotation:(0, ee.validateType)("TypeAnnotation")}});nt("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0, ee.validate)((0, ee.assertValueType)("string")),bound:(0, ee.validateOptionalType)("TypeAnnotation"),default:(0, ee.validateOptionalType)("FlowType"),variance:(0, ee.validateOptionalType)("Variance")}});nt("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0, ee.validate)((0, ee.arrayOfType)("TypeParameter"))}});nt("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0, ee.validate)((0, ee.arrayOfType)("FlowType"))}});nt("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0, ee.validate)((0, ee.arrayOfType)("FlowType"))}});nt("Variance",{builder:["kind"],fields:{kind:(0, ee.validate)((0, ee.assertOneOf)("minus","plus"))}});nt("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0, ee.validateType)("Identifier"),body:(0, ee.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}});nt("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0, ee.validate)((0, ee.assertValueType)("boolean")),members:(0, ee.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0, ee.validate)((0, ee.assertValueType)("boolean"))}});nt("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0, ee.validate)((0, ee.assertValueType)("boolean")),members:(0, ee.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0, ee.validate)((0, ee.assertValueType)("boolean"))}});nt("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0, ee.validate)((0, ee.assertValueType)("boolean")),members:(0, ee.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:(0, ee.validate)((0, ee.assertValueType)("boolean"))}});nt("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0, ee.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0, ee.validate)((0, ee.assertValueType)("boolean"))}});nt("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0, ee.validateType)("Identifier"),init:(0, ee.validateType)("BooleanLiteral")}});nt("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0, ee.validateType)("Identifier"),init:(0, ee.validateType)("NumericLiteral")}});nt("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0, ee.validateType)("Identifier"),init:(0, ee.validateType)("StringLiteral")}});nt("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0, ee.validateType)("Identifier")}});nt("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0, ee.validateType)("FlowType"),indexType:(0, ee.validateType)("FlowType")}});nt("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0, ee.validateType)("FlowType"),indexType:(0, ee.validateType)("FlowType"),optional:(0, ee.validate)((0, ee.assertValueType)("boolean"))}});});var M_e=chunkTKGT252T_js.c(()=>{var kr=_c(),Vs=(0, kr.defineAliasedType)("JSX");Vs("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0, kr.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0, kr.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});Vs("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0, kr.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});Vs("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0, kr.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0, kr.assertNodeType)("JSXClosingElement")},children:{validate:(0, kr.chain)((0, kr.assertValueType)("array"),(0, kr.assertEach)((0, kr.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}},{selfClosing:{validate:(0, kr.assertValueType)("boolean"),optional:!0}})});Vs("JSXEmptyExpression",{});Vs("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0, kr.assertNodeType)("Expression","JSXEmptyExpression")}}});Vs("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0, kr.assertNodeType)("Expression")}}});Vs("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0, kr.assertValueType)("string")}}});Vs("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0, kr.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0, kr.assertNodeType)("JSXIdentifier")}}});Vs("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0, kr.assertNodeType)("JSXIdentifier")},name:{validate:(0, kr.assertNodeType)("JSXIdentifier")}}});Vs("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:(0, kr.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:(0, kr.chain)((0, kr.assertValueType)("array"),(0, kr.assertEach)((0, kr.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0, kr.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});Vs("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0, kr.assertNodeType)("Expression")}}});Vs("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0, kr.assertValueType)("string")}}});Vs("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0, kr.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0, kr.assertNodeType)("JSXClosingFragment")},children:{validate:(0, kr.chain)((0, kr.assertValueType)("array"),(0, kr.assertEach)((0, kr.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}});Vs("JSXOpeningFragment",{aliases:["Immutable"]});Vs("JSXClosingFragment",{aliases:["Immutable"]});});var nU=chunkTKGT252T_js.c(kf=>{Object.defineProperty(kf,"__esModule",{value:!0});kf.PLACEHOLDERS_FLIPPED_ALIAS=kf.PLACEHOLDERS_ALIAS=kf.PLACEHOLDERS=void 0;var H_t=_c(),G_t=kf.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],rU=kf.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of G_t){let t=H_t.ALIAS_KEYS[e];t!=null&&t.length&&(rU[e]=t);}var tU=kf.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(rU).forEach(e=>{rU[e].forEach(t=>{hasOwnProperty.call(tU,t)||(tU[t]=[]),tU[t].push(e);});});});var L_e=chunkTKGT252T_js.c(()=>{var kw=_c(),$_t=nU(),iU=(0, kw.defineAliasedType)("Miscellaneous");iU("Noop",{visitor:[]});iU("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0, kw.assertNodeType)("Identifier")},expectedNode:{validate:(0, kw.assertOneOf)(...$_t.PLACEHOLDERS)}}});iU("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0, kw.assertValueType)("string")}}});});var k_e=chunkTKGT252T_js.c(()=>{var Ir=_c();(0, Ir.default)("ArgumentPlaceholder",{});(0, Ir.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0, Ir.assertNodeType)("Expression")},callee:{validate:(0, Ir.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0, Ir.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0, Ir.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0, Ir.assertNodeType)("StringLiteral")}}});(0, Ir.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0, Ir.assertNodeType)("Expression")}}});(0, Ir.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0, Ir.assertNodeType)("BlockStatement")},async:{validate:(0, Ir.assertValueType)("boolean"),default:!1}}});(0, Ir.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0, Ir.assertNodeType)("Identifier")}}});(0, Ir.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0, Ir.chain)((0, Ir.assertValueType)("array"),(0, Ir.assertEach)((0, Ir.assertNodeType)("ObjectProperty","SpreadElement")))}}});(0, Ir.default)("TupleExpression",{fields:{elements:{validate:(0, Ir.chain)((0, Ir.assertValueType)("array"),(0, Ir.assertEach)((0, Ir.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]});(0, Ir.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0, Ir.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0, Ir.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0, Ir.assertNodeType)("Program")}},aliases:["Expression"]});(0, Ir.default)("TopicReference",{aliases:["Expression"]});(0, Ir.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0, Ir.assertNodeType)("Expression")}},aliases:["Expression"]});(0, Ir.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0, Ir.assertNodeType)("Expression")}},aliases:["Expression"]});(0, Ir.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});});var G_e=chunkTKGT252T_js.c(()=>{var he=_c(),F_e=Zj(),K_t=SS(),bt=(0, he.defineAliasedType)("TypeScript"),Ta=(0, he.assertValueType)("boolean"),B_e=()=>({returnType:{validate:(0, he.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0, he.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});bt("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0, he.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0, he.assertValueType)("boolean"),optional:!0},parameter:{validate:(0, he.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0, he.assertValueType)("boolean"),optional:!0},decorators:{validate:(0, he.chain)((0, he.assertValueType)("array"),(0, he.assertEach)((0, he.assertNodeType)("Decorator"))),optional:!0}}});bt("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0, F_e.functionDeclarationCommon)(),B_e())});bt("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0, F_e.classMethodOrDeclareMethodCommon)(),B_e())});bt("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0, he.validateType)("TSEntityName"),right:(0, he.validateType)("Identifier")}});var Fw=()=>({typeParameters:(0, he.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0, he.validateArrayOfType)(["ArrayPattern","Identifier","ObjectPattern","RestElement"]),typeAnnotation:(0, he.validateOptionalType)("TSTypeAnnotation")}),j_e={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:Fw()};bt("TSCallSignatureDeclaration",j_e);bt("TSConstructSignatureDeclaration",j_e);var U_e=()=>({key:(0, he.validateType)("Expression"),computed:{default:!1},optional:(0, he.validateOptional)(Ta)});bt("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},U_e(),{readonly:(0, he.validateOptional)(Ta),typeAnnotation:(0, he.validateOptionalType)("TSTypeAnnotation"),kind:{validate:(0, he.assertOneOf)("get","set")}})});bt("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},Fw(),U_e(),{kind:{validate:(0, he.assertOneOf)("method","get","set")}})});bt("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0, he.validateOptional)(Ta),static:(0, he.validateOptional)(Ta),parameters:(0, he.validateArrayOfType)("Identifier"),typeAnnotation:(0, he.validateOptionalType)("TSTypeAnnotation")}});var Y_t=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let e of Y_t)bt(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});bt("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var q_e={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};bt("TSFunctionType",Object.assign({},q_e,{fields:Fw()}));bt("TSConstructorType",Object.assign({},q_e,{fields:Object.assign({},Fw(),{abstract:(0, he.validateOptional)(Ta)})}));bt("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0, he.validateType)("TSEntityName"),typeParameters:(0, he.validateOptionalType)("TSTypeParameterInstantiation")}});bt("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0, he.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0, he.validateOptionalType)("TSTypeAnnotation"),asserts:(0, he.validateOptional)(Ta)}});bt("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0, he.validateType)(["TSEntityName","TSImportType"]),typeParameters:(0, he.validateOptionalType)("TSTypeParameterInstantiation")}});bt("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0, he.validateArrayOfType)("TSTypeElement")}});bt("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0, he.validateType)("TSType")}});bt("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0, he.validateArrayOfType)(["TSType","TSNamedTupleMember"])}});bt("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0, he.validateType)("TSType")}});bt("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0, he.validateType)("TSType")}});bt("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0, he.validateType)("Identifier"),optional:{validate:Ta,default:!1},elementType:(0, he.validateType)("TSType")}});var V_e={aliases:["TSType"],visitor:["types"],fields:{types:(0, he.validateArrayOfType)("TSType")}};bt("TSUnionType",V_e);bt("TSIntersectionType",V_e);bt("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0, he.validateType)("TSType"),extendsType:(0, he.validateType)("TSType"),trueType:(0, he.validateType)("TSType"),falseType:(0, he.validateType)("TSType")}});bt("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0, he.validateType)("TSTypeParameter")}});bt("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0, he.validateType)("TSType")}});bt("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0, he.validate)((0, he.assertValueType)("string")),typeAnnotation:(0, he.validateType)("TSType")}});bt("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0, he.validateType)("TSType"),indexType:(0, he.validateType)("TSType")}});bt("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation","nameType"],fields:{readonly:(0, he.validateOptional)((0, he.assertOneOf)(!0,!1,"+","-")),typeParameter:(0, he.validateType)("TSTypeParameter"),optional:(0, he.validateOptional)((0, he.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0, he.validateOptionalType)("TSType"),nameType:(0, he.validateOptionalType)("TSType")}});bt("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let e=(0, he.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0, he.assertOneOf)("-"),r=(0, he.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function n(i,s,a){(0, K_t.default)("UnaryExpression",a)?(t(a,"operator",a.operator),e(a,"argument",a.argument)):r(i,s,a);}return n.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],n}()}}});bt("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0, he.validateType)("TSEntityName"),typeParameters:(0, he.validateOptionalType)("TSTypeParameterInstantiation")}});bt("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0, he.validateOptional)(Ta),id:(0, he.validateType)("Identifier"),typeParameters:(0, he.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0, he.validateOptional)((0, he.arrayOfType)("TSExpressionWithTypeArguments")),body:(0, he.validateType)("TSInterfaceBody")}});bt("TSInterfaceBody",{visitor:["body"],fields:{body:(0, he.validateArrayOfType)("TSTypeElement")}});bt("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0, he.validateOptional)(Ta),id:(0, he.validateType)("Identifier"),typeParameters:(0, he.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0, he.validateType)("TSType")}});bt("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0, he.validateType)("Expression"),typeParameters:(0, he.validateOptionalType)("TSTypeParameterInstantiation")}});var H_e={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0, he.validateType)("Expression"),typeAnnotation:(0, he.validateType)("TSType")}};bt("TSAsExpression",H_e);bt("TSSatisfiesExpression",H_e);bt("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0, he.validateType)("TSType"),expression:(0, he.validateType)("Expression")}});bt("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0, he.validateOptional)(Ta),const:(0, he.validateOptional)(Ta),id:(0, he.validateType)("Identifier"),members:(0, he.validateArrayOfType)("TSEnumMember"),initializer:(0, he.validateOptionalType)("Expression")}});bt("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0, he.validateType)(["Identifier","StringLiteral"]),initializer:(0, he.validateOptionalType)("Expression")}});bt("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0, he.validateOptional)(Ta),global:(0, he.validateOptional)(Ta),id:(0, he.validateType)(["Identifier","StringLiteral"]),body:(0, he.validateType)(["TSModuleBlock","TSModuleDeclaration"])}});bt("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0, he.validateArrayOfType)("Statement")}});bt("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0, he.validateType)("StringLiteral"),qualifier:(0, he.validateOptionalType)("TSEntityName"),typeParameters:(0, he.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0, he.assertNodeType)("Expression"),optional:!0}}});bt("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0, he.validate)(Ta),id:(0, he.validateType)("Identifier"),moduleReference:(0, he.validateType)(["TSEntityName","TSExternalModuleReference"]),importKind:{validate:(0, he.assertOneOf)("type","value"),optional:!0}}});bt("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0, he.validateType)("StringLiteral")}});bt("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0, he.validateType)("Expression")}});bt("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0, he.validateType)("Expression")}});bt("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0, he.validateType)("Identifier")}});bt("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0, he.assertNodeType)("TSType")}}});bt("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0, he.chain)((0, he.assertValueType)("array"),(0, he.assertEach)((0, he.assertNodeType)("TSType")))}}});bt("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0, he.chain)((0, he.assertValueType)("array"),(0, he.assertEach)((0, he.assertNodeType)("TSTypeParameter")))}}});bt("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0, he.assertValueType)("string")},in:{validate:(0, he.assertValueType)("boolean"),optional:!0},out:{validate:(0, he.assertValueType)("boolean"),optional:!0},const:{validate:(0, he.assertValueType)("boolean"),optional:!0},constraint:{validate:(0, he.assertNodeType)("TSType"),optional:!0},default:{validate:(0, he.assertNodeType)("TSType"),optional:!0}}});});var $_e=chunkTKGT252T_js.c(Bw=>{Object.defineProperty(Bw,"__esModule",{value:!0});Bw.DEPRECATED_ALIASES=void 0;Bw.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"};});var xo=chunkTKGT252T_js.c(Hs=>{Object.defineProperty(Hs,"__esModule",{value:!0});Object.defineProperty(Hs,"ALIAS_KEYS",{enumerable:!0,get:function(){return Ui.ALIAS_KEYS}});Object.defineProperty(Hs,"BUILDER_KEYS",{enumerable:!0,get:function(){return Ui.BUILDER_KEYS}});Object.defineProperty(Hs,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return sU.DEPRECATED_ALIASES}});Object.defineProperty(Hs,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return Ui.DEPRECATED_KEYS}});Object.defineProperty(Hs,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return Ui.FLIPPED_ALIAS_KEYS}});Object.defineProperty(Hs,"NODE_FIELDS",{enumerable:!0,get:function(){return Ui.NODE_FIELDS}});Object.defineProperty(Hs,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return Ui.NODE_PARENT_VALIDATIONS}});Object.defineProperty(Hs,"PLACEHOLDERS",{enumerable:!0,get:function(){return Bb.PLACEHOLDERS}});Object.defineProperty(Hs,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return Bb.PLACEHOLDERS_ALIAS}});Object.defineProperty(Hs,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return Bb.PLACEHOLDERS_FLIPPED_ALIAS}});Hs.TYPES=void 0;Object.defineProperty(Hs,"VISITOR_KEYS",{enumerable:!0,get:function(){return Ui.VISITOR_KEYS}});var Ff=jj();Zj();R_e();M_e();L_e();k_e();G_e();var Ui=_c(),Bb=nU(),sU=$_e();Object.keys(sU.DEPRECATED_ALIASES).forEach(e=>{Ui.FLIPPED_ALIAS_KEYS[e]=Ui.FLIPPED_ALIAS_KEYS[sU.DEPRECATED_ALIASES[e]];});Ff(Ui.VISITOR_KEYS);Ff(Ui.ALIAS_KEYS);Ff(Ui.FLIPPED_ALIAS_KEYS);Ff(Ui.NODE_FIELDS);Ff(Ui.BUILDER_KEYS);Ff(Ui.DEPRECATED_KEYS);Ff(Bb.PLACEHOLDERS_ALIAS);Ff(Bb.PLACEHOLDERS_FLIPPED_ALIAS);Hs.TYPES=[].concat(Object.keys(Ui.VISITOR_KEYS),Object.keys(Ui.FLIPPED_ALIAS_KEYS),Object.keys(Ui.DEPRECATED_KEYS));});var Mw=chunkTKGT252T_js.c(jb=>{Object.defineProperty(jb,"__esModule",{value:!0});jb.default=W_t;jb.validateChild=W_e;jb.validateField=Y_e;var K_e=xo();function W_t(e,t,r){if(!e)return;let n=K_e.NODE_FIELDS[e.type];if(!n)return;let i=n[t];Y_e(e,t,r,i),W_e(e,t,r);}function Y_e(e,t,r,n){n!=null&&n.validate&&(n.optional&&r==null||n.validate(e,t,r));}function W_e(e,t,r){if(r==null)return;let n=K_e.NODE_PARENT_VALIDATIONS[r.type];n&&n(e,t,r);}});var X_e=chunkTKGT252T_js.c(aU=>{Object.defineProperty(aU,"__esModule",{value:!0});aU.default=J_t;var X_t=Mw(),z_t=gi();function J_t(e){let t=z_t.BUILDER_KEYS[e.type];for(let r of t)(0, X_t.default)(e,r,e[r]);return e}});var Gs=chunkTKGT252T_js.c(I=>{Object.defineProperty(I,"__esModule",{value:!0});I.anyTypeAnnotation=wAt;I.argumentPlaceholder=nCt;I.arrayExpression=Q_t;I.arrayPattern=Yxt;I.arrayTypeAnnotation=IAt;I.arrowFunctionExpression=Wxt;I.assignmentExpression=Z_t;I.assignmentPattern=Kxt;I.awaitExpression=yAt;I.bigIntLiteral=SAt;I.binaryExpression=ext;I.bindExpression=iCt;I.blockStatement=ixt;I.booleanLiteral=xxt;I.booleanLiteralTypeAnnotation=DAt;I.booleanTypeAnnotation=OAt;I.breakStatement=sxt;I.callExpression=axt;I.catchClause=oxt;I.classAccessorProperty=_At;I.classBody=Xxt;I.classDeclaration=Jxt;I.classExpression=zxt;I.classImplements=RAt;I.classMethod=lAt;I.classPrivateMethod=AAt;I.classPrivateProperty=xAt;I.classProperty=vAt;I.conditionalExpression=uxt;I.continueStatement=lxt;I.debuggerStatement=cxt;I.decimalLiteral=pCt;I.declareClass=MAt;I.declareExportAllDeclaration=HAt;I.declareExportDeclaration=VAt;I.declareFunction=LAt;I.declareInterface=kAt;I.declareModule=FAt;I.declareModuleExports=BAt;I.declareOpaqueType=UAt;I.declareTypeAlias=jAt;I.declareVariable=qAt;I.declaredPredicate=GAt;I.decorator=aCt;I.directive=rxt;I.directiveLiteral=nxt;I.doExpression=oCt;I.doWhileStatement=pxt;I.emptyStatement=fxt;I.emptyTypeAnnotation=tPt;I.enumBooleanBody=IPt;I.enumBooleanMember=RPt;I.enumDeclaration=wPt;I.enumDefaultedMember=kPt;I.enumNumberBody=OPt;I.enumNumberMember=MPt;I.enumStringBody=DPt;I.enumStringMember=LPt;I.enumSymbolBody=NPt;I.existsTypeAnnotation=$At;I.exportAllDeclaration=Qxt;I.exportDefaultDeclaration=Zxt;I.exportDefaultSpecifier=uCt;I.exportNamedDeclaration=eAt;I.exportNamespaceSpecifier=TAt;I.exportSpecifier=tAt;I.expressionStatement=hxt;I.file=dxt;I.forInStatement=mxt;I.forOfStatement=rAt;I.forStatement=yxt;I.functionDeclaration=gxt;I.functionExpression=Sxt;I.functionTypeAnnotation=KAt;I.functionTypeParam=YAt;I.genericTypeAnnotation=WAt;I.identifier=Txt;I.ifStatement=Ext;I.import=gAt;I.importAttribute=sCt;I.importDeclaration=nAt;I.importDefaultSpecifier=iAt;I.importExpression=oAt;I.importNamespaceSpecifier=sAt;I.importSpecifier=aAt;I.indexedAccessType=FPt;I.inferredPredicate=XAt;I.interfaceDeclaration=JAt;I.interfaceExtends=zAt;I.interfaceTypeAnnotation=QAt;I.interpreterDirective=txt;I.intersectionTypeAnnotation=ZAt;I.jSXAttribute=I.jsxAttribute=jPt;I.jSXClosingElement=I.jsxClosingElement=UPt;I.jSXClosingFragment=I.jsxClosingFragment=ZPt;I.jSXElement=I.jsxElement=qPt;I.jSXEmptyExpression=I.jsxEmptyExpression=VPt;I.jSXExpressionContainer=I.jsxExpressionContainer=HPt;I.jSXFragment=I.jsxFragment=JPt;I.jSXIdentifier=I.jsxIdentifier=$Pt;I.jSXMemberExpression=I.jsxMemberExpression=KPt;I.jSXNamespacedName=I.jsxNamespacedName=YPt;I.jSXOpeningElement=I.jsxOpeningElement=WPt;I.jSXOpeningFragment=I.jsxOpeningFragment=QPt;I.jSXSpreadAttribute=I.jsxSpreadAttribute=XPt;I.jSXSpreadChild=I.jsxSpreadChild=GPt;I.jSXText=I.jsxText=zPt;I.labeledStatement=bxt;I.logicalExpression=Axt;I.memberExpression=Pxt;I.metaProperty=uAt;I.mixedTypeAnnotation=ePt;I.moduleExpression=fCt;I.newExpression=Cxt;I.noop=eCt;I.nullLiteral=_xt;I.nullLiteralTypeAnnotation=NAt;I.nullableTypeAnnotation=rPt;I.numberLiteral=w1t;I.numberLiteralTypeAnnotation=nPt;I.numberTypeAnnotation=iPt;I.numericLiteral=z_e;I.objectExpression=Ixt;I.objectMethod=Oxt;I.objectPattern=cAt;I.objectProperty=Dxt;I.objectTypeAnnotation=sPt;I.objectTypeCallProperty=oPt;I.objectTypeIndexer=uPt;I.objectTypeInternalSlot=aPt;I.objectTypeProperty=lPt;I.objectTypeSpreadProperty=cPt;I.opaqueType=pPt;I.optionalCallExpression=bAt;I.optionalIndexedAccessType=BPt;I.optionalMemberExpression=EAt;I.parenthesizedExpression=Mxt;I.pipelineBareFunction=mCt;I.pipelinePrimaryTopicReference=yCt;I.pipelineTopicExpression=dCt;I.placeholder=tCt;I.privateName=PAt;I.program=wxt;I.qualifiedTypeIdentifier=fPt;I.recordExpression=lCt;I.regExpLiteral=J_e;I.regexLiteral=I1t;I.restElement=Q_e;I.restProperty=O1t;I.returnStatement=Nxt;I.sequenceExpression=Rxt;I.spreadElement=Z_e;I.spreadProperty=D1t;I.staticBlock=CAt;I.stringLiteral=vxt;I.stringLiteralTypeAnnotation=hPt;I.stringTypeAnnotation=dPt;I.super=pAt;I.switchCase=Lxt;I.switchStatement=kxt;I.symbolTypeAnnotation=mPt;I.taggedTemplateExpression=fAt;I.templateElement=hAt;I.templateLiteral=dAt;I.thisExpression=Fxt;I.thisTypeAnnotation=yPt;I.throwStatement=Bxt;I.topicReference=hCt;I.tryStatement=jxt;I.tSAnyKeyword=I.tsAnyKeyword=PCt;I.tSArrayType=I.tsArrayType=KCt;I.tSAsExpression=I.tsAsExpression=p1t;I.tSBigIntKeyword=I.tsBigIntKeyword=wCt;I.tSBooleanKeyword=I.tsBooleanKeyword=CCt;I.tSCallSignatureDeclaration=I.tsCallSignatureDeclaration=bCt;I.tSConditionalType=I.tsConditionalType=ZCt;I.tSConstructSignatureDeclaration=I.tsConstructSignatureDeclaration=vCt;I.tSConstructorType=I.tsConstructorType=qCt;I.tSDeclareFunction=I.tsDeclareFunction=SCt;I.tSDeclareMethod=I.tsDeclareMethod=TCt;I.tSEnumDeclaration=I.tsEnumDeclaration=d1t;I.tSEnumMember=I.tsEnumMember=m1t;I.tSExportAssignment=I.tsExportAssignment=v1t;I.tSExpressionWithTypeArguments=I.tsExpressionWithTypeArguments=a1t;I.tSExternalModuleReference=I.tsExternalModuleReference=E1t;I.tSFunctionType=I.tsFunctionType=UCt;I.tSImportEqualsDeclaration=I.tsImportEqualsDeclaration=T1t;I.tSImportType=I.tsImportType=S1t;I.tSIndexSignature=I.tsIndexSignature=ACt;I.tSIndexedAccessType=I.tsIndexedAccessType=n1t;I.tSInferType=I.tsInferType=e1t;I.tSInstantiationExpression=I.tsInstantiationExpression=c1t;I.tSInterfaceBody=I.tsInterfaceBody=u1t;I.tSInterfaceDeclaration=I.tsInterfaceDeclaration=o1t;I.tSIntersectionType=I.tsIntersectionType=QCt;I.tSIntrinsicKeyword=I.tsIntrinsicKeyword=ICt;I.tSLiteralType=I.tsLiteralType=s1t;I.tSMappedType=I.tsMappedType=i1t;I.tSMethodSignature=I.tsMethodSignature=xCt;I.tSModuleBlock=I.tsModuleBlock=g1t;I.tSModuleDeclaration=I.tsModuleDeclaration=y1t;I.tSNamedTupleMember=I.tsNamedTupleMember=zCt;I.tSNamespaceExportDeclaration=I.tsNamespaceExportDeclaration=_1t;I.tSNeverKeyword=I.tsNeverKeyword=OCt;I.tSNonNullExpression=I.tsNonNullExpression=b1t;I.tSNullKeyword=I.tsNullKeyword=DCt;I.tSNumberKeyword=I.tsNumberKeyword=NCt;I.tSObjectKeyword=I.tsObjectKeyword=RCt;I.tSOptionalType=I.tsOptionalType=WCt;I.tSParameterProperty=I.tsParameterProperty=gCt;I.tSParenthesizedType=I.tsParenthesizedType=t1t;I.tSPropertySignature=I.tsPropertySignature=_Ct;I.tSQualifiedName=I.tsQualifiedName=ECt;I.tSRestType=I.tsRestType=XCt;I.tSSatisfiesExpression=I.tsSatisfiesExpression=f1t;I.tSStringKeyword=I.tsStringKeyword=MCt;I.tSSymbolKeyword=I.tsSymbolKeyword=LCt;I.tSThisType=I.tsThisType=jCt;I.tSTupleType=I.tsTupleType=YCt;I.tSTypeAliasDeclaration=I.tsTypeAliasDeclaration=l1t;I.tSTypeAnnotation=I.tsTypeAnnotation=x1t;I.tSTypeAssertion=I.tsTypeAssertion=h1t;I.tSTypeLiteral=I.tsTypeLiteral=$Ct;I.tSTypeOperator=I.tsTypeOperator=r1t;I.tSTypeParameter=I.tsTypeParameter=C1t;I.tSTypeParameterDeclaration=I.tsTypeParameterDeclaration=P1t;I.tSTypeParameterInstantiation=I.tsTypeParameterInstantiation=A1t;I.tSTypePredicate=I.tsTypePredicate=HCt;I.tSTypeQuery=I.tsTypeQuery=GCt;I.tSTypeReference=I.tsTypeReference=VCt;I.tSUndefinedKeyword=I.tsUndefinedKeyword=kCt;I.tSUnionType=I.tsUnionType=JCt;I.tSUnknownKeyword=I.tsUnknownKeyword=FCt;I.tSVoidKeyword=I.tsVoidKeyword=BCt;I.tupleExpression=cCt;I.tupleTypeAnnotation=gPt;I.typeAlias=TPt;I.typeAnnotation=EPt;I.typeCastExpression=bPt;I.typeParameter=vPt;I.typeParameterDeclaration=_Pt;I.typeParameterInstantiation=xPt;I.typeofTypeAnnotation=SPt;I.unaryExpression=Uxt;I.unionTypeAnnotation=APt;I.updateExpression=qxt;I.v8IntrinsicIdentifier=rCt;I.variableDeclaration=Vxt;I.variableDeclarator=Hxt;I.variance=PPt;I.voidTypeAnnotation=CPt;I.whileStatement=Gxt;I.withStatement=$xt;I.yieldExpression=mAt;var Q=X_e(),jw=Db();function Q_t(e=[]){return (0, Q.default)({type:"ArrayExpression",elements:e})}function Z_t(e,t,r){return (0, Q.default)({type:"AssignmentExpression",operator:e,left:t,right:r})}function ext(e,t,r){return (0, Q.default)({type:"BinaryExpression",operator:e,left:t,right:r})}function txt(e){return (0, Q.default)({type:"InterpreterDirective",value:e})}function rxt(e){return (0, Q.default)({type:"Directive",value:e})}function nxt(e){return (0, Q.default)({type:"DirectiveLiteral",value:e})}function ixt(e,t=[]){return (0, Q.default)({type:"BlockStatement",body:e,directives:t})}function sxt(e=null){return (0, Q.default)({type:"BreakStatement",label:e})}function axt(e,t){return (0, Q.default)({type:"CallExpression",callee:e,arguments:t})}function oxt(e=null,t){return (0, Q.default)({type:"CatchClause",param:e,body:t})}function uxt(e,t,r){return (0, Q.default)({type:"ConditionalExpression",test:e,consequent:t,alternate:r})}function lxt(e=null){return (0, Q.default)({type:"ContinueStatement",label:e})}function cxt(){return {type:"DebuggerStatement"}}function pxt(e,t){return (0, Q.default)({type:"DoWhileStatement",test:e,body:t})}function fxt(){return {type:"EmptyStatement"}}function hxt(e){return (0, Q.default)({type:"ExpressionStatement",expression:e})}function dxt(e,t=null,r=null){return (0, Q.default)({type:"File",program:e,comments:t,tokens:r})}function mxt(e,t,r){return (0, Q.default)({type:"ForInStatement",left:e,right:t,body:r})}function yxt(e=null,t=null,r=null,n){return (0, Q.default)({type:"ForStatement",init:e,test:t,update:r,body:n})}function gxt(e=null,t,r,n=!1,i=!1){return (0, Q.default)({type:"FunctionDeclaration",id:e,params:t,body:r,generator:n,async:i})}function Sxt(e=null,t,r,n=!1,i=!1){return (0, Q.default)({type:"FunctionExpression",id:e,params:t,body:r,generator:n,async:i})}function Txt(e){return (0, Q.default)({type:"Identifier",name:e})}function Ext(e,t,r=null){return (0, Q.default)({type:"IfStatement",test:e,consequent:t,alternate:r})}function bxt(e,t){return (0, Q.default)({type:"LabeledStatement",label:e,body:t})}function vxt(e){return (0, Q.default)({type:"StringLiteral",value:e})}function z_e(e){return (0, Q.default)({type:"NumericLiteral",value:e})}function _xt(){return {type:"NullLiteral"}}function xxt(e){return (0, Q.default)({type:"BooleanLiteral",value:e})}function J_e(e,t=""){return (0, Q.default)({type:"RegExpLiteral",pattern:e,flags:t})}function Axt(e,t,r){return (0, Q.default)({type:"LogicalExpression",operator:e,left:t,right:r})}function Pxt(e,t,r=!1,n=null){return (0, Q.default)({type:"MemberExpression",object:e,property:t,computed:r,optional:n})}function Cxt(e,t){return (0, Q.default)({type:"NewExpression",callee:e,arguments:t})}function wxt(e,t=[],r="script",n=null){return (0, Q.default)({type:"Program",body:e,directives:t,sourceType:r,interpreter:n})}function Ixt(e){return (0, Q.default)({type:"ObjectExpression",properties:e})}function Oxt(e="method",t,r,n,i=!1,s=!1,a=!1){return (0, Q.default)({type:"ObjectMethod",kind:e,key:t,params:r,body:n,computed:i,generator:s,async:a})}function Dxt(e,t,r=!1,n=!1,i=null){return (0, Q.default)({type:"ObjectProperty",key:e,value:t,computed:r,shorthand:n,decorators:i})}function Q_e(e){return (0, Q.default)({type:"RestElement",argument:e})}function Nxt(e=null){return (0, Q.default)({type:"ReturnStatement",argument:e})}function Rxt(e){return (0, Q.default)({type:"SequenceExpression",expressions:e})}function Mxt(e){return (0, Q.default)({type:"ParenthesizedExpression",expression:e})}function Lxt(e=null,t){return (0, Q.default)({type:"SwitchCase",test:e,consequent:t})}function kxt(e,t){return (0, Q.default)({type:"SwitchStatement",discriminant:e,cases:t})}function Fxt(){return {type:"ThisExpression"}}function Bxt(e){return (0, Q.default)({type:"ThrowStatement",argument:e})}function jxt(e,t=null,r=null){return (0, Q.default)({type:"TryStatement",block:e,handler:t,finalizer:r})}function Uxt(e,t,r=!0){return (0, Q.default)({type:"UnaryExpression",operator:e,argument:t,prefix:r})}function qxt(e,t,r=!1){return (0, Q.default)({type:"UpdateExpression",operator:e,argument:t,prefix:r})}function Vxt(e,t){return (0, Q.default)({type:"VariableDeclaration",kind:e,declarations:t})}function Hxt(e,t=null){return (0, Q.default)({type:"VariableDeclarator",id:e,init:t})}function Gxt(e,t){return (0, Q.default)({type:"WhileStatement",test:e,body:t})}function $xt(e,t){return (0, Q.default)({type:"WithStatement",object:e,body:t})}function Kxt(e,t){return (0, Q.default)({type:"AssignmentPattern",left:e,right:t})}function Yxt(e){return (0, Q.default)({type:"ArrayPattern",elements:e})}function Wxt(e,t,r=!1){return (0, Q.default)({type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null})}function Xxt(e){return (0, Q.default)({type:"ClassBody",body:e})}function zxt(e=null,t=null,r,n=null){return (0, Q.default)({type:"ClassExpression",id:e,superClass:t,body:r,decorators:n})}function Jxt(e=null,t=null,r,n=null){return (0, Q.default)({type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:n})}function Qxt(e){return (0, Q.default)({type:"ExportAllDeclaration",source:e})}function Zxt(e){return (0, Q.default)({type:"ExportDefaultDeclaration",declaration:e})}function eAt(e=null,t=[],r=null){return (0, Q.default)({type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r})}function tAt(e,t){return (0, Q.default)({type:"ExportSpecifier",local:e,exported:t})}function rAt(e,t,r,n=!1){return (0, Q.default)({type:"ForOfStatement",left:e,right:t,body:r,await:n})}function nAt(e,t){return (0, Q.default)({type:"ImportDeclaration",specifiers:e,source:t})}function iAt(e){return (0, Q.default)({type:"ImportDefaultSpecifier",local:e})}function sAt(e){return (0, Q.default)({type:"ImportNamespaceSpecifier",local:e})}function aAt(e,t){return (0, Q.default)({type:"ImportSpecifier",local:e,imported:t})}function oAt(e,t=null){return (0, Q.default)({type:"ImportExpression",source:e,options:t})}function uAt(e,t){return (0, Q.default)({type:"MetaProperty",meta:e,property:t})}function lAt(e="method",t,r,n,i=!1,s=!1,a=!1,o=!1){return (0, Q.default)({type:"ClassMethod",kind:e,key:t,params:r,body:n,computed:i,static:s,generator:a,async:o})}function cAt(e){return (0, Q.default)({type:"ObjectPattern",properties:e})}function Z_e(e){return (0, Q.default)({type:"SpreadElement",argument:e})}function pAt(){return {type:"Super"}}function fAt(e,t){return (0, Q.default)({type:"TaggedTemplateExpression",tag:e,quasi:t})}function hAt(e,t=!1){return (0, Q.default)({type:"TemplateElement",value:e,tail:t})}function dAt(e,t){return (0, Q.default)({type:"TemplateLiteral",quasis:e,expressions:t})}function mAt(e=null,t=!1){return (0, Q.default)({type:"YieldExpression",argument:e,delegate:t})}function yAt(e){return (0, Q.default)({type:"AwaitExpression",argument:e})}function gAt(){return {type:"Import"}}function SAt(e){return (0, Q.default)({type:"BigIntLiteral",value:e})}function TAt(e){return (0, Q.default)({type:"ExportNamespaceSpecifier",exported:e})}function EAt(e,t,r=!1,n){return (0, Q.default)({type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:n})}function bAt(e,t,r){return (0, Q.default)({type:"OptionalCallExpression",callee:e,arguments:t,optional:r})}function vAt(e,t=null,r=null,n=null,i=!1,s=!1){return (0, Q.default)({type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:n,computed:i,static:s})}function _At(e,t=null,r=null,n=null,i=!1,s=!1){return (0, Q.default)({type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:n,computed:i,static:s})}function xAt(e,t=null,r=null,n=!1){return (0, Q.default)({type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:n})}function AAt(e="method",t,r,n,i=!1){return (0, Q.default)({type:"ClassPrivateMethod",kind:e,key:t,params:r,body:n,static:i})}function PAt(e){return (0, Q.default)({type:"PrivateName",id:e})}function CAt(e){return (0, Q.default)({type:"StaticBlock",body:e})}function wAt(){return {type:"AnyTypeAnnotation"}}function IAt(e){return (0, Q.default)({type:"ArrayTypeAnnotation",elementType:e})}function OAt(){return {type:"BooleanTypeAnnotation"}}function DAt(e){return (0, Q.default)({type:"BooleanLiteralTypeAnnotation",value:e})}function NAt(){return {type:"NullLiteralTypeAnnotation"}}function RAt(e,t=null){return (0, Q.default)({type:"ClassImplements",id:e,typeParameters:t})}function MAt(e,t=null,r=null,n){return (0, Q.default)({type:"DeclareClass",id:e,typeParameters:t,extends:r,body:n})}function LAt(e){return (0, Q.default)({type:"DeclareFunction",id:e})}function kAt(e,t=null,r=null,n){return (0, Q.default)({type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:n})}function FAt(e,t,r=null){return (0, Q.default)({type:"DeclareModule",id:e,body:t,kind:r})}function BAt(e){return (0, Q.default)({type:"DeclareModuleExports",typeAnnotation:e})}function jAt(e,t=null,r){return (0, Q.default)({type:"DeclareTypeAlias",id:e,typeParameters:t,right:r})}function UAt(e,t=null,r=null){return (0, Q.default)({type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r})}function qAt(e){return (0, Q.default)({type:"DeclareVariable",id:e})}function VAt(e=null,t=null,r=null){return (0, Q.default)({type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r})}function HAt(e){return (0, Q.default)({type:"DeclareExportAllDeclaration",source:e})}function GAt(e){return (0, Q.default)({type:"DeclaredPredicate",value:e})}function $At(){return {type:"ExistsTypeAnnotation"}}function KAt(e=null,t,r=null,n){return (0, Q.default)({type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:n})}function YAt(e=null,t){return (0, Q.default)({type:"FunctionTypeParam",name:e,typeAnnotation:t})}function WAt(e,t=null){return (0, Q.default)({type:"GenericTypeAnnotation",id:e,typeParameters:t})}function XAt(){return {type:"InferredPredicate"}}function zAt(e,t=null){return (0, Q.default)({type:"InterfaceExtends",id:e,typeParameters:t})}function JAt(e,t=null,r=null,n){return (0, Q.default)({type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:n})}function QAt(e=null,t){return (0, Q.default)({type:"InterfaceTypeAnnotation",extends:e,body:t})}function ZAt(e){return (0, Q.default)({type:"IntersectionTypeAnnotation",types:e})}function ePt(){return {type:"MixedTypeAnnotation"}}function tPt(){return {type:"EmptyTypeAnnotation"}}function rPt(e){return (0, Q.default)({type:"NullableTypeAnnotation",typeAnnotation:e})}function nPt(e){return (0, Q.default)({type:"NumberLiteralTypeAnnotation",value:e})}function iPt(){return {type:"NumberTypeAnnotation"}}function sPt(e,t=[],r=[],n=[],i=!1){return (0, Q.default)({type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:n,exact:i})}function aPt(e,t,r,n,i){return (0, Q.default)({type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:n,method:i})}function oPt(e){return (0, Q.default)({type:"ObjectTypeCallProperty",value:e,static:null})}function uPt(e=null,t,r,n=null){return (0, Q.default)({type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:n,static:null})}function lPt(e,t,r=null){return (0, Q.default)({type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null})}function cPt(e){return (0, Q.default)({type:"ObjectTypeSpreadProperty",argument:e})}function pPt(e,t=null,r=null,n){return (0, Q.default)({type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:n})}function fPt(e,t){return (0, Q.default)({type:"QualifiedTypeIdentifier",id:e,qualification:t})}function hPt(e){return (0, Q.default)({type:"StringLiteralTypeAnnotation",value:e})}function dPt(){return {type:"StringTypeAnnotation"}}function mPt(){return {type:"SymbolTypeAnnotation"}}function yPt(){return {type:"ThisTypeAnnotation"}}function gPt(e){return (0, Q.default)({type:"TupleTypeAnnotation",types:e})}function SPt(e){return (0, Q.default)({type:"TypeofTypeAnnotation",argument:e})}function TPt(e,t=null,r){return (0, Q.default)({type:"TypeAlias",id:e,typeParameters:t,right:r})}function EPt(e){return (0, Q.default)({type:"TypeAnnotation",typeAnnotation:e})}function bPt(e,t){return (0, Q.default)({type:"TypeCastExpression",expression:e,typeAnnotation:t})}function vPt(e=null,t=null,r=null){return (0, Q.default)({type:"TypeParameter",bound:e,default:t,variance:r,name:null})}function _Pt(e){return (0, Q.default)({type:"TypeParameterDeclaration",params:e})}function xPt(e){return (0, Q.default)({type:"TypeParameterInstantiation",params:e})}function APt(e){return (0, Q.default)({type:"UnionTypeAnnotation",types:e})}function PPt(e){return (0, Q.default)({type:"Variance",kind:e})}function CPt(){return {type:"VoidTypeAnnotation"}}function wPt(e,t){return (0, Q.default)({type:"EnumDeclaration",id:e,body:t})}function IPt(e){return (0, Q.default)({type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null})}function OPt(e){return (0, Q.default)({type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null})}function DPt(e){return (0, Q.default)({type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null})}function NPt(e){return (0, Q.default)({type:"EnumSymbolBody",members:e,hasUnknownMembers:null})}function RPt(e){return (0, Q.default)({type:"EnumBooleanMember",id:e,init:null})}function MPt(e,t){return (0, Q.default)({type:"EnumNumberMember",id:e,init:t})}function LPt(e,t){return (0, Q.default)({type:"EnumStringMember",id:e,init:t})}function kPt(e){return (0, Q.default)({type:"EnumDefaultedMember",id:e})}function FPt(e,t){return (0, Q.default)({type:"IndexedAccessType",objectType:e,indexType:t})}function BPt(e,t){return (0, Q.default)({type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null})}function jPt(e,t=null){return (0, Q.default)({type:"JSXAttribute",name:e,value:t})}function UPt(e){return (0, Q.default)({type:"JSXClosingElement",name:e})}function qPt(e,t=null,r,n=null){return (0, Q.default)({type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:n})}function VPt(){return {type:"JSXEmptyExpression"}}function HPt(e){return (0, Q.default)({type:"JSXExpressionContainer",expression:e})}function GPt(e){return (0, Q.default)({type:"JSXSpreadChild",expression:e})}function $Pt(e){return (0, Q.default)({type:"JSXIdentifier",name:e})}function KPt(e,t){return (0, Q.default)({type:"JSXMemberExpression",object:e,property:t})}function YPt(e,t){return (0, Q.default)({type:"JSXNamespacedName",namespace:e,name:t})}function WPt(e,t,r=!1){return (0, Q.default)({type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r})}function XPt(e){return (0, Q.default)({type:"JSXSpreadAttribute",argument:e})}function zPt(e){return (0, Q.default)({type:"JSXText",value:e})}function JPt(e,t,r){return (0, Q.default)({type:"JSXFragment",openingFragment:e,closingFragment:t,children:r})}function QPt(){return {type:"JSXOpeningFragment"}}function ZPt(){return {type:"JSXClosingFragment"}}function eCt(){return {type:"Noop"}}function tCt(e,t){return (0, Q.default)({type:"Placeholder",expectedNode:e,name:t})}function rCt(e){return (0, Q.default)({type:"V8IntrinsicIdentifier",name:e})}function nCt(){return {type:"ArgumentPlaceholder"}}function iCt(e,t){return (0, Q.default)({type:"BindExpression",object:e,callee:t})}function sCt(e,t){return (0, Q.default)({type:"ImportAttribute",key:e,value:t})}function aCt(e){return (0, Q.default)({type:"Decorator",expression:e})}function oCt(e,t=!1){return (0, Q.default)({type:"DoExpression",body:e,async:t})}function uCt(e){return (0, Q.default)({type:"ExportDefaultSpecifier",exported:e})}function lCt(e){return (0, Q.default)({type:"RecordExpression",properties:e})}function cCt(e=[]){return (0, Q.default)({type:"TupleExpression",elements:e})}function pCt(e){return (0, Q.default)({type:"DecimalLiteral",value:e})}function fCt(e){return (0, Q.default)({type:"ModuleExpression",body:e})}function hCt(){return {type:"TopicReference"}}function dCt(e){return (0, Q.default)({type:"PipelineTopicExpression",expression:e})}function mCt(e){return (0, Q.default)({type:"PipelineBareFunction",callee:e})}function yCt(){return {type:"PipelinePrimaryTopicReference"}}function gCt(e){return (0, Q.default)({type:"TSParameterProperty",parameter:e})}function SCt(e=null,t=null,r,n=null){return (0, Q.default)({type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:n})}function TCt(e=null,t,r=null,n,i=null){return (0, Q.default)({type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:n,returnType:i})}function ECt(e,t){return (0, Q.default)({type:"TSQualifiedName",left:e,right:t})}function bCt(e=null,t,r=null){return (0, Q.default)({type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r})}function vCt(e=null,t,r=null){return (0, Q.default)({type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r})}function _Ct(e,t=null){return (0, Q.default)({type:"TSPropertySignature",key:e,typeAnnotation:t,kind:null})}function xCt(e,t=null,r,n=null){return (0, Q.default)({type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:n,kind:null})}function ACt(e,t=null){return (0, Q.default)({type:"TSIndexSignature",parameters:e,typeAnnotation:t})}function PCt(){return {type:"TSAnyKeyword"}}function CCt(){return {type:"TSBooleanKeyword"}}function wCt(){return {type:"TSBigIntKeyword"}}function ICt(){return {type:"TSIntrinsicKeyword"}}function OCt(){return {type:"TSNeverKeyword"}}function DCt(){return {type:"TSNullKeyword"}}function NCt(){return {type:"TSNumberKeyword"}}function RCt(){return {type:"TSObjectKeyword"}}function MCt(){return {type:"TSStringKeyword"}}function LCt(){return {type:"TSSymbolKeyword"}}function kCt(){return {type:"TSUndefinedKeyword"}}function FCt(){return {type:"TSUnknownKeyword"}}function BCt(){return {type:"TSVoidKeyword"}}function jCt(){return {type:"TSThisType"}}function UCt(e=null,t,r=null){return (0, Q.default)({type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r})}function qCt(e=null,t,r=null){return (0, Q.default)({type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r})}function VCt(e,t=null){return (0, Q.default)({type:"TSTypeReference",typeName:e,typeParameters:t})}function HCt(e,t=null,r=null){return (0, Q.default)({type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r})}function GCt(e,t=null){return (0, Q.default)({type:"TSTypeQuery",exprName:e,typeParameters:t})}function $Ct(e){return (0, Q.default)({type:"TSTypeLiteral",members:e})}function KCt(e){return (0, Q.default)({type:"TSArrayType",elementType:e})}function YCt(e){return (0, Q.default)({type:"TSTupleType",elementTypes:e})}function WCt(e){return (0, Q.default)({type:"TSOptionalType",typeAnnotation:e})}function XCt(e){return (0, Q.default)({type:"TSRestType",typeAnnotation:e})}function zCt(e,t,r=!1){return (0, Q.default)({type:"TSNamedTupleMember",label:e,elementType:t,optional:r})}function JCt(e){return (0, Q.default)({type:"TSUnionType",types:e})}function QCt(e){return (0, Q.default)({type:"TSIntersectionType",types:e})}function ZCt(e,t,r,n){return (0, Q.default)({type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:n})}function e1t(e){return (0, Q.default)({type:"TSInferType",typeParameter:e})}function t1t(e){return (0, Q.default)({type:"TSParenthesizedType",typeAnnotation:e})}function r1t(e){return (0, Q.default)({type:"TSTypeOperator",typeAnnotation:e,operator:null})}function n1t(e,t){return (0, Q.default)({type:"TSIndexedAccessType",objectType:e,indexType:t})}function i1t(e,t=null,r=null){return (0, Q.default)({type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r})}function s1t(e){return (0, Q.default)({type:"TSLiteralType",literal:e})}function a1t(e,t=null){return (0, Q.default)({type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t})}function o1t(e,t=null,r=null,n){return (0, Q.default)({type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:n})}function u1t(e){return (0, Q.default)({type:"TSInterfaceBody",body:e})}function l1t(e,t=null,r){return (0, Q.default)({type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r})}function c1t(e,t=null){return (0, Q.default)({type:"TSInstantiationExpression",expression:e,typeParameters:t})}function p1t(e,t){return (0, Q.default)({type:"TSAsExpression",expression:e,typeAnnotation:t})}function f1t(e,t){return (0, Q.default)({type:"TSSatisfiesExpression",expression:e,typeAnnotation:t})}function h1t(e,t){return (0, Q.default)({type:"TSTypeAssertion",typeAnnotation:e,expression:t})}function d1t(e,t){return (0, Q.default)({type:"TSEnumDeclaration",id:e,members:t})}function m1t(e,t=null){return (0, Q.default)({type:"TSEnumMember",id:e,initializer:t})}function y1t(e,t){return (0, Q.default)({type:"TSModuleDeclaration",id:e,body:t})}function g1t(e){return (0, Q.default)({type:"TSModuleBlock",body:e})}function S1t(e,t=null,r=null){return (0, Q.default)({type:"TSImportType",argument:e,qualifier:t,typeParameters:r})}function T1t(e,t){return (0, Q.default)({type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null})}function E1t(e){return (0, Q.default)({type:"TSExternalModuleReference",expression:e})}function b1t(e){return (0, Q.default)({type:"TSNonNullExpression",expression:e})}function v1t(e){return (0, Q.default)({type:"TSExportAssignment",expression:e})}function _1t(e){return (0, Q.default)({type:"TSNamespaceExportDeclaration",id:e})}function x1t(e){return (0, Q.default)({type:"TSTypeAnnotation",typeAnnotation:e})}function A1t(e){return (0, Q.default)({type:"TSTypeParameterInstantiation",params:e})}function P1t(e){return (0, Q.default)({type:"TSTypeParameterDeclaration",params:e})}function C1t(e=null,t=null,r){return (0, Q.default)({type:"TSTypeParameter",constraint:e,default:t,name:r})}function w1t(e){return (0, jw.default)("NumberLiteral","NumericLiteral","The node type "),z_e(e)}function I1t(e,t=""){return (0, jw.default)("RegexLiteral","RegExpLiteral","The node type "),J_e(e,t)}function O1t(e){return (0, jw.default)("RestProperty","RestElement","The node type "),Q_e(e)}function D1t(e){return (0, jw.default)("SpreadProperty","SpreadElement","The node type "),Z_e(e)}});var exe=chunkTKGT252T_js.c(oU=>{Object.defineProperty(oU,"__esModule",{value:!0});oU.default=M1t;var N1t=Gs(),R1t=gi();function M1t(e,t){let r=e.value.split(/\r\n|\n|\r/),n=0;for(let s=0;s{Object.defineProperty(lU,"__esModule",{value:!0});lU.default=k1t;var uU=ci(),L1t=exe();function k1t(e){let t=[];for(let r=0;r{Object.defineProperty(cU,"__esModule",{value:!0});cU.default=B1t;var F1t=xo();function B1t(e){return !!(e&&F1t.VISITOR_KEYS[e.type])}});var rxe=chunkTKGT252T_js.c(fU=>{Object.defineProperty(fU,"__esModule",{value:!0});fU.default=U1t;var j1t=pU();function U1t(e){if(!(0, j1t.default)(e)){var t;let r=(t=e==null?void 0:e.type)!=null?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}}});var nxe=chunkTKGT252T_js.c(R=>{Object.defineProperty(R,"__esModule",{value:!0});R.assertAccessor=rRt;R.assertAnyTypeAnnotation=vIt;R.assertArgumentPlaceholder=JOt;R.assertArrayExpression=V1t;R.assertArrayPattern=Uwt;R.assertArrayTypeAnnotation=_It;R.assertArrowFunctionExpression=qwt;R.assertAssignmentExpression=H1t;R.assertAssignmentPattern=jwt;R.assertAwaitExpression=cIt;R.assertBigIntLiteral=fIt;R.assertBinary=xNt;R.assertBinaryExpression=G1t;R.assertBindExpression=QOt;R.assertBlock=CNt;R.assertBlockParent=PNt;R.assertBlockStatement=W1t;R.assertBooleanLiteral=mwt;R.assertBooleanLiteralTypeAnnotation=AIt;R.assertBooleanTypeAnnotation=xIt;R.assertBreakStatement=X1t;R.assertCallExpression=z1t;R.assertCatchClause=J1t;R.assertClass=QNt;R.assertClassAccessorProperty=gIt;R.assertClassBody=Vwt;R.assertClassDeclaration=Gwt;R.assertClassExpression=Hwt;R.assertClassImplements=CIt;R.assertClassMethod=rIt;R.assertClassPrivateMethod=TIt;R.assertClassPrivateProperty=SIt;R.assertClassProperty=yIt;R.assertCompletionStatement=ONt;R.assertConditional=DNt;R.assertConditionalExpression=Q1t;R.assertContinueStatement=Z1t;R.assertDebuggerStatement=ewt;R.assertDecimalLiteral=sDt;R.assertDeclaration=UNt;R.assertDeclareClass=wIt;R.assertDeclareExportAllDeclaration=FIt;R.assertDeclareExportDeclaration=kIt;R.assertDeclareFunction=IIt;R.assertDeclareInterface=OIt;R.assertDeclareModule=DIt;R.assertDeclareModuleExports=NIt;R.assertDeclareOpaqueType=MIt;R.assertDeclareTypeAlias=RIt;R.assertDeclareVariable=LIt;R.assertDeclaredPredicate=BIt;R.assertDecorator=eDt;R.assertDirective=K1t;R.assertDirectiveLiteral=Y1t;R.assertDoExpression=tDt;R.assertDoWhileStatement=twt;R.assertEmptyStatement=rwt;R.assertEmptyTypeAnnotation=XIt;R.assertEnumBody=lRt;R.assertEnumBooleanBody=_Ot;R.assertEnumBooleanMember=COt;R.assertEnumDeclaration=vOt;R.assertEnumDefaultedMember=OOt;R.assertEnumMember=cRt;R.assertEnumNumberBody=xOt;R.assertEnumNumberMember=wOt;R.assertEnumStringBody=AOt;R.assertEnumStringMember=IOt;R.assertEnumSymbolBody=POt;R.assertExistsTypeAnnotation=jIt;R.assertExportAllDeclaration=$wt;R.assertExportDeclaration=eRt;R.assertExportDefaultDeclaration=Kwt;R.assertExportDefaultSpecifier=rDt;R.assertExportNamedDeclaration=Ywt;R.assertExportNamespaceSpecifier=hIt;R.assertExportSpecifier=Wwt;R.assertExpression=_Nt;R.assertExpressionStatement=nwt;R.assertExpressionWrapper=MNt;R.assertFile=iwt;R.assertFlow=iRt;R.assertFlowBaseAnnotation=aRt;R.assertFlowDeclaration=oRt;R.assertFlowPredicate=uRt;R.assertFlowType=sRt;R.assertFor=LNt;R.assertForInStatement=swt;R.assertForOfStatement=Xwt;R.assertForStatement=awt;R.assertForXStatement=kNt;R.assertFunction=FNt;R.assertFunctionDeclaration=owt;R.assertFunctionExpression=uwt;R.assertFunctionParent=BNt;R.assertFunctionTypeAnnotation=UIt;R.assertFunctionTypeParam=qIt;R.assertGenericTypeAnnotation=VIt;R.assertIdentifier=lwt;R.assertIfStatement=cwt;R.assertImmutable=$Nt;R.assertImport=pIt;R.assertImportAttribute=ZOt;R.assertImportDeclaration=zwt;R.assertImportDefaultSpecifier=Jwt;R.assertImportExpression=eIt;R.assertImportNamespaceSpecifier=Qwt;R.assertImportOrExportDeclaration=ZNt;R.assertImportSpecifier=Zwt;R.assertIndexedAccessType=DOt;R.assertInferredPredicate=HIt;R.assertInterfaceDeclaration=$It;R.assertInterfaceExtends=GIt;R.assertInterfaceTypeAnnotation=KIt;R.assertInterpreterDirective=$1t;R.assertIntersectionTypeAnnotation=YIt;R.assertJSX=pRt;R.assertJSXAttribute=ROt;R.assertJSXClosingElement=MOt;R.assertJSXClosingFragment=YOt;R.assertJSXElement=LOt;R.assertJSXEmptyExpression=kOt;R.assertJSXExpressionContainer=FOt;R.assertJSXFragment=$Ot;R.assertJSXIdentifier=jOt;R.assertJSXMemberExpression=UOt;R.assertJSXNamespacedName=qOt;R.assertJSXOpeningElement=VOt;R.assertJSXOpeningFragment=KOt;R.assertJSXSpreadAttribute=HOt;R.assertJSXSpreadChild=BOt;R.assertJSXText=GOt;R.assertLVal=VNt;R.assertLabeledStatement=pwt;R.assertLiteral=GNt;R.assertLogicalExpression=gwt;R.assertLoop=NNt;R.assertMemberExpression=Swt;R.assertMetaProperty=tIt;R.assertMethod=YNt;R.assertMiscellaneous=fRt;R.assertMixedTypeAnnotation=WIt;R.assertModuleDeclaration=bRt;R.assertModuleExpression=aDt;R.assertModuleSpecifier=tRt;R.assertNewExpression=Twt;R.assertNoop=WOt;R.assertNullLiteral=dwt;R.assertNullLiteralTypeAnnotation=PIt;R.assertNullableTypeAnnotation=zIt;R.assertNumberLiteral=gRt;R.assertNumberLiteralTypeAnnotation=JIt;R.assertNumberTypeAnnotation=QIt;R.assertNumericLiteral=hwt;R.assertObjectExpression=bwt;R.assertObjectMember=WNt;R.assertObjectMethod=vwt;R.assertObjectPattern=nIt;R.assertObjectProperty=_wt;R.assertObjectTypeAnnotation=ZIt;R.assertObjectTypeCallProperty=tOt;R.assertObjectTypeIndexer=rOt;R.assertObjectTypeInternalSlot=eOt;R.assertObjectTypeProperty=nOt;R.assertObjectTypeSpreadProperty=iOt;R.assertOpaqueType=sOt;R.assertOptionalCallExpression=mIt;R.assertOptionalIndexedAccessType=NOt;R.assertOptionalMemberExpression=dIt;R.assertParenthesizedExpression=Cwt;R.assertPattern=JNt;R.assertPatternLike=qNt;R.assertPipelineBareFunction=lDt;R.assertPipelinePrimaryTopicReference=cDt;R.assertPipelineTopicExpression=uDt;R.assertPlaceholder=XOt;R.assertPrivate=nRt;R.assertPrivateName=EIt;R.assertProgram=Ewt;R.assertProperty=XNt;R.assertPureish=jNt;R.assertQualifiedTypeIdentifier=aOt;R.assertRecordExpression=nDt;R.assertRegExpLiteral=ywt;R.assertRegexLiteral=SRt;R.assertRestElement=xwt;R.assertRestProperty=TRt;R.assertReturnStatement=Awt;R.assertScopable=ANt;R.assertSequenceExpression=Pwt;R.assertSpreadElement=iIt;R.assertSpreadProperty=ERt;R.assertStandardized=vNt;R.assertStatement=wNt;R.assertStaticBlock=bIt;R.assertStringLiteral=fwt;R.assertStringLiteralTypeAnnotation=oOt;R.assertStringTypeAnnotation=uOt;R.assertSuper=sIt;R.assertSwitchCase=wwt;R.assertSwitchStatement=Iwt;R.assertSymbolTypeAnnotation=lOt;R.assertTSAnyKeyword=EDt;R.assertTSArrayType=UDt;R.assertTSAsExpression=sNt;R.assertTSBaseType=yRt;R.assertTSBigIntKeyword=vDt;R.assertTSBooleanKeyword=bDt;R.assertTSCallSignatureDeclaration=mDt;R.assertTSConditionalType=YDt;R.assertTSConstructSignatureDeclaration=yDt;R.assertTSConstructorType=LDt;R.assertTSDeclareFunction=fDt;R.assertTSDeclareMethod=hDt;R.assertTSEntityName=HNt;R.assertTSEnumDeclaration=uNt;R.assertTSEnumMember=lNt;R.assertTSExportAssignment=yNt;R.assertTSExpressionWithTypeArguments=eNt;R.assertTSExternalModuleReference=dNt;R.assertTSFunctionType=MDt;R.assertTSImportEqualsDeclaration=hNt;R.assertTSImportType=fNt;R.assertTSIndexSignature=TDt;R.assertTSIndexedAccessType=JDt;R.assertTSInferType=WDt;R.assertTSInstantiationExpression=iNt;R.assertTSInterfaceBody=rNt;R.assertTSInterfaceDeclaration=tNt;R.assertTSIntersectionType=KDt;R.assertTSIntrinsicKeyword=_Dt;R.assertTSLiteralType=ZDt;R.assertTSMappedType=QDt;R.assertTSMethodSignature=SDt;R.assertTSModuleBlock=pNt;R.assertTSModuleDeclaration=cNt;R.assertTSNamedTupleMember=GDt;R.assertTSNamespaceExportDeclaration=gNt;R.assertTSNeverKeyword=xDt;R.assertTSNonNullExpression=mNt;R.assertTSNullKeyword=ADt;R.assertTSNumberKeyword=PDt;R.assertTSObjectKeyword=CDt;R.assertTSOptionalType=VDt;R.assertTSParameterProperty=pDt;R.assertTSParenthesizedType=XDt;R.assertTSPropertySignature=gDt;R.assertTSQualifiedName=dDt;R.assertTSRestType=HDt;R.assertTSSatisfiesExpression=aNt;R.assertTSStringKeyword=wDt;R.assertTSSymbolKeyword=IDt;R.assertTSThisType=RDt;R.assertTSTupleType=qDt;R.assertTSType=mRt;R.assertTSTypeAliasDeclaration=nNt;R.assertTSTypeAnnotation=SNt;R.assertTSTypeAssertion=oNt;R.assertTSTypeElement=dRt;R.assertTSTypeLiteral=jDt;R.assertTSTypeOperator=zDt;R.assertTSTypeParameter=bNt;R.assertTSTypeParameterDeclaration=ENt;R.assertTSTypeParameterInstantiation=TNt;R.assertTSTypePredicate=FDt;R.assertTSTypeQuery=BDt;R.assertTSTypeReference=kDt;R.assertTSUndefinedKeyword=ODt;R.assertTSUnionType=$Dt;R.assertTSUnknownKeyword=DDt;R.assertTSVoidKeyword=NDt;R.assertTaggedTemplateExpression=aIt;R.assertTemplateElement=oIt;R.assertTemplateLiteral=uIt;R.assertTerminatorless=INt;R.assertThisExpression=Owt;R.assertThisTypeAnnotation=cOt;R.assertThrowStatement=Dwt;R.assertTopicReference=oDt;R.assertTryStatement=Nwt;R.assertTupleExpression=iDt;R.assertTupleTypeAnnotation=pOt;R.assertTypeAlias=hOt;R.assertTypeAnnotation=dOt;R.assertTypeCastExpression=mOt;R.assertTypeParameter=yOt;R.assertTypeParameterDeclaration=gOt;R.assertTypeParameterInstantiation=SOt;R.assertTypeScript=hRt;R.assertTypeofTypeAnnotation=fOt;R.assertUnaryExpression=Rwt;R.assertUnaryLike=zNt;R.assertUnionTypeAnnotation=TOt;R.assertUpdateExpression=Mwt;R.assertUserWhitespacable=KNt;R.assertV8IntrinsicIdentifier=zOt;R.assertVariableDeclaration=Lwt;R.assertVariableDeclarator=kwt;R.assertVariance=EOt;R.assertVoidTypeAnnotation=bOt;R.assertWhile=RNt;R.assertWhileStatement=Fwt;R.assertWithStatement=Bwt;R.assertYieldExpression=lIt;var q1t=SS(),Ub=Db();function k(e,t,r){if(!(0, q1t.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}function V1t(e,t){k("ArrayExpression",e,t);}function H1t(e,t){k("AssignmentExpression",e,t);}function G1t(e,t){k("BinaryExpression",e,t);}function $1t(e,t){k("InterpreterDirective",e,t);}function K1t(e,t){k("Directive",e,t);}function Y1t(e,t){k("DirectiveLiteral",e,t);}function W1t(e,t){k("BlockStatement",e,t);}function X1t(e,t){k("BreakStatement",e,t);}function z1t(e,t){k("CallExpression",e,t);}function J1t(e,t){k("CatchClause",e,t);}function Q1t(e,t){k("ConditionalExpression",e,t);}function Z1t(e,t){k("ContinueStatement",e,t);}function ewt(e,t){k("DebuggerStatement",e,t);}function twt(e,t){k("DoWhileStatement",e,t);}function rwt(e,t){k("EmptyStatement",e,t);}function nwt(e,t){k("ExpressionStatement",e,t);}function iwt(e,t){k("File",e,t);}function swt(e,t){k("ForInStatement",e,t);}function awt(e,t){k("ForStatement",e,t);}function owt(e,t){k("FunctionDeclaration",e,t);}function uwt(e,t){k("FunctionExpression",e,t);}function lwt(e,t){k("Identifier",e,t);}function cwt(e,t){k("IfStatement",e,t);}function pwt(e,t){k("LabeledStatement",e,t);}function fwt(e,t){k("StringLiteral",e,t);}function hwt(e,t){k("NumericLiteral",e,t);}function dwt(e,t){k("NullLiteral",e,t);}function mwt(e,t){k("BooleanLiteral",e,t);}function ywt(e,t){k("RegExpLiteral",e,t);}function gwt(e,t){k("LogicalExpression",e,t);}function Swt(e,t){k("MemberExpression",e,t);}function Twt(e,t){k("NewExpression",e,t);}function Ewt(e,t){k("Program",e,t);}function bwt(e,t){k("ObjectExpression",e,t);}function vwt(e,t){k("ObjectMethod",e,t);}function _wt(e,t){k("ObjectProperty",e,t);}function xwt(e,t){k("RestElement",e,t);}function Awt(e,t){k("ReturnStatement",e,t);}function Pwt(e,t){k("SequenceExpression",e,t);}function Cwt(e,t){k("ParenthesizedExpression",e,t);}function wwt(e,t){k("SwitchCase",e,t);}function Iwt(e,t){k("SwitchStatement",e,t);}function Owt(e,t){k("ThisExpression",e,t);}function Dwt(e,t){k("ThrowStatement",e,t);}function Nwt(e,t){k("TryStatement",e,t);}function Rwt(e,t){k("UnaryExpression",e,t);}function Mwt(e,t){k("UpdateExpression",e,t);}function Lwt(e,t){k("VariableDeclaration",e,t);}function kwt(e,t){k("VariableDeclarator",e,t);}function Fwt(e,t){k("WhileStatement",e,t);}function Bwt(e,t){k("WithStatement",e,t);}function jwt(e,t){k("AssignmentPattern",e,t);}function Uwt(e,t){k("ArrayPattern",e,t);}function qwt(e,t){k("ArrowFunctionExpression",e,t);}function Vwt(e,t){k("ClassBody",e,t);}function Hwt(e,t){k("ClassExpression",e,t);}function Gwt(e,t){k("ClassDeclaration",e,t);}function $wt(e,t){k("ExportAllDeclaration",e,t);}function Kwt(e,t){k("ExportDefaultDeclaration",e,t);}function Ywt(e,t){k("ExportNamedDeclaration",e,t);}function Wwt(e,t){k("ExportSpecifier",e,t);}function Xwt(e,t){k("ForOfStatement",e,t);}function zwt(e,t){k("ImportDeclaration",e,t);}function Jwt(e,t){k("ImportDefaultSpecifier",e,t);}function Qwt(e,t){k("ImportNamespaceSpecifier",e,t);}function Zwt(e,t){k("ImportSpecifier",e,t);}function eIt(e,t){k("ImportExpression",e,t);}function tIt(e,t){k("MetaProperty",e,t);}function rIt(e,t){k("ClassMethod",e,t);}function nIt(e,t){k("ObjectPattern",e,t);}function iIt(e,t){k("SpreadElement",e,t);}function sIt(e,t){k("Super",e,t);}function aIt(e,t){k("TaggedTemplateExpression",e,t);}function oIt(e,t){k("TemplateElement",e,t);}function uIt(e,t){k("TemplateLiteral",e,t);}function lIt(e,t){k("YieldExpression",e,t);}function cIt(e,t){k("AwaitExpression",e,t);}function pIt(e,t){k("Import",e,t);}function fIt(e,t){k("BigIntLiteral",e,t);}function hIt(e,t){k("ExportNamespaceSpecifier",e,t);}function dIt(e,t){k("OptionalMemberExpression",e,t);}function mIt(e,t){k("OptionalCallExpression",e,t);}function yIt(e,t){k("ClassProperty",e,t);}function gIt(e,t){k("ClassAccessorProperty",e,t);}function SIt(e,t){k("ClassPrivateProperty",e,t);}function TIt(e,t){k("ClassPrivateMethod",e,t);}function EIt(e,t){k("PrivateName",e,t);}function bIt(e,t){k("StaticBlock",e,t);}function vIt(e,t){k("AnyTypeAnnotation",e,t);}function _It(e,t){k("ArrayTypeAnnotation",e,t);}function xIt(e,t){k("BooleanTypeAnnotation",e,t);}function AIt(e,t){k("BooleanLiteralTypeAnnotation",e,t);}function PIt(e,t){k("NullLiteralTypeAnnotation",e,t);}function CIt(e,t){k("ClassImplements",e,t);}function wIt(e,t){k("DeclareClass",e,t);}function IIt(e,t){k("DeclareFunction",e,t);}function OIt(e,t){k("DeclareInterface",e,t);}function DIt(e,t){k("DeclareModule",e,t);}function NIt(e,t){k("DeclareModuleExports",e,t);}function RIt(e,t){k("DeclareTypeAlias",e,t);}function MIt(e,t){k("DeclareOpaqueType",e,t);}function LIt(e,t){k("DeclareVariable",e,t);}function kIt(e,t){k("DeclareExportDeclaration",e,t);}function FIt(e,t){k("DeclareExportAllDeclaration",e,t);}function BIt(e,t){k("DeclaredPredicate",e,t);}function jIt(e,t){k("ExistsTypeAnnotation",e,t);}function UIt(e,t){k("FunctionTypeAnnotation",e,t);}function qIt(e,t){k("FunctionTypeParam",e,t);}function VIt(e,t){k("GenericTypeAnnotation",e,t);}function HIt(e,t){k("InferredPredicate",e,t);}function GIt(e,t){k("InterfaceExtends",e,t);}function $It(e,t){k("InterfaceDeclaration",e,t);}function KIt(e,t){k("InterfaceTypeAnnotation",e,t);}function YIt(e,t){k("IntersectionTypeAnnotation",e,t);}function WIt(e,t){k("MixedTypeAnnotation",e,t);}function XIt(e,t){k("EmptyTypeAnnotation",e,t);}function zIt(e,t){k("NullableTypeAnnotation",e,t);}function JIt(e,t){k("NumberLiteralTypeAnnotation",e,t);}function QIt(e,t){k("NumberTypeAnnotation",e,t);}function ZIt(e,t){k("ObjectTypeAnnotation",e,t);}function eOt(e,t){k("ObjectTypeInternalSlot",e,t);}function tOt(e,t){k("ObjectTypeCallProperty",e,t);}function rOt(e,t){k("ObjectTypeIndexer",e,t);}function nOt(e,t){k("ObjectTypeProperty",e,t);}function iOt(e,t){k("ObjectTypeSpreadProperty",e,t);}function sOt(e,t){k("OpaqueType",e,t);}function aOt(e,t){k("QualifiedTypeIdentifier",e,t);}function oOt(e,t){k("StringLiteralTypeAnnotation",e,t);}function uOt(e,t){k("StringTypeAnnotation",e,t);}function lOt(e,t){k("SymbolTypeAnnotation",e,t);}function cOt(e,t){k("ThisTypeAnnotation",e,t);}function pOt(e,t){k("TupleTypeAnnotation",e,t);}function fOt(e,t){k("TypeofTypeAnnotation",e,t);}function hOt(e,t){k("TypeAlias",e,t);}function dOt(e,t){k("TypeAnnotation",e,t);}function mOt(e,t){k("TypeCastExpression",e,t);}function yOt(e,t){k("TypeParameter",e,t);}function gOt(e,t){k("TypeParameterDeclaration",e,t);}function SOt(e,t){k("TypeParameterInstantiation",e,t);}function TOt(e,t){k("UnionTypeAnnotation",e,t);}function EOt(e,t){k("Variance",e,t);}function bOt(e,t){k("VoidTypeAnnotation",e,t);}function vOt(e,t){k("EnumDeclaration",e,t);}function _Ot(e,t){k("EnumBooleanBody",e,t);}function xOt(e,t){k("EnumNumberBody",e,t);}function AOt(e,t){k("EnumStringBody",e,t);}function POt(e,t){k("EnumSymbolBody",e,t);}function COt(e,t){k("EnumBooleanMember",e,t);}function wOt(e,t){k("EnumNumberMember",e,t);}function IOt(e,t){k("EnumStringMember",e,t);}function OOt(e,t){k("EnumDefaultedMember",e,t);}function DOt(e,t){k("IndexedAccessType",e,t);}function NOt(e,t){k("OptionalIndexedAccessType",e,t);}function ROt(e,t){k("JSXAttribute",e,t);}function MOt(e,t){k("JSXClosingElement",e,t);}function LOt(e,t){k("JSXElement",e,t);}function kOt(e,t){k("JSXEmptyExpression",e,t);}function FOt(e,t){k("JSXExpressionContainer",e,t);}function BOt(e,t){k("JSXSpreadChild",e,t);}function jOt(e,t){k("JSXIdentifier",e,t);}function UOt(e,t){k("JSXMemberExpression",e,t);}function qOt(e,t){k("JSXNamespacedName",e,t);}function VOt(e,t){k("JSXOpeningElement",e,t);}function HOt(e,t){k("JSXSpreadAttribute",e,t);}function GOt(e,t){k("JSXText",e,t);}function $Ot(e,t){k("JSXFragment",e,t);}function KOt(e,t){k("JSXOpeningFragment",e,t);}function YOt(e,t){k("JSXClosingFragment",e,t);}function WOt(e,t){k("Noop",e,t);}function XOt(e,t){k("Placeholder",e,t);}function zOt(e,t){k("V8IntrinsicIdentifier",e,t);}function JOt(e,t){k("ArgumentPlaceholder",e,t);}function QOt(e,t){k("BindExpression",e,t);}function ZOt(e,t){k("ImportAttribute",e,t);}function eDt(e,t){k("Decorator",e,t);}function tDt(e,t){k("DoExpression",e,t);}function rDt(e,t){k("ExportDefaultSpecifier",e,t);}function nDt(e,t){k("RecordExpression",e,t);}function iDt(e,t){k("TupleExpression",e,t);}function sDt(e,t){k("DecimalLiteral",e,t);}function aDt(e,t){k("ModuleExpression",e,t);}function oDt(e,t){k("TopicReference",e,t);}function uDt(e,t){k("PipelineTopicExpression",e,t);}function lDt(e,t){k("PipelineBareFunction",e,t);}function cDt(e,t){k("PipelinePrimaryTopicReference",e,t);}function pDt(e,t){k("TSParameterProperty",e,t);}function fDt(e,t){k("TSDeclareFunction",e,t);}function hDt(e,t){k("TSDeclareMethod",e,t);}function dDt(e,t){k("TSQualifiedName",e,t);}function mDt(e,t){k("TSCallSignatureDeclaration",e,t);}function yDt(e,t){k("TSConstructSignatureDeclaration",e,t);}function gDt(e,t){k("TSPropertySignature",e,t);}function SDt(e,t){k("TSMethodSignature",e,t);}function TDt(e,t){k("TSIndexSignature",e,t);}function EDt(e,t){k("TSAnyKeyword",e,t);}function bDt(e,t){k("TSBooleanKeyword",e,t);}function vDt(e,t){k("TSBigIntKeyword",e,t);}function _Dt(e,t){k("TSIntrinsicKeyword",e,t);}function xDt(e,t){k("TSNeverKeyword",e,t);}function ADt(e,t){k("TSNullKeyword",e,t);}function PDt(e,t){k("TSNumberKeyword",e,t);}function CDt(e,t){k("TSObjectKeyword",e,t);}function wDt(e,t){k("TSStringKeyword",e,t);}function IDt(e,t){k("TSSymbolKeyword",e,t);}function ODt(e,t){k("TSUndefinedKeyword",e,t);}function DDt(e,t){k("TSUnknownKeyword",e,t);}function NDt(e,t){k("TSVoidKeyword",e,t);}function RDt(e,t){k("TSThisType",e,t);}function MDt(e,t){k("TSFunctionType",e,t);}function LDt(e,t){k("TSConstructorType",e,t);}function kDt(e,t){k("TSTypeReference",e,t);}function FDt(e,t){k("TSTypePredicate",e,t);}function BDt(e,t){k("TSTypeQuery",e,t);}function jDt(e,t){k("TSTypeLiteral",e,t);}function UDt(e,t){k("TSArrayType",e,t);}function qDt(e,t){k("TSTupleType",e,t);}function VDt(e,t){k("TSOptionalType",e,t);}function HDt(e,t){k("TSRestType",e,t);}function GDt(e,t){k("TSNamedTupleMember",e,t);}function $Dt(e,t){k("TSUnionType",e,t);}function KDt(e,t){k("TSIntersectionType",e,t);}function YDt(e,t){k("TSConditionalType",e,t);}function WDt(e,t){k("TSInferType",e,t);}function XDt(e,t){k("TSParenthesizedType",e,t);}function zDt(e,t){k("TSTypeOperator",e,t);}function JDt(e,t){k("TSIndexedAccessType",e,t);}function QDt(e,t){k("TSMappedType",e,t);}function ZDt(e,t){k("TSLiteralType",e,t);}function eNt(e,t){k("TSExpressionWithTypeArguments",e,t);}function tNt(e,t){k("TSInterfaceDeclaration",e,t);}function rNt(e,t){k("TSInterfaceBody",e,t);}function nNt(e,t){k("TSTypeAliasDeclaration",e,t);}function iNt(e,t){k("TSInstantiationExpression",e,t);}function sNt(e,t){k("TSAsExpression",e,t);}function aNt(e,t){k("TSSatisfiesExpression",e,t);}function oNt(e,t){k("TSTypeAssertion",e,t);}function uNt(e,t){k("TSEnumDeclaration",e,t);}function lNt(e,t){k("TSEnumMember",e,t);}function cNt(e,t){k("TSModuleDeclaration",e,t);}function pNt(e,t){k("TSModuleBlock",e,t);}function fNt(e,t){k("TSImportType",e,t);}function hNt(e,t){k("TSImportEqualsDeclaration",e,t);}function dNt(e,t){k("TSExternalModuleReference",e,t);}function mNt(e,t){k("TSNonNullExpression",e,t);}function yNt(e,t){k("TSExportAssignment",e,t);}function gNt(e,t){k("TSNamespaceExportDeclaration",e,t);}function SNt(e,t){k("TSTypeAnnotation",e,t);}function TNt(e,t){k("TSTypeParameterInstantiation",e,t);}function ENt(e,t){k("TSTypeParameterDeclaration",e,t);}function bNt(e,t){k("TSTypeParameter",e,t);}function vNt(e,t){k("Standardized",e,t);}function _Nt(e,t){k("Expression",e,t);}function xNt(e,t){k("Binary",e,t);}function ANt(e,t){k("Scopable",e,t);}function PNt(e,t){k("BlockParent",e,t);}function CNt(e,t){k("Block",e,t);}function wNt(e,t){k("Statement",e,t);}function INt(e,t){k("Terminatorless",e,t);}function ONt(e,t){k("CompletionStatement",e,t);}function DNt(e,t){k("Conditional",e,t);}function NNt(e,t){k("Loop",e,t);}function RNt(e,t){k("While",e,t);}function MNt(e,t){k("ExpressionWrapper",e,t);}function LNt(e,t){k("For",e,t);}function kNt(e,t){k("ForXStatement",e,t);}function FNt(e,t){k("Function",e,t);}function BNt(e,t){k("FunctionParent",e,t);}function jNt(e,t){k("Pureish",e,t);}function UNt(e,t){k("Declaration",e,t);}function qNt(e,t){k("PatternLike",e,t);}function VNt(e,t){k("LVal",e,t);}function HNt(e,t){k("TSEntityName",e,t);}function GNt(e,t){k("Literal",e,t);}function $Nt(e,t){k("Immutable",e,t);}function KNt(e,t){k("UserWhitespacable",e,t);}function YNt(e,t){k("Method",e,t);}function WNt(e,t){k("ObjectMember",e,t);}function XNt(e,t){k("Property",e,t);}function zNt(e,t){k("UnaryLike",e,t);}function JNt(e,t){k("Pattern",e,t);}function QNt(e,t){k("Class",e,t);}function ZNt(e,t){k("ImportOrExportDeclaration",e,t);}function eRt(e,t){k("ExportDeclaration",e,t);}function tRt(e,t){k("ModuleSpecifier",e,t);}function rRt(e,t){k("Accessor",e,t);}function nRt(e,t){k("Private",e,t);}function iRt(e,t){k("Flow",e,t);}function sRt(e,t){k("FlowType",e,t);}function aRt(e,t){k("FlowBaseAnnotation",e,t);}function oRt(e,t){k("FlowDeclaration",e,t);}function uRt(e,t){k("FlowPredicate",e,t);}function lRt(e,t){k("EnumBody",e,t);}function cRt(e,t){k("EnumMember",e,t);}function pRt(e,t){k("JSX",e,t);}function fRt(e,t){k("Miscellaneous",e,t);}function hRt(e,t){k("TypeScript",e,t);}function dRt(e,t){k("TSTypeElement",e,t);}function mRt(e,t){k("TSType",e,t);}function yRt(e,t){k("TSBaseType",e,t);}function gRt(e,t){(0, Ub.default)("assertNumberLiteral","assertNumericLiteral"),k("NumberLiteral",e,t);}function SRt(e,t){(0, Ub.default)("assertRegexLiteral","assertRegExpLiteral"),k("RegexLiteral",e,t);}function TRt(e,t){(0, Ub.default)("assertRestProperty","assertRestElement"),k("RestProperty",e,t);}function ERt(e,t){(0, Ub.default)("assertSpreadProperty","assertSpreadElement"),k("SpreadProperty",e,t);}function bRt(e,t){(0, Ub.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),k("ModuleDeclaration",e,t);}});var ixe=chunkTKGT252T_js.c(Uw=>{Object.defineProperty(Uw,"__esModule",{value:!0});Uw.default=void 0;var hu=Gs();Uw.default=vRt;function vRt(e){switch(e){case"string":return (0, hu.stringTypeAnnotation)();case"number":return (0, hu.numberTypeAnnotation)();case"undefined":return (0, hu.voidTypeAnnotation)();case"boolean":return (0, hu.booleanTypeAnnotation)();case"function":return (0, hu.genericTypeAnnotation)((0, hu.identifier)("Function"));case"object":return (0, hu.genericTypeAnnotation)((0, hu.identifier)("Object"));case"symbol":return (0, hu.genericTypeAnnotation)((0, hu.identifier)("Symbol"));case"bigint":return (0, hu.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)}});var dU=chunkTKGT252T_js.c(hU=>{Object.defineProperty(hU,"__esModule",{value:!0});hU.default=axe;var qb=ci();function sxe(e){return (0, qb.isIdentifier)(e)?e.name:`${e.id.name}.${sxe(e.qualification)}`}function axe(e){let t=Array.from(e),r=new Map,n=new Map,i=new Set,s=[];for(let a=0;a=0)){if((0, qb.isAnyTypeAnnotation)(o))return [o];if((0, qb.isFlowBaseAnnotation)(o)){n.set(o.type,o);continue}if((0, qb.isUnionTypeAnnotation)(o)){i.has(o.types)||(t.push(...o.types),i.add(o.types));continue}if((0, qb.isGenericTypeAnnotation)(o)){let u=sxe(o.id);if(r.has(u)){let l=r.get(u);l.typeParameters?o.typeParameters&&(l.typeParameters.params.push(...o.typeParameters.params),l.typeParameters.params=axe(l.typeParameters.params)):l=o.typeParameters;}else r.set(u,o);continue}s.push(o);}}for(let[,a]of n)s.push(a);for(let[,a]of r)s.push(a);return s}});var oxe=chunkTKGT252T_js.c(mU=>{Object.defineProperty(mU,"__esModule",{value:!0});mU.default=ARt;var _Rt=Gs(),xRt=dU();function ARt(e){let t=(0, xRt.default)(e);return t.length===1?t[0]:(0, _Rt.unionTypeAnnotation)(t)}});var cxe=chunkTKGT252T_js.c(yU=>{Object.defineProperty(yU,"__esModule",{value:!0});yU.default=lxe;var Vb=ci();function uxe(e){return (0, Vb.isIdentifier)(e)?e.name:`${e.right.name}.${uxe(e.left)}`}function lxe(e){let t=Array.from(e),r=new Map,n=new Map,i=new Set,s=[];for(let a=0;a=0)){if((0, Vb.isTSAnyKeyword)(o))return [o];if((0, Vb.isTSBaseType)(o)){n.set(o.type,o);continue}if((0, Vb.isTSUnionType)(o)){i.has(o.types)||(t.push(...o.types),i.add(o.types));continue}if((0, Vb.isTSTypeReference)(o)&&o.typeParameters){let u=uxe(o.typeName);if(r.has(u)){let l=r.get(u);l.typeParameters?o.typeParameters&&(l.typeParameters.params.push(...o.typeParameters.params),l.typeParameters.params=lxe(l.typeParameters.params)):l=o.typeParameters;}else r.set(u,o);continue}s.push(o);}}for(let[,a]of n)s.push(a);for(let[,a]of r)s.push(a);return s}});var pxe=chunkTKGT252T_js.c(gU=>{Object.defineProperty(gU,"__esModule",{value:!0});gU.default=IRt;var PRt=Gs(),CRt=cxe(),wRt=ci();function IRt(e){let t=e.map(n=>(0, wRt.isTSTypeAnnotation)(n)?n.typeAnnotation:n),r=(0, CRt.default)(t);return r.length===1?r[0]:(0, PRt.tsUnionType)(r)}});var fxe=chunkTKGT252T_js.c(H=>{Object.defineProperty(H,"__esModule",{value:!0});Object.defineProperty(H,"AnyTypeAnnotation",{enumerable:!0,get:function(){return $.anyTypeAnnotation}});Object.defineProperty(H,"ArgumentPlaceholder",{enumerable:!0,get:function(){return $.argumentPlaceholder}});Object.defineProperty(H,"ArrayExpression",{enumerable:!0,get:function(){return $.arrayExpression}});Object.defineProperty(H,"ArrayPattern",{enumerable:!0,get:function(){return $.arrayPattern}});Object.defineProperty(H,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return $.arrayTypeAnnotation}});Object.defineProperty(H,"ArrowFunctionExpression",{enumerable:!0,get:function(){return $.arrowFunctionExpression}});Object.defineProperty(H,"AssignmentExpression",{enumerable:!0,get:function(){return $.assignmentExpression}});Object.defineProperty(H,"AssignmentPattern",{enumerable:!0,get:function(){return $.assignmentPattern}});Object.defineProperty(H,"AwaitExpression",{enumerable:!0,get:function(){return $.awaitExpression}});Object.defineProperty(H,"BigIntLiteral",{enumerable:!0,get:function(){return $.bigIntLiteral}});Object.defineProperty(H,"BinaryExpression",{enumerable:!0,get:function(){return $.binaryExpression}});Object.defineProperty(H,"BindExpression",{enumerable:!0,get:function(){return $.bindExpression}});Object.defineProperty(H,"BlockStatement",{enumerable:!0,get:function(){return $.blockStatement}});Object.defineProperty(H,"BooleanLiteral",{enumerable:!0,get:function(){return $.booleanLiteral}});Object.defineProperty(H,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return $.booleanLiteralTypeAnnotation}});Object.defineProperty(H,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return $.booleanTypeAnnotation}});Object.defineProperty(H,"BreakStatement",{enumerable:!0,get:function(){return $.breakStatement}});Object.defineProperty(H,"CallExpression",{enumerable:!0,get:function(){return $.callExpression}});Object.defineProperty(H,"CatchClause",{enumerable:!0,get:function(){return $.catchClause}});Object.defineProperty(H,"ClassAccessorProperty",{enumerable:!0,get:function(){return $.classAccessorProperty}});Object.defineProperty(H,"ClassBody",{enumerable:!0,get:function(){return $.classBody}});Object.defineProperty(H,"ClassDeclaration",{enumerable:!0,get:function(){return $.classDeclaration}});Object.defineProperty(H,"ClassExpression",{enumerable:!0,get:function(){return $.classExpression}});Object.defineProperty(H,"ClassImplements",{enumerable:!0,get:function(){return $.classImplements}});Object.defineProperty(H,"ClassMethod",{enumerable:!0,get:function(){return $.classMethod}});Object.defineProperty(H,"ClassPrivateMethod",{enumerable:!0,get:function(){return $.classPrivateMethod}});Object.defineProperty(H,"ClassPrivateProperty",{enumerable:!0,get:function(){return $.classPrivateProperty}});Object.defineProperty(H,"ClassProperty",{enumerable:!0,get:function(){return $.classProperty}});Object.defineProperty(H,"ConditionalExpression",{enumerable:!0,get:function(){return $.conditionalExpression}});Object.defineProperty(H,"ContinueStatement",{enumerable:!0,get:function(){return $.continueStatement}});Object.defineProperty(H,"DebuggerStatement",{enumerable:!0,get:function(){return $.debuggerStatement}});Object.defineProperty(H,"DecimalLiteral",{enumerable:!0,get:function(){return $.decimalLiteral}});Object.defineProperty(H,"DeclareClass",{enumerable:!0,get:function(){return $.declareClass}});Object.defineProperty(H,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return $.declareExportAllDeclaration}});Object.defineProperty(H,"DeclareExportDeclaration",{enumerable:!0,get:function(){return $.declareExportDeclaration}});Object.defineProperty(H,"DeclareFunction",{enumerable:!0,get:function(){return $.declareFunction}});Object.defineProperty(H,"DeclareInterface",{enumerable:!0,get:function(){return $.declareInterface}});Object.defineProperty(H,"DeclareModule",{enumerable:!0,get:function(){return $.declareModule}});Object.defineProperty(H,"DeclareModuleExports",{enumerable:!0,get:function(){return $.declareModuleExports}});Object.defineProperty(H,"DeclareOpaqueType",{enumerable:!0,get:function(){return $.declareOpaqueType}});Object.defineProperty(H,"DeclareTypeAlias",{enumerable:!0,get:function(){return $.declareTypeAlias}});Object.defineProperty(H,"DeclareVariable",{enumerable:!0,get:function(){return $.declareVariable}});Object.defineProperty(H,"DeclaredPredicate",{enumerable:!0,get:function(){return $.declaredPredicate}});Object.defineProperty(H,"Decorator",{enumerable:!0,get:function(){return $.decorator}});Object.defineProperty(H,"Directive",{enumerable:!0,get:function(){return $.directive}});Object.defineProperty(H,"DirectiveLiteral",{enumerable:!0,get:function(){return $.directiveLiteral}});Object.defineProperty(H,"DoExpression",{enumerable:!0,get:function(){return $.doExpression}});Object.defineProperty(H,"DoWhileStatement",{enumerable:!0,get:function(){return $.doWhileStatement}});Object.defineProperty(H,"EmptyStatement",{enumerable:!0,get:function(){return $.emptyStatement}});Object.defineProperty(H,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return $.emptyTypeAnnotation}});Object.defineProperty(H,"EnumBooleanBody",{enumerable:!0,get:function(){return $.enumBooleanBody}});Object.defineProperty(H,"EnumBooleanMember",{enumerable:!0,get:function(){return $.enumBooleanMember}});Object.defineProperty(H,"EnumDeclaration",{enumerable:!0,get:function(){return $.enumDeclaration}});Object.defineProperty(H,"EnumDefaultedMember",{enumerable:!0,get:function(){return $.enumDefaultedMember}});Object.defineProperty(H,"EnumNumberBody",{enumerable:!0,get:function(){return $.enumNumberBody}});Object.defineProperty(H,"EnumNumberMember",{enumerable:!0,get:function(){return $.enumNumberMember}});Object.defineProperty(H,"EnumStringBody",{enumerable:!0,get:function(){return $.enumStringBody}});Object.defineProperty(H,"EnumStringMember",{enumerable:!0,get:function(){return $.enumStringMember}});Object.defineProperty(H,"EnumSymbolBody",{enumerable:!0,get:function(){return $.enumSymbolBody}});Object.defineProperty(H,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return $.existsTypeAnnotation}});Object.defineProperty(H,"ExportAllDeclaration",{enumerable:!0,get:function(){return $.exportAllDeclaration}});Object.defineProperty(H,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return $.exportDefaultDeclaration}});Object.defineProperty(H,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return $.exportDefaultSpecifier}});Object.defineProperty(H,"ExportNamedDeclaration",{enumerable:!0,get:function(){return $.exportNamedDeclaration}});Object.defineProperty(H,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return $.exportNamespaceSpecifier}});Object.defineProperty(H,"ExportSpecifier",{enumerable:!0,get:function(){return $.exportSpecifier}});Object.defineProperty(H,"ExpressionStatement",{enumerable:!0,get:function(){return $.expressionStatement}});Object.defineProperty(H,"File",{enumerable:!0,get:function(){return $.file}});Object.defineProperty(H,"ForInStatement",{enumerable:!0,get:function(){return $.forInStatement}});Object.defineProperty(H,"ForOfStatement",{enumerable:!0,get:function(){return $.forOfStatement}});Object.defineProperty(H,"ForStatement",{enumerable:!0,get:function(){return $.forStatement}});Object.defineProperty(H,"FunctionDeclaration",{enumerable:!0,get:function(){return $.functionDeclaration}});Object.defineProperty(H,"FunctionExpression",{enumerable:!0,get:function(){return $.functionExpression}});Object.defineProperty(H,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return $.functionTypeAnnotation}});Object.defineProperty(H,"FunctionTypeParam",{enumerable:!0,get:function(){return $.functionTypeParam}});Object.defineProperty(H,"GenericTypeAnnotation",{enumerable:!0,get:function(){return $.genericTypeAnnotation}});Object.defineProperty(H,"Identifier",{enumerable:!0,get:function(){return $.identifier}});Object.defineProperty(H,"IfStatement",{enumerable:!0,get:function(){return $.ifStatement}});Object.defineProperty(H,"Import",{enumerable:!0,get:function(){return $.import}});Object.defineProperty(H,"ImportAttribute",{enumerable:!0,get:function(){return $.importAttribute}});Object.defineProperty(H,"ImportDeclaration",{enumerable:!0,get:function(){return $.importDeclaration}});Object.defineProperty(H,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return $.importDefaultSpecifier}});Object.defineProperty(H,"ImportExpression",{enumerable:!0,get:function(){return $.importExpression}});Object.defineProperty(H,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return $.importNamespaceSpecifier}});Object.defineProperty(H,"ImportSpecifier",{enumerable:!0,get:function(){return $.importSpecifier}});Object.defineProperty(H,"IndexedAccessType",{enumerable:!0,get:function(){return $.indexedAccessType}});Object.defineProperty(H,"InferredPredicate",{enumerable:!0,get:function(){return $.inferredPredicate}});Object.defineProperty(H,"InterfaceDeclaration",{enumerable:!0,get:function(){return $.interfaceDeclaration}});Object.defineProperty(H,"InterfaceExtends",{enumerable:!0,get:function(){return $.interfaceExtends}});Object.defineProperty(H,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return $.interfaceTypeAnnotation}});Object.defineProperty(H,"InterpreterDirective",{enumerable:!0,get:function(){return $.interpreterDirective}});Object.defineProperty(H,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return $.intersectionTypeAnnotation}});Object.defineProperty(H,"JSXAttribute",{enumerable:!0,get:function(){return $.jsxAttribute}});Object.defineProperty(H,"JSXClosingElement",{enumerable:!0,get:function(){return $.jsxClosingElement}});Object.defineProperty(H,"JSXClosingFragment",{enumerable:!0,get:function(){return $.jsxClosingFragment}});Object.defineProperty(H,"JSXElement",{enumerable:!0,get:function(){return $.jsxElement}});Object.defineProperty(H,"JSXEmptyExpression",{enumerable:!0,get:function(){return $.jsxEmptyExpression}});Object.defineProperty(H,"JSXExpressionContainer",{enumerable:!0,get:function(){return $.jsxExpressionContainer}});Object.defineProperty(H,"JSXFragment",{enumerable:!0,get:function(){return $.jsxFragment}});Object.defineProperty(H,"JSXIdentifier",{enumerable:!0,get:function(){return $.jsxIdentifier}});Object.defineProperty(H,"JSXMemberExpression",{enumerable:!0,get:function(){return $.jsxMemberExpression}});Object.defineProperty(H,"JSXNamespacedName",{enumerable:!0,get:function(){return $.jsxNamespacedName}});Object.defineProperty(H,"JSXOpeningElement",{enumerable:!0,get:function(){return $.jsxOpeningElement}});Object.defineProperty(H,"JSXOpeningFragment",{enumerable:!0,get:function(){return $.jsxOpeningFragment}});Object.defineProperty(H,"JSXSpreadAttribute",{enumerable:!0,get:function(){return $.jsxSpreadAttribute}});Object.defineProperty(H,"JSXSpreadChild",{enumerable:!0,get:function(){return $.jsxSpreadChild}});Object.defineProperty(H,"JSXText",{enumerable:!0,get:function(){return $.jsxText}});Object.defineProperty(H,"LabeledStatement",{enumerable:!0,get:function(){return $.labeledStatement}});Object.defineProperty(H,"LogicalExpression",{enumerable:!0,get:function(){return $.logicalExpression}});Object.defineProperty(H,"MemberExpression",{enumerable:!0,get:function(){return $.memberExpression}});Object.defineProperty(H,"MetaProperty",{enumerable:!0,get:function(){return $.metaProperty}});Object.defineProperty(H,"MixedTypeAnnotation",{enumerable:!0,get:function(){return $.mixedTypeAnnotation}});Object.defineProperty(H,"ModuleExpression",{enumerable:!0,get:function(){return $.moduleExpression}});Object.defineProperty(H,"NewExpression",{enumerable:!0,get:function(){return $.newExpression}});Object.defineProperty(H,"Noop",{enumerable:!0,get:function(){return $.noop}});Object.defineProperty(H,"NullLiteral",{enumerable:!0,get:function(){return $.nullLiteral}});Object.defineProperty(H,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return $.nullLiteralTypeAnnotation}});Object.defineProperty(H,"NullableTypeAnnotation",{enumerable:!0,get:function(){return $.nullableTypeAnnotation}});Object.defineProperty(H,"NumberLiteral",{enumerable:!0,get:function(){return $.numberLiteral}});Object.defineProperty(H,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return $.numberLiteralTypeAnnotation}});Object.defineProperty(H,"NumberTypeAnnotation",{enumerable:!0,get:function(){return $.numberTypeAnnotation}});Object.defineProperty(H,"NumericLiteral",{enumerable:!0,get:function(){return $.numericLiteral}});Object.defineProperty(H,"ObjectExpression",{enumerable:!0,get:function(){return $.objectExpression}});Object.defineProperty(H,"ObjectMethod",{enumerable:!0,get:function(){return $.objectMethod}});Object.defineProperty(H,"ObjectPattern",{enumerable:!0,get:function(){return $.objectPattern}});Object.defineProperty(H,"ObjectProperty",{enumerable:!0,get:function(){return $.objectProperty}});Object.defineProperty(H,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return $.objectTypeAnnotation}});Object.defineProperty(H,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return $.objectTypeCallProperty}});Object.defineProperty(H,"ObjectTypeIndexer",{enumerable:!0,get:function(){return $.objectTypeIndexer}});Object.defineProperty(H,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return $.objectTypeInternalSlot}});Object.defineProperty(H,"ObjectTypeProperty",{enumerable:!0,get:function(){return $.objectTypeProperty}});Object.defineProperty(H,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return $.objectTypeSpreadProperty}});Object.defineProperty(H,"OpaqueType",{enumerable:!0,get:function(){return $.opaqueType}});Object.defineProperty(H,"OptionalCallExpression",{enumerable:!0,get:function(){return $.optionalCallExpression}});Object.defineProperty(H,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return $.optionalIndexedAccessType}});Object.defineProperty(H,"OptionalMemberExpression",{enumerable:!0,get:function(){return $.optionalMemberExpression}});Object.defineProperty(H,"ParenthesizedExpression",{enumerable:!0,get:function(){return $.parenthesizedExpression}});Object.defineProperty(H,"PipelineBareFunction",{enumerable:!0,get:function(){return $.pipelineBareFunction}});Object.defineProperty(H,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return $.pipelinePrimaryTopicReference}});Object.defineProperty(H,"PipelineTopicExpression",{enumerable:!0,get:function(){return $.pipelineTopicExpression}});Object.defineProperty(H,"Placeholder",{enumerable:!0,get:function(){return $.placeholder}});Object.defineProperty(H,"PrivateName",{enumerable:!0,get:function(){return $.privateName}});Object.defineProperty(H,"Program",{enumerable:!0,get:function(){return $.program}});Object.defineProperty(H,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return $.qualifiedTypeIdentifier}});Object.defineProperty(H,"RecordExpression",{enumerable:!0,get:function(){return $.recordExpression}});Object.defineProperty(H,"RegExpLiteral",{enumerable:!0,get:function(){return $.regExpLiteral}});Object.defineProperty(H,"RegexLiteral",{enumerable:!0,get:function(){return $.regexLiteral}});Object.defineProperty(H,"RestElement",{enumerable:!0,get:function(){return $.restElement}});Object.defineProperty(H,"RestProperty",{enumerable:!0,get:function(){return $.restProperty}});Object.defineProperty(H,"ReturnStatement",{enumerable:!0,get:function(){return $.returnStatement}});Object.defineProperty(H,"SequenceExpression",{enumerable:!0,get:function(){return $.sequenceExpression}});Object.defineProperty(H,"SpreadElement",{enumerable:!0,get:function(){return $.spreadElement}});Object.defineProperty(H,"SpreadProperty",{enumerable:!0,get:function(){return $.spreadProperty}});Object.defineProperty(H,"StaticBlock",{enumerable:!0,get:function(){return $.staticBlock}});Object.defineProperty(H,"StringLiteral",{enumerable:!0,get:function(){return $.stringLiteral}});Object.defineProperty(H,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return $.stringLiteralTypeAnnotation}});Object.defineProperty(H,"StringTypeAnnotation",{enumerable:!0,get:function(){return $.stringTypeAnnotation}});Object.defineProperty(H,"Super",{enumerable:!0,get:function(){return $.super}});Object.defineProperty(H,"SwitchCase",{enumerable:!0,get:function(){return $.switchCase}});Object.defineProperty(H,"SwitchStatement",{enumerable:!0,get:function(){return $.switchStatement}});Object.defineProperty(H,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return $.symbolTypeAnnotation}});Object.defineProperty(H,"TSAnyKeyword",{enumerable:!0,get:function(){return $.tsAnyKeyword}});Object.defineProperty(H,"TSArrayType",{enumerable:!0,get:function(){return $.tsArrayType}});Object.defineProperty(H,"TSAsExpression",{enumerable:!0,get:function(){return $.tsAsExpression}});Object.defineProperty(H,"TSBigIntKeyword",{enumerable:!0,get:function(){return $.tsBigIntKeyword}});Object.defineProperty(H,"TSBooleanKeyword",{enumerable:!0,get:function(){return $.tsBooleanKeyword}});Object.defineProperty(H,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return $.tsCallSignatureDeclaration}});Object.defineProperty(H,"TSConditionalType",{enumerable:!0,get:function(){return $.tsConditionalType}});Object.defineProperty(H,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return $.tsConstructSignatureDeclaration}});Object.defineProperty(H,"TSConstructorType",{enumerable:!0,get:function(){return $.tsConstructorType}});Object.defineProperty(H,"TSDeclareFunction",{enumerable:!0,get:function(){return $.tsDeclareFunction}});Object.defineProperty(H,"TSDeclareMethod",{enumerable:!0,get:function(){return $.tsDeclareMethod}});Object.defineProperty(H,"TSEnumDeclaration",{enumerable:!0,get:function(){return $.tsEnumDeclaration}});Object.defineProperty(H,"TSEnumMember",{enumerable:!0,get:function(){return $.tsEnumMember}});Object.defineProperty(H,"TSExportAssignment",{enumerable:!0,get:function(){return $.tsExportAssignment}});Object.defineProperty(H,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return $.tsExpressionWithTypeArguments}});Object.defineProperty(H,"TSExternalModuleReference",{enumerable:!0,get:function(){return $.tsExternalModuleReference}});Object.defineProperty(H,"TSFunctionType",{enumerable:!0,get:function(){return $.tsFunctionType}});Object.defineProperty(H,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return $.tsImportEqualsDeclaration}});Object.defineProperty(H,"TSImportType",{enumerable:!0,get:function(){return $.tsImportType}});Object.defineProperty(H,"TSIndexSignature",{enumerable:!0,get:function(){return $.tsIndexSignature}});Object.defineProperty(H,"TSIndexedAccessType",{enumerable:!0,get:function(){return $.tsIndexedAccessType}});Object.defineProperty(H,"TSInferType",{enumerable:!0,get:function(){return $.tsInferType}});Object.defineProperty(H,"TSInstantiationExpression",{enumerable:!0,get:function(){return $.tsInstantiationExpression}});Object.defineProperty(H,"TSInterfaceBody",{enumerable:!0,get:function(){return $.tsInterfaceBody}});Object.defineProperty(H,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return $.tsInterfaceDeclaration}});Object.defineProperty(H,"TSIntersectionType",{enumerable:!0,get:function(){return $.tsIntersectionType}});Object.defineProperty(H,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return $.tsIntrinsicKeyword}});Object.defineProperty(H,"TSLiteralType",{enumerable:!0,get:function(){return $.tsLiteralType}});Object.defineProperty(H,"TSMappedType",{enumerable:!0,get:function(){return $.tsMappedType}});Object.defineProperty(H,"TSMethodSignature",{enumerable:!0,get:function(){return $.tsMethodSignature}});Object.defineProperty(H,"TSModuleBlock",{enumerable:!0,get:function(){return $.tsModuleBlock}});Object.defineProperty(H,"TSModuleDeclaration",{enumerable:!0,get:function(){return $.tsModuleDeclaration}});Object.defineProperty(H,"TSNamedTupleMember",{enumerable:!0,get:function(){return $.tsNamedTupleMember}});Object.defineProperty(H,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return $.tsNamespaceExportDeclaration}});Object.defineProperty(H,"TSNeverKeyword",{enumerable:!0,get:function(){return $.tsNeverKeyword}});Object.defineProperty(H,"TSNonNullExpression",{enumerable:!0,get:function(){return $.tsNonNullExpression}});Object.defineProperty(H,"TSNullKeyword",{enumerable:!0,get:function(){return $.tsNullKeyword}});Object.defineProperty(H,"TSNumberKeyword",{enumerable:!0,get:function(){return $.tsNumberKeyword}});Object.defineProperty(H,"TSObjectKeyword",{enumerable:!0,get:function(){return $.tsObjectKeyword}});Object.defineProperty(H,"TSOptionalType",{enumerable:!0,get:function(){return $.tsOptionalType}});Object.defineProperty(H,"TSParameterProperty",{enumerable:!0,get:function(){return $.tsParameterProperty}});Object.defineProperty(H,"TSParenthesizedType",{enumerable:!0,get:function(){return $.tsParenthesizedType}});Object.defineProperty(H,"TSPropertySignature",{enumerable:!0,get:function(){return $.tsPropertySignature}});Object.defineProperty(H,"TSQualifiedName",{enumerable:!0,get:function(){return $.tsQualifiedName}});Object.defineProperty(H,"TSRestType",{enumerable:!0,get:function(){return $.tsRestType}});Object.defineProperty(H,"TSSatisfiesExpression",{enumerable:!0,get:function(){return $.tsSatisfiesExpression}});Object.defineProperty(H,"TSStringKeyword",{enumerable:!0,get:function(){return $.tsStringKeyword}});Object.defineProperty(H,"TSSymbolKeyword",{enumerable:!0,get:function(){return $.tsSymbolKeyword}});Object.defineProperty(H,"TSThisType",{enumerable:!0,get:function(){return $.tsThisType}});Object.defineProperty(H,"TSTupleType",{enumerable:!0,get:function(){return $.tsTupleType}});Object.defineProperty(H,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return $.tsTypeAliasDeclaration}});Object.defineProperty(H,"TSTypeAnnotation",{enumerable:!0,get:function(){return $.tsTypeAnnotation}});Object.defineProperty(H,"TSTypeAssertion",{enumerable:!0,get:function(){return $.tsTypeAssertion}});Object.defineProperty(H,"TSTypeLiteral",{enumerable:!0,get:function(){return $.tsTypeLiteral}});Object.defineProperty(H,"TSTypeOperator",{enumerable:!0,get:function(){return $.tsTypeOperator}});Object.defineProperty(H,"TSTypeParameter",{enumerable:!0,get:function(){return $.tsTypeParameter}});Object.defineProperty(H,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return $.tsTypeParameterDeclaration}});Object.defineProperty(H,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return $.tsTypeParameterInstantiation}});Object.defineProperty(H,"TSTypePredicate",{enumerable:!0,get:function(){return $.tsTypePredicate}});Object.defineProperty(H,"TSTypeQuery",{enumerable:!0,get:function(){return $.tsTypeQuery}});Object.defineProperty(H,"TSTypeReference",{enumerable:!0,get:function(){return $.tsTypeReference}});Object.defineProperty(H,"TSUndefinedKeyword",{enumerable:!0,get:function(){return $.tsUndefinedKeyword}});Object.defineProperty(H,"TSUnionType",{enumerable:!0,get:function(){return $.tsUnionType}});Object.defineProperty(H,"TSUnknownKeyword",{enumerable:!0,get:function(){return $.tsUnknownKeyword}});Object.defineProperty(H,"TSVoidKeyword",{enumerable:!0,get:function(){return $.tsVoidKeyword}});Object.defineProperty(H,"TaggedTemplateExpression",{enumerable:!0,get:function(){return $.taggedTemplateExpression}});Object.defineProperty(H,"TemplateElement",{enumerable:!0,get:function(){return $.templateElement}});Object.defineProperty(H,"TemplateLiteral",{enumerable:!0,get:function(){return $.templateLiteral}});Object.defineProperty(H,"ThisExpression",{enumerable:!0,get:function(){return $.thisExpression}});Object.defineProperty(H,"ThisTypeAnnotation",{enumerable:!0,get:function(){return $.thisTypeAnnotation}});Object.defineProperty(H,"ThrowStatement",{enumerable:!0,get:function(){return $.throwStatement}});Object.defineProperty(H,"TopicReference",{enumerable:!0,get:function(){return $.topicReference}});Object.defineProperty(H,"TryStatement",{enumerable:!0,get:function(){return $.tryStatement}});Object.defineProperty(H,"TupleExpression",{enumerable:!0,get:function(){return $.tupleExpression}});Object.defineProperty(H,"TupleTypeAnnotation",{enumerable:!0,get:function(){return $.tupleTypeAnnotation}});Object.defineProperty(H,"TypeAlias",{enumerable:!0,get:function(){return $.typeAlias}});Object.defineProperty(H,"TypeAnnotation",{enumerable:!0,get:function(){return $.typeAnnotation}});Object.defineProperty(H,"TypeCastExpression",{enumerable:!0,get:function(){return $.typeCastExpression}});Object.defineProperty(H,"TypeParameter",{enumerable:!0,get:function(){return $.typeParameter}});Object.defineProperty(H,"TypeParameterDeclaration",{enumerable:!0,get:function(){return $.typeParameterDeclaration}});Object.defineProperty(H,"TypeParameterInstantiation",{enumerable:!0,get:function(){return $.typeParameterInstantiation}});Object.defineProperty(H,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return $.typeofTypeAnnotation}});Object.defineProperty(H,"UnaryExpression",{enumerable:!0,get:function(){return $.unaryExpression}});Object.defineProperty(H,"UnionTypeAnnotation",{enumerable:!0,get:function(){return $.unionTypeAnnotation}});Object.defineProperty(H,"UpdateExpression",{enumerable:!0,get:function(){return $.updateExpression}});Object.defineProperty(H,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return $.v8IntrinsicIdentifier}});Object.defineProperty(H,"VariableDeclaration",{enumerable:!0,get:function(){return $.variableDeclaration}});Object.defineProperty(H,"VariableDeclarator",{enumerable:!0,get:function(){return $.variableDeclarator}});Object.defineProperty(H,"Variance",{enumerable:!0,get:function(){return $.variance}});Object.defineProperty(H,"VoidTypeAnnotation",{enumerable:!0,get:function(){return $.voidTypeAnnotation}});Object.defineProperty(H,"WhileStatement",{enumerable:!0,get:function(){return $.whileStatement}});Object.defineProperty(H,"WithStatement",{enumerable:!0,get:function(){return $.withStatement}});Object.defineProperty(H,"YieldExpression",{enumerable:!0,get:function(){return $.yieldExpression}});var $=Gs();});var dxe=chunkTKGT252T_js.c(SU=>{Object.defineProperty(SU,"__esModule",{value:!0});SU.buildUndefinedNode=ORt;var hxe=Gs();function ORt(){return (0, hxe.unaryExpression)("void",(0, hxe.numericLiteral)(0),!0)}});var Bf=chunkTKGT252T_js.c(TU=>{Object.defineProperty(TU,"__esModule",{value:!0});TU.default=DRt;var mxe=xo(),yxe=ci(),{hasOwn:xc}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function gxe(e,t,r,n){return e&&typeof e.type=="string"?Txe(e,t,r,n):e}function Sxe(e,t,r,n){return Array.isArray(e)?e.map(i=>gxe(i,t,r,n)):gxe(e,t,r,n)}function DRt(e,t=!0,r=!1){return Txe(e,t,r,new Map)}function Txe(e,t=!0,r=!1,n){if(!e)return e;let{type:i}=e,s={type:e.type};if((0, yxe.isIdentifier)(e))s.name=e.name,xc(e,"optional")&&typeof e.optional=="boolean"&&(s.optional=e.optional),xc(e,"typeAnnotation")&&(s.typeAnnotation=t?Sxe(e.typeAnnotation,!0,r,n):e.typeAnnotation);else if(xc(mxe.NODE_FIELDS,i))for(let a of Object.keys(mxe.NODE_FIELDS[i]))xc(e,a)&&(t?s[a]=(0, yxe.isFile)(e)&&a==="comments"?qw(e.comments,t,r,n):Sxe(e[a],!0,r,n):s[a]=e[a]);else throw new Error(`Unknown node type: "${i}"`);return xc(e,"loc")&&(r?s.loc=null:s.loc=e.loc),xc(e,"leadingComments")&&(s.leadingComments=qw(e.leadingComments,t,r,n)),xc(e,"innerComments")&&(s.innerComments=qw(e.innerComments,t,r,n)),xc(e,"trailingComments")&&(s.trailingComments=qw(e.trailingComments,t,r,n)),xc(e,"extra")&&(s.extra=Object.assign({},e.extra)),s}function qw(e,t,r,n){return !e||!t?e:e.map(i=>{let s=n.get(i);if(s)return s;let{type:a,value:o,loc:u}=i,l={type:a,value:o,loc:u};return r&&(l.loc=null),n.set(i,l),l})}});var Exe=chunkTKGT252T_js.c(EU=>{Object.defineProperty(EU,"__esModule",{value:!0});EU.default=RRt;var NRt=Bf();function RRt(e){return (0, NRt.default)(e,!1)}});var bxe=chunkTKGT252T_js.c(bU=>{Object.defineProperty(bU,"__esModule",{value:!0});bU.default=LRt;var MRt=Bf();function LRt(e){return (0, MRt.default)(e)}});var vxe=chunkTKGT252T_js.c(vU=>{Object.defineProperty(vU,"__esModule",{value:!0});vU.default=FRt;var kRt=Bf();function FRt(e){return (0, kRt.default)(e,!0,!0)}});var _xe=chunkTKGT252T_js.c(_U=>{Object.defineProperty(_U,"__esModule",{value:!0});_U.default=jRt;var BRt=Bf();function jRt(e){return (0, BRt.default)(e,!1,!0)}});var AU=chunkTKGT252T_js.c(xU=>{Object.defineProperty(xU,"__esModule",{value:!0});xU.default=URt;function URt(e,t,r){if(!r||!e)return e;let n=`${t}Comments`;return e[n]?t==="leading"?e[n]=r.concat(e[n]):e[n].push(...r):e[n]=r,e}});var xxe=chunkTKGT252T_js.c(PU=>{Object.defineProperty(PU,"__esModule",{value:!0});PU.default=VRt;var qRt=AU();function VRt(e,t,r,n){return (0, qRt.default)(e,t,[{type:n?"CommentLine":"CommentBlock",value:r}])}});var Vw=chunkTKGT252T_js.c(CU=>{Object.defineProperty(CU,"__esModule",{value:!0});CU.default=HRt;function HRt(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))));}});var IU=chunkTKGT252T_js.c(wU=>{Object.defineProperty(wU,"__esModule",{value:!0});wU.default=$Rt;var GRt=Vw();function $Rt(e,t){(0, GRt.default)("innerComments",e,t);}});var DU=chunkTKGT252T_js.c(OU=>{Object.defineProperty(OU,"__esModule",{value:!0});OU.default=YRt;var KRt=Vw();function YRt(e,t){(0, KRt.default)("leadingComments",e,t);}});var RU=chunkTKGT252T_js.c(NU=>{Object.defineProperty(NU,"__esModule",{value:!0});NU.default=XRt;var WRt=Vw();function XRt(e,t){(0, WRt.default)("trailingComments",e,t);}});var LU=chunkTKGT252T_js.c(MU=>{Object.defineProperty(MU,"__esModule",{value:!0});MU.default=ZRt;var zRt=RU(),JRt=DU(),QRt=IU();function ZRt(e,t){return (0, zRt.default)(e,t),(0, JRt.default)(e,t),(0, QRt.default)(e,t),e}});var Axe=chunkTKGT252T_js.c(kU=>{Object.defineProperty(kU,"__esModule",{value:!0});kU.default=tMt;var eMt=Lf();function tMt(e){return eMt.COMMENT_KEYS.forEach(t=>{e[t]=null;}),e}});var Pxe=chunkTKGT252T_js.c(_e=>{Object.defineProperty(_e,"__esModule",{value:!0});_e.WHILE_TYPES=_e.USERWHITESPACABLE_TYPES=_e.UNARYLIKE_TYPES=_e.TYPESCRIPT_TYPES=_e.TSTYPE_TYPES=_e.TSTYPEELEMENT_TYPES=_e.TSENTITYNAME_TYPES=_e.TSBASETYPE_TYPES=_e.TERMINATORLESS_TYPES=_e.STATEMENT_TYPES=_e.STANDARDIZED_TYPES=_e.SCOPABLE_TYPES=_e.PUREISH_TYPES=_e.PROPERTY_TYPES=_e.PRIVATE_TYPES=_e.PATTERN_TYPES=_e.PATTERNLIKE_TYPES=_e.OBJECTMEMBER_TYPES=_e.MODULESPECIFIER_TYPES=_e.MODULEDECLARATION_TYPES=_e.MISCELLANEOUS_TYPES=_e.METHOD_TYPES=_e.LVAL_TYPES=_e.LOOP_TYPES=_e.LITERAL_TYPES=_e.JSX_TYPES=_e.IMPORTOREXPORTDECLARATION_TYPES=_e.IMMUTABLE_TYPES=_e.FUNCTION_TYPES=_e.FUNCTIONPARENT_TYPES=_e.FOR_TYPES=_e.FORXSTATEMENT_TYPES=_e.FLOW_TYPES=_e.FLOWTYPE_TYPES=_e.FLOWPREDICATE_TYPES=_e.FLOWDECLARATION_TYPES=_e.FLOWBASEANNOTATION_TYPES=_e.EXPRESSION_TYPES=_e.EXPRESSIONWRAPPER_TYPES=_e.EXPORTDECLARATION_TYPES=_e.ENUMMEMBER_TYPES=_e.ENUMBODY_TYPES=_e.DECLARATION_TYPES=_e.CONDITIONAL_TYPES=_e.COMPLETIONSTATEMENT_TYPES=_e.CLASS_TYPES=_e.BLOCK_TYPES=_e.BLOCKPARENT_TYPES=_e.BINARY_TYPES=_e.ACCESSOR_TYPES=void 0;var It=xo();_e.STANDARDIZED_TYPES=It.FLIPPED_ALIAS_KEYS.Standardized;_e.EXPRESSION_TYPES=It.FLIPPED_ALIAS_KEYS.Expression;_e.BINARY_TYPES=It.FLIPPED_ALIAS_KEYS.Binary;_e.SCOPABLE_TYPES=It.FLIPPED_ALIAS_KEYS.Scopable;_e.BLOCKPARENT_TYPES=It.FLIPPED_ALIAS_KEYS.BlockParent;_e.BLOCK_TYPES=It.FLIPPED_ALIAS_KEYS.Block;_e.STATEMENT_TYPES=It.FLIPPED_ALIAS_KEYS.Statement;_e.TERMINATORLESS_TYPES=It.FLIPPED_ALIAS_KEYS.Terminatorless;_e.COMPLETIONSTATEMENT_TYPES=It.FLIPPED_ALIAS_KEYS.CompletionStatement;_e.CONDITIONAL_TYPES=It.FLIPPED_ALIAS_KEYS.Conditional;_e.LOOP_TYPES=It.FLIPPED_ALIAS_KEYS.Loop;_e.WHILE_TYPES=It.FLIPPED_ALIAS_KEYS.While;_e.EXPRESSIONWRAPPER_TYPES=It.FLIPPED_ALIAS_KEYS.ExpressionWrapper;_e.FOR_TYPES=It.FLIPPED_ALIAS_KEYS.For;_e.FORXSTATEMENT_TYPES=It.FLIPPED_ALIAS_KEYS.ForXStatement;_e.FUNCTION_TYPES=It.FLIPPED_ALIAS_KEYS.Function;_e.FUNCTIONPARENT_TYPES=It.FLIPPED_ALIAS_KEYS.FunctionParent;_e.PUREISH_TYPES=It.FLIPPED_ALIAS_KEYS.Pureish;_e.DECLARATION_TYPES=It.FLIPPED_ALIAS_KEYS.Declaration;_e.PATTERNLIKE_TYPES=It.FLIPPED_ALIAS_KEYS.PatternLike;_e.LVAL_TYPES=It.FLIPPED_ALIAS_KEYS.LVal;_e.TSENTITYNAME_TYPES=It.FLIPPED_ALIAS_KEYS.TSEntityName;_e.LITERAL_TYPES=It.FLIPPED_ALIAS_KEYS.Literal;_e.IMMUTABLE_TYPES=It.FLIPPED_ALIAS_KEYS.Immutable;_e.USERWHITESPACABLE_TYPES=It.FLIPPED_ALIAS_KEYS.UserWhitespacable;_e.METHOD_TYPES=It.FLIPPED_ALIAS_KEYS.Method;_e.OBJECTMEMBER_TYPES=It.FLIPPED_ALIAS_KEYS.ObjectMember;_e.PROPERTY_TYPES=It.FLIPPED_ALIAS_KEYS.Property;_e.UNARYLIKE_TYPES=It.FLIPPED_ALIAS_KEYS.UnaryLike;_e.PATTERN_TYPES=It.FLIPPED_ALIAS_KEYS.Pattern;_e.CLASS_TYPES=It.FLIPPED_ALIAS_KEYS.Class;var rMt=_e.IMPORTOREXPORTDECLARATION_TYPES=It.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;_e.EXPORTDECLARATION_TYPES=It.FLIPPED_ALIAS_KEYS.ExportDeclaration;_e.MODULESPECIFIER_TYPES=It.FLIPPED_ALIAS_KEYS.ModuleSpecifier;_e.ACCESSOR_TYPES=It.FLIPPED_ALIAS_KEYS.Accessor;_e.PRIVATE_TYPES=It.FLIPPED_ALIAS_KEYS.Private;_e.FLOW_TYPES=It.FLIPPED_ALIAS_KEYS.Flow;_e.FLOWTYPE_TYPES=It.FLIPPED_ALIAS_KEYS.FlowType;_e.FLOWBASEANNOTATION_TYPES=It.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;_e.FLOWDECLARATION_TYPES=It.FLIPPED_ALIAS_KEYS.FlowDeclaration;_e.FLOWPREDICATE_TYPES=It.FLIPPED_ALIAS_KEYS.FlowPredicate;_e.ENUMBODY_TYPES=It.FLIPPED_ALIAS_KEYS.EnumBody;_e.ENUMMEMBER_TYPES=It.FLIPPED_ALIAS_KEYS.EnumMember;_e.JSX_TYPES=It.FLIPPED_ALIAS_KEYS.JSX;_e.MISCELLANEOUS_TYPES=It.FLIPPED_ALIAS_KEYS.Miscellaneous;_e.TYPESCRIPT_TYPES=It.FLIPPED_ALIAS_KEYS.TypeScript;_e.TSTYPEELEMENT_TYPES=It.FLIPPED_ALIAS_KEYS.TSTypeElement;_e.TSTYPE_TYPES=It.FLIPPED_ALIAS_KEYS.TSType;_e.TSBASETYPE_TYPES=It.FLIPPED_ALIAS_KEYS.TSBaseType;_e.MODULEDECLARATION_TYPES=rMt;});var jU=chunkTKGT252T_js.c(BU=>{Object.defineProperty(BU,"__esModule",{value:!0});BU.default=nMt;var Hw=ci(),FU=Gs();function nMt(e,t){if((0, Hw.isBlockStatement)(e))return e;let r=[];return (0, Hw.isEmptyStatement)(e)?r=[]:((0, Hw.isStatement)(e)||((0, Hw.isFunction)(t)?e=(0, FU.returnStatement)(e):e=(0, FU.expressionStatement)(e)),r=[e]),(0, FU.blockStatement)(r)}});var Cxe=chunkTKGT252T_js.c(UU=>{Object.defineProperty(UU,"__esModule",{value:!0});UU.default=sMt;var iMt=jU();function sMt(e,t="body"){let r=(0, iMt.default)(e[t],e);return e[t]=r,r}});var VU=chunkTKGT252T_js.c(qU=>{Object.defineProperty(qU,"__esModule",{value:!0});qU.default=uMt;var aMt=TS(),oMt=chunkF6FLWRPJ_js.k();function uMt(e){e=e+"";let t="";for(let r of e)t+=(0, oMt.isIdentifierChar)(r.codePointAt(0))?r:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(r,n){return n?n.toUpperCase():""}),(0, aMt.default)(t)||(t=`_${t}`),t||"_"}});var wxe=chunkTKGT252T_js.c(HU=>{Object.defineProperty(HU,"__esModule",{value:!0});HU.default=cMt;var lMt=VU();function cMt(e){return e=(0, lMt.default)(e),(e==="eval"||e==="arguments")&&(e="_"+e),e}});var Ixe=chunkTKGT252T_js.c(GU=>{Object.defineProperty(GU,"__esModule",{value:!0});GU.default=hMt;var pMt=ci(),fMt=Gs();function hMt(e,t=e.key||e.property){return !e.computed&&(0, pMt.isIdentifier)(t)&&(t=(0, fMt.stringLiteral)(t.name)),t}});var Oxe=chunkTKGT252T_js.c(Gw=>{Object.defineProperty(Gw,"__esModule",{value:!0});Gw.default=void 0;var Hb=ci();Gw.default=dMt;function dMt(e){if((0, Hb.isExpressionStatement)(e)&&(e=e.expression),(0, Hb.isExpression)(e))return e;if((0, Hb.isClass)(e)?e.type="ClassExpression":(0, Hb.isFunction)(e)&&(e.type="FunctionExpression"),!(0, Hb.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}});var YU=chunkTKGT252T_js.c(KU=>{Object.defineProperty(KU,"__esModule",{value:!0});KU.default=$U;var mMt=xo();function $U(e,t,r){if(!e)return;let n=mMt.VISITOR_KEYS[e.type];if(n){r=r||{},t(e,r);for(let i of n){let s=e[i];if(Array.isArray(s))for(let a of s)$U(a,t,r);else $U(s,t,r);}}}});var XU=chunkTKGT252T_js.c(WU=>{Object.defineProperty(WU,"__esModule",{value:!0});WU.default=SMt;var yMt=Lf(),Dxe=["tokens","start","end","loc","raw","rawValue"],gMt=[...yMt.COMMENT_KEYS,"comments",...Dxe];function SMt(e,t={}){let r=t.preserveComments?Dxe:gMt;for(let i of r)e[i]!=null&&(e[i]=void 0);for(let i of Object.keys(e))i[0]==="_"&&e[i]!=null&&(e[i]=void 0);let n=Object.getOwnPropertySymbols(e);for(let i of n)e[i]=null;}});var JU=chunkTKGT252T_js.c(zU=>{Object.defineProperty(zU,"__esModule",{value:!0});zU.default=bMt;var TMt=YU(),EMt=XU();function bMt(e,t){return (0, TMt.default)(e,EMt.default,t),e}});var Rxe=chunkTKGT252T_js.c(QU=>{Object.defineProperty(QU,"__esModule",{value:!0});QU.default=Fd;var Nxe=ci(),vMt=Bf(),_Mt=JU();function Fd(e,t=e.key){let r;return e.kind==="method"?Fd.increment()+"":((0, Nxe.isIdentifier)(t)?r=t.name:(0, Nxe.isStringLiteral)(t)?r=JSON.stringify(t.value):r=JSON.stringify((0, _Mt.default)((0, vMt.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}Fd.uid=0;Fd.increment=function(){return Fd.uid>=Number.MAX_SAFE_INTEGER?Fd.uid=0:Fd.uid++};});var Mxe=chunkTKGT252T_js.c(Kw=>{Object.defineProperty(Kw,"__esModule",{value:!0});Kw.default=void 0;var $w=ci(),xMt=Gs();Kw.default=AMt;function AMt(e,t){if((0, $w.isStatement)(e))return e;let r=!1,n;if((0, $w.isClass)(e))r=!0,n="ClassDeclaration";else if((0, $w.isFunction)(e))r=!0,n="FunctionDeclaration";else if((0, $w.isAssignmentExpression)(e))return (0, xMt.expressionStatement)(e);if(r&&!e.id&&(n=!1),!n){if(t)return !1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=n,e}});var Lxe=chunkTKGT252T_js.c(Yw=>{Object.defineProperty(Yw,"__esModule",{value:!0});Yw.default=void 0;var PMt=TS(),Ss=Gs();Yw.default=ZU;var CMt=Function.call.bind(Object.prototype.toString);function wMt(e){return CMt(e)==="[object RegExp]"}function IMt(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return !1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function ZU(e){if(e===void 0)return (0, Ss.identifier)("undefined");if(e===!0||e===!1)return (0, Ss.booleanLiteral)(e);if(e===null)return (0, Ss.nullLiteral)();if(typeof e=="string")return (0, Ss.stringLiteral)(e);if(typeof e=="number"){let t;if(Number.isFinite(e))t=(0, Ss.numericLiteral)(Math.abs(e));else {let r;Number.isNaN(e)?r=(0, Ss.numericLiteral)(0):r=(0, Ss.numericLiteral)(1),t=(0, Ss.binaryExpression)("/",r,(0, Ss.numericLiteral)(0));}return (e<0||Object.is(e,-0))&&(t=(0, Ss.unaryExpression)("-",t)),t}if(wMt(e)){let t=e.source,r=e.toString().match(/\/([a-z]+|)$/)[1];return (0, Ss.regExpLiteral)(t,r)}if(Array.isArray(e))return (0, Ss.arrayExpression)(e.map(ZU));if(IMt(e)){let t=[];for(let r of Object.keys(e)){let n;(0, PMt.default)(r)?n=(0, Ss.identifier)(r):n=(0, Ss.stringLiteral)(r),t.push((0, Ss.objectProperty)(n,ZU(e[r])));}return (0, Ss.objectExpression)(t)}throw new Error("don't know how to turn this value into a node")}});var kxe=chunkTKGT252T_js.c(e4=>{Object.defineProperty(e4,"__esModule",{value:!0});e4.default=DMt;var OMt=Gs();function DMt(e,t,r=!1){return e.object=(0, OMt.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}});var Bxe=chunkTKGT252T_js.c(t4=>{Object.defineProperty(t4,"__esModule",{value:!0});t4.default=RMt;var Fxe=Lf(),NMt=LU();function RMt(e,t){if(!e||!t)return e;for(let r of Fxe.INHERIT_KEYS.optional)e[r]==null&&(e[r]=t[r]);for(let r of Object.keys(t))r[0]==="_"&&r!=="__clone"&&(e[r]=t[r]);for(let r of Fxe.INHERIT_KEYS.force)e[r]=t[r];return (0, NMt.default)(e,t),e}});var jxe=chunkTKGT252T_js.c(r4=>{Object.defineProperty(r4,"__esModule",{value:!0});r4.default=kMt;var MMt=Gs(),LMt=gi();function kMt(e,t){if((0, LMt.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0, MMt.memberExpression)(t,e.object),e}});var Gb=chunkTKGT252T_js.c(i4=>{Object.defineProperty(i4,"__esModule",{value:!0});i4.default=n4;var jf=ci();function n4(e,t,r,n){let i=[].concat(e),s=Object.create(null);for(;i.length;){let a=i.shift();if(!a||n&&((0, jf.isAssignmentExpression)(a)||(0, jf.isUnaryExpression)(a)))continue;let o=n4.keys[a.type];if((0, jf.isIdentifier)(a)){t?(s[a.name]=s[a.name]||[]).push(a):s[a.name]=a;continue}if((0, jf.isExportDeclaration)(a)&&!(0, jf.isExportAllDeclaration)(a)){(0, jf.isDeclaration)(a.declaration)&&i.push(a.declaration);continue}if(r){if((0, jf.isFunctionDeclaration)(a)){i.push(a.id);continue}if((0, jf.isFunctionExpression)(a))continue}if(o)for(let u=0;u{Object.defineProperty(Ww,"__esModule",{value:!0});Ww.default=void 0;var FMt=Gb();Ww.default=BMt;function BMt(e,t){return (0, FMt.default)(e,t,!0)}});var qxe=chunkTKGT252T_js.c(a4=>{Object.defineProperty(a4,"__esModule",{value:!0});a4.default=UMt;var jMt=xo();function UMt(e,t,r){typeof t=="function"&&(t={enter:t});let{enter:n,exit:i}=t;s4(e,n,i,r,[]);}function s4(e,t,r,n,i){let s=jMt.VISITOR_KEYS[e.type];if(s){t&&t(e,i,n);for(let a of s){let o=e[a];if(Array.isArray(o))for(let u=0;u{Object.defineProperty(o4,"__esModule",{value:!0});o4.default=VMt;var qMt=Gb();function VMt(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression")return !1;let n=qMt.default.keys[t.type];if(n)for(let i=0;i=0)return !0}else if(a===e)return !0}return !1}});var l4=chunkTKGT252T_js.c(u4=>{Object.defineProperty(u4,"__esModule",{value:!0});u4.default=$Mt;var HMt=ci(),GMt=Lf();function $Mt(e){return (0, HMt.isVariableDeclaration)(e)&&(e.kind!=="var"||e[GMt.BLOCK_SCOPED_SYMBOL])}});var Gxe=chunkTKGT252T_js.c(c4=>{Object.defineProperty(c4,"__esModule",{value:!0});c4.default=YMt;var Hxe=ci(),KMt=l4();function YMt(e){return (0, Hxe.isFunctionDeclaration)(e)||(0, Hxe.isClassDeclaration)(e)||(0, KMt.default)(e)}});var $xe=chunkTKGT252T_js.c(p4=>{Object.defineProperty(p4,"__esModule",{value:!0});p4.default=zMt;var WMt=Iw(),XMt=ci();function zMt(e){return (0, WMt.default)(e.type,"Immutable")?!0:(0, XMt.isIdentifier)(e)?e.name==="undefined":!1}});var Yxe=chunkTKGT252T_js.c(h4=>{Object.defineProperty(h4,"__esModule",{value:!0});h4.default=f4;var Kxe=xo();function f4(e,t){if(typeof e!="object"||typeof t!="object"||e==null||t==null)return e===t;if(e.type!==t.type)return !1;let r=Object.keys(Kxe.NODE_FIELDS[e.type]||e.type),n=Kxe.VISITOR_KEYS[e.type];for(let i of r){let s=e[i],a=t[i];if(typeof s!=typeof a)return !1;if(!(s==null&&a==null)){if(s==null||a==null)return !1;if(Array.isArray(s)){if(!Array.isArray(a)||s.length!==a.length)return !1;for(let o=0;o{Object.defineProperty(d4,"__esModule",{value:!0});d4.default=JMt;function JMt(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return !1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e?!!t.computed:!1;case"ObjectProperty":return t.key===e?!!t.computed:!r||r.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return t.key===e?!!t.computed:!0;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return !1;case"CatchClause":return !1;case"RestElement":return !1;case"BreakStatement":case"ContinueStatement":return !1;case"FunctionDeclaration":case"FunctionExpression":return !1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return !1;case"ExportSpecifier":return r!=null&&r.source?!1:t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return !1;case"ImportAttribute":return !1;case"JSXAttribute":return !1;case"ObjectPattern":case"ArrayPattern":return !1;case"MetaProperty":return !1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key===e?!!t.computed:!0}return !0}});var Xxe=chunkTKGT252T_js.c(m4=>{Object.defineProperty(m4,"__esModule",{value:!0});m4.default=QMt;var Bd=ci();function QMt(e,t){return (0, Bd.isBlockStatement)(e)&&((0, Bd.isFunction)(t)||(0, Bd.isCatchClause)(t))?!1:(0, Bd.isPattern)(e)&&((0, Bd.isFunction)(t)||(0, Bd.isCatchClause)(t))?!0:(0, Bd.isScopable)(e)}});var Jxe=chunkTKGT252T_js.c(y4=>{Object.defineProperty(y4,"__esModule",{value:!0});y4.default=ZMt;var zxe=ci();function ZMt(e){return (0, zxe.isImportDefaultSpecifier)(e)||(0, zxe.isIdentifier)(e.imported||e.exported,{name:"default"})}});var Qxe=chunkTKGT252T_js.c(g4=>{Object.defineProperty(g4,"__esModule",{value:!0});g4.default=rLt;var eLt=TS(),tLt=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function rLt(e){return (0, eLt.default)(e)&&!tLt.has(e)}});var Zxe=chunkTKGT252T_js.c(S4=>{Object.defineProperty(S4,"__esModule",{value:!0});S4.default=sLt;var nLt=ci(),iLt=Lf();function sLt(e){return (0, nLt.isVariableDeclaration)(e,{kind:"var"})&&!e[iLt.BLOCK_SCOPED_SYMBOL]}});var eAe=chunkTKGT252T_js.c(E4=>{Object.defineProperty(E4,"__esModule",{value:!0});E4.default=Xw;var aLt=Gb(),jd=ci(),T4=Gs(),oLt=Bf();function Xw(e,t,r){let n=[],i=!0;for(let s of e)if((0, jd.isEmptyStatement)(s)||(i=!1),(0, jd.isExpression)(s))n.push(s);else if((0, jd.isExpressionStatement)(s))n.push(s.expression);else if((0, jd.isVariableDeclaration)(s)){if(s.kind!=="var")return;for(let a of s.declarations){let o=(0, aLt.default)(a);for(let u of Object.keys(o))r.push({kind:s.kind,id:(0, oLt.default)(o[u])});a.init&&n.push((0, T4.assignmentExpression)("=",a.id,a.init));}i=!0;}else if((0, jd.isIfStatement)(s)){let a=s.consequent?Xw([s.consequent],t,r):t.buildUndefinedNode(),o=s.alternate?Xw([s.alternate],t,r):t.buildUndefinedNode();if(!a||!o)return;n.push((0, T4.conditionalExpression)(s.test,a,o));}else if((0, jd.isBlockStatement)(s)){let a=Xw(s.body,t,r);if(!a)return;n.push(a);}else if((0, jd.isEmptyStatement)(s))e.indexOf(s)===0&&(i=!0);else return;return i&&n.push(t.buildUndefinedNode()),n.length===1?n[0]:(0, T4.sequenceExpression)(n)}});var tAe=chunkTKGT252T_js.c(b4=>{Object.defineProperty(b4,"__esModule",{value:!0});b4.default=lLt;var uLt=eAe();function lLt(e,t){if(!(e!=null&&e.length))return;let r=[],n=(0, uLt.default)(e,t,r);if(n){for(let i of r)t.push(i);return n}}});var gi=chunkTKGT252T_js.c(De=>{Object.defineProperty(De,"__esModule",{value:!0});var Ac={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(De,"__internal__deprecationWarning",{enumerable:!0,get:function(){return pkt.default}});Object.defineProperty(De,"addComment",{enumerable:!0,get:function(){return bLt.default}});Object.defineProperty(De,"addComments",{enumerable:!0,get:function(){return vLt.default}});Object.defineProperty(De,"appendToMemberExpression",{enumerable:!0,get:function(){return FLt.default}});Object.defineProperty(De,"assertNode",{enumerable:!0,get:function(){return hLt.default}});Object.defineProperty(De,"buildMatchMemberExpression",{enumerable:!0,get:function(){return ckt.default}});Object.defineProperty(De,"clone",{enumerable:!0,get:function(){return gLt.default}});Object.defineProperty(De,"cloneDeep",{enumerable:!0,get:function(){return SLt.default}});Object.defineProperty(De,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return TLt.default}});Object.defineProperty(De,"cloneNode",{enumerable:!0,get:function(){return yLt.default}});Object.defineProperty(De,"cloneWithoutLoc",{enumerable:!0,get:function(){return ELt.default}});Object.defineProperty(De,"createFlowUnionType",{enumerable:!0,get:function(){return rAe.default}});Object.defineProperty(De,"createTSUnionType",{enumerable:!0,get:function(){return mLt.default}});Object.defineProperty(De,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return dLt.default}});Object.defineProperty(De,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return rAe.default}});Object.defineProperty(De,"ensureBlock",{enumerable:!0,get:function(){return wLt.default}});Object.defineProperty(De,"getBindingIdentifiers",{enumerable:!0,get:function(){return HLt.default}});Object.defineProperty(De,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return GLt.default}});Object.defineProperty(De,"inheritInnerComments",{enumerable:!0,get:function(){return _Lt.default}});Object.defineProperty(De,"inheritLeadingComments",{enumerable:!0,get:function(){return xLt.default}});Object.defineProperty(De,"inheritTrailingComments",{enumerable:!0,get:function(){return PLt.default}});Object.defineProperty(De,"inherits",{enumerable:!0,get:function(){return BLt.default}});Object.defineProperty(De,"inheritsComments",{enumerable:!0,get:function(){return ALt.default}});Object.defineProperty(De,"is",{enumerable:!0,get:function(){return YLt.default}});Object.defineProperty(De,"isBinding",{enumerable:!0,get:function(){return WLt.default}});Object.defineProperty(De,"isBlockScoped",{enumerable:!0,get:function(){return XLt.default}});Object.defineProperty(De,"isImmutable",{enumerable:!0,get:function(){return zLt.default}});Object.defineProperty(De,"isLet",{enumerable:!0,get:function(){return JLt.default}});Object.defineProperty(De,"isNode",{enumerable:!0,get:function(){return QLt.default}});Object.defineProperty(De,"isNodesEquivalent",{enumerable:!0,get:function(){return ZLt.default}});Object.defineProperty(De,"isPlaceholderType",{enumerable:!0,get:function(){return ekt.default}});Object.defineProperty(De,"isReferenced",{enumerable:!0,get:function(){return tkt.default}});Object.defineProperty(De,"isScope",{enumerable:!0,get:function(){return rkt.default}});Object.defineProperty(De,"isSpecifierDefault",{enumerable:!0,get:function(){return nkt.default}});Object.defineProperty(De,"isType",{enumerable:!0,get:function(){return ikt.default}});Object.defineProperty(De,"isValidES3Identifier",{enumerable:!0,get:function(){return skt.default}});Object.defineProperty(De,"isValidIdentifier",{enumerable:!0,get:function(){return akt.default}});Object.defineProperty(De,"isVar",{enumerable:!0,get:function(){return okt.default}});Object.defineProperty(De,"matchesPattern",{enumerable:!0,get:function(){return ukt.default}});Object.defineProperty(De,"prependToMemberExpression",{enumerable:!0,get:function(){return jLt.default}});De.react=void 0;Object.defineProperty(De,"removeComments",{enumerable:!0,get:function(){return CLt.default}});Object.defineProperty(De,"removeProperties",{enumerable:!0,get:function(){return ULt.default}});Object.defineProperty(De,"removePropertiesDeep",{enumerable:!0,get:function(){return qLt.default}});Object.defineProperty(De,"removeTypeDuplicates",{enumerable:!0,get:function(){return VLt.default}});Object.defineProperty(De,"shallowEqual",{enumerable:!0,get:function(){return KLt.default}});Object.defineProperty(De,"toBindingIdentifierName",{enumerable:!0,get:function(){return ILt.default}});Object.defineProperty(De,"toBlock",{enumerable:!0,get:function(){return OLt.default}});Object.defineProperty(De,"toComputedKey",{enumerable:!0,get:function(){return DLt.default}});Object.defineProperty(De,"toExpression",{enumerable:!0,get:function(){return NLt.default}});Object.defineProperty(De,"toIdentifier",{enumerable:!0,get:function(){return RLt.default}});Object.defineProperty(De,"toKeyAlias",{enumerable:!0,get:function(){return MLt.default}});Object.defineProperty(De,"toStatement",{enumerable:!0,get:function(){return LLt.default}});Object.defineProperty(De,"traverse",{enumerable:!0,get:function(){return zw.default}});Object.defineProperty(De,"traverseFast",{enumerable:!0,get:function(){return $Lt.default}});Object.defineProperty(De,"validate",{enumerable:!0,get:function(){return lkt.default}});Object.defineProperty(De,"valueToNode",{enumerable:!0,get:function(){return kLt.default}});var cLt=y_e(),pLt=g_e(),fLt=txe(),hLt=rxe(),v4=nxe();Object.keys(v4).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ac,e)||e in De&&De[e]===v4[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return v4[e]}});});var dLt=ixe(),rAe=oxe(),mLt=pxe(),_4=Gs();Object.keys(_4).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ac,e)||e in De&&De[e]===_4[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return _4[e]}});});var x4=fxe();Object.keys(x4).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ac,e)||e in De&&De[e]===x4[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return x4[e]}});});var A4=dxe();Object.keys(A4).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ac,e)||e in De&&De[e]===A4[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return A4[e]}});});var yLt=Bf(),gLt=Exe(),SLt=bxe(),TLt=vxe(),ELt=_xe(),bLt=xxe(),vLt=AU(),_Lt=IU(),xLt=DU(),ALt=LU(),PLt=RU(),CLt=Axe(),P4=Pxe();Object.keys(P4).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ac,e)||e in De&&De[e]===P4[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return P4[e]}});});var C4=Lf();Object.keys(C4).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ac,e)||e in De&&De[e]===C4[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return C4[e]}});});var wLt=Cxe(),ILt=wxe(),OLt=jU(),DLt=Ixe(),NLt=Oxe(),RLt=VU(),MLt=Rxe(),LLt=Mxe(),kLt=Lxe(),w4=xo();Object.keys(w4).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ac,e)||e in De&&De[e]===w4[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return w4[e]}});});var FLt=kxe(),BLt=Bxe(),jLt=jxe(),ULt=XU(),qLt=JU(),VLt=dU(),HLt=Gb(),GLt=Uxe(),zw=qxe();Object.keys(zw).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ac,e)||e in De&&De[e]===zw[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return zw[e]}});});var $Lt=YU(),KLt=Cw(),YLt=SS(),WLt=Vxe(),XLt=Gxe(),zLt=$xe(),JLt=l4(),QLt=pU(),ZLt=Yxe(),ekt=Vj(),tkt=Wxe(),rkt=Xxe(),nkt=Jxe(),ikt=Iw(),skt=Qxe(),akt=TS(),okt=Zxe(),ukt=Lj(),lkt=Mw(),ckt=Fj(),I4=ci();Object.keys(I4).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ac,e)||e in De&&De[e]===I4[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return I4[e]}});});var pkt=Db();De.react={isReactComponent:cLt.default,isCompatTag:pLt.default,buildChildren:fLt.default};De.toSequenceExpression=tAe().default;});var iAe=chunkTKGT252T_js.c((Jw,nAe)=>{(function(e,t){typeof Jw=="object"&&typeof nAe<"u"?t(Jw):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.setArray={}));})(Jw,function(e){class t{constructor(){this._indexes={__proto__:null},this.array=[];}}function n(o,u){return o._indexes[u]}function i(o,u){let l=n(o,u);if(l!==void 0)return l;let{array:c,_indexes:p}=o,h=c.push(u);return p[u]=h-1}function s(o){let{array:u,_indexes:l}=o;if(u.length===0)return;let c=u.pop();l[c]=void 0;}function a(o,u){let l=n(o,u);if(l===void 0)return;let{array:c,_indexes:p}=o;for(let h=l+1;h{(function(e,t){typeof Qw=="object"&&typeof sAe<"u"?t(Qw):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.sourcemapCodec={}));})(Qw,function(e){let t=",".charCodeAt(0),r=";".charCodeAt(0),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(64),s=new Uint8Array(128);for(let m=0;m>>=1,b&&(E=-2147483648|-E),g[v]+=E,y}function c(m,y,g){return y>=g?!1:m.charCodeAt(y)!==t}function p(m){m.sort(h);}function h(m,y){return m[0]-y[0]}function f(m){let y=new Int32Array(5),g=1024*16,v=g-36,E=new Uint8Array(g),S=E.subarray(0,v),x=0,b="";for(let A=0;A0&&(x===g&&(b+=a.decode(E),x=0),E[x++]=r),D.length!==0){y[0]=0;for(let P=0;Pv&&(b+=a.decode(S),E.copyWithin(0,v,x),x-=v),P>0&&(E[x++]=t),x=d(E,x,y,V,0),V.length!==1&&(x=d(E,x,y,V,1),x=d(E,x,y,V,2),x=d(E,x,y,V,3),V.length!==4&&(x=d(E,x,y,V,4)));}}}return b+a.decode(E.subarray(0,x))}function d(m,y,g,v,E){let S=v[E],x=S-g[E];g[E]=S,x=x<0?-x<<1|1:x<<1;do{let b=x&31;x>>>=5,x>0&&(b|=32),m[y++]=i[b];}while(x>0);return y}e.decode=o,e.encode=f,Object.defineProperty(e,"__esModule",{value:!0});});});var aAe=chunkTKGT252T_js.c((D4,N4)=>{(function(e,t){typeof D4=="object"&&typeof N4<"u"?N4.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.resolveURI=t());})(D4,function(){let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function n(y){return e.test(y)}function i(y){return y.startsWith("//")}function s(y){return y.startsWith("/")}function a(y){return y.startsWith("file:")}function o(y){return /^[.?#]/.test(y)}function u(y){let g=t.exec(y);return c(g[1],g[2]||"",g[3],g[4]||"",g[5]||"/",g[6]||"",g[7]||"")}function l(y){let g=r.exec(y),v=g[2];return c("file:","",g[1]||"","",s(v)?v:"/"+v,g[3]||"",g[4]||"")}function c(y,g,v,E,S,x,b){return {scheme:y,user:g,host:v,port:E,path:S,query:x,hash:b,type:7}}function p(y){if(i(y)){let v=u("http:"+y);return v.scheme="",v.type=6,v}if(s(y)){let v=u("http://foo.com"+y);return v.scheme="",v.host="",v.type=5,v}if(a(y))return l(y);if(n(y))return u(y);let g=u("http://foo.com/"+y);return g.scheme="",g.host="",g.type=y?y.startsWith("?")?3:y.startsWith("#")?2:4:1,g}function h(y){if(y.endsWith("/.."))return y;let g=y.lastIndexOf("/");return y.slice(0,g+1)}function f(y,g){d(g,g.type),y.path==="/"?y.path=g.path:y.path=h(g.path)+y.path;}function d(y,g){let v=g<=4,E=y.path.split("/"),S=1,x=0,b=!1;for(let D=1;DE&&(E=b);}d(v,E);let S=v.query+v.hash;switch(E){case 2:case 3:return S;case 4:{let x=v.path.slice(1);return x?o(g||y)&&!o(x)?"./"+x+S:x+S:S||"."}case 5:return v.path+S;default:return v.scheme+"//"+v.user+v.host+v.port+v.path+S}}return m});});var eI=chunkTKGT252T_js.c((Zw,oAe)=>{(function(e,t){typeof Zw=="object"&&typeof oAe<"u"?t(Zw,O4(),aAe()):typeof define=="function"&&define.amd?define(["exports","@jridgewell/sourcemap-codec","@jridgewell/resolve-uri"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.traceMapping={},e.sourcemapCodec,e.resolveURI));})(Zw,function(e,t,r){function n(ae,ve){return ve&&!ve.endsWith("/")&&(ve+="/"),r(ae,ve)}function i(ae){if(!ae)return "";let ve=ae.lastIndexOf("/");return ae.slice(0,ve+1)}let s=0,a=1,o=2,u=3,l=4,c=1,p=2;function h(ae,ve){let Pe=f(ae,0);if(Pe===ae.length)return ae;ve||(ae=ae.slice());for(let Le=Pe;Le>1),lt=ae[Pt][s]-ve;if(lt===0)return g=!0,Pt;lt<0?Pe=Pt+1:Le=Pt-1;}return g=!1,Pe-1}function E(ae,ve,Pe){for(let Le=Pe+1;Le=0&&ae[Le][s]===ve;Pe=Le--);return Pe}function x(){return {lastKey:-1,lastNeedle:-1,lastIndex:-1}}function b(ae,ve,Pe,Le){let{lastKey:Pt,lastNeedle:lt,lastIndex:fr}=Pe,Rr=0,Xt=ae.length-1;if(Le===Pt){if(ve===lt)return g=fr!==-1&&ae[fr][s]===ve,fr;ve>=lt?Rr=fr===-1?0:fr:Xt=fr;}return Pe.lastKey=Le,Pe.lastNeedle=ve,Pe.lastIndex=v(ae,ve,Rr,Xt)}function A(ae,ve){let Pe=ve.map(P);for(let Le=0;Leve;Le--)ae[Le]=ae[Le-1];ae[ve]=Pe;}function P(){return {__proto__:null}}let V=function(ae,ve){let Pe=X(ae);if(!("sections"in Pe))return new ue(Pe,ve);let Le=[],Pt=[],lt=[],fr=[],Rr=[];oe(Pe,ve,Le,Pt,lt,fr,Rr,0,0,1/0,1/0);let Xt={version:3,file:Pe.file,names:fr,sources:Pt,sourcesContent:lt,mappings:Le,ignoreList:Rr};return Ri(Xt)};function X(ae){return typeof ae=="string"?JSON.parse(ae):ae}function oe(ae,ve,Pe,Le,Pt,lt,fr,Rr,Xt,Hr,Pi){let{sections:Ke}=ae;for(let ct=0;ctHr)return;let Ce=be(Pe,ie),Ut=ne===0?Xt:0,as=Aa[ne];for(let Oh=0;Oh=Pi)return;if(kl.length===1){Ce.push([Rx]);continue}let iY=un+kl[a],sY=kl[o],aY=kl[u];Ce.push(kl.length===4?[Rx,iY,sY,aY]:[Rx,iY,sY,aY,Xn+kl[l]]);}}}function Be(ae,ve){for(let Pe=0;Pen(un||"",Ke));let{mappings:ct}=Pt;typeof ct=="string"?(this._encoded=ct,this._decoded=void 0):(this._encoded=void 0,this._decoded=h(ct,Le)),this._decodedMemo=x(),this._bySources=void 0,this._bySourceMemos=void 0;}}function Se(ae){var ve,Pe;return (ve=(Pe=ae)._encoded)!==null&&ve!==void 0?ve:Pe._encoded=t.encode(ae._decoded)}function je(ae){var ve;return (ve=ae)._decoded||(ve._decoded=t.decode(ae._encoded))}function Ct(ae,ve,Pe){let Le=je(ae);if(ve>=Le.length)return null;let Pt=Le[ve],lt=Xa(Pt,ae._decodedMemo,ve,Pe,At);return lt===-1?null:Pt[lt]}function Nt(ae,ve){let{line:Pe,column:Le,bias:Pt}=ve;if(Pe--,Pe<0)throw new Error(Ee);if(Le<0)throw new Error(Te);let lt=je(ae);if(Pe>=lt.length)return Go(null,null,null,null);let fr=lt[Pe],Rr=Xa(fr,ae._decodedMemo,Pe,Le,Pt||At);if(Rr===-1)return Go(null,null,null,null);let Xt=fr[Rr];if(Xt.length===1)return Go(null,null,null,null);let{names:Hr,resolvedSources:Pi}=ae;return Go(Pi[Xt[a]],Xt[o]+1,Xt[u],Xt.length===5?Hr[Xt[l]]:null)}function fn(ae,ve){let{source:Pe,line:Le,column:Pt,bias:lt}=ve;return Ih(ae,Pe,Le,Pt,lt||At,!1)}function xr(ae,ve){let{source:Pe,line:Le,column:Pt,bias:lt}=ve;return Ih(ae,Pe,Le,Pt,lt||Me,!0)}function Ar(ae,ve){let Pe=je(ae),{names:Le,resolvedSources:Pt}=ae;for(let lt=0;lt{(function(e,t){typeof tI=="object"&&typeof uAe<"u"?t(tI,iAe(),O4(),eI()):typeof define=="function"&&define.amd?define(["exports","@jridgewell/set-array","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.genMapping={},e.setArray,e.sourcemapCodec,e.traceMapping));})(tI,function(e,t,r,n){class c{constructor({file:Ee,sourceRoot:Te}={}){this._names=new t.SetArray,this._sources=new t.SetArray,this._sourcesContent=[],this._mappings=[],this.file=Ee,this.sourceRoot=Te,this._ignoreList=new t.SetArray;}}function h(be,Ee,Te,Me,At,ue,fe,Se){return b(!1,be,Ee,Te,Me,At,ue,fe,Se)}function f(be,Ee){return Be(!1,be,Ee)}let d=(be,Ee,Te,Me,At,ue,fe,Se)=>b(!0,be,Ee,Te,Me,At,ue,fe,Se),m=(be,Ee)=>Be(!0,be,Ee);function y(be,Ee,Te){let{_sources:Me,_sourcesContent:At}=be,ue=t.put(Me,Ee);At[ue]=Te;}function g(be,Ee,Te=!0){let{_sources:Me,_sourcesContent:At,_ignoreList:ue}=be,fe=t.put(Me,Ee);fe===At.length&&(At[fe]=null),Te?t.put(ue,fe):t.remove(ue,fe);}function v(be){let{_mappings:Ee,_sources:Te,_sourcesContent:Me,_names:At,_ignoreList:ue}=be;return V(Ee),{version:3,file:be.file||void 0,names:At.array,sourceRoot:be.sourceRoot||void 0,sources:Te.array,sourcesContent:Me,mappings:Ee,ignoreList:ue.array}}function E(be){let Ee=v(be);return Object.assign(Object.assign({},Ee),{mappings:r.encode(Ee.mappings)})}function S(be){let Ee=new n.TraceMap(be),Te=new c({file:Ee.file,sourceRoot:Ee.sourceRoot});return X(Te._names,Ee.names),X(Te._sources,Ee.sources),Te._sourcesContent=Ee.sourcesContent||Ee.sources.map(()=>null),Te._mappings=n.decodedMappings(Ee),Ee.ignoreList&&X(Te._ignoreList,Ee.ignoreList),Te}function x(be){let Ee=[],{_mappings:Te,_sources:Me,_names:At}=be;for(let ue=0;ue=0;Te=Me--){let At=be[Me];if(Ee>=At[0])break}return Te}function P(be,Ee,Te){for(let Me=be.length;Me>Ee;Me--)be[Me]=be[Me-1];be[Ee]=Te;}function V(be){let{length:Ee}=be,Te=Ee;for(let Me=Te-1;Me>=0&&!(be[Me].length>0);Te=Me,Me--);Te{Object.defineProperty(rI,"__esModule",{value:!0});rI.default=void 0;var Uf=R4(),M4=eI(),L4=class{constructor(t,r){var n;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;let i=this._map=new Uf.GenMapping({sourceRoot:t.sourceRoot});if(this._sourceFileName=(n=t.sourceFileName)==null?void 0:n.replace(/\\/g,"/"),this._rawMappings=void 0,t.inputSourceMap){this._inputMap=new M4.TraceMap(t.inputSourceMap);let a=this._inputMap.resolvedSources;if(a.length)for(let o=0;o{Object.defineProperty(nI,"__esModule",{value:!0});nI.default=void 0;var k4=class{constructor(t,r){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=t,this._indentChar=r;for(let n=0;n<64;n++)this._fastIndentations.push(r.repeat(n));this._allocQueue();}_allocQueue(){let t=this._queue;for(let r=0;r<16;r++)t.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""});}_pushQueue(t,r,n,i,s){let a=this._queueCursor;a===this._queue.length&&this._allocQueue();let o=this._queue[a];o.char=t,o.repeat=r,o.line=n,o.column=i,o.filename=s,this._queueCursor++;}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();let t=this._map,r={code:(this._buf+this._str).trimRight(),decodedMap:t==null?void 0:t.getDecoded(),get __mergedMap(){return this.map},get map(){let n=t?t.get():null;return r.map=n,n},set map(n){Object.defineProperty(r,"map",{value:n,writable:!0});},get rawMappings(){let n=t==null?void 0:t.getRawMappings();return r.rawMappings=n,n},set rawMappings(n){Object.defineProperty(r,"rawMappings",{value:n,writable:!0});}};return r}append(t,r){this._flush(),this._append(t,this._sourcePosition,r);}appendChar(t){this._flush(),this._appendChar(t,1,this._sourcePosition);}queue(t){if(t===10)for(;this._queueCursor!==0;){let n=this._queue[this._queueCursor-1].char;if(n!==32&&n!==9)break;this._queueCursor--;}let r=this._sourcePosition;this._pushQueue(t,1,r.line,r.column,r.filename);}queueIndentation(t){t!==0&&this._pushQueue(-1,t,void 0,void 0,void 0);}_flush(){let t=this._queueCursor,r=this._queue;for(let n=0;n1?this._indentChar.repeat(r):this._indentChar;}else this._str+=r>1?String.fromCharCode(t).repeat(r):String.fromCharCode(t);t!==10?(this._mark(n.line,n.column,n.identifierName,n.identifierNamePos,n.filename),this._position.column+=r):(this._position.line++,this._position.column=0),this._canMarkIdName&&(n.identifierName=void 0,n.identifierNamePos=void 0);}_append(t,r,n){let i=t.length,s=this._position;if(this._last=t.charCodeAt(i-1),++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=t,this._appendCount=0):this._str+=t,!n&&!this._map){s.column+=i;return}let{column:a,identifierName:o,identifierNamePos:u,filename:l}=r,c=r.line;(o!=null||u!=null)&&this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0);let p=t.indexOf(` `),h=0;for(p!==0&&this._mark(c,a,o,u,l);p!==-1;)s.line++,s.column=0,h=p+1,h=0&&this._queue[n].char===10;n--)r++;return r===t&&this._last===10?r+1:r}endsWithCharAndNewline(){let t=this._queue,r=this._queueCursor;if(r!==0)return t[r-1].char!==10?void 0:r>1?t[r-2].char:this._last}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(t,r){if(!this._map){r();return}this.source("start",t);let n=t.identifierName,i=this._sourcePosition;n&&(this._canMarkIdName=!1,i.identifierName=n),r(),n&&(this._canMarkIdName=!0,i.identifierName=void 0,i.identifierNamePos=void 0),this.source("end",t);}source(t,r){this._map&&this._normalizePosition(t,r,0);}sourceWithOffset(t,r,n){this._map&&this._normalizePosition(t,r,n);}withSource(t,r,n){this._map&&this.source(t,r),n();}_normalizePosition(t,r,n){let i=r[t],s=this._sourcePosition;i&&(s.line=i.line,s.column=Math.max(i.column+n,0),s.filename=r.filename);}getCurrentColumn(){let t=this._queue,r=this._queueCursor,n=-1,i=0;for(let s=0;s{Object.defineProperty(sI,"__esModule",{value:!0});sI.nodes=void 0;var fkt=gi(),{FLIPPED_ALIAS_KEYS:hkt,isArrayExpression:dkt,isAssignmentExpression:fAe,isBinary:hAe,isBlockStatement:mkt,isCallExpression:dAe,isFunction:$b,isIdentifier:iI,isLiteral:ykt,isMemberExpression:F4,isObjectExpression:gkt,isOptionalCallExpression:Skt,isOptionalMemberExpression:Tkt,isStringLiteral:Ekt}=fkt;function vS(e,t){return e&&(F4(e)||Tkt(e)?(vS(e.object,t),e.computed&&vS(e.property,t)):hAe(e)||fAe(e)?(vS(e.left,t),vS(e.right,t)):dAe(e)||Skt(e)?(t.hasCall=!0,vS(e.callee,t)):$b(e)?t.hasFunction=!0:iI(e)&&(t.hasHelper=t.hasHelper||e.callee&&Pc(e.callee))),t}function pAe(e){return vS(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function Pc(e){return e?F4(e)?Pc(e.object)||Pc(e.property):iI(e)?e.name==="require"||e.name.charCodeAt(0)===95:dAe(e)?Pc(e.callee):hAe(e)||fAe(e)?iI(e.left)&&Pc(e.left)||Pc(e.right):!1:!1}function bkt(e){return ykt(e)||gkt(e)||dkt(e)||iI(e)||F4(e)}var Ud=sI.nodes={AssignmentExpression(e){let t=pAe(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return t.hasFunction?3:2},SwitchCase(e,t){return (e.consequent.length||t.cases[0]===e?1:0)|(!e.consequent.length&&t.cases[t.cases.length-1]===e?2:0)},LogicalExpression(e){if($b(e.left)||$b(e.right))return 2},Literal(e){if(Ekt(e)&&e.value==="use strict")return 2},CallExpression(e){if($b(e.callee)||Pc(e))return 3},OptionalCallExpression(e){if($b(e.callee))return 3},VariableDeclaration(e){for(let t=0;tn;});});});var EAe=chunkTKGT252T_js.c(Fr=>{Object.defineProperty(Fr,"__esModule",{value:!0});Fr.ArrowFunctionExpression=zkt;Fr.AssignmentExpression=Qkt;Fr.Binary=Bkt;Fr.BinaryExpression=$kt;Fr.ClassExpression=Wkt;Fr.ConditionalExpression=B4;Fr.DoExpression=Fkt;Fr.FunctionExpression=Xkt;Fr.FunctionTypeAnnotation=Mkt;Fr.Identifier=e2t;Fr.LogicalExpression=Zkt;Fr.NullableTypeAnnotation=Rkt;Fr.ObjectExpression=kkt;Fr.OptionalIndexedAccessType=Ukt;Fr.OptionalCallExpression=Fr.OptionalMemberExpression=Jkt;Fr.SequenceExpression=Kkt;Fr.TSTypeAssertion=Fr.TSSatisfiesExpression=Fr.TSAsExpression=qkt;Fr.TSInferType=Hkt;Fr.TSInstantiationExpression=Gkt;Fr.TSIntersectionType=Fr.TSUnionType=Vkt;Fr.UnaryLike=TAe;Fr.IntersectionTypeAnnotation=Fr.UnionTypeAnnotation=jkt;Fr.UpdateExpression=Lkt;Fr.AwaitExpression=Fr.YieldExpression=Ykt;var vkt=gi(),{isArrayTypeAnnotation:_kt,isArrowFunctionExpression:xkt,isBinaryExpression:Akt,isCallExpression:Pkt,isExportDeclaration:Ckt,isForOfStatement:wkt,isIndexedAccessType:Ikt,isMemberExpression:gAe,isObjectPattern:Okt,isOptionalMemberExpression:Dkt,isYieldExpression:Nkt}=vkt,yAe=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function SAe(e){return e==="TSAsExpression"||e==="TSSatisfiesExpression"||e==="TSTypeAssertion"}var aI=(e,t)=>{let r=t.type;return (r==="ClassDeclaration"||r==="ClassExpression")&&t.superClass===e},Kb=(e,t)=>{let r=t.type;return (r==="MemberExpression"||r==="OptionalMemberExpression")&&t.object===e||(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression")&&t.callee===e||r==="TaggedTemplateExpression"&&t.tag===e||r==="TSNonNullExpression"};function Rkt(e,t){return _kt(t)}function Mkt(e,t,r){if(r.length<3)return;let n=t.type;return n==="UnionTypeAnnotation"||n==="IntersectionTypeAnnotation"||n==="ArrayTypeAnnotation"||n==="TypeAnnotation"&&xkt(r[r.length-3])}function Lkt(e,t){return Kb(e,t)||aI(e,t)}function kkt(e,t,r){return Yb(r,3)}function Fkt(e,t,r){return !e.async&&Yb(r,1)}function Bkt(e,t){let r=t.type;if(e.operator==="**"&&r==="BinaryExpression"&&t.operator==="**")return t.left===e;if(aI(e,t)||Kb(e,t)||r==="UnaryExpression"||r==="SpreadElement"||r==="AwaitExpression")return !0;if(r==="BinaryExpression"||r==="LogicalExpression"){let n=yAe.get(t.operator),i=yAe.get(e.operator);if(n===i&&t.right===e&&r!=="LogicalExpression"||n>i)return !0}}function jkt(e,t){let r=t.type;return r==="ArrayTypeAnnotation"||r==="NullableTypeAnnotation"||r==="IntersectionTypeAnnotation"||r==="UnionTypeAnnotation"}function Ukt(e,t){return Ikt(t)&&t.objectType===e}function qkt(){return !0}function Vkt(e,t){let r=t.type;return r==="TSArrayType"||r==="TSOptionalType"||r==="TSIntersectionType"||r==="TSUnionType"||r==="TSRestType"}function Hkt(e,t){let r=t.type;return r==="TSArrayType"||r==="TSOptionalType"}function Gkt(e,t){let r=t.type;return (r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression"||r==="TSInstantiationExpression")&&!!t.typeParameters}function $kt(e,t){if(e.operator==="in"){let r=t.type;return r==="VariableDeclarator"||r==="ForStatement"||r==="ForInStatement"||r==="ForOfStatement"}return !1}function Kkt(e,t){let r=t.type;return !(r==="ForStatement"||r==="ThrowStatement"||r==="ReturnStatement"||r==="IfStatement"&&t.test===e||r==="WhileStatement"&&t.test===e||r==="ForInStatement"&&t.right===e||r==="SwitchStatement"&&t.discriminant===e||r==="ExpressionStatement"&&t.expression===e)}function Ykt(e,t){let r=t.type;return r==="BinaryExpression"||r==="LogicalExpression"||r==="UnaryExpression"||r==="SpreadElement"||Kb(e,t)||r==="AwaitExpression"&&Nkt(e)||r==="ConditionalExpression"&&e===t.test||aI(e,t)}function Wkt(e,t,r){return Yb(r,5)}function TAe(e,t){return Kb(e,t)||Akt(t)&&t.operator==="**"&&t.left===e||aI(e,t)}function Xkt(e,t,r){return Yb(r,5)}function zkt(e,t){return Ckt(t)||B4(e,t)}function B4(e,t){let r=t.type;return r==="UnaryExpression"||r==="SpreadElement"||r==="BinaryExpression"||r==="LogicalExpression"||r==="ConditionalExpression"&&t.test===e||r==="AwaitExpression"||SAe(r)?!0:TAe(e,t)}function Jkt(e,t){return Pkt(t)&&t.callee===e||gAe(t)&&t.object===e}function Qkt(e,t){return Okt(e.left)?!0:B4(e,t)}function Zkt(e,t){let r=t.type;if(SAe(r))return !0;if(r!=="LogicalExpression")return !1;switch(e.operator){case"||":return t.operator==="??"||t.operator==="&&";case"&&":return t.operator==="??";case"??":return t.operator!=="??"}}function e2t(e,t,r){var n;let i=t.type;if((n=e.extra)!=null&&n.parenthesized&&i==="AssignmentExpression"&&t.left===e){let s=t.right.type;if((s==="FunctionExpression"||s==="ClassExpression")&&t.right.id==null)return !0}if(e.name==="let"){let s=gAe(t,{object:e,computed:!0})||Dkt(t,{object:e,computed:!0,optional:!1});return Yb(r,s?57:32)}return e.name==="async"&&wkt(t)&&e===t.left}function Yb(e,t){let r=t&1,n=t&2,i=t&4,s=t&8,a=t&16,o=t&32,u=e.length-1;if(u<=0)return;let l=e[u];u--;let c=e[u];for(;u>=0;){let p=c.type;if(r&&p==="ExpressionStatement"&&c.expression===l||i&&p==="ExportDefaultDeclaration"&&l===c.declaration||n&&p==="ArrowFunctionExpression"&&c.body===l||s&&p==="ForStatement"&&c.init===l||a&&p==="ForInStatement"&&c.left===l||o&&p==="ForOfStatement"&&c.left===l)return !0;if(u>0&&(Kb(l,c)&&p!=="NewExpression"||p==="SequenceExpression"&&c.expressions[0]===l||p==="UpdateExpression"&&!c.prefix||p==="ConditionalExpression"&&c.test===l||(p==="BinaryExpression"||p==="LogicalExpression")&&c.left===l||p==="AssignmentExpression"&&c.left===l))l=c,u--,c=e[u];else return !1}return !1}});var U4=chunkTKGT252T_js.c(_S=>{Object.defineProperty(_S,"__esModule",{value:!0});_S.needsParens=h2t;_S.needsWhitespace=j4;_S.needsWhitespaceAfter=f2t;_S.needsWhitespaceBefore=p2t;var t2t=mAe(),r2t=EAe(),n2t=gi(),{FLIPPED_ALIAS_KEYS:i2t,isCallExpression:s2t,isExpressionStatement:a2t,isMemberExpression:o2t,isNewExpression:u2t}=n2t;function bAe(e){let t=new Map;function r(n,i){let s=t.get(n);t.set(n,s?function(a,o,u){var l;return (l=s(a,o,u))!=null?l:i(a,o,u)}:i);}for(let n of Object.keys(e)){let i=i2t[n];if(i)for(let s of i)r(s,e[n]);else r(n,e[n]);}return t}var l2t=bAe(r2t),c2t=bAe(t2t.nodes);function vAe(e){return s2t(e)?!0:o2t(e)&&vAe(e.object)}function j4(e,t,r){var n;if(!e)return !1;a2t(e)&&(e=e.expression);let i=(n=c2t.get(e.type))==null?void 0:n(e,t);return typeof i=="number"?(i&r)!==0:!1}function p2t(e,t){return j4(e,t,1)}function f2t(e,t){return j4(e,t,2)}function h2t(e,t,r){var n;return t?u2t(t)&&t.callee===e&&vAe(e)?!0:(n=l2t.get(e.type))==null?void 0:n(e,t,r):!1}});var _Ae=chunkTKGT252T_js.c(Wb=>{Object.defineProperty(Wb,"__esModule",{value:!0});Wb.TaggedTemplateExpression=d2t;Wb.TemplateElement=m2t;Wb.TemplateLiteral=y2t;function d2t(e){this.print(e.tag,e),this.print(e.typeParameters,e),this.print(e.quasi,e);}function m2t(e,t){let r=t.quasis[0]===e,n=t.quasis[t.quasis.length-1]===e,i=(r?"`":"}")+e.value.raw+(n?"`":"${");this.token(i,!0);}function y2t(e){let t=e.quasis;for(let r=0;r{Object.defineProperty($r,"__esModule",{value:!0});$r.LogicalExpression=$r.BinaryExpression=$r.AssignmentExpression=V2t;$r.AssignmentPattern=q2t;$r.AwaitExpression=F2t;$r.BindExpression=H2t;$r.CallExpression=L2t;$r.ConditionalExpression=A2t;$r.Decorator=N2t;$r.DoExpression=v2t;$r.EmptyStatement=j2t;$r.ExpressionStatement=U2t;$r.Import=k2t;$r.MemberExpression=G2t;$r.MetaProperty=$2t;$r.ModuleExpression=W2t;$r.NewExpression=P2t;$r.OptionalCallExpression=M2t;$r.OptionalMemberExpression=R2t;$r.ParenthesizedExpression=_2t;$r.PrivateName=K2t;$r.SequenceExpression=C2t;$r.Super=I2t;$r.ThisExpression=w2t;$r.UnaryExpression=b2t;$r.UpdateExpression=x2t;$r.V8IntrinsicIdentifier=Y2t;$r.YieldExpression=B2t;$r._shouldPrintDecoratorsBeforeExport=D2t;var g2t=gi(),S2t=U4(),{isCallExpression:T2t,isLiteral:xAe,isMemberExpression:q4,isNewExpression:E2t}=g2t;function b2t(e){let{operator:t}=e;t==="void"||t==="delete"||t==="typeof"||t==="throw"?(this.word(t),this.space()):this.token(t),this.print(e.argument,e);}function v2t(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body,e);}function _2t(e){this.tokenChar(40),this.print(e.expression,e),this.rightParens(e);}function x2t(e){e.prefix?(this.token(e.operator),this.print(e.argument,e)):(this.printTerminatorless(e.argument,e,!0),this.token(e.operator));}function A2t(e){this.print(e.test,e),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent,e),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate,e);}function P2t(e,t){this.word("new"),this.space(),this.print(e.callee,e),!(this.format.minified&&e.arguments.length===0&&!e.optional&&!T2t(t,{callee:e})&&!q4(t)&&!E2t(t))&&(this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?."),this.tokenChar(40),this.printList(e.arguments,e),this.rightParens(e));}function C2t(e){this.printList(e.expressions,e);}function w2t(){this.word("this");}function I2t(){this.word("super");}function AAe(e){switch(e.type){case"Identifier":return !0;case"MemberExpression":return !e.computed&&e.property.type==="Identifier"&&AAe(e.object);default:return !1}}function O2t(e){return e.type==="ParenthesizedExpression"?!1:!AAe(e.type==="CallExpression"?e.callee:e)}function D2t(e){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof e.start=="number"&&e.start===e.declaration.start}function N2t(e){this.tokenChar(64);let{expression:t}=e;O2t(t)?(this.tokenChar(40),this.print(t,e),this.tokenChar(41)):this.print(t,e),this.newline();}function R2t(e){let{computed:t}=e,{optional:r,property:n}=e;if(this.print(e.object,e),!t&&q4(n))throw new TypeError("Got a MemberExpression for MemberExpression property");xAe(n)&&typeof n.value=="number"&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(n,e),this.tokenChar(93)):(r||this.tokenChar(46),this.print(n,e));}function M2t(e){this.print(e.callee,e),this.print(e.typeParameters,e),e.optional&&this.token("?."),this.print(e.typeArguments,e),this.tokenChar(40),this.printList(e.arguments,e),this.rightParens(e);}function L2t(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),this.tokenChar(40),this.printList(e.arguments,e),this.rightParens(e);}function k2t(){this.word("import");}function F2t(e){this.word("await"),e.argument&&(this.space(),this.printTerminatorless(e.argument,e,!1));}function B2t(e){this.word("yield",!0),e.delegate?(this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument,e))):e.argument&&(this.space(),this.printTerminatorless(e.argument,e,!1));}function j2t(){this.semicolon(!0);}function U2t(e){this.print(e.expression,e),this.semicolon();}function q2t(e){this.print(e.left,e),e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation,e),this.space(),this.tokenChar(61),this.space(),this.print(e.right,e);}function V2t(e,t){let r=this.inForStatementInitCounter&&e.operator==="in"&&!S2t.needsParens(e,t);r&&this.tokenChar(40),this.print(e.left,e),this.space(),e.operator==="in"||e.operator==="instanceof"?this.word(e.operator):this.token(e.operator),this.space(),this.print(e.right,e),r&&this.tokenChar(41);}function H2t(e){this.print(e.object,e),this.token("::"),this.print(e.callee,e);}function G2t(e){if(this.print(e.object,e),!e.computed&&q4(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;xAe(e.property)&&typeof e.property.value=="number"&&(t=!0),t?(this.tokenChar(91),this.print(e.property,e),this.tokenChar(93)):(this.tokenChar(46),this.print(e.property,e));}function $2t(e){this.print(e.meta,e),this.tokenChar(46),this.print(e.property,e);}function K2t(e){this.tokenChar(35),this.print(e.id,e);}function Y2t(e){this.tokenChar(37),this.word(e.name);}function W2t(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t,e),this.dedent(),this.rightBrace(e);}});var OAe=chunkTKGT252T_js.c(Hn=>{Object.defineProperty(Hn,"__esModule",{value:!0});Hn.BreakStatement=iFt;Hn.CatchClause=cFt;Hn.ContinueStatement=sFt;Hn.DebuggerStatement=hFt;Hn.DoWhileStatement=nFt;Hn.ForOfStatement=Hn.ForInStatement=void 0;Hn.ForStatement=tFt;Hn.IfStatement=eFt;Hn.LabeledStatement=uFt;Hn.ReturnStatement=aFt;Hn.SwitchCase=fFt;Hn.SwitchStatement=pFt;Hn.ThrowStatement=oFt;Hn.TryStatement=lFt;Hn.VariableDeclaration=dFt;Hn.VariableDeclarator=mFt;Hn.WhileStatement=rFt;Hn.WithStatement=Z2t;var X2t=gi(),{isFor:CAe,isForStatement:z2t,isIfStatement:J2t,isStatement:Q2t}=X2t;function Z2t(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object,e),this.tokenChar(41),this.printBlock(e);}function eFt(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.space();let t=e.alternate&&J2t(wAe(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent,e),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate,e));}function wAe(e){let{body:t}=e;return Q2t(t)===!1?e:wAe(t)}function tFt(e){this.word("for"),this.space(),this.tokenChar(40),this.inForStatementInitCounter++,this.print(e.init,e),this.inForStatementInitCounter--,this.tokenChar(59),e.test&&(this.space(),this.print(e.test,e)),this.tokenChar(59),e.update&&(this.space(),this.print(e.update,e)),this.tokenChar(41),this.printBlock(e);}function rFt(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.printBlock(e);}function IAe(e){this.word("for"),this.space();let t=e.type==="ForOfStatement";t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.print(e.left,e),this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right,e),this.tokenChar(41),this.printBlock(e);}Hn.ForInStatement=IAe;Hn.ForOfStatement=IAe;function nFt(e){this.word("do"),this.space(),this.print(e.body,e),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.semicolon();}function oI(e,t,r,n){t&&(e.space(),e.printTerminatorless(t,r,n)),e.semicolon();}function iFt(e){this.word("break"),oI(this,e.label,e,!0);}function sFt(e){this.word("continue"),oI(this,e.label,e,!0);}function aFt(e){this.word("return"),oI(this,e.argument,e,!1);}function oFt(e){this.word("throw"),oI(this,e.argument,e,!1);}function uFt(e){this.print(e.label,e),this.tokenChar(58),this.space(),this.print(e.body,e);}function lFt(e){this.word("try"),this.space(),this.print(e.block,e),this.space(),e.handlers?this.print(e.handlers[0],e):this.print(e.handler,e),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer,e));}function cFt(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param,e),this.print(e.param.typeAnnotation,e),this.tokenChar(41),this.space()),this.print(e.body,e);}function pFt(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant,e),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,e,{indent:!0,addNewlines(t,r){if(!t&&e.cases[e.cases.length-1]===r)return -1}}),this.rightBrace(e);}function fFt(e){e.test?(this.word("case"),this.space(),this.print(e.test,e),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,e,{indent:!0}));}function hFt(){this.word("debugger"),this.semicolon();}function dFt(e,t){e.declare&&(this.word("declare"),this.space());let{kind:r}=e;this.word(r,r==="using"||r==="await using"),this.space();let n=!1;if(!CAe(t))for(let i of e.declarations)i.init&&(n=!0);if(this.printList(e.declarations,e,{separator:n?function(){this.tokenChar(44),this.newline();}:void 0,indent:e.declarations.length>1}),CAe(t)){if(z2t(t)){if(t.init===e)return}else if(t.left===e)return}this.semicolon();}function mFt(e){this.print(e.id,e),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation,e),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init,e));}});var DAe=chunkTKGT252T_js.c(Ao=>{Object.defineProperty(Ao,"__esModule",{value:!0});Ao.ClassAccessorProperty=vFt;Ao.ClassBody=EFt;Ao.ClassExpression=Ao.ClassDeclaration=TFt;Ao.ClassMethod=xFt;Ao.ClassPrivateMethod=AFt;Ao.ClassPrivateProperty=_Ft;Ao.ClassProperty=bFt;Ao.StaticBlock=CFt;Ao._classMethodHead=PFt;var yFt=gi(),{isExportDefaultDeclaration:gFt,isExportNamedDeclaration:SFt}=yFt;function TFt(e,t){(!(gFt(t)||SFt(t))||!this._shouldPrintDecoratorsBeforeExport(t))&&this.printJoin(e.decorators,e),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id,e)),this.print(e.typeParameters,e),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass,e),this.print(e.superTypeParameters,e)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e)),this.space(),this.print(e.body,e);}function EFt(e){this.tokenChar(123),e.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.endsWith(10)||this.newline(),this.rightBrace(e));}function bFt(e){var t;this.printJoin(e.decorators,e);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key,e),this.tokenChar(93)):(this._variance(e),this.print(e.key,e)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon();}function vFt(e){var t;this.printJoin(e.decorators,e);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key,e),this.tokenChar(93)):(this._variance(e),this.print(e.key,e)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon();}function _Ft(e){this.printJoin(e.decorators,e),e.static&&(this.word("static"),this.space()),this.print(e.key,e),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon();}function xFt(e){this._classMethodHead(e),this.space(),this.print(e.body,e);}function AFt(e){this._classMethodHead(e),this.space(),this.print(e.body,e);}function PFt(e){var t;this.printJoin(e.decorators,e);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this._methodHead(e);}function CFt(e){this.word("static"),this.space(),this.tokenChar(123),e.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.rightBrace(e));}});var NAe=chunkTKGT252T_js.c(du=>{Object.defineProperty(du,"__esModule",{value:!0});du.ArrowFunctionExpression=FFt;du.FunctionDeclaration=du.FunctionExpression=kFt;du._functionHead=LFt;du._methodHead=RFt;du._param=NFt;du._parameters=DFt;du._params=OFt;du._predicate=MFt;var wFt=gi(),{isIdentifier:IFt}=wFt;function OFt(e,t,r){this.print(e.typeParameters,e);let n=jFt.call(this,t,r);n&&this.sourceIdentifierName(n.name,n.pos),this.tokenChar(40),this._parameters(e.params,e),this.tokenChar(41);let i=e.type==="ArrowFunctionExpression";this.print(e.returnType,e,i),this._noLineTerminator=i;}function DFt(e,t){let r=e.length;for(let n=0;n"),this.space(),this.print(e.body,e);}function BFt(e,t){var r,n;return !!(e.typeParameters||e.returnType||e.predicate||t.typeAnnotation||t.optional||(r=t.leadingComments)!=null&&r.length||(n=t.trailingComments)!=null&&n.length)}function jFt(e,t){let r=e;if(!r&&t){let u=t.type;u==="VariableDeclarator"?r=t.id:u==="AssignmentExpression"||u==="AssignmentPattern"?r=t.left:u==="ObjectProperty"||u==="ClassProperty"?(!t.computed||t.key.type==="StringLiteral")&&(r=t.key):(u==="ClassPrivateProperty"||u==="ClassAccessorProperty")&&(r=t.key);}if(!r)return;let n;if(r.type==="Identifier"){var i,s;n={pos:(i=r.loc)==null?void 0:i.start,name:((s=r.loc)==null?void 0:s.identifierName)||r.name};}else if(r.type==="PrivateName"){var a;n={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name};}else if(r.type==="StringLiteral"){var o;n={pos:(o=r.loc)==null?void 0:o.start,name:r.value};}return n}});var V4=chunkTKGT252T_js.c($s=>{Object.defineProperty($s,"__esModule",{value:!0});$s.ExportAllDeclaration=QFt;$s.ExportDefaultDeclaration=eBt;$s.ExportDefaultSpecifier=WFt;$s.ExportNamedDeclaration=ZFt;$s.ExportNamespaceSpecifier=zFt;$s.ExportSpecifier=XFt;$s.ImportAttribute=rBt;$s.ImportDeclaration=tBt;$s.ImportDefaultSpecifier=YFt;$s.ImportExpression=iBt;$s.ImportNamespaceSpecifier=nBt;$s.ImportSpecifier=KFt;$s._printAttributes=JFt;var UFt=gi(),{isClassDeclaration:qFt,isExportDefaultSpecifier:VFt,isExportNamespaceSpecifier:HFt,isImportDefaultSpecifier:GFt,isImportNamespaceSpecifier:$Ft,isStatement:MAe}=UFt;function KFt(e){(e.importKind==="type"||e.importKind==="typeof")&&(this.word(e.importKind),this.space()),this.print(e.imported,e),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local,e));}function YFt(e){this.print(e.local,e);}function WFt(e){this.print(e.exported,e);}function XFt(e){e.exportKind==="type"&&(this.word("type"),this.space()),this.print(e.local,e),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported,e));}function zFt(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported,e);}var RAe=!1;function JFt(e){let{importAttributesKeyword:t}=this.format,{attributes:r,assertions:n}=e;r&&!t&&!RAe&&(RAe=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));let i=t==="assert"||!t&&n;if(this.word(i?"assert":"with"),this.space(),!i&&t!=="with"){this.printList(r||n,e);return}this.tokenChar(123),this.space(),this.printList(r||n,e),this.space(),this.tokenChar(125);}function QFt(e){var t,r;this.word("export"),this.space(),e.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e),this.semicolon();}function LAe(e,t){qFt(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators,t);}function ZFt(e){if(LAe(this,e),this.word("export"),this.space(),e.declaration){let n=e.declaration;this.print(n,e),MAe(n)||this.semicolon();}else {e.exportKind==="type"&&(this.word("type"),this.space());let n=e.specifiers.slice(0),i=!1;for(;;){let s=n[0];if(VFt(s)||HFt(s))i=!0,this.print(n.shift(),e),n.length&&(this.tokenChar(44),this.space());else break}if((n.length||!n.length&&!i)&&(this.tokenChar(123),n.length&&(this.space(),this.printList(n,e),this.space()),this.tokenChar(125)),e.source){var t,r;this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e);}this.semicolon();}}function eBt(e){LAe(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space();let t=e.declaration;this.print(t,e),MAe(t)||this.semicolon();}function tBt(e){var t,r;this.word("import"),this.space();let n=e.importKind==="type"||e.importKind==="typeof";n?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());let i=e.specifiers.slice(0),s=!!i.length;for(;s;){let a=i[0];if(GFt(a)||$Ft(a))this.print(i.shift(),e),i.length&&(this.tokenChar(44),this.space());else break}i.length?(this.tokenChar(123),this.space(),this.printList(i,e),this.space(),this.tokenChar(125)):n&&!s&&(this.tokenChar(123),this.tokenChar(125)),(s||n)&&(this.space(),this.word("from"),this.space()),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e),this.semicolon();}function rBt(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value);}function nBt(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local,e);}function iBt(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40),this.print(e.source,e),e.options!=null&&(this.tokenChar(44),this.space(),this.print(e.options,e)),this.tokenChar(41);}});var jAe=chunkTKGT252T_js.c((Gln,BAe)=>{var kAe={},sBt=kAe.hasOwnProperty,FAe=(e,t)=>{for(let r in e)sBt.call(e,r)&&t(r,e[r]);},aBt=(e,t)=>(t&&FAe(t,(r,n)=>{e[r]=n;}),e),oBt=(e,t)=>{let r=e.length,n=-1;for(;++nXb.call(e)=="[object Object]",pBt=e=>typeof e=="string"||Xb.call(e)=="[object String]",fBt=e=>typeof e=="number"||Xb.call(e)=="[object Number]",hBt=e=>typeof e=="function",dBt=e=>Xb.call(e)=="[object Map]",mBt=e=>Xb.call(e)=="[object Set]",yBt={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},gBt=/["'\\\b\f\n\r\t]/,SBt=/[0-9]/,TBt=/[ !#-&\(-\[\]-_a-~]/,qf=(e,t)=>{let r=()=>{l=u,++t.indentLevel,u=t.indent.repeat(t.indentLevel);},n={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},i=t&&t.json;i&&(n.quotes="double",n.wrap=!0),t=aBt(n,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"&&(t.quotes="single");let s=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",a=t.compact,o=t.lowercaseHex,u=t.indent.repeat(t.indentLevel),l="",c=t.__inline1__,p=t.__inline2__,h=a?"":` `,f,d=!0,m=t.numbers=="binary",y=t.numbers=="octal",g=t.numbers=="decimal",v=t.numbers=="hexadecimal";if(i&&e&&hBt(e.toJSON)&&(e=e.toJSON()),!pBt(e)){if(dBt(e))return e.size==0?"new Map()":(a||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+qf(Array.from(e),t)+")");if(mBt(e))return e.size==0?"new Set()":"new Set("+qf(Array.from(e),t)+")";if(lBt(e))return e.length==0?"Buffer.from([])":"Buffer.from("+qf(Array.from(e),t)+")";if(uBt(e))return f=[],t.wrap=!0,c&&(t.__inline1__=!1,t.__inline2__=!0),p||r(),oBt(e,b=>{d=!1,p&&(t.__inline2__=!1),f.push((a||p?"":u)+qf(b,t));}),d?"[]":p?"["+f.join(", ")+"]":"["+h+f.join(","+h)+h+(a?"":l)+"]";if(fBt(e)){if(i)return JSON.stringify(e);if(g)return String(e);if(v){let b=e.toString(16);return o||(b=b.toUpperCase()),"0x"+b}if(m)return "0b"+e.toString(2);if(y)return "0o"+e.toString(8)}else return cBt(e)?(f=[],t.wrap=!0,r(),FAe(e,(b,A)=>{d=!1,f.push((a?"":u)+qf(b,t)+":"+(a?"":" ")+qf(A,t));}),d?"{}":"{"+h+f.join(","+h)+h+(a?"":l)+"}"):i?JSON.stringify(e)||"null":String(e)}let E=e,S=-1,x=E.length;for(f="";++S=55296&&X<=56319&&x>S+1){let oe=E.charCodeAt(S+1);if(oe>=56320&&oe<=57343){let Be=((X-55296)*1024+oe-56320+65536).toString(16);o||(Be=Be.toUpperCase()),f+="\\u{"+Be+"}",++S;continue}}}if(!t.escapeEverything){if(TBt.test(b)){f+=b;continue}if(b=='"'){f+=s==b?'\\"':b;continue}if(b=="`"){f+=s==b?"\\`":b;continue}if(b=="'"){f+=s==b?"\\'":b;continue}}if(b=="\0"&&!i&&!SBt.test(E.charAt(S+1))){f+="\\0";continue}if(gBt.test(b)){f+=yBt[b];continue}let A=b.charCodeAt(0);if(t.minimal&&A!=8232&&A!=8233){f+=b;continue}let D=A.toString(16);o||(D=D.toUpperCase());let P=D.length>2||i,V="\\"+(P?"u":"x")+("0000"+D).slice(P?-4:-2);f+=V;}return t.wrap&&(f=s+f+s),s=="`"&&(f=f.replace(/\$\{/g,"\\${")),t.isScriptContext?f.replace(/<\/(script|style)/gi,"<\\/$1").replace(/"+this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}declaration(E,S,x){var b;return this.openNode(E,S,x),S.state=t.OpenTag,b=this.indent(E,S,x)+"",b+=this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}docType(E,S,x){var b,A,D,P,V;if(x||(x=0),this.openNode(E,S,x),S.state=t.OpenTag,P=this.indent(E,S,x),P+="0){for(P+=" [",P+=this.endline(E,S,x),S.state=t.InsideTag,V=E.children,A=0,D=V.length;A",P+=this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),P}element(E,S,x){var b,A,D,P,V,X,oe,le,Be,be,Ee,Te,Me,At,ue,fe,Se,je,Ct;if(x||(x=0),Te=!1,this.openNode(E,S,x),S.state=t.OpenTag,Me=this.indent(E,S,x)+"<"+E.name,S.pretty&&S.width>0){le=Me.length,ue=E.attribs;for(Ee in ue)g.call(ue,Ee)&&(b=ue[Ee],At=this.attribute(b,S,x),A=At.length,le+A>S.width?(Ct=this.indent(E,S,x+1)+At,Me+=this.endline(E,S,x)+Ct,le=Ct.length):(Ct=" "+At,Me+=Ct,le+=Ct.length));}else {fe=E.attribs;for(Ee in fe)g.call(fe,Ee)&&(b=fe[Ee],Me+=this.attribute(b,S,x));}if(P=E.children.length,V=P===0?null:E.children[0],P===0||E.children.every(function(Nt){return (Nt.type===e.Text||Nt.type===e.Raw||Nt.type===e.CData)&&Nt.value===""}))S.allowEmpty?(Me+=">",S.state=t.CloseTag,Me+=""+this.endline(E,S,x)):(S.state=t.CloseTag,Me+=S.spaceBeforeSlash+"/>"+this.endline(E,S,x));else if(S.pretty&&P===1&&(V.type===e.Text||V.type===e.Raw||V.type===e.CData)&&V.value!=null)Me+=">",S.state=t.InsideTag,S.suppressPrettyCount++,Te=!0,Me+=this.writeChildNode(V,S,x+1),S.suppressPrettyCount--,Te=!1,S.state=t.CloseTag,Me+=""+this.endline(E,S,x);else {if(S.dontPrettyTextNodes){for(Se=E.children,X=0,Be=Se.length;X"+this.endline(E,S,x),S.state=t.InsideTag,je=E.children,oe=0,be=je.length;oe",Te&&S.suppressPrettyCount--,Me+=this.endline(E,S,x),S.state=t.None;}return this.closeNode(E,S,x),Me}writeChildNode(E,S,x){switch(E.type){case e.CData:return this.cdata(E,S,x);case e.Comment:return this.comment(E,S,x);case e.Element:return this.element(E,S,x);case e.Raw:return this.raw(E,S,x);case e.Text:return this.text(E,S,x);case e.ProcessingInstruction:return this.processingInstruction(E,S,x);case e.Dummy:return "";case e.Declaration:return this.declaration(E,S,x);case e.DocType:return this.docType(E,S,x);case e.AttributeDeclaration:return this.dtdAttList(E,S,x);case e.ElementDeclaration:return this.dtdElement(E,S,x);case e.EntityDeclaration:return this.dtdEntity(E,S,x);case e.NotationDeclaration:return this.dtdNotation(E,S,x);default:throw new Error("Unknown XML node type: "+E.constructor.name)}}processingInstruction(E,S,x){var b;return this.openNode(E,S,x),S.state=t.OpenTag,b=this.indent(E,S,x)+"",b+=this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}raw(E,S,x){var b;return this.openNode(E,S,x),S.state=t.OpenTag,b=this.indent(E,S,x),S.state=t.InsideTag,b+=E.value,S.state=t.CloseTag,b+=this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}text(E,S,x){var b;return this.openNode(E,S,x),S.state=t.OpenTag,b=this.indent(E,S,x),S.state=t.InsideTag,b+=E.value,S.state=t.CloseTag,b+=this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}dtdAttList(E,S,x){var b;return this.openNode(E,S,x),S.state=t.OpenTag,b=this.indent(E,S,x)+""+this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}dtdElement(E,S,x){var b;return this.openNode(E,S,x),S.state=t.OpenTag,b=this.indent(E,S,x)+""+this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}dtdEntity(E,S,x){var b;return this.openNode(E,S,x),S.state=t.OpenTag,b=this.indent(E,S,x)+""+this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}dtdNotation(E,S,x){var b;return this.openNode(E,S,x),S.state=t.OpenTag,b=this.indent(E,S,x)+""+this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}openNode(E,S,x){}closeNode(E,S,x){}openAttribute(E,S,x){}closeAttribute(E,S,x){}};}).call(O6e);});var dR=chunkTKGT252T_js.c((N6e,R6e)=>{(function(){var t;t=Z$(),R6e.exports=class extends t{constructor(n){super(n);}document(n,i){var s,a,o,u,l;for(i=this.filterOptions(i),u="",l=n.children,a=0,o=l.length;a{(function(){var e,t,r,i,s,a,o;(({isPlainObject:o}=Nl())),r=X$(),t=F5e(),i=Ya(),e=hi(),a=Q$(),s=dR(),L6e.exports=function(){class u extends i{constructor(c){super(null),this.name="#document",this.type=e.Document,this.documentURI=null,this.domConfig=new t,c||(c={}),c.writer||(c.writer=new s),this.options=c,this.stringify=new a(c);}end(c){var p;return p={},c?o(c)&&(p=c,c=this.options.writer):c=this.options.writer,c.document(this,c.filterOptions(p))}toString(c){return this.options.writer.document(this,this.options.writer.filterOptions(c))}createElement(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}createComment(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(c,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}importNode(c,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(c,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(c,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(c,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementById(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw new Error("This DOM method is not implemented."+this.debugInfo())}renameNode(c,p,h){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEvent(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(c,p,h){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(c,p,h){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(u.prototype,"implementation",{value:new r}),Object.defineProperty(u.prototype,"doctype",{get:function(){var l,c,p,h;for(h=this.children,c=0,p=h.length;c{(function(){var e,t,r,n,i,s,a,o,u,l,c,p,f,d,m,y,g,v,E,S,x,b,A={}.hasOwnProperty;(({isObject:x,isFunction:S,isPlainObject:b,getValue:E}=Nl())),e=hi(),p=eK(),f=rR(),n=nR(),i=iR(),m=pR(),v=fR(),d=hR(),l=sR(),c=cR(),s=aR(),o=oR(),a=uR(),u=lR(),r=z$(),g=Q$(),y=dR(),t=yx(),F6e.exports=class{constructor(P,V,X){var oe;this.name="?xml",this.type=e.Document,P||(P={}),oe={},P.writer?b(P.writer)&&(oe=P.writer,P.writer=new y):P.writer=new y,this.options=P,this.writer=P.writer,this.writerOptions=this.writer.filterOptions(oe),this.stringify=new g(P),this.onDataCallback=V||function(){},this.onEndCallback=X||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null;}createChildNode(P){var V,X,oe,le,Be,be,Ee,Te;switch(P.type){case e.CData:this.cdata(P.value);break;case e.Comment:this.comment(P.value);break;case e.Element:oe={},Ee=P.attribs;for(X in Ee)A.call(Ee,X)&&(V=Ee[X],oe[X]=V.value);this.node(P.name,oe);break;case e.Dummy:this.dummy();break;case e.Raw:this.raw(P.value);break;case e.Text:this.text(P.value);break;case e.ProcessingInstruction:this.instruction(P.target,P.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+P.constructor.name)}for(Te=P.children,Be=0,be=Te.length;Be=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(P){var V,X,oe,le;if(!P.isOpen){if(!this.root&&this.currentLevel===0&&P.type===e.Element&&(this.root=P),X="",P.type===e.Element){this.writerOptions.state=t.OpenTag,X=this.writer.indent(P,this.writerOptions,this.currentLevel)+"<"+P.name,le=P.attribs;for(oe in le)A.call(le,oe)&&(V=le[oe],X+=this.writer.attribute(V,this.writerOptions,this.currentLevel));X+=(P.children?">":"/>")+this.writer.endline(P,this.writerOptions,this.currentLevel),this.writerOptions.state=t.InsideTag;}else this.writerOptions.state=t.OpenTag,X=this.writer.indent(P,this.writerOptions,this.currentLevel)+""),X+=this.writer.endline(P,this.writerOptions,this.currentLevel);return this.onData(X,this.currentLevel),P.isOpen=!0}}closeNode(P){var V;if(!P.isClosed)return V="",this.writerOptions.state=t.CloseTag,P.type===e.Element?V=this.writer.indent(P,this.writerOptions,this.currentLevel)+""+this.writer.endline(P,this.writerOptions,this.currentLevel):V=this.writer.indent(P,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(P,this.writerOptions,this.currentLevel),this.writerOptions.state=t.None,this.onData(V,this.currentLevel),P.isClosed=!0}onData(P,V){return this.documentStarted=!0,this.onDataCallback(P,V+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(P){return P==null?"":"node: <"+P+">"}ele(){return this.element(...arguments)}nod(P,V,X){return this.node(P,V,X)}txt(P){return this.text(P)}dat(P){return this.cdata(P)}com(P){return this.comment(P)}ins(P,V){return this.instruction(P,V)}dec(P,V,X){return this.declaration(P,V,X)}dtd(P,V,X){return this.doctype(P,V,X)}e(P,V,X){return this.element(P,V,X)}n(P,V,X){return this.node(P,V,X)}t(P){return this.text(P)}d(P){return this.cdata(P)}c(P){return this.comment(P)}r(P){return this.raw(P)}i(P,V){return this.instruction(P,V)}att(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(P,V){return this.entity(P,V)}pent(P,V){return this.pEntity(P,V)}not(P,V){return this.notation(P,V)}};}).call(k6e);});var q6e=chunkTKGT252T_js.c((j6e,U6e)=>{(function(){var e,t,n,i={}.hasOwnProperty;e=hi(),n=Z$(),t=yx(),U6e.exports=class extends n{constructor(a,o){super(o),this.stream=a;}endline(a,o,u){return a.isLastRootNode&&o.state===t.CloseTag?"":super.endline(a,o,u)}document(a,o){var u,l,c,p,h,f,d,m,y;for(d=a.children,l=c=0,h=d.length;c0){for(this.stream.write(" ["),this.stream.write(this.endline(a,o,u)),o.state=t.InsideTag,h=a.children,c=0,p=h.length;c"),this.stream.write(this.endline(a,o,u)),o.state=t.None,this.closeNode(a,o,u)}element(a,o,u){var l,c,p,h,f,d,m,y,g,E,S,x,b,A,D;if(u||(u=0),this.openNode(a,o,u),o.state=t.OpenTag,E=this.indent(a,o,u)+"<"+a.name,o.pretty&&o.width>0){m=E.length,x=a.attribs;for(g in x)i.call(x,g)&&(l=x[g],S=this.attribute(l,o,u),c=S.length,m+c>o.width?(D=this.indent(a,o,u+1)+S,E+=this.endline(a,o,u)+D,m=D.length):(D=" "+S,E+=D,m+=D.length));}else {b=a.attribs;for(g in b)i.call(b,g)&&(l=b[g],E+=this.attribute(l,o,u));}if(this.stream.write(E),h=a.children.length,f=h===0?null:a.children[0],h===0||a.children.every(function(P){return (P.type===e.Text||P.type===e.Raw||P.type===e.CData)&&P.value===""}))o.allowEmpty?(this.stream.write(">"),o.state=t.CloseTag,this.stream.write("")):(o.state=t.CloseTag,this.stream.write(o.spaceBeforeSlash+"/>"));else if(o.pretty&&h===1&&(f.type===e.Text||f.type===e.Raw||f.type===e.CData)&&f.value!=null)this.stream.write(">"),o.state=t.InsideTag,o.suppressPrettyCount++,this.writeChildNode(f,o,u+1),o.suppressPrettyCount--,o.state=t.CloseTag,this.stream.write("");else {for(this.stream.write(">"+this.endline(a,o,u)),o.state=t.InsideTag,A=a.children,d=0,y=A.length;d");}return this.stream.write(this.endline(a,o,u)),o.state=t.None,this.closeNode(a,o,u)}processingInstruction(a,o,u){return this.stream.write(super.processingInstruction(a,o,u))}raw(a,o,u){return this.stream.write(super.raw(a,o,u))}text(a,o,u){return this.stream.write(super.text(a,o,u))}dtdAttList(a,o,u){return this.stream.write(super.dtdAttList(a,o,u))}dtdElement(a,o,u){return this.stream.write(super.dtdElement(a,o,u))}dtdEntity(a,o,u){return this.stream.write(super.dtdEntity(a,o,u))}dtdNotation(a,o,u){return this.stream.write(super.dtdNotation(a,o,u))}};}).call(j6e);});var H6e=chunkTKGT252T_js.c((V6e,xh)=>{(function(){var e,t,r,n,i,s,a,o,u;(({assign:o,isFunction:u}=Nl())),r=X$(),n=eK(),i=B6e(),a=dR(),s=q6e(),e=hi(),t=yx(),xh.exports.create=function(l,c,p,h){var f,d;if(l==null)throw new Error("Root element needs a name.");return h=o({},c,p,h),f=new n(h),d=f.element(l),h.headless||(f.declaration(h),(h.pubID!=null||h.sysID!=null)&&f.dtd(h)),d},xh.exports.begin=function(l,c,p){return u(l)&&([c,p]=[l,c],l={}),c?new i(l,c,p):new n(l)},xh.exports.stringWriter=function(l){return new a(l)},xh.exports.streamWriter=function(l,c){return new s(l,c)},xh.exports.implementation=new r,xh.exports.nodeType=e,xh.exports.writerState=t;}).call(V6e);});var X6e=chunkTKGT252T_js.c((Mt,W6e)=>{Mt=W6e.exports=Qt;var Qr;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?Qr=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:Qr=function(){};Mt.SEMVER_SPEC_VERSION="2.0.0";var gx=256,mR=Number.MAX_SAFE_INTEGER||9007199254740991,tK=16,PNr=gx-6,HT=Mt.re=[],Jr=Mt.safeRe=[],ge=Mt.src=[],se=Mt.tokens={},K6e=0;function pr(e){se[e]=K6e++;}var nK="[a-zA-Z0-9-]",rK=[["\\s",1],["\\d",gx],[nK,PNr]];function Tx(e){for(var t=0;t)?=?)";pr("XRANGEIDENTIFIERLOOSE");ge[se.XRANGEIDENTIFIERLOOSE]=ge[se.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";pr("XRANGEIDENTIFIER");ge[se.XRANGEIDENTIFIER]=ge[se.NUMERICIDENTIFIER]+"|x|X|\\*";pr("XRANGEPLAIN");ge[se.XRANGEPLAIN]="[v=\\s]*("+ge[se.XRANGEIDENTIFIER]+")(?:\\.("+ge[se.XRANGEIDENTIFIER]+")(?:\\.("+ge[se.XRANGEIDENTIFIER]+")(?:"+ge[se.PRERELEASE]+")?"+ge[se.BUILD]+"?)?)?";pr("XRANGEPLAINLOOSE");ge[se.XRANGEPLAINLOOSE]="[v=\\s]*("+ge[se.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+ge[se.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+ge[se.XRANGEIDENTIFIERLOOSE]+")(?:"+ge[se.PRERELEASELOOSE]+")?"+ge[se.BUILD]+"?)?)?";pr("XRANGE");ge[se.XRANGE]="^"+ge[se.GTLT]+"\\s*"+ge[se.XRANGEPLAIN]+"$";pr("XRANGELOOSE");ge[se.XRANGELOOSE]="^"+ge[se.GTLT]+"\\s*"+ge[se.XRANGEPLAINLOOSE]+"$";pr("COERCE");ge[se.COERCE]="(^|[^\\d])(\\d{1,"+tK+"})(?:\\.(\\d{1,"+tK+"}))?(?:\\.(\\d{1,"+tK+"}))?(?:$|[^\\d])";pr("COERCERTL");HT[se.COERCERTL]=new RegExp(ge[se.COERCE],"g");Jr[se.COERCERTL]=new RegExp(Tx(ge[se.COERCE]),"g");pr("LONETILDE");ge[se.LONETILDE]="(?:~>?)";pr("TILDETRIM");ge[se.TILDETRIM]="(\\s*)"+ge[se.LONETILDE]+"\\s+";HT[se.TILDETRIM]=new RegExp(ge[se.TILDETRIM],"g");Jr[se.TILDETRIM]=new RegExp(Tx(ge[se.TILDETRIM]),"g");var CNr="$1~";pr("TILDE");ge[se.TILDE]="^"+ge[se.LONETILDE]+ge[se.XRANGEPLAIN]+"$";pr("TILDELOOSE");ge[se.TILDELOOSE]="^"+ge[se.LONETILDE]+ge[se.XRANGEPLAINLOOSE]+"$";pr("LONECARET");ge[se.LONECARET]="(?:\\^)";pr("CARETTRIM");ge[se.CARETTRIM]="(\\s*)"+ge[se.LONECARET]+"\\s+";HT[se.CARETTRIM]=new RegExp(ge[se.CARETTRIM],"g");Jr[se.CARETTRIM]=new RegExp(Tx(ge[se.CARETTRIM]),"g");var wNr="$1^";pr("CARET");ge[se.CARET]="^"+ge[se.LONECARET]+ge[se.XRANGEPLAIN]+"$";pr("CARETLOOSE");ge[se.CARETLOOSE]="^"+ge[se.LONECARET]+ge[se.XRANGEPLAINLOOSE]+"$";pr("COMPARATORLOOSE");ge[se.COMPARATORLOOSE]="^"+ge[se.GTLT]+"\\s*("+ge[se.LOOSEPLAIN]+")$|^$";pr("COMPARATOR");ge[se.COMPARATOR]="^"+ge[se.GTLT]+"\\s*("+ge[se.FULLPLAIN]+")$|^$";pr("COMPARATORTRIM");ge[se.COMPARATORTRIM]="(\\s*)"+ge[se.GTLT]+"\\s*("+ge[se.LOOSEPLAIN]+"|"+ge[se.XRANGEPLAIN]+")";HT[se.COMPARATORTRIM]=new RegExp(ge[se.COMPARATORTRIM],"g");Jr[se.COMPARATORTRIM]=new RegExp(Tx(ge[se.COMPARATORTRIM]),"g");var INr="$1$2$3";pr("HYPHENRANGE");ge[se.HYPHENRANGE]="^\\s*("+ge[se.XRANGEPLAIN]+")\\s+-\\s+("+ge[se.XRANGEPLAIN]+")\\s*$";pr("HYPHENRANGELOOSE");ge[se.HYPHENRANGELOOSE]="^\\s*("+ge[se.XRANGEPLAINLOOSE]+")\\s+-\\s+("+ge[se.XRANGEPLAINLOOSE]+")\\s*$";pr("STAR");ge[se.STAR]="(<|>)?=?\\s*\\*";for(Rl=0;Rlgx)return null;var r=t.loose?Jr[se.LOOSE]:Jr[se.FULL];if(!r.test(e))return null;try{return new Qt(e,t)}catch{return null}}Mt.valid=ONr;function ONr(e,t){var r=Lm(e,t);return r?r.version:null}Mt.clean=DNr;function DNr(e,t){var r=Lm(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}Mt.SemVer=Qt;function Qt(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Qt){if(e.loose===t.loose)return e;e=e.version;}else if(typeof e!="string")throw new TypeError("Invalid Version: "+e);if(e.length>gx)throw new TypeError("version is longer than "+gx+" characters");if(!(this instanceof Qt))return new Qt(e,t);Qr("SemVer",e,t),this.options=t,this.loose=!!t.loose;var r=e.trim().match(t.loose?Jr[se.LOOSE]:Jr[se.FULL]);if(!r)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>mR||this.major<0)throw new TypeError("Invalid major version");if(this.minor>mR||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>mR||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(function(n){if(/^[0-9]+$/.test(n)){var i=+n;if(i>=0&&i=0;)typeof this.prerelease[r]=="number"&&(this.prerelease[r]++,r=-2);r===-1&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this};Mt.inc=NNr;function NNr(e,t,r,n){typeof r=="string"&&(n=r,r=void 0);try{return new Qt(e,r).inc(t,n).version}catch{return null}}Mt.diff=RNr;function RNr(e,t){if(iK(e,t))return null;var r=Lm(e),n=Lm(t),i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease";}for(var a in r)if((a==="major"||a==="minor"||a==="patch")&&r[a]!==n[a])return i+a;return s}Mt.compareIdentifiers=Mm;var G6e=/^[0-9]+$/;function Mm(e,t){var r=G6e.test(e),n=G6e.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e0}Mt.lt=yR;function yR(e,t,r){return cp(e,t,r)<0}Mt.eq=iK;function iK(e,t,r){return cp(e,t,r)===0}Mt.neq=Y6e;function Y6e(e,t,r){return cp(e,t,r)!==0}Mt.gte=sK;function sK(e,t,r){return cp(e,t,r)>=0}Mt.lte=aK;function aK(e,t,r){return cp(e,t,r)<=0}Mt.cmp=gR;function gR(e,t,r,n){switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return iK(e,r,n);case"!=":return Y6e(e,r,n);case">":return Sx(e,r,n);case">=":return sK(e,r,n);case"<":return yR(e,r,n);case"<=":return aK(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}Mt.Comparator=jo;function jo(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof jo){if(e.loose===!!t.loose)return e;e=e.value;}if(!(this instanceof jo))return new jo(e,t);e=e.trim().split(/\s+/).join(" "),Qr("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===GT?this.value="":this.value=this.operator+this.semver.version,Qr("comp",this);}var GT={};jo.prototype.parse=function(e){var t=this.options.loose?Jr[se.COMPARATORLOOSE]:Jr[se.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new Qt(r[2],this.options.loose):this.semver=GT;};jo.prototype.toString=function(){return this.value};jo.prototype.test=function(e){if(Qr("Comparator.test",e,this.options.loose),this.semver===GT||e===GT)return !0;if(typeof e=="string")try{e=new Qt(e,this.options);}catch{return !1}return gR(e,this.operator,this.semver,this.options)};jo.prototype.intersects=function(e,t){if(!(e instanceof jo))throw new TypeError("a Comparator is required");(!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1});var r;if(this.operator==="")return this.value===""?!0:(r=new Wn(e.value,t),SR(this.value,r,t));if(e.operator==="")return e.value===""?!0:(r=new Wn(this.value,t),SR(e.semver,r,t));var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),s=this.semver.version===e.semver.version,a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),o=gR(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),u=gR(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||i||s&&a||o||u};Mt.Range=Wn;function Wn(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Wn)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Wn(e.raw,t);if(e instanceof jo)return new Wn(e.value,t);if(!(this instanceof Wn))return new Wn(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(r){return this.parseRange(r.trim())},this).filter(function(r){return r.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format();}Wn.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range};Wn.prototype.toString=function(){return this.range};Wn.prototype.parseRange=function(e){var t=this.options.loose,r=t?Jr[se.HYPHENRANGELOOSE]:Jr[se.HYPHENRANGE];e=e.replace(r,QNr),Qr("hyphen replace",e),e=e.replace(Jr[se.COMPARATORTRIM],INr),Qr("comparator trim",e,Jr[se.COMPARATORTRIM]),e=e.replace(Jr[se.TILDETRIM],CNr),e=e.replace(Jr[se.CARETTRIM],wNr),e=e.split(/\s+/).join(" ");var n=t?Jr[se.COMPARATORLOOSE]:Jr[se.COMPARATOR],i=e.split(" ").map(function(s){return GNr(s,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(s){return !!s.match(n)})),i=i.map(function(s){return new jo(s,this.options)},this),i};Wn.prototype.intersects=function(e,t){if(!(e instanceof Wn))throw new TypeError("a Range is required");return this.set.some(function(r){return $6e(r,t)&&e.set.some(function(n){return $6e(n,t)&&r.every(function(i){return n.every(function(s){return i.intersects(s,t)})})})})};function $6e(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every(function(s){return i.intersects(s,t)}),i=n.pop();return r}Mt.toComparators=HNr;function HNr(e,t){return new Wn(e,t).set.map(function(r){return r.map(function(n){return n.value}).join(" ").trim().split(" ")})}function GNr(e,t){return Qr("comp",e,t),e=YNr(e,t),Qr("caret",e),e=$Nr(e,t),Qr("tildes",e),e=XNr(e,t),Qr("xrange",e),e=JNr(e,t),Qr("stars",e),e}function sa(e){return !e||e.toLowerCase()==="x"||e==="*"}function $Nr(e,t){return e.trim().split(/\s+/).map(function(r){return KNr(r,t)}).join(" ")}function KNr(e,t){var r=t.loose?Jr[se.TILDELOOSE]:Jr[se.TILDE];return e.replace(r,function(n,i,s,a,o){Qr("tilde",e,n,i,s,a,o);var u;return sa(i)?u="":sa(s)?u=">="+i+".0.0 <"+(+i+1)+".0.0":sa(a)?u=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0":o?(Qr("replaceTilde pr",o),u=">="+i+"."+s+"."+a+"-"+o+" <"+i+"."+(+s+1)+".0"):u=">="+i+"."+s+"."+a+" <"+i+"."+(+s+1)+".0",Qr("tilde return",u),u})}function YNr(e,t){return e.trim().split(/\s+/).map(function(r){return WNr(r,t)}).join(" ")}function WNr(e,t){Qr("caret",e,t);var r=t.loose?Jr[se.CARETLOOSE]:Jr[se.CARET];return e.replace(r,function(n,i,s,a,o){Qr("caret",e,n,i,s,a,o);var u;return sa(i)?u="":sa(s)?u=">="+i+".0.0 <"+(+i+1)+".0.0":sa(a)?i==="0"?u=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0":u=">="+i+"."+s+".0 <"+(+i+1)+".0.0":o?(Qr("replaceCaret pr",o),i==="0"?s==="0"?u=">="+i+"."+s+"."+a+"-"+o+" <"+i+"."+s+"."+(+a+1):u=">="+i+"."+s+"."+a+"-"+o+" <"+i+"."+(+s+1)+".0":u=">="+i+"."+s+"."+a+"-"+o+" <"+(+i+1)+".0.0"):(Qr("no pr"),i==="0"?s==="0"?u=">="+i+"."+s+"."+a+" <"+i+"."+s+"."+(+a+1):u=">="+i+"."+s+"."+a+" <"+i+"."+(+s+1)+".0":u=">="+i+"."+s+"."+a+" <"+(+i+1)+".0.0"),Qr("caret return",u),u})}function XNr(e,t){return Qr("replaceXRanges",e,t),e.split(/\s+/).map(function(r){return zNr(r,t)}).join(" ")}function zNr(e,t){e=e.trim();var r=t.loose?Jr[se.XRANGELOOSE]:Jr[se.XRANGE];return e.replace(r,function(n,i,s,a,o,u){Qr("xRange",e,n,i,s,a,o,u);var l=sa(s),c=l||sa(a),p=c||sa(o),h=p;return i==="="&&h&&(i=""),u=t.includePrerelease?"-0":"",l?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&h?(c&&(a=0),o=0,i===">"?(i=">=",c?(s=+s+1,a=0,o=0):(a=+a+1,o=0)):i==="<="&&(i="<",c?s=+s+1:a=+a+1),n=i+s+"."+a+"."+o+u):c?n=">="+s+".0.0"+u+" <"+(+s+1)+".0.0"+u:p&&(n=">="+s+"."+a+".0"+u+" <"+s+"."+(+a+1)+".0"+u),Qr("xRange return",n),n})}function JNr(e,t){return Qr("replaceStars",e,t),e.trim().replace(Jr[se.STAR],"")}function QNr(e,t,r,n,i,s,a,o,u,l,c,p,h){return sa(r)?t="":sa(n)?t=">="+r+".0.0":sa(i)?t=">="+r+"."+n+".0":t=">="+t,sa(u)?o="":sa(l)?o="<"+(+u+1)+".0.0":sa(c)?o="<"+u+"."+(+l+1)+".0":p?o="<="+u+"."+l+"."+c+"-"+p:o="<="+o,(t+" "+o).trim()}Wn.prototype.test=function(e){if(!e)return !1;if(typeof e=="string")try{e=new Qt(e,this.options);}catch{return !1}for(var t=0;t0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return !0}return !1}return !0}Mt.satisfies=SR;function SR(e,t,r){try{t=new Wn(t,r);}catch{return !1}return t.test(e)}Mt.maxSatisfying=eRr;function eRr(e,t,r){var n=null,i=null;try{var s=new Wn(t,r);}catch{return null}return e.forEach(function(a){s.test(a)&&(!n||i.compare(a)===-1)&&(n=a,i=new Qt(n,r));}),n}Mt.minSatisfying=tRr;function tRr(e,t,r){var n=null,i=null;try{var s=new Wn(t,r);}catch{return null}return e.forEach(function(a){s.test(a)&&(!n||i.compare(a)===1)&&(n=a,i=new Qt(n,r));}),n}Mt.minVersion=rRr;function rRr(e,t){e=new Wn(e,t);var r=new Qt("0.0.0");if(e.test(r)||(r=new Qt("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!r||Sx(r,a))&&(r=a);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+s.operator)}});}return r&&e.test(r)?r:null}Mt.validRange=nRr;function nRr(e,t){try{return new Wn(e,t).range||"*"}catch{return null}}Mt.ltr=iRr;function iRr(e,t,r){return oK(e,t,"<",r)}Mt.gtr=sRr;function sRr(e,t,r){return oK(e,t,">",r)}Mt.outside=oK;function oK(e,t,r,n){e=new Qt(e,n),t=new Wn(t,n);var i,s,a,o,u;switch(r){case">":i=Sx,s=aK,a=yR,o=">",u=">=";break;case"<":i=yR,s=sK,a=Sx,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(SR(e,t,n))return !1;for(var l=0;l=0.0.0")),p=p||f,h=h||f,i(f.semver,p.semver,n)?p=f:a(f.semver,h.semver,n)&&(h=f);}),p.operator===o||p.operator===u||(!h.operator||h.operator===o)&&s(e,h.semver))return !1;if(h.operator===u&&a(e,h.semver))return !1}return !0}Mt.prerelease=aRr;function aRr(e,t){var r=Lm(e,t);return r&&r.prerelease.length?r.prerelease:null}Mt.intersects=oRr;function oRr(e,t,r){return e=new Wn(e,r),t=new Wn(t,r),e.intersects(t)}Mt.coerce=uRr;function uRr(e,t){if(e instanceof Qt)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};var r=null;if(!t.rtl)r=e.match(Jr[se.COERCE]);else {for(var n;(n=Jr[se.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),Jr[se.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;Jr[se.COERCERTL].lastIndex=-1;}return r===null?null:Lm(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}});var t8e=chunkTKGT252T_js.c((_xn,uK)=>{var TR=chunkTKGT252T_js.a("fs"),pp=chunkTKGT252T_js.a("path"),{promisify:z6e}=chunkTKGT252T_js.a("util"),lRr=X6e(),J6e=lRr.satisfies(process.version,">=10.12.0"),Q6e=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(pp.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},Z6e=e=>({...{mode:511,fs:TR},...e}),e8e=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t},cRr=async(e,t)=>{Q6e(e),t=Z6e(t);let r=z6e(t.fs.mkdir),n=z6e(t.fs.stat);if(J6e&&t.fs.mkdir===TR.mkdir){let s=pp.resolve(e);return await r(s,{mode:t.mode,recursive:!0}),s}let i=async s=>{try{return await r(s,t.mode),s}catch(a){if(a.code==="EPERM")throw a;if(a.code==="ENOENT"){if(pp.dirname(s)===s)throw e8e(s);if(a.message.includes("null bytes"))throw a;return await i(pp.dirname(s)),i(s)}try{if(!(await n(s)).isDirectory())throw new Error("The path is not a directory")}catch{throw a}return s}};return i(pp.resolve(e))};uK.exports=cRr;uK.exports.sync=(e,t)=>{if(Q6e(e),t=Z6e(t),J6e&&t.fs.mkdirSync===TR.mkdirSync){let n=pp.resolve(e);return TR.mkdirSync(n,{mode:t.mode,recursive:!0}),n}let r=n=>{try{t.fs.mkdirSync(n,t.mode);}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(pp.dirname(n)===n)throw e8e(n);if(i.message.includes("null bytes"))throw i;return r(pp.dirname(n)),r(n)}try{if(!t.fs.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}return n};return r(pp.resolve(e))};});var i8e=chunkTKGT252T_js.c((xxn,Uo)=>{function r8e(e,t){for(var r=e.toString();r.length-1?i:s,o=km(t.getHours()),u=km(t.getMinutes()),l=km(t.getSeconds()),c=r8e(t.getMilliseconds(),3),p=pRr(t.getTimezoneOffset()),h=e.replace(/dd/g,r).replace(/MM/g,n).replace(/y{1,4}/g,a).replace(/hh/g,o).replace(/mm/g,u).replace(/ss/g,l).replace(/SSS/g,c).replace(/O/g,p);return h}function Fm(e,t,r,n){e["set"+(n?"":"UTC")+t](r);}function fRr(e,t,r){var n=e.indexOf("O")<0,i=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(c,p){Fm(c,"FullYear",p,n);}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(c,p){Fm(c,"Month",p-1,n);}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(c,p){Fm(c,"Date",p,n);}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(c,p){Fm(c,"Hours",p,n);}},{pattern:/mm/,regexp:"\\d\\d",fn:function(c,p){Fm(c,"Minutes",p,n);}},{pattern:/ss/,regexp:"\\d\\d",fn:function(c,p){Fm(c,"Seconds",p,n);}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(c,p){Fm(c,"Milliseconds",p,n);}},{pattern:/O/,regexp:"[+-]\\d{1,2}:?\\d{2}?|Z",fn:function(c,p){p==="Z"?p=0:p=p.replace(":","");var h=Math.abs(p),f=(p>0?-1:1)*(h%100+Math.floor(h/100)*60);c.setUTCMinutes(c.getUTCMinutes()+f);}}],s=i.reduce(function(c,p){return p.pattern.test(c.regexp)?(p.index=c.regexp.match(p.pattern).index,c.regexp=c.regexp.replace(p.pattern,"("+p.regexp+")")):p.index=-1,c},{regexp:e,index:[]}),a=i.filter(function(c){return c.index>-1});a.sort(function(c,p){return c.index-p.index});var o=new RegExp(s.regexp),u=o.exec(t);if(u){var l=r||Uo.exports.now();return a.forEach(function(c,p){c.fn(l,u[p+1]);}),l}throw new Error("String '"+t+"' could not be parsed as '"+e+"'")}function hRr(e,t,r){if(!e)throw new Error("pattern must be supplied");return fRr(e,t,r)}function dRr(){return new Date}Uo.exports=n8e;Uo.exports.asString=n8e;Uo.exports.parse=hRr;Uo.exports.now=dRr;Uo.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS";Uo.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO";Uo.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS";Uo.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS";});var lK=chunkTKGT252T_js.c((Axn,s8e)=>{var Ex=chunkHZVCNUTP_js.ea(),mRr=i8e().asString;function Pu(e){this._factory=e,this._attributes={},this._testCases=[],this._properties=[];}Pu.prototype.name=function(e){return this._attributes.name=e,this};Pu.prototype.time=function(e){return this._attributes.time=e,this};Pu.prototype.timestamp=function(e){return Ex.isDate(e)?this._attributes.timestamp=mRr("yyyy-MM-ddThh:mm:ss",e):this._attributes.timestamp=e,this};Pu.prototype.property=function(e,t){return this._properties.push({name:e,value:t}),this};Pu.prototype.testCase=function(){var e=this._factory.newTestCase();return this._testCases.push(e),e};Pu.prototype.getFailureCount=function(){return this._sumTestCaseCounts(function(e){return e.getFailureCount()})};Pu.prototype.getErrorCount=function(){return this._sumTestCaseCounts(function(e){return e.getErrorCount()})};Pu.prototype.getSkippedCount=function(){return this._sumTestCaseCounts(function(e){return e.getSkippedCount()})};Pu.prototype._sumTestCaseCounts=function(e){var t=Ex.map(this._testCases,e);return Ex.sum(t)};Pu.prototype.build=function(e){this._attributes.tests=this._testCases.length,this._attributes.failures=this.getFailureCount(),this._attributes.errors=this.getErrorCount(),this._attributes.skipped=this.getSkippedCount();var t=e.ele("testsuite",this._attributes);if(this._properties.length){var r=t.ele("properties");Ex.forEach(this._properties,function(n){r.ele("property",{name:n.name,value:n.value});});}Ex.forEach(this._testCases,function(n){n.build(t);});};s8e.exports=Pu;});var cK=chunkTKGT252T_js.c((Pxn,a8e)=>{var yRr=chunkHZVCNUTP_js.ea();function ss(){this._error=!1,this._failure=!1,this._skipped=!1,this._standardOutput=void 0,this._standardError=void 0,this._stacktrace=void 0,this._attributes={},this._errorAttributes={},this._failureAttributes={},this._errorAttachment=void 0,this._errorContent=void 0,this._properties=[];}ss.prototype.className=function(e){return this._attributes.classname=e,this};ss.prototype.name=function(e){return this._attributes.name=e,this};ss.prototype.time=function(e){return this._attributes.time=e,this};ss.prototype.file=function(e){return this._attributes.file=e,this};ss.prototype.failure=function(e,t){return this._failure=!0,e&&(this._failureAttributes.message=e),t&&(this._failureAttributes.type=t),this};ss.prototype.error=function(e,t,r){return this._error=!0,e&&(this._errorAttributes.message=e),t&&(this._errorAttributes.type=t),r&&(this._errorContent=r),this};ss.prototype.stacktrace=function(e){return this._failure=!0,this._stacktrace=e,this};ss.prototype.skipped=function(){return this._skipped=!0,this};ss.prototype.standardOutput=function(e){return this._standardOutput=e,this};ss.prototype.standardError=function(e){return this._standardError=e,this};ss.prototype.getFailureCount=function(){return Number(this._failure)};ss.prototype.getErrorCount=function(){return Number(this._error)};ss.prototype.getSkippedCount=function(){return Number(this._skipped)};ss.prototype.errorAttachment=function(e){return this._errorAttachment=e,this};ss.prototype.property=function(e,t){return this._properties.push({name:e,value:t}),this};ss.prototype.build=function(e){var t=e.ele("testcase",this._attributes);if(this._properties.length){var r=t.ele("properties");yRr.forEach(this._properties,function(a){r.ele("property",{name:a.name,value:a.value});});}if(this._failure){var n=t.ele("failure",this._failureAttributes);this._stacktrace&&n.cdata(this._stacktrace);}if(this._error){var i=t.ele("error",this._errorAttributes);this._errorContent&&i.cdata(this._errorContent);}this._skipped&&t.ele("skipped"),this._standardOutput&&t.ele("system-out").cdata(this._standardOutput);var s;this._standardError&&(s=t.ele("system-err").cdata(this._standardError),this._errorAttachment&&s.txt("[[ATTACHMENT|"+this._errorAttachment+"]]"));};a8e.exports=ss;});var u8e=chunkTKGT252T_js.c((Ixn,o8e)=>{var gRr=chunkHZVCNUTP_js.ea(),SRr=H6e(),TRr=chunkTKGT252T_js.a("path"),ERr=t8e(),bRr=chunkTKGT252T_js.a("fs");lK();cK();function $T(e){this._factory=e,this._testSuitesAndCases=[];}$T.prototype.writeTo=function(e){ERr.sync(TRr.dirname(e)),bRr.writeFileSync(e,this.build(),"utf8");};$T.prototype.build=function(){var e=SRr.create("testsuites",{encoding:"UTF-8",invalidCharReplacement:""});return gRr.forEach(this._testSuitesAndCases,function(t){t.build(e);}),e.end({pretty:!0})};$T.prototype.testSuite=function(){var e=this._factory.newTestSuite();return this._testSuitesAndCases.push(e),e};$T.prototype.testCase=function(){var e=this._factory.newTestCase();return this._testSuitesAndCases.push(e),e};$T.prototype.newBuilder=function(){return this._factory.newBuilder()};o8e.exports=$T;});var c8e=chunkTKGT252T_js.c((Oxn,l8e)=>{var vRr=u8e(),_Rr=lK(),xRr=cK();function ER(){}ER.prototype.newBuilder=function(){return new vRr(this)};ER.prototype.newTestSuite=function(){return new _Rr(this)};ER.prototype.newTestCase=function(){return new xRr(this)};l8e.exports=ER;});var f8e=chunkTKGT252T_js.c((Dxn,p8e)=>{var ARr=c8e();p8e.exports=new ARr().newBuilder();});var fp=chunkTKGT252T_js.c((jxn,S8e)=>{var y8e=["nodebuffer","arraybuffer","fragments"],g8e=typeof Blob<"u";g8e&&y8e.push("blob");S8e.exports={BINARY_TYPES:y8e,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:g8e,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}};});var bx=chunkTKGT252T_js.c((Uxn,bR)=>{var{EMPTY_BUFFER:DRr}=fp(),hK=Buffer[Symbol.species];function NRr(e,t){if(e.length===0)return DRr;if(e.length===1)return e[0];let r=Buffer.allocUnsafe(t),n=0;for(let i=0;i{var b8e=Symbol("kDone"),mK=Symbol("kRun"),yK=class{constructor(t){this[b8e]=()=>{this.pending--,this[mK]();},this.concurrency=t||1/0,this.jobs=[],this.pending=0;}add(t){this.jobs.push(t),this[mK]();}[mK](){if(this.pending!==this.concurrency&&this.jobs.length){let t=this.jobs.shift();this.pending++,t(this[b8e]);}}};v8e.exports=yK;});var _x=chunkTKGT252T_js.c((Vxn,C8e)=>{var vx=chunkTKGT252T_js.a("zlib"),x8e=bx(),MRr=_8e(),{kStatusCode:A8e}=fp(),LRr=Buffer[Symbol.species],kRr=Buffer.from([0,0,255,255]),_R=Symbol("permessage-deflate"),hp=Symbol("total-length"),KT=Symbol("callback"),Ah=Symbol("buffers"),YT=Symbol("error"),vR,gK=class{constructor(t,r,n){if(this._maxPayload=n|0,this._options=t||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!r,this._deflate=null,this._inflate=null,this.params=null,!vR){let i=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;vR=new MRr(i);}}static get extensionName(){return "permessage-deflate"}offer(){let t={};return this._options.serverNoContextTakeover&&(t.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(t.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(t.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?t.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(t.client_max_window_bits=!0),t}accept(t){return t=this.normalizeParams(t),this.params=this._isServer?this.acceptAsServer(t):this.acceptAsClient(t),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let t=this._deflate[KT];this._deflate.close(),this._deflate=null,t&&t(new Error("The deflate stream was closed while data was being processed"));}}acceptAsServer(t){let r=this._options,n=t.find(i=>!(r.serverNoContextTakeover===!1&&i.server_no_context_takeover||i.server_max_window_bits&&(r.serverMaxWindowBits===!1||typeof r.serverMaxWindowBits=="number"&&r.serverMaxWindowBits>i.server_max_window_bits)||typeof r.clientMaxWindowBits=="number"&&!i.client_max_window_bits));if(!n)throw new Error("None of the extension offers can be accepted");return r.serverNoContextTakeover&&(n.server_no_context_takeover=!0),r.clientNoContextTakeover&&(n.client_no_context_takeover=!0),typeof r.serverMaxWindowBits=="number"&&(n.server_max_window_bits=r.serverMaxWindowBits),typeof r.clientMaxWindowBits=="number"?n.client_max_window_bits=r.clientMaxWindowBits:(n.client_max_window_bits===!0||r.clientMaxWindowBits===!1)&&delete n.client_max_window_bits,n}acceptAsClient(t){let r=t[0];if(this._options.clientNoContextTakeover===!1&&r.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!r.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(r.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&r.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return r}normalizeParams(t){return t.forEach(r=>{Object.keys(r).forEach(n=>{let i=r[n];if(i.length>1)throw new Error(`Parameter "${n}" must have only a single value`);if(i=i[0],n==="client_max_window_bits"){if(i!==!0){let s=+i;if(!Number.isInteger(s)||s<8||s>15)throw new TypeError(`Invalid value for parameter "${n}": ${i}`);i=s;}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${n}": ${i}`)}else if(n==="server_max_window_bits"){let s=+i;if(!Number.isInteger(s)||s<8||s>15)throw new TypeError(`Invalid value for parameter "${n}": ${i}`);i=s;}else if(n==="client_no_context_takeover"||n==="server_no_context_takeover"){if(i!==!0)throw new TypeError(`Invalid value for parameter "${n}": ${i}`)}else throw new Error(`Unknown parameter "${n}"`);r[n]=i;});}),t}decompress(t,r,n){vR.add(i=>{this._decompress(t,r,(s,a)=>{i(),n(s,a);});});}compress(t,r,n){vR.add(i=>{this._compress(t,r,(s,a)=>{i(),n(s,a);});});}_decompress(t,r,n){let i=this._isServer?"client":"server";if(!this._inflate){let s=`${i}_max_window_bits`,a=typeof this.params[s]!="number"?vx.Z_DEFAULT_WINDOWBITS:this.params[s];this._inflate=vx.createInflateRaw({...this._options.zlibInflateOptions,windowBits:a}),this._inflate[_R]=this,this._inflate[hp]=0,this._inflate[Ah]=[],this._inflate.on("error",BRr),this._inflate.on("data",P8e);}this._inflate[KT]=n,this._inflate.write(t),r&&this._inflate.write(kRr),this._inflate.flush(()=>{let s=this._inflate[YT];if(s){this._inflate.close(),this._inflate=null,n(s);return}let a=x8e.concat(this._inflate[Ah],this._inflate[hp]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[hp]=0,this._inflate[Ah]=[],r&&this.params[`${i}_no_context_takeover`]&&this._inflate.reset()),n(null,a);});}_compress(t,r,n){let i=this._isServer?"server":"client";if(!this._deflate){let s=`${i}_max_window_bits`,a=typeof this.params[s]!="number"?vx.Z_DEFAULT_WINDOWBITS:this.params[s];this._deflate=vx.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:a}),this._deflate[hp]=0,this._deflate[Ah]=[],this._deflate.on("data",FRr);}this._deflate[KT]=n,this._deflate.write(t),this._deflate.flush(vx.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let s=x8e.concat(this._deflate[Ah],this._deflate[hp]);r&&(s=new LRr(s.buffer,s.byteOffset,s.length-4)),this._deflate[KT]=null,this._deflate[hp]=0,this._deflate[Ah]=[],r&&this.params[`${i}_no_context_takeover`]&&this._deflate.reset(),n(null,s);});}};C8e.exports=gK;function FRr(e){this[Ah].push(e),this[hp]+=e.length;}function P8e(e){if(this[hp]+=e.length,this[_R]._maxPayload<1||this[hp]<=this[_R]._maxPayload){this[Ah].push(e);return}this[YT]=new RangeError("Max payload size exceeded"),this[YT].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[YT][A8e]=1009,this.removeListener("data",P8e),this.reset();}function BRr(e){if(this[_R]._inflate=null,this[YT]){this[KT](this[YT]);return}e[A8e]=1007,this[KT](e);}});var WT=chunkTKGT252T_js.c((Hxn,xR)=>{var{isUtf8:w8e}=chunkTKGT252T_js.a("buffer"),{hasBlob:jRr}=fp(),URr=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function qRr(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}function SK(e){let t=e.length,r=0;for(;r=t||(e[r+1]&192)!==128||(e[r+2]&192)!==128||e[r]===224&&(e[r+1]&224)===128||e[r]===237&&(e[r+1]&224)===160)return !1;r+=3;}else if((e[r]&248)===240){if(r+3>=t||(e[r+1]&192)!==128||(e[r+2]&192)!==128||(e[r+3]&192)!==128||e[r]===240&&(e[r+1]&240)===128||e[r]===244&&e[r+1]>143||e[r]>244)return !1;r+=4;}else return !1;return !0}function VRr(e){return jRr&&typeof e=="object"&&typeof e.arrayBuffer=="function"&&typeof e.type=="string"&&typeof e.stream=="function"&&(e[Symbol.toStringTag]==="Blob"||e[Symbol.toStringTag]==="File")}xR.exports={isBlob:VRr,isValidStatusCode:qRr,isValidUTF8:SK,tokenChars:URr};if(w8e)xR.exports.isValidUTF8=function(e){return e.length<24?SK(e):w8e(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let e=chunkTKGT252T_js.a("utf-8-validate");xR.exports.isValidUTF8=function(t){return t.length<32?SK(t):e(t)};}catch{}});var _K=chunkTKGT252T_js.c((Gxn,L8e)=>{var{Writable:HRr}=chunkTKGT252T_js.a("stream"),I8e=_x(),{BINARY_TYPES:GRr,EMPTY_BUFFER:O8e,kStatusCode:$Rr,kWebSocket:KRr}=fp(),{concat:TK,toArrayBuffer:YRr,unmask:WRr}=bx(),{isValidStatusCode:XRr,isValidUTF8:D8e}=WT(),AR=Buffer[Symbol.species],qo=0,N8e=1,R8e=2,M8e=3,EK=4,bK=5,PR=6,vK=class extends HRr{constructor(t={}){super(),this._allowSynchronousEvents=t.allowSynchronousEvents!==void 0?t.allowSynchronousEvents:!0,this._binaryType=t.binaryType||GRr[0],this._extensions=t.extensions||{},this._isServer=!!t.isServer,this._maxPayload=t.maxPayload|0,this._skipUTF8Validation=!!t.skipUTF8Validation,this[KRr]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=qo;}_write(t,r,n){if(this._opcode===8&&this._state==qo)return n();this._bufferedBytes+=t.length,this._buffers.push(t),this.startLoop(n);}consume(t){if(this._bufferedBytes-=t,t===this._buffers[0].length)return this._buffers.shift();if(t=n.length?r.set(this._buffers.shift(),i):(r.set(new Uint8Array(n.buffer,n.byteOffset,t),i),this._buffers[0]=new AR(n.buffer,n.byteOffset+t,n.length-t)),t-=n.length;}while(t>0);return r}startLoop(t){this._loop=!0;do switch(this._state){case qo:this.getInfo(t);break;case N8e:this.getPayloadLength16(t);break;case R8e:this.getPayloadLength64(t);break;case M8e:this.getMask();break;case EK:this.getData(t);break;case bK:case PR:this._loop=!1;return}while(this._loop);this._errored||t();}getInfo(t){if(this._bufferedBytes<2){this._loop=!1;return}let r=this.consume(2);if(r[0]&48){let i=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");t(i);return}let n=(r[0]&64)===64;if(n&&!this._extensions[I8e.extensionName]){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");t(i);return}if(this._fin=(r[0]&128)===128,this._opcode=r[0]&15,this._payloadLength=r[1]&127,this._opcode===0){if(n){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");t(i);return}if(!this._fragmented){let i=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");t(i);return}this._opcode=this._fragmented;}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let i=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");t(i);return}this._compressed=n;}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let i=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");t(i);return}if(n){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");t(i);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let i=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");t(i);return}}else {let i=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");t(i);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(r[1]&128)===128,this._isServer){if(!this._masked){let i=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");t(i);return}}else if(this._masked){let i=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");t(i);return}this._payloadLength===126?this._state=N8e:this._payloadLength===127?this._state=R8e:this.haveLength(t);}getPayloadLength16(t){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(t);}getPayloadLength64(t){if(this._bufferedBytes<8){this._loop=!1;return}let r=this.consume(8),n=r.readUInt32BE(0);if(n>Math.pow(2,53-32)-1){let i=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");t(i);return}this._payloadLength=n*Math.pow(2,32)+r.readUInt32BE(4),this.haveLength(t);}haveLength(t){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let r=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");t(r);return}this._masked?this._state=M8e:this._state=EK;}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=EK;}getData(t){let r=O8e;if(this._payloadLength){if(this._bufferedBytes7){this.controlMessage(r,t);return}if(this._compressed){this._state=bK,this.decompress(r,t);return}r.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(r)),this.dataMessage(t);}decompress(t,r){this._extensions[I8e.extensionName].decompress(t,this._fin,(i,s)=>{if(i)return r(i);if(s.length){if(this._messageLength+=s.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let a=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");r(a);return}this._fragments.push(s);}this.dataMessage(r),this._state===qo&&this.startLoop(r);});}dataMessage(t){if(!this._fin){this._state=qo;return}let r=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let i;this._binaryType==="nodebuffer"?i=TK(n,r):this._binaryType==="arraybuffer"?i=YRr(TK(n,r)):this._binaryType==="blob"?i=new Blob(n):i=n,this._allowSynchronousEvents?(this.emit("message",i,!0),this._state=qo):(this._state=PR,setImmediate(()=>{this.emit("message",i,!0),this._state=qo,this.startLoop(t);}));}else {let i=TK(n,r);if(!this._skipUTF8Validation&&!D8e(i)){let s=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");t(s);return}this._state===bK||this._allowSynchronousEvents?(this.emit("message",i,!1),this._state=qo):(this._state=PR,setImmediate(()=>{this.emit("message",i,!1),this._state=qo,this.startLoop(t);}));}}controlMessage(t,r){if(this._opcode===8){if(t.length===0)this._loop=!1,this.emit("conclude",1005,O8e),this.end();else {let n=t.readUInt16BE(0);if(!XRr(n)){let s=this.createError(RangeError,`invalid status code ${n}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");r(s);return}let i=new AR(t.buffer,t.byteOffset+2,t.length-2);if(!this._skipUTF8Validation&&!D8e(i)){let s=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");r(s);return}this._loop=!1,this.emit("conclude",n,i),this.end();}this._state=qo;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",t),this._state=qo):(this._state=PR,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",t),this._state=qo,this.startLoop(r);}));}createError(t,r,n,i,s){this._loop=!1,this._errored=!0;let a=new t(n?`Invalid WebSocket frame: ${r}`:r);return Error.captureStackTrace(a,this.createError),a.code=s,a[$Rr]=i,a}};L8e.exports=vK;});var PK=chunkTKGT252T_js.c((Kxn,B8e)=>{chunkTKGT252T_js.a("stream");var {randomFillSync:zRr}=chunkTKGT252T_js.a("crypto"),k8e=_x(),{EMPTY_BUFFER:JRr,kWebSocket:QRr,NOOP:ZRr}=fp(),{isBlob:XT,isValidStatusCode:eMr}=WT(),{mask:F8e,toBuffer:Bm}=bx(),Vo=Symbol("kByteLength"),tMr=Buffer.alloc(4),CR=8*1024,jm,zT=CR,Cu=0,rMr=1,nMr=2,xK=class e{constructor(t,r,n){this._extensions=r||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=t,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=Cu,this.onerror=ZRr,this[QRr]=void 0;}static frame(t,r){let n,i=!1,s=2,a=!1;r.mask&&(n=r.maskBuffer||tMr,r.generateMask?r.generateMask(n):(zT===CR&&(jm===void 0&&(jm=Buffer.alloc(CR)),zRr(jm,0,CR),zT=0),n[0]=jm[zT++],n[1]=jm[zT++],n[2]=jm[zT++],n[3]=jm[zT++]),a=(n[0]|n[1]|n[2]|n[3])===0,s=6);let o;typeof t=="string"?(!r.mask||a)&&r[Vo]!==void 0?o=r[Vo]:(t=Buffer.from(t),o=t.length):(o=t.length,i=r.mask&&r.readOnly&&!a);let u=o;o>=65536?(s+=8,u=127):o>125&&(s+=2,u=126);let l=Buffer.allocUnsafe(i?o+s:s);return l[0]=r.fin?r.opcode|128:r.opcode,r.rsv1&&(l[0]|=64),l[1]=u,u===126?l.writeUInt16BE(o,2):u===127&&(l[2]=l[3]=0,l.writeUIntBE(o,4,6)),r.mask?(l[1]|=128,l[s-4]=n[0],l[s-3]=n[1],l[s-2]=n[2],l[s-1]=n[3],a?[l,t]:i?(F8e(t,n,l,s,o),[l]):(F8e(t,n,t,0,o),[l,t])):[l,t]}close(t,r,n,i){let s;if(t===void 0)s=JRr;else {if(typeof t!="number"||!eMr(t))throw new TypeError("First argument must be a valid error code number");if(r===void 0||!r.length)s=Buffer.allocUnsafe(2),s.writeUInt16BE(t,0);else {let o=Buffer.byteLength(r);if(o>123)throw new RangeError("The message must not be greater than 123 bytes");s=Buffer.allocUnsafe(2+o),s.writeUInt16BE(t,0),typeof r=="string"?s.write(r,2):s.set(r,2);}}let a={[Vo]:s.length,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state!==Cu?this.enqueue([this.dispatch,s,!1,a,i]):this.sendFrame(e.frame(s,a),i);}ping(t,r,n){let i,s;if(typeof t=="string"?(i=Buffer.byteLength(t),s=!1):XT(t)?(i=t.size,s=!1):(t=Bm(t),i=t.length,s=Bm.readOnly),i>125)throw new RangeError("The data size must not be greater than 125 bytes");let a={[Vo]:i,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:9,readOnly:s,rsv1:!1};XT(t)?this._state!==Cu?this.enqueue([this.getBlobData,t,!1,a,n]):this.getBlobData(t,!1,a,n):this._state!==Cu?this.enqueue([this.dispatch,t,!1,a,n]):this.sendFrame(e.frame(t,a),n);}pong(t,r,n){let i,s;if(typeof t=="string"?(i=Buffer.byteLength(t),s=!1):XT(t)?(i=t.size,s=!1):(t=Bm(t),i=t.length,s=Bm.readOnly),i>125)throw new RangeError("The data size must not be greater than 125 bytes");let a={[Vo]:i,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:10,readOnly:s,rsv1:!1};XT(t)?this._state!==Cu?this.enqueue([this.getBlobData,t,!1,a,n]):this.getBlobData(t,!1,a,n):this._state!==Cu?this.enqueue([this.dispatch,t,!1,a,n]):this.sendFrame(e.frame(t,a),n);}send(t,r,n){let i=this._extensions[k8e.extensionName],s=r.binary?2:1,a=r.compress,o,u;typeof t=="string"?(o=Buffer.byteLength(t),u=!1):XT(t)?(o=t.size,u=!1):(t=Bm(t),o=t.length,u=Bm.readOnly),this._firstFragment?(this._firstFragment=!1,a&&i&&i.params[i._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(a=o>=i._threshold),this._compress=a):(a=!1,s=0),r.fin&&(this._firstFragment=!0);let l={[Vo]:o,fin:r.fin,generateMask:this._generateMask,mask:r.mask,maskBuffer:this._maskBuffer,opcode:s,readOnly:u,rsv1:a};XT(t)?this._state!==Cu?this.enqueue([this.getBlobData,t,this._compress,l,n]):this.getBlobData(t,this._compress,l,n):this._state!==Cu?this.enqueue([this.dispatch,t,this._compress,l,n]):this.dispatch(t,this._compress,l,n);}getBlobData(t,r,n,i){this._bufferedBytes+=n[Vo],this._state=nMr,t.arrayBuffer().then(s=>{if(this._socket.destroyed){let o=new Error("The socket was closed while the blob was being read");process.nextTick(AK,this,o,i);return}this._bufferedBytes-=n[Vo];let a=Bm(s);r?this.dispatch(a,r,n,i):(this._state=Cu,this.sendFrame(e.frame(a,n),i),this.dequeue());}).catch(s=>{process.nextTick(iMr,this,s,i);});}dispatch(t,r,n,i){if(!r){this.sendFrame(e.frame(t,n),i);return}let s=this._extensions[k8e.extensionName];this._bufferedBytes+=n[Vo],this._state=rMr,s.compress(t,n.fin,(a,o)=>{if(this._socket.destroyed){let u=new Error("The socket was closed while data was being compressed");AK(this,u,i);return}this._bufferedBytes-=n[Vo],this._state=Cu,n.readOnly=!1,this.sendFrame(e.frame(o,n),i),this.dequeue();});}dequeue(){for(;this._state===Cu&&this._queue.length;){let t=this._queue.shift();this._bufferedBytes-=t[3][Vo],Reflect.apply(t[0],this,t.slice(1));}}enqueue(t){this._bufferedBytes+=t[3][Vo],this._queue.push(t);}sendFrame(t,r){t.length===2?(this._socket.cork(),this._socket.write(t[0]),this._socket.write(t[1],r),this._socket.uncork()):this._socket.write(t[0],r);}};B8e.exports=xK;function AK(e,t,r){typeof r=="function"&&r(t);for(let n=0;n{var{kForOnEventAttribute:xx,kListener:CK}=fp(),j8e=Symbol("kCode"),U8e=Symbol("kData"),q8e=Symbol("kError"),V8e=Symbol("kMessage"),H8e=Symbol("kReason"),JT=Symbol("kTarget"),G8e=Symbol("kType"),$8e=Symbol("kWasClean"),dp=class{constructor(t){this[JT]=null,this[G8e]=t;}get target(){return this[JT]}get type(){return this[G8e]}};Object.defineProperty(dp.prototype,"target",{enumerable:!0});Object.defineProperty(dp.prototype,"type",{enumerable:!0});var Um=class extends dp{constructor(t,r={}){super(t),this[j8e]=r.code===void 0?0:r.code,this[H8e]=r.reason===void 0?"":r.reason,this[$8e]=r.wasClean===void 0?!1:r.wasClean;}get code(){return this[j8e]}get reason(){return this[H8e]}get wasClean(){return this[$8e]}};Object.defineProperty(Um.prototype,"code",{enumerable:!0});Object.defineProperty(Um.prototype,"reason",{enumerable:!0});Object.defineProperty(Um.prototype,"wasClean",{enumerable:!0});var QT=class extends dp{constructor(t,r={}){super(t),this[q8e]=r.error===void 0?null:r.error,this[V8e]=r.message===void 0?"":r.message;}get error(){return this[q8e]}get message(){return this[V8e]}};Object.defineProperty(QT.prototype,"error",{enumerable:!0});Object.defineProperty(QT.prototype,"message",{enumerable:!0});var Ax=class extends dp{constructor(t,r={}){super(t),this[U8e]=r.data===void 0?null:r.data;}get data(){return this[U8e]}};Object.defineProperty(Ax.prototype,"data",{enumerable:!0});var sMr={addEventListener(e,t,r={}){for(let i of this.listeners(e))if(!r[xx]&&i[CK]===t&&!i[xx])return;let n;if(e==="message")n=function(s,a){let o=new Ax("message",{data:a?s:s.toString()});o[JT]=this,wR(t,this,o);};else if(e==="close")n=function(s,a){let o=new Um("close",{code:s,reason:a.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});o[JT]=this,wR(t,this,o);};else if(e==="error")n=function(s){let a=new QT("error",{error:s,message:s.message});a[JT]=this,wR(t,this,a);};else if(e==="open")n=function(){let s=new dp("open");s[JT]=this,wR(t,this,s);};else return;n[xx]=!!r[xx],n[CK]=t,r.once?this.once(e,n):this.on(e,n);},removeEventListener(e,t){for(let r of this.listeners(e))if(r[CK]===t&&!r[xx]){this.removeListener(e,r);break}}};K8e.exports={CloseEvent:Um,ErrorEvent:QT,Event:dp,EventTarget:sMr,MessageEvent:Ax};function wR(e,t,r){typeof e=="object"&&e.handleEvent?e.handleEvent.call(e,r):e.call(t,r);}});var wK=chunkTKGT252T_js.c((Wxn,W8e)=>{var{tokenChars:Px}=WT();function Ml(e,t,r){e[t]===void 0?e[t]=[r]:e[t].push(r);}function aMr(e){let t=Object.create(null),r=Object.create(null),n=!1,i=!1,s=!1,a,o,u=-1,l=-1,c=-1,p=0;for(;p{let r=e[t];return Array.isArray(r)||(r=[r]),r.map(n=>[t].concat(Object.keys(n).map(i=>{let s=n[i];return Array.isArray(s)||(s=[s]),s.map(a=>a===!0?i:`${i}=${a}`).join("; ")})).join("; ")).join(", ")}).join(", ")}W8e.exports={format:oMr,parse:aMr};});var NR=chunkTKGT252T_js.c((Jxn,a9e)=>{var uMr=chunkTKGT252T_js.a("events"),lMr=chunkTKGT252T_js.a("https"),cMr=chunkTKGT252T_js.a("http"),J8e=chunkTKGT252T_js.a("net"),pMr=chunkTKGT252T_js.a("tls"),{randomBytes:fMr,createHash:hMr}=chunkTKGT252T_js.a("crypto");chunkTKGT252T_js.a("stream");var {URL:IK}=chunkTKGT252T_js.a("url"),Ph=_x(),dMr=_K(),mMr=PK(),{isBlob:yMr}=WT(),{BINARY_TYPES:X8e,EMPTY_BUFFER:IR,GUID:gMr,kForOnEventAttribute:OK,kListener:SMr,kStatusCode:TMr,kWebSocket:$i,NOOP:Q8e}=fp(),{EventTarget:{addEventListener:EMr,removeEventListener:bMr}}=Y8e(),{format:vMr,parse:_Mr}=wK(),{toBuffer:xMr}=bx(),AMr=30*1e3,Z8e=Symbol("kAborted"),DK=[8,13],mp=["CONNECTING","OPEN","CLOSING","CLOSED"],PMr=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,Bn=class e extends uMr{constructor(t,r,n){super(),this._binaryType=X8e[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=IR,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,t!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,r===void 0?r=[]:Array.isArray(r)||(typeof r=="object"&&r!==null?(n=r,r=[]):r=[r]),e9e(this,t,r,n)):(this._autoPong=n.autoPong,this._isServer=!0);}get binaryType(){return this._binaryType}set binaryType(t){X8e.includes(t)&&(this._binaryType=t,this._receiver&&(this._receiver._binaryType=t));}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(t,r,n){let i=new dMr({allowSynchronousEvents:n.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation}),s=new mMr(t,this._extensions,n.generateMask);this._receiver=i,this._sender=s,this._socket=t,i[$i]=this,s[$i]=this,t[$i]=this,i.on("conclude",IMr),i.on("drain",OMr),i.on("error",DMr),i.on("message",NMr),i.on("ping",RMr),i.on("pong",MMr),s.onerror=LMr,t.setTimeout&&t.setTimeout(0),t.setNoDelay&&t.setNoDelay(),r.length>0&&t.unshift(r),t.on("close",n9e),t.on("data",DR),t.on("end",i9e),t.on("error",s9e),this._readyState=e.OPEN,this.emit("open");}emitClose(){if(!this._socket){this._readyState=e.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[Ph.extensionName]&&this._extensions[Ph.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=e.CLOSED,this.emit("close",this._closeCode,this._closeMessage);}close(t,r){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){let n="WebSocket was closed before the connection was established";Wa(this,this._req,n);return}if(this.readyState===e.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=e.CLOSING,this._sender.close(t,r,!this._isServer,n=>{n||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end());}),r9e(this);}}pause(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!0,this._socket.pause());}ping(t,r,n){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"?(n=t,t=r=void 0):typeof r=="function"&&(n=r,r=void 0),typeof t=="number"&&(t=t.toString()),this.readyState!==e.OPEN){NK(this,t,n);return}r===void 0&&(r=!this._isServer),this._sender.ping(t||IR,r,n);}pong(t,r,n){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"?(n=t,t=r=void 0):typeof r=="function"&&(n=r,r=void 0),typeof t=="number"&&(t=t.toString()),this.readyState!==e.OPEN){NK(this,t,n);return}r===void 0&&(r=!this._isServer),this._sender.pong(t||IR,r,n);}resume(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume());}send(t,r,n){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof r=="function"&&(n=r,r={}),typeof t=="number"&&(t=t.toString()),this.readyState!==e.OPEN){NK(this,t,n);return}let i={binary:typeof t!="string",mask:!this._isServer,compress:!0,fin:!0,...r};this._extensions[Ph.extensionName]||(i.compress=!1),this._sender.send(t||IR,i,n);}terminate(){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){let t="WebSocket was closed before the connection was established";Wa(this,this._req,t);return}this._socket&&(this._readyState=e.CLOSING,this._socket.destroy());}}};Object.defineProperty(Bn,"CONNECTING",{enumerable:!0,value:mp.indexOf("CONNECTING")});Object.defineProperty(Bn.prototype,"CONNECTING",{enumerable:!0,value:mp.indexOf("CONNECTING")});Object.defineProperty(Bn,"OPEN",{enumerable:!0,value:mp.indexOf("OPEN")});Object.defineProperty(Bn.prototype,"OPEN",{enumerable:!0,value:mp.indexOf("OPEN")});Object.defineProperty(Bn,"CLOSING",{enumerable:!0,value:mp.indexOf("CLOSING")});Object.defineProperty(Bn.prototype,"CLOSING",{enumerable:!0,value:mp.indexOf("CLOSING")});Object.defineProperty(Bn,"CLOSED",{enumerable:!0,value:mp.indexOf("CLOSED")});Object.defineProperty(Bn.prototype,"CLOSED",{enumerable:!0,value:mp.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(e=>{Object.defineProperty(Bn.prototype,e,{enumerable:!0});});["open","error","close","message"].forEach(e=>{Object.defineProperty(Bn.prototype,`on${e}`,{enumerable:!0,get(){for(let t of this.listeners(e))if(t[OK])return t[SMr];return null},set(t){for(let r of this.listeners(e))if(r[OK]){this.removeListener(e,r);break}typeof t=="function"&&this.addEventListener(e,t,{[OK]:!0});}});});Bn.prototype.addEventListener=EMr;Bn.prototype.removeEventListener=bMr;a9e.exports=Bn;function e9e(e,t,r,n){let i={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:DK[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...n,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(e._autoPong=i.autoPong,!DK.includes(i.protocolVersion))throw new RangeError(`Unsupported protocol version: ${i.protocolVersion} (supported versions: ${DK.join(", ")})`);let s;if(t instanceof IK)s=t;else try{s=new IK(t);}catch{throw new SyntaxError(`Invalid URL: ${t}`)}s.protocol==="http:"?s.protocol="ws:":s.protocol==="https:"&&(s.protocol="wss:"),e._url=s.href;let a=s.protocol==="wss:",o=s.protocol==="ws+unix:",u;if(s.protocol!=="ws:"&&!a&&!o?u=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:o&&!s.pathname?u="The URL's pathname is empty":s.hash&&(u="The URL contains a fragment identifier"),u){let m=new SyntaxError(u);if(e._redirects===0)throw m;OR(e,m);return}let l=a?443:80,c=fMr(16).toString("base64"),p=a?lMr.request:cMr.request,h=new Set,f;if(i.createConnection=i.createConnection||(a?wMr:CMr),i.defaultPort=i.defaultPort||l,i.port=s.port||l,i.host=s.hostname.startsWith("[")?s.hostname.slice(1,-1):s.hostname,i.headers={...i.headers,"Sec-WebSocket-Version":i.protocolVersion,"Sec-WebSocket-Key":c,Connection:"Upgrade",Upgrade:"websocket"},i.path=s.pathname+s.search,i.timeout=i.handshakeTimeout,i.perMessageDeflate&&(f=new Ph(i.perMessageDeflate!==!0?i.perMessageDeflate:{},!1,i.maxPayload),i.headers["Sec-WebSocket-Extensions"]=vMr({[Ph.extensionName]:f.offer()})),r.length){for(let m of r){if(typeof m!="string"||!PMr.test(m)||h.has(m))throw new SyntaxError("An invalid or duplicated subprotocol was specified");h.add(m);}i.headers["Sec-WebSocket-Protocol"]=r.join(",");}if(i.origin&&(i.protocolVersion<13?i.headers["Sec-WebSocket-Origin"]=i.origin:i.headers.Origin=i.origin),(s.username||s.password)&&(i.auth=`${s.username}:${s.password}`),o){let m=i.path.split(":");i.socketPath=m[0],i.path=m[1];}let d;if(i.followRedirects){if(e._redirects===0){e._originalIpc=o,e._originalSecure=a,e._originalHostOrSocketPath=o?i.socketPath:s.host;let m=n&&n.headers;if(n={...n,headers:{}},m)for(let[y,g]of Object.entries(m))n.headers[y.toLowerCase()]=g;}else if(e.listenerCount("redirect")===0){let m=o?e._originalIpc?i.socketPath===e._originalHostOrSocketPath:!1:e._originalIpc?!1:s.host===e._originalHostOrSocketPath;(!m||e._originalSecure&&!a)&&(delete i.headers.authorization,delete i.headers.cookie,m||delete i.headers.host,i.auth=void 0);}i.auth&&!n.headers.authorization&&(n.headers.authorization="Basic "+Buffer.from(i.auth).toString("base64")),d=e._req=p(i),e._redirects&&e.emit("redirect",e.url,d);}else d=e._req=p(i);i.timeout&&d.on("timeout",()=>{Wa(e,d,"Opening handshake has timed out");}),d.on("error",m=>{d===null||d[Z8e]||(d=e._req=null,OR(e,m));}),d.on("response",m=>{let y=m.headers.location,g=m.statusCode;if(y&&i.followRedirects&&g>=300&&g<400){if(++e._redirects>i.maxRedirects){Wa(e,d,"Maximum redirects exceeded");return}d.abort();let v;try{v=new IK(y,t);}catch{let S=new SyntaxError(`Invalid URL: ${y}`);OR(e,S);return}e9e(e,v,r,n);}else e.emit("unexpected-response",d,m)||Wa(e,d,`Unexpected server response: ${m.statusCode}`);}),d.on("upgrade",(m,y,g)=>{if(e.emit("upgrade",m),e.readyState!==Bn.CONNECTING)return;d=e._req=null;let v=m.headers.upgrade;if(v===void 0||v.toLowerCase()!=="websocket"){Wa(e,y,"Invalid Upgrade header");return}let E=hMr("sha1").update(c+gMr).digest("base64");if(m.headers["sec-websocket-accept"]!==E){Wa(e,y,"Invalid Sec-WebSocket-Accept header");return}let S=m.headers["sec-websocket-protocol"],x;if(S!==void 0?h.size?h.has(S)||(x="Server sent an invalid subprotocol"):x="Server sent a subprotocol but none was requested":h.size&&(x="Server sent no subprotocol"),x){Wa(e,y,x);return}S&&(e._protocol=S);let b=m.headers["sec-websocket-extensions"];if(b!==void 0){if(!f){Wa(e,y,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let A;try{A=_Mr(b);}catch{Wa(e,y,"Invalid Sec-WebSocket-Extensions header");return}let D=Object.keys(A);if(D.length!==1||D[0]!==Ph.extensionName){Wa(e,y,"Server indicated an extension that was not requested");return}try{f.accept(A[Ph.extensionName]);}catch{Wa(e,y,"Invalid Sec-WebSocket-Extensions header");return}e._extensions[Ph.extensionName]=f;}e.setSocket(y,g,{allowSynchronousEvents:i.allowSynchronousEvents,generateMask:i.generateMask,maxPayload:i.maxPayload,skipUTF8Validation:i.skipUTF8Validation});}),i.finishRequest?i.finishRequest(d,e):d.end();}function OR(e,t){e._readyState=Bn.CLOSING,e._errorEmitted=!0,e.emit("error",t),e.emitClose();}function CMr(e){return e.path=e.socketPath,J8e.connect(e)}function wMr(e){return e.path=void 0,!e.servername&&e.servername!==""&&(e.servername=J8e.isIP(e.host)?"":e.host),pMr.connect(e)}function Wa(e,t,r){e._readyState=Bn.CLOSING;let n=new Error(r);Error.captureStackTrace(n,Wa),t.setHeader?(t[Z8e]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(OR,e,n)):(t.destroy(n),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)));}function NK(e,t,r){if(t){let n=yMr(t)?t.size:xMr(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n;}if(r){let n=new Error(`WebSocket is not open: readyState ${e.readyState} (${mp[e.readyState]})`);process.nextTick(r,n);}}function IMr(e,t){let r=this[$i];r._closeFrameReceived=!0,r._closeMessage=t,r._closeCode=e,r._socket[$i]!==void 0&&(r._socket.removeListener("data",DR),process.nextTick(t9e,r._socket),e===1005?r.close():r.close(e,t));}function OMr(){let e=this[$i];e.isPaused||e._socket.resume();}function DMr(e){let t=this[$i];t._socket[$i]!==void 0&&(t._socket.removeListener("data",DR),process.nextTick(t9e,t._socket),t.close(e[TMr])),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e));}function z8e(){this[$i].emitClose();}function NMr(e,t){this[$i].emit("message",e,t);}function RMr(e){let t=this[$i];t._autoPong&&t.pong(e,!this._isServer,Q8e),t.emit("ping",e);}function MMr(e){this[$i].emit("pong",e);}function t9e(e){e.resume();}function LMr(e){let t=this[$i];t.readyState!==Bn.CLOSED&&(t.readyState===Bn.OPEN&&(t._readyState=Bn.CLOSING,r9e(t)),this._socket.end(),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e)));}function r9e(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),AMr);}function n9e(){let e=this[$i];this.removeListener("close",n9e),this.removeListener("data",DR),this.removeListener("end",i9e),e._readyState=Bn.CLOSING;let t;!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&(t=e._socket.read())!==null&&e._receiver.write(t),e._receiver.end(),this[$i]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",z8e),e._receiver.on("finish",z8e));}function DR(e){this[$i]._receiver.write(e)||this.pause();}function i9e(){let e=this[$i];e._readyState=Bn.CLOSING,e._receiver.end(),this.end();}function s9e(){let e=this[$i];this.removeListener("error",s9e),this.on("error",Q8e),e&&(e._readyState=Bn.CLOSING,this.destroy());}});var c9e=chunkTKGT252T_js.c((Zxn,l9e)=>{NR();var {Duplex:kMr}=chunkTKGT252T_js.a("stream");function o9e(e){e.emit("close");}function FMr(){!this.destroyed&&this._writableState.finished&&this.destroy();}function u9e(e){this.removeListener("error",u9e),this.destroy(),this.listenerCount("error")===0&&this.emit("error",e);}function BMr(e,t){let r=!0,n=new kMr({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",function(s,a){let o=!a&&n._readableState.objectMode?s.toString():s;n.push(o)||e.pause();}),e.once("error",function(s){n.destroyed||(r=!1,n.destroy(s));}),e.once("close",function(){n.destroyed||n.push(null);}),n._destroy=function(i,s){if(e.readyState===e.CLOSED){s(i),process.nextTick(o9e,n);return}let a=!1;e.once("error",function(u){a=!0,s(u);}),e.once("close",function(){a||s(i),process.nextTick(o9e,n);}),r&&e.terminate();},n._final=function(i){if(e.readyState===e.CONNECTING){e.once("open",function(){n._final(i);});return}e._socket!==null&&(e._socket._writableState.finished?(i(),n._readableState.endEmitted&&n.destroy()):(e._socket.once("finish",function(){i();}),e.close()));},n._read=function(){e.isPaused&&e.resume();},n._write=function(i,s,a){if(e.readyState===e.CONNECTING){e.once("open",function(){n._write(i,s,a);});return}e.send(i,a);},n.on("end",FMr),n.on("error",u9e),n}l9e.exports=BMr;});var f9e=chunkTKGT252T_js.c((eAn,p9e)=>{var{tokenChars:jMr}=WT();function UMr(e){let t=new Set,r=-1,n=-1,i=0;for(i;i{var qMr=chunkTKGT252T_js.a("events"),RR=chunkTKGT252T_js.a("http");chunkTKGT252T_js.a("stream");var {createHash:VMr}=chunkTKGT252T_js.a("crypto"),h9e=wK(),qm=_x(),HMr=f9e(),GMr=NR(),{GUID:$Mr,kWebSocket:KMr}=fp(),YMr=/^[+/0-9A-Za-z]{22}==$/,d9e=0,m9e=1,g9e=2,RK=class extends qMr{constructor(t,r){if(super(),t={allowSynchronousEvents:!0,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:GMr,...t},t.port==null&&!t.server&&!t.noServer||t.port!=null&&(t.server||t.noServer)||t.server&&t.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(t.port!=null?(this._server=RR.createServer((n,i)=>{let s=RR.STATUS_CODES[426];i.writeHead(426,{"Content-Length":s.length,"Content-Type":"text/plain"}),i.end(s);}),this._server.listen(t.port,t.host,t.backlog,r)):t.server&&(this._server=t.server),this._server){let n=this.emit.bind(this,"connection");this._removeListeners=WMr(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(i,s,a)=>{this.handleUpgrade(i,s,a,n);}});}t.perMessageDeflate===!0&&(t.perMessageDeflate={}),t.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=t,this._state=d9e;}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(t){if(this._state===g9e){t&&this.once("close",()=>{t(new Error("The server is not running"));}),process.nextTick(Cx,this);return}if(t&&this.once("close",t),this._state!==m9e)if(this._state=m9e,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick(Cx,this):process.nextTick(Cx,this);else {let r=this._server;this._removeListeners(),this._removeListeners=this._server=null,r.close(()=>{Cx(this);});}}shouldHandle(t){if(this.options.path){let r=t.url.indexOf("?");if((r!==-1?t.url.slice(0,r):t.url)!==this.options.path)return !1}return !0}handleUpgrade(t,r,n,i){r.on("error",y9e);let s=t.headers["sec-websocket-key"],a=t.headers.upgrade,o=+t.headers["sec-websocket-version"];if(t.method!=="GET"){Vm(this,t,r,405,"Invalid HTTP method");return}if(a===void 0||a.toLowerCase()!=="websocket"){Vm(this,t,r,400,"Invalid Upgrade header");return}if(s===void 0||!YMr.test(s)){Vm(this,t,r,400,"Missing or invalid Sec-WebSocket-Key header");return}if(o!==8&&o!==13){Vm(this,t,r,400,"Missing or invalid Sec-WebSocket-Version header");return}if(!this.shouldHandle(t)){wx(r,400);return}let u=t.headers["sec-websocket-protocol"],l=new Set;if(u!==void 0)try{l=HMr.parse(u);}catch{Vm(this,t,r,400,"Invalid Sec-WebSocket-Protocol header");return}let c=t.headers["sec-websocket-extensions"],p={};if(this.options.perMessageDeflate&&c!==void 0){let h=new qm(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let f=h9e.parse(c);f[qm.extensionName]&&(h.accept(f[qm.extensionName]),p[qm.extensionName]=h);}catch{Vm(this,t,r,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let h={origin:t.headers[`${o===8?"sec-websocket-origin":"origin"}`],secure:!!(t.socket.authorized||t.socket.encrypted),req:t};if(this.options.verifyClient.length===2){this.options.verifyClient(h,(f,d,m,y)=>{if(!f)return wx(r,d||401,m,y);this.completeUpgrade(p,s,l,t,r,n,i);});return}if(!this.options.verifyClient(h))return wx(r,401)}this.completeUpgrade(p,s,l,t,r,n,i);}completeUpgrade(t,r,n,i,s,a,o){if(!s.readable||!s.writable)return s.destroy();if(s[KMr])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>d9e)return wx(s,503);let l=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${VMr("sha1").update(r+$Mr).digest("base64")}`],c=new this.options.WebSocket(null,void 0,this.options);if(n.size){let p=this.options.handleProtocols?this.options.handleProtocols(n,i):n.values().next().value;p&&(l.push(`Sec-WebSocket-Protocol: ${p}`),c._protocol=p);}if(t[qm.extensionName]){let p=t[qm.extensionName].params,h=h9e.format({[qm.extensionName]:[p]});l.push(`Sec-WebSocket-Extensions: ${h}`),c._extensions=t;}this.emit("headers",l,i),s.write(l.concat(`\r `).join(`\r `)),s.removeListener("error",y9e),c.setSocket(s,a,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(c),c.on("close",()=>{this.clients.delete(c),this._shouldEmitClose&&!this.clients.size&&process.nextTick(Cx,this);})),o(c,i);}};S9e.exports=RK;function WMr(e,t){for(let r of Object.keys(t))e.on(r,t[r]);return function(){for(let n of Object.keys(t))e.removeListener(n,t[n]);}}function Cx(e){e._state=g9e,e.emit("close");}function y9e(){this.destroy();}function wx(e,t,r,n){r=r||RR.STATUS_CODES[t],n={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(r),...n},e.once("finish",e.destroy),e.end(`HTTP/1.1 ${t} ${RR.STATUS_CODES[t]}\r `+Object.keys(n).map(i=>`${i}: ${n[i]}`).join(`\r `)+`\r \r `+r);}function Vm(e,t,r,n,i){if(e.listenerCount("wsClientError")){let s=new Error(i);Error.captureStackTrace(s,Vm),e.emit("wsClientError",s,r,t);}else wx(r,n,i);}});JR()("zen-observable",{Observable:tW()});var rW=Object.prototype.toString;function oE(e){switch(rW.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return !0;default:return Mu(e,Error)}}function Xx(e,t){return rW.call(e)===`[object ${t}]`}function aM(e){return Xx(e,"ErrorEvent")}function Ru(e){return Xx(e,"String")}function Km(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function zx(e){return e===null||Km(e)||typeof e!="object"&&typeof e!="function"}function Ca(e){return Xx(e,"Object")}function oM(e){return typeof Event<"u"&&Mu(e,Event)}function uM(e){return typeof Element<"u"&&Mu(e,Element)}function lM(e){return Xx(e,"RegExp")}function aa(e){return !!(e&&e.then&&typeof e.then=="function")}function cM(e){return Ca(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Mu(e,t){try{return e instanceof t}catch{return !1}}function Jx(e){return !!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function za(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function pM(e,t){let r=e,n=r.length;if(n<=150)return r;t>n&&(t=n);let i=Math.max(t-60,0);i<5&&(i=0);let s=Math.min(i+140,n);return s>n-5&&(s=n),s===n&&(i=Math.max(s-140,0)),r=r.slice(i,s),i>0&&(r=`'{snip} ${r}`),snW(e,n,r))}function hM(e,t,r=250,n,i,s,a){if(!s.exception||!s.exception.values||!a||!Mu(a.originalException,Error))return;let o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=dVe(fM(e,t,i,a.originalException,n,s.exception.values,o,0),r));}function fM(e,t,r,n,i,s,a,o){if(s.length>=r+1)return s;let u=[...s];if(Mu(n[i],Error)){iW(a,o);let l=e(t,n[i]),c=u.length;sW(l,i,c,o),u=fM(e,t,r,n[i],i,[l,...u],l,c);}return Array.isArray(n.errors)&&n.errors.forEach((l,c)=>{if(Mu(l,Error)){iW(a,o);let p=e(t,l),h=u.length;sW(p,`errors[${c}]`,h,o),u=fM(e,t,r,l,i,[p,...u],p,h);}}),u}function iW(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t};}function sW(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n};}function dVe(e,t){return e.map(r=>(r.value&&(r.value=za(r.value,t)),r))}function Qx(e){let t=[],r=n=>{n.forEach(i=>{Array.isArray(i)?r(i):t.push(i);});};return r(e),t}var ri="8.30.0";var Bt=globalThis;function vp(e,t,r){let n=r||Bt,i=n.__SENTRY__=n.__SENTRY__||{},s=i[ri]=i[ri]||{};return s[e]||(s[e]=t())}var mVe=Bt,yVe=80;function aW(e,t={}){if(!e)return "";try{let r=e,n=5,i=[],s=0,a=0,o=" > ",u=o.length,l,c=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||yVe;for(;r&&s++1&&a+i.length*u+l.length>=p));)i.push(l),a+=l.length,r=r.parentNode;return i.reverse().join(o)}catch{return ""}}function gVe(e,t){let r=e,n=[];if(!r||!r.tagName)return "";if(mVe.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());let i=t&&t.length?t.filter(a=>r.getAttribute(a)).map(a=>[a,r.getAttribute(a)]):null;if(i&&i.length)i.forEach(a=>{n.push(`[${a[0]}="${a[1]}"]`);});else {r.id&&n.push(`#${r.id}`);let a=r.className;if(a&&Ru(a)){let o=a.split(/\s+/);for(let u of o)n.push(`.${u}`);}}let s=["aria-label","type","name","title","alt"];for(let a of s){let o=r.getAttribute(a);o&&n.push(`[${a}="${o}"]`);}return n.join("")}var Lu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var SVe="Sentry Logger ",uE=["debug","info","warn","error","log","assert","trace"],Ym={};function Ki(e){if(!("console"in Bt))return e();let t=Bt.console,r={},n=Object.keys(Ym);n.forEach(i=>{let s=Ym[i];r[i]=t[i],t[i]=s;});try{return e()}finally{n.forEach(i=>{t[i]=r[i];});}}function TVe(){let e=!1,t={enable:()=>{e=!0;},disable:()=>{e=!1;},isEnabled:()=>e};return Lu?uE.forEach(r=>{t[r]=(...n)=>{e&&Ki(()=>{Bt.console[r](`${SVe}[${r}]:`,...n);});};}):uE.forEach(r=>{t[r]=()=>{};}),t}var ce=vp("logger",TVe);var EVe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function bVe(e){return e==="http"||e==="https"}function Yo(e,t=!1){let{host:r,path:n,pass:i,port:s,projectId:a,protocol:o,publicKey:u}=e;return `${o}://${u}${t&&i?`:${i}`:""}@${r}${s?`:${s}`:""}/${n&&`${n}/`}${a}`}function oW(e){let t=EVe.exec(e);if(!t){Ki(()=>{console.error(`Invalid Sentry Dsn: ${e}`);});return}let[r,n,i="",s="",a="",o=""]=t.slice(1),u="",l=o,c=l.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),l=c.pop()),l){let p=l.match(/^\d+/);p&&(l=p[0]);}return uW({host:s,pass:i,path:u,projectId:l,port:a,protocol:r,publicKey:n})}function uW(e){return {protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function vVe(e){if(!Lu)return !0;let{port:t,projectId:r,protocol:n}=e;return ["protocol","publicKey","host","projectId"].find(a=>e[a]?!1:(ce.error(`Invalid Sentry Dsn: ${a} missing`),!0))?!1:r.match(/^\d+$/)?bVe(n)?t&&isNaN(parseInt(t,10))?(ce.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ce.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(ce.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function Zx(e){let t=typeof e=="string"?oW(e):uW(e);if(!(!t||!vVe(t)))return t}var us=class extends Error{constructor(t,r="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r;}};function mM(e,t,r){if(!(t in e))return;let n=e[t],i=r(n);typeof i=="function"&&pW(i,n),e[t]=i;}function ni(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0});}catch{Lu&&ce.log(`Failed to add non-enumerable property "${t}" to object`,e);}}function pW(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,ni(e,"__sentry_original__",t);}catch{}}function yM(e){return e.__sentry_original__}function gM(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function eA(e){if(oE(e))return {message:e.message,name:e.name,stack:e.stack,...cW(e)};if(oM(e)){let t={type:e.type,target:lW(e.target),currentTarget:lW(e.currentTarget),...cW(e)};return typeof CustomEvent<"u"&&Mu(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function lW(e){try{return uM(e)?aW(e):Object.prototype.toString.call(e)}catch{return ""}}function cW(e){if(typeof e=="object"&&e!==null){let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}else return {}}function SM(e,t=40){let r=Object.keys(eA(e));r.sort();let n=r[0];if(!n)return "[object has no keys]";if(n.length>=t)return za(n,t);for(let i=r.length;i>0;i--){let s=r.slice(0,i).join(", ");if(!(s.length>t))return i===r.length?s:za(s,t)}return ""}function Zt(e){return dM(e,new Map)}function dM(e,t){if(_Ve(e)){let r=t.get(e);if(r!==void 0)return r;let n={};t.set(e,n);for(let i of Object.keys(e))typeof e[i]<"u"&&(n[i]=dM(e[i],t));return n}if(Array.isArray(e)){let r=t.get(e);if(r!==void 0)return r;let n=[];return t.set(e,n),e.forEach(i=>{n.push(dM(i,t));}),n}return e}function _Ve(e){if(!Ca(e))return !1;try{let t=Object.getPrototypeOf(e).constructor.name;return !t||t==="Object"}catch{return !0}}var rA="?",fW=/\(error: (.*)\)/,hW=/captureMessage|captureException/;function nA(...e){let t=e.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return (r,n=0,i=0)=>{let s=[],a=r.split(` `);for(let o=n;o1024)continue;let l=fW.test(u)?u.replace(fW,"$1"):u;if(!l.match(/\S*Error: /)){for(let c of t){let p=c(l);if(p){s.push(p);break}}if(s.length>=50+i)break}}return dW(s.slice(i))}}function EM(e){return Array.isArray(e)?nA(...e):e}function dW(e){if(!e.length)return [];let t=Array.from(e);return /sentryWrapped/.test(tA(t).function||"")&&t.pop(),t.reverse(),hW.test(tA(t).function||"")&&(t.pop(),hW.test(tA(t).function||"")&&t.pop()),t.slice(0,50).map(r=>({...r,filename:r.filename||tA(t).filename,function:r.function||rA}))}function tA(e){return e[e.length-1]||{}}var TM="";function lE(e){try{return !e||typeof e!="function"?TM:e.name||TM}catch{return TM}}var iA={},mW={};function Wm(e,t){iA[e]=iA[e]||[],iA[e].push(t);}function Xm(e,t){mW[e]||(t(),mW[e]=!0);}function zm(e,t){let r=e&&iA[e];if(r)for(let n of r)try{n(t);}catch(i){Lu&&ce.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${lE(n)} Error:`,i);}}function bM(e){let t="console";Wm(t,e),Xm(t,xVe);}function xVe(){"console"in Bt&&uE.forEach(function(e){e in Bt.console&&mM(Bt.console,e,function(t){return Ym[e]=t,function(...r){zm("console",{args:r,level:e});let i=Ym[e];i&&i.apply(Bt.console,r);}});});}var yW=1e3;function ku(){return Date.now()/yW}function AVe(){let{performance:e}=Bt;if(!e||!e.now)return ku;let t=Date.now()-e.now(),r=e.timeOrigin==null?t:e.timeOrigin;return ()=>(r+e.now())/yW}var Fu=AVe();(()=>{let{performance:e}=Bt;if(!e||!e.now){return}let t=3600*1e3,r=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+r-n):t,s=iMath.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>{let n=new Uint8Array(1);return t.getRandomValues(n),n[0]});}catch{}return ([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function SW(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Fl(e){let{message:t,event_id:r}=e;if(t)return t;let n=SW(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function AM(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type=r||"Error");}function pE(e,t){let r=SW(e);if(!r)return;let n={type:"generic",handled:!0},i=r.mechanism;if(r.mechanism={...n,...i,...t},t&&"data"in t){let s={...i&&i.data,...t.data};r.mechanism.data=s;}}var IVe=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function xM(e){return parseInt(e||"",10)}function PM(e){let t=e.match(IVe)||[],r=xM(t[1]),n=xM(t[2]),i=xM(t[3]);return {buildmetadata:t[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(i)?void 0:i,prerelease:t[4]}}function oA(e){if(e&&e.__sentry_captured__)return !0;try{ni(e,"__sentry_captured__",!0);}catch{}return !1}function fE(e){return Array.isArray(e)?e:[e]}function wa(e,t=100,r=1/0){try{return CM("",e,t,r)}catch(n){return {ERROR:`**non-serializable** (${n})`}}}function uA(e,t=3,r=100*1024){let n=wa(e,t);return RVe(n)>r?uA(e,t-1,r):n}function CM(e,t,r=1/0,n=1/0,i=gW()){let[s,a]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t))return t;let o=OVe(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;let u=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:r;if(u===0)return o.replace("object ","");if(s(t))return "[Circular ~]";let l=t;if(l&&typeof l.toJSON=="function")try{let f=l.toJSON();return CM("",f,u-1,n,i)}catch{}let c=Array.isArray(t)?[]:{},p=0,h=eA(t);for(let f in h){if(!Object.prototype.hasOwnProperty.call(h,f))continue;if(p>=n){c[f]="[MaxProperties ~]";break}let d=h[f];c[f]=CM(f,d,u-1,n,i),p++;}return a(t),c}function OVe(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return "[Domain]";if(e==="domainEmitter")return "[DomainEmitter]";if(typeof global<"u"&&t===global)return "[Global]";if(typeof window<"u"&&t===window)return "[Window]";if(typeof document<"u"&&t===document)return "[Document]";if(Jx(t))return "[VueViewModel]";if(cM(t))return "[SyntheticEvent]";if(typeof t=="number"&&t!==t)return "[NaN]";if(typeof t=="function")return `[Function: ${lE(t)}]`;if(typeof t=="symbol")return `[${String(t)}]`;if(typeof t=="bigint")return `[BigInt: ${String(t)}]`;let r=DVe(t);return /^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return `**non-serializable** (${r})`}}function DVe(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function NVe(e){return ~-encodeURI(e).split(/%..|./).length}function RVe(e){return NVe(JSON.stringify(e))}var MVe=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function LVe(e){let t=e.length>1024?`${e.slice(-1024)}`:e,r=MVe.exec(t);return r?r.slice(1):[]}function wM(e){let t=LVe(e),r=t[0]||"",n=t[1];return !r&&!n?".":(n&&(n=n.slice(0,n.length-1)),r+n)}var Bl;(function(e){e[e.PENDING=0]="PENDING";let r=1;e[e.RESOLVED=r]="RESOLVED";let n=2;e[e.REJECTED=n]="REJECTED";})(Bl||(Bl={}));function Ja(e){return new Wo(t=>{t(e);})}function hE(e){return new Wo((t,r)=>{r(e);})}var Wo=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=Bl.PENDING,this._handlers=[];try{t(this._resolve,this._reject);}catch(r){this._reject(r);}}then(t,r){return new e((n,i)=>{this._handlers.push([!1,s=>{if(!t)n(s);else try{n(t(s));}catch(a){i(a);}},s=>{if(!r)i(s);else try{n(r(s));}catch(a){i(a);}}]),this._executeHandlers();})}catch(t){return this.then(r=>r,t)}finally(t){return new e((r,n)=>{let i,s;return this.then(a=>{s=!1,i=a,t&&t();},a=>{s=!0,i=a,t&&t();}).then(()=>{if(s){n(i);return}r(i);})})}__init(){this._resolve=t=>{this._setResult(Bl.RESOLVED,t);};}__init2(){this._reject=t=>{this._setResult(Bl.REJECTED,t);};}__init3(){this._setResult=(t,r)=>{if(this._state===Bl.PENDING){if(aa(r)){r.then(this._resolve,this._reject);return}this._state=t,this._value=r,this._executeHandlers();}};}__init4(){this._executeHandlers=()=>{if(this._state===Bl.PENDING)return;let t=this._handlers.slice();this._handlers=[],t.forEach(r=>{r[0]||(this._state===Bl.RESOLVED&&r[1](this._value),this._state===Bl.REJECTED&&r[2](this._value),r[0]=!0);});};}};function IM(e){let t=[];function r(){return e===void 0||t.lengthn(o)).then(null,()=>n(o).then(null,()=>{})),o}function s(a){return new Wo((o,u)=>{let l=t.length;if(!l)return o(!0);let c=setTimeout(()=>{a&&a>0&&o(!1);},a);t.forEach(p=>{Ja(p).then(()=>{--l||(clearTimeout(c),o(!0));},u);});})}return {$:t,add:i,drain:s}}function TW(e){let t={},r=0;for(;r{let s=e[i],a=Array.isArray(s)?s.join(";"):s;return i==="Forwarded"?kVe(a):a&&a.split(",").map(o=>o.trim())}).reduce((i,s)=>s?i.concat(s):i,[]).find(i=>i!==null&&FVe(i))||null}function kVe(e){if(!e)return null;for(let t of e.split(";"))if(t.startsWith("for="))return t.slice(4);return null}function FVe(e){return /(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)/.test(e)}var BVe={ip:!1,request:!0,transaction:!0,user:!0},bW=["cookies","data","headers","method","query_string","url"],vW=["id","username","email"];function DM(e,t={}){let r=e.method&&e.method.toUpperCase(),n="",i="url";t.customRoute||e.route?(n=t.customRoute||`${e.baseUrl||""}${e.route&&e.route.path}`,i="route"):(e.originalUrl||e.url)&&(n=xp(e.originalUrl||e.url||""));let s="";return t.method&&r&&(s+=r),t.method&&t.path&&(s+=" "),t.path&&n&&(s+=n),[s,i]}function jVe(e,t){switch(t){case"path":return DM(e,{path:!0})[0];case"handler":return e.route&&e.route.stack&&e.route.stack[0]&&e.route.stack[0].name||"";case"methodPath":default:{let r=e._reconstructedRoute?e._reconstructedRoute:void 0;return DM(e,{path:!0,method:!0,customRoute:r})[0]}}}function UVe(e,t){let r={};return (Array.isArray(t)?t:vW).forEach(i=>{e&&i in e&&(r[i]=e[i]);}),r}function _W(e,t={}){let{include:r=bW}=t,n={},i=e.headers||{},s=e.method,a=i.host||e.hostname||e.host||"",o=e.protocol==="https"||e.socket&&e.socket.encrypted?"https":"http",u=e.originalUrl||e.url||"",l=u.startsWith(o)?u:`${o}://${a}${u}`;return r.forEach(c=>{switch(c){case"headers":{n.headers=i,r.includes("cookies")||delete n.headers.cookie,r.includes("ip")||OM.forEach(p=>{delete n.headers[p];});break}case"method":{n.method=s;break}case"url":{n.url=l;break}case"cookies":{n.cookies=e.cookies||i.cookie&&TW(i.cookie)||{};break}case"query_string":{n.query_string=qVe(e);break}case"data":{if(s==="GET"||s==="HEAD")break;e.body!==void 0&&(n.data=Ru(e.body)?e.body:JSON.stringify(wa(e.body)));break}default:({}).hasOwnProperty.call(e,c)&&(n[c]=e[c]);}}),n}function NM(e,t,r){let n={...BVe,...r&&r.include};if(n.request){let i=Array.isArray(n.request)?[...n.request]:[...bW];n.ip&&i.push("ip");let s=_W(t,{include:i});e.request={...e.request,...s};}if(n.user){let i=t.user&&Ca(t.user)?UVe(t.user,n.user):{};Object.keys(i).length&&(e.user={...e.user,...i});}if(n.ip){let i=t.headers&&EW(t.headers)||t.ip||t.socket&&t.socket.remoteAddress;i&&(e.user={...e.user,ip_address:i});}return n.transaction&&!e.transaction&&e.type==="transaction"&&(e.transaction=jVe(t,n.transaction)),e}function qVe(e){let t=e.originalUrl||e.url||"";if(t){t.startsWith("/")&&(t=`http://dogs.are.great${t}`);try{let r=e.query||new URL(t).search.slice(1);return r.length?r:void 0}catch{return}}}var xW=["fatal","error","warning","log","info","debug"];function RM(e){return e==="warn"?"warning":xW.includes(e)?e:"log"}function PW(e,t=!1){return !(t||e&&!e.startsWith("/")&&!e.match(/^[A-Z]:/)&&!e.startsWith(".")&&!e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&e!==void 0&&!e.includes("node_modules/")}function CW(e){let t=/^\s*[-]{4,}$/,r=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return n=>{let i=n.match(r);if(i){let s,a,o,u,l;if(i[1]){o=i[1];let h=o.lastIndexOf(".");if(o[h-1]==="."&&h--,h>0){s=o.slice(0,h),a=o.slice(h+1);let f=s.indexOf(".Module");f>0&&(o=o.slice(f+1),s=s.slice(0,f));}u=void 0;}a&&(u=s,l=a),a===""&&(l=void 0,o=void 0),o===void 0&&(l=l||rA,o=u?`${u}.${l}`:l);let c=i[2]&&i[2].startsWith("file://")?i[2].slice(7):i[2],p=i[5]==="native";return c&&c.match(/\/[A-Z]:/)&&(c=c.slice(1)),!c&&i[5]&&!p&&(c=i[5]),{filename:c,module:e?e(c):void 0,function:o,lineno:AW(i[3]),colno:AW(i[4]),in_app:PW(c||"",p)}}if(n.match(t))return {filename:n}}}function MM(e){return [90,CW(e)]}function AW(e){return parseInt(e||"",10)||void 0}var dE="sentry-",IW=/^sentry-/,OW=8192;function Pp(e){let t=cA(e);if(!t)return;let r=Object.entries(t).reduce((n,[i,s])=>{if(i.match(IW)){let a=i.slice(dE.length);n[a]=s;}return n},{});if(Object.keys(r).length>0)return r}function lA(e){if(!e)return;let t=Object.entries(e).reduce((r,[n,i])=>(i&&(r[`${dE}${n}`]=i),r),{});return VVe(t)}function cA(e){if(!(!e||!Ru(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,r)=>{let n=wW(r);return Object.entries(n).forEach(([i,s])=>{t[i]=s;}),t},{}):wW(e)}function wW(e){return e.split(",").map(t=>t.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((t,[r,n])=>(r&&n&&(t[r]=n),t),{})}function VVe(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[r,n],i)=>{let s=`${encodeURIComponent(r)}=${encodeURIComponent(n)}`,a=i===0?s:`${t},${s}`;return a.length>OW?(Lu&&ce.warn(`Not adding key: ${r} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):a},"")}var DW=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function NW(e){if(!e)return;let t=e.match(DW);if(!t)return;let r;return t[3]==="1"?r=!0:t[3]==="0"&&(r=!1),{traceId:t[1],parentSampled:r,parentSpanId:t[2]}}function Jm(e,t){let r=NW(e),n=Pp(t),{traceId:i,parentSpanId:s,parentSampled:a}=r||{};return r?{traceId:i||Pr(),parentSpanId:s||Pr().substring(16),spanId:Pr().substring(16),sampled:a,dsc:n||{}}:{traceId:i||Pr(),spanId:Pr().substring(16)}}function pA(e=Pr(),t=Pr().substring(16),r){let n="";return r!==void 0&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function Xo(e,t=[]){return [e,t]}function kM(e,t){let[r,n]=e;return [r,[...n,t]]}function fA(e,t){let r=e[1];for(let n of r){let i=n[0].type;if(t(n,i))return !0}return !1}function LM(e){return Bt.__SENTRY__&&Bt.__SENTRY__.encodePolyfill?Bt.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function mE(e){let[t,r]=e,n=JSON.stringify(t);function i(s){typeof n=="string"?n=typeof s=="string"?n+s:[LM(n),s]:n.push(typeof s=="string"?LM(s):s);}for(let s of r){let[a,o]=s;if(i(` ${JSON.stringify(a)} `),typeof o=="string"||o instanceof Uint8Array)i(o);else {let u;try{u=JSON.stringify(o);}catch{u=JSON.stringify(wa(o));}i(u);}}return typeof n=="string"?n:HVe(n)}function HVe(e){let t=e.reduce((i,s)=>i+s.length,0),r=new Uint8Array(t),n=0;for(let i of e)r.set(i,n),n+=i.length;return r}function FM(e){return [{type:"span"},e]}function BM(e){let t=typeof e.data=="string"?LM(e.data):e.data;return [Zt({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}var GVe={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function hA(e){return GVe[e]}function dA(e){if(!e||!e.sdk)return;let{name:t,version:r}=e.sdk;return {name:t,version:r}}function jM(e,t,r,n){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return {event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:Yo(n)},...i&&{trace:Zt({...i})}}}function UM(e,t,r){let n=[{type:"client_report"},{timestamp:r||ku(),discarded_events:e}];return Xo(t?{dsn:t}:{},[n])}function RW(e,t=Date.now()){let r=parseInt(`${e}`,10);if(!isNaN(r))return r*1e3;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}function MW(e,t){return e[t]||e.all||0}function qM(e,t,r=Date.now()){return MW(e,t)>r}function VM(e,{statusCode:t,headers:r},n=Date.now()){let i={...e},s=r&&r["x-sentry-rate-limits"],a=r&&r["retry-after"];if(s)for(let o of s.trim().split(",")){let[u,l,,,c]=o.split(":",5),p=parseInt(u,10),h=(isNaN(p)?60:p)*1e3;if(!l)i.all=n+h;else for(let f of l.split(";"))f==="metric_bucket"?(!c||c.split(";").includes("custom"))&&(i[f]=n+h):i[f]=n+h;}else a?i.all=n+RW(a,n):t===429&&(i.all=n+60*1e3);return i}function HM(e,t){return e(t.stack||"",1)}function mA(e,t){let r={type:t.name||t.constructor.name,value:t.message},n=HM(e,t);return n.length&&(r.stacktrace={frames:n}),r}function $Ve(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}}function KVe(e){if("name"in e&&typeof e.name=="string"){let n=`'${e.name}' captured as exception`;return "message"in e&&typeof e.message=="string"&&(n+=` with message '${e.message}'`),n}else if("message"in e&&typeof e.message=="string")return e.message;let t=SM(e);if(aM(e))return `Event \`ErrorEvent\` captured as exception with message \`${e.message}\``;let r=YVe(e);return `${r&&r!=="Object"?`'${r}'`:"Object"} captured as exception with keys: ${t}`}function YVe(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function WVe(e,t,r,n){if(oE(r))return [r,void 0];if(t.synthetic=!0,Ca(r)){let s=e&&e.getOptions().normalizeDepth,a={__serialized__:uA(r,s)},o=$Ve(r);if(o)return [o,a];let u=KVe(r),l=n&&n.syntheticException||new Error(u);return l.message=u,[l,a]}let i=n&&n.syntheticException||new Error(r);return i.message=`${r}`,[i,void 0]}function GM(e,t,r,n){let s=n&&n.data&&n.data.mechanism||{handled:!0,type:"generic"},[a,o]=WVe(e,s,r,n),u={exception:{values:[mA(t,a)]}};return o&&(u.extra=o),AM(u,void 0,void 0),pE(u,s),{...u,event_id:n&&n.event_id}}function $M(e,t,r="info",n,i){let s={event_id:n&&n.event_id,level:r};if(i&&n&&n.syntheticException){let a=HM(e,n.syntheticException);a.length&&(s.exception={values:[{value:t,stacktrace:{frames:a}}]});}if(Km(t)){let{__sentry_template_string__:a,__sentry_template_values__:o}=t;return s.logentry={message:a,params:o},s}return s.message=t,s}var Bu=class{constructor(t){this._maxSize=t,this._cache=new Map;}get size(){return this._cache.size}get(t){let r=this._cache.get(t);if(r!==void 0)return this._cache.delete(t),this._cache.set(t,r),r}set(t,r){this._cache.size>=this._maxSize&&this._cache.delete(this._cache.keys().next().value),this._cache.set(t,r);}remove(t){let r=this._cache.get(t);return r&&this._cache.delete(t),r}clear(){this._cache.clear();}keys(){return Array.from(this._cache.keys())}values(){let t=[];return this._cache.forEach(r=>t.push(r)),t}};function Yi(e,t){return e??t()}function Ye(e){let t,r=e[0],n=1;for(;nr.call(t,...a)),t=void 0);}return r}function yA(){return {traceId:Pr(),spanId:Pr().substring(16)}}var yoe=chunkTKGT252T_js.e(Dse(),1);dn();pt();pt();var Tt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function ro(){return _y(Bt),Bt}function _y(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ri,t[ri]=t[ri]||{}}function Nse(e){let t=Fu(),r={sid:Pr(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Uet(r)};return e&&ql(r,e),r}function ql(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Fu(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Pr()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else {let r=e.timestamp-e.started;e.duration=r>=0?r:0;}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status);}function Rse(e,t){let r={};t?r={status:t}:e.status==="ok"&&(r={status:"exited"}),ql(e,r);}function Uet(e){return Zt({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}var _k="_sentrySpan";function Gh(e,t){t?ni(e,_k,t):delete e[_k];}function Vl(e){return e[_k]}var qet=100,xk=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=yA();}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Gh(t,Vl(this)),t}setClient(t){this._client=t;}setLastEventId(t){this._lastEventId=t;}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t);}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&ql(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,r){return this._tags={...this._tags,[t]:r},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,r){return this._extra={...this._extra,[t]:r},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,r){return r===null?delete this._contexts[t]:this._contexts[t]=r,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let r=typeof t=="function"?t(this):t,[n,i]=r instanceof Na?[r.getScopeData(),r.getRequestSession()]:Ca(r)?[t,t.requestSession]:[],{tags:s,extra:a,user:o,contexts:u,level:l,fingerprint:c=[],propagationContext:p}=n||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...a},this._contexts={...this._contexts,...u},o&&Object.keys(o).length&&(this._user=o),l&&(this._level=l),c.length&&(this._fingerprint=c),p&&(this._propagationContext=p),i&&(this._requestSession=i),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Gh(this,void 0),this._attachments=[],this._propagationContext=yA(),this._notifyScopeListeners(),this}addBreadcrumb(t,r){let n=typeof r=="number"?r:qet;if(n<=0)return this;let i={timestamp:ku(),...t},s=this._breadcrumbs;return s.push(i),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return {breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Vl(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,r){let n=r&&r.event_id?r.event_id:Pr();if(!this._client)return ce.warn("No client configured on scope - will not capture exception!"),n;let i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...r,event_id:n},this),n}captureMessage(t,r,n){let i=n&&n.event_id?n.event_id:Pr();if(!this._client)return ce.warn("No client configured on scope - will not capture message!"),i;let s=new Error(t);return this._client.captureMessage(t,r,{originalException:t,syntheticException:s,...n,event_id:i},this),i}captureEvent(t,r){let n=r&&r.event_id?r.event_id:Pr();return this._client?(this._client.captureEvent(t,{...r,event_id:n},this),n):(ce.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this);}),this._notifyingListeners=!1);}},Na=xk;function xy(){return vp("defaultCurrentScope",()=>new Na)}function Vu(){return vp("defaultIsolationScope",()=>new Na)}var Ak=class{constructor(t,r){let n;t?n=t:n=new Na;let i;r?i=r:i=new Na,this._stack=[{scope:n}],this._isolationScope=i;}withScope(t){let r=this._pushScope(),n;try{n=t(r);}catch(i){throw this._popScope(),i}return aa(n)?n.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Ay(){let e=ro(),t=_y(e);return t.stack=t.stack||new Ak(xy(),Vu())}function Vet(e){return Ay().withScope(e)}function Het(e,t){let r=Ay();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function Mse(e){return Ay().withScope(()=>e(Ay().getIsolationScope()))}function Lse(){return {withIsolationScope:Mse,withScope:Vet,withSetScope:Het,withSetIsolationScope:(e,t)=>Mse(t),getCurrentScope:()=>Ay().getScope(),getIsolationScope:()=>Ay().getIsolationScope()}}function Pk(e){let t=ro(),r=_y(t);r.acs=e;}function Np(e){let t=_y(e);return t.acs?t.acs:Lse()}function Zr(){let e=ro();return Np(e).getCurrentScope()}function Or(){let e=ro();return Np(e).getIsolationScope()}function fP(){return vp("globalScope",()=>new Na)}function Rp(...e){let t=ro(),r=Np(t);if(e.length===2){let[n,i]=e;return n?r.withSetScope(n,i):r.withScope(i)}return r.withScope(e[0])}function Rt(){return Zr().getClient()}var Get="_sentryMetrics";function Hl(e){let t=e[Get];if(!t)return;let r={};for(let[,[n,i]]of t)(r[n]||(r[n]=[])).push(Zt(i));return r}var no="sentry.source",Zo="sentry.sample_rate",yn="sentry.op",gn="sentry.origin";var Ck="sentry.measurement_unit",wk="sentry.measurement_value",Ik="sentry.profile_id",Ok="sentry.exclusive_time",Dk="cache.hit",Nk="cache.key",Rk="cache.item_size";function hP(e){if(e<400&&e>=100)return {code:1};if(e>=400&&e<500)switch(e){case 401:return {code:2,message:"unauthenticated"};case 403:return {code:2,message:"permission_denied"};case 404:return {code:2,message:"not_found"};case 409:return {code:2,message:"already_exists"};case 413:return {code:2,message:"failed_precondition"};case 429:return {code:2,message:"resource_exhausted"};case 499:return {code:2,message:"cancelled"};default:return {code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return {code:2,message:"unimplemented"};case 503:return {code:2,message:"unavailable"};case 504:return {code:2,message:"deadline_exceeded"};default:return {code:2,message:"internal_error"}}return {code:2,message:"unknown_error"}}var mP=0,Lk=1;function Fse(e){let{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:s,status:a,origin:o}=Ht(e);return Zt({parent_span_id:s,span_id:t,trace_id:r,data:n,op:i,status:a,origin:o})}function t0(e){let{spanId:t,traceId:r}=e.spanContext(),{parent_span_id:n}=Ht(e);return Zt({parent_span_id:n,span_id:t,trace_id:r})}function Cs(e){return typeof e=="number"?kse(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?kse(e.getTime()):Fu()}function kse(e){return e>9999999999?e/1e3:e}function Ht(e){if(Yet(e))return e.getSpanJSON();try{let{spanId:t,traceId:r}=e.spanContext();if(Ket(e)){let{attributes:n,startTime:i,name:s,endTime:a,parentSpanId:o,status:u}=e;return Zt({span_id:t,trace_id:r,data:n,description:s,parent_span_id:o,start_timestamp:Cs(i),timestamp:Cs(a)||void 0,status:$h(u),op:n[yn],origin:n[gn],_metrics_summary:Hl(e)})}return {span_id:t,trace_id:r}}catch{return {}}}function Ket(e){let t=e;return !!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Yet(e){return typeof e.getSpanJSON=="function"}function Gl(e){let{traceFlags:t}=e.spanContext();return t===Lk}function $h(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"unknown_error"}var e0="_sentryChildSpans",Mk="_sentryRootSpan";function Py(e,t){let r=e[Mk]||e;ni(t,Mk,r),e[e0]?e[e0].add(t):ni(e,e0,new Set([t]));}function yP(e){let t=new Set;function r(n){if(!t.has(n)&&Gl(n)){t.add(n);let i=n[e0]?Array.from(n[e0]):[];for(let s of i)r(s);}}return r(e),Array.from(t)}function _n(e){return e[Mk]||e}function Kh(){let e=ro(),t=Np(e);return t.getActiveSpan?t.getActiveSpan():Vl(Zr())}var Bse=!1;function jse(){Bse||(Bse=!0,vM(kk),_M(kk));}function kk(){let e=Kh(),t=e&&_n(e);if(t){let r="internal_error";Tt&&ce.log(`[Tracing] Root span: ${r} -> Global error occured`),t.setStatus({code:2,message:r});}}kk.tag="sentry_tracingErrorCallback";var Use="_sentryScope",qse="_sentryIsolationScope";function Yh(e,t,r){e&&(ni(e,qse,r),ni(e,Use,t));}function Lp(e){return {scope:e[Use],isolationScope:e[qse]}}function eu(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return !1;let t=Rt(),r=e||t&&t.getOptions();return !!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}var kp=class{constructor(t={}){this._traceId=t.traceId||Pr(),this._spanId=t.spanId||Pr().substring(16);}spanContext(){return {spanId:this._spanId,traceId:this._traceId,traceFlags:mP}}end(t){}setAttribute(t,r){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return !1}addEvent(t,r,n){return this}addLink(t){return this}addLinks(t){return this}recordException(t,r){}};function Wh(e,t,r=()=>{}){let n;try{n=e();}catch(i){throw t(i),r(),i}return Wet(n,t,r)}function Wet(e,t,r){return aa(e)?e.then(n=>(r(),n),n=>{throw t(n),r(),n}):(r(),e)}var Cy="production";var Vse="_frozenDsc";function Fk(e,t){ni(e,Vse,t);}function Fp(e,t){let r=t.getOptions(),{publicKey:n}=t.getDsn()||{},i=Zt({environment:r.environment||Cy,release:r.release,public_key:n,trace_id:e});return t.emit("createDsc",i),i}function Wi(e){let t=Rt();if(!t)return {};let r=Fp(Ht(e).trace_id||"",t),n=_n(e),i=n[Vse];if(i)return i;let s=n.spanContext().traceState,a=s&&s.get("sentry.dsc"),o=a&&Pp(a);if(o)return o;let u=Ht(n),l=u.data||{},c=l[Zo];c!=null&&(r.sample_rate=`${c}`);let p=l[no],h=u.description;return p!=="url"&&h&&(r.transaction=h),r.sampled=String(Gl(n)),t.emit("createDsc",r,n),r}function r0(e){if(!Tt)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=Ht(e),{spanId:i}=e.spanContext(),s=Gl(e),a=_n(e),o=a===e,u=`[Tracing] Starting ${s?"sampled":"unsampled"} ${o?"root ":""}span`,l=[`op: ${r}`,`name: ${t}`,`ID: ${i}`];if(n&&l.push(`parent ID: ${n}`),!o){let{op:c,description:p}=Ht(a);l.push(`root ID: ${a.spanContext().spanId}`),c&&l.push(`root op: ${c}`),p&&l.push(`root description: ${p}`);}ce.log(`${u} ${l.join(` `)}`);}function n0(e){if(!Tt)return;let{description:t="< unknown name >",op:r="< unknown op >"}=Ht(e),{spanId:n}=e.spanContext(),s=_n(e)===e,a=`[Tracing] Finishing "${r}" ${s?"root ":""}span "${t}" with ID ${n}`;ce.log(a);}function gP(e){if(typeof e=="boolean")return Number(e);let t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){Tt&&ce.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}function i0(e,t){if(!eu(e))return [!1];let r;typeof e.tracesSampler=="function"?r=e.tracesSampler(t):t.parentSampled!==void 0?r=t.parentSampled:typeof e.tracesSampleRate<"u"?r=e.tracesSampleRate:r=1;let n=gP(r);return n===void 0?(Tt&&ce.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):n?Math.random()o(Ht(c)):c=>Ht(c),l=[];for(let c of e){let p=u(c);p&&l.push(FM(p));}return Xo(a,l)}function Xh(e){if(!e||e.length===0)return;let t={};return e.forEach(r=>{let n=r.attributes||{},i=n[Ck],s=n[wk];typeof i=="string"&&typeof s=="number"&&(t[r.name]={value:s,unit:i});}),t}var Kse=1e3,wy=class{constructor(t={}){this._traceId=t.traceId||Pr(),this._spanId=t.spanId||Pr().substring(16),this._startTime=t.startTimestamp||Fu(),this._attributes={},this.setAttributes({[gn]:"manual",[yn]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded();}addLink(t){return this}addLinks(t){return this}recordException(t,r){}spanContext(){let{_spanId:t,_traceId:r,_sampled:n}=this;return {spanId:t,traceId:r,traceFlags:n?Lk:mP}}setAttribute(t,r){return r===void 0?delete this._attributes[t]:this._attributes[t]=r,this}setAttributes(t){return Object.keys(t).forEach(r=>this.setAttribute(r,t[r])),this}updateStartTime(t){this._startTime=Cs(t);}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this}end(t){this._endTime||(this._endTime=Cs(t),n0(this),this._onSpanEnded());}getSpanJSON(){return Zt({data:this._attributes,description:this._name,op:this._attributes[yn],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:$h(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[gn],_metrics_summary:Hl(this),profile_id:this._attributes[Ik],exclusive_time:this._attributes[Ok],measurements:Xh(this._events),is_segment:this._isStandaloneSpan&&_n(this)===this||void 0,segment_id:this._isStandaloneSpan?_n(this).spanContext().spanId:void 0})}isRecording(){return !this._endTime&&!!this._sampled}addEvent(t,r,n){Tt&&ce.log("[Tracing] Adding an event to span:",t);let i=Yse(r)?r:n||Fu(),s=Yse(r)?{}:r||{},a={name:t,time:Cs(i),attributes:s};return this._events.push(a),this}isStandaloneSpan(){return !!this._isStandaloneSpan}_onSpanEnded(){let t=Rt();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===_n(this)))return;if(this._isStandaloneSpan){this._sampled?Jet($se([this],t)):(Tt&&ce.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}let n=this._convertSpanToTransaction();n&&(Lp(this).scope||Zr()).captureEvent(n);}_convertSpanToTransaction(){if(!Wse(Ht(this)))return;this._name||(Tt&&ce.warn("Transaction has no name, falling back to ``."),this._name="");let{scope:t,isolationScope:r}=Lp(this),i=(t||Zr()).getClient()||Rt();if(this._sampled!==!0){Tt&&ce.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),i&&i.recordDroppedEvent("sample_rate","transaction");return}let a=yP(this).filter(p=>p!==this&&!zet(p)).map(p=>Ht(p)).filter(Wse),o=this._attributes[no],u={contexts:{trace:Fse(this)},spans:a.length>Kse?a.sort((p,h)=>p.start_timestamp-h.start_timestamp).slice(0,Kse):a,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:r,...Zt({dynamicSamplingContext:Wi(this)})},_metrics_summary:Hl(this),...o&&{transaction_info:{source:o}}},l=Xh(this._events);return l&&Object.keys(l).length&&(Tt&&ce.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),u.measurements=l),u}};function Yse(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Wse(e){return !!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function zet(e){return e instanceof wy&&e.isStandaloneSpan()}function Jet(e){let t=Rt();if(!t)return;let r=e[1];if(!r||r.length===0){t.recordDroppedEvent("before_send","span");return}let n=t.getTransport();n&&n.send(e).then(null,i=>{Tt&&ce.error("Error while sending span:",i);});}var Bk="__SENTRY_SUPPRESS_TRACING__";function Iy(e,t){let r=o0();if(r.startSpan)return r.startSpan(e,t);let n=qk(e),{forceTransaction:i,parentSpan:s}=e;return Rp(e.scope,()=>zse(s)(()=>{let o=Zr(),u=Vk(o),c=e.onlyIfParent&&!u?new kp:Uk({parentSpan:u,spanArguments:n,forceTransaction:i,scope:o});return Gh(o,c),Wh(()=>t(c),()=>{let{status:p}=Ht(c);c.isRecording()&&(!p||p==="ok")&&c.setStatus({code:2,message:"internal_error"});},()=>c.end())}))}function s0(e,t){let r=o0();if(r.startSpanManual)return r.startSpanManual(e,t);let n=qk(e),{forceTransaction:i,parentSpan:s}=e;return Rp(e.scope,()=>zse(s)(()=>{let o=Zr(),u=Vk(o),c=e.onlyIfParent&&!u?new kp:Uk({parentSpan:u,spanArguments:n,forceTransaction:i,scope:o});Gh(o,c);function p(){c.end();}return Wh(()=>t(c,p),()=>{let{status:h}=Ht(c);c.isRecording()&&(!h||h==="ok")&&c.setStatus({code:2,message:"internal_error"});})}))}function a0(e){let t=o0();if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=qk(e),{forceTransaction:n,parentSpan:i}=e;return (e.scope?a=>Rp(e.scope,a):i!==void 0?a=>$l(i,a):a=>a())(()=>{let a=Zr(),o=Vk(a);return e.onlyIfParent&&!o?new kp:Uk({parentSpan:o,spanArguments:r,forceTransaction:n,scope:a})})}function $l(e,t){let r=o0();return r.withActiveSpan?r.withActiveSpan(e,t):Rp(n=>(Gh(n,e||void 0),t(n)))}function jk(e){let t=o0();return t.suppressTracing?t.suppressTracing(e):Rp(r=>(r.setSDKProcessingMetadata({[Bk]:!0}),e()))}function Uk({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){if(!eu())return new kp;let i=Or(),s;if(e&&!r)s=Qet(e,n,t),Py(e,s);else if(e){let a=Wi(e),{traceId:o,spanId:u}=e.spanContext(),l=Gl(e);s=Xse({traceId:o,parentSpanId:u,...t},n,l),Fk(s,a);}else {let{traceId:a,dsc:o,parentSpanId:u,sampled:l}={...i.getPropagationContext(),...n.getPropagationContext()};s=Xse({traceId:a,parentSpanId:u,...t},n,l),o&&Fk(s,o);}return r0(s),Yh(s,n,i),s}function qk(e){let r={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...r};return n.startTimestamp=Cs(e.startTime),delete n.startTime,n}return r}function o0(){let e=ro();return Np(e)}function Xse(e,t,r){let n=Rt(),i=n&&n.getOptions()||{},{name:s="",attributes:a}=e,[o,u]=t.getScopeData().sdkProcessingMetadata[Bk]?[!1]:i0(i,{name:s,parentSampled:r,attributes:a,transactionContext:{name:s,parentSampled:r}}),l=new wy({...e,attributes:{[no]:"custom",...e.attributes},sampled:o});return u!==void 0&&l.setAttribute(Zo,u),n&&n.emit("spanStart",l),l}function Qet(e,t,r){let{spanId:n,traceId:i}=e.spanContext(),s=t.getScopeData().sdkProcessingMetadata[Bk]?!1:Gl(e),a=s?new wy({...r,parentSpanId:n,traceId:i,sampled:s}):new kp({traceId:i});Py(e,a);let o=Rt();return o&&(o.emit("spanStart",a),r.endTimestamp&&o.emit("spanEnd",a)),a}function Vk(e){let t=Vl(e);if(!t)return;let r=Rt();return (r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?_n(t):t}function zse(e){return e!==void 0?t=>$l(e,t):t=>t()}function SP(e,t,r,n=0){return new Wo((i,s)=>{let a=e[n];if(t===null||typeof a!="function")i(t);else {let o=a({...t},r);Tt&&a.id&&o===null&&ce.log(`Event processor "${a.id}" dropped event`),aa(o)?o.then(u=>SP(e,u,r,n+1).then(i)).then(null,s):SP(e,o,r,n+1).then(i).then(null,s);}})}function Jse(e,t){let{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:s}=t;Zet(e,t),n&&rtt(e,n),ntt(e,r),ett(e,i),ttt(e,s);}function Hk(e,t){let{extra:r,tags:n,user:i,contexts:s,level:a,sdkProcessingMetadata:o,breadcrumbs:u,fingerprint:l,eventProcessors:c,attachments:p,propagationContext:h,transactionName:f,span:d}=t;u0(e,"extra",r),u0(e,"tags",n),u0(e,"user",i),u0(e,"contexts",s),u0(e,"sdkProcessingMetadata",o),a&&(e.level=a),f&&(e.transactionName=f),d&&(e.span=d),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...h};}function u0(e,t,r){if(r&&Object.keys(r).length){e[t]={...e[t]};for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[t][n]=r[n]);}}function Zet(e,t){let{extra:r,tags:n,user:i,contexts:s,level:a,transactionName:o}=t,u=Zt(r);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});let l=Zt(n);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});let c=Zt(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});let p=Zt(s);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts}),a&&(e.level=a),o&&e.type!=="transaction"&&(e.transaction=o);}function ett(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0;}function ttt(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t};}function rtt(e,t){e.contexts={trace:t0(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Wi(t),...e.sdkProcessingMetadata};let r=_n(t),n=Ht(r).description;n&&!e.transaction&&e.type==="transaction"&&(e.transaction=n);}function ntt(e,t){e.fingerprint=e.fingerprint?fE(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint;}function Zse(e,t,r,n,i,s){let{normalizeDepth:a=3,normalizeMaxBreadth:o=1e3}=e,u={...t,event_id:t.event_id||r.event_id||Pr(),timestamp:t.timestamp||ku()},l=r.integrations||e.integrations.map(y=>y.name);itt(u,e),ott(u,l),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&stt(u,e.stackParser);let c=ltt(n,r.captureContext);r.mechanism&&pE(u,r.mechanism);let p=i?i.getEventProcessors():[],h=fP().getScopeData();if(s){let y=s.getScopeData();Hk(h,y);}if(c){let y=c.getScopeData();Hk(h,y);}let f=[...r.attachments||[],...h.attachments];f.length&&(r.attachments=f),Jse(u,h);let d=[...p,...h.eventProcessors];return SP(d,u,r).then(y=>(y&&att(y),typeof a=="number"&&a>0?utt(y,a,o):y))}function itt(e,t){let{environment:r,release:n,dist:i,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?r:Cy),e.release===void 0&&n!==void 0&&(e.release=n),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=za(e.message,s));let a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=za(a.value,s));let o=e.request;o&&o.url&&(o.url=za(o.url,s));}var Qse=new WeakMap;function stt(e,t){let r=Bt._sentryDebugIds;if(!r)return;let n,i=Qse.get(t);i?n=i:(n=new Map,Qse.set(t,n));let s=Object.entries(r).reduce((a,[o,u])=>{let l,c=n.get(o);c?l=c:(l=t(o),n.set(o,l));for(let p=l.length-1;p>=0;p--){let h=l[p];if(h.filename){a[h.filename]=u;break}}return a},{});try{e.exception.values.forEach(a=>{a.stacktrace.frames.forEach(o=>{o.filename&&(o.debug_id=s[o.filename]);});});}catch{}}function att(e){let t={};try{e.exception.values.forEach(n=>{n.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id);});});}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([n,i])=>{r.push({type:"sourcemap",code_file:n,debug_id:i});});}function ott(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t]);}function utt(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:wa(i.data,t,r)}}))},...e.user&&{user:wa(e.user,t,r)},...e.contexts&&{contexts:wa(e.contexts,t,r)},...e.extra&&{extra:wa(e.extra,t,r)}};return e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=wa(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(i=>({...i,...i.data&&{data:wa(i.data,t,r)}}))),n}function ltt(e,t){if(!t)return e;let r=e?e.clone():new Na;return r.update(t),r}function eae(e){if(e)return ctt(e)?{captureContext:e}:ftt(e)?{captureContext:e}:e}function ctt(e){return e instanceof Na||typeof e=="function"}var ptt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function ftt(e){return Object.keys(e).some(t=>ptt.includes(t))}function ps(e,t){return Zr().captureException(e,eae(t))}function TP(e,t){return Zr().captureEvent(e,t)}function Oy(e,t){Or().setContext(e,t);}function Bp(e,t){Or().setTag(e,t);}async function rae(e){let t=Rt();return t?t.flush(e):(Tt&&ce.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function EP(e){let t=Rt(),r=Or(),n=Zr(),{release:i,environment:s=Cy}=t&&t.getOptions()||{},{userAgent:a}=Bt.navigator||{},o=Nse({release:i,environment:s,user:n.getUser()||r.getUser(),...a&&{userAgent:a},...e}),u=r.getSession();return u&&u.status==="ok"&&ql(u,{status:"exited"}),l0(),r.setSession(o),n.setSession(o),o}function l0(){let e=Or(),t=Zr(),r=t.getSession()||e.getSession();r&&Rse(r),htt(),e.setSession(),t.setSession();}function htt(){let e=Or(),t=Zr(),r=Rt(),n=t.getSession()||e.getSession();n&&r&&r.captureSession(n);}var bP=class{constructor(t,r){this._client=t,this.flushTimeout=60,this._pendingAggregates=new Map,this._isEnabled=!0,this._intervalId=setInterval(()=>this.flush(),this.flushTimeout*1e3),this._intervalId.unref&&this._intervalId.unref(),this._sessionAttrs=r;}flush(){let t=this.getSessionAggregates();t.aggregates.length!==0&&(this._pendingAggregates=new Map,this._client.sendSession(t));}getSessionAggregates(){let t=Array.from(this._pendingAggregates.values()),r={attrs:this._sessionAttrs,aggregates:t};return Zt(r)}close(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush();}incrementSessionStatusCount(){if(!this._isEnabled)return;let t=Or(),r=t.getRequestSession();r&&r.status&&(this._incrementSessionStatusCount(r.status,new Date),t.setRequestSession(void 0));}_incrementSessionStatusCount(t,r){let n=new Date(r).setSeconds(0,0),i=this._pendingAggregates.get(n);switch(i||(i={started:new Date(n).toISOString()},this._pendingAggregates.set(n,i)),t){case"errored":return i.errored=(i.errored||0)+1,i.errored;case"ok":return i.exited=(i.exited||0)+1,i.exited;default:return i.crashed=(i.crashed||0)+1,i.crashed}}};var dtt="7";function mtt(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return `${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function ytt(e){return `${mtt(e)}${e.projectId}/envelope/`}function gtt(e,t){return gM({sentry_key:e.publicKey,sentry_version:dtt,...t&&{sentry_client:`${t.name}/${t.version}`}})}function nae(e,t,r){return t||`${ytt(e)}?${gtt(e,r)}`}var iae=[];function Stt(e){let t={};return e.forEach(r=>{let{name:n}=r,i=t[n];i&&!i.isDefaultInstance&&r.isDefaultInstance||(t[n]=r);}),Object.values(t)}function Gk(e){let t=e.defaultIntegrations||[],r=e.integrations;t.forEach(a=>{a.isDefaultInstance=!0;});let n;Array.isArray(r)?n=[...t,...r]:typeof r=="function"?n=fE(r(t)):n=t;let i=Stt(n),s=i.findIndex(a=>a.name==="Debug");if(s>-1){let[a]=i.splice(s,1);i.push(a);}return i}function sae(e,t){let r={};return t.forEach(n=>{n&&Kk(e,n,r);}),r}function $k(e,t){for(let r of t)r&&r.afterAllSetup&&r.afterAllSetup(e);}function Kk(e,t,r){if(r[t.name]){Tt&&ce.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,iae.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),iae.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,s)=>n(i,s,e));}if(typeof t.processEvent=="function"){let n=t.processEvent.bind(t),i=Object.assign((s,a)=>n(s,a,e),{id:t.name});e.addEventProcessor(i);}Tt&&ce.log(`Integration installed: ${t.name}`);}var aae="Not capturing exception because it's already been captured.",vP=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Zx(t.dsn):Tt&&ce.warn("No DSN provided, client will not send events."),this._dsn){let r=nae(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r});}}captureException(t,r,n){let i=Pr();if(oA(t))return Tt&&ce.log(aae),i;let s={event_id:i,...r};return this._process(this.eventFromException(t,s).then(a=>this._captureEvent(a,s,n))),s.event_id}captureMessage(t,r,n,i){let s={event_id:Pr(),...n},a=Km(t)?t:String(t),o=zx(t)?this.eventFromMessage(a,r,s):this.eventFromException(t,s);return this._process(o.then(u=>this._captureEvent(u,s,i))),s.event_id}captureEvent(t,r,n){let i=Pr();if(r&&r.originalException&&oA(r.originalException))return Tt&&ce.log(aae),i;let s={event_id:i,...r},o=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,s,o||n)),s.event_id}captureSession(t){typeof t.release!="string"?Tt&&ce.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),ql(t,{init:!1}));}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){let r=this._transport;return r?(this.emit("flush"),this._isClientDoneProcessing(t).then(n=>r.flush(t).then(i=>n&&i))):Ja(!0)}close(t){return this.flush(t).then(r=>(this.getOptions().enabled=!1,this.emit("close"),r))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t);}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations();}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){let r=this._integrations[t.name];Kk(this,t,this._integrations),r||$k(this,[t]);}sendEvent(t,r={}){this.emit("beforeSendEvent",t,r);let n=Gse(t,this._dsn,this._options._metadata,this._options.tunnel);for(let s of r.attachments||[])n=kM(n,BM(s));let i=this.sendEnvelope(n);i&&i.then(s=>this.emit("afterSendEvent",t,s),null);}sendSession(t){let r=Hse(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r);}recordDroppedEvent(t,r,n){if(this._options.sendClientReports){let i=typeof n=="number"?n:1,s=`${t}:${r}`;Tt&&ce.log(`Recording outcome: "${s}"${i>1?` (${i} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+i;}}on(t,r){let n=this._hooks[t]=this._hooks[t]||[];return n.push(r),()=>{let i=n.indexOf(r);i>-1&&n.splice(i,1);}}emit(t,...r){let n=this._hooks[t];n&&n.forEach(i=>i(...r));}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,r=>(Tt&&ce.error("Error while sending event:",r),r)):(Tt&&ce.error("Transport disabled"),Ja({}))}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=sae(this,t),$k(this,t);}_updateSessionFromEvent(t,r){let n=!1,i=!1,s=r.exception&&r.exception.values;if(s){i=!0;for(let u of s){let l=u.mechanism;if(l&&l.handled===!1){n=!0;break}}}let a=t.status==="ok";(a&&t.errors===0||a&&n)&&(ql(t,{...n&&{status:"crashed"},errors:t.errors||Number(i||n)}),this.captureSession(t));}_isClientDoneProcessing(t){return new Wo(r=>{let n=0,i=1,s=setInterval(()=>{this._numProcessing==0?(clearInterval(s),r(!0)):(n+=i,t&&n>=t&&(clearInterval(s),r(!1)));},i);})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,r,n,i=Or()){let s=this.getOptions(),a=Object.keys(this._integrations);return !r.integrations&&a.length>0&&(r.integrations=a),this.emit("preprocessEvent",t,r),t.type||i.setLastEventId(t.event_id||r.event_id),Zse(s,t,r,n,this,i).then(o=>{if(o===null)return o;let u={...i.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(o.contexts&&o.contexts.trace)&&u){let{traceId:c,spanId:p,parentSpanId:h,dsc:f}=u;o.contexts={trace:Zt({trace_id:c,span_id:p,parent_span_id:h}),...o.contexts};let d=f||Fp(c,this);o.sdkProcessingMetadata={dynamicSamplingContext:d,...o.sdkProcessingMetadata};}return o})}_captureEvent(t,r={},n){return this._processEvent(t,r,n).then(i=>i.event_id,i=>{if(Tt){let s=i;s.logLevel==="log"?ce.log(s.message):ce.warn(s);}})}_processEvent(t,r,n){let i=this.getOptions(),{sampleRate:s}=i,a=uae(t),o=oae(t),u=t.type||"error",l=`before send for type \`${u}\``,c=typeof s>"u"?void 0:gP(s);if(o&&typeof c=="number"&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",t),hE(new us(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));let p=u==="replay_event"?"replay":u,f=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,r,n,f).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",p,t),new us("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return d;let y=Ett(this,i,d,r);return Ttt(y,l)}).then(d=>{if(d===null){if(this.recordDroppedEvent("before_send",p,t),a){let v=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",v);}throw new us(`${l} returned \`null\`, will not send event.`,"log")}let m=n&&n.getSession();if(!a&&m&&this._updateSessionFromEvent(m,d),a){let g=d.sdkProcessingMetadata&&d.sdkProcessingMetadata.spanCountBeforeProcessing||0,v=d.spans?d.spans.length:0,E=g-v;E>0&&this.recordDroppedEvent("before_send","span",E);}let y=d.transaction_info;if(a&&y&&d.transaction!==t.transaction){let g="custom";d.transaction_info={...y,source:g};}return this.sendEvent(d,r),d}).then(null,d=>{throw d instanceof us?d:(this.captureException(d,{data:{__sentry__:!0},originalException:d}),new us(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${d}`))})}_process(t){this._numProcessing++,t.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r));}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.entries(t).map(([r,n])=>{let[i,s]=r.split(":");return {reason:i,category:s,quantity:n}})}_flushOutcomes(){Tt&&ce.log("Flushing outcomes...");let t=this._clearOutcomes();if(t.length===0){Tt&&ce.log("No outcomes to send");return}if(!this._dsn){Tt&&ce.log("No dsn provided, will not send outcomes");return}Tt&&ce.log("Sending outcomes:",t);let r=UM(t,this._options.tunnel&&Yo(this._dsn));this.sendEnvelope(r);}};function Ttt(e,t){let r=`${t} must return \`null\` or a valid event.`;if(aa(e))return e.then(n=>{if(!Ca(n)&&n!==null)throw new us(r);return n},n=>{throw new us(`${t} rejected with ${n}`)});if(!Ca(e)&&e!==null)throw new us(r);return e}function Ett(e,t,r,n){let{beforeSend:i,beforeSendTransaction:s,beforeSendSpan:a}=t;if(oae(r)&&i)return i(r,n);if(uae(r)){if(r.spans&&a){let o=[];for(let u of r.spans){let l=a(u);l?o.push(l):e.recordDroppedEvent("before_send","span");}r.spans=o;}if(s){if(r.spans){let o=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:o};}return s(r,n)}}return r}function oae(e){return e.type===void 0}function uae(e){return e.type==="transaction"}function lae(e,t,r,n,i){let s={sent_at:new Date().toISOString()};r&&r.sdk&&(s.sdk={name:r.sdk.name,version:r.sdk.version}),n&&i&&(s.dsn=Yo(i)),t&&(s.trace=Zt(t));let a=btt(e);return Xo(s,[a])}function btt(e){return [{type:"check_in"},e]}var c0=class extends vP{constructor(t){jse(),super(t);}eventFromException(t,r){return Ja(GM(this,this._options.stackParser,t,r))}eventFromMessage(t,r="info",n){return Ja($M(this._options.stackParser,t,r,n,this._options.attachStacktrace))}captureException(t,r,n){if(this._options.autoSessionTracking&&this._sessionFlusher){let i=Or().getRequestSession();i&&i.status==="ok"&&(i.status="errored");}return super.captureException(t,r,n)}captureEvent(t,r,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&(t.type||"exception")==="exception"&&t.exception&&t.exception.values&&t.exception.values.length>0){let a=Or().getRequestSession();a&&a.status==="ok"&&(a.status="errored");}return super.captureEvent(t,r,n)}close(t){return this._sessionFlusher&&this._sessionFlusher.close(),super.close(t)}initSessionFlusher(){let{release:t,environment:r}=this._options;t?this._sessionFlusher=new bP(this,{release:t,environment:r}):Tt&&ce.warn("Cannot initialise an instance of SessionFlusher if no release is provided!");}captureCheckIn(t,r,n){let i="checkInId"in t&&t.checkInId?t.checkInId:Pr();if(!this._isEnabled())return Tt&&ce.warn("SDK not enabled, will not capture checkin."),i;let s=this.getOptions(),{release:a,environment:o,tunnel:u}=s,l={check_in_id:i,monitor_slug:t.monitorSlug,status:t.status,release:a,environment:o};"duration"in t&&(l.duration=t.duration),r&&(l.monitor_config={schedule:r.schedule,checkin_margin:r.checkinMargin,max_runtime:r.maxRuntime,timezone:r.timezone,failure_issue_threshold:r.failureIssueThreshold,recovery_threshold:r.recoveryThreshold});let[c,p]=this._getTraceInfoFromScope(n);p&&(l.contexts={trace:p});let h=lae(l,c,this.getSdkMetadata(),u,this.getDsn());return Tt&&ce.info("Sending checkin:",t.monitorSlug,t.status),this.sendEnvelope(h),i}_captureRequestSession(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():Tt&&ce.warn("Discarded request mode session because autoSessionTracking option was disabled");}_prepareEvent(t,r,n,i){return this._options.platform&&(t.platform=t.platform||this._options.platform),this._options.runtime&&(t.contexts={...t.contexts,runtime:(t.contexts||{}).runtime||this._options.runtime}),this._options.serverName&&(t.server_name=t.server_name||this._options.serverName),super._prepareEvent(t,r,n,i)}_getTraceInfoFromScope(t){if(!t)return [void 0,void 0];let r=Vl(t);if(r){let u=_n(r);return [Wi(u),t0(u)]}let{traceId:n,spanId:i,parentSpanId:s,dsc:a}=t.getPropagationContext(),o={trace_id:n,span_id:i,parent_span_id:s};return a?[a,o]:[Fp(n,this),o]}};var vtt=64;function p0(e,t,r=IM(e.bufferSize||vtt)){let n={},i=a=>r.drain(a);function s(a){let o=[];if(fA(a,(p,h)=>{let f=hA(h);if(qM(n,f)){let d=cae(p,h);e.recordDroppedEvent("ratelimit_backoff",f,d);}else o.push(p);}),o.length===0)return Ja({});let u=Xo(a[0],o),l=p=>{fA(u,(h,f)=>{let d=cae(h,f);e.recordDroppedEvent(p,hA(f),d);});},c=()=>t({body:mE(u)}).then(p=>(p.statusCode!==void 0&&(p.statusCode<200||p.statusCode>=300)&&Tt&&ce.warn(`Sentry responded with status code ${p.statusCode} to sent event.`),n=VM(n,p),p),p=>{throw l("network_error"),p});return r.add(c).then(p=>p,p=>{if(p instanceof us)return Tt&&ce.error("Skipped sending event because buffer is full."),l("queue_overflow"),Ja({});throw p})}return {send:s,flush:i}}function cae(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function Yk(e,t,r=[t],n="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map(s=>({name:`${n}:@sentry/${s}`,version:ri})),version:ri}),e._metadata=i;}var _tt=100;function jp(e,t){let r=Rt(),n=Or();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=_tt}=r.getOptions();if(s<=0)return;let o={timestamp:ku(),...e},u=i?Ki(()=>i(o,t)):o;u!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",u,t),n.addBreadcrumb(u,s));}var pae,xtt="FunctionToString",fae=new WeakMap,Att=()=>({name:xtt,setupOnce(){pae=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=yM(this),r=fae.has(Rt())&&t!==void 0?t:this;return pae.apply(r,e)};}catch{}},setup(e){fae.set(e,!0);}}),_P=Att;var Ptt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],Ctt="InboundFilters",wtt=(e={})=>({name:Ctt,processEvent(t,r,n){let i=n.getOptions(),s=Itt(e,i);return Ott(t,s)?null:t}}),AP=wtt;function Itt(e={},t={}){return {allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Ptt],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Ott(e,t){return t.ignoreInternal&&ktt(e)?(Tt&&ce.warn(`Event dropped due to being internal Sentry Error. Event: ${Fl(e)}`),!0):Dtt(e,t.ignoreErrors)?(Tt&&ce.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${Fl(e)}`),!0):Btt(e)?(Tt&&ce.warn(`Event dropped due to not having an error message, error type or stacktrace. Event: ${Fl(e)}`),!0):Ntt(e,t.ignoreTransactions)?(Tt&&ce.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${Fl(e)}`),!0):Rtt(e,t.denyUrls)?(Tt&&ce.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${Fl(e)}. Url: ${xP(e)}`),!0):Mtt(e,t.allowUrls)?!1:(Tt&&ce.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${Fl(e)}. Url: ${xP(e)}`),!0)}function Dtt(e,t){return e.type||!t||!t.length?!1:Ltt(e).some(r=>bp(r,t))}function Ntt(e,t){if(e.type!=="transaction"||!t||!t.length)return !1;let r=e.transaction;return r?bp(r,t):!1}function Rtt(e,t){if(!t||!t.length)return !1;let r=xP(e);return r?bp(r,t):!1}function Mtt(e,t){if(!t||!t.length)return !0;let r=xP(e);return r?bp(r,t):!0}function Ltt(e){let t=[];e.message&&t.push(e.message);let r;try{r=e.exception.values[e.exception.values.length-1];}catch{}return r&&r.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`)),t}function ktt(e){try{return e.exception.values[0].type==="SentryError"}catch{}return !1}function Ftt(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&r.filename!==""&&r.filename!=="[native code]")return r.filename||null}return null}function xP(e){try{let t;try{t=e.exception.values[0].stacktrace.frames;}catch{}return t?Ftt(t):null}catch{return Tt&&ce.error(`Cannot extract url for event ${Fl(e)}`),null}}function Btt(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}var jtt="cause",Utt=5,qtt="LinkedErrors",Vtt=(e={})=>{let t=e.limit||Utt,r=e.key||jtt;return {name:qtt,preprocessEvent(n,i,s){let a=s.getOptions();hM(mA,a.stackParser,a.maxValueLength,r,t,n,i);}}},PP=Vtt;var Wk={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"},Htt="RequestData",Gtt=(e={})=>{let t={...Wk,...e,include:{...Wk.include,...e.include,user:e.include&&typeof e.include.user=="boolean"?e.include.user:{...Wk.include.user,...(e.include||{}).user}}};return {name:Htt,processEvent(r){let{sdkProcessingMetadata:n={}}=r,i=n.request;if(!i)return r;let s=$tt(t);return NM(r,i,s)}}},CP=Gtt;function $tt(e){let{transactionNamingScheme:t,include:{ip:r,user:n,...i}}=e,s=["method"];for(let[o,u]of Object.entries(i))u&&s.push(o);let a;if(n===void 0)a=!0;else if(typeof n=="boolean")a=n;else {let o=[];for(let[u,l]of Object.entries(n))l&&o.push(u);a=o;}return {include:{ip:r,user:a,request:s.length!==0?s:void 0,transaction:t}}}jn();LP();Rn();var d2="sentry.parentIsRemote",Ly="sentry.graphql.operation";function m2(e){let t=e;return !!t.attributes&&typeof t.attributes=="object"}function Ert(e){return typeof e.kind=="number"}function brt(e){return !!e.status}function $ae(e){return !!e.name}function vrt(e){return !!e.parentSpanId}function _rt(e){if(!m2(e))return {};let t=e.attributes[oy]||e.attributes[ny],r={url:t,"http.method":e.attributes[DE]||e.attributes[OE]};!r["http.method"]&&r.url&&(r["http.method"]="GET");try{if(typeof t=="string"){let n=_p(t);r.url=Ap(n),n.search&&(r["http.query"]=n.search),n.hash&&(r["http.fragment"]=n.hash);}}catch{}return r}function xrt(e){return Ert(e)?e.kind:cs.INTERNAL}var s2="sentry-trace",a2="baggage",y2="sentry.dsc",jP="sentry.parent_span_id",g2="sentry.sampled_not_recording",Kae="sentry.url",Yae=xs("sentry_scopes"),o2=xs("sentry_fork_isolation_scope"),u2=xs("sentry_fork_set_scope"),l2=xs("sentry_fork_set_isolation_scope"),Wae="_scopeContext";function Gp(e){return e.getValue(Yae)}function Xae(e,t){return e.setValue(Yae,t)}function Art(e,t){ni(e,Wae,t);}function Prt(e){return e[Wae]}function zae(e,t,r){if(t["sentry.skip_span_data_inference"])return {op:void 0,description:e,source:"custom",data:{"sentry.skip_span_data_inference":void 0}};let n=t[DE]||t[OE];if(n)return wrt({attributes:t,name:e,kind:r},n);let i=t[CL],s=typeof t[yn]=="string"&&t[yn].startsWith("cache.");if(i&&!s)return Crt({attributes:t,name:e});if(t[RL])return {op:"rpc",description:e,source:"route"};if(t[NL])return {op:"message",description:e,source:"route"};let u=t[OL];return u?{op:u.toString(),description:e,source:"route"}:{op:void 0,description:e,source:"custom"}}function Jae(e){let t=m2(e)?e.attributes:{},r=$ae(e)?e.name:"",n=xrt(e);return zae(r,t,n)}function Crt({attributes:e,name:t}){let r=e[wL];return {op:"db",description:r?r.toString():t,source:"task"}}function wrt({name:e,kind:t,attributes:r},n){let i=["http"];switch(t){case cs.CLIENT:i.push("client");break;case cs.SERVER:i.push("server");break}let{urlPath:s,url:a,query:o,fragment:u,hasRoute:l}=Ort(r,t);if(!s)return {op:i.join("."),description:e,source:"custom"};let c=r[Ly],p=`${n} ${s}`,h=c?`${p} (${Irt(c)})`:p,f=l||s==="/"?"route":"url",d={};a&&(d.url=a),o&&(d["http.query"]=o),u&&(d["http.fragment"]=u);let m=t===cs.CLIENT||t===cs.SERVER,g=!`${r[gn]||"manual"}`.startsWith("auto"),v=m||!g;return {op:i.join("."),description:v?h:e,source:v?f:"custom",data:d}}function Irt(e){if(Array.isArray(e)){let t=e.slice().sort();return t.length<=5?t.join(", "):`${t.slice(0,5).join(", ")}, +${t.length-5}`}return `${e}`}function Ort(e,t){let r=e[DL],n=e[ny]||e[oy],i=e[NE],s=typeof n=="string"?_p(n):void 0,a=s?Ap(s):void 0,o=s&&s.search?s.search:void 0,u=s&&s.hash?s.hash:void 0;return typeof i=="string"?{urlPath:i,url:a,query:o,fragment:u,hasRoute:!0}:t===cs.SERVER&&typeof r=="string"?{urlPath:xp(r),url:a,query:o,fragment:u,hasRoute:!1}:s?{urlPath:a,url:a,query:o,fragment:u,hasRoute:!1}:typeof r=="string"?{urlPath:xp(r),url:a,query:o,fragment:u,hasRoute:!1}:{urlPath:void 0,url:a,query:o,fragment:u,hasRoute:!1}}function Qae(e){e.on("createDsc",(t,r)=>{if(r){let s=(Ht(r).data||{})[no],{description:a}=$ae(r)?Jae(r):{description:void 0};s!=="url"&&a&&(t.transaction=a);}});}function c2({parentSpanId:e,dsc:t,sampled:r}){let n=t?lA(t):void 0,i=new qh().set(jP,e||""),s=n?i.set(y2,n):i;return r===!1?s.set(g2,"1"):s}function Drt(e){let t=c2({parentSpanId:e.parentSpanId,dsc:e.dsc,sampled:e.sampled});return {traceId:e.traceId,spanId:e.parentSpanId||"",isRemote:!0,traceFlags:e.sampled?hn.SAMPLED:hn.NONE,traceState:t}}function Zae(){return qt.getActiveSpan()}var Hp=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Uae(e){let t,r=e[0],n=1;for(;nr.call(t,...a)),t=void 0);}return r}function UP(e){let{traceFlags:t,traceState:r}=e,n=r?r.get(g2)==="1":!1;if(t===hn.SAMPLED)return !0;if(n)return !1;let i=r?r.get(y2):void 0,s=i?Pp(i):void 0;if(Uae([s,"optionalAccess",a=>a.sampled])==="true")return !0;if(Uae([s,"optionalAccess",a=>a.sampled])==="false")return !1}var eoe=new Set;function toe(){return Array.from(eoe)}function qP(e){eoe.add(e);}function zh(e){let t,r=e[0],n=1;for(;nr.call(t,...a)),t=void 0);}return r}function roe(e){let t=e.spanContext(),{traceId:r,spanId:n,traceState:i}=t,s=i?i.get(y2):void 0,a=s?Pp(s):void 0,o=i&&i.get(jP)||void 0,u=UP(t),l=a||Wi(_n(e));return {traceId:r,spanId:n,sampled:u,parentSpanId:o,dsc:l}}var kP=class extends ty{constructor(){super(),qP("SentryPropagator"),this._urlMatchesTargetsMap=new Bu(100);}inject(t,r,n){if(qu(t)){Hp&&ce.log("[Tracing] Not injecting trace data for url because tracing is suppressed.");return}let i=qt.getSpan(t),s=i&&Lrt(i),a=zh([Rt,"call",f=>f(),"optionalAccess",f=>f.getOptions,"call",f=>f(),"optionalAccess",f=>f.tracePropagationTargets]);if(typeof s=="string"&&a&&!this._shouldInjectTraceData(a,s)){Hp&&ce.log("[Tracing] Not injecting trace data for url because it does not match tracePropagationTargets:",s);return}let o=Mrt(r),u=As.getBaggage(t)||As.createBaggage({}),{dynamicSamplingContext:l,traceId:c,spanId:p,sampled:h}=Nrt(t);if(o){let f=cA(o);f&&Object.entries(f).forEach(([d,m])=>{u=u.setEntry(d,{value:m});});}l&&(u=Object.entries(l).reduce((f,[d,m])=>m?f.setEntry(`${dE}${d}`,{value:m}):f,u)),c&&c!==kh&&n.set(r,s2,pA(c,p,h)),super.inject(As.setBaggage(t,u),r,n);}extract(t,r,n){let i=n.get(r,s2),s=n.get(r,a2),a=i?Array.isArray(i)?i[0]:i:void 0,o=Jm(a,s),u=Rrt(t,{sentryTrace:a,baggage:s}),l=Gp(u),c={scope:l?l.scope.clone():Zr().clone(),isolationScope:l?l.isolationScope:Or()};return c.scope.setPropagationContext(o),Xae(u,c)}fields(){return [s2,a2]}_shouldInjectTraceData(t,r){if(t===void 0)return !0;let n=this._urlMatchesTargetsMap.get(r);if(n!==void 0)return n;let i=bp(r,t);return this._urlMatchesTargetsMap.set(r,i),i}};function Nrt(e){let t=eu()?qt.getSpan(e):void 0,r=zh([t,"optionalAccess",a=>a.spanContext,"call",a=>a(),"access",a=>a.isRemote]);if(t&&!r){let a=t.spanContext(),o=roe(t);return {dynamicSamplingContext:qae(o,a.traceId),traceId:a.traceId,spanId:a.spanId,sampled:UP(a)}}let i=(zh([Gp,"call",a=>a(e),"optionalAccess",a=>a.scope])||Zr()).getPropagationContext();return {dynamicSamplingContext:qae(i,i.traceId),traceId:i.traceId,spanId:i.spanId,sampled:i.sampled}}function qae(e,t){if(zh([e,"optionalAccess",n=>n.dsc]))return e.dsc;let r=Rt();if(r)return Fp(t||e.traceId,r)}function Rrt(e,{sentryTrace:t,baggage:r}){let n=Jm(t,r),i=Drt(n);return qt.setSpanContext(e,i)}function Mrt(e){try{let t=e[a2];return Array.isArray(t)?t.join(","):t}catch{return}}function Lrt(e){let t=Ht(e).data,r=zh([t,"optionalAccess",i=>i[ny]])||zh([t,"optionalAccess",i=>i[oy]]);if(r)return r;let n=zh([e,"access",i=>i.spanContext,"call",i=>i(),"access",i=>i.traceState,"optionalAccess",i=>i.get,"call",i=>i(Kae)]);if(n)return n}function krt(e){let t,r=e[0],n=1;for(;nr.call(t,...a)),t=void 0);}return r}function Frt(e,t){let r=S2(),{name:n,parentSpan:i}=e;return b2(i)(()=>{let a=E2(e.scope,e.forceTransaction),u=e.onlyIfParent&&!qt.getSpan(a)?zo(a):a,l=T2(e);return r.startActiveSpan(n,l,u,c=>Wh(()=>t(c),()=>{Ht(c).status===void 0&&c.setStatus({code:Qa.ERROR});},()=>c.end()))})}function Brt(e,t){let r=S2(),{name:n,parentSpan:i}=e;return b2(i)(()=>{let a=E2(e.scope,e.forceTransaction),u=e.onlyIfParent&&!qt.getSpan(a)?zo(a):a,l=T2(e);return r.startActiveSpan(n,l,u,c=>Wh(()=>t(c,()=>c.end()),()=>{Ht(c).status===void 0&&c.setStatus({code:Qa.ERROR});}))})}function jrt(e){let t=S2(),{name:r,parentSpan:n}=e;return b2(n)(()=>{let s=E2(e.scope,e.forceTransaction),o=e.onlyIfParent&&!qt.getSpan(s)?zo(s):s,u=T2(e);return t.startSpan(r,u,o)})}function noe(e,t){let r=e?qt.setSpan(gr.active(),e):qt.deleteSpan(gr.active());return gr.with(r,()=>t(Zr()))}function S2(){let e=Rt();return e&&e.tracer||qt.getTracer("@sentry/opentelemetry",ri)}function T2(e){let{startTime:t,attributes:r,kind:n,op:i}=e,s=typeof t=="number"?Urt(t):t;return {attributes:i?{[yn]:i,...r}:r,kind:n,startTime:s}}function Urt(e){return e<9999999999?e*1e3:e}function E2(e,t){let r=qrt(e),n=krt([Gp,"call",d=>d(r),"optionalAccess",d=>d.scope]),i=qt.getSpan(r);if(!i){let d=Rt();if(n&&d){let m=n.getPropagationContext(),y=c2({parentSpanId:m.parentSpanId,dsc:void 0,sampled:m.sampled}),g={traceId:m.traceId,spanId:m.parentSpanId||m.spanId,isRemote:!0,traceFlags:m.sampled?hn.SAMPLED:hn.NONE,traceState:y};return qt.setSpanContext(r,g)}return r}if(!t)return r;let s=qt.deleteSpan(r),{spanId:a,traceId:o}=i.spanContext(),u=UP(i.spanContext()),l=_n(i),c=Wi(l),p=c2({dsc:c,parentSpanId:a!==Lh?a:void 0,sampled:u}),h={traceId:o,spanId:a,isRemote:!0,traceFlags:u?hn.SAMPLED:hn.NONE,traceState:p};return qt.setSpanContext(s,h)}function qrt(e){if(e){let t=Prt(e);if(t)return t}return gr.active()}function b2(e){return e!==void 0?t=>noe(e,t):t=>t()}function Vrt(e){let t=zo(gr.active());return gr.with(t,e)}function Hrt(e){let t,r=e[0],n=1;for(;nr.call(t,...a)),t=void 0);}return r}function ioe(e){e.on("preprocessEvent",t=>{let r=Zae();if(!r||t.type==="transaction")return;let n=r.spanContext(),i=Hrt([n,"access",o=>o.traceState,"optionalAccess",o=>o.get,"call",o=>o(jP)]),s=typeof i=="string"?i||void 0:vrt(r)?r.parentSpanId:void 0;t.contexts={trace:Zt({trace_id:n.traceId,span_id:n.spanId,parent_span_id:s}),...t.contexts};let a=_n(r);return t.sdkProcessingMetadata={dynamicSamplingContext:Wi(a),...t.sdkProcessingMetadata},t});}function Grt(){let e={};return As.inject(gr.active(),e),e["sentry-trace"]?Zt({"sentry-trace":e["sentry-trace"],baggage:e.baggage}):{}}function soe(){function e(){let o=gr.active(),u=Gp(o);return u||{scope:xy(),isolationScope:Vu()}}function t(o){let u=gr.active();return gr.with(u,()=>o(s()))}function r(o,u){let l=gr.active();return gr.with(l.setValue(u2,o),()=>u(o))}function n(o){let u=gr.active();return gr.with(u.setValue(o2,!0),()=>o(a()))}function i(o,u){let l=gr.active();return gr.with(l.setValue(l2,o),()=>u(a()))}function s(){return e().scope}function a(){return e().isolationScope}Pk({withScope:t,withSetScope:r,withSetIsolationScope:i,withIsolationScope:n,getCurrentScope:s,getIsolationScope:a,startSpan:Frt,startSpanManual:Brt,startInactiveSpan:jrt,getActiveSpan:Zae,suppressTracing:Vrt,getTraceData:Grt,withActiveSpan:noe});}function Vae(e){let t,r=e[0],n=1;for(;nr.call(t,...a)),t=void 0);}return r}function aoe(e){class t extends e{constructor(...n){super(...n),qP("SentryContextManager");}with(n,i,s,...a){let o=Gp(n),u=Vae([o,"optionalAccess",v=>v.scope])||Zr(),l=Vae([o,"optionalAccess",v=>v.isolationScope])||Or(),c=n.getValue(o2)===!0,p=n.getValue(u2),h=n.getValue(l2),f=p||u.clone(),d=h||(c?l.clone():l),g=Xae(n,{scope:f,isolationScope:d}).deleteValue(o2).deleteValue(u2).deleteValue(l2);return Art(f,g),super.with(g,i,s,...a)}}return t}function $rt(e){let t=new Map;for(let r of e)Krt(t,r);return Array.from(t,function([r,n]){return n})}function ooe(e){return e.attributes[d2]===!0?void 0:e.parentSpanId}function Krt(e,t){let r=t.spanContext().spanId,n=ooe(t);if(!n){p2(e,{id:r,span:t,children:[]});return}let i=Yrt(e,n),s=p2(e,{id:r,span:t,parentNode:i,children:[]});i.children.push(s);}function Yrt(e,t){let r=e.get(t);return r||p2(e,{id:t,children:[]})}function p2(e,t){let r=e.get(t.id);return r&&r.span?r:r&&!r.span?(r.span=t.span,r.parentNode=t.parentNode,r):(e.set(t.id,t),t)}var uoe={1:"cancelled",2:"unknown_error",3:"invalid_argument",4:"deadline_exceeded",5:"not_found",6:"already_exists",7:"permission_denied",8:"resource_exhausted",9:"failed_precondition",10:"aborted",11:"out_of_range",12:"unimplemented",13:"internal_error",14:"unavailable",15:"data_loss",16:"unauthenticated"},Wrt=e=>Object.values(uoe).includes(e);function loe(e){let t=m2(e)?e.attributes:{},r=brt(e)?e.status:void 0;if(r){if(r.code===Qa.OK)return {code:1};if(r.code===Qa.ERROR){if(typeof r.message>"u"){let i=Hae(t);if(i)return i}return r.message&&Wrt(r.message)?{code:2,message:r.message}:{code:2,message:"unknown_error"}}}let n=Hae(t);return n||(r&&r.code===Qa.UNSET?{code:1}:{code:2,message:"unknown_error"})}function Hae(e){let t=e[VA]||e[qA],r=e[ML],n=typeof t=="number"?t:typeof t=="string"?parseInt(t):void 0;if(typeof n=="number")return hP(n);if(typeof r=="string")return {code:2,message:uoe[r]||"unknown_error"}}function coe(e){let t,r=e[0],n=1;for(;nr.call(t,...a)),t=void 0);}return r}var Gae=1e3,Xrt=300,f2=class{constructor(t){this._finishedSpans=[],this._timeout=coe([t,"optionalAccess",r=>r.timeout])||Xrt;}export(t){if(this._finishedSpans.push(t),ooe(t)){let r=this._finishedSpans.length;Hp&&ce.log(`SpanExporter has ${r} unsent spans remaining`),this._cleanupOldSpans();return}this._clearTimeout(),this._flushTimeout=setTimeout(()=>{this.flush();},1);}flush(){this._clearTimeout();let t=this._finishedSpans.length,r=zrt(this._finishedSpans),n=r.length,i=t-n;Hp&&ce.log(`SpanExporter exported ${i} spans, ${n} unsent spans remaining`),this._cleanupOldSpans(r);}clear(){this._finishedSpans=[],this._clearTimeout();}_clearTimeout(){this._flushTimeout&&(clearTimeout(this._flushTimeout),this._flushTimeout=void 0);}_cleanupOldSpans(t=this._finishedSpans){this._finishedSpans=t.filter(r=>{let n=Zrt(r,this._timeout);return Hp&&n&&ce.log(`SpanExporter dropping span ${r.name} (${r.spanContext().spanId}) because it is pending for more than 5 minutes.`),!n});}};function zrt(e){let t=$rt(e),r=new Set(t);return Qrt(t).forEach(i=>{r.delete(i);let s=i.span,a=tnt(s),o=a.spans||[];i.children.forEach(l=>{h2(l,o,r);}),a.spans=o.length>Gae?o.sort((l,c)=>l.start_timestamp-c.start_timestamp).slice(0,Gae):o;let u=Xh(s.events);u&&(a.measurements=u),TP(a);}),Array.from(r).map(i=>i.span).filter(i=>!!i)}function Jrt(e){return !!e.span&&!e.parentNode}function Qrt(e){return e.filter(Jrt)}function Zrt(e,t){let r=Date.now()/1e3-t;return Cs(e.startTime)y.spanContext,"call",y=>y(),"access",y=>y.traceState,"optionalAccess",y=>y.get,"call",y=>y(jP)]),h=typeof p=="string"?p||void 0:e.parentSpanId,f=loe(e);return {contexts:{trace:Zt({parent_span_id:h,span_id:c,trace_id:l,data:u,origin:i,op:t,status:$h(f)}),otel:{resource:e.resource.attributes}},spans:[],start_timestamp:Cs(e.startTime),timestamp:Cs(e.endTime),transaction:r,type:"transaction",sdkProcessingMetadata:{...Zt({capturedSpanScope:a.scope,capturedSpanIsolationScope:a.isolationScope,sampleRate:o,dynamicSamplingContext:Wi(e)})},...s&&{transaction_info:{source:s}},_metrics_summary:Hl(e)}}function h2(e,t,r){r.delete(e);let n=e.span;if(!n){e.children.forEach(v=>{h2(v,t,r);});return}let s=n.spanContext().spanId,a=n.spanContext().traceId,{attributes:o,startTime:u,endTime:l,parentSpanId:c}=n,{op:p,description:h,data:f,origin:d="manual"}=poe(n),m=Zt({[gn]:d,[yn]:p,...foe(o),...f}),y=loe(n),g=Zt({span_id:s,trace_id:a,data:m,description:h,parent_span_id:c,start_timestamp:Cs(u),timestamp:Cs(l)||void 0,status:$h(y),op:p,origin:d,_metrics_summary:Hl(n),measurements:Xh(n.events)});t.push(g),e.children.forEach(v=>{h2(v,t,r);});}function poe(e){let{op:t,source:r,origin:n}=ent(e),{op:i,description:s,source:a,data:o}=Jae(e),u=t||i,l=r||a,c={...o,...rnt(e)};return {op:u,description:s,source:l,origin:n,data:c}}function foe(e){let t={...e};return delete t[Zo],delete t[d2],t}function rnt(e){let t=e.attributes,r={};e.kind!==cs.INTERNAL&&(r["otel.kind"]=cs[e.kind]);let n=t[qA];n&&(r[VA]=n);let i=_rt(e);return i.url&&(r.url=i.url),i["http.query"]&&(r["http.query"]=i["http.query"].slice(1)),i["http.fragment"]&&(r["http.fragment"]=i["http.fragment"].slice(1)),r}function hoe(e){let t,r=e[0],n=1;for(;nr.call(t,...a)),t=void 0);}return r}function nnt(e,t){let r=qt.getSpan(t),n=Gp(t);r&&!r.spanContext().isRemote&&Py(r,e),r&&r.spanContext().isRemote&&e.setAttribute(d2,!0),t===Qm&&(n={scope:xy(),isolationScope:Vu()}),n&&Yh(e,n.scope,n.isolationScope),r0(e);let i=Rt();hoe([i,"optionalAccess",s=>s.emit,"call",s=>s("spanStart",e)]);}function int(e){n0(e);let t=Rt();hoe([t,"optionalAccess",r=>r.emit,"call",r=>r("spanEnd",e)]);}var FP=class{constructor(t){qP("SentrySpanProcessor"),this._exporter=new f2(t);}async forceFlush(){this._exporter.flush();}async shutdown(){this._exporter.clear();}onStart(t,r){nnt(t,r);}onEnd(t){int(t),this._exporter.export(t);}},BP=class{constructor(t){this._client=t,qP("SentrySampler");}shouldSample(t,r,n,i,s,a){let o=this._client.getOptions(),u=qt.getSpan(t),l=Ye([u,"optionalAccess",x=>x.spanContext,"call",x=>x()]);if(!eu(o))return My({decision:void 0,context:t,spanAttributes:s});let c=s[OE]||s[DE];if(i===cs.CLIENT&&c&&(!u||Ye([l,"optionalAccess",x=>x.isRemote])))return My({decision:void 0,context:t,spanAttributes:s});let p=u?ant(u,r,n):void 0,{description:h,data:f,op:d}=zae(n,s,i),m={...f,...s};d&&(m[yn]=d);let y={decision:!0};if(this._client.emit("beforeSampling",{spanAttributes:m,spanName:h,parentSampled:p,parentContext:l},y),!y.decision)return My({decision:void 0,context:t,spanAttributes:s});let[g,v]=i0(o,{name:h,attributes:m,transactionContext:{name:h,parentSampled:p},parentSampled:p}),E={[Zo]:v},S=`${c}`.toUpperCase();return S==="OPTIONS"||S==="HEAD"?(Hp&&ce.log(`[Tracing] Not sampling span because HTTP method is '${S}' for ${n}`),{...My({decision:fs.NOT_RECORD,context:t,spanAttributes:s}),attributes:E}):g?{...My({decision:fs.RECORD_AND_SAMPLED,context:t,spanAttributes:s}),attributes:E}:{...My({decision:fs.NOT_RECORD,context:t,spanAttributes:s}),attributes:E}}toString(){return "SentrySampler"}};function snt(e){let t=e.spanContext().traceId,r=roe(e);return r&&t===r.traceId?r.sampled:void 0}function ant(e,t,r){let n=e.spanContext();if(oa(n)&&n.traceId===t){if(n.isRemote){let s=snt(e);return Hp&&ce.log(`[Tracing] Inheriting remote parent's sampled decision for ${r}: ${s}`),s}let i=UP(n);return Hp&&ce.log(`[Tracing] Inheriting parent's sampled decision for ${r}: ${i}`),i}}function My({decision:e,context:t,spanAttributes:r}){let n=ont(t,r);return e==null?{decision:fs.NOT_RECORD,traceState:n}:e===fs.NOT_RECORD?{decision:e,traceState:n.set(g2,"1")}:{decision:e,traceState:n}}function ont(e,t){let r=qt.getSpan(e),n=Ye([r,"optionalAccess",a=>a.spanContext,"call",a=>a()]),i=Ye([n,"optionalAccess",a=>a.traceState])||new qh,s=t[ny]||t[oy];return s&&typeof s=="string"&&(i=i.set(Kae,s)),i}function ky(...e){nP({instrumentations:e});}pt();function doe(e){let t=Gp(gr.active());t&&(t.isolationScope=e);}function Xi(e,t){e.setAttribute(gn,t);}function moe(e){let t=e.protocol||"",r=e.hostname||e.host||"",n=!e.port||e.port===80||e.port===443||/^(.*):(\d+)$/.test(r)?"":`:${e.port}`,i=e.path?e.path:"/";return `${t}//${r}${n}${i}`}var goe="Http",tu={},v2,unt=Object.assign(function(){if(v2)return;let e=tu._instrumentation||yoe.HttpInstrumentation;v2=new e({...Ye([tu,"access",t=>t.instrumentation,"optionalAccess",t=>t._experimentalConfig]),ignoreOutgoingRequestHook:t=>{let r=moe(t);if(!r)return !1;let n=tu.ignoreOutgoingRequests;return !!(n&&n(r,t))},ignoreIncomingRequestHook:t=>{let r=t.url,n=Ye([t,"access",s=>s.method,"optionalAccess",s=>s.toUpperCase,"call",s=>s()]);if(n==="OPTIONS"||n==="HEAD")return !0;let i=tu.ignoreIncomingRequests;return !!(r&&i&&i(r,t))},requireParentforOutgoingSpans:!1,requireParentforIncomingSpans:!1,requestHook:(t,r)=>{if(Xi(t,"auto.http.otel.http"),Toe(r)){Ye([tu,"access",c=>c.instrumentation,"optionalAccess",c=>c.requestHook,"optionalCall",c=>c(t,r)]);return}let n=Lp(t),i=(n.isolationScope||Or()).clone(),s=n.scope||Zr();i.setSDKProcessingMetadata({request:r});let a=Rt();a&&a.getOptions().autoSessionTracking&&i.setRequestSession({status:"ok"}),doe(i),Yh(t,s,i);let o=(r.method||"GET").toUpperCase(),u=xp(r.url||"/"),l=`${o} ${u}`;i.setTransactionName(l),Ye([tu,"access",c=>c.instrumentation,"optionalAccess",c=>c.requestHook,"optionalCall",c=>c(t,r)]);},responseHook:(t,r)=>{let n=Rt();n&&n.getOptions().autoSessionTracking&&setImmediate(()=>{n._captureRequestSession();}),Ye([tu,"access",i=>i.instrumentation,"optionalAccess",i=>i.responseHook,"optionalCall",i=>i(t,r)]);},applyCustomAttributesOnSpan:(t,r,n)=>{(typeof tu.breadcrumbs>"u"?!0:tu.breadcrumbs)&&cnt(r,n),Ye([tu,"access",s=>s.instrumentation,"optionalAccess",s=>s.applyCustomAttributesOnSpan,"optionalCall",s=>s(t,r,n)]);}}),ky(v2);},{id:goe}),lnt=(e={})=>({name:goe,setupOnce(){tu=e,unt();}}),Soe=lnt;function cnt(e,t){if(!Toe(e))return;let r=pnt(e);jp({category:"http",data:{status_code:t.statusCode,...r},type:"http"},{event:"response",request:e,response:t});}function pnt(e){try{let t=e.getHeader("host")||e.host,r=new URL(e.path,`${e.protocol}//${t}`),n=_p(r.toString()),i={url:Ap(n),"http.method":e.method||"GET"};return n.search&&(i["http.query"]=n.search),n.hash&&(i["http.fragment"]=n.hash),i}catch{return {}}}function Toe(e){return "outputData"in e&&"outputSize"in e&&!("client"in e)&&!("statusCode"in e)}var woe=chunkTKGT252T_js.e(Coe(),1);var mnt=(e={})=>{let t=typeof e.breadcrumbs>"u"?!0:e.breadcrumbs,r=e.ignoreOutgoingRequests;return {name:"NodeFetch",setupOnce(){let n=new woe.UndiciInstrumentation({requireParentforSpans:!1,ignoreRequestHook:i=>{let s=Snt(i.origin,i.path);return !!(r&&s&&r(s))},startSpanHook:()=>({[gn]:"auto.http.otel.node_fetch"}),responseHook:(i,{request:s,response:a})=>{t&&ynt(s,a);}});ky(n);}}},Ioe=mnt;function ynt(e,t){let r=gnt(e);jp({category:"http",data:{status_code:t.statusCode,...r},type:"http"},{event:"response",request:e,response:t});}function gnt(e){try{let t=new URL(e.path,e.origin),r=_p(t.toString()),n={url:Ap(r),"http.method":e.method||"GET"};return r.search&&(n["http.query"]=r.search),r.hash&&(n["http.fragment"]=r.hash),n}catch{return {}}}function Snt(e,t="/"){let r=`${e}`;return r.endsWith("/")&&t.startsWith("/")?`${r}${t.slice(1)}`:!r.endsWith("/")&&!t.startsWith("/")?`${r}/${t.slice(1)}`:`${r}${t}`}var Ooe={};function Mr(e,t){return Object.assign(r=>{let n=Ooe[e];if(n){r&&n.setConfig(r);return}let i=t(r);Ooe[e]=i,ky(i);},{id:e})}var Tnt="Console",Ent=()=>({name:Tnt,setup(e){bM(({args:t,level:r})=>{Rt()===e&&jp({category:"console",level:RM(r),message:Doe__namespace.format.apply(void 0,t)},{input:[...t],level:r});});}}),Noe=Ent;var Ant=Doe.promisify(fs$1.readFile),Pnt=Doe.promisify(fs$1.readdir),Cnt="Context",wnt=(e={})=>{let t,r={app:!0,os:!0,device:!0,culture:!0,cloudResource:!0,...e};async function n(s){t===void 0&&(t=i());let a=Int(await t);return s.contexts={...s.contexts,app:{...a.app,...Ye([s,"access",o=>o.contexts,"optionalAccess",o=>o.app])},os:{...a.os,...Ye([s,"access",o=>o.contexts,"optionalAccess",o=>o.os])},device:{...a.device,...Ye([s,"access",o=>o.contexts,"optionalAccess",o=>o.device])},culture:{...a.culture,...Ye([s,"access",o=>o.contexts,"optionalAccess",o=>o.culture])},cloud_resource:{...a.cloud_resource,...Ye([s,"access",o=>o.contexts,"optionalAccess",o=>o.cloud_resource])}},s}async function i(){let s={};if(r.os&&(s.os=await Ont()),r.app&&(s.app=Nnt()),r.device&&(s.device=Rnt(r.device)),r.culture){let a=Dnt();a&&(s.culture=a);}return r.cloudResource&&(s.cloud_resource=jnt()),s}return {name:Cnt,processEvent(s){return n(s)}}},Loe=wnt;function Int(e){if(Ye([e,"optionalAccess",t=>t.app,"optionalAccess",t=>t.app_memory])&&(e.app.app_memory=process.memoryUsage().rss),Ye([e,"optionalAccess",t=>t.app,"optionalAccess",t=>t.free_memory])&&typeof process.availableMemory=="function"){let t=Ye([process,"access",r=>r.availableMemory,"optionalCall",r=>r()]);t!=null&&(e.app.free_memory=t);}return Ye([e,"optionalAccess",t=>t.device,"optionalAccess",t=>t.free_memory])&&(e.device.free_memory=wi__namespace.freemem()),e}async function Ont(){let e=wi__namespace.platform();switch(e){case"darwin":return Fnt();case"linux":return Bnt();default:return {name:Mnt[e]||e,version:wi__namespace.release()}}}function Dnt(){try{if(typeof process.versions.icu!="string")return;let e=new Date(9e8);if(new Intl.DateTimeFormat("es",{month:"long"}).format(e)==="enero"){let r=Intl.DateTimeFormat().resolvedOptions();return {locale:r.locale,timezone:r.timeZone}}}catch{}}function Nnt(){let e=process.memoryUsage().rss,r={app_start_time:new Date(Date.now()-process.uptime()*1e3).toISOString(),app_memory:e};if(typeof process.availableMemory=="function"){let n=Ye([process,"access",i=>i.availableMemory,"optionalCall",i=>i()]);n!=null&&(r.free_memory=n);}return r}function Rnt(e){let t={},r;try{r=wi__namespace.uptime&&wi__namespace.uptime();}catch{}if(typeof r=="number"&&(t.boot_time=new Date(Date.now()-r*1e3).toISOString()),t.arch=wi__namespace.arch(),(e===!0||e.memory)&&(t.memory_size=wi__namespace.totalmem(),t.free_memory=wi__namespace.freemem()),e===!0||e.cpu){let n=wi__namespace.cpus(),i=n&&n[0];i&&(t.processor_count=n.length,t.cpu_description=i.model,t.processor_frequency=i.speed);}return t}var Mnt={aix:"IBM AIX",freebsd:"FreeBSD",openbsd:"OpenBSD",sunos:"SunOS",win32:"Windows"},Lnt=[{name:"fedora-release",distros:["Fedora"]},{name:"redhat-release",distros:["Red Hat Linux","Centos"]},{name:"redhat_version",distros:["Red Hat Linux"]},{name:"SuSE-release",distros:["SUSE Linux"]},{name:"lsb-release",distros:["Ubuntu Linux","Arch Linux"]},{name:"debian_version",distros:["Debian"]},{name:"debian_release",distros:["Debian"]},{name:"arch-release",distros:["Arch Linux"]},{name:"gentoo-release",distros:["Gentoo Linux"]},{name:"novell-release",distros:["SUSE Linux"]},{name:"alpine-release",distros:["Alpine Linux"]}],knt={alpine:e=>e,arch:e=>Hu(/distrib_release=(.*)/,e),centos:e=>Hu(/release ([^ ]+)/,e),debian:e=>e,fedora:e=>Hu(/release (..)/,e),mint:e=>Hu(/distrib_release=(.*)/,e),red:e=>Hu(/release ([^ ]+)/,e),suse:e=>Hu(/VERSION = (.*)\n/,e),ubuntu:e=>Hu(/distrib_release=(.*)/,e)};function Hu(e,t){let r=e.exec(t);return r?r[1]:void 0}async function Fnt(){let e={kernel_version:wi__namespace.release(),name:"Mac OS X",version:`10.${Number(wi__namespace.release().split(".")[0])-4}`};try{let t=await new Promise((r,n)=>{R$.execFile("/usr/bin/sw_vers",(i,s)=>{if(i){n(i);return}r(s);});});e.name=Hu(/^ProductName:\s+(.*)$/m,t),e.version=Hu(/^ProductVersion:\s+(.*)$/m,t),e.build=Hu(/^BuildVersion:\s+(.*)$/m,t);}catch{}return e}function Roe(e){return e.split(" ")[0].toLowerCase()}async function Bnt(){let e={kernel_version:wi__namespace.release(),name:"Linux"};try{let t=await Pnt("/etc"),r=Lnt.find(o=>t.includes(o.name));if(!r)return e;let n=ux.join("/etc",r.name),i=(await Ant(n,{encoding:"utf-8"})).toLowerCase(),{distros:s}=r;e.name=s.find(o=>i.indexOf(Roe(o))>=0)||s[0];let a=Roe(e.name);e.version=Ye([knt,"access",o=>o[a],"optionalCall",o=>o(i)]);}catch{}return e}function jnt(){return process.env.VERCEL?{"cloud.provider":"vercel","cloud.region":process.env.VERCEL_REGION}:process.env.AWS_REGION?{"cloud.provider":"aws","cloud.region":process.env.AWS_REGION,"cloud.platform":process.env.AWS_EXECUTION_ENV}:process.env.GCP_PROJECT?{"cloud.provider":"gcp"}:process.env.ALIYUN_REGION_ID?{"cloud.provider":"alibaba_cloud","cloud.region":process.env.ALIYUN_REGION_ID}:process.env.WEBSITE_SITE_NAME&&process.env.REGION_NAME?{"cloud.provider":"azure","cloud.region":process.env.REGION_NAME}:process.env.IBM_CLOUD_REGION?{"cloud.provider":"ibm_cloud","cloud.region":process.env.IBM_CLOUD_REGION}:process.env.TENCENTCLOUD_REGION?{"cloud.provider":"tencent_cloud","cloud.region":process.env.TENCENTCLOUD_REGION,"cloud.account.id":process.env.TENCENTCLOUD_APPID,"cloud.availability_zone":process.env.TENCENTCLOUD_ZONE}:process.env.NETLIFY?{"cloud.provider":"netlify"}:process.env.FLY_REGION?{"cloud.provider":"fly.io","cloud.region":process.env.FLY_REGION}:process.env.DYNO?{"cloud.provider":"heroku"}:void 0}var ui=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var x2=new Bu(10),Boe=new Bu(20),Vnt=7,Hnt="ContextLines",Gnt=1e3,$nt=1e4;function Knt(e,t,r){let n=e.get(t);return n===void 0?(e.set(t,r),r):n}function Ynt(e){return !!(e.startsWith("node:")||e.endsWith(".min.js")||e.endsWith(".min.cjs")||e.endsWith(".min.mjs")||e.startsWith("data:"))}function Wnt(e){return e.lineno!==void 0&&e.lineno>$nt||e.colno!==void 0&&e.colno>Gnt}function Xnt(e,t){let r=x2.get(e);if(r===void 0)return !1;for(let n=t[0];n<=t[1];n++)if(r[n]===void 0)return !1;return !0}function znt(e,t){if(!e.length)return [];let r=0,n=e[0];if(typeof n!="number")return [];let i=Foe(n,t),s=[];for(;;){if(r===e.length-1){s.push(i);break}let a=e[r+1];if(typeof a!="number")break;a<=i[1]?i[1]=a+t:(s.push(i),i=Foe(a,t)),r++;}return s}function Jnt(e,t,r){return new Promise((n,i)=>{let s=fs$1.createReadStream(e),a=readline.createInterface({input:s}),o=0,u=0,l=t[u];if(l===void 0){n();return}let c=l[0],p=l[1];function h(f){Boe.set(e,1),ui&&ce.error(`Failed to read file: ${e}. Error: ${f}`),a.close(),a.removeAllListeners(),n();}s.on("error",h),a.on("error",h),a.on("close",n),a.on("line",f=>{if(o++,!(o=p)){if(u===t.length-1){a.close(),a.removeAllListeners();return}u++;let d=t[u];if(d===void 0){a.close(),a.removeAllListeners();return}c=d[0],p=d[1];}});})}async function Qnt(e,t){let r={};if(t>0&&Ye([e,"access",s=>s.exception,"optionalAccess",s=>s.values])){for(let s of e.exception.values)if(Ye([s,"access",a=>a.stacktrace,"optionalAccess",a=>a.frames,"optionalAccess",a=>a.length]))for(let a=s.stacktrace.frames.length-1;a>=0;a--){let o=s.stacktrace.frames[a],u=Ye([o,"optionalAccess",c=>c.filename]);if(!o||typeof u!="string"||typeof o.lineno!="number"||Ynt(u)||Wnt(o))continue;r[u]||(r[u]=[]),r[u].push(o.lineno);}}let n=Object.keys(r);if(n.length==0)return e;let i=[];for(let s of n){if(Boe.get(s))continue;let a=r[s];if(!a)continue;a.sort((l,c)=>l-c);let o=znt(a,t);if(o.every(l=>Xnt(s,l)))continue;let u=Knt(x2,s,{});i.push(Jnt(s,o,u));}if(await Promise.all(i).catch(()=>{ui&&ce.log("Failed to read one or more source files and resolve context lines");}),t>0&&Ye([e,"access",s=>s.exception,"optionalAccess",s=>s.values]))for(let s of e.exception.values)s.stacktrace&&s.stacktrace.frames&&s.stacktrace.frames.length>0&&Znt(s.stacktrace.frames,t,x2);return e}function Znt(e,t,r){for(let n of e)if(n.filename&&n.context_line===void 0&&typeof n.lineno=="number"){let i=r.get(n.filename);if(i===void 0)continue;eit(n.lineno,n,t,i);}}function koe(e){delete e.pre_context,delete e.context_line,delete e.post_context;}function eit(e,t,r,n){if(t.lineno===void 0||n===void 0){ui&&ce.error("Cannot resolve context for frame with no lineno or file contents");return}t.pre_context=[];for(let s=joe(e,r);s{let t=e.frameContextLines!==void 0?e.frameContextLines:Vnt;return {name:Hnt,processEvent(r){return Qnt(r,t)}}},qoe=tit;var A2=PM(process.versions.node),Voe=A2.major;var d0="__SENTRY_ERROR_LOCAL_VARIABLES__";function Goe(e,t,r){let n=0,i=5,s=0;return setInterval(()=>{s===0?n>e&&(i*=2,r(i),i>86400&&(i=86400),s=i):(s-=1,s===0&&t()),n=0;},1e3).unref(),()=>{n+=1;}}function Hoe(e){return e!==void 0&&(e.length===0||e==="?"||e==="")}function $P(e,t){return e===t||Hoe(e)&&Hoe(t)}var nit="LyohIEBzZW50cnkvbm9kZSA4LjMwLjAgKGM0ZmUzMzcpIHwgaHR0cHM6Ly9naXRodWIuY29tL2dldHNlbnRyeS9zZW50cnktamF2YXNjcmlwdCAqLwppbXBvcnR7U2Vzc2lvbiBhcyBlfWZyb20ibm9kZTppbnNwZWN0b3IvcHJvbWlzZXMiO2ltcG9ydHt3b3JrZXJEYXRhIGFzIHR9ZnJvbSJub2RlOndvcmtlcl90aHJlYWRzIjtjb25zdCBuPSJfX1NFTlRSWV9FUlJPUl9MT0NBTF9WQVJJQUJMRVNfXyI7Y29uc3QgYT10O2Z1bmN0aW9uIGkoLi4uZSl7YS5kZWJ1ZyYmY29uc29sZS5sb2coIltMb2NhbFZhcmlhYmxlcyBXb3JrZXJdIiwuLi5lKX1hc3luYyBmdW5jdGlvbiBvKGUsdCxuLGEpe2NvbnN0IGk9YXdhaXQgZS5wb3N0KCJSdW50aW1lLmdldFByb3BlcnRpZXMiLHtvYmplY3RJZDp0LG93blByb3BlcnRpZXM6ITB9KTthW25dPWkucmVzdWx0LmZpbHRlcigoZT0+Imxlbmd0aCIhPT1lLm5hbWUmJiFpc05hTihwYXJzZUludChlLm5hbWUsMTApKSkpLnNvcnQoKChlLHQpPT5wYXJzZUludChlLm5hbWUsMTApLXBhcnNlSW50KHQubmFtZSwxMCkpKS5tYXAoKGU9PmUudmFsdWU/LnZhbHVlKSl9YXN5bmMgZnVuY3Rpb24gcyhlLHQsbixhKXtjb25zdCBpPWF3YWl0IGUucG9zdCgiUnVudGltZS5nZXRQcm9wZXJ0aWVzIix7b2JqZWN0SWQ6dCxvd25Qcm9wZXJ0aWVzOiEwfSk7YVtuXT1pLnJlc3VsdC5tYXAoKGU9PltlLm5hbWUsZS52YWx1ZT8udmFsdWVdKSkucmVkdWNlKCgoZSxbdCxuXSk9PihlW3RdPW4sZSkpLHt9KX1mdW5jdGlvbiBjKGUsdCl7ZS52YWx1ZSYmKCJ2YWx1ZSJpbiBlLnZhbHVlP3ZvaWQgMD09PWUudmFsdWUudmFsdWV8fG51bGw9PT1lLnZhbHVlLnZhbHVlP3RbZS5uYW1lXT1gPCR7ZS52YWx1ZS52YWx1ZX0+YDp0W2UubmFtZV09ZS52YWx1ZS52YWx1ZToiZGVzY3JpcHRpb24iaW4gZS52YWx1ZSYmImZ1bmN0aW9uIiE9PWUudmFsdWUudHlwZT90W2UubmFtZV09YDwke2UudmFsdWUuZGVzY3JpcHRpb259PmA6InVuZGVmaW5lZCI9PT1lLnZhbHVlLnR5cGUmJih0W2UubmFtZV09Ijx1bmRlZmluZWQ+IikpfWFzeW5jIGZ1bmN0aW9uIHIoZSx0KXtjb25zdCBuPWF3YWl0IGUucG9zdCgiUnVudGltZS5nZXRQcm9wZXJ0aWVzIix7b2JqZWN0SWQ6dCxvd25Qcm9wZXJ0aWVzOiEwfSksYT17fTtmb3IoY29uc3QgdCBvZiBuLnJlc3VsdClpZih0Py52YWx1ZT8ub2JqZWN0SWQmJiJBcnJheSI9PT10Py52YWx1ZS5jbGFzc05hbWUpe2NvbnN0IG49dC52YWx1ZS5vYmplY3RJZDthd2FpdCBvKGUsbix0Lm5hbWUsYSl9ZWxzZSBpZih0Py52YWx1ZT8ub2JqZWN0SWQmJiJPYmplY3QiPT09dD8udmFsdWU/LmNsYXNzTmFtZSl7Y29uc3Qgbj10LnZhbHVlLm9iamVjdElkO2F3YWl0IHMoZSxuLHQubmFtZSxhKX1lbHNlIHQ/LnZhbHVlJiZjKHQsYSk7cmV0dXJuIGF9bGV0IHU7KGFzeW5jIGZ1bmN0aW9uKCl7Y29uc3QgdD1uZXcgZTt0LmNvbm5lY3RUb01haW5UaHJlYWQoKSxpKCJDb25uZWN0ZWQgdG8gbWFpbiB0aHJlYWQiKTtsZXQgbz0hMTt0Lm9uKCJEZWJ1Z2dlci5yZXN1bWVkIiwoKCk9PntvPSExfSkpLHQub24oIkRlYnVnZ2VyLnBhdXNlZCIsKGU9PntvPSEwLGFzeW5jIGZ1bmN0aW9uKGUse3JlYXNvbjp0LGRhdGE6e29iamVjdElkOmF9LGNhbGxGcmFtZXM6aX0pe2lmKCJleGNlcHRpb24iIT09dCYmInByb21pc2VSZWplY3Rpb24iIT09dClyZXR1cm47aWYodT8uKCksbnVsbD09YSlyZXR1cm47Y29uc3Qgbz1bXTtmb3IobGV0IHQ9MDt0PGkubGVuZ3RoO3QrKyl7Y29uc3R7c2NvcGVDaGFpbjpuLGZ1bmN0aW9uTmFtZTphLHRoaXM6c309aVt0XSxjPW4uZmluZCgoZT0+ImxvY2FsIj09PWUudHlwZSkpLHU9Imdsb2JhbCIhPT1zLmNsYXNzTmFtZSYmcy5jbGFzc05hbWU/YCR7cy5jbGFzc05hbWV9LiR7YX1gOmE7aWYodm9pZCAwPT09Yz8ub2JqZWN0Lm9iamVjdElkKW9bdF09e2Z1bmN0aW9uOnV9O2Vsc2V7Y29uc3Qgbj1hd2FpdCByKGUsYy5vYmplY3Qub2JqZWN0SWQpO29bdF09e2Z1bmN0aW9uOnUsdmFyczpufX19cmV0dXJuIGF3YWl0IGUucG9zdCgiUnVudGltZS5jYWxsRnVuY3Rpb25PbiIse2Z1bmN0aW9uRGVjbGFyYXRpb246YGZ1bmN0aW9uKCkgeyB0aGlzLiR7bn0gPSAke0pTT04uc3RyaW5naWZ5KG8pfTsgfWAsc2lsZW50OiEwLG9iamVjdElkOmF9KSxhfSh0LGUucGFyYW1zKS50aGVuKChhc3luYyBlPT57byYmYXdhaXQgdC5wb3N0KCJEZWJ1Z2dlci5yZXN1bWUiKSxlJiZzZXRUaW1lb3V0KChhc3luYygpPT57YXdhaXQgdC5wb3N0KCJSdW50aW1lLnJlbGVhc2VPYmplY3QiLHtvYmplY3RJZDplfSl9KSwxZTMpfSksKGU9Pnt9KSl9KSksYXdhaXQgdC5wb3N0KCJEZWJ1Z2dlci5lbmFibGUiKTtjb25zdCBzPSExIT09YS5jYXB0dXJlQWxsRXhjZXB0aW9ucztpZihhd2FpdCB0LnBvc3QoIkRlYnVnZ2VyLnNldFBhdXNlT25FeGNlcHRpb25zIix7c3RhdGU6cz8iYWxsIjoidW5jYXVnaHQifSkscyl7Y29uc3QgZT1hLm1heEV4Y2VwdGlvbnNQZXJTZWNvbmR8fDUwO3U9ZnVuY3Rpb24oZSx0LG4pe2xldCBhPTAsaT01LG89MDtyZXR1cm4gc2V0SW50ZXJ2YWwoKCgpPT57MD09PW8/YT5lJiYoaSo9MixuKGkpLGk+ODY0MDAmJihpPTg2NDAwKSxvPWkpOihvLT0xLDA9PT1vJiZ0KCkpLGE9MH0pLDFlMykudW5yZWYoKSwoKT0+e2ErPTF9fShlLChhc3luYygpPT57aSgiUmF0ZS1saW1pdCBsaWZ0ZWQuIiksYXdhaXQgdC5wb3N0KCJEZWJ1Z2dlci5zZXRQYXVzZU9uRXhjZXB0aW9ucyIse3N0YXRlOiJhbGwifSl9KSwoYXN5bmMgZT0+e2koYFJhdGUtbGltaXQgZXhjZWVkZWQuIERpc2FibGluZyBjYXB0dXJpbmcgb2YgY2F1Z2h0IGV4Y2VwdGlvbnMgZm9yICR7ZX0gc2Vjb25kcy5gKSxhd2FpdCB0LnBvc3QoIkRlYnVnZ2VyLnNldFBhdXNlT25FeGNlcHRpb25zIix7c3RhdGU6InVuY2F1Z2h0In0pfSkpfX0pKCkuY2F0Y2goKGU9PntpKCJGYWlsZWQgdG8gc3RhcnQgZGVidWdnZXIiLGUpfSkpLHNldEludGVydmFsKCgoKT0+e30pLDFlNCk7";function $oe(...e){ce.log("[LocalVariables]",...e);}var Koe=(e={})=>{function t(s,a){let o=(Ye([s,"access",u=>u.stacktrace,"optionalAccess",u=>u.frames])||[]).filter(u=>u.function!=="new Promise");for(let u=0;uu.exception,"optionalAccess",u=>u.values])||[])t(o,a.originalException[d0]);a.originalException[d0]=void 0;}return s}async function n(){let s=await import('inspector');s.url()||s.open(0);}function i(s){let a=new worker_threads.Worker(new URL(`data:application/javascript;base64,${nit}`),{workerData:s,execArgv:[]});process.on("exit",()=>{a.terminate();}),a.once("error",o=>{$oe("Worker error",o);}),a.once("exit",o=>{$oe("Worker exit",o);}),a.unref();}return {name:"LocalVariablesAsync",setup(s){if(!s.getOptions().includeLocalVariables)return;let o={...e,debug:ce.isEnabled()};n().then(()=>{try{i(o);}catch(u){ce.error("Failed to start worker",u);}},u=>{ce.error("Failed to start inspector",u);});},processEvent(s,a){return r(s,a)}}};function Yoe(e){if(e!==void 0)return e.slice(-10).reduce((t,r)=>`${t},${r.function},${r.lineno},${r.colno}`,"")}function iit(e,t){if(t!==void 0)return Yoe(e(t,1))}function Woe(e){let t=[],r=!1;function n(a){t=[],!r&&(r=!0,e(a));}t.push(n);function i(a){t.push(a);}function s(a){let o=t.pop()||n;try{o(a);}catch{n(a);}}return {add:i,next:s}}var P2=class e{constructor(t){this._session=t;}static async create(t){if(t)return t;let r=await import('inspector');return new e(new r.Session)}configureAndConnect(t,r){this._session.connect(),this._session.on("Debugger.paused",n=>{t(n,()=>{this._session.post("Debugger.resume");});}),this._session.post("Debugger.enable"),this._session.post("Debugger.setPauseOnExceptions",{state:r?"all":"uncaught"});}setPauseOnExceptions(t){this._session.post("Debugger.setPauseOnExceptions",{state:t?"all":"uncaught"});}getLocalVariables(t,r){this._getProperties(t,n=>{let{add:i,next:s}=Woe(r);for(let a of n)if(Ye([a,"optionalAccess",o=>o.value,"optionalAccess",o=>o.objectId])&&Ye([a,"optionalAccess",o=>o.value,"access",o=>o.className])==="Array"){let o=a.value.objectId;i(u=>this._unrollArray(o,a.name,u,s));}else if(Ye([a,"optionalAccess",o=>o.value,"optionalAccess",o=>o.objectId])&&Ye([a,"optionalAccess",o=>o.value,"optionalAccess",o=>o.className])==="Object"){let o=a.value.objectId;i(u=>this._unrollObject(o,a.name,u,s));}else Ye([a,"optionalAccess",o=>o.value])&&i(o=>this._unrollOther(a,o,s));s({});});}_getProperties(t,r){this._session.post("Runtime.getProperties",{objectId:t,ownProperties:!0},(n,i)=>{r(n?[]:i.result);});}_unrollArray(t,r,n,i){this._getProperties(t,s=>{n[r]=s.filter(a=>a.name!=="length"&&!isNaN(parseInt(a.name,10))).sort((a,o)=>parseInt(a.name,10)-parseInt(o.name,10)).map(a=>Ye([a,"optionalAccess",o=>o.value,"optionalAccess",o=>o.value])),i(n);});}_unrollObject(t,r,n,i){this._getProperties(t,s=>{n[r]=s.map(a=>[a.name,Ye([a,"optionalAccess",o=>o.value,"optionalAccess",o=>o.value])]).reduce((a,[o,u])=>(a[o]=u,a),{}),i(n);});}_unrollOther(t,r,n){t.value&&("value"in t.value?t.value.value===void 0||t.value.value===null?r[t.name]=`<${t.value.value}>`:r[t.name]=t.value.value:"description"in t.value&&t.value.type!=="function"?r[t.name]=`<${t.value.description}>`:t.value.type==="undefined"&&(r[t.name]="")),n(r);}},sit="LocalVariables",ait=(e={},t)=>{let r=new Bu(20),n,i=!1;function s(o){let u=Yoe(Ye([o,"optionalAccess",p=>p.stacktrace,"optionalAccess",p=>p.frames]));if(u===void 0)return;let l=r.remove(u);if(l===void 0)return;let c=(Ye([o,"access",p=>p.stacktrace,"optionalAccess",p=>p.frames])||[]).filter(p=>p.function!=="new Promise");for(let p=0;pl.exception,"optionalAccess",l=>l.values])||[])s(u);return o}return {name:sit,setupOnce(){let o=Rt(),u=Ye([o,"optionalAccess",c=>c.getOptions,"call",c=>c()]);if(!Ye([u,"optionalAccess",c=>c.includeLocalVariables]))return;if(Voe<18){ce.log("The `LocalVariables` integration is only supported on Node >= v18.");return}P2.create(t).then(c=>{function p(f,{params:{reason:d,data:m,callFrames:y}},g){if(d!=="exception"&&d!=="promiseRejection"){g();return}Ye([n,"optionalCall",x=>x()]);let v=iit(f,Ye([m,"optionalAccess",x=>x.description]));if(v==null){g();return}let{add:E,next:S}=Woe(x=>{r.set(v,x),g();});for(let x=0;xX.type==="local"),V=D.className==="global"||!D.className?A:`${D.className}.${A}`;if(Ye([P,"optionalAccess",X=>X.object,"access",X=>X.objectId])===void 0)E(X=>{X[x]={function:V},S(X);});else {let X=P.object.objectId;E(oe=>Ye([c,"optionalAccess",le=>le.getLocalVariables,"call",le=>le(X,Be=>{oe[x]={function:V,vars:Be},S(oe);})]));}}S([]);}let h=e.captureAllExceptions!==!1;if(c.configureAndConnect((f,d)=>p(u.stackParser,f,d),h),h){let f=e.maxExceptionsPerSecond||50;n=Goe(f,()=>{ce.log("Local variables rate-limit lifted."),Ye([c,"optionalAccess",d=>d.setPauseOnExceptions,"call",d=>d(!0)]);},d=>{ce.log(`Local variables rate-limit exceeded. Disabling capturing of caught exceptions for ${d} seconds.`),Ye([c,"optionalAccess",m=>m.setPauseOnExceptions,"call",m=>m(!1)]);});}i=!0;},c=>{ce.log("The `LocalVariables` integration failed to start.",c);});},processEvent(o){return i?a(o):o},_getCachedFramesCount(){return r.size},_getFirstCachedFrame(){return r.values()[0]}}},Xoe=ait;var zoe=(e={})=>A2.major<19?Xoe(e):Koe(e);var C2,pit="Modules",fit=()=>({name:pit,processEvent(e){return e.modules={...e.modules,...mit()},e}}),Joe=fit;function hit(){try{return chunkTKGT252T_js.a.cache?Object.keys(chunkTKGT252T_js.a.cache):[]}catch{return []}}function dit(){let e=chunkTKGT252T_js.a.main&&chunkTKGT252T_js.a.main.paths||[],t=hit(),r={},n={};return t.forEach(i=>{let s=i,a=()=>{let o=s;if(s=ux.dirname(o),!s||o===s||n[o])return;if(e.indexOf(s)<0)return a();let u=ux.join(o,"package.json");if(n[o]=!0,!fs$1.existsSync(u))return a();try{let l=JSON.parse(fs$1.readFileSync(u,"utf8"));r[l.name]=l.version;}catch{}};a();}),r}function mit(){return C2||(C2=dit()),C2}var yit=2e3;function m0(e){Ki(()=>{console.error(e);});let t=Rt();if(t===void 0){ui&&ce.warn("No NodeClient was defined, we are exiting the process now."),global.process.exit(1);return}let r=t.getOptions(),n=r&&r.shutdownTimeout&&r.shutdownTimeout>0&&r.shutdownTimeout||yit;t.close(n).then(i=>{i||ui&&ce.warn("We reached the timeout for emptying the request buffer, still exiting now!"),global.process.exit(1);},i=>{ui&&ce.error(i);});}var git="OnUncaughtException",Qoe=(e={})=>{let t={exitEvenIfOtherHandlersAreRegistered:!1,...e};return {name:git,setup(r){global.process.on("uncaughtException",Sit(r,t));}}};function Sit(e,t){let n=!1,i=!1,s=!1,a,o=e.getOptions();return Object.assign(u=>{let l=m0;t.onFatalError?l=t.onFatalError:o.onFatalError&&(l=o.onFatalError);let p=global.process.listeners("uncaughtException").filter(f=>f.name!=="domainUncaughtExceptionClear"&&f.tag!=="sentry_tracingErrorCallback"&&f._errorHandler!==!0).length===0,h=t.exitEvenIfOtherHandlersAreRegistered||p;n?h&&(s?(ui&&ce.warn("uncaught exception after calling fatal error shutdown callback - this is bad! forcing shutdown"),m0(u)):i||(i=!0,setTimeout(()=>{s||(s=!0,l(a,u));},2e3))):(a=u,n=!0,Rt()===e&&ps(u,{originalException:u,captureContext:{level:"fatal"},mechanism:{handled:!1,type:"onuncaughtexception"}}),!s&&h&&(s=!0,l(u)));},{_errorHandler:!0})}var Tit="OnUnhandledRejection",Eit=(e={})=>{let t=e.mode||"warn";return {name:Tit,setup(r){global.process.on("unhandledRejection",bit(r,{mode:t}));}}},Zoe=Eit;function bit(e,t){return function(n,i){Rt()===e&&(ps(n,{originalException:i,captureContext:{extra:{unhandledPromiseRejection:!0}},mechanism:{handled:!1,type:"onunhandledrejection"}}),vit(n,t));}}function vit(e,t){let r="This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:";t.mode==="warn"?Ki(()=>{console.warn(r),console.error(e&&e.stack?e.stack:e);}):t.mode==="strict"&&(Ki(()=>{console.warn(r);}),m0(e));}var pue=chunkTKGT252T_js.e(cue(),1);function zP(){return typeof chunkTKGT252T_js.a<"u"}var fue="Express",hue=Mr(fue,()=>new pue.ExpressInstrumentation({requestHook(e){Xi(e,"auto.http.otel.express");let t=Ht(e).data||{},r=t["express.type"];r&&e.setAttribute(yn,`${r}.express`);let n=t["express.name"];typeof n=="string"&&e.updateName(n);},spanNameHook(e,t){if(Or()===Vu())return ui&&ce.warn("Isolation scope is still default isolation scope - skipping setting transactionName"),t;if(e.layerType==="request_handler"){let r=e.request,n=r.method?r.method.toUpperCase():"GET";Or().setTransactionName(`${n} ${e.route}`);}return t}})),Rit=()=>({name:fue,setupOnce(){hue();}}),due=Rit;var xue=chunkTKGT252T_js.e(_ue(),1);var Aue="Fastify",Pue=Mr(Aue,()=>new xue.FastifyInstrumentation({requestHook(e){$it(e);}})),Git=()=>({name:Aue,setupOnce(){Pue();}}),Cue=Git;function $it(e){let t=Ht(e).data||{},r=t["fastify.type"];if(t[yn]||!r)return;e.setAttributes({[gn]:"auto.http.otel.fastify",[yn]:`${r}.fastify`});let n=t["fastify.name"]||t["plugin.name"]||t["hook.name"];typeof n=="string"&&e.updateName(n.replace(/^fastify -> /,""));}var Xue=chunkTKGT252T_js.e(Wue(),1);var zue="Graphql",Jue=Mr(zue,(e={})=>{let t={ignoreResolveSpans:!0,ignoreTrivialResolveSpans:!0,useOperationNameForRootSpan:!0,...e};return new Xue.GraphQLInstrumentation({...t,responseHook(r){Xi(r,"auto.graphql.otel.graphql");let n=Ht(r).data||{},i=n["graphql.operation.type"],s=n["graphql.operation.name"];if(t.useOperationNameForRootSpan&&i){let a=_n(r),u=(Ht(a).data||{})[Ly]||[],l=s?`${i} ${s}`:`${i}`;Array.isArray(u)?(u.push(l),a.setAttribute(Ly,u)):u?a.setAttribute(Ly,[u,l]):a.setAttribute(Ly,l);}}})}),lst=(e={})=>({name:zue,setupOnce(){Jue(e);}}),Que=lst;var ule=chunkTKGT252T_js.e(ole(),1);var lle="Kafka",cle=Mr(lle,()=>new ule.KafkaJsInstrumentation({consumerHook(e){Xi(e,"auto.kafkajs.otel.consumer");},producerHook(e){Xi(e,"auto.kafkajs.otel.producer");}})),pst=()=>({name:lle,setupOnce(){cle();}}),ple=pst;var Tle=chunkTKGT252T_js.e(Sle(),1);var Ele="Mongo",ble=Mr(Ele,()=>new Tle.MongoDBInstrumentation({responseHook(e){Xi(e,"auto.db.otel.mongo");}})),mst=()=>({name:Ele,setupOnce(){ble();}}),vle=mst;var kle=chunkTKGT252T_js.e(Lle(),1);var Fle="Mongoose",Ble=Mr(Fle,()=>new kle.MongooseInstrumentation({responseHook(e){Xi(e,"auto.db.otel.mongoose");}})),Ast=()=>({name:Fle,setupOnce(){Ble();}}),jle=Ast;var zle=chunkTKGT252T_js.e(Xle(),1);var Jle="Mysql",Qle=Mr(Jle,()=>new zle.MySQLInstrumentation({})),Lst=()=>({name:Jle,setupOnce(){Qle();}}),Zle=Lst;var pce=chunkTKGT252T_js.e(cce(),1);var fce="Mysql2",hce=Mr(fce,()=>new pce.MySQL2Instrumentation({responseHook(e){Xi(e,"auto.db.otel.mysql2");}})),Kst=()=>({name:fce,setupOnce(){hce();}}),dce=Kst;var jce=chunkTKGT252T_js.e(xce(),1),Uce=chunkTKGT252T_js.e(Lce(),1);var iat=["get","set","setex"],Z2=["get","mget"],sat=["set","setex"];function O0(e,t){return e.includes(t.toLowerCase())}function eF(e){return O0(Z2,e)?"cache.get":O0(sat,e)?"cache.put":void 0}function aat(e,t){return t.some(r=>e.startsWith(r))}function kce(e,t){try{if(t.length===0)return;let r=i=>typeof i=="string"||typeof i=="number"||Buffer.isBuffer(i)?[i.toString()]:Array.isArray(i)?Qx(i.map(s=>r(s))):[""],n=t[0];return O0(iat,e)&&n!=null?r(n):Qx(t.map(i=>r(i)))}catch{return}}function Fce(e,t,r){if(!eF(e))return !1;for(let n of t)if(aat(n,r))return !0;return !1}function Bce(e){let t=r=>{try{return Buffer.isBuffer(r)?r.byteLength:typeof r=="string"?r.length:typeof r=="number"?r.toString().length:r==null?0:JSON.stringify(r).length}catch{return}};return Array.isArray(e)?e.reduce((r,n)=>{let i=t(n);return typeof i=="number"?r!==void 0?r+i:i:r},0):t(e)}var qce="Redis",tF={},Vce=(e,t,r,n)=>{e.setAttribute(gn,"auto.db.otel.redis");let i=kce(t,r),s=eF(t);if(!i||!s||!Ye([tF,"optionalAccess",c=>c.cachePrefixes])||!Fce(t,i,tF.cachePrefixes))return;let a=Ye([Ht,"call",c=>c(e),"access",c=>c.data,"optionalAccess",c=>c["net.peer.name"]]),o=Ye([Ht,"call",c=>c(e),"access",c=>c.data,"optionalAccess",c=>c["net.peer.port"]]);o&&a&&e.setAttributes({"network.peer.address":a,"network.peer.port":o});let u=Bce(n);u&&e.setAttribute(Rk,u),O0(Z2,t)&&u!==void 0&&e.setAttribute(Dk,u>0),e.setAttributes({[yn]:s,[Nk]:i});let l=i.join(", ");e.updateName(za(l,1024));},oat=Mr("IORedis",()=>new jce.IORedisInstrumentation({responseHook:Vce})),uat=Mr("Redis-4",()=>new Uce.RedisInstrumentation({responseHook:Vce})),Hce=Object.assign(()=>{oat(),uat();},{id:qce}),lat=(e={})=>({name:qce,setupOnce(){tF=e,Hce();}}),Gce=lat;var Zce=chunkTKGT252T_js.e(Jce(),1);jn();Rn();var Sat="sentryPatched";function ag(e){return e.sentryPatched?!0:(ni(e,Sat,!0),!1)}function pf(e,t=void 0){return {name:Yi(t,()=>e.name),attributes:{[yn]:"middleware.nestjs",[gn]:"auto.middleware.nestjs"}}}function aF(e,t){t&&(e.subscribe=new Proxy(e.subscribe,{apply:(r,n,i)=>$l(t,()=>{let s=r.apply(n,i);return s.add(()=>t.end()),s})}));}function Qce(e,t,r){return new Proxy(e,{apply:(n,i,s)=>(t.end(),r?$l(r,()=>Reflect.apply(n,i,s)):Reflect.apply(n,i,s))})}var oF=[">=8.0.0 <11"],og=class e extends by{static __initStatic(){this.COMPONENT="@nestjs/common";}static __initStatic2(){this.COMMON_ATTRIBUTES={component:e.COMPONENT};}constructor(t={}){super("sentry-nestjs",ri,t);}init(){let t=new cP(e.COMPONENT,oF);return t.files.push(this._getInjectableFileInstrumentation(oF),this._getCatchFileInstrumentation(oF)),t}_getInjectableFileInstrumentation(t){return new ZE("@nestjs/common/decorators/core/injectable.decorator.js",t,r=>(UE(r.Injectable)&&this._unwrap(r,"Injectable"),this._wrap(r,"Injectable",this._createWrapInjectable()),r),r=>{this._unwrap(r,"Injectable");})}_getCatchFileInstrumentation(t){return new ZE("@nestjs/common/decorators/core/catch.decorator.js",t,r=>(UE(r.Catch)&&this._unwrap(r,"Catch"),this._wrap(r,"Catch",this._createWrapCatch()),r),r=>{this._unwrap(r,"Catch");})}_createWrapInjectable(){return function(r){return function(i){return function(s){if(typeof s.prototype.use=="function"&&!s.__SENTRY_INTERNAL__){if(ag(s))return r(i)(s);s.prototype.use=new Proxy(s.prototype.use,{apply:(a,o,u)=>{let[l,c,p,...h]=u;if(!l||!c||!p||typeof p!="function")return a.apply(o,u);let f=Kh();return s0(pf(s),d=>{let m=Qce(p,d,f);return a.apply(o,[l,c,m,h])})}});}if(typeof s.prototype.canActivate=="function"&&!s.__SENTRY_INTERNAL__){if(ag(s))return r(i)(s);s.prototype.canActivate=new Proxy(s.prototype.canActivate,{apply:(a,o,u)=>u[0]?Iy(pf(s),()=>a.apply(o,u)):a.apply(o,u)});}if(typeof s.prototype.transform=="function"&&!s.__SENTRY_INTERNAL__){if(ag(s))return r(i)(s);s.prototype.transform=new Proxy(s.prototype.transform,{apply:(a,o,u)=>{let l=u[0],c=u[1];return !l||!c?a.apply(o,u):Iy(pf(s),()=>a.apply(o,u))}});}if(typeof s.prototype.intercept=="function"&&!s.__SENTRY_INTERNAL__){if(ag(s))return r(i)(s);s.prototype.intercept=new Proxy(s.prototype.intercept,{apply:(a,o,u)=>{let l=u[0],c=u[1],p=Kh(),h;return !l||!c||typeof c.handle!="function"?a.apply(o,u):s0(pf(s),f=>{c.handle=new Proxy(c.handle,{apply:(m,y,g)=>{if(f.end(),p)return $l(p,()=>{let v=Reflect.apply(m,y,g);return l._sentryInterceptorInstrumented||(ni(l,"_sentryInterceptorInstrumented",!0),h=a0(pf(s,"Interceptors - After Route"))),v});{let v=Reflect.apply(m,y,g);return l._sentryInterceptorInstrumented||(ni(l,"_sentryInterceptorInstrumented",!0),h=a0(pf(s,"Interceptors - After Route"))),v}}});let d;try{d=a.apply(o,u);}catch(m){throw Ye([f,"optionalAccess",y=>y.end,"call",y=>y()]),Ye([h,"optionalAccess",y=>y.end,"call",y=>y()]),m}return h?aa(d)?d.then(m=>(aF(m,Yi(h,()=>p)),m),m=>{throw Ye([f,"optionalAccess",y=>y.end,"call",y=>y()]),Ye([h,"optionalAccess",y=>y.end,"call",y=>y()]),m}):(typeof d.subscribe=="function"&&aF(d,Yi(h,()=>p)),d):d})}});}return r(i)(s)}}}}_createWrapCatch(){return function(r){return function(...i){return function(s){if(typeof s.prototype.catch=="function"&&!s.__SENTRY_INTERNAL__){if(ag(s))return r(...i)(s);s.prototype.catch=new Proxy(s.prototype.catch,{apply:(a,o,u)=>{let l=u[0],c=u[1];return !l||!c?a.apply(o,u):Iy(pf(s),()=>a.apply(o,u))}});}return r(...i)(s)}}}}};og.__initStatic();og.__initStatic2();var epe="Nest",Tat=Mr("Nest-Core",()=>new Zce.NestInstrumentation),Eat=Mr("Nest-Common",()=>new og),tpe=Object.assign(()=>{Tat(),Eat();},{id:epe}),bat=()=>({name:epe,setupOnce(){tpe();}}),rpe=bat;var Spe=chunkTKGT252T_js.e(gpe(),1);var Tpe="Postgres",Epe=Mr(Tpe,()=>new Spe.PgInstrumentation({requireParentSpan:!0,requestHook(e){Xi(e,"auto.db.otel.postgres");}})),Lat=()=>({name:Tpe,setupOnce(){Epe();}}),bpe=Lat;var Ipe=chunkTKGT252T_js.e(wpe(),1);var Ope="Hapi",Dpe=Mr(Ope,()=>new Ipe.HapiInstrumentation),Kat=()=>({name:Ope,setupOnce(){Dpe();}}),Npe=Kat;var Gpe=chunkTKGT252T_js.e(Hpe(),1);dn();var $pe="Koa",Kpe=Mr($pe,()=>new Gpe.KoaInstrumentation({requestHook(e,t){if(eot(e),Or()===Vu()){ui&&ce.warn("Isolation scope is default isolation scope - skipping setting transactionName");return}let r=Ht(e).data,n=r&&r[NE],i=Ye([t,"optionalAccess",s=>s.context,"optionalAccess",s=>s.request,"optionalAccess",s=>s.method,"optionalAccess",s=>s.toUpperCase,"call",s=>s()])||"GET";n&&Or().setTransactionName(`${i} ${n}`);}})),Zat=()=>({name:$pe,setupOnce(){Kpe();}}),Ype=Zat;function eot(e){e.setAttribute(gn,"auto.http.otel.koa");let t=Ht(e).data||{},r=t["koa.type"];r&&e.setAttribute(yn,`${r}.koa`);let n=t["koa.name"];typeof n=="string"&&e.updateName(n||"< unknown >");}var rfe=chunkTKGT252T_js.e(tfe(),1);var nfe="Connect",ife=Mr(nfe,()=>new rfe.ConnectInstrumentation),pot=()=>({name:nfe,setupOnce(){ife();}}),sfe=pot;var vF="Spotlight",hot=(e={})=>{let t={sidecarUrl:e.sidecarUrl||"http://localhost:8969/stream"};return {name:vF,setup(r){typeof process=="object"&&process.env&&process.env.NODE_ENV!=="development"&&ce.warn("[Spotlight] It seems you're not in dev mode. Do you really want to have Spotlight enabled?"),dot(r,t);}}},afe=hot;function dot(e,t){let r=mot(t.sidecarUrl);if(!r)return;let n=0;e.on("beforeEnvelope",i=>{if(n>3){ce.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests");return}let s=mE(i),o=yot()({method:"POST",path:r.pathname,hostname:r.hostname,port:r.port,headers:{"Content-Type":"application/x-sentry-envelope"}},u=>{u.statusCode&&u.statusCode>=200&&u.statusCode<400&&(n=0),u.on("data",()=>{}),u.on("end",()=>{}),u.setEncoding("utf8");});o.on("error",()=>{n++,ce.warn("[Spotlight] Failed to send envelope to Spotlight Sidecar");}),o.write(s),o.end();});}function mot(e){try{return new URL(`${e}`)}catch{ce.warn(`[Spotlight] Invalid sidecar URL: ${e}`);return}}function yot(){let{request:e}=j1__namespace;return got(e)?e.__sentry_original__:e}function got(e){return "__sentry_original__"in e}var pfe=chunkTKGT252T_js.e(cfe(),1);var ffe="GenericPool",hfe=Mr(ffe,()=>new pfe.GenericPoolInstrumentation({})),Eot=()=>({name:ffe,setupOnce(){hfe();},setup(e){e.on("spanStart",t=>{let n=Ht(t).description;(n==="generic-pool.aquire"||n==="generic-pool.acquire")&&t.setAttribute(gn,"auto.db.otel.generic_pool");});}}),dfe=Eot;var Sfe=chunkTKGT252T_js.e(gfe(),1);var Tfe=aoe(Sfe.AsyncLocalStorageContextManager);function Efe(){return [due(),Cue(),Que(),vle(),jle(),Zle(),dce(),Gce(),bpe(),rpe(),Npe(),Ype(),sfe(),dfe(),ple()]}var Ju=Symbol("AgentBaseInternalState"),FC=class extends j1__namespace.Agent{constructor(t){super(t),this[Ju]={};}isSecureEndpoint(t){if(t){if(typeof t.secureEndpoint=="boolean")return t.secureEndpoint;if(typeof t.protocol=="string")return t.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(` `).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}createSocket(t,r,n){let i={...r,secureEndpoint:this.isSecureEndpoint(r)};Promise.resolve().then(()=>this.connect(t,i)).then(s=>{if(s instanceof j1__namespace.Agent)return s.addRequest(t,i);this[Ju].currentSocket=s,super.createSocket(t,r,n);},n);}createConnection(){let t=this[Ju].currentSocket;if(this[Ju].currentSocket=void 0,!t)throw new Error("No socket was returned in the `connect()` function");return t}get defaultPort(){return Yi(this[Ju].defaultPort,()=>this.protocol==="https:"?443:80)}set defaultPort(t){this[Ju]&&(this[Ju].defaultPort=t);}get protocol(){return Yi(this[Ju].protocol,()=>this.isSecureEndpoint()?"https:":"http:")}set protocol(t){this[Ju]&&(this[Ju].protocol=t);}};function BC(...e){ce.log("[https-proxy-agent:parse-proxy-response]",...e);}function bfe(e){return new Promise((t,r)=>{let n=0,i=[];function s(){let c=e.read();c?l(c):e.once("readable",s);}function a(){e.removeListener("end",o),e.removeListener("error",u),e.removeListener("readable",s);}function o(){a(),BC("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"));}function u(c){a(),BC("onerror %o",c),r(c);}function l(c){i.push(c),n+=c.length;let p=Buffer.concat(i,n),h=p.indexOf(`\r \r `);if(h===-1){BC("have not received end of HTTP headers yet..."),s();return}let f=p.slice(0,h).toString("ascii").split(`\r `),d=f.shift();if(!d)return e.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=d.split(" "),y=+(m[1]||0),g=m.slice(2).join(" "),v={};for(let E of f){if(!E)continue;let S=E.indexOf(":");if(S===-1)return e.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${E}"`));let x=E.slice(0,S).toLowerCase(),b=E.slice(S+1).trimStart(),A=v[x];typeof A=="string"?v[x]=[A,b]:Array.isArray(A)?A.push(b):v[x]=b;}BC("got proxy server response: %o %o",d,v),a(),t({connect:{statusCode:y,statusText:g,headers:v},buffered:p});}e.on("error",u),e.on("end",o),s();})}function V0(...e){ce.log("[https-proxy-agent]",...e);}var H0=class extends FC{static __initStatic(){this.protocols=["http","https"];}constructor(t,r){super(r),this.options={},this.proxy=typeof t=="string"?new URL(t):t,this.proxyHeaders=Yi(Ye([r,"optionalAccess",s=>s.headers]),()=>({})),V0("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?vfe(r,"headers"):null,host:n,port:i};}async connect(t,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let i;if(n.protocol==="https:"){V0("Creating `tls.Socket`: %o",this.connectOpts);let h=this.connectOpts.servername||this.connectOpts.host;i=OF__namespace.connect({...this.connectOpts,servername:h&&nc__namespace.isIP(h)?void 0:h});}else V0("Creating `net.Socket`: %o",this.connectOpts),i=nc__namespace.connect(this.connectOpts);let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=nc__namespace.isIPv6(r.host)?`[${r.host}]`:r.host,o=`CONNECT ${a}:${r.port} HTTP/1.1\r `;if(n.username||n.password){let h=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`;}s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(s))o+=`${h}: ${s[h]}\r `;let u=bfe(i);i.write(`${o}\r `);let{connect:l,buffered:c}=await u;if(t.emit("proxyConnect",l),this.emit("proxyConnect",l,t),l.statusCode===200){if(t.once("socket",Dot),r.secureEndpoint){V0("Upgrading socket connection to TLS");let h=r.servername||r.host;return OF__namespace.connect({...vfe(r,"host","path","port"),socket:i,servername:nc__namespace.isIP(h)?void 0:h})}return i}i.destroy();let p=new nc__namespace.Socket({writable:!1});return p.readable=!0,t.once("socket",h=>{V0("Replaying proxy buffer for failed request"),h.push(c),h.push(null);}),p}};H0.__initStatic();function Dot(e){e.resume();}function vfe(e,...t){let r={},n;for(n in e)t.includes(n)||(r[n]=e[n]);return r}var kot=1024*32;function Fot(e){return new xf.Readable({read(){this.push(e),this.push(null);}})}function _fe(e){let t;try{t=new URL(e.url);}catch{return Ki(()=>{console.warn("[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used.");}),p0(e,()=>Promise.resolve({}))}let r=t.protocol==="https:",n=Bot(t,e.proxy||(r?process.env.https_proxy:void 0)||process.env.http_proxy),i=r?Rot__namespace:j1__namespace,s=e.keepAlive===void 0?!1:e.keepAlive,a=n?new H0(n):new i.Agent({keepAlive:s,maxSockets:30,timeout:2e3}),o=jot(e,Yi(e.httpModule,()=>i),a);return p0(e,o)}function Bot(e,t){let{no_proxy:r}=process.env;if(!(r&&r.split(",").some(i=>e.host.endsWith(i)||e.hostname.endsWith(i))))return t}function jot(e,t,r){let{hostname:n,pathname:i,port:s,protocol:a,search:o}=new URL(e.url);return function(l){return new Promise((c,p)=>{jk(()=>{let h=Fot(l.body),f={...e.headers};l.body.length>kot&&(f["content-encoding"]="gzip",h=h.pipe(Hg.createGzip()));let d=t.request({method:"POST",agent:r,headers:f,hostname:n,path:`${i}${o}`,port:s,protocol:a,ca:e.caCerts},m=>{m.on("data",()=>{}),m.on("end",()=>{}),m.setEncoding("utf8");let y=Yi(m.headers["retry-after"],()=>null),g=Yi(m.headers["x-sentry-rate-limits"],()=>null);c({statusCode:m.statusCode,headers:{"retry-after":y,"x-sentry-rate-limits":Array.isArray(g)?g[0]||null:g}});});d.on("error",p),h.pipe(d);});})}}var Uot=new Set(["false","f","n","no","off","0"]),qot=new Set(["true","t","y","yes","on","1"]);function DF(e,t){let r=String(e).toLowerCase();return Uot.has(r)?!1:qot.has(r)?!0:t&&t.strict?null:!!e}function xfe(e){return e.replace(/^[A-Z]:/,"").replace(/\\/g,"/")}function Afe(e=process.argv[1]?wM(process.argv[1]):process.cwd(),t=ux.sep==="\\"){let r=t?xfe(e):e;return n=>{if(!n)return;let i=t?xfe(n):n,{dir:s,base:a,ext:o}=ux.posix.parse(i);(o===".js"||o===".mjs"||o===".cjs")&&(a=a.slice(0,o.length*-1)),s||(s=".");let u=s.lastIndexOf("/node_modules");if(u>-1)return `${s.slice(u+14).replace(/\//g,".")}:${a}`;if(s.startsWith(r)){let l=s.slice(r.length+1).replace(/\//g,".");return l&&(l+=":"),l+=a,l}return a}}function Pfe(e){return "15.0.0"}var Cfe=nA(MM(Afe()));pt();var Kot=6e4,jC=class extends c0{constructor(t){let r={...t,platform:"node",runtime:{name:"node",version:global.process.version},serverName:t.serverName||global.process.env.SENTRY_NAME||wi__namespace.hostname()};Yk(r,"node"),ce.log(`Initializing Sentry: process: ${process.pid}, thread: ${worker_threads.isMainThread?"main":`worker-${worker_threads.threadId}`}.`),super(r);}get tracer(){if(this._tracer)return this._tracer;let t="@sentry/node",r=ri,n=qt.getTracer(t,r);return this._tracer=n,n}async flush(t){let r=this.traceProvider,n=Ye([r,"optionalAccess",i=>i.activeSpanProcessor]);return n&&await n.forceFlush(),this.getOptions().sendClientReports&&this._flushOutcomes(),super.flush(t)}close(t){return this._clientReportInterval&&clearInterval(this._clientReportInterval),this._clientReportOnExitFlushListener&&process.off("beforeExit",this._clientReportOnExitFlushListener),super.close(t)}startClientReportTracking(){let t=this.getOptions();t.sendClientReports&&(this._clientReportOnExitFlushListener=()=>{this._flushOutcomes();},this._clientReportInterval=setInterval(()=>{ui&&ce.log("Flushing client reports based on interval."),this._flushOutcomes();},Yi(t.clientReportFlushInterval,()=>Kot)).unref(),process.on("beforeExit",this._clientReportOnExitFlushListener));}};pt();n2();LP();dn();var Ife=chunkTKGT252T_js.e(Sk(),1);function Ofe(e){e.getOptions().debug&&zot();let t=Xot(e);e.traceProvider=t;}function Wot(e){if(Ye([e,"optionalAccess",t=>t.onlyIncludeInstrumentedModules])){let{addHookMessagePort:t}=(0, Ife.createAddHookMessageChannel)();return {data:{addHookMessagePort:t,include:e.include||[]},transferList:[t]}}return {data:e}}function Dfe(e){let[t=0,r=0]=process.versions.node.split(".").map(Number);if(t>=22||t===20&&r>=6||t===18&&r>=19){let n=typeof (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('out.js', document.baseURI).href))<"u"?(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('out.js', document.baseURI).href)):void 0;if(!Bt._sentryEsmLoaderHookRegistered&&n)try{Yot__default.default.register("import-in-the-middle/hook.mjs",n,Wot(e)),Bt._sentryEsmLoaderHookRegistered=!0;}catch(i){ce.warn("Failed to register ESM hook",i);}}else Ki(()=>{console.warn('[Sentry] You are using Node.js in ESM mode ("import syntax"). The Sentry Node.js SDK is not compatible with ESM in Node.js versions before 18.19.0 or before 20.6.0. Please either build your application with CommonJS ("require() syntax"), or use version 7.x of the Sentry Node.js SDK.');});}function Xot(e){let t=new i2({sampler:new BP(e),resource:new Ry({[jL]:"node",[FL]:"sentry",[UL]:ri}),forceFlushTimeoutMillis:500});return t.addSpanProcessor(new FP({timeout:e.getOptions().maxSpanWaitDuration})),t.register({propagator:new kP,contextManager:new Tfe}),t}function zot(){let e=new Proxy(ce,{get(t,r,n){return Reflect.get(t,r==="verbose"?"debug":r,n)}});_t.disable(),_t.setLogger(e,ln.DEBUG);}function Jot(){return zP()?[Joe()]:[]}function Nfe(){return [AP(),_P(),PP(),CP(),Noe(),Soe(),Ioe(),Qoe(),Zoe(),qoe(),zoe(),Loe(),...Jot()]}function Rfe(e){return [...Nfe(),...Qot(e)?Efe():[]]}function Qot(e){return eu(e)?e.enableTracing||e.tracesSampleRate!=null||"tracesSampler"in e:!1}function Zot(e={}){return eut(e,Rfe)}function eut(e={},t){let r=tut(e,t);r.debug===!0&&(ui?ce.enable():Ki(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");})),!zP()&&r.registerEsmLoaderHooks!==!1&&Dfe(r.registerEsmLoaderHooks===!0?void 0:r.registerEsmLoaderHooks),soe(),Zr().update(r.initialScope),r.spotlight&&!r.integrations.some(({name:s})=>s===vF)&&r.integrations.push(afe({sidecarUrl:typeof r.spotlight=="string"?r.spotlight:void 0}));let i=new jC(r);return Zr().setClient(i),i.init(),ce.log(`Running in ${zP()?"CommonJS":"ESM"} mode.`),r.autoSessionTracking&&sut(),i.startClientReportTracking(),iut(),r.skipOpenTelemetrySetup||(Ofe(i),Mfe()),Qae(i),ioe(i),i}function Mfe(){if(!ui)return;let e=toe(),t=["SentryContextManager","SentryPropagator"];eu()&&t.push("SentrySpanProcessor");for(let r of t)e.includes(r)||ce.error(`You have to set up the ${r}. Without this, the OpenTelemetry & Sentry integration will not work properly.`);e.includes("SentrySampler")||ce.warn("You have to set up the SentrySampler. Without this, the OpenTelemetry & Sentry integration may still work, but sample rates set for the Sentry SDK will not be respected. If you use a custom sampler, make sure to use `wrapSamplingDecision`.");}function tut(e,t){let r=rut(e.release),n=typeof r!="string"?!1:e.autoSessionTracking===void 0?!0:e.autoSessionTracking;if(e.spotlight==null){let l=DF(process.env.SENTRY_SPOTLIGHT,{strict:!0});l==null?e.spotlight=process.env.SENTRY_SPOTLIGHT:e.spotlight=l;}let i=nut(e.tracesSampleRate),s=Zt({transport:_fe,dsn:process.env.SENTRY_DSN,environment:"production",sendClientReports:!0}),a=Zt({release:r,autoSessionTracking:n,tracesSampleRate:i}),o={...s,...e,...a};return e.defaultIntegrations===void 0&&(e.defaultIntegrations=t(o)),{...o,stackParser:EM(e.stackParser||Cfe),integrations:Gk({defaultIntegrations:e.defaultIntegrations,integrations:e.integrations})}}function rut(e){if(e!==void 0)return e;let t=Pfe();return t}function nut(e){if(e!==void 0)return e;let t=process.env.SENTRY_TRACES_SAMPLE_RATE;if(!t)return;let r=parseFloat(t);return isFinite(r)?r:void 0}function iut(){if(DF(process.env.SENTRY_USE_ENVIRONMENT)!==!1){let e=process.env.SENTRY_TRACE,t=process.env.SENTRY_BAGGAGE,r=Jm(e,t);Zr().setPropagationContext(r);}}function sut(){let e=Rt();e&&e.getOptions().autoSessionTracking&&e.initSessionFlusher(),EP(),process.on("beforeExit",()=>{let t=Or().getSession();t&&t.status!=="ok"&&l0();});}var Xqe=chunkTKGT252T_js.e(hSe());chunkHZVCNUTP_js.c();var wTe=chunkTKGT252T_js.e(Ug());var CTe=chunkTKGT252T_js.e(Ug());function Wpt(e){if(!/^data:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");let t=e.indexOf(",");if(t===-1||t<=4)throw new TypeError("malformed data: URI");let r=e.substring(5,t).split(";"),n="",i=!1,s=r[0]||"text/plain",a=s;for(let c=1;ctypeof e=="object"&&typeof e.append=="function"&&typeof e.delete=="function"&&typeof e.get=="function"&&typeof e.getAll=="function"&&typeof e.has=="function"&&typeof e.set=="function"&&typeof e.sort=="function"&&e[k1]==="URLSearchParams",rb=e=>e&&typeof e=="object"&&typeof e.arrayBuffer=="function"&&typeof e.type=="string"&&typeof e.stream=="function"&&typeof e.constructor=="function"&&/^(Blob|File)$/.test(e[k1]),bSe=e=>typeof e=="object"&&(e[k1]==="AbortSignal"||e[k1]==="EventTarget"),vSe=(e,t)=>{let r=new URL(t).hostname,n=new URL(e).hostname;return r===n||r.endsWith(`.${n}`)},_Se=(e,t)=>{let r=new URL(t).protocol,n=new URL(e).protocol;return r===n};var zpt=Doe.promisify(xf__default.default.pipeline),ma=Symbol("Body internals"),rl=class{constructor(t,{size:r=0}={}){let n=null;t===null?t=null:i3(t)?t=buffer.Buffer.from(t.toString()):rb(t)||buffer.Buffer.isBuffer(t)||(Doe.types.isAnyArrayBuffer(t)?t=buffer.Buffer.from(t):ArrayBuffer.isView(t)?t=buffer.Buffer.from(t.buffer,t.byteOffset,t.byteLength):t instanceof xf__default.default||(t instanceof chunkO2POOKSN_js.c?(t=chunkO2POOKSN_js.d(t),n=t.type.split("=")[1]):t=buffer.Buffer.from(String(t))));let i=t;buffer.Buffer.isBuffer(t)?i=xf__default.default.Readable.from(t):rb(t)&&(i=xf__default.default.Readable.from(t.stream())),this[ma]={body:t,stream:i,boundary:n,disturbed:!1,error:null},this.size=r,t instanceof xf__default.default&&t.on("error",s=>{let a=s instanceof fc?s:new da(`Invalid response body while trying to fetch ${this.url}: ${s.message}`,"system",s);this[ma].error=a;});}get body(){return this[ma].stream}get bodyUsed(){return this[ma].disturbed}async arrayBuffer(){let{buffer:t,byteOffset:r,byteLength:n}=await s3(this);return t.slice(r,r+n)}async formData(){let t=this.headers.get("content-type");if(t.startsWith("application/x-www-form-urlencoded")){let n=new chunkO2POOKSN_js.c,i=new URLSearchParams(await this.text());for(let[s,a]of i)n.append(s,a);return n}let{toFormData:r}=await import('./multipart-parser-6AKE4G7O.js');return r(this.body,t)}async blob(){let t=this.headers&&this.headers.get("content-type")||this[ma].body&&this[ma].body.type||"",r=await this.arrayBuffer();return new chunkO2POOKSN_js.a([r],{type:t})}async json(){let t=await this.text();return JSON.parse(t)}async text(){let t=await s3(this);return new TextDecoder().decode(t)}buffer(){return s3(this)}};rl.prototype.buffer=Doe.deprecate(rl.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(rl.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:Doe.deprecate(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});async function s3(e){if(e[ma].disturbed)throw new TypeError(`body used already for: ${e.url}`);if(e[ma].disturbed=!0,e[ma].error)throw e[ma].error;let{body:t}=e;if(t===null)return buffer.Buffer.alloc(0);if(!(t instanceof xf__default.default))return buffer.Buffer.alloc(0);let r=[],n=0;try{for await(let i of t){if(e.size>0&&n+i.length>e.size){let s=new da(`content size at ${e.url} over limit: ${e.size}`,"max-size");throw t.destroy(s),s}n+=i.length,r.push(i);}}catch(i){throw i instanceof fc?i:new da(`Invalid response body while trying to fetch ${e.url}: ${i.message}`,"system",i)}if(t.readableEnded===!0||t._readableState.ended===!0)try{return r.every(i=>typeof i=="string")?buffer.Buffer.from(r.join("")):buffer.Buffer.concat(r,n)}catch(i){throw new da(`Could not create Buffer from response body for ${e.url}: ${i.message}`,"system",i)}else throw new da(`Premature close of server response while trying to fetch ${e.url}`)}var qg=(e,t)=>{let r,n,{body:i}=e[ma];if(e.bodyUsed)throw new Error("cannot clone body after it is used");return i instanceof xf__default.default&&typeof i.getBoundary!="function"&&(r=new xf.PassThrough({highWaterMark:t}),n=new xf.PassThrough({highWaterMark:t}),i.pipe(r),i.pipe(n),e[ma].stream=r,i=n),i},Jpt=Doe.deprecate(e=>e.getBoundary(),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),F1=(e,t)=>e===null?null:typeof e=="string"?"text/plain;charset=UTF-8":i3(e)?"application/x-www-form-urlencoded;charset=UTF-8":rb(e)?e.type||null:buffer.Buffer.isBuffer(e)||Doe.types.isAnyArrayBuffer(e)||ArrayBuffer.isView(e)?null:e instanceof chunkO2POOKSN_js.c?`multipart/form-data; boundary=${t[ma].boundary}`:e&&typeof e.getBoundary=="function"?`multipart/form-data;boundary=${Jpt(e)}`:e instanceof xf__default.default?null:"text/plain;charset=UTF-8",PSe=e=>{let{body:t}=e[ma];return t===null?0:rb(t)?t.size:buffer.Buffer.isBuffer(t)?t.length:t&&typeof t.getLengthSync=="function"&&t.hasKnownLength&&t.hasKnownLength()?t.getLengthSync():null},CSe=async(e,{body:t})=>{t===null?e.end():await zpt(t,e);};var B1=typeof j1__namespace.default.validateHeaderName=="function"?j1__namespace.default.validateHeaderName:e=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(e)){let t=new TypeError(`Header name must be a valid HTTP token [${e}]`);throw Object.defineProperty(t,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),t}},o3=typeof j1__namespace.default.validateHeaderValue=="function"?j1__namespace.default.validateHeaderValue:(e,t)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(t)){let r=new TypeError(`Invalid character in header content ["${e}"]`);throw Object.defineProperty(r,"code",{value:"ERR_INVALID_CHAR"}),r}},go=class e extends URLSearchParams{constructor(t){let r=[];if(t instanceof e){let n=t.raw();for(let[i,s]of Object.entries(n))r.push(...s.map(a=>[i,a]));}else if(t!=null)if(typeof t=="object"&&!Doe.types.isBoxedPrimitive(t)){let n=t[Symbol.iterator];if(n==null)r.push(...Object.entries(t));else {if(typeof n!="function")throw new TypeError("Header pairs must be iterable");r=[...t].map(i=>{if(typeof i!="object"||Doe.types.isBoxedPrimitive(i))throw new TypeError("Each header pair must be an iterable object");return [...i]}).map(i=>{if(i.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return [...i]});}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence> or record)");return r=r.length>0?r.map(([n,i])=>(B1(n),o3(n,String(i)),[String(n).toLowerCase(),String(i)])):void 0,super(r),new Proxy(this,{get(n,i,s){switch(i){case"append":case"set":return (a,o)=>(B1(a),o3(a,String(o)),URLSearchParams.prototype[i].call(n,String(a).toLowerCase(),String(o)));case"delete":case"has":case"getAll":return a=>(B1(a),URLSearchParams.prototype[i].call(n,String(a).toLowerCase()));case"keys":return ()=>(n.sort(),new Set(URLSearchParams.prototype.keys.call(n)).keys());default:return Reflect.get(n,i,s)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(t){let r=this.getAll(t);if(r.length===0)return null;let n=r.join(", ");return /^content-encoding$/i.test(t)&&(n=n.toLowerCase()),n}forEach(t,r=void 0){for(let n of this.keys())Reflect.apply(t,r,[this.get(n),n,this]);}*values(){for(let t of this.keys())yield this.get(t);}*entries(){for(let t of this.keys())yield [t,this.get(t)];}[Symbol.iterator](){return this.entries()}raw(){return [...this.keys()].reduce((t,r)=>(t[r]=this.getAll(r),t),{})}[Symbol.for("nodejs.util.inspect.custom")](){return [...this.keys()].reduce((t,r)=>{let n=this.getAll(r);return r==="host"?t[r]=n[0]:t[r]=n.length>1?n:n[0],t},{})}};Object.defineProperties(go.prototype,["get","entries","forEach","values"].reduce((e,t)=>(e[t]={enumerable:!0},e),{}));function ISe(e=[]){return new go(e.reduce((t,r,n,i)=>(n%2===0&&t.push(i.slice(n,n+2)),t),[]).filter(([t,r])=>{try{return B1(t),o3(t,String(r)),!0}catch{return !1}}))}var Qpt=new Set([301,302,303,307,308]),U1=e=>Qpt.has(e);var lu=Symbol("Response internals"),So=class e extends rl{constructor(t=null,r={}){super(t,r);let n=r.status!=null?r.status:200,i=new go(r.headers);if(t!==null&&!i.has("Content-Type")){let s=F1(t,this);s&&i.append("Content-Type",s);}this[lu]={type:"default",url:r.url,status:n,statusText:r.statusText||"",headers:i,counter:r.counter,highWaterMark:r.highWaterMark};}get type(){return this[lu].type}get url(){return this[lu].url||""}get status(){return this[lu].status}get ok(){return this[lu].status>=200&&this[lu].status<300}get redirected(){return this[lu].counter>0}get statusText(){return this[lu].statusText}get headers(){return this[lu].headers}get highWaterMark(){return this[lu].highWaterMark}clone(){return new e(qg(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(t,r=302){if(!U1(r))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new e(null,{headers:{location:new URL(t).toString()},status:r})}static error(){let t=new e(null,{status:0,statusText:""});return t[lu].type="error",t}get[Symbol.toStringTag](){return "Response"}};Object.defineProperties(So.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}});var OSe=e=>{if(e.search)return e.search;let t=e.href.length-1,r=e.hash||(e.href[t]==="#"?"#":"");return e.href[t-r.length]==="?"?"?":""};function DSe(e,t=!1){return e==null||(e=new URL(e),/^(about|blob|data):$/.test(e.protocol))?"no-referrer":(e.username="",e.password="",e.hash="",t&&(e.pathname="",e.search=""),e)}var NSe=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),RSe="strict-origin-when-cross-origin";function MSe(e){if(!NSe.has(e))throw new TypeError(`Invalid referrerPolicy: ${e}`);return e}function eft(e){if(/^(http|ws)s:$/.test(e.protocol))return !0;let t=e.host.replace(/(^\[)|(]$)/g,""),r=nc.isIP(t);return r===4&&/^127\./.test(t)||r===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(t)?!0:e.host==="localhost"||e.host.endsWith(".localhost")?!1:e.protocol==="file:"}function Vg(e){return /^about:(blank|srcdoc)$/.test(e)||e.protocol==="data:"||/^(blob|filesystem):$/.test(e.protocol)?!0:eft(e)}function LSe(e,{referrerURLCallback:t,referrerOriginCallback:r}={}){if(e.referrer==="no-referrer"||e.referrerPolicy==="")return null;let n=e.referrerPolicy;if(e.referrer==="about:client")return "no-referrer";let i=e.referrer,s=DSe(i),a=DSe(i,!0);s.toString().length>4096&&(s=a),t&&(s=t(s)),r&&(a=r(a));let o=new URL(e.url);switch(n){case"no-referrer":return "no-referrer";case"origin":return a;case"unsafe-url":return s;case"strict-origin":return Vg(s)&&!Vg(o)?"no-referrer":a.toString();case"strict-origin-when-cross-origin":return s.origin===o.origin?s:Vg(s)&&!Vg(o)?"no-referrer":a;case"same-origin":return s.origin===o.origin?s:"no-referrer";case"origin-when-cross-origin":return s.origin===o.origin?s:a;case"no-referrer-when-downgrade":return Vg(s)&&!Vg(o)?"no-referrer":s;default:throw new TypeError(`Invalid referrerPolicy: ${n}`)}}function kSe(e){let t=(e.get("referrer-policy")||"").split(/[,\s]+/),r="";for(let n of t)n&&NSe.has(n)&&(r=n);return r}var Fi=Symbol("Request internals"),nb=e=>typeof e=="object"&&typeof e[Fi]=="object",nft=Doe.deprecate(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),pd=class e extends rl{constructor(t,r={}){let n;if(nb(t)?n=new URL(t.url):(n=new URL(t),t={}),n.username!==""||n.password!=="")throw new TypeError(`${n} is an url with embedded credentials.`);let i=r.method||t.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(i)&&(i=i.toUpperCase()),!nb(r)&&"data"in r&&nft(),(r.body!=null||nb(t)&&t.body!==null)&&(i==="GET"||i==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let s=r.body?r.body:nb(t)&&t.body!==null?qg(t):null;super(s,{size:r.size||t.size||0});let a=new go(r.headers||t.headers||{});if(s!==null&&!a.has("Content-Type")){let l=F1(s,this);l&&a.set("Content-Type",l);}let o=nb(t)?t.signal:null;if("signal"in r&&(o=r.signal),o!=null&&!bSe(o))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let u=r.referrer==null?t.referrer:r.referrer;if(u==="")u="no-referrer";else if(u){let l=new URL(u);u=/^about:(\/\/)?client$/.test(l)?"client":l;}else u=void 0;this[Fi]={method:i,redirect:r.redirect||t.redirect||"follow",headers:a,parsedURL:n,signal:o,referrer:u},this.follow=r.follow===void 0?t.follow===void 0?20:t.follow:r.follow,this.compress=r.compress===void 0?t.compress===void 0?!0:t.compress:r.compress,this.counter=r.counter||t.counter||0,this.agent=r.agent||t.agent,this.highWaterMark=r.highWaterMark||t.highWaterMark||16384,this.insecureHTTPParser=r.insecureHTTPParser||t.insecureHTTPParser||!1,this.referrerPolicy=r.referrerPolicy||t.referrerPolicy||"";}get method(){return this[Fi].method}get url(){return url.format(this[Fi].parsedURL)}get headers(){return this[Fi].headers}get redirect(){return this[Fi].redirect}get signal(){return this[Fi].signal}get referrer(){if(this[Fi].referrer==="no-referrer")return "";if(this[Fi].referrer==="client")return "about:client";if(this[Fi].referrer)return this[Fi].referrer.toString()}get referrerPolicy(){return this[Fi].referrerPolicy}set referrerPolicy(t){this[Fi].referrerPolicy=MSe(t);}clone(){return new e(this)}get[Symbol.toStringTag](){return "Request"}};Object.defineProperties(pd.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0},referrer:{enumerable:!0},referrerPolicy:{enumerable:!0}});var FSe=e=>{let{parsedURL:t}=e[Fi],r=new go(e[Fi].headers);r.has("Accept")||r.set("Accept","*/*");let n=null;if(e.body===null&&/^(post|put)$/i.test(e.method)&&(n="0"),e.body!==null){let o=PSe(e);typeof o=="number"&&!Number.isNaN(o)&&(n=String(o));}n&&r.set("Content-Length",n),e.referrerPolicy===""&&(e.referrerPolicy=RSe),e.referrer&&e.referrer!=="no-referrer"?e[Fi].referrer=LSe(e):e[Fi].referrer="no-referrer",e[Fi].referrer instanceof URL&&r.set("Referer",e.referrer),r.has("User-Agent")||r.set("User-Agent","node-fetch"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip, deflate, br");let{agent:i}=e;typeof i=="function"&&(i=i(t)),!r.has("Connection")&&!i&&r.set("Connection","close");let s=OSe(t),a={path:t.pathname+s,method:e.method,headers:r[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:e.insecureHTTPParser,agent:i};return {parsedURL:t,options:a}};var q1=class extends fc{constructor(t,r="aborted"){super(t,r);}};var aft=new Set(["data:","http:","https:"]);async function H1(e,t){return new Promise((r,n)=>{let i=new pd(e,t),{parsedURL:s,options:a}=FSe(i);if(!aft.has(s.protocol))throw new TypeError(`node-fetch cannot load ${e}. URL scheme "${s.protocol.replace(/:$/,"")}" is not supported.`);if(s.protocol==="data:"){let d=ESe(i.url),m=new So(d,{headers:{"Content-Type":d.typeFull}});r(m);return}let o=(s.protocol==="https:"?Rot__namespace.default:j1__namespace.default).request,{signal:u}=i,l=null,c=()=>{let d=new q1("The operation was aborted.");n(d),i.body&&i.body instanceof xf__default.default.Readable&&i.body.destroy(d),!(!l||!l.body)&&l.body.emit("error",d);};if(u&&u.aborted){c();return}let p=()=>{c(),f();},h=o(s.toString(),a);u&&u.addEventListener("abort",p);let f=()=>{h.abort(),u&&u.removeEventListener("abort",p);};h.on("error",d=>{n(new da(`request to ${i.url} failed, reason: ${d.message}`,"system",d)),f();}),oft(h,d=>{l&&l.body&&l.body.destroy(d);}),process.version<"v14"&&h.on("socket",d=>{let m;d.prependListener("end",()=>{m=d._eventsCount;}),d.prependListener("close",y=>{if(l&&m{h.setTimeout(0);let m=ISe(d.rawHeaders);if(U1(d.statusCode)){let S=m.get("Location"),x=null;try{x=S===null?null:new URL(S,i.url);}catch{if(i.redirect!=="manual"){n(new da(`uri requested responds with an invalid redirect URL: ${S}`,"invalid-redirect")),f();return}}switch(i.redirect){case"error":n(new da(`uri requested responds with a redirect, redirect mode is set to error: ${i.url}`,"no-redirect")),f();return;case"manual":break;case"follow":{if(x===null)break;if(i.counter>=i.follow){n(new da(`maximum redirect reached at: ${i.url}`,"max-redirect")),f();return}let b={headers:new go(i.headers),follow:i.follow,counter:i.counter+1,agent:i.agent,compress:i.compress,method:i.method,body:qg(i),signal:i.signal,size:i.size,referrer:i.referrer,referrerPolicy:i.referrerPolicy};if(!vSe(i.url,x)||!_Se(i.url,x))for(let D of ["authorization","www-authenticate","cookie","cookie2"])b.headers.delete(D);if(d.statusCode!==303&&i.body&&t.body instanceof xf__default.default.Readable){n(new da("Cannot follow redirect with body being a readable stream","unsupported-redirect")),f();return}(d.statusCode===303||(d.statusCode===301||d.statusCode===302)&&i.method==="POST")&&(b.method="GET",b.body=void 0,b.headers.delete("content-length"));let A=kSe(m);A&&(b.referrerPolicy=A),r(H1(new pd(x,b))),f();return}default:return n(new TypeError(`Redirect option '${i.redirect}' is not a valid value of RequestRedirect`))}}u&&d.once("end",()=>{u.removeEventListener("abort",p);});let y=xf.pipeline(d,new xf.PassThrough,S=>{S&&n(S);});process.version<"v12.10"&&d.on("aborted",p);let g={url:i.url,status:d.statusCode,statusText:d.statusMessage,headers:m,size:i.size,counter:i.counter,highWaterMark:i.highWaterMark},v=m.get("Content-Encoding");if(!i.compress||i.method==="HEAD"||v===null||d.statusCode===204||d.statusCode===304){l=new So(y,g),r(l);return}let E={flush:Hg__default.default.Z_SYNC_FLUSH,finishFlush:Hg__default.default.Z_SYNC_FLUSH};if(v==="gzip"||v==="x-gzip"){y=xf.pipeline(y,Hg__default.default.createGunzip(E),S=>{S&&n(S);}),l=new So(y,g),r(l);return}if(v==="deflate"||v==="x-deflate"){let S=xf.pipeline(d,new xf.PassThrough,x=>{x&&n(x);});S.once("data",x=>{(x[0]&15)===8?y=xf.pipeline(y,Hg__default.default.createInflate(),b=>{b&&n(b);}):y=xf.pipeline(y,Hg__default.default.createInflateRaw(),b=>{b&&n(b);}),l=new So(y,g),r(l);}),S.once("end",()=>{l||(l=new So(y,g),r(l));});return}if(v==="br"){y=xf.pipeline(y,Hg__default.default.createBrotliDecompress(),S=>{S&&n(S);}),l=new So(y,g),r(l);return}l=new So(y,g),r(l);}),CSe(h,i).catch(n);})}function oft(e,t){let r=buffer.Buffer.from(`0\r \r `),n=!1,i=!1,s;e.on("response",a=>{let{headers:o}=a;n=o["transfer-encoding"]==="chunked"&&!o["content-length"];}),e.on("socket",a=>{let o=()=>{if(n&&!i){let l=new Error("Premature close");l.code="ERR_STREAM_PREMATURE_CLOSE",t(l);}},u=l=>{i=buffer.Buffer.compare(l.slice(-5),r)===0,!i&&s&&(i=buffer.Buffer.compare(s.slice(-3),r.slice(0,3))===0&&buffer.Buffer.compare(l.slice(-2),r.slice(3))===0),s=l;};a.prependListener("close",o),a.on("data",u),e.on("close",()=>{a.removeListener("close",o),a.removeListener("data",u);});});}var u3=class extends Rot.Agent{constructor(t={}){super({...t,lookup(r,n,i){PTe__default.default.resolve(r,(s,a)=>i(s,a==null?void 0:a[0],4));}});}},cft=()=>new u3,l3=cft;var _Te=chunkTKGT252T_js.e(QSe()),xTe=chunkTKGT252T_js.e(vTe());var m3={},Xft=({env:e,log:t},r,n)=>{let i=e.HTTPS_PROXY||e.HTTP_PROXY;if(!i||(0, xTe.default)(r))return;t.debug({url:r,proxy:i,options:n},"Using proxy agent");let s=new url.URL(r).host;return m3[s]||(m3[s]=new _Te.HttpsProxyAgent(i,n)),m3[s]},ATe=Xft;var y3=class e extends Error{constructor(r,n,...i){super(...i);Error.captureStackTrace&&Error.captureStackTrace(this,e),this.response=r,this.message=n||`HTTPClient failed to fetch ${r.url}, got ${r.status}/${r.statusText}`;}},fd=class{constructor({env:t,log:r},{headers:n={},retries:i=0}={}){if(!r)throw new Error("Missing required option in HTTPClient: log");this.env=t,this.log=r,this.headers=n,this.retries=i;}async fetch(t,r={},n={}){let i=r.agent||ATe({env:this.env,log:this.log},t,n.proxy);this.env.CHROMATIC_DNS_SERVERS.length>0&&(this.log.debug(`Using custom DNS servers: ${this.env.CHROMATIC_DNS_SERVERS.join(", ")}`),PTe__default.default.setServers(this.env.CHROMATIC_DNS_SERVERS),i=l3());let s=n.retries===void 0?this.retries:n.retries;return (0, CTe.default)(async()=>{let o={...this.headers,...r.headers},u=await H1(t,{...r,agent:i,headers:o});if(!u.ok){let l=new y3(u);if(!n.noLogErrorBody){let c=await u.text();this.log.debug(l.message),this.log.debug(c);}throw l}return u},{retries:s,onRetry:(o,u)=>{var l;this.log.debug({url:t,err:o},`Fetch failed; retrying ${u}/${s}`),(o.message.includes("ENOTFOUND")||[o.code,(l=o.cause)==null?void 0:l.code].includes("ENOTFOUND"))&&(i?this.env.CHROMATIC_DNS_FAILOVER_SERVERS.length>0&&(this.log.warn("Fetch failed due to DNS lookup; switching to failover DNS servers"),PTe__default.default.setServers(this.env.CHROMATIC_DNS_FAILOVER_SERVERS)):(this.log.warn("Fetch failed due to DNS lookup; switching to custom DNS resolver"),i=l3()));}})}async fetchBuffer(t,r){return (await this.fetch(t,r)).buffer()}};var zft="RETRYABLE_ERROR_CODE",ab=class{constructor(t,r,n){if(!r)throw new Error("Option `endpoint` required.");this.endpoint=r,this.client=new fd(t,n),this.headers={"Content-Type":"application/json"};}setAuthorization(t){this.headers.Authorization=`Bearer ${t}`;}async runQuery(t,r,{endpoint:n=this.endpoint,headers:i={},retries:s=2}={}){return (0, wTe.default)(async a=>{let{data:o,errors:u}=await this.client.fetch(n,{body:JSON.stringify({query:t,variables:r}),headers:{...this.headers,...i},method:"post"},{retries:s}).then(l=>l.json()).catch(a);if(!u)return o;if(!Array.isArray(u))return a(u);this.client.log.debug({errors:u},"GraphQL errors");for(let l of u){if(l.extensions&&l.extensions.code===zft)throw l;l.name=l.name||"GraphQLError",l.at=`${l.path.join(".")} ${l.locations.map(c=>`${c.line}:${c.column}`).join(", ")}`;}return a(u.length===1?u[0]:u)},{retries:s})}};var fb=chunkTKGT252T_js.e(chunkHZVCNUTP_js.a()),e0e=chunkTKGT252T_js.e(ow());var zEe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),JEe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var QEe=(e,t,r=!1)=>{let n=r?"yarn upgrade chromatic --latest":"npm install chromatic@latest --save-dev";return (0, JEe.dedent)(zEe.default` ${chunkF6FLWRPJ_js.G} {bold Using outdated package} You are using an outdated version of the Chromatic CLI (v${e.pkg.version}). A new major version is available (v${t}). Run {bold ${n}} to upgrade. `)};var ZEe=chunkTKGT252T_js.e(ow());function X3(e,t={}){return new Promise((r,n)=>{var o,u;let i="",s="",a=(0, ZEe.spawn)(e,t);(o=a.stdout)==null||o.on("data",l=>{i+=l;}),(u=a.stderr)==null||u.on("data",l=>{s+=l;}),a.on("error",n),a.on("close",l=>{l===0?r(i.trim()):n(new Error(s));});})}var ydt=e=>new Promise((t,r)=>setTimeout(r,e)),gdt=(e,t)=>Promise.race([e,ydt(t)]);async function z3(e){if(e.options.skipUpdateCheck===!0){e.log.info("Skipping update check");return}if(!fb.default.valid(e.pkg.version)){e.log.warn(`Invalid semver version in package.json: ${e.pkg.version}`);return}let t;try{let r=await X3(["config","get","registry"]).catch(()=>"https://registry.npmjs.org/");["https://registry.npmjs.org/","https://registry.yarnpkg.com"].includes(r)||e.log.info(`Using custom npm registry: ${r}`);let n=new URL(e.pkg.name,r).href,i=await gdt(e.http.fetch(n),5e3),{"dist-tags":s={}}=await i.json();if(!fb.default.valid(s.latest)){e.log.warn("Invalid dist-tag 'latest' returned from registry; skipping update check");return}t=s.latest;}catch(r){Sdt(r)&&ps(r),e.log.warn("Could not retrieve package info from registry; skipping update check"),e.log.warn(r);return}fb.default.major(e.pkg.version)(0, o0e.dedent)(a0e.default` ${chunkF6FLWRPJ_js.F} {bold Added script '${e}' to package.json} You can now run it here or in CI with 'npm run ${e}' or 'yarn ${e}'. ${chunkF6FLWRPJ_js.E} Your project token was added to the script via the {bold --project-token} flag. If you're running Chromatic via continuous integration, we recommend setting the {bold CHROMATIC_PROJECT_TOKEN} environment variable in your CI environment. You can then remove the {bold --project-token} from your package.json script. `);var l0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Q3=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var c0e=(e,t)=>{let r=Q3.dedent` "scripts": { "${e}": "${t}" } `;return (0, Q3.dedent)(l0e.default` ${chunkF6FLWRPJ_js.E} No problem. You can add it to your package.json yourself like so: {dim ${r}} `)};var p0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),f0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var h0e=e=>(0, f0e.dedent)(p0e.default` ${chunkF6FLWRPJ_js.G} {bold No '${e}' script found in your package.json} Would you like me to add it for you? [y/N] `);var{writeFile:xdt}=d0e.default,iS="chromatic",Adt=e=>e[iS]||Object.values(e).find(t=>t.startsWith(iS));async function Z3(e){let{log:t,options:r,packageJson:n,packagePath:i}=e;if(r.interactive)try{let{readme:s,_id:a,...o}=n;if(o.scripts||(o.scripts={}),Adt(o.scripts))return;let u=`npx chromatic ${r.originalArgv.join(" ")}`;t.info(""),await(0,m0e.confirm)(h0e(iS))?(o.scripts[iS]=u,await xdt(i,o,{spaces:2}),t.info(""),t.info(u0e(iS))):(t.info(""),t.info(c0e(iS,u)));}catch(s){t.warn(s);}}function En(e){return e.playwright||e.cypress}function gd(e){return crypto.createHash("md5").update(e.trim().toLowerCase()).digest("hex")}var Cdt=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,wdt=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,Idt=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,ej={Space_Separator:Cdt,ID_Start:wdt,ID_Continue:Idt},li={isSpaceSeparator(e){return typeof e=="string"&&ej.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||ej.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||ej.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},rj,Ms,mc,cw,Cf,cu,Bi,sj,db,Odt=function(t,r){rj=String(t),Ms="start",mc=[],cw=0,Cf=1,cu=0,Bi=void 0,sj=void 0,db=void 0;do Bi=Ddt(),Mdt[Ms]();while(Bi.type!=="eof");return typeof r=="function"?nj({"":db},"",r):db};function nj(e,t,r){let n=e[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i0;){let r=yc();if(!li.isHexDigit(r))throw Pn(ye());e+=ye();}return String.fromCodePoint(parseInt(e,16))}var Mdt={start(){if(Bi.type==="eof")throw Td();tj();},beforePropertyName(){switch(Bi.type){case"identifier":case"string":sj=Bi.value,Ms="afterPropertyName";return;case"punctuator":lw();return;case"eof":throw Td()}},afterPropertyName(){if(Bi.type==="eof")throw Td();Ms="beforePropertyValue";},beforePropertyValue(){if(Bi.type==="eof")throw Td();tj();},beforeArrayValue(){if(Bi.type==="eof")throw Td();if(Bi.type==="punctuator"&&Bi.value==="]"){lw();return}tj();},afterPropertyValue(){if(Bi.type==="eof")throw Td();switch(Bi.value){case",":Ms="beforePropertyName";return;case"}":lw();}},afterArrayValue(){if(Bi.type==="eof")throw Td();switch(Bi.value){case",":Ms="beforeArrayValue";return;case"]":lw();}},end(){}};function tj(){let e;switch(Bi.type){case"punctuator":switch(Bi.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=Bi.value;break}if(db===void 0)db=e;else {let t=mc[mc.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,sj,{value:e,writable:!0,enumerable:!0,configurable:!0});}if(e!==null&&typeof e=="object")mc.push(e),Array.isArray(e)?Ms="beforeArrayValue":Ms="beforePropertyName";else {let t=mc[mc.length-1];t==null?Ms="end":Array.isArray(t)?Ms="afterArrayValue":Ms="afterPropertyValue";}}function lw(){mc.pop();let e=mc[mc.length-1];e==null?Ms="end":Array.isArray(e)?Ms="afterArrayValue":Ms="afterPropertyValue";}function Pn(e){return pw(e===void 0?`JSON5: invalid end of input at ${Cf}:${cu}`:`JSON5: invalid character '${S0e(e)}' at ${Cf}:${cu}`)}function Td(){return pw(`JSON5: invalid end of input at ${Cf}:${cu}`)}function y0e(){return cu-=5,pw(`JSON5: invalid identifier character at ${Cf}:${cu}`)}function Ldt(e){console.warn(`JSON5: '${S0e(e)}' in strings is not valid ECMAScript; consider escaping`);}function S0e(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let r=e.charCodeAt(0).toString(16);return "\\x"+("00"+r).substring(r.length)}return e}function pw(e){let t=new SyntaxError(e);return t.lineNumber=Cf,t.columnNumber=cu,t}var kdt=function(t,r,n){let i=[],s="",a,o,u="",l;if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&(n=r.space,l=r.quote,r=r.replacer),typeof r=="function")o=r;else if(Array.isArray(r)){a=[];for(let m of r){let y;typeof m=="string"?y=m:(typeof m=="number"||m instanceof String||m instanceof Number)&&(y=String(m)),y!==void 0&&a.indexOf(y)<0&&a.push(y);}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),u=" ".substr(0,n)):typeof n=="string"&&(u=n.substr(0,10)),c("",{"":t});function c(m,y){let g=y[m];switch(g!=null&&(typeof g.toJSON5=="function"?g=g.toJSON5(m):typeof g.toJSON=="function"&&(g=g.toJSON(m))),o&&(g=o.call(y,m,g)),g instanceof Number?g=Number(g):g instanceof String?g=String(g):g instanceof Boolean&&(g=g.valueOf()),g){case null:return "null";case!0:return "true";case!1:return "false"}if(typeof g=="string")return p(g);if(typeof g=="number")return String(g);if(typeof g=="object")return Array.isArray(g)?d(g):h(g)}function p(m){let y={"'":.1,'"':.2},g={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},v="";for(let S=0;Sy[S]=0)throw TypeError("Converting circular structure to JSON5");i.push(m);let y=s;s=s+u;let g=a||Object.keys(m),v=[];for(let S of g){let x=c(S,m);if(x!==void 0){let b=f(S)+":";u!==""&&(b+=" "),b+=x,v.push(b);}}let E;if(v.length===0)E="{}";else {let S;if(u==="")S=v.join(","),E="{"+S+"}";else {let x=`, `+s;S=v.join(x),E=`{ `+s+S+`, `+y+"}";}}return i.pop(),s=y,E}function f(m){if(m.length===0)return p(m);let y=String.fromCodePoint(m.codePointAt(0));if(!li.isIdStartChar(y))return p(m);for(let g=y.length;g=0)throw TypeError("Converting circular structure to JSON5");i.push(m);let y=s;s=s+u;let g=[];for(let E=0;Ei;function t(i){}e.assertIs=t;function r(i){throw new Error}e.assertNever=r,e.arrayToEnum=i=>{let s={};for(let a of i)s[a]=a;return s},e.getValidEnumValues=i=>{let s=e.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),a={};for(let o of s)a[o]=i[o];return e.objectValues(a)},e.objectValues=i=>e.objectKeys(i).map(function(s){return i[s]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let a in i)Object.prototype.hasOwnProperty.call(i,a)&&s.push(a);return s},e.find=(i,s)=>{for(let a of i)if(s(a))return a},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}e.joinValues=n,e.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s;})(Cr||(Cr={}));var oj;(function(e){e.mergeShapes=(t,r)=>({...t,...r});})(oj||(oj={}));var We=Cr.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),wf=e=>{switch(typeof e){case"undefined":return We.undefined;case"string":return We.string;case"number":return isNaN(e)?We.nan:We.number;case"boolean":return We.boolean;case"function":return We.function;case"bigint":return We.bigint;case"symbol":return We.symbol;case"object":return Array.isArray(e)?We.array:e===null?We.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?We.promise:typeof Map<"u"&&e instanceof Map?We.map:typeof Set<"u"&&e instanceof Set?We.set:typeof Date<"u"&&e instanceof Date?We.date:We.object;default:return We.unknown}},we=Cr.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),jdt=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),Ls=class e extends Error{constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n];},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n];};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t;}get errors(){return this.issues}format(t){let r=t||function(s){return s.message},n={_errors:[]},i=s=>{for(let a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)n._errors.push(r(a));else {let o=n,u=0;for(;ur.message){let r={},n=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return {formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Ls.create=e=>new Ls(e);var oS=(e,t)=>{let r;switch(e.code){case we.invalid_type:e.received===We.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case we.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Cr.jsonStringifyReplacer)}`;break;case we.unrecognized_keys:r=`Unrecognized key(s) in object: ${Cr.joinValues(e.keys,", ")}`;break;case we.invalid_union:r="Invalid input";break;case we.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Cr.joinValues(e.options)}`;break;case we.invalid_enum_value:r=`Invalid enum value. Expected ${Cr.joinValues(e.options)}, received '${e.received}'`;break;case we.invalid_arguments:r="Invalid function arguments";break;case we.invalid_return_type:r="Invalid function return type";break;case we.invalid_date:r="Invalid date";break;case we.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Cr.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case we.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case we.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case we.custom:r="Invalid input";break;case we.invalid_intersection_types:r="Intersection results could not be merged";break;case we.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case we.not_finite:r="Number must be finite";break;default:r=t.defaultError,Cr.assertNever(e);}return {message:r}},v0e=oS;function Udt(e){v0e=e;}function fw(){return v0e}var hw=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,s=[...r,...i.path||[]],a={...i,path:s};if(i.message!==void 0)return {...i,path:s,message:i.message};let o="",u=n.filter(l=>!!l).slice().reverse();for(let l of u)o=l(a,{data:t,defaultError:o}).message;return {...i,path:s,message:o}},qdt=[];function He(e,t){let r=fw(),n=hw({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===oS?void 0:oS].filter(i=>!!i)});e.common.issues.push(n);}var ys=class e{constructor(){this.value="valid";}dirty(){this.value==="valid"&&(this.value="dirty");}abort(){this.value!=="aborted"&&(this.value="aborted");}static mergeArray(t,r){let n=[];for(let i of r){if(i.status==="aborted")return Dt;i.status==="dirty"&&t.dirty(),n.push(i.value);}return {status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let i of r){let s=await i.key,a=await i.value;n.push({key:s,value:a});}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let i of r){let{key:s,value:a}=i;if(s.status==="aborted"||a.status==="aborted")return Dt;s.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(n[s.value]=a.value);}return {status:t.value,value:n}}},Dt=Object.freeze({status:"aborted"}),aS=e=>({status:"dirty",value:e}),ks=e=>({status:"valid",value:e}),uj=e=>e.status==="aborted",lj=e=>e.status==="dirty",gb=e=>e.status==="valid",Sb=e=>typeof Promise<"u"&&e instanceof Promise;function dw(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function _0e(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}var mt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message;})(mt||(mt={}));var mb,yb,vo=class{constructor(t,r,n,i){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=i;}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},E0e=(e,t)=>{if(gb(t))return {success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return {success:!1,get error(){if(this._error)return this._error;let r=new Ls(e.common.issues);return this._error=r,this._error}}};function Gt(e){if(!e)return {};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(a,o)=>{var u,l;let{message:c}=e;return a.code==="invalid_enum_value"?{message:c??o.defaultError}:typeof o.data>"u"?{message:(u=c??n)!==null&&u!==void 0?u:o.defaultError}:a.code!=="invalid_type"?{message:o.defaultError}:{message:(l=c??r)!==null&&l!==void 0?l:o.defaultError}},description:i}}var $t=class{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this);}get description(){return this._def.description}_getType(t){return wf(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:wf(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return {status:new ys,ctx:{common:t.parent.common,data:t.data,parsedType:wf(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(Sb(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){var n;let i={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wf(t)},s=this._parseSync({data:t,path:i.path,parent:i});return E0e(i,s)}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wf(t)},i=this._parse({data:t,path:n.path,parent:n}),s=await(Sb(i)?i:Promise.resolve(i));return E0e(n,s)}refine(t,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let a=t(i),o=()=>s.addIssue({code:we.custom,...n(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(u=>u?!0:(o(),!1)):a?!0:(o(),!1)})}refinement(t,r){return this._refinement((n,i)=>t(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(t){return new ja({schema:this,typeName:wt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return bo.create(this,this._def)}nullable(){return ul.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Tc.create(this,this._def)}promise(){return Df.create(this,this._def)}or(t){return Pd.create([this,t],this._def)}and(t){return Cd.create(this,t,this._def)}transform(t){return new ja({...Gt(this._def),schema:this,typeName:wt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new Nd({...Gt(this._def),innerType:this,defaultValue:r,typeName:wt.ZodDefault})}brand(){return new Tb({typeName:wt.ZodBranded,type:this,...Gt(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new Rd({...Gt(this._def),innerType:this,catchValue:r,typeName:wt.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Eb.create(this,t)}readonly(){return Md.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Vdt=/^c[^\s-]{8,}$/i,Hdt=/^[0-9a-z]+$/,Gdt=/^[0-9A-HJKMNP-TV-Z]{26}$/,$dt=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Kdt=/^[a-z0-9_-]{21}$/i,Ydt=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Wdt=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Xdt="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",aj,zdt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Jdt=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Qdt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,x0e="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Zdt=new RegExp(`^${x0e}$`);function A0e(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function emt(e){return new RegExp(`^${A0e(e)}$`)}function P0e(e){let t=`${x0e}T${A0e(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function tmt(e,t){return !!((t==="v4"||!t)&&zdt.test(e)||(t==="v6"||!t)&&Jdt.test(e))}var If=class e extends $t{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==We.string){let s=this._getOrReturnCtx(t);return He(s,{code:we.invalid_type,expected:We.string,received:s.parsedType}),Dt}let n=new ys,i;for(let s of this._def.checks)if(s.kind==="min")t.data.lengths.value&&(i=this._getOrReturnCtx(t,i),He(i,{code:we.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let a=t.data.length>s.value,o=t.data.lengtht.test(i),{validation:r,code:we.invalid_string,...mt.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...mt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...mt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...mt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...mt.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...mt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...mt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...mt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...mt.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...mt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...mt.errToObj(t)})}datetime(t){var r,n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(n=t==null?void 0:t.local)!==null&&n!==void 0?n:!1,...mt.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...mt.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...mt.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...mt.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...mt.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...mt.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...mt.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...mt.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...mt.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...mt.errToObj(r)})}nonempty(t){return this.min(1,mt.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return !!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return !!this._def.checks.find(t=>t.kind==="date")}get isTime(){return !!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return !!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return !!this._def.checks.find(t=>t.kind==="email")}get isURL(){return !!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return !!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return !!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return !!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return !!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return !!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return !!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return !!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return !!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value{var t;return new If({checks:[],typeName:wt.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Gt(e)})};function rmt(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n,s=parseInt(e.toFixed(i).replace(".","")),a=parseInt(t.toFixed(i).replace(".",""));return s%a/Math.pow(10,i)}var Ed=class e extends $t{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf;}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==We.number){let s=this._getOrReturnCtx(t);return He(s,{code:we.invalid_type,expected:We.number,received:s.parsedType}),Dt}let n,i=new ys;for(let s of this._def.checks)s.kind==="int"?Cr.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),He(n,{code:we.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),He(n,{code:we.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?rmt(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),He(n,{code:we.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),He(n,{code:we.not_finite,message:s.message}),i.dirty()):Cr.assertNever(s);return {status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,mt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,mt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,mt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,mt.toString(r))}setLimit(t,r,n,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:mt.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:mt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:mt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:mt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:mt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:mt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:mt.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:mt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:mt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:mt.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.valuet.kind==="int"||t.kind==="multipleOf"&&Cr.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return !0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.valuenew Ed({checks:[],typeName:wt.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Gt(e)});var bd=class e extends $t{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte;}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==We.bigint){let s=this._getOrReturnCtx(t);return He(s,{code:we.invalid_type,expected:We.bigint,received:s.parsedType}),Dt}let n,i=new ys;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),He(n,{code:we.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),He(n,{code:we.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):Cr.assertNever(s);return {status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,mt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,mt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,mt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,mt.toString(r))}setLimit(t,r,n,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:mt.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:mt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:mt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:mt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:mt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:mt.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value{var t;return new bd({checks:[],typeName:wt.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Gt(e)})};var vd=class extends $t{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==We.boolean){let n=this._getOrReturnCtx(t);return He(n,{code:we.invalid_type,expected:We.boolean,received:n.parsedType}),Dt}return ks(t.data)}};vd.create=e=>new vd({typeName:wt.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Gt(e)});var _d=class e extends $t{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==We.date){let s=this._getOrReturnCtx(t);return He(s,{code:we.invalid_type,expected:We.date,received:s.parsedType}),Dt}if(isNaN(t.data.getTime())){let s=this._getOrReturnCtx(t);return He(s,{code:we.invalid_date}),Dt}let n=new ys,i;for(let s of this._def.checks)s.kind==="min"?t.data.getTime()s.value&&(i=this._getOrReturnCtx(t,i),He(i,{code:we.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):Cr.assertNever(s);return {status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:mt.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:mt.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew _d({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:wt.ZodDate,...Gt(e)});var uS=class extends $t{_parse(t){if(this._getType(t)!==We.symbol){let n=this._getOrReturnCtx(t);return He(n,{code:we.invalid_type,expected:We.symbol,received:n.parsedType}),Dt}return ks(t.data)}};uS.create=e=>new uS({typeName:wt.ZodSymbol,...Gt(e)});var xd=class extends $t{_parse(t){if(this._getType(t)!==We.undefined){let n=this._getOrReturnCtx(t);return He(n,{code:we.invalid_type,expected:We.undefined,received:n.parsedType}),Dt}return ks(t.data)}};xd.create=e=>new xd({typeName:wt.ZodUndefined,...Gt(e)});var Ad=class extends $t{_parse(t){if(this._getType(t)!==We.null){let n=this._getOrReturnCtx(t);return He(n,{code:we.invalid_type,expected:We.null,received:n.parsedType}),Dt}return ks(t.data)}};Ad.create=e=>new Ad({typeName:wt.ZodNull,...Gt(e)});var Of=class extends $t{constructor(){super(...arguments),this._any=!0;}_parse(t){return ks(t.data)}};Of.create=e=>new Of({typeName:wt.ZodAny,...Gt(e)});var Sc=class extends $t{constructor(){super(...arguments),this._unknown=!0;}_parse(t){return ks(t.data)}};Sc.create=e=>new Sc({typeName:wt.ZodUnknown,...Gt(e)});var pu=class extends $t{_parse(t){let r=this._getOrReturnCtx(t);return He(r,{code:we.invalid_type,expected:We.never,received:r.parsedType}),Dt}};pu.create=e=>new pu({typeName:wt.ZodNever,...Gt(e)});var lS=class extends $t{_parse(t){if(this._getType(t)!==We.undefined){let n=this._getOrReturnCtx(t);return He(n,{code:we.invalid_type,expected:We.void,received:n.parsedType}),Dt}return ks(t.data)}};lS.create=e=>new lS({typeName:wt.ZodVoid,...Gt(e)});var Tc=class e extends $t{_parse(t){let{ctx:r,status:n}=this._processInputParams(t),i=this._def;if(r.parsedType!==We.array)return He(r,{code:we.invalid_type,expected:We.array,received:r.parsedType}),Dt;if(i.exactLength!==null){let a=r.data.length>i.exactLength.value,o=r.data.lengthi.maxLength.value&&(He(r,{code:we.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((a,o)=>i.type._parseAsync(new vo(r,a,r.path,o)))).then(a=>ys.mergeArray(n,a));let s=[...r.data].map((a,o)=>i.type._parseSync(new vo(r,a,r.path,o)));return ys.mergeArray(n,s)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:mt.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:mt.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:mt.toString(r)}})}nonempty(t){return this.min(1,t)}};Tc.create=(e,t)=>new Tc({type:e,minLength:null,maxLength:null,exactLength:null,typeName:wt.ZodArray,...Gt(t)});function sS(e){if(e instanceof ga){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=bo.create(sS(n));}return new ga({...e._def,shape:()=>t})}else return e instanceof Tc?new Tc({...e._def,type:sS(e.element)}):e instanceof bo?bo.create(sS(e.unwrap())):e instanceof ul?ul.create(sS(e.unwrap())):e instanceof ol?ol.create(e.items.map(t=>sS(t))):e}var ga=class e extends $t{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend;}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=Cr.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==We.object){let l=this._getOrReturnCtx(t);return He(l,{code:we.invalid_type,expected:We.object,received:l.parsedType}),Dt}let{status:n,ctx:i}=this._processInputParams(t),{shape:s,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof pu&&this._def.unknownKeys==="strip"))for(let l in i.data)a.includes(l)||o.push(l);let u=[];for(let l of a){let c=s[l],p=i.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new vo(i,p,i.path,l)),alwaysSet:l in i.data});}if(this._def.catchall instanceof pu){let l=this._def.unknownKeys;if(l==="passthrough")for(let c of o)u.push({key:{status:"valid",value:c},value:{status:"valid",value:i.data[c]}});else if(l==="strict")o.length>0&&(He(i,{code:we.unrecognized_keys,keys:o}),n.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else {let l=this._def.catchall;for(let c of o){let p=i.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new vo(i,p,i.path,c)),alwaysSet:c in i.data});}}return i.common.async?Promise.resolve().then(async()=>{let l=[];for(let c of u){let p=await c.key,h=await c.value;l.push({key:p,value:h,alwaysSet:c.alwaysSet});}return l}).then(l=>ys.mergeObjectSync(n,l)):ys.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(t){return mt.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var i,s,a,o;let u=(a=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,r,n).message)!==null&&a!==void 0?a:n.defaultError;return r.code==="unrecognized_keys"?{message:(o=mt.errToObj(t).message)!==null&&o!==void 0?o:u}:{message:u}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:wt.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};return Cr.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n]);}),new e({...this._def,shape:()=>r})}omit(t){let r={};return Cr.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n]);}),new e({...this._def,shape:()=>r})}deepPartial(){return sS(this)}partial(t){let r={};return Cr.objectKeys(this.shape).forEach(n=>{let i=this.shape[n];t&&!t[n]?r[n]=i:r[n]=i.optional();}),new e({...this._def,shape:()=>r})}required(t){let r={};return Cr.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else {let s=this.shape[n];for(;s instanceof bo;)s=s._def.innerType;r[n]=s;}}),new e({...this._def,shape:()=>r})}keyof(){return C0e(Cr.objectKeys(this.shape))}};ga.create=(e,t)=>new ga({shape:()=>e,unknownKeys:"strip",catchall:pu.create(),typeName:wt.ZodObject,...Gt(t)});ga.strictCreate=(e,t)=>new ga({shape:()=>e,unknownKeys:"strict",catchall:pu.create(),typeName:wt.ZodObject,...Gt(t)});ga.lazycreate=(e,t)=>new ga({shape:e,unknownKeys:"strip",catchall:pu.create(),typeName:wt.ZodObject,...Gt(t)});var Pd=class extends $t{_parse(t){let{ctx:r}=this._processInputParams(t),n=this._def.options;function i(s){for(let o of s)if(o.result.status==="valid")return o.result;for(let o of s)if(o.result.status==="dirty")return r.common.issues.push(...o.ctx.common.issues),o.result;let a=s.map(o=>new Ls(o.ctx.common.issues));return He(r,{code:we.invalid_union,unionErrors:a}),Dt}if(r.common.async)return Promise.all(n.map(async s=>{let a={...r,common:{...r.common,issues:[]},parent:null};return {result:await s._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(i);{let s,a=[];for(let u of n){let l={...r,common:{...r.common,issues:[]},parent:null},c=u._parseSync({data:r.data,path:r.path,parent:l});if(c.status==="valid")return c;c.status==="dirty"&&!s&&(s={result:c,ctx:l}),l.common.issues.length&&a.push(l.common.issues);}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let o=a.map(u=>new Ls(u));return He(r,{code:we.invalid_union,unionErrors:o}),Dt}}get options(){return this._def.options}};Pd.create=(e,t)=>new Pd({options:e,typeName:wt.ZodUnion,...Gt(t)});var gc=e=>e instanceof wd?gc(e.schema):e instanceof ja?gc(e.innerType()):e instanceof Id?[e.value]:e instanceof Od?e.options:e instanceof Dd?Cr.objectValues(e.enum):e instanceof Nd?gc(e._def.innerType):e instanceof xd?[void 0]:e instanceof Ad?[null]:e instanceof bo?[void 0,...gc(e.unwrap())]:e instanceof ul?[null,...gc(e.unwrap())]:e instanceof Tb||e instanceof Md?gc(e.unwrap()):e instanceof Rd?gc(e._def.innerType):[],mw=class e extends $t{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==We.object)return He(r,{code:we.invalid_type,expected:We.object,received:r.parsedType}),Dt;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(He(r,{code:we.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Dt)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let i=new Map;for(let s of r){let a=gc(s.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let o of a){if(i.has(o))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(o)}`);i.set(o,s);}}return new e({typeName:wt.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:i,...Gt(n)})}};function cj(e,t){let r=wf(e),n=wf(t);if(e===t)return {valid:!0,data:e};if(r===We.object&&n===We.object){let i=Cr.objectKeys(t),s=Cr.objectKeys(e).filter(o=>i.indexOf(o)!==-1),a={...e,...t};for(let o of s){let u=cj(e[o],t[o]);if(!u.valid)return {valid:!1};a[o]=u.data;}return {valid:!0,data:a}}else if(r===We.array&&n===We.array){if(e.length!==t.length)return {valid:!1};let i=[];for(let s=0;s{if(uj(s)||uj(a))return Dt;let o=cj(s.value,a.value);return o.valid?((lj(s)||lj(a))&&r.dirty(),{status:r.value,value:o.data}):(He(n,{code:we.invalid_intersection_types}),Dt)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,a])=>i(s,a)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Cd.create=(e,t,r)=>new Cd({left:e,right:t,typeName:wt.ZodIntersection,...Gt(r)});var ol=class e extends $t{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==We.array)return He(n,{code:we.invalid_type,expected:We.array,received:n.parsedType}),Dt;if(n.data.lengththis._def.items.length&&(He(n,{code:we.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((a,o)=>{let u=this._def.items[o]||this._def.rest;return u?u._parse(new vo(n,a,n.path,o)):null}).filter(a=>!!a);return n.common.async?Promise.all(s).then(a=>ys.mergeArray(r,a)):ys.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};ol.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ol({items:e,typeName:wt.ZodTuple,rest:null,...Gt(t)})};var yw=class e extends $t{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==We.object)return He(n,{code:we.invalid_type,expected:We.object,received:n.parsedType}),Dt;let i=[],s=this._def.keyType,a=this._def.valueType;for(let o in n.data)i.push({key:s._parse(new vo(n,o,n.path,o)),value:a._parse(new vo(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?ys.mergeObjectAsync(r,i):ys.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof $t?new e({keyType:t,valueType:r,typeName:wt.ZodRecord,...Gt(n)}):new e({keyType:If.create(),valueType:t,typeName:wt.ZodRecord,...Gt(r)})}},cS=class extends $t{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==We.map)return He(n,{code:we.invalid_type,expected:We.map,received:n.parsedType}),Dt;let i=this._def.keyType,s=this._def.valueType,a=[...n.data.entries()].map(([o,u],l)=>({key:i._parse(new vo(n,o,n.path,[l,"key"])),value:s._parse(new vo(n,u,n.path,[l,"value"]))}));if(n.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let u of a){let l=await u.key,c=await u.value;if(l.status==="aborted"||c.status==="aborted")return Dt;(l.status==="dirty"||c.status==="dirty")&&r.dirty(),o.set(l.value,c.value);}return {status:r.value,value:o}})}else {let o=new Map;for(let u of a){let l=u.key,c=u.value;if(l.status==="aborted"||c.status==="aborted")return Dt;(l.status==="dirty"||c.status==="dirty")&&r.dirty(),o.set(l.value,c.value);}return {status:r.value,value:o}}}};cS.create=(e,t,r)=>new cS({valueType:t,keyType:e,typeName:wt.ZodMap,...Gt(r)});var pS=class e extends $t{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==We.set)return He(n,{code:we.invalid_type,expected:We.set,received:n.parsedType}),Dt;let i=this._def;i.minSize!==null&&n.data.sizei.maxSize.value&&(He(n,{code:we.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function a(u){let l=new Set;for(let c of u){if(c.status==="aborted")return Dt;c.status==="dirty"&&r.dirty(),l.add(c.value);}return {status:r.value,value:l}}let o=[...n.data.values()].map((u,l)=>s._parse(new vo(n,u,n.path,l)));return n.common.async?Promise.all(o).then(u=>a(u)):a(o)}min(t,r){return new e({...this._def,minSize:{value:t,message:mt.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:mt.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};pS.create=(e,t)=>new pS({valueType:e,minSize:null,maxSize:null,typeName:wt.ZodSet,...Gt(t)});var gw=class e extends $t{constructor(){super(...arguments),this.validate=this.implement;}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==We.function)return He(r,{code:we.invalid_type,expected:We.function,received:r.parsedType}),Dt;function n(o,u){return hw({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,fw(),oS].filter(l=>!!l),issueData:{code:we.invalid_arguments,argumentsError:u}})}function i(o,u){return hw({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,fw(),oS].filter(l=>!!l),issueData:{code:we.invalid_return_type,returnTypeError:u}})}let s={errorMap:r.common.contextualErrorMap},a=r.data;if(this._def.returns instanceof Df){let o=this;return ks(async function(...u){let l=new Ls([]),c=await o._def.args.parseAsync(u,s).catch(f=>{throw l.addIssue(n(u,f)),l}),p=await Reflect.apply(a,this,c);return await o._def.returns._def.type.parseAsync(p,s).catch(f=>{throw l.addIssue(i(p,f)),l})})}else {let o=this;return ks(function(...u){let l=o._def.args.safeParse(u,s);if(!l.success)throw new Ls([n(u,l.error)]);let c=Reflect.apply(a,this,l.data),p=o._def.returns.safeParse(c,s);if(!p.success)throw new Ls([i(c,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:ol.create(t).rest(Sc.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new e({args:t||ol.create([]).rest(Sc.create()),returns:r||Sc.create(),typeName:wt.ZodFunction,...Gt(n)})}},wd=class extends $t{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};wd.create=(e,t)=>new wd({getter:e,typeName:wt.ZodLazy,...Gt(t)});var Id=class extends $t{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return He(r,{received:r.data,code:we.invalid_literal,expected:this._def.value}),Dt}return {status:"valid",value:t.data}}get value(){return this._def.value}};Id.create=(e,t)=>new Id({value:e,typeName:wt.ZodLiteral,...Gt(t)});function C0e(e,t){return new Od({values:e,typeName:wt.ZodEnum,...Gt(t)})}var Od=class e extends $t{constructor(){super(...arguments),mb.set(this,void 0);}_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),n=this._def.values;return He(r,{expected:Cr.joinValues(n),received:r.parsedType,code:we.invalid_type}),Dt}if(dw(this,mb,"f")||_0e(this,mb,new Set(this._def.values),"f"),!dw(this,mb,"f").has(t.data)){let r=this._getOrReturnCtx(t),n=this._def.values;return He(r,{received:r.data,code:we.invalid_enum_value,options:n}),Dt}return ks(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}};mb=new WeakMap;Od.create=C0e;var Dd=class extends $t{constructor(){super(...arguments),yb.set(this,void 0);}_parse(t){let r=Cr.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==We.string&&n.parsedType!==We.number){let i=Cr.objectValues(r);return He(n,{expected:Cr.joinValues(i),received:n.parsedType,code:we.invalid_type}),Dt}if(dw(this,yb,"f")||_0e(this,yb,new Set(Cr.getValidEnumValues(this._def.values)),"f"),!dw(this,yb,"f").has(t.data)){let i=Cr.objectValues(r);return He(n,{received:n.data,code:we.invalid_enum_value,options:i}),Dt}return ks(t.data)}get enum(){return this._def.values}};yb=new WeakMap;Dd.create=(e,t)=>new Dd({values:e,typeName:wt.ZodNativeEnum,...Gt(t)});var Df=class extends $t{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==We.promise&&r.common.async===!1)return He(r,{code:we.invalid_type,expected:We.promise,received:r.parsedType}),Dt;let n=r.parsedType===We.promise?r.data:Promise.resolve(r.data);return ks(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Df.create=(e,t)=>new Df({type:e,typeName:wt.ZodPromise,...Gt(t)});var ja=class extends $t{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===wt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),i=this._def.effect||null,s={addIssue:a=>{He(n,a),a.fatal?r.abort():r.dirty();},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let a=i.transform(n.data,s);if(n.common.async)return Promise.resolve(a).then(async o=>{if(r.value==="aborted")return Dt;let u=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return u.status==="aborted"?Dt:u.status==="dirty"||r.value==="dirty"?aS(u.value):u});{if(r.value==="aborted")return Dt;let o=this._def.schema._parseSync({data:a,path:n.path,parent:n});return o.status==="aborted"?Dt:o.status==="dirty"||r.value==="dirty"?aS(o.value):o}}if(i.type==="refinement"){let a=o=>{let u=i.refinement(o,s);if(n.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?Dt:(o.status==="dirty"&&r.dirty(),a(o.value),{status:r.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?Dt:(o.status==="dirty"&&r.dirty(),a(o.value).then(()=>({status:r.value,value:o.value}))))}if(i.type==="transform")if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!gb(a))return a;let o=i.transform(a.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return {status:r.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>gb(a)?Promise.resolve(i.transform(a.value,s)).then(o=>({status:r.value,value:o})):a);Cr.assertNever(i);}};ja.create=(e,t,r)=>new ja({schema:e,typeName:wt.ZodEffects,effect:t,...Gt(r)});ja.createWithPreprocess=(e,t,r)=>new ja({schema:t,effect:{type:"preprocess",transform:e},typeName:wt.ZodEffects,...Gt(r)});var bo=class extends $t{_parse(t){return this._getType(t)===We.undefined?ks(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};bo.create=(e,t)=>new bo({innerType:e,typeName:wt.ZodOptional,...Gt(t)});var ul=class extends $t{_parse(t){return this._getType(t)===We.null?ks(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ul.create=(e,t)=>new ul({innerType:e,typeName:wt.ZodNullable,...Gt(t)});var Nd=class extends $t{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===We.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Nd.create=(e,t)=>new Nd({innerType:e,typeName:wt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Gt(t)});var Rd=class extends $t{_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Sb(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Ls(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ls(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Rd.create=(e,t)=>new Rd({innerType:e,typeName:wt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Gt(t)});var fS=class extends $t{_parse(t){if(this._getType(t)!==We.nan){let n=this._getOrReturnCtx(t);return He(n,{code:we.invalid_type,expected:We.nan,received:n.parsedType}),Dt}return {status:"valid",value:t.data}}};fS.create=e=>new fS({typeName:wt.ZodNaN,...Gt(e)});var nmt=Symbol("zod_brand"),Tb=class extends $t{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},Eb=class e extends $t{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return (async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Dt:s.status==="dirty"?(r.dirty(),aS(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Dt:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:wt.ZodPipeline})}},Md=class extends $t{_parse(t){let r=this._def.innerType._parse(t),n=i=>(gb(i)&&(i.value=Object.freeze(i.value)),i);return Sb(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}};Md.create=(e,t)=>new Md({innerType:e,typeName:wt.ZodReadonly,...Gt(t)});function w0e(e,t={},r){return e?Of.create().superRefine((n,i)=>{var s,a;if(!e(n)){let o=typeof t=="function"?t(n):typeof t=="string"?{message:t}:t,u=(a=(s=o.fatal)!==null&&s!==void 0?s:r)!==null&&a!==void 0?a:!0,l=typeof o=="string"?{message:o}:o;i.addIssue({code:"custom",...l,fatal:u});}}):Of.create()}var imt={object:ga.lazycreate},wt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly";})(wt||(wt={}));var smt=(e,t={message:`Input not instance of ${e.name}`})=>w0e(r=>r instanceof e,t),I0e=If.create,O0e=Ed.create,amt=fS.create,omt=bd.create,D0e=vd.create,umt=_d.create,lmt=uS.create,cmt=xd.create,pmt=Ad.create,fmt=Of.create,hmt=Sc.create,dmt=pu.create,mmt=lS.create,ymt=Tc.create,gmt=ga.create,Smt=ga.strictCreate,Tmt=Pd.create,Emt=mw.create,bmt=Cd.create,vmt=ol.create,_mt=yw.create,xmt=cS.create,Amt=pS.create,Pmt=gw.create,Cmt=wd.create,wmt=Id.create,Imt=Od.create,Omt=Dd.create,Dmt=Df.create,b0e=ja.create,Nmt=bo.create,Rmt=ul.create,Mmt=ja.createWithPreprocess,Lmt=Eb.create,kmt=()=>I0e().optional(),Fmt=()=>O0e().optional(),Bmt=()=>D0e().optional(),jmt={string:e=>If.create({...e,coerce:!0}),number:e=>Ed.create({...e,coerce:!0}),boolean:e=>vd.create({...e,coerce:!0}),bigint:e=>bd.create({...e,coerce:!0}),date:e=>_d.create({...e,coerce:!0})},Umt=Dt,at=Object.freeze({__proto__:null,defaultErrorMap:oS,setErrorMap:Udt,getErrorMap:fw,makeIssue:hw,EMPTY_PATH:qdt,addIssueToContext:He,ParseStatus:ys,INVALID:Dt,DIRTY:aS,OK:ks,isAborted:uj,isDirty:lj,isValid:gb,isAsync:Sb,get util(){return Cr},get objectUtil(){return oj},ZodParsedType:We,getParsedType:wf,ZodType:$t,datetimeRegex:P0e,ZodString:If,ZodNumber:Ed,ZodBigInt:bd,ZodBoolean:vd,ZodDate:_d,ZodSymbol:uS,ZodUndefined:xd,ZodNull:Ad,ZodAny:Of,ZodUnknown:Sc,ZodNever:pu,ZodVoid:lS,ZodArray:Tc,ZodObject:ga,ZodUnion:Pd,ZodDiscriminatedUnion:mw,ZodIntersection:Cd,ZodTuple:ol,ZodRecord:yw,ZodMap:cS,ZodSet:pS,ZodFunction:gw,ZodLazy:wd,ZodLiteral:Id,ZodEnum:Od,ZodNativeEnum:Dd,ZodPromise:Df,ZodEffects:ja,ZodTransformer:ja,ZodOptional:bo,ZodNullable:ul,ZodDefault:Nd,ZodCatch:Rd,ZodNaN:fS,BRAND:nmt,ZodBranded:Tb,ZodPipeline:Eb,ZodReadonly:Md,custom:w0e,Schema:$t,ZodSchema:$t,late:imt,get ZodFirstPartyTypeKind(){return wt},coerce:jmt,any:fmt,array:ymt,bigint:omt,boolean:D0e,date:umt,discriminatedUnion:Emt,effect:b0e,enum:Imt,function:Pmt,instanceof:smt,intersection:bmt,lazy:Cmt,literal:wmt,map:xmt,nan:amt,nativeEnum:Omt,never:dmt,null:pmt,nullable:Rmt,number:O0e,object:gmt,oboolean:Bmt,onumber:Fmt,optional:Nmt,ostring:kmt,pipeline:Lmt,preprocess:Mmt,promise:Dmt,record:_mt,set:Amt,strictObject:Smt,string:I0e,symbol:lmt,transformer:b0e,tuple:vmt,undefined:cmt,union:Tmt,unknown:hmt,void:mmt,NEVER:Umt,ZodIssueCode:we,quotelessJson:jdt,ZodError:Ls});var Sw=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),N0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var R0e=(e,t)=>{let{formErrors:r,fieldErrors:n}=t.flatten();return (0, N0e.dedent)(Sw.default` ${chunkF6FLWRPJ_js.H} Configuration file {bold ${e}} was invalid, please check the allowed keys. ${r.length>0?` ${r.map(i=>Sw.default`- {bold ${i}}`).join(` `)} `:""} ${Object.entries(n).map(([i,s])=>Sw.default`- {bold ${i}}: ${s}`).join(` `)} `)};var M0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),L0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var k0e=e=>(0, L0e.dedent)(M0e.default` ${chunkF6FLWRPJ_js.H} Configuration file {bold ${e}} could not be found. Check the {bold --config-file} flag of the CLI. `);var F0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),B0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var j0e=(e,t)=>{let r=e.endsWith(".jsonc")||e.endsWith(".json5")?"JSON5":"JSON";return (0, B0e.dedent)(F0e.default` ${chunkF6FLWRPJ_js.H} Configuration file {bold ${e}} could not be parsed, is it valid ${r}? The error was: {bold ${t.message}} `)};var Hmt=at.object({$schema:at.string(),projectId:at.string(),projectToken:at.string(),onlyChanged:at.union([at.string(),at.boolean()]),onlyStoryFiles:at.array(at.string()),onlyStoryNames:at.array(at.string()),traceChanged:at.union([at.string(),at.boolean()]),untraced:at.array(at.string()),externals:at.array(at.string()),debug:at.boolean(),diagnosticsFile:at.union([at.string(),at.boolean()]),fileHashing:at.boolean().default(!0),junitReport:at.union([at.string(),at.boolean()]),zip:at.boolean(),autoAcceptChanges:at.union([at.string(),at.boolean()]),exitZeroOnChanges:at.union([at.string(),at.boolean()]),exitOnceUploaded:at.union([at.string(),at.boolean()]),ignoreLastBuildOnBranch:at.string(),buildScriptName:at.string(),buildCommand:at.string(),playwright:at.boolean(),cypress:at.boolean(),outputDir:at.string(),skip:at.union([at.string(),at.boolean()]),skipUpdateCheck:at.boolean(),storybookBuildDir:at.string(),storybookBaseDir:at.string(),storybookConfigDir:at.string(),storybookLogFile:at.union([at.string(),at.boolean()]),logFile:at.union([at.string(),at.boolean()]),uploadMetadata:at.boolean()}).partial().strict();function Gmt(e){return [e,"chromatic.config.json","chromatic.config.jsonc","chromatic.config.json5"].find(r=>r&&fs$1.existsSync(r))||"chromatic.config.json"}async function pj(e){let t=Gmt(e);try{let r=fs$1.readFileSync(t,"utf8"),n=Hmt.parse(T0e.parse(r));return {configFile:t,...n}}catch(r){if($mt(r)){if(!e)return {};if(e)throw new Error(k0e(e))}throw r instanceof SyntaxError?new TypeError(j0e(t,r)):r instanceof Ls?new TypeError(R0e(t,r)):r}}function $mt(e){return e.toString().includes("ENOENT")}var{CHROMATIC_DNS_FAILOVER_SERVERS:Kmt="1.1.1.1, 8.8.8.8",CHROMATIC_DNS_SERVERS:Ymt="",CHROMATIC_HASH_CONCURRENCY:Wmt="48",CHROMATIC_INDEX_URL:U0e="https://index.chromatic.com",CHROMATIC_NOTIFY_SERVICE_URL:Xmt,CHROMATIC_OUTPUT_INTERVAL:zmt=String(10*1e3),CHROMATIC_POLL_INTERVAL:Jmt=String(1e3),CHROMATIC_PROJECT_TOKEN:Qmt,CHROMATIC_RETRIES:Zmt="5",CHROMATIC_STORYBOOK_VERSION:eyt,CHROMATIC_TIMEOUT:tyt=String(5*60*1e3),CHROMATIC_UPGRADE_TIMEOUT:ryt=String(60*60*1e3),HTTP_PROXY:nyt=process.env.http_proxy,HTTPS_PROXY:iyt=process.env.https_proxy,STORYBOOK_BUILD_TIMEOUT:syt=String(10*60*1e3),STORYBOOK_VERIFY_TIMEOUT:ayt=String(3*60*1e3),STORYBOOK_NODE_ENV:oyt="production"}=process.env,uyt=[/^GERRIT/,/^TRAVIS/],lyt={"--ci":"4.0.0","--loglevel":"5.1.0"};function fj(){return {CHROMATIC_DNS_FAILOVER_SERVERS:Kmt.split(",").map(e=>e.trim()).filter(Boolean),CHROMATIC_DNS_SERVERS:Ymt.split(",").map(e=>e.trim()).filter(Boolean),CHROMATIC_HASH_CONCURRENCY:Number.parseInt(Wmt,10),CHROMATIC_INDEX_URL:U0e,CHROMATIC_NOTIFY_SERVICE_URL:Xmt||cyt(U0e),CHROMATIC_OUTPUT_INTERVAL:Number.parseInt(zmt,10),CHROMATIC_POLL_INTERVAL:Number.parseInt(Jmt,10),CHROMATIC_PROJECT_TOKEN:Qmt,CHROMATIC_RETRIES:Number.parseInt(Zmt,10),CHROMATIC_STORYBOOK_VERSION:eyt,CHROMATIC_TIMEOUT:Number.parseInt(tyt,10),CHROMATIC_UPGRADE_TIMEOUT:Number.parseInt(ryt,10),ENVIRONMENT_WHITELIST:uyt,HTTP_PROXY:nyt,HTTPS_PROXY:iyt,STORYBOOK_BUILD_TIMEOUT:Number.parseInt(syt,10),STORYBOOK_CLI_FLAGS_BY_VERSION:lyt,STORYBOOK_VERIFY_TIMEOUT:Number.parseInt(ayt,10),STORYBOOK_NODE_ENV:oyt}}function cyt(e){return e.includes("dev")?"wss://notify.dev-chromatic.com":e.includes("staging")?"wss://notify.staging-chromatic.com":"wss://notify.chromatic.com"}var q0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),V0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var bb=(e,t)=>(0, V0e.dedent)(q0e.default` ${chunkF6FLWRPJ_js.H} Invalid {bold ${e}} This option can only be used in conjunction with {bold ${t}} `);var H0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),G0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var $0e=()=>(0, G0e.dedent)(H0e.default` ${chunkF6FLWRPJ_js.H} Invalid value to {bold --patch-build} The two branches cannot be identical. `);var hj=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),K0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var dj=e=>(0, K0e.dedent)(hj.default` ${chunkF6FLWRPJ_js.H} Incompatible options: ${e.map(t=>hj.default.bold(t)).join(", ")} These options cannot be used together. `);var Y0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),W0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var X0e=()=>(0, W0e.dedent)(Y0e.default` ${chunkF6FLWRPJ_js.H} Invalid {bold --only-story-names} Value must be provided in the form {bold 'Path/To/MyStory'}. Globbing is supported, for example: 'Pages/**' `);var z0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),J0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var Q0e=(e,t)=>(0, J0e.dedent)(z0e.default` ${chunkF6FLWRPJ_js.H} Invalid value for {bold --branch-name} and/or {bold --repository-slug} The branch owner name prefix '${e}' does not match the repository owner '${t}'. `);var Z0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),ebe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var tbe=e=>(0, ebe.dedent)(Z0e.default` ${chunkF6FLWRPJ_js.H} {bold Invalid package.json} Found invalid package.json at {bold ${e}} Make sure this is a valid Node.js package file, is readable, and contains a {bold "scripts"} block. `);var rbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),nbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var pyt="https://www.chromatic.com/docs/branching-and-baselines/#what-happens-when-the-merge-base-build-isnt-found-patch-builds",ibe=()=>(0, nbe.dedent)(rbe.default` ${chunkF6FLWRPJ_js.H} Invalid value for {bold --patch-build} This option expects two branch names like {bold headbranch...basebranch} ${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f(pyt)} `);var sbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),abe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var obe=()=>(0, abe.dedent)(sbe.default` ${chunkF6FLWRPJ_js.H} Invalid value for {bold --junit-report} If you pass a file path, make sure it ends with '.xml' `);var ube=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),lbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var cbe=()=>(0, lbe.dedent)(ube.default` ${chunkF6FLWRPJ_js.H} Invalid value for {bold --repository-slug} The value must be in the format {bold ownerName/repositoryName} You can typically find this in the URL of your repository. `);var pbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),fbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var vb=e=>(0, fbe.dedent)(pbe.default` ${chunkF6FLWRPJ_js.H} You can only use one of {bold ${e.join(", ")}} `);var hbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),dbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var mbe=e=>(0, dbe.dedent)(hbe.default` ${chunkF6FLWRPJ_js.H} {bold Build script not found} The CLI didn't find a script called {bold "${e}"} in your {bold package.json}. Make sure you set the {bold --build-script-name} option to the value of the script name that builds your Storybook. `);var ybe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),gbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var Sbe=()=>(0, gbe.dedent)(ybe.default` ${chunkF6FLWRPJ_js.H} {bold Missing project token} Sign in to ${chunkHZVCNUTP_js.f("https://www.chromatic.com/start")} and create a new project, or find your project token on the Manage screen in an existing project. Set your project token as the {bold CHROMATIC_PROJECT_TOKEN} environment variable or pass the {bold --project-token} command line option. ${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/quickstart/")} `);var mj=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Ebe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var fyt="https://github.com/chromaui/chromatic-cli/blob/main/CHANGELOG.md",Tbe=e=>`--${e.replaceAll(/[A-Z]/g,"-$&").toLowerCase()}`,bbe=({flag:e,replacement:t})=>(0, Ebe.dedent)(mj.default` ${chunkF6FLWRPJ_js.G} {bold Using deprecated option: ${Tbe(e)}} This option is ${t?mj.default`superceded by {bold ${Tbe(t)}}`:"deprecated"} and may be removed in a future release. Refer to the changelog for more information: ${chunkHZVCNUTP_js.f(fyt)} `);var yj=e=>Array.isArray(e)?e.at(-1):e,Tw=e=>e?Array.isArray(e)?e:[e]:[],Ec=e=>e===""?!0:e,vbe=(e,t)=>e===""?t:e,_be=(e,t)=>["",!0,void 0].includes(e)?t:e,Ew=e=>{let t=e.filter(Boolean);return t.length>0?t:void 0},xbe=e=>Object.fromEntries(Object.entries(e).filter(([t,r])=>r!==void 0)),_b=(e,t)=>{switch(typeof e){case"boolean":return e?t:void 0;case"string":return e||t;default:return}};function gj(e){var ue,fe;let{argv:t,env:r,flags:n,extraOptions:i,configuration:s,log:a,packageJson:o,packagePath:u}=e,l={projectToken:r.CHROMATIC_PROJECT_TOKEN,fromCI:!!process.env.CI,inAction:!1,dryRun:!1,debug:!1,autoAcceptChanges:!1,exitZeroOnChanges:!1,exitOnceUploaded:!1,diagnosticsFile:void 0,fileHashing:!0,interactive:!1,isLocalBuild:!1,originalArgv:t,onlyChanged:void 0,onlyStoryFiles:void 0,onlyStoryNames:void 0,untraced:void 0,externals:void 0,traceChanged:void 0,list:void 0,logFile:void 0,skip:void 0,forceRebuild:void 0,junitReport:void 0,zip:void 0,skipUpdateCheck:void 0,ignoreLastBuildOnBranch:void 0,preserveMissingSpecs:void 0,buildScriptName:void 0,buildCommand:void 0,playwright:void 0,cypress:void 0,outputDir:void 0,storybookBuildDir:void 0,storybookBaseDir:void 0,storybookConfigDir:void 0,storybookLogFile:void 0,ownerName:void 0,repositorySlug:void 0,branchName:void 0,patchHeadRef:void 0,patchBaseRef:void 0,uploadMetadata:void 0},[c,p]=(n.patchBuild||"").split("...").filter(Boolean),[h,f]=(n.branchName||"").split(":").reverse(),[d,m,...y]=((ue=n.repositorySlug)==null?void 0:ue.split("/"))||[],g="chromatic.log",v="chromatic-build-{buildNumber}.xml",E="chromatic-diagnostics.json",S="build-storybook.log",x="build-archive.log",b=xbe({projectToken:yj(n.projectToken),onlyChanged:Ec(n.onlyChanged),onlyStoryFiles:Ew(Tw(n.onlyStoryFiles)),onlyStoryNames:Ew(Tw(n.onlyStoryNames)),untraced:Ew(Tw(n.untraced)),externals:Ew(Tw(n.externals)),traceChanged:Ec(n.traceChanged),list:n.list,logFile:vbe(n.logFile,g),fromCI:n.ci,skip:Ec(n.skip),dryRun:n.dryRun,fileHashing:n.fileHashing,forceRebuild:Ec(n.forceRebuild),debug:n.debug,diagnosticsFile:_b(n.diagnosticsFile,E),junitReport:vbe(n.junitReport,v),zip:n.zip,skipUpdateCheck:n.skipUpdateCheck,autoAcceptChanges:Ec(n.autoAcceptChanges),exitZeroOnChanges:Ec(n.exitZeroOnChanges),exitOnceUploaded:Ec(n.exitOnceUploaded),ignoreLastBuildOnBranch:n.ignoreLastBuildOnBranch,preserveMissingSpecs:n.preserveMissing,buildScriptName:n.buildScriptName,buildCommand:n.buildCommand,playwright:Ec(n.playwright),cypress:Ec(n.cypress),outputDir:yj(n.outputDir),storybookBuildDir:yj(n.storybookBuildDir),storybookBaseDir:n.storybookBaseDir,storybookConfigDir:n.storybookConfigDir,storybookLogFile:n.playwright||n.cypress?_be(n.storybookLogFile,x):_be(n.storybookLogFile,S),ownerName:f||d,repositorySlug:n.repositorySlug,branchName:h,patchHeadRef:c,patchBaseRef:p,uploadMetadata:n.uploadMetadata}),{logFile:A,diagnosticsFile:D,junitReport:P,storybookLogFile:V,...X}=s||{},oe=xbe({...X,logFile:_b(A,g),diagnosticsFile:_b(D,E),junitReport:_b(P,v),storybookLogFile:_b(V,S)}),le={...l,...oe,...b,...i,interactive:!process.env.CI&&!n.ci&&!n.debug&&!!n.interactive&&!!process.stdout.isTTY&&process.env.NODE_ENV!=="test"};if(le.debug&&(a.setLevel("debug"),a.setInteractive(!1)),(le.debug||le.uploadMetadata)&&(le.logFile=le.logFile??g,le.diagnosticsFile=le.diagnosticsFile??E),!le.projectToken&&!(le.projectId&&le.userToken))throw new Error(Sbe());if(d&&(!m||y.length>0))throw new Error(cbe());if(f&&d&&f!==d)throw new Error(Q0e(f,d));if(n.patchBuild){if(!le.patchHeadRef||!le.patchBaseRef)throw new Error(ibe());if(le.patchHeadRef===le.patchBaseRef)throw new Error($0e())}if((fe=le.onlyStoryNames)!=null&&fe.some(Se=>!/[\w*]\/[\w*]/.test(Se)))throw new Error(X0e());let{storybookBuildDir:Be}=le,{buildScriptName:be}=le,Ee={storybookBuildDir:"--storybook-build-dir",playwright:"--playwright",cypress:"--cypress"},Te=Object.keys(Ee).filter(Se=>!!le[Se]);if(Te.length>1)throw new Error(vb(Te.map(Se=>Ee[Se])));if(le.onlyChanged&&le.onlyStoryFiles)throw new Error(vb(["--only-changed","--only-story-files"]));if(le.onlyChanged&&le.onlyStoryNames)throw new Error(vb(["--only-changed","--only-story-names"]));if(le.onlyStoryNames&&le.onlyStoryFiles)throw new Error(vb(["--only-story-files","--only-story-names"]));if(le.untraced&&!le.onlyChanged)throw new Error(bb("--untraced","--only-changed"));if(le.externals&&!le.onlyChanged)throw new Error(bb("--externals","--only-changed"));if(le.traceChanged&&!le.onlyChanged)throw new Error(bb("--trace-changed","--only-changed"));if(le.junitReport&&le.exitOnceUploaded)throw new Error(dj(["--junit-report","--exit-once-uploaded"]));if(le.buildScriptName&&le.buildCommand)throw new Error(dj(["--build-script-name","--build-command"]));if(le.buildCommand&&!le.outputDir)throw new Error(bb("--build-command","--output-dir"));if(typeof le.junitReport=="string"&&ux__namespace.default.extname(le.junitReport)!==".xml")throw new Error(obe());let Me=le;if(n.preserveMissing&&(a.info(""),a.info(bbe({flag:"preserveMissing"}))),Be||le.buildCommand||En(Me))return Me;(typeof o!="object"||typeof o.scripts!="object")&&(a.error(tbe(u)),process.exit(252));let{scripts:At}=o;if(typeof be!="string"&&(be="build-storybook",!At[be])){let[Se]=Object.entries(At).find(([,je])=>je.startsWith("build-storybook"))||[];Se&&(be=Se);}if(At&&be&&At[be])return {...Me,buildScriptName:be};throw new Error(mbe(be))}var Abe=chunkTKGT252T_js.e(XB()),hS=class{constructor(t,r){this.tasks=t,this.options=r,this.updateRenderer=new Abe.default(t,r);}render(){this.updateRenderer.render();for(let t of this.tasks){let r;t.subscribe(n=>{n.type==="TITLE"&&this.options.log.file(`${t.title}`),n.type==="DATA"&&r!==n.data&&(r=n.data,this.options.log.file(` \u2192 ${n.data}`));});}}end(){this.updateRenderer.end();}};hS.nonTTY=!1;var dS=class{constructor(t,r){this.tasks=t,this.options=r;}render(){for(let t of this.tasks){let r;t.subscribe(n=>{n.type==="TITLE"&&this.options.log.info(`${t.title}`),n.type==="DATA"&&r!==n.data&&(r=n.data,this.options.log.info(` \u2192 ${n.data}`));});}}end(){}};dS.nonTTY=!0;var Pbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.z());var Sj={name:"chromatic",version:"15.0.0",description:"Automate visual testing across browsers. Gather UI feedback. Versioned documentation.",keywords:["storybook-addon","storybook","addon","test","popular"],homepage:"https://www.chromatic.com",bugs:{url:"https://github.com/chromaui/chromatic-cli",email:"support@chromatic.com"},repository:{type:"git",url:"git+https://github.com/chromaui/chromatic-cli.git"},license:"MIT",author:{name:"Chromatic",email:"support@chromatic.com"},exports:{".":{types:"./isChromatic.d.ts",require:"./isChromatic.js",import:"./isChromatic.mjs"},"./node":{types:"./dist/node.d.ts",require:"./dist/node.js",node:"./dist/node.js"},"./isChromatic":{types:"./isChromatic.d.ts",require:"./isChromatic.js",import:"./isChromatic.mjs"},"./package.json":"./package.json"},main:"isChromatic.js",module:"isChromatic.mjs",typesVersions:{"*":{"*":["./isChromatic.d.ts"],isChromatic:["./isChromatic.d.ts"],node:["dist/node.d.ts"]}},bin:{chroma:"dist/bin.js",chromatic:"dist/bin.js","chromatic-cli":"dist/bin.js"},files:["dist/*.js","dist/node.d.ts","isChromatic.js","isChromatic.mjs","isChromatic.d.ts"],resolutions:{"any-observable":"^0.5.1"},devDependencies:{"@actions/core":"^1.10.0","@actions/github":"^5.0.0","@antfu/ni":"^0.21.5","@auto-it/slack":"^11.1.6","@discoveryjs/json-ext":"^0.5.7","@eslint-community/eslint-plugin-eslint-comments":"^4.3.0","@sentry/cli":"^2.37.0","@sentry/node":"^8.30.0","@snyk/dep-graph":"^2.9.0","@storybook/addon-essentials":"^8.1.5","@storybook/addon-webpack5-compiler-swc":"^1.0.3","@storybook/csf-tools":"^8.1.5","@storybook/linter-config":"^4.0.0","@storybook/react":"^8.1.5","@storybook/react-webpack5":"^8.1.5","@tsconfig/node16":"^16.1.1","@types/archiver":"^5.3.1","@types/async-retry":"^1.4.3","@types/cross-spawn":"^6.0.2","@types/fs-extra":"^9.0.13","@types/jsonfile":"^6.0.1","@types/listr":"^0.14.4","@types/node":"18.x","@types/picomatch":"^2.3.0","@types/progress-stream":"^2.0.2","@types/prompts":"^2.4.9","@types/semver":"^7.3.9","@types/webpack-env":"^1.18.5","@types/ws":"^8","@typescript-eslint/eslint-plugin":"^6.8.0","@typescript-eslint/parser":"^6.8.0","@vitest/coverage-v8":"^2.0.5","ansi-html":"0.0.9","any-observable":"^0.5.1",archiver:"^5.3.0","async-retry":"^1.3.3",auto:"^11.0.5",boxen:"^7.1.1",chalk:"^4.1.2","clean-package":"^2.2.0",cpy:"^8.1.2","cross-env":"^7.0.3","cross-spawn":"^7.0.2",debug:"^4.3.2",dotenv:"^16.4.5","env-ci":"^11.1.0",eslint:"^9.10.0","eslint-config-prettier":"^9.0.0","eslint-plugin-import":"^2.28.1","eslint-plugin-jsdoc":"^48.2.6","eslint-plugin-json":"^3.1.0","eslint-plugin-no-secrets":"^1.0.2","eslint-plugin-react":"^7.33.2","eslint-plugin-security":"^3.0.0","eslint-plugin-simple-import-sort":"^12.1.0","eslint-plugin-sort-class-members":"^1.20.0","eslint-plugin-unicorn":"^53.0.0",esm:"^3.2.25",execa:"^9.6.0","fake-tag":"^2.0.0",filesize:"^10.1.0","find-up":"^7.0.0","formdata-node":"^6.0.3","fs-extra":"^10.0.0",globals:"^15.3.0","https-proxy-agent":"^7.0.2",husky:"^7.0.0",json5:"^2.2.3",jsonfile:"^6.0.1","junit-report-builder":"3.1.0",listr:"0.14.3","listr-update-renderer":"^0.5.0",meow:"^9.0.0","mock-fs":"^5.1.2","no-proxy":"^1.0.3","node-ask":"^1.0.1","node-fetch":"3.2.10","npm-run-all":"^4.0.2",observable:"^2.1.4","os-browserify":"^0.3.0","p-limit":"3.1.0",picomatch:"2.2.2","pkg-up":"^3.1.0",pluralize:"^8.0.0",prettier:"^3.2.5","progress-stream":"^2.0.0",prompts:"^2.4.2","prop-types":"^15.7.2",react:"^17.0.2","react-dom":"^17.0.2","read-package-up":"^11.0.0",semver:"^7.3.5",slash:"^3.0.0","snyk-nodejs-lockfile-parser":"^1.58.18","snyk-nodejs-plugin":"^1.4.3","sort-package-json":"1.50.0",storybook:"^8.1.5","string-argv":"^0.3.1","strip-ansi":"^7.1.0","tmp-promise":"3.0.2","ts-dedent":"^1.0.0","ts-loader":"^9.2.5",tsup:"^7.2.0",typescript:"^5.2.2","typescript-eslint":"^7.11.0","util-deprecate":"^1.0.2",uuid:"^8.3.2",vite:"^4.4.9","vite-tsconfig-paths":"^5.1.4",vitest:"^2.0.5","why-is-node-running":"^2.1.2",ws:"^8.18.2","xxhash-wasm":"^1.0.2","yarn-or-npm":"^3.0.1","zen-observable":"^0.8.15",zod:"^3.22.2"},peerDependencies:{"@chromatic-com/cypress":"^0.*.* || ^1.0.0","@chromatic-com/playwright":"^0.*.* || ^1.0.0"},peerDependenciesMeta:{"@chromatic-com/cypress":{optional:!0},"@chromatic-com/playwright":{optional:!0}},publishConfig:{access:"public",registry:"https://registry.npmjs.org/"},docs:"https://www.chromatic.com/docs/cli",storybook:{icon:"https://user-images.githubusercontent.com/263385/101995175-2e087800-3c96-11eb-9a33-9860a1c3ce62.gif",displayName:"Chromatic"}};function Tj(e){let{input:t,flags:r,help:n}=(0, Pbe.default)(` Chromatic CLI https://www.chromatic.com/docs/cli Usage $ chromatic --project-token Required options --project-token, -t The unique code for your project. Alternatively, set CHROMATIC_PROJECT_TOKEN. Storybook options --build-script-name, -b [name] The npm script that builds your Storybook we should take snapshots against. Use this if your Storybook build script is named differently. [build-storybook] --build-command The command that builds your Storybook we should take snapshots against. Use this if your Storybook build command does not exist in "scripts" of your package.json (like using NX). Requires --output-dir. --output-dir, -o Relative path to target directory for building your Storybook, in case you want to preserve it. Otherwise a temporary directory is used if possible. --storybook-build-dir, -d If you have already built your Storybook, provide the path to the static build directory. Chromatic options --auto-accept-changes [branch] If there are any changes to the build, automatically accept them. Only for [branch], if specified. Globs are supported via picomatch. --branch-name Override the branch name. Only meant to be used for unsupported CI integrations and fixing cross-fork PR comparisons. Also accepts : format. --ci Mark this build as a CI build. Alternatively, set the 'CI' environment variable (present in most CI systems). This option implies --no-interactive. --config-file, -c Path to a configuration file containing the options listed in JSON format. Uses "chromatic.config.json" by default. --exit-once-uploaded [branch] Exit with 0 once the built version has been published to Chromatic. Only for [branch], if specified. Globs are supported via picomatch. --exit-zero-on-changes [branch] If all snapshots render but there are visual changes, exit with code 0 rather than the usual exit code 1. Only for [branch], if specified. Globs are supported via picomatch. --externals Disable TurboSnap when any of these files have changed since the baseline build. Globs are supported via picomatch. This flag can be specified multiple times. Requires --only-changed. --ignore-last-build-on-branch Do not use the last build on this branch as a baseline if it is no longer in history (i.e. branch was rebased). Globs are supported via picomatch. --only-changed [branch] Enables TurboSnap: Only run stories affected by files changed since the baseline build. Only for [branch], if specified. Globs are supported via picomatch. All other snapshots will be inherited from the prior commit. --only-story-files Only run a single story or a subset of stories by their filename(s). Specify the full path to the story file relative to the root of your Storybook project. Globs are supported via picomatch. This flag can be specified multiple times. --only-story-names Only run a single story or a subset of stories. Story paths typically look like "Path/To/Story". Globs are supported via picomatch. This flag can be specified multiple times. --patch-build Create a patch build to fix a missing PR comparison. --repository-slug Override the repository slug. Only meant to be used for unsupported CI integrations and fixing cross-fork PR comparisons. Format: /. --skip [branch] Skip Chromatic tests, but mark the commit as passing. Avoids blocking PRs due to required merge checks. Only for [branch], if specified. Globs are supported via picomatch. --storybook-base-dir Relative path from repository root to Storybook project root. Use with --only-changed and --storybook-build-dir when running Chromatic from a different directory than your Storybook. --storybook-config-dir Relative path from where you run Chromatic to your Storybook config directory ('.storybook'). Use with --only-changed and --storybook-build-dir when using a custom --config-dir (-c) flag for Storybook. [.storybook] --untraced Disregard these files and their dependencies when tracing dependent stories for TurboSnap. Globs are supported via picomatch. This flag can be specified multiple times. Requires --only-changed. --zip Publish your Storybook to Chromatic as a single zip file instead of individual content files. --skip-update-check Skip checking for available Chromatic package update. Debug options --debug Output verbose debugging information. This option implies --no-interactive, --diagnostics-file, --log-file. --diagnostics-file [filepath] Write process context information to a JSON file. Disable via --no-diagnostics-file. [chromatic-diagnostics.json] --dry-run Run without actually publishing to Chromatic. --force-rebuild [branch] Do not skip build when a rebuild is detected. Only for [branch], if specified. Globs are supported via picomatch. --junit-report [filepath] Write build results to a JUnit XML file. {buildNumber} will be replaced with the actual build number. [chromatic-build-{buildNumber}.xml] --list List available stories. This requires running a full build. --log-file [filepath] Write log output to a file. Disable via --no-log-file. [chromatic.log] --log-level One of "silent", "error", "warn", "info", "debug". Defaults to "info". --log-prefix Prefix for each log line. Defaults to current timestamp except in interactive mode. Set to "" to disable. --no-file-hashing Disable file hashing. This will cause all files to be uploaded on every build. --no-interactive Don't ask interactive questions about your setup and don't overwrite output. Always true in non-TTY environments. --storybook-log-file [filepath] Write Storybook build output to a file. Disable via --no-storybook-log-file. [storybook-build.log] --trace-changed [mode] Print dependency trace for changed files to affected story files. Set to "expanded" to list individual modules. Requires --only-changed. --upload-metadata Upload Chromatic metadata files as part of the published Storybook. Includes diagnostics and log files, among others. This option enables --diagnostics-file, --log-file and --storybook-log-file, unless explicitly disabled via the 'no-' prefix. Deprecated options --preserve-missing Treat missing stories as unchanged rather than deleted when comparing to the baseline. `,{argv:e,booleanDefault:void 0,description:!1,pkg:{},version:Sj.version,flags:{projectToken:{type:"string",alias:"t",isMultiple:!0},buildScriptName:{type:"string",alias:"b"},buildCommand:{type:"string"},outputDir:{type:"string",alias:"o",isMultiple:!0},storybookBuildDir:{type:"string",alias:"d",isMultiple:!0},autoAcceptChanges:{type:"string"},branchName:{type:"string"},ci:{type:"boolean"},configFile:{type:"string",alias:"c"},exitOnceUploaded:{type:"string"},exitZeroOnChanges:{type:"string"},externals:{type:"string",isMultiple:!0},ignoreLastBuildOnBranch:{type:"string"},onlyChanged:{type:"string"},onlyStoryFiles:{type:"string",isMultiple:!0},onlyStoryNames:{type:"string",isMultiple:!0},patchBuild:{type:"string"},repositorySlug:{type:"string"},skip:{type:"string"},storybookBaseDir:{type:"string"},storybookConfigDir:{type:"string"},untraced:{type:"string",isMultiple:!0},zip:{type:"boolean"},debug:{type:"boolean"},diagnosticsFile:{type:"string"},dryRun:{type:"boolean"},fileHashing:{type:"boolean",default:!0},forceRebuild:{type:"string"},interactive:{type:"boolean",default:!0},junitReport:{type:"string"},list:{type:"boolean"},logFile:{type:"string"},logLevel:{type:"string",choices:["silent","error","warn","info","debug"]},logPrefix:{type:"string"},storybookLogFile:{type:"string"},traceChanged:{type:"string"},uploadMetadata:{type:"boolean"},preserveMissing:{type:"boolean"}}});return {argv:e,input:t,flags:r,help:n,pkg:Sj}}var P3e=chunkTKGT252T_js.e(chunkHZVCNUTP_js.e());var myt="array",yyt="bit",Cbe="bits",gyt="byte",wbe="bytes",mS="",Syt="exponent",Tyt="function",Ibe="iec",Eyt="Invalid number",byt="Invalid rounding method",Ej="jedec",vyt="object",Obe=".",_yt="round",xyt="s",Ayt="si",Pyt="kbit",Cyt="kB",wyt=" ",Iyt="string",Oyt="0",bj={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function _o(e,{bits:t=!1,pad:r=!1,base:n=-1,round:i=2,locale:s=mS,localeOptions:a={},separator:o=mS,spacer:u=wyt,symbols:l={},standard:c=mS,output:p=Iyt,fullform:h=!1,fullforms:f=[],exponent:d=-1,roundingMethod:m=_yt,precision:y=0}={}){let g=d,v=Number(e),E=[],S=0,x=mS;c===Ayt?(n=10,c=Ej):c===Ibe||c===Ej?n=2:n===2?c=Ibe:(n=10,c=Ej);let b=n===10?1e3:1024,A=h===!0,D=v<0,P=Math[m];if(typeof e!="bigint"&&isNaN(e))throw new TypeError(Eyt);if(typeof P!==Tyt)throw new TypeError(byt);if(D&&(v=-v),(g===-1||isNaN(g))&&(g=Math.floor(Math.log(v)/Math.log(b)),g<0&&(g=0)),g>8&&(y>0&&(y+=8-g),g=8),p===Syt)return g;if(v===0)E[0]=0,x=E[1]=bj.symbol[c][t?Cbe:wbe][g];else {S=v/(n===2?Math.pow(2,g*10):Math.pow(1e3,g)),t&&(S=S*8,S>=b&&g<8&&(S=S/b,g++));let V=Math.pow(10,g>0?i:0);E[0]=P(S*V)/V,E[0]===b&&g<8&&d===-1&&(E[0]=1,g++),x=E[1]=n===10&&g===1?t?Pyt:Cyt:bj.symbol[c][t?Cbe:wbe][g];}if(D&&(E[0]=-E[0]),y>0&&(E[0]=E[0].toPrecision(y)),E[1]=l[E[1]]||E[1],s===!0?E[0]=E[0].toLocaleString():s.length>0?E[0]=E[0].toLocaleString(s,a):o.length>0&&(E[0]=E[0].toString().replace(Obe,o)),r&&Number.isInteger(E[0])===!1&&i>0){let V=o||Obe,X=E[0].toString().split(V),oe=X[1]||mS,le=oe.length,Be=i-le;E[0]=`${X[0]}${V}${oe.padEnd(le+Be,Oyt)}`;}return A&&(E[1]=f[g]?f[g]:bj.fullform[c][g]+(t?yyt:gyt)+(E[0]===1?mS:xyt)),p===myt?E:p===vyt?{value:E[0],symbol:E[1],exponent:g,unit:x}:E.join(u)}var Dyt='',Dbe=({announcedBuild:e,build:t},r,n=new Date)=>` Build ${e.number} metadata files

Build ${e.number} ${t?`${Dyt}`:""}

Metadata files
    ${r.map(({targetPath:i,contentLength:s})=>{let a=i.replace(/^\.chromatic\//,""),o=_o(s);return `
  • ${a} (${o})
  • `}).join("")}
Generated on ${n.toLocaleString("en",{timeStyle:"medium",dateStyle:"full",hourCycle:"h24",timeZone:"UTC"})} UTC `;var Nbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Rbe=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H());var Mbe=(e,t)=>{let r=(0, Rbe.default)("metadata file",t.length,!0),n=`- ${t.map(i=>i.targetPath.replace(/^\.chromatic\//,"")).join(` - `)}`;return Nbe.default`${chunkF6FLWRPJ_js.E} Uploading {bold ${r}} to ${chunkHZVCNUTP_js.f(e)}\n${n}`};var AD=chunkTKGT252T_js.e(CLe()),NLe=chunkTKGT252T_js.e(chunkIM5VGDJQ_js.a()),RLe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.z()),MLe=chunkTKGT252T_js.e(chunkHZVCNUTP_js.a());function Q7(e,t,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,i=e,s=[];t&&s.push(t),r&&s.push(r);var a;do a=n.exec(i),a!==null&&s.push(O_r(a[1],a[6],a[0]));while(a!==null);return s}function O_r(){for(var e=[],t=0;t(0, ILe.dedent)(wLe.default` ${chunkF6FLWRPJ_js.H} {bold Storybook package not installed} Could not find {bold ${e}} in {bold node_modules}. Most likely, you forgot to run {bold npm install} or {bold yarn} before running Chromatic. `);var O_={webpack4:"@storybook/builder-webpack4",webpack5:"@storybook/builder-webpack5","@storybook/vite-builder":"@storybook/builder-vite","@storybook/builder-webpack5":"@storybook/react-webpack5","@storybook/react-vite":"@storybook/builder-vite"};var OLe=e=>new Promise((t,r)=>e.then(r,t)),DLe=e=>OLe(Promise.all(e.map(t=>OLe(t))).then(t=>t[0])),D_=e=>new Promise((t,r)=>{setTimeout(()=>r(new Error("Timeout while resolving Storybook view layer package")),e);});var Qc={"@storybook/react":"react","@storybook/vue":"vue","@storybook/vue3":"vue3","@storybook/angular":"angular","@storybook/html":"html","@storybook/web-components":"web-components","@storybook/polymer":"polymer","@storybook/ember":"ember","@storybook/marko":"marko","@storybook/mithril":"mithril","@storybook/riot":"riot","@storybook/svelte":"svelte","@storybook/preact":"preact","@storybook/rax":"rax","@storybook/react-webpack5":"@storybook/react-webpack5","@storybook/react-vite":"react"};var xD=e=>{try{let t=ux__namespace.default.resolve(`node_modules/${e}/package.json`);return (0,NLe.readJson)(t)}catch(t){return Promise.reject(t)}},N_r=({dependencies:e,devDependencies:t,peerDependencies:r},n)=>[Object.keys(e||{}).find(i=>n(i)),Object.keys(t||{}).find(i=>n(i)),Object.keys(r||{}).find(i=>n(i))],R_r=({packageJson:e,log:t},r)=>{let[n,i,s]=N_r(e,l=>r[l]),[a,o]=n||i||s||[],u=Qc[a];return n&&i&&n[0]===i[0]&&t.warn(`Found "${n[0]}" in both "dependencies" and "devDependencies". This is probably a mistake.`),n&&s&&n[0]===s[0]&&t.warn(`Found "${n[0]}" in both "dependencies" and "peerDependencies". This is probably a mistake.`),{dependency:u,version:o,dependencyPackage:a}},M_r=async({env:e,log:t,options:r,packageJson:n})=>{if(e.CHROMATIC_STORYBOOK_VERSION){let[,o,u]=e.CHROMATIC_STORYBOOK_VERSION.match(/(.+)@(.+)$/)||[],l=MLe.default.valid(u);if(!o||!l)throw new Error('Invalid CHROMATIC_STORYBOOK_VERSION; expecting something like "@storybook/react@6.2.0".');if(!(Qc[o]||Qc[`@storybook/${o}`]))throw new Error(`Unsupported viewlayer specified in CHROMATIC_STORYBOOK_VERSION: ${o}`);return {version:l}}let{dependency:i,version:s,dependencyPackage:a}=R_r({log:t,packageJson:n},Qc);return i?r.storybookBuildDir?{version:s}:Promise.race([xD(a).then(o=>({version:o.version})).catch(()=>{throw new Error(I_(a))}),D_(1e4)]):(r.interactive||t.info("No viewlayer package listed in dependencies. Checking transitive dependencies."),Promise.race([DLe(Object.entries(Qc).map(async([o])=>({version:(await xD(o)).version}))).catch(()=>{throw new Error(I_(a))}),D_(1e4)]))},L_r=async({options:e,packageJson:t})=>{let{scripts:r={}}=t;if(!e.buildScriptName||!r[e.buildScriptName])return {};let{flags:n}=(0, RLe.default)({argv:Q7(r[e.buildScriptName]),flags:{configDir:{type:"string",alias:"c"},staticDir:{type:"string",alias:"s"}}});return {configDir:n.configDir,staticDir:n.staticDir&&n.staticDir.split(",")}},k_r=async(e,t)=>{if(!e)return {builder:{name:"unknown",packageVersion:"0"}};let r=t?e.getSafeFieldValue(["framework"]):e==null?void 0:e.framework,n=t?e.getSafeFieldValue(["core"]):e==null?void 0:e.core;if(r!=null&&r.name){let s=r.name;return Promise.race([xD(s).then(a=>({builder:{name:s,packageVersion:a.version}})).catch(()=>{throw new Error(I_(s))}),D_(1e4)])}let i="webpack4";if(n!=null&&n.builder){let{builder:s}=n;i=typeof s=="string"?s:s.name;}return Promise.race([xD(O_[i]).then(s=>({builder:{name:i,packageVersion:s.version}})).catch(()=>{throw new Error(I_(O_[i]))}),D_(1e4)])},PD=async(e,t)=>{let r=e.options.storybookConfigDir??".storybook",i=(await promises.readdir(r)).find(s=>t.test(s));return i&&ux__namespace.default.join(r,i)},LLe=async e=>{let t=e.options.storybookConfigDir??".storybook",r=typeof __non_webpack_require__>"u"?chunkTKGT252T_js.a:__non_webpack_require__,n,i=!1;try{n=await r(ux__namespace.default.resolve(t,"main")),e.log.debug({configDirectory:t,mainConfig:n});}catch(o){e.log.debug({storybookV6error:o});try{let u=await PD(e,/^main\.[jt]sx?$/);if(!u)throw new Error("Failed to locate Storybook config file");n=await(0,AD.readConfig)(u),e.log.debug({configDirectory:t,mainConfig:(0,AD.printConfig)(n)}),i=!0;}catch(u){e.log.debug({storybookV7error:u});}}let s=await Promise.allSettled([L_r(e),M_r(e),k_r(n,i)]);e.log.debug(s);let a={};for(let o of s)o.status==="fulfilled"&&(a={...a,...o==null?void 0:o.value});return a};var kLe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),FLe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var BLe=({fileCount:e,maxFileCount:t})=>(0, FLe.dedent)(kLe.default` ${chunkF6FLWRPJ_js.H} {bold Attempted to upload too many files} You're not allowed to upload more than ${t} files per build. Your Storybook contains ${e} files. This is a very high number. Do you have files in a static/public directory that shouldn't be there? Contact customer support if you need to increase this limit. `);var jLe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C());var ULe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var qLe=({filePaths:e,maxFileSize:t})=>(0, ULe.dedent)(jLe.default` ${chunkF6FLWRPJ_js.H} {bold Attempted to exceed maximum file size} You're attempting to upload files that exceed the maximum file size of ${_o(t)}. Contact customer support if you need to increase this limit. - ${e.map(r=>r).join(` - `)} `);var eH=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),VLe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());function HLe({target:e},t=!1){let r=F_r(e.targetPath)===e.targetPath?"The file may have been modified during the upload process.":"It seems the file path may contain illegal characters.",n=(0, VLe.dedent)(eH.default` ${chunkF6FLWRPJ_js.H} Failed to upload {bold ${e.localPath}} to {bold ${e.targetPath}} ${r} ${t?"":eH.default`Enable the {bold debug} option to get more information.`} `);return t?n+JSON.stringify(e,void 0,2):n}function F_r(e){return e.split("/").map(t=>encodeURIComponent(t)).join("/")}var m3e=chunkTKGT252T_js.e(d3e()),y3e=chunkTKGT252T_js.e(chunkHZVCNUTP_js.e());async function ZG(e,t){let r=(0, m3e.default)("zip",{zlib:{level:9}}),n=await(0, y3e.file)({postfix:".zip"}),i=fs$1.createWriteStream("",{fd:n.fd});return new Promise((s,a)=>{i.on("close",()=>{s({path:n.path,size:r.pointer()});}),r.on("warning",o=>{e.log.debug({err:o},"Received warning when creating zip file");}),r.on("error",o=>{a(o);}),r.pipe(i);for(let{localPath:o,targetPath:u}of t)e.log.debug(`Adding to zip archive: ${u}`),r.append(fs$1.createReadStream(o),{name:u});e.log.debug("Finalizing zip archive"),r.finalize().catch(o=>a(o));})}var E3e=chunkTKGT252T_js.e(Ug());var s$=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},Gi=(e,t,r)=>(s$(e,t,"read from private field"),r?r.call(e):t.get(e)),Dm=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r);},bN=(e,t,r,n)=>(s$(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),g3e=(e,t,r)=>(s$(e,t,"access private method"),r),xi=e=>typeof e=="function",TIr=e=>typeof e=="object"&&e!=null&&!Array.isArray(e),EIr=e=>TIr(e)&&xi(e[Symbol.asyncIterator]),t$=65536;async function*T3e(e){if(e.byteLength<=t$){yield e;return}let t=0;for(;t{if(EIr(e))return S3e(e);if(xi(e.getReader))return S3e(bIr(e));throw new TypeError("Unsupported data source: Expected either ReadableStream or async iterable.")};async function*_Ir(e){let t=0;for(;t!==e.size;){let n=await e.slice(t,Math.min(e.size,t+t$)).arrayBuffer();t+=n.byteLength,yield new Uint8Array(n);}}async function*e$(e,t=!1){for(let r of e)ArrayBuffer.isView(r)?t?yield*T3e(r):yield r:xi(r.stream)?yield*vIr(r.stream()):yield*_Ir(r);}function*xIr(e,t,r=0,n){n??=t;let i=r<0?Math.max(t+r,0):Math.min(r,t),s=n<0?Math.max(t+n,0):Math.min(n,t),a=Math.max(s-i,0),o=0;for(let u of e){if(o>=a)break;let l=ArrayBuffer.isView(u)?u.byteLength:u.size;if(i&&l<=i)i-=l,s-=l;else {let c;ArrayBuffer.isView(u)?(c=u.subarray(i,Math.min(l,s)),o+=c.byteLength):(c=u.slice(i,Math.min(l,s)),o+=c.size),s-=l,i=0,yield c;}}}var Om,gN,nx,AIr=class r${constructor(t=[],r={}){if(Dm(this,Om,[]),Dm(this,gN,""),Dm(this,nx,0),r??={},typeof t!="object"||t===null)throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");if(!xi(t[Symbol.iterator]))throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");if(typeof r!="object"&&!xi(r))throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");let n=new TextEncoder;for(let s of t){let a;ArrayBuffer.isView(s)?a=new Uint8Array(s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength)):s instanceof ArrayBuffer?a=new Uint8Array(s.slice(0)):s instanceof r$?a=s:a=n.encode(String(s)),bN(this,nx,Gi(this,nx)+(ArrayBuffer.isView(a)?a.byteLength:a.size)),Gi(this,Om).push(a);}let i=r.type===void 0?"":String(r.type);bN(this,gN,/^[\x20-\x7E]*$/.test(i)?i:"");}static[Symbol.hasInstance](t){return !!(t&&typeof t=="object"&&xi(t.constructor)&&(xi(t.stream)||xi(t.arrayBuffer))&&/^(Blob|File)$/.test(t[Symbol.toStringTag]))}get type(){return Gi(this,gN)}get size(){return Gi(this,nx)}slice(t,r,n){return new r$(xIr(Gi(this,Om),this.size,t,r),{type:n})}async text(){let t=new TextDecoder,r="";for await(let n of e$(Gi(this,Om)))r+=t.decode(n,{stream:!0});return r+=t.decode(),r}async arrayBuffer(){let t=new Uint8Array(this.size),r=0;for await(let n of e$(Gi(this,Om)))t.set(n,r),r+=n.length;return t.buffer}stream(){let t=e$(Gi(this,Om),!0);return new ReadableStream({async pull(r){let{value:n,done:i}=await t.next();if(i)return queueMicrotask(()=>r.close());r.enqueue(n);},async cancel(){await t.return();}})}get[Symbol.toStringTag](){return "Blob"}};Om=new WeakMap;gN=new WeakMap;nx=new WeakMap;var vN=AIr;Object.defineProperties(vN.prototype,{type:{enumerable:!0},size:{enumerable:!0},slice:{enumerable:!0},stream:{enumerable:!0},text:{enumerable:!0},arrayBuffer:{enumerable:!0}});var PIr=e=>e instanceof vN,SN,TN,n$=class extends vN{constructor(e,t,r={}){if(super(e,r),Dm(this,SN,void 0),Dm(this,TN,0),arguments.length<2)throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);bN(this,SN,String(t));let n=r.lastModified===void 0?Date.now():Number(r.lastModified);Number.isNaN(n)||bN(this,TN,n);}static[Symbol.hasInstance](e){return e instanceof vN&&e[Symbol.toStringTag]==="File"&&typeof e.name=="string"}get name(){return Gi(this,SN)}get webkitRelativePath(){return ""}get lastModified(){return Gi(this,TN)}get[Symbol.toStringTag](){return "File"}};SN=new WeakMap;TN=new WeakMap;var CIr=e=>e instanceof n$,Ol,EN,i$,_N=class{constructor(){Dm(this,EN),Dm(this,Ol,new Map);}static[Symbol.hasInstance](e){if(!e)return !1;let t=e;return !!(xi(t.constructor)&&t[Symbol.toStringTag]==="FormData"&&xi(t.append)&&xi(t.set)&&xi(t.get)&&xi(t.getAll)&&xi(t.has)&&xi(t.delete)&&xi(t.entries)&&xi(t.values)&&xi(t.keys)&&xi(t[Symbol.iterator])&&xi(t.forEach))}append(e,t,r){g3e(this,EN,i$).call(this,{name:e,fileName:r,append:!0,rawValue:t,argsLength:arguments.length});}set(e,t,r){g3e(this,EN,i$).call(this,{name:e,fileName:r,append:!1,rawValue:t,argsLength:arguments.length});}get(e){let t=Gi(this,Ol).get(String(e));return t?t[0]:null}getAll(e){let t=Gi(this,Ol).get(String(e));return t?t.slice():[]}has(e){return Gi(this,Ol).has(String(e))}delete(e){Gi(this,Ol).delete(String(e));}*keys(){for(let e of Gi(this,Ol).keys())yield e;}*entries(){for(let e of this.keys()){let t=this.getAll(e);for(let r of t)yield [e,r];}}*values(){for(let[,e]of this)yield e;}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[r,n]of this)e.call(t,n,r,this);}get[Symbol.toStringTag](){return "FormData"}};Ol=new WeakMap;EN=new WeakSet;i$=function({name:e,rawValue:t,append:r,fileName:n,argsLength:i}){let s=r?"append":"set";if(i<2)throw new TypeError(`Failed to execute '${s}' on 'FormData': 2 arguments required, but only ${i} present.`);e=String(e);let a;if(CIr(t))a=n===void 0?t:new n$([t],n,{type:t.type,lastModified:t.lastModified});else if(PIr(t))a=new n$([t],n===void 0?"blob":n,{type:t.type});else {if(n)throw new TypeError(`Failed to execute '${s}' on 'FormData': parameter 2 is not of type 'Blob'.`);a=String(t);}let o=Gi(this,Ol).get(e);if(!o)return void Gi(this,Ol).set(e,[a]);if(!r)return void Gi(this,Ol).set(e,[a]);o.push(a);};var b3e=chunkTKGT252T_js.e(chunkHZVCNUTP_js.d());var IIr,BT=class{constructor(t,r,n){this[IIr]="Blob";this.size=r,this.readStream=fs$1.createReadStream(t),this.readStream.on("data",i=>n(i.length));}stream(){return this.readStream}};IIr=Symbol.toStringTag;async function a$(e,t,r){let{experimental_abortSignal:n}=e.options,i=(0, b3e.default)(10),s=0;await Promise.all(t.map(({contentLength:a,filePath:o,formAction:u,formFields:l,localPath:c})=>{let p=0;return e.log.debug(`Uploading ${o} (${_o(a)}) to ${u}`),i(()=>(0, E3e.default)(async h=>{if(n!=null&&n.aborted)return h(n.reason||new Error("Aborted"));let f=new BT(c,a,m=>{p+=m,s+=m,r==null||r(s);}),d=new _N;for(let[m,y]of Object.entries(l))d.append(m,y);d.append("file",f);try{await e.http.fetch(u,{body:d,method:"POST",signal:n},{retries:0}),e.log.debug(`Uploaded ${o} (${_o(a)})`);}catch{throw new Error(c)}},{retries:e.env.CHROMATIC_RETRIES,onRetry:h=>{s-=p,p=0,e.log.debug("Retrying upload for %s, %O",c,h),r==null||r(s);}}))}));}var v3e=chunkTKGT252T_js.e(Ug());async function _3e(e,t,r){let{experimental_abortSignal:n}=e.options,{contentLength:i,filePath:s,formAction:a,formFields:o,localPath:u}=t,l=0;return e.log.debug(`Uploading ${s} (${_o(i)})`),(0, v3e.default)(async c=>{if(n!=null&&n.aborted)return c(n.reason||new Error("Aborted"));let p=new BT(u,i,d=>{l+=d,r==null||r(l);}),h=new _N;for(let[d,m]of Object.entries(o))h.append(d,m);h.append("file",p);let f=await e.http.fetch(a,{body:h,method:"POST",signal:n},{retries:0});if(!f.ok)throw e.log.debug(`Uploading ${u} failed: %O`,f),new Error(u);e.log.debug(`Uploaded ${s} (${_o(i)})`);},{retries:e.env.CHROMATIC_RETRIES,onRetry:c=>{l=0,e.log.debug("Retrying upload for %s, %O",u,c),r(l);}})}var OIr=1e3,DIr=` mutation UploadBuildMutation($buildId: ObjID!, $files: [FileUploadInput!]!, $zip: Boolean) { uploadBuild(buildId: $buildId, files: $files, zip: $zip) { info { sentinelUrls targets { contentType fileKey filePath formAction formFields } zipTarget { contentType fileKey filePath formAction formFields } } userErrors { __typename ... on UserError { message } ... on MaxFileCountExceededError { maxFileCount fileCount } ... on MaxFileSizeExceededError { maxFileSize filePaths } } } } `;async function x3e(e,t,r={}){var o,u,l,c,p;e.sentinelUrls=[],e.uploadedBytes=0,e.uploadedFiles=0;let n=[],i,s=[];for(let[h,f]of t.entries()){let d=Math.floor(h/OIr);s[d]||(s[d]=[]),s[d].push(f);}for(let[h,f]of s.entries()){e.log.debug(`Running uploadBuild batch ${h+1} / ${s.length}`);let{uploadBuild:d}=await e.client.runQuery(DIr,{buildId:e.announcedBuild.id,files:f.map(({contentHash:m,contentLength:y,targetPath:g})=>({contentHash:m,contentLength:y,filePath:g})),zip:e.options.zip});if(d.userErrors.length>0){for(let m of d.userErrors)m.__typename==="MaxFileCountExceededError"?e.log.error(BLe(m)):m.__typename==="MaxFileSizeExceededError"?e.log.error(qLe(m)):e.log.error(m.message);return (o=r.onError)==null?void 0:o.call(r,new Error("Upload rejected due to user error"))}e.sentinelUrls.push(...((u=d.info)==null?void 0:u.sentinelUrls)||[]),n.push(...((l=d.info)==null?void 0:l.targets.map(m=>({...f.find(g=>g.targetPath===m.filePath),...m})))||[]),(c=d.info)!=null&&c.zipTarget&&(i=d.info.zipTarget);}if(n.length===0){e.log.debug("No new files to upload, continuing");return}let a=n.reduce((h,{contentLength:f})=>h+f,0);if(i)try{let{path:h,size:f}=await ZG(e,n),d=a&&(a-f)/a;e.log.debug(`Compression reduced upload size by ${Math.round(d*100)}%`);let m={...i,contentLength:f,localPath:h};await _3e(e,m,y=>{var g;return (g=r.onProgress)==null?void 0:g.call(r,y,f)}),e.uploadedBytes+=f,e.uploadedFiles+=n.length;return}catch(h){e.log.debug({err:h},"Error uploading zip, falling back to uploading individual files");}try{await a$(e,n,h=>{var f;return (f=r.onProgress)==null?void 0:f.call(r,h,a)}),e.uploadedBytes+=a,e.uploadedFiles+=n.length;}catch(h){let f=n.find(d=>d.localPath===h.message);return f&&e.log.error(HLe({target:f},e.log.getLevel()==="debug")),(p=r.onError)==null?void 0:p.call(r,h,f==null?void 0:f.localPath)}}var NIr=` mutation UploadMetadataMutation($buildId: ObjID!, $files: [FileUploadInput!]!) { uploadMetadata(buildId: $buildId, files: $files) { info { targets { contentType fileKey filePath formAction formFields } } userErrors { ... on UserError { message } } } } `;async function A3e(e,t){let{uploadMetadata:r}=await e.client.runQuery(NIr,{buildId:e.announcedBuild.id,files:t.map(({contentHash:n,contentLength:i,targetPath:s})=>({contentHash:n,contentLength:i,filePath:s}))});if(r.info){let n=r.info.targets.map(i=>({...t.find(a=>a.targetPath===i.filePath),...i}));await a$(e,n);}r.userErrors.length>0&&r.userErrors.map(n=>e.log.warn(n.message));}var kIr=e=>new Promise(t=>fs$1.stat(e,(r,n)=>t(r?0:n.size)));async function C3e(e){if(!e.announcedBuild){e.log.warn("No build announced, skipping metadata upload.");return}return FIr(e,async()=>{var i;let t=[e.options.logFile,e.options.diagnosticsFile,e.options.storybookLogFile,await PD(e,/^main\.[jt]sx?$/).catch(()=>{}),await PD(e,/^preview\.[jt]sx?$/).catch(()=>{}),((i=e.fileInfo)==null?void 0:i.statsPath)&&await chunkIM5VGDJQ_js.b([e.fileInfo.statsPath])].filter(s=>!!s),n=(await Promise.all(t.map(async s=>{let a=await kIr(s),o=`.chromatic/${ux__namespace.default.basename(s)}`;return a&&{contentLength:a,localPath:s,targetPath:o}}))).filter(s=>!!s).sort((s,a)=>s.targetPath.localeCompare(a.targetPath,"en",{numeric:!0}));if(n.length===0){e.log.warn("No metadata files found, skipping metadata upload.");return}await(0,P3e.withFile)(async({path:s})=>{let a=Dbe(e,n);fs$1.writeFileSync(s,a),n.push({contentLength:a.length,localPath:s,targetPath:".chromatic/index.html"});let o=`${e.build.storybookUrl}.chromatic/`;e.log.info(Mbe(o,n)),await A3e(e,n);});})}async function FIr(e,t){e.log.pause();try{return await t()}finally{e.log.resume();}}var I3e=chunkTKGT252T_js.e(chunkLTE3MQL2_js.d());var w3e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C());var xN=(e,t)=>w3e.default`${chunkF6FLWRPJ_js.E} Wrote ${t} report to {bold ${e}}`;var{writeFile:UIr}=I3e.default;async function O3e(e){if(e.options.diagnosticsFile)try{fs$1.mkdirSync(ux__namespace.default.dirname(e.options.diagnosticsFile),{recursive:!0}),await UIr(e.options.diagnosticsFile,qIr(e),{spaces:2}),e.log.info(xN(e.options.diagnosticsFile,"Chromatic diagnostics"));}catch(t){e.log.error(t);}}function qIr(e){let{argv:t,client:r,env:n,help:i,http:s,log:a,pkg:o,title:u,...l}=e,c=chunkHZVCNUTP_js.ba(l,"projectToken","reportToken","userToken");return Object.fromEntries(Object.keys(c).sort((p,h)=>p.localeCompare(h)).map(p=>[p,c[p]]))}var D3e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),o$=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H()),Fn=({name:e,title:t,steps:r,...n})=>({title:t,task:async(i,s)=>{var a,o,u,l,c;i.task=e,i.title=t,i.startedAt=Number.isInteger(i.now)?i.now:Date.now(),(o=(a=i.options).experimental_onTaskStart)==null||o.call(a,{...i});for(let p of r)(u=i.options.experimental_abortSignal)==null||u.throwIfAborted(),await p(i,s);(c=(l=i.options).experimental_onTaskComplete)==null||c.call(l,{...i});},...n}),VIr=(e,t)=>(r,n)=>{let i=typeof e=="function"?e(r,n):e,s=typeof t=="function"?t(r,n):t;n.title=s?`${i} ${D3e.default.dim(` \u2192 ${s}`)}`:i;},HIr=e=>(t,r)=>{r.output=typeof e=="function"?e(t,r):e;},St=(e,t=!1)=>(r,n)=>{let{title:i,output:s}=e(r);VIr(i,t?s:void 0)(r,n),!t&&s&&HIr(s)(r,n);},Dl=e=>{let t=Number.isInteger(e.now)?e.now:Date.now(),r=e.startedAt||0,n=Math.round((t-r)/1e3),i=(0, o$.default)("second",Math.floor(n%60),!0);if(n<60)return i;let s=(0, o$.default)("minute",Math.floor(n/60),!0);return n%60?`${s} ${i}`:s};var N3e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),R3e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var M3e=({projectId:e})=>(0, R3e.dedent)(N3e.default` ${chunkF6FLWRPJ_js.H} Invalid project ID: ${e} You may not sufficient permissions to create builds on this project, or it may not exist. ${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/quickstart/")} `);var L3e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),k3e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var F3e=({projectToken:e})=>(0, k3e.dedent)(L3e.default` ${chunkF6FLWRPJ_js.H} Invalid {bold --project-token} '${e}' You can find your project token on the Manage screen in your Chromatic project. Sign in to Chromatic at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/start")} ${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/quickstart/")} `);var GIr=e=>"*".repeat(e.length-4)+e.slice(-4),B3e=e=>e.includes("dev")?" [dev]":e.includes("staging")?" [staging]":"",j3e={status:"initial",title:"Authenticate"},U3e=e=>({status:"pending",title:`Authenticating with Chromatic${B3e(e.env.CHROMATIC_INDEX_URL)}`,output:`Connecting to ${e.env.CHROMATIC_INDEX_URL}`}),q3e=e=>({status:"success",title:`Authenticated with Chromatic${B3e(e.env.CHROMATIC_INDEX_URL)}`,output:e.options.projectToken?`Using project token '${GIr(e.options.projectToken)}'`:`Using project ID '${e.options.projectId}' and user token`});var $Ir=` mutation CreateCLITokenMutation($projectId: String!) { cliToken: createCLIToken(projectId: $projectId) } `,KIr=` mutation CreateAppTokenMutation($projectToken: String!) { appToken: createAppToken(code: $projectToken) } `,YIr=async e=>{let{projectId:t,projectToken:r,userToken:n}=e.options;if(t&&n){let{cliToken:i}=await e.client.runQuery($Ir,{projectId:t},{endpoint:`${e.env.CHROMATIC_INDEX_URL}/api`,headers:{Authorization:`Bearer ${n}`}});return i}if(r){let{appToken:i}=await e.client.runQuery(KIr,{projectToken:r});return i}throw new Error("No projectId or projectToken")},WIr=async e=>{var t;try{let r=await YIr(e);e.client.setAuthorization(r);}catch(r){let n=(t=r[0])==null?void 0:t.message;throw n!=null&&n.match("Must login")||n!=null&&n.match("No Access")?new Error(M3e({projectId:e.options.projectId||""})):n!=null&&n.match("No app with code")?new Error(F3e({projectToken:e.options.projectToken})):r}};function u$(e){return Fn({name:"auth",title:j3e.title,steps:[St(U3e),WIr,St(q3e,!0)]})}var UT=chunkTKGT252T_js.e(chunkHZVCNUTP_js.a()),uje=chunkTKGT252T_js.e(chunkHZVCNUTP_js.e());var V3e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),H3e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var AN=({dependencyName:e,flag:t,workingDir:r})=>(0, H3e.dedent)(V3e.default` ${chunkF6FLWRPJ_js.H} Failed to import \`${e}\`, is it installed in \`package.json\`? ${chunkF6FLWRPJ_js.E} To run \`chromatic --${t}\` you must have \`${e}\` installed. ${r?` ${chunkF6FLWRPJ_js.E} Chromatic looked in \`${r}\`. If that's not the right directory, you might need to set the \`workingDir\` option to the action.`:""} `);var Jt=e=>En(e.options)?"test suite":e.isReactNativeApp?"React Native Storybook":"Storybook",PN=e=>e.charAt(0).toUpperCase()+e.slice(1);var G3e=e=>({status:"initial",title:`Build ${Jt(e)}`}),$3e=e=>({status:"pending",title:`Building your ${Jt(e)}`,output:`Running command: ${e.buildCommand}`}),K3e=e=>({status:"success",title:`${PN(Jt(e))} built in ${Dl(e)}`,output:`View build log at ${e.buildLogFile}`}),Y3e=e=>({status:"skipped",title:`Build ${Jt(e)} [skipped]`,output:`Using prebuilt ${Jt(e)} at ${e.options.storybookBuildDir}`}),W3e=e=>({status:"skipped",title:`Build ${Jt(e)} [skipped]`,output:"Using prebuilt React Native assets"}),X3e=e=>({status:"error",title:`Build ${Jt(e)}`,output:"Build directory required for React Native"}),ix=e=>({status:"error",title:`Building your ${Jt(e)}`,output:`Command failed: ${e.buildCommand}`});var sx="build-archive-storybook",XIr=e=>!e.startsWith("--")&&e.includes(" ")?JSON.stringify(e):e,zIr=(e,t)=>({npm:"npm exec {0}",yarn:"yarn {0}","yarn@berry":"yarn {0}",pnpm:"pnpm exec {0}","pnpm@6":"pnpm exec {0}",bun:"bun run {0}"})[e].replace("{0}",t.map(i=>XIr(i)).join(" ")).trim();async function z3e(e,t,r){if(e.options.inAction)return await chunkLAQIPRAO_js.d(zIr,[sx,...r],{programmatic:!0});let n=`@chromatic-com/${t}`;try{return ["node",chunkTKGT252T_js.a.resolve(`${n}/bin/${sx}`),...r].join(" ")}catch(i){throw i.code==="MODULE_NOT_FOUND"?(e.log.error(AN({dependencyName:n,flag:t})),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.MISSING_DEPENDENCY,!0),new Error(ix(e).output)):i}}var J3e=async()=>chunkLAQIPRAO_js.d(chunkLAQIPRAO_js.c,[],{programmatic:!0}),Q3e=async e=>chunkLAQIPRAO_js.d(chunkLAQIPRAO_js.b,e,{programmatic:!0}),Z3e=async e=>{if(!e)throw new Error("No package manager provided");let{stdout:t}=await chunkF6FLWRPJ_js.g(e,["--version"]),[r]=t.toString().trim().split(` `,1);return r.trim().replace(/^v/,"")};var JIr=(e,t)=>{let r=e.options.interactive?100:e.env.CHROMATIC_OUTPUT_INTERVAL,n=e.env.CHROMATIC_TIMEOUT/r,i,s=(a=0)=>{t(a),as(a+1),r));};return s(),{end:()=>clearTimeout(i)}},CN=async(e,t)=>{e.options.interactive||(e.activity=JIr(e,r=>{t.output=chunkHZVCNUTP_js.Y(r);}));},jT=e=>{e.activity&&e.activity.end();};var Nm=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),eje=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var tje=({options:e,buildCommand:t,buildLogFile:r,runtimeMetadata:n},{message:i},s)=>{let{buildScriptName:a,buildCommand:o}=e,u=(s==null?void 0:s.split(wi.EOL).filter(p=>p&&!p.startsWith("")))||[],l=a||o,c=a?Nm.default`{bold npm run ${l}} or {bold yarn ${l}}`:Nm.default`{bold ${l}}`;return [(0, eje.dedent)(Nm.default` The CLI tried to run your {bold ${l}} script, but the command failed. This indicates a problem with your Storybook. Here's what to do: - Check the Storybook build log printed below. - Run ${c} yourself and make sure it outputs a valid Storybook by opening the generated {bold index.html} in your browser. - Review the build-storybook CLI options at ${chunkHZVCNUTP_js.f("https://storybook.js.org/docs/api/cli-options#build")} `),i,Nm.default`${chunkF6FLWRPJ_js.E} Build command:\n{dim ${t}}`,Nm.default`${chunkF6FLWRPJ_js.E} Runtime metadata:\n{dim ${JSON.stringify(n,void 0,2)}}`,Nm.default`${chunkF6FLWRPJ_js.E} Storybook build output:\n{dim ${r}}`,u.join(` `)].join(` `)};var rje=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),nje=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var ije=({flag:e,errorMessage:t})=>(0, nje.dedent)(rje.default` ${chunkF6FLWRPJ_js.H} Failed to run \`chromatic --${e}\`: ${t} `);var sje=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),aje=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var oje=()=>(0, aje.dedent)(sje.default` ${chunkF6FLWRPJ_js.H} {bold Build directory required for React Native} React Native Storybook requires a pre-built directory containing your .apk and manifest.json files. Set the {bold --storybook-build-dir} option to the path of your React Native build output. `);var rOr=async e=>{if(e.options.outputDir)e.sourceDir=e.options.outputDir;else if(e.storybook&&e.storybook.version&&UT.default.lt(e.storybook.version,"5.0.0"))e.sourceDir="storybook-static";else {let t=await uje.default.dir({unsafeCleanup:!0,prefix:"chromatic-"});e.sourceDir=t.path;}},nOr=e=>e.storybook&&e.storybook.version?UT.default.gte(UT.default.coerce(e.storybook.version)||"0.0.0","6.2.0"):!0,iOr=e=>{var t;return (t=e==null?void 0:e.storybook)!=null&&t.version&&UT.default.gte(UT.default.coerce(e.storybook.version)||"0.0.0","8.5.0")?"--stats-json":"--webpack-stats-json"},sOr=async e=>{var n;let t=((n=e.flags)==null?void 0:n.buildCommand)||e.options.buildCommand,r=[];if(t||r.push(`--output-dir=${e.sourceDir}`),e.git.changedFiles&&(nOr(e)?r.push(`${iOr(e)}=${e.sourceDir}`):e.log.warn("Storybook version 6.2.0 or later is required to use the --only-changed flag")),t){e.buildCommand=`${t} ${r.join(" ")}`;return}if(En(e.options)){e.buildCommand=await z3e(e,e.options.playwright?"playwright":"cypress",r);return}if(!e.options.buildScriptName)throw new Error("Unable to determine build script");e.buildCommand=await Q3e([e.options.buildScriptName,...r]);},aOr=e=>new Promise((t,r)=>setTimeout(r,e,new Error("Operation timed out")));function oOr(e){return ["command not found",`[\\W]?${sx}[\\W]? not found`,"code E404","exit code 127",`command failed.*${sx}.*$`].some(r=>new RegExp(r,"gi").test(e))}function uOr(e,t,r){let n=r.options.playwright?"playwright":"cypress",i=e.message;if(oOr(i)){let s=`@chromatic-com/${n}`;return {exitCode:chunkHZVCNUTP_js.F.MISSING_DEPENDENCY,message:AN({dependencyName:s,flag:n,workingDir:t})}}return {exitCode:chunkHZVCNUTP_js.F.E2E_BUILD_FAILED,message:ije({flag:n,errorMessage:i})}}var lOr=async e=>{let t;e.options.storybookLogFile&&(e.buildLogFile=ux__namespace.default.resolve(e.options.storybookLogFile),t=fs$1.createWriteStream(e.buildLogFile),await new Promise((n,i)=>{t.on("open",n),t.on("error",i);}));let{experimental_abortSignal:r}=e.options;try{if(e.log.debug("Running build command:",e.buildCommand),e.log.debug("Runtime metadata:",JSON.stringify(e.runtimeMetadata,void 0,2)),!e.buildCommand)throw new Error("No build command configured");let[n,...i]=chunkF6FLWRPJ_js.f(e.buildCommand),s=chunkF6FLWRPJ_js.g(n,i,{stdio:[void 0,t,void 0],preferLocal:!1,cancelSignal:r,env:{CI:"1",NODE_ENV:e.env.STORYBOOK_NODE_ENV||"production",STORYBOOK_INVOKED_BY:"chromatic"}});await Promise.race([s,aOr(e.env.STORYBOOK_BUILD_TIMEOUT)]);}catch(n){if(En(e.options)){let s=uOr(n,process.cwd(),e);throw e.log.error(s.message),chunkHZVCNUTP_js.G(e,s.exitCode,!0),new Error(ix(e).output)}r==null||r.throwIfAborted();let i=e.buildLogFile&&fs$1.readFileSync(e.buildLogFile,"utf8");throw e.log.error(tje(e,n,i)),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.NPM_BUILD_STORYBOOK_FAILED,!0),new Error(ix(e).output)}finally{t==null||t.end();}};function l$(e){return Fn({name:"build",title:G3e(e).title,skip:async t=>{if(t.skip)return !0;if(t.isReactNativeApp){if(!t.options.storybookBuildDir)throw t.log.error(oje()),chunkHZVCNUTP_js.G(t,chunkHZVCNUTP_js.F.INVALID_OPTIONS,!0),new Error(X3e(t).output);return t.sourceDir=t.options.storybookBuildDir,W3e(t).output}return t.options.storybookBuildDir?(t.sourceDir=t.options.storybookBuildDir,Y3e(t).output):!1},steps:[rOr,sOr,St($3e),CN,lOr,jT,St(K3e,!0)]})}var j4e=chunkTKGT252T_js.e(chunkHZVCNUTP_js.T());var cje=chunkTKGT252T_js.e(ax());function ox(e){return e.options.isLocalBuild?{localBuildEmailHash:gd(e.git.gitUserEmail||"")}:e.git.committerEmail?{localBuildEmailHash:gd(e.git.committerEmail)}:{isLocalBuild:!1}}var cOr=cje.default` query BaselineCommitsQuery( $branch: String! $parentCommits: [String!]! $localBuilds: LocalBuildsSpecifierInput! ) { app { baselineBuilds(branch: $branch, parentCommits: $parentCommits, localBuilds: $localBuilds) { id number status(legacy: false) commit committedAt uncommittedHash isLocalBuild changeCount } } } `;async function pje(e,{branch:t,parentCommits:r}){let{app:n}=await e.client.runQuery(cOr,{branch:t,parentCommits:r,localBuilds:ox(e)});return n.baselineBuilds}var fje=chunkTKGT252T_js.e(ax());var pOr=fje.default` query AncestorBuildsQuery($buildNumber: Int!, $skip: Int!, $limit: Int!) { app { build(number: $buildNumber) { ancestorBuilds(skip: $skip, limit: $limit) { id number commit uncommittedHash isLocalBuild } } } } `;async function hje(e,t,{page:r=10,limit:n=80}={}){let i=0;for(;i{let l=await chunkHZVCNUTP_js.o(e,u.commit);return [u,l]})),o=a.find(([u,l])=>!(u.isLocalBuild&&u.uncommittedHash)&&l);if(o)return o[0];if(a.length.+)$/i.exec(e)[1]:void 0}var yje={detect({env:e}){return !!e.BUILD_BUILDURI},configuration({env:e}){let t=e.SYSTEM_PULLREQUEST_PULLREQUESTID,r=!!t;return {name:"Azure Pipelines",service:"azurePipelines",commit:e.BUILD_SOURCEVERSION,build:e.BUILD_BUILDNUMBER,branch:bh(r?e.SYSTEM_PULLREQUEST_TARGETBRANCH:e.BUILD_SOURCEBRANCH),pr:t,isPr:r,prBranch:bh(r?e.SYSTEM_PULLREQUEST_SOURCEBRANCH:void 0),root:e.BUILD_REPOSITORY_LOCALPATH}}};var gje={detect({env:e}){return !!e.bamboo_agentId},configuration({env:e}){return {name:"Bamboo",service:"bamboo",commit:e.bamboo_planRepository_1_revision,build:e.bamboo_buildNumber,buildUrl:e.bamboo_buildResultsUrl,branch:e.bamboo_planRepository_1_branchName,job:e.bamboo_buildKey,root:e.bamboo_build_working_directory}}};var Sje={detect({env:e}){return !!e.BITBUCKET_BUILD_NUMBER},configuration({env:e}){return {name:"Bitbucket Pipelines",service:"bitbucket",commit:e.BITBUCKET_COMMIT,tag:e.BITBUCKET_TAG,build:e.BITBUCKET_BUILD_NUMBER,buildUrl:`https://bitbucket.org/${e.BITBUCKET_REPO_SLUG}/addon/pipelines/home#!/results/${e.BITBUCKET_BUILD_NUMBER}`,branch:e.BITBUCKET_BRANCH,slug:e.BITBUCKET_REPO_SLUG,root:e.BITBUCKET_CLONE_DIR}}};var Tje={detect({env:e}){return !!e.BITRISE_IO},configuration({env:e}){let t=e.BITRISE_PULL_REQUEST==="false"?void 0:e.BITRISE_PULL_REQUEST,r=!!t;return {name:"Bitrise",service:"bitrise",commit:e.BITRISE_GIT_COMMIT,tag:e.BITRISE_GIT_TAG,build:e.BITRISE_BUILD_NUMBER,buildUrl:e.BITRISE_BUILD_URL,branch:r?e.BITRISEIO_GIT_BRANCH_DEST:e.BITRISE_GIT_BRANCH,pr:t,isPr:r,prBranch:r?e.BITRISE_GIT_BRANCH:void 0,slug:e.BITRISE_APP_SLUG}}};var Eje={detect({env:e}){return !!e.BUDDY_WORKSPACE_ID},configuration({env:e}){let t=wN(e.BUDDY_EXECUTION_PULL_REQUEST_ID),r=!!t;return {name:"Buddy",service:"buddy",commit:e.BUDDY_EXECUTION_REVISION,tag:e.BUDDY_EXECUTION_TAG,build:e.BUDDY_EXECUTION_ID,buildUrl:e.BUDDY_EXECUTION_URL,branch:r?e.BUDDY_EXECUTION_PULL_REQUEST_HEAD_BRANCH:e.BUDDY_EXECUTION_BRANCH,pr:t,isPr:r,slug:e.BUDDY_REPO_SLUG}}};var oUe=chunkTKGT252T_js.e(chunkHZVCNUTP_js.ca(),1);function c$(e){let t=typeof e=="string"?` `:` `.charCodeAt(),r=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e}function IN(e={}){let{env:t=process.env,platform:r=process.platform}=e;return r!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"}var fOr=({cwd:e=ON__default.default.cwd(),path:t=ON__default.default.env[IN()],preferLocal:r=!0,execPath:n=ON__default.default.execPath,addExecPath:i=!0}={})=>{let s=e instanceof URL?url.fileURLToPath(e):e,a=ux__namespace.default.resolve(s),o=[];return r&&hOr(o,a),i&&dOr(o,n,a),[...o,t].join(ux__namespace.default.delimiter)},hOr=(e,t)=>{let r;for(;r!==t;)e.push(ux__namespace.default.join(t,"node_modules/.bin")),r=t,t=ux__namespace.default.resolve(t,"..");},dOr=(e,t,r)=>{let n=t instanceof URL?url.fileURLToPath(t):t;e.push(ux__namespace.default.resolve(r,n,".."));},vje=({env:e=ON__default.default.env,...t}={})=>{e={...e};let r=IN({env:e});return t.path=e[r],e[r]=fOr(t),e};var Aje=()=>{let e=Cje-Pje+1;return Array.from({length:e},vOr)},vOr=(e,t)=>({name:`SIGRT${t+1}`,number:Pje+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Pje=34,Cje=64;var wje=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var f$=()=>{let e=Aje();return [...wje,...e].map(xOr)},xOr=({name:e,number:t,description:r,action:n,forced:i=!1,standard:s})=>{let{signals:{[e]:a}}=wi.constants,o=a!==void 0;return {name:e,number:o?a:t,description:r,supported:o,action:n,forced:i,standard:s}};var POr=()=>{let e=f$();return Object.fromEntries(e.map(COr))},COr=({name:e,number:t,description:r,supported:n,action:i,forced:s,standard:a})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:s,standard:a}],Ije=POr(),wOr=()=>{let e=f$(),t=64+1,r=Array.from({length:t},(n,i)=>IOr(i,e));return Object.assign({},...r)},IOr=(e,t)=>{let r=OOr(e,t);if(r===void 0)return {};let{name:n,description:i,supported:s,action:a,forced:o,standard:u}=r;return {[e]:{name:n,number:e,description:i,supported:s,action:a,forced:o,standard:u}}},OOr=(e,t)=>{let r=t.find(({name:n})=>wi.constants.signals[n]===e);return r!==void 0?r:t.find(n=>n.number===e)};wOr();var NOr=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:a})=>e?`timed out after ${t} milliseconds`:a?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",lx=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:s,command:a,escapedCommand:o,timedOut:u,isCanceled:l,killed:c,parsed:{options:{timeout:p,cwd:h=ON__default.default.cwd()}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let f=i===void 0?void 0:Ije[i].description,d=n&&n.code,y=`Command ${NOr({timedOut:u,timeout:p,errorCode:d,signal:i,signalDescription:f,exitCode:s,isCanceled:l})}: ${a}`,g=Object.prototype.toString.call(n)==="[object Error]",v=g?`${y} ${n.message}`:y,E=[v,t,e].filter(Boolean).join(` `);return g?(n.originalMessage=n.message,n.message=E):n=new Error(E),n.shortMessage=v,n.command=a,n.escapedCommand=o,n.exitCode=s,n.signal=i,n.signalDescription=f,n.stdout=e,n.stderr=t,n.cwd=h,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!u,n.isCanceled=l,n.killed=c&&!u,n};var NN=["stdin","stdout","stderr"],ROr=e=>NN.some(t=>e[t]!==void 0),Oje=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return NN.map(n=>e[n]);if(ROr(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${NN.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,NN.length);return Array.from({length:r},(n,i)=>t[i])};var Rm=[];Rm.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Rm.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Rm.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var RN=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",h$=Symbol.for("signal-exit emitter"),d$=globalThis,MOr=Object.defineProperty.bind(Object),m$=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(d$[h$])return d$[h$];MOr(d$,h$,{value:this,writable:!1,enumerable:!1,configurable:!1});}on(t,r){this.listeners[t].push(r);}removeListener(t,r){let n=this.listeners[t],i=n.indexOf(r);i!==-1&&(i===0&&n.length===1?n.length=0:n.splice(i,1));}emit(t,r,n){if(this.emitted[t])return !1;this.emitted[t]=!0;let i=!1;for(let s of this.listeners[t])i=s(r,n)===!0||i;return t==="exit"&&(i=this.emit("afterExit",r,n)||i),i}},MN=class{},LOr=e=>({onExit(t,r){return e.onExit(t,r)},load(){return e.load()},unload(){return e.unload()}}),y$=class extends MN{onExit(){return ()=>{}}load(){}unload(){}},g$=class extends MN{#a=S$.platform==="win32"?"SIGINT":"SIGHUP";#t=new m$;#e;#i;#s;#n={};#r=!1;constructor(t){super(),this.#e=t,this.#n={};for(let r of Rm)this.#n[r]=()=>{let n=this.#e.listeners(r),{count:i}=this.#t,s=t;if(typeof s.__signal_exit_emitter__=="object"&&typeof s.__signal_exit_emitter__.count=="number"&&(i+=s.__signal_exit_emitter__.count),n.length===i){this.unload();let a=this.#t.emit("exit",null,r),o=r==="SIGHUP"?this.#a:r;a||t.kill(t.pid,o);}};this.#s=t.reallyExit,this.#i=t.emit;}onExit(t,r){if(!RN(this.#e))return ()=>{};this.#r===!1&&this.load();let n=r!=null&&r.alwaysLast?"afterExit":"exit";return this.#t.on(n,t),()=>{this.#t.removeListener(n,t),this.#t.listeners.exit.length===0&&this.#t.listeners.afterExit.length===0&&this.unload();}}load(){if(!this.#r){this.#r=!0,this.#t.count+=1;for(let t of Rm)try{let r=this.#n[t];r&&this.#e.on(t,r);}catch{}this.#e.emit=(t,...r)=>this.#u(t,...r),this.#e.reallyExit=t=>this.#o(t);}}unload(){this.#r&&(this.#r=!1,Rm.forEach(t=>{let r=this.#n[t];if(!r)throw new Error("Listener not defined for signal: "+t);try{this.#e.removeListener(t,r);}catch{}}),this.#e.emit=this.#i,this.#e.reallyExit=this.#s,this.#t.count-=1);}#o(t){return RN(this.#e)?(this.#e.exitCode=t||0,this.#t.emit("exit",this.#e.exitCode,null),this.#s.call(this.#e,this.#e.exitCode)):0}#u(t,...r){let n=this.#i;if(t==="exit"&&RN(this.#e)){typeof r[0]=="number"&&(this.#e.exitCode=r[0]);let i=n.call(this.#e,t,...r);return this.#t.emit("exit",this.#e.exitCode,null),i}else return n.call(this.#e,t,...r)}},S$=globalThis.process;LOr(RN(S$)?new g$(S$):new y$);function LN(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}new TextEncoder;chunkTKGT252T_js.e(Wje(),1);var zje=e=>{if(e!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},hDr=({input:e,inputFile:t})=>typeof t!="string"?e:(zje(e),fs$1.readFileSync(t)),Jje=e=>{let t=hDr(e);if(LN(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t};var yDr=(async()=>{})().constructor.prototype;["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(yDr,e)]);var iUe=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],EDr=/^[\w.-]+$/,bDr=e=>typeof e!="string"||EDr.test(e)?e:`"${e.replaceAll('"','\\"')}"`,I$=(e,t)=>iUe(e,t).join(" "),O$=(e,t)=>iUe(e,t).map(r=>bDr(r)).join(" ");var sUe=Doe.debuglog("execa").enabled,qN=(e,t)=>String(e).padStart(t,"0"),PDr=()=>{let e=new Date;return `${qN(e.getHours(),2)}:${qN(e.getMinutes(),2)}:${qN(e.getSeconds(),2)}.${qN(e.getMilliseconds(),3)}`},N$=(e,{verbose:t})=>{t&&ON__default.default.stderr.write(`[${PDr()}] ${e} `);};var IDr=1e3*1e3*100,ODr=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let s=t?{...ON__default.default.env,...e}:e;return r?vje({env:s,cwd:n,execPath:i}):s},uUe=(e,t,r={})=>{let n=oUe.default._parse(e,t,r);return e=n.command,t=n.args,r=n.options,r={maxBuffer:IDr,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||ON__default.default.cwd(),execPath:ON__default.default.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:sUe,...r},r.env=ODr(r),r.stdio=Oje(r),ON__default.default.platform==="win32"&&ux__namespace.default.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},px=(e,t,r)=>typeof t!="string"&&!buffer.Buffer.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?c$(t):t;function fx(e,t,r){let n=uUe(e,t,r),i=I$(e,t),s=O$(e,t);N$(s,n.options);let a=Jje(n.options),o;try{o=R$__default.default.spawnSync(n.file,n.args,{...n.options,input:a});}catch(c){throw lx({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let u=px(n.options,o.stdout,o.error),l=px(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=lx({stdout:u,stderr:l,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return c;throw c}return {command:i,escapedCommand:s,exitCode:0,stdout:u,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}function vh(e){try{return fx("git",["rev-parse","HEAD"],e).stdout}catch{return}}function qT(e){try{let t=fx("git",["rev-parse","--abbrev-ref","HEAD"],e).stdout;if(t==="HEAD"){let r=fx("git",["show","-s","--pretty=%d","HEAD"],e).stdout.replace(/^\(|\)$/g,"").split(", ").find(n=>n.startsWith("origin/"));return r?r.match(/^origin\/(?.+)/)[1]:void 0}return t}catch{return}}var cUe=/^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/,RDr=/^\/(.*)\.git$/;function pUe(e){if(e){if(e.match(cUe))return e.replace(cUe,"$1");try{return new URL(e).pathname.replace(RDr,"$1")}catch{return}}}var fUe={detect({env:e}){return !!e.BUILDKITE},configuration({env:e}){let t=e.BUILDKITE_PULL_REQUEST==="false"?void 0:e.BUILDKITE_PULL_REQUEST,r=!!t;return {name:"Buildkite",service:"buildkite",build:e.BUILDKITE_BUILD_NUMBER,buildUrl:e.BUILDKITE_BUILD_URL,commit:e.BUILDKITE_COMMIT,tag:e.BUILDKITE_TAG,branch:r?e.BUILDKITE_PULL_REQUEST_BASE_BRANCH:e.BUILDKITE_BRANCH,slug:pUe(e.BUILDKITE_REPO),pr:t,isPr:r,prBranch:r?e.BUILDKITE_BRANCH:void 0,root:e.BUILDKITE_BUILD_CHECKOUT_PATH}}};var hUe={detect({env:e}){return !!e.CIRCLECI},configuration({env:e}){let t=e.CIRCLE_PR_NUMBER||wN(e.CIRCLE_PULL_REQUEST||e.CI_PULL_REQUEST),r=!!t;return {name:"CircleCI",service:"circleci",build:e.CIRCLE_BUILD_NUM,buildUrl:e.CIRCLE_BUILD_URL,job:`${e.CIRCLE_BUILD_NUM}.${e.CIRCLE_NODE_INDEX}`,commit:e.CIRCLE_SHA1,tag:e.CIRCLE_TAG,branch:r?void 0:e.CIRCLE_BRANCH,pr:t,isPr:r,prBranch:r?e.CIRCLE_BRANCH:void 0,slug:`${e.CIRCLE_PROJECT_USERNAME}/${e.CIRCLE_PROJECT_REPONAME}`}}};var dUe="https://cirrus-ci.com",mUe={detect({env:e}){return !!e.CIRRUS_CI},configuration({env:e}){let t=e.CIRRUS_PR,r=!!t;return {name:"Cirrus CI",service:"cirrus",commit:e.CIRRUS_CHANGE_IN_REPO,tag:e.CIRRUS_TAG,build:e.CIRRUS_BUILD_ID,buildUrl:`${dUe}/build/${e.CIRRUS_BUILD_ID}`,job:e.CIRRUS_TASK_ID,jobUrl:`${dUe}/task/${e.CIRRUS_TASK_ID}`,branch:r?e.CIRRUS_BASE_BRANCH:e.CIRRUS_BRANCH,pr:t,isPr:r,prBranch:r?e.CIRRUS_BRANCH:void 0,slug:e.CIRRUS_REPO_FULL_NAME,root:e.CIRRUS_WORKING_DIR}}};var yUe={detect({env:e}){return e.CF_PAGES==="1"},configuration({env:e}){return {name:"Cloudflare Pages",service:"cloudflarePages",commit:e.CF_PAGES_COMMIT_SHA,branch:e.CF_PAGES_BRANCH,root:e.PWD}}};var gUe={detect({env:e}){return !!e.CODEBUILD_BUILD_ID},configuration({env:e,cwd:t}){return {name:"AWS CodeBuild",service:"codebuild",commit:vh({env:e,cwd:t}),build:e.CODEBUILD_BUILD_ID,branch:qT({env:e,cwd:t}),buildUrl:`https://console.aws.amazon.com/codebuild/home?region=${e.AWS_REGION}#/builds/${e.CODEBUILD_BUILD_ID}/view/new`,root:e.PWD}}};var SUe={detect({env:e}){return !!e.CF_BUILD_ID},configuration({env:e}){let t=e.CF_PULL_REQUEST_NUMBER,r=!!t;return {name:"Codefresh",service:"codefresh",commit:e.CF_REVISION,build:e.CF_BUILD_ID,buildUrl:e.CF_BUILD_URL,branch:r?e.CF_PULL_REQUEST_TARGET:e.CF_BRANCH,pr:t,isPr:r,prBranch:r?e.CF_BRANCH:void 0,slug:`${e.CF_REPO_OWNER}/${e.CF_REPO_NAME}`,root:e.CF_VOLUME_PATH}}};var TUe={detect({env:e}){return e.CI_NAME&&e.CI_NAME==="codeship"},configuration({env:e}){return {name:"Codeship",service:"codeship",build:e.CI_BUILD_NUMBER,buildUrl:e.CI_BUILD_URL,commit:e.CI_COMMIT_ID,branch:e.CI_BRANCH,slug:e.CI_REPO_NAME}}};var EUe={detect({env:e}){return !!e.DRONE},configuration({env:e}){let t=e.DRONE_BUILD_EVENT==="pull_request";return {name:"Drone",service:"drone",commit:e.DRONE_COMMIT_SHA,tag:e.DRONE_TAG,build:e.DRONE_BUILD_NUMBER,buildUrl:e.DRONE_BUILD_LINK,branch:t?e.DRONE_TARGET_BRANCH:e.DRONE_BRANCH,job:e.DRONE_JOB_NUMBER,jobUrl:e.DRONE_BUILD_LINK,pr:e.DRONE_PULL_REQUEST,isPr:t,prBranch:t?e.DRONE_SOURCE_BRANCH:void 0,slug:`${e.DRONE_REPO_OWNER}/${e.DRONE_REPO_NAME}`,root:e.DRONE_WORKSPACE}}};var bUe={configuration(e){return {commit:vh(e),branch:qT(e)}}};var MDr=({env:e})=>{try{let t=e.GITHUB_EVENT_PATH?JSON.parse(fs$1.readFileSync(e.GITHUB_EVENT_PATH,"utf-8")):void 0;if(t&&t.pull_request)return {branch:t.pull_request.base?bh(t.pull_request.base.ref):void 0,pr:t.pull_request.number}}catch{}return {pr:void 0,branch:void 0}},LDr=e=>{let t=e.GITHUB_EVENT_PATH?JSON.parse(fs$1.readFileSync(e.GITHUB_EVENT_PATH,"utf-8")):void 0;return t&&t.pull_request?t.pull_request.number:void 0},_Ue={detect({env:e}){return !!e.GITHUB_ACTIONS},configuration({env:e,cwd:t}){let r=e.GITHUB_EVENT_NAME==="pull_request"||e.GITHUB_EVENT_NAME==="pull_request_target",n=bh(e.GITHUB_EVENT_NAME==="pull_request_target"?`refs/pull/${LDr(e)}/merge`:e.GITHUB_REF);return {name:"GitHub Actions",service:"github",commit:e.GITHUB_SHA,build:e.GITHUB_RUN_ID,isPr:r,branch:n,prBranch:r?n:void 0,slug:e.GITHUB_REPOSITORY,root:e.GITHUB_WORKSPACE,...r?MDr({env:e,cwd:t}):void 0}}};var xUe={detect({env:e}){return !!e.GITLAB_CI},configuration({env:e}){let t=e.CI_MERGE_REQUEST_ID,r=!!t;return {name:"GitLab CI/CD",service:"gitlab",commit:e.CI_COMMIT_SHA,tag:e.CI_COMMIT_TAG,build:e.CI_PIPELINE_ID,buildUrl:`${e.CI_PROJECT_URL}/pipelines/${e.CI_PIPELINE_ID}`,job:e.CI_JOB_ID,jobUrl:`${e.CI_PROJECT_URL}/-/jobs/${e.CI_JOB_ID}`,branch:r?e.CI_MERGE_REQUEST_TARGET_BRANCH_NAME:e.CI_COMMIT_REF_NAME,pr:t,isPr:r,prBranch:e.CI_MERGE_REQUEST_SOURCE_BRANCH_NAME,slug:e.CI_PROJECT_PATH,root:e.CI_PROJECT_DIR}}};var AUe={detect({env:e}){return !!e.JENKINS_URL},configuration({env:e,cwd:t}){let r=e.ghprbPullId||e.gitlabMergeRequestId||e.CHANGE_ID,n=!!r,i=e.GIT_LOCAL_BRANCH||e.GIT_BRANCH||e.gitlabBranch||e.BRANCH_NAME;return {name:"Jenkins",service:"jenkins",commit:e.ghprbActualCommit||e.GIT_COMMIT||vh({env:e,cwd:t}),branch:n?e.ghprbTargetBranch||e.gitlabTargetBranch:i,build:e.BUILD_NUMBER,buildUrl:e.BUILD_URL,root:e.WORKSPACE,pr:r,isPr:n,prBranch:n?e.ghprbSourceBranch||e.gitlabSourceBranch||i:void 0}}};var PUe={detect({env:e}){return e.NETLIFY==="true"},configuration({env:e}){let t=e.PULL_REQUEST==="true";return {name:"Netlify",service:"netlify",commit:e.COMMIT_REF,build:e.DEPLOY_ID,buildUrl:`https://app.netlify.com/sites/${e.SITE_NAME}/deploys/${e.DEPLOY_ID}`,branch:t?void 0:e.HEAD,pr:e.REVIEW_ID,isPr:t,prBranch:t?e.HEAD:void 0,slug:e.REPOSITORY_URL.match(/[^/:]+\/[^/]+?$/)[0],root:e.PWD}}};var CUe={detect({env:e}){return !!e.DISTELLI_APPNAME},configuration({env:e}){return {name:"Puppet",service:"puppet",build:e.DISTELLI_BUILDNUM,buildUrl:e.DISTELLI_RELEASE,commit:e.DISTELLI_RELREVISION,branch:e.DISTELLI_RELBRANCH,root:e.DISTELLI_INSTALLHOME}}};var wUe={detect({env:e}){return !!e.SAILCI},configuration({env:e}){let t=e.SAIL_PULL_REQUEST_NUMBER,r=!!t;return {name:"Sail CI",service:"sail",commit:e.SAIL_COMMIT_SHA,branch:r?void 0:e.SAIL_COMMIT_BRANCH,pr:t,isPr:r,slug:`${e.SAIL_REPO_OWNER}/${e.SAIL_REPO_NAME}`,root:e.SAIL_CLONE_DIR}}};var IUe={detect({env:e}){return !!e.SCREWDRIVER},configuration({env:e}){let t=e.SD_PULL_REQUEST,r=!!t;return {name:"Screwdriver.cd",service:"screwdriver",branch:r?e.PR_BASE_BRANCH_NAME:e.GIT_BRANCH,prBranch:r?e.PR_BRANCH_NAME:void 0,commit:e.SD_BUILD_SHA,build:e.SD_BUILD_ID,buildUrl:e.SD_UI_BUILD_URL,job:e.SD_JOB_ID,pr:t,isPr:r,slug:e.SD_PIPELINE_NAME,root:e.SD_ROOT_DIR}}};var OUe={detect({env:e}){return !!e.SCRUTINIZER},configuration({env:e}){let t=e.SCRUTINIZER_PR_NUMBER,r=!!t;return {name:"Scrutinizer",service:"scrutinizer",commit:e.SCRUTINIZER_SHA1,build:e.SCRUTINIZER_INSPECTION_UUID,branch:e.SCRUTINIZER_BRANCH,pr:t,isPr:r,prBranch:e.SCRUTINIZER_PR_SOURCE_BRANCH}}};var DUe={detect({env:e}){return !!e.SEMAPHORE},configuration({env:e,cwd:t}){let r=e.SEMAPHORE_GIT_PR_NUMBER||e.PULL_REQUEST_NUMBER,n=!!r;return {name:"Semaphore",service:"semaphore",commit:e.SEMAPHORE_GIT_SHA||vh({env:e,cwd:t}),tag:e.SEMAPHORE_GIT_TAG_NAME,build:e.SEMAPHORE_JOB_ID||e.SEMAPHORE_BUILD_NUMBER,branch:e.SEMAPHORE_GIT_BRANCH||(n?void 0:e.BRANCH_NAME),pr:r,isPr:n,prBranch:e.SEMAPHORE_GIT_PR_BRANCH||(n?e.BRANCH_NAME:void 0),slug:e.SEMAPHORE_GIT_REPO_SLUG||e.SEMAPHORE_REPO_SLUG,root:e.SEMAPHORE_GIT_DIR||e.SEMAPHORE_PROJECT_DIR}}};var NUe={detect({env:e}){return !!e.SHIPPABLE},configuration({env:e}){let t=e.IS_PULL_REQUEST==="true"?e.PULL_REQUEST:void 0,r=!!t;return {name:"Shippable",service:"shippable",commit:e.COMMIT,tag:e.GIT_TAG_NAME,build:e.BUILD_NUMBER,buildUrl:e.BUILD_URL,branch:r?e.BASE_BRANCH:e.BRANCH,job:e.JOB_NUMBER,pr:t,isPr:r,prBranch:r?e.HEAD_BRANCH:void 0,slug:e.SHIPPABLE_REPO_SLUG,root:e.SHIPPABLE_BUILD_DIR}}};var LUe=chunkTKGT252T_js.e(RUe(),1);var M$={root:"teamcity.build.workingDir",branch:"teamcity.build.branch"},MUe=e=>{try{return LUe.default.of(e)}catch{return}},jDr=({env:e,cwd:t})=>{let r=e.TEAMCITY_BUILD_PROPERTIES_FILE?MUe(e.TEAMCITY_BUILD_PROPERTIES_FILE):void 0,n=r?r.get("teamcity.configuration.properties.file"):void 0,i=n&&MUe(n);return Object.fromEntries(Object.keys(M$).map(s=>[s,(r?r.get(M$[s]):void 0)||(i?i.get(M$[s]):void 0)||(s==="branch"?qT({env:e,cwd:t}):void 0)]))},kUe={detect({env:e}){return !!e.TEAMCITY_VERSION},configuration({env:e,cwd:t}){return {name:"TeamCity",service:"teamcity",commit:e.BUILD_VCS_NUMBER,build:e.BUILD_NUMBER,slug:e.TEAMCITY_BUILDCONF_NAME,...jDr({env:e,cwd:t})}}};var FUe={detect({env:e}){return !!e.TRAVIS},configuration({env:e}){let t=e.TRAVIS_PULL_REQUEST==="false"?void 0:e.TRAVIS_PULL_REQUEST,r=!!t;return {name:"Travis CI",service:"travis",commit:e.TRAVIS_COMMIT,tag:e.TRAVIS_TAG,build:e.TRAVIS_BUILD_NUMBER,buildUrl:e.TRAVIS_BUILD_WEB_URL,branch:e.TRAVIS_BRANCH,job:e.TRAVIS_JOB_NUMBER,jobUrl:e.TRAVIS_JOB_WEB_URL,pr:t,isPr:r,prBranch:e.TRAVIS_PULL_REQUEST_BRANCH,slug:e.TRAVIS_REPO_SLUG,root:e.TRAVIS_BUILD_DIR}}};var BUe={detect({env:e}){return !!e.VELA},configuration({env:e}){let t=e.VELA_BUILD_EVENT==="pull_request";return {name:"Vela",service:"vela",branch:t?e.VELA_PULL_REQUEST_TARGET:e.VELA_BUILD_BRANCH,commit:e.VELA_BUILD_COMMIT,tag:e.VELA_BUILD_TAG,build:e.VELA_BUILD_NUMBER,buildUrl:e.VELA_BUILD_LINK,job:void 0,jobUrl:void 0,isPr:t,pr:e.VELA_BUILD_PULL_REQUEST,prBranch:e.VELA_PULL_REQUEST_SOURCE,slug:e.VELA_REPO_FULL_NAME,root:e.VELA_BUILD_WORKSPACE}}};var jUe={detect({env:e}){return !!e.VERCEL||!!e.NOW_GITHUB_DEPLOYMENT},configuration({env:e}){let t="Vercel",r="vercel";return e.VERCEL?{name:t,service:r,commit:e.VERCEL_GIT_COMMIT_SHA,branch:e.VERCEL_GIT_COMMIT_REF,slug:`${e.VERCEL_GIT_REPO_OWNER}/${e.VERCEL_GIT_REPO_SLUG}`}:{name:t,service:r,commit:e.NOW_GITHUB_COMMIT_SHA,branch:e.NOW_GITHUB_COMMIT_REF,slug:`${e.NOW_GITHUB_ORG}/${e.NOW_GITHUB_REPO}`}}};var UUe={detect({env:e}){return !!e.WERCKER_MAIN_PIPELINE_STARTED},configuration({env:e}){return {name:"Wercker",service:"wercker",commit:e.WERCKER_GIT_COMMIT,build:e.WERCKER_MAIN_PIPELINE_STARTED,buildUrl:e.WERCKER_RUN_URL,branch:e.WERCKER_GIT_BRANCH,slug:`${e.WERCKER_GIT_OWNER}/${e.WERCKER_GIT_REPOSITORY}`,root:e.WERCKER_ROOT}}};var qUe={detect({env:e}){return e.CI&&e.CI==="woodpecker"},configuration({env:e}){let t=e.CI_PIPELINE_EVENT==="pull_request";return {name:"Woodpecker CI",service:"woodpecker",commit:e.CI_COMMIT_SHA,tag:e.CI_COMMIT_TAG,build:e.CI_PIPELINE_NUMBER,buildUrl:e.CI_PIPELINE_URL,branch:t?e.CI_COMMIT_TARGET_BRANCH:e.CI_COMMIT_BRANCH,job:e.CI_STEP_NUMBER,jobUrl:e.CI_STEP_URL,pr:e.CI_COMMIT_PULL_REQUEST,isPr:t,prBranch:t?e.CI_COMMIT_SOURCE_BRANCH:void 0,slug:`${e.CI_REPO_OWNER}/${e.CI_REPO_NAME}`,root:e.CI_WORKSPACE}}};var VUe={detect({env:e}){return !!e.JB_SPACE_EXECUTION_NUMBER},configuration({env:e}){let t=e.JB_SPACE_PROJECT_KEY,r=e.JB_SPACE_GIT_REPOSITORY_NAME;return {name:"JetBrains Space",service:"jetbrainsSpace",commit:e.JB_SPACE_GIT_REVISION,build:e.JB_SPACE_EXECUTION_NUMBER,branch:bh(e.JB_SPACE_GIT_BRANCH),slug:t&&r?`${t.toLowerCase()}/${r}`:void 0}}};var L$={appveyor:mje,azurePipelines:yje,bamboo:gje,bitbucket:Sje,bitrise:Tje,buddy:Eje,buildkite:fUe,circleci:hUe,cirrus:mUe,cloudflarePages:yUe,codebuild:gUe,codefresh:SUe,codeship:TUe,drone:EUe,github:_Ue,gitlab:xUe,jenkins:AUe,netlify:PUe,puppet:CUe,sail:wUe,screwdriver:IUe,scrutinizer:OUe,semaphore:DUe,shippable:NUe,teamcity:kUe,travis:FUe,vela:BUe,vercel:jUe,wercker:UUe,woodpecker:qUe,jetbrainsSpace:VUe},HUe=({env:e=process.env,cwd:t=process.cwd()}={})=>{for(let r of Object.keys(L$))if(L$[r].detect({env:e,cwd:t}))return {isCi:!0,...L$[r].configuration({env:e,cwd:t})};return {isCi:!!e.CI,...bUe.configuration({env:e,cwd:t})}};var GUe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),$Ue=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var KUe=()=>(0, $Ue.dedent)(GUe.default` ${chunkF6FLWRPJ_js.H} {bold Cross-fork PR builds unsupported in custom GitHub workflows} GitHub actions triggered by a fork do not report their repository owner, so cannot be properly linked to a pull request in Chromatic. Consider using the official Chromatic GitHub Action, or set CHROMATIC_BRANCH to include the forked repository owner (e.g. owner:branch). ${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/github-actions")} `);var k$=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),F$=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var YUe=(e=!1)=>e?(0, F$.dedent)(k$.default` ${chunkF6FLWRPJ_js.H} {bold Found only one commit} This typically means you have ran into one of the following scenarios: - You've checked out a shallow copy of the Git repository, which {bold actions/checkout@v2} does by default. In order for Chromatic to correctly determine baseline commits, we need access to the full Git history graph. With {bold actions/checkout@v2}, you can enable this by setting 'fetch-depth: 0'. ${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/github-actions")} - You've only made a single commit so far. Please make at least one additional commit in order for Chromatic to be able to detect what's changed. `):(0, F$.dedent)(k$.default` ${chunkF6FLWRPJ_js.H} {bold Found only one commit} This typically means you have ran into one of the following scenarios: - You've checked out a shallow copy of the Git repository, which some CI systems do by default. In order for Chromatic to correctly determine baseline commits, we need access to the full Git history graph. Refer to your CI provider's documentation for details. - You've only made a single commit so far. Please make at least one additional commit in order for Chromatic to be able to detect what's changed. `);var WUe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),XUe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var zUe=({GITHUB_EVENT_NAME:e})=>(0, XUe.dedent)(WUe.default` ${chunkF6FLWRPJ_js.H} {bold Missing GitHub environment variable} \`GITHUB_EVENT_NAME\` environment variable is set to '${e}', but \`GITHUB_SHA\` and \`GITHUB_HEAD_REF\` are not both set. ${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/github-actions")} `);var JUe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),QUe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var ZUe=({TRAVIS_EVENT_TYPE:e})=>(0, QUe.dedent)(JUe.default` ${chunkF6FLWRPJ_js.H} {bold Missing Travis environment variable} \`TRAVIS_EVENT_TYPE\` environment variable set to '${e}', but \`TRAVIS_PULL_REQUEST_SHA\` and \`TRAVIS_PULL_REQUEST_BRANCH\` are not both set. ${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/travisci/")} `);var e4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),t4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var r4e=()=>(0, t4e.dedent)(e4e.default` ${chunkF6FLWRPJ_js.E} {bold Use our GitHub Action} It appears you are using a GitHub Actions workflow, but are not using the official GitHub Action for Chromatic. Find it at ${chunkHZVCNUTP_js.f("https://github.com/marketplace/actions/publish-to-chromatic")} `);var GN=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),$N=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var hx=({ref:e,sha:t,env:r})=>e?(0, $N.dedent)(GN.default` ${chunkF6FLWRPJ_js.G} {bold Branch '${e}' does not exist} We tried to retrieve its latest commit but couldn't find it in your Git history. Falling back to ${t.slice(0,7)}, but commit details (date, author) will be missing. We will not be able to retain baselines from builds created by the Visual Tests addon. Pull request status updates likely won't work properly. Please use our official GitHub Action or forward the pull_request event info to us. ${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/github-actions")} `):r?(0, $N.dedent)(GN.default` ${chunkF6FLWRPJ_js.G} {bold Commit ${t.slice(0,7)} does not exist} We tried to retrieve the commit details but couldn't find it in your Git history. Check your {bold ${r}} environment variable. Using it anyway, but commit details (date, author) will be missing. We will not be able to retain baselines from builds created by the Visual Tests addon. `):(0, $N.dedent)(GN.default` ${chunkF6FLWRPJ_js.G} {bold Commit ${t.slice(0,7)} does not exist} We tried to retrieve the commit details but couldn't find it in your Git history. Using it anyway, but commit details (date, author) will be missing. We will not be able to retain baselines from builds created by the Visual Tests addon. `);var n4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),i4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var s4e=()=>(0, i4e.dedent)(n4e.default` ${chunkF6FLWRPJ_js.G} {bold Running on a Travis PR build from an internal branch} It is recommended to run Chromatic on the push builds from Travis where possible. We advise turning on push builds and disabling Chromatic for internal PR builds. ${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/travisci/")} `);var a4e=chunkTKGT252T_js.e(ax()),UDr=a4e.default` query MergeQueueOriginalBranchQuery($number: Int!) { app { pullRequest(number: $number) { branch: headRefName } } } `;async function o4e(e,{number:t}){var n;let{app:r}=await e.client.runQuery(UDr,{number:t});return (n=r==null?void 0:r.pullRequest)==null?void 0:n.branch}var u4e=/^origin\//,lp=e=>e&&e!=="HEAD"?e:!1;function qDr(e){try{return HUe()}catch(t){return e.debug("Error while parsing CI environment variables",t),{}}}async function B$(e,{branchName:t,patchBaseRef:r,ci:n}={}){let{log:i}=e,s=await chunkHZVCNUTP_js.k(e),a=lp(t)||lp(r)||await chunkHZVCNUTP_js.l(e),o,{TRAVIS_COMMIT:u,TRAVIS_EVENT_TYPE:l,TRAVIS_PULL_REQUEST_SLUG:c,TRAVIS_REPO_SLUG:p,TRAVIS_PULL_REQUEST_SHA:h,TRAVIS_PULL_REQUEST_BRANCH:f,GITHUB_ACTIONS:d,GITHUB_EVENT_NAME:m,GITHUB_REPOSITORY:y,GITHUB_BASE_REF:g,GITHUB_HEAD_REF:v,GITHUB_SHA:E,CHROMATIC_SHA:S,CHROMATIC_BRANCH:x,CHROMATIC_PULL_REQUEST_SHA:b,CHROMATIC_SLUG:A}=process.env,{isCi:D,service:P,prBranch:V,branch:X,commit:oe,slug:le}=qDr(i),Be=S&&x,be=l==="pull_request",Ee=d==="true",Te=m==="pull_request";if(!await chunkHZVCNUTP_js.n(e)){let fe=YUe(Ee);if(D)throw new Error(fe);i.warn(fe);}if(Be)s=await chunkHZVCNUTP_js.k(e,S).catch(fe=>(i.warn(hx({sha:S,env:"CHROMATIC_SHA"})),i.debug(fe),{commit:S,committedAt:Date.now()})),b&&(s.mergeCommit=b),a=x,o=A;else if(be){if(c===p&&i.warn(s4e()),!h||!f)throw new Error(ZUe({TRAVIS_EVENT_TYPE:l}));s=await chunkHZVCNUTP_js.k(e,h).catch(fe=>(i.warn(hx({sha:h,env:"TRAVIS_PULL_REQUEST_SHA"})),i.debug(fe),{commit:h,committedAt:Date.now()})),u&&(s.mergeCommit=u),a=f,o=c;}else if(Te){if(i.info(r4e()),!v||!E)throw new Error(zUe({GITHUB_EVENT_NAME:m}));if(g===v)throw new Error(KUe());s=await chunkHZVCNUTP_js.k(e,v).catch(fe=>(i.warn(hx({ref:v,sha:E,env:"GITHUB_HEAD_REF"})),i.debug(fe),{commit:E,committedAt:Date.now()})),s.mergeCommit=E,a=v,o=y;}let Me=process.env.CHROMATIC_ACTION?"chromaui/action":P;o=o||le,lp(a)||(s=await chunkHZVCNUTP_js.k(e,oe).catch(fe=>(i.warn(hx({sha:oe})),i.debug(fe),{commit:oe,committedAt:Date.now()})),a=lp(V)||lp(X)||lp(process.env.HEAD)||lp(process.env.GERRIT_BRANCH)||lp(process.env.GITHUB_REF)||lp(process.env.CI_BRANCH)||"HEAD");let At=D||!!n||!!process.env.CI||!!process.env.REPOSITORY_URL||!!process.env.GITHUB_REPOSITORY;!t&&!Be&&u4e.test(a)&&(i.warn("Ignoring 'origin/' prefix in branch name."),a=a.replace(u4e,""));let ue=await chunkHZVCNUTP_js.y(e,a);if(ue){let fe=await o4e(e,{number:ue});fe&&(a=fe);}return i.debug(`git info: ${JSON.stringify({commit:s,branch:a,slug:o,fromCI:At,ciService:Me})}`),{...s,branch:a,slug:o,fromCI:At,ciService:Me}}var KN=chunkTKGT252T_js.e(ax());var VDr=20,HDr=KN.default` query FirstCommittedAtQuery($branch: String!, $localBuilds: LocalBuildsSpecifierInput!) { app { firstBuild(sortByCommittedAt: true, localBuilds: $localBuilds) { committedAt } lastBuild(branch: $branch, sortByCommittedAt: true, localBuilds: $localBuilds) { commit committedAt } } } `,GDr=KN.default` query HasBuildsWithCommitsQuery($commits: [String!]!, $localBuilds: LocalBuildsSpecifierInput!) { app { hasBuildsWithCommits(commits: $commits, localBuilds: $localBuilds) } } `,$Dr=KN.default` query MergeCommitsQuery($mergeInfoList: [MergedInfoInput]!) { app { mergedPullRequests(mergeInfoList: $mergeInfoList) { lastHeadBuild { commit } } } } `;function j$(e){return e.map(t=>t.trim()).join(" ")}async function KDr(e,t,{firstCommittedAtSeconds:r,commitsWithBuilds:n,commitsWithoutBuilds:i}){let s=`git rev-list HEAD ${r?`--since ${r}`:""} -n ${t+i.length} --not ${j$(n)}`,a=await chunkHZVCNUTP_js.g(e,s),o=a==null?void 0:a.split(` `).filter(Boolean),u=o==null?void 0:o.filter(c=>!n.includes(c)),l=u==null?void 0:u.filter(c=>!i.includes(c)).slice(0,t);return {visitedCommitsWithoutBuilds:u,candidateCommits:l}}async function l4e({options:e,client:t,log:r,git:n},i,{firstCommittedAtSeconds:s,commitsWithBuilds:a,commitsWithoutBuilds:o}){r.debug(`step: checking ${i} up to ${s}`),r.debug(`step: commitsWithBuilds: ${a}`),r.debug(`step: commitsWithoutBuilds: ${o}`);let{candidateCommits:u,visitedCommitsWithoutBuilds:l}=await KDr({log:r},i,{firstCommittedAtSeconds:s,commitsWithBuilds:a,commitsWithoutBuilds:o});if(r.debug(`step: candidateCommits: ${u}, visitedCommitsWithoutBuilds: ${l}`),!(u!=null&&u.length))return r.debug("step: no candidateCommits; we are done"),{commitsWithBuilds:a,visitedCommitsWithoutBuilds:l};let{app:{hasBuildsWithCommits:c}}=await t.runQuery(GDr,{commits:u,localBuilds:ox({options:e,git:n})});r.debug(`step: newCommitsWithBuilds: ${c}`);let p=u==null?void 0:u.filter(h=>!c.includes(h));return l4e({options:e,client:t,log:r,git:n},i*2,{firstCommittedAtSeconds:s,commitsWithBuilds:[...a,...c],commitsWithoutBuilds:[...o,...p||[]]})}async function YDr(e,t){if(t.length===0)return t;let r=t.map(a=>`"${a}^@"`),n=`git rev-list ${j$(t)} --not ${j$(r)}`,i=await chunkHZVCNUTP_js.g(e,n);return i==null?void 0:i.split(` `).filter(Boolean)}async function c4e(e,{ignoreLastBuildOnBranch:t=!1}={}){var E;let{options:r,client:n,git:i,log:s}=e,{branch:a,committedAt:o}=i,{app:u}=await n.runQuery(HDr,{branch:a,localBuilds:ox({options:r,git:i})},{retries:5}),{firstBuild:l,lastBuild:c}=u;if(s.debug("App firstBuild: %o, lastBuild: %o",l,c),!l)return s.debug("App has no builds, returning []"),[];let p=[],h=[];a!=="HEAD"&&!t&&c&&c.committedAt<=o&&(await chunkHZVCNUTP_js.o(e,c.commit)?(s.debug(`Adding last branch build commit ${c.commit} to commits with builds`),p.push(c.commit)):(s.debug(`Last branch build commit ${c.commit} not in index, blindly appending to parents`),h.push(c.commit)));let{commitsWithBuilds:f,visitedCommitsWithoutBuilds:d}=await l4e({options:r,client:n,log:s,git:i},VDr,{firstCommittedAtSeconds:l.committedAt&&l.committedAt/1e3,commitsWithBuilds:p,commitsWithoutBuilds:[]}),m=d==null?void 0:d.map(S=>({commit:S,baseRefName:a})),{app:{mergedPullRequests:y}}=await n.runQuery($Dr,{mergeInfoList:m==null?void 0:m.slice(0,100)},{retries:5});for(let S of y){let x=(E=S.lastHeadBuild)==null?void 0:E.commit;x&&(await chunkHZVCNUTP_js.o(e,x)?(s.debug(`Adding merged PR build commit ${x} to commits with builds`),f.push(x)):(s.debug(`Merged PR build commit ${x} not in index, blindly appending to parents`),h.push(x)));}s.debug(`Final commitsWithBuilds: ${f}`);let g=await YDr({log:s},f);return [...h,...g||[]]}var WDr=new Set(["react-router","react-router-dom","remix","@tanstack/react-router","expo-router","@reach/router","react-easy-router","@remix-run/router","wouter","wouter-preact","preact-router","vue-router","unplugin-vue-router","@angular/router","@solidjs/router","next","react-scripts","gatsby","nuxt","@sveltejs/kit"]);function p4e(e){return Object.keys((e==null?void 0:e.dependencies)??{}).some(t=>WDr.has(t))}var f4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),h4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var XDr="https://www.chromatic.com/docs/visual-tests-addon/#what-are-local-builds-and-how-are-they-different-from-builds",d4e=()=>`${(0, h4e.dedent)(f4e.default` ${chunkF6FLWRPJ_js.H} {bold Failed to find the current git user's email} We were unable to find your git email so this local build will not belong to you and will not affect your future baselines. Read more: ${chunkHZVCNUTP_js.f(XDr)} In order to associate your local changes with later CI builds, you need to configure git with the email address you'll commit with. You can do this with \`git config --global user.email YOUR_EMAIL\`. Once you've done so, please run this build again. `)}`;var E4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),b4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var U$=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H()),zDr=({commit:e,branch:t,parentCommits:r,changedFiles:n},{ownerName:i},s={})=>{let a=s.bailReason?"; TurboSnap disabled":"",o=i?`${i}:${t}`:t,u=`Commit '${e.slice(0,7)}' on branch '${o}'`;return r!=null&&r.length?(u+=`; found ${(0, U$.default)("parent build",r.length,!0)}`,n&&(u+=` and ${(0, U$.default)("changed file",n.length,!0)}`),`${u}${a}`):`${u}; no ancestor found${a}`},m4e={status:"initial",title:"Retrieve git information"},y4e=()=>({status:"pending",title:"Retrieving git information"}),g4e=e=>({status:"pending",title:"Skipping build",output:`Skipping build for commit ${e.git.commit.slice(0,7)}`}),S4e=e=>({status:"success",title:"Skipping build",output:`Skipped build for commit ${e.git.commit.slice(0,7)} due to --skip`}),T4e=()=>({status:"error",title:"Skipping build",output:"Failed to skip build"}),YN=()=>({status:"success",title:"Skipping build",output:"Skipping rebuild of an already fully passed/accepted build"}),WN=e=>({status:"success",title:"Retrieved git information",output:zDr(e.git,e.options,e.turboSnap)});var v4e=()=>(0, b4e.dedent)(E4e.default` ${chunkF6FLWRPJ_js.E} {bold ${YN().output}} A build for the same commit as the last build on the branch is considered a rebuild. If the last build is passed or accepted, the rebuild is skipped because it shouldn't change anything. You can override this using the {bold --force-rebuild} flag. `);var x4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),A4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());function _4e(e){return e.commit.slice(0,7)}var P4e=({replacedBuild:e,replacementBuild:t})=>(0, A4e.dedent)(x4e.default` ${chunkF6FLWRPJ_js.E} {bold Missing commit detected} When detecting git changes for TurboSnap, we couldn't find the commit (${_4e(e)}) for the most recent build (#${e.number}). To avoid re-snapshotting stories we know haven't changed, we copied from the most recent build (#${t.number}) that did have a commit (${_4e(t)}) instead. `);var dx=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),C4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var JDr="https://www.chromatic.com/docs/turbosnap#how-it-works",w4e=e=>{let t=e.length===1?"file":`${e.length} files`,r=e.map(i=>dx.default.bold(i)),n=e.length===1?r[0]:dx.default`\n{dim →} ${r.join(dx.default`\n{dim →} `)}`;return (0, C4e.dedent)(dx.default` ${chunkF6FLWRPJ_js.G} {bold TurboSnap disabled due to matching --externals} Found ${t} with changes: ${n} ${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f(JDr)} `)};var I4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),O4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var QDr="https://www.chromatic.com/docs/turbosnap#how-it-works",D4e=()=>(0, O4e.dedent)(I4e.default` ${chunkF6FLWRPJ_js.G} {bold TurboSnap disabled due to missing git history} Could not retrieve changed files since baseline commit(s). This typically happens after rebasing, force pushing, or when running against an ephemeral merge commit. ${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f(QDr)} `);var N4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),R4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var M4e=()=>(0, R4e.dedent)(N4e.default` ${chunkF6FLWRPJ_js.G} {bold TurboSnap disabled due to rebuild} You appear to be rerunning an earlier build, because the baseline build has the same commit and branch name. Comparing against the same commit would yield zero changed files, so we would end up running a build with no snapshots. That's probably not what you want when rerunning a build, so we're just going to run a full build instead. `);var L4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),k4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var ZDr="https://www.chromatic.com/docs/faq/override-branch-name/",F4e=()=>(0, k4e.dedent)(L4e.default` ${chunkF6FLWRPJ_js.G} Removing unknown owner prefix from branch name. You may wish to set the branch directly to avoid incorrect values. ${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f(ZDr)} `);var B4e=/^undefined:/,eNr=` mutation SkipBuildMutation($commit: String!, $branch: String, $slug: String) { skipBuild(commit: $commit, branch: $branch, slug: $slug) } `,tNr=` query LastBuildQuery($commit: String!, $branch: String!) { app { isOnboarding lastBuild(ref: $commit, branch: $branch) { id status(legacy: false) storybookUrl webUrl specCount componentCount testCount changeCount errorCount: testCount(statuses: [BROKEN]) actualTestCount: testCount(statuses: [IN_PROGRESS]) actualCaptureCount inheritedCaptureCount interactionTestFailuresCount } } } `,rNr=async(e,t)=>{var y,g,v,E,S;let{branchName:r,ownerName:n,repositorySlug:i,patchBaseRef:s,fromCI:a,interactive:o,isLocalBuild:u}=e.options,l=await chunkHZVCNUTP_js.h(e),c=await B$(e,{branchName:r,patchBaseRef:s,ci:a});e.git={version:l,gitUserEmail:await chunkHZVCNUTP_js.i(e).catch(x=>{e.log.debug("Failed to retrieve Git user email",x);}),uncommittedHash:await chunkHZVCNUTP_js.m(e).catch(x=>{e.log.warn("Failed to retrieve uncommitted files hash",x);}),rootPath:await chunkHZVCNUTP_js.x(e),...c};try{e.projectMetadata={hasRouter:p4e(e.packageJson),creationDate:await chunkHZVCNUTP_js.z(e),storybookCreationDate:await chunkHZVCNUTP_js.A(e),numberOfCommitters:await chunkHZVCNUTP_js.B(e),numberOfAppFiles:await chunkHZVCNUTP_js.C(e,["page","screen"],["js","jsx","ts","tsx"])};}catch(x){e.log.debug("Failed to gather project metadata",x);}if(u&&!e.git.gitUserEmail)throw new Error(d4e());if(!e.git.slug)try{e.git.slug=await chunkHZVCNUTP_js.j(e);}catch(x){e.log.debug("Failed to retrieve Git repository slug",x);}n?(e.git.branch=e.git.branch.replace(/[^:]+:/,""),e.git.slug=i||((y=e.git.slug)==null?void 0:y.replace(/[^/]+/,n))):B4e.test(e.git.branch)&&(e.log.warn(F4e()),e.git.branch=e.git.branch.replace(B4e,""));let{branch:p,commit:h,slug:f}=e.git;if(e.git.matchesBranch=x=>typeof x=="string"&&x.length>0?(0, j4e.default)(x,{bash:!0})(p):!!x,(v=(g=e.git).matchesBranch)!=null&&v.call(g,e.options.skip)){if(St(g4e)(e,t),await e.client.runQuery(eNr,{commit:h,branch:p,slug:f})){e.skip=!0,St(S4e,!0)(e,t),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.OK);return}throw new Error(T4e().output)}let d=await c4e(e,{ignoreLastBuildOnBranch:(S=(E=e.git).matchesBranch)==null?void 0:S.call(E,e.options.ignoreLastBuildOnBranch||!1)});e.git.parentCommits=d,e.log.debug(`Found parentCommits: ${d.join(", ")}`);let m=await e.client.runQuery(tNr,{commit:h,branch:p});if(e.isOnboarding=m.app.isOnboarding,m.app.isOnboarding&&(e.options.forceRebuild=!0),d.length===1&&d[0]===h){let x=m&&m.app&&m.app.lastBuild;if(x&&(e.rebuildForBuildId=x.id,["PASSED","ACCEPTED"].includes(x.status)&&!e.git.matchesBranch(e.options.forceRebuild))){e.skip=!0,e.rebuildForBuild=m.app.lastBuild,e.storybookUrl=m.app.lastBuild.storybookUrl,St(YN,!0)(e,t),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.OK),e.log.info(v4e());return}}if(e.turboSnap=e.git.matchesBranch(e.options.onlyChanged)?{}:void 0,e.turboSnap){if(d.length===0){e.turboSnap.bailReason={noAncestorBuild:!0},St(WN,!0)(e,t);return}if(e.rebuildForBuildId){e.turboSnap.bailReason={rebuild:!0},e.log.warn(M4e()),St(WN,!0)(e,t);return}let x=await pje(e,{branch:p,parentCommits:d});e.git.baselineCommits=x.map(b=>b.commit),e.log.debug(`Found baselineCommits: ${e.git.baselineCommits.join(", ")}`),e.build=x.sort((b,A)=>A.committedAt-b.committedAt)[0];try{let b=await Promise.all(x.map(async D=>{let P=await dje(e,D);return {build:D,...P}}));e.git.changedFiles=[...new Set(b.flatMap(({changedFiles:D})=>D))];let{untraced:A=[]}=e.options;if(e.git.packageMetadataChanges=b.flatMap(({build:D,changedFiles:P,replacementBuild:V})=>{let X=P.filter(oe=>!A.some(le=>chunkHZVCNUTP_js._(le,oe))).filter(oe=>chunkHZVCNUTP_js.aa(oe));return X.length>0?[{changedFiles:X,commit:(V==null?void 0:V.commit)??D.commit}]:[]}),e.git.replacementBuildIds=b.filter(D=>!!D.replacementBuild).map(({build:D,replacementBuild:P})=>(e.log.info(""),e.log.info(P4e({replacedBuild:D,replacementBuild:P})),[D.id,P.id])),!o){let D=e.git.changedFiles.length>0?`: ${e.git.changedFiles.map(P=>` ${P}`).join(` `)}`:"";e.log.info(`Found ${e.git.changedFiles.length} changed files${D}`);}}catch(b){e.turboSnap.bailReason={invalidChangedFiles:!0},delete e.git.changedFiles,delete e.git.replacementBuildIds,e.log.warn(D4e()),e.log.debug(b);}if(e.options.externals&&e.git.changedFiles&&e.git.changedFiles.length>0)for(let b of e.options.externals){let A=e.git.changedFiles.filter(D=>chunkHZVCNUTP_js._(b,D));if(A.length>0){e.turboSnap.bailReason={changedExternalFiles:A},e.log.warn(w4e(A)),delete e.git.changedFiles,delete e.git.replacementBuildIds;break}}}St(WN,!0)(e,t);};function q$(e){return Fn({name:"gitInfo",title:m4e.title,steps:[St(y4e),rNr]})}var V$=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),H$=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var U4e="https://www.chromatic.com/docs/quickstart/#why-do-i-see-build-x-is-based-on-a-commit-without-ancestor-builds",q4e=({announcedBuild:e,turboSnap:t})=>t?(0, H$.dedent)(V$.default` ${chunkF6FLWRPJ_js.G} {bold TurboSnap disabled due to missing ancestor build} An ancestor is required to determine which files have changed since the last Chromatic build. This usually happens when rebasing, force-pushing, squash-merging or running against an ephemeral merge commit. ${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f(U4e)} `):(0, H$.dedent)(V$.default` ${chunkF6FLWRPJ_js.G} {bold No ancestor build found} Build ${e.number} is based on a commit without ancestor builds, which is unusual. This usually happens when rebasing, force-pushing, squash-merging or running against an ephemeral merge commit. ${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f(U4e)} `);var V4e={status:"initial",title:"Initialize build"},H4e=()=>({status:"pending",title:"Initializing build"}),G4e=e=>({status:"success",title:"Initialized build",output:`Build ${e.announcedBuild.number} initialized`});var nNr=` mutation AnnounceBuildMutation($input: AnnounceBuildInput!) { announceBuild(input: $input) { id number # no need for legacy:false on AnnouncedBuild.status status autoAcceptChanges reportToken features { uiTests uiReview isReactNativeApp } app { id turboSnapAvailability } } } `,iNr=async e=>{e.environment||(e.environment={});for(let[t,r]of Object.entries(process.env))r&&e.env.ENVIRONMENT_WHITELIST.some(n=>t.match(n))&&(e.environment[t]=r);e.log.debug(`Got environment: ${JSON.stringify(e.environment,void 0,2)}`);},sNr=async e=>{e.runtimeMetadata={nodePlatform:process.platform,nodeVersion:process.versions.node};try{let t=await J3e();if(!t)throw new Error("Failed to determine package manager");e.runtimeMetadata.packageManager=t,Bp("packageManager",t);let r=await Z3e(t);e.runtimeMetadata.packageManagerVersion=r,Bp("packageManagerVersion",r);}catch(t){e.log.debug(`Failed to set runtime metadata: ${t.message}`);}},aNr=e=>{var E;let{patchBaseRef:t,patchHeadRef:r,preserveMissingSpecs:n,isLocalBuild:i}=e.options,{version:s,matchesBranch:a,changedFiles:o,changedDependencyNames:u,replacementBuildIds:l,committedAt:c,baselineCommits:p,packageMetadataChanges:h,gitUserEmail:f,rootPath:d,...m}=e.git,{rebuildForBuildId:y,turboSnap:g}=e;return {autoAcceptChanges:a==null?void 0:a(e.options.autoAcceptChanges),patchBaseRef:t,patchHeadRef:r,preserveMissingSpecs:n,...f&&{gitUserEmailHash:gd(f)},...m,committedAt:new Date(c),ciVariables:e.environment,isLocalBuild:i,needsBaselines:!!g&&!g.bailReason,packageVersion:e.pkg.version,...e.runtimeMetadata,rebuildForBuildId:y,storybookAddons:e.storybook.addons,storybookVersion:e.storybook.version,projectMetadata:{...e.projectMetadata,storybookBaseDir:(E=e.storybook)==null?void 0:E.baseDir}}},oNr=async e=>{var n;let t=aNr(e),{announceBuild:r}=await e.client.runQuery(nNr,{input:t},{retries:3});Bp("app_id",r.app.id),Oy("build",{id:r.id}),e.announcedBuild=r,e.isOnboarding=e.isOnboarding||r.number===1||r.autoAcceptChanges&&!t.autoAcceptChanges,e.isReactNativeApp=((n=r.features)==null?void 0:n.isReactNativeApp)??!1,e.turboSnap&&r.app.turboSnapAvailability==="UNAVAILABLE"&&(e.turboSnap.unavailable=!0),!e.isOnboarding&&!e.git.parentCommits&&e.log.warn(q4e(e));};function G$(e){return Fn({name:"initialize",title:V4e.title,skip:t=>t.skip,steps:[St(H4e),iNr,sNr,oNr,St(G4e,!0)]})}var K$=chunkTKGT252T_js.e(chunkHZVCNUTP_js.a()),i5e=chunkTKGT252T_js.e(chunkHZVCNUTP_js.fa());var Y4e=chunkTKGT252T_js.e(chunkHZVCNUTP_js.d());var uNr=new Uint8Array([0,97,115,109,1,0,0,0,1,48,8,96,3,127,127,127,0,96,3,127,127,127,1,127,96,2,127,127,0,96,2,127,126,0,96,1,127,1,127,96,1,127,1,126,96,3,127,127,126,1,126,96,3,126,127,127,1,126,3,11,10,1,1,2,0,4,6,7,3,0,5,5,3,1,0,1,7,85,9,3,109,101,109,2,0,5,120,120,104,51,50,0,0,6,105,110,105,116,51,50,0,2,8,117,112,100,97,116,101,51,50,0,3,8,100,105,103,101,115,116,51,50,0,4,5,120,120,104,54,52,0,5,6,105,110,105,116,54,52,0,7,8,117,112,100,97,116,101,54,52,0,8,8,100,105,103,101,115,116,54,52,0,9,10,211,23,10,242,1,1,4,127,32,0,32,1,106,33,3,32,1,65,16,79,4,127,32,3,65,16,107,33,6,32,2,65,168,136,141,161,2,106,33,3,32,2,65,247,148,175,175,120,106,33,4,32,2,65,177,243,221,241,121,107,33,5,3,64,32,0,40,2,0,65,247,148,175,175,120,108,32,3,106,65,13,119,65,177,243,221,241,121,108,33,3,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,32,4,106,65,13,119,65,177,243,221,241,121,108,33,4,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,32,2,106,65,13,119,65,177,243,221,241,121,108,33,2,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,32,5,106,65,13,119,65,177,243,221,241,121,108,33,5,32,0,65,4,106,34,0,32,6,77,13,0,11,32,2,65,12,119,32,5,65,18,119,106,32,4,65,7,119,106,32,3,65,1,119,106,5,32,2,65,177,207,217,178,1,106,11,32,1,106,32,0,32,1,65,15,113,16,1,11,146,1,0,32,1,32,2,106,33,2,3,64,32,1,65,4,106,32,2,75,69,4,64,32,1,40,2,0,65,189,220,202,149,124,108,32,0,106,65,17,119,65,175,214,211,190,2,108,33,0,32,1,65,4,106,33,1,12,1,11,11,3,64,32,1,32,2,79,69,4,64,32,1,45,0,0,65,177,207,217,178,1,108,32,0,106,65,11,119,65,177,243,221,241,121,108,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,65,15,118,32,0,115,65,247,148,175,175,120,108,34,0,32,0,65,13,118,115,65,189,220,202,149,124,108,34,0,32,0,65,16,118,115,11,63,0,32,0,65,8,106,32,1,65,168,136,141,161,2,106,54,2,0,32,0,65,12,106,32,1,65,247,148,175,175,120,106,54,2,0,32,0,65,16,106,32,1,54,2,0,32,0,65,20,106,32,1,65,177,243,221,241,121,107,54,2,0,11,211,4,1,6,127,32,1,32,2,106,33,6,32,0,65,24,106,33,5,32,0,65,40,106,40,2,0,33,3,32,0,32,0,40,2,0,32,2,106,54,2,0,32,0,65,4,106,34,4,32,4,40,2,0,32,2,65,16,79,32,0,40,2,0,65,16,79,114,114,54,2,0,32,2,32,3,106,65,16,73,4,64,32,3,32,5,106,32,1,32,2,252,10,0,0,32,0,65,40,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,5,106,32,1,65,16,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,40,2,0,32,5,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,3,32,4,54,2,0,32,0,65,12,106,34,3,40,2,0,32,5,65,4,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,3,32,4,54,2,0,32,0,65,16,106,34,3,40,2,0,32,5,65,8,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,3,32,4,54,2,0,32,0,65,20,106,34,3,40,2,0,32,5,65,12,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,3,32,4,54,2,0,32,0,65,40,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,32,6,65,16,107,77,4,64,32,6,65,16,107,33,8,32,0,65,8,106,40,2,0,33,2,32,0,65,12,106,40,2,0,33,3,32,0,65,16,106,40,2,0,33,4,32,0,65,20,106,40,2,0,33,7,3,64,32,1,40,2,0,65,247,148,175,175,120,108,32,2,106,65,13,119,65,177,243,221,241,121,108,33,2,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,32,3,106,65,13,119,65,177,243,221,241,121,108,33,3,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,32,4,106,65,13,119,65,177,243,221,241,121,108,33,4,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,32,7,106,65,13,119,65,177,243,221,241,121,108,33,7,32,1,65,4,106,34,1,32,8,77,13,0,11,32,0,65,8,106,32,2,54,2,0,32,0,65,12,106,32,3,54,2,0,32,0,65,16,106,32,4,54,2,0,32,0,65,20,106,32,7,54,2,0,11,32,1,32,6,73,4,64,32,5,32,1,32,6,32,1,107,34,1,252,10,0,0,32,0,65,40,106,32,1,54,2,0,11,11,97,1,1,127,32,0,65,16,106,40,2,0,33,1,32,0,65,4,106,40,2,0,4,127,32,1,65,12,119,32,0,65,20,106,40,2,0,65,18,119,106,32,0,65,12,106,40,2,0,65,7,119,106,32,0,65,8,106,40,2,0,65,1,119,106,5,32,1,65,177,207,217,178,1,106,11,32,0,40,2,0,106,32,0,65,24,106,32,0,65,40,106,40,2,0,16,1,11,157,4,2,1,127,3,126,32,0,32,1,106,33,3,32,1,65,32,79,4,126,32,3,65,32,107,33,3,32,2,66,135,149,175,175,152,182,222,155,158,127,124,66,207,214,211,190,210,199,171,217,66,124,33,4,32,2,66,207,214,211,190,210,199,171,217,66,124,33,5,32,2,66,0,124,33,6,32,2,66,135,149,175,175,152,182,222,155,158,127,125,33,2,3,64,32,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,4,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,4,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,5,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,5,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,6,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,2,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,2,32,0,65,8,106,34,0,32,3,77,13,0,11,32,6,66,12,137,32,2,66,18,137,124,32,5,66,7,137,124,32,4,66,1,137,124,32,4,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,5,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,6,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,2,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,5,32,2,66,197,207,217,178,241,229,186,234,39,124,11,32,1,173,124,32,0,32,1,65,31,113,16,6,11,137,2,0,32,1,32,2,106,33,2,3,64,32,1,65,8,106,32,2,77,4,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,27,137,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,33,0,32,1,65,8,106,33,1,12,1,11,11,32,1,65,4,106,32,2,77,4,64,32,1,53,2,0,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,23,137,66,207,214,211,190,210,199,171,217,66,126,66,249,243,221,241,153,246,153,171,22,124,33,0,32,1,65,4,106,33,1,11,3,64,32,1,32,2,73,4,64,32,1,49,0,0,66,197,207,217,178,241,229,186,234,39,126,32,0,133,66,11,137,66,135,149,175,175,152,182,222,155,158,127,126,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,66,33,136,32,0,133,66,207,214,211,190,210,199,171,217,66,126,34,0,32,0,66,29,136,133,66,249,243,221,241,153,246,153,171,22,126,34,0,32,0,66,32,136,133,11,88,0,32,0,65,8,106,32,1,66,135,149,175,175,152,182,222,155,158,127,124,66,207,214,211,190,210,199,171,217,66,124,55,3,0,32,0,65,16,106,32,1,66,207,214,211,190,210,199,171,217,66,124,55,3,0,32,0,65,24,106,32,1,55,3,0,32,0,65,32,106,32,1,66,135,149,175,175,152,182,222,155,158,127,125,55,3,0,11,132,5,2,3,127,4,126,32,1,32,2,106,33,5,32,0,65,40,106,33,4,32,0,65,200,0,106,40,2,0,33,3,32,0,32,0,41,3,0,32,2,173,124,55,3,0,32,2,32,3,106,65,32,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,200,0,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,32,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,41,3,0,32,4,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,3,32,6,55,3,0,32,0,65,16,106,34,3,41,3,0,32,4,65,8,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,3,32,6,55,3,0,32,0,65,24,106,34,3,41,3,0,32,4,65,16,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,3,32,6,55,3,0,32,0,65,32,106,34,3,41,3,0,32,4,65,24,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,3,32,6,55,3,0,32,0,65,200,0,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,65,32,106,32,5,77,4,64,32,5,65,32,107,33,2,32,0,65,8,106,41,3,0,33,6,32,0,65,16,106,41,3,0,33,7,32,0,65,24,106,41,3,0,33,8,32,0,65,32,106,41,3,0,33,9,3,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,6,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,7,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,7,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,8,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,8,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,9,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,9,32,1,65,8,106,34,1,32,2,77,13,0,11,32,0,65,8,106,32,6,55,3,0,32,0,65,16,106,32,7,55,3,0,32,0,65,24,106,32,8,55,3,0,32,0,65,32,106,32,9,55,3,0,11,32,1,32,5,73,4,64,32,4,32,1,32,5,32,1,107,34,1,252,10,0,0,32,0,65,200,0,106,32,1,54,2,0,11,11,200,2,1,5,126,32,0,65,24,106,41,3,0,33,1,32,0,41,3,0,34,2,66,32,90,4,126,32,0,65,8,106,41,3,0,34,3,66,1,137,32,0,65,16,106,41,3,0,34,4,66,7,137,124,32,1,66,12,137,32,0,65,32,106,41,3,0,34,5,66,18,137,124,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,4,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,1,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,5,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,5,32,1,66,197,207,217,178,241,229,186,234,39,124,11,32,2,124,32,0,65,40,106,32,2,66,31,131,167,16,6,11]);async function $4e(){let{instance:{exports:{mem:e,xxh32:t,xxh64:r,init32:n,update32:i,digest32:s,init64:a,update64:o,digest64:u}}}=await WebAssembly.instantiate(uNr),l=new Uint8Array(e.buffer);function c(E,S){if(e.buffer.byteLength(l.set(P),D(A(0)))}}function h(E){return E>>>0}let f=2n**64n-1n;function d(E){return E&f}let m=new TextEncoder,y=0n;function g(E){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return c(3*E.length,0),h(t(0,m.encodeInto(E,l).written,S))}function v(E){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y;return c(3*E.length,0),d(r(0,m.encodeInto(E,l).written,S))}return {h32:g,h32ToString(E){return g(E,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0).toString(16).padStart(8,"0")},h32Raw(E){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return c(E.byteLength,0),l.set(E),h(t(0,E.byteLength,S))},create32(){return p(48,arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n,i,s,h)},h64:v,h64ToString(E){return v(E,arguments.length>1&&arguments[1]!==void 0?arguments[1]:y).toString(16).padStart(16,"0")},h64Raw(E){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y;return c(E.byteLength,0),l.set(E),d(r(0,E.byteLength,S))},create64(){return p(88,arguments.length>0&&arguments[0]!==void 0?arguments[0]:y,a,o,u,d)}}}var pNr=(e,t,r)=>{let n=e.length;return new Promise((i,s)=>{let a=(u,l)=>{let c=BigInt(0);fs$1.close(u,p=>{p?s(p):i(c.toString(16).padStart(16,"0"));}),c=l();},o=(u,l)=>{fs$1.read(u,e,0,n,-1,(c,p)=>{if(c)return fs$1.close(u,()=>s(c));p===n?(l.update(e),o(u,l)):(l.update(e.subarray(0,p)),a(u,()=>l.digest()));});};fs$1.open(t,"r",(u,l)=>{if(u)return s(u);fs$1.read(l,e,0,n,-1,(c,p)=>{if(c)return fs$1.close(l,()=>s(c));if(pr.h64Raw(e.subarray(0,p)));else {let h=r.create64();h.update(e),o(l,h);}});});})},W4e=async(e,t,r)=>{let n=(0, Y4e.default)(r),i=await $4e(),s=e.map(o=>[Buffer.allocUnsafe(64*1024),o]),a=await Promise.all(s.map(([o,u])=>n(async()=>[u,await pNr(o,ux__namespace.default.join(t,u),i)])));return Object.fromEntries(a)};var XN=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),zN=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var fNr=(e,t)=>{if(!t)return "";if(t.includes("npm run "))return (0, zN.dedent)(XN.default` It appears you're using {bold "npm run"} which is known to cause this problem. You can fix this by invoking {bold build-storybook} from your {bold "${e}"} script directly. `);let r=/(^| )build-storybook( |;|&&)/.test(t),n=/build-storybook.*(&&|;)/.test(t);return r&&n?(0, zN.dedent)(XN.default` This happens if {bold build-storybook} is not the last command in the script (e.g. you're using {bold &&} or {bold ;} to chain commands). You should use an npm {bold post*} script instead of command chaining. `):""},X4e=({sourceDir:e,options:t,packageJson:r},n)=>{let{buildScriptName:i}=t,s=r.scripts&&i&&r.scripts[i];return (0, zN.dedent)(XN.default` ${chunkF6FLWRPJ_js.G} {bold Unexpected build directory} The CLI tried to build your Storybook at {bold ${e}} but instead it was built at {bold ${n}} Make sure your {bold "${i}"} script forwards the {bold --output-dir (-o)} flag to the {bold build-storybook} CLI. ${fNr(i,s)} `).trim()};var JN=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H());var z4e=e=>({status:"initial",title:`Prepare your built ${Jt(e)}`}),J4e=e=>({status:"pending",title:`Prepare your built ${Jt(e)}`,output:`Validating ${Jt(e)} files`}),QN=(e,t)=>{let r=`Invalid ${Jt(e)} build at ${e.sourceDir}`;return e.buildLogFile&&(r+=" (check the build log)"),t&&(r+=`: ${t.message}`),{status:"error",title:`Preparing your built ${Jt(e)}`,output:r}},Q4e=e=>{var n;let t=(0, JN.default)("file",(n=e.git.changedFiles)==null?void 0:n.length,!0);return {status:"pending",title:`Retrieving ${En(e.options)?"test":"story"} files affected by recent changes`,output:`Traversing dependencies for ${t} that changed since the last build`}},Z4e=e=>{var p;let{changedPackageFiles:t,changedStorybookFiles:r,changedStaticFiles:n}=((p=e.turboSnap)==null?void 0:p.bailReason)||{},i=t||r||n,a=(i==null?void 0:i.every(h=>chunkHZVCNUTP_js.$(h)))?"dependency ":"",[o,...u]=i||[],l=(0, JN.default)("sibling",u.length,!0),c=`Found a ${a}change in ${o}`;return u.length===1&&(c+=" or its sibling"),u.length>1&&(c+=` or one of its ${l}`),{status:"pending",title:"TurboSnap disabled",output:c}},e5e=e=>{var n;let t=En(e.options)?"test":"story",r=(0, JN.default)(`${t} file`,(n=e.onlyStoryFiles)==null?void 0:n.length,!0);return {status:"pending",title:`Retrieved ${t} files affected by recent changes`,output:`Found ${r} affected by recent changes`}},t5e=e=>({status:"pending",title:`Prepare your built ${Jt(e)}`,output:"Calculating file hashes"}),r5e=e=>({status:"success",title:"Preparation complete",output:`${Jt(e)} files validated and prepared for upload`});var yNr=/([$()*+?[\]^])/g;function s5e(e,t,r="."){if(r===".chromatic")return [];try{return fs$1.readdirSync(ux__namespace.default.join(t,r)).flatMap(n=>{let i=ux__namespace.default.join(r,n),s=fs$1.statSync(ux__namespace.default.join(t,i));return s.isDirectory()?s5e(e,t,i):[{pathname:i,contentLength:s.size}]})}catch(n){throw e.log.debug(n),new Error(QN({...e,sourceDir:t},n).output)}}function gNr(e){let t="Output directory: ",r=e.lastIndexOf(t);if(r===-1)return;let n=e.slice(r+t.length),i=n.indexOf(` `);return (i===-1?n:n.slice(0,i)).trim()}function n5e(e,t){let r=s5e(e,t).map(a=>({...a,knownAs:(0, i5e.default)(a.pathname)})),n=r.map(({contentLength:a})=>a).reduce((a,o)=>a+o,0),i=[],s="";for(let{knownAs:a}of r)a.endsWith("preview-stats.json")?s=ux__namespace.default.join(t,a):a.endsWith("manager-stats.json")||i.push(a);return {lengths:r,paths:i,statsPath:s,total:n}}var SNr=({paths:e,total:t})=>t>0&&e.includes("iframe.html")&&e.includes("index.html"),TNr=({paths:e,total:t})=>{let r=e.some(i=>i.endsWith(".apk")),n=e.includes("manifest.json");return t>0&&r&&n};async function ENr(e){let t=e.isReactNativeApp?TNr:SNr;if(e.fileInfo=n5e(e,e.sourceDir),!t(e.fileInfo)&&e.buildLogFile)try{let r=fs$1.readFileSync(e.buildLogFile,"utf8"),n=gNr(r);n&&n!==e.sourceDir&&(e.log.warn(X4e(e,n)),e.sourceDir=n,e.fileInfo=n5e(e,e.sourceDir));}catch(r){e.log.debug(r);}if(!t(e.fileInfo))throw new Error(QN(e).output)}async function bNr(e,t){var i,s;if(!e.turboSnap||e.turboSnap.unavailable||!e.git.changedFiles)return;if(!((i=e.fileInfo)!=null&&i.statsPath)){let a=((s=e.storybook)==null?void 0:s.version)&&K$.default.gte(K$.default.coerce(e.storybook.version)||"0.0.0","8.0.0");throw e.turboSnap.bailReason={missingStatsFile:!0},new Error(chunkHZVCNUTP_js.da({legacy:!a}))}St(Q4e)(e,t);let{statsPath:r}=e.fileInfo,{changedFiles:n}=e.git;try{let a=await chunkHZVCNUTP_js.ia(e);a?(e.onlyStoryFiles=Object.keys(a).map(o=>o.replaceAll(yNr,String.raw`\$1`)),e.options.interactive||(e.options.traceChanged||e.log.info(`Found affected story files: ${Object.entries(a).flatMap(([o,u])=>u.map(l=>` ${l} [${o}]`)).join(` `)}`),e.untracedFiles&&e.untracedFiles.length>0&&e.log.info(`Encountered ${e.untracedFiles.length} untraced files: ${e.untracedFiles.map(o=>` ${o}`).join(` `)}`)),St(e5e)(e,t)):St(Z4e)(e,t);}catch(a){throw e.options.interactive||e.log.info("Failed to retrieve dependent story files",{statsPath:r,changedFiles:n,err:a}),chunkHZVCNUTP_js.Z(a,`Could not retrieve dependent story files. ${a.message}`)}}async function vNr(e,t){if(!(e.skip||!e.options.fileHashing)){St(t5e)(e,t);try{if(!e.fileInfo)throw new Error(QN(e).output);let r=Date.now();e.fileInfo.hashes=await W4e(e.fileInfo.paths,e.sourceDir,e.env.CHROMATIC_HASH_CONCURRENCY),e.log.debug(`Calculated file hashes in ${Date.now()-r}ms`);}catch(r){e.log.warn("Failed to calculate file hashes"),e.log.debug(r);}}}function Y$(e){return Fn({name:"prepare",title:z4e(e).title,skip:t=>!!t.skip,steps:[St(J4e),ENr,bNr,vNr,St(r5e,!0)]})}var a5e=chunkTKGT252T_js.e(ow()),_Nr=e=>new Promise((t,r)=>{var a,o;let n="",i="",s=(0, a5e.spawn)(["install"],e);(a=s.stdout)==null||a.on("data",u=>{n+=u;}),(o=s.stderr)==null||o.on("data",u=>{i+=u;}),s.on("error",r),s.on("close",u=>{u===0?t(n):r(i);});}),eR=_Nr;var o5e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),u5e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var xNr="https://www.chromatic.com/docs/branching-and-baselines#how-is-merge-base-calculated",l5e=({patchHeadRef:e,patchBaseRef:t})=>(0, u5e.dedent)(o5e.default` ${chunkF6FLWRPJ_js.H} {bold Failed to retrieve the merge base} Are you sure the head branch is a descendant (i.e. fork) of the base branch? Try running this command yourself: {bold git merge-base ${e} ${t}} ${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f(xNr)} `);var c5e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),p5e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var f5e=()=>(0, p5e.dedent)(c5e.default` ${chunkF6FLWRPJ_js.H} {bold Workspace not clean} The git working directory must be clean before running a patch build. Use {bold git stash --include-untracked --keep-index} to stash changes before you continue. `);var h5e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C());var d5e=e=>h5e.default`${chunkF6FLWRPJ_js.H} {bold Workspace not up-to-date with remote}\n${e}`;var m5e={status:"initial",title:"Prepare workspace"},y5e=()=>({status:"pending",title:"Preparing your workspace",output:"Ensuring your git workspace is clean and up-to-date"}),g5e=e=>({status:"pending",title:"Preparing your workspace",output:`Looking up the git merge base for '${e.options.patchHeadRef}' on '${e.options.patchBaseRef}'`}),S5e=e=>{var t;return {status:"pending",title:"Preparing your workspace",output:`Checking out merge base commit '${(t=e.mergeBase)==null?void 0:t.slice(0,7)}'`}},T5e=()=>({status:"pending",title:"Preparing your workspace",output:"Installing dependencies"}),E5e=e=>{var t;return {status:"success",title:"Prepared your workspace",output:`Checked out commit '${(t=e.mergeBase)==null?void 0:t.slice(0,7)}' on '${e.options.patchBaseRef}'`}};var b5e={status:"initial",title:"Restore workspace"},v5e=()=>({status:"pending",title:"Restoring your workspace",output:"Discarding changes and restoring head location"}),_5e=()=>({status:"success",title:"Restored your workspace"});var W$=async e=>{await chunkHZVCNUTP_js.w(e),await chunkHZVCNUTP_js.v(e),await eR(),await chunkHZVCNUTP_js.w(e);};Fn({name:"restoreWorkspace",title:b5e.title,steps:[St(v5e),W$,St(_5e,!0)]});var ANr=async(e,t)=>{let{patchHeadRef:r,patchBaseRef:n}=e.options;if(!await chunkHZVCNUTP_js.r(e))throw chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.GIT_NOT_CLEAN,!0),e.log.error(f5e()),new Error("Working directory is not clean");if(!await chunkHZVCNUTP_js.q(e))throw chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.GIT_OUT_OF_DATE,!0),e.log.error(d5e(await chunkHZVCNUTP_js.s(e))),new Error("Workspace not up-to-date with remote");if(St(g5e)(e,t),e.mergeBase=await chunkHZVCNUTP_js.t(e,r,n),!e.mergeBase)throw chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.GIT_NO_MERGE_BASE,!0),e.log.error(l5e(e.options)),new Error("Could not find a merge base");St(S5e)(e,t),await chunkHZVCNUTP_js.u(e,e.mergeBase);try{St(T5e)(e,t),await eR();}catch(i){throw e.mergeBase=void 0,chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.NPM_INSTALL_FAILED),e.log.error(i),await W$(e),new Error("Failed to install dependencies")}};Fn({name:"prepareWorkspace",title:m5e.title,steps:[St(y5e),ANr,St(E5e,!0)]});var pK=chunkTKGT252T_js.e(f8e());var h8e={status:"initial",title:"Generate build report"},d8e=()=>({status:"pending",title:"Generating build report",output:"Collecting build information"}),m8e=e=>({status:"success",title:"Generated build report",output:`View report at ${e.reportPath}`});var CRr=` query ReportQuery($buildNumber: Int!, $skip: Int, $limit: Int) { app { build(number: $buildNumber) { number status(legacy: false) storybookUrl webUrl createdAt completedAt tests(skip: $skip, limit: $limit) { status result spec { name component { name displayName } } parameters { viewport viewportIsDefault } mode { name } } } } } `,wRr=async e=>{let{log:t}=e,{junitReport:r}=e.options,{number:n}=e.build,i=typeof r=="boolean"&&r?"chromatic-build-{buildNumber}.xml":r;if(!i){t.debug("junit report not configured, skipping");return}e.reportPath=ux__namespace.default.resolve(i.replaceAll("{buildNumber}",String(n)));let s=await IRr(e),a=(s.completedAt||Date.now())-s.createdAt,o=pK.default.testSuite().name(`Chromatic build ${s.number}`).time(Math.round(a/1e3)).timestamp(new Date(s.createdAt).toISOString()).property("buildNumber",s.number).property("buildStatus",s.status).property("buildUrl",s.webUrl).property("storybookUrl",s.storybookUrl);for(let u of s.tests)ORr(o,u);pK.default.writeTo(e.reportPath),t.info(xN(e.reportPath,"JUnit XML"));},IRr=async e=>{let r=0,n=[];for(;;){let{app:{build:i}}=await e.client.runQuery(CRr,{buildNumber:e.build.number,skip:r,limit:1e3},{headers:{Authorization:`Bearer ${e.build.reportToken}`}});if(n.push(...i.tests),i.tests.length<1e3)return {...i,tests:n};r+=1e3;}},ORr=(e,t)=>{let{status:r,result:n,spec:i,parameters:s,mode:a}=t,o=a.name||`[${s.viewport}px]`,u=s.viewportIsDefault?"":o,l=e.testCase().className(i.component.name.replaceAll(/[/|]/g,"."));switch(l.property("result",r).name(`${i.name} ${u}`),r){case"FAILED":l.error("Server error while taking snapshot, please try again",r);break;case"BROKEN":l.error("Snapshot is broken due to an error in your Storybook",r);break;case"DENIED":l.failure("Snapshot was denied by a user",r);break;case"PENDING":l.failure("Snapshot contains visual changes and must be reviewed",r);break;default:["SKIPPED","PRESERVED"].includes(n)&&l.skipped();}};function fK(e){return Fn({name:"report",title:h8e.title,skip:t=>t.skip,steps:[St(d8e),wRr,St(m8e,!0)]})}chunkTKGT252T_js.e(c9e(),1);chunkTKGT252T_js.e(_K(),1);chunkTKGT252T_js.e(PK(),1);var E9e=chunkTKGT252T_js.e(NR(),1);chunkTKGT252T_js.e(T9e(),1);var b9e=E9e.default;var v9e=1e3,ZMr=1006,_9e="Build complete",eLr=at.object({completedAt:at.number().positive().optional(),inProgressCount:at.number().min(0),status:at.string()}),wu=class extends Error{constructor(r,n,i,s){super(r);this.statusCode=n;this.reason=i;this.originalError=s;this.name="NotifyServiceError";}},ZT=class extends wu{constructor(t,r,n,i){super(t,r,n,i),this.name="NotifyConnectionError";}},Ix=class extends wu{constructor(t,r,n,i){super(t,r,n,i),this.name="NotifyServiceMessageTimeoutError";}},Ch=class extends wu{constructor(t,r,n,i){super(t,r,n,i),this.name="NotifyServiceAuthenticationError";}};async function MK({notifyServiceUrl:e,buildId:t,progressMessageCallback:r,log:n,headers:i}){let s=`${e}/build/${t}`,a=new b9e(s,{handshakeTimeout:4e3,headers:i});return await new Promise((o,u)=>{a.on("open",()=>{n.debug(`notify service handshake successful at ${s}`);}),a.on("unexpected-response",(l,c)=>{let p=c.statusCode;switch(n.debug(`notify service unexpected response: ${p}`),p){case 400:u(new Ch("Invalid build ID",p));break;case 401:u(new Ch("Unauthorized request",p));break;case 403:u(new Ch("Access denied to build",p));break;case 404:u(new Ch("Build not found",p));break;default:u(new wu("Unexpected response from notify service",p));}}),a.on("close",(l,c)=>{let p=c.toString();n.debug(`notify service connection closed with code ${l}: ${p}`),l===v9e&&p===_9e&&o(),c.toString().includes("408 Request Timeout")&&u(new Ix("Timed out waiting for message from notify service",408,c.toString())),l===ZMr&&u(new ZT("Failed to connect to notify service",l,p)),u(new wu("Notify service connection closed unexpectedly",l,p));}),a.on("error",l=>{let c=l.code;(c==="ECONNREFUSED"||c==="ENOTFOUND"||c==="ETIMEDOUT"||c==="HPE_INVALID_CONSTANT"||l.message&&l.message.includes("Opening handshake has timed out"))&&u(new ZT("Failed to connect to notify service",c,void 0,l)),u(new wu("Notify service error occurred",c,void 0,l));}),a.on("message",l=>{try{let c=eLr.parse(JSON.parse(l.toString()));r&&r(c),c.completedAt&&(n.debug("notify service: build complete"),a.close(v9e,_9e),o());}catch(c){u(new wu("Unexpected error handling notify service message",void 0,void 0,c));}});})}var MR=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),LK=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H()),x9e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var A9e=({build:e,exitCode:t,isOnboarding:r})=>{let n=r?e.app.setupUrl:e.webUrl,i=[];return e.changeCount>0&&i.push(MR.default`${chunkF6FLWRPJ_js.H} {bold Found ${(0, LK.default)("visual changes",e.changeCount,!0)}}`),e.accessibilityChangeCount>0&&i.push(MR.default`${chunkF6FLWRPJ_js.H} {bold Found ${(0, LK.default)("accessibility changes",e.accessibilityChangeCount,!0)}}`),(0, x9e.dedent)(MR.default` ${i.join(` `)} Review the changes at ${chunkHZVCNUTP_js.f(n)} ${chunkF6FLWRPJ_js.E} For CI/CD use cases, this command failed with exit code ${t} Pass {bold --exit-zero-on-changes} to succeed this command regardless of changes. Pass {bold --auto-accept-changes} to succeed and automatically accept any changes. `)};var P9e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),LR=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H()),C9e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var w9e=({build:e,exitCode:t,isOnboarding:r})=>{let{errorCount:n,interactionTestFailuresCount:i,webUrl:s}=e,a=i>0,o=n-i>0,u=(0, LR.default)("failed test",i,!0),l;return a&&o?l=`Encountered ${(0, LR.default)("build error",n-i,!0)} and ${u}`:a?l=`Encountered ${u}`:l=`Encountered ${(0, LR.default)("build error",n,!0)}`,(0, C9e.dedent)(P9e.default` ${chunkF6FLWRPJ_js.H} {bold ${l}}: failing with exit code ${t} ${chunkF6FLWRPJ_js.E} Review the errors at ${chunkHZVCNUTP_js.f(r?e.app.setupUrl:s)} `)};var kR=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Ox=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H()),FR=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var Ll=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H());var kK=e=>En(e.options)?"test suite":"stories",I9e=e=>({status:"initial",title:`Test your ${kK(e)}`}),O9e=e=>({status:"skipped",title:`Test your ${kK(e)}`,output:"Skipped due to --dry-run"}),wh=({build:e})=>({tests:(0, Ll.default)("test",e.actualTestCount,!0),errors:(0, Ll.default)("component error",e.errorCount,!0),e2eErrors:(0, Ll.default)("test error",e.errorCount,!0),changes:(0, Ll.default)("change",e.changeCount,!0),stories:(0, Ll.default)("story",e.specCount,!0),e2eTests:(0, Ll.default)("test",e.specCount,!0),components:(0, Ll.default)("component",e.componentCount,!0),skips:(0, Ll.default)("test",e.testCount-e.actualTestCount,!0),snapshots:(0, Ll.default)("snapshot",e.actualCaptureCount,!0)}),FK=(e,{cursor:t=0,label:r=""}={})=>{let{build:n,options:i,onlyStoryFiles:s}=e;if(n.actualTestCount===0)return {status:"pending",title:"Finalizing build",output:s?"All tests skipped":"No tests run"};let{errors:a,e2eErrors:o,tests:u,skips:l}=wh(e),c=i.onlyStoryNames?` for stories matching ${i.onlyStoryNames.map(y=>`'${y}'`).join(", ")}`:"",p=s?" affected by recent changes":"",h=n.testCount>n.actualTestCount?` (skipping ${l})`:"",f=Math.round(t/n.actualTestCount*100),d=`${t}/${n.actualTestCount}`,m="";return n.errorCount&&(m=En(e.options)?`(${o}) `:`(${a}) `),{status:"pending",title:`Running ${u}${c}${p}${h}`,output:t?`${chunkHZVCNUTP_js.X(f)} ${d} ${m} ${r}`:"This may take a few minutes"}},D9e=e=>{let{snapshots:t,components:r,stories:n,e2eTests:i}=wh(e),s=En(e.options)?`Tested ${i}; captured ${t} in ${Dl(e)}`:`Tested ${n} across ${r}; captured ${t} in ${Dl(e)}`;return {status:"success",title:`Build ${e.build.number} passed!`,output:s}},N9e=e=>{let{snapshots:t,components:r,stories:n,e2eTests:i}=wh(e),s=En(e.options)?`Tested ${i}; captured ${t} in ${Dl(e)}`:`Tested ${n} across ${r}; captured ${t} in ${Dl(e)}`;return {status:"success",title:e.build.autoAcceptChanges?`Build ${e.build.number} auto-accepted`:`Build ${e.build.number} completed`,output:s}},R9e=e=>{let{snapshots:t,components:r,stories:n,e2eTests:i,errors:s,e2eErrors:a}=wh(e),o=En(e.options)?`Tested ${i}; captured ${t} and found ${a}`:`Tested ${n} across ${r}; captured ${t} and found ${s}`;return {status:"error",title:`Build ${e.build.number} failed after ${Dl(e)}`,output:o}},M9e=e=>({status:"error",title:`Build ${e.build.number} failed due to system error`,output:"Please try again, or contact us if the problem persists"}),L9e=e=>({status:"error",title:`Build ${e.build.number} canceled`,output:"Someone canceled the build before it completed"}),k9e=e=>({status:"skipped",title:`Test your ${kK(e)}`,output:e.isPublishOnly?"No UI tests or UI review enabled":`Skipped due to ${e.options.list?"--list":"--exit-once-uploaded"}`});var BK=e=>{let{snapshots:t,components:r,stories:n,e2eTests:i}=wh({build:e.build}),s=(e.build.changeCount||0)+(e.build.accessibilityChangeCount||0);if(e.isOnboarding){let o=En(e.options)?`We found ${i} and took ${t}.`:`We found ${r} with ${n} and took ${t}.`;return (0, FR.dedent)(kR.default` ${chunkF6FLWRPJ_js.F} {bold Build passed. Welcome to Chromatic!} ${o} ${chunkF6FLWRPJ_js.E} Please continue setup at ${chunkHZVCNUTP_js.f(e.build.app.setupUrl)} `)}let a=[];return e.build.changeCount>0&&a.push((0, Ox.default)("visual changes",e.build.changeCount,!0)),e.build.accessibilityChangeCount>0&&a.push((0, Ox.default)("accessibility changes",e.build.accessibilityChangeCount,!0)),e.build.autoAcceptChanges&&s>0?(0, FR.dedent)(kR.default` ${chunkF6FLWRPJ_js.F} {bold Build ${e.build.number} passed!} Auto-accepted ${(0, Ox.default)("changes",s,!0)}. ${chunkF6FLWRPJ_js.E} View build details at ${chunkHZVCNUTP_js.f(e.build.webUrl)} `):(0, FR.dedent)(kR.default` ${chunkF6FLWRPJ_js.F} {bold Build ${e.build.number} passed!} ${s>0?a.join(" and "):"No changes"} ${(0, Ox.default)("was",s,!1)} found in this build. ${chunkF6FLWRPJ_js.E} View build details at ${chunkHZVCNUTP_js.f(e.build.webUrl)} `)};var F9e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),B9e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var tLr={github:"GitHub",gitlab:"GitLab",bitbucket:"Bitbucket"},j9e=e=>(0, B9e.dedent)(F9e.default` ${chunkF6FLWRPJ_js.E} {bold Speed up Continuous Integration} Your project is linked to ${tLr[e]} so Chromatic will report results there. This means you can add the option \`with: exitOnceUploaded: true\` to your workflow to skip waiting for build results. Read more here: ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/configure/")} `);var rLr=` query SnapshotBuildQuery($number: Int!) { app { build(number: $number) { id status(legacy: false) autoAcceptChanges inProgressCount: testCount(statuses: [IN_PROGRESS]) testCount changeCount errorCount: testCount(statuses: [BROKEN]) completedAt } } } `,nLr=async(e,t)=>{var y,g,v,E;let{client:r,log:n,uploadedBytes:i}=e,{app:s,number:a,tests:o,testCount:u,actualTestCount:l,reportToken:c}=e.build;s.repository&&i&&!e.options.junitReport&&n.info(j9e(s.repository.provider));let p=e.options.interactive&&u===l&&(o==null?void 0:o.map(({spec:S,parameters:x,mode:b})=>{let A=b.name||`[${x.viewport}px]`,D=x.viewportIsDefault?"":A;return `${S.component.displayName} \u203A ${S.name} ${D}`})),h=chunkHZVCNUTP_js.W(({cursor:S,label:x})=>{var b,A;t.output=FK(e,{cursor:S,label:x}).output,(A=(b=e.options).experimental_onTaskProgress)==null||A.call(b,{...e},{progress:S,total:l,unit:"snapshots"});},e.options.interactive?e.env.CHROMATIC_POLL_INTERVAL:e.env.CHROMATIC_OUTPUT_INTERVAL),f=S=>{if(l>0){let{inProgressCount:x=0}=S,b=l-x+1,A=p&&p[b-1]||"";h({cursor:b,label:A});}},d=async()=>{let S={headers:{Authorization:`Bearer ${c}`}},x=await r.runQuery(rLr,{number:a},S);return e.build={...e.build,...x.app.build},e.build.completedAt?e.build:(f(e.build),await chunkHZVCNUTP_js.V(e.env.CHROMATIC_POLL_INTERVAL),d())};l>0&&await iLr(e,f,c);let m=await d();switch(m.status){case"PASSED":chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.OK),e.log.info(BK(e)),St(D9e,!0)(e,t);break;case"ACCEPTED":case"PENDING":case"DENIED":{m.autoAcceptChanges||((y=e.options)==null?void 0:y.exitZeroOnChanges)==="true"||(E=(v=e.git).matchesBranch)!=null&&E.call(v,((g=e.options)==null?void 0:g.exitZeroOnChanges)||!1)?(chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.OK),e.log.info(BK(e))):(chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.BUILD_HAS_CHANGES,!0),e.log.error(A9e(e))),St(N9e,!0)(e,t);break}case"BROKEN":chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.BUILD_HAS_ERRORS,!0),e.log.error(w9e(e)),St(R9e,!0)(e,t);break;case"FAILED":chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.BUILD_FAILED,!1),St(M9e,!0)(e,t);break;case"CANCELLED":chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.BUILD_WAS_CANCELED,!0),St(L9e,!0)(e,t);break;default:throw new Error(`Unexpected build status: ${m.status}`)}};async function iLr(e,t,r){var n,i;try{await MK({notifyServiceUrl:e.env.CHROMATIC_NOTIFY_SERVICE_URL,buildId:e.build.id,progressMessageCallback:t,log:e.log,headers:{Authorization:`Bearer ${r}`}});}catch(s){ps(s),s instanceof ZT?e.log.debug(`Failed to connect to notify service, falling back to polling: code: ${s.statusCode}, original error: ${(n=s.originalError)==null?void 0:n.message}`):s instanceof Ix?e.log.debug("Timed out waiting for message from notify service, falling back to polling"):s instanceof Ch?e.log.debug(`Error authenticating with notify service: ${s.statusCode} ${s.message}`):s instanceof wu?e.log.debug(`Error getting updates from notify service: ${s.message} code: ${s.statusCode}, reason: ${s.reason}, original error: ${(i=s.originalError)==null?void 0:i.message}`):e.log.error(`Unexpected error from notify service: ${s.message}`);}}function jK(e){return Fn({name:"snapshot",title:I9e(e).title,skip:t=>t.skip?!0:t.skipSnapshots?k9e(t).output:t.options.dryRun?O9e(t).output:!1,steps:[St(FK),nLr]})}function q9e(e){let{storybookBaseDir:t}=e.options||{};if(t)return t;let{rootPath:r}=e.git||{};return r?chunkHZVCNUTP_js.ga(ux__namespace.default.join(".",ux__namespace.default.relative(r,""))):"."}var G9e=chunkTKGT252T_js.e(chunkIM5VGDJQ_js.a());var V9e=chunkTKGT252T_js.e(chunkLTE3MQL2_js.d());var sLr=e=>{var s;let{builder:t,storybookPackages:r,storybookVersion:n}=e,i=typeof t=="string"?t:t==null?void 0:t.name;return i?{name:i,packageVersion:(s=r==null?void 0:r[O_[i]])==null?void 0:s.version}:{name:"webpack4",packageVersion:n}},H9e=async e=>{let t=await(0, V9e.readFile)(e),r=Object.keys(Qc).find(s=>Qc[s]===t.framework.name||s===t.framework.name),n=sLr(t);return {version:t.storybookPackages&&r?t.storybookPackages[r].version:"",builder:n}};async function UK(e){try{if(e.options.storybookBuildDir){let t=ux__namespace.default.resolve(e.options.storybookBuildDir,"project.json");if((0,G9e.pathExistsSync)(t))return await H9e(t)}return await LLe(e)}catch(t){return e.log.debug(t),{}}}var oLr=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),uLr=e=>e.options.playwright?"Playwright for E2E":e.options.cypress?"Cypress for E2E":"E2E",lLr=e=>{if(En(e.options))return uLr(e);let{addons:t,version:r,builder:n}=e.storybook,i=r?`Storybook ${r}`:"",s=n?`${i}; using the ${n.name} builder (${n.packageVersion})`:i,a=t==null?void 0:t.filter(o=>o==null?void 0:o.name);return a!=null&&a.length?`${s}; supported addons found: ${a.map(o=>oLr(o.name)).join(", ")}`:`${s}; no supported addons found`},$9e=e=>({status:"initial",title:`Collect ${Jt(e)} metadata`}),K9e=e=>({status:"pending",title:`Collecting ${Jt(e)} metadata`}),Y9e=e=>({status:"success",title:`Collected ${Jt(e)} metadata`,output:lLr(e)});var cLr=async e=>{e.storybook={...await UK(e),baseDir:q9e(e)},e.storybook&&(e.storybook.version&&Bp("storybookVersion",e.storybook.version),Oy("storybook",e.storybook));};function qK(e){return Fn({name:"storybookInfo",title:$9e(e).title,skip:t=>t.skip,steps:[St(K9e),cLr,St(Y9e,!0)]})}var W9e=chunkTKGT252T_js.e(Ug()),pLr="OK";async function X9e(e,{name:t,url:r}){let{experimental_abortSignal:n}=e.options;return e.log.debug(`Waiting for '${t}' sentinel file to appear at ${r}`),(0, W9e.default)(async i=>{if(n!=null&&n.aborted)return i(n.reason||new Error("Aborted"));try{let a=await(await e.http.fetch(r,{signal:n},{retries:0,noLogErrorBody:!0})).text();if(a!==pLr)return e.log.debug(`Sentinel file '${t}' not OK, got '${a}'.`),i(new Error(`Sentinel file '${t}' not OK.`));e.log.debug(`Sentinel file '${t}' OK.`);}catch(s){let{message:a,response:o={}}=s;if(o.status===403)return i(new Error("Provided signature expired."));if(o.status===404)throw new Error(`Sentinel file '${t}' not present.`);return e.log.getLevel()==="debug"&&e.log.debug(await o.text()),i(new Error(a))}},{retries:185,minTimeout:1e3,maxTimeout:1e3})}var z9e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),J9e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var Q9e=()=>(0, J9e.dedent)(z9e.default` ${chunkF6FLWRPJ_js.H} Failed to finalize upload. Please check ${chunkHZVCNUTP_js.f("https://status.chromatic.com/")} or contact support. `);var VK=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H());var Z9e=e=>({status:"initial",title:`Publish your built ${Jt(e)}`}),eqe=e=>({status:"skipped",title:`Publish your built ${Jt(e)}`,output:"Skipped due to --dry-run"}),tqe=(e,t)=>{let r=`Invalid ${Jt(e)} build at ${e.sourceDir}`;return e.buildLogFile&&(r+=" (check the build log)"),t&&(r+=`: ${t.message}`),{status:"error",title:`Publishing your built ${Jt(e)}`,output:r}},rqe=e=>({status:"pending",title:`Publishing your built ${Jt(e)}`,output:"Starting publish"}),nqe=(e,{percentage:t})=>({status:"pending",title:`Publishing your built ${Jt(e)}`,output:`${chunkHZVCNUTP_js.X(t)} ${t}%`}),iqe=e=>({status:"pending",title:`Publishing your built ${Jt(e)}`,output:"Finalizing upload"}),sqe=e=>{var i;let t=(0, VK.default)("file",e.uploadedFiles,!0),r=_o(e.uploadedBytes||0),n=(i=e.fileInfo)!=null&&i.paths.length&&e.uploadedFiles&&e.fileInfo.paths.length>e.uploadedFiles?`, skipped ${(0, VK.default)("file",e.fileInfo.paths.length-e.uploadedFiles,!0)}`:"";return {status:"success",title:e.uploadedBytes?`Publish complete in ${Dl(e)}`:"Publish complete",output:e.uploadedBytes?`Uploaded ${t} (${r})${n}`:"No new files to upload"}},aqe=(e,{path:t})=>({status:"error",title:`Publishing your built ${Jt(e)}`,output:`Failed to upload ${t}`});var hLr=async(e,t)=>{var n;if(e.skip)return;let r=(n=e.fileInfo)==null?void 0:n.paths.map(i=>{var s,a,o;return {...((s=e.fileInfo)==null?void 0:s.hashes)&&{contentHash:e.fileInfo.hashes[i]},contentLength:((o=(a=e.fileInfo)==null?void 0:a.lengths.find(({knownAs:u})=>u===i))==null?void 0:o.contentLength)??-1,localPath:ux__namespace.default.join(e.sourceDir,i),targetPath:i}});if(!r)throw new Error(tqe(e).output);await x3e(e,r,{onProgress:chunkHZVCNUTP_js.W((i,s)=>{var o,u;let a=Math.round(i/s*100);t.output=nqe(e,{percentage:a}).output,(u=(o=e.options).experimental_onTaskProgress)==null||u.call(o,{...e},{progress:i,total:s,unit:"bytes"});},e.options.interactive?100:e.env.CHROMATIC_OUTPUT_INTERVAL),onError:(i,s)=>{throw s===i.message?new Error(aqe(e,{path:s}).output):i}});},dLr=async(e,t)=>{var n;if(e.skip||!((n=e.sentinelUrls)!=null&&n.length))return;St(iqe)(e,t);let r=Object.fromEntries(e.sentinelUrls.map(i=>{let{host:s,pathname:a}=new URL(i);return [s+a,{name:a.split("/").at(-1)||"",url:i}]}));try{await Promise.all(Object.values(r).map(i=>X9e(e,i)));}catch(i){throw e.log.error(Q9e()),i}};function HK(e){return Fn({name:"upload",title:Z9e(e).title,skip:t=>t.skip?!0:t.options.dryRun?eqe(t).output:!1,steps:[St(rqe),hLr,dLr,St(sqe,!0)]})}var oqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),uqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var lqe=({failureReason:e,storybookUrl:t})=>`${(0, uqe.dedent)(oqe.default` ${chunkF6FLWRPJ_js.H} {bold Failed to extract stories from your Storybook} This is usually a problem with your published Storybook, not with Chromatic. Build and open your Storybook locally and check the browser console for errors. Visit your published Storybook at ${chunkHZVCNUTP_js.f(t)} The following error was encountered while running your Storybook: `)} ${e.trim()}`;var GK=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),cqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var mLr=({spec:e})=>GK.default`{dim → }${e.component.name}/${e.name}`,pqe=e=>(0, cqe.dedent)(GK.default` {bold Listing available stories:} ${e.map(t=>mLr(t)).join(` `)} ${chunkF6FLWRPJ_js.E} Use {bold --only-story-names} to run a build for a specific component or story. Globs are supported, for example: {bold --only-story-names "${e[0].spec.component.name}/**"} `);var $K=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),fqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var hqe=e=>{if(!e.storybookUrl)throw new Error("No Storybook URL provided");let t=[$K.default`${chunkF6FLWRPJ_js.F} {bold ${PN(Jt(e))} published}`];if(e.build.componentCount&&e.build.specCount){let{components:r,stories:n,e2eTests:i}=wh({build:e.build});t.push(En(e.options)?`We found ${i}.`:`We found ${r} with ${n}.`);}return t.push(`${chunkF6FLWRPJ_js.E} View your ${Jt(e)} at ${chunkHZVCNUTP_js.f(e.storybookUrl)}`),(0, fqe.dedent)($K.default`${t.join(` `)}`)};var KK=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),YK=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H()),WK=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var dqe=({build:e,options:t,skipSnapshots:r})=>{let n=(0, YK.default)("snapshot",e.actualCaptureCount,!0),i=(0, YK.default)("snapshot",e.inheritedCaptureCount,!0);return !t.interactive||r?(0, WK.dedent)(KK.default` ${chunkF6FLWRPJ_js.F} {bold TurboSnap enabled} Capturing ${n} and skipping ${i}. `):(0, WK.dedent)(KK.default` ${chunkF6FLWRPJ_js.F} {bold TurboSnap enabled} Captured ${n} and skipped ${i}. `)};var mqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),yqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var gqe=({billingUrl:e})=>(0, yqe.dedent)(mqe.default` ${chunkF6FLWRPJ_js.G} {bold Build limited} Visit ${chunkHZVCNUTP_js.f(e)} to verify your billing details. `);var Sqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Tqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var Eqe=({billingUrl:e})=>(0, Tqe.dedent)(Sqe.default` ${chunkF6FLWRPJ_js.G} {bold Payment required} This build is limited because your account has a payment past due. Visit ${chunkHZVCNUTP_js.f(e)} to update your billing details. `);var bqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),vqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var _qe=({billingUrl:e})=>(0, vqe.dedent)(bqe.default` ${chunkF6FLWRPJ_js.G} {bold Snapshot quota reached} This build is limited because your account is out of snapshots for the month. Visit ${chunkHZVCNUTP_js.f(e)} to upgrade your plan. `);var xqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Aqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var Pqe=({build:e})=>(0, Aqe.dedent)(xqe.default` ${chunkF6FLWRPJ_js.G} {bold TurboSnap not available for your account} To ensure your project is fully setup and baselines are properly established, TurboSnap is not available until at least 10 builds are created from CI. ${chunkF6FLWRPJ_js.E} Review your TurboSnap availability on the Manage screen: ${chunkHZVCNUTP_js.f(e.app.manageUrl)} `);var Cqe=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H());var wqe=e=>({status:"initial",title:`Verify your ${Jt(e)}`}),Iqe=e=>({status:"skipped",title:`Verify your ${Jt(e)}`,output:"Skipped due to --dry-run"}),Oqe=e=>({status:"pending",title:`Verifying your ${Jt(e)}`,output:"This may take a few minutes"}),XK=e=>({status:"error",title:`Verifying your ${Jt(e)}`,output:"Failed to publish build"}),Dqe=e=>{var t;return {status:"pending",title:"Starting partial build",output:e.options.onlyStoryFiles?`Snapshots will be limited to story files matching ${e.options.onlyStoryFiles.map(r=>`'${r}'`).join(", ")}`:`Snapshots will be limited to ${(t=e.onlyStoryFiles)==null?void 0:t.length} story files affected by recent changes`}},Nqe=e=>{var r;return {status:"pending",title:"Starting partial build",output:`Snapshots will be limited to ${En(e.options)?"tests":"stories"} matching ${(r=e.options.onlyStoryNames)==null?void 0:r.map(n=>`'${n}'`).join(", ")}`}},Rqe=(e,t)=>{let r=t.filter(i=>!i.completedAt).length,n=(0, Cqe.default)("upgrade build",t.length,!0);return {status:"pending",title:`Verifying your ${Jt(e)}`,output:`Waiting for ${r}/${n} to complete`}},Mqe=e=>({status:"success",title:e.isPublishOnly?`Published your ${Jt(e)}`:`Started build ${e.build.number}`,output:e.isOnboarding?`Continue setup at ${e.build.app.setupUrl}`:`View build details at ${e.build.webUrl}`});var yLr=` mutation PublishBuildMutation($id: ID!, $input: PublishBuildInput!) { publishBuild(id: $id, input: $input) { # no need for legacy:false on PublishedBuild.status status storybookUrl } } `,gLr=async e=>{let{turboSnap:t}=e,{id:r,reportToken:n}=e.announcedBuild,{replacementBuildIds:i}=e.git,{onlyStoryNames:s,onlyStoryFiles:a=e.onlyStoryFiles}=e.options,o,u="UNUSED";t&&(o=t.bailReason,u=t.bailReason?"BAILED":"APPLIED");let{publishBuild:l}=await e.client.runQuery(yLr,{id:r,input:{...a&&{onlyStoryFiles:a},...s&&{onlyStoryNames:[s].flat()},...i&&{replacementBuildIds:i},...o&&{turboSnapBailReason:o},turboSnapStatus:u}},{headers:{Authorization:`Bearer ${n}`},retries:3});if(e.announcedBuild={...e.announcedBuild,...l},e.storybookUrl=l.storybookUrl,l.status==="FAILED")throw chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.BUILD_FAILED,!1),new Error(XK(e).output)},SLr=` query StartedBuildQuery($number: Int!) { app { build(number: $number) { startedAt failureReason upgradeBuilds { completedAt } } } } `,TLr=` query VerifyBuildQuery($number: Int!) { app { build(number: $number) { id number status(legacy: false) specCount componentCount testCount changeCount errorCount: testCount(statuses: [BROKEN]) actualTestCount: testCount(statuses: [IN_PROGRESS]) actualCaptureCount inheritedCaptureCount interactionTestFailuresCount webUrl browsers { browser } features { uiTests uiReview isReactNativeApp } autoAcceptChanges turboSnapEnabled wasLimited app { manageUrl setupUrl account { exceededThreshold paymentRequired billingUrl } repository { provider } } tests { spec { name component { name displayName } } parameters { viewport viewportIsDefault } mode { name } } } } } `,ELr=async(e,t)=>{var l,c;let{client:r}=e,{list:n,onlyStoryNames:i,onlyStoryFiles:s=e.onlyStoryFiles}=e.options,{matchesBranch:a}=e.git;s&&St(Dqe)(e,t),i&&St(Nqe)(e,t);let o=Date.now(),u=async()=>{var v;let{storybookUrl:p}=e,{number:h,reportToken:f}=e.announcedBuild,d={number:h},m={headers:{Authorization:`Bearer ${f}`}},{app:{build:y}}=await r.runQuery(SLr,d,m);if(y.failureReason)throw e.log.warn(lqe({failureReason:y.failureReason,storybookUrl:p})),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.STORYBOOK_BROKEN,!0),new Error(XK(e).output);if(!y.startedAt){if((v=y.upgradeBuilds)!=null&&v.some(E=>!E.completedAt))t.output=Rqe(e,y.upgradeBuilds).output,o=Date.now()+e.env.CHROMATIC_POLL_INTERVAL;else if(Date.now()-o>e.env.STORYBOOK_VERIFY_TIMEOUT)throw chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.VERIFICATION_TIMEOUT),new Error("Build verification timed out");await chunkHZVCNUTP_js.V(e.env.CHROMATIC_POLL_INTERVAL),await u();return}let{app:{build:g}}=await r.runQuery(TLr,d,m);e.build={...e.announcedBuild,...e.build,...g};};if(await Promise.race([u(),new Promise((p,h)=>setTimeout(h,e.env.CHROMATIC_UPGRADE_TIMEOUT,new Error("Timed out waiting for upgrade builds to complete")))]),e.isPublishOnly=!((l=e.build.features)!=null&&l.uiReview)&&!((c=e.build.features)!=null&&c.uiTests),n&&e.build.tests&&e.log.info(pqe(e.build.tests)),e.turboSnap&&(e.turboSnap.unavailable?e.log.warn(Pqe(e)):e.build.turboSnapEnabled&&e.log.info(dqe(e))),e.build.wasLimited){let{account:p}=e.build.app;p!=null&&p.exceededThreshold?(e.log.warn(_qe(p)),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.ACCOUNT_QUOTA_REACHED,!0)):p!=null&&p.paymentRequired?(e.log.warn(Eqe(p)),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.ACCOUNT_PAYMENT_REQUIRED,!0)):(p&&e.log.warn(gqe(p)),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.BUILD_WAS_LIMITED,!0));}e.build&&e.storybookUrl&&e.log.info(hqe(e)),St(Mqe,!0)(e,t),(n||e.isPublishOnly||a!=null&&a(e.options.exitOnceUploaded))&&(chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.OK),e.skipSnapshots=!0);};function zK(e){return Fn({name:"verify",title:wqe(e).title,skip:t=>t.skip?!0:t.options.dryRun?Iqe(t).output:!1,steps:[St(Oqe),CN,gLr,ELr,jT]})}var JK=[u$,q$,qK,G$,l$,Y$,HK,zK,jK];function QK(e){let t=(e.options.patchHeadRef&&e.options.patchBaseRef,JK);return e.options.junitReport&&t.push(fK),t.map(r=>r(e))}var Lqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),kqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var Fqe=()=>(0, kqe.dedent)(Lqe.default` ${chunkF6FLWRPJ_js.H} {bold Build canceled} The build was canceled before it completed. `);var Dx=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Bqe=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H());var jqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());function Nx(e,t,r=new Date().toISOString()){var A,D;let{flags:n,extraOptions:i,configuration:s,sessionId:a,pkg:o,packageJson:u}=e,{scripts:l={}}=u,c=chunkHZVCNUTP_js.f(o.bugs.email),p=chunkHZVCNUTP_js.f(o.docs),h=[t].flat(),{git:f,storybook:d,runtimeMetadata:m,exitCode:y,exitCodeKey:g,announcedBuild:v,build:E=v,buildCommand:S}=e,x=chunkHZVCNUTP_js.ba({timestamp:r,sessionId:a,gitVersion:f==null?void 0:f.version,gitBranch:f==null?void 0:f.branch,gitSlug:f==null?void 0:f.slug,fromCI:f==null?void 0:f.fromCI,ciService:f==null?void 0:f.ciService,nodePlatform:process.platform,nodeVersion:process.versions.node,...m,packageName:o.name,packageVersion:o.version,...d?{storybook:d}:{},flags:n,...i&&{extraOptions:i},...s&&{configuration:s},..."options"in e&&((A=e.options)!=null&&A.isLocalBuild)?{isLocalBuild:e.options.isLocalBuild}:{},..."options"in e&&((D=e.options)!=null&&D.buildScriptName)?{buildScript:l[e.options.buildScriptName]}:{},...S&&{buildCommand:S},exitCode:y,exitCodeKey:g,errorType:h.map(P=>P.name).join(` `),errorMessage:chunkF6FLWRPJ_js.a(h[0].message.split(` `)[0].trim()),...E&&{build:bLr(E)}},"projectToken","reportToken","userToken"),b=h.map(P=>P.stack).filter(Boolean);return [h.map(P=>P.message).join(` `),b.length>0?Dx.default`{dim → View the full ${(0, Bqe.default)("stacktrace",b.length)} below}\n`:"",(0, jqe.dedent)(Dx.default` If you need help, please chat with us at ${p} for the fastest response. You can also email the team at ${c} if chat is not an option. Please provide us with the above CLI output and the following info: `),Dx.default`{bold ${JSON.stringify(x,void 0,2)}}`,b.length>0?Dx.default`\n{dim ${b.join(` `)}}`:""].join(` `)}function bLr({id:e,number:t,storybookUrl:r=void 0,webUrl:n=void 0}){return {id:e,number:t,...r&&{storybookUrl:r},...n&&{webUrl:n}}}var BR=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Uqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());function ZK({title:e},{error:t,response:r,statusCode:n}={}){let i=t?BR.default`\n{dim → ${t.message||t.toString()}}`:"",s=r&&r.statusText?` ${r.statusText}`:"",a=n?BR.default`\n{dim → Status: ${n}${s}}`:"";return (0, Uqe.dedent)(BR.default` ${chunkF6FLWRPJ_js.H} {bold Failed to ${chunkHZVCNUTP_js.U(e)}} Could not connect to the Chromatic API. Check your internet connection or try again later. Service status updates are provided at ${chunkHZVCNUTP_js.f("https://status.chromatic.com")} ${i}${a} `)}var eY=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),qqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var vLr=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`;function tY({title:e},{message:t,extensions:r}){let n=t?eY.default`\n{dim → ${r&&r.code?`${r.code}: ${t}`:t}}`:"";return (0, qqe.dedent)(eY.default` ${chunkF6FLWRPJ_js.H} {bold Failed to ${vLr(e)}} Error communicating with the Chromatic API. Check if your Chromatic client is up-to-date. Service status updates are provided at ${chunkHZVCNUTP_js.f("https://status.chromatic.com")} ${n} `)}var Vqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Hqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var Gqe=({options:e,buildLogFile:t})=>{let{buildScriptName:r}=e;return (0, Hqe.dedent)(Vqe.default` ${chunkF6FLWRPJ_js.H} {bold Cannot run a build with no stories} Your statically built Storybook exposes no stories. This indicates a problem with your Storybook. Here's what to do: - Check the build log at {bold ${t}} - Run {bold npm run ${r}} or {bold yarn ${r}} yourself and make sure it outputs a valid Storybook by opening the generated {bold index.html} in your browser. - Make sure you haven't accidently ignored all stories. See ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/disable-snapshots/")} for details. `)};var eE=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),jR=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H()),UR=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());function rY({runtimeErrors:e=[],runtimeWarnings:t=[]}){let r=[...e,...t].map(c=>c.message||c.toString()),n=[...e,...t].map(c=>c.stack).filter(Boolean),i=n.length>0?eE.default`\n{dim → View the full ${(0, jR.default)("stacktrace",n.length)} below}`:"",s=e.length,a=t.length,o=[s&&(0, jR.default)("runtime error",s,!0),s&&a&&"and",a&&(0, jR.default)("warning",a,!0)].filter(Boolean).join(" "),u=(0, UR.dedent)(eE.default` If you want to continue despite runtime errors, you can pass the {bold --allow-console-errors} flag, but this is not recommended.`),l=(0, UR.dedent)(eE.default` You should probably fix these warnings, but we'll continue anyway.`);return (0, UR.dedent)(eE.default` ${s?chunkF6FLWRPJ_js.H:chunkF6FLWRPJ_js.G} {bold Detected ${o} in your Storybook} ${r.join(` `)}${i} This is usually a problem with your Storybook, not with Chromatic. Run your Storybook locally and check your browser console for errors. ${s?u:l} ${n.length>0?eE.default`\n{dim ${n.join(` `)}}`:""} `)}var $qe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C());function nY({title:e},t){return [$qe.default`${chunkF6FLWRPJ_js.H} {bold Failed to ${_Lr(e)}}`,t.message].join(` `)}function _Lr(e){return `${e.charAt(0).toLowerCase()}${e.slice(1)}`}var Kqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Yqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D()),Wqe=({pkg:e})=>(0, Yqe.dedent)(Kqe.default` {bold Chromatic CLI v${e.version}} {dim ${e.docs}} `);var xLr=e=>"options"in e;async function S1n({argv:e=[],flags:t,options:r}){var p,h,f,d,m,y,g,v,E,S,x,b,A,D,P,V,X,oe,le,Be,be,Ee,Te;let n={...Tj(e),...t&&{flags:t},...r&&{extraOptions:r}},{sessionId:i=chunkHZVCNUTP_js.b(),env:s=fj(),log:a=chunkHZVCNUTP_js.E(n.flags,n.extraOptions)}=r||{},o=await chunkLAQIPRAO_js.e({cwd:process.cwd(),normalize:!1});o||(a.error(chunkLAQIPRAO_js.f()),process.exit(253));let{path:u,packageJson:l}=o,c={...n,packagePath:u,packageJson:l,env:s,log:a,sessionId:i};return await ALr(c),{code:c.exitCode,url:((p=c.build)==null?void 0:p.webUrl)??((h=c.rebuildForBuild)==null?void 0:h.webUrl),buildUrl:((f=c.build)==null?void 0:f.webUrl)??((d=c.rebuildForBuild)==null?void 0:d.webUrl),storybookUrl:((m=c.build)==null?void 0:m.storybookUrl)||c.storybookUrl,specCount:((y=c.build)==null?void 0:y.specCount)??((g=c.rebuildForBuild)==null?void 0:g.specCount),componentCount:((v=c.build)==null?void 0:v.componentCount)??((E=c.rebuildForBuild)==null?void 0:E.componentCount),testCount:((S=c.build)==null?void 0:S.testCount)??((x=c.rebuildForBuild)==null?void 0:x.testCount),changeCount:((b=c.build)==null?void 0:b.changeCount)??((A=c.rebuildForBuild)==null?void 0:A.changeCount),errorCount:((D=c.build)==null?void 0:D.errorCount)??((P=c.rebuildForBuild)==null?void 0:P.errorCount),interactionTestFailuresCount:((V=c.build)==null?void 0:V.interactionTestFailuresCount)??((X=c.rebuildForBuild)==null?void 0:X.interactionTestFailuresCount),actualTestCount:((oe=c.build)==null?void 0:oe.actualTestCount)??((le=c.rebuildForBuild)==null?void 0:le.actualTestCount),actualCaptureCount:((Be=c.build)==null?void 0:Be.actualCaptureCount)??((be=c.rebuildForBuild)==null?void 0:be.actualCaptureCount),inheritedCaptureCount:((Ee=c.build)==null?void 0:Ee.inheritedCaptureCount)??((Te=c.rebuildForBuild)==null?void 0:Te.inheritedCaptureCount)}}async function ALr(e){var r;e.log.info(""),e.log.info(Wqe(e)),e.log.info("");let t=n=>{var i,s;e.log.info(""),e.log.error(Nx(e,[n].flat())),(s=(i=e.extraOptions)==null?void 0:i.experimental_onTaskError)==null||s.call(i,e,{formattedError:Nx(e,[n].flat()),originalError:n}),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.INVALID_OPTIONS,!0);};try{e.http=new fd(e),e.client=new ab(e,`${e.env.CHROMATIC_INDEX_URL}/graphql`,{headers:{"x-chromatic-session-id":e.sessionId,"x-chromatic-cli-version":e.pkg.version,"apollographql-client-name":"chromatic-cli","apollographql-client-version":e.pkg.version},retries:3}),e.configuration=await pj(((r=e.extraOptions)==null?void 0:r.configFile)||e.flags.configFile);let n=gj(e);e.options=n,e.log.setLogFile(n.logFile),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.OK);}catch(n){return t(n)}if(!xLr(e))return t(new Error("Invalid context"));await Promise.all([PLr(e),z3(e)]).catch(n=>{ps(n),t(n);}),!En(e.options)&&[0,1].includes(e.exitCode)&&await Z3(e),e.options.diagnosticsFile&&await O3e(e),e.options.uploadMetadata&&await C3e(e);}async function PLr(e){var t,r,n;try{try{let i={log:e.log,renderer:dS};e.options.interactive&&(i.renderer=hS,e.log.queue()),await new Xqe.default(QK(e),i).run(e),e.log.debug("Tasks completed");}catch(i){throw ps(i),jT(e),i.code==="ECONNREFUSED"||i.name==="StatusCodeError"?(chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.FETCH_ERROR),chunkHZVCNUTP_js.Z(i,ZK(e,i))):i.name==="GraphQLError"?(chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.GRAPHQL_ERROR),chunkHZVCNUTP_js.Z(i,tY(e,i))):i.message.startsWith("Cannot run a build with no stories")?(chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.BUILD_NO_STORIES),chunkHZVCNUTP_js.Z(i,Gqe(e))):(t=e.options.experimental_abortSignal)!=null&&t.aborted?(chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.BUILD_WAS_CANCELED,!0),chunkHZVCNUTP_js.Z(i,Fqe())):chunkHZVCNUTP_js.Z(i,nY(e,i))}finally{let{runtimeErrors:i,runtimeWarnings:s}=e;(i&&i.length>0||s&&s.length>0)&&(e.log.info(""),e.log.error(rY(e))),e.log.flush();}}catch(i){let s=[i].flat(),a=Nx(e,s);(n=(r=e.options).experimental_onTaskError)==null||n.call(r,e,{formattedError:a,originalError:s[0]}),e.userError||(e.log.info(""),e.log.error(a)),e.exitCode||chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.UNKNOWN_ERROR);}}async function T1n(e){let t;try{t=await chunkHZVCNUTP_js.j(e);}catch{t="";}let r=await chunkHZVCNUTP_js.l(e)||"",n=await chunkHZVCNUTP_js.k(e),i=await chunkHZVCNUTP_js.i(e)||"",s=gd(i),a=await chunkHZVCNUTP_js.x(e)||"",[o,u,...l]=t?t.split("/"):[],c=!!o&&!!u&&l.length===0,p=await chunkHZVCNUTP_js.m(e)||"";return {slug:c?t:"",branch:r,...n,uncommittedHash:p,userEmail:i,userEmailHash:s,repositoryRootDir:a}}/*! Bundled license information: tslib/tslib.es6.js: (*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** *) object-assign/index.js: (* object-assign (c) Sindre Sorhus @license MIT *) normalize-path/index.js: (*! * normalize-path * * Copyright (c) 2014-2018, Jon Schlinkert. * Released under the MIT License. *) archiver/lib/error.js: (** * Archiver Core * * @ignore * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. *) archiver/lib/core.js: (** * Archiver Core * * @ignore * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. *) crc-32/crc32.js: (*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com *) zip-stream/index.js: (** * ZipStream * * @ignore * @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE} * @copyright (c) 2014 Chris Talkington, contributors. *) archiver/lib/plugins/zip.js: (** * ZIP Format Plugin * * @module plugins/zip * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. *) archiver/lib/plugins/tar.js: (** * TAR Format Plugin * * @module plugins/tar * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. *) archiver/lib/plugins/json.js: (** * JSON Format Plugin * * @module plugins/json * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. *) archiver/index.js: (** * Archiver Vending * * @ignore * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. *) filesize/dist/filesize.esm.js: (** * filesize * * @copyright 2024 Jason Mulligan * @license BSD-3-Clause * @version 10.1.2 *) formdata-node/lib/form-data.js: (*! Based on fetch-blob. MIT License. Jimmy Wärting & David Frank *) */ exports.a = ps; exports.b = rae; exports.c = Zot; exports.d = pj; exports.e = S1n; exports.f = ALr; exports.g = T1n; //# sourceMappingURL=out.js.map //# sourceMappingURL=chunk-QIKU3X32.js.map //# debugId=0aaaa9ed-b8ab-54a8-a93f-99e3edf4e7af