/* THIS IS A GENERATED/BUNDLED FILE BY BUN if you want to view the source, please visit https://github.com/jacksteamdev/obsidian-mcp-tools */ var Jw=Object.create;var{getPrototypeOf:Gw,defineProperty:A7,getOwnPropertyNames:HU,getOwnPropertyDescriptor:Yw}=Object,zU=Object.prototype.hasOwnProperty;var Z8=(Q,X,Z)=>{Z=Q!=null?Jw(Gw(Q)):{};let J=X||!Q||!Q.__esModule?A7(Z,"default",{value:Q,enumerable:!0}):Z;for(let G of HU(Q))if(!zU.call(J,G))A7(J,G,{get:()=>Q[G],enumerable:!0});return J},qU=new WeakMap,Ww=(Q)=>{var X=qU.get(Q),Z;if(X)return X;if(X=A7({},"__esModule",{value:!0}),Q&&typeof Q==="object"||typeof Q==="function")HU(Q).map((J)=>!zU.call(X,J)&&A7(X,J,{get:()=>Q[J],enumerable:!(Z=Yw(Q,J))||Z.enumerable}));return qU.set(Q,X),X},r=(Q,X)=>()=>(X||Q((X={exports:{}}).exports,X),X.exports);var LJ=(Q,X)=>{for(var Z in X)A7(Q,Z,{get:X[Z],enumerable:!0,configurable:!0,set:(J)=>X[Z]=()=>J})};var t0=r((QG)=>{Object.defineProperty(QG,"__esModule",{value:!0});QG.isFunction=void 0;function Sj(Q){return typeof Q==="function"}QG.isFunction=Sj});var iQ=r((ZG)=>{Object.defineProperty(ZG,"__esModule",{value:!0});ZG.createErrorClass=void 0;function kj(Q){var X=function(J){Error.call(J),J.stack=new Error().stack},Z=Q(X);return Z.prototype=Object.create(Error.prototype),Z.prototype.constructor=Z,Z}ZG.createErrorClass=kj});var Gz=r((XG)=>{Object.defineProperty(XG,"__esModule",{value:!0});XG.UnsubscriptionError=void 0;var yj=iQ();XG.UnsubscriptionError=yj.createErrorClass(function(Q){return function X(Z){Q(this),this.message=Z?Z.length+` errors occurred during unsubscription: `+Z.map(function(J,G){return G+1+") "+J.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=Z}})});var MQ=r((JG)=>{Object.defineProperty(JG,"__esModule",{value:!0});JG.arrRemove=void 0;function xj(Q,X){if(Q){var Z=Q.indexOf(X);0<=Z&&Q.splice(Z,1)}}JG.arrRemove=xj});var o8=r((O8)=>{var JF=O8&&O8.__values||function(Q){var X=typeof Symbol==="function"&&Symbol.iterator,Z=X&&Q[X],J=0;if(Z)return Z.call(Q);if(Q&&typeof Q.length==="number")return{next:function(){if(Q&&J>=Q.length)Q=void 0;return{value:Q&&Q[J++],done:!Q}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")},GF=O8&&O8.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},YF=O8&&O8.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{Object.defineProperty(GG,"__esModule",{value:!0});GG.config=void 0;GG.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var qz=r((a9)=>{var HF=a9&&a9.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},zF=a9&&a9.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{Object.defineProperty(YG,"__esModule",{value:!0});YG.reportUnhandledError=void 0;var gj=Q5(),hj=qz();function fj(Q){hj.timeoutProvider.setTimeout(function(){var X=gj.config.onUnhandledError;if(X)X(Q);else throw Q})}YG.reportUnhandledError=fj});var s6=r((WG)=>{Object.defineProperty(WG,"__esModule",{value:!0});WG.noop=void 0;function bj(){}WG.noop=bj});var KF=r((s9)=>{Object.defineProperty(s9,"__esModule",{value:!0});s9.createNotification=s9.nextNotification=s9.errorNotification=s9.COMPLETE_NOTIFICATION=void 0;s9.COMPLETE_NOTIFICATION=function(){return qG("C",void 0,void 0)}();function mj(Q){return qG("E",void 0,Q)}s9.errorNotification=mj;function _j(Q){return qG("N",Q,void 0)}s9.nextNotification=_j;function qG(Q,X,Z){return{kind:Q,value:X,error:Z}}s9.createNotification=qG});var HG=r((Z5)=>{Object.defineProperty(Z5,"__esModule",{value:!0});Z5.captureError=Z5.errorContext=void 0;var $F=Q5(),n4=null;function dj(Q){if($F.config.useDeprecatedSynchronousErrorHandling){var X=!n4;if(X)n4={errorThrown:!1,error:null};if(Q(),X){var Z=n4,J=Z.errorThrown,G=Z.error;if(n4=null,J)throw G}}else Q()}Z5.errorContext=dj;function uj(Q){if($F.config.useDeprecatedSynchronousErrorHandling&&n4)n4.errorThrown=!0,n4.error=Q}Z5.captureError=uj});var X5=r((E9)=>{var VF=E9&&E9.__extends||function(){var Q=function(X,Z){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,G){J.__proto__=G}||function(J,G){for(var Y in G)if(Object.prototype.hasOwnProperty.call(G,Y))J[Y]=G[Y]},Q(X,Z)};return function(X,Z){if(typeof Z!=="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");Q(X,Z);function J(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(J.prototype=Z.prototype,new J)}}();Object.defineProperty(E9,"__esModule",{value:!0});E9.EMPTY_OBSERVER=E9.SafeSubscriber=E9.Subscriber=void 0;var pj=t0(),BF=o8(),Bz=Q5(),lj=Hz(),UF=s6(),zz=KF(),cj=qz(),ij=HG(),PF=function(Q){VF(X,Q);function X(Z){var J=Q.call(this)||this;if(J.isStopped=!1,Z){if(J.destination=Z,BF.isSubscription(Z))Z.add(J)}else J.destination=E9.EMPTY_OBSERVER;return J}return X.create=function(Z,J,G){return new FF(Z,J,G)},X.prototype.next=function(Z){if(this.isStopped)$z(zz.nextNotification(Z),this);else this._next(Z)},X.prototype.error=function(Z){if(this.isStopped)$z(zz.errorNotification(Z),this);else this.isStopped=!0,this._error(Z)},X.prototype.complete=function(){if(this.isStopped)$z(zz.COMPLETE_NOTIFICATION,this);else this.isStopped=!0,this._complete()},X.prototype.unsubscribe=function(){if(!this.closed)this.isStopped=!0,Q.prototype.unsubscribe.call(this),this.destination=null},X.prototype._next=function(Z){this.destination.next(Z)},X.prototype._error=function(Z){try{this.destination.error(Z)}finally{this.unsubscribe()}},X.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},X}(BF.Subscription);E9.Subscriber=PF;var nj=Function.prototype.bind;function Kz(Q,X){return nj.call(Q,X)}var oj=function(){function Q(X){this.partialObserver=X}return Q.prototype.next=function(X){var Z=this.partialObserver;if(Z.next)try{Z.next(X)}catch(J){zG(J)}},Q.prototype.error=function(X){var Z=this.partialObserver;if(Z.error)try{Z.error(X)}catch(J){zG(J)}else zG(X)},Q.prototype.complete=function(){var X=this.partialObserver;if(X.complete)try{X.complete()}catch(Z){zG(Z)}},Q}(),FF=function(Q){VF(X,Q);function X(Z,J,G){var Y=Q.call(this)||this,H;if(pj.isFunction(Z)||!Z)H={next:Z!==null&&Z!==void 0?Z:void 0,error:J!==null&&J!==void 0?J:void 0,complete:G!==null&&G!==void 0?G:void 0};else{var K;if(Y&&Bz.config.useDeprecatedNextContext)K=Object.create(Z),K.unsubscribe=function(){return Y.unsubscribe()},H={next:Z.next&&Kz(Z.next,K),error:Z.error&&Kz(Z.error,K),complete:Z.complete&&Kz(Z.complete,K)};else H=Z}return Y.destination=new oj(H),Y}return X}(PF);E9.SafeSubscriber=FF;function zG(Q){if(Bz.config.useDeprecatedSynchronousErrorHandling)ij.captureError(Q);else lj.reportUnhandledError(Q)}function aj(Q){throw Q}function $z(Q,X){var Z=Bz.config.onStoppedNotification;Z&&cj.timeoutProvider.setTimeout(function(){return Z(Q,X)})}E9.EMPTY_OBSERVER={closed:!0,next:UF.noop,error:aj,complete:UF.noop}});var a7=r((KG)=>{Object.defineProperty(KG,"__esModule",{value:!0});KG.observable=void 0;KG.observable=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}()});var t6=r(($G)=>{Object.defineProperty($G,"__esModule",{value:!0});$G.identity=void 0;function sj(Q){return Q}$G.identity=sj});var s7=r((J5)=>{Object.defineProperty(J5,"__esModule",{value:!0});J5.pipeFromArray=J5.pipe=void 0;var tj=t6();function rj(){var Q=[];for(var X=0;X{Object.defineProperty(BG,"__esModule",{value:!0});BG.Observable=void 0;var Vz=X5(),ej=o8(),QS=a7(),ZS=s7(),XS=Q5(),Uz=t0(),JS=HG(),GS=function(){function Q(X){if(X)this._subscribe=X}return Q.prototype.lift=function(X){var Z=new Q;return Z.source=this,Z.operator=X,Z},Q.prototype.subscribe=function(X,Z,J){var G=this,Y=WS(X)?X:new Vz.SafeSubscriber(X,Z,J);return JS.errorContext(function(){var H=G,K=H.operator,z=H.source;Y.add(K?K.call(Y,z):z?G._subscribe(Y):G._trySubscribe(Y))}),Y},Q.prototype._trySubscribe=function(X){try{return this._subscribe(X)}catch(Z){X.error(Z)}},Q.prototype.forEach=function(X,Z){var J=this;return Z=LF(Z),new Z(function(G,Y){var H=new Vz.SafeSubscriber({next:function(K){try{X(K)}catch(z){Y(z),H.unsubscribe()}},error:Y,complete:G});J.subscribe(H)})},Q.prototype._subscribe=function(X){var Z;return(Z=this.source)===null||Z===void 0?void 0:Z.subscribe(X)},Q.prototype[QS.observable]=function(){return this},Q.prototype.pipe=function(){var X=[];for(var Z=0;Z{Object.defineProperty(G5,"__esModule",{value:!0});G5.operate=G5.hasLift=void 0;var qS=t0();function CF(Q){return qS.isFunction(Q===null||Q===void 0?void 0:Q.lift)}G5.hasLift=CF;function HS(Q){return function(X){if(CF(X))return X.lift(function(Z){try{return Q(Z,this)}catch(J){this.error(J)}});throw new TypeError("Unable to lift unknown Observable type")}}G5.operate=HS});var Q0=r((nQ)=>{var zS=nQ&&nQ.__extends||function(){var Q=function(X,Z){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,G){J.__proto__=G}||function(J,G){for(var Y in G)if(Object.prototype.hasOwnProperty.call(G,Y))J[Y]=G[Y]},Q(X,Z)};return function(X,Z){if(typeof Z!=="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");Q(X,Z);function J(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(J.prototype=Z.prototype,new J)}}();Object.defineProperty(nQ,"__esModule",{value:!0});nQ.OperatorSubscriber=nQ.createOperatorSubscriber=void 0;var KS=X5();function $S(Q,X,Z,J,G){return new NF(Q,X,Z,J,G)}nQ.createOperatorSubscriber=$S;var NF=function(Q){zS(X,Q);function X(Z,J,G,Y,H,K){var z=Q.call(this,Z)||this;return z.onFinalize=H,z.shouldUnsubscribe=K,z._next=J?function(W){try{J(W)}catch($){Z.error($)}}:Q.prototype._next,z._error=Y?function(W){try{Y(W)}catch($){Z.error($)}finally{this.unsubscribe()}}:Q.prototype._error,z._complete=G?function(){try{G()}catch(W){Z.error(W)}finally{this.unsubscribe()}}:Q.prototype._complete,z}return X.prototype.unsubscribe=function(){var Z;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var J=this.closed;Q.prototype.unsubscribe.call(this),!J&&((Z=this.onFinalize)===null||Z===void 0||Z.call(this))}},X}(KS.Subscriber);nQ.OperatorSubscriber=NF});var Pz=r((UG)=>{Object.defineProperty(UG,"__esModule",{value:!0});UG.refCount=void 0;var BS=l1(),US=Q0();function VS(){return BS.operate(function(Q,X){var Z=null;Q._refCount++;var J=US.createOperatorSubscriber(X,void 0,void 0,void 0,function(){if(!Q||Q._refCount<=0||0<--Q._refCount){Z=null;return}var G=Q._connection,Y=Z;if(Z=null,G&&(!Y||G===Y))G.unsubscribe();X.unsubscribe()});if(Q.subscribe(J),!J.closed)Z=Q.connect()})}UG.refCount=VS});var t7=r((Y5)=>{var PS=Y5&&Y5.__extends||function(){var Q=function(X,Z){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,G){J.__proto__=G}||function(J,G){for(var Y in G)if(Object.prototype.hasOwnProperty.call(G,Y))J[Y]=G[Y]},Q(X,Z)};return function(X,Z){if(typeof Z!=="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");Q(X,Z);function J(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(J.prototype=Z.prototype,new J)}}();Object.defineProperty(Y5,"__esModule",{value:!0});Y5.ConnectableObservable=void 0;var FS=Q6(),TF=o8(),DS=Pz(),LS=Q0(),CS=l1(),NS=function(Q){PS(X,Q);function X(Z,J){var G=Q.call(this)||this;if(G.source=Z,G.subjectFactory=J,G._subject=null,G._refCount=0,G._connection=null,CS.hasLift(Z))G.lift=Z.lift;return G}return X.prototype._subscribe=function(Z){return this.getSubject().subscribe(Z)},X.prototype.getSubject=function(){var Z=this._subject;if(!Z||Z.isStopped)this._subject=this.subjectFactory();return this._subject},X.prototype._teardown=function(){this._refCount=0;var Z=this._connection;this._subject=this._connection=null,Z===null||Z===void 0||Z.unsubscribe()},X.prototype.connect=function(){var Z=this,J=this._connection;if(!J){J=this._connection=new TF.Subscription;var G=this.getSubject();if(J.add(this.source.subscribe(LS.createOperatorSubscriber(G,void 0,function(){Z._teardown(),G.complete()},function(Y){Z._teardown(),G.error(Y)},function(){return Z._teardown()}))),J.closed)this._connection=null,J=TF.Subscription.EMPTY}return J},X.prototype.refCount=function(){return DS.refCount()(this)},X}(FS.Observable);Y5.ConnectableObservable=NS});var MF=r((r7)=>{Object.defineProperty(r7,"__esModule",{value:!0});r7.performanceTimestampProvider=void 0;r7.performanceTimestampProvider={now:function(){return(r7.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var Fz=r((j9)=>{var IF=j9&&j9.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},RF=j9&&j9.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{Object.defineProperty(VG,"__esModule",{value:!0});VG.animationFrames=void 0;var MS=Q6(),IS=MF(),AF=Fz();function RS(Q){return Q?OF(Q):AS}VG.animationFrames=RS;function OF(Q){return new MS.Observable(function(X){var Z=Q||IS.performanceTimestampProvider,J=Z.now(),G=0,Y=function(){if(!X.closed)G=AF.animationFrameProvider.requestAnimationFrame(function(H){G=0;var K=Z.now();X.next({timestamp:Q?K:H,elapsed:K-J}),Y()})};return Y(),function(){if(G)AF.animationFrameProvider.cancelAnimationFrame(G)}})}var AS=OF()});var Dz=r((PG)=>{Object.defineProperty(PG,"__esModule",{value:!0});PG.ObjectUnsubscribedError=void 0;var OS=iQ();PG.ObjectUnsubscribedError=OS.createErrorClass(function(Q){return function X(){Q(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var r6=r((t9)=>{var jF=t9&&t9.__extends||function(){var Q=function(X,Z){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,G){J.__proto__=G}||function(J,G){for(var Y in G)if(Object.prototype.hasOwnProperty.call(G,Y))J[Y]=G[Y]},Q(X,Z)};return function(X,Z){if(typeof Z!=="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");Q(X,Z);function J(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(J.prototype=Z.prototype,new J)}}(),wS=t9&&t9.__values||function(Q){var X=typeof Symbol==="function"&&Symbol.iterator,Z=X&&Q[X],J=0;if(Z)return Z.call(Q);if(Q&&typeof Q.length==="number")return{next:function(){if(Q&&J>=Q.length)Q=void 0;return{value:Q&&Q[J++],done:!Q}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t9,"__esModule",{value:!0});t9.AnonymousSubject=t9.Subject=void 0;var EF=Q6(),Cz=o8(),ES=Dz(),jS=MQ(),Lz=HG(),SF=function(Q){jF(X,Q);function X(){var Z=Q.call(this)||this;return Z.closed=!1,Z.currentObservers=null,Z.observers=[],Z.isStopped=!1,Z.hasError=!1,Z.thrownError=null,Z}return X.prototype.lift=function(Z){var J=new Nz(this,this);return J.operator=Z,J},X.prototype._throwIfClosed=function(){if(this.closed)throw new ES.ObjectUnsubscribedError},X.prototype.next=function(Z){var J=this;Lz.errorContext(function(){var G,Y;if(J._throwIfClosed(),!J.isStopped){if(!J.currentObservers)J.currentObservers=Array.from(J.observers);try{for(var H=wS(J.currentObservers),K=H.next();!K.done;K=H.next()){var z=K.value;z.next(Z)}}catch(W){G={error:W}}finally{try{if(K&&!K.done&&(Y=H.return))Y.call(H)}finally{if(G)throw G.error}}}})},X.prototype.error=function(Z){var J=this;Lz.errorContext(function(){if(J._throwIfClosed(),!J.isStopped){J.hasError=J.isStopped=!0,J.thrownError=Z;var G=J.observers;while(G.length)G.shift().error(Z)}})},X.prototype.complete=function(){var Z=this;Lz.errorContext(function(){if(Z._throwIfClosed(),!Z.isStopped){Z.isStopped=!0;var J=Z.observers;while(J.length)J.shift().complete()}})},X.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(X.prototype,"observed",{get:function(){var Z;return((Z=this.observers)===null||Z===void 0?void 0:Z.length)>0},enumerable:!1,configurable:!0}),X.prototype._trySubscribe=function(Z){return this._throwIfClosed(),Q.prototype._trySubscribe.call(this,Z)},X.prototype._subscribe=function(Z){return this._throwIfClosed(),this._checkFinalizedStatuses(Z),this._innerSubscribe(Z)},X.prototype._innerSubscribe=function(Z){var J=this,G=this,Y=G.hasError,H=G.isStopped,K=G.observers;if(Y||H)return Cz.EMPTY_SUBSCRIPTION;return this.currentObservers=null,K.push(Z),new Cz.Subscription(function(){J.currentObservers=null,jS.arrRemove(K,Z)})},X.prototype._checkFinalizedStatuses=function(Z){var J=this,G=J.hasError,Y=J.thrownError,H=J.isStopped;if(G)Z.error(Y);else if(H)Z.complete()},X.prototype.asObservable=function(){var Z=new EF.Observable;return Z.source=this,Z},X.create=function(Z,J){return new Nz(Z,J)},X}(EF.Observable);t9.Subject=SF;var Nz=function(Q){jF(X,Q);function X(Z,J){var G=Q.call(this)||this;return G.destination=Z,G.source=J,G}return X.prototype.next=function(Z){var J,G;(G=(J=this.destination)===null||J===void 0?void 0:J.next)===null||G===void 0||G.call(J,Z)},X.prototype.error=function(Z){var J,G;(G=(J=this.destination)===null||J===void 0?void 0:J.error)===null||G===void 0||G.call(J,Z)},X.prototype.complete=function(){var Z,J;(J=(Z=this.destination)===null||Z===void 0?void 0:Z.complete)===null||J===void 0||J.call(Z)},X.prototype._subscribe=function(Z){var J,G;return(G=(J=this.source)===null||J===void 0?void 0:J.subscribe(Z))!==null&&G!==void 0?G:Cz.EMPTY_SUBSCRIPTION},X}(SF);t9.AnonymousSubject=Nz});var Tz=r((W5)=>{var SS=W5&&W5.__extends||function(){var Q=function(X,Z){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,G){J.__proto__=G}||function(J,G){for(var Y in G)if(Object.prototype.hasOwnProperty.call(G,Y))J[Y]=G[Y]},Q(X,Z)};return function(X,Z){if(typeof Z!=="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");Q(X,Z);function J(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(J.prototype=Z.prototype,new J)}}();Object.defineProperty(W5,"__esModule",{value:!0});W5.BehaviorSubject=void 0;var kS=r6(),yS=function(Q){SS(X,Q);function X(Z){var J=Q.call(this)||this;return J._value=Z,J}return Object.defineProperty(X.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),X.prototype._subscribe=function(Z){var J=Q.prototype._subscribe.call(this,Z);return!J.closed&&Z.next(this._value),J},X.prototype.getValue=function(){var Z=this,J=Z.hasError,G=Z.thrownError,Y=Z._value;if(J)throw G;return this._throwIfClosed(),Y},X.prototype.next=function(Z){Q.prototype.next.call(this,this._value=Z)},X}(kS.Subject);W5.BehaviorSubject=yS});var FG=r((e7)=>{Object.defineProperty(e7,"__esModule",{value:!0});e7.dateTimestampProvider=void 0;e7.dateTimestampProvider={now:function(){return(e7.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var DG=r((q5)=>{var xS=q5&&q5.__extends||function(){var Q=function(X,Z){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,G){J.__proto__=G}||function(J,G){for(var Y in G)if(Object.prototype.hasOwnProperty.call(G,Y))J[Y]=G[Y]},Q(X,Z)};return function(X,Z){if(typeof Z!=="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");Q(X,Z);function J(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(J.prototype=Z.prototype,new J)}}();Object.defineProperty(q5,"__esModule",{value:!0});q5.ReplaySubject=void 0;var vS=r6(),gS=FG(),hS=function(Q){xS(X,Q);function X(Z,J,G){if(Z===void 0)Z=1/0;if(J===void 0)J=1/0;if(G===void 0)G=gS.dateTimestampProvider;var Y=Q.call(this)||this;return Y._bufferSize=Z,Y._windowTime=J,Y._timestampProvider=G,Y._buffer=[],Y._infiniteTimeWindow=!0,Y._infiniteTimeWindow=J===1/0,Y._bufferSize=Math.max(1,Z),Y._windowTime=Math.max(1,J),Y}return X.prototype.next=function(Z){var J=this,G=J.isStopped,Y=J._buffer,H=J._infiniteTimeWindow,K=J._timestampProvider,z=J._windowTime;if(!G)Y.push(Z),!H&&Y.push(K.now()+z);this._trimBuffer(),Q.prototype.next.call(this,Z)},X.prototype._subscribe=function(Z){this._throwIfClosed(),this._trimBuffer();var J=this._innerSubscribe(Z),G=this,Y=G._infiniteTimeWindow,H=G._buffer,K=H.slice();for(var z=0;z{var fS=H5&&H5.__extends||function(){var Q=function(X,Z){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,G){J.__proto__=G}||function(J,G){for(var Y in G)if(Object.prototype.hasOwnProperty.call(G,Y))J[Y]=G[Y]},Q(X,Z)};return function(X,Z){if(typeof Z!=="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");Q(X,Z);function J(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(J.prototype=Z.prototype,new J)}}();Object.defineProperty(H5,"__esModule",{value:!0});H5.AsyncSubject=void 0;var bS=r6(),mS=function(Q){fS(X,Q);function X(){var Z=Q!==null&&Q.apply(this,arguments)||this;return Z._value=null,Z._hasValue=!1,Z._isComplete=!1,Z}return X.prototype._checkFinalizedStatuses=function(Z){var J=this,G=J.hasError,Y=J._hasValue,H=J._value,K=J.thrownError,z=J.isStopped,W=J._isComplete;if(G)Z.error(K);else if(z||W)Y&&Z.next(H),Z.complete()},X.prototype.next=function(Z){if(!this.isStopped)this._value=Z,this._hasValue=!0},X.prototype.complete=function(){var Z=this,J=Z._hasValue,G=Z._value,Y=Z._isComplete;if(!Y)this._isComplete=!0,J&&Q.prototype.next.call(this,G),Q.prototype.complete.call(this)},X}(bS.Subject);H5.AsyncSubject=mS});var kF=r((z5)=>{var _S=z5&&z5.__extends||function(){var Q=function(X,Z){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,G){J.__proto__=G}||function(J,G){for(var Y in G)if(Object.prototype.hasOwnProperty.call(G,Y))J[Y]=G[Y]},Q(X,Z)};return function(X,Z){if(typeof Z!=="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");Q(X,Z);function J(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(J.prototype=Z.prototype,new J)}}();Object.defineProperty(z5,"__esModule",{value:!0});z5.Action=void 0;var dS=o8(),uS=function(Q){_S(X,Q);function X(Z,J){return Q.call(this)||this}return X.prototype.schedule=function(Z,J){if(J===void 0)J=0;return this},X}(dS.Subscription);z5.Action=uS});var vF=r((r9)=>{var yF=r9&&r9.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},xF=r9&&r9.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{var pS=K5&&K5.__extends||function(){var Q=function(X,Z){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,G){J.__proto__=G}||function(J,G){for(var Y in G)if(Object.prototype.hasOwnProperty.call(G,Y))J[Y]=G[Y]},Q(X,Z)};return function(X,Z){if(typeof Z!=="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");Q(X,Z);function J(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(J.prototype=Z.prototype,new J)}}();Object.defineProperty(K5,"__esModule",{value:!0});K5.AsyncAction=void 0;var lS=kF(),gF=vF(),cS=MQ(),iS=function(Q){pS(X,Q);function X(Z,J){var G=Q.call(this,Z,J)||this;return G.scheduler=Z,G.work=J,G.pending=!1,G}return X.prototype.schedule=function(Z,J){var G;if(J===void 0)J=0;if(this.closed)return this;this.state=Z;var Y=this.id,H=this.scheduler;if(Y!=null)this.id=this.recycleAsyncId(H,Y,J);return this.pending=!0,this.delay=J,this.id=(G=this.id)!==null&&G!==void 0?G:this.requestAsyncId(H,this.id,J),this},X.prototype.requestAsyncId=function(Z,J,G){if(G===void 0)G=0;return gF.intervalProvider.setInterval(Z.flush.bind(Z,this),G)},X.prototype.recycleAsyncId=function(Z,J,G){if(G===void 0)G=0;if(G!=null&&this.delay===G&&this.pending===!1)return J;if(J!=null)gF.intervalProvider.clearInterval(J);return},X.prototype.execute=function(Z,J){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var G=this._execute(Z,J);if(G)return G;else if(this.pending===!1&&this.id!=null)this.id=this.recycleAsyncId(this.scheduler,this.id,null)},X.prototype._execute=function(Z,J){var G=!1,Y;try{this.work(Z)}catch(H){G=!0,Y=H?H:new Error("Scheduled action threw falsy error")}if(G)return this.unsubscribe(),Y},X.prototype.unsubscribe=function(){if(!this.closed){var Z=this,J=Z.id,G=Z.scheduler,Y=G.actions;if(this.work=this.state=this.scheduler=null,this.pending=!1,cS.arrRemove(Y,this),J!=null)this.id=this.recycleAsyncId(G,J,null);this.delay=null,Q.prototype.unsubscribe.call(this)}},X}(lS.Action);K5.AsyncAction=iS});var fF=r((B5)=>{Object.defineProperty(B5,"__esModule",{value:!0});B5.TestTools=B5.Immediate=void 0;var nS=1,Mz,CG={};function hF(Q){if(Q in CG)return delete CG[Q],!0;return!1}B5.Immediate={setImmediate:function(Q){var X=nS++;if(CG[X]=!0,!Mz)Mz=Promise.resolve();return Mz.then(function(){return hF(X)&&Q()}),X},clearImmediate:function(Q){hF(Q)}};B5.TestTools={pending:function(){return Object.keys(CG).length}}});var mF=r((e9)=>{var oS=e9&&e9.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},aS=e9&&e9.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{var rS=U5&&U5.__extends||function(){var Q=function(X,Z){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,G){J.__proto__=G}||function(J,G){for(var Y in G)if(Object.prototype.hasOwnProperty.call(G,Y))J[Y]=G[Y]},Q(X,Z)};return function(X,Z){if(typeof Z!=="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");Q(X,Z);function J(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(J.prototype=Z.prototype,new J)}}();Object.defineProperty(U5,"__esModule",{value:!0});U5.AsapAction=void 0;var eS=$5(),_F=mF(),Qk=function(Q){rS(X,Q);function X(Z,J){var G=Q.call(this,Z,J)||this;return G.scheduler=Z,G.work=J,G}return X.prototype.requestAsyncId=function(Z,J,G){if(G===void 0)G=0;if(G!==null&&G>0)return Q.prototype.requestAsyncId.call(this,Z,J,G);return Z.actions.push(this),Z._scheduled||(Z._scheduled=_F.immediateProvider.setImmediate(Z.flush.bind(Z,void 0)))},X.prototype.recycleAsyncId=function(Z,J,G){var Y;if(G===void 0)G=0;if(G!=null?G>0:this.delay>0)return Q.prototype.recycleAsyncId.call(this,Z,J,G);var H=Z.actions;if(J!=null&&((Y=H[H.length-1])===null||Y===void 0?void 0:Y.id)!==J){if(_F.immediateProvider.clearImmediate(J),Z._scheduled===J)Z._scheduled=void 0}return},X}(eS.AsyncAction);U5.AsapAction=Qk});var Iz=r((NG)=>{Object.defineProperty(NG,"__esModule",{value:!0});NG.Scheduler=void 0;var Zk=FG(),Xk=function(){function Q(X,Z){if(Z===void 0)Z=Q.now;this.schedulerActionCtor=X,this.now=Z}return Q.prototype.schedule=function(X,Z,J){if(Z===void 0)Z=0;return new this.schedulerActionCtor(this,X).schedule(J,Z)},Q.now=Zk.dateTimestampProvider.now,Q}();NG.Scheduler=Xk});var P5=r((V5)=>{var Jk=V5&&V5.__extends||function(){var Q=function(X,Z){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,G){J.__proto__=G}||function(J,G){for(var Y in G)if(Object.prototype.hasOwnProperty.call(G,Y))J[Y]=G[Y]},Q(X,Z)};return function(X,Z){if(typeof Z!=="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");Q(X,Z);function J(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(J.prototype=Z.prototype,new J)}}();Object.defineProperty(V5,"__esModule",{value:!0});V5.AsyncScheduler=void 0;var uF=Iz(),Gk=function(Q){Jk(X,Q);function X(Z,J){if(J===void 0)J=uF.Scheduler.now;var G=Q.call(this,Z,J)||this;return G.actions=[],G._active=!1,G}return X.prototype.flush=function(Z){var J=this.actions;if(this._active){J.push(Z);return}var G;this._active=!0;do if(G=Z.execute(Z.state,Z.delay))break;while(Z=J.shift());if(this._active=!1,G){while(Z=J.shift())Z.unsubscribe();throw G}},X}(uF.Scheduler);V5.AsyncScheduler=Gk});var pF=r((F5)=>{var Yk=F5&&F5.__extends||function(){var Q=function(X,Z){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,G){J.__proto__=G}||function(J,G){for(var Y in G)if(Object.prototype.hasOwnProperty.call(G,Y))J[Y]=G[Y]},Q(X,Z)};return function(X,Z){if(typeof Z!=="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");Q(X,Z);function J(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(J.prototype=Z.prototype,new J)}}();Object.defineProperty(F5,"__esModule",{value:!0});F5.AsapScheduler=void 0;var Wk=P5(),qk=function(Q){Yk(X,Q);function X(){return Q!==null&&Q.apply(this,arguments)||this}return X.prototype.flush=function(Z){this._active=!0;var J=this._scheduled;this._scheduled=void 0;var G=this.actions,Y;Z=Z||G.shift();do if(Y=Z.execute(Z.state,Z.delay))break;while((Z=G[0])&&Z.id===J&&G.shift());if(this._active=!1,Y){while((Z=G[0])&&Z.id===J&&G.shift())Z.unsubscribe();throw Y}},X}(Wk.AsyncScheduler);F5.AsapScheduler=qk});var lF=r((o4)=>{Object.defineProperty(o4,"__esModule",{value:!0});o4.asap=o4.asapScheduler=void 0;var Hk=dF(),zk=pF();o4.asapScheduler=new zk.AsapScheduler(Hk.AsapAction);o4.asap=o4.asapScheduler});var w8=r((a4)=>{Object.defineProperty(a4,"__esModule",{value:!0});a4.async=a4.asyncScheduler=void 0;var Kk=$5(),$k=P5();a4.asyncScheduler=new $k.AsyncScheduler(Kk.AsyncAction);a4.async=a4.asyncScheduler});var cF=r((D5)=>{var Bk=D5&&D5.__extends||function(){var Q=function(X,Z){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,G){J.__proto__=G}||function(J,G){for(var Y in G)if(Object.prototype.hasOwnProperty.call(G,Y))J[Y]=G[Y]},Q(X,Z)};return function(X,Z){if(typeof Z!=="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");Q(X,Z);function J(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(J.prototype=Z.prototype,new J)}}();Object.defineProperty(D5,"__esModule",{value:!0});D5.QueueAction=void 0;var Uk=$5(),Vk=function(Q){Bk(X,Q);function X(Z,J){var G=Q.call(this,Z,J)||this;return G.scheduler=Z,G.work=J,G}return X.prototype.schedule=function(Z,J){if(J===void 0)J=0;if(J>0)return Q.prototype.schedule.call(this,Z,J);return this.delay=J,this.state=Z,this.scheduler.flush(this),this},X.prototype.execute=function(Z,J){return J>0||this.closed?Q.prototype.execute.call(this,Z,J):this._execute(Z,J)},X.prototype.requestAsyncId=function(Z,J,G){if(G===void 0)G=0;if(G!=null&&G>0||G==null&&this.delay>0)return Q.prototype.requestAsyncId.call(this,Z,J,G);return Z.flush(this),0},X}(Uk.AsyncAction);D5.QueueAction=Vk});var iF=r((L5)=>{var Pk=L5&&L5.__extends||function(){var Q=function(X,Z){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,G){J.__proto__=G}||function(J,G){for(var Y in G)if(Object.prototype.hasOwnProperty.call(G,Y))J[Y]=G[Y]},Q(X,Z)};return function(X,Z){if(typeof Z!=="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");Q(X,Z);function J(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(J.prototype=Z.prototype,new J)}}();Object.defineProperty(L5,"__esModule",{value:!0});L5.QueueScheduler=void 0;var Fk=P5(),Dk=function(Q){Pk(X,Q);function X(){return Q!==null&&Q.apply(this,arguments)||this}return X}(Fk.AsyncScheduler);L5.QueueScheduler=Dk});var nF=r((s4)=>{Object.defineProperty(s4,"__esModule",{value:!0});s4.queue=s4.queueScheduler=void 0;var Lk=cF(),Ck=iF();s4.queueScheduler=new Ck.QueueScheduler(Lk.QueueAction);s4.queue=s4.queueScheduler});var aF=r((C5)=>{var Nk=C5&&C5.__extends||function(){var Q=function(X,Z){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,G){J.__proto__=G}||function(J,G){for(var Y in G)if(Object.prototype.hasOwnProperty.call(G,Y))J[Y]=G[Y]},Q(X,Z)};return function(X,Z){if(typeof Z!=="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");Q(X,Z);function J(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(J.prototype=Z.prototype,new J)}}();Object.defineProperty(C5,"__esModule",{value:!0});C5.AnimationFrameAction=void 0;var Tk=$5(),oF=Fz(),Mk=function(Q){Nk(X,Q);function X(Z,J){var G=Q.call(this,Z,J)||this;return G.scheduler=Z,G.work=J,G}return X.prototype.requestAsyncId=function(Z,J,G){if(G===void 0)G=0;if(G!==null&&G>0)return Q.prototype.requestAsyncId.call(this,Z,J,G);return Z.actions.push(this),Z._scheduled||(Z._scheduled=oF.animationFrameProvider.requestAnimationFrame(function(){return Z.flush(void 0)}))},X.prototype.recycleAsyncId=function(Z,J,G){var Y;if(G===void 0)G=0;if(G!=null?G>0:this.delay>0)return Q.prototype.recycleAsyncId.call(this,Z,J,G);var H=Z.actions;if(J!=null&&((Y=H[H.length-1])===null||Y===void 0?void 0:Y.id)!==J)oF.animationFrameProvider.cancelAnimationFrame(J),Z._scheduled=void 0;return},X}(Tk.AsyncAction);C5.AnimationFrameAction=Mk});var sF=r((N5)=>{var Ik=N5&&N5.__extends||function(){var Q=function(X,Z){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,G){J.__proto__=G}||function(J,G){for(var Y in G)if(Object.prototype.hasOwnProperty.call(G,Y))J[Y]=G[Y]},Q(X,Z)};return function(X,Z){if(typeof Z!=="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");Q(X,Z);function J(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(J.prototype=Z.prototype,new J)}}();Object.defineProperty(N5,"__esModule",{value:!0});N5.AnimationFrameScheduler=void 0;var Rk=P5(),Ak=function(Q){Ik(X,Q);function X(){return Q!==null&&Q.apply(this,arguments)||this}return X.prototype.flush=function(Z){this._active=!0;var J=this._scheduled;this._scheduled=void 0;var G=this.actions,Y;Z=Z||G.shift();do if(Y=Z.execute(Z.state,Z.delay))break;while((Z=G[0])&&Z.id===J&&G.shift());if(this._active=!1,Y){while((Z=G[0])&&Z.id===J&&G.shift())Z.unsubscribe();throw Y}},X}(Rk.AsyncScheduler);N5.AnimationFrameScheduler=Ak});var tF=r((t4)=>{Object.defineProperty(t4,"__esModule",{value:!0});t4.animationFrame=t4.animationFrameScheduler=void 0;var Ok=aF(),wk=sF();t4.animationFrameScheduler=new wk.AnimationFrameScheduler(Ok.AnimationFrameAction);t4.animationFrame=t4.animationFrameScheduler});var QD=r((oQ)=>{var rF=oQ&&oQ.__extends||function(){var Q=function(X,Z){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,G){J.__proto__=G}||function(J,G){for(var Y in G)if(Object.prototype.hasOwnProperty.call(G,Y))J[Y]=G[Y]},Q(X,Z)};return function(X,Z){if(typeof Z!=="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");Q(X,Z);function J(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(J.prototype=Z.prototype,new J)}}();Object.defineProperty(oQ,"__esModule",{value:!0});oQ.VirtualAction=oQ.VirtualTimeScheduler=void 0;var Ek=$5(),jk=o8(),Sk=P5(),kk=function(Q){rF(X,Q);function X(Z,J){if(Z===void 0)Z=eF;if(J===void 0)J=1/0;var G=Q.call(this,Z,function(){return G.frame})||this;return G.maxFrames=J,G.frame=0,G.index=-1,G}return X.prototype.flush=function(){var Z=this,J=Z.actions,G=Z.maxFrames,Y,H;while((H=J[0])&&H.delay<=G)if(J.shift(),this.frame=H.delay,Y=H.execute(H.state,H.delay))break;if(Y){while(H=J.shift())H.unsubscribe();throw Y}},X.frameTimeFactor=10,X}(Sk.AsyncScheduler);oQ.VirtualTimeScheduler=kk;var eF=function(Q){rF(X,Q);function X(Z,J,G){if(G===void 0)G=Z.index+=1;var Y=Q.call(this,Z,J)||this;return Y.scheduler=Z,Y.work=J,Y.index=G,Y.active=!0,Y.index=Z.index=G,Y}return X.prototype.schedule=function(Z,J){if(J===void 0)J=0;if(Number.isFinite(J)){if(!this.id)return Q.prototype.schedule.call(this,Z,J);this.active=!1;var G=new X(this.scheduler,this.work);return this.add(G),G.schedule(Z,J)}else return jk.Subscription.EMPTY},X.prototype.requestAsyncId=function(Z,J,G){if(G===void 0)G=0;this.delay=Z.frame+G;var Y=Z.actions;return Y.push(this),Y.sort(X.sortActions),1},X.prototype.recycleAsyncId=function(Z,J,G){if(G===void 0)G=0;return},X.prototype._execute=function(Z,J){if(this.active===!0)return Q.prototype._execute.call(this,Z,J)},X.sortActions=function(Z,J){if(Z.delay===J.delay)if(Z.index===J.index)return 0;else if(Z.index>J.index)return 1;else return-1;else if(Z.delay>J.delay)return 1;else return-1},X}(Ek.AsyncAction);oQ.VirtualAction=eF});var S9=r((r4)=>{Object.defineProperty(r4,"__esModule",{value:!0});r4.empty=r4.EMPTY=void 0;var ZD=Q6();r4.EMPTY=new ZD.Observable(function(Q){return Q.complete()});function yk(Q){return Q?xk(Q):r4.EMPTY}r4.empty=yk;function xk(Q){return new ZD.Observable(function(X){return Q.schedule(function(){return X.complete()})})}});var QX=r((TG)=>{Object.defineProperty(TG,"__esModule",{value:!0});TG.isScheduler=void 0;var vk=t0();function gk(Q){return Q&&vk.isFunction(Q.schedule)}TG.isScheduler=gk});var E8=r((aQ)=>{Object.defineProperty(aQ,"__esModule",{value:!0});aQ.popNumber=aQ.popScheduler=aQ.popResultSelector=void 0;var hk=t0(),fk=QX();function Rz(Q){return Q[Q.length-1]}function bk(Q){return hk.isFunction(Rz(Q))?Q.pop():void 0}aQ.popResultSelector=bk;function mk(Q){return fk.isScheduler(Rz(Q))?Q.pop():void 0}aQ.popScheduler=mk;function _k(Q,X){return typeof Rz(Q)==="number"?Q.pop():X}aQ.popNumber=_k});var IG=r((MG)=>{Object.defineProperty(MG,"__esModule",{value:!0});MG.isArrayLike=void 0;MG.isArrayLike=function(Q){return Q&&typeof Q.length==="number"&&typeof Q!=="function"}});var Az=r((RG)=>{Object.defineProperty(RG,"__esModule",{value:!0});RG.isPromise=void 0;var dk=t0();function uk(Q){return dk.isFunction(Q===null||Q===void 0?void 0:Q.then)}RG.isPromise=uk});var Oz=r((AG)=>{Object.defineProperty(AG,"__esModule",{value:!0});AG.isInteropObservable=void 0;var pk=a7(),lk=t0();function ck(Q){return lk.isFunction(Q[pk.observable])}AG.isInteropObservable=ck});var wz=r((OG)=>{Object.defineProperty(OG,"__esModule",{value:!0});OG.isAsyncIterable=void 0;var ik=t0();function nk(Q){return Symbol.asyncIterator&&ik.isFunction(Q===null||Q===void 0?void 0:Q[Symbol.asyncIterator])}OG.isAsyncIterable=nk});var Ez=r((wG)=>{Object.defineProperty(wG,"__esModule",{value:!0});wG.createInvalidObservableTypeError=void 0;function ok(Q){return new TypeError("You provided "+(Q!==null&&typeof Q==="object"?"an invalid object":"'"+Q+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}wG.createInvalidObservableTypeError=ok});var jz=r((T5)=>{Object.defineProperty(T5,"__esModule",{value:!0});T5.iterator=T5.getSymbolIterator=void 0;function XD(){if(typeof Symbol!=="function"||!Symbol.iterator)return"@@iterator";return Symbol.iterator}T5.getSymbolIterator=XD;T5.iterator=XD()});var Sz=r((EG)=>{Object.defineProperty(EG,"__esModule",{value:!0});EG.isIterable=void 0;var ak=jz(),sk=t0();function tk(Q){return sk.isFunction(Q===null||Q===void 0?void 0:Q[ak.iterator])}EG.isIterable=tk});var jG=r((z9)=>{var rk=z9&&z9.__generator||function(Q,X){var Z={label:0,sent:function(){if(Y[0]&1)throw Y[1];return Y[1]},trys:[],ops:[]},J,G,Y,H;return H={next:K(0),throw:K(1),return:K(2)},typeof Symbol==="function"&&(H[Symbol.iterator]=function(){return this}),H;function K(W){return function($){return z([W,$])}}function z(W){if(J)throw new TypeError("Generator is already executing.");while(Z)try{if(J=1,G&&(Y=W[0]&2?G.return:W[0]?G.throw||((Y=G.return)&&Y.call(G),0):G.next)&&!(Y=Y.call(G,W[1])).done)return Y;if(G=0,Y)W=[W[0]&2,Y.value];switch(W[0]){case 0:case 1:Y=W;break;case 4:return Z.label++,{value:W[1],done:!1};case 5:Z.label++,G=W[1],W=[0];continue;case 7:W=Z.ops.pop(),Z.trys.pop();continue;default:if((Y=Z.trys,!(Y=Y.length>0&&Y[Y.length-1]))&&(W[0]===6||W[0]===2)){Z=0;continue}if(W[0]===3&&(!Y||W[1]>Y[0]&&W[1]1||K(B,D)})}}function K(B,D){try{z(J[B](D))}catch(F){q(Y[0][3],F)}}function z(B){B.value instanceof M5?Promise.resolve(B.value.v).then(W,$):q(Y[0][2],B)}function W(B){K("next",B)}function $(B){K("throw",B)}function q(B,D){if(B(D),Y.shift(),Y.length)K(Y[0][0],Y[0][1])}};Object.defineProperty(z9,"__esModule",{value:!0});z9.isReadableStreamLike=z9.readableStreamLikeToAsyncGenerator=void 0;var Qy=t0();function Zy(Q){return ek(this,arguments,function X(){var Z,J,G,Y;return rk(this,function(H){switch(H.label){case 0:Z=Q.getReader(),H.label=1;case 1:H.trys.push([1,,9,10]),H.label=2;case 2:return[4,M5(Z.read())];case 3:if(J=H.sent(),G=J.value,Y=J.done,!Y)return[3,5];return[4,M5(void 0)];case 4:return[2,H.sent()];case 5:return[4,M5(G)];case 6:return[4,H.sent()];case 7:return H.sent(),[3,2];case 8:return[3,10];case 9:return Z.releaseLock(),[7];case 10:return[2]}})})}z9.readableStreamLikeToAsyncGenerator=Zy;function Xy(Q){return Qy.isFunction(Q===null||Q===void 0?void 0:Q.getReader)}z9.isReadableStreamLike=Xy});var A0=r((M6)=>{var Jy=M6&&M6.__awaiter||function(Q,X,Z,J){function G(Y){return Y instanceof Z?Y:new Z(function(H){H(Y)})}return new(Z||(Z=Promise))(function(Y,H){function K($){try{W(J.next($))}catch(q){H(q)}}function z($){try{W(J.throw($))}catch(q){H(q)}}function W($){$.done?Y($.value):G($.value).then(K,z)}W((J=J.apply(Q,X||[])).next())})},Gy=M6&&M6.__generator||function(Q,X){var Z={label:0,sent:function(){if(Y[0]&1)throw Y[1];return Y[1]},trys:[],ops:[]},J,G,Y,H;return H={next:K(0),throw:K(1),return:K(2)},typeof Symbol==="function"&&(H[Symbol.iterator]=function(){return this}),H;function K(W){return function($){return z([W,$])}}function z(W){if(J)throw new TypeError("Generator is already executing.");while(Z)try{if(J=1,G&&(Y=W[0]&2?G.return:W[0]?G.throw||((Y=G.return)&&Y.call(G),0):G.next)&&!(Y=Y.call(G,W[1])).done)return Y;if(G=0,Y)W=[W[0]&2,Y.value];switch(W[0]){case 0:case 1:Y=W;break;case 4:return Z.label++,{value:W[1],done:!1};case 5:Z.label++,G=W[1],W=[0];continue;case 7:W=Z.ops.pop(),Z.trys.pop();continue;default:if((Y=Z.trys,!(Y=Y.length>0&&Y[Y.length-1]))&&(W[0]===6||W[0]===2)){Z=0;continue}if(W[0]===3&&(!Y||W[1]>Y[0]&&W[1]=Q.length)Q=void 0;return{value:Q&&Q[J++],done:!Q}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(M6,"__esModule",{value:!0});M6.fromReadableStreamLike=M6.fromAsyncIterable=M6.fromIterable=M6.fromPromise=M6.fromArrayLike=M6.fromInteropObservable=M6.innerFrom=void 0;var Wy=IG(),qy=Az(),I5=Q6(),Hy=Oz(),zy=wz(),Ky=Ez(),$y=Sz(),JD=jG(),By=t0(),Uy=Hz(),Vy=a7();function Py(Q){if(Q instanceof I5.Observable)return Q;if(Q!=null){if(Hy.isInteropObservable(Q))return GD(Q);if(Wy.isArrayLike(Q))return YD(Q);if(qy.isPromise(Q))return WD(Q);if(zy.isAsyncIterable(Q))return yz(Q);if($y.isIterable(Q))return qD(Q);if(JD.isReadableStreamLike(Q))return HD(Q)}throw Ky.createInvalidObservableTypeError(Q)}M6.innerFrom=Py;function GD(Q){return new I5.Observable(function(X){var Z=Q[Vy.observable]();if(By.isFunction(Z.subscribe))return Z.subscribe(X);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}M6.fromInteropObservable=GD;function YD(Q){return new I5.Observable(function(X){for(var Z=0;Z{Object.defineProperty(SG,"__esModule",{value:!0});SG.executeSchedule=void 0;function Dy(Q,X,Z,J,G){if(J===void 0)J=0;if(G===void 0)G=!1;var Y=X.schedule(function(){if(Z(),G)Q.add(this.schedule(null,J));else this.unsubscribe()},J);if(Q.add(Y),!G)return Y}SG.executeSchedule=Dy});var ZX=r((kG)=>{Object.defineProperty(kG,"__esModule",{value:!0});kG.observeOn=void 0;var xz=IQ(),Ly=l1(),Cy=Q0();function Ny(Q,X){if(X===void 0)X=0;return Ly.operate(function(Z,J){Z.subscribe(Cy.createOperatorSubscriber(J,function(G){return xz.executeSchedule(J,Q,function(){return J.next(G)},X)},function(){return xz.executeSchedule(J,Q,function(){return J.complete()},X)},function(G){return xz.executeSchedule(J,Q,function(){return J.error(G)},X)}))})}kG.observeOn=Ny});var XX=r((yG)=>{Object.defineProperty(yG,"__esModule",{value:!0});yG.subscribeOn=void 0;var Ty=l1();function My(Q,X){if(X===void 0)X=0;return Ty.operate(function(Z,J){J.add(Q.schedule(function(){return Z.subscribe(J)},X))})}yG.subscribeOn=My});var zD=r((xG)=>{Object.defineProperty(xG,"__esModule",{value:!0});xG.scheduleObservable=void 0;var Iy=A0(),Ry=ZX(),Ay=XX();function Oy(Q,X){return Iy.innerFrom(Q).pipe(Ay.subscribeOn(X),Ry.observeOn(X))}xG.scheduleObservable=Oy});var KD=r((vG)=>{Object.defineProperty(vG,"__esModule",{value:!0});vG.schedulePromise=void 0;var wy=A0(),Ey=ZX(),jy=XX();function Sy(Q,X){return wy.innerFrom(Q).pipe(jy.subscribeOn(X),Ey.observeOn(X))}vG.schedulePromise=Sy});var $D=r((gG)=>{Object.defineProperty(gG,"__esModule",{value:!0});gG.scheduleArray=void 0;var ky=Q6();function yy(Q,X){return new ky.Observable(function(Z){var J=0;return X.schedule(function(){if(J===Q.length)Z.complete();else if(Z.next(Q[J++]),!Z.closed)this.schedule()})})}gG.scheduleArray=yy});var vz=r((hG)=>{Object.defineProperty(hG,"__esModule",{value:!0});hG.scheduleIterable=void 0;var xy=Q6(),vy=jz(),gy=t0(),BD=IQ();function hy(Q,X){return new xy.Observable(function(Z){var J;return BD.executeSchedule(Z,X,function(){J=Q[vy.iterator](),BD.executeSchedule(Z,X,function(){var G,Y,H;try{G=J.next(),Y=G.value,H=G.done}catch(K){Z.error(K);return}if(H)Z.complete();else Z.next(Y)},0,!0)}),function(){return gy.isFunction(J===null||J===void 0?void 0:J.return)&&J.return()}})}hG.scheduleIterable=hy});var gz=r((fG)=>{Object.defineProperty(fG,"__esModule",{value:!0});fG.scheduleAsyncIterable=void 0;var fy=Q6(),UD=IQ();function by(Q,X){if(!Q)throw new Error("Iterable cannot be null");return new fy.Observable(function(Z){UD.executeSchedule(Z,X,function(){var J=Q[Symbol.asyncIterator]();UD.executeSchedule(Z,X,function(){J.next().then(function(G){if(G.done)Z.complete();else Z.next(G.value)})},0,!0)})})}fG.scheduleAsyncIterable=by});var VD=r((bG)=>{Object.defineProperty(bG,"__esModule",{value:!0});bG.scheduleReadableStreamLike=void 0;var my=gz(),_y=jG();function dy(Q,X){return my.scheduleAsyncIterable(_y.readableStreamLikeToAsyncGenerator(Q),X)}bG.scheduleReadableStreamLike=dy});var hz=r((mG)=>{Object.defineProperty(mG,"__esModule",{value:!0});mG.scheduled=void 0;var uy=zD(),py=KD(),ly=$D(),cy=vz(),iy=gz(),ny=Oz(),oy=Az(),ay=IG(),sy=Sz(),ty=wz(),ry=Ez(),ey=jG(),Qx=VD();function Zx(Q,X){if(Q!=null){if(ny.isInteropObservable(Q))return uy.scheduleObservable(Q,X);if(ay.isArrayLike(Q))return ly.scheduleArray(Q,X);if(oy.isPromise(Q))return py.schedulePromise(Q,X);if(ty.isAsyncIterable(Q))return iy.scheduleAsyncIterable(Q,X);if(sy.isIterable(Q))return cy.scheduleIterable(Q,X);if(ey.isReadableStreamLike(Q))return Qx.scheduleReadableStreamLike(Q,X)}throw ry.createInvalidObservableTypeError(Q)}mG.scheduled=Zx});var RQ=r((_G)=>{Object.defineProperty(_G,"__esModule",{value:!0});_G.from=void 0;var Xx=hz(),Jx=A0();function Gx(Q,X){return X?Xx.scheduled(Q,X):Jx.innerFrom(Q)}_G.from=Gx});var uG=r((dG)=>{Object.defineProperty(dG,"__esModule",{value:!0});dG.of=void 0;var Yx=E8(),Wx=RQ();function qx(){var Q=[];for(var X=0;X{Object.defineProperty(pG,"__esModule",{value:!0});pG.throwError=void 0;var Hx=Q6(),zx=t0();function Kx(Q,X){var Z=zx.isFunction(Q)?Q:function(){return Q},J=function(G){return G.error(Z())};return new Hx.Observable(X?function(G){return X.schedule(J,0,G)}:J)}pG.throwError=Kx});var lG=r((AQ)=>{Object.defineProperty(AQ,"__esModule",{value:!0});AQ.observeNotification=AQ.Notification=AQ.NotificationKind=void 0;var $x=S9(),Bx=uG(),Ux=fz(),Vx=t0(),Px;(function(Q){Q.NEXT="N",Q.ERROR="E",Q.COMPLETE="C"})(Px=AQ.NotificationKind||(AQ.NotificationKind={}));var Fx=function(){function Q(X,Z,J){this.kind=X,this.value=Z,this.error=J,this.hasValue=X==="N"}return Q.prototype.observe=function(X){return PD(this,X)},Q.prototype.do=function(X,Z,J){var G=this,Y=G.kind,H=G.value,K=G.error;return Y==="N"?X===null||X===void 0?void 0:X(H):Y==="E"?Z===null||Z===void 0?void 0:Z(K):J===null||J===void 0?void 0:J()},Q.prototype.accept=function(X,Z,J){var G;return Vx.isFunction((G=X)===null||G===void 0?void 0:G.next)?this.observe(X):this.do(X,Z,J)},Q.prototype.toObservable=function(){var X=this,Z=X.kind,J=X.value,G=X.error,Y=Z==="N"?Bx.of(J):Z==="E"?Ux.throwError(function(){return G}):Z==="C"?$x.EMPTY:0;if(!Y)throw new TypeError("Unexpected notification kind "+Z);return Y},Q.createNext=function(X){return new Q("N",X)},Q.createError=function(X){return new Q("E",void 0,X)},Q.createComplete=function(){return Q.completeNotification},Q.completeNotification=new Q("C"),Q}();AQ.Notification=Fx;function PD(Q,X){var Z,J,G,Y=Q,H=Y.kind,K=Y.value,z=Y.error;if(typeof H!=="string")throw new TypeError('Invalid notification, missing "kind"');H==="N"?(Z=X.next)===null||Z===void 0||Z.call(X,K):H==="E"?(J=X.error)===null||J===void 0||J.call(X,z):(G=X.complete)===null||G===void 0||G.call(X)}AQ.observeNotification=PD});var DD=r((cG)=>{Object.defineProperty(cG,"__esModule",{value:!0});cG.isObservable=void 0;var Dx=Q6(),FD=t0();function Lx(Q){return!!Q&&(Q instanceof Dx.Observable||FD.isFunction(Q.lift)&&FD.isFunction(Q.subscribe))}cG.isObservable=Lx});var sQ=r((iG)=>{Object.defineProperty(iG,"__esModule",{value:!0});iG.EmptyError=void 0;var Cx=iQ();iG.EmptyError=Cx.createErrorClass(function(Q){return function X(){Q(this),this.name="EmptyError",this.message="no elements in sequence"}})});var LD=r((nG)=>{Object.defineProperty(nG,"__esModule",{value:!0});nG.lastValueFrom=void 0;var Nx=sQ();function Tx(Q,X){var Z=typeof X==="object";return new Promise(function(J,G){var Y=!1,H;Q.subscribe({next:function(K){H=K,Y=!0},error:G,complete:function(){if(Y)J(H);else if(Z)J(X.defaultValue);else G(new Nx.EmptyError)}})})}nG.lastValueFrom=Tx});var CD=r((oG)=>{Object.defineProperty(oG,"__esModule",{value:!0});oG.firstValueFrom=void 0;var Mx=sQ(),Ix=X5();function Rx(Q,X){var Z=typeof X==="object";return new Promise(function(J,G){var Y=new Ix.SafeSubscriber({next:function(H){J(H),Y.unsubscribe()},error:G,complete:function(){if(Z)J(X.defaultValue);else G(new Mx.EmptyError)}});Q.subscribe(Y)})}oG.firstValueFrom=Rx});var bz=r((aG)=>{Object.defineProperty(aG,"__esModule",{value:!0});aG.ArgumentOutOfRangeError=void 0;var Ax=iQ();aG.ArgumentOutOfRangeError=Ax.createErrorClass(function(Q){return function X(){Q(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})});var mz=r((sG)=>{Object.defineProperty(sG,"__esModule",{value:!0});sG.NotFoundError=void 0;var Ox=iQ();sG.NotFoundError=Ox.createErrorClass(function(Q){return function X(Z){Q(this),this.name="NotFoundError",this.message=Z}})});var _z=r((tG)=>{Object.defineProperty(tG,"__esModule",{value:!0});tG.SequenceError=void 0;var wx=iQ();tG.SequenceError=wx.createErrorClass(function(Q){return function X(Z){Q(this),this.name="SequenceError",this.message=Z}})});var eG=r((rG)=>{Object.defineProperty(rG,"__esModule",{value:!0});rG.isValidDate=void 0;function Ex(Q){return Q instanceof Date&&!isNaN(Q)}rG.isValidDate=Ex});var QY=r((e4)=>{Object.defineProperty(e4,"__esModule",{value:!0});e4.timeout=e4.TimeoutError=void 0;var jx=w8(),Sx=eG(),kx=l1(),yx=A0(),xx=iQ(),vx=Q0(),gx=IQ();e4.TimeoutError=xx.createErrorClass(function(Q){return function X(Z){if(Z===void 0)Z=null;Q(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=Z}});function hx(Q,X){var Z=Sx.isValidDate(Q)?{first:Q}:typeof Q==="number"?{each:Q}:Q,J=Z.first,G=Z.each,Y=Z.with,H=Y===void 0?fx:Y,K=Z.scheduler,z=K===void 0?X!==null&&X!==void 0?X:jx.asyncScheduler:K,W=Z.meta,$=W===void 0?null:W;if(J==null&&G==null)throw new TypeError("No timeout provided.");return kx.operate(function(q,B){var D,F,P=null,N=0,C=function(L){F=gx.executeSchedule(B,z,function(){try{D.unsubscribe(),yx.innerFrom(H({meta:$,lastValue:P,seen:N})).subscribe(B)}catch(V){B.error(V)}},L)};D=q.subscribe(vx.createOperatorSubscriber(B,function(L){F===null||F===void 0||F.unsubscribe(),N++,B.next(P=L),G>0&&C(G)},void 0,void 0,function(){if(!(F===null||F===void 0?void 0:F.closed))F===null||F===void 0||F.unsubscribe();P=null})),!N&&C(J!=null?typeof J==="number"?J:+J-z.now():G)})}e4.timeout=hx;function fx(Q){throw new e4.TimeoutError(Q)}});var tQ=r((ZY)=>{Object.defineProperty(ZY,"__esModule",{value:!0});ZY.map=void 0;var bx=l1(),mx=Q0();function _x(Q,X){return bx.operate(function(Z,J){var G=0;Z.subscribe(mx.createOperatorSubscriber(J,function(Y){J.next(Q.call(X,Y,G++))}))})}ZY.map=_x});var eQ=r((rQ)=>{var dx=rQ&&rQ.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},ux=rQ&&rQ.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{var nx=Q4&&Q4.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},ND=Q4&&Q4.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{Object.defineProperty(XY,"__esModule",{value:!0});XY.bindCallback=void 0;var Qv=uz();function Zv(Q,X,Z){return Qv.bindCallbackInternals(!1,Q,X,Z)}XY.bindCallback=Zv});var MD=r((JY)=>{Object.defineProperty(JY,"__esModule",{value:!0});JY.bindNodeCallback=void 0;var Xv=uz();function Jv(Q,X,Z){return Xv.bindCallbackInternals(!0,Q,X,Z)}JY.bindNodeCallback=Jv});var pz=r((GY)=>{Object.defineProperty(GY,"__esModule",{value:!0});GY.argsArgArrayOrObject=void 0;var Gv=Array.isArray,Yv=Object.getPrototypeOf,Wv=Object.prototype,qv=Object.keys;function Hv(Q){if(Q.length===1){var X=Q[0];if(Gv(X))return{args:X,keys:null};if(zv(X)){var Z=qv(X);return{args:Z.map(function(J){return X[J]}),keys:Z}}}return{args:Q,keys:null}}GY.argsArgArrayOrObject=Hv;function zv(Q){return Q&&typeof Q==="object"&&Yv(Q)===Wv}});var lz=r((YY)=>{Object.defineProperty(YY,"__esModule",{value:!0});YY.createObject=void 0;function Kv(Q,X){return Q.reduce(function(Z,J,G){return Z[J]=X[G],Z},{})}YY.createObject=Kv});var WY=r((R5)=>{Object.defineProperty(R5,"__esModule",{value:!0});R5.combineLatestInit=R5.combineLatest=void 0;var $v=Q6(),Bv=pz(),AD=RQ(),OD=t6(),Uv=eQ(),ID=E8(),Vv=lz(),Pv=Q0(),Fv=IQ();function Dv(){var Q=[];for(var X=0;X{Object.defineProperty(qY,"__esModule",{value:!0});qY.mergeInternals=void 0;var Lv=A0(),Cv=IQ(),ED=Q0();function Nv(Q,X,Z,J,G,Y,H,K){var z=[],W=0,$=0,q=!1,B=function(){if(q&&!z.length&&!W)X.complete()},D=function(P){return W{Object.defineProperty(zY,"__esModule",{value:!0});zY.mergeMap=void 0;var Tv=tQ(),Mv=A0(),Iv=l1(),Rv=HY(),Av=t0();function jD(Q,X,Z){if(Z===void 0)Z=1/0;if(Av.isFunction(X))return jD(function(J,G){return Tv.map(function(Y,H){return X(J,Y,G,H)})(Mv.innerFrom(Q(J,G)))},Z);else if(typeof X==="number")Z=X;return Iv.operate(function(J,G){return Rv.mergeInternals(J,G,Q,Z)})}zY.mergeMap=jD});var JX=r((KY)=>{Object.defineProperty(KY,"__esModule",{value:!0});KY.mergeAll=void 0;var Ov=OQ(),wv=t6();function Ev(Q){if(Q===void 0)Q=1/0;return Ov.mergeMap(wv.identity,Q)}KY.mergeAll=Ev});var BY=r(($Y)=>{Object.defineProperty($Y,"__esModule",{value:!0});$Y.concatAll=void 0;var jv=JX();function Sv(){return jv.mergeAll(1)}$Y.concatAll=Sv});var GX=r((UY)=>{Object.defineProperty(UY,"__esModule",{value:!0});UY.concat=void 0;var kv=BY(),yv=E8(),xv=RQ();function vv(){var Q=[];for(var X=0;X{Object.defineProperty(VY,"__esModule",{value:!0});VY.defer=void 0;var gv=Q6(),hv=A0();function fv(Q){return new gv.Observable(function(X){hv.innerFrom(Q()).subscribe(X)})}VY.defer=fv});var SD=r((PY)=>{Object.defineProperty(PY,"__esModule",{value:!0});PY.connectable=void 0;var bv=r6(),mv=Q6(),_v=YX(),dv={connector:function(){return new bv.Subject},resetOnDisconnect:!0};function uv(Q,X){if(X===void 0)X=dv;var Z=null,J=X.connector,G=X.resetOnDisconnect,Y=G===void 0?!0:G,H=J(),K=new mv.Observable(function(z){return H.subscribe(z)});return K.connect=function(){if(!Z||Z.closed){if(Z=_v.defer(function(){return Q}).subscribe(H),Y)Z.add(function(){return H=J()})}return Z},K}PY.connectable=uv});var kD=r((FY)=>{Object.defineProperty(FY,"__esModule",{value:!0});FY.forkJoin=void 0;var pv=Q6(),lv=pz(),cv=A0(),iv=E8(),nv=Q0(),ov=eQ(),av=lz();function sv(){var Q=[];for(var X=0;X{var tv=A5&&A5.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y};Object.defineProperty(A5,"__esModule",{value:!0});A5.fromEvent=void 0;var rv=A0(),ev=Q6(),Qg=OQ(),Zg=IG(),QZ=t0(),Xg=eQ(),Jg=["addListener","removeListener"],Gg=["addEventListener","removeEventListener"],Yg=["on","off"];function cz(Q,X,Z,J){if(QZ.isFunction(Z))J=Z,Z=void 0;if(J)return cz(Q,X,Z).pipe(Xg.mapOneOrManyArgs(J));var G=tv(Hg(Q)?Gg.map(function(K){return function(z){return Q[K](X,z,Z)}}):Wg(Q)?Jg.map(yD(Q,X)):qg(Q)?Yg.map(yD(Q,X)):[],2),Y=G[0],H=G[1];if(!Y){if(Zg.isArrayLike(Q))return Qg.mergeMap(function(K){return cz(K,X,Z)})(rv.innerFrom(Q))}if(!Y)throw new TypeError("Invalid event target");return new ev.Observable(function(K){var z=function(){var W=[];for(var $=0;${Object.defineProperty(DY,"__esModule",{value:!0});DY.fromEventPattern=void 0;var zg=Q6(),Kg=t0(),$g=eQ();function vD(Q,X,Z){if(Z)return vD(Q,X).pipe($g.mapOneOrManyArgs(Z));return new zg.Observable(function(J){var G=function(){var H=[];for(var K=0;K{var Bg=O5&&O5.__generator||function(Q,X){var Z={label:0,sent:function(){if(Y[0]&1)throw Y[1];return Y[1]},trys:[],ops:[]},J,G,Y,H;return H={next:K(0),throw:K(1),return:K(2)},typeof Symbol==="function"&&(H[Symbol.iterator]=function(){return this}),H;function K(W){return function($){return z([W,$])}}function z(W){if(J)throw new TypeError("Generator is already executing.");while(Z)try{if(J=1,G&&(Y=W[0]&2?G.return:W[0]?G.throw||((Y=G.return)&&Y.call(G),0):G.next)&&!(Y=Y.call(G,W[1])).done)return Y;if(G=0,Y)W=[W[0]&2,Y.value];switch(W[0]){case 0:case 1:Y=W;break;case 4:return Z.label++,{value:W[1],done:!1};case 5:Z.label++,G=W[1],W=[0];continue;case 7:W=Z.ops.pop(),Z.trys.pop();continue;default:if((Y=Z.trys,!(Y=Y.length>0&&Y[Y.length-1]))&&(W[0]===6||W[0]===2)){Z=0;continue}if(W[0]===3&&(!Y||W[1]>Y[0]&&W[1]{Object.defineProperty(LY,"__esModule",{value:!0});LY.iif=void 0;var Dg=YX();function Lg(Q,X,Z){return Dg.defer(function(){return Q()?X:Z})}LY.iif=Lg});var Z4=r((CY)=>{Object.defineProperty(CY,"__esModule",{value:!0});CY.timer=void 0;var Cg=Q6(),Ng=w8(),Tg=QX(),Mg=eG();function Ig(Q,X,Z){if(Q===void 0)Q=0;if(Z===void 0)Z=Ng.async;var J=-1;if(X!=null)if(Tg.isScheduler(X))Z=X;else J=X;return new Cg.Observable(function(G){var Y=Mg.isValidDate(Q)?+Q-Z.now():Q;if(Y<0)Y=0;var H=0;return Z.schedule(function(){if(!G.closed)if(G.next(H++),0<=J)this.schedule(void 0,J);else G.complete()},Y)})}CY.timer=Ig});var iz=r((NY)=>{Object.defineProperty(NY,"__esModule",{value:!0});NY.interval=void 0;var Rg=w8(),Ag=Z4();function Og(Q,X){if(Q===void 0)Q=0;if(X===void 0)X=Rg.asyncScheduler;if(Q<0)Q=0;return Ag.timer(Q,Q,X)}NY.interval=Og});var _D=r((TY)=>{Object.defineProperty(TY,"__esModule",{value:!0});TY.merge=void 0;var wg=JX(),Eg=A0(),jg=S9(),mD=E8(),Sg=RQ();function kg(){var Q=[];for(var X=0;X{Object.defineProperty(ZZ,"__esModule",{value:!0});ZZ.never=ZZ.NEVER=void 0;var yg=Q6(),xg=s6();ZZ.NEVER=new yg.Observable(xg.noop);function vg(){return ZZ.NEVER}ZZ.never=vg});var XZ=r((MY)=>{Object.defineProperty(MY,"__esModule",{value:!0});MY.argsOrArgArray=void 0;var gg=Array.isArray;function hg(Q){return Q.length===1&&gg(Q[0])?Q[0]:Q}MY.argsOrArgArray=hg});var oz=r((IY)=>{Object.defineProperty(IY,"__esModule",{value:!0});IY.onErrorResumeNext=void 0;var fg=Q6(),bg=XZ(),mg=Q0(),dD=s6(),_g=A0();function dg(){var Q=[];for(var X=0;X{Object.defineProperty(RY,"__esModule",{value:!0});RY.pairs=void 0;var ug=RQ();function pg(Q,X){return ug.from(Object.entries(Q),X)}RY.pairs=pg});var pD=r((AY)=>{Object.defineProperty(AY,"__esModule",{value:!0});AY.not=void 0;function lg(Q,X){return function(Z,J){return!Q.call(X,Z,J)}}AY.not=lg});var JZ=r((OY)=>{Object.defineProperty(OY,"__esModule",{value:!0});OY.filter=void 0;var cg=l1(),ig=Q0();function ng(Q,X){return cg.operate(function(Z,J){var G=0;Z.subscribe(ig.createOperatorSubscriber(J,function(Y){return Q.call(X,Y,G++)&&J.next(Y)}))})}OY.filter=ng});var iD=r((wY)=>{Object.defineProperty(wY,"__esModule",{value:!0});wY.partition=void 0;var og=pD(),lD=JZ(),cD=A0();function ag(Q,X,Z){return[lD.filter(X,Z)(cD.innerFrom(Q)),lD.filter(og.not(X,Z))(cD.innerFrom(Q))]}wY.partition=ag});var az=r((w5)=>{Object.defineProperty(w5,"__esModule",{value:!0});w5.raceInit=w5.race=void 0;var sg=Q6(),nD=A0(),tg=XZ(),rg=Q0();function eg(){var Q=[];for(var X=0;X{Object.defineProperty(EY,"__esModule",{value:!0});EY.range=void 0;var Qh=Q6(),Zh=S9();function Xh(Q,X,Z){if(X==null)X=Q,Q=0;if(X<=0)return Zh.EMPTY;var J=X+Q;return new Qh.Observable(Z?function(G){var Y=Q;return Z.schedule(function(){if(Y{Object.defineProperty(jY,"__esModule",{value:!0});jY.using=void 0;var Jh=Q6(),Gh=A0(),Yh=S9();function Wh(Q,X){return new Jh.Observable(function(Z){var J=Q(),G=X(J),Y=G?Gh.innerFrom(G):Yh.EMPTY;return Y.subscribe(Z),function(){if(J)J.unsubscribe()}})}jY.using=Wh});var SY=r((X4)=>{var qh=X4&&X4.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},Hh=X4&&X4.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{Object.defineProperty(tD,"__esModule",{value:!0})});var sz=r((kY)=>{Object.defineProperty(kY,"__esModule",{value:!0});kY.audit=void 0;var Fh=l1(),Dh=A0(),eD=Q0();function Lh(Q){return Fh.operate(function(X,Z){var J=!1,G=null,Y=null,H=!1,K=function(){if(Y===null||Y===void 0||Y.unsubscribe(),Y=null,J){J=!1;var W=G;G=null,Z.next(W)}H&&Z.complete()},z=function(){Y=null,H&&Z.complete()};X.subscribe(eD.createOperatorSubscriber(Z,function(W){if(J=!0,G=W,!Y)Dh.innerFrom(Q(W)).subscribe(Y=eD.createOperatorSubscriber(Z,K,z))},function(){H=!0,(!J||!Y||Y.closed)&&Z.complete()}))})}kY.audit=Lh});var QL=r((yY)=>{Object.defineProperty(yY,"__esModule",{value:!0});yY.auditTime=void 0;var Ch=w8(),Nh=sz(),Th=Z4();function Mh(Q,X){if(X===void 0)X=Ch.asyncScheduler;return Nh.audit(function(){return Th.timer(Q,X)})}yY.auditTime=Mh});var XL=r((xY)=>{Object.defineProperty(xY,"__esModule",{value:!0});xY.buffer=void 0;var Ih=l1(),Rh=s6(),ZL=Q0(),Ah=A0();function Oh(Q){return Ih.operate(function(X,Z){var J=[];return X.subscribe(ZL.createOperatorSubscriber(Z,function(G){return J.push(G)},function(){Z.next(J),Z.complete()})),Ah.innerFrom(Q).subscribe(ZL.createOperatorSubscriber(Z,function(){var G=J;J=[],Z.next(G)},Rh.noop)),function(){J=null}})}xY.buffer=Oh});var JL=r((E5)=>{var tz=E5&&E5.__values||function(Q){var X=typeof Symbol==="function"&&Symbol.iterator,Z=X&&Q[X],J=0;if(Z)return Z.call(Q);if(Q&&typeof Q.length==="number")return{next:function(){if(Q&&J>=Q.length)Q=void 0;return{value:Q&&Q[J++],done:!Q}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(E5,"__esModule",{value:!0});E5.bufferCount=void 0;var wh=l1(),Eh=Q0(),jh=MQ();function Sh(Q,X){if(X===void 0)X=null;return X=X!==null&&X!==void 0?X:Q,wh.operate(function(Z,J){var G=[],Y=0;Z.subscribe(Eh.createOperatorSubscriber(J,function(H){var K,z,W,$,q=null;if(Y++%X===0)G.push([]);try{for(var B=tz(G),D=B.next();!D.done;D=B.next()){var F=D.value;if(F.push(H),Q<=F.length)q=q!==null&&q!==void 0?q:[],q.push(F)}}catch(C){K={error:C}}finally{try{if(D&&!D.done&&(z=B.return))z.call(B)}finally{if(K)throw K.error}}if(q)try{for(var P=tz(q),N=P.next();!N.done;N=P.next()){var F=N.value;jh.arrRemove(G,F),J.next(F)}}catch(C){W={error:C}}finally{try{if(N&&!N.done&&($=P.return))$.call(P)}finally{if(W)throw W.error}}},function(){var H,K;try{for(var z=tz(G),W=z.next();!W.done;W=z.next()){var $=W.value;J.next($)}}catch(q){H={error:q}}finally{try{if(W&&!W.done&&(K=z.return))K.call(z)}finally{if(H)throw H.error}}J.complete()},void 0,function(){G=null}))})}E5.bufferCount=Sh});var YL=r((j5)=>{var kh=j5&&j5.__values||function(Q){var X=typeof Symbol==="function"&&Symbol.iterator,Z=X&&Q[X],J=0;if(Z)return Z.call(Q);if(Q&&typeof Q.length==="number")return{next:function(){if(Q&&J>=Q.length)Q=void 0;return{value:Q&&Q[J++],done:!Q}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(j5,"__esModule",{value:!0});j5.bufferTime=void 0;var yh=o8(),xh=l1(),vh=Q0(),gh=MQ(),hh=w8(),fh=E8(),GL=IQ();function bh(Q){var X,Z,J=[];for(var G=1;G=0)GL.executeSchedule(W,Y,D,H,!0);else q=!0;D();var F=vh.createOperatorSubscriber(W,function(P){var N,C,L=$.slice();try{for(var V=kh(L),M=V.next();!M.done;M=V.next()){var I=M.value,E=I.buffer;E.push(P),K<=E.length&&B(I)}}catch(w){N={error:w}}finally{try{if(M&&!M.done&&(C=V.return))C.call(V)}finally{if(N)throw N.error}}},function(){while($===null||$===void 0?void 0:$.length)W.next($.shift().buffer);F===null||F===void 0||F.unsubscribe(),W.complete(),W.unsubscribe()},void 0,function(){return $=null});z.subscribe(F)})}j5.bufferTime=bh});var HL=r((S5)=>{var mh=S5&&S5.__values||function(Q){var X=typeof Symbol==="function"&&Symbol.iterator,Z=X&&Q[X],J=0;if(Z)return Z.call(Q);if(Q&&typeof Q.length==="number")return{next:function(){if(Q&&J>=Q.length)Q=void 0;return{value:Q&&Q[J++],done:!Q}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(S5,"__esModule",{value:!0});S5.bufferToggle=void 0;var _h=o8(),dh=l1(),WL=A0(),rz=Q0(),qL=s6(),uh=MQ();function ph(Q,X){return dh.operate(function(Z,J){var G=[];WL.innerFrom(Q).subscribe(rz.createOperatorSubscriber(J,function(Y){var H=[];G.push(H);var K=new _h.Subscription,z=function(){uh.arrRemove(G,H),J.next(H),K.unsubscribe()};K.add(WL.innerFrom(X(Y)).subscribe(rz.createOperatorSubscriber(J,z,qL.noop)))},qL.noop)),Z.subscribe(rz.createOperatorSubscriber(J,function(Y){var H,K;try{for(var z=mh(G),W=z.next();!W.done;W=z.next()){var $=W.value;$.push(Y)}}catch(q){H={error:q}}finally{try{if(W&&!W.done&&(K=z.return))K.call(z)}finally{if(H)throw H.error}}},function(){while(G.length>0)J.next(G.shift());J.complete()}))})}S5.bufferToggle=ph});var KL=r((vY)=>{Object.defineProperty(vY,"__esModule",{value:!0});vY.bufferWhen=void 0;var lh=l1(),ch=s6(),zL=Q0(),ih=A0();function nh(Q){return lh.operate(function(X,Z){var J=null,G=null,Y=function(){G===null||G===void 0||G.unsubscribe();var H=J;J=[],H&&Z.next(H),ih.innerFrom(Q()).subscribe(G=zL.createOperatorSubscriber(Z,Y,ch.noop))};Y(),X.subscribe(zL.createOperatorSubscriber(Z,function(H){return J===null||J===void 0?void 0:J.push(H)},function(){J&&Z.next(J),Z.complete()},void 0,function(){return J=G=null}))})}vY.bufferWhen=nh});var BL=r((gY)=>{Object.defineProperty(gY,"__esModule",{value:!0});gY.catchError=void 0;var oh=A0(),ah=Q0(),sh=l1();function $L(Q){return sh.operate(function(X,Z){var J=null,G=!1,Y;if(J=X.subscribe(ah.createOperatorSubscriber(Z,void 0,void 0,function(H){if(Y=oh.innerFrom(Q(H,$L(Q)(X))),J)J.unsubscribe(),J=null,Y.subscribe(Z);else G=!0})),G)J.unsubscribe(),J=null,Y.subscribe(Z)})}gY.catchError=$L});var ez=r((hY)=>{Object.defineProperty(hY,"__esModule",{value:!0});hY.scanInternals=void 0;var th=Q0();function rh(Q,X,Z,J,G){return function(Y,H){var K=Z,z=X,W=0;Y.subscribe(th.createOperatorSubscriber(H,function($){var q=W++;z=K?Q(z,$,q):(K=!0,$),J&&H.next(z)},G&&function(){K&&H.next(z),H.complete()}))}}hY.scanInternals=rh});var k5=r((fY)=>{Object.defineProperty(fY,"__esModule",{value:!0});fY.reduce=void 0;var eh=ez(),Qf=l1();function Zf(Q,X){return Qf.operate(eh.scanInternals(Q,X,arguments.length>=2,!1,!0))}fY.reduce=Zf});var QK=r((bY)=>{Object.defineProperty(bY,"__esModule",{value:!0});bY.toArray=void 0;var Xf=k5(),Jf=l1(),Gf=function(Q,X){return Q.push(X),Q};function Yf(){return Jf.operate(function(Q,X){Xf.reduce(Gf,[])(Q).subscribe(X)})}bY.toArray=Yf});var ZK=r((mY)=>{Object.defineProperty(mY,"__esModule",{value:!0});mY.joinAllInternals=void 0;var Wf=t6(),qf=eQ(),Hf=s7(),zf=OQ(),Kf=QK();function $f(Q,X){return Hf.pipe(Kf.toArray(),zf.mergeMap(function(Z){return Q(Z)}),X?qf.mapOneOrManyArgs(X):Wf.identity)}mY.joinAllInternals=$f});var XK=r((_Y)=>{Object.defineProperty(_Y,"__esModule",{value:!0});_Y.combineLatestAll=void 0;var Bf=WY(),Uf=ZK();function Vf(Q){return Uf.joinAllInternals(Bf.combineLatest,Q)}_Y.combineLatestAll=Vf});var UL=r((dY)=>{Object.defineProperty(dY,"__esModule",{value:!0});dY.combineAll=void 0;var Pf=XK();dY.combineAll=Pf.combineLatestAll});var DL=r((J4)=>{var VL=J4&&J4.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},PL=J4&&J4.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{var Mf=G4&&G4.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},If=G4&&G4.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{Object.defineProperty(uY,"__esModule",{value:!0});uY.concatMap=void 0;var CL=OQ(),Of=t0();function wf(Q,X){return Of.isFunction(X)?CL.mergeMap(Q,X,1):CL.mergeMap(Q,1)}uY.concatMap=wf});var TL=r((pY)=>{Object.defineProperty(pY,"__esModule",{value:!0});pY.concatMapTo=void 0;var NL=JK(),Ef=t0();function jf(Q,X){return Ef.isFunction(X)?NL.concatMap(function(){return Q},X):NL.concatMap(function(){return Q})}pY.concatMapTo=jf});var ML=r((Y4)=>{var Sf=Y4&&Y4.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},kf=Y4&&Y4.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{var ff=W4&&W4.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},bf=W4&&W4.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{Object.defineProperty(lY,"__esModule",{value:!0});lY.fromSubscribable=void 0;var df=Q6();function uf(Q){return new df.Observable(function(X){return Q.subscribe(X)})}lY.fromSubscribable=uf});var iY=r((cY)=>{Object.defineProperty(cY,"__esModule",{value:!0});cY.connect=void 0;var pf=r6(),lf=A0(),cf=l1(),nf=RL(),of={connector:function(){return new pf.Subject}};function af(Q,X){if(X===void 0)X=of;var Z=X.connector;return cf.operate(function(J,G){var Y=Z();lf.innerFrom(Q(nf.fromSubscribable(Y))).subscribe(G),G.add(J.subscribe(Y))})}cY.connect=af});var AL=r((nY)=>{Object.defineProperty(nY,"__esModule",{value:!0});nY.count=void 0;var sf=k5();function tf(Q){return sf.reduce(function(X,Z,J){return!Q||Q(Z,J)?X+1:X},0)}nY.count=tf});var wL=r((oY)=>{Object.defineProperty(oY,"__esModule",{value:!0});oY.debounce=void 0;var rf=l1(),ef=s6(),OL=Q0(),Qb=A0();function Zb(Q){return rf.operate(function(X,Z){var J=!1,G=null,Y=null,H=function(){if(Y===null||Y===void 0||Y.unsubscribe(),Y=null,J){J=!1;var K=G;G=null,Z.next(K)}};X.subscribe(OL.createOperatorSubscriber(Z,function(K){Y===null||Y===void 0||Y.unsubscribe(),J=!0,G=K,Y=OL.createOperatorSubscriber(Z,H,ef.noop),Qb.innerFrom(Q(K)).subscribe(Y)},function(){H(),Z.complete()},void 0,function(){G=Y=null}))})}oY.debounce=Zb});var EL=r((aY)=>{Object.defineProperty(aY,"__esModule",{value:!0});aY.debounceTime=void 0;var Xb=w8(),Jb=l1(),Gb=Q0();function Yb(Q,X){if(X===void 0)X=Xb.asyncScheduler;return Jb.operate(function(Z,J){var G=null,Y=null,H=null,K=function(){if(G){G.unsubscribe(),G=null;var W=Y;Y=null,J.next(W)}};function z(){var W=H+Q,$=X.now();if(${Object.defineProperty(sY,"__esModule",{value:!0});sY.defaultIfEmpty=void 0;var Wb=l1(),qb=Q0();function Hb(Q){return Wb.operate(function(X,Z){var J=!1;X.subscribe(qb.createOperatorSubscriber(Z,function(G){J=!0,Z.next(G)},function(){if(!J)Z.next(Q);Z.complete()}))})}sY.defaultIfEmpty=Hb});var qX=r((tY)=>{Object.defineProperty(tY,"__esModule",{value:!0});tY.take=void 0;var zb=S9(),Kb=l1(),$b=Q0();function Bb(Q){return Q<=0?function(){return zb.EMPTY}:Kb.operate(function(X,Z){var J=0;X.subscribe($b.createOperatorSubscriber(Z,function(G){if(++J<=Q){if(Z.next(G),Q<=J)Z.complete()}}))})}tY.take=Bb});var GK=r((rY)=>{Object.defineProperty(rY,"__esModule",{value:!0});rY.ignoreElements=void 0;var Ub=l1(),Vb=Q0(),Pb=s6();function Fb(){return Ub.operate(function(Q,X){Q.subscribe(Vb.createOperatorSubscriber(X,Pb.noop))})}rY.ignoreElements=Fb});var YK=r((eY)=>{Object.defineProperty(eY,"__esModule",{value:!0});eY.mapTo=void 0;var Db=tQ();function Lb(Q){return Db.map(function(){return Q})}eY.mapTo=Lb});var WK=r((QW)=>{Object.defineProperty(QW,"__esModule",{value:!0});QW.delayWhen=void 0;var Cb=GX(),jL=qX(),Nb=GK(),Tb=YK(),Mb=OQ(),Ib=A0();function SL(Q,X){if(X)return function(Z){return Cb.concat(X.pipe(jL.take(1),Nb.ignoreElements()),Z.pipe(SL(Q)))};return Mb.mergeMap(function(Z,J){return Ib.innerFrom(Q(Z,J)).pipe(jL.take(1),Tb.mapTo(Z))})}QW.delayWhen=SL});var kL=r((ZW)=>{Object.defineProperty(ZW,"__esModule",{value:!0});ZW.delay=void 0;var Rb=w8(),Ab=WK(),Ob=Z4();function wb(Q,X){if(X===void 0)X=Rb.asyncScheduler;var Z=Ob.timer(Q,X);return Ab.delayWhen(function(){return Z})}ZW.delay=wb});var yL=r((XW)=>{Object.defineProperty(XW,"__esModule",{value:!0});XW.dematerialize=void 0;var Eb=lG(),jb=l1(),Sb=Q0();function kb(){return jb.operate(function(Q,X){Q.subscribe(Sb.createOperatorSubscriber(X,function(Z){return Eb.observeNotification(Z,X)}))})}XW.dematerialize=kb});var vL=r((JW)=>{Object.defineProperty(JW,"__esModule",{value:!0});JW.distinct=void 0;var yb=l1(),xL=Q0(),xb=s6(),vb=A0();function gb(Q,X){return yb.operate(function(Z,J){var G=new Set;Z.subscribe(xL.createOperatorSubscriber(J,function(Y){var H=Q?Q(Y):Y;if(!G.has(H))G.add(H),J.next(Y)})),X&&vb.innerFrom(X).subscribe(xL.createOperatorSubscriber(J,function(){return G.clear()},xb.noop))})}JW.distinct=gb});var qK=r((GW)=>{Object.defineProperty(GW,"__esModule",{value:!0});GW.distinctUntilChanged=void 0;var hb=t6(),fb=l1(),bb=Q0();function mb(Q,X){if(X===void 0)X=hb.identity;return Q=Q!==null&&Q!==void 0?Q:_b,fb.operate(function(Z,J){var G,Y=!0;Z.subscribe(bb.createOperatorSubscriber(J,function(H){var K=X(H);if(Y||!Q(G,K))Y=!1,G=K,J.next(H)}))})}GW.distinctUntilChanged=mb;function _b(Q,X){return Q===X}});var gL=r((YW)=>{Object.defineProperty(YW,"__esModule",{value:!0});YW.distinctUntilKeyChanged=void 0;var db=qK();function ub(Q,X){return db.distinctUntilChanged(function(Z,J){return X?X(Z[Q],J[Q]):Z[Q]===J[Q]})}YW.distinctUntilKeyChanged=ub});var HX=r((WW)=>{Object.defineProperty(WW,"__esModule",{value:!0});WW.throwIfEmpty=void 0;var pb=sQ(),lb=l1(),cb=Q0();function ib(Q){if(Q===void 0)Q=nb;return lb.operate(function(X,Z){var J=!1;X.subscribe(cb.createOperatorSubscriber(Z,function(G){J=!0,Z.next(G)},function(){return J?Z.complete():Z.error(Q())}))})}WW.throwIfEmpty=ib;function nb(){return new pb.EmptyError}});var fL=r((qW)=>{Object.defineProperty(qW,"__esModule",{value:!0});qW.elementAt=void 0;var hL=bz(),ob=JZ(),ab=HX(),sb=WX(),tb=qX();function rb(Q,X){if(Q<0)throw new hL.ArgumentOutOfRangeError;var Z=arguments.length>=2;return function(J){return J.pipe(ob.filter(function(G,Y){return Y===Q}),tb.take(1),Z?sb.defaultIfEmpty(X):ab.throwIfEmpty(function(){return new hL.ArgumentOutOfRangeError}))}}qW.elementAt=rb});var bL=r((q4)=>{var eb=q4&&q4.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},Qm=q4&&q4.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{Object.defineProperty(HW,"__esModule",{value:!0});HW.every=void 0;var Gm=l1(),Ym=Q0();function Wm(Q,X){return Gm.operate(function(Z,J){var G=0;Z.subscribe(Ym.createOperatorSubscriber(J,function(Y){if(!Q.call(X,Y,G++,Z))J.next(!1),J.complete()},function(){J.next(!0),J.complete()}))})}HW.every=Wm});var HK=r((zW)=>{Object.defineProperty(zW,"__esModule",{value:!0});zW.exhaustMap=void 0;var qm=tQ(),_L=A0(),Hm=l1(),dL=Q0();function uL(Q,X){if(X)return function(Z){return Z.pipe(uL(function(J,G){return _L.innerFrom(Q(J,G)).pipe(qm.map(function(Y,H){return X(J,Y,G,H)}))}))};return Hm.operate(function(Z,J){var G=0,Y=null,H=!1;Z.subscribe(dL.createOperatorSubscriber(J,function(K){if(!Y)Y=dL.createOperatorSubscriber(J,void 0,function(){Y=null,H&&J.complete()}),_L.innerFrom(Q(K,G++)).subscribe(Y)},function(){H=!0,!Y&&J.complete()}))})}zW.exhaustMap=uL});var zK=r((KW)=>{Object.defineProperty(KW,"__esModule",{value:!0});KW.exhaustAll=void 0;var zm=HK(),Km=t6();function $m(){return zm.exhaustMap(Km.identity)}KW.exhaustAll=$m});var pL=r(($W)=>{Object.defineProperty($W,"__esModule",{value:!0});$W.exhaust=void 0;var Bm=zK();$W.exhaust=Bm.exhaustAll});var lL=r((BW)=>{Object.defineProperty(BW,"__esModule",{value:!0});BW.expand=void 0;var Um=l1(),Vm=HY();function Pm(Q,X,Z){if(X===void 0)X=1/0;return X=(X||0)<1?1/0:X,Um.operate(function(J,G){return Vm.mergeInternals(J,G,Q,X,void 0,!0,Z)})}BW.expand=Pm});var cL=r((UW)=>{Object.defineProperty(UW,"__esModule",{value:!0});UW.finalize=void 0;var Fm=l1();function Dm(Q){return Fm.operate(function(X,Z){try{X.subscribe(Z)}finally{Z.add(Q)}})}UW.finalize=Dm});var KK=r((y5)=>{Object.defineProperty(y5,"__esModule",{value:!0});y5.createFind=y5.find=void 0;var Lm=l1(),Cm=Q0();function Nm(Q,X){return Lm.operate(iL(Q,X,"value"))}y5.find=Nm;function iL(Q,X,Z){var J=Z==="index";return function(G,Y){var H=0;G.subscribe(Cm.createOperatorSubscriber(Y,function(K){var z=H++;if(Q.call(X,K,z,G))Y.next(J?z:K),Y.complete()},function(){Y.next(J?-1:void 0),Y.complete()}))}}y5.createFind=iL});var nL=r((VW)=>{Object.defineProperty(VW,"__esModule",{value:!0});VW.findIndex=void 0;var Tm=l1(),Mm=KK();function Im(Q,X){return Tm.operate(Mm.createFind(Q,X,"index"))}VW.findIndex=Im});var oL=r((PW)=>{Object.defineProperty(PW,"__esModule",{value:!0});PW.first=void 0;var Rm=sQ(),Am=JZ(),Om=qX(),wm=WX(),Em=HX(),jm=t6();function Sm(Q,X){var Z=arguments.length>=2;return function(J){return J.pipe(Q?Am.filter(function(G,Y){return Q(G,Y,J)}):jm.identity,Om.take(1),Z?wm.defaultIfEmpty(X):Em.throwIfEmpty(function(){return new Rm.EmptyError}))}}PW.first=Sm});var sL=r((FW)=>{Object.defineProperty(FW,"__esModule",{value:!0});FW.groupBy=void 0;var km=Q6(),ym=A0(),xm=r6(),vm=l1(),aL=Q0();function gm(Q,X,Z,J){return vm.operate(function(G,Y){var H;if(!X||typeof X==="function")H=X;else Z=X.duration,H=X.element,J=X.connector;var K=new Map,z=function(F){K.forEach(F),F(Y)},W=function(F){return z(function(P){return P.error(F)})},$=0,q=!1,B=new aL.OperatorSubscriber(Y,function(F){try{var P=Q(F),N=K.get(P);if(!N){K.set(P,N=J?J():new xm.Subject);var C=D(P,N);if(Y.next(C),Z){var L=aL.createOperatorSubscriber(N,function(){N.complete(),L===null||L===void 0||L.unsubscribe()},void 0,void 0,function(){return K.delete(P)});B.add(ym.innerFrom(Z(C)).subscribe(L))}}N.next(H?H(F):F)}catch(V){W(V)}},function(){return z(function(F){return F.complete()})},W,function(){return K.clear()},function(){return q=!0,$===0});G.subscribe(B);function D(F,P){var N=new km.Observable(function(C){$++;var L=P.subscribe(C);return function(){L.unsubscribe(),--$===0&&q&&B.unsubscribe()}});return N.key=F,N}})}FW.groupBy=gm});var tL=r((DW)=>{Object.defineProperty(DW,"__esModule",{value:!0});DW.isEmpty=void 0;var hm=l1(),fm=Q0();function bm(){return hm.operate(function(Q,X){Q.subscribe(fm.createOperatorSubscriber(X,function(){X.next(!1),X.complete()},function(){X.next(!0),X.complete()}))})}DW.isEmpty=bm});var $K=r((x5)=>{var mm=x5&&x5.__values||function(Q){var X=typeof Symbol==="function"&&Symbol.iterator,Z=X&&Q[X],J=0;if(Z)return Z.call(Q);if(Q&&typeof Q.length==="number")return{next:function(){if(Q&&J>=Q.length)Q=void 0;return{value:Q&&Q[J++],done:!Q}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(x5,"__esModule",{value:!0});x5.takeLast=void 0;var _m=S9(),dm=l1(),um=Q0();function pm(Q){return Q<=0?function(){return _m.EMPTY}:dm.operate(function(X,Z){var J=[];X.subscribe(um.createOperatorSubscriber(Z,function(G){J.push(G),Q{Object.defineProperty(LW,"__esModule",{value:!0});LW.last=void 0;var lm=sQ(),cm=JZ(),im=$K(),nm=HX(),om=WX(),am=t6();function sm(Q,X){var Z=arguments.length>=2;return function(J){return J.pipe(Q?cm.filter(function(G,Y){return Q(G,Y,J)}):am.identity,im.takeLast(1),Z?om.defaultIfEmpty(X):nm.throwIfEmpty(function(){return new lm.EmptyError}))}}LW.last=sm});var eL=r((CW)=>{Object.defineProperty(CW,"__esModule",{value:!0});CW.materialize=void 0;var BK=lG(),tm=l1(),rm=Q0();function em(){return tm.operate(function(Q,X){Q.subscribe(rm.createOperatorSubscriber(X,function(Z){X.next(BK.Notification.createNext(Z))},function(){X.next(BK.Notification.createComplete()),X.complete()},function(Z){X.next(BK.Notification.createError(Z)),X.complete()}))})}CW.materialize=em});var QC=r((NW)=>{Object.defineProperty(NW,"__esModule",{value:!0});NW.max=void 0;var Q_=k5(),Z_=t0();function X_(Q){return Q_.reduce(Z_.isFunction(Q)?function(X,Z){return Q(X,Z)>0?X:Z}:function(X,Z){return X>Z?X:Z})}NW.max=X_});var ZC=r((TW)=>{Object.defineProperty(TW,"__esModule",{value:!0});TW.flatMap=void 0;var J_=OQ();TW.flatMap=J_.mergeMap});var JC=r((MW)=>{Object.defineProperty(MW,"__esModule",{value:!0});MW.mergeMapTo=void 0;var XC=OQ(),G_=t0();function Y_(Q,X,Z){if(Z===void 0)Z=1/0;if(G_.isFunction(X))return XC.mergeMap(function(){return Q},X,Z);if(typeof X==="number")Z=X;return XC.mergeMap(function(){return Q},Z)}MW.mergeMapTo=Y_});var GC=r((IW)=>{Object.defineProperty(IW,"__esModule",{value:!0});IW.mergeScan=void 0;var W_=l1(),q_=HY();function H_(Q,X,Z){if(Z===void 0)Z=1/0;return W_.operate(function(J,G){var Y=X;return q_.mergeInternals(J,G,function(H,K){return Q(Y,H,K)},Z,function(H){Y=H},!1,void 0,function(){return Y=null})})}IW.mergeScan=H_});var WC=r((H4)=>{var z_=H4&&H4.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},K_=H4&&H4.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{var F_=z4&&z4.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},D_=z4&&z4.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{Object.defineProperty(RW,"__esModule",{value:!0});RW.min=void 0;var N_=k5(),T_=t0();function M_(Q){return N_.reduce(T_.isFunction(Q)?function(X,Z){return Q(X,Z)<0?X:Z}:function(X,Z){return X{Object.defineProperty(AW,"__esModule",{value:!0});AW.multicast=void 0;var I_=t7(),zC=t0(),R_=iY();function A_(Q,X){var Z=zC.isFunction(Q)?Q:function(){return Q};if(zC.isFunction(X))return R_.connect(X,{connector:Z});return function(J){return new I_.ConnectableObservable(J,Z)}}AW.multicast=A_});var $C=r((QQ)=>{var O_=QQ&&QQ.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},w_=QQ&&QQ.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{Object.defineProperty(wW,"__esModule",{value:!0});wW.pairwise=void 0;var S_=l1(),k_=Q0();function y_(){return S_.operate(function(Q,X){var Z,J=!1;Q.subscribe(k_.createOperatorSubscriber(X,function(G){var Y=Z;Z=G,J&&X.next([Y,G]),J=!0}))})}wW.pairwise=y_});var UC=r((EW)=>{Object.defineProperty(EW,"__esModule",{value:!0});EW.pluck=void 0;var x_=tQ();function v_(){var Q=[];for(var X=0;X{Object.defineProperty(jW,"__esModule",{value:!0});jW.publish=void 0;var g_=r6(),h_=OW(),f_=iY();function b_(Q){return Q?function(X){return f_.connect(Q)(X)}:function(X){return h_.multicast(new g_.Subject)(X)}}jW.publish=b_});var PC=r((SW)=>{Object.defineProperty(SW,"__esModule",{value:!0});SW.publishBehavior=void 0;var m_=Tz(),__=t7();function d_(Q){return function(X){var Z=new m_.BehaviorSubject(Q);return new __.ConnectableObservable(X,function(){return Z})}}SW.publishBehavior=d_});var FC=r((kW)=>{Object.defineProperty(kW,"__esModule",{value:!0});kW.publishLast=void 0;var u_=LG(),p_=t7();function l_(){return function(Q){var X=new u_.AsyncSubject;return new p_.ConnectableObservable(Q,function(){return X})}}kW.publishLast=l_});var LC=r((yW)=>{Object.defineProperty(yW,"__esModule",{value:!0});yW.publishReplay=void 0;var c_=DG(),i_=OW(),DC=t0();function n_(Q,X,Z,J){if(Z&&!DC.isFunction(Z))J=Z;var G=DC.isFunction(Z)?Z:void 0;return function(Y){return i_.multicast(new c_.ReplaySubject(Q,X,J),G)(Y)}}yW.publishReplay=n_});var CC=r((K4)=>{var o_=K4&&K4.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},a_=K4&&K4.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{Object.defineProperty(xW,"__esModule",{value:!0});xW.repeat=void 0;var Qd=S9(),Zd=l1(),NC=Q0(),Xd=A0(),Jd=Z4();function Gd(Q){var X,Z=1/0,J;if(Q!=null)if(typeof Q==="object")X=Q.count,Z=X===void 0?1/0:X,J=Q.delay;else Z=Q;return Z<=0?function(){return Qd.EMPTY}:Zd.operate(function(G,Y){var H=0,K,z=function(){if(K===null||K===void 0||K.unsubscribe(),K=null,J!=null){var $=typeof J==="number"?Jd.timer(J):Xd.innerFrom(J(H)),q=NC.createOperatorSubscriber(Y,function(){q.unsubscribe(),W()});$.subscribe(q)}else W()},W=function(){var $=!1;if(K=G.subscribe(NC.createOperatorSubscriber(Y,void 0,function(){if(++H{Object.defineProperty(vW,"__esModule",{value:!0});vW.repeatWhen=void 0;var Yd=A0(),Wd=r6(),qd=l1(),MC=Q0();function Hd(Q){return qd.operate(function(X,Z){var J,G=!1,Y,H=!1,K=!1,z=function(){return K&&H&&(Z.complete(),!0)},W=function(){if(!Y)Y=new Wd.Subject,Yd.innerFrom(Q(Y)).subscribe(MC.createOperatorSubscriber(Z,function(){if(J)$();else G=!0},function(){H=!0,z()}));return Y},$=function(){if(K=!1,J=X.subscribe(MC.createOperatorSubscriber(Z,void 0,function(){K=!0,!z()&&W().next()})),G)J.unsubscribe(),J=null,G=!1,$()};$()})}vW.repeatWhen=Hd});var AC=r((gW)=>{Object.defineProperty(gW,"__esModule",{value:!0});gW.retry=void 0;var zd=l1(),RC=Q0(),Kd=t6(),$d=Z4(),Bd=A0();function Ud(Q){if(Q===void 0)Q=1/0;var X;if(Q&&typeof Q==="object")X=Q;else X={count:Q};var Z=X.count,J=Z===void 0?1/0:Z,G=X.delay,Y=X.resetOnSuccess,H=Y===void 0?!1:Y;return J<=0?Kd.identity:zd.operate(function(K,z){var W=0,$,q=function(){var B=!1;if($=K.subscribe(RC.createOperatorSubscriber(z,function(D){if(H)W=0;z.next(D)},void 0,function(D){if(W++{Object.defineProperty(hW,"__esModule",{value:!0});hW.retryWhen=void 0;var Vd=A0(),Pd=r6(),Fd=l1(),OC=Q0();function Dd(Q){return Fd.operate(function(X,Z){var J,G=!1,Y,H=function(){if(J=X.subscribe(OC.createOperatorSubscriber(Z,void 0,void 0,function(K){if(!Y)Y=new Pd.Subject,Vd.innerFrom(Q(Y)).subscribe(OC.createOperatorSubscriber(Z,function(){return J?H():G=!0}));if(Y)Y.next(K)})),G)J.unsubscribe(),J=null,G=!1,H()};H()})}hW.retryWhen=Dd});var UK=r((fW)=>{Object.defineProperty(fW,"__esModule",{value:!0});fW.sample=void 0;var Ld=A0(),Cd=l1(),Nd=s6(),EC=Q0();function Td(Q){return Cd.operate(function(X,Z){var J=!1,G=null;X.subscribe(EC.createOperatorSubscriber(Z,function(Y){J=!0,G=Y})),Ld.innerFrom(Q).subscribe(EC.createOperatorSubscriber(Z,function(){if(J){J=!1;var Y=G;G=null,Z.next(Y)}},Nd.noop))})}fW.sample=Td});var jC=r((bW)=>{Object.defineProperty(bW,"__esModule",{value:!0});bW.sampleTime=void 0;var Md=w8(),Id=UK(),Rd=iz();function Ad(Q,X){if(X===void 0)X=Md.asyncScheduler;return Id.sample(Rd.interval(Q,X))}bW.sampleTime=Ad});var SC=r((mW)=>{Object.defineProperty(mW,"__esModule",{value:!0});mW.scan=void 0;var Od=l1(),wd=ez();function Ed(Q,X){return Od.operate(wd.scanInternals(Q,X,arguments.length>=2,!0))}mW.scan=Ed});var yC=r((_W)=>{Object.defineProperty(_W,"__esModule",{value:!0});_W.sequenceEqual=void 0;var jd=l1(),Sd=Q0(),kd=A0();function yd(Q,X){if(X===void 0)X=function(Z,J){return Z===J};return jd.operate(function(Z,J){var G=kC(),Y=kC(),H=function(z){J.next(z),J.complete()},K=function(z,W){var $=Sd.createOperatorSubscriber(J,function(q){var{buffer:B,complete:D}=W;if(B.length===0)D?H(!1):z.buffer.push(q);else!X(q,B.shift())&&H(!1)},function(){z.complete=!0;var{complete:q,buffer:B}=W;q&&H(B.length===0),$===null||$===void 0||$.unsubscribe()});return $};Z.subscribe(K(G,Y)),kd.innerFrom(Q).subscribe(K(Y,G))})}_W.sequenceEqual=yd;function kC(){return{buffer:[],complete:!1}}});var PK=r(($4)=>{var xd=$4&&$4.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},vd=$4&&$4.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z0)$=new vC.SafeSubscriber({next:function(E){return I.next(E)},error:function(E){P=!0,N(),q=VK(C,G,E),I.error(E)},complete:function(){F=!0,N(),q=VK(C,H),I.complete()}}),xC.innerFrom(V).subscribe($)})(W)}}$4.share=fd;function VK(Q,X){var Z=[];for(var J=2;J{Object.defineProperty(dW,"__esModule",{value:!0});dW.shareReplay=void 0;var bd=DG(),md=PK();function _d(Q,X,Z){var J,G,Y,H,K=!1;if(Q&&typeof Q==="object")J=Q.bufferSize,H=J===void 0?1/0:J,G=Q.windowTime,X=G===void 0?1/0:G,Y=Q.refCount,K=Y===void 0?!1:Y,Z=Q.scheduler;else H=Q!==null&&Q!==void 0?Q:1/0;return md.share({connector:function(){return new bd.ReplaySubject(H,X,Z)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:K})}dW.shareReplay=_d});var hC=r((uW)=>{Object.defineProperty(uW,"__esModule",{value:!0});uW.single=void 0;var dd=sQ(),ud=_z(),pd=mz(),ld=l1(),cd=Q0();function id(Q){return ld.operate(function(X,Z){var J=!1,G,Y=!1,H=0;X.subscribe(cd.createOperatorSubscriber(Z,function(K){if(Y=!0,!Q||Q(K,H++,X))J&&Z.error(new ud.SequenceError("Too many matching values")),J=!0,G=K},function(){if(J)Z.next(G),Z.complete();else Z.error(Y?new pd.NotFoundError("No matching values"):new dd.EmptyError)}))})}uW.single=id});var fC=r((pW)=>{Object.defineProperty(pW,"__esModule",{value:!0});pW.skip=void 0;var nd=JZ();function od(Q){return nd.filter(function(X,Z){return Q<=Z})}pW.skip=od});var bC=r((lW)=>{Object.defineProperty(lW,"__esModule",{value:!0});lW.skipLast=void 0;var ad=t6(),sd=l1(),td=Q0();function rd(Q){return Q<=0?ad.identity:sd.operate(function(X,Z){var J=new Array(Q),G=0;return X.subscribe(td.createOperatorSubscriber(Z,function(Y){var H=G++;if(H{Object.defineProperty(cW,"__esModule",{value:!0});cW.skipUntil=void 0;var ed=l1(),mC=Q0(),Qu=A0(),Zu=s6();function Xu(Q){return ed.operate(function(X,Z){var J=!1,G=mC.createOperatorSubscriber(Z,function(){G===null||G===void 0||G.unsubscribe(),J=!0},Zu.noop);Qu.innerFrom(Q).subscribe(G),X.subscribe(mC.createOperatorSubscriber(Z,function(Y){return J&&Z.next(Y)}))})}cW.skipUntil=Xu});var dC=r((iW)=>{Object.defineProperty(iW,"__esModule",{value:!0});iW.skipWhile=void 0;var Ju=l1(),Gu=Q0();function Yu(Q){return Ju.operate(function(X,Z){var J=!1,G=0;X.subscribe(Gu.createOperatorSubscriber(Z,function(Y){return(J||(J=!Q(Y,G++)))&&Z.next(Y)}))})}iW.skipWhile=Yu});var pC=r((nW)=>{Object.defineProperty(nW,"__esModule",{value:!0});nW.startWith=void 0;var uC=GX(),Wu=E8(),qu=l1();function Hu(){var Q=[];for(var X=0;X{Object.defineProperty(oW,"__esModule",{value:!0});oW.switchMap=void 0;var zu=A0(),Ku=l1(),lC=Q0();function $u(Q,X){return Ku.operate(function(Z,J){var G=null,Y=0,H=!1,K=function(){return H&&!G&&J.complete()};Z.subscribe(lC.createOperatorSubscriber(J,function(z){G===null||G===void 0||G.unsubscribe();var W=0,$=Y++;zu.innerFrom(Q(z,$)).subscribe(G=lC.createOperatorSubscriber(J,function(q){return J.next(X?X(z,q,$,W++):q)},function(){G=null,K()}))},function(){H=!0,K()}))})}oW.switchMap=$u});var cC=r((aW)=>{Object.defineProperty(aW,"__esModule",{value:!0});aW.switchAll=void 0;var Bu=zX(),Uu=t6();function Vu(){return Bu.switchMap(Uu.identity)}aW.switchAll=Vu});var nC=r((sW)=>{Object.defineProperty(sW,"__esModule",{value:!0});sW.switchMapTo=void 0;var iC=zX(),Pu=t0();function Fu(Q,X){return Pu.isFunction(X)?iC.switchMap(function(){return Q},X):iC.switchMap(function(){return Q})}sW.switchMapTo=Fu});var oC=r((tW)=>{Object.defineProperty(tW,"__esModule",{value:!0});tW.switchScan=void 0;var Du=zX(),Lu=l1();function Cu(Q,X){return Lu.operate(function(Z,J){var G=X;return Du.switchMap(function(Y,H){return Q(G,Y,H)},function(Y,H){return G=H,H})(Z).subscribe(J),function(){G=null}})}tW.switchScan=Cu});var aC=r((rW)=>{Object.defineProperty(rW,"__esModule",{value:!0});rW.takeUntil=void 0;var Nu=l1(),Tu=Q0(),Mu=A0(),Iu=s6();function Ru(Q){return Nu.operate(function(X,Z){Mu.innerFrom(Q).subscribe(Tu.createOperatorSubscriber(Z,function(){return Z.complete()},Iu.noop)),!Z.closed&&X.subscribe(Z)})}rW.takeUntil=Ru});var sC=r((eW)=>{Object.defineProperty(eW,"__esModule",{value:!0});eW.takeWhile=void 0;var Au=l1(),Ou=Q0();function wu(Q,X){if(X===void 0)X=!1;return Au.operate(function(Z,J){var G=0;Z.subscribe(Ou.createOperatorSubscriber(J,function(Y){var H=Q(Y,G++);(H||X)&&J.next(Y),!H&&J.complete()}))})}eW.takeWhile=wu});var tC=r((Qq)=>{Object.defineProperty(Qq,"__esModule",{value:!0});Qq.tap=void 0;var Eu=t0(),ju=l1(),Su=Q0(),ku=t6();function yu(Q,X,Z){var J=Eu.isFunction(Q)||X||Z?{next:Q,error:X,complete:Z}:Q;return J?ju.operate(function(G,Y){var H;(H=J.subscribe)===null||H===void 0||H.call(J);var K=!0;G.subscribe(Su.createOperatorSubscriber(Y,function(z){var W;(W=J.next)===null||W===void 0||W.call(J,z),Y.next(z)},function(){var z;K=!1,(z=J.complete)===null||z===void 0||z.call(J),Y.complete()},function(z){var W;K=!1,(W=J.error)===null||W===void 0||W.call(J,z),Y.error(z)},function(){var z,W;if(K)(z=J.unsubscribe)===null||z===void 0||z.call(J);(W=J.finalize)===null||W===void 0||W.call(J)}))}):ku.identity}Qq.tap=yu});var FK=r((Zq)=>{Object.defineProperty(Zq,"__esModule",{value:!0});Zq.throttle=void 0;var xu=l1(),rC=Q0(),vu=A0();function gu(Q,X){return xu.operate(function(Z,J){var G=X!==null&&X!==void 0?X:{},Y=G.leading,H=Y===void 0?!0:Y,K=G.trailing,z=K===void 0?!1:K,W=!1,$=null,q=null,B=!1,D=function(){if(q===null||q===void 0||q.unsubscribe(),q=null,z)N(),B&&J.complete()},F=function(){q=null,B&&J.complete()},P=function(C){return q=vu.innerFrom(Q(C)).subscribe(rC.createOperatorSubscriber(J,D,F))},N=function(){if(W){W=!1;var C=$;$=null,J.next(C),!B&&P(C)}};Z.subscribe(rC.createOperatorSubscriber(J,function(C){W=!0,$=C,!(q&&!q.closed)&&(H?N():P(C))},function(){B=!0,!(z&&W&&q&&!q.closed)&&J.complete()}))})}Zq.throttle=gu});var eC=r((Xq)=>{Object.defineProperty(Xq,"__esModule",{value:!0});Xq.throttleTime=void 0;var hu=w8(),fu=FK(),bu=Z4();function mu(Q,X,Z){if(X===void 0)X=hu.asyncScheduler;var J=bu.timer(Q,X);return fu.throttle(function(){return J},Z)}Xq.throttleTime=mu});var ZN=r((v5)=>{Object.defineProperty(v5,"__esModule",{value:!0});v5.TimeInterval=v5.timeInterval=void 0;var _u=w8(),du=l1(),uu=Q0();function pu(Q){if(Q===void 0)Q=_u.asyncScheduler;return du.operate(function(X,Z){var J=Q.now();X.subscribe(uu.createOperatorSubscriber(Z,function(G){var Y=Q.now(),H=Y-J;J=Y,Z.next(new QN(G,H))}))})}v5.timeInterval=pu;var QN=function(){function Q(X,Z){this.value=X,this.interval=Z}return Q}();v5.TimeInterval=QN});var XN=r((Jq)=>{Object.defineProperty(Jq,"__esModule",{value:!0});Jq.timeoutWith=void 0;var lu=w8(),cu=eG(),iu=QY();function nu(Q,X,Z){var J,G,Y;if(Z=Z!==null&&Z!==void 0?Z:lu.async,cu.isValidDate(Q))J=Q;else if(typeof Q==="number")G=Q;if(X)Y=function(){return X};else throw new TypeError("No observable provided to switch to");if(J==null&&G==null)throw new TypeError("No timeout provided.");return iu.timeout({first:J,each:G,scheduler:Z,with:Y})}Jq.timeoutWith=nu});var JN=r((Gq)=>{Object.defineProperty(Gq,"__esModule",{value:!0});Gq.timestamp=void 0;var ou=FG(),au=tQ();function su(Q){if(Q===void 0)Q=ou.dateTimestampProvider;return au.map(function(X){return{value:X,timestamp:Q.now()}})}Gq.timestamp=su});var WN=r((Yq)=>{Object.defineProperty(Yq,"__esModule",{value:!0});Yq.window=void 0;var GN=r6(),tu=l1(),YN=Q0(),ru=s6(),eu=A0();function Qp(Q){return tu.operate(function(X,Z){var J=new GN.Subject;Z.next(J.asObservable());var G=function(Y){J.error(Y),Z.error(Y)};return X.subscribe(YN.createOperatorSubscriber(Z,function(Y){return J===null||J===void 0?void 0:J.next(Y)},function(){J.complete(),Z.complete()},G)),eu.innerFrom(Q).subscribe(YN.createOperatorSubscriber(Z,function(){J.complete(),Z.next(J=new GN.Subject)},ru.noop,G)),function(){J===null||J===void 0||J.unsubscribe(),J=null}})}Yq.window=Qp});var HN=r((g5)=>{var Zp=g5&&g5.__values||function(Q){var X=typeof Symbol==="function"&&Symbol.iterator,Z=X&&Q[X],J=0;if(Z)return Z.call(Q);if(Q&&typeof Q.length==="number")return{next:function(){if(Q&&J>=Q.length)Q=void 0;return{value:Q&&Q[J++],done:!Q}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(g5,"__esModule",{value:!0});g5.windowCount=void 0;var qN=r6(),Xp=l1(),Jp=Q0();function Gp(Q,X){if(X===void 0)X=0;var Z=X>0?X:Q;return Xp.operate(function(J,G){var Y=[new qN.Subject],H=[],K=0;G.next(Y[0].asObservable()),J.subscribe(Jp.createOperatorSubscriber(G,function(z){var W,$;try{for(var q=Zp(Y),B=q.next();!B.done;B=q.next()){var D=B.value;D.next(z)}}catch(N){W={error:N}}finally{try{if(B&&!B.done&&($=q.return))$.call(q)}finally{if(W)throw W.error}}var F=K-Q+1;if(F>=0&&F%Z===0)Y.shift().complete();if(++K%Z===0){var P=new qN.Subject;Y.push(P),G.next(P.asObservable())}},function(){while(Y.length>0)Y.shift().complete();G.complete()},function(z){while(Y.length>0)Y.shift().error(z);G.error(z)},function(){H=null,Y=null}))})}g5.windowCount=Gp});var KN=r((Wq)=>{Object.defineProperty(Wq,"__esModule",{value:!0});Wq.windowTime=void 0;var Yp=r6(),Wp=w8(),qp=o8(),Hp=l1(),zp=Q0(),Kp=MQ(),$p=E8(),zN=IQ();function Bp(Q){var X,Z,J=[];for(var G=1;G=0)zN.executeSchedule(W,Y,D,H,!0);else q=!0;D();var F=function(N){return $.slice().forEach(N)},P=function(N){F(function(C){var L=C.window;return N(L)}),N(W),W.unsubscribe()};return z.subscribe(zp.createOperatorSubscriber(W,function(N){F(function(C){C.window.next(N),K<=++C.seen&&B(C)})},function(){return P(function(N){return N.complete()})},function(N){return P(function(C){return C.error(N)})})),function(){$=null}})}Wq.windowTime=Bp});var UN=r((h5)=>{var Up=h5&&h5.__values||function(Q){var X=typeof Symbol==="function"&&Symbol.iterator,Z=X&&Q[X],J=0;if(Z)return Z.call(Q);if(Q&&typeof Q.length==="number")return{next:function(){if(Q&&J>=Q.length)Q=void 0;return{value:Q&&Q[J++],done:!Q}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(h5,"__esModule",{value:!0});h5.windowToggle=void 0;var Vp=r6(),Pp=o8(),Fp=l1(),$N=A0(),DK=Q0(),BN=s6(),Dp=MQ();function Lp(Q,X){return Fp.operate(function(Z,J){var G=[],Y=function(H){while(0{Object.defineProperty(qq,"__esModule",{value:!0});qq.windowWhen=void 0;var Cp=r6(),Np=l1(),VN=Q0(),Tp=A0();function Mp(Q){return Np.operate(function(X,Z){var J,G,Y=function(K){J.error(K),Z.error(K)},H=function(){G===null||G===void 0||G.unsubscribe(),J===null||J===void 0||J.complete(),J=new Cp.Subject,Z.next(J.asObservable());var K;try{K=Tp.innerFrom(Q())}catch(z){Y(z);return}K.subscribe(G=VN.createOperatorSubscriber(Z,H,H,Y))};H(),X.subscribe(VN.createOperatorSubscriber(Z,function(K){return J.next(K)},function(){J.complete(),Z.complete()},Y,function(){G===null||G===void 0||G.unsubscribe(),J=null}))})}qq.windowWhen=Mp});var CN=r((B4)=>{var FN=B4&&B4.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},DN=B4&&B4.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{Object.defineProperty(Hq,"__esModule",{value:!0});Hq.zipAll=void 0;var jp=SY(),Sp=ZK();function kp(Q){return Sp.joinAllInternals(jp.zip,Q)}Hq.zipAll=kp});var TN=r((U4)=>{var yp=U4&&U4.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},xp=U4&&U4.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{var fp=V4&&V4.__read||function(Q,X){var Z=typeof Symbol==="function"&&Q[Symbol.iterator];if(!Z)return Q;var J=Z.call(Q),G,Y=[],H;try{while((X===void 0||X-- >0)&&!(G=J.next()).done)Y.push(G.value)}catch(K){H={error:K}}finally{try{if(G&&!G.done&&(Z=J.return))Z.call(J)}finally{if(H)throw H.error}}return Y},bp=V4&&V4.__spreadArray||function(Q,X){for(var Z=0,J=X.length,G=Q.length;Z{var dp=l&&l.__createBinding||(Object.create?function(Q,X,Z,J){if(J===void 0)J=Z;Object.defineProperty(Q,J,{enumerable:!0,get:function(){return X[Z]}})}:function(Q,X,Z,J){if(J===void 0)J=Z;Q[J]=X[Z]}),up=l&&l.__exportStar||function(Q,X){for(var Z in Q)if(Z!=="default"&&!Object.prototype.hasOwnProperty.call(X,Z))dp(X,Q,Z)};Object.defineProperty(l,"__esModule",{value:!0});l.interval=l.iif=l.generate=l.fromEventPattern=l.fromEvent=l.from=l.forkJoin=l.empty=l.defer=l.connectable=l.concat=l.combineLatest=l.bindNodeCallback=l.bindCallback=l.UnsubscriptionError=l.TimeoutError=l.SequenceError=l.ObjectUnsubscribedError=l.NotFoundError=l.EmptyError=l.ArgumentOutOfRangeError=l.firstValueFrom=l.lastValueFrom=l.isObservable=l.identity=l.noop=l.pipe=l.NotificationKind=l.Notification=l.Subscriber=l.Subscription=l.Scheduler=l.VirtualAction=l.VirtualTimeScheduler=l.animationFrameScheduler=l.animationFrame=l.queueScheduler=l.queue=l.asyncScheduler=l.async=l.asapScheduler=l.asap=l.AsyncSubject=l.ReplaySubject=l.BehaviorSubject=l.Subject=l.animationFrames=l.observable=l.ConnectableObservable=l.Observable=void 0;l.filter=l.expand=l.exhaustMap=l.exhaustAll=l.exhaust=l.every=l.endWith=l.elementAt=l.distinctUntilKeyChanged=l.distinctUntilChanged=l.distinct=l.dematerialize=l.delayWhen=l.delay=l.defaultIfEmpty=l.debounceTime=l.debounce=l.count=l.connect=l.concatWith=l.concatMapTo=l.concatMap=l.concatAll=l.combineLatestWith=l.combineLatestAll=l.combineAll=l.catchError=l.bufferWhen=l.bufferToggle=l.bufferTime=l.bufferCount=l.buffer=l.auditTime=l.audit=l.config=l.NEVER=l.EMPTY=l.scheduled=l.zip=l.using=l.timer=l.throwError=l.range=l.race=l.partition=l.pairs=l.onErrorResumeNext=l.of=l.never=l.merge=void 0;l.switchMap=l.switchAll=l.subscribeOn=l.startWith=l.skipWhile=l.skipUntil=l.skipLast=l.skip=l.single=l.shareReplay=l.share=l.sequenceEqual=l.scan=l.sampleTime=l.sample=l.refCount=l.retryWhen=l.retry=l.repeatWhen=l.repeat=l.reduce=l.raceWith=l.publishReplay=l.publishLast=l.publishBehavior=l.publish=l.pluck=l.pairwise=l.onErrorResumeNextWith=l.observeOn=l.multicast=l.min=l.mergeWith=l.mergeScan=l.mergeMapTo=l.mergeMap=l.flatMap=l.mergeAll=l.max=l.materialize=l.mapTo=l.map=l.last=l.isEmpty=l.ignoreElements=l.groupBy=l.first=l.findIndex=l.find=l.finalize=void 0;l.zipWith=l.zipAll=l.withLatestFrom=l.windowWhen=l.windowToggle=l.windowTime=l.windowCount=l.window=l.toArray=l.timestamp=l.timeoutWith=l.timeout=l.timeInterval=l.throwIfEmpty=l.throttleTime=l.throttle=l.tap=l.takeWhile=l.takeUntil=l.takeLast=l.take=l.switchScan=l.switchMapTo=void 0;var pp=Q6();Object.defineProperty(l,"Observable",{enumerable:!0,get:function(){return pp.Observable}});var lp=t7();Object.defineProperty(l,"ConnectableObservable",{enumerable:!0,get:function(){return lp.ConnectableObservable}});var cp=a7();Object.defineProperty(l,"observable",{enumerable:!0,get:function(){return cp.observable}});var ip=wF();Object.defineProperty(l,"animationFrames",{enumerable:!0,get:function(){return ip.animationFrames}});var np=r6();Object.defineProperty(l,"Subject",{enumerable:!0,get:function(){return np.Subject}});var op=Tz();Object.defineProperty(l,"BehaviorSubject",{enumerable:!0,get:function(){return op.BehaviorSubject}});var ap=DG();Object.defineProperty(l,"ReplaySubject",{enumerable:!0,get:function(){return ap.ReplaySubject}});var sp=LG();Object.defineProperty(l,"AsyncSubject",{enumerable:!0,get:function(){return sp.AsyncSubject}});var IN=lF();Object.defineProperty(l,"asap",{enumerable:!0,get:function(){return IN.asap}});Object.defineProperty(l,"asapScheduler",{enumerable:!0,get:function(){return IN.asapScheduler}});var RN=w8();Object.defineProperty(l,"async",{enumerable:!0,get:function(){return RN.async}});Object.defineProperty(l,"asyncScheduler",{enumerable:!0,get:function(){return RN.asyncScheduler}});var AN=nF();Object.defineProperty(l,"queue",{enumerable:!0,get:function(){return AN.queue}});Object.defineProperty(l,"queueScheduler",{enumerable:!0,get:function(){return AN.queueScheduler}});var ON=tF();Object.defineProperty(l,"animationFrame",{enumerable:!0,get:function(){return ON.animationFrame}});Object.defineProperty(l,"animationFrameScheduler",{enumerable:!0,get:function(){return ON.animationFrameScheduler}});var wN=QD();Object.defineProperty(l,"VirtualTimeScheduler",{enumerable:!0,get:function(){return wN.VirtualTimeScheduler}});Object.defineProperty(l,"VirtualAction",{enumerable:!0,get:function(){return wN.VirtualAction}});var tp=Iz();Object.defineProperty(l,"Scheduler",{enumerable:!0,get:function(){return tp.Scheduler}});var rp=o8();Object.defineProperty(l,"Subscription",{enumerable:!0,get:function(){return rp.Subscription}});var ep=X5();Object.defineProperty(l,"Subscriber",{enumerable:!0,get:function(){return ep.Subscriber}});var EN=lG();Object.defineProperty(l,"Notification",{enumerable:!0,get:function(){return EN.Notification}});Object.defineProperty(l,"NotificationKind",{enumerable:!0,get:function(){return EN.NotificationKind}});var Ql=s7();Object.defineProperty(l,"pipe",{enumerable:!0,get:function(){return Ql.pipe}});var Zl=s6();Object.defineProperty(l,"noop",{enumerable:!0,get:function(){return Zl.noop}});var Xl=t6();Object.defineProperty(l,"identity",{enumerable:!0,get:function(){return Xl.identity}});var Jl=DD();Object.defineProperty(l,"isObservable",{enumerable:!0,get:function(){return Jl.isObservable}});var Gl=LD();Object.defineProperty(l,"lastValueFrom",{enumerable:!0,get:function(){return Gl.lastValueFrom}});var Yl=CD();Object.defineProperty(l,"firstValueFrom",{enumerable:!0,get:function(){return Yl.firstValueFrom}});var Wl=bz();Object.defineProperty(l,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return Wl.ArgumentOutOfRangeError}});var ql=sQ();Object.defineProperty(l,"EmptyError",{enumerable:!0,get:function(){return ql.EmptyError}});var Hl=mz();Object.defineProperty(l,"NotFoundError",{enumerable:!0,get:function(){return Hl.NotFoundError}});var zl=Dz();Object.defineProperty(l,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return zl.ObjectUnsubscribedError}});var Kl=_z();Object.defineProperty(l,"SequenceError",{enumerable:!0,get:function(){return Kl.SequenceError}});var $l=QY();Object.defineProperty(l,"TimeoutError",{enumerable:!0,get:function(){return $l.TimeoutError}});var Bl=Gz();Object.defineProperty(l,"UnsubscriptionError",{enumerable:!0,get:function(){return Bl.UnsubscriptionError}});var Ul=TD();Object.defineProperty(l,"bindCallback",{enumerable:!0,get:function(){return Ul.bindCallback}});var Vl=MD();Object.defineProperty(l,"bindNodeCallback",{enumerable:!0,get:function(){return Vl.bindNodeCallback}});var Pl=WY();Object.defineProperty(l,"combineLatest",{enumerable:!0,get:function(){return Pl.combineLatest}});var Fl=GX();Object.defineProperty(l,"concat",{enumerable:!0,get:function(){return Fl.concat}});var Dl=SD();Object.defineProperty(l,"connectable",{enumerable:!0,get:function(){return Dl.connectable}});var Ll=YX();Object.defineProperty(l,"defer",{enumerable:!0,get:function(){return Ll.defer}});var Cl=S9();Object.defineProperty(l,"empty",{enumerable:!0,get:function(){return Cl.empty}});var Nl=kD();Object.defineProperty(l,"forkJoin",{enumerable:!0,get:function(){return Nl.forkJoin}});var Tl=RQ();Object.defineProperty(l,"from",{enumerable:!0,get:function(){return Tl.from}});var Ml=xD();Object.defineProperty(l,"fromEvent",{enumerable:!0,get:function(){return Ml.fromEvent}});var Il=gD();Object.defineProperty(l,"fromEventPattern",{enumerable:!0,get:function(){return Il.fromEventPattern}});var Rl=fD();Object.defineProperty(l,"generate",{enumerable:!0,get:function(){return Rl.generate}});var Al=bD();Object.defineProperty(l,"iif",{enumerable:!0,get:function(){return Al.iif}});var Ol=iz();Object.defineProperty(l,"interval",{enumerable:!0,get:function(){return Ol.interval}});var wl=_D();Object.defineProperty(l,"merge",{enumerable:!0,get:function(){return wl.merge}});var El=nz();Object.defineProperty(l,"never",{enumerable:!0,get:function(){return El.never}});var jl=uG();Object.defineProperty(l,"of",{enumerable:!0,get:function(){return jl.of}});var Sl=oz();Object.defineProperty(l,"onErrorResumeNext",{enumerable:!0,get:function(){return Sl.onErrorResumeNext}});var kl=uD();Object.defineProperty(l,"pairs",{enumerable:!0,get:function(){return kl.pairs}});var yl=iD();Object.defineProperty(l,"partition",{enumerable:!0,get:function(){return yl.partition}});var xl=az();Object.defineProperty(l,"race",{enumerable:!0,get:function(){return xl.race}});var vl=aD();Object.defineProperty(l,"range",{enumerable:!0,get:function(){return vl.range}});var gl=fz();Object.defineProperty(l,"throwError",{enumerable:!0,get:function(){return gl.throwError}});var hl=Z4();Object.defineProperty(l,"timer",{enumerable:!0,get:function(){return hl.timer}});var fl=sD();Object.defineProperty(l,"using",{enumerable:!0,get:function(){return fl.using}});var bl=SY();Object.defineProperty(l,"zip",{enumerable:!0,get:function(){return bl.zip}});var ml=hz();Object.defineProperty(l,"scheduled",{enumerable:!0,get:function(){return ml.scheduled}});var _l=S9();Object.defineProperty(l,"EMPTY",{enumerable:!0,get:function(){return _l.EMPTY}});var dl=nz();Object.defineProperty(l,"NEVER",{enumerable:!0,get:function(){return dl.NEVER}});up(rD(),l);var ul=Q5();Object.defineProperty(l,"config",{enumerable:!0,get:function(){return ul.config}});var pl=sz();Object.defineProperty(l,"audit",{enumerable:!0,get:function(){return pl.audit}});var ll=QL();Object.defineProperty(l,"auditTime",{enumerable:!0,get:function(){return ll.auditTime}});var cl=XL();Object.defineProperty(l,"buffer",{enumerable:!0,get:function(){return cl.buffer}});var il=JL();Object.defineProperty(l,"bufferCount",{enumerable:!0,get:function(){return il.bufferCount}});var nl=YL();Object.defineProperty(l,"bufferTime",{enumerable:!0,get:function(){return nl.bufferTime}});var ol=HL();Object.defineProperty(l,"bufferToggle",{enumerable:!0,get:function(){return ol.bufferToggle}});var al=KL();Object.defineProperty(l,"bufferWhen",{enumerable:!0,get:function(){return al.bufferWhen}});var sl=BL();Object.defineProperty(l,"catchError",{enumerable:!0,get:function(){return sl.catchError}});var tl=UL();Object.defineProperty(l,"combineAll",{enumerable:!0,get:function(){return tl.combineAll}});var rl=XK();Object.defineProperty(l,"combineLatestAll",{enumerable:!0,get:function(){return rl.combineLatestAll}});var el=LL();Object.defineProperty(l,"combineLatestWith",{enumerable:!0,get:function(){return el.combineLatestWith}});var Qc=BY();Object.defineProperty(l,"concatAll",{enumerable:!0,get:function(){return Qc.concatAll}});var Zc=JK();Object.defineProperty(l,"concatMap",{enumerable:!0,get:function(){return Zc.concatMap}});var Xc=TL();Object.defineProperty(l,"concatMapTo",{enumerable:!0,get:function(){return Xc.concatMapTo}});var Jc=IL();Object.defineProperty(l,"concatWith",{enumerable:!0,get:function(){return Jc.concatWith}});var Gc=iY();Object.defineProperty(l,"connect",{enumerable:!0,get:function(){return Gc.connect}});var Yc=AL();Object.defineProperty(l,"count",{enumerable:!0,get:function(){return Yc.count}});var Wc=wL();Object.defineProperty(l,"debounce",{enumerable:!0,get:function(){return Wc.debounce}});var qc=EL();Object.defineProperty(l,"debounceTime",{enumerable:!0,get:function(){return qc.debounceTime}});var Hc=WX();Object.defineProperty(l,"defaultIfEmpty",{enumerable:!0,get:function(){return Hc.defaultIfEmpty}});var zc=kL();Object.defineProperty(l,"delay",{enumerable:!0,get:function(){return zc.delay}});var Kc=WK();Object.defineProperty(l,"delayWhen",{enumerable:!0,get:function(){return Kc.delayWhen}});var $c=yL();Object.defineProperty(l,"dematerialize",{enumerable:!0,get:function(){return $c.dematerialize}});var Bc=vL();Object.defineProperty(l,"distinct",{enumerable:!0,get:function(){return Bc.distinct}});var Uc=qK();Object.defineProperty(l,"distinctUntilChanged",{enumerable:!0,get:function(){return Uc.distinctUntilChanged}});var Vc=gL();Object.defineProperty(l,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Vc.distinctUntilKeyChanged}});var Pc=fL();Object.defineProperty(l,"elementAt",{enumerable:!0,get:function(){return Pc.elementAt}});var Fc=bL();Object.defineProperty(l,"endWith",{enumerable:!0,get:function(){return Fc.endWith}});var Dc=mL();Object.defineProperty(l,"every",{enumerable:!0,get:function(){return Dc.every}});var Lc=pL();Object.defineProperty(l,"exhaust",{enumerable:!0,get:function(){return Lc.exhaust}});var Cc=zK();Object.defineProperty(l,"exhaustAll",{enumerable:!0,get:function(){return Cc.exhaustAll}});var Nc=HK();Object.defineProperty(l,"exhaustMap",{enumerable:!0,get:function(){return Nc.exhaustMap}});var Tc=lL();Object.defineProperty(l,"expand",{enumerable:!0,get:function(){return Tc.expand}});var Mc=JZ();Object.defineProperty(l,"filter",{enumerable:!0,get:function(){return Mc.filter}});var Ic=cL();Object.defineProperty(l,"finalize",{enumerable:!0,get:function(){return Ic.finalize}});var Rc=KK();Object.defineProperty(l,"find",{enumerable:!0,get:function(){return Rc.find}});var Ac=nL();Object.defineProperty(l,"findIndex",{enumerable:!0,get:function(){return Ac.findIndex}});var Oc=oL();Object.defineProperty(l,"first",{enumerable:!0,get:function(){return Oc.first}});var wc=sL();Object.defineProperty(l,"groupBy",{enumerable:!0,get:function(){return wc.groupBy}});var Ec=GK();Object.defineProperty(l,"ignoreElements",{enumerable:!0,get:function(){return Ec.ignoreElements}});var jc=tL();Object.defineProperty(l,"isEmpty",{enumerable:!0,get:function(){return jc.isEmpty}});var Sc=rL();Object.defineProperty(l,"last",{enumerable:!0,get:function(){return Sc.last}});var kc=tQ();Object.defineProperty(l,"map",{enumerable:!0,get:function(){return kc.map}});var yc=YK();Object.defineProperty(l,"mapTo",{enumerable:!0,get:function(){return yc.mapTo}});var xc=eL();Object.defineProperty(l,"materialize",{enumerable:!0,get:function(){return xc.materialize}});var vc=QC();Object.defineProperty(l,"max",{enumerable:!0,get:function(){return vc.max}});var gc=JX();Object.defineProperty(l,"mergeAll",{enumerable:!0,get:function(){return gc.mergeAll}});var hc=ZC();Object.defineProperty(l,"flatMap",{enumerable:!0,get:function(){return hc.flatMap}});var fc=OQ();Object.defineProperty(l,"mergeMap",{enumerable:!0,get:function(){return fc.mergeMap}});var bc=JC();Object.defineProperty(l,"mergeMapTo",{enumerable:!0,get:function(){return bc.mergeMapTo}});var mc=GC();Object.defineProperty(l,"mergeScan",{enumerable:!0,get:function(){return mc.mergeScan}});var _c=qC();Object.defineProperty(l,"mergeWith",{enumerable:!0,get:function(){return _c.mergeWith}});var dc=HC();Object.defineProperty(l,"min",{enumerable:!0,get:function(){return dc.min}});var uc=OW();Object.defineProperty(l,"multicast",{enumerable:!0,get:function(){return uc.multicast}});var pc=ZX();Object.defineProperty(l,"observeOn",{enumerable:!0,get:function(){return pc.observeOn}});var lc=$C();Object.defineProperty(l,"onErrorResumeNextWith",{enumerable:!0,get:function(){return lc.onErrorResumeNextWith}});var cc=BC();Object.defineProperty(l,"pairwise",{enumerable:!0,get:function(){return cc.pairwise}});var ic=UC();Object.defineProperty(l,"pluck",{enumerable:!0,get:function(){return ic.pluck}});var nc=VC();Object.defineProperty(l,"publish",{enumerable:!0,get:function(){return nc.publish}});var oc=PC();Object.defineProperty(l,"publishBehavior",{enumerable:!0,get:function(){return oc.publishBehavior}});var ac=FC();Object.defineProperty(l,"publishLast",{enumerable:!0,get:function(){return ac.publishLast}});var sc=LC();Object.defineProperty(l,"publishReplay",{enumerable:!0,get:function(){return sc.publishReplay}});var tc=CC();Object.defineProperty(l,"raceWith",{enumerable:!0,get:function(){return tc.raceWith}});var rc=k5();Object.defineProperty(l,"reduce",{enumerable:!0,get:function(){return rc.reduce}});var ec=TC();Object.defineProperty(l,"repeat",{enumerable:!0,get:function(){return ec.repeat}});var Qi=IC();Object.defineProperty(l,"repeatWhen",{enumerable:!0,get:function(){return Qi.repeatWhen}});var Zi=AC();Object.defineProperty(l,"retry",{enumerable:!0,get:function(){return Zi.retry}});var Xi=wC();Object.defineProperty(l,"retryWhen",{enumerable:!0,get:function(){return Xi.retryWhen}});var Ji=Pz();Object.defineProperty(l,"refCount",{enumerable:!0,get:function(){return Ji.refCount}});var Gi=UK();Object.defineProperty(l,"sample",{enumerable:!0,get:function(){return Gi.sample}});var Yi=jC();Object.defineProperty(l,"sampleTime",{enumerable:!0,get:function(){return Yi.sampleTime}});var Wi=SC();Object.defineProperty(l,"scan",{enumerable:!0,get:function(){return Wi.scan}});var qi=yC();Object.defineProperty(l,"sequenceEqual",{enumerable:!0,get:function(){return qi.sequenceEqual}});var Hi=PK();Object.defineProperty(l,"share",{enumerable:!0,get:function(){return Hi.share}});var zi=gC();Object.defineProperty(l,"shareReplay",{enumerable:!0,get:function(){return zi.shareReplay}});var Ki=hC();Object.defineProperty(l,"single",{enumerable:!0,get:function(){return Ki.single}});var $i=fC();Object.defineProperty(l,"skip",{enumerable:!0,get:function(){return $i.skip}});var Bi=bC();Object.defineProperty(l,"skipLast",{enumerable:!0,get:function(){return Bi.skipLast}});var Ui=_C();Object.defineProperty(l,"skipUntil",{enumerable:!0,get:function(){return Ui.skipUntil}});var Vi=dC();Object.defineProperty(l,"skipWhile",{enumerable:!0,get:function(){return Vi.skipWhile}});var Pi=pC();Object.defineProperty(l,"startWith",{enumerable:!0,get:function(){return Pi.startWith}});var Fi=XX();Object.defineProperty(l,"subscribeOn",{enumerable:!0,get:function(){return Fi.subscribeOn}});var Di=cC();Object.defineProperty(l,"switchAll",{enumerable:!0,get:function(){return Di.switchAll}});var Li=zX();Object.defineProperty(l,"switchMap",{enumerable:!0,get:function(){return Li.switchMap}});var Ci=nC();Object.defineProperty(l,"switchMapTo",{enumerable:!0,get:function(){return Ci.switchMapTo}});var Ni=oC();Object.defineProperty(l,"switchScan",{enumerable:!0,get:function(){return Ni.switchScan}});var Ti=qX();Object.defineProperty(l,"take",{enumerable:!0,get:function(){return Ti.take}});var Mi=$K();Object.defineProperty(l,"takeLast",{enumerable:!0,get:function(){return Mi.takeLast}});var Ii=aC();Object.defineProperty(l,"takeUntil",{enumerable:!0,get:function(){return Ii.takeUntil}});var Ri=sC();Object.defineProperty(l,"takeWhile",{enumerable:!0,get:function(){return Ri.takeWhile}});var Ai=tC();Object.defineProperty(l,"tap",{enumerable:!0,get:function(){return Ai.tap}});var Oi=FK();Object.defineProperty(l,"throttle",{enumerable:!0,get:function(){return Oi.throttle}});var wi=eC();Object.defineProperty(l,"throttleTime",{enumerable:!0,get:function(){return wi.throttleTime}});var Ei=HX();Object.defineProperty(l,"throwIfEmpty",{enumerable:!0,get:function(){return Ei.throwIfEmpty}});var ji=ZN();Object.defineProperty(l,"timeInterval",{enumerable:!0,get:function(){return ji.timeInterval}});var Si=QY();Object.defineProperty(l,"timeout",{enumerable:!0,get:function(){return Si.timeout}});var ki=XN();Object.defineProperty(l,"timeoutWith",{enumerable:!0,get:function(){return ki.timeoutWith}});var yi=JN();Object.defineProperty(l,"timestamp",{enumerable:!0,get:function(){return yi.timestamp}});var xi=QK();Object.defineProperty(l,"toArray",{enumerable:!0,get:function(){return xi.toArray}});var vi=WN();Object.defineProperty(l,"window",{enumerable:!0,get:function(){return vi.window}});var gi=HN();Object.defineProperty(l,"windowCount",{enumerable:!0,get:function(){return gi.windowCount}});var hi=KN();Object.defineProperty(l,"windowTime",{enumerable:!0,get:function(){return hi.windowTime}});var fi=UN();Object.defineProperty(l,"windowToggle",{enumerable:!0,get:function(){return fi.windowToggle}});var bi=PN();Object.defineProperty(l,"windowWhen",{enumerable:!0,get:function(){return bi.windowWhen}});var mi=CN();Object.defineProperty(l,"withLatestFrom",{enumerable:!0,get:function(){return mi.withLatestFrom}});var _i=NN();Object.defineProperty(l,"zipAll",{enumerable:!0,get:function(){return _i.zipAll}});var di=MN();Object.defineProperty(l,"zipWith",{enumerable:!0,get:function(){return di.zipWith}})});var $I=r((k$,KI)=>{var{create:Fo,defineProperty:SX,defineProperties:Do,getOwnPropertyDescriptor:Lo,getOwnPropertyDescriptors:Co,getOwnPropertyNames:No,getOwnPropertySymbols:uq,getPrototypeOf:To}=Object,P$=Object.prototype.hasOwnProperty,IM=Object.prototype.propertyIsEnumerable,Mo=Math.pow,V$=(Q,X,Z)=>(X in Q)?SX(Q,X,{enumerable:!0,configurable:!0,writable:!0,value:Z}):Q[X]=Z,K0=(Q,X)=>{for(var Z in X||(X={}))if(P$.call(X,Z))V$(Q,Z,X[Z]);if(uq){for(var Z of uq(X))if(IM.call(X,Z))V$(Q,Z,X[Z])}return Q},m9=(Q,X)=>Do(Q,Co(X)),RM=(Q)=>SX(Q,"__esModule",{value:!0}),FM=(Q,X)=>{var Z={};for(var J in Q)if(P$.call(Q,J)&&X.indexOf(J)<0)Z[J]=Q[J];if(Q!=null&&uq){for(var J of uq(Q))if(X.indexOf(J)<0&&IM.call(Q,J))Z[J]=Q[J]}return Z},W1=(Q,X)=>function Z(){return X||Q[Object.keys(Q)[0]]((X={exports:{}}).exports,X),X.exports},Io=(Q,X)=>{RM(Q);for(var Z in X)SX(Q,Z,{get:X[Z],enumerable:!0})},Ro=(Q,X,Z)=>{if(X&&typeof X==="object"||typeof X==="function"){for(let J of No(X))if(!P$.call(Q,J)&&J!=="default")SX(Q,J,{get:()=>X[J],enumerable:!(Z=Lo(X,J))||Z.enumerable})}return Q},c6=(Q)=>{return Ro(RM(SX(Q!=null?Fo(To(Q)):{},"default",Q&&Q.__esModule&&"default"in Q?{get:()=>Q.default,enumerable:!0}:{value:Q,enumerable:!0})),Q)},b8=(Q,X,Z)=>{return V$(Q,typeof X!=="symbol"?X+"":X,Z),Z},T0=(Q,X,Z)=>{return new Promise((J,G)=>{var Y=(z)=>{try{K(Z.next(z))}catch(W){G(W)}},H=(z)=>{try{K(Z.throw(z))}catch(W){G(W)}},K=(z)=>z.done?J(z.value):Promise.resolve(z.value).then(Y,H);K((Z=Z.apply(Q,X)).next())})},y0=W1({"node_modules/node-forge/lib/forge.js"(Q,X){X.exports={options:{usePureJavaScript:!1}}}}),Ao=W1({"node_modules/node-forge/lib/baseN.js"(Q,X){var Z={};X.exports=Z;var J={};Z.encode=function(Y,H,K){if(typeof H!=="string")throw new TypeError('"alphabet" must be a string.');if(K!==void 0&&typeof K!=="number")throw new TypeError('"maxline" must be a number.');var z="";if(!(Y instanceof Uint8Array))z=G(Y,H);else{var W=0,$=H.length,q=H.charAt(0),B=[0];for(W=0;W0)B.push(F%$),F=F/$|0}for(W=0;Y[W]===0&&W=0;--W)z+=H[B[W]]}if(K){var P=new RegExp(".{1,"+K+"}","g");z=z.match(P).join(`\r `)}return z},Z.decode=function(Y,H){if(typeof Y!=="string")throw new TypeError('"input" must be a string.');if(typeof H!=="string")throw new TypeError('"alphabet" must be a string.');var K=J[H];if(!K){K=J[H]=[];for(var z=0;z>=8;while(F>0)q.push(F&255),F>>=8}for(var P=0;Y[P]===$&&P0)$.push(B%z),B=B/z|0}var D="";for(K=0;Y.at(K)===0&&K=0;--K)D+=H[$[K]];return D}}}),d0=W1({"node_modules/node-forge/lib/util.js"(Q,X){var Z=y0(),J=Ao(),G=X.exports=Z.util=Z.util||{};(function(){if(typeof process!=="undefined"&&process.nextTick){if(G.nextTick=process.nextTick,typeof setImmediate==="function")G.setImmediate=setImmediate;else G.setImmediate=G.nextTick;return}if(typeof setImmediate==="function"){G.setImmediate=function(){return setImmediate.apply(void 0,arguments)},G.nextTick=function(T){return setImmediate(T)};return}if(G.setImmediate=function(T){setTimeout(T,0)},typeof window!=="undefined"&&typeof window.postMessage==="function"){let T=function(S){if(S.source===window&&S.data===M){S.stopPropagation();var v=I.slice();I.length=0,v.forEach(function(h){h()})}};var V=T,M="forge.setImmediate",I=[];G.setImmediate=function(S){if(I.push(S),I.length===1)window.postMessage(M,"*")},window.addEventListener("message",T,!0)}if(typeof MutationObserver!=="undefined"){var E=Date.now(),w=!0,A=document.createElement("div"),I=[];new MutationObserver(function(){var S=I.slice();I.length=0,S.forEach(function(v){v()})}).observe(A,{attributes:!0});var R=G.setImmediate;G.setImmediate=function(S){if(Date.now()-E>15)E=Date.now(),R(S);else if(I.push(S),I.length===1)A.setAttribute("a",w=!w)}}G.nextTick=G.setImmediate})(),G.isNodejs=typeof process!=="undefined"&&process.versions&&process.versions.node,G.globalScope=function(){if(G.isNodejs)return global;return typeof self==="undefined"?window:self}(),G.isArray=Array.isArray||function(V){return Object.prototype.toString.call(V)==="[object Array]"},G.isArrayBuffer=function(V){return typeof ArrayBuffer!=="undefined"&&V instanceof ArrayBuffer},G.isArrayBufferView=function(V){return V&&G.isArrayBuffer(V.buffer)&&V.byteLength!==void 0};function Y(V){if(!(V===8||V===16||V===24||V===32))throw new Error("Only 8, 16, 24, or 32 bits supported: "+V)}G.ByteBuffer=H;function H(V){if(this.data="",this.read=0,typeof V==="string")this.data=V;else if(G.isArrayBuffer(V)||G.isArrayBufferView(V))if(typeof Buffer!=="undefined"&&V instanceof Buffer)this.data=V.toString("binary");else{var M=new Uint8Array(V);try{this.data=String.fromCharCode.apply(null,M)}catch(E){for(var I=0;IK)this.data.substr(0,1),this._constructedStringLength=0},G.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},G.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},G.ByteStringBuffer.prototype.putByte=function(V){return this.putBytes(String.fromCharCode(V))},G.ByteStringBuffer.prototype.fillWithByte=function(V,M){V=String.fromCharCode(V);var I=this.data;while(M>0){if(M&1)I+=V;if(M>>>=1,M>0)V+=V}return this.data=I,this._optimizeConstructedString(M),this},G.ByteStringBuffer.prototype.putBytes=function(V){return this.data+=V,this._optimizeConstructedString(V.length),this},G.ByteStringBuffer.prototype.putString=function(V){return this.putBytes(G.encodeUtf8(V))},G.ByteStringBuffer.prototype.putInt16=function(V){return this.putBytes(String.fromCharCode(V>>8&255)+String.fromCharCode(V&255))},G.ByteStringBuffer.prototype.putInt24=function(V){return this.putBytes(String.fromCharCode(V>>16&255)+String.fromCharCode(V>>8&255)+String.fromCharCode(V&255))},G.ByteStringBuffer.prototype.putInt32=function(V){return this.putBytes(String.fromCharCode(V>>24&255)+String.fromCharCode(V>>16&255)+String.fromCharCode(V>>8&255)+String.fromCharCode(V&255))},G.ByteStringBuffer.prototype.putInt16Le=function(V){return this.putBytes(String.fromCharCode(V&255)+String.fromCharCode(V>>8&255))},G.ByteStringBuffer.prototype.putInt24Le=function(V){return this.putBytes(String.fromCharCode(V&255)+String.fromCharCode(V>>8&255)+String.fromCharCode(V>>16&255))},G.ByteStringBuffer.prototype.putInt32Le=function(V){return this.putBytes(String.fromCharCode(V&255)+String.fromCharCode(V>>8&255)+String.fromCharCode(V>>16&255)+String.fromCharCode(V>>24&255))},G.ByteStringBuffer.prototype.putInt=function(V,M){Y(M);var I="";do M-=8,I+=String.fromCharCode(V>>M&255);while(M>0);return this.putBytes(I)},G.ByteStringBuffer.prototype.putSignedInt=function(V,M){if(V<0)V+=2<0);return M},G.ByteStringBuffer.prototype.getSignedInt=function(V){var M=this.getInt(V),I=2<=I)M-=I<<1;return M},G.ByteStringBuffer.prototype.getBytes=function(V){var M;if(V)V=Math.min(this.length(),V),M=this.data.slice(this.read,this.read+V),this.read+=V;else if(V===0)M="";else M=this.read===0?this.data:this.data.slice(this.read),this.clear();return M},G.ByteStringBuffer.prototype.bytes=function(V){return typeof V==="undefined"?this.data.slice(this.read):this.data.slice(this.read,this.read+V)},G.ByteStringBuffer.prototype.at=function(V){return this.data.charCodeAt(this.read+V)},G.ByteStringBuffer.prototype.setAt=function(V,M){return this.data=this.data.substr(0,this.read+V)+String.fromCharCode(M)+this.data.substr(this.read+V+1),this},G.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},G.ByteStringBuffer.prototype.copy=function(){var V=G.createBuffer(this.data);return V.read=this.read,V},G.ByteStringBuffer.prototype.compact=function(){if(this.read>0)this.data=this.data.slice(this.read),this.read=0;return this},G.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},G.ByteStringBuffer.prototype.truncate=function(V){var M=Math.max(0,this.length()-V);return this.data=this.data.substr(this.read,M),this.read=0,this},G.ByteStringBuffer.prototype.toHex=function(){var V="";for(var M=this.read;M=V)return this;M=Math.max(M||this.growSize,V);var I=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),E=new Uint8Array(this.length()+M);return E.set(I),this.data=new DataView(E.buffer),this},G.DataBuffer.prototype.putByte=function(V){return this.accommodate(1),this.data.setUint8(this.write++,V),this},G.DataBuffer.prototype.fillWithByte=function(V,M){this.accommodate(M);for(var I=0;I>8&65535),this.data.setInt8(this.write,V>>16&255),this.write+=3,this},G.DataBuffer.prototype.putInt32=function(V){return this.accommodate(4),this.data.setInt32(this.write,V),this.write+=4,this},G.DataBuffer.prototype.putInt16Le=function(V){return this.accommodate(2),this.data.setInt16(this.write,V,!0),this.write+=2,this},G.DataBuffer.prototype.putInt24Le=function(V){return this.accommodate(3),this.data.setInt8(this.write,V>>16&255),this.data.setInt16(this.write,V>>8&65535,!0),this.write+=3,this},G.DataBuffer.prototype.putInt32Le=function(V){return this.accommodate(4),this.data.setInt32(this.write,V,!0),this.write+=4,this},G.DataBuffer.prototype.putInt=function(V,M){Y(M),this.accommodate(M/8);do M-=8,this.data.setInt8(this.write++,V>>M&255);while(M>0);return this},G.DataBuffer.prototype.putSignedInt=function(V,M){if(Y(M),this.accommodate(M/8),V<0)V+=2<0);return M},G.DataBuffer.prototype.getSignedInt=function(V){var M=this.getInt(V),I=2<=I)M-=I<<1;return M},G.DataBuffer.prototype.getBytes=function(V){var M;if(V)V=Math.min(this.length(),V),M=this.data.slice(this.read,this.read+V),this.read+=V;else if(V===0)M="";else M=this.read===0?this.data:this.data.slice(this.read),this.clear();return M},G.DataBuffer.prototype.bytes=function(V){return typeof V==="undefined"?this.data.slice(this.read):this.data.slice(this.read,this.read+V)},G.DataBuffer.prototype.at=function(V){return this.data.getUint8(this.read+V)},G.DataBuffer.prototype.setAt=function(V,M){return this.data.setUint8(V,M),this},G.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},G.DataBuffer.prototype.copy=function(){return new G.DataBuffer(this)},G.DataBuffer.prototype.compact=function(){if(this.read>0){var V=new Uint8Array(this.data.buffer,this.read),M=new Uint8Array(V.byteLength);M.set(V),this.data=new DataView(M),this.write-=this.read,this.read=0}return this},G.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},G.DataBuffer.prototype.truncate=function(V){return this.write=Math.max(0,this.length()-V),this.read=Math.min(this.read,this.write),this},G.DataBuffer.prototype.toHex=function(){var V="";for(var M=this.read;M0){if(M&1)I+=V;if(M>>>=1,M>0)V+=V}return I},G.xorBytes=function(V,M,I){var E="",w="",A="",R=0,T=0;for(;I>0;--I,++R){if(w=V.charCodeAt(R)^M.charCodeAt(R),T>=10)E+=A,A="",T=0;A+=String.fromCharCode(w),++T}return E+=A,E},G.hexToBytes=function(V){var M="",I=0;if(V.length&!0)I=1,M+=String.fromCharCode(parseInt(V[0],16));for(;I>24&255)+String.fromCharCode(V>>16&255)+String.fromCharCode(V>>8&255)+String.fromCharCode(V&255)};var W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",$=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],q="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";G.encode64=function(V,M){var I="",E="",w,A,R,T=0;while(T>2),I+=W.charAt((w&3)<<4|A>>4),isNaN(A))I+="==";else I+=W.charAt((A&15)<<2|R>>6),I+=isNaN(R)?"=":W.charAt(R&63);if(M&&I.length>M)E+=I.substr(0,M)+`\r `,I=I.substr(M)}return E+=I,E},G.decode64=function(V){V=V.replace(/[^A-Za-z0-9\+\/\=]/g,"");var M="",I,E,w,A,R=0;while(R>4),w!==64){if(M+=String.fromCharCode((E&15)<<4|w>>2),A!==64)M+=String.fromCharCode((w&3)<<6|A)}return M},G.encodeUtf8=function(V){return unescape(encodeURIComponent(V))},G.decodeUtf8=function(V){return decodeURIComponent(escape(V))},G.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:J.encode,decode:J.decode}},G.binary.raw.encode=function(V){return String.fromCharCode.apply(null,V)},G.binary.raw.decode=function(V,M,I){var E=M;if(!E)E=new Uint8Array(V.length);I=I||0;var w=I;for(var A=0;A>2),I+=W.charAt((w&3)<<4|A>>4),isNaN(A))I+="==";else I+=W.charAt((A&15)<<2|R>>6),I+=isNaN(R)?"=":W.charAt(R&63);if(M&&I.length>M)E+=I.substr(0,M)+`\r `,I=I.substr(M)}return E+=I,E},G.binary.base64.decode=function(V,M,I){var E=M;if(!E)E=new Uint8Array(Math.ceil(V.length/4)*3);V=V.replace(/[^A-Za-z0-9\+\/\=]/g,""),I=I||0;var w,A,R,T,S=0,v=I;while(S>4,R!==64){if(E[v++]=(A&15)<<4|R>>2,T!==64)E[v++]=(R&3)<<6|T}return M?v-I:E.subarray(0,v)},G.binary.base58.encode=function(V,M){return G.binary.baseN.encode(V,q,M)},G.binary.base58.decode=function(V,M){return G.binary.baseN.decode(V,q,M)},G.text={utf8:{},utf16:{}},G.text.utf8.encode=function(V,M,I){V=G.encodeUtf8(V);var E=M;if(!E)E=new Uint8Array(V.length);I=I||0;var w=I;for(var A=0;A0)A.push(E);R=M.lastIndex;var T=I[0][1];switch(T){case"s":case"o":if(w");break;case"%":A.push("%");break;default:A.push("<%"+T+"?>")}}return A.push(V.substring(R)),A.join("")},G.formatNumber=function(V,M,I,E){var w=V,A=isNaN(M=Math.abs(M))?2:M,R=I===void 0?",":I,T=E===void 0?".":E,S=w<0?"-":"",v=parseInt(w=Math.abs(+w||0).toFixed(A),10)+"",h=v.length>3?v.length%3:0;return S+(h?v.substr(0,h)+T:"")+v.substr(h).replace(/(\d{3})(?=\d)/g,"$1"+T)+(A?R+Math.abs(w-v).toFixed(A).slice(2):"")},G.formatSize=function(V){if(V>=1073741824)V=G.formatNumber(V/1073741824,2,".","")+" GiB";else if(V>=1048576)V=G.formatNumber(V/1048576,2,".","")+" MiB";else if(V>=1024)V=G.formatNumber(V/1024,0)+" KiB";else V=G.formatNumber(V,0)+" bytes";return V},G.bytesFromIP=function(V){if(V.indexOf(".")!==-1)return G.bytesFromIPv4(V);if(V.indexOf(":")!==-1)return G.bytesFromIPv6(V);return null},G.bytesFromIPv4=function(V){if(V=V.split("."),V.length!==4)return null;var M=G.createBuffer();for(var I=0;II[E].end-I[E].start)E=I.length-1}M.push(A)}if(I.length>0){var S=I[E];if(S.end-S.start>0){if(M.splice(S.start,S.end-S.start+1,""),S.start===0)M.unshift("");if(S.end===7)M.push("")}}return M.join(":")},G.estimateCores=function(V,M){if(typeof V==="function")M=V,V={};if(V=V||{},"cores"in G&&!V.update)return M(null,G.cores);if(typeof navigator!=="undefined"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return G.cores=navigator.hardwareConcurrency,M(null,G.cores);if(typeof Worker==="undefined")return G.cores=1,M(null,G.cores);if(typeof Blob==="undefined")return G.cores=2,M(null,G.cores);var I=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(R){var T=Date.now(),S=T+4;while(Date.now()n.st&&h.sth.st&&n.st0))return!0;for(var $=0;$0))return!0;for(var $=0;$0)return!1;var W=K.length(),$=K.at(W-1);if($>this.blockSize<<2)return!1;return K.truncate($),!0},J.cbc=function(K){K=K||{},this.name="CBC",this.cipher=K.cipher,this.blockSize=K.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},J.cbc.prototype.start=function(K){if(K.iv===null){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else if(!("iv"in K))throw new Error("Invalid IV parameter.");else this._iv=G(K.iv,this.blockSize),this._prev=this._iv.slice(0)},J.cbc.prototype.encrypt=function(K,z,W){if(K.length()0))return!0;for(var $=0;$0))return!0;for(var $=0;$0)return!1;var W=K.length(),$=K.at(W-1);if($>this.blockSize<<2)return!1;return K.truncate($),!0},J.cfb=function(K){K=K||{},this.name="CFB",this.cipher=K.cipher,this.blockSize=K.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=Z.util.createBuffer(),this._partialBytes=0},J.cfb.prototype.start=function(K){if(!("iv"in K))throw new Error("Invalid IV parameter.");this._iv=G(K.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},J.cfb.prototype.encrypt=function(K,z,W){var $=K.length();if($===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&$>=this.blockSize){for(var q=0;q0)B=this.blockSize-B;this._partialOutput.clear();for(var q=0;q0)K.read-=this.blockSize;else for(var q=0;q0)this._partialOutput.getBytes(this._partialBytes);if(B>0&&!W)return z.putBytes(this._partialOutput.getBytes(B-this._partialBytes)),this._partialBytes=B,!0;z.putBytes(this._partialOutput.getBytes($-this._partialBytes)),this._partialBytes=0},J.cfb.prototype.decrypt=function(K,z,W){var $=K.length();if($===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&$>=this.blockSize){for(var q=0;q0)B=this.blockSize-B;this._partialOutput.clear();for(var q=0;q0)K.read-=this.blockSize;else for(var q=0;q0)this._partialOutput.getBytes(this._partialBytes);if(B>0&&!W)return z.putBytes(this._partialOutput.getBytes(B-this._partialBytes)),this._partialBytes=B,!0;z.putBytes(this._partialOutput.getBytes($-this._partialBytes)),this._partialBytes=0},J.ofb=function(K){K=K||{},this.name="OFB",this.cipher=K.cipher,this.blockSize=K.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=Z.util.createBuffer(),this._partialBytes=0},J.ofb.prototype.start=function(K){if(!("iv"in K))throw new Error("Invalid IV parameter.");this._iv=G(K.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},J.ofb.prototype.encrypt=function(K,z,W){var $=K.length();if(K.length()===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&$>=this.blockSize){for(var q=0;q0)B=this.blockSize-B;this._partialOutput.clear();for(var q=0;q0)K.read-=this.blockSize;else for(var q=0;q0)this._partialOutput.getBytes(this._partialBytes);if(B>0&&!W)return z.putBytes(this._partialOutput.getBytes(B-this._partialBytes)),this._partialBytes=B,!0;z.putBytes(this._partialOutput.getBytes($-this._partialBytes)),this._partialBytes=0},J.ofb.prototype.decrypt=J.ofb.prototype.encrypt,J.ctr=function(K){K=K||{},this.name="CTR",this.cipher=K.cipher,this.blockSize=K.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=Z.util.createBuffer(),this._partialBytes=0},J.ctr.prototype.start=function(K){if(!("iv"in K))throw new Error("Invalid IV parameter.");this._iv=G(K.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},J.ctr.prototype.encrypt=function(K,z,W){var $=K.length();if($===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&$>=this.blockSize)for(var q=0;q0)B=this.blockSize-B;this._partialOutput.clear();for(var q=0;q0)K.read-=this.blockSize;if(this._partialBytes>0)this._partialOutput.getBytes(this._partialBytes);if(B>0&&!W)return z.putBytes(this._partialOutput.getBytes(B-this._partialBytes)),this._partialBytes=B,!0;z.putBytes(this._partialOutput.getBytes($-this._partialBytes)),this._partialBytes=0}Y(this._inBlock)},J.ctr.prototype.decrypt=J.ctr.prototype.encrypt,J.gcm=function(K){K=K||{},this.name="GCM",this.cipher=K.cipher,this.blockSize=K.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=Z.util.createBuffer(),this._partialBytes=0,this._R=3774873600},J.gcm.prototype.start=function(K){if(!("iv"in K))throw new Error("Invalid IV parameter.");var z=Z.util.createBuffer(K.iv);this._cipherLength=0;var W;if("additionalData"in K)W=Z.util.createBuffer(K.additionalData);else W=Z.util.createBuffer();if("tagLength"in K)this._tagLength=K.tagLength;else this._tagLength=128;if(this._tag=null,K.decrypt){if(this._tag=Z.util.createBuffer(K.tag).getBytes(),this._tag.length!==this._tagLength/8)throw new Error("Authentication tag does not match tag length.")}this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var $=z.length();if($===12)this._j0=[z.getInt32(),z.getInt32(),z.getInt32(),1];else{this._j0=[0,0,0,0];while(z.length()>0)this._j0=this.ghash(this._hashSubkey,this._j0,[z.getInt32(),z.getInt32(),z.getInt32(),z.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(H($*8)))}this._inBlock=this._j0.slice(0),Y(this._inBlock),this._partialBytes=0,W=Z.util.createBuffer(W),this._aDataLength=H(W.length()*8);var q=W.length()%this.blockSize;if(q)W.fillWithByte(0,this.blockSize-q);this._s=[0,0,0,0];while(W.length()>0)this._s=this.ghash(this._hashSubkey,this._s,[W.getInt32(),W.getInt32(),W.getInt32(),W.getInt32()])},J.gcm.prototype.encrypt=function(K,z,W){var $=K.length();if($===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&$>=this.blockSize){for(var q=0;q0)B=this.blockSize-B;this._partialOutput.clear();for(var q=0;q0)this._partialOutput.getBytes(this._partialBytes);if(B>0&&!W)return K.read-=this.blockSize,z.putBytes(this._partialOutput.getBytes(B-this._partialBytes)),this._partialBytes=B,!0;z.putBytes(this._partialOutput.getBytes($-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),Y(this._inBlock)},J.gcm.prototype.decrypt=function(K,z,W){var $=K.length();if($0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),Y(this._inBlock),this._hashBlock[0]=K.getInt32(),this._hashBlock[1]=K.getInt32(),this._hashBlock[2]=K.getInt32(),this._hashBlock[3]=K.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var q=0;q0;--$)z[$]=K[$]>>>1|(K[$-1]&1)<<31;if(z[0]=K[0]>>>1,W)z[0]^=this._R},J.gcm.prototype.tableMultiply=function(K){var z=[0,0,0,0];for(var W=0;W<32;++W){var $=W/8|0,q=K[$]>>>(7-W%8)*4&15,B=this._m[W][q];z[0]^=B[0],z[1]^=B[1],z[2]^=B[2],z[3]^=B[3]}return z},J.gcm.prototype.ghash=function(K,z,W){return z[0]^=W[0],z[1]^=W[1],z[2]^=W[2],z[3]^=W[3],this.tableMultiply(z)},J.gcm.prototype.generateHashTable=function(K,z){var W=8/z,$=4*W,q=16*W,B=new Array(q);for(var D=0;D>>1,q=new Array(W);q[$]=K.slice(0);var B=$>>>1;while(B>0)this.pow(q[2*B],q[B]=[]),B>>=1;B=2;while(B<$){for(var D=1;D4){var W=K;K=Z.util.createBuffer();for(var $=0;$>>2;for(var L=0;L>8^E&255^99,H[C]=E,K[E]=C,w=P[E],V=P[C],M=P[V],I=P[M],A=w<<24^E<<16^E<<8^(E^w),R=(V^M^I)<<24^(C^I)<<16^(C^M^I)<<8^(C^V^I);for(var T=0;T<4;++T)W[T][C]=A,$[T][E]=R,A=A<<24|A>>>8,R=R<<24|R>>>8;if(C===0)C=L=1;else C=V^P[P[P[V^I]]],L^=P[P[L]]}}function B(P,N){var C=P.slice(0),L,V=1,M=C.length,I=M+6+1,E=Y*I;for(var w=M;w>>16&255]<<24^H[L>>>8&255]<<16^H[L&255]<<8^H[L>>>24]^z[V]<<24,V++;else if(M>6&&w%M===4)L=H[L>>>24]<<24^H[L>>>16&255]<<16^H[L>>>8&255]<<8^H[L&255];C[w]=C[w-M]^L}if(N){var A,R=$[0],T=$[1],S=$[2],v=$[3],h=C.slice(0);E=C.length;for(var w=0,x=E-Y;w>>24]]^T[H[A>>>16&255]]^S[H[A>>>8&255]]^v[H[A&255]];C=h}return C}function D(P,N,C,L){var V=P.length/4-1,M,I,E,w,A;if(L)M=$[0],I=$[1],E=$[2],w=$[3],A=K;else M=W[0],I=W[1],E=W[2],w=W[3],A=H;var R,T,S,v,h,x,p;R=N[0]^P[0],T=N[L?3:1]^P[1],S=N[2]^P[2],v=N[L?1:3]^P[3];var n=3;for(var t=1;t>>24]^I[T>>>16&255]^E[S>>>8&255]^w[v&255]^P[++n],x=M[T>>>24]^I[S>>>16&255]^E[v>>>8&255]^w[R&255]^P[++n],p=M[S>>>24]^I[v>>>16&255]^E[R>>>8&255]^w[T&255]^P[++n],v=M[v>>>24]^I[R>>>16&255]^E[T>>>8&255]^w[S&255]^P[++n],R=h,T=x,S=p;C[0]=A[R>>>24]<<24^A[T>>>16&255]<<16^A[S>>>8&255]<<8^A[v&255]^P[++n],C[L?3:1]=A[T>>>24]<<24^A[S>>>16&255]<<16^A[v>>>8&255]<<8^A[R&255]^P[++n],C[2]=A[S>>>24]<<24^A[v>>>16&255]<<16^A[R>>>8&255]<<8^A[T&255]^P[++n],C[L?1:3]=A[v>>>24]<<24^A[R>>>16&255]<<16^A[T>>>8&255]<<8^A[S&255]^P[++n]}function F(P){P=P||{};var N=(P.mode||"CBC").toUpperCase(),C="AES-"+N,L;if(P.decrypt)L=Z.cipher.createDecipher(C,P.key);else L=Z.cipher.createCipher(C,P.key);var V=L.start;return L.start=function(M,I){var E=null;if(I instanceof Z.util.ByteBuffer)E=I,I={};I=I||{},I.output=E,I.iv=M,V.call(L,I)},L}}}),TZ=W1({"node_modules/node-forge/lib/oids.js"(Q,X){var Z=y0();Z.pki=Z.pki||{};var J=X.exports=Z.pki.oids=Z.oids=Z.oids||{};function G(H,K){J[H]=K,J[K]=H}function Y(H,K){J[H]=K}G("1.2.840.113549.1.1.1","rsaEncryption"),G("1.2.840.113549.1.1.4","md5WithRSAEncryption"),G("1.2.840.113549.1.1.5","sha1WithRSAEncryption"),G("1.2.840.113549.1.1.7","RSAES-OAEP"),G("1.2.840.113549.1.1.8","mgf1"),G("1.2.840.113549.1.1.9","pSpecified"),G("1.2.840.113549.1.1.10","RSASSA-PSS"),G("1.2.840.113549.1.1.11","sha256WithRSAEncryption"),G("1.2.840.113549.1.1.12","sha384WithRSAEncryption"),G("1.2.840.113549.1.1.13","sha512WithRSAEncryption"),G("1.3.101.112","EdDSA25519"),G("1.2.840.10040.4.3","dsa-with-sha1"),G("1.3.14.3.2.7","desCBC"),G("1.3.14.3.2.26","sha1"),G("1.3.14.3.2.29","sha1WithRSASignature"),G("2.16.840.1.101.3.4.2.1","sha256"),G("2.16.840.1.101.3.4.2.2","sha384"),G("2.16.840.1.101.3.4.2.3","sha512"),G("2.16.840.1.101.3.4.2.4","sha224"),G("2.16.840.1.101.3.4.2.5","sha512-224"),G("2.16.840.1.101.3.4.2.6","sha512-256"),G("1.2.840.113549.2.2","md2"),G("1.2.840.113549.2.5","md5"),G("1.2.840.113549.1.7.1","data"),G("1.2.840.113549.1.7.2","signedData"),G("1.2.840.113549.1.7.3","envelopedData"),G("1.2.840.113549.1.7.4","signedAndEnvelopedData"),G("1.2.840.113549.1.7.5","digestedData"),G("1.2.840.113549.1.7.6","encryptedData"),G("1.2.840.113549.1.9.1","emailAddress"),G("1.2.840.113549.1.9.2","unstructuredName"),G("1.2.840.113549.1.9.3","contentType"),G("1.2.840.113549.1.9.4","messageDigest"),G("1.2.840.113549.1.9.5","signingTime"),G("1.2.840.113549.1.9.6","counterSignature"),G("1.2.840.113549.1.9.7","challengePassword"),G("1.2.840.113549.1.9.8","unstructuredAddress"),G("1.2.840.113549.1.9.14","extensionRequest"),G("1.2.840.113549.1.9.20","friendlyName"),G("1.2.840.113549.1.9.21","localKeyId"),G("1.2.840.113549.1.9.22.1","x509Certificate"),G("1.2.840.113549.1.12.10.1.1","keyBag"),G("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag"),G("1.2.840.113549.1.12.10.1.3","certBag"),G("1.2.840.113549.1.12.10.1.4","crlBag"),G("1.2.840.113549.1.12.10.1.5","secretBag"),G("1.2.840.113549.1.12.10.1.6","safeContentsBag"),G("1.2.840.113549.1.5.13","pkcs5PBES2"),G("1.2.840.113549.1.5.12","pkcs5PBKDF2"),G("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4"),G("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4"),G("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC"),G("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC"),G("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC"),G("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC"),G("1.2.840.113549.2.7","hmacWithSHA1"),G("1.2.840.113549.2.8","hmacWithSHA224"),G("1.2.840.113549.2.9","hmacWithSHA256"),G("1.2.840.113549.2.10","hmacWithSHA384"),G("1.2.840.113549.2.11","hmacWithSHA512"),G("1.2.840.113549.3.7","des-EDE3-CBC"),G("2.16.840.1.101.3.4.1.2","aes128-CBC"),G("2.16.840.1.101.3.4.1.22","aes192-CBC"),G("2.16.840.1.101.3.4.1.42","aes256-CBC"),G("2.5.4.3","commonName"),G("2.5.4.4","surname"),G("2.5.4.5","serialNumber"),G("2.5.4.6","countryName"),G("2.5.4.7","localityName"),G("2.5.4.8","stateOrProvinceName"),G("2.5.4.9","streetAddress"),G("2.5.4.10","organizationName"),G("2.5.4.11","organizationalUnitName"),G("2.5.4.12","title"),G("2.5.4.13","description"),G("2.5.4.15","businessCategory"),G("2.5.4.17","postalCode"),G("2.5.4.42","givenName"),G("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName"),G("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName"),G("2.16.840.1.113730.1.1","nsCertType"),G("2.16.840.1.113730.1.13","nsComment"),Y("2.5.29.1","authorityKeyIdentifier"),Y("2.5.29.2","keyAttributes"),Y("2.5.29.3","certificatePolicies"),Y("2.5.29.4","keyUsageRestriction"),Y("2.5.29.5","policyMapping"),Y("2.5.29.6","subtreesConstraint"),Y("2.5.29.7","subjectAltName"),Y("2.5.29.8","issuerAltName"),Y("2.5.29.9","subjectDirectoryAttributes"),Y("2.5.29.10","basicConstraints"),Y("2.5.29.11","nameConstraints"),Y("2.5.29.12","policyConstraints"),Y("2.5.29.13","basicConstraints"),G("2.5.29.14","subjectKeyIdentifier"),G("2.5.29.15","keyUsage"),Y("2.5.29.16","privateKeyUsagePeriod"),G("2.5.29.17","subjectAltName"),G("2.5.29.18","issuerAltName"),G("2.5.29.19","basicConstraints"),Y("2.5.29.20","cRLNumber"),Y("2.5.29.21","cRLReason"),Y("2.5.29.22","expirationDate"),Y("2.5.29.23","instructionCode"),Y("2.5.29.24","invalidityDate"),Y("2.5.29.25","cRLDistributionPoints"),Y("2.5.29.26","issuingDistributionPoint"),Y("2.5.29.27","deltaCRLIndicator"),Y("2.5.29.28","issuingDistributionPoint"),Y("2.5.29.29","certificateIssuer"),Y("2.5.29.30","nameConstraints"),G("2.5.29.31","cRLDistributionPoints"),G("2.5.29.32","certificatePolicies"),Y("2.5.29.33","policyMappings"),Y("2.5.29.34","policyConstraints"),G("2.5.29.35","authorityKeyIdentifier"),Y("2.5.29.36","policyConstraints"),G("2.5.29.37","extKeyUsage"),Y("2.5.29.46","freshestCRL"),Y("2.5.29.54","inhibitAnyPolicy"),G("1.3.6.1.4.1.11129.2.4.2","timestampList"),G("1.3.6.1.5.5.7.1.1","authorityInfoAccess"),G("1.3.6.1.5.5.7.3.1","serverAuth"),G("1.3.6.1.5.5.7.3.2","clientAuth"),G("1.3.6.1.5.5.7.3.3","codeSigning"),G("1.3.6.1.5.5.7.3.4","emailProtection"),G("1.3.6.1.5.5.7.3.8","timeStamping")}}),WQ=W1({"node_modules/node-forge/lib/asn1.js"(Q,X){var Z=y0();d0(),TZ();var J=X.exports=Z.asn1=Z.asn1||{};J.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192},J.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30},J.create=function(z,W,$,q,B){if(Z.util.isArray(q)){var D=[];for(var F=0;FW){var q=new Error("Too few bytes to parse DER.");throw q.available=z.length(),q.remaining=W,q.requested=$,q}}var Y=function(z,W){var $=z.getByte();if(W--,$===128)return;var q,B=$&128;if(!B)q=$;else{var D=$&127;G(z,W,D),q=z.getInt(D<<3)}if(q<0)throw new Error("Negative length: "+q);return q};J.fromDer=function(z,W){if(W===void 0)W={strict:!0,parseAllBytes:!0,decodeBitStrings:!0};if(typeof W==="boolean")W={strict:W,parseAllBytes:!0,decodeBitStrings:!0};if(!("strict"in W))W.strict=!0;if(!("parseAllBytes"in W))W.parseAllBytes=!0;if(!("decodeBitStrings"in W))W.decodeBitStrings=!0;if(typeof z==="string")z=Z.util.createBuffer(z);var $=z.length(),q=H(z,z.length(),0,W);if(W.parseAllBytes&&z.length()!==0){var B=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw B.byteCount=$,B.remaining=z.length(),B}return q};function H(z,W,$,q){var B;G(z,W,2);var D=z.getByte();W--;var F=D&192,P=D&31;B=z.length();var N=Y(z,W);if(W-=B-z.length(),N!==void 0&&N>W){if(q.strict){var C=new Error("Too few bytes to read ASN.1 value.");throw C.available=z.length(),C.remaining=W,C.requested=N,C}N=W}var L,V,M=(D&32)===32;if(M)if(L=[],N===void 0)for(;;){if(G(z,W,2),z.bytes(2)===String.fromCharCode(0,0)){z.getBytes(2),W-=2;break}B=z.length(),L.push(H(z,W,$+1,q)),W-=B-z.length()}else while(N>0)B=z.length(),L.push(H(z,N,$+1,q)),W-=B-z.length(),N-=B-z.length();if(L===void 0&&F===J.Class.UNIVERSAL&&P===J.Type.BITSTRING)V=z.bytes(N);if(L===void 0&&q.decodeBitStrings&&F===J.Class.UNIVERSAL&&P===J.Type.BITSTRING&&N>1){var I=z.read,E=W,w=0;if(P===J.Type.BITSTRING)G(z,W,1),w=z.getByte(),W--;if(w===0)try{B=z.length();var A={strict:!0,decodeBitStrings:!0},R=H(z,W,$+1,A),T=B-z.length();if(W-=T,P==J.Type.BITSTRING)T++;var S=R.tagClass;if(T===N&&(S===J.Class.UNIVERSAL||S===J.Class.CONTEXT_SPECIFIC))L=[R]}catch(h){}if(L===void 0)z.read=I,W=E}if(L===void 0){if(N===void 0){if(q.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");N=W}if(P===J.Type.BMPSTRING){L="";for(;N>0;N-=2)G(z,W,2),L+=String.fromCharCode(z.getInt16()),W-=2}else L=z.getBytes(N),W-=N}var v=V===void 0?null:{bitStringContents:V};return J.create(F,P,M,L,v)}J.toDer=function(z){var W=Z.util.createBuffer(),$=z.tagClass|z.type,q=Z.util.createBuffer(),B=!1;if("bitStringContents"in z){if(B=!0,z.original)B=J.equals(z,z.original)}if(B)q.putBytes(z.bitStringContents);else if(z.composed){if(z.constructed)$|=32;else q.putByte(0);for(var D=0;D1&&(z.value.charCodeAt(0)===0&&(z.value.charCodeAt(1)&128)===0||z.value.charCodeAt(0)===255&&(z.value.charCodeAt(1)&128)===128))q.putBytes(z.value.substr(1));else q.putBytes(z.value);if(W.putByte($),q.length()<=127)W.putByte(q.length()&127);else{var F=q.length(),P="";do P+=String.fromCharCode(F&255),F=F>>>8;while(F>0);W.putByte(P.length|128);for(var D=P.length-1;D>=0;--D)W.putByte(P.charCodeAt(D))}return W.putBuffer(q),W},J.oidToDer=function(z){var W=z.split("."),$=Z.util.createBuffer();$.putByte(40*parseInt(W[0],10)+parseInt(W[1],10));var q,B,D,F;for(var P=2;P>>7,!q)F|=128;B.push(F),q=!1}while(D>0);for(var N=B.length-1;N>=0;--N)$.putByte(B[N])}return $},J.derToOid=function(z){var W;if(typeof z==="string")z=Z.util.createBuffer(z);var $=z.getByte();W=Math.floor($/40)+"."+$%40;var q=0;while(z.length()>0)if($=z.getByte(),q=q<<7,$&128)q+=$&127;else W+="."+(q+$),q=0;return W},J.utcTimeToDate=function(z){var W=new Date,$=parseInt(z.substr(0,2),10);$=$>=50?1900+$:2000+$;var q=parseInt(z.substr(2,2),10)-1,B=parseInt(z.substr(4,2),10),D=parseInt(z.substr(6,2),10),F=parseInt(z.substr(8,2),10),P=0;if(z.length>11){var N=z.charAt(10),C=10;if(N!=="+"&&N!=="-")P=parseInt(z.substr(10,2),10),C+=2}if(W.setUTCFullYear($,q,B),W.setUTCHours(D,F,P,0),C){if(N=z.charAt(C),N==="+"||N==="-"){var L=parseInt(z.substr(C+1,2),10),V=parseInt(z.substr(C+4,2),10),M=L*60+V;if(M*=60000,N==="+")W.setTime(+W-M);else W.setTime(+W+M)}}return W},J.generalizedTimeToDate=function(z){var W=new Date,$=parseInt(z.substr(0,4),10),q=parseInt(z.substr(4,2),10)-1,B=parseInt(z.substr(6,2),10),D=parseInt(z.substr(8,2),10),F=parseInt(z.substr(10,2),10),P=parseInt(z.substr(12,2),10),N=0,C=0,L=!1;if(z.charAt(z.length-1)==="Z")L=!0;var V=z.length-5,M=z.charAt(V);if(M==="+"||M==="-"){var I=parseInt(z.substr(V+1,2),10),E=parseInt(z.substr(V+4,2),10);if(C=I*60+E,C*=60000,M==="+")C*=-1;L=!0}if(z.charAt(14)===".")N=parseFloat(z.substr(14),10)*1000;if(L)W.setUTCFullYear($,q,B),W.setUTCHours(D,F,P,N),W.setTime(+W+C);else W.setFullYear($,q,B),W.setHours(D,F,P,N);return W},J.dateToUtcTime=function(z){if(typeof z==="string")return z;var W="",$=[];$.push((""+z.getUTCFullYear()).substr(2)),$.push(""+(z.getUTCMonth()+1)),$.push(""+z.getUTCDate()),$.push(""+z.getUTCHours()),$.push(""+z.getUTCMinutes()),$.push(""+z.getUTCSeconds());for(var q=0;q<$.length;++q){if($[q].length<2)W+="0";W+=$[q]}return W+="Z",W},J.dateToGeneralizedTime=function(z){if(typeof z==="string")return z;var W="",$=[];$.push(""+z.getUTCFullYear()),$.push(""+(z.getUTCMonth()+1)),$.push(""+z.getUTCDate()),$.push(""+z.getUTCHours()),$.push(""+z.getUTCMinutes()),$.push(""+z.getUTCSeconds());for(var q=0;q<$.length;++q){if($[q].length<2)W+="0";W+=$[q]}return W+="Z",W},J.integerToDer=function(z){var W=Z.util.createBuffer();if(z>=-128&&z<128)return W.putSignedInt(z,8);if(z>=-32768&&z<32768)return W.putSignedInt(z,16);if(z>=-8388608&&z<8388608)return W.putSignedInt(z,24);if(z>=-2147483648&&z<2147483648)return W.putSignedInt(z,32);var $=new Error("Integer too large; max is 32-bits.");throw $.integer=z,$},J.derToInteger=function(z){if(typeof z==="string")z=Z.util.createBuffer(z);var W=z.length()*8;if(W>32)throw new Error("Integer too large; max is 32-bits.");return z.getSignedInt(W)},J.validate=function(z,W,$,q){var B=!1;if((z.tagClass===W.tagClass||typeof W.tagClass==="undefined")&&(z.type===W.type||typeof W.type==="undefined")){if(z.constructed===W.constructed||typeof W.constructed==="undefined"){if(B=!0,W.value&&Z.util.isArray(W.value)){var D=0;for(var F=0;B&&F0)q+=` `;var B="";for(var D=0;D1)q+="0x"+Z.util.bytesToHex(z.value.slice(1));else q+="(none)";if(z.value.length>0){var C=z.value.charCodeAt(0);if(C==1)q+=" (1 unused bit shown)";else if(C>1)q+=" ("+C+" unused bits shown)"}}else if(z.type===J.Type.OCTETSTRING){if(!K.test(z.value))q+="("+z.value+") ";q+="0x"+Z.util.bytesToHex(z.value)}else if(z.type===J.Type.UTF8)try{q+=Z.util.decodeUtf8(z.value)}catch(L){if(L.message==="URI malformed")q+="0x"+Z.util.bytesToHex(z.value)+" (malformed UTF8)";else throw L}else if(z.type===J.Type.PRINTABLESTRING||z.type===J.Type.IA5String)q+=z.value;else if(K.test(z.value))q+="0x"+Z.util.bytesToHex(z.value);else if(z.value.length===0)q+="[null]";else q+=z.value}return q}}}),xQ=W1({"node_modules/node-forge/lib/md.js"(Q,X){var Z=y0();X.exports=Z.md=Z.md||{},Z.md.algorithms=Z.md.algorithms||{}}}),kX=W1({"node_modules/node-forge/lib/hmac.js"(Q,X){var Z=y0();xQ(),d0();var J=X.exports=Z.hmac=Z.hmac||{};J.create=function(){var G=null,Y=null,H=null,K=null,z={};return z.start=function(W,$){if(W!==null)if(typeof W==="string")if(W=W.toLowerCase(),W in Z.md.algorithms)Y=Z.md.algorithms[W].create();else throw new Error('Unknown hash algorithm "'+W+'"');else Y=W;if($===null)$=G;else{if(typeof $==="string")$=Z.util.createBuffer($);else if(Z.util.isArray($)){var q=$;$=Z.util.createBuffer();for(var B=0;BY.blockLength)Y.start(),Y.update($.bytes()),$=Y.digest();H=Z.util.createBuffer(),K=Z.util.createBuffer(),D=$.length();for(var B=0;B>>0,C>>>0];for(var L=F.fullMessageLength.length-1;L>=0;--L)F.fullMessageLength[L]+=C[1],C[1]=C[0]+(F.fullMessageLength[L]/4294967296>>>0),F.fullMessageLength[L]=F.fullMessageLength[L]>>>0,C[0]=C[1]/4294967296>>>0;if(B.putBytes(P),$(q,D,B),B.read>2048||B.length()===0)B.compact();return F},F.digest=function(){var P=Z.util.createBuffer();P.putBytes(B.bytes());var N=F.fullMessageLength[F.fullMessageLength.length-1]+F.messageLengthSize,C=N&F.blockLength-1;P.putBytes(G.substr(0,F.blockLength-C));var L,V=0;for(var M=F.fullMessageLength.length-1;M>=0;--M)L=F.fullMessageLength[M]*8+V,V=L/4294967296>>>0,P.putInt32Le(L>>>0);var I={h0:q.h0,h1:q.h1,h2:q.h2,h3:q.h3};$(I,D,P);var E=Z.util.createBuffer();return E.putInt32Le(I.h0),E.putInt32Le(I.h1),E.putInt32Le(I.h2),E.putInt32Le(I.h3),E},F};var G=null,Y=null,H=null,K=null,z=!1;function W(){G=String.fromCharCode(128),G+=Z.util.fillString(String.fromCharCode(0),64),Y=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9],H=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],K=new Array(64);for(var q=0;q<64;++q)K[q]=Math.floor(Math.abs(Math.sin(q+1))*4294967296);z=!0}function $(q,B,D){var F,P,N,C,L,V,M,I,E=D.length();while(E>=64){P=q.h0,N=q.h1,C=q.h2,L=q.h3;for(I=0;I<16;++I)B[I]=D.getInt32Le(),V=L^N&(C^L),F=P+V+K[I]+B[I],M=H[I],P=L,L=C,C=N,N+=F<>>32-M;for(;I<32;++I)V=C^L&(N^C),F=P+V+K[I]+B[Y[I]],M=H[I],P=L,L=C,C=N,N+=F<>>32-M;for(;I<48;++I)V=N^C^L,F=P+V+K[I]+B[Y[I]],M=H[I],P=L,L=C,C=N,N+=F<>>32-M;for(;I<64;++I)V=C^(N|~L),F=P+V+K[I]+B[Y[I]],M=H[I],P=L,L=C,C=N,N+=F<>>32-M;q.h0=q.h0+P|0,q.h1=q.h1+N|0,q.h2=q.h2+C|0,q.h3=q.h3+L|0,E-=64}}}}),Y7=W1({"node_modules/node-forge/lib/pem.js"(Q,X){var Z=y0();d0();var J=X.exports=Z.pem=Z.pem||{};J.encode=function(H,K){K=K||{};var z="-----BEGIN "+H.type+`-----\r `,W;if(H.procType)W={name:"Proc-Type",values:[String(H.procType.version),H.procType.type]},z+=G(W);if(H.contentDomain)W={name:"Content-Domain",values:[H.contentDomain]},z+=G(W);if(H.dekInfo){if(W={name:"DEK-Info",values:[H.dekInfo.algorithm]},H.dekInfo.parameters)W.values.push(H.dekInfo.parameters);z+=G(W)}if(H.headers)for(var $=0;$65&&B!==-1){var D=K[B];if(D===",")++B,K=K.substr(0,B)+`\r `+K.substr(B);else K=K.substr(0,B)+`\r `+D+K.substr(B+1);q=$-B-1,B=-1,++$}else if(K[$]===" "||K[$]==="\t"||K[$]===",")B=$;return K}function Y(H){return H.replace(/^\s+/,"")}}}),pq=W1({"node_modules/node-forge/lib/des.js"(Q,X){var Z=y0();F$(),AM(),d0(),X.exports=Z.des=Z.des||{},Z.des.startEncrypting=function(P,N,C,L){var V=F({key:P,output:C,decrypt:!1,mode:L||(N===null?"ECB":"CBC")});return V.start(N),V},Z.des.createEncryptionCipher=function(P,N){return F({key:P,output:null,decrypt:!1,mode:N})},Z.des.startDecrypting=function(P,N,C,L){var V=F({key:P,output:C,decrypt:!0,mode:L||(N===null?"ECB":"CBC")});return V.start(N),V},Z.des.createDecryptionCipher=function(P,N){return F({key:P,output:null,decrypt:!0,mode:N})},Z.des.Algorithm=function(P,N){var C=this;C.name=P,C.mode=new N({blockSize:8,cipher:{encrypt:function(L,V){return D(C._keys,L,V,!1)},decrypt:function(L,V){return D(C._keys,L,V,!0)}}}),C._init=!1},Z.des.Algorithm.prototype.initialize=function(P){if(this._init)return;var N=Z.util.createBuffer(P.key);if(this.name.indexOf("3DES")===0){if(N.length()!==24)throw new Error("Invalid Triple-DES key size: "+N.length()*8)}this._keys=B(N),this._init=!0},J("DES-ECB",Z.cipher.modes.ecb),J("DES-CBC",Z.cipher.modes.cbc),J("DES-CFB",Z.cipher.modes.cfb),J("DES-OFB",Z.cipher.modes.ofb),J("DES-CTR",Z.cipher.modes.ctr),J("3DES-ECB",Z.cipher.modes.ecb),J("3DES-CBC",Z.cipher.modes.cbc),J("3DES-CFB",Z.cipher.modes.cfb),J("3DES-OFB",Z.cipher.modes.ofb),J("3DES-CTR",Z.cipher.modes.ctr);function J(P,N){var C=function(){return new Z.des.Algorithm(P,N)};Z.cipher.registerAlgorithm(P,C)}var G=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],Y=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],H=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],K=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],z=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],W=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],$=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],q=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function B(P){var N=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],C=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],L=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],V=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],M=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],I=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],E=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],w=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],A=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],R=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],T=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],S=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],v=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],h=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],x=P.length()>8?3:1,p=[],n=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],t=0,Y1;for(var G1=0;G1>>4^C1)&252645135,C1^=Y1,V1^=Y1<<4,Y1=(C1>>>-16^V1)&65535,V1^=Y1,C1^=Y1<<-16,Y1=(V1>>>2^C1)&858993459,C1^=Y1,V1^=Y1<<2,Y1=(C1>>>-16^V1)&65535,V1^=Y1,C1^=Y1<<-16,Y1=(V1>>>1^C1)&1431655765,C1^=Y1,V1^=Y1<<1,Y1=(C1>>>8^V1)&16711935,V1^=Y1,C1^=Y1<<8,Y1=(V1>>>1^C1)&1431655765,C1^=Y1,V1^=Y1<<1,Y1=V1<<8|C1>>>20&240,V1=C1<<24|C1<<8&16711680|C1>>>8&65280|C1>>>24&240,C1=Y1;for(var N1=0;N1>>26,C1=C1<<2|C1>>>26;else V1=V1<<1|V1>>>27,C1=C1<<1|C1>>>27;V1&=-15,C1&=-15;var j1=N[V1>>>28]|C[V1>>>24&15]|L[V1>>>20&15]|V[V1>>>16&15]|M[V1>>>12&15]|I[V1>>>8&15]|E[V1>>>4&15],d1=w[C1>>>28]|A[C1>>>24&15]|R[C1>>>20&15]|T[C1>>>16&15]|S[C1>>>12&15]|v[C1>>>8&15]|h[C1>>>4&15];Y1=(d1>>>16^j1)&65535,p[t++]=j1^Y1,p[t++]=d1^Y1<<16}}return p}function D(P,N,C,L){var V=P.length===32?3:9,M;if(V===3)M=L?[30,-2,-2]:[0,32,2];else M=L?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var I,E=N[0],w=N[1];I=(E>>>4^w)&252645135,w^=I,E^=I<<4,I=(E>>>16^w)&65535,w^=I,E^=I<<16,I=(w>>>2^E)&858993459,E^=I,w^=I<<2,I=(w>>>8^E)&16711935,E^=I,w^=I<<8,I=(E>>>1^w)&1431655765,w^=I,E^=I<<1,E=E<<1|E>>>31,w=w<<1|w>>>31;for(var A=0;A>>4|w<<28)^P[S+1];I=E,E=w,w=I^(Y[v>>>24&63]|K[v>>>16&63]|W[v>>>8&63]|q[v&63]|G[h>>>24&63]|H[h>>>16&63]|z[h>>>8&63]|$[h&63])}I=E,E=w,w=I}E=E>>>1|E<<31,w=w>>>1|w<<31,I=(E>>>1^w)&1431655765,w^=I,E^=I<<1,I=(w>>>8^E)&16711935,E^=I,w^=I<<8,I=(w>>>2^E)&858993459,E^=I,w^=I<<2,I=(E>>>16^w)&65535,w^=I,E^=I<<16,I=(E>>>4^w)&252645135,w^=I,E^=I<<4,C[0]=E,C[1]=w}function F(P){P=P||{};var N=(P.mode||"CBC").toUpperCase(),C="DES-"+N,L;if(P.decrypt)L=Z.cipher.createDecipher(C,P.key);else L=Z.cipher.createCipher(C,P.key);var V=L.start;return L.start=function(M,I){var E=null;if(I instanceof Z.util.ByteBuffer)E=I,I={};I=I||{},I.output=E,I.iv=M,V.call(L,I)},L}}}),L$=W1({"node_modules/node-forge/lib/pbkdf2.js"(Q,X){var Z=y0();kX(),xQ(),d0();var J=Z.pkcs5=Z.pkcs5||{},G;if(Z.util.isNodejs&&!Z.options.usePureJavaScript)G=require("crypto");X.exports=Z.pbkdf2=J.pbkdf2=function(Y,H,K,z,W,$){if(typeof W==="function")$=W,W=null;if(Z.util.isNodejs&&!Z.options.usePureJavaScript&&G.pbkdf2&&(W===null||typeof W!=="object")&&(G.pbkdf2Sync.length>4||(!W||W==="sha1"))){if(typeof W!=="string")W="sha1";if(Y=Buffer.from(Y,"binary"),H=Buffer.from(H,"binary"),!$){if(G.pbkdf2Sync.length===4)return G.pbkdf2Sync(Y,H,K,z).toString("binary");return G.pbkdf2Sync(Y,H,K,z,W).toString("binary")}if(G.pbkdf2Sync.length===4)return G.pbkdf2(Y,H,K,z,function(A,R){if(A)return $(A);$(null,R.toString("binary"))});return G.pbkdf2(Y,H,K,z,W,function(A,R){if(A)return $(A);$(null,R.toString("binary"))})}if(typeof W==="undefined"||W===null)W="sha1";if(typeof W==="string"){if(!(W in Z.md.algorithms))throw new Error("Unknown hash algorithm: "+W);W=Z.md[W].create()}var q=W.digestLength;if(z>4294967295*q){var B=new Error("Derived key is too long.");if($)return $(B);throw B}var D=Math.ceil(z/q),F=z-(D-1)*q,P=Z.hmac.create();P.start(W,Y);var N="",C,L,V;if(!$){for(var M=1;M<=D;++M){P.start(null,null),P.update(H),P.update(Z.util.int32ToBytes(M)),C=V=P.digest().getBytes();for(var I=2;I<=K;++I)P.start(null,null),P.update(V),L=P.digest().getBytes(),C=Z.util.xorBytes(C,L,q),V=L;N+=MD)return $(null,N);P.start(null,null),P.update(H),P.update(Z.util.int32ToBytes(M)),C=V=P.digest().getBytes(),I=2,w()}function w(){if(I<=K)return P.start(null,null),P.update(V),L=P.digest().getBytes(),C=Z.util.xorBytes(C,L,q),V=L,++I,Z.util.setImmediate(w);N+=M>>0,P>>>0];for(var N=B.fullMessageLength.length-1;N>=0;--N)B.fullMessageLength[N]+=P[1],P[1]=P[0]+(B.fullMessageLength[N]/4294967296>>>0),B.fullMessageLength[N]=B.fullMessageLength[N]>>>0,P[0]=P[1]/4294967296>>>0;if($.putBytes(D),z(W,q,$),$.read>2048||$.length()===0)$.compact();return B},B.digest=function(){var D=Z.util.createBuffer();D.putBytes($.bytes());var F=B.fullMessageLength[B.fullMessageLength.length-1]+B.messageLengthSize,P=F&B.blockLength-1;D.putBytes(G.substr(0,B.blockLength-P));var N,C,L=B.fullMessageLength[0]*8;for(var V=0;V>>0,L+=C,D.putInt32(L>>>0),L=N>>>0;D.putInt32(L);var M={h0:W.h0,h1:W.h1,h2:W.h2,h3:W.h3,h4:W.h4,h5:W.h5,h6:W.h6,h7:W.h7};z(M,q,D);var I=Z.util.createBuffer();return I.putInt32(M.h0),I.putInt32(M.h1),I.putInt32(M.h2),I.putInt32(M.h3),I.putInt32(M.h4),I.putInt32(M.h5),I.putInt32(M.h6),I.putInt32(M.h7),I},B};var G=null,Y=!1,H=null;function K(){G=String.fromCharCode(128),G+=Z.util.fillString(String.fromCharCode(0),64),H=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Y=!0}function z(W,$,q){var B,D,F,P,N,C,L,V,M,I,E,w,A,R,T,S=q.length();while(S>=64){for(L=0;L<16;++L)$[L]=q.getInt32();for(;L<64;++L)B=$[L-2],B=(B>>>17|B<<15)^(B>>>19|B<<13)^B>>>10,D=$[L-15],D=(D>>>7|D<<25)^(D>>>18|D<<14)^D>>>3,$[L]=B+$[L-7]+D+$[L-16]|0;V=W.h0,M=W.h1,I=W.h2,E=W.h3,w=W.h4,A=W.h5,R=W.h6,T=W.h7;for(L=0;L<64;++L)P=(w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7),N=R^w&(A^R),F=(V>>>2|V<<30)^(V>>>13|V<<19)^(V>>>22|V<<10),C=V&M|I&(V^M),B=T+P+N+H[L]+$[L],D=F+C,T=R,R=A,A=w,w=E+B>>>0,E=I,I=M,M=V,V=B+D>>>0;W.h0=W.h0+V|0,W.h1=W.h1+M|0,W.h2=W.h2+I|0,W.h3=W.h3+E|0,W.h4=W.h4+w|0,W.h5=W.h5+A|0,W.h6=W.h6+R|0,W.h7=W.h7+T|0,S-=64}}}}),wM=W1({"node_modules/node-forge/lib/prng.js"(Q,X){var Z=y0();d0();var J=null;if(Z.util.isNodejs&&!Z.options.usePureJavaScript&&!process.versions["node-webkit"])J=require("crypto");var G=X.exports=Z.prng=Z.prng||{};G.create=function(Y){var H={plugin:Y,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},K=Y.md,z=new Array(32);for(var W=0;W<32;++W)z[W]=K.create();H.pools=z,H.pool=0,H.generate=function(F,P){if(!P)return H.generateSync(F);var N=H.plugin.cipher,C=H.plugin.increment,L=H.plugin.formatKey,V=H.plugin.formatSeed,M=Z.util.createBuffer();H.key=null,I();function I(E){if(E)return P(E);if(M.length()>=F)return P(null,M.getBytes(F));if(H.generated>1048575)H.key=null;if(H.key===null)return Z.util.nextTick(function(){$(I)});var w=N(H.key,H.seed);H.generated+=w.length,M.putBytes(w),H.key=L(N(H.key,C(H.seed))),H.seed=V(N(H.key,H.seed)),Z.util.setImmediate(I)}},H.generateSync=function(F){var P=H.plugin.cipher,N=H.plugin.increment,C=H.plugin.formatKey,L=H.plugin.formatSeed;H.key=null;var V=Z.util.createBuffer();while(V.length()1048575)H.key=null;if(H.key===null)q();var M=P(H.key,H.seed);H.generated+=M.length,V.putBytes(M),H.key=C(P(H.key,N(H.seed))),H.seed=L(P(H.key,H.seed))}return V.getBytes(F)};function $(F){if(H.pools[0].messageLength>=32)return B(),F();var P=32-H.pools[0].messageLength<<5;H.seedFile(P,function(N,C){if(N)return F(N);H.collect(C),B(),F()})}function q(){if(H.pools[0].messageLength>=32)return B();var F=32-H.pools[0].messageLength<<5;H.collect(H.seedFileSync(F)),B()}function B(){H.reseeds=H.reseeds===4294967295?0:H.reseeds+1;var F=H.plugin.md.create();F.update(H.keyBytes);var P=1;for(var N=0;N<32;++N){if(H.reseeds%P===0)F.update(H.pools[N].digest().getBytes()),H.pools[N].start();P=P<<1}H.keyBytes=F.digest().getBytes(),F.start(),F.update(H.keyBytes);var C=F.digest().getBytes();H.key=H.plugin.formatKey(H.keyBytes),H.seed=H.plugin.formatSeed(C),H.generated=0}function D(F){var P=null,N=Z.util.globalScope,C=N.crypto||N.msCrypto;if(C&&C.getRandomValues)P=function(T){return C.getRandomValues(T)};var L=Z.util.createBuffer();if(P)while(L.length()>16),w+=(E&32767)<<16,w+=E>>15,w=(w&2147483647)+(w>>31),R=w&4294967295;for(var I=0;I<3;++I)A=R>>>(I<<3),A^=Math.floor(Math.random()*256),L.putByte(A&255)}}return L.getBytes(F)}if(J)H.seedFile=function(F,P){J.randomBytes(F,function(N,C){if(N)return P(N);P(null,C.toString())})},H.seedFileSync=function(F){return J.randomBytes(F).toString()};else H.seedFile=function(F,P){try{P(null,D(F))}catch(N){P(N)}},H.seedFileSync=D;return H.collect=function(F){var P=F.length;for(var N=0;N>C&255);H.collect(N)},H.registerWorker=function(F){if(F===self)H.seedFile=function(N,C){function L(V){var M=V.data;if(M.forge&&M.forge.prng)self.removeEventListener("message",L),C(M.forge.prng.err,M.forge.prng.bytes)}self.addEventListener("message",L),self.postMessage({forge:{prng:{needed:N}}})};else{var P=function(N){var C=N.data;if(C.forge&&C.forge.prng)H.seedFile(C.forge.prng.needed,function(L,V){F.postMessage({forge:{prng:{err:L,bytes:V}}})})};F.addEventListener("message",P)}},H}}}),d9=W1({"node_modules/node-forge/lib/random.js"(Q,X){var Z=y0();NZ(),OM(),wM(),d0(),function(){if(Z.random&&Z.random.getBytes){X.exports=Z.random;return}(function(J){var G={},Y=new Array(4),H=Z.util.createBuffer();G.formatKey=function(F){var P=Z.util.createBuffer(F);return F=new Array(4),F[0]=P.getInt32(),F[1]=P.getInt32(),F[2]=P.getInt32(),F[3]=P.getInt32(),Z.aes._expandKey(F,!1)},G.formatSeed=function(F){var P=Z.util.createBuffer(F);return F=new Array(4),F[0]=P.getInt32(),F[1]=P.getInt32(),F[2]=P.getInt32(),F[3]=P.getInt32(),F},G.cipher=function(F,P){return Z.aes._updateBlock(F,P,Y,!1),H.putInt32(Y[0]),H.putInt32(Y[1]),H.putInt32(Y[2]),H.putInt32(Y[3]),H.getBytes()},G.increment=function(F){return++F[3],F},G.md=Z.md.sha256;function K(){var F=Z.prng.create(G);return F.getBytes=function(P,N){return F.generate(P,N)},F.getBytesSync=function(P){return F.generate(P)},F}var z=K(),W=null,$=Z.util.globalScope,q=$.crypto||$.msCrypto;if(q&&q.getRandomValues)W=function(F){return q.getRandomValues(F)};if(Z.options.usePureJavaScript||!Z.util.isNodejs&&!W){if(typeof window==="undefined"||window.document===void 0);if(z.collectInt(+new Date,32),typeof navigator!=="undefined"){var B="";for(var D in navigator)try{if(typeof navigator[D]=="string")B+=navigator[D]}catch(F){}z.collect(B),B=null}if(J)J().mousemove(function(F){z.collectInt(F.clientX,16),z.collectInt(F.clientY,16)}),J().keypress(function(F){z.collectInt(F.charCode,8)})}if(!Z.random)Z.random=z;else for(var D in z)Z.random[D]=z[D];Z.random.createInstance=K,X.exports=Z.random})(typeof jQuery!=="undefined"?jQuery:null)}()}}),EM=W1({"node_modules/node-forge/lib/rc2.js"(Q,X){var Z=y0();d0();var J=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173],G=[1,2,3,5],Y=function(z,W){return z<>16-W},H=function(z,W){return(z&65535)>>W|z<<16-W&65535};X.exports=Z.rc2=Z.rc2||{},Z.rc2.expandKey=function(z,W){if(typeof z==="string")z=Z.util.createBuffer(z);W=W||128;var $=z,q=z.length(),B=W,D=Math.ceil(B/8),F=255>>(B&7),P;for(P=q;P<128;P++)$.putByte(J[$.at(P-1)+$.at(P-q)&255]);$.setAt(128-D,J[$.at(128-D)&F]);for(P=127-D;P>=0;P--)$.setAt(P,J[$.at(P+1)^$.at(P+D)]);return $};var K=function(z,W,$){var q=!1,B=null,D=null,F=null,P,N,C,L,V=[];z=Z.rc2.expandKey(z,W);for(C=0;C<64;C++)V.push(z.getInt16Le());if($)P=function(E){for(C=0;C<4;C++)E[C]+=V[L]+(E[(C+3)%4]&E[(C+2)%4])+(~E[(C+3)%4]&E[(C+1)%4]),E[C]=Y(E[C],G[C]),L++},N=function(E){for(C=0;C<4;C++)E[C]+=V[E[(C+3)%4]&63]};else P=function(E){for(C=3;C>=0;C--)E[C]=H(E[C],G[C]),E[C]-=V[L]+(E[(C+3)%4]&E[(C+2)%4])+(~E[(C+3)%4]&E[(C+1)%4]),L--},N=function(E){for(C=3;C>=0;C--)E[C]-=V[E[(C+3)%4]&63]};var M=function(E){var w=[];for(C=0;C<4;C++){var A=B.getInt16Le();if(F!==null)if($)A^=F.getInt16Le();else F.putInt16Le(A);w.push(A&65535)}L=$?0:63;for(var R=0;R=8)M([[5,P],[1,N],[6,P],[1,N],[5,P]])},finish:function(E){var w=!0;if($)if(E)w=E(8,B,!$);else{var A=B.length()===8?8:8-B.length();B.fillWithByte(A,A)}if(w)q=!0,I.update();if(!$){if(w=B.length()===0,w)if(E)w=E(8,D,!$);else{var R=D.length(),T=D.at(R-1);if(T>R)w=!1;else D.truncate(T)}}return w}},I};Z.rc2.startEncrypting=function(z,W,$){var q=Z.rc2.createEncryptionCipher(z,128);return q.start(W,$),q},Z.rc2.createEncryptionCipher=function(z,W){return K(z,W,!0)},Z.rc2.startDecrypting=function(z,W,$){var q=Z.rc2.createDecryptionCipher(z,128);return q.start(W,$),q},Z.rc2.createDecryptionCipher=function(z,W){return K(z,W,!1)}}}),lq=W1({"node_modules/node-forge/lib/jsbn.js"(Q,X){var Z=y0();X.exports=Z.jsbn=Z.jsbn||{};var J,G=244837814094590,Y=(G&16777215)==15715070;function H(b,u,o){if(this.data=[],b!=null)if(typeof b=="number")this.fromNumber(b,u,o);else if(u==null&&typeof b!="string")this.fromString(b,256);else this.fromString(b,u)}Z.jsbn.BigInteger=H;function K(){return new H(null)}function z(b,u,o,z1,A1,w1){while(--w1>=0){var g1=u*this.data[b++]+o.data[z1]+A1;A1=Math.floor(g1/67108864),o.data[z1++]=g1&67108863}return A1}function W(b,u,o,z1,A1,w1){var g1=u&32767,x1=u>>15;while(--w1>=0){var o0=this.data[b]&32767,V6=this.data[b++]>>15,b6=x1*o0+V6*g1;o0=g1*o0+((b6&32767)<<15)+o.data[z1]+(A1&1073741823),A1=(o0>>>30)+(b6>>>15)+x1*V6+(A1>>>30),o.data[z1++]=o0&1073741823}return A1}function $(b,u,o,z1,A1,w1){var g1=u&16383,x1=u>>14;while(--w1>=0){var o0=this.data[b]&16383,V6=this.data[b++]>>14,b6=x1*o0+V6*g1;o0=g1*o0+((b6&16383)<<14)+o.data[z1]+A1,A1=(o0>>28)+(b6>>14)+x1*V6,o.data[z1++]=o0&268435455}return A1}if(typeof navigator==="undefined")H.prototype.am=$,J=28;else if(Y&&navigator.appName=="Microsoft Internet Explorer")H.prototype.am=W,J=30;else if(Y&&navigator.appName!="Netscape")H.prototype.am=z,J=26;else H.prototype.am=$,J=28;H.prototype.DB=J,H.prototype.DM=(1<=0;--u)b.data[u]=this.data[u];b.t=this.t,b.s=this.s}function V(b){if(this.t=1,this.s=b<0?-1:0,b>0)this.data[0]=b;else if(b<-1)this.data[0]=b+this.DV;else this.t=0}function M(b){var u=K();return u.fromInt(b),u}function I(b,u){var o;if(u==16)o=4;else if(u==8)o=3;else if(u==256)o=8;else if(u==2)o=1;else if(u==32)o=5;else if(u==4)o=2;else{this.fromRadix(b,u);return}this.t=0,this.s=0;var z1=b.length,A1=!1,w1=0;while(--z1>=0){var g1=o==8?b[z1]&255:C(b,z1);if(g1<0){if(b.charAt(z1)=="-")A1=!0;continue}if(A1=!1,w1==0)this.data[this.t++]=g1;else if(w1+o>this.DB)this.data[this.t-1]|=(g1&(1<>this.DB-w1;else this.data[this.t-1]|=g1<=this.DB)w1-=this.DB}if(o==8&&(b[0]&128)!=0){if(this.s=-1,w1>0)this.data[this.t-1]|=(1<0&&this.data[this.t-1]==b)--this.t}function w(b){if(this.s<0)return"-"+this.negate().toString(b);var u;if(b==16)u=4;else if(b==8)u=3;else if(b==2)u=1;else if(b==32)u=5;else if(b==4)u=2;else return this.toRadix(b);var o=(1<0){if(x1>x1)>0)A1=!0,w1=N(z1);while(g1>=0){if(x1>(x1+=this.DB-u);else if(z1=this.data[g1]>>(x1-=u)&o,x1<=0)x1+=this.DB,--g1;if(z1>0)A1=!0;if(A1)w1+=N(z1)}}return A1?w1:"0"}function A(){var b=K();return H.ZERO.subTo(this,b),b}function R(){return this.s<0?this.negate():this}function T(b){var u=this.s-b.s;if(u!=0)return u;var o=this.t;if(u=o-b.t,u!=0)return this.s<0?-u:u;while(--o>=0)if((u=this.data[o]-b.data[o])!=0)return u;return 0}function S(b){var u=1,o;if((o=b>>>16)!=0)b=o,u+=16;if((o=b>>8)!=0)b=o,u+=8;if((o=b>>4)!=0)b=o,u+=4;if((o=b>>2)!=0)b=o,u+=2;if((o=b>>1)!=0)b=o,u+=1;return u}function v(){if(this.t<=0)return 0;return this.DB*(this.t-1)+S(this.data[this.t-1]^this.s&this.DM)}function h(b,u){var o;for(o=this.t-1;o>=0;--o)u.data[o+b]=this.data[o];for(o=b-1;o>=0;--o)u.data[o]=0;u.t=this.t+b,u.s=this.s}function x(b,u){for(var o=b;o=0;--x1)u.data[x1+w1+1]=this.data[x1]>>z1|g1,g1=(this.data[x1]&A1)<=0;--x1)u.data[x1]=0;u.data[w1]=g1,u.t=this.t+w1+1,u.s=this.s,u.clamp()}function n(b,u){u.s=this.s;var o=Math.floor(b/this.DB);if(o>=this.t){u.t=0;return}var z1=b%this.DB,A1=this.DB-z1,w1=(1<>z1;for(var g1=o+1;g1>z1;if(z1>0)u.data[this.t-o-1]|=(this.s&w1)<>=this.DB;if(b.t>=this.DB;z1+=this.s}else{z1+=this.s;while(o>=this.DB;z1-=b.s}if(u.s=z1<0?-1:0,z1<-1)u.data[o++]=this.DV+z1;else if(z1>0)u.data[o++]=z1;u.t=o,u.clamp()}function Y1(b,u){var o=this.abs(),z1=b.abs(),A1=o.t;u.t=A1+z1.t;while(--A1>=0)u.data[A1]=0;for(A1=0;A1=0)b.data[o]=0;for(o=0;o=u.DV)b.data[o+u.t]-=u.DV,b.data[o+u.t+1]=1}if(b.t>0)b.data[b.t-1]+=u.am(o,u.data[o],b,2*o,0,1);b.s=0,b.clamp()}function V1(b,u,o){var z1=b.abs();if(z1.t<=0)return;var A1=this.abs();if(A1.t0)z1.lShiftTo(o0,w1),A1.lShiftTo(o0,o);else z1.copyTo(w1),A1.copyTo(o);var V6=w1.t,b6=w1.data[V6-1];if(b6==0)return;var v6=b6*(1<1?w1.data[V6-2]>>this.F2:0),Q9=this.FV/v6,E4=(1<=0)o.data[o.t++]=1,o.subTo(Z9,o);H.ONE.dlShiftTo(V6,Z9),Z9.subTo(w1,w1);while(w1.t=0){var U7=o.data[--B8]==b6?this.DM:Math.floor(o.data[B8]*Q9+(o.data[B8-1]+p8)*E4);if((o.data[B8]+=w1.am(0,U7,o,j4,0,V6))0)o.rShiftTo(o0,o);if(g1<0)H.ZERO.subTo(o,o)}function C1(b){var u=K();if(this.abs().divRemTo(b,null,u),this.s<0&&u.compareTo(H.ZERO)>0)b.subTo(u,u);return u}function N1(b){this.m=b}function j1(b){if(b.s<0||b.compareTo(this.m)>=0)return b.mod(this.m);else return b}function d1(b){return b}function D1(b){b.divRemTo(this.m,null,b)}function e(b,u,o){b.multiplyTo(u,o),this.reduce(o)}function P1(b,u){b.squareTo(u),this.reduce(u)}N1.prototype.convert=j1,N1.prototype.revert=d1,N1.prototype.reduce=D1,N1.prototype.mulTo=e,N1.prototype.sqrTo=P1;function Q1(){if(this.t<1)return 0;var b=this.data[0];if((b&1)==0)return 0;var u=b&3;return u=u*(2-(b&15)*u)&15,u=u*(2-(b&255)*u)&255,u=u*(2-((b&65535)*u&65535))&65535,u=u*(2-b*u%this.DV)%this.DV,u>0?this.DV-u:-u}function O1(b){this.m=b,this.mp=b.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<0)this.m.subTo(u,u);return u}function k(b){var u=K();return b.copyTo(u),this.reduce(u),u}function d(b){while(b.t<=this.mt2)b.data[b.t++]=0;for(var u=0;u>15)*this.mpl&this.um)<<15)&b.DM;o=u+this.m.t,b.data[o]+=this.m.am(0,z1,b,u,0,this.m.t);while(b.data[o]>=b.DV)b.data[o]-=b.DV,b.data[++o]++}if(b.clamp(),b.drShiftTo(this.m.t,b),b.compareTo(this.m)>=0)b.subTo(this.m,b)}function f(b,u){b.squareTo(u),this.reduce(u)}function j(b,u,o){b.multiplyTo(u,o),this.reduce(o)}O1.prototype.convert=S1,O1.prototype.revert=k,O1.prototype.reduce=d,O1.prototype.mulTo=j,O1.prototype.sqrTo=f;function m(){return(this.t>0?this.data[0]&1:this.s)==0}function Z1(b,u){if(b>4294967295||b<1)return H.ONE;var o=K(),z1=K(),A1=u.convert(this),w1=S(b)-1;A1.copyTo(o);while(--w1>=0)if(u.sqrTo(o,z1),(b&1<0)u.mulTo(z1,A1,o);else{var g1=o;o=z1,z1=g1}return u.revert(o)}function _(b,u){var o;if(b<256||u.isEven())o=new N1(u);else o=new O1(u);return this.exp(b,o)}H.prototype.copyTo=L,H.prototype.fromInt=V,H.prototype.fromString=I,H.prototype.clamp=E,H.prototype.dlShiftTo=h,H.prototype.drShiftTo=x,H.prototype.lShiftTo=p,H.prototype.rShiftTo=n,H.prototype.subTo=t,H.prototype.multiplyTo=Y1,H.prototype.squareTo=G1,H.prototype.divRemTo=V1,H.prototype.invDigit=Q1,H.prototype.isEven=m,H.prototype.exp=Z1,H.prototype.toString=w,H.prototype.negate=A,H.prototype.abs=R,H.prototype.compareTo=T,H.prototype.bitLength=v,H.prototype.mod=C1,H.prototype.modPowInt=_,H.ZERO=M(0),H.ONE=M(1);function J1(){var b=K();return this.copyTo(b),b}function B1(){if(this.s<0){if(this.t==1)return this.data[0]-this.DV;else if(this.t==0)return-1}else if(this.t==1)return this.data[0];else if(this.t==0)return 0;return(this.data[1]&(1<<32-this.DB)-1)<>24}function H1(){return this.t==0?this.s:this.data[0]<<16>>16}function M1(b){return Math.floor(Math.LN2*this.DB/Math.log(b))}function u1(){if(this.s<0)return-1;else if(this.t<=0||this.t==1&&this.data[0]<=0)return 0;else return 1}function s1(b){if(b==null)b=10;if(this.signum()==0||b<2||b>36)return"0";var u=this.chunkSize(b),o=Math.pow(b,u),z1=M(o),A1=K(),w1=K(),g1="";this.divRemTo(z1,A1,w1);while(A1.signum()>0)g1=(o+w1.intValue()).toString(b).substr(1)+g1,A1.divRemTo(z1,A1,w1);return w1.intValue().toString(b)+g1}function a1(b,u){if(this.fromInt(0),u==null)u=10;var o=this.chunkSize(u),z1=Math.pow(u,o),A1=!1,w1=0,g1=0;for(var x1=0;x1=o)this.dMultiply(z1),this.dAddOffset(g1,0),w1=0,g1=0}if(w1>0)this.dMultiply(Math.pow(u,w1)),this.dAddOffset(g1,0);if(A1)H.ZERO.subTo(this,this)}function X0(b,u,o){if(typeof u=="number")if(b<2)this.fromInt(1);else{if(this.fromNumber(b,o),!this.testBit(b-1))this.bitwiseTo(H.ONE.shiftLeft(b-1),U0,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(u))if(this.dAddOffset(2,0),this.bitLength()>b)this.subTo(H.ONE.shiftLeft(b-1),this)}else{var z1=new Array,A1=b&7;if(z1.length=(b>>3)+1,u.nextBytes(z1),A1>0)z1[0]&=(1<0){if(o>o)!=(this.s&this.DM)>>o)u[A1++]=z1|this.s<=0){if(o<8)z1=(this.data[b]&(1<>(o+=this.DB-8);else if(z1=this.data[b]>>(o-=8)&255,o<=0)o+=this.DB,--b;if((z1&128)!=0)z1|=-256;if(A1==0&&(this.s&128)!=(z1&128))++A1;if(A1>0||z1!=this.s)u[A1++]=z1}}return u}function B0(b){return this.compareTo(b)==0}function Y0(b){return this.compareTo(b)<0?this:b}function S0(b){return this.compareTo(b)>0?this:b}function D0(b,u,o){var z1,A1,w1=Math.min(b.t,this.t);for(z1=0;z1>=16,u+=16;if((b&255)==0)b>>=8,u+=8;if((b&15)==0)b>>=4,u+=4;if((b&3)==0)b>>=2,u+=2;if((b&1)==0)++u;return u}function i6(){for(var b=0;b=this.t)return this.s!=0;return(this.data[u]&1<>=this.DB;if(b.t>=this.DB;z1+=this.s}else{z1+=this.s;while(o>=this.DB;z1+=b.s}if(u.s=z1<0?-1:0,z1>0)u.data[o++]=z1;else if(z1<-1)u.data[o++]=this.DV+z1;u.t=o,u.clamp()}function _0(b){var u=K();return this.addTo(b,u),u}function i0(b){var u=K();return this.subTo(b,u),u}function H6(b){var u=K();return this.multiplyTo(b,u),u}function B6(b){var u=K();return this.divRemTo(b,u,null),u}function Z6(b){var u=K();return this.divRemTo(b,null,u),u}function e0(b){var u=K(),o=K();return this.divRemTo(b,u,o),new Array(u,o)}function z6(b){this.data[this.t]=this.am(0,b-1,this,0,0,this.t),++this.t,this.clamp()}function X6(b,u){if(b==0)return;while(this.t<=u)this.data[this.t++]=0;this.data[u]+=b;while(this.data[u]>=this.DV){if(this.data[u]-=this.DV,++u>=this.t)this.data[this.t++]=0;++this.data[u]}}function n0(){}function U6(b){return b}function gQ(b,u,o){b.multiplyTo(u,o)}function d8(b,u){b.squareTo(u)}n0.prototype.convert=U6,n0.prototype.revert=U6,n0.prototype.mulTo=gQ,n0.prototype.sqrTo=d8;function qQ(b){return this.exp(b,new n0)}function hQ(b,u,o){var z1=Math.min(this.t+b.t,u);o.s=0,o.t=z1;while(z1>0)o.data[--z1]=0;var A1;for(A1=o.t-this.t;z1=0)o.data[z1]=0;for(z1=Math.max(u-this.t,0);z12*this.m.t)return b.mod(this.m);else if(b.compareTo(this.m)<0)return b;else{var u=K();return b.copyTo(u),this.reduce(u),u}}function aX(b){return b}function D3(b){if(b.drShiftTo(this.m.t-1,this.r2),b.t>this.m.t+1)b.t=this.m.t+1,b.clamp();this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(b.compareTo(this.r2)<0)b.dAddOffset(1,this.m.t+1);b.subTo(this.r2,b);while(b.compareTo(this.m)>=0)b.subTo(this.m,b)}function sX(b,u){b.squareTo(u),this.reduce(u)}function tX(b,u,o){b.multiplyTo(u,o),this.reduce(o)}N9.prototype.convert=F3,N9.prototype.revert=aX,N9.prototype.reduce=D3,N9.prototype.mulTo=tX,N9.prototype.sqrTo=sX;function rX(b,u){var o=b.bitLength(),z1,A1=M(1),w1;if(o<=0)return A1;else if(o<18)z1=1;else if(o<48)z1=3;else if(o<144)z1=4;else if(o<768)z1=5;else z1=6;if(o<8)w1=new N1(u);else if(u.isEven())w1=new N9(u);else w1=new O1(u);var g1=new Array,x1=3,o0=z1-1,V6=(1<1){var b6=K();w1.sqrTo(g1[1],b6);while(x1<=V6)g1[x1]=K(),w1.mulTo(b6,g1[x1-2],g1[x1]),x1+=2}var v6=b.t-1,Q9,E4=!0,p8=K(),B8;o=S(b.data[v6])-1;while(v6>=0){if(o>=o0)Q9=b.data[v6]>>o-o0&V6;else if(Q9=(b.data[v6]&(1<0)Q9|=b.data[v6-1]>>this.DB+o-o0;x1=z1;while((Q9&1)==0)Q9>>=1,--x1;if((o-=x1)<0)o+=this.DB,--v6;if(E4)g1[Q9].copyTo(A1),E4=!1;else{while(x1>1)w1.sqrTo(A1,p8),w1.sqrTo(p8,A1),x1-=2;if(x1>0)w1.sqrTo(A1,p8);else B8=A1,A1=p8,p8=B8;w1.mulTo(p8,g1[Q9],A1)}while(v6>=0&&(b.data[v6]&1<0)u.rShiftTo(w1,u),o.rShiftTo(w1,o);while(u.signum()>0){if((A1=u.getLowestSetBit())>0)u.rShiftTo(A1,u);if((A1=o.getLowestSetBit())>0)o.rShiftTo(A1,o);if(u.compareTo(o)>=0)u.subTo(o,u),u.rShiftTo(1,u);else o.subTo(u,o),o.rShiftTo(1,o)}if(w1>0)o.lShiftTo(w1,o);return o}function eX(b){if(b<=0)return 0;var u=this.DV%b,o=this.s<0?b-1:0;if(this.t>0)if(u==0)o=this.data[0]%b;else for(var z1=this.t-1;z1>=0;--z1)o=(u*o+this.data[z1])%b;return o}function QJ(b){var u=b.isEven();if(this.isEven()&&u||b.signum()==0)return H.ZERO;var o=b.clone(),z1=this.clone(),A1=M(1),w1=M(0),g1=M(0),x1=M(1);while(o.signum()!=0){while(o.isEven()){if(o.rShiftTo(1,o),u){if(!A1.isEven()||!w1.isEven())A1.addTo(this,A1),w1.subTo(b,w1);A1.rShiftTo(1,A1)}else if(!w1.isEven())w1.subTo(b,w1);w1.rShiftTo(1,w1)}while(z1.isEven()){if(z1.rShiftTo(1,z1),u){if(!g1.isEven()||!x1.isEven())g1.addTo(this,g1),x1.subTo(b,x1);g1.rShiftTo(1,g1)}else if(!x1.isEven())x1.subTo(b,x1);x1.rShiftTo(1,x1)}if(o.compareTo(z1)>=0){if(o.subTo(z1,o),u)A1.subTo(g1,A1);w1.subTo(x1,w1)}else{if(z1.subTo(o,z1),u)g1.subTo(A1,g1);x1.subTo(w1,x1)}}if(z1.compareTo(H.ONE)!=0)return H.ZERO;if(x1.compareTo(b)>=0)return x1.subtract(b);if(x1.signum()<0)x1.addTo(b,x1);else return x1;if(x1.signum()<0)return x1.add(b);else return x1}var u8=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],C3=67108864/u8[u8.length-1];function N3(b){var u,o=this.abs();if(o.t==1&&o.data[0]<=u8[u8.length-1]){for(u=0;u=0);var x1=w1.modPow(z1,this);if(x1.compareTo(H.ONE)!=0&&x1.compareTo(u)!=0){var o0=1;while(o0++>>0,F>>>0];for(var P=q.fullMessageLength.length-1;P>=0;--P)q.fullMessageLength[P]+=F[1],F[1]=F[0]+(q.fullMessageLength[P]/4294967296>>>0),q.fullMessageLength[P]=q.fullMessageLength[P]>>>0,F[0]=F[1]/4294967296>>>0;if(W.putBytes(B),K(z,$,W),W.read>2048||W.length()===0)W.compact();return q},q.digest=function(){var B=Z.util.createBuffer();B.putBytes(W.bytes());var D=q.fullMessageLength[q.fullMessageLength.length-1]+q.messageLengthSize,F=D&q.blockLength-1;B.putBytes(G.substr(0,q.blockLength-F));var P,N,C=q.fullMessageLength[0]*8;for(var L=0;L>>0,C+=N,B.putInt32(C>>>0),C=P>>>0;B.putInt32(C);var V={h0:z.h0,h1:z.h1,h2:z.h2,h3:z.h3,h4:z.h4};K(V,$,B);var M=Z.util.createBuffer();return M.putInt32(V.h0),M.putInt32(V.h1),M.putInt32(V.h2),M.putInt32(V.h3),M.putInt32(V.h4),M},q};var G=null,Y=!1;function H(){G=String.fromCharCode(128),G+=Z.util.fillString(String.fromCharCode(0),64),Y=!0}function K(z,W,$){var q,B,D,F,P,N,C,L,V=$.length();while(V>=64){B=z.h0,D=z.h1,F=z.h2,P=z.h3,N=z.h4;for(L=0;L<16;++L)q=$.getInt32(),W[L]=q,C=P^D&(F^P),q=(B<<5|B>>>27)+C+N+1518500249+q,N=P,P=F,F=(D<<30|D>>>2)>>>0,D=B,B=q;for(;L<20;++L)q=W[L-3]^W[L-8]^W[L-14]^W[L-16],q=q<<1|q>>>31,W[L]=q,C=P^D&(F^P),q=(B<<5|B>>>27)+C+N+1518500249+q,N=P,P=F,F=(D<<30|D>>>2)>>>0,D=B,B=q;for(;L<32;++L)q=W[L-3]^W[L-8]^W[L-14]^W[L-16],q=q<<1|q>>>31,W[L]=q,C=D^F^P,q=(B<<5|B>>>27)+C+N+1859775393+q,N=P,P=F,F=(D<<30|D>>>2)>>>0,D=B,B=q;for(;L<40;++L)q=W[L-6]^W[L-16]^W[L-28]^W[L-32],q=q<<2|q>>>30,W[L]=q,C=D^F^P,q=(B<<5|B>>>27)+C+N+1859775393+q,N=P,P=F,F=(D<<30|D>>>2)>>>0,D=B,B=q;for(;L<60;++L)q=W[L-6]^W[L-16]^W[L-28]^W[L-32],q=q<<2|q>>>30,W[L]=q,C=D&F|P&(D^F),q=(B<<5|B>>>27)+C+N+2400959708+q,N=P,P=F,F=(D<<30|D>>>2)>>>0,D=B,B=q;for(;L<80;++L)q=W[L-6]^W[L-16]^W[L-28]^W[L-32],q=q<<2|q>>>30,W[L]=q,C=D^F^P,q=(B<<5|B>>>27)+C+N+3395469782+q,N=P,P=F,F=(D<<30|D>>>2)>>>0,D=B,B=q;z.h0=z.h0+B|0,z.h1=z.h1+D|0,z.h2=z.h2+F|0,z.h3=z.h3+P|0,z.h4=z.h4+N|0,V-=64}}}}),jM=W1({"node_modules/node-forge/lib/pkcs1.js"(Q,X){var Z=y0();d0(),d9(),yX();var J=X.exports=Z.pkcs1=Z.pkcs1||{};J.encode_rsa_oaep=function(Y,H,K){var z,W,$,q;if(typeof K==="string")z=K,W=arguments[3]||void 0,$=arguments[4]||void 0;else if(K){if(z=K.label||void 0,W=K.seed||void 0,$=K.md||void 0,K.mgf1&&K.mgf1.md)q=K.mgf1.md}if(!$)$=Z.md.sha1.create();else $.start();if(!q)q=$;var B=Math.ceil(Y.n.bitLength()/8),D=B-2*$.digestLength-2;if(H.length>D){var F=new Error("RSAES-OAEP input message length is too long.");throw F.length=H.length,F.maxLength=D,F}if(!z)z="";$.update(z,"raw");var P=$.digest(),N="",C=D-H.length;for(var L=0;L>24&255,$>>16&255,$>>8&255,$&255);K.start(),K.update(Y+q),z+=K.digest().getBytes()}return z.substring(0,H)}}}),SM=W1({"node_modules/node-forge/lib/prime.js"(Q,X){var Z=y0();d0(),lq(),d9(),function(){if(Z.prime){X.exports=Z.prime;return}var J=X.exports=Z.prime=Z.prime||{},G=Z.jsbn.BigInteger,Y=[6,4,2,4,2,4,6,2],H=new G(null);H.fromInt(30);var K=function(F,P){return F|P};J.generateProbablePrime=function(F,P,N){if(typeof P==="function")N=P,P={};P=P||{};var C=P.algorithm||"PRIMEINC";if(typeof C==="string")C={name:C};C.options=C.options||{};var L=P.prng||Z.random,V={nextBytes:function(M){var I=L.getBytesSync(M.length);for(var E=0;EP)F=B(P,N);if(F.isProbablePrime(L))return M(null,F);F.dAddOffset(Y[C++%8],0)}while(V<0||+new Date-IF)L=B(F,P);var n=L.toString(16);h.target.postMessage({hex:n,workLoad:M}),L.dAddOffset(I,0)}}}function B(F,P){var N=new G(F,P),C=F-1;if(!N.testBit(C))N.bitwiseTo(G.ONE.shiftLeft(C),K,N);return N.dAddOffset(31-N.mod(H).byteValue(),0),N}function D(F){if(F<=100)return 27;if(F<=150)return 18;if(F<=200)return 15;if(F<=250)return 12;if(F<=300)return 9;if(F<=350)return 8;if(F<=400)return 7;if(F<=500)return 6;if(F<=600)return 5;if(F<=800)return 4;if(F<=1250)return 3;return 2}}()}}),cq=W1({"node_modules/node-forge/lib/rsa.js"(Q,X){var Z=y0();if(WQ(),lq(),TZ(),jM(),SM(),d9(),d0(),typeof J==="undefined")J=Z.jsbn.BigInteger;var J,G=Z.util.isNodejs?require("crypto"):null,Y=Z.asn1,H=Z.util;Z.pki=Z.pki||{},X.exports=Z.pki.rsa=Z.rsa=Z.rsa||{};var K=Z.pki,z=[6,4,2,4,2,4,6,2],W={name:"PrivateKeyInfo",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},$={name:"RSAPrivateKey",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},q={name:"RSAPublicKey",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},B=Z.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:Y.Class.UNIVERSAL,type:Y.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},D={name:"DigestInfo",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:Y.Class.UNIVERSAL,type:Y.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},F=function(R){var T;if(R.algorithm in K.oids)T=K.oids[R.algorithm];else{var S=new Error("Unknown message digest algorithm.");throw S.algorithm=R.algorithm,S}var v=Y.oidToDer(T).getBytes(),h=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[]),x=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[]);x.value.push(Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,v)),x.value.push(Y.create(Y.Class.UNIVERSAL,Y.Type.NULL,!1,""));var p=Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,R.digest().getBytes());return h.value.push(x),h.value.push(p),Y.toDer(h).getBytes()},P=function(R,T,S){if(S)return R.modPow(T.e,T.n);if(!T.p||!T.q)return R.modPow(T.d,T.n);if(!T.dP)T.dP=T.d.mod(T.p.subtract(J.ONE));if(!T.dQ)T.dQ=T.d.mod(T.q.subtract(J.ONE));if(!T.qInv)T.qInv=T.q.modInverse(T.p);var v;do v=new J(Z.util.bytesToHex(Z.random.getBytes(T.n.bitLength()/8)),16);while(v.compareTo(T.n)>=0||!v.gcd(T.n).equals(J.ONE));R=R.multiply(v.modPow(T.e,T.n)).mod(T.n);var h=R.mod(T.p).modPow(T.dP,T.p),x=R.mod(T.q).modPow(T.dQ,T.q);while(h.compareTo(x)<0)h=h.add(T.p);var p=h.subtract(x).multiply(T.qInv).mod(T.p).multiply(T.q).add(x);return p=p.multiply(v.modInverse(T.n)).mod(T.n),p};K.rsa.encrypt=function(R,T,S){var v=S,h,x=Math.ceil(T.n.bitLength()/8);if(S!==!1&&S!==!0)v=S===2,h=N(R,T,S);else h=Z.util.createBuffer(),h.putBytes(R);var p=new J(h.toHex(),16),n=P(p,T,v),t=n.toString(16),Y1=Z.util.createBuffer(),G1=x-Math.ceil(t.length/2);while(G1>0)Y1.putByte(0),--G1;return Y1.putBytes(Z.util.hexToBytes(t)),Y1.getBytes()},K.rsa.decrypt=function(R,T,S,v){var h=Math.ceil(T.n.bitLength()/8);if(R.length!==h){var x=new Error("Encrypted message length is invalid.");throw x.length=R.length,x.expected=h,x}var p=new J(Z.util.createBuffer(R).toHex(),16);if(p.compareTo(T.n)>=0)throw new Error("Encrypted message is invalid.");var n=P(p,T,S),t=n.toString(16),Y1=Z.util.createBuffer(),G1=h-Math.ceil(t.length/2);while(G1>0)Y1.putByte(0),--G1;if(Y1.putBytes(Z.util.hexToBytes(t)),v!==!1)return C(Y1.getBytes(),T,S);return Y1.getBytes()},K.rsa.createKeyPairGenerationState=function(R,T,S){if(typeof R==="string")R=parseInt(R,10);R=R||2048,S=S||{};var v=S.prng||Z.random,h={nextBytes:function(n){var t=v.getBytesSync(n.length);for(var Y1=0;Y1>1,pBits:R-(R>>1),pqState:0,num:null,keys:null},p.e.fromInt(p.eInt);else throw new Error("Invalid key generation algorithm: "+x);return p},K.rsa.stepKeyPairGenerationState=function(R,T){if(!("algorithm"in R))R.algorithm="PRIMEINC";var S=new J(null);S.fromInt(30);var v=0,h=function(V1,C1){return V1|C1},x=+new Date,p,n=0;while(R.keys===null&&(T<=0||nt)R.pqState=0;else if(R.num.isProbablePrime(M(R.num.bitLength())))++R.pqState;else R.num.dAddOffset(z[v++%8],0);else if(R.pqState===2)R.pqState=R.num.subtract(J.ONE).gcd(R.e).compareTo(J.ONE)===0?3:0;else if(R.pqState===3){if(R.pqState=0,R.p===null)R.p=R.num;else R.q=R.num;if(R.p!==null&&R.q!==null)++R.state;R.num=null}}else if(R.state===1){if(R.p.compareTo(R.q)<0)R.num=R.p,R.p=R.q,R.q=R.num;++R.state}else if(R.state===2)R.p1=R.p.subtract(J.ONE),R.q1=R.q.subtract(J.ONE),R.phi=R.p1.multiply(R.q1),++R.state;else if(R.state===3)if(R.phi.gcd(R.e).compareTo(J.ONE)===0)++R.state;else R.p=null,R.q=null,R.state=0;else if(R.state===4)if(R.n=R.p.multiply(R.q),R.n.bitLength()===R.bits)++R.state;else R.q=null,R.state=0;else if(R.state===5){var G1=R.e.modInverse(R.phi);R.keys={privateKey:K.rsa.setPrivateKey(R.n,R.e,G1,R.p,R.q,G1.mod(R.p1),G1.mod(R.q1),R.q.modInverse(R.p)),publicKey:K.rsa.setPublicKey(R.n,R.e)}}p=+new Date,n+=p-x,x=p}return R.keys!==null},K.rsa.generateKeyPair=function(R,T,S,v){if(arguments.length===1){if(typeof R==="object")S=R,R=void 0;else if(typeof R==="function")v=R,R=void 0}else if(arguments.length===2)if(typeof R==="number"){if(typeof T==="function")v=T,T=void 0;else if(typeof T!=="number")S=T,T=void 0}else S=R,v=T,R=void 0,T=void 0;else if(arguments.length===3)if(typeof T==="number"){if(typeof S==="function")v=S,S=void 0}else v=S,S=T,T=void 0;if(S=S||{},R===void 0)R=S.bits||2048;if(T===void 0)T=S.e||65537;if(!Z.options.usePureJavaScript&&!S.prng&&R>=256&&R<=16384&&(T===65537||T===3)){if(v){if(I("generateKeyPair"))return G.generateKeyPair("rsa",{modulusLength:R,publicExponent:T,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(n,t,Y1){if(n)return v(n);v(null,{privateKey:K.privateKeyFromPem(Y1),publicKey:K.publicKeyFromPem(t)})});if(E("generateKey")&&E("exportKey"))return H.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:R,publicExponent:A(T),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(n){return H.globalScope.crypto.subtle.exportKey("pkcs8",n.privateKey)}).then(void 0,function(n){v(n)}).then(function(n){if(n){var t=K.privateKeyFromAsn1(Y.fromDer(Z.util.createBuffer(n)));v(null,{privateKey:t,publicKey:K.setRsaPublicKey(t.n,t.e)})}});if(w("generateKey")&&w("exportKey")){var h=H.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:R,publicExponent:A(T),hash:{name:"SHA-256"}},!0,["sign","verify"]);h.oncomplete=function(n){var t=n.target.result,Y1=H.globalScope.msCrypto.subtle.exportKey("pkcs8",t.privateKey);Y1.oncomplete=function(G1){var V1=G1.target.result,C1=K.privateKeyFromAsn1(Y.fromDer(Z.util.createBuffer(V1)));v(null,{privateKey:C1,publicKey:K.setRsaPublicKey(C1.n,C1.e)})},Y1.onerror=function(G1){v(G1)}},h.onerror=function(n){v(n)};return}}else if(I("generateKeyPairSync")){var x=G.generateKeyPairSync("rsa",{modulusLength:R,publicExponent:T,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:K.privateKeyFromPem(x.privateKey),publicKey:K.publicKeyFromPem(x.publicKey)}}}var p=K.rsa.createKeyPairGenerationState(R,T,S);if(!v)return K.rsa.stepKeyPairGenerationState(p,0),p.keys;L(p,S,v)},K.setRsaPublicKey=K.rsa.setPublicKey=function(R,T){var S={n:R,e:T};return S.encrypt=function(v,h,x){if(typeof h==="string")h=h.toUpperCase();else if(h===void 0)h="RSAES-PKCS1-V1_5";if(h==="RSAES-PKCS1-V1_5")h={encode:function(n,t,Y1){return N(n,t,2).getBytes()}};else if(h==="RSA-OAEP"||h==="RSAES-OAEP")h={encode:function(n,t){return Z.pkcs1.encode_rsa_oaep(t,n,x)}};else if(["RAW","NONE","NULL",null].indexOf(h)!==-1)h={encode:function(n){return n}};else if(typeof h==="string")throw new Error('Unsupported encryption scheme: "'+h+'".');var p=h.encode(v,S,!0);return K.rsa.encrypt(p,S,!0)},S.verify=function(v,h,x,p){if(typeof x==="string")x=x.toUpperCase();else if(x===void 0)x="RSASSA-PKCS1-V1_5";if(p===void 0)p={_parseAllDigestBytes:!0};if(!("_parseAllDigestBytes"in p))p._parseAllDigestBytes=!0;if(x==="RSASSA-PKCS1-V1_5")x={verify:function(t,Y1){Y1=C(Y1,S,!0);var G1=Y.fromDer(Y1,{parseAllBytes:p._parseAllDigestBytes}),V1={},C1=[];if(!Y.validate(G1,D,V1,C1)){var N1=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.");throw N1.errors=C1,N1}var j1=Y.derToOid(V1.algorithmIdentifier);if(!(j1===Z.oids.md2||j1===Z.oids.md5||j1===Z.oids.sha1||j1===Z.oids.sha224||j1===Z.oids.sha256||j1===Z.oids.sha384||j1===Z.oids.sha512||j1===Z.oids["sha512-224"]||j1===Z.oids["sha512-256"])){var N1=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.");throw N1.oid=j1,N1}if(j1===Z.oids.md2||j1===Z.oids.md5){if(!("parameters"in V1))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifer NULL parameters.")}return t===V1.digest}};else if(x==="NONE"||x==="NULL"||x===null)x={verify:function(t,Y1){return Y1=C(Y1,S,!0),t===Y1}};var n=K.rsa.decrypt(h,S,!0,!1);return x.verify(v,n,S.n.bitLength())},S},K.setRsaPrivateKey=K.rsa.setPrivateKey=function(R,T,S,v,h,x,p,n){var t={n:R,e:T,d:S,p:v,q:h,dP:x,dQ:p,qInv:n};return t.decrypt=function(Y1,G1,V1){if(typeof G1==="string")G1=G1.toUpperCase();else if(G1===void 0)G1="RSAES-PKCS1-V1_5";var C1=K.rsa.decrypt(Y1,t,!1,!1);if(G1==="RSAES-PKCS1-V1_5")G1={decode:C};else if(G1==="RSA-OAEP"||G1==="RSAES-OAEP")G1={decode:function(N1,j1){return Z.pkcs1.decode_rsa_oaep(j1,N1,V1)}};else if(["RAW","NONE","NULL",null].indexOf(G1)!==-1)G1={decode:function(N1){return N1}};else throw new Error('Unsupported encryption scheme: "'+G1+'".');return G1.decode(C1,t,!1)},t.sign=function(Y1,G1){var V1=!1;if(typeof G1==="string")G1=G1.toUpperCase();if(G1===void 0||G1==="RSASSA-PKCS1-V1_5")G1={encode:F},V1=1;else if(G1==="NONE"||G1==="NULL"||G1===null)G1={encode:function(){return Y1}},V1=1;var C1=G1.encode(Y1,t.n.bitLength());return K.rsa.encrypt(C1,t,V1)},t},K.wrapRsaPrivateKey=function(R){return Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,Y.integerToDer(0).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(K.oids.rsaEncryption).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.NULL,!1,"")]),Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,Y.toDer(R).getBytes())])},K.privateKeyFromAsn1=function(R){var T={},S=[];if(Y.validate(R,W,T,S))R=Y.fromDer(Z.util.createBuffer(T.privateKey));if(T={},S=[],!Y.validate(R,$,T,S)){var v=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw v.errors=S,v}var h,x,p,n,t,Y1,G1,V1;return h=Z.util.createBuffer(T.privateKeyModulus).toHex(),x=Z.util.createBuffer(T.privateKeyPublicExponent).toHex(),p=Z.util.createBuffer(T.privateKeyPrivateExponent).toHex(),n=Z.util.createBuffer(T.privateKeyPrime1).toHex(),t=Z.util.createBuffer(T.privateKeyPrime2).toHex(),Y1=Z.util.createBuffer(T.privateKeyExponent1).toHex(),G1=Z.util.createBuffer(T.privateKeyExponent2).toHex(),V1=Z.util.createBuffer(T.privateKeyCoefficient).toHex(),K.setRsaPrivateKey(new J(h,16),new J(x,16),new J(p,16),new J(n,16),new J(t,16),new J(Y1,16),new J(G1,16),new J(V1,16))},K.privateKeyToAsn1=K.privateKeyToRSAPrivateKey=function(R){return Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,Y.integerToDer(0).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,V(R.n)),Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,V(R.e)),Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,V(R.d)),Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,V(R.p)),Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,V(R.q)),Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,V(R.dP)),Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,V(R.dQ)),Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,V(R.qInv))])},K.publicKeyFromAsn1=function(R){var T={},S=[];if(Y.validate(R,B,T,S)){var v=Y.derToOid(T.publicKeyOid);if(v!==K.oids.rsaEncryption){var h=new Error("Cannot read public key. Unknown OID.");throw h.oid=v,h}R=T.rsaPublicKey}if(S=[],!Y.validate(R,q,T,S)){var h=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.");throw h.errors=S,h}var x=Z.util.createBuffer(T.publicKeyModulus).toHex(),p=Z.util.createBuffer(T.publicKeyExponent).toHex();return K.setRsaPublicKey(new J(x,16),new J(p,16))},K.publicKeyToAsn1=K.publicKeyToSubjectPublicKeyInfo=function(R){return Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(K.oids.rsaEncryption).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.NULL,!1,"")]),Y.create(Y.Class.UNIVERSAL,Y.Type.BITSTRING,!1,[K.publicKeyToRSAPublicKey(R)])])},K.publicKeyToRSAPublicKey=function(R){return Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,V(R.n)),Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,V(R.e))])};function N(R,T,S){var v=Z.util.createBuffer(),h=Math.ceil(T.n.bitLength()/8);if(R.length>h-11){var x=new Error("Message is too long for PKCS#1 v1.5 padding.");throw x.length=R.length,x.max=h-11,x}v.putByte(0),v.putByte(S);var p=h-3-R.length,n;if(S===0||S===1){n=S===0?0:255;for(var t=0;t0){var Y1=0,G1=Z.random.getBytes(p);for(var t=0;t1){if(x.getByte()!==255){--x.read;break}++t}}else if(n===2){t=0;while(x.length()>1){if(x.getByte()===0){--x.read;break}++t}}var G1=x.getByte();if(G1!==0||t!==h-3-x.length())throw new Error("Encryption block is invalid.");return x.getBytes()}function L(R,T,S){if(typeof T==="function")S=T,T={};T=T||{};var v={algorithm:{name:T.algorithm||"PRIMEINC",options:{workers:T.workers||2,workLoad:T.workLoad||100,workerScript:T.workerScript}}};if("prng"in T)v.prng=T.prng;h();function h(){x(R.pBits,function(n,t){if(n)return S(n);if(R.p=t,R.q!==null)return p(n,R.q);x(R.qBits,p)})}function x(n,t){Z.prime.generateProbablePrime(n,v,t)}function p(n,t){if(n)return S(n);if(R.q=t,R.p.compareTo(R.q)<0){var Y1=R.p;R.p=R.q,R.q=Y1}if(R.p.subtract(J.ONE).gcd(R.e).compareTo(J.ONE)!==0){R.p=null,h();return}if(R.q.subtract(J.ONE).gcd(R.e).compareTo(J.ONE)!==0){R.q=null,x(R.qBits,p);return}if(R.p1=R.p.subtract(J.ONE),R.q1=R.q.subtract(J.ONE),R.phi=R.p1.multiply(R.q1),R.phi.gcd(R.e).compareTo(J.ONE)!==0){R.p=R.q=null,h();return}if(R.n=R.p.multiply(R.q),R.n.bitLength()!==R.bits){R.q=null,x(R.qBits,p);return}var G1=R.e.modInverse(R.phi);R.keys={privateKey:K.rsa.setPrivateKey(R.n,R.e,G1,R.p,R.q,G1.mod(R.p1),G1.mod(R.q1),R.q.modInverse(R.p)),publicKey:K.rsa.setPublicKey(R.n,R.e)},S(null,R.keys)}}function V(R){var T=R.toString(16);if(T[0]>="8")T="00"+T;var S=Z.util.hexToBytes(T);if(S.length>1&&(S.charCodeAt(0)===0&&(S.charCodeAt(1)&128)===0||S.charCodeAt(0)===255&&(S.charCodeAt(1)&128)===128))return S.substr(1);return S}function M(R){if(R<=100)return 27;if(R<=150)return 18;if(R<=200)return 15;if(R<=250)return 12;if(R<=300)return 9;if(R<=350)return 8;if(R<=400)return 7;if(R<=500)return 6;if(R<=600)return 5;if(R<=800)return 4;if(R<=1250)return 3;return 2}function I(R){return Z.util.isNodejs&&typeof G[R]==="function"}function E(R){return typeof H.globalScope!=="undefined"&&typeof H.globalScope.crypto==="object"&&typeof H.globalScope.crypto.subtle==="object"&&typeof H.globalScope.crypto.subtle[R]==="function"}function w(R){return typeof H.globalScope!=="undefined"&&typeof H.globalScope.msCrypto==="object"&&typeof H.globalScope.msCrypto.subtle==="object"&&typeof H.globalScope.msCrypto.subtle[R]==="function"}function A(R){var T=Z.util.hexToBytes(R.toString(16)),S=new Uint8Array(T.length);for(var v=0;v=0;I--)e=e>>8,e+=N1.at(I)+D1.at(I),D1.setAt(I,e&255);d1.putBuffer(D1)}t=d1,A.putBuffer(V1)}return A.truncate(A.length()-L),A},Y.pbe.getCipher=function(F,P,N){switch(F){case Y.oids.pkcs5PBES2:return Y.pbe.getCipherForPBES2(F,P,N);case Y.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case Y.oids["pbewithSHAAnd40BitRC2-CBC"]:return Y.pbe.getCipherForPKCS12PBE(F,P,N);default:var C=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw C.oid=F,C.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],C}},Y.pbe.getCipherForPBES2=function(F,P,N){var C={},L=[];if(!G.validate(P,z,C,L)){var V=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw V.errors=L,V}if(F=G.derToOid(C.kdfOid),F!==Y.oids.pkcs5PBKDF2){var V=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.");throw V.oid=F,V.supportedOids=["pkcs5PBKDF2"],V}if(F=G.derToOid(C.encOid),F!==Y.oids["aes128-CBC"]&&F!==Y.oids["aes192-CBC"]&&F!==Y.oids["aes256-CBC"]&&F!==Y.oids["des-EDE3-CBC"]&&F!==Y.oids.desCBC){var V=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.");throw V.oid=F,V.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],V}var M=C.kdfSalt,I=Z.util.createBuffer(C.kdfIterationCount);I=I.getInt(I.length()<<3);var E,w;switch(Y.oids[F]){case"aes128-CBC":E=16,w=Z.aes.createDecryptionCipher;break;case"aes192-CBC":E=24,w=Z.aes.createDecryptionCipher;break;case"aes256-CBC":E=32,w=Z.aes.createDecryptionCipher;break;case"des-EDE3-CBC":E=24,w=Z.des.createDecryptionCipher;break;case"desCBC":E=8,w=Z.des.createDecryptionCipher;break}var A=q(C.prfOid),R=Z.pkcs5.pbkdf2(N,M,I,E,A),T=C.encIv,S=w(R);return S.start(T),S},Y.pbe.getCipherForPKCS12PBE=function(F,P,N){var C={},L=[];if(!G.validate(P,W,C,L)){var V=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw V.errors=L,V}var M=Z.util.createBuffer(C.salt),I=Z.util.createBuffer(C.iterations);I=I.getInt(I.length()<<3);var E,w,A;switch(F){case Y.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:E=24,w=8,A=Z.des.startDecrypting;break;case Y.oids["pbewithSHAAnd40BitRC2-CBC"]:E=5,w=8,A=function(h,x){var p=Z.rc2.createDecryptionCipher(h,40);return p.start(x,null),p};break;default:var V=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");throw V.oid=F,V}var R=q(C.prfOid),T=Y.pbe.generatePkcs12Key(N,M,1,I,E,R);R.start();var S=Y.pbe.generatePkcs12Key(N,M,2,I,w,R);return A(T,S)},Y.pbe.opensslDeriveBytes=function(F,P,N,C){if(typeof C==="undefined"||C===null){if(!("md5"in Z.md))throw new Error('"md5" hash algorithm unavailable.');C=Z.md.md5.create()}if(P===null)P="";var L=[$(C,F+P)];for(var V=16,M=1;V>8*N-P&255;return R=String.fromCharCode(R.charCodeAt(0)&~T)+R.substr(1),R+M+String.fromCharCode(188)},q.verify=function(B,D,F){var P,N=F-1,C=Math.ceil(N/8);if(D=D.substr(-C),C>8*C-N&255;if((V.charCodeAt(0)&I)!==0)throw new Error("Bits beyond keysize not zero as expected.");var E=H.generate(M,L),w="";for(P=0;P2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(n.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(x.validity.notBefore=n[0],x.validity.notAfter=n[1],x.tbsCertificate=T.tbsCertificate,R){x.md=F({signatureOid:x.signatureOid,type:"certificate"});var t=J.toDer(x.tbsCertificate);x.md.update(t.getBytes())}var Y1=Z.md.sha1.create(),G1=J.toDer(T.certIssuer);if(Y1.update(G1.getBytes()),x.issuer.getField=function(N1){return B(x.issuer,N1)},x.issuer.addField=function(N1){C([N1]),x.issuer.attributes.push(N1)},x.issuer.attributes=G.RDNAttributesAsArray(T.certIssuer),T.certIssuerUniqueId)x.issuer.uniqueId=T.certIssuerUniqueId;x.issuer.hash=Y1.digest().toHex();var V1=Z.md.sha1.create(),C1=J.toDer(T.certSubject);if(V1.update(C1.getBytes()),x.subject.getField=function(N1){return B(x.subject,N1)},x.subject.addField=function(N1){C([N1]),x.subject.attributes.push(N1)},x.subject.attributes=G.RDNAttributesAsArray(T.certSubject),T.certSubjectUniqueId)x.subject.uniqueId=T.certSubjectUniqueId;if(x.subject.hash=V1.digest().toHex(),T.certExtensions)x.extensions=G.certificateExtensionsFromAsn1(T.certExtensions);else x.extensions=[];return x.publicKey=G.publicKeyFromAsn1(T.subjectPublicKeyInfo),x},G.certificateExtensionsFromAsn1=function(A){var R=[];for(var T=0;T1)S=T.value.charCodeAt(1),v=T.value.length>2?T.value.charCodeAt(2):0;R.digitalSignature=(S&128)===128,R.nonRepudiation=(S&64)===64,R.keyEncipherment=(S&32)===32,R.dataEncipherment=(S&16)===16,R.keyAgreement=(S&8)===8,R.keyCertSign=(S&4)===4,R.cRLSign=(S&2)===2,R.encipherOnly=(S&1)===1,R.decipherOnly=(v&128)===128}else if(R.name==="basicConstraints"){var T=J.fromDer(R.value);if(T.value.length>0&&T.value[0].type===J.Type.BOOLEAN)R.cA=T.value[0].value.charCodeAt(0)!==0;else R.cA=!1;var h=null;if(T.value.length>0&&T.value[0].type===J.Type.INTEGER)h=T.value[0].value;else if(T.value.length>1)h=T.value[1].value;if(h!==null)R.pathLenConstraint=J.derToInteger(h)}else if(R.name==="extKeyUsage"){var T=J.fromDer(R.value);for(var x=0;x1)S=T.value.charCodeAt(1);R.client=(S&128)===128,R.server=(S&64)===64,R.email=(S&32)===32,R.objsign=(S&16)===16,R.reserved=(S&8)===8,R.sslCA=(S&4)===4,R.emailCA=(S&2)===2,R.objCA=(S&1)===1}else if(R.name==="subjectAltName"||R.name==="issuerAltName"){R.altNames=[];var n,T=J.fromDer(R.value);for(var t=0;t128)throw new Error('Invalid "nsComment" content.');A.value=J.create(J.Class.UNIVERSAL,J.Type.IA5STRING,!1,A.comment)}else if(A.name==="subjectKeyIdentifier"&&R.cert){var G1=R.cert.generateSubjectKeyIdentifier();A.subjectKeyIdentifier=G1.toHex(),A.value=J.create(J.Class.UNIVERSAL,J.Type.OCTETSTRING,!1,G1.getBytes())}else if(A.name==="authorityKeyIdentifier"&&R.cert){A.value=J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,[]);var p=A.value.value;if(A.keyIdentifier){var V1=A.keyIdentifier===!0?R.cert.generateSubjectKeyIdentifier().getBytes():A.keyIdentifier;p.push(J.create(J.Class.CONTEXT_SPECIFIC,0,!1,V1))}if(A.authorityCertIssuer){var C1=[J.create(J.Class.CONTEXT_SPECIFIC,4,!0,[N(A.authorityCertIssuer===!0?R.cert.issuer:A.authorityCertIssuer)])];p.push(J.create(J.Class.CONTEXT_SPECIFIC,1,!0,C1))}if(A.serialNumber){var N1=Z.util.hexToBytes(A.serialNumber===!0?R.cert.serialNumber:A.serialNumber);p.push(J.create(J.Class.CONTEXT_SPECIFIC,2,!1,N1))}}else if(A.name==="cRLDistributionPoints"){A.value=J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,[]);var p=A.value.value,j1=J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,[]),d1=J.create(J.Class.CONTEXT_SPECIFIC,0,!0,[]),t;for(var Y1=0;Y1=I&&A0)S.value.push(G.certificateExtensionsToAsn1(A.extensions));return S},G.getCertificationRequestInfo=function(A){var R=J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,[J.create(J.Class.UNIVERSAL,J.Type.INTEGER,!1,J.integerToDer(A.version).getBytes()),N(A.subject),G.publicKeyToAsn1(A.publicKey),M(A)]);return R},G.distinguishedNameToAsn1=function(A){return N(A)},G.certificateToAsn1=function(A){var R=A.tbsCertificate||G.getTBSCertificate(A);return J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,[R,J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,[J.create(J.Class.UNIVERSAL,J.Type.OID,!1,J.oidToDer(A.signatureOid).getBytes()),V(A.signatureOid,A.signatureParameters)]),J.create(J.Class.UNIVERSAL,J.Type.BITSTRING,!1,String.fromCharCode(0)+A.signature)])},G.certificateExtensionsToAsn1=function(A){var R=J.create(J.Class.CONTEXT_SPECIFIC,3,!0,[]),T=J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,[]);R.value.push(T);for(var S=0;Sn.validity.notAfter)x={message:"Certificate is not valid yet or has expired.",error:G.certificateError.certificate_expired,notBefore:n.validity.notBefore,notAfter:n.validity.notAfter,now:v}}if(x===null){if(t=R[0]||A.getIssuer(n),t===null){if(n.isIssuer(n))Y1=!0,t=n}if(t){var G1=t;if(!Z.util.isArray(G1))G1=[G1];var V1=!1;while(!V1&&G1.length>0){t=G1.shift();try{V1=t.verify(n)}catch(O1){}}if(!V1)x={message:"Certificate signature is invalid.",error:G.certificateError.bad_certificate}}if(x===null&&(!t||Y1)&&!A.hasCertificate(n))x={message:"Certificate is not trusted.",error:G.certificateError.unknown_ca}}if(x===null&&t&&!n.isIssuer(t))x={message:"Certificate issuer is invalid.",error:G.certificateError.bad_certificate};if(x===null){var C1={keyUsage:!0,basicConstraints:!0};for(var N1=0;x===null&&N1d1.pathLenConstraint)x={message:"Certificate basicConstraints pathLenConstraint violated.",error:G.certificateError.bad_certificate}}}var P1=x===null?!0:x.error,Q1=T.verify?T.verify(P1,p,S):P1;if(Q1===!0)x=null;else{if(P1===!0)x={message:"The application rejected the certificate.",error:G.certificateError.bad_certificate};if(Q1||Q1===0){if(typeof Q1==="object"&&!Z.util.isArray(Q1)){if(Q1.message)x.message=Q1.message;if(Q1.error)x.error=Q1.error}else if(typeof Q1==="string")x.error=Q1}throw x}h=!1,++p}while(R.length>0);return!0}}}),vM=W1({"node_modules/node-forge/lib/pkcs12.js"(Q,X){var Z=y0();WQ(),kX(),TZ(),yM(),kM(),d9(),cq(),yX(),d0(),N$();var{asn1:J,pki:G}=Z,Y=X.exports=Z.pkcs12=Z.pkcs12||{},H={name:"ContentInfo",tagClass:J.Class.UNIVERSAL,type:J.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:J.Class.UNIVERSAL,type:J.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:J.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},K={name:"PFX",tagClass:J.Class.UNIVERSAL,type:J.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:J.Class.UNIVERSAL,type:J.Type.INTEGER,constructed:!1,capture:"version"},H,{name:"PFX.macData",tagClass:J.Class.UNIVERSAL,type:J.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:J.Class.UNIVERSAL,type:J.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:J.Class.UNIVERSAL,type:J.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:J.Class.UNIVERSAL,type:J.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:J.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:J.Class.UNIVERSAL,type:J.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:J.Class.UNIVERSAL,type:J.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:J.Class.UNIVERSAL,type:J.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},z={name:"SafeBag",tagClass:J.Class.UNIVERSAL,type:J.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:J.Class.UNIVERSAL,type:J.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:J.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:J.Class.UNIVERSAL,type:J.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},W={name:"Attribute",tagClass:J.Class.UNIVERSAL,type:J.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:J.Class.UNIVERSAL,type:J.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:J.Class.UNIVERSAL,type:J.Type.SET,constructed:!0,capture:"values"}]},$={name:"CertBag",tagClass:J.Class.UNIVERSAL,type:J.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:J.Class.UNIVERSAL,type:J.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:J.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:J.Class.UNIVERSAL,type:J.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function q(C,L,V,M){var I=[];for(var E=0;E=0)I.push(A)}return I}Y.pkcs12FromAsn1=function(C,L,V){if(typeof L==="string")V=L,L=!0;else if(L===void 0)L=!0;var M={},I=[];if(!J.validate(C,K,M,I)){var E=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.");throw E.errors=E,E}var w={version:M.version.charCodeAt(0),safeContents:[],getBags:function(t){var Y1={},G1;if("localKeyId"in t)G1=t.localKeyId;else if("localKeyIdHex"in t)G1=Z.util.hexToBytes(t.localKeyIdHex);if(G1===void 0&&!("friendlyName"in t)&&"bagType"in t)Y1[t.bagType]=q(w.safeContents,null,null,t.bagType);if(G1!==void 0)Y1.localKeyId=q(w.safeContents,"localKeyId",G1,t.bagType);if("friendlyName"in t)Y1.friendlyName=q(w.safeContents,"friendlyName",t.friendlyName,t.bagType);return Y1},getBagsByFriendlyName:function(t,Y1){return q(w.safeContents,"friendlyName",t,Y1)},getBagsByLocalKeyId:function(t,Y1){return q(w.safeContents,"localKeyId",t,Y1)}};if(M.version.charCodeAt(0)!==3){var E=new Error("PKCS#12 PFX of version other than 3 not supported.");throw E.version=M.version.charCodeAt(0),E}if(J.derToOid(M.contentType)!==G.oids.data){var E=new Error("Only PKCS#12 PFX in password integrity mode supported.");throw E.oid=J.derToOid(M.contentType),E}var A=M.content.value[0];if(A.tagClass!==J.Class.UNIVERSAL||A.type!==J.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(A=B(A),M.mac){var R=null,T=0,S=J.derToOid(M.macAlgorithm);switch(S){case G.oids.sha1:R=Z.md.sha1.create(),T=20;break;case G.oids.sha256:R=Z.md.sha256.create(),T=32;break;case G.oids.sha384:R=Z.md.sha384.create(),T=48;break;case G.oids.sha512:R=Z.md.sha512.create(),T=64;break;case G.oids.md5:R=Z.md.md5.create(),T=16;break}if(R===null)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+S);var v=new Z.util.ByteBuffer(M.macSalt),h="macIterations"in M?parseInt(Z.util.bytesToHex(M.macIterations),16):1,x=Y.generateKey(V,v,3,h,T,R),p=Z.hmac.create();p.start(R,x),p.update(A.value);var n=p.getMac();if(n.getBytes()!==M.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}return D(w,A.value,L,V),w};function B(C){if(C.composed||C.constructed){var L=Z.util.createBuffer();for(var V=0;V0)E=J.create(J.Class.UNIVERSAL,J.Type.SET,!0,R);var T=[],S=[];if(L!==null)if(Z.util.isArray(L))S=L;else S=[L];var v=[];for(var h=0;h0){var t=J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,v),Y1=J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,[J.create(J.Class.UNIVERSAL,J.Type.OID,!1,J.oidToDer(G.oids.data).getBytes()),J.create(J.Class.CONTEXT_SPECIFIC,0,!0,[J.create(J.Class.UNIVERSAL,J.Type.OCTETSTRING,!1,J.toDer(t).getBytes())])]);T.push(Y1)}var G1=null;if(C!==null){var V1=G.wrapRsaPrivateKey(G.privateKeyToAsn1(C));if(V===null)G1=J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,[J.create(J.Class.UNIVERSAL,J.Type.OID,!1,J.oidToDer(G.oids.keyBag).getBytes()),J.create(J.Class.CONTEXT_SPECIFIC,0,!0,[V1]),E]);else G1=J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,[J.create(J.Class.UNIVERSAL,J.Type.OID,!1,J.oidToDer(G.oids.pkcs8ShroudedKeyBag).getBytes()),J.create(J.Class.CONTEXT_SPECIFIC,0,!0,[G.encryptPrivateKeyInfo(V1,V,M)]),E]);var C1=J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,[G1]),N1=J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,[J.create(J.Class.UNIVERSAL,J.Type.OID,!1,J.oidToDer(G.oids.data).getBytes()),J.create(J.Class.CONTEXT_SPECIFIC,0,!0,[J.create(J.Class.UNIVERSAL,J.Type.OCTETSTRING,!1,J.toDer(C1).getBytes())])]);T.push(N1)}var j1=J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,T),d1;if(M.useMac){var A=Z.md.sha1.create(),D1=new Z.util.ByteBuffer(Z.random.getBytes(M.saltSize)),e=M.count,C=Y.generateKey(V,D1,3,e,20),P1=Z.hmac.create();P1.start(A,C),P1.update(J.toDer(j1).getBytes());var Q1=P1.getMac();d1=J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,[J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,[J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,[J.create(J.Class.UNIVERSAL,J.Type.OID,!1,J.oidToDer(G.oids.sha1).getBytes()),J.create(J.Class.UNIVERSAL,J.Type.NULL,!1,"")]),J.create(J.Class.UNIVERSAL,J.Type.OCTETSTRING,!1,Q1.getBytes())]),J.create(J.Class.UNIVERSAL,J.Type.OCTETSTRING,!1,D1.getBytes()),J.create(J.Class.UNIVERSAL,J.Type.INTEGER,!1,J.integerToDer(e).getBytes())])}return J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,[J.create(J.Class.UNIVERSAL,J.Type.INTEGER,!1,J.integerToDer(3).getBytes()),J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,[J.create(J.Class.UNIVERSAL,J.Type.OID,!1,J.oidToDer(G.oids.data).getBytes()),J.create(J.Class.CONTEXT_SPECIFIC,0,!0,[J.create(J.Class.UNIVERSAL,J.Type.OCTETSTRING,!1,J.toDer(j1).getBytes())])]),d1])},Y.generateKey=Z.pbe.generatePkcs12Key}}),gM=W1({"node_modules/node-forge/lib/pki.js"(Q,X){var Z=y0();WQ(),TZ(),kM(),Y7(),L$(),vM(),C$(),cq(),d0(),N$();var J=Z.asn1,G=X.exports=Z.pki=Z.pki||{};G.pemToDer=function(Y){var H=Z.pem.decode(Y)[0];if(H.procType&&H.procType.type==="ENCRYPTED")throw new Error("Could not convert PEM to DER; PEM is encrypted.");return Z.util.createBuffer(H.body)},G.privateKeyFromPem=function(Y){var H=Z.pem.decode(Y)[0];if(H.type!=="PRIVATE KEY"&&H.type!=="RSA PRIVATE KEY"){var K=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw K.headerType=H.type,K}if(H.procType&&H.procType.type==="ENCRYPTED")throw new Error("Could not convert private key from PEM; PEM is encrypted.");var z=J.fromDer(H.body);return G.privateKeyFromAsn1(z)},G.privateKeyToPem=function(Y,H){var K={type:"RSA PRIVATE KEY",body:J.toDer(G.privateKeyToAsn1(Y)).getBytes()};return Z.pem.encode(K,{maxline:H})},G.privateKeyInfoToPem=function(Y,H){var K={type:"PRIVATE KEY",body:J.toDer(Y).getBytes()};return Z.pem.encode(K,{maxline:H})}}}),hM=W1({"node_modules/node-forge/lib/tls.js"(Q,X){var Z=y0();WQ(),kX(),D$(),Y7(),gM(),d9(),yX(),d0();var J=function(k,d,f,j){var m=Z.util.createBuffer(),Z1=k.length>>1,_=Z1+(k.length&1),J1=k.substr(0,_),B1=k.substr(Z1,_),L1=Z.util.createBuffer(),H1=Z.hmac.create();f=d+f;var M1=Math.ceil(j/16),u1=Math.ceil(j/20);H1.start("MD5",J1);var s1=Z.util.createBuffer();L1.putBytes(f);for(var a1=0;a10)W.queue(k,W.createAlert(k,{level:W.Alert.Level.warning,description:W.Alert.Description.no_renegotiation})),W.flush(k);k.process()},W.parseHelloMessage=function(k,d,f){var j=null,m=k.entity===W.ConnectionEnd.client;if(f<38)k.error(k,{message:m?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.illegal_parameter}});else{var Z1=d.fragment,_=Z1.length();if(j={version:{major:Z1.getByte(),minor:Z1.getByte()},random:Z.util.createBuffer(Z1.getBytes(32)),session_id:K(Z1,1),extensions:[]},m)j.cipher_suite=Z1.getBytes(2),j.compression_method=Z1.getByte();else j.cipher_suites=K(Z1,2),j.compression_methods=K(Z1,1);if(_=f-(_-Z1.length()),_>0){var J1=K(Z1,2);while(J1.length()>0)j.extensions.push({type:[J1.getByte(),J1.getByte()],data:K(J1,2)});if(!m)for(var B1=0;B10){var M1=H1.getByte();if(M1!==0)break;k.session.extensions.server_name.serverNameList.push(K(H1,2).getBytes())}}}}if(k.session.version){if(j.version.major!==k.session.version.major||j.version.minor!==k.session.version.minor)return k.error(k,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.protocol_version}})}if(m)k.session.cipherSuite=W.getCipherSuite(j.cipher_suite);else{var u1=Z.util.createBuffer(j.cipher_suites.bytes());while(u1.length()>0)if(k.session.cipherSuite=W.getCipherSuite(u1.getBytes(2)),k.session.cipherSuite!==null)break}if(k.session.cipherSuite===null)return k.error(k,{message:"No cipher suites in common.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.handshake_failure},cipherSuite:Z.util.bytesToHex(j.cipher_suite)});if(m)k.session.compressionMethod=j.compression_method;else k.session.compressionMethod=W.CompressionMethod.none}return j},W.createSecurityParameters=function(k,d){var f=k.entity===W.ConnectionEnd.client,j=d.random.bytes(),m=f?k.session.sp.client_random:j,Z1=f?j:W.createRandom().getBytes();k.session.sp={entity:k.entity,prf_algorithm:W.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:k.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:m,server_random:Z1}},W.handleServerHello=function(k,d,f){var j=W.parseHelloMessage(k,d,f);if(k.fail)return;if(j.version.minor<=k.version.minor)k.version.minor=j.version.minor;else return k.error(k,{message:"Incompatible TLS version.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.protocol_version}});k.session.version=k.version;var m=j.session_id.bytes();if(m.length>0&&m===k.session.id)k.expect=P,k.session.resuming=!0,k.session.sp.server_random=j.random.bytes();else k.expect=q,k.session.resuming=!1,W.createSecurityParameters(k,j);k.session.id=m,k.process()},W.handleClientHello=function(k,d,f){var j=W.parseHelloMessage(k,d,f);if(k.fail)return;var m=j.session_id.bytes(),Z1=null;if(k.sessionCache){if(Z1=k.sessionCache.getSession(m),Z1===null)m="";else if(Z1.version.major!==j.version.major||Z1.version.minor>j.version.minor)Z1=null,m=""}if(m.length===0)m=Z.random.getBytes(32);if(k.session.id=m,k.session.clientHelloVersion=j.version,k.session.sp={},Z1)k.version=k.session.version=Z1.version,k.session.sp=Z1.sp;else{var _;for(var J1=1;J10)Z1=K(m.certificate_list,3),_=Z.asn1.fromDer(Z1),Z1=Z.pki.certificateFromAsn1(_,!0),J1.push(Z1)}catch(L1){return k.error(k,{message:"Could not parse certificate list.",cause:L1,send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.bad_certificate}})}var B1=k.entity===W.ConnectionEnd.client;if((B1||k.verifyClient===!0)&&J1.length===0)k.error(k,{message:B1?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.illegal_parameter}});else if(J1.length===0)k.expect=B1?B:I;else{if(B1)k.session.serverCertificate=J1[0];else k.session.clientCertificate=J1[0];if(W.verifyCertificateChain(k,J1))k.expect=B1?B:I}k.process()},W.handleServerKeyExchange=function(k,d,f){if(f>0)return k.error(k,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.unsupported_certificate}});k.expect=D,k.process()},W.handleClientKeyExchange=function(k,d,f){if(f<48)return k.error(k,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.unsupported_certificate}});var j=d.fragment,m={enc_pre_master_secret:K(j,2).getBytes()},Z1=null;if(k.getPrivateKey)try{Z1=k.getPrivateKey(k,k.session.serverCertificate),Z1=Z.pki.privateKeyFromPem(Z1)}catch(B1){k.error(k,{message:"Could not get private key.",cause:B1,send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.internal_error}})}if(Z1===null)return k.error(k,{message:"No private key set.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.internal_error}});try{var _=k.session.sp;_.pre_master_secret=Z1.decrypt(m.enc_pre_master_secret);var J1=k.session.clientHelloVersion;if(J1.major!==_.pre_master_secret.charCodeAt(0)||J1.minor!==_.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch(B1){_.pre_master_secret=Z.random.getBytes(48)}if(k.expect=w,k.session.clientCertificate!==null)k.expect=E;k.process()},W.handleCertificateRequest=function(k,d,f){if(f<3)return k.error(k,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.illegal_parameter}});var j=d.fragment,m={certificate_types:K(j,1),certificate_authorities:K(j,2)};k.session.certificateRequest=m,k.expect=F,k.process()},W.handleCertificateVerify=function(k,d,f){if(f<2)return k.error(k,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.illegal_parameter}});var j=d.fragment;j.read-=4;var m=j.bytes();j.read+=4;var Z1={signature:K(j,2).getBytes()},_=Z.util.createBuffer();_.putBuffer(k.session.md5.digest()),_.putBuffer(k.session.sha1.digest()),_=_.getBytes();try{var J1=k.session.clientCertificate;if(!J1.publicKey.verify(_,Z1.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");k.session.md5.update(m),k.session.sha1.update(m)}catch(B1){return k.error(k,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.handshake_failure}})}k.expect=w,k.process()},W.handleServerHelloDone=function(k,d,f){if(f>0)return k.error(k,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.record_overflow}});if(k.serverCertificate===null){var j={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.insufficient_security}},m=0,Z1=k.verify(k,j.alert.description,m,[]);if(Z1!==!0){if(Z1||Z1===0){if(typeof Z1==="object"&&!Z.util.isArray(Z1)){if(Z1.message)j.message=Z1.message;if(Z1.alert)j.alert.description=Z1.alert}else if(typeof Z1==="number")j.alert.description=Z1}return k.error(k,j)}}if(k.session.certificateRequest!==null)d=W.createRecord(k,{type:W.ContentType.handshake,data:W.createCertificate(k)}),W.queue(k,d);d=W.createRecord(k,{type:W.ContentType.handshake,data:W.createClientKeyExchange(k)}),W.queue(k,d),k.expect=L;var _=function(J1,B1){if(J1.session.certificateRequest!==null&&J1.session.clientCertificate!==null)W.queue(J1,W.createRecord(J1,{type:W.ContentType.handshake,data:W.createCertificateVerify(J1,B1)}));W.queue(J1,W.createRecord(J1,{type:W.ContentType.change_cipher_spec,data:W.createChangeCipherSpec()})),J1.state.pending=W.createConnectionState(J1),J1.state.current.write=J1.state.pending.write,W.queue(J1,W.createRecord(J1,{type:W.ContentType.handshake,data:W.createFinished(J1)})),J1.expect=P,W.flush(J1),J1.process()};if(k.session.certificateRequest===null||k.session.clientCertificate===null)return _(k,null);W.getClientSignature(k,_)},W.handleChangeCipherSpec=function(k,d){if(d.fragment.getByte()!==1)return k.error(k,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.illegal_parameter}});var f=k.entity===W.ConnectionEnd.client;if(k.session.resuming&&f||!k.session.resuming&&!f)k.state.pending=W.createConnectionState(k);if(k.state.current.read=k.state.pending.read,!k.session.resuming&&f||k.session.resuming&&!f)k.state.pending=null;k.expect=f?N:A,k.process()},W.handleFinished=function(k,d,f){var j=d.fragment;j.read-=4;var m=j.bytes();j.read+=4;var Z1=d.fragment.getBytes();j=Z.util.createBuffer(),j.putBuffer(k.session.md5.digest()),j.putBuffer(k.session.sha1.digest());var _=k.entity===W.ConnectionEnd.client,J1=_?"server finished":"client finished",B1=k.session.sp,L1=12,H1=J;if(j=H1(B1.master_secret,J1,j.getBytes(),L1),j.getBytes()!==Z1)return k.error(k,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.decrypt_error}});if(k.session.md5.update(m),k.session.sha1.update(m),k.session.resuming&&_||!k.session.resuming&&!_)W.queue(k,W.createRecord(k,{type:W.ContentType.change_cipher_spec,data:W.createChangeCipherSpec()})),k.state.current.write=k.state.pending.write,k.state.pending=null,W.queue(k,W.createRecord(k,{type:W.ContentType.handshake,data:W.createFinished(k)}));k.expect=_?C:R,k.handshaking=!1,++k.handshakes,k.peerCertificate=_?k.session.serverCertificate:k.session.clientCertificate,W.flush(k),k.isConnected=!0,k.connected(k),k.process()},W.handleAlert=function(k,d){var f=d.fragment,j={level:f.getByte(),description:f.getByte()},m;switch(j.description){case W.Alert.Description.close_notify:m="Connection closed.";break;case W.Alert.Description.unexpected_message:m="Unexpected message.";break;case W.Alert.Description.bad_record_mac:m="Bad record MAC.";break;case W.Alert.Description.decryption_failed:m="Decryption failed.";break;case W.Alert.Description.record_overflow:m="Record overflow.";break;case W.Alert.Description.decompression_failure:m="Decompression failed.";break;case W.Alert.Description.handshake_failure:m="Handshake failure.";break;case W.Alert.Description.bad_certificate:m="Bad certificate.";break;case W.Alert.Description.unsupported_certificate:m="Unsupported certificate.";break;case W.Alert.Description.certificate_revoked:m="Certificate revoked.";break;case W.Alert.Description.certificate_expired:m="Certificate expired.";break;case W.Alert.Description.certificate_unknown:m="Certificate unknown.";break;case W.Alert.Description.illegal_parameter:m="Illegal parameter.";break;case W.Alert.Description.unknown_ca:m="Unknown certificate authority.";break;case W.Alert.Description.access_denied:m="Access denied.";break;case W.Alert.Description.decode_error:m="Decode error.";break;case W.Alert.Description.decrypt_error:m="Decrypt error.";break;case W.Alert.Description.export_restriction:m="Export restriction.";break;case W.Alert.Description.protocol_version:m="Unsupported protocol version.";break;case W.Alert.Description.insufficient_security:m="Insufficient security.";break;case W.Alert.Description.internal_error:m="Internal error.";break;case W.Alert.Description.user_canceled:m="User canceled.";break;case W.Alert.Description.no_renegotiation:m="Renegotiation not supported.";break;default:m="Unknown error.";break}if(j.description===W.Alert.Description.close_notify)return k.close();k.error(k,{message:m,send:!1,origin:k.entity===W.ConnectionEnd.client?"server":"client",alert:j}),k.process()},W.handleHandshake=function(k,d){var f=d.fragment,j=f.getByte(),m=f.getInt24();if(m>f.length())return k.fragmented=d,d.fragment=Z.util.createBuffer(),f.read-=4,k.process();k.fragmented=null,f.read-=4;var Z1=f.bytes(m+4);if(f.read+=4,j in d1[k.entity][k.expect]){if(k.entity===W.ConnectionEnd.server&&!k.open&&!k.fail)k.handshaking=!0,k.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:Z.md.md5.create(),sha1:Z.md.sha1.create()};if(j!==W.HandshakeType.hello_request&&j!==W.HandshakeType.certificate_verify&&j!==W.HandshakeType.finished)k.session.md5.update(Z1),k.session.sha1.update(Z1);d1[k.entity][k.expect][j](k,d,m)}else W.handleUnexpected(k,d)},W.handleApplicationData=function(k,d){k.data.putBuffer(d.fragment),k.dataReady(k),k.process()},W.handleHeartbeat=function(k,d){var f=d.fragment,j=f.getByte(),m=f.getInt16(),Z1=f.getBytes(m);if(j===W.HeartbeatMessageType.heartbeat_request){if(k.handshaking||m>Z1.length)return k.process();W.queue(k,W.createRecord(k,{type:W.ContentType.heartbeat,data:W.createHeartbeat(W.HeartbeatMessageType.heartbeat_response,Z1)})),W.flush(k)}else if(j===W.HeartbeatMessageType.heartbeat_response){if(Z1!==k.expectedHeartbeatPayload)return k.process();if(k.heartbeatReceived)k.heartbeatReceived(k,Z.util.createBuffer(Z1))}k.process()};var $=0,q=1,B=2,D=3,F=4,P=5,N=6,C=7,L=8,V=0,M=1,I=2,E=3,w=4,A=5,R=6,T=W.handleUnexpected,S=W.handleChangeCipherSpec,v=W.handleAlert,h=W.handleHandshake,x=W.handleApplicationData,p=W.handleHeartbeat,n=[];n[W.ConnectionEnd.client]=[[T,v,h,T,p],[T,v,h,T,p],[T,v,h,T,p],[T,v,h,T,p],[T,v,h,T,p],[S,v,T,T,p],[T,v,h,T,p],[T,v,h,x,p],[T,v,h,T,p]],n[W.ConnectionEnd.server]=[[T,v,h,T,p],[T,v,h,T,p],[T,v,h,T,p],[T,v,h,T,p],[S,v,T,T,p],[T,v,h,T,p],[T,v,h,x,p],[T,v,h,T,p]];var{handleHelloRequest:t,handleServerHello:Y1,handleCertificate:G1,handleServerKeyExchange:V1,handleCertificateRequest:C1,handleServerHelloDone:N1,handleFinished:j1}=W,d1=[];d1[W.ConnectionEnd.client]=[[T,T,Y1,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T],[t,T,T,T,T,T,T,T,T,T,T,G1,V1,C1,N1,T,T,T,T,T,T],[t,T,T,T,T,T,T,T,T,T,T,T,V1,C1,N1,T,T,T,T,T,T],[t,T,T,T,T,T,T,T,T,T,T,T,T,C1,N1,T,T,T,T,T,T],[t,T,T,T,T,T,T,T,T,T,T,T,T,T,N1,T,T,T,T,T,T],[t,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T],[t,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,j1],[t,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T],[t,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T]];var{handleClientHello:D1,handleClientKeyExchange:e,handleCertificateVerify:P1}=W;d1[W.ConnectionEnd.server]=[[T,D1,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T],[T,T,T,T,T,T,T,T,T,T,T,G1,T,T,T,T,T,T,T,T,T],[T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,e,T,T,T,T],[T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,P1,T,T,T,T,T],[T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T],[T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,j1],[T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T],[T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T]],W.generateKeys=function(k,d){var f=J,j=d.client_random+d.server_random;if(!k.session.resuming)d.master_secret=f(d.pre_master_secret,"master secret",j,48).bytes(),d.pre_master_secret=null;j=d.server_random+d.client_random;var m=2*d.mac_key_length+2*d.enc_key_length,Z1=k.version.major===W.Versions.TLS_1_0.major&&k.version.minor===W.Versions.TLS_1_0.minor;if(Z1)m+=2*d.fixed_iv_length;var _=f(d.master_secret,"key expansion",j,m),J1={client_write_MAC_key:_.getBytes(d.mac_key_length),server_write_MAC_key:_.getBytes(d.mac_key_length),client_write_key:_.getBytes(d.enc_key_length),server_write_key:_.getBytes(d.enc_key_length)};if(Z1)J1.client_write_IV=_.getBytes(d.fixed_iv_length),J1.server_write_IV=_.getBytes(d.fixed_iv_length);return J1},W.createConnectionState=function(k){var d=k.entity===W.ConnectionEnd.client,f=function(){var Z1={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(_){return!0},compressionState:null,compressFunction:function(_){return!0},updateSequenceNumber:function(){if(Z1.sequenceNumber[1]===4294967295)Z1.sequenceNumber[1]=0,++Z1.sequenceNumber[0];else++Z1.sequenceNumber[1]}};return Z1},j={read:f(),write:f()};if(j.read.update=function(Z1,_){if(!j.read.cipherFunction(_,j.read))Z1.error(Z1,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.bad_record_mac}});else if(!j.read.compressFunction(Z1,_,j.read))Z1.error(Z1,{message:"Could not decompress record.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.decompression_failure}});return!Z1.fail},j.write.update=function(Z1,_){if(!j.write.compressFunction(Z1,_,j.write))Z1.error(Z1,{message:"Could not compress record.",send:!1,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.internal_error}});else if(!j.write.cipherFunction(_,j.write))Z1.error(Z1,{message:"Could not encrypt record.",send:!1,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.internal_error}});return!Z1.fail},k.session){var m=k.session.sp;switch(k.session.cipherSuite.initSecurityParameters(m),m.keys=W.generateKeys(k,m),j.read.macKey=d?m.keys.server_write_MAC_key:m.keys.client_write_MAC_key,j.write.macKey=d?m.keys.client_write_MAC_key:m.keys.server_write_MAC_key,k.session.cipherSuite.initConnectionState(j,k,m),m.compression_algorithm){case W.CompressionMethod.none:break;case W.CompressionMethod.deflate:j.read.compressFunction=H,j.write.compressFunction=Y;break;default:throw new Error("Unsupported compression algorithm.")}}return j},W.createRandom=function(){var k=new Date,d=+k+k.getTimezoneOffset()*60000,f=Z.util.createBuffer();return f.putInt32(d),f.putBytes(Z.random.getBytes(28)),f},W.createRecord=function(k,d){if(!d.data)return null;var f={type:d.type,version:{major:k.version.major,minor:k.version.minor},length:d.data.length(),fragment:d.data};return f},W.createAlert=function(k,d){var f=Z.util.createBuffer();return f.putByte(d.level),f.putByte(d.description),W.createRecord(k,{type:W.ContentType.alert,data:f})},W.createClientHello=function(k){k.session.clientHelloVersion={major:k.version.major,minor:k.version.minor};var d=Z.util.createBuffer();for(var f=0;f0)M1+=2;var u1=k.session.id,s1=u1.length+1+2+4+28+2+m+1+_+M1,a1=Z.util.createBuffer();if(a1.putByte(W.HandshakeType.client_hello),a1.putInt24(s1),a1.putByte(k.version.major),a1.putByte(k.version.minor),a1.putBytes(k.session.sp.client_random),z(a1,1,Z.util.createBuffer(u1)),z(a1,2,d),z(a1,1,Z1),M1>0)z(a1,2,J1);return a1},W.createServerHello=function(k){var d=k.session.id,f=d.length+1+2+4+28+2+1,j=Z.util.createBuffer();return j.putByte(W.HandshakeType.server_hello),j.putInt24(f),j.putByte(k.version.major),j.putByte(k.version.minor),j.putBytes(k.session.sp.server_random),z(j,1,Z.util.createBuffer(d)),j.putByte(k.session.cipherSuite.id[0]),j.putByte(k.session.cipherSuite.id[1]),j.putByte(k.session.compressionMethod),j},W.createCertificate=function(k){var d=k.entity===W.ConnectionEnd.client,f=null;if(k.getCertificate){var j;if(d)j=k.session.certificateRequest;else j=k.session.extensions.server_name.serverNameList;f=k.getCertificate(k,j)}var m=Z.util.createBuffer();if(f!==null)try{if(!Z.util.isArray(f))f=[f];var Z1=null;for(var _=0;_0)f.putByte(W.HandshakeType.server_key_exchange),f.putInt24(d);return f},W.getClientSignature=function(k,d){var f=Z.util.createBuffer();f.putBuffer(k.session.md5.digest()),f.putBuffer(k.session.sha1.digest()),f=f.getBytes(),k.getSignature=k.getSignature||function(j,m,Z1){var _=null;if(j.getPrivateKey)try{_=j.getPrivateKey(j,j.session.clientCertificate),_=Z.pki.privateKeyFromPem(_)}catch(J1){j.error(j,{message:"Could not get private key.",cause:J1,send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.internal_error}})}if(_===null)j.error(j,{message:"No private key set.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.internal_error}});else m=_.sign(m,null);Z1(j,m)},k.getSignature(k,f,d)},W.createCertificateVerify=function(k,d){var f=d.length+2,j=Z.util.createBuffer();return j.putByte(W.HandshakeType.certificate_verify),j.putInt24(f),j.putInt16(d.length),j.putBytes(d),j},W.createCertificateRequest=function(k){var d=Z.util.createBuffer();d.putByte(1);var f=Z.util.createBuffer();for(var j in k.caStore.certs){var m=k.caStore.certs[j],Z1=Z.pki.distinguishedNameToAsn1(m.subject),_=Z.asn1.toDer(Z1);f.putInt16(_.length()),f.putBuffer(_)}var J1=1+d.length()+2+f.length(),B1=Z.util.createBuffer();return B1.putByte(W.HandshakeType.certificate_request),B1.putInt24(J1),z(B1,1,d),z(B1,2,f),B1},W.createServerHelloDone=function(k){var d=Z.util.createBuffer();return d.putByte(W.HandshakeType.server_hello_done),d.putInt24(0),d},W.createChangeCipherSpec=function(){var k=Z.util.createBuffer();return k.putByte(1),k},W.createFinished=function(k){var d=Z.util.createBuffer();d.putBuffer(k.session.md5.digest()),d.putBuffer(k.session.sha1.digest());var f=k.entity===W.ConnectionEnd.client,j=k.session.sp,m=12,Z1=J,_=f?"client finished":"server finished";d=Z1(j.master_secret,_,d.getBytes(),m);var J1=Z.util.createBuffer();return J1.putByte(W.HandshakeType.finished),J1.putInt24(d.length()),J1.putBuffer(d),J1},W.createHeartbeat=function(k,d,f){if(typeof f==="undefined")f=d.length;var j=Z.util.createBuffer();j.putByte(k),j.putInt16(f),j.putBytes(d);var m=j.length(),Z1=Math.max(16,m-f-3);return j.putBytes(Z.random.getBytes(Z1)),j},W.queue=function(k,d){if(!d)return;if(d.fragment.length()===0){if(d.type===W.ContentType.handshake||d.type===W.ContentType.alert||d.type===W.ContentType.change_cipher_spec)return}if(d.type===W.ContentType.handshake){var f=d.fragment.bytes();k.session.md5.update(f),k.session.sha1.update(f),f=null}var j;if(d.fragment.length()<=W.MaxFragment)j=[d];else{j=[];var m=d.fragment.bytes();while(m.length>W.MaxFragment)j.push(W.createRecord(k,{type:d.type,data:Z.util.createBuffer(m.slice(0,W.MaxFragment))})),m=m.slice(W.MaxFragment);if(m.length>0)j.push(W.createRecord(k,{type:d.type,data:Z.util.createBuffer(m)}))}for(var Z1=0;Z10)_=f.order[0];if(_!==null&&_ in f.cache){Z1=f.cache[_],delete f.cache[_];for(var J1 in f.order)if(f.order[J1]===_){f.order.splice(J1,1);break}}return Z1},f.setSession=function(m,Z1){if(f.order.length===f.capacity){var _=f.order.shift();delete f.cache[_]}var _=Z.util.bytesToHex(m);f.order.push(_),f.cache[_]=Z1}}return f},W.createConnection=function(k){var d=null;if(k.caStore)if(Z.util.isArray(k.caStore))d=Z.pki.createCaStore(k.caStore);else d=k.caStore;else d=Z.pki.createCaStore();var f=k.cipherSuites||null;if(f===null){f=[];for(var j in W.CipherSuites)f.push(W.CipherSuites[j])}var m=k.server?W.ConnectionEnd.server:W.ConnectionEnd.client,Z1=k.sessionCache?W.createSessionCache(k.sessionCache):null,_={version:{major:W.Version.major,minor:W.Version.minor},entity:m,sessionId:k.sessionId,caStore:d,sessionCache:Z1,cipherSuites:f,connected:k.connected,virtualHost:k.virtualHost||null,verifyClient:k.verifyClient||!1,verify:k.verify||function(H1,M1,u1,s1){return M1},verifyOptions:k.verifyOptions||{},getCertificate:k.getCertificate||null,getPrivateKey:k.getPrivateKey||null,getSignature:k.getSignature||null,input:Z.util.createBuffer(),tlsData:Z.util.createBuffer(),data:Z.util.createBuffer(),tlsDataReady:k.tlsDataReady,dataReady:k.dataReady,heartbeatReceived:k.heartbeatReceived,closed:k.closed,error:function(H1,M1){if(M1.origin=M1.origin||(H1.entity===W.ConnectionEnd.client?"client":"server"),M1.send)W.queue(H1,W.createAlert(H1,M1.alert)),W.flush(H1);var u1=M1.fatal!==!1;if(u1)H1.fail=!0;if(k.error(H1,M1),u1)H1.close(!1)},deflate:k.deflate||null,inflate:k.inflate||null};_.reset=function(H1){_.version={major:W.Version.major,minor:W.Version.minor},_.record=null,_.session=null,_.peerCertificate=null,_.state={pending:null,current:null},_.expect=_.entity===W.ConnectionEnd.client?$:V,_.fragmented=null,_.records=[],_.open=!1,_.handshakes=0,_.handshaking=!1,_.isConnected=!1,_.fail=!(H1||typeof H1==="undefined"),_.input.clear(),_.tlsData.clear(),_.data.clear(),_.state.current=W.createConnectionState(_)},_.reset();var J1=function(H1,M1){var u1=M1.type-W.ContentType.change_cipher_spec,s1=n[H1.entity][H1.expect];if(u1 in s1)s1[u1](H1,M1);else W.handleUnexpected(H1,M1)},B1=function(H1){var M1=0,u1=H1.input,s1=u1.length();if(s1<5)M1=5-s1;else{H1.record={type:u1.getByte(),version:{major:u1.getByte(),minor:u1.getByte()},length:u1.getInt16(),fragment:Z.util.createBuffer(),ready:!1};var a1=H1.record.version.major===H1.version.major;if(a1&&H1.session&&H1.session.version)a1=H1.record.version.minor===H1.version.minor;if(!a1)H1.error(H1,{message:"Incompatible TLS version.",send:!0,alert:{level:W.Alert.Level.fatal,description:W.Alert.Description.protocol_version}})}return M1},L1=function(H1){var M1=0,u1=H1.input,s1=u1.length();if(s10){if(_.sessionCache)M1=_.sessionCache.getSession(H1);if(M1===null)H1=""}if(H1.length===0&&_.sessionCache){if(M1=_.sessionCache.getSession(),M1!==null)H1=M1.id}if(_.session={id:H1,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:Z.md.md5.create(),sha1:Z.md.sha1.create()},M1)_.version=M1.version,_.session.sp=M1.sp;_.session.sp.client_random=W.createRandom().getBytes(),_.open=!0,W.queue(_,W.createRecord(_,{type:W.ContentType.handshake,data:W.createClientHello(_)})),W.flush(_)}},_.process=function(H1){var M1=0;if(H1)_.input.putBytes(H1);if(!_.fail){if(_.record!==null&&_.record.ready&&_.record.fragment.isEmpty())_.record=null;if(_.record===null)M1=B1(_);if(!_.fail&&_.record!==null&&!_.record.ready)M1=L1(_);if(!_.fail&&_.record!==null&&_.record.ready)J1(_,_.record)}return M1},_.prepare=function(H1){return W.queue(_,W.createRecord(_,{type:W.ContentType.application_data,data:Z.util.createBuffer(H1)})),W.flush(_)},_.prepareHeartbeatRequest=function(H1,M1){if(H1 instanceof Z.util.ByteBuffer)H1=H1.bytes();if(typeof M1==="undefined")M1=H1.length;return _.expectedHeartbeatPayload=H1,W.queue(_,W.createRecord(_,{type:W.ContentType.heartbeat,data:W.createHeartbeat(W.HeartbeatMessageType.heartbeat_request,H1,M1)})),W.flush(_)},_.close=function(H1){if(!_.fail&&_.sessionCache&&_.session){var M1={id:_.session.id,version:_.session.version,sp:_.session.sp};M1.sp.keys=null,_.sessionCache.setSession(M1.id,M1)}if(_.open){if(_.open=!1,_.input.clear(),_.isConnected||_.handshaking)_.isConnected=_.handshaking=!1,W.queue(_,W.createAlert(_,{level:W.Alert.Level.warning,description:W.Alert.Description.close_notify})),W.flush(_);_.closed(_)}_.reset(H1)},_},X.exports=Z.tls=Z.tls||{};for(S1 in W)if(typeof W[S1]!=="function")Z.tls[S1]=W[S1];var S1;Z.tls.prf_tls1=J,Z.tls.hmac_sha1=G,Z.tls.createSessionCache=W.createSessionCache,Z.tls.createConnection=W.createConnection}}),wo=W1({"node_modules/node-forge/lib/aesCipherSuites.js"(Q,X){var Z=y0();NZ(),hM();var J=X.exports=Z.tls;J.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function($){$.bulk_cipher_algorithm=J.BulkCipherAlgorithm.aes,$.cipher_type=J.CipherType.block,$.enc_key_length=16,$.block_length=16,$.fixed_iv_length=16,$.record_iv_length=16,$.mac_algorithm=J.MACAlgorithm.hmac_sha1,$.mac_length=20,$.mac_key_length=20},initConnectionState:G},J.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function($){$.bulk_cipher_algorithm=J.BulkCipherAlgorithm.aes,$.cipher_type=J.CipherType.block,$.enc_key_length=32,$.block_length=16,$.fixed_iv_length=16,$.record_iv_length=16,$.mac_algorithm=J.MACAlgorithm.hmac_sha1,$.mac_length=20,$.mac_key_length=20},initConnectionState:G};function G($,q,B){var D=q.entity===Z.tls.ConnectionEnd.client;$.read.cipherState={init:!1,cipher:Z.cipher.createDecipher("AES-CBC",D?B.keys.server_write_key:B.keys.client_write_key),iv:D?B.keys.server_write_IV:B.keys.client_write_IV},$.write.cipherState={init:!1,cipher:Z.cipher.createCipher("AES-CBC",D?B.keys.client_write_key:B.keys.server_write_key),iv:D?B.keys.client_write_IV:B.keys.server_write_IV},$.read.cipherFunction=z,$.write.cipherFunction=Y,$.read.macLength=$.write.macLength=B.mac_length,$.read.macFunction=$.write.macFunction=J.hmac_sha1}function Y($,q){var B=!1,D=q.macFunction(q.macKey,q.sequenceNumber,$);$.fragment.putBytes(D),q.updateSequenceNumber();var F;if($.version.minor===J.Versions.TLS_1_0.minor)F=q.cipherState.init?null:q.cipherState.iv;else F=Z.random.getBytesSync(16);q.cipherState.init=!0;var P=q.cipherState.cipher;if(P.start({iv:F}),$.version.minor>=J.Versions.TLS_1_1.minor)P.output.putBytes(F);if(P.update($.fragment),P.finish(H))$.fragment=P.output,$.length=$.fragment.length(),B=!0;return B}function H($,q,B){if(!B){var D=$-q.length()%$;q.fillWithByte(D-1,D)}return!0}function K($,q,B){var D=!0;if(B){var F=q.length(),P=q.last();for(var N=F-1-P;N=P)$.fragment=F.output.getBytes(C-P),N=F.output.getBytes(P);else $.fragment=F.output.getBytes();$.fragment=Z.util.createBuffer($.fragment),$.length=$.fragment.length();var L=q.macFunction(q.macKey,q.sequenceNumber,$);return q.updateSequenceNumber(),B=W(q.macKey,N,L)&&B,B}function W($,q,B){var D=Z.hmac.create();return D.start("SHA1",$),D.update(q),q=D.digest().getBytes(),D.start(null,null),D.update(B),B=D.digest().getBytes(),q===B}}}),fM=W1({"node_modules/node-forge/lib/sha512.js"(Q,X){var Z=y0();xQ(),d0();var J=X.exports=Z.sha512=Z.sha512||{};Z.md.sha512=Z.md.algorithms.sha512=J;var G=Z.sha384=Z.sha512.sha384=Z.sha512.sha384||{};G.create=function(){return J.create("SHA-384")},Z.md.sha384=Z.md.algorithms.sha384=G,Z.sha512.sha256=Z.sha512.sha256||{create:function(){return J.create("SHA-512/256")}},Z.md["sha512/256"]=Z.md.algorithms["sha512/256"]=Z.sha512.sha256,Z.sha512.sha224=Z.sha512.sha224||{create:function(){return J.create("SHA-512/224")}},Z.md["sha512/224"]=Z.md.algorithms["sha512/224"]=Z.sha512.sha224,J.create=function(q){if(!H)W();if(typeof q==="undefined")q="SHA-512";if(!(q in z))throw new Error("Invalid SHA-512 algorithm: "+q);var B=z[q],D=null,F=Z.util.createBuffer(),P=new Array(80);for(var N=0;N<80;++N)P[N]=new Array(2);var C=64;switch(q){case"SHA-384":C=48;break;case"SHA-512/256":C=32;break;case"SHA-512/224":C=28;break}var L={algorithm:q.replace("-","").toLowerCase(),blockLength:128,digestLength:C,messageLength:0,fullMessageLength:null,messageLengthSize:16};return L.start=function(){L.messageLength=0,L.fullMessageLength=L.messageLength128=[];var V=L.messageLengthSize/4;for(var M=0;M>>0,I>>>0];for(var E=L.fullMessageLength.length-1;E>=0;--E)L.fullMessageLength[E]+=I[1],I[1]=I[0]+(L.fullMessageLength[E]/4294967296>>>0),L.fullMessageLength[E]=L.fullMessageLength[E]>>>0,I[0]=I[1]/4294967296>>>0;if(F.putBytes(V),$(D,P,F),F.read>2048||F.length()===0)F.compact();return L},L.digest=function(){var V=Z.util.createBuffer();V.putBytes(F.bytes());var M=L.fullMessageLength[L.fullMessageLength.length-1]+L.messageLengthSize,I=M&L.blockLength-1;V.putBytes(Y.substr(0,L.blockLength-I));var E,w,A=L.fullMessageLength[0]*8;for(var R=0;R>>0,A+=w,V.putInt32(A>>>0),A=E>>>0;V.putInt32(A);var T=new Array(D.length);for(var R=0;R=128){for(e=0;e<16;++e)B[e][0]=D.getInt32()>>>0,B[e][1]=D.getInt32()>>>0;for(;e<80;++e)O1=B[e-2],P1=O1[0],Q1=O1[1],F=((P1>>>19|Q1<<13)^(Q1>>>29|P1<<3)^P1>>>6)>>>0,P=((P1<<13|Q1>>>19)^(Q1<<3|P1>>>29)^(P1<<26|Q1>>>6))>>>0,k=B[e-15],P1=k[0],Q1=k[1],N=((P1>>>1|Q1<<31)^(P1>>>8|Q1<<24)^P1>>>7)>>>0,C=((P1<<31|Q1>>>1)^(P1<<24|Q1>>>8)^(P1<<25|Q1>>>7))>>>0,S1=B[e-7],d=B[e-16],Q1=P+S1[1]+C+d[1],B[e][0]=F+S1[0]+N+d[0]+(Q1/4294967296>>>0)>>>0,B[e][1]=Q1>>>0;T=q[0][0],S=q[0][1],v=q[1][0],h=q[1][1],x=q[2][0],p=q[2][1],n=q[3][0],t=q[3][1],Y1=q[4][0],G1=q[4][1],V1=q[5][0],C1=q[5][1],N1=q[6][0],j1=q[6][1],d1=q[7][0],D1=q[7][1];for(e=0;e<80;++e)M=((Y1>>>14|G1<<18)^(Y1>>>18|G1<<14)^(G1>>>9|Y1<<23))>>>0,I=((Y1<<18|G1>>>14)^(Y1<<14|G1>>>18)^(G1<<23|Y1>>>9))>>>0,E=(N1^Y1&(V1^N1))>>>0,w=(j1^G1&(C1^j1))>>>0,L=((T>>>28|S<<4)^(S>>>2|T<<30)^(S>>>7|T<<25))>>>0,V=((T<<4|S>>>28)^(S<<30|T>>>2)^(S<<25|T>>>7))>>>0,A=(T&v|x&(T^v))>>>0,R=(S&h|p&(S^h))>>>0,Q1=D1+I+w+K[e][1]+B[e][1],F=d1+M+E+K[e][0]+B[e][0]+(Q1/4294967296>>>0)>>>0,P=Q1>>>0,Q1=V+R,N=L+A+(Q1/4294967296>>>0)>>>0,C=Q1>>>0,d1=N1,D1=j1,N1=V1,j1=C1,V1=Y1,C1=G1,Q1=t+P,Y1=n+F+(Q1/4294967296>>>0)>>>0,G1=Q1>>>0,n=x,t=p,x=v,p=h,v=T,h=S,Q1=P+C,T=F+N+(Q1/4294967296>>>0)>>>0,S=Q1>>>0;Q1=q[0][1]+S,q[0][0]=q[0][0]+T+(Q1/4294967296>>>0)>>>0,q[0][1]=Q1>>>0,Q1=q[1][1]+h,q[1][0]=q[1][0]+v+(Q1/4294967296>>>0)>>>0,q[1][1]=Q1>>>0,Q1=q[2][1]+p,q[2][0]=q[2][0]+x+(Q1/4294967296>>>0)>>>0,q[2][1]=Q1>>>0,Q1=q[3][1]+t,q[3][0]=q[3][0]+n+(Q1/4294967296>>>0)>>>0,q[3][1]=Q1>>>0,Q1=q[4][1]+G1,q[4][0]=q[4][0]+Y1+(Q1/4294967296>>>0)>>>0,q[4][1]=Q1>>>0,Q1=q[5][1]+C1,q[5][0]=q[5][0]+V1+(Q1/4294967296>>>0)>>>0,q[5][1]=Q1>>>0,Q1=q[6][1]+j1,q[6][0]=q[6][0]+N1+(Q1/4294967296>>>0)>>>0,q[6][1]=Q1>>>0,Q1=q[7][1]+D1,q[7][0]=q[7][0]+d1+(Q1/4294967296>>>0)>>>0,q[7][1]=Q1>>>0,f-=128}}}}),Eo=W1({"node_modules/node-forge/lib/asn1-validator.js"(Q){var X=y0();WQ();var Z=X.asn1;Q.privateKeyValidator={name:"PrivateKeyInfo",tagClass:Z.Class.UNIVERSAL,type:Z.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:Z.Class.UNIVERSAL,type:Z.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:Z.Class.UNIVERSAL,type:Z.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Z.Class.UNIVERSAL,type:Z.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:Z.Class.UNIVERSAL,type:Z.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},Q.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:Z.Class.UNIVERSAL,type:Z.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:Z.Class.UNIVERSAL,type:Z.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Z.Class.UNIVERSAL,type:Z.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:Z.Class.UNIVERSAL,type:Z.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]}}}),jo=W1({"node_modules/node-forge/lib/ed25519.js"(Q,X){var Z=y0();lq(),d9(),fM(),d0();var J=Eo(),G=J.publicKeyValidator,Y=J.privateKeyValidator;if(typeof H==="undefined")H=Z.jsbn.BigInteger;var H,K=Z.util.ByteBuffer,z=typeof Buffer==="undefined"?Uint8Array:Buffer;Z.pki=Z.pki||{},X.exports=Z.pki.ed25519=Z.ed25519=Z.ed25519||{};var W=Z.ed25519;W.constants={},W.constants.PUBLIC_KEY_BYTE_LENGTH=32,W.constants.PRIVATE_KEY_BYTE_LENGTH=64,W.constants.SEED_BYTE_LENGTH=32,W.constants.SIGN_BYTE_LENGTH=64,W.constants.HASH_BYTE_LENGTH=64,W.generateKeyPair=function(k){k=k||{};var d=k.seed;if(d===void 0)d=Z.random.getBytesSync(W.constants.SEED_BYTE_LENGTH);else if(typeof d==="string"){if(d.length!==W.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+W.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(d instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');d=$({message:d,encoding:"binary"});var f=new z(W.constants.PUBLIC_KEY_BYTE_LENGTH),j=new z(W.constants.PRIVATE_KEY_BYTE_LENGTH);for(var m=0;m<32;++m)j[m]=d[m];return M(f,j),{publicKey:f,privateKey:j}},W.privateKeyFromAsn1=function(k){var d={},f=[],j=Z.asn1.validate(k,Y,d,f);if(!j){var m=new Error("Invalid Key.");throw m.errors=f,m}var Z1=Z.asn1.derToOid(d.privateKeyOid),_=Z.oids.EdDSA25519;if(Z1!==_)throw new Error('Invalid OID "'+Z1+'"; OID must be "'+_+'".');var J1=d.privateKey,B1=$({message:Z.asn1.fromDer(J1).value,encoding:"binary"});return{privateKeyBytes:B1}},W.publicKeyFromAsn1=function(k){var d={},f=[],j=Z.asn1.validate(k,G,d,f);if(!j){var m=new Error("Invalid Key.");throw m.errors=f,m}var Z1=Z.asn1.derToOid(d.publicKeyOid),_=Z.oids.EdDSA25519;if(Z1!==_)throw new Error('Invalid OID "'+Z1+'"; OID must be "'+_+'".');var J1=d.ed25519PublicKey;if(J1.length!==W.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Key length is invalid.");return $({message:J1,encoding:"binary"})},W.publicKeyFromPrivateKey=function(k){k=k||{};var d=$({message:k.privateKey,encoding:"binary"});if(d.length!==W.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+W.constants.PRIVATE_KEY_BYTE_LENGTH);var f=new z(W.constants.PUBLIC_KEY_BYTE_LENGTH);for(var j=0;j=0};function $(k){var d=k.message;if(d instanceof Uint8Array||d instanceof z)return d;var f=k.encoding;if(d===void 0)if(k.md)d=k.md.digest().getBytes(),f="binary";else throw new TypeError('"options.message" or "options.md" not specified.');if(typeof d==="string"&&!f)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if(typeof d==="string"){if(typeof Buffer!=="undefined")return Buffer.from(d,f);d=new K(d,f)}else if(!(d instanceof K))throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a string with "options.encoding" specifying its encoding.');var j=new z(d.length());for(var m=0;m=32;--j){f=0;for(m=j-32,Z1=j-12;m>8,d[m]-=f*256;d[m]+=f,d[j]=0}f=0;for(m=0;m<32;++m)d[m]+=f-(d[31]>>4)*C[m],f=d[m]>>8,d[m]&=255;for(m=0;m<32;++m)d[m]-=f*C[m];for(j=0;j<32;++j)d[j+1]+=d[j]>>8,k[j]=d[j]&255}function A(k){var d=new Float64Array(64);for(var f=0;f<64;++f)d[f]=k[f],k[f]=0;w(k,d)}function R(k,d){var f=e(),j=e(),m=e(),Z1=e(),_=e(),J1=e(),B1=e(),L1=e(),H1=e();Q1(f,k[1],k[0]),Q1(H1,d[1],d[0]),S1(f,f,H1),P1(j,k[0],k[1]),P1(H1,d[0],d[1]),S1(j,j,H1),S1(m,k[3],d[3]),S1(m,m,F),S1(Z1,k[2],d[2]),P1(Z1,Z1,Z1),Q1(_,j,f),Q1(J1,Z1,m),P1(B1,Z1,m),P1(L1,j,f),S1(k[0],_,J1),S1(k[1],L1,B1),S1(k[2],B1,J1),S1(k[3],_,L1)}function T(k,d,f){for(var j=0;j<4;++j)D1(k[j],d[j],f)}function S(k,d){var f=e(),j=e(),m=e();j1(m,d[2]),S1(f,d[0],m),S1(j,d[1],m),v(k,j),k[31]^=G1(f)<<7}function v(k,d){var f,j,m,Z1=e(),_=e();for(f=0;f<16;++f)_[f]=d[f];d1(_),d1(_),d1(_);for(j=0;j<2;++j){Z1[0]=_[0]-65517;for(f=1;f<15;++f)Z1[f]=_[f]-65535-(Z1[f-1]>>16&1),Z1[f-1]&=65535;Z1[15]=_[15]-32767-(Z1[14]>>16&1),m=Z1[15]>>16&1,Z1[14]&=65535,D1(_,Z1,1-m)}for(f=0;f<16;f++)k[2*f]=_[f]&255,k[2*f+1]=_[f]>>8}function h(k,d){var f=e(),j=e(),m=e(),Z1=e(),_=e(),J1=e(),B1=e();if(N1(k[2],B),x(k[1],d),O1(m,k[1]),S1(Z1,m,D),Q1(m,m,k[2]),P1(Z1,k[2],Z1),O1(_,Z1),O1(J1,_),S1(B1,J1,_),S1(f,B1,m),S1(f,f,Z1),p(f,f),S1(f,f,m),S1(f,f,Z1),S1(f,f,Z1),S1(k[0],f,Z1),O1(j,k[0]),S1(j,j,Z1),n(j,m))S1(k[0],k[0],L);if(O1(j,k[0]),S1(j,j,Z1),n(j,m))return-1;if(G1(k[0])===d[31]>>7)Q1(k[0],q,k[0]);return S1(k[3],k[0],k[1]),0}function x(k,d){var f;for(f=0;f<16;++f)k[f]=d[2*f]+(d[2*f+1]<<8);k[15]&=32767}function p(k,d){var f=e(),j;for(j=0;j<16;++j)f[j]=d[j];for(j=250;j>=0;--j)if(O1(f,f),j!==1)S1(f,f,d);for(j=0;j<16;++j)k[j]=f[j]}function n(k,d){var f=new z(32),j=new z(32);return v(f,k),v(j,d),t(f,0,j,0)}function t(k,d,f,j){return Y1(k,d,f,j,32)}function Y1(k,d,f,j,m){var Z1,_=0;for(Z1=0;Z1>>8)-1}function G1(k){var d=new z(32);return v(d,k),d[0]&1}function V1(k,d,f){var j,m;N1(k[0],q),N1(k[1],B),N1(k[2],B),N1(k[3],q);for(m=255;m>=0;--m)j=f[m/8|0]>>(m&7)&1,T(k,d,j),R(d,k),R(k,k),T(k,d,j)}function C1(k,d){var f=[e(),e(),e(),e()];N1(f[0],P),N1(f[1],N),N1(f[2],B),S1(f[3],P,N),V1(k,f,d)}function N1(k,d){var f;for(f=0;f<16;f++)k[f]=d[f]|0}function j1(k,d){var f=e(),j;for(j=0;j<16;++j)f[j]=d[j];for(j=253;j>=0;--j)if(O1(f,f),j!==2&&j!==4)S1(f,f,d);for(j=0;j<16;++j)k[j]=f[j]}function d1(k){var d,f,j=1;for(d=0;d<16;++d)f=k[d]+j+65535,j=Math.floor(f/65536),k[d]=f-j*65536;k[0]+=j-1+37*(j-1)}function D1(k,d,f){var j,m=~(f-1);for(var Z1=0;Z1<16;++Z1)j=m&(k[Z1]^d[Z1]),k[Z1]^=j,d[Z1]^=j}function e(k){var d,f=new Float64Array(16);if(k)for(d=0;d0)B=Z.util.fillString(String.fromCharCode(0),D)+B;var F=W.encrypt(B,"NONE"),P=Y.generate(B,$);return{encapsulation:F,key:P}},z.decrypt=function(W,$,q){var B=W.decrypt($,"NONE");return Y.generate(B,q)},z},Z.kem.kdf1=function(Y,H){G(this,Y,0,H||Y.digestLength)},Z.kem.kdf2=function(Y,H){G(this,Y,1,H||Y.digestLength)};function G(Y,H,K,z){Y.generate=function(W,$){var q=new Z.util.ByteBuffer,B=Math.ceil($/z)+K,D=new Z.util.ByteBuffer;for(var F=K;F0)I.value[0].value.push(J.create(J.Class.CONTEXT_SPECIFIC,0,!0,L));if(M.length>0)I.value[0].value.push(J.create(J.Class.CONTEXT_SPECIFIC,1,!0,M));return I.value[0].value.push(J.create(J.Class.UNIVERSAL,J.Type.SET,!0,P.signerInfos)),J.create(J.Class.UNIVERSAL,J.Type.SEQUENCE,!0,[J.create(J.Class.UNIVERSAL,J.Type.OID,!1,J.oidToDer(P.type).getBytes()),I])},addSigner:function(L){var{issuer:V,serialNumber:M}=L;if(L.certificate){var I=L.certificate;if(typeof I==="string")I=Z.pki.certificateFromPem(I);V=I.issuer.attributes,M=I.serialNumber}var E=L.key;if(!E)throw new Error("Could not add PKCS#7 signer; no private key specified.");if(typeof E==="string")E=Z.pki.privateKeyFromPem(E);var w=L.digestAlgorithm||Z.pki.oids.sha1;switch(w){case Z.pki.oids.sha1:case Z.pki.oids.sha256:case Z.pki.oids.sha384:case Z.pki.oids.sha512:case Z.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+w)}var A=L.authenticatedAttributes||[];if(A.length>0){var R=!1,T=!1;for(var S=0;S0){var C=J.create(J.Class.CONTEXT_SPECIFIC,1,!0,[]);for(var L=0;L=C&&V="8")W="00"+W;var $=Z.util.hexToBytes(W);K.putInt32($.length),K.putBytes($)}function Y(K,z){K.putInt32(z.length),K.putString(z)}function H(){var K=Z.md.sha1.create(),z=arguments.length;for(var W=0;W{let $1=L1(),U1=_.clone().set({hour:$1.get("hour"),minute:$1.get("minute"),second:$1.get("second")});if(D0)U1.add(parseInt(x0,10),R0);if(U0)return U1.format(U0.substring(1).trim());return U1.format(M1)}).replace(/{{\s*yesterday\s*}}/gi,_.clone().subtract(1,"day").format(M1)).replace(/{{\s*tomorrow\s*}}/gi,_.clone().add(1,"d").format(M1)));return J1.foldManager.save(B0,a1),B0}catch(B0){console.error(`Failed to create file: '${t1}'`,B0),new X.Notice("Unable to create new file.")}})}function T(_,J1){var B1;return(B1=J1[L(_,"day")])!=null?B1:null}function S(){let{vault:_}=window.app,{folder:J1}=z(),B1=_.getAbstractFileByPath(X.normalizePath(J1));if(!B1)throw new A("Failed to find daily notes folder");let L1={};return X.Vault.recurseChildren(B1,(H1)=>{if(H1 instanceof X.TFile){let M1=I(H1,"day");if(M1){let u1=L(M1,"day");L1[u1]=H1}}}),L1}var v=class extends Error{};function h(){let{moment:_}=window,J1=_.localeData()._week.dow,B1=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];while(J1)B1.push(B1.shift()),J1--;return B1}function x(_){return h().indexOf(_.toLowerCase())}function p(_){return T0(this,null,function*(){let{vault:J1}=window.app,{template:B1,format:L1,folder:H1}=W(),[M1,u1]=yield C(B1),s1=_.format(L1),a1=yield N(H1,s1);try{let X0=yield J1.create(a1,M1.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(t1,B0,Y0,S0,D0,x0)=>{let R0=window.moment(),U0=_.clone().set({hour:R0.get("hour"),minute:R0.get("minute"),second:R0.get("second")});if(Y0)U0.add(parseInt(S0,10),D0);if(x0)return U0.format(x0.substring(1).trim());return U0.format(L1)}).replace(/{{\s*title\s*}}/gi,s1).replace(/{{\s*time\s*}}/gi,window.moment().format("HH:mm")).replace(/{{\s*(sunday|monday|tuesday|wednesday|thursday|friday|saturday)\s*:(.*?)}}/gi,(t1,B0,Y0)=>{let S0=x(B0);return _.weekday(S0).format(Y0.trim())}));return window.app.foldManager.save(X0,u1),X0}catch(X0){console.error(`Failed to create file: '${a1}'`,X0),new X.Notice("Unable to create new file.")}})}function n(_,J1){var B1;return(B1=J1[L(_,"week")])!=null?B1:null}function t(){let _={};if(!k())return _;let{vault:J1}=window.app,{folder:B1}=W(),L1=J1.getAbstractFileByPath(X.normalizePath(B1));if(!L1)throw new v("Failed to find weekly notes folder");return X.Vault.recurseChildren(L1,(H1)=>{if(H1 instanceof X.TFile){let M1=I(H1,"week");if(M1){let u1=L(M1,"week");_[u1]=H1}}}),_}var Y1=class extends Error{};function G1(_){return T0(this,null,function*(){let{vault:J1}=window.app,{template:B1,format:L1,folder:H1}=$(),[M1,u1]=yield C(B1),s1=_.format(L1),a1=yield N(H1,s1);try{let X0=yield J1.create(a1,M1.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(t1,B0,Y0,S0,D0,x0)=>{let R0=window.moment(),U0=_.clone().set({hour:R0.get("hour"),minute:R0.get("minute"),second:R0.get("second")});if(Y0)U0.add(parseInt(S0,10),D0);if(x0)return U0.format(x0.substring(1).trim());return U0.format(L1)}).replace(/{{\s*date\s*}}/gi,s1).replace(/{{\s*time\s*}}/gi,window.moment().format("HH:mm")).replace(/{{\s*title\s*}}/gi,s1));return window.app.foldManager.save(X0,u1),X0}catch(X0){console.error(`Failed to create file: '${a1}'`,X0),new X.Notice("Unable to create new file.")}})}function V1(_,J1){var B1;return(B1=J1[L(_,"month")])!=null?B1:null}function C1(){let _={};if(!d())return _;let{vault:J1}=window.app,{folder:B1}=$(),L1=J1.getAbstractFileByPath(X.normalizePath(B1));if(!L1)throw new Y1("Failed to find monthly notes folder");return X.Vault.recurseChildren(L1,(H1)=>{if(H1 instanceof X.TFile){let M1=I(H1,"month");if(M1){let u1=L(M1,"month");_[u1]=H1}}}),_}var N1=class extends Error{};function j1(_){return T0(this,null,function*(){let{vault:J1}=window.app,{template:B1,format:L1,folder:H1}=q(),[M1,u1]=yield C(B1),s1=_.format(L1),a1=yield N(H1,s1);try{let X0=yield J1.create(a1,M1.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(t1,B0,Y0,S0,D0,x0)=>{let R0=window.moment(),U0=_.clone().set({hour:R0.get("hour"),minute:R0.get("minute"),second:R0.get("second")});if(Y0)U0.add(parseInt(S0,10),D0);if(x0)return U0.format(x0.substring(1).trim());return U0.format(L1)}).replace(/{{\s*date\s*}}/gi,s1).replace(/{{\s*time\s*}}/gi,window.moment().format("HH:mm")).replace(/{{\s*title\s*}}/gi,s1));return window.app.foldManager.save(X0,u1),X0}catch(X0){console.error(`Failed to create file: '${a1}'`,X0),new X.Notice("Unable to create new file.")}})}function d1(_,J1){var B1;return(B1=J1[L(_,"quarter")])!=null?B1:null}function D1(){let _={};if(!f())return _;let{vault:J1}=window.app,{folder:B1}=q(),L1=J1.getAbstractFileByPath(X.normalizePath(B1));if(!L1)throw new N1("Failed to find quarterly notes folder");return X.Vault.recurseChildren(L1,(H1)=>{if(H1 instanceof X.TFile){let M1=I(H1,"quarter");if(M1){let u1=L(M1,"quarter");_[u1]=H1}}}),_}var e=class extends Error{};function P1(_){return T0(this,null,function*(){let{vault:J1}=window.app,{template:B1,format:L1,folder:H1}=B(),[M1,u1]=yield C(B1),s1=_.format(L1),a1=yield N(H1,s1);try{let X0=yield J1.create(a1,M1.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(t1,B0,Y0,S0,D0,x0)=>{let R0=window.moment(),U0=_.clone().set({hour:R0.get("hour"),minute:R0.get("minute"),second:R0.get("second")});if(Y0)U0.add(parseInt(S0,10),D0);if(x0)return U0.format(x0.substring(1).trim());return U0.format(L1)}).replace(/{{\s*date\s*}}/gi,s1).replace(/{{\s*time\s*}}/gi,window.moment().format("HH:mm")).replace(/{{\s*title\s*}}/gi,s1));return window.app.foldManager.save(X0,u1),X0}catch(X0){console.error(`Failed to create file: '${a1}'`,X0),new X.Notice("Unable to create new file.")}})}function Q1(_,J1){var B1;return(B1=J1[L(_,"year")])!=null?B1:null}function O1(){let _={};if(!j())return _;let{vault:J1}=window.app,{folder:B1}=B(),L1=J1.getAbstractFileByPath(X.normalizePath(B1));if(!L1)throw new e("Failed to find yearly notes folder");return X.Vault.recurseChildren(L1,(H1)=>{if(H1 instanceof X.TFile){let M1=I(H1,"year");if(M1){let u1=L(M1,"year");_[u1]=H1}}}),_}function S1(){var _,J1;let{app:B1}=window,L1=B1.internalPlugins.plugins["daily-notes"];if(L1&&L1.enabled)return!0;let H1=B1.plugins.getPlugin("periodic-notes");return H1&&((J1=(_=H1.settings)==null?void 0:_.daily)==null?void 0:J1.enabled)}function k(){var _,J1;let{app:B1}=window;if(B1.plugins.getPlugin("calendar"))return!0;let L1=B1.plugins.getPlugin("periodic-notes");return L1&&((J1=(_=L1.settings)==null?void 0:_.weekly)==null?void 0:J1.enabled)}function d(){var _,J1;let{app:B1}=window,L1=B1.plugins.getPlugin("periodic-notes");return L1&&((J1=(_=L1.settings)==null?void 0:_.monthly)==null?void 0:J1.enabled)}function f(){var _,J1;let{app:B1}=window,L1=B1.plugins.getPlugin("periodic-notes");return L1&&((J1=(_=L1.settings)==null?void 0:_.quarterly)==null?void 0:J1.enabled)}function j(){var _,J1;let{app:B1}=window,L1=B1.plugins.getPlugin("periodic-notes");return L1&&((J1=(_=L1.settings)==null?void 0:_.yearly)==null?void 0:J1.enabled)}function m(_){let J1={day:z,week:W,month:$,quarter:q,year:B}[_];return J1()}function Z1(_,J1){return{day:R,month:G1,week:p}[_](J1)}Q.DEFAULT_DAILY_NOTE_FORMAT=Z,Q.DEFAULT_MONTHLY_NOTE_FORMAT=G,Q.DEFAULT_QUARTERLY_NOTE_FORMAT=Y,Q.DEFAULT_WEEKLY_NOTE_FORMAT=J,Q.DEFAULT_YEARLY_NOTE_FORMAT=H,Q.appHasDailyNotesPluginLoaded=S1,Q.appHasMonthlyNotesPluginLoaded=d,Q.appHasQuarterlyNotesPluginLoaded=f,Q.appHasWeeklyNotesPluginLoaded=k,Q.appHasYearlyNotesPluginLoaded=j,Q.createDailyNote=R,Q.createMonthlyNote=G1,Q.createPeriodicNote=Z1,Q.createQuarterlyNote=j1,Q.createWeeklyNote=p,Q.createYearlyNote=P1,Q.getAllDailyNotes=S,Q.getAllMonthlyNotes=C1,Q.getAllQuarterlyNotes=D1,Q.getAllWeeklyNotes=t,Q.getAllYearlyNotes=O1,Q.getDailyNote=T,Q.getDailyNoteSettings=z,Q.getDateFromFile=I,Q.getDateFromPath=E,Q.getDateUID=L,Q.getMonthlyNote=V1,Q.getMonthlyNoteSettings=$,Q.getPeriodicNoteSettings=m,Q.getQuarterlyNote=d1,Q.getQuarterlyNoteSettings=q,Q.getTemplateInfo=C,Q.getWeeklyNote=n,Q.getWeeklyNoteSettings=W,Q.getYearlyNote=Q1,Q.getYearlyNoteSettings=B}}),ho=W1({"node_modules/obsidian-dataview/lib/index.js"(Q){Object.defineProperty(Q,"__esModule",{value:!0}),require("obsidian");var X=class extends Error{},Z=class extends X{constructor(U){super(`Invalid DateTime: ${U.toMessage()}`)}},J=class extends X{constructor(U){super(`Invalid Interval: ${U.toMessage()}`)}},G=class extends X{constructor(U){super(`Invalid Duration: ${U.toMessage()}`)}},Y=class extends X{},H=class extends X{constructor(U){super(`Invalid unit ${U}`)}},K=class extends X{},z=class extends X{constructor(){super("Zone is an abstract class")}},W="numeric",$="short",q="long",B={year:W,month:W,day:W},D={year:W,month:$,day:W},F={year:W,month:$,day:W,weekday:$},P={year:W,month:q,day:W},N={year:W,month:q,day:W,weekday:q},C={hour:W,minute:W},L={hour:W,minute:W,second:W},V={hour:W,minute:W,second:W,timeZoneName:$},M={hour:W,minute:W,second:W,timeZoneName:q},I={hour:W,minute:W,hourCycle:"h23"},E={hour:W,minute:W,second:W,hourCycle:"h23"},w={hour:W,minute:W,second:W,hourCycle:"h23",timeZoneName:$},A={hour:W,minute:W,second:W,hourCycle:"h23",timeZoneName:q},R={year:W,month:W,day:W,hour:W,minute:W},T={year:W,month:W,day:W,hour:W,minute:W,second:W},S={year:W,month:$,day:W,hour:W,minute:W},v={year:W,month:$,day:W,hour:W,minute:W,second:W},h={year:W,month:$,day:W,weekday:$,hour:W,minute:W},x={year:W,month:q,day:W,hour:W,minute:W,timeZoneName:$},p={year:W,month:q,day:W,hour:W,minute:W,second:W,timeZoneName:$},n={year:W,month:q,day:W,weekday:q,hour:W,minute:W,timeZoneName:q},t={year:W,month:q,day:W,weekday:q,hour:W,minute:W,second:W,timeZoneName:q},Y1=class{get type(){throw new z}get name(){throw new z}get ianaName(){return this.name}get isUniversal(){throw new z}offsetName(U,O){throw new z}formatOffset(U,O){throw new z}offset(U){throw new z}equals(U){throw new z}get isValid(){throw new z}},G1=null,V1=class extends Y1{static get instance(){if(G1===null)G1=new V1;return G1}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(U,{format:O,locale:y}){return gQ(U,O,y)}formatOffset(U,O){return l9(this.offset(U),O)}offset(U){return-new Date(U).getTimezoneOffset()}equals(U){return U.type==="system"}get isValid(){return!0}},C1={};function N1(U){if(!C1[U])C1[U]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:U,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"});return C1[U]}var j1={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function d1(U,O){let y=U.format(O).replace(/\u200E/g,""),g=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(y),[,i,c,a,K1,T1,m1,e1]=g;return[a,i,c,K1,T1,m1,e1]}function D1(U,O){let y=U.formatToParts(O),g=[];for(let i=0;i=0?W0:1000+W0,(v0-_1)/60000}equals(U){return U.type==="iana"&&U.name===this.name}get isValid(){return this.valid}},Q1={};function O1(U,O={}){let y=JSON.stringify([U,O]),g=Q1[y];if(!g)g=new Intl.ListFormat(U,O),Q1[y]=g;return g}var S1={};function k(U,O={}){let y=JSON.stringify([U,O]),g=S1[y];if(!g)g=new Intl.DateTimeFormat(U,O),S1[y]=g;return g}var d={};function f(U,O={}){let y=JSON.stringify([U,O]),g=d[y];if(!g)g=new Intl.NumberFormat(U,O),d[y]=g;return g}var j={};function m(U,O={}){let y=O,{base:g}=y,i=FM(y,["base"]),c=JSON.stringify([U,i]),a=j[c];if(!a)a=new Intl.RelativeTimeFormat(U,O),j[c]=a;return a}var Z1=null;function _(){if(Z1)return Z1;else return Z1=new Intl.DateTimeFormat().resolvedOptions().locale,Z1}function J1(U){let O=U.indexOf("-x-");if(O!==-1)U=U.substring(0,O);let y=U.indexOf("-u-");if(y===-1)return[U];else{let g,i;try{g=k(U).resolvedOptions(),i=U}catch(K1){let T1=U.substring(0,y);g=k(T1).resolvedOptions(),i=T1}let{numberingSystem:c,calendar:a}=g;return[i,c,a]}}function B1(U,O,y){if(y||O){if(!U.includes("-u-"))U+="-u";if(y)U+=`-ca-${y}`;if(O)U+=`-nu-${O}`;return U}else return U}function L1(U){let O=[];for(let y=1;y<=12;y++){let g=Z0.utc(2009,y,1);O.push(U(g))}return O}function H1(U){let O=[];for(let y=1;y<=7;y++){let g=Z0.utc(2016,11,13+y);O.push(U(g))}return O}function M1(U,O,y,g){let i=U.listingMode();if(i==="error")return null;else if(i==="en")return y(O);else return g(O)}function u1(U){if(U.numberingSystem&&U.numberingSystem!=="latn")return!1;else return U.numberingSystem==="latn"||!U.locale||U.locale.startsWith("en")||new Intl.DateTimeFormat(U.intl).resolvedOptions().numberingSystem==="latn"}var s1=class{constructor(U,O,y){this.padTo=y.padTo||0,this.floor=y.floor||!1;let g=y,{padTo:i,floor:c}=g,a=FM(g,["padTo","floor"]);if(!O||Object.keys(a).length>0){let K1=K0({useGrouping:!1},y);if(y.padTo>0)K1.minimumIntegerDigits=y.padTo;this.inf=f(U,K1)}}format(U){if(this.inf){let O=this.floor?Math.floor(U):U;return this.inf.format(O)}else{let O=this.floor?Math.floor(U):B6(U,3);return M0(O,this.padTo)}}},a1=class{constructor(U,O,y){this.opts=y,this.originalZone=void 0;let g=void 0;if(this.opts.timeZone)this.dt=U;else if(U.zone.type==="fixed"){let c=-1*(U.offset/60),a=c>=0?`Etc/GMT+${c}`:`Etc/GMT${c}`;if(U.offset!==0&&P1.create(a).valid)g=a,this.dt=U;else g="UTC",this.dt=U.offset===0?U:U.setZone("UTC").plus({minutes:U.offset}),this.originalZone=U.zone}else if(U.zone.type==="system")this.dt=U;else if(U.zone.type==="iana")this.dt=U,g=U.zone.name;else g="UTC",this.dt=U.setZone("UTC").plus({minutes:U.offset}),this.originalZone=U.zone;let i=K0({},this.opts);i.timeZone=i.timeZone||g,this.dtf=k(O,i)}format(){if(this.originalZone)return this.formatToParts().map(({value:U})=>U).join("");return this.dtf.format(this.dt.toJSDate())}formatToParts(){let U=this.dtf.formatToParts(this.dt.toJSDate());if(this.originalZone)return U.map((O)=>{if(O.type==="timeZoneName"){let y=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return m9(K0({},O),{value:y})}else return O});return U}resolvedOptions(){return this.dtf.resolvedOptions()}},X0=class{constructor(U,O,y){if(this.opts=K0({style:"long"},y),!O&&e8())this.rtf=m(U,y)}format(U,O){if(this.rtf)return this.rtf.format(U,O);else return z1(O,U,this.opts.numeric,this.opts.style!=="long")}formatToParts(U,O){if(this.rtf)return this.rtf.formatToParts(U,O);else return[]}},t1=class{static fromOpts(U){return t1.create(U.locale,U.numberingSystem,U.outputCalendar,U.defaultToEN)}static create(U,O,y,g=!1){let i=U||J0.defaultLocale,c=i||(g?"en-US":_()),a=O||J0.defaultNumberingSystem,K1=y||J0.defaultOutputCalendar;return new t1(c,a,K1,i)}static resetCache(){Z1=null,S1={},d={},j={}}static fromObject({locale:U,numberingSystem:O,outputCalendar:y}={}){return t1.create(U,O,y)}constructor(U,O,y,g){let[i,c,a]=J1(U);this.locale=i,this.numberingSystem=O||c||null,this.outputCalendar=y||a||null,this.intl=B1(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=g,this.fastNumbersCached=null}get fastNumbers(){if(this.fastNumbersCached==null)this.fastNumbersCached=u1(this);return this.fastNumbersCached}listingMode(){let U=this.isEnglish(),O=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return U&&O?"en":"intl"}clone(U){if(!U||Object.getOwnPropertyNames(U).length===0)return this;else return t1.create(U.locale||this.specifiedLocale,U.numberingSystem||this.numberingSystem,U.outputCalendar||this.outputCalendar,U.defaultToEN||!1)}redefaultToEN(U={}){return this.clone(m9(K0({},U),{defaultToEN:!0}))}redefaultToSystem(U={}){return this.clone(m9(K0({},U),{defaultToEN:!1}))}months(U,O=!1){return M1(this,U,sX,()=>{let y=O?{month:U,day:"numeric"}:{month:U},g=O?"format":"standalone";if(!this.monthsCache[g][U])this.monthsCache[g][U]=L1((i)=>this.extract(i,y,"month"));return this.monthsCache[g][U]})}weekdays(U,O=!1){return M1(this,U,eX,()=>{let y=O?{weekday:U,year:"numeric",month:"long",day:"numeric"}:{weekday:U},g=O?"format":"standalone";if(!this.weekdaysCache[g][U])this.weekdaysCache[g][U]=H1((i)=>this.extract(i,y,"weekday"));return this.weekdaysCache[g][U]})}meridiems(){return M1(this,void 0,()=>QJ,()=>{if(!this.meridiemCache){let U={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Z0.utc(2016,11,13,9),Z0.utc(2016,11,13,19)].map((O)=>this.extract(O,U,"dayperiod"))}return this.meridiemCache})}eras(U){return M1(this,U,ZJ,()=>{let O={era:U};if(!this.eraCache[U])this.eraCache[U]=[Z0.utc(-40,1,1),Z0.utc(2017,1,1)].map((y)=>this.extract(y,O,"era"));return this.eraCache[U]})}extract(U,O,y){let g=this.dtFormatter(U,O),i=g.formatToParts(),c=i.find((a)=>a.type.toLowerCase()===y);return c?c.value:null}numberFormatter(U={}){return new s1(this.intl,U.forceSimple||this.fastNumbers,U)}dtFormatter(U,O={}){return new a1(U,this.intl,O)}relFormatter(U={}){return new X0(this.intl,this.isEnglish(),U)}listFormatter(U={}){return O1(this.intl,U)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(U){return this.locale===U.locale&&this.numberingSystem===U.numberingSystem&&this.outputCalendar===U.outputCalendar}},B0=null,Y0=class extends Y1{static get utcInstance(){if(B0===null)B0=new Y0(0);return B0}static instance(U){return U===0?Y0.utcInstance:new Y0(U)}static parseSpecifier(U){if(U){let O=U.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(O)return new Y0(d8(O[1],O[2]))}return null}constructor(U){super();this.fixed=U}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${l9(this.fixed,"narrow")}`}get ianaName(){if(this.fixed===0)return"Etc/UTC";else return`Etc/GMT${l9(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(U,O){return l9(this.fixed,O)}get isUniversal(){return!0}offset(){return this.fixed}equals(U){return U.type==="fixed"&&U.fixed===this.fixed}get isValid(){return!0}},S0=class extends Y1{constructor(U){super();this.zoneName=U}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function D0(U,O){if(v1(U)||U===null)return O;else if(U instanceof Y1)return U;else if(I6(U)){let y=U.toLowerCase();if(y==="default")return O;else if(y==="local"||y==="system")return V1.instance;else if(y==="utc"||y==="gmt")return Y0.utcInstance;else return Y0.parseSpecifier(y)||P1.create(U)}else if(W6(U))return Y0.instance(U);else if(typeof U==="object"&&"offset"in U&&typeof U.offset==="function")return U;else return new S0(U)}var x0=()=>Date.now(),R0="system",U0=null,$1=null,U1=null,z0=60,L0,J0=class{static get now(){return x0}static set now(U){x0=U}static set defaultZone(U){R0=U}static get defaultZone(){return D0(R0,V1.instance)}static get defaultLocale(){return U0}static set defaultLocale(U){U0=U}static get defaultNumberingSystem(){return $1}static set defaultNumberingSystem(U){$1=U}static get defaultOutputCalendar(){return U1}static set defaultOutputCalendar(U){U1=U}static get twoDigitCutoffYear(){return z0}static set twoDigitCutoffYear(U){z0=U%100}static get throwOnInvalid(){return L0}static set throwOnInvalid(U){L0=U}static resetCaches(){t1.resetCache(),P1.resetCache()}};function v1(U){return typeof U==="undefined"}function W6(U){return typeof U==="number"}function j6(U){return typeof U==="number"&&U%1===0}function I6(U){return typeof U==="string"}function i6(U){return Object.prototype.toString.call(U)==="[object Date]"}function e8(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(U){return!1}}function _8(U){return Array.isArray(U)?U:[U]}function b0(U,O,y){if(U.length===0)return;return U.reduce((g,i)=>{let c=[O(i),i];if(!g)return c;else if(y(g[0],c[0])===g[0])return g;else return c},null)[1]}function R6(U,O){return O.reduce((y,g)=>{return y[g]=U[g],y},{})}function r0(U,O){return Object.prototype.hasOwnProperty.call(U,O)}function u0(U,O,y){return j6(U)&&U>=O&&U<=y}function q6(U,O){return U-O*Math.floor(U/O)}function M0(U,O=2){let y=U<0,g;if(y)g="-"+(""+-U).padStart(O,"0");else g=(""+U).padStart(O,"0");return g}function _0(U){if(v1(U)||U===null||U==="")return;else return parseInt(U,10)}function i0(U){if(v1(U)||U===null||U==="")return;else return parseFloat(U)}function H6(U){if(v1(U)||U===null||U==="")return;else{let O=parseFloat("0."+U)*1000;return Math.floor(O)}}function B6(U,O,y=!1){let g=Mo(10,O);return(y?Math.trunc:Math.round)(U*g)/g}function Z6(U){return U%4===0&&(U%100!==0||U%400===0)}function e0(U){return Z6(U)?366:365}function z6(U,O){let y=q6(O-1,12)+1,g=U+(O-y)/12;if(y===2)return Z6(g)?29:28;else return[31,null,31,30,31,30,31,31,30,31,30,31][y-1]}function X6(U){let O=Date.UTC(U.year,U.month-1,U.day,U.hour,U.minute,U.second,U.millisecond);if(U.year<100&&U.year>=0)O=new Date(O),O.setUTCFullYear(U.year,U.month-1,U.day);return+O}function n0(U){let O=(U+Math.floor(U/4)-Math.floor(U/100)+Math.floor(U/400))%7,y=U-1,g=(y+Math.floor(y/4)-Math.floor(y/100)+Math.floor(y/400))%7;return O===4||g===3?53:52}function U6(U){if(U>99)return U;else return U>J0.twoDigitCutoffYear?1900+U:2000+U}function gQ(U,O,y,g=null){let i=new Date(U),c={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};if(g)c.timeZone=g;let a=K0({timeZoneName:O},c),K1=new Intl.DateTimeFormat(y,a).formatToParts(i).find((T1)=>T1.type.toLowerCase()==="timezonename");return K1?K1.value:null}function d8(U,O){let y=parseInt(U,10);if(Number.isNaN(y))y=0;let g=parseInt(O,10)||0,i=y<0||Object.is(y,-0)?-g:g;return y*60+i}function qQ(U){let O=Number(U);if(typeof U==="boolean"||U===""||Number.isNaN(O))throw new K(`Invalid unit value ${U}`);return O}function hQ(U,O){let y={};for(let g in U)if(r0(U,g)){let i=U[g];if(i===void 0||i===null)continue;y[O(g)]=qQ(i)}return y}function l9(U,O){let y=Math.trunc(Math.abs(U/60)),g=Math.trunc(Math.abs(U%60)),i=U>=0?"+":"-";switch(O){case"short":return`${i}${M0(y,2)}:${M0(g,2)}`;case"narrow":return`${i}${y}${g>0?`:${g}`:""}`;case"techie":return`${i}${M0(y,2)}${M0(g,2)}`;default:throw new RangeError(`Value format ${O} is out of range for property format`)}}function N9(U){return R6(U,["hour","minute","second","millisecond"])}var F3=["January","February","March","April","May","June","July","August","September","October","November","December"],aX=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],D3=["J","F","M","A","M","J","J","A","S","O","N","D"];function sX(U){switch(U){case"narrow":return[...D3];case"short":return[...aX];case"long":return[...F3];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var tX=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],rX=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],L3=["M","T","W","T","F","S","S"];function eX(U){switch(U){case"narrow":return[...L3];case"short":return[...rX];case"long":return[...tX];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var QJ=["AM","PM"],u8=["Before Christ","Anno Domini"],C3=["BC","AD"],N3=["B","A"];function ZJ(U){switch(U){case"narrow":return[...N3];case"short":return[...C3];case"long":return[...u8];default:return null}}function T3(U){return QJ[U.hour<12?0:1]}function b(U,O){return eX(O)[U.weekday-1]}function u(U,O){return sX(O)[U.month-1]}function o(U,O){return ZJ(O)[U.year<0?0:1]}function z1(U,O,y="always",g=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},c=["hours","minutes","seconds"].indexOf(U)===-1;if(y==="auto"&&c){let v0=U==="days";switch(O){case 1:return v0?"tomorrow":`next ${i[U][0]}`;case-1:return v0?"yesterday":`last ${i[U][0]}`;case 0:return v0?"today":`this ${i[U][0]}`}}let a=Object.is(O,-0)||O<0,K1=Math.abs(O),T1=K1===1,m1=i[U],e1=g?T1?m1[1]:m1[2]||m1[1]:T1?i[U][0]:U;return a?`${K1} ${e1} ago`:`in ${K1} ${e1}`}function A1(U,O){let y="";for(let g of U)if(g.literal)y+=g.val;else y+=O(g.val);return y}var w1={D:B,DD:D,DDD:P,DDDD:N,t:C,tt:L,ttt:V,tttt:M,T:I,TT:E,TTT:w,TTTT:A,f:R,ff:S,fff:x,ffff:n,F:T,FF:v,FFF:p,FFFF:t},g1=class{static create(U,O={}){return new g1(U,O)}static parseFormat(U){let O=null,y="",g=!1,i=[];for(let c=0;c0)i.push({literal:g||/^\s+$/.test(y),val:y});O=null,y="",g=!g}else if(g)y+=a;else if(a===O)y+=a;else{if(y.length>0)i.push({literal:/^\s+$/.test(y),val:y});y=a,O=a}}if(y.length>0)i.push({literal:g||/^\s+$/.test(y),val:y});return i}static macroTokenToFormatOpts(U){return w1[U]}constructor(U,O){this.opts=O,this.loc=U,this.systemLoc=null}formatWithSystemDefault(U,O){if(this.systemLoc===null)this.systemLoc=this.loc.redefaultToSystem();return this.systemLoc.dtFormatter(U,K0(K0({},this.opts),O)).format()}dtFormatter(U,O={}){return this.loc.dtFormatter(U,K0(K0({},this.opts),O))}formatDateTime(U,O){return this.dtFormatter(U,O).format()}formatDateTimeParts(U,O){return this.dtFormatter(U,O).formatToParts()}formatInterval(U,O){return this.dtFormatter(U.start,O).dtf.formatRange(U.start.toJSDate(),U.end.toJSDate())}resolvedOptions(U,O){return this.dtFormatter(U,O).resolvedOptions()}num(U,O=0){if(this.opts.forceSimple)return M0(U,O);let y=K0({},this.opts);if(O>0)y.padTo=O;return this.loc.numberFormatter(y).format(U)}formatDateTimeFromString(U,O){let y=this.loc.listingMode()==="en",g=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(_1,W0)=>this.loc.extract(U,_1,W0),c=(_1)=>{if(U.isOffsetFixed&&U.offset===0&&_1.allowZ)return"Z";return U.isValid?U.zone.formatOffset(U.ts,_1.format):""},a=()=>y?T3(U):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),K1=(_1,W0)=>y?u(U,_1):i(W0?{month:_1}:{month:_1,day:"numeric"},"month"),T1=(_1,W0)=>y?b(U,_1):i(W0?{weekday:_1}:{weekday:_1,month:"long",day:"numeric"},"weekday"),m1=(_1)=>{let W0=g1.macroTokenToFormatOpts(_1);if(W0)return this.formatWithSystemDefault(U,W0);else return _1},e1=(_1)=>y?o(U,_1):i({era:_1},"era"),v0=(_1)=>{switch(_1){case"S":return this.num(U.millisecond);case"u":case"SSS":return this.num(U.millisecond,3);case"s":return this.num(U.second);case"ss":return this.num(U.second,2);case"uu":return this.num(Math.floor(U.millisecond/10),2);case"uuu":return this.num(Math.floor(U.millisecond/100));case"m":return this.num(U.minute);case"mm":return this.num(U.minute,2);case"h":return this.num(U.hour%12===0?12:U.hour%12);case"hh":return this.num(U.hour%12===0?12:U.hour%12,2);case"H":return this.num(U.hour);case"HH":return this.num(U.hour,2);case"Z":return c({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return c({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return c({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return U.zone.offsetName(U.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return U.zone.offsetName(U.ts,{format:"long",locale:this.loc.locale});case"z":return U.zoneName;case"a":return a();case"d":return g?i({day:"numeric"},"day"):this.num(U.day);case"dd":return g?i({day:"2-digit"},"day"):this.num(U.day,2);case"c":return this.num(U.weekday);case"ccc":return T1("short",!0);case"cccc":return T1("long",!0);case"ccccc":return T1("narrow",!0);case"E":return this.num(U.weekday);case"EEE":return T1("short",!1);case"EEEE":return T1("long",!1);case"EEEEE":return T1("narrow",!1);case"L":return g?i({month:"numeric",day:"numeric"},"month"):this.num(U.month);case"LL":return g?i({month:"2-digit",day:"numeric"},"month"):this.num(U.month,2);case"LLL":return K1("short",!0);case"LLLL":return K1("long",!0);case"LLLLL":return K1("narrow",!0);case"M":return g?i({month:"numeric"},"month"):this.num(U.month);case"MM":return g?i({month:"2-digit"},"month"):this.num(U.month,2);case"MMM":return K1("short",!1);case"MMMM":return K1("long",!1);case"MMMMM":return K1("narrow",!1);case"y":return g?i({year:"numeric"},"year"):this.num(U.year);case"yy":return g?i({year:"2-digit"},"year"):this.num(U.year.toString().slice(-2),2);case"yyyy":return g?i({year:"numeric"},"year"):this.num(U.year,4);case"yyyyyy":return g?i({year:"numeric"},"year"):this.num(U.year,6);case"G":return e1("short");case"GG":return e1("long");case"GGGGG":return e1("narrow");case"kk":return this.num(U.weekYear.toString().slice(-2),2);case"kkkk":return this.num(U.weekYear,4);case"W":return this.num(U.weekNumber);case"WW":return this.num(U.weekNumber,2);case"o":return this.num(U.ordinal);case"ooo":return this.num(U.ordinal,3);case"q":return this.num(U.quarter);case"qq":return this.num(U.quarter,2);case"X":return this.num(Math.floor(U.ts/1000));case"x":return this.num(U.ts);default:return m1(_1)}};return A1(g1.parseFormat(O),v0)}formatDurationFromString(U,O){let y=(K1)=>{switch(K1[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},g=(K1)=>(T1)=>{let m1=y(T1);if(m1)return this.num(K1.get(m1),T1.length);else return T1},i=g1.parseFormat(O),c=i.reduce((K1,{literal:T1,val:m1})=>T1?K1:K1.concat(m1),[]),a=U.shiftTo(...c.map(y).filter((K1)=>K1));return A1(i,g(a))}},x1=class{constructor(U,O){this.reason=U,this.explanation=O}toMessage(){if(this.explanation)return`${this.reason}: ${this.explanation}`;else return this.reason}},o0=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function V6(...U){let O=U.reduce((y,g)=>y+g.source,"");return RegExp(`^${O}$`)}function b6(...U){return(O)=>U.reduce(([y,g,i],c)=>{let[a,K1,T1]=c(O,i);return[K0(K0({},y),a),K1||g,T1]},[{},null,1]).slice(0,2)}function v6(U,...O){if(U==null)return[null,null];for(let[y,g]of O){let i=y.exec(U);if(i)return g(i)}return[null,null]}function Q9(...U){return(O,y)=>{let g={},i;for(i=0;iW0!==void 0&&(J6||W0&&e1)?-W0:W0;return[{years:_1(i0(y)),months:_1(i0(g)),weeks:_1(i0(i)),days:_1(i0(c)),hours:_1(i0(a)),minutes:_1(i0(K1)),seconds:_1(i0(T1),T1==="-0"),milliseconds:_1(H6(m1),v0)}]}var yA={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function M3(U,O,y,g,i,c,a){let K1={year:O.length===2?U6(_0(O)):_0(O),month:aX.indexOf(y)+1,day:_0(g),hour:_0(i),minute:_0(c)};if(a)K1.second=_0(a);if(U)K1.weekday=U.length>3?tX.indexOf(U)+1:rX.indexOf(U)+1;return K1}var xA=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function vA(U){let[,O,y,g,i,c,a,K1,T1,m1,e1,v0]=U,_1=M3(O,i,g,y,c,a,K1),W0;if(T1)W0=yA[T1];else if(m1)W0=0;else W0=d8(e1,v0);return[_1,new Y0(W0)]}function gA(U){return U.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var hA=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,fA=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,bA=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function HB(U){let[,O,y,g,i,c,a,K1]=U;return[M3(O,i,g,y,c,a,K1),Y0.utcInstance]}function mA(U){let[,O,y,g,i,c,a,K1]=U;return[M3(O,K1,y,g,i,c,a),Y0.utcInstance]}var _A=V6(U7,Z9),dA=V6(MA,Z9),uA=V6(IA,Z9),pA=V6(j4),zB=b6(EA,wZ,V7,P7),lA=b6(RA,wZ,V7,P7),cA=b6(AA,wZ,V7,P7),iA=b6(wZ,V7,P7);function nA(U){return v6(U,[_A,zB],[dA,lA],[uA,cA],[pA,iA])}function oA(U){return v6(gA(U),[xA,vA])}function aA(U){return v6(U,[hA,HB],[fA,HB],[bA,mA])}function sA(U){return v6(U,[SA,kA])}var tA=b6(wZ);function rA(U){return v6(U,[jA,tA])}var eA=V6(OA,wA),QO=V6(qB),ZO=b6(wZ,V7,P7);function XO(U){return v6(U,[eA,zB],[QO,ZO])}var KB="Invalid Duration",$B={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:604800000},days:{hours:24,minutes:1440,seconds:86400,milliseconds:86400000},hours:{minutes:60,seconds:3600,milliseconds:3600000},minutes:{seconds:60,milliseconds:60000},seconds:{milliseconds:1000}},JO=K0({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536000,milliseconds:31536000000},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:7862400000},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592000,milliseconds:2592000000}},$B),X9=365.2425,EZ=30.436875,GO=K0({years:{quarters:4,months:12,weeks:X9/7,days:X9,hours:X9*24,minutes:X9*24*60,seconds:X9*24*60*60,milliseconds:X9*24*60*60*1000},quarters:{months:3,weeks:X9/28,days:X9/4,hours:X9*24/4,minutes:X9*24*60/4,seconds:X9*24*60*60/4,milliseconds:X9*24*60*60*1000/4},months:{weeks:EZ/7,days:EZ,hours:EZ*24,minutes:EZ*24*60,seconds:EZ*24*60*60,milliseconds:EZ*24*60*60*1000}},$B),S4=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],YO=S4.slice(0).reverse();function fQ(U,O,y=!1){let g={values:y?O.values:K0(K0({},U.values),O.values||{}),loc:U.loc.clone(O.loc),conversionAccuracy:O.conversionAccuracy||U.conversionAccuracy,matrix:O.matrix||U.matrix};return new o1(g)}function BB(U,O){var y;let g=(y=O.milliseconds)!=null?y:0;for(let i of YO.slice(1))if(O[i])g+=O[i]*U[i].milliseconds;return g}function UB(U,O){let y=BB(U,O)<0?-1:1;S4.reduceRight((g,i)=>{if(!v1(O[i])){if(g){let c=O[g]*y,a=U[i][g],K1=Math.floor(c/a);O[i]+=K1*y,O[g]-=K1*a*y}return i}else return g},null),S4.reduce((g,i)=>{if(!v1(O[i])){if(g){let c=O[g]%1;O[g]-=c,O[i]+=c*U[g][i]}return i}else return g},null)}function WO(U){let O={};for(let[y,g]of Object.entries(U))if(g!==0)O[y]=g;return O}var o1=class{constructor(U){let O=U.conversionAccuracy==="longterm"||!1,y=O?GO:JO;if(U.matrix)y=U.matrix;this.values=U.values,this.loc=U.loc||t1.create(),this.conversionAccuracy=O?"longterm":"casual",this.invalid=U.invalid||null,this.matrix=y,this.isLuxonDuration=!0}static fromMillis(U,O){return o1.fromObject({milliseconds:U},O)}static fromObject(U,O={}){if(U==null||typeof U!=="object")throw new K(`Duration.fromObject: argument expected to be an object, got ${U===null?"null":typeof U}`);return new o1({values:hQ(U,o1.normalizeUnit),loc:t1.fromObject(O),conversionAccuracy:O.conversionAccuracy,matrix:O.matrix})}static fromDurationLike(U){if(W6(U))return o1.fromMillis(U);else if(o1.isDuration(U))return U;else if(typeof U==="object")return o1.fromObject(U);else throw new K(`Unknown duration argument ${U} of type ${typeof U}`)}static fromISO(U,O){let[y]=sA(U);if(y)return o1.fromObject(y,O);else return o1.invalid("unparsable",`the input "${U}" can't be parsed as ISO 8601`)}static fromISOTime(U,O){let[y]=rA(U);if(y)return o1.fromObject(y,O);else return o1.invalid("unparsable",`the input "${U}" can't be parsed as ISO 8601`)}static invalid(U,O=null){if(!U)throw new K("need to specify a reason the Duration is invalid");let y=U instanceof x1?U:new x1(U,O);if(J0.throwOnInvalid)throw new G(y);else return new o1({invalid:y})}static normalizeUnit(U){let O={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[U?U.toLowerCase():U];if(!O)throw new H(U);return O}static isDuration(U){return U&&U.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(U,O={}){let y=m9(K0({},O),{floor:O.round!==!1&&O.floor!==!1});return this.isValid?g1.create(this.loc,y).formatDurationFromString(this,U):KB}toHuman(U={}){if(!this.isValid)return KB;let O=S4.map((y)=>{let g=this.values[y];if(v1(g))return null;return this.loc.numberFormatter(m9(K0({style:"unit",unitDisplay:"long"},U),{unit:y.slice(0,-1)})).format(g)}).filter((y)=>y);return this.loc.listFormatter(K0({type:"conjunction",style:U.listStyle||"narrow"},U)).format(O)}toObject(){if(!this.isValid)return{};return K0({},this.values)}toISO(){if(!this.isValid)return null;let U="P";if(this.years!==0)U+=this.years+"Y";if(this.months!==0||this.quarters!==0)U+=this.months+this.quarters*3+"M";if(this.weeks!==0)U+=this.weeks+"W";if(this.days!==0)U+=this.days+"D";if(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)U+="T";if(this.hours!==0)U+=this.hours+"H";if(this.minutes!==0)U+=this.minutes+"M";if(this.seconds!==0||this.milliseconds!==0)U+=B6(this.seconds+this.milliseconds/1000,3)+"S";if(U==="P")U+="T0S";return U}toISOTime(U={}){if(!this.isValid)return null;let O=this.toMillis();if(O<0||O>=86400000)return null;return U=m9(K0({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},U),{includeOffset:!1}),Z0.fromMillis(O,{zone:"UTC"}).toISOTime(U)}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){if(!this.isValid)return NaN;return BB(this.matrix,this.values)}valueOf(){return this.toMillis()}plus(U){if(!this.isValid)return this;let O=o1.fromDurationLike(U),y={};for(let g of S4)if(r0(O.values,g)||r0(this.values,g))y[g]=O.get(g)+this.get(g);return fQ(this,{values:y},!0)}minus(U){if(!this.isValid)return this;let O=o1.fromDurationLike(U);return this.plus(O.negate())}mapUnits(U){if(!this.isValid)return this;let O={};for(let y of Object.keys(this.values))O[y]=qQ(U(this.values[y],y));return fQ(this,{values:O},!0)}get(U){return this[o1.normalizeUnit(U)]}set(U){if(!this.isValid)return this;let O=K0(K0({},this.values),hQ(U,o1.normalizeUnit));return fQ(this,{values:O})}reconfigure({locale:U,numberingSystem:O,conversionAccuracy:y,matrix:g}={}){let c={loc:this.loc.clone({locale:U,numberingSystem:O}),matrix:g,conversionAccuracy:y};return fQ(this,c)}as(U){return this.isValid?this.shiftTo(U).get(U):NaN}normalize(){if(!this.isValid)return this;let U=this.toObject();return UB(this.matrix,U),fQ(this,{values:U},!0)}rescale(){if(!this.isValid)return this;let U=WO(this.normalize().shiftToAll().toObject());return fQ(this,{values:U},!0)}shiftTo(...U){if(!this.isValid)return this;if(U.length===0)return this;U=U.map((c)=>o1.normalizeUnit(c));let O={},y={},g=this.toObject(),i;for(let c of S4)if(U.indexOf(c)>=0){i=c;let a=0;for(let T1 in y)a+=this.matrix[T1][c]*y[T1],y[T1]=0;if(W6(g[c]))a+=g[c];let K1=Math.trunc(a);O[c]=K1,y[c]=(a*1000-K1*1000)/1000}else if(W6(g[c]))y[c]=g[c];for(let c in y)if(y[c]!==0)O[i]+=c===i?y[c]:y[c]/this.matrix[i][c];return UB(this.matrix,O),fQ(this,{values:O},!0)}shiftToAll(){if(!this.isValid)return this;return this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds")}negate(){if(!this.isValid)return this;let U={};for(let O of Object.keys(this.values))U[O]=this.values[O]===0?0:-this.values[O];return fQ(this,{values:U},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(U){if(!this.isValid||!U.isValid)return!1;if(!this.loc.equals(U.loc))return!1;function O(y,g){if(y===void 0||y===0)return g===void 0||g===0;return y===g}for(let y of S4)if(!O(this.values[y],U.values[y]))return!1;return!0}},jZ="Invalid Interval";function qO(U,O){if(!U||!U.isValid)return S6.invalid("missing or invalid start");else if(!O||!O.isValid)return S6.invalid("missing or invalid end");else if(OU}isBefore(U){if(!this.isValid)return!1;return this.e<=U}contains(U){if(!this.isValid)return!1;return this.s<=U&&this.e>U}set({start:U,end:O}={}){if(!this.isValid)return this;return S6.fromDateTimes(U||this.s,O||this.e)}splitAt(...U){if(!this.isValid)return[];let O=U.map(D7).filter((c)=>this.contains(c)).sort(),y=[],{s:g}=this,i=0;while(g+this.e?this.e:c;y.push(S6.fromDateTimes(g,a)),g=a,i+=1}return y}splitBy(U){let O=o1.fromDurationLike(U);if(!this.isValid||!O.isValid||O.as("milliseconds")===0)return[];let{s:y}=this,g=1,i,c=[];while(yK1*g));i=+a>+this.e?this.e:a,c.push(S6.fromDateTimes(y,i)),y=i,g+=1}return c}divideEqually(U){if(!this.isValid)return[];return this.splitBy(this.length()/U).slice(0,U)}overlaps(U){return this.e>U.s&&this.s=U.e}equals(U){if(!this.isValid||!U.isValid)return!1;return this.s.equals(U.s)&&this.e.equals(U.e)}intersection(U){if(!this.isValid)return this;let O=this.s>U.s?this.s:U.s,y=this.e=y)return null;else return S6.fromDateTimes(O,y)}union(U){if(!this.isValid)return this;let O=this.sU.e?this.e:U.e;return S6.fromDateTimes(O,y)}static merge(U){let[O,y]=U.sort((g,i)=>g.s-i.s).reduce(([g,i],c)=>{if(!i)return[g,c];else if(i.overlaps(c)||i.abutsStart(c))return[g,i.union(c)];else return[g.concat([i]),c]},[[],null]);if(y)O.push(y);return O}static xor(U){let O=null,y=0,g=[],i=U.map((K1)=>[{time:K1.s,type:"s"},{time:K1.e,type:"e"}]),c=Array.prototype.concat(...i),a=c.sort((K1,T1)=>K1.time-T1.time);for(let K1 of a)if(y+=K1.type==="s"?1:-1,y===1)O=K1.time;else{if(O&&+O!==+K1.time)g.push(S6.fromDateTimes(O,K1.time));O=null}return S6.merge(g)}difference(...U){return S6.xor([this].concat(U)).map((O)=>this.intersection(O)).filter((O)=>O&&!O.isEmpty())}toString(){if(!this.isValid)return jZ;return`[${this.s.toISO()} – ${this.e.toISO()})`}toLocaleString(U=B,O={}){return this.isValid?g1.create(this.s.loc.clone(O),U).formatInterval(this):jZ}toISO(U){if(!this.isValid)return jZ;return`${this.s.toISO(U)}/${this.e.toISO(U)}`}toISODate(){if(!this.isValid)return jZ;return`${this.s.toISODate()}/${this.e.toISODate()}`}toISOTime(U){if(!this.isValid)return jZ;return`${this.s.toISOTime(U)}/${this.e.toISOTime(U)}`}toFormat(U,{separator:O=" – "}={}){if(!this.isValid)return jZ;return`${this.s.toFormat(U)}${O}${this.e.toFormat(U)}`}toDuration(U,O){if(!this.isValid)return o1.invalid(this.invalidReason);return this.e.diff(this.s,U,O)}mapEndpoints(U){return S6.fromDateTimes(U(this.s),U(this.e))}},XJ=class{static hasDST(U=J0.defaultZone){let O=Z0.now().setZone(U).set({month:12});return!U.isUniversal&&O.offset!==O.set({month:6}).offset}static isValidIANAZone(U){return P1.isValidZone(U)}static normalizeZone(U){return D0(U,J0.defaultZone)}static months(U="long",{locale:O=null,numberingSystem:y=null,locObj:g=null,outputCalendar:i="gregory"}={}){return(g||t1.create(O,y,i)).months(U)}static monthsFormat(U="long",{locale:O=null,numberingSystem:y=null,locObj:g=null,outputCalendar:i="gregory"}={}){return(g||t1.create(O,y,i)).months(U,!0)}static weekdays(U="long",{locale:O=null,numberingSystem:y=null,locObj:g=null}={}){return(g||t1.create(O,y,null)).weekdays(U)}static weekdaysFormat(U="long",{locale:O=null,numberingSystem:y=null,locObj:g=null}={}){return(g||t1.create(O,y,null)).weekdays(U,!0)}static meridiems({locale:U=null}={}){return t1.create(U).meridiems()}static eras(U="short",{locale:O=null}={}){return t1.create(O,null,"gregory").eras(U)}static features(){return{relative:e8()}}};function VB(U,O){let y=(i)=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),g=y(O)-y(U);return Math.floor(o1.fromMillis(g).as("days"))}function HO(U,O,y){let g=[["years",(T1,m1)=>m1.year-T1.year],["quarters",(T1,m1)=>m1.quarter-T1.quarter+(m1.year-T1.year)*4],["months",(T1,m1)=>m1.month-T1.month+(m1.year-T1.year)*12],["weeks",(T1,m1)=>{let e1=VB(T1,m1);return(e1-e1%7)/7}],["days",VB]],i={},c=U,a,K1;for(let[T1,m1]of g)if(y.indexOf(T1)>=0)if(a=T1,i[T1]=m1(U,O),K1=c.plus(i),K1>O){if(i[T1]--,U=c.plus(i),U>O)K1=U,i[T1]--,U=c.plus(i)}else U=K1;return[U,i,K1,a]}function zO(U,O,y,g){let[i,c,a,K1]=HO(U,O,y),T1=O-i,m1=y.filter((v0)=>["hours","minutes","seconds","milliseconds"].indexOf(v0)>=0);if(m1.length===0){if(a0)return o1.fromMillis(T1,g).shiftTo(...m1).plus(e1);else return e1}var I3={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},PB={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},KO=I3.hanidec.replace(/[\[|\]]/g,"").split("");function $O(U){let O=parseInt(U,10);if(isNaN(O)){O="";for(let y=0;y=c&&g<=a)O+=g-c}}return parseInt(O,10)}else return O}function T9({numberingSystem:U},O=""){return new RegExp(`${I3[U||"latn"]}${O}`)}var BO="missing Intl.DateTimeFormat.formatToParts support";function p0(U,O=(y)=>y){return{regex:U,deser:([y])=>O($O(y))}}var UO=String.fromCharCode(160),FB=`[ ${UO}]`,DB=new RegExp(FB,"g");function VO(U){return U.replace(/\./g,"\\.?").replace(DB,FB)}function LB(U){return U.replace(/\./g,"").replace(DB," ").toLowerCase()}function M9(U,O){if(U===null)return null;else return{regex:RegExp(U.map(VO).join("|")),deser:([y])=>U.findIndex((g)=>LB(y)===LB(g))+O}}function CB(U,O){return{regex:U,deser:([,y,g])=>d8(y,g),groups:O}}function JJ(U){return{regex:U,deser:([O])=>O}}function PO(U){return U.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function FO(U,O){let y=T9(O),g=T9(O,"{2}"),i=T9(O,"{3}"),c=T9(O,"{4}"),a=T9(O,"{6}"),K1=T9(O,"{1,2}"),T1=T9(O,"{1,3}"),m1=T9(O,"{1,6}"),e1=T9(O,"{1,9}"),v0=T9(O,"{2,4}"),_1=T9(O,"{4,6}"),W0=(n6)=>({regex:RegExp(PO(n6.val)),deser:([G9])=>G9,literal:!0}),k6=((n6)=>{if(U.literal)return W0(n6);switch(n6.val){case"G":return M9(O.eras("short"),0);case"GG":return M9(O.eras("long"),0);case"y":return p0(m1);case"yy":return p0(v0,U6);case"yyyy":return p0(c);case"yyyyy":return p0(_1);case"yyyyyy":return p0(a);case"M":return p0(K1);case"MM":return p0(g);case"MMM":return M9(O.months("short",!0),1);case"MMMM":return M9(O.months("long",!0),1);case"L":return p0(K1);case"LL":return p0(g);case"LLL":return M9(O.months("short",!1),1);case"LLLL":return M9(O.months("long",!1),1);case"d":return p0(K1);case"dd":return p0(g);case"o":return p0(T1);case"ooo":return p0(i);case"HH":return p0(g);case"H":return p0(K1);case"hh":return p0(g);case"h":return p0(K1);case"mm":return p0(g);case"m":return p0(K1);case"q":return p0(K1);case"qq":return p0(g);case"s":return p0(K1);case"ss":return p0(g);case"S":return p0(T1);case"SSS":return p0(i);case"u":return JJ(e1);case"uu":return JJ(K1);case"uuu":return p0(y);case"a":return M9(O.meridiems(),0);case"kkkk":return p0(c);case"kk":return p0(v0,U6);case"W":return p0(K1);case"WW":return p0(g);case"E":case"c":return p0(y);case"EEE":return M9(O.weekdays("short",!1),1);case"EEEE":return M9(O.weekdays("long",!1),1);case"ccc":return M9(O.weekdays("short",!0),1);case"cccc":return M9(O.weekdays("long",!0),1);case"Z":case"ZZ":return CB(new RegExp(`([+-]${K1.source})(?::(${g.source}))?`),2);case"ZZZ":return CB(new RegExp(`([+-]${K1.source})(${g.source})?`),2);case"z":return JJ(/[a-z_+-/]{1,256}?/i);case" ":return JJ(/[^\S\n\r]/);default:return W0(n6)}})(U)||{invalidReason:BO};return k6.token=U,k6}var DO={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function LO(U,O,y){let{type:g,value:i}=U;if(g==="literal"){let T1=/^\s+$/.test(i);return{literal:!T1,val:T1?" ":i}}let c=O[g],a=g;if(g==="hour")if(O.hour12!=null)a=O.hour12?"hour12":"hour24";else if(O.hourCycle!=null)if(O.hourCycle==="h11"||O.hourCycle==="h12")a="hour12";else a="hour24";else a=y.hour12?"hour12":"hour24";let K1=DO[a];if(typeof K1==="object")K1=K1[c];if(K1)return{literal:!1,val:K1};return}function CO(U){return[`^${U.map((y)=>y.regex).reduce((y,g)=>`${y}(${g.source})`,"")}$`,U]}function NO(U,O,y){let g=U.match(O);if(g){let i={},c=1;for(let a in y)if(r0(y,a)){let K1=y[a],T1=K1.groups?K1.groups+1:1;if(!K1.literal&&K1.token)i[K1.token.val[0]]=K1.deser(g.slice(c,c+T1));c+=T1}return[g,i]}else return[g,{}]}function TO(U){let O=(c)=>{switch(c){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},y=null,g;if(!v1(U.z))y=P1.create(U.z);if(!v1(U.Z)){if(!y)y=new Y0(U.Z);g=U.Z}if(!v1(U.q))U.M=(U.q-1)*3+1;if(!v1(U.h)){if(U.h<12&&U.a===1)U.h+=12;else if(U.h===12&&U.a===0)U.h=0}if(U.G===0&&U.y)U.y=-U.y;if(!v1(U.u))U.S=H6(U.u);return[Object.keys(U).reduce((c,a)=>{let K1=O(a);if(K1)c[K1]=U[a];return c},{}),y,g]}var R3=null;function MO(){if(!R3)R3=Z0.fromMillis(1555555555555);return R3}function IO(U,O){if(U.literal)return U;let y=g1.macroTokenToFormatOpts(U.val),g=MB(y,O);if(g==null||g.includes(void 0))return U;return g}function NB(U,O){return Array.prototype.concat(...U.map((y)=>IO(y,O)))}function TB(U,O,y){let g=NB(g1.parseFormat(y),U),i=g.map((a)=>FO(a,U)),c=i.find((a)=>a.invalidReason);if(c)return{input:O,tokens:g,invalidReason:c.invalidReason};else{let[a,K1]=CO(i),T1=RegExp(a,"i"),[m1,e1]=NO(O,T1,K1),[v0,_1,W0]=e1?TO(e1):[null,null,void 0];if(r0(e1,"a")&&r0(e1,"H"))throw new Y("Can't include meridiem when specifying 24-hour format");return{input:O,tokens:g,regex:T1,rawMatches:m1,matches:e1,result:v0,zone:_1,specificOffset:W0}}}function RO(U,O,y){let{result:g,zone:i,specificOffset:c,invalidReason:a}=TB(U,O,y);return[g,i,c,a]}function MB(U,O){if(!U)return null;let g=g1.create(O,U).dtFormatter(MO()),i=g.formatToParts(),c=g.resolvedOptions();return i.map((a)=>LO(a,U,c))}var IB=[0,31,59,90,120,151,181,212,243,273,304,334],RB=[0,31,60,91,121,152,182,213,244,274,305,335];function J9(U,O){return new x1("unit out of range",`you specified ${O} (of type ${typeof O}) as a ${U}, which is invalid`)}function AB(U,O,y){let g=new Date(Date.UTC(U,O-1,y));if(U<100&&U>=0)g.setUTCFullYear(g.getUTCFullYear()-1900);let i=g.getUTCDay();return i===0?7:i}function OB(U,O,y){return y+(Z6(U)?RB:IB)[O-1]}function wB(U,O){let y=Z6(U)?RB:IB,g=y.findIndex((c)=>cn0(O))K1=O+1,a=1;else K1=O;return K0({weekYear:K1,weekNumber:a,weekday:c},N9(U))}function EB(U){let{weekYear:O,weekNumber:y,weekday:g}=U,i=AB(O,1,4),c=e0(O),a=y*7+g-i-3,K1;if(a<1)K1=O-1,a+=e0(K1);else if(a>c)K1=O+1,a-=e0(O);else K1=O;let{month:T1,day:m1}=wB(K1,a);return K0({year:K1,month:T1,day:m1},N9(U))}function O3(U){let{year:O,month:y,day:g}=U,i=OB(O,y,g);return K0({year:O,ordinal:i},N9(U))}function jB(U){let{year:O,ordinal:y}=U,{month:g,day:i}=wB(O,y);return K0({year:O,month:g,day:i},N9(U))}function AO(U){let O=j6(U.weekYear),y=u0(U.weekNumber,1,n0(U.weekYear)),g=u0(U.weekday,1,7);if(!O)return J9("weekYear",U.weekYear);else if(!y)return J9("week",U.week);else if(!g)return J9("weekday",U.weekday);else return!1}function OO(U){let O=j6(U.year),y=u0(U.ordinal,1,e0(U.year));if(!O)return J9("year",U.year);else if(!y)return J9("ordinal",U.ordinal);else return!1}function SB(U){let O=j6(U.year),y=u0(U.month,1,12),g=u0(U.day,1,z6(U.year,U.month));if(!O)return J9("year",U.year);else if(!y)return J9("month",U.month);else if(!g)return J9("day",U.day);else return!1}function kB(U){let{hour:O,minute:y,second:g,millisecond:i}=U,c=u0(O,0,23)||O===24&&y===0&&g===0&&i===0,a=u0(y,0,59),K1=u0(g,0,59),T1=u0(i,0,999);if(!c)return J9("hour",O);else if(!a)return J9("minute",y);else if(!K1)return J9("second",g);else if(!T1)return J9("millisecond",i);else return!1}var w3="Invalid DateTime",yB=8640000000000000;function GJ(U){return new x1("unsupported zone",`the zone "${U.name}" is not supported`)}function E3(U){if(U.weekData===null)U.weekData=A3(U.c);return U.weekData}function k4(U,O){let y={ts:U.ts,zone:U.zone,c:U.c,o:U.o,loc:U.loc,invalid:U.invalid};return new Z0(m9(K0(K0({},y),O),{old:y}))}function xB(U,O,y){let g=U-O*60*1000,i=y.offset(g);if(O===i)return[g,O];g-=(i-O)*60*1000;let c=y.offset(g);if(i===c)return[g,i];return[U-Math.min(i,c)*60*1000,Math.max(i,c)]}function YJ(U,O){U+=O*60*1000;let y=new Date(U);return{year:y.getUTCFullYear(),month:y.getUTCMonth()+1,day:y.getUTCDate(),hour:y.getUTCHours(),minute:y.getUTCMinutes(),second:y.getUTCSeconds(),millisecond:y.getUTCMilliseconds()}}function WJ(U,O,y){return xB(X6(U),O,y)}function vB(U,O){let y=U.o,g=U.c.year+Math.trunc(O.years),i=U.c.month+Math.trunc(O.months)+Math.trunc(O.quarters)*3,c=m9(K0({},U.c),{year:g,month:i,day:Math.min(U.c.day,z6(g,i))+Math.trunc(O.days)+Math.trunc(O.weeks)*7}),a=o1.fromObject({years:O.years-Math.trunc(O.years),quarters:O.quarters-Math.trunc(O.quarters),months:O.months-Math.trunc(O.months),weeks:O.weeks-Math.trunc(O.weeks),days:O.days-Math.trunc(O.days),hours:O.hours,minutes:O.minutes,seconds:O.seconds,milliseconds:O.milliseconds}).as("milliseconds"),K1=X6(c),[T1,m1]=xB(K1,y,U.zone);if(a!==0)T1+=a,m1=U.zone.offset(T1);return{ts:T1,o:m1}}function F7(U,O,y,g,i,c){let{setZone:a,zone:K1}=y;if(U&&Object.keys(U).length!==0||O){let T1=O||K1,m1=Z0.fromObject(U,m9(K0({},y),{zone:T1,specificOffset:c}));return a?m1:m1.setZone(K1)}else return Z0.invalid(new x1("unparsable",`the input "${i}" can't be parsed as ${g}`))}function qJ(U,O,y=!0){return U.isValid?g1.create(t1.create("en-US"),{allowZ:y,forceSimple:!0}).formatDateTimeFromString(U,O):null}function j3(U,O){let y=U.c.year>9999||U.c.year<0,g="";if(y&&U.c.year>=0)g+="+";if(g+=M0(U.c.year,y?6:4),O)g+="-",g+=M0(U.c.month),g+="-",g+=M0(U.c.day);else g+=M0(U.c.month),g+=M0(U.c.day);return g}function gB(U,O,y,g,i,c){let a=M0(U.c.hour);if(O){if(a+=":",a+=M0(U.c.minute),U.c.millisecond!==0||U.c.second!==0||!y)a+=":"}else a+=M0(U.c.minute);if(U.c.millisecond!==0||U.c.second!==0||!y){if(a+=M0(U.c.second),U.c.millisecond!==0||!g)a+=".",a+=M0(U.c.millisecond,3)}if(i)if(U.isOffsetFixed&&U.offset===0&&!c)a+="Z";else if(U.o<0)a+="-",a+=M0(Math.trunc(-U.o/60)),a+=":",a+=M0(Math.trunc(-U.o%60));else a+="+",a+=M0(Math.trunc(U.o/60)),a+=":",a+=M0(Math.trunc(U.o%60));if(c)a+="["+U.zone.ianaName+"]";return a}var hB={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},wO={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},EO={ordinal:1,hour:0,minute:0,second:0,millisecond:0},fB=["year","month","day","hour","minute","second","millisecond"],jO=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],SO=["year","ordinal","hour","minute","second","millisecond"];function bB(U){let O={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[U.toLowerCase()];if(!O)throw new H(U);return O}function mB(U,O){let y=D0(O.zone,J0.defaultZone),g=t1.fromObject(O),i=J0.now(),c,a;if(!v1(U.year)){for(let m1 of fB)if(v1(U[m1]))U[m1]=hB[m1];let K1=SB(U)||kB(U);if(K1)return Z0.invalid(K1);let T1=y.offset(i);[c,a]=WJ(U,T1,y)}else c=i;return new Z0({ts:c,zone:y,loc:g,o:a})}function _B(U,O,y){let g=v1(y.round)?!0:y.round,i=(a,K1)=>{return a=B6(a,g||y.calendary?0:2,!0),O.loc.clone(y).relFormatter(y).format(a,K1)},c=(a)=>{if(y.calendary)if(!O.hasSame(U,a))return O.startOf(a).diff(U.startOf(a),a).get(a);else return 0;else return O.diff(U,a).get(a)};if(y.unit)return i(c(y.unit),y.unit);for(let a of y.units){let K1=c(a);if(Math.abs(K1)>=1)return i(K1,a)}return i(U>O?-0:0,y.units[y.units.length-1])}function dB(U){let O={},y;if(U.length>0&&typeof U[U.length-1]==="object")O=U[U.length-1],y=Array.from(U).slice(0,U.length-1);else y=Array.from(U);return[O,y]}var Z0=class{constructor(U){let O=U.zone||J0.defaultZone,y=U.invalid||(Number.isNaN(U.ts)?new x1("invalid input"):null)||(!O.isValid?GJ(O):null);this.ts=v1(U.ts)?J0.now():U.ts;let g=null,i=null;if(!y)if(U.old&&U.old.ts===this.ts&&U.old.zone.equals(O))[g,i]=[U.old.c,U.old.o];else{let a=O.offset(this.ts);g=YJ(this.ts,a),y=Number.isNaN(g.year)?new x1("invalid input"):null,g=y?null:g,i=y?null:a}this._zone=O,this.loc=U.loc||t1.create(),this.invalid=y,this.weekData=null,this.c=g,this.o=i,this.isLuxonDateTime=!0}static now(){return new Z0({})}static local(){let[U,O]=dB(arguments),[y,g,i,c,a,K1,T1]=O;return mB({year:y,month:g,day:i,hour:c,minute:a,second:K1,millisecond:T1},U)}static utc(){let[U,O]=dB(arguments),[y,g,i,c,a,K1,T1]=O;return U.zone=Y0.utcInstance,mB({year:y,month:g,day:i,hour:c,minute:a,second:K1,millisecond:T1},U)}static fromJSDate(U,O={}){let y=i6(U)?U.valueOf():NaN;if(Number.isNaN(y))return Z0.invalid("invalid input");let g=D0(O.zone,J0.defaultZone);if(!g.isValid)return Z0.invalid(GJ(g));return new Z0({ts:y,zone:g,loc:t1.fromObject(O)})}static fromMillis(U,O={}){if(!W6(U))throw new K(`fromMillis requires a numerical input, but received a ${typeof U} with value ${U}`);else if(U<-yB||U>yB)return Z0.invalid("Timestamp out of range");else return new Z0({ts:U,zone:D0(O.zone,J0.defaultZone),loc:t1.fromObject(O)})}static fromSeconds(U,O={}){if(!W6(U))throw new K("fromSeconds requires a numerical input");else return new Z0({ts:U*1000,zone:D0(O.zone,J0.defaultZone),loc:t1.fromObject(O)})}static fromObject(U,O={}){U=U||{};let y=D0(O.zone,J0.defaultZone);if(!y.isValid)return Z0.invalid(GJ(y));let g=J0.now(),i=!v1(O.specificOffset)?O.specificOffset:y.offset(g),c=hQ(U,bB),a=!v1(c.ordinal),K1=!v1(c.year),T1=!v1(c.month)||!v1(c.day),m1=K1||T1,e1=c.weekYear||c.weekNumber,v0=t1.fromObject(O);if((m1||a)&&e1)throw new Y("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(T1&&a)throw new Y("Can't mix ordinal dates with month/day");let _1=e1||c.weekday&&!m1,W0,J6,k6=YJ(g,i);if(_1)W0=jO,J6=wO,k6=A3(k6);else if(a)W0=SO,J6=EO,k6=O3(k6);else W0=fB,J6=hB;let n6=!1;for(let q0 of W0){let P6=c[q0];if(!v1(P6))n6=!0;else if(n6)c[q0]=J6[q0];else c[q0]=k6[q0]}let G9=_1?AO(c):a?OO(c):SB(c),R9=G9||kB(c);if(R9)return Z0.invalid(R9);let HQ=_1?EB(c):a?jB(c):c,[k1,C0]=WJ(HQ,i,y),A6=new Z0({ts:k1,zone:y,o:C0,loc:v0});if(c.weekday&&m1&&U.weekday!==A6.weekday)return Z0.invalid("mismatched weekday",`you can't specify both a weekday of ${c.weekday} and a date of ${A6.toISO()}`);return A6}static fromISO(U,O={}){let[y,g]=nA(U);return F7(y,g,O,"ISO 8601",U)}static fromRFC2822(U,O={}){let[y,g]=oA(U);return F7(y,g,O,"RFC 2822",U)}static fromHTTP(U,O={}){let[y,g]=aA(U);return F7(y,g,O,"HTTP",O)}static fromFormat(U,O,y={}){if(v1(U)||v1(O))throw new K("fromFormat requires an input string and a format");let{locale:g=null,numberingSystem:i=null}=y,c=t1.fromOpts({locale:g,numberingSystem:i,defaultToEN:!0}),[a,K1,T1,m1]=RO(c,U,O);if(m1)return Z0.invalid(m1);else return F7(a,K1,y,`format ${O}`,U,T1)}static fromString(U,O,y={}){return Z0.fromFormat(U,O,y)}static fromSQL(U,O={}){let[y,g]=XO(U);return F7(y,g,O,"SQL",U)}static invalid(U,O=null){if(!U)throw new K("need to specify a reason the DateTime is invalid");let y=U instanceof x1?U:new x1(U,O);if(J0.throwOnInvalid)throw new Z(y);else return new Z0({invalid:y})}static isDateTime(U){return U&&U.isLuxonDateTime||!1}static parseFormatForOpts(U,O={}){let y=MB(U,t1.fromObject(O));return!y?null:y.map((g)=>g?g.val:null).join("")}static expandFormat(U,O={}){return NB(g1.parseFormat(U),t1.fromObject(O)).map((g)=>g.val).join("")}get(U){return this[U]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?E3(this).weekYear:NaN}get weekNumber(){return this.isValid?E3(this).weekNumber:NaN}get weekday(){return this.isValid?E3(this).weekday:NaN}get ordinal(){return this.isValid?O3(this.c).ordinal:NaN}get monthShort(){return this.isValid?XJ.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?XJ.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?XJ.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?XJ.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){if(this.isValid)return this.zone.offsetName(this.ts,{format:"short",locale:this.locale});else return null}get offsetNameLong(){if(this.isValid)return this.zone.offsetName(this.ts,{format:"long",locale:this.locale});else return null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){if(this.isOffsetFixed)return!1;else return this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let U=86400000,O=60000,y=X6(this.c),g=this.zone.offset(y-U),i=this.zone.offset(y+U),c=this.zone.offset(y-g*O),a=this.zone.offset(y-i*O);if(c===a)return[this];let K1=y-c*O,T1=y-a*O,m1=YJ(K1,c),e1=YJ(T1,a);if(m1.hour===e1.hour&&m1.minute===e1.minute&&m1.second===e1.second&&m1.millisecond===e1.millisecond)return[k4(this,{ts:K1}),k4(this,{ts:T1})];return[this]}get isInLeapYear(){return Z6(this.year)}get daysInMonth(){return z6(this.year,this.month)}get daysInYear(){return this.isValid?e0(this.year):NaN}get weeksInWeekYear(){return this.isValid?n0(this.weekYear):NaN}resolvedLocaleOptions(U={}){let{locale:O,numberingSystem:y,calendar:g}=g1.create(this.loc.clone(U),U).resolvedOptions(this);return{locale:O,numberingSystem:y,outputCalendar:g}}toUTC(U=0,O={}){return this.setZone(Y0.instance(U),O)}toLocal(){return this.setZone(J0.defaultZone)}setZone(U,{keepLocalTime:O=!1,keepCalendarTime:y=!1}={}){if(U=D0(U,J0.defaultZone),U.equals(this.zone))return this;else if(!U.isValid)return Z0.invalid(GJ(U));else{let g=this.ts;if(O||y){let i=U.offset(this.ts),c=this.toObject();[g]=WJ(c,i,U)}return k4(this,{ts:g,zone:U})}}reconfigure({locale:U,numberingSystem:O,outputCalendar:y}={}){let g=this.loc.clone({locale:U,numberingSystem:O,outputCalendar:y});return k4(this,{loc:g})}setLocale(U){return this.reconfigure({locale:U})}set(U){if(!this.isValid)return this;let O=hQ(U,bB),y=!v1(O.weekYear)||!v1(O.weekNumber)||!v1(O.weekday),g=!v1(O.ordinal),i=!v1(O.year),c=!v1(O.month)||!v1(O.day),a=i||c,K1=O.weekYear||O.weekNumber;if((a||g)&&K1)throw new Y("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&g)throw new Y("Can't mix ordinal dates with month/day");let T1;if(y)T1=EB(K0(K0({},A3(this.c)),O));else if(!v1(O.ordinal))T1=jB(K0(K0({},O3(this.c)),O));else if(T1=K0(K0({},this.toObject()),O),v1(O.day))T1.day=Math.min(z6(T1.year,T1.month),T1.day);let[m1,e1]=WJ(T1,this.o,this.zone);return k4(this,{ts:m1,o:e1})}plus(U){if(!this.isValid)return this;let O=o1.fromDurationLike(U);return k4(this,vB(this,O))}minus(U){if(!this.isValid)return this;let O=o1.fromDurationLike(U).negate();return k4(this,vB(this,O))}startOf(U){if(!this.isValid)return this;let O={},y=o1.normalizeUnit(U);switch(y){case"years":O.month=1;case"quarters":case"months":O.day=1;case"weeks":case"days":O.hour=0;case"hours":O.minute=0;case"minutes":O.second=0;case"seconds":O.millisecond=0;break}if(y==="weeks")O.weekday=1;if(y==="quarters"){let g=Math.ceil(this.month/3);O.month=(g-1)*3+1}return this.set(O)}endOf(U){return this.isValid?this.plus({[U]:1}).startOf(U).minus(1):this}toFormat(U,O={}){return this.isValid?g1.create(this.loc.redefaultToEN(O)).formatDateTimeFromString(this,U):w3}toLocaleString(U=B,O={}){return this.isValid?g1.create(this.loc.clone(O),U).formatDateTime(this):w3}toLocaleParts(U={}){return this.isValid?g1.create(this.loc.clone(U),U).formatDateTimeParts(this):[]}toISO({format:U="extended",suppressSeconds:O=!1,suppressMilliseconds:y=!1,includeOffset:g=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;let c=U==="extended",a=j3(this,c);return a+="T",a+=gB(this,c,O,y,g,i),a}toISODate({format:U="extended"}={}){if(!this.isValid)return null;return j3(this,U==="extended")}toISOWeekDate(){return qJ(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:U=!1,suppressSeconds:O=!1,includeOffset:y=!0,includePrefix:g=!1,extendedZone:i=!1,format:c="extended"}={}){if(!this.isValid)return null;return(g?"T":"")+gB(this,c==="extended",O,U,y,i)}toRFC2822(){return qJ(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return qJ(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){if(!this.isValid)return null;return j3(this,!0)}toSQLTime({includeOffset:U=!0,includeZone:O=!1,includeOffsetSpace:y=!0}={}){let g="HH:mm:ss.SSS";if(O||U){if(y)g+=" ";if(O)g+="z";else if(U)g+="ZZ"}return qJ(this,g,!0)}toSQL(U={}){if(!this.isValid)return null;return`${this.toSQLDate()} ${this.toSQLTime(U)}`}toString(){return this.isValid?this.toISO():w3}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1000:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1000):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(U={}){if(!this.isValid)return{};let O=K0({},this.c);if(U.includeConfig)O.outputCalendar=this.outputCalendar,O.numberingSystem=this.loc.numberingSystem,O.locale=this.loc.locale;return O}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(U,O="milliseconds",y={}){if(!this.isValid||!U.isValid)return o1.invalid("created by diffing an invalid DateTime");let g=K0({locale:this.locale,numberingSystem:this.numberingSystem},y),i=_8(O).map(o1.normalizeUnit),c=U.valueOf()>this.valueOf(),a=c?this:U,K1=c?U:this,T1=zO(a,K1,i,g);return c?T1.negate():T1}diffNow(U="milliseconds",O={}){return this.diff(Z0.now(),U,O)}until(U){return this.isValid?S6.fromDateTimes(this,U):this}hasSame(U,O){if(!this.isValid)return!1;let y=U.valueOf(),g=this.setZone(U.zone,{keepLocalTime:!0});return g.startOf(O)<=y&&y<=g.endOf(O)}equals(U){return this.isValid&&U.isValid&&this.valueOf()===U.valueOf()&&this.zone.equals(U.zone)&&this.loc.equals(U.loc)}toRelative(U={}){if(!this.isValid)return null;let O=U.base||Z0.fromObject({},{zone:this.zone}),y=U.padding?thisO.valueOf(),Math.min)}static max(...U){if(!U.every(Z0.isDateTime))throw new K("max requires all arguments be DateTimes");return b0(U,(O)=>O.valueOf(),Math.max)}static fromFormatExplain(U,O,y={}){let{locale:g=null,numberingSystem:i=null}=y,c=t1.fromOpts({locale:g,numberingSystem:i,defaultToEN:!0});return TB(c,U,O)}static fromStringExplain(U,O,y={}){return Z0.fromFormatExplain(U,O,y)}static get DATE_SHORT(){return B}static get DATE_MED(){return D}static get DATE_MED_WITH_WEEKDAY(){return F}static get DATE_FULL(){return P}static get DATE_HUGE(){return N}static get TIME_SIMPLE(){return C}static get TIME_WITH_SECONDS(){return L}static get TIME_WITH_SHORT_OFFSET(){return V}static get TIME_WITH_LONG_OFFSET(){return M}static get TIME_24_SIMPLE(){return I}static get TIME_24_WITH_SECONDS(){return E}static get TIME_24_WITH_SHORT_OFFSET(){return w}static get TIME_24_WITH_LONG_OFFSET(){return A}static get DATETIME_SHORT(){return R}static get DATETIME_SHORT_WITH_SECONDS(){return T}static get DATETIME_MED(){return S}static get DATETIME_MED_WITH_SECONDS(){return v}static get DATETIME_MED_WITH_WEEKDAY(){return h}static get DATETIME_FULL(){return x}static get DATETIME_FULL_WITH_SECONDS(){return p}static get DATETIME_HUGE(){return n}static get DATETIME_HUGE_WITH_SECONDS(){return t}};function D7(U){if(Z0.isDateTime(U))return U;else if(U&&U.valueOf&&W6(U.valueOf()))return Z0.fromJSDate(U);else if(U&&typeof U==="object")return Z0.fromObject(U);else throw new K(`Unknown datetime argument: ${U}, of type ${typeof U}`)}var S3={renderNullAs:"\\-",taskCompletionTracking:!1,taskCompletionUseEmojiShorthand:!1,taskCompletionText:"completion",taskCompletionDateFormat:"yyyy-MM-dd",recursiveSubTaskCompletion:!1,warnOnEmptyResult:!0,refreshEnabled:!0,refreshInterval:2500,defaultDateFormat:"MMMM dd, yyyy",defaultDateTimeFormat:"h:mm a - MMMM dd, yyyy",maxRecursiveRenderDepth:4,tableIdColumnName:"File",tableGroupColumnName:"Group",showResultCount:!0},kO={allowHtml:!0};K0(K0(K0({},S3),kO),{inlineQueryPrefix:"=",inlineJsQueryPrefix:"$=",inlineQueriesInCodeblocks:!0,enableInlineDataview:!0,enableDataviewJs:!1,enableInlineDataviewJs:!1,prettyRenderInlineFields:!0,prettyRenderInlineFieldsInLivePreview:!0,dataviewJsKeyword:"dataviewjs"});var uB=class{constructor(U){b8(this,"value"),b8(this,"successful"),this.value=U,this.successful=!0}map(U){return new uB(U(this.value))}flatMap(U){return U(this.value)}mapErr(U){return this}bimap(U,O){return this.map(U)}orElse(U){return this.value}cast(){return this}orElseThrow(U){return this.value}},pB=class{constructor(U){b8(this,"error"),b8(this,"successful"),this.error=U,this.successful=!1}map(U){return this}flatMap(U){return this}mapErr(U){return new pB(U(this.error))}bimap(U,O){return this.mapErr(O)}orElse(U){return U}cast(){return this}orElseThrow(U){if(U)throw new Error(U(this.error));else throw new Error(""+this.error)}},HJ;(function(U){function O(c){return new uB(c)}U.success=O;function y(c){return new pB(c)}U.failure=y;function g(c,a,K1){if(c.successful)if(a.successful)return K1(c.value,a.value);else return y(a.error);else return y(c.error)}U.flatMap2=g;function i(c,a,K1){return g(c,a,(T1,m1)=>O(K1(T1,m1)))}U.map2=i})(HJ||(HJ={}));var yO=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{},zJ={exports:{}};zJ.exports,function(U,O){(function(y,g){U.exports=g()})(typeof self!="undefined"?self:yO,function(){return function(y){var g={};function i(c){if(g[c])return g[c].exports;var a=g[c]={i:c,l:!1,exports:{}};return y[c].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=y,i.c=g,i.d=function(c,a,K1){i.o(c,a)||Object.defineProperty(c,a,{configurable:!1,enumerable:!0,get:K1})},i.r=function(c){Object.defineProperty(c,"__esModule",{value:!0})},i.n=function(c){var a=c&&c.__esModule?function(){return c.default}:function(){return c};return i.d(a,"a",a),a},i.o=function(c,a){return Object.prototype.hasOwnProperty.call(c,a)},i.p="",i(i.s=0)}([function(y,g,i){function c(s){if(!(this instanceof c))return new c(s);this._=s}var a=c.prototype;function K1(s,q1){for(var F1=0;F1>7),buf:function(y1){var h1=T1(function(f1,V0,K6,V8){return f1.concat(K6===V8.length-1?Buffer.from([V0,0]).readUInt16BE(0):V8.readUInt16BE(K6))},[],y1);return Buffer.from(m1(function(f1){return(f1<<1&65535)>>8},h1))}(F1.buf)}}),F1}function v0(){return typeof Buffer!="undefined"}function _1(){if(!v0())throw new Error("Buffer global does not exist; please use webpack if you need to parse Buffers in the browser.")}function W0(s){_1();var q1=T1(function(h1,f1){return h1+f1},0,s);if(q1%8!=0)throw new Error("The bits ["+s.join(", ")+"] add up to "+q1+" which is not an even number of bytes; the total should be divisible by 8");var F1,R1=q1/8,y1=(F1=function(h1){return h1>48},T1(function(h1,f1){return h1||(F1(f1)?f1:h1)},null,s));if(y1)throw new Error(y1+" bit range requested exceeds 48 bit (6 byte) Number max.");return new c(function(h1,f1){var V0=R1+f1;return V0>h1.length?P6(f1,R1.toString()+" bytes"):q0(V0,T1(function(K6,V8){var o6=e1(V8,K6.buf);return{coll:K6.coll.concat(o6.v),buf:o6.buf}},{coll:[],buf:h1.slice(f1,V0)},s).coll)})}function J6(s,q1){return new c(function(F1,R1){return _1(),R1+q1>F1.length?P6(R1,q1+" bytes for "+s):q0(R1+q1,F1.slice(R1,R1+q1))})}function k6(s,q1){if(typeof(F1=q1)!="number"||Math.floor(F1)!==F1||q1<0||q1>6)throw new Error(s+" requires integer length in range [0, 6].");var F1}function n6(s){return k6("uintBE",s),J6("uintBE("+s+")",s).map(function(q1){return q1.readUIntBE(0,s)})}function G9(s){return k6("uintLE",s),J6("uintLE("+s+")",s).map(function(q1){return q1.readUIntLE(0,s)})}function R9(s){return k6("intBE",s),J6("intBE("+s+")",s).map(function(q1){return q1.readIntBE(0,s)})}function HQ(s){return k6("intLE",s),J6("intLE("+s+")",s).map(function(q1){return q1.readIntLE(0,s)})}function k1(s){return s instanceof c}function C0(s){return{}.toString.call(s)==="[object Array]"}function A6(s){return v0()&&Buffer.isBuffer(s)}function q0(s,q1){return{status:!0,index:s,value:q1,furthest:-1,expected:[]}}function P6(s,q1){return C0(q1)||(q1=[q1]),{status:!1,index:-1,value:null,furthest:s,expected:q1}}function g0(s,q1){if(!q1)return s;if(s.furthest>q1.furthest)return s;var F1=s.furthest===q1.furthest?function(R1,y1){if(function(){if(c._supportsSet!==void 0)return c._supportsSet;var VQ=typeof Set!="undefined";return c._supportsSet=VQ,VQ}()&&Array.from){for(var h1=new Set(R1),f1=0;f1=0;){if(f1 in F1){R1=F1[f1].line,h1===0&&(h1=F1[f1].lineStart);break}(s.charAt(f1)===` `||s.charAt(f1)==="\r"&&s.charAt(f1+1)!==` `)&&(y1++,h1===0&&(h1=f1+1)),f1--}var V0=R1+y1,K6=q1-h1;return F1[q1]={line:V0,lineStart:h1},{offset:q1,line:V0+1,column:K6+1}}function l8(s){if(!k1(s))throw new Error("not a parser: "+s)}function y4(s,q1){return typeof s=="string"?s.charAt(q1):s[q1]}function KQ(s){if(typeof s!="number")throw new Error("not a number: "+s)}function i9(s){if(typeof s!="function")throw new Error("not a function: "+s)}function $Q(s){if(typeof s!="string")throw new Error("not a string: "+s)}var N7=2,$J=3,A9=8,T7=5*A9,BJ=4*A9,M7=" ";function T8(s,q1){return new Array(q1+1).join(s)}function n9(s,q1,F1){var R1=q1-s.length;return R1<=0?s:T8(F1,R1)+s}function tB(s,q1,F1,R1){return{from:s-q1>0?s-q1:0,to:s+F1>R1?R1:s+F1}}function iO(s,q1){var F1,R1,y1,h1,f1,V0=q1.index,K6=V0.offset,V8=1;if(K6===s.length)return"Got the end of the input";if(A6(s)){var o6=K6-K6%A9,UQ=K6-o6,c8=tB(o6,T7,BJ+A9,s.length),VQ=m1(function(m6){return m1(function(kZ){return n9(kZ.toString(16),2,"0")},m6)},function(m6,kZ){var yZ=m6.length,g4=[],xZ=0;if(yZ<=kZ)return[m6.slice()];for(var vZ=0;vZ=4&&(F1+=1),V8=2,y1=m1(function(m6){return m6.length<=4?m6.join(" "):m6.slice(0,4).join(" ")+" "+m6.slice(4).join(" ")},VQ),(f1=(8*(h1.to>0?h1.to-1:h1.to)).toString(16).length)<2&&(f1=2)}else{var SZ=s.split(/\r\n|[\n\r\u2028\u2029]/);F1=V0.column-1,R1=V0.line-1,h1=tB(R1,N7,$J,SZ.length),y1=SZ.slice(h1.from,h1.to),f1=h1.to.toString().length}var Xw=R1-h1.from;return A6(s)&&(f1=(8*(h1.to>0?h1.to-1:h1.to)).toString(16).length)<2&&(f1=2),T1(function(m6,kZ,yZ){var g4,xZ=yZ===Xw,vZ=xZ?"> ":M7;return g4=A6(s)?n9((8*(h1.from+yZ)).toString(16),f1,"0"):n9((h1.from+yZ+1).toString(),f1," "),[].concat(m6,[vZ+g4+" | "+kZ],xZ?[M7+T8(" ",f1)+" | "+n9("",F1," ")+T8("^",V8)]:[])},[],y1).join(` `)}function rB(s,q1){return[` `,"-- PARSING FAILED "+T8("-",50),` `,iO(s,q1),` `,(F1=q1.expected,F1.length===1?`Expected: `+F1[0]:`Expected one of the following: `+F1.join(", ")),` `].join("");var F1}function eB(s){return s.flags!==void 0?s.flags:[s.global?"g":"",s.ignoreCase?"i":"",s.multiline?"m":"",s.unicode?"u":"",s.sticky?"y":""].join("")}function UJ(){for(var s=[].slice.call(arguments),q1=s.length,F1=0;F1=2?KQ(q1):q1=0;var F1=function(y1){return RegExp("^(?:"+y1.source+")",eB(y1))}(s),R1=""+s;return c(function(y1,h1){var f1=F1.exec(y1.slice(h1));if(f1){if(0<=q1&&q1<=f1.length){var V0=f1[0],K6=f1[q1];return q0(h1+V0.length,K6)}return P6(h1,"valid match group (0 to "+f1.length+") in "+R1)}return P6(h1,R1)})}function v4(s){return c(function(q1,F1){return q0(F1,s)})}function PJ(s){return c(function(q1,F1){return P6(F1,s)})}function FJ(s){if(k1(s))return c(function(q1,F1){var R1=s._(q1,F1);return R1.index=F1,R1.value="",R1});if(typeof s=="string")return FJ(I7(s));if(s instanceof RegExp)return FJ(BQ(s));throw new Error("not a string, regexp, or parser: "+s)}function ZU(s){return l8(s),c(function(q1,F1){var R1=s._(q1,F1),y1=q1.slice(F1,R1.index);return R1.status?P6(F1,'not "'+y1+'"'):q0(F1,null)})}function DJ(s){return i9(s),c(function(q1,F1){var R1=y4(q1,F1);return F1=s.length?P6(q1,"any character/byte"):q0(q1+1,y4(s,q1))}),oO=c(function(s,q1){return q0(s.length,s.slice(q1))}),m3=c(function(s,q1){return q1=0}).desc(q1)},c.optWhitespace=eO,c.Parser=c,c.range=function(s,q1){return DJ(function(F1){return s<=F1&&F1<=q1}).desc(s+"-"+q1)},c.regex=BQ,c.regexp=BQ,c.sepBy=QU,c.sepBy1=f3,c.seq=UJ,c.seqMap=x4,c.seqObj=function(){for(var s,q1={},F1=0,R1=(s=arguments,Array.prototype.slice.call(s)),y1=R1.length,h1=0;h1255)throw new Error("Value specified to byte constructor ("+s+"=0x"+s.toString(16)+") is larger in value than a single byte.");var q1=(s>15?"0x":"0x0")+s.toString(16);return c(function(F1,R1){var y1=y4(F1,R1);return y1===s?q0(R1+1,y1):P6(R1,q1)})},buffer:function(s){return J6("buffer",s).map(function(q1){return Buffer.from(q1)})},encodedString:function(s,q1){return J6("string",q1).map(function(F1){return F1.toString(s)})},uintBE:n6,uint8BE:n6(1),uint16BE:n6(2),uint32BE:n6(4),uintLE:G9,uint8LE:G9(1),uint16LE:G9(2),uint32LE:G9(4),intBE:R9,int8BE:R9(1),int16BE:R9(2),int32BE:R9(4),intLE:HQ,int8LE:HQ(1),int16LE:HQ(2),int32LE:HQ(4),floatBE:J6("floatBE",4).map(function(s){return s.readFloatBE(0)}),floatLE:J6("floatLE",4).map(function(s){return s.readFloatLE(0)}),doubleBE:J6("doubleBE",8).map(function(s){return s.readDoubleBE(0)}),doubleLE:J6("doubleLE",8).map(function(s){return s.readDoubleLE(0)})},y.exports=c}])})}(zJ,zJ.exports);var X1=zJ.exports,k3=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g};function lB(U){if(U===void 0||U===null)return U;return U.shiftToAll().normalize()}function cB(U){if(U.includes("/"))U=U.substring(U.lastIndexOf("/")+1);if(U.endsWith(".md"))U=U.substring(0,U.length-3);return U}X1.alt(X1.regex(new RegExp(k3(),"")),X1.regex(/[0-9\p{Letter}_-]+/u).map((U)=>U.toLocaleLowerCase()),X1.whitespace.map((U)=>"-"),X1.any.map((U)=>"")).many().map((U)=>U.join(""));var xO=X1.alt(X1.regex(new RegExp(k3(),"")),X1.regex(/[0-9\p{Letter}_-]+/u),X1.whitespace.map((U)=>" "),X1.any.map((U)=>" ")).many().map((U)=>{return U.join("").split(/\s+/).join(" ").trim()});function vO(U){return xO.tryParse(U)}function gO(U){return U=lB(U),U=o1.fromObject(Object.fromEntries(Object.entries(U.toObject()).filter(([,O])=>O!=0))),U.toHuman()}var L7;(function(U){function O(k1,C0=S3,A6=!1){let q0=y(k1);if(!q0)return C0.renderNullAs;switch(q0.type){case"null":return C0.renderNullAs;case"string":return q0.value;case"number":case"boolean":return""+q0.value;case"html":return q0.value.outerHTML;case"widget":return q0.value.markdown();case"link":return q0.value.markdown();case"function":return"";case"array":let P6="";if(A6)P6+="[";if(P6+=q0.value.map((g0)=>O(g0,C0,!0)).join(", "),A6)P6+="]";return P6;case"object":return"{ "+Object.entries(q0.value).map((g0)=>g0[0]+": "+O(g0[1],C0,!0)).join(", ")+" }";case"date":if(q0.value.second==0&&q0.value.hour==0&&q0.value.minute==0)return q0.value.toFormat(C0.defaultDateFormat);return q0.value.toFormat(C0.defaultDateTimeFormat);case"duration":return gO(q0.value)}}U.toString=O;function y(k1){if(_1(k1))return{type:"null",value:k1};else if(m1(k1))return{type:"number",value:k1};else if(T1(k1))return{type:"string",value:k1};else if(J6(k1))return{type:"boolean",value:k1};else if(v0(k1))return{type:"duration",value:k1};else if(e1(k1))return{type:"date",value:k1};else if(n6(k1))return{type:"widget",value:k1};else if(W0(k1))return{type:"array",value:k1};else if(k6(k1))return{type:"link",value:k1};else if(HQ(k1))return{type:"function",value:k1};else if(G9(k1))return{type:"html",value:k1};else if(R9(k1))return{type:"object",value:k1};else return}U.wrapValue=y;function g(k1,C0){if(R9(k1)){let A6={};for(let[q0,P6]of Object.entries(k1))A6[q0]=g(P6,C0);return A6}else if(W0(k1)){let A6=[];for(let q0 of k1)A6.push(g(q0,C0));return A6}else return C0(k1)}U.mapLeaves=g;function i(k1,C0,A6){var q0,P6;if(k1===void 0)k1=null;if(C0===void 0)C0=null;if(k1===null&&C0===null)return 0;else if(k1===null)return-1;else if(C0===null)return 1;let g0=y(k1),y6=y(C0);if(g0===void 0&&y6===void 0)return 0;else if(g0===void 0)return-1;else if(y6===void 0)return 1;if(g0.type!=y6.type)return g0.type.localeCompare(y6.type);if(g0.value===y6.value)return 0;switch(g0.type){case"string":return g0.value.localeCompare(y6.value);case"number":if(g0.valueT8,KQ=y4(zQ.path).localeCompare(y4(l8.path));if(KQ!=0)return KQ;let i9=zQ.type.localeCompare(l8.type);if(i9!=0)return i9;if(zQ.subpath&&!l8.subpath)return 1;if(!zQ.subpath&&l8.subpath)return-1;if(!zQ.subpath&&!l8.subpath)return 0;return((q0=zQ.subpath)!=null?q0:"").localeCompare((P6=l8.subpath)!=null?P6:"");case"date":return g0.value0;case"boolean":return C0.value;case"link":return!!C0.value.path;case"date":return C0.value.toMillis()!=0;case"duration":return C0.value.as("seconds")!=0;case"object":return Object.keys(C0.value).length>0;case"array":return C0.value.length>0;case"null":return!1;case"html":case"widget":case"function":return!0}}U.isTruthy=a;function K1(k1){if(k1===null||k1===void 0)return k1;if(U.isArray(k1))return[].concat(k1.map((C0)=>K1(C0)));else if(U.isObject(k1)){let C0={};for(let[A6,q0]of Object.entries(k1))C0[A6]=K1(q0);return C0}else return k1}U.deepCopy=K1;function T1(k1){return typeof k1=="string"}U.isString=T1;function m1(k1){return typeof k1=="number"}U.isNumber=m1;function e1(k1){return k1 instanceof Z0}U.isDate=e1;function v0(k1){return k1 instanceof o1}U.isDuration=v0;function _1(k1){return k1===null||k1===void 0}U.isNull=_1;function W0(k1){return Array.isArray(k1)}U.isArray=W0;function J6(k1){return typeof k1==="boolean"}U.isBoolean=J6;function k6(k1){return k1 instanceof U8}U.isLink=k6;function n6(k1){return k1 instanceof y3}U.isWidget=n6;function G9(k1){if(typeof HTMLElement!=="undefined")return k1 instanceof HTMLElement;else return!1}U.isHtml=G9;function R9(k1){return typeof k1=="object"&&!G9(k1)&&!n6(k1)&&!W0(k1)&&!v0(k1)&&!e1(k1)&&!k6(k1)&&k1!==void 0&&!_1(k1)}U.isObject=R9;function HQ(k1){return typeof k1=="function"}U.isFunction=HQ})(L7||(L7={}));var iB;(function(U){function O(i){return L7.isObject(i)&&Object.keys(i).length==2&&"key"in i&&"rows"in i}U.isElementGroup=O;function y(i){for(let c of i)if(!O(c))return!1;return!0}U.isGrouping=y;function g(i){if(y(i)){let c=0;for(let a of i)c+=g(a.rows);return c}else return i.length}U.count=g})(iB||(iB={}));var U8=class{constructor(U){b8(this,"path"),b8(this,"display"),b8(this,"subpath"),b8(this,"embed"),b8(this,"type"),Object.assign(this,U)}static file(U,O=!1,y){return new U8({path:U,embed:O,display:y,subpath:void 0,type:"file"})}static infer(U,O=!1,y){if(U.includes("#^")){let g=U.split("#^");return U8.block(g[0],g[1],O,y)}else if(U.includes("#")){let g=U.split("#");return U8.header(g[0],g[1],O,y)}else return U8.file(U,O,y)}static header(U,O,y,g){return new U8({path:U,embed:y,display:g,subpath:vO(O),type:"header"})}static block(U,O,y,g){return new U8({path:U,embed:y,display:g,subpath:O,type:"block"})}static fromObject(U){return new U8(U)}equals(U){if(U==null||U==null)return!1;return this.path==U.path&&this.type==U.type&&this.subpath==U.subpath}toString(){return this.markdown()}toObject(){return{path:this.path,type:this.type,subpath:this.subpath,display:this.display,embed:this.embed}}withPath(U){return new U8(Object.assign({},this,{path:U}))}withDisplay(U){return new U8(Object.assign({},this,{display:U}))}withHeader(U){return U8.header(this.path,U,this.embed,this.display)}toFile(){return U8.file(this.path,this.embed,this.display)}toEmbed(){if(this.embed)return this;else{let U=new U8(this);return U.embed=!0,U}}fromEmbed(){if(!this.embed)return this;else{let U=new U8(this);return U.embed=!1,U}}markdown(){let U=(this.embed?"!":"")+"[["+this.obsidianLink();if(this.display)U+="|"+this.display;else if(U+="|"+cB(this.path),this.type=="header"||this.type=="block")U+=" > "+this.subpath;return U+="]]",U}obsidianLink(){var U,O;let y=this.path.replaceAll("|","\\|");if(this.type=="header")return y+"#"+((U=this.subpath)==null?void 0:U.replaceAll("|","\\|"));if(this.type=="block")return y+"#^"+((O=this.subpath)==null?void 0:O.replaceAll("|","\\|"));else return y}fileName(){return cB(this.path).replace(".md","")}},y3=class{constructor(U){b8(this,"$widget"),this.$widget=U}},hO=class extends y3{constructor(U,O){super("dataview:list-pair");b8(this,"key"),b8(this,"value"),this.key=U,this.value=O}markdown(){return`${L7.toString(this.key)}: ${L7.toString(this.value)}`}},fO=class extends y3{constructor(U,O){super("dataview:external-link");b8(this,"url"),b8(this,"display"),this.url=U,this.display=O}markdown(){var U;return`[${(U=this.display)!=null?U:this.url}](${this.url})`}},nB;(function(U){function O(a,K1){return new hO(a,K1)}U.listPair=O;function y(a,K1){return new fO(a,K1)}U.externalLink=y;function g(a){return a.$widget==="dataview:list-pair"}U.isListPair=g;function i(a){return a.$widget==="dataview:external-link"}U.isExternalLink=i;function c(a){return g(a)||i(a)}U.isBuiltin=c})(nB||(nB={}));var w6;(function(U){function O(_1){return{type:"variable",name:_1}}U.variable=O;function y(_1){return{type:"literal",value:_1}}U.literal=y;function g(_1,W0,J6){return{type:"binaryop",left:_1,op:W0,right:J6}}U.binaryOp=g;function i(_1,W0){return{type:"index",object:_1,index:W0}}U.index=i;function c(_1){let W0=_1.split("."),J6=U.variable(W0[0]);for(let k6=1;k6"||_1==">="||_1=="!="||_1=="="}U.isCompareOp=v0,U.NULL=U.literal(null)})(w6||(w6={}));var c9;(function(U){function O(e1){return{type:"tag",tag:e1}}U.tag=O;function y(e1){return{type:"csv",path:e1}}U.csv=y;function g(e1){return{type:"folder",folder:e1}}U.folder=g;function i(e1,v0){return{type:"link",file:e1,direction:v0?"incoming":"outgoing"}}U.link=i;function c(e1,v0,_1){return{type:"binaryop",left:e1,op:v0,right:_1}}U.binaryOp=c;function a(e1,v0){return{type:"binaryop",left:e1,op:"&",right:v0}}U.and=a;function K1(e1,v0){return{type:"binaryop",left:e1,op:"|",right:v0}}U.or=K1;function T1(e1){return{type:"negate",child:e1}}U.negate=T1;function m1(){return{type:"empty"}}U.empty=m1})(c9||(c9={}));var oB=new RegExp(k3(),""),x3={year:o1.fromObject({years:1}),years:o1.fromObject({years:1}),yr:o1.fromObject({years:1}),yrs:o1.fromObject({years:1}),month:o1.fromObject({months:1}),months:o1.fromObject({months:1}),mo:o1.fromObject({months:1}),mos:o1.fromObject({months:1}),week:o1.fromObject({weeks:1}),weeks:o1.fromObject({weeks:1}),wk:o1.fromObject({weeks:1}),wks:o1.fromObject({weeks:1}),w:o1.fromObject({weeks:1}),day:o1.fromObject({days:1}),days:o1.fromObject({days:1}),d:o1.fromObject({days:1}),hour:o1.fromObject({hours:1}),hours:o1.fromObject({hours:1}),hr:o1.fromObject({hours:1}),hrs:o1.fromObject({hours:1}),h:o1.fromObject({hours:1}),minute:o1.fromObject({minutes:1}),minutes:o1.fromObject({minutes:1}),min:o1.fromObject({minutes:1}),mins:o1.fromObject({minutes:1}),m:o1.fromObject({minutes:1}),second:o1.fromObject({seconds:1}),seconds:o1.fromObject({seconds:1}),sec:o1.fromObject({seconds:1}),secs:o1.fromObject({seconds:1}),s:o1.fromObject({seconds:1})},v3={now:()=>Z0.local(),today:()=>Z0.local().startOf("day"),yesterday:()=>Z0.local().startOf("day").minus(o1.fromObject({days:1})),tomorrow:()=>Z0.local().startOf("day").plus(o1.fromObject({days:1})),sow:()=>Z0.local().startOf("week"),"start-of-week":()=>Z0.local().startOf("week"),eow:()=>Z0.local().endOf("week"),"end-of-week":()=>Z0.local().endOf("week"),soy:()=>Z0.local().startOf("year"),"start-of-year":()=>Z0.local().startOf("year"),eoy:()=>Z0.local().endOf("year"),"end-of-year":()=>Z0.local().endOf("year"),som:()=>Z0.local().startOf("month"),"start-of-month":()=>Z0.local().startOf("month"),eom:()=>Z0.local().endOf("month"),"end-of-month":()=>Z0.local().endOf("month")},g3=["FROM","WHERE","LIMIT","GROUP","FLATTEN"];function bO(U){let O=-1;while((O=U.indexOf("|",O+1))>=0){if(O>0&&U[O-1]=="\\")continue;return[U.substring(0,O).replace(/\\\|/g,"|"),U.substring(O+1)]}return[U.replace(/\\\|/g,"|"),void 0]}function mO(U){let[O,y]=bO(U);return U8.infer(O,!1,y)}function C7(U,O,y){return X1.seqMap(U,X1.seq(X1.optWhitespace,O,X1.optWhitespace,U).many(),(g,i)=>{if(i.length==0)return g;let c=y(g,i[0][1],i[0][3]);for(let a=1;a{return(i,c)=>{let a=U._(i,c);if(!a.status)return a;for(let K1 of O){let T1=K1(a.value)._(i,a.index);if(!T1.status)return a;a=T1}return a}})}var I9=X1.createLanguage({number:(U)=>X1.regexp(/-?[0-9]+(\.[0-9]+)?/).map((O)=>Number.parseFloat(O)).desc("number"),string:(U)=>X1.string('"').then(X1.alt(U.escapeCharacter,X1.noneOf('"\\')).atLeast(0).map((O)=>O.join(""))).skip(X1.string('"')).desc("string"),escapeCharacter:(U)=>X1.string("\\").then(X1.any).map((O)=>{if(O==='"')return'"';if(O==="\\")return"\\";else return"\\"+O}),bool:(U)=>X1.regexp(/true|false|True|False/).map((O)=>O.toLowerCase()=="true").desc("boolean ('true' or 'false')"),tag:(U)=>X1.seqMap(X1.string("#"),X1.alt(X1.regexp(/[^\u2000-\u206F\u2E00-\u2E7F'!"#$%&()*+,.:;<=>?@^`{|}~\[\]\\\s]/).desc("text")).many(),(O,y)=>O+y.join("")).desc("tag ('#hello/stuff')"),identifier:(U)=>X1.seqMap(X1.alt(X1.regexp(/\p{Letter}/u),X1.regexp(oB).desc("text")),X1.alt(X1.regexp(/[0-9\p{Letter}_-]/u),X1.regexp(oB).desc("text")).many(),(O,y)=>O+y.join("")).desc("variable identifier"),link:(U)=>X1.regexp(/\[\[([^\[\]]*?)\]\]/u,1).map((O)=>mO(O)).desc("file link"),embedLink:(U)=>X1.seqMap(X1.string("!").atMost(1),U.link,(O,y)=>{if(O.length>0)y.embed=!0;return y}).desc("file link"),binaryPlusMinus:(U)=>X1.regexp(/\+|-/).map((O)=>O).desc("'+' or '-'"),binaryMulDiv:(U)=>X1.regexp(/\*|\/|%/).map((O)=>O).desc("'*' or '/' or '%'"),binaryCompareOp:(U)=>X1.regexp(/>=|<=|!=|>|<|=/).map((O)=>O).desc("'>=' or '<=' or '!=' or '=' or '>' or '<'"),binaryBooleanOp:(U)=>X1.regexp(/and|or|&|\|/i).map((O)=>{if(O.toLowerCase()=="and")return"&";else if(O.toLowerCase()=="or")return"|";else return O}).desc("'and' or 'or'"),rootDate:(U)=>X1.seqMap(X1.regexp(/\d{4}/),X1.string("-"),X1.regexp(/\d{2}/),(O,y,g)=>{return Z0.fromObject({year:Number.parseInt(O),month:Number.parseInt(g)})}).desc("date in format YYYY-MM[-DDTHH-MM-SS.MS]"),dateShorthand:(U)=>X1.alt(...Object.keys(v3).sort((O,y)=>y.length-O.length).map(X1.string)),date:(U)=>_O(U.rootDate,(O)=>X1.seqMap(X1.string("-"),X1.regexp(/\d{2}/),(y,g)=>O.set({day:Number.parseInt(g)})),(O)=>X1.seqMap(X1.string("T"),X1.regexp(/\d{2}/),(y,g)=>O.set({hour:Number.parseInt(g)})),(O)=>X1.seqMap(X1.string(":"),X1.regexp(/\d{2}/),(y,g)=>O.set({minute:Number.parseInt(g)})),(O)=>X1.seqMap(X1.string(":"),X1.regexp(/\d{2}/),(y,g)=>O.set({second:Number.parseInt(g)})),(O)=>X1.alt(X1.seqMap(X1.string("."),X1.regexp(/\d{3}/),(y,g)=>O.set({millisecond:Number.parseInt(g)})),X1.succeed(O)),(O)=>X1.alt(X1.seqMap(X1.string("+").or(X1.string("-")),X1.regexp(/\d{1,2}(:\d{2})?/),(y,g)=>O.setZone("UTC"+y+g,{keepLocalTime:!0})),X1.seqMap(X1.string("Z"),()=>O.setZone("utc",{keepLocalTime:!0})),X1.seqMap(X1.string("["),X1.regexp(/[0-9A-Za-z+-\/]+/u),X1.string("]"),(y,g,i)=>O.setZone(g,{keepLocalTime:!0})))).assert((O)=>O.isValid,"valid date").desc("date in format YYYY-MM[-DDTHH-MM-SS.MS]"),datePlus:(U)=>X1.alt(U.dateShorthand.map((O)=>v3[O]()),U.date).desc("date in format YYYY-MM[-DDTHH-MM-SS.MS] or in shorthand"),durationType:(U)=>X1.alt(...Object.keys(x3).sort((O,y)=>y.length-O.length).map(X1.string)),duration:(U)=>X1.seqMap(U.number,X1.optWhitespace,U.durationType,(O,y,g)=>x3[g].mapUnits((i)=>i*O)).sepBy1(X1.string(",").trim(X1.optWhitespace).or(X1.optWhitespace)).map((O)=>O.reduce((y,g)=>y.plus(g))).desc("duration like 4hr2min"),rawNull:(U)=>X1.string("null"),tagSource:(U)=>U.tag.map((O)=>c9.tag(O)),csvSource:(U)=>X1.seqMap(X1.string("csv(").skip(X1.optWhitespace),U.string,X1.string(")"),(O,y,g)=>c9.csv(y)),linkIncomingSource:(U)=>U.link.map((O)=>c9.link(O.path,!0)),linkOutgoingSource:(U)=>X1.seqMap(X1.string("outgoing(").skip(X1.optWhitespace),U.link,X1.string(")"),(O,y,g)=>c9.link(y.path,!1)),folderSource:(U)=>U.string.map((O)=>c9.folder(O)),parensSource:(U)=>X1.seqMap(X1.string("("),X1.optWhitespace,U.source,X1.optWhitespace,X1.string(")"),(O,y,g,i,c)=>g),negateSource:(U)=>X1.seqMap(X1.alt(X1.string("-"),X1.string("!")),U.atomSource,(O,y)=>c9.negate(y)),atomSource:(U)=>X1.alt(U.parensSource,U.negateSource,U.linkOutgoingSource,U.linkIncomingSource,U.folderSource,U.tagSource,U.csvSource),binaryOpSource:(U)=>C7(U.atomSource,U.binaryBooleanOp.map((O)=>O),c9.binaryOp),source:(U)=>U.binaryOpSource,variableField:(U)=>U.identifier.chain((O)=>{if(g3.includes(O.toUpperCase()))return X1.fail("Variable fields cannot be a keyword ("+g3.join(" or ")+")");else return X1.succeed(w6.variable(O))}).desc("variable"),numberField:(U)=>U.number.map((O)=>w6.literal(O)).desc("number"),stringField:(U)=>U.string.map((O)=>w6.literal(O)).desc("string"),boolField:(U)=>U.bool.map((O)=>w6.literal(O)).desc("boolean"),dateField:(U)=>X1.seqMap(X1.string("date("),X1.optWhitespace,U.datePlus,X1.optWhitespace,X1.string(")"),(O,y,g,i,c)=>w6.literal(g)).desc("date"),durationField:(U)=>X1.seqMap(X1.string("dur("),X1.optWhitespace,U.duration,X1.optWhitespace,X1.string(")"),(O,y,g,i,c)=>w6.literal(g)).desc("duration"),nullField:(U)=>U.rawNull.map((O)=>w6.NULL),linkField:(U)=>U.link.map((O)=>w6.literal(O)),listField:(U)=>U.field.sepBy(X1.string(",").trim(X1.optWhitespace)).wrap(X1.string("[").skip(X1.optWhitespace),X1.optWhitespace.then(X1.string("]"))).map((O)=>w6.list(O)).desc("list ('[1, 2, 3]')"),objectField:(U)=>X1.seqMap(U.identifier.or(U.string),X1.string(":").trim(X1.optWhitespace),U.field,(O,y,g)=>{return{name:O,value:g}}).sepBy(X1.string(",").trim(X1.optWhitespace)).wrap(X1.string("{").skip(X1.optWhitespace),X1.optWhitespace.then(X1.string("}"))).map((O)=>{let y={};for(let g of O)y[g.name]=g.value;return w6.object(y)}).desc("object ('{ a: 1, b: 2 }')"),atomInlineField:(U)=>X1.alt(U.date,U.duration.map((O)=>lB(O)),U.string,U.tag,U.embedLink,U.bool,U.number,U.rawNull),inlineFieldList:(U)=>U.atomInlineField.sepBy(X1.string(",").trim(X1.optWhitespace).lookahead(U.atomInlineField)),inlineField:(U)=>X1.alt(X1.seqMap(U.atomInlineField,X1.string(",").trim(X1.optWhitespace),U.inlineFieldList,(O,y,g)=>[O].concat(g)),U.atomInlineField),atomField:(U)=>X1.alt(U.embedLink.map((O)=>w6.literal(O)),U.negatedField,U.linkField,U.listField,U.objectField,U.lambdaField,U.parensField,U.boolField,U.numberField,U.stringField,U.dateField,U.durationField,U.nullField,U.variableField),indexField:(U)=>X1.seqMap(U.atomField,X1.alt(U.dotPostfix,U.indexPostfix,U.functionPostfix).many(),(O,y)=>{let g=O;for(let i of y)switch(i.type){case"dot":g=w6.index(g,w6.literal(i.field));break;case"index":g=w6.index(g,i.field);break;case"function":g=w6.func(g,i.fields);break}return g}),negatedField:(U)=>X1.seqMap(X1.string("!"),U.indexField,(O,y)=>w6.negate(y)).desc("negated field"),parensField:(U)=>X1.seqMap(X1.string("("),X1.optWhitespace,U.field,X1.optWhitespace,X1.string(")"),(O,y,g,i,c)=>g),lambdaField:(U)=>X1.seqMap(U.identifier.sepBy(X1.string(",").trim(X1.optWhitespace)).wrap(X1.string("(").trim(X1.optWhitespace),X1.string(")").trim(X1.optWhitespace)),X1.string("=>").trim(X1.optWhitespace),U.field,(O,y,g)=>{return{type:"lambda",arguments:O,value:g}}),dotPostfix:(U)=>X1.seqMap(X1.string("."),U.identifier,(O,y)=>{return{type:"dot",field:y}}),indexPostfix:(U)=>X1.seqMap(X1.string("["),X1.optWhitespace,U.field,X1.optWhitespace,X1.string("]"),(O,y,g,i,c)=>{return{type:"index",field:g}}),functionPostfix:(U)=>X1.seqMap(X1.string("("),X1.optWhitespace,U.field.sepBy(X1.string(",").trim(X1.optWhitespace)),X1.optWhitespace,X1.string(")"),(O,y,g,i,c)=>{return{type:"function",fields:g}}),binaryMulDivField:(U)=>C7(U.indexField,U.binaryMulDiv,w6.binaryOp),binaryPlusMinusField:(U)=>C7(U.binaryMulDivField,U.binaryPlusMinus,w6.binaryOp),binaryCompareField:(U)=>C7(U.binaryPlusMinusField,U.binaryCompareOp,w6.binaryOp),binaryBooleanField:(U)=>C7(U.binaryCompareField,U.binaryBooleanOp,w6.binaryOp),binaryOpField:(U)=>U.binaryBooleanField,field:(U)=>U.binaryOpField});function dO(U){try{return HJ.success(I9.field.tryParse(U))}catch(O){return HJ.failure(""+O)}}var KJ;(function(U){function O(g,i){return{name:g,field:i}}U.named=O;function y(g,i){return{field:g,direction:i}}U.sortBy=y})(KJ||(KJ={}));function uO(U){return X1.custom((O,y)=>{return(g,i)=>{let c=U._(g,i);if(!c.status)return c;return Object.assign({},c,{value:[c.value,g.substring(i,c.index)]})}})}function pO(U){return U.split(/[\r\n]+/).map((O)=>O.trim()).join("")}function aB(U,O){return X1.eof.map(U).or(X1.whitespace.then(O))}var sB=X1.createLanguage({queryType:(U)=>X1.alt(X1.regexp(/TABLE|LIST|TASK|CALENDAR/i)).map((O)=>O.toLowerCase()).desc("query type ('TABLE', 'LIST', 'TASK', or 'CALENDAR')"),explicitNamedField:(U)=>X1.seqMap(I9.field.skip(X1.whitespace),X1.regexp(/AS/i).skip(X1.whitespace),I9.identifier.or(I9.string),(O,y,g)=>KJ.named(g,O)),comment:()=>X1.Parser((U,O)=>{let y=U.substring(O);if(!y.startsWith("//"))return X1.makeFailure(O,"Not a comment");y=y.split(` `)[0];let g=y.substring(2).trim();return X1.makeSuccess(O+y.length,g)}),namedField:(U)=>X1.alt(U.explicitNamedField,uO(I9.field).map(([O,y])=>KJ.named(pO(y),O))),sortField:(U)=>X1.seqMap(I9.field.skip(X1.optWhitespace),X1.regexp(/ASCENDING|DESCENDING|ASC|DESC/i).atMost(1),(O,y)=>{let g=y.length==0?"ascending":y[0].toLowerCase();if(g=="desc")g="descending";if(g=="asc")g="ascending";return{field:O,direction:g}}),headerClause:(U)=>U.queryType.chain((O)=>{switch(O){case"table":return aB(()=>({type:O,fields:[],showId:!0}),X1.seqMap(X1.regexp(/WITHOUT\s+ID/i).skip(X1.optWhitespace).atMost(1),X1.sepBy(U.namedField,X1.string(",").trim(X1.optWhitespace)),(y,g)=>{return{type:O,fields:g,showId:y.length==0}}));case"list":return aB(()=>({type:O,format:void 0,showId:!0}),X1.seqMap(X1.regexp(/WITHOUT\s+ID/i).skip(X1.optWhitespace).atMost(1),I9.field.atMost(1),(y,g)=>{return{type:O,format:g.length==1?g[0]:void 0,showId:y.length==0}}));case"task":return X1.succeed({type:O});case"calendar":return X1.whitespace.then(X1.seqMap(U.namedField,(y)=>{return{type:O,showId:!0,field:y}}));default:return X1.fail(`Unrecognized query type '${O}'`)}}).desc("TABLE or LIST or TASK or CALENDAR"),fromClause:(U)=>X1.seqMap(X1.regexp(/FROM/i),X1.whitespace,I9.source,(O,y,g)=>g),whereClause:(U)=>X1.seqMap(X1.regexp(/WHERE/i),X1.whitespace,I9.field,(O,y,g)=>{return{type:"where",clause:g}}).desc("WHERE "),sortByClause:(U)=>X1.seqMap(X1.regexp(/SORT/i),X1.whitespace,U.sortField.sepBy1(X1.string(",").trim(X1.optWhitespace)),(O,y,g)=>{return{type:"sort",fields:g}}).desc("SORT field [ASC/DESC]"),limitClause:(U)=>X1.seqMap(X1.regexp(/LIMIT/i),X1.whitespace,I9.field,(O,y,g)=>{return{type:"limit",amount:g}}).desc("LIMIT "),flattenClause:(U)=>X1.seqMap(X1.regexp(/FLATTEN/i).skip(X1.whitespace),U.namedField,(O,y)=>{return{type:"flatten",field:y}}).desc("FLATTEN [AS ]"),groupByClause:(U)=>X1.seqMap(X1.regexp(/GROUP BY/i).skip(X1.whitespace),U.namedField,(O,y)=>{return{type:"group",field:y}}).desc("GROUP BY [AS ]"),clause:(U)=>X1.alt(U.fromClause,U.whereClause,U.sortByClause,U.limitClause,U.groupByClause,U.flattenClause),query:(U)=>X1.seqMap(U.headerClause.trim(h3),U.fromClause.trim(h3).atMost(1),U.clause.trim(h3).many(),(O,y,g)=>{return{header:O,source:y.length==0?c9.folder(""):y[0],operations:g,settings:S3}})}),h3=X1.alt(X1.whitespace,sB.comment).many().map((U)=>U.join("")),lO=(U)=>{var O;if(U)return(O=U.plugins.plugins.dataview)==null?void 0:O.api;else return window.DataviewAPI},cO=(U)=>U.plugins.enabledPlugins.has("dataview");Q.DATE_SHORTHANDS=v3,Q.DURATION_TYPES=x3,Q.EXPRESSION=I9,Q.KEYWORDS=g3,Q.QUERY_LANGUAGE=sB,Q.getAPI=lO,Q.isPluginEnabled=cO,Q.parseField=dO}}),xX=W1({"node_modules/bytes/index.js"(Q,X){X.exports=H,X.exports.format=K,X.exports.parse=z;var Z=/\B(?=(\d{3})+(?!\d))/g,J=/(?:\.0*|(\.[^0]+)0+)$/,G={b:1,kb:1024,mb:1048576,gb:1073741824,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},Y=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function H(W,$){if(typeof W==="string")return z(W);if(typeof W==="number")return K(W,$);return null}function K(W,$){if(!Number.isFinite(W))return null;var q=Math.abs(W),B=$&&$.thousandsSeparator||"",D=$&&$.unitSeparator||"",F=$&&$.decimalPlaces!==void 0?$.decimalPlaces:2,P=Boolean($&&$.fixedDecimals),N=$&&$.unit||"";if(!N||!G[N.toLowerCase()])if(q>=G.pb)N="PB";else if(q>=G.tb)N="TB";else if(q>=G.gb)N="GB";else if(q>=G.mb)N="MB";else if(q>=G.kb)N="KB";else N="B";var C=W/G[N.toLowerCase()],L=C.toFixed(F);if(!P)L=L.replace(J,"$1");if(B)L=L.split(".").map(function(V,M){return M===0?V.replace(Z,B):V}).join(".");return L+D+N}function z(W){if(typeof W==="number"&&!isNaN(W))return W;if(typeof W!=="string")return null;var $=Y.exec(W),q,B="b";if(!$)q=parseInt(W,10),B="b";else q=parseFloat($[1]),B=$[4].toLowerCase();if(isNaN(q))return null;return Math.floor(G[B]*q)}}}),iq=W1({"node_modules/content-type/index.js"(Q){var X=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Z=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,J=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,G=/\\([\u000b\u0020-\u00ff])/g,Y=/([\\"])/g,H=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;Q.format=K,Q.parse=z;function K(B){if(!B||typeof B!=="object")throw new TypeError("argument obj is required");var{parameters:D,type:F}=B;if(!F||!H.test(F))throw new TypeError("invalid type");var P=F;if(D&&typeof D==="object"){var N,C=Object.keys(D).sort();for(var L=0;L0&&!Z.test(D))throw new TypeError("invalid parameter value");return'"'+D.replace(Y,"\\$1")+'"'}function q(B){this.parameters=Object.create(null),this.type=B}}}),mM=W1({"node_modules/depd/index.js"(Q,X){var Z=require("path").relative;X.exports=z;var J=process.cwd();function G(w,A){var R=w.split(/[ ,]+/),T=String(A).toLowerCase();for(var S=0;S0}function $(w){if(process.noDeprecation)return!0;var A=process.env.NO_DEPRECATION||"";return G(A,w)}function q(w){if(process.traceDeprecation)return!0;var A=process.env.TRACE_DEPRECATION||"";return G(A,w)}function B(w,A){var R=W(process,"deprecation");if(!R&&this._ignored)return;var T,S,v,h,x=0,p=!1,n=L(),t=this._file;if(A)h=A,v=D(n[1]),v.name=h.name,t=v[0];else x=2,h=D(n[x]),v=h;for(;x",R=w.getLineNumber(),T=w.getColumnNumber();if(w.isEval())A=w.getEvalOrigin()+", "+A;var S=[A,R,T];return S.callSite=w,S.name=w.getFunctionName(),S}function F(w){var{callSite:A,name:R}=w;if(!R)R="";var T=A.getThis(),S=T&&A.getTypeName();if(S==="Object")S=void 0;if(S==="Function")S=T.name||S;return S&&A.getMethodName()?S+"."+R:R}function P(w,A,R){var T=new Date().toUTCString(),S=T+" "+this._namespace+" deprecated "+w;if(this._traced){for(var v=0;v=600))Z("non-error status code; use only 4xx or 5xx status codes");if(typeof L!=="number"||!G.message[L]&&(L<400||L>=600))L=500;var w=z[L]||z[K(L)];if(!N)N=w?new w(C):new Error(C||G.message[L]),Error.captureStackTrace(N,z);if(!w||!(N instanceof w)||N.status!==L)N.expose=L<500,N.status=N.statusCode=L;for(var A in V)if(A!=="status"&&A!=="statusCode")N[A]=V[A];return N}function W(){function N(){throw new TypeError("cannot construct abstract class")}return Y(N,Error),N}function $(N,C,L){var V=P(C);function M(I){var E=I!=null?I:G.message[L],w=new Error(E);return Error.captureStackTrace(w,M),J(w,M.prototype),Object.defineProperty(w,"message",{enumerable:!0,configurable:!0,value:E,writable:!0}),Object.defineProperty(w,"name",{enumerable:!1,configurable:!0,value:V,writable:!0}),w}return Y(M,N),D(M,V),M.prototype.status=L,M.prototype.statusCode=L,M.prototype.expose=!0,M}function q(N){return function C(L){if(!L||typeof L!=="object")return!1;if(L instanceof N)return!0;return L instanceof Error&&typeof L.expose==="boolean"&&typeof L.statusCode==="number"&&L.status===L.statusCode}}function B(N,C,L){var V=P(C);function M(I){var E=I!=null?I:G.message[L],w=new Error(E);return Error.captureStackTrace(w,M),J(w,M.prototype),Object.defineProperty(w,"message",{enumerable:!0,configurable:!0,value:E,writable:!0}),Object.defineProperty(w,"name",{enumerable:!1,configurable:!0,value:V,writable:!0}),w}return Y(M,N),D(M,V),M.prototype.status=L,M.prototype.statusCode=L,M.prototype.expose=!1,M}function D(N,C){var L=Object.getOwnPropertyDescriptor(N,"name");if(L&&L.configurable)L.value=C,Object.defineProperty(N,"name",L)}function F(N,C,L){C.forEach(function V(M){var I,E=H(G.message[M]);switch(K(M)){case 400:I=$(L,E,M);break;case 500:I=B(L,E,M);break}if(I)N[M]=I,N[E]=I})}function P(N){return N.substr(-5)!=="Error"?N+"Error":N}}}),uo=W1({"node_modules/body-parser/node_modules/ms/index.js"(Q,X){var Z=1000,J=Z*60,G=J*60,Y=G*24,H=Y*365.25;X.exports=function(q,B){B=B||{};var D=typeof q;if(D==="string"&&q.length>0)return K(q);else if(D==="number"&&isNaN(q)===!1)return B.long?W(q):z(q);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(q))};function K(q){if(q=String(q),q.length>100)return;var B=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(q);if(!B)return;var D=parseFloat(B[1]),F=(B[2]||"ms").toLowerCase();switch(F){case"years":case"year":case"yrs":case"yr":case"y":return D*H;case"days":case"day":case"d":return D*Y;case"hours":case"hour":case"hrs":case"hr":case"h":return D*G;case"minutes":case"minute":case"mins":case"min":case"m":return D*J;case"seconds":case"second":case"secs":case"sec":case"s":return D*Z;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return D;default:return}}function z(q){if(q>=Y)return Math.round(q/Y)+"d";if(q>=G)return Math.round(q/G)+"h";if(q>=J)return Math.round(q/J)+"m";if(q>=Z)return Math.round(q/Z)+"s";return q+"ms"}function W(q){return $(q,Y,"day")||$(q,G,"hour")||$(q,J,"minute")||$(q,Z,"second")||q+" ms"}function $(q,B,D){if(q=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Q.formatters.j=function(z){try{return JSON.stringify(z)}catch(W){return"[UnexpectedJSONParseError]: "+W.message}};function J(z){var W=this.useColors;if(z[0]=(W?"%c":"")+this.namespace+(W?" %c":" ")+z[0]+(W?"%c ":" ")+"+"+Q.humanize(this.diff),!W)return;var $="color: "+this.color;z.splice(1,0,$,"color: inherit");var q=0,B=0;z[0].replace(/%[a-zA-Z%]/g,function(D){if(D==="%%")return;if(q++,D==="%c")B=q}),z.splice(B,0,$)}function G(){return typeof console==="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function Y(z){try{if(z==null)Q.storage.removeItem("debug");else Q.storage.debug=z}catch(W){}}function H(){var z;try{z=Q.storage.debug}catch(W){}if(!z&&typeof process!=="undefined"&&"env"in process)z=process.env.DEBUG;return z}Q.enable(H());function K(){try{return window.localStorage}catch(z){}}}}),lo=W1({"node_modules/has-flag/index.js"(Q,X){X.exports=(Z,J=process.argv)=>{let G=Z.startsWith("-")?"":Z.length===1?"-":"--",Y=J.indexOf(G+Z),H=J.indexOf("--");return Y!==-1&&(H===-1||Y=2,has16m:$>=3}}function z($,q){if(H===0)return 0;if(G("color=16m")||G("color=full")||G("color=truecolor"))return 3;if(G("color=256"))return 2;if($&&!q&&H===void 0)return 0;let B=H||0;if(Y.TERM==="dumb")return B;if(process.platform==="win32"){let D=Z.release().split(".");if(Number(D[0])>=10&&Number(D[2])>=10586)return Number(D[2])>=14931?3:2;return 1}if("CI"in Y){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((D)=>(D in Y))||Y.CI_NAME==="codeship")return 1;return B}if("TEAMCITY_VERSION"in Y)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Y.TEAMCITY_VERSION)?1:0;if(Y.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Y){let D=parseInt((Y.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Y.TERM_PROGRAM){case"iTerm.app":return D>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(Y.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Y.TERM))return 1;if("COLORTERM"in Y)return 1;return B}function W($){let q=z($,$&&$.isTTY);return K(q)}X.exports={supportsColor:W,stdout:K(z(!0,J.isatty(1))),stderr:K(z(!0,J.isatty(2)))}}}),co=W1({"node_modules/body-parser/node_modules/debug/src/node.js"(Q,X){var Z=require("tty"),J=require("util");Q=X.exports=_M(),Q.init=q,Q.log=z,Q.formatArgs=H,Q.save=W,Q.load=$,Q.useColors=Y,Q.colors=[6,2,3,4,5,1];try{if(G=M$(),G&&G.level>=2)Q.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(B){}var G;Q.inspectOpts=Object.keys(process.env).filter(function(B){return/^debug_/i.test(B)}).reduce(function(B,D){var F=D.substring(6).toLowerCase().replace(/_([a-z])/g,function(N,C){return C.toUpperCase()}),P=process.env[D];if(/^(yes|on|true|enabled)$/i.test(P))P=!0;else if(/^(no|off|false|disabled)$/i.test(P))P=!1;else if(P==="null")P=null;else P=Number(P);return B[F]=P,B},{});function Y(){return"colors"in Q.inspectOpts?Boolean(Q.inspectOpts.colors):Z.isatty(process.stderr.fd)}Q.formatters.o=function(B){return this.inspectOpts.colors=this.useColors,J.inspect(B,this.inspectOpts).split(` `).map(function(D){return D.trim()}).join(" ")},Q.formatters.O=function(B){return this.inspectOpts.colors=this.useColors,J.inspect(B,this.inspectOpts)};function H(B){var D=this.namespace,F=this.useColors;if(F){var P=this.color,N="\x1B[3"+(P<8?P:"8;5;"+P),C=" "+N+";1m"+D+" \x1B[0m";B[0]=C+B[0].split(` `).join(` `+C),B.push(N+"m+"+Q.humanize(this.diff)+"\x1B[0m")}else B[0]=K()+D+" "+B[0]}function K(){if(Q.inspectOpts.hideDate)return"";else return new Date().toISOString()+" "}function z(){return process.stderr.write(J.format.apply(J,arguments)+` `)}function W(B){if(B==null)delete process.env.DEBUG;else process.env.DEBUG=B}function $(){return process.env.DEBUG}function q(B){B.inspectOpts={};var D=Object.keys(Q.inspectOpts);for(var F=0;F=2147483648)throw new RangeError('The value "'+K+'" is invalid for option "size"');var $=J(K);if(!z||z.length===0)$.fill(0);else if(typeof W==="string")$.fill(z,W);else $.fill(z);return $};if(!G.kStringMaxLength)try{G.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(K){}if(!G.constants){if(G.constants={MAX_LENGTH:G.kMaxLength},G.kStringMaxLength)G.constants.MAX_STRING_LENGTH=G.kStringMaxLength}X.exports=G}}),no=W1({"node_modules/iconv-lite/lib/bom-handling.js"(Q){var X="\uFEFF";Q.PrependBOM=Z;function Z(G,Y){this.encoder=G,this.addBOM=!0}Z.prototype.write=function(G){if(this.addBOM)G=X+G,this.addBOM=!1;return this.encoder.write(G)},Z.prototype.end=function(){return this.encoder.end()},Q.StripBOM=J;function J(G,Y){this.decoder=G,this.pass=!1,this.options=Y||{}}J.prototype.write=function(G){var Y=this.decoder.write(G);if(this.pass||!Y)return Y;if(Y[0]===X){if(Y=Y.slice(1),typeof this.options.stripBOM==="function")this.options.stripBOM()}return this.pass=!0,Y},J.prototype.end=function(){return this.decoder.end()}}}),oo=W1({"node_modules/iconv-lite/encodings/internal.js"(Q,X){var Z=MZ().Buffer;X.exports={utf8:{type:"_internal",bomAware:!0},cesu8:{type:"_internal",bomAware:!0},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:!0},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:J};function J($,q){if(this.enc=$.encodingName,this.bomAware=$.bomAware,this.enc==="base64")this.encoder=K;else if(this.enc==="cesu8"){if(this.enc="utf8",this.encoder=z,Z.from("eda0bdedb2a9","hex").toString()!=="\uD83D\uDCA9")this.decoder=W,this.defaultCharUnicode=q.defaultCharUnicode}}J.prototype.encoder=H,J.prototype.decoder=Y;var G=require("string_decoder").StringDecoder;if(!G.prototype.end)G.prototype.end=function(){};function Y($,q){G.call(this,q.enc)}Y.prototype=G.prototype;function H($,q){this.enc=q.enc}H.prototype.write=function($){return Z.from($,this.enc)},H.prototype.end=function(){};function K($,q){this.prevStr=""}K.prototype.write=function($){$=this.prevStr+$;var q=$.length-$.length%4;return this.prevStr=$.slice(q),$=$.slice(0,q),Z.from($,"base64")},K.prototype.end=function(){return Z.from(this.prevStr,"base64")};function z($,q){}z.prototype.write=function($){var q=Z.alloc($.length*3),B=0;for(var D=0;D<$.length;D++){var F=$.charCodeAt(D);if(F<128)q[B++]=F;else if(F<2048)q[B++]=192+(F>>>6),q[B++]=128+(F&63);else q[B++]=224+(F>>>12),q[B++]=128+(F>>>6&63),q[B++]=128+(F&63)}return q.slice(0,B)},z.prototype.end=function(){};function W($,q){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=q.defaultCharUnicode}W.prototype.write=function($){var q=this.acc,B=this.contBytes,D=this.accBytes,F="";for(var P=0;P<$.length;P++){var N=$[P];if((N&192)!==128){if(B>0)F+=this.defaultCharUnicode,B=0;if(N<128)F+=String.fromCharCode(N);else if(N<224)q=N&31,B=1,D=1;else if(N<240)q=N&15,B=2,D=1;else F+=this.defaultCharUnicode}else if(B>0){if(q=q<<6|N&63,B--,D++,B===0)if(D===2&&q<128&&q>0)F+=this.defaultCharUnicode;else if(D===3&&q<2048)F+=this.defaultCharUnicode;else F+=String.fromCharCode(q)}else F+=this.defaultCharUnicode}return this.acc=q,this.contBytes=B,this.accBytes=D,F},W.prototype.end=function(){var $=0;if(this.contBytes>0)$+=this.defaultCharUnicode;return $}}}),ao=W1({"node_modules/iconv-lite/encodings/utf32.js"(Q){var X=MZ().Buffer;Q._utf32=Z;function Z(W,$){this.iconv=$,this.bomAware=!0,this.isLE=W.isLE}Q.utf32le={type:"_utf32",isLE:!0},Q.utf32be={type:"_utf32",isLE:!1},Q.ucs4le="utf32le",Q.ucs4be="utf32be",Z.prototype.encoder=J,Z.prototype.decoder=G;function J(W,$){this.isLE=$.isLE,this.highSurrogate=0}J.prototype.write=function(W){var $=X.from(W,"ucs2"),q=X.alloc($.length*2),B=this.isLE?q.writeUInt32LE:q.writeUInt32BE,D=0;for(var F=0;F<$.length;F+=2){var P=$.readUInt16LE(F),N=55296<=P&&P<56320,C=56320<=P&&P<57344;if(this.highSurrogate)if(N||!C)B.call(q,this.highSurrogate,D),D+=4;else{var L=(this.highSurrogate-55296<<10|P-56320)+65536;B.call(q,L,D),D+=4,this.highSurrogate=0;continue}if(N)this.highSurrogate=P;else B.call(q,P,D),D+=4,this.highSurrogate=0}if(D1114111)q.writeUInt16LE(this.badChar,B),B+=2;else{F-=65536;var P=55296|F>>10,N=56320+(F&1023);q.writeUInt16LE(P,B),B+=2,q.writeUInt16LE(N,B),B+=2}}return q.slice(0,B).toString("ucs2")},G.prototype.end=function(){this.overflow=null},Q.utf32=Y,Q.ucs4=Y;function Y(W,$){this.iconv=$}Y.prototype.encoder=H,Y.prototype.decoder=K;function H(W,$){if(W=W||{},W.addBOM===void 0)W.addBOM=!0;this.encoder=$.iconv.getEncoder(W.defaultEncoding||"utf-32le",W)}H.prototype.write=function(W){return this.encoder.write(W)},H.prototype.end=function(){return this.encoder.end()};function K(W,$){this.decoder=null,this.initialBytes=[],this.initialBytesLen=0,this.options=W||{},this.iconv=$.iconv}K.prototype.write=function(W){if(!this.decoder){if(this.initialBytes.push(W),this.initialBytesLen+=W.length,this.initialBytesLen<32)return"";var $=X.concat(this.initialBytes),q=z($,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(q,this.options),this.initialBytes.length=this.initialBytesLen=0}return this.decoder.write(W)},K.prototype.end=function(){if(!this.decoder){var W=X.concat(this.initialBytes),$=z(W,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder($,this.options);var q=this.decoder.write(W),B=this.decoder.end();return B?q+B:q}return this.decoder.end()};function z(W,$){var q=$||"utf-32le";if(W.length>=4)if(W.readUInt32BE(0)===65279)q="utf-32be";else if(W.readUInt32LE(0)===65279)q="utf-32le";else{var B=0,D=0,F=0,P=0,N=Math.min(W.length-W.length%4,128);for(var C=0;C16)++D;if(I!==0||M>16)++B;if(L===0&&V===0&&M===0&&I!==0)P++;if(L!==0&&V===0&&M===0&&I===0)F++}if(DF)q="utf-32be";else if(P=2)if(W[0]==254&&W[1]==255)q="utf-16be";else if(W[0]==255&&W[1]==254)q="utf-16le";else{var B=0,D=0,F=Math.min(W.length-W.length%2,64);for(var P=0;PB)q="utf-16be";else if(D0)N=this.iconv.decode(X.from(this.base64Accum,"base64"),"utf16-be");return this.inBase64=!1,this.base64Accum="",N},Q.utf7imap=B;function B(N,C){this.iconv=C}B.prototype.encoder=D,B.prototype.decoder=F,B.prototype.bomAware=!0;function D(N,C){this.iconv=C.iconv,this.inBase64=!1,this.base64Accum=X.alloc(6),this.base64AccumIdx=0}D.prototype.write=function(N){var C=this.inBase64,L=this.base64Accum,V=this.base64AccumIdx,M=X.alloc(N.length*5+10),I=0;for(var E=0;E0)I+=M.write(L.slice(0,V).toString("base64").replace(/\//g,",").replace(/=+$/,""),I),V=0;M[I++]=$,C=!1}if(!C){if(M[I++]=w,w===q)M[I++]=$}}else{if(!C)M[I++]=q,C=!0;if(C){if(L[V++]=w>>8,L[V++]=w&255,V==L.length)I+=M.write(L.toString("base64").replace(/\//g,","),I),V=0}}}return this.inBase64=C,this.base64AccumIdx=V,M.slice(0,I)},D.prototype.end=function(){var N=X.alloc(10),C=0;if(this.inBase64){if(this.base64AccumIdx>0)C+=N.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),C),this.base64AccumIdx=0;N[C++]=$,this.inBase64=!1}return N.slice(0,C)};function F(N,C){this.iconv=C.iconv,this.inBase64=!1,this.base64Accum=""}var P=K.slice();P[44]=!0,F.prototype.write=function(N){var C="",L=0,V=this.inBase64,M=this.base64Accum;for(var I=0;I0)N=this.iconv.decode(X.from(this.base64Accum,"base64"),"utf16-be");return this.inBase64=!1,this.base64Accum="",N}}}),ro=W1({"node_modules/iconv-lite/encodings/sbcs-codec.js"(Q){var X=MZ().Buffer;Q._sbcs=Z;function Z(Y,H){if(!Y)throw new Error("SBCS codec is called without the data.");if(!Y.chars||Y.chars.length!==128&&Y.chars.length!==256)throw new Error("Encoding '"+Y.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(Y.chars.length===128){var K="";for(var z=0;z<128;z++)K+=String.fromCharCode(z);Y.chars=K+Y.chars}this.decodeBuf=X.from(Y.chars,"ucs2");var W=X.alloc(65536,H.defaultCharSingleByte.charCodeAt(0));for(var z=0;z?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ "},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■ "},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ "},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ "},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ"},maccyrillic:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"},macgreek:{type:"_sbcs",chars:"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�"},maciceland:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macroman:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macromania:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macthai:{type:"_sbcs",chars:"«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู\uFEFF​–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����"},macturkish:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ"},macukraine:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"},koi8r:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8u:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8ru:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8t:{type:"_sbcs",chars:"қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬­®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},armscii8:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�"},rk1048:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},tcvn:{type:"_sbcs",chars:`\x00ÚỤ\x03ỪỬỮ\x07\b\t \v\f\r\x0E\x0F\x10ỨỰỲỶỸÝỴ\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ`},georgianacademy:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},georgianps:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},pt154:{type:"_sbcs",chars:"ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},viscii:{type:"_sbcs",chars:`\x00\x01Ẳ\x03\x04ẴẪ\x07\b\t \v\f\r\x0E\x0F\x10\x11\x12\x13Ỷ\x15\x16\x17\x18Ỹ\x1A\x1B\x1C\x1DỴ\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ`},iso646cn:{type:"_sbcs",chars:`\x00\x01\x02\x03\x04\x05\x06\x07\b\t \v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������`},iso646jp:{type:"_sbcs",chars:`\x00\x01\x02\x03\x04\x05\x06\x07\b\t \v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_\`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������`},hproman8:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�"},macintosh:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},ascii:{type:"_sbcs",chars:"��������������������������������������������������������������������������������������������������������������������������������"},tis620:{type:"_sbcs",chars:"���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"}}}}),Za=W1({"node_modules/iconv-lite/encodings/dbcs-codec.js"(Q){var X=MZ().Buffer;Q._dbcs=W;var Z=-1,J=-2,G=-10,Y=-1000,H=new Array(256),K=-1;for(z=0;z<256;z++)H[z]=Z;var z;function W(D,F){if(this.encodingName=D.encodingName,!D)throw new Error("DBCS codec is called without the data.");if(!D.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var P=D.table();this.decodeTables=[],this.decodeTables[0]=H.slice(0),this.decodeTableSeq=[];for(var N=0;N0;D>>=8)F.push(D&255);if(F.length==0)F.push(0);var P=this.decodeTables[0];for(var N=F.length-1;N>0;N--){var C=P[F[N]];if(C==Z)P[F[N]]=Y-this.decodeTables.length,this.decodeTables.push(P=H.slice(0));else if(C<=Y)P=this.decodeTables[Y-C];else throw new Error("Overwrite byte in "+this.encodingName+", addr: "+D.toString(16))}return P},W.prototype._addDecodeChunk=function(D){var F=parseInt(D[0],16),P=this._getDecodeTrieNode(F);F=F&255;for(var N=1;N255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+D[0]+": too long"+F)},W.prototype._getEncodeBucket=function(D){var F=D>>8;if(this.encodeTable[F]===void 0)this.encodeTable[F]=H.slice(0);return this.encodeTable[F]},W.prototype._setEncodeChar=function(D,F){var P=this._getEncodeBucket(D),N=D&255;if(P[N]<=G)this.encodeTableSeq[G-P[N]][K]=F;else if(P[N]==Z)P[N]=F},W.prototype._setEncodeSequence=function(D,F){var P=D[0],N=this._getEncodeBucket(P),C=P&255,L;if(N[C]<=G)L=this.encodeTableSeq[G-N[C]];else{if(L={},N[C]!==Z)L[K]=N[C];N[C]=G-this.encodeTableSeq.length,this.encodeTableSeq.push(L)}for(var V=1;V=0)this._setEncodeChar(L,V);else if(L<=Y)this._fillEncodeTable(Y-L,V<<8,P);else if(L<=G)this._setEncodeSequence(this.decodeTableSeq[G-L],V)}};function $(D,F){this.leadSurrogate=-1,this.seqObj=void 0,this.encodeTable=F.encodeTable,this.encodeTableSeq=F.encodeTableSeq,this.defaultCharSingleByte=F.defCharSB,this.gb18030=F.gb18030}$.prototype.write=function(D){var F=X.alloc(D.length*(this.gb18030?4:3)),P=this.leadSurrogate,N=this.seqObj,C=-1,L=0,V=0;while(!0){if(C===-1){if(L==D.length)break;var M=D.charCodeAt(L++)}else{var M=C;C=-1}if(55296<=M&&M<57344)if(M<56320)if(P===-1){P=M;continue}else P=M,M=Z;else if(P!==-1)M=65536+(P-55296)*1024+(M-56320),P=-1;else M=Z;else if(P!==-1)C=M,M=Z,P=-1;var I=Z;if(N!==void 0&&M!=Z){var E=N[M];if(typeof E==="object"){N=E;continue}else if(typeof E=="number")I=E;else if(E==null){if(E=N[K],E!==void 0)I=E,C=M}N=void 0}else if(M>=0){var w=this.encodeTable[M>>8];if(w!==void 0)I=w[M&255];if(I<=G){N=this.encodeTableSeq[G-I];continue}if(I==Z&&this.gb18030){var A=B(this.gb18030.uChars,M);if(A!=-1){var I=this.gb18030.gbChars[A]+(M-this.gb18030.uChars[A]);F[V++]=129+Math.floor(I/12600),I=I%12600,F[V++]=48+Math.floor(I/1260),I=I%1260,F[V++]=129+Math.floor(I/10),I=I%10,F[V++]=48+I;continue}}}if(I===Z)I=this.defaultCharSingleByte;if(I<256)F[V++]=I;else if(I<65536)F[V++]=I>>8,F[V++]=I&255;else F[V++]=I>>16,F[V++]=I>>8&255,F[V++]=I&255}return this.seqObj=N,this.leadSurrogate=P,F.slice(0,V)},$.prototype.end=function(){if(this.leadSurrogate===-1&&this.seqObj===void 0)return;var D=X.alloc(10),F=0;if(this.seqObj){var P=this.seqObj[K];if(P!==void 0)if(P<256)D[F++]=P;else D[F++]=P>>8,D[F++]=P&255;this.seqObj=void 0}if(this.leadSurrogate!==-1)D[F++]=this.defaultCharSingleByte,this.leadSurrogate=-1;return D.slice(0,F)},$.prototype.findIdx=B;function q(D,F){this.nodeIdx=0,this.prevBuf=X.alloc(0),this.decodeTables=F.decodeTables,this.decodeTableSeq=F.decodeTableSeq,this.defaultCharUnicode=F.defaultCharUnicode,this.gb18030=F.gb18030}q.prototype.write=function(D){var F=X.alloc(D.length*2),P=this.nodeIdx,N=this.prevBuf,C=this.prevBuf.length,L=-this.prevBuf.length,V;if(C>0)N=X.concat([N,D.slice(0,10)]);for(var M=0,I=0;M=0?D[M]:N[M+C],V=this.decodeTables[P][E];if(V>=0);else if(V===Z)M=L,V=this.defaultCharUnicode.charCodeAt(0);else if(V===J){var w=L>=0?D.slice(L,M+1):N.slice(L+C,M+1+C),A=(w[0]-129)*12600+(w[1]-48)*1260+(w[2]-129)*10+(w[3]-48),R=B(this.gb18030.gbChars,A);V=this.gb18030.uChars[R]+A-this.gb18030.gbChars[R]}else if(V<=Y){P=Y-V;continue}else if(V<=G){var T=this.decodeTableSeq[G-V];for(var S=0;S>8;V=T[T.length-1]}else throw new Error("iconv-lite internal error: invalid decoding table value "+V+" at "+P+"/"+E);if(V>65535){V-=65536;var v=55296+Math.floor(V/1024);F[I++]=v&255,F[I++]=v>>8,V=56320+V%1024}F[I++]=V&255,F[I++]=V>>8,P=0,L=M+1}return this.nodeIdx=P,this.prevBuf=L>=0?D.slice(L):N.slice(L+C),F.slice(0,I).toString("ucs2")},q.prototype.end=function(){var D="";while(this.prevBuf.length>0){D+=this.defaultCharUnicode;var F=this.prevBuf.slice(1);if(this.prevBuf=X.alloc(0),this.nodeIdx=0,F.length>0)D+=this.write(F)}return this.nodeIdx=0,D};function B(D,F){if(D[0]>F)return-1;var P=0,N=D.length;while(PF)q=F;if(B=String(B||"utf8").toLowerCase(),Z.isNativeEncoding(B))return G.SlowBufferWrite.call(this,W,$,q,B);if(W.length>0&&(q<0||$<0))throw new RangeError("attempt to write beyond buffer bounds");var P=J.encode(W,B);if(P.lengthC)q=C;if(W.length>0&&(q<0||$<0))throw new RangeError("attempt to write beyond buffer bounds");var L=J.encode(W,B);if(L.length0?Z.concat([B,D]):B},G.decode=function K(z,W,$){if(typeof z==="string"){if(!G.skipDecodeWarning)console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),G.skipDecodeWarning=!0;z=Z.from(""+(z||""),"binary")}var q=G.getDecoder(W,$),B=q.write(z),D=q.end();return D?B+D:B},G.encodingExists=function K(z){try{return G.getCodec(z),!0}catch(W){return!1}},G.toEncoding=G.encode,G.fromEncoding=G.decode,G._codecDataCache={},G.getCodec=function K(z){if(!G.encodings)G.encodings=Ha();var W=G._canonicalizeEncoding(z),$={};while(!0){var q=G._codecDataCache[W];if(q)return q;var B=G.encodings[W];switch(typeof B){case"string":W=B;break;case"object":for(var D in B)$[D]=B[D];if(!$.encodingName)$.encodingName=W;W=B.type;break;case"function":if(!$.encodingName)$.encodingName=W;return q=new B($,G),G._codecDataCache[$.encodingName]=q,q;default:throw new Error("Encoding not recognized: '"+z+"' (searched as: '"+W+"')")}}},G._canonicalizeEncoding=function(K){return(""+K).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")},G.getEncoder=function K(z,W){var $=G.getCodec(z),q=new $.encoder(W,$);if($.bomAware&&W&&W.addBOM)q=new J.PrependBOM(q,W);return q},G.getDecoder=function K(z,W){var $=G.getCodec(z),q=new $.decoder(W,$);if($.bomAware&&!(W&&W.stripBOM===!1))q=new J.StripBOM(q,W);return q};var Y=typeof process!=="undefined"&&process.versions&&process.versions.node;if(Y){if(H=Y.split(".").map(Number),H[0]>0||H[1]>=10)za()(G);Ka()(G)}var H}}),I$=W1({"node_modules/unpipe/index.js"(Q,X){X.exports=J;function Z(G){var Y=G.listeners("data");for(var H=0;HC)return R(G(413,"request entity too large",{expected:N,length:N,limit:C,type:"entity.too.large"}));var I=F._readableState;if(F._decoder||I&&(I.encoding||I.decoder))return R(G(500,"stream encoding should not be set",{type:"stream.encoding.set"}));if(typeof F.readable!=="undefined"&&!F.readable)return R(G(500,"stream is not readable",{type:"stream.not.readable"}));var E=0,w;try{w=z(P)}catch(x){return R(x)}var A=w?"":[];F.on("aborted",T),F.on("close",h),F.on("data",S),F.on("end",v),F.on("error",v),M=!1;function R(){var x=new Array(arguments.length);for(var p=0;pC)R(G(413,"request entity too large",{limit:C,received:E,type:"entity.too.large"}));else if(w)A+=w.write(x);else A.push(x)}function v(x){if(V)return;if(x)return R(x);if(N!==null&&E!==N)R(G(400,"request size did not match content length",{expected:N,length:N,received:E,type:"request.size.invalid"}));else{var p=w?A+(w.end()||""):Buffer.concat(A);R(null,p)}}function h(){A=null,F.removeListener("aborted",T),F.removeListener("data",S),F.removeListener("end",v),F.removeListener("error",v),F.removeListener("close",h)}}function B(){try{return require("async_hooks")}catch(F){return{}}}function D(F){var P;if(Z.AsyncResource)P=new Z.AsyncResource(F.name||"bound-anonymous-fn");if(!P||!P.runInAsyncScope)return F;return P.runInAsyncScope.bind(P,F,null)}}}),aq=W1({"node_modules/body-parser/lib/read.js"(Q,X){var Z=W7(),J=dM(),G=$a(),Y=uM(),H=O4(),K=I$(),z=require("zlib");X.exports=W;function W(B,D,F,P,N,C){var L,V=C,M,I=V.encoding!==null?V.encoding:null,E=V.verify;try{M=$(B,N,V.inflate),L=M.length,M.length=void 0}catch(w){return F(w)}if(V.length=L,V.encoding=E?null:I,V.encoding===null&&I!==null&&!Y.encodingExists(I))return F(Z(415,'unsupported charset "'+I.toUpperCase()+'"',{charset:I.toLowerCase(),type:"charset.unsupported"}));N("read body"),G(M,V,function(w,A){if(w){var R;if(w.type==="encoding.unsupported")R=Z(415,'unsupported charset "'+I.toUpperCase()+'"',{charset:I.toLowerCase(),type:"charset.unsupported"});else R=Z(400,w);if(M!==B)K(B),J(M,!0);q(B,function S(){F(Z(400,R))});return}if(E)try{N("verify body"),E(B,D,A,I)}catch(S){F(Z(403,S,{body:A,type:S.type||"entity.verify.failed"}));return}var T=A;try{N("parse body"),T=typeof A!=="string"&&I!==null?Y.decode(A,I):A,B.body=P(T)}catch(S){F(Z(400,S,{body:T,type:S.type||"entity.parse.failed"}));return}F()})}function $(B,D,F){var P=(B.headers["content-encoding"]||"identity").toLowerCase(),N=B.headers["content-length"],C;if(D('content-encoding "%s"',P),F===!1&&P!=="identity")throw Z(415,"content encoding unsupported",{encoding:P,type:"encoding.unsupported"});switch(P){case"deflate":C=z.createInflate(),D("inflate body"),B.pipe(C);break;case"gzip":C=z.createGunzip(),D("gunzip body"),B.pipe(C);break;case"identity":C=B,C.length=N;break;default:throw Z(415,'unsupported content encoding "'+P+'"',{encoding:P,type:"encoding.unsupported"})}return C}function q(B,D){if(H.isFinished(B))D(null);else H(B,D),B.resume()}}}),Ba=W1({"node_modules/media-typer/index.js"(Q){var X=/; *([!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) *= *("(?:[ !\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u0020-\u007e])*"|[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) */g,Z=/^[\u0020-\u007e\u0080-\u00ff]+$/,J=/^[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+$/,G=/\\([\u0000-\u007f])/g,Y=/([\\"])/g,H=/^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/,K=/^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/,z=/^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/;Q.format=W,Q.parse=$;function W(F){if(!F||typeof F!=="object")throw new TypeError("argument obj is required");var{parameters:P,subtype:N,suffix:C,type:L}=F;if(!L||!K.test(L))throw new TypeError("invalid type");if(!N||!H.test(N))throw new TypeError("invalid subtype");var V=L+"/"+N;if(C){if(!K.test(C))throw new TypeError("invalid suffix");V+="+"+C}if(P&&typeof P==="object"){var M,I=Object.keys(P).sort();for(var E=0;E0&&!Z.test(P))throw new TypeError("invalid parameter value");return'"'+P.replace(Y,"\\$1")+'"'}function D(F){var P=z.exec(F.toLowerCase());if(!P)throw new TypeError("invalid media type");var N=P[1],C=P[2],L,V=C.lastIndexOf("+");if(V!==-1)L=C.substr(V+1),C=C.substr(0,V);var M={type:N,subtype:C,suffix:L};return M}}}),Ua=W1({"node_modules/mime-db/db.json"(Q,X){X.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}}}),Va=W1({"node_modules/mime-db/index.js"(Q,X){X.exports=Ua()}}),q7=W1({"node_modules/mime-types/index.js"(Q){var X=Va(),Z=require("path").extname,J=/^\s*([^;\s]*)(?:;|\s|$)/,G=/^text\//i;Q.charset=Y,Q.charsets={lookup:Y},Q.contentType=H,Q.extension=K,Q.extensions=Object.create(null),Q.lookup=z,Q.types=Object.create(null),W(Q.extensions,Q.types);function Y($){if(!$||typeof $!=="string")return!1;var q=J.exec($),B=q&&X[q[1].toLowerCase()];if(B&&B.charset)return B.charset;if(q&&G.test(q[1]))return"UTF-8";return!1}function H($){if(!$||typeof $!=="string")return!1;var q=$.indexOf("/")===-1?Q.lookup($):$;if(!q)return!1;if(q.indexOf("charset")===-1){var B=Q.charset(q);if(B)q+="; charset="+B.toLowerCase()}return q}function K($){if(!$||typeof $!=="string")return!1;var q=J.exec($),B=q&&Q.extensions[q[1].toLowerCase()];if(!B||!B.length)return!1;return B[0]}function z($){if(!$||typeof $!=="string")return!1;var q=Z("x."+$).toLowerCase().substr(1);if(!q)return!1;return Q.types[q]||!1}function W($,q){var B=["nginx","apache",void 0,"iana"];Object.keys(X).forEach(function D(F){var P=X[F],N=P.extensions;if(!N||!N.length)return;$[F]=N;for(var C=0;CM||V===M&&q[L].substr(0,12)==="application/"))continue}q[L]=F}})}}}),vX=W1({"node_modules/type-is/index.js"(Q,X){var Z=Ba(),J=q7();X.exports=H,X.exports.is=G,X.exports.hasBody=Y,X.exports.normalize=K,X.exports.match=z;function G(q,B){var D,F=B,P=$(q);if(!P)return!1;if(F&&!Array.isArray(F)){F=new Array(arguments.length-1);for(D=0;D2){D=new Array(arguments.length-1);for(var F=0;F1&&typeof C1!=="boolean")throw new z('"allowMissing" argument must be a boolean');if(x(/^%?[^%]*%?$/,V1)===null)throw new K("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var N1=t(V1),j1=N1.length>0?N1[0]:"",d1=Y1("%"+j1+"%",C1),D1=d1.name,e=d1.value,P1=!1,Q1=d1.alias;if(Q1)j1=Q1[0],S(N1,T([0,1],Q1));for(var O1=1,S1=!0;O1=N1.length){var j=B(e,k);if(S1=!!j,S1&&"get"in j&&!("originalValue"in j.get))e=j.get;else e=e[k]}else S1=R(e,k),e=e[k];if(S1&&!P1)M[D1]=e}}return e}}}),A$=W1({"node_modules/es-define-property/index.js"(Q,X){var Z=H7(),J=Z("%Object.defineProperty%",!0)||!1;if(J)try{J({},"a",{value:1})}catch(G){J=!1}X.exports=J}}),lM=W1({"node_modules/gopd/index.js"(Q,X){var Z=H7(),J=Z("%Object.getOwnPropertyDescriptor%",!0);if(J)try{J([],"length")}catch(G){J=null}X.exports=J}}),Ea=W1({"node_modules/define-data-property/index.js"(Q,X){var Z=A$(),J=pM(),G=gX(),Y=lM();X.exports=function H(K,z,W){if(!K||typeof K!=="object"&&typeof K!=="function")throw new G("`obj` must be an object or a function`");if(typeof z!=="string"&&typeof z!=="symbol")throw new G("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null)throw new G("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null)throw new G("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null)throw new G("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=="boolean")throw new G("`loose`, if provided, must be a boolean");var $=arguments.length>3?arguments[3]:null,q=arguments.length>4?arguments[4]:null,B=arguments.length>5?arguments[5]:null,D=arguments.length>6?arguments[6]:!1,F=!!Y&&Y(K,z);if(Z)Z(K,z,{configurable:B===null&&F?F.configurable:!B,enumerable:$===null&&F?F.enumerable:!$,value:W,writable:q===null&&F?F.writable:!q});else if(D||!$&&!q&&!B)K[z]=W;else throw new J("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}}),ja=W1({"node_modules/has-property-descriptors/index.js"(Q,X){var Z=A$(),J=function G(){return!!Z};J.hasArrayLengthDefineBug=function G(){if(!Z)return null;try{return Z([],"length",{value:1}).length!==1}catch(Y){return!0}},X.exports=J}}),Sa=W1({"node_modules/set-function-length/index.js"(Q,X){var Z=H7(),J=Ea(),G=ja()(),Y=lM(),H=gX(),K=Z("%Math.floor%");X.exports=function z(W,$){if(typeof W!=="function")throw new H("`fn` is not a function");if(typeof $!=="number"||$<0||$>4294967295||K($)!==$)throw new H("`length` must be a positive 32-bit integer");var q=arguments.length>2&&!!arguments[2],B=!0,D=!0;if("length"in W&&Y){var F=Y(W,"length");if(F&&!F.configurable)B=!1;if(F&&!F.writable)D=!1}if(B||D||!q)if(G)J(W,"length",$,!0,!0);else J(W,"length",$);return W}}}),ka=W1({"node_modules/call-bind/index.js"(Q,X){var Z=R$(),J=H7(),G=Sa(),Y=gX(),H=J("%Function.prototype.apply%"),K=J("%Function.prototype.call%"),z=J("%Reflect.apply%",!0)||Z.call(K,H),W=A$(),$=J("%Math.max%");X.exports=function B(D){if(typeof D!=="function")throw new Y("a function is required");var F=z(Z,K,arguments);return G(F,1+$(0,D.length-(arguments.length-1)),!0)};var q=function B(){return z(Z,H,arguments)};if(W)W(X.exports,"apply",{value:q});else X.exports.apply=q}}),ya=W1({"node_modules/call-bind/callBound.js"(Q,X){var Z=H7(),J=ka(),G=J(Z("String.prototype.indexOf"));X.exports=function Y(H,K){var z=Z(H,!!K);if(typeof z==="function"&&G(H,".prototype.")>-1)return J(z);return z}}}),xa=W1({"node_modules/object-inspect/util.inspect.js"(Q,X){X.exports=require("util").inspect}}),va=W1({"node_modules/object-inspect/index.js"(Q,X){var Z=typeof Map==="function"&&Map.prototype,J=Object.getOwnPropertyDescriptor&&Z?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,G=Z&&J&&typeof J.get==="function"?J.get:null,Y=Z&&Map.prototype.forEach,H=typeof Set==="function"&&Set.prototype,K=Object.getOwnPropertyDescriptor&&H?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,z=H&&K&&typeof K.get==="function"?K.get:null,W=H&&Set.prototype.forEach,$=typeof WeakMap==="function"&&WeakMap.prototype,q=$?WeakMap.prototype.has:null,B=typeof WeakSet==="function"&&WeakSet.prototype,D=B?WeakSet.prototype.has:null,F=typeof WeakRef==="function"&&WeakRef.prototype,P=F?WeakRef.prototype.deref:null,N=Boolean.prototype.valueOf,C=Object.prototype.toString,L=Function.prototype.toString,V=String.prototype.match,M=String.prototype.slice,I=String.prototype.replace,E=String.prototype.toUpperCase,w=String.prototype.toLowerCase,A=RegExp.prototype.test,R=Array.prototype.concat,T=Array.prototype.join,S=Array.prototype.slice,v=Math.floor,h=typeof BigInt==="function"?BigInt.prototype.valueOf:null,x=Object.getOwnPropertySymbols,p=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null,n=typeof Symbol==="function"&&typeof Symbol.iterator==="object",t=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===n?"object":"symbol")?Symbol.toStringTag:null,Y1=Object.prototype.propertyIsEnumerable,G1=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function($1){return $1.__proto__}:null);function V1($1,U1){if($1===1/0||$1===-1/0||$1!==$1||$1&&$1>-1000&&$1<1000||A.call(/e/,U1))return U1;var z0=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof $1==="number"){var L0=$1<0?-v(-$1):v($1);if(L0!==$1){var J0=String(L0),v1=M.call(U1,J0.length+1);return I.call(J0,z0,"$&_")+"."+I.call(I.call(v1,/([0-9]{3})/g,"$&_"),/_$/,"")}}return I.call(U1,z0,"$&_")}var C1=xa(),N1=C1.custom,j1=f(N1)?N1:null;X.exports=function $1(U1,z0,L0,J0){var v1=z0||{};if(Z1(v1,"quoteStyle")&&(v1.quoteStyle!=="single"&&v1.quoteStyle!=="double"))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z1(v1,"maxStringLength")&&(typeof v1.maxStringLength==="number"?v1.maxStringLength<0&&v1.maxStringLength!==1/0:v1.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var W6=Z1(v1,"customInspect")?v1.customInspect:!0;if(typeof W6!=="boolean"&&W6!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Z1(v1,"indent")&&v1.indent!==null&&v1.indent!=="\t"&&!(parseInt(v1.indent,10)===v1.indent&&v1.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Z1(v1,"numericSeparator")&&typeof v1.numericSeparator!=="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var j6=v1.numericSeparator;if(typeof U1==="undefined")return"undefined";if(U1===null)return"null";if(typeof U1==="boolean")return U1?"true":"false";if(typeof U1==="string")return X0(U1,v1);if(typeof U1==="number"){if(U1===0)return 1/0/U1>0?"0":"-0";var I6=String(U1);return j6?V1(U1,I6):I6}if(typeof U1==="bigint"){var i6=String(U1)+"n";return j6?V1(U1,i6):i6}var e8=typeof v1.depth==="undefined"?5:v1.depth;if(typeof L0==="undefined")L0=0;if(L0>=e8&&e8>0&&typeof U1==="object")return e(U1)?"[Array]":"[Object]";var _8=x0(v1,L0);if(typeof J0==="undefined")J0=[];else if(B1(J0,U1)>=0)return"[Circular]";function b0(d8,qQ,hQ){if(qQ)J0=S.call(J0),J0.push(qQ);if(hQ){var l9={depth:v1.depth};if(Z1(v1,"quoteStyle"))l9.quoteStyle=v1.quoteStyle;return $1(d8,l9,L0+1,J0)}return $1(d8,v1,L0+1,J0)}if(typeof U1==="function"&&!Q1(U1)){var R6=J1(U1),r0=U0(U1,b0);return"[Function"+(R6?": "+R6:" (anonymous)")+"]"+(r0.length>0?" { "+T.call(r0,", ")+" }":"")}if(f(U1)){var u0=n?I.call(String(U1),/^(Symbol\(.*\))_[^)]*$/,"$1"):p.call(U1);return typeof U1==="object"&&!n?B0(u0):u0}if(a1(U1)){var q6="<"+w.call(String(U1.nodeName)),M0=U1.attributes||[];for(var _0=0;_0",q6}if(e(U1)){if(U1.length===0)return"[]";var i0=U0(U1,b0);if(_8&&!D0(i0))return"["+R0(i0,_8)+"]";return"[ "+T.call(i0,", ")+" ]"}if(O1(U1)){var H6=U0(U1,b0);if(!("cause"in Error.prototype)&&"cause"in U1&&!Y1.call(U1,"cause"))return"{ ["+String(U1)+"] "+T.call(R.call("[cause]: "+b0(U1.cause),H6),", ")+" }";if(H6.length===0)return"["+String(U1)+"]";return"{ ["+String(U1)+"] "+T.call(H6,", ")+" }"}if(typeof U1==="object"&&W6){if(j1&&typeof U1[j1]==="function"&&C1)return C1(U1,{depth:e8-L0});else if(W6!=="symbol"&&typeof U1.inspect==="function")return U1.inspect()}if(L1(U1)){var B6=[];if(Y)Y.call(U1,function(d8,qQ){B6.push(b0(qQ,U1,!0)+" => "+b0(d8,U1))});return S0("Map",G.call(U1),B6,_8)}if(u1(U1)){var Z6=[];if(W)W.call(U1,function(d8){Z6.push(b0(d8,U1))});return S0("Set",z.call(U1),Z6,_8)}if(H1(U1))return Y0("WeakMap");if(s1(U1))return Y0("WeakSet");if(M1(U1))return Y0("WeakRef");if(k(U1))return B0(b0(Number(U1)));if(j(U1))return B0(b0(h.call(U1)));if(d(U1))return B0(N.call(U1));if(S1(U1))return B0(b0(String(U1)));if(typeof window!=="undefined"&&U1===window)return"{ [object Window] }";if(typeof globalThis!=="undefined"&&U1===globalThis||typeof global!=="undefined"&&U1===global)return"{ [object globalThis] }";if(!P1(U1)&&!Q1(U1)){var e0=U0(U1,b0),z6=G1?G1(U1)===Object.prototype:U1 instanceof Object||U1.constructor===Object,X6=U1 instanceof Object?"":"null prototype",n0=!z6&&t&&Object(U1)===U1&&t in U1?M.call(_(U1),8,-1):X6?"Object":"",U6=z6||typeof U1.constructor!=="function"?"":U1.constructor.name?U1.constructor.name+" ":"",gQ=U6+(n0||X6?"["+T.call(R.call([],n0||[],X6||[]),": ")+"] ":"");if(e0.length===0)return gQ+"{}";if(_8)return gQ+"{"+R0(e0,_8)+"}";return gQ+"{ "+T.call(e0,", ")+" }"}return String(U1)};function d1($1,U1,z0){var L0=(z0.quoteStyle||U1)==="double"?'"':"'";return L0+$1+L0}function D1($1){return I.call(String($1),/"/g,""")}function e($1){return _($1)==="[object Array]"&&(!t||!(typeof $1==="object"&&(t in $1)))}function P1($1){return _($1)==="[object Date]"&&(!t||!(typeof $1==="object"&&(t in $1)))}function Q1($1){return _($1)==="[object RegExp]"&&(!t||!(typeof $1==="object"&&(t in $1)))}function O1($1){return _($1)==="[object Error]"&&(!t||!(typeof $1==="object"&&(t in $1)))}function S1($1){return _($1)==="[object String]"&&(!t||!(typeof $1==="object"&&(t in $1)))}function k($1){return _($1)==="[object Number]"&&(!t||!(typeof $1==="object"&&(t in $1)))}function d($1){return _($1)==="[object Boolean]"&&(!t||!(typeof $1==="object"&&(t in $1)))}function f($1){if(n)return $1&&typeof $1==="object"&&$1 instanceof Symbol;if(typeof $1==="symbol")return!0;if(!$1||typeof $1!=="object"||!p)return!1;try{return p.call($1),!0}catch(U1){}return!1}function j($1){if(!$1||typeof $1!=="object"||!h)return!1;try{return h.call($1),!0}catch(U1){}return!1}var m=Object.prototype.hasOwnProperty||function($1){return $1 in this};function Z1($1,U1){return m.call($1,U1)}function _($1){return C.call($1)}function J1($1){if($1.name)return $1.name;var U1=V.call(L.call($1),/^function\s*([\w$]+)/);if(U1)return U1[1];return null}function B1($1,U1){if($1.indexOf)return $1.indexOf(U1);for(var z0=0,L0=$1.length;z0U1.maxStringLength){var z0=$1.length-U1.maxStringLength,L0="... "+z0+" more character"+(z0>1?"s":"");return X0(M.call($1,0,U1.maxStringLength),U1)+L0}var J0=I.call(I.call($1,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,t1);return d1(J0,"single",U1)}function t1($1){var U1=$1.charCodeAt(0),z0={8:"b",9:"t",10:"n",12:"f",13:"r"}[U1];if(z0)return"\\"+z0;return"\\x"+(U1<16?"0":"")+E.call(U1.toString(16))}function B0($1){return"Object("+$1+")"}function Y0($1){return $1+" { ? }"}function S0($1,U1,z0,L0){var J0=L0?R0(z0,L0):T.call(z0,", ");return $1+" ("+U1+") {"+J0+"}"}function D0($1){for(var U1=0;U1<$1.length;U1++)if(B1($1[U1],` `)>=0)return!1;return!0}function x0($1,U1){var z0;if($1.indent==="\t")z0="\t";else if(typeof $1.indent==="number"&&$1.indent>0)z0=T.call(Array($1.indent+1)," ");else return null;return{base:z0,prev:T.call(Array(U1+1),z0)}}function R0($1,U1){if($1.length===0)return"";var z0=` `+U1.prev+U1.base;return z0+T.call($1,","+z0)+` `+U1.prev}function U0($1,U1){var z0=e($1),L0=[];if(z0){L0.length=$1.length;for(var J0=0;J0<$1.length;J0++)L0[J0]=Z1($1,J0)?U1($1[J0],$1):""}var v1=typeof x==="function"?x($1):[],W6;if(n){W6={};for(var j6=0;j61){var V=L.pop(),M=V.obj[V.prop];if(G(M)){var I=[];for(var E=0;E=48&&T<=57||T>=65&&T<=90||T>=97&&T<=122||E===Z.RFC1738&&(T===40||T===41)){A+=w.charAt(R);continue}if(T<128){A=A+Y[T];continue}if(T<2048){A=A+(Y[192|T>>6]+Y[128|T&63]);continue}if(T<55296||T>=57344){A=A+(Y[224|T>>12]+Y[128|T>>6&63]+Y[128|T&63]);continue}R+=1,T=65536+((T&1023)<<10|w.charCodeAt(R)&1023),A+=Y[240|T>>18]+Y[128|T>>12&63]+Y[128|T>>6&63]+Y[128|T&63]}return A},B=function C(L){var V=[{obj:{o:L},prop:"o"}],M=[];for(var I=0;I0?G1.join(",")||null:void 0}];else if(K(T))O1=T;else{var S1=Object.keys(G1);O1=S?S1.sort(S):S1}var k=E&&K(G1)&&G1.length===1?M+"[]":M;for(var d=0;d0?n+p:""}}}),fa=W1({"node_modules/qs/lib/parse.js"(Q,X){var Z=cM(),J=Object.prototype.hasOwnProperty,G=Array.isArray,Y={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Z.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1000,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},H=function(F){return F.replace(/&#(\d+);/g,function(P,N){return String.fromCharCode(parseInt(N,10))})},K=function(F,P){if(F&&typeof F==="string"&&P.comma&&F.indexOf(",")>-1)return F.split(",");return F},z="utf8=%26%2310003%3B",W="utf8=%E2%9C%93",$=function F(P,N){var C={},L=N.ignoreQueryPrefix?P.replace(/^\?/,""):P,V=N.parameterLimit===1/0?void 0:N.parameterLimit,M=L.split(N.delimiter,V),I=-1,E,w=N.charset;if(N.charsetSentinel){for(E=0;E-1)v=G(v)?[v]:v;if(J.call(C,S))C[S]=Z.combine(C[S],v);else C[S]=v}return C},q=function(F,P,N,C){var L=C?P:K(P,N);for(var V=F.length-1;V>=0;--V){var M,I=F[V];if(I==="[]"&&N.parseArrays)M=[].concat(L);else{M=N.plainObjects?Object.create(null):{};var E=I.charAt(0)==="["&&I.charAt(I.length-1)==="]"?I.slice(1,-1):I,w=parseInt(E,10);if(!N.parseArrays&&E==="")M={0:L};else if(!isNaN(w)&&I!==E&&String(w)===E&&w>=0&&(N.parseArrays&&w<=N.arrayLimit))M=[],M[w]=L;else if(E!=="__proto__")M[E]=L}L=M}return L},B=function F(P,N,C,L){if(!P)return;var V=C.allowDots?P.replace(/\.([^.[]+)/g,"[$1]"):P,M=/(\[[^[\]]*])/,I=/(\[[^[\]]*])/g,E=C.depth>0&&M.exec(V),w=E?V.slice(0,E.index):V,A=[];if(w){if(!C.plainObjects&&J.call(Object.prototype,w)){if(!C.allowPrototypes)return}A.push(w)}var R=0;while(C.depth>0&&(E=I.exec(V))!==null&&R0)return K(q);else if(D==="number"&&isNaN(q)===!1)return B.long?W(q):z(q);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(q))};function K(q){if(q=String(q),q.length>100)return;var B=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(q);if(!B)return;var D=parseFloat(B[1]),F=(B[2]||"ms").toLowerCase();switch(F){case"years":case"year":case"yrs":case"yr":case"y":return D*H;case"days":case"day":case"d":return D*Y;case"hours":case"hour":case"hrs":case"hr":case"h":return D*G;case"minutes":case"minute":case"mins":case"min":case"m":return D*J;case"seconds":case"second":case"secs":case"sec":case"s":return D*Z;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return D;default:return}}function z(q){if(q>=Y)return Math.round(q/Y)+"d";if(q>=G)return Math.round(q/G)+"h";if(q>=J)return Math.round(q/J)+"m";if(q>=Z)return Math.round(q/Z)+"s";return q+"ms"}function W(q){return $(q,Y,"day")||$(q,G,"hour")||$(q,J,"minute")||$(q,Z,"second")||q+" ms"}function $(q,B,D){if(q=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Q.formatters.j=function(z){try{return JSON.stringify(z)}catch(W){return"[UnexpectedJSONParseError]: "+W.message}};function J(z){var W=this.useColors;if(z[0]=(W?"%c":"")+this.namespace+(W?" %c":" ")+z[0]+(W?"%c ":" ")+"+"+Q.humanize(this.diff),!W)return;var $="color: "+this.color;z.splice(1,0,$,"color: inherit");var q=0,B=0;z[0].replace(/%[a-zA-Z%]/g,function(D){if(D==="%%")return;if(q++,D==="%c")B=q}),z.splice(B,0,$)}function G(){return typeof console==="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function Y(z){try{if(z==null)Q.storage.removeItem("debug");else Q.storage.debug=z}catch(W){}}function H(){var z;try{z=Q.storage.debug}catch(W){}if(!z&&typeof process!=="undefined"&&"env"in process)z=process.env.DEBUG;return z}Q.enable(H());function K(){try{return window.localStorage}catch(z){}}}}),ua=W1({"node_modules/finalhandler/node_modules/debug/src/node.js"(Q,X){var Z=require("tty"),J=require("util");Q=X.exports=oM(),Q.init=B,Q.log=z,Q.formatArgs=K,Q.save=W,Q.load=$,Q.useColors=H,Q.colors=[6,2,3,4,5,1],Q.inspectOpts=Object.keys(process.env).filter(function(D){return/^debug_/i.test(D)}).reduce(function(D,F){var P=F.substring(6).toLowerCase().replace(/_([a-z])/g,function(C,L){return L.toUpperCase()}),N=process.env[F];if(/^(yes|on|true|enabled)$/i.test(N))N=!0;else if(/^(no|off|false|disabled)$/i.test(N))N=!1;else if(N==="null")N=null;else N=Number(N);return D[P]=N,D},{});var G=parseInt(process.env.DEBUG_FD,10)||2;if(G!==1&&G!==2)J.deprecate(function(){},"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();var Y=G===1?process.stdout:G===2?process.stderr:q(G);function H(){return"colors"in Q.inspectOpts?Boolean(Q.inspectOpts.colors):Z.isatty(G)}Q.formatters.o=function(D){return this.inspectOpts.colors=this.useColors,J.inspect(D,this.inspectOpts).split(` `).map(function(F){return F.trim()}).join(" ")},Q.formatters.O=function(D){return this.inspectOpts.colors=this.useColors,J.inspect(D,this.inspectOpts)};function K(D){var F=this.namespace,P=this.useColors;if(P){var N=this.color,C=" \x1B[3"+N+";1m"+F+" \x1B[0m";D[0]=C+D[0].split(` `).join(` `+C),D.push("\x1B[3"+N+"m+"+Q.humanize(this.diff)+"\x1B[0m")}else D[0]=new Date().toUTCString()+" "+F+" "+D[0]}function z(){return Y.write(J.format.apply(J,arguments)+` `)}function W(D){if(D==null)delete process.env.DEBUG;else process.env.DEBUG=D}function $(){return process.env.DEBUG}function q(D){var F,P=process.binding("tty_wrap");switch(P.guessHandleType(D)){case"TTY":if(F=new Z.WriteStream(D),F._type="tty",F._handle&&F._handle.unref)F._handle.unref();break;case"FILE":var N=require("fs");F=new N.SyncWriteStream(D,{autoClose:!1}),F._type="fs";break;case"PIPE":case"TCP":var C=require("net");if(F=new C.Socket({fd:D,readable:!1,writable:!0}),F.readable=!1,F.read=null,F._type="pipe",F._handle&&F._handle.unref)F._handle.unref();break;default:throw new Error("Implement me. Unknown stream file type!")}return F.fd=D,F._isStdio=!0,F}function B(D){D.inspectOpts={};var F=Object.keys(Q.inspectOpts);for(var P=0;P]/;X.exports=J;function J(G){var Y=""+G,H=Z.exec(Y);if(!H)return Y;var K,z="",W=0,$=0;for(W=H.index;W").replace(W,"  ");return` Error
`+A+`
`}X.exports=F;function F(w,A,R){var T=R||{},S=T.env||"production",v=T.onerror;return function(h){var x,p,n;if(!h&&M(A)){Z("cannot 404 after headers sent");return}if(h){if(n=C(h),n===void 0)n=V(A);else x=P(h);p=N(h,n,S)}else n=404,p="Cannot "+w.method+" "+J(L(w));if(Z("default %s",n),h&&v)q(v,h,w,A);if(M(A)){Z("cannot %d after headers sent",n),w.socket.destroy();return}I(w,A,n,x,p)}}function P(w){if(!w.headers||typeof w.headers!=="object")return;var A=Object.create(null),R=Object.keys(w.headers);for(var T=0;T=400&&w.status<600)return w.status;if(typeof w.statusCode==="number"&&w.statusCode>=400&&w.statusCode<600)return w.statusCode;return}function L(w){try{return H.original(w).pathname}catch(A){return"resource"}}function V(w){var A=w.statusCode;if(typeof A!=="number"||A<400||A>599)A=500;return A}function M(w){return typeof w.headersSent!=="boolean"?Boolean(w._header):w.headersSent}function I(w,A,R,T,S){function v(){var h=D(S);if(A.statusCode=R,A.statusMessage=K.message[R],A.removeHeader("Content-Encoding"),A.removeHeader("Content-Language"),A.removeHeader("Content-Range"),E(A,T),A.setHeader("Content-Security-Policy","default-src 'none'"),A.setHeader("X-Content-Type-Options","nosniff"),A.setHeader("Content-Type","text/html; charset=utf-8"),A.setHeader("Content-Length",Buffer.byteLength(h,"utf8")),w.method==="HEAD"){A.end();return}A.end(h,"utf8")}if(B(w)){v();return}z(w),Y(w,v),w.resume()}function E(w,A){if(!A)return;var R=Object.keys(A);for(var T=0;T0)return K(q);else if(D==="number"&&isNaN(q)===!1)return B.long?W(q):z(q);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(q))};function K(q){if(q=String(q),q.length>100)return;var B=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(q);if(!B)return;var D=parseFloat(B[1]),F=(B[2]||"ms").toLowerCase();switch(F){case"years":case"year":case"yrs":case"yr":case"y":return D*H;case"days":case"day":case"d":return D*Y;case"hours":case"hour":case"hrs":case"hr":case"h":return D*G;case"minutes":case"minute":case"mins":case"min":case"m":return D*J;case"seconds":case"second":case"secs":case"sec":case"s":return D*Z;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return D;default:return}}function z(q){if(q>=Y)return Math.round(q/Y)+"d";if(q>=G)return Math.round(q/G)+"h";if(q>=J)return Math.round(q/J)+"m";if(q>=Z)return Math.round(q/Z)+"s";return q+"ms"}function W(q){return $(q,Y,"day")||$(q,G,"hour")||$(q,J,"minute")||$(q,Z,"second")||q+" ms"}function $(q,B,D){if(q=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Q.formatters.j=function(z){try{return JSON.stringify(z)}catch(W){return"[UnexpectedJSONParseError]: "+W.message}};function J(z){var W=this.useColors;if(z[0]=(W?"%c":"")+this.namespace+(W?" %c":" ")+z[0]+(W?"%c ":" ")+"+"+Q.humanize(this.diff),!W)return;var $="color: "+this.color;z.splice(1,0,$,"color: inherit");var q=0,B=0;z[0].replace(/%[a-zA-Z%]/g,function(D){if(D==="%%")return;if(q++,D==="%c")B=q}),z.splice(B,0,$)}function G(){return typeof console==="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function Y(z){try{if(z==null)Q.storage.removeItem("debug");else Q.storage.debug=z}catch(W){}}function H(){var z;try{z=Q.storage.debug}catch(W){}if(!z&&typeof process!=="undefined"&&"env"in process)z=process.env.DEBUG;return z}Q.enable(H());function K(){try{return window.localStorage}catch(z){}}}}),na=W1({"node_modules/express/node_modules/debug/src/node.js"(Q,X){var Z=require("tty"),J=require("util");Q=X.exports=aM(),Q.init=q,Q.log=z,Q.formatArgs=H,Q.save=W,Q.load=$,Q.useColors=Y,Q.colors=[6,2,3,4,5,1];try{if(G=M$(),G&&G.level>=2)Q.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(B){}var G;Q.inspectOpts=Object.keys(process.env).filter(function(B){return/^debug_/i.test(B)}).reduce(function(B,D){var F=D.substring(6).toLowerCase().replace(/_([a-z])/g,function(N,C){return C.toUpperCase()}),P=process.env[D];if(/^(yes|on|true|enabled)$/i.test(P))P=!0;else if(/^(no|off|false|disabled)$/i.test(P))P=!1;else if(P==="null")P=null;else P=Number(P);return B[F]=P,B},{});function Y(){return"colors"in Q.inspectOpts?Boolean(Q.inspectOpts.colors):Z.isatty(process.stderr.fd)}Q.formatters.o=function(B){return this.inspectOpts.colors=this.useColors,J.inspect(B,this.inspectOpts).split(` `).map(function(D){return D.trim()}).join(" ")},Q.formatters.O=function(B){return this.inspectOpts.colors=this.useColors,J.inspect(B,this.inspectOpts)};function H(B){var D=this.namespace,F=this.useColors;if(F){var P=this.color,N="\x1B[3"+(P<8?P:"8;5;"+P),C=" "+N+";1m"+D+" \x1B[0m";B[0]=C+B[0].split(` `).join(` `+C),B.push(N+"m+"+Q.humanize(this.diff)+"\x1B[0m")}else B[0]=K()+D+" "+B[0]}function K(){if(Q.inspectOpts.hideDate)return"";else return new Date().toISOString()+" "}function z(){return process.stderr.write(J.format.apply(J,arguments)+` `)}function W(B){if(B==null)delete process.env.DEBUG;else process.env.DEBUG=B}function $(){return process.env.DEBUG}function q(B){B.inspectOpts={};var D=Object.keys(Q.inspectOpts);for(var F=0;F=0;W--)switch(Y.charCodeAt(W)){case 32:if(z===H)z=H=W;break;case 44:if(z!==H)K.push(Y.substring(z,H));z=H=W;break;default:z=W;break}if(z!==H)K.push(Y.substring(z,H));return K}}}),sa=W1({"node_modules/ipaddr.js/lib/ipaddr.js"(Q,X){(function(){var Z,J,G,Y,H,K,z,W,$;if(J={},W=this,typeof X!=="undefined"&&X!==null&&X.exports)X.exports=J;else W.ipaddr=J;z=function(q,B,D,F){var P,N;if(q.length!==B.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");P=0;while(F>0){if(N=D-F,N<0)N=0;if(q[P]>>N!==B[P]>>N)return!1;F-=D,P+=1}return!0},J.subnetMatch=function(q,B,D){var F,P,N,C,L;if(D==null)D="unicast";for(N in B){if(C=B[N],C[0]&&!(C[0]instanceof Array))C=[C];for(F=0,P=C.length;F=0;D=F+=-1)if(P=this.octets[D],P in L){if(C=L[P],N&&C!==0)return null;if(C!==8)N=!0;B+=C}else return null;return 32-B},q}(),G="(0?\\d+|0x[a-f0-9]+)",Y={fourOctet:new RegExp("^"+G+"\\."+G+"\\."+G+"\\."+G+"$","i"),longValue:new RegExp("^"+G+"$","i")},J.IPv4.parser=function(q){var B,D,F,P,N;if(D=function(C){if(C[0]==="0"&&C[1]!=="x")return parseInt(C,8);else return parseInt(C)},B=q.match(Y.fourOctet))return function(){var C,L,V,M;V=B.slice(1,6),M=[];for(C=0,L=V.length;C4294967295||N<0)throw new Error("ipaddr: address outside defined range");return function(){var C,L;L=[];for(P=C=0;C<=24;P=C+=8)L.push(N>>P&255);return L}().reverse()}else return null},J.IPv6=function(){function q(B,D){var F,P,N,C,L,V;if(B.length===16){this.parts=[];for(F=P=0;P<=14;F=P+=2)this.parts.push(B[F]<<8|B[F+1])}else if(B.length===8)this.parts=B;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");V=this.parts;for(N=0,C=V.length;ND)B=F.index,D=F[0].length;if(D<0)return N;return N.substring(0,B)+"::"+N.substring(B+D)},q.prototype.toByteArray=function(){var B,D,F,P,N;B=[],N=this.parts;for(D=0,F=N.length;D>8),B.push(P&255);return B},q.prototype.toNormalizedString=function(){var B,D,F;if(B=function(){var P,N,C,L;C=this.parts,L=[];for(P=0,N=C.length;P>8,B&255,D>>8,D&255])},q.prototype.prefixLengthFromSubnetMask=function(){var B,D,F,P,N,C,L;L={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},B=0,N=!1;for(D=F=7;F>=0;D=F+=-1)if(P=this.parts[D],P in L){if(C=L[P],N&&C!==0)return null;if(C!==16)N=!0;B+=C}else return null;return 128-B},q}(),H="(?:[0-9a-f]+::?)+",$="%[0-9a-z]{1,}",K={zoneIndex:new RegExp($,"i"),native:new RegExp("^(::)?("+H+")?([0-9a-f]+)?(::)?("+$+")?$","i"),transitional:new RegExp("^((?:"+H+")|(?:::)(?:"+H+")?)"+(G+"\\."+G+"\\."+G+"\\."+G)+("("+$+")?$"),"i")},Z=function(q,B){var D,F,P,N,C,L;if(q.indexOf("::")!==q.lastIndexOf("::"))return null;if(L=(q.match(K.zoneIndex)||[])[0],L)L=L.substring(1),q=q.replace(/%.+$/,"");D=0,F=-1;while((F=q.indexOf(":",F+1))>=0)D++;if(q.substr(0,2)==="::")D--;if(q.substr(-2,2)==="::")D--;if(D>B)return null;C=B-D,N=":";while(C--)N+="0:";if(q=q.replace("::",N),q[0]===":")q=q.slice(1);if(q[q.length-1]===":")q=q.slice(0,-1);return B=function(){var V,M,I,E;I=q.split(":"),E=[];for(V=0,M=I.length;V=0&&B<=32)return F=[this.parse(D[1]),B],Object.defineProperty(F,"toString",{value:function(){return this.join("/")}}),F}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},J.IPv4.subnetMaskFromPrefixLength=function(q){var B,D,F;if(q=parseInt(q),q<0||q>32)throw new Error("ipaddr: invalid IPv4 prefix length");F=[0,0,0,0],D=0,B=Math.floor(q/8);while(D=0&&B<=128)return F=[this.parse(D[1]),B],Object.defineProperty(F,"toString",{value:function(){return this.join("/")}}),F}throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},J.isValid=function(q){return J.IPv6.isValid(q)||J.IPv4.isValid(q)},J.parse=function(q){if(J.IPv6.isValid(q))return J.IPv6.parse(q);else if(J.IPv4.isValid(q))return J.IPv4.parse(q);else throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},J.parseCIDR=function(q){var B;try{return J.IPv6.parseCIDR(q)}catch(D){B=D;try{return J.IPv4.parseCIDR(q)}catch(F){throw B=F,new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},J.fromByteArray=function(q){var B=q.length;if(B===4)return new J.IPv4(q);else if(B===16)return new J.IPv6(q);else throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},J.process=function(q){var B=this.parse(q);if(B.kind()==="ipv6"&&B.isIPv4MappedAddress())return B.toIPv4Address();else return B}}).call(Q)}}),rM=W1({"node_modules/proxy-addr/index.js"(Q,X){X.exports=F,X.exports.all=z,X.exports.compile=W;var Z=aa(),J=sa(),G=/^[0-9]+$/,Y=J.isValid,H=J.parse,K={linklocal:["169.254.0.0/16","fe80::/10"],loopback:["127.0.0.1/8","::1/128"],uniquelocal:["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","fc00::/7"]};function z(L,V){var M=Z(L);if(!V)return M;if(typeof V!=="function")V=W(V);for(var I=0;IE)throw new TypeError("invalid range on address: "+L);return[I,w]}function D(L){var V=H(L),M=V.kind();return M==="ipv4"?V.prefixLengthFromSubnetMask():null}function F(L,V){if(!L)throw new TypeError("req argument is required");if(!V)throw new TypeError("trust argument is required");var M=z(L,V),I=M[M.length-1];return I}function P(){return!1}function N(L){return function V(M){if(!Y(M))return!1;var I=H(M),E,w=I.kind();for(var A=0;A-1:!0;if(C1)x=V1,E=E.slice(0,G1)}if(E)V.push(E),E="",R=!1;var N1=Y1==="+"||Y1==="*",j1=Y1==="?"||Y1==="*",d1=n||t,D1=x||w;V.push({name:p||M++,prefix:x,delimiter:D1,optional:j1,repeat:N1,pattern:d1?$(d1):"[^"+W(D1===w?D1:D1+w)+"]+?"})}if(E||I",this.params=void 0,this.path=void 0,this.regexp=J(B.strict?W:z(W),this.keys,B),this.regexp._slash=W==="/"&&B.end===!1}H.prototype.handleError=function W($,q,B,D){var F=this.handle;if(F.length!==4)return D($);try{var P=F($,q,B,D);if(Z(P))P.then(null,function(N){D(N||new Error("Rejected promise"))})}catch(N){D(N)}},H.prototype.handleRequest=function W($,q,B){var D=this.handle;if(D.length>3)return B();try{var F=D($,q,B);if(Z(F))F.then(null,function(P){B(P||new Error("Rejected promise"))})}catch(P){B(P)}},H.prototype.match=function W($){var q;if($!=null){if(this.regexp._slash)return this.params={},this.path="",!0;q=this.regexp.exec($)}if(!q)return this.params=void 0,this.path=void 0,!1;this.params={},this.path=q[0];var B=this.keys,D=this.params;for(var F=1;F=D.length)return q(C);if(++F>100)return H(N,C);var L,V;while(V!==!0&&B=Y1.length){setImmediate(C1,D1);return}if(++n>100)return setImmediate(N1,d1);var e=D(w);if(e==null)return C1(D1);var P1,Q1,O1;while(Q1!==!0&&T=0;R--)if(E[R+T]=E[R],R=v.length)return S();if(p=0,n=v[h++],x=n.name,t=R.params[x],Y1=E[x],G1=A[x],t===void 0||!Y1)return V1();if(G1&&(G1.match===t||G1.error&&G1.error!=="route"))return R.params[x]=G1.value,V1(G1.error);A[x]=G1={error:null,match:t,value:t},C1()}function C1(N1){var j1=Y1[p++];if(G1.value=R.params[n.name],N1){G1.error=N1,V1(N1);return}if(!j1)return V1();try{var d1=j1(R,T,C1,t,n.name);if(J(d1))d1.then(null,function(D1){C1(D1||new Error("Rejected promise"))})}catch(D1){C1(D1)}}V1()}function L(E,w){var A=new Array(arguments.length-2),R=new Array(arguments.length-2);for(var T=0;T1?'directories "'+x.root.slice(0,-1).join('", "')+'" or "'+x.root[x.root.length-1]+'"':'directory "'+x.root+'"',t=new Error('Failed to lookup view "'+E+'" in views '+n);return t.view=x,T(t)}if(h.cache)R[E]=x}M(x,h,T)},C.listen=function I(){var E=H.createServer(this);return E.listen.apply(E,arguments)};function V(I){if(this.get("env")!=="test")console.error(I.stack||I.toString())}function M(I,E,w){try{I.render(E,w)}catch(A){w(A)}}}}),Qs=W1({"node_modules/negotiator/lib/charset.js"(Q,X){X.exports=K,X.exports.preferredCharsets=K;var Z=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function J(q){var B=q.split(",");for(var D=0,F=0;D0}}}),Zs=W1({"node_modules/negotiator/lib/encoding.js"(Q,X){X.exports=K,X.exports.preferredEncodings=K;var Z=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function J(q){var B=q.split(","),D=!1,F=1;for(var P=0,N=0;P0}}}),Xs=W1({"node_modules/negotiator/lib/language.js"(Q,X){X.exports=K,X.exports.preferredLanguages=K;var Z=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function J(q){var B=q.split(",");for(var D=0,F=0;D0}}}),Js=W1({"node_modules/negotiator/lib/mediaType.js"(Q,X){X.exports=K,X.exports.preferredMediaTypes=K;var Z=/^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;function J(P){var N=D(P);for(var C=0,L=0;C0)if(M.every(function(I){return N.params[I]=="*"||(N.params[I]||"").toLowerCase()==(L.params[I]||"").toLowerCase()}))V|=1;else return null;return{i:C,o:N.i,q:N.q,s:V}}function K(P,N){var C=J(P===void 0?"*/*":P||"");if(!N)return C.filter($).sort(z).map(W);var L=N.map(function V(M,I){return Y(M,C,I)});return L.filter($).sort(z).map(function V(M){return N[L.indexOf(M)]})}function z(P,N){return N.q-P.q||N.s-P.s||P.o-N.o||P.i-N.i||0}function W(P){return P.type+"/"+P.subtype}function $(P){return P.q>0}function q(P){var N=0,C=0;while((C=P.indexOf('"',C))!==-1)N++,C++;return N}function B(P){var N=P.indexOf("="),C,L;if(N===-1)C=P;else C=P.substr(0,N),L=P.substr(N+1);return[C,L]}function D(P){var N=P.split(",");for(var C=1,L=0;Cz-1)C=z-1;if(isNaN(N)||isNaN(C)||N>C||N<0)continue;D.push({start:N,end:C})}if(D.length<1)return-1;return $&&$.combine?J(D):D}function J(z){var W=z.map(G).sort(K);for(var $=0,q=1;qD.end+1)W[++$]=B;else if(B.end>D.end)D.end=B.end,D.index=Math.min(D.index,B.index)}W.length=$+1;var F=W.sort(H).map(Y);return F.type=z.type,F}function G(z,W){return{start:z.start,end:z.end,index:W}}function Y(z){return{start:z.start,end:z.end}}function H(z,W){return z.index-W.index}function K(z,W){return z.start-W.start}}}),Ws=W1({"node_modules/express/lib/request.js"(Q,X){var Z=Ys(),J=require("net").isIP,G=vX(),Y=require("http"),H=XI(),K=JI(),z=rq(),W=rM(),$=Object.create(Y.IncomingMessage.prototype);X.exports=$,$.get=$.header=function B(D){if(!D)throw new TypeError("name argument is required to req.get");if(typeof D!=="string")throw new TypeError("name must be a string to req.get");var F=D.toLowerCase();switch(F){case"referer":case"referrer":return this.headers.referrer||this.headers.referer;default:return this.headers[F]}},$.accepts=function(){var B=Z(this);return B.types.apply(B,arguments)},$.acceptsEncodings=function(){var B=Z(this);return B.encodings.apply(B,arguments)},$.acceptsCharsets=function(){var B=Z(this);return B.charsets.apply(B,arguments)},$.acceptsLanguages=function(){var B=Z(this);return B.languages.apply(B,arguments)},$.range=function B(D,F){var P=this.get("Range");if(!P)return;return K(D,P,F)},q($,"query",function B(){var D=this.app.get("query parser fn");if(!D)return Object.create(null);var F=z(this).query;return D(F)}),$.is=function B(D){var F=D;if(!Array.isArray(D)){F=new Array(arguments.length);for(var P=0;P=200&&F<300||F===304)return H(this.headers,{etag:D.get("ETag"),"last-modified":D.get("Last-Modified")});return!1}),q($,"stale",function B(){return!this.fresh}),q($,"xhr",function B(){var D=this.get("X-Requested-With")||"";return D.toLowerCase()==="xmlhttprequest"});function q(B,D,F){Object.defineProperty(B,D,{configurable:!0,enumerable:!0,get:F})}}}),qs=W1({"node_modules/content-disposition/index.js"(Q,X){X.exports=P,X.exports.parse=M;var Z=require("path").basename,J=E$().Buffer,G=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g,Y=/%[0-9A-Fa-f]{2}/,H=/%([0-9A-Fa-f]{2})/g,K=/[^\x20-\x7e\xa0-\xff]/g,z=/\\([\u0000-\u007f])/g,W=/([\\"])/g,$=/;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g,q=/^[\x20-\x7e\x80-\xff]+$/,B=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,D=/^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/,F=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function P(T,S){var v=S||{},h=v.type||"attachment",x=N(T,v.fallback);return C(new R(h,x))}function N(T,S){if(T===void 0)return;var v={};if(typeof T!=="string")throw new TypeError("filename must be a string");if(S===void 0)S=!0;if(typeof S!=="string"&&typeof S!=="boolean")throw new TypeError("fallback must be a string or boolean");if(typeof S==="string"&&K.test(S))throw new TypeError("fallback must be ISO-8859-1 string");var h=Z(T),x=q.test(h),p=typeof S!=="string"?S&&V(h):Z(S),n=typeof p==="string"&&p!==h;if(n||!x||Y.test(h))v["filename*"]=h;if(x||n)v.filename=n?p:h;return v}function C(T){var{parameters:S,type:v}=T;if(!v||typeof v!=="string"||!B.test(v))throw new TypeError("invalid type");var h=String(v).toLowerCase();if(S&&typeof S==="object"){var x,p=Object.keys(S).sort();for(var n=0;n0)return K(q);else if(D==="number"&&isNaN(q)===!1)return B.long?W(q):z(q);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(q))};function K(q){if(q=String(q),q.length>100)return;var B=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(q);if(!B)return;var D=parseFloat(B[1]),F=(B[2]||"ms").toLowerCase();switch(F){case"years":case"year":case"yrs":case"yr":case"y":return D*H;case"days":case"day":case"d":return D*Y;case"hours":case"hour":case"hrs":case"hr":case"h":return D*G;case"minutes":case"minute":case"mins":case"min":case"m":return D*J;case"seconds":case"second":case"secs":case"sec":case"s":return D*Z;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return D;default:return}}function z(q){if(q>=Y)return Math.round(q/Y)+"d";if(q>=G)return Math.round(q/G)+"h";if(q>=J)return Math.round(q/J)+"m";if(q>=Z)return Math.round(q/Z)+"s";return q+"ms"}function W(q){return $(q,Y,"day")||$(q,G,"hour")||$(q,J,"minute")||$(q,Z,"second")||q+" ms"}function $(q,B,D){if(q=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Q.formatters.j=function(z){try{return JSON.stringify(z)}catch(W){return"[UnexpectedJSONParseError]: "+W.message}};function J(z){var W=this.useColors;if(z[0]=(W?"%c":"")+this.namespace+(W?" %c":" ")+z[0]+(W?"%c ":" ")+"+"+Q.humanize(this.diff),!W)return;var $="color: "+this.color;z.splice(1,0,$,"color: inherit");var q=0,B=0;z[0].replace(/%[a-zA-Z%]/g,function(D){if(D==="%%")return;if(q++,D==="%c")B=q}),z.splice(B,0,$)}function G(){return typeof console==="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function Y(z){try{if(z==null)Q.storage.removeItem("debug");else Q.storage.debug=z}catch(W){}}function H(){var z;try{z=Q.storage.debug}catch(W){}if(!z&&typeof process!=="undefined"&&"env"in process)z=process.env.DEBUG;return z}Q.enable(H());function K(){try{return window.localStorage}catch(z){}}}}),Us=W1({"node_modules/send/node_modules/debug/src/node.js"(Q,X){var Z=require("tty"),J=require("util");Q=X.exports=GI(),Q.init=q,Q.log=z,Q.formatArgs=H,Q.save=W,Q.load=$,Q.useColors=Y,Q.colors=[6,2,3,4,5,1];try{if(G=M$(),G&&G.level>=2)Q.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(B){}var G;Q.inspectOpts=Object.keys(process.env).filter(function(B){return/^debug_/i.test(B)}).reduce(function(B,D){var F=D.substring(6).toLowerCase().replace(/_([a-z])/g,function(N,C){return C.toUpperCase()}),P=process.env[D];if(/^(yes|on|true|enabled)$/i.test(P))P=!0;else if(/^(no|off|false|disabled)$/i.test(P))P=!1;else if(P==="null")P=null;else P=Number(P);return B[F]=P,B},{});function Y(){return"colors"in Q.inspectOpts?Boolean(Q.inspectOpts.colors):Z.isatty(process.stderr.fd)}Q.formatters.o=function(B){return this.inspectOpts.colors=this.useColors,J.inspect(B,this.inspectOpts).split(` `).map(function(D){return D.trim()}).join(" ")},Q.formatters.O=function(B){return this.inspectOpts.colors=this.useColors,J.inspect(B,this.inspectOpts)};function H(B){var D=this.namespace,F=this.useColors;if(F){var P=this.color,N="\x1B[3"+(P<8?P:"8;5;"+P),C=" "+N+";1m"+D+" \x1B[0m";B[0]=C+B[0].split(` `).join(` `+C),B.push(N+"m+"+Q.humanize(this.diff)+"\x1B[0m")}else B[0]=K()+D+" "+B[0]}function K(){if(Q.inspectOpts.hideDate)return"";else return new Date().toISOString()+" "}function z(){return process.stderr.write(J.format.apply(J,arguments)+` `)}function W(B){if(B==null)delete process.env.DEBUG;else process.env.DEBUG=B}function $(){return process.env.DEBUG}function q(B){B.inspectOpts={};var D=Object.keys(Q.inspectOpts);for(var F=0;F0)return z(B);else if(F==="number"&&isFinite(B))return D.long?$(B):W(B);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(B))};function z(B){if(B=String(B),B.length>100)return;var D=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(B);if(!D)return;var F=parseFloat(D[1]),P=(D[2]||"ms").toLowerCase();switch(P){case"years":case"year":case"yrs":case"yr":case"y":return F*K;case"weeks":case"week":case"w":return F*H;case"days":case"day":case"d":return F*Y;case"hours":case"hour":case"hrs":case"hr":case"h":return F*G;case"minutes":case"minute":case"mins":case"min":case"m":return F*J;case"seconds":case"second":case"secs":case"sec":case"s":return F*Z;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return F;default:return}}function W(B){var D=Math.abs(B);if(D>=Y)return Math.round(B/Y)+"d";if(D>=G)return Math.round(B/G)+"h";if(D>=J)return Math.round(B/J)+"m";if(D>=Z)return Math.round(B/Z)+"s";return B+"ms"}function $(B){var D=Math.abs(B);if(D>=Y)return q(B,D,Y,"day");if(D>=G)return q(B,D,G,"hour");if(D>=J)return q(B,D,J,"minute");if(D>=Z)return q(B,D,Z,"second");return B+" ms"}function q(B,D,F,P){var N=D>=F*1.5;return Math.round(B/F)+" "+P+(N?"s":"")}}}),YI=W1({"node_modules/send/index.js"(Q,X){var Z=W7(),J=Vs()("send"),G=dM(),Y=sq(),H=tq(),K=tM(),z=XI(),W=require("fs"),$=q7(),q=Ps(),B=O4(),D=JI(),F=require("path"),P=nq(),N=require("stream"),C=require("util"),L=F.extname,V=F.join,M=F.normalize,I=F.resolve,E=F.sep,w=/^ *bytes=/,A=31536000000,R=/(?:^|[\\/])\.\.(?:[\\/]|$)/;X.exports=T;function T(D1,e,P1){return new S(D1,e,P1)}function S(D1,e,P1){N.call(this);var Q1=P1||{};if(this.options=Q1,this.path=e,this.req=D1,this._acceptRanges=Q1.acceptRanges!==void 0?Boolean(Q1.acceptRanges):!0,this._cacheControl=Q1.cacheControl!==void 0?Boolean(Q1.cacheControl):!0,this._etag=Q1.etag!==void 0?Boolean(Q1.etag):!0,this._dotfiles=Q1.dotfiles!==void 0?Q1.dotfiles:"ignore",this._dotfiles!=="ignore"&&this._dotfiles!=="allow"&&this._dotfiles!=="deny")throw new TypeError('dotfiles option must be "allow", "deny", or "ignore"');this._extensions=Q1.extensions!==void 0?C1(Q1.extensions,"extensions option"):[],this._immutable=Q1.immutable!==void 0?Boolean(Q1.immutable):!1,this._index=Q1.index!==void 0?C1(Q1.index,"index option"):["index.html"],this._lastModified=Q1.lastModified!==void 0?Boolean(Q1.lastModified):!0,this._maxage=Q1.maxAge||Q1.maxage,this._maxage=typeof this._maxage==="string"?q(this._maxage):Number(this._maxage),this._maxage=!isNaN(this._maxage)?Math.min(Math.max(0,this._maxage),A):0,this._root=Q1.root?I(Q1.root):null}C.inherits(S,N),S.prototype.error=function D1(e,P1){if(V1(this,"error"))return this.emit("error",t(e,P1));var Q1=this.res,O1=P.message[e]||String(e),S1=n("Error",H(O1));if(v(Q1),P1&&P1.headers)d1(Q1,P1.headers);Q1.statusCode=e,Q1.setHeader("Content-Type","text/html; charset=UTF-8"),Q1.setHeader("Content-Length",Buffer.byteLength(S1)),Q1.setHeader("Content-Security-Policy","default-src 'none'"),Q1.setHeader("X-Content-Type-Options","nosniff"),Q1.end(S1)},S.prototype.hasTrailingSlash=function D1(){return this.path[this.path.length-1]==="/"},S.prototype.isConditionalGET=function D1(){return this.req.headers["if-match"]||this.req.headers["if-unmodified-since"]||this.req.headers["if-none-match"]||this.req.headers["if-modified-since"]},S.prototype.isPreconditionFailure=function D1(){var e=this.req,P1=this.res,Q1=e.headers["if-match"];if(Q1){var O1=P1.getHeader("ETag");return!O1||Q1!=="*"&&j1(Q1).every(function(d){return d!==O1&&d!=="W/"+O1&&"W/"+d!==O1})}var S1=N1(e.headers["if-unmodified-since"]);if(!isNaN(S1)){var k=N1(P1.getHeader("Last-Modified"));return isNaN(k)||k>S1}return!1},S.prototype.removeContentHeaderFields=function D1(){var e=this.res;e.removeHeader("Content-Encoding"),e.removeHeader("Content-Language"),e.removeHeader("Content-Length"),e.removeHeader("Content-Range"),e.removeHeader("Content-Type")},S.prototype.notModified=function D1(){var e=this.res;J("not modified"),this.removeContentHeaderFields(),e.statusCode=304,e.end()},S.prototype.headersAlreadySent=function D1(){var e=new Error("Can't set headers after they are sent.");J("headers already sent"),this.error(500,e)},S.prototype.isCachable=function D1(){var e=this.res.statusCode;return e>=200&&e<300||e===304},S.prototype.onStatError=function D1(e){switch(e.code){case"ENAMETOOLONG":case"ENOENT":case"ENOTDIR":this.error(404,e);break;default:this.error(500,e);break}},S.prototype.isFresh=function D1(){return z(this.req.headers,{etag:this.res.getHeader("ETag"),"last-modified":this.res.getHeader("Last-Modified")})},S.prototype.isRangeFresh=function D1(){var e=this.req.headers["if-range"];if(!e)return!0;if(e.indexOf('"')!==-1){var P1=this.res.getHeader("ETag");return Boolean(P1&&e.indexOf(P1)!==-1)}var Q1=this.res.getHeader("Last-Modified");return N1(Q1)<=N1(e)},S.prototype.redirect=function D1(e){var P1=this.res;if(V1(this,"directory")){this.emit("directory",P1,e);return}if(this.hasTrailingSlash()){this.error(403);return}var Q1=Y(h(this.path+"/")),O1=n("Redirecting",'Redirecting to '+H(Q1)+"");P1.statusCode=301,P1.setHeader("Content-Type","text/html; charset=UTF-8"),P1.setHeader("Content-Length",Buffer.byteLength(O1)),P1.setHeader("Content-Security-Policy","default-src 'none'"),P1.setHeader("X-Content-Type-Options","nosniff"),P1.setHeader("Location",Q1),P1.end(O1)},S.prototype.pipe=function D1(e){var P1=this._root;this.res=e;var Q1=Y1(this.path);if(Q1===-1)return this.error(400),e;if(~Q1.indexOf("\x00"))return this.error(400),e;var O1;if(P1!==null){if(Q1)Q1=M("."+E+Q1);if(R.test(Q1))return J('malicious path "%s"',Q1),this.error(403),e;O1=Q1.split(E),Q1=M(V(P1,Q1))}else{if(R.test(Q1))return J('malicious path "%s"',Q1),this.error(403),e;O1=M(Q1).split(E),Q1=I(Q1)}if(x(O1))switch(J('%s dotfile "%s"',this._dotfiles,Q1),this._dotfiles){case"allow":break;case"deny":return this.error(403),e;case"ignore":default:return this.error(404),e}if(this._index.length&&this.hasTrailingSlash())return this.sendIndex(Q1),e;return this.sendFile(Q1),e},S.prototype.send=function D1(e,P1){var Q1=P1.size,O1=this.options,S1={},k=this.res,d=this.req,f=d.headers.range,j=O1.start||0;if(k.headersSent){this.headersAlreadySent();return}if(J('pipe "%s"',e),this.setHeader(e,P1),this.type(e),this.isConditionalGET()){if(this.isPreconditionFailure()){this.error(412);return}if(this.isCachable()&&this.isFresh()){this.notModified();return}}if(Q1=Math.max(0,Q1-j),O1.end!==void 0){var m=O1.end-j+1;if(Q1>m)Q1=m}if(this._acceptRanges&&w.test(f)){if(f=D(Q1,f,{combine:!0}),!this.isRangeFresh())J("range stale"),f=-2;if(f===-1)return J("range unsatisfiable"),k.setHeader("Content-Range",p("bytes",Q1)),this.error(416,{headers:{"Content-Range":k.getHeader("Content-Range")}});if(f!==-2&&f.length===1)J("range %j",f),k.statusCode=206,k.setHeader("Content-Range",p("bytes",Q1,f[0])),j+=f[0].start,Q1=f[0].end-f[0].start+1}for(var Z1 in O1)S1[Z1]=O1[Z1];if(S1.start=j,S1.end=Math.max(j,j+Q1-1),k.setHeader("Content-Length",Q1),d.method==="HEAD"){k.end();return}this.stream(e,S1)},S.prototype.sendFile=function D1(e){var P1=0,Q1=this;J('stat "%s"',e),W.stat(e,function S1(k,d){if(k&&k.code==="ENOENT"&&!L(e)&&e[e.length-1]!==E)return O1(k);if(k)return Q1.onStatError(k);if(d.isDirectory())return Q1.redirect(e);Q1.emit("file",e,d),Q1.send(e,d)});function O1(S1){if(Q1._extensions.length<=P1)return S1?Q1.onStatError(S1):Q1.error(404);var k=e+"."+Q1._extensions[P1++];J('stat "%s"',k),W.stat(k,function(d,f){if(d)return O1(d);if(f.isDirectory())return O1();Q1.emit("file",k,f),Q1.send(k,f)})}},S.prototype.sendIndex=function D1(e){var P1=-1,Q1=this;function O1(S1){if(++P1>=Q1._index.length){if(S1)return Q1.onStatError(S1);return Q1.error(404)}var k=V(e,Q1._index[P1]);J('stat "%s"',k),W.stat(k,function(d,f){if(d)return O1(d);if(f.isDirectory())return O1();Q1.emit("file",k,f),Q1.send(k,f)})}O1()},S.prototype.stream=function D1(e,P1){var Q1=this,O1=this.res,S1=W.createReadStream(e,P1);this.emit("stream",S1),S1.pipe(O1);function k(){G(S1,!0)}B(O1,k),S1.on("error",function d(f){k(),Q1.onStatError(f)}),S1.on("end",function d(){Q1.emit("end")})},S.prototype.type=function D1(e){var P1=this.res;if(P1.getHeader("Content-Type"))return;var Q1=L(e),O1=$.contentType(Q1)||"application/octet-stream";J("content-type %s",O1),P1.setHeader("Content-Type",O1)},S.prototype.setHeader=function D1(e,P1){var Q1=this.res;if(this.emit("headers",Q1,e,P1),this._acceptRanges&&!Q1.getHeader("Accept-Ranges"))J("accept ranges"),Q1.setHeader("Accept-Ranges","bytes");if(this._cacheControl&&!Q1.getHeader("Cache-Control")){var O1="public, max-age="+Math.floor(this._maxage/1000);if(this._immutable)O1+=", immutable";J("cache-control %s",O1),Q1.setHeader("Cache-Control",O1)}if(this._lastModified&&!Q1.getHeader("Last-Modified")){var S1=P1.mtime.toUTCString();J("modified %s",S1),Q1.setHeader("Last-Modified",S1)}if(this._etag&&!Q1.getHeader("ETag")){var k=K(P1);J("etag %s",k),Q1.setHeader("ETag",k)}};function v(D1){var e=G1(D1);for(var P1=0;P11?"/"+D1.substr(e):D1}function x(D1){for(var e=0;e1&&P1[0]===".")return!0}return!1}function p(D1,e,P1){return D1+" "+(P1?P1.start+"-"+P1.end:"*")+"/"+e}function n(D1,e){return` `+D1+`
`+e+`
`}function t(D1,e){if(!e)return Z(D1);return e instanceof Error?Z(D1,e,{expose:!1}):Z(D1,e)}function Y1(D1){try{return decodeURIComponent(D1)}catch(e){return-1}}function G1(D1){return typeof D1.getHeaderNames!=="function"?Object.keys(D1._headers||{}):D1.getHeaderNames()}function V1(D1,e){var P1=typeof D1.listenerCount!=="function"?D1.listeners(e).length:D1.listenerCount(e);return P1>0}function C1(D1,e){var P1=[].concat(D1||[]);for(var Q1=0;Q199&&h<1000)Y("res.status("+JSON.stringify(h)+"): use res.status("+Math.floor(h)+") instead");return this.statusCode=h,this},A.links=function(v){var h=this.get("Link")||"";if(h)h+=", ";return this.set("Link",h+Object.keys(v).map(function(x){return"<"+v[x]+'>; rel="'+x+'"'}).join(", "))},A.send=function v(h){var x=h,p,n=this.req,t,Y1=this.app;switch(typeof x){case"string":if(!this.get("Content-Type"))this.type("html");break;case"boolean":case"number":case"object":if(x===null)x="";else if(Z.isBuffer(x)){if(!this.get("Content-Type"))this.type("bin")}else return this.json(x);break}if(typeof x==="string"){if(p="utf8",t=this.get("Content-Type"),typeof t==="string")this.set("Content-Type",L(t,"utf-8"))}var G1=Y1.get("etag fn"),V1=!this.get("ETag")&&typeof G1==="function",C1;if(x!==void 0){if(Z.isBuffer(x))C1=x.length;else if(!V1&&x.length<1000)C1=Z.byteLength(x,p);else x=Z.from(x,p),p=void 0,C1=x.length;this.set("Content-Length",C1)}var N1;if(V1&&C1!==void 0){if(N1=G1(x,p))this.set("ETag",N1)}if(n.fresh)this.statusCode=304;if(this.statusCode===204||this.statusCode===304)this.removeHeader("Content-Type"),this.removeHeader("Content-Length"),this.removeHeader("Transfer-Encoding"),x="";if(this.statusCode===205)this.set("Content-Length","0"),this.removeHeader("Transfer-Encoding"),x="";if(n.method==="HEAD")this.end();else this.end(x,p);return this},A.json=function v(h){var x=this.app,p=x.get("json escape"),n=x.get("json replacer"),t=x.get("json spaces"),Y1=S(h,n,t,p);if(!this.get("Content-Type"))this.set("Content-Type","application/json");return this.send(Y1)},A.jsonp=function v(h){var x=this.app,p=x.get("json escape"),n=x.get("json replacer"),t=x.get("json spaces"),Y1=S(h,n,t,p),G1=this.req.query[x.get("jsonp callback name")];if(!this.get("Content-Type"))this.set("X-Content-Type-Options","nosniff"),this.set("Content-Type","application/json");if(Array.isArray(G1))G1=G1[0];if(typeof G1==="string"&&G1.length!==0){if(this.set("X-Content-Type-Options","nosniff"),this.set("Content-Type","text/javascript"),G1=G1.replace(/[^\[\]\w$.]/g,""),Y1===void 0)Y1="";else if(typeof Y1==="string")Y1=Y1.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029");Y1="/**/ typeof "+G1+" === 'function' && "+G1+"("+Y1+");"}return this.send(Y1)},A.sendStatus=function v(h){var x=D.message[h]||String(h);return this.statusCode=h,this.type("txt"),this.send(x)},A.sendFile=function v(h,x,p){var n=p,t=this.req,Y1=this,G1=t.next,V1=x||{};if(!h)throw new TypeError("path argument is required to res.sendFile");if(typeof h!=="string")throw new TypeError("path must be a string to res.sendFile");if(typeof x==="function")n=x,V1={};if(!V1.root&&!B(h))throw new TypeError("path must be absolute or specify root to res.sendFile");var C1=encodeURI(h),N1=M(t,C1,V1);T(Y1,N1,V1,function(j1){if(n)return n(j1);if(j1&&j1.code==="EISDIR")return G1();if(j1&&j1.code!=="ECONNABORTED"&&j1.syscall!=="write")G1(j1)})},A.download=function v(h,x,p,n){var t=n,Y1=x,G1=p||null;if(typeof x==="function")t=x,Y1=null,G1=null;else if(typeof p==="function")t=p,G1=null;if(typeof x==="object"&&(typeof p==="function"||p===void 0))Y1=null,G1=x;var V1={"Content-Disposition":J(Y1||h)};if(G1&&G1.headers){var C1=Object.keys(G1.headers);for(var N1=0;N10?h.accepts(p):!1;if(this.vary("Accept"),n)this.set("Content-Type",N(n).value),v[n](h,this,x);else if(v.default)v.default(h,this,x);else x(G(406,{types:C(p).map(function(t){return t.value})}));return this},A.attachment=function v(h){if(h)this.type(I(h));return this.set("Content-Disposition",J(h)),this},A.append=function v(h,x){var p=this.get(h),n=x;if(p)n=Array.isArray(p)?p.concat(x):Array.isArray(x)?[p].concat(x):[p,x];return this.set(h,n)},A.set=A.header=function v(h,x){if(arguments.length===2){var p=Array.isArray(x)?x.map(String):String(x);if(h.toLowerCase()==="content-type"){if(Array.isArray(p))throw new TypeError("Content-Type cannot be set to an Array");p=$.contentType(p)}this.setHeader(h,p)}else for(var n in h)this.set(n,h[n]);return this},A.get=function(v){return this.getHeader(v)},A.clearCookie=function v(h,x){var p=F({expires:new Date(1),path:"/"},x);return this.cookie(h,"",p)},A.cookie=function(v,h,x){var p=F({},x),n=this.req.secret,t=p.signed;if(t&&!n)throw new Error('cookieParser("secret") required for signed cookies');var Y1=typeof h==="object"?"j:"+JSON.stringify(h):String(h);if(t)Y1="s:"+P(Y1,n);if(p.maxAge!=null){var G1=p.maxAge-0;if(!isNaN(G1))p.expires=new Date(Date.now()+G1),p.maxAge=Math.floor(G1/1000)}if(p.path==null)p.path="/";return this.append("Set-Cookie",V.serialize(v,String(Y1),p)),this},A.location=function v(h){var x;if(h==="back")x=this.req.get("Referrer")||"/";else x=String(h);var p=R.exec(x),n=p?p[0].length+1:0;return x=x.slice(0,n)+H(x.slice(n)),this.set("Location",x)},A.redirect=function v(h){var x=h,p,n=302;if(arguments.length===2)n=arguments[0],x=arguments[1];if(x=this.location(x).get("Location"),this.format({text:function(){p=D.message[n]+". Redirecting to "+x},html:function(){var t=K(x);p="

"+D.message[n]+'. Redirecting to '+t+"

"},default:function(){p=""}}),this.statusCode=n,this.set("Content-Length",Z.byteLength(p)),this.req.method==="HEAD")this.end();else this.end(p)},A.vary=function(v){return w(this,v),this},A.render=function v(h,x,p){var n=this.req.app,t=p,Y1=x||{},G1=this.req,V1=this;if(typeof x==="function")t=x,Y1={};Y1._locals=V1.locals,t=t||function(C1,N1){if(C1)return G1.next(C1);V1.send(N1)},n.render(h,Y1,t)};function T(v,h,x,p){var n=!1,t;function Y1(){if(n)return;n=!0;var D1=new Error("Request aborted");D1.code="ECONNABORTED",p(D1)}function G1(){if(n)return;n=!0;var D1=new Error("EISDIR, read");D1.code="EISDIR",p(D1)}function V1(D1){if(n)return;n=!0,p(D1)}function C1(){if(n)return;n=!0,p()}function N1(){t=!1}function j1(D1){if(D1&&D1.code==="ECONNRESET")return Y1();if(D1)return V1(D1);if(n)return;setImmediate(function(){if(t!==!1&&!n){Y1();return}if(n)return;n=!0,p()})}function d1(){t=!0}if(h.on("directory",G1),h.on("end",C1),h.on("error",V1),h.on("file",N1),h.on("stream",d1),W(v,j1),x.headers)h.on("headers",function D1(e){var P1=x.headers,Q1=Object.keys(P1);for(var O1=0;O1&]/g,function(t){switch(t.charCodeAt(0)){case 60:return"\\u003c";case 62:return"\\u003e";case 38:return"\\u0026";default:return t}});return n}}}),Ds=W1({"node_modules/serve-static/index.js"(Q,X){var Z=sq(),J=tq(),G=rq(),Y=require("path").resolve,H=YI(),K=require("url");X.exports=z;function z(D,F){if(!D)throw new TypeError("root path required");if(typeof D!=="string")throw new TypeError("root path must be a string");var P=Object.create(F||null),N=P.fallthrough!==!1,C=P.redirect!==!1,L=P.setHeaders;if(L&&typeof L!=="function")throw new TypeError("option setHeaders must be function");P.maxage=P.maxage||P.maxAge||0,P.root=Y(D);var V=C?B():q();return function M(I,E,w){if(I.method!=="GET"&&I.method!=="HEAD"){if(N)return w();E.statusCode=405,E.setHeader("Allow","GET, HEAD"),E.setHeader("Content-Length","0"),E.end();return}var A=!N,R=G.original(I),T=G(I).pathname;if(T==="/"&&R.pathname.substr(-1)!=="/")T="";var S=H(I,T,P);if(S.on("directory",V),L)S.on("headers",L);if(N)S.on("file",function v(){A=!0});S.on("error",function v(h){if(A||!(h.statusCode<500)){w(h);return}w()}),S.pipe(E)}}function W(D){for(var F=0;F1?"/"+D.substr(F):D}function $(D,F){return` `+D+`
`+F+`
`}function q(){return function D(){this.error(404)}}function B(){return function D(F){if(this.hasTrailingSlash()){this.error(404);return}var P=G.original(this.req);P.path=null,P.pathname=W(P.pathname+"/");var N=Z(K.format(P)),C=$("Redirecting",'Redirecting to '+J(N)+"");F.statusCode=301,F.setHeader("Content-Type","text/html; charset=UTF-8"),F.setHeader("Content-Length",Buffer.byteLength(C)),F.setHeader("Content-Security-Policy","default-src 'none'"),F.setHeader("X-Content-Type-Options","nosniff"),F.setHeader("Location",N),F.end(C)}}}}),Ls=W1({"node_modules/express/lib/express.js"(Q,X){var Z=nM(),J=require("events").EventEmitter,G=ma(),Y=ea(),H=ZI(),K=Ws(),z=Fs();Q=X.exports=W;function W(){var $=function(q,B,D){$.handle(q,B,D)};return G($,J.prototype,!1),G($,Y,!1),$.request=Object.create(K,{app:{configurable:!0,enumerable:!0,writable:!0,value:$}}),$.response=Object.create(z,{app:{configurable:!0,enumerable:!0,writable:!0,value:$}}),$.init(),$}Q.application=Y,Q.request=K,Q.response=z,Q.Route=H.Route,Q.Router=H,Q.json=Z.json,Q.raw=Z.raw,Q.static=Ds(),Q.text=Z.text,Q.urlencoded=Z.urlencoded}}),Cs=W1({"node_modules/express/index.js"(Q,X){X.exports=Ls()}}),Ns=W1({"node_modules/object-assign/index.js"(Q,X){var Z=Object.getOwnPropertySymbols,J=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;function Y(K){if(K===null||K===void 0)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(K)}function H(){try{if(!Object.assign)return!1;var K=new String("abc");if(K[5]="de",Object.getOwnPropertyNames(K)[0]==="5")return!1;var z={};for(var W=0;W<10;W++)z["_"+String.fromCharCode(W)]=W;var $=Object.getOwnPropertyNames(z).map(function(B){return z[B]});if($.join("")!=="0123456789")return!1;var q={};if("abcdefghijklmnopqrst".split("").forEach(function(B){q[B]=B}),Object.keys(Object.assign({},q)).join("")!=="abcdefghijklmnopqrst")return!1;return!0}catch(B){return!1}}X.exports=H()?Object.assign:function(K,z){var W,$=Y(K),q;for(var B=1;B":function(Y,H){return Y>H},">=":function(Y,H){return Y>=H},"<":function(Y,H,K){return K===void 0?Y=Y)return[];else return K}};return J.is_logic=function(Y){return typeof Y==="object"&&Y!==null&&!Array.isArray(Y)&&Object.keys(Y).length===1},J.truthy=function(Y){if(Array.isArray(Y)&&Y.length===0)return!1;return!!Y},J.get_operator=function(Y){return Object.keys(Y)[0]},J.get_values=function(Y){return Y[J.get_operator(Y)]},J.apply=function(Y,H){if(Array.isArray(Y))return Y.map(function(N){return J.apply(N,H)});if(!J.is_logic(Y))return Y;var K=J.get_operator(Y),z=Y[K],W,$,q,B,D;if(!Array.isArray(z))z=[z];if(K==="if"||K=="?:"){for(W=0;W0){var F=String(K).split("."),P=G;for(W=0;W")}else if(W)q+="new "+(z||"");else if(z)q+=z;else H=!1,q+=K;if(H)q+=" ("+K+")";return q}function G(Y){var H=Y.receiver;return H.constructor&&H.constructor.name||null}}}),Rs=W1({"node_modules/response-time/node_modules/depd/lib/compat/event-listener-count.js"(Q,X){X.exports=Z;function Z(J,G){return J.listeners(G).length}}}),CM=W1({"node_modules/response-time/node_modules/depd/lib/compat/index.js"(Q,X){var Z=require("events").EventEmitter;J(X.exports,"callSiteToString",function Y(){var H=Error.stackTraceLimit,K={},z=Error.prepareStackTrace;function W(q,B){return B}Error.prepareStackTrace=W,Error.stackTraceLimit=2,Error.captureStackTrace(K);var $=K.stack.slice();return Error.prepareStackTrace=z,Error.stackTraceLimit=H,$[0].toString?G:Is()}),J(X.exports,"eventListenerCount",function Y(){return Z.listenerCount||Rs()});function J(Y,H,K){function z(){var W=K();return Object.defineProperty(Y,H,{configurable:!0,enumerable:!0,value:W}),W}Object.defineProperty(Y,H,{configurable:!0,enumerable:!0,get:z})}function G(Y){return Y.toString()}}}),As=W1({"node_modules/response-time/node_modules/depd/index.js"(exports,module){var callSiteToString=CM().callSiteToString,eventListenerCount=CM().eventListenerCount,relative=require("path").relative;module.exports=depd;var basePath=process.cwd();function containsNamespace(Q,X){var Z=Q.split(/[ ,]+/),J=String(X).toLowerCase();for(var G=0;G",Z=Q.getLineNumber(),J=Q.getColumnNumber();if(Q.isEval())X=Q.getEvalOrigin()+", "+X;var G=[X,Z,J];return G.callSite=Q,G.name=Q.getFunctionName(),G}function defaultMessage(Q){var{callSite:X,name:Z}=Q;if(!Z)Z="";var J=X.getThis(),G=J&&X.getTypeName();if(G==="Object")G=void 0;if(G==="Function")G=J.name||G;return G&&X.getMethodName()?G+"."+Z:Z}function formatPlain(Q,X,Z){var J=new Date().toUTCString(),G=J+" "+this._namespace+" deprecated "+Q;if(this._traced){for(var Y=0;Y1&&typeof arguments[1]==="string"?2:1,$=z>=W+1?arguments[W]:void 0;if(this.statusCode=K,Array.isArray($))G(this,$);else if($)Y(this,$);var q=new Array(Math.min(z,W));for(var B=0;BencodeURIComponent(Z).replace(/[!'()*]/g,(J)=>`%${J.charCodeAt(0).toString(16).toUpperCase()}`)}}),js=W1({"node_modules/decode-uri-component/index.js"(Q,X){var Z="%[a-f0-9]{2}",J=new RegExp("("+Z+")|([^%]+?)","gi"),G=new RegExp("("+Z+")+","gi");function Y(z,W){try{return[decodeURIComponent(z.join(""))]}catch(B){}if(z.length===1)return z;W=W||1;var $=z.slice(0,W),q=z.slice(W);return Array.prototype.concat.call([],Y($),Y(q))}function H(z){try{return decodeURIComponent(z)}catch(q){var W=z.match(J)||[];for(var $=1;${if(!(typeof Z==="string"&&typeof J==="string"))throw new TypeError("Expected the arguments to be of type `string`");if(J==="")return[Z];let G=Z.indexOf(J);if(G===-1)return[Z];return[Z.slice(0,G),Z.slice(G+J.length)]}}}),ks=W1({"node_modules/filter-obj/index.js"(Q,X){X.exports=function(Z,J){var G={},Y=Object.keys(Z),H=Array.isArray(J);for(var K=0;KL===null||L===void 0,H=Symbol("encodeFragmentIdentifier");function K(L){switch(L.arrayFormat){case"index":return(V)=>(M,I)=>{let E=M.length;if(I===void 0||L.skipNull&&I===null||L.skipEmptyString&&I==="")return M;if(I===null)return[...M,[$(V,L),"[",E,"]"].join("")];return[...M,[$(V,L),"[",$(E,L),"]=",$(I,L)].join("")]};case"bracket":return(V)=>(M,I)=>{if(I===void 0||L.skipNull&&I===null||L.skipEmptyString&&I==="")return M;if(I===null)return[...M,[$(V,L),"[]"].join("")];return[...M,[$(V,L),"[]=",$(I,L)].join("")]};case"colon-list-separator":return(V)=>(M,I)=>{if(I===void 0||L.skipNull&&I===null||L.skipEmptyString&&I==="")return M;if(I===null)return[...M,[$(V,L),":list="].join("")];return[...M,[$(V,L),":list=",$(I,L)].join("")]};case"comma":case"separator":case"bracket-separator":{let V=L.arrayFormat==="bracket-separator"?"[]=":"=";return(M)=>(I,E)=>{if(E===void 0||L.skipNull&&E===null||L.skipEmptyString&&E==="")return I;if(E=E===null?"":E,I.length===0)return[[$(M,L),V,$(E,L)].join("")];return[[I,$(E,L)].join(L.arrayFormatSeparator)]}}default:return(V)=>(M,I)=>{if(I===void 0||L.skipNull&&I===null||L.skipEmptyString&&I==="")return M;if(I===null)return[...M,$(V,L)];return[...M,[$(V,L),"=",$(I,L)].join("")]}}}function z(L){let V;switch(L.arrayFormat){case"index":return(M,I,E)=>{if(V=/\[(\d*)\]$/.exec(M),M=M.replace(/\[\d*\]$/,""),!V){E[M]=I;return}if(E[M]===void 0)E[M]={};E[M][V[1]]=I};case"bracket":return(M,I,E)=>{if(V=/(\[\])$/.exec(M),M=M.replace(/\[\]$/,""),!V){E[M]=I;return}if(E[M]===void 0){E[M]=[I];return}E[M]=[].concat(E[M],I)};case"colon-list-separator":return(M,I,E)=>{if(V=/(:list)$/.exec(M),M=M.replace(/:list$/,""),!V){E[M]=I;return}if(E[M]===void 0){E[M]=[I];return}E[M]=[].concat(E[M],I)};case"comma":case"separator":return(M,I,E)=>{let w=typeof I==="string"&&I.includes(L.arrayFormatSeparator),A=typeof I==="string"&&!w&&q(I,L).includes(L.arrayFormatSeparator);I=A?q(I,L):I;let R=w||A?I.split(L.arrayFormatSeparator).map((T)=>q(T,L)):I===null?I:q(I,L);E[M]=R};case"bracket-separator":return(M,I,E)=>{let w=/(\[\])$/.test(M);if(M=M.replace(/\[\]$/,""),!w){E[M]=I?q(I,L):I;return}let A=I===null?[]:I.split(L.arrayFormatSeparator).map((R)=>q(R,L));if(E[M]===void 0){E[M]=A;return}E[M]=[].concat(E[M],A)};default:return(M,I,E)=>{if(E[M]===void 0){E[M]=I;return}E[M]=[].concat(E[M],I)}}}function W(L){if(typeof L!=="string"||L.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function $(L,V){if(V.encode)return V.strict?X(L):encodeURIComponent(L);return L}function q(L,V){if(V.decode)return Z(L);return L}function B(L){if(Array.isArray(L))return L.sort();if(typeof L==="object")return B(Object.keys(L)).sort((V,M)=>Number(V)-Number(M)).map((V)=>L[V]);return L}function D(L){let V=L.indexOf("#");if(V!==-1)L=L.slice(0,V);return L}function F(L){let V="",M=L.indexOf("#");if(M!==-1)V=L.slice(M);return V}function P(L){L=D(L);let V=L.indexOf("?");if(V===-1)return"";return L.slice(V+1)}function N(L,V){if(V.parseNumbers&&!Number.isNaN(Number(L))&&(typeof L==="string"&&L.trim()!==""))L=Number(L);else if(V.parseBooleans&&L!==null&&(L.toLowerCase()==="true"||L.toLowerCase()==="false"))L=L.toLowerCase()==="true";return L}function C(L,V){V=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},V),W(V.arrayFormatSeparator);let M=z(V),I=Object.create(null);if(typeof L!=="string")return I;if(L=L.trim().replace(/^[?#&]/,""),!L)return I;for(let E of L.split("&")){if(E==="")continue;let[w,A]=J(V.decode?E.replace(/\+/g," "):E,"=");A=A===void 0?null:["comma","separator","bracket-separator"].includes(V.arrayFormat)?A:q(A,V),M(q(w,V),A,I)}for(let E of Object.keys(I)){let w=I[E];if(typeof w==="object"&&w!==null)for(let A of Object.keys(w))w[A]=N(w[A],V);else I[E]=N(w,V)}if(V.sort===!1)return I;return(V.sort===!0?Object.keys(I).sort():Object.keys(I).sort(V.sort)).reduce((E,w)=>{let A=I[w];if(Boolean(A)&&typeof A==="object"&&!Array.isArray(A))E[w]=B(A);else E[w]=A;return E},Object.create(null))}Q.extract=P,Q.parse=C,Q.stringify=(L,V)=>{if(!L)return"";V=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},V),W(V.arrayFormatSeparator);let M=(A)=>V.skipNull&&Y(L[A])||V.skipEmptyString&&L[A]==="",I=K(V),E={};for(let A of Object.keys(L))if(!M(A))E[A]=L[A];let w=Object.keys(E);if(V.sort!==!1)w.sort(V.sort);return w.map((A)=>{let R=L[A];if(R===void 0)return"";if(R===null)return $(A,V);if(Array.isArray(R)){if(R.length===0&&V.arrayFormat==="bracket-separator")return $(A,V)+"[]";return R.reduce(I(A),[]).join("&")}return $(A,V)+"="+$(R,V)}).filter((A)=>A.length>0).join("&")},Q.parseUrl=(L,V)=>{V=Object.assign({decode:!0},V);let[M,I]=J(L,"#");return Object.assign({url:M.split("?")[0]||"",query:C(P(L),V)},V&&V.parseFragmentIdentifier&&I?{fragmentIdentifier:q(I,V)}:{})},Q.stringifyUrl=(L,V)=>{V=Object.assign({encode:!0,strict:!0,[H]:!0},V);let M=D(L.url).split("?")[0]||"",I=Q.extract(L.url),E=Q.parse(I,{sort:!1}),w=Object.assign(E,L.query),A=Q.stringify(w,V);if(A)A=`?${A}`;let R=F(L.url);if(L.fragmentIdentifier)R=`#${V[H]?$(L.fragmentIdentifier,V):L.fragmentIdentifier}`;return`${M}${A}${R}`},Q.pick=(L,V,M)=>{M=Object.assign({parseFragmentIdentifier:!0,[H]:!1},M);let{url:I,query:E,fragmentIdentifier:w}=Q.parseUrl(L,M);return Q.stringifyUrl({url:I,query:G(E,V),fragmentIdentifier:w},M)},Q.exclude=(L,V,M)=>{let I=Array.isArray(V)?(E)=>!V.includes(E):(E,w)=>!V(E,w);return Q.pick(L,I,M)}}}),xs=W1({"node_modules/glob-to-regexp/index.js"(Q,X){X.exports=function(Z,J){if(typeof Z!=="string")throw new TypeError("Expected a string");var G=String(Z),Y="",H=J?!!J.extended:!1,K=J?!!J.globstar:!1,z=!1,W=J&&typeof J.flags==="string"?J.flags:"",$;for(var q=0,B=G.length;q1&&(D==="/"||D===void 0)&&(P==="/"||P===void 0);if(N)Y+="((?:[^/]*(?:/|$))*)",q++;else Y+="([^/]*)"}break;default:Y+=$}if(!W||!~W.indexOf("g"))Y="^"+Y+"$";return new RegExp(Y,W)}}});Io(k$,{default:()=>ss,getAPI:()=>rs});var Q8=c6(require("obsidian")),vs=c6(require("https")),gs=c6(require("http")),yQ=c6(bM()),_q=c6(require("obsidian")),L6=c6(go()),hs=c6(ho()),fs=c6(bM()),B$=c6(Cs()),bs=c6(require("http")),ms=c6(Ts()),_s=c6(q7()),X7=c6(nM()),U$=c6(Ms()),ds=c6(ws()),us=c6(ys()),ps=c6(xs()),NM=c6(require("path")),l0;(function(Q){Q[Q.TextContentEncodingRequired=40010]="TextContentEncodingRequired",Q[Q.ContentTypeSpecificationRequired=40011]="ContentTypeSpecificationRequired",Q[Q.InvalidContentForContentType=40015]="InvalidContentForContentType",Q[Q.InvalidContentInsertionPositionValue=40050]="InvalidContentInsertionPositionValue",Q[Q.MissingHeadingHeader=40051]="MissingHeadingHeader",Q[Q.InvalidHeadingHeader=40052]="InvalidHeadingHeader",Q[Q.PeriodIsNotEnabled=40060]="PeriodIsNotEnabled",Q[Q.InvalidFilterQuery=40070]="InvalidFilterQuery",Q[Q.ApiKeyAuthorizationRequired=40101]="ApiKeyAuthorizationRequired",Q[Q.PeriodDoesNotExist=40460]="PeriodDoesNotExist",Q[Q.PeriodicNoteDoesNotExist=40461]="PeriodicNoteDoesNotExist",Q[Q.RequestMethodValidOnlyForFiles=40510]="RequestMethodValidOnlyForFiles"})(l0||(l0={}));function ls(Q,X){let Z=[...X].reverse(),J=[];for(let[G,Y]of Q.headings.entries()){J[Y.level]=Y,J.splice(Y.level+1);let H=[...J.map((z)=>z.heading)].reverse(),K=!0;for(let[z,W]of Z.entries())if(H[z]!=W){K=!1;break}if(K){let z=Y.position.end,W=Q.headings.slice(G+1).find((q)=>q.level<=Y.level),$=W==null?void 0:W.position.start;return{start:z,end:$}}}return null}function cs(Q,X,Z,J){var G,Y;let H=Z===!1?(Y=(G=X.end)==null?void 0:G.line)!=null?Y:Q.length:X.start.line+1;if(!J||Z)return H;while(Q[H-1]==="")H--;return H}function is(Q){if(Q instanceof Uint8Array)return Q.buffer.slice(Q.byteOffset,Q.byteOffset+Q.byteLength);if(Q instanceof DataView)return Q.buffer.slice(Q.byteOffset,Q.byteOffset+Q.byteLength);if(Q instanceof ArrayBuffer)return Q;return new TextEncoder().encode(JSON.stringify(Q)).buffer}function qI(Q){return(Q.validity.notAfter.getTime()-new Date().getTime())/86400000}function HI(Q){let X=Q.getExtension("subjectAltName"),Z=!1;if(X&&X.altNames)X.altNames.forEach((J)=>{if(J.type===7&&J.value==="\x00\x00\x00\x00")Z=!0});return!Z}var dq="obsidian-local-rest-api.crt",zI={port:27124,insecurePort:27123,enableInsecureServer:!1},ns={[l0.ApiKeyAuthorizationRequired]:"Authorization required. Find your API Key in the 'Local REST API' section of your Obsidian settings.",[l0.ContentTypeSpecificationRequired]:"Content-Type header required; this API accepts data in multiple content-types and you must indicate the content-type of your request body via the Content-Type header.",[l0.InvalidContentInsertionPositionValue]:"Invalid 'Content-Insertion-Position' header value.",[l0.InvalidContentForContentType]:"Your request body could not be processed as the content-type specified in your Content-Type header.",[l0.InvalidHeadingHeader]:"No heading in specified file could be found matching the heading specified in 'Heading' header.",[l0.MissingHeadingHeader]:"'Heading' header is required for identifying where to insert content.",[l0.PeriodDoesNotExist]:"Specified period does not exist.",[l0.PeriodIsNotEnabled]:"Specified period is not enabled.",[l0.PeriodicNoteDoesNotExist]:"Periodic note does not exist for the specified period.",[l0.RequestMethodValidOnlyForFiles]:"Request method is valid only for file paths, not directories.",[l0.TextContentEncodingRequired]:"Incoming content must be text data and have an appropriate text/* Content-type header set (e.g. text/markdown).",[l0.InvalidFilterQuery]:"The query you provided could not be processed."},_9;(function(Q){Q.json="application/json",Q.markdown="text/markdown",Q.olrapiNoteJson="application/vnd.olrapi.note+json",Q.jsonLogic="application/vnd.olrapi.jsonlogic+json",Q.dataviewDql="application/vnd.olrapi.dataview.dql+txt"})(_9||(_9={}));var TM="Authorization",CZ="127.0.0.1",MM="https://raw.githubusercontent.com/coddingtonbear/obsidian-local-rest-api/main/LICENSE",J7="1024mb",os=class{constructor(Q,X){this.unregistered=!1,this.router=Q,this.onUnregister=X,this.unregistered=!1}addRoute(Q){if(this.unregistered)throw new Error("Routes cannot be added after API extension has been unregistered.");return this.router.route(Q)}unregister(){this.onUnregister(),this.unregistered=!0}},as=class{constructor(Q,X,Z){this.apiExtensions=[],this.app=Q,this.manifest=X,this.api=B$.default(),this.settings=Z,this.apiExtensionRouter=B$.default.Router(),this.api.set("json spaces",2),U$.default.add_operation("glob",(J,G)=>{if(typeof G==="string"&&typeof J==="string")return ps.default(J).test(G);return!1}),U$.default.add_operation("regexp",(J,G)=>{if(typeof G==="string"&&typeof J==="string")return new RegExp(J).test(G);return!1})}registerApiExtension(Q){let X=void 0;for(let{manifest:Z,api:J}of this.apiExtensions)if(JSON.stringify(Z)===JSON.stringify(Q)){X=J;break}if(!X){let Z=B$.default.Router();this.apiExtensionRouter.use(Z),X=new os(Z,()=>{let J=this.apiExtensions.findIndex(({manifest:G})=>JSON.stringify(Q)===JSON.stringify(G));if(J!==-1)this.apiExtensions.splice(J,1),this.apiExtensionRouter.stack.splice(J,1)}),this.apiExtensions.push({manifest:Q,api:X})}return X}requestIsAuthenticated(Q){var X;if(Q.get((X=this.settings.authorizationHeaderName)!=null?X:"Authorization")===`Bearer ${this.settings.apiKey}`)return!0;return!1}authenticationMiddleware(Q,X,Z){return T0(this,null,function*(){if(!["/",`/${dq}`].includes(Q.path)&&!this.requestIsAuthenticated(Q)){this.returnCannedResponse(X,{errorCode:l0.ApiKeyAuthorizationRequired});return}Z()})}getFileMetadataObject(Q){return T0(this,null,function*(){var X,Z,J;let G=this.app.metadataCache.getFileCache(Q),Y=K0({},(X=G.frontmatter)!=null?X:{});delete Y.position;let H=(J=((Z=G.tags)!=null?Z:[]).filter((W)=>W).map((W)=>W.tag))!=null?J:[];return{tags:[...Array.isArray(Y.tags)?Y.tags:[],...H].filter((W)=>W).map((W)=>W.toString().replace(/^#/,"")).filter((W,$,q)=>q.indexOf(W)===$),frontmatter:Y,stat:Q.stat,path:Q.path,content:yield this.app.vault.cachedRead(Q)}})}getResponseMessage({statusCode:Q=400,message:X,errorCode:Z}){let J=[];if(Z)J.push(ns[Z]);else J.push(bs.default.STATUS_CODES[Q]);if(X)J.push(X);return J.join(` `)}getStatusCode({statusCode:Q,errorCode:X}){if(Q)return Q;return Math.floor(X/100)}returnCannedResponse(Q,{statusCode:X,message:Z,errorCode:J}){let G={message:this.getResponseMessage({statusCode:X,message:Z,errorCode:J}),errorCode:J!=null?J:X*100};Q.status(this.getStatusCode({statusCode:X,errorCode:J})).json(G)}root(Q,X){let Z;try{Z=fs.default.pki.certificateFromPem(this.settings.crypto.cert)}catch(J){}X.status(200).json({status:"OK",manifest:this.manifest,versions:{obsidian:_q.apiVersion,self:this.manifest.version},service:"Obsidian Local REST API",authenticated:this.requestIsAuthenticated(Q),certificateInfo:this.requestIsAuthenticated(Q)&&Z?{validityDays:qI(Z),regenerateRecommended:!HI(Z)}:void 0,apiExtensions:this.requestIsAuthenticated(Q)?this.apiExtensions.map(({manifest:J})=>J):void 0})}_vaultGet(Q,X,Z){return T0(this,null,function*(){if(!Q||Q.endsWith("/")){let J=[...new Set(this.app.vault.getFiles().map((G)=>G.path).filter((G)=>G.startsWith(Q)).map((G)=>{let Y=G.slice(Q.length);if(Y.indexOf("/")>-1)return Y.slice(0,Y.indexOf("/")+1);return Y}))];if(J.sort(),J.length===0){this.returnCannedResponse(Z,{statusCode:404});return}Z.json({files:J})}else if((yield this.app.vault.adapter.exists(Q))&&(yield this.app.vault.adapter.stat(Q)).type==="file"){let G=yield this.app.vault.adapter.readBinary(Q),Y=_s.default.lookup(Q);if(Z.set({"Content-Disposition":`attachment; filename="${encodeURI(Q).replace(",","%2C")}"`,"Content-Type":`${Y}`+(Y==_9.markdown?"; charset=utf-8":"")}),X.headers.accept===_9.olrapiNoteJson){let H=this.app.vault.getAbstractFileByPath(Q);Z.setHeader("Content-Type",_9.olrapiNoteJson),Z.send(JSON.stringify(yield this.getFileMetadataObject(H),null,2));return}Z.send(Buffer.from(G))}else{this.returnCannedResponse(Z,{statusCode:404});return}})}vaultGet(Q,X){return T0(this,null,function*(){let Z=Q.params[0];return this._vaultGet(Z,Q,X)})}_vaultPut(Q,X,Z){return T0(this,null,function*(){if(!Q||Q.endsWith("/")){this.returnCannedResponse(Z,{errorCode:l0.RequestMethodValidOnlyForFiles});return}try{yield this.app.vault.createFolder(NM.default.dirname(Q))}catch(J){}if(typeof X.body==="string")yield this.app.vault.adapter.write(Q,X.body);else yield this.app.vault.adapter.writeBinary(Q,is(X.body));this.returnCannedResponse(Z,{statusCode:204});return})}vaultPut(Q,X){return T0(this,null,function*(){let Z=Q.params[0];return this._vaultPut(Z,Q,X)})}_vaultPatch(Q,X,Z){return T0(this,null,function*(){let J=X.get("Heading-Boundary")||"::",G=(X.get("Heading")||"").split(J).filter(Boolean),Y=X.get("Content-Insertion-Position"),H=!1,K=!1;if(!Q||Q.endsWith("/")){this.returnCannedResponse(Z,{errorCode:l0.RequestMethodValidOnlyForFiles});return}if(Y===void 0)H=!1;else if(Y==="beginning")H=!0;else if(Y==="end")H=!1;else{this.returnCannedResponse(Z,{errorCode:l0.InvalidContentInsertionPositionValue});return}if(typeof X.body!="string"){this.returnCannedResponse(Z,{errorCode:l0.TextContentEncodingRequired});return}if(typeof X.get("Content-Insertion-Ignore-Newline")=="string")K=X.get("Content-Insertion-Ignore-Newline").toLowerCase()=="true";if(!G.length){this.returnCannedResponse(Z,{errorCode:l0.MissingHeadingHeader});return}let z=this.app.vault.getAbstractFileByPath(Q);if(!(z instanceof _q.TFile)){this.returnCannedResponse(Z,{statusCode:404});return}let W=this.app.metadataCache.getFileCache(z),$=ls(W,G);if(!$){this.returnCannedResponse(Z,{errorCode:l0.InvalidHeadingHeader});return}let B=(yield this.app.vault.read(z)).split(` `),D=cs(B,$,H,K);B.splice(D,0,X.body);let F=B.join(` `);yield this.app.vault.adapter.write(Q,F),Z.status(200).send(F)})}vaultPatch(Q,X){return T0(this,null,function*(){let Z=Q.params[0];return this._vaultPatch(Z,Q,X)})}_vaultPost(Q,X,Z){return T0(this,null,function*(){if(!Q||Q.endsWith("/")){this.returnCannedResponse(Z,{errorCode:l0.RequestMethodValidOnlyForFiles});return}if(typeof X.body!="string"){this.returnCannedResponse(Z,{errorCode:l0.TextContentEncodingRequired});return}try{yield this.app.vault.createFolder(NM.default.dirname(Q))}catch(Y){}let J="",G=this.app.vault.getAbstractFileByPath(Q);if(G instanceof _q.TFile){if(J=yield this.app.vault.read(G),!J.endsWith(` `))J+=` `}J+=X.body,yield this.app.vault.adapter.write(Q,J),this.returnCannedResponse(Z,{statusCode:204});return})}vaultPost(Q,X){return T0(this,null,function*(){let Z=Q.params[0];return this._vaultPost(Z,Q,X)})}_vaultDelete(Q,X,Z){return T0(this,null,function*(){if(!Q||Q.endsWith("/")){this.returnCannedResponse(Z,{errorCode:l0.RequestMethodValidOnlyForFiles});return}if(!(yield this.app.vault.adapter.exists(Q))){this.returnCannedResponse(Z,{statusCode:404});return}yield this.app.vault.adapter.remove(Q),this.returnCannedResponse(Z,{statusCode:204});return})}vaultDelete(Q,X){return T0(this,null,function*(){let Z=Q.params[0];return this._vaultDelete(Z,Q,X)})}getPeriodicNoteInterface(){return{daily:{settings:L6.default.getDailyNoteSettings(),loaded:L6.default.appHasDailyNotesPluginLoaded(),create:L6.default.createDailyNote,get:L6.default.getDailyNote,getAll:L6.default.getAllDailyNotes},weekly:{settings:L6.default.getWeeklyNoteSettings(),loaded:L6.default.appHasWeeklyNotesPluginLoaded(),create:L6.default.createWeeklyNote,get:L6.default.getWeeklyNote,getAll:L6.default.getAllWeeklyNotes},monthly:{settings:L6.default.getMonthlyNoteSettings(),loaded:L6.default.appHasMonthlyNotesPluginLoaded(),create:L6.default.createMonthlyNote,get:L6.default.getMonthlyNote,getAll:L6.default.getAllMonthlyNotes},quarterly:{settings:L6.default.getQuarterlyNoteSettings(),loaded:L6.default.appHasQuarterlyNotesPluginLoaded(),create:L6.default.createQuarterlyNote,get:L6.default.getQuarterlyNote,getAll:L6.default.getAllQuarterlyNotes},yearly:{settings:L6.default.getYearlyNoteSettings(),loaded:L6.default.appHasYearlyNotesPluginLoaded(),create:L6.default.createYearlyNote,get:L6.default.getYearlyNote,getAll:L6.default.getAllYearlyNotes}}}periodicGetInterface(Q){let X=this.getPeriodicNoteInterface();if(!X[Q])return[null,l0.PeriodDoesNotExist];if(!X[Q].loaded)return[null,l0.PeriodIsNotEnabled];return[X[Q],null]}periodicGetNote(Q){let[X,Z]=this.periodicGetInterface(Q);if(Z)return[null,Z];let J=window.moment(Date.now()),G=X.getAll(),Y=X.get(J,G);if(!Y)return[null,l0.PeriodicNoteDoesNotExist];return[Y,null]}periodicGetOrCreateNote(Q){return T0(this,null,function*(){let[X,Z]=this.periodicGetNote(Q),J=X;if(Z===l0.PeriodicNoteDoesNotExist){let[G]=this.periodicGetInterface(Q),Y=window.moment(Date.now());J=yield G.create(Y),yield new Promise((K)=>{let z=null,W=setInterval(()=>{if(z=this.app.metadataCache.getFileCache(J),z)clearInterval(W),K(z)},100)})}else if(Z)return[null,Z];return[J,null]})}redirectToVaultPath(Q,X,Z,J){let G=Q.path;return Z.set("Content-Location",encodeURI(G)),J(G,X,Z)}periodicGet(Q,X){return T0(this,null,function*(){let[Z,J]=this.periodicGetNote(Q.params.period);if(J){this.returnCannedResponse(X,{errorCode:J});return}return this.redirectToVaultPath(Z,Q,X,this._vaultGet.bind(this))})}periodicPut(Q,X){return T0(this,null,function*(){let[Z,J]=yield this.periodicGetOrCreateNote(Q.params.period);if(J){this.returnCannedResponse(X,{errorCode:J});return}return this.redirectToVaultPath(Z,Q,X,this._vaultPut.bind(this))})}periodicPost(Q,X){return T0(this,null,function*(){let[Z,J]=yield this.periodicGetOrCreateNote(Q.params.period);if(J){this.returnCannedResponse(X,{errorCode:J});return}return this.redirectToVaultPath(Z,Q,X,this._vaultPost.bind(this))})}periodicPatch(Q,X){return T0(this,null,function*(){let[Z,J]=yield this.periodicGetOrCreateNote(Q.params.period);if(J){this.returnCannedResponse(X,{errorCode:J});return}return this.redirectToVaultPath(Z,Q,X,this._vaultPatch.bind(this))})}periodicDelete(Q,X){return T0(this,null,function*(){let[Z,J]=this.periodicGetNote(Q.params.period);if(J){this.returnCannedResponse(X,{errorCode:J});return}return this.redirectToVaultPath(Z,Q,X,this._vaultDelete.bind(this))})}activeFileGet(Q,X){return T0(this,null,function*(){let Z=this.app.workspace.getActiveFile();return this.redirectToVaultPath(Z,Q,X,this._vaultGet.bind(this))})}activeFilePut(Q,X){return T0(this,null,function*(){let Z=this.app.workspace.getActiveFile();return this.redirectToVaultPath(Z,Q,X,this._vaultPut.bind(this))})}activeFilePost(Q,X){return T0(this,null,function*(){let Z=this.app.workspace.getActiveFile();return this.redirectToVaultPath(Z,Q,X,this._vaultPost.bind(this))})}activeFilePatch(Q,X){return T0(this,null,function*(){let Z=this.app.workspace.getActiveFile();return this.redirectToVaultPath(Z,Q,X,this._vaultPatch.bind(this))})}activeFileDelete(Q,X){return T0(this,null,function*(){let Z=this.app.workspace.getActiveFile();return this.redirectToVaultPath(Z,Q,X,this._vaultDelete.bind(this))})}commandGet(Q,X){return T0(this,null,function*(){let Z=[];for(let G in this.app.commands.commands)Z.push({id:G,name:this.app.commands.commands[G].name});let J={commands:Z};X.json(J)})}commandPost(Q,X){return T0(this,null,function*(){if(!this.app.commands.commands[Q.params.commandId]){this.returnCannedResponse(X,{statusCode:404});return}try{this.app.commands.executeCommandById(Q.params.commandId)}catch(J){this.returnCannedResponse(X,{statusCode:500,message:J.message});return}this.returnCannedResponse(X,{statusCode:204});return})}searchSimplePost(Q,X){return T0(this,null,function*(){var Z;let J=[],G=Q.query.query,Y=(Z=parseInt(Q.query.contextLength,10))!=null?Z:100,H=_q.prepareSimpleSearch(G);for(let K of this.app.vault.getMarkdownFiles()){let z=yield this.app.vault.cachedRead(K),W=H(z);if(W){let $=[];for(let q of W.matches)$.push({match:{start:q[0],end:q[1]},context:z.slice(Math.max(q[0]-Y,0),q[1]+Y)});J.push({filename:K.path,score:W.score,matches:$})}}J.sort((K,z)=>K.score>z.score?1:-1),X.json(J)})}valueIsSaneTruthy(Q){if(Q===void 0||Q===null)return!1;else if(Array.isArray(Q))return Q.length>0;else if(typeof Q==="object")return Object.keys(Q).length>0;return Boolean(Q)}searchQueryPost(Q,X){return T0(this,null,function*(){let Z=hs.getAPI(),J={[_9.dataviewDql]:()=>T0(this,null,function*(){let Y=[],H=yield Z.tryQuery(Q.body),K=Z.evaluationContext.settings.tableIdColumnName;if(H.type!=="table")throw new Error("Only TABLE dataview queries are supported.");if(!H.headers.includes(K))throw new Error("TABLE WITHOUT ID queries are not supported.");for(let z of H.values){let W={};H.headers.forEach(($,q)=>{if($!==K)W[$]=z[q]}),Y.push({filename:z[0].path,result:W})}return Y}),[_9.jsonLogic]:()=>T0(this,null,function*(){let Y=[];for(let H of this.app.vault.getMarkdownFiles()){let K=yield this.getFileMetadataObject(H);try{let z=U$.default.apply(Q.body,K);if(this.valueIsSaneTruthy(z))Y.push({filename:H.path,result:z})}catch(z){throw new Error(`${z.message} (while processing ${H.path})`)}}return Y})},G=Q.headers["content-type"];if(!J[G]){this.returnCannedResponse(X,{errorCode:l0.ContentTypeSpecificationRequired});return}try{let Y=yield J[G]();X.json(Y)}catch(Y){this.returnCannedResponse(X,{errorCode:l0.InvalidFilterQuery,message:`${Y.message}`});return}})}openPost(Q,X){return T0(this,null,function*(){let Z=Q.params[0],J=us.default.parseUrl(Q.originalUrl,{parseBooleans:!0}).query,G=Boolean(J.newLeaf);this.app.workspace.openLinkText(Z,"/",G),X.json()})}certificateGet(Q,X){return T0(this,null,function*(){X.set("Content-type",`application/octet-stream; filename="${dq}"`),X.status(200).send(this.settings.crypto.cert)})}notFoundHandler(Q,X,Z){return T0(this,null,function*(){this.returnCannedResponse(X,{statusCode:404});return})}errorHandler(Q,X,Z,J){return T0(this,null,function*(){if(Q instanceof SyntaxError){this.returnCannedResponse(Z,{errorCode:l0.InvalidContentForContentType});return}this.returnCannedResponse(Z,{statusCode:500,message:Q.message});return})}setupRouter(){this.api.use((Q,X,Z)=>{let J=X.send;X.send=function(G,...Y){return console.log(`[REST API] ${Q.method} ${Q.url} => ${X.statusCode}`),J.apply(X,[G,...Y])},Z()}),this.api.use(ds.default()),this.api.use(ms.default()),this.api.use(this.authenticationMiddleware.bind(this)),this.api.use(X7.default.text({type:"text/*",limit:J7})),this.api.use(X7.default.text({type:_9.dataviewDql,limit:J7})),this.api.use(X7.default.json({type:_9.json,limit:J7})),this.api.use(X7.default.json({type:_9.olrapiNoteJson,limit:J7})),this.api.use(X7.default.json({type:_9.jsonLogic,limit:J7})),this.api.use(X7.default.raw({type:"*/*",limit:J7})),this.api.route("/active/").get(this.activeFileGet.bind(this)).put(this.activeFilePut.bind(this)).patch(this.activeFilePatch.bind(this)).post(this.activeFilePost.bind(this)).delete(this.activeFileDelete.bind(this)),this.api.route("/vault/(.*)").get(this.vaultGet.bind(this)).put(this.vaultPut.bind(this)).patch(this.vaultPatch.bind(this)).post(this.vaultPost.bind(this)).delete(this.vaultDelete.bind(this)),this.api.route("/periodic/:period/").get(this.periodicGet.bind(this)).put(this.periodicPut.bind(this)).patch(this.periodicPatch.bind(this)).post(this.periodicPost.bind(this)).delete(this.periodicDelete.bind(this)),this.api.route("/commands/").get(this.commandGet.bind(this)),this.api.route("/commands/:commandId/").post(this.commandPost.bind(this)),this.api.route("/search/").post(this.searchQueryPost.bind(this)),this.api.route("/search/simple/").post(this.searchSimplePost.bind(this)),this.api.route("/open/(.*)").post(this.openPost.bind(this)),this.api.get(`/${dq}`,this.certificateGet.bind(this)),this.api.get("/",this.root.bind(this)),this.api.use(this.apiExtensionRouter),this.api.use(this.notFoundHandler.bind(this)),this.api.use(this.errorHandler.bind(this))}},ss=class extends Q8.Plugin{constructor(){super(...arguments);this.secureServer=null,this.insecureServer=null}onload(){return T0(this,null,function*(){if(this.refreshServerState=this.debounce(this._refreshServerState.bind(this),1000),yield this.loadSettings(),this.requestHandler=new as(this.app,this.manifest,this.settings),this.requestHandler.setupRouter(),!this.settings.apiKey)this.settings.apiKey=yQ.default.md.sha256.create().update(yQ.default.random.getBytesSync(128)).digest().toHex(),this.saveSettings();if(!this.settings.crypto){let Q=new Date,X=new Date;Q.setDate(X.getDate()+365);let Z=yQ.default.pki.rsa.generateKeyPair(2048),J=[{name:"commonName",value:"Obsidian Local REST API"}],G=yQ.default.pki.createCertificate();G.setIssuer(J),G.setSubject(J);let Y=[{type:7,ip:CZ}];if(this.settings.bindingHost&&this.settings.bindingHost!=="0.0.0.0")Y.push({type:7,ip:this.settings.bindingHost});if(this.settings.subjectAltNames){for(let H of this.settings.subjectAltNames.split(` `))if(H.trim())Y.push({type:2,value:H.trim()})}G.setExtensions([{name:"basicConstraints",cA:!0,critical:!0},{name:"keyUsage",keyCertSign:!0,digitalSignature:!0,nonRepudiation:!0,keyEncipherment:!1,dataEncipherment:!1,critical:!0},{name:"extKeyUsage",serverAuth:!0,clientAuth:!0,codeSigning:!0,emailProtection:!0,timeStamping:!0},{name:"nsCertType",client:!0,server:!0,email:!0,objsign:!0,sslCA:!0,emailCA:!0,objCA:!0},{name:"subjectAltName",altNames:Y}]),G.serialNumber="1",G.publicKey=Z.publicKey,G.validity.notAfter=Q,G.validity.notBefore=X,G.sign(Z.privateKey,yQ.default.md.sha256.create()),this.settings.crypto={cert:yQ.pki.certificateToPem(G),privateKey:yQ.pki.privateKeyToPem(Z.privateKey),publicKey:yQ.pki.publicKeyToPem(Z.publicKey)},this.saveSettings()}this.addSettingTab(new ts(this.app,this)),this.refreshServerState(),this.app.workspace.trigger("obsidian-local-rest-api:loaded")})}getPublicApi(Q){if(!Q.id||!Q.name||!Q.version)throw new Error("PluginManifest instance must include a defined id, name, and version to be accempted.");return console.log("[REST API] Added new API extension",Q),this.requestHandler.registerApiExtension(Q)}debounce(Q,X){let Z;return(...J)=>{clearTimeout(Z),Z=setTimeout(()=>Q(...J),X)}}_refreshServerState(){var Q,X,Z,J,G;if(this.secureServer)this.secureServer.close(),this.secureServer=null;if((Q=this.settings.enableSecureServer)!=null?Q:!0)this.secureServer=vs.createServer({key:this.settings.crypto.privateKey,cert:this.settings.crypto.cert},this.requestHandler.api),this.secureServer.listen(this.settings.port,(X=this.settings.bindingHost)!=null?X:CZ),console.log(`[REST API] Listening on https://${(Z=this.settings.bindingHost)!=null?Z:CZ}:${this.settings.port}/`);if(this.insecureServer)this.insecureServer.close(),this.insecureServer=null;if(this.settings.enableInsecureServer)this.insecureServer=gs.createServer(this.requestHandler.api),this.insecureServer.listen(this.settings.insecurePort,(J=this.settings.bindingHost)!=null?J:CZ),console.log(`[REST API] Listening on http://${(G=this.settings.bindingHost)!=null?G:CZ}:${this.settings.insecurePort}/`)}onunload(){if(this.secureServer)this.secureServer.close();if(this.insecureServer)this.insecureServer.close()}loadSettings(){return T0(this,null,function*(){this.settings=Object.assign({},zI,yield this.loadData())})}saveSettings(){return T0(this,null,function*(){yield this.saveData(this.settings)})}},ts=class extends Q8.PluginSettingTab{constructor(Q,X){super(Q,X);this.showAdvancedSettings=!1,this.plugin=X}display(){var Q;let{containerEl:X}=this;X.replaceChildren();let Z=yQ.default.pki.certificateFromPem(this.plugin.settings.crypto.cert),J=qI(Z),G=!HI(Z);X.empty(),X.classList.add("obsidian-local-rest-api-settings"),X.createEl("h2",{text:"Local REST API"}),X.createEl("h3",{text:"How to Access"});let Y=X.createEl("div");Y.classList.add("api-key-display");let H=Y.createEl("p");H.innerHTML=` You can access Obsidian Local REST API via the following URLs: `;let z=Y.createEl("table",{cls:"api-urls"}).createEl("tbody"),W=z.createEl("tr",this.plugin.settings.enableSecureServer===!1?{cls:"disabled",title:"Disabled. You can enable this in 'Settings' below."}:{title:"Enabled"}),$=`https://127.0.0.1:${this.plugin.settings.port}/`;W.innerHTML=` ${this.plugin.settings.enableSecureServer===!1?"❌":"✅"} Encrypted (HTTPS) API URL

Requires that this certificate be configured as a trusted certificate authority for your browser. See wiki for more information. `;let q=W.createEl("td",{cls:"url"});if(q.innerHTML=` ${$} (copy)
`,this.plugin.settings.subjectAltNames){for(let C of this.plugin.settings.subjectAltNames.split(` `))if(C.trim()){let L=`https://${C.trim()}:${this.plugin.settings.port}/`;q.innerHTML+=` ${L} (copy)
`}}let B=z.createEl("tr",this.plugin.settings.enableInsecureServer===!1?{cls:"disabled",title:"Disabled. You can enable this in 'Settings' below."}:{title:"Enabled"}),D=`http://127.0.0.1:${this.plugin.settings.insecurePort}/`;B.innerHTML=` ${this.plugin.settings.enableInsecureServer===!1?"❌":"✅"} Non-encrypted (HTTP) API URL `;let F=B.createEl("td",{cls:"url"});if(F.innerHTML=` ${D} (copy)
`,this.plugin.settings.subjectAltNames){for(let C of this.plugin.settings.subjectAltNames.split(` `))if(C.trim()){let L=`http://${C.trim()}:${this.plugin.settings.insecurePort}/`;F.innerHTML+=` ${L} (copy)
`}}let P=Y.createEl("p");P.innerHTML=` Your API Key must be passed in requests via an authorization header (copy): `,Y.createEl("pre",{text:this.plugin.settings.apiKey}),Y.createEl("p",{text:"For example, the following request will return all notes in the root directory of your vault:"}),Y.createEl("pre",{text:`GET /vault/ HTTP/1.1 ${(Q=this.plugin.settings.authorizationHeaderName)!=null?Q:"Authorization"}: Bearer ${this.plugin.settings.apiKey}`});let N=Y.createEl("p");if(N.innerHTML=` Comprehensive documentation of what API endpoints are available can be found in the online docs. `,X.createEl("h3",{text:"Settings"}),J<0){let C=Y.createEl("div");C.classList.add("certificate-expired"),C.innerHTML=` Your certificate has expired! You must re-generate your certificate below by pressing the "Re-generate Certificates" button below in order to connect securely to this API. `}else if(J<30){let C=Y.createEl("div");C.classList.add("certificate-expiring-soon"),C.innerHTML=` Your certificate will expire in ${Math.floor(J)} day${Math.floor(J)===1?"":"s"}s! You should re-generate your certificate below by pressing the "Re-generate Certificates" button below in order to continue to connect securely to this API. `}if(G){let C=Y.createEl("div");C.classList.add("certificate-regeneration-recommended"),C.innerHTML=` You should re-generate your certificate! Your certificate was generated using earlier standards than are currently used by Obsidian Local REST API. Some systems or tools may not accept your certificate with its current configuration, and re-generating your certificate may improve compatibility with such tools. To re-generate your certificate, press the "Re-generate Certificates" button below. `}if(new Q8.Setting(X).setName("Enable Non-encrypted (HTTP) Server").setDesc("Enables a non-encrypted (HTTP) server on the port designated below. By default this plugin requires a secure HTTPS connection, but in safe environments you may turn on the non-encrypted server to simplify interacting with the API. Interactions with the API will still require the API Key shown above. Under no circumstances is it recommended that you expose this service to the internet, especially if you turn on this feature!").addToggle((C)=>C.onChange((L)=>{let V=this.plugin.settings.enableInsecureServer;if(this.plugin.settings.enableInsecureServer=L,this.plugin.saveSettings(),this.plugin.refreshServerState(),L!==V)this.display()}).setValue(this.plugin.settings.enableInsecureServer)),new Q8.Setting(X).setName("Reset All Cryptography").setDesc(`Pressing this button will cause your certificate, private key, public key, and API key to be regenerated. This settings panel will be closed when you press this.`).addButton((C)=>{C.setWarning().setButtonText("Reset All Crypto").onClick(()=>{delete this.plugin.settings.apiKey,delete this.plugin.settings.crypto,this.plugin.saveSettings(),this.plugin.unload(),this.plugin.load()})}),new Q8.Setting(X).setName("Re-generate Certificates").setDesc(`Pressing this button will cause your certificate, private key, and public key to be re-generated, but your API key will remain unchanged. This settings panel will be closed when you press this.`).addButton((C)=>{C.setWarning().setButtonText("Re-generate Certificates").onClick(()=>{delete this.plugin.settings.crypto,this.plugin.saveSettings(),this.plugin.unload(),this.plugin.load()})}),new Q8.Setting(X).setName("Restore Default Settings").setDesc(`Pressing this button will reset this plugin's settings to defaults. This settings panel will be closed when you press this.`).addButton((C)=>{C.setWarning().setButtonText("Restore Defaults").onClick(()=>{this.plugin.settings=Object.assign({},zI),this.plugin.saveSettings(),this.plugin.unload(),this.plugin.load()})}),new Q8.Setting(X).setName("Show advanced settings").setDesc("Advanced settings are dangerous and may make your environment less secure.").addToggle((C)=>{C.onChange((L)=>{if(this.showAdvancedSettings!==L)this.showAdvancedSettings=L,this.display()}).setValue(this.showAdvancedSettings)}),this.showAdvancedSettings){X.createEl("hr"),X.createEl("h3",{text:"Advanced Settings"}),X.createEl("p",{text:` The settings below are potentially dangerous and are intended for use only by people who know what they are doing. Do not change any of these settings if you do not understand what that setting is used for and what security impacts changing that setting will have. `});let C=X.createEl("p");C.createEl("span",{text:` Use of this software is licensed to you under the MIT license, and it is important that you understand that this license provides you with no warranty. For the complete license text please see `}),C.createEl("a",{href:MM,text:MM}),C.createEl("span",{text:"."}),new Q8.Setting(X).setName("Enable Encrypted (HTTPs) Server").setDesc(` This controls whether the HTTPs server is enabled. You almost certainly want to leave this switch in its default state ('on'), but may find it useful to turn this switch off for troubleshooting. `).addToggle((L)=>{var V;return L.onChange((M)=>{let I=this.plugin.settings.enableSecureServer;if(this.plugin.settings.enableSecureServer=M,this.plugin.saveSettings(),this.plugin.refreshServerState(),M!==I)this.display()}).setValue((V=this.plugin.settings.enableSecureServer)!=null?V:!0)}),new Q8.Setting(X).setName("Encrypted (HTTPS) Server Port").setDesc("This configures the port on which your REST API will listen for HTTPS connections. It is recommended that you leave this port with its default setting as tools integrating with this API may expect the default port to be in use. Under no circumstances is it recommended that you expose this service directly to the internet.").addText((L)=>L.onChange((V)=>{this.plugin.settings.port=parseInt(V,10),this.plugin.saveSettings(),this.plugin.refreshServerState()}).setValue(this.plugin.settings.port.toString())),new Q8.Setting(X).setName("Non-encrypted (HTTP) Server Port").addText((L)=>L.onChange((V)=>{this.plugin.settings.insecurePort=parseInt(V,10),this.plugin.saveSettings(),this.plugin.refreshServerState()}).setValue(this.plugin.settings.insecurePort.toString())),new Q8.Setting(X).setName("API Key").addText((L)=>{L.onChange((V)=>{this.plugin.settings.apiKey=V,this.plugin.saveSettings(),this.plugin.refreshServerState()}).setValue(this.plugin.settings.apiKey)}),new Q8.Setting(X).setName("Certificate Hostnames").setDesc(` List of extra hostnames to add to your certificate's \`subjectAltName\` field. One hostname per line. You must click the "Re-generate Certificates" button above after changing this value for this to have an effect. This is useful for situations in which you are accessing Obsidian from a hostname other than the host on which it is running. `).addTextArea((L)=>L.onChange((V)=>{this.plugin.settings.subjectAltNames=V,this.plugin.saveSettings()}).setValue(this.plugin.settings.subjectAltNames)),new Q8.Setting(X).setName("Certificate").addTextArea((L)=>L.onChange((V)=>{this.plugin.settings.crypto.cert=V,this.plugin.saveSettings(),this.plugin.refreshServerState()}).setValue(this.plugin.settings.crypto.cert)),new Q8.Setting(X).setName("Public Key").addTextArea((L)=>L.onChange((V)=>{this.plugin.settings.crypto.publicKey=V,this.plugin.saveSettings(),this.plugin.refreshServerState()}).setValue(this.plugin.settings.crypto.publicKey)),new Q8.Setting(X).setName("Private Key").addTextArea((L)=>L.onChange((V)=>{this.plugin.settings.crypto.privateKey=V,this.plugin.saveSettings(),this.plugin.refreshServerState()}).setValue(this.plugin.settings.crypto.privateKey)),new Q8.Setting(X).setName("Authorization Header").addText((L)=>{var V;L.onChange((M)=>{if(M!==TM)this.plugin.settings.authorizationHeaderName=M;else delete this.plugin.settings.authorizationHeaderName;this.plugin.saveSettings(),this.plugin.refreshServerState()}).setValue((V=this.plugin.settings.authorizationHeaderName)!=null?V:TM)}),new Q8.Setting(X).setName("Binding Host").addText((L)=>{var V;L.onChange((M)=>{if(M!==CZ)this.plugin.settings.bindingHost=M;else delete this.plugin.settings.bindingHost;this.plugin.saveSettings(),this.plugin.refreshServerState()}).setValue((V=this.plugin.settings.bindingHost)!=null?V:CZ)})}}},rs=(Q,X)=>{let Z=Q.plugins.plugins["obsidian-local-rest-api"];if(Z)return Z.getPublicApi(X)};/*! * accepts * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed *//*! * body-parser * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed *//*! * body-parser * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed *//*! * bytes * Copyright(c) 2012-2014 TJ Holowaychuk * Copyright(c) 2015 Jed Watson * MIT Licensed *//*! * content-disposition * Copyright(c) 2014-2017 Douglas Christopher Wilson * MIT Licensed *//*! * content-type * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed *//*! * cookie * Copyright(c) 2012-2014 Roman Shtylman * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed *//*! * depd * Copyright(c) 2014 Douglas Christopher Wilson * MIT Licensed *//*! * depd * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed *//*! * depd * Copyright(c) 2014-2017 Douglas Christopher Wilson * MIT Licensed *//*! * depd * Copyright(c) 2014-2018 Douglas Christopher Wilson * MIT Licensed *//*! * depd * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed *//*! * destroy * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015-2022 Douglas Christopher Wilson * MIT Licensed *//*! * ee-first * Copyright(c) 2014 Jonathan Ong * MIT Licensed *//*! * encodeurl * Copyright(c) 2016 Douglas Christopher Wilson * MIT Licensed *//*! * escape-html * Copyright(c) 2012-2013 TJ Holowaychuk * Copyright(c) 2015 Andreas Lubbe * Copyright(c) 2015 Tiancheng "Timothy" Gu * MIT Licensed *//*! * etag * Copyright(c) 2014-2016 Douglas Christopher Wilson * MIT Licensed *//*! * express * Copyright(c) 2009-2013 TJ Holowaychuk * Copyright(c) 2013 Roman Shtylman * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed *//*! * express * Copyright(c) 2009-2013 TJ Holowaychuk * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed *//*! * finalhandler * Copyright(c) 2014-2022 Douglas Christopher Wilson * MIT Licensed *//*! * forwarded * Copyright(c) 2014-2017 Douglas Christopher Wilson * MIT Licensed *//*! * fresh * Copyright(c) 2012 TJ Holowaychuk * Copyright(c) 2016-2017 Douglas Christopher Wilson * MIT Licensed *//*! * http-errors * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2016 Douglas Christopher Wilson * MIT Licensed *//*! * media-typer * Copyright(c) 2014 Douglas Christopher Wilson * MIT Licensed *//*! * merge-descriptors * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed *//*! * methods * Copyright(c) 2013-2014 TJ Holowaychuk * Copyright(c) 2015-2016 Douglas Christopher Wilson * MIT Licensed *//*! * mime-db * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015-2022 Douglas Christopher Wilson * MIT Licensed *//*! * mime-types * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed *//*! * negotiator * Copyright(c) 2012 Federico Romero * Copyright(c) 2012-2014 Isaac Z. Schlueter * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed *//*! * on-finished * Copyright(c) 2013 Jonathan Ong * Copyright(c) 2014 Douglas Christopher Wilson * MIT Licensed *//*! * on-headers * Copyright(c) 2014 Douglas Christopher Wilson * MIT Licensed *//*! * parseurl * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2014-2017 Douglas Christopher Wilson * MIT Licensed *//*! * proxy-addr * Copyright(c) 2014-2016 Douglas Christopher Wilson * MIT Licensed *//*! * range-parser * Copyright(c) 2012-2014 TJ Holowaychuk * Copyright(c) 2015-2016 Douglas Christopher Wilson * MIT Licensed *//*! * raw-body * Copyright(c) 2013-2014 Jonathan Ong * Copyright(c) 2014-2022 Douglas Christopher Wilson * MIT Licensed *//*! * response-time * Copyright(c) 2011 TJ Holowaychuk * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed *//*! * router * Copyright(c) 2013 Roman Shtylman * Copyright(c) 2014-2022 Douglas Christopher Wilson * MIT Licensed *//*! * send * Copyright(c) 2012 TJ Holowaychuk * Copyright(c) 2014-2022 Douglas Christopher Wilson * MIT Licensed *//*! * serve-static * Copyright(c) 2010 Sencha Inc. * Copyright(c) 2011 TJ Holowaychuk * Copyright(c) 2014-2016 Douglas Christopher Wilson * MIT Licensed *//*! * statuses * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2016 Douglas Christopher Wilson * MIT Licensed *//*! * toidentifier * Copyright(c) 2016 Douglas Christopher Wilson * MIT Licensed *//*! * type-is * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed *//*! * unpipe * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed *//*! * vary * Copyright(c) 2014-2017 Douglas Christopher Wilson * MIT Licensed *//*! safe-buffer. MIT License. Feross Aboukhadijeh */});var hX=r((kL1,LI)=>{var Zt=Number.MAX_SAFE_INTEGER||9007199254740991,Xt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];LI.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Zt,RELEASE_TYPES:Xt,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var fX=r((yL1,CI)=>{var Jt=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...Q)=>console.error("SEMVER",...Q):()=>{};CI.exports=Jt});var K7=r((vQ,NI)=>{var{MAX_SAFE_COMPONENT_LENGTH:m$,MAX_SAFE_BUILD_LENGTH:Gt,MAX_LENGTH:Yt}=hX(),Wt=fX();vQ=NI.exports={};var qt=vQ.re=[],Ht=vQ.safeRe=[],i1=vQ.src=[],n1=vQ.t={},zt=0,_$="[a-zA-Z0-9-]",Kt=[["\\s",1],["\\d",Yt],[_$,Gt]],$t=(Q)=>{for(let[X,Z]of Kt)Q=Q.split(`${X}*`).join(`${X}{0,${Z}}`).split(`${X}+`).join(`${X}{1,${Z}}`);return Q},I0=(Q,X,Z)=>{let J=$t(X),G=zt++;Wt(Q,G,X),n1[Q]=G,i1[G]=X,qt[G]=new RegExp(X,Z?"g":void 0),Ht[G]=new RegExp(J,Z?"g":void 0)};I0("NUMERICIDENTIFIER","0|[1-9]\\d*");I0("NUMERICIDENTIFIERLOOSE","\\d+");I0("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${_$}*`);I0("MAINVERSION",`(${i1[n1.NUMERICIDENTIFIER]})\\.(${i1[n1.NUMERICIDENTIFIER]})\\.(${i1[n1.NUMERICIDENTIFIER]})`);I0("MAINVERSIONLOOSE",`(${i1[n1.NUMERICIDENTIFIERLOOSE]})\\.(${i1[n1.NUMERICIDENTIFIERLOOSE]})\\.(${i1[n1.NUMERICIDENTIFIERLOOSE]})`);I0("PRERELEASEIDENTIFIER",`(?:${i1[n1.NUMERICIDENTIFIER]}|${i1[n1.NONNUMERICIDENTIFIER]})`);I0("PRERELEASEIDENTIFIERLOOSE",`(?:${i1[n1.NUMERICIDENTIFIERLOOSE]}|${i1[n1.NONNUMERICIDENTIFIER]})`);I0("PRERELEASE",`(?:-(${i1[n1.PRERELEASEIDENTIFIER]}(?:\\.${i1[n1.PRERELEASEIDENTIFIER]})*))`);I0("PRERELEASELOOSE",`(?:-?(${i1[n1.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i1[n1.PRERELEASEIDENTIFIERLOOSE]})*))`);I0("BUILDIDENTIFIER",`${_$}+`);I0("BUILD",`(?:\\+(${i1[n1.BUILDIDENTIFIER]}(?:\\.${i1[n1.BUILDIDENTIFIER]})*))`);I0("FULLPLAIN",`v?${i1[n1.MAINVERSION]}${i1[n1.PRERELEASE]}?${i1[n1.BUILD]}?`);I0("FULL",`^${i1[n1.FULLPLAIN]}$`);I0("LOOSEPLAIN",`[v=\\s]*${i1[n1.MAINVERSIONLOOSE]}${i1[n1.PRERELEASELOOSE]}?${i1[n1.BUILD]}?`);I0("LOOSE",`^${i1[n1.LOOSEPLAIN]}$`);I0("GTLT","((?:<|>)?=?)");I0("XRANGEIDENTIFIERLOOSE",`${i1[n1.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);I0("XRANGEIDENTIFIER",`${i1[n1.NUMERICIDENTIFIER]}|x|X|\\*`);I0("XRANGEPLAIN",`[v=\\s]*(${i1[n1.XRANGEIDENTIFIER]})(?:\\.(${i1[n1.XRANGEIDENTIFIER]})(?:\\.(${i1[n1.XRANGEIDENTIFIER]})(?:${i1[n1.PRERELEASE]})?${i1[n1.BUILD]}?)?)?`);I0("XRANGEPLAINLOOSE",`[v=\\s]*(${i1[n1.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i1[n1.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i1[n1.XRANGEIDENTIFIERLOOSE]})(?:${i1[n1.PRERELEASELOOSE]})?${i1[n1.BUILD]}?)?)?`);I0("XRANGE",`^${i1[n1.GTLT]}\\s*${i1[n1.XRANGEPLAIN]}$`);I0("XRANGELOOSE",`^${i1[n1.GTLT]}\\s*${i1[n1.XRANGEPLAINLOOSE]}$`);I0("COERCEPLAIN",`(^|[^\\d])(\\d{1,${m$}})(?:\\.(\\d{1,${m$}}))?(?:\\.(\\d{1,${m$}}))?`);I0("COERCE",`${i1[n1.COERCEPLAIN]}(?:$|[^\\d])`);I0("COERCEFULL",i1[n1.COERCEPLAIN]+`(?:${i1[n1.PRERELEASE]})?(?:${i1[n1.BUILD]})?(?:$|[^\\d])`);I0("COERCERTL",i1[n1.COERCE],!0);I0("COERCERTLFULL",i1[n1.COERCEFULL],!0);I0("LONETILDE","(?:~>?)");I0("TILDETRIM",`(\\s*)${i1[n1.LONETILDE]}\\s+`,!0);vQ.tildeTrimReplace="$1~";I0("TILDE",`^${i1[n1.LONETILDE]}${i1[n1.XRANGEPLAIN]}$`);I0("TILDELOOSE",`^${i1[n1.LONETILDE]}${i1[n1.XRANGEPLAINLOOSE]}$`);I0("LONECARET","(?:\\^)");I0("CARETTRIM",`(\\s*)${i1[n1.LONECARET]}\\s+`,!0);vQ.caretTrimReplace="$1^";I0("CARET",`^${i1[n1.LONECARET]}${i1[n1.XRANGEPLAIN]}$`);I0("CARETLOOSE",`^${i1[n1.LONECARET]}${i1[n1.XRANGEPLAINLOOSE]}$`);I0("COMPARATORLOOSE",`^${i1[n1.GTLT]}\\s*(${i1[n1.LOOSEPLAIN]})$|^$`);I0("COMPARATOR",`^${i1[n1.GTLT]}\\s*(${i1[n1.FULLPLAIN]})$|^$`);I0("COMPARATORTRIM",`(\\s*)${i1[n1.GTLT]}\\s*(${i1[n1.LOOSEPLAIN]}|${i1[n1.XRANGEPLAIN]})`,!0);vQ.comparatorTrimReplace="$1$2$3";I0("HYPHENRANGE",`^\\s*(${i1[n1.XRANGEPLAIN]})\\s+-\\s+(${i1[n1.XRANGEPLAIN]})\\s*$`);I0("HYPHENRANGELOOSE",`^\\s*(${i1[n1.XRANGEPLAINLOOSE]})\\s+-\\s+(${i1[n1.XRANGEPLAINLOOSE]})\\s*$`);I0("STAR","(<|>)?=?\\s*\\*");I0("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");I0("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Z3=r((xL1,TI)=>{var Bt=Object.freeze({loose:!0}),Ut=Object.freeze({}),Vt=(Q)=>{if(!Q)return Ut;if(typeof Q!=="object")return Bt;return Q};TI.exports=Vt});var d$=r((vL1,RI)=>{var MI=/^[0-9]+$/,II=(Q,X)=>{let Z=MI.test(Q),J=MI.test(X);if(Z&&J)Q=+Q,X=+X;return Q===X?0:Z&&!J?-1:J&&!Z?1:QII(X,Q);RI.exports={compareIdentifiers:II,rcompareIdentifiers:Pt}});var $8=r((gL1,EI)=>{var X3=fX(),{MAX_LENGTH:AI,MAX_SAFE_INTEGER:J3}=hX(),{safeRe:OI,t:wI}=K7(),Ft=Z3(),{compareIdentifiers:$7}=d$();class u9{constructor(Q,X){if(X=Ft(X),Q instanceof u9)if(Q.loose===!!X.loose&&Q.includePrerelease===!!X.includePrerelease)return Q;else Q=Q.version;else if(typeof Q!=="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof Q}".`);if(Q.length>AI)throw new TypeError(`version is longer than ${AI} characters`);X3("SemVer",Q,X),this.options=X,this.loose=!!X.loose,this.includePrerelease=!!X.includePrerelease;let Z=Q.trim().match(X.loose?OI[wI.LOOSE]:OI[wI.FULL]);if(!Z)throw new TypeError(`Invalid Version: ${Q}`);if(this.raw=Q,this.major=+Z[1],this.minor=+Z[2],this.patch=+Z[3],this.major>J3||this.major<0)throw new TypeError("Invalid major version");if(this.minor>J3||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>J3||this.patch<0)throw new TypeError("Invalid patch version");if(!Z[4])this.prerelease=[];else this.prerelease=Z[4].split(".").map((J)=>{if(/^[0-9]+$/.test(J)){let G=+J;if(G>=0&&G=0)if(typeof this.prerelease[G]==="number")this.prerelease[G]++,G=-2;if(G===-1){if(X===this.prerelease.join(".")&&Z===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(J)}}if(X){let G=[X,J];if(Z===!1)G=[X];if($7(this.prerelease[0],X)===0){if(isNaN(this.prerelease[1]))this.prerelease=G}else this.prerelease=G}break}default:throw new Error(`invalid increment argument: ${Q}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}EI.exports=u9});var IZ=r((hL1,SI)=>{var jI=$8(),Dt=(Q,X,Z=!1)=>{if(Q instanceof jI)return Q;try{return new jI(Q,X)}catch(J){if(!Z)return null;throw J}};SI.exports=Dt});var yI=r((fL1,kI)=>{var Lt=IZ(),Ct=(Q,X)=>{let Z=Lt(Q,X);return Z?Z.version:null};kI.exports=Ct});var vI=r((bL1,xI)=>{var Nt=IZ(),Tt=(Q,X)=>{let Z=Nt(Q.trim().replace(/^[=v]+/,""),X);return Z?Z.version:null};xI.exports=Tt});var fI=r((mL1,hI)=>{var gI=$8(),Mt=(Q,X,Z,J,G)=>{if(typeof Z==="string")G=J,J=Z,Z=void 0;try{return new gI(Q instanceof gI?Q.version:Q,Z).inc(X,J,G).version}catch(Y){return null}};hI.exports=Mt});var _I=r((_L1,mI)=>{var bI=IZ(),It=(Q,X)=>{let Z=bI(Q,null,!0),J=bI(X,null,!0),G=Z.compare(J);if(G===0)return null;let Y=G>0,H=Y?Z:J,K=Y?J:Z,z=!!H.prerelease.length;if(!!K.prerelease.length&&!z){if(!K.patch&&!K.minor)return"major";if(H.patch)return"patch";if(H.minor)return"minor";return"major"}let $=z?"pre":"";if(Z.major!==J.major)return $+"major";if(Z.minor!==J.minor)return $+"minor";if(Z.patch!==J.patch)return $+"patch";return"prerelease"};mI.exports=It});var uI=r((dL1,dI)=>{var Rt=$8(),At=(Q,X)=>new Rt(Q,X).major;dI.exports=At});var lI=r((uL1,pI)=>{var Ot=$8(),wt=(Q,X)=>new Ot(Q,X).minor;pI.exports=wt});var iI=r((pL1,cI)=>{var Et=$8(),jt=(Q,X)=>new Et(Q,X).patch;cI.exports=jt});var oI=r((lL1,nI)=>{var St=IZ(),kt=(Q,X)=>{let Z=St(Q,X);return Z&&Z.prerelease.length?Z.prerelease:null};nI.exports=kt});var L9=r((cL1,sI)=>{var aI=$8(),yt=(Q,X,Z)=>new aI(Q,Z).compare(new aI(X,Z));sI.exports=yt});var rI=r((iL1,tI)=>{var xt=L9(),vt=(Q,X,Z)=>xt(X,Q,Z);tI.exports=vt});var QR=r((nL1,eI)=>{var gt=L9(),ht=(Q,X)=>gt(Q,X,!0);eI.exports=ht});var G3=r((oL1,XR)=>{var ZR=$8(),ft=(Q,X,Z)=>{let J=new ZR(Q,Z),G=new ZR(X,Z);return J.compare(G)||J.compareBuild(G)};XR.exports=ft});var GR=r((aL1,JR)=>{var bt=G3(),mt=(Q,X)=>Q.sort((Z,J)=>bt(Z,J,X));JR.exports=mt});var WR=r((sL1,YR)=>{var _t=G3(),dt=(Q,X)=>Q.sort((Z,J)=>_t(J,Z,X));YR.exports=dt});var bX=r((tL1,qR)=>{var ut=L9(),pt=(Q,X,Z)=>ut(Q,X,Z)>0;qR.exports=pt});var Y3=r((rL1,HR)=>{var lt=L9(),ct=(Q,X,Z)=>lt(Q,X,Z)<0;HR.exports=ct});var u$=r((eL1,zR)=>{var it=L9(),nt=(Q,X,Z)=>it(Q,X,Z)===0;zR.exports=nt});var p$=r((QC1,KR)=>{var ot=L9(),at=(Q,X,Z)=>ot(Q,X,Z)!==0;KR.exports=at});var W3=r((ZC1,$R)=>{var st=L9(),tt=(Q,X,Z)=>st(Q,X,Z)>=0;$R.exports=tt});var q3=r((XC1,BR)=>{var rt=L9(),et=(Q,X,Z)=>rt(Q,X,Z)<=0;BR.exports=et});var l$=r((JC1,UR)=>{var Qr=u$(),Zr=p$(),Xr=bX(),Jr=W3(),Gr=Y3(),Yr=q3(),Wr=(Q,X,Z,J)=>{switch(X){case"===":if(typeof Q==="object")Q=Q.version;if(typeof Z==="object")Z=Z.version;return Q===Z;case"!==":if(typeof Q==="object")Q=Q.version;if(typeof Z==="object")Z=Z.version;return Q!==Z;case"":case"=":case"==":return Qr(Q,Z,J);case"!=":return Zr(Q,Z,J);case">":return Xr(Q,Z,J);case">=":return Jr(Q,Z,J);case"<":return Gr(Q,Z,J);case"<=":return Yr(Q,Z,J);default:throw new TypeError(`Invalid operator: ${X}`)}};UR.exports=Wr});var PR=r((GC1,VR)=>{var qr=$8(),Hr=IZ(),{safeRe:H3,t:z3}=K7(),zr=(Q,X)=>{if(Q instanceof qr)return Q;if(typeof Q==="number")Q=String(Q);if(typeof Q!=="string")return null;X=X||{};let Z=null;if(!X.rtl)Z=Q.match(X.includePrerelease?H3[z3.COERCEFULL]:H3[z3.COERCE]);else{let z=X.includePrerelease?H3[z3.COERCERTLFULL]:H3[z3.COERCERTL],W;while((W=z.exec(Q))&&(!Z||Z.index+Z[0].length!==Q.length)){if(!Z||W.index+W[0].length!==Z.index+Z[0].length)Z=W;z.lastIndex=W.index+W[1].length+W[2].length}z.lastIndex=-1}if(Z===null)return null;let J=Z[2],G=Z[3]||"0",Y=Z[4]||"0",H=X.includePrerelease&&Z[5]?`-${Z[5]}`:"",K=X.includePrerelease&&Z[6]?`+${Z[6]}`:"";return Hr(`${J}.${G}.${Y}${H}${K}`,X)};VR.exports=zr});var LR=r((YC1,DR)=>{class FR{constructor(){this.max=1000,this.map=new Map}get(Q){let X=this.map.get(Q);if(X===void 0)return;else return this.map.delete(Q),this.map.set(Q,X),X}delete(Q){return this.map.delete(Q)}set(Q,X){if(!this.delete(Q)&&X!==void 0){if(this.map.size>=this.max){let J=this.map.keys().next().value;this.delete(J)}this.map.set(Q,X)}return this}}DR.exports=FR});var C9=r((WC1,MR)=>{var Kr=/\s+/g;class mX{constructor(Q,X){if(X=Br(X),Q instanceof mX)if(Q.loose===!!X.loose&&Q.includePrerelease===!!X.includePrerelease)return Q;else return new mX(Q.raw,X);if(Q instanceof c$)return this.raw=Q.value,this.set=[[Q]],this.formatted=void 0,this;if(this.options=X,this.loose=!!X.loose,this.includePrerelease=!!X.includePrerelease,this.raw=Q.trim().replace(Kr," "),this.set=this.raw.split("||").map((Z)=>this.parseRange(Z.trim())).filter((Z)=>Z.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let Z=this.set[0];if(this.set=this.set.filter((J)=>!NR(J[0])),this.set.length===0)this.set=[Z];else if(this.set.length>1){for(let J of this.set)if(J.length===1&&Cr(J[0])){this.set=[J];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let Q=0;Q0)this.formatted+="||";let X=this.set[Q];for(let Z=0;Z0)this.formatted+=" ";this.formatted+=X[Z].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(Q){let Z=((this.options.includePrerelease&&Dr)|(this.options.loose&&Lr))+":"+Q,J=CR.get(Z);if(J)return J;let G=this.options.loose,Y=G?m8[C8.HYPHENRANGELOOSE]:m8[C8.HYPHENRANGE];Q=Q.replace(Y,jr(this.options.includePrerelease)),C6("hyphen replace",Q),Q=Q.replace(m8[C8.COMPARATORTRIM],Vr),C6("comparator trim",Q),Q=Q.replace(m8[C8.TILDETRIM],Pr),C6("tilde trim",Q),Q=Q.replace(m8[C8.CARETTRIM],Fr),C6("caret trim",Q);let H=Q.split(" ").map(($)=>Nr($,this.options)).join(" ").split(/\s+/).map(($)=>Er($,this.options));if(G)H=H.filter(($)=>{return C6("loose invalid filter",$,this.options),!!$.match(m8[C8.COMPARATORLOOSE])});C6("range list",H);let K=new Map,z=H.map(($)=>new c$($,this.options));for(let $ of z){if(NR($))return[$];K.set($.value,$)}if(K.size>1&&K.has(""))K.delete("");let W=[...K.values()];return CR.set(Z,W),W}intersects(Q,X){if(!(Q instanceof mX))throw new TypeError("a Range is required");return this.set.some((Z)=>{return TR(Z,X)&&Q.set.some((J)=>{return TR(J,X)&&Z.every((G)=>{return J.every((Y)=>{return G.intersects(Y,X)})})})})}test(Q){if(!Q)return!1;if(typeof Q==="string")try{Q=new Ur(Q,this.options)}catch(X){return!1}for(let X=0;XQ.value==="<0.0.0-0",Cr=(Q)=>Q.value==="",TR=(Q,X)=>{let Z=!0,J=Q.slice(),G=J.pop();while(Z&&J.length)Z=J.every((Y)=>{return G.intersects(Y,X)}),G=J.pop();return Z},Nr=(Q,X)=>{return C6("comp",Q,X),Q=Ir(Q,X),C6("caret",Q),Q=Tr(Q,X),C6("tildes",Q),Q=Ar(Q,X),C6("xrange",Q),Q=wr(Q,X),C6("stars",Q),Q},N8=(Q)=>!Q||Q.toLowerCase()==="x"||Q==="*",Tr=(Q,X)=>{return Q.trim().split(/\s+/).map((Z)=>Mr(Z,X)).join(" ")},Mr=(Q,X)=>{let Z=X.loose?m8[C8.TILDELOOSE]:m8[C8.TILDE];return Q.replace(Z,(J,G,Y,H,K)=>{C6("tilde",Q,J,G,Y,H,K);let z;if(N8(G))z="";else if(N8(Y))z=`>=${G}.0.0 <${+G+1}.0.0-0`;else if(N8(H))z=`>=${G}.${Y}.0 <${G}.${+Y+1}.0-0`;else if(K)C6("replaceTilde pr",K),z=`>=${G}.${Y}.${H}-${K} <${G}.${+Y+1}.0-0`;else z=`>=${G}.${Y}.${H} <${G}.${+Y+1}.0-0`;return C6("tilde return",z),z})},Ir=(Q,X)=>{return Q.trim().split(/\s+/).map((Z)=>Rr(Z,X)).join(" ")},Rr=(Q,X)=>{C6("caret",Q,X);let Z=X.loose?m8[C8.CARETLOOSE]:m8[C8.CARET],J=X.includePrerelease?"-0":"";return Q.replace(Z,(G,Y,H,K,z)=>{C6("caret",Q,G,Y,H,K,z);let W;if(N8(Y))W="";else if(N8(H))W=`>=${Y}.0.0${J} <${+Y+1}.0.0-0`;else if(N8(K))if(Y==="0")W=`>=${Y}.${H}.0${J} <${Y}.${+H+1}.0-0`;else W=`>=${Y}.${H}.0${J} <${+Y+1}.0.0-0`;else if(z)if(C6("replaceCaret pr",z),Y==="0")if(H==="0")W=`>=${Y}.${H}.${K}-${z} <${Y}.${H}.${+K+1}-0`;else W=`>=${Y}.${H}.${K}-${z} <${Y}.${+H+1}.0-0`;else W=`>=${Y}.${H}.${K}-${z} <${+Y+1}.0.0-0`;else if(C6("no pr"),Y==="0")if(H==="0")W=`>=${Y}.${H}.${K}${J} <${Y}.${H}.${+K+1}-0`;else W=`>=${Y}.${H}.${K}${J} <${Y}.${+H+1}.0-0`;else W=`>=${Y}.${H}.${K} <${+Y+1}.0.0-0`;return C6("caret return",W),W})},Ar=(Q,X)=>{return C6("replaceXRanges",Q,X),Q.split(/\s+/).map((Z)=>Or(Z,X)).join(" ")},Or=(Q,X)=>{Q=Q.trim();let Z=X.loose?m8[C8.XRANGELOOSE]:m8[C8.XRANGE];return Q.replace(Z,(J,G,Y,H,K,z)=>{C6("xRange",Q,J,G,Y,H,K,z);let W=N8(Y),$=W||N8(H),q=$||N8(K),B=q;if(G==="="&&B)G="";if(z=X.includePrerelease?"-0":"",W)if(G===">"||G==="<")J="<0.0.0-0";else J="*";else if(G&&B){if($)H=0;if(K=0,G===">")if(G=">=",$)Y=+Y+1,H=0,K=0;else H=+H+1,K=0;else if(G==="<=")if(G="<",$)Y=+Y+1;else H=+H+1;if(G==="<")z="-0";J=`${G+Y}.${H}.${K}${z}`}else if($)J=`>=${Y}.0.0${z} <${+Y+1}.0.0-0`;else if(q)J=`>=${Y}.${H}.0${z} <${Y}.${+H+1}.0-0`;return C6("xRange return",J),J})},wr=(Q,X)=>{return C6("replaceStars",Q,X),Q.trim().replace(m8[C8.STAR],"")},Er=(Q,X)=>{return C6("replaceGTE0",Q,X),Q.trim().replace(m8[X.includePrerelease?C8.GTE0PRE:C8.GTE0],"")},jr=(Q)=>(X,Z,J,G,Y,H,K,z,W,$,q,B)=>{if(N8(J))Z="";else if(N8(G))Z=`>=${J}.0.0${Q?"-0":""}`;else if(N8(Y))Z=`>=${J}.${G}.0${Q?"-0":""}`;else if(H)Z=`>=${Z}`;else Z=`>=${Z}${Q?"-0":""}`;if(N8(W))z="";else if(N8($))z=`<${+W+1}.0.0-0`;else if(N8(q))z=`<${W}.${+$+1}.0-0`;else if(B)z=`<=${W}.${$}.${q}-${B}`;else if(Q)z=`<${W}.${$}.${+q+1}-0`;else z=`<=${z}`;return`${Z} ${z}`.trim()},Sr=(Q,X,Z)=>{for(let J=0;J0){let G=Q[J].semver;if(G.major===X.major&&G.minor===X.minor&&G.patch===X.patch)return!0}}return!1}return!0}});var _X=r((qC1,ER)=>{var dX=Symbol("SemVer ANY");class K3{static get ANY(){return dX}constructor(Q,X){if(X=IR(X),Q instanceof K3)if(Q.loose===!!X.loose)return Q;else Q=Q.value;if(Q=Q.trim().split(/\s+/).join(" "),n$("comparator",Q,X),this.options=X,this.loose=!!X.loose,this.parse(Q),this.semver===dX)this.value="";else this.value=this.operator+this.semver.version;n$("comp",this)}parse(Q){let X=this.options.loose?RR[AR.COMPARATORLOOSE]:RR[AR.COMPARATOR],Z=Q.match(X);if(!Z)throw new TypeError(`Invalid comparator: ${Q}`);if(this.operator=Z[1]!==void 0?Z[1]:"",this.operator==="=")this.operator="";if(!Z[2])this.semver=dX;else this.semver=new OR(Z[2],this.options.loose)}toString(){return this.value}test(Q){if(n$("Comparator.test",Q,this.options.loose),this.semver===dX||Q===dX)return!0;if(typeof Q==="string")try{Q=new OR(Q,this.options)}catch(X){return!1}return i$(Q,this.operator,this.semver,this.options)}intersects(Q,X){if(!(Q instanceof K3))throw new TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new wR(Q.value,X).test(this.value)}else if(Q.operator===""){if(Q.value==="")return!0;return new wR(this.value,X).test(Q.semver)}if(X=IR(X),X.includePrerelease&&(this.value==="<0.0.0-0"||Q.value==="<0.0.0-0"))return!1;if(!X.includePrerelease&&(this.value.startsWith("<0.0.0")||Q.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&Q.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&Q.operator.startsWith("<"))return!0;if(this.semver.version===Q.semver.version&&this.operator.includes("=")&&Q.operator.includes("="))return!0;if(i$(this.semver,"<",Q.semver,X)&&this.operator.startsWith(">")&&Q.operator.startsWith("<"))return!0;if(i$(this.semver,">",Q.semver,X)&&this.operator.startsWith("<")&&Q.operator.startsWith(">"))return!0;return!1}}ER.exports=K3;var IR=Z3(),{safeRe:RR,t:AR}=K7(),i$=l$(),n$=fX(),OR=$8(),wR=C9()});var uX=r((HC1,jR)=>{var kr=C9(),yr=(Q,X,Z)=>{try{X=new kr(X,Z)}catch(J){return!1}return X.test(Q)};jR.exports=yr});var kR=r((zC1,SR)=>{var xr=C9(),vr=(Q,X)=>new xr(Q,X).set.map((Z)=>Z.map((J)=>J.value).join(" ").trim().split(" "));SR.exports=vr});var xR=r((KC1,yR)=>{var gr=$8(),hr=C9(),fr=(Q,X,Z)=>{let J=null,G=null,Y=null;try{Y=new hr(X,Z)}catch(H){return null}return Q.forEach((H)=>{if(Y.test(H)){if(!J||G.compare(H)===-1)J=H,G=new gr(J,Z)}}),J};yR.exports=fr});var gR=r(($C1,vR)=>{var br=$8(),mr=C9(),_r=(Q,X,Z)=>{let J=null,G=null,Y=null;try{Y=new mr(X,Z)}catch(H){return null}return Q.forEach((H)=>{if(Y.test(H)){if(!J||G.compare(H)===1)J=H,G=new br(J,Z)}}),J};vR.exports=_r});var bR=r((BC1,fR)=>{var o$=$8(),dr=C9(),hR=bX(),ur=(Q,X)=>{Q=new dr(Q,X);let Z=new o$("0.0.0");if(Q.test(Z))return Z;if(Z=new o$("0.0.0-0"),Q.test(Z))return Z;Z=null;for(let J=0;J{let K=new o$(H.semver.version);switch(H.operator){case">":if(K.prerelease.length===0)K.patch++;else K.prerelease.push(0);K.raw=K.format();case"":case">=":if(!Y||hR(K,Y))Y=K;break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${H.operator}`)}}),Y&&(!Z||hR(Z,Y)))Z=Y}if(Z&&Q.test(Z))return Z;return null};fR.exports=ur});var _R=r((UC1,mR)=>{var pr=C9(),lr=(Q,X)=>{try{return new pr(Q,X).range||"*"}catch(Z){return null}};mR.exports=lr});var $3=r((VC1,lR)=>{var cr=$8(),pR=_X(),{ANY:ir}=pR,nr=C9(),or=uX(),dR=bX(),uR=Y3(),ar=q3(),sr=W3(),tr=(Q,X,Z,J)=>{Q=new cr(Q,J),X=new nr(X,J);let G,Y,H,K,z;switch(Z){case">":G=dR,Y=ar,H=uR,K=">",z=">=";break;case"<":G=uR,Y=sr,H=dR,K="<",z="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(or(Q,X,J))return!1;for(let W=0;W{if(D.semver===ir)D=new pR(">=0.0.0");if(q=q||D,B=B||D,G(D.semver,q.semver,J))q=D;else if(H(D.semver,B.semver,J))B=D}),q.operator===K||q.operator===z)return!1;if((!B.operator||B.operator===K)&&Y(Q,B.semver))return!1;else if(B.operator===z&&H(Q,B.semver))return!1}return!0};lR.exports=tr});var iR=r((PC1,cR)=>{var rr=$3(),er=(Q,X,Z)=>rr(Q,X,">",Z);cR.exports=er});var oR=r((FC1,nR)=>{var Qe=$3(),Ze=(Q,X,Z)=>Qe(Q,X,"<",Z);nR.exports=Ze});var tR=r((DC1,sR)=>{var aR=C9(),Xe=(Q,X,Z)=>{return Q=new aR(Q,Z),X=new aR(X,Z),Q.intersects(X,Z)};sR.exports=Xe});var eR=r((LC1,rR)=>{var Je=uX(),Ge=L9();rR.exports=(Q,X,Z)=>{let J=[],G=null,Y=null,H=Q.sort(($,q)=>Ge($,q,Z));for(let $ of H)if(Je($,X,Z)){if(Y=$,!G)G=$}else{if(Y)J.push([G,Y]);Y=null,G=null}if(G)J.push([G,null]);let K=[];for(let[$,q]of J)if($===q)K.push($);else if(!q&&$===H[0])K.push("*");else if(!q)K.push(`>=${$}`);else if($===H[0])K.push(`<=${q}`);else K.push(`${$} - ${q}`);let z=K.join(" || "),W=typeof X.raw==="string"?X.raw:String(X);return z.length{var QA=C9(),s$=_X(),{ANY:a$}=s$,pX=uX(),t$=L9(),Ye=(Q,X,Z={})=>{if(Q===X)return!0;Q=new QA(Q,Z),X=new QA(X,Z);let J=!1;Q:for(let G of Q.set){for(let Y of X.set){let H=qe(G,Y,Z);if(J=J||H!==null,H)continue Q}if(J)return!1}return!0},We=[new s$(">=0.0.0-0")],ZA=[new s$(">=0.0.0")],qe=(Q,X,Z)=>{if(Q===X)return!0;if(Q.length===1&&Q[0].semver===a$)if(X.length===1&&X[0].semver===a$)return!0;else if(Z.includePrerelease)Q=We;else Q=ZA;if(X.length===1&&X[0].semver===a$)if(Z.includePrerelease)return!0;else X=ZA;let J=new Set,G,Y;for(let D of Q)if(D.operator===">"||D.operator===">=")G=XA(G,D,Z);else if(D.operator==="<"||D.operator==="<=")Y=JA(Y,D,Z);else J.add(D.semver);if(J.size>1)return null;let H;if(G&&Y){if(H=t$(G.semver,Y.semver,Z),H>0)return null;else if(H===0&&(G.operator!==">="||Y.operator!=="<="))return null}for(let D of J){if(G&&!pX(D,String(G),Z))return null;if(Y&&!pX(D,String(Y),Z))return null;for(let F of X)if(!pX(D,String(F),Z))return!1;return!0}let K,z,W,$,q=Y&&!Z.includePrerelease&&Y.semver.prerelease.length?Y.semver:!1,B=G&&!Z.includePrerelease&&G.semver.prerelease.length?G.semver:!1;if(q&&q.prerelease.length===1&&Y.operator==="<"&&q.prerelease[0]===0)q=!1;for(let D of X){if($=$||D.operator===">"||D.operator===">=",W=W||D.operator==="<"||D.operator==="<=",G){if(B){if(D.semver.prerelease&&D.semver.prerelease.length&&D.semver.major===B.major&&D.semver.minor===B.minor&&D.semver.patch===B.patch)B=!1}if(D.operator===">"||D.operator===">="){if(K=XA(G,D,Z),K===D&&K!==G)return!1}else if(G.operator===">="&&!pX(G.semver,String(D),Z))return!1}if(Y){if(q){if(D.semver.prerelease&&D.semver.prerelease.length&&D.semver.major===q.major&&D.semver.minor===q.minor&&D.semver.patch===q.patch)q=!1}if(D.operator==="<"||D.operator==="<="){if(z=JA(Y,D,Z),z===D&&z!==Y)return!1}else if(Y.operator==="<="&&!pX(Y.semver,String(D),Z))return!1}if(!D.operator&&(Y||G)&&H!==0)return!1}if(G&&W&&!Y&&H!==0)return!1;if(Y&&$&&!G&&H!==0)return!1;if(B||q)return!1;return!0},XA=(Q,X,Z)=>{if(!Q)return X;let J=t$(Q.semver,X.semver,Z);return J>0?Q:J<0?X:X.operator===">"&&Q.operator===">="?X:Q},JA=(Q,X,Z)=>{if(!Q)return X;let J=t$(Q.semver,X.semver,Z);return J<0?Q:J>0?X:X.operator==="<"&&Q.operator==="<="?X:Q};GA.exports=Ye});var zA=r((NC1,HA)=>{var r$=K7(),WA=hX(),He=$8(),qA=d$(),ze=IZ(),Ke=yI(),$e=vI(),Be=fI(),Ue=_I(),Ve=uI(),Pe=lI(),Fe=iI(),De=oI(),Le=L9(),Ce=rI(),Ne=QR(),Te=G3(),Me=GR(),Ie=WR(),Re=bX(),Ae=Y3(),Oe=u$(),we=p$(),Ee=W3(),je=q3(),Se=l$(),ke=PR(),ye=_X(),xe=C9(),ve=uX(),ge=kR(),he=xR(),fe=gR(),be=bR(),me=_R(),_e=$3(),de=iR(),ue=oR(),pe=tR(),le=eR(),ce=YA();HA.exports={parse:ze,valid:Ke,clean:$e,inc:Be,diff:Ue,major:Ve,minor:Pe,patch:Fe,prerelease:De,compare:Le,rcompare:Ce,compareLoose:Ne,compareBuild:Te,sort:Me,rsort:Ie,gt:Re,lt:Ae,eq:Oe,neq:we,gte:Ee,lte:je,cmp:Se,coerce:ke,Comparator:ye,Range:xe,satisfies:ve,toComparators:ge,maxSatisfying:he,minSatisfying:fe,minVersion:be,validRange:me,outside:_e,gtr:de,ltr:ue,intersects:pe,simplifyRange:le,subset:ce,SemVer:He,re:r$.re,src:r$.src,tokens:r$.t,SEMVER_SPEC_VERSION:WA.SEMVER_SPEC_VERSION,RELEASE_TYPES:WA.RELEASE_TYPES,compareIdentifiers:qA.compareIdentifiers,rcompareIdentifiers:qA.rcompareIdentifiers}});var $11={};LJ($11,{default:()=>WB});module.exports=Ww($11);var gZ=(Q)=>Array.isArray(Q)?Q:[Q],KU=(Q,X)=>{let Z=[[],[]];for(let J of Q)if(X(J))Z[0].push(J);else Z[1].push(J);return Z},CJ=Array,PQ=(Q,X)=>Q.includes(X);var h0=(Q,X,Z)=>{if(Q===void 0)return X===void 0?[]:Array.isArray(X)?X:[X];if(Z?.prepend)if(Array.isArray(X))Q.unshift(...X);else Q.unshift(X);else if(Array.isArray(X))Q.push(...X);else Q.push(X);return Q},bQ=(Q,X)=>{if(X===void 0||X===null)return Q??[];if(Q===void 0||Q===null)return gZ(X);return Q.concat(X)};var FQ=(Q,X,Z)=>{if(Q===void 0)return Array.isArray(X)?X:[X];let J=Z?.isEqual??((G,Y)=>G===Y);return gZ(X).forEach((G)=>{if(!Q.some((Y)=>J(Y,G)))Q.push(G)}),Q},NJ=(Q,X)=>Q.reduce((Z,J)=>{let G=J[X];return Z[G]=h0(Z[G],J),Z},{}),hZ=(Q,X,Z)=>Q.length===X.length&&Q.every(Z?.isEqual?(J,G)=>Z.isEqual(J,X[G]):(J,G)=>J===X[G]);var M8=(Q,X)=>P8(Q)===X,P8=(Q)=>{let X=typeof Q;return X==="object"?Q===null?"null":"object":X==="function"?"object":X},Y9={boolean:"boolean",null:"null",undefined:"undefined",bigint:"a bigint",number:"a number",object:"an object",string:"a string",symbol:"a symbol"},$U={...Y9,function:"a function"};var w0=(Q,X)=>{let Z=Array.isArray(Q),J=Object.entries(Q).flatMap((Y,H)=>{let K=Z?X(H,Y[1]):X(...Y,H);return Array.isArray(K[0])||K.length===0?K:[K]}),G=Object.fromEntries(J);return typeof J[0]?.[0]==="number"?Object.values(G):G};var _3=Object.entries;var a6=(Q,X)=>(Q in X);class d3{constructor(Q){Object.assign(this,Q)}}var BU=class{};class O7 extends BU{}var qw=(Q,X)=>{let Z={},J={},G;for(G in Q)if(G in X)Z[G]=Q[G];else J[G]=Q[G];return[Z,J]};var UU=(Q,X)=>qw(Q,X)[1],O9=(Q)=>Object.keys(Q).length===0,w7=(Q)=>[...Object.entries(Q),...Object.getOwnPropertySymbols(Q).map((X)=>[X,Q[X]])],VU=(Q,X)=>Object.defineProperties(Q,Object.getOwnPropertyDescriptors(X));var h4=Symbol("represents an uninitialized value");var u3={Array,Boolean,Date,Error,Function,Map,Number,Promise,RegExp,Set,String,WeakMap,WeakSet},p3=globalThis.File??Blob,l3={ArrayBuffer,Blob,File:p3,FormData,Headers,Request,Response,URL},Hw={Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array},f4={...u3,...l3,...Hw,String,Number,Boolean},E7=(Q)=>{let X=Object.getPrototypeOf(Q);while(X?.constructor&&(!a6(X.constructor.name,f4)||!(Q instanceof f4[X.constructor.name])))X=Object.getPrototypeOf(X);let Z=X?.constructor?.name;if(Z===void 0||Z==="Object")return;return Z},j7=(Q)=>typeof Q==="object"&&Q!==null?E7(Q)??"object":P8(Q);var G6=Array.isArray,zw={Array:"an array",Function:"a function",Date:"a Date",RegExp:"a RegExp",Error:"an Error",Map:"a Map",Set:"a Set",String:"a String object",Number:"a Number object",Boolean:"a Boolean object",Promise:"a Promise",WeakMap:"a WeakMap",WeakSet:"a WeakSet"},Kw={ArrayBuffer:"an ArrayBuffer instance",Blob:"a Blob instance",File:"a File instance",FormData:"a FormData instance",Headers:"a Headers instance",Request:"a Request instance",Response:"a Response instance",URL:"a URL instance"},$w={Int8Array:"an Int8Array",Uint8Array:"a Uint8Array",Uint8ClampedArray:"a Uint8ClampedArray",Int16Array:"an Int16Array",Uint16Array:"a Uint16Array",Int32Array:"an Int32Array",Uint32Array:"a Uint32Array",Float32Array:"a Float32Array",Float64Array:"a Float64Array",BigInt64Array:"a BigInt64Array",BigUint64Array:"a BigUint64Array"},PU={...zw,...Kw,...$w},S7=(Q)=>{let X=Object(Q).name??null;return X&&a6(X,f4)&&f4[X]===Q?X:null};var c3=(Q,X)=>{let Z=Q.prototype;while(Z!==null){if(Z===X.prototype)return!0;Z=Object.getPrototypeOf(Z)}return!1};var FU=(Q)=>DU(Q,new Map),DU=(Q,X)=>{if(typeof Q!=="object"||Q===null)return Q;if(X?.has(Q))return X.get(Q);let Z=S7(Q.constructor);if(Z==="Date")return new Date(Q.getTime());if(Z&&Z!=="Array")return Q;let J=Array.isArray(Q)?Q.slice():Object.create(Object.getPrototypeOf(Q)),G=Object.getOwnPropertyDescriptors(Q);if(X){X.set(Q,J);for(let Y in G)G[Y].value=DU(G[Y].value,X)}return Object.defineProperties(J,G),J};class LU extends Error{}var a0=(Q)=>b4(Q,LU),b4=(Q,X=Error)=>{throw new X(Q)};class TJ extends Error{name="ParseError"}var I1=(Q)=>b4(Q,TJ),fZ=(Q)=>` ${Q}`;var Bw=(Q)=>{let X=h4;return()=>X===h4?X=Q():X},mQ=(Q)=>typeof Q==="function"&&Q.length===0;var CU=class extends Function{constructor(...Q){let X=Q.slice(0,-1),Z=Q.at(-1);try{super(...X,Z)}catch(J){return a0(`Encountered an unexpected error while compiling your definition: Message: ${J} Source: (${Q.slice(0,-1)}) => { ${Q.at(-1)} }`)}}};class _Q{constructor(Q,...[X]){return Object.assign(Object.setPrototypeOf(Q.bind(X?.bind??this),this.constructor.prototype),X?.attach)}}var NU=Bw(()=>{try{return new Function("return false")()}catch{return!0}});var TU=fZ("arkInferred");var y11=fZ("args");class X8{constructor(){}}var MU=(Q)=>Q[0].toUpperCase()+Q.slice(1);var i3=(Q)=>new RegExp(Uw(Q),typeof Q==="string"?"":Q.flags);var Uw=(Q)=>{return`^(?:${typeof Q==="string"?Q:Q.source})$`};var DQ={negativeLookahead:(Q)=>`(?!${Q})`,nonCapturingGroup:(Q)=>`(?:${Q})`},k7="\\",dQ={" ":1,"\n":1,"\t":1};var Vw=/^-0\.?0*$/.source,RU=/[1-9]\d*/.source,Pw=/\.\d+/.source,Fw=/\.\d*[1-9]/.source,AU=(Q)=>i3(DQ.negativeLookahead(Vw)+DQ.nonCapturingGroup("-?"+DQ.nonCapturingGroup(DQ.nonCapturingGroup("0|"+RU)+DQ.nonCapturingGroup(Q.decimalPattern)+"?")+(Q.allowDecimalOnly?"":"|"+Q.decimalPattern)+"?")),IU=AU({decimalPattern:Fw,allowDecimalOnly:!1}),Dw=IU.test.bind(IU),OU=AU({decimalPattern:Pw,allowDecimalOnly:!0}),Lw=/^-?\d*\.?\d*$/,Cw=(Q)=>Q.length!==0&&Lw.test(Q),y7=i3(DQ.negativeLookahead("^-0$")+"-?"+DQ.nonCapturingGroup(DQ.nonCapturingGroup("0|"+RU))),Nw=y7.test.bind(y7),n3=/^-?\d+$/,Tw=n3.test.bind(n3),wU={number:"a number",bigint:"a bigint",integer:"an integer"},EU=(Q,X)=>`'${Q}' was parsed as ${wU[X]} but could not be narrowed to a literal value. Avoid unnecessary leading or trailing zeros and other abnormal notation`,Mw=(Q,X)=>X==="number"?Dw(Q):Nw(Q),Iw=(Q,X)=>X==="number"?Number(Q):Number.parseInt(Q),Rw=(Q,X)=>X==="number"?Cw(Q):Tw(Q),jU=(Q,X)=>o3(Q,"number",X),SU=(Q,X)=>o3(Q,"number",{...X,strict:!0}),kU=(Q,X)=>o3(Q,"integer",X),o3=(Q,X,Z)=>{let J=Iw(Q,X);if(!Number.isNaN(J)){if(Rw(Q,X)){if(Z?.strict)return Mw(Q,X)?J:I1(EU(Q,X));return J}}return Z?.errorOnFail?I1(Z?.errorOnFail===!0?`Failed to parse ${wU[X]} from '${Q}'`:Z?.errorOnFail):void 0},yU=(Q)=>{if(Q[Q.length-1]!=="n")return;let X=Q.slice(0,-1),Z;try{Z=BigInt(X)}catch{return}if(y7.test(X))return Z;if(n3.test(X))return I1(EU(Q,"bigint"))};var Aw="0.30.0",Ow={version:Aw,filename:"mcp-tools-for-obsidian.ts",FileConstructor:p3},m4=Ow,xU=new WeakMap,a3=Object.create(null),x7=(Q)=>{let X=xU.get(Q);if(X)return X;let Z=ww(Q);if(a3[Z])Z=`${Z}${a3[Z]++}`;else a3[Z]=1;return m4[Z]=Q,xU.set(Q,Z),Z},bZ=(Q)=>/^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(Q),ww=(Q)=>{switch(typeof Q){case"object":{if(Q===null)break;let X=E7(Q)??"object";return X[0].toLowerCase()+X.slice(1)}case"function":return bZ(Q.name)?Q.name:"fn";case"symbol":return Q.description&&bZ(Q.description)?Q.description:"symbol"}return a0(`Unexpected attempt to register serializable value of type ${P8(Q)}`)};var MJ=(Q)=>typeof Q==="string"?JSON.stringify(Q):typeof Q==="bigint"?`${Q}n`:`${Q}`;var vU=(Q,X={})=>v7(Q,{onUndefined:"$ark.undefined",onBigInt:(Z)=>`$ark.bigint-${Z}`,...X},[]);var O0=(Q,X)=>{switch(P8(Q)){case"object":let Z=Q,J=Z.constructor.name;return J==="Object"||J==="Array"?JSON.stringify(v7(Z,IJ,[]),null,X):Z instanceof Date?_4(Z):typeof Z.expression==="string"?Z.expression:J;case"symbol":return IJ.onSymbol(Q);default:return MJ(Q)}},IJ={onCycle:()=>"(cycle)",onSymbol:(Q)=>`Symbol(${x7(Q)})`,onFunction:(Q)=>`Function(${x7(Q)})`},v7=(Q,X,Z)=>{switch(P8(Q)){case"object":{let J=Q;if("toJSON"in J&&typeof J.toJSON==="function")return J.toJSON();if(typeof J==="function")return IJ.onFunction(J);if(Z.includes(J))return"(cycle)";let G=[...Z,J];if(Array.isArray(J))return J.map((H)=>v7(H,X,G));if(J instanceof Date)return J.toDateString();let Y={};for(let H in J)Y[H]=v7(J[H],X,G);for(let H of Object.getOwnPropertySymbols(J))Y[X.onSymbol?.(H)??H.toString()]=v7(J[H],X,G);return Y}case"symbol":return IJ.onSymbol(Q);case"bigint":return X.onBigInt?.(Q)??`${Q}n`;case"undefined":return X.onUndefined??"undefined";default:return Q}},_4=(Q)=>{let X=Q.getFullYear(),Z=Q.getMonth(),J=Q.getDate(),G=Q.getHours(),Y=Q.getMinutes(),H=Q.getSeconds(),K=Q.getMilliseconds();if(Z===0&&J===1&&G===0&&Y===0&&H===0&&K===0)return`${X}`;let z=`${Ew[Z]} ${J}, ${X}`;if(G===0&&Y===0&&H===0&&K===0)return z;let W=Q.toLocaleTimeString(),$=W.endsWith(" AM")||W.endsWith(" PM")?W.slice(-3):"";if($)W=W.slice(0,-$.length);if(K)W+=`.${Sw(K,3)}`;else if(jw.test(W))W=W.slice(0,-3);return`${W+$}, ${z}`},Ew=["January","February","March","April","May","June","July","August","September","October","November","December"],jw=/:\d\d:00$/,Sw=(Q,X)=>String(Q).padStart(X,"0");var gU=(Q,X,...[Z])=>{let J=Z?.stringifySymbol??O0,G=Q;switch(typeof X){case"string":G=bZ(X)?Q===""?X:`${Q}.${X}`:`${Q}[${JSON.stringify(X)}]`;break;case"number":G=`${Q}[${X}]`;break;case"symbol":G=`${Q}[${J(X)}]`;break;default:if(Z?.stringifyNonKey)G=`${Q}[${Z.stringifyNonKey(X)}]`;else I1(`${O0(X)} must be a PropertyKey or stringifyNonKey must be passed to options`)}return G},d4=(Q,...X)=>Q.reduce((Z,J)=>gU(Z,J,...X),"");class u4 extends CJ{cache={};constructor(...Q){super();this.push(...Q)}stringify(){if(this.cache.stringify)return this.cache.stringify;return this.cache.stringify=d4(this)}stringifyAncestors(){if(this.cache.stringifyAncestors)return this.cache.stringifyAncestors;let Q="",X=[Q];return this.forEach((Z)=>{Q=gU(Q,Z),X.push(Q)}),this.cache.stringifyAncestors=X}}class s3{chars;i;def;constructor(Q){this.def=Q,this.chars=[...Q],this.i=0}shift(){return this.chars[this.i++]??""}get lookahead(){return this.chars[this.i]??""}get nextLookahead(){return this.chars[this.i+1]??""}get length(){return this.chars.length}shiftUntil(Q){let X="";while(this.lookahead){if(Q(this,X))if(X[X.length-1]===k7)X=X.slice(0,-1);else break;X+=this.shift()}return X}shiftUntilLookahead(Q){return typeof Q==="string"?this.shiftUntil((X)=>X.lookahead===Q):this.shiftUntil((X)=>(X.lookahead in Q))}shiftUntilNonWhitespace(){return this.shiftUntil(()=>!(this.lookahead in dQ))}jumpToIndex(Q){this.i=Q<0?this.length+Q:Q}jumpForward(Q){this.i+=Q}get location(){return this.i}get unscanned(){return this.chars.slice(this.i,this.length).join("")}get scanned(){return this.chars.slice(0,this.i).join("")}sliceChars(Q,X){return this.chars.slice(Q,X).join("")}lookaheadIs(Q){return this.lookahead===Q}lookaheadIsIn(Q){return this.lookahead in Q}}var Y01=Symbol("implementedTraits");var t3="$ark",r3=2;while(t3 in globalThis)t3=`$ark${r3++}`;var hU=t3;globalThis[hU]=m4;var E1=m4;if(r3!==2){let Q=globalThis,X=[Q.$ark];for(let G=2;G1)console.warn(`File ${G} was initialized multiple times, likely due to being imported from both CJS and ESM contexts.`);if(J.length>1)console.warn("Registries were initialized at the following paths:"+J.map((G)=>`\t${G} (@ark/util version ${Z[G][0].version})`).join(` `))}var kw=(Q)=>`${hU}.${Q}`,g6=(Q)=>kw(x7(Q));class RJ extends O7{argNames;body="";constructor(...Q){super();this.argNames=Q;for(let X of Q){if(X in this)throw new Error(`Arg name '${X}' would overwrite an existing property on FunctionBody`);this[X]=X}}indentation=0;indent(){return this.indentation+=4,this}dedent(){return this.indentation-=4,this}prop(Q,X=!1){return e3(Q,X)}index(Q,X=!1){return fU(`${Q}`,X)}line(Q){return this.body+=`${" ".repeat(this.indentation)}${Q} `,this}const(Q,X){return this.line(`const ${Q} = ${X}`),this}let(Q,X){return this.line(`let ${Q} = ${X}`)}set(Q,X){return this.line(`${Q} = ${X}`)}if(Q,X){return this.block(`if (${Q})`,X)}elseIf(Q,X){return this.block(`else if (${Q})`,X)}else(Q){return this.block("else",Q)}for(Q,X,Z=0){return this.block(`for (let i = ${Z}; ${Q}; i++)`,X)}forIn(Q,X){return this.block(`for (const k in ${Q})`,X)}block(Q,X,Z=""){return this.line(`${Q} {`),this.indent(),X(this),this.dedent(),this.line(`}${Z}`)}return(Q=""){return this.line(`return ${Q}`)}write(Q="anonymous"){return`${Q}(${this.argNames.join(", ")}) { ${this.body}}`}compile(){return new CU(...this.argNames,this.body)}}var LQ=(Q)=>M8(Q,"object")||typeof Q==="symbol"?g6(Q):MJ(Q),e3=(Q,X=!1)=>{if(typeof Q==="string"&&bZ(Q))return`${X?"?":""}.${Q}`;return fU(yw(Q),X)},yw=(Q)=>typeof Q==="symbol"?g6(Q):JSON.stringify(Q),fU=(Q,X=!1)=>`${X?"?.":""}[${Q}]`;class AJ extends RJ{path=[];discriminants=[];traversalKind;constructor(Q){super("data","ctx");this.traversalKind=Q}invoke(Q,X){let Z=X?.arg??this.data,J=typeof Q==="string"?!0:this.requiresContextFor(Q),G=typeof Q==="string"?Q:Q.id;if(J)return`${this.referenceToId(G,X)}(${Z}, ${this.ctx})`;return`${this.referenceToId(G,X)}(${Z})`}referenceToId(Q,X){let Z=X?.kind??this.traversalKind,J=`this.${Q}${Z}`;return X?.bind?`${J}.bind(${X?.bind})`:J}requiresContextFor(Q){return this.traversalKind==="Apply"||Q.allowsRequiresContext}initializeErrorCount(){return this.const("errorCount","ctx.currentErrorCount")}returnIfFail(){return this.if("ctx.currentErrorCount > errorCount",()=>this.return())}returnIfFailFast(){return this.if("ctx.failFast && ctx.currentErrorCount > errorCount",()=>this.return())}traverseKey(Q,X,Z){let J=this.requiresContextFor(Z);if(J)this.line(`${this.ctx}.path.push(${Q})`);if(this.check(Z,{arg:X}),J)this.line(`${this.ctx}.path.pop()`);return this}check(Q,X){return this.traversalKind==="Allows"?this.if(`!${this.invoke(Q,X)}`,()=>this.return(!1)):this.line(this.invoke(Q,X))}}var OJ=(Q)=>w0(Q,(X,Z)=>[X,G6(Z)?[...Z]:Z]),I8=fZ("arkKind"),r1=(Q,X)=>Q?.[I8]===X,F6=(Q)=>r1(Q,"root")||r1(Q,"constraint");var bU=["unit","proto","domain"],mZ=["required","optional","index","sequence"],QH=["pattern","divisor","exactLength","max","min","maxLength","minLength","before","after"],wJ=[...QH,...mZ,"structure","predicate"],_Z=["alias","union","morph","unit","intersection","proto","domain"],xw=[..._Z,...wJ],EJ=w0(wJ,(Q,X)=>[X,1]),mU=w0([...mZ,"undeclared"],(Q,X)=>[X,1]),_U=w0(xw,(Q,X)=>[X,Q]),dZ=(Q)=>typeof Q==="string"&&(Q in _U);var uZ=(Q)=>_U[Q],jJ=(Q)=>_Z.slice(uZ(Q)+1),d01=[...jJ("union"),"alias"],u01=[...jJ("morph"),"alias"],CQ=(Q)=>{if(typeof Q==="string"||typeof Q==="boolean"||Q===null)return Q;if(typeof Q==="number"){if(Number.isNaN(Q))return"NaN";if(Q===Number.POSITIVE_INFINITY)return"Infinity";if(Q===Number.NEGATIVE_INFINITY)return"-Infinity";return Q}return LQ(Q)},uQ=(Q)=>{let X="{ ";for(let[Z,J]of Object.entries(Q))X+=`${Z}: ${LQ(J)}, `;return X+" }"},N0=(Q)=>{let X=Q;if(X.hasAssociatedError)X.defaults.expected??=(Z)=>("description"in Z)?Z.description:X.defaults.description(Z),X.defaults.actual??=(Z)=>O0(Z),X.defaults.problem??=(Z)=>`must be ${Z.expected}${Z.actual?` (was ${Z.actual})`:""}`,X.defaults.message??=(Z)=>{if(Z.path.length===0)return Z.problem;let J=`${Z.propString} ${Z.problem}`;if(J[0]==="[")return`value at ${J}`;return J};return X};E1.config??={};var vw=(Q,X)=>{let Z={...Q},J;for(J in X)Z[J]=dZ(J)?{...Q[J],...X[J]}:X[J];return Z},dU=(Q,X)=>{if(!X)return Q;return vw(Q,X)},uU=(Q)=>dU(dU(E1.defaultConfig,E1.config),Q);class p4 extends O7{[I8]="error";path;data;nodeConfig;input;constructor(Q,X){super();this.input=Q,VU(this,Q);let Z=X.data;if(Q.code==="union")Q.errors=Q.errors.flatMap((J)=>J.hasCode("union")?J.errors:J);this.nodeConfig=X.config[this.code],this.path=Q.relativePath?new u4(...X.path,...Q.relativePath):Q.path?new u4(...Q.path):new u4(...X.path),this.data="data"in Q?Q.data:Z}hasCode(Q){return this.code===Q}get propString(){return d4(this.path)}get expected(){return this.input.expected??this.nodeConfig.expected?.(this.input)}get actual(){return this.input.actual??this.nodeConfig.actual?.(this.data)}get problem(){return this.input.problem??this.nodeConfig.problem(this)}get message(){return this.input.message??this.nodeConfig.message(this)}toString(){return this.message}throw(){throw this}}class R8 extends CJ{ctx;constructor(Q){super();this.ctx=Q}byPath=Object.create(null);byAncestorPath=Object.create(null);count=0;mutable=this;add(Q){if(this.includes(Q))return;this._add(Q)}affectsPath(Q){if(this.length===0)return!1;return Q.stringifyAncestors().some((X)=>(X in this.byPath))||Q.stringify()in this.byAncestorPath}_add(Q){let X=this.byPath[Q.propString];if(X){let Z=new p4({code:"intersection",errors:X.hasCode("intersection")?[...X.errors,Q]:[X,Q]},this.ctx),J=this.indexOf(X);this.mutable[J===-1?this.length:J]=Z,this.byPath[Q.propString]=Z,this.addAncestorPaths(Q)}else this.byPath[Q.propString]=Q,this.addAncestorPaths(Q),this.mutable.push(Q);this.count++}addAncestorPaths(Q){Q.path.stringifyAncestors().forEach((X)=>{this.byAncestorPath[X]=h0(this.byAncestorPath[X],Q)})}merge(Q){Q.forEach((X)=>{if(this.includes(X))return;this._add(new p4({...X,path:[...this.ctx.path,...X.path]},this.ctx))})}get summary(){return this.toString()}get message(){return this.toString()}get issues(){return this}toString(){return this.join(` `)}throw(){throw new AggregateError(this,this.message)}}class SJ{path=[];queuedMorphs=[];errors=new R8(this);branches=[];seen={};root;config;constructor(Q,X){this.root=Q,this.config=X}get currentBranch(){return this.branches.at(-1)}queueMorphs(Q){let X={path:new u4(...this.path),morphs:Q};if(this.currentBranch)this.currentBranch.queuedMorphs.push(X);else this.queuedMorphs.push(X)}finalize(){if(!this.queuedMorphs.length)return this.hasError()?this.errors:this.root;if(typeof this.root==="object"&&this.root!==null&&this.config.clone)this.root=this.config.clone(this.root);return this.applyQueuedMorphs(),this.hasError()?this.errors:this.root}applyQueuedMorphs(){while(this.queuedMorphs.length){let Q=this.queuedMorphs;this.queuedMorphs=[];for(let{path:X,morphs:Z}of Q){if(this.errors.affectsPath(X))continue;this.applyMorphsAtPath(X,Z)}}}applyMorphsAtPath(Q,X){let Z=Q.at(-1),J;if(Z!==void 0){J=this.root;for(let G=0;G{if(!Z)return X();Z.path.push(Q);let J=X();return Z.path.pop(),J};class g7 extends _Q{attachments;$;constructor(Q,X){super((Z,J)=>{if(!this.includesMorph&&!this.allowsRequiresContext&&this.allows(Z))return Z;if(J)return this.traverseApply(Z,J),J.hasError()?J.errors:J.data;let G=new SJ(Z,this.$.resolvedConfig);return this.traverseApply(Z,G),G.finalize()},{attach:Q});this.attachments=Q,this.$=X}withMeta(Q){return this.$.node(this.kind,{...this.inner,meta:typeof Q==="function"?Q({...this.meta}):Q})}includesMorph=this.kind==="morph"||this.hasKind("optional")&&this.hasDefault()||this.hasKind("sequence")&&this.defaultablesLength!==0||this.hasKind("structure")&&this.undeclared==="delete"||this.children.some((Q)=>Q.includesMorph);hasContextualPredicate=this.hasKind("predicate")&&this.inner.predicate.length!==1||this.children.some((Q)=>Q.hasContextualPredicate);isCyclic=this.kind==="alias"||this.children.some((Q)=>Q.isCyclic);allowsRequiresContext=this.hasContextualPredicate||this.isCyclic;referencesById=this.children.reduce((Q,X)=>Object.assign(Q,X.referencesById),{[this.id]:this});cacheGetter(Q,X){return Object.defineProperty(this,Q,{value:X}),X}get description(){let Q=this.$?.resolvedConfig[this.kind].description??E1.config[this.kind]?.description??E1.defaultConfig[this.kind].description;return this.cacheGetter("description",this.meta?.description??Q(this))}get references(){return Object.values(this.referencesById)}get shallowReferences(){return this.cacheGetter("shallowReferences",this.hasKind("structure")?[this,...this.children]:this.children.reduce((Q,X)=>fw(Q,X.shallowReferences),[this]))}get shallowMorphs(){return this.cacheGetter("shallowMorphs",this.shallowReferences.filter((Q)=>Q.hasKind("morph")).sort((Q,X)=>Q.expressionpZ(Q,X.flatRefs),[]).sort((Q,X)=>Q.path.length>X.path.length?1:Q.path.lengthX.propString?1:Q.propString{if(this.allowsRequiresContext)return this.traverseAllows(Q,new SJ(Q,this.$.resolvedConfig));return this.traverseAllows(Q)};traverse(Q){return this(Q)}get in(){return this.cacheGetter("in",this.getIo("in"))}get out(){return this.cacheGetter("out",this.getIo("out"))}getIo(Q){if(!this.includesMorph)return this;let X={};for(let[Z,J]of this.innerEntries){let G=this.impl.keys[Z];if(G.reduceIo)G.reduceIo(Q,X,J);else if(G.child){let Y=J;X[Z]=G6(Y)?Y.map((H)=>H[Q]):Y[Q]}else X[Z]=J}return this.$.node(this.kind,X)}toJSON(){return this.json}toString(){return this.expression}equals(Q){let X=F6(Q)?Q:this.$.parseDefinition(Q);return this.innerHash===X.innerHash}ifEquals(Q){return this.equals(Q)?this:void 0}hasKind(Q){return this.kind===Q}assertHasKind(Q){if(this.kind!==Q)b4(`${this.kind} node was not of asserted kind ${Q}`);return this}hasKindIn(...Q){return Q.includes(this.kind)}assertHasKindIn(...Q){if(!PQ(Q,this.kind))b4(`${this.kind} node was not one of asserted kinds ${Q}`);return this}isBasis(){return PQ(bU,this.kind)}isConstraint(){return PQ(wJ,this.kind)}isStructural(){return PQ(mZ,this.kind)}isRefinement(){return PQ(QH,this.kind)}isRoot(){return PQ(_Z,this.kind)}isUnknown(){return this.hasKind("intersection")&&this.children.length===0}isNever(){return this.hasKind("union")&&this.children.length===0}hasUnit(Q){return this.hasKind("unit")&&this.allows(Q)}hasOpenIntersection(){return this.impl.intersectionIsOpen}get nestableExpression(){return this.expression}firstReference(Q){return this.references.find((X)=>X!==this&&Q(X))}firstReferenceOrThrow(Q){return this.firstReference(Q)??b4(`${this.id} had no references matching predicate ${Q}`)}firstReferenceOfKind(Q){return this.firstReference((X)=>X.hasKind(Q))}firstReferenceOfKindOrThrow(Q){return this.firstReference((X)=>X.kind===Q)??b4(`${this.id} had no ${Q} references`)}transform(Q,X){return this._transform(Q,{...X,seen:{},path:[],parseOptions:{prereduced:X?.prereduced??!1},undeclaredKeyHandling:void 0})}_transform(Q,X){let Z=X.bindScope??this.$;if(X.seen[this.id])return this.$.lazilyResolve(X.seen[this.id]);if(X.shouldTransform?.(this,X)===!1)return this;let J;if(X.seen[this.id]=()=>J,this.hasKind("structure")&&this.undeclared!==X.undeclaredKeyHandling)X={...X,undeclaredKeyHandling:this.undeclared};let G=w0(this.inner,(H,K)=>{if(!this.impl.keys[H].child)return[H,K];let z=K;if(!G6(z)){let $=z._transform(Q,X);return $?[H,$]:[]}if(z.length===0)return[H,K];let W=z.flatMap(($)=>{return $._transform(Q,X)??[]});return W.length?[H,W]:[]});delete X.seen[this.id];let Y=Q(this.kind,G,X);if(Y===null)return null;if(F6(Y))return J=Y;if(O9(Y)&&!O9(this.inner))return null;if((this.kind==="required"||this.kind==="optional"||this.kind==="index")&&!("value"in Y))return X.undeclaredKeyHandling?{...Y,value:E1.intrinsic.unknown}:null;if(this.kind==="morph")Y.in??=E1.intrinsic.unknown;return J=Z.node(this.kind,Y,X.parseOptions)}configureShallowDescendants(Q){return this.$.finalize(this.transform((X,Z)=>({...Z,meta:Q}),{shouldTransform:(X)=>X.kind!=="structure"}))}}var gw=(Q)=>d4(Q,{stringifyNonKey:(X)=>X.expression}),w9=(Q,X)=>({path:Q,node:X,propString:gw(Q)}),hw=(Q,X)=>Q.propString===X.propString&&Q.node.equals(X.node),pZ=(Q,X)=>FQ(Q,X,{isEqual:hw}),fw=(Q,X)=>FQ(Q,X,{isEqual:(Z,J)=>Z.equals(J)});class p1 extends Array{static init(Q,X,Z,J){return new p1({kind:Q,l:X,r:Z,path:J?.path??[],optional:J?.optional??!1})}add(Q,X,Z,J){return this.push({kind:Q,l:X,r:Z,path:J?.path??[],optional:J?.optional??!1}),this}describeReasons(){if(this.length===1){let{path:Q,l:X,r:Z}=this[0],J=d4(Q);return XH(`Intersection${J&&` at ${J}`} of ${pU(X,Z)}`)}return`The following intersections result in unsatisfiable types: • ${this.map(({path:Q,l:X,r:Z})=>`${Q}: ${pU(X,Z)}`).join(` • `)}`}throw(){return I1(this.describeReasons())}invert(){return this.map((Q)=>({...Q,l:Q.r,r:Q.l}))}withPrefixKey(Q,X){return this.map((Z)=>({...Z,path:[Q,...Z.path],optional:Z.optional||X==="optional"}))}toNeverIfDisjoint(){return E1.intrinsic.never}}var pU=(Q,X)=>`${ZH(Q)} and ${ZH(X)}`,ZH=(Q)=>F6(Q)?Q.expression:G6(Q)?Q.map(ZH).join(" | ")||"never":String(Q),XH=(Q)=>`${Q} results in an unsatisfiable type`;var lZ={},i8=(Q,X,Z)=>$6(Q,X,{$:Z,invert:!1,pipe:!1}),GH=(Q,X,Z)=>$6(Q,X,{$:Z,invert:!1,pipe:!0}),$6=(Q,X,Z)=>{let J=Z.pipe?"|>":"&",G=`${Q.hash}${J}${X.hash}`;if(lZ[G]!==void 0)return lZ[G];if(!Z.pipe){let K=`${X.hash}${J}${Q.hash}`;if(lZ[K]!==void 0){let z=lZ[K],W=z instanceof p1?z.invert():z;return lZ[G]=W,W}}let Y=!Z.pipe||!Q.includesMorph&&!X.includesMorph;if(Y&&Q.equals(X))return Q;let H=Y?JH(Q,X,Z):Q.hasKindIn(..._Z)?bw(Q,X,Z):JH(Q,X,Z);if(F6(H)){if(Q.equals(H))H=Q;else if(X.equals(H))H=X}return lZ[G]=H,H},JH=(Q,X,Z)=>{let J=Q.precedenceQ.includesMorph||X.includesMorph?Z.invert?lU(X,Q,Z):lU(Q,X,Z):JH(Q,X,Z),lU=(Q,X,Z)=>Q.distribute((J)=>mw(J,X,Z),(J)=>{let G=J.filter(F6);if(G.length===0)return p1.init("union",Q.branches,X.branches);if(G.lengthK.in.equals(G[z].in)))return Z.$.parseSchema(G);let Y;if(G.length===1){let K=G[0];if(!Y)return K;return Z.$.node("morph",{...K.inner,in:K.in.withMeta(Y)})}let H={branches:G};if(Y)H.meta=Y;return Z.$.parseSchema(H)}),mw=(Q,X,Z)=>{if(Q.hasKind("morph")){let G=[...Q.morphs];if(Q.lastMorphIfNode){let Y=$6(Q.lastMorphIfNode,X,Z);if(Y instanceof p1)return Y;G[G.length-1]=Y}else G.push(X);return Z.$.node("morph",{morphs:G,in:Q.inner.in})}if(X.hasKind("morph")){let G=$6(Q,X.in,Z);if(G instanceof p1)return G;return Z.$.node("morph",{morphs:[X],in:G})}return Z.$.node("morph",{morphs:[X],in:Q})};class W9 extends g7{constructor(Q,X){super(Q,X);Object.defineProperty(this,I8,{value:"constraint",enumerable:!1})}impliedSiblings;intersect(Q){return i8(this,Q,this.$)}}class NQ extends W9{traverseApply=(Q,X)=>{if(!this.traverseAllows(Q,X))X.error(this.errorContext)};compile(Q){if(Q.traversalKind==="Allows")Q.return(this.compiledCondition);else Q.if(this.compiledNegation,()=>Q.line(`${Q.ctx}.error(${this.compiledErrorContext})`))}get errorContext(){return{code:this.kind,description:this.description,...this.inner}}get compiledErrorContext(){return uQ(this.errorContext)}}var J8=(Q)=>(X,Z)=>{if(G6(X)){if(X.length===0)return;let G=X.map((Y)=>Z.$.node(Q,Y));if(Q==="predicate")return G;return G.sort((Y,H)=>Y.hash{let X=Q.r.shift();if(!X){let J=Q.l.length===0&&Q.kind==="structure"?E1.intrinsic.unknown.internal:Q.ctx.$.node(Q.kind,Object.assign(Q.baseInner,_w(Q.l)),{prereduced:!0});for(let G of Q.roots){if(J instanceof p1)return J;J=$6(G,J,Q.ctx)}return J}let Z=!1;for(let J=0;JFQ(Q.r,J));return cZ(Q)},iZ=(Q)=>{return Object.entries(Q).flatMap(([Z,J])=>(Z in EJ)?J:[]).sort((Z,J)=>Z.precedenceJ.precedence?1:Z.kind==="predicate"&&J.kind==="predicate"?0:Z.hash{let X={};for(let Z of Q)if(Z.hasOpenIntersection())X[Z.kind]=h0(X[Z.kind],Z);else{if(X[Z.kind])return a0(`Unexpected intersection of closed refinements of kind ${Z.kind}`);X[Z.kind]=Z}return X},cU=(...Q)=>I1(iU(...Q)),iU=(Q,X,Z)=>`${MU(Q)} operand must be ${X.description} (was ${Z.exclude(X).description})`;var nU=(Q,X,Z)=>new pQ(Q,X,Z,Z,null);class kJ extends _Q{}class pQ extends _Q{[I8]="generic";paramDefs;bodyDef;$;arg$;baseInstantiation;hkt;description;constructor(Q,X,Z,J,G){super((...Y)=>{let H=w0(this.names,(K,z)=>{let W=this.arg$.parse(Y[K]);if(!W.extends(this.constraints[K]))I1(dw(z,this.constraints[K].expression,W.expression));return[z,W]});if(this.defIsLazy()){let K=this.bodyDef(H);return this.$.parse(K)}return this.$.parse(X,{args:H})});this.paramDefs=Q,this.bodyDef=X,this.$=Z,this.arg$=J,this.hkt=G,this.description=G?new G().description??`a generic type for ${G.constructor.name}`:"a generic type",this.baseInstantiation=this(...this.constraints)}defIsLazy(){return this.bodyDef instanceof kJ}cacheGetter(Q,X){return Object.defineProperty(this,Q,{value:X}),X}get json(){return this.cacheGetter("json",{params:this.params.map((Q)=>Q[1].isUnknown()?Q[0]:[Q[0],Q[1].json]),body:vU(this.bodyDef)})}get params(){return this.cacheGetter("params",this.paramDefs.map((Q)=>typeof Q==="string"?[Q,E1.intrinsic.unknown]:[Q[0],this.$.parse(Q[1])]))}get names(){return this.cacheGetter("names",this.params.map((Q)=>Q[0]))}get constraints(){return this.cacheGetter("constraints",this.params.map((Q)=>Q[1]))}get internal(){return this}get referencesById(){return this.baseInstantiation.internal.referencesById}get references(){return this.baseInstantiation.internal.references}}var dw=(Q,X,Z)=>`${Q} must be assignable to ${X} (was ${Z})`;var N6=(Q)=>{let X=typeof Q==="string"?{description:Q}:Q,Z=`${X.description} is not convertible to JSON Schema`;if(X.reason)Z+=` because ${X.reason}`;return Z},oU=(Q)=>N6({description:`Morph ${Q}`,reason:"it represents a transformation, while JSON Schema only allows validation. Consider creating a Schema from one of its endpoints using `.in` or `.out`."}),aU=(Q)=>N6({description:Q,reason:"cyclic types are not yet convertible to JSON Schema. If this feature is important to you, please add your feedback at https://github.com/arktypeio/arktype/issues/1087"}),lQ=(Q,X)=>a0(`Unexpected JSON Schema input for ${Q}: ${O0(X)}`);var uw=N0({kind:"predicate",hasAssociatedError:!0,collapsibleKey:"predicate",keys:{predicate:{}},normalize:(Q)=>typeof Q==="function"?{predicate:Q}:Q,defaults:{description:(Q)=>`valid according to ${Q.predicate.name||"an anonymous predicate"}`},intersectionIsOpen:!0,intersections:{predicate:()=>null}});class sU extends W9{serializedPredicate=g6(this.predicate);compiledCondition=`${this.serializedPredicate}(data, ctx)`;compiledNegation=`!${this.compiledCondition}`;impliedBasis=null;expression=this.serializedPredicate;traverseAllows=this.predicate;errorContext={code:"predicate",description:this.description};compiledErrorContext=uQ(this.errorContext);traverseApply=(Q,X)=>{if(!this.predicate(Q,X)&&!X.hasError())X.error(this.errorContext)};compile(Q){if(Q.traversalKind==="Allows"){Q.return(this.compiledCondition);return}Q.if(`${this.compiledNegation} && !ctx.hasError()`,()=>Q.line(`ctx.error(${this.compiledErrorContext})`))}reduceJsonSchema(){return I1(N6({description:`Predicate ${this.expression}`}))}}var YH={implementation:uw,Node:sU};var pw=N0({kind:"divisor",collapsibleKey:"rule",keys:{rule:{}},normalize:(Q)=>typeof Q==="number"?{rule:Q}:Q,hasAssociatedError:!0,defaults:{description:(Q)=>Q.rule===1?"an integer":`a multiple of ${Q.rule}`},intersections:{divisor:(Q,X,Z)=>Z.$.node("divisor",{rule:Math.abs(Q.rule*X.rule/lw(Q.rule,X.rule))})}});class tU extends NQ{traverseAllows=(Q)=>Q%this.rule===0;compiledCondition=`data % ${this.rule} === 0`;compiledNegation=`data % ${this.rule} !== 0`;impliedBasis=E1.intrinsic.number.internal;expression=`% ${this.rule}`;reduceJsonSchema(Q){if(Q.type="integer",this.rule===1)return Q;return Q.multipleOf=this.rule,Q}}var WH={implementation:pw,Node:tU};var lw=(Q,X)=>{let Z,J=Q,G=X;while(G!==0)Z=G,G=J%G,J=Z;return J};class n8 extends NQ{boundOperandKind=ow[this.kind];compiledActual=this.boundOperandKind==="value"?"data":this.boundOperandKind==="length"?"data.length":"data.valueOf()";comparator=aw(this.kind,this.exclusive);numericLimit=this.rule.valueOf();expression=`${this.comparator} ${this.rule}`;compiledCondition=`${this.compiledActual} ${this.comparator} ${this.numericLimit}`;compiledNegation=`${this.compiledActual} ${cw[this.comparator]} ${this.numericLimit}`;stringLimit=this.boundOperandKind==="date"?sw(this.numericLimit):`${this.numericLimit}`;limitKind=this.comparator["0"]==="<"?"upper":"lower";isStricterThan(Q){return(this.limitKind==="upper"?this.numericLimitQ.numericLimit)||this.numericLimit===Q.numericLimit&&this.exclusive===!0&&!Q.exclusive}overlapsRange(Q){if(this.isStricterThan(Q))return!1;if(this.numericLimit===Q.numericLimit&&(this.exclusive||Q.exclusive))return!1;return!0}overlapIsUnit(Q){return this.numericLimit===Q.numericLimit&&!this.exclusive&&!Q.exclusive}}var cw={"<":">=","<=":">",">":"<=",">=":"<"},iw={min:"max",minLength:"maxLength",after:"before"},yJ={parse:(Q)=>Q||void 0},xJ=(Q)=>(X)=>{if(typeof X==="number")return{rule:X};let{exclusive:Z,...J}=X;return Z?{...J,rule:Q==="minLength"?J.rule+1:J.rule-1}:J},vJ=(Q)=>(X)=>{if(typeof X==="number"||typeof X==="string"||X instanceof Date)return{rule:X};let{exclusive:Z,...J}=X;if(!Z)return J;let G=typeof J.rule==="number"?J.rule:typeof J.rule==="string"?new Date(J.rule).valueOf():J.rule.valueOf();return Z?{...J,rule:Q==="after"?G+1:G-1}:J},gJ=(Q)=>typeof Q==="string"||typeof Q==="number"?new Date(Q):Q,nw=(Q,X)=>`${Q} bound must be a positive integer (was ${X})`,nZ=(Q)=>(X)=>{if(!Number.isInteger(X)||X<0)I1(nw(Q,X));return X},ow={min:"value",max:"value",minLength:"length",maxLength:"length",after:"date",before:"date"},aw=(Q,X)=>`${a6(Q,iw)?">":"<"}${X?"":"="}`,sw=(Q)=>typeof Q==="string"?Q:new Date(Q).toLocaleString(),rU=(Q)=>`Bounded expression ${Q} must be exactly one of number, string, Array, or Date`;var tw=N0({kind:"after",collapsibleKey:"rule",hasAssociatedError:!0,keys:{rule:{parse:gJ,serialize:(Q)=>Q.toISOString()}},normalize:vJ("after"),defaults:{description:(Q)=>`${Q.collapsibleLimitString} or later`,actual:_4},intersections:{after:(Q,X)=>Q.isStricterThan(X)?Q:X}});class eU extends n8{impliedBasis=E1.intrinsic.Date.internal;collapsibleLimitString=_4(this.rule);traverseAllows=(Q)=>Q>=this.rule;reduceJsonSchema(){return I1(N6("Date instance"))}}var qH={implementation:tw,Node:eU};var rw=N0({kind:"before",collapsibleKey:"rule",hasAssociatedError:!0,keys:{rule:{parse:gJ,serialize:(Q)=>Q.toISOString()}},normalize:vJ("before"),defaults:{description:(Q)=>`${Q.collapsibleLimitString} or earlier`,actual:_4},intersections:{before:(Q,X)=>Q.isStricterThan(X)?Q:X,after:(Q,X,Z)=>Q.overlapsRange(X)?Q.overlapIsUnit(X)?Z.$.node("unit",{unit:Q.rule}):null:p1.init("range",Q,X)}});class QV extends n8{collapsibleLimitString=_4(this.rule);traverseAllows=(Q)=>Q<=this.rule;impliedBasis=E1.intrinsic.Date.internal;reduceJsonSchema(){return I1(N6("Date instance"))}}var HH={implementation:rw,Node:QV};var ew=N0({kind:"exactLength",collapsibleKey:"rule",keys:{rule:{parse:nZ("exactLength")}},normalize:(Q)=>typeof Q==="number"?{rule:Q}:Q,hasAssociatedError:!0,defaults:{description:(Q)=>`exactly length ${Q.rule}`,actual:(Q)=>`${Q.length}`},intersections:{exactLength:(Q,X,Z)=>p1.init("unit",Z.$.node("unit",{unit:Q.rule}),Z.$.node("unit",{unit:X.rule}),{path:["length"]}),minLength:(Q,X)=>Q.rule>=X.rule?Q:p1.init("range",Q,X),maxLength:(Q,X)=>Q.rule<=X.rule?Q:p1.init("range",Q,X)}});class ZV extends NQ{traverseAllows=(Q)=>Q.length===this.rule;compiledCondition=`data.length === ${this.rule}`;compiledNegation=`data.length !== ${this.rule}`;impliedBasis=E1.intrinsic.lengthBoundable.internal;expression=`== ${this.rule}`;reduceJsonSchema(Q){switch(Q.type){case"string":return Q.minLength=this.rule,Q.maxLength=this.rule,Q;case"array":return Q.minItems=this.rule,Q.maxItems=this.rule,Q;default:return lQ("exactLength",Q)}}}var zH={implementation:ew,Node:ZV};var QE=N0({kind:"max",collapsibleKey:"rule",hasAssociatedError:!0,keys:{rule:{},exclusive:yJ},normalize:(Q)=>typeof Q==="number"?{rule:Q}:Q,defaults:{description:(Q)=>`${Q.exclusive?"less than":"at most"} ${Q.rule}`},intersections:{max:(Q,X)=>Q.isStricterThan(X)?Q:X,min:(Q,X,Z)=>Q.overlapsRange(X)?Q.overlapIsUnit(X)?Z.$.node("unit",{unit:Q.rule}):null:p1.init("range",Q,X)}});class XV extends n8{impliedBasis=E1.intrinsic.number.internal;traverseAllows=this.exclusive?(Q)=>QQ<=this.rule;reduceJsonSchema(Q){if(this.exclusive)Q.exclusiveMaximum=this.rule;else Q.maximum=this.rule;return Q}}var KH={implementation:QE,Node:XV};var ZE=N0({kind:"maxLength",collapsibleKey:"rule",hasAssociatedError:!0,keys:{rule:{parse:nZ("maxLength")}},reduce:(Q,X)=>Q.rule===0?X.node("exactLength",Q):void 0,normalize:xJ("maxLength"),defaults:{description:(Q)=>`at most length ${Q.rule}`,actual:(Q)=>`${Q.length}`},intersections:{maxLength:(Q,X)=>Q.isStricterThan(X)?Q:X,minLength:(Q,X,Z)=>Q.overlapsRange(X)?Q.overlapIsUnit(X)?Z.$.node("exactLength",{rule:Q.rule}):null:p1.init("range",Q,X)}});class JV extends n8{impliedBasis=E1.intrinsic.lengthBoundable.internal;traverseAllows=(Q)=>Q.length<=this.rule;reduceJsonSchema(Q){switch(Q.type){case"string":return Q.maxLength=this.rule,Q;case"array":return Q.maxItems=this.rule,Q;default:return lQ("maxLength",Q)}}}var $H={implementation:ZE,Node:JV};var XE=N0({kind:"min",collapsibleKey:"rule",hasAssociatedError:!0,keys:{rule:{},exclusive:yJ},normalize:(Q)=>typeof Q==="number"?{rule:Q}:Q,defaults:{description:(Q)=>`${Q.exclusive?"more than":"at least"} ${Q.rule}`},intersections:{min:(Q,X)=>Q.isStricterThan(X)?Q:X}});class GV extends n8{impliedBasis=E1.intrinsic.number.internal;traverseAllows=this.exclusive?(Q)=>Q>this.rule:(Q)=>Q>=this.rule;reduceJsonSchema(Q){if(this.exclusive)Q.exclusiveMinimum=this.rule;else Q.minimum=this.rule;return Q}}var BH={implementation:XE,Node:GV};var JE=N0({kind:"minLength",collapsibleKey:"rule",hasAssociatedError:!0,keys:{rule:{parse:nZ("minLength")}},reduce:(Q)=>Q.rule===0?E1.intrinsic.unknown:void 0,normalize:xJ("minLength"),defaults:{description:(Q)=>Q.rule===1?"non-empty":`at least length ${Q.rule}`,actual:(Q)=>Q.length===0?"":`${Q.length}`},intersections:{minLength:(Q,X)=>Q.isStricterThan(X)?Q:X}});class YV extends n8{impliedBasis=E1.intrinsic.lengthBoundable.internal;traverseAllows=(Q)=>Q.length>=this.rule;reduceJsonSchema(Q){switch(Q.type){case"string":return Q.minLength=this.rule,Q;case"array":return Q.minItems=this.rule,Q;default:return lQ("minLength",Q)}}}var UH={implementation:JE,Node:YV};var WV={min:BH.implementation,max:KH.implementation,minLength:UH.implementation,maxLength:$H.implementation,exactLength:zH.implementation,after:qH.implementation,before:HH.implementation},qV={min:BH.Node,max:KH.Node,minLength:UH.Node,maxLength:$H.Node,exactLength:zH.Node,after:qH.Node,before:HH.Node};var GE=N0({kind:"pattern",collapsibleKey:"rule",keys:{rule:{},flags:{}},normalize:(Q)=>typeof Q==="string"?{rule:Q}:Q instanceof RegExp?Q.flags?{rule:Q.source,flags:Q.flags}:{rule:Q.source}:Q,hasAssociatedError:!0,intersectionIsOpen:!0,defaults:{description:(Q)=>`matched by ${Q.rule}`},intersections:{pattern:()=>null}});class HV extends NQ{instance=new RegExp(this.rule,this.flags);expression=`${this.instance}`;traverseAllows=this.instance.test.bind(this.instance);compiledCondition=`${this.expression}.test(data)`;compiledNegation=`!${this.compiledCondition}`;impliedBasis=E1.intrinsic.string.internal;reduceJsonSchema(Q){if(Q.pattern)return I1(N6(`Intersection of patterns ${Q.pattern} & ${this.rule}`));return Q.pattern=this.rule,Q}}var VH={implementation:GE,Node:HV};var h7=(Q,X)=>{let Z=YE(Q);if(X&&!X.includes(Z))return I1(`Root of kind ${Z} should be one of ${X}`);return Z},YE=(Q)=>{if(r1(Q,"root"))return Q.kind;if(typeof Q==="string")return Q[0]==="$"?"alias":"domain";if(typeof Q==="function")return"proto";if(typeof Q!=="object"||Q===null)return I1(zV(Q));if("morphs"in Q)return"morph";if("branches"in Q||G6(Q))return"union";if("unit"in Q)return"unit";if("reference"in Q)return"alias";let X=Object.keys(Q);if(X.length===0||X.some((Z)=>(Z in EJ)))return"intersection";if("proto"in Q)return"proto";if("domain"in Q)return"domain";return I1(zV(Q))},zV=(Q)=>`${O0(Q)} is not a valid type schema`,KV={},WE=(Q)=>G6(Q)?Q.map((X)=>X.collapsibleJson):Q.collapsibleJson,F8={};E1.nodesByRegisteredId=F8;var PH=(Q)=>{return KV[Q]??=0,`${Q}${++KV[Q]}`},FH=(Q)=>{let X=oZ[Q.kind],Z={},{meta:J,...G}=Q.def,Y=J===void 0?{}:typeof J==="string"?{description:J}:J,H=_3(G).sort(([z],[W])=>dZ(z)?dZ(W)?uZ(z)-uZ(W):1:dZ(W)?-1:z{if(z.startsWith("meta.")){let $=z.slice(5);return Y[$]=W,!1}return!0});for(let z of H){let W=z[0],$=X.keys[W];if(!$)return I1(`Key ${W} is not valid on ${Q.kind} schema`);let q=$.parse?$.parse(z[1],Q):z[1];if(q!==h4&&(q!==void 0||$.preserveUndefined))Z[W]=q}if(X.reduce&&!Q.prereduced){let z=X.reduce(Z,Q.$);if(z){if(z instanceof p1)return z.throw();return qE(z,Y)}}return DH(Q.id,Q.kind,Z,Y,Q.$)},DH=(Q,X,Z,J,G,Y)=>{let H=oZ[X],K=_3(Z),z=[],W={};if(K.forEach(([C,L])=>{let V=H.keys[C],M=V.serialize??(V.child?WE:CQ);if(W[C]=M(L),V.child===!0){let I=L;if(G6(I))z.push(...I);else z.push(I)}else if(typeof V.child==="function")z.push(...V.child(L))}),H.finalizeInnerJson)W=H.finalizeInnerJson(W);let $={...W},q={};if(!O9(J))q=w0(J,(C,L)=>[C,C==="examples"?L:CQ(L)]),$.meta=hJ(q,"description",!0);W=hJ(W,H.collapsibleKey,!1);let B=JSON.stringify({kind:X,...W});$=hJ($,H.collapsibleKey,!1);let D=hJ($,H.collapsibleKey,!0),F=JSON.stringify({kind:X,...$});if(G.nodesByHash[F]&&!Y)return G.nodesByHash[F];let P={id:Q,kind:X,impl:H,inner:Z,innerEntries:K,innerJson:W,innerHash:B,meta:J,metaJson:q,json:$,hash:F,collapsibleJson:D,children:z};for(let C in Z)if(C!=="in"&&C!=="out")P[C]=Z[C];let N=new BV[X](P,G);return G.nodesByHash[F]=N},$V=(Q,X)=>{if(Q.id===X)return Q;if(F6(F8[X]))a0(`Unexpected attempt to overwrite node id ${X}`);return DH(X,Q.kind,Q.inner,Q.meta,Q.$,!0)},qE=(Q,X,Z)=>{if(Z&&F6(F8[Z]))a0(`Unexpected attempt to overwrite node id ${Z}`);return DH(Z??PH(X.alias??Q.kind),Q.kind,Q.inner,X,Q.$)},hJ=(Q,X,Z)=>{let J=Object.keys(Q);if(J.length===1&&J[0]===X){let G=Q[X];if(Z)return G;if(M8(G,"object")&&(Object.keys(G).length===1||Array.isArray(G)))return G}return Q};var f7=(Q,X,Z)=>{if(Q.key!==X.key)return null;let J=Q.key,G=$6(Q.value,X.value,Z),Y=Q.required||X.required?"required":"optional";if(G instanceof p1)if(Y==="optional")G=E1.intrinsic.never.internal;else return G.withPrefixKey(Q.key,Q.required&&X.required?"required":"optional");if(Y==="required")return Z.$.node("required",{key:J,value:G});let H=Q.hasDefault()?X.hasDefault()?Q.default===X.default?Q.default:I1(LH(Q.default,X.default)):Q.default:X.hasDefault()?X.default:h4;return Z.$.node("optional",{key:J,value:G,default:H})};class b7 extends W9{required=this.kind==="required";optional=this.kind==="optional";impliedBasis=E1.intrinsic.object.internal;serializedKey=LQ(this.key);compiledKey=typeof this.key==="string"?this.key:this.serializedKey;get flatRefs(){return h0(this.value.flatRefs.map((Q)=>w9([this.key,...Q.path],Q.node)),w9([this.key],this.value))}_transform(Q,X){X.path.push(this.key);let Z=super._transform(Q,X);return X.path.pop(),Z}hasDefault(){return"default"in this.inner}traverseAllows=(Q,X)=>{if(this.key in Q)return A8(this.key,()=>this.value.traverseAllows(Q[this.key],X),X);return this.optional};traverseApply=(Q,X)=>{if(this.key in Q)A8(this.key,()=>this.value.traverseApply(Q[this.key],X),X);else if(this.hasKind("required"))X.error(this.errorContext);else if(this.hasDefault())X.queueMorphs(this.defaultValueMorphs)};compile(Q){if(Q.if(`${this.serializedKey} in data`,()=>Q.traverseKey(this.serializedKey,`data${Q.prop(this.key)}`,this.value)),this.hasKind("required"))Q.else(()=>{if(Q.traversalKind==="Apply")return Q.line(`ctx.error(${this.compiledErrorContext})`);else return Q.return(!1)});else if(Q.traversalKind==="Apply"&&this.hasDefault())Q.else(()=>Q.line(`ctx.queueMorphs(${this.defaultValueMorphsReference})`));if(Q.traversalKind==="Allows")Q.return(!0)}}var LH=(Q,X)=>`Invalid intersection of default values ${O0(Q)} & ${O0(X)}`;var HE=N0({kind:"optional",hasAssociatedError:!1,intersectionIsOpen:!0,keys:{key:{},value:{child:!0,parse:(Q,X)=>X.$.parseSchema(Q)},default:{preserveUndefined:!0}},normalize:(Q)=>Q,defaults:{description:(Q)=>`${Q.compiledKey}?: ${Q.value.description}`},intersections:{optional:f7}});class UV extends b7{constructor(...Q){super(...Q);if("default"in this.inner)_7(this.value,this.inner.default,this.key)}get outProp(){if(!this.hasDefault())return this;let{default:Q,...X}=this.inner;return this.cacheGetter("outProp",this.$.node("required",X,{prereduced:!0}))}expression=this.hasDefault()?`${this.compiledKey}: ${this.value.expression} = ${O0(this.inner.default)}`:`${this.compiledKey}?: ${this.value.expression}`;defaultValueMorphs=this.hasDefault()?CH(this.key,this.value,this.default):[];defaultValueMorphsReference=g6(this.defaultValueMorphs)}var m7={implementation:HE,Node:UV},CH=(Q,X,Z)=>{if(typeof Z==="function")return[X.includesMorph?(G,Y)=>{return A8(Q,()=>X(G[Q]=Z(),Y),Y),G}:(G)=>{return G[Q]=Z(),G}];let J=X.includesMorph?X.assert(Z):Z;return[M8(J,"object")?(G,Y)=>{return A8(Q,()=>X(G[Q]=Z,Y),Y),G}:(G)=>{return G[Q]=J,G}]},_7=(Q,X,Z)=>{let J=mQ(X);if(M8(X,"object")&&!J)I1(zE(Z));let G=Q.in(J?X():X);if(G instanceof R8){if(Z!==null)G.forEach((H)=>H.path.unshift(Z));let Y=Z===null?`Default ${G.message}`:`Default for ${G.message}`;I1(Y)}return X},zE=(Q)=>{return`Non-primitive default ${Q===null?"":typeof Q==="number"?`for value at [${Q}] `:`for ${LQ(Q)} `}must be specified as a function like () => ({my: 'object'})`};class q9 extends g7{constructor(Q,X){super(Q,X);Object.defineProperty(this,I8,{value:"root",enumerable:!1})}assert=(Q)=>{let X=this.traverse(Q);return X instanceof R8?X.throw():X};get internal(){return this}get "~standard"(){return{vendor:"arktype",version:1,validate:(Q)=>{let X=this(Q);if(X instanceof R8)return X;return{value:X}}}}as(){return this}brand(Q){if(Q==="")return I1(KE);return this}brandAttributes(){return this}unbrandAttributes(){return this}readonly(){return this}branches=this.hasKind("union")?this.inner.branches:[this];distribute(Q,X){let Z=this.branches.map(Q);return X?.(Z)??Z}toJsonSchema(){let Q=this.innerToJsonSchema();return Object.assign(Q,this.metaJson)}intersect(Q){let X=this.$.parseDefinition(Q),Z=this.rawIntersect(X);if(Z instanceof p1)return Z;return this.$.finalize(Z)}rawIntersect(Q){return i8(this,Q,this.$)}toNeverIfDisjoint(){return this}and(Q){let X=this.intersect(Q);return X instanceof p1?X.throw():X}rawAnd(Q){let X=this.rawIntersect(Q);return X instanceof p1?X.throw():X}or(Q){let X=this.$.parseDefinition(Q);return this.$.finalize(this.rawOr(X))}rawOr(Q){let X=[...this.branches,...Q.branches];return this.$.node("union",X)}map(Q){return this.$.schema(this.applyStructuralOperation("map",[Q]))}pick(...Q){return this.$.schema(this.applyStructuralOperation("pick",Q))}omit(...Q){return this.$.schema(this.applyStructuralOperation("omit",Q))}required(){return this.$.schema(this.applyStructuralOperation("required",[]))}partial(){return this.$.schema(this.applyStructuralOperation("partial",[]))}_keyof;keyof(){if(this._keyof)return this._keyof;let Q=this.applyStructuralOperation("keyof",[]).reduce((X,Z)=>X.intersect(Z).toNeverIfDisjoint(),E1.intrinsic.unknown.internal);if(Q.branches.length===0)I1(XH(`keyof ${this.expression}`));return this._keyof=this.$.finalize(Q)}get props(){if(this.branches.length!==1)return I1($E(this.expression));return[...this.applyStructuralOperation("props",[])[0]]}merge(Q){let X=this.$.parseDefinition(Q);return this.$.schema(X.distribute((Z)=>this.applyStructuralOperation("merge",[VV(Z)??I1(PV("merge",Z.expression))])))}applyStructuralOperation(Q,X){return this.distribute((Z)=>{if(Z.equals(E1.intrinsic.object)&&Q!=="merge")return Z;let J=VV(Z);if(!J)I1(PV(Q,Z.expression));if(Q==="keyof")return J.keyof();if(Q==="get")return J.get(...X);if(Q==="props")return J.props;let G=Q==="required"?"require":Q==="partial"?"optionalize":Q;return this.$.node("intersection",{...Z.inner,structure:J[G](...X)})})}get(...Q){if(Q[0]===void 0)return this;return this.$.schema(this.applyStructuralOperation("get",Q))}extract(Q){let X=this.$.parseDefinition(Q);return this.$.schema(this.branches.filter((Z)=>Z.extends(X)))}exclude(Q){let X=this.$.parseDefinition(Q);return this.$.schema(this.branches.filter((Z)=>!Z.extends(X)))}array(){return this.$.schema({proto:Array,sequence:this},{prereduced:!0})}overlaps(Q){return!(this.intersect(Q)instanceof p1)}extends(Q){let X=this.intersect(Q);return!(X instanceof p1)&&this.equals(X)}ifExtends(Q){return this.extends(Q)?this:void 0}subsumes(Q){return this.$.parseDefinition(Q).extends(this)}configure(Q){return this.configureShallowDescendants(Q)}describe(Q){return this.configure({description:Q})}optional(){return[this,"?"]}default(Q){return _7(this,Q,null),[this,"=",Q]}from(Q){return this.assert(Q)}_pipe(...Q){return Q.reduce((X,Z)=>X.pipeOnce(Z),this)}tryPipe(...Q){return Q.reduce((X,Z)=>X.pipeOnce(r1(Z,"root")?Z:(J,G)=>{try{return Z(J,G)}catch(Y){return G.error({code:"predicate",predicate:Z,actual:`aborted due to error: ${Y} `})}}),this)}pipe=Object.assign(this._pipe.bind(this),{try:this.tryPipe.bind(this)});to(Q){return this.$.finalize(this.toNode(this.$.parseDefinition(Q)))}toNode(Q){let X=GH(this,Q,this.$);if(X instanceof p1)return X.throw();return X}pipeOnce(Q){if(r1(Q,"root"))return this.toNode(Q);return this.distribute((X)=>X.hasKind("morph")?this.$.node("morph",{in:X.inner.in,morphs:[...X.morphs,Q]}):this.$.node("morph",{in:X,morphs:[Q]}),this.$.parseSchema)}get flatMorphs(){return this.cacheGetter("flatMorphs",this.flatRefs.reduce((Q,X)=>pZ(Q,X.node.hasKind("union")?X.node.branches.filter((Z)=>Z.hasKind("morph")).map((Z)=>({path:X.path,propString:X.propString,node:Z})):X.node.hasKind("morph")?X:[]),[]))}narrow(Q){return this.constrainOut("predicate",Q)}constrain(Q,X){return this._constrain("root",Q,X)}constrainIn(Q,X){return this._constrain("in",Q,X)}constrainOut(Q,X){return this._constrain("out",Q,X)}_constrain(Q,X,Z){let J=this.$.node(X,Z);if(J.isRoot())return J.isUnknown()?this:a0(`Unexpected constraint node ${J}`);let G=Q==="root"?this:this[Q];if(G.hasKind("morph")||J.impliedBasis&&!G.extends(J.impliedBasis))return cU(X,J.impliedBasis,this);let Y=this.$.node("intersection",{[J.kind]:J}),H=Q==="out"?GH(this,Y,this.$):i8(this,Y,this.$);if(H instanceof p1)H.throw();return this.$.finalize(H)}onUndeclaredKey(Q){let X=typeof Q==="string"?Q:Q.rule,Z=typeof Q==="string"?!1:Q.deep;return this.$.finalize(this.transform((J,G)=>J==="structure"?X==="ignore"?UU(G,{undeclared:1}):{...G,undeclared:X}:G,Z?void 0:{shouldTransform:(J)=>!PQ(mZ,J.kind)}))}onDeepUndeclaredKey(Q){return this.onUndeclaredKey({rule:Q,deep:!0})}satisfying(Q){return this.constrain("predicate",Q)}divisibleBy(Q){return this.constrain("divisor",Q)}matching(Q){return this.constrain("pattern",Q)}atLeast(Q){return this.constrain("min",Q)}atMost(Q){return this.constrain("max",Q)}moreThan(Q){return this.constrain("min",aZ(Q))}lessThan(Q){return this.constrain("max",aZ(Q))}atLeastLength(Q){return this.constrain("minLength",Q)}atMostLength(Q){return this.constrain("maxLength",Q)}moreThanLength(Q){return this.constrain("minLength",aZ(Q))}lessThanLength(Q){return this.constrain("maxLength",aZ(Q))}exactlyLength(Q){return this.constrain("exactLength",Q)}atOrAfter(Q){return this.constrain("after",Q)}atOrBefore(Q){return this.constrain("before",Q)}laterThan(Q){return this.constrain("after",aZ(Q))}earlierThan(Q){return this.constrain("before",aZ(Q))}}var KE="Expected a non-empty brand name after #",aZ=(Q)=>typeof Q==="object"&&!(Q instanceof Date)?{...Q,exclusive:!0}:{rule:Q,exclusive:!0},d7=(Q,X)=>r1(X,"root")?r1(Q,"root")?Q.extends(X):X.allows(Q):r1(Q,"root")?Q.hasUnit(X):X===Q,VV=(Q)=>{if(Q.hasKind("morph"))return null;if(Q.hasKind("intersection"))return Q.inner.structure??(Q.basis?.domain==="object"?Q.$.bindReference(E1.intrinsic.emptyStructure):null);if(Q.isBasis()&&Q.domain==="object")return Q.$.bindReference(E1.intrinsic.emptyStructure);return null},$E=(Q)=>`Props cannot be extracted from a union. Use .distribute to extract props from each branch instead. Received: ${Q}`,PV=(Q,X)=>`${Q} operand must be an object (was ${X})`;var o9=(Q,X)=>w0(jJ(Q),(Z,J)=>[J,X]);var BE=(Q)=>typeof Q==="string"?{reference:Q}:Q,FV=(Q)=>Q instanceof p1?E1.intrinsic.never.internal:Q,UE=N0({kind:"alias",hasAssociatedError:!1,collapsibleKey:"reference",keys:{reference:{serialize:(Q)=>Q.startsWith("$")?Q:`$ark.${Q}`},resolve:{}},normalize:BE,defaults:{description:(Q)=>Q.reference},intersections:{alias:(Q,X,Z)=>Z.$.lazilyResolve(()=>FV($6(Q.resolution,X.resolution,Z)),`${Q.reference}${Z.pipe?"=>":"&"}${X.reference}`),...o9("alias",(Q,X,Z)=>{if(X.isUnknown())return Q;if(X.isNever())return X;return Z.$.lazilyResolve(()=>FV($6(Q.resolution,X,Z)),`${Q.reference}${Z.pipe?"=>":"&"}${X.id}`)})}});class DV extends q9{expression=this.reference;structure=void 0;get resolution(){let Q=this._resolve();return F8[this.id]=Q}_resolve(){if(this.resolve)return this.resolve();if(this.reference[0]==="$")return this.$.resolveRoot(this.reference.slice(1));let Q=this.reference,X=F8[Q],Z=[];while(r1(X,"context")){if(Z.includes(X.id))return I1(VE(X.id,Z));Z.push(X.id),X=F8[X.id]}if(!r1(X,"root"))return a0(`Unexpected resolution for reference ${this.reference} Seen: [${Z.join("->")}] Resolution: ${O0(X)}`);return X}get resolutionId(){if(this.reference.includes("&")||this.reference.includes("=>"))return this.resolution.id;if(this.reference[0]!=="$")return this.reference;let Q=this.reference.slice(1),X=this.$.resolutions[Q];if(typeof X==="string")return X;if(r1(X,"root"))return X.id;return a0(`Unexpected resolution for reference ${this.reference}: ${O0(X)}`)}get shortDescription(){return Y9.object}innerToJsonSchema(){return I1(aU(this.expression))}traverseAllows=(Q,X)=>{let Z=X.seen[this.reference];if(Z?.includes(Q))return!0;return X.seen[this.reference]=h0(Z,Q),this.resolution.traverseAllows(Q,X)};traverseApply=(Q,X)=>{let Z=X.seen[this.reference];if(Z?.includes(Q))return;X.seen[this.reference]=h0(Z,Q),this.resolution.traverseApply(Q,X)};compile(Q){let X=this.resolutionId;Q.if(`ctx.seen.${X} && ctx.seen.${X}.includes(data)`,()=>Q.return(!0)),Q.if(`!ctx.seen.${X}`,()=>Q.line(`ctx.seen.${X} = []`)),Q.line(`ctx.seen.${X}.push(data)`),Q.return(Q.invoke(X))}}var VE=(Q,X)=>`Alias '${Q}' has a shallow resolution cycle: ${[...X,Q].join("->")}`,u7={implementation:UE,Node:DV};class l4 extends q9{traverseApply=(Q,X)=>{if(!this.traverseAllows(Q,X))X.error(this.errorContext)};get errorContext(){return{code:this.kind,description:this.description,...this.inner}}get compiledErrorContext(){return uQ(this.errorContext)}compile(Q){if(Q.traversalKind==="Allows")Q.return(this.compiledCondition);else Q.if(this.compiledNegation,()=>Q.line(`${Q.ctx}.error(${this.compiledErrorContext})`))}}var PE=N0({kind:"domain",hasAssociatedError:!0,collapsibleKey:"domain",keys:{domain:{}},normalize:(Q)=>typeof Q==="string"?{domain:Q}:Q,defaults:{description:(Q)=>Y9[Q.domain],actual:(Q)=>Y9[P8(Q)]},intersections:{domain:(Q,X)=>p1.init("domain",Q,X)}});class LV extends l4{traverseAllows=(Q)=>P8(Q)===this.domain;compiledCondition=this.domain==="object"?'((typeof data === "object" && data !== null) || typeof data === "function")':`typeof data === "${this.domain}"`;compiledNegation=this.domain==="object"?'((typeof data !== "object" || data === null) && typeof data !== "function")':`typeof data !== "${this.domain}"`;expression=this.domain;get shortDescription(){return Y9[this.domain]}innerToJsonSchema(){if(this.domain==="bigint"||this.domain==="symbol")return I1(N6(this.domain));return{type:this.domain}}}var NH={implementation:PE,Node:LV};var FE=N0({kind:"intersection",hasAssociatedError:!0,normalize:(Q)=>{if(F6(Q))return Q;let{structure:X,...Z}=Q,J=!!X,G=X??{},Y=w0(Z,(H,K)=>{if(a6(H,mU)){if(J)I1(`Flattened structure key ${H} cannot be specified alongside a root 'structure' key.`);return G[H]=K,[]}return[H,K]});if(r1(G,"constraint")||!O9(G))Y.structure=G;return Y},finalizeInnerJson:({structure:Q,...X})=>M8(Q,"object")?{...Q,...X}:X,keys:{domain:{child:!0,parse:(Q,X)=>X.$.node("domain",Q)},proto:{child:!0,parse:(Q,X)=>X.$.node("proto",Q)},structure:{child:!0,parse:(Q,X)=>X.$.node("structure",Q),serialize:(Q)=>{if(!Q.sequence?.minLength)return Q.collapsibleJson;let{sequence:X,...Z}=Q.collapsibleJson,{minVariadicLength:J,...G}=X,Y=G.variadic&&Object.keys(G).length===1?G.variadic:G;return{...Z,sequence:Y}}},divisor:{child:!0,parse:J8("divisor")},max:{child:!0,parse:J8("max")},min:{child:!0,parse:J8("min")},maxLength:{child:!0,parse:J8("maxLength")},minLength:{child:!0,parse:J8("minLength")},exactLength:{child:!0,parse:J8("exactLength")},before:{child:!0,parse:J8("before")},after:{child:!0,parse:J8("after")},pattern:{child:!0,parse:J8("pattern")},predicate:{child:!0,parse:J8("predicate")}},reduce:(Q,X)=>fJ({},Q,{$:X,invert:!1,pipe:!1}),defaults:{description:(Q)=>Q.children.length===0?"unknown":Q.structure?.description??Q.children.map((X)=>X.description).join(" and "),expected:(Q)=>` • ${Q.errors.map((X)=>X.expected).join(` • `)}`,problem:(Q)=>`(${Q.actual}) must be... ${Q.expected}`},intersections:{intersection:(Q,X,Z)=>fJ(Q,X,Z),...o9("intersection",(Q,X,Z)=>{if(Q.children.length===0)return X;let{domain:J,proto:G,...Y}=Q.inner,H=G??J,K=H?$6(H,X,Z):X;return K instanceof p1?K:Q?.basis?.equals(K)?Q:Q.$.node("intersection",{...Y,[K.kind]:K},{prereduced:!0})})}});class CV extends q9{basis=this.domain??this.proto??null;refinements=this.children.filter((Q)=>Q.isRefinement());get expression(){let Q=this.structure?.expression||`${this.basis?this.basis.nestableExpression+" ":""}${this.refinements.join(" & ")}`||"unknown";if(Q==="Array == 0")Q="[]";return this.cacheGetter("expression",Q)}get shortDescription(){return this.basis?.shortDescription??"present"}innerToJsonSchema(){return this.children.reduce((Q,X)=>X.isBasis()?X.toJsonSchema():X.reduceJsonSchema(Q),{})}traverseAllows=(Q,X)=>this.children.every((Z)=>Z.traverseAllows(Q,X));traverseApply=(Q,X)=>{let Z=X.currentErrorCount;if(this.basis){if(this.basis.traverseApply(Q,X),X.currentErrorCount>Z)return}if(this.refinements.length){for(let J=0;JZ)return;if(this.refinements.at(-1).traverseApply(Q,X),X.currentErrorCount>Z)return}if(this.structure){if(this.structure.traverseApply(Q,X),X.currentErrorCount>Z)return}if(this.predicate){for(let J=0;JZ)return;this.predicate.at(-1).traverseApply(Q,X)}};compile(Q){if(Q.traversalKind==="Allows"){this.children.forEach((X)=>Q.check(X)),Q.return(!0);return}if(Q.initializeErrorCount(),this.basis){if(Q.check(this.basis),this.children.length>1)Q.returnIfFail()}if(this.refinements.length){for(let X=0;X{if(r1(Q,"root")&&Q.hasKind("intersection"))return fJ(Q.inner,X,Z);if(r1(X,"root")&&X.hasKind("intersection"))return fJ(Q,X.inner,Z);let J={},G=Q.proto??Q.domain,Y=X.proto??X.domain,H=G?Y?$6(G,Y,Z):G:Y;if(H instanceof p1)return H;if(H)J[H.kind]=H;return cZ({kind:"intersection",baseInner:J,l:iZ(Q),r:iZ(X),roots:[],ctx:Z})};var DE=N0({kind:"morph",hasAssociatedError:!1,keys:{in:{child:!0,parse:(Q,X)=>X.$.parseSchema(Q)},morphs:{parse:gZ,serialize:(Q)=>Q.map((X)=>r1(X,"root")?X.json:g6(X))},declaredIn:{child:!1,serialize:(Q)=>Q.json},declaredOut:{child:!1,serialize:(Q)=>Q.json}},normalize:(Q)=>Q,defaults:{description:(Q)=>`a morph from ${Q.in.description} to ${Q.out?.description??"unknown"}`},intersections:{morph:(Q,X,Z)=>{if(!Q.hasEqualMorphs(X))return I1(LE(Q.expression,X.expression));let J=$6(Q.in,X.in,Z);if(J instanceof p1)return J;let G={morphs:Q.morphs};if(Q.declaredIn||X.declaredIn){let Y=$6(Q.in,X.in,Z);if(Y instanceof p1)return Y.throw();else G.declaredIn=Y}if(Q.declaredOut||X.declaredOut){let Y=$6(Q.out,X.out,Z);if(Y instanceof p1)return Y.throw();else G.declaredOut=Y}return J.distribute((Y)=>Z.$.node("morph",{...G,in:Y}),Z.$.parseSchema)},...o9("morph",(Q,X,Z)=>{let J=Q.inner.in?$6(Q.inner.in,X,Z):X;return J instanceof p1?J:J.equals(Q.inner.in)?Q:Z.$.node("morph",{...Q.inner,in:J})})}});class NV extends q9{serializedMorphs=this.morphs.map(g6);compiledMorphs=`[${this.serializedMorphs}]`;lastMorph=this.inner.morphs.at(-1);lastMorphIfNode=r1(this.lastMorph,"root")?this.lastMorph:void 0;introspectableIn=this.inner.in;introspectableOut=this.lastMorphIfNode?Object.assign(this.referencesById,this.lastMorphIfNode.referencesById)&&this.lastMorphIfNode.out:void 0;get in(){return this.declaredIn??this.inner.in?.in??E1.intrinsic.unknown.internal}get out(){return this.declaredOut??this.introspectableOut??E1.intrinsic.unknown.internal}declareIn(Q){return this.$.node("morph",{...this.inner,declaredIn:Q})}declareOut(Q){return this.$.node("morph",{...this.inner,declaredOut:Q})}expression=`(In: ${this.in.expression}) => Out<${this.out.expression}>`;get shortDescription(){return this.in.shortDescription}innerToJsonSchema(){return I1(oU(this.expression))}compile(Q){if(Q.traversalKind==="Allows"){if(!this.introspectableIn)return;Q.return(Q.invoke(this.introspectableIn));return}if(this.introspectableIn)Q.line(Q.invoke(this.introspectableIn));Q.line(`ctx.queueMorphs(${this.compiledMorphs})`)}traverseAllows=(Q,X)=>!this.introspectableIn||this.introspectableIn.traverseAllows(Q,X);traverseApply=(Q,X)=>{if(this.introspectableIn)this.introspectableIn.traverseApply(Q,X);X.queueMorphs(this.morphs)};hasEqualMorphs(Q){return hZ(this.morphs,Q.morphs,{isEqual:(X,Z)=>X===Z||r1(X,"root")&&r1(Z,"root")&&X.equals(Z)})}}var MH={implementation:DE,Node:NV},LE=(Q,X)=>`The intersection of distinct morphs at a single path is indeterminate: Left: ${Q} Right: ${X}`;var CE=N0({kind:"proto",hasAssociatedError:!0,collapsibleKey:"proto",keys:{proto:{serialize:(Q)=>S7(Q)??CQ(Q)}},normalize:(Q)=>typeof Q==="string"?{proto:f4[Q]}:typeof Q==="function"?F6(Q)?Q:{proto:Q}:typeof Q.proto==="string"?{...Q,proto:f4[Q.proto]}:Q,defaults:{description:(Q)=>Q.builtinName?PU[Q.builtinName]:`an instance of ${Q.proto.name}`,actual:(Q)=>j7(Q)},intersections:{proto:(Q,X)=>c3(Q.proto,X.proto)?Q:c3(X.proto,Q.proto)?X:p1.init("proto",Q,X),domain:(Q,X)=>X.domain==="object"?Q:p1.init("domain",E1.intrinsic.object.internal,X)}});class TV extends l4{builtinName=S7(this.proto);serializedConstructor=this.json.proto;compiledCondition=`data instanceof ${this.serializedConstructor}`;compiledNegation=`!(${this.compiledCondition})`;innerToJsonSchema(){switch(this.builtinName){case"Array":return{type:"array"};default:return I1(N6(this.description))}}traverseAllows=(Q)=>Q instanceof this.proto;expression=this.proto.name;domain="object";get shortDescription(){return this.description}}var IH={implementation:CE,Node:TV};var NE=N0({kind:"union",hasAssociatedError:!0,collapsibleKey:"branches",keys:{ordered:{},branches:{child:!0,parse:(Q,X)=>{let Z=[];if(Q.forEach((J)=>{(r1(J,"root")?J.branches:X.$.parseSchema(J).branches).forEach((Y)=>{if(Y.hasKind("morph")){let H=Z.findIndex((K)=>K.hasKind("morph")&&K.hasEqualMorphs(Y));if(H===-1)Z.push(Y);else{let K=Z[H];Z[H]=X.$.node("morph",{...K.inner,in:K.in.rawOr(Y.in)})}}else Z.push(Y)})}),!X.def.ordered)Z.sort((J,G)=>J.hashG6(Q)?{branches:Q}:Q,reduce:(Q,X)=>{let Z=OE(Q);if(Z.length===1)return Z[0];if(Z.length===Q.branches.length)return;return X.node("union",{...Q,branches:Z},{prereduced:!0})},defaults:{description:(Q)=>Q.distribute((X)=>X.description,sZ),expected:(Q)=>{let X=NJ(Q.errors,"propString"),Z=Object.entries(X).map(([J,G])=>{let Y=[];G.forEach((z)=>FQ(Y,z.expected));let H=sZ(Y),K=G.every((z)=>z.actual===G[0].actual)?G[0].actual:O0(G[0].data);return`${J&&`${J} `}must be ${H}${K&&` (was ${K})`}`});return sZ(Z)},problem:(Q)=>Q.expected,message:(Q)=>Q.problem},intersections:{union:(Q,X,Z)=>{if(Q.isNever!==X.isNever)return p1.init("presence",Q,X);let J;if(Q.ordered){if(X.ordered)I1(SE(Q.expression,X.expression));if(J=RH(X.branches,Q.branches,Z),J instanceof p1)J.invert()}else J=RH(Q.branches,X.branches,Z);if(J instanceof p1)return J;return Z.$.parseSchema(Q.ordered||X.ordered?{branches:J,ordered:!0}:{branches:J})},...o9("union",(Q,X,Z)=>{let J=RH(Q.branches,[X],Z);if(J instanceof p1)return J;if(J.length===1)return J[0];return Z.$.parseSchema(Q.ordered?{branches:J,ordered:!0}:{branches:J})})}});class MV extends q9{isBoolean=this.branches.length===2&&this.branches[0].hasUnit(!1)&&this.branches[1].hasUnit(!0);get branchGroups(){let Q=[],X=-1;return this.branches.forEach((Z)=>{if(Z.hasKind("unit")&&Z.domain==="boolean"){if(X===-1)X=Q.length,Q.push(Z);else Q[X]=E1.intrinsic.boolean;return}Q.push(Z)}),Q}unitBranches=this.branches.filter((Q)=>Q.in.hasKind("unit"));discriminant=this.discriminate();discriminantJson=this.discriminant?IE(this.discriminant):null;expression=this.distribute((Q)=>Q.nestableExpression,AE);get shortDescription(){return this.distribute((Q)=>Q.shortDescription,sZ)}innerToJsonSchema(){return{anyOf:this.branchGroups.map((Q)=>Q.equals(E1.intrinsic.boolean)?{type:"boolean"}:Q.toJsonSchema())}}traverseAllows=(Q,X)=>this.branches.some((Z)=>Z.traverseAllows(Q,X));traverseApply=(Q,X)=>{let Z=[];for(let J=0;J{for(let z in Z){let W=Z[z],$=z==="default"?z:`case ${z}`;Q.line(`${$}: return ${W===!0?W:Q.invoke(W)}`)}return Q}),Q.traversalKind==="Allows"){Q.return(!1);return}let G=sZ(this.discriminant.kind==="domain"?J.map((z)=>{let W=z.slice(1,-1);return W==="function"?Y9.object:Y9[W]}):J),Y=this.discriminant.path.map((z)=>typeof z==="string"?JSON.stringify(z):g6(z)),H=JSON.stringify(G),K=this.discriminant.kind==="domain"?`${TE}[${X}]`:`${ME}(${X})`;Q.line(`ctx.error({ \texpected: ${H}, \tactual: ${K}, \trelativePath: [${Y}] })`)}compileIndiscriminable(Q){if(Q.traversalKind==="Apply")Q.const("errors","[]"),this.branches.forEach((X)=>Q.line("ctx.pushBranch()").line(Q.invoke(X)).if("!ctx.hasError()",()=>Q.return(X.includesMorph?"ctx.queuedMorphs.push(...ctx.popBranch().queuedMorphs)":"ctx.popBranch()")).line("errors.push(ctx.popBranch().error)")),Q.line('ctx.error({ code: "union", errors })');else this.branches.forEach((X)=>Q.if(`${Q.invoke(X)}`,()=>Q.return(!0))),Q.return(!1)}get nestableExpression(){return this.isBoolean?"boolean":`(${this.expression})`}discriminate(){if(this.branches.length<2)return null;if(this.unitBranches.length===this.branches.length){let Y=w0(this.unitBranches,(H,K)=>[`${K.in.serializedValue}`,K.hasKind("morph")?K:!0]);return{kind:"unit",path:[],optionallyChainedPropString:"data",cases:Y}}let Q=[];for(let Y=0;YhZ(F.path,$.path)&&F.kind===$.kind);if(!D)Q.push({kind:$.kind,cases:{[q]:[H],[B]:[z]},path:$.path});else D.cases[q]=FQ(D.cases[q],H),D.cases[B]=FQ(D.cases[B],z)}}}let X=Q.sort((Y,H)=>Object.keys(Y.cases).length-Object.keys(H.cases).length).at(-1);if(!X)return null;let Z=[...this.branches],J={kind:X.kind,path:X.path,optionallyChainedPropString:IV(X.path)},G=w0(X.cases,(Y,H)=>{let K=[];Z=Z.filter((W)=>!H.includes(W));for(let W of H){let $=EE(W,J);if($===null)return[Y,!0];K.push($)}let z=K.length===1?K[0]:this.$.node("union",K);return Object.assign(this.referencesById,z.referencesById),[Y,z]});if(Z.length)G.default=this.$.node("union",Z,{prereduced:!0}),Object.assign(this.referencesById,G.default.referencesById);return Object.assign(J,{cases:G})}}var IV=(Q)=>Q.reduce((X,Z)=>X+e3(Z,!0),"data"),TE=g6($U),ME=g6(O0),AH={implementation:NE,Node:MV},IE=(Q)=>({kind:Q.kind,path:Q.path.map((X)=>typeof X==="string"?X:LQ(X)),cases:w0(Q.cases,(X,Z)=>[X,Z===!0?Z:Z.hasKind("union")&&Z.discriminantJson?Z.discriminantJson:Z.json])}),RE={delimiter:" | ",finalDelimiter:" | "},AE=(Q)=>sZ(Q,RE),sZ=(Q,X)=>{let Z=X?.delimiter??", ",J=X?.finalDelimiter??" or ";if(Q.length===0)return"never";if(Q.length===1)return Q[0];if(Q.length===2&&Q[0]==="false"&&Q[1]==="true"||Q[0]==="true"&&Q[1]==="false")return"boolean";let G={},Y=Q.filter((K)=>G[K]?!1:G[K]=!0),H=Y.pop();return`${Y.join(Z)}${Y.length?J:""}${H}`},RH=(Q,X,Z)=>{let J=X.map(()=>[]);for(let Y=0;YY?.flatMap((K)=>K.branches)??X[H]);return G.length===0?p1.init("union",Q,X):G},OE=({branches:Q,ordered:X})=>{if(Q.length<2)return Q;let Z=Q.map(()=>!0);for(let J=0;JZ[G])},wE=(Q,X)=>{if((Q.includesMorph||X.includesMorph)&&(!hZ(Q.shallowMorphs,X.shallowMorphs,{isEqual:(Z,J)=>Z.hasEqualMorphs(J)})||!hZ(Q.flatMorphs,X.flatMorphs,{isEqual:(Z,J)=>Z.propString===J.propString&&Z.node.hasEqualMorphs(J.node)})))I1(jE(Q.expression,X.expression))},EE=(Q,X)=>Q.transform((Z,J)=>{if(Z==="domain"||Z==="unit")return null;return J},{shouldTransform:(Z,J)=>{let G=IV(J.path);if(!X.optionallyChainedPropString.startsWith(G))return!1;if(Z.hasKind("domain")&&Z.domain==="object")return!0;if((Z.hasKind("domain")||X.kind==="unit")&&G===X.optionallyChainedPropString)return!0;return Z.children.length!==0&&Z.kind!=="index"}}),jE=(Q,X)=>`An unordered union of a type including a morph and a type with overlapping input is indeterminate: Left: ${Q} Right: ${X}`,SE=(Q,X)=>`The intersection of two ordered unions is indeterminate: Left: ${Q} Right: ${X}`;var kE=N0({kind:"unit",hasAssociatedError:!0,keys:{unit:{preserveUndefined:!0,serialize:(Q)=>Q instanceof Date?Q.toISOString():CQ(Q)}},normalize:(Q)=>Q,defaults:{description:(Q)=>O0(Q.unit),problem:({expected:Q,actual:X})=>`${Q===X?`must be reference equal to ${Q} (serialized to the same value)`:`must be ${Q} (was ${X})`}`},intersections:{unit:(Q,X)=>p1.init("unit",Q,X),...o9("unit",(Q,X)=>{if(X.allows(Q.unit))return Q;let Z=X.hasKind("intersection")?X.basis:X;if(Z){let J=Z.hasKind("domain")?Z:E1.intrinsic.object;if(Q.domain!==J.domain){let G=Q.domain==="undefined"||Q.domain==="null"||Q.domain==="boolean"?Q.domain:E1.intrinsic[Q.domain];return p1.init("domain",G,J)}}return p1.init("assignability",Q,X.hasKind("intersection")?X.children.find((J)=>!J.allows(Q.unit)):X)})}});class AV extends l4{compiledValue=this.json.unit;serializedValue=typeof this.unit==="string"||this.unit instanceof Date?JSON.stringify(this.compiledValue):`${this.compiledValue}`;compiledCondition=RV(this.unit,this.serializedValue);compiledNegation=RV(this.unit,this.serializedValue,"negated");expression=O0(this.unit);domain=P8(this.unit);get shortDescription(){return this.domain==="object"?Y9.object:this.description}innerToJsonSchema(){return E1.intrinsic.jsonPrimitive.allows(this.unit)?{const:this.unit}:I1(N6(this.shortDescription))}traverseAllows=this.unit instanceof Date?(Q)=>Q instanceof Date&&Q.toISOString()===this.compiledValue:Number.isNaN(this.unit)?(Q)=>Number.isNaN(Q):(Q)=>Q===this.unit}var OH={implementation:kE,Node:AV},RV=(Q,X,Z)=>{if(Q instanceof Date){let J=`data instanceof Date && data.toISOString() === ${X}`;return Z?`!(${J})`:J}if(Number.isNaN(Q))return`${Z?"!":""}Number.isNaN(data)`;return`data ${Z?"!":"="}== ${X}`};var yE=N0({kind:"index",hasAssociatedError:!1,intersectionIsOpen:!0,keys:{signature:{child:!0,parse:(Q,X)=>{let Z=X.$.parseSchema(Q);if(!Z.extends(E1.intrinsic.key))return I1(vE(Z.expression));let J=Z.branches.filter((G)=>G.hasKind("unit"));if(J.length)return I1(xE(J.map((G)=>O0(G.unit))));return Z}},value:{child:!0,parse:(Q,X)=>X.$.parseSchema(Q)}},normalize:(Q)=>Q,defaults:{description:(Q)=>`[${Q.signature.expression}]: ${Q.value.description}`},intersections:{index:(Q,X,Z)=>{if(Q.signature.equals(X.signature)){let J=$6(Q.value,X.value,Z),G=J instanceof p1?E1.intrinsic.never.internal:J;return Z.$.node("index",{signature:Q.signature,value:G})}if(Q.signature.extends(X.signature)&&Q.value.subsumes(X.value))return X;if(X.signature.extends(Q.signature)&&X.value.subsumes(Q.value))return Q;return null}}});class OV extends W9{impliedBasis=E1.intrinsic.object.internal;expression=`[${this.signature.expression}]: ${this.value.expression}`;traverseAllows=(Q,X)=>w7(Q).every((Z)=>{if(this.signature.traverseAllows(Z[0],X))return A8(Z[0],()=>this.value.traverseAllows(Z[1],X),X);return!0});traverseApply=(Q,X)=>w7(Q).forEach((Z)=>{if(this.signature.traverseAllows(Z[0],X))A8(Z[0],()=>this.value.traverseApply(Z[1],X),X)});_transform(Q,X){X.path.push(this.signature);let Z=super._transform(Q,X);return X.path.pop(),Z}get flatRefs(){return h0(this.value.flatRefs.map((Q)=>w9([this.signature,...Q.path],Q.node)),w9([this.signature],this.value))}compile(){}}var wH={implementation:yE,Node:OV},xE=(Q)=>`Index keys ${Q.join(", ")} should be specified as named props.`,vE=(Q)=>`Indexed key definition '${Q}' must be a string or symbol`;var gE=N0({kind:"required",hasAssociatedError:!0,intersectionIsOpen:!0,keys:{key:{},value:{child:!0,parse:(Q,X)=>X.$.parseSchema(Q)}},normalize:(Q)=>Q,defaults:{description:(Q)=>`${Q.compiledKey}: ${Q.value.description}`,expected:(Q)=>Q.missingValueDescription,actual:()=>"missing"},intersections:{required:f7,optional:f7}});class wV extends b7{expression=`${this.compiledKey}: ${this.value.expression}`;errorContext=Object.freeze({code:"required",missingValueDescription:this.value.shortDescription,relativePath:[this.key]});compiledErrorContext=uQ(this.errorContext)}var EH={implementation:gE,Node:wV};var hE=N0({kind:"sequence",hasAssociatedError:!1,collapsibleKey:"variadic",keys:{prefix:{child:!0,parse:(Q,X)=>{if(Q.length===0)return;return Q.map((Z)=>X.$.parseSchema(Z))}},optionals:{child:!0,parse:(Q,X)=>{if(Q.length===0)return;return Q.map((Z)=>X.$.parseSchema(Z))}},defaultables:{child:(Q)=>Q.map((X)=>X[0]),parse:(Q,X)=>{if(Q.length===0)return;return Q.map((Z)=>{let J=X.$.parseSchema(Z[0]);return _7(J,Z[1],null),[J,Z[1]]})},serialize:(Q)=>Q.map((X)=>[X[0].collapsibleJson,CQ(X[1])])},variadic:{child:!0,parse:(Q,X)=>X.$.parseSchema(Q,X)},minVariadicLength:{parse:(Q)=>Q===0?void 0:Q},postfix:{child:!0,parse:(Q,X)=>{if(Q.length===0)return;return Q.map((Z)=>X.$.parseSchema(Z))}}},normalize:(Q)=>{if(typeof Q==="string")return{variadic:Q};if("variadic"in Q||"prefix"in Q||"defaultables"in Q||"optionals"in Q||"postfix"in Q||"minVariadicLength"in Q){if(Q.postfix?.length){if(!Q.variadic)return I1(bE);if(Q.optionals?.length||Q.defaultables?.length)return I1(SH)}if(Q.minVariadicLength&&!Q.variadic)return I1("minVariadicLength may not be specified without a variadic element");return Q}return{variadic:Q}},reduce:(Q,X)=>{let Z=Q.minVariadicLength??0,J=Q.prefix?.slice()??[],G=Q.defaultables?.slice()??[],Y=Q.optionals?.slice()??[],H=Q.postfix?.slice()??[];if(Q.variadic){while(Y.at(-1)?.equals(Q.variadic))Y.pop();if(Y.length===0&&G.length===0)while(J.at(-1)?.equals(Q.variadic))J.pop(),Z++;while(H[0]?.equals(Q.variadic))H.shift(),Z++}else if(Y.length===0&&G.length===0)J.push(...H.splice(0));if(Z!==Q.minVariadicLength||Q.prefix&&Q.prefix.length!==J.length)return X.node("sequence",{...Q,prefix:J,defaultables:G,optionals:Y,postfix:H,minVariadicLength:Z},{prereduced:!0})},defaults:{description:(Q)=>{if(Q.isVariadicOnly)return`${Q.variadic.nestableExpression}[]`;return`[${Q.tuple.map((Z)=>Z.kind==="defaultables"?`${Z.node.nestableExpression} = ${O0(Z.default)}`:Z.kind==="optionals"?`${Z.node.nestableExpression}?`:Z.kind==="variadic"?`...${Z.node.nestableExpression}[]`:Z.node.expression).join(", ")}]`}},intersections:{sequence:(Q,X,Z)=>{let J=p7({l:Q.tuple,r:X.tuple,disjoint:new p1,result:[],fixedVariants:[],ctx:Z}),G=J.disjoint.length===0?[J,...J.fixedVariants]:J.fixedVariants;return G.length===0?J.disjoint:G.length===1?Z.$.node("sequence",EV(G[0].result)):Z.$.node("union",G.map((Y)=>({proto:Array,sequence:EV(Y.result)})))}}});class jV extends W9{impliedBasis=E1.intrinsic.Array.internal;tuple=fE(this.inner);prefixLength=this.prefix?.length??0;defaultablesLength=this.defaultables?.length??0;optionalsLength=this.optionals?.length??0;postfixLength=this.postfix?.length??0;prevariadic=this.tuple.filter((Q)=>Q.kind==="prefix"||Q.kind==="defaultables"||Q.kind==="optionals");variadicOrPostfix=bQ(this.variadic&&[this.variadic],this.postfix);isVariadicOnly=this.prevariadic.length+this.postfixLength===0;minVariadicLength=this.inner.minVariadicLength??0;minLength=this.prefixLength+this.minVariadicLength+this.postfixLength;minLengthNode=this.minLength===0?null:this.$.node("minLength",this.minLength);maxLength=this.variadic?null:this.tuple.length;maxLengthNode=this.maxLength===null?null:this.$.node("maxLength",this.maxLength);impliedSiblings=this.minLengthNode?this.maxLengthNode?[this.minLengthNode,this.maxLengthNode]:[this.minLengthNode]:this.maxLengthNode?[this.maxLengthNode]:[];defaultValueMorphs=this.defaultables?.map(([Q,X],Z)=>CH(this.prefixLength+Z,Q,X))??[];defaultValueMorphsReference=g6(this.defaultValueMorphs);elementAtIndex(Q,X){if(X=Z)return{kind:"postfix",node:this.postfix[X-Z]};return{kind:"variadic",node:this.variadic??a0(`Unexpected attempt to access index ${X} on ${this}`)}}traverseAllows=(Q,X)=>{for(let Z=0;Z{let Z=0;for(;Zthis.elementAtIndex(Q,Z).node.traverseApply(Q[Z],X),X);for(;Zh0(X.node.flatRefs.map((J)=>w9([`${Z}`,...J.path],J.node)),w9([`${Z}`],X.node)))),pZ(Q,this.variadicOrPostfix.flatMap((X)=>h0(X.flatRefs.map((Z)=>w9([E1.intrinsic.nonNegativeIntegerString.internal,...Z.path],Z.node)),w9([E1.intrinsic.nonNegativeIntegerString.internal],X)))),Q}get element(){return this.cacheGetter("element",this.$.node("union",this.children))}compile(Q){if(this.prefix?.forEach((X,Z)=>Q.traverseKey(`${Z}`,`data[${Z}]`,X)),this.defaultables?.forEach((X,Z)=>{let J=`${Z+this.prefixLength}`;Q.if(`${J} >= ${Q.data}.length`,()=>Q.traversalKind==="Allows"?Q.return(!0):Q.return(`ctx.queueMorphs(${this.defaultValueMorphsReference}[${Z}])`)),Q.traverseKey(J,`data[${J}]`,X[0])}),this.optionals?.forEach((X,Z)=>{let J=`${Z+this.prefixLength+this.defaultablesLength}`;Q.if(`${J} >= ${Q.data}.length`,()=>Q.traversalKind==="Allows"?Q.return(!0):Q.return()),Q.traverseKey(J,`data[${J}]`,X)}),this.variadic){if(this.postfix)Q.const("firstPostfixIndex",`${Q.data}.length${this.postfix?`- ${this.postfix.length}`:""}`);Q.for(`i < ${this.postfix?"firstPostfixIndex":"data.length"}`,()=>Q.traverseKey("i","data[i]",this.variadic),this.prevariadic.length),this.postfix?.forEach((X,Z)=>{let J=`firstPostfixIndex + ${Z}`;Q.traverseKey(J,`data[${J}]`,X)})}if(Q.traversalKind==="Allows")Q.return(!0)}_transform(Q,X){X.path.push(E1.intrinsic.nonNegativeIntegerString.internal);let Z=super._transform(Q,X);return X.path.pop(),Z}expression=this.description;reduceJsonSchema(Q){if(this.prefix)Q.prefixItems=this.prefix.map((X)=>X.toJsonSchema());if(this.optionals)I1(N6(`Optional tuple element${this.optionalsLength>1?"s":""} ${this.optionals.join(", ")}`));if(this.variadic){if(Q.items=this.variadic?.toJsonSchema(),this.minLength)Q.minItems=this.minLength;if(this.maxLength)Q.maxItems=this.maxLength}else Q.items=!1,delete Q.minItems,delete Q.maxItems;if(this.postfix)I1(N6(`Postfix tuple element${this.postfixLength>1?"s":""} ${this.postfix.join(", ")}`));return Q}}var jH={implementation:hE,Node:jV},fE=(Q)=>{let X=[];if(Q.prefix?.forEach((Z)=>X.push({kind:"prefix",node:Z})),Q.defaultables?.forEach(([Z,J])=>X.push({kind:"defaultables",node:Z,default:J})),Q.optionals?.forEach((Z)=>X.push({kind:"optionals",node:Z})),Q.variadic)X.push({kind:"variadic",node:Q.variadic});return Q.postfix?.forEach((Z)=>X.push({kind:"postfix",node:Z})),X},EV=(Q)=>Q.reduce((X,Z)=>{if(Z.kind==="variadic")X.variadic=Z.node;else if(Z.kind==="defaultables")X.defaultables=h0(X.defaultables,[[Z.node,Z.default]]);else X[Z.kind]=h0(X[Z.kind],Z.node);return X},{}),SH="A postfix required element cannot follow an optional or defaultable element",bE="A postfix element requires a variadic element",p7=(Q)=>{let[X,...Z]=Q.l,[J,...G]=Q.r;if(!X||!J)return Q;let Y=Z.at(-1)?.kind==="postfix",H=G.at(-1)?.kind==="postfix",K=X.kind==="prefix"||J.kind==="prefix"?"prefix":X.kind==="postfix"||J.kind==="postfix"?"postfix":X.kind==="variadic"&&J.kind==="variadic"?"variadic":Y||H?"prefix":X.kind==="defaultables"||J.kind==="defaultables"?"defaultables":"optionals";if(X.kind==="prefix"&&J.kind==="variadic"&&H){let q=p7({...Q,fixedVariants:[],r:G.map((B)=>({...B,kind:"prefix"}))});if(q.disjoint.length===0)Q.fixedVariants.push(q)}else if(J.kind==="prefix"&&X.kind==="variadic"&&Y){let q=p7({...Q,fixedVariants:[],l:Z.map((B)=>({...B,kind:"prefix"}))});if(q.disjoint.length===0)Q.fixedVariants.push(q)}let z=$6(X.node,J.node,Q.ctx);if(z instanceof p1)if(K==="prefix"||K==="postfix")Q.disjoint.push(...z.withPrefixKey(K==="prefix"?`${Q.result.length}`:`-${Z.length+1}`,"required")),Q.result=[...Q.result,{kind:K,node:E1.intrinsic.never.internal}];else if(K==="optionals"||K==="defaultables")return Q;else return p7({...Q,fixedVariants:[],l:Z.map((q)=>({...q,kind:"prefix"})),r:Z.map((q)=>({...q,kind:"prefix"}))});else if(K==="defaultables"){if(X.kind==="defaultables"&&J.kind==="defaultables"&&X.default!==J.default)I1(LH(X.default,J.default));Q.result=[...Q.result,{kind:K,node:z,default:X.kind==="defaultables"?X.default:J.kind==="defaultables"?J.default:a0(`Unexpected defaultable intersection from ${X.kind} and ${J.kind} elements.`)}]}else Q.result=[...Q.result,{kind:K,node:z}];let W=Q.l.length,$=Q.r.length;if(X.kind!=="variadic"||W>=$&&(J.kind==="variadic"||$===1))Q.l=Z;if(J.kind!=="variadic"||$>=W&&(X.kind==="variadic"||W===1))Q.r=G;return p7(Q)};var kH="^(?:0|[1-9]\\d*)$",mE=new RegExp(kH),SV=g6(mE);var yV=(Q)=>(X)=>{if(X.props.length||X.index){let Z=X.index?.map(String)??[];if(X.props.forEach((G)=>Z.push(G[Q])),X.undeclared)Z.push(`+ (undeclared): ${X.undeclared}`);let J=`{ ${Z.join(", ")} }`;return X.sequence?`${J} & ${X.sequence.description}`:J}return X.sequence?.description??"{}"},_E=yV("description"),dE=yV("expression"),uE=N0({kind:"structure",hasAssociatedError:!1,normalize:(Q,X)=>{if(!Q.undeclared&&X.resolvedConfig.onUndeclaredKey!=="ignore")return{...Q,undeclared:X.resolvedConfig.onUndeclaredKey};return Q},keys:{required:{child:!0,parse:J8("required"),reduceIo:(Q,X,Z)=>{X.required=h0(X.required,Z.map((J)=>J[Q]));return}},optional:{child:!0,parse:J8("optional"),reduceIo:(Q,X,Z)=>{if(Q==="in"){X.optional=Z.map((J)=>J.in);return}Z.forEach((J)=>X[J.outProp.kind]=h0(X[J.outProp.kind],J.outProp.out))}},index:{child:!0,parse:J8("index")},sequence:{child:!0,parse:J8("sequence")},undeclared:{parse:(Q)=>Q==="ignore"?void 0:Q}},defaults:{description:_E},intersections:{structure:(Q,X,Z)=>{let J={...Q.inner},G={...X.inner},Y=new p1;if(Q.undeclared){let z=Q.keyof();if(X.requiredKeys.forEach((W)=>{if(!z.allows(W))Y.add("presence",E1.intrinsic.never.internal,X.propsByKey[W].value,{path:[W]})}),G.optional)G.optional=G.optional.filter((W)=>z.allows(W.key));if(G.index)G.index=G.index.flatMap((W)=>{if(W.signature.extends(z))return W;let $=i8(z,W.signature,Z.$);if($ instanceof p1)return[];let q=bJ($,W.value,Z.$);if(q.required)G.required=bQ(G.required,q.required);if(q.optional)G.optional=bQ(G.optional,q.optional);return q.index??[]})}if(X.undeclared){let z=X.keyof();if(Q.requiredKeys.forEach((W)=>{if(!z.allows(W))Y.add("presence",Q.propsByKey[W].value,E1.intrinsic.never.internal,{path:[W]})}),J.optional)J.optional=J.optional.filter((W)=>z.allows(W.key));if(J.index)J.index=J.index.flatMap((W)=>{if(W.signature.extends(z))return W;let $=i8(z,W.signature,Z.$);if($ instanceof p1)return[];let q=bJ($,W.value,Z.$);if(q.required)J.required=bQ(J.required,q.required);if(q.optional)J.optional=bQ(J.optional,q.optional);return q.index??[]})}let H={};if(Q.undeclared||X.undeclared)H.undeclared=Q.undeclared==="reject"||X.undeclared==="reject"?"reject":"delete";let K=cZ({kind:"structure",baseInner:H,l:iZ(J),r:iZ(G),roots:[],ctx:Z});if(K instanceof p1)Y.push(...K);if(Y.length)return Y;return K}}});class xV extends W9{impliedBasis=E1.intrinsic.object.internal;impliedSiblings=this.children.flatMap((Q)=>Q.impliedSiblings??[]);props=bQ(this.required,this.optional);propsByKey=w0(this.props,(Q,X)=>[X.key,X]);propsByKeyReference=g6(this.propsByKey);expression=dE(this);requiredKeys=this.required?.map((Q)=>Q.key)??[];optionalKeys=this.optional?.map((Q)=>Q.key)??[];literalKeys=[...this.requiredKeys,...this.optionalKeys];_keyof;keyof(){if(this._keyof)return this._keyof;let Q=this.$.units(this.literalKeys).branches;return this.index?.forEach(({signature:X})=>{Q=Q.concat(X.branches)}),this._keyof=this.$.node("union",Q)}map(Q){return this.$.node("structure",this.props.flatMap(Q).reduce((X,Z)=>{let J=this.propsByKey[Z.key];if(F6(Z)){if(Z.kind!=="required"&&Z.kind!=="optional")return I1(`Map result must have kind "required" or "optional" (was ${Z.kind})`);return X[Z.kind]=h0(X[Z.kind],Z),X}let G=Z.kind??J?.kind??"required",Y=w0(Z,(H,K)=>(H in m7.implementation.keys)?[H,K]:[]);return X[G]=h0(X[G],this.$.node(G,Y)),X},{}))}assertHasKeys(Q){let X=Q.filter((Z)=>!d7(Z,this.keyof()));if(X.length)return I1(kV(this.expression,X))}get(Q,...X){let Z,J=!1,G=pE(Q);if((typeof G==="string"||typeof G==="symbol")&&this.propsByKey[G])Z=this.propsByKey[G].value,J=this.propsByKey[G].required;if(this.index?.forEach((H)=>{if(d7(G,H.signature))Z=Z?.and(H.value)??H.value}),this.sequence&&d7(G,E1.intrinsic.nonNegativeIntegerString))if(r1(G,"root")){if(this.sequence.variadic)Z=Z?.and(this.sequence.element)??this.sequence.element}else{let H=Number.parseInt(G);if(HZ.hasKind("required")?this.$.node("optional",Z.inner):Z)})}require(){let{optional:Q,...X}=this.inner;return this.$.node("structure",{...X,required:this.props.map((Z)=>Z.hasKind("optional")?{key:Z.key,value:Z.value}:Z)})}merge(Q){let X=this.filterKeys("omit",[Q.keyof()]);if(Q.required)X.required=h0(X.required,Q.required);if(Q.optional)X.optional=h0(X.optional,Q.optional);if(Q.index)X.index=h0(X.index,Q.index);if(Q.sequence)X.sequence=Q.sequence;if(Q.undeclared)X.undeclared=Q.undeclared;else delete X.undeclared;return this.$.node("structure",X)}filterKeys(Q,X){let Z=OJ(this.inner),J=(G)=>{let Y=X.some((H)=>d7(G,H));return Q==="pick"?Y:!Y};if(Z.required)Z.required=Z.required.filter((G)=>J(G.key));if(Z.optional)Z.optional=Z.optional.filter((G)=>J(G.key));if(Z.index)Z.index=Z.index.filter((G)=>J(G.signature));return Z}traverseAllows=(Q,X)=>this._traverse("Allows",Q,X);traverseApply=(Q,X)=>this._traverse("Apply",Q,X);_traverse=(Q,X,Z)=>{let J=Z?.currentErrorCount??0;for(let Y=0;YJ)return!1;if(this.sequence){if(Q==="Allows"){if(!this.sequence.traverseAllows(X,Z))return!1}else if(this.sequence.traverseApply(X,Z),Z.failFast&&Z.currentErrorCount>J)return!1}if(!this.exhaustive)return!0;let G=Object.keys(X);G.push(...Object.getOwnPropertySymbols(X));for(let Y=0;Yz.value.traverseAllows(X[H],Z),Z))return!1}else if(A8(H,()=>z.value.traverseApply(X[H],Z),Z),Z.failFast&&Z.currentErrorCount>J)return!1;K=!0}}if(this.undeclared){if(K||=H in this.propsByKey,K||=this.sequence!==void 0&&typeof H==="string"&&E1.intrinsic.nonNegativeIntegerString.allows(H),!K){if(Q==="Allows")return!1;if(this.undeclared==="reject")Z.error({expected:"removed",actual:"",relativePath:[H]});else Z.queueMorphs([(z)=>{return delete z[H],z}]);if(Z.failFast)return!1}}}return!0};compile(Q){if(Q.traversalKind==="Apply")Q.initializeErrorCount();if(this.props.forEach((X)=>{if(Q.check(X),Q.traversalKind==="Apply")Q.returnIfFailFast()}),this.sequence){if(Q.check(this.sequence),Q.traversalKind==="Apply")Q.returnIfFailFast()}if(this.exhaustive)Q.const("keys","Object.keys(data)"),Q.line("keys.push(...Object.getOwnPropertySymbols(data))"),Q.for("i < keys.length",()=>this.compileExhaustiveEntry(Q));if(Q.traversalKind==="Allows")Q.return(!0)}compileExhaustiveEntry(Q){if(Q.const("k","keys[i]"),this.undeclared)Q.let("matched",!1);if(this.index?.forEach((X)=>{Q.if(`${Q.invoke(X.signature,{arg:"k",kind:"Allows"})}`,()=>{if(Q.traverseKey("k","data[k]",X.value),this.undeclared)Q.set("matched",!0);return Q})}),this.undeclared){if(this.props?.length!==0)Q.line(`matched ||= k in ${this.propsByKeyReference}`);if(this.sequence)Q.line(`matched ||= typeof k === "string" && ${SV}.test(k)`);Q.if("!matched",()=>{if(Q.traversalKind==="Allows")return Q.return(!1);return this.undeclared==="reject"?Q.line('ctx.error({ expected: "removed", actual: "", relativePath: [k] })').if("ctx.failFast",()=>Q.return()):Q.line("ctx.queueMorphs([data => { delete data[k]; return data }])")})}return Q}reduceJsonSchema(Q){switch(Q.type){case"object":return this.reduceObjectJsonSchema(Q);case"array":if(this.props.length||this.index)I1(N6(`Additional properties on array ${this.expression}`));return this.sequence?.reduceJsonSchema(Q)??Q;default:return lQ("structure",Q)}}reduceObjectJsonSchema(Q){if(this.props.length){if(Q.properties={},this.props.forEach((X)=>{if(typeof X.key==="symbol")return I1(N6(`Sybolic key ${X.serializedKey}`));Q.properties[X.key]=X.value.toJsonSchema()}),this.requiredKeys.length)Q.required=this.requiredKeys}if(this.index?.forEach((X)=>{if(X.signature.equals(E1.intrinsic.string))return Q.additionalProperties=X.value.toJsonSchema();if(!X.signature.extends(E1.intrinsic.string))return I1(N6(`Symbolic index signature ${X.signature.exclude(E1.intrinsic.string)}`));X.signature.branches.forEach((Z)=>{if(!Z.hasKind("intersection")||Z.pattern?.length!==1)return I1(N6(`Index signature ${Z}`));Q.patternProperties??={},Q.patternProperties[Z.pattern[0].rule]=X.value.toJsonSchema()})}),this.undeclared&&!Q.additionalProperties)Q.additionalProperties=!1;return Q}}var yH={implementation:uE,Node:xV},pE=(Q)=>{if(r1(Q,"root")&&Q.hasKind("unit"))Q=Q.unit;if(typeof Q==="number")Q=`${Q}`;return Q},lE=(Q,X)=>`${Q} is not allowed as an array index on ${X}. Use the 'nonNegativeIntegerString' keyword instead.`,bJ=(Q,X,Z)=>{let[J,G]=KU(Q.branches,(H)=>H.hasKind("unit"));if(!J.length)return{index:Z.node("index",{signature:Q,value:X})};let Y={};if(J.forEach((H)=>{let K=Z.node("required",{key:H.unit,value:X});Y[K.kind]=h0(Y[K.kind],K)}),G.length)Y.index=Z.node("index",{signature:G,value:X});return Y},cE=(Q)=>r1(Q,"root")?Q.expression:O0(Q),kV=(Q,X)=>`Key${X.length===1?"":"s"} ${X.map(cE).join(", ")} ${X.length===1?"does":"do"} not exist on ${Q}`;var oZ={...WV,alias:u7.implementation,domain:NH.implementation,unit:OH.implementation,proto:IH.implementation,union:AH.implementation,morph:MH.implementation,intersection:TH.implementation,divisor:WH.implementation,pattern:VH.implementation,predicate:YH.implementation,required:EH.implementation,optional:m7.implementation,index:wH.implementation,sequence:jH.implementation,structure:yH.implementation};E1.defaultConfig=Object.assign(w0(oZ,(Q,X)=>[Q,X.defaults]),{jitless:NU(),clone:FU,onUndeclaredKey:"ignore"});var BV={...qV,alias:u7.Node,domain:NH.Node,unit:OH.Node,proto:IH.Node,union:AH.Node,morph:MH.Node,intersection:TH.Node,divisor:WH.Node,pattern:VH.Node,predicate:YH.Node,required:EH.Node,optional:m7.Node,index:wH.Node,sequence:jH.Node,structure:yH.Node};class c4 extends d3{get[I8](){return"module"}}var xH=(Q,X)=>new c4(w0(Q,(Z,J)=>[Z,r1(J,"module")?xH(J,X):X.bindReference(J)]));var iE=(Q)=>G6(Q)?Q:("branches"in Q)&&G6(Q.branches)?Q.branches:void 0,nE=(Q,X)=>I1(`Node of kind ${X} is not valid as a ${Q} definition`),vV=(Q)=>`#${Q} duplicates public alias ${Q}`,gV={};E1.ambient??={};var hV;class mJ{config;resolvedConfig;id=`${Object.keys(gV).length}$`;get[I8](){return"scope"}referencesById={};references=[];resolutions={};json={};exportedNames=[];aliases={};resolved=!1;nodesByHash={};constructor(Q,X){this.config=X??{},this.resolvedConfig=uU(X),Object.entries(Q).map((J)=>this.preparseOwnAliasEntry(...J)).forEach(([J,G])=>{let Y=J;if(J[0]==="#"){if(Y=J.slice(1),Y in this.aliases)I1(vV(Y));this.aliases[Y]=G}else{if(Y in this.aliases)I1(vV(J));this.aliases[Y]=G,this.exportedNames.push(Y)}if(!r1(G,"module")&&!r1(G,"generic")&&!mQ(G)){let H=this.preparseOwnDefinitionFormat(G,{alias:Y});if(r1(H,"root"))this.resolutions[Y]=this.bindReference(H);else this.resolutions[Y]=this.createParseContext(H).id}}),hV??=this.node("union",{branches:["string","number","object","bigint","symbol",{unit:!0},{unit:!1},{unit:void 0},{unit:null}]},{prereduced:!0}),this.nodesByHash[hV.hash]=this.node("intersection",{},{prereduced:!0}),gV[this.id]=this}get internal(){return this}defineSchema(Q){return Q}generic=(...Q)=>{let X=this;return(Z,J)=>new pQ(Q,J?new kJ(Z):Z,X,X,J??null)};units=(Q,X)=>{let Z=[];for(let G of Q)if(!Z.includes(G))Z.push(G);let J=Z.map((G)=>this.node("unit",{unit:G},X));return this.node("union",J,{...X,prereduced:!0})};lazyResolutions=[];lazilyResolve(Q,X){let Z=this.node("alias",{reference:X??"synthetic",resolve:Q},{prereduced:!0});if(!this.resolved)this.lazyResolutions.push(Z);return Z}schema=(Q,X)=>this.finalize(this.parseSchema(Q,X));parseSchema=(Q,X)=>this.node(h7(Q),Q,X);preparseNode(Q,X,Z){let J=typeof Q==="string"?Q:h7(X,Q);if(F6(X)&&X.kind===J)return X;if(J==="alias"&&!Z?.prereduced){let{reference:H}=u7.implementation.normalize(X,this);if(H.startsWith("$")){let K=this.resolveRoot(H.slice(1));X=K,J=K.kind}}else if(J==="union"&&M8(X,"object")){let H=iE(X);if(H?.length===1)X=H[0],J=h7(X)}let Y=oZ[J].normalize?.(X,this)??X;if(F6(Y))return Y.kind===J?Y:nE(J,Y.kind);return{...Z,$:this,kind:J,def:Y,prefix:Z.alias??J}}bindReference(Q){let X=Q.$===this?Q:F6(Q)?new Q.constructor(Q.attachments,this):new pQ(Q.params,Q.bodyDef,Q.$,this,Q.hkt);if(!this.resolved)Object.assign(this.referencesById,X.referencesById);return X}resolveRoot(Q){return this.maybeResolveRoot(Q)??I1(hH(Q))}maybeResolveRoot(Q){let X=this.maybeResolve(Q);if(r1(X,"generic"))return;return X}maybeResolveSubalias(Q){return vH(this.aliases,Q)??vH(this.ambient,Q)}get ambient(){return E1.ambient}maybeResolve(Q){let X=this.resolutions[Q];if(X){if(typeof X!=="string")return X;let J=F8[X];if(r1(J,"root"))return this.resolutions[Q]=J;if(r1(J,"context")){if(J.phase==="resolving")return this.node("alias",{reference:`$${Q}`},{prereduced:!0});if(J.phase==="resolved")return a0(`Unexpected resolved context for was uncached by its scope: ${O0(J)}`);J.phase="resolving";let G=this.bindReference(this.parseOwnDefinitionFormat(J.def,J));return J.phase="resolved",F8[G.id]=G,F8[J.id]=G,this.resolutions[Q]=G}return a0(`Unexpected nodesById entry for ${X}: ${O0(J)}`)}let Z=this.aliases[Q]??this.ambient?.[Q];if(!Z)return this.maybeResolveSubalias(Q);if(Z=this.normalizeRootScopeValue(Z),r1(Z,"generic"))return this.resolutions[Q]=this.bindReference(Z);if(r1(Z,"module"))if(Z.root)return this.resolutions[Q]=this.bindReference(Z.root);else return I1(_V(Q));return this.resolutions[Q]=this.parse(Z,{alias:Q})}createParseContext(Q){let X=Q.id??PH(Q.prefix);return F8[X]=Object.assign(Q,{[I8]:"context",$:this,id:X,phase:"unresolved"})}import(...Q){return new c4(w0(this.export(...Q),(X,Z)=>[`#${X}`,Z]))}precompilation;_exportedResolutions;_exports;export(...Q){if(!this._exports){this._exports={};for(let Z of this.exportedNames){let J=this.aliases[Z];this._exports[Z]=r1(J,"module")?xH(J,this):fV(this.maybeResolve(Z))}if(this.lazyResolutions.forEach((Z)=>Z.resolution),this.resolvedConfig.ambient===!0)Object.assign(E1.ambient,this._exports);else if(typeof this.resolvedConfig.ambient==="string")Object.assign(E1.ambient,{[this.resolvedConfig.ambient]:new c4({...this._exports})});if(this._exportedResolutions=mV(this,this._exports),Object.assign(this.json,bV(this._exportedResolutions)),Object.assign(this.resolutions,this._exportedResolutions),this.references=Object.values(this.referencesById),!this.resolvedConfig.jitless)this.precompilation=uV(this.references),dV(this.references,this.precompilation);this.resolved=!0}let X=Q.length?Q:this.exportedNames;return new c4(w0(X,(Z,J)=>[J,this._exports[J]]))}resolve(Q){return this.export()[Q]}node=(Q,X,Z={})=>{let J=this.preparseNode(Q,X,Z);if(F6(J))return this.bindReference(J);let G=this.createParseContext(J);return F8[G.id]=this.bindReference(FH(G))};parse=(Q,X={})=>this.finalize(this.parseDefinition(Q,X));parseDefinition(Q,X={}){if(r1(Q,"root"))return this.bindReference(Q);let Z=this.preparseOwnDefinitionFormat(Q,X);if(r1(Z,"root"))return this.bindReference(Z);let J=this.createParseContext(Z);F8[J.id]=J;let G=this.bindReference(this.parseOwnDefinitionFormat(Q,J));if(G.isCyclic)G=$V(G,J.id);return F8[J.id]=G,G}finalize(Q){if(fV(Q),!Q.precompilation&&!this.resolvedConfig.jitless)aE(Q.references);return Q}}class gH extends mJ{parseOwnDefinitionFormat(Q,X){return FH(X)}preparseOwnDefinitionFormat(Q,X){return this.preparseNode(h7(Q),Q,X)}preparseOwnAliasEntry(Q,X){return[Q,X]}normalizeRootScopeValue(Q){return Q}}var fV=(Q)=>{return Q.references.filter((X)=>X.hasKind("alias")).forEach((X)=>{Object.assign(X.referencesById,X.resolution.referencesById),Q.references.forEach((Z)=>{if(X.id in Z.referencesById)Object.assign(Z.referencesById,X.referencesById)})}),Q},bV=(Q)=>w0(Q,(X,Z)=>[X,r1(Z,"root")||r1(Z,"generic")?Z.json:r1(Z,"module")?bV(Z):a0(`Unexpected resolution ${O0(Z)}`)]),vH=(Q,X)=>{let Z=X.indexOf(".");if(Z===-1)return;let J=X.slice(0,Z),G=Q[J];if(G===void 0)return;if(!r1(G,"module"))return I1(oE(J));let Y=X.slice(Z+1),H=G[Y];if(H===void 0)return vH(G,Y);if(r1(H,"root")||r1(H,"generic"))return H;if(r1(H,"module"))return H.root??I1(_V(X));a0(`Unexpected resolution for alias '${X}': ${O0(H)}`)},_J=(Q,X)=>new gH(Q,X),l7=new gH({});var mV=(Q,X)=>{let Z={};for(let J in X){let G=X[J];if(r1(G,"module")){let Y=mV(Q,G),H=w0(Y,(K,z)=>[`${J}.${K}`,z]);Object.assign(Z,H)}else if(r1(G,"root")||r1(G,"generic"))Z[J]=G;else a0(`Unexpected scope resolution ${O0(G)}`)}return Z},hH=(Q)=>`'${Q}' is unresolvable`,oE=(Q)=>`'${Q}' must reference a module to be accessed using dot syntax`,_V=(Q)=>`Reference to submodule '${Q}' must specify an alias`,aE=(Q)=>dV(Q,uV(Q)),dV=(Q,X)=>{let Z=sE(X);for(let J of Q){if(J.precompilation)continue;if(J.traverseAllows=Z[`${J.id}Allows`].bind(Z),J.isRoot()&&!J.allowsRequiresContext)J.allows=J.traverseAllows;J.traverseApply=Z[`${J.id}Apply`].bind(Z),J.precompilation=X}},sE=(Q)=>new RJ().return(Q).compile()(),uV=(Q)=>Q.reduce((X,Z)=>{let J=new AJ("Allows").indent();Z.compile(J);let G=J.write(`${Z.id}Allows`),Y=new AJ("Apply").indent();Z.compile(Y);let H=Y.write(`${Z.id}Apply`);return`${X}${G}, ${H}, `},`{ `)+"}";l7.export();var{schema:s0,node:tZ,defineSchema:e41,generic:H9}=l7;var pV=_J({bigint:"bigint",boolean:[{unit:!1},{unit:!0}],false:{unit:!1},never:[],null:{unit:null},number:"number",object:"object",string:"string",symbol:"symbol",true:{unit:!0},unknown:{},undefined:{unit:void 0},Array,Date},{prereducedAliases:!0}).export();E1.intrinsic={...pV};var lV=_J({integer:{domain:"number",divisor:1},lengthBoundable:["string",Array],key:["string","symbol"],nonNegativeIntegerString:{domain:"string",pattern:kH}},{prereducedAliases:!0}).export();Object.assign(E1.intrinsic,lV);var tE=_J({jsonPrimitive:["string","number",{unit:!0},{unit:!1},{unit:null}],jsonObject:{domain:"object",index:{signature:"string",value:"$jsonData"}},jsonArray:{proto:Array,sequence:"$jsonData"},jsonData:["$jsonPrimitive","$jsonObject","$jsonArray"],json:["$jsonObject","$jsonArray"]},{prereducedAliases:!0}).export(),P0={...pV,...lV,...tE,emptyStructure:tZ("structure",{},{prereduced:!0})};E1.intrinsic={...P0};var iV=(Q)=>typeof Q==="string"&&Q[0]==="d"&&(Q[1]==="'"||Q[1]==='"')&&Q.at(-1)===Q[1],cV=(Q)=>Q.toString()!=="Invalid Date",nV=(Q)=>Q.slice(2,-1),fH=(Q)=>`'${Q}' could not be parsed by the Date constructor`,oV=(Q,X)=>rE(Q,X),rE=(Q,X)=>{let Z=new Date(Q);if(cV(Z))return Z;let J=jU(Q);if(J!==void 0){let G=new Date(J);if(cV(G))return G}return X?I1(X===!0?fH(Q):X):void 0};var bH=(Q,X)=>{let Z=Q.scanner.shiftUntil(eE[sV[X]]);if(Q.scanner.lookahead==="")return Q.error(Z2(Z,X));if(Q.scanner.shift(),X==="/"){try{new RegExp(Z)}catch(J){I1(String(J))}Q.root=Q.ctx.$.node("intersection",{domain:"string",pattern:Z},{prereduced:!0})}else if(a6(X,mH))Q.root=Q.ctx.$.node("unit",{unit:Z});else{let J=oV(Z,fH(Z));Q.root=Q.ctx.$.node("unit",{meta:Z,unit:J})}},mH={"'":1,'"':1},aV={"/":1,"'":1,'"':1},sV={"d'":"'",'d"':'"',"'":"'",'"':'"',"/":"/"},eE={"'":(Q)=>Q.lookahead==="'",'"':(Q)=>Q.lookahead==='"',"/":(Q)=>Q.lookahead==="/"},Q2={'"':"double-quote","'":"single-quote","/":"forward slash"},Z2=(Q,X)=>`${X}${Q} requires a closing ${Q2[sV[X]]}`;var tV=(Q)=>`Private type references should not include '#'. Use '${Q}' instead.`,dJ="Optional definitions like 'string?' are only valid as properties in an object or tuple",uJ="Defaultable definitions like 'number = 0' are only valid as properties in an object or tuple";var rV={">":!0,">=":!0},eV={"<":!0,"<=":!0};var rZ={"<":">",">":"<","<=":">=",">=":"<=","==":"=="},QP=(Q)=>`Unmatched )${Q===""?"":` before ${Q}`}`,pJ=(Q)=>`Missing ${Q}`,ZP=(Q,X)=>`Left bounds are only valid when paired with right bounds (try ...${X}${Q})`,lJ=(Q)=>`Left-bounded expressions must specify their limits using < or <= (was ${Q})`,XP=(Q,X,Z,J)=>`An expression may have at most one left bound (parsed ${Q}${rZ[X]}, ${Z}${rZ[J]})`;var JP=(Q,X,Z)=>GP(Q,X,Z,[]),GP=(Q,X,Z,J)=>{let G=Z.parseUntilFinalizer();if(J.push(G.root),G.finalizer===">"){if(J.length!==X.params.length)return Z.error(_H(Q,X.names,J.map((Y)=>Y.expression)));return J}if(G.finalizer===",")return GP(Q,X,Z,J);return G.error(pJ(">"))},_H=(Q,X,Z)=>`${Q}<${X.join(", ")}> requires exactly ${X.length} args (got ${Z.length}${Z.length===0?"":`: ${Z.join(", ")}`})`;var dH=(Q)=>{let X=Q.scanner.shiftUntilNextTerminator();if(X==="keyof")Q.addPrefix("keyof");else Q.root=J2(Q,X)},X2=(Q,X,Z)=>{if(Z.scanner.shiftUntilNonWhitespace(),Z.scanner.shift()!=="<")return Z.error(_H(Q,X.names,[]));let G=JP(Q,X,Z);return X(...G)},J2=(Q,X)=>G2(Q,X)??Y2(Q,X)??Q.error(X===""?Q.scanner.lookahead==="#"?tV(Q.shiftedByOne().scanner.shiftUntilNextTerminator()):uH(Q):hH(X)),G2=(Q,X)=>{if(Q.ctx.args?.[X]){let J=Q.ctx.args[X];if(typeof J!=="string")return J;return Q.ctx.$.node("alias",{reference:J},{prereduced:!0})}let Z=Q.ctx.$.maybeResolve(X);if(r1(Z,"root"))return Z;if(Z===void 0)return;if(r1(Z,"generic"))return X2(X,Z,Q);return I1(`Unexpected resolution ${O0(Z)}`)},Y2=(Q,X)=>{let Z=SU(X);if(Z!==void 0)return Q.ctx.$.node("unit",{unit:Z});let J=yU(X);if(J!==void 0)return Q.ctx.$.node("unit",{unit:J})},uH=(Q)=>{let X=Q.previousOperator();return X?pH(X,Q.scanner.unscanned):W2(Q.scanner.unscanned)},pH=(Q,X="")=>`Token '${Q}' requires a right operand${X?` before '${X}'`:""}`,W2=(Q)=>`Expected an expression${Q?` before '${Q}'`:""}`;var lH=(Q)=>Q.scanner.lookahead===""?Q.error(uH(Q)):Q.scanner.lookahead==="("?Q.shiftedByOne().reduceGroupOpen():Q.scanner.lookaheadIsIn(aV)?bH(Q,Q.scanner.shift()):Q.scanner.lookaheadIsIn(dQ)?lH(Q.shiftedByOne()):Q.scanner.lookahead==="d"?Q.scanner.nextLookahead in mH?bH(Q,`${Q.scanner.shift()}${Q.scanner.shift()}`):dH(Q):dH(Q);class TQ extends s3{shiftUntilNextTerminator(){return this.shiftUntilNonWhitespace(),this.shiftUntil(()=>(this.lookahead in TQ.terminatingChars))}static terminatingChars={"<":1,">":1,"=":1,"|":1,"&":1,")":1,"[":1,"%":1,",":1,":":1,"?":1,"#":1,...dQ};static finalizingLookaheads={">":1,",":1,"":1,"=":1,"?":1};static lookaheadIsFinalizing=(Q,X)=>Q===">"?X[0]==="="?X[1]==="=":X.trimStart()===""||a6(X.trimStart()[0],TQ.terminatingChars):Q==="="?X[0]!=="=":Q===","||Q==="?"}var WP=(Q,X)=>{let Z=q2(Q,X);if(Q.root.hasKind("unit")){if(typeof Q.root.unit==="number"){Q.reduceLeftBound(Q.root.unit,Z),Q.unsetRoot();return}if(Q.root.unit instanceof Date){let J=`d'${Q.root.description??Q.root.unit.toISOString()}'`;Q.unsetRoot(),Q.reduceLeftBound(J,Z);return}}return z2(Q,Z)},qP={"<":1,">":1,"=":1},q2=(Q,X)=>Q.scanner.lookaheadIs("=")?`${X}${Q.scanner.shift()}`:X;var YP=(Q,X,Z,J)=>{if(Z.extends(E1.intrinsic.number)){if(typeof X!=="number")return I1(cH(Q,X,J));return Q==="=="?["min","max"]:Q[0]===">"?["min"]:["max"]}if(Z.extends(E1.intrinsic.lengthBoundable)){if(typeof X!=="number")return I1(cH(Q,X,J));return Q==="=="?["exactLength"]:Q[0]===">"?["minLength"]:["maxLength"]}if(Z.extends(E1.intrinsic.Date))return Q==="=="?["after","before"]:Q[0]===">"?["after"]:["before"];return I1(rU(Z.expression))},H2=(Q)=>({rule:iV(Q.limit)?nV(Q.limit):Q.limit,exclusive:Q.comparator.length===1}),z2=(Q,X)=>{let Z=Q.unsetRoot(),J=Q.scanner.location;Q.parseOperand();let G=Q.unsetRoot(),Y=Q.scanner.sliceChars(J,Q.scanner.location);if(Q.root=Z,!G.hasKind("unit")||typeof G.unit!=="number"&&!(G.unit instanceof Date))return Q.error(cH(X,Y,"right"));let H=G.unit,K=X.length===1,z=YP(X,typeof H==="number"?H:Y,Z,"right");for(let $ of z)Q.constrainRoot($,X==="=="?{rule:H}:{rule:H,exclusive:K});if(!Q.branches.leftBound)return;if(!a6(X,eV))return Q.error(lJ(X));let W=YP(Q.branches.leftBound.comparator,Q.branches.leftBound.limit,Z,"left");Q.constrainRoot(W[0],H2(Q.branches.leftBound)),Q.branches.leftBound=null},cH=(Q,X,Z)=>`Comparator ${Z==="left"?rZ[Q]:Q} must be ${Z==="left"?"preceded":"followed"} by a corresponding literal (was ${X})`;var HP=(Q)=>{Q.scanner.shiftUntilNonWhitespace();let X=Q.scanner.shiftUntilNextTerminator();Q.root=Q.root.brand(X)};var KP=(Q)=>{let X=Q.scanner.shiftUntilNextTerminator(),Z=kU(X,{errorOnFail:zP(X)});if(Z===0)Q.error(zP(0));Q.root=Q.root.constrain("divisor",Z)},zP=(Q)=>`% operator must be followed by a non-zero integer literal (was ${Q})`;var iH=(Q)=>{let X=Q.scanner.shift();return X===""?Q.finalize(""):X==="["?Q.scanner.shift()==="]"?Q.setRoot(Q.root.array()):Q.error(K2):X==="|"||X==="&"?Q.pushRootToBranch(X):X===")"?Q.finalizeGroup():TQ.lookaheadIsFinalizing(X,Q.scanner.unscanned)?Q.finalize(X):a6(X,qP)?WP(Q,X):X==="%"?KP(Q):X==="#"?HP(Q):(X in dQ)?iH(Q):Q.error(cJ(X))},cJ=(Q,X="")=>`'${Q}' is not allowed here${X&&` (should be ${X})`}`,K2="Missing expected ']'";var $P=(Q)=>{let X=Q.unsetRoot();Q.parseOperand();let Z=Q.unsetRoot();if(!Z.hasKind("unit"))return Q.error($2(Z.expression));let J=Z.unit instanceof Date?()=>new Date(Z.unit):Z.unit;return[X,"=",J]},$2=(Q)=>`Default value '${Q}' must a literal value`;var nH=(Q,X)=>{let Z=X.$.maybeResolveRoot(Q);if(Z)return Z;let J=Q.endsWith("[]")?X.$.maybeResolveRoot(Q.slice(0,-2))?.array():void 0;if(J)return J;let G=new eZ(new TQ(Q),X),Y=B2(G);if(G.finalizer===">")I1(cJ(">"));return Y},B2=(Q)=>{Q.parseOperand();let X=c7(Q).root;if(!X)return a0(`Root was unexpectedly unset after parsing string '${Q.scanner.scanned}'`);if(Q.finalizer==="=")X=$P(Q);else if(Q.finalizer==="?")X=[X,"?"];if(Q.scanner.shiftUntilNonWhitespace(),Q.scanner.lookahead)I1(cJ(Q.scanner.lookahead));return X},c7=(Q)=>{while(Q.finalizer===void 0)U2(Q);return Q},U2=(Q)=>Q.hasRoot()?Q.parseOperator():Q.parseOperand();class eZ{root;branches={prefixes:[],leftBound:null,intersection:null,union:null};finalizer;groups=[];scanner;ctx;constructor(Q,X){this.scanner=Q,this.ctx=X}error(Q){return I1(Q)}hasRoot(){return this.root!==void 0}setRoot(Q){this.root=Q}unsetRoot(){let Q=this.root;return this.root=void 0,Q}constrainRoot(...Q){this.root=this.root.constrain(Q[0],Q[1])}finalize(Q){if(this.groups.length)return this.error(pJ(")"));this.finalizeBranches(),this.finalizer=Q}reduceLeftBound(Q,X){let Z=rZ[X];if(!a6(Z,rV))return this.error(lJ(X));if(this.branches.leftBound)return this.error(XP(this.branches.leftBound.limit,this.branches.leftBound.comparator,Q,Z));this.branches.leftBound={comparator:Z,limit:Q}}finalizeBranches(){if(this.assertRangeUnset(),this.branches.union)this.pushRootToBranch("|"),this.root=this.branches.union;else if(this.branches.intersection)this.pushRootToBranch("&"),this.root=this.branches.intersection;else this.applyPrefixes()}finalizeGroup(){this.finalizeBranches();let Q=this.groups.pop();if(!Q)return this.error(QP(this.scanner.unscanned));this.branches=Q}addPrefix(Q){this.branches.prefixes.push(Q)}applyPrefixes(){while(this.branches.prefixes.length){let Q=this.branches.prefixes.pop();this.root=Q==="keyof"?this.root.keyof():a0(`Unexpected prefix '${Q}'`)}}pushRootToBranch(Q){this.assertRangeUnset(),this.applyPrefixes();let X=this.root;if(this.branches.intersection=this.branches.intersection?.rawAnd(X)??X,Q==="|")this.branches.union=this.branches.union?.rawOr(this.branches.intersection)??this.branches.intersection,this.branches.intersection=null;this.root=void 0}parseUntilFinalizer(){return c7(new eZ(this.scanner,this.ctx))}parseOperator(){return iH(this)}parseOperand(){return lH(this)}assertRangeUnset(){if(this.branches.leftBound)return this.error(ZP(this.branches.leftBound.limit,this.branches.leftBound.comparator))}reduceGroupOpen(){this.groups.push(this.branches),this.branches={prefixes:[],leftBound:null,union:null,intersection:null}}previousOperator(){return this.branches.leftBound?.comparator??this.branches.prefixes.at(-1)??(this.branches.intersection?"&":this.branches.union?"|":void 0)}shiftedByOne(){return this.scanner.shift(),this}}var V2="An empty string is not a valid generic parameter name",iJ=(Q,X,Z)=>{Q.shiftUntilNonWhitespace();let J=Q.shiftUntilNextTerminator();if(J===""){if(Q.lookahead===""&&X.length)return X;return I1(V2)}return Q.shiftUntilNonWhitespace(),P2(Q,J,X,Z)},BP="extends ",P2=(Q,X,Z,J)=>{if(Q.shiftUntilNonWhitespace(),Q.unscanned.startsWith(BP))Q.jumpForward(BP.length);else{if(Q.lookahead===",")Q.shift();return Z.push(X),iJ(Q,Z,J)}let G=c7(new eZ(Q,J));return Z.push([X,G.root]),iJ(Q,Z,J)};var nJ=(Q,X)=>{if(G6(Q)){if(Q[1]==="=")return[X.$.parseOwnDefinitionFormat(Q[0],X),"=",Q[2]];if(Q[1]==="?")return[X.$.parseOwnDefinitionFormat(Q[0],X),"?"]}return oJ(Q,X)},UP="Only required keys may make their values optional, e.g. { [mySymbol]: ['number', '?'] }",VP="Only required keys may specify default values, e.g. { value: 'number = 0' }";var PP=(Q,X)=>{let Z,J={},G=w7(Q);for(let[H,K]of G){let z=L2(H);if(z.kind==="spread"){if(!O9(J))return I1(D2);let D=X.$.parseOwnDefinitionFormat(K,X);if(!D.hasKind("intersection")||!D.structure)return I1(C2(D.expression));Z=D.structure;continue}if(z.kind==="undeclared"){if(K!=="reject"&&K!=="delete"&&K!=="ignore")I1(F2(K));J.undeclared=K;continue}let W=nJ(K,X),$=z;if(z.kind==="required"){if(!G6(W))oH(J,"required",{key:z.normalized,value:W},X);else oH(J,"optional",W[1]==="="?{key:z.normalized,value:W[0],default:W[2]}:{key:z.normalized,value:W[0]},X);continue}if(G6(W)){if(W[1]==="?")I1(UP);if(W[1]==="=")I1(VP)}if(z.kind==="optional"){oH(J,"optional",{key:z.normalized,value:W},X);continue}let q=X.$.parseOwnDefinitionFormat($.normalized,X),B=bJ(q,W,X.$);if(B.index)J.index=h0(J.index,B.index);if(B.required)J.required=h0(J.required,B.required)}let Y=X.$.node("structure",J);return X.$.parseSchema({domain:"object",structure:Z?.merge(Y)??Y})},oH=(Q,X,Z,J)=>{Q[X]=h0(Q[X],J.$.node(X,Z))},F2=(Q)=>`Value of '+' key must be 'reject', 'delete', or 'ignore' (was ${O0(Q)})`,D2="Spread operator may only be used as the first key in an object",L2=(Q)=>typeof Q==="symbol"?{kind:"required",normalized:Q}:Q.at(-1)==="?"?Q.at(-2)===k7?{kind:"required",normalized:`${Q.slice(0,-2)}?`}:{kind:"optional",normalized:Q.slice(0,-1)}:Q[0]==="["&&Q.at(-1)==="]"?{kind:"index",normalized:Q.slice(1,-1)}:Q[0]===k7&&Q[1]==="["&&Q.at(-1)==="]"?{kind:"required",normalized:Q.slice(1)}:Q==="..."?{kind:"spread"}:Q==="+"?{kind:"undeclared"}:{kind:"required",normalized:Q==="\\..."?"...":Q==="\\+"?"+":Q},C2=(Q)=>`Spread operand must resolve to an object literal type (was ${Q})`;var LP=(Q,X)=>O2(Q)?TP[Q[0]](Q,X):M2(Q)?NP[Q[1]](Q,X):null,N2=(Q,X)=>X.$.parseOwnDefinitionFormat(Q[1],X).keyof(),FP=(Q,X)=>{if(Q[2]===void 0)return I1(pH(Q[1],""));let Z=X.$.parseOwnDefinitionFormat(Q[0],X),J=X.$.parseOwnDefinitionFormat(Q[2],X);if(Q[1]==="|")return X.$.node("union",{branches:[Z,J]});let G=i8(Z,J,X.$);if(G instanceof p1)return G.throw();return G},T2=(Q,X)=>X.$.parseOwnDefinitionFormat(Q[0],X).array(),M2=(Q)=>NP[Q[1]]!==void 0,I2=(Q,X)=>{if(typeof Q[2]!=="function")return I1(CP("=>",Q[2]));return X.$.parseOwnDefinitionFormat(Q[0],X).pipe(Q[2])},CP=(Q,X)=>`${Q===":"?"Narrow":"Morph"} expression requires a function following '${Q}' (was ${typeof X})`,R2=(Q,X)=>{if(typeof Q[2]!=="function")return I1(CP(":",Q[2]));return X.$.parseOwnDefinitionFormat(Q[0],X).constrain("predicate",Q[2])},A2=(Q,X)=>X.$.parseOwnDefinitionFormat(Q[0],X).configureShallowDescendants(Q[2]),NP={"[]":T2,"|":FP,"&":FP,":":R2,"=>":I2,"@":A2,"=":()=>I1(uJ),"?":()=>I1(dJ)},TP={keyof:N2,instanceof:(Q,X)=>{if(typeof Q[1]!=="function")return I1(DP(j7(Q[1])));let Z=Q.slice(1).map((J)=>typeof J==="function"?X.$.node("proto",{proto:J}):I1(DP(j7(J))));return Z.length===1?Z[0]:X.$.node("union",{branches:Z})},"===":(Q,X)=>X.$.units(Q.slice(1))},O2=(Q)=>TP[Q[0]]!==void 0,DP=(Q)=>`Expected a constructor following 'instanceof' operator (was ${Q})`;var RP=(Q,X)=>{let Z=[{}],J=0;while(JH.distribute(($)=>E2(OJ(W),$)))}else Z=Z.map((W)=>{if(K==="?")return AP(W,H);if(K==="=")return w2(W,H,z);return aH(W,H)})}return X.$.parseSchema(Z.map((G)=>O9(G)?{proto:Array,exactLength:0}:{proto:Array,sequence:G}))},aH=(Q,X)=>{if(Q.defaultables||Q.optionals)return I1(Q.variadic?SH:S2);if(Q.variadic)Q.postfix=h0(Q.postfix,X);else Q.prefix=h0(Q.prefix,X);return Q},AP=(Q,X)=>{if(Q.variadic)return I1(OP);return Q.optionals=h0(Q.optionals,X),Q},w2=(Q,X,Z)=>{if(Q.variadic)return I1(OP);if(Q.optionals)return I1(k2);return Q.defaultables=h0(Q.defaultables,[[X,Z]]),Q},MP=(Q,X)=>{if(Q.postfix)I1(IP);if(Q.variadic){if(!Q.variadic.equals(X))I1(IP)}else Q.variadic=X.internal;return Q},E2=(Q,X)=>{let Z=X.firstReferenceOfKind("sequence");if(!Z)return MP(Q,E1.intrinsic.unknown);if(Z.prefix?.forEach((J)=>aH(Q,J)),Z.optionals?.forEach((J)=>AP(Q,J)),Z.variadic)MP(Q,Z.variadic);return Z.postfix?.forEach((J)=>aH(Q,J)),Q},j2=(Q)=>`Spread element must be an array (was ${Q})`,IP="A tuple may have at most one variadic element",S2="A required element may not follow an optional element",OP="An optional element may not follow a variadic element";var k2="A defaultable element may not follow an optional element without a default";var y2={},oJ=(Q,X)=>{if(typeof Q==="string"){if(X.args&&Object.keys(X.args).some((J)=>Q.includes(J)))return nH(Q,X);let Z=y2[X.$.id]??={};return Z[Q]??=nH(Q,X)}return M8(Q,"object")?x2(Q,X):I1(sH(P8(Q)))},x2=(Q,X)=>{let Z=E7(Q);switch(Z){case void 0:if(r1(Q,"root"))return Q;return PP(Q,X);case"Array":return v2(Q,X);case"RegExp":return X.$.node("intersection",{domain:"string",pattern:Q},{prereduced:!0});case"Function":{let J=mQ(Q)?Q():Q;if(r1(J,"root"))return J;return I1(sH("Function"))}default:return I1(sH(Z??O0(Q)))}},v2=(Q,X)=>LP(Q,X)??RP(Q,X),sH=(Q)=>`Type definitions must be strings or objects (was ${Q})`;class tH extends _Q{constructor(Q){let X=Object.assign({errors:R8,hkt:X8,$:Q,raw:Q.parse,module:Q.constructor.module,scope:Q.constructor.scope,define:Q.define,generic:Q.generic,schema:Q.schema,keywords:Q.ambient,unit:Q.unit,enumerated:Q.enumerated,instanceOf:Q.instanceOf},Q.ambientAttachments);super((...Z)=>{if(Z.length===1)return Q.parse(Z[0]);if(Z.length===2&&typeof Z[0]==="string"&&Z[0][0]==="<"&&Z[0].at(-1)===">"){let J=Z[0].slice(1,-1),G=Q.parseGenericParams(J,{});return new pQ(G,Z[1],Q,Q,null)}return Q.parse(Z)},{bind:Q,attach:X})}}var aJ=E1;class sJ extends mJ{cacheGetter(Q,X){return Object.defineProperty(this,Q,{value:X}),X}get ambientAttachments(){if(!aJ.typeAttachments)return;return this.cacheGetter("ambientAttachments",w0(aJ.typeAttachments,(Q,X)=>[Q,this.bindReference(X)]))}preparseOwnAliasEntry(Q,X){let Z=Q.indexOf("<");if(Z===-1)return[Q,X];if(Q.at(-1)!==">")I1("'>' must be the last character of a generic declaration in a scope");let J=Q.slice(0,Z),G=Q.slice(Z+1,-1);return[J,()=>{let Y=this.parseGenericParams(G,{alias:J});return nU(Y,X,this)}]}parseGenericParams(Q,X){return iJ(new TQ(Q),[],this.createParseContext({...X,def:Q,prefix:"generic"}))}normalizeRootScopeValue(Q){if(mQ(Q)&&!r1(Q,"generic"))return Q();return Q}preparseOwnDefinitionFormat(Q,X){return{...X,def:Q,prefix:X.alias??"type"}}parseOwnDefinitionFormat(Q,X){if(!(X.alias&&(X.alias in this.aliases))&&!X.args)X.args={this:X.id};let J=oJ(Q,X);if(G6(J)){if(J[1]==="=")return I1(uJ);if(J[1]==="?")return I1(dJ)}return J}unit=(Q)=>this.units([Q]);enumerated=(...Q)=>this.units(Q);instanceOf=(Q)=>this.node("proto",{proto:Q},{prereduced:!0});type=new tH(this);declare=()=>({type:this.type});define(Q){return Q}static scope=(Q,X={})=>new sJ(Q,X);static module=(Q,X={})=>this.scope(Q,X).export()}var rH=Object.assign(sJ.scope,{define:(Q)=>Q}),k0=sJ;class wP extends X8{}var g2=H9(["base",P0.object],["props",P0.object])((Q)=>Q.base.merge(Q.props),wP),eH=k0.module({Key:P0.key,Merge:g2});class EP extends X8{}var h2=H9("element")((Q)=>{let X=Q.element.exclude(P0.Array),Z=X.array();return X.rawOr(Z).pipe(gZ).distribute((J)=>J.assertHasKind("morph").declareOut(Z),s0)},EP),jP=k0.module({root:P0.Array,readonly:"root",index:P0.nonNegativeIntegerString,liftFrom:h2});var Qz=s0(["string",m4.FileConstructor]),f2=Qz.rawOr(Qz.array()),SP=s0({meta:"an object representing parsed form data",domain:"object",index:{signature:"string",value:f2}}),kP=k0.module({root:["instanceof",FormData],value:Qz,parsed:SP,parse:s0({in:FormData,morphs:(Q)=>{let X={};for(let[Z,J]of Q)if(Z in X){let G=X[Z];if(typeof G==="string"||G instanceof m4.FileConstructor)X[Z]=[G,J];else G.push(J)}else X[Z]=J;return X},declaredOut:SP})});var yP=k0.module({Int8:["instanceof",Int8Array],Uint8:["instanceof",Uint8Array],Uint8Clamped:["instanceof",Uint8ClampedArray],Int16:["instanceof",Int16Array],Uint16:["instanceof",Uint16Array],Int32:["instanceof",Int32Array],Uint32:["instanceof",Uint32Array],Float32:["instanceof",Float32Array],Float64:["instanceof",Float64Array],BigInt64:["instanceof",BigInt64Array],BigUint64:["instanceof",BigUint64Array]});var b2={Boolean:1,Number:1,String:1},tJ=k0.module({...w0({...u3,...l3},(Q,X)=>(Q in b2)?[]:[Q,["instanceof",X]]),Array:jP,TypedArray:yP,FormData:kP});var m2=s0({domain:{domain:"number",meta:"a number representing a Unix timestamp"},divisor:{rule:1,meta:"an integer representing a Unix timestamp"},min:{rule:-8640000000000000,meta:"a Unix timestamp after -8640000000000000"},max:{rule:8640000000000000,meta:"a Unix timestamp before 8640000000000000"},meta:"an integer representing a safe Unix timestamp"}),_2=s0({domain:"number",divisor:1}),rJ=k0.module({root:P0.number,integer:_2,epoch:m2,safe:s0({domain:"number",min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,predicate:{predicate:(Q)=>!Number.isNaN(Q),meta:"a safe number"}}),NaN:["===",Number.NaN],Infinity:["===",Number.POSITIVE_INFINITY],NegativeInfinity:["===",Number.NEGATIVE_INFINITY]});var T6=(Q,X)=>tZ("intersection",{domain:"string",pattern:{rule:Q.source,flags:Q.flags,meta:X}}),xP=T6(y7,"a well-formed integer string"),lP=k0.module({root:xP,parse:s0({in:xP,morphs:(Q,X)=>{let Z=Number.parseInt(Q);return Number.isSafeInteger(Z)?Z:X.error("an integer in the range Number.MIN_SAFE_INTEGER to Number.MAX_SAFE_INTEGER")},declaredOut:P0.integer})}),d2=k0.module({root:T6(/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,"base64-encoded"),url:T6(/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2}(?:==|%3D%3D)?|[A-Za-z0-9_-]{3}(?:=|%3D)?)?$/,"base64url-encoded")}),vP=T6(/^[A-Z].*$/,"capitalized"),u2=k0.module({root:s0({in:"string",morphs:(Q)=>Q.charAt(0).toUpperCase()+Q.slice(1),declaredOut:vP}),preformatted:vP}),p2=(Q)=>{let X=Q.replace(/[- ]+/g,""),Z=0,J,G,Y=!1;for(let H=X.length-1;H>=0;H--){if(J=X.substring(H,H+1),G=Number.parseInt(J,10),Y)if(G*=2,G>=10)Z+=G%10+1;else Z+=G;else Z+=G;Y=!Y}return!!(Z%10===0?X:!1)},l2=/^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/,c2=s0({domain:"string",pattern:{meta:"a credit card number",rule:l2.source},predicate:{meta:"a credit card number",predicate:p2}});var i2=/^([+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([.,]\d+(?!:))?)?(\17[0-5]\d([.,]\d+)?)?([zZ]|([+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/;var n2=(Q)=>!Number.isNaN(new Date(Q).valueOf()),gP=s0({domain:"string",predicate:{meta:"a parsable date",predicate:n2}}).assertHasKind("intersection"),hP=lP.root.internal.narrow((Q,X)=>{let Z=Number.parseInt(Q),J=rJ.epoch(Z);if(J instanceof R8)return X.errors.merge(J),!1;return!0}).withMeta({description:"an integer string representing a safe Unix timestamp"}).assertHasKind("intersection"),o2=k0.module({root:hP,parse:s0({in:hP,morphs:(Q)=>new Date(Q),declaredOut:P0.Date})}),fP=T6(i2,"an ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) date").internal.assertHasKind("intersection"),a2=k0.module({root:fP,parse:s0({in:fP,morphs:(Q)=>new Date(Q),declaredOut:P0.Date})}),s2=k0.module({root:gP,parse:s0({declaredIn:gP,in:"string",morphs:(Q,X)=>{let Z=new Date(Q);if(Number.isNaN(Z.valueOf()))return X.error("a parsable date");return Z},declaredOut:P0.Date}),iso:a2,epoch:o2}),t2=T6(/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/,"an email address"),bP="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",cQ=`(${bP}[.]){3}${bP}`,r2=new RegExp(`^${cQ}$`),h6="(?:[0-9a-fA-F]{1,4})",e2=new RegExp(`^((?:${h6}:){7}(?:${h6}|:)|(?:${h6}:){6}(?:${cQ}|:${h6}|:)|(?:${h6}:){5}(?::${cQ}|(:${h6}){1,2}|:)|(?:${h6}:){4}(?:(:${h6}){0,1}:${cQ}|(:${h6}){1,3}|:)|(?:${h6}:){3}(?:(:${h6}){0,2}:${cQ}|(:${h6}){1,4}|:)|(?:${h6}:){2}(?:(:${h6}){0,3}:${cQ}|(:${h6}){1,5}|:)|(?:${h6}:){1}(?:(:${h6}){0,4}:${cQ}|(:${h6}){1,6}|:)|(?::((?::${h6}){0,5}:${cQ}|(?::${h6}){1,7}|:)))(%[0-9a-zA-Z.]{1,})?$`),Qj=k0.module({root:["v4 | v6","@","an IP address"],v4:T6(r2,"an IPv4 address"),v6:T6(e2,"an IPv6 address")}),i7="a JSON string",cP=(Q)=>{if(!(Q instanceof SyntaxError))throw Q;return`must be ${i7} (${Q})`},Zj=s0({domain:"string",predicate:{meta:i7,predicate:(Q,X)=>{try{return JSON.parse(Q),!0}catch(Z){return X.reject({code:"predicate",expected:i7,problem:cP(Z)})}}}}),Xj=(Q,X)=>{if(Q.length===0)return X.error({code:"predicate",expected:i7,actual:"empty"});try{return JSON.parse(Q)}catch(Z){return X.error({code:"predicate",expected:i7,problem:cP(Z)})}},Jj=k0.module({root:Zj,parse:s0({in:"string",morphs:Xj,declaredOut:P0.json})}),mP=T6(/^[a-z]*$/,"only lowercase letters"),Gj=k0.module({root:s0({in:"string",morphs:(Q)=>Q.toLowerCase(),declaredOut:mP}),preformatted:mP}),iP=["NFC","NFD","NFKC","NFKD"],n7=w0(iP,(Q,X)=>[X,s0({domain:"string",predicate:(Z)=>Z.normalize(X)===Z,meta:`${X}-normalized unicode`})]),eJ=w0(iP,(Q,X)=>[X,s0({in:"string",morphs:(Z)=>Z.normalize(X),declaredOut:n7[X]})]),Yj=k0.module({root:eJ.NFC,preformatted:n7.NFC}),Wj=k0.module({root:eJ.NFD,preformatted:n7.NFD}),qj=k0.module({root:eJ.NFKC,preformatted:n7.NFKC}),Hj=k0.module({root:eJ.NFKD,preformatted:n7.NFKD}),zj=k0.module({root:"NFC",NFC:Yj,NFD:Wj,NFKC:qj,NFKD:Hj}),_P=T6(OU,"a well-formed numeric string"),Kj=k0.module({root:_P,parse:s0({in:_P,morphs:(Q)=>Number.parseFloat(Q),declaredOut:P0.number})}),$j=/^(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-]+)*))?$/,Bj=T6($j,"a semantic version (see https://semver.org/)"),dP=T6(/^\S.*\S$|^\S?$/,"trimmed"),Uj=k0.module({root:s0({in:"string",morphs:(Q)=>Q.trim(),declaredOut:dP}),preformatted:dP}),uP=T6(/^[A-Z]*$/,"only uppercase letters"),Vj=k0.module({root:s0({in:"string",morphs:(Q)=>Q.toUpperCase(),declaredOut:uP}),preformatted:uP}),Pj=(Q)=>{if(URL.canParse)return URL.canParse(Q);try{return new URL(Q),!0}catch{return!1}},pP=s0({domain:"string",predicate:{meta:"a URL string",predicate:Pj}}),Fj=k0.module({root:pP,parse:s0({declaredIn:pP,in:"string",morphs:(Q,X)=>{try{return new URL(Q)}catch{return X.error("a URL string")}},declaredOut:s0(URL)})}),Dj=k0.module({root:["versioned | nil | max","@","a UUID"],"#nil":"'00000000-0000-0000-0000-000000000000'","#max":"'ffffffff-ffff-ffff-ffff-ffffffffffff'","#versioned":/[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/i,v1:T6(/^[0-9a-f]{8}-[0-9a-f]{4}-1[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,"a UUIDv1"),v2:T6(/^[0-9a-f]{8}-[0-9a-f]{4}-2[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,"a UUIDv2"),v3:T6(/^[0-9a-f]{8}-[0-9a-f]{4}-3[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,"a UUIDv3"),v4:T6(/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,"a UUIDv4"),v5:T6(/^[0-9a-f]{8}-[0-9a-f]{4}-5[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,"a UUIDv5"),v6:T6(/^[0-9a-f]{8}-[0-9a-f]{4}-6[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,"a UUIDv6"),v7:T6(/^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,"a UUIDv7"),v8:T6(/^[0-9a-f]{8}-[0-9a-f]{4}-8[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,"a UUIDv8")}),nP=k0.module({root:P0.string,alpha:T6(/^[A-Za-z]*$/,"only letters"),alphanumeric:T6(/^[A-Za-z\d]*$/,"only letters and digits 0-9"),base64:d2,capitalize:u2,creditCard:c2,date:s2,digits:T6(/^\d*$/,"only digits 0-9"),email:t2,integer:lP,ip:Qj,json:Jj,lower:Gj,normalize:zj,numeric:Kj,semver:Bj,trim:Uj,upper:Vj,url:Fj,uuid:Dj});var Zz=k0.module({bigint:P0.bigint,boolean:P0.boolean,false:P0.false,never:P0.never,null:P0.null,number:P0.number,object:P0.object,string:P0.string,symbol:P0.symbol,true:P0.true,unknown:P0.unknown,undefined:P0.undefined}),oP=k0.module({root:P0.unknown,any:P0.unknown}),Lj=k0.module({root:P0.json,stringify:tZ("morph",{in:P0.json,morphs:(Q)=>JSON.stringify(Q),declaredOut:P0.string})}),aP=k0.module({root:P0.object,json:Lj});class sP extends X8{description="a generic type that instantiates an object from a single index signature and corresponding value type"}var Cj=H9(["K",P0.key],"V")((Q)=>({domain:"object",index:{signature:Q.K,value:Q.V}}),sP);class tP extends X8{}var Nj=H9(["T",P0.object],["K",P0.key])((Q)=>Q.T.pick(Q.K),tP);class rP extends X8{}var Tj=H9(["T",P0.object],["K",P0.key])((Q)=>Q.T.omit(Q.K),rP);class eP extends X8{}var Mj=H9(["T",P0.object])((Q)=>Q.T.partial(),eP);class QF extends X8{}var Ij=H9(["T",P0.object])((Q)=>Q.T.required(),QF);class ZF extends X8{}var Rj=H9("T","U")((Q)=>Q.T.exclude(Q.U),ZF);class XF extends X8{}var Aj=H9("T","U")((Q)=>Q.T.extract(Q.U),XF),Xz=k0.module({Exclude:Rj,Extract:Aj,Omit:Tj,Partial:Mj,Pick:Nj,Record:Cj,Required:Ij});aJ.typeAttachments={...Zz,Key:eH.Key,Record:Xz.Record,Array:tJ.Array.root,Date:tJ.Date};var i4=rH({...Zz,...Xz,...tJ,...eH,string:nP,number:rJ,object:aP,unknown:oP},{prereducedAliases:!0,ambient:!0}),Oj=i4.export(),c1=i4.type,wj=i4.generic,PX1=i4.schema,Ej=i4.define,jj=i4.declare;var w4=require("obsidian");var Jz=(Q,X=(Z)=>Z===void 0)=>{if(!Q)return{};return Object.keys(Q).reduce((J,G)=>{if(X(Q[G]))return J;else return J[G]=Q[G],J},{})};var P3=Z8(zq());var $q=require("fs"),jN=require("fs/promises"),f5=require("os"),b5=require("path");function SN(Q,X){switch(f5.platform()){case"darwin":return b5.resolve(f5.homedir(),"Library","Logs",Q,X);case"win32":return b5.resolve(f5.homedir(),"AppData","Local","Logs",Q,X);case"linux":return b5.resolve(f5.homedir(),".local","share","logs",Q,X);default:throw new Error("Unsupported operating system")}}var ui=(Q)=>{if(!$q.existsSync(Q))$q.mkdirSync(Q,{recursive:!0})},LK=["DEBUG","INFO","WARN","ERROR","FATAL"],pi=c1.enumerated(...LK),li=(Q,X,Z)=>{let J=new Date().toISOString(),G=Object.keys(Z).length?` ${JSON.stringify(Z,null,2)}`:"";return`${J} [${Q.padEnd(5)}] ${JSON.stringify(X)}${G} `},ci=c1({appName:"string",filename:"string",level:pi}),Kq=ci.pipe((Q)=>{let X=SN(Q.appName,Q.filename),Z=LK.slice(LK.indexOf(Q.level));return{...Q,levels:Z,filename:X}});function kN(Q){let X=Kq.assert(Q),Z={},J=[],G=(q,B,D)=>{if(!X.levels.includes(q))return;ui(b5.dirname(SN(X.appName,X.filename))),J.push(jN.appendFile(X.filename,li(q,B,{...Z,...D??{}})))},$={debug:(q,B)=>G("DEBUG",q,B),info:(q,B)=>G("INFO",q,B),warn:(q,B)=>G("WARN",q,B),error:(q,B)=>G("ERROR",q,B),fatal:(q,B)=>G("FATAL",q,B),flush(){return Promise.all(J)},get config(){return{...X}},set config(q){X=Kq.assert({...X,...q}),$.debug("Updated logger configuration",{config:X})},set meta(q){Z=q}};return $}var Bq={};LJ(Bq,{MIME_TYPE_OLRAPI_NOTE_JSON:()=>qn,ApiVaultFileResponse:()=>Zn,ApiVaultDirectoryResponse:()=>Qn,ApiTemplateExecutionResponse:()=>Wn,ApiTemplateExecutionParams:()=>Yn,ApiStatusResponse:()=>oi,ApiSmartSearchResult:()=>vN,ApiSmartSearchResponse:()=>ti,ApiSimpleSearchResponse:()=>si,ApiSimpleSearchMatch:()=>xN,ApiSearchResponse:()=>ai,ApiSearchParameters:()=>ri,ApiPatchParameters:()=>Xn,ApiNoteJson:()=>ni,ApiNoContentResponse:()=>Gn,ApiError:()=>ii,ApiContentResponse:()=>Jn,ApiCommandsResponse:()=>ei,ApiCommand:()=>gN});var ii=c1({errorCode:"number",message:"string"}),ni=c1({content:"string",frontmatter:"Record",path:"string",stat:{ctime:"number",mtime:"number",size:"number"},tags:"string[]"}),yN=c1({id:"string",name:"string",version:"string",minAppVersion:"string",description:"string",author:"string",authorUrl:"string",isDesktopOnly:"boolean",dir:"string"}),oi=c1({status:"string",manifest:yN,versions:{obsidian:"string",self:"string"},service:"string",authenticated:"boolean",certificateInfo:{validityDays:"number",regenerateRecommended:"boolean"},apiExtensions:yN.array()}),ai=c1({filename:"string",result:"string|number|string[]|object|boolean"}).array(),xN=c1({match:{start:"number",end:"number"},context:"string"}),si=c1({filename:"string",matches:xN.array(),score:"number"}).array(),vN=c1({path:"string",text:"string",score:"number",breadcrumbs:"string"}),ti=c1({results:vN.array()}),ri=c1({query:"string",filter:{folders:"string[]?",excludeFolders:"string[]?",limit:"number?"}}),gN=c1({id:"string",name:"string"}),ei=c1({commands:gN.array()}),Qn=c1({files:"string[]"}),Zn=c1({frontmatter:{tags:"string[]",description:"string?"},content:"string",path:"string",stat:{ctime:"number",mtime:"number",size:"number"},tags:"string[]"}),Xn=c1({operation:c1("'append' | 'prepend' | 'replace'").describe("Specifies how to modify the content: append (add after), prepend (add before), or replace existing content"),targetType:c1("'heading' | 'block' | 'frontmatter'").describe("Identifies what to modify: a section under a heading, a referenced block, or a frontmatter field"),target:c1("string").describe("The identifier - either heading path (e.g. 'Heading 1::Subheading 1:1'), block reference ID, or frontmatter field name"),"targetDelimiter?":c1("string").describe("The separator used in heading paths to indicate nesting (default '::')"),"trimTargetWhitespace?":c1("boolean").describe("Whether to remove whitespace from target identifier before matching (default: false)"),content:c1("string").describe("The actual content to insert, append, or use as replacement"),"contentType?":c1("'text/markdown' | 'application/json'").describe("Format of the content - use application/json for structured data like table rows or frontmatter values")}),Jn=c1("string").describe("Content"),Gn=c1("unknown").describe("No Content"),Yn=c1({name:c1("string").describe("The full vault path to the template file"),arguments:"Record","createFile?":c1("boolean").describe("Whether to create a new file from the template"),"targetPath?":c1("string").describe("Path to save the file; required if createFile is true")}),Wn=c1({message:"string",content:"string"}),qn="application/vnd.olrapi.note+json";var Uq={};LJ(Uq,{SmartSearchFilter:()=>Hn});var Hn=c1({"exclude_key?":c1("string").describe("A single key to exclude."),"exclude_keys?":c1("string[]").describe("An array of keys to exclude. If exclude_key is provided, it's added to this array."),"exclude_key_starts_with?":c1("string").describe("Exclude keys starting with this string."),"exclude_key_starts_with_any?":c1("string[]").describe("Exclude keys starting with any of these strings."),"exclude_key_includes?":c1("string").describe("Exclude keys that include this string."),"key_ends_with?":c1("string").describe("Include only keys ending with this string."),"key_starts_with?":c1("string").describe("Include only keys starting with this string."),"key_starts_with_any?":c1("string[]").describe("Include only keys starting with any of these strings."),"key_includes?":c1("string").describe("Include only keys that include this string."),"limit?":c1("number").describe("Limit the number of search results.")});var Vq={};LJ(Vq,{RunMode:()=>hN,FunctionsMode:()=>fN});var hN;((H)=>{H[H.CreateNewFromTemplate=0]="CreateNewFromTemplate";H[H.AppendActiveFile=1]="AppendActiveFile";H[H.OverwriteFile=2]="OverwriteFile";H[H.OverwriteActiveFile=3]="OverwriteActiveFile";H[H.DynamicProcessor=4]="DynamicProcessor";H[H.StartupTemplate=5]="StartupTemplate"})(hN||={});var fN;((Z)=>{Z[Z.INTERNAL=0]="INTERNAL";Z[Z.USER_INTERNAL=1]="USER_INTERNAL"})(fN||={});var zn=c1({name:"string","description?":"string","required?":"boolean"}),zq1=c1({name:"string","description?":c1("string").describe("Description of the prompt"),"arguments?":zn.array()}),Kn=c1("'mcp-tools-prompt'"),Kq1=c1({tags:c1("string[]").narrow((Q)=>Q.some(Kn.allows)),"description?":c1("string")}),$n=c1({type:"'MISSING_REQUIRED_ARG'|'INVALID_ARG_VALUE'",message:"string","argumentName?":"string"}),$q1=c1({content:"string","errors?":$n.array()});var Bn=c1({query:c1("string>0").describe("A search phrase for semantic search"),"filter?":{"folders?":c1("string[]").describe('An array of folder names to include. For example, ["Public", "Work"]'),"excludeFolders?":c1("string[]").describe('An array of folder names to exclude. For example, ["Private", "Archive"]'),"limit?":c1("number>0").describe("The maximum number of results to return")}}),bN=c1("string.json.parse").to(Bn),Pq1=c1({results:c1({path:"string",text:"string",score:"number",breadcrumbs:"string"}).array()}),mN=c1({query:"string",filter:Uq.SmartSearchFilter});var b1=!1;var K9=Array.isArray,dN=Array.prototype.indexOf,KX=Array.from,CK=Object.keys,_6=Object.defineProperty,k9=Object.getOwnPropertyDescriptor,Pq=Object.getOwnPropertyDescriptors,NK=Object.prototype,uN=Array.prototype,P4=Object.getPrototypeOf;var y9=()=>{};function pN(Q){return Q()}function GZ(Q){for(var X=0;X0){let G=Array.from(KZ);var J=jQ;_5(!0);try{for(let Y of G){if((Y.f&x6)!==0)G8(Y,a8);if(N4(Y))u5(Y)}}finally{_5(J)}KZ.clear()}}return X}function LT(Q,X){var Z=Q.reactions;if(Z===null)return;var J=C4(),G=Z.length;for(var Y=0;YZ.line)return G.component}}return null}var Dn=Symbol("ADD_OWNER");function LX(){let Q=SK()?.[2];if(Q)(jK[Q.file]??=[]).push({start:Q,end:null,component:null})}function CX(Q){let X=SK()?.[2];if(X){let Z=jK[X.file],J=Z[Z.length-1];J.end=X,J.component=Q}}function yK(Q,X){if(X.owners===null)return;while(Q){if(Q.owners===null){X.owners=null;break}for(let Z of Q.owners)X.owners.add(Z);Q=Q.parent}}function IT(Q,X){if(Q.owners===null)return!0;return Q.owners.has(X)||Q.parent!==null&&IT(Q.parent,X)}function RT(Q){return Q?.owners?.values().next().value??RT(Q.parent)}var Ln=!1;function AT(Q){if(Ln)return;let X=kK();if(X&&!IT(Q,X)){let Z=RT(Q);if(Z[f0]!==X[f0])EK(X[f0],Z[f0]);else EK()}}function T4(Q,X=null,Z){var J=null;if(b1&&XQ)J=EQ("CreatedAt");if(typeof Q!=="object"||Q===null||S8 in Q)return Q;let G=P4(Q);if(G!==NK&&G!==uN)return Q;var Y=new Map,H=K9(Q),K=d6(0);if(H)Y.set("length",d6(Q.length,J));var z;if(b1)if(z={parent:X,owners:null},Z){let W=Z.v?.[HZ]?.owners;z.owners=W?new Set(W):null}else z.owners=X===null?j0!==null?new Set([j0.function]):null:new Set;return new Proxy(Q,{defineProperty(W,$,q){if(!("value"in q)||q.configurable===!1||q.enumerable===!1||q.writable===!1)XT();var B=Y.get($);if(B===void 0)B=d6(q.value,J),Y.set($,B);else Y6(B,T4(q.value,z));return!0},deleteProperty(W,$){var q=Y.get($);if(q===void 0){if($ in W)Y.set($,d6(f6,J))}else{if(H&&typeof $==="string"){var B=Y.get("length"),D=Number($);if(Number.isInteger(D)&&D=V.v)Y6(V,M+1)}OT(K)}return!0},ownKeys(W){G0(K);var $=Reflect.ownKeys(W).filter((D)=>{var F=Y.get(D);return F===void 0||F.v!==f6});for(var[q,B]of Y)if(B.v!==f6&&!(q in W))$.push(q);return $},setPrototypeOf(){JT()}})}function OT(Q,X=1){Y6(Q,Q.v+X)}function n5(Q){if(Q!==null&&typeof Q==="object"&&S8 in Q)return Q[S8];return Q}function wT(){let{prototype:Q,__svelte_cleanup:X}=Array;if(X)X();let{indexOf:Z,lastIndexOf:J,includes:G}=Q;Q.indexOf=function(Y,H){let K=Z.call(this,Y,H);if(K===-1){for(let z=H??0;z{Q.indexOf=Z,Q.lastIndexOf=J,Q.includes=G}}function SQ(Q,X,Z=!0){try{if(Q===X!==(n5(Q)===n5(X)))DX(Z?"===":"!==")}catch{}return Q===X===Z}var xK,ET,jT,ST;function Aq(){if(xK!==void 0)return;xK=window,ET=document;var Q=Element.prototype,X=Node.prototype;if(jT=k9(X,"firstChild").get,ST=k9(X,"nextSibling").get,Q.__click=void 0,Q.__className="",Q.__attributes=null,Q.__styles=null,Q.__e=void 0,Text.prototype.__t=void 0,b1)Q.__svelte_meta=null,wT()}function v8(Q=""){return document.createTextNode(Q)}function q8(Q){return jT.call(Q)}function W8(Q){return ST.call(Q)}function g8(Q,X){if(!H0)return q8(Q);var Z=q8(F0);if(Z===null)Z=F0.appendChild(v8());else if(X&&Z.nodeType!==3){var J=v8();return Z?.before(J),O6(J),J}return O6(Z),Z}function YQ(Q,X){if(!H0){var Z=q8(Q);if(Z instanceof Comment&&Z.data==="")return W8(Z);return Z}if(X&&F0?.nodeType!==3){var J=v8();return F0?.before(J),O6(J),J}return F0}function V9(Q,X=1,Z=!1){let J=H0?F0:Q;var G;while(X--)G=J,J=W8(J);if(!H0)return J;var Y=J?.nodeType;if(Z&&Y!==3){var H=v8();if(J===null)G?.after(H);else J.before(H);return O6(H),H}return O6(J),J}function NX(Q){Q.textContent=""}function $Z(Q){var X=l6|D8;if($0===null)X|=v9;else $0.f|=Lq;var Z=E0!==null&&(E0.f&l6)!==0?E0:null;let J={children:null,ctx:j0,deps:null,equals:Nq,f:X,fn:Q,reactions:null,rv:0,v:null,wv:0,parent:Z??$0};if(b1&&XQ)J.created=EQ("CreatedAt");if(Z!==null)(Z.children??=[]).push(J);return J}function TX(Q){let X=$Z(Q);return X.equals=m5,X}function gK(Q){var X=Q.children;if(X!==null){Q.children=null;for(var Z=0;Z{e6(X)}}function kT(Q){let X=UZ(x9,Q,!0);return(Z={})=>{return new Promise((J)=>{if(Z.outro)b9(X,()=>{e6(X),J(void 0)});else e6(X),J(void 0)})}}function f9(Q){return UZ(Fq,Q,!1)}function x8(Q){return UZ(YZ,Q,!0)}function M4(Q){if(b1)_6(Q,"name",{value:"{expression}"});return h8(Q)}function h8(Q,X=0){return UZ(YZ|WZ|X,Q,!0)}function H8(Q,X=!0){return UZ(YZ|j8,Q,!0,X)}function dK(Q){var X=Q.teardown;if(X!==null){let Z=Eq,J=E0;bK(!0),L8(null);try{X.call(null)}finally{bK(Z),L8(J)}}}function uK(Q){var X=Q.deriveds;if(X!==null){Q.deriveds=null;for(var Z=0;Z{if(e6(Q),X)X()})}function cK(Q,X){var Z=Q.length;if(Z>0){var J=()=>--Z||X();for(var G of Q)G.out(J)}else X()}function wq(Q,X,Z){if((Q.f&s8)!==0)return;if(Q.f^=s8,Q.transitions!==null){for(let H of Q.transitions)if(H.is_global||Z)X.push(H)}var J=Q.first;while(J!==null){var G=J.next,Y=(J.f&g9)!==0||(J.f&j8)!==0;wq(J,X,Y?Z:!1),J=G}}function I4(Q){xT(Q,!0)}function xT(Q,X){if((Q.f&s8)===0)return;if(Q.f^=s8,(Q.f&x6)===0)Q.f^=x6;if(N4(Q))G8(Q,D8),p5(Q);var Z=Q.first;while(Z!==null){var J=Z.next,G=(Z.f&g9)!==0||(Z.f&j8)!==0;xT(Z,G?X:!1),Z=J}if(Q.transitions!==null){for(let Y of Q.transitions)if(Y.is_global||X)Y.in()}}var jq=!1,gT=!1,iK=[],vT=[];function hT(){jq=!1;let Q=iK.slice();iK=[],GZ(Q)}function Tn(){gT=!1;let Q=vT.slice();vT=[],GZ(Q)}function P9(Q){if(!jq)jq=!0,queueMicrotask(hT);iK.push(Q)}function fT(){if(jq)hT();if(gT)Tn()}function Sq(Q){if(b1){let X=new Error(`lifecycle_outside_component \`${Q}(...)\` can only be used during component initialisation https://svelte.dev/e/lifecycle_outside_component`);throw X.name="Svelte error",X}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function bT(Q){if(b1){let X=new Error(`store_invalid_shape \`${Q}\` is not a store with a \`subscribe\` method https://svelte.dev/e/store_invalid_shape`);throw X.name="Svelte error",X}else throw new Error("https://svelte.dev/e/store_invalid_shape")}var pT=0,Rn=1,mT=new WeakSet,kq=!1,yq=pT,IX=!1,a5=null,jQ=!1,Eq=!1;function _5(Q){jQ=Q}function bK(Q){Eq=Q}var VZ=[],s5=0,RX=[],E0=null;function L8(Q){E0=Q}var $0=null;function u6(Q){$0=Q}var h9=null;function CT(Q){h9=Q}var f8=null,r8=0,JQ=null;function NT(Q){JQ=Q}var lT=1,xq=0,kQ=!1,UX=null;var j0=null;var U9=null;function VX(){return++lT}function C4(){return!ZQ||j0!==null&&j0.l===null}function N4(Q){var X=Q.f;if((X&D8)!==0)return!0;if((X&a8)!==0){var Z=Q.deps,J=(X&v9)!==0;if(Z!==null){var G,Y,H=(X&$X)!==0,K=J&&$0!==null&&!kQ,z=Z.length;if(H||K){for(G=0;GQ.wv)return!0}}if(!J||$0!==null&&!kQ)G8(Q,x6)}return!1}function _T(Q,X){var Z=X;while(Z!==null){if((Z.f&qZ)!==0)try{Z.fn(Q);return}catch{Z.f^=qZ}Z=Z.parent}throw kq=!1,Q}function dT(Q){return(Q.f&wQ)===0&&(Q.parent===null||(Q.parent.f&qZ)===0)}function t5(Q,X,Z,J){if(kq){if(Z===null)kq=!1;if(dT(X))throw Q;return}if(Z!==null)kq=!0;if(!b1||J===null||!(Q instanceof Error)||mT.has(Q)){_T(Q,X);return}mT.add(Q);let G=[],Y=X.fn?.name;if(Y)G.push(Y);let H=J;while(H!==null){if(b1){var K=H.function?.[f0];if(K){let $=K.split("/").pop();G.push($)}}H=H.p}let z=/Firefox/.test(navigator.userAgent)?" ":"\t";_6(Q,"message",{value:Q.message+` ${G.map(($)=>` ${z}in ${$}`).join("")} `}),_6(Q,"component_stack",{value:G});let W=Q.stack;if(W){let $=W.split(` `),q=[];for(let B=0;B<$.length;B++){let D=$[B];if(D.includes("svelte/src/internal"))continue;q.push(D)}_6(Q,"stack",{value:q.join(` `)})}if(_T(Q,X),dT(X))throw Q}function cT(Q,X,Z=0){var J=Q.reactions;if(J===null)return;for(var G=0;G0){$.length=r8+f8.length;for(q=0;qQ.fn)),RX=[]}function iT(){if(s5>1000){s5=0;try{rN()}catch(Q){if(b1)_6(Q,"stack",{value:""});if(a5!==null)if(b1)try{t5(Q,a5,null,null)}catch(X){throw uT(),X}else t5(Q,a5,null,null);else{if(b1)uT();throw Q}}}s5++}function nT(Q){var X=Q.length;if(X===0)return;iT();var Z=jQ;jQ=!0;try{for(var J=0;J1001)return;let Q=VZ;if(VZ=[],nT(Q),!IX){if(s5=0,a5=null,b1)RX=[]}}function p5(Q){if(yq===pT){if(!IX)IX=!0,queueMicrotask(wn)}a5=Q;var X=Q;while(X.parent!==null){X=X.parent;var Z=X.f;if((Z&(x9|j8))!==0){if((Z&x6)===0)return;X.f^=x6}}VZ.push(X)}function oT(Q,X){var Z=Q.first,J=[];Q:while(Z!==null){var G=Z.f,Y=(G&j8)!==0,H=Y&&(G&x6)!==0,K=Z.next;if(!H&&(G&s8)===0){if((G&YZ)!==0){if(Y)Z.f^=x6;else try{if(N4(Z))u5(Z)}catch(q){t5(q,Z,null,Z.ctx)}var z=Z.first;if(z!==null){Z=z;continue}}else if((G&Fq)!==0)J.push(Z)}if(K===null){let q=Z.parent;while(q!==null){if(Q===q)break Q;var W=q.next;if(W!==null){Z=W;continue Q}q=q.parent}}Z=K}for(var $=0;$0||G.length>0)r5();if(s5=0,a5=null,b1)RX=[];return J}finally{yq=X,VZ=Z}}function G0(Q){var X=Q.f,Z=(X&l6)!==0;if(Z&&(X&wQ)!==0){var J=hK(Q);return MX(Q),J}if(UX!==null)UX.add(Q);if(E0!==null){if(h9!==null&&h9.includes(Q))GT();var G=E0.deps;if(Q.rv{if(Z!==void 0)return Z;ZT(X)},set:(J)=>{Z=J}})}};Q("$state"),Q("$effect"),Q("$derived"),Q("$inspect"),Q("$props"),Q("$bindable")}var jn=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory"];var HH1=[...jn,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject"];var Sn=["touchstart","touchmove"];function aT(Q){return Sn.includes(Q)}var sT=new Map;function tT(Q,X){var Z=sT.get(Q);if(!Z)Z=new Set,sT.set(Q,Z);Z.add(X)}function z8(Q,X,Z){return(...J)=>{let G=Q(...J);var Y=H0?G:G.nodeType===11?G.firstChild:G;return rT(Y,X,Z),G}}function yn(Q,X,Z){if(Q.__svelte_meta={loc:{file:X,line:Z[0],column:Z[1]}},Z[2])rT(Q.firstChild,X,Z[2])}function rT(Q,X,Z){var J=0,G=0;while(Q&&J{return Z.call(this,Y)})}if(Q.startsWith("pointer")||Q.startsWith("touch")||Q==="wheel")P9(()=>{X.addEventListener(Q,G,J)});else X.addEventListener(Q,G,J);return G}function DZ(Q,X,Z,J,G){var Y={capture:J,passive:G},H=QM(Q,X,Z,Y);if(X===document.body||X===window||X===document)t8(()=>{X.removeEventListener(Q,H,Y)})}function e5(Q){var X=this,Z=X.ownerDocument,J=Q.type,G=Q.composedPath?.()||[],Y=G[0]||Q.target,H=0,K=Q.__root;if(K){var z=G.indexOf(K);if(z!==-1&&(X===document||X===window)){Q.__root=X;return}var W=G.indexOf(X);if(W===-1)return;if(z<=W)H=z}if(Y=G[H]||Q.target,Y===X)return;_6(Q,"currentTarget",{configurable:!0,get(){return Y||Z}});var $=E0,q=$0;L8(null),u6(null);try{var B,D=[];while(Y!==null){var F=Y.assignedSlot||Y.parentNode||Y.host||null;try{var P=Y["__"+J];if(P!==void 0&&!Y.disabled)if(K9(P)){var[N,...C]=P;N.apply(Y,[Q,...C])}else P.call(Y,Q)}catch(L){if(B)D.push(L);else B=L}if(Q.cancelBubble||F===X||F===null)break;Y=F}if(B){for(let L of D)queueMicrotask(()=>{throw L});throw B}}finally{Q.__root=X,delete Q.currentTarget,L8($),u6(q)}}var vn;function ZM(){vn=void 0}function hq(Q){var X=document.createElement("template");return X.innerHTML=Q,X.content}function F9(Q,X){var Z=$0;if(Z.nodes_start===null)Z.nodes_start=Q,Z.nodes_end=X}function K8(Q,X){var Z=(X&VT)!==0,J=(X&PT)!==0,G,Y=!Q.startsWith("");return()=>{if(H0)return F9(F0,null),F0;if(G===void 0){if(G=hq(Y?Q:""+Q),!Z)G=q8(G)}var H=J?document.importNode(G,!0):G.cloneNode(!0);if(Z){var K=q8(H),z=H.lastChild;F9(K,z)}else F9(H,H);return H}}function aK(Q=""){if(!H0){var X=v8(Q+"");return F9(X,X),X}var Z=F0;if(Z.nodeType!==3)Z.before(Z=v8()),O6(Z);return F9(Z,Z),Z}function R4(){if(H0)return F9(F0,null),F0;var Q=document.createDocumentFragment(),X=document.createComment(""),Z=v8();return Q.append(X,Z),F9(X,Z),Q}function D6(Q,X){if(H0){$0.nodes_end=F0,Y8();return}if(Q===null)return;Q.before(X)}var sK=!0;function LZ(Q,X){var Z=X==null?"":typeof X==="object"?X+"":X;if(Z!==(Q.__t??=Q.nodeValue))Q.__t=Z,Q.nodeValue=Z==null?"":Z+""}function Z7(Q,X){return XM(Q,X)}function rK(Q,X){Aq(),X.intro=X.intro??!1;let Z=X.target,J=H0,G=F0;try{var Y=q8(Z);while(Y&&(Y.nodeType!==8||Y.data!==zZ))Y=W8(Y);if(!Y)throw L4;k8(!0),O6(Y),Y8();let H=XM(Q,{...X,anchor:Y});if(F0===null||F0.nodeType!==8||F0.data!==D4)throw l5(),L4;return k8(!1),H}catch(H){if(H===L4){if(X.recover===!1)eN();return Aq(),NX(Z),k8(!1),Z7(Q,X)}throw H}finally{k8(J),O6(G),ZM()}}var Q7=new Map;function XM(Q,{target:X,anchor:Z,props:J={},events:G,context:Y,intro:H=!0}){Aq();var K=new Set,z=(q)=>{for(var B=0;B{var q=Z??X.appendChild(v8());return H8(()=>{if(Y){PZ({});var B=j0;B.c=Y}if(G)J.$$events=G;if(H0)F9(q,null);if(sK=H,W=Q(q,J)||{},sK=!0,H0)$0.nodes_end=F0;if(Y)FZ()}),()=>{for(var B of K){X.removeEventListener(B,e5);var D=Q7.get(B);if(--D===0)document.removeEventListener(B,e5),Q7.delete(B);else Q7.set(B,D)}if(oK.delete(z),q!==Z)q.parentNode?.removeChild(q)}});return tK.set(W,$),W}var tK=new WeakMap;function AX(Q,X){let Z=tK.get(Q);if(Z)return tK.delete(Q),Z(X);if(b1)MT();return Promise.resolve()}function OX(Q){if(Q)iN(Q[f0]??"a component",Q.name)}function wX(){let Q=j0?.function;function X(Z){let J=kK()?.[f0]??"Something";cN(J,Z,Q[f0])}return{$destroy:()=>X("$destroy()"),$on:()=>X("$on(...)"),$set:()=>X("$set(...)")}}function D9(Q,X,Z=!1){if(H0)Y8();var J=Q,G=null,Y=null,H=f6,K=Z?g9:0,z=!1;let W=(q,B=!0)=>{z=!0,$(B,q)},$=(q,B)=>{if(H===(H=q))return;let D=!1;if(H0){let F=J.data===F4;if(!!H===F)J=c5(),O6(J),k8(!1),D=!0}if(H){if(G)I4(G);else if(B)G=H8(()=>B(J));if(Y)b9(Y,()=>{Y=null})}else{if(Y)I4(Y);else if(B)Y=H8(()=>B(J));if(G)b9(G,()=>{G=null})}if(D)k8(!0)};if(h8(()=>{if(z=!1,X(W),!z)$(null,null)},K),H0)J=F0}var EX=null;function mn(Q,X,Z,J){var G=[],Y=X.length;for(var H=0;H0&&G.length===0&&Z!==null;if(K){var z=Z.parentNode;NX(z),z.append(Z),J.clear(),A4(Q,X[0].prev,X[Y-1].next)}cK(G,()=>{for(var W=0;W{var D=Z();return K9(D)?D:D==null?[]:KX(D)});if(h8(()=>{var D=G0(B),F=D.length;if(q&&F===0)return;q=F===0;let P=!1;if(H0){var N=H.data===F4;if(N!==(F===0))H=c5(),O6(H),k8(!1),P=!0}if(H0){var C=null,L;for(var V=0;V0)O6(c5())}if(!H0){var E=E0;_n(D,K,H,G,X,(E.f&s8)!==0,J,Z)}if(Y!==null){if(F===0)if($)I4($);else $=H8(()=>Y(H));else if($!==null)b9($,()=>{$=null})}if(P)k8(!0);G0(B)}),H0)H=F0}function _n(Q,X,Z,J,G,Y,H,K){var z=(G&qT)!==0,W=(G&(Mq|Iq))!==0,$=Q.length,q=X.items,B=X.first,D=B,F,P=null,N,C=[],L=[],V,M,I,E;if(z){for(E=0;E<$;E+=1)if(V=Q[E],M=H(V,E),I=q.get(M),I!==void 0)I.a?.measure(),(N??=new Set).add(I)}for(E=0;E<$;E+=1){if(V=Q[E],M=H(V,E),I=q.get(M),I===void 0){var w=D?D.e.nodes_start:Z;P=GM(w,X,P,P===null?X.first:P.next,V,M,E,J,G,K),q.set(M,P),C=[],L=[],D=P.next;continue}if(W)dn(I,V,E,G);if((I.e.f&s8)!==0){if(I4(I.e),z)I.a?.unfix(),(N??=new Set).delete(I)}if(I!==D){if(F!==void 0&&F.has(I)){if(C.length0){var x=(G&RK)!==0&&$===0?Z:null;if(z){for(E=0;E{if(N===void 0)return;for(I of N)I.a?.apply()});$0.first=X.first&&X.first.e,$0.last=P&&P.e}function dn(Q,X,Z,J){if((J&Mq)!==0)d5(Q.v,X);if((J&Iq)!==0)d5(Q.i,Z);else Q.i=Z}function GM(Q,X,Z,J,G,Y,H,K,z,W){var $=EX,q=(z&Mq)!==0,B=(z&HT)===0,D=q?B?GQ(G):d6(G):G,F=(z&Iq)===0?H:d6(H);if(b1&&q)D.debug=()=>{var N=typeof F==="number"?H:F.v;W()[N]};var P={i:F,v:D,k:Y,a:null,e:null,prev:Z,next:J};EX=P;try{if(P.e=H8(()=>K(Q,D,F),H0),P.e.prev=Z&&Z.e,P.e.next=J&&J.e,Z===null)X.first=P;else Z.next=P,Z.e.next=P.e;if(J!==null)J.prev=P,J.e.prev=P.e;return P}finally{EX=$}}function JM(Q,X,Z){var J=Q.next?Q.next.e.nodes_start:Z,G=X?X.e.nodes_start:Z,Y=Q.e.nodes_start;while(Y!==J){var H=W8(Y);G.before(Y),Y=H}}function A4(Q,X,Z){if(X===null)Q.first=Z;else X.next=Z,X.e.next=Z&&Z.e;if(Z!==null)Z.prev=X,Z.e.prev=X&&X.e}function Q$(Q,X){P9(()=>{var Z=Q.getRootNode(),J=Z.host?Z:Z.head??Z.ownerDocument.head;if(!J.querySelector("#"+X.hash)){let G=document.createElement("style");if(G.id=X.hash,G.textContent=X.code,J.appendChild(G),b1)tT(X.hash,G)}})}function X$(Q,X,Z,J){var G=Q.__attributes??={};if(H0){if(G[X]=Q.getAttribute(X),X==="src"||X==="srcset"||X==="href"&&Q.nodeName==="LINK"){if(!J)on(Q,X,Z??"");return}}if(G[X]===(G[X]=Z))return;if(X==="style"&&"__styles"in Q)Q.__styles={};if(X==="loading")Q[lN]=Z;if(Z==null)Q.removeAttribute(X);else if(typeof Z!=="string"&&nn(Q).includes(X))Q[X]=Z;else Q.setAttribute(X,Z)}var YM=new Map;function nn(Q){var X=YM.get(Q.nodeName);if(X)return X;YM.set(Q.nodeName,X=[]);var Z,J=Q,G=Element.prototype;while(G!==J){Z=Pq(J);for(var Y in Z)if(Z[Y].set)X.push(Y);J=P4(J)}return X}function on(Q,X,Z){if(!b1)return;if(X==="srcset"&&an(Q,Z))return;if(Z$(Q.getAttribute(X)??"",Z))return;TT(X,Q.outerHTML.replace(Q.innerHTML,Q.innerHTML&&"..."),String(Z))}function Z$(Q,X){if(Q===X)return!0;return new URL(Q,document.baseURI).href===new URL(X,document.baseURI).href}function WM(Q){return Q.split(",").map((X)=>X.trim().split(" ").filter(Boolean))}function an(Q,X){var Z=WM(Q.srcset),J=WM(X);return J.length===Z.length&&J.every(([G,Y],H)=>Y===Z[H][1]&&(Z$(Z[H][0],G)||Z$(G,Z[H][0])))}class qM{#Z=new WeakMap;#Q;#X;static entries=new WeakMap;constructor(Q){this.#X=Q}observe(Q,X){var Z=this.#Z.get(Q)||new Set;return Z.add(X),this.#Z.set(Q,Z),this.#J().observe(Q,this.#X),()=>{var J=this.#Z.get(Q);if(J.delete(X),J.size===0)this.#Z.delete(Q),this.#Q.unobserve(Q)}}#J(){return this.#Q??(this.#Q=new ResizeObserver((Q)=>{for(var X of Q){qM.entries.set(X.target,X);for(var Z of this.#Z.get(X.target)||[])Z(X)}}))}}function J$(Q=!1){let X=j0,Z=X.l.u;if(!Z)return;let J=()=>gq(X.s);if(Q){let G=0,Y={},H=$Z(()=>{let K=!1,z=X.s;for(let W in z)if(z[W]!==Y[W])Y[W]=z[W],K=!0;if(K)G++;return G});J=()=>G0(H)}if(Z.b.length)i5(()=>{HM(X,J),GZ(Z.b)});if(o5(()=>{let G=E6(()=>Z.m.map(pN));return()=>{for(let Y of G)if(typeof Y==="function")Y()}}),Z.a.length)o5(()=>{HM(X,J),GZ(Z.a)})}function HM(Q,X){if(Q.l.s)for(let Z of Q.l.s)G0(Z);X()}function bq(Q,X,Z){if(Q==null){if(X(void 0),Z)Z(void 0);return y9}let J=E6(()=>Q.subscribe(X,Z));return J.unsubscribe?()=>J.unsubscribe():J}function zM(Q){let X;return bq(Q,(Z)=>X=Z)(),X}var mq=!1,G$=Symbol();function Y$(Q,X,Z){let J=Z[X]??={store:null,source:GQ(void 0),unsubscribe:y9};if(J.store!==Q&&!(G$ in Z))if(J.unsubscribe(),J.store=Q??null,Q==null)J.source.v=void 0,J.unsubscribe=y9;else{var G=!0;J.unsubscribe=bq(Q,(Y)=>{if(G)J.source.v=Y;else Y6(J.source,Y)}),G=!1}if(Q&&G$ in Z)return zM(Q);return G0(J.source)}function W$(){let Q={};function X(){t8(()=>{for(var Z in Q)Q[Z].unsubscribe();_6(Q,G$,{enumerable:!1,value:!0})})}return[Q,X]}function q$(Q){var X=mq;try{return mq=!1,[Q(),mq]}finally{mq=X}}function KM(Q){var X=$0,Z=$0;while(X!==null&&(X.f&(j8|x9))===0)X=X.parent;try{return u6(X),Q()}finally{u6(Z)}}function jX(Q,X,Z,J){var G=(Z&zT)!==0,Y=!ZQ||(Z&KT)!==0,H=(Z&BT)!==0,K=(Z&UT)!==0,z=!1,W;if(H)[W,z]=q$(()=>Q[X]);else W=Q[X];var $=S8 in Q||Cq in Q,q=H&&(k9(Q,X)?.set??($&&(X in Q)&&((w)=>Q[X]=w)))||void 0,B=J,D=!0,F=!1,P=()=>{if(F=!0,D)if(D=!1,K)B=E6(J);else B=J;return B};if(W===void 0&&J!==void 0){if(q&&Y)QT(X);if(W=P(),q)q(W)}var N;if(Y)N=()=>{var w=Q[X];if(w===void 0)return P();return D=!0,F=!1,w};else{var C=KM(()=>(G?$Z:TX)(()=>Q[X]));C.f|=MK,N=()=>{var w=G0(C);if(w!==void 0)B=void 0;return w===void 0?B:w}}if((Z&$T)===0)return N;if(q){var L=Q.$$legacy;return function(w,A){if(arguments.length>0){if(!Y||!A||L||z)q(A?N():w);return w}else return N()}}var V=!1,M=!1,I=GQ(W),E=KM(()=>$Z(()=>{var w=N(),A=G0(I);if(V)return V=!1,M=!0,A;return M=!1,I.v=w}));if(!G)E.equals=m5;return function(w,A){if(UX!==null)V=M,N(),G0(I);if(arguments.length>0){let R=A?G0(E):Y&&H?T4(w):w;if(!E.equals(R)){if(V=!0,Y6(I,R),F&&B!==void 0)B=R;E6(()=>G0(E))}return w}return G0(E)}}function H$(Q,X){x8(()=>{let Z=new Map,J=Q(),G=K9(J)?J:J==null?[]:Array.from(J),Y=G.length;for(let H=0;H{var H=GQ(Y);return X.set(G,H),H};let J=new Proxy({...Q.props||{},$$events:{}},{get(G,Y){return G0(X.get(Y)??Z(Y,Reflect.get(G,Y)))},has(G,Y){if(Y===Cq)return!0;return G0(X.get(Y)??Z(Y,Reflect.get(G,Y))),Reflect.has(G,Y)},set(G,Y,H){return Y6(X.get(Y)??Z(Y,H),H),Reflect.set(G,Y,H)}});if(this.#Q=(Q.hydrate?rK:Z7)(Q.component,{target:Q.target,anchor:Q.anchor,props:J,context:Q.context,intro:Q.intro??!1,recover:Q.recover}),!Q?.props?.$$host||Q.sync===!1)r5();this.#Z=J.$$events;for(let G of Object.keys(this.#Q)){if(G==="$set"||G==="$destroy"||G==="$on")continue;_6(this,G,{get(){return this.#Q[G]},set(Y){this.#Q[G]=Y},enumerable:!0})}this.#Q.$set=(G)=>{Object.assign(J,G)},this.#Q.$destroy=()=>{AX(this.#Q)}}$set(Q){this.#Q.$set(Q)}$on(Q,X){this.#Z[Q]=this.#Z[Q]||[];let Z=(...J)=>X.call(this,...J);return this.#Z[Q].push(Z),()=>{this.#Z[Q]=this.#Z[Q].filter((J)=>J!==Z)}}$destroy(){this.#Q.$destroy()}}var qo;if(typeof HTMLElement==="function")qo=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(Q,X,Z){super();if(this.$$ctor=Q,this.$$s=X,Z)this.attachShadow({mode:"open"})}addEventListener(Q,X,Z){if(this.$$l[Q]=this.$$l[Q]||[],this.$$l[Q].push(X),this.$$c){let J=this.$$c.$on(Q,X);this.$$l_u.set(X,J)}super.addEventListener(Q,X,Z)}removeEventListener(Q,X,Z){if(super.removeEventListener(Q,X,Z),this.$$c){let J=this.$$l_u.get(X);if(J)J(),this.$$l_u.delete(X)}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let Q=function(J){return(G)=>{let Y=document.createElement("slot");if(J!=="default")Y.name=J;D6(G,Y)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let X={},Z=Ho(this);for(let J of this.$$s)if(J in Z)if(J==="default"&&!this.$$d.children)this.$$d.children=Q(J),X.default=!0;else X[J]=Q(J);for(let J of this.attributes){let G=this.$$g_p(J.name);if(!(G in this.$$d))this.$$d[G]=z$(G,J.value,this.$$p_d,"toProp")}for(let J in this.$$p_d)if(!(J in this.$$d)&&this[J]!==void 0)this.$$d[J]=this[J],delete this[J];this.$$c=$M({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:X,$$host:this}}),this.$$me=_K(()=>{x8(()=>{this.$$r=!0;for(let J of CK(this.$$c)){if(!this.$$p_d[J]?.reflect)continue;this.$$d[J]=this.$$c[J];let G=z$(J,this.$$d[J],this.$$p_d,"toAttribute");if(G==null)this.removeAttribute(this.$$p_d[J].attribute||J);else this.setAttribute(this.$$p_d[J].attribute||J,G)}this.$$r=!1})});for(let J in this.$$l)for(let G of this.$$l[J]){let Y=this.$$c.$on(J,G);this.$$l_u.set(G,Y)}this.$$l={}}}attributeChangedCallback(Q,X,Z){if(this.$$r)return;Q=this.$$g_p(Q),this.$$d[Q]=z$(Q,Z,this.$$p_d,"toProp"),this.$$c?.$set({[Q]:this.$$d[Q]})}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{if(!this.$$cn&&this.$$c)this.$$c.$destroy(),this.$$me(),this.$$c=void 0})}$$g_p(Q){return CK(this.$$p_d).find((X)=>this.$$p_d[X].attribute===Q||!this.$$p_d[X].attribute&&X.toLowerCase()===Q)||Q}};function z$(Q,X,Z,J){let G=Z[Q]?.type;if(X=G==="Boolean"&&typeof X!=="boolean"?X!=null:X,!J||!Z[Q])return X;else if(J==="toAttribute")switch(G){case"Object":case"Array":return X==null?null:JSON.stringify(X);case"Boolean":return X?"":null;case"Number":return X==null?null:X;default:return X}else switch(G){case"Object":case"Array":return X&&JSON.parse(X);case"Boolean":return X;case"Number":return X!=null?+X:X;default:return X}}function Ho(Q){let X={};return Q.childNodes.forEach((Z)=>{X[Z.slot||"default"]=!0}),X}function K$(Q,X){if(Q!=null&&typeof Q.subscribe!=="function")bT(X)}function VM(Q){if(j0===null)Sq("onMount");if(ZQ&&j0.l!==null)Po(j0).m.push(Q);else o5(()=>{let X=E6(Q);if(typeof X==="function")return X})}function Po(Q){var X=Q.l;return X.u??={a:[],b:[],m:[]}}var PM="5";if(typeof window!=="undefined")(window.__svelte||={v:new Set}).v.add(PM);WT();var VI=Z8($I()),c0=Z8(zq());var es=!0,BI={appName:"Claude",filename:"obsidian-plugin-mcp-tools.log",level:"DEBUG"},{filename:UI}=Kq.assert(BI),m0=es?console:kN(BI);var y$=(Q)=>c0.interval(200).pipe(c0.takeUntil(c0.timer(5000)),c0.map(()=>{let X=window.SmartSearch;return{id:"smart-connections",name:"Smart Connections",required:!1,installed:!!X,api:X,plugin:Q.app.plugins.plugins["smart-connections"]}}),c0.takeWhile((X)=>!X.installed,!0),c0.distinct(({installed:X})=>X)),x$=(Q)=>c0.interval(200).pipe(c0.takeUntil(c0.timer(5000)),c0.map(()=>{let X=VI.getAPI(Q.app,Q.manifest);return{id:"obsidian-local-rest-api",name:"Local REST API",required:!0,installed:!!X,api:X,plugin:Q.app.plugins.plugins["obsidian-local-rest-api"]}}),c0.takeWhile((X)=>!X.installed,!0),c0.distinct(({installed:X})=>X)),v$=(Q)=>c0.interval(200).pipe(c0.takeUntil(c0.timer(5000)),c0.map(()=>{let X=Q.app.plugins.plugins["templater-obsidian"]?.templater;return{id:"templater-obsidian",name:"Templater",required:!1,installed:!!X,api:X,plugin:Q.app.plugins.plugins["templater-obsidian"]}}),c0.takeWhile((X)=>!X.installed,!0),c0.distinct(({installed:X})=>X)),Qt=(Q)=>{let X={"obsidian-local-rest-api":{id:"obsidian-local-rest-api",name:"Local REST API",required:!0,installed:!1,url:"https://github.com/coddingtonbear/obsidian-local-rest-api"},"smart-connections":{id:"smart-connections",name:"Smart Connections",required:!1,installed:!1,url:"https://smartconnections.app/"},"templater-obsidian":{id:"templater-obsidian",name:"Templater",required:!1,installed:!1,url:"https://silentvoid13.github.io/Templater/"}};return c0.merge(x$(Q),v$(Q),y$(Q)).pipe(c0.scan((Z,J)=>{return Z[J.id]={...X[J.id],...J},Z},X),c0.startWith(X))},PI=(Q)=>Qt(Q).pipe(c0.map((X)=>Object.values(X)));var YB=require("obsidian"),DA=require("path");var z7=Z8(require("fs/promises")),h$=Z8(require("os")),f$=Z8(require("path"));var{GITHUB_DOWNLOAD_URL:g$,GITHUB_REF_NAME:OL1}={GITHUB_DOWNLOAD_URL:"https://github.com/jacksteamdev/obsidian-mcp-tools/releases/download/0.2.22",GITHUB_REF_NAME:"0.2.22"},eq={windows:"mcp-server.exe",macos:"mcp-server",linux:"mcp-server"},Q3={macos:"~/Library/Application Support/Claude/claude_desktop_config.json",windows:"%APPDATA%\\Claude\\claude_desktop_config.json",linux:"~/.config/claude/config.json"};function FI(){let Q=h$.default.platform(),X;switch(Q){case"darwin":X=Q3.macos;break;case"win32":X=Q3.windows;break;default:X=Q3.linux}if(X.startsWith("~"))X=f$.default.join(h$.default.homedir(),X.slice(1));if(Q==="win32")X=X.replace(/%([^%]+)%/g,(Z,J)=>process.env[J]||"");return X}async function b$(Q,X,Z){try{let J=FI(),G=f$.default.dirname(J);await z7.default.mkdir(G,{recursive:!0});let Y={mcpServers:{}};try{let H=await z7.default.readFile(J,"utf8");Y=JSON.parse(H),Y.mcpServers=Y.mcpServers||{}}catch(H){if(H.code!=="ENOENT")throw H}Y.mcpServers["obsidian-mcp-tools"]={command:X,env:{OBSIDIAN_API_KEY:Z}},await z7.default.writeFile(J,JSON.stringify(Y,null,2)),m0.info("Updated Claude config",{configPath:J})}catch(J){throw m0.error("Failed to update Claude config:",{error:J}),new Error(`Failed to update Claude config: ${J instanceof Error?J.message:String(J)}`)}}async function DI(){try{let Q=FI(),X;try{let Z=await z7.default.readFile(Q,"utf8");X=JSON.parse(Z)}catch(Z){if(Z.code==="ENOENT")return;throw Z}if(X.mcpServers&&"obsidian-mcp-tools"in X.mcpServers)delete X.mcpServers["obsidian-mcp-tools"],await z7.default.writeFile(Q,JSON.stringify(X,null,2)),m0.info("Removed server from Claude config",{configPath:Q})}catch(Q){throw m0.error("Failed to remove from Claude config:",{error:Q}),new Error(`Failed to remove from Claude config: ${Q instanceof Error?Q.message:String(Q)}`)}}var U3=Z8(require("fs")),iX=Z8(require("fs/promises")),UA=Z8(require("https")),cX=require("obsidian"),ZB=Z8(require("os")),VA=Z8(zq());var $A=require("child_process"),B7=Z8(require("fs/promises")),p9=Z8(require("path")),RZ=Z8(zA()),BA=require("util");var KA=require("obsidian");function B3(Q){let X=Q.app.vault.adapter;if(X instanceof KA.FileSystemAdapter)return X;return{error:"Unsupported platform"}}var ie=BA.promisify($A.exec);async function ne(Q){try{return await B7.default.realpath(Q)}catch(X){if(X.code==="ENOENT"){let Z=p9.default.normalize(Q).split(p9.default.sep),J=[],G=1;if(p9.default.win32.isAbsolute(Q)){if(J.push(Z[0]),Z[1]==="")J.push(""),G=2}else if(p9.default.posix.isAbsolute(Q))J.push("/");else J.push(Z[0]);for(let Y of Z.slice(G)){let H=p9.default.join(...J,Y);try{J=(await B7.default.realpath(H)).split(p9.default.sep)}catch(K){J.push(Y)}}return p9.default.join(...J)}throw m0.error("Failed to resolve symlink:",{filepath:Q,error:X instanceof Error?X.message:X}),new Error(`Failed to resolve symlink: ${Q}`)}}async function e$(Q){let X=B3(Q);if("error"in X)return X;let Z=lX(),J=p9.default.join(X.getBasePath(),Q.app.vault.configDir,"plugins",Q.manifest.id,"bin"),G=await ne(J),Y=eq[Z],H=p9.default.join(G,Y);return{dir:G,path:H,name:Y,symlinked:J===G?void 0:J}}async function QB(Q){let X=RZ.valid(RZ.clean(Q.manifest.version));if(!X)return m0.error("Invalid plugin version:",{plugin:Q}),{state:"error",versions:{}};if(!Q.getLocalRestApiKey())return{state:"no api key",versions:{plugin:X}};let J=await e$(Q);if("error"in J)return{state:"error",versions:{plugin:X},error:J.error};try{await B7.default.access(J.path,B7.default.constants.X_OK)}catch(Y){return m0.error("Failed to get server version:",{installPath:J}),{state:"not installed",...J,versions:{plugin:X}}}let G;try{let Y=`"${J.path}" --version`,{stdout:H}=await ie(Y);if(G=RZ.clean(H.trim()),!G)throw new Error("Invalid server version string")}catch{return m0.error("Failed to get server version:",{installPath:J}),{state:"error",...J,versions:{plugin:X}}}return{...J,state:RZ.lt(G,X)?"outdated":"installed",versions:{plugin:X,server:G}}}function lX(){switch(ZB.default.platform()){case"darwin":return"macos";case"win32":return"windows";default:return"linux"}}function oe(){return ZB.default.arch()}function ae(Q,X){return Q==="windows"?`${g$}/mcp-server-${Q}.exe`:`${g$}/mcp-server-${Q}-${X}`}async function se(Q){try{if(!U3.default.existsSync(Q))await iX.default.mkdir(Q,{recursive:!0});try{await iX.default.access(Q,U3.default.constants.W_OK)}catch(X){throw new Error(`Directory exists but is not writable: ${Q}`)}}catch(X){throw m0.error("Failed to ensure directory:",{error:X}),X}}function PA(Q,X,Z=0){return new VA.Observable((J)=>{if(Z>5){J.error(new Error("Too many redirects"));return}let G,Y=(H)=>{if(H)m0.debug("Cleaning up incomplete download:",{outputPath:X,writableFinished:JSON.stringify(G?.writableFinished),error:H instanceof Error?H.message:String(H)}),G?.destroy(),iX.default.unlink(X).catch((K)=>{m0.error("Failed to clean up incomplete download:",{outputPath:X,error:K instanceof Error?K.message:String(K)})});else G?.close(),iX.default.chmod(X,493).catch((K)=>{m0.error("Failed to set executable permissions:",{outputPath:X,error:K instanceof Error?K.message:String(K)})})};UA.default.get(Q,(H)=>{try{if(!H)throw new Error("No response received");let K=H.statusCode??0;if(K>=400)throw new Error(`HTTP Error ${K}: ${H.statusMessage}`);if(K===302||K===301){let q=H.headers.location;if(!q)throw new Error(`Redirect (${K}) received but no location header found`);PA(q,X,Z+1).subscribe(J);return}if(K!==200)throw new Error(`Unexpected status code: ${K}`);let z=H.headers["content-length"],W=z?parseInt(z,10):0;if(z&&isNaN(W))throw new Error("Invalid content-length header");try{G=U3.default.createWriteStream(X,{flags:"w"})}catch(q){throw new Error(`Failed to create write stream: ${q instanceof Error?q.message:String(q)}`)}let $=0;G.on("error",(q)=>{let B=new Error(`File stream error: ${q.message}`);Y(B),J.error(B)}),H.on("data",(q)=>{try{if(!Buffer.isBuffer(q))throw new Error("Received invalid data chunk");$+=q.length;let B=W?$/W*100:0;J.next({bytesReceived:$,totalBytes:W,percentage:Math.round(B*100)/100})}catch(B){Y(B),J.error(B)}}),H.pipe(G),G.on("finish",()=>{Y(),J.complete()}),H.on("error",(q)=>{Y(q),J.error(new Error(`Response error: ${q.message}`))})}catch(K){Y(K),J.error(K instanceof Error?K:new Error(String(K)))}}).on("error",(H)=>{Y(H),J.error(new Error(`Network error: ${H.message}`))})})}async function XB(Q){try{let X=lX(),Z=oe(),J=ae(X,Z),G=await e$(Q);if("error"in G)throw new Error(G.error);await se(G.dir);let Y=new cX.Notice("Downloading MCP server...",0);m0.debug("Downloading MCP server:",{downloadUrl:J,installPath:G});let H=PA(J,G.path);return new Promise((K,z)=>{H.subscribe({next:(W)=>{Y.setMessage(`Downloading MCP server: ${W.percentage}%`)},error:(W)=>{Y.hide(),new cX.Notice(`Failed to download MCP server: ${W.message}`),m0.error("Download failed:",{error:W,installPath:G}),z(W)},complete:()=>{Y.hide(),new cX.Notice("MCP server downloaded successfully!"),m0.info("MCP server downloaded",{installPath:G}),K(G)}})})}catch(X){throw new cX.Notice(`Failed to install MCP server: ${X instanceof Error?X.message:String(X)}`),X}}var nX=Z8(require("fs/promises")),V3=Z8(require("path"));async function JB(Q){try{let X=B3(Q);if("error"in X)throw new Error(X.error);let Z=lX(),J=V3.default.join(X.getBasePath(),Q.app.vault.configDir,"plugins",Q.manifest.id,"bin"),G=V3.default.join(J,eq[Z]);try{await nX.default.unlink(G),m0.info("Removed server binary",{binaryPath:G})}catch(H){if(H.code!=="ENOENT")throw H}try{await nX.default.rmdir(J),m0.info("Removed empty bin directory",{binDir:J})}catch(H){if(H.code!=="ENOTEMPTY")throw H}let Y=V3.default.join(process.env.HOME||process.env.USERPROFILE||"","Library/Application Support/Claude/claude_desktop_config.json");try{let H=await nX.default.readFile(Y,"utf8"),K=JSON.parse(H);if(K.mcpServers&&K.mcpServers["obsidian-mcp-tools"])delete K.mcpServers["obsidian-mcp-tools"],await nX.default.writeFile(Y,JSON.stringify(K,null,2)),m0.info("Removed server from Claude config",{configPath:Y})}catch(H){if(H.code!=="ENOENT")throw H}m0.info("Server uninstall complete")}catch(X){throw m0.error("Failed to uninstall server:",{error:X}),new Error(`Failed to uninstall server: ${X instanceof Error?X.message:String(X)}`)}}var FA=require("child_process"),oX=require("obsidian");function GB(Q){let X=oX.Platform.isWin?`start "" "${Q}"`:oX.Platform.isMacOS?`open "${Q}"`:`xdg-open "${Q}"`;FA.exec(X,(Z)=>{if(Z){let J=`Failed to open folder: ${Z.message}`;m0.error(J,{folderPath:Q,error:Z}),new oX.Notice(J)}})}LX();p6[f0]="McpServerInstallSettings.svelte";var te=z8(K8('
Please configure the Local REST API plugin
'),p6[f0],[[64,4]]),re=z8(K8('
MCP Server is not installed
'),p6[f0],[[66,4,[[68,6]]]]),ee=z8(K8('
Installing MCP server...
'),p6[f0],[[71,4]]),Q11=z8(K8('
'),p6[f0],[[73,4,[[75,6]]]]),Z11=z8(K8('
'),p6[f0],[[78,4,[[80,6]]]]),X11=z8(K8('
Uninstalling MCP server...
'),p6[f0],[[83,4]]),J11=z8(K8('
'),p6[f0],[[85,4]]),G11=z8(K8('How to install?'),p6[f0],[[100,21]]),Y11=z8(K8(" ",1),p6[f0],[]),W11=z8(K8('
'),p6[f0],[[93,4]]),q11=z8(K8(''),p6[f0],[[110,4,[[112,6]]]]),H11=z8(K8('

Installation status

Dependencies

',1),p6[f0],[[60,0,[[61,2]]],[89,0,[[90,2]]],[106,0,[[107,2],[118,2,[[120,4]]],[125,2,[[126,4]]]]]]),z11={hash:"svelte-1qdiqba",code:` .error-message.svelte-1qdiqba { color: var(--text-error); margin-bottom: 1em; } .status-message.svelte-1qdiqba { margin-bottom: 1em; } .dependency-item.svelte-1qdiqba { margin-bottom: 0.5em; } /* (unused) .installed { color: var(--text-success); }*/ /* (unused) .not-installed { color: var(--text-muted); }*/ .link-item.svelte-1qdiqba { margin-bottom: 0.5em; } button.svelte-1qdiqba { margin-left: 0.5em; } /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWNwU2VydmVySW5zdGFsbFNldHRpbmdzLnN2ZWx0ZSIsInNvdXJjZXMiOlsiTWNwU2VydmVySW5zdGFsbFNldHRpbmdzLnN2ZWx0ZSJdLCJzb3VyY2VzQ29udGVudCI6WyI8c2NyaXB0IGxhbmc9XCJ0c1wiPmltcG9ydCB7IEZVTExfTE9HR0VSX0ZJTEVOQU1FLCBsb2FkRGVwZW5kZW5jaWVzQXJyYXkgfSBmcm9tIFwiJC9zaGFyZWRcIjtcbmltcG9ydCB7IE5vdGljZSB9IGZyb20gXCJvYnNpZGlhblwiO1xuaW1wb3J0IHsgZGlybmFtZSB9IGZyb20gXCJwYXRoXCI7XG5pbXBvcnQgeyBvbk1vdW50IH0gZnJvbSBcInN2ZWx0ZVwiO1xuaW1wb3J0IHsgcmVtb3ZlRnJvbUNsYXVkZUNvbmZpZywgdXBkYXRlQ2xhdWRlQ29uZmlnLCB9IGZyb20gXCIuLi9zZXJ2aWNlcy9jb25maWdcIjtcbmltcG9ydCB7IGluc3RhbGxNY3BTZXJ2ZXIgfSBmcm9tIFwiLi4vc2VydmljZXMvaW5zdGFsbFwiO1xuaW1wb3J0IHsgZ2V0SW5zdGFsbGF0aW9uU3RhdHVzIH0gZnJvbSBcIi4uL3NlcnZpY2VzL3N0YXR1c1wiO1xuaW1wb3J0IHsgdW5pbnN0YWxsU2VydmVyIH0gZnJvbSBcIi4uL3NlcnZpY2VzL3VuaW5zdGFsbFwiO1xuaW1wb3J0IHsgb3BlbkZvbGRlciB9IGZyb20gXCIuLi91dGlscy9vcGVuRm9sZGVyXCI7XG5leHBvcnQgbGV0IHBsdWdpbjtcbi8vIERlcGVuZGVuY2llcyBhbmQgQVBJIGtleSBzdGF0dXNcbmNvbnN0IGRlcHMgPSBsb2FkRGVwZW5kZW5jaWVzQXJyYXkocGx1Z2luKTtcbi8vIEluc3RhbGxhdGlvbiBzdGF0dXNcbmxldCBzdGF0dXMgPSB7XG4gICAgc3RhdGU6IFwibm90IGluc3RhbGxlZFwiLFxuICAgIHZlcnNpb25zOiB7fSxcbn07XG5vbk1vdW50KGFzeW5jICgpID0+IHtcbiAgICBzdGF0dXMgPSBhd2FpdCBnZXRJbnN0YWxsYXRpb25TdGF0dXMocGx1Z2luKTtcbn0pO1xuLy8gSGFuZGxlIGluc3RhbGxhdGlvblxuYXN5bmMgZnVuY3Rpb24gaGFuZGxlSW5zdGFsbCgpIHtcbiAgICB0cnkge1xuICAgICAgICBjb25zdCBhcGlLZXkgPSBhd2FpdCBwbHVnaW4uZ2V0TG9jYWxSZXN0QXBpS2V5KCk7XG4gICAgICAgIGlmICghYXBpS2V5KSB7XG4gICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXCJMb2NhbCBSRVNUIEFQSSBrZXkgaXMgbm90IGNvbmZpZ3VyZWRcIik7XG4gICAgICAgIH1cbiAgICAgICAgc3RhdHVzID0geyAuLi5zdGF0dXMsIHN0YXRlOiBcImluc3RhbGxpbmdcIiB9O1xuICAgICAgICBjb25zdCBpbnN0YWxsUGF0aCA9IGF3YWl0IGluc3RhbGxNY3BTZXJ2ZXIocGx1Z2luKTtcbiAgICAgICAgLy8gVXBkYXRlIENsYXVkZSBjb25maWdcbiAgICAgICAgYXdhaXQgdXBkYXRlQ2xhdWRlQ29uZmlnKHBsdWdpbiwgaW5zdGFsbFBhdGgucGF0aCwgYXBpS2V5KTtcbiAgICAgICAgc3RhdHVzID0gYXdhaXQgZ2V0SW5zdGFsbGF0aW9uU3RhdHVzKHBsdWdpbik7XG4gICAgfVxuICAgIGNhdGNoIChlcnJvcikge1xuICAgICAgICBjb25zdCBtZXNzYWdlID0gZXJyb3IgaW5zdGFuY2VvZiBFcnJvciA/IGVycm9yLm1lc3NhZ2UgOiBcIkluc3RhbGxhdGlvbiBmYWlsZWRcIjtcbiAgICAgICAgc3RhdHVzID0geyAuLi5zdGF0dXMsIHN0YXRlOiBcImVycm9yXCIsIGVycm9yOiBtZXNzYWdlIH07XG4gICAgICAgIG5ldyBOb3RpY2UobWVzc2FnZSk7XG4gICAgfVxufVxuLy8gSGFuZGxlIHVuaW5zdGFsbFxuYXN5bmMgZnVuY3Rpb24gaGFuZGxlVW5pbnN0YWxsKCkge1xuICAgIHRyeSB7XG4gICAgICAgIHN0YXR1cyA9IHsgLi4uc3RhdHVzLCBzdGF0ZTogXCJpbnN0YWxsaW5nXCIgfTtcbiAgICAgICAgYXdhaXQgdW5pbnN0YWxsU2VydmVyKHBsdWdpbik7XG4gICAgICAgIGF3YWl0IHJlbW92ZUZyb21DbGF1ZGVDb25maWcoKTtcbiAgICAgICAgc3RhdHVzID0geyAuLi5zdGF0dXMsIHN0YXRlOiBcIm5vdCBpbnN0YWxsZWRcIiB9O1xuICAgIH1cbiAgICBjYXRjaCAoZXJyb3IpIHtcbiAgICAgICAgY29uc3QgbWVzc2FnZSA9IGVycm9yIGluc3RhbmNlb2YgRXJyb3IgPyBlcnJvci5tZXNzYWdlIDogXCJVbmluc3RhbGxhdGlvbiBmYWlsZWRcIjtcbiAgICAgICAgc3RhdHVzID0ge1xuICAgICAgICAgICAgLi4uc3RhdHVzLFxuICAgICAgICAgICAgc3RhdGU6IFwiZXJyb3JcIixcbiAgICAgICAgICAgIGVycm9yOiBtZXNzYWdlLFxuICAgICAgICB9O1xuICAgICAgICBuZXcgTm90aWNlKG1lc3NhZ2UpO1xuICAgIH1cbn1cbjwvc2NyaXB0PlxuXG48ZGl2IGNsYXNzPVwiaW5zdGFsbGF0aW9uLXN0YXR1c1wiPlxuICA8aDM+SW5zdGFsbGF0aW9uIHN0YXR1czwvaDM+XG5cbiAgeyNpZiBzdGF0dXMuc3RhdGUgPT09IFwibm8gYXBpIGtleVwifVxuICAgIDxkaXYgY2xhc3M9XCJlcnJvci1tZXNzYWdlXCI+UGxlYXNlIGNvbmZpZ3VyZSB0aGUgTG9jYWwgUkVTVCBBUEkgcGx1Z2luPC9kaXY+XG4gIHs6ZWxzZSBpZiBzdGF0dXMuc3RhdGUgPT09IFwibm90IGluc3RhbGxlZFwifVxuICAgIDxkaXYgY2xhc3M9XCJzdGF0dXMtbWVzc2FnZVwiPlxuICAgICAgTUNQIFNlcnZlciBpcyBub3QgaW5zdGFsbGVkXG4gICAgICA8YnV0dG9uIG9uOmNsaWNrPXtoYW5kbGVJbnN0YWxsfT5JbnN0YWxsIHNlcnZlcjwvYnV0dG9uPlxuICAgIDwvZGl2PlxuICB7OmVsc2UgaWYgc3RhdHVzLnN0YXRlID09PSBcImluc3RhbGxpbmdcIn1cbiAgICA8ZGl2IGNsYXNzPVwic3RhdHVzLW1lc3NhZ2VcIj5JbnN0YWxsaW5nIE1DUCBzZXJ2ZXIuLi48L2Rpdj5cbiAgezplbHNlIGlmIHN0YXR1cy5zdGF0ZSA9PT0gXCJpbnN0YWxsZWRcIn1cbiAgICA8ZGl2IGNsYXNzPVwic3RhdHVzLW1lc3NhZ2VcIj5cbiAgICAgIE1DUCBTZXJ2ZXIgdntzdGF0dXMudmVyc2lvbnMuc2VydmVyfSBpcyBpbnN0YWxsZWRcbiAgICAgIDxidXR0b24gb246Y2xpY2s9e2hhbmRsZVVuaW5zdGFsbH0+VW5pbnN0YWxsPC9idXR0b24+XG4gICAgPC9kaXY+XG4gIHs6ZWxzZSBpZiBzdGF0dXMuc3RhdGUgPT09IFwib3V0ZGF0ZWRcIn1cbiAgICA8ZGl2IGNsYXNzPVwic3RhdHVzLW1lc3NhZ2VcIj5cbiAgICAgIFVwZGF0ZSBhdmFpbGFibGUgKHZ7c3RhdHVzLnZlcnNpb25zLnNlcnZlcn0gLT4gdntzdGF0dXMudmVyc2lvbnMucGx1Z2lufSlcbiAgICAgIDxidXR0b24gb246Y2xpY2s9e2hhbmRsZUluc3RhbGx9PlVwZGF0ZTwvYnV0dG9uPlxuICAgIDwvZGl2PlxuICB7OmVsc2UgaWYgc3RhdHVzLnN0YXRlID09PSBcInVuaW5zdGFsbGluZ1wifVxuICAgIDxkaXYgY2xhc3M9XCJzdGF0dXMtbWVzc2FnZVwiPlVuaW5zdGFsbGluZyBNQ1Agc2VydmVyLi4uPC9kaXY+XG4gIHs6ZWxzZSBpZiBzdGF0dXMuc3RhdGUgPT09IFwiZXJyb3JcIn1cbiAgICA8ZGl2IGNsYXNzPVwiZXJyb3ItbWVzc2FnZVwiPntzdGF0dXMuZXJyb3J9PC9kaXY+XG4gIHsvaWZ9XG48L2Rpdj5cblxuPGRpdiBjbGFzcz1cImRlcGVuZGVuY2llc1wiPlxuICA8aDM+RGVwZW5kZW5jaWVzPC9oMz5cblxuICB7I2VhY2ggJGRlcHMgYXMgZGVwIChkZXAuaWQpfVxuICAgIDxkaXYgY2xhc3M9XCJkZXBlbmRlbmN5LWl0ZW1cIj5cbiAgICAgIHsjaWYgZGVwLmluc3RhbGxlZH1cbiAgICAgICAg4pyFIHtkZXAubmFtZX0gaXMgaW5zdGFsbGVkXG4gICAgICB7OmVsc2V9XG4gICAgICAgIOKdjFxuICAgICAgICB7ZGVwLm5hbWV9XG4gICAgICAgIHtkZXAucmVxdWlyZWQgPyBcIihSZXF1aXJlZClcIiA6IFwiKE9wdGlvbmFsKVwifVxuICAgICAgICB7I2lmIGRlcC51cmx9PGEgaHJlZj17ZGVwLnVybH0gdGFyZ2V0PVwiX2JsYW5rXCI+SG93IHRvIGluc3RhbGw/PC9hPnsvaWZ9XG4gICAgICB7L2lmfVxuICAgIDwvZGl2PlxuICB7L2VhY2h9XG48L2Rpdj5cblxuPGRpdiBjbGFzcz1cImxpbmtzXCI+XG4gIDxoMz5SZXNvdXJjZXM8L2gzPlxuXG4gIHsjaWYgc3RhdHVzLnBhdGh9XG4gICAgPGRpdiBjbGFzcz1cImxpbmstaXRlbVwiPlxuICAgICAgPCEtLSBzdmVsdGUtaWdub3JlIGExMXlfbm9fc3RhdGljX2VsZW1lbnRfaW50ZXJhY3Rpb25zIC0tPlxuICAgICAgPGEgb246Y2xpY2s9eygpID0+IHN0YXR1cy5kaXIgJiYgb3BlbkZvbGRlcihzdGF0dXMuZGlyKX0+XG4gICAgICAgIFNlcnZlciBpbnN0YWxsIGZvbGRlclxuICAgICAgPC9hPlxuICAgIDwvZGl2PlxuICB7L2lmfVxuXG4gIDxkaXYgY2xhc3M9XCJsaW5rLWl0ZW1cIj5cbiAgICA8IS0tIHN2ZWx0ZS1pZ25vcmUgYTExeV9ub19zdGF0aWNfZWxlbWVudF9pbnRlcmFjdGlvbnMgLS0+XG4gICAgPGEgb246Y2xpY2s9eygpID0+IG9wZW5Gb2xkZXIoZGlybmFtZShGVUxMX0xPR0dFUl9GSUxFTkFNRSkpfT5cbiAgICAgIFNlcnZlciBsb2cgZm9sZGVyXG4gICAgPC9hPlxuICA8L2Rpdj5cblxuICA8ZGl2IGNsYXNzPVwibGluay1pdGVtXCI+XG4gICAgPGFcbiAgICAgIGhyZWY9XCJodHRwczovL2dpdGh1Yi5jb20vamFja3N0ZWFtZGV2L29ic2lkaWFuLW1jcC10b29sc1wiXG4gICAgICB0YXJnZXQ9XCJfYmxhbmtcIlxuICAgID5cbiAgICAgIEdpdEh1YiByZXBvc2l0b3J5XG4gICAgPC9hPlxuICA8L2Rpdj5cbjwvZGl2PlxuXG48c3R5bGU+XG4gIC5lcnJvci1tZXNzYWdlIHtcbiAgICBjb2xvcjogdmFyKC0tdGV4dC1lcnJvcik7XG4gICAgbWFyZ2luLWJvdHRvbTogMWVtO1xuICB9XG5cbiAgLnN0YXR1cy1tZXNzYWdlIHtcbiAgICBtYXJnaW4tYm90dG9tOiAxZW07XG4gIH1cblxuICAuZGVwZW5kZW5jeS1pdGVtIHtcbiAgICBtYXJnaW4tYm90dG9tOiAwLjVlbTtcbiAgfVxuXG4gIC5pbnN0YWxsZWQge1xuICAgIGNvbG9yOiB2YXIoLS10ZXh0LXN1Y2Nlc3MpO1xuICB9XG5cbiAgLm5vdC1pbnN0YWxsZWQge1xuICAgIGNvbG9yOiB2YXIoLS10ZXh0LW11dGVkKTtcbiAgfVxuXG4gIC5saW5rLWl0ZW0ge1xuICAgIG1hcmdpbi1ib3R0b206IDAuNWVtO1xuICB9XG5cbiAgYnV0dG9uIHtcbiAgICBtYXJnaW4tbGVmdDogMC41ZW07XG4gIH1cbjwvc3R5bGU+XG4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQXVJQSxFQUFFLDZCQUFjLENBQUM7QUFDakIsSUFBSSx3QkFBd0I7QUFDNUIsSUFBSSxrQkFBa0I7QUFDdEI7O0FBRUEsRUFBRSw4QkFBZSxDQUFDO0FBQ2xCLElBQUksa0JBQWtCO0FBQ3RCOztBQUVBLEVBQUUsK0JBQWdCLENBQUM7QUFDbkIsSUFBSSxvQkFBb0I7QUFDeEI7O0FBRUEsY0FBRTtBQUNGO0FBQ0E7O0FBRUEsY0FBRTtBQUNGO0FBQ0E7O0FBRUEsRUFBRSx5QkFBVSxDQUFDO0FBQ2IsSUFBSSxvQkFBb0I7QUFDeEI7O0FBRUEsRUFBRSxxQkFBTSxDQUFDO0FBQ1QsSUFBSSxrQkFBa0I7QUFDdEI7In0= */`};function p6(Q,X){OX(new.target),PZ(X,!1,p6),Q$(Q,z11);let[Z,J]=W$(),G=()=>(K$(H,"deps"),Y$(H,"$deps",Z)),Y=jX(X,"plugin",8),H=PI(Y()),K=wK({state:"not installed",versions:{}});VM(async()=>{Y6(K,await QB(Y()))});async function z(){try{let w=await Y().getLocalRestApiKey();if(!w)throw new Error("Local REST API key is not configured");Y6(K,{...G0(K),state:"installing"});let A=await XB(Y());await b$(Y(),A.path,w),Y6(K,await QB(Y()))}catch(w){let A=w instanceof Error?w.message:"Installation failed";Y6(K,{...G0(K),state:"error",error:A}),new YB.Notice(A)}}async function W(){try{Y6(K,{...G0(K),state:"installing"}),await JB(Y()),await DI(),Y6(K,{...G0(K),state:"not installed"})}catch(w){let A=w instanceof Error?w.message:"Uninstallation failed";Y6(K,{...G0(K),state:"error",error:A}),new YB.Notice(A)}}J$();var $=H11(),q=YQ($),B=V9(g8(q),2);{var D=(w)=>{var A=te();D6(w,A)},F=(w)=>{var A=R4(),R=YQ(A);{var T=(v)=>{var h=re(),x=V9(g8(h));y8(h),DZ("click",x,z),D6(v,h)},S=(v)=>{var h=R4(),x=YQ(h);{var p=(t)=>{var Y1=ee();D6(t,Y1)},n=(t)=>{var Y1=R4(),G1=YQ(Y1);{var V1=(N1)=>{var j1=Q11(),d1=g8(j1),D1=V9(d1);y8(j1),M4(()=>LZ(d1,`MCP Server v${G0(K).versions.server??""} is installed `)),DZ("click",D1,W),D6(N1,j1)},C1=(N1)=>{var j1=R4(),d1=YQ(j1);{var D1=(P1)=>{var Q1=Z11(),O1=g8(Q1),S1=V9(O1);y8(Q1),M4(()=>LZ(O1,`Update available (v${G0(K).versions.server??""} -> v${G0(K).versions.plugin??""}) `)),DZ("click",S1,z),D6(P1,Q1)},e=(P1)=>{var Q1=R4(),O1=YQ(Q1);{var S1=(d)=>{var f=X11();D6(d,f)},k=(d)=>{var f=R4(),j=YQ(f);{var m=(Z1)=>{var _=J11(),J1=g8(_,!0);y8(_),M4(()=>LZ(J1,G0(K).error)),D6(Z1,_)};D9(j,(Z1)=>{if(SQ(G0(K).state,"error"))Z1(m)},!0)}D6(d,f)};D9(O1,(d)=>{if(SQ(G0(K).state,"uninstalling"))d(S1);else d(k,!1)},!0)}D6(P1,Q1)};D9(d1,(P1)=>{if(SQ(G0(K).state,"outdated"))P1(D1);else P1(e,!1)},!0)}D6(N1,j1)};D9(G1,(N1)=>{if(SQ(G0(K).state,"installed"))N1(V1);else N1(C1,!1)},!0)}D6(t,Y1)};D9(x,(t)=>{if(SQ(G0(K).state,"installing"))t(p);else t(n,!1)},!0)}D6(v,h)};D9(R,(v)=>{if(SQ(G0(K).state,"not installed"))v(T);else v(S,!1)},!0)}D6(w,A)};D9(B,(w)=>{if(SQ(G0(K).state,"no api key"))w(D);else w(F,!1)})}y8(q);var P=V9(q,2),N=V9(g8(P),2);H$(G,(w)=>w.id),eK(N,1,G,(w)=>w.id,(w,A)=>{var R=W11(),T=g8(R);{var S=(h)=>{var x=aK();M4(()=>LZ(x,`✅ ${G0(A).name??""} is installed`)),D6(h,x)},v=(h)=>{var x=Y11(),p=YQ(x),n=V9(p);{var t=(Y1)=>{var G1=G11();M4(()=>X$(G1,"href",G0(A).url)),D6(Y1,G1)};D9(n,(Y1)=>{if(G0(A).url)Y1(t)})}M4(()=>LZ(p,`❌ ${G0(A).name??""} ${(G0(A).required?"(Required)":"(Optional)")??""} `)),D6(h,x)};D9(T,(h)=>{if(G0(A).installed)h(S);else h(v,!1)})}y8(R),D6(w,R)}),y8(P);var C=V9(P,2),L=V9(g8(C),2);{var V=(w)=>{var A=q11(),R=g8(A);y8(A),DZ("click",R,()=>G0(K).dir&&GB(G0(K).dir)),D6(w,A)};D9(L,(w)=>{if(G0(K).path)w(V)})}var M=V9(L,2),I=g8(M);y8(M),Rq(2),y8(C),DZ("click",I,()=>GB(DA.dirname(UI))),D6(Q,$);var E=FZ({...wX()});return J(),E}CX(p6);async function LA(Q){try{return{success:!0}}catch(X){return{success:!1,error:X instanceof Error?X.message:String(X)}}}LX();AZ[f0]="SettingsTab.svelte";var K11=z8(K8('
'),AZ[f0],[[5,0]]);function AZ(Q,X){OX(new.target),PZ(X,!1,AZ);let Z=jX(X,"plugin",8);var J=K11(),G=g8(J);return p6(G,{get plugin(){return Z()}}),y8(J),D6(Q,J),FZ({...wX()})}CX(AZ);var CA=require("obsidian");class NA extends CA.PluginSettingTab{plugin;component;constructor(Q,X){super(Q,X);this.plugin=X}display(){let{containerEl:Q}=this;Q.empty(),this.component=Z7(AZ,{target:Q,props:{plugin:this.plugin}})}hide(){this.component&&AX(this.component)}}async function TA(Q){try{return Q.addSettingTab(new NA(Q.app,Q)),{success:!0}}catch(X){return{success:!1,error:X instanceof Error?X.message:String(X)}}}class WB extends w4.Plugin{localRestApi={id:"obsidian-local-rest-api",name:"Local REST API",required:!0,installed:!1};async getLocalRestApiKey(){return this.localRestApi.plugin?.settings?.apiKey}async onload(){await TA(this),await LA(this),P3.lastValueFrom(x$(this)).then((Q)=>{if(this.localRestApi=Q,!this.localRestApi.api){new w4.Notice(`${this.manifest.name}: Local REST API plugin is required but not found. Please install it from the community plugins and restart Obsidian.`,0);return}this.localRestApi.api.addRoute("/search/smart").post(this.handleSearchRequest.bind(this)),this.localRestApi.api.addRoute("/templates/execute").post(this.handleTemplateExecution.bind(this)),m0.info("MCP Tools Plugin loaded")})}async handleTemplateExecution(Q,X){try{let{api:Z}=await P3.lastValueFrom(v$(this));if(!Z){new w4.Notice(`${this.manifest.name}: Templater plugin is not available. Please install it from the community plugins.`,0),m0.error("Templater plugin is not available"),X.status(503).json({error:"Templater plugin is not available"});return}let J=Bq.ApiTemplateExecutionParams(Q.body);if(J instanceof c1.errors){let W={error:"Invalid request body",body:Q.body,summary:J.summary};m0.debug("Invalid request body",W),X.status(400).json(W);return}let G=this.app.vault.getAbstractFileByPath(J.name);if(!(G instanceof w4.TFile)){m0.debug("Template file not found",{params:J,templateFile:G}),X.status(404).json({error:`File not found: ${J.name}`});return}let Y=Z.create_running_config(G,G,Vq.RunMode.CreateNewFromTemplate),H=(W)=>{return J.arguments[W]??""},K=Z.functions_generator.generate_object.bind(Z.functions_generator);Z.functions_generator.generate_object=async function(W,$){let q=await K(W,$);return Object.assign(q,{mcpTools:{prompt:H}}),q};let z=await Z.read_and_parse_template(Y);if(Z.functions_generator.generate_object=K,J.createFile&&J.targetPath){await this.app.vault.create(J.targetPath,z),X.json({message:"Prompt executed and file created successfully",content:z});return}X.json({message:"Prompt executed without creating a file",content:z})}catch(Z){m0.error("Prompt execution error:",{error:Z instanceof Error?Z.message:Z,body:Q.body}),X.status(503).json({error:"An error occurred while processing the prompt"});return}}async handleSearchRequest(Q,X){try{let J=(await P3.lastValueFrom(y$(this))).api;if(!J){new w4.Notice("Smart Search REST API Plugin: smart-connections plugin is required but not found. Please install it from the community plugins.",0),X.status(503).json({error:"Smart Connections plugin is not available"});return}let G=bN.pipe(({query:K,filter:z={}})=>({query:K,filter:Jz({key_starts_with_any:z.folders,exclude_key_starts_with_any:z.excludeFolders,limit:z.limit})})).to(mN)(Q.body);if(G instanceof c1.errors){X.status(400).json({error:"Invalid request body",summary:G.summary});return}let Y=await J.search(G.query,G.filter),H={results:await Promise.all(Y.map(async(K)=>({path:K.item.path,text:await K.item.read(),score:K.score,breadcrumbs:K.item.breadcrumbs})))};X.json(H);return}catch(Z){m0.error("Smart Search API error:",{error:Z,body:Q.body}),X.status(503).json({error:"An error occurred while processing the search request"});return}}onunload(){this.localRestApi.api?.unregister()}} /* nosourcemap */