@servicenow/sdk
Version:
ServiceNow SDK
1 lines • 11.2 MB
JavaScript
"use strict";var hFn=Object.create;var MTe=Object.defineProperty;var gFn=Object.getOwnPropertyDescriptor;var yFn=Object.getOwnPropertyNames;var vFn=Object.getPrototypeOf,bFn=Object.prototype.hasOwnProperty;var e=(r,n)=>MTe(r,"name",{value:n,configurable:!0});var Yu=(r,n)=>()=>(r&&(n=r(r=0)),n);var yn=(r,n)=>()=>(n||r((n={exports:{}}).exports,n),n.exports),eP=(r,n)=>{for(var a in n)MTe(r,a,{get:n[a],enumerable:!0})},z3t=(r,n,a,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let u of yFn(n))!bFn.call(r,u)&&u!==a&&MTe(r,u,{get:()=>n[u],enumerable:!(o=gFn(n,u))||o.enumerable});return r};var gU=(r,n,a)=>(a=r!=null?hFn(vFn(r)):{},z3t(n||!r||!r.__esModule?MTe(a,"default",{value:r,enumerable:!0}):a,r)),A_=r=>z3t(MTe({},"__esModule",{value:!0}),r);var Ht,me=Yu(()=>{Ht=["/home/jenkins/.local/share/pnpm/nodejs/18.16.1/bin/node","/home/jenkins/agent/workspace/ps_platform_fluent_release_3.0.0/target/checkout/packages/sdk/esbuild.ts","--production"]});var Vt,he=Yu(()=>{"use strict";Vt={hardwareConcurrency:1}});function ehe(){return typeof window<"u"&&typeof window.document<"u"||typeof self<"u"&&typeof self.importScripts=="function"}var TOe=Yu(()=>{"use strict";me();ye();he();ge();e(ehe,"isBrowserOrWorkerEnvironment")});function _O(r,n,a){return a={path:n,exports:{},require:e(function(o,u){return EFn(o,u??a.path)},"require")},r(a,a.exports),a.exports}function EFn(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var yU,lee=Yu(()=>{me();ye();he();ge();yU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e(_O,"createCommonjsModule");e(EFn,"commonjsRequire")});function xFn(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof globalThis<"u")return globalThis;throw new Error("unable to locate global object")}var TFn,OTe,the,Hrt,pDr,DOe,_Dr,G3t=Yu(()=>{me();ye();he();ge();lee();e(xFn,"getScope");TFn=xFn(),OTe=TFn[Symbol.for("brodeProcess")],the={nextTick(r,...n){if(!(OTe&&OTe.exitCode!==null)){if(typeof r!="function")throw new TypeError("handler is not a function");queueMicrotask(()=>{try{r(...n)}catch(a){if(OTe&&OTe.hasListeners("uncaughtException")){OTe.emit("uncaughtException",a);return}throw a}})}},emitWarning(r){console.warn(r)}},Hrt=_O(function(r,n){(function(a){var o=Object.hasOwnProperty,u=Array.isArray?Array.isArray:e(function(pn){return Object.prototype.toString.call(pn)==="[object Array]"},"_isArray"),f=10,h=typeof the=="object"&&typeof the.nextTick=="function",y=typeof Symbol=="function",b=typeof Reflect=="object",x=typeof setImmediate=="function",A=x?setImmediate:setTimeout,I=y?b&&typeof Reflect.ownKeys=="function"?Reflect.ownKeys:function(ot){var pn=Object.getOwnPropertyNames(ot);return pn.push.apply(pn,Object.getOwnPropertySymbols(ot)),pn}:Object.keys;function w(){this._events={},this._conf&&W.call(this,this._conf)}e(w,"init");function W(ot){ot&&(this._conf=ot,ot.delimiter&&(this.delimiter=ot.delimiter),ot.maxListeners!==a&&(this._maxListeners=ot.maxListeners),ot.wildcard&&(this.wildcard=ot.wildcard),ot.newListener&&(this._newListener=ot.newListener),ot.removeListener&&(this._removeListener=ot.removeListener),ot.verboseMemoryLeak&&(this.verboseMemoryLeak=ot.verboseMemoryLeak),ot.ignoreErrors&&(this.ignoreErrors=ot.ignoreErrors),this.wildcard&&(this.listenerTree={}))}e(W,"configure");function G(ot,pn){var St="(node) warning: possible EventEmitter memory leak detected. "+ot+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(St+=" Event name: "+pn+"."),typeof the<"u"&&the.emitWarning){var ar=new Error(St);ar.name="MaxListenersExceededWarning",ar.emitter=this,ar.count=ot,the.emitWarning(ar)}else console.error(St),console.trace&&console.trace()}e(G,"logPossibleMemoryLeak");var O=e(function(ot,pn,St){var ar=arguments.length;switch(ar){case 0:return[];case 1:return[ot];case 2:return[ot,pn];case 3:return[ot,pn,St];default:for(var mr=new Array(ar);ar--;)mr[ar]=arguments[ar];return mr}},"toArray");function k(ot,pn){for(var St={},ar,mr=ot.length,hn=pn?pn.length:0,Gn=0;Gn<mr;Gn++)ar=ot[Gn],St[ar]=Gn<hn?pn[Gn]:a;return St}e(k,"toObject");function B(ot,pn,St){this._emitter=ot,this._target=pn,this._listeners={},this._listenersCount=0;var ar,mr;if((St.on||St.off)&&(ar=St.on,mr=St.off),pn.addEventListener?(ar=pn.addEventListener,mr=pn.removeEventListener):pn.addListener?(ar=pn.addListener,mr=pn.removeListener):pn.on&&(ar=pn.on,mr=pn.off),!ar&&!mr)throw Error("target does not implement any known event API");if(typeof ar!="function")throw TypeError("on method must be a function");if(typeof mr!="function")throw TypeError("off method must be a function");this._on=ar,this._off=mr;var hn=ot._observers;hn?hn.push(this):ot._observers=[this]}e(B,"TargetObserver"),Object.assign(B.prototype,{subscribe:e(function(ot,pn,St){var ar=this,mr=this._target,hn=this._emitter,Gn=this._listeners,yr=e(function(){var Sr=O.apply(null,arguments),zr={data:Sr,name:pn,original:ot};if(St){var Nt=St.call(mr,zr);Nt!==!1&&hn.emit.apply(hn,[zr.name].concat(Sr));return}hn.emit.apply(hn,[pn].concat(Sr))},"handler");if(Gn[ot])throw Error("Event '"+ot+"' is already listening");this._listenersCount++,hn._newListener&&hn._removeListener&&!ar._onNewListener?(this._onNewListener=function(Sr){Sr===pn&&Gn[ot]===null&&(Gn[ot]=yr,ar._on.call(mr,ot,yr))},hn.on("newListener",this._onNewListener),this._onRemoveListener=function(Sr){Sr===pn&&!hn.hasListeners(Sr)&&Gn[ot]&&(Gn[ot]=null,ar._off.call(mr,ot,yr))},Gn[ot]=null,hn.on("removeListener",this._onRemoveListener)):(Gn[ot]=yr,ar._on.call(mr,ot,yr))},"subscribe"),unsubscribe:e(function(ot){var pn=this,St=this._listeners,ar=this._emitter,mr,hn,Gn=this._off,yr=this._target,Sr;if(ot&&typeof ot!="string")throw TypeError("event must be a string");function zr(){pn._onNewListener&&(ar.off("newListener",pn._onNewListener),ar.off("removeListener",pn._onRemoveListener),pn._onNewListener=null,pn._onRemoveListener=null);var Nt=We.call(ar,pn);ar._observers.splice(Nt,1)}if(e(zr,"clearRefs"),ot){if(mr=St[ot],!mr)return;Gn.call(yr,ot,mr),delete St[ot],--this._listenersCount||zr()}else{for(hn=I(St),Sr=hn.length;Sr-- >0;)ot=hn[Sr],Gn.call(yr,ot,St[ot]);this._listeners={},this._listenersCount=0,zr()}},"unsubscribe")});function Y(ot,pn,St,ar){var mr=Object.assign({},pn);if(!ot)return mr;if(typeof ot!="object")throw TypeError("options must be an object");var hn=Object.keys(ot),Gn=hn.length,yr,Sr,zr;function Nt(jt){throw Error('Invalid "'+yr+'" option value'+(jt?". Reason: "+jt:""))}e(Nt,"reject");for(var ve=0;ve<Gn;ve++){if(yr=hn[ve],!ar&&!o.call(pn,yr))throw Error('Unknown "'+yr+'" option');Sr=ot[yr],Sr!==a&&(zr=St[yr],mr[yr]=zr?zr(Sr,Nt):Sr)}return mr}e(Y,"resolveOptions");function Q(ot,pn){return(typeof ot!="function"||!ot.hasOwnProperty("prototype"))&&pn("value must be a constructor"),ot}e(Q,"constructorReducer");function ne(ot){var pn="value must be type of "+ot.join("|"),St=ot.length,ar=ot[0],mr=ot[1];return St===1?function(hn,Gn){if(typeof hn===ar)return hn;Gn(pn)}:St===2?function(hn,Gn){var yr=typeof hn;if(yr===ar||yr===mr)return hn;Gn(pn)}:function(hn,Gn){for(var yr=typeof hn,Sr=St;Sr-- >0;)if(yr===ot[Sr])return hn;Gn(pn)}}e(ne,"makeTypeReducer");var de=ne(["function"]),be=ne(["object","function"]);function Ie(ot,pn,St){var ar,mr,hn=0,Gn,yr=new ot(function(Sr,zr,Nt){St=Y(St,{timeout:0,overload:!1},{timeout:e(function(Dt,bn){return Dt*=1,(typeof Dt!="number"||Dt<0||!Number.isFinite(Dt))&&bn("timeout must be a positive number"),Dt},"timeout")}),ar=!St.overload&&typeof ot.prototype.cancel=="function"&&typeof Nt=="function";function ve(){mr&&(mr=null),hn&&(clearTimeout(hn),hn=0)}e(ve,"cleanup");var jt=e(function(Dt){ve(),Sr(Dt)},"_resolve"),ut=e(function(Dt){ve(),zr(Dt)},"_reject");ar?pn(jt,ut,Nt):(mr=[function(Dt){ut(Dt||Error("canceled"))}],pn(jt,ut,function(Dt){if(Gn)throw Error("Unable to subscribe on cancel event asynchronously");if(typeof Dt!="function")throw TypeError("onCancel callback must be a function");mr.push(Dt)}),Gn=!0),St.timeout>0&&(hn=setTimeout(function(){var Dt=Error("timeout");Dt.code="ETIMEDOUT",hn=0,yr.cancel(Dt),zr(Dt)},St.timeout))});return ar||(yr.cancel=function(Sr){if(mr){for(var zr=mr.length,Nt=1;Nt<zr;Nt++)mr[Nt](Sr);mr[0](Sr),mr=null}}),yr}e(Ie,"makeCancelablePromise");function We(ot){var pn=this._observers;if(!pn)return-1;for(var St=pn.length,ar=0;ar<St;ar++)if(pn[ar]._target===ot)return ar;return-1}e(We,"findTargetIndex");function qe(ot,pn,St,ar,mr){if(!St)return null;if(ar===0){var hn=typeof pn;if(hn==="string"){var Gn,yr,Sr=0,zr=0,Nt=this.delimiter,ve=Nt.length;if((yr=pn.indexOf(Nt))!==-1){Gn=new Array(5);do Gn[Sr++]=pn.slice(zr,yr),zr=yr+ve;while((yr=pn.indexOf(Nt,zr))!==-1);Gn[Sr++]=pn.slice(zr),pn=Gn,mr=Sr}else pn=[pn],mr=1}else hn==="object"?mr=pn.length:(pn=[pn],mr=1)}var jt=null,ut,Dt,bn,dn,Xr,qr=pn[ar],En=pn[ar+1],$o,Ji;if(ar===mr)St._listeners&&(typeof St._listeners=="function"?(ot&&ot.push(St._listeners),jt=[St]):(ot&&ot.push.apply(ot,St._listeners),jt=[St]));else if(qr==="*"){for($o=I(St),yr=$o.length;yr-- >0;)ut=$o[yr],ut!=="_listeners"&&(Ji=qe(ot,pn,St[ut],ar+1,mr),Ji&&(jt?jt.push.apply(jt,Ji):jt=Ji));return jt}else if(qr==="**"){for(Xr=ar+1===mr||ar+2===mr&&En==="*",Xr&&St._listeners&&(jt=qe(ot,pn,St,mr,mr)),$o=I(St),yr=$o.length;yr-- >0;)ut=$o[yr],ut!=="_listeners"&&(ut==="*"||ut==="**"?(St[ut]._listeners&&!Xr&&(Ji=qe(ot,pn,St[ut],mr,mr),Ji&&(jt?jt.push.apply(jt,Ji):jt=Ji)),Ji=qe(ot,pn,St[ut],ar,mr)):ut===En?Ji=qe(ot,pn,St[ut],ar+2,mr):Ji=qe(ot,pn,St[ut],ar,mr),Ji&&(jt?jt.push.apply(jt,Ji):jt=Ji));return jt}else St[qr]&&(jt=qe(ot,pn,St[qr],ar+1,mr));if(Dt=St["*"],Dt&&qe(ot,pn,Dt,ar+1,mr),bn=St["**"],bn)if(ar<mr)for(bn._listeners&&qe(ot,pn,bn,mr,mr),$o=I(bn),yr=$o.length;yr-- >0;)ut=$o[yr],ut!=="_listeners"&&(ut===En?qe(ot,pn,bn[ut],ar+2,mr):ut===qr?qe(ot,pn,bn[ut],ar+1,mr):(dn={},dn[ut]=bn[ut],qe(ot,pn,{"**":dn},ar+1,mr)));else bn._listeners?qe(ot,pn,bn,mr,mr):bn["*"]&&bn["*"]._listeners&&qe(ot,pn,bn["*"],mr,mr);return jt}e(qe,"searchListenerTree");function Ke(ot,pn,St){var ar=0,mr=0,hn,Gn=this.delimiter,yr=Gn.length,Sr;if(typeof ot=="string")if((hn=ot.indexOf(Gn))!==-1){Sr=new Array(5);do Sr[ar++]=ot.slice(mr,hn),mr=hn+yr;while((hn=ot.indexOf(Gn,mr))!==-1);Sr[ar++]=ot.slice(mr)}else Sr=[ot],ar=1;else Sr=ot,ar=ot.length;if(ar>1){for(hn=0;hn+1<ar;hn++)if(Sr[hn]==="**"&&Sr[hn+1]==="**")return}var zr=this.listenerTree,Nt;for(hn=0;hn<ar;hn++)if(Nt=Sr[hn],zr=zr[Nt]||(zr[Nt]={}),hn===ar-1)return zr._listeners?(typeof zr._listeners=="function"&&(zr._listeners=[zr._listeners]),St?zr._listeners.unshift(pn):zr._listeners.push(pn),!zr._listeners.warned&&this._maxListeners>0&&zr._listeners.length>this._maxListeners&&(zr._listeners.warned=!0,G.call(this,zr._listeners.length,Nt))):zr._listeners=pn,!0;return!0}e(Ke,"growListenerTree");function Je(ot,pn,St,ar){for(var mr=I(ot),hn=mr.length,Gn,yr,Sr,zr=ot._listeners,Nt;hn-- >0;)yr=mr[hn],Gn=ot[yr],yr==="_listeners"?Sr=St:Sr=St?St.concat(yr):[yr],Nt=ar||typeof yr=="symbol",zr&&pn.push(Nt?Sr:Sr.join(this.delimiter)),typeof Gn=="object"&&Je.call(this,Gn,pn,Sr,Nt);return pn}e(Je,"collectTreeEvents");function at(ot){for(var pn=I(ot),St=pn.length,ar,mr,hn;St-- >0;)mr=pn[St],ar=ot[mr],ar&&(hn=!0,mr!=="_listeners"&&!at(ar)&&delete ot[mr]);return hn}e(at,"recursivelyGarbageCollect");function wt(ot,pn,St){this.emitter=ot,this.event=pn,this.listener=St}e(wt,"Listener"),wt.prototype.off=function(){return this.emitter.off(this.event,this.listener),this};function In(ot,pn,St){if(St===!0)mr=!0;else if(St===!1)ar=!0;else{if(!St||typeof St!="object")throw TypeError("options should be an object or true");var ar=St.async,mr=St.promisify,hn=St.nextTick,Gn=St.objectify}if(ar||hn||mr){var yr=pn,Sr=pn._origin||pn;if(hn&&!h)throw Error("process.nextTick is not supported");mr===a&&(mr=pn.constructor.name==="AsyncFunction"),pn=e(function(){var zr=arguments,Nt=this,ve=this.event;return mr?hn?Promise.resolve():new Promise(function(jt){A(jt)}).then(function(){return Nt.event=ve,yr.apply(Nt,zr)}):(hn?the.nextTick:A)(function(){Nt.event=ve,yr.apply(Nt,zr)})},"listener"),pn._async=!0,pn._origin=Sr}return[pn,Gn?new wt(this,ot,pn):this]}e(In,"setupListener");function Pt(ot){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,W.call(this,ot)}e(Pt,"EventEmitter"),Pt.EventEmitter2=Pt,Pt.prototype.listenTo=function(ot,pn,St){if(typeof ot!="object")throw TypeError("target musts be an object");var ar=this;St=Y(St,{on:a,off:a,reducers:a},{on:de,off:de,reducers:be});function mr(hn){if(typeof hn!="object")throw TypeError("events must be an object");var Gn=St.reducers,yr=We.call(ar,ot),Sr;yr===-1?Sr=new B(ar,ot,St):Sr=ar._observers[yr];for(var zr=I(hn),Nt=zr.length,ve,jt=typeof Gn=="function",ut=0;ut<Nt;ut++)ve=zr[ut],Sr.subscribe(ve,hn[ve]||ve,jt?Gn:Gn&&Gn[ve])}return e(mr,"listen"),u(pn)?mr(k(pn)):mr(typeof pn=="string"?k(pn.split(/\s+/)):pn),this},Pt.prototype.stopListeningTo=function(ot,pn){var St=this._observers;if(!St)return!1;var ar=St.length,mr,hn=!1;if(ot&&typeof ot!="object")throw TypeError("target should be an object");for(;ar-- >0;)mr=St[ar],(!ot||mr._target===ot)&&(mr.unsubscribe(pn),hn=!0);return hn},Pt.prototype.delimiter=".",Pt.prototype.setMaxListeners=function(ot){ot!==a&&(this._maxListeners=ot,this._conf||(this._conf={}),this._conf.maxListeners=ot)},Pt.prototype.getMaxListeners=function(){return this._maxListeners},Pt.prototype.event="",Pt.prototype.once=function(ot,pn,St){return this._once(ot,pn,!1,St)},Pt.prototype.prependOnceListener=function(ot,pn,St){return this._once(ot,pn,!0,St)},Pt.prototype._once=function(ot,pn,St,ar){return this._many(ot,1,pn,St,ar)},Pt.prototype.many=function(ot,pn,St,ar){return this._many(ot,pn,St,!1,ar)},Pt.prototype.prependMany=function(ot,pn,St,ar){return this._many(ot,pn,St,!0,ar)},Pt.prototype._many=function(ot,pn,St,ar,mr){var hn=this;if(typeof St!="function")throw new Error("many only accepts instances of Function");function Gn(){return--pn===0&&hn.off(ot,Gn),St.apply(this,arguments)}return e(Gn,"listener"),Gn._origin=St,this._on(ot,Gn,ar,mr)},Pt.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||w.call(this);var ot=arguments[0],pn,St=this.wildcard,ar,mr,hn,Gn,yr;if(ot==="newListener"&&!this._newListener&&!this._events.newListener)return!1;if(St&&(pn=ot,ot!=="newListener"&&ot!=="removeListener"&&typeof ot=="object")){if(mr=ot.length,y){for(hn=0;hn<mr;hn++)if(typeof ot[hn]=="symbol"){yr=!0;break}}yr||(ot=ot.join(this.delimiter))}var Sr=arguments.length,zr;if(this._all&&this._all.length)for(zr=this._all.slice(),hn=0,mr=zr.length;hn<mr;hn++)switch(this.event=ot,Sr){case 1:zr[hn].call(this,ot);break;case 2:zr[hn].call(this,ot,arguments[1]);break;case 3:zr[hn].call(this,ot,arguments[1],arguments[2]);break;default:zr[hn].apply(this,arguments)}if(St)zr=[],qe.call(this,zr,pn,this.listenerTree,0,mr);else if(zr=this._events[ot],typeof zr=="function"){switch(this.event=ot,Sr){case 1:zr.call(this);break;case 2:zr.call(this,arguments[1]);break;case 3:zr.call(this,arguments[1],arguments[2]);break;default:for(ar=new Array(Sr-1),Gn=1;Gn<Sr;Gn++)ar[Gn-1]=arguments[Gn];zr.apply(this,ar)}return!0}else zr&&(zr=zr.slice());if(zr&&zr.length){if(Sr>3)for(ar=new Array(Sr-1),Gn=1;Gn<Sr;Gn++)ar[Gn-1]=arguments[Gn];for(hn=0,mr=zr.length;hn<mr;hn++)switch(this.event=ot,Sr){case 1:zr[hn].call(this);break;case 2:zr[hn].call(this,arguments[1]);break;case 3:zr[hn].call(this,arguments[1],arguments[2]);break;default:zr[hn].apply(this,ar)}return!0}else if(!this.ignoreErrors&&!this._all&&ot==="error")throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},Pt.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||w.call(this);var ot=arguments[0],pn=this.wildcard,St,ar,mr,hn,Gn,yr;if(ot==="newListener"&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(pn&&(St=ot,ot!=="newListener"&&ot!=="removeListener"&&typeof ot=="object")){if(hn=ot.length,y){for(Gn=0;Gn<hn;Gn++)if(typeof ot[Gn]=="symbol"){ar=!0;break}}ar||(ot=ot.join(this.delimiter))}var Sr=[],zr=arguments.length,Nt;if(this._all)for(Gn=0,hn=this._all.length;Gn<hn;Gn++)switch(this.event=ot,zr){case 1:Sr.push(this._all[Gn].call(this,ot));break;case 2:Sr.push(this._all[Gn].call(this,ot,arguments[1]));break;case 3:Sr.push(this._all[Gn].call(this,ot,arguments[1],arguments[2]));break;default:Sr.push(this._all[Gn].apply(this,arguments))}if(pn?(Nt=[],qe.call(this,Nt,St,this.listenerTree,0)):Nt=this._events[ot],typeof Nt=="function")switch(this.event=ot,zr){case 1:Sr.push(Nt.call(this));break;case 2:Sr.push(Nt.call(this,arguments[1]));break;case 3:Sr.push(Nt.call(this,arguments[1],arguments[2]));break;default:for(mr=new Array(zr-1),yr=1;yr<zr;yr++)mr[yr-1]=arguments[yr];Sr.push(Nt.apply(this,mr))}else if(Nt&&Nt.length){if(Nt=Nt.slice(),zr>3)for(mr=new Array(zr-1),yr=1;yr<zr;yr++)mr[yr-1]=arguments[yr];for(Gn=0,hn=Nt.length;Gn<hn;Gn++)switch(this.event=ot,zr){case 1:Sr.push(Nt[Gn].call(this));break;case 2:Sr.push(Nt[Gn].call(this,arguments[1]));break;case 3:Sr.push(Nt[Gn].call(this,arguments[1],arguments[2]));break;default:Sr.push(Nt[Gn].apply(this,mr))}}else if(!this.ignoreErrors&&!this._all&&ot==="error")return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(Sr)},Pt.prototype.on=function(ot,pn,St){return this._on(ot,pn,!1,St)},Pt.prototype.prependListener=function(ot,pn,St){return this._on(ot,pn,!0,St)},Pt.prototype.onAny=function(ot){return this._onAny(ot,!1)},Pt.prototype.prependAny=function(ot){return this._onAny(ot,!0)},Pt.prototype.addListener=Pt.prototype.on,Pt.prototype._onAny=function(ot,pn){if(typeof ot!="function")throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),pn?this._all.unshift(ot):this._all.push(ot),this},Pt.prototype._on=function(ot,pn,St,ar){if(typeof ot=="function")return this._onAny(ot,pn),this;if(typeof pn!="function")throw new Error("on only accepts instances of Function");this._events||w.call(this);var mr=this,hn;return ar!==a&&(hn=In.call(this,ot,pn,ar),pn=hn[0],mr=hn[1]),this._newListener&&this.emit("newListener",ot,pn),this.wildcard?(Ke.call(this,ot,pn,St),mr):(this._events[ot]?(typeof this._events[ot]=="function"&&(this._events[ot]=[this._events[ot]]),St?this._events[ot].unshift(pn):this._events[ot].push(pn),!this._events[ot].warned&&this._maxListeners>0&&this._events[ot].length>this._maxListeners&&(this._events[ot].warned=!0,G.call(this,this._events[ot].length,ot))):this._events[ot]=pn,mr)},Pt.prototype.off=function(ot,pn){if(typeof pn!="function")throw new Error("removeListener only takes instances of Function");var St,ar=[];if(this.wildcard){var mr=typeof ot=="string"?ot.split(this.delimiter):ot.slice();if(ar=qe.call(this,null,mr,this.listenerTree,0),!ar)return this}else{if(!this._events[ot])return this;St=this._events[ot],ar.push({_listeners:St})}for(var hn=0;hn<ar.length;hn++){var Gn=ar[hn];if(St=Gn._listeners,u(St)){for(var yr=-1,Sr=0,zr=St.length;Sr<zr;Sr++)if(St[Sr]===pn||St[Sr].listener&&St[Sr].listener===pn||St[Sr]._origin&&St[Sr]._origin===pn){yr=Sr;break}if(yr<0)continue;return this.wildcard?Gn._listeners.splice(yr,1):this._events[ot].splice(yr,1),St.length===0&&(this.wildcard?delete Gn._listeners:delete this._events[ot]),this._removeListener&&this.emit("removeListener",ot,pn),this}else(St===pn||St.listener&&St.listener===pn||St._origin&&St._origin===pn)&&(this.wildcard?delete Gn._listeners:delete this._events[ot],this._removeListener&&this.emit("removeListener",ot,pn))}return this.listenerTree&&at(this.listenerTree),this},Pt.prototype.offAny=function(ot){var pn=0,St=0,ar;if(ot&&this._all&&this._all.length>0){for(ar=this._all,pn=0,St=ar.length;pn<St;pn++)if(ot===ar[pn])return ar.splice(pn,1),this._removeListener&&this.emit("removeListenerAny",ot),this}else{if(ar=this._all,this._removeListener)for(pn=0,St=ar.length;pn<St;pn++)this.emit("removeListenerAny",ar[pn]);this._all=[]}return this},Pt.prototype.removeListener=Pt.prototype.off,Pt.prototype.removeAllListeners=function(ot){if(ot===a)return!this._events||w.call(this),this;if(this.wildcard){var pn=qe.call(this,null,ot,this.listenerTree,0),St,ar;if(!pn)return this;for(ar=0;ar<pn.length;ar++)St=pn[ar],St._listeners=null;this.listenerTree&&at(this.listenerTree)}else this._events&&(this._events[ot]=null);return this},Pt.prototype.listeners=function(ot){var pn=this._events,St,ar,mr,hn,Gn;if(ot===a){if(this.wildcard)throw Error("event name required for wildcard emitter");if(!pn)return[];for(St=I(pn),hn=St.length,mr=[];hn-- >0;)ar=pn[St[hn]],typeof ar=="function"?mr.push(ar):mr.push.apply(mr,ar);return mr}else{if(this.wildcard){if(Gn=this.listenerTree,!Gn)return[];var yr=[],Sr=typeof ot=="string"?ot.split(this.delimiter):ot.slice();return qe.call(this,yr,Sr,Gn,0),yr}return pn?(ar=pn[ot],ar?typeof ar=="function"?[ar]:ar:[]):[]}},Pt.prototype.eventNames=function(ot){var pn=this._events;return this.wildcard?Je.call(this,this.listenerTree,[],null,ot):pn?I(pn):[]},Pt.prototype.listenerCount=function(ot){return this.listeners(ot).length},Pt.prototype.hasListeners=function(ot){if(this.wildcard){var pn=[],St=typeof ot=="string"?ot.split(this.delimiter):ot.slice();return qe.call(this,pn,St,this.listenerTree,0),pn.length>0}var ar=this._events,mr=this._all;return!!(mr&&mr.length||ar&&(ot===a?I(ar).length:ar[ot]))},Pt.prototype.listenersAny=function(){return this._all?this._all:[]},Pt.prototype.waitFor=function(ot,pn){var St=this,ar=typeof pn;return ar==="number"?pn={timeout:pn}:ar==="function"&&(pn={filter:pn}),pn=Y(pn,{timeout:0,filter:a,handleError:!1,Promise,overload:!1},{filter:de,Promise:Q}),Ie(pn.Promise,function(mr,hn,Gn){function yr(){var Sr=pn.filter;if(!(Sr&&!Sr.apply(St,arguments)))if(St.off(ot,yr),pn.handleError){var zr=arguments[0];zr?hn(zr):mr(O.apply(null,arguments).slice(1))}else mr(O.apply(null,arguments))}e(yr,"listener"),Gn(function(){St.off(ot,yr)}),St._on(ot,yr,!1)},{timeout:pn.timeout,overload:pn.overload})};function Tt(ot,pn,St){St=Y(St,{Promise,timeout:0,overload:!1},{Promise:Q});var ar=St.Promise;return Ie(ar,function(mr,hn,Gn){var yr;if(typeof ot.addEventListener=="function"){yr=e(function(){mr(O.apply(null,arguments))},"handler"),Gn(function(){ot.removeEventListener(pn,yr)}),ot.addEventListener(pn,yr,{once:!0});return}var Sr=e(function(){zr&&ot.removeListener("error",zr),mr(O.apply(null,arguments))},"eventListener"),zr;pn!=="error"&&(zr=e(function(Nt){ot.removeListener(pn,Sr),hn(Nt)},"errorListener"),ot.once("error",zr)),Gn(function(){zr&&ot.removeListener("error",zr),ot.removeListener(pn,Sr)}),ot.once(pn,Sr)},{timeout:St.timeout,overload:St.overload})}e(Tt,"once");var Kt=Pt.prototype;Object.defineProperties(Pt,{defaultMaxListeners:{get:e(function(){return Kt._maxListeners},"get"),set:e(function(ot){if(typeof ot!="number"||ot<0||Number.isNaN(ot))throw TypeError("n must be a non-negative number");Kt._maxListeners=ot},"set"),enumerable:!0},once:{value:Tt,writable:!0,configurable:!0}}),Object.defineProperties(Kt,{_maxListeners:{value:f,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),typeof a=="function"&&a.amd?a(function(){return Pt}):r.exports=Pt})()}),pDr=Hrt.EventEmitter2,DOe=Hrt,_Dr=Hrt.defaultMaxListeners});var cee={};eP(cee,{EventEmitter:()=>AOe,default:()=>COe});var AOe,COe,vU=Yu(()=>{me();ye();he();ge();G3t();DOe.EventEmitter=DOe;AOe=DOe,COe=AOe});var DFn,wOe,AFn,U3t=Yu(()=>{me();ye();he();ge();DFn=e(()=>{if("performance"in window||(window.performance={}),Date.now=Date.now||(()=>new Date().getTime()),!("now"in window.performance)){let r=Date.now();performance.timing&&performance.timing.navigationStart&&(r=performance.timing.navigationStart),window.performance.now=()=>Date.now()-r}},"perfomancePolyfill"),wOe=e(r=>{DFn();let n=Math.floor((Date.now()-performance.now())*.001),a=performance.now()*.001,o=Math.floor(a)+n,u=Math.floor(a%1*1e9);return r&&(o=o-r[0],u=u-r[1],u<0&&(o--,u+=1e9)),[o,u]},"hrtime"),AFn=1e9;wOe.bigint=()=>{let r=wOe();return BigInt(r[0]*AFn+r[1])}});function _se(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof globalThis<"u")return globalThis;throw new Error("unable to locate global object")}var IOe=Yu(()=>{me();ye();he();ge();e(_se,"getScope")});var uee,Krt=Yu(()=>{me();ye();he();ge();lee();uee=_O(function(r){typeof Object.create=="function"?r.exports=e(function(a,o){o&&(a.super_=o,a.prototype=Object.create(o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):r.exports=e(function(a,o){if(o){a.super_=o;var u=e(function(){},"TempCtor");u.prototype=o.prototype,a.prototype=new u,a.prototype.constructor=a}},"inherits")})});var $3t,LOe,V3t,CFn,wFn,qrt,IFn,PFn,NFn,kJ,ROe,ky,she,X3t,ahe,Jrt,mse,$rt,RFn,nhe,dee,rhe,kFn,ohe,LFn,H3t,MFn,OFn,K3t,kOe,FFn,BFn,WFn,jFn,zFn,RJ,Y3t,GFn,lhe,UFn,tit,MOe,Q3t,VFn,HFn,KFn,qFn,JFn,Z3t,Xrt,$Fn,Yrt,XFn,e6t,ihe,nit,POe,YFn,rit,QFn,ZFn,e3n,t3n,n3n,q3t,r3n,i3n,t6t,a3n,o3n,s3n,l3n,OOe,Qrt,c3n,n6t,NOe,hse,u3n,r6t,d3n,i6t,f3n,p3n,a6t,Zrt,_3n,iit,m3n,o6t,J3t,h3n,g3n,s6t,eit,y3n,lW,v3n,b3n,tS,S3n,E3n,x3n,gse,T3n,D3n,A3n,C3n,w3n,I3n,P3n,N3n,R3n,k3n,L3n,M3n,O3n,F3n,B3n,W3n,j3n,z3n,G3n,U3n,V3n,H3n,ait=Yu(()=>{me();ye();he();ge();FTe();lee();Krt();$3t=e(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},a=Symbol("test"),o=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var u=42;n[a]=u;for(a in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var f=Object.getOwnPropertySymbols(n);if(f.length!==1||f[0]!==a||!Object.prototype.propertyIsEnumerable.call(n,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var h=Object.getOwnPropertyDescriptor(n,a);if(h.value!==u||h.enumerable!==!0)return!1}return!0},"hasSymbols"),LOe=e(function(){return $3t()&&!!Symbol.toStringTag},"hasToStringTagShams"),V3t=typeof Symbol<"u"&&Symbol,CFn=e(function(){return typeof V3t!="function"||typeof Symbol!="function"||typeof V3t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:$3t()},"hasNativeSymbols"),wFn="Function.prototype.bind called on incompatible ",qrt=Array.prototype.slice,IFn=Object.prototype.toString,PFn="[object Function]",NFn=e(function(n){var a=this;if(typeof a!="function"||IFn.call(a)!==PFn)throw new TypeError(wFn+a);for(var o=qrt.call(arguments,1),u,f=e(function(){if(this instanceof u){var A=a.apply(this,o.concat(qrt.call(arguments)));return Object(A)===A?A:this}else return a.apply(n,o.concat(qrt.call(arguments)))},"binder"),h=Math.max(0,a.length-o.length),y=[],b=0;b<h;b++)y.push("$"+b);if(u=Function("binder","return function ("+y.join(",")+"){ return binder.apply(this,arguments); }")(f),a.prototype){var x=e(function(){},"Empty2");x.prototype=a.prototype,u.prototype=new x,x.prototype=null}return u},"bind"),kJ=Function.prototype.bind||NFn,ROe=kJ.call(Function.call,Object.prototype.hasOwnProperty),she=SyntaxError,X3t=Function,ahe=TypeError,Jrt=e(function(r){try{return X3t('"use strict"; return ('+r+").constructor;")()}catch{}},"getEvalledConstructor"),mse=Object.getOwnPropertyDescriptor;if(mse)try{mse({},"")}catch{mse=null}$rt=e(function(){throw new ahe},"throwTypeError"),RFn=mse?function(){try{return arguments.callee,$rt}catch{try{return mse(arguments,"callee").get}catch{return $rt}}}():$rt,nhe=CFn(),dee=Object.getPrototypeOf||function(r){return r.__proto__},rhe={},kFn=typeof Uint8Array>"u"?ky:dee(Uint8Array),ohe={"%AggregateError%":typeof AggregateError>"u"?ky:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ky:ArrayBuffer,"%ArrayIteratorPrototype%":nhe?dee([][Symbol.iterator]()):ky,"%AsyncFromSyncIteratorPrototype%":ky,"%AsyncFunction%":rhe,"%AsyncGenerator%":rhe,"%AsyncGeneratorFunction%":rhe,"%AsyncIteratorPrototype%":rhe,"%Atomics%":typeof Atomics>"u"?ky:Atomics,"%BigInt%":typeof BigInt>"u"?ky:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ky:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ky:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ky:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ky:FinalizationRegistry,"%Function%":X3t,"%GeneratorFunction%":rhe,"%Int8Array%":typeof Int8Array>"u"?ky:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ky:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ky:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":nhe?dee(dee([][Symbol.iterator]())):ky,"%JSON%":typeof JSON=="object"?JSON:ky,"%Map%":typeof Map>"u"?ky:Map,"%MapIteratorPrototype%":typeof Map>"u"||!nhe?ky:dee(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ky:Promise,"%Proxy%":typeof Proxy>"u"?ky:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ky:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ky:Set,"%SetIteratorPrototype%":typeof Set>"u"||!nhe?ky:dee(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ky:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":nhe?dee(""[Symbol.iterator]()):ky,"%Symbol%":nhe?Symbol:ky,"%SyntaxError%":she,"%ThrowTypeError%":RFn,"%TypedArray%":kFn,"%TypeError%":ahe,"%Uint8Array%":typeof Uint8Array>"u"?ky:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ky:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ky:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ky:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ky:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ky:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ky:WeakSet},LFn=e(function r(n){var a;if(n==="%AsyncFunction%")a=Jrt("async function () {}");else if(n==="%GeneratorFunction%")a=Jrt("function* () {}");else if(n==="%AsyncGeneratorFunction%")a=Jrt("async function* () {}");else if(n==="%AsyncGenerator%"){var o=r("%AsyncGeneratorFunction%");o&&(a=o.prototype)}else if(n==="%AsyncIteratorPrototype%"){var u=r("%AsyncGenerator%");u&&(a=dee(u.prototype))}return ohe[n]=a,a},"doEval2"),H3t={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},MFn=kJ.call(Function.call,Array.prototype.concat),OFn=kJ.call(Function.apply,Array.prototype.splice),K3t=kJ.call(Function.call,String.prototype.replace),kOe=kJ.call(Function.call,String.prototype.slice),FFn=kJ.call(Function.call,RegExp.prototype.exec),BFn=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,WFn=/\\(\\)?/g,jFn=e(function(n){var a=kOe(n,0,1),o=kOe(n,-1);if(a==="%"&&o!=="%")throw new she("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&a!=="%")throw new she("invalid intrinsic syntax, expected opening `%`");var u=[];return K3t(n,BFn,function(f,h,y,b){u[u.length]=y?K3t(b,WFn,"$1"):h||f}),u},"stringToPath2"),zFn=e(function(n,a){var o=n,u;if(ROe(H3t,o)&&(u=H3t[o],o="%"+u[0]+"%"),ROe(ohe,o)){var f=ohe[o];if(f===rhe&&(f=LFn(o)),typeof f>"u"&&!a)throw new ahe("intrinsic "+n+" exists, but is not available. Please file an issue!");return{alias:u,name:o,value:f}}throw new she("intrinsic "+n+" does not exist!")},"getBaseIntrinsic2"),RJ=e(function(n,a){if(typeof n!="string"||n.length===0)throw new ahe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new ahe('"allowMissing" argument must be a boolean');if(FFn(/^%?[^%]*%?$/g,n)===null)throw new she("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=jFn(n),u=o.length>0?o[0]:"",f=zFn("%"+u+"%",a),h=f.name,y=f.value,b=!1,x=f.alias;x&&(u=x[0],OFn(o,MFn([0,1],x)));for(var A=1,I=!0;A<o.length;A+=1){var w=o[A],W=kOe(w,0,1),G=kOe(w,-1);if((W==='"'||W==="'"||W==="`"||G==='"'||G==="'"||G==="`")&&W!==G)throw new she("property names with quotes must have matching quotes");if((w==="constructor"||!I)&&(b=!0),u+="."+w,h="%"+u+"%",ROe(ohe,h))y=ohe[h];else if(y!=null){if(!(w in y)){if(!a)throw new ahe("base intrinsic for "+n+" exists, but the property is not available.");return}if(mse&&A+1>=o.length){var O=mse(y,w);I=!!O,I&&"get"in O&&!("originalValue"in O.get)?y=O.get:y=y[w]}else I=ROe(y,w),y=y[w];I&&!b&&(ohe[h]=y)}}return y},"GetIntrinsic"),Y3t=_O(function(r){var n=RJ("%Function.prototype.apply%"),a=RJ("%Function.prototype.call%"),o=RJ("%Reflect.apply%",!0)||kJ.call(a,n),u=RJ("%Object.getOwnPropertyDescriptor%",!0),f=RJ("%Object.defineProperty%",!0),h=RJ("%Math.max%");if(f)try{f({},"a",{value:1})}catch{f=null}r.exports=e(function(x){var A=o(kJ,a,arguments);if(u&&f){var I=u(A,"length");I.configurable&&f(A,"length",{value:1+h(0,x.length-(arguments.length-1))})}return A},"callBind2");var y=e(function(){return o(kJ,n,arguments)},"applyBind2");f?f(r.exports,"apply",{value:y}):r.exports.apply=y}),GFn=Y3t(RJ("String.prototype.indexOf")),lhe=e(function(n,a){var o=RJ(n,!!a);return typeof o=="function"&&GFn(n,".prototype.")>-1?Y3t(o):o},"callBoundIntrinsic"),UFn=LOe(),tit=lhe("Object.prototype.toString"),MOe=e(function(n){return UFn&&n&&typeof n=="object"&&Symbol.toStringTag in n?!1:tit(n)==="[object Arguments]"},"isArguments"),Q3t=e(function(n){return MOe(n)?!0:n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&tit(n)!=="[object Array]"&&tit(n.callee)==="[object Function]"},"isArguments2"),VFn=function(){return MOe(arguments)}();MOe.isLegacyArguments=Q3t;HFn=VFn?MOe:Q3t,KFn=Object.prototype.toString,qFn=Function.prototype.toString,JFn=/^\s*(?:function)?\*/,Z3t=LOe(),Xrt=Object.getPrototypeOf,$Fn=e(function(){if(!Z3t)return!1;try{return Function("return function*() {}")()}catch{}},"getGeneratorFunc"),XFn=e(function(n){if(typeof n!="function")return!1;if(JFn.test(qFn.call(n)))return!0;if(!Z3t){var a=KFn.call(n);return a==="[object GeneratorFunction]"}if(!Xrt)return!1;if(typeof Yrt>"u"){var o=$Fn();Yrt=o?Xrt(o):!1}return Xrt(n)===Yrt},"isGeneratorFunction2"),e6t=Function.prototype.toString,ihe=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof ihe=="function"&&typeof Object.defineProperty=="function")try{nit=Object.defineProperty({},"length",{get:e(function(){throw POe},"get")}),POe={},ihe(function(){throw 42},null,nit)}catch(r){r!==POe&&(ihe=null)}else ihe=null;YFn=/^\s*class\b/,rit=e(function(n){try{var a=e6t.call(n);return YFn.test(a)}catch{return!1}},"isES6ClassFunction"),QFn=e(function(n){try{return rit(n)?!1:(e6t.call(n),!0)}catch{return!1}},"tryFunctionToStr"),ZFn=Object.prototype.toString,e3n="[object Function]",t3n="[object GeneratorFunction]",n3n=typeof Symbol=="function"&&!!Symbol.toStringTag,q3t=typeof document=="object"&&typeof document.all>"u"&&document.all!==void 0?document.all:{},r3n=ihe?e(function(n){if(n===q3t)return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;if(typeof n=="function"&&!n.prototype)return!0;try{ihe(n,null,nit)}catch(a){if(a!==POe)return!1}return!rit(n)},"isCallable2"):e(function(n){if(n===q3t)return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;if(typeof n=="function"&&!n.prototype)return!0;if(n3n)return QFn(n);if(rit(n))return!1;var a=ZFn.call(n);return a===e3n||a===t3n},"isCallable3"),i3n=Object.prototype.toString,t6t=Object.prototype.hasOwnProperty,a3n=e(function(n,a,o){for(var u=0,f=n.length;u<f;u++)t6t.call(n,u)&&(o==null?a(n[u],u,n):a.call(o,n[u],u,n))},"forEachArray2"),o3n=e(function(n,a,o){for(var u=0,f=n.length;u<f;u++)o==null?a(n.charAt(u),u,n):a.call(o,n.charAt(u),u,n)},"forEachString2"),s3n=e(function(n,a,o){for(var u in n)t6t.call(n,u)&&(o==null?a(n[u],u,n):a.call(o,n[u],u,n))},"forEachObject2"),l3n=e(function(n,a,o){if(!r3n(a))throw new TypeError("iterator must be a function");var u;arguments.length>=3&&(u=o),i3n.call(n)==="[object Array]"?a3n(n,a,u):typeof n=="string"?o3n(n,a,u):s3n(n,a,u)},"forEach2"),OOe=l3n,Qrt=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],c3n=typeof globalThis>"u"?yU:globalThis,n6t=e(function(){for(var n=[],a=0;a<Qrt.length;a++)typeof c3n[Qrt[a]]=="function"&&(n[n.length]=Qrt[a]);return n},"availableTypedArrays2"),NOe=RJ("%Object.getOwnPropertyDescriptor%",!0);if(NOe)try{NOe([],"length")}catch{NOe=null}hse=NOe,u3n=lhe("Object.prototype.toString"),r6t=LOe(),d3n=typeof globalThis>"u"?yU:globalThis,i6t=n6t(),f3n=lhe("Array.prototype.indexOf",!0)||e(function(n,a){for(var o=0;o<n.length;o+=1)if(n[o]===a)return o;return-1},"indexOf"),p3n=lhe("String.prototype.slice"),a6t={},Zrt=Object.getPrototypeOf;r6t&&hse&&Zrt&&OOe(i6t,function(r){var n=new d3n[r];if(Symbol.toStringTag in n){var a=Zrt(n),o=hse(a,Symbol.toStringTag);if(!o){var u=Zrt(a);o=hse(u,Symbol.toStringTag)}a6t[r]=o.get}});_3n=e(function(n){var a=!1;return OOe(a6t,function(o,u){if(!a)try{a=o.call(n)===u}catch{}}),a},"tryAllTypedArrays"),iit=e(function(n){if(!n||typeof n!="object")return!1;if(!r6t||!(Symbol.toStringTag in n)){var a=p3n(u3n(n),8,-1);return f3n(i6t,a)>-1}return hse?_3n(n):!1},"isTypedArray2"),m3n=lhe("Object.prototype.toString"),o6t=LOe(),J3t=typeof globalThis>"u"?yU:globalThis,h3n=n6t(),g3n=lhe("String.prototype.slice"),s6t={},eit=Object.getPrototypeOf;o6t&&hse&&eit&&OOe(h3n,function(r){if(typeof J3t[r]=="function"){var n=new J3t[r];if(Symbol.toStringTag in n){var a=eit(n),o=hse(a,Symbol.toStringTag);if(!o){var u=eit(a);o=hse(u,Symbol.toStringTag)}s6t[r]=o.get}}});y3n=e(function(n){var a=!1;return OOe(s6t,function(o,u){if(!a)try{var f=o.call(n);f===u&&(a=f)}catch{}}),a},"tryAllTypedArrays2"),lW=e(function(n){return iit(n)?!o6t||!(Symbol.toStringTag in n)?g3n(m3n(n),8,-1):y3n(n):!1},"whichTypedArray2"),v3n=_O(function(r,n){function a(qr){return qr.call.bind(qr)}e(a,"uncurryThis");var o=typeof BigInt<"u",u=typeof Symbol<"u",f=a(Object.prototype.toString),h=a(Number.prototype.valueOf),y=a(String.prototype.valueOf),b=a(Boolean.prototype.valueOf);if(o)var x=a(BigInt.prototype.valueOf);if(u)var A=a(Symbol.prototype.valueOf);function I(qr,En){if(typeof qr!="object")return!1;try{return En(qr),!0}catch{return!1}}e(I,"checkBoxedPrimitive"),n.isArgumentsObject=HFn,n.isGeneratorFunction=XFn,n.isTypedArray=iit;function w(qr){return typeof Promise<"u"&&qr instanceof Promise||qr!==null&&typeof qr=="object"&&typeof qr.then=="function"&&typeof qr.catch=="function"}e(w,"isPromise"),n.isPromise=w;function W(qr){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(qr):iit(qr)||St(qr)}e(W,"isArrayBufferView"),n.isArrayBufferView=W;function G(qr){return lW(qr)==="Uint8Array"}e(G,"isUint8Array"),n.isUint8Array=G;function O(qr){return lW(qr)==="Uint8ClampedArray"}e(O,"isUint8ClampedArray"),n.isUint8ClampedArray=O;function k(qr){return lW(qr)==="Uint16Array"}e(k,"isUint16Array"),n.isUint16Array=k;function B(qr){return lW(qr)==="Uint32Array"}e(B,"isUint32Array"),n.isUint32Array=B;function Y(qr){return lW(qr)==="Int8Array"}e(Y,"isInt8Array"),n.isInt8Array=Y;function Q(qr){return lW(qr)==="Int16Array"}e(Q,"isInt16Array"),n.isInt16Array=Q;function ne(qr){return lW(qr)==="Int32Array"}e(ne,"isInt32Array"),n.isInt32Array=ne;function de(qr){return lW(qr)==="Float32Array"}e(de,"isFloat32Array"),n.isFloat32Array=de;function be(qr){return lW(qr)==="Float64Array"}e(be,"isFloat64Array"),n.isFloat64Array=be;function Ie(qr){return lW(qr)==="BigInt64Array"}e(Ie,"isBigInt64Array"),n.isBigInt64Array=Ie;function We(qr){return lW(qr)==="BigUint64Array"}e(We,"isBigUint64Array"),n.isBigUint64Array=We;function qe(qr){return f(qr)==="[object Map]"}e(qe,"isMapToString"),qe.working=typeof Map<"u"&&qe(new Map);function Ke(qr){return typeof Map>"u"?!1:qe.working?qe(qr):qr instanceof Map}e(Ke,"isMap"),n.isMap=Ke;function Je(qr){return f(qr)==="[object Set]"}e(Je,"isSetToString"),Je.working=typeof Set<"u"&&Je(new Set);function at(qr){return typeof Set>"u"?!1:Je.working?Je(qr):qr instanceof Set}e(at,"isSet"),n.isSet=at;function wt(qr){return f(qr)==="[object WeakMap]"}e(wt,"isWeakMapToString"),wt.working=typeof WeakMap<"u"&&wt(new WeakMap);function In(qr){return typeof WeakMap>"u"?!1:wt.working?wt(qr):qr instanceof WeakMap}e(In,"isWeakMap"),n.isWeakMap=In;function Pt(qr){return f(qr)==="[object WeakSet]"}e(Pt,"isWeakSetToString"),Pt.working=typeof WeakSet<"u"&&Pt(new WeakSet);function Tt(qr){return Pt(qr)}e(Tt,"isWeakSet"),n.isWeakSet=Tt;function Kt(qr){return f(qr)==="[object ArrayBuffer]"}e(Kt,"isArrayBufferToString"),Kt.working=typeof ArrayBuffer<"u"&&Kt(new ArrayBuffer);function ot(qr){return typeof ArrayBuffer>"u"?!1:Kt.working?Kt(qr):qr instanceof ArrayBuffer}e(ot,"isArrayBuffer"),n.isArrayBuffer=ot;function pn(qr){return f(qr)==="[object DataView]"}e(pn,"isDataViewToString"),pn.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&pn(new DataView(new ArrayBuffer(1),0,1));function St(qr){return typeof DataView>"u"?!1:pn.working?pn(qr):qr instanceof DataView}e(St,"isDataView"),n.isDataView=St;var ar=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function mr(qr){return f(qr)==="[object SharedArrayBuffer]"}e(mr,"isSharedArrayBufferToString");function hn(qr){return typeof ar>"u"?!1:(typeof mr.working>"u"&&(mr.working=mr(new ar)),mr.working?mr(qr):qr instanceof ar)}e(hn,"isSharedArrayBuffer"),n.isSharedArrayBuffer=hn;function Gn(qr){return f(qr)==="[object AsyncFunction]"}e(Gn,"isAsyncFunction"),n.isAsyncFunction=Gn;function yr(qr){return f(qr)==="[object Map Iterator]"}e(yr,"isMapIterator"),n.isMapIterator=yr;function Sr(qr){return f(qr)==="[object Set Iterator]"}e(Sr,"isSetIterator"),n.isSetIterator=Sr;function zr(qr){return f(qr)==="[object Generator]"}e(zr,"isGeneratorObject"),n.isGeneratorObject=zr;function Nt(qr){return f(qr)==="[object WebAssembly.Module]"}e(Nt,"isWebAssemblyCompiledModule"),n.isWebAssemblyCompiledModule=Nt;function ve(qr){return I(qr,h)}e(ve,"isNumberObject"),n.isNumberObject=ve;function jt(qr){return I(qr,y)}e(jt,"isStringObject"),n.isStringObject=jt;function ut(qr){return I(qr,b)}e(ut,"isBooleanObject"),n.isBooleanObject=ut;function Dt(qr){return o&&I(qr,x)}e(Dt,"isBigIntObject"),n.isBigIntObject=Dt;function bn(qr){return u&&I(qr,A)}e(bn,"isSymbolObject"),n.isSymbolObject=bn;function dn(qr){return ve(qr)||jt(qr)||ut(qr)||Dt(qr)||bn(qr)}e(dn,"isBoxedPrimitive"),n.isBoxedPrimitive=dn;function Xr(qr){return typeof Uint8Array<"u"&&(ot(qr)||hn(qr))}e(Xr,"isAnyArrayBuffer"),n.isAnyArrayBuffer=Xr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(qr){Object.defineProperty(n,qr,{enumerable:!1,value:e(function(){throw new Error(qr+" is not supported in userland")},"value")})})}),b3n=e(function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"},"isBuffer"),tS=_O(function(r,n){var a=Object.getOwnPropertyDescriptors||e(function(Gn){for(var yr=Object.keys(Gn),Sr={},zr=0;zr<yr.length;zr++)Sr[yr[zr]]=Object.getOwnPropertyDescriptor(Gn,yr[zr]);return Sr},"getOwnPropertyDescriptors2"),o=/%[sdj%]/g;n.format=function(hn){if(!be(hn)){for(var Gn=[],yr=0;yr<arguments.length;yr++)Gn.push(y(arguments[yr]));return Gn.join(" ")}for(var yr=1,Sr=arguments,zr=Sr.length,Nt=String(hn).replace(o,function(jt){if(jt==="%%")return"%";if(yr>=zr)return jt;switch(jt){case"%s":return String(Sr[yr++]);case"%d":return Number(Sr[yr++]);case"%j":try{return JSON.stringify(Sr[yr++])}catch{return"[Circular]"}default:return jt}}),ve=Sr[yr];yr<zr;ve=Sr[++yr])Q(ve)||!Ke(ve)?Nt+=" "+ve:Nt+=" "+y(ve);return Nt},n.deprecate=function(hn,Gn){if(typeof Mt<"u"&&Mt.noDeprecation===!0)return hn;if(typeof Mt>"u")return function(){return n.deprecate(hn,Gn).apply(this,arguments)};var yr=!1;function Sr(){if(!yr){if(Mt.throwDeprecation)throw new Error(Gn);Mt.traceDeprecation?console.trace(Gn):console.error(Gn),yr=!0}return hn.apply(this,arguments)}return e(Sr,"deprecated"),Sr};var u={},f=/^$/;if(Mt.env.NODE_DEBUG){var h=Mt.env.NODE_DEBUG;h=h.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),f=new RegExp("^"+h+"$","i")}n.debuglog=function(hn){if(hn=hn.toUpperCase(),!u[hn])if(f.test(hn)){var Gn=Mt.pid;u[hn]=function(){var yr=n.format.apply(n,arguments);console.error("%s %d: %s",hn,Gn,yr)}}else u[hn]=function(){};return u[hn]};function y(hn,Gn){var yr={seen:[],stylize:x};return arguments.length>=3&&(yr.depth=arguments[2]),arguments.length>=4&&(yr.colors=arguments[3]),Y(Gn)?yr.showHidden=Gn:Gn&&n._extend(yr,Gn),We(yr.showHidden)&&(yr.showHidden=!1),We(yr.depth)&&(yr.depth=2),We(yr.colors)&&(yr.colors=!1),We(yr.customInspect)&&(yr.customInspect=!0),yr.colors&&(yr.stylize=b),I(yr,hn,yr.depth)}e(y,"inspect2"),n.inspect=y,y.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},y.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function b(hn,Gn){var yr=y.styles[Gn];return yr?"\x1B["+y.colors[yr][0]+"m"+hn+"\x1B["+y.colors[yr][1]+"m":hn}e(b,"stylizeWithColor");function x(hn,Gn){return hn}e(x,"stylizeNoColor");function A(hn){var Gn={};return hn.forEach(function(yr,Sr){Gn[yr]=!0}),Gn}e(A,"arrayToHash");function I(hn,Gn,yr){if(hn.customInspect&&Gn&&wt(Gn.inspect)&&Gn.inspect!==n.inspect&&!(Gn.constructor&&Gn.constructor.prototype===Gn)){var Sr=Gn.inspect(yr,hn);return be(Sr)||(Sr=I(hn,Sr,yr)),Sr}var zr=w(hn,Gn);if(zr)return zr;var Nt=Object.keys(Gn),ve=A(Nt);if(hn.showHidden&&(Nt=Object.getOwnPropertyNames(Gn)),at(Gn)&&(Nt.indexOf("message")>=0||Nt.indexOf("description")>=0))return W(Gn);if(Nt.length===0){if(wt(Gn)){var jt=Gn.name?": "+Gn.name:"";return hn.stylize("[Function"+jt+"]","special")}if(qe(Gn))return hn.stylize(RegExp.prototype.toString.call(Gn),"regexp");if(Je(Gn))return hn.stylize(Date.prototype.toString.call(Gn),"date");if(at(Gn))return W(Gn)}var ut="",Dt=!1,bn=["{","}"];if(B(Gn)&&(Dt=!0,bn=["[","]"]),wt(Gn)){var dn=Gn.name?": "+Gn.name:"";ut=" [Function"+dn+"]"}if(qe(Gn)&&(ut=" "+RegExp.prototype.toString.call(Gn)),Je(Gn)&&(ut=" "+Date.prototype.toUTCString.call(Gn)),at(Gn)&&(ut=" "+W(Gn)),Nt.length===0&&(!Dt||Gn.length==0))return bn[0]+ut+bn[1];if(yr<0)return qe(Gn)?hn.stylize(RegExp.prototype.toString.call(Gn),"regexp"):hn.stylize("[Object]","special");hn.seen.push(Gn);var Xr;return Dt?Xr=G(hn,Gn,yr,ve,Nt):Xr=Nt.map(function(qr){return O(hn,Gn,yr,ve,qr,Dt)}),hn.seen.pop(),k(Xr,ut,bn)}e(I,"formatValue");function w(hn,Gn){if(We(Gn))return hn.stylize("undefined","undefined");if(be(Gn)){var yr="'"+JSON.stringify(Gn).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return hn.stylize(yr,"string")}if(de(Gn))return hn.stylize(""+Gn,"number");if(Y(Gn))return hn.stylize(""+Gn,"boolean");if(Q(Gn))return hn.stylize("null","null")}e(w,"formatPrimitive");function W(hn){return"["+Error.prototype.toString.call(hn)+"]"}e(W,"formatError");function G(hn,Gn,yr,Sr,zr){for(var Nt=[],ve=0,jt=Gn.length;ve<jt;++ve)pn(Gn,String(ve))?Nt.push(O(hn,Gn,yr,Sr,String(ve),!0)):Nt.push("");return zr.forEach(function(ut){ut.match(/^\d+$/)||Nt.push(O(hn,Gn,yr,Sr,ut,!0))}),Nt}e(G,"formatArray");function O(hn,Gn,yr,Sr,zr,Nt){var ve,jt,ut;if(ut=Object.getOwnPropertyDescriptor