#!/usr/bin/env node
// (c) Anthropic PBC. All rights reserved. Use is subject to the Legal Agreements outlined here: https://code.claude.com/docs/en/legal-and-compliance.

// Version: 2.1.69

// Want to see the unminified source? We're hiring!
// https://job-boards.greenhouse.io/anthropic/jobs/4816199008
import{createRequire as Vlq}from"node:module";var Plq=Object.create;var{getPrototypeOf:Wlq,defineProperty:zL6,getOwnPropertyNames:Le8,getOwnPropertyDescriptor:Glq}=Object,ye8=Object.prototype.hasOwnProperty;function Re8(A){return this[A]}var Zlq,flq,q6=(A,q,K)=>{var Y=A!=null&&typeof A==="object";if(Y){var z=q?Zlq??=new WeakMap:flq??=new WeakMap,w=z.get(A);if(w)return w}K=A!=null?Plq(Wlq(A)):{};let _=q||!A||!A.__esModule?zL6(K,"default",{value:A,enumerable:!0}):K;for(let $ of Le8(A))if(!ye8.call(_,$))zL6(_,$,{get:Re8.bind(A,$),enumerable:!0});if(Y)z.set(A,_);return _},nj=(A)=>{var q=(Ee8??=new WeakMap).get(A),K;if(q)return q;if(q=zL6({},"__esModule",{value:!0}),A&&typeof A==="object"||typeof A==="function"){for(var Y of Le8(A))if(!ye8.call(q,Y))zL6(q,Y,{get:Re8.bind(A,Y),enumerable:!(K=Glq(A,Y))||K.enumerable})}return Ee8.set(A,q),q},Ee8,h=(A,q)=>()=>(q||A((q={exports:{}}).exports,q),q.exports);var Tlq=(A)=>A;function vlq(A,q){this[A]=Tlq.bind(null,q)}var d1=(A,q)=>{for(var K in q)zL6(A,K,{get:q[K],enumerable:!0,configurable:!0,set:vlq.bind(q,K)})};var E=(A,q)=>()=>(A&&(q=A(A=0)),q);var u6=Vlq(import.meta.url),Nlq=Symbol.dispose||Symbol.for("Symbol.dispose"),klq=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),FY=(A,q,K)=>{if(q!=null){if(typeof q!=="object"&&typeof q!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var Y;if(K)Y=q[klq];if(Y===void 0)Y=q[Nlq];if(typeof Y!=="function")throw TypeError("Object not disposable");A.push([K,Y,q])}else if(K)A.push([K]);return q},QY=(A,q,K)=>{var Y=typeof SuppressedError==="function"?SuppressedError:function(_,$,O,H){return H=Error(O),H.name="SuppressedError",H.error=_,H.suppressed=$,H},z=(_)=>q=K?new Y(_,q,"An error was suppressed during disposal"):(K=!0,_),w=(_)=>{while(_=A.pop())try{var $=_[1]&&_[1].call(_[2]);if(_[0])return Promise.resolve($).then(w,(O)=>(z(O),w()))}catch(O){z(O)}if(K)throw q};return w()};var Elq,Qt6;var bb1=E(()=>{Elq=typeof global=="object"&&global&&global.Object===Object&&global,Qt6=Elq});var Llq,ylq,Yj;var mL=E(()=>{bb1();Llq=typeof self=="object"&&self&&self.Object===Object&&self,ylq=Qt6||Llq||Function("return this")(),Yj=ylq});var Rlq,DX;var T76=E(()=>{mL();Rlq=Yj.Symbol,DX=Rlq});function Clq(A){var q=Slq.call(A,wL6),K=A[wL6];try{A[wL6]=void 0;var Y=!0}catch(w){}var z=hlq.call(A);if(Y)if(q)A[wL6]=K;else delete A[wL6];return z}var Se8,Slq,hlq,wL6,he8;var Ce8=E(()=>{T76();Se8=Object.prototype,Slq=Se8.hasOwnProperty,hlq=Se8.toString,wL6=DX?DX.toStringTag:void 0;he8=Clq});function blq(A){return xlq.call(A)}var Ilq,xlq,Ie8;var xe8=E(()=>{Ilq=Object.prototype,xlq=Ilq.toString;Ie8=blq});function Blq(A){if(A==null)return A===void 0?mlq:ulq;return be8&&be8 in Object(A)?he8(A):Ie8(A)}var ulq="[object Null]",mlq="[object Undefined]",be8,gN;var v76=E(()=>{T76();Ce8();xe8();be8=DX?DX.toStringTag:void 0;gN=Blq});function glq(A){var q=typeof A;return A!=null&&(q=="object"||q=="function")}var Zw;var UZ=E(()=>{Zw=glq});function dlq(A){if(!Zw(A))return!1;var q=gN(A);return q==Flq||q==Qlq||q==plq||q==Ulq}var plq="[object AsyncFunction]",Flq="[object Function]",Qlq="[object GeneratorFunction]",Ulq="[object Proxy]",u$6;var Ut6=E(()=>{v76();UZ();u$6=dlq});var clq,dt6;var ue8=E(()=>{mL();clq=Yj["__core-js_shared__"],dt6=clq});function llq(A){return!!me8&&me8 in A}var me8,Be8;var ge8=E(()=>{ue8();me8=function(){var A=/[^.]+$/.exec(dt6&&dt6.keys&&dt6.keys.IE_PROTO||"");return A?"Symbol(src)_1."+A:""}();Be8=llq});function rlq(A){if(A!=null){try{return nlq.call(A)}catch(q){}try{return A+""}catch(q){}}return""}var ilq,nlq,bQ;var ub1=E(()=>{ilq=Function.prototype,nlq=ilq.toString;bQ=rlq});function Kiq(A){if(!Zw(A)||Be8(A))return!1;var q=u$6(A)?qiq:alq;return q.test(bQ(A))}var olq,alq,slq,tlq,elq,Aiq,qiq,pe8;var Fe8=E(()=>{Ut6();ge8();UZ();ub1();olq=/[\\^$.*+?()[\]{}|]/g,alq=/^\[object .+?Constructor\]$/,slq=Function.prototype,tlq=Object.prototype,elq=slq.toString,Aiq=tlq.hasOwnProperty,qiq=RegExp("^"+elq.call(Aiq).replace(olq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");pe8=Kiq});function Yiq(A,q){return A==null?void 0:A[q]}var Qe8;var Ue8=E(()=>{Qe8=Yiq});function ziq(A,q){var K=Qe8(A,q);return pe8(K)?K:void 0}var Av;var sr=E(()=>{Fe8();Ue8();Av=ziq});var wiq,uQ;var _L6=E(()=>{sr();wiq=Av(Object,"create"),uQ=wiq});function _iq(){this.__data__=uQ?uQ(null):{},this.size=0}var de8;var ce8=E(()=>{_L6();de8=_iq});function $iq(A){var q=this.has(A)&&delete this.__data__[A];return this.size-=q?1:0,q}var le8;var ie8=E(()=>{le8=$iq});function Jiq(A){var q=this.__data__;if(uQ){var K=q[A];return K===Oiq?void 0:K}return jiq.call(q,A)?q[A]:void 0}var Oiq="__lodash_hash_undefined__",Hiq,jiq,ne8;var re8=E(()=>{_L6();Hiq=Object.prototype,jiq=Hiq.hasOwnProperty;ne8=Jiq});function Xiq(A){var q=this.__data__;return uQ?q[A]!==void 0:Diq.call(q,A)}var Miq,Diq,oe8;var ae8=E(()=>{_L6();Miq=Object.prototype,Diq=Miq.hasOwnProperty;oe8=Xiq});function Wiq(A,q){var K=this.__data__;return this.size+=this.has(A)?0:1,K[A]=uQ&&q===void 0?Piq:q,this}var Piq="__lodash_hash_undefined__",se8;var te8=E(()=>{_L6();se8=Wiq});function m$6(A){var q=-1,K=A==null?0:A.length;this.clear();while(++q<K){var Y=A[q];this.set(Y[0],Y[1])}}var mb1;var ee8=E(()=>{ce8();ie8();re8();ae8();te8();m$6.prototype.clear=de8;m$6.prototype.delete=le8;m$6.prototype.get=ne8;m$6.prototype.has=oe8;m$6.prototype.set=se8;mb1=m$6});function Giq(){this.__data__=[],this.size=0}var A6A;var q6A=E(()=>{A6A=Giq});function Ziq(A,q){return A===q||A!==A&&q!==q}var xu;var B$6=E(()=>{xu=Ziq});function fiq(A,q){var K=A.length;while(K--)if(xu(A[K][0],q))return K;return-1}var tr;var $L6=E(()=>{B$6();tr=fiq});function Viq(A){var q=this.__data__,K=tr(q,A);if(K<0)return!1;var Y=q.length-1;if(K==Y)q.pop();else viq.call(q,K,1);return--this.size,!0}var Tiq,viq,K6A;var Y6A=E(()=>{$L6();Tiq=Array.prototype,viq=Tiq.splice;K6A=Viq});function Niq(A){var q=this.__data__,K=tr(q,A);return K<0?void 0:q[K][1]}var z6A;var w6A=E(()=>{$L6();z6A=Niq});function kiq(A){return tr(this.__data__,A)>-1}var _6A;var $6A=E(()=>{$L6();_6A=kiq});function Eiq(A,q){var K=this.__data__,Y=tr(K,A);if(Y<0)++this.size,K.push([A,q]);else K[Y][1]=q;return this}var O6A;var H6A=E(()=>{$L6();O6A=Eiq});function g$6(A){var q=-1,K=A==null?0:A.length;this.clear();while(++q<K){var Y=A[q];this.set(Y[0],Y[1])}}var er;var OL6=E(()=>{q6A();Y6A();w6A();$6A();H6A();g$6.prototype.clear=A6A;g$6.prototype.delete=K6A;g$6.prototype.get=z6A;g$6.prototype.has=_6A;g$6.prototype.set=O6A;er=g$6});var Liq,Ao;var ct6=E(()=>{sr();mL();Liq=Av(Yj,"Map"),Ao=Liq});function yiq(){this.size=0,this.__data__={hash:new mb1,map:new(Ao||er),string:new mb1}}var j6A;var J6A=E(()=>{ee8();OL6();ct6();j6A=yiq});function Riq(A){var q=typeof A;return q=="string"||q=="number"||q=="symbol"||q=="boolean"?A!=="__proto__":A===null}var M6A;var D6A=E(()=>{M6A=Riq});function Siq(A,q){var K=A.__data__;return M6A(q)?K[typeof q=="string"?"string":"hash"]:K.map}var qo;var HL6=E(()=>{D6A();qo=Siq});function hiq(A){var q=qo(this,A).delete(A);return this.size-=q?1:0,q}var X6A;var P6A=E(()=>{HL6();X6A=hiq});function Ciq(A){return qo(this,A).get(A)}var W6A;var G6A=E(()=>{HL6();W6A=Ciq});function Iiq(A){return qo(this,A).has(A)}var Z6A;var f6A=E(()=>{HL6();Z6A=Iiq});function xiq(A,q){var K=qo(this,A),Y=K.size;return K.set(A,q),this.size+=K.size==Y?0:1,this}var T6A;var v6A=E(()=>{HL6();T6A=xiq});function p$6(A){var q=-1,K=A==null?0:A.length;this.clear();while(++q<K){var Y=A[q];this.set(Y[0],Y[1])}}var V76;var lt6=E(()=>{J6A();P6A();G6A();f6A();v6A();p$6.prototype.clear=j6A;p$6.prototype.delete=X6A;p$6.prototype.get=W6A;p$6.prototype.has=Z6A;p$6.prototype.set=T6A;V76=p$6});function Bb1(A,q){if(typeof A!="function"||q!=null&&typeof q!="function")throw TypeError(biq);var K=function(){var Y=arguments,z=q?q.apply(this,Y):Y[0],w=K.cache;if(w.has(z))return w.get(z);var _=A.apply(this,Y);return K.cache=w.set(z,_)||w,_};return K.cache=new(Bb1.Cache||V76),K}var biq="Expected a function",k8;var Rq=E(()=>{lt6();Bb1.Cache=V76;k8=Bb1});function V6A(A){return(q)=>{if(q.code==="EPIPE")A.destroy()}}function N6A(){process.stdout.on("error",V6A(process.stdout)),process.stderr.on("error",V6A(process.stderr))}function k6A(A,q){if(A.destroyed)return;A.write(q)}function C4(A){k6A(process.stdout,A)}function Ko(A){k6A(process.stderr,A)}function uiq(A){let q=[],K=A.match(/^MCP server ["']([^"']+)["']/);if(K&&K[1])q.push("mcp"),q.push(K[1].toLowerCase());else{let w=A.match(/^([^:[]+):/);if(w&&w[1])q.push(w[1].trim().toLowerCase())}let Y=A.match(/^\[([^\]]+)]/);if(Y&&Y[1])q.push(Y[1].trim().toLowerCase());if(A.toLowerCase().includes("1p event:"))q.push("1p");let z=A.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(z&&z[1]){let w=z[1].trim().toLowerCase();if(w.length<30&&!w.includes(" "))q.push(w)}return Array.from(new Set(q))}function miq(A,q){if(!q)return!0;if(A.length===0)return!1;if(q.isExclusive)return!A.some((K)=>q.exclude.includes(K));else return A.some((K)=>q.include.includes(K))}function L6A(A,q){if(!q)return!0;let K=uiq(A);return miq(K,q)}var E6A;var y6A=E(()=>{Rq();E6A=k8((A)=>{if(!A||A.trim()==="")return null;let q=A.split(",").map((w)=>w.trim()).filter(Boolean);if(q.length===0)return null;let K=q.some((w)=>w.startsWith("!")),Y=q.some((w)=>!w.startsWith("!"));if(K&&Y)return null;let z=q.map((w)=>w.replace(/^!/,"").toLowerCase());return{include:K?[]:z,exclude:K?z:[],isExclusive:K}})});function Biq(){this.__data__=new er,this.size=0}var R6A;var S6A=E(()=>{OL6();R6A=Biq});function giq(A){var q=this.__data__,K=q.delete(A);return this.size=q.size,K}var h6A;var C6A=E(()=>{h6A=giq});function piq(A){return this.__data__.get(A)}var I6A;var x6A=E(()=>{I6A=piq});function Fiq(A){return this.__data__.has(A)}var b6A;var u6A=E(()=>{b6A=Fiq});function Uiq(A,q){var K=this.__data__;if(K instanceof er){var Y=K.__data__;if(!Ao||Y.length<Qiq-1)return Y.push([A,q]),this.size=++K.size,this;K=this.__data__=new V76(Y)}return K.set(A,q),this.size=K.size,this}var Qiq=200,m6A;var B6A=E(()=>{OL6();ct6();lt6();m6A=Uiq});function F$6(A){var q=this.__data__=new er(A);this.size=q.size}var bu;var jL6=E(()=>{OL6();S6A();C6A();x6A();u6A();B6A();F$6.prototype.clear=R6A;F$6.prototype.delete=h6A;F$6.prototype.get=I6A;F$6.prototype.has=b6A;F$6.prototype.set=m6A;bu=F$6});function ciq(A){return this.__data__.set(A,diq),this}var diq="__lodash_hash_undefined__",g6A;var p6A=E(()=>{g6A=ciq});function liq(A){return this.__data__.has(A)}var F6A;var Q6A=E(()=>{F6A=liq});function it6(A){var q=-1,K=A==null?0:A.length;this.__data__=new V76;while(++q<K)this.add(A[q])}var nt6;var gb1=E(()=>{lt6();p6A();Q6A();it6.prototype.add=it6.prototype.push=g6A;it6.prototype.has=F6A;nt6=it6});function iiq(A,q){var K=-1,Y=A==null?0:A.length;while(++K<Y)if(q(A[K],K,A))return!0;return!1}var U6A;var d6A=E(()=>{U6A=iiq});function niq(A,q){return A.has(q)}var rt6;var pb1=E(()=>{rt6=niq});function aiq(A,q,K,Y,z,w){var _=K&riq,$=A.length,O=q.length;if($!=O&&!(_&&O>$))return!1;var H=w.get(A),j=w.get(q);if(H&&j)return H==q&&j==A;var J=-1,M=!0,D=K&oiq?new nt6:void 0;w.set(A,q),w.set(q,A);while(++J<$){var X=A[J],P=q[J];if(Y)var W=_?Y(P,X,J,q,A,w):Y(X,P,J,A,q,w);if(W!==void 0){if(W)continue;M=!1;break}if(D){if(!U6A(q,function(G,Z){if(!rt6(D,Z)&&(X===G||z(X,G,K,Y,w)))return D.push(Z)})){M=!1;break}}else if(!(X===P||z(X,P,K,Y,w))){M=!1;break}}return w.delete(A),w.delete(q),M}var riq=1,oiq=2,ot6;var Fb1=E(()=>{gb1();d6A();pb1();ot6=aiq});var siq,Q$6;var Qb1=E(()=>{mL();siq=Yj.Uint8Array,Q$6=siq});function tiq(A){var q=-1,K=Array(A.size);return A.forEach(function(Y,z){K[++q]=[z,Y]}),K}var c6A;var l6A=E(()=>{c6A=tiq});function eiq(A){var q=-1,K=Array(A.size);return A.forEach(function(Y){K[++q]=Y}),K}var U$6;var at6=E(()=>{U$6=eiq});function Dnq(A,q,K,Y,z,w,_){switch(K){case Mnq:if(A.byteLength!=q.byteLength||A.byteOffset!=q.byteOffset)return!1;A=A.buffer,q=q.buffer;case Jnq:if(A.byteLength!=q.byteLength||!w(new Q$6(A),new Q$6(q)))return!1;return!0;case Knq:case Ynq:case _nq:return xu(+A,+q);case znq:return A.name==q.name&&A.message==q.message;case $nq:case Hnq:return A==q+"";case wnq:var $=c6A;case Onq:var O=Y&Anq;if($||($=U$6),A.size!=q.size&&!O)return!1;var H=_.get(A);if(H)return H==q;Y|=qnq,_.set(A,q);var j=ot6($(A),$(q),Y,z,w,_);return _.delete(A),j;case jnq:if(Ub1)return Ub1.call(A)==Ub1.call(q)}return!1}var Anq=1,qnq=2,Knq="[object Boolean]",Ynq="[object Date]",znq="[object Error]",wnq="[object Map]",_nq="[object Number]",$nq="[object RegExp]",Onq="[object Set]",Hnq="[object String]",jnq="[object Symbol]",Jnq="[object ArrayBuffer]",Mnq="[object DataView]",i6A,Ub1,n6A;var r6A=E(()=>{T76();Qb1();B$6();Fb1();l6A();at6();i6A=DX?DX.prototype:void 0,Ub1=i6A?i6A.valueOf:void 0;n6A=Dnq});function Xnq(A,q){var K=-1,Y=q.length,z=A.length;while(++K<Y)A[z+K]=q[K];return A}var d$6;var st6=E(()=>{d$6=Xnq});var Pnq,fw;var dZ=E(()=>{Pnq=Array.isArray,fw=Pnq});function Wnq(A,q,K){var Y=q(A);return fw(A)?Y:d$6(Y,K(A))}var tt6;var db1=E(()=>{st6();dZ();tt6=Wnq});function Gnq(A,q){var K=-1,Y=A==null?0:A.length,z=0,w=[];while(++K<Y){var _=A[K];if(q(_,K,A))w[z++]=_}return w}var et6;var cb1=E(()=>{et6=Gnq});function Znq(){return[]}var Ae6;var lb1=E(()=>{Ae6=Znq});var fnq,Tnq,o6A,vnq,c$6;var qe6=E(()=>{cb1();lb1();fnq=Object.prototype,Tnq=fnq.propertyIsEnumerable,o6A=Object.getOwnPropertySymbols,vnq=!o6A?Ae6:function(A){if(A==null)return[];return A=Object(A),et6(o6A(A),function(q){return Tnq.call(A,q)})},c$6=vnq});function Vnq(A,q){var K=-1,Y=Array(A);while(++K<A)Y[K]=q(K);return Y}var a6A;var s6A=E(()=>{a6A=Vnq});function Nnq(A){return A!=null&&typeof A=="object"}var XD;var uu=E(()=>{XD=Nnq});function Enq(A){return XD(A)&&gN(A)==knq}var knq="[object Arguments]",ib1;var t6A=E(()=>{v76();uu();ib1=Enq});var e6A,Lnq,ynq,Rnq,mQ;var JL6=E(()=>{t6A();uu();e6A=Object.prototype,Lnq=e6A.hasOwnProperty,ynq=e6A.propertyIsEnumerable,Rnq=ib1(function(){return arguments}())?ib1:function(A){return XD(A)&&Lnq.call(A,"callee")&&!ynq.call(A,"callee")},mQ=Rnq});function Snq(){return!1}var A1A;var q1A=E(()=>{A1A=Snq});var Ye6={};d1(Ye6,{default:()=>mu});var z1A,K1A,hnq,Y1A,Cnq,Inq,mu;var ML6=E(()=>{mL();q1A();z1A=typeof Ye6=="object"&&Ye6&&!Ye6.nodeType&&Ye6,K1A=z1A&&typeof Ke6=="object"&&Ke6&&!Ke6.nodeType&&Ke6,hnq=K1A&&K1A.exports===z1A,Y1A=hnq?Yj.Buffer:void 0,Cnq=Y1A?Y1A.isBuffer:void 0,Inq=Cnq||A1A,mu=Inq});function unq(A,q){var K=typeof A;return q=q==null?xnq:q,!!q&&(K=="number"||K!="symbol"&&bnq.test(A))&&(A>-1&&A%1==0&&A<q)}var xnq=9007199254740991,bnq,Yo;var DL6=E(()=>{bnq=/^(?:0|[1-9]\d*)$/;Yo=unq});function Bnq(A){return typeof A=="number"&&A>-1&&A%1==0&&A<=mnq}var mnq=9007199254740991,l$6;var ze6=E(()=>{l$6=Bnq});function Orq(A){return XD(A)&&l$6(A.length)&&!!x$[gN(A)]}var gnq="[object Arguments]",pnq="[object Array]",Fnq="[object Boolean]",Qnq="[object Date]",Unq="[object Error]",dnq="[object Function]",cnq="[object Map]",lnq="[object Number]",inq="[object Object]",nnq="[object RegExp]",rnq="[object Set]",onq="[object String]",anq="[object WeakMap]",snq="[object ArrayBuffer]",tnq="[object DataView]",enq="[object Float32Array]",Arq="[object Float64Array]",qrq="[object Int8Array]",Krq="[object Int16Array]",Yrq="[object Int32Array]",zrq="[object Uint8Array]",wrq="[object Uint8ClampedArray]",_rq="[object Uint16Array]",$rq="[object Uint32Array]",x$,w1A;var _1A=E(()=>{v76();ze6();uu();x$={};x$[enq]=x$[Arq]=x$[qrq]=x$[Krq]=x$[Yrq]=x$[zrq]=x$[wrq]=x$[_rq]=x$[$rq]=!0;x$[gnq]=x$[pnq]=x$[snq]=x$[Fnq]=x$[tnq]=x$[Qnq]=x$[Unq]=x$[dnq]=x$[cnq]=x$[lnq]=x$[inq]=x$[nnq]=x$[rnq]=x$[onq]=x$[anq]=!1;w1A=Orq});function Hrq(A){return function(q){return A(q)}}var i$6;var we6=E(()=>{i$6=Hrq});var $e6={};d1($e6,{default:()=>Bu});var $1A,XL6,jrq,nb1,Jrq,Bu;var Oe6=E(()=>{bb1();$1A=typeof $e6=="object"&&$e6&&!$e6.nodeType&&$e6,XL6=$1A&&typeof _e6=="object"&&_e6&&!_e6.nodeType&&_e6,jrq=XL6&&XL6.exports===$1A,nb1=jrq&&Qt6.process,Jrq=function(){try{var A=XL6&&XL6.require&&XL6.require("util").types;if(A)return A;return nb1&&nb1.binding&&nb1.binding("util")}catch(q){}}(),Bu=Jrq});var O1A,Mrq,n$6;var He6=E(()=>{_1A();we6();Oe6();O1A=Bu&&Bu.isTypedArray,Mrq=O1A?i$6(O1A):w1A,n$6=Mrq});function Prq(A,q){var K=fw(A),Y=!K&&mQ(A),z=!K&&!Y&&mu(A),w=!K&&!Y&&!z&&n$6(A),_=K||Y||z||w,$=_?a6A(A.length,String):[],O=$.length;for(var H in A)if((q||Xrq.call(A,H))&&!(_&&(H=="length"||z&&(H=="offset"||H=="parent")||w&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||Yo(H,O))))$.push(H);return $}var Drq,Xrq,je6;var rb1=E(()=>{s6A();JL6();dZ();ML6();DL6();He6();Drq=Object.prototype,Xrq=Drq.hasOwnProperty;je6=Prq});function Grq(A){var q=A&&A.constructor,K=typeof q=="function"&&q.prototype||Wrq;return A===K}var Wrq,r$6;var Je6=E(()=>{Wrq=Object.prototype;r$6=Grq});function Zrq(A,q){return function(K){return A(q(K))}}var Me6;var ob1=E(()=>{Me6=Zrq});var frq,H1A;var j1A=E(()=>{ob1();frq=Me6(Object.keys,Object),H1A=frq});function Vrq(A){if(!r$6(A))return H1A(A);var q=[];for(var K in Object(A))if(vrq.call(A,K)&&K!="constructor")q.push(K);return q}var Trq,vrq,J1A;var M1A=E(()=>{Je6();j1A();Trq=Object.prototype,vrq=Trq.hasOwnProperty;J1A=Vrq});function Nrq(A){return A!=null&&l$6(A.length)&&!u$6(A)}var gu;var o$6=E(()=>{Ut6();ze6();gu=Nrq});function krq(A){return gu(A)?je6(A):J1A(A)}var BL;var N76=E(()=>{rb1();M1A();o$6();BL=krq});function Erq(A){return tt6(A,BL,c$6)}var PL6;var ab1=E(()=>{db1();qe6();N76();PL6=Erq});function Srq(A,q,K,Y,z,w){var _=K&Lrq,$=PL6(A),O=$.length,H=PL6(q),j=H.length;if(O!=j&&!_)return!1;var J=O;while(J--){var M=$[J];if(!(_?M in q:Rrq.call(q,M)))return!1}var D=w.get(A),X=w.get(q);if(D&&X)return D==q&&X==A;var P=!0;w.set(A,q),w.set(q,A);var W=_;while(++J<O){M=$[J];var G=A[M],Z=q[M];if(Y)var f=_?Y(Z,G,M,q,A,w):Y(G,Z,M,A,q,w);if(!(f===void 0?G===Z||z(G,Z,K,Y,w):f)){P=!1;break}W||(W=M=="constructor")}if(P&&!W){var v=A.constructor,V=q.constructor;if(v!=V&&(("constructor"in A)&&("constructor"in q))&&!(typeof v=="function"&&v instanceof v&&typeof V=="function"&&V instanceof V))P=!1}return w.delete(A),w.delete(q),P}var Lrq=1,yrq,Rrq,D1A;var X1A=E(()=>{ab1();yrq=Object.prototype,Rrq=yrq.hasOwnProperty;D1A=Srq});var hrq,De6;var P1A=E(()=>{sr();mL();hrq=Av(Yj,"DataView"),De6=hrq});var Crq,Xe6;var W1A=E(()=>{sr();mL();Crq=Av(Yj,"Promise"),Xe6=Crq});var Irq,zo;var sb1=E(()=>{sr();mL();Irq=Av(Yj,"Set"),zo=Irq});var xrq,Pe6;var G1A=E(()=>{sr();mL();xrq=Av(Yj,"WeakMap"),Pe6=xrq});var Z1A="[object Map]",brq="[object Object]",f1A="[object Promise]",T1A="[object Set]",v1A="[object WeakMap]",V1A="[object DataView]",urq,mrq,Brq,grq,prq,k76,BQ;var WL6=E(()=>{P1A();ct6();W1A();sb1();G1A();v76();ub1();urq=bQ(De6),mrq=bQ(Ao),Brq=bQ(Xe6),grq=bQ(zo),prq=bQ(Pe6),k76=gN;if(De6&&k76(new De6(new ArrayBuffer(1)))!=V1A||Ao&&k76(new Ao)!=Z1A||Xe6&&k76(Xe6.resolve())!=f1A||zo&&k76(new zo)!=T1A||Pe6&&k76(new Pe6)!=v1A)k76=function(A){var q=gN(A),K=q==brq?A.constructor:void 0,Y=K?bQ(K):"";if(Y)switch(Y){case urq:return V1A;case mrq:return Z1A;case Brq:return f1A;case grq:return T1A;case prq:return v1A}return q};BQ=k76});function Urq(A,q,K,Y,z,w){var _=fw(A),$=fw(q),O=_?k1A:BQ(A),H=$?k1A:BQ(q);O=O==N1A?We6:O,H=H==N1A?We6:H;var j=O==We6,J=H==We6,M=O==H;if(M&&mu(A)){if(!mu(q))return!1;_=!0,j=!1}if(M&&!j)return w||(w=new bu),_||n$6(A)?ot6(A,q,K,Y,z,w):n6A(A,q,O,K,Y,z,w);if(!(K&Frq)){var D=j&&E1A.call(A,"__wrapped__"),X=J&&E1A.call(q,"__wrapped__");if(D||X){var P=D?A.value():A,W=X?q.value():q;return w||(w=new bu),z(P,W,K,Y,w)}}if(!M)return!1;return w||(w=new bu),D1A(A,q,K,Y,z,w)}var Frq=1,N1A="[object Arguments]",k1A="[object Array]",We6="[object Object]",Qrq,E1A,L1A;var y1A=E(()=>{jL6();Fb1();r6A();X1A();WL6();dZ();ML6();He6();Qrq=Object.prototype,E1A=Qrq.hasOwnProperty;L1A=Urq});function R1A(A,q,K,Y,z){if(A===q)return!0;if(A==null||q==null||!XD(A)&&!XD(q))return A!==A&&q!==q;return L1A(A,q,K,Y,R1A,z)}var a$6;var Ge6=E(()=>{y1A();uu();a$6=R1A});function lrq(A,q,K,Y){var z=K.length,w=z,_=!Y;if(A==null)return!w;A=Object(A);while(z--){var $=K[z];if(_&&$[2]?$[1]!==A[$[0]]:!($[0]in A))return!1}while(++z<w){$=K[z];var O=$[0],H=A[O],j=$[1];if(_&&$[2]){if(H===void 0&&!(O in A))return!1}else{var J=new bu;if(Y)var M=Y(H,j,O,A,q,J);if(!(M===void 0?a$6(j,H,drq|crq,Y,J):M))return!1}}return!0}var drq=1,crq=2,S1A;var h1A=E(()=>{jL6();Ge6();S1A=lrq});function irq(A){return A===A&&!Zw(A)}var Ze6;var tb1=E(()=>{UZ();Ze6=irq});function nrq(A){var q=BL(A),K=q.length;while(K--){var Y=q[K],z=A[Y];q[K]=[Y,z,Ze6(z)]}return q}var C1A;var I1A=E(()=>{tb1();N76();C1A=nrq});function rrq(A,q){return function(K){if(K==null)return!1;return K[A]===q&&(q!==void 0||(A in Object(K)))}}var fe6;var eb1=E(()=>{fe6=rrq});function orq(A){var q=C1A(A);if(q.length==1&&q[0][2])return fe6(q[0][0],q[0][1]);return function(K){return K===A||S1A(K,A,q)}}var x1A;var b1A=E(()=>{h1A();I1A();eb1();x1A=orq});function srq(A){return typeof A=="symbol"||XD(A)&&gN(A)==arq}var arq="[object Symbol]",wo;var GL6=E(()=>{v76();uu();wo=srq});function Aoq(A,q){if(fw(A))return!1;var K=typeof A;if(K=="number"||K=="symbol"||K=="boolean"||A==null||wo(A))return!0;return erq.test(A)||!trq.test(A)||q!=null&&A in Object(q)}var trq,erq,s$6;var Te6=E(()=>{dZ();GL6();trq=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,erq=/^\w*$/;s$6=Aoq});function Koq(A){var q=k8(A,function(Y){if(K.size===qoq)K.clear();return Y}),K=q.cache;return q}var qoq=500,u1A;var m1A=E(()=>{Rq();u1A=Koq});var Yoq,zoq,woq,B1A;var g1A=E(()=>{m1A();Yoq=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zoq=/\\(\\)?/g,woq=u1A(function(A){var q=[];if(A.charCodeAt(0)===46)q.push("");return A.replace(Yoq,function(K,Y,z,w){q.push(z?w.replace(zoq,"$1"):Y||K)}),q}),B1A=woq});function _oq(A,q){var K=-1,Y=A==null?0:A.length,z=Array(Y);while(++K<Y)z[K]=q(A[K],K,A);return z}var t$6;var ve6=E(()=>{t$6=_oq});function Q1A(A){if(typeof A=="string")return A;if(fw(A))return t$6(A,Q1A)+"";if(wo(A))return F1A?F1A.call(A):"";var q=A+"";return q=="0"&&1/A==-$oq?"-0":q}var $oq=1/0,p1A,F1A,U1A;var d1A=E(()=>{T76();ve6();dZ();GL6();p1A=DX?DX.prototype:void 0,F1A=p1A?p1A.toString:void 0;U1A=Q1A});function Ooq(A){return A==null?"":U1A(A)}var e$6;var Ve6=E(()=>{d1A();e$6=Ooq});function Hoq(A,q){if(fw(A))return A;return s$6(A,q)?[A]:B1A(e$6(A))}var pu;var AO6=E(()=>{dZ();Te6();g1A();Ve6();pu=Hoq});function Joq(A){if(typeof A=="string"||wo(A))return A;var q=A+"";return q=="0"&&1/A==-joq?"-0":q}var joq=1/0,gL;var E76=E(()=>{GL6();gL=Joq});function Moq(A,q){q=pu(q,A);var K=0,Y=q.length;while(A!=null&&K<Y)A=A[gL(q[K++])];return K&&K==Y?A:void 0}var qO6;var Ne6=E(()=>{AO6();E76();qO6=Moq});function Doq(A,q,K){var Y=A==null?void 0:qO6(A,q);return Y===void 0?K:Y}var c1A;var l1A=E(()=>{Ne6();c1A=Doq});function Xoq(A,q){return A!=null&&q in Object(A)}var i1A;var n1A=E(()=>{i1A=Xoq});function Poq(A,q,K){q=pu(q,A);var Y=-1,z=q.length,w=!1;while(++Y<z){var _=gL(q[Y]);if(!(w=A!=null&&K(A,_)))break;A=A[_]}if(w||++Y!=z)return w;return z=A==null?0:A.length,!!z&&l$6(z)&&Yo(_,z)&&(fw(A)||mQ(A))}var r1A;var o1A=E(()=>{AO6();JL6();dZ();DL6();ze6();E76();r1A=Poq});function Woq(A,q){return A!=null&&r1A(A,q,i1A)}var a1A;var s1A=E(()=>{n1A();o1A();a1A=Woq});function foq(A,q){if(s$6(A)&&Ze6(q))return fe6(gL(A),q);return function(K){var Y=c1A(K,A);return Y===void 0&&Y===q?a1A(K,A):a$6(q,Y,Goq|Zoq)}}var Goq=1,Zoq=2,t1A;var e1A=E(()=>{Ge6();l1A();s1A();Te6();tb1();eb1();E76();t1A=foq});function Toq(A){return A}var KO6;var ke6=E(()=>{KO6=Toq});function voq(A){return function(q){return q==null?void 0:q[A]}}var A8A;var q8A=E(()=>{A8A=voq});function Voq(A){return function(q){return qO6(q,A)}}var K8A;var Y8A=E(()=>{Ne6();K8A=Voq});function Noq(A){return s$6(A)?A8A(gL(A)):K8A(A)}var z8A;var w8A=E(()=>{q8A();Y8A();Te6();E76();z8A=Noq});function koq(A){if(typeof A=="function")return A;if(A==null)return KO6;if(typeof A=="object")return fw(A)?t1A(A[0],A[1]):x1A(A);return z8A(A)}var Fu;var YO6=E(()=>{b1A();e1A();ke6();dZ();w8A();Fu=koq});function Eoq(A,q){var K,Y=-1,z=A.length;while(++Y<z){var w=q(A[Y]);if(w!==void 0)K=K===void 0?w:K+w}return K}var _8A;var $8A=E(()=>{_8A=Eoq});function Loq(A,q){return A&&A.length?_8A(A,Fu(q,2)):0}var zO6;var O8A=E(()=>{YO6();$8A();zO6=Loq});function H8A(){return Au1}function j8A(A){Au1=A}function tJ(){Au1=null}function Ee6(){return qu1}function J8A(A){qu1=A}function M8A(){qu1=void 0}var Au1=null,qu1;var Hm1={};d1(Hm1,{updateLastInteractionTime:()=>y76,switchSession:()=>nP,setUseCoworkPlugins:()=>QN,setTracerProvider:()=>be6,setTeleportedSessionInfo:()=>SL6,setSystemPromptSectionCacheEntry:()=>Ym1,setStatsStore:()=>Xu1,setSessionTrustAccepted:()=>RL6,setSessionSource:()=>xu1,setSessionPersistenceDisabled:()=>iu1,setSessionIngressToken:()=>C76,setSessionBypassPermissionsMode:()=>lu1,setSdkBetas:()=>Nu1,setScheduledTasksEnabled:()=>Foq,setQuestionPreviewFormat:()=>me6,setPromptId:()=>IL6,setPromptCache1hAllowlist:()=>$m1,setOriginalCwd:()=>gQ,setOauthTokenFromFd:()=>I76,setNeedsPlanModeExitAttachment:()=>Uu,setModelStrings:()=>vL6,setMeterProvider:()=>xe6,setMeter:()=>ku1,setMainThreadAgentType:()=>QQ,setMainLoopModelOverride:()=>KG,setLspRecommendationShownThisSession:()=>au1,setLoggerProvider:()=>Ce6,setLastEmittedDate:()=>XO6,setLastAPIRequest:()=>pu1,setIsRemoteMode:()=>Am1,setIsInteractive:()=>Cu1,setIsInWorktree:()=>hL6,setInlinePlugins:()=>du1,setInitialMainLoopModel:()=>Vu1,setInitJsonSchema:()=>su1,setHasUnknownModelCost:()=>Se6,setHasExitedPlanMode:()=>FL,setFlagSettingsPath:()=>bu1,setFlagSettingsInline:()=>uu1,setEventLogger:()=>Ie6,setDirectConnectServerUrl:()=>Le6,setCwdState:()=>L76,setCostStateForRestore:()=>TL6,setClientType:()=>Iu1,setChromeFlagOverride:()=>cu1,setApiKeyFromFd:()=>x76,setAllowedSettingSources:()=>Uu1,setAdditionalDirectoriesForClaudeMd:()=>CL6,resetTurnToolDuration:()=>Mu1,resetTurnHookDuration:()=>Ju1,resetTurnClassifierDuration:()=>Du1,resetTotalDurationStateAndCost_FOR_TESTS_ONLY:()=>Roq,resetStateForTests:()=>Z8A,resetSdkInitState:()=>f8A,resetModelStringsForTestingOnly:()=>moq,resetCostState:()=>OO6,removeSessionCronTasks:()=>coq,registerHookCallbacks:()=>m76,regenerateSessionId:()=>Ku1,preferThirdPartyAuthentication:()=>EL6,needsPlanModeExitAttachment:()=>ru1,markFirstTeleportMessageLogged:()=>Fe6,isSessionPersistenceDisabled:()=>pL,hasUnknownModelCost:()=>Tu1,hasShownLspRecommendationThisSession:()=>ou1,hasExitedPlanModeInSession:()=>nu1,handlePlanModeTransition:()=>pQ,getUseCoworkPlugins:()=>yL6,getUsageForModel:()=>vu1,getTurnToolDurationMs:()=>Coq,getTurnToolCount:()=>Ioq,getTurnHookDurationMs:()=>Soq,getTurnHookCount:()=>hoq,getTurnClassifierDurationMs:()=>xoq,getTurnClassifierCount:()=>uoq,getTracerProvider:()=>h76,getTotalWebSearchRequests:()=>fu1,getTotalToolDuration:()=>Hu1,getTotalOutputTokens:()=>fL6,getTotalLinesRemoved:()=>S76,getTotalLinesAdded:()=>R76,getTotalInputTokens:()=>ZL6,getTotalDuration:()=>wO6,getTotalCostUSD:()=>XX,getTotalCacheReadInputTokens:()=>Gu1,getTotalCacheCreationInputTokens:()=>Zu1,getTotalAPIDurationWithoutRetries:()=>Ou1,getTotalAPIDuration:()=>pN,getTokenCounter:()=>jO6,getTeleportedSessionInfo:()=>pe6,getSystemPromptSectionCache:()=>Km1,getStatsStore:()=>_O6,getSlowOperations:()=>V8A,getSessionTrustAccepted:()=>DO6,getSessionSource:()=>goq,getSessionProjectDir:()=>zu1,getSessionIngressToken:()=>mu1,getSessionId:()=>i1,getSessionCronTasks:()=>Uoq,getSessionCounter:()=>Eu1,getSessionBypassPermissionsMode:()=>u76,getSdkBetas:()=>zj,getScheduledTasksEnabled:()=>Qoq,getRegisteredHooks:()=>$o,getQuestionPreviewFormat:()=>ue6,getPromptId:()=>Om1,getPromptCache1hAllowlist:()=>_m1,getProjectRoot:()=>A_,getPrCounter:()=>VL6,getPlanSlugCache:()=>B76,getParentSessionId:()=>Yu1,getOriginalCwd:()=>OA,getOauthTokenFromFd:()=>Bu1,getModelUsage:()=>qC,getModelStrings:()=>HO6,getMeterProvider:()=>hu1,getMeter:()=>Boq,getMainThreadAgentType:()=>FQ,getMainLoopModelOverride:()=>KC,getLoggerProvider:()=>kL6,getLocCounter:()=>he6,getLastInteractionTime:()=>Qu,getLastEmittedDate:()=>wm1,getLastAPIRequest:()=>Fu1,getIsRemoteMode:()=>Xq,getIsNonInteractiveSession:()=>B7,getIsInteractive:()=>FN,getIsInWorktree:()=>qm1,getInvokedSkillsForAgent:()=>Qe6,getInvokedSkills:()=>ioq,getInlinePlugins:()=>b76,getInitialMainLoopModel:()=>$O6,getInitJsonSchema:()=>ge6,getFlagSettingsPath:()=>_o,getFlagSettingsInline:()=>MO6,getEventLogger:()=>Su1,getDirectConnectServerUrl:()=>wu1,getCwdState:()=>AC,getCostCounter:()=>yu1,getCommitCounter:()=>Lu1,getCodeEditToolDecisionCounter:()=>NL6,getClientType:()=>JO6,getChromeFlagOverride:()=>LL6,getApiKeyFromFd:()=>gu1,getAllowedSettingSources:()=>Qu1,getAgentColorMap:()=>Be6,getAdditionalDirectoriesForClaudeMd:()=>qv,getActiveTimeCounter:()=>Ru1,flushInteractionTime:()=>Wu1,clearSystemPromptSectionState:()=>zm1,clearRegisteredPluginHooks:()=>tu1,clearRegisteredHooks:()=>loq,clearInvokedSkillsForAgent:()=>p76,clearInvokedSkills:()=>eu1,addToTurnHookDuration:()=>ju1,addToTurnClassifierDuration:()=>boq,addToTotalLinesChanged:()=>Re6,addToTotalDurationState:()=>_u1,addToTotalCostState:()=>$u1,addToToolDuration:()=>ye6,addToInMemoryErrorLog:()=>poq,addSlowOperation:()=>v8A,addSessionCronTask:()=>doq,addInvokedSkill:()=>g76});import{cwd as yoq}from"process";import{realpathSync as D8A}from"fs";import{randomUUID as P8A}from"crypto";function W8A(){let A="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof D8A==="function")A=D8A(yoq()).normalize("NFC");return{originalCwd:A,projectRoot:A,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:A,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:P8A(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,inMemoryErrorLog:[],inlinePlugins:[],chromeFlagOverride:void 0,useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,lspRecommendationShownThisSession:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,isInWorktree:!1,...{},directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],sessionProjectDir:null,promptCache1hAllowlist:null,promptId:null}}function i1(){return B1.sessionId}function Ku1(A={}){if(A.setCurrentAsParent)B1.parentSessionId=B1.sessionId;return B1.sessionId=P8A(),B1.sessionProjectDir=null,B1.sessionId}function Yu1(){return B1.parentSessionId}function nP(A,q=null){B1.sessionId=A,B1.sessionProjectDir=q}function zu1(){return B1.sessionProjectDir}function OA(){return B1.originalCwd}function A_(){return B1.projectRoot}function gQ(A){B1.originalCwd=A.normalize("NFC")}function AC(){return B1.cwd}function L76(A){B1.cwd=A.normalize("NFC")}function wu1(){return B1.directConnectServerUrl}function Le6(A){B1.directConnectServerUrl=A}function _u1(A,q){B1.totalAPIDuration+=A,B1.totalAPIDurationWithoutRetries+=q}function Roq(){B1.totalAPIDuration=0,B1.totalAPIDurationWithoutRetries=0,B1.totalCostUSD=0}function $u1(A,q,K){B1.modelUsage[K]=q,B1.totalCostUSD+=A}function XX(){return B1.totalCostUSD}function pN(){return B1.totalAPIDuration}function wO6(){return Date.now()-B1.startTime}function Ou1(){return B1.totalAPIDurationWithoutRetries}function Hu1(){return B1.totalToolDuration}function ye6(A){B1.totalToolDuration+=A,B1.turnToolDurationMs+=A,B1.turnToolCount++}function Soq(){return B1.turnHookDurationMs}function ju1(A){B1.turnHookDurationMs+=A,B1.turnHookCount++}function Ju1(){B1.turnHookDurationMs=0,B1.turnHookCount=0}function hoq(){return B1.turnHookCount}function Coq(){return B1.turnToolDurationMs}function Mu1(){B1.turnToolDurationMs=0,B1.turnToolCount=0}function Ioq(){return B1.turnToolCount}function xoq(){return B1.turnClassifierDurationMs}function boq(A){B1.turnClassifierDurationMs+=A,B1.turnClassifierCount++}function Du1(){B1.turnClassifierDurationMs=0,B1.turnClassifierCount=0}function uoq(){return B1.turnClassifierCount}function _O6(){return B1.statsStore}function Xu1(A){B1.statsStore=A}function y76(A){if(A)G8A();else Pu1=!0}function Wu1(){if(Pu1)G8A()}function G8A(){B1.lastInteractionTime=Date.now(),Pu1=!1}function Re6(A,q){B1.totalLinesAdded+=A,B1.totalLinesRemoved+=q}function R76(){return B1.totalLinesAdded}function S76(){return B1.totalLinesRemoved}function ZL6(){return zO6(Object.values(B1.modelUsage),"inputTokens")}function fL6(){return zO6(Object.values(B1.modelUsage),"outputTokens")}function Gu1(){return zO6(Object.values(B1.modelUsage),"cacheReadInputTokens")}function Zu1(){return zO6(Object.values(B1.modelUsage),"cacheCreationInputTokens")}function fu1(){return zO6(Object.values(B1.modelUsage),"webSearchRequests")}function Se6(){B1.hasUnknownModelCost=!0}function Tu1(){return B1.hasUnknownModelCost}function Qu(){return B1.lastInteractionTime}function qC(){return B1.modelUsage}function vu1(A){return B1.modelUsage[A]}function KC(){return B1.mainLoopModelOverride}function $O6(){return B1.initialMainLoopModel}function KG(A){B1.mainLoopModelOverride=A}function Vu1(A){B1.initialMainLoopModel=A}function zj(){return B1.sdkBetas}function Nu1(A){B1.sdkBetas=A}function OO6(){B1.totalCostUSD=0,B1.totalAPIDuration=0,B1.totalAPIDurationWithoutRetries=0,B1.totalToolDuration=0,B1.startTime=Date.now(),B1.totalLinesAdded=0,B1.totalLinesRemoved=0,B1.hasUnknownModelCost=!1,B1.modelUsage={},B1.promptId=null}function TL6({totalCostUSD:A,totalAPIDuration:q,totalAPIDurationWithoutRetries:K,totalToolDuration:Y,totalLinesAdded:z,totalLinesRemoved:w,lastDuration:_,modelUsage:$}){if(B1.totalCostUSD=A,B1.totalAPIDuration=q,B1.totalAPIDurationWithoutRetries=K,B1.totalToolDuration=Y,B1.totalLinesAdded=z,B1.totalLinesRemoved=w,$)B1.modelUsage=$;if(_)B1.startTime=Date.now()-_}function Z8A(){throw Error("resetStateForTests can only be called in tests")}function HO6(){return B1.modelStrings}function vL6(A){B1.modelStrings=A}function moq(){B1.modelStrings=null}function ku1(A,q){B1.meter=A,B1.sessionCounter=q("claude_code.session.count",{description:"Count of CLI sessions started"}),B1.locCounter=q("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),B1.prCounter=q("claude_code.pull_request.count",{description:"Number of pull requests created"}),B1.commitCounter=q("claude_code.commit.count",{description:"Number of git commits created"}),B1.costCounter=q("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),B1.tokenCounter=q("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),B1.codeEditToolDecisionCounter=q("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),B1.activeTimeCounter=q("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function Boq(){return B1.meter}function Eu1(){return B1.sessionCounter}function he6(){return B1.locCounter}function VL6(){return B1.prCounter}function Lu1(){return B1.commitCounter}function yu1(){return B1.costCounter}function jO6(){return B1.tokenCounter}function NL6(){return B1.codeEditToolDecisionCounter}function Ru1(){return B1.activeTimeCounter}function kL6(){return B1.loggerProvider}function Ce6(A){B1.loggerProvider=A}function Su1(){return B1.eventLogger}function Ie6(A){B1.eventLogger=A}function hu1(){return B1.meterProvider}function xe6(A){B1.meterProvider=A}function h76(){return B1.tracerProvider}function be6(A){B1.tracerProvider=A}function B7(){return!B1.isInteractive}function FN(){return B1.isInteractive}function Cu1(A){B1.isInteractive=A}function JO6(){return B1.clientType}function Iu1(A){B1.clientType=A}function goq(){return B1.sessionSource}function xu1(A){B1.sessionSource=A}function ue6(){return B1.questionPreviewFormat}function me6(A){B1.questionPreviewFormat=A}function Be6(){return B1.agentColorMap}function _o(){return B1.flagSettingsPath}function bu1(A){B1.flagSettingsPath=A}function MO6(){return B1.flagSettingsInline}function uu1(A){B1.flagSettingsInline=A}function mu1(){return B1.sessionIngressToken}function C76(A){B1.sessionIngressToken=A}function Bu1(){return B1.oauthTokenFromFd}function I76(A){B1.oauthTokenFromFd=A}function gu1(){return B1.apiKeyFromFd}function x76(A){B1.apiKeyFromFd=A}function pu1(A){B1.lastAPIRequest=A}function Fu1(){return B1.lastAPIRequest}function poq(A){if(B1.inMemoryErrorLog.length>=100)B1.inMemoryErrorLog.shift();B1.inMemoryErrorLog.push(A)}function Qu1(){return B1.allowedSettingSources}function Uu1(A){B1.allowedSettingSources=A}function EL6(){return B7()&&B1.clientType!=="claude-vscode"}function du1(A){B1.inlinePlugins=A}function b76(){return B1.inlinePlugins}function cu1(A){B1.chromeFlagOverride=A}function LL6(){return B1.chromeFlagOverride}function QN(A){B1.useCoworkPlugins=A,tJ()}function yL6(){return B1.useCoworkPlugins}function lu1(A){B1.sessionBypassPermissionsMode=A}function u76(){return B1.sessionBypassPermissionsMode}function Foq(A){B1.scheduledTasksEnabled=A}function Qoq(){return B1.scheduledTasksEnabled}function Uoq(){return B1.sessionCronTasks}function doq(A){B1.sessionCronTasks.push(A)}function coq(A){if(A.length===0)return 0;let q=new Set(A),K=B1.sessionCronTasks.filter((z)=>!q.has(z.id)),Y=B1.sessionCronTasks.length-K.length;if(Y===0)return 0;return B1.sessionCronTasks=K,Y}function RL6(A){B1.sessionTrustAccepted=A}function DO6(){return B1.sessionTrustAccepted}function iu1(A){B1.sessionPersistenceDisabled=A}function pL(){return B1.sessionPersistenceDisabled}function nu1(){return B1.hasExitedPlanMode}function FL(A){B1.hasExitedPlanMode=A}function ru1(){return B1.needsPlanModeExitAttachment}function Uu(A){B1.needsPlanModeExitAttachment=A}function pQ(A,q){if(q==="plan"&&A!=="plan")B1.needsPlanModeExitAttachment=!1;if(A==="plan"&&q!=="plan")B1.needsPlanModeExitAttachment=!0}function ou1(){return B1.lspRecommendationShownThisSession}function au1(A){B1.lspRecommendationShownThisSession=A}function su1(A){B1.initJsonSchema=A}function ge6(){return B1.initJsonSchema}function m76(A){if(!B1.registeredHooks)B1.registeredHooks={};for(let[q,K]of Object.entries(A)){let Y=q;if(!B1.registeredHooks[Y])B1.registeredHooks[Y]=[];B1.registeredHooks[Y].push(...K)}}function $o(){return B1.registeredHooks}function loq(){B1.registeredHooks=null}function tu1(){if(!B1.registeredHooks)return;let A={};for(let[q,K]of Object.entries(B1.registeredHooks)){let Y=K.filter((z)=>!("pluginRoot"in z));if(Y.length>0)A[q]=Y}B1.registeredHooks=Object.keys(A).length>0?A:null}function f8A(){B1.initJsonSchema=null,B1.registeredHooks=null}function B76(){return B1.planSlugCache}function SL6(A){B1.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:A.sessionId}}function pe6(){return B1.teleportedSessionInfo}function Fe6(){if(B1.teleportedSessionInfo)B1.teleportedSessionInfo.hasLoggedFirstMessage=!0}function g76(A,q,K,Y=null){let z=`${Y??""}:${A}`;B1.invokedSkills.set(z,{skillName:A,skillPath:q,content:K,invokedAt:Date.now(),agentId:Y})}function ioq(){return B1.invokedSkills}function Qe6(A){let q=A??null,K=new Map;for(let[Y,z]of B1.invokedSkills)if(z.agentId===q)K.set(Y,z);return K}function eu1(){B1.invokedSkills.clear()}function p76(A){for(let[q,K]of B1.invokedSkills)if(K.agentId===A)B1.invokedSkills.delete(q)}function v8A(A,q){return}function V8A(){let A=Date.now();return B1.slowOperations=B1.slowOperations.filter((q)=>A-q.timestamp<T8A),[...B1.slowOperations]}function FQ(){return B1.mainThreadAgentType}function QQ(A){B1.mainThreadAgentType=A}function Xq(){return B1.isRemoteMode}function Am1(A){B1.isRemoteMode=A}function qm1(){return B1.isInWorktree}function hL6(A){B1.isInWorktree=A}function Km1(){return B1.systemPromptSectionCache}function Ym1(A,q){B1.systemPromptSectionCache.set(A,q)}function zm1(){B1.systemPromptSectionCache.clear()}function wm1(){return B1.lastEmittedDate}function XO6(A){B1.lastEmittedDate=A}function qv(){return B1.additionalDirectoriesForClaudeMd}function CL6(A){B1.additionalDirectoriesForClaudeMd=A}function _m1(){return B1.promptCache1hAllowlist}function $m1(A){B1.promptCache1hAllowlist=A}function Om1(){return B1.promptId}function IL6(A){B1.promptId=A}var B1,Pu1=!1,X8A=10,T8A=1e4;var U1=E(()=>{O8A();B1=W8A()});function noq(A,q){var K=-1,Y=A==null?0:A.length;while(++K<Y)if(q(A[K],K,A)===!1)break;return A}var N8A;var k8A=E(()=>{N8A=noq});var roq,PO6;var jm1=E(()=>{sr();roq=function(){try{var A=Av(Object,"defineProperty");return A({},"",{}),A}catch(q){}}(),PO6=roq});function ooq(A,q,K){if(q=="__proto__"&&PO6)PO6(A,q,{configurable:!0,enumerable:!0,value:K,writable:!0});else A[q]=K}var Oo;var xL6=E(()=>{jm1();Oo=ooq});function toq(A,q,K){var Y=A[q];if(!(soq.call(A,q)&&xu(Y,K))||K===void 0&&!(q in A))Oo(A,q,K)}var aoq,soq,Ho;var bL6=E(()=>{xL6();B$6();aoq=Object.prototype,soq=aoq.hasOwnProperty;Ho=toq});function eoq(A,q,K,Y){var z=!K;K||(K={});var w=-1,_=q.length;while(++w<_){var $=q[w],O=Y?Y(K[$],A[$],$,K,A):void 0;if(O===void 0)O=A[$];if(z)Oo(K,$,O);else Ho(K,$,O)}return K}var QL;var F76=E(()=>{bL6();xL6();QL=eoq});function Aaq(A,q){return A&&QL(q,BL(q),A)}var E8A;var L8A=E(()=>{F76();N76();E8A=Aaq});function qaq(A){var q=[];if(A!=null)for(var K in Object(A))q.push(K);return q}var y8A;var R8A=E(()=>{y8A=qaq});function zaq(A){if(!Zw(A))return y8A(A);var q=r$6(A),K=[];for(var Y in A)if(!(Y=="constructor"&&(q||!Yaq.call(A,Y))))K.push(Y);return K}var Kaq,Yaq,S8A;var h8A=E(()=>{UZ();Je6();R8A();Kaq=Object.prototype,Yaq=Kaq.hasOwnProperty;S8A=zaq});function waq(A){return gu(A)?je6(A,!0):S8A(A)}var du;var WO6=E(()=>{rb1();h8A();o$6();du=waq});function _aq(A,q){return A&&QL(q,du(q),A)}var C8A;var I8A=E(()=>{F76();WO6();C8A=_aq});var de6={};d1(de6,{default:()=>uL6});function Oaq(A,q){if(q)return A.slice();var K=A.length,Y=u8A?u8A(K):new A.constructor(K);return A.copy(Y),Y}var m8A,x8A,$aq,b8A,u8A,uL6;var Jm1=E(()=>{mL();m8A=typeof de6=="object"&&de6&&!de6.nodeType&&de6,x8A=m8A&&typeof Ue6=="object"&&Ue6&&!Ue6.nodeType&&Ue6,$aq=x8A&&x8A.exports===m8A,b8A=$aq?Yj.Buffer:void 0,u8A=b8A?b8A.allocUnsafe:void 0;uL6=Oaq});function Haq(A,q){var K=-1,Y=A.length;q||(q=Array(Y));while(++K<Y)q[K]=A[K];return q}var ce6;var Mm1=E(()=>{ce6=Haq});function jaq(A,q){return QL(A,c$6(A),q)}var B8A;var g8A=E(()=>{F76();qe6();B8A=jaq});var Jaq,GO6;var le6=E(()=>{ob1();Jaq=Me6(Object.getPrototypeOf,Object),GO6=Jaq});var Maq,Daq,ie6;var Dm1=E(()=>{st6();le6();qe6();lb1();Maq=Object.getOwnPropertySymbols,Daq=!Maq?Ae6:function(A){var q=[];while(A)d$6(q,c$6(A)),A=GO6(A);return q},ie6=Daq});function Xaq(A,q){return QL(A,ie6(A),q)}var p8A;var F8A=E(()=>{F76();Dm1();p8A=Xaq});function Paq(A){return tt6(A,du,ie6)}var ne6;var Xm1=E(()=>{db1();Dm1();WO6();ne6=Paq});function Zaq(A){var q=A.length,K=new A.constructor(q);if(q&&typeof A[0]=="string"&&Gaq.call(A,"index"))K.index=A.index,K.input=A.input;return K}var Waq,Gaq,Q8A;var U8A=E(()=>{Waq=Object.prototype,Gaq=Waq.hasOwnProperty;Q8A=Zaq});function faq(A){var q=new A.constructor(A.byteLength);return new Q$6(q).set(new Q$6(A)),q}var ZO6;var re6=E(()=>{Qb1();ZO6=faq});function Taq(A,q){var K=q?ZO6(A.buffer):A.buffer;return new A.constructor(K,A.byteOffset,A.byteLength)}var d8A;var c8A=E(()=>{re6();d8A=Taq});function Vaq(A){var q=new A.constructor(A.source,vaq.exec(A));return q.lastIndex=A.lastIndex,q}var vaq,l8A;var i8A=E(()=>{vaq=/\w*$/;l8A=Vaq});function Naq(A){return r8A?Object(r8A.call(A)):{}}var n8A,r8A,o8A;var a8A=E(()=>{T76();n8A=DX?DX.prototype:void 0,r8A=n8A?n8A.valueOf:void 0;o8A=Naq});function kaq(A,q){var K=q?ZO6(A.buffer):A.buffer;return new A.constructor(K,A.byteOffset,A.length)}var oe6;var Pm1=E(()=>{re6();oe6=kaq});function caq(A,q,K){var Y=A.constructor;switch(q){case xaq:return ZO6(A);case Eaq:case Laq:return new Y(+A);case baq:return d8A(A,K);case uaq:case maq:case Baq:case gaq:case paq:case Faq:case Qaq:case Uaq:case daq:return oe6(A,K);case yaq:return new Y;case Raq:case Caq:return new Y(A);case Saq:return l8A(A);case haq:return new Y;case Iaq:return o8A(A)}}var Eaq="[object Boolean]",Laq="[object Date]",yaq="[object Map]",Raq="[object Number]",Saq="[object RegExp]",haq="[object Set]",Caq="[object String]",Iaq="[object Symbol]",xaq="[object ArrayBuffer]",baq="[object DataView]",uaq="[object Float32Array]",maq="[object Float64Array]",Baq="[object Int8Array]",gaq="[object Int16Array]",paq="[object Int32Array]",Faq="[object Uint8Array]",Qaq="[object Uint8ClampedArray]",Uaq="[object Uint16Array]",daq="[object Uint32Array]",s8A;var t8A=E(()=>{re6();c8A();i8A();a8A();Pm1();s8A=caq});var e8A,laq,AAA;var qAA=E(()=>{UZ();e8A=Object.create,laq=function(){function A(){}return function(q){if(!Zw(q))return{};if(e8A)return e8A(q);A.prototype=q;var K=new A;return A.prototype=void 0,K}}(),AAA=laq});function iaq(A){return typeof A.constructor=="function"&&!r$6(A)?AAA(GO6(A)):{}}var ae6;var Wm1=E(()=>{qAA();le6();Je6();ae6=iaq});function raq(A){return XD(A)&&BQ(A)==naq}var naq="[object Map]",KAA;var YAA=E(()=>{WL6();uu();KAA=raq});var zAA,oaq,wAA;var _AA=E(()=>{YAA();we6();Oe6();zAA=Bu&&Bu.isMap,oaq=zAA?i$6(zAA):KAA,wAA=oaq});function saq(A){return XD(A)&&BQ(A)==aaq}var aaq="[object Set]",$AA;var OAA=E(()=>{WL6();uu();$AA=saq});var HAA,taq,jAA;var JAA=E(()=>{OAA();we6();Oe6();HAA=Bu&&Bu.isSet,taq=HAA?i$6(HAA):$AA,jAA=taq});function se6(A,q,K,Y,z,w){var _,$=q&eaq,O=q&Asq,H=q&qsq;if(K)_=z?K(A,Y,z,w):K(A);if(_!==void 0)return _;if(!Zw(A))return A;var j=fw(A);if(j){if(_=Q8A(A),!$)return ce6(A,_)}else{var J=BQ(A),M=J==DAA||J==_sq;if(mu(A))return uL6(A,$);if(J==XAA||J==MAA||M&&!z){if(_=O||M?{}:ae6(A),!$)return O?p8A(A,C8A(_,A)):B8A(A,E8A(_,A))}else{if(!d_[J])return z?A:{};_=s8A(A,J,$)}}w||(w=new bu);var D=w.get(A);if(D)return D;if(w.set(A,_),jAA(A))A.forEach(function(W){_.add(se6(W,q,K,W,A,w))});else if(wAA(A))A.forEach(function(W,G){_.set(G,se6(W,q,K,G,A,w))});var X=H?O?ne6:PL6:O?du:BL,P=j?void 0:X(A);return N8A(P||A,function(W,G){if(P)G=W,W=A[G];Ho(_,G,se6(W,q,K,G,A,w))}),_}var eaq=1,Asq=2,qsq=4,MAA="[object Arguments]",Ksq="[object Array]",Ysq="[object Boolean]",zsq="[object Date]",wsq="[object Error]",DAA="[object Function]",_sq="[object GeneratorFunction]",$sq="[object Map]",Osq="[object Number]",XAA="[object Object]",Hsq="[object RegExp]",jsq="[object Set]",Jsq="[object String]",Msq="[object Symbol]",Dsq="[object WeakMap]",Xsq="[object ArrayBuffer]",Psq="[object DataView]",Wsq="[object Float32Array]",Gsq="[object Float64Array]",Zsq="[object Int8Array]",fsq="[object Int16Array]",Tsq="[object Int32Array]",vsq="[object Uint8Array]",Vsq="[object Uint8ClampedArray]",Nsq="[object Uint16Array]",ksq="[object Uint32Array]",d_,te6;var Gm1=E(()=>{jL6();k8A();bL6();L8A();I8A();Jm1();Mm1();g8A();F8A();ab1();Xm1();WL6();U8A();t8A();Wm1();dZ();ML6();_AA();UZ();JAA();N76();WO6();d_={};d_[MAA]=d_[Ksq]=d_[Xsq]=d_[Psq]=d_[Ysq]=d_[zsq]=d_[Wsq]=d_[Gsq]=d_[Zsq]=d_[fsq]=d_[Tsq]=d_[$sq]=d_[Osq]=d_[XAA]=d_[Hsq]=d_[jsq]=d_[Jsq]=d_[Msq]=d_[vsq]=d_[Vsq]=d_[Nsq]=d_[ksq]=!0;d_[wsq]=d_[DAA]=d_[Dsq]=!1;te6=se6});function ysq(A){return te6(A,Esq|Lsq)}var Esq=1,Lsq=4,PAA;var WAA=E(()=>{Gm1();PAA=ysq});import{writeFileSync as GAA,openSync as Rsq,fsyncSync as Ssq,closeSync as hsq}from"fs";function Isq(){return Csq}function p6(A,q,K){let z=[];try{const Y=FY(z,iw`JSON.stringify(${A})`,0);return JSON.stringify(A,q,K)}catch(w){var _=w,$=1}finally{QY(z,_,$)}}function fO6(A){let K=[];try{const q=FY(K,iw`cloneDeep(${A})`,0);return PAA(A)}catch(Y){var z=Y,w=1}finally{QY(K,z,w)}}function Iz(A,q,K){let w=[];try{const Y=FY(w,iw`fs.writeFileSync(${A}, ${q})`,0);let z=K!==null&&typeof K==="object"&&"flush"in K&&K.flush===!0;if(z){let H=typeof K==="object"&&"encoding"in K?K.encoding:void 0,j=typeof K==="object"&&"mode"in K?K.mode:void 0,J;try{J=Rsq(A,"w",j),GAA(J,q,{encoding:H??void 0}),Ssq(J)}finally{if(J!==void 0)hsq(J)}}else GAA(A,q,K)}catch(_){var $=_,O=1}finally{QY(w,$,O)}}var Qrz,Csq,iw,q8=(A,q)=>{let Y=[];try{const K=FY(Y,iw`JSON.parse(${A})`,0);return typeof q>"u"?JSON.parse(A):JSON.parse(A,q)}catch(z){var w=z,_=1}finally{QY(Y,w,_)}};var a1=E(()=>{Z1();U1();WAA();Qrz=(()=>{let A=process.env.CLAUDE_CODE_SLOW_OPERATION_THRESHOLD_MS;if(A!==void 0){let q=Number(A);if(!Number.isNaN(q)&&q>=0)return q}return 1/0})(),Csq={[Symbol.dispose](){}};iw=Isq});import*as y3 from"fs";import{homedir as ZAA}from"os";import*as PX from"path";import{stat as xsq,readdir as bsq,readFile as fAA,unlink as usq,rmdir as msq,rm as Bsq,mkdir as gsq,rename as psq,open as ee6}from"fs/promises";function b$(A,q){if(q.startsWith("//")||q.startsWith("\\\\"))return{resolvedPath:q,isSymlink:!1};if(!A.existsSync(q))return{resolvedPath:q,isSymlink:!1};try{let K=A.lstatSync(q);if(K.isFIFO()||K.isSocket()||K.isCharacterDevice()||K.isBlockDevice())return{resolvedPath:q,isSymlink:!1};let Y=A.realpathSync(q);return{resolvedPath:Y,isSymlink:Y!==q}}catch(K){return{resolvedPath:q,isSymlink:!1}}}function cu(A,q,K){let{resolvedPath:Y}=b$(A,q);if(K.has(Y))return!0;return K.add(Y),!1}function Fsq(A,q){let K=q,Y=[];while(K!==PX.dirname(K)){let z;try{z=A.lstatSync(K)}catch{Y.unshift(PX.basename(K)),K=PX.dirname(K);continue}if(z.isSymbolicLink())try{let w=A.realpathSync(K);return Y.length===0?w:PX.join(w,...Y)}catch{let w=A.readlinkSync(K),_=PX.isAbsolute(w)?w:PX.resolve(PX.dirname(K),w);return Y.length===0?_:PX.join(_,...Y)}try{let w=A.realpathSync(K);if(w!==K)return Y.length===0?w:PX.join(w,...Y)}catch{}return}return}function jo(A){let q=A;if(q==="~")q=ZAA().normalize("NFC");else if(q.startsWith("~/"))q=PX.join(ZAA().normalize("NFC"),q.slice(2));let K=new Set,Y=P1();if(K.add(q),q.startsWith("//")||q.startsWith("\\\\"))return Array.from(K);try{let _=q,$=new Set,O=40;for(let H=0;H<O;H++){if($.has(_))break;if($.add(_),!Y.existsSync(_)){if(_===q){let D=Fsq(Y,q);if(D!==void 0)K.add(D)}break}let j=Y.lstatSync(_);if(j.isFIFO()||j.isSocket()||j.isCharacterDevice()||j.isBlockDevice())break;if(!j.isSymbolicLink())break;let J=Y.readlinkSync(_),M=PX.isAbsolute(J)?J:PX.resolve(PX.dirname(_),J);K.add(M),_=M}}catch{}let{resolvedPath:z,isSymlink:w}=b$(Y,q);if(w&&z!==q)K.add(z);return Array.from(K)}function P1(){return Usq}async function A61(A,q,K){let O=[];try{const Y=FY(O,await ee6(A,"r"),1);let z=(await Y.stat()).size;if(z<=q)return null;let w=Math.min(z-q,K);let _=Buffer.allocUnsafe(w);let $=0;while($<w){let{bytesRead:D}=await Y.read(_,$,w-$,q+$);if(D===0)break;$+=D}return{content:_.toString("utf8",0,$),bytesRead:$,bytesTotal:z}}catch(H){var j=H,J=1}finally{var M=QY(O,j,J);M&&await M}}async function TO6(A,q){let O=[];try{const K=FY(O,await ee6(A,"r"),1);let Y=(await K.stat()).size;if(Y===0)return{content:"",bytesRead:0,bytesTotal:0};let z=Math.max(0,Y-q);let w=Y-z;let _=Buffer.allocUnsafe(w);let $=0;while($<w){let{bytesRead:D}=await K.read(_,$,w-$,z+$);if(D===0)break;$+=D}return{content:_.toString("utf8",0,$),bytesRead:$,bytesTotal:Y}}catch(H){var j=H,J=1}finally{var M=QY(O,j,J);M&&await M}}async function*TAA(A){let K=await ee6(A,"r");try{let z=(await K.stat()).size,w="",_=Buffer.alloc(4096);while(z>0){let $=Math.min(4096,z);z-=$,await K.read(_,0,$,z);let H=(_.toString("utf8",0,$)+w).split(`
`);w=H[0]||"";for(let j=H.length-1;j>=1;j--){let J=H[j];if(J)yield J}}if(w)yield w}finally{await K.close()}}var Qsq,Usq;var D7=E(()=>{a1();Qsq={cwd(){return process.cwd()},existsSync(A){let K=[];try{const q=FY(K,iw`fs.existsSync(${A})`,0);return y3.existsSync(A)}catch(Y){var z=Y,w=1}finally{QY(K,z,w)}},async stat(A){return xsq(A)},async readdir(A){return bsq(A,{withFileTypes:!0})},async unlink(A){return usq(A)},async rmdir(A){return msq(A)},async rm(A,q){return Bsq(A,q)},async mkdir(A,q){await gsq(A,{recursive:!0,...q})},async readFile(A,q){return fAA(A,{encoding:q.encoding})},async rename(A,q){return psq(A,q)},statSync(A){let K=[];try{const q=FY(K,iw`fs.statSync(${A})`,0);return y3.statSync(A)}catch(Y){var z=Y,w=1}finally{QY(K,z,w)}},lstatSync(A){let K=[];try{const q=FY(K,iw`fs.lstatSync(${A})`,0);return y3.lstatSync(A)}catch(Y){var z=Y,w=1}finally{QY(K,z,w)}},readFileSync(A,q){let Y=[];try{const K=FY(Y,iw`fs.readFileSync(${A})`,0);return y3.readFileSync(A,{encoding:q.encoding})}catch(z){var w=z,_=1}finally{QY(Y,w,_)}},readFileBytesSync(A){let K=[];try{const q=FY(K,iw`fs.readFileBytesSync(${A})`,0);return y3.readFileSync(A)}catch(Y){var z=Y,w=1}finally{QY(K,z,w)}},readSync(A,q){let z=[];try{const K=FY(z,iw`fs.readSync(${A}, ${q.length} bytes)`,0);let Y=void 0;try{Y=y3.openSync(A,"r");let O=Buffer.alloc(q.length),H=y3.readSync(Y,O,0,q.length,0);return{buffer:O,bytesRead:H}}finally{if(Y)y3.closeSync(Y)}}catch(w){var _=w,$=1}finally{QY(z,_,$)}},appendFileSync(A,q,K){let z=[];try{const Y=FY(z,iw`fs.appendFileSync(${A}, ${q.length} chars)`,0);if(K?.mode!==void 0)try{let O=y3.openSync(A,"ax",K.mode);try{y3.appendFileSync(O,q)}finally{y3.closeSync(O)}return}catch(O){if(O.code!=="EEXIST")throw O}y3.appendFileSync(A,q)}catch(w){var _=w,$=1}finally{QY(z,_,$)}},copyFileSync(A,q){let Y=[];try{const K=FY(Y,iw`fs.copyFileSync(${A} → ${q})`,0);y3.copyFileSync(A,q)}catch(z){var w=z,_=1}finally{QY(Y,w,_)}},unlinkSync(A){let K=[];try{const q=FY(K,iw`fs.unlinkSync(${A})`,0);y3.unlinkSync(A)}catch(Y){var z=Y,w=1}finally{QY(K,z,w)}},renameSync(A,q){let Y=[];try{const K=FY(Y,iw`fs.renameSync(${A} → ${q})`,0);y3.renameSync(A,q)}catch(z){var w=z,_=1}finally{QY(Y,w,_)}},linkSync(A,q){let Y=[];try{const K=FY(Y,iw`fs.linkSync(${A} → ${q})`,0);y3.linkSync(A,q)}catch(z){var w=z,_=1}finally{QY(Y,w,_)}},symlinkSync(A,q,K){let z=[];try{const Y=FY(z,iw`fs.symlinkSync(${A} → ${q})`,0);y3.symlinkSync(A,q,K)}catch(w){var _=w,$=1}finally{QY(z,_,$)}},readlinkSync(A){let K=[];try{const q=FY(K,iw`fs.readlinkSync(${A})`,0);return y3.readlinkSync(A)}catch(Y){var z=Y,w=1}finally{QY(K,z,w)}},realpathSync(A){let K=[];try{const q=FY(K,iw`fs.realpathSync(${A})`,0);return y3.realpathSync(A).normalize("NFC")}catch(Y){var z=Y,w=1}finally{QY(K,z,w)}},mkdirSync(A,q){let z=[];try{const K=FY(z,iw`fs.mkdirSync(${A})`,0);let Y={recursive:!0};if(q?.mode!==void 0)Y.mode=q.mode;y3.mkdirSync(A,Y)}catch(w){var _=w,$=1}finally{QY(z,_,$)}},readdirSync(A){let K=[];try{const q=FY(K,iw`fs.readdirSync(${A})`,0);return y3.readdirSync(A,{withFileTypes:!0})}catch(Y){var z=Y,w=1}finally{QY(K,z,w)}},readdirStringSync(A){let K=[];try{const q=FY(K,iw`fs.readdirStringSync(${A})`,0);return y3.readdirSync(A)}catch(Y){var z=Y,w=1}finally{QY(K,z,w)}},isDirEmptySync(A){let Y=[];try{const q=FY(Y,iw`fs.isDirEmptySync(${A})`,0);let K=this.readdirSync(A);return K.length===0}catch(z){var w=z,_=1}finally{QY(Y,w,_)}},rmdirSync(A){let K=[];try{const q=FY(K,iw`fs.rmdirSync(${A})`,0);y3.rmdirSync(A)}catch(Y){var z=Y,w=1}finally{QY(K,z,w)}},rmSync(A,q){let Y=[];try{const K=FY(Y,iw`fs.rmSync(${A})`,0);y3.rmSync(A,q)}catch(z){var w=z,_=1}finally{QY(Y,w,_)}},createWriteStream(A){return y3.createWriteStream(A)},async readFileBytes(A,q){if(q===void 0)return fAA(A);let K=await ee6(A,"r");try{let{size:Y}=await K.stat(),z=Math.min(Y,q),w=Buffer.allocUnsafe(z),_=0;while(_<z){let{bytesRead:$}=await K.read(w,_,z-_,_);if($===0)break;_+=$}return _<z?w.subarray(0,_):w}finally{await K.close()}}},Usq=Qsq});import{join as vAA}from"path";import{homedir as dsq}from"os";function zA(){return(process.env.CLAUDE_CONFIG_DIR??vAA(dsq(),".claude")).normalize("NFC")}function cZ(){return vAA(zA(),"teams")}function Zm1(A){let q=process.env.NODE_OPTIONS;if(!q)return!1;return q.split(/\s+/).includes(A)}function w1(A){if(!A)return!1;if(typeof A==="boolean")return A;let q=A.toLowerCase().trim();return["1","true","yes","on"].includes(q)}function nw(A){if(A===void 0)return!1;if(typeof A==="boolean")return!A;if(!A)return!1;let q=A.toLowerCase().trim();return["0","false","no","off"].includes(q)}function VAA(A){let q={};if(A)for(let K of A){let[Y,...z]=K.split("=");if(!Y||z.length===0)throw Error(`Invalid environment variable format: ${K}, environment variables should be added as: -e KEY1=value1 -e KEY2=value2`);q[Y]=z.join("=")}return q}function Q76(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}function q61(){return process.env.CLOUD_ML_REGION||"us-east5"}function fm1(){return w1(process.env.CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR)}function lZ(){return!1}function K61(A){if(A){let q=csq.find(([K])=>A.startsWith(K));if(q)return process.env[q[1]]||q61()}return q61()}var csq;var Z8=E(()=>{csq=[["claude-haiku-4-5","VERTEX_REGION_CLAUDE_HAIKU_4_5"],["claude-3-5-haiku","VERTEX_REGION_CLAUDE_3_5_HAIKU"],["claude-3-5-sonnet","VERTEX_REGION_CLAUDE_3_5_SONNET"],["claude-3-7-sonnet","VERTEX_REGION_CLAUDE_3_7_SONNET"],["claude-opus-4-1","VERTEX_REGION_CLAUDE_4_1_OPUS"],["claude-opus-4","VERTEX_REGION_CLAUDE_4_0_OPUS"],["claude-sonnet-4-6","VERTEX_REGION_CLAUDE_4_6_SONNET"],["claude-sonnet-4-5","VERTEX_REGION_CLAUDE_4_5_SONNET"],["claude-sonnet-4","VERTEX_REGION_CLAUDE_4_0_SONNET"]]});function vO6({writeFn:A,flushIntervalMs:q=1000,maxBufferSize:K=100,maxBufferBytes:Y=1/0,immediateMode:z=!1}){let w=[],_=0,$=null,O=null;function H(){if($)clearTimeout($),$=null}function j(){if(O)A(O.join("")),O=null;if(w.length===0)return;A(w.join("")),w=[],_=0,H()}function J(){if(!$)$=setTimeout(j,q)}function M(){if(O){O.push(...w),w=[],_=0,H();return}let D=w;w=[],_=0,H(),O=D,setImmediate(()=>{let X=O;if(O=null,X)A(X.join(""))})}return{write(D){if(z){A(D);return}if(w.push(D),_+=D.length,J(),w.length>=K||_>=Y)M()},flush:j,dispose(){j()}}}function Pq(A){return Tm1.add(A),()=>Tm1.delete(A)}async function NAA(){await Promise.all(Array.from(Tm1).map((A)=>A()))}var Tm1;var xz=E(()=>{Tm1=new Set});import{dirname as kAA,join as EAA}from"path";function isq(A){if(typeof process>"u"||typeof process.versions>"u"||typeof process.versions.node>"u")return!1;let q=lsq();return L6A(A,q)}function RAA(A){yAA=A}function nsq(){if(!Y61){let A=null;Y61=vO6({writeFn:(q)=>{let K=U76(),Y=kAA(K);if(A!==Y){try{P1().mkdirSync(Y)}catch{}A=Y}P1().appendFileSync(K,q),rsq()},flushIntervalMs:1000,maxBufferSize:100,immediateMode:UQ()}),Pq(async()=>Y61?.dispose())}return Y61}function y(A,{level:q}={level:"debug"}){if(!isq(A))return;if(yAA&&A.includes(`
`))A=p6(A);let Y=`${new Date().toISOString()} [${q.toUpperCase()}] ${A.trim()}
`;if(lu()){Ko(Y);return}nsq().write(Y)}function U76(){return LAA()??process.env.CLAUDE_CODE_DEBUG_LOGS_DIR??EAA(zA(),"debug",`${i1()}.txt`)}function UL(A,q){return}var UQ,lsq,lu,LAA,yAA=!1,Y61=null,rsq;var Z1=E(()=>{Rq();y6A();D7();Z8();U1();xz();a1();UQ=k8(()=>{return w1(process.env.DEBUG)||w1(process.env.DEBUG_SDK)||process.argv.includes("--debug")||process.argv.includes("-d")||lu()||process.argv.some((A)=>A.startsWith("--debug="))||LAA()!==null}),lsq=k8(()=>{let A=process.argv.find((K)=>K.startsWith("--debug="));if(!A)return null;let q=A.substring(8);return E6A(q)}),lu=k8(()=>{return process.argv.includes("--debug-to-stderr")||process.argv.includes("-d2e")}),LAA=k8(()=>{for(let A=0;A<process.argv.length;A++){let q=process.argv[A];if(q.startsWith("--debug-file="))return q.substring(13);if(q==="--debug-file"&&A+1<process.argv.length)return process.argv[A+1]}return null});rsq=k8(()=>{if(process.argv[2]==="--ripgrep")return;try{let A=U76(),q=kAA(A),K=EAA(q,"latest");try{P1().mkdirSync(q)}catch{}try{P1().unlinkSync(K)}catch{}P1().symlinkSync(A,K)}catch{}})});function SAA(A){if(VO6!==null)return;if(VO6=A,z61.length>0){let q=[...z61];z61.length=0,queueMicrotask(()=>{for(let K of q)if(K.async)VO6.logEventAsync(K.eventName,K.metadata);else VO6.logEvent(K.eventName,K.metadata)})}}function l(A,q){if(VO6===null){z61.push({eventName:A,metadata:q,async:!1});return}VO6.logEvent(A,q)}var z61,VO6=null;var m1=E(()=>{z61=[]});var gAA={};d1(gAA,{profileReport:()=>BL6,profileCheckpoint:()=>Cq,logStartupPerf:()=>BAA,isDetailedProfilingEnabled:()=>esq,getStartupPerfLogPath:()=>mAA});import{join as osq,dirname as asq}from"path";function Nm1(){if(!vm1)vm1=u6("perf_hooks").performance;return vm1}function Cq(A){if(!bAA)return;if(Nm1().mark(A),mL6)uAA.push(process.memoryUsage())}function Vm1(A){return A.toFixed(3)}function hAA(A){return(A/1024/1024).toFixed(2)}function CAA(){if(!mL6)return"Startup profiling not enabled";let q=Nm1().getEntriesByType("mark");if(q.length===0)return"No profiling checkpoints recorded";let K=[];K.push("=".repeat(80)),K.push("STARTUP PROFILING REPORT"),K.push("=".repeat(80)),K.push("");let Y=0;for(let[_,$]of q.entries()){let O=Vm1($.startTime),H=Vm1($.startTime-Y),j=uAA[_],J=j?` | RSS: ${hAA(j.rss)}MB, Heap: ${hAA(j.heapUsed)}MB`:"";K.push(`[+${O.padStart(8)}ms] (+${H.padStart(7)}ms) ${$.name}${J}`),Y=$.startTime}let z=q[q.length-1],w=Vm1(z?.startTime??0);return K.push(""),K.push(`Total startup time: ${w}ms`),K.push("=".repeat(80)),K.join(`
`)}function BL6(){if(IAA)return;if(IAA=!0,BAA(),mL6){let A=mAA(),q=asq(A);P1().mkdirSync(q),Iz(A,CAA(),{encoding:"utf8",flush:!0}),y("Startup profiling report:"),y(CAA())}}function esq(){return mL6}function mAA(){return osq(zA(),"startup-perf",`${i1()}.txt`)}function BAA(){if(!xAA)return;let q=Nm1().getEntriesByType("mark");if(q.length===0)return;let K=new Map;for(let z of q)K.set(z.name,z.startTime);let Y={};for(let[z,[w,_]]of Object.entries(tsq)){let $=K.get(w),O=K.get(_);if($!==void 0&&O!==void 0)Y[`${z}_ms`]=Math.round(O-$)}Y.checkpoint_count=q.length,l("tengu_startup_perf",Y)}var mL6,ssq=0.005,xAA,bAA,uAA,vm1=null,tsq,IAA=!1;var YC=E(()=>{Z1();m1();Z8();U1();D7();a1();mL6=process.env.CLAUDE_CODE_PROFILE_STARTUP==="1",xAA=Math.random()<ssq,bAA=mL6||xAA,uAA=[];tsq={import_time:["cli_entry","main_tsx_imports_loaded"],init_time:["init_function_start","init_function_end"],settings_time:["eagerLoadSettings_start","eagerLoadSettings_end"],total_time:["cli_entry","main_after_run"]};if(bAA)Cq("profiler_initialized")});var pAA={};d1(pAA,{ripgrepMain:()=>wtq});import{createRequire as Atq}from"module";import{fileURLToPath as qtq}from"url";import{dirname as Ktq,join as Ytq}from"path";import{spawnSync as ztq}from"child_process";function wtq(A){if(process.env.RIPGREP_EMBEDDED==="true")return ztq(process.execPath,["--no-config",...A],{argv0:"rg",stdio:"inherit"}).status??1;let q;if(process.env.RIPGREP_NODE_PATH)q=u6(process.env.RIPGREP_NODE_PATH).ripgrepMain;else{let K=Ytq(Ktq(qtq(import.meta.url)),"ripgrep.node");q=Atq(import.meta.url)(K).ripgrepMain}return q(["--no-config",...A])}var FAA=()=>{};function N8(A,q,K){function Y($,O){var H;Object.defineProperty($,"_zod",{value:$._zod??{},enumerable:!1}),(H=$._zod).traits??(H.traits=new Set),$._zod.traits.add(A),q($,O);for(let j in _.prototype)if(!(j in $))Object.defineProperty($,j,{value:_.prototype[j].bind($)});$._zod.constr=_,$._zod.def=O}let z=K?.Parent??Object;class w extends z{}Object.defineProperty(w,"name",{value:A});function _($){var O;let H=K?.Parent?new w:this;Y(H,$),(O=H._zod).deferred??(O.deferred=[]);for(let j of H._zod.deferred)j();return H}return Object.defineProperty(_,"init",{value:Y}),Object.defineProperty(_,Symbol.hasInstance,{value:($)=>{if(K?.Parent&&$ instanceof K.Parent)return!0;return $?._zod?.traits?.has(A)}}),Object.defineProperty(_,"name",{value:A}),_}function eJ(A){if(A)Object.assign(gL6,A);return gL6}var pL6,km1,dQ,gL6;var NO6=E(()=>{pL6=Object.freeze({status:"aborted"});km1=Symbol("zod_brand");dQ=class dQ extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}};gL6={}});var U7={};d1(U7,{unwrapMessage:()=>FL6,stringifyPrimitive:()=>a7,required:()=>Vtq,randomString:()=>Dtq,propertyKeyTypes:()=>cL6,promiseAllObject:()=>Mtq,primitiveTypes:()=>hm1,prefixIssues:()=>Kv,pick:()=>Gtq,partial:()=>vtq,optionalKeys:()=>Cm1,omit:()=>Ztq,numKeys:()=>Xtq,nullish:()=>Jo,normalizeParams:()=>I7,merge:()=>Ttq,jsonStringifyReplacer:()=>Lm1,joinValues:()=>PA,issue:()=>bm1,isPlainObject:()=>EO6,isObject:()=>kO6,getSizableOrigin:()=>lL6,getParsedType:()=>Ptq,getLengthableOrigin:()=>iL6,getEnumValues:()=>QL6,getElementAtPath:()=>Jtq,floatSafeRemainder:()=>ym1,finalizeIssue:()=>dN,extend:()=>ftq,escapeRegex:()=>cQ,esc:()=>d76,defineLazy:()=>ez,createTransparentProxy:()=>Wtq,clone:()=>UN,cleanRegex:()=>dL6,cleanEnum:()=>Ntq,captureStackTrace:()=>w61,cached:()=>UL6,assignProp:()=>Rm1,assertNotEqual:()=>$tq,assertNever:()=>Htq,assertIs:()=>Otq,assertEqual:()=>_tq,assert:()=>jtq,allowsEval:()=>Sm1,aborted:()=>c76,NUMBER_FORMAT_RANGES:()=>Im1,Class:()=>QAA,BIGINT_FORMAT_RANGES:()=>xm1});function _tq(A){return A}function $tq(A){return A}function Otq(A){}function Htq(A){throw Error()}function jtq(A){}function QL6(A){let q=Object.values(A).filter((Y)=>typeof Y==="number");return Object.entries(A).filter(([Y,z])=>q.indexOf(+Y)===-1).map(([Y,z])=>z)}function PA(A,q="|"){return A.map((K)=>a7(K)).join(q)}function Lm1(A,q){if(typeof q==="bigint")return q.toString();return q}function UL6(A){return{get value(){{let K=A();return Object.defineProperty(this,"value",{value:K}),K}throw Error("cached value already set")}}}function Jo(A){return A===null||A===void 0}function dL6(A){let q=A.startsWith("^")?1:0,K=A.endsWith("$")?A.length-1:A.length;return A.slice(q,K)}function ym1(A,q){let K=(A.toString().split(".")[1]||"").length,Y=(q.toString().split(".")[1]||"").length,z=K>Y?K:Y,w=Number.parseInt(A.toFixed(z).replace(".","")),_=Number.parseInt(q.toFixed(z).replace(".",""));return w%_/10**z}function ez(A,q,K){Object.defineProperty(A,q,{get(){{let z=K();return A[q]=z,z}throw Error("cached value already set")},set(z){Object.defineProperty(A,q,{value:z})},configurable:!0})}function Rm1(A,q,K){Object.defineProperty(A,q,{value:K,writable:!0,enumerable:!0,configurable:!0})}function Jtq(A,q){if(!q)return A;return q.reduce((K,Y)=>K?.[Y],A)}function Mtq(A){let q=Object.keys(A),K=q.map((Y)=>A[Y]);return Promise.all(K).then((Y)=>{let z={};for(let w=0;w<q.length;w++)z[q[w]]=Y[w];return z})}function Dtq(A=10){let K="";for(let Y=0;Y<A;Y++)K+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return K}function d76(A){return JSON.stringify(A)}function kO6(A){return typeof A==="object"&&A!==null&&!Array.isArray(A)}function EO6(A){if(kO6(A)===!1)return!1;let q=A.constructor;if(q===void 0)return!0;let K=q.prototype;if(kO6(K)===!1)return!1;if(Object.prototype.hasOwnProperty.call(K,"isPrototypeOf")===!1)return!1;return!0}function Xtq(A){let q=0;for(let K in A)if(Object.prototype.hasOwnProperty.call(A,K))q++;return q}function cQ(A){return A.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function UN(A,q,K){let Y=new A._zod.constr(q??A._zod.def);if(!q||K?.parent)Y._zod.parent=A;return Y}function I7(A){let q=A;if(!q)return{};if(typeof q==="string")return{error:()=>q};if(q?.message!==void 0){if(q?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");q.error=q.message}if(delete q.message,typeof q.error==="string")return{...q,error:()=>q.error};return q}function Wtq(A){let q;return new Proxy({},{get(K,Y,z){return q??(q=A()),Reflect.get(q,Y,z)},set(K,Y,z,w){return q??(q=A()),Reflect.set(q,Y,z,w)},has(K,Y){return q??(q=A()),Reflect.has(q,Y)},deleteProperty(K,Y){return q??(q=A()),Reflect.deleteProperty(q,Y)},ownKeys(K){return q??(q=A()),Reflect.ownKeys(q)},getOwnPropertyDescriptor(K,Y){return q??(q=A()),Reflect.getOwnPropertyDescriptor(q,Y)},defineProperty(K,Y,z){return q??(q=A()),Reflect.defineProperty(q,Y,z)}})}function a7(A){if(typeof A==="bigint")return A.toString()+"n";if(typeof A==="string")return`"${A}"`;return`${A}`}function Cm1(A){return Object.keys(A).filter((q)=>{return A[q]._zod.optin==="optional"&&A[q]._zod.optout==="optional"})}function Gtq(A,q){let K={},Y=A._zod.def;for(let z in q){if(!(z in Y.shape))throw Error(`Unrecognized key: "${z}"`);if(!q[z])continue;K[z]=Y.shape[z]}return UN(A,{...A._zod.def,shape:K,checks:[]})}function Ztq(A,q){let K={...A._zod.def.shape},Y=A._zod.def;for(let z in q){if(!(z in Y.shape))throw Error(`Unrecognized key: "${z}"`);if(!q[z])continue;delete K[z]}return UN(A,{...A._zod.def,shape:K,checks:[]})}function ftq(A,q){if(!EO6(q))throw Error("Invalid input to extend: expected a plain object");let K={...A._zod.def,get shape(){let Y={...A._zod.def.shape,...q};return Rm1(this,"shape",Y),Y},checks:[]};return UN(A,K)}function Ttq(A,q){return UN(A,{...A._zod.def,get shape(){let K={...A._zod.def.shape,...q._zod.def.shape};return Rm1(this,"shape",K),K},catchall:q._zod.def.catchall,checks:[]})}function vtq(A,q,K){let Y=q._zod.def.shape,z={...Y};if(K)for(let w in K){if(!(w in Y))throw Error(`Unrecognized key: "${w}"`);if(!K[w])continue;z[w]=A?new A({type:"optional",innerType:Y[w]}):Y[w]}else for(let w in Y)z[w]=A?new A({type:"optional",innerType:Y[w]}):Y[w];return UN(q,{...q._zod.def,shape:z,checks:[]})}function Vtq(A,q,K){let Y=q._zod.def.shape,z={...Y};if(K)for(let w in K){if(!(w in z))throw Error(`Unrecognized key: "${w}"`);if(!K[w])continue;z[w]=new A({type:"nonoptional",innerType:Y[w]})}else for(let w in Y)z[w]=new A({type:"nonoptional",innerType:Y[w]});return UN(q,{...q._zod.def,shape:z,checks:[]})}function c76(A,q=0){for(let K=q;K<A.issues.length;K++)if(A.issues[K]?.continue!==!0)return!0;return!1}function Kv(A,q){return q.map((K)=>{var Y;return(Y=K).path??(Y.path=[]),K.path.unshift(A),K})}function FL6(A){return typeof A==="string"?A:A?.message}function dN(A,q,K){let Y={...A,path:A.path??[]};if(!A.message){let z=FL6(A.inst?._zod.def?.error?.(A))??FL6(q?.error?.(A))??FL6(K.customError?.(A))??FL6(K.localeError?.(A))??"Invalid input";Y.message=z}if(delete Y.inst,delete Y.continue,!q?.reportInput)delete Y.input;return Y}function lL6(A){if(A instanceof Set)return"set";if(A instanceof Map)return"map";if(A instanceof File)return"file";return"unknown"}function iL6(A){if(Array.isArray(A))return"array";if(typeof A==="string")return"string";return"unknown"}function bm1(...A){let[q,K,Y]=A;if(typeof q==="string")return{message:q,code:"custom",input:K,inst:Y};return{...q}}function Ntq(A){return Object.entries(A).filter(([q,K])=>{return Number.isNaN(Number.parseInt(q,10))}).map((q)=>q[1])}class QAA{constructor(...A){}}var w61,Sm1,Ptq=(A)=>{let q=typeof A;switch(q){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(A)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(A))return"array";if(A===null)return"null";if(A.then&&typeof A.then==="function"&&A.catch&&typeof A.catch==="function")return"promise";if(typeof Map<"u"&&A instanceof Map)return"map";if(typeof Set<"u"&&A instanceof Set)return"set";if(typeof Date<"u"&&A instanceof Date)return"date";if(typeof File<"u"&&A instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${q}`)}},cL6,hm1,Im1,xm1;var K3=E(()=>{w61=Error.captureStackTrace?Error.captureStackTrace:(...A)=>{};Sm1=UL6(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(A){return!1}});cL6=new Set(["string","number","symbol"]),hm1=new Set(["string","number","bigint","boolean","symbol","undefined"]);Im1={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},xm1={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]}});function rL6(A,q=(K)=>K.message){let K={},Y=[];for(let z of A.issues)if(z.path.length>0)K[z.path[0]]=K[z.path[0]]||[],K[z.path[0]].push(q(z));else Y.push(q(z));return{formErrors:Y,fieldErrors:K}}function oL6(A,q){let K=q||function(w){return w.message},Y={_errors:[]},z=(w)=>{for(let _ of w.issues)if(_.code==="invalid_union"&&_.errors.length)_.errors.map(($)=>z({issues:$}));else if(_.code==="invalid_key")z({issues:_.issues});else if(_.code==="invalid_element")z({issues:_.issues});else if(_.path.length===0)Y._errors.push(K(_));else{let $=Y,O=0;while(O<_.path.length){let H=_.path[O];if(O!==_.path.length-1)$[H]=$[H]||{_errors:[]};else $[H]=$[H]||{_errors:[]},$[H]._errors.push(K(_));$=$[H],O++}}};return z(A),Y}function um1(A,q){let K=q||function(w){return w.message},Y={errors:[]},z=(w,_=[])=>{var $,O;for(let H of w.issues)if(H.code==="invalid_union"&&H.errors.length)H.errors.map((j)=>z({issues:j},H.path));else if(H.code==="invalid_key")z({issues:H.issues},H.path);else if(H.code==="invalid_element")z({issues:H.issues},H.path);else{let j=[..._,...H.path];if(j.length===0){Y.errors.push(K(H));continue}let J=Y,M=0;while(M<j.length){let D=j[M],X=M===j.length-1;if(typeof D==="string")J.properties??(J.properties={}),($=J.properties)[D]??($[D]={errors:[]}),J=J.properties[D];else J.items??(J.items=[]),(O=J.items)[D]??(O[D]={errors:[]}),J=J.items[D];if(X)J.errors.push(K(H));M++}}};return z(A),Y}function dAA(A){let q=[];for(let K of A)if(typeof K==="number")q.push(`[${K}]`);else if(typeof K==="symbol")q.push(`[${JSON.stringify(String(K))}]`);else if(/[^\w$]/.test(K))q.push(`[${JSON.stringify(K)}]`);else{if(q.length)q.push(".");q.push(K)}return q.join("")}function mm1(A){let q=[],K=[...A.issues].sort((Y,z)=>Y.path.length-z.path.length);for(let Y of K)if(q.push(`✖ ${Y.message}`),Y.path?.length)q.push(`  → at ${dAA(Y.path)}`);return q.join(`
`)}var UAA=(A,q)=>{A.name="$ZodError",Object.defineProperty(A,"_zod",{value:A._zod,enumerable:!1}),Object.defineProperty(A,"issues",{value:q,enumerable:!1}),Object.defineProperty(A,"message",{get(){return JSON.stringify(q,Lm1,2)},enumerable:!0})},nL6,LO6;var Bm1=E(()=>{NO6();K3();nL6=N8("$ZodError",UAA),LO6=N8("$ZodError",UAA,{Parent:Error})});var _61=(A)=>(q,K,Y,z)=>{let w=Y?Object.assign(Y,{async:!1}):{async:!1},_=q._zod.run({value:K,issues:[]},w);if(_ instanceof Promise)throw new dQ;if(_.issues.length){let $=new(z?.Err??A)(_.issues.map((O)=>dN(O,w,eJ())));throw w61($,z?.callee),$}return _.value},aL6,$61=(A)=>async(q,K,Y,z)=>{let w=Y?Object.assign(Y,{async:!0}):{async:!0},_=q._zod.run({value:K,issues:[]},w);if(_ instanceof Promise)_=await _;if(_.issues.length){let $=new(z?.Err??A)(_.issues.map((O)=>dN(O,w,eJ())));throw w61($,z?.callee),$}return _.value},sL6,O61=(A)=>(q,K,Y)=>{let z=Y?{...Y,async:!1}:{async:!1},w=q._zod.run({value:K,issues:[]},z);if(w instanceof Promise)throw new dQ;return w.issues.length?{success:!1,error:new(A??nL6)(w.issues.map((_)=>dN(_,z,eJ())))}:{success:!0,data:w.value}},yO6,H61=(A)=>async(q,K,Y)=>{let z=Y?Object.assign(Y,{async:!0}):{async:!0},w=q._zod.run({value:K,issues:[]},z);if(w instanceof Promise)w=await w;return w.issues.length?{success:!1,error:new A(w.issues.map((_)=>dN(_,z,eJ())))}:{success:!0,data:w.value}},tL6;var j61=E(()=>{NO6();Bm1();K3();aL6=_61(LO6),sL6=$61(LO6),yO6=O61(LO6),tL6=H61(LO6)});var i76={};d1(i76,{xid:()=>Qm1,uuid7:()=>Rtq,uuid6:()=>ytq,uuid4:()=>Ltq,uuid:()=>l76,uppercase:()=>MB1,unicodeEmail:()=>Ctq,undefined:()=>jB1,ulid:()=>Fm1,time:()=>KB1,string:()=>zB1,rfc5322Email:()=>htq,number:()=>$B1,null:()=>HB1,nanoid:()=>dm1,lowercase:()=>JB1,ksuid:()=>Um1,ipv6:()=>om1,ipv4:()=>rm1,integer:()=>_B1,html5Email:()=>Stq,hostname:()=>em1,guid:()=>lm1,extendedDuration:()=>Etq,emoji:()=>nm1,email:()=>im1,e164:()=>AB1,duration:()=>cm1,domain:()=>btq,datetime:()=>YB1,date:()=>qB1,cuid2:()=>pm1,cuid:()=>gm1,cidrv6:()=>sm1,cidrv4:()=>am1,browserEmail:()=>Itq,boolean:()=>OB1,bigint:()=>wB1,base64url:()=>J61,base64:()=>tm1,_emoji:()=>xtq});function nm1(){return new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}function lAA(A){return typeof A.precision==="number"?A.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":A.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${A.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function KB1(A){return new RegExp(`^${lAA(A)}$`)}function YB1(A){let q=lAA({precision:A.precision}),K=["Z"];if(A.local)K.push("");if(A.offset)K.push("([+-]\\d{2}:\\d{2})");let Y=`${q}(?:${K.join("|")})`;return new RegExp(`^${cAA}T(?:${Y})$`)}var gm1,pm1,Fm1,Qm1,Um1,dm1,cm1,Etq,lm1,l76=(A)=>{if(!A)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${A}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},Ltq,ytq,Rtq,im1,Stq,htq,Ctq,Itq,xtq="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",rm1,om1,am1,sm1,tm1,J61,em1,btq,AB1,cAA="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",qB1,zB1=(A)=>{let q=A?`[\\s\\S]{${A?.minimum??0},${A?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${q}$`)},wB1,_B1,$B1,OB1,HB1,jB1,JB1,MB1;var M61=E(()=>{gm1=/^[cC][^\s-]{8,}$/,pm1=/^[0-9a-z]+$/,Fm1=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Qm1=/^[0-9a-vA-V]{20}$/,Um1=/^[A-Za-z0-9]{27}$/,dm1=/^[a-zA-Z0-9_-]{21}$/,cm1=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Etq=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,lm1=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ltq=l76(4),ytq=l76(6),Rtq=l76(7),im1=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Stq=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,htq=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Ctq=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Itq=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;rm1=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,om1=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,am1=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,sm1=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,tm1=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,J61=/^[A-Za-z0-9_-]*$/,em1=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,btq=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,AB1=/^\+(?:[0-9]){6,14}[0-9]$/,qB1=new RegExp(`^${cAA}$`);wB1=/^\d+n?$/,_B1=/^\d+$/,$B1=/^-?\d+(?:\.\d+)?/i,OB1=/true|false/i,HB1=/null/i,jB1=/undefined/i,JB1=/^[^A-Z]*$/,MB1=/^[^a-z]*$/});function iAA(A,q,K){if(A.issues.length)q.issues.push(...Kv(K,A.issues))}var MH,nAA,D61,X61,DB1,XB1,PB1,WB1,GB1,ZB1,fB1,TB1,vB1,RO6,VB1,NB1,kB1,EB1,LB1,yB1,RB1,SB1,hB1;var P61=E(()=>{NO6();M61();K3();MH=N8("$ZodCheck",(A,q)=>{var K;A._zod??(A._zod={}),A._zod.def=q,(K=A._zod).onattach??(K.onattach=[])}),nAA={number:"number",bigint:"bigint",object:"date"},D61=N8("$ZodCheckLessThan",(A,q)=>{MH.init(A,q);let K=nAA[typeof q.value];A._zod.onattach.push((Y)=>{let z=Y._zod.bag,w=(q.inclusive?z.maximum:z.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(q.value<w)if(q.inclusive)z.maximum=q.value;else z.exclusiveMaximum=q.value}),A._zod.check=(Y)=>{if(q.inclusive?Y.value<=q.value:Y.value<q.value)return;Y.issues.push({origin:K,code:"too_big",maximum:q.value,input:Y.value,inclusive:q.inclusive,inst:A,continue:!q.abort})}}),X61=N8("$ZodCheckGreaterThan",(A,q)=>{MH.init(A,q);let K=nAA[typeof q.value];A._zod.onattach.push((Y)=>{let z=Y._zod.bag,w=(q.inclusive?z.minimum:z.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(q.value>w)if(q.inclusive)z.minimum=q.value;else z.exclusiveMinimum=q.value}),A._zod.check=(Y)=>{if(q.inclusive?Y.value>=q.value:Y.value>q.value)return;Y.issues.push({origin:K,code:"too_small",minimum:q.value,input:Y.value,inclusive:q.inclusive,inst:A,continue:!q.abort})}}),DB1=N8("$ZodCheckMultipleOf",(A,q)=>{MH.init(A,q),A._zod.onattach.push((K)=>{var Y;(Y=K._zod.bag).multipleOf??(Y.multipleOf=q.value)}),A._zod.check=(K)=>{if(typeof K.value!==typeof q.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof K.value==="bigint"?K.value%q.value===BigInt(0):ym1(K.value,q.value)===0)return;K.issues.push({origin:typeof K.value,code:"not_multiple_of",divisor:q.value,input:K.value,inst:A,continue:!q.abort})}}),XB1=N8("$ZodCheckNumberFormat",(A,q)=>{MH.init(A,q),q.format=q.format||"float64";let K=q.format?.includes("int"),Y=K?"int":"number",[z,w]=Im1[q.format];A._zod.onattach.push((_)=>{let $=_._zod.bag;if($.format=q.format,$.minimum=z,$.maximum=w,K)$.pattern=_B1}),A._zod.check=(_)=>{let $=_.value;if(K){if(!Number.isInteger($)){_.issues.push({expected:Y,format:q.format,code:"invalid_type",input:$,inst:A});return}if(!Number.isSafeInteger($)){if($>0)_.issues.push({input:$,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:A,origin:Y,continue:!q.abort});else _.issues.push({input:$,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:A,origin:Y,continue:!q.abort});return}}if($<z)_.issues.push({origin:"number",input:$,code:"too_small",minimum:z,inclusive:!0,inst:A,continue:!q.abort});if($>w)_.issues.push({origin:"number",input:$,code:"too_big",maximum:w,inst:A})}}),PB1=N8("$ZodCheckBigIntFormat",(A,q)=>{MH.init(A,q);let[K,Y]=xm1[q.format];A._zod.onattach.push((z)=>{let w=z._zod.bag;w.format=q.format,w.minimum=K,w.maximum=Y}),A._zod.check=(z)=>{let w=z.value;if(w<K)z.issues.push({origin:"bigint",input:w,code:"too_small",minimum:K,inclusive:!0,inst:A,continue:!q.abort});if(w>Y)z.issues.push({origin:"bigint",input:w,code:"too_big",maximum:Y,inst:A})}}),WB1=N8("$ZodCheckMaxSize",(A,q)=>{MH.init(A,q),A._zod.when=(K)=>{let Y=K.value;return!Jo(Y)&&Y.size!==void 0},A._zod.onattach.push((K)=>{let Y=K._zod.bag.maximum??Number.POSITIVE_INFINITY;if(q.maximum<Y)K._zod.bag.maximum=q.maximum}),A._zod.check=(K)=>{let Y=K.value;if(Y.size<=q.maximum)return;K.issues.push({origin:lL6(Y),code:"too_big",maximum:q.maximum,input:Y,inst:A,continue:!q.abort})}}),GB1=N8("$ZodCheckMinSize",(A,q)=>{MH.init(A,q),A._zod.when=(K)=>{let Y=K.value;return!Jo(Y)&&Y.size!==void 0},A._zod.onattach.push((K)=>{let Y=K._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(q.minimum>Y)K._zod.bag.minimum=q.minimum}),A._zod.check=(K)=>{let Y=K.value;if(Y.size>=q.minimum)return;K.issues.push({origin:lL6(Y),code:"too_small",minimum:q.minimum,input:Y,inst:A,continue:!q.abort})}}),ZB1=N8("$ZodCheckSizeEquals",(A,q)=>{MH.init(A,q),A._zod.when=(K)=>{let Y=K.value;return!Jo(Y)&&Y.size!==void 0},A._zod.onattach.push((K)=>{let Y=K._zod.bag;Y.minimum=q.size,Y.maximum=q.size,Y.size=q.size}),A._zod.check=(K)=>{let Y=K.value,z=Y.size;if(z===q.size)return;let w=z>q.size;K.issues.push({origin:lL6(Y),...w?{code:"too_big",maximum:q.size}:{code:"too_small",minimum:q.size},inclusive:!0,exact:!0,input:K.value,inst:A,continue:!q.abort})}}),fB1=N8("$ZodCheckMaxLength",(A,q)=>{MH.init(A,q),A._zod.when=(K)=>{let Y=K.value;return!Jo(Y)&&Y.length!==void 0},A._zod.onattach.push((K)=>{let Y=K._zod.bag.maximum??Number.POSITIVE_INFINITY;if(q.maximum<Y)K._zod.bag.maximum=q.maximum}),A._zod.check=(K)=>{let Y=K.value;if(Y.length<=q.maximum)return;let w=iL6(Y);K.issues.push({origin:w,code:"too_big",maximum:q.maximum,inclusive:!0,input:Y,inst:A,continue:!q.abort})}}),TB1=N8("$ZodCheckMinLength",(A,q)=>{MH.init(A,q),A._zod.when=(K)=>{let Y=K.value;return!Jo(Y)&&Y.length!==void 0},A._zod.onattach.push((K)=>{let Y=K._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(q.minimum>Y)K._zod.bag.minimum=q.minimum}),A._zod.check=(K)=>{let Y=K.value;if(Y.length>=q.minimum)return;let w=iL6(Y);K.issues.push({origin:w,code:"too_small",minimum:q.minimum,inclusive:!0,input:Y,inst:A,continue:!q.abort})}}),vB1=N8("$ZodCheckLengthEquals",(A,q)=>{MH.init(A,q),A._zod.when=(K)=>{let Y=K.value;return!Jo(Y)&&Y.length!==void 0},A._zod.onattach.push((K)=>{let Y=K._zod.bag;Y.minimum=q.length,Y.maximum=q.length,Y.length=q.length}),A._zod.check=(K)=>{let Y=K.value,z=Y.length;if(z===q.length)return;let w=iL6(Y),_=z>q.length;K.issues.push({origin:w,..._?{code:"too_big",maximum:q.length}:{code:"too_small",minimum:q.length},inclusive:!0,exact:!0,input:K.value,inst:A,continue:!q.abort})}}),RO6=N8("$ZodCheckStringFormat",(A,q)=>{var K,Y;if(MH.init(A,q),A._zod.onattach.push((z)=>{let w=z._zod.bag;if(w.format=q.format,q.pattern)w.patterns??(w.patterns=new Set),w.patterns.add(q.pattern)}),q.pattern)(K=A._zod).check??(K.check=(z)=>{if(q.pattern.lastIndex=0,q.pattern.test(z.value))return;z.issues.push({origin:"string",code:"invalid_format",format:q.format,input:z.value,...q.pattern?{pattern:q.pattern.toString()}:{},inst:A,continue:!q.abort})});else(Y=A._zod).check??(Y.check=()=>{})}),VB1=N8("$ZodCheckRegex",(A,q)=>{RO6.init(A,q),A._zod.check=(K)=>{if(q.pattern.lastIndex=0,q.pattern.test(K.value))return;K.issues.push({origin:"string",code:"invalid_format",format:"regex",input:K.value,pattern:q.pattern.toString(),inst:A,continue:!q.abort})}}),NB1=N8("$ZodCheckLowerCase",(A,q)=>{q.pattern??(q.pattern=JB1),RO6.init(A,q)}),kB1=N8("$ZodCheckUpperCase",(A,q)=>{q.pattern??(q.pattern=MB1),RO6.init(A,q)}),EB1=N8("$ZodCheckIncludes",(A,q)=>{MH.init(A,q);let K=cQ(q.includes),Y=new RegExp(typeof q.position==="number"?`^.{${q.position}}${K}`:K);q.pattern=Y,A._zod.onattach.push((z)=>{let w=z._zod.bag;w.patterns??(w.patterns=new Set),w.patterns.add(Y)}),A._zod.check=(z)=>{if(z.value.includes(q.includes,q.position))return;z.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:q.includes,input:z.value,inst:A,continue:!q.abort})}}),LB1=N8("$ZodCheckStartsWith",(A,q)=>{MH.init(A,q);let K=new RegExp(`^${cQ(q.prefix)}.*`);q.pattern??(q.pattern=K),A._zod.onattach.push((Y)=>{let z=Y._zod.bag;z.patterns??(z.patterns=new Set),z.patterns.add(K)}),A._zod.check=(Y)=>{if(Y.value.startsWith(q.prefix))return;Y.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:q.prefix,input:Y.value,inst:A,continue:!q.abort})}}),yB1=N8("$ZodCheckEndsWith",(A,q)=>{MH.init(A,q);let K=new RegExp(`.*${cQ(q.suffix)}$`);q.pattern??(q.pattern=K),A._zod.onattach.push((Y)=>{let z=Y._zod.bag;z.patterns??(z.patterns=new Set),z.patterns.add(K)}),A._zod.check=(Y)=>{if(Y.value.endsWith(q.suffix))return;Y.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:q.suffix,input:Y.value,inst:A,continue:!q.abort})}});RB1=N8("$ZodCheckProperty",(A,q)=>{MH.init(A,q),A._zod.check=(K)=>{let Y=q.schema._zod.run({value:K.value[q.property],issues:[]},{});if(Y instanceof Promise)return Y.then((z)=>iAA(z,K,q.property));iAA(Y,K,q.property);return}}),SB1=N8("$ZodCheckMimeType",(A,q)=>{MH.init(A,q);let K=new Set(q.mime);A._zod.onattach.push((Y)=>{Y._zod.bag.mime=q.mime}),A._zod.check=(Y)=>{if(K.has(Y.value.type))return;Y.issues.push({code:"invalid_value",values:q.mime,input:Y.value.type,inst:A})}}),hB1=N8("$ZodCheckOverwrite",(A,q)=>{MH.init(A,q),A._zod.check=(K)=>{K.value=q.tx(K.value)}})});class W61{constructor(A=[]){if(this.content=[],this.indent=0,this)this.args=A}indented(A){this.indent+=1,A(this),this.indent-=1}write(A){if(typeof A==="function"){A(this,{execution:"sync"}),A(this,{execution:"async"});return}let K=A.split(`
`).filter((w)=>w),Y=Math.min(...K.map((w)=>w.length-w.trimStart().length)),z=K.map((w)=>w.slice(Y)).map((w)=>" ".repeat(this.indent*2)+w);for(let w of z)this.content.push(w)}compile(){let A=Function,q=this?.args,Y=[...(this?.content??[""]).map((z)=>`  ${z}`)];return new A(...q,Y.join(`
`))}}var CB1;var IB1=E(()=>{CB1={major:4,minor:0,patch:0}});function eB1(A){if(A==="")return!0;if(A.length%4!==0)return!1;try{return atob(A),!0}catch{return!1}}function _7A(A){if(!J61.test(A))return!1;let q=A.replace(/[-_]/g,(Y)=>Y==="-"?"+":"/"),K=q.padEnd(Math.ceil(q.length/4)*4,"=");return eB1(K)}function $7A(A,q=null){try{let K=A.split(".");if(K.length!==3)return!1;let[Y]=K;if(!Y)return!1;let z=JSON.parse(atob(Y));if("typ"in z&&z?.typ!=="JWT")return!1;if(!z.alg)return!1;if(q&&(!("alg"in z)||z.alg!==q))return!1;return!0}catch{return!1}}function oAA(A,q,K){if(A.issues.length)q.issues.push(...Kv(K,A.issues));q.value[K]=A.value}function G61(A,q,K){if(A.issues.length)q.issues.push(...Kv(K,A.issues));q.value[K]=A.value}function aAA(A,q,K,Y){if(A.issues.length)if(Y[K]===void 0)if(K in Y)q.value[K]=void 0;else q.value[K]=A.value;else q.issues.push(...Kv(K,A.issues));else if(A.value===void 0){if(K in Y)q.value[K]=void 0}else q.value[K]=A.value}function sAA(A,q,K,Y){for(let z of A)if(z.issues.length===0)return q.value=z.value,q;return q.issues.push({code:"invalid_union",input:q.value,inst:K,errors:A.map((z)=>z.issues.map((w)=>dN(w,Y,eJ())))}),q}function xB1(A,q){if(A===q)return{valid:!0,data:A};if(A instanceof Date&&q instanceof Date&&+A===+q)return{valid:!0,data:A};if(EO6(A)&&EO6(q)){let K=Object.keys(q),Y=Object.keys(A).filter((w)=>K.indexOf(w)!==-1),z={...A,...q};for(let w of Y){let _=xB1(A[w],q[w]);if(!_.valid)return{valid:!1,mergeErrorPath:[w,..._.mergeErrorPath]};z[w]=_.data}return{valid:!0,data:z}}if(Array.isArray(A)&&Array.isArray(q)){if(A.length!==q.length)return{valid:!1,mergeErrorPath:[]};let K=[];for(let Y=0;Y<A.length;Y++){let z=A[Y],w=q[Y],_=xB1(z,w);if(!_.valid)return{valid:!1,mergeErrorPath:[Y,..._.mergeErrorPath]};K.push(_.data)}return{valid:!0,data:K}}return{valid:!1,mergeErrorPath:[]}}function tAA(A,q,K){if(q.issues.length)A.issues.push(...q.issues);if(K.issues.length)A.issues.push(...K.issues);if(c76(A))return A;let Y=xB1(q.value,K.value);if(!Y.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(Y.mergeErrorPath)}`);return A.value=Y.data,A}function Z61(A,q,K){if(A.issues.length)q.issues.push(...Kv(K,A.issues));q.value[K]=A.value}function eAA(A,q,K,Y,z,w,_){if(A.issues.length)if(cL6.has(typeof Y))K.issues.push(...Kv(Y,A.issues));else K.issues.push({origin:"map",code:"invalid_key",input:z,inst:w,issues:A.issues.map(($)=>dN($,_,eJ()))});if(q.issues.length)if(cL6.has(typeof Y))K.issues.push(...Kv(Y,q.issues));else K.issues.push({origin:"map",code:"invalid_element",input:z,inst:w,key:Y,issues:q.issues.map(($)=>dN($,_,eJ()))});K.value.set(A.value,q.value)}function A7A(A,q){if(A.issues.length)q.issues.push(...A.issues);q.value.add(A.value)}function q7A(A,q){if(A.value===void 0)A.value=q.defaultValue;return A}function K7A(A,q){if(!A.issues.length&&A.value===void 0)A.issues.push({code:"invalid_type",expected:"nonoptional",input:A.value,inst:q});return A}function Y7A(A,q,K){if(c76(A))return A;return q.out._zod.run({value:A.value,issues:A.issues},K)}function z7A(A){return A.value=Object.freeze(A.value),A}function w7A(A,q,K,Y){if(!A){let z={code:"custom",input:K,inst:Y,path:[...Y._zod.def.path??[]],continue:!Y._zod.def.abort};if(Y._zod.def.params)z.params=Y._zod.def.params;q.issues.push(bm1(z))}}var v3,n76,q_,bB1,uB1,mB1,BB1,gB1,pB1,FB1,QB1,UB1,dB1,cB1,lB1,iB1,nB1,rB1,oB1,aB1,sB1,tB1,Ag1,qg1,Kg1,Yg1,zg1,f61,wg1,eL6,T61,_g1,$g1,Og1,Hg1,jg1,SO6,Jg1,Mg1,Dg1,Ay6,Xg1,v61,Pg1,Wg1,r76,Gg1,Zg1,fg1,Tg1,vg1,Vg1,qy6,Ng1,kg1,Eg1,Lg1,yg1,Rg1,Sg1,hg1,Ky6,Cg1,Ig1,xg1,bg1,ug1;var Yy6=E(()=>{P61();NO6();j61();M61();K3();IB1();K3();v3=N8("$ZodType",(A,q)=>{var K;A??(A={}),A._zod.def=q,A._zod.bag=A._zod.bag||{},A._zod.version=CB1;let Y=[...A._zod.def.checks??[]];if(A._zod.traits.has("$ZodCheck"))Y.unshift(A);for(let z of Y)for(let w of z._zod.onattach)w(A);if(Y.length===0)(K=A._zod).deferred??(K.deferred=[]),A._zod.deferred?.push(()=>{A._zod.run=A._zod.parse});else{let z=(w,_,$)=>{let O=c76(w),H;for(let j of _){if(j._zod.when){if(!j._zod.when(w))continue}else if(O)continue;let J=w.issues.length,M=j._zod.check(w);if(M instanceof Promise&&$?.async===!1)throw new dQ;if(H||M instanceof Promise)H=(H??Promise.resolve()).then(async()=>{if(await M,w.issues.length===J)return;if(!O)O=c76(w,J)});else{if(w.issues.length===J)continue;if(!O)O=c76(w,J)}}if(H)return H.then(()=>{return w});return w};A._zod.run=(w,_)=>{let $=A._zod.parse(w,_);if($ instanceof Promise){if(_.async===!1)throw new dQ;return $.then((O)=>z(O,Y,_))}return z($,Y,_)}}A["~standard"]={validate:(z)=>{try{let w=yO6(A,z);return w.success?{value:w.data}:{issues:w.error?.issues}}catch(w){return tL6(A,z).then((_)=>_.success?{value:_.data}:{issues:_.error?.issues})}},vendor:"zod",version:1}}),n76=N8("$ZodString",(A,q)=>{v3.init(A,q),A._zod.pattern=[...A?._zod.bag?.patterns??[]].pop()??zB1(A._zod.bag),A._zod.parse=(K,Y)=>{if(q.coerce)try{K.value=String(K.value)}catch(z){}if(typeof K.value==="string")return K;return K.issues.push({expected:"string",code:"invalid_type",input:K.value,inst:A}),K}}),q_=N8("$ZodStringFormat",(A,q)=>{RO6.init(A,q),n76.init(A,q)}),bB1=N8("$ZodGUID",(A,q)=>{q.pattern??(q.pattern=lm1),q_.init(A,q)}),uB1=N8("$ZodUUID",(A,q)=>{if(q.version){let Y={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[q.version];if(Y===void 0)throw Error(`Invalid UUID version: "${q.version}"`);q.pattern??(q.pattern=l76(Y))}else q.pattern??(q.pattern=l76());q_.init(A,q)}),mB1=N8("$ZodEmail",(A,q)=>{q.pattern??(q.pattern=im1),q_.init(A,q)}),BB1=N8("$ZodURL",(A,q)=>{q_.init(A,q),A._zod.check=(K)=>{try{let Y=K.value,z=new URL(Y),w=z.href;if(q.hostname){if(q.hostname.lastIndex=0,!q.hostname.test(z.hostname))K.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:em1.source,input:K.value,inst:A,continue:!q.abort})}if(q.protocol){if(q.protocol.lastIndex=0,!q.protocol.test(z.protocol.endsWith(":")?z.protocol.slice(0,-1):z.protocol))K.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:q.protocol.source,input:K.value,inst:A,continue:!q.abort})}if(!Y.endsWith("/")&&w.endsWith("/"))K.value=w.slice(0,-1);else K.value=w;return}catch(Y){K.issues.push({code:"invalid_format",format:"url",input:K.value,inst:A,continue:!q.abort})}}}),gB1=N8("$ZodEmoji",(A,q)=>{q.pattern??(q.pattern=nm1()),q_.init(A,q)}),pB1=N8("$ZodNanoID",(A,q)=>{q.pattern??(q.pattern=dm1),q_.init(A,q)}),FB1=N8("$ZodCUID",(A,q)=>{q.pattern??(q.pattern=gm1),q_.init(A,q)}),QB1=N8("$ZodCUID2",(A,q)=>{q.pattern??(q.pattern=pm1),q_.init(A,q)}),UB1=N8("$ZodULID",(A,q)=>{q.pattern??(q.pattern=Fm1),q_.init(A,q)}),dB1=N8("$ZodXID",(A,q)=>{q.pattern??(q.pattern=Qm1),q_.init(A,q)}),cB1=N8("$ZodKSUID",(A,q)=>{q.pattern??(q.pattern=Um1),q_.init(A,q)}),lB1=N8("$ZodISODateTime",(A,q)=>{q.pattern??(q.pattern=YB1(q)),q_.init(A,q)}),iB1=N8("$ZodISODate",(A,q)=>{q.pattern??(q.pattern=qB1),q_.init(A,q)}),nB1=N8("$ZodISOTime",(A,q)=>{q.pattern??(q.pattern=KB1(q)),q_.init(A,q)}),rB1=N8("$ZodISODuration",(A,q)=>{q.pattern??(q.pattern=cm1),q_.init(A,q)}),oB1=N8("$ZodIPv4",(A,q)=>{q.pattern??(q.pattern=rm1),q_.init(A,q),A._zod.onattach.push((K)=>{let Y=K._zod.bag;Y.format="ipv4"})}),aB1=N8("$ZodIPv6",(A,q)=>{q.pattern??(q.pattern=om1),q_.init(A,q),A._zod.onattach.push((K)=>{let Y=K._zod.bag;Y.format="ipv6"}),A._zod.check=(K)=>{try{new URL(`http://[${K.value}]`)}catch{K.issues.push({code:"invalid_format",format:"ipv6",input:K.value,inst:A,continue:!q.abort})}}}),sB1=N8("$ZodCIDRv4",(A,q)=>{q.pattern??(q.pattern=am1),q_.init(A,q)}),tB1=N8("$ZodCIDRv6",(A,q)=>{q.pattern??(q.pattern=sm1),q_.init(A,q),A._zod.check=(K)=>{let[Y,z]=K.value.split("/");try{if(!z)throw Error();let w=Number(z);if(`${w}`!==z)throw Error();if(w<0||w>128)throw Error();new URL(`http://[${Y}]`)}catch{K.issues.push({code:"invalid_format",format:"cidrv6",input:K.value,inst:A,continue:!q.abort})}}});Ag1=N8("$ZodBase64",(A,q)=>{q.pattern??(q.pattern=tm1),q_.init(A,q),A._zod.onattach.push((K)=>{K._zod.bag.contentEncoding="base64"}),A._zod.check=(K)=>{if(eB1(K.value))return;K.issues.push({code:"invalid_format",format:"base64",input:K.value,inst:A,continue:!q.abort})}});qg1=N8("$ZodBase64URL",(A,q)=>{q.pattern??(q.pattern=J61),q_.init(A,q),A._zod.onattach.push((K)=>{K._zod.bag.contentEncoding="base64url"}),A._zod.check=(K)=>{if(_7A(K.value))return;K.issues.push({code:"invalid_format",format:"base64url",input:K.value,inst:A,continue:!q.abort})}}),Kg1=N8("$ZodE164",(A,q)=>{q.pattern??(q.pattern=AB1),q_.init(A,q)});Yg1=N8("$ZodJWT",(A,q)=>{q_.init(A,q),A._zod.check=(K)=>{if($7A(K.value,q.alg))return;K.issues.push({code:"invalid_format",format:"jwt",input:K.value,inst:A,continue:!q.abort})}}),zg1=N8("$ZodCustomStringFormat",(A,q)=>{q_.init(A,q),A._zod.check=(K)=>{if(q.fn(K.value))return;K.issues.push({code:"invalid_format",format:q.format,input:K.value,inst:A,continue:!q.abort})}}),f61=N8("$ZodNumber",(A,q)=>{v3.init(A,q),A._zod.pattern=A._zod.bag.pattern??$B1,A._zod.parse=(K,Y)=>{if(q.coerce)try{K.value=Number(K.value)}catch(_){}let z=K.value;if(typeof z==="number"&&!Number.isNaN(z)&&Number.isFinite(z))return K;let w=typeof z==="number"?Number.isNaN(z)?"NaN":!Number.isFinite(z)?"Infinity":void 0:void 0;return K.issues.push({expected:"number",code:"invalid_type",input:z,inst:A,...w?{received:w}:{}}),K}}),wg1=N8("$ZodNumber",(A,q)=>{XB1.init(A,q),f61.init(A,q)}),eL6=N8("$ZodBoolean",(A,q)=>{v3.init(A,q),A._zod.pattern=OB1,A._zod.parse=(K,Y)=>{if(q.coerce)try{K.value=Boolean(K.value)}catch(w){}let z=K.value;if(typeof z==="boolean")return K;return K.issues.push({expected:"boolean",code:"invalid_type",input:z,inst:A}),K}}),T61=N8("$ZodBigInt",(A,q)=>{v3.init(A,q),A._zod.pattern=wB1,A._zod.parse=(K,Y)=>{if(q.coerce)try{K.value=BigInt(K.value)}catch(z){}if(typeof K.value==="bigint")return K;return K.issues.push({expected:"bigint",code:"invalid_type",input:K.value,inst:A}),K}}),_g1=N8("$ZodBigInt",(A,q)=>{PB1.init(A,q),T61.init(A,q)}),$g1=N8("$ZodSymbol",(A,q)=>{v3.init(A,q),A._zod.parse=(K,Y)=>{let z=K.value;if(typeof z==="symbol")return K;return K.issues.push({expected:"symbol",code:"invalid_type",input:z,inst:A}),K}}),Og1=N8("$ZodUndefined",(A,q)=>{v3.init(A,q),A._zod.pattern=jB1,A._zod.values=new Set([void 0]),A._zod.optin="optional",A._zod.optout="optional",A._zod.parse=(K,Y)=>{let z=K.value;if(typeof z>"u")return K;return K.issues.push({expected:"undefined",code:"invalid_type",input:z,inst:A}),K}}),Hg1=N8("$ZodNull",(A,q)=>{v3.init(A,q),A._zod.pattern=HB1,A._zod.values=new Set([null]),A._zod.parse=(K,Y)=>{let z=K.value;if(z===null)return K;return K.issues.push({expected:"null",code:"invalid_type",input:z,inst:A}),K}}),jg1=N8("$ZodAny",(A,q)=>{v3.init(A,q),A._zod.parse=(K)=>K}),SO6=N8("$ZodUnknown",(A,q)=>{v3.init(A,q),A._zod.parse=(K)=>K}),Jg1=N8("$ZodNever",(A,q)=>{v3.init(A,q),A._zod.parse=(K,Y)=>{return K.issues.push({expected:"never",code:"invalid_type",input:K.value,inst:A}),K}}),Mg1=N8("$ZodVoid",(A,q)=>{v3.init(A,q),A._zod.parse=(K,Y)=>{let z=K.value;if(typeof z>"u")return K;return K.issues.push({expected:"void",code:"invalid_type",input:z,inst:A}),K}}),Dg1=N8("$ZodDate",(A,q)=>{v3.init(A,q),A._zod.parse=(K,Y)=>{if(q.coerce)try{K.value=new Date(K.value)}catch($){}let z=K.value,w=z instanceof Date;if(w&&!Number.isNaN(z.getTime()))return K;return K.issues.push({expected:"date",code:"invalid_type",input:z,...w?{received:"Invalid Date"}:{},inst:A}),K}});Ay6=N8("$ZodArray",(A,q)=>{v3.init(A,q),A._zod.parse=(K,Y)=>{let z=K.value;if(!Array.isArray(z))return K.issues.push({expected:"array",code:"invalid_type",input:z,inst:A}),K;K.value=Array(z.length);let w=[];for(let _=0;_<z.length;_++){let $=z[_],O=q.element._zod.run({value:$,issues:[]},Y);if(O instanceof Promise)w.push(O.then((H)=>oAA(H,K,_)));else oAA(O,K,_)}if(w.length)return Promise.all(w).then(()=>K);return K}});Xg1=N8("$ZodObject",(A,q)=>{v3.init(A,q);let K=UL6(()=>{let J=Object.keys(q.shape);for(let D of J)if(!(q.shape[D]instanceof v3))throw Error(`Invalid element at key "${D}": expected a Zod schema`);let M=Cm1(q.shape);return{shape:q.shape,keys:J,keySet:new Set(J),numKeys:J.length,optionalKeys:new Set(M)}});ez(A._zod,"propValues",()=>{let J=q.shape,M={};for(let D in J){let X=J[D]._zod;if(X.values){M[D]??(M[D]=new Set);for(let P of X.values)M[D].add(P)}}return M});let Y=(J)=>{let M=new W61(["shape","payload","ctx"]),D=K.value,X=(Z)=>{let f=d76(Z);return`shape[${f}]._zod.run({ value: input[${f}], issues: [] }, ctx)`};M.write("const input = payload.value;");let P=Object.create(null),W=0;for(let Z of D.keys)P[Z]=`key_${W++}`;M.write("const newResult = {}");for(let Z of D.keys)if(D.optionalKeys.has(Z)){let f=P[Z];M.write(`const ${f} = ${X(Z)};`);let v=d76(Z);M.write(`
        if (${f}.issues.length) {
          if (input[${v}] === undefined) {
            if (${v} in input) {
              newResult[${v}] = undefined;
            }
          } else {
            payload.issues = payload.issues.concat(
              ${f}.issues.map((iss) => ({
                ...iss,
                path: iss.path ? [${v}, ...iss.path] : [${v}],
              }))
            );
          }
        } else if (${f}.value === undefined) {
          if (${v} in input) newResult[${v}] = undefined;
        } else {
          newResult[${v}] = ${f}.value;
        }
        `)}else{let f=P[Z];M.write(`const ${f} = ${X(Z)};`),M.write(`
          if (${f}.issues.length) payload.issues = payload.issues.concat(${f}.issues.map(iss => ({
            ...iss,
            path: iss.path ? [${d76(Z)}, ...iss.path] : [${d76(Z)}]
          })));`),M.write(`newResult[${d76(Z)}] = ${f}.value`)}M.write("payload.value = newResult;"),M.write("return payload;");let G=M.compile();return(Z,f)=>G(J,Z,f)},z,w=kO6,_=!gL6.jitless,O=_&&Sm1.value,H=q.catchall,j;A._zod.parse=(J,M)=>{j??(j=K.value);let D=J.value;if(!w(D))return J.issues.push({expected:"object",code:"invalid_type",input:D,inst:A}),J;let X=[];if(_&&O&&M?.async===!1&&M.jitless!==!0){if(!z)z=Y(q.shape);J=z(J,M)}else{J.value={};let f=j.shape;for(let v of j.keys){let V=f[v],N=V._zod.run({value:D[v],issues:[]},M),L=V._zod.optin==="optional"&&V._zod.optout==="optional";if(N instanceof Promise)X.push(N.then((S)=>L?aAA(S,J,v,D):G61(S,J,v)));else if(L)aAA(N,J,v,D);else G61(N,J,v)}}if(!H)return X.length?Promise.all(X).then(()=>J):J;let P=[],W=j.keySet,G=H._zod,Z=G.def.type;for(let f of Object.keys(D)){if(W.has(f))continue;if(Z==="never"){P.push(f);continue}let v=G.run({value:D[f],issues:[]},M);if(v instanceof Promise)X.push(v.then((V)=>G61(V,J,f)));else G61(v,J,f)}if(P.length)J.issues.push({code:"unrecognized_keys",keys:P,input:D,inst:A});if(!X.length)return J;return Promise.all(X).then(()=>{return J})}});v61=N8("$ZodUnion",(A,q)=>{v3.init(A,q),ez(A._zod,"optin",()=>q.options.some((K)=>K._zod.optin==="optional")?"optional":void 0),ez(A._zod,"optout",()=>q.options.some((K)=>K._zod.optout==="optional")?"optional":void 0),ez(A._zod,"values",()=>{if(q.options.every((K)=>K._zod.values))return new Set(q.options.flatMap((K)=>Array.from(K._zod.values)));return}),ez(A._zod,"pattern",()=>{if(q.options.every((K)=>K._zod.pattern)){let K=q.options.map((Y)=>Y._zod.pattern);return new RegExp(`^(${K.map((Y)=>dL6(Y.source)).join("|")})$`)}return}),A._zod.parse=(K,Y)=>{let z=!1,w=[];for(let _ of q.options){let $=_._zod.run({value:K.value,issues:[]},Y);if($ instanceof Promise)w.push($),z=!0;else{if($.issues.length===0)return $;w.push($)}}if(!z)return sAA(w,K,A,Y);return Promise.all(w).then((_)=>{return sAA(_,K,A,Y)})}}),Pg1=N8("$ZodDiscriminatedUnion",(A,q)=>{v61.init(A,q);let K=A._zod.parse;ez(A._zod,"propValues",()=>{let z={};for(let w of q.options){let _=w._zod.propValues;if(!_||Object.keys(_).length===0)throw Error(`Invalid discriminated union option at index "${q.options.indexOf(w)}"`);for(let[$,O]of Object.entries(_)){if(!z[$])z[$]=new Set;for(let H of O)z[$].add(H)}}return z});let Y=UL6(()=>{let z=q.options,w=new Map;for(let _ of z){let $=_._zod.propValues[q.discriminator];if(!$||$.size===0)throw Error(`Invalid discriminated union option at index "${q.options.indexOf(_)}"`);for(let O of $){if(w.has(O))throw Error(`Duplicate discriminator value "${String(O)}"`);w.set(O,_)}}return w});A._zod.parse=(z,w)=>{let _=z.value;if(!kO6(_))return z.issues.push({code:"invalid_type",expected:"object",input:_,inst:A}),z;let $=Y.value.get(_?.[q.discriminator]);if($)return $._zod.run(z,w);if(q.unionFallback)return K(z,w);return z.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:_,path:[q.discriminator],inst:A}),z}}),Wg1=N8("$ZodIntersection",(A,q)=>{v3.init(A,q),A._zod.parse=(K,Y)=>{let z=K.value,w=q.left._zod.run({value:z,issues:[]},Y),_=q.right._zod.run({value:z,issues:[]},Y);if(w instanceof Promise||_ instanceof Promise)return Promise.all([w,_]).then(([O,H])=>{return tAA(K,O,H)});return tAA(K,w,_)}});r76=N8("$ZodTuple",(A,q)=>{v3.init(A,q);let K=q.items,Y=K.length-[...K].reverse().findIndex((z)=>z._zod.optin!=="optional");A._zod.parse=(z,w)=>{let _=z.value;if(!Array.isArray(_))return z.issues.push({input:_,inst:A,expected:"tuple",code:"invalid_type"}),z;z.value=[];let $=[];if(!q.rest){let H=_.length>K.length,j=_.length<Y-1;if(H||j)return z.issues.push({input:_,inst:A,origin:"array",...H?{code:"too_big",maximum:K.length}:{code:"too_small",minimum:K.length}}),z}let O=-1;for(let H of K){if(O++,O>=_.length){if(O>=Y)continue}let j=H._zod.run({value:_[O],issues:[]},w);if(j instanceof Promise)$.push(j.then((J)=>Z61(J,z,O)));else Z61(j,z,O)}if(q.rest){let H=_.slice(K.length);for(let j of H){O++;let J=q.rest._zod.run({value:j,issues:[]},w);if(J instanceof Promise)$.push(J.then((M)=>Z61(M,z,O)));else Z61(J,z,O)}}if($.length)return Promise.all($).then(()=>z);return z}});Gg1=N8("$ZodRecord",(A,q)=>{v3.init(A,q),A._zod.parse=(K,Y)=>{let z=K.value;if(!EO6(z))return K.issues.push({expected:"record",code:"invalid_type",input:z,inst:A}),K;let w=[];if(q.keyType._zod.values){let _=q.keyType._zod.values;K.value={};for(let O of _)if(typeof O==="string"||typeof O==="number"||typeof O==="symbol"){let H=q.valueType._zod.run({value:z[O],issues:[]},Y);if(H instanceof Promise)w.push(H.then((j)=>{if(j.issues.length)K.issues.push(...Kv(O,j.issues));K.value[O]=j.value}));else{if(H.issues.length)K.issues.push(...Kv(O,H.issues));K.value[O]=H.value}}let $;for(let O in z)if(!_.has(O))$=$??[],$.push(O);if($&&$.length>0)K.issues.push({code:"unrecognized_keys",input:z,inst:A,keys:$})}else{K.value={};for(let _ of Reflect.ownKeys(z)){if(_==="__proto__")continue;let $=q.keyType._zod.run({value:_,issues:[]},Y);if($ instanceof Promise)throw Error("Async schemas not supported in object keys currently");if($.issues.length){K.issues.push({origin:"record",code:"invalid_key",issues:$.issues.map((H)=>dN(H,Y,eJ())),input:_,path:[_],inst:A}),K.value[$.value]=$.value;continue}let O=q.valueType._zod.run({value:z[_],issues:[]},Y);if(O instanceof Promise)w.push(O.then((H)=>{if(H.issues.length)K.issues.push(...Kv(_,H.issues));K.value[$.value]=H.value}));else{if(O.issues.length)K.issues.push(...Kv(_,O.issues));K.value[$.value]=O.value}}}if(w.length)return Promise.all(w).then(()=>K);return K}}),Zg1=N8("$ZodMap",(A,q)=>{v3.init(A,q),A._zod.parse=(K,Y)=>{let z=K.value;if(!(z instanceof Map))return K.issues.push({expected:"map",code:"invalid_type",input:z,inst:A}),K;let w=[];K.value=new Map;for(let[_,$]of z){let O=q.keyType._zod.run({value:_,issues:[]},Y),H=q.valueType._zod.run({value:$,issues:[]},Y);if(O instanceof Promise||H instanceof Promise)w.push(Promise.all([O,H]).then(([j,J])=>{eAA(j,J,K,_,z,A,Y)}));else eAA(O,H,K,_,z,A,Y)}if(w.length)return Promise.all(w).then(()=>K);return K}});fg1=N8("$ZodSet",(A,q)=>{v3.init(A,q),A._zod.parse=(K,Y)=>{let z=K.value;if(!(z instanceof Set))return K.issues.push({input:z,inst:A,expected:"set",code:"invalid_type"}),K;let w=[];K.value=new Set;for(let _ of z){let $=q.valueType._zod.run({value:_,issues:[]},Y);if($ instanceof Promise)w.push($.then((O)=>A7A(O,K)));else A7A($,K)}if(w.length)return Promise.all(w).then(()=>K);return K}});Tg1=N8("$ZodEnum",(A,q)=>{v3.init(A,q);let K=QL6(q.entries);A._zod.values=new Set(K),A._zod.pattern=new RegExp(`^(${K.filter((Y)=>cL6.has(typeof Y)).map((Y)=>typeof Y==="string"?cQ(Y):Y.toString()).join("|")})$`),A._zod.parse=(Y,z)=>{let w=Y.value;if(A._zod.values.has(w))return Y;return Y.issues.push({code:"invalid_value",values:K,input:w,inst:A}),Y}}),vg1=N8("$ZodLiteral",(A,q)=>{v3.init(A,q),A._zod.values=new Set(q.values),A._zod.pattern=new RegExp(`^(${q.values.map((K)=>typeof K==="string"?cQ(K):K?K.toString():String(K)).join("|")})$`),A._zod.parse=(K,Y)=>{let z=K.value;if(A._zod.values.has(z))return K;return K.issues.push({code:"invalid_value",values:q.values,input:z,inst:A}),K}}),Vg1=N8("$ZodFile",(A,q)=>{v3.init(A,q),A._zod.parse=(K,Y)=>{let z=K.value;if(z instanceof File)return K;return K.issues.push({expected:"file",code:"invalid_type",input:z,inst:A}),K}}),qy6=N8("$ZodTransform",(A,q)=>{v3.init(A,q),A._zod.parse=(K,Y)=>{let z=q.transform(K.value,K);if(Y.async)return(z instanceof Promise?z:Promise.resolve(z)).then((_)=>{return K.value=_,K});if(z instanceof Promise)throw new dQ;return K.value=z,K}}),Ng1=N8("$ZodOptional",(A,q)=>{v3.init(A,q),A._zod.optin="optional",A._zod.optout="optional",ez(A._zod,"values",()=>{return q.innerType._zod.values?new Set([...q.innerType._zod.values,void 0]):void 0}),ez(A._zod,"pattern",()=>{let K=q.innerType._zod.pattern;return K?new RegExp(`^(${dL6(K.source)})?$`):void 0}),A._zod.parse=(K,Y)=>{if(q.innerType._zod.optin==="optional")return q.innerType._zod.run(K,Y);if(K.value===void 0)return K;return q.innerType._zod.run(K,Y)}}),kg1=N8("$ZodNullable",(A,q)=>{v3.init(A,q),ez(A._zod,"optin",()=>q.innerType._zod.optin),ez(A._zod,"optout",()=>q.innerType._zod.optout),ez(A._zod,"pattern",()=>{let K=q.innerType._zod.pattern;return K?new RegExp(`^(${dL6(K.source)}|null)$`):void 0}),ez(A._zod,"values",()=>{return q.innerType._zod.values?new Set([...q.innerType._zod.values,null]):void 0}),A._zod.parse=(K,Y)=>{if(K.value===null)return K;return q.innerType._zod.run(K,Y)}}),Eg1=N8("$ZodDefault",(A,q)=>{v3.init(A,q),A._zod.optin="optional",ez(A._zod,"values",()=>q.innerType._zod.values),A._zod.parse=(K,Y)=>{if(K.value===void 0)return K.value=q.defaultValue,K;let z=q.innerType._zod.run(K,Y);if(z instanceof Promise)return z.then((w)=>q7A(w,q));return q7A(z,q)}});Lg1=N8("$ZodPrefault",(A,q)=>{v3.init(A,q),A._zod.optin="optional",ez(A._zod,"values",()=>q.innerType._zod.values),A._zod.parse=(K,Y)=>{if(K.value===void 0)K.value=q.defaultValue;return q.innerType._zod.run(K,Y)}}),yg1=N8("$ZodNonOptional",(A,q)=>{v3.init(A,q),ez(A._zod,"values",()=>{let K=q.innerType._zod.values;return K?new Set([...K].filter((Y)=>Y!==void 0)):void 0}),A._zod.parse=(K,Y)=>{let z=q.innerType._zod.run(K,Y);if(z instanceof Promise)return z.then((w)=>K7A(w,A));return K7A(z,A)}});Rg1=N8("$ZodSuccess",(A,q)=>{v3.init(A,q),A._zod.parse=(K,Y)=>{let z=q.innerType._zod.run(K,Y);if(z instanceof Promise)return z.then((w)=>{return K.value=w.issues.length===0,K});return K.value=z.issues.length===0,K}}),Sg1=N8("$ZodCatch",(A,q)=>{v3.init(A,q),A._zod.optin="optional",ez(A._zod,"optout",()=>q.innerType._zod.optout),ez(A._zod,"values",()=>q.innerType._zod.values),A._zod.parse=(K,Y)=>{let z=q.innerType._zod.run(K,Y);if(z instanceof Promise)return z.then((w)=>{if(K.value=w.value,w.issues.length)K.value=q.catchValue({...K,error:{issues:w.issues.map((_)=>dN(_,Y,eJ()))},input:K.value}),K.issues=[];return K});if(K.value=z.value,z.issues.length)K.value=q.catchValue({...K,error:{issues:z.issues.map((w)=>dN(w,Y,eJ()))},input:K.value}),K.issues=[];return K}}),hg1=N8("$ZodNaN",(A,q)=>{v3.init(A,q),A._zod.parse=(K,Y)=>{if(typeof K.value!=="number"||!Number.isNaN(K.value))return K.issues.push({input:K.value,inst:A,expected:"nan",code:"invalid_type"}),K;return K}}),Ky6=N8("$ZodPipe",(A,q)=>{v3.init(A,q),ez(A._zod,"values",()=>q.in._zod.values),ez(A._zod,"optin",()=>q.in._zod.optin),ez(A._zod,"optout",()=>q.out._zod.optout),A._zod.parse=(K,Y)=>{let z=q.in._zod.run(K,Y);if(z instanceof Promise)return z.then((w)=>Y7A(w,q,Y));return Y7A(z,q,Y)}});Cg1=N8("$ZodReadonly",(A,q)=>{v3.init(A,q),ez(A._zod,"propValues",()=>q.innerType._zod.propValues),ez(A._zod,"values",()=>q.innerType._zod.values),ez(A._zod,"optin",()=>q.innerType._zod.optin),ez(A._zod,"optout",()=>q.innerType._zod.optout),A._zod.parse=(K,Y)=>{let z=q.innerType._zod.run(K,Y);if(z instanceof Promise)return z.then(z7A);return z7A(z)}});Ig1=N8("$ZodTemplateLiteral",(A,q)=>{v3.init(A,q);let K=[];for(let Y of q.parts)if(Y instanceof v3){if(!Y._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...Y._zod.traits].shift()}`);let z=Y._zod.pattern instanceof RegExp?Y._zod.pattern.source:Y._zod.pattern;if(!z)throw Error(`Invalid template literal part: ${Y._zod.traits}`);let w=z.startsWith("^")?1:0,_=z.endsWith("$")?z.length-1:z.length;K.push(z.slice(w,_))}else if(Y===null||hm1.has(typeof Y))K.push(cQ(`${Y}`));else throw Error(`Invalid template literal part: ${Y}`);A._zod.pattern=new RegExp(`^${K.join("")}$`),A._zod.parse=(Y,z)=>{if(typeof Y.value!=="string")return Y.issues.push({input:Y.value,inst:A,expected:"template_literal",code:"invalid_type"}),Y;if(A._zod.pattern.lastIndex=0,!A._zod.pattern.test(Y.value))return Y.issues.push({input:Y.value,inst:A,code:"invalid_format",format:"template_literal",pattern:A._zod.pattern.source}),Y;return Y}}),xg1=N8("$ZodPromise",(A,q)=>{v3.init(A,q),A._zod.parse=(K,Y)=>{return Promise.resolve(K.value).then((z)=>q.innerType._zod.run({value:z,issues:[]},Y))}}),bg1=N8("$ZodLazy",(A,q)=>{v3.init(A,q),ez(A._zod,"innerType",()=>q.getter()),ez(A._zod,"pattern",()=>A._zod.innerType._zod.pattern),ez(A._zod,"propValues",()=>A._zod.innerType._zod.propValues),ez(A._zod,"optin",()=>A._zod.innerType._zod.optin),ez(A._zod,"optout",()=>A._zod.innerType._zod.optout),A._zod.parse=(K,Y)=>{return A._zod.innerType._zod.run(K,Y)}}),ug1=N8("$ZodCustom",(A,q)=>{MH.init(A,q),v3.init(A,q),A._zod.parse=(K,Y)=>{return K},A._zod.check=(K)=>{let Y=K.value,z=q.fn(Y);if(z instanceof Promise)return z.then((w)=>w7A(w,K,Y,A));w7A(z,K,Y,A);return}})});function mg1(){return{localeError:utq()}}var utq=()=>{let A={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"number";case"object":{if(Array.isArray(z))return"array";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return(z)=>{switch(z.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${z.expected}، ولكن تم إدخال ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`مدخلات غير مقبولة: يفترض إدخال ${a7(z.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return` أكبر من اللازم: يفترض أن تكون ${z.origin??"القيمة"} ${w} ${z.maximum.toString()} ${_.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${z.origin??"القيمة"} ${w} ${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`أصغر من اللازم: يفترض لـ ${z.origin} أن يكون ${w} ${z.minimum.toString()} ${_.unit}`;return`أصغر من اللازم: يفترض لـ ${z.origin} أن يكون ${w} ${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`نَص غير مقبول: يجب أن يبدأ بـ "${z.prefix}"`;if(w.format==="ends_with")return`نَص غير مقبول: يجب أن ينتهي بـ "${w.suffix}"`;if(w.format==="includes")return`نَص غير مقبول: يجب أن يتضمَّن "${w.includes}"`;if(w.format==="regex")return`نَص غير مقبول: يجب أن يطابق النمط ${w.pattern}`;return`${Y[w.format]??z.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${z.divisor}`;case"unrecognized_keys":return`معرف${z.keys.length>1?"ات":""} غريب${z.keys.length>1?"ة":""}: ${PA(z.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${z.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${z.origin}`;default:return"مدخل غير مقبول"}}};var H7A=E(()=>{K3()});function Bg1(){return{localeError:mtq()}}var mtq=()=>{let A={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"number";case"object":{if(Array.isArray(z))return"array";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return(z)=>{switch(z.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${z.expected}, daxil olan ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Yanlış dəyər: gözlənilən ${a7(z.values[0])}`;return`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`Çox böyük: gözlənilən ${z.origin??"dəyər"} ${w}${z.maximum.toString()} ${_.unit??"element"}`;return`Çox böyük: gözlənilən ${z.origin??"dəyər"} ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`Çox kiçik: gözlənilən ${z.origin} ${w}${z.minimum.toString()} ${_.unit}`;return`Çox kiçik: gözlənilən ${z.origin} ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Yanlış mətn: "${w.prefix}" ilə başlamalıdır`;if(w.format==="ends_with")return`Yanlış mətn: "${w.suffix}" ilə bitməlidir`;if(w.format==="includes")return`Yanlış mətn: "${w.includes}" daxil olmalıdır`;if(w.format==="regex")return`Yanlış mətn: ${w.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${Y[w.format]??z.format}`}case"not_multiple_of":return`Yanlış ədəd: ${z.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${z.keys.length>1?"lar":""}: ${PA(z.keys,", ")}`;case"invalid_key":return`${z.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${z.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};var j7A=E(()=>{K3()});function J7A(A,q,K,Y){let z=Math.abs(A),w=z%10,_=z%100;if(_>=11&&_<=19)return Y;if(w===1)return q;if(w>=2&&w<=4)return K;return Y}function gg1(){return{localeError:Btq()}}var Btq=()=>{let A={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"лік";case"object":{if(Array.isArray(z))return"масіў";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return(z)=>{switch(z.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${z.expected}, атрымана ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Няправільны ўвод: чакалася ${a7(z.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_){let $=Number(z.maximum),O=J7A($,_.unit.one,_.unit.few,_.unit.many);return`Занадта вялікі: чакалася, што ${z.origin??"значэнне"} павінна ${_.verb} ${w}${z.maximum.toString()} ${O}`}return`Занадта вялікі: чакалася, што ${z.origin??"значэнне"} павінна быць ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_){let $=Number(z.minimum),O=J7A($,_.unit.one,_.unit.few,_.unit.many);return`Занадта малы: чакалася, што ${z.origin} павінна ${_.verb} ${w}${z.minimum.toString()} ${O}`}return`Занадта малы: чакалася, што ${z.origin} павінна быць ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Няправільны радок: павінен пачынацца з "${w.prefix}"`;if(w.format==="ends_with")return`Няправільны радок: павінен заканчвацца на "${w.suffix}"`;if(w.format==="includes")return`Няправільны радок: павінен змяшчаць "${w.includes}"`;if(w.format==="regex")return`Няправільны радок: павінен адпавядаць шаблону ${w.pattern}`;return`Няправільны ${Y[w.format]??z.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${z.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${z.keys.length>1?"ключы":"ключ"}: ${PA(z.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${z.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${z.origin}`;default:return"Няправільны ўвод"}}};var M7A=E(()=>{K3()});function pg1(){return{localeError:gtq()}}var gtq=()=>{let A={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"number";case"object":{if(Array.isArray(z))return"array";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return(z)=>{switch(z.code){case"invalid_type":return`Tipus invàlid: s'esperava ${z.expected}, s'ha rebut ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Valor invàlid: s'esperava ${a7(z.values[0])}`;return`Opció invàlida: s'esperava una de ${PA(z.values," o ")}`;case"too_big":{let w=z.inclusive?"com a màxim":"menys de",_=q(z.origin);if(_)return`Massa gran: s'esperava que ${z.origin??"el valor"} contingués ${w} ${z.maximum.toString()} ${_.unit??"elements"}`;return`Massa gran: s'esperava que ${z.origin??"el valor"} fos ${w} ${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?"com a mínim":"més de",_=q(z.origin);if(_)return`Massa petit: s'esperava que ${z.origin} contingués ${w} ${z.minimum.toString()} ${_.unit}`;return`Massa petit: s'esperava que ${z.origin} fos ${w} ${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Format invàlid: ha de començar amb "${w.prefix}"`;if(w.format==="ends_with")return`Format invàlid: ha d'acabar amb "${w.suffix}"`;if(w.format==="includes")return`Format invàlid: ha d'incloure "${w.includes}"`;if(w.format==="regex")return`Format invàlid: ha de coincidir amb el patró ${w.pattern}`;return`Format invàlid per a ${Y[w.format]??z.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${z.divisor}`;case"unrecognized_keys":return`Clau${z.keys.length>1?"s":""} no reconeguda${z.keys.length>1?"s":""}: ${PA(z.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${z.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${z.origin}`;default:return"Entrada invàlida"}}};var D7A=E(()=>{K3()});function Fg1(){return{localeError:ptq()}}var ptq=()=>{let A={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(z))return"pole";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return(z)=>{switch(z.code){case"invalid_type":return`Neplatný vstup: očekáváno ${z.expected}, obdrženo ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Neplatný vstup: očekáváno ${a7(z.values[0])}`;return`Neplatná možnost: očekávána jedna z hodnot ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`Hodnota je příliš velká: ${z.origin??"hodnota"} musí mít ${w}${z.maximum.toString()} ${_.unit??"prvků"}`;return`Hodnota je příliš velká: ${z.origin??"hodnota"} musí být ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`Hodnota je příliš malá: ${z.origin??"hodnota"} musí mít ${w}${z.minimum.toString()} ${_.unit??"prvků"}`;return`Hodnota je příliš malá: ${z.origin??"hodnota"} musí být ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Neplatný řetězec: musí začínat na "${w.prefix}"`;if(w.format==="ends_with")return`Neplatný řetězec: musí končit na "${w.suffix}"`;if(w.format==="includes")return`Neplatný řetězec: musí obsahovat "${w.includes}"`;if(w.format==="regex")return`Neplatný řetězec: musí odpovídat vzoru ${w.pattern}`;return`Neplatný formát ${Y[w.format]??z.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${z.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${PA(z.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${z.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${z.origin}`;default:return"Neplatný vstup"}}};var X7A=E(()=>{K3()});function Qg1(){return{localeError:Ftq()}}var Ftq=()=>{let A={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"Zahl";case"object":{if(Array.isArray(z))return"Array";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return(z)=>{switch(z.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${z.expected}, erhalten ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Ungültige Eingabe: erwartet ${a7(z.values[0])}`;return`Ungültige Option: erwartet eine von ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`Zu groß: erwartet, dass ${z.origin??"Wert"} ${w}${z.maximum.toString()} ${_.unit??"Elemente"} hat`;return`Zu groß: erwartet, dass ${z.origin??"Wert"} ${w}${z.maximum.toString()} ist`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`Zu klein: erwartet, dass ${z.origin} ${w}${z.minimum.toString()} ${_.unit} hat`;return`Zu klein: erwartet, dass ${z.origin} ${w}${z.minimum.toString()} ist`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Ungültiger String: muss mit "${w.prefix}" beginnen`;if(w.format==="ends_with")return`Ungültiger String: muss mit "${w.suffix}" enden`;if(w.format==="includes")return`Ungültiger String: muss "${w.includes}" enthalten`;if(w.format==="regex")return`Ungültiger String: muss dem Muster ${w.pattern} entsprechen`;return`Ungültig: ${Y[w.format]??z.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${z.divisor} sein`;case"unrecognized_keys":return`${z.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${PA(z.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${z.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${z.origin}`;default:return"Ungültige Eingabe"}}};var P7A=E(()=>{K3()});function zy6(){return{localeError:Utq()}}var Qtq=(A)=>{let q=typeof A;switch(q){case"number":return Number.isNaN(A)?"NaN":"number";case"object":{if(Array.isArray(A))return"array";if(A===null)return"null";if(Object.getPrototypeOf(A)!==Object.prototype&&A.constructor)return A.constructor.name}}return q},Utq=()=>{let A={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function q(Y){return A[Y]??null}let K={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return(Y)=>{switch(Y.code){case"invalid_type":return`Invalid input: expected ${Y.expected}, received ${Qtq(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Invalid input: expected ${a7(Y.values[0])}`;return`Invalid option: expected one of ${PA(Y.values,"|")}`;case"too_big":{let z=Y.inclusive?"<=":"<",w=q(Y.origin);if(w)return`Too big: expected ${Y.origin??"value"} to have ${z}${Y.maximum.toString()} ${w.unit??"elements"}`;return`Too big: expected ${Y.origin??"value"} to be ${z}${Y.maximum.toString()}`}case"too_small":{let z=Y.inclusive?">=":">",w=q(Y.origin);if(w)return`Too small: expected ${Y.origin} to have ${z}${Y.minimum.toString()} ${w.unit}`;return`Too small: expected ${Y.origin} to be ${z}${Y.minimum.toString()}`}case"invalid_format":{let z=Y;if(z.format==="starts_with")return`Invalid string: must start with "${z.prefix}"`;if(z.format==="ends_with")return`Invalid string: must end with "${z.suffix}"`;if(z.format==="includes")return`Invalid string: must include "${z.includes}"`;if(z.format==="regex")return`Invalid string: must match pattern ${z.pattern}`;return`Invalid ${K[z.format]??Y.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${Y.divisor}`;case"unrecognized_keys":return`Unrecognized key${Y.keys.length>1?"s":""}: ${PA(Y.keys,", ")}`;case"invalid_key":return`Invalid key in ${Y.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${Y.origin}`;default:return"Invalid input"}}};var Ug1=E(()=>{K3()});function dg1(){return{localeError:ctq()}}var dtq=(A)=>{let q=typeof A;switch(q){case"number":return Number.isNaN(A)?"NaN":"nombro";case"object":{if(Array.isArray(A))return"tabelo";if(A===null)return"senvalora";if(Object.getPrototypeOf(A)!==Object.prototype&&A.constructor)return A.constructor.name}}return q},ctq=()=>{let A={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function q(Y){return A[Y]??null}let K={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return(Y)=>{switch(Y.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${Y.expected}, riceviĝis ${dtq(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Nevalida enigo: atendiĝis ${a7(Y.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${PA(Y.values,"|")}`;case"too_big":{let z=Y.inclusive?"<=":"<",w=q(Y.origin);if(w)return`Tro granda: atendiĝis ke ${Y.origin??"valoro"} havu ${z}${Y.maximum.toString()} ${w.unit??"elementojn"}`;return`Tro granda: atendiĝis ke ${Y.origin??"valoro"} havu ${z}${Y.maximum.toString()}`}case"too_small":{let z=Y.inclusive?">=":">",w=q(Y.origin);if(w)return`Tro malgranda: atendiĝis ke ${Y.origin} havu ${z}${Y.minimum.toString()} ${w.unit}`;return`Tro malgranda: atendiĝis ke ${Y.origin} estu ${z}${Y.minimum.toString()}`}case"invalid_format":{let z=Y;if(z.format==="starts_with")return`Nevalida karaktraro: devas komenciĝi per "${z.prefix}"`;if(z.format==="ends_with")return`Nevalida karaktraro: devas finiĝi per "${z.suffix}"`;if(z.format==="includes")return`Nevalida karaktraro: devas inkluzivi "${z.includes}"`;if(z.format==="regex")return`Nevalida karaktraro: devas kongrui kun la modelo ${z.pattern}`;return`Nevalida ${K[z.format]??Y.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${Y.divisor}`;case"unrecognized_keys":return`Nekonata${Y.keys.length>1?"j":""} ŝlosilo${Y.keys.length>1?"j":""}: ${PA(Y.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${Y.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${Y.origin}`;default:return"Nevalida enigo"}}};var W7A=E(()=>{K3()});function cg1(){return{localeError:ltq()}}var ltq=()=>{let A={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"número";case"object":{if(Array.isArray(z))return"arreglo";if(z===null)return"nulo";if(Object.getPrototypeOf(z)!==Object.prototype)return z.constructor.name}}return w},Y={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return(z)=>{switch(z.code){case"invalid_type":return`Entrada inválida: se esperaba ${z.expected}, recibido ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Entrada inválida: se esperaba ${a7(z.values[0])}`;return`Opción inválida: se esperaba una de ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`Demasiado grande: se esperaba que ${z.origin??"valor"} tuviera ${w}${z.maximum.toString()} ${_.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${z.origin??"valor"} fuera ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`Demasiado pequeño: se esperaba que ${z.origin} tuviera ${w}${z.minimum.toString()} ${_.unit}`;return`Demasiado pequeño: se esperaba que ${z.origin} fuera ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Cadena inválida: debe comenzar con "${w.prefix}"`;if(w.format==="ends_with")return`Cadena inválida: debe terminar en "${w.suffix}"`;if(w.format==="includes")return`Cadena inválida: debe incluir "${w.includes}"`;if(w.format==="regex")return`Cadena inválida: debe coincidir con el patrón ${w.pattern}`;return`Inválido ${Y[w.format]??z.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${z.divisor}`;case"unrecognized_keys":return`Llave${z.keys.length>1?"s":""} desconocida${z.keys.length>1?"s":""}: ${PA(z.keys,", ")}`;case"invalid_key":return`Llave inválida en ${z.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${z.origin}`;default:return"Entrada inválida"}}};var G7A=E(()=>{K3()});function lg1(){return{localeError:itq()}}var itq=()=>{let A={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"عدد";case"object":{if(Array.isArray(z))return"آرایه";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return(z)=>{switch(z.code){case"invalid_type":return`ورودی نامعتبر: می‌بایست ${z.expected} می‌بود، ${K(z.input)} دریافت شد`;case"invalid_value":if(z.values.length===1)return`ورودی نامعتبر: می‌بایست ${a7(z.values[0])} می‌بود`;return`گزینه نامعتبر: می‌بایست یکی از ${PA(z.values,"|")} می‌بود`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`خیلی بزرگ: ${z.origin??"مقدار"} باید ${w}${z.maximum.toString()} ${_.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${z.origin??"مقدار"} باید ${w}${z.maximum.toString()} باشد`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`خیلی کوچک: ${z.origin} باید ${w}${z.minimum.toString()} ${_.unit} باشد`;return`خیلی کوچک: ${z.origin} باید ${w}${z.minimum.toString()} باشد`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`رشته نامعتبر: باید با "${w.prefix}" شروع شود`;if(w.format==="ends_with")return`رشته نامعتبر: باید با "${w.suffix}" تمام شود`;if(w.format==="includes")return`رشته نامعتبر: باید شامل "${w.includes}" باشد`;if(w.format==="regex")return`رشته نامعتبر: باید با الگوی ${w.pattern} مطابقت داشته باشد`;return`${Y[w.format]??z.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${z.divisor} باشد`;case"unrecognized_keys":return`کلید${z.keys.length>1?"های":""} ناشناس: ${PA(z.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${z.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${z.origin}`;default:return"ورودی نامعتبر"}}};var Z7A=E(()=>{K3()});function ig1(){return{localeError:ntq()}}var ntq=()=>{let A={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"number";case"object":{if(Array.isArray(z))return"array";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return(z)=>{switch(z.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${z.expected}, oli ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Virheellinen syöte: täytyy olla ${a7(z.values[0])}`;return`Virheellinen valinta: täytyy olla yksi seuraavista: ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`Liian suuri: ${_.subject} täytyy olla ${w}${z.maximum.toString()} ${_.unit}`.trim();return`Liian suuri: arvon täytyy olla ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`Liian pieni: ${_.subject} täytyy olla ${w}${z.minimum.toString()} ${_.unit}`.trim();return`Liian pieni: arvon täytyy olla ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Virheellinen syöte: täytyy alkaa "${w.prefix}"`;if(w.format==="ends_with")return`Virheellinen syöte: täytyy loppua "${w.suffix}"`;if(w.format==="includes")return`Virheellinen syöte: täytyy sisältää "${w.includes}"`;if(w.format==="regex")return`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${w.pattern}`;return`Virheellinen ${Y[w.format]??z.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${z.divisor} monikerta`;case"unrecognized_keys":return`${z.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${PA(z.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};var f7A=E(()=>{K3()});function ng1(){return{localeError:rtq()}}var rtq=()=>{let A={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"nombre";case"object":{if(Array.isArray(z))return"tableau";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return(z)=>{switch(z.code){case"invalid_type":return`Entrée invalide : ${z.expected} attendu, ${K(z.input)} reçu`;case"invalid_value":if(z.values.length===1)return`Entrée invalide : ${a7(z.values[0])} attendu`;return`Option invalide : une valeur parmi ${PA(z.values,"|")} attendue`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`Trop grand : ${z.origin??"valeur"} doit ${_.verb} ${w}${z.maximum.toString()} ${_.unit??"élément(s)"}`;return`Trop grand : ${z.origin??"valeur"} doit être ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`Trop petit : ${z.origin} doit ${_.verb} ${w}${z.minimum.toString()} ${_.unit}`;return`Trop petit : ${z.origin} doit être ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Chaîne invalide : doit commencer par "${w.prefix}"`;if(w.format==="ends_with")return`Chaîne invalide : doit se terminer par "${w.suffix}"`;if(w.format==="includes")return`Chaîne invalide : doit inclure "${w.includes}"`;if(w.format==="regex")return`Chaîne invalide : doit correspondre au modèle ${w.pattern}`;return`${Y[w.format]??z.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${z.divisor}`;case"unrecognized_keys":return`Clé${z.keys.length>1?"s":""} non reconnue${z.keys.length>1?"s":""} : ${PA(z.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${z.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${z.origin}`;default:return"Entrée invalide"}}};var T7A=E(()=>{K3()});function rg1(){return{localeError:otq()}}var otq=()=>{let A={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"number";case"object":{if(Array.isArray(z))return"array";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return(z)=>{switch(z.code){case"invalid_type":return`Entrée invalide : attendu ${z.expected}, reçu ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Entrée invalide : attendu ${a7(z.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"≤":"<",_=q(z.origin);if(_)return`Trop grand : attendu que ${z.origin??"la valeur"} ait ${w}${z.maximum.toString()} ${_.unit}`;return`Trop grand : attendu que ${z.origin??"la valeur"} soit ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?"≥":">",_=q(z.origin);if(_)return`Trop petit : attendu que ${z.origin} ait ${w}${z.minimum.toString()} ${_.unit}`;return`Trop petit : attendu que ${z.origin} soit ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Chaîne invalide : doit commencer par "${w.prefix}"`;if(w.format==="ends_with")return`Chaîne invalide : doit se terminer par "${w.suffix}"`;if(w.format==="includes")return`Chaîne invalide : doit inclure "${w.includes}"`;if(w.format==="regex")return`Chaîne invalide : doit correspondre au motif ${w.pattern}`;return`${Y[w.format]??z.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${z.divisor}`;case"unrecognized_keys":return`Clé${z.keys.length>1?"s":""} non reconnue${z.keys.length>1?"s":""} : ${PA(z.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${z.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${z.origin}`;default:return"Entrée invalide"}}};var v7A=E(()=>{K3()});function og1(){return{localeError:atq()}}var atq=()=>{let A={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"number";case"object":{if(Array.isArray(z))return"array";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"קלט",email:"כתובת אימייל",url:"כתובת רשת",emoji:"אימוג'י",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"תאריך וזמן ISO",date:"תאריך ISO",time:"זמן ISO",duration:"משך זמן ISO",ipv4:"כתובת IPv4",ipv6:"כתובת IPv6",cidrv4:"טווח IPv4",cidrv6:"טווח IPv6",base64:"מחרוזת בבסיס 64",base64url:"מחרוזת בבסיס 64 לכתובות רשת",json_string:"מחרוזת JSON",e164:"מספר E.164",jwt:"JWT",template_literal:"קלט"};return(z)=>{switch(z.code){case"invalid_type":return`קלט לא תקין: צריך ${z.expected}, התקבל ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`קלט לא תקין: צריך ${a7(z.values[0])}`;return`קלט לא תקין: צריך אחת מהאפשרויות  ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`גדול מדי: ${z.origin??"value"} צריך להיות ${w}${z.maximum.toString()} ${_.unit??"elements"}`;return`גדול מדי: ${z.origin??"value"} צריך להיות ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`קטן מדי: ${z.origin} צריך להיות ${w}${z.minimum.toString()} ${_.unit}`;return`קטן מדי: ${z.origin} צריך להיות ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`מחרוזת לא תקינה: חייבת להתחיל ב"${w.prefix}"`;if(w.format==="ends_with")return`מחרוזת לא תקינה: חייבת להסתיים ב "${w.suffix}"`;if(w.format==="includes")return`מחרוזת לא תקינה: חייבת לכלול "${w.includes}"`;if(w.format==="regex")return`מחרוזת לא תקינה: חייבת להתאים לתבנית ${w.pattern}`;return`${Y[w.format]??z.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${z.divisor}`;case"unrecognized_keys":return`מפתח${z.keys.length>1?"ות":""} לא מזוה${z.keys.length>1?"ים":"ה"}: ${PA(z.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${z.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${z.origin}`;default:return"קלט לא תקין"}}};var V7A=E(()=>{K3()});function ag1(){return{localeError:stq()}}var stq=()=>{let A={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"szám";case"object":{if(Array.isArray(z))return"tömb";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return(z)=>{switch(z.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${z.expected}, a kapott érték ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Érvénytelen bemenet: a várt érték ${a7(z.values[0])}`;return`Érvénytelen opció: valamelyik érték várt ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`Túl nagy: ${z.origin??"érték"} mérete túl nagy ${w}${z.maximum.toString()} ${_.unit??"elem"}`;return`Túl nagy: a bemeneti érték ${z.origin??"érték"} túl nagy: ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`Túl kicsi: a bemeneti érték ${z.origin} mérete túl kicsi ${w}${z.minimum.toString()} ${_.unit}`;return`Túl kicsi: a bemeneti érték ${z.origin} túl kicsi ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Érvénytelen string: "${w.prefix}" értékkel kell kezdődnie`;if(w.format==="ends_with")return`Érvénytelen string: "${w.suffix}" értékkel kell végződnie`;if(w.format==="includes")return`Érvénytelen string: "${w.includes}" értéket kell tartalmaznia`;if(w.format==="regex")return`Érvénytelen string: ${w.pattern} mintának kell megfelelnie`;return`Érvénytelen ${Y[w.format]??z.format}`}case"not_multiple_of":return`Érvénytelen szám: ${z.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${z.keys.length>1?"s":""}: ${PA(z.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${z.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${z.origin}`;default:return"Érvénytelen bemenet"}}};var N7A=E(()=>{K3()});function sg1(){return{localeError:ttq()}}var ttq=()=>{let A={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"number";case"object":{if(Array.isArray(z))return"array";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return(z)=>{switch(z.code){case"invalid_type":return`Input tidak valid: diharapkan ${z.expected}, diterima ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Input tidak valid: diharapkan ${a7(z.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`Terlalu besar: diharapkan ${z.origin??"value"} memiliki ${w}${z.maximum.toString()} ${_.unit??"elemen"}`;return`Terlalu besar: diharapkan ${z.origin??"value"} menjadi ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`Terlalu kecil: diharapkan ${z.origin} memiliki ${w}${z.minimum.toString()} ${_.unit}`;return`Terlalu kecil: diharapkan ${z.origin} menjadi ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`String tidak valid: harus dimulai dengan "${w.prefix}"`;if(w.format==="ends_with")return`String tidak valid: harus berakhir dengan "${w.suffix}"`;if(w.format==="includes")return`String tidak valid: harus menyertakan "${w.includes}"`;if(w.format==="regex")return`String tidak valid: harus sesuai pola ${w.pattern}`;return`${Y[w.format]??z.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${z.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${z.keys.length>1?"s":""}: ${PA(z.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${z.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${z.origin}`;default:return"Input tidak valid"}}};var k7A=E(()=>{K3()});function tg1(){return{localeError:etq()}}var etq=()=>{let A={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"numero";case"object":{if(Array.isArray(z))return"vettore";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return(z)=>{switch(z.code){case"invalid_type":return`Input non valido: atteso ${z.expected}, ricevuto ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Input non valido: atteso ${a7(z.values[0])}`;return`Opzione non valida: atteso uno tra ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`Troppo grande: ${z.origin??"valore"} deve avere ${w}${z.maximum.toString()} ${_.unit??"elementi"}`;return`Troppo grande: ${z.origin??"valore"} deve essere ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`Troppo piccolo: ${z.origin} deve avere ${w}${z.minimum.toString()} ${_.unit}`;return`Troppo piccolo: ${z.origin} deve essere ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Stringa non valida: deve iniziare con "${w.prefix}"`;if(w.format==="ends_with")return`Stringa non valida: deve terminare con "${w.suffix}"`;if(w.format==="includes")return`Stringa non valida: deve includere "${w.includes}"`;if(w.format==="regex")return`Stringa non valida: deve corrispondere al pattern ${w.pattern}`;return`Invalid ${Y[w.format]??z.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${z.divisor}`;case"unrecognized_keys":return`Chiav${z.keys.length>1?"i":"e"} non riconosciut${z.keys.length>1?"e":"a"}: ${PA(z.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${z.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${z.origin}`;default:return"Input non valido"}}};var E7A=E(()=>{K3()});function eg1(){return{localeError:Aeq()}}var Aeq=()=>{let A={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"数値";case"object":{if(Array.isArray(z))return"配列";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return(z)=>{switch(z.code){case"invalid_type":return`無効な入力: ${z.expected}が期待されましたが、${K(z.input)}が入力されました`;case"invalid_value":if(z.values.length===1)return`無効な入力: ${a7(z.values[0])}が期待されました`;return`無効な選択: ${PA(z.values,"、")}のいずれかである必要があります`;case"too_big":{let w=z.inclusive?"以下である":"より小さい",_=q(z.origin);if(_)return`大きすぎる値: ${z.origin??"値"}は${z.maximum.toString()}${_.unit??"要素"}${w}必要があります`;return`大きすぎる値: ${z.origin??"値"}は${z.maximum.toString()}${w}必要があります`}case"too_small":{let w=z.inclusive?"以上である":"より大きい",_=q(z.origin);if(_)return`小さすぎる値: ${z.origin}は${z.minimum.toString()}${_.unit}${w}必要があります`;return`小さすぎる値: ${z.origin}は${z.minimum.toString()}${w}必要があります`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`無効な文字列: "${w.prefix}"で始まる必要があります`;if(w.format==="ends_with")return`無効な文字列: "${w.suffix}"で終わる必要があります`;if(w.format==="includes")return`無効な文字列: "${w.includes}"を含む必要があります`;if(w.format==="regex")return`無効な文字列: パターン${w.pattern}に一致する必要があります`;return`無効な${Y[w.format]??z.format}`}case"not_multiple_of":return`無効な数値: ${z.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${z.keys.length>1?"群":""}: ${PA(z.keys,"、")}`;case"invalid_key":return`${z.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${z.origin}内の無効な値`;default:return"無効な入力"}}};var L7A=E(()=>{K3()});function Ap1(){return{localeError:qeq()}}var qeq=()=>{let A={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(z))return"អារេ (Array)";if(z===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return(z)=>{switch(z.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${z.expected} ប៉ុន្តែទទួលបាន ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${a7(z.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`ធំពេក៖ ត្រូវការ ${z.origin??"តម្លៃ"} ${w} ${z.maximum.toString()} ${_.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${z.origin??"តម្លៃ"} ${w} ${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`តូចពេក៖ ត្រូវការ ${z.origin} ${w} ${z.minimum.toString()} ${_.unit}`;return`តូចពេក៖ ត្រូវការ ${z.origin} ${w} ${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${w.prefix}"`;if(w.format==="ends_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${w.suffix}"`;if(w.format==="includes")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${w.includes}"`;if(w.format==="regex")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${w.pattern}`;return`មិនត្រឹមត្រូវ៖ ${Y[w.format]??z.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${z.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${PA(z.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${z.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${z.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};var y7A=E(()=>{K3()});function qp1(){return{localeError:Keq()}}var Keq=()=>{let A={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"number";case"object":{if(Array.isArray(z))return"array";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return(z)=>{switch(z.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${z.expected}, 받은 타입은 ${K(z.input)}입니다`;case"invalid_value":if(z.values.length===1)return`잘못된 입력: 값은 ${a7(z.values[0])} 이어야 합니다`;return`잘못된 옵션: ${PA(z.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let w=z.inclusive?"이하":"미만",_=w==="미만"?"이어야 합니다":"여야 합니다",$=q(z.origin),O=$?.unit??"요소";if($)return`${z.origin??"값"}이 너무 큽니다: ${z.maximum.toString()}${O} ${w}${_}`;return`${z.origin??"값"}이 너무 큽니다: ${z.maximum.toString()} ${w}${_}`}case"too_small":{let w=z.inclusive?"이상":"초과",_=w==="이상"?"이어야 합니다":"여야 합니다",$=q(z.origin),O=$?.unit??"요소";if($)return`${z.origin??"값"}이 너무 작습니다: ${z.minimum.toString()}${O} ${w}${_}`;return`${z.origin??"값"}이 너무 작습니다: ${z.minimum.toString()} ${w}${_}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`잘못된 문자열: "${w.prefix}"(으)로 시작해야 합니다`;if(w.format==="ends_with")return`잘못된 문자열: "${w.suffix}"(으)로 끝나야 합니다`;if(w.format==="includes")return`잘못된 문자열: "${w.includes}"을(를) 포함해야 합니다`;if(w.format==="regex")return`잘못된 문자열: 정규식 ${w.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${Y[w.format]??z.format}`}case"not_multiple_of":return`잘못된 숫자: ${z.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${PA(z.keys,", ")}`;case"invalid_key":return`잘못된 키: ${z.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${z.origin}`;default:return"잘못된 입력"}}};var R7A=E(()=>{K3()});function Kp1(){return{localeError:Yeq()}}var Yeq=()=>{let A={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"број";case"object":{if(Array.isArray(z))return"низа";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return(z)=>{switch(z.code){case"invalid_type":return`Грешен внес: се очекува ${z.expected}, примено ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Invalid input: expected ${a7(z.values[0])}`;return`Грешана опција: се очекува една ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`Премногу голем: се очекува ${z.origin??"вредноста"} да има ${w}${z.maximum.toString()} ${_.unit??"елементи"}`;return`Премногу голем: се очекува ${z.origin??"вредноста"} да биде ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`Премногу мал: се очекува ${z.origin} да има ${w}${z.minimum.toString()} ${_.unit}`;return`Премногу мал: се очекува ${z.origin} да биде ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Неважечка низа: мора да започнува со "${w.prefix}"`;if(w.format==="ends_with")return`Неважечка низа: мора да завршува со "${w.suffix}"`;if(w.format==="includes")return`Неважечка низа: мора да вклучува "${w.includes}"`;if(w.format==="regex")return`Неважечка низа: мора да одгоара на патернот ${w.pattern}`;return`Invalid ${Y[w.format]??z.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${z.divisor}`;case"unrecognized_keys":return`${z.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${PA(z.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${z.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${z.origin}`;default:return"Грешен внес"}}};var S7A=E(()=>{K3()});function Yp1(){return{localeError:zeq()}}var zeq=()=>{let A={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"nombor";case"object":{if(Array.isArray(z))return"array";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return(z)=>{switch(z.code){case"invalid_type":return`Input tidak sah: dijangka ${z.expected}, diterima ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Input tidak sah: dijangka ${a7(z.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`Terlalu besar: dijangka ${z.origin??"nilai"} ${_.verb} ${w}${z.maximum.toString()} ${_.unit??"elemen"}`;return`Terlalu besar: dijangka ${z.origin??"nilai"} adalah ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`Terlalu kecil: dijangka ${z.origin} ${_.verb} ${w}${z.minimum.toString()} ${_.unit}`;return`Terlalu kecil: dijangka ${z.origin} adalah ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`String tidak sah: mesti bermula dengan "${w.prefix}"`;if(w.format==="ends_with")return`String tidak sah: mesti berakhir dengan "${w.suffix}"`;if(w.format==="includes")return`String tidak sah: mesti mengandungi "${w.includes}"`;if(w.format==="regex")return`String tidak sah: mesti sepadan dengan corak ${w.pattern}`;return`${Y[w.format]??z.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${z.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${PA(z.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${z.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${z.origin}`;default:return"Input tidak sah"}}};var h7A=E(()=>{K3()});function zp1(){return{localeError:weq()}}var weq=()=>{let A={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"getal";case"object":{if(Array.isArray(z))return"array";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return(z)=>{switch(z.code){case"invalid_type":return`Ongeldige invoer: verwacht ${z.expected}, ontving ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Ongeldige invoer: verwacht ${a7(z.values[0])}`;return`Ongeldige optie: verwacht één van ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`Te lang: verwacht dat ${z.origin??"waarde"} ${w}${z.maximum.toString()} ${_.unit??"elementen"} bevat`;return`Te lang: verwacht dat ${z.origin??"waarde"} ${w}${z.maximum.toString()} is`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`Te kort: verwacht dat ${z.origin} ${w}${z.minimum.toString()} ${_.unit} bevat`;return`Te kort: verwacht dat ${z.origin} ${w}${z.minimum.toString()} is`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Ongeldige tekst: moet met "${w.prefix}" beginnen`;if(w.format==="ends_with")return`Ongeldige tekst: moet op "${w.suffix}" eindigen`;if(w.format==="includes")return`Ongeldige tekst: moet "${w.includes}" bevatten`;if(w.format==="regex")return`Ongeldige tekst: moet overeenkomen met patroon ${w.pattern}`;return`Ongeldig: ${Y[w.format]??z.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${z.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${z.keys.length>1?"s":""}: ${PA(z.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${z.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${z.origin}`;default:return"Ongeldige invoer"}}};var C7A=E(()=>{K3()});function wp1(){return{localeError:_eq()}}var _eq=()=>{let A={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"tall";case"object":{if(Array.isArray(z))return"liste";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return(z)=>{switch(z.code){case"invalid_type":return`Ugyldig input: forventet ${z.expected}, fikk ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Ugyldig verdi: forventet ${a7(z.values[0])}`;return`Ugyldig valg: forventet en av ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`For stor(t): forventet ${z.origin??"value"} til å ha ${w}${z.maximum.toString()} ${_.unit??"elementer"}`;return`For stor(t): forventet ${z.origin??"value"} til å ha ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`For lite(n): forventet ${z.origin} til å ha ${w}${z.minimum.toString()} ${_.unit}`;return`For lite(n): forventet ${z.origin} til å ha ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Ugyldig streng: må starte med "${w.prefix}"`;if(w.format==="ends_with")return`Ugyldig streng: må ende med "${w.suffix}"`;if(w.format==="includes")return`Ugyldig streng: må inneholde "${w.includes}"`;if(w.format==="regex")return`Ugyldig streng: må matche mønsteret ${w.pattern}`;return`Ugyldig ${Y[w.format]??z.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${z.divisor}`;case"unrecognized_keys":return`${z.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${PA(z.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${z.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${z.origin}`;default:return"Ugyldig input"}}};var I7A=E(()=>{K3()});function _p1(){return{localeError:$eq()}}var $eq=()=>{let A={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"numara";case"object":{if(Array.isArray(z))return"saf";if(z===null)return"gayb";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return(z)=>{switch(z.code){case"invalid_type":return`Fâsit giren: umulan ${z.expected}, alınan ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Fâsit giren: umulan ${a7(z.values[0])}`;return`Fâsit tercih: mûteberler ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`Fazla büyük: ${z.origin??"value"}, ${w}${z.maximum.toString()} ${_.unit??"elements"} sahip olmalıydı.`;return`Fazla büyük: ${z.origin??"value"}, ${w}${z.maximum.toString()} olmalıydı.`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`Fazla küçük: ${z.origin}, ${w}${z.minimum.toString()} ${_.unit} sahip olmalıydı.`;return`Fazla küçük: ${z.origin}, ${w}${z.minimum.toString()} olmalıydı.`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Fâsit metin: "${w.prefix}" ile başlamalı.`;if(w.format==="ends_with")return`Fâsit metin: "${w.suffix}" ile bitmeli.`;if(w.format==="includes")return`Fâsit metin: "${w.includes}" ihtivâ etmeli.`;if(w.format==="regex")return`Fâsit metin: ${w.pattern} nakşına uymalı.`;return`Fâsit ${Y[w.format]??z.format}`}case"not_multiple_of":return`Fâsit sayı: ${z.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${z.keys.length>1?"s":""}: ${PA(z.keys,", ")}`;case"invalid_key":return`${z.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${z.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};var x7A=E(()=>{K3()});function $p1(){return{localeError:Oeq()}}var Oeq=()=>{let A={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"عدد";case"object":{if(Array.isArray(z))return"ارې";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return(z)=>{switch(z.code){case"invalid_type":return`ناسم ورودي: باید ${z.expected} وای, مګر ${K(z.input)} ترلاسه شو`;case"invalid_value":if(z.values.length===1)return`ناسم ورودي: باید ${a7(z.values[0])} وای`;return`ناسم انتخاب: باید یو له ${PA(z.values,"|")} څخه وای`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`ډیر لوی: ${z.origin??"ارزښت"} باید ${w}${z.maximum.toString()} ${_.unit??"عنصرونه"} ولري`;return`ډیر لوی: ${z.origin??"ارزښت"} باید ${w}${z.maximum.toString()} وي`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`ډیر کوچنی: ${z.origin} باید ${w}${z.minimum.toString()} ${_.unit} ولري`;return`ډیر کوچنی: ${z.origin} باید ${w}${z.minimum.toString()} وي`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`ناسم متن: باید د "${w.prefix}" سره پیل شي`;if(w.format==="ends_with")return`ناسم متن: باید د "${w.suffix}" سره پای ته ورسيږي`;if(w.format==="includes")return`ناسم متن: باید "${w.includes}" ولري`;if(w.format==="regex")return`ناسم متن: باید د ${w.pattern} سره مطابقت ولري`;return`${Y[w.format]??z.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${z.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${z.keys.length>1?"کلیډونه":"کلیډ"}: ${PA(z.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${z.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${z.origin} کې`;default:return"ناسمه ورودي"}}};var b7A=E(()=>{K3()});function Op1(){return{localeError:Heq()}}var Heq=()=>{let A={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"liczba";case"object":{if(Array.isArray(z))return"tablica";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return(z)=>{switch(z.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${z.expected}, otrzymano ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Nieprawidłowe dane wejściowe: oczekiwano ${a7(z.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`Za duża wartość: oczekiwano, że ${z.origin??"wartość"} będzie mieć ${w}${z.maximum.toString()} ${_.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${z.origin??"wartość"} będzie wynosić ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`Za mała wartość: oczekiwano, że ${z.origin??"wartość"} będzie mieć ${w}${z.minimum.toString()} ${_.unit??"elementów"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${z.origin??"wartość"} będzie wynosić ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Nieprawidłowy ciąg znaków: musi zaczynać się od "${w.prefix}"`;if(w.format==="ends_with")return`Nieprawidłowy ciąg znaków: musi kończyć się na "${w.suffix}"`;if(w.format==="includes")return`Nieprawidłowy ciąg znaków: musi zawierać "${w.includes}"`;if(w.format==="regex")return`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${w.pattern}`;return`Nieprawidłow(y/a/e) ${Y[w.format]??z.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${z.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${z.keys.length>1?"s":""}: ${PA(z.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${z.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${z.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};var u7A=E(()=>{K3()});function Hp1(){return{localeError:jeq()}}var jeq=()=>{let A={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"número";case"object":{if(Array.isArray(z))return"array";if(z===null)return"nulo";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return(z)=>{switch(z.code){case"invalid_type":return`Tipo inválido: esperado ${z.expected}, recebido ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Entrada inválida: esperado ${a7(z.values[0])}`;return`Opção inválida: esperada uma das ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`Muito grande: esperado que ${z.origin??"valor"} tivesse ${w}${z.maximum.toString()} ${_.unit??"elementos"}`;return`Muito grande: esperado que ${z.origin??"valor"} fosse ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`Muito pequeno: esperado que ${z.origin} tivesse ${w}${z.minimum.toString()} ${_.unit}`;return`Muito pequeno: esperado que ${z.origin} fosse ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Texto inválido: deve começar com "${w.prefix}"`;if(w.format==="ends_with")return`Texto inválido: deve terminar com "${w.suffix}"`;if(w.format==="includes")return`Texto inválido: deve incluir "${w.includes}"`;if(w.format==="regex")return`Texto inválido: deve corresponder ao padrão ${w.pattern}`;return`${Y[w.format]??z.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${z.divisor}`;case"unrecognized_keys":return`Chave${z.keys.length>1?"s":""} desconhecida${z.keys.length>1?"s":""}: ${PA(z.keys,", ")}`;case"invalid_key":return`Chave inválida em ${z.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${z.origin}`;default:return"Campo inválido"}}};var m7A=E(()=>{K3()});function B7A(A,q,K,Y){let z=Math.abs(A),w=z%10,_=z%100;if(_>=11&&_<=19)return Y;if(w===1)return q;if(w>=2&&w<=4)return K;return Y}function jp1(){return{localeError:Jeq()}}var Jeq=()=>{let A={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"число";case"object":{if(Array.isArray(z))return"массив";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return(z)=>{switch(z.code){case"invalid_type":return`Неверный ввод: ожидалось ${z.expected}, получено ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Неверный ввод: ожидалось ${a7(z.values[0])}`;return`Неверный вариант: ожидалось одно из ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_){let $=Number(z.maximum),O=B7A($,_.unit.one,_.unit.few,_.unit.many);return`Слишком большое значение: ожидалось, что ${z.origin??"значение"} будет иметь ${w}${z.maximum.toString()} ${O}`}return`Слишком большое значение: ожидалось, что ${z.origin??"значение"} будет ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_){let $=Number(z.minimum),O=B7A($,_.unit.one,_.unit.few,_.unit.many);return`Слишком маленькое значение: ожидалось, что ${z.origin} будет иметь ${w}${z.minimum.toString()} ${O}`}return`Слишком маленькое значение: ожидалось, что ${z.origin} будет ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Неверная строка: должна начинаться с "${w.prefix}"`;if(w.format==="ends_with")return`Неверная строка: должна заканчиваться на "${w.suffix}"`;if(w.format==="includes")return`Неверная строка: должна содержать "${w.includes}"`;if(w.format==="regex")return`Неверная строка: должна соответствовать шаблону ${w.pattern}`;return`Неверный ${Y[w.format]??z.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${z.divisor}`;case"unrecognized_keys":return`Нераспознанн${z.keys.length>1?"ые":"ый"} ключ${z.keys.length>1?"и":""}: ${PA(z.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${z.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${z.origin}`;default:return"Неверные входные данные"}}};var g7A=E(()=>{K3()});function Jp1(){return{localeError:Meq()}}var Meq=()=>{let A={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"število";case"object":{if(Array.isArray(z))return"tabela";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"};return(z)=>{switch(z.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${z.expected}, prejeto ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Neveljaven vnos: pričakovano ${a7(z.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`Preveliko: pričakovano, da bo ${z.origin??"vrednost"} imelo ${w}${z.maximum.toString()} ${_.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${z.origin??"vrednost"} ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`Premajhno: pričakovano, da bo ${z.origin} imelo ${w}${z.minimum.toString()} ${_.unit}`;return`Premajhno: pričakovano, da bo ${z.origin} ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Neveljaven niz: mora se začeti z "${w.prefix}"`;if(w.format==="ends_with")return`Neveljaven niz: mora se končati z "${w.suffix}"`;if(w.format==="includes")return`Neveljaven niz: mora vsebovati "${w.includes}"`;if(w.format==="regex")return`Neveljaven niz: mora ustrezati vzorcu ${w.pattern}`;return`Neveljaven ${Y[w.format]??z.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${z.divisor}`;case"unrecognized_keys":return`Neprepoznan${z.keys.length>1?"i ključi":" ključ"}: ${PA(z.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${z.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${z.origin}`;default:return"Neveljaven vnos"}}};var p7A=E(()=>{K3()});function Mp1(){return{localeError:Deq()}}var Deq=()=>{let A={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"antal";case"object":{if(Array.isArray(z))return"lista";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return(z)=>{switch(z.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${z.expected}, fick ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Ogiltig inmatning: förväntat ${a7(z.values[0])}`;return`Ogiltigt val: förväntade en av ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`För stor(t): förväntade ${z.origin??"värdet"} att ha ${w}${z.maximum.toString()} ${_.unit??"element"}`;return`För stor(t): förväntat ${z.origin??"värdet"} att ha ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`För lite(t): förväntade ${z.origin??"värdet"} att ha ${w}${z.minimum.toString()} ${_.unit}`;return`För lite(t): förväntade ${z.origin??"värdet"} att ha ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Ogiltig sträng: måste börja med "${w.prefix}"`;if(w.format==="ends_with")return`Ogiltig sträng: måste sluta med "${w.suffix}"`;if(w.format==="includes")return`Ogiltig sträng: måste innehålla "${w.includes}"`;if(w.format==="regex")return`Ogiltig sträng: måste matcha mönstret "${w.pattern}"`;return`Ogiltig(t) ${Y[w.format]??z.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${z.divisor}`;case"unrecognized_keys":return`${z.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${PA(z.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${z.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${z.origin??"värdet"}`;default:return"Ogiltig input"}}};var F7A=E(()=>{K3()});function Dp1(){return{localeError:Xeq()}}var Xeq=()=>{let A={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(z))return"அணி";if(z===null)return"வெறுமை";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return(z)=>{switch(z.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${z.expected}, பெறப்பட்டது ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${a7(z.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${PA(z.values,"|")} இல் ஒன்று`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${z.origin??"மதிப்பு"} ${w}${z.maximum.toString()} ${_.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${z.origin??"மதிப்பு"} ${w}${z.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${z.origin} ${w}${z.minimum.toString()} ${_.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${z.origin} ${w}${z.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`தவறான சரம்: "${w.prefix}" இல் தொடங்க வேண்டும்`;if(w.format==="ends_with")return`தவறான சரம்: "${w.suffix}" இல் முடிவடைய வேண்டும்`;if(w.format==="includes")return`தவறான சரம்: "${w.includes}" ஐ உள்ளடக்க வேண்டும்`;if(w.format==="regex")return`தவறான சரம்: ${w.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${Y[w.format]??z.format}`}case"not_multiple_of":return`தவறான எண்: ${z.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${z.keys.length>1?"கள்":""}: ${PA(z.keys,", ")}`;case"invalid_key":return`${z.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${z.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};var Q7A=E(()=>{K3()});function Xp1(){return{localeError:Peq()}}var Peq=()=>{let A={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(z))return"อาร์เรย์ (Array)";if(z===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return(z)=>{switch(z.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${z.expected} แต่ได้รับ ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`ค่าไม่ถูกต้อง: ควรเป็น ${a7(z.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"ไม่เกิน":"น้อยกว่า",_=q(z.origin);if(_)return`เกินกำหนด: ${z.origin??"ค่า"} ควรมี${w} ${z.maximum.toString()} ${_.unit??"รายการ"}`;return`เกินกำหนด: ${z.origin??"ค่า"} ควรมี${w} ${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?"อย่างน้อย":"มากกว่า",_=q(z.origin);if(_)return`น้อยกว่ากำหนด: ${z.origin} ควรมี${w} ${z.minimum.toString()} ${_.unit}`;return`น้อยกว่ากำหนด: ${z.origin} ควรมี${w} ${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${w.prefix}"`;if(w.format==="ends_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${w.suffix}"`;if(w.format==="includes")return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${w.includes}" อยู่ในข้อความ`;if(w.format==="regex")return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${w.pattern}`;return`รูปแบบไม่ถูกต้อง: ${Y[w.format]??z.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${z.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${PA(z.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${z.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${z.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};var U7A=E(()=>{K3()});function Pp1(){return{localeError:Geq()}}var Weq=(A)=>{let q=typeof A;switch(q){case"number":return Number.isNaN(A)?"NaN":"number";case"object":{if(Array.isArray(A))return"array";if(A===null)return"null";if(Object.getPrototypeOf(A)!==Object.prototype&&A.constructor)return A.constructor.name}}return q},Geq=()=>{let A={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function q(Y){return A[Y]??null}let K={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return(Y)=>{switch(Y.code){case"invalid_type":return`Geçersiz değer: beklenen ${Y.expected}, alınan ${Weq(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Geçersiz değer: beklenen ${a7(Y.values[0])}`;return`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${PA(Y.values,"|")}`;case"too_big":{let z=Y.inclusive?"<=":"<",w=q(Y.origin);if(w)return`Çok büyük: beklenen ${Y.origin??"değer"} ${z}${Y.maximum.toString()} ${w.unit??"öğe"}`;return`Çok büyük: beklenen ${Y.origin??"değer"} ${z}${Y.maximum.toString()}`}case"too_small":{let z=Y.inclusive?">=":">",w=q(Y.origin);if(w)return`Çok küçük: beklenen ${Y.origin} ${z}${Y.minimum.toString()} ${w.unit}`;return`Çok küçük: beklenen ${Y.origin} ${z}${Y.minimum.toString()}`}case"invalid_format":{let z=Y;if(z.format==="starts_with")return`Geçersiz metin: "${z.prefix}" ile başlamalı`;if(z.format==="ends_with")return`Geçersiz metin: "${z.suffix}" ile bitmeli`;if(z.format==="includes")return`Geçersiz metin: "${z.includes}" içermeli`;if(z.format==="regex")return`Geçersiz metin: ${z.pattern} desenine uymalı`;return`Geçersiz ${K[z.format]??Y.format}`}case"not_multiple_of":return`Geçersiz sayı: ${Y.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${Y.keys.length>1?"lar":""}: ${PA(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${Y.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};var d7A=E(()=>{K3()});function Wp1(){return{localeError:Zeq()}}var Zeq=()=>{let A={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"число";case"object":{if(Array.isArray(z))return"масив";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return(z)=>{switch(z.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${z.expected}, отримано ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Неправильні вхідні дані: очікується ${a7(z.values[0])}`;return`Неправильна опція: очікується одне з ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`Занадто велике: очікується, що ${z.origin??"значення"} ${_.verb} ${w}${z.maximum.toString()} ${_.unit??"елементів"}`;return`Занадто велике: очікується, що ${z.origin??"значення"} буде ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`Занадто мале: очікується, що ${z.origin} ${_.verb} ${w}${z.minimum.toString()} ${_.unit}`;return`Занадто мале: очікується, що ${z.origin} буде ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Неправильний рядок: повинен починатися з "${w.prefix}"`;if(w.format==="ends_with")return`Неправильний рядок: повинен закінчуватися на "${w.suffix}"`;if(w.format==="includes")return`Неправильний рядок: повинен містити "${w.includes}"`;if(w.format==="regex")return`Неправильний рядок: повинен відповідати шаблону ${w.pattern}`;return`Неправильний ${Y[w.format]??z.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${z.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${z.keys.length>1?"і":""}: ${PA(z.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${z.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${z.origin}`;default:return"Неправильні вхідні дані"}}};var c7A=E(()=>{K3()});function Gp1(){return{localeError:feq()}}var feq=()=>{let A={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"نمبر";case"object":{if(Array.isArray(z))return"آرے";if(z===null)return"نل";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return(z)=>{switch(z.code){case"invalid_type":return`غلط ان پٹ: ${z.expected} متوقع تھا، ${K(z.input)} موصول ہوا`;case"invalid_value":if(z.values.length===1)return`غلط ان پٹ: ${a7(z.values[0])} متوقع تھا`;return`غلط آپشن: ${PA(z.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`بہت بڑا: ${z.origin??"ویلیو"} کے ${w}${z.maximum.toString()} ${_.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${z.origin??"ویلیو"} کا ${w}${z.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`بہت چھوٹا: ${z.origin} کے ${w}${z.minimum.toString()} ${_.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${z.origin} کا ${w}${z.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`غلط سٹرنگ: "${w.prefix}" سے شروع ہونا چاہیے`;if(w.format==="ends_with")return`غلط سٹرنگ: "${w.suffix}" پر ختم ہونا چاہیے`;if(w.format==="includes")return`غلط سٹرنگ: "${w.includes}" شامل ہونا چاہیے`;if(w.format==="regex")return`غلط سٹرنگ: پیٹرن ${w.pattern} سے میچ ہونا چاہیے`;return`غلط ${Y[w.format]??z.format}`}case"not_multiple_of":return`غلط نمبر: ${z.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${z.keys.length>1?"ز":""}: ${PA(z.keys,"، ")}`;case"invalid_key":return`${z.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${z.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};var l7A=E(()=>{K3()});function Zp1(){return{localeError:Teq()}}var Teq=()=>{let A={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"số";case"object":{if(Array.isArray(z))return"mảng";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return(z)=>{switch(z.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${z.expected}, nhận được ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`Đầu vào không hợp lệ: mong đợi ${a7(z.values[0])}`;return`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`Quá lớn: mong đợi ${z.origin??"giá trị"} ${_.verb} ${w}${z.maximum.toString()} ${_.unit??"phần tử"}`;return`Quá lớn: mong đợi ${z.origin??"giá trị"} ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`Quá nhỏ: mong đợi ${z.origin} ${_.verb} ${w}${z.minimum.toString()} ${_.unit}`;return`Quá nhỏ: mong đợi ${z.origin} ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`Chuỗi không hợp lệ: phải bắt đầu bằng "${w.prefix}"`;if(w.format==="ends_with")return`Chuỗi không hợp lệ: phải kết thúc bằng "${w.suffix}"`;if(w.format==="includes")return`Chuỗi không hợp lệ: phải bao gồm "${w.includes}"`;if(w.format==="regex")return`Chuỗi không hợp lệ: phải khớp với mẫu ${w.pattern}`;return`${Y[w.format]??z.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${z.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${PA(z.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${z.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${z.origin}`;default:return"Đầu vào không hợp lệ"}}};var i7A=E(()=>{K3()});function fp1(){return{localeError:veq()}}var veq=()=>{let A={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(z))return"数组";if(z===null)return"空值(null)";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return(z)=>{switch(z.code){case"invalid_type":return`无效输入：期望 ${z.expected}，实际接收 ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`无效输入：期望 ${a7(z.values[0])}`;return`无效选项：期望以下之一 ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`数值过大：期望 ${z.origin??"值"} ${w}${z.maximum.toString()} ${_.unit??"个元素"}`;return`数值过大：期望 ${z.origin??"值"} ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`数值过小：期望 ${z.origin} ${w}${z.minimum.toString()} ${_.unit}`;return`数值过小：期望 ${z.origin} ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`无效字符串：必须以 "${w.prefix}" 开头`;if(w.format==="ends_with")return`无效字符串：必须以 "${w.suffix}" 结尾`;if(w.format==="includes")return`无效字符串：必须包含 "${w.includes}"`;if(w.format==="regex")return`无效字符串：必须满足正则表达式 ${w.pattern}`;return`无效${Y[w.format]??z.format}`}case"not_multiple_of":return`无效数字：必须是 ${z.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${PA(z.keys,", ")}`;case"invalid_key":return`${z.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${z.origin} 中包含无效值(value)`;default:return"无效输入"}}};var n7A=E(()=>{K3()});function Tp1(){return{localeError:Veq()}}var Veq=()=>{let A={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function q(z){return A[z]??null}let K=(z)=>{let w=typeof z;switch(w){case"number":return Number.isNaN(z)?"NaN":"number";case"object":{if(Array.isArray(z))return"array";if(z===null)return"null";if(Object.getPrototypeOf(z)!==Object.prototype&&z.constructor)return z.constructor.name}}return w},Y={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return(z)=>{switch(z.code){case"invalid_type":return`無效的輸入值：預期為 ${z.expected}，但收到 ${K(z.input)}`;case"invalid_value":if(z.values.length===1)return`無效的輸入值：預期為 ${a7(z.values[0])}`;return`無效的選項：預期為以下其中之一 ${PA(z.values,"|")}`;case"too_big":{let w=z.inclusive?"<=":"<",_=q(z.origin);if(_)return`數值過大：預期 ${z.origin??"值"} 應為 ${w}${z.maximum.toString()} ${_.unit??"個元素"}`;return`數值過大：預期 ${z.origin??"值"} 應為 ${w}${z.maximum.toString()}`}case"too_small":{let w=z.inclusive?">=":">",_=q(z.origin);if(_)return`數值過小：預期 ${z.origin} 應為 ${w}${z.minimum.toString()} ${_.unit}`;return`數值過小：預期 ${z.origin} 應為 ${w}${z.minimum.toString()}`}case"invalid_format":{let w=z;if(w.format==="starts_with")return`無效的字串：必須以 "${w.prefix}" 開頭`;if(w.format==="ends_with")return`無效的字串：必須以 "${w.suffix}" 結尾`;if(w.format==="includes")return`無效的字串：必須包含 "${w.includes}"`;if(w.format==="regex")return`無效的字串：必須符合格式 ${w.pattern}`;return`無效的 ${Y[w.format]??z.format}`}case"not_multiple_of":return`無效的數字：必須為 ${z.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${z.keys.length>1?"們":""}：${PA(z.keys,"、")}`;case"invalid_key":return`${z.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${z.origin} 中有無效的值`;default:return"無效的輸入值"}}};var r7A=E(()=>{K3()});var hO6={};d1(hO6,{zhTW:()=>Tp1,zhCN:()=>fp1,vi:()=>Zp1,ur:()=>Gp1,ua:()=>Wp1,tr:()=>Pp1,th:()=>Xp1,ta:()=>Dp1,sv:()=>Mp1,sl:()=>Jp1,ru:()=>jp1,pt:()=>Hp1,ps:()=>$p1,pl:()=>Op1,ota:()=>_p1,no:()=>wp1,nl:()=>zp1,ms:()=>Yp1,mk:()=>Kp1,ko:()=>qp1,kh:()=>Ap1,ja:()=>eg1,it:()=>tg1,id:()=>sg1,hu:()=>ag1,he:()=>og1,frCA:()=>rg1,fr:()=>ng1,fi:()=>ig1,fa:()=>lg1,es:()=>cg1,eo:()=>dg1,en:()=>zy6,de:()=>Qg1,cs:()=>Fg1,ca:()=>pg1,be:()=>gg1,az:()=>Bg1,ar:()=>mg1});var V61=E(()=>{H7A();j7A();M7A();D7A();X7A();P7A();Ug1();W7A();G7A();Z7A();f7A();T7A();v7A();V7A();N7A();k7A();E7A();L7A();y7A();R7A();S7A();h7A();C7A();I7A();x7A();b7A();u7A();m7A();g7A();p7A();F7A();Q7A();U7A();d7A();c7A();l7A();i7A();n7A();r7A()});class wy6{constructor(){this._map=new WeakMap,this._idmap=new Map}add(A,...q){let K=q[0];if(this._map.set(A,K),K&&typeof K==="object"&&"id"in K){if(this._idmap.has(K.id))throw Error(`ID ${K.id} already exists in the registry`);this._idmap.set(K.id,A)}return this}remove(A){return this._map.delete(A),this}get(A){let q=A._zod.parent;if(q){let K={...this.get(q)??{}};return delete K.id,{...K,...this._map.get(A)}}return this._map.get(A)}has(A){return this._map.has(A)}}function N61(){return new wy6}var vp1,Vp1,iu;var Np1=E(()=>{vp1=Symbol("ZodOutput"),Vp1=Symbol("ZodInput");iu=N61()});function kp1(A,q){return new A({type:"string",...I7(q)})}function Ep1(A,q){return new A({type:"string",coerce:!0,...I7(q)})}function k61(A,q){return new A({type:"string",format:"email",check:"string_format",abort:!1,...I7(q)})}function _y6(A,q){return new A({type:"string",format:"guid",check:"string_format",abort:!1,...I7(q)})}function E61(A,q){return new A({type:"string",format:"uuid",check:"string_format",abort:!1,...I7(q)})}function L61(A,q){return new A({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...I7(q)})}function y61(A,q){return new A({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...I7(q)})}function R61(A,q){return new A({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...I7(q)})}function S61(A,q){return new A({type:"string",format:"url",check:"string_format",abort:!1,...I7(q)})}function h61(A,q){return new A({type:"string",format:"emoji",check:"string_format",abort:!1,...I7(q)})}function C61(A,q){return new A({type:"string",format:"nanoid",check:"string_format",abort:!1,...I7(q)})}function I61(A,q){return new A({type:"string",format:"cuid",check:"string_format",abort:!1,...I7(q)})}function x61(A,q){return new A({type:"string",format:"cuid2",check:"string_format",abort:!1,...I7(q)})}function b61(A,q){return new A({type:"string",format:"ulid",check:"string_format",abort:!1,...I7(q)})}function u61(A,q){return new A({type:"string",format:"xid",check:"string_format",abort:!1,...I7(q)})}function m61(A,q){return new A({type:"string",format:"ksuid",check:"string_format",abort:!1,...I7(q)})}function B61(A,q){return new A({type:"string",format:"ipv4",check:"string_format",abort:!1,...I7(q)})}function g61(A,q){return new A({type:"string",format:"ipv6",check:"string_format",abort:!1,...I7(q)})}function p61(A,q){return new A({type:"string",format:"cidrv4",check:"string_format",abort:!1,...I7(q)})}function F61(A,q){return new A({type:"string",format:"cidrv6",check:"string_format",abort:!1,...I7(q)})}function Q61(A,q){return new A({type:"string",format:"base64",check:"string_format",abort:!1,...I7(q)})}function U61(A,q){return new A({type:"string",format:"base64url",check:"string_format",abort:!1,...I7(q)})}function d61(A,q){return new A({type:"string",format:"e164",check:"string_format",abort:!1,...I7(q)})}function c61(A,q){return new A({type:"string",format:"jwt",check:"string_format",abort:!1,...I7(q)})}function yp1(A,q){return new A({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...I7(q)})}function Rp1(A,q){return new A({type:"string",format:"date",check:"string_format",...I7(q)})}function Sp1(A,q){return new A({type:"string",format:"time",check:"string_format",precision:null,...I7(q)})}function hp1(A,q){return new A({type:"string",format:"duration",check:"string_format",...I7(q)})}function Cp1(A,q){return new A({type:"number",checks:[],...I7(q)})}function Ip1(A,q){return new A({type:"number",coerce:!0,checks:[],...I7(q)})}function xp1(A,q){return new A({type:"number",check:"number_format",abort:!1,format:"safeint",...I7(q)})}function bp1(A,q){return new A({type:"number",check:"number_format",abort:!1,format:"float32",...I7(q)})}function up1(A,q){return new A({type:"number",check:"number_format",abort:!1,format:"float64",...I7(q)})}function mp1(A,q){return new A({type:"number",check:"number_format",abort:!1,format:"int32",...I7(q)})}function Bp1(A,q){return new A({type:"number",check:"number_format",abort:!1,format:"uint32",...I7(q)})}function gp1(A,q){return new A({type:"boolean",...I7(q)})}function pp1(A,q){return new A({type:"boolean",coerce:!0,...I7(q)})}function Fp1(A,q){return new A({type:"bigint",...I7(q)})}function Qp1(A,q){return new A({type:"bigint",coerce:!0,...I7(q)})}function Up1(A,q){return new A({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...I7(q)})}function dp1(A,q){return new A({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...I7(q)})}function cp1(A,q){return new A({type:"symbol",...I7(q)})}function lp1(A,q){return new A({type:"undefined",...I7(q)})}function ip1(A,q){return new A({type:"null",...I7(q)})}function np1(A){return new A({type:"any"})}function CO6(A){return new A({type:"unknown"})}function rp1(A,q){return new A({type:"never",...I7(q)})}function op1(A,q){return new A({type:"void",...I7(q)})}function ap1(A,q){return new A({type:"date",...I7(q)})}function sp1(A,q){return new A({type:"date",coerce:!0,...I7(q)})}function tp1(A,q){return new A({type:"nan",...I7(q)})}function lQ(A,q){return new D61({check:"less_than",...I7(q),value:A,inclusive:!1})}function dL(A,q){return new D61({check:"less_than",...I7(q),value:A,inclusive:!0})}function iQ(A,q){return new X61({check:"greater_than",...I7(q),value:A,inclusive:!1})}function Yv(A,q){return new X61({check:"greater_than",...I7(q),value:A,inclusive:!0})}function ep1(A){return iQ(0,A)}function AF1(A){return lQ(0,A)}function qF1(A){return dL(0,A)}function KF1(A){return Yv(0,A)}function o76(A,q){return new DB1({check:"multiple_of",...I7(q),value:A})}function IO6(A,q){return new WB1({check:"max_size",...I7(q),maximum:A})}function a76(A,q){return new GB1({check:"min_size",...I7(q),minimum:A})}function $y6(A,q){return new ZB1({check:"size_equals",...I7(q),size:A})}function xO6(A,q){return new fB1({check:"max_length",...I7(q),maximum:A})}function Mo(A,q){return new TB1({check:"min_length",...I7(q),minimum:A})}function bO6(A,q){return new vB1({check:"length_equals",...I7(q),length:A})}function Oy6(A,q){return new VB1({check:"string_format",format:"regex",...I7(q),pattern:A})}function Hy6(A){return new NB1({check:"string_format",format:"lowercase",...I7(A)})}function jy6(A){return new kB1({check:"string_format",format:"uppercase",...I7(A)})}function Jy6(A,q){return new EB1({check:"string_format",format:"includes",...I7(q),includes:A})}function My6(A,q){return new LB1({check:"string_format",format:"starts_with",...I7(q),prefix:A})}function Dy6(A,q){return new yB1({check:"string_format",format:"ends_with",...I7(q),suffix:A})}function YF1(A,q,K){return new RB1({check:"property",property:A,schema:q,...I7(K)})}function Xy6(A,q){return new SB1({check:"mime_type",mime:A,...I7(q)})}function nQ(A){return new hB1({check:"overwrite",tx:A})}function Py6(A){return nQ((q)=>q.normalize(A))}function Wy6(){return nQ((A)=>A.trim())}function Gy6(){return nQ((A)=>A.toLowerCase())}function Zy6(){return nQ((A)=>A.toUpperCase())}function fy6(A,q,K){return new A({type:"array",element:q,...I7(K)})}function Neq(A,q,K){return new A({type:"union",options:q,...I7(K)})}function keq(A,q,K,Y){return new A({type:"union",options:K,discriminator:q,...I7(Y)})}function Eeq(A,q,K){return new A({type:"intersection",left:q,right:K})}function zF1(A,q,K,Y){let z=K instanceof v3;return new A({type:"tuple",items:q,rest:z?K:null,...I7(z?Y:K)})}function Leq(A,q,K,Y){return new A({type:"record",keyType:q,valueType:K,...I7(Y)})}function yeq(A,q,K,Y){return new A({type:"map",keyType:q,valueType:K,...I7(Y)})}function Req(A,q,K){return new A({type:"set",valueType:q,...I7(K)})}function Seq(A,q,K){let Y=Array.isArray(q)?Object.fromEntries(q.map((z)=>[z,z])):q;return new A({type:"enum",entries:Y,...I7(K)})}function heq(A,q,K){return new A({type:"enum",entries:q,...I7(K)})}function Ceq(A,q,K){return new A({type:"literal",values:Array.isArray(q)?q:[q],...I7(K)})}function wF1(A,q){return new A({type:"file",...I7(q)})}function Ieq(A,q){return new A({type:"transform",transform:q})}function xeq(A,q){return new A({type:"optional",innerType:q})}function beq(A,q){return new A({type:"nullable",innerType:q})}function ueq(A,q,K){return new A({type:"default",innerType:q,get defaultValue(){return typeof K==="function"?K():K}})}function meq(A,q,K){return new A({type:"nonoptional",innerType:q,...I7(K)})}function Beq(A,q){return new A({type:"success",innerType:q})}function geq(A,q,K){return new A({type:"catch",innerType:q,catchValue:typeof K==="function"?K:()=>K})}function peq(A,q,K){return new A({type:"pipe",in:q,out:K})}function Feq(A,q){return new A({type:"readonly",innerType:q})}function Qeq(A,q,K){return new A({type:"template_literal",parts:q,...I7(K)})}function Ueq(A,q){return new A({type:"lazy",getter:q})}function deq(A,q){return new A({type:"promise",innerType:q})}function _F1(A,q,K){let Y=I7(K);return Y.abort??(Y.abort=!0),new A({type:"custom",check:"custom",fn:q,...Y})}function $F1(A,q,K){return new A({type:"custom",check:"custom",fn:q,...I7(K)})}function OF1(A,q){let K=I7(q),Y=K.truthy??["true","1","yes","on","y","enabled"],z=K.falsy??["false","0","no","off","n","disabled"];if(K.case!=="sensitive")Y=Y.map((X)=>typeof X==="string"?X.toLowerCase():X),z=z.map((X)=>typeof X==="string"?X.toLowerCase():X);let w=new Set(Y),_=new Set(z),$=A.Pipe??Ky6,O=A.Boolean??eL6,H=A.String??n76,J=new(A.Transform??qy6)({type:"transform",transform:(X,P)=>{let W=X;if(K.case!=="sensitive")W=W.toLowerCase();if(w.has(W))return!0;else if(_.has(W))return!1;else return P.issues.push({code:"invalid_value",expected:"stringbool",values:[...w,..._],input:P.value,inst:J}),{}},error:K.error}),M=new $({type:"pipe",in:new H({type:"string",error:K.error}),out:J,error:K.error});return new $({type:"pipe",in:M,out:new O({type:"boolean",error:K.error}),error:K.error})}function HF1(A,q,K,Y={}){let z=I7(Y),w={...I7(Y),check:"string_format",type:"string",format:q,fn:typeof K==="function"?K:($)=>K.test($),...z};if(K instanceof RegExp)w.pattern=K;return new A(w)}var Lp1;var jF1=E(()=>{P61();Yy6();K3();Lp1={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});class JF1{constructor(A){this._def=A,this.def=A}implement(A){if(typeof A!=="function")throw Error("implement() must be called with a function");let q=(...K)=>{let Y=this._def.input?aL6(this._def.input,K,void 0,{callee:q}):K;if(!Array.isArray(Y))throw Error("Invalid arguments schema: not an array or tuple schema.");let z=A(...Y);return this._def.output?aL6(this._def.output,z,void 0,{callee:q}):z};return q}implementAsync(A){if(typeof A!=="function")throw Error("implement() must be called with a function");let q=async(...K)=>{let Y=this._def.input?await sL6(this._def.input,K,void 0,{callee:q}):K;if(!Array.isArray(Y))throw Error("Invalid arguments schema: not an array or tuple schema.");let z=await A(...Y);return this._def.output?sL6(this._def.output,z,void 0,{callee:q}):z};return q}input(...A){let q=this.constructor;if(Array.isArray(A[0]))return new q({type:"function",input:new r76({type:"tuple",items:A[0],rest:A[1]}),output:this._def.output});return new q({type:"function",input:A[0],output:this._def.output})}output(A){return new this.constructor({type:"function",input:this._def.input,output:A})}}function MF1(A){return new JF1({type:"function",input:Array.isArray(A?.input)?zF1(r76,A?.input):A?.input??fy6(Ay6,CO6(SO6)),output:A?.output??CO6(SO6)})}var o7A=E(()=>{jF1();j61();Yy6();Yy6()});class l61{constructor(A){this.counter=0,this.metadataRegistry=A?.metadata??iu,this.target=A?.target??"draft-2020-12",this.unrepresentable=A?.unrepresentable??"throw",this.override=A?.override??(()=>{}),this.io=A?.io??"output",this.seen=new Map}process(A,q={path:[],schemaPath:[]}){var K;let Y=A._zod.def,z={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},w=this.seen.get(A);if(w){if(w.count++,q.schemaPath.includes(A))w.cycle=q.path;return w.schema}let _={schema:{},count:1,cycle:void 0,path:q.path};this.seen.set(A,_);let $=A._zod.toJSONSchema?.();if($)_.schema=$;else{let j={...q,schemaPath:[...q.schemaPath,A],path:q.path},J=A._zod.parent;if(J)_.ref=J,this.process(J,j),this.seen.get(J).isParent=!0;else{let M=_.schema;switch(Y.type){case"string":{let D=M;D.type="string";let{minimum:X,maximum:P,format:W,patterns:G,contentEncoding:Z}=A._zod.bag;if(typeof X==="number")D.minLength=X;if(typeof P==="number")D.maxLength=P;if(W){if(D.format=z[W]??W,D.format==="")delete D.format}if(Z)D.contentEncoding=Z;if(G&&G.size>0){let f=[...G];if(f.length===1)D.pattern=f[0].source;else if(f.length>1)_.schema.allOf=[...f.map((v)=>({...this.target==="draft-7"?{type:"string"}:{},pattern:v.source}))]}break}case"number":{let D=M,{minimum:X,maximum:P,format:W,multipleOf:G,exclusiveMaximum:Z,exclusiveMinimum:f}=A._zod.bag;if(typeof W==="string"&&W.includes("int"))D.type="integer";else D.type="number";if(typeof f==="number")D.exclusiveMinimum=f;if(typeof X==="number"){if(D.minimum=X,typeof f==="number")if(f>=X)delete D.minimum;else delete D.exclusiveMinimum}if(typeof Z==="number")D.exclusiveMaximum=Z;if(typeof P==="number"){if(D.maximum=P,typeof Z==="number")if(Z<=P)delete D.maximum;else delete D.exclusiveMaximum}if(typeof G==="number")D.multipleOf=G;break}case"boolean":{let D=M;D.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw Error("Symbols cannot be represented in JSON Schema");break}case"null":{M.type="null";break}case"any":break;case"unknown":break;case"undefined":case"never":{M.not={};break}case"void":{if(this.unrepresentable==="throw")throw Error("Void cannot be represented in JSON Schema");break}case"date":{if(this.unrepresentable==="throw")throw Error("Date cannot be represented in JSON Schema");break}case"array":{let D=M,{minimum:X,maximum:P}=A._zod.bag;if(typeof X==="number")D.minItems=X;if(typeof P==="number")D.maxItems=P;D.type="array",D.items=this.process(Y.element,{...j,path:[...j.path,"items"]});break}case"object":{let D=M;D.type="object",D.properties={};let X=Y.shape;for(let G in X)D.properties[G]=this.process(X[G],{...j,path:[...j.path,"properties",G]});let P=new Set(Object.keys(X)),W=new Set([...P].filter((G)=>{let Z=Y.shape[G]._zod;if(this.io==="input")return Z.optin===void 0;else return Z.optout===void 0}));if(W.size>0)D.required=Array.from(W);if(Y.catchall?._zod.def.type==="never")D.additionalProperties=!1;else if(!Y.catchall){if(this.io==="output")D.additionalProperties=!1}else if(Y.catchall)D.additionalProperties=this.process(Y.catchall,{...j,path:[...j.path,"additionalProperties"]});break}case"union":{let D=M;D.anyOf=Y.options.map((X,P)=>this.process(X,{...j,path:[...j.path,"anyOf",P]}));break}case"intersection":{let D=M,X=this.process(Y.left,{...j,path:[...j.path,"allOf",0]}),P=this.process(Y.right,{...j,path:[...j.path,"allOf",1]}),W=(Z)=>("allOf"in Z)&&Object.keys(Z).length===1,G=[...W(X)?X.allOf:[X],...W(P)?P.allOf:[P]];D.allOf=G;break}case"tuple":{let D=M;D.type="array";let X=Y.items.map((G,Z)=>this.process(G,{...j,path:[...j.path,"prefixItems",Z]}));if(this.target==="draft-2020-12")D.prefixItems=X;else D.items=X;if(Y.rest){let G=this.process(Y.rest,{...j,path:[...j.path,"items"]});if(this.target==="draft-2020-12")D.items=G;else D.additionalItems=G}if(Y.rest)D.items=this.process(Y.rest,{...j,path:[...j.path,"items"]});let{minimum:P,maximum:W}=A._zod.bag;if(typeof P==="number")D.minItems=P;if(typeof W==="number")D.maxItems=W;break}case"record":{let D=M;D.type="object",D.propertyNames=this.process(Y.keyType,{...j,path:[...j.path,"propertyNames"]}),D.additionalProperties=this.process(Y.valueType,{...j,path:[...j.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw Error("Set cannot be represented in JSON Schema");break}case"enum":{let D=M,X=QL6(Y.entries);if(X.every((P)=>typeof P==="number"))D.type="number";if(X.every((P)=>typeof P==="string"))D.type="string";D.enum=X;break}case"literal":{let D=M,X=[];for(let P of Y.values)if(P===void 0){if(this.unrepresentable==="throw")throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof P==="bigint")if(this.unrepresentable==="throw")throw Error("BigInt literals cannot be represented in JSON Schema");else X.push(Number(P));else X.push(P);if(X.length===0);else if(X.length===1){let P=X[0];D.type=P===null?"null":typeof P,D.const=P}else{if(X.every((P)=>typeof P==="number"))D.type="number";if(X.every((P)=>typeof P==="string"))D.type="string";if(X.every((P)=>typeof P==="boolean"))D.type="string";if(X.every((P)=>P===null))D.type="null";D.enum=X}break}case"file":{let D=M,X={type:"string",format:"binary",contentEncoding:"binary"},{minimum:P,maximum:W,mime:G}=A._zod.bag;if(P!==void 0)X.minLength=P;if(W!==void 0)X.maxLength=W;if(G)if(G.length===1)X.contentMediaType=G[0],Object.assign(D,X);else D.anyOf=G.map((Z)=>{return{...X,contentMediaType:Z}});else Object.assign(D,X);break}case"transform":{if(this.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let D=this.process(Y.innerType,j);M.anyOf=[D,{type:"null"}];break}case"nonoptional":{this.process(Y.innerType,j),_.ref=Y.innerType;break}case"success":{let D=M;D.type="boolean";break}case"default":{this.process(Y.innerType,j),_.ref=Y.innerType,M.default=JSON.parse(JSON.stringify(Y.defaultValue));break}case"prefault":{if(this.process(Y.innerType,j),_.ref=Y.innerType,this.io==="input")M._prefault=JSON.parse(JSON.stringify(Y.defaultValue));break}case"catch":{this.process(Y.innerType,j),_.ref=Y.innerType;let D;try{D=Y.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}M.default=D;break}case"nan":{if(this.unrepresentable==="throw")throw Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let D=M,X=A._zod.pattern;if(!X)throw Error("Pattern not found in template literal");D.type="string",D.pattern=X.source;break}case"pipe":{let D=this.io==="input"?Y.in._zod.def.type==="transform"?Y.out:Y.in:Y.out;this.process(D,j),_.ref=D;break}case"readonly":{this.process(Y.innerType,j),_.ref=Y.innerType,M.readOnly=!0;break}case"promise":{this.process(Y.innerType,j),_.ref=Y.innerType;break}case"optional":{this.process(Y.innerType,j),_.ref=Y.innerType;break}case"lazy":{let D=A._zod.innerType;this.process(D,j),_.ref=D;break}case"custom":{if(this.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema");break}default:}}}let O=this.metadataRegistry.get(A);if(O)Object.assign(_.schema,O);if(this.io==="input"&&PD(A))delete _.schema.examples,delete _.schema.default;if(this.io==="input"&&_.schema._prefault)(K=_.schema).default??(K.default=_.schema._prefault);return delete _.schema._prefault,this.seen.get(A).schema}emit(A,q){let K={cycles:q?.cycles??"ref",reused:q?.reused??"inline",external:q?.external??void 0},Y=this.seen.get(A);if(!Y)throw Error("Unprocessed schema. This is a bug in Zod.");let z=(H)=>{let j=this.target==="draft-2020-12"?"$defs":"definitions";if(K.external){let X=K.external.registry.get(H[0])?.id;if(X)return{ref:K.external.uri(X)};let P=H[1].defId??H[1].schema.id??`schema${this.counter++}`;return H[1].defId=P,{defId:P,ref:`${K.external.uri("__shared")}#/${j}/${P}`}}if(H[1]===Y)return{ref:"#"};let M=`${"#"}/${j}/`,D=H[1].schema.id??`__schema${this.counter++}`;return{defId:D,ref:M+D}},w=(H)=>{if(H[1].schema.$ref)return;let j=H[1],{ref:J,defId:M}=z(H);if(j.def={...j.schema},M)j.defId=M;let D=j.schema;for(let X in D)delete D[X];D.$ref=J};for(let H of this.seen.entries()){let j=H[1];if(A===H[0]){w(H);continue}if(K.external){let M=K.external.registry.get(H[0])?.id;if(A!==H[0]&&M){w(H);continue}}if(this.metadataRegistry.get(H[0])?.id){w(H);continue}if(j.cycle){if(K.cycles==="throw")throw Error(`Cycle detected: #/${j.cycle?.join("/")}/<root>

Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);else if(K.cycles==="ref")w(H);continue}if(j.count>1){if(K.reused==="ref"){w(H);continue}}}let _=(H,j)=>{let J=this.seen.get(H),M=J.def??J.schema,D={...M};if(J.ref===null)return;let X=J.ref;if(J.ref=null,X){_(X,j);let P=this.seen.get(X).schema;if(P.$ref&&j.target==="draft-7")M.allOf=M.allOf??[],M.allOf.push(P);else Object.assign(M,P),Object.assign(M,D)}if(!J.isParent)this.override({zodSchema:H,jsonSchema:M,path:J.path??[]})};for(let H of[...this.seen.entries()].reverse())_(H[0],{target:this.target});let $={};if(this.target==="draft-2020-12")$.$schema="https://json-schema.org/draft/2020-12/schema";else if(this.target==="draft-7")$.$schema="http://json-schema.org/draft-07/schema#";else console.warn(`Invalid target: ${this.target}`);Object.assign($,Y.def);let O=K.external?.defs??{};for(let H of this.seen.entries()){let j=H[1];if(j.def&&j.defId)O[j.defId]=j.def}if(!K.external&&Object.keys(O).length>0)if(this.target==="draft-2020-12")$.$defs=O;else $.definitions=O;try{return JSON.parse(JSON.stringify($))}catch(H){throw Error("Error converting schema to JSON.")}}}function rQ(A,q){if(A instanceof wy6){let Y=new l61(q),z={};for(let $ of A._idmap.entries()){let[O,H]=$;Y.process(H)}let w={},_={registry:A,uri:q?.uri||(($)=>$),defs:z};for(let $ of A._idmap.entries()){let[O,H]=$;w[O]=Y.emit(H,{...q,external:_})}if(Object.keys(z).length>0){let $=Y.target==="draft-2020-12"?"$defs":"definitions";w.__shared={[$]:z}}return{schemas:w}}let K=new l61(q);return K.process(A),K.emit(A,q)}function PD(A,q){let K=q??{seen:new Set};if(K.seen.has(A))return!1;K.seen.add(A);let z=A._zod.def;switch(z.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return PD(z.element,K);case"object":{for(let w in z.shape)if(PD(z.shape[w],K))return!0;return!1}case"union":{for(let w of z.options)if(PD(w,K))return!0;return!1}case"intersection":return PD(z.left,K)||PD(z.right,K);case"tuple":{for(let w of z.items)if(PD(w,K))return!0;if(z.rest&&PD(z.rest,K))return!0;return!1}case"record":return PD(z.keyType,K)||PD(z.valueType,K);case"map":return PD(z.keyType,K)||PD(z.valueType,K);case"set":return PD(z.valueType,K);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return PD(z.innerType,K);case"lazy":return PD(z.getter(),K);case"default":return PD(z.innerType,K);case"prefault":return PD(z.innerType,K);case"custom":return!1;case"transform":return!0;case"pipe":return PD(z.in,K)||PD(z.out,K);case"success":return!1;case"catch":return!1;default:}throw Error(`Unknown schema type: ${z.type}`)}var a7A=E(()=>{Np1();K3()});var s7A={};var t7A=()=>{};var nu={};d1(nu,{version:()=>CB1,util:()=>U7,treeifyError:()=>um1,toJSONSchema:()=>rQ,toDotPath:()=>dAA,safeParseAsync:()=>tL6,safeParse:()=>yO6,registry:()=>N61,regexes:()=>i76,prettifyError:()=>mm1,parseAsync:()=>sL6,parse:()=>aL6,locales:()=>hO6,isValidJWT:()=>$7A,isValidBase64URL:()=>_7A,isValidBase64:()=>eB1,globalRegistry:()=>iu,globalConfig:()=>gL6,function:()=>MF1,formatError:()=>oL6,flattenError:()=>rL6,config:()=>eJ,clone:()=>UN,_xid:()=>u61,_void:()=>op1,_uuidv7:()=>R61,_uuidv6:()=>y61,_uuidv4:()=>L61,_uuid:()=>E61,_url:()=>S61,_uppercase:()=>jy6,_unknown:()=>CO6,_union:()=>Neq,_undefined:()=>lp1,_ulid:()=>b61,_uint64:()=>dp1,_uint32:()=>Bp1,_tuple:()=>zF1,_trim:()=>Wy6,_transform:()=>Ieq,_toUpperCase:()=>Zy6,_toLowerCase:()=>Gy6,_templateLiteral:()=>Qeq,_symbol:()=>cp1,_success:()=>Beq,_stringbool:()=>OF1,_stringFormat:()=>HF1,_string:()=>kp1,_startsWith:()=>My6,_size:()=>$y6,_set:()=>Req,_safeParseAsync:()=>H61,_safeParse:()=>O61,_regex:()=>Oy6,_refine:()=>$F1,_record:()=>Leq,_readonly:()=>Feq,_property:()=>YF1,_promise:()=>deq,_positive:()=>ep1,_pipe:()=>peq,_parseAsync:()=>$61,_parse:()=>_61,_overwrite:()=>nQ,_optional:()=>xeq,_number:()=>Cp1,_nullable:()=>beq,_null:()=>ip1,_normalize:()=>Py6,_nonpositive:()=>qF1,_nonoptional:()=>meq,_nonnegative:()=>KF1,_never:()=>rp1,_negative:()=>AF1,_nativeEnum:()=>heq,_nanoid:()=>C61,_nan:()=>tp1,_multipleOf:()=>o76,_minSize:()=>a76,_minLength:()=>Mo,_min:()=>Yv,_mime:()=>Xy6,_maxSize:()=>IO6,_maxLength:()=>xO6,_max:()=>dL,_map:()=>yeq,_lte:()=>dL,_lt:()=>lQ,_lowercase:()=>Hy6,_literal:()=>Ceq,_length:()=>bO6,_lazy:()=>Ueq,_ksuid:()=>m61,_jwt:()=>c61,_isoTime:()=>Sp1,_isoDuration:()=>hp1,_isoDateTime:()=>yp1,_isoDate:()=>Rp1,_ipv6:()=>g61,_ipv4:()=>B61,_intersection:()=>Eeq,_int64:()=>Up1,_int32:()=>mp1,_int:()=>xp1,_includes:()=>Jy6,_guid:()=>_y6,_gte:()=>Yv,_gt:()=>iQ,_float64:()=>up1,_float32:()=>bp1,_file:()=>wF1,_enum:()=>Seq,_endsWith:()=>Dy6,_emoji:()=>h61,_email:()=>k61,_e164:()=>d61,_discriminatedUnion:()=>keq,_default:()=>ueq,_date:()=>ap1,_custom:()=>_F1,_cuid2:()=>x61,_cuid:()=>I61,_coercedString:()=>Ep1,_coercedNumber:()=>Ip1,_coercedDate:()=>sp1,_coercedBoolean:()=>pp1,_coercedBigint:()=>Qp1,_cidrv6:()=>F61,_cidrv4:()=>p61,_catch:()=>geq,_boolean:()=>gp1,_bigint:()=>Fp1,_base64url:()=>U61,_base64:()=>Q61,_array:()=>fy6,_any:()=>np1,TimePrecision:()=>Lp1,NEVER:()=>pL6,JSONSchemaGenerator:()=>l61,JSONSchema:()=>s7A,Doc:()=>W61,$output:()=>vp1,$input:()=>Vp1,$constructor:()=>N8,$brand:()=>km1,$ZodXID:()=>dB1,$ZodVoid:()=>Mg1,$ZodUnknown:()=>SO6,$ZodUnion:()=>v61,$ZodUndefined:()=>Og1,$ZodUUID:()=>uB1,$ZodURL:()=>BB1,$ZodULID:()=>UB1,$ZodType:()=>v3,$ZodTuple:()=>r76,$ZodTransform:()=>qy6,$ZodTemplateLiteral:()=>Ig1,$ZodSymbol:()=>$g1,$ZodSuccess:()=>Rg1,$ZodStringFormat:()=>q_,$ZodString:()=>n76,$ZodSet:()=>fg1,$ZodRegistry:()=>wy6,$ZodRecord:()=>Gg1,$ZodRealError:()=>LO6,$ZodReadonly:()=>Cg1,$ZodPromise:()=>xg1,$ZodPrefault:()=>Lg1,$ZodPipe:()=>Ky6,$ZodOptional:()=>Ng1,$ZodObject:()=>Xg1,$ZodNumberFormat:()=>wg1,$ZodNumber:()=>f61,$ZodNullable:()=>kg1,$ZodNull:()=>Hg1,$ZodNonOptional:()=>yg1,$ZodNever:()=>Jg1,$ZodNanoID:()=>pB1,$ZodNaN:()=>hg1,$ZodMap:()=>Zg1,$ZodLiteral:()=>vg1,$ZodLazy:()=>bg1,$ZodKSUID:()=>cB1,$ZodJWT:()=>Yg1,$ZodIntersection:()=>Wg1,$ZodISOTime:()=>nB1,$ZodISODuration:()=>rB1,$ZodISODateTime:()=>lB1,$ZodISODate:()=>iB1,$ZodIPv6:()=>aB1,$ZodIPv4:()=>oB1,$ZodGUID:()=>bB1,$ZodFunction:()=>JF1,$ZodFile:()=>Vg1,$ZodError:()=>nL6,$ZodEnum:()=>Tg1,$ZodEmoji:()=>gB1,$ZodEmail:()=>mB1,$ZodE164:()=>Kg1,$ZodDiscriminatedUnion:()=>Pg1,$ZodDefault:()=>Eg1,$ZodDate:()=>Dg1,$ZodCustomStringFormat:()=>zg1,$ZodCustom:()=>ug1,$ZodCheckUpperCase:()=>kB1,$ZodCheckStringFormat:()=>RO6,$ZodCheckStartsWith:()=>LB1,$ZodCheckSizeEquals:()=>ZB1,$ZodCheckRegex:()=>VB1,$ZodCheckProperty:()=>RB1,$ZodCheckOverwrite:()=>hB1,$ZodCheckNumberFormat:()=>XB1,$ZodCheckMultipleOf:()=>DB1,$ZodCheckMinSize:()=>GB1,$ZodCheckMinLength:()=>TB1,$ZodCheckMimeType:()=>SB1,$ZodCheckMaxSize:()=>WB1,$ZodCheckMaxLength:()=>fB1,$ZodCheckLowerCase:()=>NB1,$ZodCheckLessThan:()=>D61,$ZodCheckLengthEquals:()=>vB1,$ZodCheckIncludes:()=>EB1,$ZodCheckGreaterThan:()=>X61,$ZodCheckEndsWith:()=>yB1,$ZodCheckBigIntFormat:()=>PB1,$ZodCheck:()=>MH,$ZodCatch:()=>Sg1,$ZodCUID2:()=>QB1,$ZodCUID:()=>FB1,$ZodCIDRv6:()=>tB1,$ZodCIDRv4:()=>sB1,$ZodBoolean:()=>eL6,$ZodBigIntFormat:()=>_g1,$ZodBigInt:()=>T61,$ZodBase64URL:()=>qg1,$ZodBase64:()=>Ag1,$ZodAsyncError:()=>dQ,$ZodArray:()=>Ay6,$ZodAny:()=>jg1});var iZ=E(()=>{K3();M61();V61();t7A();NO6();j61();Bm1();Yy6();P61();IB1();Np1();o7A();jF1();a7A()});var DF1=E(()=>{iZ()});var uO6={};d1(uO6,{time:()=>WF1,duration:()=>GF1,datetime:()=>XF1,date:()=>PF1,ZodISOTime:()=>r61,ZodISODuration:()=>o61,ZodISODateTime:()=>i61,ZodISODate:()=>n61});function XF1(A){return yp1(i61,A)}function PF1(A){return Rp1(n61,A)}function WF1(A){return Sp1(r61,A)}function GF1(A){return hp1(o61,A)}var i61,n61,r61,o61;var a61=E(()=>{iZ();s61();i61=N8("ZodISODateTime",(A,q)=>{lB1.init(A,q),c_.init(A,q)});n61=N8("ZodISODate",(A,q)=>{iB1.init(A,q),c_.init(A,q)});r61=N8("ZodISOTime",(A,q)=>{nB1.init(A,q),c_.init(A,q)});o61=N8("ZodISODuration",(A,q)=>{rB1.init(A,q),c_.init(A,q)})});var A4A=(A,q)=>{nL6.init(A,q),A.name="ZodError",Object.defineProperties(A,{format:{value:(K)=>oL6(A,K)},flatten:{value:(K)=>rL6(A,K)},addIssue:{value:(K)=>A.issues.push(K)},addIssues:{value:(K)=>A.issues.push(...K)},isEmpty:{get(){return A.issues.length===0}}})},leq,mO6;var ZF1=E(()=>{iZ();iZ();leq=N8("ZodError",A4A),mO6=N8("ZodError",A4A,{Parent:Error})});var fF1,TF1,vF1,VF1;var NF1=E(()=>{iZ();ZF1();fF1=_61(mO6),TF1=$61(mO6),vF1=O61(mO6),VF1=H61(mO6)});function n1(A){return kp1(vy6,A)}function neq(A){return k61(LF1,A)}function req(A){return _y6(t61,A)}function oeq(A){return E61(oQ,A)}function aeq(A){return L61(oQ,A)}function seq(A){return y61(oQ,A)}function teq(A){return R61(oQ,A)}function RF1(A){return S61(yF1,A)}function eeq(A){return h61(SF1,A)}function A6K(A){return C61(hF1,A)}function q6K(A){return I61(CF1,A)}function K6K(A){return x61(IF1,A)}function Y6K(A){return b61(xF1,A)}function z6K(A){return u61(bF1,A)}function w6K(A){return m61(uF1,A)}function _6K(A){return B61(mF1,A)}function $6K(A){return g61(BF1,A)}function O6K(A){return p61(gF1,A)}function H6K(A){return F61(pF1,A)}function j6K(A){return Q61(FF1,A)}function J6K(A){return U61(QF1,A)}function M6K(A){return d61(UF1,A)}function D6K(A){return c61(dF1,A)}function X6K(A,q,K={}){return HF1(q4A,A,q,K)}function UY(A){return Cp1(Vy6,A)}function kF1(A){return xp1(BO6,A)}function P6K(A){return bp1(BO6,A)}function W6K(A){return up1(BO6,A)}function G6K(A){return mp1(BO6,A)}function Z6K(A){return Bp1(BO6,A)}function rw(A){return gp1(Ny6,A)}function f6K(A){return Fp1(ky6,A)}function T6K(A){return Up1(cF1,A)}function v6K(A){return dp1(cF1,A)}function V6K(A){return cp1(K4A,A)}function N6K(A){return lp1(Y4A,A)}function Ey6(A){return ip1(z4A,A)}function lF1(){return np1(w4A)}function u$(){return CO6(_4A)}function q11(A){return rp1($4A,A)}function k6K(A){return op1(O4A,A)}function E6K(A){return ap1(K11,A)}function d7(A,q){return fy6(H4A,A,q)}function L6K(A){let q=A._zod.def.shape;return $q(Object.keys(q))}function z4(A,q){let K={type:"object",get shape(){return U7.assignProp(this,"shape",{...A}),this.shape},...U7.normalizeParams(q)};return new Y11(K)}function y6K(A,q){return new Y11({type:"object",get shape(){return U7.assignProp(this,"shape",{...A}),this.shape},catchall:q11(),...U7.normalizeParams(q)})}function AM(A,q){return new Y11({type:"object",get shape(){return U7.assignProp(this,"shape",{...A}),this.shape},catchall:u$(),...U7.normalizeParams(q)})}function ow(A,q){return new iF1({type:"union",options:A,...U7.normalizeParams(q)})}function z11(A,q,K){return new j4A({type:"union",options:q,discriminator:A,...U7.normalizeParams(K)})}function Ly6(A,q){return new J4A({type:"intersection",left:A,right:q})}function R6K(A,q,K){let Y=q instanceof v3,z=Y?K:q;return new M4A({type:"tuple",items:A,rest:Y?q:null,...U7.normalizeParams(z)})}function l_(A,q,K){return new nF1({type:"record",keyType:A,valueType:q,...U7.normalizeParams(K)})}function S6K(A,q,K){return new nF1({type:"record",keyType:ow([A,q11()]),valueType:q,...U7.normalizeParams(K)})}function h6K(A,q,K){return new D4A({type:"map",keyType:A,valueType:q,...U7.normalizeParams(K)})}function C6K(A,q){return new X4A({type:"set",valueType:A,...U7.normalizeParams(q)})}function nZ(A,q){let K=Array.isArray(A)?Object.fromEntries(A.map((Y)=>[Y,Y])):A;return new Ty6({type:"enum",entries:K,...U7.normalizeParams(q)})}function I6K(A,q){return new Ty6({type:"enum",entries:A,...U7.normalizeParams(q)})}function $q(A,q){return new P4A({type:"literal",values:Array.isArray(A)?A:[A],...U7.normalizeParams(q)})}function x6K(A){return wF1(W4A,A)}function oF1(A){return new rF1({type:"transform",transform:A})}function m$(A){return new aF1({type:"optional",innerType:A})}function e61(A){return new G4A({type:"nullable",innerType:A})}function b6K(A){return m$(e61(A))}function f4A(A,q){return new Z4A({type:"default",innerType:A,get defaultValue(){return typeof q==="function"?q():q}})}function v4A(A,q){return new T4A({type:"prefault",innerType:A,get defaultValue(){return typeof q==="function"?q():q}})}function V4A(A,q){return new sF1({type:"nonoptional",innerType:A,...U7.normalizeParams(q)})}function u6K(A){return new N4A({type:"success",innerType:A})}function E4A(A,q){return new k4A({type:"catch",innerType:A,catchValue:typeof q==="function"?q:()=>q})}function m6K(A){return tp1(L4A,A)}function A11(A,q){return new tF1({type:"pipe",in:A,out:q})}function R4A(A){return new y4A({type:"readonly",innerType:A})}function B6K(A,q){return new S4A({type:"template_literal",parts:A,...U7.normalizeParams(q)})}function C4A(A){return new h4A({type:"lazy",getter:A})}function g6K(A){return new I4A({type:"promise",innerType:A})}function x4A(A,q){let K=new MH({check:"custom",...U7.normalizeParams(q)});return K._zod.check=A,K}function eF1(A,q){return _F1(w11,A??(()=>!0),q)}function b4A(A,q={}){return $F1(w11,A,q)}function u4A(A,q){let K=x4A((Y)=>{return Y.addIssue=(z)=>{if(typeof z==="string")Y.issues.push(U7.issue(z,Y.value,K._zod.def));else{let w=z;if(w.fatal)w.continue=!1;w.code??(w.code="custom"),w.input??(w.input=Y.value),w.inst??(w.inst=K),w.continue??(w.continue=!K._zod.def.abort),Y.issues.push(U7.issue(w))}},A(Y.value,Y)},q);return K}function p6K(A,q={error:`Input not instance of ${A.name}`}){let K=new w11({type:"custom",check:"custom",fn:(Y)=>Y instanceof A,abort:!0,...U7.normalizeParams(q)});return K._zod.bag.Class=A,K}function Q6K(A){let q=C4A(()=>{return ow([n1(A),UY(),rw(),Ey6(),d7(q),l_(n1(),q)])});return q}function _11(A,q){return A11(oF1(A),q)}var J9,EF1,vy6,c_,LF1,t61,oQ,yF1,SF1,hF1,CF1,IF1,xF1,bF1,uF1,mF1,BF1,gF1,pF1,FF1,QF1,UF1,dF1,q4A,Vy6,BO6,Ny6,ky6,cF1,K4A,Y4A,z4A,w4A,_4A,$4A,O4A,K11,H4A,Y11,iF1,j4A,J4A,M4A,nF1,D4A,X4A,Ty6,P4A,W4A,rF1,aF1,G4A,Z4A,T4A,sF1,N4A,k4A,L4A,tF1,y4A,S4A,h4A,I4A,w11,F6K=(...A)=>OF1({Pipe:tF1,Boolean:Ny6,String:vy6,Transform:rF1},...A);var s61=E(()=>{iZ();iZ();DF1();a61();NF1();J9=N8("ZodType",(A,q)=>{return v3.init(A,q),A.def=q,Object.defineProperty(A,"_def",{value:q}),A.check=(...K)=>{return A.clone({...q,checks:[...q.checks??[],...K.map((Y)=>typeof Y==="function"?{_zod:{check:Y,def:{check:"custom"},onattach:[]}}:Y)]})},A.clone=(K,Y)=>UN(A,K,Y),A.brand=()=>A,A.register=(K,Y)=>{return K.add(A,Y),A},A.parse=(K,Y)=>fF1(A,K,Y,{callee:A.parse}),A.safeParse=(K,Y)=>vF1(A,K,Y),A.parseAsync=async(K,Y)=>TF1(A,K,Y,{callee:A.parseAsync}),A.safeParseAsync=async(K,Y)=>VF1(A,K,Y),A.spa=A.safeParseAsync,A.refine=(K,Y)=>A.check(b4A(K,Y)),A.superRefine=(K)=>A.check(u4A(K)),A.overwrite=(K)=>A.check(nQ(K)),A.optional=()=>m$(A),A.nullable=()=>e61(A),A.nullish=()=>m$(e61(A)),A.nonoptional=(K)=>V4A(A,K),A.array=()=>d7(A),A.or=(K)=>ow([A,K]),A.and=(K)=>Ly6(A,K),A.transform=(K)=>A11(A,oF1(K)),A.default=(K)=>f4A(A,K),A.prefault=(K)=>v4A(A,K),A.catch=(K)=>E4A(A,K),A.pipe=(K)=>A11(A,K),A.readonly=()=>R4A(A),A.describe=(K)=>{let Y=A.clone();return iu.add(Y,{description:K}),Y},Object.defineProperty(A,"description",{get(){return iu.get(A)?.description},configurable:!0}),A.meta=(...K)=>{if(K.length===0)return iu.get(A);let Y=A.clone();return iu.add(Y,K[0]),Y},A.isOptional=()=>A.safeParse(void 0).success,A.isNullable=()=>A.safeParse(null).success,A}),EF1=N8("_ZodString",(A,q)=>{n76.init(A,q),J9.init(A,q);let K=A._zod.bag;A.format=K.format??null,A.minLength=K.minimum??null,A.maxLength=K.maximum??null,A.regex=(...Y)=>A.check(Oy6(...Y)),A.includes=(...Y)=>A.check(Jy6(...Y)),A.startsWith=(...Y)=>A.check(My6(...Y)),A.endsWith=(...Y)=>A.check(Dy6(...Y)),A.min=(...Y)=>A.check(Mo(...Y)),A.max=(...Y)=>A.check(xO6(...Y)),A.length=(...Y)=>A.check(bO6(...Y)),A.nonempty=(...Y)=>A.check(Mo(1,...Y)),A.lowercase=(Y)=>A.check(Hy6(Y)),A.uppercase=(Y)=>A.check(jy6(Y)),A.trim=()=>A.check(Wy6()),A.normalize=(...Y)=>A.check(Py6(...Y)),A.toLowerCase=()=>A.check(Gy6()),A.toUpperCase=()=>A.check(Zy6())}),vy6=N8("ZodString",(A,q)=>{n76.init(A,q),EF1.init(A,q),A.email=(K)=>A.check(k61(LF1,K)),A.url=(K)=>A.check(S61(yF1,K)),A.jwt=(K)=>A.check(c61(dF1,K)),A.emoji=(K)=>A.check(h61(SF1,K)),A.guid=(K)=>A.check(_y6(t61,K)),A.uuid=(K)=>A.check(E61(oQ,K)),A.uuidv4=(K)=>A.check(L61(oQ,K)),A.uuidv6=(K)=>A.check(y61(oQ,K)),A.uuidv7=(K)=>A.check(R61(oQ,K)),A.nanoid=(K)=>A.check(C61(hF1,K)),A.guid=(K)=>A.check(_y6(t61,K)),A.cuid=(K)=>A.check(I61(CF1,K)),A.cuid2=(K)=>A.check(x61(IF1,K)),A.ulid=(K)=>A.check(b61(xF1,K)),A.base64=(K)=>A.check(Q61(FF1,K)),A.base64url=(K)=>A.check(U61(QF1,K)),A.xid=(K)=>A.check(u61(bF1,K)),A.ksuid=(K)=>A.check(m61(uF1,K)),A.ipv4=(K)=>A.check(B61(mF1,K)),A.ipv6=(K)=>A.check(g61(BF1,K)),A.cidrv4=(K)=>A.check(p61(gF1,K)),A.cidrv6=(K)=>A.check(F61(pF1,K)),A.e164=(K)=>A.check(d61(UF1,K)),A.datetime=(K)=>A.check(XF1(K)),A.date=(K)=>A.check(PF1(K)),A.time=(K)=>A.check(WF1(K)),A.duration=(K)=>A.check(GF1(K))});c_=N8("ZodStringFormat",(A,q)=>{q_.init(A,q),EF1.init(A,q)}),LF1=N8("ZodEmail",(A,q)=>{mB1.init(A,q),c_.init(A,q)});t61=N8("ZodGUID",(A,q)=>{bB1.init(A,q),c_.init(A,q)});oQ=N8("ZodUUID",(A,q)=>{uB1.init(A,q),c_.init(A,q)});yF1=N8("ZodURL",(A,q)=>{BB1.init(A,q),c_.init(A,q)});SF1=N8("ZodEmoji",(A,q)=>{gB1.init(A,q),c_.init(A,q)});hF1=N8("ZodNanoID",(A,q)=>{pB1.init(A,q),c_.init(A,q)});CF1=N8("ZodCUID",(A,q)=>{FB1.init(A,q),c_.init(A,q)});IF1=N8("ZodCUID2",(A,q)=>{QB1.init(A,q),c_.init(A,q)});xF1=N8("ZodULID",(A,q)=>{UB1.init(A,q),c_.init(A,q)});bF1=N8("ZodXID",(A,q)=>{dB1.init(A,q),c_.init(A,q)});uF1=N8("ZodKSUID",(A,q)=>{cB1.init(A,q),c_.init(A,q)});mF1=N8("ZodIPv4",(A,q)=>{oB1.init(A,q),c_.init(A,q)});BF1=N8("ZodIPv6",(A,q)=>{aB1.init(A,q),c_.init(A,q)});gF1=N8("ZodCIDRv4",(A,q)=>{sB1.init(A,q),c_.init(A,q)});pF1=N8("ZodCIDRv6",(A,q)=>{tB1.init(A,q),c_.init(A,q)});FF1=N8("ZodBase64",(A,q)=>{Ag1.init(A,q),c_.init(A,q)});QF1=N8("ZodBase64URL",(A,q)=>{qg1.init(A,q),c_.init(A,q)});UF1=N8("ZodE164",(A,q)=>{Kg1.init(A,q),c_.init(A,q)});dF1=N8("ZodJWT",(A,q)=>{Yg1.init(A,q),c_.init(A,q)});q4A=N8("ZodCustomStringFormat",(A,q)=>{zg1.init(A,q),c_.init(A,q)});Vy6=N8("ZodNumber",(A,q)=>{f61.init(A,q),J9.init(A,q),A.gt=(Y,z)=>A.check(iQ(Y,z)),A.gte=(Y,z)=>A.check(Yv(Y,z)),A.min=(Y,z)=>A.check(Yv(Y,z)),A.lt=(Y,z)=>A.check(lQ(Y,z)),A.lte=(Y,z)=>A.check(dL(Y,z)),A.max=(Y,z)=>A.check(dL(Y,z)),A.int=(Y)=>A.check(kF1(Y)),A.safe=(Y)=>A.check(kF1(Y)),A.positive=(Y)=>A.check(iQ(0,Y)),A.nonnegative=(Y)=>A.check(Yv(0,Y)),A.negative=(Y)=>A.check(lQ(0,Y)),A.nonpositive=(Y)=>A.check(dL(0,Y)),A.multipleOf=(Y,z)=>A.check(o76(Y,z)),A.step=(Y,z)=>A.check(o76(Y,z)),A.finite=()=>A;let K=A._zod.bag;A.minValue=Math.max(K.minimum??Number.NEGATIVE_INFINITY,K.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,A.maxValue=Math.min(K.maximum??Number.POSITIVE_INFINITY,K.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,A.isInt=(K.format??"").includes("int")||Number.isSafeInteger(K.multipleOf??0.5),A.isFinite=!0,A.format=K.format??null});BO6=N8("ZodNumberFormat",(A,q)=>{wg1.init(A,q),Vy6.init(A,q)});Ny6=N8("ZodBoolean",(A,q)=>{eL6.init(A,q),J9.init(A,q)});ky6=N8("ZodBigInt",(A,q)=>{T61.init(A,q),J9.init(A,q),A.gte=(Y,z)=>A.check(Yv(Y,z)),A.min=(Y,z)=>A.check(Yv(Y,z)),A.gt=(Y,z)=>A.check(iQ(Y,z)),A.gte=(Y,z)=>A.check(Yv(Y,z)),A.min=(Y,z)=>A.check(Yv(Y,z)),A.lt=(Y,z)=>A.check(lQ(Y,z)),A.lte=(Y,z)=>A.check(dL(Y,z)),A.max=(Y,z)=>A.check(dL(Y,z)),A.positive=(Y)=>A.check(iQ(BigInt(0),Y)),A.negative=(Y)=>A.check(lQ(BigInt(0),Y)),A.nonpositive=(Y)=>A.check(dL(BigInt(0),Y)),A.nonnegative=(Y)=>A.check(Yv(BigInt(0),Y)),A.multipleOf=(Y,z)=>A.check(o76(Y,z));let K=A._zod.bag;A.minValue=K.minimum??null,A.maxValue=K.maximum??null,A.format=K.format??null});cF1=N8("ZodBigIntFormat",(A,q)=>{_g1.init(A,q),ky6.init(A,q)});K4A=N8("ZodSymbol",(A,q)=>{$g1.init(A,q),J9.init(A,q)});Y4A=N8("ZodUndefined",(A,q)=>{Og1.init(A,q),J9.init(A,q)});z4A=N8("ZodNull",(A,q)=>{Hg1.init(A,q),J9.init(A,q)});w4A=N8("ZodAny",(A,q)=>{jg1.init(A,q),J9.init(A,q)});_4A=N8("ZodUnknown",(A,q)=>{SO6.init(A,q),J9.init(A,q)});$4A=N8("ZodNever",(A,q)=>{Jg1.init(A,q),J9.init(A,q)});O4A=N8("ZodVoid",(A,q)=>{Mg1.init(A,q),J9.init(A,q)});K11=N8("ZodDate",(A,q)=>{Dg1.init(A,q),J9.init(A,q),A.min=(Y,z)=>A.check(Yv(Y,z)),A.max=(Y,z)=>A.check(dL(Y,z));let K=A._zod.bag;A.minDate=K.minimum?new Date(K.minimum):null,A.maxDate=K.maximum?new Date(K.maximum):null});H4A=N8("ZodArray",(A,q)=>{Ay6.init(A,q),J9.init(A,q),A.element=q.element,A.min=(K,Y)=>A.check(Mo(K,Y)),A.nonempty=(K)=>A.check(Mo(1,K)),A.max=(K,Y)=>A.check(xO6(K,Y)),A.length=(K,Y)=>A.check(bO6(K,Y)),A.unwrap=()=>A.element});Y11=N8("ZodObject",(A,q)=>{Xg1.init(A,q),J9.init(A,q),U7.defineLazy(A,"shape",()=>q.shape),A.keyof=()=>nZ(Object.keys(A._zod.def.shape)),A.catchall=(K)=>A.clone({...A._zod.def,catchall:K}),A.passthrough=()=>A.clone({...A._zod.def,catchall:u$()}),A.loose=()=>A.clone({...A._zod.def,catchall:u$()}),A.strict=()=>A.clone({...A._zod.def,catchall:q11()}),A.strip=()=>A.clone({...A._zod.def,catchall:void 0}),A.extend=(K)=>{return U7.extend(A,K)},A.merge=(K)=>U7.merge(A,K),A.pick=(K)=>U7.pick(A,K),A.omit=(K)=>U7.omit(A,K),A.partial=(...K)=>U7.partial(aF1,A,K[0]),A.required=(...K)=>U7.required(sF1,A,K[0])});iF1=N8("ZodUnion",(A,q)=>{v61.init(A,q),J9.init(A,q),A.options=q.options});j4A=N8("ZodDiscriminatedUnion",(A,q)=>{iF1.init(A,q),Pg1.init(A,q)});J4A=N8("ZodIntersection",(A,q)=>{Wg1.init(A,q),J9.init(A,q)});M4A=N8("ZodTuple",(A,q)=>{r76.init(A,q),J9.init(A,q),A.rest=(K)=>A.clone({...A._zod.def,rest:K})});nF1=N8("ZodRecord",(A,q)=>{Gg1.init(A,q),J9.init(A,q),A.keyType=q.keyType,A.valueType=q.valueType});D4A=N8("ZodMap",(A,q)=>{Zg1.init(A,q),J9.init(A,q),A.keyType=q.keyType,A.valueType=q.valueType});X4A=N8("ZodSet",(A,q)=>{fg1.init(A,q),J9.init(A,q),A.min=(...K)=>A.check(a76(...K)),A.nonempty=(K)=>A.check(a76(1,K)),A.max=(...K)=>A.check(IO6(...K)),A.size=(...K)=>A.check($y6(...K))});Ty6=N8("ZodEnum",(A,q)=>{Tg1.init(A,q),J9.init(A,q),A.enum=q.entries,A.options=Object.values(q.entries);let K=new Set(Object.keys(q.entries));A.extract=(Y,z)=>{let w={};for(let _ of Y)if(K.has(_))w[_]=q.entries[_];else throw Error(`Key ${_} not found in enum`);return new Ty6({...q,checks:[],...U7.normalizeParams(z),entries:w})},A.exclude=(Y,z)=>{let w={...q.entries};for(let _ of Y)if(K.has(_))delete w[_];else throw Error(`Key ${_} not found in enum`);return new Ty6({...q,checks:[],...U7.normalizeParams(z),entries:w})}});P4A=N8("ZodLiteral",(A,q)=>{vg1.init(A,q),J9.init(A,q),A.values=new Set(q.values),Object.defineProperty(A,"value",{get(){if(q.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return q.values[0]}})});W4A=N8("ZodFile",(A,q)=>{Vg1.init(A,q),J9.init(A,q),A.min=(K,Y)=>A.check(a76(K,Y)),A.max=(K,Y)=>A.check(IO6(K,Y)),A.mime=(K,Y)=>A.check(Xy6(Array.isArray(K)?K:[K],Y))});rF1=N8("ZodTransform",(A,q)=>{qy6.init(A,q),J9.init(A,q),A._zod.parse=(K,Y)=>{K.addIssue=(w)=>{if(typeof w==="string")K.issues.push(U7.issue(w,K.value,q));else{let _=w;if(_.fatal)_.continue=!1;_.code??(_.code="custom"),_.input??(_.input=K.value),_.inst??(_.inst=A),_.continue??(_.continue=!0),K.issues.push(U7.issue(_))}};let z=q.transform(K.value,K);if(z instanceof Promise)return z.then((w)=>{return K.value=w,K});return K.value=z,K}});aF1=N8("ZodOptional",(A,q)=>{Ng1.init(A,q),J9.init(A,q),A.unwrap=()=>A._zod.def.innerType});G4A=N8("ZodNullable",(A,q)=>{kg1.init(A,q),J9.init(A,q),A.unwrap=()=>A._zod.def.innerType});Z4A=N8("ZodDefault",(A,q)=>{Eg1.init(A,q),J9.init(A,q),A.unwrap=()=>A._zod.def.innerType,A.removeDefault=A.unwrap});T4A=N8("ZodPrefault",(A,q)=>{Lg1.init(A,q),J9.init(A,q),A.unwrap=()=>A._zod.def.innerType});sF1=N8("ZodNonOptional",(A,q)=>{yg1.init(A,q),J9.init(A,q),A.unwrap=()=>A._zod.def.innerType});N4A=N8("ZodSuccess",(A,q)=>{Rg1.init(A,q),J9.init(A,q),A.unwrap=()=>A._zod.def.innerType});k4A=N8("ZodCatch",(A,q)=>{Sg1.init(A,q),J9.init(A,q),A.unwrap=()=>A._zod.def.innerType,A.removeCatch=A.unwrap});L4A=N8("ZodNaN",(A,q)=>{hg1.init(A,q),J9.init(A,q)});tF1=N8("ZodPipe",(A,q)=>{Ky6.init(A,q),J9.init(A,q),A.in=q.in,A.out=q.out});y4A=N8("ZodReadonly",(A,q)=>{Cg1.init(A,q),J9.init(A,q)});S4A=N8("ZodTemplateLiteral",(A,q)=>{Ig1.init(A,q),J9.init(A,q)});h4A=N8("ZodLazy",(A,q)=>{bg1.init(A,q),J9.init(A,q),A.unwrap=()=>A._zod.def.getter()});I4A=N8("ZodPromise",(A,q)=>{xg1.init(A,q),J9.init(A,q),A.unwrap=()=>A._zod.def.innerType});w11=N8("ZodCustom",(A,q)=>{ug1.init(A,q),J9.init(A,q)})});function U6K(A){eJ({customError:A})}function d6K(){return eJ().customError}var AQ1;var m4A=E(()=>{iZ();AQ1={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"}});var yy6={};d1(yy6,{string:()=>c6K,number:()=>l6K,date:()=>r6K,boolean:()=>i6K,bigint:()=>n6K});function c6K(A){return Ep1(vy6,A)}function l6K(A){return Ip1(Vy6,A)}function i6K(A){return pp1(Ny6,A)}function n6K(A){return Qp1(ky6,A)}function r6K(A){return sp1(K11,A)}var B4A=E(()=>{iZ();s61()});var I={};d1(I,{xid:()=>z6K,void:()=>k6K,uuidv7:()=>teq,uuidv6:()=>seq,uuidv4:()=>aeq,uuid:()=>oeq,url:()=>RF1,uppercase:()=>jy6,unknown:()=>u$,union:()=>ow,undefined:()=>N6K,ulid:()=>Y6K,uint64:()=>v6K,uint32:()=>Z6K,tuple:()=>R6K,trim:()=>Wy6,treeifyError:()=>um1,transform:()=>oF1,toUpperCase:()=>Zy6,toLowerCase:()=>Gy6,toJSONSchema:()=>rQ,templateLiteral:()=>B6K,symbol:()=>V6K,superRefine:()=>u4A,success:()=>u6K,stringbool:()=>F6K,stringFormat:()=>X6K,string:()=>n1,strictObject:()=>y6K,startsWith:()=>My6,size:()=>$y6,setErrorMap:()=>U6K,set:()=>C6K,safeParseAsync:()=>VF1,safeParse:()=>vF1,registry:()=>N61,regexes:()=>i76,regex:()=>Oy6,refine:()=>b4A,record:()=>l_,readonly:()=>R4A,property:()=>YF1,promise:()=>g6K,prettifyError:()=>mm1,preprocess:()=>_11,prefault:()=>v4A,positive:()=>ep1,pipe:()=>A11,partialRecord:()=>S6K,parseAsync:()=>TF1,parse:()=>fF1,overwrite:()=>nQ,optional:()=>m$,object:()=>z4,number:()=>UY,nullish:()=>b6K,nullable:()=>e61,null:()=>Ey6,normalize:()=>Py6,nonpositive:()=>qF1,nonoptional:()=>V4A,nonnegative:()=>KF1,never:()=>q11,negative:()=>AF1,nativeEnum:()=>I6K,nanoid:()=>A6K,nan:()=>m6K,multipleOf:()=>o76,minSize:()=>a76,minLength:()=>Mo,mime:()=>Xy6,maxSize:()=>IO6,maxLength:()=>xO6,map:()=>h6K,lte:()=>dL,lt:()=>lQ,lowercase:()=>Hy6,looseObject:()=>AM,locales:()=>hO6,literal:()=>$q,length:()=>bO6,lazy:()=>C4A,ksuid:()=>w6K,keyof:()=>L6K,jwt:()=>D6K,json:()=>Q6K,iso:()=>uO6,ipv6:()=>$6K,ipv4:()=>_6K,intersection:()=>Ly6,int64:()=>T6K,int32:()=>G6K,int:()=>kF1,instanceof:()=>p6K,includes:()=>Jy6,guid:()=>req,gte:()=>Yv,gt:()=>iQ,globalRegistry:()=>iu,getErrorMap:()=>d6K,function:()=>MF1,formatError:()=>oL6,float64:()=>W6K,float32:()=>P6K,flattenError:()=>rL6,file:()=>x6K,enum:()=>nZ,endsWith:()=>Dy6,emoji:()=>eeq,email:()=>neq,e164:()=>M6K,discriminatedUnion:()=>z11,date:()=>E6K,custom:()=>eF1,cuid2:()=>K6K,cuid:()=>q6K,core:()=>nu,config:()=>eJ,coerce:()=>yy6,clone:()=>UN,cidrv6:()=>H6K,cidrv4:()=>O6K,check:()=>x4A,catch:()=>E4A,boolean:()=>rw,bigint:()=>f6K,base64url:()=>J6K,base64:()=>j6K,array:()=>d7,any:()=>lF1,_default:()=>f4A,_ZodString:()=>EF1,ZodXID:()=>bF1,ZodVoid:()=>O4A,ZodUnknown:()=>_4A,ZodUnion:()=>iF1,ZodUndefined:()=>Y4A,ZodUUID:()=>oQ,ZodURL:()=>yF1,ZodULID:()=>xF1,ZodType:()=>J9,ZodTuple:()=>M4A,ZodTransform:()=>rF1,ZodTemplateLiteral:()=>S4A,ZodSymbol:()=>K4A,ZodSuccess:()=>N4A,ZodStringFormat:()=>c_,ZodString:()=>vy6,ZodSet:()=>X4A,ZodRecord:()=>nF1,ZodRealError:()=>mO6,ZodReadonly:()=>y4A,ZodPromise:()=>I4A,ZodPrefault:()=>T4A,ZodPipe:()=>tF1,ZodOptional:()=>aF1,ZodObject:()=>Y11,ZodNumberFormat:()=>BO6,ZodNumber:()=>Vy6,ZodNullable:()=>G4A,ZodNull:()=>z4A,ZodNonOptional:()=>sF1,ZodNever:()=>$4A,ZodNanoID:()=>hF1,ZodNaN:()=>L4A,ZodMap:()=>D4A,ZodLiteral:()=>P4A,ZodLazy:()=>h4A,ZodKSUID:()=>uF1,ZodJWT:()=>dF1,ZodIssueCode:()=>AQ1,ZodIntersection:()=>J4A,ZodISOTime:()=>r61,ZodISODuration:()=>o61,ZodISODateTime:()=>i61,ZodISODate:()=>n61,ZodIPv6:()=>BF1,ZodIPv4:()=>mF1,ZodGUID:()=>t61,ZodFile:()=>W4A,ZodError:()=>leq,ZodEnum:()=>Ty6,ZodEmoji:()=>SF1,ZodEmail:()=>LF1,ZodE164:()=>UF1,ZodDiscriminatedUnion:()=>j4A,ZodDefault:()=>Z4A,ZodDate:()=>K11,ZodCustomStringFormat:()=>q4A,ZodCustom:()=>w11,ZodCatch:()=>k4A,ZodCUID2:()=>IF1,ZodCUID:()=>CF1,ZodCIDRv6:()=>pF1,ZodCIDRv4:()=>gF1,ZodBoolean:()=>Ny6,ZodBigIntFormat:()=>cF1,ZodBigInt:()=>ky6,ZodBase64URL:()=>QF1,ZodBase64:()=>FF1,ZodArray:()=>H4A,ZodAny:()=>w4A,TimePrecision:()=>Lp1,NEVER:()=>pL6,$output:()=>vp1,$input:()=>Vp1,$brand:()=>km1});var qQ1=E(()=>{iZ();iZ();Ug1();iZ();V61();a61();a61();B4A();s61();DF1();ZF1();NF1();m4A();eJ(zy6())});var g4A;var KQ1=E(()=>{qQ1();qQ1();g4A=I});var m4;var _4=E(()=>{KQ1();KQ1();m4=g4A});var Do="2025-11-25",O11,Xo="io.modelcontextprotocol/related-task",H11="2.0",rP,F4A,Q4A,Qsz,o6K,a6K,YQ1,cN,Ry6,U4A=(A)=>Ry6.safeParse(A).success,oP,cL,lL,aP,j11,d4A,Sy6=(A)=>d4A.safeParse(A).success,c4A,l4A=(A)=>c4A.safeParse(A).success,zQ1,s76=(A)=>zQ1.safeParse(A).success,aq,wQ1,i4A=(A)=>wQ1.safeParse(A).success,zC,Usz,aQ,s6K,J11,t6K,hy6,gO6,n4A,e6K,A1K,q1K,K1K,Y1K,z1K,_Q1,w1K,$Q1,M11,r4A=(A)=>M11.safeParse(A).success,D11,_1K,$1K,X11,O1K,Cy6,Iy6,H1K,xy6,sQ,j1K,by6,P11,W11,G11,dsz,Z11,f11,T11,o4A,a4A,s4A,OQ1,t4A,uy6,pO6,e4A,J1K,M1K,t76,D1K,HQ1,jQ1,X1K,P1K,my6,By6,W1K,G1K,Z1K,f1K,T1K,v1K,V1K,N1K,k1K,gy6,E1K,L1K,JQ1,MQ1,DQ1,y1K,R1K,S1K,XQ1,h1K,PQ1,py6,C1K,I1K,AqA,Fy6,Qy6,ru,csz,x1K,e76,Uy6,qqA,dy6,b1K,WQ1,u1K,m1K,B1K,g1K,p1K,F1K,Q1K,$11,U1K,d1K,GQ1,A46,cy6,c1K,l1K,i1K,n1K,r1K,o1K,a1K,s1K,t1K,e1K,A8K,q8K,K8K,Y8K,z8K,tQ,w8K,ly6,Po,_8K,$8K,O8K,H8K,ZQ1,j8K,fQ1,TQ1,J8K,lsz,isz,nsz,rsz,osz,asz,Oq,KqA;var WD=E(()=>{_4();O11=[Do,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],rP=eF1((A)=>A!==null&&(typeof A==="object"||typeof A==="function")),F4A=ow([n1(),UY().int()]),Q4A=n1(),Qsz=AM({ttl:ow([UY(),Ey6()]).optional(),pollInterval:UY().optional()}),o6K=z4({ttl:UY().optional()}),a6K=z4({taskId:n1()}),YQ1=AM({progressToken:F4A.optional(),[Xo]:a6K.optional()}),cN=z4({_meta:YQ1.optional()}),Ry6=cN.extend({task:o6K.optional()}),oP=z4({method:n1(),params:cN.loose().optional()}),cL=z4({_meta:YQ1.optional()}),lL=z4({method:n1(),params:cL.loose().optional()}),aP=AM({_meta:YQ1.optional()}),j11=ow([n1(),UY().int()]),d4A=z4({jsonrpc:$q(H11),id:j11,...oP.shape}).strict(),c4A=z4({jsonrpc:$q(H11),...lL.shape}).strict(),zQ1=z4({jsonrpc:$q(H11),id:j11,result:aP}).strict();(function(A){A[A.ConnectionClosed=-32000]="ConnectionClosed",A[A.RequestTimeout=-32001]="RequestTimeout",A[A.ParseError=-32700]="ParseError",A[A.InvalidRequest=-32600]="InvalidRequest",A[A.MethodNotFound=-32601]="MethodNotFound",A[A.InvalidParams=-32602]="InvalidParams",A[A.InternalError=-32603]="InternalError",A[A.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(aq||(aq={}));wQ1=z4({jsonrpc:$q(H11),id:j11.optional(),error:z4({code:UY().int(),message:n1(),data:u$().optional()})}).strict(),zC=ow([d4A,c4A,zQ1,wQ1]),Usz=ow([zQ1,wQ1]),aQ=aP.strict(),s6K=cL.extend({requestId:j11.optional(),reason:n1().optional()}),J11=lL.extend({method:$q("notifications/cancelled"),params:s6K}),t6K=z4({src:n1(),mimeType:n1().optional(),sizes:d7(n1()).optional(),theme:nZ(["light","dark"]).optional()}),hy6=z4({icons:d7(t6K).optional()}),gO6=z4({name:n1(),title:n1().optional()}),n4A=gO6.extend({...gO6.shape,...hy6.shape,version:n1(),websiteUrl:n1().optional(),description:n1().optional()}),e6K=Ly6(z4({applyDefaults:rw().optional()}),l_(n1(),u$())),A1K=_11((A)=>{if(A&&typeof A==="object"&&!Array.isArray(A)){if(Object.keys(A).length===0)return{form:{}}}return A},Ly6(z4({form:e6K.optional(),url:rP.optional()}),l_(n1(),u$()).optional())),q1K=AM({list:rP.optional(),cancel:rP.optional(),requests:AM({sampling:AM({createMessage:rP.optional()}).optional(),elicitation:AM({create:rP.optional()}).optional()}).optional()}),K1K=AM({list:rP.optional(),cancel:rP.optional(),requests:AM({tools:AM({call:rP.optional()}).optional()}).optional()}),Y1K=z4({experimental:l_(n1(),rP).optional(),sampling:z4({context:rP.optional(),tools:rP.optional()}).optional(),elicitation:A1K.optional(),roots:z4({listChanged:rw().optional()}).optional(),tasks:q1K.optional()}),z1K=cN.extend({protocolVersion:n1(),capabilities:Y1K,clientInfo:n4A}),_Q1=oP.extend({method:$q("initialize"),params:z1K}),w1K=z4({experimental:l_(n1(),rP).optional(),logging:rP.optional(),completions:rP.optional(),prompts:z4({listChanged:rw().optional()}).optional(),resources:z4({subscribe:rw().optional(),listChanged:rw().optional()}).optional(),tools:z4({listChanged:rw().optional()}).optional(),tasks:K1K.optional()}),$Q1=aP.extend({protocolVersion:n1(),capabilities:w1K,serverInfo:n4A,instructions:n1().optional()}),M11=lL.extend({method:$q("notifications/initialized"),params:cL.optional()}),D11=oP.extend({method:$q("ping"),params:cN.optional()}),_1K=z4({progress:UY(),total:m$(UY()),message:m$(n1())}),$1K=z4({...cL.shape,..._1K.shape,progressToken:F4A}),X11=lL.extend({method:$q("notifications/progress"),params:$1K}),O1K=cN.extend({cursor:Q4A.optional()}),Cy6=oP.extend({params:O1K.optional()}),Iy6=aP.extend({nextCursor:Q4A.optional()}),H1K=nZ(["working","input_required","completed","failed","cancelled"]),xy6=z4({taskId:n1(),status:H1K,ttl:ow([UY(),Ey6()]),createdAt:n1(),lastUpdatedAt:n1(),pollInterval:m$(UY()),statusMessage:m$(n1())}),sQ=aP.extend({task:xy6}),j1K=cL.merge(xy6),by6=lL.extend({method:$q("notifications/tasks/status"),params:j1K}),P11=oP.extend({method:$q("tasks/get"),params:cN.extend({taskId:n1()})}),W11=aP.merge(xy6),G11=oP.extend({method:$q("tasks/result"),params:cN.extend({taskId:n1()})}),dsz=aP.loose(),Z11=Cy6.extend({method:$q("tasks/list")}),f11=Iy6.extend({tasks:d7(xy6)}),T11=oP.extend({method:$q("tasks/cancel"),params:cN.extend({taskId:n1()})}),o4A=aP.merge(xy6),a4A=z4({uri:n1(),mimeType:m$(n1()),_meta:l_(n1(),u$()).optional()}),s4A=a4A.extend({text:n1()}),OQ1=n1().refine((A)=>{try{return atob(A),!0}catch{return!1}},{message:"Invalid Base64 string"}),t4A=a4A.extend({blob:OQ1}),uy6=nZ(["user","assistant"]),pO6=z4({audience:d7(uy6).optional(),priority:UY().min(0).max(1).optional(),lastModified:uO6.datetime({offset:!0}).optional()}),e4A=z4({...gO6.shape,...hy6.shape,uri:n1(),description:m$(n1()),mimeType:m$(n1()),annotations:pO6.optional(),_meta:m$(AM({}))}),J1K=z4({...gO6.shape,...hy6.shape,uriTemplate:n1(),description:m$(n1()),mimeType:m$(n1()),annotations:pO6.optional(),_meta:m$(AM({}))}),M1K=Cy6.extend({method:$q("resources/list")}),t76=Iy6.extend({resources:d7(e4A)}),D1K=Cy6.extend({method:$q("resources/templates/list")}),HQ1=Iy6.extend({resourceTemplates:d7(J1K)}),jQ1=cN.extend({uri:n1()}),X1K=jQ1,P1K=oP.extend({method:$q("resources/read"),params:X1K}),my6=aP.extend({contents:d7(ow([s4A,t4A]))}),By6=lL.extend({method:$q("notifications/resources/list_changed"),params:cL.optional()}),W1K=jQ1,G1K=oP.extend({method:$q("resources/subscribe"),params:W1K}),Z1K=jQ1,f1K=oP.extend({method:$q("resources/unsubscribe"),params:Z1K}),T1K=cL.extend({uri:n1()}),v1K=lL.extend({method:$q("notifications/resources/updated"),params:T1K}),V1K=z4({name:n1(),description:m$(n1()),required:m$(rw())}),N1K=z4({...gO6.shape,...hy6.shape,description:m$(n1()),arguments:m$(d7(V1K)),_meta:m$(AM({}))}),k1K=Cy6.extend({method:$q("prompts/list")}),gy6=Iy6.extend({prompts:d7(N1K)}),E1K=cN.extend({name:n1(),arguments:l_(n1(),n1()).optional()}),L1K=oP.extend({method:$q("prompts/get"),params:E1K}),JQ1=z4({type:$q("text"),text:n1(),annotations:pO6.optional(),_meta:l_(n1(),u$()).optional()}),MQ1=z4({type:$q("image"),data:OQ1,mimeType:n1(),annotations:pO6.optional(),_meta:l_(n1(),u$()).optional()}),DQ1=z4({type:$q("audio"),data:OQ1,mimeType:n1(),annotations:pO6.optional(),_meta:l_(n1(),u$()).optional()}),y1K=z4({type:$q("tool_use"),name:n1(),id:n1(),input:l_(n1(),u$()),_meta:l_(n1(),u$()).optional()}),R1K=z4({type:$q("resource"),resource:ow([s4A,t4A]),annotations:pO6.optional(),_meta:l_(n1(),u$()).optional()}),S1K=e4A.extend({type:$q("resource_link")}),XQ1=ow([JQ1,MQ1,DQ1,S1K,R1K]),h1K=z4({role:uy6,content:XQ1}),PQ1=aP.extend({description:n1().optional(),messages:d7(h1K)}),py6=lL.extend({method:$q("notifications/prompts/list_changed"),params:cL.optional()}),C1K=z4({title:n1().optional(),readOnlyHint:rw().optional(),destructiveHint:rw().optional(),idempotentHint:rw().optional(),openWorldHint:rw().optional()}),I1K=z4({taskSupport:nZ(["required","optional","forbidden"]).optional()}),AqA=z4({...gO6.shape,...hy6.shape,description:n1().optional(),inputSchema:z4({type:$q("object"),properties:l_(n1(),rP).optional(),required:d7(n1()).optional()}).catchall(u$()),outputSchema:z4({type:$q("object"),properties:l_(n1(),rP).optional(),required:d7(n1()).optional()}).catchall(u$()).optional(),annotations:C1K.optional(),execution:I1K.optional(),_meta:l_(n1(),u$()).optional()}),Fy6=Cy6.extend({method:$q("tools/list")}),Qy6=Iy6.extend({tools:d7(AqA)}),ru=aP.extend({content:d7(XQ1).default([]),structuredContent:l_(n1(),u$()).optional(),isError:rw().optional()}),csz=ru.or(aP.extend({toolResult:u$()})),x1K=Ry6.extend({name:n1(),arguments:l_(n1(),u$()).optional()}),e76=oP.extend({method:$q("tools/call"),params:x1K}),Uy6=lL.extend({method:$q("notifications/tools/list_changed"),params:cL.optional()}),qqA=z4({autoRefresh:rw().default(!0),debounceMs:UY().int().nonnegative().default(300)}),dy6=nZ(["debug","info","notice","warning","error","critical","alert","emergency"]),b1K=cN.extend({level:dy6}),WQ1=oP.extend({method:$q("logging/setLevel"),params:b1K}),u1K=cL.extend({level:dy6,logger:n1().optional(),data:u$()}),m1K=lL.extend({method:$q("notifications/message"),params:u1K}),B1K=z4({name:n1().optional()}),g1K=z4({hints:d7(B1K).optional(),costPriority:UY().min(0).max(1).optional(),speedPriority:UY().min(0).max(1).optional(),intelligencePriority:UY().min(0).max(1).optional()}),p1K=z4({mode:nZ(["auto","required","none"]).optional()}),F1K=z4({type:$q("tool_result"),toolUseId:n1().describe("The unique identifier for the corresponding tool call."),content:d7(XQ1).default([]),structuredContent:z4({}).loose().optional(),isError:rw().optional(),_meta:l_(n1(),u$()).optional()}),Q1K=z11("type",[JQ1,MQ1,DQ1]),$11=z11("type",[JQ1,MQ1,DQ1,y1K,F1K]),U1K=z4({role:uy6,content:ow([$11,d7($11)]),_meta:l_(n1(),u$()).optional()}),d1K=Ry6.extend({messages:d7(U1K),modelPreferences:g1K.optional(),systemPrompt:n1().optional(),includeContext:nZ(["none","thisServer","allServers"]).optional(),temperature:UY().optional(),maxTokens:UY().int(),stopSequences:d7(n1()).optional(),metadata:rP.optional(),tools:d7(AqA).optional(),toolChoice:p1K.optional()}),GQ1=oP.extend({method:$q("sampling/createMessage"),params:d1K}),A46=aP.extend({model:n1(),stopReason:m$(nZ(["endTurn","stopSequence","maxTokens"]).or(n1())),role:uy6,content:Q1K}),cy6=aP.extend({model:n1(),stopReason:m$(nZ(["endTurn","stopSequence","maxTokens","toolUse"]).or(n1())),role:uy6,content:ow([$11,d7($11)])}),c1K=z4({type:$q("boolean"),title:n1().optional(),description:n1().optional(),default:rw().optional()}),l1K=z4({type:$q("string"),title:n1().optional(),description:n1().optional(),minLength:UY().optional(),maxLength:UY().optional(),format:nZ(["email","uri","date","date-time"]).optional(),default:n1().optional()}),i1K=z4({type:nZ(["number","integer"]),title:n1().optional(),description:n1().optional(),minimum:UY().optional(),maximum:UY().optional(),default:UY().optional()}),n1K=z4({type:$q("string"),title:n1().optional(),description:n1().optional(),enum:d7(n1()),default:n1().optional()}),r1K=z4({type:$q("string"),title:n1().optional(),description:n1().optional(),oneOf:d7(z4({const:n1(),title:n1()})),default:n1().optional()}),o1K=z4({type:$q("string"),title:n1().optional(),description:n1().optional(),enum:d7(n1()),enumNames:d7(n1()).optional(),default:n1().optional()}),a1K=ow([n1K,r1K]),s1K=z4({type:$q("array"),title:n1().optional(),description:n1().optional(),minItems:UY().optional(),maxItems:UY().optional(),items:z4({type:$q("string"),enum:d7(n1())}),default:d7(n1()).optional()}),t1K=z4({type:$q("array"),title:n1().optional(),description:n1().optional(),minItems:UY().optional(),maxItems:UY().optional(),items:z4({anyOf:d7(z4({const:n1(),title:n1()}))}),default:d7(n1()).optional()}),e1K=ow([s1K,t1K]),A8K=ow([o1K,a1K,e1K]),q8K=ow([A8K,c1K,l1K,i1K]),K8K=Ry6.extend({mode:$q("form").optional(),message:n1(),requestedSchema:z4({type:$q("object"),properties:l_(n1(),q8K),required:d7(n1()).optional()})}),Y8K=Ry6.extend({mode:$q("url"),message:n1(),elicitationId:n1(),url:n1().url()}),z8K=ow([K8K,Y8K]),tQ=oP.extend({method:$q("elicitation/create"),params:z8K}),w8K=cL.extend({elicitationId:n1()}),ly6=lL.extend({method:$q("notifications/elicitation/complete"),params:w8K}),Po=aP.extend({action:nZ(["accept","decline","cancel"]),content:_11((A)=>A===null?void 0:A,l_(n1(),ow([n1(),UY(),rw(),d7(n1())])).optional())}),_8K=z4({type:$q("ref/resource"),uri:n1()}),$8K=z4({type:$q("ref/prompt"),name:n1()}),O8K=cN.extend({ref:ow([$8K,_8K]),argument:z4({name:n1(),value:n1()}),context:z4({arguments:l_(n1(),n1()).optional()}).optional()}),H8K=oP.extend({method:$q("completion/complete"),params:O8K}),ZQ1=aP.extend({completion:AM({values:d7(n1()).max(100),total:m$(UY().int()),hasMore:m$(rw())})}),j8K=z4({uri:n1().startsWith("file://"),name:n1().optional(),_meta:l_(n1(),u$()).optional()}),fQ1=oP.extend({method:$q("roots/list"),params:cN.optional()}),TQ1=aP.extend({roots:d7(j8K)}),J8K=lL.extend({method:$q("notifications/roots/list_changed"),params:cL.optional()}),lsz=ow([D11,_Q1,H8K,WQ1,L1K,k1K,M1K,D1K,P1K,G1K,f1K,e76,Fy6,P11,G11,Z11,T11]),isz=ow([J11,X11,M11,J8K,by6]),nsz=ow([aQ,A46,cy6,Po,TQ1,W11,f11,sQ]),rsz=ow([D11,GQ1,tQ,fQ1,P11,G11,Z11,T11]),osz=ow([J11,X11,m1K,v1K,By6,Uy6,py6,by6,ly6]),asz=ow([aQ,$Q1,ZQ1,PQ1,gy6,t76,HQ1,my6,ru,Qy6,W11,f11,sQ]);Oq=class Oq extends Error{constructor(A,q,K){super(`MCP error ${A}: ${q}`);this.code=A,this.data=K,this.name="McpError"}static fromError(A,q,K){if(A===aq.UrlElicitationRequired&&K){let Y=K;if(Y.elicitations)return new KqA(Y.elicitations,q)}return new Oq(A,q,K)}};KqA=class KqA extends Oq{constructor(A,q=`URL elicitation${A.length>1?"s":""} required`){super(aq.UrlElicitationRequired,q,{elicitations:A})}get elicitations(){return this.data?.elicitations??[]}}});class iy6{append(A){this._buffer=this._buffer?Buffer.concat([this._buffer,A]):A}readMessage(){if(!this._buffer)return null;let A=this._buffer.indexOf(`
`);if(A===-1)return null;let q=this._buffer.toString("utf8",0,A).replace(/\r$/,"");return this._buffer=this._buffer.subarray(A+1),M8K(q)}clear(){this._buffer=void 0}}function M8K(A){return zC.parse(JSON.parse(A))}function v11(A){return JSON.stringify(A)+`
`}var vQ1=E(()=>{WD()});import YqA from"node:process";class ny6{constructor(A=YqA.stdin,q=YqA.stdout){this._stdin=A,this._stdout=q,this._readBuffer=new iy6,this._started=!1,this._ondata=(K)=>{this._readBuffer.append(K),this.processReadBuffer()},this._onerror=(K)=>{this.onerror?.(K)}}async start(){if(this._started)throw Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){while(!0)try{let A=this._readBuffer.readMessage();if(A===null)break;this.onmessage?.(A)}catch(A){this.onerror?.(A)}}async close(){if(this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0)this._stdin.pause();this._readBuffer.clear(),this.onclose?.()}send(A){return new Promise((q)=>{let K=v11(A);if(this._stdout.write(K))q();else this._stdout.once("drain",q)})}}var VQ1=E(()=>{vQ1()});var eQ=h((Ytz,_qA)=>{var zqA=["nodebuffer","arraybuffer","fragments"],wqA=typeof Blob<"u";if(wqA)zqA.push("blob");_qA.exports={BINARY_TYPES:zqA,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:wqA,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var ry6=h((ztz,V11)=>{var{EMPTY_BUFFER:D8K}=eQ(),NQ1=Buffer[Symbol.species];function X8K(A,q){if(A.length===0)return D8K;if(A.length===1)return A[0];let K=Buffer.allocUnsafe(q),Y=0;for(let z=0;z<A.length;z++){let w=A[z];K.set(w,Y),Y+=w.length}if(Y<q)return new NQ1(K.buffer,K.byteOffset,Y);return K}function $qA(A,q,K,Y,z){for(let w=0;w<z;w++)K[Y+w]=A[w]^q[w&3]}function OqA(A,q){for(let K=0;K<A.length;K++)A[K]^=q[K&3]}function P8K(A){if(A.length===A.buffer.byteLength)return A.buffer;return A.buffer.slice(A.byteOffset,A.byteOffset+A.length)}function kQ1(A){if(kQ1.readOnly=!0,Buffer.isBuffer(A))return A;let q;if(A instanceof ArrayBuffer)q=new NQ1(A);else if(ArrayBuffer.isView(A))q=new NQ1(A.buffer,A.byteOffset,A.byteLength);else q=Buffer.from(A),kQ1.readOnly=!1;return q}V11.exports={concat:X8K,mask:$qA,toArrayBuffer:P8K,toBuffer:kQ1,unmask:OqA};if(!process.env.WS_NO_BUFFER_UTIL)try{let A=(()=>{throw new Error("Cannot require module "+"bufferutil");})();V11.exports.mask=function(q,K,Y,z,w){if(w<48)$qA(q,K,Y,z,w);else A.mask(q,K,Y,z,w)},V11.exports.unmask=function(q,K){if(q.length<32)OqA(q,K);else A.unmask(q,K)}}catch(A){}});var MqA=h((wtz,JqA)=>{var HqA=Symbol("kDone"),EQ1=Symbol("kRun");class jqA{constructor(A){this[HqA]=()=>{this.pending--,this[EQ1]()},this.concurrency=A||1/0,this.jobs=[],this.pending=0}add(A){this.jobs.push(A),this[EQ1]()}[EQ1](){if(this.pending===this.concurrency)return;if(this.jobs.length){let A=this.jobs.shift();this.pending++,A(this[HqA])}}}JqA.exports=jqA});var ay6=h((_tz,GqA)=>{var oy6=u6("zlib"),DqA=ry6(),W8K=MqA(),{kStatusCode:XqA}=eQ(),G8K=Buffer[Symbol.species],Z8K=Buffer.from([0,0,255,255]),k11=Symbol("permessage-deflate"),AU=Symbol("total-length"),FO6=Symbol("callback"),Wo=Symbol("buffers"),QO6=Symbol("error"),N11;class PqA{constructor(A,q,K){if(this._maxPayload=K|0,this._options=A||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!q,this._deflate=null,this._inflate=null,this.params=null,!N11){let Y=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;N11=new W8K(Y)}}static get extensionName(){return"permessage-deflate"}offer(){let A={};if(this._options.serverNoContextTakeover)A.server_no_context_takeover=!0;if(this._options.clientNoContextTakeover)A.client_no_context_takeover=!0;if(this._options.serverMaxWindowBits)A.server_max_window_bits=this._options.serverMaxWindowBits;if(this._options.clientMaxWindowBits)A.client_max_window_bits=this._options.clientMaxWindowBits;else if(this._options.clientMaxWindowBits==null)A.client_max_window_bits=!0;return A}accept(A){return A=this.normalizeParams(A),this.params=this._isServer?this.acceptAsServer(A):this.acceptAsClient(A),this.params}cleanup(){if(this._inflate)this._inflate.close(),this._inflate=null;if(this._deflate){let A=this._deflate[FO6];if(this._deflate.close(),this._deflate=null,A)A(Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(A){let q=this._options,K=A.find((Y)=>{if(q.serverNoContextTakeover===!1&&Y.server_no_context_takeover||Y.server_max_window_bits&&(q.serverMaxWindowBits===!1||typeof q.serverMaxWindowBits==="number"&&q.serverMaxWindowBits>Y.server_max_window_bits)||typeof q.clientMaxWindowBits==="number"&&!Y.client_max_window_bits)return!1;return!0});if(!K)throw Error("None of the extension offers can be accepted");if(q.serverNoContextTakeover)K.server_no_context_takeover=!0;if(q.clientNoContextTakeover)K.client_no_context_takeover=!0;if(typeof q.serverMaxWindowBits==="number")K.server_max_window_bits=q.serverMaxWindowBits;if(typeof q.clientMaxWindowBits==="number")K.client_max_window_bits=q.clientMaxWindowBits;else if(K.client_max_window_bits===!0||q.clientMaxWindowBits===!1)delete K.client_max_window_bits;return K}acceptAsClient(A){let q=A[0];if(this._options.clientNoContextTakeover===!1&&q.client_no_context_takeover)throw Error('Unexpected parameter "client_no_context_takeover"');if(!q.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number")q.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==="number"&&q.client_max_window_bits>this._options.clientMaxWindowBits)throw Error('Unexpected or invalid parameter "client_max_window_bits"');return q}normalizeParams(A){return A.forEach((q)=>{Object.keys(q).forEach((K)=>{let Y=q[K];if(Y.length>1)throw Error(`Parameter "${K}" must have only a single value`);if(Y=Y[0],K==="client_max_window_bits"){if(Y!==!0){let z=+Y;if(!Number.isInteger(z)||z<8||z>15)throw TypeError(`Invalid value for parameter "${K}": ${Y}`);Y=z}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${K}": ${Y}`)}else if(K==="server_max_window_bits"){let z=+Y;if(!Number.isInteger(z)||z<8||z>15)throw TypeError(`Invalid value for parameter "${K}": ${Y}`);Y=z}else if(K==="client_no_context_takeover"||K==="server_no_context_takeover"){if(Y!==!0)throw TypeError(`Invalid value for parameter "${K}": ${Y}`)}else throw Error(`Unknown parameter "${K}"`);q[K]=Y})}),A}decompress(A,q,K){N11.add((Y)=>{this._decompress(A,q,(z,w)=>{Y(),K(z,w)})})}compress(A,q,K){N11.add((Y)=>{this._compress(A,q,(z,w)=>{Y(),K(z,w)})})}_decompress(A,q,K){let Y=this._isServer?"client":"server";if(!this._inflate){let z=`${Y}_max_window_bits`,w=typeof this.params[z]!=="number"?oy6.Z_DEFAULT_WINDOWBITS:this.params[z];this._inflate=oy6.createInflateRaw({...this._options.zlibInflateOptions,windowBits:w}),this._inflate[k11]=this,this._inflate[AU]=0,this._inflate[Wo]=[],this._inflate.on("error",T8K),this._inflate.on("data",WqA)}if(this._inflate[FO6]=K,this._inflate.write(A),q)this._inflate.write(Z8K);this._inflate.flush(()=>{let z=this._inflate[QO6];if(z){this._inflate.close(),this._inflate=null,K(z);return}let w=DqA.concat(this._inflate[Wo],this._inflate[AU]);if(this._inflate._readableState.endEmitted)this._inflate.close(),this._inflate=null;else if(this._inflate[AU]=0,this._inflate[Wo]=[],q&&this.params[`${Y}_no_context_takeover`])this._inflate.reset();K(null,w)})}_compress(A,q,K){let Y=this._isServer?"server":"client";if(!this._deflate){let z=`${Y}_max_window_bits`,w=typeof this.params[z]!=="number"?oy6.Z_DEFAULT_WINDOWBITS:this.params[z];this._deflate=oy6.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:w}),this._deflate[AU]=0,this._deflate[Wo]=[],this._deflate.on("data",f8K)}this._deflate[FO6]=K,this._deflate.write(A),this._deflate.flush(oy6.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let z=DqA.concat(this._deflate[Wo],this._deflate[AU]);if(q)z=new G8K(z.buffer,z.byteOffset,z.length-4);if(this._deflate[FO6]=null,this._deflate[AU]=0,this._deflate[Wo]=[],q&&this.params[`${Y}_no_context_takeover`])this._deflate.reset();K(null,z)})}}GqA.exports=PqA;function f8K(A){this[Wo].push(A),this[AU]+=A.length}function WqA(A){if(this[AU]+=A.length,this[k11]._maxPayload<1||this[AU]<=this[k11]._maxPayload){this[Wo].push(A);return}this[QO6]=RangeError("Max payload size exceeded"),this[QO6].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[QO6][XqA]=1009,this.removeListener("data",WqA),this.reset()}function T8K(A){if(this[k11]._inflate=null,this[QO6]){this[FO6](this[QO6]);return}A[XqA]=1007,this[FO6](A)}});var UO6=h(($tz,E11)=>{var{isUtf8:ZqA}=u6("buffer"),{hasBlob:v8K}=eQ(),V8K=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function N8K(A){return A>=1000&&A<=1014&&A!==1004&&A!==1005&&A!==1006||A>=3000&&A<=4999}function LQ1(A){let q=A.length,K=0;while(K<q)if((A[K]&128)===0)K++;else if((A[K]&224)===192){if(K+1===q||(A[K+1]&192)!==128||(A[K]&254)===192)return!1;K+=2}else if((A[K]&240)===224){if(K+2>=q||(A[K+1]&192)!==128||(A[K+2]&192)!==128||A[K]===224&&(A[K+1]&224)===128||A[K]===237&&(A[K+1]&224)===160)return!1;K+=3}else if((A[K]&248)===240){if(K+3>=q||(A[K+1]&192)!==128||(A[K+2]&192)!==128||(A[K+3]&192)!==128||A[K]===240&&(A[K+1]&240)===128||A[K]===244&&A[K+1]>143||A[K]>244)return!1;K+=4}else return!1;return!0}function k8K(A){return v8K&&typeof A==="object"&&typeof A.arrayBuffer==="function"&&typeof A.type==="string"&&typeof A.stream==="function"&&(A[Symbol.toStringTag]==="Blob"||A[Symbol.toStringTag]==="File")}E11.exports={isBlob:k8K,isValidStatusCode:N8K,isValidUTF8:LQ1,tokenChars:V8K};if(ZqA)E11.exports.isValidUTF8=function(A){return A.length<24?LQ1(A):ZqA(A)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let A=(()=>{throw new Error("Cannot require module "+"utf-8-validate");})();E11.exports.isValidUTF8=function(q){return q.length<32?LQ1(q):A(q)}}catch(A){}});var RQ1=h((Otz,NqA)=>{var{Writable:E8K}=u6("stream"),fqA=ay6(),{BINARY_TYPES:L8K,EMPTY_BUFFER:TqA,kStatusCode:y8K,kWebSocket:R8K}=eQ(),{concat:yQ1,toArrayBuffer:S8K,unmask:h8K}=ry6(),{isValidStatusCode:C8K,isValidUTF8:vqA}=UO6(),L11=Buffer[Symbol.species];class VqA extends E8K{constructor(A={}){super();this._allowSynchronousEvents=A.allowSynchronousEvents!==void 0?A.allowSynchronousEvents:!0,this._binaryType=A.binaryType||L8K[0],this._extensions=A.extensions||{},this._isServer=!!A.isServer,this._maxPayload=A.maxPayload|0,this._skipUTF8Validation=!!A.skipUTF8Validation,this[R8K]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(A,q,K){if(this._opcode===8&&this._state==0)return K();this._bufferedBytes+=A.length,this._buffers.push(A),this.startLoop(K)}consume(A){if(this._bufferedBytes-=A,A===this._buffers[0].length)return this._buffers.shift();if(A<this._buffers[0].length){let K=this._buffers[0];return this._buffers[0]=new L11(K.buffer,K.byteOffset+A,K.length-A),new L11(K.buffer,K.byteOffset,A)}let q=Buffer.allocUnsafe(A);do{let K=this._buffers[0],Y=q.length-A;if(A>=K.length)q.set(this._buffers.shift(),Y);else q.set(new Uint8Array(K.buffer,K.byteOffset,A),Y),this._buffers[0]=new L11(K.buffer,K.byteOffset+A,K.length-A);A-=K.length}while(A>0);return q}startLoop(A){this._loop=!0;do switch(this._state){case 0:this.getInfo(A);break;case 1:this.getPayloadLength16(A);break;case 2:this.getPayloadLength64(A);break;case 3:this.getMask();break;case 4:this.getData(A);break;case 5:case 6:this._loop=!1;return}while(this._loop);if(!this._errored)A()}getInfo(A){if(this._bufferedBytes<2){this._loop=!1;return}let q=this.consume(2);if((q[0]&48)!==0){let Y=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");A(Y);return}let K=(q[0]&64)===64;if(K&&!this._extensions[fqA.extensionName]){let Y=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");A(Y);return}if(this._fin=(q[0]&128)===128,this._opcode=q[0]&15,this._payloadLength=q[1]&127,this._opcode===0){if(K){let Y=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");A(Y);return}if(!this._fragmented){let Y=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");A(Y);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let Y=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");A(Y);return}this._compressed=K}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let Y=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");A(Y);return}if(K){let Y=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");A(Y);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let Y=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");A(Y);return}}else{let Y=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");A(Y);return}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;if(this._masked=(q[1]&128)===128,this._isServer){if(!this._masked){let Y=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");A(Y);return}}else if(this._masked){let Y=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");A(Y);return}if(this._payloadLength===126)this._state=1;else if(this._payloadLength===127)this._state=2;else this.haveLength(A)}getPayloadLength16(A){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(A)}getPayloadLength64(A){if(this._bufferedBytes<8){this._loop=!1;return}let q=this.consume(8),K=q.readUInt32BE(0);if(K>Math.pow(2,21)-1){let Y=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");A(Y);return}this._payloadLength=K*Math.pow(2,32)+q.readUInt32BE(4),this.haveLength(A)}haveLength(A){if(this._payloadLength&&this._opcode<8){if(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){let q=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");A(q);return}}if(this._masked)this._state=3;else this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData(A){let q=TqA;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}if(q=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0)h8K(q,this._mask)}if(this._opcode>7){this.controlMessage(q,A);return}if(this._compressed){this._state=5,this.decompress(q,A);return}if(q.length)this._messageLength=this._totalPayloadLength,this._fragments.push(q);this.dataMessage(A)}decompress(A,q){this._extensions[fqA.extensionName].decompress(A,this._fin,(Y,z)=>{if(Y)return q(Y);if(z.length){if(this._messageLength+=z.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let w=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");q(w);return}this._fragments.push(z)}if(this.dataMessage(q),this._state===0)this.startLoop(q)})}dataMessage(A){if(!this._fin){this._state=0;return}let q=this._messageLength,K=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let Y;if(this._binaryType==="nodebuffer")Y=yQ1(K,q);else if(this._binaryType==="arraybuffer")Y=S8K(yQ1(K,q));else if(this._binaryType==="blob")Y=new Blob(K);else Y=K;if(this._allowSynchronousEvents)this.emit("message",Y,!0),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",Y,!0),this._state=0,this.startLoop(A)})}else{let Y=yQ1(K,q);if(!this._skipUTF8Validation&&!vqA(Y)){let z=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");A(z);return}if(this._state===5||this._allowSynchronousEvents)this.emit("message",Y,!1),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",Y,!1),this._state=0,this.startLoop(A)})}}controlMessage(A,q){if(this._opcode===8){if(A.length===0)this._loop=!1,this.emit("conclude",1005,TqA),this.end();else{let K=A.readUInt16BE(0);if(!C8K(K)){let z=this.createError(RangeError,`invalid status code ${K}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");q(z);return}let Y=new L11(A.buffer,A.byteOffset+2,A.length-2);if(!this._skipUTF8Validation&&!vqA(Y)){let z=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");q(z);return}this._loop=!1,this.emit("conclude",K,Y),this.end()}this._state=0;return}if(this._allowSynchronousEvents)this.emit(this._opcode===9?"ping":"pong",A),this._state=0;else this._state=6,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",A),this._state=0,this.startLoop(q)})}createError(A,q,K,Y,z){this._loop=!1,this._errored=!0;let w=new A(K?`Invalid WebSocket frame: ${q}`:q);return Error.captureStackTrace(w,this.createError),w.code=z,w[y8K]=Y,w}}NqA.exports=VqA});var hQ1=h((jtz,LqA)=>{var{Duplex:Htz}=u6("stream"),{randomFillSync:I8K}=u6("crypto"),kqA=ay6(),{EMPTY_BUFFER:x8K,kWebSocket:b8K,NOOP:u8K}=eQ(),{isBlob:dO6,isValidStatusCode:m8K}=UO6(),{mask:EqA,toBuffer:q46}=ry6(),iL=Symbol("kByteLength"),B8K=Buffer.alloc(4),K46,cO6=8192,wC=0,g8K=1,p8K=2;class Go{constructor(A,q,K){if(this._extensions=q||{},K)this._generateMask=K,this._maskBuffer=Buffer.alloc(4);this._socket=A,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=wC,this.onerror=u8K,this[b8K]=void 0}static frame(A,q){let K,Y=!1,z=2,w=!1;if(q.mask){if(K=q.maskBuffer||B8K,q.generateMask)q.generateMask(K);else{if(cO6===8192){if(K46===void 0)K46=Buffer.alloc(8192);I8K(K46,0,8192),cO6=0}K[0]=K46[cO6++],K[1]=K46[cO6++],K[2]=K46[cO6++],K[3]=K46[cO6++]}w=(K[0]|K[1]|K[2]|K[3])===0,z=6}let _;if(typeof A==="string")if((!q.mask||w)&&q[iL]!==void 0)_=q[iL];else A=Buffer.from(A),_=A.length;else _=A.length,Y=q.mask&&q.readOnly&&!w;let $=_;if(_>=65536)z+=8,$=127;else if(_>125)z+=2,$=126;let O=Buffer.allocUnsafe(Y?_+z:z);if(O[0]=q.fin?q.opcode|128:q.opcode,q.rsv1)O[0]|=64;if(O[1]=$,$===126)O.writeUInt16BE(_,2);else if($===127)O[2]=O[3]=0,O.writeUIntBE(_,4,6);if(!q.mask)return[O,A];if(O[1]|=128,O[z-4]=K[0],O[z-3]=K[1],O[z-2]=K[2],O[z-1]=K[3],w)return[O,A];if(Y)return EqA(A,K,O,z,_),[O];return EqA(A,K,A,0,_),[O,A]}close(A,q,K,Y){let z;if(A===void 0)z=x8K;else if(typeof A!=="number"||!m8K(A))throw TypeError("First argument must be a valid error code number");else if(q===void 0||!q.length)z=Buffer.allocUnsafe(2),z.writeUInt16BE(A,0);else{let _=Buffer.byteLength(q);if(_>123)throw RangeError("The message must not be greater than 123 bytes");if(z=Buffer.allocUnsafe(2+_),z.writeUInt16BE(A,0),typeof q==="string")z.write(q,2);else z.set(q,2)}let w={[iL]:z.length,fin:!0,generateMask:this._generateMask,mask:K,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};if(this._state!==wC)this.enqueue([this.dispatch,z,!1,w,Y]);else this.sendFrame(Go.frame(z,w),Y)}ping(A,q,K){let Y,z;if(typeof A==="string")Y=Buffer.byteLength(A),z=!1;else if(dO6(A))Y=A.size,z=!1;else A=q46(A),Y=A.length,z=q46.readOnly;if(Y>125)throw RangeError("The data size must not be greater than 125 bytes");let w={[iL]:Y,fin:!0,generateMask:this._generateMask,mask:q,maskBuffer:this._maskBuffer,opcode:9,readOnly:z,rsv1:!1};if(dO6(A))if(this._state!==wC)this.enqueue([this.getBlobData,A,!1,w,K]);else this.getBlobData(A,!1,w,K);else if(this._state!==wC)this.enqueue([this.dispatch,A,!1,w,K]);else this.sendFrame(Go.frame(A,w),K)}pong(A,q,K){let Y,z;if(typeof A==="string")Y=Buffer.byteLength(A),z=!1;else if(dO6(A))Y=A.size,z=!1;else A=q46(A),Y=A.length,z=q46.readOnly;if(Y>125)throw RangeError("The data size must not be greater than 125 bytes");let w={[iL]:Y,fin:!0,generateMask:this._generateMask,mask:q,maskBuffer:this._maskBuffer,opcode:10,readOnly:z,rsv1:!1};if(dO6(A))if(this._state!==wC)this.enqueue([this.getBlobData,A,!1,w,K]);else this.getBlobData(A,!1,w,K);else if(this._state!==wC)this.enqueue([this.dispatch,A,!1,w,K]);else this.sendFrame(Go.frame(A,w),K)}send(A,q,K){let Y=this._extensions[kqA.extensionName],z=q.binary?2:1,w=q.compress,_,$;if(typeof A==="string")_=Buffer.byteLength(A),$=!1;else if(dO6(A))_=A.size,$=!1;else A=q46(A),_=A.length,$=q46.readOnly;if(this._firstFragment){if(this._firstFragment=!1,w&&Y&&Y.params[Y._isServer?"server_no_context_takeover":"client_no_context_takeover"])w=_>=Y._threshold;this._compress=w}else w=!1,z=0;if(q.fin)this._firstFragment=!0;let O={[iL]:_,fin:q.fin,generateMask:this._generateMask,mask:q.mask,maskBuffer:this._maskBuffer,opcode:z,readOnly:$,rsv1:w};if(dO6(A))if(this._state!==wC)this.enqueue([this.getBlobData,A,this._compress,O,K]);else this.getBlobData(A,this._compress,O,K);else if(this._state!==wC)this.enqueue([this.dispatch,A,this._compress,O,K]);else this.dispatch(A,this._compress,O,K)}getBlobData(A,q,K,Y){this._bufferedBytes+=K[iL],this._state=p8K,A.arrayBuffer().then((z)=>{if(this._socket.destroyed){let _=Error("The socket was closed while the blob was being read");process.nextTick(SQ1,this,_,Y);return}this._bufferedBytes-=K[iL];let w=q46(z);if(!q)this._state=wC,this.sendFrame(Go.frame(w,K),Y),this.dequeue();else this.dispatch(w,q,K,Y)}).catch((z)=>{process.nextTick(F8K,this,z,Y)})}dispatch(A,q,K,Y){if(!q){this.sendFrame(Go.frame(A,K),Y);return}let z=this._extensions[kqA.extensionName];this._bufferedBytes+=K[iL],this._state=g8K,z.compress(A,K.fin,(w,_)=>{if(this._socket.destroyed){let $=Error("The socket was closed while data was being compressed");SQ1(this,$,Y);return}this._bufferedBytes-=K[iL],this._state=wC,K.readOnly=!1,this.sendFrame(Go.frame(_,K),Y),this.dequeue()})}dequeue(){while(this._state===wC&&this._queue.length){let A=this._queue.shift();this._bufferedBytes-=A[3][iL],Reflect.apply(A[0],this,A.slice(1))}}enqueue(A){this._bufferedBytes+=A[3][iL],this._queue.push(A)}sendFrame(A,q){if(A.length===2)this._socket.cork(),this._socket.write(A[0]),this._socket.write(A[1],q),this._socket.uncork();else this._socket.write(A[0],q)}}LqA.exports=Go;function SQ1(A,q,K){if(typeof K==="function")K(q);for(let Y=0;Y<A._queue.length;Y++){let z=A._queue[Y],w=z[z.length-1];if(typeof w==="function")w(q)}}function F8K(A,q,K){SQ1(A,q,K),A.onerror(q)}});var uqA=h((Jtz,bqA)=>{var{kForOnEventAttribute:sy6,kListener:CQ1}=eQ(),yqA=Symbol("kCode"),RqA=Symbol("kData"),SqA=Symbol("kError"),hqA=Symbol("kMessage"),CqA=Symbol("kReason"),lO6=Symbol("kTarget"),IqA=Symbol("kType"),xqA=Symbol("kWasClean");class Zo{constructor(A){this[lO6]=null,this[IqA]=A}get target(){return this[lO6]}get type(){return this[IqA]}}Object.defineProperty(Zo.prototype,"target",{enumerable:!0});Object.defineProperty(Zo.prototype,"type",{enumerable:!0});class iO6 extends Zo{constructor(A,q={}){super(A);this[yqA]=q.code===void 0?0:q.code,this[CqA]=q.reason===void 0?"":q.reason,this[xqA]=q.wasClean===void 0?!1:q.wasClean}get code(){return this[yqA]}get reason(){return this[CqA]}get wasClean(){return this[xqA]}}Object.defineProperty(iO6.prototype,"code",{enumerable:!0});Object.defineProperty(iO6.prototype,"reason",{enumerable:!0});Object.defineProperty(iO6.prototype,"wasClean",{enumerable:!0});class ty6 extends Zo{constructor(A,q={}){super(A);this[SqA]=q.error===void 0?null:q.error,this[hqA]=q.message===void 0?"":q.message}get error(){return this[SqA]}get message(){return this[hqA]}}Object.defineProperty(ty6.prototype,"error",{enumerable:!0});Object.defineProperty(ty6.prototype,"message",{enumerable:!0});class R11 extends Zo{constructor(A,q={}){super(A);this[RqA]=q.data===void 0?null:q.data}get data(){return this[RqA]}}Object.defineProperty(R11.prototype,"data",{enumerable:!0});var Q8K={addEventListener(A,q,K={}){for(let z of this.listeners(A))if(!K[sy6]&&z[CQ1]===q&&!z[sy6])return;let Y;if(A==="message")Y=function(w,_){let $=new R11("message",{data:_?w:w.toString()});$[lO6]=this,y11(q,this,$)};else if(A==="close")Y=function(w,_){let $=new iO6("close",{code:w,reason:_.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});$[lO6]=this,y11(q,this,$)};else if(A==="error")Y=function(w){let _=new ty6("error",{error:w,message:w.message});_[lO6]=this,y11(q,this,_)};else if(A==="open")Y=function(){let w=new Zo("open");w[lO6]=this,y11(q,this,w)};else return;if(Y[sy6]=!!K[sy6],Y[CQ1]=q,K.once)this.once(A,Y);else this.on(A,Y)},removeEventListener(A,q){for(let K of this.listeners(A))if(K[CQ1]===q&&!K[sy6]){this.removeListener(A,K);break}}};bqA.exports={CloseEvent:iO6,ErrorEvent:ty6,Event:Zo,EventTarget:Q8K,MessageEvent:R11};function y11(A,q,K){if(typeof A==="object"&&A.handleEvent)A.handleEvent.call(A,K);else A.call(q,K)}});var IQ1=h((Mtz,mqA)=>{var{tokenChars:ey6}=UO6();function ou(A,q,K){if(A[q]===void 0)A[q]=[K];else A[q].push(K)}function U8K(A){let q=Object.create(null),K=Object.create(null),Y=!1,z=!1,w=!1,_,$,O=-1,H=-1,j=-1,J=0;for(;J<A.length;J++)if(H=A.charCodeAt(J),_===void 0)if(j===-1&&ey6[H]===1){if(O===-1)O=J}else if(J!==0&&(H===32||H===9)){if(j===-1&&O!==-1)j=J}else if(H===59||H===44){if(O===-1)throw SyntaxError(`Unexpected character at index ${J}`);if(j===-1)j=J;let D=A.slice(O,j);if(H===44)ou(q,D,K),K=Object.create(null);else _=D;O=j=-1}else throw SyntaxError(`Unexpected character at index ${J}`);else if($===void 0)if(j===-1&&ey6[H]===1){if(O===-1)O=J}else if(H===32||H===9){if(j===-1&&O!==-1)j=J}else if(H===59||H===44){if(O===-1)throw SyntaxError(`Unexpected character at index ${J}`);if(j===-1)j=J;if(ou(K,A.slice(O,j),!0),H===44)ou(q,_,K),K=Object.create(null),_=void 0;O=j=-1}else if(H===61&&O!==-1&&j===-1)$=A.slice(O,J),O=j=-1;else throw SyntaxError(`Unexpected character at index ${J}`);else if(z){if(ey6[H]!==1)throw SyntaxError(`Unexpected character at index ${J}`);if(O===-1)O=J;else if(!Y)Y=!0;z=!1}else if(w)if(ey6[H]===1){if(O===-1)O=J}else if(H===34&&O!==-1)w=!1,j=J;else if(H===92)z=!0;else throw SyntaxError(`Unexpected character at index ${J}`);else if(H===34&&A.charCodeAt(J-1)===61)w=!0;else if(j===-1&&ey6[H]===1){if(O===-1)O=J}else if(O!==-1&&(H===32||H===9)){if(j===-1)j=J}else if(H===59||H===44){if(O===-1)throw SyntaxError(`Unexpected character at index ${J}`);if(j===-1)j=J;let D=A.slice(O,j);if(Y)D=D.replace(/\\/g,""),Y=!1;if(ou(K,$,D),H===44)ou(q,_,K),K=Object.create(null),_=void 0;$=void 0,O=j=-1}else throw SyntaxError(`Unexpected character at index ${J}`);if(O===-1||w||H===32||H===9)throw SyntaxError("Unexpected end of input");if(j===-1)j=J;let M=A.slice(O,j);if(_===void 0)ou(q,M,K);else{if($===void 0)ou(K,M,!0);else if(Y)ou(K,$,M.replace(/\\/g,""));else ou(K,$,M);ou(q,_,K)}return q}function d8K(A){return Object.keys(A).map((q)=>{let K=A[q];if(!Array.isArray(K))K=[K];return K.map((Y)=>{return[q].concat(Object.keys(Y).map((z)=>{let w=Y[z];if(!Array.isArray(w))w=[w];return w.map((_)=>_===!0?z:`${z}=${_}`).join("; ")})).join("; ")}).join(", ")}).join(", ")}mqA.exports={format:d8K,parse:U8K}});var I11=h((Ptz,rqA)=>{var c8K=u6("events"),l8K=u6("https"),i8K=u6("http"),pqA=u6("net"),n8K=u6("tls"),{randomBytes:r8K,createHash:o8K}=u6("crypto"),{Duplex:Dtz,Readable:Xtz}=u6("stream"),{URL:xQ1}=u6("url"),fo=ay6(),a8K=RQ1(),s8K=hQ1(),{isBlob:t8K}=UO6(),{BINARY_TYPES:BqA,EMPTY_BUFFER:S11,GUID:e8K,kForOnEventAttribute:bQ1,kListener:AAK,kStatusCode:qAK,kWebSocket:WX,NOOP:FqA}=eQ(),{EventTarget:{addEventListener:KAK,removeEventListener:YAK}}=uqA(),{format:zAK,parse:wAK}=IQ1(),{toBuffer:_AK}=ry6(),QqA=Symbol("kAborted"),uQ1=[8,13],qU=["CONNECTING","OPEN","CLOSING","CLOSED"],$AK=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class i3 extends c8K{constructor(A,q,K){super();if(this._binaryType=BqA[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=S11,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=i3.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,A!==null){if(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,q===void 0)q=[];else if(!Array.isArray(q))if(typeof q==="object"&&q!==null)K=q,q=[];else q=[q];UqA(this,A,q,K)}else this._autoPong=K.autoPong,this._isServer=!0}get binaryType(){return this._binaryType}set binaryType(A){if(!BqA.includes(A))return;if(this._binaryType=A,this._receiver)this._receiver._binaryType=A}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(A,q,K){let Y=new a8K({allowSynchronousEvents:K.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:K.maxPayload,skipUTF8Validation:K.skipUTF8Validation}),z=new s8K(A,this._extensions,K.generateMask);if(this._receiver=Y,this._sender=z,this._socket=A,Y[WX]=this,z[WX]=this,A[WX]=this,Y.on("conclude",jAK),Y.on("drain",JAK),Y.on("error",MAK),Y.on("message",DAK),Y.on("ping",XAK),Y.on("pong",PAK),z.onerror=WAK,A.setTimeout)A.setTimeout(0);if(A.setNoDelay)A.setNoDelay();if(q.length>0)A.unshift(q);A.on("close",lqA),A.on("data",C11),A.on("end",iqA),A.on("error",nqA),this._readyState=i3.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=i3.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[fo.extensionName])this._extensions[fo.extensionName].cleanup();this._receiver.removeAllListeners(),this._readyState=i3.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(A,q){if(this.readyState===i3.CLOSED)return;if(this.readyState===i3.CONNECTING){lN(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===i3.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted))this._socket.end();return}this._readyState=i3.CLOSING,this._sender.close(A,q,!this._isServer,(K)=>{if(K)return;if(this._closeFrameSent=!0,this._closeFrameReceived||this._receiver._writableState.errorEmitted)this._socket.end()}),cqA(this)}pause(){if(this.readyState===i3.CONNECTING||this.readyState===i3.CLOSED)return;this._paused=!0,this._socket.pause()}ping(A,q,K){if(this.readyState===i3.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof A==="function")K=A,A=q=void 0;else if(typeof q==="function")K=q,q=void 0;if(typeof A==="number")A=A.toString();if(this.readyState!==i3.OPEN){mQ1(this,A,K);return}if(q===void 0)q=!this._isServer;this._sender.ping(A||S11,q,K)}pong(A,q,K){if(this.readyState===i3.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof A==="function")K=A,A=q=void 0;else if(typeof q==="function")K=q,q=void 0;if(typeof A==="number")A=A.toString();if(this.readyState!==i3.OPEN){mQ1(this,A,K);return}if(q===void 0)q=!this._isServer;this._sender.pong(A||S11,q,K)}resume(){if(this.readyState===i3.CONNECTING||this.readyState===i3.CLOSED)return;if(this._paused=!1,!this._receiver._writableState.needDrain)this._socket.resume()}send(A,q,K){if(this.readyState===i3.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof q==="function")K=q,q={};if(typeof A==="number")A=A.toString();if(this.readyState!==i3.OPEN){mQ1(this,A,K);return}let Y={binary:typeof A!=="string",mask:!this._isServer,compress:!0,fin:!0,...q};if(!this._extensions[fo.extensionName])Y.compress=!1;this._sender.send(A||S11,Y,K)}terminate(){if(this.readyState===i3.CLOSED)return;if(this.readyState===i3.CONNECTING){lN(this,this._req,"WebSocket was closed before the connection was established");return}if(this._socket)this._readyState=i3.CLOSING,this._socket.destroy()}}Object.defineProperty(i3,"CONNECTING",{enumerable:!0,value:qU.indexOf("CONNECTING")});Object.defineProperty(i3.prototype,"CONNECTING",{enumerable:!0,value:qU.indexOf("CONNECTING")});Object.defineProperty(i3,"OPEN",{enumerable:!0,value:qU.indexOf("OPEN")});Object.defineProperty(i3.prototype,"OPEN",{enumerable:!0,value:qU.indexOf("OPEN")});Object.defineProperty(i3,"CLOSING",{enumerable:!0,value:qU.indexOf("CLOSING")});Object.defineProperty(i3.prototype,"CLOSING",{enumerable:!0,value:qU.indexOf("CLOSING")});Object.defineProperty(i3,"CLOSED",{enumerable:!0,value:qU.indexOf("CLOSED")});Object.defineProperty(i3.prototype,"CLOSED",{enumerable:!0,value:qU.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((A)=>{Object.defineProperty(i3.prototype,A,{enumerable:!0})});["open","error","close","message"].forEach((A)=>{Object.defineProperty(i3.prototype,`on${A}`,{enumerable:!0,get(){for(let q of this.listeners(A))if(q[bQ1])return q[AAK];return null},set(q){for(let K of this.listeners(A))if(K[bQ1]){this.removeListener(A,K);break}if(typeof q!=="function")return;this.addEventListener(A,q,{[bQ1]:!0})}})});i3.prototype.addEventListener=KAK;i3.prototype.removeEventListener=YAK;rqA.exports=i3;function UqA(A,q,K,Y){let z={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:uQ1[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...Y,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(A._autoPong=z.autoPong,!uQ1.includes(z.protocolVersion))throw RangeError(`Unsupported protocol version: ${z.protocolVersion} (supported versions: ${uQ1.join(", ")})`);let w;if(q instanceof xQ1)w=q;else try{w=new xQ1(q)}catch(P){throw SyntaxError(`Invalid URL: ${q}`)}if(w.protocol==="http:")w.protocol="ws:";else if(w.protocol==="https:")w.protocol="wss:";A._url=w.href;let _=w.protocol==="wss:",$=w.protocol==="ws+unix:",O;if(w.protocol!=="ws:"&&!_&&!$)O=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`;else if($&&!w.pathname)O="The URL's pathname is empty";else if(w.hash)O="The URL contains a fragment identifier";if(O){let P=SyntaxError(O);if(A._redirects===0)throw P;else{h11(A,P);return}}let H=_?443:80,j=r8K(16).toString("base64"),J=_?l8K.request:i8K.request,M=new Set,D;if(z.createConnection=z.createConnection||(_?HAK:OAK),z.defaultPort=z.defaultPort||H,z.port=w.port||H,z.host=w.hostname.startsWith("[")?w.hostname.slice(1,-1):w.hostname,z.headers={...z.headers,"Sec-WebSocket-Version":z.protocolVersion,"Sec-WebSocket-Key":j,Connection:"Upgrade",Upgrade:"websocket"},z.path=w.pathname+w.search,z.timeout=z.handshakeTimeout,z.perMessageDeflate)D=new fo(z.perMessageDeflate!==!0?z.perMessageDeflate:{},!1,z.maxPayload),z.headers["Sec-WebSocket-Extensions"]=zAK({[fo.extensionName]:D.offer()});if(K.length){for(let P of K){if(typeof P!=="string"||!$AK.test(P)||M.has(P))throw SyntaxError("An invalid or duplicated subprotocol was specified");M.add(P)}z.headers["Sec-WebSocket-Protocol"]=K.join(",")}if(z.origin)if(z.protocolVersion<13)z.headers["Sec-WebSocket-Origin"]=z.origin;else z.headers.Origin=z.origin;if(w.username||w.password)z.auth=`${w.username}:${w.password}`;if($){let P=z.path.split(":");z.socketPath=P[0],z.path=P[1]}let X;if(z.followRedirects){if(A._redirects===0){A._originalIpc=$,A._originalSecure=_,A._originalHostOrSocketPath=$?z.socketPath:w.host;let P=Y&&Y.headers;if(Y={...Y,headers:{}},P)for(let[W,G]of Object.entries(P))Y.headers[W.toLowerCase()]=G}else if(A.listenerCount("redirect")===0){let P=$?A._originalIpc?z.socketPath===A._originalHostOrSocketPath:!1:A._originalIpc?!1:w.host===A._originalHostOrSocketPath;if(!P||A._originalSecure&&!_){if(delete z.headers.authorization,delete z.headers.cookie,!P)delete z.headers.host;z.auth=void 0}}if(z.auth&&!Y.headers.authorization)Y.headers.authorization="Basic "+Buffer.from(z.auth).toString("base64");if(X=A._req=J(z),A._redirects)A.emit("redirect",A.url,X)}else X=A._req=J(z);if(z.timeout)X.on("timeout",()=>{lN(A,X,"Opening handshake has timed out")});if(X.on("error",(P)=>{if(X===null||X[QqA])return;X=A._req=null,h11(A,P)}),X.on("response",(P)=>{let W=P.headers.location,G=P.statusCode;if(W&&z.followRedirects&&G>=300&&G<400){if(++A._redirects>z.maxRedirects){lN(A,X,"Maximum redirects exceeded");return}X.abort();let Z;try{Z=new xQ1(W,q)}catch(f){let v=SyntaxError(`Invalid URL: ${W}`);h11(A,v);return}UqA(A,Z,K,Y)}else if(!A.emit("unexpected-response",X,P))lN(A,X,`Unexpected server response: ${P.statusCode}`)}),X.on("upgrade",(P,W,G)=>{if(A.emit("upgrade",P),A.readyState!==i3.CONNECTING)return;X=A._req=null;let Z=P.headers.upgrade;if(Z===void 0||Z.toLowerCase()!=="websocket"){lN(A,W,"Invalid Upgrade header");return}let f=o8K("sha1").update(j+e8K).digest("base64");if(P.headers["sec-websocket-accept"]!==f){lN(A,W,"Invalid Sec-WebSocket-Accept header");return}let v=P.headers["sec-websocket-protocol"],V;if(v!==void 0){if(!M.size)V="Server sent a subprotocol but none was requested";else if(!M.has(v))V="Server sent an invalid subprotocol"}else if(M.size)V="Server sent no subprotocol";if(V){lN(A,W,V);return}if(v)A._protocol=v;let N=P.headers["sec-websocket-extensions"];if(N!==void 0){if(!D){lN(A,W,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let L;try{L=wAK(N)}catch(C){lN(A,W,"Invalid Sec-WebSocket-Extensions header");return}let S=Object.keys(L);if(S.length!==1||S[0]!==fo.extensionName){lN(A,W,"Server indicated an extension that was not requested");return}try{D.accept(L[fo.extensionName])}catch(C){lN(A,W,"Invalid Sec-WebSocket-Extensions header");return}A._extensions[fo.extensionName]=D}A.setSocket(W,G,{allowSynchronousEvents:z.allowSynchronousEvents,generateMask:z.generateMask,maxPayload:z.maxPayload,skipUTF8Validation:z.skipUTF8Validation})}),z.finishRequest)z.finishRequest(X,A);else X.end()}function h11(A,q){A._readyState=i3.CLOSING,A._errorEmitted=!0,A.emit("error",q),A.emitClose()}function OAK(A){return A.path=A.socketPath,pqA.connect(A)}function HAK(A){if(A.path=void 0,!A.servername&&A.servername!=="")A.servername=pqA.isIP(A.host)?"":A.host;return n8K.connect(A)}function lN(A,q,K){A._readyState=i3.CLOSING;let Y=Error(K);if(Error.captureStackTrace(Y,lN),q.setHeader){if(q[QqA]=!0,q.abort(),q.socket&&!q.socket.destroyed)q.socket.destroy();process.nextTick(h11,A,Y)}else q.destroy(Y),q.once("error",A.emit.bind(A,"error")),q.once("close",A.emitClose.bind(A))}function mQ1(A,q,K){if(q){let Y=t8K(q)?q.size:_AK(q).length;if(A._socket)A._sender._bufferedBytes+=Y;else A._bufferedAmount+=Y}if(K){let Y=Error(`WebSocket is not open: readyState ${A.readyState} (${qU[A.readyState]})`);process.nextTick(K,Y)}}function jAK(A,q){let K=this[WX];if(K._closeFrameReceived=!0,K._closeMessage=q,K._closeCode=A,K._socket[WX]===void 0)return;if(K._socket.removeListener("data",C11),process.nextTick(dqA,K._socket),A===1005)K.close();else K.close(A,q)}function JAK(){let A=this[WX];if(!A.isPaused)A._socket.resume()}function MAK(A){let q=this[WX];if(q._socket[WX]!==void 0)q._socket.removeListener("data",C11),process.nextTick(dqA,q._socket),q.close(A[qAK]);if(!q._errorEmitted)q._errorEmitted=!0,q.emit("error",A)}function gqA(){this[WX].emitClose()}function DAK(A,q){this[WX].emit("message",A,q)}function XAK(A){let q=this[WX];if(q._autoPong)q.pong(A,!this._isServer,FqA);q.emit("ping",A)}function PAK(A){this[WX].emit("pong",A)}function dqA(A){A.resume()}function WAK(A){let q=this[WX];if(q.readyState===i3.CLOSED)return;if(q.readyState===i3.OPEN)q._readyState=i3.CLOSING,cqA(q);if(this._socket.end(),!q._errorEmitted)q._errorEmitted=!0,q.emit("error",A)}function cqA(A){A._closeTimer=setTimeout(A._socket.destroy.bind(A._socket),30000)}function lqA(){let A=this[WX];this.removeListener("close",lqA),this.removeListener("data",C11),this.removeListener("end",iqA),A._readyState=i3.CLOSING;let q;if(!this._readableState.endEmitted&&!A._closeFrameReceived&&!A._receiver._writableState.errorEmitted&&(q=A._socket.read())!==null)A._receiver.write(q);if(A._receiver.end(),this[WX]=void 0,clearTimeout(A._closeTimer),A._receiver._writableState.finished||A._receiver._writableState.errorEmitted)A.emitClose();else A._receiver.on("error",gqA),A._receiver.on("finish",gqA)}function C11(A){if(!this[WX]._receiver.write(A))this.pause()}function iqA(){let A=this[WX];A._readyState=i3.CLOSING,A._receiver.end(),this.end()}function nqA(){let A=this[WX];if(this.removeListener("error",nqA),this.on("error",FqA),A)A._readyState=i3.CLOSING,this.destroy()}});var tqA=h((Gtz,sqA)=>{var Wtz=I11(),{Duplex:GAK}=u6("stream");function oqA(A){A.emit("close")}function ZAK(){if(!this.destroyed&&this._writableState.finished)this.destroy()}function aqA(A){if(this.removeListener("error",aqA),this.destroy(),this.listenerCount("error")===0)this.emit("error",A)}function fAK(A,q){let K=!0,Y=new GAK({...q,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return A.on("message",function(w,_){let $=!_&&Y._readableState.objectMode?w.toString():w;if(!Y.push($))A.pause()}),A.once("error",function(w){if(Y.destroyed)return;K=!1,Y.destroy(w)}),A.once("close",function(){if(Y.destroyed)return;Y.push(null)}),Y._destroy=function(z,w){if(A.readyState===A.CLOSED){w(z),process.nextTick(oqA,Y);return}let _=!1;if(A.once("error",function(O){_=!0,w(O)}),A.once("close",function(){if(!_)w(z);process.nextTick(oqA,Y)}),K)A.terminate()},Y._final=function(z){if(A.readyState===A.CONNECTING){A.once("open",function(){Y._final(z)});return}if(A._socket===null)return;if(A._socket._writableState.finished){if(z(),Y._readableState.endEmitted)Y.destroy()}else A._socket.once("finish",function(){z()}),A.close()},Y._read=function(){if(A.isPaused)A.resume()},Y._write=function(z,w,_){if(A.readyState===A.CONNECTING){A.once("open",function(){Y._write(z,w,_)});return}A.send(z,_)},Y.on("end",ZAK),Y.on("error",aqA),Y}sqA.exports=fAK});var AKA=h((Ztz,eqA)=>{var{tokenChars:TAK}=UO6();function vAK(A){let q=new Set,K=-1,Y=-1,z=0;for(z;z<A.length;z++){let _=A.charCodeAt(z);if(Y===-1&&TAK[_]===1){if(K===-1)K=z}else if(z!==0&&(_===32||_===9)){if(Y===-1&&K!==-1)Y=z}else if(_===44){if(K===-1)throw SyntaxError(`Unexpected character at index ${z}`);if(Y===-1)Y=z;let $=A.slice(K,Y);if(q.has($))throw SyntaxError(`The "${$}" subprotocol is duplicated`);q.add($),K=Y=-1}else throw SyntaxError(`Unexpected character at index ${z}`)}if(K===-1||Y!==-1)throw SyntaxError("Unexpected end of input");let w=A.slice(K,z);if(q.has(w))throw SyntaxError(`The "${w}" subprotocol is duplicated`);return q.add(w),q}eqA.exports={parse:vAK}});var wKA=h((Ttz,zKA)=>{var VAK=u6("events"),x11=u6("http"),{Duplex:ftz}=u6("stream"),{createHash:NAK}=u6("crypto"),qKA=IQ1(),Y46=ay6(),kAK=AKA(),EAK=I11(),{GUID:LAK,kWebSocket:yAK}=eQ(),RAK=/^[+/0-9A-Za-z]{22}==$/;class YKA extends VAK{constructor(A,q){super();if(A={allowSynchronousEvents:!0,autoPong:!0,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:EAK,...A},A.port==null&&!A.server&&!A.noServer||A.port!=null&&(A.server||A.noServer)||A.server&&A.noServer)throw TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(A.port!=null)this._server=x11.createServer((K,Y)=>{let z=x11.STATUS_CODES[426];Y.writeHead(426,{"Content-Length":z.length,"Content-Type":"text/plain"}),Y.end(z)}),this._server.listen(A.port,A.host,A.backlog,q);else if(A.server)this._server=A.server;if(this._server){let K=this.emit.bind(this,"connection");this._removeListeners=SAK(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(Y,z,w)=>{this.handleUpgrade(Y,z,w,K)}})}if(A.perMessageDeflate===!0)A.perMessageDeflate={};if(A.clientTracking)this.clients=new Set,this._shouldEmitClose=!1;this.options=A,this._state=0}address(){if(this.options.noServer)throw Error('The server is operating in "noServer" mode');if(!this._server)return null;return this._server.address()}close(A){if(this._state===2){if(A)this.once("close",()=>{A(Error("The server is not running"))});process.nextTick(AR6,this);return}if(A)this.once("close",A);if(this._state===1)return;if(this._state=1,this.options.noServer||this.options.server){if(this._server)this._removeListeners(),this._removeListeners=this._server=null;if(this.clients)if(!this.clients.size)process.nextTick(AR6,this);else this._shouldEmitClose=!0;else process.nextTick(AR6,this)}else{let q=this._server;this._removeListeners(),this._removeListeners=this._server=null,q.close(()=>{AR6(this)})}}shouldHandle(A){if(this.options.path){let q=A.url.indexOf("?");if((q!==-1?A.url.slice(0,q):A.url)!==this.options.path)return!1}return!0}handleUpgrade(A,q,K,Y){q.on("error",KKA);let z=A.headers["sec-websocket-key"],w=A.headers.upgrade,_=+A.headers["sec-websocket-version"];if(A.method!=="GET"){z46(this,A,q,405,"Invalid HTTP method");return}if(w===void 0||w.toLowerCase()!=="websocket"){z46(this,A,q,400,"Invalid Upgrade header");return}if(z===void 0||!RAK.test(z)){z46(this,A,q,400,"Missing or invalid Sec-WebSocket-Key header");return}if(_!==13&&_!==8){z46(this,A,q,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(A)){qR6(q,400);return}let $=A.headers["sec-websocket-protocol"],O=new Set;if($!==void 0)try{O=kAK.parse($)}catch(J){z46(this,A,q,400,"Invalid Sec-WebSocket-Protocol header");return}let H=A.headers["sec-websocket-extensions"],j={};if(this.options.perMessageDeflate&&H!==void 0){let J=new Y46(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let M=qKA.parse(H);if(M[Y46.extensionName])J.accept(M[Y46.extensionName]),j[Y46.extensionName]=J}catch(M){z46(this,A,q,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let J={origin:A.headers[`${_===8?"sec-websocket-origin":"origin"}`],secure:!!(A.socket.authorized||A.socket.encrypted),req:A};if(this.options.verifyClient.length===2){this.options.verifyClient(J,(M,D,X,P)=>{if(!M)return qR6(q,D||401,X,P);this.completeUpgrade(j,z,O,A,q,K,Y)});return}if(!this.options.verifyClient(J))return qR6(q,401)}this.completeUpgrade(j,z,O,A,q,K,Y)}completeUpgrade(A,q,K,Y,z,w,_){if(!z.readable||!z.writable)return z.destroy();if(z[yAK])throw Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return qR6(z,503);let O=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${NAK("sha1").update(q+LAK).digest("base64")}`],H=new this.options.WebSocket(null,void 0,this.options);if(K.size){let j=this.options.handleProtocols?this.options.handleProtocols(K,Y):K.values().next().value;if(j)O.push(`Sec-WebSocket-Protocol: ${j}`),H._protocol=j}if(A[Y46.extensionName]){let j=A[Y46.extensionName].params,J=qKA.format({[Y46.extensionName]:[j]});O.push(`Sec-WebSocket-Extensions: ${J}`),H._extensions=A}if(this.emit("headers",O,Y),z.write(O.concat(`\r
`).join(`\r
`)),z.removeListener("error",KKA),H.setSocket(z,w,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients)this.clients.add(H),H.on("close",()=>{if(this.clients.delete(H),this._shouldEmitClose&&!this.clients.size)process.nextTick(AR6,this)});_(H,Y)}}zKA.exports=YKA;function SAK(A,q){for(let K of Object.keys(q))A.on(K,q[K]);return function(){for(let Y of Object.keys(q))A.removeListener(Y,q[Y])}}function AR6(A){A._state=2,A.emit("close")}function KKA(){this.destroy()}function qR6(A,q,K,Y){K=K||x11.STATUS_CODES[q],Y={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(K),...Y},A.once("finish",A.destroy),A.end(`HTTP/1.1 ${q} ${x11.STATUS_CODES[q]}\r
`+Object.keys(Y).map((z)=>`${z}: ${Y[z]}`).join(`\r
`)+`\r
\r
`+K)}function z46(A,q,K,Y,z,w){if(A.listenerCount("wsClientError")){let _=Error(z);Error.captureStackTrace(_,z46),A.emit("wsClientError",_,K,q)}else qR6(K,Y,z,w)}});var b11={};d1(b11,{default:()=>sP,createWebSocketStream:()=>_KA.default,WebSocketServer:()=>HKA.default,WebSocket:()=>BQ1.default,Sender:()=>OKA.default,Receiver:()=>$KA.default});var _KA,$KA,OKA,BQ1,HKA,sP;var nO6=E(()=>{_KA=q6(tqA(),1),$KA=q6(RQ1(),1),OKA=q6(hQ1(),1),BQ1=q6(I11(),1),HKA=q6(wKA(),1),sP=BQ1.default});import{promises as jKA}from"fs";import{createConnection as hAK}from"net";import{platform as CAK}from"os";import{dirname as IAK}from"path";function xAK(A){return"result"in A||"error"in A}function bAK(A){return"method"in A&&typeof A.method==="string"}class JKA{socket=null;connected=!1;connecting=!1;responseCallback=null;notificationHandler=null;responseBuffer=Buffer.alloc(0);reconnectAttempts=0;maxReconnectAttempts=10;reconnectDelay=1000;reconnectTimer=null;context;disableAutoReconnect=!1;constructor(A){this.context=A}async connect(){let{serverName:A,logger:q}=this.context;if(this.connecting){q.info(`[${A}] Already connecting, skipping duplicate attempt`);return}this.closeSocket(),this.connecting=!0;let K=this.context.getSocketPath?.()??this.context.socketPath;q.info(`[${A}] Attempting to connect to: ${K}`);try{await this.validateSocketSecurity(K)}catch(z){this.connecting=!1,q.info(`[${A}] Security validation failed:`,z);return}this.socket=hAK(K);let Y=setTimeout(()=>{if(!this.connected)q.info(`[${A}] Connection attempt timed out after 5000ms`),this.closeSocket(),this.scheduleReconnect()},5000);this.socket.on("connect",()=>{clearTimeout(Y),this.connected=!0,this.connecting=!1,this.reconnectAttempts=0,q.info(`[${A}] Successfully connected to bridge server`)}),this.socket.on("data",(z)=>{this.responseBuffer=Buffer.concat([this.responseBuffer,z]);while(this.responseBuffer.length>=4){let w=this.responseBuffer.readUInt32LE(0);if(this.responseBuffer.length<4+w)break;let _=this.responseBuffer.slice(4,4+w);this.responseBuffer=this.responseBuffer.slice(4+w);try{let $=JSON.parse(_.toString("utf-8"));if(bAK($)){if(q.info(`[${A}] Received notification: ${$.method}`),this.notificationHandler)this.notificationHandler($)}else if(xAK($))q.info(`[${A}] Received tool response: ${$}`),this.handleResponse($);else q.info(`[${A}] Received unknown message: ${$}`)}catch($){q.info(`[${A}] Failed to parse message:`,$)}}}),this.socket.on("error",(z)=>{if(clearTimeout(Y),q.info(`[${A}] Socket error (code: ${z.code}):`,z),this.connected=!1,this.connecting=!1,z.code&&["ECONNREFUSED","ECONNRESET","EPIPE","ENOENT","EOPNOTSUPP","ECONNABORTED"].includes(z.code))this.scheduleReconnect()}),this.socket.on("close",()=>{clearTimeout(Y),this.connected=!1,this.connecting=!1,this.scheduleReconnect()})}scheduleReconnect(){let{serverName:A,logger:q}=this.context;if(this.disableAutoReconnect)return;if(this.reconnectTimer){q.info(`[${A}] Reconnect already scheduled, skipping`);return}this.reconnectAttempts++;let K=100;if(this.reconnectAttempts>K){q.info(`[${A}] Giving up after ${K} attempts. Will retry on next tool call.`),this.reconnectAttempts=0;return}let Y=Math.min(this.reconnectDelay*Math.pow(1.5,this.reconnectAttempts-1),30000);if(this.reconnectAttempts<=this.maxReconnectAttempts)q.info(`[${A}] Reconnecting in ${Math.round(Y)}ms (attempt ${this.reconnectAttempts})`);else if(this.reconnectAttempts%10===0)q.info(`[${A}] Still polling for native host (attempt ${this.reconnectAttempts})`);this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},Y)}handleResponse(A){if(this.responseCallback){let q=this.responseCallback;this.responseCallback=null,q(A)}}setNotificationHandler(A){this.notificationHandler=A}async ensureConnected(){let{serverName:A}=this.context;if(this.connected&&this.socket)return!0;if(!this.socket&&!this.connecting)await this.connect();return new Promise((q,K)=>{let Y=null,z=setTimeout(()=>{if(Y)clearTimeout(Y);K(new rZ(`[${A}] Connection attempt timed out after 5000ms`))},5000),w=()=>{if(this.connected)clearTimeout(z),q(!0);else Y=setTimeout(w,500)};w()})}async sendRequest(A,q=30000){let{serverName:K}=this.context;if(!this.socket)throw new rZ(`[${K}] Cannot send request: not connected`);let Y=this.socket;return new Promise((z,w)=>{let _=setTimeout(()=>{this.responseCallback=null,w(new rZ(`[${K}] Tool request timed out after ${q}ms`))},q);this.responseCallback=(J)=>{clearTimeout(_),z(J)};let $=JSON.stringify(A),O=Buffer.from($,"utf-8"),H=Buffer.allocUnsafe(4);H.writeUInt32LE(O.length,0);let j=Buffer.concat([H,O]);Y.write(j)})}async callTool(A,q,K){let Y={method:"execute_tool",params:{client_id:this.context.clientTypeId,tool:A,args:q}};return this.sendRequestWithRetry(Y)}async sendRequestWithRetry(A){let{serverName:q,logger:K}=this.context;try{return await this.sendRequest(A)}catch(Y){if(!(Y instanceof rZ))throw Y;return K.info(`[${q}] Connection error, forcing reconnect and retrying: ${Y.message}`),this.closeSocket(),await this.ensureConnected(),await this.sendRequest(A)}}async setPermissionMode(A,q){}isConnected(){return this.connected}closeSocket(){if(this.socket)this.socket.removeAllListeners(),this.socket.end(),this.socket.destroy(),this.socket=null;this.connected=!1,this.connecting=!1}cleanup(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.closeSocket(),this.reconnectAttempts=0,this.responseBuffer=Buffer.alloc(0),this.responseCallback=null}disconnect(){this.cleanup()}async validateSocketSecurity(A){let{serverName:q,logger:K}=this.context;if(CAK()==="win32")return;try{let Y=IAK(A);if((Y.split("/").pop()||"").startsWith("claude-mcp-browser-bridge-"))try{let H=await jKA.stat(Y);if(H.isDirectory()){let j=H.mode&511;if(j!==448)throw Error(`[${q}] Insecure socket directory permissions: ${j.toString(8)} (expected 0700). Directory may have been tampered with.`);let J=process.getuid?.();if(J!==void 0&&H.uid!==J)throw Error(`Socket directory not owned by current user (uid: ${J}, dir uid: ${H.uid}). Potential security risk.`)}}catch(H){if(H.code!=="ENOENT")throw H}let _=await jKA.stat(A);if(!_.isSocket())throw Error(`[${q}] Path exists but it's not a socket: ${A}`);let $=_.mode&511;if($!==384)throw Error(`[${q}] Insecure socket permissions: ${$.toString(8)} (expected 0600). Socket may have been tampered with.`);let O=process.getuid?.();if(O!==void 0&&_.uid!==O)throw Error(`Socket not owned by current user (uid: ${O}, socket uid: ${_.uid}). Potential security risk.`);K.info(`[${q}] Socket security validation passed`)}catch(Y){if(Y.code==="ENOENT"){K.info(`[${q}] Socket not found, will be created by server`);return}throw Y}}}function u11(A){return new JKA(A)}var rZ;var KR6=E(()=>{rZ=class rZ extends Error{constructor(A){super(A);this.name="SocketConnectionError"}}});function m11(){return process.platform==="darwin"?"macOS":process.platform==="win32"?"Windows":"Linux"}class B11{ws=null;connected=!1;authenticated=!1;connecting=!1;reconnectTimer=null;reconnectAttempts=0;pendingCalls=new Map;notificationHandler=null;context;permissionMode="ask";allowedDomains;tabsContextCollectionTimeoutMs=2000;toolCallTimeoutMs=120000;connectionStartTime=null;connectionEstablishedTime=null;selectedDeviceId;discoveryComplete=!1;discoveryPromise=null;pendingDiscovery=null;previousSelectedDeviceId;peerConnectedWaiters=[];pendingPairingRequestId;pairingInProgress=!1;persistedDeviceId;pendingSwitchResolve=null;constructor(A){if(this.context=A,A.initialPermissionMode)this.permissionMode=A.initialPermissionMode}async ensureConnected(){let{logger:A,serverName:q}=this.context;if(A.info(`[${q}] ensureConnected called, connected=${this.connected}, authenticated=${this.authenticated}, wsState=${this.ws?.readyState}`),this.connected&&this.authenticated&&this.ws?.readyState===sP.OPEN)return A.info(`[${q}] Already connected and authenticated`),!0;if(!this.connecting)A.info(`[${q}] Not connecting, starting connection...`),await this.connect();else A.info(`[${q}] Already connecting, waiting...`);return new Promise((K)=>{let Y=setTimeout(()=>{A.info(`[${q}] Connection timeout, connected=${this.connected}, authenticated=${this.authenticated}`),K(!1)},1e4),z=()=>{if(this.connected&&this.authenticated)A.info(`[${q}] Connection successful`),clearTimeout(Y),K(!0);else if(!this.connecting)A.info(`[${q}] No longer connecting, giving up`),clearTimeout(Y),K(!1);else setTimeout(z,200)};z()})}async callTool(A,q,K){let{logger:Y,serverName:z,trackEvent:w}=this.context;if(!this.ws||this.ws.readyState!==sP.OPEN)throw new rZ(`[${z}] Bridge not connected`);if(!this.selectedDeviceId&&!this.discoveryComplete)this.discoveryPromise??=this.discoverAndSelectExtension().finally(()=>{this.discoveryPromise=null}),await this.discoveryPromise;let _=crypto.randomUUID(),$=A==="tabs_context_mcp",O=Date.now(),H=$?this.tabsContextCollectionTimeoutMs:this.toolCallTimeoutMs;w?.("chrome_bridge_tool_call_started",{tool_name:A,tool_use_id:_});let j=K?.permissionMode??this.permissionMode,J=K?.allowedDomains??this.allowedDomains;return new Promise((M,D)=>{let X=setTimeout(()=>{let W=this.pendingCalls.get(_);if(W){this.pendingCalls.delete(_);let G=Date.now()-W.startTime;if($&&W.results.length>0)w?.("chrome_bridge_tool_call_completed",{tool_name:A,tool_use_id:_,duration_ms:G}),M(this.mergeTabsResults(W.results));else Y.warn(`[${z}] Tool call timeout: ${A} (${_.slice(0,8)}) after ${G}ms, pending calls: ${this.pendingCalls.size}`),w?.("chrome_bridge_tool_call_timeout",{tool_name:A,tool_use_id:_,duration_ms:G,timeout_ms:H}),D(new rZ(`[${z}] Tool call timed out: ${A}`))}},H);this.pendingCalls.set(_,{resolve:M,reject:D,timer:X,results:[],isTabsContext:$,onPermissionRequest:K?.onPermissionRequest,startTime:O,toolName:A});let P={type:"tool_call",tool_use_id:_,client_type:this.context.clientTypeId,tool:A,args:q};if(this.selectedDeviceId)P.target_device_id=this.selectedDeviceId;if(j)P.permission_mode=j;if(J?.length)P.allowed_domains=J;if(K?.onPermissionRequest)P.handle_permission_prompts=!0;Y.debug(`[${z}] Sending tool_call: ${A} (${_.slice(0,8)})`),this.ws.send(JSON.stringify(P))})}isConnected(){return this.connected&&this.authenticated&&this.ws?.readyState===sP.OPEN}disconnect(){this.cleanup()}setNotificationHandler(A){this.notificationHandler=A}async setPermissionMode(A,q){this.permissionMode=A,this.allowedDomains=q}async discoverAndSelectExtension(){let{logger:A,serverName:q}=this.context;this.persistedDeviceId??=this.context.getPersistedDeviceId?.();let K=await this.queryBridgeExtensions();if(K.length===0){if(A.info(`[${q}] No extensions connected, waiting up to ${MKA}ms for peer_connected`),await this.waitForPeerConnected(MKA))K=await this.queryBridgeExtensions()}if(this.discoveryComplete=!0,K.length===0){A.info(`[${q}] No extensions found after waiting`);return}if(K.length===1){let Y=K[0];if(!this.isLocalExtension(Y))this.context.onRemoteExtensionWarning?.(Y);this.selectExtension(Y.deviceId);return}if(this.persistedDeviceId){let Y=K.find((z)=>z.deviceId===this.persistedDeviceId);if(Y){A.info(`[${q}] Auto-connecting to persisted extension: ${Y.name||Y.deviceId.slice(0,8)}`),this.selectExtension(Y.deviceId);return}}this.broadcastPairingRequest(),this.pairingInProgress=!0}async queryBridgeExtensions(){let A=await new Promise((K)=>{let Y=setTimeout(()=>{this.pendingDiscovery=null,K([])},uAK);this.pendingDiscovery={resolve:K,timeout:Y},this.ws?.send(JSON.stringify({type:"list_extensions"}))}),q=new Map;for(let K of A){let Y=q.get(K.deviceId);if(!Y||K.connectedAt>Y.connectedAt)q.set(K.deviceId,K)}return[...q.values()]}selectExtension(A){let{logger:q,serverName:K}=this.context;this.selectedDeviceId=A,this.previousSelectedDeviceId=void 0,q.info(`[${K}] Selected Chrome extension: ${A.slice(0,8)}...`)}isLocalExtension(A){if(!A.osPlatform)return!1;return A.osPlatform===m11()}waitForPeerConnected(A){return new Promise((q)=>{let K=setTimeout(()=>{this.peerConnectedWaiters=this.peerConnectedWaiters.filter((z)=>z!==Y),q(!1)},A),Y=(z)=>{clearTimeout(K),q(z)};this.peerConnectedWaiters.push(Y)})}broadcastPairingRequest(){let A=crypto.randomUUID();this.pendingPairingRequestId=A,this.ws?.send(JSON.stringify({type:"pairing_request",request_id:A,client_type:this.context.clientTypeId}))}async switchBrowser(){let A=await this.queryBridgeExtensions(),q=this.selectedDeviceId??this.previousSelectedDeviceId;if(A.length===0||A.length===1&&(!q||A[0].deviceId===q))return"no_other_browsers";this.previousSelectedDeviceId=this.selectedDeviceId,this.selectedDeviceId=void 0,this.discoveryComplete=!1,this.pairingInProgress=!1;let K=crypto.randomUUID();if(this.pendingPairingRequestId=K,this.ws?.readyState!==sP.OPEN)return null;if(this.ws.send(JSON.stringify({type:"pairing_request",request_id:K,client_type:this.context.clientTypeId})),this.pendingSwitchResolve)this.pendingSwitchResolve(null);return new Promise((Y)=>{let z=setTimeout(()=>{if(this.pendingPairingRequestId===K)this.pendingPairingRequestId=void 0;this.pendingSwitchResolve=null,Y(null)},120000);this.pendingSwitchResolve=(w)=>{clearTimeout(z),this.pendingSwitchResolve=null,Y(w)}})}async connect(){let{logger:A,serverName:q,bridgeConfig:K,trackEvent:Y}=this.context;if(!K){A.error(`[${q}] No bridge config provided`);return}if(this.connecting)return;this.connecting=!0,this.authenticated=!1,this.connectionStartTime=Date.now(),this.closeSocket();let z,w;if(K.devUserId)z=K.devUserId,A.debug(`[${q}] Using dev user ID for bridge connection`);else{A.debug(`[${q}] Fetching user ID for bridge connection`);let $=await K.getUserId();if(!$){let O=Date.now()-this.connectionStartTime;A.error(`[${q}] No user ID available after ${O}ms`),Y?.("chrome_bridge_connection_failed",{duration_ms:O,error_type:"no_user_id",reconnect_attempt:this.reconnectAttempts}),this.connecting=!1,this.context.onAuthenticationError?.();return}if(z=$,A.debug(`[${q}] Fetching OAuth token for bridge connection`),w=await K.getOAuthToken(),!w){let O=Date.now()-this.connectionStartTime;A.error(`[${q}] No OAuth token available after ${O}ms`),Y?.("chrome_bridge_connection_failed",{duration_ms:O,error_type:"no_oauth_token",reconnect_attempt:this.reconnectAttempts}),this.connecting=!1,this.context.onAuthenticationError?.();return}}let _=`${K.url}/chrome/${z}`;A.info(`[${q}] Connecting to bridge: ${_}`),Y?.("chrome_bridge_connection_started",{bridge_url:_});try{this.ws=new sP(_)}catch($){let O=Date.now()-this.connectionStartTime;A.error(`[${q}] Failed to create WebSocket after ${O}ms:`,$),Y?.("chrome_bridge_connection_failed",{duration_ms:O,error_type:"websocket_error",reconnect_attempt:this.reconnectAttempts}),this.connecting=!1,this.scheduleReconnect();return}this.ws.on("open",()=>{A.info(`[${q}] WebSocket connected, sending connect message`);let $={type:"connect",client_type:this.context.clientTypeId};if(K.devUserId)$.dev_user_id=K.devUserId;else $.oauth_token=w;this.ws?.send(JSON.stringify($))}),this.ws.on("message",($)=>{try{let O=JSON.parse($.toString());A.debug(`[${q}] Bridge received: ${JSON.stringify(O)}`),this.handleMessage(O)}catch(O){A.error(`[${q}] Failed to parse bridge message:`,O)}}),this.ws.on("close",($)=>{let O=this.connectionEstablishedTime?Date.now()-this.connectionEstablishedTime:0;A.info(`[${q}] Bridge connection closed (code: ${$}, duration: ${O}ms)`),Y?.("chrome_bridge_disconnected",{close_code:$,duration_since_connect_ms:O,reconnect_attempt:this.reconnectAttempts+1}),this.connected=!1,this.authenticated=!1,this.connecting=!1,this.connectionEstablishedTime=null,this.scheduleReconnect()}),this.ws.on("error",($)=>{let O=this.connectionStartTime?Date.now()-this.connectionStartTime:0;A.error(`[${q}] Bridge WebSocket error after ${O}ms: ${$.message}`),Y?.("chrome_bridge_connection_failed",{duration_ms:O,error_type:"websocket_error",reconnect_attempt:this.reconnectAttempts}),this.connected=!1,this.authenticated=!1,this.connecting=!1})}handleMessage(A){let{logger:q,serverName:K,trackEvent:Y}=this.context;switch(A.type){case"paired":{let z=this.connectionStartTime?Date.now()-this.connectionStartTime:0;q.info(`[${K}] Paired with Chrome extension (duration: ${z}ms)`),this.connected=!0,this.authenticated=!0,this.connecting=!1,this.reconnectAttempts=0,this.connectionEstablishedTime=Date.now(),Y?.("chrome_bridge_connection_succeeded",{duration_ms:z,status:"paired"});break}case"waiting":{let z=this.connectionStartTime?Date.now()-this.connectionStartTime:0;q.info(`[${K}] Waiting for Chrome extension to connect (duration: ${z}ms)`),this.connected=!0,this.authenticated=!0,this.connecting=!1,this.reconnectAttempts=0,this.connectionEstablishedTime=Date.now(),Y?.("chrome_bridge_connection_succeeded",{duration_ms:z,status:"waiting"});break}case"peer_connected":if(q.info(`[${K}] Chrome extension connected to bridge`),Y?.("chrome_bridge_peer_connected",null),!this.selectedDeviceId)this.discoveryComplete=!1;if(this.previousSelectedDeviceId&&A.deviceId===this.previousSelectedDeviceId&&!this.pendingSwitchResolve)q.info(`[${K}] Previously selected extension reconnected, auto-reselecting`),this.selectExtension(this.previousSelectedDeviceId),this.previousSelectedDeviceId=void 0;if(this.peerConnectedWaiters.length>0){let z=this.peerConnectedWaiters;this.peerConnectedWaiters=[];for(let w of z)w(!0)}break;case"peer_disconnected":if(q.info(`[${K}] Chrome extension disconnected from bridge`),Y?.("chrome_bridge_peer_disconnected",null),A.deviceId&&A.deviceId===this.selectedDeviceId)q.info(`[${K}] Selected extension disconnected, clearing selection`),this.previousSelectedDeviceId=this.selectedDeviceId,this.selectedDeviceId=void 0,this.discoveryComplete=!1;break;case"extensions_list":if(this.pendingDiscovery)clearTimeout(this.pendingDiscovery.timeout),this.pendingDiscovery.resolve(A.extensions??[]),this.pendingDiscovery=null;break;case"pairing_response":{let{request_id:z,device_id:w,name:_}=A;if(this.pendingPairingRequestId===z&&w&&_){if(this.pendingPairingRequestId=void 0,this.pairingInProgress=!1,this.selectExtension(w),this.context.onExtensionPaired?.(w,_),q.info(`[${K}] Paired with "${_}" (${w.slice(0,8)})`),this.pendingSwitchResolve)this.pendingSwitchResolve({deviceId:w,name:_}),this.pendingSwitchResolve=null}break}case"ping":this.ws?.send(JSON.stringify({type:"pong"}));break;case"pong":break;case"tool_result":this.handleToolResult(A);break;case"permission_request":this.handlePermissionRequest(A);break;case"notification":if(this.notificationHandler)this.notificationHandler({method:A.method,params:A.params});break;case"error":if(q.warn(`[${K}] Bridge error: ${A.error}`),this.selectedDeviceId)this.selectedDeviceId=void 0,this.discoveryComplete=!1;break;default:q.warn(`[${K}] Unrecognized bridge message type: ${A.type}`)}}async handlePermissionRequest(A){let{logger:q,serverName:K}=this.context,Y=A.tool_use_id,z=A.request_id;if(!Y||!z){q.warn(`[${K}] permission_request missing tool_use_id or request_id`);return}let w=this.pendingCalls.get(Y);if(!w?.onPermissionRequest){q.debug(`[${K}] Ignoring permission_request for unknown tool_use_id ${Y.slice(0,8)} (not our call)`);return}let _={toolUseId:Y,requestId:z,toolType:A.tool_type??"unknown",url:A.url??"",actionData:A.action_data};try{let $=await w.onPermissionRequest(_);this.sendPermissionResponse(z,$)}catch($){q.error(`[${K}] Error handling permission request:`,$),this.sendPermissionResponse(z,!1)}}sendPermissionResponse(A,q){if(this.ws?.readyState===sP.OPEN){let K={type:"permission_response",request_id:A,allowed:q};if(this.selectedDeviceId)K.target_device_id=this.selectedDeviceId;this.ws.send(JSON.stringify(K))}}handleToolResult(A){let{logger:q,serverName:K,trackEvent:Y}=this.context,z=A.tool_use_id;if(!z){q.warn(`[${K}] Received tool_result without tool_use_id`);return}let w=this.pendingCalls.get(z);if(!w){q.debug(`[${K}] Received tool_result for unknown call: ${z.slice(0,8)}`);return}let _=Date.now()-w.startTime,$=this.normalizeBridgeResponse(A),O=Boolean(A.is_error)||"error"in $;if(w.isTabsContext&&!this.selectedDeviceId)w.results.push($);else{if(clearTimeout(w.timer),this.pendingCalls.delete(z),O){let H=$.error?.content,j="Unknown error";if(Array.isArray(H)){let J=H.find((M)=>typeof M==="object"&&M!==null&&("text"in M));if(J?.text)j=J.text.slice(0,200)}q.warn(`[${K}] Tool call error: ${w.toolName} (${z.slice(0,8)}) after ${_}ms`),Y?.("chrome_bridge_tool_call_error",{tool_name:w.toolName,tool_use_id:z,duration_ms:_,error_message:j})}else q.debug(`[${K}] Tool call completed: ${w.toolName} (${z.slice(0,8)}) in ${_}ms`),Y?.("chrome_bridge_tool_call_completed",{tool_name:w.toolName,tool_use_id:z,duration_ms:_});w.resolve($)}}normalizeBridgeResponse(A){if(A.result||A.error)return A;if(A.content){if(A.is_error)return{error:{content:A.content}};return{result:{content:A.content}}}return A}mergeTabsResults(A){let q=[];for(let K of A){let w=K.result?.content;if(!w||!Array.isArray(w))continue;for(let _ of w)if(_.type==="text"&&_.text)try{let $=JSON.parse(_.text);if(Array.isArray($))q.push(...$);else if($?.availableTabs&&Array.isArray($.availableTabs))q.push(...$.availableTabs)}catch{}}if(q.length>0){let K=q.map((Y)=>{let z=Y;return`  • tabId ${z.tabId}: "${z.title}" (${z.url})`}).join(`
`);return{result:{content:[{type:"text",text:JSON.stringify({availableTabs:q})},{type:"text",text:`

Tab Context:
- Available tabs:
${K}`}]}}}return A[0]}scheduleReconnect(){let{logger:A,serverName:q,trackEvent:K}=this.context;if(this.reconnectTimer)return;if(this.reconnectAttempts++,this.reconnectAttempts>100){A.warn(`[${q}] Giving up bridge reconnection after 100 attempts`),K?.("chrome_bridge_reconnect_exhausted",{total_attempts:100}),this.reconnectAttempts=0;return}let Y=Math.min(2000*Math.pow(1.5,this.reconnectAttempts-1),30000);if(this.reconnectAttempts<=10||this.reconnectAttempts%10===0)A.info(`[${q}] Bridge reconnecting in ${Math.round(Y)}ms (attempt ${this.reconnectAttempts})`);this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},Y)}closeSocket(){if(this.ws)this.ws.removeAllListeners(),this.ws.close(),this.ws=null;if(this.connected=!1,this.authenticated=!1,this.selectedDeviceId=void 0,this.discoveryComplete=!1,this.pendingPairingRequestId=void 0,this.pairingInProgress=!1,this.pendingSwitchResolve)this.pendingSwitchResolve(null),this.pendingSwitchResolve=null;if(this.pendingDiscovery)clearTimeout(this.pendingDiscovery.timeout),this.pendingDiscovery.resolve([]),this.pendingDiscovery=null;if(this.peerConnectedWaiters.length>0){let A=this.peerConnectedWaiters;this.peerConnectedWaiters=[];for(let q of A)q(!1)}}cleanup(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;for(let[A,q]of this.pendingCalls)clearTimeout(q.timer),q.reject(new rZ("Bridge client disconnected")),this.pendingCalls.delete(A);this.closeSocket(),this.reconnectAttempts=0}}function g11(A){return new B11(A)}var uAK=5000,MKA=1e4;var gQ1=E(()=>{nO6();KR6()});var KU;var pQ1=E(()=>{KU=[{name:"javascript_tool",description:"Execute JavaScript code in the context of the current page. The code runs in the page's context and can interact with the DOM, window object, and page variables. Returns the result of the last expression or any thrown errors. If you don't have a valid tab ID, use tabs_context_mcp first to get available tabs.",inputSchema:{type:"object",properties:{action:{type:"string",description:"Must be set to 'javascript_exec'"},text:{type:"string",description:"The JavaScript code to execute. The code will be evaluated in the page context. The result of the last expression will be returned automatically. Do NOT use 'return' statements - just write the expression you want to evaluate (e.g., 'window.myData.value' not 'return window.myData.value'). You can access and modify the DOM, call page functions, and interact with page variables."},tabId:{type:"number",description:"Tab ID to execute the code in. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."}},required:["action","text","tabId"]}},{name:"read_page",description:"Get an accessibility tree representation of elements on the page. By default returns all elements including non-visible ones. Output is limited to 50000 characters by default. If the output exceeds this limit, you will receive an error asking you to specify a smaller depth or focus on a specific element using ref_id. Optionally filter for only interactive elements. If you don't have a valid tab ID, use tabs_context_mcp first to get available tabs.",inputSchema:{type:"object",properties:{filter:{type:"string",enum:["interactive","all"],description:'Filter elements: "interactive" for buttons/links/inputs only, "all" for all elements including non-visible ones (default: all elements)'},tabId:{type:"number",description:"Tab ID to read from. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."},depth:{type:"number",description:"Maximum depth of the tree to traverse (default: 15). Use a smaller depth if output is too large."},ref_id:{type:"string",description:"Reference ID of a parent element to read. Will return the specified element and all its children. Use this to focus on a specific part of the page when output is too large."},max_chars:{type:"number",description:"Maximum characters for output (default: 50000). Set to a higher value if your client can handle large outputs."}},required:["tabId"]}},{name:"find",description:`Find elements on the page using natural language. Can search for elements by their purpose (e.g., "search bar", "login button") or by text content (e.g., "organic mango product"). Returns up to 20 matching elements with references that can be used with other tools. If more than 20 matches exist, you'll be notified to use a more specific query. If you don't have a valid tab ID, use tabs_context_mcp first to get available tabs.`,inputSchema:{type:"object",properties:{query:{type:"string",description:'Natural language description of what to find (e.g., "search bar", "add to cart button", "product title containing organic")'},tabId:{type:"number",description:"Tab ID to search in. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."}},required:["query","tabId"]}},{name:"form_input",description:"Set values in form elements using element reference ID from the read_page tool. If you don't have a valid tab ID, use tabs_context_mcp first to get available tabs.",inputSchema:{type:"object",properties:{ref:{type:"string",description:'Element reference ID from the read_page tool (e.g., "ref_1", "ref_2")'},value:{type:["string","boolean","number"],description:"The value to set. For checkboxes use boolean, for selects use option value or text, for other inputs use appropriate string/number"},tabId:{type:"number",description:"Tab ID to set form value in. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."}},required:["ref","value","tabId"]}},{name:"computer",description:`Use a mouse and keyboard to interact with a web browser, and take screenshots. If you don't have a valid tab ID, use tabs_context_mcp first to get available tabs.
* Whenever you intend to click on an element like an icon, you should consult a screenshot to determine the coordinates of the element before moving the cursor.
* If you tried clicking on a program or link but it failed to load, even after waiting, try adjusting your click location so that the tip of the cursor visually falls on the element that you want to click.
* Make sure to click any buttons, links, icons, etc with the cursor tip in the center of the element. Don't click boxes on their edges unless asked.`,inputSchema:{type:"object",properties:{action:{type:"string",enum:["left_click","right_click","type","screenshot","wait","scroll","key","left_click_drag","double_click","triple_click","zoom","scroll_to","hover"],description:"The action to perform:\n* `left_click`: Click the left mouse button at the specified coordinates.\n* `right_click`: Click the right mouse button at the specified coordinates to open context menus.\n* `double_click`: Double-click the left mouse button at the specified coordinates.\n* `triple_click`: Triple-click the left mouse button at the specified coordinates.\n* `type`: Type a string of text.\n* `screenshot`: Take a screenshot of the screen.\n* `wait`: Wait for a specified number of seconds.\n* `scroll`: Scroll up, down, left, or right at the specified coordinates.\n* `key`: Press a specific keyboard key.\n* `left_click_drag`: Drag from start_coordinate to coordinate.\n* `zoom`: Take a screenshot of a specific region for closer inspection.\n* `scroll_to`: Scroll an element into view using its element reference ID from read_page or find tools.\n* `hover`: Move the mouse cursor to the specified coordinates or element without clicking. Useful for revealing tooltips, dropdown menus, or triggering hover states."},coordinate:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"(x, y): The x (pixels from the left edge) and y (pixels from the top edge) coordinates. Required for `left_click`, `right_click`, `double_click`, `triple_click`, and `scroll`. For `left_click_drag`, this is the end position."},text:{type:"string",description:'The text to type (for `type` action) or the key(s) to press (for `key` action). For `key` action: Provide space-separated keys (e.g., "Backspace Backspace Delete"). Supports keyboard shortcuts using the platform\'s modifier key (use "cmd" on Mac, "ctrl" on Windows/Linux, e.g., "cmd+a" or "ctrl+a" for select all).'},duration:{type:"number",minimum:0,maximum:30,description:"The number of seconds to wait. Required for `wait`. Maximum 30 seconds."},scroll_direction:{type:"string",enum:["up","down","left","right"],description:"The direction to scroll. Required for `scroll`."},scroll_amount:{type:"number",minimum:1,maximum:10,description:"The number of scroll wheel ticks. Optional for `scroll`, defaults to 3."},start_coordinate:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"(x, y): The starting coordinates for `left_click_drag`."},region:{type:"array",items:{type:"number"},minItems:4,maxItems:4,description:"(x0, y0, x1, y1): The rectangular region to capture for `zoom`. Coordinates define a rectangle from top-left (x0, y0) to bottom-right (x1, y1) in pixels from the viewport origin. Required for `zoom` action. Useful for inspecting small UI elements like icons, buttons, or text."},repeat:{type:"number",minimum:1,maximum:100,description:"Number of times to repeat the key sequence. Only applicable for `key` action. Must be a positive integer between 1 and 100. Default is 1. Useful for navigation tasks like pressing arrow keys multiple times."},ref:{type:"string",description:'Element reference ID from read_page or find tools (e.g., "ref_1", "ref_2"). Required for `scroll_to` action. Can be used as alternative to `coordinate` for click actions.'},modifiers:{type:"string",description:'Modifier keys for click actions. Supports: "ctrl", "shift", "alt", "cmd" (or "meta"), "win" (or "windows"). Can be combined with "+" (e.g., "ctrl+shift", "cmd+alt"). Optional.'},tabId:{type:"number",description:"Tab ID to execute the action on. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."}},required:["action","tabId"]}},{name:"navigate",description:"Navigate to a URL, or go forward/back in browser history. If you don't have a valid tab ID, use tabs_context_mcp first to get available tabs.",inputSchema:{type:"object",properties:{url:{type:"string",description:'The URL to navigate to. Can be provided with or without protocol (defaults to https://). Use "forward" to go forward in history or "back" to go back in history.'},tabId:{type:"number",description:"Tab ID to navigate. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."}},required:["url","tabId"]}},{name:"resize_window",description:"Resize the current browser window to specified dimensions. Useful for testing responsive designs or setting up specific screen sizes. If you don't have a valid tab ID, use tabs_context_mcp first to get available tabs.",inputSchema:{type:"object",properties:{width:{type:"number",description:"Target window width in pixels"},height:{type:"number",description:"Target window height in pixels"},tabId:{type:"number",description:"Tab ID to get the window for. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."}},required:["width","height","tabId"]}},{name:"gif_creator",description:"Manage GIF recording and export for browser automation sessions. Control when to start/stop recording browser actions (clicks, scrolls, navigation), then export as an animated GIF with visual overlays (click indicators, action labels, progress bar, watermark). All operations are scoped to the tab's group. When starting recording, take a screenshot immediately after to capture the initial state as the first frame. When stopping recording, take a screenshot immediately before to capture the final state as the last frame. For export, either provide 'coordinate' to drag/drop upload to a page element, or set 'download: true' to download the GIF.",inputSchema:{type:"object",properties:{action:{type:"string",enum:["start_recording","stop_recording","export","clear"],description:"Action to perform: 'start_recording' (begin capturing), 'stop_recording' (stop capturing but keep frames), 'export' (generate and export GIF), 'clear' (discard frames)"},tabId:{type:"number",description:"Tab ID to identify which tab group this operation applies to"},download:{type:"boolean",description:"Always set this to true for the 'export' action only. This causes the gif to be downloaded in the browser."},filename:{type:"string",description:"Optional filename for exported GIF (default: 'recording-[timestamp].gif'). For 'export' action only."},options:{type:"object",description:"Optional GIF enhancement options for 'export' action. Properties: showClickIndicators (bool), showDragPaths (bool), showActionLabels (bool), showProgressBar (bool), showWatermark (bool), quality (number 1-30). All default to true except quality (default: 10).",properties:{showClickIndicators:{type:"boolean",description:"Show orange circles at click locations (default: true)"},showDragPaths:{type:"boolean",description:"Show red arrows for drag actions (default: true)"},showActionLabels:{type:"boolean",description:"Show black labels describing actions (default: true)"},showProgressBar:{type:"boolean",description:"Show orange progress bar at bottom (default: true)"},showWatermark:{type:"boolean",description:"Show Claude logo watermark (default: true)"},quality:{type:"number",description:"GIF compression quality, 1-30 (lower = better quality, slower encoding). Default: 10"}}}},required:["action","tabId"]}},{name:"upload_image",description:"Upload a previously captured screenshot or user-uploaded image to a file input or drag & drop target. Supports two approaches: (1) ref - for targeting specific elements, especially hidden file inputs, (2) coordinate - for drag & drop to visible locations like Google Docs. Provide either ref or coordinate, not both.",inputSchema:{type:"object",properties:{imageId:{type:"string",description:"ID of a previously captured screenshot (from the computer tool's screenshot action) or a user-uploaded image"},ref:{type:"string",description:'Element reference ID from read_page or find tools (e.g., "ref_1", "ref_2"). Use this for file inputs (especially hidden ones) or specific elements. Provide either ref or coordinate, not both.'},coordinate:{type:"array",items:{type:"number"},description:"Viewport coordinates [x, y] for drag & drop to a visible location. Use this for drag & drop targets like Google Docs. Provide either ref or coordinate, not both."},tabId:{type:"number",description:"Tab ID where the target element is located. This is where the image will be uploaded to."},filename:{type:"string",description:'Optional filename for the uploaded file (default: "image.png")'}},required:["imageId","tabId"]}},{name:"get_page_text",description:"Extract raw text content from the page, prioritizing article content. Ideal for reading articles, blog posts, or other text-heavy pages. Returns plain text without HTML formatting. If you don't have a valid tab ID, use tabs_context_mcp first to get available tabs.",inputSchema:{type:"object",properties:{tabId:{type:"number",description:"Tab ID to extract text from. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."}},required:["tabId"]}},{name:"tabs_context_mcp",title:"Tabs Context",description:"Get context information about the current MCP tab group. Returns all tab IDs inside the group if it exists. CRITICAL: You must get the context at least once before using other browser automation tools so you know what tabs exist. Each new conversation should create its own new tab (using tabs_create_mcp) rather than reusing existing tabs, unless the user explicitly asks to use an existing tab.",inputSchema:{type:"object",properties:{createIfEmpty:{type:"boolean",description:"Creates a new MCP tab group if none exists, creates a new Window with a new tab group containing an empty tab (which can be used for this conversation). If a MCP tab group already exists, this parameter has no effect."}},required:[]}},{name:"tabs_create_mcp",title:"Tabs Create",description:"Creates a new empty tab in the MCP tab group. CRITICAL: You must get the context using tabs_context_mcp at least once before using other browser automation tools so you know what tabs exist.",inputSchema:{type:"object",properties:{},required:[]}},{name:"update_plan",description:"Present a plan to the user for approval before taking actions. The user will see the domains you intend to visit and your approach. Once approved, you can proceed with actions on the approved domains without additional permission prompts.",inputSchema:{type:"object",properties:{domains:{type:"array",items:{type:"string"},description:"List of domains you will visit (e.g., ['github.com', 'stackoverflow.com']). These domains will be approved for the session when the user accepts the plan."},approach:{type:"array",items:{type:"string"},description:"High-level description of what you will do. Focus on outcomes and key actions, not implementation details. Be concise - aim for 3-7 items."}},required:["domains","approach"]}},{name:"read_console_messages",description:"Read browser console messages (console.log, console.error, console.warn, etc.) from a specific tab. Useful for debugging JavaScript errors, viewing application logs, or understanding what's happening in the browser console. Returns console messages from the current domain only. If you don't have a valid tab ID, use tabs_context_mcp first to get available tabs. IMPORTANT: Always provide a pattern to filter messages - without a pattern, you may get too many irrelevant messages.",inputSchema:{type:"object",properties:{tabId:{type:"number",description:"Tab ID to read console messages from. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."},onlyErrors:{type:"boolean",description:"If true, only return error and exception messages. Default is false (return all message types)."},clear:{type:"boolean",description:"If true, clear the console messages after reading to avoid duplicates on subsequent calls. Default is false."},pattern:{type:"string",description:"Regex pattern to filter console messages. Only messages matching this pattern will be returned (e.g., 'error|warning' to find errors and warnings, 'MyApp' to filter app-specific logs). You should always provide a pattern to avoid getting too many irrelevant messages."},limit:{type:"number",description:"Maximum number of messages to return. Defaults to 100. Increase only if you need more results."}},required:["tabId"]}},{name:"read_network_requests",description:"Read HTTP network requests (XHR, Fetch, documents, images, etc.) from a specific tab. Useful for debugging API calls, monitoring network activity, or understanding what requests a page is making. Returns all network requests made by the current page, including cross-origin requests. Requests are automatically cleared when the page navigates to a different domain. If you don't have a valid tab ID, use tabs_context_mcp first to get available tabs.",inputSchema:{type:"object",properties:{tabId:{type:"number",description:"Tab ID to read network requests from. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."},urlPattern:{type:"string",description:"Optional URL pattern to filter requests. Only requests whose URL contains this string will be returned (e.g., '/api/' to filter API calls, 'example.com' to filter by domain)."},clear:{type:"boolean",description:"If true, clear the network requests after reading to avoid duplicates on subsequent calls. Default is false."},limit:{type:"number",description:"Maximum number of requests to return. Defaults to 100. Increase only if you need more results."}},required:["tabId"]}},{name:"shortcuts_list",description:"List all available shortcuts and workflows (shortcuts and workflows are interchangeable). Returns shortcuts with their commands, descriptions, and whether they are workflows. Use shortcuts_execute to run a shortcut or workflow.",inputSchema:{type:"object",properties:{tabId:{type:"number",description:"Tab ID to list shortcuts from. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."}},required:["tabId"]}},{name:"shortcuts_execute",description:"Execute a shortcut or workflow by running it in a new sidepanel window using the current tab (shortcuts and workflows are interchangeable). Use shortcuts_list first to see available shortcuts. This starts the execution and returns immediately - it does not wait for completion.",inputSchema:{type:"object",properties:{tabId:{type:"number",description:"Tab ID to execute the shortcut on. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."},shortcutId:{type:"string",description:"The ID of the shortcut to execute"},command:{type:"string",description:"The command name of the shortcut to execute (e.g., 'debug', 'summarize'). Do not include the leading slash."}},required:["tabId"]}},{name:"switch_browser",description:"Switch which Chrome browser is used for browser automation. Call this when the user wants to connect to a different Chrome browser. Broadcasts a connection request to all Chrome browsers with the extension installed — the user clicks 'Connect' in the desired browser.",inputSchema:{type:"object",properties:{},required:[]}}]});var F9,FQ1,g7,au=(A)=>{switch(typeof A){case"undefined":return g7.undefined;case"string":return g7.string;case"number":return Number.isNaN(A)?g7.nan:g7.number;case"boolean":return g7.boolean;case"function":return g7.function;case"bigint":return g7.bigint;case"symbol":return g7.symbol;case"object":if(Array.isArray(A))return g7.array;if(A===null)return g7.null;if(A.then&&typeof A.then==="function"&&A.catch&&typeof A.catch==="function")return g7.promise;if(typeof Map<"u"&&A instanceof Map)return g7.map;if(typeof Set<"u"&&A instanceof Set)return g7.set;if(typeof Date<"u"&&A instanceof Date)return g7.date;return g7.object;default:return g7.unknown}};var YR6=E(()=>{(function(A){A.assertEqual=(z)=>{};function q(z){}A.assertIs=q;function K(z){throw Error()}A.assertNever=K,A.arrayToEnum=(z)=>{let w={};for(let _ of z)w[_]=_;return w},A.getValidEnumValues=(z)=>{let w=A.objectKeys(z).filter(($)=>typeof z[z[$]]!=="number"),_={};for(let $ of w)_[$]=z[$];return A.objectValues(_)},A.objectValues=(z)=>{return A.objectKeys(z).map(function(w){return z[w]})},A.objectKeys=typeof Object.keys==="function"?(z)=>Object.keys(z):(z)=>{let w=[];for(let _ in z)if(Object.prototype.hasOwnProperty.call(z,_))w.push(_);return w},A.find=(z,w)=>{for(let _ of z)if(w(_))return _;return},A.isInteger=typeof Number.isInteger==="function"?(z)=>Number.isInteger(z):(z)=>typeof z==="number"&&Number.isFinite(z)&&Math.floor(z)===z;function Y(z,w=" | "){return z.map((_)=>typeof _==="string"?`'${_}'`:_).join(w)}A.joinValues=Y,A.jsonStringifyReplacer=(z,w)=>{if(typeof w==="bigint")return w.toString();return w}})(F9||(F9={}));(function(A){A.mergeShapes=(q,K)=>{return{...q,...K}}})(FQ1||(FQ1={}));g7=F9.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"])});var tA,mAK=(A)=>{return JSON.stringify(A,null,2).replace(/"([^"]+)":/g,"$1:")},zv;var p11=E(()=>{YR6();tA=F9.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);zv=class zv extends Error{get errors(){return this.issues}constructor(A){super();this.issues=[],this.addIssue=(K)=>{this.issues=[...this.issues,K]},this.addIssues=(K=[])=>{this.issues=[...this.issues,...K]};let q=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,q);else this.__proto__=q;this.name="ZodError",this.issues=A}format(A){let q=A||function(z){return z.message},K={_errors:[]},Y=(z)=>{for(let w of z.issues)if(w.code==="invalid_union")w.unionErrors.map(Y);else if(w.code==="invalid_return_type")Y(w.returnTypeError);else if(w.code==="invalid_arguments")Y(w.argumentsError);else if(w.path.length===0)K._errors.push(q(w));else{let _=K,$=0;while($<w.path.length){let O=w.path[$];if($!==w.path.length-1)_[O]=_[O]||{_errors:[]};else _[O]=_[O]||{_errors:[]},_[O]._errors.push(q(w));_=_[O],$++}}};return Y(this),K}static assert(A){if(!(A instanceof zv))throw Error(`Not a ZodError: ${A}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,F9.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(A=(q)=>q.message){let q={},K=[];for(let Y of this.issues)if(Y.path.length>0){let z=Y.path[0];q[z]=q[z]||[],q[z].push(A(Y))}else K.push(A(Y));return{formErrors:K,fieldErrors:q}}get formErrors(){return this.flatten()}};zv.create=(A)=>{return new zv(A)}});var BAK=(A,q)=>{let K;switch(A.code){case tA.invalid_type:if(A.received===g7.undefined)K="Required";else K=`Expected ${A.expected}, received ${A.received}`;break;case tA.invalid_literal:K=`Invalid literal value, expected ${JSON.stringify(A.expected,F9.jsonStringifyReplacer)}`;break;case tA.unrecognized_keys:K=`Unrecognized key(s) in object: ${F9.joinValues(A.keys,", ")}`;break;case tA.invalid_union:K="Invalid input";break;case tA.invalid_union_discriminator:K=`Invalid discriminator value. Expected ${F9.joinValues(A.options)}`;break;case tA.invalid_enum_value:K=`Invalid enum value. Expected ${F9.joinValues(A.options)}, received '${A.received}'`;break;case tA.invalid_arguments:K="Invalid function arguments";break;case tA.invalid_return_type:K="Invalid function return type";break;case tA.invalid_date:K="Invalid date";break;case tA.invalid_string:if(typeof A.validation==="object")if("includes"in A.validation){if(K=`Invalid input: must include "${A.validation.includes}"`,typeof A.validation.position==="number")K=`${K} at one or more positions greater than or equal to ${A.validation.position}`}else if("startsWith"in A.validation)K=`Invalid input: must start with "${A.validation.startsWith}"`;else if("endsWith"in A.validation)K=`Invalid input: must end with "${A.validation.endsWith}"`;else F9.assertNever(A.validation);else if(A.validation!=="regex")K=`Invalid ${A.validation}`;else K="Invalid";break;case tA.too_small:if(A.type==="array")K=`Array must contain ${A.exact?"exactly":A.inclusive?"at least":"more than"} ${A.minimum} element(s)`;else if(A.type==="string")K=`String must contain ${A.exact?"exactly":A.inclusive?"at least":"over"} ${A.minimum} character(s)`;else if(A.type==="number")K=`Number must be ${A.exact?"exactly equal to ":A.inclusive?"greater than or equal to ":"greater than "}${A.minimum}`;else if(A.type==="bigint")K=`Number must be ${A.exact?"exactly equal to ":A.inclusive?"greater than or equal to ":"greater than "}${A.minimum}`;else if(A.type==="date")K=`Date must be ${A.exact?"exactly equal to ":A.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(A.minimum))}`;else K="Invalid input";break;case tA.too_big:if(A.type==="array")K=`Array must contain ${A.exact?"exactly":A.inclusive?"at most":"less than"} ${A.maximum} element(s)`;else if(A.type==="string")K=`String must contain ${A.exact?"exactly":A.inclusive?"at most":"under"} ${A.maximum} character(s)`;else if(A.type==="number")K=`Number must be ${A.exact?"exactly":A.inclusive?"less than or equal to":"less than"} ${A.maximum}`;else if(A.type==="bigint")K=`BigInt must be ${A.exact?"exactly":A.inclusive?"less than or equal to":"less than"} ${A.maximum}`;else if(A.type==="date")K=`Date must be ${A.exact?"exactly":A.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(A.maximum))}`;else K="Invalid input";break;case tA.custom:K="Invalid input";break;case tA.invalid_intersection_types:K="Intersection results could not be merged";break;case tA.not_multiple_of:K=`Number must be a multiple of ${A.multipleOf}`;break;case tA.not_finite:K="Number must be finite";break;default:K=q.defaultError,F9.assertNever(A)}return{message:K}},YU;var QQ1=E(()=>{p11();YR6();YU=BAK});function gAK(A){DKA=A}function rO6(){return DKA}var DKA;var F11=E(()=>{QQ1();DKA=YU});function M4(A,q){let K=rO6(),Y=zR6({issueData:q,data:A.data,path:A.path,errorMaps:[A.common.contextualErrorMap,A.schemaErrorMap,K,K===YU?void 0:YU].filter((z)=>!!z)});A.common.issues.push(Y)}class tP{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(A,q){let K=[];for(let Y of q){if(Y.status==="aborted")return LK;if(Y.status==="dirty")A.dirty();K.push(Y.value)}return{status:A.value,value:K}}static async mergeObjectAsync(A,q){let K=[];for(let Y of q){let z=await Y.key,w=await Y.value;K.push({key:z,value:w})}return tP.mergeObjectSync(A,K)}static mergeObjectSync(A,q){let K={};for(let Y of q){let{key:z,value:w}=Y;if(z.status==="aborted")return LK;if(w.status==="aborted")return LK;if(z.status==="dirty")A.dirty();if(w.status==="dirty")A.dirty();if(z.value!=="__proto__"&&(typeof w.value<"u"||Y.alwaysSet))K[z.value]=w.value}return{status:A.value,value:K}}}var zR6=(A)=>{let{data:q,path:K,errorMaps:Y,issueData:z}=A,w=[...K,...z.path||[]],_={...z,path:w};if(z.message!==void 0)return{...z,path:w,message:z.message};let $="",O=Y.filter((H)=>!!H).slice().reverse();for(let H of O)$=H(_,{data:q,defaultError:$}).message;return{...z,path:w,message:$}},pAK,LK,w46=(A)=>({status:"dirty",value:A}),YG=(A)=>({status:"valid",value:A}),Q11=(A)=>A.status==="aborted",U11=(A)=>A.status==="dirty",To=(A)=>A.status==="valid",oO6=(A)=>typeof Promise<"u"&&A instanceof Promise;var UQ1=E(()=>{F11();QQ1();pAK=[];LK=Object.freeze({status:"aborted"})});var XKA=()=>{};var Wq;var PKA=E(()=>{(function(A){A.errToObj=(q)=>typeof q==="string"?{message:q}:q||{},A.toString=(q)=>typeof q==="string"?q:q?.message})(Wq||(Wq={}))});class HC{constructor(A,q,K,Y){this._cachedPath=[],this.parent=A,this.data=q,this._path=K,this._key=Y}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}function T5(A){if(!A)return{};let{errorMap:q,invalid_type_error:K,required_error:Y,description:z}=A;if(q&&(K||Y))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(q)return{errorMap:q,description:z};return{errorMap:(_,$)=>{let{message:O}=A;if(_.code==="invalid_enum_value")return{message:O??$.defaultError};if(typeof $.data>"u")return{message:O??Y??$.defaultError};if(_.code!=="invalid_type")return{message:$.defaultError};return{message:O??K??$.defaultError}},description:z}}class M9{get description(){return this._def.description}_getType(A){return au(A.data)}_getOrReturnCtx(A,q){return q||{common:A.parent.common,data:A.data,parsedType:au(A.data),schemaErrorMap:this._def.errorMap,path:A.path,parent:A.parent}}_processInputParams(A){return{status:new tP,ctx:{common:A.parent.common,data:A.data,parsedType:au(A.data),schemaErrorMap:this._def.errorMap,path:A.path,parent:A.parent}}}_parseSync(A){let q=this._parse(A);if(oO6(q))throw Error("Synchronous parse encountered promise.");return q}_parseAsync(A){let q=this._parse(A);return Promise.resolve(q)}parse(A,q){let K=this.safeParse(A,q);if(K.success)return K.data;throw K.error}safeParse(A,q){let K={common:{issues:[],async:q?.async??!1,contextualErrorMap:q?.errorMap},path:q?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:A,parsedType:au(A)},Y=this._parseSync({data:A,path:K.path,parent:K});return WKA(K,Y)}"~validate"(A){let q={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:A,parsedType:au(A)};if(!this["~standard"].async)try{let K=this._parseSync({data:A,path:[],parent:q});return To(K)?{value:K.value}:{issues:q.common.issues}}catch(K){if(K?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;q.common={issues:[],async:!0}}return this._parseAsync({data:A,path:[],parent:q}).then((K)=>To(K)?{value:K.value}:{issues:q.common.issues})}async parseAsync(A,q){let K=await this.safeParseAsync(A,q);if(K.success)return K.data;throw K.error}async safeParseAsync(A,q){let K={common:{issues:[],contextualErrorMap:q?.errorMap,async:!0},path:q?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:A,parsedType:au(A)},Y=this._parse({data:A,path:K.path,parent:K}),z=await(oO6(Y)?Y:Promise.resolve(Y));return WKA(K,z)}refine(A,q){let K=(Y)=>{if(typeof q==="string"||typeof q>"u")return{message:q};else if(typeof q==="function")return q(Y);else return q};return this._refinement((Y,z)=>{let w=A(Y),_=()=>z.addIssue({code:tA.custom,...K(Y)});if(typeof Promise<"u"&&w instanceof Promise)return w.then(($)=>{if(!$)return _(),!1;else return!0});if(!w)return _(),!1;else return!0})}refinement(A,q){return this._refinement((K,Y)=>{if(!A(K))return Y.addIssue(typeof q==="function"?q(K,Y):q),!1;else return!0})}_refinement(A){return new jC({schema:this,typeName:lK.ZodEffects,effect:{type:"refinement",refinement:A}})}superRefine(A){return this._refinement(A)}constructor(A){this.spa=this.safeParseAsync,this._def=A,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(q)=>this["~validate"](q)}}optional(){return OC.create(this,this._def)}nullable(){return wU.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return $C.create(this)}promise(){return H46.create(this,this._def)}or(A){return qH6.create([this,A],this._def)}and(A){return KH6.create(this,A,this._def)}transform(A){return new jC({...T5(this._def),schema:this,typeName:lK.ZodEffects,effect:{type:"transform",transform:A}})}default(A){let q=typeof A==="function"?A:()=>A;return new _H6({...T5(this._def),innerType:this,defaultValue:q,typeName:lK.ZodDefault})}brand(){return new c11({typeName:lK.ZodBranded,type:this,...T5(this._def)})}catch(A){let q=typeof A==="function"?A:()=>A;return new $H6({...T5(this._def),innerType:this,catchValue:q,typeName:lK.ZodCatch})}describe(A){return new this.constructor({...this._def,description:A})}pipe(A){return jR6.create(this,A)}readonly(){return OH6.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}function fKA(A){let q="[0-5]\\d";if(A.precision)q=`${q}\\.\\d{${A.precision}}`;else if(A.precision==null)q=`${q}(\\.\\d+)?`;let K=A.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${q})${K}`}function K7K(A){return new RegExp(`^${fKA(A)}$`)}function TKA(A){let q=`${ZKA}T${fKA(A)}`,K=[];if(K.push(A.local?"Z?":"Z"),A.offset)K.push("([+-]\\d{2}:?\\d{2})");return q=`${q}(${K.join("|")})`,new RegExp(`^${q}$`)}function Y7K(A,q){if((q==="v4"||!q)&&oAK.test(A))return!0;if((q==="v6"||!q)&&sAK.test(A))return!0;return!1}function z7K(A,q){if(!lAK.test(A))return!1;try{let[K]=A.split(".");if(!K)return!1;let Y=K.replace(/-/g,"+").replace(/_/g,"/").padEnd(K.length+(4-K.length%4)%4,"="),z=JSON.parse(atob(Y));if(typeof z!=="object"||z===null)return!1;if("typ"in z&&z?.typ!=="JWT")return!1;if(!z.alg)return!1;if(q&&z.alg!==q)return!1;return!0}catch{return!1}}function w7K(A,q){if((q==="v4"||!q)&&aAK.test(A))return!0;if((q==="v6"||!q)&&tAK.test(A))return!0;return!1}function _7K(A,q){let K=(A.toString().split(".")[1]||"").length,Y=(q.toString().split(".")[1]||"").length,z=K>Y?K:Y,w=Number.parseInt(A.toFixed(z).replace(".","")),_=Number.parseInt(q.toFixed(z).replace(".",""));return w%_/10**z}function aO6(A){if(A instanceof DH){let q={};for(let K in A.shape){let Y=A.shape[K];q[K]=OC.create(aO6(Y))}return new DH({...A._def,shape:()=>q})}else if(A instanceof $C)return new $C({...A._def,type:aO6(A.element)});else if(A instanceof OC)return OC.create(aO6(A.unwrap()));else if(A instanceof wU)return wU.create(aO6(A.unwrap()));else if(A instanceof tu)return tu.create(A.items.map((q)=>aO6(q)));else return A}function cQ1(A,q){let K=au(A),Y=au(q);if(A===q)return{valid:!0,data:A};else if(K===g7.object&&Y===g7.object){let z=F9.objectKeys(q),w=F9.objectKeys(A).filter(($)=>z.indexOf($)!==-1),_={...A,...q};for(let $ of w){let O=cQ1(A[$],q[$]);if(!O.valid)return{valid:!1};_[$]=O.data}return{valid:!0,data:_}}else if(K===g7.array&&Y===g7.array){if(A.length!==q.length)return{valid:!1};let z=[];for(let w=0;w<A.length;w++){let _=A[w],$=q[w],O=cQ1(_,$);if(!O.valid)return{valid:!1};z.push(O.data)}return{valid:!0,data:z}}else if(K===g7.date&&Y===g7.date&&+A===+q)return{valid:!0,data:A};else return{valid:!1}}function vKA(A,q){return new ko({values:A,typeName:lK.ZodEnum,...T5(q)})}function GKA(A,q){let K=typeof A==="function"?A(q):typeof A==="string"?{message:A}:A;return typeof K==="string"?{message:K}:K}function VKA(A,q={},K){if(A)return $46.create().superRefine((Y,z)=>{let w=A(Y);if(w instanceof Promise)return w.then((_)=>{if(!_){let $=GKA(q,Y),O=$.fatal??K??!0;z.addIssue({code:"custom",...$,fatal:O})}});if(!w){let _=GKA(q,Y),$=_.fatal??K??!0;z.addIssue({code:"custom",..._,fatal:$})}return});return $46.create()}var WKA=(A,q)=>{if(To(q))return{success:!0,data:q.value};else{if(!A.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let K=new zv(A.common.issues);return this._error=K,this._error}}}},FAK,QAK,UAK,dAK,cAK,lAK,iAK,nAK,rAK="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",dQ1,oAK,aAK,sAK,tAK,eAK,A7K,ZKA="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",q7K,_C,Vo,No,tO6,_46,wR6,eO6,AH6,$46,vo,su,_R6,$C,DH,qH6,zU=(A)=>{if(A instanceof YH6)return zU(A.schema);else if(A instanceof jC)return zU(A.innerType());else if(A instanceof zH6)return[A.value];else if(A instanceof ko)return A.options;else if(A instanceof wH6)return F9.objectValues(A.enum);else if(A instanceof _H6)return zU(A._def.innerType);else if(A instanceof eO6)return[void 0];else if(A instanceof AH6)return[null];else if(A instanceof OC)return[void 0,...zU(A.unwrap())];else if(A instanceof wU)return[null,...zU(A.unwrap())];else if(A instanceof c11)return zU(A.unwrap());else if(A instanceof OH6)return zU(A.unwrap());else if(A instanceof $H6)return zU(A._def.innerType);else return[]},d11,KH6,tu,$R6,OR6,O46,sO6,YH6,zH6,ko,wH6,H46,jC,OC,wU,_H6,$H6,HR6,$7K,c11,jR6,OH6,O7K,lK,H7K=(A,q={message:`Input not instance of ${A.name}`})=>VKA((K)=>K instanceof A,q),lA,nL,j7K,J7K,GX,M7K,D7K,X7K,P7K,W7K,G7K,Z7K,f7K,wj,iN,nN,j46,T7K,v7K,V7K,JC,N7K,k7K,E7K,L7K,y7K,MC,R7K,S7K,h7K,C7K,I7K,x7K,b7K,u7K=()=>lA().optional(),m7K=()=>nL().optional(),B7K=()=>GX().optional(),g7K,p7K;var NKA=E(()=>{p11();F11();PKA();UQ1();YR6();FAK=/^c[^\s-]{8,}$/i,QAK=/^[0-9a-z]+$/,UAK=/^[0-9A-HJKMNP-TV-Z]{26}$/i,dAK=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,cAK=/^[a-z0-9_-]{21}$/i,lAK=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,iAK=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,nAK=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,oAK=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,aAK=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,sAK=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,tAK=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,eAK=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,A7K=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,q7K=new RegExp(`^${ZKA}$`);_C=class _C extends M9{_parse(A){if(this._def.coerce)A.data=String(A.data);if(this._getType(A)!==g7.string){let z=this._getOrReturnCtx(A);return M4(z,{code:tA.invalid_type,expected:g7.string,received:z.parsedType}),LK}let K=new tP,Y=void 0;for(let z of this._def.checks)if(z.kind==="min"){if(A.data.length<z.value)Y=this._getOrReturnCtx(A,Y),M4(Y,{code:tA.too_small,minimum:z.value,type:"string",inclusive:!0,exact:!1,message:z.message}),K.dirty()}else if(z.kind==="max"){if(A.data.length>z.value)Y=this._getOrReturnCtx(A,Y),M4(Y,{code:tA.too_big,maximum:z.value,type:"string",inclusive:!0,exact:!1,message:z.message}),K.dirty()}else if(z.kind==="length"){let w=A.data.length>z.value,_=A.data.length<z.value;if(w||_){if(Y=this._getOrReturnCtx(A,Y),w)M4(Y,{code:tA.too_big,maximum:z.value,type:"string",inclusive:!0,exact:!0,message:z.message});else if(_)M4(Y,{code:tA.too_small,minimum:z.value,type:"string",inclusive:!0,exact:!0,message:z.message});K.dirty()}}else if(z.kind==="email"){if(!nAK.test(A.data))Y=this._getOrReturnCtx(A,Y),M4(Y,{validation:"email",code:tA.invalid_string,message:z.message}),K.dirty()}else if(z.kind==="emoji"){if(!dQ1)dQ1=new RegExp(rAK,"u");if(!dQ1.test(A.data))Y=this._getOrReturnCtx(A,Y),M4(Y,{validation:"emoji",code:tA.invalid_string,message:z.message}),K.dirty()}else if(z.kind==="uuid"){if(!dAK.test(A.data))Y=this._getOrReturnCtx(A,Y),M4(Y,{validation:"uuid",code:tA.invalid_string,message:z.message}),K.dirty()}else if(z.kind==="nanoid"){if(!cAK.test(A.data))Y=this._getOrReturnCtx(A,Y),M4(Y,{validation:"nanoid",code:tA.invalid_string,message:z.message}),K.dirty()}else if(z.kind==="cuid"){if(!FAK.test(A.data))Y=this._getOrReturnCtx(A,Y),M4(Y,{validation:"cuid",code:tA.invalid_string,message:z.message}),K.dirty()}else if(z.kind==="cuid2"){if(!QAK.test(A.data))Y=this._getOrReturnCtx(A,Y),M4(Y,{validation:"cuid2",code:tA.invalid_string,message:z.message}),K.dirty()}else if(z.kind==="ulid"){if(!UAK.test(A.data))Y=this._getOrReturnCtx(A,Y),M4(Y,{validation:"ulid",code:tA.invalid_string,message:z.message}),K.dirty()}else if(z.kind==="url")try{new URL(A.data)}catch{Y=this._getOrReturnCtx(A,Y),M4(Y,{validation:"url",code:tA.invalid_string,message:z.message}),K.dirty()}else if(z.kind==="regex"){if(z.regex.lastIndex=0,!z.regex.test(A.data))Y=this._getOrReturnCtx(A,Y),M4(Y,{validation:"regex",code:tA.invalid_string,message:z.message}),K.dirty()}else if(z.kind==="trim")A.data=A.data.trim();else if(z.kind==="includes"){if(!A.data.includes(z.value,z.position))Y=this._getOrReturnCtx(A,Y),M4(Y,{code:tA.invalid_string,validation:{includes:z.value,position:z.position},message:z.message}),K.dirty()}else if(z.kind==="toLowerCase")A.data=A.data.toLowerCase();else if(z.kind==="toUpperCase")A.data=A.data.toUpperCase();else if(z.kind==="startsWith"){if(!A.data.startsWith(z.value))Y=this._getOrReturnCtx(A,Y),M4(Y,{code:tA.invalid_string,validation:{startsWith:z.value},message:z.message}),K.dirty()}else if(z.kind==="endsWith"){if(!A.data.endsWith(z.value))Y=this._getOrReturnCtx(A,Y),M4(Y,{code:tA.invalid_string,validation:{endsWith:z.value},message:z.message}),K.dirty()}else if(z.kind==="datetime"){if(!TKA(z).test(A.data))Y=this._getOrReturnCtx(A,Y),M4(Y,{code:tA.invalid_string,validation:"datetime",message:z.message}),K.dirty()}else if(z.kind==="date"){if(!q7K.test(A.data))Y=this._getOrReturnCtx(A,Y),M4(Y,{code:tA.invalid_string,validation:"date",message:z.message}),K.dirty()}else if(z.kind==="time"){if(!K7K(z).test(A.data))Y=this._getOrReturnCtx(A,Y),M4(Y,{code:tA.invalid_string,validation:"time",message:z.message}),K.dirty()}else if(z.kind==="duration"){if(!iAK.test(A.data))Y=this._getOrReturnCtx(A,Y),M4(Y,{validation:"duration",code:tA.invalid_string,message:z.message}),K.dirty()}else if(z.kind==="ip"){if(!Y7K(A.data,z.version))Y=this._getOrReturnCtx(A,Y),M4(Y,{validation:"ip",code:tA.invalid_string,message:z.message}),K.dirty()}else if(z.kind==="jwt"){if(!z7K(A.data,z.alg))Y=this._getOrReturnCtx(A,Y),M4(Y,{validation:"jwt",code:tA.invalid_string,message:z.message}),K.dirty()}else if(z.kind==="cidr"){if(!w7K(A.data,z.version))Y=this._getOrReturnCtx(A,Y),M4(Y,{validation:"cidr",code:tA.invalid_string,message:z.message}),K.dirty()}else if(z.kind==="base64"){if(!eAK.test(A.data))Y=this._getOrReturnCtx(A,Y),M4(Y,{validation:"base64",code:tA.invalid_string,message:z.message}),K.dirty()}else if(z.kind==="base64url"){if(!A7K.test(A.data))Y=this._getOrReturnCtx(A,Y),M4(Y,{validation:"base64url",code:tA.invalid_string,message:z.message}),K.dirty()}else F9.assertNever(z);return{status:K.value,value:A.data}}_regex(A,q,K){return this.refinement((Y)=>A.test(Y),{validation:q,code:tA.invalid_string,...Wq.errToObj(K)})}_addCheck(A){return new _C({...this._def,checks:[...this._def.checks,A]})}email(A){return this._addCheck({kind:"email",...Wq.errToObj(A)})}url(A){return this._addCheck({kind:"url",...Wq.errToObj(A)})}emoji(A){return this._addCheck({kind:"emoji",...Wq.errToObj(A)})}uuid(A){return this._addCheck({kind:"uuid",...Wq.errToObj(A)})}nanoid(A){return this._addCheck({kind:"nanoid",...Wq.errToObj(A)})}cuid(A){return this._addCheck({kind:"cuid",...Wq.errToObj(A)})}cuid2(A){return this._addCheck({kind:"cuid2",...Wq.errToObj(A)})}ulid(A){return this._addCheck({kind:"ulid",...Wq.errToObj(A)})}base64(A){return this._addCheck({kind:"base64",...Wq.errToObj(A)})}base64url(A){return this._addCheck({kind:"base64url",...Wq.errToObj(A)})}jwt(A){return this._addCheck({kind:"jwt",...Wq.errToObj(A)})}ip(A){return this._addCheck({kind:"ip",...Wq.errToObj(A)})}cidr(A){return this._addCheck({kind:"cidr",...Wq.errToObj(A)})}datetime(A){if(typeof A==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:A});return this._addCheck({kind:"datetime",precision:typeof A?.precision>"u"?null:A?.precision,offset:A?.offset??!1,local:A?.local??!1,...Wq.errToObj(A?.message)})}date(A){return this._addCheck({kind:"date",message:A})}time(A){if(typeof A==="string")return this._addCheck({kind:"time",precision:null,message:A});return this._addCheck({kind:"time",precision:typeof A?.precision>"u"?null:A?.precision,...Wq.errToObj(A?.message)})}duration(A){return this._addCheck({kind:"duration",...Wq.errToObj(A)})}regex(A,q){return this._addCheck({kind:"regex",regex:A,...Wq.errToObj(q)})}includes(A,q){return this._addCheck({kind:"includes",value:A,position:q?.position,...Wq.errToObj(q?.message)})}startsWith(A,q){return this._addCheck({kind:"startsWith",value:A,...Wq.errToObj(q)})}endsWith(A,q){return this._addCheck({kind:"endsWith",value:A,...Wq.errToObj(q)})}min(A,q){return this._addCheck({kind:"min",value:A,...Wq.errToObj(q)})}max(A,q){return this._addCheck({kind:"max",value:A,...Wq.errToObj(q)})}length(A,q){return this._addCheck({kind:"length",value:A,...Wq.errToObj(q)})}nonempty(A){return this.min(1,Wq.errToObj(A))}trim(){return new _C({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new _C({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new _C({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((A)=>A.kind==="datetime")}get isDate(){return!!this._def.checks.find((A)=>A.kind==="date")}get isTime(){return!!this._def.checks.find((A)=>A.kind==="time")}get isDuration(){return!!this._def.checks.find((A)=>A.kind==="duration")}get isEmail(){return!!this._def.checks.find((A)=>A.kind==="email")}get isURL(){return!!this._def.checks.find((A)=>A.kind==="url")}get isEmoji(){return!!this._def.checks.find((A)=>A.kind==="emoji")}get isUUID(){return!!this._def.checks.find((A)=>A.kind==="uuid")}get isNANOID(){return!!this._def.checks.find((A)=>A.kind==="nanoid")}get isCUID(){return!!this._def.checks.find((A)=>A.kind==="cuid")}get isCUID2(){return!!this._def.checks.find((A)=>A.kind==="cuid2")}get isULID(){return!!this._def.checks.find((A)=>A.kind==="ulid")}get isIP(){return!!this._def.checks.find((A)=>A.kind==="ip")}get isCIDR(){return!!this._def.checks.find((A)=>A.kind==="cidr")}get isBase64(){return!!this._def.checks.find((A)=>A.kind==="base64")}get isBase64url(){return!!this._def.checks.find((A)=>A.kind==="base64url")}get minLength(){let A=null;for(let q of this._def.checks)if(q.kind==="min"){if(A===null||q.value>A)A=q.value}return A}get maxLength(){let A=null;for(let q of this._def.checks)if(q.kind==="max"){if(A===null||q.value<A)A=q.value}return A}};_C.create=(A)=>{return new _C({checks:[],typeName:lK.ZodString,coerce:A?.coerce??!1,...T5(A)})};Vo=class Vo extends M9{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(A){if(this._def.coerce)A.data=Number(A.data);if(this._getType(A)!==g7.number){let z=this._getOrReturnCtx(A);return M4(z,{code:tA.invalid_type,expected:g7.number,received:z.parsedType}),LK}let K=void 0,Y=new tP;for(let z of this._def.checks)if(z.kind==="int"){if(!F9.isInteger(A.data))K=this._getOrReturnCtx(A,K),M4(K,{code:tA.invalid_type,expected:"integer",received:"float",message:z.message}),Y.dirty()}else if(z.kind==="min"){if(z.inclusive?A.data<z.value:A.data<=z.value)K=this._getOrReturnCtx(A,K),M4(K,{code:tA.too_small,minimum:z.value,type:"number",inclusive:z.inclusive,exact:!1,message:z.message}),Y.dirty()}else if(z.kind==="max"){if(z.inclusive?A.data>z.value:A.data>=z.value)K=this._getOrReturnCtx(A,K),M4(K,{code:tA.too_big,maximum:z.value,type:"number",inclusive:z.inclusive,exact:!1,message:z.message}),Y.dirty()}else if(z.kind==="multipleOf"){if(_7K(A.data,z.value)!==0)K=this._getOrReturnCtx(A,K),M4(K,{code:tA.not_multiple_of,multipleOf:z.value,message:z.message}),Y.dirty()}else if(z.kind==="finite"){if(!Number.isFinite(A.data))K=this._getOrReturnCtx(A,K),M4(K,{code:tA.not_finite,message:z.message}),Y.dirty()}else F9.assertNever(z);return{status:Y.value,value:A.data}}gte(A,q){return this.setLimit("min",A,!0,Wq.toString(q))}gt(A,q){return this.setLimit("min",A,!1,Wq.toString(q))}lte(A,q){return this.setLimit("max",A,!0,Wq.toString(q))}lt(A,q){return this.setLimit("max",A,!1,Wq.toString(q))}setLimit(A,q,K,Y){return new Vo({...this._def,checks:[...this._def.checks,{kind:A,value:q,inclusive:K,message:Wq.toString(Y)}]})}_addCheck(A){return new Vo({...this._def,checks:[...this._def.checks,A]})}int(A){return this._addCheck({kind:"int",message:Wq.toString(A)})}positive(A){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Wq.toString(A)})}negative(A){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Wq.toString(A)})}nonpositive(A){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Wq.toString(A)})}nonnegative(A){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Wq.toString(A)})}multipleOf(A,q){return this._addCheck({kind:"multipleOf",value:A,message:Wq.toString(q)})}finite(A){return this._addCheck({kind:"finite",message:Wq.toString(A)})}safe(A){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Wq.toString(A)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Wq.toString(A)})}get minValue(){let A=null;for(let q of this._def.checks)if(q.kind==="min"){if(A===null||q.value>A)A=q.value}return A}get maxValue(){let A=null;for(let q of this._def.checks)if(q.kind==="max"){if(A===null||q.value<A)A=q.value}return A}get isInt(){return!!this._def.checks.find((A)=>A.kind==="int"||A.kind==="multipleOf"&&F9.isInteger(A.value))}get isFinite(){let A=null,q=null;for(let K of this._def.checks)if(K.kind==="finite"||K.kind==="int"||K.kind==="multipleOf")return!0;else if(K.kind==="min"){if(q===null||K.value>q)q=K.value}else if(K.kind==="max"){if(A===null||K.value<A)A=K.value}return Number.isFinite(q)&&Number.isFinite(A)}};Vo.create=(A)=>{return new Vo({checks:[],typeName:lK.ZodNumber,coerce:A?.coerce||!1,...T5(A)})};No=class No extends M9{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse(A){if(this._def.coerce)try{A.data=BigInt(A.data)}catch{return this._getInvalidInput(A)}if(this._getType(A)!==g7.bigint)return this._getInvalidInput(A);let K=void 0,Y=new tP;for(let z of this._def.checks)if(z.kind==="min"){if(z.inclusive?A.data<z.value:A.data<=z.value)K=this._getOrReturnCtx(A,K),M4(K,{code:tA.too_small,type:"bigint",minimum:z.value,inclusive:z.inclusive,message:z.message}),Y.dirty()}else if(z.kind==="max"){if(z.inclusive?A.data>z.value:A.data>=z.value)K=this._getOrReturnCtx(A,K),M4(K,{code:tA.too_big,type:"bigint",maximum:z.value,inclusive:z.inclusive,message:z.message}),Y.dirty()}else if(z.kind==="multipleOf"){if(A.data%z.value!==BigInt(0))K=this._getOrReturnCtx(A,K),M4(K,{code:tA.not_multiple_of,multipleOf:z.value,message:z.message}),Y.dirty()}else F9.assertNever(z);return{status:Y.value,value:A.data}}_getInvalidInput(A){let q=this._getOrReturnCtx(A);return M4(q,{code:tA.invalid_type,expected:g7.bigint,received:q.parsedType}),LK}gte(A,q){return this.setLimit("min",A,!0,Wq.toString(q))}gt(A,q){return this.setLimit("min",A,!1,Wq.toString(q))}lte(A,q){return this.setLimit("max",A,!0,Wq.toString(q))}lt(A,q){return this.setLimit("max",A,!1,Wq.toString(q))}setLimit(A,q,K,Y){return new No({...this._def,checks:[...this._def.checks,{kind:A,value:q,inclusive:K,message:Wq.toString(Y)}]})}_addCheck(A){return new No({...this._def,checks:[...this._def.checks,A]})}positive(A){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Wq.toString(A)})}negative(A){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Wq.toString(A)})}nonpositive(A){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Wq.toString(A)})}nonnegative(A){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Wq.toString(A)})}multipleOf(A,q){return this._addCheck({kind:"multipleOf",value:A,message:Wq.toString(q)})}get minValue(){let A=null;for(let q of this._def.checks)if(q.kind==="min"){if(A===null||q.value>A)A=q.value}return A}get maxValue(){let A=null;for(let q of this._def.checks)if(q.kind==="max"){if(A===null||q.value<A)A=q.value}return A}};No.create=(A)=>{return new No({checks:[],typeName:lK.ZodBigInt,coerce:A?.coerce??!1,...T5(A)})};tO6=class tO6 extends M9{_parse(A){if(this._def.coerce)A.data=Boolean(A.data);if(this._getType(A)!==g7.boolean){let K=this._getOrReturnCtx(A);return M4(K,{code:tA.invalid_type,expected:g7.boolean,received:K.parsedType}),LK}return YG(A.data)}};tO6.create=(A)=>{return new tO6({typeName:lK.ZodBoolean,coerce:A?.coerce||!1,...T5(A)})};_46=class _46 extends M9{_parse(A){if(this._def.coerce)A.data=new Date(A.data);if(this._getType(A)!==g7.date){let z=this._getOrReturnCtx(A);return M4(z,{code:tA.invalid_type,expected:g7.date,received:z.parsedType}),LK}if(Number.isNaN(A.data.getTime())){let z=this._getOrReturnCtx(A);return M4(z,{code:tA.invalid_date}),LK}let K=new tP,Y=void 0;for(let z of this._def.checks)if(z.kind==="min"){if(A.data.getTime()<z.value)Y=this._getOrReturnCtx(A,Y),M4(Y,{code:tA.too_small,message:z.message,inclusive:!0,exact:!1,minimum:z.value,type:"date"}),K.dirty()}else if(z.kind==="max"){if(A.data.getTime()>z.value)Y=this._getOrReturnCtx(A,Y),M4(Y,{code:tA.too_big,message:z.message,inclusive:!0,exact:!1,maximum:z.value,type:"date"}),K.dirty()}else F9.assertNever(z);return{status:K.value,value:new Date(A.data.getTime())}}_addCheck(A){return new _46({...this._def,checks:[...this._def.checks,A]})}min(A,q){return this._addCheck({kind:"min",value:A.getTime(),message:Wq.toString(q)})}max(A,q){return this._addCheck({kind:"max",value:A.getTime(),message:Wq.toString(q)})}get minDate(){let A=null;for(let q of this._def.checks)if(q.kind==="min"){if(A===null||q.value>A)A=q.value}return A!=null?new Date(A):null}get maxDate(){let A=null;for(let q of this._def.checks)if(q.kind==="max"){if(A===null||q.value<A)A=q.value}return A!=null?new Date(A):null}};_46.create=(A)=>{return new _46({checks:[],coerce:A?.coerce||!1,typeName:lK.ZodDate,...T5(A)})};wR6=class wR6 extends M9{_parse(A){if(this._getType(A)!==g7.symbol){let K=this._getOrReturnCtx(A);return M4(K,{code:tA.invalid_type,expected:g7.symbol,received:K.parsedType}),LK}return YG(A.data)}};wR6.create=(A)=>{return new wR6({typeName:lK.ZodSymbol,...T5(A)})};eO6=class eO6 extends M9{_parse(A){if(this._getType(A)!==g7.undefined){let K=this._getOrReturnCtx(A);return M4(K,{code:tA.invalid_type,expected:g7.undefined,received:K.parsedType}),LK}return YG(A.data)}};eO6.create=(A)=>{return new eO6({typeName:lK.ZodUndefined,...T5(A)})};AH6=class AH6 extends M9{_parse(A){if(this._getType(A)!==g7.null){let K=this._getOrReturnCtx(A);return M4(K,{code:tA.invalid_type,expected:g7.null,received:K.parsedType}),LK}return YG(A.data)}};AH6.create=(A)=>{return new AH6({typeName:lK.ZodNull,...T5(A)})};$46=class $46 extends M9{constructor(){super(...arguments);this._any=!0}_parse(A){return YG(A.data)}};$46.create=(A)=>{return new $46({typeName:lK.ZodAny,...T5(A)})};vo=class vo extends M9{constructor(){super(...arguments);this._unknown=!0}_parse(A){return YG(A.data)}};vo.create=(A)=>{return new vo({typeName:lK.ZodUnknown,...T5(A)})};su=class su extends M9{_parse(A){let q=this._getOrReturnCtx(A);return M4(q,{code:tA.invalid_type,expected:g7.never,received:q.parsedType}),LK}};su.create=(A)=>{return new su({typeName:lK.ZodNever,...T5(A)})};_R6=class _R6 extends M9{_parse(A){if(this._getType(A)!==g7.undefined){let K=this._getOrReturnCtx(A);return M4(K,{code:tA.invalid_type,expected:g7.void,received:K.parsedType}),LK}return YG(A.data)}};_R6.create=(A)=>{return new _R6({typeName:lK.ZodVoid,...T5(A)})};$C=class $C extends M9{_parse(A){let{ctx:q,status:K}=this._processInputParams(A),Y=this._def;if(q.parsedType!==g7.array)return M4(q,{code:tA.invalid_type,expected:g7.array,received:q.parsedType}),LK;if(Y.exactLength!==null){let w=q.data.length>Y.exactLength.value,_=q.data.length<Y.exactLength.value;if(w||_)M4(q,{code:w?tA.too_big:tA.too_small,minimum:_?Y.exactLength.value:void 0,maximum:w?Y.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:Y.exactLength.message}),K.dirty()}if(Y.minLength!==null){if(q.data.length<Y.minLength.value)M4(q,{code:tA.too_small,minimum:Y.minLength.value,type:"array",inclusive:!0,exact:!1,message:Y.minLength.message}),K.dirty()}if(Y.maxLength!==null){if(q.data.length>Y.maxLength.value)M4(q,{code:tA.too_big,maximum:Y.maxLength.value,type:"array",inclusive:!0,exact:!1,message:Y.maxLength.message}),K.dirty()}if(q.common.async)return Promise.all([...q.data].map((w,_)=>{return Y.type._parseAsync(new HC(q,w,q.path,_))})).then((w)=>{return tP.mergeArray(K,w)});let z=[...q.data].map((w,_)=>{return Y.type._parseSync(new HC(q,w,q.path,_))});return tP.mergeArray(K,z)}get element(){return this._def.type}min(A,q){return new $C({...this._def,minLength:{value:A,message:Wq.toString(q)}})}max(A,q){return new $C({...this._def,maxLength:{value:A,message:Wq.toString(q)}})}length(A,q){return new $C({...this._def,exactLength:{value:A,message:Wq.toString(q)}})}nonempty(A){return this.min(1,A)}};$C.create=(A,q)=>{return new $C({type:A,minLength:null,maxLength:null,exactLength:null,typeName:lK.ZodArray,...T5(q)})};DH=class DH extends M9{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let A=this._def.shape(),q=F9.objectKeys(A);return this._cached={shape:A,keys:q},this._cached}_parse(A){if(this._getType(A)!==g7.object){let O=this._getOrReturnCtx(A);return M4(O,{code:tA.invalid_type,expected:g7.object,received:O.parsedType}),LK}let{status:K,ctx:Y}=this._processInputParams(A),{shape:z,keys:w}=this._getCached(),_=[];if(!(this._def.catchall instanceof su&&this._def.unknownKeys==="strip")){for(let O in Y.data)if(!w.includes(O))_.push(O)}let $=[];for(let O of w){let H=z[O],j=Y.data[O];$.push({key:{status:"valid",value:O},value:H._parse(new HC(Y,j,Y.path,O)),alwaysSet:O in Y.data})}if(this._def.catchall instanceof su){let O=this._def.unknownKeys;if(O==="passthrough")for(let H of _)$.push({key:{status:"valid",value:H},value:{status:"valid",value:Y.data[H]}});else if(O==="strict"){if(_.length>0)M4(Y,{code:tA.unrecognized_keys,keys:_}),K.dirty()}else if(O==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let O=this._def.catchall;for(let H of _){let j=Y.data[H];$.push({key:{status:"valid",value:H},value:O._parse(new HC(Y,j,Y.path,H)),alwaysSet:H in Y.data})}}if(Y.common.async)return Promise.resolve().then(async()=>{let O=[];for(let H of $){let j=await H.key,J=await H.value;O.push({key:j,value:J,alwaysSet:H.alwaysSet})}return O}).then((O)=>{return tP.mergeObjectSync(K,O)});else return tP.mergeObjectSync(K,$)}get shape(){return this._def.shape()}strict(A){return Wq.errToObj,new DH({...this._def,unknownKeys:"strict",...A!==void 0?{errorMap:(q,K)=>{let Y=this._def.errorMap?.(q,K).message??K.defaultError;if(q.code==="unrecognized_keys")return{message:Wq.errToObj(A).message??Y};return{message:Y}}}:{}})}strip(){return new DH({...this._def,unknownKeys:"strip"})}passthrough(){return new DH({...this._def,unknownKeys:"passthrough"})}extend(A){return new DH({...this._def,shape:()=>({...this._def.shape(),...A})})}merge(A){return new DH({unknownKeys:A._def.unknownKeys,catchall:A._def.catchall,shape:()=>({...this._def.shape(),...A._def.shape()}),typeName:lK.ZodObject})}setKey(A,q){return this.augment({[A]:q})}catchall(A){return new DH({...this._def,catchall:A})}pick(A){let q={};for(let K of F9.objectKeys(A))if(A[K]&&this.shape[K])q[K]=this.shape[K];return new DH({...this._def,shape:()=>q})}omit(A){let q={};for(let K of F9.objectKeys(this.shape))if(!A[K])q[K]=this.shape[K];return new DH({...this._def,shape:()=>q})}deepPartial(){return aO6(this)}partial(A){let q={};for(let K of F9.objectKeys(this.shape)){let Y=this.shape[K];if(A&&!A[K])q[K]=Y;else q[K]=Y.optional()}return new DH({...this._def,shape:()=>q})}required(A){let q={};for(let K of F9.objectKeys(this.shape))if(A&&!A[K])q[K]=this.shape[K];else{let z=this.shape[K];while(z instanceof OC)z=z._def.innerType;q[K]=z}return new DH({...this._def,shape:()=>q})}keyof(){return vKA(F9.objectKeys(this.shape))}};DH.create=(A,q)=>{return new DH({shape:()=>A,unknownKeys:"strip",catchall:su.create(),typeName:lK.ZodObject,...T5(q)})};DH.strictCreate=(A,q)=>{return new DH({shape:()=>A,unknownKeys:"strict",catchall:su.create(),typeName:lK.ZodObject,...T5(q)})};DH.lazycreate=(A,q)=>{return new DH({shape:A,unknownKeys:"strip",catchall:su.create(),typeName:lK.ZodObject,...T5(q)})};qH6=class qH6 extends M9{_parse(A){let{ctx:q}=this._processInputParams(A),K=this._def.options;function Y(z){for(let _ of z)if(_.result.status==="valid")return _.result;for(let _ of z)if(_.result.status==="dirty")return q.common.issues.push(..._.ctx.common.issues),_.result;let w=z.map((_)=>new zv(_.ctx.common.issues));return M4(q,{code:tA.invalid_union,unionErrors:w}),LK}if(q.common.async)return Promise.all(K.map(async(z)=>{let w={...q,common:{...q.common,issues:[]},parent:null};return{result:await z._parseAsync({data:q.data,path:q.path,parent:w}),ctx:w}})).then(Y);else{let z=void 0,w=[];for(let $ of K){let O={...q,common:{...q.common,issues:[]},parent:null},H=$._parseSync({data:q.data,path:q.path,parent:O});if(H.status==="valid")return H;else if(H.status==="dirty"&&!z)z={result:H,ctx:O};if(O.common.issues.length)w.push(O.common.issues)}if(z)return q.common.issues.push(...z.ctx.common.issues),z.result;let _=w.map(($)=>new zv($));return M4(q,{code:tA.invalid_union,unionErrors:_}),LK}}get options(){return this._def.options}};qH6.create=(A,q)=>{return new qH6({options:A,typeName:lK.ZodUnion,...T5(q)})};d11=class d11 extends M9{_parse(A){let{ctx:q}=this._processInputParams(A);if(q.parsedType!==g7.object)return M4(q,{code:tA.invalid_type,expected:g7.object,received:q.parsedType}),LK;let K=this.discriminator,Y=q.data[K],z=this.optionsMap.get(Y);if(!z)return M4(q,{code:tA.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[K]}),LK;if(q.common.async)return z._parseAsync({data:q.data,path:q.path,parent:q});else return z._parseSync({data:q.data,path:q.path,parent:q})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(A,q,K){let Y=new Map;for(let z of q){let w=zU(z.shape[A]);if(!w.length)throw Error(`A discriminator value for key \`${A}\` could not be extracted from all schema options`);for(let _ of w){if(Y.has(_))throw Error(`Discriminator property ${String(A)} has duplicate value ${String(_)}`);Y.set(_,z)}}return new d11({typeName:lK.ZodDiscriminatedUnion,discriminator:A,options:q,optionsMap:Y,...T5(K)})}};KH6=class KH6 extends M9{_parse(A){let{status:q,ctx:K}=this._processInputParams(A),Y=(z,w)=>{if(Q11(z)||Q11(w))return LK;let _=cQ1(z.value,w.value);if(!_.valid)return M4(K,{code:tA.invalid_intersection_types}),LK;if(U11(z)||U11(w))q.dirty();return{status:q.value,value:_.data}};if(K.common.async)return Promise.all([this._def.left._parseAsync({data:K.data,path:K.path,parent:K}),this._def.right._parseAsync({data:K.data,path:K.path,parent:K})]).then(([z,w])=>Y(z,w));else return Y(this._def.left._parseSync({data:K.data,path:K.path,parent:K}),this._def.right._parseSync({data:K.data,path:K.path,parent:K}))}};KH6.create=(A,q,K)=>{return new KH6({left:A,right:q,typeName:lK.ZodIntersection,...T5(K)})};tu=class tu extends M9{_parse(A){let{status:q,ctx:K}=this._processInputParams(A);if(K.parsedType!==g7.array)return M4(K,{code:tA.invalid_type,expected:g7.array,received:K.parsedType}),LK;if(K.data.length<this._def.items.length)return M4(K,{code:tA.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),LK;if(!this._def.rest&&K.data.length>this._def.items.length)M4(K,{code:tA.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),q.dirty();let z=[...K.data].map((w,_)=>{let $=this._def.items[_]||this._def.rest;if(!$)return null;return $._parse(new HC(K,w,K.path,_))}).filter((w)=>!!w);if(K.common.async)return Promise.all(z).then((w)=>{return tP.mergeArray(q,w)});else return tP.mergeArray(q,z)}get items(){return this._def.items}rest(A){return new tu({...this._def,rest:A})}};tu.create=(A,q)=>{if(!Array.isArray(A))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new tu({items:A,typeName:lK.ZodTuple,rest:null,...T5(q)})};$R6=class $R6 extends M9{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(A){let{status:q,ctx:K}=this._processInputParams(A);if(K.parsedType!==g7.object)return M4(K,{code:tA.invalid_type,expected:g7.object,received:K.parsedType}),LK;let Y=[],z=this._def.keyType,w=this._def.valueType;for(let _ in K.data)Y.push({key:z._parse(new HC(K,_,K.path,_)),value:w._parse(new HC(K,K.data[_],K.path,_)),alwaysSet:_ in K.data});if(K.common.async)return tP.mergeObjectAsync(q,Y);else return tP.mergeObjectSync(q,Y)}get element(){return this._def.valueType}static create(A,q,K){if(q instanceof M9)return new $R6({keyType:A,valueType:q,typeName:lK.ZodRecord,...T5(K)});return new $R6({keyType:_C.create(),valueType:A,typeName:lK.ZodRecord,...T5(q)})}};OR6=class OR6 extends M9{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(A){let{status:q,ctx:K}=this._processInputParams(A);if(K.parsedType!==g7.map)return M4(K,{code:tA.invalid_type,expected:g7.map,received:K.parsedType}),LK;let Y=this._def.keyType,z=this._def.valueType,w=[...K.data.entries()].map(([_,$],O)=>{return{key:Y._parse(new HC(K,_,K.path,[O,"key"])),value:z._parse(new HC(K,$,K.path,[O,"value"]))}});if(K.common.async){let _=new Map;return Promise.resolve().then(async()=>{for(let $ of w){let O=await $.key,H=await $.value;if(O.status==="aborted"||H.status==="aborted")return LK;if(O.status==="dirty"||H.status==="dirty")q.dirty();_.set(O.value,H.value)}return{status:q.value,value:_}})}else{let _=new Map;for(let $ of w){let{key:O,value:H}=$;if(O.status==="aborted"||H.status==="aborted")return LK;if(O.status==="dirty"||H.status==="dirty")q.dirty();_.set(O.value,H.value)}return{status:q.value,value:_}}}};OR6.create=(A,q,K)=>{return new OR6({valueType:q,keyType:A,typeName:lK.ZodMap,...T5(K)})};O46=class O46 extends M9{_parse(A){let{status:q,ctx:K}=this._processInputParams(A);if(K.parsedType!==g7.set)return M4(K,{code:tA.invalid_type,expected:g7.set,received:K.parsedType}),LK;let Y=this._def;if(Y.minSize!==null){if(K.data.size<Y.minSize.value)M4(K,{code:tA.too_small,minimum:Y.minSize.value,type:"set",inclusive:!0,exact:!1,message:Y.minSize.message}),q.dirty()}if(Y.maxSize!==null){if(K.data.size>Y.maxSize.value)M4(K,{code:tA.too_big,maximum:Y.maxSize.value,type:"set",inclusive:!0,exact:!1,message:Y.maxSize.message}),q.dirty()}let z=this._def.valueType;function w($){let O=new Set;for(let H of $){if(H.status==="aborted")return LK;if(H.status==="dirty")q.dirty();O.add(H.value)}return{status:q.value,value:O}}let _=[...K.data.values()].map(($,O)=>z._parse(new HC(K,$,K.path,O)));if(K.common.async)return Promise.all(_).then(($)=>w($));else return w(_)}min(A,q){return new O46({...this._def,minSize:{value:A,message:Wq.toString(q)}})}max(A,q){return new O46({...this._def,maxSize:{value:A,message:Wq.toString(q)}})}size(A,q){return this.min(A,q).max(A,q)}nonempty(A){return this.min(1,A)}};O46.create=(A,q)=>{return new O46({valueType:A,minSize:null,maxSize:null,typeName:lK.ZodSet,...T5(q)})};sO6=class sO6 extends M9{constructor(){super(...arguments);this.validate=this.implement}_parse(A){let{ctx:q}=this._processInputParams(A);if(q.parsedType!==g7.function)return M4(q,{code:tA.invalid_type,expected:g7.function,received:q.parsedType}),LK;function K(_,$){return zR6({data:_,path:q.path,errorMaps:[q.common.contextualErrorMap,q.schemaErrorMap,rO6(),YU].filter((O)=>!!O),issueData:{code:tA.invalid_arguments,argumentsError:$}})}function Y(_,$){return zR6({data:_,path:q.path,errorMaps:[q.common.contextualErrorMap,q.schemaErrorMap,rO6(),YU].filter((O)=>!!O),issueData:{code:tA.invalid_return_type,returnTypeError:$}})}let z={errorMap:q.common.contextualErrorMap},w=q.data;if(this._def.returns instanceof H46){let _=this;return YG(async function(...$){let O=new zv([]),H=await _._def.args.parseAsync($,z).catch((M)=>{throw O.addIssue(K($,M)),O}),j=await Reflect.apply(w,this,H);return await _._def.returns._def.type.parseAsync(j,z).catch((M)=>{throw O.addIssue(Y(j,M)),O})})}else{let _=this;return YG(function(...$){let O=_._def.args.safeParse($,z);if(!O.success)throw new zv([K($,O.error)]);let H=Reflect.apply(w,this,O.data),j=_._def.returns.safeParse(H,z);if(!j.success)throw new zv([Y(H,j.error)]);return j.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...A){return new sO6({...this._def,args:tu.create(A).rest(vo.create())})}returns(A){return new sO6({...this._def,returns:A})}implement(A){return this.parse(A)}strictImplement(A){return this.parse(A)}static create(A,q,K){return new sO6({args:A?A:tu.create([]).rest(vo.create()),returns:q||vo.create(),typeName:lK.ZodFunction,...T5(K)})}};YH6=class YH6 extends M9{get schema(){return this._def.getter()}_parse(A){let{ctx:q}=this._processInputParams(A);return this._def.getter()._parse({data:q.data,path:q.path,parent:q})}};YH6.create=(A,q)=>{return new YH6({getter:A,typeName:lK.ZodLazy,...T5(q)})};zH6=class zH6 extends M9{_parse(A){if(A.data!==this._def.value){let q=this._getOrReturnCtx(A);return M4(q,{received:q.data,code:tA.invalid_literal,expected:this._def.value}),LK}return{status:"valid",value:A.data}}get value(){return this._def.value}};zH6.create=(A,q)=>{return new zH6({value:A,typeName:lK.ZodLiteral,...T5(q)})};ko=class ko extends M9{_parse(A){if(typeof A.data!=="string"){let q=this._getOrReturnCtx(A),K=this._def.values;return M4(q,{expected:F9.joinValues(K),received:q.parsedType,code:tA.invalid_type}),LK}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has(A.data)){let q=this._getOrReturnCtx(A),K=this._def.values;return M4(q,{received:q.data,code:tA.invalid_enum_value,options:K}),LK}return YG(A.data)}get options(){return this._def.values}get enum(){let A={};for(let q of this._def.values)A[q]=q;return A}get Values(){let A={};for(let q of this._def.values)A[q]=q;return A}get Enum(){let A={};for(let q of this._def.values)A[q]=q;return A}extract(A,q=this._def){return ko.create(A,{...this._def,...q})}exclude(A,q=this._def){return ko.create(this.options.filter((K)=>!A.includes(K)),{...this._def,...q})}};ko.create=vKA;wH6=class wH6 extends M9{_parse(A){let q=F9.getValidEnumValues(this._def.values),K=this._getOrReturnCtx(A);if(K.parsedType!==g7.string&&K.parsedType!==g7.number){let Y=F9.objectValues(q);return M4(K,{expected:F9.joinValues(Y),received:K.parsedType,code:tA.invalid_type}),LK}if(!this._cache)this._cache=new Set(F9.getValidEnumValues(this._def.values));if(!this._cache.has(A.data)){let Y=F9.objectValues(q);return M4(K,{received:K.data,code:tA.invalid_enum_value,options:Y}),LK}return YG(A.data)}get enum(){return this._def.values}};wH6.create=(A,q)=>{return new wH6({values:A,typeName:lK.ZodNativeEnum,...T5(q)})};H46=class H46 extends M9{unwrap(){return this._def.type}_parse(A){let{ctx:q}=this._processInputParams(A);if(q.parsedType!==g7.promise&&q.common.async===!1)return M4(q,{code:tA.invalid_type,expected:g7.promise,received:q.parsedType}),LK;let K=q.parsedType===g7.promise?q.data:Promise.resolve(q.data);return YG(K.then((Y)=>{return this._def.type.parseAsync(Y,{path:q.path,errorMap:q.common.contextualErrorMap})}))}};H46.create=(A,q)=>{return new H46({type:A,typeName:lK.ZodPromise,...T5(q)})};jC=class jC extends M9{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===lK.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(A){let{status:q,ctx:K}=this._processInputParams(A),Y=this._def.effect||null,z={addIssue:(w)=>{if(M4(K,w),w.fatal)q.abort();else q.dirty()},get path(){return K.path}};if(z.addIssue=z.addIssue.bind(z),Y.type==="preprocess"){let w=Y.transform(K.data,z);if(K.common.async)return Promise.resolve(w).then(async(_)=>{if(q.value==="aborted")return LK;let $=await this._def.schema._parseAsync({data:_,path:K.path,parent:K});if($.status==="aborted")return LK;if($.status==="dirty")return w46($.value);if(q.value==="dirty")return w46($.value);return $});else{if(q.value==="aborted")return LK;let _=this._def.schema._parseSync({data:w,path:K.path,parent:K});if(_.status==="aborted")return LK;if(_.status==="dirty")return w46(_.value);if(q.value==="dirty")return w46(_.value);return _}}if(Y.type==="refinement"){let w=(_)=>{let $=Y.refinement(_,z);if(K.common.async)return Promise.resolve($);if($ instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return _};if(K.common.async===!1){let _=this._def.schema._parseSync({data:K.data,path:K.path,parent:K});if(_.status==="aborted")return LK;if(_.status==="dirty")q.dirty();return w(_.value),{status:q.value,value:_.value}}else return this._def.schema._parseAsync({data:K.data,path:K.path,parent:K}).then((_)=>{if(_.status==="aborted")return LK;if(_.status==="dirty")q.dirty();return w(_.value).then(()=>{return{status:q.value,value:_.value}})})}if(Y.type==="transform")if(K.common.async===!1){let w=this._def.schema._parseSync({data:K.data,path:K.path,parent:K});if(!To(w))return LK;let _=Y.transform(w.value,z);if(_ instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:q.value,value:_}}else return this._def.schema._parseAsync({data:K.data,path:K.path,parent:K}).then((w)=>{if(!To(w))return LK;return Promise.resolve(Y.transform(w.value,z)).then((_)=>({status:q.value,value:_}))});F9.assertNever(Y)}};jC.create=(A,q,K)=>{return new jC({schema:A,typeName:lK.ZodEffects,effect:q,...T5(K)})};jC.createWithPreprocess=(A,q,K)=>{return new jC({schema:q,effect:{type:"preprocess",transform:A},typeName:lK.ZodEffects,...T5(K)})};OC=class OC extends M9{_parse(A){if(this._getType(A)===g7.undefined)return YG(void 0);return this._def.innerType._parse(A)}unwrap(){return this._def.innerType}};OC.create=(A,q)=>{return new OC({innerType:A,typeName:lK.ZodOptional,...T5(q)})};wU=class wU extends M9{_parse(A){if(this._getType(A)===g7.null)return YG(null);return this._def.innerType._parse(A)}unwrap(){return this._def.innerType}};wU.create=(A,q)=>{return new wU({innerType:A,typeName:lK.ZodNullable,...T5(q)})};_H6=class _H6 extends M9{_parse(A){let{ctx:q}=this._processInputParams(A),K=q.data;if(q.parsedType===g7.undefined)K=this._def.defaultValue();return this._def.innerType._parse({data:K,path:q.path,parent:q})}removeDefault(){return this._def.innerType}};_H6.create=(A,q)=>{return new _H6({innerType:A,typeName:lK.ZodDefault,defaultValue:typeof q.default==="function"?q.default:()=>q.default,...T5(q)})};$H6=class $H6 extends M9{_parse(A){let{ctx:q}=this._processInputParams(A),K={...q,common:{...q.common,issues:[]}},Y=this._def.innerType._parse({data:K.data,path:K.path,parent:{...K}});if(oO6(Y))return Y.then((z)=>{return{status:"valid",value:z.status==="valid"?z.value:this._def.catchValue({get error(){return new zv(K.common.issues)},input:K.data})}});else return{status:"valid",value:Y.status==="valid"?Y.value:this._def.catchValue({get error(){return new zv(K.common.issues)},input:K.data})}}removeCatch(){return this._def.innerType}};$H6.create=(A,q)=>{return new $H6({innerType:A,typeName:lK.ZodCatch,catchValue:typeof q.catch==="function"?q.catch:()=>q.catch,...T5(q)})};HR6=class HR6 extends M9{_parse(A){if(this._getType(A)!==g7.nan){let K=this._getOrReturnCtx(A);return M4(K,{code:tA.invalid_type,expected:g7.nan,received:K.parsedType}),LK}return{status:"valid",value:A.data}}};HR6.create=(A)=>{return new HR6({typeName:lK.ZodNaN,...T5(A)})};$7K=Symbol("zod_brand");c11=class c11 extends M9{_parse(A){let{ctx:q}=this._processInputParams(A),K=q.data;return this._def.type._parse({data:K,path:q.path,parent:q})}unwrap(){return this._def.type}};jR6=class jR6 extends M9{_parse(A){let{status:q,ctx:K}=this._processInputParams(A);if(K.common.async)return(async()=>{let z=await this._def.in._parseAsync({data:K.data,path:K.path,parent:K});if(z.status==="aborted")return LK;if(z.status==="dirty")return q.dirty(),w46(z.value);else return this._def.out._parseAsync({data:z.value,path:K.path,parent:K})})();else{let Y=this._def.in._parseSync({data:K.data,path:K.path,parent:K});if(Y.status==="aborted")return LK;if(Y.status==="dirty")return q.dirty(),{status:"dirty",value:Y.value};else return this._def.out._parseSync({data:Y.value,path:K.path,parent:K})}}static create(A,q){return new jR6({in:A,out:q,typeName:lK.ZodPipeline})}};OH6=class OH6 extends M9{_parse(A){let q=this._def.innerType._parse(A),K=(Y)=>{if(To(Y))Y.value=Object.freeze(Y.value);return Y};return oO6(q)?q.then((Y)=>K(Y)):K(q)}unwrap(){return this._def.innerType}};OH6.create=(A,q)=>{return new OH6({innerType:A,typeName:lK.ZodReadonly,...T5(q)})};O7K={object:DH.lazycreate};(function(A){A.ZodString="ZodString",A.ZodNumber="ZodNumber",A.ZodNaN="ZodNaN",A.ZodBigInt="ZodBigInt",A.ZodBoolean="ZodBoolean",A.ZodDate="ZodDate",A.ZodSymbol="ZodSymbol",A.ZodUndefined="ZodUndefined",A.ZodNull="ZodNull",A.ZodAny="ZodAny",A.ZodUnknown="ZodUnknown",A.ZodNever="ZodNever",A.ZodVoid="ZodVoid",A.ZodArray="ZodArray",A.ZodObject="ZodObject",A.ZodUnion="ZodUnion",A.ZodDiscriminatedUnion="ZodDiscriminatedUnion",A.ZodIntersection="ZodIntersection",A.ZodTuple="ZodTuple",A.ZodRecord="ZodRecord",A.ZodMap="ZodMap",A.ZodSet="ZodSet",A.ZodFunction="ZodFunction",A.ZodLazy="ZodLazy",A.ZodLiteral="ZodLiteral",A.ZodEnum="ZodEnum",A.ZodEffects="ZodEffects",A.ZodNativeEnum="ZodNativeEnum",A.ZodOptional="ZodOptional",A.ZodNullable="ZodNullable",A.ZodDefault="ZodDefault",A.ZodCatch="ZodCatch",A.ZodPromise="ZodPromise",A.ZodBranded="ZodBranded",A.ZodPipeline="ZodPipeline",A.ZodReadonly="ZodReadonly"})(lK||(lK={}));lA=_C.create,nL=Vo.create,j7K=HR6.create,J7K=No.create,GX=tO6.create,M7K=_46.create,D7K=wR6.create,X7K=eO6.create,P7K=AH6.create,W7K=$46.create,G7K=vo.create,Z7K=su.create,f7K=_R6.create,wj=$C.create,iN=DH.create,nN=DH.strictCreate,j46=qH6.create,T7K=d11.create,v7K=KH6.create,V7K=tu.create,JC=$R6.create,N7K=OR6.create,k7K=O46.create,E7K=sO6.create,L7K=YH6.create,y7K=zH6.create,MC=ko.create,R7K=wH6.create,S7K=H46.create,h7K=jC.create,C7K=OC.create,I7K=wU.create,x7K=jC.createWithPreprocess,b7K=jR6.create,g7K={string:(A)=>_C.create({...A,coerce:!0}),number:(A)=>Vo.create({...A,coerce:!0}),boolean:(A)=>tO6.create({...A,coerce:!0}),bigint:(A)=>No.create({...A,coerce:!0}),date:(A)=>_46.create({...A,coerce:!0})},p7K=LK});var XK={};d1(XK,{void:()=>f7K,util:()=>F9,unknown:()=>G7K,union:()=>j46,undefined:()=>X7K,tuple:()=>V7K,transformer:()=>h7K,symbol:()=>D7K,string:()=>lA,strictObject:()=>nN,setErrorMap:()=>gAK,set:()=>k7K,record:()=>JC,quotelessJson:()=>mAK,promise:()=>S7K,preprocess:()=>x7K,pipeline:()=>b7K,ostring:()=>u7K,optional:()=>C7K,onumber:()=>m7K,oboolean:()=>B7K,objectUtil:()=>FQ1,object:()=>iN,number:()=>nL,nullable:()=>I7K,null:()=>P7K,never:()=>Z7K,nativeEnum:()=>R7K,nan:()=>j7K,map:()=>N7K,makeIssue:()=>zR6,literal:()=>y7K,lazy:()=>L7K,late:()=>O7K,isValid:()=>To,isDirty:()=>U11,isAsync:()=>oO6,isAborted:()=>Q11,intersection:()=>v7K,instanceof:()=>H7K,getParsedType:()=>au,getErrorMap:()=>rO6,function:()=>E7K,enum:()=>MC,effect:()=>h7K,discriminatedUnion:()=>T7K,defaultErrorMap:()=>YU,datetimeRegex:()=>TKA,date:()=>M7K,custom:()=>VKA,coerce:()=>g7K,boolean:()=>GX,bigint:()=>J7K,array:()=>wj,any:()=>W7K,addIssueToContext:()=>M4,ZodVoid:()=>_R6,ZodUnknown:()=>vo,ZodUnion:()=>qH6,ZodUndefined:()=>eO6,ZodType:()=>M9,ZodTuple:()=>tu,ZodTransformer:()=>jC,ZodSymbol:()=>wR6,ZodString:()=>_C,ZodSet:()=>O46,ZodSchema:()=>M9,ZodRecord:()=>$R6,ZodReadonly:()=>OH6,ZodPromise:()=>H46,ZodPipeline:()=>jR6,ZodParsedType:()=>g7,ZodOptional:()=>OC,ZodObject:()=>DH,ZodNumber:()=>Vo,ZodNullable:()=>wU,ZodNull:()=>AH6,ZodNever:()=>su,ZodNativeEnum:()=>wH6,ZodNaN:()=>HR6,ZodMap:()=>OR6,ZodLiteral:()=>zH6,ZodLazy:()=>YH6,ZodIssueCode:()=>tA,ZodIntersection:()=>KH6,ZodFunction:()=>sO6,ZodFirstPartyTypeKind:()=>lK,ZodError:()=>zv,ZodEnum:()=>ko,ZodEffects:()=>jC,ZodDiscriminatedUnion:()=>d11,ZodDefault:()=>_H6,ZodDate:()=>_46,ZodCatch:()=>$H6,ZodBranded:()=>c11,ZodBoolean:()=>tO6,ZodBigInt:()=>No,ZodArray:()=>$C,ZodAny:()=>$46,Schema:()=>M9,ParseStatus:()=>tP,OK:()=>YG,NEVER:()=>p7K,INVALID:()=>LK,EMPTY_PATH:()=>pAK,DIRTY:()=>w46,BRAND:()=>$7K});var lQ1=E(()=>{F11();UQ1();XKA();YR6();NKA();p11()});var kKA=E(()=>{iZ()});var EKA=()=>{};var LKA=()=>{};var yKA=()=>{};var RKA=()=>{};var SKA=E(()=>{iZ();V61();yKA();RKA();kKA();EKA();LKA()});var hKA=E(()=>{SKA()});var CKA=E(()=>{hKA()});function Eo(A){return!!A._zod}function oZ(A,q){if(Eo(A))return yO6(A,q);return A.safeParse(q)}function HH6(A){if(!A)return;let q;if(Eo(A))q=A._zod?.def?.shape;else q=A.shape;if(!q)return;if(typeof q==="function")try{return q()}catch{return}return q}function IKA(A){if(Eo(A)){let w=A._zod?.def;if(w){if(w.value!==void 0)return w.value;if(Array.isArray(w.values)&&w.values.length>0)return w.values[0]}}let K=A._def;if(K){if(K.value!==void 0)return K.value;if(Array.isArray(K.values)&&K.values.length>0)return K.values[0]}let Y=A.value;if(Y!==void 0)return Y;return}var JR6=E(()=>{CKA()});function Lo(A){return A==="completed"||A==="failed"||A==="cancelled"}var d7K;var l11=E(()=>{d7K=Symbol("Let zodToJsonSchema decide on which parser to use")});var iQ1=E(()=>{l11()});var rL=()=>{};var nQ1=E(()=>{qM()});var rQ1=()=>{};var i11=E(()=>{qM()});var oQ1=E(()=>{qM()});var aQ1=()=>{};var sQ1=E(()=>{qM()});var tQ1=E(()=>{qM();rL()});var eQ1=E(()=>{qM()});var iez;var n11=E(()=>{iez=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789")});var r11=E(()=>{qM();n11();i11();rL()});var AU1=E(()=>{qM();r11();rL()});var qU1=E(()=>{rL()});var o11=E(()=>{qM()});var KU1=E(()=>{qM();o11()});var YU1=()=>{};var zU1=E(()=>{qM()});var wU1=E(()=>{qM();rL()});var _U1=E(()=>{qM()});var $U1=E(()=>{qM()});var OU1=E(()=>{qM()});var HU1=E(()=>{qM()});var jU1=E(()=>{rL()});var JU1=E(()=>{rL()});var MU1=E(()=>{qM()});var DU1=E(()=>{rL();nQ1();rQ1();i11();oQ1();aQ1();sQ1();tQ1();eQ1();AU1();qU1();KU1();YU1();zU1();wU1();_U1();$U1();r11();OU1();n11();HU1();jU1();o11();JU1();MU1()});var qM=E(()=>{l11();DU1();rL()});var xKA=()=>{};var XU1=E(()=>{qM();iQ1();rL()});var bKA=E(()=>{XU1();l11();iQ1();qM();xKA();rL();nQ1();rQ1();i11();oQ1();aQ1();sQ1();tQ1();eQ1();AU1();qU1();KU1();YU1();zU1();wU1();_U1();$U1();MU1();r11();OU1();n11();HU1();jU1();o11();JU1();DU1();XU1()});function PU1(A){let K=HH6(A)?.method;if(!K)throw Error("Schema is missing a method literal");let Y=IKA(K);if(typeof Y!=="string")throw Error("Schema method literal must be a string");return Y}function WU1(A,q){let K=oZ(A,q);if(!K.success)throw K.error;return K.data}var uKA=E(()=>{JR6();bKA()});class DR6{constructor(A){if(this._options=A,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(J11,(q)=>{this._oncancel(q)}),this.setNotificationHandler(X11,(q)=>{this._onprogress(q)}),this.setRequestHandler(D11,(q)=>({})),this._taskStore=A?.taskStore,this._taskMessageQueue=A?.taskMessageQueue,this._taskStore)this.setRequestHandler(P11,async(q,K)=>{let Y=await this._taskStore.getTask(q.params.taskId,K.sessionId);if(!Y)throw new Oq(aq.InvalidParams,"Failed to retrieve task: Task not found");return{...Y}}),this.setRequestHandler(G11,async(q,K)=>{let Y=async()=>{let z=q.params.taskId;if(this._taskMessageQueue){let _;while(_=await this._taskMessageQueue.dequeue(z,K.sessionId)){if(_.type==="response"||_.type==="error"){let $=_.message,O=$.id,H=this._requestResolvers.get(O);if(H)if(this._requestResolvers.delete(O),_.type==="response")H($);else{let j=$,J=new Oq(j.error.code,j.error.message,j.error.data);H(J)}else{let j=_.type==="response"?"Response":"Error";this._onerror(Error(`${j} handler missing for request ${O}`))}continue}await this._transport?.send(_.message,{relatedRequestId:K.requestId})}}let w=await this._taskStore.getTask(z,K.sessionId);if(!w)throw new Oq(aq.InvalidParams,`Task not found: ${z}`);if(!Lo(w.status))return await this._waitForTaskUpdate(z,K.signal),await Y();if(Lo(w.status)){let _=await this._taskStore.getTaskResult(z,K.sessionId);return this._clearTaskQueue(z),{..._,_meta:{..._._meta,[Xo]:{taskId:z}}}}return await Y()};return await Y()}),this.setRequestHandler(Z11,async(q,K)=>{try{let{tasks:Y,nextCursor:z}=await this._taskStore.listTasks(q.params?.cursor,K.sessionId);return{tasks:Y,nextCursor:z,_meta:{}}}catch(Y){throw new Oq(aq.InvalidParams,`Failed to list tasks: ${Y instanceof Error?Y.message:String(Y)}`)}}),this.setRequestHandler(T11,async(q,K)=>{try{let Y=await this._taskStore.getTask(q.params.taskId,K.sessionId);if(!Y)throw new Oq(aq.InvalidParams,`Task not found: ${q.params.taskId}`);if(Lo(Y.status))throw new Oq(aq.InvalidParams,`Cannot cancel task in terminal status: ${Y.status}`);await this._taskStore.updateTaskStatus(q.params.taskId,"cancelled","Client cancelled task execution.",K.sessionId),this._clearTaskQueue(q.params.taskId);let z=await this._taskStore.getTask(q.params.taskId,K.sessionId);if(!z)throw new Oq(aq.InvalidParams,`Task not found after cancellation: ${q.params.taskId}`);return{_meta:{},...z}}catch(Y){if(Y instanceof Oq)throw Y;throw new Oq(aq.InvalidRequest,`Failed to cancel task: ${Y instanceof Error?Y.message:String(Y)}`)}})}async _oncancel(A){if(!A.params.requestId)return;this._requestHandlerAbortControllers.get(A.params.requestId)?.abort(A.params.reason)}_setupTimeout(A,q,K,Y,z=!1){this._timeoutInfo.set(A,{timeoutId:setTimeout(Y,q),startTime:Date.now(),timeout:q,maxTotalTimeout:K,resetTimeoutOnProgress:z,onTimeout:Y})}_resetTimeout(A){let q=this._timeoutInfo.get(A);if(!q)return!1;let K=Date.now()-q.startTime;if(q.maxTotalTimeout&&K>=q.maxTotalTimeout)throw this._timeoutInfo.delete(A),Oq.fromError(aq.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:q.maxTotalTimeout,totalElapsed:K});return clearTimeout(q.timeoutId),q.timeoutId=setTimeout(q.onTimeout,q.timeout),!0}_cleanupTimeout(A){let q=this._timeoutInfo.get(A);if(q)clearTimeout(q.timeoutId),this._timeoutInfo.delete(A)}async connect(A){if(this._transport)throw Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=A;let q=this.transport?.onclose;this._transport.onclose=()=>{q?.(),this._onclose()};let K=this.transport?.onerror;this._transport.onerror=(z)=>{K?.(z),this._onerror(z)};let Y=this._transport?.onmessage;this._transport.onmessage=(z,w)=>{if(Y?.(z,w),s76(z)||i4A(z))this._onresponse(z);else if(Sy6(z))this._onrequest(z,w);else if(l4A(z))this._onnotification(z);else this._onerror(Error(`Unknown message type: ${JSON.stringify(z)}`))},await this._transport.start()}_onclose(){let A=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let K of this._requestHandlerAbortControllers.values())K.abort();this._requestHandlerAbortControllers.clear();let q=Oq.fromError(aq.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let K of A.values())K(q)}_onerror(A){this.onerror?.(A)}_onnotification(A){let q=this._notificationHandlers.get(A.method)??this.fallbackNotificationHandler;if(q===void 0)return;Promise.resolve().then(()=>q(A)).catch((K)=>this._onerror(Error(`Uncaught error in notification handler: ${K}`)))}_onrequest(A,q){let K=this._requestHandlers.get(A.method)??this.fallbackRequestHandler,Y=this._transport,z=A.params?._meta?.[Xo]?.taskId;if(K===void 0){let H={jsonrpc:"2.0",id:A.id,error:{code:aq.MethodNotFound,message:"Method not found"}};if(z&&this._taskMessageQueue)this._enqueueTaskMessage(z,{type:"error",message:H,timestamp:Date.now()},Y?.sessionId).catch((j)=>this._onerror(Error(`Failed to enqueue error response: ${j}`)));else Y?.send(H).catch((j)=>this._onerror(Error(`Failed to send an error response: ${j}`)));return}let w=new AbortController;this._requestHandlerAbortControllers.set(A.id,w);let _=U4A(A.params)?A.params.task:void 0,$=this._taskStore?this.requestTaskStore(A,Y?.sessionId):void 0,O={signal:w.signal,sessionId:Y?.sessionId,_meta:A.params?._meta,sendNotification:async(H)=>{if(w.signal.aborted)return;let j={relatedRequestId:A.id};if(z)j.relatedTask={taskId:z};await this.notification(H,j)},sendRequest:async(H,j,J)=>{if(w.signal.aborted)throw new Oq(aq.ConnectionClosed,"Request was cancelled");let M={...J,relatedRequestId:A.id};if(z&&!M.relatedTask)M.relatedTask={taskId:z};let D=M.relatedTask?.taskId??z;if(D&&$)await $.updateTaskStatus(D,"input_required");return await this.request(H,j,M)},authInfo:q?.authInfo,requestId:A.id,requestInfo:q?.requestInfo,taskId:z,taskStore:$,taskRequestedTtl:_?.ttl,closeSSEStream:q?.closeSSEStream,closeStandaloneSSEStream:q?.closeStandaloneSSEStream};Promise.resolve().then(()=>{if(_)this.assertTaskHandlerCapability(A.method)}).then(()=>K(A,O)).then(async(H)=>{if(w.signal.aborted)return;let j={result:H,jsonrpc:"2.0",id:A.id};if(z&&this._taskMessageQueue)await this._enqueueTaskMessage(z,{type:"response",message:j,timestamp:Date.now()},Y?.sessionId);else await Y?.send(j)},async(H)=>{if(w.signal.aborted)return;let j={jsonrpc:"2.0",id:A.id,error:{code:Number.isSafeInteger(H.code)?H.code:aq.InternalError,message:H.message??"Internal error",...H.data!==void 0&&{data:H.data}}};if(z&&this._taskMessageQueue)await this._enqueueTaskMessage(z,{type:"error",message:j,timestamp:Date.now()},Y?.sessionId);else await Y?.send(j)}).catch((H)=>this._onerror(Error(`Failed to send response: ${H}`))).finally(()=>{this._requestHandlerAbortControllers.delete(A.id)})}_onprogress(A){let{progressToken:q,...K}=A.params,Y=Number(q),z=this._progressHandlers.get(Y);if(!z){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(A)}`));return}let w=this._responseHandlers.get(Y),_=this._timeoutInfo.get(Y);if(_&&w&&_.resetTimeoutOnProgress)try{this._resetTimeout(Y)}catch($){this._responseHandlers.delete(Y),this._progressHandlers.delete(Y),this._cleanupTimeout(Y),w($);return}z(K)}_onresponse(A){let q=Number(A.id),K=this._requestResolvers.get(q);if(K){if(this._requestResolvers.delete(q),s76(A))K(A);else{let w=new Oq(A.error.code,A.error.message,A.error.data);K(w)}return}let Y=this._responseHandlers.get(q);if(Y===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(A)}`));return}this._responseHandlers.delete(q),this._cleanupTimeout(q);let z=!1;if(s76(A)&&A.result&&typeof A.result==="object"){let w=A.result;if(w.task&&typeof w.task==="object"){let _=w.task;if(typeof _.taskId==="string")z=!0,this._taskProgressTokens.set(_.taskId,q)}}if(!z)this._progressHandlers.delete(q);if(s76(A))Y(A);else{let w=Oq.fromError(A.error.code,A.error.message,A.error.data);Y(w)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(A,q,K){let{task:Y}=K??{};if(!Y){try{yield{type:"result",result:await this.request(A,q,K)}}catch(w){yield{type:"error",error:w instanceof Oq?w:new Oq(aq.InternalError,String(w))}}return}let z;try{let w=await this.request(A,sQ,K);if(w.task)z=w.task.taskId,yield{type:"taskCreated",task:w.task};else throw new Oq(aq.InternalError,"Task creation did not return a task");while(!0){let _=await this.getTask({taskId:z},K);if(yield{type:"taskStatus",task:_},Lo(_.status)){if(_.status==="completed")yield{type:"result",result:await this.getTaskResult({taskId:z},q,K)};else if(_.status==="failed")yield{type:"error",error:new Oq(aq.InternalError,`Task ${z} failed`)};else if(_.status==="cancelled")yield{type:"error",error:new Oq(aq.InternalError,`Task ${z} was cancelled`)};return}if(_.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:z},q,K)};return}let $=_.pollInterval??this._options?.defaultTaskPollInterval??1000;await new Promise((O)=>setTimeout(O,$)),K?.signal?.throwIfAborted()}}catch(w){yield{type:"error",error:w instanceof Oq?w:new Oq(aq.InternalError,String(w))}}}request(A,q,K){let{relatedRequestId:Y,resumptionToken:z,onresumptiontoken:w,task:_,relatedTask:$}=K??{};return new Promise((O,H)=>{let j=(G)=>{H(G)};if(!this._transport){j(Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{if(this.assertCapabilityForMethod(A.method),_)this.assertTaskCapability(A.method)}catch(G){j(G);return}K?.signal?.throwIfAborted();let J=this._requestMessageId++,M={...A,jsonrpc:"2.0",id:J};if(K?.onprogress)this._progressHandlers.set(J,K.onprogress),M.params={...A.params,_meta:{...A.params?._meta||{},progressToken:J}};if(_)M.params={...M.params,task:_};if($)M.params={...M.params,_meta:{...M.params?._meta||{},[Xo]:$}};let D=(G)=>{this._responseHandlers.delete(J),this._progressHandlers.delete(J),this._cleanupTimeout(J),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:J,reason:String(G)}},{relatedRequestId:Y,resumptionToken:z,onresumptiontoken:w}).catch((f)=>this._onerror(Error(`Failed to send cancellation: ${f}`)));let Z=G instanceof Oq?G:new Oq(aq.RequestTimeout,String(G));H(Z)};this._responseHandlers.set(J,(G)=>{if(K?.signal?.aborted)return;if(G instanceof Error)return H(G);try{let Z=oZ(q,G.result);if(!Z.success)H(Z.error);else O(Z.data)}catch(Z){H(Z)}}),K?.signal?.addEventListener("abort",()=>{D(K?.signal?.reason)});let X=K?.timeout??o7K,P=()=>D(Oq.fromError(aq.RequestTimeout,"Request timed out",{timeout:X}));this._setupTimeout(J,X,K?.maxTotalTimeout,P,K?.resetTimeoutOnProgress??!1);let W=$?.taskId;if(W){let G=(Z)=>{let f=this._responseHandlers.get(J);if(f)f(Z);else this._onerror(Error(`Response handler missing for side-channeled request ${J}`))};this._requestResolvers.set(J,G),this._enqueueTaskMessage(W,{type:"request",message:M,timestamp:Date.now()}).catch((Z)=>{this._cleanupTimeout(J),H(Z)})}else this._transport.send(M,{relatedRequestId:Y,resumptionToken:z,onresumptiontoken:w}).catch((G)=>{this._cleanupTimeout(J),H(G)})})}async getTask(A,q){return this.request({method:"tasks/get",params:A},W11,q)}async getTaskResult(A,q,K){return this.request({method:"tasks/result",params:A},q,K)}async listTasks(A,q){return this.request({method:"tasks/list",params:A},f11,q)}async cancelTask(A,q){return this.request({method:"tasks/cancel",params:A},o4A,q)}async notification(A,q){if(!this._transport)throw Error("Not connected");this.assertNotificationCapability(A.method);let K=q?.relatedTask?.taskId;if(K){let _={...A,jsonrpc:"2.0",params:{...A.params,_meta:{...A.params?._meta||{},[Xo]:q.relatedTask}}};await this._enqueueTaskMessage(K,{type:"notification",message:_,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(A.method)&&!A.params&&!q?.relatedRequestId&&!q?.relatedTask){if(this._pendingDebouncedNotifications.has(A.method))return;this._pendingDebouncedNotifications.add(A.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(A.method),!this._transport)return;let _={...A,jsonrpc:"2.0"};if(q?.relatedTask)_={..._,params:{..._.params,_meta:{..._.params?._meta||{},[Xo]:q.relatedTask}}};this._transport?.send(_,q).catch(($)=>this._onerror($))});return}let w={...A,jsonrpc:"2.0"};if(q?.relatedTask)w={...w,params:{...w.params,_meta:{...w.params?._meta||{},[Xo]:q.relatedTask}}};await this._transport.send(w,q)}setRequestHandler(A,q){let K=PU1(A);this.assertRequestHandlerCapability(K),this._requestHandlers.set(K,(Y,z)=>{let w=WU1(A,Y);return Promise.resolve(q(w,z))})}removeRequestHandler(A){this._requestHandlers.delete(A)}assertCanSetRequestHandler(A){if(this._requestHandlers.has(A))throw Error(`A request handler for ${A} already exists, which would be overridden`)}setNotificationHandler(A,q){let K=PU1(A);this._notificationHandlers.set(K,(Y)=>{let z=WU1(A,Y);return Promise.resolve(q(z))})}removeNotificationHandler(A){this._notificationHandlers.delete(A)}_cleanupTaskProgressHandler(A){let q=this._taskProgressTokens.get(A);if(q!==void 0)this._progressHandlers.delete(q),this._taskProgressTokens.delete(A)}async _enqueueTaskMessage(A,q,K){if(!this._taskStore||!this._taskMessageQueue)throw Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let Y=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(A,q,K,Y)}async _clearTaskQueue(A,q){if(this._taskMessageQueue){let K=await this._taskMessageQueue.dequeueAll(A,q);for(let Y of K)if(Y.type==="request"&&Sy6(Y.message)){let z=Y.message.id,w=this._requestResolvers.get(z);if(w)w(new Oq(aq.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(z);else this._onerror(Error(`Resolver missing for request ${z} during task ${A} cleanup`))}}}async _waitForTaskUpdate(A,q){let K=this._options?.defaultTaskPollInterval??1000;try{let Y=await this._taskStore?.getTask(A);if(Y?.pollInterval)K=Y.pollInterval}catch{}return new Promise((Y,z)=>{if(q.aborted){z(new Oq(aq.InvalidRequest,"Request cancelled"));return}let w=setTimeout(Y,K);q.addEventListener("abort",()=>{clearTimeout(w),z(new Oq(aq.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(A,q){let K=this._taskStore;if(!K)throw Error("No task store configured");return{createTask:async(Y)=>{if(!A)throw Error("No request provided");return await K.createTask(Y,A.id,{method:A.method,params:A.params},q)},getTask:async(Y)=>{let z=await K.getTask(Y,q);if(!z)throw new Oq(aq.InvalidParams,"Failed to retrieve task: Task not found");return z},storeTaskResult:async(Y,z,w)=>{await K.storeTaskResult(Y,z,w,q);let _=await K.getTask(Y,q);if(_){let $=by6.parse({method:"notifications/tasks/status",params:_});if(await this.notification($),Lo(_.status))this._cleanupTaskProgressHandler(Y)}},getTaskResult:(Y)=>{return K.getTaskResult(Y,q)},updateTaskStatus:async(Y,z,w)=>{let _=await K.getTask(Y,q);if(!_)throw new Oq(aq.InvalidParams,`Task "${Y}" not found - it may have been cleaned up`);if(Lo(_.status))throw new Oq(aq.InvalidParams,`Cannot update task "${Y}" from terminal status "${_.status}" to "${z}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await K.updateTaskStatus(Y,z,w,q);let $=await K.getTask(Y,q);if($){let O=by6.parse({method:"notifications/tasks/status",params:$});if(await this.notification(O),Lo($.status))this._cleanupTaskProgressHandler(Y)}},listTasks:(Y)=>{return K.listTasks(Y,q)}}}}function mKA(A){return A!==null&&typeof A==="object"&&!Array.isArray(A)}function a11(A,q){let K={...A};for(let Y in q){let z=Y,w=q[z];if(w===void 0)continue;let _=K[z];if(mKA(_)&&mKA(w))K[z]={..._,...w};else K[z]=w}return K}var o7K=60000;var GU1=E(()=>{JR6();WD();uKA()});var PR6=h((pKA)=>{Object.defineProperty(pKA,"__esModule",{value:!0});pKA.regexpCode=pKA.getEsmExportName=pKA.getProperty=pKA.safeStringify=pKA.stringify=pKA.strConcat=pKA.addCodeArg=pKA.str=pKA._=pKA.nil=pKA._Code=pKA.Name=pKA.IDENTIFIER=pKA._CodeOrName=void 0;class s11{}pKA._CodeOrName=s11;pKA.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class jH6 extends s11{constructor(A){super();if(!pKA.IDENTIFIER.test(A))throw Error("CodeGen: name must be a valid identifier");this.str=A}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}pKA.Name=jH6;class DC extends s11{constructor(A){super();this._items=typeof A==="string"?[A]:A}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let A=this._items[0];return A===""||A==='""'}get str(){var A;return(A=this._str)!==null&&A!==void 0?A:this._str=this._items.reduce((q,K)=>`${q}${K}`,"")}get names(){var A;return(A=this._names)!==null&&A!==void 0?A:this._names=this._items.reduce((q,K)=>{if(K instanceof jH6)q[K.str]=(q[K.str]||0)+1;return q},{})}}pKA._Code=DC;pKA.nil=new DC("");function BKA(A,...q){let K=[A[0]],Y=0;while(Y<q.length)fU1(K,q[Y]),K.push(A[++Y]);return new DC(K)}pKA._=BKA;var ZU1=new DC("+");function gKA(A,...q){let K=[XR6(A[0])],Y=0;while(Y<q.length)K.push(ZU1),fU1(K,q[Y]),K.push(ZU1,XR6(A[++Y]));return a7K(K),new DC(K)}pKA.str=gKA;function fU1(A,q){if(q instanceof DC)A.push(...q._items);else if(q instanceof jH6)A.push(q);else A.push(e7K(q))}pKA.addCodeArg=fU1;function a7K(A){let q=1;while(q<A.length-1){if(A[q]===ZU1){let K=s7K(A[q-1],A[q+1]);if(K!==void 0){A.splice(q-1,3,K);continue}A[q++]="+"}q++}}function s7K(A,q){if(q==='""')return A;if(A==='""')return q;if(typeof A=="string"){if(q instanceof jH6||A[A.length-1]!=='"')return;if(typeof q!="string")return`${A.slice(0,-1)}${q}"`;if(q[0]==='"')return A.slice(0,-1)+q.slice(1);return}if(typeof q=="string"&&q[0]==='"'&&!(A instanceof jH6))return`"${A}${q.slice(1)}`;return}function t7K(A,q){return q.emptyStr()?A:A.emptyStr()?q:gKA`${A}${q}`}pKA.strConcat=t7K;function e7K(A){return typeof A=="number"||typeof A=="boolean"||A===null?A:XR6(Array.isArray(A)?A.join(","):A)}function A4K(A){return new DC(XR6(A))}pKA.stringify=A4K;function XR6(A){return JSON.stringify(A).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}pKA.safeStringify=XR6;function q4K(A){return typeof A=="string"&&pKA.IDENTIFIER.test(A)?new DC(`.${A}`):BKA`[${A}]`}pKA.getProperty=q4K;function K4K(A){if(typeof A=="string"&&pKA.IDENTIFIER.test(A))return new DC(`${A}`);throw Error(`CodeGen: invalid export name: ${A}, use explicit $id name mapping`)}pKA.getEsmExportName=K4K;function Y4K(A){return new DC(A.toString())}pKA.regexpCode=Y4K});var NU1=h((dKA)=>{Object.defineProperty(dKA,"__esModule",{value:!0});dKA.ValueScope=dKA.ValueScopeName=dKA.Scope=dKA.varKinds=dKA.UsedValueState=void 0;var wv=PR6();class QKA extends Error{constructor(A){super(`CodeGen: "code" for ${A} not defined`);this.value=A.value}}var e11;(function(A){A[A.Started=0]="Started",A[A.Completed=1]="Completed"})(e11||(dKA.UsedValueState=e11={}));dKA.varKinds={const:new wv.Name("const"),let:new wv.Name("let"),var:new wv.Name("var")};class vU1{constructor({prefixes:A,parent:q}={}){this._names={},this._prefixes=A,this._parent=q}toName(A){return A instanceof wv.Name?A:this.name(A)}name(A){return new wv.Name(this._newName(A))}_newName(A){let q=this._names[A]||this._nameGroup(A);return`${A}${q.index++}`}_nameGroup(A){var q,K;if(((K=(q=this._parent)===null||q===void 0?void 0:q._prefixes)===null||K===void 0?void 0:K.has(A))||this._prefixes&&!this._prefixes.has(A))throw Error(`CodeGen: prefix "${A}" is not allowed in this scope`);return this._names[A]={prefix:A,index:0}}}dKA.Scope=vU1;class VU1 extends wv.Name{constructor(A,q){super(q);this.prefix=A}setValue(A,{property:q,itemIndex:K}){this.value=A,this.scopePath=wv._`.${new wv.Name(q)}[${K}]`}}dKA.ValueScopeName=VU1;var W4K=wv._`\n`;class UKA extends vU1{constructor(A){super(A);this._values={},this._scope=A.scope,this.opts={...A,_n:A.lines?W4K:wv.nil}}get(){return this._scope}name(A){return new VU1(A,this._newName(A))}value(A,q){var K;if(q.ref===void 0)throw Error("CodeGen: ref must be passed in value");let Y=this.toName(A),{prefix:z}=Y,w=(K=q.key)!==null&&K!==void 0?K:q.ref,_=this._values[z];if(_){let H=_.get(w);if(H)return H}else _=this._values[z]=new Map;_.set(w,Y);let $=this._scope[z]||(this._scope[z]=[]),O=$.length;return $[O]=q.ref,Y.setValue(q,{property:z,itemIndex:O}),Y}getValue(A,q){let K=this._values[A];if(!K)return;return K.get(q)}scopeRefs(A,q=this._values){return this._reduceValues(q,(K)=>{if(K.scopePath===void 0)throw Error(`CodeGen: name "${K}" has no value`);return wv._`${A}${K.scopePath}`})}scopeCode(A=this._values,q,K){return this._reduceValues(A,(Y)=>{if(Y.value===void 0)throw Error(`CodeGen: name "${Y}" has no value`);return Y.value.code},q,K)}_reduceValues(A,q,K={},Y){let z=wv.nil;for(let w in A){let _=A[w];if(!_)continue;let $=K[w]=K[w]||new Map;_.forEach((O)=>{if($.has(O))return;$.set(O,e11.Started);let H=q(O);if(H){let j=this.opts.es5?dKA.varKinds.var:dKA.varKinds.const;z=wv._`${z}${j} ${O} = ${H};${this.opts._n}`}else if(H=Y===null||Y===void 0?void 0:Y(O))z=wv._`${z}${H}${this.opts._n}`;else throw new QKA(O);$.set(O,e11.Completed)})}return z}}dKA.ValueScope=UKA});var n5=h((_v)=>{Object.defineProperty(_v,"__esModule",{value:!0});_v.or=_v.and=_v.not=_v.CodeGen=_v.operators=_v.varKinds=_v.ValueScopeName=_v.ValueScope=_v.Scope=_v.Name=_v.regexpCode=_v.stringify=_v.getProperty=_v.nil=_v.strConcat=_v.str=_v._=void 0;var VY=PR6(),XC=NU1(),yo=PR6();Object.defineProperty(_v,"_",{enumerable:!0,get:function(){return yo._}});Object.defineProperty(_v,"str",{enumerable:!0,get:function(){return yo.str}});Object.defineProperty(_v,"strConcat",{enumerable:!0,get:function(){return yo.strConcat}});Object.defineProperty(_v,"nil",{enumerable:!0,get:function(){return yo.nil}});Object.defineProperty(_v,"getProperty",{enumerable:!0,get:function(){return yo.getProperty}});Object.defineProperty(_v,"stringify",{enumerable:!0,get:function(){return yo.stringify}});Object.defineProperty(_v,"regexpCode",{enumerable:!0,get:function(){return yo.regexpCode}});Object.defineProperty(_v,"Name",{enumerable:!0,get:function(){return yo.Name}});var w81=NU1();Object.defineProperty(_v,"Scope",{enumerable:!0,get:function(){return w81.Scope}});Object.defineProperty(_v,"ValueScope",{enumerable:!0,get:function(){return w81.ValueScope}});Object.defineProperty(_v,"ValueScopeName",{enumerable:!0,get:function(){return w81.ValueScopeName}});Object.defineProperty(_v,"varKinds",{enumerable:!0,get:function(){return w81.varKinds}});_v.operators={GT:new VY._Code(">"),GTE:new VY._Code(">="),LT:new VY._Code("<"),LTE:new VY._Code("<="),EQ:new VY._Code("==="),NEQ:new VY._Code("!=="),NOT:new VY._Code("!"),OR:new VY._Code("||"),AND:new VY._Code("&&"),ADD:new VY._Code("+")};class Ro{optimizeNodes(){return this}optimizeNames(A,q){return this}}class lKA extends Ro{constructor(A,q,K){super();this.varKind=A,this.name=q,this.rhs=K}render({es5:A,_n:q}){let K=A?XC.varKinds.var:this.varKind,Y=this.rhs===void 0?"":` = ${this.rhs}`;return`${K} ${this.name}${Y};`+q}optimizeNames(A,q){if(!A[this.name.str])return;if(this.rhs)this.rhs=MH6(this.rhs,A,q);return this}get names(){return this.rhs instanceof VY._CodeOrName?this.rhs.names:{}}}class LU1 extends Ro{constructor(A,q,K){super();this.lhs=A,this.rhs=q,this.sideEffects=K}render({_n:A}){return`${this.lhs} = ${this.rhs};`+A}optimizeNames(A,q){if(this.lhs instanceof VY.Name&&!A[this.lhs.str]&&!this.sideEffects)return;return this.rhs=MH6(this.rhs,A,q),this}get names(){let A=this.lhs instanceof VY.Name?{}:{...this.lhs.names};return z81(A,this.rhs)}}class iKA extends LU1{constructor(A,q,K,Y){super(A,K,Y);this.op=q}render({_n:A}){return`${this.lhs} ${this.op}= ${this.rhs};`+A}}class nKA extends Ro{constructor(A){super();this.label=A,this.names={}}render({_n:A}){return`${this.label}:`+A}}class rKA extends Ro{constructor(A){super();this.label=A,this.names={}}render({_n:A}){return`break${this.label?` ${this.label}`:""};`+A}}class oKA extends Ro{constructor(A){super();this.error=A}render({_n:A}){return`throw ${this.error};`+A}get names(){return this.error.names}}class aKA extends Ro{constructor(A){super();this.code=A}render({_n:A}){return`${this.code};`+A}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(A,q){return this.code=MH6(this.code,A,q),this}get names(){return this.code instanceof VY._CodeOrName?this.code.names:{}}}class _81 extends Ro{constructor(A=[]){super();this.nodes=A}render(A){return this.nodes.reduce((q,K)=>q+K.render(A),"")}optimizeNodes(){let{nodes:A}=this,q=A.length;while(q--){let K=A[q].optimizeNodes();if(Array.isArray(K))A.splice(q,1,...K);else if(K)A[q]=K;else A.splice(q,1)}return A.length>0?this:void 0}optimizeNames(A,q){let{nodes:K}=this,Y=K.length;while(Y--){let z=K[Y];if(z.optimizeNames(A,q))continue;T4K(A,z.names),K.splice(Y,1)}return K.length>0?this:void 0}get names(){return this.nodes.reduce((A,q)=>J46(A,q.names),{})}}class So extends _81{render(A){return"{"+A._n+super.render(A)+"}"+A._n}}class sKA extends _81{}class WR6 extends So{}WR6.kind="else";class $U extends So{constructor(A,q){super(q);this.condition=A}render(A){let q=`if(${this.condition})`+super.render(A);if(this.else)q+="else "+this.else.render(A);return q}optimizeNodes(){super.optimizeNodes();let A=this.condition;if(A===!0)return this.nodes;let q=this.else;if(q){let K=q.optimizeNodes();q=this.else=Array.isArray(K)?new WR6(K):K}if(q){if(A===!1)return q instanceof $U?q:q.nodes;if(this.nodes.length)return this;return new $U(K3A(A),q instanceof $U?[q]:q.nodes)}if(A===!1||!this.nodes.length)return;return this}optimizeNames(A,q){var K;if(this.else=(K=this.else)===null||K===void 0?void 0:K.optimizeNames(A,q),!(super.optimizeNames(A,q)||this.else))return;return this.condition=MH6(this.condition,A,q),this}get names(){let A=super.names;if(z81(A,this.condition),this.else)J46(A,this.else.names);return A}}$U.kind="if";class JH6 extends So{}JH6.kind="for";class tKA extends JH6{constructor(A){super();this.iteration=A}render(A){return`for(${this.iteration})`+super.render(A)}optimizeNames(A,q){if(!super.optimizeNames(A,q))return;return this.iteration=MH6(this.iteration,A,q),this}get names(){return J46(super.names,this.iteration.names)}}class eKA extends JH6{constructor(A,q,K,Y){super();this.varKind=A,this.name=q,this.from=K,this.to=Y}render(A){let q=A.es5?XC.varKinds.var:this.varKind,{name:K,from:Y,to:z}=this;return`for(${q} ${K}=${Y}; ${K}<${z}; ${K}++)`+super.render(A)}get names(){let A=z81(super.names,this.from);return z81(A,this.to)}}class kU1 extends JH6{constructor(A,q,K,Y){super();this.loop=A,this.varKind=q,this.name=K,this.iterable=Y}render(A){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(A)}optimizeNames(A,q){if(!super.optimizeNames(A,q))return;return this.iterable=MH6(this.iterable,A,q),this}get names(){return J46(super.names,this.iterable.names)}}class A81 extends So{constructor(A,q,K){super();this.name=A,this.args=q,this.async=K}render(A){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(A)}}A81.kind="func";class q81 extends _81{render(A){return"return "+super.render(A)}}q81.kind="return";class A3A extends So{render(A){let q="try"+super.render(A);if(this.catch)q+=this.catch.render(A);if(this.finally)q+=this.finally.render(A);return q}optimizeNodes(){var A,q;return super.optimizeNodes(),(A=this.catch)===null||A===void 0||A.optimizeNodes(),(q=this.finally)===null||q===void 0||q.optimizeNodes(),this}optimizeNames(A,q){var K,Y;return super.optimizeNames(A,q),(K=this.catch)===null||K===void 0||K.optimizeNames(A,q),(Y=this.finally)===null||Y===void 0||Y.optimizeNames(A,q),this}get names(){let A=super.names;if(this.catch)J46(A,this.catch.names);if(this.finally)J46(A,this.finally.names);return A}}class K81 extends So{constructor(A){super();this.error=A}render(A){return`catch(${this.error})`+super.render(A)}}K81.kind="catch";class Y81 extends So{render(A){return"finally"+super.render(A)}}Y81.kind="finally";class q3A{constructor(A,q={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...q,_n:q.lines?`
`:""},this._extScope=A,this._scope=new XC.Scope({parent:A}),this._nodes=[new sKA]}toString(){return this._root.render(this.opts)}name(A){return this._scope.name(A)}scopeName(A){return this._extScope.name(A)}scopeValue(A,q){let K=this._extScope.value(A,q);return(this._values[K.prefix]||(this._values[K.prefix]=new Set)).add(K),K}getScopeValue(A,q){return this._extScope.getValue(A,q)}scopeRefs(A){return this._extScope.scopeRefs(A,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(A,q,K,Y){let z=this._scope.toName(q);if(K!==void 0&&Y)this._constants[z.str]=K;return this._leafNode(new lKA(A,z,K)),z}const(A,q,K){return this._def(XC.varKinds.const,A,q,K)}let(A,q,K){return this._def(XC.varKinds.let,A,q,K)}var(A,q,K){return this._def(XC.varKinds.var,A,q,K)}assign(A,q,K){return this._leafNode(new LU1(A,q,K))}add(A,q){return this._leafNode(new iKA(A,_v.operators.ADD,q))}code(A){if(typeof A=="function")A();else if(A!==VY.nil)this._leafNode(new aKA(A));return this}object(...A){let q=["{"];for(let[K,Y]of A){if(q.length>1)q.push(",");if(q.push(K),K!==Y||this.opts.es5)q.push(":"),(0,VY.addCodeArg)(q,Y)}return q.push("}"),new VY._Code(q)}if(A,q,K){if(this._blockNode(new $U(A)),q&&K)this.code(q).else().code(K).endIf();else if(q)this.code(q).endIf();else if(K)throw Error('CodeGen: "else" body without "then" body');return this}elseIf(A){return this._elseNode(new $U(A))}else(){return this._elseNode(new WR6)}endIf(){return this._endBlockNode($U,WR6)}_for(A,q){if(this._blockNode(A),q)this.code(q).endFor();return this}for(A,q){return this._for(new tKA(A),q)}forRange(A,q,K,Y,z=this.opts.es5?XC.varKinds.var:XC.varKinds.let){let w=this._scope.toName(A);return this._for(new eKA(z,w,q,K),()=>Y(w))}forOf(A,q,K,Y=XC.varKinds.const){let z=this._scope.toName(A);if(this.opts.es5){let w=q instanceof VY.Name?q:this.var("_arr",q);return this.forRange("_i",0,VY._`${w}.length`,(_)=>{this.var(z,VY._`${w}[${_}]`),K(z)})}return this._for(new kU1("of",Y,z,q),()=>K(z))}forIn(A,q,K,Y=this.opts.es5?XC.varKinds.var:XC.varKinds.const){if(this.opts.ownProperties)return this.forOf(A,VY._`Object.keys(${q})`,K);let z=this._scope.toName(A);return this._for(new kU1("in",Y,z,q),()=>K(z))}endFor(){return this._endBlockNode(JH6)}label(A){return this._leafNode(new nKA(A))}break(A){return this._leafNode(new rKA(A))}return(A){let q=new q81;if(this._blockNode(q),this.code(A),q.nodes.length!==1)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(q81)}try(A,q,K){if(!q&&!K)throw Error('CodeGen: "try" without "catch" and "finally"');let Y=new A3A;if(this._blockNode(Y),this.code(A),q){let z=this.name("e");this._currNode=Y.catch=new K81(z),q(z)}if(K)this._currNode=Y.finally=new Y81,this.code(K);return this._endBlockNode(K81,Y81)}throw(A){return this._leafNode(new oKA(A))}block(A,q){if(this._blockStarts.push(this._nodes.length),A)this.code(A).endBlock(q);return this}endBlock(A){let q=this._blockStarts.pop();if(q===void 0)throw Error("CodeGen: not in self-balancing block");let K=this._nodes.length-q;if(K<0||A!==void 0&&K!==A)throw Error(`CodeGen: wrong number of nodes: ${K} vs ${A} expected`);return this._nodes.length=q,this}func(A,q=VY.nil,K,Y){if(this._blockNode(new A81(A,q,K)),Y)this.code(Y).endFunc();return this}endFunc(){return this._endBlockNode(A81)}optimize(A=1){while(A-- >0)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(A){return this._currNode.nodes.push(A),this}_blockNode(A){this._currNode.nodes.push(A),this._nodes.push(A)}_endBlockNode(A,q){let K=this._currNode;if(K instanceof A||q&&K instanceof q)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${q?`${A.kind}/${q.kind}`:A.kind}"`)}_elseNode(A){let q=this._currNode;if(!(q instanceof $U))throw Error('CodeGen: "else" without "if"');return this._currNode=q.else=A,this}get _root(){return this._nodes[0]}get _currNode(){let A=this._nodes;return A[A.length-1]}set _currNode(A){let q=this._nodes;q[q.length-1]=A}}_v.CodeGen=q3A;function J46(A,q){for(let K in q)A[K]=(A[K]||0)+(q[K]||0);return A}function z81(A,q){return q instanceof VY._CodeOrName?J46(A,q.names):A}function MH6(A,q,K){if(A instanceof VY.Name)return Y(A);if(!z(A))return A;return new VY._Code(A._items.reduce((w,_)=>{if(_ instanceof VY.Name)_=Y(_);if(_ instanceof VY._Code)w.push(..._._items);else w.push(_);return w},[]));function Y(w){let _=K[w.str];if(_===void 0||q[w.str]!==1)return w;return delete q[w.str],_}function z(w){return w instanceof VY._Code&&w._items.some((_)=>_ instanceof VY.Name&&q[_.str]===1&&K[_.str]!==void 0)}}function T4K(A,q){for(let K in q)A[K]=(A[K]||0)-(q[K]||0)}function K3A(A){return typeof A=="boolean"||typeof A=="number"||A===null?!A:VY._`!${EU1(A)}`}_v.not=K3A;var v4K=Y3A(_v.operators.AND);function V4K(...A){return A.reduce(v4K)}_v.and=V4K;var N4K=Y3A(_v.operators.OR);function k4K(...A){return A.reduce(N4K)}_v.or=k4K;function Y3A(A){return(q,K)=>q===VY.nil?K:K===VY.nil?q:VY._`${EU1(q)} ${A} ${EU1(K)}`}function EU1(A){return A instanceof VY.Name?A:VY._`(${A})`}});var Dz=h((M3A)=>{Object.defineProperty(M3A,"__esModule",{value:!0});M3A.checkStrictMode=M3A.getErrorPath=M3A.Type=M3A.useFunc=M3A.setEvaluated=M3A.evaluatedPropsToName=M3A.mergeEvaluated=M3A.eachItem=M3A.unescapeJsonPointer=M3A.escapeJsonPointer=M3A.escapeFragment=M3A.unescapeFragment=M3A.schemaRefOrVal=M3A.schemaHasRulesButRef=M3A.schemaHasRules=M3A.checkUnknownRules=M3A.alwaysValidSchema=M3A.toHash=void 0;var K_=n5(),R4K=PR6();function S4K(A){let q={};for(let K of A)q[K]=!0;return q}M3A.toHash=S4K;function h4K(A,q){if(typeof q=="boolean")return q;if(Object.keys(q).length===0)return!0;return $3A(A,q),!O3A(q,A.self.RULES.all)}M3A.alwaysValidSchema=h4K;function $3A(A,q=A.schema){let{opts:K,self:Y}=A;if(!K.strictSchema)return;if(typeof q==="boolean")return;let z=Y.RULES.keywords;for(let w in q)if(!z[w])J3A(A,`unknown keyword: "${w}"`)}M3A.checkUnknownRules=$3A;function O3A(A,q){if(typeof A=="boolean")return!A;for(let K in A)if(q[K])return!0;return!1}M3A.schemaHasRules=O3A;function C4K(A,q){if(typeof A=="boolean")return!A;for(let K in A)if(K!=="$ref"&&q.all[K])return!0;return!1}M3A.schemaHasRulesButRef=C4K;function I4K({topSchemaRef:A,schemaPath:q},K,Y,z){if(!z){if(typeof K=="number"||typeof K=="boolean")return K;if(typeof K=="string")return K_._`${K}`}return K_._`${A}${q}${(0,K_.getProperty)(Y)}`}M3A.schemaRefOrVal=I4K;function x4K(A){return H3A(decodeURIComponent(A))}M3A.unescapeFragment=x4K;function b4K(A){return encodeURIComponent(RU1(A))}M3A.escapeFragment=b4K;function RU1(A){if(typeof A=="number")return`${A}`;return A.replace(/~/g,"~0").replace(/\//g,"~1")}M3A.escapeJsonPointer=RU1;function H3A(A){return A.replace(/~1/g,"/").replace(/~0/g,"~")}M3A.unescapeJsonPointer=H3A;function u4K(A,q){if(Array.isArray(A))for(let K of A)q(K);else q(A)}M3A.eachItem=u4K;function w3A({mergeNames:A,mergeToName:q,mergeValues:K,resultToName:Y}){return(z,w,_,$)=>{let O=_===void 0?w:_ instanceof K_.Name?(w instanceof K_.Name?A(z,w,_):q(z,w,_),_):w instanceof K_.Name?(q(z,_,w),w):K(w,_);return $===K_.Name&&!(O instanceof K_.Name)?Y(z,O):O}}M3A.mergeEvaluated={props:w3A({mergeNames:(A,q,K)=>A.if(K_._`${K} !== true && ${q} !== undefined`,()=>{A.if(K_._`${q} === true`,()=>A.assign(K,!0),()=>A.assign(K,K_._`${K} || {}`).code(K_._`Object.assign(${K}, ${q})`))}),mergeToName:(A,q,K)=>A.if(K_._`${K} !== true`,()=>{if(q===!0)A.assign(K,!0);else A.assign(K,K_._`${K} || {}`),SU1(A,K,q)}),mergeValues:(A,q)=>A===!0?!0:{...A,...q},resultToName:j3A}),items:w3A({mergeNames:(A,q,K)=>A.if(K_._`${K} !== true && ${q} !== undefined`,()=>A.assign(K,K_._`${q} === true ? true : ${K} > ${q} ? ${K} : ${q}`)),mergeToName:(A,q,K)=>A.if(K_._`${K} !== true`,()=>A.assign(K,q===!0?!0:K_._`${K} > ${q} ? ${K} : ${q}`)),mergeValues:(A,q)=>A===!0?!0:Math.max(A,q),resultToName:(A,q)=>A.var("items",q)})};function j3A(A,q){if(q===!0)return A.var("props",!0);let K=A.var("props",K_._`{}`);if(q!==void 0)SU1(A,K,q);return K}M3A.evaluatedPropsToName=j3A;function SU1(A,q,K){Object.keys(K).forEach((Y)=>A.assign(K_._`${q}${(0,K_.getProperty)(Y)}`,!0))}M3A.setEvaluated=SU1;var _3A={};function m4K(A,q){return A.scopeValue("func",{ref:q,code:_3A[q.code]||(_3A[q.code]=new R4K._Code(q.code))})}M3A.useFunc=m4K;var yU1;(function(A){A[A.Num=0]="Num",A[A.Str=1]="Str"})(yU1||(M3A.Type=yU1={}));function B4K(A,q,K){if(A instanceof K_.Name){let Y=q===yU1.Num;return K?Y?K_._`"[" + ${A} + "]"`:K_._`"['" + ${A} + "']"`:Y?K_._`"/" + ${A}`:K_._`"/" + ${A}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return K?(0,K_.getProperty)(A).toString():"/"+RU1(A)}M3A.getErrorPath=B4K;function J3A(A,q,K=A.opts.strictSchema){if(!K)return;if(q=`strict mode: ${q}`,K===!0)throw Error(q);A.self.logger.warn(q)}M3A.checkStrictMode=J3A});var OU=h((X3A)=>{Object.defineProperty(X3A,"__esModule",{value:!0});var zG=n5(),qqK={data:new zG.Name("data"),valCxt:new zG.Name("valCxt"),instancePath:new zG.Name("instancePath"),parentData:new zG.Name("parentData"),parentDataProperty:new zG.Name("parentDataProperty"),rootData:new zG.Name("rootData"),dynamicAnchors:new zG.Name("dynamicAnchors"),vErrors:new zG.Name("vErrors"),errors:new zG.Name("errors"),this:new zG.Name("this"),self:new zG.Name("self"),scope:new zG.Name("scope"),json:new zG.Name("json"),jsonPos:new zG.Name("jsonPos"),jsonLen:new zG.Name("jsonLen"),jsonPart:new zG.Name("jsonPart")};X3A.default=qqK});var GR6=h((Z3A)=>{Object.defineProperty(Z3A,"__esModule",{value:!0});Z3A.extendErrors=Z3A.resetErrorsCount=Z3A.reportExtraError=Z3A.reportError=Z3A.keyword$DataError=Z3A.keywordError=void 0;var dY=n5(),O81=Dz(),aZ=OU();Z3A.keywordError={message:({keyword:A})=>dY.str`must pass "${A}" keyword validation`};Z3A.keyword$DataError={message:({keyword:A,schemaType:q})=>q?dY.str`"${A}" keyword must be ${q} ($data)`:dY.str`"${A}" keyword is invalid ($data)`};function YqK(A,q=Z3A.keywordError,K,Y){let{it:z}=A,{gen:w,compositeRule:_,allErrors:$}=z,O=G3A(A,q,K);if(Y!==null&&Y!==void 0?Y:_||$)P3A(w,O);else W3A(z,dY._`[${O}]`)}Z3A.reportError=YqK;function zqK(A,q=Z3A.keywordError,K){let{it:Y}=A,{gen:z,compositeRule:w,allErrors:_}=Y,$=G3A(A,q,K);if(P3A(z,$),!(w||_))W3A(Y,aZ.default.vErrors)}Z3A.reportExtraError=zqK;function wqK(A,q){A.assign(aZ.default.errors,q),A.if(dY._`${aZ.default.vErrors} !== null`,()=>A.if(q,()=>A.assign(dY._`${aZ.default.vErrors}.length`,q),()=>A.assign(aZ.default.vErrors,null)))}Z3A.resetErrorsCount=wqK;function _qK({gen:A,keyword:q,schemaValue:K,data:Y,errsCount:z,it:w}){if(z===void 0)throw Error("ajv implementation error");let _=A.name("err");A.forRange("i",z,aZ.default.errors,($)=>{if(A.const(_,dY._`${aZ.default.vErrors}[${$}]`),A.if(dY._`${_}.instancePath === undefined`,()=>A.assign(dY._`${_}.instancePath`,(0,dY.strConcat)(aZ.default.instancePath,w.errorPath))),A.assign(dY._`${_}.schemaPath`,dY.str`${w.errSchemaPath}/${q}`),w.opts.verbose)A.assign(dY._`${_}.schema`,K),A.assign(dY._`${_}.data`,Y)})}Z3A.extendErrors=_qK;function P3A(A,q){let K=A.const("err",q);A.if(dY._`${aZ.default.vErrors} === null`,()=>A.assign(aZ.default.vErrors,dY._`[${K}]`),dY._`${aZ.default.vErrors}.push(${K})`),A.code(dY._`${aZ.default.errors}++`)}function W3A(A,q){let{gen:K,validateName:Y,schemaEnv:z}=A;if(z.$async)K.throw(dY._`new ${A.ValidationError}(${q})`);else K.assign(dY._`${Y}.errors`,q),K.return(!1)}var M46={keyword:new dY.Name("keyword"),schemaPath:new dY.Name("schemaPath"),params:new dY.Name("params"),propertyName:new dY.Name("propertyName"),message:new dY.Name("message"),schema:new dY.Name("schema"),parentSchema:new dY.Name("parentSchema")};function G3A(A,q,K){let{createErrors:Y}=A.it;if(Y===!1)return dY._`{}`;return $qK(A,q,K)}function $qK(A,q,K={}){let{gen:Y,it:z}=A,w=[OqK(z,K),HqK(A,K)];return jqK(A,q,w),Y.object(...w)}function OqK({errorPath:A},{instancePath:q}){let K=q?dY.str`${A}${(0,O81.getErrorPath)(q,O81.Type.Str)}`:A;return[aZ.default.instancePath,(0,dY.strConcat)(aZ.default.instancePath,K)]}function HqK({keyword:A,it:{errSchemaPath:q}},{schemaPath:K,parentSchema:Y}){let z=Y?q:dY.str`${q}/${A}`;if(K)z=dY.str`${z}${(0,O81.getErrorPath)(K,O81.Type.Str)}`;return[M46.schemaPath,z]}function jqK(A,{params:q,message:K},Y){let{keyword:z,data:w,schemaValue:_,it:$}=A,{opts:O,propertyName:H,topSchemaRef:j,schemaPath:J}=$;if(Y.push([M46.keyword,z],[M46.params,typeof q=="function"?q(A):q||dY._`{}`]),O.messages)Y.push([M46.message,typeof K=="function"?K(A):K]);if(O.verbose)Y.push([M46.schema,_],[M46.parentSchema,dY._`${j}${J}`],[aZ.default.data,w]);if(H)Y.push([M46.propertyName,H])}});var N3A=h((v3A)=>{Object.defineProperty(v3A,"__esModule",{value:!0});v3A.boolOrEmptySchema=v3A.topBoolOrEmptySchema=void 0;var PqK=GR6(),WqK=n5(),GqK=OU(),ZqK={message:"boolean schema is false"};function fqK(A){let{gen:q,schema:K,validateName:Y}=A;if(K===!1)T3A(A,!1);else if(typeof K=="object"&&K.$async===!0)q.return(GqK.default.data);else q.assign(WqK._`${Y}.errors`,null),q.return(!0)}v3A.topBoolOrEmptySchema=fqK;function TqK(A,q){let{gen:K,schema:Y}=A;if(Y===!1)K.var(q,!1),T3A(A);else K.var(q,!0)}v3A.boolOrEmptySchema=TqK;function T3A(A,q){let{gen:K,data:Y}=A,z={gen:K,keyword:"false schema",data:Y,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:A};(0,PqK.reportError)(z,ZqK,void 0,q)}});var CU1=h((k3A)=>{Object.defineProperty(k3A,"__esModule",{value:!0});k3A.getRules=k3A.isJSONType=void 0;var VqK=["string","number","integer","boolean","null","object","array"],NqK=new Set(VqK);function kqK(A){return typeof A=="string"&&NqK.has(A)}k3A.isJSONType=kqK;function EqK(){let A={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...A,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},A.number,A.string,A.array,A.object],post:{rules:[]},all:{},keywords:{}}}k3A.getRules=EqK});var IU1=h((R3A)=>{Object.defineProperty(R3A,"__esModule",{value:!0});R3A.shouldUseRule=R3A.shouldUseGroup=R3A.schemaHasRulesForType=void 0;function yqK({schema:A,self:q},K){let Y=q.RULES.types[K];return Y&&Y!==!0&&L3A(A,Y)}R3A.schemaHasRulesForType=yqK;function L3A(A,q){return q.rules.some((K)=>y3A(A,K))}R3A.shouldUseGroup=L3A;function y3A(A,q){var K;return A[q.keyword]!==void 0||((K=q.definition.implements)===null||K===void 0?void 0:K.some((Y)=>A[Y]!==void 0))}R3A.shouldUseRule=y3A});var ZR6=h((x3A)=>{Object.defineProperty(x3A,"__esModule",{value:!0});x3A.reportTypeError=x3A.checkDataTypes=x3A.checkDataType=x3A.coerceAndCheckDataType=x3A.getJSONTypes=x3A.getSchemaTypes=x3A.DataType=void 0;var hqK=CU1(),CqK=IU1(),IqK=GR6(),x5=n5(),h3A=Dz(),DH6;(function(A){A[A.Correct=0]="Correct",A[A.Wrong=1]="Wrong"})(DH6||(x3A.DataType=DH6={}));function xqK(A){let q=C3A(A.type);if(q.includes("null")){if(A.nullable===!1)throw Error("type: null contradicts nullable: false")}else{if(!q.length&&A.nullable!==void 0)throw Error('"nullable" cannot be used without "type"');if(A.nullable===!0)q.push("null")}return q}x3A.getSchemaTypes=xqK;function C3A(A){let q=Array.isArray(A)?A:A?[A]:[];if(q.every(hqK.isJSONType))return q;throw Error("type must be JSONType or JSONType[]: "+q.join(","))}x3A.getJSONTypes=C3A;function bqK(A,q){let{gen:K,data:Y,opts:z}=A,w=uqK(q,z.coerceTypes),_=q.length>0&&!(w.length===0&&q.length===1&&(0,CqK.schemaHasRulesForType)(A,q[0]));if(_){let $=bU1(q,Y,z.strictNumbers,DH6.Wrong);K.if($,()=>{if(w.length)mqK(A,q,w);else uU1(A)})}return _}x3A.coerceAndCheckDataType=bqK;var I3A=new Set(["string","number","integer","boolean","null"]);function uqK(A,q){return q?A.filter((K)=>I3A.has(K)||q==="array"&&K==="array"):[]}function mqK(A,q,K){let{gen:Y,data:z,opts:w}=A,_=Y.let("dataType",x5._`typeof ${z}`),$=Y.let("coerced",x5._`undefined`);if(w.coerceTypes==="array")Y.if(x5._`${_} == 'object' && Array.isArray(${z}) && ${z}.length == 1`,()=>Y.assign(z,x5._`${z}[0]`).assign(_,x5._`typeof ${z}`).if(bU1(q,z,w.strictNumbers),()=>Y.assign($,z)));Y.if(x5._`${$} !== undefined`);for(let H of K)if(I3A.has(H)||H==="array"&&w.coerceTypes==="array")O(H);Y.else(),uU1(A),Y.endIf(),Y.if(x5._`${$} !== undefined`,()=>{Y.assign(z,$),BqK(A,$)});function O(H){switch(H){case"string":Y.elseIf(x5._`${_} == "number" || ${_} == "boolean"`).assign($,x5._`"" + ${z}`).elseIf(x5._`${z} === null`).assign($,x5._`""`);return;case"number":Y.elseIf(x5._`${_} == "boolean" || ${z} === null
              || (${_} == "string" && ${z} && ${z} == +${z})`).assign($,x5._`+${z}`);return;case"integer":Y.elseIf(x5._`${_} === "boolean" || ${z} === null
              || (${_} === "string" && ${z} && ${z} == +${z} && !(${z} % 1))`).assign($,x5._`+${z}`);return;case"boolean":Y.elseIf(x5._`${z} === "false" || ${z} === 0 || ${z} === null`).assign($,!1).elseIf(x5._`${z} === "true" || ${z} === 1`).assign($,!0);return;case"null":Y.elseIf(x5._`${z} === "" || ${z} === 0 || ${z} === false`),Y.assign($,null);return;case"array":Y.elseIf(x5._`${_} === "string" || ${_} === "number"
              || ${_} === "boolean" || ${z} === null`).assign($,x5._`[${z}]`)}}}function BqK({gen:A,parentData:q,parentDataProperty:K},Y){A.if(x5._`${q} !== undefined`,()=>A.assign(x5._`${q}[${K}]`,Y))}function xU1(A,q,K,Y=DH6.Correct){let z=Y===DH6.Correct?x5.operators.EQ:x5.operators.NEQ,w;switch(A){case"null":return x5._`${q} ${z} null`;case"array":w=x5._`Array.isArray(${q})`;break;case"object":w=x5._`${q} && typeof ${q} == "object" && !Array.isArray(${q})`;break;case"integer":w=_(x5._`!(${q} % 1) && !isNaN(${q})`);break;case"number":w=_();break;default:return x5._`typeof ${q} ${z} ${A}`}return Y===DH6.Correct?w:(0,x5.not)(w);function _($=x5.nil){return(0,x5.and)(x5._`typeof ${q} == "number"`,$,K?x5._`isFinite(${q})`:x5.nil)}}x3A.checkDataType=xU1;function bU1(A,q,K,Y){if(A.length===1)return xU1(A[0],q,K,Y);let z,w=(0,h3A.toHash)(A);if(w.array&&w.object){let _=x5._`typeof ${q} != "object"`;z=w.null?_:x5._`!${q} || ${_}`,delete w.null,delete w.array,delete w.object}else z=x5.nil;if(w.number)delete w.integer;for(let _ in w)z=(0,x5.and)(z,xU1(_,q,K,Y));return z}x3A.checkDataTypes=bU1;var gqK={message:({schema:A})=>`must be ${A}`,params:({schema:A,schemaValue:q})=>typeof A=="string"?x5._`{type: ${A}}`:x5._`{type: ${q}}`};function uU1(A){let q=pqK(A);(0,IqK.reportError)(q,gqK)}x3A.reportTypeError=uU1;function pqK(A){let{gen:q,data:K,schema:Y}=A,z=(0,h3A.schemaRefOrVal)(A,Y,"type");return{gen:q,keyword:"type",data:K,schema:Y.type,schemaCode:z,schemaValue:z,parentSchema:Y,params:{},it:A}}});var g3A=h((m3A)=>{Object.defineProperty(m3A,"__esModule",{value:!0});m3A.assignDefaults=void 0;var XH6=n5(),iqK=Dz();function nqK(A,q){let{properties:K,items:Y}=A.schema;if(q==="object"&&K)for(let z in K)u3A(A,z,K[z].default);else if(q==="array"&&Array.isArray(Y))Y.forEach((z,w)=>u3A(A,w,z.default))}m3A.assignDefaults=nqK;function u3A(A,q,K){let{gen:Y,compositeRule:z,data:w,opts:_}=A;if(K===void 0)return;let $=XH6._`${w}${(0,XH6.getProperty)(q)}`;if(z){(0,iqK.checkStrictMode)(A,`default is ignored for: ${$}`);return}let O=XH6._`${$} === undefined`;if(_.useDefaults==="empty")O=XH6._`${O} || ${$} === null || ${$} === ""`;Y.if(O,XH6._`${$} = ${(0,XH6.stringify)(K)}`)}});var oL=h((Q3A)=>{Object.defineProperty(Q3A,"__esModule",{value:!0});Q3A.validateUnion=Q3A.validateArray=Q3A.usePattern=Q3A.callValidateCode=Q3A.schemaProperties=Q3A.allSchemaProperties=Q3A.noPropertyInData=Q3A.propertyInData=Q3A.isOwnProperty=Q3A.hasPropFunc=Q3A.reportMissingProp=Q3A.checkMissingProp=Q3A.checkReportMissingProp=void 0;var B$=n5(),mU1=Dz(),ho=OU(),rqK=Dz();function oqK(A,q){let{gen:K,data:Y,it:z}=A;K.if(gU1(K,Y,q,z.opts.ownProperties),()=>{A.setParams({missingProperty:B$._`${q}`},!0),A.error()})}Q3A.checkReportMissingProp=oqK;function aqK({gen:A,data:q,it:{opts:K}},Y,z){return(0,B$.or)(...Y.map((w)=>(0,B$.and)(gU1(A,q,w,K.ownProperties),B$._`${z} = ${w}`)))}Q3A.checkMissingProp=aqK;function sqK(A,q){A.setParams({missingProperty:q},!0),A.error()}Q3A.reportMissingProp=sqK;function p3A(A){return A.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:B$._`Object.prototype.hasOwnProperty`})}Q3A.hasPropFunc=p3A;function BU1(A,q,K){return B$._`${p3A(A)}.call(${q}, ${K})`}Q3A.isOwnProperty=BU1;function tqK(A,q,K,Y){let z=B$._`${q}${(0,B$.getProperty)(K)} !== undefined`;return Y?B$._`${z} && ${BU1(A,q,K)}`:z}Q3A.propertyInData=tqK;function gU1(A,q,K,Y){let z=B$._`${q}${(0,B$.getProperty)(K)} === undefined`;return Y?(0,B$.or)(z,(0,B$.not)(BU1(A,q,K))):z}Q3A.noPropertyInData=gU1;function F3A(A){return A?Object.keys(A).filter((q)=>q!=="__proto__"):[]}Q3A.allSchemaProperties=F3A;function eqK(A,q){return F3A(q).filter((K)=>!(0,mU1.alwaysValidSchema)(A,q[K]))}Q3A.schemaProperties=eqK;function AKK({schemaCode:A,data:q,it:{gen:K,topSchemaRef:Y,schemaPath:z,errorPath:w},it:_},$,O,H){let j=H?B$._`${A}, ${q}, ${Y}${z}`:q,J=[[ho.default.instancePath,(0,B$.strConcat)(ho.default.instancePath,w)],[ho.default.parentData,_.parentData],[ho.default.parentDataProperty,_.parentDataProperty],[ho.default.rootData,ho.default.rootData]];if(_.opts.dynamicRef)J.push([ho.default.dynamicAnchors,ho.default.dynamicAnchors]);let M=B$._`${j}, ${K.object(...J)}`;return O!==B$.nil?B$._`${$}.call(${O}, ${M})`:B$._`${$}(${M})`}Q3A.callValidateCode=AKK;var qKK=B$._`new RegExp`;function KKK({gen:A,it:{opts:q}},K){let Y=q.unicodeRegExp?"u":"",{regExp:z}=q.code,w=z(K,Y);return A.scopeValue("pattern",{key:w.toString(),ref:w,code:B$._`${z.code==="new RegExp"?qKK:(0,rqK.useFunc)(A,z)}(${K}, ${Y})`})}Q3A.usePattern=KKK;function YKK(A){let{gen:q,data:K,keyword:Y,it:z}=A,w=q.name("valid");if(z.allErrors){let $=q.let("valid",!0);return _(()=>q.assign($,!1)),$}return q.var(w,!0),_(()=>q.break()),w;function _($){let O=q.const("len",B$._`${K}.length`);q.forRange("i",0,O,(H)=>{A.subschema({keyword:Y,dataProp:H,dataPropType:mU1.Type.Num},w),q.if((0,B$.not)(w),$)})}}Q3A.validateArray=YKK;function zKK(A){let{gen:q,schema:K,keyword:Y,it:z}=A;if(!Array.isArray(K))throw Error("ajv implementation error");if(K.some((O)=>(0,mU1.alwaysValidSchema)(z,O))&&!z.opts.unevaluated)return;let _=q.let("valid",!1),$=q.name("_valid");q.block(()=>K.forEach((O,H)=>{let j=A.subschema({keyword:Y,schemaProp:H,compositeRule:!0},$);if(q.assign(_,B$._`${_} || ${$}`),!A.mergeValidEvaluated(j,$))q.if((0,B$.not)(_))})),A.result(_,()=>A.reset(),()=>A.error(!0))}Q3A.validateUnion=zKK});var n3A=h((l3A)=>{Object.defineProperty(l3A,"__esModule",{value:!0});l3A.validateKeywordUsage=l3A.validSchemaType=l3A.funcKeywordCode=l3A.macroKeywordCode=void 0;var sZ=n5(),D46=OU(),GKK=oL(),ZKK=GR6();function fKK(A,q){let{gen:K,keyword:Y,schema:z,parentSchema:w,it:_}=A,$=q.macro.call(_.self,z,w,_),O=c3A(K,Y,$);if(_.opts.validateSchema!==!1)_.self.validateSchema($,!0);let H=K.name("valid");A.subschema({schema:$,schemaPath:sZ.nil,errSchemaPath:`${_.errSchemaPath}/${Y}`,topSchemaRef:O,compositeRule:!0},H),A.pass(H,()=>A.error(!0))}l3A.macroKeywordCode=fKK;function TKK(A,q){var K;let{gen:Y,keyword:z,schema:w,parentSchema:_,$data:$,it:O}=A;VKK(O,q);let H=!$&&q.compile?q.compile.call(O.self,w,_,O):q.validate,j=c3A(Y,z,H),J=Y.let("valid");A.block$data(J,M),A.ok((K=q.valid)!==null&&K!==void 0?K:J);function M(){if(q.errors===!1){if(P(),q.modifying)d3A(A);W(()=>A.error())}else{let G=q.async?D():X();if(q.modifying)d3A(A);W(()=>vKK(A,G))}}function D(){let G=Y.let("ruleErrs",null);return Y.try(()=>P(sZ._`await `),(Z)=>Y.assign(J,!1).if(sZ._`${Z} instanceof ${O.ValidationError}`,()=>Y.assign(G,sZ._`${Z}.errors`),()=>Y.throw(Z))),G}function X(){let G=sZ._`${j}.errors`;return Y.assign(G,null),P(sZ.nil),G}function P(G=q.async?sZ._`await `:sZ.nil){let Z=O.opts.passContext?D46.default.this:D46.default.self,f=!(("compile"in q)&&!$||q.schema===!1);Y.assign(J,sZ._`${G}${(0,GKK.callValidateCode)(A,j,Z,f)}`,q.modifying)}function W(G){var Z;Y.if((0,sZ.not)((Z=q.valid)!==null&&Z!==void 0?Z:J),G)}}l3A.funcKeywordCode=TKK;function d3A(A){let{gen:q,data:K,it:Y}=A;q.if(Y.parentData,()=>q.assign(K,sZ._`${Y.parentData}[${Y.parentDataProperty}]`))}function vKK(A,q){let{gen:K}=A;K.if(sZ._`Array.isArray(${q})`,()=>{K.assign(D46.default.vErrors,sZ._`${D46.default.vErrors} === null ? ${q} : ${D46.default.vErrors}.concat(${q})`).assign(D46.default.errors,sZ._`${D46.default.vErrors}.length`),(0,ZKK.extendErrors)(A)},()=>A.error())}function VKK({schemaEnv:A},q){if(q.async&&!A.$async)throw Error("async keyword in sync schema")}function c3A(A,q,K){if(K===void 0)throw Error(`keyword "${q}" failed to compile`);return A.scopeValue("keyword",typeof K=="function"?{ref:K}:{ref:K,code:(0,sZ.stringify)(K)})}function NKK(A,q,K=!1){return!q.length||q.some((Y)=>Y==="array"?Array.isArray(A):Y==="object"?A&&typeof A=="object"&&!Array.isArray(A):typeof A==Y||K&&typeof A>"u")}l3A.validSchemaType=NKK;function kKK({schema:A,opts:q,self:K,errSchemaPath:Y},z,w){if(Array.isArray(z.keyword)?!z.keyword.includes(w):z.keyword!==w)throw Error("ajv implementation error");let _=z.dependencies;if(_===null||_===void 0?void 0:_.some(($)=>!Object.prototype.hasOwnProperty.call(A,$)))throw Error(`parent schema must have dependencies of ${w}: ${_.join(",")}`);if(z.validateSchema){if(!z.validateSchema(A[w])){let O=`keyword "${w}" value is invalid at path "${Y}": `+K.errorsText(z.validateSchema.errors);if(q.validateSchema==="log")K.logger.error(O);else throw Error(O)}}}l3A.validateKeywordUsage=kKK});var s3A=h((o3A)=>{Object.defineProperty(o3A,"__esModule",{value:!0});o3A.extendSubschemaMode=o3A.extendSubschemaData=o3A.getSubschema=void 0;var eu=n5(),r3A=Dz();function RKK(A,{keyword:q,schemaProp:K,schema:Y,schemaPath:z,errSchemaPath:w,topSchemaRef:_}){if(q!==void 0&&Y!==void 0)throw Error('both "keyword" and "schema" passed, only one allowed');if(q!==void 0){let $=A.schema[q];return K===void 0?{schema:$,schemaPath:eu._`${A.schemaPath}${(0,eu.getProperty)(q)}`,errSchemaPath:`${A.errSchemaPath}/${q}`}:{schema:$[K],schemaPath:eu._`${A.schemaPath}${(0,eu.getProperty)(q)}${(0,eu.getProperty)(K)}`,errSchemaPath:`${A.errSchemaPath}/${q}/${(0,r3A.escapeFragment)(K)}`}}if(Y!==void 0){if(z===void 0||w===void 0||_===void 0)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:Y,schemaPath:z,topSchemaRef:_,errSchemaPath:w}}throw Error('either "keyword" or "schema" must be passed')}o3A.getSubschema=RKK;function SKK(A,q,{dataProp:K,dataPropType:Y,data:z,dataTypes:w,propertyName:_}){if(z!==void 0&&K!==void 0)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:$}=q;if(K!==void 0){let{errorPath:H,dataPathArr:j,opts:J}=q,M=$.let("data",eu._`${q.data}${(0,eu.getProperty)(K)}`,!0);O(M),A.errorPath=eu.str`${H}${(0,r3A.getErrorPath)(K,Y,J.jsPropertySyntax)}`,A.parentDataProperty=eu._`${K}`,A.dataPathArr=[...j,A.parentDataProperty]}if(z!==void 0){let H=z instanceof eu.Name?z:$.let("data",z,!0);if(O(H),_!==void 0)A.propertyName=_}if(w)A.dataTypes=w;function O(H){A.data=H,A.dataLevel=q.dataLevel+1,A.dataTypes=[],q.definedProperties=new Set,A.parentData=q.data,A.dataNames=[...q.dataNames,H]}}o3A.extendSubschemaData=SKK;function hKK(A,{jtdDiscriminator:q,jtdMetadata:K,compositeRule:Y,createErrors:z,allErrors:w}){if(Y!==void 0)A.compositeRule=Y;if(z!==void 0)A.createErrors=z;if(w!==void 0)A.allErrors=w;A.jtdDiscriminator=q,A.jtdMetadata=K}o3A.extendSubschemaMode=hKK});var pU1=h((WAw,t3A)=>{t3A.exports=function A(q,K){if(q===K)return!0;if(q&&K&&typeof q=="object"&&typeof K=="object"){if(q.constructor!==K.constructor)return!1;var Y,z,w;if(Array.isArray(q)){if(Y=q.length,Y!=K.length)return!1;for(z=Y;z--!==0;)if(!A(q[z],K[z]))return!1;return!0}if(q.constructor===RegExp)return q.source===K.source&&q.flags===K.flags;if(q.valueOf!==Object.prototype.valueOf)return q.valueOf()===K.valueOf();if(q.toString!==Object.prototype.toString)return q.toString()===K.toString();if(w=Object.keys(q),Y=w.length,Y!==Object.keys(K).length)return!1;for(z=Y;z--!==0;)if(!Object.prototype.hasOwnProperty.call(K,w[z]))return!1;for(z=Y;z--!==0;){var _=w[z];if(!A(q[_],K[_]))return!1}return!0}return q!==q&&K!==K}});var A5A=h((GAw,e3A)=>{var Co=e3A.exports=function(A,q,K){if(typeof q=="function")K=q,q={};K=q.cb||K;var Y=typeof K=="function"?K:K.pre||function(){},z=K.post||function(){};H81(q,Y,z,A,"",A)};Co.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Co.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Co.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Co.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function H81(A,q,K,Y,z,w,_,$,O,H){if(Y&&typeof Y=="object"&&!Array.isArray(Y)){q(Y,z,w,_,$,O,H);for(var j in Y){var J=Y[j];if(Array.isArray(J)){if(j in Co.arrayKeywords)for(var M=0;M<J.length;M++)H81(A,q,K,J[M],z+"/"+j+"/"+M,w,z,j,Y,M)}else if(j in Co.propsKeywords){if(J&&typeof J=="object")for(var D in J)H81(A,q,K,J[D],z+"/"+j+"/"+xKK(D),w,z,j,Y,D)}else if(j in Co.keywords||A.allKeys&&!(j in Co.skipKeywords))H81(A,q,K,J,z+"/"+j,w,z,j,Y)}K(Y,z,w,_,$,O,H)}}function xKK(A){return A.replace(/~/g,"~0").replace(/\//g,"~1")}});var fR6=h((z5A)=>{Object.defineProperty(z5A,"__esModule",{value:!0});z5A.getSchemaRefs=z5A.resolveUrl=z5A.normalizeId=z5A._getFullPath=z5A.getFullPath=z5A.inlineRef=void 0;var bKK=Dz(),uKK=pU1(),mKK=A5A(),BKK=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function gKK(A,q=!0){if(typeof A=="boolean")return!0;if(q===!0)return!FU1(A);if(!q)return!1;return q5A(A)<=q}z5A.inlineRef=gKK;var pKK=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function FU1(A){for(let q in A){if(pKK.has(q))return!0;let K=A[q];if(Array.isArray(K)&&K.some(FU1))return!0;if(typeof K=="object"&&FU1(K))return!0}return!1}function q5A(A){let q=0;for(let K in A){if(K==="$ref")return 1/0;if(q++,BKK.has(K))continue;if(typeof A[K]=="object")(0,bKK.eachItem)(A[K],(Y)=>q+=q5A(Y));if(q===1/0)return 1/0}return q}function K5A(A,q="",K){if(K!==!1)q=PH6(q);let Y=A.parse(q);return Y5A(A,Y)}z5A.getFullPath=K5A;function Y5A(A,q){return A.serialize(q).split("#")[0]+"#"}z5A._getFullPath=Y5A;var FKK=/#\/?$/;function PH6(A){return A?A.replace(FKK,""):""}z5A.normalizeId=PH6;function QKK(A,q,K){return K=PH6(K),A.resolve(q,K)}z5A.resolveUrl=QKK;var UKK=/^[a-z_][-a-z0-9._]*$/i;function dKK(A,q){if(typeof A=="boolean")return{};let{schemaId:K,uriResolver:Y}=this.opts,z=PH6(A[K]||q),w={"":z},_=K5A(Y,z,!1),$={},O=new Set;return mKK(A,{allKeys:!0},(J,M,D,X)=>{if(X===void 0)return;let P=_+M,W=w[X];if(typeof J[K]=="string")W=G.call(this,J[K]);Z.call(this,J.$anchor),Z.call(this,J.$dynamicAnchor),w[M]=W;function G(f){let v=this.opts.uriResolver.resolve;if(f=PH6(W?v(W,f):f),O.has(f))throw j(f);O.add(f);let V=this.refs[f];if(typeof V=="string")V=this.refs[V];if(typeof V=="object")H(J,V.schema,f);else if(f!==PH6(P))if(f[0]==="#")H(J,$[f],f),$[f]=J;else this.refs[f]=P;return f}function Z(f){if(typeof f=="string"){if(!UKK.test(f))throw Error(`invalid anchor "${f}"`);G.call(this,`#${f}`)}}}),$;function H(J,M,D){if(M!==void 0&&!uKK(J,M))throw j(D)}function j(J){return Error(`reference "${J}" resolves to more than one schema`)}}z5A.getSchemaRefs=dKK});var VR6=h((T5A)=>{Object.defineProperty(T5A,"__esModule",{value:!0});T5A.getData=T5A.KeywordCxt=T5A.validateFunctionCode=void 0;var j5A=N3A(),_5A=ZR6(),UU1=IU1(),j81=ZR6(),oKK=g3A(),vR6=n3A(),QU1=s3A(),Iq=n5(),V3=OU(),aKK=fR6(),HU=Dz(),TR6=GR6();function sKK(A){if(D5A(A)){if(X5A(A),M5A(A)){A3K(A);return}}J5A(A,()=>(0,j5A.topBoolOrEmptySchema)(A))}T5A.validateFunctionCode=sKK;function J5A({gen:A,validateName:q,schema:K,schemaEnv:Y,opts:z},w){if(z.code.es5)A.func(q,Iq._`${V3.default.data}, ${V3.default.valCxt}`,Y.$async,()=>{A.code(Iq._`"use strict"; ${$5A(K,z)}`),eKK(A,z),A.code(w)});else A.func(q,Iq._`${V3.default.data}, ${tKK(z)}`,Y.$async,()=>A.code($5A(K,z)).code(w))}function tKK(A){return Iq._`{${V3.default.instancePath}="", ${V3.default.parentData}, ${V3.default.parentDataProperty}, ${V3.default.rootData}=${V3.default.data}${A.dynamicRef?Iq._`, ${V3.default.dynamicAnchors}={}`:Iq.nil}}={}`}function eKK(A,q){A.if(V3.default.valCxt,()=>{if(A.var(V3.default.instancePath,Iq._`${V3.default.valCxt}.${V3.default.instancePath}`),A.var(V3.default.parentData,Iq._`${V3.default.valCxt}.${V3.default.parentData}`),A.var(V3.default.parentDataProperty,Iq._`${V3.default.valCxt}.${V3.default.parentDataProperty}`),A.var(V3.default.rootData,Iq._`${V3.default.valCxt}.${V3.default.rootData}`),q.dynamicRef)A.var(V3.default.dynamicAnchors,Iq._`${V3.default.valCxt}.${V3.default.dynamicAnchors}`)},()=>{if(A.var(V3.default.instancePath,Iq._`""`),A.var(V3.default.parentData,Iq._`undefined`),A.var(V3.default.parentDataProperty,Iq._`undefined`),A.var(V3.default.rootData,V3.default.data),q.dynamicRef)A.var(V3.default.dynamicAnchors,Iq._`{}`)})}function A3K(A){let{schema:q,opts:K,gen:Y}=A;J5A(A,()=>{if(K.$comment&&q.$comment)W5A(A);if(w3K(A),Y.let(V3.default.vErrors,null),Y.let(V3.default.errors,0),K.unevaluated)q3K(A);P5A(A),O3K(A)});return}function q3K(A){let{gen:q,validateName:K}=A;A.evaluated=q.const("evaluated",Iq._`${K}.evaluated`),q.if(Iq._`${A.evaluated}.dynamicProps`,()=>q.assign(Iq._`${A.evaluated}.props`,Iq._`undefined`)),q.if(Iq._`${A.evaluated}.dynamicItems`,()=>q.assign(Iq._`${A.evaluated}.items`,Iq._`undefined`))}function $5A(A,q){let K=typeof A=="object"&&A[q.schemaId];return K&&(q.code.source||q.code.process)?Iq._`/*# sourceURL=${K} */`:Iq.nil}function K3K(A,q){if(D5A(A)){if(X5A(A),M5A(A)){Y3K(A,q);return}}(0,j5A.boolOrEmptySchema)(A,q)}function M5A({schema:A,self:q}){if(typeof A=="boolean")return!A;for(let K in A)if(q.RULES.all[K])return!0;return!1}function D5A(A){return typeof A.schema!="boolean"}function Y3K(A,q){let{schema:K,gen:Y,opts:z}=A;if(z.$comment&&K.$comment)W5A(A);_3K(A),$3K(A);let w=Y.const("_errs",V3.default.errors);P5A(A,w),Y.var(q,Iq._`${w} === ${V3.default.errors}`)}function X5A(A){(0,HU.checkUnknownRules)(A),z3K(A)}function P5A(A,q){if(A.opts.jtd)return O5A(A,[],!1,q);let K=(0,_5A.getSchemaTypes)(A.schema),Y=(0,_5A.coerceAndCheckDataType)(A,K);O5A(A,K,!Y,q)}function z3K(A){let{schema:q,errSchemaPath:K,opts:Y,self:z}=A;if(q.$ref&&Y.ignoreKeywordsWithRef&&(0,HU.schemaHasRulesButRef)(q,z.RULES))z.logger.warn(`$ref: keywords ignored in schema at path "${K}"`)}function w3K(A){let{schema:q,opts:K}=A;if(q.default!==void 0&&K.useDefaults&&K.strictSchema)(0,HU.checkStrictMode)(A,"default is ignored in the schema root")}function _3K(A){let q=A.schema[A.opts.schemaId];if(q)A.baseId=(0,aKK.resolveUrl)(A.opts.uriResolver,A.baseId,q)}function $3K(A){if(A.schema.$async&&!A.schemaEnv.$async)throw Error("async schema in sync schema")}function W5A({gen:A,schemaEnv:q,schema:K,errSchemaPath:Y,opts:z}){let w=K.$comment;if(z.$comment===!0)A.code(Iq._`${V3.default.self}.logger.log(${w})`);else if(typeof z.$comment=="function"){let _=Iq.str`${Y}/$comment`,$=A.scopeValue("root",{ref:q.root});A.code(Iq._`${V3.default.self}.opts.$comment(${w}, ${_}, ${$}.schema)`)}}function O3K(A){let{gen:q,schemaEnv:K,validateName:Y,ValidationError:z,opts:w}=A;if(K.$async)q.if(Iq._`${V3.default.errors} === 0`,()=>q.return(V3.default.data),()=>q.throw(Iq._`new ${z}(${V3.default.vErrors})`));else{if(q.assign(Iq._`${Y}.errors`,V3.default.vErrors),w.unevaluated)H3K(A);q.return(Iq._`${V3.default.errors} === 0`)}}function H3K({gen:A,evaluated:q,props:K,items:Y}){if(K instanceof Iq.Name)A.assign(Iq._`${q}.props`,K);if(Y instanceof Iq.Name)A.assign(Iq._`${q}.items`,Y)}function O5A(A,q,K,Y){let{gen:z,schema:w,data:_,allErrors:$,opts:O,self:H}=A,{RULES:j}=H;if(w.$ref&&(O.ignoreKeywordsWithRef||!(0,HU.schemaHasRulesButRef)(w,j))){z.block(()=>Z5A(A,"$ref",j.all.$ref.definition));return}if(!O.jtd)j3K(A,q);z.block(()=>{for(let M of j.rules)J(M);J(j.post)});function J(M){if(!(0,UU1.shouldUseGroup)(w,M))return;if(M.type){if(z.if((0,j81.checkDataType)(M.type,_,O.strictNumbers)),H5A(A,M),q.length===1&&q[0]===M.type&&K)z.else(),(0,j81.reportTypeError)(A);z.endIf()}else H5A(A,M);if(!$)z.if(Iq._`${V3.default.errors} === ${Y||0}`)}}function H5A(A,q){let{gen:K,schema:Y,opts:{useDefaults:z}}=A;if(z)(0,oKK.assignDefaults)(A,q.type);K.block(()=>{for(let w of q.rules)if((0,UU1.shouldUseRule)(Y,w))Z5A(A,w.keyword,w.definition,q.type)})}function j3K(A,q){if(A.schemaEnv.meta||!A.opts.strictTypes)return;if(J3K(A,q),!A.opts.allowUnionTypes)M3K(A,q);D3K(A,A.dataTypes)}function J3K(A,q){if(!q.length)return;if(!A.dataTypes.length){A.dataTypes=q;return}q.forEach((K)=>{if(!G5A(A.dataTypes,K))dU1(A,`type "${K}" not allowed by context "${A.dataTypes.join(",")}"`)}),P3K(A,q)}function M3K(A,q){if(q.length>1&&!(q.length===2&&q.includes("null")))dU1(A,"use allowUnionTypes to allow union type keyword")}function D3K(A,q){let K=A.self.RULES.all;for(let Y in K){let z=K[Y];if(typeof z=="object"&&(0,UU1.shouldUseRule)(A.schema,z)){let{type:w}=z.definition;if(w.length&&!w.some((_)=>X3K(q,_)))dU1(A,`missing type "${w.join(",")}" for keyword "${Y}"`)}}}function X3K(A,q){return A.includes(q)||q==="number"&&A.includes("integer")}function G5A(A,q){return A.includes(q)||q==="integer"&&A.includes("number")}function P3K(A,q){let K=[];for(let Y of A.dataTypes)if(G5A(q,Y))K.push(Y);else if(q.includes("integer")&&Y==="number")K.push("integer");A.dataTypes=K}function dU1(A,q){let K=A.schemaEnv.baseId+A.errSchemaPath;q+=` at "${K}" (strictTypes)`,(0,HU.checkStrictMode)(A,q,A.opts.strictTypes)}class cU1{constructor(A,q,K){if((0,vR6.validateKeywordUsage)(A,q,K),this.gen=A.gen,this.allErrors=A.allErrors,this.keyword=K,this.data=A.data,this.schema=A.schema[K],this.$data=q.$data&&A.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,HU.schemaRefOrVal)(A,this.schema,K,this.$data),this.schemaType=q.schemaType,this.parentSchema=A.schema,this.params={},this.it=A,this.def=q,this.$data)this.schemaCode=A.gen.const("vSchema",f5A(this.$data,A));else if(this.schemaCode=this.schemaValue,!(0,vR6.validSchemaType)(this.schema,q.schemaType,q.allowUndefined))throw Error(`${K} value must be ${JSON.stringify(q.schemaType)}`);if("code"in q?q.trackErrors:q.errors!==!1)this.errsCount=A.gen.const("_errs",V3.default.errors)}result(A,q,K){this.failResult((0,Iq.not)(A),q,K)}failResult(A,q,K){if(this.gen.if(A),K)K();else this.error();if(q){if(this.gen.else(),q(),this.allErrors)this.gen.endIf()}else if(this.allErrors)this.gen.endIf();else this.gen.else()}pass(A,q){this.failResult((0,Iq.not)(A),void 0,q)}fail(A){if(A===void 0){if(this.error(),!this.allErrors)this.gen.if(!1);return}if(this.gen.if(A),this.error(),this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(A){if(!this.$data)return this.fail(A);let{schemaCode:q}=this;this.fail(Iq._`${q} !== undefined && (${(0,Iq.or)(this.invalid$data(),A)})`)}error(A,q,K){if(q){this.setParams(q),this._error(A,K),this.setParams({});return}this._error(A,K)}_error(A,q){(A?TR6.reportExtraError:TR6.reportError)(this,this.def.error,q)}$dataError(){(0,TR6.reportError)(this,this.def.$dataError||TR6.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error('add "trackErrors" to keyword definition');(0,TR6.resetErrorsCount)(this.gen,this.errsCount)}ok(A){if(!this.allErrors)this.gen.if(A)}setParams(A,q){if(q)Object.assign(this.params,A);else this.params=A}block$data(A,q,K=Iq.nil){this.gen.block(()=>{this.check$data(A,K),q()})}check$data(A=Iq.nil,q=Iq.nil){if(!this.$data)return;let{gen:K,schemaCode:Y,schemaType:z,def:w}=this;if(K.if((0,Iq.or)(Iq._`${Y} === undefined`,q)),A!==Iq.nil)K.assign(A,!0);if(z.length||w.validateSchema){if(K.elseIf(this.invalid$data()),this.$dataError(),A!==Iq.nil)K.assign(A,!1)}K.else()}invalid$data(){let{gen:A,schemaCode:q,schemaType:K,def:Y,it:z}=this;return(0,Iq.or)(w(),_());function w(){if(K.length){if(!(q instanceof Iq.Name))throw Error("ajv implementation error");let $=Array.isArray(K)?K:[K];return Iq._`${(0,j81.checkDataTypes)($,q,z.opts.strictNumbers,j81.DataType.Wrong)}`}return Iq.nil}function _(){if(Y.validateSchema){let $=A.scopeValue("validate$data",{ref:Y.validateSchema});return Iq._`!${$}(${q})`}return Iq.nil}}subschema(A,q){let K=(0,QU1.getSubschema)(this.it,A);(0,QU1.extendSubschemaData)(K,this.it,A),(0,QU1.extendSubschemaMode)(K,A);let Y={...this.it,...K,items:void 0,props:void 0};return K3K(Y,q),Y}mergeEvaluated(A,q){let{it:K,gen:Y}=this;if(!K.opts.unevaluated)return;if(K.props!==!0&&A.props!==void 0)K.props=HU.mergeEvaluated.props(Y,A.props,K.props,q);if(K.items!==!0&&A.items!==void 0)K.items=HU.mergeEvaluated.items(Y,A.items,K.items,q)}mergeValidEvaluated(A,q){let{it:K,gen:Y}=this;if(K.opts.unevaluated&&(K.props!==!0||K.items!==!0))return Y.if(q,()=>this.mergeEvaluated(A,Iq.Name)),!0}}T5A.KeywordCxt=cU1;function Z5A(A,q,K,Y){let z=new cU1(A,K,q);if("code"in K)K.code(z,Y);else if(z.$data&&K.validate)(0,vR6.funcKeywordCode)(z,K);else if("macro"in K)(0,vR6.macroKeywordCode)(z,K);else if(K.compile||K.validate)(0,vR6.funcKeywordCode)(z,K)}var W3K=/^\/(?:[^~]|~0|~1)*$/,G3K=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function f5A(A,{dataLevel:q,dataNames:K,dataPathArr:Y}){let z,w;if(A==="")return V3.default.rootData;if(A[0]==="/"){if(!W3K.test(A))throw Error(`Invalid JSON-pointer: ${A}`);z=A,w=V3.default.rootData}else{let H=G3K.exec(A);if(!H)throw Error(`Invalid JSON-pointer: ${A}`);let j=+H[1];if(z=H[2],z==="#"){if(j>=q)throw Error(O("property/index",j));return Y[q-j]}if(j>q)throw Error(O("data",j));if(w=K[q-j],!z)return w}let _=w,$=z.split("/");for(let H of $)if(H)w=Iq._`${w}${(0,Iq.getProperty)((0,HU.unescapeJsonPointer)(H))}`,_=Iq._`${_} && ${w}`;return _;function O(H,j){return`Cannot access ${H} ${j} levels up, current level is ${q}`}}T5A.getData=f5A});var J81=h((N5A)=>{Object.defineProperty(N5A,"__esModule",{value:!0});class V5A extends Error{constructor(A){super("validation failed");this.errors=A,this.ajv=this.validation=!0}}N5A.default=V5A});var NR6=h((E5A)=>{Object.defineProperty(E5A,"__esModule",{value:!0});var lU1=fR6();class k5A extends Error{constructor(A,q,K,Y){super(Y||`can't resolve reference ${K} from id ${q}`);this.missingRef=(0,lU1.resolveUrl)(A,q,K),this.missingSchema=(0,lU1.normalizeId)((0,lU1.getFullPath)(A,this.missingRef))}}E5A.default=k5A});var D81=h((R5A)=>{Object.defineProperty(R5A,"__esModule",{value:!0});R5A.resolveSchema=R5A.getCompilingSchema=R5A.resolveRef=R5A.compileSchema=R5A.SchemaEnv=void 0;var PC=n5(),V3K=J81(),X46=OU(),WC=fR6(),L5A=Dz(),N3K=VR6();class kR6{constructor(A){var q;this.refs={},this.dynamicAnchors={};let K;if(typeof A.schema=="object")K=A.schema;this.schema=A.schema,this.schemaId=A.schemaId,this.root=A.root||this,this.baseId=(q=A.baseId)!==null&&q!==void 0?q:(0,WC.normalizeId)(K===null||K===void 0?void 0:K[A.schemaId||"$id"]),this.schemaPath=A.schemaPath,this.localRefs=A.localRefs,this.meta=A.meta,this.$async=K===null||K===void 0?void 0:K.$async,this.refs={}}}R5A.SchemaEnv=kR6;function nU1(A){let q=y5A.call(this,A);if(q)return q;let K=(0,WC.getFullPath)(this.opts.uriResolver,A.root.baseId),{es5:Y,lines:z}=this.opts.code,{ownProperties:w}=this.opts,_=new PC.CodeGen(this.scope,{es5:Y,lines:z,ownProperties:w}),$;if(A.$async)$=_.scopeValue("Error",{ref:V3K.default,code:PC._`require("ajv/dist/runtime/validation_error").default`});let O=_.scopeName("validate");A.validateName=O;let H={gen:_,allErrors:this.opts.allErrors,data:X46.default.data,parentData:X46.default.parentData,parentDataProperty:X46.default.parentDataProperty,dataNames:[X46.default.data],dataPathArr:[PC.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:_.scopeValue("schema",this.opts.code.source===!0?{ref:A.schema,code:(0,PC.stringify)(A.schema)}:{ref:A.schema}),validateName:O,ValidationError:$,schema:A.schema,schemaEnv:A,rootId:K,baseId:A.baseId||K,schemaPath:PC.nil,errSchemaPath:A.schemaPath||(this.opts.jtd?"":"#"),errorPath:PC._`""`,opts:this.opts,self:this},j;try{this._compilations.add(A),(0,N3K.validateFunctionCode)(H),_.optimize(this.opts.code.optimize);let J=_.toString();if(j=`${_.scopeRefs(X46.default.scope)}return ${J}`,this.opts.code.process)j=this.opts.code.process(j,A);let D=Function(`${X46.default.self}`,`${X46.default.scope}`,j)(this,this.scope.get());if(this.scope.value(O,{ref:D}),D.errors=null,D.schema=A.schema,D.schemaEnv=A,A.$async)D.$async=!0;if(this.opts.code.source===!0)D.source={validateName:O,validateCode:J,scopeValues:_._values};if(this.opts.unevaluated){let{props:X,items:P}=H;if(D.evaluated={props:X instanceof PC.Name?void 0:X,items:P instanceof PC.Name?void 0:P,dynamicProps:X instanceof PC.Name,dynamicItems:P instanceof PC.Name},D.source)D.source.evaluated=(0,PC.stringify)(D.evaluated)}return A.validate=D,A}catch(J){if(delete A.validate,delete A.validateName,j)this.logger.error("Error compiling schema, function code:",j);throw J}finally{this._compilations.delete(A)}}R5A.compileSchema=nU1;function k3K(A,q,K){var Y;K=(0,WC.resolveUrl)(this.opts.uriResolver,q,K);let z=A.refs[K];if(z)return z;let w=y3K.call(this,A,K);if(w===void 0){let _=(Y=A.localRefs)===null||Y===void 0?void 0:Y[K],{schemaId:$}=this.opts;if(_)w=new kR6({schema:_,schemaId:$,root:A,baseId:q})}if(w===void 0)return;return A.refs[K]=E3K.call(this,w)}R5A.resolveRef=k3K;function E3K(A){if((0,WC.inlineRef)(A.schema,this.opts.inlineRefs))return A.schema;return A.validate?A:nU1.call(this,A)}function y5A(A){for(let q of this._compilations)if(L3K(q,A))return q}R5A.getCompilingSchema=y5A;function L3K(A,q){return A.schema===q.schema&&A.root===q.root&&A.baseId===q.baseId}function y3K(A,q){let K;while(typeof(K=this.refs[q])=="string")q=K;return K||this.schemas[q]||M81.call(this,A,q)}function M81(A,q){let K=this.opts.uriResolver.parse(q),Y=(0,WC._getFullPath)(this.opts.uriResolver,K),z=(0,WC.getFullPath)(this.opts.uriResolver,A.baseId,void 0);if(Object.keys(A.schema).length>0&&Y===z)return iU1.call(this,K,A);let w=(0,WC.normalizeId)(Y),_=this.refs[w]||this.schemas[w];if(typeof _=="string"){let $=M81.call(this,A,_);if(typeof($===null||$===void 0?void 0:$.schema)!=="object")return;return iU1.call(this,K,$)}if(typeof(_===null||_===void 0?void 0:_.schema)!=="object")return;if(!_.validate)nU1.call(this,_);if(w===(0,WC.normalizeId)(q)){let{schema:$}=_,{schemaId:O}=this.opts,H=$[O];if(H)z=(0,WC.resolveUrl)(this.opts.uriResolver,z,H);return new kR6({schema:$,schemaId:O,root:A,baseId:z})}return iU1.call(this,K,_)}R5A.resolveSchema=M81;var R3K=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function iU1(A,{baseId:q,schema:K,root:Y}){var z;if(((z=A.fragment)===null||z===void 0?void 0:z[0])!=="/")return;for(let $ of A.fragment.slice(1).split("/")){if(typeof K==="boolean")return;let O=K[(0,L5A.unescapeFragment)($)];if(O===void 0)return;K=O;let H=typeof K==="object"&&K[this.opts.schemaId];if(!R3K.has($)&&H)q=(0,WC.resolveUrl)(this.opts.uriResolver,q,H)}let w;if(typeof K!="boolean"&&K.$ref&&!(0,L5A.schemaHasRulesButRef)(K,this.RULES)){let $=(0,WC.resolveUrl)(this.opts.uriResolver,q,K.$ref);w=M81.call(this,Y,$)}let{schemaId:_}=this.opts;if(w=w||new kR6({schema:K,schemaId:_,root:Y,baseId:q}),w.schema!==w.root.schema)return w;return}});var h5A=h((NAw,x3K)=>{x3K.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var I5A=h((kAw,C5A)=>{var b3K={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};C5A.exports={HEX:b3K}});var F5A=h((EAw,p5A)=>{var{HEX:u3K}=I5A(),m3K=/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;function m5A(A){if(g5A(A,".")<3)return{host:A,isIPV4:!1};let q=A.match(m3K)||[],[K]=q;if(K)return{host:g3K(K,"."),isIPV4:!0};else return{host:A,isIPV4:!1}}function rU1(A,q=!1){let K="",Y=!0;for(let z of A){if(u3K[z]===void 0)return;if(z!=="0"&&Y===!0)Y=!1;if(!Y)K+=z}if(q&&K.length===0)K="0";return K}function B3K(A){let q=0,K={error:!1,address:"",zone:""},Y=[],z=[],w=!1,_=!1,$=!1;function O(){if(z.length){if(w===!1){let H=rU1(z);if(H!==void 0)Y.push(H);else return K.error=!0,!1}z.length=0}return!0}for(let H=0;H<A.length;H++){let j=A[H];if(j==="["||j==="]")continue;if(j===":"){if(_===!0)$=!0;if(!O())break;if(q++,Y.push(":"),q>7){K.error=!0;break}if(H-1>=0&&A[H-1]===":")_=!0;continue}else if(j==="%"){if(!O())break;w=!0}else{z.push(j);continue}}if(z.length)if(w)K.zone=z.join("");else if($)Y.push(z.join(""));else Y.push(rU1(z));return K.address=Y.join(""),K}function B5A(A){if(g5A(A,":")<2)return{host:A,isIPV6:!1};let q=B3K(A);if(!q.error){let{address:K,address:Y}=q;if(q.zone)K+="%"+q.zone,Y+="%25"+q.zone;return{host:K,escapedHost:Y,isIPV6:!0}}else return{host:A,isIPV6:!1}}function g3K(A,q){let K="",Y=!0,z=A.length;for(let w=0;w<z;w++){let _=A[w];if(_==="0"&&Y){if(w+1<=z&&A[w+1]===q||w+1===z)K+=_,Y=!1}else{if(_===q)Y=!0;else Y=!1;K+=_}}return K}function g5A(A,q){let K=0;for(let Y=0;Y<A.length;Y++)if(A[Y]===q)K++;return K}var x5A=/^\.\.?\//u,b5A=/^\/\.(?:\/|$)/u,u5A=/^\/\.\.(?:\/|$)/u,p3K=/^\/?(?:.|\n)*?(?=\/|$)/u;function F3K(A){let q=[];while(A.length)if(A.match(x5A))A=A.replace(x5A,"");else if(A.match(b5A))A=A.replace(b5A,"/");else if(A.match(u5A))A=A.replace(u5A,"/"),q.pop();else if(A==="."||A==="..")A="";else{let K=A.match(p3K);if(K){let Y=K[0];A=A.slice(Y.length),q.push(Y)}else throw Error("Unexpected dot segment condition")}return q.join("")}function Q3K(A,q){let K=q!==!0?escape:unescape;if(A.scheme!==void 0)A.scheme=K(A.scheme);if(A.userinfo!==void 0)A.userinfo=K(A.userinfo);if(A.host!==void 0)A.host=K(A.host);if(A.path!==void 0)A.path=K(A.path);if(A.query!==void 0)A.query=K(A.query);if(A.fragment!==void 0)A.fragment=K(A.fragment);return A}function U3K(A){let q=[];if(A.userinfo!==void 0)q.push(A.userinfo),q.push("@");if(A.host!==void 0){let K=unescape(A.host),Y=m5A(K);if(Y.isIPV4)K=Y.host;else{let z=B5A(Y.host);if(z.isIPV6===!0)K=`[${z.escapedHost}]`;else K=A.host}q.push(K)}if(typeof A.port==="number"||typeof A.port==="string")q.push(":"),q.push(String(A.port));return q.length?q.join(""):void 0}p5A.exports={recomposeAuthority:U3K,normalizeComponentEncoding:Q3K,removeDotSegments:F3K,normalizeIPv4:m5A,normalizeIPv6:B5A,stringArrayToHexStripped:rU1}});var i5A=h((LAw,l5A)=>{var d3K=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,c3K=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Q5A(A){return typeof A.secure==="boolean"?A.secure:String(A.scheme).toLowerCase()==="wss"}function U5A(A){if(!A.host)A.error=A.error||"HTTP URIs must have a host.";return A}function d5A(A){let q=String(A.scheme).toLowerCase()==="https";if(A.port===(q?443:80)||A.port==="")A.port=void 0;if(!A.path)A.path="/";return A}function l3K(A){return A.secure=Q5A(A),A.resourceName=(A.path||"/")+(A.query?"?"+A.query:""),A.path=void 0,A.query=void 0,A}function i3K(A){if(A.port===(Q5A(A)?443:80)||A.port==="")A.port=void 0;if(typeof A.secure==="boolean")A.scheme=A.secure?"wss":"ws",A.secure=void 0;if(A.resourceName){let[q,K]=A.resourceName.split("?");A.path=q&&q!=="/"?q:void 0,A.query=K,A.resourceName=void 0}return A.fragment=void 0,A}function n3K(A,q){if(!A.path)return A.error="URN can not be parsed",A;let K=A.path.match(c3K);if(K){let Y=q.scheme||A.scheme||"urn";A.nid=K[1].toLowerCase(),A.nss=K[2];let z=`${Y}:${q.nid||A.nid}`,w=oU1[z];if(A.path=void 0,w)A=w.parse(A,q)}else A.error=A.error||"URN can not be parsed.";return A}function r3K(A,q){let K=q.scheme||A.scheme||"urn",Y=A.nid.toLowerCase(),z=`${K}:${q.nid||Y}`,w=oU1[z];if(w)A=w.serialize(A,q);let _=A,$=A.nss;return _.path=`${Y||q.nid}:${$}`,q.skipEscape=!0,_}function o3K(A,q){let K=A;if(K.uuid=K.nss,K.nss=void 0,!q.tolerant&&(!K.uuid||!d3K.test(K.uuid)))K.error=K.error||"UUID is not valid.";return K}function a3K(A){let q=A;return q.nss=(A.uuid||"").toLowerCase(),q}var c5A={scheme:"http",domainHost:!0,parse:U5A,serialize:d5A},s3K={scheme:"https",domainHost:c5A.domainHost,parse:U5A,serialize:d5A},X81={scheme:"ws",domainHost:!0,parse:l3K,serialize:i3K},t3K={scheme:"wss",domainHost:X81.domainHost,parse:X81.parse,serialize:X81.serialize},e3K={scheme:"urn",parse:n3K,serialize:r3K,skipNormalize:!0},A5K={scheme:"urn:uuid",parse:o3K,serialize:a3K,skipNormalize:!0},oU1={http:c5A,https:s3K,ws:X81,wss:t3K,urn:e3K,"urn:uuid":A5K};l5A.exports=oU1});var r5A=h((yAw,W81)=>{var{normalizeIPv6:q5K,normalizeIPv4:K5K,removeDotSegments:ER6,recomposeAuthority:Y5K,normalizeComponentEncoding:P81}=F5A(),aU1=i5A();function z5K(A,q){if(typeof A==="string")A=Am(jU(A,q),q);else if(typeof A==="object")A=jU(Am(A,q),q);return A}function w5K(A,q,K){let Y=Object.assign({scheme:"null"},K),z=n5A(jU(A,Y),jU(q,Y),Y,!0);return Am(z,{...Y,skipEscape:!0})}function n5A(A,q,K,Y){let z={};if(!Y)A=jU(Am(A,K),K),q=jU(Am(q,K),K);if(K=K||{},!K.tolerant&&q.scheme)z.scheme=q.scheme,z.userinfo=q.userinfo,z.host=q.host,z.port=q.port,z.path=ER6(q.path||""),z.query=q.query;else{if(q.userinfo!==void 0||q.host!==void 0||q.port!==void 0)z.userinfo=q.userinfo,z.host=q.host,z.port=q.port,z.path=ER6(q.path||""),z.query=q.query;else{if(!q.path)if(z.path=A.path,q.query!==void 0)z.query=q.query;else z.query=A.query;else{if(q.path.charAt(0)==="/")z.path=ER6(q.path);else{if((A.userinfo!==void 0||A.host!==void 0||A.port!==void 0)&&!A.path)z.path="/"+q.path;else if(!A.path)z.path=q.path;else z.path=A.path.slice(0,A.path.lastIndexOf("/")+1)+q.path;z.path=ER6(z.path)}z.query=q.query}z.userinfo=A.userinfo,z.host=A.host,z.port=A.port}z.scheme=A.scheme}return z.fragment=q.fragment,z}function _5K(A,q,K){if(typeof A==="string")A=unescape(A),A=Am(P81(jU(A,K),!0),{...K,skipEscape:!0});else if(typeof A==="object")A=Am(P81(A,!0),{...K,skipEscape:!0});if(typeof q==="string")q=unescape(q),q=Am(P81(jU(q,K),!0),{...K,skipEscape:!0});else if(typeof q==="object")q=Am(P81(q,!0),{...K,skipEscape:!0});return A.toLowerCase()===q.toLowerCase()}function Am(A,q){let K={host:A.host,scheme:A.scheme,userinfo:A.userinfo,port:A.port,path:A.path,query:A.query,nid:A.nid,nss:A.nss,uuid:A.uuid,fragment:A.fragment,reference:A.reference,resourceName:A.resourceName,secure:A.secure,error:""},Y=Object.assign({},q),z=[],w=aU1[(Y.scheme||K.scheme||"").toLowerCase()];if(w&&w.serialize)w.serialize(K,Y);if(K.path!==void 0)if(!Y.skipEscape){if(K.path=escape(K.path),K.scheme!==void 0)K.path=K.path.split("%3A").join(":")}else K.path=unescape(K.path);if(Y.reference!=="suffix"&&K.scheme)z.push(K.scheme,":");let _=Y5K(K);if(_!==void 0){if(Y.reference!=="suffix")z.push("//");if(z.push(_),K.path&&K.path.charAt(0)!=="/")z.push("/")}if(K.path!==void 0){let $=K.path;if(!Y.absolutePath&&(!w||!w.absolutePath))$=ER6($);if(_===void 0)$=$.replace(/^\/\//u,"/%2F");z.push($)}if(K.query!==void 0)z.push("?",K.query);if(K.fragment!==void 0)z.push("#",K.fragment);return z.join("")}var $5K=Array.from({length:127},(A,q)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(q)));function O5K(A){let q=0;for(let K=0,Y=A.length;K<Y;++K)if(q=A.charCodeAt(K),q>126||$5K[q])return!0;return!1}var H5K=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function jU(A,q){let K=Object.assign({},q),Y={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},z=A.indexOf("%")!==-1,w=!1;if(K.reference==="suffix")A=(K.scheme?K.scheme+":":"")+"//"+A;let _=A.match(H5K);if(_){if(Y.scheme=_[1],Y.userinfo=_[3],Y.host=_[4],Y.port=parseInt(_[5],10),Y.path=_[6]||"",Y.query=_[7],Y.fragment=_[8],isNaN(Y.port))Y.port=_[5];if(Y.host){let O=K5K(Y.host);if(O.isIPV4===!1){let H=q5K(O.host);Y.host=H.host.toLowerCase(),w=H.isIPV6}else Y.host=O.host,w=!0}if(Y.scheme===void 0&&Y.userinfo===void 0&&Y.host===void 0&&Y.port===void 0&&Y.query===void 0&&!Y.path)Y.reference="same-document";else if(Y.scheme===void 0)Y.reference="relative";else if(Y.fragment===void 0)Y.reference="absolute";else Y.reference="uri";if(K.reference&&K.reference!=="suffix"&&K.reference!==Y.reference)Y.error=Y.error||"URI is not a "+K.reference+" reference.";let $=aU1[(K.scheme||Y.scheme||"").toLowerCase()];if(!K.unicodeSupport&&(!$||!$.unicodeSupport)){if(Y.host&&(K.domainHost||$&&$.domainHost)&&w===!1&&O5K(Y.host))try{Y.host=URL.domainToASCII(Y.host.toLowerCase())}catch(O){Y.error=Y.error||"Host's domain name can not be converted to ASCII: "+O}}if(!$||$&&!$.skipNormalize){if(z&&Y.scheme!==void 0)Y.scheme=unescape(Y.scheme);if(z&&Y.host!==void 0)Y.host=unescape(Y.host);if(Y.path)Y.path=escape(unescape(Y.path));if(Y.fragment)Y.fragment=encodeURI(decodeURIComponent(Y.fragment))}if($&&$.parse)$.parse(Y,K)}else Y.error=Y.error||"URI can not be parsed.";return Y}var sU1={SCHEMES:aU1,normalize:z5K,resolve:w5K,resolveComponents:n5A,equal:_5K,serialize:Am,parse:jU};W81.exports=sU1;W81.exports.default=sU1;W81.exports.fastUri=sU1});var s5A=h((a5A)=>{Object.defineProperty(a5A,"__esModule",{value:!0});var o5A=r5A();o5A.code='require("ajv/dist/runtime/uri").default';a5A.default=o5A});var w9A=h((JU)=>{Object.defineProperty(JU,"__esModule",{value:!0});JU.CodeGen=JU.Name=JU.nil=JU.stringify=JU.str=JU._=JU.KeywordCxt=void 0;var J5K=VR6();Object.defineProperty(JU,"KeywordCxt",{enumerable:!0,get:function(){return J5K.KeywordCxt}});var WH6=n5();Object.defineProperty(JU,"_",{enumerable:!0,get:function(){return WH6._}});Object.defineProperty(JU,"str",{enumerable:!0,get:function(){return WH6.str}});Object.defineProperty(JU,"stringify",{enumerable:!0,get:function(){return WH6.stringify}});Object.defineProperty(JU,"nil",{enumerable:!0,get:function(){return WH6.nil}});Object.defineProperty(JU,"Name",{enumerable:!0,get:function(){return WH6.Name}});Object.defineProperty(JU,"CodeGen",{enumerable:!0,get:function(){return WH6.CodeGen}});var M5K=J81(),K9A=NR6(),D5K=CU1(),LR6=D81(),X5K=n5(),yR6=fR6(),G81=ZR6(),eU1=Dz(),t5A=h5A(),P5K=s5A(),Y9A=(A,q)=>new RegExp(A,q);Y9A.code="new RegExp";var W5K=["removeAdditional","useDefaults","coerceTypes"],G5K=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Z5K={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},f5K={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},e5A=200;function T5K(A){var q,K,Y,z,w,_,$,O,H,j,J,M,D,X,P,W,G,Z,f,v,V,N,L,S,C;let m=A.strict,x=(q=A.code)===null||q===void 0?void 0:q.optimize,p=x===!0||x===void 0?1:x||0,g=(Y=(K=A.code)===null||K===void 0?void 0:K.regExp)!==null&&Y!==void 0?Y:Y9A,b=(z=A.uriResolver)!==null&&z!==void 0?z:P5K.default;return{strictSchema:(_=(w=A.strictSchema)!==null&&w!==void 0?w:m)!==null&&_!==void 0?_:!0,strictNumbers:(O=($=A.strictNumbers)!==null&&$!==void 0?$:m)!==null&&O!==void 0?O:!0,strictTypes:(j=(H=A.strictTypes)!==null&&H!==void 0?H:m)!==null&&j!==void 0?j:"log",strictTuples:(M=(J=A.strictTuples)!==null&&J!==void 0?J:m)!==null&&M!==void 0?M:"log",strictRequired:(X=(D=A.strictRequired)!==null&&D!==void 0?D:m)!==null&&X!==void 0?X:!1,code:A.code?{...A.code,optimize:p,regExp:g}:{optimize:p,regExp:g},loopRequired:(P=A.loopRequired)!==null&&P!==void 0?P:e5A,loopEnum:(W=A.loopEnum)!==null&&W!==void 0?W:e5A,meta:(G=A.meta)!==null&&G!==void 0?G:!0,messages:(Z=A.messages)!==null&&Z!==void 0?Z:!0,inlineRefs:(f=A.inlineRefs)!==null&&f!==void 0?f:!0,schemaId:(v=A.schemaId)!==null&&v!==void 0?v:"$id",addUsedSchema:(V=A.addUsedSchema)!==null&&V!==void 0?V:!0,validateSchema:(N=A.validateSchema)!==null&&N!==void 0?N:!0,validateFormats:(L=A.validateFormats)!==null&&L!==void 0?L:!0,unicodeRegExp:(S=A.unicodeRegExp)!==null&&S!==void 0?S:!0,int32range:(C=A.int32range)!==null&&C!==void 0?C:!0,uriResolver:b}}class Z81{constructor(A={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,A=this.opts={...A,...T5K(A)};let{es5:q,lines:K}=this.opts.code;this.scope=new X5K.ValueScope({scope:{},prefixes:G5K,es5:q,lines:K}),this.logger=L5K(A.logger);let Y=A.validateFormats;if(A.validateFormats=!1,this.RULES=(0,D5K.getRules)(),A9A.call(this,Z5K,A,"NOT SUPPORTED"),A9A.call(this,f5K,A,"DEPRECATED","warn"),this._metaOpts=k5K.call(this),A.formats)V5K.call(this);if(this._addVocabularies(),this._addDefaultMetaSchema(),A.keywords)N5K.call(this,A.keywords);if(typeof A.meta=="object")this.addMetaSchema(A.meta);v5K.call(this),A.validateFormats=Y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:A,meta:q,schemaId:K}=this.opts,Y=t5A;if(K==="id")Y={...t5A},Y.id=Y.$id,delete Y.$id;if(q&&A)this.addMetaSchema(Y,Y[K],!1)}defaultMeta(){let{meta:A,schemaId:q}=this.opts;return this.opts.defaultMeta=typeof A=="object"?A[q]||A:void 0}validate(A,q){let K;if(typeof A=="string"){if(K=this.getSchema(A),!K)throw Error(`no schema with key or ref "${A}"`)}else K=this.compile(A);let Y=K(q);if(!("$async"in K))this.errors=K.errors;return Y}compile(A,q){let K=this._addSchema(A,q);return K.validate||this._compileSchemaEnv(K)}compileAsync(A,q){if(typeof this.opts.loadSchema!="function")throw Error("options.loadSchema should be a function");let{loadSchema:K}=this.opts;return Y.call(this,A,q);async function Y(H,j){await z.call(this,H.$schema);let J=this._addSchema(H,j);return J.validate||w.call(this,J)}async function z(H){if(H&&!this.getSchema(H))await Y.call(this,{$ref:H},!0)}async function w(H){try{return this._compileSchemaEnv(H)}catch(j){if(!(j instanceof K9A.default))throw j;return _.call(this,j),await $.call(this,j.missingSchema),w.call(this,H)}}function _({missingSchema:H,missingRef:j}){if(this.refs[H])throw Error(`AnySchema ${H} is loaded but ${j} cannot be resolved`)}async function $(H){let j=await O.call(this,H);if(!this.refs[H])await z.call(this,j.$schema);if(!this.refs[H])this.addSchema(j,H,q)}async function O(H){let j=this._loading[H];if(j)return j;try{return await(this._loading[H]=K(H))}finally{delete this._loading[H]}}}addSchema(A,q,K,Y=this.opts.validateSchema){if(Array.isArray(A)){for(let w of A)this.addSchema(w,void 0,K,Y);return this}let z;if(typeof A==="object"){let{schemaId:w}=this.opts;if(z=A[w],z!==void 0&&typeof z!="string")throw Error(`schema ${w} must be string`)}return q=(0,yR6.normalizeId)(q||z),this._checkUnique(q),this.schemas[q]=this._addSchema(A,K,q,Y,!0),this}addMetaSchema(A,q,K=this.opts.validateSchema){return this.addSchema(A,q,!0,K),this}validateSchema(A,q){if(typeof A=="boolean")return!0;let K;if(K=A.$schema,K!==void 0&&typeof K!="string")throw Error("$schema must be a string");if(K=K||this.opts.defaultMeta||this.defaultMeta(),!K)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let Y=this.validate(K,A);if(!Y&&q){let z="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(z);else throw Error(z)}return Y}getSchema(A){let q;while(typeof(q=q9A.call(this,A))=="string")A=q;if(q===void 0){let{schemaId:K}=this.opts,Y=new LR6.SchemaEnv({schema:{},schemaId:K});if(q=LR6.resolveSchema.call(this,Y,A),!q)return;this.refs[A]=q}return q.validate||this._compileSchemaEnv(q)}removeSchema(A){if(A instanceof RegExp)return this._removeAllSchemas(this.schemas,A),this._removeAllSchemas(this.refs,A),this;switch(typeof A){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let q=q9A.call(this,A);if(typeof q=="object")this._cache.delete(q.schema);return delete this.schemas[A],delete this.refs[A],this}case"object":{let q=A;this._cache.delete(q);let K=A[this.opts.schemaId];if(K)K=(0,yR6.normalizeId)(K),delete this.schemas[K],delete this.refs[K];return this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(A){for(let q of A)this.addKeyword(q);return this}addKeyword(A,q){let K;if(typeof A=="string"){if(K=A,typeof q=="object")this.logger.warn("these parameters are deprecated, see docs for addKeyword"),q.keyword=K}else if(typeof A=="object"&&q===void 0){if(q=A,K=q.keyword,Array.isArray(K)&&!K.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(R5K.call(this,K,q),!q)return(0,eU1.eachItem)(K,(z)=>tU1.call(this,z)),this;h5K.call(this,q);let Y={...q,type:(0,G81.getJSONTypes)(q.type),schemaType:(0,G81.getJSONTypes)(q.schemaType)};return(0,eU1.eachItem)(K,Y.type.length===0?(z)=>tU1.call(this,z,Y):(z)=>Y.type.forEach((w)=>tU1.call(this,z,Y,w))),this}getKeyword(A){let q=this.RULES.all[A];return typeof q=="object"?q.definition:!!q}removeKeyword(A){let{RULES:q}=this;delete q.keywords[A],delete q.all[A];for(let K of q.rules){let Y=K.rules.findIndex((z)=>z.keyword===A);if(Y>=0)K.rules.splice(Y,1)}return this}addFormat(A,q){if(typeof q=="string")q=new RegExp(q);return this.formats[A]=q,this}errorsText(A=this.errors,{separator:q=", ",dataVar:K="data"}={}){if(!A||A.length===0)return"No errors";return A.map((Y)=>`${K}${Y.instancePath} ${Y.message}`).reduce((Y,z)=>Y+q+z)}$dataMetaSchema(A,q){let K=this.RULES.all;A=JSON.parse(JSON.stringify(A));for(let Y of q){let z=Y.split("/").slice(1),w=A;for(let _ of z)w=w[_];for(let _ in K){let $=K[_];if(typeof $!="object")continue;let{$data:O}=$.definition,H=w[_];if(O&&H)w[_]=z9A(H)}}return A}_removeAllSchemas(A,q){for(let K in A){let Y=A[K];if(!q||q.test(K)){if(typeof Y=="string")delete A[K];else if(Y&&!Y.meta)this._cache.delete(Y.schema),delete A[K]}}}_addSchema(A,q,K,Y=this.opts.validateSchema,z=this.opts.addUsedSchema){let w,{schemaId:_}=this.opts;if(typeof A=="object")w=A[_];else if(this.opts.jtd)throw Error("schema must be object");else if(typeof A!="boolean")throw Error("schema must be object or boolean");let $=this._cache.get(A);if($!==void 0)return $;K=(0,yR6.normalizeId)(w||K);let O=yR6.getSchemaRefs.call(this,A,K);if($=new LR6.SchemaEnv({schema:A,schemaId:_,meta:q,baseId:K,localRefs:O}),this._cache.set($.schema,$),z&&!K.startsWith("#")){if(K)this._checkUnique(K);this.refs[K]=$}if(Y)this.validateSchema(A,!0);return $}_checkUnique(A){if(this.schemas[A]||this.refs[A])throw Error(`schema with key or id "${A}" already exists`)}_compileSchemaEnv(A){if(A.meta)this._compileMetaSchema(A);else LR6.compileSchema.call(this,A);if(!A.validate)throw Error("ajv implementation error");return A.validate}_compileMetaSchema(A){let q=this.opts;this.opts=this._metaOpts;try{LR6.compileSchema.call(this,A)}finally{this.opts=q}}}Z81.ValidationError=M5K.default;Z81.MissingRefError=K9A.default;JU.default=Z81;function A9A(A,q,K,Y="error"){for(let z in A){let w=z;if(w in q)this.logger[Y](`${K}: option ${z}. ${A[w]}`)}}function q9A(A){return A=(0,yR6.normalizeId)(A),this.schemas[A]||this.refs[A]}function v5K(){let A=this.opts.schemas;if(!A)return;if(Array.isArray(A))this.addSchema(A);else for(let q in A)this.addSchema(A[q],q)}function V5K(){for(let A in this.opts.formats){let q=this.opts.formats[A];if(q)this.addFormat(A,q)}}function N5K(A){if(Array.isArray(A)){this.addVocabulary(A);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let q in A){let K=A[q];if(!K.keyword)K.keyword=q;this.addKeyword(K)}}function k5K(){let A={...this.opts};for(let q of W5K)delete A[q];return A}var E5K={log(){},warn(){},error(){}};function L5K(A){if(A===!1)return E5K;if(A===void 0)return console;if(A.log&&A.warn&&A.error)return A;throw Error("logger must implement log, warn and error methods")}var y5K=/^[a-z_$][a-z0-9_$:-]*$/i;function R5K(A,q){let{RULES:K}=this;if((0,eU1.eachItem)(A,(Y)=>{if(K.keywords[Y])throw Error(`Keyword ${Y} is already defined`);if(!y5K.test(Y))throw Error(`Keyword ${Y} has invalid name`)}),!q)return;if(q.$data&&!(("code"in q)||("validate"in q)))throw Error('$data keyword must have "code" or "validate" function')}function tU1(A,q,K){var Y;let z=q===null||q===void 0?void 0:q.post;if(K&&z)throw Error('keyword with "post" flag cannot have "type"');let{RULES:w}=this,_=z?w.post:w.rules.find(({type:O})=>O===K);if(!_)_={type:K,rules:[]},w.rules.push(_);if(w.keywords[A]=!0,!q)return;let $={keyword:A,definition:{...q,type:(0,G81.getJSONTypes)(q.type),schemaType:(0,G81.getJSONTypes)(q.schemaType)}};if(q.before)S5K.call(this,_,$,q.before);else _.rules.push($);w.all[A]=$,(Y=q.implements)===null||Y===void 0||Y.forEach((O)=>this.addKeyword(O))}function S5K(A,q,K){let Y=A.rules.findIndex((z)=>z.keyword===K);if(Y>=0)A.rules.splice(Y,0,q);else A.rules.push(q),this.logger.warn(`rule ${K} is not defined`)}function h5K(A){let{metaSchema:q}=A;if(q===void 0)return;if(A.$data&&this.opts.$data)q=z9A(q);A.validateSchema=this.compile(q,!0)}var C5K={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function z9A(A){return{anyOf:[A,C5K]}}});var $9A=h((_9A)=>{Object.defineProperty(_9A,"__esModule",{value:!0});var b5K={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};_9A.default=b5K});var D9A=h((J9A)=>{Object.defineProperty(J9A,"__esModule",{value:!0});J9A.callRef=J9A.getValidate=void 0;var m5K=NR6(),O9A=oL(),$v=n5(),GH6=OU(),H9A=D81(),f81=Dz(),B5K={keyword:"$ref",schemaType:"string",code(A){let{gen:q,schema:K,it:Y}=A,{baseId:z,schemaEnv:w,validateName:_,opts:$,self:O}=Y,{root:H}=w;if((K==="#"||K==="#/")&&z===H.baseId)return J();let j=H9A.resolveRef.call(O,H,z,K);if(j===void 0)throw new m5K.default(Y.opts.uriResolver,z,K);if(j instanceof H9A.SchemaEnv)return M(j);return D(j);function J(){if(w===H)return T81(A,_,w,w.$async);let X=q.scopeValue("root",{ref:H});return T81(A,$v._`${X}.validate`,H,H.$async)}function M(X){let P=j9A(A,X);T81(A,P,X,X.$async)}function D(X){let P=q.scopeValue("schema",$.code.source===!0?{ref:X,code:(0,$v.stringify)(X)}:{ref:X}),W=q.name("valid"),G=A.subschema({schema:X,dataTypes:[],schemaPath:$v.nil,topSchemaRef:P,errSchemaPath:K},W);A.mergeEvaluated(G),A.ok(W)}}};function j9A(A,q){let{gen:K}=A;return q.validate?K.scopeValue("validate",{ref:q.validate}):$v._`${K.scopeValue("wrapper",{ref:q})}.validate`}J9A.getValidate=j9A;function T81(A,q,K,Y){let{gen:z,it:w}=A,{allErrors:_,schemaEnv:$,opts:O}=w,H=O.passContext?GH6.default.this:$v.nil;if(Y)j();else J();function j(){if(!$.$async)throw Error("async schema referenced by sync schema");let X=z.let("valid");z.try(()=>{if(z.code($v._`await ${(0,O9A.callValidateCode)(A,q,H)}`),D(q),!_)z.assign(X,!0)},(P)=>{if(z.if($v._`!(${P} instanceof ${w.ValidationError})`,()=>z.throw(P)),M(P),!_)z.assign(X,!1)}),A.ok(X)}function J(){A.result((0,O9A.callValidateCode)(A,q,H),()=>D(q),()=>M(q))}function M(X){let P=$v._`${X}.errors`;z.assign(GH6.default.vErrors,$v._`${GH6.default.vErrors} === null ? ${P} : ${GH6.default.vErrors}.concat(${P})`),z.assign(GH6.default.errors,$v._`${GH6.default.vErrors}.length`)}function D(X){var P;if(!w.opts.unevaluated)return;let W=(P=K===null||K===void 0?void 0:K.validate)===null||P===void 0?void 0:P.evaluated;if(w.props!==!0)if(W&&!W.dynamicProps){if(W.props!==void 0)w.props=f81.mergeEvaluated.props(z,W.props,w.props)}else{let G=z.var("props",$v._`${X}.evaluated.props`);w.props=f81.mergeEvaluated.props(z,G,w.props,$v.Name)}if(w.items!==!0)if(W&&!W.dynamicItems){if(W.items!==void 0)w.items=f81.mergeEvaluated.items(z,W.items,w.items)}else{let G=z.var("items",$v._`${X}.evaluated.items`);w.items=f81.mergeEvaluated.items(z,G,w.items,$v.Name)}}}J9A.callRef=T81;J9A.default=B5K});var P9A=h((X9A)=>{Object.defineProperty(X9A,"__esModule",{value:!0});var F5K=$9A(),Q5K=D9A(),U5K=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",F5K.default,Q5K.default];X9A.default=U5K});var G9A=h((W9A)=>{Object.defineProperty(W9A,"__esModule",{value:!0});var v81=n5(),Io=v81.operators,V81={maximum:{okStr:"<=",ok:Io.LTE,fail:Io.GT},minimum:{okStr:">=",ok:Io.GTE,fail:Io.LT},exclusiveMaximum:{okStr:"<",ok:Io.LT,fail:Io.GTE},exclusiveMinimum:{okStr:">",ok:Io.GT,fail:Io.LTE}},c5K={message:({keyword:A,schemaCode:q})=>v81.str`must be ${V81[A].okStr} ${q}`,params:({keyword:A,schemaCode:q})=>v81._`{comparison: ${V81[A].okStr}, limit: ${q}}`},l5K={keyword:Object.keys(V81),type:"number",schemaType:"number",$data:!0,error:c5K,code(A){let{keyword:q,data:K,schemaCode:Y}=A;A.fail$data(v81._`${K} ${V81[q].fail} ${Y} || isNaN(${K})`)}};W9A.default=l5K});var f9A=h((Z9A)=>{Object.defineProperty(Z9A,"__esModule",{value:!0});var RR6=n5(),n5K={message:({schemaCode:A})=>RR6.str`must be multiple of ${A}`,params:({schemaCode:A})=>RR6._`{multipleOf: ${A}}`},r5K={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:n5K,code(A){let{gen:q,data:K,schemaCode:Y,it:z}=A,w=z.opts.multipleOfPrecision,_=q.let("res"),$=w?RR6._`Math.abs(Math.round(${_}) - ${_}) > 1e-${w}`:RR6._`${_} !== parseInt(${_})`;A.fail$data(RR6._`(${Y} === 0 || (${_} = ${K}/${Y}, ${$}))`)}};Z9A.default=r5K});var V9A=h((v9A)=>{Object.defineProperty(v9A,"__esModule",{value:!0});function T9A(A){let q=A.length,K=0,Y=0,z;while(Y<q)if(K++,z=A.charCodeAt(Y++),z>=55296&&z<=56319&&Y<q){if(z=A.charCodeAt(Y),(z&64512)===56320)Y++}return K}v9A.default=T9A;T9A.code='require("ajv/dist/runtime/ucs2length").default'});var k9A=h((N9A)=>{Object.defineProperty(N9A,"__esModule",{value:!0});var P46=n5(),s5K=Dz(),t5K=V9A(),e5K={message({keyword:A,schemaCode:q}){let K=A==="maxLength"?"more":"fewer";return P46.str`must NOT have ${K} than ${q} characters`},params:({schemaCode:A})=>P46._`{limit: ${A}}`},A9K={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:e5K,code(A){let{keyword:q,data:K,schemaCode:Y,it:z}=A,w=q==="maxLength"?P46.operators.GT:P46.operators.LT,_=z.opts.unicode===!1?P46._`${K}.length`:P46._`${(0,s5K.useFunc)(A.gen,t5K.default)}(${K})`;A.fail$data(P46._`${_} ${w} ${Y}`)}};N9A.default=A9K});var L9A=h((E9A)=>{Object.defineProperty(E9A,"__esModule",{value:!0});var K9K=oL(),N81=n5(),Y9K={message:({schemaCode:A})=>N81.str`must match pattern "${A}"`,params:({schemaCode:A})=>N81._`{pattern: ${A}}`},z9K={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Y9K,code(A){let{data:q,$data:K,schema:Y,schemaCode:z,it:w}=A,_=w.opts.unicodeRegExp?"u":"",$=K?N81._`(new RegExp(${z}, ${_}))`:(0,K9K.usePattern)(A,Y);A.fail$data(N81._`!${$}.test(${q})`)}};E9A.default=z9K});var R9A=h((y9A)=>{Object.defineProperty(y9A,"__esModule",{value:!0});var SR6=n5(),_9K={message({keyword:A,schemaCode:q}){let K=A==="maxProperties"?"more":"fewer";return SR6.str`must NOT have ${K} than ${q} properties`},params:({schemaCode:A})=>SR6._`{limit: ${A}}`},$9K={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:_9K,code(A){let{keyword:q,data:K,schemaCode:Y}=A,z=q==="maxProperties"?SR6.operators.GT:SR6.operators.LT;A.fail$data(SR6._`Object.keys(${K}).length ${z} ${Y}`)}};y9A.default=$9K});var h9A=h((S9A)=>{Object.defineProperty(S9A,"__esModule",{value:!0});var hR6=oL(),CR6=n5(),H9K=Dz(),j9K={message:({params:{missingProperty:A}})=>CR6.str`must have required property '${A}'`,params:({params:{missingProperty:A}})=>CR6._`{missingProperty: ${A}}`},J9K={keyword:"required",type:"object",schemaType:"array",$data:!0,error:j9K,code(A){let{gen:q,schema:K,schemaCode:Y,data:z,$data:w,it:_}=A,{opts:$}=_;if(!w&&K.length===0)return;let O=K.length>=$.loopRequired;if(_.allErrors)H();else j();if($.strictRequired){let D=A.parentSchema.properties,{definedProperties:X}=A.it;for(let P of K)if((D===null||D===void 0?void 0:D[P])===void 0&&!X.has(P)){let W=_.schemaEnv.baseId+_.errSchemaPath,G=`required property "${P}" is not defined at "${W}" (strictRequired)`;(0,H9K.checkStrictMode)(_,G,_.opts.strictRequired)}}function H(){if(O||w)A.block$data(CR6.nil,J);else for(let D of K)(0,hR6.checkReportMissingProp)(A,D)}function j(){let D=q.let("missing");if(O||w){let X=q.let("valid",!0);A.block$data(X,()=>M(D,X)),A.ok(X)}else q.if((0,hR6.checkMissingProp)(A,K,D)),(0,hR6.reportMissingProp)(A,D),q.else()}function J(){q.forOf("prop",Y,(D)=>{A.setParams({missingProperty:D}),q.if((0,hR6.noPropertyInData)(q,z,D,$.ownProperties),()=>A.error())})}function M(D,X){A.setParams({missingProperty:D}),q.forOf(D,Y,()=>{q.assign(X,(0,hR6.propertyInData)(q,z,D,$.ownProperties)),q.if((0,CR6.not)(X),()=>{A.error(),q.break()})},CR6.nil)}}};S9A.default=J9K});var I9A=h((C9A)=>{Object.defineProperty(C9A,"__esModule",{value:!0});var IR6=n5(),D9K={message({keyword:A,schemaCode:q}){let K=A==="maxItems"?"more":"fewer";return IR6.str`must NOT have ${K} than ${q} items`},params:({schemaCode:A})=>IR6._`{limit: ${A}}`},X9K={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:D9K,code(A){let{keyword:q,data:K,schemaCode:Y}=A,z=q==="maxItems"?IR6.operators.GT:IR6.operators.LT;A.fail$data(IR6._`${K}.length ${z} ${Y}`)}};C9A.default=X9K});var k81=h((b9A)=>{Object.defineProperty(b9A,"__esModule",{value:!0});var x9A=pU1();x9A.code='require("ajv/dist/runtime/equal").default';b9A.default=x9A});var m9A=h((u9A)=>{Object.defineProperty(u9A,"__esModule",{value:!0});var Ad1=ZR6(),A0=n5(),G9K=Dz(),Z9K=k81(),f9K={message:({params:{i:A,j:q}})=>A0.str`must NOT have duplicate items (items ## ${q} and ${A} are identical)`,params:({params:{i:A,j:q}})=>A0._`{i: ${A}, j: ${q}}`},T9K={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:f9K,code(A){let{gen:q,data:K,$data:Y,schema:z,parentSchema:w,schemaCode:_,it:$}=A;if(!Y&&!z)return;let O=q.let("valid"),H=w.items?(0,Ad1.getSchemaTypes)(w.items):[];A.block$data(O,j,A0._`${_} === false`),A.ok(O);function j(){let X=q.let("i",A0._`${K}.length`),P=q.let("j");A.setParams({i:X,j:P}),q.assign(O,!0),q.if(A0._`${X} > 1`,()=>(J()?M:D)(X,P))}function J(){return H.length>0&&!H.some((X)=>X==="object"||X==="array")}function M(X,P){let W=q.name("item"),G=(0,Ad1.checkDataTypes)(H,W,$.opts.strictNumbers,Ad1.DataType.Wrong),Z=q.const("indices",A0._`{}`);q.for(A0._`;${X}--;`,()=>{if(q.let(W,A0._`${K}[${X}]`),q.if(G,A0._`continue`),H.length>1)q.if(A0._`typeof ${W} == "string"`,A0._`${W} += "_"`);q.if(A0._`typeof ${Z}[${W}] == "number"`,()=>{q.assign(P,A0._`${Z}[${W}]`),A.error(),q.assign(O,!1).break()}).code(A0._`${Z}[${W}] = ${X}`)})}function D(X,P){let W=(0,G9K.useFunc)(q,Z9K.default),G=q.name("outer");q.label(G).for(A0._`;${X}--;`,()=>q.for(A0._`${P} = ${X}; ${P}--;`,()=>q.if(A0._`${W}(${K}[${X}], ${K}[${P}])`,()=>{A.error(),q.assign(O,!1).break(G)})))}}};u9A.default=T9K});var g9A=h((B9A)=>{Object.defineProperty(B9A,"__esModule",{value:!0});var qd1=n5(),V9K=Dz(),N9K=k81(),k9K={message:"must be equal to constant",params:({schemaCode:A})=>qd1._`{allowedValue: ${A}}`},E9K={keyword:"const",$data:!0,error:k9K,code(A){let{gen:q,data:K,$data:Y,schemaCode:z,schema:w}=A;if(Y||w&&typeof w=="object")A.fail$data(qd1._`!${(0,V9K.useFunc)(q,N9K.default)}(${K}, ${z})`);else A.fail(qd1._`${w} !== ${K}`)}};B9A.default=E9K});var F9A=h((p9A)=>{Object.defineProperty(p9A,"__esModule",{value:!0});var xR6=n5(),y9K=Dz(),R9K=k81(),S9K={message:"must be equal to one of the allowed values",params:({schemaCode:A})=>xR6._`{allowedValues: ${A}}`},h9K={keyword:"enum",schemaType:"array",$data:!0,error:S9K,code(A){let{gen:q,data:K,$data:Y,schema:z,schemaCode:w,it:_}=A;if(!Y&&z.length===0)throw Error("enum must have non-empty array");let $=z.length>=_.opts.loopEnum,O,H=()=>O!==null&&O!==void 0?O:O=(0,y9K.useFunc)(q,R9K.default),j;if($||Y)j=q.let("valid"),A.block$data(j,J);else{if(!Array.isArray(z))throw Error("ajv implementation error");let D=q.const("vSchema",w);j=(0,xR6.or)(...z.map((X,P)=>M(D,P)))}A.pass(j);function J(){q.assign(j,!1),q.forOf("v",w,(D)=>q.if(xR6._`${H()}(${K}, ${D})`,()=>q.assign(j,!0).break()))}function M(D,X){let P=z[X];return typeof P==="object"&&P!==null?xR6._`${H()}(${K}, ${D}[${X}])`:xR6._`${K} === ${P}`}}};p9A.default=h9K});var U9A=h((Q9A)=>{Object.defineProperty(Q9A,"__esModule",{value:!0});var I9K=G9A(),x9K=f9A(),b9K=k9A(),u9K=L9A(),m9K=R9A(),B9K=h9A(),g9K=I9A(),p9K=m9A(),F9K=g9A(),Q9K=F9A(),U9K=[I9K.default,x9K.default,b9K.default,u9K.default,m9K.default,B9K.default,g9K.default,p9K.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},F9K.default,Q9K.default];Q9A.default=U9K});var Yd1=h((c9A)=>{Object.defineProperty(c9A,"__esModule",{value:!0});c9A.validateAdditionalItems=void 0;var W46=n5(),Kd1=Dz(),c9K={message:({params:{len:A}})=>W46.str`must NOT have more than ${A} items`,params:({params:{len:A}})=>W46._`{limit: ${A}}`},l9K={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:c9K,code(A){let{parentSchema:q,it:K}=A,{items:Y}=q;if(!Array.isArray(Y)){(0,Kd1.checkStrictMode)(K,'"additionalItems" is ignored when "items" is not an array of schemas');return}d9A(A,Y)}};function d9A(A,q){let{gen:K,schema:Y,data:z,keyword:w,it:_}=A;_.items=!0;let $=K.const("len",W46._`${z}.length`);if(Y===!1)A.setParams({len:q.length}),A.pass(W46._`${$} <= ${q.length}`);else if(typeof Y=="object"&&!(0,Kd1.alwaysValidSchema)(_,Y)){let H=K.var("valid",W46._`${$} <= ${q.length}`);K.if((0,W46.not)(H),()=>O(H)),A.ok(H)}function O(H){K.forRange("i",q.length,$,(j)=>{if(A.subschema({keyword:w,dataProp:j,dataPropType:Kd1.Type.Num},H),!_.allErrors)K.if((0,W46.not)(H),()=>K.break())})}}c9A.validateAdditionalItems=d9A;c9A.default=l9K});var zd1=h((r9A)=>{Object.defineProperty(r9A,"__esModule",{value:!0});r9A.validateTuple=void 0;var i9A=n5(),E81=Dz(),n9K=oL(),r9K={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(A){let{schema:q,it:K}=A;if(Array.isArray(q))return n9A(A,"additionalItems",q);if(K.items=!0,(0,E81.alwaysValidSchema)(K,q))return;A.ok((0,n9K.validateArray)(A))}};function n9A(A,q,K=A.schema){let{gen:Y,parentSchema:z,data:w,keyword:_,it:$}=A;if(j(z),$.opts.unevaluated&&K.length&&$.items!==!0)$.items=E81.mergeEvaluated.items(Y,K.length,$.items);let O=Y.name("valid"),H=Y.const("len",i9A._`${w}.length`);K.forEach((J,M)=>{if((0,E81.alwaysValidSchema)($,J))return;Y.if(i9A._`${H} > ${M}`,()=>A.subschema({keyword:_,schemaProp:M,dataProp:M},O)),A.ok(O)});function j(J){let{opts:M,errSchemaPath:D}=$,X=K.length,P=X===J.minItems&&(X===J.maxItems||J[q]===!1);if(M.strictTuples&&!P){let W=`"${_}" is ${X}-tuple, but minItems or maxItems/${q} are not specified or different at path "${D}"`;(0,E81.checkStrictMode)($,W,M.strictTuples)}}}r9A.validateTuple=n9A;r9A.default=r9K});var s9A=h((a9A)=>{Object.defineProperty(a9A,"__esModule",{value:!0});var a9K=zd1(),s9K={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:(A)=>(0,a9K.validateTuple)(A,"items")};a9A.default=s9K});var AYA=h((e9A)=>{Object.defineProperty(e9A,"__esModule",{value:!0});var t9A=n5(),e9K=Dz(),AYK=oL(),qYK=Yd1(),KYK={message:({params:{len:A}})=>t9A.str`must NOT have more than ${A} items`,params:({params:{len:A}})=>t9A._`{limit: ${A}}`},YYK={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:KYK,code(A){let{schema:q,parentSchema:K,it:Y}=A,{prefixItems:z}=K;if(Y.items=!0,(0,e9K.alwaysValidSchema)(Y,q))return;if(z)(0,qYK.validateAdditionalItems)(A,z);else A.ok((0,AYK.validateArray)(A))}};e9A.default=YYK});var KYA=h((qYA)=>{Object.defineProperty(qYA,"__esModule",{value:!0});var aL=n5(),L81=Dz(),wYK={message:({params:{min:A,max:q}})=>q===void 0?aL.str`must contain at least ${A} valid item(s)`:aL.str`must contain at least ${A} and no more than ${q} valid item(s)`,params:({params:{min:A,max:q}})=>q===void 0?aL._`{minContains: ${A}}`:aL._`{minContains: ${A}, maxContains: ${q}}`},_YK={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:wYK,code(A){let{gen:q,schema:K,parentSchema:Y,data:z,it:w}=A,_,$,{minContains:O,maxContains:H}=Y;if(w.opts.next)_=O===void 0?1:O,$=H;else _=1;let j=q.const("len",aL._`${z}.length`);if(A.setParams({min:_,max:$}),$===void 0&&_===0){(0,L81.checkStrictMode)(w,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if($!==void 0&&_>$){(0,L81.checkStrictMode)(w,'"minContains" > "maxContains" is always invalid'),A.fail();return}if((0,L81.alwaysValidSchema)(w,K)){let P=aL._`${j} >= ${_}`;if($!==void 0)P=aL._`${P} && ${j} <= ${$}`;A.pass(P);return}w.items=!0;let J=q.name("valid");if($===void 0&&_===1)D(J,()=>q.if(J,()=>q.break()));else if(_===0){if(q.let(J,!0),$!==void 0)q.if(aL._`${z}.length > 0`,M)}else q.let(J,!1),M();A.result(J,()=>A.reset());function M(){let P=q.name("_valid"),W=q.let("count",0);D(P,()=>q.if(P,()=>X(W)))}function D(P,W){q.forRange("i",0,j,(G)=>{A.subschema({keyword:"contains",dataProp:G,dataPropType:L81.Type.Num,compositeRule:!0},P),W()})}function X(P){if(q.code(aL._`${P}++`),$===void 0)q.if(aL._`${P} >= ${_}`,()=>q.assign(J,!0).break());else if(q.if(aL._`${P} > ${$}`,()=>q.assign(J,!1).break()),_===1)q.assign(J,!0);else q.if(aL._`${P} >= ${_}`,()=>q.assign(J,!0))}}};qYA.default=_YK});var OYA=h((wYA)=>{Object.defineProperty(wYA,"__esModule",{value:!0});wYA.validateSchemaDeps=wYA.validatePropertyDeps=wYA.error=void 0;var wd1=n5(),OYK=Dz(),bR6=oL();wYA.error={message:({params:{property:A,depsCount:q,deps:K}})=>{let Y=q===1?"property":"properties";return wd1.str`must have ${Y} ${K} when property ${A} is present`},params:({params:{property:A,depsCount:q,deps:K,missingProperty:Y}})=>wd1._`{property: ${A},
    missingProperty: ${Y},
    depsCount: ${q},
    deps: ${K}}`};var HYK={keyword:"dependencies",type:"object",schemaType:"object",error:wYA.error,code(A){let[q,K]=jYK(A);YYA(A,q),zYA(A,K)}};function jYK({schema:A}){let q={},K={};for(let Y in A){if(Y==="__proto__")continue;let z=Array.isArray(A[Y])?q:K;z[Y]=A[Y]}return[q,K]}function YYA(A,q=A.schema){let{gen:K,data:Y,it:z}=A;if(Object.keys(q).length===0)return;let w=K.let("missing");for(let _ in q){let $=q[_];if($.length===0)continue;let O=(0,bR6.propertyInData)(K,Y,_,z.opts.ownProperties);if(A.setParams({property:_,depsCount:$.length,deps:$.join(", ")}),z.allErrors)K.if(O,()=>{for(let H of $)(0,bR6.checkReportMissingProp)(A,H)});else K.if(wd1._`${O} && (${(0,bR6.checkMissingProp)(A,$,w)})`),(0,bR6.reportMissingProp)(A,w),K.else()}}wYA.validatePropertyDeps=YYA;function zYA(A,q=A.schema){let{gen:K,data:Y,keyword:z,it:w}=A,_=K.name("valid");for(let $ in q){if((0,OYK.alwaysValidSchema)(w,q[$]))continue;K.if((0,bR6.propertyInData)(K,Y,$,w.opts.ownProperties),()=>{let O=A.subschema({keyword:z,schemaProp:$},_);A.mergeValidEvaluated(O,_)},()=>K.var(_,!0)),A.ok(_)}}wYA.validateSchemaDeps=zYA;wYA.default=HYK});var JYA=h((jYA)=>{Object.defineProperty(jYA,"__esModule",{value:!0});var HYA=n5(),DYK=Dz(),XYK={message:"property name must be valid",params:({params:A})=>HYA._`{propertyName: ${A.propertyName}}`},PYK={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:XYK,code(A){let{gen:q,schema:K,data:Y,it:z}=A;if((0,DYK.alwaysValidSchema)(z,K))return;let w=q.name("valid");q.forIn("key",Y,(_)=>{A.setParams({propertyName:_}),A.subschema({keyword:"propertyNames",data:_,dataTypes:["string"],propertyName:_,compositeRule:!0},w),q.if((0,HYA.not)(w),()=>{if(A.error(!0),!z.allErrors)q.break()})}),A.ok(w)}};jYA.default=PYK});var _d1=h((MYA)=>{Object.defineProperty(MYA,"__esModule",{value:!0});var y81=oL(),GC=n5(),GYK=OU(),R81=Dz(),ZYK={message:"must NOT have additional properties",params:({params:A})=>GC._`{additionalProperty: ${A.additionalProperty}}`},fYK={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:ZYK,code(A){let{gen:q,schema:K,parentSchema:Y,data:z,errsCount:w,it:_}=A;if(!w)throw Error("ajv implementation error");let{allErrors:$,opts:O}=_;if(_.props=!0,O.removeAdditional!=="all"&&(0,R81.alwaysValidSchema)(_,K))return;let H=(0,y81.allSchemaProperties)(Y.properties),j=(0,y81.allSchemaProperties)(Y.patternProperties);J(),A.ok(GC._`${w} === ${GYK.default.errors}`);function J(){q.forIn("key",z,(W)=>{if(!H.length&&!j.length)X(W);else q.if(M(W),()=>X(W))})}function M(W){let G;if(H.length>8){let Z=(0,R81.schemaRefOrVal)(_,Y.properties,"properties");G=(0,y81.isOwnProperty)(q,Z,W)}else if(H.length)G=(0,GC.or)(...H.map((Z)=>GC._`${W} === ${Z}`));else G=GC.nil;if(j.length)G=(0,GC.or)(G,...j.map((Z)=>GC._`${(0,y81.usePattern)(A,Z)}.test(${W})`));return(0,GC.not)(G)}function D(W){q.code(GC._`delete ${z}[${W}]`)}function X(W){if(O.removeAdditional==="all"||O.removeAdditional&&K===!1){D(W);return}if(K===!1){if(A.setParams({additionalProperty:W}),A.error(),!$)q.break();return}if(typeof K=="object"&&!(0,R81.alwaysValidSchema)(_,K)){let G=q.name("valid");if(O.removeAdditional==="failing")P(W,G,!1),q.if((0,GC.not)(G),()=>{A.reset(),D(W)});else if(P(W,G),!$)q.if((0,GC.not)(G),()=>q.break())}}function P(W,G,Z){let f={keyword:"additionalProperties",dataProp:W,dataPropType:R81.Type.Str};if(Z===!1)Object.assign(f,{compositeRule:!0,createErrors:!1,allErrors:!1});A.subschema(f,G)}}};MYA.default=fYK});var WYA=h((PYA)=>{Object.defineProperty(PYA,"__esModule",{value:!0});var vYK=VR6(),DYA=oL(),$d1=Dz(),XYA=_d1(),VYK={keyword:"properties",type:"object",schemaType:"object",code(A){let{gen:q,schema:K,parentSchema:Y,data:z,it:w}=A;if(w.opts.removeAdditional==="all"&&Y.additionalProperties===void 0)XYA.default.code(new vYK.KeywordCxt(w,XYA.default,"additionalProperties"));let _=(0,DYA.allSchemaProperties)(K);for(let J of _)w.definedProperties.add(J);if(w.opts.unevaluated&&_.length&&w.props!==!0)w.props=$d1.mergeEvaluated.props(q,(0,$d1.toHash)(_),w.props);let $=_.filter((J)=>!(0,$d1.alwaysValidSchema)(w,K[J]));if($.length===0)return;let O=q.name("valid");for(let J of $){if(H(J))j(J);else{if(q.if((0,DYA.propertyInData)(q,z,J,w.opts.ownProperties)),j(J),!w.allErrors)q.else().var(O,!0);q.endIf()}A.it.definedProperties.add(J),A.ok(O)}function H(J){return w.opts.useDefaults&&!w.compositeRule&&K[J].default!==void 0}function j(J){A.subschema({keyword:"properties",schemaProp:J,dataProp:J},O)}}};PYA.default=VYK});var vYA=h((TYA)=>{Object.defineProperty(TYA,"__esModule",{value:!0});var GYA=oL(),S81=n5(),ZYA=Dz(),fYA=Dz(),kYK={keyword:"patternProperties",type:"object",schemaType:"object",code(A){let{gen:q,schema:K,data:Y,parentSchema:z,it:w}=A,{opts:_}=w,$=(0,GYA.allSchemaProperties)(K),O=$.filter((P)=>(0,ZYA.alwaysValidSchema)(w,K[P]));if($.length===0||O.length===$.length&&(!w.opts.unevaluated||w.props===!0))return;let H=_.strictSchema&&!_.allowMatchingProperties&&z.properties,j=q.name("valid");if(w.props!==!0&&!(w.props instanceof S81.Name))w.props=(0,fYA.evaluatedPropsToName)(q,w.props);let{props:J}=w;M();function M(){for(let P of $){if(H)D(P);if(w.allErrors)X(P);else q.var(j,!0),X(P),q.if(j)}}function D(P){for(let W in H)if(new RegExp(P).test(W))(0,ZYA.checkStrictMode)(w,`property ${W} matches pattern ${P} (use allowMatchingProperties)`)}function X(P){q.forIn("key",Y,(W)=>{q.if(S81._`${(0,GYA.usePattern)(A,P)}.test(${W})`,()=>{let G=O.includes(P);if(!G)A.subschema({keyword:"patternProperties",schemaProp:P,dataProp:W,dataPropType:fYA.Type.Str},j);if(w.opts.unevaluated&&J!==!0)q.assign(S81._`${J}[${W}]`,!0);else if(!G&&!w.allErrors)q.if((0,S81.not)(j),()=>q.break())})})}}};TYA.default=kYK});var NYA=h((VYA)=>{Object.defineProperty(VYA,"__esModule",{value:!0});var LYK=Dz(),yYK={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(A){let{gen:q,schema:K,it:Y}=A;if((0,LYK.alwaysValidSchema)(Y,K)){A.fail();return}let z=q.name("valid");A.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},z),A.failResult(z,()=>A.reset(),()=>A.error())},error:{message:"must NOT be valid"}};VYA.default=yYK});var EYA=h((kYA)=>{Object.defineProperty(kYA,"__esModule",{value:!0});var SYK=oL(),hYK={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:SYK.validateUnion,error:{message:"must match a schema in anyOf"}};kYA.default=hYK});var yYA=h((LYA)=>{Object.defineProperty(LYA,"__esModule",{value:!0});var h81=n5(),IYK=Dz(),xYK={message:"must match exactly one schema in oneOf",params:({params:A})=>h81._`{passingSchemas: ${A.passing}}`},bYK={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:xYK,code(A){let{gen:q,schema:K,parentSchema:Y,it:z}=A;if(!Array.isArray(K))throw Error("ajv implementation error");if(z.opts.discriminator&&Y.discriminator)return;let w=K,_=q.let("valid",!1),$=q.let("passing",null),O=q.name("_valid");A.setParams({passing:$}),q.block(H),A.result(_,()=>A.reset(),()=>A.error(!0));function H(){w.forEach((j,J)=>{let M;if((0,IYK.alwaysValidSchema)(z,j))q.var(O,!0);else M=A.subschema({keyword:"oneOf",schemaProp:J,compositeRule:!0},O);if(J>0)q.if(h81._`${O} && ${_}`).assign(_,!1).assign($,h81._`[${$}, ${J}]`).else();q.if(O,()=>{if(q.assign(_,!0),q.assign($,J),M)A.mergeEvaluated(M,h81.Name)})})}}};LYA.default=bYK});var SYA=h((RYA)=>{Object.defineProperty(RYA,"__esModule",{value:!0});var mYK=Dz(),BYK={keyword:"allOf",schemaType:"array",code(A){let{gen:q,schema:K,it:Y}=A;if(!Array.isArray(K))throw Error("ajv implementation error");let z=q.name("valid");K.forEach((w,_)=>{if((0,mYK.alwaysValidSchema)(Y,w))return;let $=A.subschema({keyword:"allOf",schemaProp:_},z);A.ok(z),A.mergeEvaluated($)})}};RYA.default=BYK});var xYA=h((IYA)=>{Object.defineProperty(IYA,"__esModule",{value:!0});var C81=n5(),CYA=Dz(),pYK={message:({params:A})=>C81.str`must match "${A.ifClause}" schema`,params:({params:A})=>C81._`{failingKeyword: ${A.ifClause}}`},FYK={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:pYK,code(A){let{gen:q,parentSchema:K,it:Y}=A;if(K.then===void 0&&K.else===void 0)(0,CYA.checkStrictMode)(Y,'"if" without "then" and "else" is ignored');let z=hYA(Y,"then"),w=hYA(Y,"else");if(!z&&!w)return;let _=q.let("valid",!0),$=q.name("_valid");if(O(),A.reset(),z&&w){let j=q.let("ifClause");A.setParams({ifClause:j}),q.if($,H("then",j),H("else",j))}else if(z)q.if($,H("then"));else q.if((0,C81.not)($),H("else"));A.pass(_,()=>A.error(!0));function O(){let j=A.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},$);A.mergeEvaluated(j)}function H(j,J){return()=>{let M=A.subschema({keyword:j},$);if(q.assign(_,$),A.mergeValidEvaluated(M,_),J)q.assign(J,C81._`${j}`);else A.setParams({ifClause:j})}}}};function hYA(A,q){let K=A.schema[q];return K!==void 0&&!(0,CYA.alwaysValidSchema)(A,K)}IYA.default=FYK});var uYA=h((bYA)=>{Object.defineProperty(bYA,"__esModule",{value:!0});var UYK=Dz(),dYK={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:A,parentSchema:q,it:K}){if(q.if===void 0)(0,UYK.checkStrictMode)(K,`"${A}" without "if" is ignored`)}};bYA.default=dYK});var BYA=h((mYA)=>{Object.defineProperty(mYA,"__esModule",{value:!0});var lYK=Yd1(),iYK=s9A(),nYK=zd1(),rYK=AYA(),oYK=KYA(),aYK=OYA(),sYK=JYA(),tYK=_d1(),eYK=WYA(),AzK=vYA(),qzK=NYA(),KzK=EYA(),YzK=yYA(),zzK=SYA(),wzK=xYA(),_zK=uYA();function $zK(A=!1){let q=[qzK.default,KzK.default,YzK.default,zzK.default,wzK.default,_zK.default,sYK.default,tYK.default,aYK.default,eYK.default,AzK.default];if(A)q.push(iYK.default,rYK.default);else q.push(lYK.default,nYK.default);return q.push(oYK.default),q}mYA.default=$zK});var pYA=h((gYA)=>{Object.defineProperty(gYA,"__esModule",{value:!0});var rj=n5(),HzK={message:({schemaCode:A})=>rj.str`must match format "${A}"`,params:({schemaCode:A})=>rj._`{format: ${A}}`},jzK={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:HzK,code(A,q){let{gen:K,data:Y,$data:z,schema:w,schemaCode:_,it:$}=A,{opts:O,errSchemaPath:H,schemaEnv:j,self:J}=$;if(!O.validateFormats)return;if(z)M();else D();function M(){let X=K.scopeValue("formats",{ref:J.formats,code:O.code.formats}),P=K.const("fDef",rj._`${X}[${_}]`),W=K.let("fType"),G=K.let("format");K.if(rj._`typeof ${P} == "object" && !(${P} instanceof RegExp)`,()=>K.assign(W,rj._`${P}.type || "string"`).assign(G,rj._`${P}.validate`),()=>K.assign(W,rj._`"string"`).assign(G,P)),A.fail$data((0,rj.or)(Z(),f()));function Z(){if(O.strictSchema===!1)return rj.nil;return rj._`${_} && !${G}`}function f(){let v=j.$async?rj._`(${P}.async ? await ${G}(${Y}) : ${G}(${Y}))`:rj._`${G}(${Y})`,V=rj._`(typeof ${G} == "function" ? ${v} : ${G}.test(${Y}))`;return rj._`${G} && ${G} !== true && ${W} === ${q} && !${V}`}}function D(){let X=J.formats[w];if(!X){Z();return}if(X===!0)return;let[P,W,G]=f(X);if(P===q)A.pass(v());function Z(){if(O.strictSchema===!1){J.logger.warn(V());return}throw Error(V());function V(){return`unknown format "${w}" ignored in schema at path "${H}"`}}function f(V){let N=V instanceof RegExp?(0,rj.regexpCode)(V):O.code.formats?rj._`${O.code.formats}${(0,rj.getProperty)(w)}`:void 0,L=K.scopeValue("formats",{key:w,ref:V,code:N});if(typeof V=="object"&&!(V instanceof RegExp))return[V.type||"string",V.validate,rj._`${L}.validate`];return["string",V,L]}function v(){if(typeof X=="object"&&!(X instanceof RegExp)&&X.async){if(!j.$async)throw Error("async format in sync schema");return rj._`await ${G}(${Y})`}return typeof W=="function"?rj._`${G}(${Y})`:rj._`${G}.test(${Y})`}}}};gYA.default=jzK});var QYA=h((FYA)=>{Object.defineProperty(FYA,"__esModule",{value:!0});var MzK=pYA(),DzK=[MzK.default];FYA.default=DzK});var cYA=h((UYA)=>{Object.defineProperty(UYA,"__esModule",{value:!0});UYA.contentVocabulary=UYA.metadataVocabulary=void 0;UYA.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];UYA.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var nYA=h((iYA)=>{Object.defineProperty(iYA,"__esModule",{value:!0});var WzK=P9A(),GzK=U9A(),ZzK=BYA(),fzK=QYA(),lYA=cYA(),TzK=[WzK.default,GzK.default,(0,ZzK.default)(),fzK.default,lYA.metadataVocabulary,lYA.contentVocabulary];iYA.default=TzK});var sYA=h((oYA)=>{Object.defineProperty(oYA,"__esModule",{value:!0});oYA.DiscrError=void 0;var rYA;(function(A){A.Tag="tag",A.Mapping="mapping"})(rYA||(oYA.DiscrError=rYA={}))});var AzA=h((eYA)=>{Object.defineProperty(eYA,"__esModule",{value:!0});var ZH6=n5(),Od1=sYA(),tYA=D81(),VzK=NR6(),NzK=Dz(),kzK={message:({params:{discrError:A,tagName:q}})=>A===Od1.DiscrError.Tag?`tag "${q}" must be string`:`value of tag "${q}" must be in oneOf`,params:({params:{discrError:A,tag:q,tagName:K}})=>ZH6._`{error: ${A}, tag: ${K}, tagValue: ${q}}`},EzK={keyword:"discriminator",type:"object",schemaType:"object",error:kzK,code(A){let{gen:q,data:K,schema:Y,parentSchema:z,it:w}=A,{oneOf:_}=z;if(!w.opts.discriminator)throw Error("discriminator: requires discriminator option");let $=Y.propertyName;if(typeof $!="string")throw Error("discriminator: requires propertyName");if(Y.mapping)throw Error("discriminator: mapping is not supported");if(!_)throw Error("discriminator: requires oneOf keyword");let O=q.let("valid",!1),H=q.const("tag",ZH6._`${K}${(0,ZH6.getProperty)($)}`);q.if(ZH6._`typeof ${H} == "string"`,()=>j(),()=>A.error(!1,{discrError:Od1.DiscrError.Tag,tag:H,tagName:$})),A.ok(O);function j(){let D=M();q.if(!1);for(let X in D)q.elseIf(ZH6._`${H} === ${X}`),q.assign(O,J(D[X]));q.else(),A.error(!1,{discrError:Od1.DiscrError.Mapping,tag:H,tagName:$}),q.endIf()}function J(D){let X=q.name("valid"),P=A.subschema({keyword:"oneOf",schemaProp:D},X);return A.mergeEvaluated(P,ZH6.Name),X}function M(){var D;let X={},P=G(z),W=!0;for(let v=0;v<_.length;v++){let V=_[v];if((V===null||V===void 0?void 0:V.$ref)&&!(0,NzK.schemaHasRulesButRef)(V,w.self.RULES)){let L=V.$ref;if(V=tYA.resolveRef.call(w.self,w.schemaEnv.root,w.baseId,L),V instanceof tYA.SchemaEnv)V=V.schema;if(V===void 0)throw new VzK.default(w.opts.uriResolver,w.baseId,L)}let N=(D=V===null||V===void 0?void 0:V.properties)===null||D===void 0?void 0:D[$];if(typeof N!="object")throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${$}"`);W=W&&(P||G(V)),Z(N,v)}if(!W)throw Error(`discriminator: "${$}" must be required`);return X;function G({required:v}){return Array.isArray(v)&&v.includes($)}function Z(v,V){if(v.const)f(v.const,V);else if(v.enum)for(let N of v.enum)f(N,V);else throw Error(`discriminator: "properties/${$}" must have "const" or "enum"`)}function f(v,V){if(typeof v!="string"||v in X)throw Error(`discriminator: "${$}" values must be unique strings`);X[v]=V}}}};eYA.default=EzK});var qzA=h((v7w,yzK)=>{yzK.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var x81=h((Ov,Hd1)=>{Object.defineProperty(Ov,"__esModule",{value:!0});Ov.MissingRefError=Ov.ValidationError=Ov.CodeGen=Ov.Name=Ov.nil=Ov.stringify=Ov.str=Ov._=Ov.KeywordCxt=Ov.Ajv=void 0;var RzK=w9A(),SzK=nYA(),hzK=AzA(),KzA=qzA(),CzK=["/properties"],I81="http://json-schema.org/draft-07/schema";class uR6 extends RzK.default{_addVocabularies(){if(super._addVocabularies(),SzK.default.forEach((A)=>this.addVocabulary(A)),this.opts.discriminator)this.addKeyword(hzK.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let A=this.opts.$data?this.$dataMetaSchema(KzA,CzK):KzA;this.addMetaSchema(A,I81,!1),this.refs["http://json-schema.org/schema"]=I81}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(I81)?I81:void 0)}}Ov.Ajv=uR6;Hd1.exports=Ov=uR6;Hd1.exports.Ajv=uR6;Object.defineProperty(Ov,"__esModule",{value:!0});Ov.default=uR6;var IzK=VR6();Object.defineProperty(Ov,"KeywordCxt",{enumerable:!0,get:function(){return IzK.KeywordCxt}});var fH6=n5();Object.defineProperty(Ov,"_",{enumerable:!0,get:function(){return fH6._}});Object.defineProperty(Ov,"str",{enumerable:!0,get:function(){return fH6.str}});Object.defineProperty(Ov,"stringify",{enumerable:!0,get:function(){return fH6.stringify}});Object.defineProperty(Ov,"nil",{enumerable:!0,get:function(){return fH6.nil}});Object.defineProperty(Ov,"Name",{enumerable:!0,get:function(){return fH6.Name}});Object.defineProperty(Ov,"CodeGen",{enumerable:!0,get:function(){return fH6.CodeGen}});var xzK=J81();Object.defineProperty(Ov,"ValidationError",{enumerable:!0,get:function(){return xzK.default}});var bzK=NR6();Object.defineProperty(Ov,"MissingRefError",{enumerable:!0,get:function(){return bzK.default}})});var MzA=h((jzA)=>{Object.defineProperty(jzA,"__esModule",{value:!0});jzA.formatNames=jzA.fastFormats=jzA.fullFormats=void 0;function qm(A,q){return{validate:A,compare:q}}jzA.fullFormats={date:qm(_zA,Dd1),time:qm(Jd1(!0),Xd1),"date-time":qm(YzA(!0),OzA),"iso-time":qm(Jd1(),$zA),"iso-date-time":qm(YzA(),HzA),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:UzK,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:ozK,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:dzK,int32:{type:"number",validate:izK},int64:{type:"number",validate:nzK},float:{type:"number",validate:wzA},double:{type:"number",validate:wzA},password:!0,binary:!0};jzA.fastFormats={...jzA.fullFormats,date:qm(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,Dd1),time:qm(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Xd1),"date-time":qm(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,OzA),"iso-time":qm(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,$zA),"iso-date-time":qm(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,HzA),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};jzA.formatNames=Object.keys(jzA.fullFormats);function BzK(A){return A%4===0&&(A%100!==0||A%400===0)}var gzK=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,pzK=[0,31,28,31,30,31,30,31,31,30,31,30,31];function _zA(A){let q=gzK.exec(A);if(!q)return!1;let K=+q[1],Y=+q[2],z=+q[3];return Y>=1&&Y<=12&&z>=1&&z<=(Y===2&&BzK(K)?29:pzK[Y])}function Dd1(A,q){if(!(A&&q))return;if(A>q)return 1;if(A<q)return-1;return 0}var jd1=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function Jd1(A){return function(K){let Y=jd1.exec(K);if(!Y)return!1;let z=+Y[1],w=+Y[2],_=+Y[3],$=Y[4],O=Y[5]==="-"?-1:1,H=+(Y[6]||0),j=+(Y[7]||0);if(H>23||j>59||A&&!$)return!1;if(z<=23&&w<=59&&_<60)return!0;let J=w-j*O,M=z-H*O-(J<0?1:0);return(M===23||M===-1)&&(J===59||J===-1)&&_<61}}function Xd1(A,q){if(!(A&&q))return;let K=new Date("2020-01-01T"+A).valueOf(),Y=new Date("2020-01-01T"+q).valueOf();if(!(K&&Y))return;return K-Y}function $zA(A,q){if(!(A&&q))return;let K=jd1.exec(A),Y=jd1.exec(q);if(!(K&&Y))return;if(A=K[1]+K[2]+K[3],q=Y[1]+Y[2]+Y[3],A>q)return 1;if(A<q)return-1;return 0}var Md1=/t|\s/i;function YzA(A){let q=Jd1(A);return function(Y){let z=Y.split(Md1);return z.length===2&&_zA(z[0])&&q(z[1])}}function OzA(A,q){if(!(A&&q))return;let K=new Date(A).valueOf(),Y=new Date(q).valueOf();if(!(K&&Y))return;return K-Y}function HzA(A,q){if(!(A&&q))return;let[K,Y]=A.split(Md1),[z,w]=q.split(Md1),_=Dd1(K,z);if(_===void 0)return;return _||Xd1(Y,w)}var FzK=/\/|:/,QzK=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function UzK(A){return FzK.test(A)&&QzK.test(A)}var zzA=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function dzK(A){return zzA.lastIndex=0,zzA.test(A)}var czK=-2147483648,lzK=2147483647;function izK(A){return Number.isInteger(A)&&A<=lzK&&A>=czK}function nzK(A){return Number.isInteger(A)}function wzA(){return!0}var rzK=/[^\\]\\Z/;function ozK(A){if(rzK.test(A))return!1;try{return new RegExp(A),!0}catch(q){return!1}}});var XzA=h((DzA)=>{Object.defineProperty(DzA,"__esModule",{value:!0});DzA.formatLimitDefinition=void 0;var szK=x81(),ZC=n5(),xo=ZC.operators,b81={formatMaximum:{okStr:"<=",ok:xo.LTE,fail:xo.GT},formatMinimum:{okStr:">=",ok:xo.GTE,fail:xo.LT},formatExclusiveMaximum:{okStr:"<",ok:xo.LT,fail:xo.GTE},formatExclusiveMinimum:{okStr:">",ok:xo.GT,fail:xo.LTE}},tzK={message:({keyword:A,schemaCode:q})=>ZC.str`should be ${b81[A].okStr} ${q}`,params:({keyword:A,schemaCode:q})=>ZC._`{comparison: ${b81[A].okStr}, limit: ${q}}`};DzA.formatLimitDefinition={keyword:Object.keys(b81),type:"string",schemaType:"string",$data:!0,error:tzK,code(A){let{gen:q,data:K,schemaCode:Y,keyword:z,it:w}=A,{opts:_,self:$}=w;if(!_.validateFormats)return;let O=new szK.KeywordCxt(w,$.RULES.all.format.definition,"format");if(O.$data)H();else j();function H(){let M=q.scopeValue("formats",{ref:$.formats,code:_.code.formats}),D=q.const("fmt",ZC._`${M}[${O.schemaCode}]`);A.fail$data((0,ZC.or)(ZC._`typeof ${D} != "object"`,ZC._`${D} instanceof RegExp`,ZC._`typeof ${D}.compare != "function"`,J(D)))}function j(){let M=O.schema,D=$.formats[M];if(!D||D===!0)return;if(typeof D!="object"||D instanceof RegExp||typeof D.compare!="function")throw Error(`"${z}": format "${M}" does not define "compare" function`);let X=q.scopeValue("formats",{key:M,ref:D,code:_.code.formats?ZC._`${_.code.formats}${(0,ZC.getProperty)(M)}`:void 0});A.fail$data(J(X))}function J(M){return ZC._`${M}.compare(${K}, ${Y}) ${b81[z].fail} 0`}},dependencies:["format"]};var ezK=(A)=>{return A.addKeyword(DzA.formatLimitDefinition),A};DzA.default=ezK});var ZzA=h((mR6,GzA)=>{Object.defineProperty(mR6,"__esModule",{value:!0});var TH6=MzA(),qwK=XzA(),Gd1=n5(),PzA=new Gd1.Name("fullFormats"),KwK=new Gd1.Name("fastFormats"),Zd1=(A,q={keywords:!0})=>{if(Array.isArray(q))return WzA(A,q,TH6.fullFormats,PzA),A;let[K,Y]=q.mode==="fast"?[TH6.fastFormats,KwK]:[TH6.fullFormats,PzA],z=q.formats||TH6.formatNames;if(WzA(A,z,K,Y),q.keywords)(0,qwK.default)(A);return A};Zd1.get=(A,q="full")=>{let Y=(q==="fast"?TH6.fastFormats:TH6.fullFormats)[A];if(!Y)throw Error(`Unknown format "${A}"`);return Y};function WzA(A,q,K,Y){var z,w;(z=(w=A.opts.code).formats)!==null&&z!==void 0||(w.formats=Gd1._`require("ajv-formats/dist/formats").${Y}`);for(let _ of q)A.addFormat(_,K[_])}GzA.exports=mR6=Zd1;Object.defineProperty(mR6,"__esModule",{value:!0});mR6.default=Zd1});function YwK(){let A=new fzA.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return TzA.default(A),A}class BR6{constructor(A){this._ajv=A??YwK()}getValidator(A){let q="$id"in A&&typeof A.$id==="string"?this._ajv.getSchema(A.$id)??this._ajv.compile(A):this._ajv.compile(A);return(K)=>{if(q(K))return{valid:!0,data:K,errorMessage:void 0};else return{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(q.errors)}}}}var fzA,TzA;var fd1=E(()=>{fzA=q6(x81(),1),TzA=q6(ZzA(),1)});class Td1{constructor(A){this._server=A}requestStream(A,q,K){return this._server.requestStream(A,q,K)}createMessageStream(A,q){let K=this._server.getClientCapabilities();if((A.tools||A.toolChoice)&&!K?.sampling?.tools)throw Error("Client does not support sampling tools capability.");if(A.messages.length>0){let Y=A.messages[A.messages.length-1],z=Array.isArray(Y.content)?Y.content:[Y.content],w=z.some((H)=>H.type==="tool_result"),_=A.messages.length>1?A.messages[A.messages.length-2]:void 0,$=_?Array.isArray(_.content)?_.content:[_.content]:[],O=$.some((H)=>H.type==="tool_use");if(w){if(z.some((H)=>H.type!=="tool_result"))throw Error("The last message must contain only tool_result content if any is present");if(!O)throw Error("tool_result blocks are not matching any tool_use from the previous message")}if(O){let H=new Set($.filter((J)=>J.type==="tool_use").map((J)=>J.id)),j=new Set(z.filter((J)=>J.type==="tool_result").map((J)=>J.toolUseId));if(H.size!==j.size||![...H].every((J)=>j.has(J)))throw Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:A},A46,q)}elicitInputStream(A,q){let K=this._server.getClientCapabilities(),Y=A.mode??"form";switch(Y){case"url":{if(!K?.elicitation?.url)throw Error("Client does not support url elicitation.");break}case"form":{if(!K?.elicitation?.form)throw Error("Client does not support form elicitation.");break}}let z=Y==="form"&&A.mode===void 0?{...A,mode:"form"}:A;return this.requestStream({method:"elicitation/create",params:z},Po,q)}async getTask(A,q){return this._server.getTask({taskId:A},q)}async getTaskResult(A,q,K){return this._server.getTaskResult({taskId:A},q,K)}async listTasks(A,q){return this._server.listTasks(A?{cursor:A}:void 0,q)}async cancelTask(A,q){return this._server.cancelTask({taskId:A},q)}}var vzA=E(()=>{WD()});function u81(A,q,K){if(!A)throw Error(`${K} does not support task creation (required for ${q})`);switch(q){case"tools/call":if(!A.tools?.call)throw Error(`${K} does not support task creation for tools/call (required for ${q})`);break;default:break}}function m81(A,q,K){if(!A)throw Error(`${K} does not support task creation (required for ${q})`);switch(q){case"sampling/createMessage":if(!A.sampling?.createMessage)throw Error(`${K} does not support task creation for sampling/createMessage (required for ${q})`);break;case"elicitation/create":if(!A.elicitation?.create)throw Error(`${K} does not support task creation for elicitation/create (required for ${q})`);break;default:break}}var gR6;var vd1=E(()=>{GU1();WD();fd1();JR6();vzA();gR6=class gR6 extends DR6{constructor(A,q){super(q);if(this._serverInfo=A,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(dy6.options.map((K,Y)=>[K,Y])),this.isMessageIgnored=(K,Y)=>{let z=this._loggingLevels.get(Y);return z?this.LOG_LEVEL_SEVERITY.get(K)<this.LOG_LEVEL_SEVERITY.get(z):!1},this._capabilities=q?.capabilities??{},this._instructions=q?.instructions,this._jsonSchemaValidator=q?.jsonSchemaValidator??new BR6,this.setRequestHandler(_Q1,(K)=>this._oninitialize(K)),this.setNotificationHandler(M11,()=>this.oninitialized?.()),this._capabilities.logging)this.setRequestHandler(WQ1,async(K,Y)=>{let z=Y.sessionId||Y.requestInfo?.headers["mcp-session-id"]||void 0,{level:w}=K.params,_=dy6.safeParse(w);if(_.success)this._loggingLevels.set(z,_.data);return{}})}get experimental(){if(!this._experimental)this._experimental={tasks:new Td1(this)};return this._experimental}registerCapabilities(A){if(this.transport)throw Error("Cannot register capabilities after connecting to transport");this._capabilities=a11(this._capabilities,A)}setRequestHandler(A,q){let Y=HH6(A)?.method;if(!Y)throw Error("Schema is missing a method literal");let z;if(Eo(Y)){let _=Y;z=_._zod?.def?.value??_.value}else{let _=Y;z=_._def?.value??_.value}if(typeof z!=="string")throw Error("Schema method literal must be a string");if(z==="tools/call"){let _=async($,O)=>{let H=oZ(e76,$);if(!H.success){let D=H.error instanceof Error?H.error.message:String(H.error);throw new Oq(aq.InvalidParams,`Invalid tools/call request: ${D}`)}let{params:j}=H.data,J=await Promise.resolve(q($,O));if(j.task){let D=oZ(sQ,J);if(!D.success){let X=D.error instanceof Error?D.error.message:String(D.error);throw new Oq(aq.InvalidParams,`Invalid task creation result: ${X}`)}return D.data}let M=oZ(ru,J);if(!M.success){let D=M.error instanceof Error?M.error.message:String(M.error);throw new Oq(aq.InvalidParams,`Invalid tools/call result: ${D}`)}return M.data};return super.setRequestHandler(A,_)}return super.setRequestHandler(A,q)}assertCapabilityForMethod(A){switch(A){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw Error(`Client does not support sampling (required for ${A})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw Error(`Client does not support elicitation (required for ${A})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw Error(`Client does not support listing roots (required for ${A})`);break;case"ping":break}}assertNotificationCapability(A){switch(A){case"notifications/message":if(!this._capabilities.logging)throw Error(`Server does not support logging (required for ${A})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw Error(`Server does not support notifying about resources (required for ${A})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw Error(`Server does not support notifying of tool list changes (required for ${A})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw Error(`Server does not support notifying of prompt list changes (required for ${A})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw Error(`Client does not support URL elicitation (required for ${A})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(A){if(!this._capabilities)return;switch(A){case"completion/complete":if(!this._capabilities.completions)throw Error(`Server does not support completions (required for ${A})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw Error(`Server does not support logging (required for ${A})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw Error(`Server does not support prompts (required for ${A})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw Error(`Server does not support resources (required for ${A})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Server does not support tools (required for ${A})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw Error(`Server does not support tasks capability (required for ${A})`);break;case"ping":case"initialize":break}}assertTaskCapability(A){m81(this._clientCapabilities?.tasks?.requests,A,"Client")}assertTaskHandlerCapability(A){if(!this._capabilities)return;u81(this._capabilities.tasks?.requests,A,"Server")}async _oninitialize(A){let q=A.params.protocolVersion;return this._clientCapabilities=A.params.capabilities,this._clientVersion=A.params.clientInfo,{protocolVersion:O11.includes(q)?q:Do,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},aQ)}async createMessage(A,q){if(A.tools||A.toolChoice){if(!this._clientCapabilities?.sampling?.tools)throw Error("Client does not support sampling tools capability.")}if(A.messages.length>0){let K=A.messages[A.messages.length-1],Y=Array.isArray(K.content)?K.content:[K.content],z=Y.some((O)=>O.type==="tool_result"),w=A.messages.length>1?A.messages[A.messages.length-2]:void 0,_=w?Array.isArray(w.content)?w.content:[w.content]:[],$=_.some((O)=>O.type==="tool_use");if(z){if(Y.some((O)=>O.type!=="tool_result"))throw Error("The last message must contain only tool_result content if any is present");if(!$)throw Error("tool_result blocks are not matching any tool_use from the previous message")}if($){let O=new Set(_.filter((j)=>j.type==="tool_use").map((j)=>j.id)),H=new Set(Y.filter((j)=>j.type==="tool_result").map((j)=>j.toolUseId));if(O.size!==H.size||![...O].every((j)=>H.has(j)))throw Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}if(A.tools)return this.request({method:"sampling/createMessage",params:A},cy6,q);return this.request({method:"sampling/createMessage",params:A},A46,q)}async elicitInput(A,q){switch(A.mode??"form"){case"url":{if(!this._clientCapabilities?.elicitation?.url)throw Error("Client does not support url elicitation.");let Y=A;return this.request({method:"elicitation/create",params:Y},Po,q)}case"form":{if(!this._clientCapabilities?.elicitation?.form)throw Error("Client does not support form elicitation.");let Y=A.mode==="form"?A:{...A,mode:"form"},z=await this.request({method:"elicitation/create",params:Y},Po,q);if(z.action==="accept"&&z.content&&Y.requestedSchema)try{let _=this._jsonSchemaValidator.getValidator(Y.requestedSchema)(z.content);if(!_.valid)throw new Oq(aq.InvalidParams,`Elicitation response content does not match requested schema: ${_.errorMessage}`)}catch(w){if(w instanceof Oq)throw w;throw new Oq(aq.InternalError,`Error validating elicitation response: ${w instanceof Error?w.message:String(w)}`)}return z}}}createElicitationCompletionNotifier(A,q){if(!this._clientCapabilities?.elicitation?.url)throw Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:A}},q)}async listRoots(A,q){return this.request({method:"roots/list",params:A},TQ1,q)}async sendLoggingMessage(A,q){if(this._capabilities.logging){if(!this.isMessageIgnored(A.level,q))return this.notification({method:"notifications/message",params:A})}}async sendResourceUpdated(A){return this.notification({method:"notifications/resources/updated",params:A})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}}});class VzA{clients=new Map;tabRoutes=new Map;context;notificationHandler=null;constructor(A){this.context=A}setNotificationHandler(A){this.notificationHandler=A;for(let q of this.clients.values())q.setNotificationHandler(A)}async ensureConnected(){let{logger:A,serverName:q}=this.context;this.refreshClients();let K=[];for(let z of this.clients.values())if(!z.isConnected())K.push(z.ensureConnected().catch(()=>!1));if(K.length>0)await Promise.all(K);let Y=this.getConnectedClients().length;if(Y===0)return A.info(`[${q}] No connected sockets in pool`),!1;return A.info(`[${q}] Socket pool: ${Y} connected`),!0}async callTool(A,q,K){if(A==="tabs_context_mcp")return this.callTabsContext(q);let Y=q.tabId;if(Y!==void 0){let w=this.tabRoutes.get(Y);if(w){let _=this.clients.get(w);if(_?.isConnected())return _.callTool(A,q)}}let z=this.getConnectedClients();if(z.length===0)throw new rZ(`[${this.context.serverName}] No connected sockets available`);return z[0].callTool(A,q)}async setPermissionMode(A,q){let K=this.getConnectedClients();await Promise.all(K.map((Y)=>Y.setPermissionMode(A,q)))}isConnected(){return this.getConnectedClients().length>0}disconnect(){for(let A of this.clients.values())A.disconnect();this.clients.clear(),this.tabRoutes.clear()}getConnectedClients(){return[...this.clients.values()].filter((A)=>A.isConnected())}async callTabsContext(A){let{logger:q,serverName:K}=this.context,Y=this.getConnectedClients();if(Y.length===0)throw new rZ(`[${K}] No connected sockets available`);if(Y.length===1){let _=await Y[0].callTool("tabs_context_mcp",A);return this.updateTabRoutes(_,this.getSocketPathForClient(Y[0])),_}let z=await Promise.allSettled(Y.map(async(_)=>{let $=await _.callTool("tabs_context_mcp",A),O=this.getSocketPathForClient(_);return{result:$,socketPath:O}})),w=[];this.tabRoutes.clear();for(let _ of z){if(_.status!=="fulfilled"){q.info(`[${K}] tabs_context_mcp failed on one socket: ${_.reason}`);continue}let{result:$,socketPath:O}=_.value;this.updateTabRoutes($,O);let H=this.extractTabs($);if(H)w.push(...H)}if(w.length>0){let _=w.map(($)=>{let O=$;return`  • tabId ${O.tabId}: "${O.title}" (${O.url})`}).join(`
`);return{result:{content:[{type:"text",text:JSON.stringify({availableTabs:w})},{type:"text",text:`

Tab Context:
- Available tabs:
${_}`}]}}}for(let _ of z)if(_.status==="fulfilled")return _.value.result;throw new rZ(`[${K}] All sockets failed for tabs_context_mcp`)}updateTabRoutes(A,q){let K=this.extractTabs(A);if(!K)return;for(let Y of K)if(typeof Y==="object"&&Y!==null&&"tabId"in Y){let z=Y.tabId;this.tabRoutes.set(z,q)}}extractTabs(A){if(!A||typeof A!=="object")return null;let K=A.result?.content;if(!K||!Array.isArray(K))return null;for(let Y of K)if(Y.type==="text"&&Y.text)try{let z=JSON.parse(Y.text);if(Array.isArray(z))return z;if(z&&Array.isArray(z.availableTabs))return z.availableTabs}catch{}return null}getSocketPathForClient(A){for(let[q,K]of this.clients.entries())if(K===A)return q;return""}refreshClients(){let A=this.getAvailableSocketPaths(),{logger:q,serverName:K}=this.context;for(let Y of A)if(!this.clients.has(Y)){q.info(`[${K}] Adding socket to pool: ${Y}`);let z={...this.context,socketPath:Y,getSocketPath:void 0,getSocketPaths:void 0},w=u11(z);if(w.disableAutoReconnect=!0,this.notificationHandler)w.setNotificationHandler(this.notificationHandler);this.clients.set(Y,w)}for(let[Y,z]of this.clients.entries())if(!A.includes(Y)){q.info(`[${K}] Removing stale socket from pool: ${Y}`),z.disconnect(),this.clients.delete(Y);for(let[w,_]of this.tabRoutes.entries())if(_===Y)this.tabRoutes.delete(w)}}getAvailableSocketPaths(){return this.context.getSocketPaths?.()??[]}}function NzA(A){return new VzA(A)}var kzA=E(()=>{KR6()});async function zwK(A,q,K,Y,z){let w=await q.callTool(K,Y,z);if(A.logger.silly(`[${A.serverName}] Received result from socket bridge: ${JSON.stringify(w)}`),w===null||w===void 0)return{content:[{type:"text",text:"Tool execution completed"}]};let{result:_,error:$}=w,O=$||_,H=!!$;if(!O)return{content:[{type:"text",text:"Tool execution completed"}]};if(H&&$wK(O.content))A.onAuthenticationError();let{content:j}=O;if(j&&Array.isArray(j)){if(H)return{content:j.map((M)=>{if(typeof M==="object"&&M!==null&&"type"in M)return M;return{type:"text",text:String(M)}}),isError:!0};return{content:j.map((M)=>{if(typeof M==="object"&&M!==null&&"type"in M&&"source"in M){let D=M;if(D.type==="image"&&typeof D.source==="object"&&D.source!==null&&"data"in D.source)return{type:"image",data:D.source.data,mimeType:"media_type"in D.source?D.source.media_type||"image/png":"image/png"}}if(typeof M==="object"&&M!==null&&"type"in M)return M;return{type:"text",text:String(M)}}),isError:H}}if(typeof j==="string")return{content:[{type:"text",text:j}],isError:H};return A.logger.warn(`[${A.serverName}] Unexpected result format from socket bridge`,w),{content:[{type:"text",text:JSON.stringify(w)}],isError:H}}function Vd1(A){return{content:[{type:"text",text:A.onToolCallDisconnected()}]}}async function wwK(A,q){let K=["ask","skip_all_permission_checks","follow_a_plan"],Y=q.mode,z=Y&&K.includes(Y)?Y:"ask";if(A.setPermissionMode)await A.setPermissionMode(z,q.allowed_domains);return{content:[{type:"text",text:`Permission mode set to: ${z}`}]}}async function _wK(A,q){if(!A.bridgeConfig)return{content:[{type:"text",text:"Browser switching is only available with bridge connections."}],isError:!0};if(!await q.ensureConnected())return Vd1(A);let Y=await q.switchBrowser?.()??null;if(Y==="no_other_browsers")return{content:[{type:"text",text:"No other browsers available to switch to. Open Chrome with the Claude extension in another browser to switch."}],isError:!0};if(Y)return{content:[{type:"text",text:`Connected to browser "${Y.name}".`}]};return{content:[{type:"text",text:"No browser responded within the timeout. Make sure Chrome is open with the Claude extension installed, then try again."}],isError:!0}}function $wK(A){return(Array.isArray(A)?A.map((K)=>{if(typeof K==="string")return K;if(typeof K==="object"&&K!==null&&"text"in K&&typeof K.text==="string")return K.text;return""}).join(" "):String(A)).toLowerCase().includes("re-authenticated")}var EzA=async(A,q,K,Y,z)=>{if(K==="set_permission_mode")return wwK(q,Y);if(K==="switch_browser")return _wK(A,q);try{let w=await q.ensureConnected();if(A.logger.silly(`[${A.serverName}] Server is connected: ${w}. Received tool call: ${K} with args: ${JSON.stringify(Y)}.`),w)return await zwK(A,q,K,Y,z);return Vd1(A)}catch(w){if(A.logger.info(`[${A.serverName}] Error calling tool:`,w),w instanceof rZ)return Vd1(A);return{content:[{type:"text",text:`Error calling tool, please try again. : ${w instanceof Error?w.message:String(w)}`}],isError:!0}}};var LzA=E(()=>{KR6()});function Nd1(A){return A.bridgeConfig?g11(A):A.getSocketPaths?NzA(A):u11(A)}function B81(A,q){let{serverName:K,logger:Y}=A,z=q??Nd1(A),w=new gR6({name:K,version:"1.0.0"},{capabilities:{tools:{},logging:{}}});return w.setRequestHandler(Fy6,async()=>{if(A.isDisabled?.())return{tools:[]};return{tools:A.bridgeConfig?KU:KU.filter((_)=>_.name!=="switch_browser")}}),w.setRequestHandler(e76,async(_)=>{return Y.info(`[${K}] Executing tool: ${_.params.name}`),EzA(A,z,_.params.name,_.params.arguments||{})}),z.setNotificationHandler((_)=>{Y.info(`[${K}] Forwarding MCP notification: ${_.method}`),w.notification({method:_.method,params:_.params}).catch(($)=>{Y.info(`[${K}] Failed to forward MCP notification: ${$.message}`)})}),w}var yzA=E(()=>{vd1();WD();gQ1();pQ1();KR6();kzA();LzA()});var RzA={};d1(RzA,{localPlatformLabel:()=>m11,createClaudeForChromeMcpServer:()=>B81,createChromeSocketClient:()=>Nd1,createBridgeClient:()=>g11,BridgeClient:()=>B11,BROWSER_TOOLS:()=>KU});var pR6=E(()=>{gQ1();pQ1();yzA()});var aw=h((SzA)=>{Object.defineProperty(SzA,"__esModule",{value:!0});SzA.isFunction=void 0;function OwK(A){return typeof A==="function"}SzA.isFunction=OwK});var bo=h((CzA)=>{Object.defineProperty(CzA,"__esModule",{value:!0});CzA.createErrorClass=void 0;function HwK(A){var q=function(Y){Error.call(Y),Y.stack=Error().stack},K=A(q);return K.prototype=Object.create(Error.prototype),K.prototype.constructor=K,K}CzA.createErrorClass=HwK});var kd1=h((xzA)=>{Object.defineProperty(xzA,"__esModule",{value:!0});xzA.UnsubscriptionError=void 0;var jwK=bo();xzA.UnsubscriptionError=jwK.createErrorClass(function(A){return function(K){A(this),this.message=K?K.length+` errors occurred during unsubscription:
`+K.map(function(Y,z){return z+1+") "+Y.toString()}).join(`
  `):"",this.name="UnsubscriptionError",this.errors=K}})});var MU=h((uzA)=>{Object.defineProperty(uzA,"__esModule",{value:!0});uzA.arrRemove=void 0;function JwK(A,q){if(A){var K=A.indexOf(q);0<=K&&A.splice(K,1)}}uzA.arrRemove=JwK});var rN=h((Hv)=>{var BzA=Hv&&Hv.__values||function(A){var q=typeof Symbol==="function"&&Symbol.iterator,K=q&&A[q],Y=0;if(K)return K.call(A);if(A&&typeof A.length==="number")return{next:function(){if(A&&Y>=A.length)A=void 0;return{value:A&&A[Y++],done:!A}}};throw TypeError(q?"Object is not iterable.":"Symbol.iterator is not defined.")},gzA=Hv&&Hv.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},pzA=Hv&&Hv.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(Hv,"__esModule",{value:!0});Hv.isSubscription=Hv.EMPTY_SUBSCRIPTION=Hv.Subscription=void 0;var FR6=aw(),Ed1=kd1(),FzA=MU(),Ld1=function(){function A(q){this.initialTeardown=q,this.closed=!1,this._parentage=null,this._finalizers=null}return A.prototype.unsubscribe=function(){var q,K,Y,z,w;if(!this.closed){this.closed=!0;var _=this._parentage;if(_)if(this._parentage=null,Array.isArray(_))try{for(var $=BzA(_),O=$.next();!O.done;O=$.next()){var H=O.value;H.remove(this)}}catch(P){q={error:P}}finally{try{if(O&&!O.done&&(K=$.return))K.call($)}finally{if(q)throw q.error}}else _.remove(this);var j=this.initialTeardown;if(FR6.isFunction(j))try{j()}catch(P){w=P instanceof Ed1.UnsubscriptionError?P.errors:[P]}var J=this._finalizers;if(J){this._finalizers=null;try{for(var M=BzA(J),D=M.next();!D.done;D=M.next()){var X=D.value;try{QzA(X)}catch(P){if(w=w!==null&&w!==void 0?w:[],P instanceof Ed1.UnsubscriptionError)w=pzA(pzA([],gzA(w)),gzA(P.errors));else w.push(P)}}}catch(P){Y={error:P}}finally{try{if(D&&!D.done&&(z=M.return))z.call(M)}finally{if(Y)throw Y.error}}}if(w)throw new Ed1.UnsubscriptionError(w)}},A.prototype.add=function(q){var K;if(q&&q!==this)if(this.closed)QzA(q);else{if(q instanceof A){if(q.closed||q._hasParent(this))return;q._addParent(this)}(this._finalizers=(K=this._finalizers)!==null&&K!==void 0?K:[]).push(q)}},A.prototype._hasParent=function(q){var K=this._parentage;return K===q||Array.isArray(K)&&K.includes(q)},A.prototype._addParent=function(q){var K=this._parentage;this._parentage=Array.isArray(K)?(K.push(q),K):K?[K,q]:q},A.prototype._removeParent=function(q){var K=this._parentage;if(K===q)this._parentage=null;else if(Array.isArray(K))FzA.arrRemove(K,q)},A.prototype.remove=function(q){var K=this._finalizers;if(K&&FzA.arrRemove(K,q),q instanceof A)q._removeParent(this)},A.EMPTY=function(){var q=new A;return q.closed=!0,q}(),A}();Hv.Subscription=Ld1;Hv.EMPTY_SUBSCRIPTION=Ld1.EMPTY;function MwK(A){return A instanceof Ld1||A&&"closed"in A&&FR6.isFunction(A.remove)&&FR6.isFunction(A.add)&&FR6.isFunction(A.unsubscribe)}Hv.isSubscription=MwK;function QzA(A){if(FR6.isFunction(A))A();else A.unsubscribe()}});var vH6=h((UzA)=>{Object.defineProperty(UzA,"__esModule",{value:!0});UzA.config=void 0;UzA.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var yd1=h((Km)=>{var czA=Km&&Km.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},lzA=Km&&Km.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(Km,"__esModule",{value:!0});Km.timeoutProvider=void 0;Km.timeoutProvider={setTimeout:function(A,q){var K=[];for(var Y=2;Y<arguments.length;Y++)K[Y-2]=arguments[Y];var z=Km.timeoutProvider.delegate;if(z===null||z===void 0?void 0:z.setTimeout)return z.setTimeout.apply(z,lzA([A,q],czA(K)));return setTimeout.apply(void 0,lzA([A,q],czA(K)))},clearTimeout:function(A){var q=Km.timeoutProvider.delegate;return((q===null||q===void 0?void 0:q.clearTimeout)||clearTimeout)(A)},delegate:void 0}});var Rd1=h((izA)=>{Object.defineProperty(izA,"__esModule",{value:!0});izA.reportUnhandledError=void 0;var DwK=vH6(),XwK=yd1();function PwK(A){XwK.timeoutProvider.setTimeout(function(){var q=DwK.config.onUnhandledError;if(q)q(A);else throw A})}izA.reportUnhandledError=PwK});var q0=h((rzA)=>{Object.defineProperty(rzA,"__esModule",{value:!0});rzA.noop=void 0;function WwK(){}rzA.noop=WwK});var tzA=h((azA)=>{Object.defineProperty(azA,"__esModule",{value:!0});azA.createNotification=azA.nextNotification=azA.errorNotification=azA.COMPLETE_NOTIFICATION=void 0;azA.COMPLETE_NOTIFICATION=function(){return g81("C",void 0,void 0)}();function GwK(A){return g81("E",void 0,A)}azA.errorNotification=GwK;function ZwK(A){return g81("N",A,void 0)}azA.nextNotification=ZwK;function g81(A,q,K){return{kind:A,value:q,error:K}}azA.createNotification=g81});var p81=h((AwA)=>{Object.defineProperty(AwA,"__esModule",{value:!0});AwA.captureError=AwA.errorContext=void 0;var ezA=vH6(),G46=null;function VwK(A){if(ezA.config.useDeprecatedSynchronousErrorHandling){var q=!G46;if(q)G46={errorThrown:!1,error:null};if(A(),q){var K=G46,Y=K.errorThrown,z=K.error;if(G46=null,Y)throw z}}else A()}AwA.errorContext=VwK;function NwK(A){if(ezA.config.useDeprecatedSynchronousErrorHandling&&G46)G46.errorThrown=!0,G46.error=A}AwA.captureError=NwK});var VH6=h((fC)=>{var zwA=fC&&fC.__extends||function(){var A=function(q,K){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,z){Y.__proto__=z}||function(Y,z){for(var w in z)if(Object.prototype.hasOwnProperty.call(z,w))Y[w]=z[w]},A(q,K)};return function(q,K){if(typeof K!=="function"&&K!==null)throw TypeError("Class extends value "+String(K)+" is not a constructor or null");A(q,K);function Y(){this.constructor=q}q.prototype=K===null?Object.create(K):(Y.prototype=K.prototype,new Y)}}();Object.defineProperty(fC,"__esModule",{value:!0});fC.EMPTY_OBSERVER=fC.SafeSubscriber=fC.Subscriber=void 0;var EwK=aw(),KwA=rN(),Id1=vH6(),LwK=Rd1(),YwA=q0(),Sd1=tzA(),ywK=yd1(),RwK=p81(),wwA=function(A){zwA(q,A);function q(K){var Y=A.call(this)||this;if(Y.isStopped=!1,K){if(Y.destination=K,KwA.isSubscription(K))K.add(Y)}else Y.destination=fC.EMPTY_OBSERVER;return Y}return q.create=function(K,Y,z){return new _wA(K,Y,z)},q.prototype.next=function(K){if(this.isStopped)Cd1(Sd1.nextNotification(K),this);else this._next(K)},q.prototype.error=function(K){if(this.isStopped)Cd1(Sd1.errorNotification(K),this);else this.isStopped=!0,this._error(K)},q.prototype.complete=function(){if(this.isStopped)Cd1(Sd1.COMPLETE_NOTIFICATION,this);else this.isStopped=!0,this._complete()},q.prototype.unsubscribe=function(){if(!this.closed)this.isStopped=!0,A.prototype.unsubscribe.call(this),this.destination=null},q.prototype._next=function(K){this.destination.next(K)},q.prototype._error=function(K){try{this.destination.error(K)}finally{this.unsubscribe()}},q.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},q}(KwA.Subscription);fC.Subscriber=wwA;var SwK=Function.prototype.bind;function hd1(A,q){return SwK.call(A,q)}var hwK=function(){function A(q){this.partialObserver=q}return A.prototype.next=function(q){var K=this.partialObserver;if(K.next)try{K.next(q)}catch(Y){F81(Y)}},A.prototype.error=function(q){var K=this.partialObserver;if(K.error)try{K.error(q)}catch(Y){F81(Y)}else F81(q)},A.prototype.complete=function(){var q=this.partialObserver;if(q.complete)try{q.complete()}catch(K){F81(K)}},A}(),_wA=function(A){zwA(q,A);function q(K,Y,z){var w=A.call(this)||this,_;if(EwK.isFunction(K)||!K)_={next:K!==null&&K!==void 0?K:void 0,error:Y!==null&&Y!==void 0?Y:void 0,complete:z!==null&&z!==void 0?z:void 0};else{var $;if(w&&Id1.config.useDeprecatedNextContext)$=Object.create(K),$.unsubscribe=function(){return w.unsubscribe()},_={next:K.next&&hd1(K.next,$),error:K.error&&hd1(K.error,$),complete:K.complete&&hd1(K.complete,$)};else _=K}return w.destination=new hwK(_),w}return q}(wwA);fC.SafeSubscriber=_wA;function F81(A){if(Id1.config.useDeprecatedSynchronousErrorHandling)RwK.captureError(A);else LwK.reportUnhandledError(A)}function CwK(A){throw A}function Cd1(A,q){var K=Id1.config.onStoppedNotification;K&&ywK.timeoutProvider.setTimeout(function(){return K(A,q)})}fC.EMPTY_OBSERVER={closed:!0,next:YwA.noop,error:CwK,complete:YwA.noop}});var QR6=h(($wA)=>{Object.defineProperty($wA,"__esModule",{value:!0});$wA.observable=void 0;$wA.observable=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}()});var K0=h((HwA)=>{Object.defineProperty(HwA,"__esModule",{value:!0});HwA.identity=void 0;function IwK(A){return A}HwA.identity=IwK});var UR6=h((MwA)=>{Object.defineProperty(MwA,"__esModule",{value:!0});MwA.pipeFromArray=MwA.pipe=void 0;var xwK=K0();function bwK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];return JwA(A)}MwA.pipe=bwK;function JwA(A){if(A.length===0)return xwK.identity;if(A.length===1)return A[0];return function(K){return A.reduce(function(Y,z){return z(Y)},K)}}MwA.pipeFromArray=JwA});var k2=h((PwA)=>{Object.defineProperty(PwA,"__esModule",{value:!0});PwA.Observable=void 0;var bd1=VH6(),mwK=rN(),BwK=QR6(),gwK=UR6(),pwK=vH6(),xd1=aw(),FwK=p81(),QwK=function(){function A(q){if(q)this._subscribe=q}return A.prototype.lift=function(q){var K=new A;return K.source=this,K.operator=q,K},A.prototype.subscribe=function(q,K,Y){var z=this,w=dwK(q)?q:new bd1.SafeSubscriber(q,K,Y);return FwK.errorContext(function(){var _=z,$=_.operator,O=_.source;w.add($?$.call(w,O):O?z._subscribe(w):z._trySubscribe(w))}),w},A.prototype._trySubscribe=function(q){try{return this._subscribe(q)}catch(K){q.error(K)}},A.prototype.forEach=function(q,K){var Y=this;return K=XwA(K),new K(function(z,w){var _=new bd1.SafeSubscriber({next:function($){try{q($)}catch(O){w(O),_.unsubscribe()}},error:w,complete:z});Y.subscribe(_)})},A.prototype._subscribe=function(q){var K;return(K=this.source)===null||K===void 0?void 0:K.subscribe(q)},A.prototype[BwK.observable]=function(){return this},A.prototype.pipe=function(){var q=[];for(var K=0;K<arguments.length;K++)q[K]=arguments[K];return gwK.pipeFromArray(q)(this)},A.prototype.toPromise=function(q){var K=this;return q=XwA(q),new q(function(Y,z){var w;K.subscribe(function(_){return w=_},function(_){return z(_)},function(){return Y(w)})})},A.create=function(q){return new A(q)},A}();PwA.Observable=QwK;function XwA(A){var q;return(q=A!==null&&A!==void 0?A:pwK.config.Promise)!==null&&q!==void 0?q:Promise}function UwK(A){return A&&xd1.isFunction(A.next)&&xd1.isFunction(A.error)&&xd1.isFunction(A.complete)}function dwK(A){return A&&A instanceof bd1.Subscriber||UwK(A)&&mwK.isSubscription(A)}});var L4=h((ZwA)=>{Object.defineProperty(ZwA,"__esModule",{value:!0});ZwA.operate=ZwA.hasLift=void 0;var cwK=aw();function GwA(A){return cwK.isFunction(A===null||A===void 0?void 0:A.lift)}ZwA.hasLift=GwA;function lwK(A){return function(q){if(GwA(q))return q.lift(function(K){try{return A(K,this)}catch(Y){this.error(Y)}});throw TypeError("Unable to lift unknown Observable type")}}ZwA.operate=lwK});var Nq=h((uo)=>{var nwK=uo&&uo.__extends||function(){var A=function(q,K){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,z){Y.__proto__=z}||function(Y,z){for(var w in z)if(Object.prototype.hasOwnProperty.call(z,w))Y[w]=z[w]},A(q,K)};return function(q,K){if(typeof K!=="function"&&K!==null)throw TypeError("Class extends value "+String(K)+" is not a constructor or null");A(q,K);function Y(){this.constructor=q}q.prototype=K===null?Object.create(K):(Y.prototype=K.prototype,new Y)}}();Object.defineProperty(uo,"__esModule",{value:!0});uo.OperatorSubscriber=uo.createOperatorSubscriber=void 0;var rwK=VH6();function owK(A,q,K,Y,z){return new TwA(A,q,K,Y,z)}uo.createOperatorSubscriber=owK;var TwA=function(A){nwK(q,A);function q(K,Y,z,w,_,$){var O=A.call(this,K)||this;return O.onFinalize=_,O.shouldUnsubscribe=$,O._next=Y?function(H){try{Y(H)}catch(j){K.error(j)}}:A.prototype._next,O._error=w?function(H){try{w(H)}catch(j){K.error(j)}finally{this.unsubscribe()}}:A.prototype._error,O._complete=z?function(){try{z()}catch(H){K.error(H)}finally{this.unsubscribe()}}:A.prototype._complete,O}return q.prototype.unsubscribe=function(){var K;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var Y=this.closed;A.prototype.unsubscribe.call(this),!Y&&((K=this.onFinalize)===null||K===void 0||K.call(this))}},q}(rwK.Subscriber);uo.OperatorSubscriber=TwA});var Q81=h((vwA)=>{Object.defineProperty(vwA,"__esModule",{value:!0});vwA.refCount=void 0;var awK=L4(),swK=Nq();function twK(){return awK.operate(function(A,q){var K=null;A._refCount++;var Y=swK.createOperatorSubscriber(q,void 0,void 0,void 0,function(){if(!A||A._refCount<=0||0<--A._refCount){K=null;return}var z=A._connection,w=K;if(K=null,z&&(!w||z===w))z.unsubscribe();q.unsubscribe()});if(A.subscribe(Y),!Y.closed)K=A.connect()})}vwA.refCount=twK});var dR6=h((NH6)=>{var ewK=NH6&&NH6.__extends||function(){var A=function(q,K){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,z){Y.__proto__=z}||function(Y,z){for(var w in z)if(Object.prototype.hasOwnProperty.call(z,w))Y[w]=z[w]},A(q,K)};return function(q,K){if(typeof K!=="function"&&K!==null)throw TypeError("Class extends value "+String(K)+" is not a constructor or null");A(q,K);function Y(){this.constructor=q}q.prototype=K===null?Object.create(K):(Y.prototype=K.prototype,new Y)}}();Object.defineProperty(NH6,"__esModule",{value:!0});NH6.ConnectableObservable=void 0;var A2K=k2(),NwA=rN(),q2K=Q81(),K2K=Nq(),Y2K=L4(),z2K=function(A){ewK(q,A);function q(K,Y){var z=A.call(this)||this;if(z.source=K,z.subjectFactory=Y,z._subject=null,z._refCount=0,z._connection=null,Y2K.hasLift(K))z.lift=K.lift;return z}return q.prototype._subscribe=function(K){return this.getSubject().subscribe(K)},q.prototype.getSubject=function(){var K=this._subject;if(!K||K.isStopped)this._subject=this.subjectFactory();return this._subject},q.prototype._teardown=function(){this._refCount=0;var K=this._connection;this._subject=this._connection=null,K===null||K===void 0||K.unsubscribe()},q.prototype.connect=function(){var K=this,Y=this._connection;if(!Y){Y=this._connection=new NwA.Subscription;var z=this.getSubject();if(Y.add(this.source.subscribe(K2K.createOperatorSubscriber(z,void 0,function(){K._teardown(),z.complete()},function(w){K._teardown(),z.error(w)},function(){return K._teardown()}))),Y.closed)this._connection=null,Y=NwA.Subscription.EMPTY}return Y},q.prototype.refCount=function(){return q2K.refCount()(this)},q}(A2K.Observable);NH6.ConnectableObservable=z2K});var EwA=h((kwA)=>{Object.defineProperty(kwA,"__esModule",{value:!0});kwA.performanceTimestampProvider=void 0;kwA.performanceTimestampProvider={now:function(){return(kwA.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var md1=h((TC)=>{var LwA=TC&&TC.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},ywA=TC&&TC.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(TC,"__esModule",{value:!0});TC.animationFrameProvider=void 0;var w2K=rN();TC.animationFrameProvider={schedule:function(A){var q=requestAnimationFrame,K=cancelAnimationFrame,Y=TC.animationFrameProvider.delegate;if(Y)q=Y.requestAnimationFrame,K=Y.cancelAnimationFrame;var z=q(function(w){K=void 0,A(w)});return new w2K.Subscription(function(){return K===null||K===void 0?void 0:K(z)})},requestAnimationFrame:function(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];var K=TC.animationFrameProvider.delegate;return((K===null||K===void 0?void 0:K.requestAnimationFrame)||requestAnimationFrame).apply(void 0,ywA([],LwA(A)))},cancelAnimationFrame:function(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];var K=TC.animationFrameProvider.delegate;return((K===null||K===void 0?void 0:K.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,ywA([],LwA(A)))},delegate:void 0}});var IwA=h((hwA)=>{Object.defineProperty(hwA,"__esModule",{value:!0});hwA.animationFrames=void 0;var _2K=k2(),$2K=EwA(),RwA=md1();function O2K(A){return A?SwA(A):H2K}hwA.animationFrames=O2K;function SwA(A){return new _2K.Observable(function(q){var K=A||$2K.performanceTimestampProvider,Y=K.now(),z=0,w=function(){if(!q.closed)z=RwA.animationFrameProvider.requestAnimationFrame(function(_){z=0;var $=K.now();q.next({timestamp:A?$:_,elapsed:$-Y}),w()})};return w(),function(){if(z)RwA.animationFrameProvider.cancelAnimationFrame(z)}})}var H2K=SwA()});var Bd1=h((xwA)=>{Object.defineProperty(xwA,"__esModule",{value:!0});xwA.ObjectUnsubscribedError=void 0;var j2K=bo();xwA.ObjectUnsubscribedError=j2K.createErrorClass(function(A){return function(){A(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var Y0=h((Ym)=>{var mwA=Ym&&Ym.__extends||function(){var A=function(q,K){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,z){Y.__proto__=z}||function(Y,z){for(var w in z)if(Object.prototype.hasOwnProperty.call(z,w))Y[w]=z[w]},A(q,K)};return function(q,K){if(typeof K!=="function"&&K!==null)throw TypeError("Class extends value "+String(K)+" is not a constructor or null");A(q,K);function Y(){this.constructor=q}q.prototype=K===null?Object.create(K):(Y.prototype=K.prototype,new Y)}}(),J2K=Ym&&Ym.__values||function(A){var q=typeof Symbol==="function"&&Symbol.iterator,K=q&&A[q],Y=0;if(K)return K.call(A);if(A&&typeof A.length==="number")return{next:function(){if(A&&Y>=A.length)A=void 0;return{value:A&&A[Y++],done:!A}}};throw TypeError(q?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Ym,"__esModule",{value:!0});Ym.AnonymousSubject=Ym.Subject=void 0;var uwA=k2(),pd1=rN(),M2K=Bd1(),D2K=MU(),gd1=p81(),BwA=function(A){mwA(q,A);function q(){var K=A.call(this)||this;return K.closed=!1,K.currentObservers=null,K.observers=[],K.isStopped=!1,K.hasError=!1,K.thrownError=null,K}return q.prototype.lift=function(K){var Y=new Fd1(this,this);return Y.operator=K,Y},q.prototype._throwIfClosed=function(){if(this.closed)throw new M2K.ObjectUnsubscribedError},q.prototype.next=function(K){var Y=this;gd1.errorContext(function(){var z,w;if(Y._throwIfClosed(),!Y.isStopped){if(!Y.currentObservers)Y.currentObservers=Array.from(Y.observers);try{for(var _=J2K(Y.currentObservers),$=_.next();!$.done;$=_.next()){var O=$.value;O.next(K)}}catch(H){z={error:H}}finally{try{if($&&!$.done&&(w=_.return))w.call(_)}finally{if(z)throw z.error}}}})},q.prototype.error=function(K){var Y=this;gd1.errorContext(function(){if(Y._throwIfClosed(),!Y.isStopped){Y.hasError=Y.isStopped=!0,Y.thrownError=K;var z=Y.observers;while(z.length)z.shift().error(K)}})},q.prototype.complete=function(){var K=this;gd1.errorContext(function(){if(K._throwIfClosed(),!K.isStopped){K.isStopped=!0;var Y=K.observers;while(Y.length)Y.shift().complete()}})},q.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(q.prototype,"observed",{get:function(){var K;return((K=this.observers)===null||K===void 0?void 0:K.length)>0},enumerable:!1,configurable:!0}),q.prototype._trySubscribe=function(K){return this._throwIfClosed(),A.prototype._trySubscribe.call(this,K)},q.prototype._subscribe=function(K){return this._throwIfClosed(),this._checkFinalizedStatuses(K),this._innerSubscribe(K)},q.prototype._innerSubscribe=function(K){var Y=this,z=this,w=z.hasError,_=z.isStopped,$=z.observers;if(w||_)return pd1.EMPTY_SUBSCRIPTION;return this.currentObservers=null,$.push(K),new pd1.Subscription(function(){Y.currentObservers=null,D2K.arrRemove($,K)})},q.prototype._checkFinalizedStatuses=function(K){var Y=this,z=Y.hasError,w=Y.thrownError,_=Y.isStopped;if(z)K.error(w);else if(_)K.complete()},q.prototype.asObservable=function(){var K=new uwA.Observable;return K.source=this,K},q.create=function(K,Y){return new Fd1(K,Y)},q}(uwA.Observable);Ym.Subject=BwA;var Fd1=function(A){mwA(q,A);function q(K,Y){var z=A.call(this)||this;return z.destination=K,z.source=Y,z}return q.prototype.next=function(K){var Y,z;(z=(Y=this.destination)===null||Y===void 0?void 0:Y.next)===null||z===void 0||z.call(Y,K)},q.prototype.error=function(K){var Y,z;(z=(Y=this.destination)===null||Y===void 0?void 0:Y.error)===null||z===void 0||z.call(Y,K)},q.prototype.complete=function(){var K,Y;(Y=(K=this.destination)===null||K===void 0?void 0:K.complete)===null||Y===void 0||Y.call(K)},q.prototype._subscribe=function(K){var Y,z;return(z=(Y=this.source)===null||Y===void 0?void 0:Y.subscribe(K))!==null&&z!==void 0?z:pd1.EMPTY_SUBSCRIPTION},q}(BwA);Ym.AnonymousSubject=Fd1});var Qd1=h((kH6)=>{var X2K=kH6&&kH6.__extends||function(){var A=function(q,K){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,z){Y.__proto__=z}||function(Y,z){for(var w in z)if(Object.prototype.hasOwnProperty.call(z,w))Y[w]=z[w]},A(q,K)};return function(q,K){if(typeof K!=="function"&&K!==null)throw TypeError("Class extends value "+String(K)+" is not a constructor or null");A(q,K);function Y(){this.constructor=q}q.prototype=K===null?Object.create(K):(Y.prototype=K.prototype,new Y)}}();Object.defineProperty(kH6,"__esModule",{value:!0});kH6.BehaviorSubject=void 0;var P2K=Y0(),W2K=function(A){X2K(q,A);function q(K){var Y=A.call(this)||this;return Y._value=K,Y}return Object.defineProperty(q.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),q.prototype._subscribe=function(K){var Y=A.prototype._subscribe.call(this,K);return!Y.closed&&K.next(this._value),Y},q.prototype.getValue=function(){var K=this,Y=K.hasError,z=K.thrownError,w=K._value;if(Y)throw z;return this._throwIfClosed(),w},q.prototype.next=function(K){A.prototype.next.call(this,this._value=K)},q}(P2K.Subject);kH6.BehaviorSubject=W2K});var U81=h((gwA)=>{Object.defineProperty(gwA,"__esModule",{value:!0});gwA.dateTimestampProvider=void 0;gwA.dateTimestampProvider={now:function(){return(gwA.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var d81=h((EH6)=>{var G2K=EH6&&EH6.__extends||function(){var A=function(q,K){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,z){Y.__proto__=z}||function(Y,z){for(var w in z)if(Object.prototype.hasOwnProperty.call(z,w))Y[w]=z[w]},A(q,K)};return function(q,K){if(typeof K!=="function"&&K!==null)throw TypeError("Class extends value "+String(K)+" is not a constructor or null");A(q,K);function Y(){this.constructor=q}q.prototype=K===null?Object.create(K):(Y.prototype=K.prototype,new Y)}}();Object.defineProperty(EH6,"__esModule",{value:!0});EH6.ReplaySubject=void 0;var Z2K=Y0(),f2K=U81(),T2K=function(A){G2K(q,A);function q(K,Y,z){if(K===void 0)K=1/0;if(Y===void 0)Y=1/0;if(z===void 0)z=f2K.dateTimestampProvider;var w=A.call(this)||this;return w._bufferSize=K,w._windowTime=Y,w._timestampProvider=z,w._buffer=[],w._infiniteTimeWindow=!0,w._infiniteTimeWindow=Y===1/0,w._bufferSize=Math.max(1,K),w._windowTime=Math.max(1,Y),w}return q.prototype.next=function(K){var Y=this,z=Y.isStopped,w=Y._buffer,_=Y._infiniteTimeWindow,$=Y._timestampProvider,O=Y._windowTime;if(!z)w.push(K),!_&&w.push($.now()+O);this._trimBuffer(),A.prototype.next.call(this,K)},q.prototype._subscribe=function(K){this._throwIfClosed(),this._trimBuffer();var Y=this._innerSubscribe(K),z=this,w=z._infiniteTimeWindow,_=z._buffer,$=_.slice();for(var O=0;O<$.length&&!K.closed;O+=w?1:2)K.next($[O]);return this._checkFinalizedStatuses(K),Y},q.prototype._trimBuffer=function(){var K=this,Y=K._bufferSize,z=K._timestampProvider,w=K._buffer,_=K._infiniteTimeWindow,$=(_?1:2)*Y;if(Y<1/0&&$<w.length&&w.splice(0,w.length-$),!_){var O=z.now(),H=0;for(var j=1;j<w.length&&w[j]<=O;j+=2)H=j;H&&w.splice(0,H+1)}},q}(Z2K.Subject);EH6.ReplaySubject=T2K});var c81=h((LH6)=>{var v2K=LH6&&LH6.__extends||function(){var A=function(q,K){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,z){Y.__proto__=z}||function(Y,z){for(var w in z)if(Object.prototype.hasOwnProperty.call(z,w))Y[w]=z[w]},A(q,K)};return function(q,K){if(typeof K!=="function"&&K!==null)throw TypeError("Class extends value "+String(K)+" is not a constructor or null");A(q,K);function Y(){this.constructor=q}q.prototype=K===null?Object.create(K):(Y.prototype=K.prototype,new Y)}}();Object.defineProperty(LH6,"__esModule",{value:!0});LH6.AsyncSubject=void 0;var V2K=Y0(),N2K=function(A){v2K(q,A);function q(){var K=A!==null&&A.apply(this,arguments)||this;return K._value=null,K._hasValue=!1,K._isComplete=!1,K}return q.prototype._checkFinalizedStatuses=function(K){var Y=this,z=Y.hasError,w=Y._hasValue,_=Y._value,$=Y.thrownError,O=Y.isStopped,H=Y._isComplete;if(z)K.error($);else if(O||H)w&&K.next(_),K.complete()},q.prototype.next=function(K){if(!this.isStopped)this._value=K,this._hasValue=!0},q.prototype.complete=function(){var K=this,Y=K._hasValue,z=K._value,w=K._isComplete;if(!w)this._isComplete=!0,Y&&A.prototype.next.call(this,z),A.prototype.complete.call(this)},q}(V2K.Subject);LH6.AsyncSubject=N2K});var pwA=h((yH6)=>{var k2K=yH6&&yH6.__extends||function(){var A=function(q,K){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,z){Y.__proto__=z}||function(Y,z){for(var w in z)if(Object.prototype.hasOwnProperty.call(z,w))Y[w]=z[w]},A(q,K)};return function(q,K){if(typeof K!=="function"&&K!==null)throw TypeError("Class extends value "+String(K)+" is not a constructor or null");A(q,K);function Y(){this.constructor=q}q.prototype=K===null?Object.create(K):(Y.prototype=K.prototype,new Y)}}();Object.defineProperty(yH6,"__esModule",{value:!0});yH6.Action=void 0;var E2K=rN(),L2K=function(A){k2K(q,A);function q(K,Y){return A.call(this)||this}return q.prototype.schedule=function(K,Y){if(Y===void 0)Y=0;return this},q}(E2K.Subscription);yH6.Action=L2K});var UwA=h((zm)=>{var FwA=zm&&zm.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},QwA=zm&&zm.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(zm,"__esModule",{value:!0});zm.intervalProvider=void 0;zm.intervalProvider={setInterval:function(A,q){var K=[];for(var Y=2;Y<arguments.length;Y++)K[Y-2]=arguments[Y];var z=zm.intervalProvider.delegate;if(z===null||z===void 0?void 0:z.setInterval)return z.setInterval.apply(z,QwA([A,q],FwA(K)));return setInterval.apply(void 0,QwA([A,q],FwA(K)))},clearInterval:function(A){var q=zm.intervalProvider.delegate;return((q===null||q===void 0?void 0:q.clearInterval)||clearInterval)(A)},delegate:void 0}});var SH6=h((RH6)=>{var y2K=RH6&&RH6.__extends||function(){var A=function(q,K){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,z){Y.__proto__=z}||function(Y,z){for(var w in z)if(Object.prototype.hasOwnProperty.call(z,w))Y[w]=z[w]},A(q,K)};return function(q,K){if(typeof K!=="function"&&K!==null)throw TypeError("Class extends value "+String(K)+" is not a constructor or null");A(q,K);function Y(){this.constructor=q}q.prototype=K===null?Object.create(K):(Y.prototype=K.prototype,new Y)}}();Object.defineProperty(RH6,"__esModule",{value:!0});RH6.AsyncAction=void 0;var R2K=pwA(),dwA=UwA(),S2K=MU(),h2K=function(A){y2K(q,A);function q(K,Y){var z=A.call(this,K,Y)||this;return z.scheduler=K,z.work=Y,z.pending=!1,z}return q.prototype.schedule=function(K,Y){var z;if(Y===void 0)Y=0;if(this.closed)return this;this.state=K;var w=this.id,_=this.scheduler;if(w!=null)this.id=this.recycleAsyncId(_,w,Y);return this.pending=!0,this.delay=Y,this.id=(z=this.id)!==null&&z!==void 0?z:this.requestAsyncId(_,this.id,Y),this},q.prototype.requestAsyncId=function(K,Y,z){if(z===void 0)z=0;return dwA.intervalProvider.setInterval(K.flush.bind(K,this),z)},q.prototype.recycleAsyncId=function(K,Y,z){if(z===void 0)z=0;if(z!=null&&this.delay===z&&this.pending===!1)return Y;if(Y!=null)dwA.intervalProvider.clearInterval(Y);return},q.prototype.execute=function(K,Y){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var z=this._execute(K,Y);if(z)return z;else if(this.pending===!1&&this.id!=null)this.id=this.recycleAsyncId(this.scheduler,this.id,null)},q.prototype._execute=function(K,Y){var z=!1,w;try{this.work(K)}catch(_){z=!0,w=_?_:Error("Scheduled action threw falsy error")}if(z)return this.unsubscribe(),w},q.prototype.unsubscribe=function(){if(!this.closed){var K=this,Y=K.id,z=K.scheduler,w=z.actions;if(this.work=this.state=this.scheduler=null,this.pending=!1,S2K.arrRemove(w,this),Y!=null)this.id=this.recycleAsyncId(z,Y,null);this.delay=null,A.prototype.unsubscribe.call(this)}},q}(R2K.Action);RH6.AsyncAction=h2K});var nwA=h((lwA)=>{Object.defineProperty(lwA,"__esModule",{value:!0});lwA.TestTools=lwA.Immediate=void 0;var C2K=1,dd1,l81={};function cwA(A){if(A in l81)return delete l81[A],!0;return!1}lwA.Immediate={setImmediate:function(A){var q=C2K++;if(l81[q]=!0,!dd1)dd1=Promise.resolve();return dd1.then(function(){return cwA(q)&&A()}),q},clearImmediate:function(A){cwA(A)}};lwA.TestTools={pending:function(){return Object.keys(l81).length}}});var owA=h((wm)=>{var x2K=wm&&wm.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},b2K=wm&&wm.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(wm,"__esModule",{value:!0});wm.immediateProvider=void 0;var rwA=nwA(),u2K=rwA.Immediate.setImmediate,m2K=rwA.Immediate.clearImmediate;wm.immediateProvider={setImmediate:function(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];var K=wm.immediateProvider.delegate;return((K===null||K===void 0?void 0:K.setImmediate)||u2K).apply(void 0,b2K([],x2K(A)))},clearImmediate:function(A){var q=wm.immediateProvider.delegate;return((q===null||q===void 0?void 0:q.clearImmediate)||m2K)(A)},delegate:void 0}});var swA=h((hH6)=>{var B2K=hH6&&hH6.__extends||function(){var A=function(q,K){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,z){Y.__proto__=z}||function(Y,z){for(var w in z)if(Object.prototype.hasOwnProperty.call(z,w))Y[w]=z[w]},A(q,K)};return function(q,K){if(typeof K!=="function"&&K!==null)throw TypeError("Class extends value "+String(K)+" is not a constructor or null");A(q,K);function Y(){this.constructor=q}q.prototype=K===null?Object.create(K):(Y.prototype=K.prototype,new Y)}}();Object.defineProperty(hH6,"__esModule",{value:!0});hH6.AsapAction=void 0;var g2K=SH6(),awA=owA(),p2K=function(A){B2K(q,A);function q(K,Y){var z=A.call(this,K,Y)||this;return z.scheduler=K,z.work=Y,z}return q.prototype.requestAsyncId=function(K,Y,z){if(z===void 0)z=0;if(z!==null&&z>0)return A.prototype.requestAsyncId.call(this,K,Y,z);return K.actions.push(this),K._scheduled||(K._scheduled=awA.immediateProvider.setImmediate(K.flush.bind(K,void 0)))},q.prototype.recycleAsyncId=function(K,Y,z){var w;if(z===void 0)z=0;if(z!=null?z>0:this.delay>0)return A.prototype.recycleAsyncId.call(this,K,Y,z);var _=K.actions;if(Y!=null&&((w=_[_.length-1])===null||w===void 0?void 0:w.id)!==Y){if(awA.immediateProvider.clearImmediate(Y),K._scheduled===Y)K._scheduled=void 0}return},q}(g2K.AsyncAction);hH6.AsapAction=p2K});var cd1=h((twA)=>{Object.defineProperty(twA,"__esModule",{value:!0});twA.Scheduler=void 0;var F2K=U81(),Q2K=function(){function A(q,K){if(K===void 0)K=A.now;this.schedulerActionCtor=q,this.now=K}return A.prototype.schedule=function(q,K,Y){if(K===void 0)K=0;return new this.schedulerActionCtor(this,q).schedule(Y,K)},A.now=F2K.dateTimestampProvider.now,A}();twA.Scheduler=Q2K});var IH6=h((CH6)=>{var U2K=CH6&&CH6.__extends||function(){var A=function(q,K){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,z){Y.__proto__=z}||function(Y,z){for(var w in z)if(Object.prototype.hasOwnProperty.call(z,w))Y[w]=z[w]},A(q,K)};return function(q,K){if(typeof K!=="function"&&K!==null)throw TypeError("Class extends value "+String(K)+" is not a constructor or null");A(q,K);function Y(){this.constructor=q}q.prototype=K===null?Object.create(K):(Y.prototype=K.prototype,new Y)}}();Object.defineProperty(CH6,"__esModule",{value:!0});CH6.AsyncScheduler=void 0;var A2A=cd1(),d2K=function(A){U2K(q,A);function q(K,Y){if(Y===void 0)Y=A2A.Scheduler.now;var z=A.call(this,K,Y)||this;return z.actions=[],z._active=!1,z}return q.prototype.flush=function(K){var Y=this.actions;if(this._active){Y.push(K);return}var z;this._active=!0;do if(z=K.execute(K.state,K.delay))break;while(K=Y.shift());if(this._active=!1,z){while(K=Y.shift())K.unsubscribe();throw z}},q}(A2A.Scheduler);CH6.AsyncScheduler=d2K});var q2A=h((xH6)=>{var c2K=xH6&&xH6.__extends||function(){var A=function(q,K){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,z){Y.__proto__=z}||function(Y,z){for(var w in z)if(Object.prototype.hasOwnProperty.call(z,w))Y[w]=z[w]},A(q,K)};return function(q,K){if(typeof K!=="function"&&K!==null)throw TypeError("Class extends value "+String(K)+" is not a constructor or null");A(q,K);function Y(){this.constructor=q}q.prototype=K===null?Object.create(K):(Y.prototype=K.prototype,new Y)}}();Object.defineProperty(xH6,"__esModule",{value:!0});xH6.AsapScheduler=void 0;var l2K=IH6(),i2K=function(A){c2K(q,A);function q(){return A!==null&&A.apply(this,arguments)||this}return q.prototype.flush=function(K){this._active=!0;var Y=this._scheduled;this._scheduled=void 0;var z=this.actions,w;K=K||z.shift();do if(w=K.execute(K.state,K.delay))break;while((K=z[0])&&K.id===Y&&z.shift());if(this._active=!1,w){while((K=z[0])&&K.id===Y&&z.shift())K.unsubscribe();throw w}},q}(l2K.AsyncScheduler);xH6.AsapScheduler=i2K});var w2A=h((K2A)=>{Object.defineProperty(K2A,"__esModule",{value:!0});K2A.asap=K2A.asapScheduler=void 0;var n2K=swA(),r2K=q2A();K2A.asapScheduler=new r2K.AsapScheduler(n2K.AsapAction);K2A.asap=K2A.asapScheduler});var jv=h((_2A)=>{Object.defineProperty(_2A,"__esModule",{value:!0});_2A.async=_2A.asyncScheduler=void 0;var o2K=SH6(),a2K=IH6();_2A.asyncScheduler=new a2K.AsyncScheduler(o2K.AsyncAction);_2A.async=_2A.asyncScheduler});var H2A=h((bH6)=>{var s2K=bH6&&bH6.__extends||function(){var A=function(q,K){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,z){Y.__proto__=z}||function(Y,z){for(var w in z)if(Object.prototype.hasOwnProperty.call(z,w))Y[w]=z[w]},A(q,K)};return function(q,K){if(typeof K!=="function"&&K!==null)throw TypeError("Class extends value "+String(K)+" is not a constructor or null");A(q,K);function Y(){this.constructor=q}q.prototype=K===null?Object.create(K):(Y.prototype=K.prototype,new Y)}}();Object.defineProperty(bH6,"__esModule",{value:!0});bH6.QueueAction=void 0;var t2K=SH6(),e2K=function(A){s2K(q,A);function q(K,Y){var z=A.call(this,K,Y)||this;return z.scheduler=K,z.work=Y,z}return q.prototype.schedule=function(K,Y){if(Y===void 0)Y=0;if(Y>0)return A.prototype.schedule.call(this,K,Y);return this.delay=Y,this.state=K,this.scheduler.flush(this),this},q.prototype.execute=function(K,Y){return Y>0||this.closed?A.prototype.execute.call(this,K,Y):this._execute(K,Y)},q.prototype.requestAsyncId=function(K,Y,z){if(z===void 0)z=0;if(z!=null&&z>0||z==null&&this.delay>0)return A.prototype.requestAsyncId.call(this,K,Y,z);return K.flush(this),0},q}(t2K.AsyncAction);bH6.QueueAction=e2K});var j2A=h((uH6)=>{var A_K=uH6&&uH6.__extends||function(){var A=function(q,K){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,z){Y.__proto__=z}||function(Y,z){for(var w in z)if(Object.prototype.hasOwnProperty.call(z,w))Y[w]=z[w]},A(q,K)};return function(q,K){if(typeof K!=="function"&&K!==null)throw TypeError("Class extends value "+String(K)+" is not a constructor or null");A(q,K);function Y(){this.constructor=q}q.prototype=K===null?Object.create(K):(Y.prototype=K.prototype,new Y)}}();Object.defineProperty(uH6,"__esModule",{value:!0});uH6.QueueScheduler=void 0;var q_K=IH6(),K_K=function(A){A_K(q,A);function q(){return A!==null&&A.apply(this,arguments)||this}return q}(q_K.AsyncScheduler);uH6.QueueScheduler=K_K});var X2A=h((J2A)=>{Object.defineProperty(J2A,"__esModule",{value:!0});J2A.queue=J2A.queueScheduler=void 0;var Y_K=H2A(),z_K=j2A();J2A.queueScheduler=new z_K.QueueScheduler(Y_K.QueueAction);J2A.queue=J2A.queueScheduler});var W2A=h((mH6)=>{var w_K=mH6&&mH6.__extends||function(){var A=function(q,K){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,z){Y.__proto__=z}||function(Y,z){for(var w in z)if(Object.prototype.hasOwnProperty.call(z,w))Y[w]=z[w]},A(q,K)};return function(q,K){if(typeof K!=="function"&&K!==null)throw TypeError("Class extends value "+String(K)+" is not a constructor or null");A(q,K);function Y(){this.constructor=q}q.prototype=K===null?Object.create(K):(Y.prototype=K.prototype,new Y)}}();Object.defineProperty(mH6,"__esModule",{value:!0});mH6.AnimationFrameAction=void 0;var __K=SH6(),P2A=md1(),$_K=function(A){w_K(q,A);function q(K,Y){var z=A.call(this,K,Y)||this;return z.scheduler=K,z.work=Y,z}return q.prototype.requestAsyncId=function(K,Y,z){if(z===void 0)z=0;if(z!==null&&z>0)return A.prototype.requestAsyncId.call(this,K,Y,z);return K.actions.push(this),K._scheduled||(K._scheduled=P2A.animationFrameProvider.requestAnimationFrame(function(){return K.flush(void 0)}))},q.prototype.recycleAsyncId=function(K,Y,z){var w;if(z===void 0)z=0;if(z!=null?z>0:this.delay>0)return A.prototype.recycleAsyncId.call(this,K,Y,z);var _=K.actions;if(Y!=null&&Y===K._scheduled&&((w=_[_.length-1])===null||w===void 0?void 0:w.id)!==Y)P2A.animationFrameProvider.cancelAnimationFrame(Y),K._scheduled=void 0;return},q}(__K.AsyncAction);mH6.AnimationFrameAction=$_K});var G2A=h((BH6)=>{var O_K=BH6&&BH6.__extends||function(){var A=function(q,K){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,z){Y.__proto__=z}||function(Y,z){for(var w in z)if(Object.prototype.hasOwnProperty.call(z,w))Y[w]=z[w]},A(q,K)};return function(q,K){if(typeof K!=="function"&&K!==null)throw TypeError("Class extends value "+String(K)+" is not a constructor or null");A(q,K);function Y(){this.constructor=q}q.prototype=K===null?Object.create(K):(Y.prototype=K.prototype,new Y)}}();Object.defineProperty(BH6,"__esModule",{value:!0});BH6.AnimationFrameScheduler=void 0;var H_K=IH6(),j_K=function(A){O_K(q,A);function q(){return A!==null&&A.apply(this,arguments)||this}return q.prototype.flush=function(K){this._active=!0;var Y;if(K)Y=K.id;else Y=this._scheduled,this._scheduled=void 0;var z=this.actions,w;K=K||z.shift();do if(w=K.execute(K.state,K.delay))break;while((K=z[0])&&K.id===Y&&z.shift());if(this._active=!1,w){while((K=z[0])&&K.id===Y&&z.shift())K.unsubscribe();throw w}},q}(H_K.AsyncScheduler);BH6.AnimationFrameScheduler=j_K});var v2A=h((Z2A)=>{Object.defineProperty(Z2A,"__esModule",{value:!0});Z2A.animationFrame=Z2A.animationFrameScheduler=void 0;var J_K=W2A(),M_K=G2A();Z2A.animationFrameScheduler=new M_K.AnimationFrameScheduler(J_K.AnimationFrameAction);Z2A.animationFrame=Z2A.animationFrameScheduler});var k2A=h((mo)=>{var V2A=mo&&mo.__extends||function(){var A=function(q,K){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,z){Y.__proto__=z}||function(Y,z){for(var w in z)if(Object.prototype.hasOwnProperty.call(z,w))Y[w]=z[w]},A(q,K)};return function(q,K){if(typeof K!=="function"&&K!==null)throw TypeError("Class extends value "+String(K)+" is not a constructor or null");A(q,K);function Y(){this.constructor=q}q.prototype=K===null?Object.create(K):(Y.prototype=K.prototype,new Y)}}();Object.defineProperty(mo,"__esModule",{value:!0});mo.VirtualAction=mo.VirtualTimeScheduler=void 0;var D_K=SH6(),X_K=rN(),P_K=IH6(),W_K=function(A){V2A(q,A);function q(K,Y){if(K===void 0)K=N2A;if(Y===void 0)Y=1/0;var z=A.call(this,K,function(){return z.frame})||this;return z.maxFrames=Y,z.frame=0,z.index=-1,z}return q.prototype.flush=function(){var K=this,Y=K.actions,z=K.maxFrames,w,_;while((_=Y[0])&&_.delay<=z)if(Y.shift(),this.frame=_.delay,w=_.execute(_.state,_.delay))break;if(w){while(_=Y.shift())_.unsubscribe();throw w}},q.frameTimeFactor=10,q}(P_K.AsyncScheduler);mo.VirtualTimeScheduler=W_K;var N2A=function(A){V2A(q,A);function q(K,Y,z){if(z===void 0)z=K.index+=1;var w=A.call(this,K,Y)||this;return w.scheduler=K,w.work=Y,w.index=z,w.active=!0,w.index=K.index=z,w}return q.prototype.schedule=function(K,Y){if(Y===void 0)Y=0;if(Number.isFinite(Y)){if(!this.id)return A.prototype.schedule.call(this,K,Y);this.active=!1;var z=new q(this.scheduler,this.work);return this.add(z),z.schedule(K,Y)}else return X_K.Subscription.EMPTY},q.prototype.requestAsyncId=function(K,Y,z){if(z===void 0)z=0;this.delay=K.frame+z;var w=K.actions;return w.push(this),w.sort(q.sortActions),1},q.prototype.recycleAsyncId=function(K,Y,z){if(z===void 0)z=0;return},q.prototype._execute=function(K,Y){if(this.active===!0)return A.prototype._execute.call(this,K,Y)},q.sortActions=function(K,Y){if(K.delay===Y.delay)if(K.index===Y.index)return 0;else if(K.index>Y.index)return 1;else return-1;else if(K.delay>Y.delay)return 1;else return-1},q}(D_K.AsyncAction);mo.VirtualAction=N2A});var vC=h((L2A)=>{Object.defineProperty(L2A,"__esModule",{value:!0});L2A.empty=L2A.EMPTY=void 0;var E2A=k2();L2A.EMPTY=new E2A.Observable(function(A){return A.complete()});function G_K(A){return A?Z_K(A):L2A.EMPTY}L2A.empty=G_K;function Z_K(A){return new E2A.Observable(function(q){return A.schedule(function(){return q.complete()})})}});var cR6=h((S2A)=>{Object.defineProperty(S2A,"__esModule",{value:!0});S2A.isScheduler=void 0;var f_K=aw();function T_K(A){return A&&f_K.isFunction(A.schedule)}S2A.isScheduler=T_K});var Jv=h((C2A)=>{Object.defineProperty(C2A,"__esModule",{value:!0});C2A.popNumber=C2A.popScheduler=C2A.popResultSelector=void 0;var v_K=aw(),V_K=cR6();function ld1(A){return A[A.length-1]}function N_K(A){return v_K.isFunction(ld1(A))?A.pop():void 0}C2A.popResultSelector=N_K;function k_K(A){return V_K.isScheduler(ld1(A))?A.pop():void 0}C2A.popScheduler=k_K;function E_K(A,q){return typeof ld1(A)==="number"?A.pop():q}C2A.popNumber=E_K});var i81=h((x2A)=>{Object.defineProperty(x2A,"__esModule",{value:!0});x2A.isArrayLike=void 0;x2A.isArrayLike=function(A){return A&&typeof A.length==="number"&&typeof A!=="function"}});var id1=h((u2A)=>{Object.defineProperty(u2A,"__esModule",{value:!0});u2A.isPromise=void 0;var R_K=aw();function S_K(A){return R_K.isFunction(A===null||A===void 0?void 0:A.then)}u2A.isPromise=S_K});var nd1=h((B2A)=>{Object.defineProperty(B2A,"__esModule",{value:!0});B2A.isInteropObservable=void 0;var h_K=QR6(),C_K=aw();function I_K(A){return C_K.isFunction(A[h_K.observable])}B2A.isInteropObservable=I_K});var rd1=h((p2A)=>{Object.defineProperty(p2A,"__esModule",{value:!0});p2A.isAsyncIterable=void 0;var x_K=aw();function b_K(A){return Symbol.asyncIterator&&x_K.isFunction(A===null||A===void 0?void 0:A[Symbol.asyncIterator])}p2A.isAsyncIterable=b_K});var od1=h((Q2A)=>{Object.defineProperty(Q2A,"__esModule",{value:!0});Q2A.createInvalidObservableTypeError=void 0;function u_K(A){return TypeError("You provided "+(A!==null&&typeof A==="object"?"an invalid object":"'"+A+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}Q2A.createInvalidObservableTypeError=u_K});var ad1=h((c2A)=>{Object.defineProperty(c2A,"__esModule",{value:!0});c2A.iterator=c2A.getSymbolIterator=void 0;function d2A(){if(typeof Symbol!=="function"||!Symbol.iterator)return"@@iterator";return Symbol.iterator}c2A.getSymbolIterator=d2A;c2A.iterator=d2A()});var sd1=h((i2A)=>{Object.defineProperty(i2A,"__esModule",{value:!0});i2A.isIterable=void 0;var B_K=ad1(),g_K=aw();function p_K(A){return g_K.isFunction(A===null||A===void 0?void 0:A[B_K.iterator])}i2A.isIterable=p_K});var n81=h((sL)=>{var F_K=sL&&sL.__generator||function(A,q){var K={label:0,sent:function(){if(w[0]&1)throw w[1];return w[1]},trys:[],ops:[]},Y,z,w,_;return _={next:$(0),throw:$(1),return:$(2)},typeof Symbol==="function"&&(_[Symbol.iterator]=function(){return this}),_;function $(H){return function(j){return O([H,j])}}function O(H){if(Y)throw TypeError("Generator is already executing.");while(K)try{if(Y=1,z&&(w=H[0]&2?z.return:H[0]?z.throw||((w=z.return)&&w.call(z),0):z.next)&&!(w=w.call(z,H[1])).done)return w;if(z=0,w)H=[H[0]&2,w.value];switch(H[0]){case 0:case 1:w=H;break;case 4:return K.label++,{value:H[1],done:!1};case 5:K.label++,z=H[1],H=[0];continue;case 7:H=K.ops.pop(),K.trys.pop();continue;default:if((w=K.trys,!(w=w.length>0&&w[w.length-1]))&&(H[0]===6||H[0]===2)){K=0;continue}if(H[0]===3&&(!w||H[1]>w[0]&&H[1]<w[3])){K.label=H[1];break}if(H[0]===6&&K.label<w[1]){K.label=w[1],w=H;break}if(w&&K.label<w[2]){K.label=w[2],K.ops.push(H);break}if(w[2])K.ops.pop();K.trys.pop();continue}H=q.call(A,K)}catch(j){H=[6,j],z=0}finally{Y=w=0}if(H[0]&5)throw H[1];return{value:H[0]?H[1]:void 0,done:!0}}},gH6=sL&&sL.__await||function(A){return this instanceof gH6?(this.v=A,this):new gH6(A)},Q_K=sL&&sL.__asyncGenerator||function(A,q,K){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var Y=K.apply(A,q||[]),z,w=[];return z={},_("next"),_("throw"),_("return"),z[Symbol.asyncIterator]=function(){return this},z;function _(M){if(Y[M])z[M]=function(D){return new Promise(function(X,P){w.push([M,D,X,P])>1||$(M,D)})}}function $(M,D){try{O(Y[M](D))}catch(X){J(w[0][3],X)}}function O(M){M.value instanceof gH6?Promise.resolve(M.value.v).then(H,j):J(w[0][2],M)}function H(M){$("next",M)}function j(M){$("throw",M)}function J(M,D){if(M(D),w.shift(),w.length)$(w[0][0],w[0][1])}};Object.defineProperty(sL,"__esModule",{value:!0});sL.isReadableStreamLike=sL.readableStreamLikeToAsyncGenerator=void 0;var U_K=aw();function d_K(A){return Q_K(this,arguments,function(){var K,Y,z,w;return F_K(this,function(_){switch(_.label){case 0:K=A.getReader(),_.label=1;case 1:_.trys.push([1,,9,10]),_.label=2;case 2:return[4,gH6(K.read())];case 3:if(Y=_.sent(),z=Y.value,w=Y.done,!w)return[3,5];return[4,gH6(void 0)];case 4:return[2,_.sent()];case 5:return[4,gH6(z)];case 6:return[4,_.sent()];case 7:return _.sent(),[3,2];case 8:return[3,10];case 9:return K.releaseLock(),[7];case 10:return[2]}})})}sL.readableStreamLikeToAsyncGenerator=d_K;function c_K(A){return U_K.isFunction(A===null||A===void 0?void 0:A.getReader)}sL.isReadableStreamLike=c_K});var v5=h((GO)=>{var l_K=GO&&GO.__awaiter||function(A,q,K,Y){function z(w){return w instanceof K?w:new K(function(_){_(w)})}return new(K||(K=Promise))(function(w,_){function $(j){try{H(Y.next(j))}catch(J){_(J)}}function O(j){try{H(Y.throw(j))}catch(J){_(J)}}function H(j){j.done?w(j.value):z(j.value).then($,O)}H((Y=Y.apply(A,q||[])).next())})},i_K=GO&&GO.__generator||function(A,q){var K={label:0,sent:function(){if(w[0]&1)throw w[1];return w[1]},trys:[],ops:[]},Y,z,w,_;return _={next:$(0),throw:$(1),return:$(2)},typeof Symbol==="function"&&(_[Symbol.iterator]=function(){return this}),_;function $(H){return function(j){return O([H,j])}}function O(H){if(Y)throw TypeError("Generator is already executing.");while(K)try{if(Y=1,z&&(w=H[0]&2?z.return:H[0]?z.throw||((w=z.return)&&w.call(z),0):z.next)&&!(w=w.call(z,H[1])).done)return w;if(z=0,w)H=[H[0]&2,w.value];switch(H[0]){case 0:case 1:w=H;break;case 4:return K.label++,{value:H[1],done:!1};case 5:K.label++,z=H[1],H=[0];continue;case 7:H=K.ops.pop(),K.trys.pop();continue;default:if((w=K.trys,!(w=w.length>0&&w[w.length-1]))&&(H[0]===6||H[0]===2)){K=0;continue}if(H[0]===3&&(!w||H[1]>w[0]&&H[1]<w[3])){K.label=H[1];break}if(H[0]===6&&K.label<w[1]){K.label=w[1],w=H;break}if(w&&K.label<w[2]){K.label=w[2],K.ops.push(H);break}if(w[2])K.ops.pop();K.trys.pop();continue}H=q.call(A,K)}catch(j){H=[6,j],z=0}finally{Y=w=0}if(H[0]&5)throw H[1];return{value:H[0]?H[1]:void 0,done:!0}}},n_K=GO&&GO.__asyncValues||function(A){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var q=A[Symbol.asyncIterator],K;return q?q.call(A):(A=typeof td1==="function"?td1(A):A[Symbol.iterator](),K={},Y("next"),Y("throw"),Y("return"),K[Symbol.asyncIterator]=function(){return this},K);function Y(w){K[w]=A[w]&&function(_){return new Promise(function($,O){_=A[w](_),z($,O,_.done,_.value)})}}function z(w,_,$,O){Promise.resolve(O).then(function(H){w({value:H,done:$})},_)}},td1=GO&&GO.__values||function(A){var q=typeof Symbol==="function"&&Symbol.iterator,K=q&&A[q],Y=0;if(K)return K.call(A);if(A&&typeof A.length==="number")return{next:function(){if(A&&Y>=A.length)A=void 0;return{value:A&&A[Y++],done:!A}}};throw TypeError(q?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(GO,"__esModule",{value:!0});GO.fromReadableStreamLike=GO.fromAsyncIterable=GO.fromIterable=GO.fromPromise=GO.fromArrayLike=GO.fromInteropObservable=GO.innerFrom=void 0;var r_K=i81(),o_K=id1(),pH6=k2(),a_K=nd1(),s_K=rd1(),t_K=od1(),e_K=sd1(),r2A=n81(),A$K=aw(),q$K=Rd1(),K$K=QR6();function Y$K(A){if(A instanceof pH6.Observable)return A;if(A!=null){if(a_K.isInteropObservable(A))return o2A(A);if(r_K.isArrayLike(A))return a2A(A);if(o_K.isPromise(A))return s2A(A);if(s_K.isAsyncIterable(A))return ed1(A);if(e_K.isIterable(A))return t2A(A);if(r2A.isReadableStreamLike(A))return e2A(A)}throw t_K.createInvalidObservableTypeError(A)}GO.innerFrom=Y$K;function o2A(A){return new pH6.Observable(function(q){var K=A[K$K.observable]();if(A$K.isFunction(K.subscribe))return K.subscribe(q);throw TypeError("Provided object does not correctly implement Symbol.observable")})}GO.fromInteropObservable=o2A;function a2A(A){return new pH6.Observable(function(q){for(var K=0;K<A.length&&!q.closed;K++)q.next(A[K]);q.complete()})}GO.fromArrayLike=a2A;function s2A(A){return new pH6.Observable(function(q){A.then(function(K){if(!q.closed)q.next(K),q.complete()},function(K){return q.error(K)}).then(null,q$K.reportUnhandledError)})}GO.fromPromise=s2A;function t2A(A){return new pH6.Observable(function(q){var K,Y;try{for(var z=td1(A),w=z.next();!w.done;w=z.next()){var _=w.value;if(q.next(_),q.closed)return}}catch($){K={error:$}}finally{try{if(w&&!w.done&&(Y=z.return))Y.call(z)}finally{if(K)throw K.error}}q.complete()})}GO.fromIterable=t2A;function ed1(A){return new pH6.Observable(function(q){z$K(A,q).catch(function(K){return q.error(K)})})}GO.fromAsyncIterable=ed1;function e2A(A){return ed1(r2A.readableStreamLikeToAsyncGenerator(A))}GO.fromReadableStreamLike=e2A;function z$K(A,q){var K,Y,z,w;return l_K(this,void 0,void 0,function(){var _,$;return i_K(this,function(O){switch(O.label){case 0:O.trys.push([0,5,6,11]),K=n_K(A),O.label=1;case 1:return[4,K.next()];case 2:if(Y=O.sent(),!!Y.done)return[3,4];if(_=Y.value,q.next(_),q.closed)return[2];O.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return $=O.sent(),z={error:$},[3,11];case 6:if(O.trys.push([6,,9,10]),!(Y&&!Y.done&&(w=K.return)))return[3,8];return[4,w.call(K)];case 7:O.sent(),O.label=8;case 8:return[3,10];case 9:if(z)throw z.error;return[7];case 10:return[7];case 11:return q.complete(),[2]}})})}});var DU=h((A_A)=>{Object.defineProperty(A_A,"__esModule",{value:!0});A_A.executeSchedule=void 0;function w$K(A,q,K,Y,z){if(Y===void 0)Y=0;if(z===void 0)z=!1;var w=q.schedule(function(){if(K(),z)A.add(this.schedule(null,Y));else this.unsubscribe()},Y);if(A.add(w),!z)return w}A_A.executeSchedule=w$K});var FH6=h((K_A)=>{Object.defineProperty(K_A,"__esModule",{value:!0});K_A.observeOn=void 0;var Ac1=DU(),_$K=L4(),$$K=Nq();function O$K(A,q){if(q===void 0)q=0;return _$K.operate(function(K,Y){K.subscribe($$K.createOperatorSubscriber(Y,function(z){return Ac1.executeSchedule(Y,A,function(){return Y.next(z)},q)},function(){return Ac1.executeSchedule(Y,A,function(){return Y.complete()},q)},function(z){return Ac1.executeSchedule(Y,A,function(){return Y.error(z)},q)}))})}K_A.observeOn=O$K});var QH6=h((z_A)=>{Object.defineProperty(z_A,"__esModule",{value:!0});z_A.subscribeOn=void 0;var H$K=L4();function j$K(A,q){if(q===void 0)q=0;return H$K.operate(function(K,Y){Y.add(A.schedule(function(){return K.subscribe(Y)},q))})}z_A.subscribeOn=j$K});var O_A=h((__A)=>{Object.defineProperty(__A,"__esModule",{value:!0});__A.scheduleObservable=void 0;var J$K=v5(),M$K=FH6(),D$K=QH6();function X$K(A,q){return J$K.innerFrom(A).pipe(D$K.subscribeOn(q),M$K.observeOn(q))}__A.scheduleObservable=X$K});var J_A=h((H_A)=>{Object.defineProperty(H_A,"__esModule",{value:!0});H_A.schedulePromise=void 0;var P$K=v5(),W$K=FH6(),G$K=QH6();function Z$K(A,q){return P$K.innerFrom(A).pipe(G$K.subscribeOn(q),W$K.observeOn(q))}H_A.schedulePromise=Z$K});var X_A=h((M_A)=>{Object.defineProperty(M_A,"__esModule",{value:!0});M_A.scheduleArray=void 0;var f$K=k2();function T$K(A,q){return new f$K.Observable(function(K){var Y=0;return q.schedule(function(){if(Y===A.length)K.complete();else if(K.next(A[Y++]),!K.closed)this.schedule()})})}M_A.scheduleArray=T$K});var qc1=h((W_A)=>{Object.defineProperty(W_A,"__esModule",{value:!0});W_A.scheduleIterable=void 0;var v$K=k2(),V$K=ad1(),N$K=aw(),P_A=DU();function k$K(A,q){return new v$K.Observable(function(K){var Y;return P_A.executeSchedule(K,q,function(){Y=A[V$K.iterator](),P_A.executeSchedule(K,q,function(){var z,w,_;try{z=Y.next(),w=z.value,_=z.done}catch($){K.error($);return}if(_)K.complete();else K.next(w)},0,!0)}),function(){return N$K.isFunction(Y===null||Y===void 0?void 0:Y.return)&&Y.return()}})}W_A.scheduleIterable=k$K});var Kc1=h((f_A)=>{Object.defineProperty(f_A,"__esModule",{value:!0});f_A.scheduleAsyncIterable=void 0;var E$K=k2(),Z_A=DU();function L$K(A,q){if(!A)throw Error("Iterable cannot be null");return new E$K.Observable(function(K){Z_A.executeSchedule(K,q,function(){var Y=A[Symbol.asyncIterator]();Z_A.executeSchedule(K,q,function(){Y.next().then(function(z){if(z.done)K.complete();else K.next(z.value)})},0,!0)})})}f_A.scheduleAsyncIterable=L$K});var N_A=h((v_A)=>{Object.defineProperty(v_A,"__esModule",{value:!0});v_A.scheduleReadableStreamLike=void 0;var y$K=Kc1(),R$K=n81();function S$K(A,q){return y$K.scheduleAsyncIterable(R$K.readableStreamLikeToAsyncGenerator(A),q)}v_A.scheduleReadableStreamLike=S$K});var Yc1=h((k_A)=>{Object.defineProperty(k_A,"__esModule",{value:!0});k_A.scheduled=void 0;var h$K=O_A(),C$K=J_A(),I$K=X_A(),x$K=qc1(),b$K=Kc1(),u$K=nd1(),m$K=id1(),B$K=i81(),g$K=sd1(),p$K=rd1(),F$K=od1(),Q$K=n81(),U$K=N_A();function d$K(A,q){if(A!=null){if(u$K.isInteropObservable(A))return h$K.scheduleObservable(A,q);if(B$K.isArrayLike(A))return I$K.scheduleArray(A,q);if(m$K.isPromise(A))return C$K.schedulePromise(A,q);if(p$K.isAsyncIterable(A))return b$K.scheduleAsyncIterable(A,q);if(g$K.isIterable(A))return x$K.scheduleIterable(A,q);if(Q$K.isReadableStreamLike(A))return U$K.scheduleReadableStreamLike(A,q)}throw F$K.createInvalidObservableTypeError(A)}k_A.scheduled=d$K});var XU=h((L_A)=>{Object.defineProperty(L_A,"__esModule",{value:!0});L_A.from=void 0;var c$K=Yc1(),l$K=v5();function i$K(A,q){return q?c$K.scheduled(A,q):l$K.innerFrom(A)}L_A.from=i$K});var r81=h((R_A)=>{Object.defineProperty(R_A,"__esModule",{value:!0});R_A.of=void 0;var n$K=Jv(),r$K=XU();function o$K(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];var K=n$K.popScheduler(A);return r$K.from(A,K)}R_A.of=o$K});var zc1=h((h_A)=>{Object.defineProperty(h_A,"__esModule",{value:!0});h_A.throwError=void 0;var a$K=k2(),s$K=aw();function t$K(A,q){var K=s$K.isFunction(A)?A:function(){return A},Y=function(z){return z.error(K())};return new a$K.Observable(q?function(z){return q.schedule(Y,0,z)}:Y)}h_A.throwError=t$K});var o81=h((b_A)=>{Object.defineProperty(b_A,"__esModule",{value:!0});b_A.observeNotification=b_A.Notification=b_A.NotificationKind=void 0;var e$K=vC(),AOK=r81(),qOK=zc1(),KOK=aw(),YOK;(function(A){A.NEXT="N",A.ERROR="E",A.COMPLETE="C"})(YOK=b_A.NotificationKind||(b_A.NotificationKind={}));var zOK=function(){function A(q,K,Y){this.kind=q,this.value=K,this.error=Y,this.hasValue=q==="N"}return A.prototype.observe=function(q){return x_A(this,q)},A.prototype.do=function(q,K,Y){var z=this,w=z.kind,_=z.value,$=z.error;return w==="N"?q===null||q===void 0?void 0:q(_):w==="E"?K===null||K===void 0?void 0:K($):Y===null||Y===void 0?void 0:Y()},A.prototype.accept=function(q,K,Y){var z;return KOK.isFunction((z=q)===null||z===void 0?void 0:z.next)?this.observe(q):this.do(q,K,Y)},A.prototype.toObservable=function(){var q=this,K=q.kind,Y=q.value,z=q.error,w=K==="N"?AOK.of(Y):K==="E"?qOK.throwError(function(){return z}):K==="C"?e$K.EMPTY:0;if(!w)throw TypeError("Unexpected notification kind "+K);return w},A.createNext=function(q){return new A("N",q)},A.createError=function(q){return new A("E",void 0,q)},A.createComplete=function(){return A.completeNotification},A.completeNotification=new A("C"),A}();b_A.Notification=zOK;function x_A(A,q){var K,Y,z,w=A,_=w.kind,$=w.value,O=w.error;if(typeof _!=="string")throw TypeError('Invalid notification, missing "kind"');_==="N"?(K=q.next)===null||K===void 0||K.call(q,$):_==="E"?(Y=q.error)===null||Y===void 0||Y.call(q,O):(z=q.complete)===null||z===void 0||z.call(q)}b_A.observeNotification=x_A});var p_A=h((B_A)=>{Object.defineProperty(B_A,"__esModule",{value:!0});B_A.isObservable=void 0;var _OK=k2(),m_A=aw();function $OK(A){return!!A&&(A instanceof _OK.Observable||m_A.isFunction(A.lift)&&m_A.isFunction(A.subscribe))}B_A.isObservable=$OK});var Bo=h((F_A)=>{Object.defineProperty(F_A,"__esModule",{value:!0});F_A.EmptyError=void 0;var OOK=bo();F_A.EmptyError=OOK.createErrorClass(function(A){return function(){A(this),this.name="EmptyError",this.message="no elements in sequence"}})});var c_A=h((U_A)=>{Object.defineProperty(U_A,"__esModule",{value:!0});U_A.lastValueFrom=void 0;var HOK=Bo();function jOK(A,q){var K=typeof q==="object";return new Promise(function(Y,z){var w=!1,_;A.subscribe({next:function($){_=$,w=!0},error:z,complete:function(){if(w)Y(_);else if(K)Y(q.defaultValue);else z(new HOK.EmptyError)}})})}U_A.lastValueFrom=jOK});var n_A=h((l_A)=>{Object.defineProperty(l_A,"__esModule",{value:!0});l_A.firstValueFrom=void 0;var JOK=Bo(),MOK=VH6();function DOK(A,q){var K=typeof q==="object";return new Promise(function(Y,z){var w=new MOK.SafeSubscriber({next:function(_){Y(_),w.unsubscribe()},error:z,complete:function(){if(K)Y(q.defaultValue);else z(new JOK.EmptyError)}});A.subscribe(w)})}l_A.firstValueFrom=DOK});var wc1=h((r_A)=>{Object.defineProperty(r_A,"__esModule",{value:!0});r_A.ArgumentOutOfRangeError=void 0;var XOK=bo();r_A.ArgumentOutOfRangeError=XOK.createErrorClass(function(A){return function(){A(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})});var _c1=h((a_A)=>{Object.defineProperty(a_A,"__esModule",{value:!0});a_A.NotFoundError=void 0;var POK=bo();a_A.NotFoundError=POK.createErrorClass(function(A){return function(K){A(this),this.name="NotFoundError",this.message=K}})});var $c1=h((t_A)=>{Object.defineProperty(t_A,"__esModule",{value:!0});t_A.SequenceError=void 0;var WOK=bo();t_A.SequenceError=WOK.createErrorClass(function(A){return function(K){A(this),this.name="SequenceError",this.message=K}})});var a81=h((A$A)=>{Object.defineProperty(A$A,"__esModule",{value:!0});A$A.isValidDate=void 0;function GOK(A){return A instanceof Date&&!isNaN(A)}A$A.isValidDate=GOK});var lR6=h((K$A)=>{Object.defineProperty(K$A,"__esModule",{value:!0});K$A.timeout=K$A.TimeoutError=void 0;var ZOK=jv(),fOK=a81(),TOK=L4(),vOK=v5(),VOK=bo(),NOK=Nq(),kOK=DU();K$A.TimeoutError=VOK.createErrorClass(function(A){return function(K){if(K===void 0)K=null;A(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=K}});function EOK(A,q){var K=fOK.isValidDate(A)?{first:A}:typeof A==="number"?{each:A}:A,Y=K.first,z=K.each,w=K.with,_=w===void 0?LOK:w,$=K.scheduler,O=$===void 0?q!==null&&q!==void 0?q:ZOK.asyncScheduler:$,H=K.meta,j=H===void 0?null:H;if(Y==null&&z==null)throw TypeError("No timeout provided.");return TOK.operate(function(J,M){var D,X,P=null,W=0,G=function(Z){X=kOK.executeSchedule(M,O,function(){try{D.unsubscribe(),vOK.innerFrom(_({meta:j,lastValue:P,seen:W})).subscribe(M)}catch(f){M.error(f)}},Z)};D=J.subscribe(NOK.createOperatorSubscriber(M,function(Z){X===null||X===void 0||X.unsubscribe(),W++,M.next(P=Z),z>0&&G(z)},void 0,void 0,function(){if(!(X===null||X===void 0?void 0:X.closed))X===null||X===void 0||X.unsubscribe();P=null})),!W&&G(Y!=null?typeof Y==="number"?Y:+Y-O.now():z)})}K$A.timeout=EOK;function LOK(A){throw new K$A.TimeoutError(A)}});var PU=h((w$A)=>{Object.defineProperty(w$A,"__esModule",{value:!0});w$A.map=void 0;var yOK=L4(),ROK=Nq();function SOK(A,q){return yOK.operate(function(K,Y){var z=0;K.subscribe(ROK.createOperatorSubscriber(Y,function(w){Y.next(A.call(q,w,z++))}))})}w$A.map=SOK});var po=h((go)=>{var hOK=go&&go.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},COK=go&&go.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(go,"__esModule",{value:!0});go.mapOneOrManyArgs=void 0;var IOK=PU(),xOK=Array.isArray;function bOK(A,q){return xOK(q)?A.apply(void 0,COK([],hOK(q))):A(q)}function uOK(A){return IOK.map(function(q){return bOK(A,q)})}go.mapOneOrManyArgs=uOK});var Hc1=h((Fo)=>{var mOK=Fo&&Fo.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},$$A=Fo&&Fo.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(Fo,"__esModule",{value:!0});Fo.bindCallbackInternals=void 0;var BOK=cR6(),gOK=k2(),pOK=QH6(),FOK=po(),QOK=FH6(),UOK=c81();function Oc1(A,q,K,Y){if(K)if(BOK.isScheduler(K))Y=K;else return function(){var z=[];for(var w=0;w<arguments.length;w++)z[w]=arguments[w];return Oc1(A,q,Y).apply(this,z).pipe(FOK.mapOneOrManyArgs(K))};if(Y)return function(){var z=[];for(var w=0;w<arguments.length;w++)z[w]=arguments[w];return Oc1(A,q).apply(this,z).pipe(pOK.subscribeOn(Y),QOK.observeOn(Y))};return function(){var z=this,w=[];for(var _=0;_<arguments.length;_++)w[_]=arguments[_];var $=new UOK.AsyncSubject,O=!0;return new gOK.Observable(function(H){var j=$.subscribe(H);if(O){O=!1;var J=!1,M=!1;if(q.apply(z,$$A($$A([],mOK(w)),[function(){var D=[];for(var X=0;X<arguments.length;X++)D[X]=arguments[X];if(A){var P=D.shift();if(P!=null){$.error(P);return}}if($.next(1<D.length?D:D[0]),M=!0,J)$.complete()}])),M)$.complete();J=!0}return j})}}Fo.bindCallbackInternals=Oc1});var j$A=h((O$A)=>{Object.defineProperty(O$A,"__esModule",{value:!0});O$A.bindCallback=void 0;var dOK=Hc1();function cOK(A,q,K){return dOK.bindCallbackInternals(!1,A,q,K)}O$A.bindCallback=cOK});var D$A=h((J$A)=>{Object.defineProperty(J$A,"__esModule",{value:!0});J$A.bindNodeCallback=void 0;var lOK=Hc1();function iOK(A,q,K){return lOK.bindCallbackInternals(!0,A,q,K)}J$A.bindNodeCallback=iOK});var jc1=h((X$A)=>{Object.defineProperty(X$A,"__esModule",{value:!0});X$A.argsArgArrayOrObject=void 0;var nOK=Array.isArray,rOK=Object.getPrototypeOf,oOK=Object.prototype,aOK=Object.keys;function sOK(A){if(A.length===1){var q=A[0];if(nOK(q))return{args:q,keys:null};if(tOK(q)){var K=aOK(q);return{args:K.map(function(Y){return q[Y]}),keys:K}}}return{args:A,keys:null}}X$A.argsArgArrayOrObject=sOK;function tOK(A){return A&&typeof A==="object"&&rOK(A)===oOK}});var Jc1=h((W$A)=>{Object.defineProperty(W$A,"__esModule",{value:!0});W$A.createObject=void 0;function eOK(A,q){return A.reduce(function(K,Y,z){return K[Y]=q[z],K},{})}W$A.createObject=eOK});var s81=h((N$A)=>{Object.defineProperty(N$A,"__esModule",{value:!0});N$A.combineLatestInit=N$A.combineLatest=void 0;var AHK=k2(),qHK=jc1(),T$A=XU(),v$A=K0(),KHK=po(),Z$A=Jv(),YHK=Jc1(),zHK=Nq(),wHK=DU();function _HK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];var K=Z$A.popScheduler(A),Y=Z$A.popResultSelector(A),z=qHK.argsArgArrayOrObject(A),w=z.args,_=z.keys;if(w.length===0)return T$A.from([],K);var $=new AHK.Observable(V$A(w,K,_?function(O){return YHK.createObject(_,O)}:v$A.identity));return Y?$.pipe(KHK.mapOneOrManyArgs(Y)):$}N$A.combineLatest=_HK;function V$A(A,q,K){if(K===void 0)K=v$A.identity;return function(Y){f$A(q,function(){var z=A.length,w=Array(z),_=z,$=z,O=function(j){f$A(q,function(){var J=T$A.from(A[j],q),M=!1;J.subscribe(zHK.createOperatorSubscriber(Y,function(D){if(w[j]=D,!M)M=!0,$--;if(!$)Y.next(K(w.slice()))},function(){if(!--_)Y.complete()}))},Y)};for(var H=0;H<z;H++)O(H)},Y)}}N$A.combineLatestInit=V$A;function f$A(A,q,K){if(A)wHK.executeSchedule(K,A,q);else q()}});var t81=h((L$A)=>{Object.defineProperty(L$A,"__esModule",{value:!0});L$A.mergeInternals=void 0;var OHK=v5(),HHK=DU(),E$A=Nq();function jHK(A,q,K,Y,z,w,_,$){var O=[],H=0,j=0,J=!1,M=function(){if(J&&!O.length&&!H)q.complete()},D=function(P){return H<Y?X(P):O.push(P)},X=function(P){w&&q.next(P),H++;var W=!1;OHK.innerFrom(K(P,j++)).subscribe(E$A.createOperatorSubscriber(q,function(G){if(z===null||z===void 0||z(G),w)D(G);else q.next(G)},function(){W=!0},void 0,function(){if(W)try{H--;var G=function(){var Z=O.shift();if(_)HHK.executeSchedule(q,_,function(){return X(Z)});else X(Z)};while(O.length&&H<Y)G();M()}catch(Z){q.error(Z)}}))};return A.subscribe(E$A.createOperatorSubscriber(q,D,function(){J=!0,M()})),function(){$===null||$===void 0||$()}}L$A.mergeInternals=jHK});var _m=h((S$A)=>{Object.defineProperty(S$A,"__esModule",{value:!0});S$A.mergeMap=void 0;var JHK=PU(),MHK=v5(),DHK=L4(),XHK=t81(),PHK=aw();function R$A(A,q,K){if(K===void 0)K=1/0;if(PHK.isFunction(q))return R$A(function(Y,z){return JHK.map(function(w,_){return q(Y,w,z,_)})(MHK.innerFrom(A(Y,z)))},K);else if(typeof q==="number")K=q;return DHK.operate(function(Y,z){return XHK.mergeInternals(Y,z,A,K)})}S$A.mergeMap=R$A});var UH6=h((C$A)=>{Object.defineProperty(C$A,"__esModule",{value:!0});C$A.mergeAll=void 0;var WHK=_m(),GHK=K0();function ZHK(A){if(A===void 0)A=1/0;return WHK.mergeMap(GHK.identity,A)}C$A.mergeAll=ZHK});var iR6=h((x$A)=>{Object.defineProperty(x$A,"__esModule",{value:!0});x$A.concatAll=void 0;var fHK=UH6();function THK(){return fHK.mergeAll(1)}x$A.concatAll=THK});var nR6=h((u$A)=>{Object.defineProperty(u$A,"__esModule",{value:!0});u$A.concat=void 0;var vHK=iR6(),VHK=Jv(),NHK=XU();function kHK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];return vHK.concatAll()(NHK.from(A,VHK.popScheduler(A)))}u$A.concat=kHK});var rR6=h((B$A)=>{Object.defineProperty(B$A,"__esModule",{value:!0});B$A.defer=void 0;var EHK=k2(),LHK=v5();function yHK(A){return new EHK.Observable(function(q){LHK.innerFrom(A()).subscribe(q)})}B$A.defer=yHK});var Q$A=h((p$A)=>{Object.defineProperty(p$A,"__esModule",{value:!0});p$A.connectable=void 0;var RHK=Y0(),SHK=k2(),hHK=rR6(),CHK={connector:function(){return new RHK.Subject},resetOnDisconnect:!0};function IHK(A,q){if(q===void 0)q=CHK;var K=null,Y=q.connector,z=q.resetOnDisconnect,w=z===void 0?!0:z,_=Y(),$=new SHK.Observable(function(O){return _.subscribe(O)});return $.connect=function(){if(!K||K.closed){if(K=hHK.defer(function(){return A}).subscribe(_),w)K.add(function(){return _=Y()})}return K},$}p$A.connectable=IHK});var c$A=h((U$A)=>{Object.defineProperty(U$A,"__esModule",{value:!0});U$A.forkJoin=void 0;var xHK=k2(),bHK=jc1(),uHK=v5(),mHK=Jv(),BHK=Nq(),gHK=po(),pHK=Jc1();function FHK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];var K=mHK.popResultSelector(A),Y=bHK.argsArgArrayOrObject(A),z=Y.args,w=Y.keys,_=new xHK.Observable(function($){var O=z.length;if(!O){$.complete();return}var H=Array(O),j=O,J=O,M=function(X){var P=!1;uHK.innerFrom(z[X]).subscribe(BHK.createOperatorSubscriber($,function(W){if(!P)P=!0,J--;H[X]=W},function(){return j--},void 0,function(){if(!j||!P){if(!J)$.next(w?pHK.createObject(w,H):H);$.complete()}}))};for(var D=0;D<O;D++)M(D)});return K?_.pipe(gHK.mapOneOrManyArgs(K)):_}U$A.forkJoin=FHK});var i$A=h((dH6)=>{var QHK=dH6&&dH6.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w};Object.defineProperty(dH6,"__esModule",{value:!0});dH6.fromEvent=void 0;var UHK=v5(),dHK=k2(),cHK=_m(),lHK=i81(),Z46=aw(),iHK=po(),nHK=["addListener","removeListener"],rHK=["addEventListener","removeEventListener"],oHK=["on","off"];function Mc1(A,q,K,Y){if(Z46.isFunction(K))Y=K,K=void 0;if(Y)return Mc1(A,q,K).pipe(iHK.mapOneOrManyArgs(Y));var z=QHK(tHK(A)?rHK.map(function($){return function(O){return A[$](q,O,K)}}):aHK(A)?nHK.map(l$A(A,q)):sHK(A)?oHK.map(l$A(A,q)):[],2),w=z[0],_=z[1];if(!w){if(lHK.isArrayLike(A))return cHK.mergeMap(function($){return Mc1($,q,K)})(UHK.innerFrom(A))}if(!w)throw TypeError("Invalid event target");return new dHK.Observable(function($){var O=function(){var H=[];for(var j=0;j<arguments.length;j++)H[j]=arguments[j];return $.next(1<H.length?H:H[0])};return w(O),function(){return _(O)}})}dH6.fromEvent=Mc1;function l$A(A,q){return function(K){return function(Y){return A[K](q,Y)}}}function aHK(A){return Z46.isFunction(A.addListener)&&Z46.isFunction(A.removeListener)}function sHK(A){return Z46.isFunction(A.on)&&Z46.isFunction(A.off)}function tHK(A){return Z46.isFunction(A.addEventListener)&&Z46.isFunction(A.removeEventListener)}});var a$A=h((r$A)=>{Object.defineProperty(r$A,"__esModule",{value:!0});r$A.fromEventPattern=void 0;var eHK=k2(),AjK=aw(),qjK=po();function n$A(A,q,K){if(K)return n$A(A,q).pipe(qjK.mapOneOrManyArgs(K));return new eHK.Observable(function(Y){var z=function(){var _=[];for(var $=0;$<arguments.length;$++)_[$]=arguments[$];return Y.next(_.length===1?_[0]:_)},w=A(z);return AjK.isFunction(q)?function(){return q(z,w)}:void 0})}r$A.fromEventPattern=n$A});var t$A=h((cH6)=>{var KjK=cH6&&cH6.__generator||function(A,q){var K={label:0,sent:function(){if(w[0]&1)throw w[1];return w[1]},trys:[],ops:[]},Y,z,w,_;return _={next:$(0),throw:$(1),return:$(2)},typeof Symbol==="function"&&(_[Symbol.iterator]=function(){return this}),_;function $(H){return function(j){return O([H,j])}}function O(H){if(Y)throw TypeError("Generator is already executing.");while(K)try{if(Y=1,z&&(w=H[0]&2?z.return:H[0]?z.throw||((w=z.return)&&w.call(z),0):z.next)&&!(w=w.call(z,H[1])).done)return w;if(z=0,w)H=[H[0]&2,w.value];switch(H[0]){case 0:case 1:w=H;break;case 4:return K.label++,{value:H[1],done:!1};case 5:K.label++,z=H[1],H=[0];continue;case 7:H=K.ops.pop(),K.trys.pop();continue;default:if((w=K.trys,!(w=w.length>0&&w[w.length-1]))&&(H[0]===6||H[0]===2)){K=0;continue}if(H[0]===3&&(!w||H[1]>w[0]&&H[1]<w[3])){K.label=H[1];break}if(H[0]===6&&K.label<w[1]){K.label=w[1],w=H;break}if(w&&K.label<w[2]){K.label=w[2],K.ops.push(H);break}if(w[2])K.ops.pop();K.trys.pop();continue}H=q.call(A,K)}catch(j){H=[6,j],z=0}finally{Y=w=0}if(H[0]&5)throw H[1];return{value:H[0]?H[1]:void 0,done:!0}}};Object.defineProperty(cH6,"__esModule",{value:!0});cH6.generate=void 0;var s$A=K0(),YjK=cR6(),zjK=rR6(),wjK=qc1();function _jK(A,q,K,Y,z){var w,_,$,O;if(arguments.length===1)w=A,O=w.initialState,q=w.condition,K=w.iterate,_=w.resultSelector,$=_===void 0?s$A.identity:_,z=w.scheduler;else if(O=A,!Y||YjK.isScheduler(Y))$=s$A.identity,z=Y;else $=Y;function H(){var j;return KjK(this,function(J){switch(J.label){case 0:j=O,J.label=1;case 1:if(!(!q||q(j)))return[3,4];return[4,$(j)];case 2:J.sent(),J.label=3;case 3:return j=K(j),[3,1];case 4:return[2]}})}return zjK.defer(z?function(){return wjK.scheduleIterable(H(),z)}:H)}cH6.generate=_jK});var qOA=h((e$A)=>{Object.defineProperty(e$A,"__esModule",{value:!0});e$A.iif=void 0;var $jK=rR6();function OjK(A,q,K){return $jK.defer(function(){return A()?q:K})}e$A.iif=OjK});var Qo=h((KOA)=>{Object.defineProperty(KOA,"__esModule",{value:!0});KOA.timer=void 0;var HjK=k2(),jjK=jv(),JjK=cR6(),MjK=a81();function DjK(A,q,K){if(A===void 0)A=0;if(K===void 0)K=jjK.async;var Y=-1;if(q!=null)if(JjK.isScheduler(q))K=q;else Y=q;return new HjK.Observable(function(z){var w=MjK.isValidDate(A)?+A-K.now():A;if(w<0)w=0;var _=0;return K.schedule(function(){if(!z.closed)if(z.next(_++),0<=Y)this.schedule(void 0,Y);else z.complete()},w)})}KOA.timer=DjK});var Dc1=h((zOA)=>{Object.defineProperty(zOA,"__esModule",{value:!0});zOA.interval=void 0;var XjK=jv(),PjK=Qo();function WjK(A,q){if(A===void 0)A=0;if(q===void 0)q=XjK.asyncScheduler;if(A<0)A=0;return PjK.timer(A,A,q)}zOA.interval=WjK});var HOA=h(($OA)=>{Object.defineProperty($OA,"__esModule",{value:!0});$OA.merge=void 0;var GjK=UH6(),ZjK=v5(),fjK=vC(),_OA=Jv(),TjK=XU();function vjK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];var K=_OA.popScheduler(A),Y=_OA.popNumber(A,1/0),z=A;return!z.length?fjK.EMPTY:z.length===1?ZjK.innerFrom(z[0]):GjK.mergeAll(Y)(TjK.from(z,K))}$OA.merge=vjK});var Xc1=h((jOA)=>{Object.defineProperty(jOA,"__esModule",{value:!0});jOA.never=jOA.NEVER=void 0;var VjK=k2(),NjK=q0();jOA.NEVER=new VjK.Observable(NjK.noop);function kjK(){return jOA.NEVER}jOA.never=kjK});var f46=h((DOA)=>{Object.defineProperty(DOA,"__esModule",{value:!0});DOA.argsOrArgArray=void 0;var EjK=Array.isArray;function LjK(A){return A.length===1&&EjK(A[0])?A[0]:A}DOA.argsOrArgArray=LjK});var Pc1=h((WOA)=>{Object.defineProperty(WOA,"__esModule",{value:!0});WOA.onErrorResumeNext=void 0;var yjK=k2(),RjK=f46(),SjK=Nq(),POA=q0(),hjK=v5();function CjK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];var K=RjK.argsOrArgArray(A);return new yjK.Observable(function(Y){var z=0,w=function(){if(z<K.length){var _=void 0;try{_=hjK.innerFrom(K[z++])}catch(O){w();return}var $=new SjK.OperatorSubscriber(Y,void 0,POA.noop,POA.noop);_.subscribe($),$.add(w)}else Y.complete()};w()})}WOA.onErrorResumeNext=CjK});var TOA=h((ZOA)=>{Object.defineProperty(ZOA,"__esModule",{value:!0});ZOA.pairs=void 0;var IjK=XU();function xjK(A,q){return IjK.from(Object.entries(A),q)}ZOA.pairs=xjK});var Wc1=h((vOA)=>{Object.defineProperty(vOA,"__esModule",{value:!0});vOA.not=void 0;function bjK(A,q){return function(K,Y){return!A.call(q,K,Y)}}vOA.not=bjK});var WU=h((NOA)=>{Object.defineProperty(NOA,"__esModule",{value:!0});NOA.filter=void 0;var ujK=L4(),mjK=Nq();function BjK(A,q){return ujK.operate(function(K,Y){var z=0;K.subscribe(mjK.createOperatorSubscriber(Y,function(w){return A.call(q,w,z++)&&Y.next(w)}))})}NOA.filter=BjK});var SOA=h((yOA)=>{Object.defineProperty(yOA,"__esModule",{value:!0});yOA.partition=void 0;var gjK=Wc1(),EOA=WU(),LOA=v5();function pjK(A,q,K){return[EOA.filter(q,K)(LOA.innerFrom(A)),EOA.filter(gjK.not(q,K))(LOA.innerFrom(A))]}yOA.partition=pjK});var Gc1=h((IOA)=>{Object.defineProperty(IOA,"__esModule",{value:!0});IOA.raceInit=IOA.race=void 0;var FjK=k2(),hOA=v5(),QjK=f46(),UjK=Nq();function djK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];return A=QjK.argsOrArgArray(A),A.length===1?hOA.innerFrom(A[0]):new FjK.Observable(COA(A))}IOA.race=djK;function COA(A){return function(q){var K=[],Y=function(w){K.push(hOA.innerFrom(A[w]).subscribe(UjK.createOperatorSubscriber(q,function(_){if(K){for(var $=0;$<K.length;$++)$!==w&&K[$].unsubscribe();K=null}q.next(_)})))};for(var z=0;K&&!q.closed&&z<A.length;z++)Y(z)}}IOA.raceInit=COA});var mOA=h((bOA)=>{Object.defineProperty(bOA,"__esModule",{value:!0});bOA.range=void 0;var ljK=k2(),ijK=vC();function njK(A,q,K){if(q==null)q=A,A=0;if(q<=0)return ijK.EMPTY;var Y=q+A;return new ljK.Observable(K?function(z){var w=A;return K.schedule(function(){if(w<Y)z.next(w++),this.schedule();else z.complete()})}:function(z){var w=A;while(w<Y&&!z.closed)z.next(w++);z.complete()})}bOA.range=njK});var pOA=h((BOA)=>{Object.defineProperty(BOA,"__esModule",{value:!0});BOA.using=void 0;var rjK=k2(),ojK=v5(),ajK=vC();function sjK(A,q){return new rjK.Observable(function(K){var Y=A(),z=q(Y),w=z?ojK.innerFrom(z):ajK.EMPTY;return w.subscribe(K),function(){if(Y)Y.unsubscribe()}})}BOA.using=sjK});var e81=h((Uo)=>{var tjK=Uo&&Uo.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},ejK=Uo&&Uo.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(Uo,"__esModule",{value:!0});Uo.zip=void 0;var AJK=k2(),qJK=v5(),KJK=f46(),YJK=vC(),zJK=Nq(),wJK=Jv();function _JK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];var K=wJK.popResultSelector(A),Y=KJK.argsOrArgArray(A);return Y.length?new AJK.Observable(function(z){var w=Y.map(function(){return[]}),_=Y.map(function(){return!1});z.add(function(){w=_=null});var $=function(H){qJK.innerFrom(Y[H]).subscribe(zJK.createOperatorSubscriber(z,function(j){if(w[H].push(j),w.every(function(M){return M.length})){var J=w.map(function(M){return M.shift()});if(z.next(K?K.apply(void 0,ejK([],tjK(J))):J),w.some(function(M,D){return!M.length&&_[D]}))z.complete()}},function(){_[H]=!0,!w[H].length&&z.complete()}))};for(var O=0;!z.closed&&O<Y.length;O++)$(O);return function(){w=_=null}}):YJK.EMPTY}Uo.zip=_JK});var QOA=h((FOA)=>{Object.defineProperty(FOA,"__esModule",{value:!0})});var AA1=h((dOA)=>{Object.defineProperty(dOA,"__esModule",{value:!0});dOA.audit=void 0;var $JK=L4(),OJK=v5(),UOA=Nq();function HJK(A){return $JK.operate(function(q,K){var Y=!1,z=null,w=null,_=!1,$=function(){if(w===null||w===void 0||w.unsubscribe(),w=null,Y){Y=!1;var H=z;z=null,K.next(H)}_&&K.complete()},O=function(){w=null,_&&K.complete()};q.subscribe(UOA.createOperatorSubscriber(K,function(H){if(Y=!0,z=H,!w)OJK.innerFrom(A(H)).subscribe(w=UOA.createOperatorSubscriber(K,$,O))},function(){_=!0,(!Y||!w||w.closed)&&K.complete()}))})}dOA.audit=HJK});var Zc1=h((lOA)=>{Object.defineProperty(lOA,"__esModule",{value:!0});lOA.auditTime=void 0;var jJK=jv(),JJK=AA1(),MJK=Qo();function DJK(A,q){if(q===void 0)q=jJK.asyncScheduler;return JJK.audit(function(){return MJK.timer(A,q)})}lOA.auditTime=DJK});var fc1=h((rOA)=>{Object.defineProperty(rOA,"__esModule",{value:!0});rOA.buffer=void 0;var XJK=L4(),PJK=q0(),nOA=Nq(),WJK=v5();function GJK(A){return XJK.operate(function(q,K){var Y=[];return q.subscribe(nOA.createOperatorSubscriber(K,function(z){return Y.push(z)},function(){K.next(Y),K.complete()})),WJK.innerFrom(A).subscribe(nOA.createOperatorSubscriber(K,function(){var z=Y;Y=[],K.next(z)},PJK.noop)),function(){Y=null}})}rOA.buffer=GJK});var vc1=h((lH6)=>{var Tc1=lH6&&lH6.__values||function(A){var q=typeof Symbol==="function"&&Symbol.iterator,K=q&&A[q],Y=0;if(K)return K.call(A);if(A&&typeof A.length==="number")return{next:function(){if(A&&Y>=A.length)A=void 0;return{value:A&&A[Y++],done:!A}}};throw TypeError(q?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(lH6,"__esModule",{value:!0});lH6.bufferCount=void 0;var ZJK=L4(),fJK=Nq(),TJK=MU();function vJK(A,q){if(q===void 0)q=null;return q=q!==null&&q!==void 0?q:A,ZJK.operate(function(K,Y){var z=[],w=0;K.subscribe(fJK.createOperatorSubscriber(Y,function(_){var $,O,H,j,J=null;if(w++%q===0)z.push([]);try{for(var M=Tc1(z),D=M.next();!D.done;D=M.next()){var X=D.value;if(X.push(_),A<=X.length)J=J!==null&&J!==void 0?J:[],J.push(X)}}catch(G){$={error:G}}finally{try{if(D&&!D.done&&(O=M.return))O.call(M)}finally{if($)throw $.error}}if(J)try{for(var P=Tc1(J),W=P.next();!W.done;W=P.next()){var X=W.value;TJK.arrRemove(z,X),Y.next(X)}}catch(G){H={error:G}}finally{try{if(W&&!W.done&&(j=P.return))j.call(P)}finally{if(H)throw H.error}}},function(){var _,$;try{for(var O=Tc1(z),H=O.next();!H.done;H=O.next()){var j=H.value;Y.next(j)}}catch(J){_={error:J}}finally{try{if(H&&!H.done&&($=O.return))$.call(O)}finally{if(_)throw _.error}}Y.complete()},void 0,function(){z=null}))})}lH6.bufferCount=vJK});var Vc1=h((iH6)=>{var VJK=iH6&&iH6.__values||function(A){var q=typeof Symbol==="function"&&Symbol.iterator,K=q&&A[q],Y=0;if(K)return K.call(A);if(A&&typeof A.length==="number")return{next:function(){if(A&&Y>=A.length)A=void 0;return{value:A&&A[Y++],done:!A}}};throw TypeError(q?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(iH6,"__esModule",{value:!0});iH6.bufferTime=void 0;var NJK=rN(),kJK=L4(),EJK=Nq(),LJK=MU(),yJK=jv(),RJK=Jv(),aOA=DU();function SJK(A){var q,K,Y=[];for(var z=1;z<arguments.length;z++)Y[z-1]=arguments[z];var w=(q=RJK.popScheduler(Y))!==null&&q!==void 0?q:yJK.asyncScheduler,_=(K=Y[0])!==null&&K!==void 0?K:null,$=Y[1]||1/0;return kJK.operate(function(O,H){var j=[],J=!1,M=function(P){var{buffer:W,subs:G}=P;G.unsubscribe(),LJK.arrRemove(j,P),H.next(W),J&&D()},D=function(){if(j){var P=new NJK.Subscription;H.add(P);var W=[],G={buffer:W,subs:P};j.push(G),aOA.executeSchedule(P,w,function(){return M(G)},A)}};if(_!==null&&_>=0)aOA.executeSchedule(H,w,D,_,!0);else J=!0;D();var X=EJK.createOperatorSubscriber(H,function(P){var W,G,Z=j.slice();try{for(var f=VJK(Z),v=f.next();!v.done;v=f.next()){var V=v.value,N=V.buffer;N.push(P),$<=N.length&&M(V)}}catch(L){W={error:L}}finally{try{if(v&&!v.done&&(G=f.return))G.call(f)}finally{if(W)throw W.error}}},function(){while(j===null||j===void 0?void 0:j.length)H.next(j.shift().buffer);X===null||X===void 0||X.unsubscribe(),H.complete(),H.unsubscribe()},void 0,function(){return j=null});O.subscribe(X)})}iH6.bufferTime=SJK});var kc1=h((nH6)=>{var hJK=nH6&&nH6.__values||function(A){var q=typeof Symbol==="function"&&Symbol.iterator,K=q&&A[q],Y=0;if(K)return K.call(A);if(A&&typeof A.length==="number")return{next:function(){if(A&&Y>=A.length)A=void 0;return{value:A&&A[Y++],done:!A}}};throw TypeError(q?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(nH6,"__esModule",{value:!0});nH6.bufferToggle=void 0;var CJK=rN(),IJK=L4(),sOA=v5(),Nc1=Nq(),tOA=q0(),xJK=MU();function bJK(A,q){return IJK.operate(function(K,Y){var z=[];sOA.innerFrom(A).subscribe(Nc1.createOperatorSubscriber(Y,function(w){var _=[];z.push(_);var $=new CJK.Subscription,O=function(){xJK.arrRemove(z,_),Y.next(_),$.unsubscribe()};$.add(sOA.innerFrom(q(w)).subscribe(Nc1.createOperatorSubscriber(Y,O,tOA.noop)))},tOA.noop)),K.subscribe(Nc1.createOperatorSubscriber(Y,function(w){var _,$;try{for(var O=hJK(z),H=O.next();!H.done;H=O.next()){var j=H.value;j.push(w)}}catch(J){_={error:J}}finally{try{if(H&&!H.done&&($=O.return))$.call(O)}finally{if(_)throw _.error}}},function(){while(z.length>0)Y.next(z.shift());Y.complete()}))})}nH6.bufferToggle=bJK});var Ec1=h((AHA)=>{Object.defineProperty(AHA,"__esModule",{value:!0});AHA.bufferWhen=void 0;var uJK=L4(),mJK=q0(),eOA=Nq(),BJK=v5();function gJK(A){return uJK.operate(function(q,K){var Y=null,z=null,w=function(){z===null||z===void 0||z.unsubscribe();var _=Y;Y=[],_&&K.next(_),BJK.innerFrom(A()).subscribe(z=eOA.createOperatorSubscriber(K,w,mJK.noop))};w(),q.subscribe(eOA.createOperatorSubscriber(K,function(_){return Y===null||Y===void 0?void 0:Y.push(_)},function(){Y&&K.next(Y),K.complete()},void 0,function(){return Y=z=null}))})}AHA.bufferWhen=gJK});var Lc1=h((YHA)=>{Object.defineProperty(YHA,"__esModule",{value:!0});YHA.catchError=void 0;var pJK=v5(),FJK=Nq(),QJK=L4();function KHA(A){return QJK.operate(function(q,K){var Y=null,z=!1,w;if(Y=q.subscribe(FJK.createOperatorSubscriber(K,void 0,void 0,function(_){if(w=pJK.innerFrom(A(_,KHA(A)(q))),Y)Y.unsubscribe(),Y=null,w.subscribe(K);else z=!0})),z)Y.unsubscribe(),Y=null,w.subscribe(K)})}YHA.catchError=KHA});var yc1=h((wHA)=>{Object.defineProperty(wHA,"__esModule",{value:!0});wHA.scanInternals=void 0;var UJK=Nq();function dJK(A,q,K,Y,z){return function(w,_){var $=K,O=q,H=0;w.subscribe(UJK.createOperatorSubscriber(_,function(j){var J=H++;O=$?A(O,j,J):($=!0,j),Y&&_.next(O)},z&&function(){$&&_.next(O),_.complete()}))}}wHA.scanInternals=dJK});var T46=h(($HA)=>{Object.defineProperty($HA,"__esModule",{value:!0});$HA.reduce=void 0;var cJK=yc1(),lJK=L4();function iJK(A,q){return lJK.operate(cJK.scanInternals(A,q,arguments.length>=2,!1,!0))}$HA.reduce=iJK});var qA1=h((HHA)=>{Object.defineProperty(HHA,"__esModule",{value:!0});HHA.toArray=void 0;var nJK=T46(),rJK=L4(),oJK=function(A,q){return A.push(q),A};function aJK(){return rJK.operate(function(A,q){nJK.reduce(oJK,[])(A).subscribe(q)})}HHA.toArray=aJK});var Rc1=h((JHA)=>{Object.defineProperty(JHA,"__esModule",{value:!0});JHA.joinAllInternals=void 0;var sJK=K0(),tJK=po(),eJK=UR6(),AMK=_m(),qMK=qA1();function KMK(A,q){return eJK.pipe(qMK.toArray(),AMK.mergeMap(function(K){return A(K)}),q?tJK.mapOneOrManyArgs(q):sJK.identity)}JHA.joinAllInternals=KMK});var KA1=h((DHA)=>{Object.defineProperty(DHA,"__esModule",{value:!0});DHA.combineLatestAll=void 0;var YMK=s81(),zMK=Rc1();function wMK(A){return zMK.joinAllInternals(YMK.combineLatest,A)}DHA.combineLatestAll=wMK});var Sc1=h((PHA)=>{Object.defineProperty(PHA,"__esModule",{value:!0});PHA.combineAll=void 0;var _MK=KA1();PHA.combineAll=_MK.combineLatestAll});var hc1=h((co)=>{var GHA=co&&co.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},ZHA=co&&co.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(co,"__esModule",{value:!0});co.combineLatest=void 0;var $MK=s81(),OMK=L4(),HMK=f46(),jMK=po(),JMK=UR6(),MMK=Jv();function fHA(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];var K=MMK.popResultSelector(A);return K?JMK.pipe(fHA.apply(void 0,ZHA([],GHA(A))),jMK.mapOneOrManyArgs(K)):OMK.operate(function(Y,z){$MK.combineLatestInit(ZHA([Y],GHA(HMK.argsOrArgArray(A))))(z)})}co.combineLatest=fHA});var Cc1=h((lo)=>{var DMK=lo&&lo.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},XMK=lo&&lo.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(lo,"__esModule",{value:!0});lo.combineLatestWith=void 0;var PMK=hc1();function WMK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];return PMK.combineLatest.apply(void 0,XMK([],DMK(A)))}lo.combineLatestWith=WMK});var YA1=h((vHA)=>{Object.defineProperty(vHA,"__esModule",{value:!0});vHA.concatMap=void 0;var THA=_m(),GMK=aw();function ZMK(A,q){return GMK.isFunction(q)?THA.mergeMap(A,q,1):THA.mergeMap(A,1)}vHA.concatMap=ZMK});var Ic1=h((kHA)=>{Object.defineProperty(kHA,"__esModule",{value:!0});kHA.concatMapTo=void 0;var NHA=YA1(),fMK=aw();function TMK(A,q){return fMK.isFunction(q)?NHA.concatMap(function(){return A},q):NHA.concatMap(function(){return A})}kHA.concatMapTo=TMK});var xc1=h((io)=>{var vMK=io&&io.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},VMK=io&&io.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(io,"__esModule",{value:!0});io.concat=void 0;var NMK=L4(),kMK=iR6(),EMK=Jv(),LMK=XU();function yMK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];var K=EMK.popScheduler(A);return NMK.operate(function(Y,z){kMK.concatAll()(LMK.from(VMK([Y],vMK(A)),K)).subscribe(z)})}io.concat=yMK});var bc1=h((no)=>{var RMK=no&&no.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},SMK=no&&no.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(no,"__esModule",{value:!0});no.concatWith=void 0;var hMK=xc1();function CMK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];return hMK.concat.apply(void 0,SMK([],RMK(A)))}no.concatWith=CMK});var RHA=h((LHA)=>{Object.defineProperty(LHA,"__esModule",{value:!0});LHA.fromSubscribable=void 0;var IMK=k2();function xMK(A){return new IMK.Observable(function(q){return A.subscribe(q)})}LHA.fromSubscribable=xMK});var oR6=h((SHA)=>{Object.defineProperty(SHA,"__esModule",{value:!0});SHA.connect=void 0;var bMK=Y0(),uMK=v5(),mMK=L4(),BMK=RHA(),gMK={connector:function(){return new bMK.Subject}};function pMK(A,q){if(q===void 0)q=gMK;var K=q.connector;return mMK.operate(function(Y,z){var w=K();uMK.innerFrom(A(BMK.fromSubscribable(w))).subscribe(z),z.add(Y.subscribe(w))})}SHA.connect=pMK});var uc1=h((CHA)=>{Object.defineProperty(CHA,"__esModule",{value:!0});CHA.count=void 0;var FMK=T46();function QMK(A){return FMK.reduce(function(q,K,Y){return!A||A(K,Y)?q+1:q},0)}CHA.count=QMK});var mc1=h((bHA)=>{Object.defineProperty(bHA,"__esModule",{value:!0});bHA.debounce=void 0;var UMK=L4(),dMK=q0(),xHA=Nq(),cMK=v5();function lMK(A){return UMK.operate(function(q,K){var Y=!1,z=null,w=null,_=function(){if(w===null||w===void 0||w.unsubscribe(),w=null,Y){Y=!1;var $=z;z=null,K.next($)}};q.subscribe(xHA.createOperatorSubscriber(K,function($){w===null||w===void 0||w.unsubscribe(),Y=!0,z=$,w=xHA.createOperatorSubscriber(K,_,dMK.noop),cMK.innerFrom(A($)).subscribe(w)},function(){_(),K.complete()},void 0,function(){z=w=null}))})}bHA.debounce=lMK});var Bc1=h((mHA)=>{Object.defineProperty(mHA,"__esModule",{value:!0});mHA.debounceTime=void 0;var iMK=jv(),nMK=L4(),rMK=Nq();function oMK(A,q){if(q===void 0)q=iMK.asyncScheduler;return nMK.operate(function(K,Y){var z=null,w=null,_=null,$=function(){if(z){z.unsubscribe(),z=null;var H=w;w=null,Y.next(H)}};function O(){var H=_+A,j=q.now();if(j<H){z=this.schedule(void 0,H-j),Y.add(z);return}$()}K.subscribe(rMK.createOperatorSubscriber(Y,function(H){if(w=H,_=q.now(),!z)z=q.schedule(O,A),Y.add(z)},function(){$(),Y.complete()},void 0,function(){w=z=null}))})}mHA.debounceTime=oMK});var rH6=h((gHA)=>{Object.defineProperty(gHA,"__esModule",{value:!0});gHA.defaultIfEmpty=void 0;var aMK=L4(),sMK=Nq();function tMK(A){return aMK.operate(function(q,K){var Y=!1;q.subscribe(sMK.createOperatorSubscriber(K,function(z){Y=!0,K.next(z)},function(){if(!Y)K.next(A);K.complete()}))})}gHA.defaultIfEmpty=tMK});var oH6=h((FHA)=>{Object.defineProperty(FHA,"__esModule",{value:!0});FHA.take=void 0;var eMK=vC(),ADK=L4(),qDK=Nq();function KDK(A){return A<=0?function(){return eMK.EMPTY}:ADK.operate(function(q,K){var Y=0;q.subscribe(qDK.createOperatorSubscriber(K,function(z){if(++Y<=A){if(K.next(z),A<=Y)K.complete()}}))})}FHA.take=KDK});var zA1=h((UHA)=>{Object.defineProperty(UHA,"__esModule",{value:!0});UHA.ignoreElements=void 0;var YDK=L4(),zDK=Nq(),wDK=q0();function _DK(){return YDK.operate(function(A,q){A.subscribe(zDK.createOperatorSubscriber(q,wDK.noop))})}UHA.ignoreElements=_DK});var wA1=h((cHA)=>{Object.defineProperty(cHA,"__esModule",{value:!0});cHA.mapTo=void 0;var $DK=PU();function ODK(A){return $DK.map(function(){return A})}cHA.mapTo=ODK});var _A1=h((rHA)=>{Object.defineProperty(rHA,"__esModule",{value:!0});rHA.delayWhen=void 0;var HDK=nR6(),iHA=oH6(),jDK=zA1(),JDK=wA1(),MDK=_m(),DDK=v5();function nHA(A,q){if(q)return function(K){return HDK.concat(q.pipe(iHA.take(1),jDK.ignoreElements()),K.pipe(nHA(A)))};return MDK.mergeMap(function(K,Y){return DDK.innerFrom(A(K,Y)).pipe(iHA.take(1),JDK.mapTo(K))})}rHA.delayWhen=nHA});var gc1=h((aHA)=>{Object.defineProperty(aHA,"__esModule",{value:!0});aHA.delay=void 0;var XDK=jv(),PDK=_A1(),WDK=Qo();function GDK(A,q){if(q===void 0)q=XDK.asyncScheduler;var K=WDK.timer(A,q);return PDK.delayWhen(function(){return K})}aHA.delay=GDK});var pc1=h((tHA)=>{Object.defineProperty(tHA,"__esModule",{value:!0});tHA.dematerialize=void 0;var ZDK=o81(),fDK=L4(),TDK=Nq();function vDK(){return fDK.operate(function(A,q){A.subscribe(TDK.createOperatorSubscriber(q,function(K){return ZDK.observeNotification(K,q)}))})}tHA.dematerialize=vDK});var Fc1=h((qjA)=>{Object.defineProperty(qjA,"__esModule",{value:!0});qjA.distinct=void 0;var VDK=L4(),AjA=Nq(),NDK=q0(),kDK=v5();function EDK(A,q){return VDK.operate(function(K,Y){var z=new Set;K.subscribe(AjA.createOperatorSubscriber(Y,function(w){var _=A?A(w):w;if(!z.has(_))z.add(_),Y.next(w)})),q&&kDK.innerFrom(q).subscribe(AjA.createOperatorSubscriber(Y,function(){return z.clear()},NDK.noop))})}qjA.distinct=EDK});var $A1=h((YjA)=>{Object.defineProperty(YjA,"__esModule",{value:!0});YjA.distinctUntilChanged=void 0;var LDK=K0(),yDK=L4(),RDK=Nq();function SDK(A,q){if(q===void 0)q=LDK.identity;return A=A!==null&&A!==void 0?A:hDK,yDK.operate(function(K,Y){var z,w=!0;K.subscribe(RDK.createOperatorSubscriber(Y,function(_){var $=q(_);if(w||!A(z,$))w=!1,z=$,Y.next(_)}))})}YjA.distinctUntilChanged=SDK;function hDK(A,q){return A===q}});var Qc1=h((wjA)=>{Object.defineProperty(wjA,"__esModule",{value:!0});wjA.distinctUntilKeyChanged=void 0;var CDK=$A1();function IDK(A,q){return CDK.distinctUntilChanged(function(K,Y){return q?q(K[A],Y[A]):K[A]===Y[A]})}wjA.distinctUntilKeyChanged=IDK});var aH6=h(($jA)=>{Object.defineProperty($jA,"__esModule",{value:!0});$jA.throwIfEmpty=void 0;var xDK=Bo(),bDK=L4(),uDK=Nq();function mDK(A){if(A===void 0)A=BDK;return bDK.operate(function(q,K){var Y=!1;q.subscribe(uDK.createOperatorSubscriber(K,function(z){Y=!0,K.next(z)},function(){return Y?K.complete():K.error(A())}))})}$jA.throwIfEmpty=mDK;function BDK(){return new xDK.EmptyError}});var Uc1=h((jjA)=>{Object.defineProperty(jjA,"__esModule",{value:!0});jjA.elementAt=void 0;var HjA=wc1(),gDK=WU(),pDK=aH6(),FDK=rH6(),QDK=oH6();function UDK(A,q){if(A<0)throw new HjA.ArgumentOutOfRangeError;var K=arguments.length>=2;return function(Y){return Y.pipe(gDK.filter(function(z,w){return w===A}),QDK.take(1),K?FDK.defaultIfEmpty(q):pDK.throwIfEmpty(function(){return new HjA.ArgumentOutOfRangeError}))}}jjA.elementAt=UDK});var dc1=h((ro)=>{var dDK=ro&&ro.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},cDK=ro&&ro.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(ro,"__esModule",{value:!0});ro.endWith=void 0;var lDK=nR6(),iDK=r81();function nDK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];return function(K){return lDK.concat(K,iDK.of.apply(void 0,cDK([],dDK(A))))}}ro.endWith=nDK});var cc1=h((MjA)=>{Object.defineProperty(MjA,"__esModule",{value:!0});MjA.every=void 0;var rDK=L4(),oDK=Nq();function aDK(A,q){return rDK.operate(function(K,Y){var z=0;K.subscribe(oDK.createOperatorSubscriber(Y,function(w){if(!A.call(q,w,z++,K))Y.next(!1),Y.complete()},function(){Y.next(!0),Y.complete()}))})}MjA.every=aDK});var OA1=h((GjA)=>{Object.defineProperty(GjA,"__esModule",{value:!0});GjA.exhaustMap=void 0;var sDK=PU(),XjA=v5(),tDK=L4(),PjA=Nq();function WjA(A,q){if(q)return function(K){return K.pipe(WjA(function(Y,z){return XjA.innerFrom(A(Y,z)).pipe(sDK.map(function(w,_){return q(Y,w,z,_)}))}))};return tDK.operate(function(K,Y){var z=0,w=null,_=!1;K.subscribe(PjA.createOperatorSubscriber(Y,function($){if(!w)w=PjA.createOperatorSubscriber(Y,void 0,function(){w=null,_&&Y.complete()}),XjA.innerFrom(A($,z++)).subscribe(w)},function(){_=!0,!w&&Y.complete()}))})}GjA.exhaustMap=WjA});var HA1=h((fjA)=>{Object.defineProperty(fjA,"__esModule",{value:!0});fjA.exhaustAll=void 0;var eDK=OA1(),AXK=K0();function qXK(){return eDK.exhaustMap(AXK.identity)}fjA.exhaustAll=qXK});var lc1=h((vjA)=>{Object.defineProperty(vjA,"__esModule",{value:!0});vjA.exhaust=void 0;var KXK=HA1();vjA.exhaust=KXK.exhaustAll});var ic1=h((NjA)=>{Object.defineProperty(NjA,"__esModule",{value:!0});NjA.expand=void 0;var YXK=L4(),zXK=t81();function wXK(A,q,K){if(q===void 0)q=1/0;return q=(q||0)<1?1/0:q,YXK.operate(function(Y,z){return zXK.mergeInternals(Y,z,A,q,void 0,!0,K)})}NjA.expand=wXK});var nc1=h((EjA)=>{Object.defineProperty(EjA,"__esModule",{value:!0});EjA.finalize=void 0;var _XK=L4();function $XK(A){return _XK.operate(function(q,K){try{q.subscribe(K)}finally{K.add(A)}})}EjA.finalize=$XK});var jA1=h((RjA)=>{Object.defineProperty(RjA,"__esModule",{value:!0});RjA.createFind=RjA.find=void 0;var OXK=L4(),HXK=Nq();function jXK(A,q){return OXK.operate(yjA(A,q,"value"))}RjA.find=jXK;function yjA(A,q,K){var Y=K==="index";return function(z,w){var _=0;z.subscribe(HXK.createOperatorSubscriber(w,function($){var O=_++;if(A.call(q,$,O,z))w.next(Y?O:$),w.complete()},function(){w.next(Y?-1:void 0),w.complete()}))}}RjA.createFind=yjA});var rc1=h((hjA)=>{Object.defineProperty(hjA,"__esModule",{value:!0});hjA.findIndex=void 0;var MXK=L4(),DXK=jA1();function XXK(A,q){return MXK.operate(DXK.createFind(A,q,"index"))}hjA.findIndex=XXK});var oc1=h((IjA)=>{Object.defineProperty(IjA,"__esModule",{value:!0});IjA.first=void 0;var PXK=Bo(),WXK=WU(),GXK=oH6(),ZXK=rH6(),fXK=aH6(),TXK=K0();function vXK(A,q){var K=arguments.length>=2;return function(Y){return Y.pipe(A?WXK.filter(function(z,w){return A(z,w,Y)}):TXK.identity,GXK.take(1),K?ZXK.defaultIfEmpty(q):fXK.throwIfEmpty(function(){return new PXK.EmptyError}))}}IjA.first=vXK});var ac1=h((ujA)=>{Object.defineProperty(ujA,"__esModule",{value:!0});ujA.groupBy=void 0;var VXK=k2(),NXK=v5(),kXK=Y0(),EXK=L4(),bjA=Nq();function LXK(A,q,K,Y){return EXK.operate(function(z,w){var _;if(!q||typeof q==="function")_=q;else K=q.duration,_=q.element,Y=q.connector;var $=new Map,O=function(X){$.forEach(X),X(w)},H=function(X){return O(function(P){return P.error(X)})},j=0,J=!1,M=new bjA.OperatorSubscriber(w,function(X){try{var P=A(X),W=$.get(P);if(!W){$.set(P,W=Y?Y():new kXK.Subject);var G=D(P,W);if(w.next(G),K){var Z=bjA.createOperatorSubscriber(W,function(){W.complete(),Z===null||Z===void 0||Z.unsubscribe()},void 0,void 0,function(){return $.delete(P)});M.add(NXK.innerFrom(K(G)).subscribe(Z))}}W.next(_?_(X):X)}catch(f){H(f)}},function(){return O(function(X){return X.complete()})},H,function(){return $.clear()},function(){return J=!0,j===0});z.subscribe(M);function D(X,P){var W=new VXK.Observable(function(G){j++;var Z=P.subscribe(G);return function(){Z.unsubscribe(),--j===0&&J&&M.unsubscribe()}});return W.key=X,W}})}ujA.groupBy=LXK});var sc1=h((BjA)=>{Object.defineProperty(BjA,"__esModule",{value:!0});BjA.isEmpty=void 0;var yXK=L4(),RXK=Nq();function SXK(){return yXK.operate(function(A,q){A.subscribe(RXK.createOperatorSubscriber(q,function(){q.next(!1),q.complete()},function(){q.next(!0),q.complete()}))})}BjA.isEmpty=SXK});var JA1=h((sH6)=>{var hXK=sH6&&sH6.__values||function(A){var q=typeof Symbol==="function"&&Symbol.iterator,K=q&&A[q],Y=0;if(K)return K.call(A);if(A&&typeof A.length==="number")return{next:function(){if(A&&Y>=A.length)A=void 0;return{value:A&&A[Y++],done:!A}}};throw TypeError(q?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(sH6,"__esModule",{value:!0});sH6.takeLast=void 0;var CXK=vC(),IXK=L4(),xXK=Nq();function bXK(A){return A<=0?function(){return CXK.EMPTY}:IXK.operate(function(q,K){var Y=[];q.subscribe(xXK.createOperatorSubscriber(K,function(z){Y.push(z),A<Y.length&&Y.shift()},function(){var z,w;try{for(var _=hXK(Y),$=_.next();!$.done;$=_.next()){var O=$.value;K.next(O)}}catch(H){z={error:H}}finally{try{if($&&!$.done&&(w=_.return))w.call(_)}finally{if(z)throw z.error}}K.complete()},void 0,function(){Y=null}))})}sH6.takeLast=bXK});var tc1=h((pjA)=>{Object.defineProperty(pjA,"__esModule",{value:!0});pjA.last=void 0;var uXK=Bo(),mXK=WU(),BXK=JA1(),gXK=aH6(),pXK=rH6(),FXK=K0();function QXK(A,q){var K=arguments.length>=2;return function(Y){return Y.pipe(A?mXK.filter(function(z,w){return A(z,w,Y)}):FXK.identity,BXK.takeLast(1),K?pXK.defaultIfEmpty(q):gXK.throwIfEmpty(function(){return new uXK.EmptyError}))}}pjA.last=QXK});var Al1=h((QjA)=>{Object.defineProperty(QjA,"__esModule",{value:!0});QjA.materialize=void 0;var ec1=o81(),UXK=L4(),dXK=Nq();function cXK(){return UXK.operate(function(A,q){A.subscribe(dXK.createOperatorSubscriber(q,function(K){q.next(ec1.Notification.createNext(K))},function(){q.next(ec1.Notification.createComplete()),q.complete()},function(K){q.next(ec1.Notification.createError(K)),q.complete()}))})}QjA.materialize=cXK});var ql1=h((djA)=>{Object.defineProperty(djA,"__esModule",{value:!0});djA.max=void 0;var lXK=T46(),iXK=aw();function nXK(A){return lXK.reduce(iXK.isFunction(A)?function(q,K){return A(q,K)>0?q:K}:function(q,K){return q>K?q:K})}djA.max=nXK});var Kl1=h((ljA)=>{Object.defineProperty(ljA,"__esModule",{value:!0});ljA.flatMap=void 0;var rXK=_m();ljA.flatMap=rXK.mergeMap});var Yl1=h((rjA)=>{Object.defineProperty(rjA,"__esModule",{value:!0});rjA.mergeMapTo=void 0;var njA=_m(),oXK=aw();function aXK(A,q,K){if(K===void 0)K=1/0;if(oXK.isFunction(q))return njA.mergeMap(function(){return A},q,K);if(typeof q==="number")K=q;return njA.mergeMap(function(){return A},K)}rjA.mergeMapTo=aXK});var zl1=h((ajA)=>{Object.defineProperty(ajA,"__esModule",{value:!0});ajA.mergeScan=void 0;var sXK=L4(),tXK=t81();function eXK(A,q,K){if(K===void 0)K=1/0;return sXK.operate(function(Y,z){var w=q;return tXK.mergeInternals(Y,z,function(_,$){return A(w,_,$)},K,function(_){w=_},!1,void 0,function(){return w=null})})}ajA.mergeScan=eXK});var wl1=h((oo)=>{var APK=oo&&oo.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},qPK=oo&&oo.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(oo,"__esModule",{value:!0});oo.merge=void 0;var KPK=L4(),YPK=UH6(),tjA=Jv(),zPK=XU();function wPK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];var K=tjA.popScheduler(A),Y=tjA.popNumber(A,1/0);return KPK.operate(function(z,w){YPK.mergeAll(Y)(zPK.from(qPK([z],APK(A)),K)).subscribe(w)})}oo.merge=wPK});var _l1=h((ao)=>{var _PK=ao&&ao.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},$PK=ao&&ao.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(ao,"__esModule",{value:!0});ao.mergeWith=void 0;var OPK=wl1();function HPK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];return OPK.merge.apply(void 0,$PK([],_PK(A)))}ao.mergeWith=HPK});var $l1=h((ejA)=>{Object.defineProperty(ejA,"__esModule",{value:!0});ejA.min=void 0;var jPK=T46(),JPK=aw();function MPK(A){return jPK.reduce(JPK.isFunction(A)?function(q,K){return A(q,K)<0?q:K}:function(q,K){return q<K?q:K})}ejA.min=MPK});var aR6=h((KJA)=>{Object.defineProperty(KJA,"__esModule",{value:!0});KJA.multicast=void 0;var DPK=dR6(),qJA=aw(),XPK=oR6();function PPK(A,q){var K=qJA.isFunction(A)?A:function(){return A};if(qJA.isFunction(q))return XPK.connect(q,{connector:K});return function(Y){return new DPK.ConnectableObservable(Y,K)}}KJA.multicast=PPK});var Ol1=h(($m)=>{var WPK=$m&&$m.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},GPK=$m&&$m.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty($m,"__esModule",{value:!0});$m.onErrorResumeNext=$m.onErrorResumeNextWith=void 0;var ZPK=f46(),fPK=Pc1();function zJA(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];var K=ZPK.argsOrArgArray(A);return function(Y){return fPK.onErrorResumeNext.apply(void 0,GPK([Y],WPK(K)))}}$m.onErrorResumeNextWith=zJA;$m.onErrorResumeNext=zJA});var Hl1=h((wJA)=>{Object.defineProperty(wJA,"__esModule",{value:!0});wJA.pairwise=void 0;var TPK=L4(),vPK=Nq();function VPK(){return TPK.operate(function(A,q){var K,Y=!1;A.subscribe(vPK.createOperatorSubscriber(q,function(z){var w=K;K=z,Y&&q.next([w,z]),Y=!0}))})}wJA.pairwise=VPK});var jl1=h(($JA)=>{Object.defineProperty($JA,"__esModule",{value:!0});$JA.pluck=void 0;var NPK=PU();function kPK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];var K=A.length;if(K===0)throw Error("list of properties cannot be empty.");return NPK.map(function(Y){var z=Y;for(var w=0;w<K;w++){var _=z===null||z===void 0?void 0:z[A[w]];if(typeof _<"u")z=_;else return}return z})}$JA.pluck=kPK});var Jl1=h((HJA)=>{Object.defineProperty(HJA,"__esModule",{value:!0});HJA.publish=void 0;var EPK=Y0(),LPK=aR6(),yPK=oR6();function RPK(A){return A?function(q){return yPK.connect(A)(q)}:function(q){return LPK.multicast(new EPK.Subject)(q)}}HJA.publish=RPK});var Ml1=h((JJA)=>{Object.defineProperty(JJA,"__esModule",{value:!0});JJA.publishBehavior=void 0;var SPK=Qd1(),hPK=dR6();function CPK(A){return function(q){var K=new SPK.BehaviorSubject(A);return new hPK.ConnectableObservable(q,function(){return K})}}JJA.publishBehavior=CPK});var Dl1=h((DJA)=>{Object.defineProperty(DJA,"__esModule",{value:!0});DJA.publishLast=void 0;var IPK=c81(),xPK=dR6();function bPK(){return function(A){var q=new IPK.AsyncSubject;return new xPK.ConnectableObservable(A,function(){return q})}}DJA.publishLast=bPK});var Xl1=h((WJA)=>{Object.defineProperty(WJA,"__esModule",{value:!0});WJA.publishReplay=void 0;var uPK=d81(),mPK=aR6(),PJA=aw();function BPK(A,q,K,Y){if(K&&!PJA.isFunction(K))Y=K;var z=PJA.isFunction(K)?K:void 0;return function(w){return mPK.multicast(new uPK.ReplaySubject(A,q,Y),z)(w)}}WJA.publishReplay=BPK});var MA1=h((so)=>{var gPK=so&&so.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},pPK=so&&so.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(so,"__esModule",{value:!0});so.raceWith=void 0;var FPK=Gc1(),QPK=L4(),UPK=K0();function dPK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];return!A.length?UPK.identity:QPK.operate(function(K,Y){FPK.raceInit(pPK([K],gPK(A)))(Y)})}so.raceWith=dPK});var Pl1=h((fJA)=>{Object.defineProperty(fJA,"__esModule",{value:!0});fJA.repeat=void 0;var cPK=vC(),lPK=L4(),ZJA=Nq(),iPK=v5(),nPK=Qo();function rPK(A){var q,K=1/0,Y;if(A!=null)if(typeof A==="object")q=A.count,K=q===void 0?1/0:q,Y=A.delay;else K=A;return K<=0?function(){return cPK.EMPTY}:lPK.operate(function(z,w){var _=0,$,O=function(){if($===null||$===void 0||$.unsubscribe(),$=null,Y!=null){var j=typeof Y==="number"?nPK.timer(Y):iPK.innerFrom(Y(_)),J=ZJA.createOperatorSubscriber(w,function(){J.unsubscribe(),H()});j.subscribe(J)}else H()},H=function(){var j=!1;if($=z.subscribe(ZJA.createOperatorSubscriber(w,void 0,function(){if(++_<K)if($)O();else j=!0;else w.complete()})),j)O()};H()})}fJA.repeat=rPK});var Wl1=h((VJA)=>{Object.defineProperty(VJA,"__esModule",{value:!0});VJA.repeatWhen=void 0;var oPK=v5(),aPK=Y0(),sPK=L4(),vJA=Nq();function tPK(A){return sPK.operate(function(q,K){var Y,z=!1,w,_=!1,$=!1,O=function(){return $&&_&&(K.complete(),!0)},H=function(){if(!w)w=new aPK.Subject,oPK.innerFrom(A(w)).subscribe(vJA.createOperatorSubscriber(K,function(){if(Y)j();else z=!0},function(){_=!0,O()}));return w},j=function(){if($=!1,Y=q.subscribe(vJA.createOperatorSubscriber(K,void 0,function(){$=!0,!O()&&H().next()})),z)Y.unsubscribe(),Y=null,z=!1,j()};j()})}VJA.repeatWhen=tPK});var Gl1=h((EJA)=>{Object.defineProperty(EJA,"__esModule",{value:!0});EJA.retry=void 0;var ePK=L4(),kJA=Nq(),A0K=K0(),q0K=Qo(),K0K=v5();function Y0K(A){if(A===void 0)A=1/0;var q;if(A&&typeof A==="object")q=A;else q={count:A};var K=q.count,Y=K===void 0?1/0:K,z=q.delay,w=q.resetOnSuccess,_=w===void 0?!1:w;return Y<=0?A0K.identity:ePK.operate(function($,O){var H=0,j,J=function(){var M=!1;if(j=$.subscribe(kJA.createOperatorSubscriber(O,function(D){if(_)H=0;O.next(D)},void 0,function(D){if(H++<Y){var X=function(){if(j)j.unsubscribe(),j=null,J();else M=!0};if(z!=null){var P=typeof z==="number"?q0K.timer(z):K0K.innerFrom(z(D,H)),W=kJA.createOperatorSubscriber(O,function(){W.unsubscribe(),X()},function(){O.complete()});P.subscribe(W)}else X()}else O.error(D)})),M)j.unsubscribe(),j=null,J()};J()})}EJA.retry=Y0K});var Zl1=h((RJA)=>{Object.defineProperty(RJA,"__esModule",{value:!0});RJA.retryWhen=void 0;var z0K=v5(),w0K=Y0(),_0K=L4(),yJA=Nq();function $0K(A){return _0K.operate(function(q,K){var Y,z=!1,w,_=function(){if(Y=q.subscribe(yJA.createOperatorSubscriber(K,void 0,void 0,function($){if(!w)w=new w0K.Subject,z0K.innerFrom(A(w)).subscribe(yJA.createOperatorSubscriber(K,function(){return Y?_():z=!0}));if(w)w.next($)})),z)Y.unsubscribe(),Y=null,z=!1,_()};_()})}RJA.retryWhen=$0K});var DA1=h((CJA)=>{Object.defineProperty(CJA,"__esModule",{value:!0});CJA.sample=void 0;var O0K=v5(),H0K=L4(),j0K=q0(),hJA=Nq();function J0K(A){return H0K.operate(function(q,K){var Y=!1,z=null;q.subscribe(hJA.createOperatorSubscriber(K,function(w){Y=!0,z=w})),O0K.innerFrom(A).subscribe(hJA.createOperatorSubscriber(K,function(){if(Y){Y=!1;var w=z;z=null,K.next(w)}},j0K.noop))})}CJA.sample=J0K});var fl1=h((xJA)=>{Object.defineProperty(xJA,"__esModule",{value:!0});xJA.sampleTime=void 0;var M0K=jv(),D0K=DA1(),X0K=Dc1();function P0K(A,q){if(q===void 0)q=M0K.asyncScheduler;return D0K.sample(X0K.interval(A,q))}xJA.sampleTime=P0K});var Tl1=h((uJA)=>{Object.defineProperty(uJA,"__esModule",{value:!0});uJA.scan=void 0;var W0K=L4(),G0K=yc1();function Z0K(A,q){return W0K.operate(G0K.scanInternals(A,q,arguments.length>=2,!0))}uJA.scan=Z0K});var vl1=h((gJA)=>{Object.defineProperty(gJA,"__esModule",{value:!0});gJA.sequenceEqual=void 0;var f0K=L4(),T0K=Nq(),v0K=v5();function V0K(A,q){if(q===void 0)q=function(K,Y){return K===Y};return f0K.operate(function(K,Y){var z=BJA(),w=BJA(),_=function(O){Y.next(O),Y.complete()},$=function(O,H){var j=T0K.createOperatorSubscriber(Y,function(J){var{buffer:M,complete:D}=H;if(M.length===0)D?_(!1):O.buffer.push(J);else!q(J,M.shift())&&_(!1)},function(){O.complete=!0;var{complete:J,buffer:M}=H;J&&_(M.length===0),j===null||j===void 0||j.unsubscribe()});return j};K.subscribe($(z,w)),v0K.innerFrom(A).subscribe($(w,z))})}gJA.sequenceEqual=V0K;function BJA(){return{buffer:[],complete:!1}}});var XA1=h((to)=>{var N0K=to&&to.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},k0K=to&&to.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(to,"__esModule",{value:!0});to.share=void 0;var FJA=v5(),E0K=Y0(),QJA=VH6(),L0K=L4();function y0K(A){if(A===void 0)A={};var q=A.connector,K=q===void 0?function(){return new E0K.Subject}:q,Y=A.resetOnError,z=Y===void 0?!0:Y,w=A.resetOnComplete,_=w===void 0?!0:w,$=A.resetOnRefCountZero,O=$===void 0?!0:$;return function(H){var j,J,M,D=0,X=!1,P=!1,W=function(){J===null||J===void 0||J.unsubscribe(),J=void 0},G=function(){W(),j=M=void 0,X=P=!1},Z=function(){var f=j;G(),f===null||f===void 0||f.unsubscribe()};return L0K.operate(function(f,v){if(D++,!P&&!X)W();var V=M=M!==null&&M!==void 0?M:K();if(v.add(function(){if(D--,D===0&&!P&&!X)J=Vl1(Z,O)}),V.subscribe(v),!j&&D>0)j=new QJA.SafeSubscriber({next:function(N){return V.next(N)},error:function(N){P=!0,W(),J=Vl1(G,z,N),V.error(N)},complete:function(){X=!0,W(),J=Vl1(G,_),V.complete()}}),FJA.innerFrom(f).subscribe(j)})(H)}}to.share=y0K;function Vl1(A,q){var K=[];for(var Y=2;Y<arguments.length;Y++)K[Y-2]=arguments[Y];if(q===!0){A();return}if(q===!1)return;var z=new QJA.SafeSubscriber({next:function(){z.unsubscribe(),A()}});return FJA.innerFrom(q.apply(void 0,k0K([],N0K(K)))).subscribe(z)}});var Nl1=h((UJA)=>{Object.defineProperty(UJA,"__esModule",{value:!0});UJA.shareReplay=void 0;var R0K=d81(),S0K=XA1();function h0K(A,q,K){var Y,z,w,_,$=!1;if(A&&typeof A==="object")Y=A.bufferSize,_=Y===void 0?1/0:Y,z=A.windowTime,q=z===void 0?1/0:z,w=A.refCount,$=w===void 0?!1:w,K=A.scheduler;else _=A!==null&&A!==void 0?A:1/0;return S0K.share({connector:function(){return new R0K.ReplaySubject(_,q,K)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:$})}UJA.shareReplay=h0K});var kl1=h((cJA)=>{Object.defineProperty(cJA,"__esModule",{value:!0});cJA.single=void 0;var C0K=Bo(),I0K=$c1(),x0K=_c1(),b0K=L4(),u0K=Nq();function m0K(A){return b0K.operate(function(q,K){var Y=!1,z,w=!1,_=0;q.subscribe(u0K.createOperatorSubscriber(K,function($){if(w=!0,!A||A($,_++,q))Y&&K.error(new I0K.SequenceError("Too many matching values")),Y=!0,z=$},function(){if(Y)K.next(z),K.complete();else K.error(w?new x0K.NotFoundError("No matching values"):new C0K.EmptyError)}))})}cJA.single=m0K});var El1=h((iJA)=>{Object.defineProperty(iJA,"__esModule",{value:!0});iJA.skip=void 0;var B0K=WU();function g0K(A){return B0K.filter(function(q,K){return A<=K})}iJA.skip=g0K});var Ll1=h((rJA)=>{Object.defineProperty(rJA,"__esModule",{value:!0});rJA.skipLast=void 0;var p0K=K0(),F0K=L4(),Q0K=Nq();function U0K(A){return A<=0?p0K.identity:F0K.operate(function(q,K){var Y=Array(A),z=0;return q.subscribe(Q0K.createOperatorSubscriber(K,function(w){var _=z++;if(_<A)Y[_]=w;else{var $=_%A,O=Y[$];Y[$]=w,K.next(O)}})),function(){Y=null}})}rJA.skipLast=U0K});var yl1=h((sJA)=>{Object.defineProperty(sJA,"__esModule",{value:!0});sJA.skipUntil=void 0;var d0K=L4(),aJA=Nq(),c0K=v5(),l0K=q0();function i0K(A){return d0K.operate(function(q,K){var Y=!1,z=aJA.createOperatorSubscriber(K,function(){z===null||z===void 0||z.unsubscribe(),Y=!0},l0K.noop);c0K.innerFrom(A).subscribe(z),q.subscribe(aJA.createOperatorSubscriber(K,function(w){return Y&&K.next(w)}))})}sJA.skipUntil=i0K});var Rl1=h((eJA)=>{Object.defineProperty(eJA,"__esModule",{value:!0});eJA.skipWhile=void 0;var n0K=L4(),r0K=Nq();function o0K(A){return n0K.operate(function(q,K){var Y=!1,z=0;q.subscribe(r0K.createOperatorSubscriber(K,function(w){return(Y||(Y=!A(w,z++)))&&K.next(w)}))})}eJA.skipWhile=o0K});var Sl1=h((KMA)=>{Object.defineProperty(KMA,"__esModule",{value:!0});KMA.startWith=void 0;var qMA=nR6(),a0K=Jv(),s0K=L4();function t0K(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];var K=a0K.popScheduler(A);return s0K.operate(function(Y,z){(K?qMA.concat(A,Y,K):qMA.concat(A,Y)).subscribe(z)})}KMA.startWith=t0K});var tH6=h((wMA)=>{Object.defineProperty(wMA,"__esModule",{value:!0});wMA.switchMap=void 0;var e0K=v5(),AWK=L4(),zMA=Nq();function qWK(A,q){return AWK.operate(function(K,Y){var z=null,w=0,_=!1,$=function(){return _&&!z&&Y.complete()};K.subscribe(zMA.createOperatorSubscriber(Y,function(O){z===null||z===void 0||z.unsubscribe();var H=0,j=w++;e0K.innerFrom(A(O,j)).subscribe(z=zMA.createOperatorSubscriber(Y,function(J){return Y.next(q?q(O,J,j,H++):J)},function(){z=null,$()}))},function(){_=!0,$()}))})}wMA.switchMap=qWK});var hl1=h(($MA)=>{Object.defineProperty($MA,"__esModule",{value:!0});$MA.switchAll=void 0;var KWK=tH6(),YWK=K0();function zWK(){return KWK.switchMap(YWK.identity)}$MA.switchAll=zWK});var Cl1=h((jMA)=>{Object.defineProperty(jMA,"__esModule",{value:!0});jMA.switchMapTo=void 0;var HMA=tH6(),wWK=aw();function _WK(A,q){return wWK.isFunction(q)?HMA.switchMap(function(){return A},q):HMA.switchMap(function(){return A})}jMA.switchMapTo=_WK});var Il1=h((MMA)=>{Object.defineProperty(MMA,"__esModule",{value:!0});MMA.switchScan=void 0;var $WK=tH6(),OWK=L4();function HWK(A,q){return OWK.operate(function(K,Y){var z=q;return $WK.switchMap(function(w,_){return A(z,w,_)},function(w,_){return z=_,_})(K).subscribe(Y),function(){z=null}})}MMA.switchScan=HWK});var xl1=h((XMA)=>{Object.defineProperty(XMA,"__esModule",{value:!0});XMA.takeUntil=void 0;var jWK=L4(),JWK=Nq(),MWK=v5(),DWK=q0();function XWK(A){return jWK.operate(function(q,K){MWK.innerFrom(A).subscribe(JWK.createOperatorSubscriber(K,function(){return K.complete()},DWK.noop)),!K.closed&&q.subscribe(K)})}XMA.takeUntil=XWK});var bl1=h((WMA)=>{Object.defineProperty(WMA,"__esModule",{value:!0});WMA.takeWhile=void 0;var PWK=L4(),WWK=Nq();function GWK(A,q){if(q===void 0)q=!1;return PWK.operate(function(K,Y){var z=0;K.subscribe(WWK.createOperatorSubscriber(Y,function(w){var _=A(w,z++);(_||q)&&Y.next(w),!_&&Y.complete()}))})}WMA.takeWhile=GWK});var ul1=h((ZMA)=>{Object.defineProperty(ZMA,"__esModule",{value:!0});ZMA.tap=void 0;var ZWK=aw(),fWK=L4(),TWK=Nq(),vWK=K0();function VWK(A,q,K){var Y=ZWK.isFunction(A)||q||K?{next:A,error:q,complete:K}:A;return Y?fWK.operate(function(z,w){var _;(_=Y.subscribe)===null||_===void 0||_.call(Y);var $=!0;z.subscribe(TWK.createOperatorSubscriber(w,function(O){var H;(H=Y.next)===null||H===void 0||H.call(Y,O),w.next(O)},function(){var O;$=!1,(O=Y.complete)===null||O===void 0||O.call(Y),w.complete()},function(O){var H;$=!1,(H=Y.error)===null||H===void 0||H.call(Y,O),w.error(O)},function(){var O,H;if($)(O=Y.unsubscribe)===null||O===void 0||O.call(Y);(H=Y.finalize)===null||H===void 0||H.call(Y)}))}):vWK.identity}ZMA.tap=VWK});var PA1=h((vMA)=>{Object.defineProperty(vMA,"__esModule",{value:!0});vMA.throttle=void 0;var NWK=L4(),TMA=Nq(),kWK=v5();function EWK(A,q){return NWK.operate(function(K,Y){var z=q!==null&&q!==void 0?q:{},w=z.leading,_=w===void 0?!0:w,$=z.trailing,O=$===void 0?!1:$,H=!1,j=null,J=null,M=!1,D=function(){if(J===null||J===void 0||J.unsubscribe(),J=null,O)W(),M&&Y.complete()},X=function(){J=null,M&&Y.complete()},P=function(G){return J=kWK.innerFrom(A(G)).subscribe(TMA.createOperatorSubscriber(Y,D,X))},W=function(){if(H){H=!1;var G=j;j=null,Y.next(G),!M&&P(G)}};K.subscribe(TMA.createOperatorSubscriber(Y,function(G){H=!0,j=G,!(J&&!J.closed)&&(_?W():P(G))},function(){M=!0,!(O&&H&&J&&!J.closed)&&Y.complete()}))})}vMA.throttle=EWK});var ml1=h((NMA)=>{Object.defineProperty(NMA,"__esModule",{value:!0});NMA.throttleTime=void 0;var LWK=jv(),yWK=PA1(),RWK=Qo();function SWK(A,q,K){if(q===void 0)q=LWK.asyncScheduler;var Y=RWK.timer(A,q);return yWK.throttle(function(){return Y},K)}NMA.throttleTime=SWK});var Bl1=h((LMA)=>{Object.defineProperty(LMA,"__esModule",{value:!0});LMA.TimeInterval=LMA.timeInterval=void 0;var hWK=jv(),CWK=L4(),IWK=Nq();function xWK(A){if(A===void 0)A=hWK.asyncScheduler;return CWK.operate(function(q,K){var Y=A.now();q.subscribe(IWK.createOperatorSubscriber(K,function(z){var w=A.now(),_=w-Y;Y=w,K.next(new EMA(z,_))}))})}LMA.timeInterval=xWK;var EMA=function(){function A(q,K){this.value=q,this.interval=K}return A}();LMA.TimeInterval=EMA});var gl1=h((RMA)=>{Object.defineProperty(RMA,"__esModule",{value:!0});RMA.timeoutWith=void 0;var uWK=jv(),mWK=a81(),BWK=lR6();function gWK(A,q,K){var Y,z,w;if(K=K!==null&&K!==void 0?K:uWK.async,mWK.isValidDate(A))Y=A;else if(typeof A==="number")z=A;if(q)w=function(){return q};else throw TypeError("No observable provided to switch to");if(Y==null&&z==null)throw TypeError("No timeout provided.");return BWK.timeout({first:Y,each:z,scheduler:K,with:w})}RMA.timeoutWith=gWK});var pl1=h((hMA)=>{Object.defineProperty(hMA,"__esModule",{value:!0});hMA.timestamp=void 0;var pWK=U81(),FWK=PU();function QWK(A){if(A===void 0)A=pWK.dateTimestampProvider;return FWK.map(function(q){return{value:q,timestamp:A.now()}})}hMA.timestamp=QWK});var Fl1=h((bMA)=>{Object.defineProperty(bMA,"__esModule",{value:!0});bMA.window=void 0;var IMA=Y0(),UWK=L4(),xMA=Nq(),dWK=q0(),cWK=v5();function lWK(A){return UWK.operate(function(q,K){var Y=new IMA.Subject;K.next(Y.asObservable());var z=function(w){Y.error(w),K.error(w)};return q.subscribe(xMA.createOperatorSubscriber(K,function(w){return Y===null||Y===void 0?void 0:Y.next(w)},function(){Y.complete(),K.complete()},z)),cWK.innerFrom(A).subscribe(xMA.createOperatorSubscriber(K,function(){Y.complete(),K.next(Y=new IMA.Subject)},dWK.noop,z)),function(){Y===null||Y===void 0||Y.unsubscribe(),Y=null}})}bMA.window=lWK});var Ql1=h((eH6)=>{var iWK=eH6&&eH6.__values||function(A){var q=typeof Symbol==="function"&&Symbol.iterator,K=q&&A[q],Y=0;if(K)return K.call(A);if(A&&typeof A.length==="number")return{next:function(){if(A&&Y>=A.length)A=void 0;return{value:A&&A[Y++],done:!A}}};throw TypeError(q?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(eH6,"__esModule",{value:!0});eH6.windowCount=void 0;var mMA=Y0(),nWK=L4(),rWK=Nq();function oWK(A,q){if(q===void 0)q=0;var K=q>0?q:A;return nWK.operate(function(Y,z){var w=[new mMA.Subject],_=[],$=0;z.next(w[0].asObservable()),Y.subscribe(rWK.createOperatorSubscriber(z,function(O){var H,j;try{for(var J=iWK(w),M=J.next();!M.done;M=J.next()){var D=M.value;D.next(O)}}catch(W){H={error:W}}finally{try{if(M&&!M.done&&(j=J.return))j.call(J)}finally{if(H)throw H.error}}var X=$-A+1;if(X>=0&&X%K===0)w.shift().complete();if(++$%K===0){var P=new mMA.Subject;w.push(P),z.next(P.asObservable())}},function(){while(w.length>0)w.shift().complete();z.complete()},function(O){while(w.length>0)w.shift().error(O);z.error(O)},function(){_=null,w=null}))})}eH6.windowCount=oWK});var Ul1=h((gMA)=>{Object.defineProperty(gMA,"__esModule",{value:!0});gMA.windowTime=void 0;var aWK=Y0(),sWK=jv(),tWK=rN(),eWK=L4(),AGK=Nq(),qGK=MU(),KGK=Jv(),BMA=DU();function YGK(A){var q,K,Y=[];for(var z=1;z<arguments.length;z++)Y[z-1]=arguments[z];var w=(q=KGK.popScheduler(Y))!==null&&q!==void 0?q:sWK.asyncScheduler,_=(K=Y[0])!==null&&K!==void 0?K:null,$=Y[1]||1/0;return eWK.operate(function(O,H){var j=[],J=!1,M=function(W){var{window:G,subs:Z}=W;G.complete(),Z.unsubscribe(),qGK.arrRemove(j,W),J&&D()},D=function(){if(j){var W=new tWK.Subscription;H.add(W);var G=new aWK.Subject,Z={window:G,subs:W,seen:0};j.push(Z),H.next(G.asObservable()),BMA.executeSchedule(W,w,function(){return M(Z)},A)}};if(_!==null&&_>=0)BMA.executeSchedule(H,w,D,_,!0);else J=!0;D();var X=function(W){return j.slice().forEach(W)},P=function(W){X(function(G){var Z=G.window;return W(Z)}),W(H),H.unsubscribe()};return O.subscribe(AGK.createOperatorSubscriber(H,function(W){X(function(G){G.window.next(W),$<=++G.seen&&M(G)})},function(){return P(function(W){return W.complete()})},function(W){return P(function(G){return G.error(W)})})),function(){j=null}})}gMA.windowTime=YGK});var cl1=h((Aj6)=>{var zGK=Aj6&&Aj6.__values||function(A){var q=typeof Symbol==="function"&&Symbol.iterator,K=q&&A[q],Y=0;if(K)return K.call(A);if(A&&typeof A.length==="number")return{next:function(){if(A&&Y>=A.length)A=void 0;return{value:A&&A[Y++],done:!A}}};throw TypeError(q?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Aj6,"__esModule",{value:!0});Aj6.windowToggle=void 0;var wGK=Y0(),_GK=rN(),$GK=L4(),FMA=v5(),dl1=Nq(),QMA=q0(),OGK=MU();function HGK(A,q){return $GK.operate(function(K,Y){var z=[],w=function(_){while(0<z.length)z.shift().error(_);Y.error(_)};FMA.innerFrom(A).subscribe(dl1.createOperatorSubscriber(Y,function(_){var $=new wGK.Subject;z.push($);var O=new _GK.Subscription,H=function(){OGK.arrRemove(z,$),$.complete(),O.unsubscribe()},j;try{j=FMA.innerFrom(q(_))}catch(J){w(J);return}Y.next($.asObservable()),O.add(j.subscribe(dl1.createOperatorSubscriber(Y,H,QMA.noop,w)))},QMA.noop)),K.subscribe(dl1.createOperatorSubscriber(Y,function(_){var $,O,H=z.slice();try{for(var j=zGK(H),J=j.next();!J.done;J=j.next()){var M=J.value;M.next(_)}}catch(D){$={error:D}}finally{try{if(J&&!J.done&&(O=j.return))O.call(j)}finally{if($)throw $.error}}},function(){while(0<z.length)z.shift().complete();Y.complete()},w,function(){while(0<z.length)z.shift().unsubscribe()}))})}Aj6.windowToggle=HGK});var ll1=h((dMA)=>{Object.defineProperty(dMA,"__esModule",{value:!0});dMA.windowWhen=void 0;var jGK=Y0(),JGK=L4(),UMA=Nq(),MGK=v5();function DGK(A){return JGK.operate(function(q,K){var Y,z,w=function($){Y.error($),K.error($)},_=function(){z===null||z===void 0||z.unsubscribe(),Y===null||Y===void 0||Y.complete(),Y=new jGK.Subject,K.next(Y.asObservable());var $;try{$=MGK.innerFrom(A())}catch(O){w(O);return}$.subscribe(z=UMA.createOperatorSubscriber(K,_,_,w))};_(),q.subscribe(UMA.createOperatorSubscriber(K,function($){return Y.next($)},function(){Y.complete(),K.complete()},w,function(){z===null||z===void 0||z.unsubscribe(),Y=null}))})}dMA.windowWhen=DGK});var il1=h((eo)=>{var lMA=eo&&eo.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},iMA=eo&&eo.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(eo,"__esModule",{value:!0});eo.withLatestFrom=void 0;var XGK=L4(),nMA=Nq(),PGK=v5(),WGK=K0(),GGK=q0(),ZGK=Jv();function fGK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];var K=ZGK.popResultSelector(A);return XGK.operate(function(Y,z){var w=A.length,_=Array(w),$=A.map(function(){return!1}),O=!1,H=function(J){PGK.innerFrom(A[J]).subscribe(nMA.createOperatorSubscriber(z,function(M){if(_[J]=M,!O&&!$[J])$[J]=!0,(O=$.every(WGK.identity))&&($=null)},GGK.noop))};for(var j=0;j<w;j++)H(j);Y.subscribe(nMA.createOperatorSubscriber(z,function(J){if(O){var M=iMA([J],lMA(_));z.next(K?K.apply(void 0,iMA([],lMA(M))):M)}}))})}eo.withLatestFrom=fGK});var nl1=h((rMA)=>{Object.defineProperty(rMA,"__esModule",{value:!0});rMA.zipAll=void 0;var TGK=e81(),vGK=Rc1();function VGK(A){return vGK.joinAllInternals(TGK.zip,A)}rMA.zipAll=VGK});var rl1=h((Aa)=>{var NGK=Aa&&Aa.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},kGK=Aa&&Aa.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.zip=void 0;var EGK=e81(),LGK=L4();function yGK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];return LGK.operate(function(K,Y){EGK.zip.apply(void 0,kGK([K],NGK(A))).subscribe(Y)})}Aa.zip=yGK});var ol1=h((qa)=>{var RGK=qa&&qa.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},SGK=qa&&qa.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(qa,"__esModule",{value:!0});qa.zipWith=void 0;var hGK=rl1();function CGK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];return hGK.zip.apply(void 0,SGK([],RGK(A)))}qa.zipWith=CGK});var KDA=h((H1)=>{var IGK=H1&&H1.__createBinding||(Object.create?function(A,q,K,Y){if(Y===void 0)Y=K;Object.defineProperty(A,Y,{enumerable:!0,get:function(){return q[K]}})}:function(A,q,K,Y){if(Y===void 0)Y=K;A[Y]=q[K]}),xGK=H1&&H1.__exportStar||function(A,q){for(var K in A)if(K!=="default"&&!Object.prototype.hasOwnProperty.call(q,K))IGK(q,A,K)};Object.defineProperty(H1,"__esModule",{value:!0});H1.interval=H1.iif=H1.generate=H1.fromEventPattern=H1.fromEvent=H1.from=H1.forkJoin=H1.empty=H1.defer=H1.connectable=H1.concat=H1.combineLatest=H1.bindNodeCallback=H1.bindCallback=H1.UnsubscriptionError=H1.TimeoutError=H1.SequenceError=H1.ObjectUnsubscribedError=H1.NotFoundError=H1.EmptyError=H1.ArgumentOutOfRangeError=H1.firstValueFrom=H1.lastValueFrom=H1.isObservable=H1.identity=H1.noop=H1.pipe=H1.NotificationKind=H1.Notification=H1.Subscriber=H1.Subscription=H1.Scheduler=H1.VirtualAction=H1.VirtualTimeScheduler=H1.animationFrameScheduler=H1.animationFrame=H1.queueScheduler=H1.queue=H1.asyncScheduler=H1.async=H1.asapScheduler=H1.asap=H1.AsyncSubject=H1.ReplaySubject=H1.BehaviorSubject=H1.Subject=H1.animationFrames=H1.observable=H1.ConnectableObservable=H1.Observable=void 0;H1.filter=H1.expand=H1.exhaustMap=H1.exhaustAll=H1.exhaust=H1.every=H1.endWith=H1.elementAt=H1.distinctUntilKeyChanged=H1.distinctUntilChanged=H1.distinct=H1.dematerialize=H1.delayWhen=H1.delay=H1.defaultIfEmpty=H1.debounceTime=H1.debounce=H1.count=H1.connect=H1.concatWith=H1.concatMapTo=H1.concatMap=H1.concatAll=H1.combineLatestWith=H1.combineLatestAll=H1.combineAll=H1.catchError=H1.bufferWhen=H1.bufferToggle=H1.bufferTime=H1.bufferCount=H1.buffer=H1.auditTime=H1.audit=H1.config=H1.NEVER=H1.EMPTY=H1.scheduled=H1.zip=H1.using=H1.timer=H1.throwError=H1.range=H1.race=H1.partition=H1.pairs=H1.onErrorResumeNext=H1.of=H1.never=H1.merge=void 0;H1.switchMap=H1.switchAll=H1.subscribeOn=H1.startWith=H1.skipWhile=H1.skipUntil=H1.skipLast=H1.skip=H1.single=H1.shareReplay=H1.share=H1.sequenceEqual=H1.scan=H1.sampleTime=H1.sample=H1.refCount=H1.retryWhen=H1.retry=H1.repeatWhen=H1.repeat=H1.reduce=H1.raceWith=H1.publishReplay=H1.publishLast=H1.publishBehavior=H1.publish=H1.pluck=H1.pairwise=H1.onErrorResumeNextWith=H1.observeOn=H1.multicast=H1.min=H1.mergeWith=H1.mergeScan=H1.mergeMapTo=H1.mergeMap=H1.flatMap=H1.mergeAll=H1.max=H1.materialize=H1.mapTo=H1.map=H1.last=H1.isEmpty=H1.ignoreElements=H1.groupBy=H1.first=H1.findIndex=H1.find=H1.finalize=void 0;H1.zipWith=H1.zipAll=H1.withLatestFrom=H1.windowWhen=H1.windowToggle=H1.windowTime=H1.windowCount=H1.window=H1.toArray=H1.timestamp=H1.timeoutWith=H1.timeout=H1.timeInterval=H1.throwIfEmpty=H1.throttleTime=H1.throttle=H1.tap=H1.takeWhile=H1.takeUntil=H1.takeLast=H1.take=H1.switchScan=H1.switchMapTo=void 0;var bGK=k2();Object.defineProperty(H1,"Observable",{enumerable:!0,get:function(){return bGK.Observable}});var uGK=dR6();Object.defineProperty(H1,"ConnectableObservable",{enumerable:!0,get:function(){return uGK.ConnectableObservable}});var mGK=QR6();Object.defineProperty(H1,"observable",{enumerable:!0,get:function(){return mGK.observable}});var BGK=IwA();Object.defineProperty(H1,"animationFrames",{enumerable:!0,get:function(){return BGK.animationFrames}});var gGK=Y0();Object.defineProperty(H1,"Subject",{enumerable:!0,get:function(){return gGK.Subject}});var pGK=Qd1();Object.defineProperty(H1,"BehaviorSubject",{enumerable:!0,get:function(){return pGK.BehaviorSubject}});var FGK=d81();Object.defineProperty(H1,"ReplaySubject",{enumerable:!0,get:function(){return FGK.ReplaySubject}});var QGK=c81();Object.defineProperty(H1,"AsyncSubject",{enumerable:!0,get:function(){return QGK.AsyncSubject}});var aMA=w2A();Object.defineProperty(H1,"asap",{enumerable:!0,get:function(){return aMA.asap}});Object.defineProperty(H1,"asapScheduler",{enumerable:!0,get:function(){return aMA.asapScheduler}});var sMA=jv();Object.defineProperty(H1,"async",{enumerable:!0,get:function(){return sMA.async}});Object.defineProperty(H1,"asyncScheduler",{enumerable:!0,get:function(){return sMA.asyncScheduler}});var tMA=X2A();Object.defineProperty(H1,"queue",{enumerable:!0,get:function(){return tMA.queue}});Object.defineProperty(H1,"queueScheduler",{enumerable:!0,get:function(){return tMA.queueScheduler}});var eMA=v2A();Object.defineProperty(H1,"animationFrame",{enumerable:!0,get:function(){return eMA.animationFrame}});Object.defineProperty(H1,"animationFrameScheduler",{enumerable:!0,get:function(){return eMA.animationFrameScheduler}});var ADA=k2A();Object.defineProperty(H1,"VirtualTimeScheduler",{enumerable:!0,get:function(){return ADA.VirtualTimeScheduler}});Object.defineProperty(H1,"VirtualAction",{enumerable:!0,get:function(){return ADA.VirtualAction}});var UGK=cd1();Object.defineProperty(H1,"Scheduler",{enumerable:!0,get:function(){return UGK.Scheduler}});var dGK=rN();Object.defineProperty(H1,"Subscription",{enumerable:!0,get:function(){return dGK.Subscription}});var cGK=VH6();Object.defineProperty(H1,"Subscriber",{enumerable:!0,get:function(){return cGK.Subscriber}});var qDA=o81();Object.defineProperty(H1,"Notification",{enumerable:!0,get:function(){return qDA.Notification}});Object.defineProperty(H1,"NotificationKind",{enumerable:!0,get:function(){return qDA.NotificationKind}});var lGK=UR6();Object.defineProperty(H1,"pipe",{enumerable:!0,get:function(){return lGK.pipe}});var iGK=q0();Object.defineProperty(H1,"noop",{enumerable:!0,get:function(){return iGK.noop}});var nGK=K0();Object.defineProperty(H1,"identity",{enumerable:!0,get:function(){return nGK.identity}});var rGK=p_A();Object.defineProperty(H1,"isObservable",{enumerable:!0,get:function(){return rGK.isObservable}});var oGK=c_A();Object.defineProperty(H1,"lastValueFrom",{enumerable:!0,get:function(){return oGK.lastValueFrom}});var aGK=n_A();Object.defineProperty(H1,"firstValueFrom",{enumerable:!0,get:function(){return aGK.firstValueFrom}});var sGK=wc1();Object.defineProperty(H1,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return sGK.ArgumentOutOfRangeError}});var tGK=Bo();Object.defineProperty(H1,"EmptyError",{enumerable:!0,get:function(){return tGK.EmptyError}});var eGK=_c1();Object.defineProperty(H1,"NotFoundError",{enumerable:!0,get:function(){return eGK.NotFoundError}});var AZK=Bd1();Object.defineProperty(H1,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return AZK.ObjectUnsubscribedError}});var qZK=$c1();Object.defineProperty(H1,"SequenceError",{enumerable:!0,get:function(){return qZK.SequenceError}});var KZK=lR6();Object.defineProperty(H1,"TimeoutError",{enumerable:!0,get:function(){return KZK.TimeoutError}});var YZK=kd1();Object.defineProperty(H1,"UnsubscriptionError",{enumerable:!0,get:function(){return YZK.UnsubscriptionError}});var zZK=j$A();Object.defineProperty(H1,"bindCallback",{enumerable:!0,get:function(){return zZK.bindCallback}});var wZK=D$A();Object.defineProperty(H1,"bindNodeCallback",{enumerable:!0,get:function(){return wZK.bindNodeCallback}});var _ZK=s81();Object.defineProperty(H1,"combineLatest",{enumerable:!0,get:function(){return _ZK.combineLatest}});var $ZK=nR6();Object.defineProperty(H1,"concat",{enumerable:!0,get:function(){return $ZK.concat}});var OZK=Q$A();Object.defineProperty(H1,"connectable",{enumerable:!0,get:function(){return OZK.connectable}});var HZK=rR6();Object.defineProperty(H1,"defer",{enumerable:!0,get:function(){return HZK.defer}});var jZK=vC();Object.defineProperty(H1,"empty",{enumerable:!0,get:function(){return jZK.empty}});var JZK=c$A();Object.defineProperty(H1,"forkJoin",{enumerable:!0,get:function(){return JZK.forkJoin}});var MZK=XU();Object.defineProperty(H1,"from",{enumerable:!0,get:function(){return MZK.from}});var DZK=i$A();Object.defineProperty(H1,"fromEvent",{enumerable:!0,get:function(){return DZK.fromEvent}});var XZK=a$A();Object.defineProperty(H1,"fromEventPattern",{enumerable:!0,get:function(){return XZK.fromEventPattern}});var PZK=t$A();Object.defineProperty(H1,"generate",{enumerable:!0,get:function(){return PZK.generate}});var WZK=qOA();Object.defineProperty(H1,"iif",{enumerable:!0,get:function(){return WZK.iif}});var GZK=Dc1();Object.defineProperty(H1,"interval",{enumerable:!0,get:function(){return GZK.interval}});var ZZK=HOA();Object.defineProperty(H1,"merge",{enumerable:!0,get:function(){return ZZK.merge}});var fZK=Xc1();Object.defineProperty(H1,"never",{enumerable:!0,get:function(){return fZK.never}});var TZK=r81();Object.defineProperty(H1,"of",{enumerable:!0,get:function(){return TZK.of}});var vZK=Pc1();Object.defineProperty(H1,"onErrorResumeNext",{enumerable:!0,get:function(){return vZK.onErrorResumeNext}});var VZK=TOA();Object.defineProperty(H1,"pairs",{enumerable:!0,get:function(){return VZK.pairs}});var NZK=SOA();Object.defineProperty(H1,"partition",{enumerable:!0,get:function(){return NZK.partition}});var kZK=Gc1();Object.defineProperty(H1,"race",{enumerable:!0,get:function(){return kZK.race}});var EZK=mOA();Object.defineProperty(H1,"range",{enumerable:!0,get:function(){return EZK.range}});var LZK=zc1();Object.defineProperty(H1,"throwError",{enumerable:!0,get:function(){return LZK.throwError}});var yZK=Qo();Object.defineProperty(H1,"timer",{enumerable:!0,get:function(){return yZK.timer}});var RZK=pOA();Object.defineProperty(H1,"using",{enumerable:!0,get:function(){return RZK.using}});var SZK=e81();Object.defineProperty(H1,"zip",{enumerable:!0,get:function(){return SZK.zip}});var hZK=Yc1();Object.defineProperty(H1,"scheduled",{enumerable:!0,get:function(){return hZK.scheduled}});var CZK=vC();Object.defineProperty(H1,"EMPTY",{enumerable:!0,get:function(){return CZK.EMPTY}});var IZK=Xc1();Object.defineProperty(H1,"NEVER",{enumerable:!0,get:function(){return IZK.NEVER}});xGK(QOA(),H1);var xZK=vH6();Object.defineProperty(H1,"config",{enumerable:!0,get:function(){return xZK.config}});var bZK=AA1();Object.defineProperty(H1,"audit",{enumerable:!0,get:function(){return bZK.audit}});var uZK=Zc1();Object.defineProperty(H1,"auditTime",{enumerable:!0,get:function(){return uZK.auditTime}});var mZK=fc1();Object.defineProperty(H1,"buffer",{enumerable:!0,get:function(){return mZK.buffer}});var BZK=vc1();Object.defineProperty(H1,"bufferCount",{enumerable:!0,get:function(){return BZK.bufferCount}});var gZK=Vc1();Object.defineProperty(H1,"bufferTime",{enumerable:!0,get:function(){return gZK.bufferTime}});var pZK=kc1();Object.defineProperty(H1,"bufferToggle",{enumerable:!0,get:function(){return pZK.bufferToggle}});var FZK=Ec1();Object.defineProperty(H1,"bufferWhen",{enumerable:!0,get:function(){return FZK.bufferWhen}});var QZK=Lc1();Object.defineProperty(H1,"catchError",{enumerable:!0,get:function(){return QZK.catchError}});var UZK=Sc1();Object.defineProperty(H1,"combineAll",{enumerable:!0,get:function(){return UZK.combineAll}});var dZK=KA1();Object.defineProperty(H1,"combineLatestAll",{enumerable:!0,get:function(){return dZK.combineLatestAll}});var cZK=Cc1();Object.defineProperty(H1,"combineLatestWith",{enumerable:!0,get:function(){return cZK.combineLatestWith}});var lZK=iR6();Object.defineProperty(H1,"concatAll",{enumerable:!0,get:function(){return lZK.concatAll}});var iZK=YA1();Object.defineProperty(H1,"concatMap",{enumerable:!0,get:function(){return iZK.concatMap}});var nZK=Ic1();Object.defineProperty(H1,"concatMapTo",{enumerable:!0,get:function(){return nZK.concatMapTo}});var rZK=bc1();Object.defineProperty(H1,"concatWith",{enumerable:!0,get:function(){return rZK.concatWith}});var oZK=oR6();Object.defineProperty(H1,"connect",{enumerable:!0,get:function(){return oZK.connect}});var aZK=uc1();Object.defineProperty(H1,"count",{enumerable:!0,get:function(){return aZK.count}});var sZK=mc1();Object.defineProperty(H1,"debounce",{enumerable:!0,get:function(){return sZK.debounce}});var tZK=Bc1();Object.defineProperty(H1,"debounceTime",{enumerable:!0,get:function(){return tZK.debounceTime}});var eZK=rH6();Object.defineProperty(H1,"defaultIfEmpty",{enumerable:!0,get:function(){return eZK.defaultIfEmpty}});var AfK=gc1();Object.defineProperty(H1,"delay",{enumerable:!0,get:function(){return AfK.delay}});var qfK=_A1();Object.defineProperty(H1,"delayWhen",{enumerable:!0,get:function(){return qfK.delayWhen}});var KfK=pc1();Object.defineProperty(H1,"dematerialize",{enumerable:!0,get:function(){return KfK.dematerialize}});var YfK=Fc1();Object.defineProperty(H1,"distinct",{enumerable:!0,get:function(){return YfK.distinct}});var zfK=$A1();Object.defineProperty(H1,"distinctUntilChanged",{enumerable:!0,get:function(){return zfK.distinctUntilChanged}});var wfK=Qc1();Object.defineProperty(H1,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return wfK.distinctUntilKeyChanged}});var _fK=Uc1();Object.defineProperty(H1,"elementAt",{enumerable:!0,get:function(){return _fK.elementAt}});var $fK=dc1();Object.defineProperty(H1,"endWith",{enumerable:!0,get:function(){return $fK.endWith}});var OfK=cc1();Object.defineProperty(H1,"every",{enumerable:!0,get:function(){return OfK.every}});var HfK=lc1();Object.defineProperty(H1,"exhaust",{enumerable:!0,get:function(){return HfK.exhaust}});var jfK=HA1();Object.defineProperty(H1,"exhaustAll",{enumerable:!0,get:function(){return jfK.exhaustAll}});var JfK=OA1();Object.defineProperty(H1,"exhaustMap",{enumerable:!0,get:function(){return JfK.exhaustMap}});var MfK=ic1();Object.defineProperty(H1,"expand",{enumerable:!0,get:function(){return MfK.expand}});var DfK=WU();Object.defineProperty(H1,"filter",{enumerable:!0,get:function(){return DfK.filter}});var XfK=nc1();Object.defineProperty(H1,"finalize",{enumerable:!0,get:function(){return XfK.finalize}});var PfK=jA1();Object.defineProperty(H1,"find",{enumerable:!0,get:function(){return PfK.find}});var WfK=rc1();Object.defineProperty(H1,"findIndex",{enumerable:!0,get:function(){return WfK.findIndex}});var GfK=oc1();Object.defineProperty(H1,"first",{enumerable:!0,get:function(){return GfK.first}});var ZfK=ac1();Object.defineProperty(H1,"groupBy",{enumerable:!0,get:function(){return ZfK.groupBy}});var ffK=zA1();Object.defineProperty(H1,"ignoreElements",{enumerable:!0,get:function(){return ffK.ignoreElements}});var TfK=sc1();Object.defineProperty(H1,"isEmpty",{enumerable:!0,get:function(){return TfK.isEmpty}});var vfK=tc1();Object.defineProperty(H1,"last",{enumerable:!0,get:function(){return vfK.last}});var VfK=PU();Object.defineProperty(H1,"map",{enumerable:!0,get:function(){return VfK.map}});var NfK=wA1();Object.defineProperty(H1,"mapTo",{enumerable:!0,get:function(){return NfK.mapTo}});var kfK=Al1();Object.defineProperty(H1,"materialize",{enumerable:!0,get:function(){return kfK.materialize}});var EfK=ql1();Object.defineProperty(H1,"max",{enumerable:!0,get:function(){return EfK.max}});var LfK=UH6();Object.defineProperty(H1,"mergeAll",{enumerable:!0,get:function(){return LfK.mergeAll}});var yfK=Kl1();Object.defineProperty(H1,"flatMap",{enumerable:!0,get:function(){return yfK.flatMap}});var RfK=_m();Object.defineProperty(H1,"mergeMap",{enumerable:!0,get:function(){return RfK.mergeMap}});var SfK=Yl1();Object.defineProperty(H1,"mergeMapTo",{enumerable:!0,get:function(){return SfK.mergeMapTo}});var hfK=zl1();Object.defineProperty(H1,"mergeScan",{enumerable:!0,get:function(){return hfK.mergeScan}});var CfK=_l1();Object.defineProperty(H1,"mergeWith",{enumerable:!0,get:function(){return CfK.mergeWith}});var IfK=$l1();Object.defineProperty(H1,"min",{enumerable:!0,get:function(){return IfK.min}});var xfK=aR6();Object.defineProperty(H1,"multicast",{enumerable:!0,get:function(){return xfK.multicast}});var bfK=FH6();Object.defineProperty(H1,"observeOn",{enumerable:!0,get:function(){return bfK.observeOn}});var ufK=Ol1();Object.defineProperty(H1,"onErrorResumeNextWith",{enumerable:!0,get:function(){return ufK.onErrorResumeNextWith}});var mfK=Hl1();Object.defineProperty(H1,"pairwise",{enumerable:!0,get:function(){return mfK.pairwise}});var BfK=jl1();Object.defineProperty(H1,"pluck",{enumerable:!0,get:function(){return BfK.pluck}});var gfK=Jl1();Object.defineProperty(H1,"publish",{enumerable:!0,get:function(){return gfK.publish}});var pfK=Ml1();Object.defineProperty(H1,"publishBehavior",{enumerable:!0,get:function(){return pfK.publishBehavior}});var FfK=Dl1();Object.defineProperty(H1,"publishLast",{enumerable:!0,get:function(){return FfK.publishLast}});var QfK=Xl1();Object.defineProperty(H1,"publishReplay",{enumerable:!0,get:function(){return QfK.publishReplay}});var UfK=MA1();Object.defineProperty(H1,"raceWith",{enumerable:!0,get:function(){return UfK.raceWith}});var dfK=T46();Object.defineProperty(H1,"reduce",{enumerable:!0,get:function(){return dfK.reduce}});var cfK=Pl1();Object.defineProperty(H1,"repeat",{enumerable:!0,get:function(){return cfK.repeat}});var lfK=Wl1();Object.defineProperty(H1,"repeatWhen",{enumerable:!0,get:function(){return lfK.repeatWhen}});var ifK=Gl1();Object.defineProperty(H1,"retry",{enumerable:!0,get:function(){return ifK.retry}});var nfK=Zl1();Object.defineProperty(H1,"retryWhen",{enumerable:!0,get:function(){return nfK.retryWhen}});var rfK=Q81();Object.defineProperty(H1,"refCount",{enumerable:!0,get:function(){return rfK.refCount}});var ofK=DA1();Object.defineProperty(H1,"sample",{enumerable:!0,get:function(){return ofK.sample}});var afK=fl1();Object.defineProperty(H1,"sampleTime",{enumerable:!0,get:function(){return afK.sampleTime}});var sfK=Tl1();Object.defineProperty(H1,"scan",{enumerable:!0,get:function(){return sfK.scan}});var tfK=vl1();Object.defineProperty(H1,"sequenceEqual",{enumerable:!0,get:function(){return tfK.sequenceEqual}});var efK=XA1();Object.defineProperty(H1,"share",{enumerable:!0,get:function(){return efK.share}});var ATK=Nl1();Object.defineProperty(H1,"shareReplay",{enumerable:!0,get:function(){return ATK.shareReplay}});var qTK=kl1();Object.defineProperty(H1,"single",{enumerable:!0,get:function(){return qTK.single}});var KTK=El1();Object.defineProperty(H1,"skip",{enumerable:!0,get:function(){return KTK.skip}});var YTK=Ll1();Object.defineProperty(H1,"skipLast",{enumerable:!0,get:function(){return YTK.skipLast}});var zTK=yl1();Object.defineProperty(H1,"skipUntil",{enumerable:!0,get:function(){return zTK.skipUntil}});var wTK=Rl1();Object.defineProperty(H1,"skipWhile",{enumerable:!0,get:function(){return wTK.skipWhile}});var _TK=Sl1();Object.defineProperty(H1,"startWith",{enumerable:!0,get:function(){return _TK.startWith}});var $TK=QH6();Object.defineProperty(H1,"subscribeOn",{enumerable:!0,get:function(){return $TK.subscribeOn}});var OTK=hl1();Object.defineProperty(H1,"switchAll",{enumerable:!0,get:function(){return OTK.switchAll}});var HTK=tH6();Object.defineProperty(H1,"switchMap",{enumerable:!0,get:function(){return HTK.switchMap}});var jTK=Cl1();Object.defineProperty(H1,"switchMapTo",{enumerable:!0,get:function(){return jTK.switchMapTo}});var JTK=Il1();Object.defineProperty(H1,"switchScan",{enumerable:!0,get:function(){return JTK.switchScan}});var MTK=oH6();Object.defineProperty(H1,"take",{enumerable:!0,get:function(){return MTK.take}});var DTK=JA1();Object.defineProperty(H1,"takeLast",{enumerable:!0,get:function(){return DTK.takeLast}});var XTK=xl1();Object.defineProperty(H1,"takeUntil",{enumerable:!0,get:function(){return XTK.takeUntil}});var PTK=bl1();Object.defineProperty(H1,"takeWhile",{enumerable:!0,get:function(){return PTK.takeWhile}});var WTK=ul1();Object.defineProperty(H1,"tap",{enumerable:!0,get:function(){return WTK.tap}});var GTK=PA1();Object.defineProperty(H1,"throttle",{enumerable:!0,get:function(){return GTK.throttle}});var ZTK=ml1();Object.defineProperty(H1,"throttleTime",{enumerable:!0,get:function(){return ZTK.throttleTime}});var fTK=aH6();Object.defineProperty(H1,"throwIfEmpty",{enumerable:!0,get:function(){return fTK.throwIfEmpty}});var TTK=Bl1();Object.defineProperty(H1,"timeInterval",{enumerable:!0,get:function(){return TTK.timeInterval}});var vTK=lR6();Object.defineProperty(H1,"timeout",{enumerable:!0,get:function(){return vTK.timeout}});var VTK=gl1();Object.defineProperty(H1,"timeoutWith",{enumerable:!0,get:function(){return VTK.timeoutWith}});var NTK=pl1();Object.defineProperty(H1,"timestamp",{enumerable:!0,get:function(){return NTK.timestamp}});var kTK=qA1();Object.defineProperty(H1,"toArray",{enumerable:!0,get:function(){return kTK.toArray}});var ETK=Fl1();Object.defineProperty(H1,"window",{enumerable:!0,get:function(){return ETK.window}});var LTK=Ql1();Object.defineProperty(H1,"windowCount",{enumerable:!0,get:function(){return LTK.windowCount}});var yTK=Ul1();Object.defineProperty(H1,"windowTime",{enumerable:!0,get:function(){return yTK.windowTime}});var RTK=cl1();Object.defineProperty(H1,"windowToggle",{enumerable:!0,get:function(){return RTK.windowToggle}});var STK=ll1();Object.defineProperty(H1,"windowWhen",{enumerable:!0,get:function(){return STK.windowWhen}});var hTK=il1();Object.defineProperty(H1,"withLatestFrom",{enumerable:!0,get:function(){return hTK.withLatestFrom}});var CTK=nl1();Object.defineProperty(H1,"zipAll",{enumerable:!0,get:function(){return CTK.zipAll}});var ITK=ol1();Object.defineProperty(H1,"zipWith",{enumerable:!0,get:function(){return ITK.zipWith}})});var _DA=h((zDA)=>{Object.defineProperty(zDA,"__esModule",{value:!0});zDA.partition=void 0;var xTK=Wc1(),YDA=WU();function bTK(A,q){return function(K){return[YDA.filter(A,q)(K),YDA.filter(xTK.not(A,q))(K)]}}zDA.partition=bTK});var $DA=h((Ka)=>{var uTK=Ka&&Ka.__read||function(A,q){var K=typeof Symbol==="function"&&A[Symbol.iterator];if(!K)return A;var Y=K.call(A),z,w=[],_;try{while((q===void 0||q-- >0)&&!(z=Y.next()).done)w.push(z.value)}catch($){_={error:$}}finally{try{if(z&&!z.done&&(K=Y.return))K.call(Y)}finally{if(_)throw _.error}}return w},mTK=Ka&&Ka.__spreadArray||function(A,q){for(var K=0,Y=q.length,z=A.length;K<Y;K++,z++)A[z]=q[K];return A};Object.defineProperty(Ka,"__esModule",{value:!0});Ka.race=void 0;var BTK=f46(),gTK=MA1();function pTK(){var A=[];for(var q=0;q<arguments.length;q++)A[q]=arguments[q];return gTK.raceWith.apply(void 0,mTK([],uTK(BTK.argsOrArgArray(A))))}Ka.race=pTK});var ODA=h((TA)=>{Object.defineProperty(TA,"__esModule",{value:!0});TA.mergeAll=TA.merge=TA.max=TA.materialize=TA.mapTo=TA.map=TA.last=TA.isEmpty=TA.ignoreElements=TA.groupBy=TA.first=TA.findIndex=TA.find=TA.finalize=TA.filter=TA.expand=TA.exhaustMap=TA.exhaustAll=TA.exhaust=TA.every=TA.endWith=TA.elementAt=TA.distinctUntilKeyChanged=TA.distinctUntilChanged=TA.distinct=TA.dematerialize=TA.delayWhen=TA.delay=TA.defaultIfEmpty=TA.debounceTime=TA.debounce=TA.count=TA.connect=TA.concatWith=TA.concatMapTo=TA.concatMap=TA.concatAll=TA.concat=TA.combineLatestWith=TA.combineLatest=TA.combineLatestAll=TA.combineAll=TA.catchError=TA.bufferWhen=TA.bufferToggle=TA.bufferTime=TA.bufferCount=TA.buffer=TA.auditTime=TA.audit=void 0;TA.timeInterval=TA.throwIfEmpty=TA.throttleTime=TA.throttle=TA.tap=TA.takeWhile=TA.takeUntil=TA.takeLast=TA.take=TA.switchScan=TA.switchMapTo=TA.switchMap=TA.switchAll=TA.subscribeOn=TA.startWith=TA.skipWhile=TA.skipUntil=TA.skipLast=TA.skip=TA.single=TA.shareReplay=TA.share=TA.sequenceEqual=TA.scan=TA.sampleTime=TA.sample=TA.refCount=TA.retryWhen=TA.retry=TA.repeatWhen=TA.repeat=TA.reduce=TA.raceWith=TA.race=TA.publishReplay=TA.publishLast=TA.publishBehavior=TA.publish=TA.pluck=TA.partition=TA.pairwise=TA.onErrorResumeNext=TA.observeOn=TA.multicast=TA.min=TA.mergeWith=TA.mergeScan=TA.mergeMapTo=TA.mergeMap=TA.flatMap=void 0;TA.zipWith=TA.zipAll=TA.zip=TA.withLatestFrom=TA.windowWhen=TA.windowToggle=TA.windowTime=TA.windowCount=TA.window=TA.toArray=TA.timestamp=TA.timeoutWith=TA.timeout=void 0;var FTK=AA1();Object.defineProperty(TA,"audit",{enumerable:!0,get:function(){return FTK.audit}});var QTK=Zc1();Object.defineProperty(TA,"auditTime",{enumerable:!0,get:function(){return QTK.auditTime}});var UTK=fc1();Object.defineProperty(TA,"buffer",{enumerable:!0,get:function(){return UTK.buffer}});var dTK=vc1();Object.defineProperty(TA,"bufferCount",{enumerable:!0,get:function(){return dTK.bufferCount}});var cTK=Vc1();Object.defineProperty(TA,"bufferTime",{enumerable:!0,get:function(){return cTK.bufferTime}});var lTK=kc1();Object.defineProperty(TA,"bufferToggle",{enumerable:!0,get:function(){return lTK.bufferToggle}});var iTK=Ec1();Object.defineProperty(TA,"bufferWhen",{enumerable:!0,get:function(){return iTK.bufferWhen}});var nTK=Lc1();Object.defineProperty(TA,"catchError",{enumerable:!0,get:function(){return nTK.catchError}});var rTK=Sc1();Object.defineProperty(TA,"combineAll",{enumerable:!0,get:function(){return rTK.combineAll}});var oTK=KA1();Object.defineProperty(TA,"combineLatestAll",{enumerable:!0,get:function(){return oTK.combineLatestAll}});var aTK=hc1();Object.defineProperty(TA,"combineLatest",{enumerable:!0,get:function(){return aTK.combineLatest}});var sTK=Cc1();Object.defineProperty(TA,"combineLatestWith",{enumerable:!0,get:function(){return sTK.combineLatestWith}});var tTK=xc1();Object.defineProperty(TA,"concat",{enumerable:!0,get:function(){return tTK.concat}});var eTK=iR6();Object.defineProperty(TA,"concatAll",{enumerable:!0,get:function(){return eTK.concatAll}});var AvK=YA1();Object.defineProperty(TA,"concatMap",{enumerable:!0,get:function(){return AvK.concatMap}});var qvK=Ic1();Object.defineProperty(TA,"concatMapTo",{enumerable:!0,get:function(){return qvK.concatMapTo}});var KvK=bc1();Object.defineProperty(TA,"concatWith",{enumerable:!0,get:function(){return KvK.concatWith}});var YvK=oR6();Object.defineProperty(TA,"connect",{enumerable:!0,get:function(){return YvK.connect}});var zvK=uc1();Object.defineProperty(TA,"count",{enumerable:!0,get:function(){return zvK.count}});var wvK=mc1();Object.defineProperty(TA,"debounce",{enumerable:!0,get:function(){return wvK.debounce}});var _vK=Bc1();Object.defineProperty(TA,"debounceTime",{enumerable:!0,get:function(){return _vK.debounceTime}});var $vK=rH6();Object.defineProperty(TA,"defaultIfEmpty",{enumerable:!0,get:function(){return $vK.defaultIfEmpty}});var OvK=gc1();Object.defineProperty(TA,"delay",{enumerable:!0,get:function(){return OvK.delay}});var HvK=_A1();Object.defineProperty(TA,"delayWhen",{enumerable:!0,get:function(){return HvK.delayWhen}});var jvK=pc1();Object.defineProperty(TA,"dematerialize",{enumerable:!0,get:function(){return jvK.dematerialize}});var JvK=Fc1();Object.defineProperty(TA,"distinct",{enumerable:!0,get:function(){return JvK.distinct}});var MvK=$A1();Object.defineProperty(TA,"distinctUntilChanged",{enumerable:!0,get:function(){return MvK.distinctUntilChanged}});var DvK=Qc1();Object.defineProperty(TA,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return DvK.distinctUntilKeyChanged}});var XvK=Uc1();Object.defineProperty(TA,"elementAt",{enumerable:!0,get:function(){return XvK.elementAt}});var PvK=dc1();Object.defineProperty(TA,"endWith",{enumerable:!0,get:function(){return PvK.endWith}});var WvK=cc1();Object.defineProperty(TA,"every",{enumerable:!0,get:function(){return WvK.every}});var GvK=lc1();Object.defineProperty(TA,"exhaust",{enumerable:!0,get:function(){return GvK.exhaust}});var ZvK=HA1();Object.defineProperty(TA,"exhaustAll",{enumerable:!0,get:function(){return ZvK.exhaustAll}});var fvK=OA1();Object.defineProperty(TA,"exhaustMap",{enumerable:!0,get:function(){return fvK.exhaustMap}});var TvK=ic1();Object.defineProperty(TA,"expand",{enumerable:!0,get:function(){return TvK.expand}});var vvK=WU();Object.defineProperty(TA,"filter",{enumerable:!0,get:function(){return vvK.filter}});var VvK=nc1();Object.defineProperty(TA,"finalize",{enumerable:!0,get:function(){return VvK.finalize}});var NvK=jA1();Object.defineProperty(TA,"find",{enumerable:!0,get:function(){return NvK.find}});var kvK=rc1();Object.defineProperty(TA,"findIndex",{enumerable:!0,get:function(){return kvK.findIndex}});var EvK=oc1();Object.defineProperty(TA,"first",{enumerable:!0,get:function(){return EvK.first}});var LvK=ac1();Object.defineProperty(TA,"groupBy",{enumerable:!0,get:function(){return LvK.groupBy}});var yvK=zA1();Object.defineProperty(TA,"ignoreElements",{enumerable:!0,get:function(){return yvK.ignoreElements}});var RvK=sc1();Object.defineProperty(TA,"isEmpty",{enumerable:!0,get:function(){return RvK.isEmpty}});var SvK=tc1();Object.defineProperty(TA,"last",{enumerable:!0,get:function(){return SvK.last}});var hvK=PU();Object.defineProperty(TA,"map",{enumerable:!0,get:function(){return hvK.map}});var CvK=wA1();Object.defineProperty(TA,"mapTo",{enumerable:!0,get:function(){return CvK.mapTo}});var IvK=Al1();Object.defineProperty(TA,"materialize",{enumerable:!0,get:function(){return IvK.materialize}});var xvK=ql1();Object.defineProperty(TA,"max",{enumerable:!0,get:function(){return xvK.max}});var bvK=wl1();Object.defineProperty(TA,"merge",{enumerable:!0,get:function(){return bvK.merge}});var uvK=UH6();Object.defineProperty(TA,"mergeAll",{enumerable:!0,get:function(){return uvK.mergeAll}});var mvK=Kl1();Object.defineProperty(TA,"flatMap",{enumerable:!0,get:function(){return mvK.flatMap}});var BvK=_m();Object.defineProperty(TA,"mergeMap",{enumerable:!0,get:function(){return BvK.mergeMap}});var gvK=Yl1();Object.defineProperty(TA,"mergeMapTo",{enumerable:!0,get:function(){return gvK.mergeMapTo}});var pvK=zl1();Object.defineProperty(TA,"mergeScan",{enumerable:!0,get:function(){return pvK.mergeScan}});var FvK=_l1();Object.defineProperty(TA,"mergeWith",{enumerable:!0,get:function(){return FvK.mergeWith}});var QvK=$l1();Object.defineProperty(TA,"min",{enumerable:!0,get:function(){return QvK.min}});var UvK=aR6();Object.defineProperty(TA,"multicast",{enumerable:!0,get:function(){return UvK.multicast}});var dvK=FH6();Object.defineProperty(TA,"observeOn",{enumerable:!0,get:function(){return dvK.observeOn}});var cvK=Ol1();Object.defineProperty(TA,"onErrorResumeNext",{enumerable:!0,get:function(){return cvK.onErrorResumeNext}});var lvK=Hl1();Object.defineProperty(TA,"pairwise",{enumerable:!0,get:function(){return lvK.pairwise}});var ivK=_DA();Object.defineProperty(TA,"partition",{enumerable:!0,get:function(){return ivK.partition}});var nvK=jl1();Object.defineProperty(TA,"pluck",{enumerable:!0,get:function(){return nvK.pluck}});var rvK=Jl1();Object.defineProperty(TA,"publish",{enumerable:!0,get:function(){return rvK.publish}});var ovK=Ml1();Object.defineProperty(TA,"publishBehavior",{enumerable:!0,get:function(){return ovK.publishBehavior}});var avK=Dl1();Object.defineProperty(TA,"publishLast",{enumerable:!0,get:function(){return avK.publishLast}});var svK=Xl1();Object.defineProperty(TA,"publishReplay",{enumerable:!0,get:function(){return svK.publishReplay}});var tvK=$DA();Object.defineProperty(TA,"race",{enumerable:!0,get:function(){return tvK.race}});var evK=MA1();Object.defineProperty(TA,"raceWith",{enumerable:!0,get:function(){return evK.raceWith}});var AVK=T46();Object.defineProperty(TA,"reduce",{enumerable:!0,get:function(){return AVK.reduce}});var qVK=Pl1();Object.defineProperty(TA,"repeat",{enumerable:!0,get:function(){return qVK.repeat}});var KVK=Wl1();Object.defineProperty(TA,"repeatWhen",{enumerable:!0,get:function(){return KVK.repeatWhen}});var YVK=Gl1();Object.defineProperty(TA,"retry",{enumerable:!0,get:function(){return YVK.retry}});var zVK=Zl1();Object.defineProperty(TA,"retryWhen",{enumerable:!0,get:function(){return zVK.retryWhen}});var wVK=Q81();Object.defineProperty(TA,"refCount",{enumerable:!0,get:function(){return wVK.refCount}});var _VK=DA1();Object.defineProperty(TA,"sample",{enumerable:!0,get:function(){return _VK.sample}});var $VK=fl1();Object.defineProperty(TA,"sampleTime",{enumerable:!0,get:function(){return $VK.sampleTime}});var OVK=Tl1();Object.defineProperty(TA,"scan",{enumerable:!0,get:function(){return OVK.scan}});var HVK=vl1();Object.defineProperty(TA,"sequenceEqual",{enumerable:!0,get:function(){return HVK.sequenceEqual}});var jVK=XA1();Object.defineProperty(TA,"share",{enumerable:!0,get:function(){return jVK.share}});var JVK=Nl1();Object.defineProperty(TA,"shareReplay",{enumerable:!0,get:function(){return JVK.shareReplay}});var MVK=kl1();Object.defineProperty(TA,"single",{enumerable:!0,get:function(){return MVK.single}});var DVK=El1();Object.defineProperty(TA,"skip",{enumerable:!0,get:function(){return DVK.skip}});var XVK=Ll1();Object.defineProperty(TA,"skipLast",{enumerable:!0,get:function(){return XVK.skipLast}});var PVK=yl1();Object.defineProperty(TA,"skipUntil",{enumerable:!0,get:function(){return PVK.skipUntil}});var WVK=Rl1();Object.defineProperty(TA,"skipWhile",{enumerable:!0,get:function(){return WVK.skipWhile}});var GVK=Sl1();Object.defineProperty(TA,"startWith",{enumerable:!0,get:function(){return GVK.startWith}});var ZVK=QH6();Object.defineProperty(TA,"subscribeOn",{enumerable:!0,get:function(){return ZVK.subscribeOn}});var fVK=hl1();Object.defineProperty(TA,"switchAll",{enumerable:!0,get:function(){return fVK.switchAll}});var TVK=tH6();Object.defineProperty(TA,"switchMap",{enumerable:!0,get:function(){return TVK.switchMap}});var vVK=Cl1();Object.defineProperty(TA,"switchMapTo",{enumerable:!0,get:function(){return vVK.switchMapTo}});var VVK=Il1();Object.defineProperty(TA,"switchScan",{enumerable:!0,get:function(){return VVK.switchScan}});var NVK=oH6();Object.defineProperty(TA,"take",{enumerable:!0,get:function(){return NVK.take}});var kVK=JA1();Object.defineProperty(TA,"takeLast",{enumerable:!0,get:function(){return kVK.takeLast}});var EVK=xl1();Object.defineProperty(TA,"takeUntil",{enumerable:!0,get:function(){return EVK.takeUntil}});var LVK=bl1();Object.defineProperty(TA,"takeWhile",{enumerable:!0,get:function(){return LVK.takeWhile}});var yVK=ul1();Object.defineProperty(TA,"tap",{enumerable:!0,get:function(){return yVK.tap}});var RVK=PA1();Object.defineProperty(TA,"throttle",{enumerable:!0,get:function(){return RVK.throttle}});var SVK=ml1();Object.defineProperty(TA,"throttleTime",{enumerable:!0,get:function(){return SVK.throttleTime}});var hVK=aH6();Object.defineProperty(TA,"throwIfEmpty",{enumerable:!0,get:function(){return hVK.throwIfEmpty}});var CVK=Bl1();Object.defineProperty(TA,"timeInterval",{enumerable:!0,get:function(){return CVK.timeInterval}});var IVK=lR6();Object.defineProperty(TA,"timeout",{enumerable:!0,get:function(){return IVK.timeout}});var xVK=gl1();Object.defineProperty(TA,"timeoutWith",{enumerable:!0,get:function(){return xVK.timeoutWith}});var bVK=pl1();Object.defineProperty(TA,"timestamp",{enumerable:!0,get:function(){return bVK.timestamp}});var uVK=qA1();Object.defineProperty(TA,"toArray",{enumerable:!0,get:function(){return uVK.toArray}});var mVK=Fl1();Object.defineProperty(TA,"window",{enumerable:!0,get:function(){return mVK.window}});var BVK=Ql1();Object.defineProperty(TA,"windowCount",{enumerable:!0,get:function(){return BVK.windowCount}});var gVK=Ul1();Object.defineProperty(TA,"windowTime",{enumerable:!0,get:function(){return gVK.windowTime}});var pVK=cl1();Object.defineProperty(TA,"windowToggle",{enumerable:!0,get:function(){return pVK.windowToggle}});var FVK=ll1();Object.defineProperty(TA,"windowWhen",{enumerable:!0,get:function(){return FVK.windowWhen}});var QVK=il1();Object.defineProperty(TA,"withLatestFrom",{enumerable:!0,get:function(){return QVK.withLatestFrom}});var UVK=rl1();Object.defineProperty(TA,"zip",{enumerable:!0,get:function(){return UVK.zip}});var dVK=nl1();Object.defineProperty(TA,"zipAll",{enumerable:!0,get:function(){return dVK.zipAll}});var cVK=ol1();Object.defineProperty(TA,"zipWith",{enumerable:!0,get:function(){return cVK.zipWith}})});var al1=h((GYw,HDA)=>{var qj6=1000,Kj6=qj6*60,Yj6=Kj6*60,v46=Yj6*24,rVK=v46*7,oVK=v46*365.25;HDA.exports=function(A,q){q=q||{};var K=typeof A;if(K==="string"&&A.length>0)return aVK(A);else if(K==="number"&&isFinite(A))return q.long?tVK(A):sVK(A);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(A))};function aVK(A){if(A=String(A),A.length>100)return;var q=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(A);if(!q)return;var K=parseFloat(q[1]),Y=(q[2]||"ms").toLowerCase();switch(Y){case"years":case"year":case"yrs":case"yr":case"y":return K*oVK;case"weeks":case"week":case"w":return K*rVK;case"days":case"day":case"d":return K*v46;case"hours":case"hour":case"hrs":case"hr":case"h":return K*Yj6;case"minutes":case"minute":case"mins":case"min":case"m":return K*Kj6;case"seconds":case"second":case"secs":case"sec":case"s":return K*qj6;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return K;default:return}}function sVK(A){var q=Math.abs(A);if(q>=v46)return Math.round(A/v46)+"d";if(q>=Yj6)return Math.round(A/Yj6)+"h";if(q>=Kj6)return Math.round(A/Kj6)+"m";if(q>=qj6)return Math.round(A/qj6)+"s";return A+"ms"}function tVK(A){var q=Math.abs(A);if(q>=v46)return WA1(A,q,v46,"day");if(q>=Yj6)return WA1(A,q,Yj6,"hour");if(q>=Kj6)return WA1(A,q,Kj6,"minute");if(q>=qj6)return WA1(A,q,qj6,"second");return A+" ms"}function WA1(A,q,K,Y){var z=q>=K*1.5;return Math.round(A/K)+" "+Y+(z?"s":"")}});var sl1=h((ZYw,jDA)=>{function eVK(A){K.debug=K,K.default=K,K.coerce=O,K.disable=_,K.enable=z,K.enabled=$,K.humanize=al1(),K.destroy=H,Object.keys(A).forEach((j)=>{K[j]=A[j]}),K.names=[],K.skips=[],K.formatters={};function q(j){let J=0;for(let M=0;M<j.length;M++)J=(J<<5)-J+j.charCodeAt(M),J|=0;return K.colors[Math.abs(J)%K.colors.length]}K.selectColor=q;function K(j){let J,M=null,D,X;function P(...W){if(!P.enabled)return;let G=P,Z=Number(new Date),f=Z-(J||Z);if(G.diff=f,G.prev=J,G.curr=Z,J=Z,W[0]=K.coerce(W[0]),typeof W[0]!=="string")W.unshift("%O");let v=0;W[0]=W[0].replace(/%([a-zA-Z%])/g,(N,L)=>{if(N==="%%")return"%";v++;let S=K.formatters[L];if(typeof S==="function"){let C=W[v];N=S.call(G,C),W.splice(v,1),v--}return N}),K.formatArgs.call(G,W),(G.log||K.log).apply(G,W)}if(P.namespace=j,P.useColors=K.useColors(),P.color=K.selectColor(j),P.extend=Y,P.destroy=K.destroy,Object.defineProperty(P,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(M!==null)return M;if(D!==K.namespaces)D=K.namespaces,X=K.enabled(j);return X},set:(W)=>{M=W}}),typeof K.init==="function")K.init(P);return P}function Y(j,J){let M=K(this.namespace+(typeof J>"u"?":":J)+j);return M.log=this.log,M}function z(j){K.save(j),K.namespaces=j,K.names=[],K.skips=[];let J=(typeof j==="string"?j:"").trim().replace(" ",",").split(",").filter(Boolean);for(let M of J)if(M[0]==="-")K.skips.push(M.slice(1));else K.names.push(M)}function w(j,J){let M=0,D=0,X=-1,P=0;while(M<j.length)if(D<J.length&&(J[D]===j[M]||J[D]==="*"))if(J[D]==="*")X=D,P=M,D++;else M++,D++;else if(X!==-1)D=X+1,P++,M=P;else return!1;while(D<J.length&&J[D]==="*")D++;return D===J.length}function _(){let j=[...K.names,...K.skips.map((J)=>"-"+J)].join(",");return K.enable(""),j}function $(j){for(let J of K.skips)if(w(j,J))return!1;for(let J of K.names)if(w(j,J))return!0;return!1}function O(j){if(j instanceof Error)return j.stack||j.message;return j}function H(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return K.enable(K.load()),K}jDA.exports=eVK});var MDA=h((JDA,ZA1)=>{JDA.formatArgs=qNK;JDA.save=KNK;JDA.load=YNK;JDA.useColors=ANK;JDA.storage=zNK();JDA.destroy=(()=>{let A=!1;return()=>{if(!A)A=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();JDA.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function ANK(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let A;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(A=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(A[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function qNK(A){if(A[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+A[0]+(this.useColors?"%c ":" ")+"+"+ZA1.exports.humanize(this.diff),!this.useColors)return;let q="color: "+this.color;A.splice(1,0,q,"color: inherit");let K=0,Y=0;A[0].replace(/%[a-zA-Z%]/g,(z)=>{if(z==="%%")return;if(K++,z==="%c")Y=K}),A.splice(Y,0,q)}JDA.log=console.debug||console.log||(()=>{});function KNK(A){try{if(A)JDA.storage.setItem("debug",A);else JDA.storage.removeItem("debug")}catch(q){}}function YNK(){let A;try{A=JDA.storage.getItem("debug")}catch(q){}if(!A&&typeof process<"u"&&"env"in process)A=process.env.DEBUG;return A}function zNK(){try{return localStorage}catch(A){}}ZA1.exports=sl1()(JDA);var{formatters:wNK}=ZA1.exports;wNK.j=function(A){try{return JSON.stringify(A)}catch(q){return"[UnexpectedJSONParseError]: "+q.message}}});var sR6=h((TYw,DDA)=>{DDA.exports=(A,q=process.argv)=>{let K=A.startsWith("-")?"":A.length===1?"-":"--",Y=q.indexOf(K+A),z=q.indexOf("--");return Y!==-1&&(z===-1||Y<z)}});var WDA=h((vYw,PDA)=>{var DNK=u6("os"),XDA=u6("tty"),tL=sR6(),{env:ZX}=process,fA1;if(tL("no-color")||tL("no-colors")||tL("color=false")||tL("color=never"))fA1=0;else if(tL("color")||tL("colors")||tL("color=true")||tL("color=always"))fA1=1;function XNK(){if("FORCE_COLOR"in ZX){if(ZX.FORCE_COLOR==="true")return 1;if(ZX.FORCE_COLOR==="false")return 0;return ZX.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ZX.FORCE_COLOR,10),3)}}function PNK(A){if(A===0)return!1;return{level:A,hasBasic:!0,has256:A>=2,has16m:A>=3}}function WNK(A,{streamIsTTY:q,sniffFlags:K=!0}={}){let Y=XNK();if(Y!==void 0)fA1=Y;let z=K?fA1:Y;if(z===0)return 0;if(K){if(tL("color=16m")||tL("color=full")||tL("color=truecolor"))return 3;if(tL("color=256"))return 2}if(A&&!q&&z===void 0)return 0;let w=z||0;if(ZX.TERM==="dumb")return w;if(process.platform==="win32"){let _=DNK.release().split(".");if(Number(_[0])>=10&&Number(_[2])>=10586)return Number(_[2])>=14931?3:2;return 1}if("CI"in ZX){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some((_)=>(_ in ZX))||ZX.CI_NAME==="codeship")return 1;return w}if("TEAMCITY_VERSION"in ZX)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ZX.TEAMCITY_VERSION)?1:0;if(ZX.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ZX){let _=Number.parseInt((ZX.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ZX.TERM_PROGRAM){case"iTerm.app":return _>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(ZX.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ZX.TERM))return 1;if("COLORTERM"in ZX)return 1;return w}function tl1(A,q={}){let K=WNK(A,{streamIsTTY:A&&A.isTTY,...q});return PNK(K)}PDA.exports={supportsColor:tl1,stdout:tl1({isTTY:XDA.isatty(1)}),stderr:tl1({isTTY:XDA.isatty(2)})}});var TDA=h((ZDA,vA1)=>{var GNK=u6("tty"),TA1=u6("util");ZDA.init=kNK;ZDA.log=vNK;ZDA.formatArgs=fNK;ZDA.save=VNK;ZDA.load=NNK;ZDA.useColors=ZNK;ZDA.destroy=TA1.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ZDA.colors=[6,2,3,4,5,1];try{let A=WDA();if(A&&(A.stderr||A).level>=2)ZDA.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(A){}ZDA.inspectOpts=Object.keys(process.env).filter((A)=>{return/^debug_/i.test(A)}).reduce((A,q)=>{let K=q.substring(6).toLowerCase().replace(/_([a-z])/g,(z,w)=>{return w.toUpperCase()}),Y=process.env[q];if(/^(yes|on|true|enabled)$/i.test(Y))Y=!0;else if(/^(no|off|false|disabled)$/i.test(Y))Y=!1;else if(Y==="null")Y=null;else Y=Number(Y);return A[K]=Y,A},{});function ZNK(){return"colors"in ZDA.inspectOpts?Boolean(ZDA.inspectOpts.colors):GNK.isatty(process.stderr.fd)}function fNK(A){let{namespace:q,useColors:K}=this;if(K){let Y=this.color,z="\x1B[3"+(Y<8?Y:"8;5;"+Y),w=`  ${z};1m${q} \x1B[0m`;A[0]=w+A[0].split(`
`).join(`
`+w),A.push(z+"m+"+vA1.exports.humanize(this.diff)+"\x1B[0m")}else A[0]=TNK()+q+" "+A[0]}function TNK(){if(ZDA.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function vNK(...A){return process.stderr.write(TA1.formatWithOptions(ZDA.inspectOpts,...A)+`
`)}function VNK(A){if(A)process.env.DEBUG=A;else delete process.env.DEBUG}function NNK(){return process.env.DEBUG}function kNK(A){A.inspectOpts={};let q=Object.keys(ZDA.inspectOpts);for(let K=0;K<q.length;K++)A.inspectOpts[q[K]]=ZDA.inspectOpts[q[K]]}vA1.exports=sl1()(ZDA);var{formatters:GDA}=vA1.exports;GDA.o=function(A){return this.inspectOpts.colors=this.useColors,TA1.inspect(A,this.inspectOpts).split(`
`).map((q)=>q.trim()).join(" ")};GDA.O=function(A){return this.inspectOpts.colors=this.useColors,TA1.inspect(A,this.inspectOpts)}});var N46=h((NYw,el1)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)el1.exports=MDA();else el1.exports=TDA()});var qi1=h((oN)=>{var __dirname="/home/runner/code/tmp/claude-cli-external-build-2192/node_modules/spawn-rx/lib/src",eL=oN&&oN.__assign||function(){return eL=Object.assign||function(A){for(var q,K=1,Y=arguments.length;K<Y;K++){q=arguments[K];for(var z in q)if(Object.prototype.hasOwnProperty.call(q,z))A[z]=q[z]}return A},eL.apply(this,arguments)},INK=oN&&oN.__rest||function(A,q){var K={};for(var Y in A)if(Object.prototype.hasOwnProperty.call(A,Y)&&q.indexOf(Y)<0)K[Y]=A[Y];if(A!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var z=0,Y=Object.getOwnPropertySymbols(A);z<Y.length;z++)if(q.indexOf(Y[z])<0&&Object.prototype.propertyIsEnumerable.call(A,Y[z]))K[Y[z]]=A[Y[z]]}return K},xNK=oN&&oN.__spreadArray||function(A,q,K){if(K||arguments.length===2){for(var Y=0,z=q.length,w;Y<z;Y++)if(w||!(Y in q)){if(!w)w=Array.prototype.slice.call(q,0,Y);w[Y]=q[Y]}}return A.concat(w||Array.prototype.slice.call(q))};Object.defineProperty(oN,"__esModule",{value:!0});oN.findActualExecutable=VA1;oN.spawnDetached=Ai1;oN.spawn=AS6;oN.spawnDetachedPromise=BNK;oN.spawnPromise=gNK;var tR6=u6("path"),bNK=u6("net"),eR6=u6("fs"),Ya=KDA(),vDA=ODA(),uNK=u6("child_process"),mNK=N46(),kDA=process.platform==="win32",zj6=(0,mNK.default)("spawn-rx");function VDA(A){try{return eR6.statSync(A)}catch(q){return null}}function NDA(A){if(A.match(/[\\/]/))return zj6("Path has slash in directory, bailing"),A;var q=tR6.join(".",A);if(VDA(q))return zj6("Found executable in currect directory: ".concat(q)),eR6.realpathSync(q);var K=process.env.PATH.split(kDA?";":":");for(var Y=0,z=K;Y<z.length;Y++){var w=z[Y],_=tR6.join(w,A);if(VDA(_))return eR6.realpathSync(_)}return zj6("Failed to find executable anywhere in path"),A}function VA1(A,q){if(process.platform!=="win32")return{cmd:NDA(A),args:q};if(!eR6.existsSync(A)){var K=[".exe",".bat",".cmd",".ps1"];for(var Y=0,z=K;Y<z.length;Y++){var w=z[Y],_=NDA("".concat(A).concat(w));if(eR6.existsSync(_))return VA1(_,q)}}if(A.match(/\.ps1$/i)){var $=tR6.join(process.env.SYSTEMROOT,"System32","WindowsPowerShell","v1.0","PowerShell.exe"),O=["-ExecutionPolicy","Unrestricted","-NoLogo","-NonInteractive","-File",A];return{cmd:$,args:O.concat(q)}}if(A.match(/\.(bat|cmd)$/i)){var $=tR6.join(process.env.SYSTEMROOT,"System32","cmd.exe"),H=xNK(["/C",A],q,!0);return{cmd:$,args:H}}if(A.match(/\.(js)$/i)){var $=process.execPath,j=[A];return{cmd:$,args:j.concat(q)}}return{cmd:A,args:q}}function Ai1(A,q,K){var Y=VA1(A,q!==null&&q!==void 0?q:[]),z=Y.cmd,w=Y.args;if(!kDA)return AS6(z,w,Object.assign({},K||{},{detached:!0}));var _=[z].concat(w),$=tR6.join(__dirname,"..","..","vendor","jobber","Jobber.exe"),O=eL(eL({},K!==null&&K!==void 0?K:{}),{detached:!0,jobber:!0});return zj6("spawnDetached: ".concat($,", ").concat(_)),AS6($,_,O)}function AS6(A,q,K){K=K!==null&&K!==void 0?K:{};var Y=new Ya.Observable(function(z){var{stdin:w,jobber:_,split:$,encoding:O}=K,H=INK(K,["stdin","jobber","split","encoding"]),j=VA1(A,q),J=j.cmd,M=j.args;zj6("spawning process: ".concat(J," ").concat(M.join(),", ").concat(JSON.stringify(H)));var D=(0,uNK.spawn)(J,M,H),X=function(f){return function(v){if(v.length<1)return;if(K.echoOutput)(f==="stdout"?process.stdout:process.stderr).write(v);var V="<< String sent back was too long >>";try{if(typeof v==="string")V=v.toString();else V=v.toString(O||"utf8")}catch(N){V="<< Lost chunk of process output for ".concat(A," - length was ").concat(v.length,">>")}z.next({source:f,text:V})}},P=new Ya.Subscription;if(K.stdin)if(D.stdin)P.add(K.stdin.subscribe({next:function(f){return D.stdin.write(f)},error:z.error.bind(z),complete:function(){return D.stdin.end()}}));else z.error(Error("opts.stdio conflicts with provided spawn opts.stdin observable, 'pipe' is required"));var W=null,G=null,Z=!1;if(D.stdout)G=new Ya.AsyncSubject,D.stdout.on("data",X("stdout")),D.stdout.on("close",function(){G.next(!0),G.complete()});else G=(0,Ya.of)(!0);if(D.stderr)W=new Ya.AsyncSubject,D.stderr.on("data",X("stderr")),D.stderr.on("close",function(){W.next(!0),W.complete()});else W=(0,Ya.of)(!0);return D.on("error",function(f){Z=!0,z.error(f)}),D.on("close",function(f){Z=!0;var v=(0,Ya.merge)(G,W).pipe((0,vDA.reduce)(function(V){return V},!0));if(f===0)v.subscribe(function(){return z.complete()});else v.subscribe(function(){var V=Error("Failed with exit code: ".concat(f));V.exitCode=f,V.code=f,z.error(V)})}),P.add(new Ya.Subscription(function(){if(Z)return;if(zj6("Killing process: ".concat(J," ").concat(M.join())),K.jobber)bNK.connect("\\\\.\\pipe\\jobber-".concat(D.pid)),setTimeout(function(){return D.kill()},5000);else D.kill()})),P});return K.split?Y:Y.pipe((0,vDA.map)(function(z){return z===null||z===void 0?void 0:z.text}))}function EDA(A){return new Promise(function(q,K){var Y="";A.subscribe({next:function(z){return Y+=z},error:function(z){var w=Error("".concat(Y,`
`).concat(z.message));if("exitCode"in z)w.exitCode=z.exitCode,w.code=z.exitCode;K(w)},complete:function(){return q(Y)}})})}function LDA(A){return new Promise(function(q,K){var Y="",z="";A.subscribe({next:function(w){return w.source==="stdout"?Y+=w.text:z+=w.text},error:function(w){var _=Error("".concat(Y,`
`).concat(w.message));if("exitCode"in w)_.exitCode=w.exitCode,_.code=w.exitCode,_.stdout=Y,_.stderr=z;K(_)},complete:function(){return q([Y,z])}})})}function BNK(A,q,K){if(K===null||K===void 0?void 0:K.split)return LDA(Ai1(A,q,eL(eL({},K!==null&&K!==void 0?K:{}),{split:!0})));else return EDA(Ai1(A,q,eL(eL({},K!==null&&K!==void 0?K:{}),{split:!1})))}function gNK(A,q,K){if(K===null||K===void 0?void 0:K.split)return LDA(AS6(A,q,eL(eL({},K!==null&&K!==void 0?K:{}),{split:!0})));else return EDA(AS6(A,q,eL(eL({},K!==null&&K!==void 0?K:{}),{split:!1})))}});function wj6(){return process.versions.bun!==void 0}function r5(){return typeof Bun<"u"&&Array.isArray(Bun.embeddedFiles)&&Bun.embeddedFiles.length>0}var qS6={};d1(qS6,{getOauthConfig:()=>s7,fileSuffixForOauthConfig:()=>Ki1,OAUTH_BETA_HEADER:()=>tZ,CONSOLE_OAUTH_SCOPES:()=>SDA,CLAUDE_AI_PROFILE_SCOPE:()=>k46,CLAUDE_AI_OAUTH_SCOPES:()=>NA1,CLAUDE_AI_INFERENCE_SCOPE:()=>VC,ALL_OAUTH_SCOPES:()=>Yi1});function RDA(){return"prod"}function Ki1(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(RDA()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function s7(){let A=(()=>{switch(RDA()){case"local":return QNK;case"staging":return FNK??yDA;case"prod":return yDA}})(),q=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(q){let Y=q.replace(/\/$/,"");if(!UNK.includes(Y))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");A={...A,BASE_API_URL:Y,CONSOLE_AUTHORIZE_URL:`${Y}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${Y}/oauth/authorize`,TOKEN_URL:`${Y}/v1/oauth/token`,API_KEY_URL:`${Y}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${Y}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${Y}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${Y}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${Y}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let K=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(K)A={...A,CLIENT_ID:K};return A}var VC="user:inference",k46="user:profile",pNK="org:create_api_key",tZ="oauth-2025-04-20",SDA,NA1,Yi1,yDA,FNK=void 0,QNK,UNK;var D9=E(()=>{Z8();SDA=[pNK,k46],NA1=[k46,VC,"user:sessions:claude_code","user:mcp_servers"],Yi1=Array.from(new Set([...SDA,...NA1])),yDA={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.ai/oauth/authorize",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"},QNK={BASE_API_URL:"http://localhost:3000",CONSOLE_AUTHORIZE_URL:"http://localhost:3000/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"http://localhost:4000/oauth/authorize",TOKEN_URL:"http://localhost:3000/v1/oauth/token",API_KEY_URL:"http://localhost:3000/api/oauth/claude_cli/create_api_key",ROLES_URL:"http://localhost:3000/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"http://localhost:3000/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"http://localhost:3000/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://console.staging.ant.dev/oauth/code/callback",CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"},UNK=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});var bDA=h((RYw,xDA)=>{xDA.exports=IDA;IDA.sync=cNK;var hDA=u6("fs");function dNK(A,q){var K=q.pathExt!==void 0?q.pathExt:process.env.PATHEXT;if(!K)return!0;if(K=K.split(";"),K.indexOf("")!==-1)return!0;for(var Y=0;Y<K.length;Y++){var z=K[Y].toLowerCase();if(z&&A.substr(-z.length).toLowerCase()===z)return!0}return!1}function CDA(A,q,K){if(!A.isSymbolicLink()&&!A.isFile())return!1;return dNK(q,K)}function IDA(A,q,K){hDA.stat(A,function(Y,z){K(Y,Y?!1:CDA(z,A,q))})}function cNK(A,q){return CDA(hDA.statSync(A),A,q)}});var pDA=h((SYw,gDA)=>{gDA.exports=mDA;mDA.sync=lNK;var uDA=u6("fs");function mDA(A,q,K){uDA.stat(A,function(Y,z){K(Y,Y?!1:BDA(z,q))})}function lNK(A,q){return BDA(uDA.statSync(A),q)}function BDA(A,q){return A.isFile()&&iNK(A,q)}function iNK(A,q){var{mode:K,uid:Y,gid:z}=A,w=q.uid!==void 0?q.uid:process.getuid&&process.getuid(),_=q.gid!==void 0?q.gid:process.getgid&&process.getgid(),$=parseInt("100",8),O=parseInt("010",8),H=parseInt("001",8),j=$|O,J=K&H||K&O&&z===_||K&$&&Y===w||K&j&&w===0;return J}});var QDA=h((CYw,FDA)=>{var hYw=u6("fs"),kA1;if(process.platform==="win32"||global.TESTING_WINDOWS)kA1=bDA();else kA1=pDA();FDA.exports=zi1;zi1.sync=nNK;function zi1(A,q,K){if(typeof q==="function")K=q,q={};if(!K){if(typeof Promise!=="function")throw TypeError("callback not provided");return new Promise(function(Y,z){zi1(A,q||{},function(w,_){if(w)z(w);else Y(_)})})}kA1(A,q||{},function(Y,z){if(Y){if(Y.code==="EACCES"||q&&q.ignoreErrors)Y=null,z=!1}K(Y,z)})}function nNK(A,q){try{return kA1.sync(A,q||{})}catch(K){if(q&&q.ignoreErrors||K.code==="EACCES")return!1;else throw K}}});var rDA=h((IYw,nDA)=>{var _j6=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",UDA=u6("path"),rNK=_j6?";":":",dDA=QDA(),cDA=(A)=>Object.assign(Error(`not found: ${A}`),{code:"ENOENT"}),lDA=(A,q)=>{let K=q.colon||rNK,Y=A.match(/\//)||_j6&&A.match(/\\/)?[""]:[..._j6?[process.cwd()]:[],...(q.path||process.env.PATH||"").split(K)],z=_j6?q.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",w=_j6?z.split(K):[""];if(_j6){if(A.indexOf(".")!==-1&&w[0]!=="")w.unshift("")}return{pathEnv:Y,pathExt:w,pathExtExe:z}},iDA=(A,q,K)=>{if(typeof q==="function")K=q,q={};if(!q)q={};let{pathEnv:Y,pathExt:z,pathExtExe:w}=lDA(A,q),_=[],$=(H)=>new Promise((j,J)=>{if(H===Y.length)return q.all&&_.length?j(_):J(cDA(A));let M=Y[H],D=/^".*"$/.test(M)?M.slice(1,-1):M,X=UDA.join(D,A),P=!D&&/^\.[\\\/]/.test(A)?A.slice(0,2)+X:X;j(O(P,H,0))}),O=(H,j,J)=>new Promise((M,D)=>{if(J===z.length)return M($(j+1));let X=z[J];dDA(H+X,{pathExt:w},(P,W)=>{if(!P&&W)if(q.all)_.push(H+X);else return M(H+X);return M(O(H,j,J+1))})});return K?$(0).then((H)=>K(null,H),K):$(0)},oNK=(A,q)=>{q=q||{};let{pathEnv:K,pathExt:Y,pathExtExe:z}=lDA(A,q),w=[];for(let _=0;_<K.length;_++){let $=K[_],O=/^".*"$/.test($)?$.slice(1,-1):$,H=UDA.join(O,A),j=!O&&/^\.[\\\/]/.test(A)?A.slice(0,2)+H:H;for(let J=0;J<Y.length;J++){let M=j+Y[J];try{if(dDA.sync(M,{pathExt:z}))if(q.all)w.push(M);else return M}catch(D){}}}if(q.all&&w.length)return w;if(q.nothrow)return null;throw cDA(A)};nDA.exports=iDA;iDA.sync=oNK});var aDA=h((xYw,wi1)=>{var oDA=(A={})=>{let q=A.env||process.env;if((A.platform||process.platform)!=="win32")return"PATH";return Object.keys(q).reverse().find((Y)=>Y.toUpperCase()==="PATH")||"Path"};wi1.exports=oDA;wi1.exports.default=oDA});var AXA=h((bYw,eDA)=>{var sDA=u6("path"),aNK=rDA(),sNK=aDA();function tDA(A,q){let K=A.options.env||process.env,Y=process.cwd(),z=A.options.cwd!=null,w=z&&process.chdir!==void 0&&!process.chdir.disabled;if(w)try{process.chdir(A.options.cwd)}catch($){}let _;try{_=aNK.sync(A.command,{path:K[sNK({env:K})],pathExt:q?sDA.delimiter:void 0})}catch($){}finally{if(w)process.chdir(Y)}if(_)_=sDA.resolve(z?A.options.cwd:"",_);return _}function tNK(A){return tDA(A)||tDA(A,!0)}eDA.exports=tNK});var qXA=h((qkK,$i1)=>{var _i1=/([()\][%!^"`<>&|;, *?])/g;function eNK(A){return A=A.replace(_i1,"^$1"),A}function AkK(A,q){if(A=`${A}`,A=A.replace(/(?=(\\+?)?)\1"/g,"$1$1\\\""),A=A.replace(/(?=(\\+?)?)\1$/,"$1$1"),A=`"${A}"`,A=A.replace(_i1,"^$1"),q)A=A.replace(_i1,"^$1");return A}qkK.command=eNK;qkK.argument=AkK});var YXA=h((uYw,KXA)=>{KXA.exports=/^#!(.*)/});var wXA=h((mYw,zXA)=>{var zkK=YXA();zXA.exports=(A="")=>{let q=A.match(zkK);if(!q)return null;let[K,Y]=q[0].replace(/#! ?/,"").split(" "),z=K.split("/").pop();if(z==="env")return Y;return Y?`${z} ${Y}`:z}});var $XA=h((BYw,_XA)=>{var Oi1=u6("fs"),wkK=wXA();function _kK(A){let K=Buffer.alloc(150),Y;try{Y=Oi1.openSync(A,"r"),Oi1.readSync(Y,K,0,150,0),Oi1.closeSync(Y)}catch(z){}return wkK(K.toString())}_XA.exports=_kK});var JXA=h((gYw,jXA)=>{var $kK=u6("path"),OXA=AXA(),HXA=qXA(),OkK=$XA(),HkK=process.platform==="win32",jkK=/\.(?:com|exe)$/i,JkK=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function MkK(A){A.file=OXA(A);let q=A.file&&OkK(A.file);if(q)return A.args.unshift(A.file),A.command=q,OXA(A);return A.file}function DkK(A){if(!HkK)return A;let q=MkK(A),K=!jkK.test(q);if(A.options.forceShell||K){let Y=JkK.test(q);A.command=$kK.normalize(A.command),A.command=HXA.command(A.command),A.args=A.args.map((w)=>HXA.argument(w,Y));let z=[A.command].concat(A.args).join(" ");A.args=["/d","/s","/c",`"${z}"`],A.command=process.env.comspec||"cmd.exe",A.options.windowsVerbatimArguments=!0}return A}function XkK(A,q,K){if(q&&!Array.isArray(q))K=q,q=null;q=q?q.slice(0):[],K=Object.assign({},K);let Y={command:A,args:q,options:K,file:void 0,original:{command:A,args:q}};return K.shell?Y:DkK(Y)}jXA.exports=XkK});var XXA=h((pYw,DXA)=>{var Hi1=process.platform==="win32";function ji1(A,q){return Object.assign(Error(`${q} ${A.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${q} ${A.command}`,path:A.command,spawnargs:A.args})}function PkK(A,q){if(!Hi1)return;let K=A.emit;A.emit=function(Y,z){if(Y==="exit"){let w=MXA(z,q);if(w)return K.call(A,"error",w)}return K.apply(A,arguments)}}function MXA(A,q){if(Hi1&&A===1&&!q.file)return ji1(q.original,"spawn");return null}function WkK(A,q){if(Hi1&&A===1&&!q.file)return ji1(q.original,"spawnSync");return null}DXA.exports={hookChildProcess:PkK,verifyENOENT:MXA,verifyENOENTSync:WkK,notFoundError:ji1}});var Di1=h((FYw,$j6)=>{var PXA=u6("child_process"),Ji1=JXA(),Mi1=XXA();function WXA(A,q,K){let Y=Ji1(A,q,K),z=PXA.spawn(Y.command,Y.args,Y.options);return Mi1.hookChildProcess(z,Y),z}function GkK(A,q,K){let Y=Ji1(A,q,K),z=PXA.spawnSync(Y.command,Y.args,Y.options);return z.error=z.error||Mi1.verifyENOENTSync(z.status,Y),z}$j6.exports=WXA;$j6.exports.spawn=WXA;$j6.exports.sync=GkK;$j6.exports._parse=Ji1;$j6.exports._enoent=Mi1});function Xi1(A){let q=typeof A==="string"?`
`:`
`.charCodeAt(),K=typeof A==="string"?"\r":"\r".charCodeAt();if(A[A.length-1]===q)A=A.slice(0,-1);if(A[A.length-1]===K)A=A.slice(0,-1);return A}function EA1(A={}){let{env:q=process.env,platform:K=process.platform}=A;if(K!=="win32")return"PATH";return Object.keys(q).reverse().find((Y)=>Y.toUpperCase()==="PATH")||"Path"}import LA1 from"node:process";import KS6 from"node:path";import{fileURLToPath as GXA}from"node:url";var ZkK=({cwd:A=LA1.cwd(),path:q=LA1.env[EA1()],preferLocal:K=!0,execPath:Y=LA1.execPath,addExecPath:z=!0}={})=>{let w=A instanceof URL?GXA(A):A,_=KS6.resolve(w),$=[];if(K)fkK($,_);if(z)TkK($,Y,_);return[...$,q].join(KS6.delimiter)},fkK=(A,q)=>{let K;while(K!==q)A.push(KS6.join(q,"node_modules/.bin")),K=q,q=KS6.resolve(q,"..")},TkK=(A,q,K)=>{let Y=q instanceof URL?GXA(q):q;A.push(KS6.resolve(K,Y,".."))},ZXA=({env:A=LA1.env,...q}={})=>{A={...A};let K=EA1({env:A});return q.path=A[K],A[K]=ZkK(q),A};var fXA=()=>{};function Pi1(A,q,{ignoreNonConfigurable:K=!1}={}){let{name:Y}=A;for(let z of Reflect.ownKeys(q))vkK(A,q,z,K);return NkK(A,q),ykK(A,q,Y),A}var vkK=(A,q,K,Y)=>{if(K==="length"||K==="prototype")return;if(K==="arguments"||K==="caller")return;let z=Object.getOwnPropertyDescriptor(A,K),w=Object.getOwnPropertyDescriptor(q,K);if(!VkK(z,w)&&Y)return;Object.defineProperty(A,K,w)},VkK=function(A,q){return A===void 0||A.configurable||A.writable===q.writable&&A.enumerable===q.enumerable&&A.configurable===q.configurable&&(A.writable||A.value===q.value)},NkK=(A,q)=>{let K=Object.getPrototypeOf(q);if(K===Object.getPrototypeOf(A))return;Object.setPrototypeOf(A,K)},kkK=(A,q)=>`/* Wrapped ${A}*/
${q}`,EkK,LkK,ykK=(A,q,K)=>{let Y=K===""?"":`with ${K.trim()}() `,z=kkK.bind(null,Y,q.toString());Object.defineProperty(z,"name",LkK),Object.defineProperty(A,"toString",{...EkK,value:z})};var TXA=E(()=>{EkK=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),LkK=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name")});var yA1,vXA=(A,q={})=>{if(typeof A!=="function")throw TypeError("Expected a function");let K,Y=0,z=A.displayName||A.name||"<anonymous>",w=function(..._){if(yA1.set(w,++Y),Y===1)K=A.apply(this,_),A=null;else if(q.throw===!0)throw Error(`Function \`${z}\` can only be called once`);return K};return Pi1(w,A),yA1.set(w,Y),w},VXA;var NXA=E(()=>{TXA();yA1=new WeakMap;vXA.callCount=(A)=>{if(!yA1.has(A))throw Error(`The given function \`${A.name}\` is not wrapped by the \`onetime\` package`);return yA1.get(A)};VXA=vXA});var kXA=()=>{let A=Wi1-EXA+1;return Array.from({length:A},RkK)},RkK=(A,q)=>({name:`SIGRT${q+1}`,number:EXA+q,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),EXA=34,Wi1=64;var LXA;var yXA=E(()=>{LXA=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}]});import{constants as SkK}from"node:os";var Gi1=()=>{let A=kXA();return[...LXA,...A].map(hkK)},hkK=({name:A,number:q,description:K,action:Y,forced:z=!1,standard:w})=>{let{signals:{[A]:_}}=SkK,$=_!==void 0;return{name:A,number:$?_:q,description:K,supported:$,action:Y,forced:z,standard:w}};var RXA=E(()=>{yXA()});import{constants as CkK}from"node:os";var IkK=()=>{let A=Gi1();return Object.fromEntries(A.map(xkK))},xkK=({name:A,number:q,description:K,supported:Y,action:z,forced:w,standard:_})=>[A,{name:A,number:q,description:K,supported:Y,action:z,forced:w,standard:_}],SXA,bkK=()=>{let A=Gi1(),q=Wi1+1,K=Array.from({length:q},(Y,z)=>ukK(z,A));return Object.assign({},...K)},ukK=(A,q)=>{let K=mkK(A,q);if(K===void 0)return{};let{name:Y,description:z,supported:w,action:_,forced:$,standard:O}=K;return{[A]:{name:Y,number:A,description:z,supported:w,action:_,forced:$,standard:O}}},mkK=(A,q)=>{let K=q.find(({name:Y})=>CkK.signals[Y]===A);if(K!==void 0)return K;return q.find((Y)=>Y.number===A)},_zw;var hXA=E(()=>{RXA();SXA=IkK(),_zw=bkK()});import BkK from"node:process";var gkK=({timedOut:A,timeout:q,errorCode:K,signal:Y,signalDescription:z,exitCode:w,isCanceled:_})=>{if(A)return`timed out after ${q} milliseconds`;if(_)return"was canceled";if(K!==void 0)return`failed with ${K}`;if(Y!==void 0)return`was killed with ${Y} (${z})`;if(w!==void 0)return`failed with exit code ${w}`;return"failed"},YS6=({stdout:A,stderr:q,all:K,error:Y,signal:z,exitCode:w,command:_,escapedCommand:$,timedOut:O,isCanceled:H,killed:j,parsed:{options:{timeout:J,cwd:M=BkK.cwd()}}})=>{w=w===null?void 0:w,z=z===null?void 0:z;let D=z===void 0?void 0:SXA[z].description,X=Y&&Y.code,W=`Command ${gkK({timedOut:O,timeout:J,errorCode:X,signal:z,signalDescription:D,exitCode:w,isCanceled:H})}: ${_}`,G=Object.prototype.toString.call(Y)==="[object Error]",Z=G?`${W}
${Y.message}`:W,f=[Z,q,A].filter(Boolean).join(`
`);if(G)Y.originalMessage=Y.message,Y.message=f;else Y=Error(f);if(Y.shortMessage=Z,Y.command=_,Y.escapedCommand=$,Y.exitCode=w,Y.signal=z,Y.signalDescription=D,Y.stdout=A,Y.stderr=q,Y.cwd=M,K!==void 0)Y.all=K;if("bufferedData"in Y)delete Y.bufferedData;return Y.failed=!0,Y.timedOut=Boolean(O),Y.isCanceled=H,Y.killed=j&&!O,Y};var CXA=E(()=>{hXA()});var RA1,pkK=(A)=>RA1.some((q)=>A[q]!==void 0),IXA=(A)=>{if(!A)return;let{stdio:q}=A;if(q===void 0)return RA1.map((Y)=>A[Y]);if(pkK(A))throw Error(`It's not possible to provide \`stdio\` in combination with one of ${RA1.map((Y)=>`\`${Y}\``).join(", ")}`);if(typeof q==="string")return q;if(!Array.isArray(q))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof q}\``);let K=Math.max(q.length,RA1.length);return Array.from({length:K},(Y,z)=>q[z])};var xXA=E(()=>{RA1=["stdin","stdout","stderr"]});var E46;var bXA=E(()=>{E46=[];E46.push("SIGHUP","SIGINT","SIGTERM");if(process.platform!=="win32")E46.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")E46.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")});class uXA{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(fi1[Zi1])return fi1[Zi1];FkK(fi1,Zi1,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(A,q){this.listeners[A].push(q)}removeListener(A,q){let K=this.listeners[A],Y=K.indexOf(q);if(Y===-1)return;if(Y===0&&K.length===1)K.length=0;else K.splice(Y,1)}emit(A,q,K){if(this.emitted[A])return!1;this.emitted[A]=!0;let Y=!1;for(let z of this.listeners[A])Y=z(q,K)===!0||Y;if(A==="exit")Y=this.emit("afterExit",q,K)||Y;return Y}}class vi1{}var SA1=(A)=>!!A&&typeof A==="object"&&typeof A.removeListener==="function"&&typeof A.emit==="function"&&typeof A.reallyExit==="function"&&typeof A.listeners==="function"&&typeof A.kill==="function"&&typeof A.pid==="number"&&typeof A.on==="function",Zi1,fi1,FkK,QkK=(A)=>{return{onExit(q,K){return A.onExit(q,K)},load(){return A.load()},unload(){return A.unload()}}},mXA,BXA,Ti1,Oj6,Xzw,Pzw;var hA1=E(()=>{bXA();Zi1=Symbol.for("signal-exit emitter"),fi1=globalThis,FkK=Object.defineProperty.bind(Object);mXA=class mXA extends vi1{onExit(){return()=>{}}load(){}unload(){}};BXA=class BXA extends vi1{#A=Ti1.platform==="win32"?"SIGINT":"SIGHUP";#q=new uXA;#K;#z;#Y;#_={};#w=!1;constructor(A){super();this.#K=A,this.#_={};for(let q of E46)this.#_[q]=()=>{let K=this.#K.listeners(q),{count:Y}=this.#q,z=A;if(typeof z.__signal_exit_emitter__==="object"&&typeof z.__signal_exit_emitter__.count==="number")Y+=z.__signal_exit_emitter__.count;if(K.length===Y){this.unload();let w=this.#q.emit("exit",null,q),_=q==="SIGHUP"?this.#A:q;if(!w)A.kill(A.pid,_)}};this.#Y=A.reallyExit,this.#z=A.emit}onExit(A,q){if(!SA1(this.#K))return()=>{};if(this.#w===!1)this.load();let K=q?.alwaysLast?"afterExit":"exit";return this.#q.on(K,A),()=>{if(this.#q.removeListener(K,A),this.#q.listeners.exit.length===0&&this.#q.listeners.afterExit.length===0)this.unload()}}load(){if(this.#w)return;this.#w=!0,this.#q.count+=1;for(let A of E46)try{let q=this.#_[A];if(q)this.#K.on(A,q)}catch(q){}this.#K.emit=(A,...q)=>{return this.#H(A,...q)},this.#K.reallyExit=(A)=>{return this.#O(A)}}unload(){if(!this.#w)return;this.#w=!1,E46.forEach((A)=>{let q=this.#_[A];if(!q)throw Error("Listener not defined for signal: "+A);try{this.#K.removeListener(A,q)}catch(K){}}),this.#K.emit=this.#z,this.#K.reallyExit=this.#Y,this.#q.count-=1}#O(A){if(!SA1(this.#K))return 0;return this.#K.exitCode=A||0,this.#q.emit("exit",this.#K.exitCode,null),this.#Y.call(this.#K,this.#K.exitCode)}#H(A,...q){let K=this.#z;if(A==="exit"&&SA1(this.#K)){if(typeof q[0]==="number")this.#K.exitCode=q[0];let Y=K.call(this.#K,A,...q);return this.#q.emit("exit",this.#K.exitCode,null),Y}else return K.call(this.#K,A,...q)}};Ti1=globalThis.process,{onExit:Oj6,load:Xzw,unload:Pzw}=QkK(SA1(Ti1)?new BXA(Ti1):new mXA)});import UkK from"node:os";var dkK=5000,gXA=(A,q="SIGTERM",K={})=>{let Y=A(q);return ckK(A,q,K,Y),Y},ckK=(A,q,K,Y)=>{if(!lkK(q,K,Y))return;let z=nkK(K),w=setTimeout(()=>{A("SIGKILL")},z);if(w.unref)w.unref()},lkK=(A,{forceKillAfterTimeout:q},K)=>ikK(A)&&q!==!1&&K,ikK=(A)=>A===UkK.constants.signals.SIGTERM||typeof A==="string"&&A.toUpperCase()==="SIGTERM",nkK=({forceKillAfterTimeout:A=!0})=>{if(A===!0)return dkK;if(!Number.isFinite(A)||A<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${A}\` (${typeof A})`);return A},pXA=(A,q)=>{if(A.kill())q.isCanceled=!0},rkK=(A,q,K)=>{A.kill(q),K(Object.assign(Error("Timed out"),{timedOut:!0,signal:q}))},FXA=(A,{timeout:q,killSignal:K="SIGTERM"},Y)=>{if(q===0||q===void 0)return Y;let z,w=new Promise(($,O)=>{z=setTimeout(()=>{rkK(A,K,O)},q)}),_=Y.finally(()=>{clearTimeout(z)});return Promise.race([w,_])},QXA=({timeout:A})=>{if(A!==void 0&&(!Number.isFinite(A)||A<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${A}\` (${typeof A})`)},UXA=async(A,{cleanup:q,detached:K},Y)=>{if(!q||K)return Y;let z=Oj6(()=>{A.kill()});return Y.finally(()=>{z()})};var dXA=E(()=>{hA1()});function CA1(A){return A!==null&&typeof A==="object"&&typeof A.pipe==="function"}function Vi1(A){return CA1(A)&&A.writable!==!1&&typeof A._write==="function"&&typeof A._writableState==="object"}import{createWriteStream as okK}from"node:fs";import{ChildProcess as akK}from"node:child_process";var skK=(A)=>A instanceof akK&&typeof A.then==="function",Ni1=(A,q,K)=>{if(typeof K==="string")return A[q].pipe(okK(K)),A;if(Vi1(K))return A[q].pipe(K),A;if(!skK(K))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!Vi1(K.stdin))throw TypeError("The target child process's stdin must be available.");return A[q].pipe(K.stdin),K},cXA=(A)=>{if(A.stdout!==null)A.pipeStdout=Ni1.bind(void 0,A,"stdout");if(A.stderr!==null)A.pipeStderr=Ni1.bind(void 0,A,"stderr");if(A.all!==void 0)A.pipeAll=Ni1.bind(void 0,A,"all")};var lXA=()=>{};var zS6=async(A,{init:q,convertChunk:K,getSize:Y,truncateChunk:z,addChunk:w,getFinalChunk:_,finalize:$},{maxBuffer:O=Number.POSITIVE_INFINITY}={})=>{if(!ekK(A))throw Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");let H=q();H.length=0;try{for await(let j of A){let J=AEK(j),M=K[J](j,H);rXA({convertedChunk:M,state:H,getSize:Y,truncateChunk:z,addChunk:w,maxBuffer:O})}return tkK({state:H,convertChunk:K,getSize:Y,truncateChunk:z,addChunk:w,getFinalChunk:_,maxBuffer:O}),$(H)}catch(j){throw j.bufferedData=$(H),j}},tkK=({state:A,getSize:q,truncateChunk:K,addChunk:Y,getFinalChunk:z,maxBuffer:w})=>{let _=z(A);if(_!==void 0)rXA({convertedChunk:_,state:A,getSize:q,truncateChunk:K,addChunk:Y,maxBuffer:w})},rXA=({convertedChunk:A,state:q,getSize:K,truncateChunk:Y,addChunk:z,maxBuffer:w})=>{let _=K(A),$=q.length+_;if($<=w){iXA(A,q,z,$);return}let O=Y(A,w-q.length);if(O!==void 0)iXA(O,q,z,w);throw new ki1},iXA=(A,q,K,Y)=>{q.contents=K(A,q,Y),q.length=Y},ekK=(A)=>typeof A==="object"&&A!==null&&typeof A[Symbol.asyncIterator]==="function",AEK=(A)=>{let q=typeof A;if(q==="string")return"string";if(q!=="object"||A===null)return"others";if(globalThis.Buffer?.isBuffer(A))return"buffer";let K=nXA.call(A);if(K==="[object ArrayBuffer]")return"arrayBuffer";if(K==="[object DataView]")return"dataView";if(Number.isInteger(A.byteLength)&&Number.isInteger(A.byteOffset)&&nXA.call(A.buffer)==="[object ArrayBuffer]")return"typedArray";return"others"},nXA,ki1;var wS6=E(()=>{({toString:nXA}=Object.prototype);ki1=class ki1 extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}});var Ei1=(A)=>A,Li1=()=>{return},yi1=({contents:A})=>A,IA1=(A)=>{throw Error(`Streams in object mode are not supported: ${String(A)}`)},xA1=(A)=>A.length;var oXA=E(()=>{wS6()});async function Ri1(A,q){return zS6(A,HEK,q)}var qEK=()=>({contents:new ArrayBuffer(0)}),KEK=(A)=>YEK.encode(A),YEK,aXA=(A)=>new Uint8Array(A),sXA=(A)=>new Uint8Array(A.buffer,A.byteOffset,A.byteLength),zEK=(A,q)=>A.slice(0,q),wEK=(A,{contents:q,length:K},Y)=>{let z=APA()?$EK(q,Y):_EK(q,Y);return new Uint8Array(z).set(A,K),z},_EK=(A,q)=>{if(q<=A.byteLength)return A;let K=new ArrayBuffer(eXA(q));return new Uint8Array(K).set(new Uint8Array(A),0),K},$EK=(A,q)=>{if(q<=A.maxByteLength)return A.resize(q),A;let K=new ArrayBuffer(q,{maxByteLength:eXA(q)});return new Uint8Array(K).set(new Uint8Array(A),0),K},eXA=(A)=>tXA**Math.ceil(Math.log(A)/Math.log(tXA)),tXA=2,OEK=({contents:A,length:q})=>APA()?A:A.slice(0,q),APA=()=>("resize"in ArrayBuffer.prototype),HEK;var Si1=E(()=>{wS6();YEK=new TextEncoder,HEK={init:qEK,convertChunk:{string:KEK,buffer:aXA,arrayBuffer:aXA,dataView:sXA,typedArray:sXA,others:IA1},getSize:xA1,truncateChunk:zEK,addChunk:wEK,getFinalChunk:Li1,finalize:OEK}});async function bA1(A,q){if(!("Buffer"in globalThis))throw Error("getStreamAsBuffer() is only supported in Node.js");try{return qPA(await Ri1(A,q))}catch(K){if(K.bufferedData!==void 0)K.bufferedData=qPA(K.bufferedData);throw K}}var qPA=(A)=>globalThis.Buffer.from(A);var KPA=E(()=>{Si1()});async function hi1(A,q){return zS6(A,XEK,q)}var jEK=()=>({contents:"",textDecoder:new TextDecoder}),uA1=(A,{textDecoder:q})=>q.decode(A,{stream:!0}),JEK=(A,{contents:q})=>q+A,MEK=(A,q)=>A.slice(0,q),DEK=({textDecoder:A})=>{let q=A.decode();return q===""?void 0:q},XEK;var YPA=E(()=>{wS6();XEK={init:jEK,convertChunk:{string:Ei1,buffer:uA1,arrayBuffer:uA1,dataView:uA1,typedArray:uA1,others:IA1},getSize:xA1,truncateChunk:MEK,addChunk:JEK,getFinalChunk:DEK,finalize:yi1}});var zPA=E(()=>{oXA();Si1();KPA();YPA();wS6()});var _PA=h((lzw,wPA)=>{var{PassThrough:PEK}=u6("stream");wPA.exports=function(){var A=[],q=new PEK({objectMode:!0});return q.setMaxListeners(0),q.add=K,q.isEmpty=Y,q.on("unpipe",z),Array.prototype.slice.call(arguments).forEach(K),q;function K(w){if(Array.isArray(w))return w.forEach(K),this;return A.push(w),w.once("end",z.bind(null,w)),w.once("error",q.emit.bind(q,"error")),w.pipe(q,{end:!1}),this}function Y(){return A.length==0}function z(w){if(A=A.filter(function(_){return _!==w}),!A.length&&q.readable)q.end()}}});import{createReadStream as WEK,readFileSync as GEK}from"node:fs";import{setTimeout as ZEK}from"node:timers/promises";var $PA,OPA=(A)=>{if(A!==void 0)throw TypeError("The `input` and `inputFile` options cannot be both set.")},fEK=({input:A,inputFile:q})=>{if(typeof q!=="string")return A;return OPA(A),GEK(q)},HPA=(A)=>{let q=fEK(A);if(CA1(q))throw TypeError("The `input` option cannot be a stream in sync mode");return q},TEK=({input:A,inputFile:q})=>{if(typeof q!=="string")return A;return OPA(A),WEK(q)},jPA=(A,q)=>{let K=TEK(q);if(K===void 0)return;if(CA1(K))K.pipe(A.stdin);else A.stdin.end(K)},JPA=(A,{all:q})=>{if(!q||!A.stdout&&!A.stderr)return;let K=$PA.default();if(A.stdout)K.add(A.stdout);if(A.stderr)K.add(A.stderr);return K},Ci1=async(A,q)=>{if(!A||q===void 0)return;await ZEK(0),A.destroy();try{return await q}catch(K){return K.bufferedData}},Ii1=(A,{encoding:q,buffer:K,maxBuffer:Y})=>{if(!A||!K)return;if(q==="utf8"||q==="utf-8")return hi1(A,{maxBuffer:Y});if(q===null||q==="buffer")return bA1(A,{maxBuffer:Y});return vEK(A,Y,q)},vEK=async(A,q,K)=>{return(await bA1(A,{maxBuffer:q})).toString(K)},MPA=async({stdout:A,stderr:q,all:K},{encoding:Y,buffer:z,maxBuffer:w},_)=>{let $=Ii1(A,{encoding:Y,buffer:z,maxBuffer:w}),O=Ii1(q,{encoding:Y,buffer:z,maxBuffer:w}),H=Ii1(K,{encoding:Y,buffer:z,maxBuffer:w*2});try{return await Promise.all([_,$,O,H])}catch(j){return Promise.all([{error:j,signal:j.signal,timedOut:j.timedOut},Ci1(A,$),Ci1(q,O),Ci1(K,H)])}};var DPA=E(()=>{zPA();$PA=q6(_PA(),1)});var VEK,NEK,xi1=(A,q)=>{for(let[K,Y]of NEK){let z=typeof q==="function"?(...w)=>Reflect.apply(Y.value,q(),w):Y.value.bind(q);Reflect.defineProperty(A,K,{...Y,value:z})}},XPA=(A)=>new Promise((q,K)=>{if(A.on("exit",(Y,z)=>{q({exitCode:Y,signal:z})}),A.on("error",(Y)=>{K(Y)}),A.stdin)A.stdin.on("error",(Y)=>{K(Y)})});var PPA=E(()=>{VEK=(async()=>{})().constructor.prototype,NEK=["then","catch","finally"].map((A)=>[A,Reflect.getOwnPropertyDescriptor(VEK,A)])});import{Buffer as kEK}from"node:buffer";import{ChildProcess as EEK}from"node:child_process";var ZPA=(A,q=[])=>{if(!Array.isArray(q))return[A];return[A,...q]},LEK,yEK=(A)=>{if(typeof A!=="string"||LEK.test(A))return A;return`"${A.replaceAll('"',"\\\"")}"`},bi1=(A,q)=>ZPA(A,q).join(" "),ui1=(A,q)=>ZPA(A,q).map((K)=>yEK(K)).join(" "),REK,WPA=(A)=>{let q=typeof A;if(q==="string")return A;if(q==="number")return String(A);if(q==="object"&&A!==null&&!(A instanceof EEK)&&"stdout"in A){let K=typeof A.stdout;if(K==="string")return A.stdout;if(kEK.isBuffer(A.stdout))return A.stdout.toString();throw TypeError(`Unexpected "${K}" stdout in template expression`)}throw TypeError(`Unexpected "${q}" in template expression`)},GPA=(A,q,K)=>K||A.length===0||q.length===0?[...A,...q]:[...A.slice(0,-1),`${A.at(-1)}${q[0]}`,...q.slice(1)],SEK=({templates:A,expressions:q,tokens:K,index:Y,template:z})=>{let w=z??A.raw[Y],_=w.split(REK).filter(Boolean),$=GPA(K,_,w.startsWith(" "));if(Y===q.length)return $;let O=q[Y],H=Array.isArray(O)?O.map((j)=>WPA(j)):[WPA(O)];return GPA($,H,w.endsWith(" "))},mi1=(A,q)=>{let K=[];for(let[Y,z]of A.entries())K=SEK({templates:A,expressions:q,tokens:K,index:Y,template:z});return K};var fPA=E(()=>{LEK=/^[\w.-]+$/,REK=/ +/g});import{debuglog as hEK}from"node:util";import CEK from"node:process";var TPA,mA1=(A,q)=>String(A).padStart(q,"0"),IEK=()=>{let A=new Date;return`${mA1(A.getHours(),2)}:${mA1(A.getMinutes(),2)}:${mA1(A.getSeconds(),2)}.${mA1(A.getMilliseconds(),3)}`},Bi1=(A,{verbose:q})=>{if(!q)return;CEK.stderr.write(`[${IEK()}] ${A}
`)};var vPA=E(()=>{TPA=hEK("execa").enabled});import{Buffer as xEK}from"node:buffer";import bEK from"node:path";import gi1 from"node:child_process";import BA1 from"node:process";function HY(A,q,K){let Y=kPA(A,q,K),z=bi1(A,q),w=ui1(A,q);Bi1(w,Y.options),QXA(Y.options);let _;try{_=gi1.spawn(Y.file,Y.args,Y.options)}catch(D){let X=new gi1.ChildProcess,P=Promise.reject(YS6({error:D,stdout:"",stderr:"",all:"",command:z,escapedCommand:w,parsed:Y,timedOut:!1,isCanceled:!1,killed:!1}));return xi1(X,P),X}let $=XPA(_),O=FXA(_,Y.options,$),H=UXA(_,Y.options,O),j={isCanceled:!1};_.kill=gXA.bind(null,_.kill.bind(_)),_.cancel=pXA.bind(null,_,j);let M=VXA(async()=>{let[{error:D,exitCode:X,signal:P,timedOut:W},G,Z,f]=await MPA(_,Y.options,H),v=_S6(Y.options,G),V=_S6(Y.options,Z),N=_S6(Y.options,f);if(D||X!==0||P!==null){let L=YS6({error:D,exitCode:X,signal:P,stdout:v,stderr:V,all:N,command:z,escapedCommand:w,parsed:Y,timedOut:W,isCanceled:j.isCanceled||(Y.options.signal?Y.options.signal.aborted:!1),killed:_.killed});if(!Y.options.reject)return L;throw L}return{command:z,escapedCommand:w,exitCode:0,stdout:v,stderr:V,all:N,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return jPA(_,Y.options),_.all=JPA(_,Y.options),cXA(_),xi1(_,M),_}function L46(A,q,K){let Y=kPA(A,q,K),z=bi1(A,q),w=ui1(A,q);Bi1(w,Y.options);let _=HPA(Y.options),$;try{$=gi1.spawnSync(Y.file,Y.args,{...Y.options,input:_})}catch(j){throw YS6({error:j,stdout:"",stderr:"",all:"",command:z,escapedCommand:w,parsed:Y,timedOut:!1,isCanceled:!1,killed:!1})}let O=_S6(Y.options,$.stdout,$.error),H=_S6(Y.options,$.stderr,$.error);if($.error||$.status!==0||$.signal!==null){let j=YS6({stdout:O,stderr:H,error:$.error,signal:$.signal,exitCode:$.status,command:z,escapedCommand:w,parsed:Y,timedOut:$.error&&$.error.code==="ETIMEDOUT",isCanceled:!1,killed:$.signal!==null});if(!Y.options.reject)return j;throw j}return{command:z,escapedCommand:w,exitCode:0,stdout:O,stderr:H,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}function EPA(A){function q(K,...Y){if(!Array.isArray(K))return EPA({...A,...K});let[z,...w]=mi1(K,Y);return HY(z,w,VPA(A))}return q.sync=(K,...Y)=>{if(!Array.isArray(K))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[z,...w]=mi1(K,Y);return L46(z,w,VPA(A))},q}var NPA,uEK=1e8,mEK=({env:A,extendEnv:q,preferLocal:K,localDir:Y,execPath:z})=>{let w=q?{...BA1.env,...A}:A;if(K)return ZXA({env:w,cwd:Y,execPath:z});return w},kPA=(A,q,K={})=>{let Y=NPA.default._parse(A,q,K);if(A=Y.command,q=Y.args,K=Y.options,K={maxBuffer:uEK,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:K.cwd||BA1.cwd(),execPath:BA1.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:TPA,...K},K.env=mEK(K),K.stdio=IXA(K),BA1.platform==="win32"&&bEK.basename(A,".exe")==="cmd")q.unshift("/q");return{file:A,args:q,options:K,parsed:Y}},_S6=(A,q,K)=>{if(typeof q!=="string"&&!xEK.isBuffer(q))return K===void 0?void 0:"";if(A.stripFinalNewline)return Xi1(q);return q},BEK=({input:A,inputFile:q,stdio:K})=>A===void 0&&q===void 0&&K===void 0?{stdin:"inherit"}:{},VPA=(A={})=>({preferLocal:!0,...BEK(A),...A}),vww;var eZ=E(()=>{fXA();NXA();CXA();xXA();dXA();lXA();DPA();PPA();fPA();vPA();NPA=q6(Di1(),1);vww=EPA()});import{execSync as gEK}from"child_process";function za(A,q){let Y=[];try{const K=FY(Y,iw`execSync: ${A.slice(0,100)}`,0);return gEK(A,q)}catch(z){var w=z,_=1}finally{QY(Y,w,_)}}var gA1=E(()=>{a1()});async function pEK(A){if(process.platform==="win32"){let K=await HY(`where.exe ${A}`,{shell:!0,stderr:"ignore",reject:!1});if(K.exitCode!==0||!K.stdout)return null;return K.stdout.trim().split(/\r?\n/)[0]||null}let q=await HY(`which ${A}`,{shell:!0,stderr:"ignore",reject:!1});if(q.exitCode!==0||!q.stdout)return null;return q.stdout.trim()}function FEK(A){if(process.platform==="win32")try{return za(`where.exe ${A}`,{encoding:"utf-8",stdio:["ignore","pipe","ignore"]}).toString().trim().split(/\r?\n/)[0]||null}catch{return null}try{return za(`which ${A}`,{encoding:"utf-8",stdio:["ignore","pipe","ignore"]}).toString().trim()||null}catch{return null}}var pi1,z0,pA1;var Om=E(()=>{eZ();gA1();pi1=typeof Bun<"u"&&typeof Bun.which==="function"?Bun.which:null,z0=pi1?async(A)=>pi1(A):pEK,pA1=pi1??FEK});function $S6(A,q){return function(){return A.apply(q,arguments)}}function UEK(A){return A!==null&&!OS6(A)&&A.constructor!==null&&!OS6(A.constructor)&&aN(A.constructor.isBuffer)&&A.constructor.isBuffer(A)}function dEK(A){let q;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)q=ArrayBuffer.isView(A);else q=A&&A.buffer&&yPA(A.buffer);return q}function HS6(A,q,{allOwnKeys:K=!1}={}){if(A===null||typeof A>"u")return;let Y,z;if(typeof A!=="object")A=[A];if(Hj6(A))for(Y=0,z=A.length;Y<z;Y++)q.call(null,A[Y],Y,A);else{let w=K?Object.getOwnPropertyNames(A):Object.keys(A),_=w.length,$;for(Y=0;Y<_;Y++)$=w[Y],q.call(null,A[$],$,A)}}function SPA(A,q){q=q.toLowerCase();let K=Object.keys(A),Y=K.length,z;while(Y-- >0)if(z=K[Y],q===z.toLowerCase())return z;return null}function Fi1(){let{caseless:A}=hPA(this)&&this||{},q={},K=(Y,z)=>{let w=A&&SPA(q,z)||z;if(FA1(q[w])&&FA1(Y))q[w]=Fi1(q[w],Y);else if(FA1(Y))q[w]=Fi1({},Y);else if(Hj6(Y))q[w]=Y.slice();else q[w]=Y};for(let Y=0,z=arguments.length;Y<z;Y++)arguments[Y]&&HS6(arguments[Y],K);return q}function TLK(A){return!!(A&&aN(A.append)&&A[Symbol.toStringTag]==="FormData"&&A[Symbol.iterator])}var QEK,Qi1,QA1,NC=(A)=>{return A=A.toLowerCase(),(q)=>QA1(q)===A},UA1=(A)=>(q)=>typeof q===A,Hj6,OS6,yPA,cEK,aN,RPA,dA1=(A)=>A!==null&&typeof A==="object",lEK=(A)=>A===!0||A===!1,FA1=(A)=>{if(QA1(A)!=="object")return!1;let q=Qi1(A);return(q===null||q===Object.prototype||Object.getPrototypeOf(q)===null)&&!(Symbol.toStringTag in A)&&!(Symbol.iterator in A)},iEK,nEK,rEK,oEK,aEK=(A)=>dA1(A)&&aN(A.pipe),sEK=(A)=>{let q;return A&&(typeof FormData==="function"&&A instanceof FormData||aN(A.append)&&((q=QA1(A))==="formdata"||q==="object"&&aN(A.toString)&&A.toString()==="[object FormData]"))},tEK,eEK,ALK,qLK,KLK,YLK=(A)=>A.trim?A.trim():A.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),y46,hPA=(A)=>!OS6(A)&&A!==y46,zLK=(A,q,K,{allOwnKeys:Y}={})=>{return HS6(q,(z,w)=>{if(K&&aN(z))A[w]=$S6(z,K);else A[w]=z},{allOwnKeys:Y}),A},wLK=(A)=>{if(A.charCodeAt(0)===65279)A=A.slice(1);return A},_LK=(A,q,K,Y)=>{A.prototype=Object.create(q.prototype,Y),A.prototype.constructor=A,Object.defineProperty(A,"super",{value:q.prototype}),K&&Object.assign(A.prototype,K)},$LK=(A,q,K,Y)=>{let z,w,_,$={};if(q=q||{},A==null)return q;do{z=Object.getOwnPropertyNames(A),w=z.length;while(w-- >0)if(_=z[w],(!Y||Y(_,A,q))&&!$[_])q[_]=A[_],$[_]=!0;A=K!==!1&&Qi1(A)}while(A&&(!K||K(A,q))&&A!==Object.prototype);return q},OLK=(A,q,K)=>{if(A=String(A),K===void 0||K>A.length)K=A.length;K-=q.length;let Y=A.indexOf(q,K);return Y!==-1&&Y===K},HLK=(A)=>{if(!A)return null;if(Hj6(A))return A;let q=A.length;if(!RPA(q))return null;let K=Array(q);while(q-- >0)K[q]=A[q];return K},jLK,JLK=(A,q)=>{let Y=(A&&A[Symbol.iterator]).call(A),z;while((z=Y.next())&&!z.done){let w=z.value;q.call(A,w[0],w[1])}},MLK=(A,q)=>{let K,Y=[];while((K=A.exec(q))!==null)Y.push(K);return Y},DLK,XLK=(A)=>{return A.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(K,Y,z){return Y.toUpperCase()+z})},LPA,PLK,CPA=(A,q)=>{let K=Object.getOwnPropertyDescriptors(A),Y={};HS6(K,(z,w)=>{let _;if((_=q(z,w,A))!==!1)Y[w]=_||z}),Object.defineProperties(A,Y)},WLK=(A)=>{CPA(A,(q,K)=>{if(aN(A)&&["arguments","caller","callee"].indexOf(K)!==-1)return!1;let Y=A[K];if(!aN(Y))return;if(q.enumerable=!1,"writable"in q){q.writable=!1;return}if(!q.set)q.set=()=>{throw Error("Can not rewrite read-only method '"+K+"'")}})},GLK=(A,q)=>{let K={},Y=(z)=>{z.forEach((w)=>{K[w]=!0})};return Hj6(A)?Y(A):Y(String(A).split(q)),K},ZLK=()=>{},fLK=(A,q)=>{return A!=null&&Number.isFinite(A=+A)?A:q},vLK=(A)=>{let q=[,,,,,,,,,,],K=(Y,z)=>{if(dA1(Y)){if(q.indexOf(Y)>=0)return;if(!("toJSON"in Y)){q[z]=Y;let w=Hj6(Y)?[]:{};return HS6(Y,(_,$)=>{let O=K(_,z+1);!OS6(O)&&(w[$]=O)}),q[z]=void 0,w}}return Y};return K(A,0)},VLK,NLK=(A)=>A&&(dA1(A)||aN(A))&&aN(A.then)&&aN(A.catch),IPA,kLK,A8;var Y_=E(()=>{({toString:QEK}=Object.prototype),{getPrototypeOf:Qi1}=Object,QA1=((A)=>(q)=>{let K=QEK.call(q);return A[K]||(A[K]=K.slice(8,-1).toLowerCase())})(Object.create(null)),{isArray:Hj6}=Array,OS6=UA1("undefined");yPA=NC("ArrayBuffer");cEK=UA1("string"),aN=UA1("function"),RPA=UA1("number"),iEK=NC("Date"),nEK=NC("File"),rEK=NC("Blob"),oEK=NC("FileList"),tEK=NC("URLSearchParams"),[eEK,ALK,qLK,KLK]=["ReadableStream","Request","Response","Headers"].map(NC);y46=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})();jLK=((A)=>{return(q)=>{return A&&q instanceof A}})(typeof Uint8Array<"u"&&Qi1(Uint8Array)),DLK=NC("HTMLFormElement"),LPA=(({hasOwnProperty:A})=>(q,K)=>A.call(q,K))(Object.prototype),PLK=NC("RegExp");VLK=NC("AsyncFunction"),IPA=((A,q)=>{if(A)return setImmediate;return q?((K,Y)=>{return y46.addEventListener("message",({source:z,data:w})=>{if(z===y46&&w===K)Y.length&&Y.shift()()},!1),(z)=>{Y.push(z),y46.postMessage(K,"*")}})(`axios@${Math.random()}`,[]):(K)=>setTimeout(K)})(typeof setImmediate==="function",aN(y46.postMessage)),kLK=typeof queueMicrotask<"u"?queueMicrotask.bind(y46):typeof process<"u"&&process.nextTick||IPA,A8={isArray:Hj6,isArrayBuffer:yPA,isBuffer:UEK,isFormData:sEK,isArrayBufferView:dEK,isString:cEK,isNumber:RPA,isBoolean:lEK,isObject:dA1,isPlainObject:FA1,isReadableStream:eEK,isRequest:ALK,isResponse:qLK,isHeaders:KLK,isUndefined:OS6,isDate:iEK,isFile:nEK,isBlob:rEK,isRegExp:PLK,isFunction:aN,isStream:aEK,isURLSearchParams:tEK,isTypedArray:jLK,isFileList:oEK,forEach:HS6,merge:Fi1,extend:zLK,trim:YLK,stripBOM:wLK,inherits:_LK,toFlatObject:$LK,kindOf:QA1,kindOfTest:NC,endsWith:OLK,toArray:HLK,forEachEntry:JLK,matchAll:MLK,isHTMLForm:DLK,hasOwnProperty:LPA,hasOwnProp:LPA,reduceDescriptors:CPA,freezeMethods:WLK,toObjectSet:GLK,toCamelCase:XLK,noop:ZLK,toFiniteNumber:fLK,findKey:SPA,global:y46,isContextDefined:hPA,isSpecCompliantForm:TLK,toJSONObject:vLK,isAsyncFn:VLK,isThenable:NLK,setImmediate:IPA,asap:kLK}});function jj6(A,q,K,Y,z){if(Error.call(this),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack;if(this.message=A,this.name="AxiosError",q&&(this.code=q),K&&(this.config=K),Y&&(this.request=Y),z)this.response=z,this.status=z.status?z.status:null}var xPA,bPA,G4;var sN=E(()=>{Y_();A8.inherits(jj6,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A8.toJSONObject(this.config),code:this.code,status:this.status}}});xPA=jj6.prototype,bPA={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((A)=>{bPA[A]={value:A}});Object.defineProperties(jj6,bPA);Object.defineProperty(xPA,"isAxiosError",{value:!0});jj6.from=(A,q,K,Y,z,w)=>{let _=Object.create(xPA);return A8.toFlatObject(A,_,function(O){return O!==Error.prototype},($)=>{return $!=="isAxiosError"}),jj6.call(_,A.message,q,K,Y,z),_.cause=A,_.name=A.name,w&&Object.assign(_,w),_};G4=jj6});var BPA=h((uww,mPA)=>{var uPA=u6("stream").Stream,ELK=u6("util");mPA.exports=kC;function kC(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}ELK.inherits(kC,uPA);kC.create=function(A,q){var K=new this;q=q||{};for(var Y in q)K[Y]=q[Y];K.source=A;var z=A.emit;if(A.emit=function(){return K._handleEmit(arguments),z.apply(A,arguments)},A.on("error",function(){}),K.pauseStream)A.pause();return K};Object.defineProperty(kC.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});kC.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};kC.prototype.resume=function(){if(!this._released)this.release();this.source.resume()};kC.prototype.pause=function(){this.source.pause()};kC.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(A){this.emit.apply(this,A)}.bind(this)),this._bufferedEvents=[]};kC.prototype.pipe=function(){var A=uPA.prototype.pipe.apply(this,arguments);return this.resume(),A};kC.prototype._handleEmit=function(A){if(this._released){this.emit.apply(this,A);return}if(A[0]==="data")this.dataSize+=A[1].length,this._checkIfMaxDataSizeExceeded();this._bufferedEvents.push(A)};kC.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded)return;if(this.dataSize<=this.maxDataSize)return;this._maxDataSizeExceeded=!0;var A="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",Error(A))}});var QPA=h((mww,FPA)=>{var LLK=u6("util"),pPA=u6("stream").Stream,gPA=BPA();FPA.exports=_j;function _j(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}LLK.inherits(_j,pPA);_j.create=function(A){var q=new this;A=A||{};for(var K in A)q[K]=A[K];return q};_j.isStreamLike=function(A){return typeof A!=="function"&&typeof A!=="string"&&typeof A!=="boolean"&&typeof A!=="number"&&!Buffer.isBuffer(A)};_j.prototype.append=function(A){var q=_j.isStreamLike(A);if(q){if(!(A instanceof gPA)){var K=gPA.create(A,{maxDataSize:1/0,pauseStream:this.pauseStreams});A.on("data",this._checkDataSize.bind(this)),A=K}if(this._handleErrors(A),this.pauseStreams)A.pause()}return this._streams.push(A),this};_j.prototype.pipe=function(A,q){return pPA.prototype.pipe.call(this,A,q),this.resume(),A};_j.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};_j.prototype._realGetNext=function(){var A=this._streams.shift();if(typeof A>"u"){this.end();return}if(typeof A!=="function"){this._pipeNext(A);return}var q=A;q(function(K){var Y=_j.isStreamLike(K);if(Y)K.on("data",this._checkDataSize.bind(this)),this._handleErrors(K);this._pipeNext(K)}.bind(this))};_j.prototype._pipeNext=function(A){this._currentStream=A;var q=_j.isStreamLike(A);if(q){A.on("end",this._getNext.bind(this)),A.pipe(this,{end:!1});return}var K=A;this.write(K),this._getNext()};_j.prototype._handleErrors=function(A){var q=this;A.on("error",function(K){q._emitError(K)})};_j.prototype.write=function(A){this.emit("data",A)};_j.prototype.pause=function(){if(!this.pauseStreams)return;if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};_j.prototype.resume=function(){if(!this._released)this._released=!0,this.writable=!0,this._getNext();if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};_j.prototype.end=function(){this._reset(),this.emit("end")};_j.prototype.destroy=function(){this._reset(),this.emit("close")};_j.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};_j.prototype._checkDataSize=function(){if(this._updateDataSize(),this.dataSize<=this.maxDataSize)return;var A="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(Error(A))};_j.prototype._updateDataSize=function(){this.dataSize=0;var A=this;if(this._streams.forEach(function(q){if(!q.dataSize)return;A.dataSize+=q.dataSize}),this._currentStream&&this._currentStream.dataSize)this.dataSize+=this._currentStream.dataSize};_j.prototype._emitError=function(A){this._reset(),this.emit("error",A)}});var UPA=h((Bww,yLK)=>{yLK.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}}});var nPA=h((bLK)=>{/*!
 * mime-types
 * Copyright(c) 2014 Jonathan Ong
 * Copyright(c) 2015 Douglas Christopher Wilson
 * MIT Licensed
 */var cA1=UPA(),RLK=u6("path").extname,dPA=/^\s*([^;\s]*)(?:;|\s|$)/,SLK=/^text\//i;bLK.charset=cPA;bLK.charsets={lookup:cPA};bLK.contentType=hLK;bLK.extension=CLK;bLK.extensions=Object.create(null);bLK.lookup=ILK;bLK.types=Object.create(null);xLK(bLK.extensions,bLK.types);function cPA(A){if(!A||typeof A!=="string")return!1;var q=dPA.exec(A),K=q&&cA1[q[1].toLowerCase()];if(K&&K.charset)return K.charset;if(q&&SLK.test(q[1]))return"UTF-8";return!1}function hLK(A){if(!A||typeof A!=="string")return!1;var q=A.indexOf("/")===-1?bLK.lookup(A):A;if(!q)return!1;if(q.indexOf("charset")===-1){var K=bLK.charset(q);if(K)q+="; charset="+K.toLowerCase()}return q}function CLK(A){if(!A||typeof A!=="string")return!1;var q=dPA.exec(A),K=q&&bLK.extensions[q[1].toLowerCase()];if(!K||!K.length)return!1;return K[0]}function ILK(A){if(!A||typeof A!=="string")return!1;var q=RLK("x."+A).toLowerCase().substr(1);if(!q)return!1;return bLK.types[q]||!1}function xLK(A,q){var K=["nginx","apache",void 0,"iana"];Object.keys(cA1).forEach(function(z){var w=cA1[z],_=w.extensions;if(!_||!_.length)return;A[z]=_;for(var $=0;$<_.length;$++){var O=_[$];if(q[O]){var H=K.indexOf(cA1[q[O]].source),j=K.indexOf(w.source);if(q[O]!=="application/octet-stream"&&(H>j||H===j&&q[O].substr(0,12)==="application/"))continue}q[O]=z}})}});var oPA=h((pww,rPA)=>{rPA.exports=gLK;function gLK(A){var q=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(q)q(A);else setTimeout(A,0)}});var ci1=h((Fww,sPA)=>{var aPA=oPA();sPA.exports=pLK;function pLK(A){var q=!1;return aPA(function(){q=!0}),function(Y,z){if(q)A(Y,z);else aPA(function(){A(Y,z)})}}});var li1=h((Qww,tPA)=>{tPA.exports=FLK;function FLK(A){Object.keys(A.jobs).forEach(QLK.bind(A)),A.jobs={}}function QLK(A){if(typeof this.jobs[A]=="function")this.jobs[A]()}});var ii1=h((Uww,A0A)=>{var ePA=ci1(),ULK=li1();A0A.exports=dLK;function dLK(A,q,K,Y){var z=K.keyedList?K.keyedList[K.index]:K.index;K.jobs[z]=cLK(q,z,A[z],function(w,_){if(!(z in K.jobs))return;if(delete K.jobs[z],w)ULK(K);else K.results[z]=_;Y(w,K.results)})}function cLK(A,q,K,Y){var z;if(A.length==2)z=A(K,ePA(Y));else z=A(K,q,ePA(Y));return z}});var ni1=h((dww,q0A)=>{q0A.exports=lLK;function lLK(A,q){var K=!Array.isArray(A),Y={index:0,keyedList:K||q?Object.keys(A):null,jobs:{},results:K?{}:[],size:K?Object.keys(A).length:A.length};if(q)Y.keyedList.sort(K?q:function(z,w){return q(A[z],A[w])});return Y}});var ri1=h((cww,K0A)=>{var iLK=li1(),nLK=ci1();K0A.exports=rLK;function rLK(A){if(!Object.keys(this.jobs).length)return;this.index=this.size,iLK(this),nLK(A)(null,this.results)}});var z0A=h((lww,Y0A)=>{var oLK=ii1(),aLK=ni1(),sLK=ri1();Y0A.exports=tLK;function tLK(A,q,K){var Y=aLK(A);while(Y.index<(Y.keyedList||A).length)oLK(A,q,Y,function(z,w){if(z){K(z,w);return}if(Object.keys(Y.jobs).length===0){K(null,Y.results);return}}),Y.index++;return sLK.bind(Y,K)}});var oi1=h((iww,lA1)=>{var w0A=ii1(),eLK=ni1(),AyK=ri1();lA1.exports=qyK;lA1.exports.ascending=_0A;lA1.exports.descending=KyK;function qyK(A,q,K,Y){var z=eLK(A,K);return w0A(A,q,z,function w(_,$){if(_){Y(_,$);return}if(z.index++,z.index<(z.keyedList||A).length){w0A(A,q,z,w);return}Y(null,z.results)}),AyK.bind(z,Y)}function _0A(A,q){return A<q?-1:A>q?1:0}function KyK(A,q){return-1*_0A(A,q)}});var O0A=h((nww,$0A)=>{var YyK=oi1();$0A.exports=zyK;function zyK(A,q,K){return YyK(A,q,null,K)}});var j0A=h((rww,H0A)=>{H0A.exports={parallel:z0A(),serial:O0A(),serialOrdered:oi1()}});var ai1=h((oww,J0A)=>{J0A.exports=Object});var D0A=h((aww,M0A)=>{M0A.exports=Error});var P0A=h((sww,X0A)=>{X0A.exports=EvalError});var G0A=h((tww,W0A)=>{W0A.exports=RangeError});var f0A=h((eww,Z0A)=>{Z0A.exports=ReferenceError});var v0A=h((A2w,T0A)=>{T0A.exports=SyntaxError});var iA1=h((q2w,V0A)=>{V0A.exports=TypeError});var k0A=h((K2w,N0A)=>{N0A.exports=URIError});var L0A=h((Y2w,E0A)=>{E0A.exports=Math.abs});var R0A=h((z2w,y0A)=>{y0A.exports=Math.floor});var h0A=h((w2w,S0A)=>{S0A.exports=Math.max});var I0A=h((_2w,C0A)=>{C0A.exports=Math.min});var b0A=h(($2w,x0A)=>{x0A.exports=Math.pow});var m0A=h((O2w,u0A)=>{u0A.exports=Math.round});var g0A=h((H2w,B0A)=>{B0A.exports=Number.isNaN||function(q){return q!==q}});var F0A=h((j2w,p0A)=>{var wyK=g0A();p0A.exports=function(q){if(wyK(q)||q===0)return q;return q<0?-1:1}});var U0A=h((J2w,Q0A)=>{Q0A.exports=Object.getOwnPropertyDescriptor});var si1=h((M2w,d0A)=>{var nA1=U0A();if(nA1)try{nA1([],"length")}catch(A){nA1=null}d0A.exports=nA1});var l0A=h((D2w,c0A)=>{var rA1=Object.defineProperty||!1;if(rA1)try{rA1({},"a",{value:1})}catch(A){rA1=!1}c0A.exports=rA1});var ti1=h((X2w,i0A)=>{i0A.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var q={},K=Symbol("test"),Y=Object(K);if(typeof K==="string")return!1;if(Object.prototype.toString.call(K)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(Y)!=="[object Symbol]")return!1;var z=42;q[K]=z;for(var w in q)return!1;if(typeof Object.keys==="function"&&Object.keys(q).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(q).length!==0)return!1;var _=Object.getOwnPropertySymbols(q);if(_.length!==1||_[0]!==K)return!1;if(!Object.prototype.propertyIsEnumerable.call(q,K))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var $=Object.getOwnPropertyDescriptor(q,K);if($.value!==z||$.enumerable!==!0)return!1}return!0}});var o0A=h((P2w,r0A)=>{var n0A=typeof Symbol<"u"&&Symbol,_yK=ti1();r0A.exports=function(){if(typeof n0A!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof n0A("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return _yK()}});var ei1=h((W2w,a0A)=>{a0A.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var An1=h((G2w,s0A)=>{var $yK=ai1();s0A.exports=$yK.getPrototypeOf||null});var AWA=h((Z2w,e0A)=>{var OyK="Function.prototype.bind called on incompatible ",HyK=Object.prototype.toString,jyK=Math.max,JyK="[object Function]",t0A=function(q,K){var Y=[];for(var z=0;z<q.length;z+=1)Y[z]=q[z];for(var w=0;w<K.length;w+=1)Y[w+q.length]=K[w];return Y},MyK=function(q,K){var Y=[];for(var z=K||0,w=0;z<q.length;z+=1,w+=1)Y[w]=q[z];return Y},DyK=function(A,q){var K="";for(var Y=0;Y<A.length;Y+=1)if(K+=A[Y],Y+1<A.length)K+=q;return K};e0A.exports=function(q){var K=this;if(typeof K!=="function"||HyK.apply(K)!==JyK)throw TypeError(OyK+K);var Y=MyK(arguments,1),z,w=function(){if(this instanceof z){var j=K.apply(this,t0A(Y,arguments));if(Object(j)===j)return j;return this}return K.apply(q,t0A(Y,arguments))},_=jyK(0,K.length-Y.length),$=[];for(var O=0;O<_;O++)$[O]="$"+O;if(z=Function("binder","return function ("+DyK($,",")+"){ return binder.apply(this,arguments); }")(w),K.prototype){var H=function(){};H.prototype=K.prototype,z.prototype=new H,H.prototype=null}return z}});var jS6=h((f2w,qWA)=>{var XyK=AWA();qWA.exports=Function.prototype.bind||XyK});var oA1=h((T2w,KWA)=>{KWA.exports=Function.prototype.call});var qn1=h((v2w,YWA)=>{YWA.exports=Function.prototype.apply});var wWA=h((V2w,zWA)=>{zWA.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var $WA=h((N2w,_WA)=>{var PyK=jS6(),WyK=qn1(),GyK=oA1(),ZyK=wWA();_WA.exports=ZyK||PyK.call(GyK,WyK)});var HWA=h((k2w,OWA)=>{var fyK=jS6(),TyK=iA1(),vyK=oA1(),VyK=$WA();OWA.exports=function(q){if(q.length<1||typeof q[0]!=="function")throw new TyK("a function is required");return VyK(fyK,vyK,q)}});var PWA=h((E2w,XWA)=>{var NyK=HWA(),jWA=si1(),MWA;try{MWA=[].__proto__===Array.prototype}catch(A){if(!A||typeof A!=="object"||!("code"in A)||A.code!=="ERR_PROTO_ACCESS")throw A}var Kn1=!!MWA&&jWA&&jWA(Object.prototype,"__proto__"),DWA=Object,JWA=DWA.getPrototypeOf;XWA.exports=Kn1&&typeof Kn1.get==="function"?NyK([Kn1.get]):typeof JWA==="function"?function(q){return JWA(q==null?q:DWA(q))}:!1});var TWA=h((L2w,fWA)=>{var WWA=ei1(),GWA=An1(),ZWA=PWA();fWA.exports=WWA?function(q){return WWA(q)}:GWA?function(q){if(!q||typeof q!=="object"&&typeof q!=="function")throw TypeError("getProto: not an object");return GWA(q)}:ZWA?function(q){return ZWA(q)}:null});var Yn1=h((y2w,vWA)=>{var kyK=Function.prototype.call,EyK=Object.prototype.hasOwnProperty,LyK=jS6();vWA.exports=LyK.call(kyK,EyK)});var yWA=h((R2w,LWA)=>{var Q9,yyK=ai1(),RyK=D0A(),SyK=P0A(),hyK=G0A(),CyK=f0A(),Xj6=v0A(),Dj6=iA1(),IyK=k0A(),xyK=L0A(),byK=R0A(),uyK=h0A(),myK=I0A(),ByK=b0A(),gyK=m0A(),pyK=F0A(),kWA=Function,zn1=function(A){try{return kWA('"use strict"; return ('+A+").constructor;")()}catch(q){}},JS6=si1(),FyK=l0A(),wn1=function(){throw new Dj6},QyK=JS6?function(){try{return arguments.callee,wn1}catch(A){try{return JS6(arguments,"callee").get}catch(q){return wn1}}}():wn1,Jj6=o0A()(),fX=TWA(),UyK=An1(),dyK=ei1(),EWA=qn1(),MS6=oA1(),Mj6={},cyK=typeof Uint8Array>"u"||!fX?Q9:fX(Uint8Array),R46={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Q9:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Q9:ArrayBuffer,"%ArrayIteratorPrototype%":Jj6&&fX?fX([][Symbol.iterator]()):Q9,"%AsyncFromSyncIteratorPrototype%":Q9,"%AsyncFunction%":Mj6,"%AsyncGenerator%":Mj6,"%AsyncGeneratorFunction%":Mj6,"%AsyncIteratorPrototype%":Mj6,"%Atomics%":typeof Atomics>"u"?Q9:Atomics,"%BigInt%":typeof BigInt>"u"?Q9:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Q9:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Q9:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Q9:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":RyK,"%eval%":eval,"%EvalError%":SyK,"%Float16Array%":typeof Float16Array>"u"?Q9:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Q9:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Q9:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Q9:FinalizationRegistry,"%Function%":kWA,"%GeneratorFunction%":Mj6,"%Int8Array%":typeof Int8Array>"u"?Q9:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Q9:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Q9:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Jj6&&fX?fX(fX([][Symbol.iterator]())):Q9,"%JSON%":typeof JSON==="object"?JSON:Q9,"%Map%":typeof Map>"u"?Q9:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Jj6||!fX?Q9:fX(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":yyK,"%Object.getOwnPropertyDescriptor%":JS6,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Q9:Promise,"%Proxy%":typeof Proxy>"u"?Q9:Proxy,"%RangeError%":hyK,"%ReferenceError%":CyK,"%Reflect%":typeof Reflect>"u"?Q9:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Q9:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Jj6||!fX?Q9:fX(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Q9:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Jj6&&fX?fX(""[Symbol.iterator]()):Q9,"%Symbol%":Jj6?Symbol:Q9,"%SyntaxError%":Xj6,"%ThrowTypeError%":QyK,"%TypedArray%":cyK,"%TypeError%":Dj6,"%Uint8Array%":typeof Uint8Array>"u"?Q9:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Q9:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Q9:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Q9:Uint32Array,"%URIError%":IyK,"%WeakMap%":typeof WeakMap>"u"?Q9:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Q9:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Q9:WeakSet,"%Function.prototype.call%":MS6,"%Function.prototype.apply%":EWA,"%Object.defineProperty%":FyK,"%Object.getPrototypeOf%":UyK,"%Math.abs%":xyK,"%Math.floor%":byK,"%Math.max%":uyK,"%Math.min%":myK,"%Math.pow%":ByK,"%Math.round%":gyK,"%Math.sign%":pyK,"%Reflect.getPrototypeOf%":dyK};if(fX)try{null.error}catch(A){_n1=fX(fX(A)),R46["%Error.prototype%"]=_n1}var _n1,lyK=function A(q){var K;if(q==="%AsyncFunction%")K=zn1("async function () {}");else if(q==="%GeneratorFunction%")K=zn1("function* () {}");else if(q==="%AsyncGeneratorFunction%")K=zn1("async function* () {}");else if(q==="%AsyncGenerator%"){var Y=A("%AsyncGeneratorFunction%");if(Y)K=Y.prototype}else if(q==="%AsyncIteratorPrototype%"){var z=A("%AsyncGenerator%");if(z&&fX)K=fX(z.prototype)}return R46[q]=K,K},VWA={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},DS6=jS6(),aA1=Yn1(),iyK=DS6.call(MS6,Array.prototype.concat),nyK=DS6.call(EWA,Array.prototype.splice),NWA=DS6.call(MS6,String.prototype.replace),sA1=DS6.call(MS6,String.prototype.slice),ryK=DS6.call(MS6,RegExp.prototype.exec),oyK=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ayK=/\\(\\)?/g,syK=function(q){var K=sA1(q,0,1),Y=sA1(q,-1);if(K==="%"&&Y!=="%")throw new Xj6("invalid intrinsic syntax, expected closing `%`");else if(Y==="%"&&K!=="%")throw new Xj6("invalid intrinsic syntax, expected opening `%`");var z=[];return NWA(q,oyK,function(w,_,$,O){z[z.length]=$?NWA(O,ayK,"$1"):_||w}),z},tyK=function(q,K){var Y=q,z;if(aA1(VWA,Y))z=VWA[Y],Y="%"+z[0]+"%";if(aA1(R46,Y)){var w=R46[Y];if(w===Mj6)w=lyK(Y);if(typeof w>"u"&&!K)throw new Dj6("intrinsic "+q+" exists, but is not available. Please file an issue!");return{alias:z,name:Y,value:w}}throw new Xj6("intrinsic "+q+" does not exist!")};LWA.exports=function(q,K){if(typeof q!=="string"||q.length===0)throw new Dj6("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof K!=="boolean")throw new Dj6('"allowMissing" argument must be a boolean');if(ryK(/^%?[^%]*%?$/,q)===null)throw new Xj6("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Y=syK(q),z=Y.length>0?Y[0]:"",w=tyK("%"+z+"%",K),_=w.name,$=w.value,O=!1,H=w.alias;if(H)z=H[0],nyK(Y,iyK([0,1],H));for(var j=1,J=!0;j<Y.length;j+=1){var M=Y[j],D=sA1(M,0,1),X=sA1(M,-1);if((D==='"'||D==="'"||D==="`"||(X==='"'||X==="'"||X==="`"))&&D!==X)throw new Xj6("property names with quotes must have matching quotes");if(M==="constructor"||!J)O=!0;if(z+="."+M,_="%"+z+"%",aA1(R46,_))$=R46[_];else if($!=null){if(!(M in $)){if(!K)throw new Dj6("base intrinsic for "+q+" exists, but the property is not available.");return}if(JS6&&j+1>=Y.length){var P=JS6($,M);if(J=!!P,J&&"get"in P&&!("originalValue"in P.get))$=P.get;else $=$[M]}else J=aA1($,M),$=$[M];if(J&&!O)R46[_]=$}}return $}});var SWA=h((S2w,RWA)=>{var eyK=ti1();RWA.exports=function(){return eyK()&&!!Symbol.toStringTag}});var IWA=h((h2w,CWA)=>{var ARK=yWA(),hWA=ARK("%Object.defineProperty%",!0),qRK=SWA()(),KRK=Yn1(),YRK=iA1(),tA1=qRK?Symbol.toStringTag:null;CWA.exports=function(q,K){var Y=arguments.length>2&&!!arguments[2]&&arguments[2].force,z=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof Y<"u"&&typeof Y!=="boolean"||typeof z<"u"&&typeof z!=="boolean")throw new YRK("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");if(tA1&&(Y||!KRK(q,tA1)))if(hWA)hWA(q,tA1,{configurable:!z,enumerable:!1,value:K,writable:!1});else q[tA1]=K}});var bWA=h((C2w,xWA)=>{xWA.exports=function(A,q){return Object.keys(q).forEach(function(K){A[K]=A[K]||q[K]}),A}});var mWA=h((I2w,uWA)=>{var jn1=QPA(),zRK=u6("util"),$n1=u6("path"),wRK=u6("http"),_RK=u6("https"),$RK=u6("url").parse,ORK=u6("fs"),HRK=u6("stream").Stream,On1=nPA(),jRK=j0A(),JRK=IWA(),Hn1=bWA();uWA.exports=cY;zRK.inherits(cY,jn1);function cY(A){if(!(this instanceof cY))return new cY(A);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],jn1.call(this),A=A||{};for(var q in A)this[q]=A[q]}cY.LINE_BREAK=`\r
`;cY.DEFAULT_CONTENT_TYPE="application/octet-stream";cY.prototype.append=function(A,q,K){if(K=K||{},typeof K=="string")K={filename:K};var Y=jn1.prototype.append.bind(this);if(typeof q=="number")q=""+q;if(Array.isArray(q)){this._error(Error("Arrays are not supported."));return}var z=this._multiPartHeader(A,q,K),w=this._multiPartFooter();Y(z),Y(q),Y(w),this._trackLength(z,q,K)};cY.prototype._trackLength=function(A,q,K){var Y=0;if(K.knownLength!=null)Y+=+K.knownLength;else if(Buffer.isBuffer(q))Y=q.length;else if(typeof q==="string")Y=Buffer.byteLength(q);if(this._valueLength+=Y,this._overheadLength+=Buffer.byteLength(A)+cY.LINE_BREAK.length,!q||!q.path&&!(q.readable&&Object.prototype.hasOwnProperty.call(q,"httpVersion"))&&!(q instanceof HRK))return;if(!K.knownLength)this._valuesToMeasure.push(q)};cY.prototype._lengthRetriever=function(A,q){if(Object.prototype.hasOwnProperty.call(A,"fd"))if(A.end!=null&&A.end!=1/0&&A.start!=null)q(null,A.end+1-(A.start?A.start:0));else ORK.stat(A.path,function(K,Y){var z;if(K){q(K);return}z=Y.size-(A.start?A.start:0),q(null,z)});else if(Object.prototype.hasOwnProperty.call(A,"httpVersion"))q(null,+A.headers["content-length"]);else if(Object.prototype.hasOwnProperty.call(A,"httpModule"))A.on("response",function(K){A.pause(),q(null,+K.headers["content-length"])}),A.resume();else q("Unknown stream")};cY.prototype._multiPartHeader=function(A,q,K){if(typeof K.header=="string")return K.header;var Y=this._getContentDisposition(q,K),z=this._getContentType(q,K),w="",_={"Content-Disposition":["form-data",'name="'+A+'"'].concat(Y||[]),"Content-Type":[].concat(z||[])};if(typeof K.header=="object")Hn1(_,K.header);var $;for(var O in _)if(Object.prototype.hasOwnProperty.call(_,O)){if($=_[O],$==null)continue;if(!Array.isArray($))$=[$];if($.length)w+=O+": "+$.join("; ")+cY.LINE_BREAK}return"--"+this.getBoundary()+cY.LINE_BREAK+w+cY.LINE_BREAK};cY.prototype._getContentDisposition=function(A,q){var K,Y;if(typeof q.filepath==="string")K=$n1.normalize(q.filepath).replace(/\\/g,"/");else if(q.filename||A.name||A.path)K=$n1.basename(q.filename||A.name||A.path);else if(A.readable&&Object.prototype.hasOwnProperty.call(A,"httpVersion"))K=$n1.basename(A.client._httpMessage.path||"");if(K)Y='filename="'+K+'"';return Y};cY.prototype._getContentType=function(A,q){var K=q.contentType;if(!K&&A.name)K=On1.lookup(A.name);if(!K&&A.path)K=On1.lookup(A.path);if(!K&&A.readable&&Object.prototype.hasOwnProperty.call(A,"httpVersion"))K=A.headers["content-type"];if(!K&&(q.filepath||q.filename))K=On1.lookup(q.filepath||q.filename);if(!K&&typeof A=="object")K=cY.DEFAULT_CONTENT_TYPE;return K};cY.prototype._multiPartFooter=function(){return function(A){var q=cY.LINE_BREAK,K=this._streams.length===0;if(K)q+=this._lastBoundary();A(q)}.bind(this)};cY.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+cY.LINE_BREAK};cY.prototype.getHeaders=function(A){var q,K={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(q in A)if(Object.prototype.hasOwnProperty.call(A,q))K[q.toLowerCase()]=A[q];return K};cY.prototype.setBoundary=function(A){this._boundary=A};cY.prototype.getBoundary=function(){if(!this._boundary)this._generateBoundary();return this._boundary};cY.prototype.getBuffer=function(){var A=new Buffer.alloc(0),q=this.getBoundary();for(var K=0,Y=this._streams.length;K<Y;K++)if(typeof this._streams[K]!=="function"){if(Buffer.isBuffer(this._streams[K]))A=Buffer.concat([A,this._streams[K]]);else A=Buffer.concat([A,Buffer.from(this._streams[K])]);if(typeof this._streams[K]!=="string"||this._streams[K].substring(2,q.length+2)!==q)A=Buffer.concat([A,Buffer.from(cY.LINE_BREAK)])}return Buffer.concat([A,Buffer.from(this._lastBoundary())])};cY.prototype._generateBoundary=function(){var A="--------------------------";for(var q=0;q<24;q++)A+=Math.floor(Math.random()*10).toString(16);this._boundary=A};cY.prototype.getLengthSync=function(){var A=this._overheadLength+this._valueLength;if(this._streams.length)A+=this._lastBoundary().length;if(!this.hasKnownLength())this._error(Error("Cannot calculate proper length in synchronous way."));return A};cY.prototype.hasKnownLength=function(){var A=!0;if(this._valuesToMeasure.length)A=!1;return A};cY.prototype.getLength=function(A){var q=this._overheadLength+this._valueLength;if(this._streams.length)q+=this._lastBoundary().length;if(!this._valuesToMeasure.length){process.nextTick(A.bind(this,null,q));return}jRK.parallel(this._valuesToMeasure,this._lengthRetriever,function(K,Y){if(K){A(K);return}Y.forEach(function(z){q+=z}),A(null,q)})};cY.prototype.submit=function(A,q){var K,Y,z={method:"post"};if(typeof A=="string")A=$RK(A),Y=Hn1({port:A.port,path:A.pathname,host:A.hostname,protocol:A.protocol},z);else if(Y=Hn1(A,z),!Y.port)Y.port=Y.protocol=="https:"?443:80;if(Y.headers=this.getHeaders(A.headers),Y.protocol=="https:")K=_RK.request(Y);else K=wRK.request(Y);return this.getLength(function(w,_){if(w&&w!=="Unknown stream"){this._error(w);return}if(_)K.setHeader("Content-Length",_);if(this.pipe(K),q){var $,O=function(H,j){return K.removeListener("error",O),K.removeListener("response",$),q.call(this,H,j)};$=O.bind(this,null),K.on("error",O),K.on("response",$)}}.bind(this)),K};cY.prototype._error=function(A){if(!this.error)this.error=A,this.pause(),this.emit("error",A)};cY.prototype.toString=function(){return"[object FormData]"};JRK(cY,"FormData")});var BWA,eA1;var Jn1=E(()=>{BWA=q6(mWA(),1),eA1=BWA.default});function Mn1(A){return A8.isPlainObject(A)||A8.isArray(A)}function pWA(A){return A8.endsWith(A,"[]")?A.slice(0,-2):A}function gWA(A,q,K){if(!A)return q;return A.concat(q).map(function(z,w){return z=pWA(z),!K&&w?"["+z+"]":z}).join(K?".":"")}function MRK(A){return A8.isArray(A)&&!A.some(Mn1)}function XRK(A,q,K){if(!A8.isObject(A))throw TypeError("target must be an object");q=q||new(eA1||FormData),K=A8.toFlatObject(K,{metaTokens:!0,dots:!1,indexes:!1},!1,function(P,W){return!A8.isUndefined(W[P])});let Y=K.metaTokens,z=K.visitor||j,w=K.dots,_=K.indexes,O=(K.Blob||typeof Blob<"u"&&Blob)&&A8.isSpecCompliantForm(q);if(!A8.isFunction(z))throw TypeError("visitor must be a function");function H(X){if(X===null)return"";if(A8.isDate(X))return X.toISOString();if(!O&&A8.isBlob(X))throw new G4("Blob is not supported. Use a Buffer instead.");if(A8.isArrayBuffer(X)||A8.isTypedArray(X))return O&&typeof Blob==="function"?new Blob([X]):Buffer.from(X);return X}function j(X,P,W){let G=X;if(X&&!W&&typeof X==="object"){if(A8.endsWith(P,"{}"))P=Y?P:P.slice(0,-2),X=JSON.stringify(X);else if(A8.isArray(X)&&MRK(X)||(A8.isFileList(X)||A8.endsWith(P,"[]"))&&(G=A8.toArray(X)))return P=pWA(P),G.forEach(function(f,v){!(A8.isUndefined(f)||f===null)&&q.append(_===!0?gWA([P],v,w):_===null?P:P+"[]",H(f))}),!1}if(Mn1(X))return!0;return q.append(gWA(W,P,w),H(X)),!1}let J=[],M=Object.assign(DRK,{defaultVisitor:j,convertValue:H,isVisitable:Mn1});function D(X,P){if(A8.isUndefined(X))return;if(J.indexOf(X)!==-1)throw Error("Circular reference detected in "+P.join("."));J.push(X),A8.forEach(X,function(G,Z){if((!(A8.isUndefined(G)||G===null)&&z.call(q,G,A8.isString(Z)?Z.trim():Z,P,M))===!0)D(G,P?P.concat(Z):[Z])}),J.pop()}if(!A8.isObject(A))throw TypeError("data must be an object");return D(A),q}var DRK,wa;var XS6=E(()=>{Y_();sN();Jn1();DRK=A8.toFlatObject(A8,{},null,function(q){return/^is[A-Z]/.test(q)});wa=XRK});function FWA(A){let q={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(A).replace(/[!'()~]|%20|%00/g,function(Y){return q[Y]})}function QWA(A,q){this._pairs=[],A&&wa(A,this,q)}var UWA,dWA;var cWA=E(()=>{XS6();UWA=QWA.prototype;UWA.append=function(q,K){this._pairs.push([q,K])};UWA.toString=function(q){let K=q?function(Y){return q.call(this,Y,FWA)}:FWA;return this._pairs.map(function(z){return K(z[0])+"="+K(z[1])},"").join("&")};dWA=QWA});function PRK(A){return encodeURIComponent(A).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function S46(A,q,K){if(!q)return A;let Y=K&&K.encode||PRK;if(A8.isFunction(K))K={serialize:K};let z=K&&K.serialize,w;if(z)w=z(q,K);else w=A8.isURLSearchParams(q)?q.toString():new dWA(q,K).toString(Y);if(w){let _=A.indexOf("#");if(_!==-1)A=A.slice(0,_);A+=(A.indexOf("?")===-1?"?":"&")+w}return A}var A71=E(()=>{Y_();cWA()});class lWA{constructor(){this.handlers=[]}use(A,q,K){return this.handlers.push({fulfilled:A,rejected:q,synchronous:K?K.synchronous:!1,runWhen:K?K.runWhen:null}),this.handlers.length-1}eject(A){if(this.handlers[A])this.handlers[A]=null}clear(){if(this.handlers)this.handlers=[]}forEach(A){A8.forEach(this.handlers,function(K){if(K!==null)A(K)})}}var Dn1;var iWA=E(()=>{Y_();Dn1=lWA});var Pj6;var q71=E(()=>{Pj6={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}});import WRK from"url";var nWA;var rWA=E(()=>{nWA=WRK.URLSearchParams});import GRK from"crypto";var Xn1="abcdefghijklmnopqrstuvwxyz",oWA="0123456789",aWA,ZRK=(A=16,q=aWA.ALPHA_DIGIT)=>{let K="",{length:Y}=q,z=new Uint32Array(A);GRK.randomFillSync(z);for(let w=0;w<A;w++)K+=q[z[w]%Y];return K},sWA;var tWA=E(()=>{rWA();Jn1();aWA={DIGIT:oWA,ALPHA:Xn1,ALPHA_DIGIT:Xn1+Xn1.toUpperCase()+oWA},sWA={isNode:!0,classes:{URLSearchParams:nWA,FormData:eA1,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:aWA,generateString:ZRK,protocols:["http","https","file","data"]}});var Gn1={};d1(Gn1,{origin:()=>vRK,navigator:()=>Pn1,hasStandardBrowserWebWorkerEnv:()=>TRK,hasStandardBrowserEnv:()=>fRK,hasBrowserEnv:()=>Wn1});var Wn1,Pn1,fRK,TRK,vRK;var eWA=E(()=>{Wn1=typeof window<"u"&&typeof document<"u",Pn1=typeof navigator==="object"&&navigator||void 0,fRK=Wn1&&(!Pn1||["ReactNative","NativeScript","NS"].indexOf(Pn1.product)<0),TRK=(()=>{return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),vRK=Wn1&&window.location.href||"http://localhost"});var bz;var EC=E(()=>{tWA();eWA();bz={...Gn1,...sWA}});function Zn1(A,q){return wa(A,new bz.classes.URLSearchParams,Object.assign({visitor:function(K,Y,z,w){if(bz.isNode&&A8.isBuffer(K))return this.append(Y,K.toString("base64")),!1;return w.defaultVisitor.apply(this,arguments)}},q))}var AGA=E(()=>{Y_();XS6();EC()});function VRK(A){return A8.matchAll(/\w+|\[(\w*)]/g,A).map((q)=>{return q[0]==="[]"?"":q[1]||q[0]})}function NRK(A){let q={},K=Object.keys(A),Y,z=K.length,w;for(Y=0;Y<z;Y++)w=K[Y],q[w]=A[w];return q}function kRK(A){function q(K,Y,z,w){let _=K[w++];if(_==="__proto__")return!0;let $=Number.isFinite(+_),O=w>=K.length;if(_=!_&&A8.isArray(z)?z.length:_,O){if(A8.hasOwnProp(z,_))z[_]=[z[_],Y];else z[_]=Y;return!$}if(!z[_]||!A8.isObject(z[_]))z[_]=[];if(q(K,Y,z[_],w)&&A8.isArray(z[_]))z[_]=NRK(z[_]);return!$}if(A8.isFormData(A)&&A8.isFunction(A.entries)){let K={};return A8.forEachEntry(A,(Y,z)=>{q(VRK(Y),z,K,0)}),K}return null}var K71;var fn1=E(()=>{Y_();K71=kRK});function ERK(A,q,K){if(A8.isString(A))try{return(q||JSON.parse)(A),A8.trim(A)}catch(Y){if(Y.name!=="SyntaxError")throw Y}return(K||JSON.stringify)(A)}var Tn1,Wj6;var Y71=E(()=>{Y_();sN();q71();XS6();AGA();EC();fn1();Tn1={transitional:Pj6,adapter:["xhr","http","fetch"],transformRequest:[function(q,K){let Y=K.getContentType()||"",z=Y.indexOf("application/json")>-1,w=A8.isObject(q);if(w&&A8.isHTMLForm(q))q=new FormData(q);if(A8.isFormData(q))return z?JSON.stringify(K71(q)):q;if(A8.isArrayBuffer(q)||A8.isBuffer(q)||A8.isStream(q)||A8.isFile(q)||A8.isBlob(q)||A8.isReadableStream(q))return q;if(A8.isArrayBufferView(q))return q.buffer;if(A8.isURLSearchParams(q))return K.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),q.toString();let $;if(w){if(Y.indexOf("application/x-www-form-urlencoded")>-1)return Zn1(q,this.formSerializer).toString();if(($=A8.isFileList(q))||Y.indexOf("multipart/form-data")>-1){let O=this.env&&this.env.FormData;return wa($?{"files[]":q}:q,O&&new O,this.formSerializer)}}if(w||z)return K.setContentType("application/json",!1),ERK(q);return q}],transformResponse:[function(q){let K=this.transitional||Tn1.transitional,Y=K&&K.forcedJSONParsing,z=this.responseType==="json";if(A8.isResponse(q)||A8.isReadableStream(q))return q;if(q&&A8.isString(q)&&(Y&&!this.responseType||z)){let _=!(K&&K.silentJSONParsing)&&z;try{return JSON.parse(q)}catch($){if(_){if($.name==="SyntaxError")throw G4.from($,G4.ERR_BAD_RESPONSE,this,null,this.response);throw $}}}return q}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bz.classes.FormData,Blob:bz.classes.Blob},validateStatus:function(q){return q>=200&&q<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A8.forEach(["delete","get","head","post","put","patch"],(A)=>{Tn1.headers[A]={}});Wj6=Tn1});var LRK,qGA=(A)=>{let q={},K,Y,z;return A&&A.split(`
`).forEach(function(_){if(z=_.indexOf(":"),K=_.substring(0,z).trim().toLowerCase(),Y=_.substring(z+1).trim(),!K||q[K]&&LRK[K])return;if(K==="set-cookie")if(q[K])q[K].push(Y);else q[K]=[Y];else q[K]=q[K]?q[K]+", "+Y:Y}),q};var KGA=E(()=>{Y_();LRK=A8.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"])});function PS6(A){return A&&String(A).trim().toLowerCase()}function z71(A){if(A===!1||A==null)return A;return A8.isArray(A)?A.map(z71):String(A)}function yRK(A){let q=Object.create(null),K=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,Y;while(Y=K.exec(A))q[Y[1]]=Y[2];return q}function vn1(A,q,K,Y,z){if(A8.isFunction(Y))return Y.call(this,q,K);if(z)q=K;if(!A8.isString(q))return;if(A8.isString(Y))return q.indexOf(Y)!==-1;if(A8.isRegExp(Y))return Y.test(q)}function SRK(A){return A.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(q,K,Y)=>{return K.toUpperCase()+Y})}function hRK(A,q){let K=A8.toCamelCase(" "+q);["get","set","has"].forEach((Y)=>{Object.defineProperty(A,Y+K,{value:function(z,w,_){return this[Y].call(this,q,z,w,_)},configurable:!0})})}var YGA,RRK=(A)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(A.trim()),WS6,XH;var Hm=E(()=>{Y_();KGA();YGA=Symbol("internals");WS6=class WS6{constructor(A){A&&this.set(A)}set(A,q,K){let Y=this;function z(_,$,O){let H=PS6($);if(!H)throw Error("header name must be a non-empty string");let j=A8.findKey(Y,H);if(!j||Y[j]===void 0||O===!0||O===void 0&&Y[j]!==!1)Y[j||$]=z71(_)}let w=(_,$)=>A8.forEach(_,(O,H)=>z(O,H,$));if(A8.isPlainObject(A)||A instanceof this.constructor)w(A,q);else if(A8.isString(A)&&(A=A.trim())&&!RRK(A))w(qGA(A),q);else if(A8.isHeaders(A))for(let[_,$]of A.entries())z($,_,K);else A!=null&&z(q,A,K);return this}get(A,q){if(A=PS6(A),A){let K=A8.findKey(this,A);if(K){let Y=this[K];if(!q)return Y;if(q===!0)return yRK(Y);if(A8.isFunction(q))return q.call(this,Y,K);if(A8.isRegExp(q))return q.exec(Y);throw TypeError("parser must be boolean|regexp|function")}}}has(A,q){if(A=PS6(A),A){let K=A8.findKey(this,A);return!!(K&&this[K]!==void 0&&(!q||vn1(this,this[K],K,q)))}return!1}delete(A,q){let K=this,Y=!1;function z(w){if(w=PS6(w),w){let _=A8.findKey(K,w);if(_&&(!q||vn1(K,K[_],_,q)))delete K[_],Y=!0}}if(A8.isArray(A))A.forEach(z);else z(A);return Y}clear(A){let q=Object.keys(this),K=q.length,Y=!1;while(K--){let z=q[K];if(!A||vn1(this,this[z],z,A,!0))delete this[z],Y=!0}return Y}normalize(A){let q=this,K={};return A8.forEach(this,(Y,z)=>{let w=A8.findKey(K,z);if(w){q[w]=z71(Y),delete q[z];return}let _=A?SRK(z):String(z).trim();if(_!==z)delete q[z];q[_]=z71(Y),K[_]=!0}),this}concat(...A){return this.constructor.concat(this,...A)}toJSON(A){let q=Object.create(null);return A8.forEach(this,(K,Y)=>{K!=null&&K!==!1&&(q[Y]=A&&A8.isArray(K)?K.join(", "):K)}),q}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([A,q])=>A+": "+q).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(A){return A instanceof this?A:new this(A)}static concat(A,...q){let K=new this(A);return q.forEach((Y)=>K.set(Y)),K}static accessor(A){let K=(this[YGA]=this[YGA]={accessors:{}}).accessors,Y=this.prototype;function z(w){let _=PS6(w);if(!K[_])hRK(Y,w),K[_]=!0}return A8.isArray(A)?A.forEach(z):z(A),this}};WS6.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A8.reduceDescriptors(WS6.prototype,({value:A},q)=>{let K=q[0].toUpperCase()+q.slice(1);return{get:()=>A,set(Y){this[K]=Y}}});A8.freezeMethods(WS6);XH=WS6});function GS6(A,q){let K=this||Wj6,Y=q||K,z=XH.from(Y.headers),w=Y.data;return A8.forEach(A,function($){w=$.call(K,w,z.normalize(),q?q.status:void 0)}),z.normalize(),w}var zGA=E(()=>{Y_();Y71();Hm()});function ZS6(A){return!!(A&&A.__CANCEL__)}function wGA(A,q,K){G4.call(this,A==null?"canceled":A,G4.ERR_CANCELED,q,K),this.name="CanceledError"}var tN;var h46=E(()=>{sN();Y_();A8.inherits(wGA,G4,{__CANCEL__:!0});tN=wGA});function jm(A,q,K){let Y=K.config.validateStatus;if(!K.status||!Y||Y(K.status))A(K);else q(new G4("Request failed with status code "+K.status,[G4.ERR_BAD_REQUEST,G4.ERR_BAD_RESPONSE][Math.floor(K.status/100)-4],K.config,K.request,K))}var w71=E(()=>{sN()});function Vn1(A){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(A)}function Nn1(A,q){return q?A.replace(/\/?\/$/,"")+"/"+q.replace(/^\/+/,""):A}function C46(A,q,K){let Y=!Vn1(q);if(A&&(Y||K==!1))return Nn1(A,q);return q}var _71=()=>{};var _GA=h((mRK)=>{var CRK=u6("url").parse,IRK={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},xRK=String.prototype.endsWith||function(A){return A.length<=this.length&&this.indexOf(A,this.length-A.length)!==-1};function bRK(A){var q=typeof A==="string"?CRK(A):A||{},K=q.protocol,Y=q.host,z=q.port;if(typeof Y!=="string"||!Y||typeof K!=="string")return"";if(K=K.split(":",1)[0],Y=Y.replace(/:\d*$/,""),z=parseInt(z)||IRK[K]||0,!uRK(Y,z))return"";var w=Gj6("npm_config_"+K+"_proxy")||Gj6(K+"_proxy")||Gj6("npm_config_proxy")||Gj6("all_proxy");if(w&&w.indexOf("://")===-1)w=K+"://"+w;return w}function uRK(A,q){var K=(Gj6("npm_config_no_proxy")||Gj6("no_proxy")).toLowerCase();if(!K)return!0;if(K==="*")return!1;return K.split(/[,\s]/).every(function(Y){if(!Y)return!0;var z=Y.match(/^(.+):(\d+)$/),w=z?z[1]:Y,_=z?parseInt(z[2]):0;if(_&&_!==q)return!0;if(!/^[.*]/.test(w))return A!==w;if(w.charAt(0)==="*")w=w.slice(1);return!xRK.call(A,w)})}function Gj6(A){return process.env[A.toLowerCase()]||process.env[A.toUpperCase()]||""}mRK.getProxyForUrl=bRK});var OGA=h((u_w,$GA)=>{var fS6;$GA.exports=function(){if(!fS6){try{fS6=N46()("follow-redirects")}catch(A){}if(typeof fS6!=="function")fS6=function(){}}fS6.apply(null,arguments)}});var DGA=h((m_w,un1)=>{var vS6=u6("url"),TS6=vS6.URL,gRK=u6("http"),pRK=u6("https"),Rn1=u6("stream").Writable,Sn1=u6("assert"),HGA=OGA();(function(){var q=typeof process<"u",K=typeof window<"u"&&typeof document<"u",Y=x46(Error.captureStackTrace);if(!q&&(K||!Y))console.warn("The follow-redirects package should be excluded from browser builds.")})();var hn1=!1;try{Sn1(new TS6(""))}catch(A){hn1=A.code==="ERR_INVALID_URL"}var FRK=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Cn1=["abort","aborted","connect","error","socket","timeout"],In1=Object.create(null);Cn1.forEach(function(A){In1[A]=function(q,K,Y){this._redirectable.emit(A,q,K,Y)}});var En1=VS6("ERR_INVALID_URL","Invalid URL",TypeError),Ln1=VS6("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),QRK=VS6("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Ln1),URK=VS6("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),dRK=VS6("ERR_STREAM_WRITE_AFTER_END","write after end"),cRK=Rn1.prototype.destroy||JGA;function Mv(A,q){if(Rn1.call(this),this._sanitizeOptions(A),this._options=A,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],q)this.on("response",q);var K=this;this._onNativeResponse=function(Y){try{K._processResponse(Y)}catch(z){K.emit("error",z instanceof Ln1?z:new Ln1({cause:z}))}},this._performRequest()}Mv.prototype=Object.create(Rn1.prototype);Mv.prototype.abort=function(){bn1(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Mv.prototype.destroy=function(A){return bn1(this._currentRequest,A),cRK.call(this,A),this};Mv.prototype.write=function(A,q,K){if(this._ending)throw new dRK;if(!I46(A)&&!nRK(A))throw TypeError("data should be a string, Buffer or Uint8Array");if(x46(q))K=q,q=null;if(A.length===0){if(K)K();return}if(this._requestBodyLength+A.length<=this._options.maxBodyLength)this._requestBodyLength+=A.length,this._requestBodyBuffers.push({data:A,encoding:q}),this._currentRequest.write(A,q,K);else this.emit("error",new URK),this.abort()};Mv.prototype.end=function(A,q,K){if(x46(A))K=A,A=q=null;else if(x46(q))K=q,q=null;if(!A)this._ended=this._ending=!0,this._currentRequest.end(null,null,K);else{var Y=this,z=this._currentRequest;this.write(A,q,function(){Y._ended=!0,z.end(null,null,K)}),this._ending=!0}};Mv.prototype.setHeader=function(A,q){this._options.headers[A]=q,this._currentRequest.setHeader(A,q)};Mv.prototype.removeHeader=function(A){delete this._options.headers[A],this._currentRequest.removeHeader(A)};Mv.prototype.setTimeout=function(A,q){var K=this;function Y(_){_.setTimeout(A),_.removeListener("timeout",_.destroy),_.addListener("timeout",_.destroy)}function z(_){if(K._timeout)clearTimeout(K._timeout);K._timeout=setTimeout(function(){K.emit("timeout"),w()},A),Y(_)}function w(){if(K._timeout)clearTimeout(K._timeout),K._timeout=null;if(K.removeListener("abort",w),K.removeListener("error",w),K.removeListener("response",w),K.removeListener("close",w),q)K.removeListener("timeout",q);if(!K.socket)K._currentRequest.removeListener("socket",z)}if(q)this.on("timeout",q);if(this.socket)z(this.socket);else this._currentRequest.once("socket",z);return this.on("socket",Y),this.on("abort",w),this.on("error",w),this.on("response",w),this.on("close",w),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(A){Mv.prototype[A]=function(q,K){return this._currentRequest[A](q,K)}});["aborted","connection","socket"].forEach(function(A){Object.defineProperty(Mv.prototype,A,{get:function(){return this._currentRequest[A]}})});Mv.prototype._sanitizeOptions=function(A){if(!A.headers)A.headers={};if(A.host){if(!A.hostname)A.hostname=A.host;delete A.host}if(!A.pathname&&A.path){var q=A.path.indexOf("?");if(q<0)A.pathname=A.path;else A.pathname=A.path.substring(0,q),A.search=A.path.substring(q)}};Mv.prototype._performRequest=function(){var A=this._options.protocol,q=this._options.nativeProtocols[A];if(!q)throw TypeError("Unsupported protocol "+A);if(this._options.agents){var K=A.slice(0,-1);this._options.agent=this._options.agents[K]}var Y=this._currentRequest=q.request(this._options,this._onNativeResponse);Y._redirectable=this;for(var z of Cn1)Y.on(z,In1[z]);if(this._currentUrl=/^\//.test(this._options.path)?vS6.format(this._options):this._options.path,this._isRedirect){var w=0,_=this,$=this._requestBodyBuffers;(function O(H){if(Y===_._currentRequest){if(H)_.emit("error",H);else if(w<$.length){var j=$[w++];if(!Y.finished)Y.write(j.data,j.encoding,O)}else if(_._ended)Y.end()}})()}};Mv.prototype._processResponse=function(A){var q=A.statusCode;if(this._options.trackRedirects)this._redirects.push({url:this._currentUrl,headers:A.headers,statusCode:q});var K=A.headers.location;if(!K||this._options.followRedirects===!1||q<300||q>=400){A.responseUrl=this._currentUrl,A.redirects=this._redirects,this.emit("response",A),this._requestBodyBuffers=[];return}if(bn1(this._currentRequest),A.destroy(),++this._redirectCount>this._options.maxRedirects)throw new QRK;var Y,z=this._options.beforeRedirect;if(z)Y=Object.assign({Host:A.req.getHeader("host")},this._options.headers);var w=this._options.method;if((q===301||q===302)&&this._options.method==="POST"||q===303&&!/^(?:GET|HEAD)$/.test(this._options.method))this._options.method="GET",this._requestBodyBuffers=[],kn1(/^content-/i,this._options.headers);var _=kn1(/^host$/i,this._options.headers),$=xn1(this._currentUrl),O=_||$.host,H=/^\w+:/.test(K)?this._currentUrl:vS6.format(Object.assign($,{host:O})),j=lRK(K,H);if(HGA("redirecting to",j.href),this._isRedirect=!0,yn1(j,this._options),j.protocol!==$.protocol&&j.protocol!=="https:"||j.host!==O&&!iRK(j.host,O))kn1(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers);if(x46(z)){var J={headers:A.headers,statusCode:q},M={url:H,method:w,headers:Y};z(this._options,J,M),this._sanitizeOptions(this._options)}this._performRequest()};function jGA(A){var q={maxRedirects:21,maxBodyLength:10485760},K={};return Object.keys(A).forEach(function(Y){var z=Y+":",w=K[z]=A[Y],_=q[Y]=Object.create(w);function $(H,j,J){if(rRK(H))H=yn1(H);else if(I46(H))H=yn1(xn1(H));else J=j,j=MGA(H),H={protocol:z};if(x46(j))J=j,j=null;if(j=Object.assign({maxRedirects:q.maxRedirects,maxBodyLength:q.maxBodyLength},H,j),j.nativeProtocols=K,!I46(j.host)&&!I46(j.hostname))j.hostname="::1";return Sn1.equal(j.protocol,z,"protocol mismatch"),HGA("options",j),new Mv(j,J)}function O(H,j,J){var M=_.request(H,j,J);return M.end(),M}Object.defineProperties(_,{request:{value:$,configurable:!0,enumerable:!0,writable:!0},get:{value:O,configurable:!0,enumerable:!0,writable:!0}})}),q}function JGA(){}function xn1(A){var q;if(hn1)q=new TS6(A);else if(q=MGA(vS6.parse(A)),!I46(q.protocol))throw new En1({input:A});return q}function lRK(A,q){return hn1?new TS6(A,q):xn1(vS6.resolve(q,A))}function MGA(A){if(/^\[/.test(A.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(A.hostname))throw new En1({input:A.href||A});if(/^\[/.test(A.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(A.host))throw new En1({input:A.href||A});return A}function yn1(A,q){var K=q||{};for(var Y of FRK)K[Y]=A[Y];if(K.hostname.startsWith("["))K.hostname=K.hostname.slice(1,-1);if(K.port!=="")K.port=Number(K.port);return K.path=K.search?K.pathname+K.search:K.pathname,K}function kn1(A,q){var K;for(var Y in q)if(A.test(Y))K=q[Y],delete q[Y];return K===null||typeof K>"u"?void 0:String(K).trim()}function VS6(A,q,K){function Y(z){if(x46(Error.captureStackTrace))Error.captureStackTrace(this,this.constructor);Object.assign(this,z||{}),this.code=A,this.message=this.cause?q+": "+this.cause.message:q}return Y.prototype=Object.create((K||Error).prototype),Object.defineProperties(Y.prototype,{constructor:{value:Y,enumerable:!1},name:{value:"Error ["+A+"]",enumerable:!1}}),Y}function bn1(A,q){for(var K of Cn1)A.removeListener(K,In1[K]);A.on("error",JGA),A.destroy(q)}function iRK(A,q){Sn1(I46(A)&&I46(q));var K=A.length-q.length-1;return K>0&&A[K]==="."&&A.endsWith(q)}function I46(A){return typeof A==="string"||A instanceof String}function x46(A){return typeof A==="function"}function nRK(A){return typeof A==="object"&&"length"in A}function rRK(A){return TS6&&A instanceof TS6}un1.exports=jGA({http:gRK,https:pRK});un1.exports.wrap=jGA});var b46="1.8.4";function NS6(A){let q=/^([-+\w]{1,25})(:?\/\/|:)/.exec(A);return q&&q[1]||""}function mn1(A,q,K){let Y=K&&K.Blob||bz.classes.Blob,z=NS6(A);if(q===void 0&&Y)q=!0;if(z==="data"){A=z.length?A.slice(z.length+1):A;let w=oRK.exec(A);if(!w)throw new G4("Invalid URL",G4.ERR_INVALID_URL);let _=w[1],$=w[2],O=w[3],H=Buffer.from(decodeURIComponent(O),$?"base64":"utf8");if(q){if(!Y)throw new G4("Blob is not supported",G4.ERR_NOT_SUPPORT);return new Y([H],{type:_})}return H}throw new G4("Unsupported protocol "+z,G4.ERR_NOT_SUPPORT)}var oRK;var XGA=E(()=>{sN();EC();oRK=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/});import aRK from"stream";var Bn1,PGA,gn1;var WGA=E(()=>{Y_();Bn1=Symbol("internals");PGA=class PGA extends aRK.Transform{constructor(A){A=A8.toFlatObject(A,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(K,Y)=>{return!A8.isUndefined(Y[K])});super({readableHighWaterMark:A.chunkSize});let q=this[Bn1]={timeWindow:A.timeWindow,chunkSize:A.chunkSize,maxRate:A.maxRate,minChunkSize:A.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(K)=>{if(K==="progress"){if(!q.isCaptured)q.isCaptured=!0}})}_read(A){let q=this[Bn1];if(q.onReadCallback)q.onReadCallback();return super._read(A)}_transform(A,q,K){let Y=this[Bn1],z=Y.maxRate,w=this.readableHighWaterMark,_=Y.timeWindow,$=1000/_,O=z/$,H=Y.minChunkSize!==!1?Math.max(Y.minChunkSize,O*0.01):0,j=(M,D)=>{let X=Buffer.byteLength(M);if(Y.bytesSeen+=X,Y.bytes+=X,Y.isCaptured&&this.emit("progress",Y.bytesSeen),this.push(M))process.nextTick(D);else Y.onReadCallback=()=>{Y.onReadCallback=null,process.nextTick(D)}},J=(M,D)=>{let X=Buffer.byteLength(M),P=null,W=w,G,Z=0;if(z){let f=Date.now();if(!Y.ts||(Z=f-Y.ts)>=_)Y.ts=f,G=O-Y.bytes,Y.bytes=G<0?-G:0,Z=0;G=O-Y.bytes}if(z){if(G<=0)return setTimeout(()=>{D(null,M)},_-Z);if(G<W)W=G}if(W&&X>W&&X-W>H)P=M.subarray(W),M=M.subarray(0,W);j(M,P?()=>{process.nextTick(D,null,P)}:D)};J(A,function M(D,X){if(D)return K(D);if(X)J(X,M);else K(null)})}};gn1=PGA});var GGA,sRK=async function*(A){if(A.stream)yield*A.stream();else if(A.arrayBuffer)yield await A.arrayBuffer();else if(A[GGA])yield*A[GGA]();else yield A},$71;var pn1=E(()=>{({asyncIterator:GGA}=Symbol),$71=sRK});import tRK from"util";import{Readable as eRK}from"stream";class ZGA{constructor(A,q){let{escapeName:K}=this.constructor,Y=A8.isString(q),z=`Content-Disposition: form-data; name="${K(A)}"${!Y&&q.name?`; filename="${K(q.name)}"`:""}${_a}`;if(Y)q=kS6.encode(String(q).replace(/\r?\n|\r\n?/g,_a));else z+=`Content-Type: ${q.type||"application/octet-stream"}${_a}`;this.headers=kS6.encode(z+_a),this.contentLength=Y?q.byteLength:q.size,this.size=this.headers.byteLength+this.contentLength+KSK,this.name=A,this.value=q}async*encode(){yield this.headers;let{value:A}=this;if(A8.isTypedArray(A))yield A;else yield*$71(A);yield qSK}static escapeName(A){return String(A).replace(/[\r\n"]/g,(q)=>({"\r":"%0D","\n":"%0A",'"':"%22"})[q])}}var ASK,kS6,_a=`\r
`,qSK,KSK=2,YSK=(A,q,K)=>{let{tag:Y="form-data-boundary",size:z=25,boundary:w=Y+"-"+bz.generateString(z,ASK)}=K||{};if(!A8.isFormData(A))throw TypeError("FormData instance required");if(w.length<1||w.length>70)throw Error("boundary must be 10-70 characters long");let _=kS6.encode("--"+w+_a),$=kS6.encode("--"+w+"--"+_a+_a),O=$.byteLength,H=Array.from(A.entries()).map(([J,M])=>{let D=new ZGA(J,M);return O+=D.size,D});O+=_.byteLength*H.length,O=A8.toFiniteNumber(O);let j={"Content-Type":`multipart/form-data; boundary=${w}`};if(Number.isFinite(O))j["Content-Length"]=O;return q&&q(j),eRK.from(async function*(){for(let J of H)yield _,yield*J.encode();yield $}())},fGA;var TGA=E(()=>{Y_();pn1();EC();ASK=bz.ALPHABET.ALPHA_DIGIT+"-_",kS6=typeof TextEncoder==="function"?new TextEncoder:new tRK.TextEncoder,qSK=kS6.encode(_a);fGA=YSK});import zSK from"stream";var vGA,VGA;var NGA=E(()=>{vGA=class vGA extends zSK.Transform{__transform(A,q,K){this.push(A),K()}_transform(A,q,K){if(A.length!==0){if(this._transform=this.__transform,A[0]!==120){let Y=Buffer.alloc(2);Y[0]=120,Y[1]=156,this.push(Y,q)}}this.__transform(A,q,K)}};VGA=vGA});var wSK=(A,q)=>{return A8.isAsyncFn(A)?function(...K){let Y=K.pop();A.apply(this,K).then((z)=>{try{q?Y(null,...q(z)):Y(null,z)}catch(w){Y(w)}},Y)}:A},kGA;var EGA=E(()=>{Y_();kGA=wSK});function _SK(A,q){A=A||10;let K=Array(A),Y=Array(A),z=0,w=0,_;return q=q!==void 0?q:1000,function(O){let H=Date.now(),j=Y[w];if(!_)_=H;K[z]=O,Y[z]=H;let J=w,M=0;while(J!==z)M+=K[J++],J=J%A;if(z=(z+1)%A,z===w)w=(w+1)%A;if(H-_<q)return;let D=j&&H-j;return D?Math.round(M*1000/D):void 0}}var LGA;var yGA=E(()=>{LGA=_SK});function $SK(A,q){let K=0,Y=1000/q,z,w,_=(H,j=Date.now())=>{if(K=j,z=null,w)clearTimeout(w),w=null;A.apply(null,H)};return[(...H)=>{let j=Date.now(),J=j-K;if(J>=Y)_(H,j);else if(z=H,!w)w=setTimeout(()=>{w=null,_(z)},Y-J)},()=>z&&_(z)]}var RGA;var SGA=E(()=>{RGA=$SK});var GU=(A,q,K=3)=>{let Y=0,z=LGA(50,250);return RGA((w)=>{let _=w.loaded,$=w.lengthComputable?w.total:void 0,O=_-Y,H=z(O),j=_<=$;Y=_;let J={loaded:_,total:$,progress:$?_/$:void 0,bytes:O,rate:H?H:void 0,estimated:H&&$&&j?($-_)/H:void 0,event:w,lengthComputable:$!=null,[q?"download":"upload"]:!0};A(J)},K)},Zj6=(A,q)=>{let K=A!=null;return[(Y)=>q[0]({lengthComputable:K,total:A,loaded:Y}),q[1]]},fj6=(A)=>(...q)=>A8.asap(()=>A(...q));var O71=E(()=>{yGA();SGA();Y_()});import OSK from"http";import HSK from"https";import jSK from"util";import $a from"zlib";import Tj6 from"stream";import{EventEmitter as JSK}from"events";function WSK(A,q){if(A.beforeRedirects.proxy)A.beforeRedirects.proxy(A);if(A.beforeRedirects.config)A.beforeRedirects.config(A,q)}function BGA(A,q,K){let Y=q;if(!Y&&Y!==!1){let z=uGA.default.getProxyForUrl(K);if(z)Y=new URL(z)}if(Y){if(Y.username)Y.auth=(Y.username||"")+":"+(Y.password||"");if(Y.auth){if(Y.auth.username||Y.auth.password)Y.auth=(Y.auth.username||"")+":"+(Y.auth.password||"");let w=Buffer.from(Y.auth,"utf8").toString("base64");A.headers["Proxy-Authorization"]="Basic "+w}A.headers.host=A.hostname+(A.port?":"+A.port:"");let z=Y.hostname||Y.host;if(A.hostname=z,A.host=z,A.port=Y.port,A.path=K,Y.protocol)A.protocol=Y.protocol.includes(":")?Y.protocol:`${Y.protocol}:`}A.beforeRedirects.proxy=function(w){BGA(w,q,w.href)}}var uGA,mGA,hGA,MSK,CGA,DSK,XSK,PSK,IGA,xGA=(A,[q,K])=>{return A.on("end",K).on("error",K),q},GSK,ZSK=(A)=>{return new Promise((q,K)=>{let Y,z,w=(O,H)=>{if(z)return;z=!0,Y&&Y(O,H)},_=(O)=>{w(O),q(O)},$=(O)=>{w(O,!0),K(O)};A(_,$,(O)=>Y=O).catch($)})},fSK=({address:A,family:q})=>{if(!A8.isString(A))throw TypeError("address must be a string");return{address:A,family:q||(A.indexOf(".")<0?6:4)}},bGA=(A,q)=>fSK(A8.isObject(A)?A:{address:A,family:q}),gGA;var pGA=E(()=>{Y_();w71();_71();A71();q71();sN();h46();EC();XGA();Hm();WGA();TGA();pn1();NGA();EGA();O71();uGA=q6(_GA(),1),mGA=q6(DGA(),1),hGA={flush:$a.constants.Z_SYNC_FLUSH,finishFlush:$a.constants.Z_SYNC_FLUSH},MSK={flush:$a.constants.BROTLI_OPERATION_FLUSH,finishFlush:$a.constants.BROTLI_OPERATION_FLUSH},CGA=A8.isFunction($a.createBrotliDecompress),{http:DSK,https:XSK}=mGA.default,PSK=/https:?/,IGA=bz.protocols.map((A)=>{return A+":"});GSK=typeof process<"u"&&A8.kindOf(process)==="process",gGA=GSK&&function(q){return ZSK(async function(Y,z,w){let{data:_,lookup:$,family:O}=q,{responseType:H,responseEncoding:j}=q,J=q.method.toUpperCase(),M,D=!1,X;if($){let d=kGA($,(A6)=>A8.isArray(A6)?A6:[A6]);$=(A6,e,O6)=>{d(A6,e,(P6,f6,a)=>{if(P6)return O6(P6);let s=A8.isArray(f6)?f6.map((_6)=>bGA(_6)):[bGA(f6,a)];e.all?O6(P6,s):O6(P6,s[0].address,s[0].family)})}}let P=new JSK,W=()=>{if(q.cancelToken)q.cancelToken.unsubscribe(G);if(q.signal)q.signal.removeEventListener("abort",G);P.removeAllListeners()};w((d,A6)=>{if(M=!0,A6)D=!0,W()});function G(d){P.emit("abort",!d||d.type?new tN(null,q,X):d)}if(P.once("abort",z),q.cancelToken||q.signal){if(q.cancelToken&&q.cancelToken.subscribe(G),q.signal)q.signal.aborted?G():q.signal.addEventListener("abort",G)}let Z=C46(q.baseURL,q.url,q.allowAbsoluteUrls),f=new URL(Z,bz.hasBrowserEnv?bz.origin:void 0),v=f.protocol||IGA[0];if(v==="data:"){let d;if(J!=="GET")return jm(Y,z,{status:405,statusText:"method not allowed",headers:{},config:q});try{d=mn1(q.url,H==="blob",{Blob:q.env&&q.env.Blob})}catch(A6){throw G4.from(A6,G4.ERR_BAD_REQUEST,q)}if(H==="text"){if(d=d.toString(j),!j||j==="utf8")d=A8.stripBOM(d)}else if(H==="stream")d=Tj6.Readable.from(d);return jm(Y,z,{data:d,status:200,statusText:"OK",headers:new XH,config:q})}if(IGA.indexOf(v)===-1)return z(new G4("Unsupported protocol "+v,G4.ERR_BAD_REQUEST,q));let V=XH.from(q.headers).normalize();V.set("User-Agent","axios/"+b46,!1);let{onUploadProgress:N,onDownloadProgress:L}=q,S=q.maxRate,C=void 0,m=void 0;if(A8.isSpecCompliantForm(_)){let d=V.getContentType(/boundary=([-_\w\d]{10,70})/i);_=fGA(_,(A6)=>{V.set(A6)},{tag:`axios-${b46}-boundary`,boundary:d&&d[1]||void 0})}else if(A8.isFormData(_)&&A8.isFunction(_.getHeaders)){if(V.set(_.getHeaders()),!V.hasContentLength())try{let d=await jSK.promisify(_.getLength).call(_);Number.isFinite(d)&&d>=0&&V.setContentLength(d)}catch(d){}}else if(A8.isBlob(_)||A8.isFile(_))_.size&&V.setContentType(_.type||"application/octet-stream"),V.setContentLength(_.size||0),_=Tj6.Readable.from($71(_));else if(_&&!A8.isStream(_)){if(Buffer.isBuffer(_));else if(A8.isArrayBuffer(_))_=Buffer.from(new Uint8Array(_));else if(A8.isString(_))_=Buffer.from(_,"utf-8");else return z(new G4("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",G4.ERR_BAD_REQUEST,q));if(V.setContentLength(_.length,!1),q.maxBodyLength>-1&&_.length>q.maxBodyLength)return z(new G4("Request body larger than maxBodyLength limit",G4.ERR_BAD_REQUEST,q))}let x=A8.toFiniteNumber(V.getContentLength());if(A8.isArray(S))C=S[0],m=S[1];else C=m=S;if(_&&(N||C)){if(!A8.isStream(_))_=Tj6.Readable.from(_,{objectMode:!1});_=Tj6.pipeline([_,new gn1({maxRate:A8.toFiniteNumber(C)})],A8.noop),N&&_.on("progress",xGA(_,Zj6(x,GU(fj6(N),!1,3))))}let p=void 0;if(q.auth){let d=q.auth.username||"",A6=q.auth.password||"";p=d+":"+A6}if(!p&&f.username){let{username:d,password:A6}=f;p=d+":"+A6}p&&V.delete("authorization");let g;try{g=S46(f.pathname+f.search,q.params,q.paramsSerializer).replace(/^\?/,"")}catch(d){let A6=Error(d.message);return A6.config=q,A6.url=q.url,A6.exists=!0,z(A6)}V.set("Accept-Encoding","gzip, compress, deflate"+(CGA?", br":""),!1);let b={path:g,method:J,headers:V.toJSON(),agents:{http:q.httpAgent,https:q.httpsAgent},auth:p,protocol:v,family:O,beforeRedirect:WSK,beforeRedirects:{}};if(!A8.isUndefined($)&&(b.lookup=$),q.socketPath)b.socketPath=q.socketPath;else b.hostname=f.hostname.startsWith("[")?f.hostname.slice(1,-1):f.hostname,b.port=f.port,BGA(b,q.proxy,v+"//"+f.hostname+(f.port?":"+f.port:"")+b.path);let Q,c=PSK.test(b.protocol);if(b.agent=c?q.httpsAgent:q.httpAgent,q.transport)Q=q.transport;else if(q.maxRedirects===0)Q=c?HSK:OSK;else{if(q.maxRedirects)b.maxRedirects=q.maxRedirects;if(q.beforeRedirect)b.beforeRedirects.config=q.beforeRedirect;Q=c?XSK:DSK}if(q.maxBodyLength>-1)b.maxBodyLength=q.maxBodyLength;else b.maxBodyLength=1/0;if(q.insecureHTTPParser)b.insecureHTTPParser=q.insecureHTTPParser;if(X=Q.request(b,function(A6){if(X.destroyed)return;let e=[A6],O6=+A6.headers["content-length"];if(L||m){let _6=new gn1({maxRate:A8.toFiniteNumber(m)});L&&_6.on("progress",xGA(_6,Zj6(O6,GU(fj6(L),!0,3)))),e.push(_6)}let P6=A6,f6=A6.req||X;if(q.decompress!==!1&&A6.headers["content-encoding"]){if(J==="HEAD"||A6.statusCode===204)delete A6.headers["content-encoding"];switch((A6.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":e.push($a.createUnzip(hGA)),delete A6.headers["content-encoding"];break;case"deflate":e.push(new VGA),e.push($a.createUnzip(hGA)),delete A6.headers["content-encoding"];break;case"br":if(CGA)e.push($a.createBrotliDecompress(MSK)),delete A6.headers["content-encoding"]}}P6=e.length>1?Tj6.pipeline(e,A8.noop):e[0];let a=Tj6.finished(P6,()=>{a(),W()}),s={status:A6.statusCode,statusText:A6.statusMessage,headers:new XH(A6.headers),config:q,request:f6};if(H==="stream")s.data=P6,jm(Y,z,s);else{let _6=[],H6=0;P6.on("data",function(V6){if(_6.push(V6),H6+=V6.length,q.maxContentLength>-1&&H6>q.maxContentLength)D=!0,P6.destroy(),z(new G4("maxContentLength size of "+q.maxContentLength+" exceeded",G4.ERR_BAD_RESPONSE,q,f6))}),P6.on("aborted",function(){if(D)return;let V6=new G4("stream has been aborted",G4.ERR_BAD_RESPONSE,q,f6);P6.destroy(V6),z(V6)}),P6.on("error",function(V6){if(X.destroyed)return;z(G4.from(V6,null,q,f6))}),P6.on("end",function(){try{let V6=_6.length===1?_6[0]:Buffer.concat(_6);if(H!=="arraybuffer"){if(V6=V6.toString(j),!j||j==="utf8")V6=A8.stripBOM(V6)}s.data=V6}catch(V6){return z(G4.from(V6,null,q,s.request,s))}jm(Y,z,s)})}P.once("abort",(_6)=>{if(!P6.destroyed)P6.emit("error",_6),P6.destroy()})}),P.once("abort",(d)=>{z(d),X.destroy(d)}),X.on("error",function(A6){z(G4.from(A6,null,q,X))}),X.on("socket",function(A6){A6.setKeepAlive(!0,60000)}),q.timeout){let d=parseInt(q.timeout,10);if(Number.isNaN(d)){z(new G4("error trying to parse `config.timeout` to int",G4.ERR_BAD_OPTION_VALUE,q,X));return}X.setTimeout(d,function(){if(M)return;let e=q.timeout?"timeout of "+q.timeout+"ms exceeded":"timeout exceeded",O6=q.transitional||Pj6;if(q.timeoutErrorMessage)e=q.timeoutErrorMessage;z(new G4(e,O6.clarifyTimeoutError?G4.ETIMEDOUT:G4.ECONNABORTED,q,X)),G()})}if(A8.isStream(_)){let d=!1,A6=!1;_.on("end",()=>{d=!0}),_.once("error",(e)=>{A6=!0,X.destroy(e)}),_.on("close",()=>{if(!d&&!A6)G(new tN("Request stream has been aborted",q,X))}),_.pipe(X)}else X.end(_)})}});var FGA;var QGA=E(()=>{EC();FGA=bz.hasStandardBrowserEnv?((A,q)=>(K)=>{return K=new URL(K,bz.origin),A.protocol===K.protocol&&A.host===K.host&&(q||A.port===K.port)})(new URL(bz.origin),bz.navigator&&/(msie|trident)/i.test(bz.navigator.userAgent)):()=>!0});var UGA;var dGA=E(()=>{Y_();EC();UGA=bz.hasStandardBrowserEnv?{write(A,q,K,Y,z,w){let _=[A+"="+encodeURIComponent(q)];A8.isNumber(K)&&_.push("expires="+new Date(K).toGMTString()),A8.isString(Y)&&_.push("path="+Y),A8.isString(z)&&_.push("domain="+z),w===!0&&_.push("secure"),document.cookie=_.join("; ")},read(A){let q=document.cookie.match(new RegExp("(^|;\\s*)("+A+")=([^;]*)"));return q?decodeURIComponent(q[3]):null},remove(A){this.write(A,"",Date.now()-86400000)}}:{write(){},read(){return null},remove(){}}});function LC(A,q){q=q||{};let K={};function Y(H,j,J,M){if(A8.isPlainObject(H)&&A8.isPlainObject(j))return A8.merge.call({caseless:M},H,j);else if(A8.isPlainObject(j))return A8.merge({},j);else if(A8.isArray(j))return j.slice();return j}function z(H,j,J,M){if(!A8.isUndefined(j))return Y(H,j,J,M);else if(!A8.isUndefined(H))return Y(void 0,H,J,M)}function w(H,j){if(!A8.isUndefined(j))return Y(void 0,j)}function _(H,j){if(!A8.isUndefined(j))return Y(void 0,j);else if(!A8.isUndefined(H))return Y(void 0,H)}function $(H,j,J){if(J in q)return Y(H,j);else if(J in A)return Y(void 0,H)}let O={url:w,method:w,data:w,baseURL:_,transformRequest:_,transformResponse:_,paramsSerializer:_,timeout:_,timeoutMessage:_,withCredentials:_,withXSRFToken:_,adapter:_,responseType:_,xsrfCookieName:_,xsrfHeaderName:_,onUploadProgress:_,onDownloadProgress:_,decompress:_,maxContentLength:_,maxBodyLength:_,beforeRedirect:_,transport:_,httpAgent:_,httpsAgent:_,cancelToken:_,socketPath:_,responseEncoding:_,validateStatus:$,headers:(H,j,J)=>z(cGA(H),cGA(j),J,!0)};return A8.forEach(Object.keys(Object.assign({},A,q)),function(j){let J=O[j]||z,M=J(A[j],q[j],j);A8.isUndefined(M)&&J!==$||(K[j]=M)}),K}var cGA=(A)=>A instanceof XH?{...A}:A;var H71=E(()=>{Y_();Hm()});var j71=(A)=>{let q=LC({},A),{data:K,withXSRFToken:Y,xsrfHeaderName:z,xsrfCookieName:w,headers:_,auth:$}=q;if(q.headers=_=XH.from(_),q.url=S46(C46(q.baseURL,q.url,q.allowAbsoluteUrls),A.params,A.paramsSerializer),$)_.set("Authorization","Basic "+btoa(($.username||"")+":"+($.password?unescape(encodeURIComponent($.password)):"")));let O;if(A8.isFormData(K)){if(bz.hasStandardBrowserEnv||bz.hasStandardBrowserWebWorkerEnv)_.setContentType(void 0);else if((O=_.getContentType())!==!1){let[H,...j]=O?O.split(";").map((J)=>J.trim()).filter(Boolean):[];_.setContentType([H||"multipart/form-data",...j].join("; "))}}if(bz.hasStandardBrowserEnv){if(Y&&A8.isFunction(Y)&&(Y=Y(q)),Y||Y!==!1&&FGA(q.url)){let H=z&&w&&UGA.read(w);if(H)_.set(z,H)}}return q};var Fn1=E(()=>{EC();Y_();QGA();dGA();_71();H71();Hm();A71()});var TSK,lGA;var iGA=E(()=>{Y_();w71();q71();sN();h46();EC();Hm();O71();Fn1();TSK=typeof XMLHttpRequest<"u",lGA=TSK&&function(A){return new Promise(function(K,Y){let z=j71(A),w=z.data,_=XH.from(z.headers).normalize(),{responseType:$,onUploadProgress:O,onDownloadProgress:H}=z,j,J,M,D,X;function P(){D&&D(),X&&X(),z.cancelToken&&z.cancelToken.unsubscribe(j),z.signal&&z.signal.removeEventListener("abort",j)}let W=new XMLHttpRequest;W.open(z.method.toUpperCase(),z.url,!0),W.timeout=z.timeout;function G(){if(!W)return;let f=XH.from("getAllResponseHeaders"in W&&W.getAllResponseHeaders()),V={data:!$||$==="text"||$==="json"?W.responseText:W.response,status:W.status,statusText:W.statusText,headers:f,config:A,request:W};jm(function(L){K(L),P()},function(L){Y(L),P()},V),W=null}if("onloadend"in W)W.onloadend=G;else W.onreadystatechange=function(){if(!W||W.readyState!==4)return;if(W.status===0&&!(W.responseURL&&W.responseURL.indexOf("file:")===0))return;setTimeout(G)};if(W.onabort=function(){if(!W)return;Y(new G4("Request aborted",G4.ECONNABORTED,A,W)),W=null},W.onerror=function(){Y(new G4("Network Error",G4.ERR_NETWORK,A,W)),W=null},W.ontimeout=function(){let v=z.timeout?"timeout of "+z.timeout+"ms exceeded":"timeout exceeded",V=z.transitional||Pj6;if(z.timeoutErrorMessage)v=z.timeoutErrorMessage;Y(new G4(v,V.clarifyTimeoutError?G4.ETIMEDOUT:G4.ECONNABORTED,A,W)),W=null},w===void 0&&_.setContentType(null),"setRequestHeader"in W)A8.forEach(_.toJSON(),function(v,V){W.setRequestHeader(V,v)});if(!A8.isUndefined(z.withCredentials))W.withCredentials=!!z.withCredentials;if($&&$!=="json")W.responseType=z.responseType;if(H)[M,X]=GU(H,!0),W.addEventListener("progress",M);if(O&&W.upload)[J,D]=GU(O),W.upload.addEventListener("progress",J),W.upload.addEventListener("loadend",D);if(z.cancelToken||z.signal){if(j=(f)=>{if(!W)return;Y(!f||f.type?new tN(null,A,W):f),W.abort(),W=null},z.cancelToken&&z.cancelToken.subscribe(j),z.signal)z.signal.aborted?j():z.signal.addEventListener("abort",j)}let Z=NS6(z.url);if(Z&&bz.protocols.indexOf(Z)===-1){Y(new G4("Unsupported protocol "+Z+":",G4.ERR_BAD_REQUEST,A));return}W.send(w||null)})}});var vSK=(A,q)=>{let{length:K}=A=A?A.filter(Boolean):[];if(q||K){let Y=new AbortController,z,w=function(H){if(!z){z=!0,$();let j=H instanceof Error?H:this.reason;Y.abort(j instanceof G4?j:new tN(j instanceof Error?j.message:j))}},_=q&&setTimeout(()=>{_=null,w(new G4(`timeout ${q} of ms exceeded`,G4.ETIMEDOUT))},q),$=()=>{if(A)_&&clearTimeout(_),_=null,A.forEach((H)=>{H.unsubscribe?H.unsubscribe(w):H.removeEventListener("abort",w)}),A=null};A.forEach((H)=>H.addEventListener("abort",w));let{signal:O}=Y;return O.unsubscribe=()=>A8.asap($),O}},nGA;var rGA=E(()=>{h46();sN();Y_();nGA=vSK});var VSK=function*(A,q){let K=A.byteLength;if(!q||K<q){yield A;return}let Y=0,z;while(Y<K)z=Y+q,yield A.slice(Y,z),Y=z},NSK=async function*(A,q){for await(let K of kSK(A))yield*VSK(K,q)},kSK=async function*(A){if(A[Symbol.asyncIterator]){yield*A;return}let q=A.getReader();try{for(;;){let{done:K,value:Y}=await q.read();if(K)break;yield Y}}finally{await q.cancel()}},Qn1=(A,q,K,Y)=>{let z=NSK(A,q),w=0,_,$=(O)=>{if(!_)_=!0,Y&&Y(O)};return new ReadableStream({async pull(O){try{let{done:H,value:j}=await z.next();if(H){$(),O.close();return}let J=j.byteLength;if(K){let M=w+=J;K(M)}O.enqueue(new Uint8Array(j))}catch(H){throw $(H),H}},cancel(O){return $(O),z.return()}},{highWaterMark:2})};var M71,aGA,ESK,sGA=(A,...q)=>{try{return!!A(...q)}catch(K){return!1}},LSK,oGA=65536,Un1,J71,ySK=async(A)=>{if(A==null)return 0;if(A8.isBlob(A))return A.size;if(A8.isSpecCompliantForm(A))return(await new Request(bz.origin,{method:"POST",body:A}).arrayBuffer()).byteLength;if(A8.isArrayBufferView(A)||A8.isArrayBuffer(A))return A.byteLength;if(A8.isURLSearchParams(A))A=A+"";if(A8.isString(A))return(await ESK(A)).byteLength},RSK=async(A,q)=>{let K=A8.toFiniteNumber(A.getContentLength());return K==null?ySK(q):K},tGA;var eGA=E(()=>{EC();Y_();sN();rGA();Hm();O71();Fn1();w71();M71=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function",aGA=M71&&typeof ReadableStream==="function",ESK=M71&&(typeof TextEncoder==="function"?((A)=>(q)=>A.encode(q))(new TextEncoder):async(A)=>new Uint8Array(await new Response(A).arrayBuffer())),LSK=aGA&&sGA(()=>{let A=!1,q=new Request(bz.origin,{body:new ReadableStream,method:"POST",get duplex(){return A=!0,"half"}}).headers.has("Content-Type");return A&&!q}),Un1=aGA&&sGA(()=>A8.isReadableStream(new Response("").body)),J71={stream:Un1&&((A)=>A.body)};M71&&((A)=>{["text","arrayBuffer","blob","formData","stream"].forEach((q)=>{!J71[q]&&(J71[q]=A8.isFunction(A[q])?(K)=>K[q]():(K,Y)=>{throw new G4(`Response type '${q}' is not supported`,G4.ERR_NOT_SUPPORT,Y)})})})(new Response);tGA=M71&&(async(A)=>{let{url:q,method:K,data:Y,signal:z,cancelToken:w,timeout:_,onDownloadProgress:$,onUploadProgress:O,responseType:H,headers:j,withCredentials:J="same-origin",fetchOptions:M}=j71(A);H=H?(H+"").toLowerCase():"text";let D=nGA([z,w&&w.toAbortSignal()],_),X,P=D&&D.unsubscribe&&(()=>{D.unsubscribe()}),W;try{if(O&&LSK&&K!=="get"&&K!=="head"&&(W=await RSK(j,Y))!==0){let V=new Request(q,{method:"POST",body:Y,duplex:"half"}),N;if(A8.isFormData(Y)&&(N=V.headers.get("content-type")))j.setContentType(N);if(V.body){let[L,S]=Zj6(W,GU(fj6(O)));Y=Qn1(V.body,oGA,L,S)}}if(!A8.isString(J))J=J?"include":"omit";let G="credentials"in Request.prototype;X=new Request(q,{...M,signal:D,method:K.toUpperCase(),headers:j.normalize().toJSON(),body:Y,duplex:"half",credentials:G?J:void 0});let Z=await fetch(X),f=Un1&&(H==="stream"||H==="response");if(Un1&&($||f&&P)){let V={};["status","statusText","headers"].forEach((C)=>{V[C]=Z[C]});let N=A8.toFiniteNumber(Z.headers.get("content-length")),[L,S]=$&&Zj6(N,GU(fj6($),!0))||[];Z=new Response(Qn1(Z.body,oGA,L,()=>{S&&S(),P&&P()}),V)}H=H||"text";let v=await J71[A8.findKey(J71,H)||"text"](Z,A);return!f&&P&&P(),await new Promise((V,N)=>{jm(V,N,{data:v,headers:XH.from(Z.headers),status:Z.status,statusText:Z.statusText,config:A,request:X})})}catch(G){if(P&&P(),G&&G.name==="TypeError"&&/fetch/i.test(G.message))throw Object.assign(new G4("Network Error",G4.ERR_NETWORK,A,X),{cause:G.cause||G});throw G4.from(G,G&&G.code,A,X)}})});var dn1,AZA=(A)=>`- ${A}`,SSK=(A)=>A8.isFunction(A)||A===null||A===!1,D71;var cn1=E(()=>{Y_();pGA();iGA();eGA();sN();dn1={http:gGA,xhr:lGA,fetch:tGA};A8.forEach(dn1,(A,q)=>{if(A){try{Object.defineProperty(A,"name",{value:q})}catch(K){}Object.defineProperty(A,"adapterName",{value:q})}});D71={getAdapter:(A)=>{A=A8.isArray(A)?A:[A];let{length:q}=A,K,Y,z={};for(let w=0;w<q;w++){K=A[w];let _;if(Y=K,!SSK(K)){if(Y=dn1[(_=String(K)).toLowerCase()],Y===void 0)throw new G4(`Unknown adapter '${_}'`)}if(Y)break;z[_||"#"+w]=Y}if(!Y){let w=Object.entries(z).map(([$,O])=>`adapter ${$} `+(O===!1?"is not supported by the environment":"is not available in the build")),_=q?w.length>1?`since :
`+w.map(AZA).join(`
`):" "+AZA(w[0]):"as no adapter specified";throw new G4("There is no suitable adapter to dispatch the request "+_,"ERR_NOT_SUPPORT")}return Y},adapters:dn1}});function ln1(A){if(A.cancelToken)A.cancelToken.throwIfRequested();if(A.signal&&A.signal.aborted)throw new tN(null,A)}function X71(A){if(ln1(A),A.headers=XH.from(A.headers),A.data=GS6.call(A,A.transformRequest),["post","put","patch"].indexOf(A.method)!==-1)A.headers.setContentType("application/x-www-form-urlencoded",!1);return D71.getAdapter(A.adapter||Wj6.adapter)(A).then(function(Y){return ln1(A),Y.data=GS6.call(A,A.transformResponse,Y),Y.headers=XH.from(Y.headers),Y},function(Y){if(!ZS6(Y)){if(ln1(A),Y&&Y.response)Y.response.data=GS6.call(A,A.transformResponse,Y.response),Y.response.headers=XH.from(Y.response.headers)}return Promise.reject(Y)})}var qZA=E(()=>{zGA();Y71();h46();Hm();cn1()});function hSK(A,q,K){if(typeof A!=="object")throw new G4("options must be an object",G4.ERR_BAD_OPTION_VALUE);let Y=Object.keys(A),z=Y.length;while(z-- >0){let w=Y[z],_=q[w];if(_){let $=A[w],O=$===void 0||_($,w,A);if(O!==!0)throw new G4("option "+w+" must be "+O,G4.ERR_BAD_OPTION_VALUE);continue}if(K!==!0)throw new G4("Unknown option "+w,G4.ERR_BAD_OPTION)}}var P71,KZA,ES6;var YZA=E(()=>{sN();P71={};["object","boolean","number","function","string","symbol"].forEach((A,q)=>{P71[A]=function(Y){return typeof Y===A||"a"+(q<1?"n ":" ")+A}});KZA={};P71.transitional=function(q,K,Y){function z(w,_){return"[Axios v"+b46+"] Transitional option '"+w+"'"+_+(Y?". "+Y:"")}return(w,_,$)=>{if(q===!1)throw new G4(z(_," has been removed"+(K?" in "+K:"")),G4.ERR_DEPRECATED);if(K&&!KZA[_])KZA[_]=!0,console.warn(z(_," has been deprecated since v"+K+" and will be removed in the near future"));return q?q(w,_,$):!0}};P71.spelling=function(q){return(K,Y)=>{return console.warn(`${Y} is likely a misspelling of ${q}`),!0}};ES6={assertOptions:hSK,validators:P71}});class LS6{constructor(A){this.defaults=A,this.interceptors={request:new Dn1,response:new Dn1}}async request(A,q){try{return await this._request(A,q)}catch(K){if(K instanceof Error){let Y={};Error.captureStackTrace?Error.captureStackTrace(Y):Y=Error();let z=Y.stack?Y.stack.replace(/^.+\n/,""):"";try{if(!K.stack)K.stack=z;else if(z&&!String(K.stack).endsWith(z.replace(/^.+\n.+\n/,"")))K.stack+=`
`+z}catch(w){}}throw K}}_request(A,q){if(typeof A==="string")q=q||{},q.url=A;else q=A||{};q=LC(this.defaults,q);let{transitional:K,paramsSerializer:Y,headers:z}=q;if(K!==void 0)ES6.assertOptions(K,{silentJSONParsing:Jm.transitional(Jm.boolean),forcedJSONParsing:Jm.transitional(Jm.boolean),clarifyTimeoutError:Jm.transitional(Jm.boolean)},!1);if(Y!=null)if(A8.isFunction(Y))q.paramsSerializer={serialize:Y};else ES6.assertOptions(Y,{encode:Jm.function,serialize:Jm.function},!0);if(q.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)q.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else q.allowAbsoluteUrls=!0;ES6.assertOptions(q,{baseUrl:Jm.spelling("baseURL"),withXsrfToken:Jm.spelling("withXSRFToken")},!0),q.method=(q.method||this.defaults.method||"get").toLowerCase();let w=z&&A8.merge(z.common,z[q.method]);z&&A8.forEach(["delete","get","head","post","put","patch","common"],(D)=>{delete z[D]}),q.headers=XH.concat(w,z);let _=[],$=!0;this.interceptors.request.forEach(function(X){if(typeof X.runWhen==="function"&&X.runWhen(q)===!1)return;$=$&&X.synchronous,_.unshift(X.fulfilled,X.rejected)});let O=[];this.interceptors.response.forEach(function(X){O.push(X.fulfilled,X.rejected)});let H,j=0,J;if(!$){let D=[X71.bind(this),void 0];D.unshift.apply(D,_),D.push.apply(D,O),J=D.length,H=Promise.resolve(q);while(j<J)H=H.then(D[j++],D[j++]);return H}J=_.length;let M=q;j=0;while(j<J){let D=_[j++],X=_[j++];try{M=D(M)}catch(P){X.call(this,P);break}}try{H=X71.call(this,M)}catch(D){return Promise.reject(D)}j=0,J=O.length;while(j<J)H=H.then(O[j++],O[j++]);return H}getUri(A){A=LC(this.defaults,A);let q=C46(A.baseURL,A.url,A.allowAbsoluteUrls);return S46(q,A.params,A.paramsSerializer)}}var Jm,yS6;var zZA=E(()=>{Y_();A71();iWA();qZA();H71();_71();YZA();Hm();Jm=ES6.validators;A8.forEach(["delete","get","head","options"],function(q){LS6.prototype[q]=function(K,Y){return this.request(LC(Y||{},{method:q,url:K,data:(Y||{}).data}))}});A8.forEach(["post","put","patch"],function(q){function K(Y){return function(w,_,$){return this.request(LC($||{},{method:q,headers:Y?{"Content-Type":"multipart/form-data"}:{},url:w,data:_}))}}LS6.prototype[q]=K(),LS6.prototype[q+"Form"]=K(!0)});yS6=LS6});class in1{constructor(A){if(typeof A!=="function")throw TypeError("executor must be a function.");let q;this.promise=new Promise(function(z){q=z});let K=this;this.promise.then((Y)=>{if(!K._listeners)return;let z=K._listeners.length;while(z-- >0)K._listeners[z](Y);K._listeners=null}),this.promise.then=(Y)=>{let z,w=new Promise((_)=>{K.subscribe(_),z=_}).then(Y);return w.cancel=function(){K.unsubscribe(z)},w},A(function(z,w,_){if(K.reason)return;K.reason=new tN(z,w,_),q(K.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(A){if(this.reason){A(this.reason);return}if(this._listeners)this._listeners.push(A);else this._listeners=[A]}unsubscribe(A){if(!this._listeners)return;let q=this._listeners.indexOf(A);if(q!==-1)this._listeners.splice(q,1)}toAbortSignal(){let A=new AbortController,q=(K)=>{A.abort(K)};return this.subscribe(q),A.signal.unsubscribe=()=>this.unsubscribe(q),A.signal}static source(){let A;return{token:new in1(function(Y){A=Y}),cancel:A}}}var wZA;var _ZA=E(()=>{h46();wZA=in1});function nn1(A){return function(K){return A.apply(null,K)}}function rn1(A){return A8.isObject(A)&&A.isAxiosError===!0}var $ZA=E(()=>{Y_()});var on1,OZA;var HZA=E(()=>{on1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(on1).forEach(([A,q])=>{on1[q]=A});OZA=on1});function jZA(A){let q=new yS6(A),K=$S6(yS6.prototype.request,q);return A8.extend(K,yS6.prototype,q,{allOwnKeys:!0}),A8.extend(K,q,null,{allOwnKeys:!0}),K.create=function(z){return jZA(LC(A,z))},K}var KM,Q8;var JZA=E(()=>{Y_();zZA();H71();Y71();fn1();h46();_ZA();XS6();sN();$ZA();Hm();cn1();HZA();KM=jZA(Wj6);KM.Axios=yS6;KM.CanceledError=tN;KM.CancelToken=wZA;KM.isCancel=ZS6;KM.VERSION=b46;KM.toFormData=wa;KM.AxiosError=G4;KM.Cancel=KM.CanceledError;KM.all=function(q){return Promise.all(q)};KM.spread=nn1;KM.isAxiosError=rn1;KM.mergeConfig=LC;KM.AxiosHeaders=XH;KM.formToJSON=(A)=>K71(A8.isHTMLForm(A)?new FormData(A):A);KM.getAdapter=D71.getAdapter;KM.HttpStatusCode=OZA;KM.default=KM;Q8=KM});var RS6={};d1(RS6,{toFormData:()=>QSK,spread:()=>FSK,mergeConfig:()=>iSK,isCancel:()=>bSK,isAxiosError:()=>pSK,getAdapter:()=>lSK,formToJSON:()=>cSK,default:()=>Q8,all:()=>BSK,VERSION:()=>mSK,HttpStatusCode:()=>dSK,CanceledError:()=>xSK,CancelToken:()=>uSK,Cancel:()=>gSK,AxiosHeaders:()=>USK,AxiosError:()=>ISK,Axios:()=>CSK});var CSK,ISK,xSK,bSK,uSK,mSK,BSK,gSK,pSK,FSK,QSK,USK,dSK,cSK,lSK,iSK;var M3=E(()=>{JZA();({Axios:CSK,AxiosError:ISK,CanceledError:xSK,isCancel:bSK,CancelToken:uSK,VERSION:mSK,all:BSK,Cancel:gSK,isAxiosError:pSK,spread:FSK,toFormData:QSK,AxiosHeaders:USK,HttpStatusCode:dSK,formToJSON:cSK,getAdapter:lSK,mergeConfig:iSK}=Q8)});import{join as an1}from"path";import{homedir as nSK}from"os";async function vj6(A){try{return!!await z0(A)}catch{return!1}}function eSK(){if(process.env.CURSOR_TRACE_ID)return"cursor";if(process.env.VSCODE_GIT_ASKPASS_MAIN?.includes("cursor"))return"cursor";if(process.env.VSCODE_GIT_ASKPASS_MAIN?.includes("windsurf"))return"windsurf";if(process.env.VSCODE_GIT_ASKPASS_MAIN?.includes("antigravity"))return"antigravity";let A=process.env.__CFBundleIdentifier?.toLowerCase();if(A?.includes("vscodium"))return"codium";if(A?.includes("windsurf"))return"windsurf";if(A?.includes("com.google.android.studio"))return"androidstudio";if(A){for(let q of sn1)if(A.includes(q))return q}if(process.env.VisualStudioVersion)return"visualstudio";if(process.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"){if(process.platform==="darwin")return"pycharm";return"pycharm"}if(process.env.TERM==="xterm-ghostty")return"ghostty";if(process.env.TERM?.includes("kitty"))return"kitty";if(process.env.TERM_PROGRAM)return process.env.TERM_PROGRAM;if(process.env.TMUX)return"tmux";if(process.env.STY)return"screen";if(process.env.KONSOLE_VERSION)return"konsole";if(process.env.GNOME_TERMINAL_SERVICE)return"gnome-terminal";if(process.env.XTERM_VERSION)return"xterm";if(process.env.VTE_VERSION)return"vte-based";if(process.env.TERMINATOR_UUID)return"terminator";if(process.env.KITTY_WINDOW_ID)return"kitty";if(process.env.ALACRITTY_LOG)return"alacritty";if(process.env.TILIX_ID)return"tilix";if(process.env.WT_SESSION)return"windows-terminal";if(process.env.SESSIONNAME&&process.env.TERM==="cygwin")return"cygwin";if(process.env.MSYSTEM)return process.env.MSYSTEM.toLowerCase();if(process.env.ConEmuANSI||process.env.ConEmuPID||process.env.ConEmuTask)return"conemu";if(process.env.WSL_DISTRO_NAME)return`wsl-${process.env.WSL_DISTRO_NAME}`;if(XZA())return"ssh-session";if(process.env.TERM){let q=process.env.TERM;if(q.includes("alacritty"))return"alacritty";if(q.includes("rxvt"))return"rxvt";if(q.includes("termite"))return"termite";return process.env.TERM}if(!process.stdout.isTTY)return"non-interactive";return null}function XZA(){return!!(process.env.SSH_CONNECTION||process.env.SSH_CLIENT||process.env.SSH_TTY)}function Vj6(){let A=process.env.CLAUDE_CODE_HOST_PLATFORM;if(A==="win32"||A==="darwin"||A==="linux")return A;return e8.platform}var MZA,TX,rSK,oSK,aSK,DZA,sSK,tSK=()=>{return process.env.__CFBundleIdentifier==="com.conductor.app"},sn1,AhK,e8;var o5=E(()=>{Rq();D7();Z8();D9();Om();MZA=q6(qi1(),1),TX=k8(()=>{if(P1().existsSync(an1(zA(),".config.json")))return an1(zA(),".config.json");let A=`.claude${Ki1()}.json`;return an1(process.env.CLAUDE_CONFIG_DIR||nSK(),A)}),rSK=k8(async()=>{try{let{default:A}=await Promise.resolve().then(() => (M3(),RS6));return await A.head("http://1.1.1.1",{signal:AbortSignal.timeout(1000)}),!0}catch{return!1}});oSK=k8(async()=>{let A=[];if(await vj6("npm"))A.push("npm");if(await vj6("yarn"))A.push("yarn");if(await vj6("pnpm"))A.push("pnpm");return A}),aSK=k8(async()=>{let A=[];if(await vj6("bun"))A.push("bun");if(await vj6("deno"))A.push("deno");if(await vj6("node"))A.push("node");return A}),DZA=k8(()=>{try{return P1().existsSync("/proc/sys/fs/binfmt_misc/WSLInterop")}catch(A){return!1}}),sSK=k8(()=>{try{if(!DZA())return!1;let{cmd:A}=MZA.findActualExecutable("npm",[]);return A.startsWith("/mnt/c/")}catch(A){return!1}}),sn1=["pycharm","intellij","webstorm","phpstorm","rubymine","clion","goland","rider","datagrip","appcode","dataspell","aqua","gateway","fleet","jetbrains","androidstudio"];AhK=k8(()=>{if(w1(process.env.CODESPACES))return"codespaces";if(process.env.GITPOD_WORKSPACE_ID)return"gitpod";if(process.env.REPL_ID||process.env.REPL_SLUG)return"replit";if(process.env.PROJECT_DOMAIN)return"glitch";if(w1(process.env.VERCEL))return"vercel";if(process.env.RAILWAY_ENVIRONMENT_NAME||process.env.RAILWAY_SERVICE_NAME)return"railway";if(w1(process.env.RENDER))return"render";if(w1(process.env.NETLIFY))return"netlify";if(process.env.DYNO)return"heroku";if(process.env.FLY_APP_NAME||process.env.FLY_MACHINE_ID)return"fly.io";if(w1(process.env.CF_PAGES))return"cloudflare-pages";if(process.env.DENO_DEPLOYMENT_ID)return"deno-deploy";if(process.env.AWS_LAMBDA_FUNCTION_NAME)return"aws-lambda";if(process.env.AWS_EXECUTION_ENV==="AWS_ECS_FARGATE")return"aws-fargate";if(process.env.AWS_EXECUTION_ENV==="AWS_ECS_EC2")return"aws-ecs";try{if(P1().readFileSync("/sys/hypervisor/uuid",{encoding:"utf8"}).trim().toLowerCase().startsWith("ec2"))return"aws-ec2"}catch{}if(process.env.K_SERVICE)return"gcp-cloud-run";if(process.env.GOOGLE_CLOUD_PROJECT)return"gcp";if(process.env.WEBSITE_SITE_NAME||process.env.WEBSITE_SKU)return"azure-app-service";if(process.env.AZURE_FUNCTIONS_ENVIRONMENT)return"azure-functions";if(process.env.APP_URL?.includes("ondigitalocean.app"))return"digitalocean-app-platform";if(process.env.SPACE_CREATOR_USER_ID)return"huggingface-spaces";if(w1(process.env.GITHUB_ACTIONS))return"github-actions";if(w1(process.env.GITLAB_CI))return"gitlab-ci";if(process.env.CIRCLECI)return"circleci";if(process.env.BUILDKITE)return"buildkite";if(w1(!1))return"ci";if(process.env.KUBERNETES_SERVICE_HOST)return"kubernetes";try{if(P1().existsSync("/.dockerenv"))return"docker"}catch{}if(e8.platform==="darwin")return"unknown-darwin";if(e8.platform==="linux")return"unknown-linux";if(e8.platform==="win32")return"unknown-win32";return"unknown"});e8={hasInternetAccess:rSK,isCI:w1(!1),platform:["win32","darwin"].includes(process.platform)?process.platform:"linux",arch:process.arch,nodeVersion:process.version,terminal:eSK(),isSSH:XZA,getPackageManagers:oSK,getRuntimes:aSK,isRunningWithBun:k8(wj6),isWslEnvironment:DZA,isNpmFromWindowsPath:sSK,isConductor:tSK,detectDeploymentEnvironment:AhK}});import{AsyncLocalStorage as qhK}from"async_hooks";function WZA(A,q){return PZA.run(A,q)}function W71(){return PZA.getStore()??AC()}function h1(){try{return W71()}catch{return OA()}}var PZA;var X7=E(()=>{U1();PZA=new qhK});function Nj6(A){return A.sort((q,K)=>{let Y=K.modified.getTime()-q.modified.getTime();if(Y!==0)return Y;return K.created.getTime()-q.created.getTime()})}import PH from"node:path";import GZA from"node:os";import tn1 from"node:process";function Ar1(A,{suffix:q="nodejs"}={}){if(typeof A!=="string")throw TypeError(`Expected a string, got ${typeof A}`);if(q)A+=`-${q}`;if(tn1.platform==="darwin")return KhK(A);if(tn1.platform==="win32")return YhK(A);return zhK(A)}var Oa,en1,kj6,KhK=(A)=>{let q=PH.join(Oa,"Library");return{data:PH.join(q,"Application Support",A),config:PH.join(q,"Preferences",A),cache:PH.join(q,"Caches",A),log:PH.join(q,"Logs",A),temp:PH.join(en1,A)}},YhK=(A)=>{let q=kj6.APPDATA||PH.join(Oa,"AppData","Roaming"),K=kj6.LOCALAPPDATA||PH.join(Oa,"AppData","Local");return{data:PH.join(K,A,"Data"),config:PH.join(q,A,"Config"),cache:PH.join(K,A,"Cache"),log:PH.join(K,A,"Log"),temp:PH.join(en1,A)}},zhK=(A)=>{let q=PH.basename(Oa);return{data:PH.join(kj6.XDG_DATA_HOME||PH.join(Oa,".local","share"),A),config:PH.join(kj6.XDG_CONFIG_HOME||PH.join(Oa,".config"),A),cache:PH.join(kj6.XDG_CACHE_HOME||PH.join(Oa,".cache"),A),log:PH.join(kj6.XDG_STATE_HOME||PH.join(Oa,".local","state"),A),temp:PH.join(en1,q,A)}};var ZZA=E(()=>{Oa=GZA.homedir(),en1=GZA.tmpdir(),{env:kj6}=tn1});import{join as G71}from"path";function TZA(A){let q=A.replace(/[^a-zA-Z0-9]/g,"-");if(q.length<=fZA)return q;let K=0;for(let Y=0;Y<A.length;Y++)K=(K<<5)-K+A.charCodeAt(Y),K|=0;return`${q.slice(0,fZA)}-${Math.abs(K).toString(36)}`}function f71(A){return TZA(A)}var Z71,fZA=200,u46;var T71=E(()=>{ZZA();D7();Z71=Ar1("claude-cli");u46={baseLogs:()=>G71(Z71.cache,f71(P1().cwd())),errors:()=>G71(Z71.cache,f71(P1().cwd()),"errors"),messages:()=>G71(Z71.cache,f71(P1().cwd()),"messages"),mcpLogs:(A)=>G71(Z71.cache,f71(P1().cwd()),`mcp-logs-${TZA(A)}`)}});var wG="command-name",w0="command-message",qr1="command-args",vZA="bash-stdout",VZA="bash-stderr",Dv="local-command-stdout",m46="local-command-stderr",SS6="local-command-caveat",v71,eN="tick",$j="task-notification",Af="task-id",Ak="tool-use-id",Ej6="task-type",Mm="output-file",vX="status",VX="summary",NZA="ultraplan",oj="teammate-message",Lj6,yj6;var Xz=E(()=>{v71=["bash-input","bash-stdout","bash-stderr","local-command-stdout","local-command-stderr","local-command-caveat"],Lj6=["help","-h","--help"],yj6=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});function V71(A){return A.replace(kZA,"").trim()||A}function N71(A){return A.replace(kZA,"").trim()}var whK,kZA;var k71=E(()=>{Xz();whK=["ide_opened_file","ide_selection","command-name","command-message","command-args","session-start-hook",eN,"goal",...v71],kZA=new RegExp(whK.map((A)=>`<${A}(?:\\s[^>]*)?>([\\s\\S]*?)<\\/${A}>\\n?`).join("|"),"g")});function Ha(A,q){let K=A.firstPrompt?.startsWith(`<${eN}>`),Y=A.firstPrompt?N71(A.firstPrompt):"",z=Y&&!K,w=A.agentName||A.customTitle||A.summary||(z?Y:void 0)||q||(K?"Autonomous session":void 0)||(A.sessionId?A.sessionId.slice(0,8):"")||"";return V71(w).trim()}function EZA(A){return A.toISOString().replace(/[:.]/g,"-")}function $hK(A){if(E71.length>=_hK)E71.shift();E71.push(A)}function LZA(A){if(yC!==null)return;if(yC=A,Rj6.length>0){let q=[...Rj6];Rj6.length=0;for(let K of q)switch(K.type){case"error":yC.logError(K.error);break;case"mcpError":yC.logMCPError(K.serverName,K.error);break;case"mcpDebug":yC.logMCPDebug(K.serverName,K.message);break}}}function $6(A){let q=A instanceof Error?A:Error(String(A));try{if(w1(process.env.CLAUDE_CODE_USE_BEDROCK)||w1(process.env.CLAUDE_CODE_USE_VERTEX)||w1(process.env.CLAUDE_CODE_USE_FOUNDRY)||process.env.DISABLE_ERROR_REPORTING||process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC)return;let Y={error:q.stack||q.message,timestamp:new Date().toISOString()};if($hK(Y),yC===null){Rj6.push({type:"error",error:q});return}yC.logError(q)}catch{}}function Sj6(){return[...E71]}function lY(A,q){try{if(yC===null){Rj6.push({type:"mcpError",serverName:A,error:q});return}yC.logMCPError(A,q)}catch{}}function z8(A,q){try{if(yC===null){Rj6.push({type:"mcpDebug",serverName:A,message:q});return}yC.logMCPDebug(A,q)}catch{}}function L71(A,q){if(!q||q!=="repl_main_thread")return;let{messages:K,...Y}=A;pu1(Y)}var _hK=100,E71,Rj6,yC=null,sHw;var u1=E(()=>{U1();T71();Rq();Z8();a1();Xz();k71();E71=[];Rj6=[];sHw=k8(()=>{return process.argv.includes("--hard-fail")})});function CS6(A,q=!1){let K=A.length,Y=0,z="",w=0,_=16,$=0,O=0,H=0,j=0,J=0;function M(f,v){let V=0,N=0;while(V<f||!v){let L=A.charCodeAt(Y);if(L>=48&&L<=57)N=N*16+L-48;else if(L>=65&&L<=70)N=N*16+L-65+10;else if(L>=97&&L<=102)N=N*16+L-97+10;else break;Y++,V++}if(V<f)N=-1;return N}function D(f){Y=f,z="",w=0,_=16,J=0}function X(){let f=Y;if(A.charCodeAt(Y)===48)Y++;else{Y++;while(Y<A.length&&hj6(A.charCodeAt(Y)))Y++}if(Y<A.length&&A.charCodeAt(Y)===46)if(Y++,Y<A.length&&hj6(A.charCodeAt(Y))){Y++;while(Y<A.length&&hj6(A.charCodeAt(Y)))Y++}else return J=3,A.substring(f,Y);let v=Y;if(Y<A.length&&(A.charCodeAt(Y)===69||A.charCodeAt(Y)===101)){if(Y++,Y<A.length&&A.charCodeAt(Y)===43||A.charCodeAt(Y)===45)Y++;if(Y<A.length&&hj6(A.charCodeAt(Y))){Y++;while(Y<A.length&&hj6(A.charCodeAt(Y)))Y++;v=Y}else J=3}return A.substring(f,v)}function P(){let f="",v=Y;while(!0){if(Y>=K){f+=A.substring(v,Y),J=2;break}let V=A.charCodeAt(Y);if(V===34){f+=A.substring(v,Y),Y++;break}if(V===92){if(f+=A.substring(v,Y),Y++,Y>=K){J=2;break}switch(A.charCodeAt(Y++)){case 34:f+='"';break;case 92:f+="\\";break;case 47:f+="/";break;case 98:f+="\b";break;case 102:f+="\f";break;case 110:f+=`
`;break;case 114:f+="\r";break;case 116:f+="\t";break;case 117:let L=M(4,!0);if(L>=0)f+=String.fromCharCode(L);else J=4;break;default:J=5}v=Y;continue}if(V>=0&&V<=31)if(hS6(V)){f+=A.substring(v,Y),J=2;break}else J=6;Y++}return f}function W(){if(z="",J=0,w=Y,O=$,j=H,Y>=K)return w=K,_=17;let f=A.charCodeAt(Y);if(Kr1(f)){do Y++,z+=String.fromCharCode(f),f=A.charCodeAt(Y);while(Kr1(f));return _=15}if(hS6(f)){if(Y++,z+=String.fromCharCode(f),f===13&&A.charCodeAt(Y)===10)Y++,z+=`
`;return $++,H=Y,_=14}switch(f){case 123:return Y++,_=1;case 125:return Y++,_=2;case 91:return Y++,_=3;case 93:return Y++,_=4;case 58:return Y++,_=6;case 44:return Y++,_=5;case 34:return Y++,z=P(),_=10;case 47:let v=Y-1;if(A.charCodeAt(Y+1)===47){Y+=2;while(Y<K){if(hS6(A.charCodeAt(Y)))break;Y++}return z=A.substring(v,Y),_=12}if(A.charCodeAt(Y+1)===42){Y+=2;let V=K-1,N=!1;while(Y<V){let L=A.charCodeAt(Y);if(L===42&&A.charCodeAt(Y+1)===47){Y+=2,N=!0;break}if(Y++,hS6(L)){if(L===13&&A.charCodeAt(Y)===10)Y++;$++,H=Y}}if(!N)Y++,J=1;return z=A.substring(v,Y),_=13}return z+=String.fromCharCode(f),Y++,_=16;case 45:if(z+=String.fromCharCode(f),Y++,Y===K||!hj6(A.charCodeAt(Y)))return _=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return z+=X(),_=11;default:while(Y<K&&G(f))Y++,f=A.charCodeAt(Y);if(w!==Y){switch(z=A.substring(w,Y),z){case"true":return _=8;case"false":return _=9;case"null":return _=7}return _=16}return z+=String.fromCharCode(f),Y++,_=16}}function G(f){if(Kr1(f)||hS6(f))return!1;switch(f){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function Z(){let f;do f=W();while(f>=12&&f<=15);return f}return{setPosition:D,getPosition:()=>Y,scan:q?Z:W,getToken:()=>_,getTokenValue:()=>z,getTokenOffset:()=>w,getTokenLength:()=>Y-w,getTokenStartLine:()=>O,getTokenStartCharacter:()=>w-j,getTokenError:()=>J}}function Kr1(A){return A===32||A===9}function hS6(A){return A===10||A===13}function hj6(A){return A>=48&&A<=57}var yZA;var y71=E(()=>{(function(A){A[A.lineFeed=10]="lineFeed",A[A.carriageReturn=13]="carriageReturn",A[A.space=32]="space",A[A._0=48]="_0",A[A._1=49]="_1",A[A._2=50]="_2",A[A._3=51]="_3",A[A._4=52]="_4",A[A._5=53]="_5",A[A._6=54]="_6",A[A._7=55]="_7",A[A._8=56]="_8",A[A._9=57]="_9",A[A.a=97]="a",A[A.b=98]="b",A[A.c=99]="c",A[A.d=100]="d",A[A.e=101]="e",A[A.f=102]="f",A[A.g=103]="g",A[A.h=104]="h",A[A.i=105]="i",A[A.j=106]="j",A[A.k=107]="k",A[A.l=108]="l",A[A.m=109]="m",A[A.n=110]="n",A[A.o=111]="o",A[A.p=112]="p",A[A.q=113]="q",A[A.r=114]="r",A[A.s=115]="s",A[A.t=116]="t",A[A.u=117]="u",A[A.v=118]="v",A[A.w=119]="w",A[A.x=120]="x",A[A.y=121]="y",A[A.z=122]="z",A[A.A=65]="A",A[A.B=66]="B",A[A.C=67]="C",A[A.D=68]="D",A[A.E=69]="E",A[A.F=70]="F",A[A.G=71]="G",A[A.H=72]="H",A[A.I=73]="I",A[A.J=74]="J",A[A.K=75]="K",A[A.L=76]="L",A[A.M=77]="M",A[A.N=78]="N",A[A.O=79]="O",A[A.P=80]="P",A[A.Q=81]="Q",A[A.R=82]="R",A[A.S=83]="S",A[A.T=84]="T",A[A.U=85]="U",A[A.V=86]="V",A[A.W=87]="W",A[A.X=88]="X",A[A.Y=89]="Y",A[A.Z=90]="Z",A[A.asterisk=42]="asterisk",A[A.backslash=92]="backslash",A[A.closeBrace=125]="closeBrace",A[A.closeBracket=93]="closeBracket",A[A.colon=58]="colon",A[A.comma=44]="comma",A[A.dot=46]="dot",A[A.doubleQuote=34]="doubleQuote",A[A.minus=45]="minus",A[A.openBrace=123]="openBrace",A[A.openBracket=91]="openBracket",A[A.plus=43]="plus",A[A.slash=47]="slash",A[A.formFeed=12]="formFeed",A[A.tab=9]="tab"})(yZA||(yZA={}))});var qk,Yr1,RZA;var SZA=E(()=>{qk=Array(20).fill(0).map((A,q)=>{return" ".repeat(q)}),Yr1={" ":{"\n":Array(200).fill(0).map((A,q)=>{return`
`+" ".repeat(q)}),"\r":Array(200).fill(0).map((A,q)=>{return"\r"+" ".repeat(q)}),"\r\n":Array(200).fill(0).map((A,q)=>{return`\r
`+" ".repeat(q)})},"\t":{"\n":Array(200).fill(0).map((A,q)=>{return`
`+"\t".repeat(q)}),"\r":Array(200).fill(0).map((A,q)=>{return"\r"+"\t".repeat(q)}),"\r\n":Array(200).fill(0).map((A,q)=>{return`\r
`+"\t".repeat(q)})}},RZA=[`
`,"\r",`\r
`]});function zr1(A,q,K){let Y,z,w,_,$;if(q){_=q.offset,$=_+q.length,w=_;while(w>0&&!IS6(A,w-1))w--;let V=$;while(V<A.length&&!IS6(A,V))V++;z=A.substring(w,V),Y=HhK(z,K)}else z=A,Y=0,w=0,_=0,$=A.length;let O=jhK(K,A),H=RZA.includes(O),j=0,J=0,M;if(K.insertSpaces)M=qk[K.tabSize||4]??Cj6(qk[1],K.tabSize||4);else M="\t";let D=M==="\t"?"\t":" ",X=CS6(z,!1),P=!1;function W(){if(j>1)return Cj6(O,j)+Cj6(M,Y+J);let V=M.length*(Y+J);if(!H||V>Yr1[D][O].length)return O+Cj6(M,Y+J);if(V<=0)return O;return Yr1[D][O][V]}function G(){let V=X.scan();j=0;while(V===15||V===14){if(V===14&&K.keepLines)j+=1;else if(V===14)j=1;V=X.scan()}return P=V===16||X.getTokenError()!==0,V}let Z=[];function f(V,N,L){if(!P&&(!q||N<$&&L>_)&&A.substring(N,L)!==V)Z.push({offset:N,length:L-N,content:V})}let v=G();if(K.keepLines&&j>0)f(Cj6(O,j),0,0);if(v!==17){let V=X.getTokenOffset()+w,N=M.length*Y<20&&K.insertSpaces?qk[M.length*Y]:Cj6(M,Y);f(N,w,V)}while(v!==17){let V=X.getTokenOffset()+X.getTokenLength()+w,N=G(),L="",S=!1;while(j===0&&(N===12||N===13)){let m=X.getTokenOffset()+w;f(qk[1],V,m),V=X.getTokenOffset()+X.getTokenLength()+w,S=N===12,L=S?W():"",N=G()}if(N===2){if(v!==1)J--;if(K.keepLines&&j>0||!K.keepLines&&v!==1)L=W();else if(K.keepLines)L=qk[1]}else if(N===4){if(v!==3)J--;if(K.keepLines&&j>0||!K.keepLines&&v!==3)L=W();else if(K.keepLines)L=qk[1]}else{switch(v){case 3:case 1:if(J++,K.keepLines&&j>0||!K.keepLines)L=W();else L=qk[1];break;case 5:if(K.keepLines&&j>0||!K.keepLines)L=W();else L=qk[1];break;case 12:L=W();break;case 13:if(j>0)L=W();else if(!S)L=qk[1];break;case 6:if(K.keepLines&&j>0)L=W();else if(!S)L=qk[1];break;case 10:if(K.keepLines&&j>0)L=W();else if(N===6&&!S)L="";break;case 7:case 8:case 9:case 11:case 2:case 4:if(K.keepLines&&j>0)L=W();else if((N===12||N===13)&&!S)L=qk[1];else if(N!==5&&N!==17)P=!0;break;case 16:P=!0;break}if(j>0&&(N===12||N===13))L=W()}if(N===17)if(K.keepLines&&j>0)L=W();else L=K.insertFinalNewline?O:"";let C=X.getTokenOffset()+w;f(L,V,C),v=N}return Z}function Cj6(A,q){let K="";for(let Y=0;Y<q;Y++)K+=A;return K}function HhK(A,q){let K=0,Y=0,z=q.tabSize||4;while(K<A.length){let w=A.charAt(K);if(w===qk[1])Y++;else if(w==="\t")Y+=z;else break;K++}return Math.floor(Y/z)}function jhK(A,q){for(let K=0;K<q.length;K++){let Y=q.charAt(K);if(Y==="\r"){if(K+1<q.length&&q.charAt(K+1)===`
`)return`\r
`;return"\r"}else if(Y===`
`)return`
`}return A&&A.eol||`
`}function IS6(A,q){return`\r
`.indexOf(A.charAt(q))!==-1}var wr1=E(()=>{y71();SZA()});function hZA(A,q=[],K=xS6.DEFAULT){let Y=null,z=[],w=[];function _(O){if(Array.isArray(z))z.push(O);else if(Y!==null)z[Y]=O}return $r1(A,{onObjectBegin:()=>{let O={};_(O),w.push(z),z=O,Y=null},onObjectProperty:(O)=>{Y=O},onObjectEnd:()=>{z=w.pop()},onArrayBegin:()=>{let O=[];_(O),w.push(z),z=O,Y=null},onArrayEnd:()=>{z=w.pop()},onLiteralValue:_,onError:(O,H,j)=>{q.push({error:O,offset:H,length:j})}},K),z[0]}function _r1(A,q=[],K=xS6.DEFAULT){let Y={type:"array",offset:-1,length:-1,children:[],parent:void 0};function z(O){if(Y.type==="property")Y.length=O-Y.offset,Y=Y.parent}function w(O){return Y.children.push(O),O}$r1(A,{onObjectBegin:(O)=>{Y=w({type:"object",offset:O,length:-1,parent:Y,children:[]})},onObjectProperty:(O,H,j)=>{Y=w({type:"property",offset:H,length:-1,parent:Y,children:[]}),Y.children.push({type:"string",value:O,offset:H,length:j,parent:Y})},onObjectEnd:(O,H)=>{z(O+H),Y.length=O+H-Y.offset,Y=Y.parent,z(O+H)},onArrayBegin:(O,H)=>{Y=w({type:"array",offset:O,length:-1,parent:Y,children:[]})},onArrayEnd:(O,H)=>{Y.length=O+H-Y.offset,Y=Y.parent,z(O+H)},onLiteralValue:(O,H,j)=>{w({type:MhK(O),offset:H,length:j,parent:Y,value:O}),z(H+j)},onSeparator:(O,H,j)=>{if(Y.type==="property"){if(O===":")Y.colonOffset=H;else if(O===",")z(H)}},onError:(O,H,j)=>{q.push({error:O,offset:H,length:j})}},K);let $=Y.children[0];if($)delete $.parent;return $}function R71(A,q){if(!A)return;let K=A;for(let Y of q)if(typeof Y==="string"){if(K.type!=="object"||!Array.isArray(K.children))return;let z=!1;for(let w of K.children)if(Array.isArray(w.children)&&w.children[0].value===Y&&w.children.length===2){K=w.children[1],z=!0;break}if(!z)return}else{let z=Y;if(K.type!=="array"||z<0||!Array.isArray(K.children)||z>=K.children.length)return;K=K.children[z]}return K}function $r1(A,q,K=xS6.DEFAULT){let Y=CS6(A,!1),z=[];function w(p){return p?()=>p(Y.getTokenOffset(),Y.getTokenLength(),Y.getTokenStartLine(),Y.getTokenStartCharacter()):()=>!0}function _(p){return p?()=>p(Y.getTokenOffset(),Y.getTokenLength(),Y.getTokenStartLine(),Y.getTokenStartCharacter(),()=>z.slice()):()=>!0}function $(p){return p?(g)=>p(g,Y.getTokenOffset(),Y.getTokenLength(),Y.getTokenStartLine(),Y.getTokenStartCharacter()):()=>!0}function O(p){return p?(g)=>p(g,Y.getTokenOffset(),Y.getTokenLength(),Y.getTokenStartLine(),Y.getTokenStartCharacter(),()=>z.slice()):()=>!0}let H=_(q.onObjectBegin),j=O(q.onObjectProperty),J=w(q.onObjectEnd),M=_(q.onArrayBegin),D=w(q.onArrayEnd),X=O(q.onLiteralValue),P=$(q.onSeparator),W=w(q.onComment),G=$(q.onError),Z=K&&K.disallowComments,f=K&&K.allowTrailingComma;function v(){while(!0){let p=Y.scan();switch(Y.getTokenError()){case 4:V(14);break;case 5:V(15);break;case 3:V(13);break;case 1:if(!Z)V(11);break;case 2:V(12);break;case 6:V(16);break}switch(p){case 12:case 13:if(Z)V(10);else W();break;case 16:V(1);break;case 15:case 14:break;default:return p}}}function V(p,g=[],b=[]){if(G(p),g.length+b.length>0){let Q=Y.getToken();while(Q!==17){if(g.indexOf(Q)!==-1){v();break}else if(b.indexOf(Q)!==-1)break;Q=v()}}}function N(p){let g=Y.getTokenValue();if(p)X(g);else j(g),z.push(g);return v(),!0}function L(){switch(Y.getToken()){case 11:let p=Y.getTokenValue(),g=Number(p);if(isNaN(g))V(2),g=0;X(g);break;case 7:X(null);break;case 8:X(!0);break;case 9:X(!1);break;default:return!1}return v(),!0}function S(){if(Y.getToken()!==10)return V(3,[],[2,5]),!1;if(N(!1),Y.getToken()===6){if(P(":"),v(),!x())V(4,[],[2,5])}else V(5,[],[2,5]);return z.pop(),!0}function C(){H(),v();let p=!1;while(Y.getToken()!==2&&Y.getToken()!==17){if(Y.getToken()===5){if(!p)V(4,[],[]);if(P(","),v(),Y.getToken()===2&&f)break}else if(p)V(6,[],[]);if(!S())V(4,[],[2,5]);p=!0}if(J(),Y.getToken()!==2)V(7,[2],[]);else v();return!0}function m(){M(),v();let p=!0,g=!1;while(Y.getToken()!==4&&Y.getToken()!==17){if(Y.getToken()===5){if(!g)V(4,[],[]);if(P(","),v(),Y.getToken()===4&&f)break}else if(g)V(6,[],[]);if(p)z.push(0),p=!1;else z[z.length-1]++;if(!x())V(4,[],[4,5]);g=!0}if(D(),!p)z.pop();if(Y.getToken()!==4)V(8,[4],[]);else v();return!0}function x(){switch(Y.getToken()){case 3:return m();case 1:return C();case 10:return N(!0);default:return L()}}if(v(),Y.getToken()===17){if(K.allowEmptyContent)return!0;return V(4,[],[]),!1}if(!x())return V(4,[],[]),!1;if(Y.getToken()!==17)V(9,[],[]);return!0}function MhK(A){switch(typeof A){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(!A)return"null";else if(Array.isArray(A))return"array";return"object"}default:return"null"}}var xS6;var Or1=E(()=>{y71();(function(A){A.DEFAULT={allowTrailingComma:!1}})(xS6||(xS6={}))});function CZA(A,q,K,Y){let z=q.slice(),_=_r1(A,[]),$=void 0,O=void 0;while(z.length>0)if(O=z.pop(),$=R71(_,z),$===void 0&&K!==void 0)if(typeof O==="string")K={[O]:K};else K=[K];else break;if(!$){if(K===void 0)throw Error("Can not delete in empty document");return B46(A,{offset:_?_.offset:0,length:_?_.length:0,content:JSON.stringify(K)},Y)}else if($.type==="object"&&typeof O==="string"&&Array.isArray($.children)){let H=R71($,[O]);if(H!==void 0)if(K===void 0){if(!H.parent)throw Error("Malformed AST");let j=$.children.indexOf(H.parent),J,M=H.parent.offset+H.parent.length;if(j>0){let D=$.children[j-1];J=D.offset+D.length}else if(J=$.offset+1,$.children.length>1)M=$.children[1].offset;return B46(A,{offset:J,length:M-J,content:""},Y)}else return B46(A,{offset:H.offset,length:H.length,content:JSON.stringify(K)},Y);else{if(K===void 0)return[];let j=`${JSON.stringify(O)}: ${JSON.stringify(K)}`,J=Y.getInsertionIndex?Y.getInsertionIndex($.children.map((D)=>D.children[0].value)):$.children.length,M;if(J>0){let D=$.children[J-1];M={offset:D.offset+D.length,length:0,content:","+j}}else if($.children.length===0)M={offset:$.offset+1,length:0,content:j};else M={offset:$.offset+1,length:0,content:j+","};return B46(A,M,Y)}}else if($.type==="array"&&typeof O==="number"&&Array.isArray($.children)){let H=O;if(H===-1){let j=`${JSON.stringify(K)}`,J;if($.children.length===0)J={offset:$.offset+1,length:0,content:j};else{let M=$.children[$.children.length-1];J={offset:M.offset+M.length,length:0,content:","+j}}return B46(A,J,Y)}else if(K===void 0&&$.children.length>=0){let j=O,J=$.children[j],M;if($.children.length===1)M={offset:$.offset+1,length:$.length-2,content:""};else if($.children.length-1===j){let D=$.children[j-1],X=D.offset+D.length,P=$.offset+$.length;M={offset:X,length:P-2-X,content:""}}else M={offset:J.offset,length:$.children[j+1].offset-J.offset,content:""};return B46(A,M,Y)}else if(K!==void 0){let j,J=`${JSON.stringify(K)}`;if(!Y.isArrayInsertion&&$.children.length>O){let M=$.children[O];j={offset:M.offset,length:M.length,content:J}}else if($.children.length===0||O===0)j={offset:$.offset+1,length:0,content:$.children.length===0?J:J+","};else{let M=O>$.children.length?$.children.length:O,D=$.children[M-1];j={offset:D.offset+D.length,length:0,content:","+J}}return B46(A,j,Y)}else throw Error(`Can not ${K===void 0?"remove":Y.isArrayInsertion?"insert":"modify"} Array index ${H} as length is not sufficient`)}else throw Error(`Can not add ${typeof O!=="number"?"index":"property"} to parent of type ${$.type}`)}function B46(A,q,K){if(!K.formattingOptions)return[q];let Y=S71(A,q),z=q.offset,w=q.offset+q.content.length;if(q.length===0||q.content.length===0){while(z>0&&!IS6(Y,z-1))z--;while(w<Y.length&&!IS6(Y,w))w++}let _=zr1(Y,{offset:z,length:w-z},{...K.formattingOptions,keepLines:!1});for(let O=_.length-1;O>=0;O--){let H=_[O];Y=S71(Y,H),z=Math.min(z,H.offset),w=Math.max(w,H.offset+H.length),w+=H.content.length-H.length}let $=A.length-(Y.length-w)-z;return[{offset:z,length:$,content:Y.substring(z,w)}]}function S71(A,q){return A.substring(0,q.offset)+q.content+A.substring(q.offset+q.length)}var IZA=E(()=>{wr1();Or1()});function mZA(A,q,K,Y){return CZA(A,q,K,Y)}function BZA(A,q){let K=q.slice(0).sort((z,w)=>{let _=z.offset-w.offset;if(_===0)return z.length-w.length;return _}),Y=A.length;for(let z=K.length-1;z>=0;z--){let w=K[z];if(w.offset+w.length<=Y)A=S71(A,w);else throw Error("Overlapping edit");Y=w.offset}return A}var xZA,bZA,Hr1,uZA;var gZA=E(()=>{wr1();IZA();y71();Or1();(function(A){A[A.None=0]="None",A[A.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",A[A.UnexpectedEndOfString=2]="UnexpectedEndOfString",A[A.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",A[A.InvalidUnicode=4]="InvalidUnicode",A[A.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",A[A.InvalidCharacter=6]="InvalidCharacter"})(xZA||(xZA={}));(function(A){A[A.OpenBraceToken=1]="OpenBraceToken",A[A.CloseBraceToken=2]="CloseBraceToken",A[A.OpenBracketToken=3]="OpenBracketToken",A[A.CloseBracketToken=4]="CloseBracketToken",A[A.CommaToken=5]="CommaToken",A[A.ColonToken=6]="ColonToken",A[A.NullKeyword=7]="NullKeyword",A[A.TrueKeyword=8]="TrueKeyword",A[A.FalseKeyword=9]="FalseKeyword",A[A.StringLiteral=10]="StringLiteral",A[A.NumericLiteral=11]="NumericLiteral",A[A.LineCommentTrivia=12]="LineCommentTrivia",A[A.BlockCommentTrivia=13]="BlockCommentTrivia",A[A.LineBreakTrivia=14]="LineBreakTrivia",A[A.Trivia=15]="Trivia",A[A.Unknown=16]="Unknown",A[A.EOF=17]="EOF"})(bZA||(bZA={}));Hr1=hZA;(function(A){A[A.InvalidSymbol=1]="InvalidSymbol",A[A.InvalidNumberFormat=2]="InvalidNumberFormat",A[A.PropertyNameExpected=3]="PropertyNameExpected",A[A.ValueExpected=4]="ValueExpected",A[A.ColonExpected=5]="ColonExpected",A[A.CommaExpected=6]="CommaExpected",A[A.CloseBraceExpected=7]="CloseBraceExpected",A[A.CloseBracketExpected=8]="CloseBracketExpected",A[A.EndOfFileExpected=9]="EndOfFileExpected",A[A.InvalidCommentToken=10]="InvalidCommentToken",A[A.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",A[A.UnexpectedEndOfString=12]="UnexpectedEndOfString",A[A.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",A[A.InvalidUnicode=14]="InvalidUnicode",A[A.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",A[A.InvalidCharacter=16]="InvalidCharacter"})(uZA||(uZA={}))});class xj6{heap;length;static#A=!1;static create(A){let q=UZA(A);if(!q)return[];xj6.#A=!0;let K=new xj6(A,q);return xj6.#A=!1,K}constructor(A,q){if(!xj6.#A)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new q(A),this.length=0}push(A){this.heap[this.length++]=A}pop(){return this.heap[--this.length]}}var Ij6,FZA,jr1,QZA=(A,q,K,Y)=>{typeof jr1.emitWarning==="function"?jr1.emitWarning(A,q,K,Y):console.error(`[${K}] ${q}: ${A}`)},h71,pZA,PhK=(A)=>!FZA.has(A),Jjw,ja=(A)=>A&&A===Math.floor(A)&&A>0&&isFinite(A),UZA=(A)=>!ja(A)?null:A<=Math.pow(2,8)?Uint8Array:A<=Math.pow(2,16)?Uint16Array:A<=Math.pow(2,32)?Uint32Array:A<=Number.MAX_SAFE_INTEGER?bS6:null,bS6,Kk;var bj6=E(()=>{Ij6=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date,FZA=new Set,jr1=typeof process==="object"&&!!process?process:{},h71=globalThis.AbortController,pZA=globalThis.AbortSignal;if(typeof h71>"u"){pZA=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(Y,z){this._onabort.push(z)}},h71=class{constructor(){q()}signal=new pZA;abort(Y){if(this.signal.aborted)return;this.signal.reason=Y,this.signal.aborted=!0;for(let z of this.signal._onabort)z(Y);this.signal.onabort?.(Y)}};let A=jr1.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",q=()=>{if(!A)return;A=!1,QZA("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",q)}}Jjw=Symbol("type");bS6=class bS6 extends Array{constructor(A){super(A);this.fill(0)}};Kk=class Kk{#A;#q;#K;#z;#Y;#_;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#w;#O;#H;#j;#$;#J;#M;#W;#X;#Z;#P;#G;#f;#T;#V;#k;#v;static unsafeExposeInternals(A){return{starts:A.#f,ttls:A.#T,sizes:A.#G,keyMap:A.#H,keyList:A.#j,valList:A.#$,next:A.#J,prev:A.#M,get head(){return A.#W},get tail(){return A.#X},free:A.#Z,isBackgroundFetch:(q)=>A.#D(q),backgroundFetch:(q,K,Y,z)=>A.#b(q,K,Y,z),moveToTail:(q)=>A.#C(q),indexes:(q)=>A.#E(q),rindexes:(q)=>A.#L(q),isStale:(q)=>A.#N(q)}}get max(){return this.#A}get maxSize(){return this.#q}get calculatedSize(){return this.#O}get size(){return this.#w}get fetchMethod(){return this.#Y}get memoMethod(){return this.#_}get dispose(){return this.#K}get disposeAfter(){return this.#z}constructor(A){let{max:q=0,ttl:K,ttlResolution:Y=1,ttlAutopurge:z,updateAgeOnGet:w,updateAgeOnHas:_,allowStale:$,dispose:O,disposeAfter:H,noDisposeOnSet:j,noUpdateTTL:J,maxSize:M=0,maxEntrySize:D=0,sizeCalculation:X,fetchMethod:P,memoMethod:W,noDeleteOnFetchRejection:G,noDeleteOnStaleGet:Z,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:v,ignoreFetchAbort:V}=A;if(q!==0&&!ja(q))throw TypeError("max option must be a nonnegative integer");let N=q?UZA(q):Array;if(!N)throw Error("invalid max value: "+q);if(this.#A=q,this.#q=M,this.maxEntrySize=D||this.#q,this.sizeCalculation=X,this.sizeCalculation){if(!this.#q&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!=="function")throw TypeError("sizeCalculation set to non-function")}if(W!==void 0&&typeof W!=="function")throw TypeError("memoMethod must be a function if defined");if(this.#_=W,P!==void 0&&typeof P!=="function")throw TypeError("fetchMethod must be a function if specified");if(this.#Y=P,this.#k=!!P,this.#H=new Map,this.#j=Array(q).fill(void 0),this.#$=Array(q).fill(void 0),this.#J=new N(q),this.#M=new N(q),this.#W=0,this.#X=0,this.#Z=xj6.create(q),this.#w=0,this.#O=0,typeof O==="function")this.#K=O;if(typeof H==="function")this.#z=H,this.#P=[];else this.#z=void 0,this.#P=void 0;if(this.#V=!!this.#K,this.#v=!!this.#z,this.noDisposeOnSet=!!j,this.noUpdateTTL=!!J,this.noDeleteOnFetchRejection=!!G,this.allowStaleOnFetchRejection=!!f,this.allowStaleOnFetchAbort=!!v,this.ignoreFetchAbort=!!V,this.maxEntrySize!==0){if(this.#q!==0){if(!ja(this.#q))throw TypeError("maxSize must be a positive integer if specified")}if(!ja(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#Q()}if(this.allowStale=!!$,this.noDeleteOnStaleGet=!!Z,this.updateAgeOnGet=!!w,this.updateAgeOnHas=!!_,this.ttlResolution=ja(Y)||Y===0?Y:1,this.ttlAutopurge=!!z,this.ttl=K||0,this.ttl){if(!ja(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#u()}if(this.#A===0&&this.ttl===0&&this.#q===0)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#A&&!this.#q){if(PhK("LRU_CACHE_UNBOUNDED"))FZA.add("LRU_CACHE_UNBOUNDED"),QZA("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning","LRU_CACHE_UNBOUNDED",Kk)}}getRemainingTTL(A){return this.#H.has(A)?1/0:0}#u(){let A=new bS6(this.#A),q=new bS6(this.#A);this.#T=A,this.#f=q,this.#m=(z,w,_=Ij6.now())=>{if(q[z]=w!==0?_:0,A[z]=w,w!==0&&this.ttlAutopurge){let $=setTimeout(()=>{if(this.#N(z))this.#y(this.#j[z],"expire")},w+1);if($.unref)$.unref()}},this.#S=(z)=>{q[z]=A[z]!==0?Ij6.now():0},this.#R=(z,w)=>{if(A[w]){let _=A[w],$=q[w];if(!_||!$)return;z.ttl=_,z.start=$,z.now=K||Y();let O=z.now-$;z.remainingTTL=_-O}};let K=0,Y=()=>{let z=Ij6.now();if(this.ttlResolution>0){K=z;let w=setTimeout(()=>K=0,this.ttlResolution);if(w.unref)w.unref()}return z};this.getRemainingTTL=(z)=>{let w=this.#H.get(z);if(w===void 0)return 0;let _=A[w],$=q[w];if(!_||!$)return 1/0;let O=(K||Y())-$;return _-O},this.#N=(z)=>{let w=q[z],_=A[z];return!!_&&!!w&&(K||Y())-w>_}}#S=()=>{};#R=()=>{};#m=()=>{};#N=()=>!1;#Q(){let A=new bS6(this.#A);this.#O=0,this.#G=A,this.#h=(q)=>{this.#O-=A[q],A[q]=0},this.#B=(q,K,Y,z)=>{if(this.#D(K))return 0;if(!ja(Y))if(z){if(typeof z!=="function")throw TypeError("sizeCalculation must be a function");if(Y=z(K,q),!ja(Y))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return Y},this.#I=(q,K,Y)=>{if(A[q]=K,this.#q){let z=this.#q-A[q];while(this.#O>z)this.#x(!0)}if(this.#O+=A[q],Y)Y.entrySize=K,Y.totalCalculatedSize=this.#O}}#h=(A)=>{};#I=(A,q,K)=>{};#B=(A,q,K,Y)=>{if(K||Y)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#E({allowStale:A=this.allowStale}={}){if(this.#w)for(let q=this.#X;;){if(!this.#g(q))break;if(A||!this.#N(q))yield q;if(q===this.#W)break;else q=this.#M[q]}}*#L({allowStale:A=this.allowStale}={}){if(this.#w)for(let q=this.#W;;){if(!this.#g(q))break;if(A||!this.#N(q))yield q;if(q===this.#X)break;else q=this.#J[q]}}#g(A){return A!==void 0&&this.#H.get(this.#j[A])===A}*entries(){for(let A of this.#E())if(this.#$[A]!==void 0&&this.#j[A]!==void 0&&!this.#D(this.#$[A]))yield[this.#j[A],this.#$[A]]}*rentries(){for(let A of this.#L())if(this.#$[A]!==void 0&&this.#j[A]!==void 0&&!this.#D(this.#$[A]))yield[this.#j[A],this.#$[A]]}*keys(){for(let A of this.#E()){let q=this.#j[A];if(q!==void 0&&!this.#D(this.#$[A]))yield q}}*rkeys(){for(let A of this.#L()){let q=this.#j[A];if(q!==void 0&&!this.#D(this.#$[A]))yield q}}*values(){for(let A of this.#E())if(this.#$[A]!==void 0&&!this.#D(this.#$[A]))yield this.#$[A]}*rvalues(){for(let A of this.#L())if(this.#$[A]!==void 0&&!this.#D(this.#$[A]))yield this.#$[A]}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(A,q={}){for(let K of this.#E()){let Y=this.#$[K],z=this.#D(Y)?Y.__staleWhileFetching:Y;if(z===void 0)continue;if(A(z,this.#j[K],this))return this.get(this.#j[K],q)}}forEach(A,q=this){for(let K of this.#E()){let Y=this.#$[K],z=this.#D(Y)?Y.__staleWhileFetching:Y;if(z===void 0)continue;A.call(q,z,this.#j[K],this)}}rforEach(A,q=this){for(let K of this.#L()){let Y=this.#$[K],z=this.#D(Y)?Y.__staleWhileFetching:Y;if(z===void 0)continue;A.call(q,z,this.#j[K],this)}}purgeStale(){let A=!1;for(let q of this.#L({allowStale:!0}))if(this.#N(q))this.#y(this.#j[q],"expire"),A=!0;return A}info(A){let q=this.#H.get(A);if(q===void 0)return;let K=this.#$[q],Y=this.#D(K)?K.__staleWhileFetching:K;if(Y===void 0)return;let z={value:Y};if(this.#T&&this.#f){let w=this.#T[q],_=this.#f[q];if(w&&_){let $=w-(Ij6.now()-_);z.ttl=$,z.start=Date.now()}}if(this.#G)z.size=this.#G[q];return z}dump(){let A=[];for(let q of this.#E({allowStale:!0})){let K=this.#j[q],Y=this.#$[q],z=this.#D(Y)?Y.__staleWhileFetching:Y;if(z===void 0||K===void 0)continue;let w={value:z};if(this.#T&&this.#f){w.ttl=this.#T[q];let _=Ij6.now()-this.#f[q];w.start=Math.floor(Date.now()-_)}if(this.#G)w.size=this.#G[q];A.unshift([K,w])}return A}load(A){this.clear();for(let[q,K]of A){if(K.start){let Y=Date.now()-K.start;K.start=Ij6.now()-Y}this.set(q,K.value,K)}}set(A,q,K={}){if(q===void 0)return this.delete(A),this;let{ttl:Y=this.ttl,start:z,noDisposeOnSet:w=this.noDisposeOnSet,sizeCalculation:_=this.sizeCalculation,status:$}=K,{noUpdateTTL:O=this.noUpdateTTL}=K,H=this.#B(A,q,K.size||0,_);if(this.maxEntrySize&&H>this.maxEntrySize){if($)$.set="miss",$.maxEntrySizeExceeded=!0;return this.#y(A,"set"),this}let j=this.#w===0?void 0:this.#H.get(A);if(j===void 0){if(j=this.#w===0?this.#X:this.#Z.length!==0?this.#Z.pop():this.#w===this.#A?this.#x(!1):this.#w,this.#j[j]=A,this.#$[j]=q,this.#H.set(A,j),this.#J[this.#X]=j,this.#M[j]=this.#X,this.#X=j,this.#w++,this.#I(j,H,$),$)$.set="add";O=!1}else{this.#C(j);let J=this.#$[j];if(q!==J){if(this.#k&&this.#D(J)){J.__abortController.abort(Error("replaced"));let{__staleWhileFetching:M}=J;if(M!==void 0&&!w){if(this.#V)this.#K?.(M,A,"set");if(this.#v)this.#P?.push([M,A,"set"])}}else if(!w){if(this.#V)this.#K?.(J,A,"set");if(this.#v)this.#P?.push([J,A,"set"])}if(this.#h(j),this.#I(j,H,$),this.#$[j]=q,$){$.set="replace";let M=J&&this.#D(J)?J.__staleWhileFetching:J;if(M!==void 0)$.oldValue=M}}else if($)$.set="update"}if(Y!==0&&!this.#T)this.#u();if(this.#T){if(!O)this.#m(j,Y,z);if($)this.#R($,j)}if(!w&&this.#v&&this.#P){let J=this.#P,M;while(M=J?.shift())this.#z?.(...M)}return this}pop(){try{while(this.#w){let A=this.#$[this.#W];if(this.#x(!0),this.#D(A)){if(A.__staleWhileFetching)return A.__staleWhileFetching}else if(A!==void 0)return A}}finally{if(this.#v&&this.#P){let A=this.#P,q;while(q=A?.shift())this.#z?.(...q)}}}#x(A){let q=this.#W,K=this.#j[q],Y=this.#$[q];if(this.#k&&this.#D(Y))Y.__abortController.abort(Error("evicted"));else if(this.#V||this.#v){if(this.#V)this.#K?.(Y,K,"evict");if(this.#v)this.#P?.push([Y,K,"evict"])}if(this.#h(q),A)this.#j[q]=void 0,this.#$[q]=void 0,this.#Z.push(q);if(this.#w===1)this.#W=this.#X=0,this.#Z.length=0;else this.#W=this.#J[q];return this.#H.delete(K),this.#w--,q}has(A,q={}){let{updateAgeOnHas:K=this.updateAgeOnHas,status:Y}=q,z=this.#H.get(A);if(z!==void 0){let w=this.#$[z];if(this.#D(w)&&w.__staleWhileFetching===void 0)return!1;if(!this.#N(z)){if(K)this.#S(z);if(Y)Y.has="hit",this.#R(Y,z);return!0}else if(Y)Y.has="stale",this.#R(Y,z)}else if(Y)Y.has="miss";return!1}peek(A,q={}){let{allowStale:K=this.allowStale}=q,Y=this.#H.get(A);if(Y===void 0||!K&&this.#N(Y))return;let z=this.#$[Y];return this.#D(z)?z.__staleWhileFetching:z}#b(A,q,K,Y){let z=q===void 0?void 0:this.#$[q];if(this.#D(z))return z;let w=new h71,{signal:_}=K;_?.addEventListener("abort",()=>w.abort(_.reason),{signal:w.signal});let $={signal:w.signal,options:K,context:Y},O=(X,P=!1)=>{let{aborted:W}=w.signal,G=K.ignoreFetchAbort&&X!==void 0;if(K.status)if(W&&!P){if(K.status.fetchAborted=!0,K.status.fetchError=w.signal.reason,G)K.status.fetchAbortIgnored=!0}else K.status.fetchResolved=!0;if(W&&!G&&!P)return j(w.signal.reason);let Z=M;if(this.#$[q]===M)if(X===void 0)if(Z.__staleWhileFetching)this.#$[q]=Z.__staleWhileFetching;else this.#y(A,"fetch");else{if(K.status)K.status.fetchUpdated=!0;this.set(A,X,$.options)}return X},H=(X)=>{if(K.status)K.status.fetchRejected=!0,K.status.fetchError=X;return j(X)},j=(X)=>{let{aborted:P}=w.signal,W=P&&K.allowStaleOnFetchAbort,G=W||K.allowStaleOnFetchRejection,Z=G||K.noDeleteOnFetchRejection,f=M;if(this.#$[q]===M){if(!Z||f.__staleWhileFetching===void 0)this.#y(A,"fetch");else if(!W)this.#$[q]=f.__staleWhileFetching}if(G){if(K.status&&f.__staleWhileFetching!==void 0)K.status.returnedStale=!0;return f.__staleWhileFetching}else if(f.__returned===f)throw X},J=(X,P)=>{let W=this.#Y?.(A,z,$);if(W&&W instanceof Promise)W.then((G)=>X(G===void 0?void 0:G),P);w.signal.addEventListener("abort",()=>{if(!K.ignoreFetchAbort||K.allowStaleOnFetchAbort){if(X(void 0),K.allowStaleOnFetchAbort)X=(G)=>O(G,!0)}})};if(K.status)K.status.fetchDispatched=!0;let M=new Promise(J).then(O,H),D=Object.assign(M,{__abortController:w,__staleWhileFetching:z,__returned:void 0});if(q===void 0)this.set(A,D,{...$.options,status:void 0}),q=this.#H.get(A);else this.#$[q]=D;return D}#D(A){if(!this.#k)return!1;let q=A;return!!q&&q instanceof Promise&&q.hasOwnProperty("__staleWhileFetching")&&q.__abortController instanceof h71}async fetch(A,q={}){let{allowStale:K=this.allowStale,updateAgeOnGet:Y=this.updateAgeOnGet,noDeleteOnStaleGet:z=this.noDeleteOnStaleGet,ttl:w=this.ttl,noDisposeOnSet:_=this.noDisposeOnSet,size:$=0,sizeCalculation:O=this.sizeCalculation,noUpdateTTL:H=this.noUpdateTTL,noDeleteOnFetchRejection:j=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:J=this.allowStaleOnFetchRejection,ignoreFetchAbort:M=this.ignoreFetchAbort,allowStaleOnFetchAbort:D=this.allowStaleOnFetchAbort,context:X,forceRefresh:P=!1,status:W,signal:G}=q;if(!this.#k){if(W)W.fetch="get";return this.get(A,{allowStale:K,updateAgeOnGet:Y,noDeleteOnStaleGet:z,status:W})}let Z={allowStale:K,updateAgeOnGet:Y,noDeleteOnStaleGet:z,ttl:w,noDisposeOnSet:_,size:$,sizeCalculation:O,noUpdateTTL:H,noDeleteOnFetchRejection:j,allowStaleOnFetchRejection:J,allowStaleOnFetchAbort:D,ignoreFetchAbort:M,status:W,signal:G},f=this.#H.get(A);if(f===void 0){if(W)W.fetch="miss";let v=this.#b(A,f,Z,X);return v.__returned=v}else{let v=this.#$[f];if(this.#D(v)){let C=K&&v.__staleWhileFetching!==void 0;if(W){if(W.fetch="inflight",C)W.returnedStale=!0}return C?v.__staleWhileFetching:v.__returned=v}let V=this.#N(f);if(!P&&!V){if(W)W.fetch="hit";if(this.#C(f),Y)this.#S(f);if(W)this.#R(W,f);return v}let N=this.#b(A,f,Z,X),S=N.__staleWhileFetching!==void 0&&K;if(W){if(W.fetch=V?"stale":"refresh",S&&V)W.returnedStale=!0}return S?N.__staleWhileFetching:N.__returned=N}}async forceFetch(A,q={}){let K=await this.fetch(A,q);if(K===void 0)throw Error("fetch() returned undefined");return K}memo(A,q={}){let K=this.#_;if(!K)throw Error("no memoMethod provided to constructor");let{context:Y,forceRefresh:z,...w}=q,_=this.get(A,w);if(!z&&_!==void 0)return _;let $=K(A,_,{options:w,context:Y});return this.set(A,$,w),$}get(A,q={}){let{allowStale:K=this.allowStale,updateAgeOnGet:Y=this.updateAgeOnGet,noDeleteOnStaleGet:z=this.noDeleteOnStaleGet,status:w}=q,_=this.#H.get(A);if(_!==void 0){let $=this.#$[_],O=this.#D($);if(w)this.#R(w,_);if(this.#N(_)){if(w)w.get="stale";if(!O){if(!z)this.#y(A,"expire");if(w&&K)w.returnedStale=!0;return K?$:void 0}else{if(w&&K&&$.__staleWhileFetching!==void 0)w.returnedStale=!0;return K?$.__staleWhileFetching:void 0}}else{if(w)w.get="hit";if(O)return $.__staleWhileFetching;if(this.#C(_),Y)this.#S(_);return $}}else if(w)w.get="miss"}#p(A,q){this.#M[q]=A,this.#J[A]=q}#C(A){if(A!==this.#X){if(A===this.#W)this.#W=this.#J[A];else this.#p(this.#M[A],this.#J[A]);this.#p(this.#X,A),this.#X=A}}delete(A){return this.#y(A,"delete")}#y(A,q){let K=!1;if(this.#w!==0){let Y=this.#H.get(A);if(Y!==void 0)if(K=!0,this.#w===1)this.#F(q);else{this.#h(Y);let z=this.#$[Y];if(this.#D(z))z.__abortController.abort(Error("deleted"));else if(this.#V||this.#v){if(this.#V)this.#K?.(z,A,q);if(this.#v)this.#P?.push([z,A,q])}if(this.#H.delete(A),this.#j[Y]=void 0,this.#$[Y]=void 0,Y===this.#X)this.#X=this.#M[Y];else if(Y===this.#W)this.#W=this.#J[Y];else{let w=this.#M[Y];this.#J[w]=this.#J[Y];let _=this.#J[Y];this.#M[_]=this.#M[Y]}this.#w--,this.#Z.push(Y)}}if(this.#v&&this.#P?.length){let Y=this.#P,z;while(z=Y?.shift())this.#z?.(...z)}return K}clear(){return this.#F("delete")}#F(A){for(let q of this.#L({allowStale:!0})){let K=this.#$[q];if(this.#D(K))K.__abortController.abort(Error("deleted"));else{let Y=this.#j[q];if(this.#V)this.#K?.(K,Y,A);if(this.#v)this.#P?.push([K,Y,A])}}if(this.#H.clear(),this.#$.fill(void 0),this.#j.fill(void 0),this.#T&&this.#f)this.#T.fill(0),this.#f.fill(0);if(this.#G)this.#G.fill(0);if(this.#W=0,this.#X=0,this.#Z.length=0,this.#O=0,this.#w=0,this.#v&&this.#P){let q=this.#P,K;while(K=q?.shift())this.#z?.(...K)}}}});function Jr1(A,q=300000){let K=new Map,Y=(...z)=>{let w=p6(z),_=K.get(w),$=Date.now();if(!_){let O=A(...z);return K.set(w,{value:O,timestamp:$,refreshing:!1}),O}if(_&&$-_.timestamp>q&&!_.refreshing)return _.refreshing=!0,Promise.resolve().then(()=>{let O=A(...z);K.set(w,{value:O,timestamp:Date.now(),refreshing:!1})}).catch((O)=>{$6(O),K.delete(w)}),_.value;return K.get(w).value};return Y.cache={clear:()=>K.clear()},Y}function C71(A,q=300000){let K=new Map,Y=async(...z)=>{let w=p6(z),_=K.get(w),$=Date.now();if(!_){let O=await A(...z);return K.set(w,{value:O,timestamp:$,refreshing:!1}),O}if(_&&$-_.timestamp>q&&!_.refreshing)return _.refreshing=!0,A(...z).then((O)=>{K.set(w,{value:O,timestamp:Date.now(),refreshing:!1})}).catch((O)=>{$6(O),K.delete(w)}),_.value;return K.get(w).value};return Y.cache={clear:()=>K.clear()},Y}function _0(A,q,K=100){let Y=new Kk({max:K}),z=(...w)=>{let _=q(...w),$=Y.get(_);if($!==void 0)return $;let O=A(...w);return Y.set(_,O),O};return z.cache={clear:()=>Y.clear(),size:()=>Y.size,delete:(w)=>Y.delete(w),get:(w)=>Y.peek(w),has:(w)=>Y.has(w)},z}var Dm=E(()=>{bj6();u1();a1()});import{readFile as WhK,stat as GhK,open as ZhK}from"fs/promises";function uj6(A){return A.startsWith(fhK)?A.slice(1):A}function cZA(A){if(!A)return null;try{return Hr1(uj6(A))}catch(q){return $6(q),null}}function ThK(A){let q=lZA,K=A.length,Y=q(A);if(!Y.error||Y.done||Y.read>=K)return Y.values;let{values:z,read:w}=Y;while(w<K){let _=typeof A==="string"?A.indexOf(`
`,w):A.indexOf(10,w);if(_===-1)break;w=_+1;let $=q(A,w);if($.values.length>0)z=z.concat($.values);if(!$.error||$.done||$.read>=K)break;w=$.read}return z}function vhK(A){let q=A.length,K=0;if(A[0]===239&&A[1]===187&&A[2]===191)K=3;let Y=[];while(K<q){let z=A.indexOf(10,K);if(z===-1)z=q;let w=A.toString("utf8",K,z).trim();if(K=z+1,!w)continue;try{Y.push(JSON.parse(w))}catch{}}return Y}function VhK(A){let q=uj6(A),K=q.length,Y=0,z=[];while(Y<K){let w=q.indexOf(`
`,Y);if(w===-1)w=K;let _=q.substring(Y,w).trim();if(Y=w+1,!_)continue;try{z.push(JSON.parse(_))}catch{}}return z}function Xm(A){if(lZA)return ThK(A);if(typeof A==="string")return VhK(A);return vhK(A)}async function mj6(A){let $=[];try{let{size:q}=await GhK(A);if(q<=uS6)return Xm(await WhK(A));const K=FY($,await ZhK(A,"r"),1);let Y=Buffer.allocUnsafe(uS6);let z=0;let w=q-uS6;while(z<uS6){let{bytesRead:M}=await K.read(Y,z,uS6-z,w+z);if(M===0)break;z+=M}let _=Y.indexOf(10);if(_!==-1&&_<z-1)return Xm(Y.subarray(_+1,z));return Xm(Y.subarray(0,z))}catch(O){var H=O,j=1}finally{var J=QY($,H,j);J&&await J}}function iZA(A,q){try{if(!A||A.trim()==="")return p6([q],null,4);let K=uj6(A),Y=Hr1(K);if(Array.isArray(Y)){let z=Y.length,$=mZA(K,z===0?[0]:[z],q,{formattingOptions:{insertSpaces:!0,tabSize:4},isArrayInsertion:!0});if(!$||$.length===0){let O=[...Y,q];return p6(O,null,4)}return BZA(K,$)}else return p6([q],null,4)}catch(K){return $6(K),p6([q],null,4)}}var fhK="\uFEFF",dZA,n3,lZA,uS6=104857600;var z_=E(()=>{u1();gZA();Dm();a1();dZA=_0((A,q)=>{try{return{ok:!0,value:JSON.parse(uj6(A))}}catch(K){if(q)$6(K);return{ok:!1}}},(A)=>A,50),n3=Object.assign(function(q,K=!0){if(!q)return null;let Y=dZA(q,K);return Y.ok?Y.value:null},{cache:dZA.cache});lZA=(()=>{if(typeof Bun>"u")return!1;let q=Bun.JSONL;if(!q?.parseChunk)return!1;return q.parseChunk})()});import{release as NhK}from"os";import{readFile as khK,readdir as EhK}from"fs/promises";async function rZA(A){let q=new Set;if(process.env.P4PORT)q.add("perforce");try{let K=A??P1().cwd(),Y=new Set(await EhK(K));for(let[z,w]of LhK)if(Y.has(z))q.add(w)}catch{}return[...q]}var Mr1,o8,g46,nZA,LhK;var iK=E(()=>{Rq();u1();D7();Mr1=["macos","wsl"],o8=k8(()=>{try{if(process.platform==="darwin")return"macos";if(process.platform==="win32")return"windows";if(process.platform==="linux"){try{let A=P1().readFileSync("/proc/version",{encoding:"utf8"});if(A.toLowerCase().includes("microsoft")||A.toLowerCase().includes("wsl"))return"wsl"}catch(A){$6(A)}return"linux"}return"unknown"}catch(A){return $6(A),"unknown"}}),g46=k8(()=>{if(process.platform!=="linux")return;try{let A=P1().readFileSync("/proc/version",{encoding:"utf8"}),q=A.match(/WSL(\d+)/i);if(q&&q[1])return q[1];if(A.toLowerCase().includes("microsoft"))return"1";return}catch(A){$6(A);return}}),nZA=k8(async()=>{if(process.platform!=="linux")return;let A={linuxKernel:NhK()};try{let q=await khK("/etc/os-release","utf8");for(let K of q.split(`
`)){let Y=K.match(/^(ID|VERSION_ID)=(.*)$/);if(Y&&Y[1]&&Y[2]){let z=Y[2].replace(/^"|"$/g,"");if(Y[1]==="ID")A.linuxDistroId=z;else A.linuxDistroVersion=z}}}catch{}return A}),LhK=[[".git","git"],[".hg","mercurial"],[".svn","svn"],[".p4config","perforce"],["$tf","tfs"],[".tfvc","tfs"]]});import*as oZA from"node:path/win32";import*as Bj6 from"node:path";function Dr1(A){try{return za(`dir "${A}"`,{stdio:"pipe"}),!0}catch{return!1}}function yhK(A){if(A==="git"){let q=["C:\\Program Files\\Git\\cmd\\git.exe","C:\\Program Files (x86)\\Git\\cmd\\git.exe"];for(let K of q)if(Dr1(K))return K}try{let K=za(`where.exe ${A}`,{stdio:"pipe",encoding:"utf8"}).trim().split(`\r
`).filter(Boolean),Y=h1().toLowerCase();for(let z of K){let w=Bj6.resolve(z).toLowerCase();if(Bj6.dirname(w).toLowerCase()===Y||w.startsWith(Y+Bj6.sep)){y(`Skipping potentially malicious executable in current directory: ${z}`);continue}return z}return null}catch{return null}}var aZA=()=>{if(o8()==="windows"){let A=Xr1();process.env.SHELL=A,y(`Using bash path: "${A}"`)}},Xr1,RC,mS6;var p46=E(()=>{gA1();Rq();Dm();iK();Z1();X7();Xr1=k8(()=>{if(process.env.CLAUDE_CODE_GIT_BASH_PATH){if(Dr1(process.env.CLAUDE_CODE_GIT_BASH_PATH))return process.env.CLAUDE_CODE_GIT_BASH_PATH;console.error(`Claude Code was unable to find CLAUDE_CODE_GIT_BASH_PATH path "${process.env.CLAUDE_CODE_GIT_BASH_PATH}"`),process.exit(1)}let A=yhK("git");if(A){let q=oZA.join(A,"..","..","bin","bash.exe");if(Dr1(q))return q}console.error("Claude Code on Windows requires git-bash (https://git-scm.com/downloads/win). If installed but not in PATH, set environment variable pointing to your bash.exe, similar to: CLAUDE_CODE_GIT_BASH_PATH=C:\\Program Files\\Git\\bin\\bash.exe"),process.exit(1)}),RC=_0((A)=>{if(A.startsWith("\\\\"))return A.replace(/\\/g,"/");let q=A.match(/^([A-Za-z]):[/\\]/);if(q)return"/"+q[1].toLowerCase()+A.slice(2).replace(/\\/g,"/");return A.replace(/\\/g,"/")},(A)=>A,500),mS6=_0((A)=>{if(A.startsWith("//"))return A.replace(/\//g,"\\");let q=A.match(/^\/cygdrive\/([A-Za-z])(\/|$)/);if(q){let Y=q[1].toUpperCase(),z=A.slice(("/cygdrive/"+q[1]).length);return Y+":"+(z||"\\").replace(/\//g,"\\")}let K=A.match(/^\/([A-Za-z])(\/|$)/);if(K){let Y=K[1].toUpperCase(),z=A.slice(2);return Y+":"+(z||"\\").replace(/\//g,"\\")}return A.replace(/\//g,"\\")},(A)=>A,500)});import{open as eZA,readdir as gjw,readFile as RhK,realpath as pjw}from"fs/promises";function AfA(A){if(!A.includes("\\"))return A;try{return JSON.parse(`"${A}"`)}catch{return A}}function BS6(A,q){let K=[`"${q}":"`,`"${q}": "`];for(let Y of K){let z=A.indexOf(Y);if(z<0)continue;let w=z+Y.length,_=w;while(_<A.length){if(A[_]==="\\"){_+=2;continue}if(A[_]==='"')return AfA(A.slice(w,_));_++}}return}function ZU(A,q){let K=[`"${q}":"`,`"${q}": "`],Y;for(let z of K){let w=0;while(!0){let _=A.indexOf(z,w);if(_<0)break;let $=_+z.length,O=$;while(O<A.length){if(A[O]==="\\"){O+=2;continue}if(A[O]==='"'){Y=AfA(A.slice($,O));break}O++}w=O+1}}return Y}async function qfA(A,q,K){try{let Y=await eZA(A,"r");try{let z=await Y.read(K,0,gj6,0);if(z.bytesRead===0)return{head:"",tail:""};let w=K.toString("utf8",0,z.bytesRead),_=Math.max(0,q-gj6),$=_===0?w:await(async()=>{let O=await Y.read(K,0,gj6,_);return K.toString("utf8",0,O.bytesRead)})();return{head:w,tail:$}}finally{await Y.close()}}catch{return{head:"",tail:""}}}function ShK(A){let q=0;for(let K=0;K<A.length;K++){let Y=A.charCodeAt(K);q=(q<<5)-q+Y,q|=0}return Math.abs(q).toString(36)}function qf(A){let q=A.replace(/[^a-zA-Z0-9]/g,"-");if(q.length<=sZA)return q;let K=typeof Bun<"u"?Bun.hash(A).toString(36):ShK(A);return`${q.slice(0,sZA)}-${K}`}function ChK(A){let q=Buffer.from('"compact_boundary"'),K=10,Y=A.lastIndexOf(q);while(Y>=0){let z=A.lastIndexOf(10,Y)+1,w=A.indexOf(10,Y);if(w===-1)w=A.length;let _=A.toString("utf-8",z,w);try{let $=JSON.parse(_);if($.type==="system"&&$.subtype==="compact_boundary")return w+1}catch{}Y=Y>0?A.lastIndexOf(q,Y-1):-1}return-1}async function I71(A,q){if(q<=tZA){let J=await RhK(A),M=ChK(J);if(M<0)return{boundaryEndOffset:0,postBoundaryBuf:J};return{boundaryEndOffset:M,postBoundaryBuf:Buffer.from(J.subarray(M))}}let K=Buffer.from('"compact_boundary"'),Y=10,z=1024,w=tZA,_=Buffer.allocUnsafe(w),$=w,O=q,H=w,j=await eZA(A,"r");try{while($>0){let J=Math.min(hhK,$),M=$-J,D=O-J,X=M,P=J,W=D;while(P>0){let{bytesRead:V}=await j.read(_,X,P,W);if(V===0)break;X+=V,P-=V,W+=V}$=M,O=D;let G=_.subarray($),Z=Math.min(H+z-$,G.length),f=G.subarray(0,Z);H=$;let v=f.lastIndexOf(K);while(v>=0){let V=G.lastIndexOf(Y,v)+1;if(V===0&&O>0)break;let N=G.indexOf(Y,v);if(N===-1)N=G.length;let L=G.toString("utf-8",V,N);try{let S=JSON.parse(L);if(S.type==="system"&&S.subtype==="compact_boundary")return{boundaryEndOffset:O+N+1,postBoundaryBuf:Buffer.from(G.subarray(N+1))}}catch{}v=v>0?f.lastIndexOf(K,v-1):-1}}return null}finally{await j.close()}}var gj6=65536,sZA=200,hhK=1048576,tZA=67108864,KfA=5242880;var x71=E(()=>{Z8()});import{homedir as YfA}from"os";import{isAbsolute as IhK,join as xhK,resolve as bhK,normalize as Pr1,dirname as zfA}from"path";function o4(A,q){let K=q??h1()??P1().cwd();if(typeof A!=="string")throw TypeError(`Path must be a string, received ${typeof A}`);if(typeof K!=="string")throw TypeError(`Base directory must be a string, received ${typeof K}`);if(A.includes("\x00")||K.includes("\x00"))throw Error("Path contains null bytes");let Y=A.trim();if(!Y)return Pr1(K).normalize("NFC");if(Y==="~")return YfA().normalize("NFC");if(Y.startsWith("~/"))return xhK(YfA(),Y.slice(2)).normalize("NFC");let z=Y;if(o8()==="windows"&&Y.match(/^\/[a-z]\//i))try{z=mS6(Y)}catch{z=Y}if(IhK(z))return Pr1(z).normalize("NFC");return bhK(K,z).normalize("NFC")}function fU(A){let q=o4(A);if(q.startsWith("\\\\")||q.startsWith("//"))return zfA(q);try{if(P1().statSync(q).isDirectory())return q}catch{}return zfA(q)}function Ja(A){return/(?:^|[\\/])\.\.(?:[\\/]|$)/.test(A)}function gS6(A){return Pr1(A).replace(/\\/g,"/")}var iY=E(()=>{X7();D7();iK();p46();x71()});function Ma(A,q){return A instanceof Error&&A.message===q}function D1(A){return A instanceof Error?A.message:String(A)}var pS6,Pm,Tw,Kf,SC,GD,Ay;var DA=E(()=>{pS6=class pS6 extends Error{constructor(A){super(A);this.name=this.constructor.name}};Pm=class Pm extends Error{};Tw=class Tw extends Error{constructor(A){super(A);this.name="AbortError"}};Kf=class Kf extends Error{filePath;defaultConfig;constructor(A,q,K){super(A);this.name="ConfigParseError",this.filePath=q,this.defaultConfig=K}};SC=class SC extends Error{stdout;stderr;code;interrupted;constructor(A,q,K,Y){super("Shell command failed");this.stdout=A;this.stderr=q;this.code=K;this.interrupted=Y;this.name="ShellError"}};GD=class GD extends Error{formattedMessage;constructor(A,q){super(A);this.formattedMessage=q;this.name="TeleportOperationError"}};Ay=class Ay extends Error{telemetryMessage;constructor(A,q){super(A);this.name="TelemetrySafeError",this.telemetryMessage=q??A}}});var _fA=h((sjw,wfA)=>{var Da=u6("constants"),uhK=process.cwd,b71=null,mhK=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!b71)b71=uhK.call(process);return b71};try{process.cwd()}catch(A){}if(typeof process.chdir==="function"){if(u71=process.chdir,process.chdir=function(A){b71=null,u71.call(process,A)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,u71)}var u71;wfA.exports=BhK;function BhK(A){if(Da.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))q(A);if(!A.lutimes)K(A);if(A.chown=w(A.chown),A.fchown=w(A.fchown),A.lchown=w(A.lchown),A.chmod=Y(A.chmod),A.fchmod=Y(A.fchmod),A.lchmod=Y(A.lchmod),A.chownSync=_(A.chownSync),A.fchownSync=_(A.fchownSync),A.lchownSync=_(A.lchownSync),A.chmodSync=z(A.chmodSync),A.fchmodSync=z(A.fchmodSync),A.lchmodSync=z(A.lchmodSync),A.stat=$(A.stat),A.fstat=$(A.fstat),A.lstat=$(A.lstat),A.statSync=O(A.statSync),A.fstatSync=O(A.fstatSync),A.lstatSync=O(A.lstatSync),A.chmod&&!A.lchmod)A.lchmod=function(j,J,M){if(M)process.nextTick(M)},A.lchmodSync=function(){};if(A.chown&&!A.lchown)A.lchown=function(j,J,M,D){if(D)process.nextTick(D)},A.lchownSync=function(){};if(mhK==="win32")A.rename=typeof A.rename!=="function"?A.rename:function(j){function J(M,D,X){var P=Date.now(),W=0;j(M,D,function G(Z){if(Z&&(Z.code==="EACCES"||Z.code==="EPERM"||Z.code==="EBUSY")&&Date.now()-P<60000){if(setTimeout(function(){A.stat(D,function(f,v){if(f&&f.code==="ENOENT")j(M,D,G);else X(Z)})},W),W<100)W+=10;return}if(X)X(Z)})}if(Object.setPrototypeOf)Object.setPrototypeOf(J,j);return J}(A.rename);A.read=typeof A.read!=="function"?A.read:function(j){function J(M,D,X,P,W,G){var Z;if(G&&typeof G==="function"){var f=0;Z=function(v,V,N){if(v&&v.code==="EAGAIN"&&f<10)return f++,j.call(A,M,D,X,P,W,Z);G.apply(this,arguments)}}return j.call(A,M,D,X,P,W,Z)}if(Object.setPrototypeOf)Object.setPrototypeOf(J,j);return J}(A.read),A.readSync=typeof A.readSync!=="function"?A.readSync:function(j){return function(J,M,D,X,P){var W=0;while(!0)try{return j.call(A,J,M,D,X,P)}catch(G){if(G.code==="EAGAIN"&&W<10){W++;continue}throw G}}}(A.readSync);function q(j){j.lchmod=function(J,M,D){j.open(J,Da.O_WRONLY|Da.O_SYMLINK,M,function(X,P){if(X){if(D)D(X);return}j.fchmod(P,M,function(W){j.close(P,function(G){if(D)D(W||G)})})})},j.lchmodSync=function(J,M){var D=j.openSync(J,Da.O_WRONLY|Da.O_SYMLINK,M),X=!0,P;try{P=j.fchmodSync(D,M),X=!1}finally{if(X)try{j.closeSync(D)}catch(W){}else j.closeSync(D)}return P}}function K(j){if(Da.hasOwnProperty("O_SYMLINK")&&j.futimes)j.lutimes=function(J,M,D,X){j.open(J,Da.O_SYMLINK,function(P,W){if(P){if(X)X(P);return}j.futimes(W,M,D,function(G){j.close(W,function(Z){if(X)X(G||Z)})})})},j.lutimesSync=function(J,M,D){var X=j.openSync(J,Da.O_SYMLINK),P,W=!0;try{P=j.futimesSync(X,M,D),W=!1}finally{if(W)try{j.closeSync(X)}catch(G){}else j.closeSync(X)}return P};else if(j.futimes)j.lutimes=function(J,M,D,X){if(X)process.nextTick(X)},j.lutimesSync=function(){}}function Y(j){if(!j)return j;return function(J,M,D){return j.call(A,J,M,function(X){if(H(X))X=null;if(D)D.apply(this,arguments)})}}function z(j){if(!j)return j;return function(J,M){try{return j.call(A,J,M)}catch(D){if(!H(D))throw D}}}function w(j){if(!j)return j;return function(J,M,D,X){return j.call(A,J,M,D,function(P){if(H(P))P=null;if(X)X.apply(this,arguments)})}}function _(j){if(!j)return j;return function(J,M,D){try{return j.call(A,J,M,D)}catch(X){if(!H(X))throw X}}}function $(j){if(!j)return j;return function(J,M,D){if(typeof M==="function")D=M,M=null;function X(P,W){if(W){if(W.uid<0)W.uid+=4294967296;if(W.gid<0)W.gid+=4294967296}if(D)D.apply(this,arguments)}return M?j.call(A,J,M,X):j.call(A,J,X)}}function O(j){if(!j)return j;return function(J,M){var D=M?j.call(A,J,M):j.call(A,J);if(D){if(D.uid<0)D.uid+=4294967296;if(D.gid<0)D.gid+=4294967296}return D}}function H(j){if(!j)return!0;if(j.code==="ENOSYS")return!0;var J=!process.getuid||process.getuid()!==0;if(J){if(j.code==="EINVAL"||j.code==="EPERM")return!0}return!1}}});var HfA=h((tjw,OfA)=>{var $fA=u6("stream").Stream;OfA.exports=ghK;function ghK(A){return{ReadStream:q,WriteStream:K};function q(Y,z){if(!(this instanceof q))return new q(Y,z);$fA.call(this);var w=this;this.path=Y,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,z=z||{};var _=Object.keys(z);for(var $=0,O=_.length;$<O;$++){var H=_[$];this[H]=z[H]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!=="number")throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){w._read()});return}A.open(this.path,this.flags,this.mode,function(j,J){if(j){w.emit("error",j),w.readable=!1;return}w.fd=J,w.emit("open",J),w._read()})}function K(Y,z){if(!(this instanceof K))return new K(Y,z);$fA.call(this),this.path=Y,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,z=z||{};var w=Object.keys(z);for(var _=0,$=w.length;_<$;_++){var O=w[_];this[O]=z[O]}if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.start<0)throw Error("start must be >= zero");this.pos=this.start}if(this.busy=!1,this._queue=[],this.fd===null)this._open=A.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush()}}});var JfA=h((ejw,jfA)=>{jfA.exports=FhK;var phK=Object.getPrototypeOf||function(A){return A.__proto__};function FhK(A){if(A===null||typeof A!=="object")return A;if(A instanceof Object)var q={__proto__:phK(A)};else var q=Object.create(null);return Object.getOwnPropertyNames(A).forEach(function(K){Object.defineProperty(q,K,Object.getOwnPropertyDescriptor(A,K))}),q}});var vw=h((AJw,fr1)=>{var WH=u6("fs"),QhK=_fA(),UhK=HfA(),dhK=JfA(),m71=u6("util"),$0,g71;if(typeof Symbol==="function"&&typeof Symbol.for==="function")$0=Symbol.for("graceful-fs.queue"),g71=Symbol.for("graceful-fs.previous");else $0="___graceful-fs.queue",g71="___graceful-fs.previous";function chK(){}function DfA(A,q){Object.defineProperty(A,$0,{get:function(){return q}})}var F46=chK;if(m71.debuglog)F46=m71.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))F46=function(){var A=m71.format.apply(m71,arguments);A="GFS4: "+A.split(/\n/).join(`
GFS4: `),console.error(A)};if(!WH[$0]){if(Wr1=global[$0]||[],DfA(WH,Wr1),WH.close=function(A){function q(K,Y){return A.call(WH,K,function(z){if(!z)MfA();if(typeof Y==="function")Y.apply(this,arguments)})}return Object.defineProperty(q,g71,{value:A}),q}(WH.close),WH.closeSync=function(A){function q(K){A.apply(WH,arguments),MfA()}return Object.defineProperty(q,g71,{value:A}),q}(WH.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){F46(WH[$0]),u6("assert").equal(WH[$0].length,0)})}var Wr1;if(!global[$0])DfA(global,WH[$0]);fr1.exports=Gr1(dhK(WH));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!WH.__patched)fr1.exports=Gr1(WH),WH.__patched=!0;function Gr1(A){QhK(A),A.gracefulify=Gr1,A.createReadStream=V,A.createWriteStream=N;var q=A.readFile;A.readFile=K;function K(C,m,x){if(typeof m==="function")x=m,m=null;return p(C,m,x);function p(g,b,Q,c){return q(g,b,function(d){if(d&&(d.code==="EMFILE"||d.code==="ENFILE"))pj6([p,[g,b,Q],d,c||Date.now(),Date.now()]);else if(typeof Q==="function")Q.apply(this,arguments)})}}var Y=A.writeFile;A.writeFile=z;function z(C,m,x,p){if(typeof x==="function")p=x,x=null;return g(C,m,x,p);function g(b,Q,c,d,A6){return Y(b,Q,c,function(e){if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))pj6([g,[b,Q,c,d],e,A6||Date.now(),Date.now()]);else if(typeof d==="function")d.apply(this,arguments)})}}var w=A.appendFile;if(w)A.appendFile=_;function _(C,m,x,p){if(typeof x==="function")p=x,x=null;return g(C,m,x,p);function g(b,Q,c,d,A6){return w(b,Q,c,function(e){if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))pj6([g,[b,Q,c,d],e,A6||Date.now(),Date.now()]);else if(typeof d==="function")d.apply(this,arguments)})}}var $=A.copyFile;if($)A.copyFile=O;function O(C,m,x,p){if(typeof x==="function")p=x,x=0;return g(C,m,x,p);function g(b,Q,c,d,A6){return $(b,Q,c,function(e){if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))pj6([g,[b,Q,c,d],e,A6||Date.now(),Date.now()]);else if(typeof d==="function")d.apply(this,arguments)})}}var H=A.readdir;A.readdir=J;var j=/^v[0-5]\./;function J(C,m,x){if(typeof m==="function")x=m,m=null;var p=j.test(process.version)?function(Q,c,d,A6){return H(Q,g(Q,c,d,A6))}:function(Q,c,d,A6){return H(Q,c,g(Q,c,d,A6))};return p(C,m,x);function g(b,Q,c,d){return function(A6,e){if(A6&&(A6.code==="EMFILE"||A6.code==="ENFILE"))pj6([p,[b,Q,c],A6,d||Date.now(),Date.now()]);else{if(e&&e.sort)e.sort();if(typeof c==="function")c.call(this,A6,e)}}}}if(process.version.substr(0,4)==="v0.8"){var M=UhK(A);G=M.ReadStream,f=M.WriteStream}var D=A.ReadStream;if(D)G.prototype=Object.create(D.prototype),G.prototype.open=Z;var X=A.WriteStream;if(X)f.prototype=Object.create(X.prototype),f.prototype.open=v;Object.defineProperty(A,"ReadStream",{get:function(){return G},set:function(C){G=C},enumerable:!0,configurable:!0}),Object.defineProperty(A,"WriteStream",{get:function(){return f},set:function(C){f=C},enumerable:!0,configurable:!0});var P=G;Object.defineProperty(A,"FileReadStream",{get:function(){return P},set:function(C){P=C},enumerable:!0,configurable:!0});var W=f;Object.defineProperty(A,"FileWriteStream",{get:function(){return W},set:function(C){W=C},enumerable:!0,configurable:!0});function G(C,m){if(this instanceof G)return D.apply(this,arguments),this;else return G.apply(Object.create(G.prototype),arguments)}function Z(){var C=this;S(C.path,C.flags,C.mode,function(m,x){if(m){if(C.autoClose)C.destroy();C.emit("error",m)}else C.fd=x,C.emit("open",x),C.read()})}function f(C,m){if(this instanceof f)return X.apply(this,arguments),this;else return f.apply(Object.create(f.prototype),arguments)}function v(){var C=this;S(C.path,C.flags,C.mode,function(m,x){if(m)C.destroy(),C.emit("error",m);else C.fd=x,C.emit("open",x)})}function V(C,m){return new A.ReadStream(C,m)}function N(C,m){return new A.WriteStream(C,m)}var L=A.open;A.open=S;function S(C,m,x,p){if(typeof x==="function")p=x,x=null;return g(C,m,x,p);function g(b,Q,c,d,A6){return L(b,Q,c,function(e,O6){if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))pj6([g,[b,Q,c,d],e,A6||Date.now(),Date.now()]);else if(typeof d==="function")d.apply(this,arguments)})}}return A}function pj6(A){F46("ENQUEUE",A[0].name,A[1]),WH[$0].push(A),Zr1()}var B71;function MfA(){var A=Date.now();for(var q=0;q<WH[$0].length;++q)if(WH[$0][q].length>2)WH[$0][q][3]=A,WH[$0][q][4]=A;Zr1()}function Zr1(){if(clearTimeout(B71),B71=void 0,WH[$0].length===0)return;var A=WH[$0].shift(),q=A[0],K=A[1],Y=A[2],z=A[3],w=A[4];if(z===void 0)F46("RETRY",q.name,K),q.apply(null,K);else if(Date.now()-z>=60000){F46("TIMEOUT",q.name,K);var _=K.pop();if(typeof _==="function")_.call(null,Y)}else{var $=Date.now()-w,O=Math.max(w-z,1),H=Math.min(O*1.2,100);if($>=H)F46("RETRY",q.name,K),q.apply(null,K.concat([z]));else WH[$0].push(A)}if(B71===void 0)B71=setTimeout(Zr1,0)}});var PfA=h((qJw,XfA)=>{function qy(A,q){if(typeof q==="boolean")q={forever:q};if(this._originalTimeouts=JSON.parse(JSON.stringify(A)),this._timeouts=A,this._options=q||{},this._maxRetryTime=q&&q.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever)this._cachedTimeouts=this._timeouts.slice(0)}XfA.exports=qy;qy.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};qy.prototype.stop=function(){if(this._timeout)clearTimeout(this._timeout);this._timeouts=[],this._cachedTimeouts=null};qy.prototype.retry=function(A){if(this._timeout)clearTimeout(this._timeout);if(!A)return!1;var q=new Date().getTime();if(A&&q-this._operationStart>=this._maxRetryTime)return this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(A);var K=this._timeouts.shift();if(K===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),K=this._timeouts.shift();else return!1;var Y=this,z=setTimeout(function(){if(Y._attempts++,Y._operationTimeoutCb){if(Y._timeout=setTimeout(function(){Y._operationTimeoutCb(Y._attempts)},Y._operationTimeout),Y._options.unref)Y._timeout.unref()}Y._fn(Y._attempts)},K);if(this._options.unref)z.unref();return!0};qy.prototype.attempt=function(A,q){if(this._fn=A,q){if(q.timeout)this._operationTimeout=q.timeout;if(q.cb)this._operationTimeoutCb=q.cb}var K=this;if(this._operationTimeoutCb)this._timeout=setTimeout(function(){K._operationTimeoutCb()},K._operationTimeout);this._operationStart=new Date().getTime(),this._fn(this._attempts)};qy.prototype.try=function(A){console.log("Using RetryOperation.try() is deprecated"),this.attempt(A)};qy.prototype.start=function(A){console.log("Using RetryOperation.start() is deprecated"),this.attempt(A)};qy.prototype.start=qy.prototype.try;qy.prototype.errors=function(){return this._errors};qy.prototype.attempts=function(){return this._attempts};qy.prototype.mainError=function(){if(this._errors.length===0)return null;var A={},q=null,K=0;for(var Y=0;Y<this._errors.length;Y++){var z=this._errors[Y],w=z.message,_=(A[w]||0)+1;if(A[w]=_,_>=K)q=z,K=_}return q}});var GfA=h((ihK)=>{var lhK=PfA();ihK.operation=function(A){var q=ihK.timeouts(A);return new lhK(q,{forever:A&&A.forever,unref:A&&A.unref,maxRetryTime:A&&A.maxRetryTime})};ihK.timeouts=function(A){if(A instanceof Array)return[].concat(A);var q={retries:10,factor:2,minTimeout:1000,maxTimeout:1/0,randomize:!1};for(var K in A)q[K]=A[K];if(q.minTimeout>q.maxTimeout)throw Error("minTimeout is greater than maxTimeout");var Y=[];for(var z=0;z<q.retries;z++)Y.push(this.createTimeout(z,q));if(A&&A.forever&&!Y.length)Y.push(this.createTimeout(z,q));return Y.sort(function(w,_){return w-_}),Y};ihK.createTimeout=function(A,q){var K=q.randomize?Math.random()+1:1,Y=Math.round(K*q.minTimeout*Math.pow(q.factor,A));return Y=Math.min(Y,q.maxTimeout),Y};ihK.wrap=function(A,q,K){if(q instanceof Array)K=q,q=null;if(!K){K=[];for(var Y in A)if(typeof A[Y]==="function")K.push(Y)}for(var z=0;z<K.length;z++){var w=K[z],_=A[w];A[w]=function(O){var H=ihK.operation(q),j=Array.prototype.slice.call(arguments,1),J=j.pop();j.push(function(M){if(H.retry(M))return;if(M)arguments[0]=H.mainError();J.apply(this,arguments)}),H.attempt(function(){O.apply(A,j)})}.bind(A,_),A[w].options=q}}});var ZfA=h((YJw,p71)=>{p71.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32")p71.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")p71.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var ffA=h((zJw,Qj6)=>{var ZO=global.process,Q46=function(A){return A&&typeof A==="object"&&typeof A.removeListener==="function"&&typeof A.emit==="function"&&typeof A.reallyExit==="function"&&typeof A.listeners==="function"&&typeof A.kill==="function"&&typeof A.pid==="number"&&typeof A.on==="function"};if(!Q46(ZO))Qj6.exports=function(){return function(){}};else{if(Tr1=u6("assert"),U46=ZfA(),vr1=/^win/i.test(ZO.platform),Fj6=u6("events"),typeof Fj6!=="function")Fj6=Fj6.EventEmitter;if(ZO.__signal_exit_emitter__)ZD=ZO.__signal_exit_emitter__;else ZD=ZO.__signal_exit_emitter__=new Fj6,ZD.count=0,ZD.emitted={};if(!ZD.infinite)ZD.setMaxListeners(1/0),ZD.infinite=!0;Qj6.exports=function(A,q){if(!Q46(global.process))return function(){};if(Tr1.equal(typeof A,"function","a callback must be provided for exit handler"),d46===!1)F71();var K="exit";if(q&&q.alwaysLast)K="afterexit";var Y=function(){if(ZD.removeListener(K,A),ZD.listeners("exit").length===0&&ZD.listeners("afterexit").length===0)FS6()};return ZD.on(K,A),Y},FS6=function(){if(!d46||!Q46(global.process))return;d46=!1,U46.forEach(function(q){try{ZO.removeListener(q,QS6[q])}catch(K){}}),ZO.emit=US6,ZO.reallyExit=Q71,ZD.count-=1},Qj6.exports.unload=FS6,Xa=function(q,K,Y){if(ZD.emitted[q])return;ZD.emitted[q]=!0,ZD.emit(q,K,Y)},QS6={},U46.forEach(function(A){QS6[A]=function(){if(!Q46(global.process))return;var K=ZO.listeners(A);if(K.length===ZD.count){if(FS6(),Xa("exit",null,A),Xa("afterexit",null,A),vr1&&A==="SIGHUP")A="SIGINT";ZO.kill(ZO.pid,A)}}}),Qj6.exports.signals=function(){return U46},d46=!1,F71=function(){if(d46||!Q46(global.process))return;d46=!0,ZD.count+=1,U46=U46.filter(function(q){try{return ZO.on(q,QS6[q]),!0}catch(K){return!1}}),ZO.emit=Nr1,ZO.reallyExit=Vr1},Qj6.exports.load=F71,Q71=ZO.reallyExit,Vr1=function(q){if(!Q46(global.process))return;ZO.exitCode=q||0,Xa("exit",ZO.exitCode,null),Xa("afterexit",ZO.exitCode,null),Q71.call(ZO,ZO.exitCode)},US6=ZO.emit,Nr1=function(q,K){if(q==="exit"&&Q46(global.process)){if(K!==void 0)ZO.exitCode=K;var Y=US6.apply(this,arguments);return Xa("exit",ZO.exitCode,null),Xa("afterexit",ZO.exitCode,null),Y}else return US6.apply(this,arguments)}}var Tr1,U46,vr1,Fj6,ZD,FS6,Xa,QS6,d46,F71,Q71,Vr1,US6,Nr1});var vfA=h((thK,kr1)=>{var TfA=Symbol();function ahK(A,q,K){let Y=q[TfA];if(Y)return q.stat(A,(w,_)=>{if(w)return K(w);K(null,_.mtime,Y)});let z=new Date(Math.ceil(Date.now()/1000)*1000+5);q.utimes(A,z,z,(w)=>{if(w)return K(w);q.stat(A,(_,$)=>{if(_)return K(_);let O=$.mtime.getTime()%1000===0?"s":"ms";Object.defineProperty(q,TfA,{value:O}),K(null,$.mtime,O)})})}function shK(A){let q=Date.now();if(A==="s")q=Math.ceil(q/1000)*1000;return new Date(q)}thK.probe=ahK;thK.getMtime=shK});var LfA=h(($CK,cS6)=>{var qCK=u6("path"),yr1=vw(),KCK=GfA(),YCK=ffA(),VfA=vfA(),TU={};function dS6(A,q){return q.lockfilePath||`${A}.lock`}function Rr1(A,q,K){if(!q.realpath)return K(null,qCK.resolve(A));q.fs.realpath(A,K)}function Lr1(A,q,K){let Y=dS6(A,q);q.fs.mkdir(Y,(z)=>{if(!z)return VfA.probe(Y,q.fs,(w,_,$)=>{if(w)return q.fs.rmdir(Y,()=>{}),K(w);K(null,_,$)});if(z.code!=="EEXIST")return K(z);if(q.stale<=0)return K(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:A}));q.fs.stat(Y,(w,_)=>{if(w){if(w.code==="ENOENT")return Lr1(A,{...q,stale:0},K);return K(w)}if(!NfA(_,q))return K(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:A}));kfA(A,q,($)=>{if($)return K($);Lr1(A,{...q,stale:0},K)})})})}function NfA(A,q){return A.mtime.getTime()<Date.now()-q.stale}function kfA(A,q,K){q.fs.rmdir(dS6(A,q),(Y)=>{if(Y&&Y.code!=="ENOENT")return K(Y);K()})}function U71(A,q){let K=TU[A];if(K.updateTimeout)return;if(K.updateDelay=K.updateDelay||q.update,K.updateTimeout=setTimeout(()=>{K.updateTimeout=null,q.fs.stat(K.lockfilePath,(Y,z)=>{let w=K.lastUpdate+q.stale<Date.now();if(Y){if(Y.code==="ENOENT"||w)return Er1(A,K,Object.assign(Y,{code:"ECOMPROMISED"}));return K.updateDelay=1000,U71(A,q)}if(K.mtime.getTime()!==z.mtime.getTime())return Er1(A,K,Object.assign(Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let $=VfA.getMtime(K.mtimePrecision);q.fs.utimes(K.lockfilePath,$,$,(O)=>{let H=K.lastUpdate+q.stale<Date.now();if(K.released)return;if(O){if(O.code==="ENOENT"||H)return Er1(A,K,Object.assign(O,{code:"ECOMPROMISED"}));return K.updateDelay=1000,U71(A,q)}K.mtime=$,K.lastUpdate=Date.now(),K.updateDelay=null,U71(A,q)})})},K.updateDelay),K.updateTimeout.unref)K.updateTimeout.unref()}function Er1(A,q,K){if(q.released=!0,q.updateTimeout)clearTimeout(q.updateTimeout);if(TU[A]===q)delete TU[A];q.options.onCompromised(K)}function zCK(A,q,K){q={stale:1e4,update:null,realpath:!0,retries:0,fs:yr1,onCompromised:(Y)=>{throw Y},...q},q.retries=q.retries||0,q.retries=typeof q.retries==="number"?{retries:q.retries}:q.retries,q.stale=Math.max(q.stale||0,2000),q.update=q.update==null?q.stale/2:q.update||0,q.update=Math.max(Math.min(q.update,q.stale/2),1000),Rr1(A,q,(Y,z)=>{if(Y)return K(Y);let w=KCK.operation(q.retries);w.attempt(()=>{Lr1(z,q,(_,$,O)=>{if(w.retry(_))return;if(_)return K(w.mainError());let H=TU[z]={lockfilePath:dS6(z,q),mtime:$,mtimePrecision:O,options:q,lastUpdate:Date.now()};U71(z,q),K(null,(j)=>{if(H.released)return j&&j(Object.assign(Error("Lock is already released"),{code:"ERELEASED"}));EfA(z,{...q,realpath:!1},j)})})})})}function EfA(A,q,K){q={fs:yr1,realpath:!0,...q},Rr1(A,q,(Y,z)=>{if(Y)return K(Y);let w=TU[z];if(!w)return K(Object.assign(Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));w.updateTimeout&&clearTimeout(w.updateTimeout),w.released=!0,delete TU[z],kfA(z,q,K)})}function wCK(A,q,K){q={stale:1e4,realpath:!0,fs:yr1,...q},q.stale=Math.max(q.stale||0,2000),Rr1(A,q,(Y,z)=>{if(Y)return K(Y);q.fs.stat(dS6(z,q),(w,_)=>{if(w)return w.code==="ENOENT"?K(null,!1):K(w);return K(null,!NfA(_,q))})})}function _CK(){return TU}YCK(()=>{for(let A in TU){let q=TU[A].options;try{q.fs.rmdirSync(dS6(A,q))}catch(K){}}});$CK.lock=zCK;$CK.unlock=EfA;$CK.check=wCK;$CK.getLocks=_CK});var RfA=h((wJw,yfA)=>{var MCK=vw();function DCK(A){let q=["mkdir","realpath","stat","rmdir","utimes"],K={...A};return q.forEach((Y)=>{K[Y]=(...z)=>{let w=z.pop(),_;try{_=A[`${Y}Sync`](...z)}catch($){return w($)}w(null,_)}}),K}function XCK(A){return(...q)=>new Promise((K,Y)=>{q.push((z,w)=>{if(z)Y(z);else K(w)}),A(...q)})}function PCK(A){return(...q)=>{let K,Y;if(q.push((z,w)=>{K=z,Y=w}),A(...q),K)throw K;return Y}}function WCK(A){if(A={...A},A.fs=DCK(A.fs||MCK),typeof A.retries==="number"&&A.retries>0||A.retries&&typeof A.retries.retries==="number"&&A.retries.retries>0)throw Object.assign(Error("Cannot use retries with the sync api"),{code:"ESYNC"});return A}yfA.exports={toPromise:XCK,toSync:PCK,toSyncOptions:WCK}});var Wm=h((_Jw,Pa)=>{var Uj6=LfA(),{toPromise:d71,toSync:c71,toSyncOptions:Sr1}=RfA();async function SfA(A,q){let K=await d71(Uj6.lock)(A,q);return d71(K)}function GCK(A,q){let K=c71(Uj6.lock)(A,Sr1(q));return c71(K)}function ZCK(A,q){return d71(Uj6.unlock)(A,q)}function fCK(A,q){return c71(Uj6.unlock)(A,Sr1(q))}function TCK(A,q){return d71(Uj6.check)(A,q)}function vCK(A,q){return c71(Uj6.check)(A,Sr1(q))}Pa.exports=SfA;Pa.exports.lock=SfA;Pa.exports.unlock=ZCK;Pa.exports.lockSync=GCK;Pa.exports.unlockSync=fCK;Pa.exports.check=TCK;Pa.exports.checkSync=vCK});function Xv(A,q,K=10*CfA*hfA){let H=[];try{let Y;if(q===void 0)Y={};else if(q instanceof AbortSignal)Y={abortSignal:q,timeout:K};else Y=q;let{abortSignal:z,timeout:w=10*CfA*hfA,input:_,stdio:$=["ignore","pipe","pipe"]}=Y;z?.throwIfAborted();const O=FY(H,iw`exec: ${A.slice(0,200)}`,0);try{let D=L46(A,{env:process.env,maxBuffer:1e6,timeout:w,cwd:h1(),stdio:$,shell:!0,reject:!1,input:_});if(!D.stdout)return null;return D.stdout.trim()||null}catch{return null}}catch(j){var J=j,M=1}finally{QY(H,J,M)}}var hfA=1000,CfA=60;var hr1=E(()=>{eZ();X7();a1()});function G8(A,q,K={timeout:10*Ir1*Cr1,preserveOutputOnError:!0,useCwd:!0}){return Y7(A,q,{abortSignal:K.abortSignal,timeout:K.timeout,preserveOutputOnError:K.preserveOutputOnError,cwd:K.useCwd?h1():void 0,env:K.env,stdin:K.stdin})}function VCK(A,q){if(A.shortMessage)return A.shortMessage;if(typeof A.signal==="string")return A.signal;return String(q)}function Y7(A,q,{abortSignal:K,timeout:Y=10*Ir1*Cr1,preserveOutputOnError:z=!0,cwd:w,env:_,maxBuffer:$,shell:O,stdin:H}={timeout:10*Ir1*Cr1,preserveOutputOnError:!0,maxBuffer:1e6}){return new Promise((j)=>{HY(A,q,{maxBuffer:$,signal:K,timeout:Y,cwd:w,env:_,shell:O,stdin:H,reject:!1}).then((J)=>{if(J.failed)if(z){let M=J.exitCode??1;j({stdout:J.stdout||"",stderr:J.stderr||"",code:M,error:VCK(J,M)})}else j({stdout:"",stderr:"",code:J.exitCode??1});else j({stdout:J.stdout,stderr:J.stderr,code:0})}).catch((J)=>{$6(J),j({stdout:"",stderr:"",code:1})})})}var Cr1=1000,Ir1=60;var dq=E(()=>{eZ();X7();u1();hr1()});import{fileURLToPath as NCK}from"node:url";import*as Wa from"node:path";import{homedir as kCK}from"node:os";import{execFile as ECK,spawn as LCK}from"child_process";function dj6(){let A=i71();return{rgPath:A.command,rgArgs:A.args,argv0:A.argv0}}function SCK(A){return A.includes("os error 11")||A.includes("Resource temporarily unavailable")}function IfA(A,q,K,Y,z=!1){let{rgPath:w,rgArgs:_,argv0:$}=dj6(),O=z?["-j","1"]:[],H=[..._,...O,...A,q],j=o8()==="wsl"?60000:20000,J=parseInt(process.env.CLAUDE_CODE_GLOB_TIMEOUT_SECONDS||"",10)||0,M=J>0?J*1000:j;if($){let D=LCK(w,H,{argv0:$,signal:K,windowsHide:!0}),X="",P="",W=!1,G=!1;D.stdout?.on("data",(v)=>{if(!W){if(X+=v.toString(),X.length>lS6)X=X.slice(0,lS6),W=!0}}),D.stderr?.on("data",(v)=>{if(!G){if(P+=v.toString(),P.length>lS6)P=P.slice(0,lS6),G=!0}});let Z,f=setTimeout(()=>{if(process.platform==="win32")D.kill();else D.kill("SIGTERM"),Z=setTimeout(()=>{D.kill("SIGKILL")},5000)},M);return D.on("close",(v,V)=>{if(clearTimeout(f),clearTimeout(Z),v===0||v===1)Y(null,X,P);else{let N=Error(`ripgrep exited with code ${v}`);N.code=v??void 0,N.signal=V??void 0,Y(N,X,P)}}),D.on("error",(v)=>{clearTimeout(f),clearTimeout(Z),Y(v,X,P)}),D}return ECK(w,H,{maxBuffer:lS6,signal:K,timeout:M,killSignal:process.platform==="win32"?void 0:"SIGKILL"},Y)}async function Ky(A,q,K){if(!r5())await CCK();return hCK().catch((Y)=>{$6(Y)}),new Promise((Y,z)=>{let w=(_,$,O,H)=>{if(!_){Y($.trim().split(`
`).filter(Boolean));return}if(_.code===1){Y([]);return}if(["ENOENT","EACCES","EPERM"].includes(_.code)){z(_);return}if(!H&&SCK(O)){y("rg EAGAIN error detected, retrying with single-threaded mode (-j 1)"),l("tengu_ripgrep_eagain_retry",{}),IfA(A,q,K,(P,W,G)=>{w(P,W,G,!0)},!0);return}let J=$&&$.trim().length>0,M=_.signal==="SIGTERM"||_.signal==="SIGKILL"||_.code==="ABORT_ERR",D=_.code==="ERR_CHILD_PROCESS_STDIO_MAXBUFFER",X=[];if(J){if(X=$.trim().split(`
`).filter(Boolean),X.length>0&&(M||D))X=X.slice(0,-1)}if(y(`rg error (signal=${_.signal}, code=${_.code}, stderr: ${O}), ${X.length} results`),_.code!==2)$6(_);if(M&&X.length===0){z(new ufA(`Ripgrep search timed out after ${o8()==="wsl"?60:20} seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.`,X));return}Y(X)};IfA(A,q,K,(_,$,O)=>{w(_,$,O,!1)})})}async function mfA(A,q,K){try{return(await Ky(["-l","."],A,q)).slice(0,K)}catch{return[]}}function BfA(){let A=i71();return{mode:A.mode,path:A.command,working:l71?.working??null}}async function CCK(){if(process.platform!=="darwin"||xfA)return;xfA=!0;let A=i71();if(A.mode!=="builtin"||r5())return;let q=A.command;if(!(await G8("codesign",["-vv","-d",q],{preserveOutputOnError:!1})).stdout.split(`
`).find((z)=>z.includes("linker-signed")))return;try{let z=await G8("codesign",["--sign","-","--force","--preserve-metadata=entitlements,requirements,flags,runtime",q]);if(z.code!==0)$6(Error(`Failed to sign ripgrep: ${z.stdout} ${z.stderr}`));let w=await G8("xattr",["-d","com.apple.quarantine",q]);if(w.code!==0)$6(Error(`Failed to remove quarantine: ${w.stdout} ${w.stderr}`))}catch(z){$6(z)}}var bfA,yCK,RCK,i71,lS6=20000000,ufA,n71,l71=null,hCK,xfA=!1;var hC=E(()=>{Rq();u1();dq();Z1();Z8();m1();iK();a1();bfA=q6(qi1(),1),yCK=NCK(import.meta.url),RCK=Wa.join(yCK,"../"),i71=k8(()=>{if(nw(process.env.USE_BUILTIN_RIPGREP)){let{cmd:Y}=bfA.findActualExecutable("rg",[]);if(Y!=="rg")return{mode:"system",command:"rg",args:[]}}if(r5()){if(w1(process.env.RIPGREP_EMBEDDED))return{mode:"embedded",command:process.execPath,args:["--no-config"],argv0:"rg"};return{mode:"builtin",command:process.execPath,args:["--ripgrep"]}}let q=Wa.resolve(RCK,"vendor","ripgrep");return{mode:"builtin",command:process.platform==="win32"?Wa.resolve(q,`${process.arch}-win32`,"rg.exe"):Wa.resolve(q,`${process.arch}-${process.platform}`,"rg"),args:[]}});ufA=class ufA extends Error{partialResults;constructor(A,q){super(A);this.partialResults=q;this.name="RipgrepTimeoutError"}};n71=k8(async(A,q,K=[])=>{if(Wa.resolve(A)===Wa.resolve(kCK()))return;try{let Y=["--files","--hidden"];K.forEach((O)=>{Y.push("--glob",`!${O}`)});let w=(await Ky(Y,A,q)).length;if(w===0)return 0;let _=Math.floor(Math.log10(w)),$=Math.pow(10,_);return Math.round(w/$)*$}catch(Y){$6(Y)}},(A,q,K=[])=>`${A}|${K.join(",")}`);hCK=k8(async()=>{if(l71!==null)return;let A=i71();try{let q;if(A.argv0){let Y=Bun.spawn([A.command,"--version"],{argv0:A.argv0,stderr:"ignore",stdout:"pipe"}),[z,w]=await Promise.all([Y.stdout.text(),Y.exited]);q={code:w,stdout:z}}else q=await G8(A.command,[...A.args,"--version"],{timeout:5000});let K=q.code===0&&!!q.stdout&&q.stdout.startsWith("ripgrep ");l71={working:K,lastTested:Date.now(),config:A},y(`Ripgrep first use test: ${K?"PASSED":"FAILED"} (mode=${A.mode}, path=${A.command})`),l("tengu_ripgrep_availability",{working:K?1:0,using_system:A.mode==="system"?1:0})}catch(q){l71={working:!1,lastTested:Date.now(),config:A},$6(q)}})});import{join as ICK}from"path";function bCK(){if(yL6())return gfA;if(w1(process.env.CLAUDE_CODE_USE_COWORK_PLUGINS))return gfA;return xCK}function Oj(){if(process.env.CLAUDE_CODE_PLUGIN_CACHE_DIR)return process.env.CLAUDE_CODE_PLUGIN_CACHE_DIR;return ICK(zA(),bCK())}function Gm(){return process.env.CLAUDE_CODE_PLUGIN_SEED_DIR||void 0}var xCK="plugins",gfA="cowork_plugins";var Ga=E(()=>{Z8();U1()});import{dirname as uCK,isAbsolute as mCK,join as BCK,normalize as FfA,relative as gCK,sep as r71}from"path";async function l46(A){let q=FfA(BCK(Oj(),"cache"));if(A&&!FCK(A,q))return[];if(c46!==null)return c46;try{return c46=(await Ky(["--files","--hidden","--no-ignore","--max-depth","4","--glob",pCK],q,new AbortController().signal)).map((Y)=>{let z=uCK(Y);return`!**/${(mCK(z)?gCK(q,z):z).replace(/\\/g,"/")}/**`}),c46}catch{return c46=[],c46}}function QfA(){c46=null}function FCK(A,q){let K=pfA(A),Y=pfA(q);return K===Y||K===r71||Y===r71||K.startsWith(Y+r71)||Y.startsWith(K+r71)}function pfA(A){let q=FfA(A);return process.platform==="win32"?q.toLowerCase():q}var pCK=".orphaned_at",c46=null;var iS6=E(()=>{hC();Ga()});class UfA{cache=new Map;maxCacheSize=1000;readFile(A){let q=P1(),K;try{K=q.statSync(A)}catch($){throw this.cache.delete(A),$}let Y=A,z=this.cache.get(Y);if(z&&z.mtime===K.mtimeMs)return{content:z.content,encoding:z.encoding};let w=O0(A),_=q.readFileSync(A,{encoding:w}).replaceAll(`\r
`,`
`);if(this.cache.set(Y,{content:_,encoding:w,mtime:K.mtimeMs}),this.cache.size>this.maxCacheSize){let $=this.cache.keys().next().value;if($)this.cache.delete($)}return{content:_,encoding:w}}clear(){this.cache.clear()}invalidate(A){this.cache.delete(A)}getStats(){return{size:this.cache.size,entries:Array.from(this.cache.keys())}}}var dfA;var cfA=E(()=>{D7();c7();dfA=new UfA});function QCK(A,q){return a$6(A,q)}var Yy;var nS6=E(()=>{Ge6();Yy=QCK});var o71=E(()=>{nS6();Rq()});var KTA=h((qTA)=>{Object.defineProperty(qTA,"__esModule",{value:!0});var rfA=/^[a-zA-Z:_][a-zA-Z0-9:_.-]*$/,ur1={revert:function(){}},e71=new Map,br1=new Set;function A41(A){var q=e71.get(A);return q||e71.set(A,q={element:A,attributes:{}}),q}function q41(A,q,K,Y,z){var w=K(A),_={isDirty:!1,originalValue:w,virtualValue:w,mutations:[],el:A,_positionTimeout:null,observer:new MutationObserver(function(){if(q!=="position"||!_._positionTimeout){q==="position"&&(_._positionTimeout=setTimeout(function(){_._positionTimeout=null},1000));var $=K(A);q==="position"&&$.parentNode===_.virtualValue.parentNode&&$.insertBeforeNode===_.virtualValue.insertBeforeNode||$!==_.virtualValue&&(_.originalValue=$,z(_))}}),mutationRunner:z,setValue:Y,getCurrentValue:K};return q==="position"&&A.parentNode?_.observer.observe(A.parentNode,{childList:!0,subtree:!0,attributes:!1,characterData:!1}):_.observer.observe(A,function($){return $==="html"?{childList:!0,subtree:!0,attributes:!0,characterData:!0}:{childList:!1,subtree:!1,attributes:!0,attributeFilter:[$]}}(q)),_}function K41(A,q){var K=q.getCurrentValue(q.el);q.virtualValue=A,A&&typeof A!="string"?K&&A.parentNode===K.parentNode&&A.insertBeforeNode===K.insertBeforeNode||(q.isDirty=!0,lfA()):A!==K&&(q.isDirty=!0,lfA())}function UCK(A){var q=A.originalValue;A.mutations.forEach(function(K){return q=K.mutate(q)}),K41(function(K){return a71||(a71=document.createElement("div")),a71.innerHTML=K,a71.innerHTML}(q),A)}function dCK(A){var q=new Set(A.originalValue.split(/\s+/).filter(Boolean));A.mutations.forEach(function(K){return K.mutate(q)}),K41(Array.from(q).filter(Boolean).join(" "),A)}function cCK(A){var q=A.originalValue;A.mutations.forEach(function(K){return q=K.mutate(q)}),K41(q,A)}function lCK(A){var q=A.originalValue;A.mutations.forEach(function(K){var Y=function(z){var w=z.insertBeforeSelector,_=document.querySelector(z.parentSelector);if(!_)return null;var $=w?document.querySelector(w):null;return w&&!$?null:{parentNode:_,insertBeforeNode:$}}(K.mutate());q=Y||q}),K41(q,A)}var iCK=function(A){return A.innerHTML},nCK=function(A,q){return A.innerHTML=q};function ofA(A){var q=A41(A);return q.html||(q.html=q41(A,"html",iCK,nCK,UCK)),q.html}var rCK=function(A){return{parentNode:A.parentElement,insertBeforeNode:A.nextElementSibling}},oCK=function(A,q){q.insertBeforeNode&&!q.parentNode.contains(q.insertBeforeNode)||q.parentNode.insertBefore(A,q.insertBeforeNode)};function afA(A){var q=A41(A);return q.position||(q.position=q41(A,"position",rCK,oCK,lCK)),q.position}var a71,oS6,aCK=function(A,q){return q?A.className=q:A.removeAttribute("class")},sCK=function(A){return A.className};function sfA(A){var q=A41(A);return q.classes||(q.classes=q41(A,"class",sCK,aCK,dCK)),q.classes}function tfA(A,q){var K,Y=A41(A);return Y.attributes[q]||(Y.attributes[q]=q41(A,q,(K=q,function(z){var w;return(w=z.getAttribute(K))!=null?w:null}),function(z){return function(w,_){return _!==null?w.setAttribute(z,_):w.removeAttribute(z)}}(q),cCK)),Y.attributes[q]}function s71(A,q,K){if(K.isDirty){K.isDirty=!1;var Y=K.virtualValue;K.mutations.length||function(z,w){var _,$,O=e71.get(z);if(O)if(w==="html")(_=O.html)==null||($=_.observer)==null||$.disconnect(),delete O.html;else if(w==="class"){var H,j;(H=O.classes)==null||(j=H.observer)==null||j.disconnect(),delete O.classes}else if(w==="position"){var J,M;(J=O.position)==null||(M=J.observer)==null||M.disconnect(),delete O.position}else{var D,X,P;(D=O.attributes)==null||(X=D[w])==null||(P=X.observer)==null||P.disconnect(),delete O.attributes[w]}}(A,q),K.setValue(A,Y)}}function tCK(A,q){A.html&&s71(q,"html",A.html),A.classes&&s71(q,"class",A.classes),A.position&&s71(q,"position",A.position),Object.keys(A.attributes).forEach(function(K){s71(q,K,A.attributes[K])})}function lfA(){e71.forEach(tCK)}function efA(A){if(A.kind!=="position"||A.elements.size!==1){var q=new Set(A.elements);document.querySelectorAll(A.selector).forEach(function(K){q.has(K)||(A.elements.add(K),function(Y,z){var w=null;Y.kind==="html"?w=ofA(z):Y.kind==="class"?w=sfA(z):Y.kind==="attribute"?w=tfA(z,Y.attribute):Y.kind==="position"&&(w=afA(z)),w&&(w.mutations.push(Y),w.mutationRunner(w))}(A,K))})}}function ifA(){br1.forEach(efA)}function ATA(){typeof document<"u"&&(oS6||(oS6=new MutationObserver(function(){ifA()})),ifA(),oS6.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!1,characterData:!1}))}function Y41(A){return typeof document>"u"?ur1:(br1.add(A),efA(A),{revert:function(){var q;(q=A).elements.forEach(function(K){return function(Y,z){var w=null;if(Y.kind==="html"?w=ofA(z):Y.kind==="class"?w=sfA(z):Y.kind==="attribute"?w=tfA(z,Y.attribute):Y.kind==="position"&&(w=afA(z)),w){var _=w.mutations.indexOf(Y);_!==-1&&w.mutations.splice(_,1),w.mutationRunner(w)}}(q,K)}),q.elements.clear(),br1.delete(q)}})}function xr1(A,q){return Y41({kind:"html",elements:new Set,mutate:q,selector:A})}function nfA(A,q){return Y41({kind:"position",elements:new Set,mutate:q,selector:A})}function rS6(A,q){return Y41({kind:"class",elements:new Set,mutate:q,selector:A})}function t71(A,q,K){return rfA.test(q)?q==="class"||q==="className"?rS6(A,function(Y){var z=K(Array.from(Y).join(" "));Y.clear(),z&&z.split(/\s+/g).filter(Boolean).forEach(function(w){return Y.add(w)})}):Y41({kind:"attribute",attribute:q,elements:new Set,mutate:K,selector:A}):ur1}ATA();var eCK={html:xr1,classes:rS6,attribute:t71,position:nfA,declarative:function(A){var{selector:q,action:K,value:Y,attribute:z,parentSelector:w,insertBeforeSelector:_}=A;if(z==="html"){if(K==="append")return xr1(q,function($){return $+(Y!=null?Y:"")});if(K==="set")return xr1(q,function(){return Y!=null?Y:""})}else if(z==="class"){if(K==="append")return rS6(q,function($){Y&&$.add(Y)});if(K==="remove")return rS6(q,function($){Y&&$.delete(Y)});if(K==="set")return rS6(q,function($){$.clear(),Y&&$.add(Y)})}else if(z==="position"){if(K==="set"&&w)return nfA(q,function(){return{insertBeforeSelector:_,parentSelector:w}})}else{if(K==="append")return t71(q,z,function($){return $!==null?$+(Y!=null?Y:""):Y!=null?Y:""});if(K==="set")return t71(q,z,function(){return Y!=null?Y:""});if(K==="remove")return t71(q,z,function(){return null})}return ur1}};qTA.connectGlobalObserver=ATA,qTA.default=eCK,qTA.disconnectGlobalObserver=function(){oS6&&oS6.disconnect()},qTA.validAttributeName=rfA});function wTA(){return zTA}function mr1(A){let q=2166136261,K=A.length;for(let Y=0;Y<K;Y++)q^=A.charCodeAt(Y),q+=(q<<1)+(q<<4)+(q<<7)+(q<<8)+(q<<24);return q>>>0}function aS6(A,q,K){if(K===2)return mr1(mr1(A+q)+"")%1e4/1e4;if(K===1)return mr1(q+A)%1000/1000;return null}function AIK(A){if(A<=0)return[];return Array(A).fill(1/A)}function z41(A,q){return A>=q[0]&&A<q[1]}function _TA(A,q){let K=aS6("__"+q[0],A,1);if(K===null)return!1;return K>=q[1]&&K<q[2]}function $TA(A,q){for(let K=0;K<q.length;K++)if(z41(A,q[K]))return K;return-1}function gr1(A){try{let q=A.replace(/([^\\])\//g,"$1\\/");return new RegExp(q)}catch(q){console.error(q);return}}function w41(A,q){if(!q.length)return!1;let K=!1,Y=!1;for(let z=0;z<q.length;z++){let w=YIK(A,q[z].type,q[z].pattern);if(q[z].include===!1){if(w)return!1}else if(K=!0,w)Y=!0}return Y||!K}function qIK(A,q,K){try{let Y=q.replace(/[*.+?^${}()|[\]\\]/g,"\\$&").replace(/_____/g,".*");if(K)Y="\\/?"+Y.replace(/(^\/|\/$)/g,"")+"\\/?";return new RegExp("^"+Y+"$","i").test(A)}catch(Y){return!1}}function KIK(A,q){try{let K=new URL(q.replace(/^([^:/?]*)\./i,"https://$1.").replace(/\*/g,"_____"),"https://_____"),Y=[[A.host,K.host,!1],[A.pathname,K.pathname,!0]];if(K.hash)Y.push([A.hash,K.hash,!1]);return K.searchParams.forEach((z,w)=>{Y.push([A.searchParams.get(w)||"",z,!1])}),!Y.some((z)=>!qIK(z[0],z[1],z[2]))}catch(K){return!1}}function YIK(A,q,K){try{let Y=new URL(A,"https://_");if(q==="regex"){let z=gr1(K);if(!z)return!1;return z.test(Y.href)||z.test(Y.href.substring(Y.origin.length))}else if(q==="simple")return KIK(Y,K);return!1}catch(Y){return!1}}function OTA(A,q,K){if(q=q===void 0?1:q,q<0)q=0;else if(q>1)q=1;let Y=AIK(A);if(K=K||Y,K.length!==A)K=Y;let z=K.reduce((_,$)=>$+_,0);if(z<0.99||z>1.01)K=Y;let w=0;return K.map((_)=>{let $=w;return w+=_,[$,$+q*_]})}function HTA(A,q,K){if(!q)return null;let Y=q.split("?")[1];if(!Y)return null;let z=Y.replace(/#.*/,"").split("&").map((w)=>w.split("=",2)).filter((w)=>{let[_]=w;return _===A}).map((w)=>{let[,_]=w;return parseInt(_)});if(z.length>0&&z[0]>=0&&z[0]<K)return z[0];return null}function jTA(A){try{return A()}catch(q){return console.error(q),!1}}async function i46(A,q,K){if(q=q||"",K=K||globalThis.crypto&&globalThis.crypto.subtle||zTA.SubtleCrypto,!K)throw Error("No SubtleCrypto implementation found");try{let Y=await K.importKey("raw",Br1(q),{name:"AES-CBC",length:128},!0,["encrypt","decrypt"]),[z,w]=A.split("."),_=await K.decrypt({name:"AES-CBC",iv:Br1(z)},Y,Br1(w));return new TextDecoder().decode(_)}catch(Y){throw Error("Failed to decrypt")}}function sS6(A){if(typeof A==="string")return A;return JSON.stringify(A)}function Yk(A){if(typeof A==="number")A=A+"";if(!A||typeof A!=="string")A="0";let q=A.replace(/(^v|\+.*$)/g,"").split(/[-.]/);if(q.length===3)q.push("~");return q.map((K)=>K.match(/^[0-9]+$/)?K.padStart(5," "):K).join("-")}function JTA(){let A;try{A="1.6.1"}catch(q){A=""}return A}function MTA(A,q){let K,Y;try{K=new URL(A),Y=new URL(q)}catch(z){return console.error(`Unable to merge query strings: ${z}`),q}return K.searchParams.forEach((z,w)=>{if(Y.searchParams.has(w))return;Y.searchParams.set(w,z)}),Y.toString()}function YTA(A){return typeof A==="object"&&A!==null}function _41(A){if(A.urlPatterns&&A.variations.some((q)=>YTA(q)&&("urlRedirect"in q)))return"redirect";else if(A.variations.some((q)=>YTA(q)&&(q.domMutations||("js"in q)||("css"in q))))return"visual";return"unknown"}async function $41(A,q){return new Promise((K)=>{let Y=!1,z,w=(_)=>{if(Y)return;Y=!0,z&&clearTimeout(z),K(_||null)};if(q)z=setTimeout(()=>w(),q);A.then((_)=>w(_)).catch(()=>w())})}var zTA,Br1=(A)=>Uint8Array.from(atob(A),(q)=>q.charCodeAt(0));var tS6=E(()=>{zTA={fetch:globalThis.fetch?globalThis.fetch.bind(globalThis):void 0,SubtleCrypto:globalThis.crypto?globalThis.crypto.subtle:void 0,EventSource:globalThis.EventSource}});function PTA(A){if(Object.assign(_G,A),!_G.backgroundSync)JIK()}async function WTA(A){let{instance:q,timeout:K,skipCache:Y,allowStale:z,backgroundSync:w}=A;if(!w)_G.backgroundSync=!1;return $IK({instance:q,allowStale:z,timeout:K,skipCache:Y})}function zIK(A){let q=eS6(A),K=lj6.get(q)||new Set;K.add(A),lj6.set(q,K)}function GTA(A){lj6.forEach((q)=>q.delete(A))}function wIK(){ij6.forEach((A)=>{if(!A)return;A.state="idle",Ur1(A)})}function _IK(){ij6.forEach((A)=>{if(!A)return;if(A.state!=="idle")return;dr1(A)})}async function XTA(){try{if(!Zm.localStorage)return;await Zm.localStorage.setItem(_G.cacheKey,JSON.stringify(Array.from(vU.entries())))}catch(A){}}async function $IK(A){let{instance:q,allowStale:K,timeout:Y,skipCache:z}=A,w=eS6(q),_=Fr1(q),$=new Date,O=new Date($.getTime()-_G.maxAge+_G.staleTTL);await OIK();let H=!_G.disableCache&&!z?vU.get(_):void 0;if(H&&(K||H.staleAt>$)&&H.staleAt>O){if(H.sse)nj6.add(w);if(H.staleAt<$)pr1(q);else Qr1(q);return{data:H.data,success:!0,source:"cache"}}else return await $41(pr1(q),Y)||{data:null,success:!1,source:"timeout",error:Error("Timeout")}}function eS6(A){let[q,K]=A.getApiInfo();return`${q}||${K}`}function Fr1(A){let q=eS6(A);if(!("isRemoteEval"in A)||!A.isRemoteEval())return q;let K=A.getAttributes(),Y=A.getCacheKeyAttributes()||Object.keys(A.getAttributes()),z={};Y.forEach(($)=>{z[$]=K[$]});let w=A.getForcedVariations(),_=A.getUrl();return`${q}||${JSON.stringify({ca:z,fv:w,url:_})}`}async function OIK(){if(DTA)return;DTA=!0;try{if(Zm.localStorage){let A=await Zm.localStorage.getItem(_G.cacheKey);if(!_G.disableCache&&A){let q=JSON.parse(A);if(q&&Array.isArray(q))q.forEach((K)=>{let[Y,z]=K;vU.set(Y,{...z,staleAt:new Date(z.staleAt)})});ZTA()}}}catch(A){}if(!_G.disableIdleStreams){let A=cj6.startIdleListener();if(A)cj6.stopIdleListener=A}}function ZTA(){let A=Array.from(vU.entries()).map((K)=>{let[Y,z]=K;return{key:Y,staleAt:z.staleAt.getTime()}}).sort((K,Y)=>K.staleAt-Y.staleAt),q=Math.min(Math.max(0,vU.size-_G.maxEntries),vU.size);for(let K=0;K<q;K++)vU.delete(A[K].key)}function fTA(A,q,K){let Y=K.dateUpdated||"",z=new Date(Date.now()+_G.staleTTL),w=!_G.disableCache?vU.get(q):void 0;if(w&&Y&&w.version===Y){w.staleAt=z,XTA();return}if(!_G.disableCache)vU.set(q,{data:K,version:Y,staleAt:z,sse:nj6.has(A)}),ZTA();XTA();let _=lj6.get(A);_&&_.forEach(($)=>HIK($,K))}async function HIK(A,q){await A.setPayload(q||A.getPayload())}async function pr1(A){let{apiHost:q,apiRequestHeaders:K}=A.getApiHosts(),Y=A.getClientKey(),z="isRemoteEval"in A&&A.isRemoteEval(),w=eS6(A),_=Fr1(A),$=O41.get(_);if(!$)$=(z?cj6.fetchRemoteEvalCall({host:q,clientKey:Y,payload:{attributes:A.getAttributes(),forcedVariations:A.getForcedVariations(),forcedFeatures:Array.from(A.getForcedFeatures().entries()),url:A.getUrl()},headers:K}):cj6.fetchFeaturesCall({host:q,clientKey:Y,headers:K})).then((H)=>{if(!H.ok)throw Error(`HTTP error: ${H.status}`);if(H.headers.get("x-sse-support")==="enabled")nj6.add(w);return H.json()}).then((H)=>{return fTA(w,_,H),Qr1(A),O41.delete(_),{data:H,success:!0,source:"network"}}).catch((H)=>{return O41.delete(_),{data:null,source:"error",success:!1,error:H}}),O41.set(_,$);return $}function Qr1(A){let q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,K=eS6(A),Y=Fr1(A),{streamingHost:z,streamingHostRequestHeaders:w}=A.getApiHosts(),_=A.getClientKey();if(q)nj6.add(K);if(_G.backgroundSync&&nj6.has(K)&&Zm.EventSource){if(ij6.has(K))return;let $={src:null,host:z,clientKey:_,headers:w,cb:(O)=>{try{if(O.type==="features-updated"){let H=lj6.get(K);H&&H.forEach((j)=>{pr1(j)})}else if(O.type==="features"){let H=JSON.parse(O.data);fTA(K,Y,H)}$.errors=0}catch(H){TTA($)}},errors:0,state:"active"};ij6.set(K,$),dr1($)}}function TTA(A){if(A.state==="idle")return;if(A.errors++,A.errors>3||A.src&&A.src.readyState===2){let q=Math.pow(3,A.errors-3)*(1000+Math.random()*1000);Ur1(A),setTimeout(()=>{if(["idle","active"].includes(A.state))return;dr1(A)},Math.min(q,300000))}}function Ur1(A){if(!A.src)return;if(A.src.onopen=null,A.src.onerror=null,A.src.close(),A.src=null,A.state==="active")A.state="disabled"}function dr1(A){A.src=cj6.eventSourceCall({host:A.host,clientKey:A.clientKey,headers:A.headers}),A.state="active",A.src.addEventListener("features",A.cb),A.src.addEventListener("features-updated",A.cb),A.src.onerror=()=>TTA(A),A.src.onopen=()=>{A.errors=0}}function jIK(A,q){Ur1(A),ij6.delete(q)}function JIK(){nj6.clear(),ij6.forEach(jIK),lj6.clear(),cj6.stopIdleListener()}function H41(A,q){if(q.streaming){if(!A.getClientKey())throw Error("Must specify clientKey to enable streaming");if(q.payload)Qr1(A,!0);zIK(A)}}var _G,Zm,cj6,lj6,DTA=!1,vU,O41,ij6,nj6;var vTA=E(()=>{tS6();_G={staleTTL:60000,maxAge:14400000,cacheKey:"gbFeaturesCache",backgroundSync:!0,maxEntries:10,disableIdleStreams:!1,idleStreamInterval:20000,disableCache:!1},Zm=wTA(),cj6={fetchFeaturesCall:(A)=>{let{host:q,clientKey:K,headers:Y}=A;return Zm.fetch(`${q}/api/features/${K}`,{headers:Y})},fetchRemoteEvalCall:(A)=>{let{host:q,clientKey:K,payload:Y,headers:z}=A,w={method:"POST",headers:{"Content-Type":"application/json",...z},body:JSON.stringify(Y)};return Zm.fetch(`${q}/api/eval/${K}`,w)},eventSourceCall:(A)=>{let{host:q,clientKey:K,headers:Y}=A;if(Y)return new Zm.EventSource(`${q}/sub/${K}`,{headers:Y});return new Zm.EventSource(`${q}/sub/${K}`)},startIdleListener:()=>{let A;if(!(typeof window<"u"&&typeof document<"u"))return;let K=()=>{if(document.visibilityState==="visible")window.clearTimeout(A),_IK();else if(document.visibilityState==="hidden")A=window.setTimeout(wIK,_G.idleStreamInterval)};return document.addEventListener("visibilitychange",K),()=>document.removeEventListener("visibilitychange",K)},stopIdleListener:()=>{}};try{if(globalThis.localStorage)Zm.localStorage=globalThis.localStorage}catch(A){}lj6=new Map,vU=new Map,O41=new Map,ij6=new Map,nj6=new Set});function Za(A,q,K){K=K||{};for(let[Y,z]of Object.entries(q))switch(Y){case"$or":if(!VTA(A,z,K))return!1;break;case"$nor":if(VTA(A,z,K))return!1;break;case"$and":if(!GIK(A,z,K))return!1;break;case"$not":if(Za(A,z,K))return!1;break;default:if(!Ah6(z,MIK(A,Y),K))return!1}return!0}function MIK(A,q){let K=q.split("."),Y=A;for(let z=0;z<K.length;z++)if(Y&&typeof Y==="object"&&K[z]in Y)Y=Y[K[z]];else return null;return Y}function DIK(A){if(!cr1[A])cr1[A]=new RegExp(A.replace(/([^\\])\//g,"$1\\/"));return cr1[A]}function Ah6(A,q,K){if(typeof A==="string")return q+""===A;if(typeof A==="number")return q*1===A;if(typeof A==="boolean")return q!==null&&!!q===A;if(A===null)return q===null;if(Array.isArray(A)||!NTA(A))return JSON.stringify(q)===JSON.stringify(A);for(let Y in A)if(!WIK(Y,q,A[Y],K))return!1;return!0}function NTA(A){let q=Object.keys(A);return q.length>0&&q.filter((K)=>K[0]==="$").length===q.length}function XIK(A){if(A===null)return"null";if(Array.isArray(A))return"array";let q=typeof A;if(["string","number","boolean","object","undefined"].includes(q))return q;return"unknown"}function PIK(A,q,K){if(!Array.isArray(A))return!1;let Y=NTA(q)?(z)=>Ah6(q,z,K):(z)=>Za(z,q,K);for(let z=0;z<A.length;z++)if(A[z]&&Y(A[z]))return!0;return!1}function j41(A,q){if(Array.isArray(A))return A.some((K)=>q.includes(K));return q.includes(A)}function WIK(A,q,K,Y){switch(A){case"$veq":return Yk(q)===Yk(K);case"$vne":return Yk(q)!==Yk(K);case"$vgt":return Yk(q)>Yk(K);case"$vgte":return Yk(q)>=Yk(K);case"$vlt":return Yk(q)<Yk(K);case"$vlte":return Yk(q)<=Yk(K);case"$eq":return q===K;case"$ne":return q!==K;case"$lt":return q<K;case"$lte":return q<=K;case"$gt":return q>K;case"$gte":return q>=K;case"$exists":return K?q!=null:q==null;case"$in":if(!Array.isArray(K))return!1;return j41(q,K);case"$inGroup":return j41(q,Y[K]||[]);case"$notInGroup":return!j41(q,Y[K]||[]);case"$nin":if(!Array.isArray(K))return!1;return!j41(q,K);case"$not":return!Ah6(K,q,Y);case"$size":if(!Array.isArray(q))return!1;return Ah6(K,q.length,Y);case"$elemMatch":return PIK(q,K,Y);case"$all":if(!Array.isArray(q))return!1;for(let z=0;z<K.length;z++){let w=!1;for(let _=0;_<q.length;_++)if(Ah6(K[z],q[_],Y)){w=!0;break}if(!w)return!1}return!0;case"$regex":try{return DIK(K).test(q)}catch(z){return!1}case"$type":return XIK(q)===K;default:return console.error("Unknown operator: "+A),!1}}function VTA(A,q,K){if(!q.length)return!0;for(let Y=0;Y<q.length;Y++)if(Za(A,q[Y],K))return!0;return!1}function GIK(A,q,K){for(let Y=0;Y<q.length;Y++)if(!Za(A,q[Y],K))return!1;return!0}var cr1;var kTA=E(()=>{tS6();cr1={}});function TIK(A){let q=new Map;if(A.global.forcedFeatureValues)A.global.forcedFeatureValues.forEach((K,Y)=>q.set(Y,K));if(A.user.forcedFeatureValues)A.user.forcedFeatureValues.forEach((K,Y)=>q.set(Y,K));return q}function vIK(A){if(A.global.forcedVariations&&A.user.forcedVariations)return{...A.global.forcedVariations,...A.user.forcedVariations};else if(A.global.forcedVariations)return A.global.forcedVariations;else if(A.user.forcedVariations)return A.user.forcedVariations;else return{}}async function rj6(A){try{await A()}catch(q){}}function ETA(A,q,K){if(A.user.trackedExperiments){let z=D41(q,K);if(A.user.trackedExperiments.has(z))return[];A.user.trackedExperiments.add(z)}if(A.user.enableDevMode&&A.user.devLogs)A.user.devLogs.push({experiment:q,result:K,timestamp:Date.now().toString(),logType:"experiment"});let Y=[];if(A.global.trackingCallback){let z=A.global.trackingCallback;Y.push(rj6(()=>z(q,K,A.user)))}if(A.user.trackingCallback){let z=A.user.trackingCallback;Y.push(rj6(()=>z(q,K)))}if(A.global.eventLogger){let z=A.global.eventLogger;Y.push(rj6(()=>z(fIK,{experimentId:q.key,variationId:K.key,hashAttribute:K.hashAttribute,hashValue:K.hashValue},A.user)))}return Y}function VIK(A,q,K){if(A.user.trackedFeatureUsage){let Y=JSON.stringify(K.value);if(A.user.trackedFeatureUsage[q]===Y)return;if(A.user.trackedFeatureUsage[q]=Y,A.user.enableDevMode&&A.user.devLogs)A.user.devLogs.push({featureKey:q,result:K,timestamp:Date.now().toString(),logType:"feature"})}if(A.global.onFeatureUsage){let Y=A.global.onFeatureUsage;rj6(()=>Y(q,K,A.user))}if(A.user.onFeatureUsage){let Y=A.user.onFeatureUsage;rj6(()=>Y(q,K))}if(A.global.eventLogger){let Y=A.global.eventLogger;rj6(()=>Y(ZIK,{feature:q,source:K.source,value:K.value,ruleId:K.source==="defaultValue"?"$default":K.ruleId||"",variationId:K.experimentResult?K.experimentResult.key:""},A.user))}}function J41(A,q){if(q.stack.evaluatedFeatures.has(A))return fa(q,A,null,"cyclicPrerequisite");q.stack.evaluatedFeatures.add(A),q.stack.id=A;let K=TIK(q);if(K.has(A))return fa(q,A,K.get(A),"override");if(!q.global.features||!q.global.features[A])return fa(q,A,null,"unknownFeature");let Y=q.global.features[A];if(Y.rules){let z=new Set(q.stack.evaluatedFeatures);A:for(let w of Y.rules){if(w.parentConditions)for(let O of w.parentConditions){q.stack.evaluatedFeatures=new Set(z);let H=J41(O.id,q);if(H.source==="cyclicPrerequisite")return fa(q,A,null,"cyclicPrerequisite");let j={value:H.value};if(!Za(j,O.condition||{})){if(O.gate)return fa(q,A,null,"prerequisite");continue A}}if(w.filters&&RTA(w.filters,q))continue;if("force"in w){if(w.condition&&!yTA(w.condition,q))continue;if(!NIK(q,w.seed||A,w.hashAttribute,q.user.saveStickyBucketAssignmentDoc&&!w.disableStickyBucketing?w.fallbackAttribute:void 0,w.range,w.coverage,w.hashVersion))continue;if(w.tracks)w.tracks.forEach((O)=>{if(!ETA(q,O.experiment,O.result).length&&q.global.saveDeferredTrack)q.global.saveDeferredTrack({experiment:O.experiment,result:O.result})});return fa(q,A,w.force,"force",w.id)}if(!w.variations)continue;let _={variations:w.variations,key:w.key||A};if("coverage"in w)_.coverage=w.coverage;if(w.weights)_.weights=w.weights;if(w.hashAttribute)_.hashAttribute=w.hashAttribute;if(w.fallbackAttribute)_.fallbackAttribute=w.fallbackAttribute;if(w.disableStickyBucketing)_.disableStickyBucketing=w.disableStickyBucketing;if(w.bucketVersion!==void 0)_.bucketVersion=w.bucketVersion;if(w.minBucketVersion!==void 0)_.minBucketVersion=w.minBucketVersion;if(w.namespace)_.namespace=w.namespace;if(w.meta)_.meta=w.meta;if(w.ranges)_.ranges=w.ranges;if(w.name)_.name=w.name;if(w.phase)_.phase=w.phase;if(w.seed)_.seed=w.seed;if(w.hashVersion)_.hashVersion=w.hashVersion;if(w.filters)_.filters=w.filters;if(w.condition)_.condition=w.condition;let{result:$}=M41(_,A,q);if(q.global.onExperimentEval&&q.global.onExperimentEval(_,$),$.inExperiment&&!$.passthrough)return fa(q,A,$.value,"experiment",w.id,_,$)}}return fa(q,A,Y.defaultValue===void 0?null:Y.defaultValue,"defaultValue")}function M41(A,q,K){let Y=A.key,z=A.variations.length;if(z<2)return{result:fO(K,A,-1,!1,q)};if(K.global.enabled===!1||K.user.enabled===!1)return{result:fO(K,A,-1,!1,q)};if(A=kIK(A,K),A.urlPatterns&&!w41(K.user.url||"",A.urlPatterns))return{result:fO(K,A,-1,!1,q)};let w=HTA(Y,K.user.url||"",z);if(w!==null)return{result:fO(K,A,w,!1,q)};let _=vIK(K);if(Y in _){let W=_[Y];return{result:fO(K,A,W,!1,q)}}if(A.status==="draft"||A.active===!1)return{result:fO(K,A,-1,!1,q)};let{hashAttribute:$,hashValue:O}=n46(K,A.hashAttribute,K.user.saveStickyBucketAssignmentDoc&&!A.disableStickyBucketing?A.fallbackAttribute:void 0);if(!O)return{result:fO(K,A,-1,!1,q)};let H=-1,j=!1,J=!1;if(K.user.saveStickyBucketAssignmentDoc&&!A.disableStickyBucketing){let{variation:W,versionIsBlocked:G}=yIK({ctx:K,expKey:A.key,expBucketVersion:A.bucketVersion,expHashAttribute:A.hashAttribute,expFallbackAttribute:A.fallbackAttribute,expMinBucketVersion:A.minBucketVersion,expMeta:A.meta});j=W>=0,H=W,J=!!G}if(!j){if(A.filters){if(RTA(A.filters,K))return{result:fO(K,A,-1,!1,q)}}else if(A.namespace&&!_TA(O,A.namespace))return{result:fO(K,A,-1,!1,q)};if(A.include&&!jTA(A.include))return{result:fO(K,A,-1,!1,q)};if(A.condition&&!yTA(A.condition,K))return{result:fO(K,A,-1,!1,q)};if(A.parentConditions){let W=new Set(K.stack.evaluatedFeatures);for(let G of A.parentConditions){K.stack.evaluatedFeatures=new Set(W);let Z=J41(G.id,K);if(Z.source==="cyclicPrerequisite")return{result:fO(K,A,-1,!1,q)};let f={value:Z.value};if(!Za(f,G.condition||{}))return{result:fO(K,A,-1,!1,q)}}}if(A.groups&&!LIK(A.groups,K))return{result:fO(K,A,-1,!1,q)}}if(A.url&&!EIK(A.url,K))return{result:fO(K,A,-1,!1,q)};let M=aS6(A.seed||Y,O,A.hashVersion||1);if(M===null)return{result:fO(K,A,-1,!1,q)};if(!j){let W=A.ranges||OTA(z,A.coverage===void 0?1:A.coverage,A.weights);H=$TA(M,W)}if(J)return{result:fO(K,A,-1,!1,q,void 0,!0)};if(H<0)return{result:fO(K,A,-1,!1,q)};if("force"in A)return{result:fO(K,A,A.force===void 0?-1:A.force,!1,q)};if(K.global.qaMode||K.user.qaMode)return{result:fO(K,A,-1,!1,q)};if(A.status==="stopped")return{result:fO(K,A,-1,!1,q)};let D=fO(K,A,H,!0,q,M,j);if(K.user.saveStickyBucketAssignmentDoc&&!A.disableStickyBucketing){let{changed:W,key:G,doc:Z}=SIK(K,$,sS6(O),{[lr1(A.key,A.bucketVersion)]:D.key});if(W)K.user.stickyBucketAssignmentDocs=K.user.stickyBucketAssignmentDocs||{},K.user.stickyBucketAssignmentDocs[G]=Z,K.user.saveStickyBucketAssignmentDoc(Z)}let X=ETA(K,A,D);if(X.length===0&&K.global.saveDeferredTrack)K.global.saveDeferredTrack({experiment:A,result:D});let P=!X.length?void 0:X.length===1?X[0]:Promise.all(X).then(()=>{});return"changeId"in A&&A.changeId&&K.global.recordChangeId&&K.global.recordChangeId(A.changeId),{result:D,trackingCall:P}}function fa(A,q,K,Y,z,w,_){let $={value:K,on:!!K,off:!K,source:Y,ruleId:z||""};if(w)$.experiment=w;if(_)$.experimentResult=_;if(Y!=="override")VIK(A,q,$);return $}function LTA(A){return{...A.user.attributes,...A.user.attributeOverrides}}function yTA(A,q){return Za(LTA(q),A,q.global.savedGroups||{})}function RTA(A,q){return A.some((K)=>{let{hashValue:Y}=n46(q,K.attribute);if(!Y)return!0;let z=aS6(K.seed,Y,K.hashVersion||2);if(z===null)return!0;return!K.ranges.some((w)=>z41(z,w))})}function NIK(A,q,K,Y,z,w,_){if(!z&&w===void 0)return!0;if(!z&&w===0)return!1;let{hashValue:$}=n46(A,K,Y);if(!$)return!1;let O=aS6(q,$,_||1);if(O===null)return!1;return z?z41(O,z):w!==void 0?O<=w:!0}function fO(A,q,K,Y,z,w,_){let $=!0;if(K<0||K>=q.variations.length)K=0,$=!1;let{hashAttribute:O,hashValue:H}=n46(A,q.hashAttribute,A.user.saveStickyBucketAssignmentDoc&&!q.disableStickyBucketing?q.fallbackAttribute:void 0),j=q.meta?q.meta[K]:{},J={key:j.key||""+K,featureId:z,inExperiment:$,hashUsed:Y,variationId:K,value:q.variations[K],hashAttribute:O,hashValue:H,stickyBucketUsed:!!_};if(j.name)J.name=j.name;if(w!==void 0)J.bucket=w;if(j.passthrough)J.passthrough=j.passthrough;return J}function kIK(A,q){let K=A.key,Y=q.global.overrides;if(Y&&Y[K]){if(A=Object.assign({},A,Y[K]),typeof A.url==="string")A.url=gr1(A.url)}return A}function n46(A,q,K){let Y=q||"id",z="",w=LTA(A);if(w[Y])z=w[Y];if(!z&&K){if(w[K])z=w[K];if(z)Y=K}return{hashAttribute:Y,hashValue:z}}function EIK(A,q){let K=q.user.url;if(!K)return!1;let Y=K.replace(/^https?:\/\//,"").replace(/^[^/]*\//,"/");if(A.test(K))return!0;if(A.test(Y))return!0;return!1}function LIK(A,q){let K=q.global.groups||{};for(let Y=0;Y<A.length;Y++)if(K[A[Y]])return!0;return!1}function yIK(A){let{ctx:q,expKey:K,expBucketVersion:Y,expHashAttribute:z,expFallbackAttribute:w,expMinBucketVersion:_,expMeta:$}=A;Y=Y||0,_=_||0,z=z||"id",$=$||[];let O=lr1(K,Y),H=RIK(q,z,w);if(_>0)for(let M=0;M<=_;M++){let D=lr1(K,M);if(H[D]!==void 0)return{variation:-1,versionIsBlocked:!0}}let j=H[O];if(j===void 0)return{variation:-1};let J=$.findIndex((M)=>M.key===j);if(J<0)return{variation:-1};return{variation:J}}function lr1(A,q){return q=q||0,`${A}__${q}`}function ir1(A,q){return`${A}||${q}`}function RIK(A,q,K){if(!A.user.stickyBucketAssignmentDocs)return{};let{hashAttribute:Y,hashValue:z}=n46(A,q),w=ir1(Y,sS6(z)),{hashAttribute:_,hashValue:$}=n46(A,K),O=$?ir1(_,sS6($)):null,H={};if(O&&A.user.stickyBucketAssignmentDocs[O])Object.assign(H,A.user.stickyBucketAssignmentDocs[O].assignments||{});if(A.user.stickyBucketAssignmentDocs[w])Object.assign(H,A.user.stickyBucketAssignmentDocs[w].assignments||{});return H}function SIK(A,q,K,Y){let z=ir1(q,K),w=A.user.stickyBucketAssignmentDocs&&A.user.stickyBucketAssignmentDocs[z]?A.user.stickyBucketAssignmentDocs[z].assignments||{}:{},_={...w,...Y},$=JSON.stringify(w)!==JSON.stringify(_);return{key:z,doc:{attributeName:q,attributeValue:K,assignments:_},changed:$}}function hIK(A,q){let K=new Set,Y=q&&q.features?q.features:A.global.features||{},z=q&&q.experiments?q.experiments:A.global.experiments||[];return Object.keys(Y).forEach((w)=>{let _=Y[w];if(_.rules){for(let $ of _.rules)if($.variations){if(K.add($.hashAttribute||"id"),$.fallbackAttribute)K.add($.fallbackAttribute)}}}),z.map((w)=>{if(K.add(w.hashAttribute||"id"),w.fallbackAttribute)K.add(w.fallbackAttribute)}),Array.from(K)}async function STA(A,q,K){let Y=nr1(A,K);return q.getAllAssignments(Y)}function nr1(A,q){let K={};return hIK(A,q).forEach((z)=>{let{hashValue:w}=n46(A,z);K[z]=sS6(w)}),K}async function hTA(A,q,K){if(A={...A},A.encryptedFeatures){try{A.features=JSON.parse(await i46(A.encryptedFeatures,q,K))}catch(Y){console.error(Y)}delete A.encryptedFeatures}if(A.encryptedExperiments){try{A.experiments=JSON.parse(await i46(A.encryptedExperiments,q,K))}catch(Y){console.error(Y)}delete A.encryptedExperiments}if(A.encryptedSavedGroups){try{A.savedGroups=JSON.parse(await i46(A.encryptedSavedGroups,q,K))}catch(Y){console.error(Y)}delete A.encryptedSavedGroups}return A}function CTA(A){let q=A.apiHost||"https://cdn.growthbook.io";return{apiHost:q.replace(/\/*$/,""),streamingHost:(A.streamingHost||q).replace(/\/*$/,""),apiRequestHeaders:A.apiHostRequestHeaders,streamingHostRequestHeaders:A.streamingHostRequestHeaders}}function D41(A,q){return q.hashAttribute+q.hashValue+A.key+q.variationId}var ZIK="Feature Evaluated",fIK="Experiment Viewed";var ITA=E(()=>{kTA();tS6()});class X41{constructor(A){if(A=A||{},this.version=CIK,this._options=this.context=A,this._renderer=A.renderer||null,this._trackedExperiments=new Set,this._completedChangeIds=new Set,this._trackedFeatures={},this.debug=!!A.debug,this._subscriptions=new Set,this.ready=!1,this._assigned=new Map,this._activeAutoExperiments=new Map,this._triggeredExpKeys=new Set,this._initialized=!1,this._redirectedUrl="",this._deferredTrackingCalls=new Map,this._autoExperimentsAllowed=!A.disableExperimentsOnLoad,this._destroyCallbacks=[],this.logs=[],this.log=this.log.bind(this),this._saveDeferredTrack=this._saveDeferredTrack.bind(this),this._fireSubscriptions=this._fireSubscriptions.bind(this),this._recordChangedId=this._recordChangedId.bind(this),A.remoteEval){if(A.decryptionKey)throw Error("Encryption is not available for remoteEval");if(!A.clientKey)throw Error("Missing clientKey");let q=!1;try{q=!!new URL(A.apiHost||"").hostname.match(/growthbook\.io$/i)}catch(K){}if(q)throw Error("Cannot use remoteEval on GrowthBook Cloud")}else if(A.cacheKeyAttributes)throw Error("cacheKeyAttributes are only used for remoteEval");if(A.stickyBucketService){let q=A.stickyBucketService;this._saveStickyBucketAssignmentDoc=(K)=>{return q.saveAssignments(K)}}if(A.plugins)for(let q of A.plugins)q(this);if(A.features)this.ready=!0;if(oj6&&A.enableDevMode)window._growthbook=this,document.dispatchEvent(new Event("gbloaded"));if(A.experiments)this.ready=!0,this._updateAllAutoExperiments();if(this._options.stickyBucketService&&this._options.stickyBucketAssignmentDocs)for(let q in this._options.stickyBucketAssignmentDocs){let K=this._options.stickyBucketAssignmentDocs[q];if(K)this._options.stickyBucketService.saveAssignments(K).catch(()=>{})}if(this.ready)this.refreshStickyBuckets(this.getPayload())}async setPayload(A){this._payload=A;let q=await hTA(A,this._options.decryptionKey);if(this._decryptedPayload=q,await this.refreshStickyBuckets(q),q.features)this._options.features=q.features;if(q.savedGroups)this._options.savedGroups=q.savedGroups;if(q.experiments)this._options.experiments=q.experiments,this._updateAllAutoExperiments();this.ready=!0,this._render()}initSync(A){this._initialized=!0;let q=A.payload;if(q.encryptedExperiments||q.encryptedFeatures)throw Error("initSync does not support encrypted payloads");if(this._options.stickyBucketService&&!this._options.stickyBucketAssignmentDocs)this._options.stickyBucketAssignmentDocs=this.generateStickyBucketAssignmentDocsSync(this._options.stickyBucketService,q);if(this._payload=q,this._decryptedPayload=q,q.features)this._options.features=q.features;if(q.experiments)this._options.experiments=q.experiments,this._updateAllAutoExperiments();return this.ready=!0,H41(this,A),this}async init(A){if(this._initialized=!0,A=A||{},A.cacheSettings)PTA(A.cacheSettings);if(A.payload)return await this.setPayload(A.payload),H41(this,A),{success:!0,source:"init"};else{let{data:q,...K}=await this._refresh({...A,allowStale:!0});return H41(this,A),await this.setPayload(q||{}),K}}async loadFeatures(A){A=A||{},await this.init({skipCache:A.skipCache,timeout:A.timeout,streaming:(this._options.backgroundSync??!0)&&(A.autoRefresh||this._options.subscribeToChanges)})}async refreshFeatures(A){let q=await this._refresh({...A||{},allowStale:!1});if(q.data)await this.setPayload(q.data)}getApiInfo(){return[this.getApiHosts().apiHost,this.getClientKey()]}getApiHosts(){return CTA(this._options)}getClientKey(){return this._options.clientKey||""}getPayload(){return this._payload||{features:this.getFeatures(),experiments:this.getExperiments()}}getDecryptedPayload(){return this._decryptedPayload||this.getPayload()}isRemoteEval(){return this._options.remoteEval||!1}getCacheKeyAttributes(){return this._options.cacheKeyAttributes}async _refresh(A){let{timeout:q,skipCache:K,allowStale:Y,streaming:z}=A;if(!this._options.clientKey)throw Error("Missing clientKey");return WTA({instance:this,timeout:q,skipCache:K||this._options.disableCache,allowStale:Y,backgroundSync:z??this._options.backgroundSync??!0})}_render(){if(this._renderer)try{this._renderer()}catch(A){console.error("Failed to render",A)}}setFeatures(A){this._options.features=A,this.ready=!0,this._render()}async setEncryptedFeatures(A,q,K){let Y=await i46(A,q||this._options.decryptionKey,K);this.setFeatures(JSON.parse(Y))}setExperiments(A){this._options.experiments=A,this.ready=!0,this._updateAllAutoExperiments()}async setEncryptedExperiments(A,q,K){let Y=await i46(A,q||this._options.decryptionKey,K);this.setExperiments(JSON.parse(Y))}async setAttributes(A){if(this._options.attributes=A,this._options.stickyBucketService)await this.refreshStickyBuckets();if(this._options.remoteEval){await this._refreshForRemoteEval();return}this._render(),this._updateAllAutoExperiments()}async updateAttributes(A){return this.setAttributes({...this._options.attributes,...A})}async setAttributeOverrides(A){if(this._options.attributeOverrides=A,this._options.stickyBucketService)await this.refreshStickyBuckets();if(this._options.remoteEval){await this._refreshForRemoteEval();return}this._render(),this._updateAllAutoExperiments()}async setForcedVariations(A){if(this._options.forcedVariations=A||{},this._options.remoteEval){await this._refreshForRemoteEval();return}this._render(),this._updateAllAutoExperiments()}setForcedFeatures(A){this._options.forcedFeatureValues=A,this._render()}async setURL(A){if(A===this._options.url)return;if(this._options.url=A,this._redirectedUrl="",this._options.remoteEval){await this._refreshForRemoteEval(),this._updateAllAutoExperiments(!0);return}this._updateAllAutoExperiments(!0)}getAttributes(){return{...this._options.attributes,...this._options.attributeOverrides}}getForcedVariations(){return this._options.forcedVariations||{}}getForcedFeatures(){return this._options.forcedFeatureValues||new Map}getStickyBucketAssignmentDocs(){return this._options.stickyBucketAssignmentDocs||{}}getUrl(){return this._options.url||""}getFeatures(){return this._options.features||{}}getExperiments(){return this._options.experiments||[]}getCompletedChangeIds(){return Array.from(this._completedChangeIds)}subscribe(A){return this._subscriptions.add(A),()=>{this._subscriptions.delete(A)}}async _refreshForRemoteEval(){if(!this._options.remoteEval)return;if(!this._initialized)return;let A=await this._refresh({allowStale:!1});if(A.data)await this.setPayload(A.data)}getAllResults(){return new Map(this._assigned)}onDestroy(A){this._destroyCallbacks.push(A)}isDestroyed(){return!!this._destroyed}destroy(){if(this._destroyed=!0,this._destroyCallbacks.forEach((A)=>{try{A()}catch(q){console.error(q)}}),this._subscriptions.clear(),this._assigned.clear(),this._trackedExperiments.clear(),this._completedChangeIds.clear(),this._deferredTrackingCalls.clear(),this._trackedFeatures={},this._destroyCallbacks=[],this._payload=void 0,this._saveStickyBucketAssignmentDoc=void 0,GTA(this),this.logs=[],oj6&&window._growthbook===this)delete window._growthbook;this._activeAutoExperiments.forEach((A)=>{A.undo()}),this._activeAutoExperiments.clear(),this._triggeredExpKeys.clear()}setRenderer(A){this._renderer=A}forceVariation(A,q){if(this._options.forcedVariations=this._options.forcedVariations||{},this._options.forcedVariations[A]=q,this._options.remoteEval){this._refreshForRemoteEval();return}this._updateAllAutoExperiments(),this._render()}run(A){let{result:q}=M41(A,null,this._getEvalContext());return this._fireSubscriptions(A,q),q}triggerExperiment(A){if(this._triggeredExpKeys.add(A),!this._options.experiments)return null;return this._options.experiments.filter((K)=>K.key===A).map((K)=>{return this._runAutoExperiment(K)}).filter((K)=>K!==null)}triggerAutoExperiments(){this._autoExperimentsAllowed=!0,this._updateAllAutoExperiments(!0)}_getEvalContext(){return{user:this._getUserContext(),global:this._getGlobalContext(),stack:{evaluatedFeatures:new Set}}}_getUserContext(){return{attributes:this._options.user?{...this._options.user,...this._options.attributes}:this._options.attributes,enableDevMode:this._options.enableDevMode,blockedChangeIds:this._options.blockedChangeIds,stickyBucketAssignmentDocs:this._options.stickyBucketAssignmentDocs,url:this._getContextUrl(),forcedVariations:this._options.forcedVariations,forcedFeatureValues:this._options.forcedFeatureValues,attributeOverrides:this._options.attributeOverrides,saveStickyBucketAssignmentDoc:this._saveStickyBucketAssignmentDoc,trackingCallback:this._options.trackingCallback,onFeatureUsage:this._options.onFeatureUsage,devLogs:this.logs,trackedExperiments:this._trackedExperiments,trackedFeatureUsage:this._trackedFeatures}}_getGlobalContext(){return{features:this._options.features,experiments:this._options.experiments,log:this.log,enabled:this._options.enabled,qaMode:this._options.qaMode,savedGroups:this._options.savedGroups,groups:this._options.groups,overrides:this._options.overrides,onExperimentEval:this._subscriptions.size>0?this._fireSubscriptions:void 0,recordChangeId:this._recordChangedId,saveDeferredTrack:this._saveDeferredTrack,eventLogger:this._options.eventLogger}}_runAutoExperiment(A,q){let K=this._activeAutoExperiments.get(A);if(A.manual&&!this._triggeredExpKeys.has(A.key)&&!K)return null;let Y=this._isAutoExperimentBlockedByContext(A),z,w;if(Y)z=fO(this._getEvalContext(),A,-1,!1,"");else({result:z,trackingCall:w}=M41(A,null,this._getEvalContext())),this._fireSubscriptions(A,z);let _=JSON.stringify(z.value);if(!q&&z.inExperiment&&K&&K.valueHash===_)return z;if(K)this._undoActiveAutoExperiment(A);if(z.inExperiment){let $=_41(A);if($==="redirect"&&z.value.urlRedirect&&A.urlPatterns){let O=A.persistQueryString?MTA(this._getContextUrl(),z.value.urlRedirect):z.value.urlRedirect;if(w41(O,A.urlPatterns))return this.log("Skipping redirect because original URL matches redirect URL",{id:A.key}),z;this._redirectedUrl=O;let{navigate:H,delay:j}=this._getNavigateFunction();if(H)if(oj6)Promise.all([...w?[$41(w,this._options.maxNavigateDelay??1000)]:[],new Promise((J)=>window.setTimeout(J,this._options.navigateDelay??j))]).then(()=>{try{H(O)}catch(J){console.error(J)}});else try{H(O)}catch(J){console.error(J)}}else if($==="visual"){let O=this._options.applyDomChangesCallback?this._options.applyDomChangesCallback(z.value):this._applyDOMChanges(z.value);if(O)this._activeAutoExperiments.set(A,{undo:O,valueHash:_})}}return z}_undoActiveAutoExperiment(A){let q=this._activeAutoExperiments.get(A);if(q)q.undo(),this._activeAutoExperiments.delete(A)}_updateAllAutoExperiments(A){if(!this._autoExperimentsAllowed)return;let q=this._options.experiments||[],K=new Set(q);this._activeAutoExperiments.forEach((Y,z)=>{if(!K.has(z))Y.undo(),this._activeAutoExperiments.delete(z)});for(let Y of q){let z=this._runAutoExperiment(Y,A);if(z!==null&&z!==void 0&&z.inExperiment&&_41(Y)==="redirect")break}}_fireSubscriptions(A,q){let K=A.key,Y=this._assigned.get(K);if(!Y||Y.result.inExperiment!==q.inExperiment||Y.result.variationId!==q.variationId)this._assigned.set(K,{experiment:A,result:q}),this._subscriptions.forEach((z)=>{try{z(A,q)}catch(w){console.error(w)}})}_recordChangedId(A){this._completedChangeIds.add(A)}isOn(A){return this.evalFeature(A).on}isOff(A){return this.evalFeature(A).off}getFeatureValue(A,q){let K=this.evalFeature(A).value;return K===null?q:K}feature(A){return this.evalFeature(A)}evalFeature(A){return J41(A,this._getEvalContext())}log(A,q){if(!this.debug)return;if(this._options.log)this._options.log(A,q);else console.log(A,q)}getDeferredTrackingCalls(){return Array.from(this._deferredTrackingCalls.values())}setDeferredTrackingCalls(A){this._deferredTrackingCalls=new Map(A.filter((q)=>q&&q.experiment&&q.result).map((q)=>{return[D41(q.experiment,q.result),q]}))}async fireDeferredTrackingCalls(){if(!this._options.trackingCallback)return;let A=[];this._deferredTrackingCalls.forEach((q)=>{if(!q||!q.experiment||!q.result)console.error("Invalid deferred tracking call",{call:q});else A.push(this._options.trackingCallback(q.experiment,q.result))}),this._deferredTrackingCalls.clear(),await Promise.all(A)}setTrackingCallback(A){this._options.trackingCallback=A,this.fireDeferredTrackingCalls()}setEventLogger(A){this._options.eventLogger=A}async logEvent(A,q){if(this._destroyed){console.error("Cannot log event to destroyed GrowthBook instance");return}if(this._options.enableDevMode)this.logs.push({eventName:A,properties:q,timestamp:Date.now().toString(),logType:"event"});if(this._options.eventLogger)try{await this._options.eventLogger(A,q||{},this._getUserContext())}catch(K){console.error(K)}else console.error("No event logger configured")}_saveDeferredTrack(A){this._deferredTrackingCalls.set(D41(A.experiment,A.result),A)}_getContextUrl(){return this._options.url||(oj6?window.location.href:"")}_isAutoExperimentBlockedByContext(A){let q=_41(A);if(q==="visual"){if(this._options.disableVisualExperiments)return!0;if(this._options.disableJsInjection){if(A.variations.some((K)=>K.js))return!0}}else if(q==="redirect"){if(this._options.disableUrlRedirectExperiments)return!0;try{let K=new URL(this._getContextUrl());for(let Y of A.variations){if(!Y||!Y.urlRedirect)continue;let z=new URL(Y.urlRedirect);if(this._options.disableCrossOriginUrlRedirectExperiments){if(z.protocol!==K.protocol)return!0;if(z.host!==K.host)return!0}}}catch(K){return this.log("Error parsing current or redirect URL",{id:A.key,error:K}),!0}}else return!0;if(A.changeId&&(this._options.blockedChangeIds||[]).includes(A.changeId))return!0;return!1}getRedirectUrl(){return this._redirectedUrl}_getNavigateFunction(){if(this._options.navigate)return{navigate:this._options.navigate,delay:0};else if(oj6)return{navigate:(A)=>{window.location.replace(A)},delay:100};return{navigate:null,delay:0}}_applyDOMChanges(A){if(!oj6)return;let q=[];if(A.css){let K=document.createElement("style");K.innerHTML=A.css,document.head.appendChild(K),q.push(()=>K.remove())}if(A.js){let K=document.createElement("script");if(K.innerHTML=A.js,this._options.jsInjectionNonce)K.nonce=this._options.jsInjectionNonce;document.head.appendChild(K),q.push(()=>K.remove())}if(A.domMutations)A.domMutations.forEach((K)=>{q.push(xTA.default.declarative(K).revert)});return()=>{q.forEach((K)=>K())}}async refreshStickyBuckets(A){if(this._options.stickyBucketService){let q=this._getEvalContext(),K=await STA(q,this._options.stickyBucketService,A);this._options.stickyBucketAssignmentDocs=K}}generateStickyBucketAssignmentDocsSync(A,q){if(!("getAllAssignmentsSync"in A)){console.error("generating StickyBucketAssignmentDocs docs requires StickyBucketServiceSync");return}let K=this._getEvalContext(),Y=nr1(K,q);return A.getAllAssignmentsSync(Y)}inDevMode(){return!!this._options.enableDevMode}}var xTA,oj6,CIK;var bTA=E(()=>{tS6();vTA();ITA();xTA=q6(KTA(),1),oj6=typeof window<"u"&&typeof document<"u",CIK=JTA()});var uTA=E(()=>{bTA()});var mTA="sdk-zAZezfDKGoZuXXKe";var BTA=E(()=>{Z8()});async function gTA(){if(W41===null&&!P41)P41=xIK(),W41=await P41,P41=null,zk.cache.clear?.()}function pTA(){return zk(!0)}function IIK(){if(W41!==null)return W41;return}async function xIK(){return}var W41=null,P41=null,zk;var r46=E(()=>{U8();Rq();U1();xA();eZ();o5();Z8();zk=k8((A)=>{let q=zy(),K=v1(),Y,z,w;if(A){if(Y=yK()??void 0,z=fm()??void 0,Y&&K.claudeCodeFirstTokenDate){let H=new Date(K.claudeCodeFirstTokenDate).getTime();if(!isNaN(H))w=H}}let _=V5(),$=_?.organizationUuid,O=_?.accountUuid;return{deviceId:q,sessionId:i1(),email:IIK(),appVersion:{ISSUES_EXPLAINER:"report the issue at https://github.com/anthropics/claude-code/issues",PACKAGE_URL:"@anthropic-ai/claude-code",README_URL:"https://code.claude.com/docs/en/overview",VERSION:"2.1.69",FEEDBACK_CHANNEL:"https://github.com/anthropics/claude-code/issues",BUILD_TIME:"2026-03-04T21:45:14Z"}.VERSION,platform:Vj6(),organizationUuid:$,accountUuid:O,userType:"external",subscriptionType:Y,rateLimitTier:z,firstTokenTime:w,...w1(process.env.GITHUB_ACTIONS)&&{githubActionsMetadata:{actor:process.env.GITHUB_ACTOR,actorId:process.env.GITHUB_ACTOR_ID,repository:process.env.GITHUB_REPOSITORY,repositoryId:process.env.GITHUB_REPOSITORY_ID,repositoryOwner:process.env.GITHUB_REPOSITORY_OWNER,repositoryOwnerId:process.env.GITHUB_REPOSITORY_OWNER_ID}}}})});function Pv(){return w1(process.env.CLAUDE_CODE_USE_BEDROCK)||w1(process.env.CLAUDE_CODE_USE_VERTEX)||w1(process.env.CLAUDE_CODE_USE_FOUNDRY)||!!process.env.DISABLE_TELEMETRY||!!process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC}var Ta=E(()=>{Z8()});var UTA=h((FTA)=>{Object.defineProperty(FTA,"__esModule",{value:!0});FTA._globalThis=void 0;FTA._globalThis=typeof globalThis==="object"?globalThis:global});var dTA=h((o46)=>{var bIK=o46&&o46.__createBinding||(Object.create?function(A,q,K,Y){if(Y===void 0)Y=K;Object.defineProperty(A,Y,{enumerable:!0,get:function(){return q[K]}})}:function(A,q,K,Y){if(Y===void 0)Y=K;A[Y]=q[K]}),uIK=o46&&o46.__exportStar||function(A,q){for(var K in A)if(K!=="default"&&!Object.prototype.hasOwnProperty.call(q,K))bIK(q,A,K)};Object.defineProperty(o46,"__esModule",{value:!0});uIK(UTA(),o46)});var cTA=h((a46)=>{var mIK=a46&&a46.__createBinding||(Object.create?function(A,q,K,Y){if(Y===void 0)Y=K;Object.defineProperty(A,Y,{enumerable:!0,get:function(){return q[K]}})}:function(A,q,K,Y){if(Y===void 0)Y=K;A[Y]=q[K]}),BIK=a46&&a46.__exportStar||function(A,q){for(var K in A)if(K!=="default"&&!Object.prototype.hasOwnProperty.call(q,K))mIK(q,A,K)};Object.defineProperty(a46,"__esModule",{value:!0});BIK(dTA(),a46)});var rr1=h((lTA)=>{Object.defineProperty(lTA,"__esModule",{value:!0});lTA.VERSION=void 0;lTA.VERSION="1.9.0"});var sTA=h((oTA)=>{Object.defineProperty(oTA,"__esModule",{value:!0});oTA.isCompatible=oTA._makeCompatibilityCheck=void 0;var gIK=rr1(),nTA=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function rTA(A){let q=new Set([A]),K=new Set,Y=A.match(nTA);if(!Y)return()=>!1;let z={major:+Y[1],minor:+Y[2],patch:+Y[3],prerelease:Y[4]};if(z.prerelease!=null)return function(O){return O===A};function w($){return K.add($),!1}function _($){return q.add($),!0}return function(O){if(q.has(O))return!0;if(K.has(O))return!1;let H=O.match(nTA);if(!H)return w(O);let j={major:+H[1],minor:+H[2],patch:+H[3],prerelease:H[4]};if(j.prerelease!=null)return w(O);if(z.major!==j.major)return w(O);if(z.major===0){if(z.minor===j.minor&&z.patch<=j.patch)return _(O);return w(O)}if(z.minor<=j.minor)return _(O);return w(O)}}oTA._makeCompatibilityCheck=rTA;oTA.isCompatible=rTA(gIK.VERSION)});var s46=h((tTA)=>{Object.defineProperty(tTA,"__esModule",{value:!0});tTA.unregisterGlobal=tTA.getGlobal=tTA.registerGlobal=void 0;var FIK=cTA(),aj6=rr1(),QIK=sTA(),UIK=aj6.VERSION.split(".")[0],qh6=Symbol.for(`opentelemetry.js.api.${UIK}`),Kh6=FIK._globalThis;function dIK(A,q,K,Y=!1){var z;let w=Kh6[qh6]=(z=Kh6[qh6])!==null&&z!==void 0?z:{version:aj6.VERSION};if(!Y&&w[A]){let _=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${A}`);return K.error(_.stack||_.message),!1}if(w.version!==aj6.VERSION){let _=Error(`@opentelemetry/api: Registration of version v${w.version} for ${A} does not match previously registered API v${aj6.VERSION}`);return K.error(_.stack||_.message),!1}return w[A]=q,K.debug(`@opentelemetry/api: Registered a global for ${A} v${aj6.VERSION}.`),!0}tTA.registerGlobal=dIK;function cIK(A){var q,K;let Y=(q=Kh6[qh6])===null||q===void 0?void 0:q.version;if(!Y||!(0,QIK.isCompatible)(Y))return;return(K=Kh6[qh6])===null||K===void 0?void 0:K[A]}tTA.getGlobal=cIK;function lIK(A,q){q.debug(`@opentelemetry/api: Unregistering a global for ${A} v${aj6.VERSION}.`);let K=Kh6[qh6];if(K)delete K[A]}tTA.unregisterGlobal=lIK});var YvA=h((qvA)=>{Object.defineProperty(qvA,"__esModule",{value:!0});qvA.DiagComponentLogger=void 0;var rIK=s46();class AvA{constructor(A){this._namespace=A.namespace||"DiagComponentLogger"}debug(...A){return Yh6("debug",this._namespace,A)}error(...A){return Yh6("error",this._namespace,A)}info(...A){return Yh6("info",this._namespace,A)}warn(...A){return Yh6("warn",this._namespace,A)}verbose(...A){return Yh6("verbose",this._namespace,A)}}qvA.DiagComponentLogger=AvA;function Yh6(A,q,K){let Y=(0,rIK.getGlobal)("diag");if(!Y)return;return K.unshift(q),Y[A](...K)}});var G41=h((zvA)=>{Object.defineProperty(zvA,"__esModule",{value:!0});zvA.DiagLogLevel=void 0;var oIK;(function(A){A[A.NONE=0]="NONE",A[A.ERROR=30]="ERROR",A[A.WARN=50]="WARN",A[A.INFO=60]="INFO",A[A.DEBUG=70]="DEBUG",A[A.VERBOSE=80]="VERBOSE",A[A.ALL=9999]="ALL"})(oIK=zvA.DiagLogLevel||(zvA.DiagLogLevel={}))});var $vA=h((wvA)=>{Object.defineProperty(wvA,"__esModule",{value:!0});wvA.createLogLevelDiagLogger=void 0;var VU=G41();function aIK(A,q){if(A<VU.DiagLogLevel.NONE)A=VU.DiagLogLevel.NONE;else if(A>VU.DiagLogLevel.ALL)A=VU.DiagLogLevel.ALL;q=q||{};function K(Y,z){let w=q[Y];if(typeof w==="function"&&A>=z)return w.bind(q);return function(){}}return{error:K("error",VU.DiagLogLevel.ERROR),warn:K("warn",VU.DiagLogLevel.WARN),info:K("info",VU.DiagLogLevel.INFO),debug:K("debug",VU.DiagLogLevel.DEBUG),verbose:K("verbose",VU.DiagLogLevel.VERBOSE)}}wvA.createLogLevelDiagLogger=aIK});var t46=h((HvA)=>{Object.defineProperty(HvA,"__esModule",{value:!0});HvA.DiagAPI=void 0;var sIK=YvA(),tIK=$vA(),OvA=G41(),Z41=s46(),eIK="diag";class ar1{constructor(){function A(Y){return function(...z){let w=(0,Z41.getGlobal)("diag");if(!w)return;return w[Y](...z)}}let q=this,K=(Y,z={logLevel:OvA.DiagLogLevel.INFO})=>{var w,_,$;if(Y===q){let j=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return q.error((w=j.stack)!==null&&w!==void 0?w:j.message),!1}if(typeof z==="number")z={logLevel:z};let O=(0,Z41.getGlobal)("diag"),H=(0,tIK.createLogLevelDiagLogger)((_=z.logLevel)!==null&&_!==void 0?_:OvA.DiagLogLevel.INFO,Y);if(O&&!z.suppressOverrideMessage){let j=($=Error().stack)!==null&&$!==void 0?$:"<failed to generate stacktrace>";O.warn(`Current logger will be overwritten from ${j}`),H.warn(`Current logger will overwrite one already registered from ${j}`)}return(0,Z41.registerGlobal)("diag",H,q,!0)};q.setLogger=K,q.disable=()=>{(0,Z41.unregisterGlobal)(eIK,q)},q.createComponentLogger=(Y)=>{return new sIK.DiagComponentLogger(Y)},q.verbose=A("verbose"),q.debug=A("debug"),q.info=A("info"),q.warn=A("warn"),q.error=A("error")}static instance(){if(!this._instance)this._instance=new ar1;return this._instance}}HvA.DiagAPI=ar1});var DvA=h((JvA)=>{Object.defineProperty(JvA,"__esModule",{value:!0});JvA.BaggageImpl=void 0;class sj6{constructor(A){this._entries=A?new Map(A):new Map}getEntry(A){let q=this._entries.get(A);if(!q)return;return Object.assign({},q)}getAllEntries(){return Array.from(this._entries.entries()).map(([A,q])=>[A,q])}setEntry(A,q){let K=new sj6(this._entries);return K._entries.set(A,q),K}removeEntry(A){let q=new sj6(this._entries);return q._entries.delete(A),q}removeEntries(...A){let q=new sj6(this._entries);for(let K of A)q._entries.delete(K);return q}clear(){return new sj6}}JvA.BaggageImpl=sj6});var WvA=h((XvA)=>{Object.defineProperty(XvA,"__esModule",{value:!0});XvA.baggageEntryMetadataSymbol=void 0;XvA.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var sr1=h((GvA)=>{Object.defineProperty(GvA,"__esModule",{value:!0});GvA.baggageEntryMetadataFromString=GvA.createBaggage=void 0;var AxK=t46(),qxK=DvA(),KxK=WvA(),YxK=AxK.DiagAPI.instance();function zxK(A={}){return new qxK.BaggageImpl(new Map(Object.entries(A)))}GvA.createBaggage=zxK;function wxK(A){if(typeof A!=="string")YxK.error(`Cannot create baggage metadata from unknown type: ${typeof A}`),A="";return{__TYPE__:KxK.baggageEntryMetadataSymbol,toString(){return A}}}GvA.baggageEntryMetadataFromString=wxK});var zh6=h((fvA)=>{Object.defineProperty(fvA,"__esModule",{value:!0});fvA.ROOT_CONTEXT=fvA.createContextKey=void 0;function $xK(A){return Symbol.for(A)}fvA.createContextKey=$xK;class f41{constructor(A){let q=this;q._currentContext=A?new Map(A):new Map,q.getValue=(K)=>q._currentContext.get(K),q.setValue=(K,Y)=>{let z=new f41(q._currentContext);return z._currentContext.set(K,Y),z},q.deleteValue=(K)=>{let Y=new f41(q._currentContext);return Y._currentContext.delete(K),Y}}}fvA.ROOT_CONTEXT=new f41});var kvA=h((VvA)=>{Object.defineProperty(VvA,"__esModule",{value:!0});VvA.DiagConsoleLogger=void 0;var tr1=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class vvA{constructor(){function A(q){return function(...K){if(console){let Y=console[q];if(typeof Y!=="function")Y=console.log;if(typeof Y==="function")return Y.apply(console,K)}}}for(let q=0;q<tr1.length;q++)this[tr1[q].n]=A(tr1[q].c)}}VvA.DiagConsoleLogger=vvA});var $o1=h((EvA)=>{Object.defineProperty(EvA,"__esModule",{value:!0});EvA.createNoopMeter=EvA.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=EvA.NOOP_OBSERVABLE_GAUGE_METRIC=EvA.NOOP_OBSERVABLE_COUNTER_METRIC=EvA.NOOP_UP_DOWN_COUNTER_METRIC=EvA.NOOP_HISTOGRAM_METRIC=EvA.NOOP_GAUGE_METRIC=EvA.NOOP_COUNTER_METRIC=EvA.NOOP_METER=EvA.NoopObservableUpDownCounterMetric=EvA.NoopObservableGaugeMetric=EvA.NoopObservableCounterMetric=EvA.NoopObservableMetric=EvA.NoopHistogramMetric=EvA.NoopGaugeMetric=EvA.NoopUpDownCounterMetric=EvA.NoopCounterMetric=EvA.NoopMetric=EvA.NoopMeter=void 0;class er1{constructor(){}createGauge(A,q){return EvA.NOOP_GAUGE_METRIC}createHistogram(A,q){return EvA.NOOP_HISTOGRAM_METRIC}createCounter(A,q){return EvA.NOOP_COUNTER_METRIC}createUpDownCounter(A,q){return EvA.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(A,q){return EvA.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(A,q){return EvA.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(A,q){return EvA.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(A,q){}removeBatchObservableCallback(A){}}EvA.NoopMeter=er1;class tj6{}EvA.NoopMetric=tj6;class Ao1 extends tj6{add(A,q){}}EvA.NoopCounterMetric=Ao1;class qo1 extends tj6{add(A,q){}}EvA.NoopUpDownCounterMetric=qo1;class Ko1 extends tj6{record(A,q){}}EvA.NoopGaugeMetric=Ko1;class Yo1 extends tj6{record(A,q){}}EvA.NoopHistogramMetric=Yo1;class wh6{addCallback(A){}removeCallback(A){}}EvA.NoopObservableMetric=wh6;class zo1 extends wh6{}EvA.NoopObservableCounterMetric=zo1;class wo1 extends wh6{}EvA.NoopObservableGaugeMetric=wo1;class _o1 extends wh6{}EvA.NoopObservableUpDownCounterMetric=_o1;EvA.NOOP_METER=new er1;EvA.NOOP_COUNTER_METRIC=new Ao1;EvA.NOOP_GAUGE_METRIC=new Ko1;EvA.NOOP_HISTOGRAM_METRIC=new Yo1;EvA.NOOP_UP_DOWN_COUNTER_METRIC=new qo1;EvA.NOOP_OBSERVABLE_COUNTER_METRIC=new zo1;EvA.NOOP_OBSERVABLE_GAUGE_METRIC=new wo1;EvA.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new _o1;function HxK(){return EvA.NOOP_METER}EvA.createNoopMeter=HxK});var mvA=h((uvA)=>{Object.defineProperty(uvA,"__esModule",{value:!0});uvA.ValueType=void 0;var TxK;(function(A){A[A.INT=0]="INT",A[A.DOUBLE=1]="DOUBLE"})(TxK=uvA.ValueType||(uvA.ValueType={}))});var Ho1=h((BvA)=>{Object.defineProperty(BvA,"__esModule",{value:!0});BvA.defaultTextMapSetter=BvA.defaultTextMapGetter=void 0;BvA.defaultTextMapGetter={get(A,q){if(A==null)return;return A[q]},keys(A){if(A==null)return[];return Object.keys(A)}};BvA.defaultTextMapSetter={set(A,q,K){if(A==null)return;A[q]=K}}});var UvA=h((FvA)=>{Object.defineProperty(FvA,"__esModule",{value:!0});FvA.NoopContextManager=void 0;var VxK=zh6();class pvA{active(){return VxK.ROOT_CONTEXT}with(A,q,K,...Y){return q.call(K,...Y)}bind(A,q){return q}enable(){return this}disable(){return this}}FvA.NoopContextManager=pvA});var _h6=h((cvA)=>{Object.defineProperty(cvA,"__esModule",{value:!0});cvA.ContextAPI=void 0;var NxK=UvA(),jo1=s46(),dvA=t46(),Jo1="context",kxK=new NxK.NoopContextManager;class Mo1{constructor(){}static getInstance(){if(!this._instance)this._instance=new Mo1;return this._instance}setGlobalContextManager(A){return(0,jo1.registerGlobal)(Jo1,A,dvA.DiagAPI.instance())}active(){return this._getContextManager().active()}with(A,q,K,...Y){return this._getContextManager().with(A,q,K,...Y)}bind(A,q){return this._getContextManager().bind(A,q)}_getContextManager(){return(0,jo1.getGlobal)(Jo1)||kxK}disable(){this._getContextManager().disable(),(0,jo1.unregisterGlobal)(Jo1,dvA.DiagAPI.instance())}}cvA.ContextAPI=Mo1});var Xo1=h((ivA)=>{Object.defineProperty(ivA,"__esModule",{value:!0});ivA.TraceFlags=void 0;var ExK;(function(A){A[A.NONE=0]="NONE",A[A.SAMPLED=1]="SAMPLED"})(ExK=ivA.TraceFlags||(ivA.TraceFlags={}))});var T41=h((nvA)=>{Object.defineProperty(nvA,"__esModule",{value:!0});nvA.INVALID_SPAN_CONTEXT=nvA.INVALID_TRACEID=nvA.INVALID_SPANID=void 0;var LxK=Xo1();nvA.INVALID_SPANID="0000000000000000";nvA.INVALID_TRACEID="00000000000000000000000000000000";nvA.INVALID_SPAN_CONTEXT={traceId:nvA.INVALID_TRACEID,spanId:nvA.INVALID_SPANID,traceFlags:LxK.TraceFlags.NONE}});var v41=h((tvA)=>{Object.defineProperty(tvA,"__esModule",{value:!0});tvA.NonRecordingSpan=void 0;var yxK=T41();class svA{constructor(A=yxK.INVALID_SPAN_CONTEXT){this._spanContext=A}spanContext(){return this._spanContext}setAttribute(A,q){return this}setAttributes(A){return this}addEvent(A,q){return this}addLink(A){return this}addLinks(A){return this}setStatus(A){return this}updateName(A){return this}end(A){}isRecording(){return!1}recordException(A,q){}}tvA.NonRecordingSpan=svA});var Go1=h((qVA)=>{Object.defineProperty(qVA,"__esModule",{value:!0});qVA.getSpanContext=qVA.setSpanContext=qVA.deleteSpan=qVA.setSpan=qVA.getActiveSpan=qVA.getSpan=void 0;var RxK=zh6(),SxK=v41(),hxK=_h6(),Po1=(0,RxK.createContextKey)("OpenTelemetry Context Key SPAN");function Wo1(A){return A.getValue(Po1)||void 0}qVA.getSpan=Wo1;function CxK(){return Wo1(hxK.ContextAPI.getInstance().active())}qVA.getActiveSpan=CxK;function AVA(A,q){return A.setValue(Po1,q)}qVA.setSpan=AVA;function IxK(A){return A.deleteValue(Po1)}qVA.deleteSpan=IxK;function xxK(A,q){return AVA(A,new SxK.NonRecordingSpan(q))}qVA.setSpanContext=xxK;function bxK(A){var q;return(q=Wo1(A))===null||q===void 0?void 0:q.spanContext()}qVA.getSpanContext=bxK});var V41=h((_VA)=>{Object.defineProperty(_VA,"__esModule",{value:!0});_VA.wrapSpanContext=_VA.isSpanContextValid=_VA.isValidSpanId=_VA.isValidTraceId=void 0;var YVA=T41(),FxK=v41(),QxK=/^([0-9a-f]{32})$/i,UxK=/^[0-9a-f]{16}$/i;function zVA(A){return QxK.test(A)&&A!==YVA.INVALID_TRACEID}_VA.isValidTraceId=zVA;function wVA(A){return UxK.test(A)&&A!==YVA.INVALID_SPANID}_VA.isValidSpanId=wVA;function dxK(A){return zVA(A.traceId)&&wVA(A.spanId)}_VA.isSpanContextValid=dxK;function cxK(A){return new FxK.NonRecordingSpan(A)}_VA.wrapSpanContext=cxK});var To1=h((jVA)=>{Object.defineProperty(jVA,"__esModule",{value:!0});jVA.NoopTracer=void 0;var rxK=_h6(),OVA=Go1(),Zo1=v41(),oxK=V41(),fo1=rxK.ContextAPI.getInstance();class HVA{startSpan(A,q,K=fo1.active()){if(Boolean(q===null||q===void 0?void 0:q.root))return new Zo1.NonRecordingSpan;let z=K&&(0,OVA.getSpanContext)(K);if(axK(z)&&(0,oxK.isSpanContextValid)(z))return new Zo1.NonRecordingSpan(z);else return new Zo1.NonRecordingSpan}startActiveSpan(A,q,K,Y){let z,w,_;if(arguments.length<2)return;else if(arguments.length===2)_=q;else if(arguments.length===3)z=q,_=K;else z=q,w=K,_=Y;let $=w!==null&&w!==void 0?w:fo1.active(),O=this.startSpan(A,z,$),H=(0,OVA.setSpan)($,O);return fo1.with(H,_,void 0,O)}}jVA.NoopTracer=HVA;function axK(A){return typeof A==="object"&&typeof A.spanId==="string"&&typeof A.traceId==="string"&&typeof A.traceFlags==="number"}});var vo1=h((DVA)=>{Object.defineProperty(DVA,"__esModule",{value:!0});DVA.ProxyTracer=void 0;var sxK=To1(),txK=new sxK.NoopTracer;class MVA{constructor(A,q,K,Y){this._provider=A,this.name=q,this.version=K,this.options=Y}startSpan(A,q,K){return this._getTracer().startSpan(A,q,K)}startActiveSpan(A,q,K,Y){let z=this._getTracer();return Reflect.apply(z.startActiveSpan,z,arguments)}_getTracer(){if(this._delegate)return this._delegate;let A=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!A)return txK;return this._delegate=A,this._delegate}}DVA.ProxyTracer=MVA});var ZVA=h((WVA)=>{Object.defineProperty(WVA,"__esModule",{value:!0});WVA.NoopTracerProvider=void 0;var exK=To1();class PVA{getTracer(A,q,K){return new exK.NoopTracer}}WVA.NoopTracerProvider=PVA});var Vo1=h((TVA)=>{Object.defineProperty(TVA,"__esModule",{value:!0});TVA.ProxyTracerProvider=void 0;var AbK=vo1(),qbK=ZVA(),KbK=new qbK.NoopTracerProvider;class fVA{getTracer(A,q,K){var Y;return(Y=this.getDelegateTracer(A,q,K))!==null&&Y!==void 0?Y:new AbK.ProxyTracer(this,A,q,K)}getDelegate(){var A;return(A=this._delegate)!==null&&A!==void 0?A:KbK}setDelegate(A){this._delegate=A}getDelegateTracer(A,q,K){var Y;return(Y=this._delegate)===null||Y===void 0?void 0:Y.getTracer(A,q,K)}}TVA.ProxyTracerProvider=fVA});var NVA=h((VVA)=>{Object.defineProperty(VVA,"__esModule",{value:!0});VVA.SamplingDecision=void 0;var YbK;(function(A){A[A.NOT_RECORD=0]="NOT_RECORD",A[A.RECORD=1]="RECORD",A[A.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(YbK=VVA.SamplingDecision||(VVA.SamplingDecision={}))});var EVA=h((kVA)=>{Object.defineProperty(kVA,"__esModule",{value:!0});kVA.SpanKind=void 0;var zbK;(function(A){A[A.INTERNAL=0]="INTERNAL",A[A.SERVER=1]="SERVER",A[A.CLIENT=2]="CLIENT",A[A.PRODUCER=3]="PRODUCER",A[A.CONSUMER=4]="CONSUMER"})(zbK=kVA.SpanKind||(kVA.SpanKind={}))});var yVA=h((LVA)=>{Object.defineProperty(LVA,"__esModule",{value:!0});LVA.SpanStatusCode=void 0;var wbK;(function(A){A[A.UNSET=0]="UNSET",A[A.OK=1]="OK",A[A.ERROR=2]="ERROR"})(wbK=LVA.SpanStatusCode||(LVA.SpanStatusCode={}))});var hVA=h((RVA)=>{Object.defineProperty(RVA,"__esModule",{value:!0});RVA.validateValue=RVA.validateKey=void 0;var Lo1="[_0-9a-z-*/]",_bK=`[a-z]${Lo1}{0,255}`,$bK=`[a-z0-9]${Lo1}{0,240}@[a-z]${Lo1}{0,13}`,ObK=new RegExp(`^(?:${_bK}|${$bK})$`),HbK=/^[ -~]{0,255}[!-~]$/,jbK=/,|=/;function JbK(A){return ObK.test(A)}RVA.validateKey=JbK;function MbK(A){return HbK.test(A)&&!jbK.test(A)}RVA.validateValue=MbK});var BVA=h((uVA)=>{Object.defineProperty(uVA,"__esModule",{value:!0});uVA.TraceStateImpl=void 0;var CVA=hVA(),IVA=32,XbK=512,xVA=",",bVA="=";class yo1{constructor(A){if(this._internalState=new Map,A)this._parse(A)}set(A,q){let K=this._clone();if(K._internalState.has(A))K._internalState.delete(A);return K._internalState.set(A,q),K}unset(A){let q=this._clone();return q._internalState.delete(A),q}get(A){return this._internalState.get(A)}serialize(){return this._keys().reduce((A,q)=>{return A.push(q+bVA+this.get(q)),A},[]).join(xVA)}_parse(A){if(A.length>XbK)return;if(this._internalState=A.split(xVA).reverse().reduce((q,K)=>{let Y=K.trim(),z=Y.indexOf(bVA);if(z!==-1){let w=Y.slice(0,z),_=Y.slice(z+1,K.length);if((0,CVA.validateKey)(w)&&(0,CVA.validateValue)(_))q.set(w,_)}return q},new Map),this._internalState.size>IVA)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,IVA))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let A=new yo1;return A._internalState=new Map(this._internalState),A}}uVA.TraceStateImpl=yo1});var FVA=h((gVA)=>{Object.defineProperty(gVA,"__esModule",{value:!0});gVA.createTraceState=void 0;var PbK=BVA();function WbK(A){return new PbK.TraceStateImpl(A)}gVA.createTraceState=WbK});var dVA=h((QVA)=>{Object.defineProperty(QVA,"__esModule",{value:!0});QVA.context=void 0;var GbK=_h6();QVA.context=GbK.ContextAPI.getInstance()});var iVA=h((cVA)=>{Object.defineProperty(cVA,"__esModule",{value:!0});cVA.diag=void 0;var ZbK=t46();cVA.diag=ZbK.DiagAPI.instance()});var oVA=h((nVA)=>{Object.defineProperty(nVA,"__esModule",{value:!0});nVA.NOOP_METER_PROVIDER=nVA.NoopMeterProvider=void 0;var fbK=$o1();class Ro1{getMeter(A,q,K){return fbK.NOOP_METER}}nVA.NoopMeterProvider=Ro1;nVA.NOOP_METER_PROVIDER=new Ro1});var eVA=h((sVA)=>{Object.defineProperty(sVA,"__esModule",{value:!0});sVA.MetricsAPI=void 0;var vbK=oVA(),So1=s46(),aVA=t46(),ho1="metrics";class Co1{constructor(){}static getInstance(){if(!this._instance)this._instance=new Co1;return this._instance}setGlobalMeterProvider(A){return(0,So1.registerGlobal)(ho1,A,aVA.DiagAPI.instance())}getMeterProvider(){return(0,So1.getGlobal)(ho1)||vbK.NOOP_METER_PROVIDER}getMeter(A,q,K){return this.getMeterProvider().getMeter(A,q,K)}disable(){(0,So1.unregisterGlobal)(ho1,aVA.DiagAPI.instance())}}sVA.MetricsAPI=Co1});var KNA=h((ANA)=>{Object.defineProperty(ANA,"__esModule",{value:!0});ANA.metrics=void 0;var VbK=eVA();ANA.metrics=VbK.MetricsAPI.getInstance()});var _NA=h((zNA)=>{Object.defineProperty(zNA,"__esModule",{value:!0});zNA.NoopTextMapPropagator=void 0;class YNA{inject(A,q){}extract(A,q){return A}fields(){return[]}}zNA.NoopTextMapPropagator=YNA});var jNA=h((ONA)=>{Object.defineProperty(ONA,"__esModule",{value:!0});ONA.deleteBaggage=ONA.setBaggage=ONA.getActiveBaggage=ONA.getBaggage=void 0;var NbK=_h6(),kbK=zh6(),Io1=(0,kbK.createContextKey)("OpenTelemetry Baggage Key");function $NA(A){return A.getValue(Io1)||void 0}ONA.getBaggage=$NA;function EbK(){return $NA(NbK.ContextAPI.getInstance().active())}ONA.getActiveBaggage=EbK;function LbK(A,q){return A.setValue(Io1,q)}ONA.setBaggage=LbK;function ybK(A){return A.deleteValue(Io1)}ONA.deleteBaggage=ybK});var PNA=h((DNA)=>{Object.defineProperty(DNA,"__esModule",{value:!0});DNA.PropagationAPI=void 0;var xo1=s46(),CbK=_NA(),JNA=Ho1(),N41=jNA(),IbK=sr1(),MNA=t46(),bo1="propagation",xbK=new CbK.NoopTextMapPropagator;class uo1{constructor(){this.createBaggage=IbK.createBaggage,this.getBaggage=N41.getBaggage,this.getActiveBaggage=N41.getActiveBaggage,this.setBaggage=N41.setBaggage,this.deleteBaggage=N41.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new uo1;return this._instance}setGlobalPropagator(A){return(0,xo1.registerGlobal)(bo1,A,MNA.DiagAPI.instance())}inject(A,q,K=JNA.defaultTextMapSetter){return this._getGlobalPropagator().inject(A,q,K)}extract(A,q,K=JNA.defaultTextMapGetter){return this._getGlobalPropagator().extract(A,q,K)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,xo1.unregisterGlobal)(bo1,MNA.DiagAPI.instance())}_getGlobalPropagator(){return(0,xo1.getGlobal)(bo1)||xbK}}DNA.PropagationAPI=uo1});var ZNA=h((WNA)=>{Object.defineProperty(WNA,"__esModule",{value:!0});WNA.propagation=void 0;var bbK=PNA();WNA.propagation=bbK.PropagationAPI.getInstance()});var kNA=h((VNA)=>{Object.defineProperty(VNA,"__esModule",{value:!0});VNA.TraceAPI=void 0;var mo1=s46(),fNA=Vo1(),TNA=V41(),ej6=Go1(),vNA=t46(),Bo1="trace";class go1{constructor(){this._proxyTracerProvider=new fNA.ProxyTracerProvider,this.wrapSpanContext=TNA.wrapSpanContext,this.isSpanContextValid=TNA.isSpanContextValid,this.deleteSpan=ej6.deleteSpan,this.getSpan=ej6.getSpan,this.getActiveSpan=ej6.getActiveSpan,this.getSpanContext=ej6.getSpanContext,this.setSpan=ej6.setSpan,this.setSpanContext=ej6.setSpanContext}static getInstance(){if(!this._instance)this._instance=new go1;return this._instance}setGlobalTracerProvider(A){let q=(0,mo1.registerGlobal)(Bo1,this._proxyTracerProvider,vNA.DiagAPI.instance());if(q)this._proxyTracerProvider.setDelegate(A);return q}getTracerProvider(){return(0,mo1.getGlobal)(Bo1)||this._proxyTracerProvider}getTracer(A,q){return this.getTracerProvider().getTracer(A,q)}disable(){(0,mo1.unregisterGlobal)(Bo1,vNA.DiagAPI.instance()),this._proxyTracerProvider=new fNA.ProxyTracerProvider}}VNA.TraceAPI=go1});var yNA=h((ENA)=>{Object.defineProperty(ENA,"__esModule",{value:!0});ENA.trace=void 0;var ubK=kNA();ENA.trace=ubK.TraceAPI.getInstance()});var gq=h((sw)=>{Object.defineProperty(sw,"__esModule",{value:!0});sw.trace=sw.propagation=sw.metrics=sw.diag=sw.context=sw.INVALID_SPAN_CONTEXT=sw.INVALID_TRACEID=sw.INVALID_SPANID=sw.isValidSpanId=sw.isValidTraceId=sw.isSpanContextValid=sw.createTraceState=sw.TraceFlags=sw.SpanStatusCode=sw.SpanKind=sw.SamplingDecision=sw.ProxyTracerProvider=sw.ProxyTracer=sw.defaultTextMapSetter=sw.defaultTextMapGetter=sw.ValueType=sw.createNoopMeter=sw.DiagLogLevel=sw.DiagConsoleLogger=sw.ROOT_CONTEXT=sw.createContextKey=sw.baggageEntryMetadataFromString=void 0;var mbK=sr1();Object.defineProperty(sw,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return mbK.baggageEntryMetadataFromString}});var RNA=zh6();Object.defineProperty(sw,"createContextKey",{enumerable:!0,get:function(){return RNA.createContextKey}});Object.defineProperty(sw,"ROOT_CONTEXT",{enumerable:!0,get:function(){return RNA.ROOT_CONTEXT}});var BbK=kvA();Object.defineProperty(sw,"DiagConsoleLogger",{enumerable:!0,get:function(){return BbK.DiagConsoleLogger}});var gbK=G41();Object.defineProperty(sw,"DiagLogLevel",{enumerable:!0,get:function(){return gbK.DiagLogLevel}});var pbK=$o1();Object.defineProperty(sw,"createNoopMeter",{enumerable:!0,get:function(){return pbK.createNoopMeter}});var FbK=mvA();Object.defineProperty(sw,"ValueType",{enumerable:!0,get:function(){return FbK.ValueType}});var SNA=Ho1();Object.defineProperty(sw,"defaultTextMapGetter",{enumerable:!0,get:function(){return SNA.defaultTextMapGetter}});Object.defineProperty(sw,"defaultTextMapSetter",{enumerable:!0,get:function(){return SNA.defaultTextMapSetter}});var QbK=vo1();Object.defineProperty(sw,"ProxyTracer",{enumerable:!0,get:function(){return QbK.ProxyTracer}});var UbK=Vo1();Object.defineProperty(sw,"ProxyTracerProvider",{enumerable:!0,get:function(){return UbK.ProxyTracerProvider}});var dbK=NVA();Object.defineProperty(sw,"SamplingDecision",{enumerable:!0,get:function(){return dbK.SamplingDecision}});var cbK=EVA();Object.defineProperty(sw,"SpanKind",{enumerable:!0,get:function(){return cbK.SpanKind}});var lbK=yVA();Object.defineProperty(sw,"SpanStatusCode",{enumerable:!0,get:function(){return lbK.SpanStatusCode}});var ibK=Xo1();Object.defineProperty(sw,"TraceFlags",{enumerable:!0,get:function(){return ibK.TraceFlags}});var nbK=FVA();Object.defineProperty(sw,"createTraceState",{enumerable:!0,get:function(){return nbK.createTraceState}});var po1=V41();Object.defineProperty(sw,"isSpanContextValid",{enumerable:!0,get:function(){return po1.isSpanContextValid}});Object.defineProperty(sw,"isValidTraceId",{enumerable:!0,get:function(){return po1.isValidTraceId}});Object.defineProperty(sw,"isValidSpanId",{enumerable:!0,get:function(){return po1.isValidSpanId}});var Fo1=T41();Object.defineProperty(sw,"INVALID_SPANID",{enumerable:!0,get:function(){return Fo1.INVALID_SPANID}});Object.defineProperty(sw,"INVALID_TRACEID",{enumerable:!0,get:function(){return Fo1.INVALID_TRACEID}});Object.defineProperty(sw,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return Fo1.INVALID_SPAN_CONTEXT}});var hNA=dVA();Object.defineProperty(sw,"context",{enumerable:!0,get:function(){return hNA.context}});var CNA=iVA();Object.defineProperty(sw,"diag",{enumerable:!0,get:function(){return CNA.diag}});var INA=KNA();Object.defineProperty(sw,"metrics",{enumerable:!0,get:function(){return INA.metrics}});var xNA=ZNA();Object.defineProperty(sw,"propagation",{enumerable:!0,get:function(){return xNA.propagation}});var bNA=yNA();Object.defineProperty(sw,"trace",{enumerable:!0,get:function(){return bNA.trace}});sw.default={context:hNA.context,diag:CNA.diag,metrics:INA.metrics,propagation:xNA.propagation,trace:bNA.trace}});var mNA=h((uNA)=>{Object.defineProperty(uNA,"__esModule",{value:!0});uNA.SeverityNumber=void 0;var abK;(function(A){A[A.UNSPECIFIED=0]="UNSPECIFIED",A[A.TRACE=1]="TRACE",A[A.TRACE2=2]="TRACE2",A[A.TRACE3=3]="TRACE3",A[A.TRACE4=4]="TRACE4",A[A.DEBUG=5]="DEBUG",A[A.DEBUG2=6]="DEBUG2",A[A.DEBUG3=7]="DEBUG3",A[A.DEBUG4=8]="DEBUG4",A[A.INFO=9]="INFO",A[A.INFO2=10]="INFO2",A[A.INFO3=11]="INFO3",A[A.INFO4=12]="INFO4",A[A.WARN=13]="WARN",A[A.WARN2=14]="WARN2",A[A.WARN3=15]="WARN3",A[A.WARN4=16]="WARN4",A[A.ERROR=17]="ERROR",A[A.ERROR2=18]="ERROR2",A[A.ERROR3=19]="ERROR3",A[A.ERROR4=20]="ERROR4",A[A.FATAL=21]="FATAL",A[A.FATAL2=22]="FATAL2",A[A.FATAL3=23]="FATAL3",A[A.FATAL4=24]="FATAL4"})(abK=uNA.SeverityNumber||(uNA.SeverityNumber={}))});var k41=h((BNA)=>{Object.defineProperty(BNA,"__esModule",{value:!0});BNA.NOOP_LOGGER=BNA.NoopLogger=void 0;class Uo1{emit(A){}}BNA.NoopLogger=Uo1;BNA.NOOP_LOGGER=new Uo1});var co1=h((pNA)=>{Object.defineProperty(pNA,"__esModule",{value:!0});pNA.NOOP_LOGGER_PROVIDER=pNA.NoopLoggerProvider=void 0;var tbK=k41();class do1{getLogger(A,q,K){return new tbK.NoopLogger}}pNA.NoopLoggerProvider=do1;pNA.NOOP_LOGGER_PROVIDER=new do1});var cNA=h((UNA)=>{Object.defineProperty(UNA,"__esModule",{value:!0});UNA.ProxyLogger=void 0;var AuK=k41();class QNA{constructor(A,q,K,Y){this._provider=A,this.name=q,this.version=K,this.options=Y}emit(A){this._getLogger().emit(A)}_getLogger(){if(this._delegate)return this._delegate;let A=this._provider._getDelegateLogger(this.name,this.version,this.options);if(!A)return AuK.NOOP_LOGGER;return this._delegate=A,this._delegate}}UNA.ProxyLogger=QNA});var lo1=h((iNA)=>{Object.defineProperty(iNA,"__esModule",{value:!0});iNA.ProxyLoggerProvider=void 0;var quK=co1(),KuK=cNA();class lNA{getLogger(A,q,K){var Y;return(Y=this._getDelegateLogger(A,q,K))!==null&&Y!==void 0?Y:new KuK.ProxyLogger(this,A,q,K)}_getDelegate(){var A;return(A=this._delegate)!==null&&A!==void 0?A:quK.NOOP_LOGGER_PROVIDER}_setDelegate(A){this._delegate=A}_getDelegateLogger(A,q,K){var Y;return(Y=this._delegate)===null||Y===void 0?void 0:Y.getLogger(A,q,K)}}iNA.ProxyLoggerProvider=lNA});var aNA=h((rNA)=>{Object.defineProperty(rNA,"__esModule",{value:!0});rNA._globalThis=void 0;rNA._globalThis=typeof globalThis==="object"?globalThis:global});var sNA=h((io1)=>{Object.defineProperty(io1,"__esModule",{value:!0});io1._globalThis=void 0;var YuK=aNA();Object.defineProperty(io1,"_globalThis",{enumerable:!0,get:function(){return YuK._globalThis}})});var tNA=h((no1)=>{Object.defineProperty(no1,"__esModule",{value:!0});no1._globalThis=void 0;var wuK=sNA();Object.defineProperty(no1,"_globalThis",{enumerable:!0,get:function(){return wuK._globalThis}})});var qkA=h((eNA)=>{Object.defineProperty(eNA,"__esModule",{value:!0});eNA.API_BACKWARDS_COMPATIBILITY_VERSION=eNA.makeGetter=eNA._global=eNA.GLOBAL_LOGS_API_KEY=void 0;var $uK=tNA();eNA.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");eNA._global=$uK._globalThis;function OuK(A,q,K){return(Y)=>Y===A?q:K}eNA.makeGetter=OuK;eNA.API_BACKWARDS_COMPATIBILITY_VERSION=1});var wkA=h((YkA)=>{Object.defineProperty(YkA,"__esModule",{value:!0});YkA.LogsAPI=void 0;var wy=qkA(),MuK=co1(),KkA=lo1();class ro1{constructor(){this._proxyLoggerProvider=new KkA.ProxyLoggerProvider}static getInstance(){if(!this._instance)this._instance=new ro1;return this._instance}setGlobalLoggerProvider(A){if(wy._global[wy.GLOBAL_LOGS_API_KEY])return this.getLoggerProvider();return wy._global[wy.GLOBAL_LOGS_API_KEY]=(0,wy.makeGetter)(wy.API_BACKWARDS_COMPATIBILITY_VERSION,A,MuK.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider._setDelegate(A),A}getLoggerProvider(){var A,q;return(q=(A=wy._global[wy.GLOBAL_LOGS_API_KEY])===null||A===void 0?void 0:A.call(wy._global,wy.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&q!==void 0?q:this._proxyLoggerProvider}getLogger(A,q,K){return this.getLoggerProvider().getLogger(A,q,K)}disable(){delete wy._global[wy.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new KkA.ProxyLoggerProvider}}YkA.LogsAPI=ro1});var oo1=h((AJ6)=>{Object.defineProperty(AJ6,"__esModule",{value:!0});AJ6.logs=AJ6.ProxyLoggerProvider=AJ6.NoopLogger=AJ6.NOOP_LOGGER=AJ6.SeverityNumber=void 0;var DuK=mNA();Object.defineProperty(AJ6,"SeverityNumber",{enumerable:!0,get:function(){return DuK.SeverityNumber}});var _kA=k41();Object.defineProperty(AJ6,"NOOP_LOGGER",{enumerable:!0,get:function(){return _kA.NOOP_LOGGER}});Object.defineProperty(AJ6,"NoopLogger",{enumerable:!0,get:function(){return _kA.NoopLogger}});var XuK=lo1();Object.defineProperty(AJ6,"ProxyLoggerProvider",{enumerable:!0,get:function(){return XuK.ProxyLoggerProvider}});var PuK=wkA();AJ6.logs=PuK.LogsAPI.getInstance()});var $h6=h((OkA)=>{Object.defineProperty(OkA,"__esModule",{value:!0});OkA.isTracingSuppressed=OkA.unsuppressTracing=OkA.suppressTracing=void 0;var WuK=gq(),ao1=(0,WuK.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function GuK(A){return A.setValue(ao1,!0)}OkA.suppressTracing=GuK;function ZuK(A){return A.deleteValue(ao1)}OkA.unsuppressTracing=ZuK;function fuK(A){return A.getValue(ao1)===!0}OkA.isTracingSuppressed=fuK});var so1=h((jkA)=>{Object.defineProperty(jkA,"__esModule",{value:!0});jkA.BAGGAGE_MAX_TOTAL_LENGTH=jkA.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=jkA.BAGGAGE_MAX_NAME_VALUE_PAIRS=jkA.BAGGAGE_HEADER=jkA.BAGGAGE_ITEMS_SEPARATOR=jkA.BAGGAGE_PROPERTIES_SEPARATOR=jkA.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;jkA.BAGGAGE_KEY_PAIR_SEPARATOR="=";jkA.BAGGAGE_PROPERTIES_SEPARATOR=";";jkA.BAGGAGE_ITEMS_SEPARATOR=",";jkA.BAGGAGE_HEADER="baggage";jkA.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;jkA.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;jkA.BAGGAGE_MAX_TOTAL_LENGTH=8192});var to1=h((DkA)=>{Object.defineProperty(DkA,"__esModule",{value:!0});DkA.parseKeyPairsIntoRecord=DkA.parsePairKeyValue=DkA.getKeyPairs=DkA.serializeKeyPairs=void 0;var RuK=gq(),e46=so1();function SuK(A){return A.reduce((q,K)=>{let Y=`${q}${q!==""?e46.BAGGAGE_ITEMS_SEPARATOR:""}${K}`;return Y.length>e46.BAGGAGE_MAX_TOTAL_LENGTH?q:Y},"")}DkA.serializeKeyPairs=SuK;function huK(A){return A.getAllEntries().map(([q,K])=>{let Y=`${encodeURIComponent(q)}=${encodeURIComponent(K.value)}`;if(K.metadata!==void 0)Y+=e46.BAGGAGE_PROPERTIES_SEPARATOR+K.metadata.toString();return Y})}DkA.getKeyPairs=huK;function MkA(A){let q=A.split(e46.BAGGAGE_PROPERTIES_SEPARATOR);if(q.length<=0)return;let K=q.shift();if(!K)return;let Y=K.indexOf(e46.BAGGAGE_KEY_PAIR_SEPARATOR);if(Y<=0)return;let z=decodeURIComponent(K.substring(0,Y).trim()),w=decodeURIComponent(K.substring(Y+1).trim()),_;if(q.length>0)_=(0,RuK.baggageEntryMetadataFromString)(q.join(e46.BAGGAGE_PROPERTIES_SEPARATOR));return{key:z,value:w,metadata:_}}DkA.parsePairKeyValue=MkA;function CuK(A){let q={};if(typeof A==="string"&&A.length>0)A.split(e46.BAGGAGE_ITEMS_SEPARATOR).forEach((K)=>{let Y=MkA(K);if(Y!==void 0&&Y.value.length>0)q[Y.key]=Y.value});return q}DkA.parseKeyPairsIntoRecord=CuK});var ZkA=h((WkA)=>{Object.defineProperty(WkA,"__esModule",{value:!0});WkA.W3CBaggagePropagator=void 0;var eo1=gq(),uuK=$h6(),Aq6=so1(),Aa1=to1();class PkA{inject(A,q,K){let Y=eo1.propagation.getBaggage(A);if(!Y||(0,uuK.isTracingSuppressed)(A))return;let z=(0,Aa1.getKeyPairs)(Y).filter((_)=>{return _.length<=Aq6.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS}).slice(0,Aq6.BAGGAGE_MAX_NAME_VALUE_PAIRS),w=(0,Aa1.serializeKeyPairs)(z);if(w.length>0)K.set(q,Aq6.BAGGAGE_HEADER,w)}extract(A,q,K){let Y=K.get(q,Aq6.BAGGAGE_HEADER),z=Array.isArray(Y)?Y.join(Aq6.BAGGAGE_ITEMS_SEPARATOR):Y;if(!z)return A;let w={};if(z.length===0)return A;if(z.split(Aq6.BAGGAGE_ITEMS_SEPARATOR).forEach(($)=>{let O=(0,Aa1.parsePairKeyValue)($);if(O){let H={value:O.value};if(O.metadata)H.metadata=O.metadata;w[O.key]=H}}),Object.entries(w).length===0)return A;return eo1.propagation.setBaggage(A,eo1.propagation.createBaggage(w))}fields(){return[Aq6.BAGGAGE_HEADER]}}WkA.W3CBaggagePropagator=PkA});var VkA=h((TkA)=>{Object.defineProperty(TkA,"__esModule",{value:!0});TkA.AnchoredClock=void 0;class fkA{_monotonicClock;_epochMillis;_performanceMillis;constructor(A,q){this._monotonicClock=q,this._epochMillis=A.now(),this._performanceMillis=q.now()}now(){let A=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+A}}TkA.AnchoredClock=fkA});var SkA=h((ykA)=>{Object.defineProperty(ykA,"__esModule",{value:!0});ykA.isAttributeValue=ykA.isAttributeKey=ykA.sanitizeAttributes=void 0;var NkA=gq();function muK(A){let q={};if(typeof A!=="object"||A==null)return q;for(let K in A){if(!Object.prototype.hasOwnProperty.call(A,K))continue;if(!kkA(K)){NkA.diag.warn(`Invalid attribute key: ${K}`);continue}let Y=A[K];if(!EkA(Y)){NkA.diag.warn(`Invalid attribute value set for key: ${K}`);continue}if(Array.isArray(Y))q[K]=Y.slice();else q[K]=Y}return q}ykA.sanitizeAttributes=muK;function kkA(A){return typeof A==="string"&&A!==""}ykA.isAttributeKey=kkA;function EkA(A){if(A==null)return!0;if(Array.isArray(A))return BuK(A);return LkA(typeof A)}ykA.isAttributeValue=EkA;function BuK(A){let q;for(let K of A){if(K==null)continue;let Y=typeof K;if(Y===q)continue;if(!q){if(LkA(Y)){q=Y;continue}return!1}return!1}return!0}function LkA(A){switch(A){case"number":case"boolean":case"string":return!0}return!1}});var qa1=h((hkA)=>{Object.defineProperty(hkA,"__esModule",{value:!0});hkA.loggingErrorHandler=void 0;var FuK=gq();function QuK(){return(A)=>{FuK.diag.error(UuK(A))}}hkA.loggingErrorHandler=QuK;function UuK(A){if(typeof A==="string")return A;else return JSON.stringify(duK(A))}function duK(A){let q={},K=A;while(K!==null)Object.getOwnPropertyNames(K).forEach((Y)=>{if(q[Y])return;let z=K[Y];if(z)q[Y]=String(z)}),K=Object.getPrototypeOf(K);return q}});var ukA=h((xkA)=>{Object.defineProperty(xkA,"__esModule",{value:!0});xkA.globalErrorHandler=xkA.setGlobalErrorHandler=void 0;var cuK=qa1(),IkA=(0,cuK.loggingErrorHandler)();function luK(A){IkA=A}xkA.setGlobalErrorHandler=luK;function iuK(A){try{IkA(A)}catch{}}xkA.globalErrorHandler=iuK});var QkA=h((pkA)=>{Object.defineProperty(pkA,"__esModule",{value:!0});pkA.getStringListFromEnv=pkA.getBooleanFromEnv=pkA.getStringFromEnv=pkA.getNumberFromEnv=void 0;var mkA=gq(),BkA=u6("util");function ruK(A){let q=process.env[A];if(q==null||q.trim()==="")return;let K=Number(q);if(isNaN(K)){mkA.diag.warn(`Unknown value ${(0,BkA.inspect)(q)} for ${A}, expected a number, using defaults`);return}return K}pkA.getNumberFromEnv=ruK;function gkA(A){let q=process.env[A];if(q==null||q.trim()==="")return;return q}pkA.getStringFromEnv=gkA;function ouK(A){let q=process.env[A]?.trim().toLowerCase();if(q==null||q==="")return!1;if(q==="true")return!0;else if(q==="false")return!1;else return mkA.diag.warn(`Unknown value ${(0,BkA.inspect)(q)} for ${A}, expected 'true' or 'false', falling back to 'false' (default)`),!1}pkA.getBooleanFromEnv=ouK;function auK(A){return gkA(A)?.split(",").map((q)=>q.trim()).filter((q)=>q!=="")}pkA.getStringListFromEnv=auK});var ckA=h((UkA)=>{Object.defineProperty(UkA,"__esModule",{value:!0});UkA._globalThis=void 0;UkA._globalThis=typeof globalThis==="object"?globalThis:global});var nkA=h((lkA)=>{Object.defineProperty(lkA,"__esModule",{value:!0});lkA.otperformance=void 0;var AmK=u6("perf_hooks");lkA.otperformance=AmK.performance});var akA=h((rkA)=>{Object.defineProperty(rkA,"__esModule",{value:!0});rkA.VERSION=void 0;rkA.VERSION="2.2.0"});var Ka1=h((skA)=>{Object.defineProperty(skA,"__esModule",{value:!0});skA.createConstMap=void 0;function qmK(A){let q={},K=A.length;for(let Y=0;Y<K;Y++){let z=A[Y];if(z)q[String(z).toUpperCase().replace(/[-.]/g,"_")]=z}return q}skA.createConstMap=qmK});var oSA=h((USA)=>{Object.defineProperty(USA,"__esModule",{value:!0});USA.SEMATTRS_NET_HOST_CARRIER_ICC=USA.SEMATTRS_NET_HOST_CARRIER_MNC=USA.SEMATTRS_NET_HOST_CARRIER_MCC=USA.SEMATTRS_NET_HOST_CARRIER_NAME=USA.SEMATTRS_NET_HOST_CONNECTION_SUBTYPE=USA.SEMATTRS_NET_HOST_CONNECTION_TYPE=USA.SEMATTRS_NET_HOST_NAME=USA.SEMATTRS_NET_HOST_PORT=USA.SEMATTRS_NET_HOST_IP=USA.SEMATTRS_NET_PEER_NAME=USA.SEMATTRS_NET_PEER_PORT=USA.SEMATTRS_NET_PEER_IP=USA.SEMATTRS_NET_TRANSPORT=USA.SEMATTRS_FAAS_INVOKED_REGION=USA.SEMATTRS_FAAS_INVOKED_PROVIDER=USA.SEMATTRS_FAAS_INVOKED_NAME=USA.SEMATTRS_FAAS_COLDSTART=USA.SEMATTRS_FAAS_CRON=USA.SEMATTRS_FAAS_TIME=USA.SEMATTRS_FAAS_DOCUMENT_NAME=USA.SEMATTRS_FAAS_DOCUMENT_TIME=USA.SEMATTRS_FAAS_DOCUMENT_OPERATION=USA.SEMATTRS_FAAS_DOCUMENT_COLLECTION=USA.SEMATTRS_FAAS_EXECUTION=USA.SEMATTRS_FAAS_TRIGGER=USA.SEMATTRS_EXCEPTION_ESCAPED=USA.SEMATTRS_EXCEPTION_STACKTRACE=USA.SEMATTRS_EXCEPTION_MESSAGE=USA.SEMATTRS_EXCEPTION_TYPE=USA.SEMATTRS_DB_SQL_TABLE=USA.SEMATTRS_DB_MONGODB_COLLECTION=USA.SEMATTRS_DB_REDIS_DATABASE_INDEX=USA.SEMATTRS_DB_HBASE_NAMESPACE=USA.SEMATTRS_DB_CASSANDRA_COORDINATOR_DC=USA.SEMATTRS_DB_CASSANDRA_COORDINATOR_ID=USA.SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT=USA.SEMATTRS_DB_CASSANDRA_IDEMPOTENCE=USA.SEMATTRS_DB_CASSANDRA_TABLE=USA.SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL=USA.SEMATTRS_DB_CASSANDRA_PAGE_SIZE=USA.SEMATTRS_DB_CASSANDRA_KEYSPACE=USA.SEMATTRS_DB_MSSQL_INSTANCE_NAME=USA.SEMATTRS_DB_OPERATION=USA.SEMATTRS_DB_STATEMENT=USA.SEMATTRS_DB_NAME=USA.SEMATTRS_DB_JDBC_DRIVER_CLASSNAME=USA.SEMATTRS_DB_USER=USA.SEMATTRS_DB_CONNECTION_STRING=USA.SEMATTRS_DB_SYSTEM=USA.SEMATTRS_AWS_LAMBDA_INVOKED_ARN=void 0;USA.SEMATTRS_MESSAGING_DESTINATION_KIND=USA.SEMATTRS_MESSAGING_DESTINATION=USA.SEMATTRS_MESSAGING_SYSTEM=USA.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES=USA.SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS=USA.SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT=USA.SEMATTRS_AWS_DYNAMODB_COUNT=USA.SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS=USA.SEMATTRS_AWS_DYNAMODB_SEGMENT=USA.SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD=USA.SEMATTRS_AWS_DYNAMODB_TABLE_COUNT=USA.SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE=USA.SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES=USA.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES=USA.SEMATTRS_AWS_DYNAMODB_SELECT=USA.SEMATTRS_AWS_DYNAMODB_INDEX_NAME=USA.SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET=USA.SEMATTRS_AWS_DYNAMODB_LIMIT=USA.SEMATTRS_AWS_DYNAMODB_PROJECTION=USA.SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ=USA.SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY=USA.SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY=USA.SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS=USA.SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY=USA.SEMATTRS_AWS_DYNAMODB_TABLE_NAMES=USA.SEMATTRS_HTTP_CLIENT_IP=USA.SEMATTRS_HTTP_ROUTE=USA.SEMATTRS_HTTP_SERVER_NAME=USA.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED=USA.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH=USA.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=USA.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH=USA.SEMATTRS_HTTP_USER_AGENT=USA.SEMATTRS_HTTP_FLAVOR=USA.SEMATTRS_HTTP_STATUS_CODE=USA.SEMATTRS_HTTP_SCHEME=USA.SEMATTRS_HTTP_HOST=USA.SEMATTRS_HTTP_TARGET=USA.SEMATTRS_HTTP_URL=USA.SEMATTRS_HTTP_METHOD=USA.SEMATTRS_CODE_LINENO=USA.SEMATTRS_CODE_FILEPATH=USA.SEMATTRS_CODE_NAMESPACE=USA.SEMATTRS_CODE_FUNCTION=USA.SEMATTRS_THREAD_NAME=USA.SEMATTRS_THREAD_ID=USA.SEMATTRS_ENDUSER_SCOPE=USA.SEMATTRS_ENDUSER_ROLE=USA.SEMATTRS_ENDUSER_ID=USA.SEMATTRS_PEER_SERVICE=void 0;USA.DBSYSTEMVALUES_FILEMAKER=USA.DBSYSTEMVALUES_DERBY=USA.DBSYSTEMVALUES_FIREBIRD=USA.DBSYSTEMVALUES_ADABAS=USA.DBSYSTEMVALUES_CACHE=USA.DBSYSTEMVALUES_EDB=USA.DBSYSTEMVALUES_FIRSTSQL=USA.DBSYSTEMVALUES_INGRES=USA.DBSYSTEMVALUES_HANADB=USA.DBSYSTEMVALUES_MAXDB=USA.DBSYSTEMVALUES_PROGRESS=USA.DBSYSTEMVALUES_HSQLDB=USA.DBSYSTEMVALUES_CLOUDSCAPE=USA.DBSYSTEMVALUES_HIVE=USA.DBSYSTEMVALUES_REDSHIFT=USA.DBSYSTEMVALUES_POSTGRESQL=USA.DBSYSTEMVALUES_DB2=USA.DBSYSTEMVALUES_ORACLE=USA.DBSYSTEMVALUES_MYSQL=USA.DBSYSTEMVALUES_MSSQL=USA.DBSYSTEMVALUES_OTHER_SQL=USA.SemanticAttributes=USA.SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE=USA.SEMATTRS_MESSAGE_COMPRESSED_SIZE=USA.SEMATTRS_MESSAGE_ID=USA.SEMATTRS_MESSAGE_TYPE=USA.SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE=USA.SEMATTRS_RPC_JSONRPC_ERROR_CODE=USA.SEMATTRS_RPC_JSONRPC_REQUEST_ID=USA.SEMATTRS_RPC_JSONRPC_VERSION=USA.SEMATTRS_RPC_GRPC_STATUS_CODE=USA.SEMATTRS_RPC_METHOD=USA.SEMATTRS_RPC_SERVICE=USA.SEMATTRS_RPC_SYSTEM=USA.SEMATTRS_MESSAGING_KAFKA_TOMBSTONE=USA.SEMATTRS_MESSAGING_KAFKA_PARTITION=USA.SEMATTRS_MESSAGING_KAFKA_CLIENT_ID=USA.SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP=USA.SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY=USA.SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY=USA.SEMATTRS_MESSAGING_CONSUMER_ID=USA.SEMATTRS_MESSAGING_OPERATION=USA.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES=USA.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES=USA.SEMATTRS_MESSAGING_CONVERSATION_ID=USA.SEMATTRS_MESSAGING_MESSAGE_ID=USA.SEMATTRS_MESSAGING_URL=USA.SEMATTRS_MESSAGING_PROTOCOL_VERSION=USA.SEMATTRS_MESSAGING_PROTOCOL=USA.SEMATTRS_MESSAGING_TEMP_DESTINATION=void 0;USA.FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD=USA.FaasDocumentOperationValues=USA.FAASDOCUMENTOPERATIONVALUES_DELETE=USA.FAASDOCUMENTOPERATIONVALUES_EDIT=USA.FAASDOCUMENTOPERATIONVALUES_INSERT=USA.FaasTriggerValues=USA.FAASTRIGGERVALUES_OTHER=USA.FAASTRIGGERVALUES_TIMER=USA.FAASTRIGGERVALUES_PUBSUB=USA.FAASTRIGGERVALUES_HTTP=USA.FAASTRIGGERVALUES_DATASOURCE=USA.DbCassandraConsistencyLevelValues=USA.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL=USA.DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL=USA.DBCASSANDRACONSISTENCYLEVELVALUES_ANY=USA.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE=USA.DBCASSANDRACONSISTENCYLEVELVALUES_THREE=USA.DBCASSANDRACONSISTENCYLEVELVALUES_TWO=USA.DBCASSANDRACONSISTENCYLEVELVALUES_ONE=USA.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM=USA.DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM=USA.DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM=USA.DBCASSANDRACONSISTENCYLEVELVALUES_ALL=USA.DbSystemValues=USA.DBSYSTEMVALUES_COCKROACHDB=USA.DBSYSTEMVALUES_MEMCACHED=USA.DBSYSTEMVALUES_ELASTICSEARCH=USA.DBSYSTEMVALUES_GEODE=USA.DBSYSTEMVALUES_NEO4J=USA.DBSYSTEMVALUES_DYNAMODB=USA.DBSYSTEMVALUES_COSMOSDB=USA.DBSYSTEMVALUES_COUCHDB=USA.DBSYSTEMVALUES_COUCHBASE=USA.DBSYSTEMVALUES_REDIS=USA.DBSYSTEMVALUES_MONGODB=USA.DBSYSTEMVALUES_HBASE=USA.DBSYSTEMVALUES_CASSANDRA=USA.DBSYSTEMVALUES_COLDFUSION=USA.DBSYSTEMVALUES_H2=USA.DBSYSTEMVALUES_VERTICA=USA.DBSYSTEMVALUES_TERADATA=USA.DBSYSTEMVALUES_SYBASE=USA.DBSYSTEMVALUES_SQLITE=USA.DBSYSTEMVALUES_POINTBASE=USA.DBSYSTEMVALUES_PERVASIVE=USA.DBSYSTEMVALUES_NETEZZA=USA.DBSYSTEMVALUES_MARIADB=USA.DBSYSTEMVALUES_INTERBASE=USA.DBSYSTEMVALUES_INSTANTDB=USA.DBSYSTEMVALUES_INFORMIX=void 0;USA.MESSAGINGOPERATIONVALUES_RECEIVE=USA.MessagingDestinationKindValues=USA.MESSAGINGDESTINATIONKINDVALUES_TOPIC=USA.MESSAGINGDESTINATIONKINDVALUES_QUEUE=USA.HttpFlavorValues=USA.HTTPFLAVORVALUES_QUIC=USA.HTTPFLAVORVALUES_SPDY=USA.HTTPFLAVORVALUES_HTTP_2_0=USA.HTTPFLAVORVALUES_HTTP_1_1=USA.HTTPFLAVORVALUES_HTTP_1_0=USA.NetHostConnectionSubtypeValues=USA.NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA=USA.NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA=USA.NETHOSTCONNECTIONSUBTYPEVALUES_NR=USA.NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN=USA.NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA=USA.NETHOSTCONNECTIONSUBTYPEVALUES_GSM=USA.NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP=USA.NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD=USA.NETHOSTCONNECTIONSUBTYPEVALUES_LTE=USA.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B=USA.NETHOSTCONNECTIONSUBTYPEVALUES_IDEN=USA.NETHOSTCONNECTIONSUBTYPEVALUES_HSPA=USA.NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA=USA.NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA=USA.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT=USA.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A=USA.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0=USA.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA=USA.NETHOSTCONNECTIONSUBTYPEVALUES_UMTS=USA.NETHOSTCONNECTIONSUBTYPEVALUES_EDGE=USA.NETHOSTCONNECTIONSUBTYPEVALUES_GPRS=USA.NetHostConnectionTypeValues=USA.NETHOSTCONNECTIONTYPEVALUES_UNKNOWN=USA.NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE=USA.NETHOSTCONNECTIONTYPEVALUES_CELL=USA.NETHOSTCONNECTIONTYPEVALUES_WIRED=USA.NETHOSTCONNECTIONTYPEVALUES_WIFI=USA.NetTransportValues=USA.NETTRANSPORTVALUES_OTHER=USA.NETTRANSPORTVALUES_INPROC=USA.NETTRANSPORTVALUES_PIPE=USA.NETTRANSPORTVALUES_UNIX=USA.NETTRANSPORTVALUES_IP=USA.NETTRANSPORTVALUES_IP_UDP=USA.NETTRANSPORTVALUES_IP_TCP=USA.FaasInvokedProviderValues=USA.FAASINVOKEDPROVIDERVALUES_GCP=USA.FAASINVOKEDPROVIDERVALUES_AZURE=USA.FAASINVOKEDPROVIDERVALUES_AWS=void 0;USA.MessageTypeValues=USA.MESSAGETYPEVALUES_RECEIVED=USA.MESSAGETYPEVALUES_SENT=USA.RpcGrpcStatusCodeValues=USA.RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED=USA.RPCGRPCSTATUSCODEVALUES_DATA_LOSS=USA.RPCGRPCSTATUSCODEVALUES_UNAVAILABLE=USA.RPCGRPCSTATUSCODEVALUES_INTERNAL=USA.RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED=USA.RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE=USA.RPCGRPCSTATUSCODEVALUES_ABORTED=USA.RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION=USA.RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED=USA.RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED=USA.RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS=USA.RPCGRPCSTATUSCODEVALUES_NOT_FOUND=USA.RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED=USA.RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT=USA.RPCGRPCSTATUSCODEVALUES_UNKNOWN=USA.RPCGRPCSTATUSCODEVALUES_CANCELLED=USA.RPCGRPCSTATUSCODEVALUES_OK=USA.MessagingOperationValues=USA.MESSAGINGOPERATIONVALUES_PROCESS=void 0;var _y=Ka1(),ekA="aws.lambda.invoked_arn",AEA="db.system",qEA="db.connection_string",KEA="db.user",YEA="db.jdbc.driver_classname",zEA="db.name",wEA="db.statement",_EA="db.operation",$EA="db.mssql.instance_name",OEA="db.cassandra.keyspace",HEA="db.cassandra.page_size",jEA="db.cassandra.consistency_level",JEA="db.cassandra.table",MEA="db.cassandra.idempotence",DEA="db.cassandra.speculative_execution_count",XEA="db.cassandra.coordinator.id",PEA="db.cassandra.coordinator.dc",WEA="db.hbase.namespace",GEA="db.redis.database_index",ZEA="db.mongodb.collection",fEA="db.sql.table",TEA="exception.type",vEA="exception.message",VEA="exception.stacktrace",NEA="exception.escaped",kEA="faas.trigger",EEA="faas.execution",LEA="faas.document.collection",yEA="faas.document.operation",REA="faas.document.time",SEA="faas.document.name",hEA="faas.time",CEA="faas.cron",IEA="faas.coldstart",xEA="faas.invoked_name",bEA="faas.invoked_provider",uEA="faas.invoked_region",mEA="net.transport",BEA="net.peer.ip",gEA="net.peer.port",pEA="net.peer.name",FEA="net.host.ip",QEA="net.host.port",UEA="net.host.name",dEA="net.host.connection.type",cEA="net.host.connection.subtype",lEA="net.host.carrier.name",iEA="net.host.carrier.mcc",nEA="net.host.carrier.mnc",rEA="net.host.carrier.icc",oEA="peer.service",aEA="enduser.id",sEA="enduser.role",tEA="enduser.scope",eEA="thread.id",ALA="thread.name",qLA="code.function",KLA="code.namespace",YLA="code.filepath",zLA="code.lineno",wLA="http.method",_LA="http.url",$LA="http.target",OLA="http.host",HLA="http.scheme",jLA="http.status_code",JLA="http.flavor",MLA="http.user_agent",DLA="http.request_content_length",XLA="http.request_content_length_uncompressed",PLA="http.response_content_length",WLA="http.response_content_length_uncompressed",GLA="http.server_name",ZLA="http.route",fLA="http.client_ip",TLA="aws.dynamodb.table_names",vLA="aws.dynamodb.consumed_capacity",VLA="aws.dynamodb.item_collection_metrics",NLA="aws.dynamodb.provisioned_read_capacity",kLA="aws.dynamodb.provisioned_write_capacity",ELA="aws.dynamodb.consistent_read",LLA="aws.dynamodb.projection",yLA="aws.dynamodb.limit",RLA="aws.dynamodb.attributes_to_get",SLA="aws.dynamodb.index_name",hLA="aws.dynamodb.select",CLA="aws.dynamodb.global_secondary_indexes",ILA="aws.dynamodb.local_secondary_indexes",xLA="aws.dynamodb.exclusive_start_table",bLA="aws.dynamodb.table_count",uLA="aws.dynamodb.scan_forward",mLA="aws.dynamodb.segment",BLA="aws.dynamodb.total_segments",gLA="aws.dynamodb.count",pLA="aws.dynamodb.scanned_count",FLA="aws.dynamodb.attribute_definitions",QLA="aws.dynamodb.global_secondary_index_updates",ULA="messaging.system",dLA="messaging.destination",cLA="messaging.destination_kind",lLA="messaging.temp_destination",iLA="messaging.protocol",nLA="messaging.protocol_version",rLA="messaging.url",oLA="messaging.message_id",aLA="messaging.conversation_id",sLA="messaging.message_payload_size_bytes",tLA="messaging.message_payload_compressed_size_bytes",eLA="messaging.operation",AyA="messaging.consumer_id",qyA="messaging.rabbitmq.routing_key",KyA="messaging.kafka.message_key",YyA="messaging.kafka.consumer_group",zyA="messaging.kafka.client_id",wyA="messaging.kafka.partition",_yA="messaging.kafka.tombstone",$yA="rpc.system",OyA="rpc.service",HyA="rpc.method",jyA="rpc.grpc.status_code",JyA="rpc.jsonrpc.version",MyA="rpc.jsonrpc.request_id",DyA="rpc.jsonrpc.error_code",XyA="rpc.jsonrpc.error_message",PyA="message.type",WyA="message.id",GyA="message.compressed_size",ZyA="message.uncompressed_size";USA.SEMATTRS_AWS_LAMBDA_INVOKED_ARN=ekA;USA.SEMATTRS_DB_SYSTEM=AEA;USA.SEMATTRS_DB_CONNECTION_STRING=qEA;USA.SEMATTRS_DB_USER=KEA;USA.SEMATTRS_DB_JDBC_DRIVER_CLASSNAME=YEA;USA.SEMATTRS_DB_NAME=zEA;USA.SEMATTRS_DB_STATEMENT=wEA;USA.SEMATTRS_DB_OPERATION=_EA;USA.SEMATTRS_DB_MSSQL_INSTANCE_NAME=$EA;USA.SEMATTRS_DB_CASSANDRA_KEYSPACE=OEA;USA.SEMATTRS_DB_CASSANDRA_PAGE_SIZE=HEA;USA.SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL=jEA;USA.SEMATTRS_DB_CASSANDRA_TABLE=JEA;USA.SEMATTRS_DB_CASSANDRA_IDEMPOTENCE=MEA;USA.SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT=DEA;USA.SEMATTRS_DB_CASSANDRA_COORDINATOR_ID=XEA;USA.SEMATTRS_DB_CASSANDRA_COORDINATOR_DC=PEA;USA.SEMATTRS_DB_HBASE_NAMESPACE=WEA;USA.SEMATTRS_DB_REDIS_DATABASE_INDEX=GEA;USA.SEMATTRS_DB_MONGODB_COLLECTION=ZEA;USA.SEMATTRS_DB_SQL_TABLE=fEA;USA.SEMATTRS_EXCEPTION_TYPE=TEA;USA.SEMATTRS_EXCEPTION_MESSAGE=vEA;USA.SEMATTRS_EXCEPTION_STACKTRACE=VEA;USA.SEMATTRS_EXCEPTION_ESCAPED=NEA;USA.SEMATTRS_FAAS_TRIGGER=kEA;USA.SEMATTRS_FAAS_EXECUTION=EEA;USA.SEMATTRS_FAAS_DOCUMENT_COLLECTION=LEA;USA.SEMATTRS_FAAS_DOCUMENT_OPERATION=yEA;USA.SEMATTRS_FAAS_DOCUMENT_TIME=REA;USA.SEMATTRS_FAAS_DOCUMENT_NAME=SEA;USA.SEMATTRS_FAAS_TIME=hEA;USA.SEMATTRS_FAAS_CRON=CEA;USA.SEMATTRS_FAAS_COLDSTART=IEA;USA.SEMATTRS_FAAS_INVOKED_NAME=xEA;USA.SEMATTRS_FAAS_INVOKED_PROVIDER=bEA;USA.SEMATTRS_FAAS_INVOKED_REGION=uEA;USA.SEMATTRS_NET_TRANSPORT=mEA;USA.SEMATTRS_NET_PEER_IP=BEA;USA.SEMATTRS_NET_PEER_PORT=gEA;USA.SEMATTRS_NET_PEER_NAME=pEA;USA.SEMATTRS_NET_HOST_IP=FEA;USA.SEMATTRS_NET_HOST_PORT=QEA;USA.SEMATTRS_NET_HOST_NAME=UEA;USA.SEMATTRS_NET_HOST_CONNECTION_TYPE=dEA;USA.SEMATTRS_NET_HOST_CONNECTION_SUBTYPE=cEA;USA.SEMATTRS_NET_HOST_CARRIER_NAME=lEA;USA.SEMATTRS_NET_HOST_CARRIER_MCC=iEA;USA.SEMATTRS_NET_HOST_CARRIER_MNC=nEA;USA.SEMATTRS_NET_HOST_CARRIER_ICC=rEA;USA.SEMATTRS_PEER_SERVICE=oEA;USA.SEMATTRS_ENDUSER_ID=aEA;USA.SEMATTRS_ENDUSER_ROLE=sEA;USA.SEMATTRS_ENDUSER_SCOPE=tEA;USA.SEMATTRS_THREAD_ID=eEA;USA.SEMATTRS_THREAD_NAME=ALA;USA.SEMATTRS_CODE_FUNCTION=qLA;USA.SEMATTRS_CODE_NAMESPACE=KLA;USA.SEMATTRS_CODE_FILEPATH=YLA;USA.SEMATTRS_CODE_LINENO=zLA;USA.SEMATTRS_HTTP_METHOD=wLA;USA.SEMATTRS_HTTP_URL=_LA;USA.SEMATTRS_HTTP_TARGET=$LA;USA.SEMATTRS_HTTP_HOST=OLA;USA.SEMATTRS_HTTP_SCHEME=HLA;USA.SEMATTRS_HTTP_STATUS_CODE=jLA;USA.SEMATTRS_HTTP_FLAVOR=JLA;USA.SEMATTRS_HTTP_USER_AGENT=MLA;USA.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH=DLA;USA.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=XLA;USA.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH=PLA;USA.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED=WLA;USA.SEMATTRS_HTTP_SERVER_NAME=GLA;USA.SEMATTRS_HTTP_ROUTE=ZLA;USA.SEMATTRS_HTTP_CLIENT_IP=fLA;USA.SEMATTRS_AWS_DYNAMODB_TABLE_NAMES=TLA;USA.SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY=vLA;USA.SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS=VLA;USA.SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY=NLA;USA.SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY=kLA;USA.SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ=ELA;USA.SEMATTRS_AWS_DYNAMODB_PROJECTION=LLA;USA.SEMATTRS_AWS_DYNAMODB_LIMIT=yLA;USA.SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET=RLA;USA.SEMATTRS_AWS_DYNAMODB_INDEX_NAME=SLA;USA.SEMATTRS_AWS_DYNAMODB_SELECT=hLA;USA.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES=CLA;USA.SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES=ILA;USA.SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE=xLA;USA.SEMATTRS_AWS_DYNAMODB_TABLE_COUNT=bLA;USA.SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD=uLA;USA.SEMATTRS_AWS_DYNAMODB_SEGMENT=mLA;USA.SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS=BLA;USA.SEMATTRS_AWS_DYNAMODB_COUNT=gLA;USA.SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT=pLA;USA.SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS=FLA;USA.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES=QLA;USA.SEMATTRS_MESSAGING_SYSTEM=ULA;USA.SEMATTRS_MESSAGING_DESTINATION=dLA;USA.SEMATTRS_MESSAGING_DESTINATION_KIND=cLA;USA.SEMATTRS_MESSAGING_TEMP_DESTINATION=lLA;USA.SEMATTRS_MESSAGING_PROTOCOL=iLA;USA.SEMATTRS_MESSAGING_PROTOCOL_VERSION=nLA;USA.SEMATTRS_MESSAGING_URL=rLA;USA.SEMATTRS_MESSAGING_MESSAGE_ID=oLA;USA.SEMATTRS_MESSAGING_CONVERSATION_ID=aLA;USA.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES=sLA;USA.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES=tLA;USA.SEMATTRS_MESSAGING_OPERATION=eLA;USA.SEMATTRS_MESSAGING_CONSUMER_ID=AyA;USA.SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY=qyA;USA.SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY=KyA;USA.SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP=YyA;USA.SEMATTRS_MESSAGING_KAFKA_CLIENT_ID=zyA;USA.SEMATTRS_MESSAGING_KAFKA_PARTITION=wyA;USA.SEMATTRS_MESSAGING_KAFKA_TOMBSTONE=_yA;USA.SEMATTRS_RPC_SYSTEM=$yA;USA.SEMATTRS_RPC_SERVICE=OyA;USA.SEMATTRS_RPC_METHOD=HyA;USA.SEMATTRS_RPC_GRPC_STATUS_CODE=jyA;USA.SEMATTRS_RPC_JSONRPC_VERSION=JyA;USA.SEMATTRS_RPC_JSONRPC_REQUEST_ID=MyA;USA.SEMATTRS_RPC_JSONRPC_ERROR_CODE=DyA;USA.SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE=XyA;USA.SEMATTRS_MESSAGE_TYPE=PyA;USA.SEMATTRS_MESSAGE_ID=WyA;USA.SEMATTRS_MESSAGE_COMPRESSED_SIZE=GyA;USA.SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE=ZyA;USA.SemanticAttributes=(0,_y.createConstMap)([ekA,AEA,qEA,KEA,YEA,zEA,wEA,_EA,$EA,OEA,HEA,jEA,JEA,MEA,DEA,XEA,PEA,WEA,GEA,ZEA,fEA,TEA,vEA,VEA,NEA,kEA,EEA,LEA,yEA,REA,SEA,hEA,CEA,IEA,xEA,bEA,uEA,mEA,BEA,gEA,pEA,FEA,QEA,UEA,dEA,cEA,lEA,iEA,nEA,rEA,oEA,aEA,sEA,tEA,eEA,ALA,qLA,KLA,YLA,zLA,wLA,_LA,$LA,OLA,HLA,jLA,JLA,MLA,DLA,XLA,PLA,WLA,GLA,ZLA,fLA,TLA,vLA,VLA,NLA,kLA,ELA,LLA,yLA,RLA,SLA,hLA,CLA,ILA,xLA,bLA,uLA,mLA,BLA,gLA,pLA,FLA,QLA,ULA,dLA,cLA,lLA,iLA,nLA,rLA,oLA,aLA,sLA,tLA,eLA,AyA,qyA,KyA,YyA,zyA,wyA,_yA,$yA,OyA,HyA,jyA,JyA,MyA,DyA,XyA,PyA,WyA,GyA,ZyA]);var fyA="other_sql",TyA="mssql",vyA="mysql",VyA="oracle",NyA="db2",kyA="postgresql",EyA="redshift",LyA="hive",yyA="cloudscape",RyA="hsqldb",SyA="progress",hyA="maxdb",CyA="hanadb",IyA="ingres",xyA="firstsql",byA="edb",uyA="cache",myA="adabas",ByA="firebird",gyA="derby",pyA="filemaker",FyA="informix",QyA="instantdb",UyA="interbase",dyA="mariadb",cyA="netezza",lyA="pervasive",iyA="pointbase",nyA="sqlite",ryA="sybase",oyA="teradata",ayA="vertica",syA="h2",tyA="coldfusion",eyA="cassandra",ARA="hbase",qRA="mongodb",KRA="redis",YRA="couchbase",zRA="couchdb",wRA="cosmosdb",_RA="dynamodb",$RA="neo4j",ORA="geode",HRA="elasticsearch",jRA="memcached",JRA="cockroachdb";USA.DBSYSTEMVALUES_OTHER_SQL=fyA;USA.DBSYSTEMVALUES_MSSQL=TyA;USA.DBSYSTEMVALUES_MYSQL=vyA;USA.DBSYSTEMVALUES_ORACLE=VyA;USA.DBSYSTEMVALUES_DB2=NyA;USA.DBSYSTEMVALUES_POSTGRESQL=kyA;USA.DBSYSTEMVALUES_REDSHIFT=EyA;USA.DBSYSTEMVALUES_HIVE=LyA;USA.DBSYSTEMVALUES_CLOUDSCAPE=yyA;USA.DBSYSTEMVALUES_HSQLDB=RyA;USA.DBSYSTEMVALUES_PROGRESS=SyA;USA.DBSYSTEMVALUES_MAXDB=hyA;USA.DBSYSTEMVALUES_HANADB=CyA;USA.DBSYSTEMVALUES_INGRES=IyA;USA.DBSYSTEMVALUES_FIRSTSQL=xyA;USA.DBSYSTEMVALUES_EDB=byA;USA.DBSYSTEMVALUES_CACHE=uyA;USA.DBSYSTEMVALUES_ADABAS=myA;USA.DBSYSTEMVALUES_FIREBIRD=ByA;USA.DBSYSTEMVALUES_DERBY=gyA;USA.DBSYSTEMVALUES_FILEMAKER=pyA;USA.DBSYSTEMVALUES_INFORMIX=FyA;USA.DBSYSTEMVALUES_INSTANTDB=QyA;USA.DBSYSTEMVALUES_INTERBASE=UyA;USA.DBSYSTEMVALUES_MARIADB=dyA;USA.DBSYSTEMVALUES_NETEZZA=cyA;USA.DBSYSTEMVALUES_PERVASIVE=lyA;USA.DBSYSTEMVALUES_POINTBASE=iyA;USA.DBSYSTEMVALUES_SQLITE=nyA;USA.DBSYSTEMVALUES_SYBASE=ryA;USA.DBSYSTEMVALUES_TERADATA=oyA;USA.DBSYSTEMVALUES_VERTICA=ayA;USA.DBSYSTEMVALUES_H2=syA;USA.DBSYSTEMVALUES_COLDFUSION=tyA;USA.DBSYSTEMVALUES_CASSANDRA=eyA;USA.DBSYSTEMVALUES_HBASE=ARA;USA.DBSYSTEMVALUES_MONGODB=qRA;USA.DBSYSTEMVALUES_REDIS=KRA;USA.DBSYSTEMVALUES_COUCHBASE=YRA;USA.DBSYSTEMVALUES_COUCHDB=zRA;USA.DBSYSTEMVALUES_COSMOSDB=wRA;USA.DBSYSTEMVALUES_DYNAMODB=_RA;USA.DBSYSTEMVALUES_NEO4J=$RA;USA.DBSYSTEMVALUES_GEODE=ORA;USA.DBSYSTEMVALUES_ELASTICSEARCH=HRA;USA.DBSYSTEMVALUES_MEMCACHED=jRA;USA.DBSYSTEMVALUES_COCKROACHDB=JRA;USA.DbSystemValues=(0,_y.createConstMap)([fyA,TyA,vyA,VyA,NyA,kyA,EyA,LyA,yyA,RyA,SyA,hyA,CyA,IyA,xyA,byA,uyA,myA,ByA,gyA,pyA,FyA,QyA,UyA,dyA,cyA,lyA,iyA,nyA,ryA,oyA,ayA,syA,tyA,eyA,ARA,qRA,KRA,YRA,zRA,wRA,_RA,$RA,ORA,HRA,jRA,JRA]);var MRA="all",DRA="each_quorum",XRA="quorum",PRA="local_quorum",WRA="one",GRA="two",ZRA="three",fRA="local_one",TRA="any",vRA="serial",VRA="local_serial";USA.DBCASSANDRACONSISTENCYLEVELVALUES_ALL=MRA;USA.DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM=DRA;USA.DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM=XRA;USA.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM=PRA;USA.DBCASSANDRACONSISTENCYLEVELVALUES_ONE=WRA;USA.DBCASSANDRACONSISTENCYLEVELVALUES_TWO=GRA;USA.DBCASSANDRACONSISTENCYLEVELVALUES_THREE=ZRA;USA.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE=fRA;USA.DBCASSANDRACONSISTENCYLEVELVALUES_ANY=TRA;USA.DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL=vRA;USA.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL=VRA;USA.DbCassandraConsistencyLevelValues=(0,_y.createConstMap)([MRA,DRA,XRA,PRA,WRA,GRA,ZRA,fRA,TRA,vRA,VRA]);var NRA="datasource",kRA="http",ERA="pubsub",LRA="timer",yRA="other";USA.FAASTRIGGERVALUES_DATASOURCE=NRA;USA.FAASTRIGGERVALUES_HTTP=kRA;USA.FAASTRIGGERVALUES_PUBSUB=ERA;USA.FAASTRIGGERVALUES_TIMER=LRA;USA.FAASTRIGGERVALUES_OTHER=yRA;USA.FaasTriggerValues=(0,_y.createConstMap)([NRA,kRA,ERA,LRA,yRA]);var RRA="insert",SRA="edit",hRA="delete";USA.FAASDOCUMENTOPERATIONVALUES_INSERT=RRA;USA.FAASDOCUMENTOPERATIONVALUES_EDIT=SRA;USA.FAASDOCUMENTOPERATIONVALUES_DELETE=hRA;USA.FaasDocumentOperationValues=(0,_y.createConstMap)([RRA,SRA,hRA]);var CRA="alibaba_cloud",IRA="aws",xRA="azure",bRA="gcp";USA.FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD=CRA;USA.FAASINVOKEDPROVIDERVALUES_AWS=IRA;USA.FAASINVOKEDPROVIDERVALUES_AZURE=xRA;USA.FAASINVOKEDPROVIDERVALUES_GCP=bRA;USA.FaasInvokedProviderValues=(0,_y.createConstMap)([CRA,IRA,xRA,bRA]);var uRA="ip_tcp",mRA="ip_udp",BRA="ip",gRA="unix",pRA="pipe",FRA="inproc",QRA="other";USA.NETTRANSPORTVALUES_IP_TCP=uRA;USA.NETTRANSPORTVALUES_IP_UDP=mRA;USA.NETTRANSPORTVALUES_IP=BRA;USA.NETTRANSPORTVALUES_UNIX=gRA;USA.NETTRANSPORTVALUES_PIPE=pRA;USA.NETTRANSPORTVALUES_INPROC=FRA;USA.NETTRANSPORTVALUES_OTHER=QRA;USA.NetTransportValues=(0,_y.createConstMap)([uRA,mRA,BRA,gRA,pRA,FRA,QRA]);var URA="wifi",dRA="wired",cRA="cell",lRA="unavailable",iRA="unknown";USA.NETHOSTCONNECTIONTYPEVALUES_WIFI=URA;USA.NETHOSTCONNECTIONTYPEVALUES_WIRED=dRA;USA.NETHOSTCONNECTIONTYPEVALUES_CELL=cRA;USA.NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE=lRA;USA.NETHOSTCONNECTIONTYPEVALUES_UNKNOWN=iRA;USA.NetHostConnectionTypeValues=(0,_y.createConstMap)([URA,dRA,cRA,lRA,iRA]);var nRA="gprs",rRA="edge",oRA="umts",aRA="cdma",sRA="evdo_0",tRA="evdo_a",eRA="cdma2000_1xrtt",ASA="hsdpa",qSA="hsupa",KSA="hspa",YSA="iden",zSA="evdo_b",wSA="lte",_SA="ehrpd",$SA="hspap",OSA="gsm",HSA="td_scdma",jSA="iwlan",JSA="nr",MSA="nrnsa",DSA="lte_ca";USA.NETHOSTCONNECTIONSUBTYPEVALUES_GPRS=nRA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_EDGE=rRA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_UMTS=oRA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA=aRA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0=sRA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A=tRA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT=eRA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA=ASA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA=qSA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_HSPA=KSA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_IDEN=YSA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B=zSA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_LTE=wSA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD=_SA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP=$SA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_GSM=OSA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA=HSA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN=jSA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_NR=JSA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA=MSA;USA.NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA=DSA;USA.NetHostConnectionSubtypeValues=(0,_y.createConstMap)([nRA,rRA,oRA,aRA,sRA,tRA,eRA,ASA,qSA,KSA,YSA,zSA,wSA,_SA,$SA,OSA,HSA,jSA,JSA,MSA,DSA]);var XSA="1.0",PSA="1.1",WSA="2.0",GSA="SPDY",ZSA="QUIC";USA.HTTPFLAVORVALUES_HTTP_1_0=XSA;USA.HTTPFLAVORVALUES_HTTP_1_1=PSA;USA.HTTPFLAVORVALUES_HTTP_2_0=WSA;USA.HTTPFLAVORVALUES_SPDY=GSA;USA.HTTPFLAVORVALUES_QUIC=ZSA;USA.HttpFlavorValues={HTTP_1_0:XSA,HTTP_1_1:PSA,HTTP_2_0:WSA,SPDY:GSA,QUIC:ZSA};var fSA="queue",TSA="topic";USA.MESSAGINGDESTINATIONKINDVALUES_QUEUE=fSA;USA.MESSAGINGDESTINATIONKINDVALUES_TOPIC=TSA;USA.MessagingDestinationKindValues=(0,_y.createConstMap)([fSA,TSA]);var vSA="receive",VSA="process";USA.MESSAGINGOPERATIONVALUES_RECEIVE=vSA;USA.MESSAGINGOPERATIONVALUES_PROCESS=VSA;USA.MessagingOperationValues=(0,_y.createConstMap)([vSA,VSA]);var NSA=0,kSA=1,ESA=2,LSA=3,ySA=4,RSA=5,SSA=6,hSA=7,CSA=8,ISA=9,xSA=10,bSA=11,uSA=12,mSA=13,BSA=14,gSA=15,pSA=16;USA.RPCGRPCSTATUSCODEVALUES_OK=NSA;USA.RPCGRPCSTATUSCODEVALUES_CANCELLED=kSA;USA.RPCGRPCSTATUSCODEVALUES_UNKNOWN=ESA;USA.RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT=LSA;USA.RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED=ySA;USA.RPCGRPCSTATUSCODEVALUES_NOT_FOUND=RSA;USA.RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS=SSA;USA.RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED=hSA;USA.RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED=CSA;USA.RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION=ISA;USA.RPCGRPCSTATUSCODEVALUES_ABORTED=xSA;USA.RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE=bSA;USA.RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED=uSA;USA.RPCGRPCSTATUSCODEVALUES_INTERNAL=mSA;USA.RPCGRPCSTATUSCODEVALUES_UNAVAILABLE=BSA;USA.RPCGRPCSTATUSCODEVALUES_DATA_LOSS=gSA;USA.RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED=pSA;USA.RpcGrpcStatusCodeValues={OK:NSA,CANCELLED:kSA,UNKNOWN:ESA,INVALID_ARGUMENT:LSA,DEADLINE_EXCEEDED:ySA,NOT_FOUND:RSA,ALREADY_EXISTS:SSA,PERMISSION_DENIED:hSA,RESOURCE_EXHAUSTED:CSA,FAILED_PRECONDITION:ISA,ABORTED:xSA,OUT_OF_RANGE:bSA,UNIMPLEMENTED:uSA,INTERNAL:mSA,UNAVAILABLE:BSA,DATA_LOSS:gSA,UNAUTHENTICATED:pSA};var FSA="SENT",QSA="RECEIVED";USA.MESSAGETYPEVALUES_SENT=FSA;USA.MESSAGETYPEVALUES_RECEIVED=QSA;USA.MessageTypeValues=(0,_y.createConstMap)([FSA,QSA])});var aSA=h((qq6)=>{var eFK=qq6&&qq6.__createBinding||(Object.create?function(A,q,K,Y){if(Y===void 0)Y=K;var z=Object.getOwnPropertyDescriptor(q,K);if(!z||("get"in z?!q.__esModule:z.writable||z.configurable))z={enumerable:!0,get:function(){return q[K]}};Object.defineProperty(A,Y,z)}:function(A,q,K,Y){if(Y===void 0)Y=K;A[Y]=q[K]}),AQK=qq6&&qq6.__exportStar||function(A,q){for(var K in A)if(K!=="default"&&!Object.prototype.hasOwnProperty.call(q,K))eFK(q,A,K)};Object.defineProperty(qq6,"__esModule",{value:!0});AQK(oSA(),qq6)});var EIA=h((vIA)=>{Object.defineProperty(vIA,"__esModule",{value:!0});vIA.SEMRESATTRS_K8S_STATEFULSET_NAME=vIA.SEMRESATTRS_K8S_STATEFULSET_UID=vIA.SEMRESATTRS_K8S_DEPLOYMENT_NAME=vIA.SEMRESATTRS_K8S_DEPLOYMENT_UID=vIA.SEMRESATTRS_K8S_REPLICASET_NAME=vIA.SEMRESATTRS_K8S_REPLICASET_UID=vIA.SEMRESATTRS_K8S_CONTAINER_NAME=vIA.SEMRESATTRS_K8S_POD_NAME=vIA.SEMRESATTRS_K8S_POD_UID=vIA.SEMRESATTRS_K8S_NAMESPACE_NAME=vIA.SEMRESATTRS_K8S_NODE_UID=vIA.SEMRESATTRS_K8S_NODE_NAME=vIA.SEMRESATTRS_K8S_CLUSTER_NAME=vIA.SEMRESATTRS_HOST_IMAGE_VERSION=vIA.SEMRESATTRS_HOST_IMAGE_ID=vIA.SEMRESATTRS_HOST_IMAGE_NAME=vIA.SEMRESATTRS_HOST_ARCH=vIA.SEMRESATTRS_HOST_TYPE=vIA.SEMRESATTRS_HOST_NAME=vIA.SEMRESATTRS_HOST_ID=vIA.SEMRESATTRS_FAAS_MAX_MEMORY=vIA.SEMRESATTRS_FAAS_INSTANCE=vIA.SEMRESATTRS_FAAS_VERSION=vIA.SEMRESATTRS_FAAS_ID=vIA.SEMRESATTRS_FAAS_NAME=vIA.SEMRESATTRS_DEVICE_MODEL_NAME=vIA.SEMRESATTRS_DEVICE_MODEL_IDENTIFIER=vIA.SEMRESATTRS_DEVICE_ID=vIA.SEMRESATTRS_DEPLOYMENT_ENVIRONMENT=vIA.SEMRESATTRS_CONTAINER_IMAGE_TAG=vIA.SEMRESATTRS_CONTAINER_IMAGE_NAME=vIA.SEMRESATTRS_CONTAINER_RUNTIME=vIA.SEMRESATTRS_CONTAINER_ID=vIA.SEMRESATTRS_CONTAINER_NAME=vIA.SEMRESATTRS_AWS_LOG_STREAM_ARNS=vIA.SEMRESATTRS_AWS_LOG_STREAM_NAMES=vIA.SEMRESATTRS_AWS_LOG_GROUP_ARNS=vIA.SEMRESATTRS_AWS_LOG_GROUP_NAMES=vIA.SEMRESATTRS_AWS_EKS_CLUSTER_ARN=vIA.SEMRESATTRS_AWS_ECS_TASK_REVISION=vIA.SEMRESATTRS_AWS_ECS_TASK_FAMILY=vIA.SEMRESATTRS_AWS_ECS_TASK_ARN=vIA.SEMRESATTRS_AWS_ECS_LAUNCHTYPE=vIA.SEMRESATTRS_AWS_ECS_CLUSTER_ARN=vIA.SEMRESATTRS_AWS_ECS_CONTAINER_ARN=vIA.SEMRESATTRS_CLOUD_PLATFORM=vIA.SEMRESATTRS_CLOUD_AVAILABILITY_ZONE=vIA.SEMRESATTRS_CLOUD_REGION=vIA.SEMRESATTRS_CLOUD_ACCOUNT_ID=vIA.SEMRESATTRS_CLOUD_PROVIDER=void 0;vIA.CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE=vIA.CLOUDPLATFORMVALUES_AZURE_APP_SERVICE=vIA.CLOUDPLATFORMVALUES_AZURE_FUNCTIONS=vIA.CLOUDPLATFORMVALUES_AZURE_AKS=vIA.CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES=vIA.CLOUDPLATFORMVALUES_AZURE_VM=vIA.CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK=vIA.CLOUDPLATFORMVALUES_AWS_LAMBDA=vIA.CLOUDPLATFORMVALUES_AWS_EKS=vIA.CLOUDPLATFORMVALUES_AWS_ECS=vIA.CLOUDPLATFORMVALUES_AWS_EC2=vIA.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC=vIA.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS=vIA.CloudProviderValues=vIA.CLOUDPROVIDERVALUES_GCP=vIA.CLOUDPROVIDERVALUES_AZURE=vIA.CLOUDPROVIDERVALUES_AWS=vIA.CLOUDPROVIDERVALUES_ALIBABA_CLOUD=vIA.SemanticResourceAttributes=vIA.SEMRESATTRS_WEBENGINE_DESCRIPTION=vIA.SEMRESATTRS_WEBENGINE_VERSION=vIA.SEMRESATTRS_WEBENGINE_NAME=vIA.SEMRESATTRS_TELEMETRY_AUTO_VERSION=vIA.SEMRESATTRS_TELEMETRY_SDK_VERSION=vIA.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE=vIA.SEMRESATTRS_TELEMETRY_SDK_NAME=vIA.SEMRESATTRS_SERVICE_VERSION=vIA.SEMRESATTRS_SERVICE_INSTANCE_ID=vIA.SEMRESATTRS_SERVICE_NAMESPACE=vIA.SEMRESATTRS_SERVICE_NAME=vIA.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION=vIA.SEMRESATTRS_PROCESS_RUNTIME_VERSION=vIA.SEMRESATTRS_PROCESS_RUNTIME_NAME=vIA.SEMRESATTRS_PROCESS_OWNER=vIA.SEMRESATTRS_PROCESS_COMMAND_ARGS=vIA.SEMRESATTRS_PROCESS_COMMAND_LINE=vIA.SEMRESATTRS_PROCESS_COMMAND=vIA.SEMRESATTRS_PROCESS_EXECUTABLE_PATH=vIA.SEMRESATTRS_PROCESS_EXECUTABLE_NAME=vIA.SEMRESATTRS_PROCESS_PID=vIA.SEMRESATTRS_OS_VERSION=vIA.SEMRESATTRS_OS_NAME=vIA.SEMRESATTRS_OS_DESCRIPTION=vIA.SEMRESATTRS_OS_TYPE=vIA.SEMRESATTRS_K8S_CRONJOB_NAME=vIA.SEMRESATTRS_K8S_CRONJOB_UID=vIA.SEMRESATTRS_K8S_JOB_NAME=vIA.SEMRESATTRS_K8S_JOB_UID=vIA.SEMRESATTRS_K8S_DAEMONSET_NAME=vIA.SEMRESATTRS_K8S_DAEMONSET_UID=void 0;vIA.TelemetrySdkLanguageValues=vIA.TELEMETRYSDKLANGUAGEVALUES_WEBJS=vIA.TELEMETRYSDKLANGUAGEVALUES_RUBY=vIA.TELEMETRYSDKLANGUAGEVALUES_PYTHON=vIA.TELEMETRYSDKLANGUAGEVALUES_PHP=vIA.TELEMETRYSDKLANGUAGEVALUES_NODEJS=vIA.TELEMETRYSDKLANGUAGEVALUES_JAVA=vIA.TELEMETRYSDKLANGUAGEVALUES_GO=vIA.TELEMETRYSDKLANGUAGEVALUES_ERLANG=vIA.TELEMETRYSDKLANGUAGEVALUES_DOTNET=vIA.TELEMETRYSDKLANGUAGEVALUES_CPP=vIA.OsTypeValues=vIA.OSTYPEVALUES_Z_OS=vIA.OSTYPEVALUES_SOLARIS=vIA.OSTYPEVALUES_AIX=vIA.OSTYPEVALUES_HPUX=vIA.OSTYPEVALUES_DRAGONFLYBSD=vIA.OSTYPEVALUES_OPENBSD=vIA.OSTYPEVALUES_NETBSD=vIA.OSTYPEVALUES_FREEBSD=vIA.OSTYPEVALUES_DARWIN=vIA.OSTYPEVALUES_LINUX=vIA.OSTYPEVALUES_WINDOWS=vIA.HostArchValues=vIA.HOSTARCHVALUES_X86=vIA.HOSTARCHVALUES_PPC64=vIA.HOSTARCHVALUES_PPC32=vIA.HOSTARCHVALUES_IA64=vIA.HOSTARCHVALUES_ARM64=vIA.HOSTARCHVALUES_ARM32=vIA.HOSTARCHVALUES_AMD64=vIA.AwsEcsLaunchtypeValues=vIA.AWSECSLAUNCHTYPEVALUES_FARGATE=vIA.AWSECSLAUNCHTYPEVALUES_EC2=vIA.CloudPlatformValues=vIA.CLOUDPLATFORMVALUES_GCP_APP_ENGINE=vIA.CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS=vIA.CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE=vIA.CLOUDPLATFORMVALUES_GCP_CLOUD_RUN=void 0;var Kq6=Ka1(),sSA="cloud.provider",tSA="cloud.account.id",eSA="cloud.region",AhA="cloud.availability_zone",qhA="cloud.platform",KhA="aws.ecs.container.arn",YhA="aws.ecs.cluster.arn",zhA="aws.ecs.launchtype",whA="aws.ecs.task.arn",_hA="aws.ecs.task.family",$hA="aws.ecs.task.revision",OhA="aws.eks.cluster.arn",HhA="aws.log.group.names",jhA="aws.log.group.arns",JhA="aws.log.stream.names",MhA="aws.log.stream.arns",DhA="container.name",XhA="container.id",PhA="container.runtime",WhA="container.image.name",GhA="container.image.tag",ZhA="deployment.environment",fhA="device.id",ThA="device.model.identifier",vhA="device.model.name",VhA="faas.name",NhA="faas.id",khA="faas.version",EhA="faas.instance",LhA="faas.max_memory",yhA="host.id",RhA="host.name",ShA="host.type",hhA="host.arch",ChA="host.image.name",IhA="host.image.id",xhA="host.image.version",bhA="k8s.cluster.name",uhA="k8s.node.name",mhA="k8s.node.uid",BhA="k8s.namespace.name",ghA="k8s.pod.uid",phA="k8s.pod.name",FhA="k8s.container.name",QhA="k8s.replicaset.uid",UhA="k8s.replicaset.name",dhA="k8s.deployment.uid",chA="k8s.deployment.name",lhA="k8s.statefulset.uid",ihA="k8s.statefulset.name",nhA="k8s.daemonset.uid",rhA="k8s.daemonset.name",ohA="k8s.job.uid",ahA="k8s.job.name",shA="k8s.cronjob.uid",thA="k8s.cronjob.name",ehA="os.type",ACA="os.description",qCA="os.name",KCA="os.version",YCA="process.pid",zCA="process.executable.name",wCA="process.executable.path",_CA="process.command",$CA="process.command_line",OCA="process.command_args",HCA="process.owner",jCA="process.runtime.name",JCA="process.runtime.version",MCA="process.runtime.description",DCA="service.name",XCA="service.namespace",PCA="service.instance.id",WCA="service.version",GCA="telemetry.sdk.name",ZCA="telemetry.sdk.language",fCA="telemetry.sdk.version",TCA="telemetry.auto.version",vCA="webengine.name",VCA="webengine.version",NCA="webengine.description";vIA.SEMRESATTRS_CLOUD_PROVIDER=sSA;vIA.SEMRESATTRS_CLOUD_ACCOUNT_ID=tSA;vIA.SEMRESATTRS_CLOUD_REGION=eSA;vIA.SEMRESATTRS_CLOUD_AVAILABILITY_ZONE=AhA;vIA.SEMRESATTRS_CLOUD_PLATFORM=qhA;vIA.SEMRESATTRS_AWS_ECS_CONTAINER_ARN=KhA;vIA.SEMRESATTRS_AWS_ECS_CLUSTER_ARN=YhA;vIA.SEMRESATTRS_AWS_ECS_LAUNCHTYPE=zhA;vIA.SEMRESATTRS_AWS_ECS_TASK_ARN=whA;vIA.SEMRESATTRS_AWS_ECS_TASK_FAMILY=_hA;vIA.SEMRESATTRS_AWS_ECS_TASK_REVISION=$hA;vIA.SEMRESATTRS_AWS_EKS_CLUSTER_ARN=OhA;vIA.SEMRESATTRS_AWS_LOG_GROUP_NAMES=HhA;vIA.SEMRESATTRS_AWS_LOG_GROUP_ARNS=jhA;vIA.SEMRESATTRS_AWS_LOG_STREAM_NAMES=JhA;vIA.SEMRESATTRS_AWS_LOG_STREAM_ARNS=MhA;vIA.SEMRESATTRS_CONTAINER_NAME=DhA;vIA.SEMRESATTRS_CONTAINER_ID=XhA;vIA.SEMRESATTRS_CONTAINER_RUNTIME=PhA;vIA.SEMRESATTRS_CONTAINER_IMAGE_NAME=WhA;vIA.SEMRESATTRS_CONTAINER_IMAGE_TAG=GhA;vIA.SEMRESATTRS_DEPLOYMENT_ENVIRONMENT=ZhA;vIA.SEMRESATTRS_DEVICE_ID=fhA;vIA.SEMRESATTRS_DEVICE_MODEL_IDENTIFIER=ThA;vIA.SEMRESATTRS_DEVICE_MODEL_NAME=vhA;vIA.SEMRESATTRS_FAAS_NAME=VhA;vIA.SEMRESATTRS_FAAS_ID=NhA;vIA.SEMRESATTRS_FAAS_VERSION=khA;vIA.SEMRESATTRS_FAAS_INSTANCE=EhA;vIA.SEMRESATTRS_FAAS_MAX_MEMORY=LhA;vIA.SEMRESATTRS_HOST_ID=yhA;vIA.SEMRESATTRS_HOST_NAME=RhA;vIA.SEMRESATTRS_HOST_TYPE=ShA;vIA.SEMRESATTRS_HOST_ARCH=hhA;vIA.SEMRESATTRS_HOST_IMAGE_NAME=ChA;vIA.SEMRESATTRS_HOST_IMAGE_ID=IhA;vIA.SEMRESATTRS_HOST_IMAGE_VERSION=xhA;vIA.SEMRESATTRS_K8S_CLUSTER_NAME=bhA;vIA.SEMRESATTRS_K8S_NODE_NAME=uhA;vIA.SEMRESATTRS_K8S_NODE_UID=mhA;vIA.SEMRESATTRS_K8S_NAMESPACE_NAME=BhA;vIA.SEMRESATTRS_K8S_POD_UID=ghA;vIA.SEMRESATTRS_K8S_POD_NAME=phA;vIA.SEMRESATTRS_K8S_CONTAINER_NAME=FhA;vIA.SEMRESATTRS_K8S_REPLICASET_UID=QhA;vIA.SEMRESATTRS_K8S_REPLICASET_NAME=UhA;vIA.SEMRESATTRS_K8S_DEPLOYMENT_UID=dhA;vIA.SEMRESATTRS_K8S_DEPLOYMENT_NAME=chA;vIA.SEMRESATTRS_K8S_STATEFULSET_UID=lhA;vIA.SEMRESATTRS_K8S_STATEFULSET_NAME=ihA;vIA.SEMRESATTRS_K8S_DAEMONSET_UID=nhA;vIA.SEMRESATTRS_K8S_DAEMONSET_NAME=rhA;vIA.SEMRESATTRS_K8S_JOB_UID=ohA;vIA.SEMRESATTRS_K8S_JOB_NAME=ahA;vIA.SEMRESATTRS_K8S_CRONJOB_UID=shA;vIA.SEMRESATTRS_K8S_CRONJOB_NAME=thA;vIA.SEMRESATTRS_OS_TYPE=ehA;vIA.SEMRESATTRS_OS_DESCRIPTION=ACA;vIA.SEMRESATTRS_OS_NAME=qCA;vIA.SEMRESATTRS_OS_VERSION=KCA;vIA.SEMRESATTRS_PROCESS_PID=YCA;vIA.SEMRESATTRS_PROCESS_EXECUTABLE_NAME=zCA;vIA.SEMRESATTRS_PROCESS_EXECUTABLE_PATH=wCA;vIA.SEMRESATTRS_PROCESS_COMMAND=_CA;vIA.SEMRESATTRS_PROCESS_COMMAND_LINE=$CA;vIA.SEMRESATTRS_PROCESS_COMMAND_ARGS=OCA;vIA.SEMRESATTRS_PROCESS_OWNER=HCA;vIA.SEMRESATTRS_PROCESS_RUNTIME_NAME=jCA;vIA.SEMRESATTRS_PROCESS_RUNTIME_VERSION=JCA;vIA.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION=MCA;vIA.SEMRESATTRS_SERVICE_NAME=DCA;vIA.SEMRESATTRS_SERVICE_NAMESPACE=XCA;vIA.SEMRESATTRS_SERVICE_INSTANCE_ID=PCA;vIA.SEMRESATTRS_SERVICE_VERSION=WCA;vIA.SEMRESATTRS_TELEMETRY_SDK_NAME=GCA;vIA.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE=ZCA;vIA.SEMRESATTRS_TELEMETRY_SDK_VERSION=fCA;vIA.SEMRESATTRS_TELEMETRY_AUTO_VERSION=TCA;vIA.SEMRESATTRS_WEBENGINE_NAME=vCA;vIA.SEMRESATTRS_WEBENGINE_VERSION=VCA;vIA.SEMRESATTRS_WEBENGINE_DESCRIPTION=NCA;vIA.SemanticResourceAttributes=(0,Kq6.createConstMap)([sSA,tSA,eSA,AhA,qhA,KhA,YhA,zhA,whA,_hA,$hA,OhA,HhA,jhA,JhA,MhA,DhA,XhA,PhA,WhA,GhA,ZhA,fhA,ThA,vhA,VhA,NhA,khA,EhA,LhA,yhA,RhA,ShA,hhA,ChA,IhA,xhA,bhA,uhA,mhA,BhA,ghA,phA,FhA,QhA,UhA,dhA,chA,lhA,ihA,nhA,rhA,ohA,ahA,shA,thA,ehA,ACA,qCA,KCA,YCA,zCA,wCA,_CA,$CA,OCA,HCA,jCA,JCA,MCA,DCA,XCA,PCA,WCA,GCA,ZCA,fCA,TCA,vCA,VCA,NCA]);var kCA="alibaba_cloud",ECA="aws",LCA="azure",yCA="gcp";vIA.CLOUDPROVIDERVALUES_ALIBABA_CLOUD=kCA;vIA.CLOUDPROVIDERVALUES_AWS=ECA;vIA.CLOUDPROVIDERVALUES_AZURE=LCA;vIA.CLOUDPROVIDERVALUES_GCP=yCA;vIA.CloudProviderValues=(0,Kq6.createConstMap)([kCA,ECA,LCA,yCA]);var RCA="alibaba_cloud_ecs",SCA="alibaba_cloud_fc",hCA="aws_ec2",CCA="aws_ecs",ICA="aws_eks",xCA="aws_lambda",bCA="aws_elastic_beanstalk",uCA="azure_vm",mCA="azure_container_instances",BCA="azure_aks",gCA="azure_functions",pCA="azure_app_service",FCA="gcp_compute_engine",QCA="gcp_cloud_run",UCA="gcp_kubernetes_engine",dCA="gcp_cloud_functions",cCA="gcp_app_engine";vIA.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS=RCA;vIA.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC=SCA;vIA.CLOUDPLATFORMVALUES_AWS_EC2=hCA;vIA.CLOUDPLATFORMVALUES_AWS_ECS=CCA;vIA.CLOUDPLATFORMVALUES_AWS_EKS=ICA;vIA.CLOUDPLATFORMVALUES_AWS_LAMBDA=xCA;vIA.CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK=bCA;vIA.CLOUDPLATFORMVALUES_AZURE_VM=uCA;vIA.CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES=mCA;vIA.CLOUDPLATFORMVALUES_AZURE_AKS=BCA;vIA.CLOUDPLATFORMVALUES_AZURE_FUNCTIONS=gCA;vIA.CLOUDPLATFORMVALUES_AZURE_APP_SERVICE=pCA;vIA.CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE=FCA;vIA.CLOUDPLATFORMVALUES_GCP_CLOUD_RUN=QCA;vIA.CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE=UCA;vIA.CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS=dCA;vIA.CLOUDPLATFORMVALUES_GCP_APP_ENGINE=cCA;vIA.CloudPlatformValues=(0,Kq6.createConstMap)([RCA,SCA,hCA,CCA,ICA,xCA,bCA,uCA,mCA,BCA,gCA,pCA,FCA,QCA,UCA,dCA,cCA]);var lCA="ec2",iCA="fargate";vIA.AWSECSLAUNCHTYPEVALUES_EC2=lCA;vIA.AWSECSLAUNCHTYPEVALUES_FARGATE=iCA;vIA.AwsEcsLaunchtypeValues=(0,Kq6.createConstMap)([lCA,iCA]);var nCA="amd64",rCA="arm32",oCA="arm64",aCA="ia64",sCA="ppc32",tCA="ppc64",eCA="x86";vIA.HOSTARCHVALUES_AMD64=nCA;vIA.HOSTARCHVALUES_ARM32=rCA;vIA.HOSTARCHVALUES_ARM64=oCA;vIA.HOSTARCHVALUES_IA64=aCA;vIA.HOSTARCHVALUES_PPC32=sCA;vIA.HOSTARCHVALUES_PPC64=tCA;vIA.HOSTARCHVALUES_X86=eCA;vIA.HostArchValues=(0,Kq6.createConstMap)([nCA,rCA,oCA,aCA,sCA,tCA,eCA]);var AIA="windows",qIA="linux",KIA="darwin",YIA="freebsd",zIA="netbsd",wIA="openbsd",_IA="dragonflybsd",$IA="hpux",OIA="aix",HIA="solaris",jIA="z_os";vIA.OSTYPEVALUES_WINDOWS=AIA;vIA.OSTYPEVALUES_LINUX=qIA;vIA.OSTYPEVALUES_DARWIN=KIA;vIA.OSTYPEVALUES_FREEBSD=YIA;vIA.OSTYPEVALUES_NETBSD=zIA;vIA.OSTYPEVALUES_OPENBSD=wIA;vIA.OSTYPEVALUES_DRAGONFLYBSD=_IA;vIA.OSTYPEVALUES_HPUX=$IA;vIA.OSTYPEVALUES_AIX=OIA;vIA.OSTYPEVALUES_SOLARIS=HIA;vIA.OSTYPEVALUES_Z_OS=jIA;vIA.OsTypeValues=(0,Kq6.createConstMap)([AIA,qIA,KIA,YIA,zIA,wIA,_IA,$IA,OIA,HIA,jIA]);var JIA="cpp",MIA="dotnet",DIA="erlang",XIA="go",PIA="java",WIA="nodejs",GIA="php",ZIA="python",fIA="ruby",TIA="webjs";vIA.TELEMETRYSDKLANGUAGEVALUES_CPP=JIA;vIA.TELEMETRYSDKLANGUAGEVALUES_DOTNET=MIA;vIA.TELEMETRYSDKLANGUAGEVALUES_ERLANG=DIA;vIA.TELEMETRYSDKLANGUAGEVALUES_GO=XIA;vIA.TELEMETRYSDKLANGUAGEVALUES_JAVA=PIA;vIA.TELEMETRYSDKLANGUAGEVALUES_NODEJS=WIA;vIA.TELEMETRYSDKLANGUAGEVALUES_PHP=GIA;vIA.TELEMETRYSDKLANGUAGEVALUES_PYTHON=ZIA;vIA.TELEMETRYSDKLANGUAGEVALUES_RUBY=fIA;vIA.TELEMETRYSDKLANGUAGEVALUES_WEBJS=TIA;vIA.TelemetrySdkLanguageValues=(0,Kq6.createConstMap)([JIA,MIA,DIA,XIA,PIA,WIA,GIA,ZIA,fIA,TIA])});var LIA=h((Yq6)=>{var SdK=Yq6&&Yq6.__createBinding||(Object.create?function(A,q,K,Y){if(Y===void 0)Y=K;var z=Object.getOwnPropertyDescriptor(q,K);if(!z||("get"in z?!q.__esModule:z.writable||z.configurable))z={enumerable:!0,get:function(){return q[K]}};Object.defineProperty(A,Y,z)}:function(A,q,K,Y){if(Y===void 0)Y=K;A[Y]=q[K]}),hdK=Yq6&&Yq6.__exportStar||function(A,q){for(var K in A)if(K!=="default"&&!Object.prototype.hasOwnProperty.call(q,K))SdK(q,A,K)};Object.defineProperty(Yq6,"__esModule",{value:!0});hdK(EIA(),Yq6)});var CIA=h((yIA)=>{Object.defineProperty(yIA,"__esModule",{value:!0});yIA.ATTR_EXCEPTION_TYPE=yIA.ATTR_EXCEPTION_STACKTRACE=yIA.ATTR_EXCEPTION_MESSAGE=yIA.ATTR_EXCEPTION_ESCAPED=yIA.ERROR_TYPE_VALUE_OTHER=yIA.ATTR_ERROR_TYPE=yIA.DOTNET_GC_HEAP_GENERATION_VALUE_POH=yIA.DOTNET_GC_HEAP_GENERATION_VALUE_LOH=yIA.DOTNET_GC_HEAP_GENERATION_VALUE_GEN2=yIA.DOTNET_GC_HEAP_GENERATION_VALUE_GEN1=yIA.DOTNET_GC_HEAP_GENERATION_VALUE_GEN0=yIA.ATTR_DOTNET_GC_HEAP_GENERATION=yIA.DB_SYSTEM_NAME_VALUE_POSTGRESQL=yIA.DB_SYSTEM_NAME_VALUE_MYSQL=yIA.DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER=yIA.DB_SYSTEM_NAME_VALUE_MARIADB=yIA.ATTR_DB_SYSTEM_NAME=yIA.ATTR_DB_STORED_PROCEDURE_NAME=yIA.ATTR_DB_RESPONSE_STATUS_CODE=yIA.ATTR_DB_QUERY_TEXT=yIA.ATTR_DB_QUERY_SUMMARY=yIA.ATTR_DB_OPERATION_NAME=yIA.ATTR_DB_OPERATION_BATCH_SIZE=yIA.ATTR_DB_NAMESPACE=yIA.ATTR_DB_COLLECTION_NAME=yIA.ATTR_CODE_STACKTRACE=yIA.ATTR_CODE_LINE_NUMBER=yIA.ATTR_CODE_FUNCTION_NAME=yIA.ATTR_CODE_FILE_PATH=yIA.ATTR_CODE_COLUMN_NUMBER=yIA.ATTR_CLIENT_PORT=yIA.ATTR_CLIENT_ADDRESS=yIA.ATTR_ASPNETCORE_USER_IS_AUTHENTICATED=yIA.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS=yIA.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE=yIA.ATTR_ASPNETCORE_ROUTING_MATCH_STATUS=yIA.ATTR_ASPNETCORE_ROUTING_IS_FALLBACK=yIA.ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED=yIA.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED=yIA.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER=yIA.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER=yIA.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED=yIA.ATTR_ASPNETCORE_RATE_LIMITING_RESULT=yIA.ATTR_ASPNETCORE_RATE_LIMITING_POLICY=yIA.ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE=yIA.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED=yIA.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED=yIA.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED=yIA.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED=yIA.ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT=void 0;yIA.OTEL_STATUS_CODE_VALUE_ERROR=yIA.ATTR_OTEL_STATUS_CODE=yIA.ATTR_OTEL_SCOPE_VERSION=yIA.ATTR_OTEL_SCOPE_NAME=yIA.NETWORK_TYPE_VALUE_IPV6=yIA.NETWORK_TYPE_VALUE_IPV4=yIA.ATTR_NETWORK_TYPE=yIA.NETWORK_TRANSPORT_VALUE_UNIX=yIA.NETWORK_TRANSPORT_VALUE_UDP=yIA.NETWORK_TRANSPORT_VALUE_TCP=yIA.NETWORK_TRANSPORT_VALUE_QUIC=yIA.NETWORK_TRANSPORT_VALUE_PIPE=yIA.ATTR_NETWORK_TRANSPORT=yIA.ATTR_NETWORK_PROTOCOL_VERSION=yIA.ATTR_NETWORK_PROTOCOL_NAME=yIA.ATTR_NETWORK_PEER_PORT=yIA.ATTR_NETWORK_PEER_ADDRESS=yIA.ATTR_NETWORK_LOCAL_PORT=yIA.ATTR_NETWORK_LOCAL_ADDRESS=yIA.JVM_THREAD_STATE_VALUE_WAITING=yIA.JVM_THREAD_STATE_VALUE_TIMED_WAITING=yIA.JVM_THREAD_STATE_VALUE_TERMINATED=yIA.JVM_THREAD_STATE_VALUE_RUNNABLE=yIA.JVM_THREAD_STATE_VALUE_NEW=yIA.JVM_THREAD_STATE_VALUE_BLOCKED=yIA.ATTR_JVM_THREAD_STATE=yIA.ATTR_JVM_THREAD_DAEMON=yIA.JVM_MEMORY_TYPE_VALUE_NON_HEAP=yIA.JVM_MEMORY_TYPE_VALUE_HEAP=yIA.ATTR_JVM_MEMORY_TYPE=yIA.ATTR_JVM_MEMORY_POOL_NAME=yIA.ATTR_JVM_GC_NAME=yIA.ATTR_JVM_GC_ACTION=yIA.ATTR_HTTP_ROUTE=yIA.ATTR_HTTP_RESPONSE_STATUS_CODE=yIA.ATTR_HTTP_RESPONSE_HEADER=yIA.ATTR_HTTP_REQUEST_RESEND_COUNT=yIA.ATTR_HTTP_REQUEST_METHOD_ORIGINAL=yIA.HTTP_REQUEST_METHOD_VALUE_TRACE=yIA.HTTP_REQUEST_METHOD_VALUE_PUT=yIA.HTTP_REQUEST_METHOD_VALUE_POST=yIA.HTTP_REQUEST_METHOD_VALUE_PATCH=yIA.HTTP_REQUEST_METHOD_VALUE_OPTIONS=yIA.HTTP_REQUEST_METHOD_VALUE_HEAD=yIA.HTTP_REQUEST_METHOD_VALUE_GET=yIA.HTTP_REQUEST_METHOD_VALUE_DELETE=yIA.HTTP_REQUEST_METHOD_VALUE_CONNECT=yIA.HTTP_REQUEST_METHOD_VALUE_OTHER=yIA.ATTR_HTTP_REQUEST_METHOD=yIA.ATTR_HTTP_REQUEST_HEADER=void 0;yIA.ATTR_USER_AGENT_ORIGINAL=yIA.ATTR_URL_SCHEME=yIA.ATTR_URL_QUERY=yIA.ATTR_URL_PATH=yIA.ATTR_URL_FULL=yIA.ATTR_URL_FRAGMENT=yIA.ATTR_TELEMETRY_SDK_VERSION=yIA.ATTR_TELEMETRY_SDK_NAME=yIA.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS=yIA.TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT=yIA.TELEMETRY_SDK_LANGUAGE_VALUE_RUST=yIA.TELEMETRY_SDK_LANGUAGE_VALUE_RUBY=yIA.TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON=yIA.TELEMETRY_SDK_LANGUAGE_VALUE_PHP=yIA.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS=yIA.TELEMETRY_SDK_LANGUAGE_VALUE_JAVA=yIA.TELEMETRY_SDK_LANGUAGE_VALUE_GO=yIA.TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG=yIA.TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET=yIA.TELEMETRY_SDK_LANGUAGE_VALUE_CPP=yIA.ATTR_TELEMETRY_SDK_LANGUAGE=yIA.SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS=yIA.SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS=yIA.SIGNALR_TRANSPORT_VALUE_LONG_POLLING=yIA.ATTR_SIGNALR_TRANSPORT=yIA.SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT=yIA.SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE=yIA.SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN=yIA.ATTR_SIGNALR_CONNECTION_STATUS=yIA.ATTR_SERVICE_VERSION=yIA.ATTR_SERVICE_NAME=yIA.ATTR_SERVER_PORT=yIA.ATTR_SERVER_ADDRESS=yIA.ATTR_OTEL_STATUS_DESCRIPTION=yIA.OTEL_STATUS_CODE_VALUE_OK=void 0;yIA.ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT="aspnetcore.diagnostics.exception.result";yIA.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED="aborted";yIA.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED="handled";yIA.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED="skipped";yIA.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED="unhandled";yIA.ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE="aspnetcore.diagnostics.handler.type";yIA.ATTR_ASPNETCORE_RATE_LIMITING_POLICY="aspnetcore.rate_limiting.policy";yIA.ATTR_ASPNETCORE_RATE_LIMITING_RESULT="aspnetcore.rate_limiting.result";yIA.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED="acquired";yIA.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER="endpoint_limiter";yIA.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER="global_limiter";yIA.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED="request_canceled";yIA.ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED="aspnetcore.request.is_unhandled";yIA.ATTR_ASPNETCORE_ROUTING_IS_FALLBACK="aspnetcore.routing.is_fallback";yIA.ATTR_ASPNETCORE_ROUTING_MATCH_STATUS="aspnetcore.routing.match_status";yIA.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE="failure";yIA.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS="success";yIA.ATTR_ASPNETCORE_USER_IS_AUTHENTICATED="aspnetcore.user.is_authenticated";yIA.ATTR_CLIENT_ADDRESS="client.address";yIA.ATTR_CLIENT_PORT="client.port";yIA.ATTR_CODE_COLUMN_NUMBER="code.column.number";yIA.ATTR_CODE_FILE_PATH="code.file.path";yIA.ATTR_CODE_FUNCTION_NAME="code.function.name";yIA.ATTR_CODE_LINE_NUMBER="code.line.number";yIA.ATTR_CODE_STACKTRACE="code.stacktrace";yIA.ATTR_DB_COLLECTION_NAME="db.collection.name";yIA.ATTR_DB_NAMESPACE="db.namespace";yIA.ATTR_DB_OPERATION_BATCH_SIZE="db.operation.batch.size";yIA.ATTR_DB_OPERATION_NAME="db.operation.name";yIA.ATTR_DB_QUERY_SUMMARY="db.query.summary";yIA.ATTR_DB_QUERY_TEXT="db.query.text";yIA.ATTR_DB_RESPONSE_STATUS_CODE="db.response.status_code";yIA.ATTR_DB_STORED_PROCEDURE_NAME="db.stored_procedure.name";yIA.ATTR_DB_SYSTEM_NAME="db.system.name";yIA.DB_SYSTEM_NAME_VALUE_MARIADB="mariadb";yIA.DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER="microsoft.sql_server";yIA.DB_SYSTEM_NAME_VALUE_MYSQL="mysql";yIA.DB_SYSTEM_NAME_VALUE_POSTGRESQL="postgresql";yIA.ATTR_DOTNET_GC_HEAP_GENERATION="dotnet.gc.heap.generation";yIA.DOTNET_GC_HEAP_GENERATION_VALUE_GEN0="gen0";yIA.DOTNET_GC_HEAP_GENERATION_VALUE_GEN1="gen1";yIA.DOTNET_GC_HEAP_GENERATION_VALUE_GEN2="gen2";yIA.DOTNET_GC_HEAP_GENERATION_VALUE_LOH="loh";yIA.DOTNET_GC_HEAP_GENERATION_VALUE_POH="poh";yIA.ATTR_ERROR_TYPE="error.type";yIA.ERROR_TYPE_VALUE_OTHER="_OTHER";yIA.ATTR_EXCEPTION_ESCAPED="exception.escaped";yIA.ATTR_EXCEPTION_MESSAGE="exception.message";yIA.ATTR_EXCEPTION_STACKTRACE="exception.stacktrace";yIA.ATTR_EXCEPTION_TYPE="exception.type";var CdK=(A)=>`http.request.header.${A}`;yIA.ATTR_HTTP_REQUEST_HEADER=CdK;yIA.ATTR_HTTP_REQUEST_METHOD="http.request.method";yIA.HTTP_REQUEST_METHOD_VALUE_OTHER="_OTHER";yIA.HTTP_REQUEST_METHOD_VALUE_CONNECT="CONNECT";yIA.HTTP_REQUEST_METHOD_VALUE_DELETE="DELETE";yIA.HTTP_REQUEST_METHOD_VALUE_GET="GET";yIA.HTTP_REQUEST_METHOD_VALUE_HEAD="HEAD";yIA.HTTP_REQUEST_METHOD_VALUE_OPTIONS="OPTIONS";yIA.HTTP_REQUEST_METHOD_VALUE_PATCH="PATCH";yIA.HTTP_REQUEST_METHOD_VALUE_POST="POST";yIA.HTTP_REQUEST_METHOD_VALUE_PUT="PUT";yIA.HTTP_REQUEST_METHOD_VALUE_TRACE="TRACE";yIA.ATTR_HTTP_REQUEST_METHOD_ORIGINAL="http.request.method_original";yIA.ATTR_HTTP_REQUEST_RESEND_COUNT="http.request.resend_count";var IdK=(A)=>`http.response.header.${A}`;yIA.ATTR_HTTP_RESPONSE_HEADER=IdK;yIA.ATTR_HTTP_RESPONSE_STATUS_CODE="http.response.status_code";yIA.ATTR_HTTP_ROUTE="http.route";yIA.ATTR_JVM_GC_ACTION="jvm.gc.action";yIA.ATTR_JVM_GC_NAME="jvm.gc.name";yIA.ATTR_JVM_MEMORY_POOL_NAME="jvm.memory.pool.name";yIA.ATTR_JVM_MEMORY_TYPE="jvm.memory.type";yIA.JVM_MEMORY_TYPE_VALUE_HEAP="heap";yIA.JVM_MEMORY_TYPE_VALUE_NON_HEAP="non_heap";yIA.ATTR_JVM_THREAD_DAEMON="jvm.thread.daemon";yIA.ATTR_JVM_THREAD_STATE="jvm.thread.state";yIA.JVM_THREAD_STATE_VALUE_BLOCKED="blocked";yIA.JVM_THREAD_STATE_VALUE_NEW="new";yIA.JVM_THREAD_STATE_VALUE_RUNNABLE="runnable";yIA.JVM_THREAD_STATE_VALUE_TERMINATED="terminated";yIA.JVM_THREAD_STATE_VALUE_TIMED_WAITING="timed_waiting";yIA.JVM_THREAD_STATE_VALUE_WAITING="waiting";yIA.ATTR_NETWORK_LOCAL_ADDRESS="network.local.address";yIA.ATTR_NETWORK_LOCAL_PORT="network.local.port";yIA.ATTR_NETWORK_PEER_ADDRESS="network.peer.address";yIA.ATTR_NETWORK_PEER_PORT="network.peer.port";yIA.ATTR_NETWORK_PROTOCOL_NAME="network.protocol.name";yIA.ATTR_NETWORK_PROTOCOL_VERSION="network.protocol.version";yIA.ATTR_NETWORK_TRANSPORT="network.transport";yIA.NETWORK_TRANSPORT_VALUE_PIPE="pipe";yIA.NETWORK_TRANSPORT_VALUE_QUIC="quic";yIA.NETWORK_TRANSPORT_VALUE_TCP="tcp";yIA.NETWORK_TRANSPORT_VALUE_UDP="udp";yIA.NETWORK_TRANSPORT_VALUE_UNIX="unix";yIA.ATTR_NETWORK_TYPE="network.type";yIA.NETWORK_TYPE_VALUE_IPV4="ipv4";yIA.NETWORK_TYPE_VALUE_IPV6="ipv6";yIA.ATTR_OTEL_SCOPE_NAME="otel.scope.name";yIA.ATTR_OTEL_SCOPE_VERSION="otel.scope.version";yIA.ATTR_OTEL_STATUS_CODE="otel.status_code";yIA.OTEL_STATUS_CODE_VALUE_ERROR="ERROR";yIA.OTEL_STATUS_CODE_VALUE_OK="OK";yIA.ATTR_OTEL_STATUS_DESCRIPTION="otel.status_description";yIA.ATTR_SERVER_ADDRESS="server.address";yIA.ATTR_SERVER_PORT="server.port";yIA.ATTR_SERVICE_NAME="service.name";yIA.ATTR_SERVICE_VERSION="service.version";yIA.ATTR_SIGNALR_CONNECTION_STATUS="signalr.connection.status";yIA.SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN="app_shutdown";yIA.SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE="normal_closure";yIA.SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT="timeout";yIA.ATTR_SIGNALR_TRANSPORT="signalr.transport";yIA.SIGNALR_TRANSPORT_VALUE_LONG_POLLING="long_polling";yIA.SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS="server_sent_events";yIA.SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS="web_sockets";yIA.ATTR_TELEMETRY_SDK_LANGUAGE="telemetry.sdk.language";yIA.TELEMETRY_SDK_LANGUAGE_VALUE_CPP="cpp";yIA.TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET="dotnet";yIA.TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG="erlang";yIA.TELEMETRY_SDK_LANGUAGE_VALUE_GO="go";yIA.TELEMETRY_SDK_LANGUAGE_VALUE_JAVA="java";yIA.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS="nodejs";yIA.TELEMETRY_SDK_LANGUAGE_VALUE_PHP="php";yIA.TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON="python";yIA.TELEMETRY_SDK_LANGUAGE_VALUE_RUBY="ruby";yIA.TELEMETRY_SDK_LANGUAGE_VALUE_RUST="rust";yIA.TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT="swift";yIA.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS="webjs";yIA.ATTR_TELEMETRY_SDK_NAME="telemetry.sdk.name";yIA.ATTR_TELEMETRY_SDK_VERSION="telemetry.sdk.version";yIA.ATTR_URL_FRAGMENT="url.fragment";yIA.ATTR_URL_FULL="url.full";yIA.ATTR_URL_PATH="url.path";yIA.ATTR_URL_QUERY="url.query";yIA.ATTR_URL_SCHEME="url.scheme";yIA.ATTR_USER_AGENT_ORIGINAL="user_agent.original"});var uIA=h((IIA)=>{Object.defineProperty(IIA,"__esModule",{value:!0});IIA.METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS=IIA.METRIC_KESTREL_UPGRADED_CONNECTIONS=IIA.METRIC_KESTREL_TLS_HANDSHAKE_DURATION=IIA.METRIC_KESTREL_REJECTED_CONNECTIONS=IIA.METRIC_KESTREL_QUEUED_REQUESTS=IIA.METRIC_KESTREL_QUEUED_CONNECTIONS=IIA.METRIC_KESTREL_CONNECTION_DURATION=IIA.METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES=IIA.METRIC_KESTREL_ACTIVE_CONNECTIONS=IIA.METRIC_JVM_THREAD_COUNT=IIA.METRIC_JVM_MEMORY_USED_AFTER_LAST_GC=IIA.METRIC_JVM_MEMORY_USED=IIA.METRIC_JVM_MEMORY_LIMIT=IIA.METRIC_JVM_MEMORY_COMMITTED=IIA.METRIC_JVM_GC_DURATION=IIA.METRIC_JVM_CPU_TIME=IIA.METRIC_JVM_CPU_RECENT_UTILIZATION=IIA.METRIC_JVM_CPU_COUNT=IIA.METRIC_JVM_CLASS_UNLOADED=IIA.METRIC_JVM_CLASS_LOADED=IIA.METRIC_JVM_CLASS_COUNT=IIA.METRIC_HTTP_SERVER_REQUEST_DURATION=IIA.METRIC_HTTP_CLIENT_REQUEST_DURATION=IIA.METRIC_DOTNET_TIMER_COUNT=IIA.METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT=IIA.METRIC_DOTNET_THREAD_POOL_THREAD_COUNT=IIA.METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH=IIA.METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET=IIA.METRIC_DOTNET_PROCESS_CPU_TIME=IIA.METRIC_DOTNET_PROCESS_CPU_COUNT=IIA.METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS=IIA.METRIC_DOTNET_JIT_COMPILED_METHODS=IIA.METRIC_DOTNET_JIT_COMPILED_IL_SIZE=IIA.METRIC_DOTNET_JIT_COMPILATION_TIME=IIA.METRIC_DOTNET_GC_PAUSE_TIME=IIA.METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE=IIA.METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE=IIA.METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE=IIA.METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED=IIA.METRIC_DOTNET_GC_COLLECTIONS=IIA.METRIC_DOTNET_EXCEPTIONS=IIA.METRIC_DOTNET_ASSEMBLY_COUNT=IIA.METRIC_DB_CLIENT_OPERATION_DURATION=IIA.METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS=IIA.METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS=IIA.METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION=IIA.METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE=IIA.METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS=IIA.METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES=IIA.METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS=void 0;IIA.METRIC_SIGNALR_SERVER_CONNECTION_DURATION=void 0;IIA.METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS="aspnetcore.diagnostics.exceptions";IIA.METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES="aspnetcore.rate_limiting.active_request_leases";IIA.METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS="aspnetcore.rate_limiting.queued_requests";IIA.METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE="aspnetcore.rate_limiting.request.time_in_queue";IIA.METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION="aspnetcore.rate_limiting.request_lease.duration";IIA.METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS="aspnetcore.rate_limiting.requests";IIA.METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS="aspnetcore.routing.match_attempts";IIA.METRIC_DB_CLIENT_OPERATION_DURATION="db.client.operation.duration";IIA.METRIC_DOTNET_ASSEMBLY_COUNT="dotnet.assembly.count";IIA.METRIC_DOTNET_EXCEPTIONS="dotnet.exceptions";IIA.METRIC_DOTNET_GC_COLLECTIONS="dotnet.gc.collections";IIA.METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED="dotnet.gc.heap.total_allocated";IIA.METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE="dotnet.gc.last_collection.heap.fragmentation.size";IIA.METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE="dotnet.gc.last_collection.heap.size";IIA.METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE="dotnet.gc.last_collection.memory.committed_size";IIA.METRIC_DOTNET_GC_PAUSE_TIME="dotnet.gc.pause.time";IIA.METRIC_DOTNET_JIT_COMPILATION_TIME="dotnet.jit.compilation.time";IIA.METRIC_DOTNET_JIT_COMPILED_IL_SIZE="dotnet.jit.compiled_il.size";IIA.METRIC_DOTNET_JIT_COMPILED_METHODS="dotnet.jit.compiled_methods";IIA.METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS="dotnet.monitor.lock_contentions";IIA.METRIC_DOTNET_PROCESS_CPU_COUNT="dotnet.process.cpu.count";IIA.METRIC_DOTNET_PROCESS_CPU_TIME="dotnet.process.cpu.time";IIA.METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET="dotnet.process.memory.working_set";IIA.METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH="dotnet.thread_pool.queue.length";IIA.METRIC_DOTNET_THREAD_POOL_THREAD_COUNT="dotnet.thread_pool.thread.count";IIA.METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT="dotnet.thread_pool.work_item.count";IIA.METRIC_DOTNET_TIMER_COUNT="dotnet.timer.count";IIA.METRIC_HTTP_CLIENT_REQUEST_DURATION="http.client.request.duration";IIA.METRIC_HTTP_SERVER_REQUEST_DURATION="http.server.request.duration";IIA.METRIC_JVM_CLASS_COUNT="jvm.class.count";IIA.METRIC_JVM_CLASS_LOADED="jvm.class.loaded";IIA.METRIC_JVM_CLASS_UNLOADED="jvm.class.unloaded";IIA.METRIC_JVM_CPU_COUNT="jvm.cpu.count";IIA.METRIC_JVM_CPU_RECENT_UTILIZATION="jvm.cpu.recent_utilization";IIA.METRIC_JVM_CPU_TIME="jvm.cpu.time";IIA.METRIC_JVM_GC_DURATION="jvm.gc.duration";IIA.METRIC_JVM_MEMORY_COMMITTED="jvm.memory.committed";IIA.METRIC_JVM_MEMORY_LIMIT="jvm.memory.limit";IIA.METRIC_JVM_MEMORY_USED="jvm.memory.used";IIA.METRIC_JVM_MEMORY_USED_AFTER_LAST_GC="jvm.memory.used_after_last_gc";IIA.METRIC_JVM_THREAD_COUNT="jvm.thread.count";IIA.METRIC_KESTREL_ACTIVE_CONNECTIONS="kestrel.active_connections";IIA.METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES="kestrel.active_tls_handshakes";IIA.METRIC_KESTREL_CONNECTION_DURATION="kestrel.connection.duration";IIA.METRIC_KESTREL_QUEUED_CONNECTIONS="kestrel.queued_connections";IIA.METRIC_KESTREL_QUEUED_REQUESTS="kestrel.queued_requests";IIA.METRIC_KESTREL_REJECTED_CONNECTIONS="kestrel.rejected_connections";IIA.METRIC_KESTREL_TLS_HANDSHAKE_DURATION="kestrel.tls_handshake.duration";IIA.METRIC_KESTREL_UPGRADED_CONNECTIONS="kestrel.upgraded_connections";IIA.METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS="signalr.server.active_connections";IIA.METRIC_SIGNALR_SERVER_CONNECTION_DURATION="signalr.server.connection.duration"});var gIA=h((mIA)=>{Object.defineProperty(mIA,"__esModule",{value:!0});mIA.EVENT_EXCEPTION=void 0;mIA.EVENT_EXCEPTION="exception"});var zq6=h((CC)=>{var tiK=CC&&CC.__createBinding||(Object.create?function(A,q,K,Y){if(Y===void 0)Y=K;var z=Object.getOwnPropertyDescriptor(q,K);if(!z||("get"in z?!q.__esModule:z.writable||z.configurable))z={enumerable:!0,get:function(){return q[K]}};Object.defineProperty(A,Y,z)}:function(A,q,K,Y){if(Y===void 0)Y=K;A[Y]=q[K]}),Oh6=CC&&CC.__exportStar||function(A,q){for(var K in A)if(K!=="default"&&!Object.prototype.hasOwnProperty.call(q,K))tiK(q,A,K)};Object.defineProperty(CC,"__esModule",{value:!0});Oh6(aSA(),CC);Oh6(LIA(),CC);Oh6(CIA(),CC);Oh6(uIA(),CC);Oh6(gIA(),CC)});var QIA=h((pIA)=>{Object.defineProperty(pIA,"__esModule",{value:!0});pIA.ATTR_PROCESS_RUNTIME_NAME=void 0;pIA.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var cIA=h((UIA)=>{Object.defineProperty(UIA,"__esModule",{value:!0});UIA.SDK_INFO=void 0;var eiK=akA(),E41=zq6(),AnK=QIA();UIA.SDK_INFO={[E41.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[AnK.ATTR_PROCESS_RUNTIME_NAME]:"node",[E41.ATTR_TELEMETRY_SDK_LANGUAGE]:E41.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[E41.ATTR_TELEMETRY_SDK_VERSION]:eiK.VERSION}});var lIA=h((NU)=>{Object.defineProperty(NU,"__esModule",{value:!0});NU.SDK_INFO=NU.otperformance=NU._globalThis=NU.getStringListFromEnv=NU.getNumberFromEnv=NU.getBooleanFromEnv=NU.getStringFromEnv=void 0;var L41=QkA();Object.defineProperty(NU,"getStringFromEnv",{enumerable:!0,get:function(){return L41.getStringFromEnv}});Object.defineProperty(NU,"getBooleanFromEnv",{enumerable:!0,get:function(){return L41.getBooleanFromEnv}});Object.defineProperty(NU,"getNumberFromEnv",{enumerable:!0,get:function(){return L41.getNumberFromEnv}});Object.defineProperty(NU,"getStringListFromEnv",{enumerable:!0,get:function(){return L41.getStringListFromEnv}});var qnK=ckA();Object.defineProperty(NU,"_globalThis",{enumerable:!0,get:function(){return qnK._globalThis}});var KnK=nkA();Object.defineProperty(NU,"otperformance",{enumerable:!0,get:function(){return KnK.otperformance}});var YnK=cIA();Object.defineProperty(NU,"SDK_INFO",{enumerable:!0,get:function(){return YnK.SDK_INFO}})});var Ya1=h((kU)=>{Object.defineProperty(kU,"__esModule",{value:!0});kU.getStringListFromEnv=kU.getNumberFromEnv=kU.getStringFromEnv=kU.getBooleanFromEnv=kU.otperformance=kU._globalThis=kU.SDK_INFO=void 0;var wq6=lIA();Object.defineProperty(kU,"SDK_INFO",{enumerable:!0,get:function(){return wq6.SDK_INFO}});Object.defineProperty(kU,"_globalThis",{enumerable:!0,get:function(){return wq6._globalThis}});Object.defineProperty(kU,"otperformance",{enumerable:!0,get:function(){return wq6.otperformance}});Object.defineProperty(kU,"getBooleanFromEnv",{enumerable:!0,get:function(){return wq6.getBooleanFromEnv}});Object.defineProperty(kU,"getStringFromEnv",{enumerable:!0,get:function(){return wq6.getStringFromEnv}});Object.defineProperty(kU,"getNumberFromEnv",{enumerable:!0,get:function(){return wq6.getNumberFromEnv}});Object.defineProperty(kU,"getStringListFromEnv",{enumerable:!0,get:function(){return wq6.getStringListFromEnv}})});var sIA=h((oIA)=>{Object.defineProperty(oIA,"__esModule",{value:!0});oIA.addHrTimes=oIA.isTimeInput=oIA.isTimeInputHrTime=oIA.hrTimeToMicroseconds=oIA.hrTimeToMilliseconds=oIA.hrTimeToNanoseconds=oIA.hrTimeToTimeStamp=oIA.hrTimeDuration=oIA.timeInputToHrTime=oIA.hrTime=oIA.getTimeOrigin=oIA.millisToHrTime=void 0;var za1=Ya1(),iIA=9,_nK=6,$nK=Math.pow(10,_nK),y41=Math.pow(10,iIA);function Hh6(A){let q=A/1000,K=Math.trunc(q),Y=Math.round(A%1000*$nK);return[K,Y]}oIA.millisToHrTime=Hh6;function wa1(){let A=za1.otperformance.timeOrigin;if(typeof A!=="number"){let q=za1.otperformance;A=q.timing&&q.timing.fetchStart}return A}oIA.getTimeOrigin=wa1;function nIA(A){let q=Hh6(wa1()),K=Hh6(typeof A==="number"?A:za1.otperformance.now());return rIA(q,K)}oIA.hrTime=nIA;function OnK(A){if(_a1(A))return A;else if(typeof A==="number")if(A<wa1())return nIA(A);else return Hh6(A);else if(A instanceof Date)return Hh6(A.getTime());else throw TypeError("Invalid input type")}oIA.timeInputToHrTime=OnK;function HnK(A,q){let K=q[0]-A[0],Y=q[1]-A[1];if(Y<0)K-=1,Y+=y41;return[K,Y]}oIA.hrTimeDuration=HnK;function jnK(A){let q=iIA,K=`${"0".repeat(q)}${A[1]}Z`,Y=K.substring(K.length-q-1);return new Date(A[0]*1000).toISOString().replace("000Z",Y)}oIA.hrTimeToTimeStamp=jnK;function JnK(A){return A[0]*y41+A[1]}oIA.hrTimeToNanoseconds=JnK;function MnK(A){return A[0]*1000+A[1]/1e6}oIA.hrTimeToMilliseconds=MnK;function DnK(A){return A[0]*1e6+A[1]/1000}oIA.hrTimeToMicroseconds=DnK;function _a1(A){return Array.isArray(A)&&A.length===2&&typeof A[0]==="number"&&typeof A[1]==="number"}oIA.isTimeInputHrTime=_a1;function XnK(A){return _a1(A)||typeof A==="number"||A instanceof Date}oIA.isTimeInput=XnK;function rIA(A,q){let K=[A[0]+q[0],A[1]+q[1]];if(K[1]>=y41)K[1]-=y41,K[0]+=1;return K}oIA.addHrTimes=rIA});var AxA=h((tIA)=>{Object.defineProperty(tIA,"__esModule",{value:!0});tIA.unrefTimer=void 0;function LnK(A){if(typeof A!=="number")A.unref()}tIA.unrefTimer=LnK});var KxA=h((qxA)=>{Object.defineProperty(qxA,"__esModule",{value:!0});qxA.ExportResultCode=void 0;var ynK;(function(A){A[A.SUCCESS=0]="SUCCESS",A[A.FAILED=1]="FAILED"})(ynK=qxA.ExportResultCode||(qxA.ExportResultCode={}))});var $xA=h((wxA)=>{Object.defineProperty(wxA,"__esModule",{value:!0});wxA.CompositePropagator=void 0;var YxA=gq();class zxA{_propagators;_fields;constructor(A={}){this._propagators=A.propagators??[],this._fields=Array.from(new Set(this._propagators.map((q)=>typeof q.fields==="function"?q.fields():[]).reduce((q,K)=>q.concat(K),[])))}inject(A,q,K){for(let Y of this._propagators)try{Y.inject(A,q,K)}catch(z){YxA.diag.warn(`Failed to inject with ${Y.constructor.name}. Err: ${z.message}`)}}extract(A,q,K){return this._propagators.reduce((Y,z)=>{try{return z.extract(Y,q,K)}catch(w){YxA.diag.warn(`Failed to extract with ${z.constructor.name}. Err: ${w.message}`)}return Y},A)}fields(){return this._fields.slice()}}wxA.CompositePropagator=zxA});var jxA=h((OxA)=>{Object.defineProperty(OxA,"__esModule",{value:!0});OxA.validateValue=OxA.validateKey=void 0;var Oa1="[_0-9a-z-*/]",RnK=`[a-z]${Oa1}{0,255}`,SnK=`[a-z0-9]${Oa1}{0,240}@[a-z]${Oa1}{0,13}`,hnK=new RegExp(`^(?:${RnK}|${SnK})$`),CnK=/^[ -~]{0,255}[!-~]$/,InK=/,|=/;function xnK(A){return hnK.test(A)}OxA.validateKey=xnK;function bnK(A){return CnK.test(A)&&!InK.test(A)}OxA.validateValue=bnK});var ja1=h((PxA)=>{Object.defineProperty(PxA,"__esModule",{value:!0});PxA.TraceState=void 0;var JxA=jxA(),MxA=32,mnK=512,DxA=",",XxA="=";class Ha1{_internalState=new Map;constructor(A){if(A)this._parse(A)}set(A,q){let K=this._clone();if(K._internalState.has(A))K._internalState.delete(A);return K._internalState.set(A,q),K}unset(A){let q=this._clone();return q._internalState.delete(A),q}get(A){return this._internalState.get(A)}serialize(){return this._keys().reduce((A,q)=>{return A.push(q+XxA+this.get(q)),A},[]).join(DxA)}_parse(A){if(A.length>mnK)return;if(this._internalState=A.split(DxA).reverse().reduce((q,K)=>{let Y=K.trim(),z=Y.indexOf(XxA);if(z!==-1){let w=Y.slice(0,z),_=Y.slice(z+1,K.length);if((0,JxA.validateKey)(w)&&(0,JxA.validateValue)(_))q.set(w,_)}return q},new Map),this._internalState.size>MxA)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,MxA))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let A=new Ha1;return A._internalState=new Map(this._internalState),A}}PxA.TraceState=Ha1});var vxA=h((fxA)=>{Object.defineProperty(fxA,"__esModule",{value:!0});fxA.W3CTraceContextPropagator=fxA.parseTraceParent=fxA.TRACE_STATE_HEADER=fxA.TRACE_PARENT_HEADER=void 0;var R41=gq(),BnK=$h6(),gnK=ja1();fxA.TRACE_PARENT_HEADER="traceparent";fxA.TRACE_STATE_HEADER="tracestate";var pnK="00",FnK="(?!ff)[\\da-f]{2}",QnK="(?![0]{32})[\\da-f]{32}",UnK="(?![0]{16})[\\da-f]{16}",dnK="[\\da-f]{2}",cnK=new RegExp(`^\\s?(${FnK})-(${QnK})-(${UnK})-(${dnK})(-.*)?\\s?$`);function GxA(A){let q=cnK.exec(A);if(!q)return null;if(q[1]==="00"&&q[5])return null;return{traceId:q[2],spanId:q[3],traceFlags:parseInt(q[4],16)}}fxA.parseTraceParent=GxA;class ZxA{inject(A,q,K){let Y=R41.trace.getSpanContext(A);if(!Y||(0,BnK.isTracingSuppressed)(A)||!(0,R41.isSpanContextValid)(Y))return;let z=`${pnK}-${Y.traceId}-${Y.spanId}-0${Number(Y.traceFlags||R41.TraceFlags.NONE).toString(16)}`;if(K.set(q,fxA.TRACE_PARENT_HEADER,z),Y.traceState)K.set(q,fxA.TRACE_STATE_HEADER,Y.traceState.serialize())}extract(A,q,K){let Y=K.get(q,fxA.TRACE_PARENT_HEADER);if(!Y)return A;let z=Array.isArray(Y)?Y[0]:Y;if(typeof z!=="string")return A;let w=GxA(z);if(!w)return A;w.isRemote=!0;let _=K.get(q,fxA.TRACE_STATE_HEADER);if(_){let $=Array.isArray(_)?_.join(","):_;w.traceState=new gnK.TraceState(typeof $==="string"?$:void 0)}return R41.trace.setSpanContext(A,w)}fields(){return[fxA.TRACE_PARENT_HEADER,fxA.TRACE_STATE_HEADER]}}fxA.W3CTraceContextPropagator=ZxA});var ExA=h((NxA)=>{Object.defineProperty(NxA,"__esModule",{value:!0});NxA.getRPCMetadata=NxA.deleteRPCMetadata=NxA.setRPCMetadata=NxA.RPCType=void 0;var inK=gq(),Ja1=(0,inK.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),nnK;(function(A){A.HTTP="http"})(nnK=NxA.RPCType||(NxA.RPCType={}));function rnK(A,q){return A.setValue(Ja1,q)}NxA.setRPCMetadata=rnK;function onK(A){return A.deleteValue(Ja1)}NxA.deleteRPCMetadata=onK;function anK(A){return A.getValue(Ja1)}NxA.getRPCMetadata=anK});var IxA=h((hxA)=>{Object.defineProperty(hxA,"__esModule",{value:!0});hxA.isPlainObject=void 0;var enK="[object Object]",ArK="[object Null]",qrK="[object Undefined]",KrK=Function.prototype,LxA=KrK.toString,YrK=LxA.call(Object),zrK=Object.getPrototypeOf,yxA=Object.prototype,RxA=yxA.hasOwnProperty,_q6=Symbol?Symbol.toStringTag:void 0,SxA=yxA.toString;function wrK(A){if(!_rK(A)||$rK(A)!==enK)return!1;let q=zrK(A);if(q===null)return!0;let K=RxA.call(q,"constructor")&&q.constructor;return typeof K=="function"&&K instanceof K&&LxA.call(K)===YrK}hxA.isPlainObject=wrK;function _rK(A){return A!=null&&typeof A=="object"}function $rK(A){if(A==null)return A===void 0?qrK:ArK;return _q6&&_q6 in Object(A)?OrK(A):HrK(A)}function OrK(A){let q=RxA.call(A,_q6),K=A[_q6],Y=!1;try{A[_q6]=void 0,Y=!0}catch{}let z=SxA.call(A);if(Y)if(q)A[_q6]=K;else delete A[_q6];return z}function HrK(A){return SxA.call(A)}});var pxA=h((BxA)=>{Object.defineProperty(BxA,"__esModule",{value:!0});BxA.merge=void 0;var xxA=IxA(),jrK=20;function JrK(...A){let q=A.shift(),K=new WeakMap;while(A.length>0)q=uxA(q,A.shift(),0,K);return q}BxA.merge=JrK;function Ma1(A){if(I41(A))return A.slice();return A}function uxA(A,q,K=0,Y){let z;if(K>jrK)return;if(K++,C41(A)||C41(q)||mxA(q))z=Ma1(q);else if(I41(A)){if(z=A.slice(),I41(q))for(let w=0,_=q.length;w<_;w++)z.push(Ma1(q[w]));else if(jh6(q)){let w=Object.keys(q);for(let _=0,$=w.length;_<$;_++){let O=w[_];z[O]=Ma1(q[O])}}}else if(jh6(A))if(jh6(q)){if(!MrK(A,q))return q;z=Object.assign({},A);let w=Object.keys(q);for(let _=0,$=w.length;_<$;_++){let O=w[_],H=q[O];if(C41(H))if(typeof H>"u")delete z[O];else z[O]=H;else{let j=z[O],J=H;if(bxA(A,O,Y)||bxA(q,O,Y))delete z[O];else{if(jh6(j)&&jh6(J)){let M=Y.get(j)||[],D=Y.get(J)||[];M.push({obj:A,key:O}),D.push({obj:q,key:O}),Y.set(j,M),Y.set(J,D)}z[O]=uxA(z[O],H,K,Y)}}}}else z=q;return z}function bxA(A,q,K){let Y=K.get(A[q])||[];for(let z=0,w=Y.length;z<w;z++){let _=Y[z];if(_.key===q&&_.obj===A)return!0}return!1}function I41(A){return Array.isArray(A)}function mxA(A){return typeof A==="function"}function jh6(A){return!C41(A)&&!I41(A)&&!mxA(A)&&typeof A==="object"}function C41(A){return typeof A==="string"||typeof A==="number"||typeof A==="boolean"||typeof A>"u"||A instanceof Date||A instanceof RegExp||A===null}function MrK(A,q){if(!(0,xxA.isPlainObject)(A)||!(0,xxA.isPlainObject)(q))return!1;return!0}});var UxA=h((FxA)=>{Object.defineProperty(FxA,"__esModule",{value:!0});FxA.callWithTimeout=FxA.TimeoutError=void 0;class x41 extends Error{constructor(A){super(A);Object.setPrototypeOf(this,x41.prototype)}}FxA.TimeoutError=x41;function DrK(A,q){let K,Y=new Promise(function(w,_){K=setTimeout(function(){_(new x41("Operation timed out."))},q)});return Promise.race([A,Y]).then((z)=>{return clearTimeout(K),z},(z)=>{throw clearTimeout(K),z})}FxA.callWithTimeout=DrK});var ixA=h((cxA)=>{Object.defineProperty(cxA,"__esModule",{value:!0});cxA.isUrlIgnored=cxA.urlMatches=void 0;function dxA(A,q){if(typeof q==="string")return A===q;else return!!A.match(q)}cxA.urlMatches=dxA;function PrK(A,q){if(!q)return!1;for(let K of q)if(dxA(A,K))return!0;return!1}cxA.isUrlIgnored=PrK});var axA=h((rxA)=>{Object.defineProperty(rxA,"__esModule",{value:!0});rxA.Deferred=void 0;class nxA{_promise;_resolve;_reject;constructor(){this._promise=new Promise((A,q)=>{this._resolve=A,this._reject=q})}get promise(){return this._promise}resolve(A){this._resolve(A)}reject(A){this._reject(A)}}rxA.Deferred=nxA});var AbA=h((txA)=>{Object.defineProperty(txA,"__esModule",{value:!0});txA.BindOnceFuture=void 0;var GrK=axA();class sxA{_callback;_that;_isCalled=!1;_deferred=new GrK.Deferred;constructor(A,q){this._callback=A,this._that=q}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...A){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...A)).then((q)=>this._deferred.resolve(q),(q)=>this._deferred.reject(q))}catch(q){this._deferred.reject(q)}}return this._deferred.promise}}txA.BindOnceFuture=sxA});var zbA=h((KbA)=>{Object.defineProperty(KbA,"__esModule",{value:!0});KbA.diagLogLevelFromString=void 0;var EU=gq(),qbA={ALL:EU.DiagLogLevel.ALL,VERBOSE:EU.DiagLogLevel.VERBOSE,DEBUG:EU.DiagLogLevel.DEBUG,INFO:EU.DiagLogLevel.INFO,WARN:EU.DiagLogLevel.WARN,ERROR:EU.DiagLogLevel.ERROR,NONE:EU.DiagLogLevel.NONE};function ZrK(A){if(A==null)return;let q=qbA[A.toUpperCase()];if(q==null)return EU.diag.warn(`Unknown log level "${A}", expected one of ${Object.keys(qbA)}, using default`),EU.DiagLogLevel.INFO;return q}KbA.diagLogLevelFromString=ZrK});var ObA=h((_bA)=>{Object.defineProperty(_bA,"__esModule",{value:!0});_bA._export=void 0;var wbA=gq(),frK=$h6();function TrK(A,q){return new Promise((K)=>{wbA.context.with((0,frK.suppressTracing)(wbA.context.active()),()=>{A.export(q,(Y)=>{K(Y)})})})}_bA._export=TrK});var k9=h((RK)=>{Object.defineProperty(RK,"__esModule",{value:!0});RK.internal=RK.diagLogLevelFromString=RK.BindOnceFuture=RK.urlMatches=RK.isUrlIgnored=RK.callWithTimeout=RK.TimeoutError=RK.merge=RK.TraceState=RK.unsuppressTracing=RK.suppressTracing=RK.isTracingSuppressed=RK.setRPCMetadata=RK.getRPCMetadata=RK.deleteRPCMetadata=RK.RPCType=RK.parseTraceParent=RK.W3CTraceContextPropagator=RK.TRACE_STATE_HEADER=RK.TRACE_PARENT_HEADER=RK.CompositePropagator=RK.otperformance=RK.getStringListFromEnv=RK.getNumberFromEnv=RK.getBooleanFromEnv=RK.getStringFromEnv=RK._globalThis=RK.SDK_INFO=RK.parseKeyPairsIntoRecord=RK.ExportResultCode=RK.unrefTimer=RK.timeInputToHrTime=RK.millisToHrTime=RK.isTimeInputHrTime=RK.isTimeInput=RK.hrTimeToTimeStamp=RK.hrTimeToNanoseconds=RK.hrTimeToMilliseconds=RK.hrTimeToMicroseconds=RK.hrTimeDuration=RK.hrTime=RK.getTimeOrigin=RK.addHrTimes=RK.loggingErrorHandler=RK.setGlobalErrorHandler=RK.globalErrorHandler=RK.sanitizeAttributes=RK.isAttributeValue=RK.AnchoredClock=RK.W3CBaggagePropagator=void 0;var vrK=ZkA();Object.defineProperty(RK,"W3CBaggagePropagator",{enumerable:!0,get:function(){return vrK.W3CBaggagePropagator}});var VrK=VkA();Object.defineProperty(RK,"AnchoredClock",{enumerable:!0,get:function(){return VrK.AnchoredClock}});var HbA=SkA();Object.defineProperty(RK,"isAttributeValue",{enumerable:!0,get:function(){return HbA.isAttributeValue}});Object.defineProperty(RK,"sanitizeAttributes",{enumerable:!0,get:function(){return HbA.sanitizeAttributes}});var jbA=ukA();Object.defineProperty(RK,"globalErrorHandler",{enumerable:!0,get:function(){return jbA.globalErrorHandler}});Object.defineProperty(RK,"setGlobalErrorHandler",{enumerable:!0,get:function(){return jbA.setGlobalErrorHandler}});var NrK=qa1();Object.defineProperty(RK,"loggingErrorHandler",{enumerable:!0,get:function(){return NrK.loggingErrorHandler}});var $y=sIA();Object.defineProperty(RK,"addHrTimes",{enumerable:!0,get:function(){return $y.addHrTimes}});Object.defineProperty(RK,"getTimeOrigin",{enumerable:!0,get:function(){return $y.getTimeOrigin}});Object.defineProperty(RK,"hrTime",{enumerable:!0,get:function(){return $y.hrTime}});Object.defineProperty(RK,"hrTimeDuration",{enumerable:!0,get:function(){return $y.hrTimeDuration}});Object.defineProperty(RK,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return $y.hrTimeToMicroseconds}});Object.defineProperty(RK,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return $y.hrTimeToMilliseconds}});Object.defineProperty(RK,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return $y.hrTimeToNanoseconds}});Object.defineProperty(RK,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return $y.hrTimeToTimeStamp}});Object.defineProperty(RK,"isTimeInput",{enumerable:!0,get:function(){return $y.isTimeInput}});Object.defineProperty(RK,"isTimeInputHrTime",{enumerable:!0,get:function(){return $y.isTimeInputHrTime}});Object.defineProperty(RK,"millisToHrTime",{enumerable:!0,get:function(){return $y.millisToHrTime}});Object.defineProperty(RK,"timeInputToHrTime",{enumerable:!0,get:function(){return $y.timeInputToHrTime}});var krK=AxA();Object.defineProperty(RK,"unrefTimer",{enumerable:!0,get:function(){return krK.unrefTimer}});var ErK=KxA();Object.defineProperty(RK,"ExportResultCode",{enumerable:!0,get:function(){return ErK.ExportResultCode}});var LrK=to1();Object.defineProperty(RK,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return LrK.parseKeyPairsIntoRecord}});var $q6=Ya1();Object.defineProperty(RK,"SDK_INFO",{enumerable:!0,get:function(){return $q6.SDK_INFO}});Object.defineProperty(RK,"_globalThis",{enumerable:!0,get:function(){return $q6._globalThis}});Object.defineProperty(RK,"getStringFromEnv",{enumerable:!0,get:function(){return $q6.getStringFromEnv}});Object.defineProperty(RK,"getBooleanFromEnv",{enumerable:!0,get:function(){return $q6.getBooleanFromEnv}});Object.defineProperty(RK,"getNumberFromEnv",{enumerable:!0,get:function(){return $q6.getNumberFromEnv}});Object.defineProperty(RK,"getStringListFromEnv",{enumerable:!0,get:function(){return $q6.getStringListFromEnv}});Object.defineProperty(RK,"otperformance",{enumerable:!0,get:function(){return $q6.otperformance}});var yrK=$xA();Object.defineProperty(RK,"CompositePropagator",{enumerable:!0,get:function(){return yrK.CompositePropagator}});var b41=vxA();Object.defineProperty(RK,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return b41.TRACE_PARENT_HEADER}});Object.defineProperty(RK,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return b41.TRACE_STATE_HEADER}});Object.defineProperty(RK,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return b41.W3CTraceContextPropagator}});Object.defineProperty(RK,"parseTraceParent",{enumerable:!0,get:function(){return b41.parseTraceParent}});var u41=ExA();Object.defineProperty(RK,"RPCType",{enumerable:!0,get:function(){return u41.RPCType}});Object.defineProperty(RK,"deleteRPCMetadata",{enumerable:!0,get:function(){return u41.deleteRPCMetadata}});Object.defineProperty(RK,"getRPCMetadata",{enumerable:!0,get:function(){return u41.getRPCMetadata}});Object.defineProperty(RK,"setRPCMetadata",{enumerable:!0,get:function(){return u41.setRPCMetadata}});var Da1=$h6();Object.defineProperty(RK,"isTracingSuppressed",{enumerable:!0,get:function(){return Da1.isTracingSuppressed}});Object.defineProperty(RK,"suppressTracing",{enumerable:!0,get:function(){return Da1.suppressTracing}});Object.defineProperty(RK,"unsuppressTracing",{enumerable:!0,get:function(){return Da1.unsuppressTracing}});var RrK=ja1();Object.defineProperty(RK,"TraceState",{enumerable:!0,get:function(){return RrK.TraceState}});var SrK=pxA();Object.defineProperty(RK,"merge",{enumerable:!0,get:function(){return SrK.merge}});var JbA=UxA();Object.defineProperty(RK,"TimeoutError",{enumerable:!0,get:function(){return JbA.TimeoutError}});Object.defineProperty(RK,"callWithTimeout",{enumerable:!0,get:function(){return JbA.callWithTimeout}});var MbA=ixA();Object.defineProperty(RK,"isUrlIgnored",{enumerable:!0,get:function(){return MbA.isUrlIgnored}});Object.defineProperty(RK,"urlMatches",{enumerable:!0,get:function(){return MbA.urlMatches}});var hrK=AbA();Object.defineProperty(RK,"BindOnceFuture",{enumerable:!0,get:function(){return hrK.BindOnceFuture}});var CrK=zbA();Object.defineProperty(RK,"diagLogLevelFromString",{enumerable:!0,get:function(){return CrK.diagLogLevelFromString}});var IrK=ObA();RK.internal={_export:IrK._export}});var WbA=h((XbA)=>{Object.defineProperty(XbA,"__esModule",{value:!0});XbA.defaultServiceName=void 0;function xrK(){return`unknown_service:${process.argv0}`}XbA.defaultServiceName=xrK});var GbA=h((Xa1)=>{Object.defineProperty(Xa1,"__esModule",{value:!0});Xa1.defaultServiceName=void 0;var brK=WbA();Object.defineProperty(Xa1,"defaultServiceName",{enumerable:!0,get:function(){return brK.defaultServiceName}})});var Wa1=h((Pa1)=>{Object.defineProperty(Pa1,"__esModule",{value:!0});Pa1.defaultServiceName=void 0;var mrK=GbA();Object.defineProperty(Pa1,"defaultServiceName",{enumerable:!0,get:function(){return mrK.defaultServiceName}})});var TbA=h((ZbA)=>{Object.defineProperty(ZbA,"__esModule",{value:!0});ZbA.identity=ZbA.isPromiseLike=void 0;var grK=(A)=>{return A!==null&&typeof A==="object"&&typeof A.then==="function"};ZbA.isPromiseLike=grK;function prK(A){return A}ZbA.identity=prK});var fa1=h((VbA)=>{Object.defineProperty(VbA,"__esModule",{value:!0});VbA.defaultResource=VbA.emptyResource=VbA.resourceFromDetectedResource=VbA.resourceFromAttributes=void 0;var Mh6=gq(),Ga1=k9(),Oq6=zq6(),QrK=Wa1(),Jh6=TbA();class Dh6{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(A,q){let K=new Dh6({},q);return K._rawAttributes=vbA(A),K._asyncAttributesPending=A.filter(([Y,z])=>(0,Jh6.isPromiseLike)(z)).length>0,K}constructor(A,q){let K=A.attributes??{};this._rawAttributes=Object.entries(K).map(([Y,z])=>{if((0,Jh6.isPromiseLike)(z))this._asyncAttributesPending=!0;return[Y,z]}),this._rawAttributes=vbA(this._rawAttributes),this._schemaUrl=lrK(q?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(!this.asyncAttributesPending)return;for(let A=0;A<this._rawAttributes.length;A++){let[q,K]=this._rawAttributes[A];this._rawAttributes[A]=[q,(0,Jh6.isPromiseLike)(K)?await K:K]}this._asyncAttributesPending=!1}get attributes(){if(this.asyncAttributesPending)Mh6.diag.error("Accessing resource attributes before async attributes settled");if(this._memoizedAttributes)return this._memoizedAttributes;let A={};for(let[q,K]of this._rawAttributes){if((0,Jh6.isPromiseLike)(K)){Mh6.diag.debug(`Unsettled resource attribute ${q} skipped`);continue}if(K!=null)A[q]??=K}if(!this._asyncAttributesPending)this._memoizedAttributes=A;return A}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(A){if(A==null)return this;let q=irK(this,A),K=q?{schemaUrl:q}:void 0;return Dh6.FromAttributeList([...A.getRawAttributes(),...this.getRawAttributes()],K)}}function Za1(A,q){return Dh6.FromAttributeList(Object.entries(A),q)}VbA.resourceFromAttributes=Za1;function UrK(A,q){return new Dh6(A,q)}VbA.resourceFromDetectedResource=UrK;function drK(){return Za1({})}VbA.emptyResource=drK;function crK(){return Za1({[Oq6.ATTR_SERVICE_NAME]:(0,QrK.defaultServiceName)(),[Oq6.ATTR_TELEMETRY_SDK_LANGUAGE]:Ga1.SDK_INFO[Oq6.ATTR_TELEMETRY_SDK_LANGUAGE],[Oq6.ATTR_TELEMETRY_SDK_NAME]:Ga1.SDK_INFO[Oq6.ATTR_TELEMETRY_SDK_NAME],[Oq6.ATTR_TELEMETRY_SDK_VERSION]:Ga1.SDK_INFO[Oq6.ATTR_TELEMETRY_SDK_VERSION]})}VbA.defaultResource=crK;function vbA(A){return A.map(([q,K])=>{if((0,Jh6.isPromiseLike)(K))return[q,K.catch((Y)=>{Mh6.diag.debug("promise rejection for resource attribute: %s - %s",q,Y);return})];return[q,K]})}function lrK(A){if(typeof A==="string"||A===void 0)return A;Mh6.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",A);return}function irK(A,q){let K=A?.schemaUrl,Y=q?.schemaUrl,z=K===void 0||K==="",w=Y===void 0||Y==="";if(z)return Y;if(w)return K;if(K===Y)return K;Mh6.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',K,Y);return}});var ybA=h((EbA)=>{Object.defineProperty(EbA,"__esModule",{value:!0});EbA.detectResources=void 0;var kbA=gq(),Ta1=fa1(),arK=(A={})=>{return(A.detectors||[]).map((K)=>{try{let Y=(0,Ta1.resourceFromDetectedResource)(K.detect(A));return kbA.diag.debug(`${K.constructor.name} found resource.`,Y),Y}catch(Y){return kbA.diag.debug(`${K.constructor.name} failed: ${Y.message}`),(0,Ta1.emptyResource)()}}).reduce((K,Y)=>K.merge(Y),(0,Ta1.emptyResource)())};EbA.detectResources=arK});var IbA=h((hbA)=>{Object.defineProperty(hbA,"__esModule",{value:!0});hbA.envDetector=void 0;var srK=gq(),trK=zq6(),RbA=k9();class SbA{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";_ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.";_ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters.";detect(A){let q={},K=(0,RbA.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),Y=(0,RbA.getStringFromEnv)("OTEL_SERVICE_NAME");if(K)try{let z=this._parseResourceAttributes(K);Object.assign(q,z)}catch(z){srK.diag.debug(`EnvDetector failed: ${z.message}`)}if(Y)q[trK.ATTR_SERVICE_NAME]=Y;return{attributes:q}}_parseResourceAttributes(A){if(!A)return{};let q={},K=A.split(this._COMMA_SEPARATOR,-1);for(let Y of K){let z=Y.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(z.length!==2)continue;let[w,_]=z;if(w=w.trim(),_=_.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(w))throw Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(_))throw Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);q[w]=decodeURIComponent(_)}return q}_isValid(A){return A.length<=this._MAX_LENGTH&&this._isBaggageOctetString(A)}_isBaggageOctetString(A){for(let q=0;q<A.length;q++){let K=A.charCodeAt(q);if(K<33||K===44||K===59||K===92||K>126)return!1}return!0}_isValidAndNotEmpty(A){return A.length>0&&this._isValid(A)}}hbA.envDetector=new SbA});var Xh6=h((xbA)=>{Object.defineProperty(xbA,"__esModule",{value:!0});xbA.ATTR_WEBENGINE_VERSION=xbA.ATTR_WEBENGINE_NAME=xbA.ATTR_WEBENGINE_DESCRIPTION=xbA.ATTR_SERVICE_NAMESPACE=xbA.ATTR_SERVICE_INSTANCE_ID=xbA.ATTR_PROCESS_RUNTIME_VERSION=xbA.ATTR_PROCESS_RUNTIME_NAME=xbA.ATTR_PROCESS_RUNTIME_DESCRIPTION=xbA.ATTR_PROCESS_PID=xbA.ATTR_PROCESS_OWNER=xbA.ATTR_PROCESS_EXECUTABLE_PATH=xbA.ATTR_PROCESS_EXECUTABLE_NAME=xbA.ATTR_PROCESS_COMMAND_ARGS=xbA.ATTR_PROCESS_COMMAND=xbA.ATTR_OS_VERSION=xbA.ATTR_OS_TYPE=xbA.ATTR_K8S_POD_NAME=xbA.ATTR_K8S_NAMESPACE_NAME=xbA.ATTR_K8S_DEPLOYMENT_NAME=xbA.ATTR_K8S_CLUSTER_NAME=xbA.ATTR_HOST_TYPE=xbA.ATTR_HOST_NAME=xbA.ATTR_HOST_IMAGE_VERSION=xbA.ATTR_HOST_IMAGE_NAME=xbA.ATTR_HOST_IMAGE_ID=xbA.ATTR_HOST_ID=xbA.ATTR_HOST_ARCH=xbA.ATTR_CONTAINER_NAME=xbA.ATTR_CONTAINER_IMAGE_TAGS=xbA.ATTR_CONTAINER_IMAGE_NAME=xbA.ATTR_CONTAINER_ID=xbA.ATTR_CLOUD_REGION=xbA.ATTR_CLOUD_PROVIDER=xbA.ATTR_CLOUD_AVAILABILITY_ZONE=xbA.ATTR_CLOUD_ACCOUNT_ID=void 0;xbA.ATTR_CLOUD_ACCOUNT_ID="cloud.account.id";xbA.ATTR_CLOUD_AVAILABILITY_ZONE="cloud.availability_zone";xbA.ATTR_CLOUD_PROVIDER="cloud.provider";xbA.ATTR_CLOUD_REGION="cloud.region";xbA.ATTR_CONTAINER_ID="container.id";xbA.ATTR_CONTAINER_IMAGE_NAME="container.image.name";xbA.ATTR_CONTAINER_IMAGE_TAGS="container.image.tags";xbA.ATTR_CONTAINER_NAME="container.name";xbA.ATTR_HOST_ARCH="host.arch";xbA.ATTR_HOST_ID="host.id";xbA.ATTR_HOST_IMAGE_ID="host.image.id";xbA.ATTR_HOST_IMAGE_NAME="host.image.name";xbA.ATTR_HOST_IMAGE_VERSION="host.image.version";xbA.ATTR_HOST_NAME="host.name";xbA.ATTR_HOST_TYPE="host.type";xbA.ATTR_K8S_CLUSTER_NAME="k8s.cluster.name";xbA.ATTR_K8S_DEPLOYMENT_NAME="k8s.deployment.name";xbA.ATTR_K8S_NAMESPACE_NAME="k8s.namespace.name";xbA.ATTR_K8S_POD_NAME="k8s.pod.name";xbA.ATTR_OS_TYPE="os.type";xbA.ATTR_OS_VERSION="os.version";xbA.ATTR_PROCESS_COMMAND="process.command";xbA.ATTR_PROCESS_COMMAND_ARGS="process.command_args";xbA.ATTR_PROCESS_EXECUTABLE_NAME="process.executable.name";xbA.ATTR_PROCESS_EXECUTABLE_PATH="process.executable.path";xbA.ATTR_PROCESS_OWNER="process.owner";xbA.ATTR_PROCESS_PID="process.pid";xbA.ATTR_PROCESS_RUNTIME_DESCRIPTION="process.runtime.description";xbA.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name";xbA.ATTR_PROCESS_RUNTIME_VERSION="process.runtime.version";xbA.ATTR_SERVICE_INSTANCE_ID="service.instance.id";xbA.ATTR_SERVICE_NAMESPACE="service.namespace";xbA.ATTR_WEBENGINE_DESCRIPTION="webengine.description";xbA.ATTR_WEBENGINE_NAME="webengine.name";xbA.ATTR_WEBENGINE_VERSION="webengine.version"});var m41=h((ubA)=>{Object.defineProperty(ubA,"__esModule",{value:!0});ubA.execAsync=void 0;var xoK=u6("child_process"),boK=u6("util");ubA.execAsync=boK.promisify(xoK.exec)});var pbA=h((BbA)=>{Object.defineProperty(BbA,"__esModule",{value:!0});BbA.getMachineId=void 0;var uoK=m41(),moK=gq();async function BoK(){try{let q=(await(0,uoK.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
`).find((Y)=>Y.includes("IOPlatformUUID"));if(!q)return;let K=q.split('" = "');if(K.length===2)return K[1].slice(0,-1)}catch(A){moK.diag.debug(`error reading machine id: ${A}`)}return}BbA.getMachineId=BoK});var UbA=h((FbA)=>{Object.defineProperty(FbA,"__esModule",{value:!0});FbA.getMachineId=void 0;var goK=u6("fs"),poK=gq();async function FoK(){let A=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let q of A)try{return(await goK.promises.readFile(q,{encoding:"utf8"})).trim()}catch(K){poK.diag.debug(`error reading machine id: ${K}`)}return}FbA.getMachineId=FoK});var ibA=h((cbA)=>{Object.defineProperty(cbA,"__esModule",{value:!0});cbA.getMachineId=void 0;var QoK=u6("fs"),UoK=m41(),dbA=gq();async function doK(){try{return(await QoK.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(A){dbA.diag.debug(`error reading machine id: ${A}`)}try{return(await(0,UoK.execAsync)("kenv -q smbios.system.uuid")).stdout.trim()}catch(A){dbA.diag.debug(`error reading machine id: ${A}`)}return}cbA.getMachineId=doK});var abA=h((rbA)=>{Object.defineProperty(rbA,"__esModule",{value:!0});rbA.getMachineId=void 0;var nbA=u6("process"),coK=m41(),loK=gq();async function ioK(){let q="%windir%\\System32\\REG.exe";if(nbA.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in nbA.env)q="%windir%\\sysnative\\cmd.exe /c "+q;try{let Y=(await(0,coK.execAsync)(`${q} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split("REG_SZ");if(Y.length===2)return Y[1].trim()}catch(K){loK.diag.debug(`error reading machine id: ${K}`)}return}rbA.getMachineId=ioK});var ebA=h((sbA)=>{Object.defineProperty(sbA,"__esModule",{value:!0});sbA.getMachineId=void 0;var noK=gq();async function roK(){noK.diag.debug("could not read machine-id: unsupported platform");return}sbA.getMachineId=roK});var KuA=h((AuA)=>{Object.defineProperty(AuA,"__esModule",{value:!0});AuA.getMachineId=void 0;var ooK=u6("process"),Hq6;async function aoK(){if(!Hq6)switch(ooK.platform){case"darwin":Hq6=(await Promise.resolve().then(() => q6(pbA()))).getMachineId;break;case"linux":Hq6=(await Promise.resolve().then(() => q6(UbA()))).getMachineId;break;case"freebsd":Hq6=(await Promise.resolve().then(() => q6(ibA()))).getMachineId;break;case"win32":Hq6=(await Promise.resolve().then(() => q6(abA()))).getMachineId;break;default:Hq6=(await Promise.resolve().then(() => q6(ebA()))).getMachineId;break}return Hq6()}AuA.getMachineId=aoK});var va1=h((YuA)=>{Object.defineProperty(YuA,"__esModule",{value:!0});YuA.normalizeType=YuA.normalizeArch=void 0;var soK=(A)=>{switch(A){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return A}};YuA.normalizeArch=soK;var toK=(A)=>{switch(A){case"sunos":return"solaris";case"win32":return"windows";default:return A}};YuA.normalizeType=toK});var HuA=h(($uA)=>{Object.defineProperty($uA,"__esModule",{value:!0});$uA.hostDetector=void 0;var Va1=Xh6(),wuA=u6("os"),AaK=KuA(),qaK=va1();class _uA{detect(A){return{attributes:{[Va1.ATTR_HOST_NAME]:(0,wuA.hostname)(),[Va1.ATTR_HOST_ARCH]:(0,qaK.normalizeArch)((0,wuA.arch)()),[Va1.ATTR_HOST_ID]:(0,AaK.getMachineId)()}}}}$uA.hostDetector=new _uA});var PuA=h((DuA)=>{Object.defineProperty(DuA,"__esModule",{value:!0});DuA.osDetector=void 0;var juA=Xh6(),JuA=u6("os"),KaK=va1();class MuA{detect(A){return{attributes:{[juA.ATTR_OS_TYPE]:(0,KaK.normalizeType)((0,JuA.platform)()),[juA.ATTR_OS_VERSION]:(0,JuA.release)()}}}}DuA.osDetector=new MuA});var fuA=h((GuA)=>{Object.defineProperty(GuA,"__esModule",{value:!0});GuA.processDetector=void 0;var YaK=gq(),LU=Xh6(),zaK=u6("os");class WuA{detect(A){let q={[LU.ATTR_PROCESS_PID]:process.pid,[LU.ATTR_PROCESS_EXECUTABLE_NAME]:process.title,[LU.ATTR_PROCESS_EXECUTABLE_PATH]:process.execPath,[LU.ATTR_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[LU.ATTR_PROCESS_RUNTIME_VERSION]:process.versions.node,[LU.ATTR_PROCESS_RUNTIME_NAME]:"nodejs",[LU.ATTR_PROCESS_RUNTIME_DESCRIPTION]:"Node.js"};if(process.argv.length>1)q[LU.ATTR_PROCESS_COMMAND]=process.argv[1];try{let K=zaK.userInfo();q[LU.ATTR_PROCESS_OWNER]=K.username}catch(K){YaK.diag.debug(`error obtaining process owner: ${K}`)}return{attributes:q}}}GuA.processDetector=new WuA});var NuA=h((vuA)=>{Object.defineProperty(vuA,"__esModule",{value:!0});vuA.serviceInstanceIdDetector=void 0;var waK=Xh6(),_aK=u6("crypto");class TuA{detect(A){return{attributes:{[waK.ATTR_SERVICE_INSTANCE_ID]:(0,_aK.randomUUID)()}}}}vuA.serviceInstanceIdDetector=new TuA});var kuA=h((qJ6)=>{Object.defineProperty(qJ6,"__esModule",{value:!0});qJ6.serviceInstanceIdDetector=qJ6.processDetector=qJ6.osDetector=qJ6.hostDetector=void 0;var $aK=HuA();Object.defineProperty(qJ6,"hostDetector",{enumerable:!0,get:function(){return $aK.hostDetector}});var OaK=PuA();Object.defineProperty(qJ6,"osDetector",{enumerable:!0,get:function(){return OaK.osDetector}});var HaK=fuA();Object.defineProperty(qJ6,"processDetector",{enumerable:!0,get:function(){return HaK.processDetector}});var jaK=NuA();Object.defineProperty(qJ6,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return jaK.serviceInstanceIdDetector}})});var EuA=h((KJ6)=>{Object.defineProperty(KJ6,"__esModule",{value:!0});KJ6.serviceInstanceIdDetector=KJ6.processDetector=KJ6.osDetector=KJ6.hostDetector=void 0;var B41=kuA();Object.defineProperty(KJ6,"hostDetector",{enumerable:!0,get:function(){return B41.hostDetector}});Object.defineProperty(KJ6,"osDetector",{enumerable:!0,get:function(){return B41.osDetector}});Object.defineProperty(KJ6,"processDetector",{enumerable:!0,get:function(){return B41.processDetector}});Object.defineProperty(KJ6,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return B41.serviceInstanceIdDetector}})});var RuA=h((LuA)=>{Object.defineProperty(LuA,"__esModule",{value:!0});LuA.noopDetector=LuA.NoopDetector=void 0;class Na1{detect(){return{attributes:{}}}}LuA.NoopDetector=Na1;LuA.noopDetector=new Na1});var SuA=h((va)=>{Object.defineProperty(va,"__esModule",{value:!0});va.noopDetector=va.serviceInstanceIdDetector=va.processDetector=va.osDetector=va.hostDetector=va.envDetector=void 0;var XaK=IbA();Object.defineProperty(va,"envDetector",{enumerable:!0,get:function(){return XaK.envDetector}});var g41=EuA();Object.defineProperty(va,"hostDetector",{enumerable:!0,get:function(){return g41.hostDetector}});Object.defineProperty(va,"osDetector",{enumerable:!0,get:function(){return g41.osDetector}});Object.defineProperty(va,"processDetector",{enumerable:!0,get:function(){return g41.processDetector}});Object.defineProperty(va,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return g41.serviceInstanceIdDetector}});var PaK=RuA();Object.defineProperty(va,"noopDetector",{enumerable:!0,get:function(){return PaK.noopDetector}})});var YJ6=h((Oy)=>{Object.defineProperty(Oy,"__esModule",{value:!0});Oy.defaultServiceName=Oy.emptyResource=Oy.defaultResource=Oy.resourceFromAttributes=Oy.serviceInstanceIdDetector=Oy.processDetector=Oy.osDetector=Oy.hostDetector=Oy.envDetector=Oy.detectResources=void 0;var GaK=ybA();Object.defineProperty(Oy,"detectResources",{enumerable:!0,get:function(){return GaK.detectResources}});var Ph6=SuA();Object.defineProperty(Oy,"envDetector",{enumerable:!0,get:function(){return Ph6.envDetector}});Object.defineProperty(Oy,"hostDetector",{enumerable:!0,get:function(){return Ph6.hostDetector}});Object.defineProperty(Oy,"osDetector",{enumerable:!0,get:function(){return Ph6.osDetector}});Object.defineProperty(Oy,"processDetector",{enumerable:!0,get:function(){return Ph6.processDetector}});Object.defineProperty(Oy,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return Ph6.serviceInstanceIdDetector}});var ka1=fa1();Object.defineProperty(Oy,"resourceFromAttributes",{enumerable:!0,get:function(){return ka1.resourceFromAttributes}});Object.defineProperty(Oy,"defaultResource",{enumerable:!0,get:function(){return ka1.defaultResource}});Object.defineProperty(Oy,"emptyResource",{enumerable:!0,get:function(){return ka1.emptyResource}});var ZaK=Wa1();Object.defineProperty(Oy,"defaultServiceName",{enumerable:!0,get:function(){return ZaK.defaultServiceName}})});var xuA=h((CuA)=>{Object.defineProperty(CuA,"__esModule",{value:!0});CuA.LogRecordImpl=void 0;var jq6=gq(),p41=k9();class huA{hrTime;hrTimeObserved;spanContext;resource;instrumentationScope;attributes={};_severityText;_severityNumber;_body;_eventName;totalAttributesCount=0;_isReadonly=!1;_logRecordLimits;set severityText(A){if(this._isLogRecordReadonly())return;this._severityText=A}get severityText(){return this._severityText}set severityNumber(A){if(this._isLogRecordReadonly())return;this._severityNumber=A}get severityNumber(){return this._severityNumber}set body(A){if(this._isLogRecordReadonly())return;this._body=A}get body(){return this._body}get eventName(){return this._eventName}set eventName(A){if(this._isLogRecordReadonly())return;this._eventName=A}get droppedAttributesCount(){return this.totalAttributesCount-Object.keys(this.attributes).length}constructor(A,q,K){let{timestamp:Y,observedTimestamp:z,eventName:w,severityNumber:_,severityText:$,body:O,attributes:H={},context:j}=K,J=Date.now();if(this.hrTime=(0,p41.timeInputToHrTime)(Y??J),this.hrTimeObserved=(0,p41.timeInputToHrTime)(z??J),j){let M=jq6.trace.getSpanContext(j);if(M&&jq6.isSpanContextValid(M))this.spanContext=M}this.severityNumber=_,this.severityText=$,this.body=O,this.resource=A.resource,this.instrumentationScope=q,this._logRecordLimits=A.logRecordLimits,this._eventName=w,this.setAttributes(H)}setAttribute(A,q){if(this._isLogRecordReadonly())return this;if(q===null)return this;if(A.length===0)return jq6.diag.warn(`Invalid attribute key: ${A}`),this;if(!(0,p41.isAttributeValue)(q)&&!(typeof q==="object"&&!Array.isArray(q)&&Object.keys(q).length>0))return jq6.diag.warn(`Invalid attribute value set for key: ${A}`),this;if(this.totalAttributesCount+=1,Object.keys(this.attributes).length>=this._logRecordLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,A)){if(this.droppedAttributesCount===1)jq6.diag.warn("Dropping extra attributes.");return this}if((0,p41.isAttributeValue)(q))this.attributes[A]=this._truncateToSize(q);else this.attributes[A]=q;return this}setAttributes(A){for(let[q,K]of Object.entries(A))this.setAttribute(q,K);return this}setBody(A){return this.body=A,this}setEventName(A){return this.eventName=A,this}setSeverityNumber(A){return this.severityNumber=A,this}setSeverityText(A){return this.severityText=A,this}_makeReadonly(){this._isReadonly=!0}_truncateToSize(A){let q=this._logRecordLimits.attributeValueLengthLimit;if(q<=0)return jq6.diag.warn(`Attribute value limit must be positive, got ${q}`),A;if(typeof A==="string")return this._truncateToLimitUtil(A,q);if(Array.isArray(A))return A.map((K)=>typeof K==="string"?this._truncateToLimitUtil(K,q):K);return A}_truncateToLimitUtil(A,q){if(A.length<=q)return A;return A.substring(0,q)}_isLogRecordReadonly(){if(this._isReadonly)jq6.diag.warn("Can not execute the operation on emitted log record");return this._isReadonly}}CuA.LogRecordImpl=huA});var BuA=h((uuA)=>{Object.defineProperty(uuA,"__esModule",{value:!0});uuA.Logger=void 0;var TaK=gq(),vaK=xuA();class buA{instrumentationScope;_sharedState;constructor(A,q){this.instrumentationScope=A,this._sharedState=q}emit(A){let q=A.context||TaK.context.active(),K=new vaK.LogRecordImpl(this._sharedState,this.instrumentationScope,{context:q,...A});this._sharedState.activeProcessor.onEmit(K,q),K._makeReadonly()}}uuA.Logger=buA});var FuA=h((guA)=>{Object.defineProperty(guA,"__esModule",{value:!0});guA.reconfigureLimits=guA.loadDefaultConfig=void 0;var zJ6=k9();function VaK(){return{forceFlushTimeoutMillis:30000,logRecordLimits:{attributeValueLengthLimit:(0,zJ6.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,zJ6.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT")??128},includeTraceContext:!0}}guA.loadDefaultConfig=VaK;function NaK(A){return{attributeCountLimit:A.attributeCountLimit??(0,zJ6.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT")??(0,zJ6.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128,attributeValueLengthLimit:A.attributeValueLengthLimit??(0,zJ6.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,zJ6.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0}}guA.reconfigureLimits=NaK});var cuA=h((UuA)=>{Object.defineProperty(UuA,"__esModule",{value:!0});UuA.NoopLogRecordProcessor=void 0;class QuA{forceFlush(){return Promise.resolve()}onEmit(A,q){}shutdown(){return Promise.resolve()}}UuA.NoopLogRecordProcessor=QuA});var ruA=h((iuA)=>{Object.defineProperty(iuA,"__esModule",{value:!0});iuA.MultiLogRecordProcessor=void 0;var EaK=k9();class luA{processors;forceFlushTimeoutMillis;constructor(A,q){this.processors=A,this.forceFlushTimeoutMillis=q}async forceFlush(){let A=this.forceFlushTimeoutMillis;await Promise.all(this.processors.map((q)=>(0,EaK.callWithTimeout)(q.forceFlush(),A)))}onEmit(A,q){this.processors.forEach((K)=>K.onEmit(A,q))}async shutdown(){await Promise.all(this.processors.map((A)=>A.shutdown()))}}iuA.MultiLogRecordProcessor=luA});var tuA=h((auA)=>{Object.defineProperty(auA,"__esModule",{value:!0});auA.LoggerProviderSharedState=void 0;var LaK=cuA(),yaK=ruA();class ouA{resource;forceFlushTimeoutMillis;logRecordLimits;processors;loggers=new Map;activeProcessor;registeredLogRecordProcessors=[];constructor(A,q,K,Y){if(this.resource=A,this.forceFlushTimeoutMillis=q,this.logRecordLimits=K,this.processors=Y,Y.length>0)this.registeredLogRecordProcessors=Y,this.activeProcessor=new yaK.MultiLogRecordProcessor(this.registeredLogRecordProcessors,this.forceFlushTimeoutMillis);else this.activeProcessor=new LaK.NoopLogRecordProcessor}}auA.LoggerProviderSharedState=ouA});var wmA=h((KmA)=>{Object.defineProperty(KmA,"__esModule",{value:!0});KmA.LoggerProvider=KmA.DEFAULT_LOGGER_NAME=void 0;var F41=gq(),RaK=oo1(),SaK=YJ6(),euA=k9(),haK=BuA(),AmA=FuA(),CaK=tuA();KmA.DEFAULT_LOGGER_NAME="unknown";class qmA{_shutdownOnce;_sharedState;constructor(A={}){let q=(0,euA.merge)({},(0,AmA.loadDefaultConfig)(),A),K=A.resource??(0,SaK.defaultResource)();this._sharedState=new CaK.LoggerProviderSharedState(K,q.forceFlushTimeoutMillis,(0,AmA.reconfigureLimits)(q.logRecordLimits),A?.processors??[]),this._shutdownOnce=new euA.BindOnceFuture(this._shutdown,this)}getLogger(A,q,K){if(this._shutdownOnce.isCalled)return F41.diag.warn("A shutdown LoggerProvider cannot provide a Logger"),RaK.NOOP_LOGGER;if(!A)F41.diag.warn("Logger requested without instrumentation scope name.");let Y=A||KmA.DEFAULT_LOGGER_NAME,z=`${Y}@${q||""}:${K?.schemaUrl||""}`;if(!this._sharedState.loggers.has(z))this._sharedState.loggers.set(z,new haK.Logger({name:Y,version:q,schemaUrl:K?.schemaUrl},this._sharedState));return this._sharedState.loggers.get(z)}forceFlush(){if(this._shutdownOnce.isCalled)return F41.diag.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise;return this._sharedState.activeProcessor.forceFlush()}shutdown(){if(this._shutdownOnce.isCalled)return F41.diag.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise;return this._shutdownOnce.call()}_shutdown(){return this._sharedState.activeProcessor.shutdown()}}KmA.LoggerProvider=qmA});var jmA=h((OmA)=>{Object.defineProperty(OmA,"__esModule",{value:!0});OmA.ConsoleLogRecordExporter=void 0;var _mA=k9();class $mA{export(A,q){this._sendLogRecords(A,q)}shutdown(){return Promise.resolve()}_exportInfo(A){return{resource:{attributes:A.resource.attributes},instrumentationScope:A.instrumentationScope,timestamp:(0,_mA.hrTimeToMicroseconds)(A.hrTime),traceId:A.spanContext?.traceId,spanId:A.spanContext?.spanId,traceFlags:A.spanContext?.traceFlags,severityText:A.severityText,severityNumber:A.severityNumber,body:A.body,attributes:A.attributes}}_sendLogRecords(A,q){for(let K of A)console.dir(this._exportInfo(K),{depth:3});q?.({code:_mA.ExportResultCode.SUCCESS})}}OmA.ConsoleLogRecordExporter=$mA});var XmA=h((MmA)=>{Object.defineProperty(MmA,"__esModule",{value:!0});MmA.SimpleLogRecordProcessor=void 0;var wJ6=k9();class JmA{_exporter;_shutdownOnce;_unresolvedExports;constructor(A){this._exporter=A,this._shutdownOnce=new wJ6.BindOnceFuture(this._shutdown,this),this._unresolvedExports=new Set}onEmit(A){if(this._shutdownOnce.isCalled)return;let q=()=>wJ6.internal._export(this._exporter,[A]).then((K)=>{if(K.code!==wJ6.ExportResultCode.SUCCESS)(0,wJ6.globalErrorHandler)(K.error??Error(`SimpleLogRecordProcessor: log record export failed (status ${K})`))}).catch(wJ6.globalErrorHandler);if(A.resource.asyncAttributesPending){let K=A.resource.waitForAsyncAttributes?.().then(()=>{return this._unresolvedExports.delete(K),q()},wJ6.globalErrorHandler);if(K!=null)this._unresolvedExports.add(K)}else q()}async forceFlush(){await Promise.all(Array.from(this._unresolvedExports))}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}MmA.SimpleLogRecordProcessor=JmA});var fmA=h((GmA)=>{Object.defineProperty(GmA,"__esModule",{value:!0});GmA.InMemoryLogRecordExporter=void 0;var PmA=k9();class WmA{_finishedLogRecords=[];_stopped=!1;export(A,q){if(this._stopped)return q({code:PmA.ExportResultCode.FAILED,error:Error("Exporter has been stopped")});this._finishedLogRecords.push(...A),q({code:PmA.ExportResultCode.SUCCESS})}shutdown(){return this._stopped=!0,this.reset(),Promise.resolve()}getFinishedLogRecords(){return this._finishedLogRecords}reset(){this._finishedLogRecords=[]}}GmA.InMemoryLogRecordExporter=WmA});var NmA=h((vmA)=>{Object.defineProperty(vmA,"__esModule",{value:!0});vmA.BatchLogRecordProcessorBase=void 0;var IaK=gq(),Hy=k9();class TmA{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedLogRecords=[];_timer;_shutdownOnce;constructor(A,q){if(this._exporter=A,this._maxExportBatchSize=q?.maxExportBatchSize??(0,Hy.getNumberFromEnv)("OTEL_BLRP_MAX_EXPORT_BATCH_SIZE")??512,this._maxQueueSize=q?.maxQueueSize??(0,Hy.getNumberFromEnv)("OTEL_BLRP_MAX_QUEUE_SIZE")??2048,this._scheduledDelayMillis=q?.scheduledDelayMillis??(0,Hy.getNumberFromEnv)("OTEL_BLRP_SCHEDULE_DELAY")??5000,this._exportTimeoutMillis=q?.exportTimeoutMillis??(0,Hy.getNumberFromEnv)("OTEL_BLRP_EXPORT_TIMEOUT")??30000,this._shutdownOnce=new Hy.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize)IaK.diag.warn("BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize}onEmit(A){if(this._shutdownOnce.isCalled)return;this._addToBuffer(A)}forceFlush(){if(this._shutdownOnce.isCalled)return this._shutdownOnce.promise;return this._flushAll()}shutdown(){return this._shutdownOnce.call()}async _shutdown(){this.onShutdown(),await this._flushAll(),await this._exporter.shutdown()}_addToBuffer(A){if(this._finishedLogRecords.length>=this._maxQueueSize)return;this._finishedLogRecords.push(A),this._maybeStartTimer()}_flushAll(){return new Promise((A,q)=>{let K=[],Y=Math.ceil(this._finishedLogRecords.length/this._maxExportBatchSize);for(let z=0;z<Y;z++)K.push(this._flushOneBatch());Promise.all(K).then(()=>{A()}).catch(q)})}_flushOneBatch(){if(this._clearTimer(),this._finishedLogRecords.length===0)return Promise.resolve();return new Promise((A,q)=>{(0,Hy.callWithTimeout)(this._export(this._finishedLogRecords.splice(0,this._maxExportBatchSize)),this._exportTimeoutMillis).then(()=>A()).catch(q)})}_maybeStartTimer(){if(this._isExporting)return;let A=()=>{this._isExporting=!0,this._flushOneBatch().then(()=>{if(this._isExporting=!1,this._finishedLogRecords.length>0)this._clearTimer(),this._maybeStartTimer()}).catch((q)=>{this._isExporting=!1,(0,Hy.globalErrorHandler)(q)})};if(this._finishedLogRecords.length>=this._maxExportBatchSize)return A();if(this._timer!==void 0)return;if(this._timer=setTimeout(()=>A(),this._scheduledDelayMillis),typeof this._timer!=="number")this._timer.unref()}_clearTimer(){if(this._timer!==void 0)clearTimeout(this._timer),this._timer=void 0}_export(A){let q=()=>Hy.internal._export(this._exporter,A).then((Y)=>{if(Y.code!==Hy.ExportResultCode.SUCCESS)(0,Hy.globalErrorHandler)(Y.error??Error(`BatchLogRecordProcessor: log record export failed (status ${Y})`))}).catch(Hy.globalErrorHandler),K=A.map((Y)=>Y.resource).filter((Y)=>Y.asyncAttributesPending);if(K.length===0)return q();else return Promise.all(K.map((Y)=>Y.waitForAsyncAttributes?.())).then(q,Hy.globalErrorHandler)}}vmA.BatchLogRecordProcessorBase=TmA});var ymA=h((EmA)=>{Object.defineProperty(EmA,"__esModule",{value:!0});EmA.BatchLogRecordProcessor=void 0;var xaK=NmA();class kmA extends xaK.BatchLogRecordProcessorBase{onShutdown(){}}EmA.BatchLogRecordProcessor=kmA});var RmA=h((Ea1)=>{Object.defineProperty(Ea1,"__esModule",{value:!0});Ea1.BatchLogRecordProcessor=void 0;var baK=ymA();Object.defineProperty(Ea1,"BatchLogRecordProcessor",{enumerable:!0,get:function(){return baK.BatchLogRecordProcessor}})});var SmA=h((La1)=>{Object.defineProperty(La1,"__esModule",{value:!0});La1.BatchLogRecordProcessor=void 0;var maK=RmA();Object.defineProperty(La1,"BatchLogRecordProcessor",{enumerable:!0,get:function(){return maK.BatchLogRecordProcessor}})});var ya1=h((Jq6)=>{Object.defineProperty(Jq6,"__esModule",{value:!0});Jq6.BatchLogRecordProcessor=Jq6.InMemoryLogRecordExporter=Jq6.SimpleLogRecordProcessor=Jq6.ConsoleLogRecordExporter=Jq6.LoggerProvider=void 0;var gaK=wmA();Object.defineProperty(Jq6,"LoggerProvider",{enumerable:!0,get:function(){return gaK.LoggerProvider}});var paK=jmA();Object.defineProperty(Jq6,"ConsoleLogRecordExporter",{enumerable:!0,get:function(){return paK.ConsoleLogRecordExporter}});var FaK=XmA();Object.defineProperty(Jq6,"SimpleLogRecordProcessor",{enumerable:!0,get:function(){return FaK.SimpleLogRecordProcessor}});var QaK=fmA();Object.defineProperty(Jq6,"InMemoryLogRecordExporter",{enumerable:!0,get:function(){return QaK.InMemoryLogRecordExporter}});var UaK=SmA();Object.defineProperty(Jq6,"BatchLogRecordProcessor",{enumerable:!0,get:function(){return UaK.BatchLogRecordProcessor}})});async function hmA(A,q=10){if(process.platform==="win32"){let z=`
      $pid = ${String(A)}
      $ancestors = @()
      for ($i = 0; $i -lt ${q}; $i++) {
        $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$pid" -ErrorAction SilentlyContinue
        if (-not $proc -or -not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
        $pid = $proc.ParentProcessId
        $ancestors += $pid
      }
      $ancestors -join ','
    `.trim(),w=await Y7("powershell.exe",["-NoProfile","-Command",z],{timeout:3000});if(w.code!==0||!w.stdout?.trim())return[];return w.stdout.trim().split(",").filter(Boolean).map((_)=>parseInt(_,10)).filter((_)=>!isNaN(_))}let K=`pid=${String(A)}; for i in $(seq 1 ${q}); do ppid=$(ps -o ppid= -p $pid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; echo $ppid; pid=$ppid; done`,Y=await Y7("sh",["-c",K],{timeout:3000});if(Y.code!==0||!Y.stdout?.trim())return[];return Y.stdout.trim().split(`
`).filter(Boolean).map((z)=>parseInt(z,10)).filter((z)=>!isNaN(z))}function CmA(A){try{let q=String(A),K=process.platform==="win32"?`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \\"ProcessId=${q}\\").CommandLine"`:`ps -o command= -p ${q}`,Y=Xv(K,{timeout:1000});return Y?Y.trim():null}catch{return null}}async function ImA(A,q=10){if(process.platform==="win32"){let z=`
      $currentPid = ${String(A)}
      $commands = @()
      for ($i = 0; $i -lt ${q}; $i++) {
        $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$currentPid" -ErrorAction SilentlyContinue
        if (-not $proc) { break }
        if ($proc.CommandLine) { $commands += $proc.CommandLine }
        if (-not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
        $currentPid = $proc.ParentProcessId
      }
      $commands -join [char]0
    `.trim(),w=await Y7("powershell.exe",["-NoProfile","-Command",z],{timeout:3000});if(w.code!==0||!w.stdout?.trim())return[];return w.stdout.split("\x00").filter(Boolean)}let K=`currentpid=${String(A)}; for i in $(seq 1 ${q}); do cmd=$(ps -o command= -p $currentpid 2>/dev/null); if [ -n "$cmd" ]; then printf '%s\\0' "$cmd"; fi; ppid=$(ps -o ppid= -p $currentpid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; currentpid=$ppid; done`,Y=await Y7("sh",["-c",K],{timeout:3000});if(Y.code!==0||!Y.stdout?.trim())return[];return Y.stdout.split("\x00").filter(Boolean)}var Q41=E(()=>{dq()});import{stat as laK}from"fs/promises";function raK(){if(process.platform!=="linux")return!1;return Ra1??!1}async function xmA(){if(Mq6!==void 0)return Mq6;if(process.platform==="darwin")return Mq6=null,null;try{let A=await ImA(process.pid,10);for(let q of A){let K=q.toLowerCase();for(let Y of sn1)if(K.includes(Y))return Mq6=Y,Y}}catch{}return Mq6=null,null}async function oaK(){if(process.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"){if(e8.platform!=="darwin")return await xmA()||"pycharm"}return e8.terminal}function aaK(){if(process.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"){if(e8.platform!=="darwin"){if(Mq6!==void 0)return Mq6||"pycharm";return"pycharm"}}return e8.terminal}async function Sa1(){if(process.env.TERMINAL_EMULATOR==="JetBrains-JediTerm")await xmA()}var iaK,naK=()=>{return process.platform==="linux"&&process.env.CLAUDE_CODE_BUBBLEWRAP==="1"},Ra1=null,Mq6,Wv;var Va=E(()=>{dq();Q41();Rq();o5();iaK=k8(async()=>{let{code:A}=await G8("test",["-f","/.dockerenv"]);if(A!==0)return!1;return process.platform==="linux"});if(process.platform==="linux"){let A=process.arch==="x64"?"x86_64":"aarch64";laK(`/lib/libc.musl-${A}.so.1`).then(()=>{Ra1=!0},()=>{Ra1=!1})}Wv={...e8,terminal:aaK(),getIsDocker:iaK,getIsBubblewrapSandbox:naK,isMuslEnvironment:raK,getTerminalWithJetBrainsDetectionAsync:oaK,initJetBrainsDetection:Sa1}});var U41="claude-code-20250219",bmA="interleaved-thinking-2025-05-14",Na="context-1m-2025-08-07",d41="context-management-2025-06-27",ka="structured-outputs-2025-12-15",ha1="web-search-2025-03-05",c41="tool-examples-2025-10-29",umA="advanced-tool-use-2025-11-20",mmA="tool-search-tool-2025-10-19",Ca1="effort-2025-11-24",BmA="adaptive-thinking-2026-01-28",Wh6="prompt-caching-scope-2026-01-05",gmA="fast-mode-2026-02-01",pmA="redact-thinking-2026-02-12",Ia1,xa1;var Dq6=E(()=>{Ia1=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19","tool-examples-2025-10-29"]),xa1=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function S7(){return w1(process.env.CLAUDE_CODE_USE_BEDROCK)?"bedrock":w1(process.env.CLAUDE_CODE_USE_VERTEX)?"vertex":w1(process.env.CLAUDE_CODE_USE_FOUNDRY)?"foundry":"firstParty"}function Xq6(){return S7()}function _J6(){let A=process.env.ANTHROPIC_BASE_URL;if(!A)return!0;try{let q=new URL(A).host;return["api.anthropic.com"].includes(q)}catch{return!1}}var Aw=E(()=>{Z8()});function jy(){let A=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",q=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claude-cli/${{ISSUES_EXPLAINER:"report the issue at https://github.com/anthropics/claude-code/issues",PACKAGE_URL:"@anthropic-ai/claude-code",README_URL:"https://code.claude.com/docs/en/overview",VERSION:"2.1.69",FEEDBACK_CHANNEL:"https://github.com/anthropics/claude-code/issues",BUILD_TIME:"2026-03-04T21:45:14Z"}.VERSION} (external, ${process.env.CLAUDE_CODE_ENTRYPOINT}${A}${q})`}function Ea(){let A=[];if(process.env.CLAUDE_CODE_ENTRYPOINT)A.push(process.env.CLAUDE_CODE_ENTRYPOINT);if(process.env.CLAUDE_AGENT_SDK_VERSION)A.push(`agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`);if(process.env.CLAUDE_AGENT_SDK_CLIENT_APP)A.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);let q=A.length>0?` (${A.join(", ")})`:"";return`claude-code/${{ISSUES_EXPLAINER:"report the issue at https://github.com/anthropics/claude-code/issues",PACKAGE_URL:"@anthropic-ai/claude-code",README_URL:"https://code.claude.com/docs/en/overview",VERSION:"2.1.69",FEEDBACK_CHANNEL:"https://github.com/anthropics/claude-code/issues",BUILD_TIME:"2026-03-04T21:45:14Z"}.VERSION}${q}`}function Hj(){return`claude-code/${{ISSUES_EXPLAINER:"report the issue at https://github.com/anthropics/claude-code/issues",PACKAGE_URL:"@anthropic-ai/claude-code",README_URL:"https://code.claude.com/docs/en/overview",VERSION:"2.1.69",FEEDBACK_CHANNEL:"https://github.com/anthropics/claude-code/issues",BUILD_TIME:"2026-03-04T21:45:14Z"}.VERSION}`}function TO(){if(eA()){let q=l7();if(!q?.accessToken)return{headers:{},error:"No OAuth token available"};return{headers:{Authorization:`Bearer ${q.accessToken}`,"anthropic-beta":tZ}}}let A=wk();if(!A)return{headers:{},error:"No API key available"};return{headers:{"x-api-key":A}}}var NX=E(()=>{xA();D9()});async function taK(){if(process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC)return null;if(!eA()||!Yf())return null;let A=`${s7().BASE_API_URL}/api/oauth/claude_cli/client_data`,q=l7()?.accessToken??null,K=()=>{let Y=TO();if(Y.error)throw Error(`Auth error: ${Y.error}`);let z={"Content-Type":"application/json","User-Agent":Hj(),...Y.headers};return Q8.get(A,{headers:z,timeout:5000}).then((w)=>w.data.client_data??null)};try{return await K()}catch(Y){if(Q8.isAxiosError(Y)&&Y.response?.status===401&&q){if(await _k(q))return await K()}throw Y}}function FmA(){return!1}var saK=3600000,eRw;var QmA=E(()=>{M3();Dm();P7();NX();u1();U8();D9();xA();eRw=C71(taK,saK)});function $J6(){return w1(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function Jy(A){if($J6())return!1;return/\[1m\]/i.test(A)}function KsK(A){if($J6())return!1;let q=A.toLowerCase();return q.includes("claude-sonnet-4")||q.includes("opus-4-6")}function YM(A,q){if(Jy(A)||q?.includes(Na)&&KsK(A))return 1e6;if(ba1(A))return 1e6;return eaK}function ba1(A){if($J6())return!1;if(Jy(A))return!1;if(!A.toLowerCase().includes("opus-4-6"))return!1;return FmA()}function l41(A,q){if(!A)return{used:null,remaining:null};let K=A.input_tokens+A.cache_creation_input_tokens+A.cache_read_input_tokens,Y=Math.round(K/q*100),z=Math.min(100,Math.max(0,Y));return{used:z,remaining:100-z}}function La(A){let q=A.toLowerCase(),K,Y;if(q.includes("opus-4-5")||q.includes("opus-4-6")||q.includes("sonnet-4")||q.includes("haiku-4"))K=32000,Y=64000;else if(q.includes("opus-4-1")||q.includes("opus-4"))K=32000,Y=32000;else if(q.includes("claude-3-opus"))K=4096,Y=4096;else if(q.includes("claude-3-sonnet"))K=8192,Y=8192;else if(q.includes("claude-3-haiku"))K=4096,Y=4096;else if(q.includes("3-5-sonnet")||q.includes("3-5-haiku"))K=8192,Y=8192;else if(q.includes("3-7-sonnet"))K=32000,Y=64000;else K=AsK,Y=qsK;return{default:K,upperLimit:Y}}function dmA(A){return La(A).upperLimit-1}var eaK=200000,UmA=20000,AsK=32000,qsK=64000;var zM=E(()=>{QmA();Dq6();Z8()});function YsK(A,q,K){if(K!==void 0&&!xu(A[q],K)||K===void 0&&!(q in A))Oo(A,q,K)}var Gh6;var ua1=E(()=>{xL6();B$6();Gh6=YsK});function zsK(A){return function(q,K,Y){var z=-1,w=Object(q),_=Y(q),$=_.length;while($--){var O=_[A?$:++z];if(K(w[O],O,w)===!1)break}return q}}var cmA;var lmA=E(()=>{cmA=zsK});var wsK,i41;var ma1=E(()=>{lmA();wsK=cmA(),i41=wsK});function _sK(A){return XD(A)&&gu(A)}var imA;var nmA=E(()=>{o$6();uu();imA=_sK});function MsK(A){if(!XD(A)||gN(A)!=$sK)return!1;var q=GO6(A);if(q===null)return!0;var K=jsK.call(q,"constructor")&&q.constructor;return typeof K=="function"&&K instanceof K&&rmA.call(K)==JsK}var $sK="[object Object]",OsK,HsK,rmA,jsK,JsK,OJ6;var n41=E(()=>{v76();le6();uu();OsK=Function.prototype,HsK=Object.prototype,rmA=OsK.toString,jsK=HsK.hasOwnProperty,JsK=rmA.call(Object);OJ6=MsK});function DsK(A,q){if(q==="constructor"&&typeof A[q]==="function")return;if(q=="__proto__")return;return A[q]}var Zh6;var Ba1=E(()=>{Zh6=DsK});function XsK(A){return QL(A,du(A))}var omA;var amA=E(()=>{F76();WO6();omA=XsK});function PsK(A,q,K,Y,z,w,_){var $=Zh6(A,K),O=Zh6(q,K),H=_.get(O);if(H){Gh6(A,K,H);return}var j=w?w($,O,K+"",A,q,_):void 0,J=j===void 0;if(J){var M=fw(O),D=!M&&mu(O),X=!M&&!D&&n$6(O);if(j=O,M||D||X)if(fw($))j=$;else if(imA($))j=ce6($);else if(D)J=!1,j=uL6(O,!0);else if(X)J=!1,j=oe6(O,!0);else j=[];else if(OJ6(O)||mQ(O)){if(j=$,mQ($))j=omA($);else if(!Zw($)||u$6($))j=ae6(O)}else J=!1}if(J)_.set(O,j),z(j,O,Y,w,_),_.delete(O);Gh6(A,K,j)}var smA;var tmA=E(()=>{ua1();Jm1();Pm1();Mm1();Wm1();JL6();dZ();nmA();ML6();Ut6();UZ();n41();He6();Ba1();amA();smA=PsK});function emA(A,q,K,Y,z){if(A===q)return;i41(q,function(w,_){if(z||(z=new bu),Zw(w))smA(A,q,_,K,emA,Y,z);else{var $=Y?Y(Zh6(A,_),w,_+"",A,q,z):void 0;if($===void 0)$=w;Gh6(A,_,$)}},du)}var ABA;var qBA=E(()=>{jL6();ua1();ma1();tmA();UZ();WO6();Ba1();ABA=emA});function WsK(A,q,K){switch(K.length){case 0:return A.call(q);case 1:return A.call(q,K[0]);case 2:return A.call(q,K[0],K[1]);case 3:return A.call(q,K[0],K[1],K[2])}return A.apply(q,K)}var KBA;var YBA=E(()=>{KBA=WsK});function GsK(A,q,K){return q=zBA(q===void 0?A.length-1:q,0),function(){var Y=arguments,z=-1,w=zBA(Y.length-q,0),_=Array(w);while(++z<w)_[z]=Y[q+z];z=-1;var $=Array(q+1);while(++z<q)$[z]=Y[z];return $[q]=K(_),KBA(A,this,$)}}var zBA,r41;var ga1=E(()=>{YBA();zBA=Math.max;r41=GsK});function ZsK(A){return function(){return A}}var wBA;var _BA=E(()=>{wBA=ZsK});var fsK,$BA;var OBA=E(()=>{_BA();jm1();ke6();fsK=!PO6?KO6:function(A,q){return PO6(A,"toString",{configurable:!0,enumerable:!1,value:wBA(q),writable:!0})},$BA=fsK});function NsK(A){var q=0,K=0;return function(){var Y=VsK(),z=vsK-(Y-K);if(K=Y,z>0){if(++q>=TsK)return arguments[0]}else q=0;return A.apply(void 0,arguments)}}var TsK=800,vsK=16,VsK,HBA;var jBA=E(()=>{VsK=Date.now;HBA=NsK});var ksK,o41;var pa1=E(()=>{OBA();jBA();ksK=HBA($BA),o41=ksK});function EsK(A,q){return o41(r41(A,q,KO6),A+"")}var JBA;var MBA=E(()=>{ke6();ga1();pa1();JBA=EsK});function LsK(A,q,K){if(!Zw(K))return!1;var Y=typeof q;if(Y=="number"?gu(K)&&Yo(q,K.length):Y=="string"&&(q in K))return xu(K[q],A);return!1}var DBA;var XBA=E(()=>{B$6();o$6();DL6();UZ();DBA=LsK});function ysK(A){return JBA(function(q,K){var Y=-1,z=K.length,w=z>1?K[z-1]:void 0,_=z>2?K[2]:void 0;if(w=A.length>3&&typeof w=="function"?(z--,w):void 0,_&&DBA(K[0],K[1],_))w=z<3?void 0:w,z=1;q=Object(q);while(++Y<z){var $=K[Y];if($)A(q,$,Y,w)}return q})}var PBA;var WBA=E(()=>{MBA();XBA();PBA=ysK});var RsK,Pq6;var GBA=E(()=>{qBA();WBA();RsK=PBA(function(A,q,K,Y){ABA(A,q,K,Y)}),Pq6=RsK});import{dirname as SsK}from"path";function w8(A,q,K={}){let Y=hsK();if(!Y)return;let z={timestamp:new Date().toISOString(),level:A,event:q,data:K},w=P1();try{w.appendFileSync(Y,p6(z)+`
`)}catch{try{w.mkdirSync(SsK(Y)),w.appendFileSync(Y,p6(z)+`
`)}catch{}}}function hsK(){return process.env.CLAUDE_CODE_DIAGNOSTICS_FILE}async function HJ6(A,q,K){let Y=Date.now();w8("info",`${A}_started`);try{let z=await q(),w=K?K(z):{};return w8("info",`${A}_completed`,{duration_ms:Date.now()-Y,...w}),z}catch(z){throw w8("error",`${A}_failed`,{duration_ms:Date.now()-Y}),z}}var tw=E(()=>{D7();a1()});function ya(A){switch(A){case"userSettings":return"user";case"projectSettings":return"project";case"localSettings":return"project, gitignored";case"flagSettings":return"cli flag";case"policySettings":return"managed"}}function jJ6(A){switch(A){case"userSettings":return"User";case"projectSettings":return"Project";case"localSettings":return"Local";case"flagSettings":return"Flag";case"policySettings":return"Managed";case"plugin":return"Plugin";case"built-in":return"Built-in"}}function a41(A){switch(A){case"userSettings":return"user settings";case"projectSettings":return"shared project settings";case"localSettings":return"project local settings";case"flagSettings":return"command line arguments";case"policySettings":return"enterprise managed settings";case"cliArg":return"CLI argument";case"command":return"command configuration";case"session":return"current session"}}function ZBA(A){switch(A){case"userSettings":return"User settings";case"projectSettings":return"Shared project settings";case"localSettings":return"Project local settings";case"flagSettings":return"Command line arguments";case"policySettings":return"Enterprise managed settings";case"cliArg":return"CLI argument";case"command":return"Command configuration";case"session":return"Current session"}}function fBA(A){if(A==="")return[];let q=A.split(",").map((Y)=>Y.trim()),K=[];for(let Y of q)switch(Y){case"user":K.push("userSettings");break;case"project":K.push("projectSettings");break;case"local":K.push("localSettings");break;default:throw Error(`Invalid setting source: ${Y}. Valid options are: user, project, local`)}return K}function yU(){let A=Qu1(),q=new Set(A);return q.add("policySettings"),q.add("flagSettings"),Array.from(q)}function wM(A){return yU().includes(A)}var Gv,Wq6,TBA="https://json.schemastore.org/claude-code-settings.json";var E2=E(()=>{U1();Gv=["userSettings","projectSettings","localSettings","flagSettings","policySettings"];Wq6=["localSettings","projectSettings","userSettings"]});function o6(A){let q;return()=>q??=A()}var Fa1={};d1(Fa1,{PERMISSION_MODES:()=>My,INTERNAL_PERMISSION_MODES:()=>vBA,EXTERNAL_PERMISSION_MODES:()=>Tm});var Tm,vBA,My;var fh6=E(()=>{Tm=["acceptEdits","bypassPermissions","default","dontAsk","plan"],vBA=[...Tm,...[]],My=vBA});function kBA(A){return!0}function t41(A){return VBA[A]??VBA.default}function Ra(A){return t41(A).external}function IC(A){return My.includes(A)?A:"default"}function RU(A){return t41(A).title}function EBA(A){return A==="default"||A===void 0}function Th6(A){return t41(A).symbol}function zf(A){return t41(A).color}var NBA,s41,VBA;var kX=E(()=>{_4();fh6();NBA=o6(()=>m4.enum(My)),s41=o6(()=>m4.enum(Tm)),VBA={default:{title:"Default",shortTitle:"Default",symbol:"",color:"text",external:"default"},plan:{title:"Plan Mode",shortTitle:"Plan",symbol:"⏸",color:"planMode",external:"plan"},acceptEdits:{title:"Accept edits",shortTitle:"Accept",symbol:"⏵⏵",color:"autoAccept",external:"acceptEdits"},bypassPermissions:{title:"Bypass Permissions",shortTitle:"Bypass",symbol:"⏵⏵",color:"error",external:"bypassPermissions"},dontAsk:{title:"Don't Ask",shortTitle:"DontAsk",symbol:"⏵⏵",color:"error",external:"dontAsk"},...{}}});var pq="Agent",JJ6="Task",LBA="verification";var SU="TaskStop",yBA=`
- Stops a running background task by its ID
- Takes a task_id parameter identifying the task to stop
- Returns a success or failure status
- Use this tool when you need to terminate a long-running task
`;var hU="TaskOutput";function Zv(A){return RBA[A]??A}function SBA(A){let q=[];for(let[K,Y]of Object.entries(RBA))if(Y===A)q.push(K);return q}function IsK(A){return A.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")}function xsK(A){return A.replace(/\\\(/g,"(").replace(/\\\)/g,")").replace(/\\\\/g,"\\")}function fD(A){let q=bsK(A,"(");if(q===-1)return{toolName:Zv(A)};let K=usK(A,")");if(K===-1||K<=q)return{toolName:Zv(A)};if(K!==A.length-1)return{toolName:Zv(A)};let Y=A.substring(0,q),z=A.substring(q+1,K);if(!Y)return{toolName:Zv(A)};if(z===""||z==="*")return{toolName:Zv(Y)};let w=xsK(z);return{toolName:Zv(Y),ruleContent:w}}function w5(A){if(!A.ruleContent)return A.toolName;let q=IsK(A.ruleContent);return`${A.toolName}(${q})`}function bsK(A,q){for(let K=0;K<A.length;K++)if(A[K]===q){let Y=0,z=K-1;while(z>=0&&A[z]==="\\")Y++,z--;if(Y%2===0)return K}return-1}function usK(A,q){for(let K=A.length-1;K>=0;K--)if(A[K]===q){let Y=0,z=K-1;while(z>=0&&A[z]==="\\")Y++,z--;if(Y%2===0)return K}return-1}var RBA;var H0=E(()=>{RBA={Task:pq,KillShell:SU,AgentOutputTool:hU,BashOutputTool:hU,...{}}});function vO(A){let q=A.replace(/[^a-zA-Z0-9_-]/g,"_");if(A.startsWith("claude.ai "))q=q.replace(/_+/g,"_").replace(/^_|_$/g,"");return q}function $k(A){let q=A.split("__"),[K,Y,...z]=q;if(K!=="mcp"||!Y)return null;let w=z.length>0?z.join("__"):void 0;return{serverName:Y,toolName:w}}function xC(A){return`mcp__${vO(A)}__`}function Qa1(A,q){return`${xC(A)}${vO(q)}`}function vh6(A){return A.mcpInfo?Qa1(A.mcpInfo.serverName,A.mcpInfo.toolName):A.name}function e41(A,q){let K=`mcp__${vO(q)}__`;return A.replace(K,"")}function Aq1(A){let q=A.replace(/\s*\(MCP\)\s*$/,"");q=q.trim();let K=q.indexOf(" - ");if(K!==-1)return q.substring(K+3).trim();return q}var Dy=()=>{};function hBA(A){return Ua1.filePatternTools.includes(A)}function CBA(A){return Ua1.bashPrefixTools.includes(A)}function IBA(A){return Ua1.customValidation[A]}var Ua1;var xBA=E(()=>{Ua1={filePatternTools:["Read","Write","Edit","Glob","NotebookRead","NotebookEdit"],bashPrefixTools:["Bash"],customValidation:{WebSearch:(A)=>{if(A.includes("*")||A.includes("?"))return{valid:!1,error:"WebSearch does not support wildcards",suggestion:"Use exact search terms without * or ?",examples:["WebSearch(claude ai)","WebSearch(typescript tutorial)"]};return{valid:!0}},WebFetch:(A)=>{if(A.includes("://")||A.startsWith("http"))return{valid:!1,error:"WebFetch permissions use domain format, not URLs",suggestion:'Use "domain:hostname" format',examples:["WebFetch(domain:example.com)","WebFetch(domain:github.com)"]};if(!A.startsWith("domain:"))return{valid:!1,error:'WebFetch permissions must use "domain:" prefix',suggestion:'Use "domain:hostname" format',examples:["WebFetch(domain:example.com)","WebFetch(domain:*.google.com)"]};return{valid:!0}}}}});function bBA(A,q){let K=0,Y=q-1;while(Y>=0&&A[Y]==="\\")K++,Y--;return K%2!==0}function da1(A,q){let K=0;for(let Y=0;Y<A.length;Y++)if(A[Y]===q&&!bBA(A,Y))K++;return K}function BsK(A){for(let q=0;q<A.length-1;q++)if(A[q]==="("&&A[q+1]===")"){if(!bBA(A,q))return!0}return!1}function ca1(A){if(!A||A.trim()==="")return{valid:!1,error:"Permission rule cannot be empty"};let q=da1(A,"("),K=da1(A,")");if(q!==K)return{valid:!1,error:"Mismatched parentheses",suggestion:"Ensure all opening parentheses have matching closing parentheses"};if(BsK(A)){let _=A.substring(0,A.indexOf("("));if(!_)return{valid:!1,error:"Empty parentheses with no tool name",suggestion:"Specify a tool name before the parentheses"};return{valid:!1,error:"Empty parentheses",suggestion:`Either specify a pattern or use just "${_}" without parentheses`,examples:[`${_}`,`${_}(some-pattern)`]}}let Y=fD(A),z=$k(Y.toolName);if(z){if(Y.ruleContent!==void 0||da1(A,"(")>0)return{valid:!1,error:"MCP rules do not support patterns in parentheses",suggestion:`Use "${Y.toolName}" without parentheses, or use "mcp__${z.serverName}__*" for all tools`,examples:[`mcp__${z.serverName}`,`mcp__${z.serverName}__*`,z.toolName&&z.toolName!=="*"?`mcp__${z.serverName}__${z.toolName}`:void 0].filter(Boolean)};return{valid:!0}}if(!Y.toolName||Y.toolName.length===0)return{valid:!1,error:"Tool name cannot be empty"};if(Y.toolName[0]!==Y.toolName[0]?.toUpperCase()&&!msK.has(Y.toolName))return{valid:!1,error:"Tool names must start with uppercase",suggestion:`Use "${String(Y.toolName).charAt(0).toUpperCase()+String(Y.toolName).slice(1)}"`};let w=IBA(Y.toolName);if(w&&Y.ruleContent!==void 0){let _=w(Y.ruleContent);if(!_.valid)return _}if(CBA(Y.toolName)&&Y.ruleContent!==void 0){let _=Y.ruleContent;if(_.includes(":*")&&!_.endsWith(":*"))return{valid:!1,error:"The :* pattern must be at the end",suggestion:"Move :* to the end for prefix matching, or use * for wildcard matching",examples:["Bash(npm run:*) - prefix matching (legacy)","Bash(npm run *) - wildcard matching"]};if(_===":*")return{valid:!1,error:"Prefix cannot be empty before :*",suggestion:"Specify a command prefix before :*",examples:["Bash(npm:*)","Bash(git:*)"]}}if(hBA(Y.toolName)&&Y.ruleContent!==void 0){let _=Y.ruleContent;if(_.includes(":*"))return{valid:!1,error:'The ":*" syntax is only for Bash prefix rules',suggestion:'Use glob patterns like "*" or "**" for file matching',examples:[`${Y.toolName}(*.ts) - matches .ts files`,`${Y.toolName}(src/**) - matches all files in src`,`${Y.toolName}(**/*.test.ts) - matches test files`]};if(_.includes("*")&&!_.match(/^\*|\*$|\*\*|\/\*|\*\.|\*\)/)&&!_.includes("**"))return{valid:!1,error:"Wildcard placement might be incorrect",suggestion:"Wildcards are typically used at path boundaries",examples:[`${Y.toolName}(*.js) - all .js files`,`${Y.toolName}(src/*) - all files directly in src`,`${Y.toolName}(src/**) - all files recursively in src`]}}return{valid:!0}}var msK,qq1;var la1=E(()=>{_4();H0();Dy();xBA();msK=new Set([]);qq1=o6(()=>I.string().superRefine((A,q)=>{let K=ca1(A);if(!K.valid){let Y=K.error;if(K.suggestion)Y+=`. ${K.suggestion}`;if(K.examples&&K.examples.length>0)Y+=`. Examples: ${K.examples.join(", ")}`;q.addIssue({code:I.ZodIssueCode.custom,message:Y,params:{received:A}})}}))});var vm;var uBA=E(()=>{vm=["PreToolUse","PostToolUse","PostToolUseFailure","Notification","UserPromptSubmit","SessionStart","SessionEnd","Stop","SubagentStart","SubagentStop","PreCompact","PermissionRequest","Setup","TeammateIdle","TaskCompleted","Elicitation","ElicitationResult","ConfigChange","WorktreeCreate","WorktreeRemove","InstructionsLoaded"]});var mBA=()=>{};var MJ6=E(()=>{uBA();mBA()});function gsK(){let A=I.object({type:I.literal("command").describe("Bash command hook type"),command:I.string().describe("Shell command to execute"),timeout:I.number().positive().optional().describe("Timeout in seconds for this specific command"),statusMessage:I.string().optional().describe("Custom status message to display in spinner while hook runs"),once:I.boolean().optional().describe("If true, hook runs once and is removed after execution"),async:I.boolean().optional().describe("If true, hook runs in background without blocking"),asyncRewake:I.boolean().optional().describe("If true, hook runs in background and wakes the model on exit code 2 (blocking error). Implies async.")}),q=I.object({type:I.literal("prompt").describe("LLM prompt hook type"),prompt:I.string().describe("Prompt to evaluate with LLM. Use $ARGUMENTS placeholder for hook input JSON."),timeout:I.number().positive().optional().describe("Timeout in seconds for this specific prompt evaluation"),model:I.string().optional().describe('Model to use for this prompt hook (e.g., "claude-sonnet-4-6"). If not specified, uses the default small fast model.'),statusMessage:I.string().optional().describe("Custom status message to display in spinner while hook runs"),once:I.boolean().optional().describe("If true, hook runs once and is removed after execution")}),K=I.object({type:I.literal("http").describe("HTTP hook type"),url:I.string().url().describe("URL to POST the hook input JSON to"),timeout:I.number().positive().optional().describe("Timeout in seconds for this specific request"),headers:I.record(I.string(),I.string()).optional().describe('Additional headers to include in the request. Values may reference environment variables using $VAR_NAME or ${VAR_NAME} syntax (e.g., "Authorization": "Bearer $MY_TOKEN"). Only variables listed in allowedEnvVars will be interpolated.'),allowedEnvVars:I.array(I.string()).optional().describe("Explicit list of environment variable names that may be interpolated in header values. Only variables listed here will be resolved; all other $VAR references are left as empty strings. Required for env var interpolation to work."),statusMessage:I.string().optional().describe("Custom status message to display in spinner while hook runs"),once:I.boolean().optional().describe("If true, hook runs once and is removed after execution")}),Y=I.object({type:I.literal("agent").describe("Agentic verifier hook type"),prompt:I.string().transform((z)=>(w)=>z).describe('Prompt describing what to verify (e.g. "Verify that unit tests ran and passed."). Use $ARGUMENTS placeholder for hook input JSON.'),timeout:I.number().positive().optional().describe("Timeout in seconds for agent execution (default 60)"),model:I.string().optional().describe('Model to use for this agent hook (e.g., "claude-sonnet-4-6"). If not specified, uses Haiku.'),statusMessage:I.string().optional().describe("Custom status message to display in spinner while hook runs"),once:I.boolean().optional().describe("If true, hook runs once and is removed after execution")});return{BashCommandHookSchema:A,PromptHookSchema:q,HttpHookSchema:K,AgentHookSchema:Y}}var BBA,gBA,Xy;var Kq1=E(()=>{_4();MJ6();BBA=o6(()=>{let{BashCommandHookSchema:A,PromptHookSchema:q,AgentHookSchema:K,HttpHookSchema:Y}=gsK();return I.discriminatedUnion("type",[A,q,K,Y])}),gBA=o6(()=>I.object({matcher:I.string().optional().describe('String pattern to match (e.g. tool names like "Write")'),hooks:I.array(BBA()).describe("List of hooks to execute when the matcher matches")})),Xy=o6(()=>I.partialRecord(I.enum(vm),I.array(gBA())))});var ia1,HCw,na1,pBA,psK,FsK,QsK,UsK,dsK,csK,lsK,Vm,FBA;var Gq6=E(()=>{_4();ia1=o6(()=>I.enum(["local","user","project","dynamic","enterprise","claudeai","managed"])),HCw=o6(()=>I.enum(["stdio","sse","sse-ide","http","ws","sdk"])),na1=o6(()=>I.object({type:I.literal("stdio").optional(),command:I.string().min(1,"Command cannot be empty"),args:I.array(I.string()).default([]),env:I.record(I.string(),I.string()).optional()})),pBA=o6(()=>I.object({clientId:I.string().optional(),callbackPort:I.number().int().positive().optional(),authServerMetadataUrl:I.string().url().startsWith("https://",{message:"authServerMetadataUrl must use https://"}).optional()})),psK=o6(()=>I.object({type:I.literal("sse"),url:I.string(),headers:I.record(I.string(),I.string()).optional(),headersHelper:I.string().optional(),oauth:pBA().optional()})),FsK=o6(()=>I.object({type:I.literal("sse-ide"),url:I.string(),ideName:I.string(),ideRunningInWindows:I.boolean().optional()})),QsK=o6(()=>I.object({type:I.literal("ws-ide"),url:I.string(),ideName:I.string(),authToken:I.string().optional(),ideRunningInWindows:I.boolean().optional()})),UsK=o6(()=>I.object({type:I.literal("http"),url:I.string(),headers:I.record(I.string(),I.string()).optional(),headersHelper:I.string().optional(),oauth:pBA().optional()})),dsK=o6(()=>I.object({type:I.literal("ws"),url:I.string(),headers:I.record(I.string(),I.string()).optional(),headersHelper:I.string().optional()})),csK=o6(()=>I.object({type:I.literal("sdk"),name:I.string()})),lsK=o6(()=>I.object({type:I.literal("claudeai-proxy"),url:I.string(),id:I.string()})),Vm=o6(()=>I.union([na1(),psK(),FsK(),QsK(),UsK(),dsK(),csK(),lsK()])),FBA=o6(()=>I.object({mcpServers:I.record(I.string(),Vm())}))});function Vh6(A,q){let K=A.toLowerCase();return q.autoUpdate??(Ok.has(K)&&!isK.has(K))}function osK(A){if(Ok.has(A.toLowerCase()))return!1;if(rsK.test(A))return!0;return nsK.test(A)}function dBA(A,q){let K=A.toLowerCase();if(!Ok.has(K))return null;if(q.source==="github"){if(!(q.repo||"").toLowerCase().startsWith(`${Yq1}/`))return`The name '${A}' is reserved for official Anthropic marketplaces. Only repositories from 'github.com/${Yq1}/' can use this name.`;return null}if(q.source==="git"&&q.url){let Y=q.url.toLowerCase(),z=Y.includes("github.com/anthropics/"),w=Y.includes("git@github.com:anthropics/");if(z||w)return null;return`The name '${A}' is reserved for official Anthropic marketplaces. Only repositories from 'github.com/${Yq1}/' can use this name.`}return`The name '${A}' is reserved for official Anthropic marketplaces and can only be used with GitHub sources from the '${Yq1}' organization.`}function WJ6(A){return typeof A==="string"&&A.startsWith("./")}var Ok,isK,nsK,rsK,Yq1="anthropics",CU,DJ6,QBA,oa1,aa1,cBA,asK,lBA,ssK,tsK,esK,AtK,qtK,KtK,UBA,YtK,ztK,XJ6,wtK,iBA,_tK,Zq6,Nh6,ra1,$tK,OtK,Sa,PJ6,PCw,HtK,kh6,jtK,JtK,Eh6,WCw,MtK,GJ6;var j0=E(()=>{_4();Kq1();Gq6();Ok=new Set(["claude-code-marketplace","claude-code-plugins","claude-plugins-official","anthropic-marketplace","anthropic-plugins","agent-skills","life-sciences","knowledge-work-plugins"]),isK=new Set(["knowledge-work-plugins"]);nsK=/(?:official[^a-z0-9]*(anthropic|claude)|(?:anthropic|claude)[^a-z0-9]*official|^(?:anthropic|claude)[^a-z0-9]*(marketplace|plugins|official))/i,rsK=/[^\u0020-\u007E]/;CU=o6(()=>I.string().startsWith("./")),DJ6=o6(()=>CU().endsWith(".json")),QBA=o6(()=>I.union([CU().refine((A)=>A.endsWith(".mcpb")||A.endsWith(".dxt"),{message:"MCPB file path must end with .mcpb or .dxt"}).describe("Path to MCPB file relative to plugin root"),I.string().url().refine((A)=>A.endsWith(".mcpb")||A.endsWith(".dxt"),{message:"MCPB URL must end with .mcpb or .dxt"}).describe("URL to MCPB file")])),oa1=o6(()=>CU().endsWith(".md")),aa1=o6(()=>I.union([oa1(),CU()])),cBA=o6(()=>I.object({name:I.string().min(1,"Author name cannot be empty").describe("Display name of the plugin author or organization"),email:I.string().optional().describe("Contact email for support or feedback"),url:I.string().optional().describe("Website, GitHub profile, or organization URL")})),asK=o6(()=>I.object({name:I.string().min(1,"Plugin name cannot be empty").refine((A)=>!A.includes(" "),{message:'Plugin name cannot contain spaces. Use kebab-case (e.g., "my-plugin")'}).describe("Unique identifier for the plugin, used for namespacing (prefer kebab-case)"),version:I.string().optional().describe("Semantic version (e.g., 1.2.3) following semver.org specification"),description:I.string().optional().describe("Brief, user-facing explanation of what the plugin provides"),author:cBA().optional().describe("Information about the plugin creator or maintainer"),homepage:I.string().url().optional().describe("Plugin homepage or documentation URL"),repository:I.string().optional().describe("Source code repository URL"),license:I.string().optional().describe("SPDX license identifier (e.g., MIT, Apache-2.0)"),keywords:I.array(I.string()).optional().describe("Tags for plugin discovery and categorization")})),lBA=o6(()=>I.object({description:I.string().optional().describe("Brief, user-facing explanation of what these hooks provide"),hooks:I.lazy(()=>Xy()).describe("The hooks provided by the plugin, in the same format as the one used for settings")})),ssK=o6(()=>I.object({hooks:I.union([DJ6().describe("Path to file with additional hooks (in addition to those in hooks/hooks.json, if it exists), relative to the plugin root"),I.lazy(()=>Xy()).describe("Additional hooks (in addition to those in hooks/hooks.json, if it exists)"),I.array(I.union([DJ6().describe("Path to file with additional hooks (in addition to those in hooks/hooks.json, if it exists), relative to the plugin root"),I.lazy(()=>Xy()).describe("Additional hooks (in addition to those in hooks/hooks.json, if it exists)")]))])})),tsK=o6(()=>I.object({source:aa1().optional().describe("Path to command markdown file, relative to plugin root"),content:I.string().optional().describe("Inline markdown content for the command"),description:I.string().optional().describe("Command description override"),argumentHint:I.string().optional().describe('Hint for command arguments (e.g., "[file]")'),model:I.string().optional().describe("Default model for this command"),allowedTools:I.array(I.string()).optional().describe("Tools allowed when command runs")}).refine((A)=>A.source&&!A.content||!A.source&&A.content,{message:'Command must have either "source" (file path) or "content" (inline markdown), but not both'})),esK=o6(()=>I.object({commands:I.union([aa1().describe("Path to additional command file or skill directory (in addition to those in the commands/ directory, if it exists), relative to the plugin root"),I.array(aa1().describe("Path to additional command file or skill directory (in addition to those in the commands/ directory, if it exists), relative to the plugin root")).describe("List of paths to additional command files or skill directories"),I.record(I.string(),tsK()).describe('Object mapping of command names to their metadata and source files. Command name becomes the slash command name (e.g., "about" → "/plugin:about")')])})),AtK=o6(()=>I.object({agents:I.union([oa1().describe("Path to additional agent file (in addition to those in the agents/ directory, if it exists), relative to the plugin root"),I.array(oa1().describe("Path to additional agent file (in addition to those in the agents/ directory, if it exists), relative to the plugin root")).describe("List of paths to additional agent files")])})),qtK=o6(()=>I.object({skills:I.union([CU().describe("Path to additional skill directory (in addition to those in the skills/ directory, if it exists), relative to the plugin root"),I.array(CU().describe("Path to additional skill directory (in addition to those in the skills/ directory, if it exists), relative to the plugin root")).describe("List of paths to additional skill directories")])})),KtK=o6(()=>I.object({outputStyles:I.union([CU().describe("Path to additional output styles directory or file (in addition to those in the output-styles/ directory, if it exists), relative to the plugin root"),I.array(CU().describe("Path to additional output styles directory or file (in addition to those in the output-styles/ directory, if it exists), relative to the plugin root")).describe("List of paths to additional output styles directories or files")])})),UBA=o6(()=>I.string().min(1)),YtK=o6(()=>I.string().min(2).refine((A)=>A.startsWith("."),{message:'File extensions must start with dot (e.g., ".ts", not "ts")'})),ztK=o6(()=>I.object({mcpServers:I.union([DJ6().describe("MCP servers to include in the plugin (in addition to those in the .mcp.json file, if it exists)"),QBA().describe("Path or URL to MCPB file containing MCP server configuration"),I.record(I.string(),Vm()).describe("MCP server configurations keyed by server name"),I.array(I.union([DJ6().describe("Path to MCP servers configuration file"),QBA().describe("Path or URL to MCPB file"),I.record(I.string(),Vm()).describe("Inline MCP server configurations")])).describe("Array of MCP server configurations (paths, MCPB files, or inline definitions)")])})),XJ6=o6(()=>I.strictObject({command:I.string().min(1).refine((A)=>{if(A.includes(" ")&&!A.startsWith("/"))return!1;return!0},{message:"Command should not contain spaces. Use args array for arguments."}).describe('Command to execute the LSP server (e.g., "typescript-language-server")'),args:I.array(UBA()).optional().describe("Command-line arguments to pass to the server"),extensionToLanguage:I.record(YtK(),UBA()).refine((A)=>Object.keys(A).length>0,{message:"extensionToLanguage must have at least one mapping"}).describe("Mapping from file extension to LSP language ID. File extensions and languages are derived from this mapping."),transport:I.enum(["stdio","socket"]).default("stdio").describe("Communication transport mechanism"),env:I.record(I.string(),I.string()).optional().describe("Environment variables to set when starting the server"),initializationOptions:I.unknown().optional().describe("Initialization options passed to the server during initialization"),settings:I.unknown().optional().describe("Settings passed to the server via workspace/didChangeConfiguration"),workspaceFolder:I.string().optional().describe("Workspace folder path to use for the server"),startupTimeout:I.number().int().positive().optional().describe("Maximum time to wait for server startup (milliseconds)"),shutdownTimeout:I.number().int().positive().optional().describe("Maximum time to wait for graceful shutdown (milliseconds)"),restartOnCrash:I.boolean().optional().describe("Whether to restart the server if it crashes"),maxRestarts:I.number().int().nonnegative().optional().describe("Maximum number of restart attempts before giving up")})),wtK=o6(()=>I.object({lspServers:I.union([DJ6().describe("Path to .lsp.json configuration file relative to plugin root"),I.record(I.string(),XJ6()).describe("LSP server configurations keyed by server name"),I.array(I.union([DJ6().describe("Path to LSP configuration file"),I.record(I.string(),XJ6()).describe("Inline LSP server configurations")])).describe("Array of LSP server configurations (paths or inline definitions)")])})),iBA=o6(()=>I.string().refine((A)=>!A.includes("..")&&!A.includes("//"),"Package name cannot contain path traversal patterns").refine((A)=>{let q=/^@[a-z0-9][a-z0-9-._]*\/[a-z0-9][a-z0-9-._]*$/,K=/^[a-z0-9][a-z0-9-._]*$/;return q.test(A)||K.test(A)},"Invalid npm package name format")),_tK=o6(()=>I.object({settings:I.record(I.string(),I.unknown()).optional().describe("Settings to merge when plugin is enabled. Only allowlisted keys are kept (currently: agent)")})),Zq6=o6(()=>I.object({...asK().shape,...ssK().partial().shape,...esK().partial().shape,...AtK().partial().shape,...qtK().partial().shape,...KtK().partial().shape,...ztK().partial().shape,...wtK().partial().shape,..._tK().partial().shape}).strict()),Nh6=o6(()=>I.discriminatedUnion("source",[I.object({source:I.literal("url"),url:I.string().url().describe("Direct URL to marketplace.json file"),headers:I.record(I.string(),I.string()).optional().describe("Custom HTTP headers (e.g., for authentication)")}),I.object({source:I.literal("github"),repo:I.string().describe("GitHub repository in owner/repo format"),ref:I.string().optional().describe('Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.'),path:I.string().optional().describe("Path to marketplace.json within repo (defaults to .claude-plugin/marketplace.json)"),sparsePaths:I.array(I.string()).optional().describe('Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [".claude-plugin", "plugins"]. If omitted, the full repository is cloned.')}),I.object({source:I.literal("git"),url:I.string().endsWith(".git").describe("Full git repository URL"),ref:I.string().optional().describe('Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.'),path:I.string().optional().describe("Path to marketplace.json within repo (defaults to .claude-plugin/marketplace.json)"),sparsePaths:I.array(I.string()).optional().describe('Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [".claude-plugin", "plugins"]. If omitted, the full repository is cloned.')}),I.object({source:I.literal("npm"),package:iBA().describe("NPM package containing marketplace.json")}),I.object({source:I.literal("file"),path:I.string().describe("Local file path to marketplace.json")}),I.object({source:I.literal("directory"),path:I.string().describe("Local directory containing .claude-plugin/marketplace.json")}),I.object({source:I.literal("hostPattern"),hostPattern:I.string().describe('Regex pattern to match the host/domain extracted from any marketplace source type. For github sources, matches against "github.com". For git sources (SSH or HTTPS), extracts the hostname from the URL. Use in strictKnownMarketplaces to allow all marketplaces from a specific host (e.g., "^github\\.mycompany\\.com$").')}),I.object({source:I.literal("pathPattern"),pathPattern:I.string().describe('Regex pattern matched against the .path field of file and directory sources. Use in strictKnownMarketplaces to allow filesystem-based marketplaces alongside hostPattern restrictions for network sources. Use ".*" to allow all filesystem paths, or a narrower pattern (e.g., "^/opt/approved/") to restrict to specific directories.')})])),ra1=o6(()=>I.string().length(40).regex(/^[a-f0-9]{40}$/,"Must be a full 40-character lowercase git commit SHA")),$tK=o6(()=>I.union([CU().describe("Path to the plugin root, relative to the marketplace directory"),I.object({source:I.literal("npm"),package:iBA().or(I.string()).describe("Package name (or url, or local path, or anything else that can be passed to `npm` as a package)"),version:I.string().optional().describe("Specific version or version range (e.g., ^1.0.0, ~2.1.0)"),registry:I.string().url().optional().describe("Custom NPM registry URL (defaults to using system default, likely npmjs.org)")}).describe("NPM package as plugin source"),I.object({source:I.literal("pip"),package:I.string().describe("Python package name as it appears on PyPI"),version:I.string().optional().describe("Version specifier (e.g., ==1.0.0, >=2.0.0, <3.0.0)"),registry:I.string().url().optional().describe("Custom PyPI registry URL (defaults to using system default, likely pypi.org)")}).describe("Python package as plugin source"),I.object({source:I.literal("url"),url:I.string().endsWith(".git").describe("Full git repository URL (https:// or git@)"),ref:I.string().optional().describe('Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.'),sha:ra1().optional().describe("Specific commit SHA to use")}),I.object({source:I.literal("github"),repo:I.string().describe("GitHub repository in owner/repo format"),ref:I.string().optional().describe('Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.'),sha:ra1().optional().describe("Specific commit SHA to use")}),I.object({source:I.literal("git-subdir"),url:I.string().describe("Git repository: GitHub owner/repo shorthand, https://, or git@ URL"),path:I.string().min(1).describe('Subdirectory within the repo containing the plugin (e.g., "tools/claude-plugin"). Cloned sparsely using partial clone (--filter=tree:0) to minimize bandwidth for monorepos.'),ref:I.string().optional().describe('Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.'),sha:ra1().optional().describe("Specific commit SHA to use")}).describe("Plugin located in a subdirectory of a larger repository (monorepo). Only the specified subdirectory is materialized; the rest of the repo is not downloaded.")]));OtK=o6(()=>Zq6().partial().extend({name:I.string().min(1,"Plugin name cannot be empty").refine((A)=>!A.includes(" "),{message:'Plugin name cannot contain spaces. Use kebab-case (e.g., "my-plugin")'}).describe("Unique identifier matching the plugin name"),source:$tK().describe("Where to fetch the plugin from"),category:I.string().optional().describe('Category for organizing plugins (e.g., "productivity", "development")'),tags:I.array(I.string()).optional().describe("Tags for searchability and discovery"),strict:I.boolean().optional().default(!0).describe("Require the plugin manifest to be present in the plugin folder. If false, the marketplace entry provides the manifest.")}).strict()),Sa=o6(()=>I.object({name:I.string().min(1,"Marketplace must have a name").refine((A)=>!A.includes(" "),{message:'Marketplace name cannot contain spaces. Use kebab-case (e.g., "my-marketplace")'}).refine((A)=>!osK(A),{message:'Marketplace name cannot impersonate official Anthropic/Claude marketplaces. Names containing "official", "anthropic", or "claude" in official-sounding combinations are reserved.'}),owner:cBA().describe("Marketplace maintainer or curator information"),plugins:I.array(OtK()).describe("Collection of available plugins in this marketplace"),forceRemoveDeletedPlugins:I.boolean().optional().describe("When true, plugins removed from this marketplace will be automatically uninstalled and flagged for users"),metadata:I.object({pluginRoot:I.string().optional().describe("Base path for relative plugin sources"),version:I.string().optional().describe("Marketplace version"),description:I.string().optional().describe("Marketplace description")}).optional().describe("Optional marketplace metadata")})),PJ6=o6(()=>I.string().regex(/^[a-z0-9][-a-z0-9._]*@[a-z0-9][-a-z0-9._]*$/i,"Plugin ID must be in format: plugin@marketplace")),PCw=o6(()=>I.union([PJ6(),I.object({id:PJ6().describe('Plugin identifier (e.g., "formatter@tools")'),version:I.string().optional().describe('Version constraint (e.g., "^2.0.0")'),required:I.boolean().optional().describe("If true, cannot be disabled"),config:I.record(I.string(),I.unknown()).optional().describe("Plugin-specific configuration")})])),HtK=o6(()=>I.object({version:I.string().describe("Currently installed version"),installedAt:I.string().describe("ISO 8601 timestamp of installation"),lastUpdated:I.string().optional().describe("ISO 8601 timestamp of last update"),installPath:I.string().describe("Absolute path to the installed plugin directory"),gitCommitSha:I.string().optional().describe("Git commit SHA for git-based plugins (for version tracking)")})),kh6=o6(()=>I.object({version:I.literal(1).describe("Schema version 1"),plugins:I.record(PJ6(),HtK()).describe("Map of plugin IDs to their installation metadata")})),jtK=o6(()=>I.enum(["managed","user","project","local"])),JtK=o6(()=>I.object({scope:jtK().describe("Installation scope"),projectPath:I.string().optional().describe("Project path (required for project/local scopes)"),installPath:I.string().describe("Absolute path to the versioned plugin directory"),version:I.string().optional().describe("Currently installed version"),installedAt:I.string().optional().describe("ISO 8601 timestamp of installation"),lastUpdated:I.string().optional().describe("ISO 8601 timestamp of last update"),gitCommitSha:I.string().optional().describe("Git commit SHA for git-based plugins")})),Eh6=o6(()=>I.object({version:I.literal(2).describe("Schema version 2"),plugins:I.record(PJ6(),I.array(JtK())).describe("Map of plugin IDs to arrays of installation entries")})),WCw=o6(()=>I.union([kh6(),Eh6()])),MtK=o6(()=>I.object({source:Nh6().describe("Where to fetch the marketplace from"),installLocation:I.string().describe("Local cache path where marketplace manifest is stored"),lastUpdated:I.string().describe("ISO 8601 timestamp of last marketplace refresh"),autoUpdate:I.boolean().optional().describe("Whether to automatically update this marketplace and its installed plugins on startup")})),GJ6=o6(()=>I.record(I.string(),MtK()))});var DtK,XtK,nBA;var rBA=E(()=>{_4();DtK=o6(()=>I.object({allowedDomains:I.array(I.string()).optional(),allowManagedDomainsOnly:I.boolean().optional().describe("When true (and set in managed settings), only allowedDomains and WebFetch(domain:...) allow rules from managed settings are respected. User, project, local, and flag settings domains are ignored. Denied domains are still respected from all sources."),allowUnixSockets:I.array(I.string()).optional().describe("macOS only: Unix socket paths to allow. Ignored on Linux (seccomp cannot filter by path)."),allowAllUnixSockets:I.boolean().optional().describe("If true, allow all Unix sockets (disables blocking on both platforms)."),allowLocalBinding:I.boolean().optional(),httpProxyPort:I.number().optional(),socksProxyPort:I.number().optional()}).optional()),XtK=o6(()=>I.object({allowWrite:I.array(I.string()).optional().describe("Additional paths to allow writing within the sandbox. Merged with paths from Edit(...) allow permission rules."),denyWrite:I.array(I.string()).optional().describe("Additional paths to deny writing within the sandbox. Merged with paths from Edit(...) deny permission rules."),denyRead:I.array(I.string()).optional().describe("Additional paths to deny reading within the sandbox. Merged with paths from Read(...) deny permission rules.")}).optional()),nBA=o6(()=>I.object({enabled:I.boolean().optional(),autoAllowBashIfSandboxed:I.boolean().optional(),allowUnsandboxedCommands:I.boolean().optional().describe("Allow commands to run outside the sandbox via the dangerouslyDisableSandbox parameter. When false, the dangerouslyDisableSandbox parameter is completely ignored and all commands must run sandboxed. Default: true."),network:DtK(),filesystem:XtK(),ignoreViolations:I.record(I.string(),I.array(I.string())).optional(),enableWeakerNestedSandbox:I.boolean().optional(),enableWeakerNetworkIsolation:I.boolean().optional().describe("macOS only: Allow access to com.apple.trustd.agent in the sandbox. Needed for Go-based CLI tools (gh, gcloud, terraform, etc.) to verify TLS certificates when using httpProxyPort with a MITM proxy and custom CA. "+"**Reduces security** — opens a potential data exfiltration vector through the trustd service. Default: false"),excludedCommands:I.array(I.string()).optional(),ripgrep:I.object({command:I.string(),args:I.array(I.string()).optional()}).optional().describe("Custom ripgrep configuration for bundled ripgrep support")}).passthrough())});function ZJ6(A){return"serverName"in A&&A.serverName!==void 0}function wq1(A){return"serverCommand"in A&&A.serverCommand!==void 0}function _q1(A){return"serverUrl"in A&&A.serverUrl!==void 0}var PtK,WtK,GtK,ZtK,ftK,EX;var bC=E(()=>{_4();kX();la1();E2();j0();rBA();Kq1();Kq1();PtK=o6(()=>I.record(I.string(),I.coerce.string())),WtK=o6(()=>I.object({allow:I.array(qq1()).optional().describe("List of permission rules for allowed operations"),deny:I.array(qq1()).optional().describe("List of permission rules for denied operations"),ask:I.array(qq1()).optional().describe("List of permission rules that should always prompt for confirmation"),defaultMode:I.enum(Tm).optional().describe("Default permission mode when Claude Code needs access"),disableBypassPermissionsMode:I.enum(["disable"]).optional().describe("Disable the ability to bypass permission prompts"),...{},additionalDirectories:I.array(I.string()).optional().describe("Additional directories to include in the permission scope")}).passthrough()),GtK=o6(()=>I.object({source:Nh6().describe("Where to fetch the marketplace from"),installLocation:I.string().optional().describe("Local cache path where marketplace manifest is stored (auto-generated if not provided)"),autoUpdate:I.boolean().optional().describe("Whether to automatically update this marketplace and its installed plugins on startup")})),ZtK=o6(()=>I.object({serverName:I.string().regex(/^[a-zA-Z0-9_-]+$/,"Server name can only contain letters, numbers, hyphens, and underscores").optional().describe("Name of the MCP server that users are allowed to configure"),serverCommand:I.array(I.string()).min(1,"Server command must have at least one element (the command)").optional().describe("Command array [command, ...args] to match exactly for allowed stdio servers"),serverUrl:I.string().optional().describe('URL pattern with wildcard support (e.g., "https://*.example.com/*") for allowed remote MCP servers')}).refine((A)=>{return[A.serverName!==void 0,A.serverCommand!==void 0,A.serverUrl!==void 0].filter(Boolean).length===1},{message:'Entry must have exactly one of "serverName", "serverCommand", or "serverUrl"'})),ftK=o6(()=>I.object({serverName:I.string().regex(/^[a-zA-Z0-9_-]+$/,"Server name can only contain letters, numbers, hyphens, and underscores").optional().describe("Name of the MCP server that is explicitly blocked"),serverCommand:I.array(I.string()).min(1,"Server command must have at least one element (the command)").optional().describe("Command array [command, ...args] to match exactly for blocked stdio servers"),serverUrl:I.string().optional().describe('URL pattern with wildcard support (e.g., "https://*.example.com/*") for blocked remote MCP servers')}).refine((A)=>{return[A.serverName!==void 0,A.serverCommand!==void 0,A.serverUrl!==void 0].filter(Boolean).length===1},{message:'Entry must have exactly one of "serverName", "serverCommand", or "serverUrl"'})),EX=o6(()=>I.object({$schema:I.literal(TBA).optional().describe("JSON Schema reference for Claude Code settings"),apiKeyHelper:I.string().optional().describe("Path to a script that outputs authentication values"),awsCredentialExport:I.string().optional().describe("Path to a script that exports AWS credentials"),awsAuthRefresh:I.string().optional().describe("Path to a script that refreshes AWS authentication"),fileSuggestion:I.object({type:I.literal("command"),command:I.string()}).optional().describe("Custom file suggestion configuration for @ mentions"),respectGitignore:I.boolean().optional().describe("Whether file picker should respect .gitignore files (default: true). Note: .ignore files are always respected."),cleanupPeriodDays:I.number().nonnegative().int().optional().describe("Number of days to retain chat transcripts (0 to disable cleanup)"),env:PtK().optional().describe("Environment variables to set for Claude Code sessions"),attribution:I.object({commit:I.string().optional().describe("Attribution text for git commits, including any trailers. Empty string hides attribution."),pr:I.string().optional().describe("Attribution text for pull request descriptions. Empty string hides attribution.")}).optional().describe("Customize attribution text for commits and PRs. Each field defaults to the standard Claude Code attribution if not set."),includeCoAuthoredBy:I.boolean().optional().describe("Deprecated: Use attribution instead. Whether to include Claude's co-authored by attribution in commits and PRs (defaults to true)"),includeGitInstructions:I.boolean().optional().describe("Include built-in commit and PR workflow instructions in Claude's system prompt (default: true)"),permissions:WtK().optional().describe("Tool usage permissions configuration"),model:I.string().optional().describe("Override the default model used by Claude Code"),availableModels:I.array(I.string()).optional().describe('Allowlist of models that users can select. Accepts family aliases ("opus" allows any opus version), version prefixes ("opus-4-5" allows only that version), and full model IDs. If undefined, all models are available. If empty array, only the default model is available. Typically set in managed settings by enterprise administrators.'),enableAllProjectMcpServers:I.boolean().optional().describe("Whether to automatically approve all MCP servers in the project"),enabledMcpjsonServers:I.array(I.string()).optional().describe("List of approved MCP servers from .mcp.json"),disabledMcpjsonServers:I.array(I.string()).optional().describe("List of rejected MCP servers from .mcp.json"),allowedMcpServers:I.array(ZtK()).optional().describe("Enterprise allowlist of MCP servers that can be used. Applies to all scopes including enterprise servers from managed-mcp.json. If undefined, all servers are allowed. If empty array, no servers are allowed. Denylist takes precedence - if a server is on both lists, it is denied."),deniedMcpServers:I.array(ftK()).optional().describe("Enterprise denylist of MCP servers that are explicitly blocked. If a server is on the denylist, it will be blocked across all scopes including enterprise. Denylist takes precedence over allowlist - if a server is on both lists, it is denied."),hooks:Xy().optional().describe("Custom commands to run before/after tool executions"),worktree:I.object({symlinkDirectories:I.array(I.string()).optional().describe('Directories to symlink from main repository to worktrees to avoid disk bloat. Must be explicitly configured - no directories are symlinked by default. Common examples: "node_modules", ".cache", ".bin"')}).optional().describe("Git worktree configuration for --worktree flag. Symlinks prevent duplicating large directories like node_modules across worktrees."),disableAllHooks:I.boolean().optional().describe("Disable all hooks and statusLine execution"),allowManagedHooksOnly:I.boolean().optional().describe("When true (and set in managed settings), only hooks from managed settings run. User, project, and local hooks are ignored."),allowedHttpHookUrls:I.array(I.string()).optional().describe('Allowlist of URL patterns that HTTP hooks may target. Supports * as a wildcard (e.g. "https://hooks.example.com/*"). When set, HTTP hooks with non-matching URLs are blocked. If undefined, all URLs are allowed. If empty array, no HTTP hooks are allowed. Arrays merge across settings sources (same semantics as allowedMcpServers).'),httpHookAllowedEnvVars:I.array(I.string()).optional().describe("Allowlist of environment variable names HTTP hooks may interpolate into headers. When set, each hook's effective allowedEnvVars is the intersection with this list. If undefined, no restriction is applied. Arrays merge across settings sources (same semantics as allowedMcpServers)."),allowManagedPermissionRulesOnly:I.boolean().optional().describe("When true (and set in managed settings), only permission rules (allow/deny/ask) from managed settings are respected. User, project, local, and CLI argument permission rules are ignored."),allowManagedMcpServersOnly:I.boolean().optional().describe("When true (and set in managed settings), allowedMcpServers is only read from managed settings. deniedMcpServers still merges from all sources, so users can deny servers for themselves. Users can still add their own MCP servers, but only the admin-defined allowlist applies."),statusLine:I.object({type:I.literal("command"),command:I.string(),padding:I.number().optional()}).optional().describe("Custom status line display configuration"),enabledPlugins:I.record(I.string(),I.union([I.array(I.string()),I.boolean(),I.undefined()])).optional().describe('Enabled plugins using plugin-id@marketplace-id format. Example: { "formatter@anthropic-tools": true }. Also supports extended format with version constraints.'),extraKnownMarketplaces:I.record(I.string(),GtK()).optional().describe("Additional marketplaces to make available for this repository. Typically used in repository .claude/settings.json to ensure team members have required plugin sources."),strictKnownMarketplaces:I.array(Nh6()).optional().describe("Enterprise strict list of allowed marketplace sources. When set in managed settings, ONLY these exact sources can be added as marketplaces. The check happens BEFORE downloading, so blocked sources never touch the filesystem. "+"Note: this is a policy gate only — it does NOT register marketplaces. "+"To pre-register allowed marketplaces for users, also set extraKnownMarketplaces."),blockedMarketplaces:I.array(Nh6()).optional().describe("Enterprise blocklist of marketplace sources. When set in managed settings, these exact sources are blocked from being added as marketplaces. The check happens BEFORE downloading, so blocked sources never touch the filesystem."),forceLoginMethod:I.enum(["claudeai","console"]).optional().describe('Force a specific login method: "claudeai" for Claude Pro/Max, "console" for Console billing'),forceLoginOrgUUID:I.string().optional().describe("Organization UUID to use for OAuth login"),otelHeadersHelper:I.string().optional().describe("Path to a script that outputs OpenTelemetry headers"),outputStyle:I.string().optional().describe("Controls the output style for assistant responses"),language:I.string().optional().describe('Preferred language for Claude responses (e.g., "japanese", "spanish")'),skipWebFetchPreflight:I.boolean().optional().describe("Skip the WebFetch blocklist check for enterprise environments with restrictive security policies"),sandbox:nBA().optional(),spinnerTipsEnabled:I.boolean().optional().describe("Whether to show tips in the spinner"),spinnerVerbs:I.object({mode:I.enum(["append","replace"]),verbs:I.array(I.string())}).optional().describe('Customize spinner verbs. mode: "append" adds verbs to defaults, "replace" uses only your verbs.'),spinnerTipsOverride:I.object({excludeDefault:I.boolean().optional(),tips:I.array(I.string())}).optional().describe("Override spinner tips. tips: array of tip strings. excludeDefault: if true, only show custom tips (default: false)."),syntaxHighlightingDisabled:I.boolean().optional().describe("Whether to disable syntax highlighting in diffs"),terminalTitleFromRename:I.boolean().optional().describe("Whether /rename updates the terminal tab title (defaults to true). Set to false to keep auto-generated topic titles."),alwaysThinkingEnabled:I.boolean().optional().describe("When false, thinking is disabled. When absent or true, thinking is enabled automatically for supported models."),fastMode:I.boolean().optional().describe("When true, fast mode is enabled. When absent or false, fast mode is off."),fastModePerSessionOptIn:I.boolean().optional().describe("When true, fast mode does not persist across sessions. Each session starts with fast mode off."),promptSuggestionEnabled:I.boolean().optional().describe("When false, prompt suggestions are disabled. When absent or true, prompt suggestions are enabled."),agent:I.string().optional().describe("Name of an agent (built-in or custom) to use for the main thread. Applies the agent's system prompt, tool restrictions, and model."),companyAnnouncements:I.array(I.string()).optional().describe("Company announcements to display at startup (one will be randomly selected if multiple are provided)"),pluginConfigs:I.record(I.string(),I.object({mcpServers:I.record(I.string(),I.record(I.string(),I.union([I.string(),I.number(),I.boolean(),I.array(I.string())]))).optional().describe("User configuration values for MCP servers keyed by server name")})).optional().describe("Per-plugin configuration including MCP server user configs, keyed by plugin ID (plugin@marketplace format)"),remote:I.object({defaultEnvironmentId:I.string().optional().describe("Default environment ID to use for remote sessions")}).optional().describe("Remote session configuration"),autoUpdatesChannel:I.enum(["latest","stable"]).optional().describe("Release channel for auto-updates (latest or stable)"),minimumVersion:I.string().optional().describe("Minimum version to stay on - prevents downgrades when switching to stable channel"),plansDirectory:I.string().optional().describe("Custom directory for plan files, relative to project root. If not set, defaults to ~/.claude/plans/"),...{},...{voiceEnabled:I.boolean().optional().describe("Enable voice mode (hold Space to dictate)")},...{},prefersReducedMotion:I.boolean().optional().describe("Reduce or disable animations for accessibility (spinner shimmer, flash effects, etc.)"),autoMemoryEnabled:I.boolean().optional().describe("Enable auto-memory for this project. When false, Claude will not read from or write to the auto-memory directory."),showThinkingSummaries:I.boolean().optional().describe("Show thinking summaries in the transcript view (ctrl+o). Default: false."),skipDangerousModePermissionPrompt:I.boolean().optional().describe("Whether the user has accepted the bypass permissions mode dialog"),...{},sshConfigs:I.array(I.object({id:I.string().describe("Unique identifier for this SSH config. Used to match configs across settings sources."),name:I.string().describe("Display name for the SSH connection"),sshHost:I.string().describe('SSH host in format "user@hostname" or "hostname", or a host alias from ~/.ssh/config'),sshPort:I.number().int().optional().describe("SSH port (default: 22)"),sshIdentityFile:I.string().optional().describe("Path to SSH identity file (private key)")})).optional().describe("SSH connection configurations for remote environments. Typically set in managed settings by enterprise administrators to pre-configure SSH connections for team members."),claudeMdExcludes:I.array(I.string()).optional().describe('Glob patterns or absolute paths of CLAUDE.md files to exclude from loading. Patterns are matched against absolute file paths using picomatch. Only applies to User, Project, and Local memory types (Managed/policy files cannot be excluded). Examples: "/home/user/monorepo/CLAUDE.md", "**/code/CLAUDE.md", "**/some-dir/.claude/rules/**"'),pluginTrustMessage:I.string().optional().describe('Custom message to append to the plugin trust warning shown before installation. Only read from policy settings (managed-settings.json / MDM). Useful for enterprise administrators to add organization-specific context (e.g., "All plugins from our internal marketplace are vetted and approved.").')}).passthrough())});import{readFile as TtK}from"fs/promises";import{join as vtK}from"path";async function Lh6(A,q,K,Y){try{let z=await TtK(vtK(A,"config"),"utf-8");return VtK(z,q,K,Y)}catch{return null}}function VtK(A,q,K,Y){let z=A.split(`
`),w=q.toLowerCase(),_=Y.toLowerCase(),$=!1;for(let O of z){let H=O.trim();if(H.length===0||H[0]==="#"||H[0]===";")continue;if(H[0]==="["){$=LtK(H,w,K);continue}if(!$)continue;let j=NtK(H);if(j&&j.key.toLowerCase()===_)return j.value}return null}function NtK(A){let q=0;while(q<A.length&&ytK(A[q]))q++;if(q===0)return null;let K=A.slice(0,q);while(q<A.length&&(A[q]===" "||A[q]==="\t"))q++;if(q>=A.length||A[q]!=="=")return null;q++;while(q<A.length&&(A[q]===" "||A[q]==="\t"))q++;let Y=ktK(A,q);return{key:K,value:Y}}function ktK(A,q){let K="",Y=!1,z=q;while(z<A.length){let w=A[z];if(!Y&&(w==="#"||w===";"))break;if(w==='"'){Y=!Y,z++;continue}if(w==="\\"&&z+1<A.length){let _=A[z+1];if(Y){switch(_){case"n":K+=`
`;break;case"t":K+="\t";break;case"b":K+="\b";break;case'"':K+='"';break;case"\\":K+="\\";break;default:K+=_;break}z+=2;continue}if(_==="\\"){K+="\\",z+=2;continue}}K+=w,z++}if(!Y)K=EtK(K);return K}function EtK(A){let q=A.length;while(q>0&&(A[q-1]===" "||A[q-1]==="\t"))q--;return A.slice(0,q)}function LtK(A,q,K){let Y=1;while(Y<A.length&&A[Y]!=="]"&&A[Y]!==" "&&A[Y]!=="\t"&&A[Y]!=='"')Y++;if(A.slice(1,Y).toLowerCase()!==q)return!1;if(K===null)return Y<A.length&&A[Y]==="]";while(Y<A.length&&(A[Y]===" "||A[Y]==="\t"))Y++;if(Y>=A.length||A[Y]!=='"')return!1;Y++;let w="";while(Y<A.length&&A[Y]!=='"'){if(A[Y]==="\\"&&Y+1<A.length){let _=A[Y+1];if(_==="\\"||_==='"'){w+=_,Y+=2;continue}w+=_,Y+=2;continue}w+=A[Y],Y++}if(Y>=A.length||A[Y]!=='"')return!1;if(Y++,Y>=A.length||A[Y]!=="]")return!1;return w===K}function ytK(A){return A>="a"&&A<="z"||A>="A"&&A<="Z"||A>="0"&&A<="9"||A==="-"}var oBA=()=>{};import{watchFile as RtK,unwatchFile as aBA}from"fs";import{readFile as TJ6,stat as tBA,readdir as StK}from"fs/promises";import{resolve as sa1,join as uC}from"path";function eBA(){fJ6.clear()}async function Py(A){let q=sa1(A??h1()),K=fJ6.get(q);if(K!==void 0)return K;let Y=Vw(q);if(!Y)return fJ6.set(q,null),null;let z=uC(Y,".git");try{if((await tBA(z)).isFile()){let _=(await TJ6(z,"utf-8")).trim();if(_.startsWith("gitdir:")){let $=_.slice(7).trim(),O=sa1(Y,$);return fJ6.set(q,O),O}}return fJ6.set(q,z),z}catch{return fJ6.set(q,null),null}}async function $q1(A){try{let q=(await TJ6(uC(A,"HEAD"),"utf-8")).trim();if(q.startsWith("ref:")){let K=q.slice(4).trim();if(K.startsWith("refs/heads/"))return{type:"branch",name:K.slice(11)};let Y=await yh6(A,K);return Y?{type:"detached",sha:Y}:{type:"detached",sha:""}}return{type:"detached",sha:q}}catch{return null}}async function yh6(A,q){let K=await sBA(A,q);if(K)return K;let Y=await ta1(A);if(Y&&Y!==A)return sBA(Y,q);return null}async function sBA(A,q){try{let K=(await TJ6(uC(A,q),"utf-8")).trim();if(K.startsWith("ref:"))return yh6(A,K.slice(4).trim());return K}catch{}try{let K=await TJ6(uC(A,"packed-refs"),"utf-8");for(let Y of K.split(`
`)){if(Y.startsWith("#")||Y.startsWith("^"))continue;let z=Y.indexOf(" ");if(z===-1)continue;if(Y.slice(z+1)===q)return Y.slice(0,z)}}catch{}return null}async function ta1(A){try{let q=(await TJ6(uC(A,"commondir"),"utf-8")).trim();return sa1(A,q)}catch{return null}}async function htK(A,q,K){try{let Y=(await TJ6(uC(A,q),"utf-8")).trim();if(Y.startsWith("ref:")){let z=Y.slice(4).trim();if(z.startsWith(K))return z.slice(K.length)}}catch{}return null}class AgA{gitDir=null;initialized=!1;initPromise=null;watchedPaths=[];branchRefPath=null;cache=new Map;async ensureStarted(){if(this.initialized)return;if(this.initPromise)return this.initPromise;return this.initPromise=this.start(),this.initPromise}async start(){if(this.initialized=!0,this.gitDir=await Py(),!this.gitDir)return;this.watchPath(uC(this.gitDir,"HEAD"),()=>{this.onHeadChanged()}),this.watchPath(uC(this.gitDir,"config"),()=>{this.invalidate()}),await this.watchCurrentBranchRef(),Pq(async()=>{this.stopWatching()})}watchPath(A,q){this.watchedPaths.push(A),RtK(A,{interval:CtK},q)}async watchCurrentBranchRef(){if(!this.gitDir)return;let A=await $q1(this.gitDir);if(!A||A.type!=="branch")return;let q=uC(this.gitDir,"refs","heads",A.name);if(q===this.branchRefPath)return;if(this.branchRefPath)aBA(this.branchRefPath),this.watchedPaths=this.watchedPaths.filter((K)=>K!==this.branchRefPath);this.branchRefPath=q,this.watchPath(q,()=>{this.invalidate()})}async onHeadChanged(){await this.watchCurrentBranchRef(),this.invalidate()}invalidate(){for(let A of this.cache.values())A.dirty=!0}stopWatching(){for(let A of this.watchedPaths)aBA(A);this.watchedPaths=[],this.branchRefPath=null}async get(A,q){await this.ensureStarted();let K=this.cache.get(A);if(K&&!K.dirty)return K.value;if(K)K.dirty=!1;let Y=await q(),z=this.cache.get(A);if(z&&!z.dirty)z.value=Y;if(!z)this.cache.set(A,{value:Y,dirty:!1,compute:q});return Y}reset(){this.stopWatching(),this.cache.clear(),this.initialized=!1,this.initPromise=null,this.gitDir=null}}async function ItK(){let A=await Py();if(!A)return"HEAD";let q=await $q1(A);if(!q)return"HEAD";return q.type==="branch"?q.name:"HEAD"}async function xtK(){let A=await Py();if(!A)return"";let q=await $q1(A);if(!q)return"";if(q.type==="branch")return await yh6(A,`refs/heads/${q.name}`)??"";return q.sha}async function btK(){let A=await Py();if(!A)return null;let q=await Lh6(A,"remote","origin","url");if(q)return q;let K=await ta1(A);if(K&&K!==A)return Lh6(K,"remote","origin","url");return null}async function utK(){let A=await Py();if(!A)return"main";let q=await htK(A,"refs/remotes/origin/HEAD","refs/remotes/origin/");if(q)return q;for(let K of["main","master"])if(await yh6(A,`refs/remotes/origin/${K}`))return K;return"main"}function qgA(){return Oq1.get("branch",ItK)}function KgA(){return Oq1.get("head",xtK)}function YgA(){return Oq1.get("remoteUrl",btK)}function zgA(){return Oq1.get("defaultBranch",utK)}async function Hq1(A){let q=await Py(A);if(!q)return null;let K=await $q1(q);if(!K)return null;if(K.type==="branch")return yh6(q,`refs/heads/${K.name}`);return K.sha}async function jq1(A){let q=await Py(A);if(!q)return null;let K=await Lh6(q,"remote","origin","url");if(K)return K;let Y=await ta1(q);if(Y&&Y!==q)return Lh6(Y,"remote","origin","url");return null}async function wgA(){let A=await Py();if(!A)return!1;try{return await tBA(uC(A,"shallow")),!0}catch{return!1}}async function _gA(){try{let A=await Py();if(!A)return 0;return(await StK(uC(A,"worktrees"))).length+1}catch{return 1}}var fJ6,CtK=1000,Oq1;var fq6=E(()=>{r3();X7();xz();oBA();fJ6=new Map;Oq1=new AgA});function Jq1(A){let q=A.slice(A.lastIndexOf(".")).toLowerCase();return mtK.has(q)}function $gA(A){let q=Math.min(A.length,BtK),K=0;for(let Y=0;Y<q;Y++){let z=A[Y];if(z===0)return!0;if(z<32&&z!==9&&z!==10&&z!==13)K++}return K/q>0.1}var mtK,BtK=8192;var ea1=E(()=>{mtK=new Set([".png",".jpg",".jpeg",".gif",".bmp",".ico",".webp",".tiff",".tif",".mp4",".mov",".avi",".mkv",".webm",".wmv",".flv",".m4v",".mpeg",".mpg",".mp3",".wav",".ogg",".flac",".aac",".m4a",".wma",".aiff",".opus",".zip",".tar",".gz",".bz2",".7z",".rar",".xz",".z",".tgz",".iso",".exe",".dll",".so",".dylib",".bin",".o",".a",".obj",".lib",".app",".msi",".deb",".rpm",".pdf",".doc",".docx",".xls",".xlsx",".ppt",".pptx",".odt",".ods",".odp",".ttf",".otf",".woff",".woff2",".eot",".pyc",".pyo",".class",".jar",".war",".ear",".node",".wasm",".rlib",".sqlite",".sqlite3",".db",".mdb",".idx",".psd",".ai",".eps",".sketch",".fig",".xd",".blend",".3ds",".max",".swf",".fla",".lockb",".dat",".data"])});var Ch6={};d1(Ch6,{parseGitRemote:()=>hh6,parseGitHubRepository:()=>Tq6,getCachedRepository:()=>Sh6,detectCurrentRepositoryWithHost:()=>Rh6,detectCurrentRepository:()=>IU,clearRepositoryCaches:()=>As1});function As1(){VJ6.clear(),vJ6.clear()}async function IU(){let A=await Rh6();if(!A)return null;if(A.host!=="github.com")return null;return`${A.owner}/${A.name}`}async function Rh6(){let A=h1();if(vJ6.has(A))return vJ6.get(A)??null;try{let q=await ha();if(y(`Git remote URL: ${q}`),!q)return y("No git remote URL found"),vJ6.set(A,null),VJ6.set(A,null),null;let K=hh6(q);if(y(`Parsed repository: ${K?`${K.host}/${K.owner}/${K.name}`:null} from URL: ${q}`),vJ6.set(A,K),K&&K.host==="github.com")VJ6.set(A,`${K.owner}/${K.name}`);else VJ6.set(A,null);return K}catch(q){return y(`Error detecting repository: ${q}`),vJ6.set(A,null),VJ6.set(A,null),null}}function Sh6(){return VJ6.get(h1())??null}function hh6(A){let q=A.trim(),K=q.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(K?.[1]&&K[2]&&K[3]){if(!OgA(K[1]))return null;return{host:K[1],owner:K[2],name:K[3]}}let Y=q.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(Y?.[1]&&Y[2]&&Y[3]&&Y[4]){let z=Y[1],w=Y[2],_=w.split(":")[0]??"";if(!OgA(_))return null;return{host:z==="https"||z==="http"?w:_,owner:Y[3],name:Y[4]}}return null}function Tq6(A){let q=A.trim(),K=hh6(q);if(K){if(K.host!=="github.com")return null;return`${K.owner}/${K.name}`}if(!q.includes("://")&&!q.includes("@")&&q.includes("/")){let Y=q.split("/");if(Y.length===2&&Y[0]&&Y[1]){let z=Y[1].replace(/\.git$/,"");return`${Y[0]}/${z}`}}return y(`Could not parse repository from: ${q}`),null}function OgA(A){if(!A.includes("."))return!1;let q=A.split(".").pop();if(!q)return!1;return/^[a-zA-Z]+$/.test(q)}var VJ6,vJ6;var wf=E(()=>{r3();Z1();X7();VJ6=new Map,vJ6=new Map});var Hs1={};d1(Hs1,{stashToCleanState:()=>_s1,preserveGitStateForIssue:()=>stK,normalizeGitRemoteUrl:()=>vgA,isAtGitRoot:()=>ltK,gitExe:()=>oA,getWorktreeCount:()=>NJ6,getRepoRemoteHash:()=>Ih6,getRemoteUrl:()=>ha,getIsHeadOnRemote:()=>zs1,getIsGit:()=>jj,getIsClean:()=>Ca,getHead:()=>TgA,getGithubRepo:()=>Os1,getGitStateIssue:()=>itK,getGitState:()=>$s1,getGitDir:()=>Ks1,getFileStatus:()=>Xq1,getDefaultBranch:()=>fv,getCommitsAheadOfDefaultBranch:()=>VgA,getChangedFiles:()=>rtK,getBranchPushStatus:()=>ws1,getBranch:()=>aj,findRemoteBase:()=>NgA,findGitRoot:()=>Vw,findCanonicalGitRoot:()=>J0,dirIsInGitRepo:()=>Ys1,commitAndPushChanges:()=>ntK});import{createHash as gtK}from"crypto";import{statSync as HgA,readFileSync as jgA}from"fs";import{realpath as JgA,stat as ptK,readFile as FtK,open as QtK}from"fs/promises";import{resolve as qs1,dirname as ZgA,join as Dq1,sep as MgA,basename as UtK}from"path";function dtK(){function A(q){let K=DgA(q);return K===fgA?null:K}return A.cache=DgA.cache,A}function ctK(){function A(q){let K=Vw(q);if(!K)return null;return XgA(K)}return A.cache=XgA.cache,A}function Ks1(A){return Py(A)}async function ltK(){let A=h1(),q=Vw(A);if(!q)return!1;try{let[K,Y]=await Promise.all([JgA(A),JgA(q)]);return K===Y}catch{return A===q}}function vgA(A){let q=A.trim();if(!q)return null;let K=q.match(/^git@([^:]+):(.+?)(?:\.git)?$/);if(K&&K[1]&&K[2])return`${K[1]}/${K[2]}`.toLowerCase();let Y=q.match(/^(?:https?|ssh):\/\/(?:[^@]+@)?([^/]+)\/(.+?)(?:\.git)?$/);if(Y&&Y[1]&&Y[2]){let z=Y[1],w=Y[2];if(ttK(z)&&w.startsWith("git/")){let _=w.slice(4),$=_.split("/");if($.length>=3&&$[0].includes("."))return _.toLowerCase();return`github.com/${_}`.toLowerCase()}return`${z}/${w}`.toLowerCase()}return null}async function Ih6(){let A=await ha();if(!A)return null;let q=vgA(A);if(!q)return null;return gtK("sha256").update(q).digest("hex").substring(0,16)}async function VgA(){let A=await fv(),{stdout:q,code:K}=await G8(oA(),["rev-list","--count",`${A}..HEAD`]);if(K!==0)return null;return parseInt(q.trim(),10)||0}async function $s1(){try{let[A,q,K,Y,z,w]=await Promise.all([TgA(),aj(),ha(),zs1(),Ca(),NJ6()]);return{commitHash:A,branchName:q,remoteUrl:K,isHeadOnRemote:Y,isClean:z,worktreeCount:w}}catch(A){return null}}async function Os1(){let{parseGitRemote:A}=await Promise.resolve().then(() => (wf(),Ch6)),q=await ha();if(!q)return y("Local GitHub repo: unknown"),null;let K=A(q);if(K&&K.host==="github.com"){let Y=`${K.owner}/${K.name}`;return y(`Local GitHub repo: ${Y}`),Y}return y("Local GitHub repo: unknown"),null}async function NgA(){let{stdout:A,code:q}=await G8(oA(),["rev-parse","--abbrev-ref","--symbolic-full-name","@{u}"],{preserveOutputOnError:!1});if(q===0&&A.trim())return A.trim();let{stdout:K,code:Y}=await G8(oA(),["remote","show","origin","--","HEAD"],{preserveOutputOnError:!1});if(Y===0){let w=K.match(/HEAD branch: (\S+)/);if(w&&w[1])return`origin/${w[1]}`}let z=["origin/main","origin/staging","origin/master"];for(let w of z){let{code:_}=await G8(oA(),["rev-parse","--verify",w],{preserveOutputOnError:!1});if(_===0)return w}return null}function atK(){return wgA()}async function Mq1(){let{stdout:A,code:q}=await G8(oA(),["ls-files","--others","--exclude-standard"],{preserveOutputOnError:!1});if(q!==0||!A.trim())return[];let K=A.trim().split(`
`).filter(Boolean),Y=[],z=0;for(let w of K){if(Y.length>=GgA){y(`Untracked file capture: reached max file count (${GgA})`);break}if(Jq1(w))continue;try{let $=(await ptK(w)).size;if($>PgA){y(`Untracked file capture: skipping ${w} (exceeds ${PgA} bytes)`);continue}if(z+$>WgA){y(`Untracked file capture: reached total size limit (${WgA} bytes)`);break}if($===0){Y.push({path:w,content:""});continue}let O=Math.min(otK,$),H=await QtK(w,"r");try{let j=Buffer.alloc(O),{bytesRead:J}=await H.read(j,0,O,0),M=j.subarray(0,J);if($gA(M))continue;let D;if($<=O)D=M.toString("utf-8");else D=await FtK(w,"utf-8");Y.push({path:w,content:D}),z+=$}finally{await H.close()}}catch(_){y(`Failed to read untracked file ${w}: ${_}`)}}return Y}async function stK(){try{if(!await jj())return null;if(await atK()){y("Shallow clone detected, using HEAD-only mode for issue");let[{stdout:M},D]=await Promise.all([G8(oA(),["diff","HEAD"]),Mq1()]);return{remote_base_sha:null,remote_base:null,patch:M||"",untracked_files:D,format_patch:null,head_sha:null,branch_name:null}}let q=await NgA();if(!q){y("No remote found, using HEAD-only mode for issue");let[{stdout:M},D]=await Promise.all([G8(oA(),["diff","HEAD"]),Mq1()]);return{remote_base_sha:null,remote_base:null,patch:M||"",untracked_files:D,format_patch:null,head_sha:null,branch_name:null}}let{stdout:K,code:Y}=await G8(oA(),["merge-base","HEAD",q],{preserveOutputOnError:!1});if(Y!==0||!K.trim()){y("Merge-base failed, using HEAD-only mode for issue");let[{stdout:M},D]=await Promise.all([G8(oA(),["diff","HEAD"]),Mq1()]);return{remote_base_sha:null,remote_base:null,patch:M||"",untracked_files:D,format_patch:null,head_sha:null,branch_name:null}}let z=K.trim(),[{stdout:w},_,{stdout:$,code:O},{stdout:H},{stdout:j}]=await Promise.all([G8(oA(),["diff",z]),Mq1(),G8(oA(),["format-patch",`${z}..HEAD`,"--stdout"]),G8(oA(),["rev-parse","HEAD"]),G8(oA(),["rev-parse","--abbrev-ref","HEAD"])]),J=null;if(O===0&&$&&$.trim())J=$;return{remote_base_sha:z,remote_base:q,patch:w||"",untracked_files:_,format_patch:J,head_sha:H?.trim()||null,branch_name:j?.trim()&&j.trim()!=="HEAD"?j.trim():null}}catch(A){return $6(A),null}}function ttK(A){let q=A.split(":")[0]??"";return q==="localhost"||/^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(q)}var fgA,DgA,Vw,XgA,J0,oA,jj,Ys1=async(A)=>{return Vw(A)!==null},TgA=async()=>{return KgA()},aj=async()=>{return qgA()},fv=async()=>{return zgA()},ha=async()=>{return YgA()},zs1=async()=>{let{code:A}=await G8(oA(),["rev-parse","@{u}"],{preserveOutputOnError:!1});return A===0},Ca=async(A)=>{let q=["--no-optional-locks","status","--porcelain"];if(A?.ignoreUntracked)q.push("-uno");let{stdout:K}=await G8(oA(),q,{preserveOutputOnError:!1});return K.trim().length===0},ws1=async()=>{let[A,q]=await Promise.all([zs1(),VgA()]);if(!A)return{hasUpstream:!1,needsPush:!0,commitsAhead:0,commitsAheadOfDefaultBranch:q};let{stdout:K,code:Y}=await G8(oA(),["rev-list","--count","@{u}..HEAD"],{preserveOutputOnError:!1});if(Y!==0)return{hasUpstream:!0,needsPush:!1,commitsAhead:0,commitsAheadOfDefaultBranch:q};let z=parseInt(K.trim(),10)||0;return{hasUpstream:!0,needsPush:z>0,commitsAhead:z,commitsAheadOfDefaultBranch:q}},itK=async()=>{let[A,q]=await Promise.all([Ca(),ws1()]);return{hasUncommitted:!A,hasUnpushed:q.needsPush,commitsAheadOfDefaultBranch:q.commitsAheadOfDefaultBranch}},ntK=async(A,q)=>{if(!await Ca()){q?.("committing");let{code:O,stderr:H}=await G8(oA(),["add","-A"],{preserveOutputOnError:!0});if(O!==0)return{success:!1,error:`Failed to stage changes: ${H}`};let{code:j,stderr:J}=await G8(oA(),["commit","-m",A],{preserveOutputOnError:!0});if(j!==0)return{success:!1,error:`Failed to commit: ${J}`}}q?.("pushing");let[Y,z]=await Promise.all([ws1(),aj()]),w=Y.hasUpstream?["push"]:["push","-u","origin",z],{code:_,stderr:$}=await G8(oA(),w,{preserveOutputOnError:!0});if(_!==0)return{success:!1,error:`Failed to push: ${$}`};return{success:!0}},rtK=async()=>{let{stdout:A}=await G8(oA(),["--no-optional-locks","status","--porcelain"],{preserveOutputOnError:!1});return A.trim().split(`
`).map((q)=>q.trim().split(" ",2)[1]?.trim()).filter((q)=>typeof q==="string")},Xq1=async()=>{let{stdout:A}=await G8(oA(),["--no-optional-locks","status","--porcelain"],{preserveOutputOnError:!1}),q=[],K=[];return A.trim().split(`
`).filter((Y)=>Y.length>0).forEach((Y)=>{let z=Y.substring(0,2),w=Y.substring(2).trim();if(z==="??")K.push(w);else if(w)q.push(w)}),{tracked:q,untracked:K}},NJ6=async()=>{return _gA()},_s1=async(A)=>{try{let q=A||`Claude Code auto-stash - ${new Date().toISOString()}`,{untracked:K}=await Xq1();if(K.length>0){let{code:z}=await G8(oA(),["add",...K],{preserveOutputOnError:!1});if(z!==0)return!1}let{code:Y}=await G8(oA(),["stash","push","--message",q],{preserveOutputOnError:!1});return Y===0}catch(q){return!1}},PgA=524288000,WgA=5368709120,GgA=20000,otK=65536;var r3=E(()=>{Rq();Dm();dq();Z1();X7();tw();u1();Om();fq6();ea1();fgA=Symbol("git-root-not-found"),DgA=_0((A)=>{let q=Date.now();w8("info","find_git_root_started");let K=qs1(A),Y=K.substring(0,K.indexOf(MgA)+1)||MgA,z=0;while(K!==Y){try{let _=Dq1(K,".git");z++;let $=HgA(_);if($.isDirectory()||$.isFile())return w8("info","find_git_root_completed",{duration_ms:Date.now()-q,stat_count:z,found:!0}),K.normalize("NFC")}catch{}let w=ZgA(K);if(w===K)break;K=w}try{let w=Dq1(Y,".git");z++;let _=HgA(w);if(_.isDirectory()||_.isFile())return w8("info","find_git_root_completed",{duration_ms:Date.now()-q,stat_count:z,found:!0}),Y.normalize("NFC")}catch{}return w8("info","find_git_root_completed",{duration_ms:Date.now()-q,stat_count:z,found:!1}),fgA},(A)=>A,50),Vw=dtK();XgA=_0((A)=>{try{let q=jgA(Dq1(A,".git"),"utf-8").trim();if(!q.startsWith("gitdir:"))return A;let K=qs1(A,q.slice(7).trim()),Y=qs1(K,jgA(Dq1(K,"commondir"),"utf-8").trim());if(UtK(Y)!==".git")return Y.normalize("NFC");return ZgA(Y).normalize("NFC")}catch{return A}},(A)=>A,50),J0=ctK();oA=k8(()=>{return pA1("git")||"git"}),jj=k8(async()=>{let A=Date.now();w8("info","is_git_check_started");let q=Vw(h1())!==null;return w8("info","is_git_check_completed",{duration_ms:Date.now()-A,is_git:q}),q})});import{join as etK,dirname as AeK}from"path";import{homedir as qeK}from"os";import{mkdir as KeK,readFile as YeK,appendFile as zeK,writeFile as weK}from"fs/promises";async function js1(A,q){let{code:K}=await Y7("git",["check-ignore",A],{preserveOutputOnError:!1,cwd:q});return K===0}function _eK(){return etK(qeK(),".config","git","ignore")}async function kgA(A,q=h1()){try{if(!await Ys1(q))return;let K=`**/${A}`,Y=A.endsWith("/")?`${A}sample-file.txt`:A;if(await js1(Y,q))return;let z=_eK(),w=AeK(z);await KeK(w,{recursive:!0});try{if((await YeK(z,{encoding:"utf-8"})).includes(K))return;await zeK(z,`
${K}
`)}catch(_){if(_.code==="ENOENT")await weK(z,`${K}
`,"utf-8");else throw _}}catch(K){$6(K)}}var Js1=E(()=>{r3();X7();u1();dq()});function EgA(A){let q=$eK.find((Y)=>Y.matches(A));if(!q)return null;let K={...q.tip};if(A.code==="invalid_value"&&A.enumValues&&!K.suggestion)K.suggestion=`Valid values: ${A.enumValues.map((Y)=>`"${Y}"`).join(", ")}`;if(!K.docLink&&A.path){let Y=A.path.split(".")[0];if(Y)K.docLink=OeK[Y]}return K}var $eK,OeK;var LgA=E(()=>{$eK=[{matches:(A)=>A.path==="permissions.defaultMode"&&A.code==="invalid_value",tip:{suggestion:'Valid modes: "acceptEdits" (ask before file changes), "plan" (analysis only), "bypassPermissions" (auto-accept all), or "default" (standard behavior)',docLink:"https://code.claude.com/docs/en/iam#permission-modes"}},{matches:(A)=>A.path==="apiKeyHelper"&&A.code==="invalid_type",tip:{suggestion:'Provide a shell command that outputs your API key to stdout. The script should output only the API key. Example: "/bin/generate_temp_api_key.sh"'}},{matches:(A)=>A.path==="cleanupPeriodDays"&&A.code==="too_small"&&A.expected==="0",tip:{suggestion:"Must be 0 or greater. Use 0 to disable automatic cleanup and keep chat transcripts forever, or set a positive number for days to retain (default is 30 days)"}},{matches:(A)=>A.path.startsWith("env.")&&A.code==="invalid_type",tip:{suggestion:'Environment variables must be strings. Wrap numbers and booleans in quotes. Example: "DEBUG": "true", "PORT": "3000"',docLink:"https://code.claude.com/docs/en/settings#environment-variables"}},{matches:(A)=>(A.path==="permissions.allow"||A.path==="permissions.deny")&&A.code==="invalid_type"&&A.expected==="array",tip:{suggestion:'Permission rules must be in an array. Format: ["Tool(specifier)"]. Examples: ["Bash(npm run build)", "Edit(docs/**)", "Read(~/.zshrc)"]. Use * for wildcards.'}},{matches:(A)=>A.path.includes("hooks")&&A.code==="invalid_type",tip:{suggestion:'Hooks use a new format with matchers. Example: {"PostToolUse": [{"matcher": {"tools": ["BashTool"]}, "hooks": [{"type": "command", "command": "echo Done"}]}]}'}},{matches:(A)=>A.code==="invalid_type"&&A.expected==="boolean",tip:{suggestion:'Use true or false without quotes. Example: "includeCoAuthoredBy": true'}},{matches:(A)=>A.code==="unrecognized_keys",tip:{suggestion:"Check for typos or refer to the documentation for valid fields",docLink:"https://code.claude.com/docs/en/settings"}},{matches:(A)=>A.code==="invalid_value"&&A.enumValues!==void 0,tip:{suggestion:void 0}},{matches:(A)=>A.code==="invalid_type"&&A.expected==="object"&&A.received===null&&A.path==="",tip:{suggestion:"Check for missing commas, unmatched brackets, or trailing commas. Use a JSON validator to identify the exact syntax error."}},{matches:(A)=>A.path==="permissions.additionalDirectories"&&A.code==="invalid_type",tip:{suggestion:'Must be an array of directory paths. Example: ["~/projects", "/tmp/workspace"]. You can also use --add-dir flag or /add-dir command',docLink:"https://code.claude.com/docs/en/iam#working-directories"}}],OeK={permissions:"https://code.claude.com/docs/en/iam#configuring-permissions",env:"https://code.claude.com/docs/en/settings#environment-variables",hooks:"https://code.claude.com/docs/en/hooks"}});function Ms1(){let A=rQ(EX(),{unrepresentable:"any"});return p6(A,null,2)}var ygA=E(()=>{_4();bC();a1()});function RgA(A){return A.code==="invalid_type"}function SgA(A){return A.code==="invalid_value"}function HeK(A){return A.code==="unrecognized_keys"}function hgA(A){return A.code==="too_small"}function Ds1(A){if(A===null)return"null";if(A===void 0)return"undefined";if(Array.isArray(A))return"array";return typeof A}function CgA(A){let q=A.match(/received (\w+)/);return q?q[1]:void 0}function kJ6(A,q){return A.issues.map((K)=>{let Y=K.path.map(String).join("."),z=K.message,w,_,$,O,H;if(SgA(K))_=K.values.map((J)=>String(J)),$=_.join(" | "),O=void 0,H=void 0;else if(RgA(K)){$=K.expected;let J=CgA(K.message);O=J??Ds1(K.input),H=J??Ds1(K.input)}else if(hgA(K))$=String(K.minimum);else if(K.code==="custom"&&"params"in K)O=K.params.received,H=O;let j=EgA({path:Y,code:K.code,expected:$,received:O,enumValues:_,message:K.message,value:O});if(SgA(K))w=_?.map((J)=>`"${J}"`).join(", "),z=`Invalid value. Expected one of: ${w}`;else if(RgA(K)){let J=CgA(K.message)??Ds1(K.input);if(K.expected==="object"&&J==="null"&&Y==="")z="Invalid or malformed JSON";else z=`Expected ${K.expected}, but received ${J}`}else if(HeK(K)){let J=K.keys.join(", ");z=`Unrecognized field${K.keys.length>1?"s":""}: ${J}`}else if(hgA(K))z=`Number must be greater than or equal to ${K.minimum}`,w=String(K.minimum);return{file:q,path:Y,message:z,expected:w,invalidValue:H,suggestion:j?.suggestion,docLink:j?.docLink}})}function Xs1(A){try{let q=q8(A),K=EX().strict().safeParse(q);if(K.success)return{isValid:!0};return{isValid:!1,error:`Settings validation failed:
`+kJ6(K.error,"settings").map((w)=>`- ${w.path}: ${w.message}`).join(`
`),fullSchema:Ms1()}}catch(q){return{isValid:!1,error:`Invalid JSON: ${q instanceof Error?q.message:"Unknown parsing error"}`,fullSchema:Ms1()}}}function Pq1(A,q){if(!A||typeof A!=="object")return[];let K=A;if(!K.permissions||typeof K.permissions!=="object")return[];let Y=K.permissions,z=[];for(let w of["allow","deny","ask"]){let _=Y[w];if(!Array.isArray(_))continue;Y[w]=_.filter(($)=>{if(typeof $!=="string")return z.push({file:q,path:`permissions.${w}`,message:`Non-string value in ${w} array was removed`,invalidValue:$}),!1;let O=ca1($);if(!O.valid){let H=`Invalid permission rule "${$}" was skipped`;if(O.error)H+=`: ${O.error}`;if(O.suggestion)H+=`. ${O.suggestion}`;return z.push({file:q,path:`permissions.${w}`,message:H,invalidValue:$}),!1}return!0})}return z}var Wq1=E(()=>{bC();LgA();ygA();a1();la1()});import{existsSync as jeK}from"fs";var $G;var Ia=E(()=>{Rq();iK();$G=k8(function(){switch(o8()){case"macos":return"/Library/Application Support/ClaudeCode";case"windows":if(jeK("C:\\Program Files\\ClaudeCode"))return"C:\\Program Files\\ClaudeCode";return"C:\\ProgramData\\ClaudeCode";default:return"/etc/claude-code"}})});import{stat as JeK,lstat as IgA,readdir as MeK,realpath as DeK}from"node:fs/promises";import{Readable as XeK}from"node:stream";import{resolve as xgA,relative as PeK,join as WeK,sep as GeK}from"node:path";function pgA(A,q={}){let K=q.entryType||q.type;if(K==="both")K=Hk.FILE_DIR_TYPE;if(K)q.type=K;if(!A)throw Error("readdirp: root argument is required. Usage: readdirp(root, options)");else if(typeof A!=="string")throw TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");else if(K&&!bgA.includes(K))throw Error(`readdirp: Invalid type passed. Use one of ${bgA.join(", ")}`);return q.root=A,new ggA(q)}var Hk,Ps1,BgA="READDIRP_RECURSIVE_ERROR",ZeK,bgA,feK,TeK,veK=(A)=>ZeK.has(A.code),VeK,ugA=(A)=>!0,mgA=(A)=>{if(A===void 0)return ugA;if(typeof A==="function")return A;if(typeof A==="string"){let q=A.trim();return(K)=>K.basename===q}if(Array.isArray(A)){let q=A.map((K)=>K.trim());return(K)=>q.some((Y)=>K.basename===Y)}return ugA},ggA;var FgA=E(()=>{Hk={FILE_TYPE:"files",DIR_TYPE:"directories",FILE_DIR_TYPE:"files_directories",EVERYTHING_TYPE:"all"},Ps1={root:".",fileFilter:(A)=>!0,directoryFilter:(A)=>!0,type:Hk.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:4096};Object.freeze(Ps1);ZeK=new Set(["ENOENT","EPERM","EACCES","ELOOP",BgA]),bgA=[Hk.DIR_TYPE,Hk.EVERYTHING_TYPE,Hk.FILE_DIR_TYPE,Hk.FILE_TYPE],feK=new Set([Hk.DIR_TYPE,Hk.EVERYTHING_TYPE,Hk.FILE_DIR_TYPE]),TeK=new Set([Hk.EVERYTHING_TYPE,Hk.FILE_DIR_TYPE,Hk.FILE_TYPE]),VeK=process.platform==="win32";ggA=class ggA extends XeK{constructor(A={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:A.highWaterMark});let q={...Ps1,...A},{root:K,type:Y}=q;this._fileFilter=mgA(q.fileFilter),this._directoryFilter=mgA(q.directoryFilter);let z=q.lstat?IgA:JeK;if(VeK)this._stat=(w)=>z(w,{bigint:!0});else this._stat=z;this._maxDepth=q.depth??Ps1.depth,this._wantsDir=Y?feK.has(Y):!1,this._wantsFile=Y?TeK.has(Y):!1,this._wantsEverything=Y===Hk.EVERYTHING_TYPE,this._root=xgA(K),this._isDirent=!q.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(K,1)],this.reading=!1,this.parent=void 0}async _read(A){if(this.reading)return;this.reading=!0;try{while(!this.destroyed&&A>0){let q=this.parent,K=q&&q.files;if(K&&K.length>0){let{path:Y,depth:z}=q,w=K.splice(0,A).map(($)=>this._formatEntry($,Y)),_=await Promise.all(w);for(let $ of _){if(!$)continue;if(this.destroyed)return;let O=await this._getEntryType($);if(O==="directory"&&this._directoryFilter($)){if(z<=this._maxDepth)this.parents.push(this._exploreDir($.fullPath,z+1));if(this._wantsDir)this.push($),A--}else if((O==="file"||this._includeAsFile($))&&this._fileFilter($)){if(this._wantsFile)this.push($),A--}}}else{let Y=this.parents.pop();if(!Y){this.push(null);break}if(this.parent=await Y,this.destroyed)return}}}catch(q){this.destroy(q)}finally{this.reading=!1}}async _exploreDir(A,q){let K;try{K=await MeK(A,this._rdOptions)}catch(Y){this._onError(Y)}return{files:K,depth:q,path:A}}async _formatEntry(A,q){let K,Y=this._isDirent?A.name:A;try{let z=xgA(WeK(q,Y));K={path:PeK(this._root,z),fullPath:z,basename:Y},K[this._statsProp]=this._isDirent?A:await this._stat(z)}catch(z){this._onError(z);return}return K}_onError(A){if(veK(A)&&!this.destroyed)this.emit("warn",A);else this.destroy(A)}async _getEntryType(A){if(!A&&this._statsProp in A)return"";let q=A[this._statsProp];if(q.isFile())return"file";if(q.isDirectory())return"directory";if(q&&q.isSymbolicLink()){let K=A.fullPath;try{let Y=await DeK(K),z=await IgA(Y);if(z.isFile())return"file";if(z.isDirectory()){let w=Y.length;if(K.startsWith(Y)&&K.substr(w,1)===GeK){let _=Error(`Circular symlink detected: "${K}" points to "${Y}"`);return _.code=BgA,this._onError(_)}return"directory"}}catch(Y){return this._onError(Y),""}}}_includeAsFile(A){let q=A&&A[this._statsProp];return q&&this._wantsEverything&&!q.isDirectory()}}});import{watchFile as NeK,unwatchFile as QgA,watch as keK}from"fs";import{open as EeK,stat as dgA,lstat as LeK,realpath as Ws1}from"fs/promises";import*as VO from"path";import{type as yeK}from"os";function UgA(A,q,K,Y,z){let w=(_,$)=>{if(K(A),z(_,$,{watchedPath:A}),$&&A!==$)fq1(VO.resolve(A,$),vq6,VO.join(A,$))};try{return keK(A,{persistent:q.persistent},w)}catch(_){Y(_);return}}class vs1{constructor(A){this.fsw=A,this._boundHandleError=(q)=>A._handleError(q)}_watchWithNodeFs(A,q){let K=this.fsw.options,Y=VO.dirname(A),z=VO.basename(A);this.fsw._getWatchedDir(Y).add(z);let _=VO.resolve(A),$={persistent:K.persistent};if(!q)q=Tq1;let O;if(K.usePolling){let H=K.interval!==K.binaryInterval;$.interval=H&&meK(z)?K.binaryInterval:K.interval,O=peK(A,_,$,{listener:q,rawEmitter:this.fsw._emitRaw})}else O=geK(A,_,$,{listener:q,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return O}_handleFile(A,q,K){if(this.fsw.closed)return;let Y=VO.dirname(A),z=VO.basename(A),w=this.fsw._getWatchedDir(Y),_=q;if(w.has(z))return;let $=async(H,j)=>{if(!this.fsw._throttle(IeK,A,5))return;if(!j||j.mtimeMs===0)try{let J=await dgA(A);if(this.fsw.closed)return;let{atimeMs:M,mtimeMs:D}=J;if(!M||M<=D||D!==_.mtimeMs)this.fsw._emit(mC.CHANGE,A,J);if((SeK||heK||CeK)&&_.ino!==J.ino){this.fsw._closeFile(H),_=J;let X=this._watchWithNodeFs(A,$);if(X)this.fsw._addPathCloser(H,X)}else _=J}catch(J){this.fsw._remove(Y,z)}else if(w.has(z)){let{atimeMs:J,mtimeMs:M}=j;if(!J||J<=M||M!==_.mtimeMs)this.fsw._emit(mC.CHANGE,A,j);_=j}},O=this._watchWithNodeFs(A,$);if(!(K&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(A)){if(!this.fsw._throttle(mC.ADD,A,0))return;this.fsw._emit(mC.ADD,A,q)}return O}async _handleSymlink(A,q,K,Y){if(this.fsw.closed)return;let z=A.fullPath,w=this.fsw._getWatchedDir(q);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let _;try{_=await Ws1(K)}catch($){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if(w.has(Y)){if(this.fsw._symlinkPaths.get(z)!==_)this.fsw._symlinkPaths.set(z,_),this.fsw._emit(mC.CHANGE,K,A.stats)}else w.add(Y),this.fsw._symlinkPaths.set(z,_),this.fsw._emit(mC.ADD,K,A.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(z))return!0;this.fsw._symlinkPaths.set(z,!0)}_handleRead(A,q,K,Y,z,w,_){if(A=VO.join(A,""),_=this.fsw._throttle("readdir",A,1000),!_)return;let $=this.fsw._getWatchedDir(K.path),O=new Set,H=this.fsw._readdirp(A,{fileFilter:(j)=>K.filterPath(j),directoryFilter:(j)=>K.filterDir(j)});if(!H)return;return H.on(ReK,async(j)=>{if(this.fsw.closed){H=void 0;return}let J=j.path,M=VO.join(A,J);if(O.add(J),j.stats.isSymbolicLink()&&await this._handleSymlink(j,A,M,J))return;if(this.fsw.closed){H=void 0;return}if(J===Y||!Y&&!$.has(J))this.fsw._incrReadyCount(),M=VO.join(z,VO.relative(z,M)),this._addToNodeFs(M,q,K,w+1)}).on(mC.ERROR,this._boundHandleError),new Promise((j,J)=>{if(!H)return J();H.once(fs1,()=>{if(this.fsw.closed){H=void 0;return}let M=_?_.clear():!1;if(j(void 0),$.getChildren().filter((D)=>{return D!==A&&!O.has(D)}).forEach((D)=>{this.fsw._remove(A,D)}),H=void 0,M)this._handleRead(A,!1,K,Y,z,w,_)})})}async _handleDir(A,q,K,Y,z,w,_){let $=this.fsw._getWatchedDir(VO.dirname(A)),O=$.has(VO.basename(A));if(!(K&&this.fsw.options.ignoreInitial)&&!z&&!O)this.fsw._emit(mC.ADD_DIR,A,q);$.add(VO.basename(A)),this.fsw._getWatchedDir(A);let H,j,J=this.fsw.options.depth;if((J==null||Y<=J)&&!this.fsw._symlinkPaths.has(_)){if(!z){if(await this._handleRead(A,K,w,z,A,Y,H),this.fsw.closed)return}j=this._watchWithNodeFs(A,(M,D)=>{if(D&&D.mtimeMs===0)return;this._handleRead(M,!1,w,z,A,Y,H)})}return j}async _addToNodeFs(A,q,K,Y,z){let w=this.fsw._emitReady;if(this.fsw._isIgnored(A)||this.fsw.closed)return w(),!1;let _=this.fsw._getWatchHelpers(A);if(K)_.filterPath=($)=>K.filterPath($),_.filterDir=($)=>K.filterDir($);try{let $=await xeK[_.statMethod](_.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(_.watchPath,$))return w(),!1;let O=this.fsw.options.followSymlinks,H;if($.isDirectory()){let j=VO.resolve(A),J=O?await Ws1(A):A;if(this.fsw.closed)return;if(H=await this._handleDir(_.watchPath,$,q,Y,z,_,J),this.fsw.closed)return;if(j!==J&&J!==void 0)this.fsw._symlinkPaths.set(j,J)}else if($.isSymbolicLink()){let j=O?await Ws1(A):A;if(this.fsw.closed)return;let J=VO.dirname(_.watchPath);if(this.fsw._getWatchedDir(J).add(_.watchPath),this.fsw._emit(mC.ADD,_.watchPath,$),H=await this._handleDir(J,$,q,Y,A,_,j),this.fsw.closed)return;if(j!==void 0)this.fsw._symlinkPaths.set(VO.resolve(A),j)}else H=this._handleFile(_.watchPath,$,q);if(w(),H)this.fsw._addPathCloser(A,H);return!1}catch($){if(this.fsw._handleError($))return w(),A}}}var ReK="data",fs1="end",cgA="close",Tq1=()=>{},vq1,Ts1,SeK,heK,CeK,lgA,g$,mC,IeK="watch",xeK,vq6="listeners",Gq1="errHandlers",EJ6="rawEmitters",beK,ueK,meK=(A)=>ueK.has(VO.extname(A).slice(1).toLowerCase()),Zs1=(A,q)=>{if(A instanceof Set)A.forEach(q);else q(A)},xh6=(A,q,K)=>{let Y=A[q];if(!(Y instanceof Set))A[q]=Y=new Set([Y]);Y.add(K)},BeK=(A)=>(q)=>{let K=A[q];if(K instanceof Set)K.clear();else delete A[q]},bh6=(A,q,K)=>{let Y=A[q];if(Y instanceof Set)Y.delete(K);else if(Y===K)delete A[q]},igA=(A)=>A instanceof Set?A.size===0:!A,Zq1,fq1=(A,q,K,Y,z)=>{let w=Zq1.get(A);if(!w)return;Zs1(w[q],(_)=>{_(K,Y,z)})},geK=(A,q,K,Y)=>{let{listener:z,errHandler:w,rawEmitter:_}=Y,$=Zq1.get(q),O;if(!K.persistent){if(O=UgA(A,K,z,w,_),!O)return;return O.close.bind(O)}if($)xh6($,vq6,z),xh6($,Gq1,w),xh6($,EJ6,_);else{if(O=UgA(A,K,fq1.bind(null,q,vq6),w,fq1.bind(null,q,EJ6)),!O)return;O.on(mC.ERROR,async(H)=>{let j=fq1.bind(null,q,Gq1);if($)$.watcherUnusable=!0;if(Ts1&&H.code==="EPERM")try{await(await EeK(A,"r")).close(),j(H)}catch(J){}else j(H)}),$={listeners:z,errHandlers:w,rawEmitters:_,watcher:O},Zq1.set(q,$)}return()=>{if(bh6($,vq6,z),bh6($,Gq1,w),bh6($,EJ6,_),igA($.listeners))$.watcher.close(),Zq1.delete(q),beK.forEach(BeK($)),$.watcher=void 0,Object.freeze($)}},Gs1,peK=(A,q,K,Y)=>{let{listener:z,rawEmitter:w}=Y,_=Gs1.get(q),$=_&&_.options;if($&&($.persistent<K.persistent||$.interval>K.interval))QgA(q),_=void 0;if(_)xh6(_,vq6,z),xh6(_,EJ6,w);else _={listeners:z,rawEmitters:w,options:K,watcher:NeK(q,K,(O,H)=>{Zs1(_.rawEmitters,(J)=>{J(mC.CHANGE,q,{curr:O,prev:H})});let j=O.mtimeMs;if(O.size!==H.size||j>H.mtimeMs||j===0)Zs1(_.listeners,(J)=>J(A,O))})},Gs1.set(q,_);return()=>{if(bh6(_,vq6,z),bh6(_,EJ6,w),igA(_.listeners))Gs1.delete(q),QgA(q),_.options=_.watcher=void 0,Object.freeze(_)}};var ngA=E(()=>{vq1=process.platform,Ts1=vq1==="win32",SeK=vq1==="darwin",heK=vq1==="linux",CeK=vq1==="freebsd",lgA=yeK()==="OS400",g$={ALL:"all",READY:"ready",ADD:"add",CHANGE:"change",ADD_DIR:"addDir",UNLINK:"unlink",UNLINK_DIR:"unlinkDir",RAW:"raw",ERROR:"error"},mC=g$,xeK={lstat:LeK,stat:dgA},beK=[vq6,Gq1,EJ6],ueK=new Set(["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),Zq1=new Map;Gs1=new Map});import{stat as FeK}from"fs";import{stat as QeK,readdir as UeK}from"fs/promises";import{EventEmitter as deK}from"events";import*as U9 from"path";function Vq1(A){return Array.isArray(A)?A:[A]}function aeK(A){if(typeof A==="function")return A;if(typeof A==="string")return(q)=>A===q;if(A instanceof RegExp)return(q)=>A.test(q);if(typeof A==="object"&&A!==null)return(q)=>{if(A.path===q)return!0;if(A.recursive){let K=U9.relative(A.path,q);if(!K)return!1;return!K.startsWith("..")&&!U9.isAbsolute(K)}return!1};return()=>!1}function seK(A){if(typeof A!=="string")throw Error("string expected");A=U9.normalize(A),A=A.replace(/\\/g,"/");let q=!1;if(A.startsWith("//"))q=!0;let K=/\/\//;while(A.match(K))A=A.replace(K,"/");if(q)A="/"+A;return A}function ogA(A,q,K){let Y=seK(q);for(let z=0;z<A.length;z++){let w=A[z];if(w(Y,K))return!0}return!1}function teK(A,q){if(A==null)throw TypeError("anymatch: specify first argument");let Y=Vq1(A).map((z)=>aeK(z));if(q==null)return(z,w)=>{return ogA(Y,z,w)};return ogA(Y,q)}class qpA{constructor(A,q){this.path=A,this._removeWatcher=q,this.items=new Set}add(A){let{items:q}=this;if(!q)return;if(A!==egA&&A!==leK)q.add(A)}async remove(A){let{items:q}=this;if(!q)return;if(q.delete(A),q.size>0)return;let K=this.path;try{await UeK(K)}catch(Y){if(this._removeWatcher)this._removeWatcher(U9.dirname(K),U9.basename(K))}}has(A){let{items:q}=this;if(!q)return;return q.has(A)}getChildren(){let{items:A}=this;if(!A)return[];return[...A.values()]}dispose(){this.items.clear(),this.path="",this._removeWatcher=Tq1,this.items=A63,Object.freeze(this)}}class KpA{constructor(A,q,K){this.fsw=K;let Y=A;this.path=A=A.replace(oeK,""),this.watchPath=Y,this.fullWatchPath=U9.resolve(Y),this.dirParts=[],this.dirParts.forEach((z)=>{if(z.length>1)z.pop()}),this.followSymlinks=q,this.statMethod=q?q63:K63}entryPath(A){return U9.join(this.watchPath,U9.relative(this.watchPath,A.fullPath))}filterPath(A){let{stats:q}=A;if(q&&q.isSymbolicLink())return this.filterDir(A);let K=this.entryPath(A);return this.fsw._isntIgnored(K,q)&&this.fsw._hasReadPermissions(q)}filterDir(A){return this.fsw._isntIgnored(this.entryPath(A),A.stats)}}function Y63(A,q={}){let K=new ks1(q);return K.add(A),K}var Vs1="/",ceK="//",egA=".",leK="..",ieK="string",neK,rgA,reK,oeK,Ns1=(A)=>typeof A==="object"&&A!==null&&!(A instanceof RegExp),agA=(A)=>{let q=Vq1(A).flat();if(!q.every((K)=>typeof K===ieK))throw TypeError(`Non-string provided as watch path: ${q}`);return q.map(ApA)},sgA=(A)=>{let q=A.replace(neK,Vs1),K=!1;if(q.startsWith(ceK))K=!0;while(q.match(rgA))q=q.replace(rgA,Vs1);if(K)q=Vs1+q;return q},ApA=(A)=>sgA(U9.normalize(sgA(A))),tgA=(A="")=>(q)=>{if(typeof q==="string")return ApA(U9.isAbsolute(q)?q:U9.join(A,q));else return q},eeK=(A,q)=>{if(U9.isAbsolute(A))return A;return U9.join(q,A)},A63,q63="stat",K63="lstat",ks1,LJ6;var Nq1=E(()=>{FgA();ngA();/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */neK=/\\/g,rgA=/\/\//,reK=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,oeK=/^\.[/\\]/;A63=Object.freeze(new Set);ks1=class ks1 extends deK{constructor(A={}){super();this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let q=A.awaitWriteFinish,K={stabilityThreshold:2000,pollInterval:100},Y={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...A,ignored:A.ignored?Vq1(A.ignored):Vq1([]),awaitWriteFinish:q===!0?K:typeof q==="object"?{...K,...q}:!1};if(lgA)Y.usePolling=!0;if(Y.atomic===void 0)Y.atomic=!Y.usePolling;let z=process.env.CHOKIDAR_USEPOLLING;if(z!==void 0){let $=z.toLowerCase();if($==="false"||$==="0")Y.usePolling=!1;else if($==="true"||$==="1")Y.usePolling=!0;else Y.usePolling=!!$}let w=process.env.CHOKIDAR_INTERVAL;if(w)Y.interval=Number.parseInt(w,10);let _=0;this._emitReady=()=>{if(_++,_>=this._readyCount)this._emitReady=Tq1,this._readyEmitted=!0,process.nextTick(()=>this.emit(g$.READY))},this._emitRaw=(...$)=>this.emit(g$.RAW,...$),this._boundRemove=this._remove.bind(this),this.options=Y,this._nodeFsHandler=new vs1(this),Object.freeze(Y)}_addIgnoredPath(A){if(Ns1(A)){for(let q of this._ignoredPaths)if(Ns1(q)&&q.path===A.path&&q.recursive===A.recursive)return}this._ignoredPaths.add(A)}_removeIgnoredPath(A){if(this._ignoredPaths.delete(A),typeof A==="string"){for(let q of this._ignoredPaths)if(Ns1(q)&&q.path===A)this._ignoredPaths.delete(q)}}add(A,q,K){let{cwd:Y}=this.options;this.closed=!1,this._closePromise=void 0;let z=agA(A);if(Y)z=z.map((w)=>{return eeK(w,Y)});if(z.forEach((w)=>{this._removeIgnoredPath(w)}),this._userIgnored=void 0,!this._readyCount)this._readyCount=0;return this._readyCount+=z.length,Promise.all(z.map(async(w)=>{let _=await this._nodeFsHandler._addToNodeFs(w,!K,void 0,0,q);if(_)this._emitReady();return _})).then((w)=>{if(this.closed)return;w.forEach((_)=>{if(_)this.add(U9.dirname(_),U9.basename(q||_))})}),this}unwatch(A){if(this.closed)return this;let q=agA(A),{cwd:K}=this.options;return q.forEach((Y)=>{if(!U9.isAbsolute(Y)&&!this._closers.has(Y)){if(K)Y=U9.join(K,Y);Y=U9.resolve(Y)}if(this._closePath(Y),this._addIgnoredPath(Y),this._watched.has(Y))this._addIgnoredPath({path:Y,recursive:!0});this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let A=[];return this._closers.forEach((q)=>q.forEach((K)=>{let Y=K();if(Y instanceof Promise)A.push(Y)})),this._streams.forEach((q)=>q.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((q)=>q.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=A.length?Promise.all(A).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let A={};return this._watched.forEach((q,K)=>{let z=(this.options.cwd?U9.relative(this.options.cwd,K):K)||egA;A[z]=q.getChildren().sort()}),A}emitWithAll(A,q){if(this.emit(A,...q),A!==g$.ERROR)this.emit(g$.ALL,A,...q)}async _emit(A,q,K){if(this.closed)return;let Y=this.options;if(Ts1)q=U9.normalize(q);if(Y.cwd)q=U9.relative(Y.cwd,q);let z=[q];if(K!=null)z.push(K);let w=Y.awaitWriteFinish,_;if(w&&(_=this._pendingWrites.get(q)))return _.lastChange=new Date,this;if(Y.atomic){if(A===g$.UNLINK)return this._pendingUnlinks.set(q,[A,...z]),setTimeout(()=>{this._pendingUnlinks.forEach(($,O)=>{this.emit(...$),this.emit(g$.ALL,...$),this._pendingUnlinks.delete(O)})},typeof Y.atomic==="number"?Y.atomic:100),this;if(A===g$.ADD&&this._pendingUnlinks.has(q))A=g$.CHANGE,this._pendingUnlinks.delete(q)}if(w&&(A===g$.ADD||A===g$.CHANGE)&&this._readyEmitted){let $=(O,H)=>{if(O)A=g$.ERROR,z[0]=O,this.emitWithAll(A,z);else if(H){if(z.length>1)z[1]=H;else z.push(H);this.emitWithAll(A,z)}};return this._awaitWriteFinish(q,w.stabilityThreshold,A,$),this}if(A===g$.CHANGE){if(!this._throttle(g$.CHANGE,q,50))return this}if(Y.alwaysStat&&K===void 0&&(A===g$.ADD||A===g$.ADD_DIR||A===g$.CHANGE)){let $=Y.cwd?U9.join(Y.cwd,q):q,O;try{O=await QeK($)}catch(H){}if(!O||this.closed)return;z.push(O)}return this.emitWithAll(A,z),this}_handleError(A){let q=A&&A.code;if(A&&q!=="ENOENT"&&q!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||q!=="EPERM"&&q!=="EACCES"))this.emit(g$.ERROR,A);return A||this.closed}_throttle(A,q,K){if(!this._throttled.has(A))this._throttled.set(A,new Map);let Y=this._throttled.get(A);if(!Y)throw Error("invalid throttle");let z=Y.get(q);if(z)return z.count++,!1;let w,_=()=>{let O=Y.get(q),H=O?O.count:0;if(Y.delete(q),clearTimeout(w),O)clearTimeout(O.timeoutObject);return H};w=setTimeout(_,K);let $={timeoutObject:w,clear:_,count:0};return Y.set(q,$),$}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(A,q,K,Y){let z=this.options.awaitWriteFinish;if(typeof z!=="object")return;let w=z.pollInterval,_,$=A;if(this.options.cwd&&!U9.isAbsolute(A))$=U9.join(this.options.cwd,A);let O=new Date,H=this._pendingWrites;function j(J){FeK($,(M,D)=>{if(M||!H.has(A)){if(M&&M.code!=="ENOENT")Y(M);return}let X=Number(new Date);if(J&&D.size!==J.size)H.get(A).lastChange=X;let P=H.get(A);if(X-P.lastChange>=q)H.delete(A),Y(void 0,D);else _=setTimeout(j,w,D)})}if(!H.has(A))H.set(A,{lastChange:O,cancelWait:()=>{return H.delete(A),clearTimeout(_),K}}),_=setTimeout(j,w)}_isIgnored(A,q){if(this.options.atomic&&reK.test(A))return!0;if(!this._userIgnored){let{cwd:K}=this.options,z=(this.options.ignored||[]).map(tgA(K)),_=[...[...this._ignoredPaths].map(tgA(K)),...z];this._userIgnored=teK(_,void 0)}return this._userIgnored(A,q)}_isntIgnored(A,q){return!this._isIgnored(A,q)}_getWatchHelpers(A){return new KpA(A,this.options.followSymlinks,this)}_getWatchedDir(A){let q=U9.resolve(A);if(!this._watched.has(q))this._watched.set(q,new qpA(q,this._boundRemove));return this._watched.get(q)}_hasReadPermissions(A){if(this.options.ignorePermissionErrors)return!0;return Boolean(Number(A.mode)&256)}_remove(A,q,K){let Y=U9.join(A,q),z=U9.resolve(Y);if(K=K!=null?K:this._watched.has(Y)||this._watched.has(z),!this._throttle("remove",Y,100))return;if(!K&&this._watched.size===1)this.add(A,q,!0);this._getWatchedDir(Y).getChildren().forEach((J)=>this._remove(Y,J));let $=this._getWatchedDir(A),O=$.has(q);if($.remove(q),this._symlinkPaths.has(z))this._symlinkPaths.delete(z);let H=Y;if(this.options.cwd)H=U9.relative(this.options.cwd,Y);if(this.options.awaitWriteFinish&&this._pendingWrites.has(H)){if(this._pendingWrites.get(H).cancelWait()===g$.ADD)return}this._watched.delete(Y),this._watched.delete(z);let j=K?g$.UNLINK_DIR:g$.UNLINK;if(O&&!this._isIgnored(Y))this._emit(j,Y);this._closePath(Y)}_closePath(A){this._closeFile(A);let q=U9.dirname(A);this._getWatchedDir(q).remove(U9.basename(A))}_closeFile(A){let q=this._closers.get(A);if(!q)return;q.forEach((K)=>K()),this._closers.delete(A)}_addPathCloser(A,q){if(!q)return;let K=this._closers.get(A);if(!K)K=[],this._closers.set(A,K);K.push(q)}_readdirp(A,q){if(this.closed)return;let K={type:g$.ALL,alwaysStat:!0,lstat:!0,...q,depth:0},Y=pgA(A,K);return this._streams.add(Y),Y.once(cgA,()=>{Y=void 0}),Y.once(fs1,()=>{if(Y)this._streams.delete(Y),Y=void 0}),Y}};LJ6={watch:Y63,FSWatcher:ks1}});function Es1({onlyFirst:A=!1}={}){let K=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(K,A?void 0:"g")}function Pz(A){if(typeof A!=="string")throw TypeError(`Expected a \`string\`, got \`${typeof A}\``);return A.replace(z63,"")}var z63;var _f=E(()=>{z63=Es1()});function YpA(A){return A===161||A===164||A===167||A===168||A===170||A===173||A===174||A>=176&&A<=180||A>=182&&A<=186||A>=188&&A<=191||A===198||A===208||A===215||A===216||A>=222&&A<=225||A===230||A>=232&&A<=234||A===236||A===237||A===240||A===242||A===243||A>=247&&A<=250||A===252||A===254||A===257||A===273||A===275||A===283||A===294||A===295||A===299||A>=305&&A<=307||A===312||A>=319&&A<=322||A===324||A>=328&&A<=331||A===333||A===338||A===339||A===358||A===359||A===363||A===462||A===464||A===466||A===468||A===470||A===472||A===474||A===476||A===593||A===609||A===708||A===711||A>=713&&A<=715||A===717||A===720||A>=728&&A<=731||A===733||A===735||A>=768&&A<=879||A>=913&&A<=929||A>=931&&A<=937||A>=945&&A<=961||A>=963&&A<=969||A===1025||A>=1040&&A<=1103||A===1105||A===8208||A>=8211&&A<=8214||A===8216||A===8217||A===8220||A===8221||A>=8224&&A<=8226||A>=8228&&A<=8231||A===8240||A===8242||A===8243||A===8245||A===8251||A===8254||A===8308||A===8319||A>=8321&&A<=8324||A===8364||A===8451||A===8453||A===8457||A===8467||A===8470||A===8481||A===8482||A===8486||A===8491||A===8531||A===8532||A>=8539&&A<=8542||A>=8544&&A<=8555||A>=8560&&A<=8569||A===8585||A>=8592&&A<=8601||A===8632||A===8633||A===8658||A===8660||A===8679||A===8704||A===8706||A===8707||A===8711||A===8712||A===8715||A===8719||A===8721||A===8725||A===8730||A>=8733&&A<=8736||A===8739||A===8741||A>=8743&&A<=8748||A===8750||A>=8756&&A<=8759||A===8764||A===8765||A===8776||A===8780||A===8786||A===8800||A===8801||A>=8804&&A<=8807||A===8810||A===8811||A===8814||A===8815||A===8834||A===8835||A===8838||A===8839||A===8853||A===8857||A===8869||A===8895||A===8978||A>=9312&&A<=9449||A>=9451&&A<=9547||A>=9552&&A<=9587||A>=9600&&A<=9615||A>=9618&&A<=9621||A===9632||A===9633||A>=9635&&A<=9641||A===9650||A===9651||A===9654||A===9655||A===9660||A===9661||A===9664||A===9665||A>=9670&&A<=9672||A===9675||A>=9678&&A<=9681||A>=9698&&A<=9701||A===9711||A===9733||A===9734||A===9737||A===9742||A===9743||A===9756||A===9758||A===9792||A===9794||A===9824||A===9825||A>=9827&&A<=9829||A>=9831&&A<=9834||A===9836||A===9837||A===9839||A===9886||A===9887||A===9919||A>=9926&&A<=9933||A>=9935&&A<=9939||A>=9941&&A<=9953||A===9955||A===9960||A===9961||A>=9963&&A<=9969||A===9972||A>=9974&&A<=9977||A===9979||A===9980||A===9982||A===9983||A===10045||A>=10102&&A<=10111||A>=11094&&A<=11097||A>=12872&&A<=12879||A>=57344&&A<=63743||A>=65024&&A<=65039||A===65533||A>=127232&&A<=127242||A>=127248&&A<=127277||A>=127280&&A<=127337||A>=127344&&A<=127373||A===127375||A===127376||A>=127387&&A<=127404||A>=917760&&A<=917999||A>=983040&&A<=1048573||A>=1048576&&A<=1114109}function uh6(A){return A===12288||A>=65281&&A<=65376||A>=65504&&A<=65510}function mh6(A){return A>=4352&&A<=4447||A===8986||A===8987||A===9001||A===9002||A>=9193&&A<=9196||A===9200||A===9203||A===9725||A===9726||A===9748||A===9749||A>=9776&&A<=9783||A>=9800&&A<=9811||A===9855||A>=9866&&A<=9871||A===9875||A===9889||A===9898||A===9899||A===9917||A===9918||A===9924||A===9925||A===9934||A===9940||A===9962||A===9970||A===9971||A===9973||A===9978||A===9981||A===9989||A===9994||A===9995||A===10024||A===10060||A===10062||A>=10067&&A<=10069||A===10071||A>=10133&&A<=10135||A===10160||A===10175||A===11035||A===11036||A===11088||A===11093||A>=11904&&A<=11929||A>=11931&&A<=12019||A>=12032&&A<=12245||A>=12272&&A<=12287||A>=12289&&A<=12350||A>=12353&&A<=12438||A>=12441&&A<=12543||A>=12549&&A<=12591||A>=12593&&A<=12686||A>=12688&&A<=12773||A>=12783&&A<=12830||A>=12832&&A<=12871||A>=12880&&A<=42124||A>=42128&&A<=42182||A>=43360&&A<=43388||A>=44032&&A<=55203||A>=63744&&A<=64255||A>=65040&&A<=65049||A>=65072&&A<=65106||A>=65108&&A<=65126||A>=65128&&A<=65131||A>=94176&&A<=94180||A>=94192&&A<=94198||A>=94208&&A<=101589||A>=101631&&A<=101662||A>=101760&&A<=101874||A>=110576&&A<=110579||A>=110581&&A<=110587||A===110589||A===110590||A>=110592&&A<=110882||A===110898||A>=110928&&A<=110930||A===110933||A>=110948&&A<=110951||A>=110960&&A<=111355||A>=119552&&A<=119638||A>=119648&&A<=119670||A===126980||A===127183||A===127374||A>=127377&&A<=127386||A>=127488&&A<=127490||A>=127504&&A<=127547||A>=127552&&A<=127560||A===127568||A===127569||A>=127584&&A<=127589||A>=127744&&A<=127776||A>=127789&&A<=127797||A>=127799&&A<=127868||A>=127870&&A<=127891||A>=127904&&A<=127946||A>=127951&&A<=127955||A>=127968&&A<=127984||A===127988||A>=127992&&A<=128062||A===128064||A>=128066&&A<=128252||A>=128255&&A<=128317||A>=128331&&A<=128334||A>=128336&&A<=128359||A===128378||A===128405||A===128406||A===128420||A>=128507&&A<=128591||A>=128640&&A<=128709||A===128716||A>=128720&&A<=128722||A>=128725&&A<=128728||A>=128732&&A<=128735||A===128747||A===128748||A>=128756&&A<=128764||A>=128992&&A<=129003||A===129008||A>=129292&&A<=129338||A>=129340&&A<=129349||A>=129351&&A<=129535||A>=129648&&A<=129660||A>=129664&&A<=129674||A>=129678&&A<=129734||A===129736||A>=129741&&A<=129756||A>=129759&&A<=129770||A>=129775&&A<=129784||A>=131072&&A<=196605||A>=196608&&A<=262141}var Ls1=()=>{};function w63(A){if(!Number.isSafeInteger(A))throw TypeError(`Expected a code point, got \`${typeof A}\`.`)}function Vq6(A,{ambiguousAsWide:q=!1}={}){if(w63(A),uh6(A)||mh6(A)||q&&YpA(A))return 2;return 1}var Bh6=E(()=>{Ls1();Ls1()});var ys1=h((tIw,zpA)=>{zpA.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});function Jj(){if(!Rs1)Rs1=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Rs1}function gh6(A){if(!A)return"";return Jj().segment(A)[Symbol.iterator]().next().value?.segment??""}function xU(A){if(!A)return"";let q="";for(let{segment:K}of Jj().segment(A))q=K;return q}function _pA(){if(!Ss1)Ss1=new Intl.Segmenter(void 0,{granularity:"word"});return Ss1}function Cs1(A,q){let K=`${A}:${q}`,Y=wpA.get(K);if(!Y)Y=new Intl.RelativeTimeFormat("en",{style:A,numeric:q}),wpA.set(K,Y);return Y}function Is1(){if(!hs1)hs1=Intl.DateTimeFormat().resolvedOptions().timeZone;return hs1}var Rs1=null,Ss1=null,wpA,hs1=null;var Wy=E(()=>{wpA=new Map});function _63(A){if(typeof A!=="string"||A.length===0)return 0;let q=!0;for(let Y=0;Y<A.length;Y++){let z=A.charCodeAt(Y);if(z>=127||z===27){q=!1;break}}if(q){let Y=0;for(let z=0;z<A.length;z++)if(A.charCodeAt(z)>31)Y++;return Y}if(A.includes("\x1B")){if(A=Pz(A),A.length===0)return 0}if(!$63(A)){let Y=0;for(let z of A){let w=z.codePointAt(0);if(!OpA(w))Y+=Vq6(w,{ambiguousAsWide:!1})}return Y}let K=0;for(let{segment:Y}of Jj().segment(A)){if($pA.lastIndex=0,$pA.test(Y)){K+=O63(Y);continue}for(let z of Y){let w=z.codePointAt(0);if(!OpA(w)){K+=Vq6(w,{ambiguousAsWide:!1});break}}}return K}function $63(A){for(let q of A){let K=q.codePointAt(0);if(K>=127744&&K<=129791)return!0;if(K>=9728&&K<=10175)return!0;if(K>=127462&&K<=127487)return!0;if(K>=65024&&K<=65039)return!0;if(K===8205)return!0}return!1}function O63(A){let q=A.codePointAt(0);if(q>=127462&&q<=127487){let K=0;for(let Y of A)K++;return K===1?1:2}if(A.length===2){if(A.codePointAt(1)===65039&&(q>=48&&q<=57||q===35||q===42))return 1}return 2}function OpA(A){if(A>=32&&A<127)return!1;if(A>=160&&A<768)return A===173;if(A<=31||A>=127&&A<=159)return!0;if(A>=8203&&A<=8205||A===65279||A>=8288&&A<=8292)return!0;if(A>=65024&&A<=65039||A>=917760&&A<=917999)return!0;if(A>=768&&A<=879||A>=6832&&A<=6911||A>=7616&&A<=7679||A>=8400&&A<=8447||A>=65056&&A<=65071)return!0;if(A>=2304&&A<=3407){let q=A&127;if(q<=3)return!0;if(q>=58&&q<=79)return!0;if(q>=81&&q<=87)return!0;if(q>=98&&q<=99)return!0}if(A===3633||A>=3636&&A<=3642||A>=3655&&A<=3662||A===3761||A>=3764&&A<=3772||A>=3784&&A<=3789)return!0;if(A>=1536&&A<=1541||A===1757||A===1807||A===2274)return!0;if(A>=55296&&A<=57343)return!0;if(A>=917504&&A<=917631)return!0;return!1}var jpA,$pA,HpA,H63,u8;var _5=E(()=>{_f();Bh6();Wy();jpA=q6(ys1(),1),$pA=jpA.default();HpA=typeof Bun<"u"&&typeof Bun.stringWidth==="function"?Bun.stringWidth:null,H63={ambiguousIsNarrow:!0},u8=HpA?(A)=>HpA(A,H63):_63});function JpA(A,q){if(u8(A)<=q)return A;if(q<=0)return"…";if(q<5)return PK(A,q);let K=A.lastIndexOf("/"),Y=K>=0?A.slice(K):A,z=K>=0?A.slice(0,K):"",w=u8(Y);if(w>=q-1)return yJ6(A,q);let _=q-1-w;if(_<=0)return yJ6(Y,q);return RJ6(z,_)+"…"+Y}function PK(A,q){if(u8(A)<=q)return A;if(q<=1)return"…";let K=0,Y="";for(let{segment:z}of Jj().segment(A)){let w=u8(z);if(K+w>q-1)break;Y+=z,K+=w}return Y+"…"}function yJ6(A,q){if(u8(A)<=q)return A;if(q<=1)return"…";let K=[...Jj().segment(A)],Y=0,z=K.length;for(let w=K.length-1;w>=0;w--){let _=u8(K[w].segment);if(Y+_>q-1)break;Y+=_,z=w}return"…"+K.slice(z).map((w)=>w.segment).join("")}function RJ6(A,q){if(u8(A)<=q)return A;if(q<=0)return"";let K=0,Y="";for(let{segment:z}of Jj().segment(A)){let w=u8(z);if(K+w>q)break;Y+=z,K+=w}return Y}function NY(A,q,K=!1){let Y=A;if(K){let z=A.indexOf(`
`);if(z!==-1){if(Y=A.substring(0,z),u8(Y)+1>q)return PK(Y,q);return`${Y}…`}}if(u8(Y)<=q)return Y;return PK(Y,q)}function Y3(A,q){if(A<60000){if(A===0)return"0s";if(A<1)return`${(A/1000).toFixed(1)}s`;return`${Math.round(A/1000).toString()}s`}let K=Math.floor(A/86400000),Y=Math.floor(A%86400000/3600000),z=Math.floor(A%3600000/60000),w=Math.round(A%60000/1000);if(w===60)w=0,z++;if(z===60)z=0,Y++;if(Y===24)Y=0,K++;let _=q?.hideTrailingZeros;if(q?.mostSignificantOnly){if(K>0)return`${K}d`;if(Y>0)return`${Y}h`;if(z>0)return`${z}m`;return`${w}s`}if(K>0){if(_&&Y===0&&z===0)return`${K}d`;if(_&&z===0)return`${K}d ${Y}h`;return`${K}d ${Y}h ${z}m`}if(Y>0){if(_&&z===0&&w===0)return`${Y}h`;if(_&&w===0)return`${Y}h ${z}m`;return`${Y}h ${z}m ${w}s`}if(z>0){if(_&&w===0)return`${z}m`;return`${z}m ${w}s`}return`${w}s`}function z3(A){let q=A>=1000;return j63(q).format(A).toLowerCase()}function kq1(A,q={}){let{style:K="narrow",numeric:Y="always",now:z=new Date}=q,w=A.getTime()-z.getTime(),_=Math.trunc(w/1000),$=[{unit:"year",seconds:31536000,shortUnit:"y"},{unit:"month",seconds:2592000,shortUnit:"mo"},{unit:"week",seconds:604800,shortUnit:"w"},{unit:"day",seconds:86400,shortUnit:"d"},{unit:"hour",seconds:3600,shortUnit:"h"},{unit:"minute",seconds:60,shortUnit:"m"},{unit:"second",seconds:1,shortUnit:"s"}];for(let{unit:O,seconds:H,shortUnit:j}of $)if(Math.abs(_)>=H){let J=Math.trunc(_/H);if(K==="narrow")return _<0?`${Math.abs(J)}${j} ago`:`in ${J}${j}`;return Cs1("long",Y).format(J,O)}if(K==="narrow")return _<=0?"0s ago":"in 0s";return Cs1(K,Y).format(0,"second")}function Nq6(A,q={}){let{now:K=new Date,...Y}=q;if(A>K)return kq1(A,{...Y,now:K});return kq1(A,{...Y,numeric:"always",now:K})}function ph6(A){let q=A.fileSize!==void 0?SK(A.fileSize):`${A.messageCount} messages`,K=[Nq6(A.modified,{style:"short"}),...A.gitBranch?[A.gitBranch]:[],q];if(A.tag)K.push(`#${A.tag}`);if(A.agentSetting)K.push(`agent:${A.agentSetting}`);if(A.prNumber){let Y=A.prRepository?`${A.prRepository.split("/")[1]}#${A.prNumber}`:`PR #${A.prNumber}`;K.push(Y)}return K.join(" · ")}function SJ6(A,q=!1,K=!0){if(!A)return;let Y=new Date(A*1000),z=new Date,w=Y.getMinutes();if((Y.getTime()-z.getTime())/3600000>24){let O={month:"short",day:"numeric",hour:K?"numeric":void 0,minute:!K||w===0?void 0:"2-digit",hour12:K?!0:void 0};if(Y.getFullYear()!==z.getFullYear())O.year="numeric";return Y.toLocaleString("en-US",O).replace(/ ([AP]M)/i,(j,J)=>J.toLowerCase())+(q?` (${Is1()})`:"")}return Y.toLocaleTimeString("en-US",{hour:"numeric",minute:w===0?void 0:"2-digit",hour12:!0}).replace(/ ([AP]M)/i,(O,H)=>H.toLowerCase())+(q?` (${Is1()})`:"")}function LX(A){if(A<1000)return String(A);let K=(A/1000).toFixed(1);if(K.endsWith(".0"))return`${K.slice(0,-2)}k`;return`${K}k`}function MpA(A,q=!1,K=!0){let Y=new Date(A);return`${SJ6(Math.floor(Y.getTime()/1000),q,K)}`}var xs1=null,bs1=null,j63=(A)=>{if(A){if(!xs1)xs1=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:1});return xs1}else{if(!bs1)bs1=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:0});return bs1}};var Hq=E(()=>{_5();c7();Wy()});var ZpA=h((Oxw,GpA)=>{var WpA=u6("child_process"),DpA=WpA.spawn,J63=WpA.exec;GpA.exports=function(A,q,K){if(typeof q==="function"&&K===void 0)K=q,q=void 0;if(A=parseInt(A),Number.isNaN(A))if(K)return K(Error("pid must be a number"));else throw Error("pid must be a number");var Y={},z={};switch(Y[A]=[],z[A]=1,process.platform){case"win32":J63("taskkill /pid "+A+" /T /F",K);break;case"darwin":us1(A,Y,z,function(w){return DpA("pgrep",["-P",w])},function(){XpA(Y,q,K)});break;default:us1(A,Y,z,function(w){return DpA("ps",["-o","pid","--no-headers","--ppid",w])},function(){XpA(Y,q,K)});break}};function XpA(A,q,K){var Y={};try{Object.keys(A).forEach(function(z){if(A[z].forEach(function(w){if(!Y[w])PpA(w,q),Y[w]=1}),!Y[z])PpA(z,q),Y[z]=1})}catch(z){if(K)return K(z);else throw z}if(K)return K()}function PpA(A,q){try{process.kill(parseInt(A,10),q)}catch(K){if(K.code!=="ESRCH")throw K}}function us1(A,q,K,Y,z){var w=Y(A),_="";w.stdout.on("data",function(H){var H=H.toString("ascii");_+=H});var $=function(O){if(delete K[A],O!=0){if(Object.keys(K).length==0)z();return}_.match(/\d+/g).forEach(function(H){H=parseInt(H,10),q[A].push(H),q[H]=[],K[H]=1,us1(H,q,K,Y,z)})};w.on("close",$)}});import{constants as kq6}from"fs";import{mkdir as M63,open as TpA,readdir as D63,stat as Jxw,symlink as fpA,unlink as vpA}from"fs/promises";import{join as ms1}from"path";function Eq6(){return ms1(yq1(),"tasks")}async function Bs1(){await M63(Eq6(),{recursive:!0})}function w_(A){return ms1(Eq6(),`${A}.output`)}class Lq1{#A;#q=null;#K=[];#z=null;#Y=null;constructor(A){this.#A=w_(A)}append(A){if(this.#K.push(A),!this.#z)this.#z=new Promise((q)=>{this.#Y=q}),this.#H()}flush(){return this.#z??Promise.resolve()}cancel(){this.#K.length=0}async#_(){while(!0){try{if(!this.#q)await Bs1(),this.#q=await TpA(this.#A,process.platform==="win32"?"a":kq6.O_WRONLY|kq6.O_APPEND|kq6.O_CREAT|VpA);while(!0)if(await this.#w(),this.#K.length===0)break}finally{if(this.#q){let A=this.#q;this.#q=null,await A.close()}}if(this.#K.length)continue;break}}#w(){return this.#q.appendFile(this.#O())}#O(){let A=this.#K.splice(0,this.#K.length),q=0;for(let z of A)q+=Buffer.byteLength(z,"utf8");let K=Buffer.allocUnsafe(q),Y=0;for(let z of A)Y+=K.write(z,Y,"utf8");return K}async#H(){try{await this.#_()}finally{let A=this.#Y;this.#z=null,this.#Y=null,A()}}}function X63(A){let q=Eq1.get(A);if(!q)q=new Lq1(A),Eq1.set(A,q);return q}function kpA(A,q){X63(A).append(q)}async function GH(A){let q=Eq1.get(A);if(q)await q.flush(),Eq1.delete(A)}async function EpA(A,q,K=NpA){try{let Y=await A61(w_(A),q,K);if(!Y)return{content:"",newOffset:q};return{content:Y.content,newOffset:q+Y.bytesRead}}catch(Y){if(Y.code==="ENOENT")return{content:"",newOffset:q};return $6(Y),{content:"",newOffset:q}}}async function gs1(A,q=NpA){try{let{content:K,bytesTotal:Y,bytesRead:z}=await TO6(w_(A),q);if(Y>z)return`[${Math.round((Y-z)/1024)}KB of earlier output omitted]
${K}`;return K}catch(K){if(K.code==="ENOENT")return"";return $6(K),""}}async function ps1(A){await Bs1();let q=w_(A);return await(await TpA(q,process.platform==="win32"?"wx":kq6.O_WRONLY|kq6.O_CREAT|kq6.O_EXCL|VpA)).close(),q}async function hJ6(A,q){try{await Bs1();let K=w_(A);try{await fpA(q,K)}catch{await vpA(K),await fpA(q,K)}return K}catch(K){return $6(K),ps1(A)}}async function LpA(){try{let A=Eq6(),q=await D63(A);await Promise.all(q.map((K)=>vpA(ms1(A,K)).catch(()=>{})))}catch{}}var VpA,NpA=8388608,Eq1;var TD=E(()=>{D7();u1();uz();VpA=kq6.O_NOFOLLOW??0;Eq1=new Map});import{randomBytes as P63}from"crypto";function G63(A){return W63[A]??"x"}function jk(A){let q=G63(A),K=P63(8),Y=q;for(let z=0;z<8;z++)Y+=ypA[K[z]%ypA.length];return Y}function $f(A,q,K,Y){return{id:A,type:q,status:"pending",description:K,toolUseId:Y,startTime:Date.now(),outputFile:w_(A),outputOffset:0,notified:!1}}var W63,ypA="0123456789abcdefghijklmnopqrstuvwxyz";var bU=E(()=>{TD();W63={local_bash:"b",local_agent:"a",remote_agent:"r",in_process_teammate:"t"}});class Fh6{capacity;buffer;head=0;size=0;constructor(A){this.capacity=A;this.buffer=Array(A)}add(A){if(this.buffer[this.head]=A,this.head=(this.head+1)%this.capacity,this.size<this.capacity)this.size++}addAll(A){for(let q of A)this.add(q)}getRecent(A){let q=[],K=this.size<this.capacity?0:this.head,Y=Math.min(A,this.size);for(let z=0;z<Y;z++){let w=(K+this.size-Y+z)%this.capacity;q.push(this.buffer[w])}return q}toArray(){if(this.size===0)return[];let A=[],q=this.size<this.capacity?0:this.head;for(let K=0;K<this.size;K++){let Y=(q+K)%this.capacity;A.push(this.buffer[Y])}return A}clear(){this.buffer.length=0,this.head=0,this.size=0}length(){return this.size}}function CJ6(A){return A.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function BC(A){return A.replace(/[０-９]/g,(q)=>String.fromCharCode(q.charCodeAt(0)-65248))}function Rq1(A){return A.replace(/\u3000/g," ")}function Sq1(A,q=",",K=RpA){let z="";for(let w of A){let _=z?q:"",$=_+w;if(z.length+$.length<=K)z+=$;else{let O=K-z.length-_.length-14;if(O>0)z+=_+w.slice(0,O)+"...[truncated]";else z+="...[truncated]";return z}}return z}class Fs1{maxSize;content="";isTruncated=!1;totalBytesReceived=0;constructor(A=RpA){this.maxSize=A}append(A){let q=typeof A==="string"?A:A.toString();if(this.totalBytesReceived+=q.length,this.isTruncated&&this.content.length>=this.maxSize)return;if(this.content.length+q.length>this.maxSize){let K=this.maxSize-this.content.length;if(K>0)this.content+=q.slice(0,K);this.isTruncated=!0}else this.content+=q}toString(){if(!this.isTruncated)return this.content;let A=this.totalBytesReceived-this.maxSize,q=Math.round(A/1024);return this.content+`
... [output truncated - ${q}KB removed]`}clear(){this.content="",this.isTruncated=!1,this.totalBytesReceived=0}get length(){return this.content.length}get truncated(){return this.isTruncated}get totalBytes(){return this.totalBytesReceived}}function SpA(A,q){let K=A.split(`
`);if(K.length<=q)return A;return K.slice(0,q).join(`
`)+"…"}var RpA=33554432;function xa(A,q,K,Y){if(!q)return{effective:K,status:"valid"};let z=parseInt(q,10);if(isNaN(z)||z<=0){let w={effective:K,status:"invalid",message:`Invalid value "${q}" (using default: ${K})`};return y(`${A} ${w.message}`),w}if(z>Y){let w={effective:Y,status:"capped",message:`Capped from ${z} to ${Y}`};return y(`${A} ${w.message}`),w}return{effective:z,status:"valid"}}var Qh6=E(()=>{Z1()});function hq1(){return xa("BASH_MAX_OUTPUT_LENGTH",process.env.BASH_MAX_OUTPUT_LENGTH,Us1,Qs1).effective}var Qs1=150000,Us1=30000;var Cq1=E(()=>{Qh6()});import{unlink as Z63}from"fs/promises";var f63=8388608,T63=1000,v63=4096,i_;var Uh6=E(()=>{TD();D7();Cq1();i_=class i_{taskId;path;stdoutToFile;#A="";#q="";#K=null;#z=new Fh6(1000);#Y=0;#_=0;#w;#O;#H=!1;#j=0;static#$=new Map;static#J=new Map;static#M=null;constructor(A,q,K=!1,Y=f63){if(this.taskId=A,this.path=w_(A),this.stdoutToFile=K,this.#w=Y,this.#O=q,K&&q)i_.#$.set(A,this)}static startPolling(A){let q=i_.#$.get(A);if(!q||!q.#O)return;if(i_.#J.set(A,q),!i_.#M)i_.#M=setInterval(i_.#W,T63),i_.#M.unref()}static stopPolling(A){if(i_.#J.delete(A),i_.#J.size===0&&i_.#M)clearInterval(i_.#M),i_.#M=null}static#W(){for(let[,A]of i_.#J){if(!A.#O)continue;TO6(A.path,v63).then(({content:q,bytesRead:K,bytesTotal:Y})=>{if(!A.#O)return;if(!q){A.#O("","",0,Y,!1);return}let z=q.length,w=0,_=0;for(let O=0;O<100&&z>0;O++)if(z=q.lastIndexOf(`
`,z-1),_++,O===4)w=z<=0?0:z+1;let $=z<=0?0:z+1;A.#_=Y,A.#O(q.slice(w),q.slice($),_,Y,K<Y)},()=>{})}}writeStdout(A){this.#X(A,!1)}writeStderr(A){this.#X(A,!0)}#X(A,q){if(this.#_+=A.length,this.#Z(A),this.#K){this.#K.append(q?`[stderr] ${A}`:A);return}if(this.#A.length+this.#q.length+A.length>this.#w){this.#P(q?A:null,q?null:A);return}if(q)this.#q+=A;else this.#A+=A}#Z(A){let Y=0,z=[],w=0,_=A.length;while(_>0){let $=A.lastIndexOf(`
`,_-1);if($===-1)break;if(Y++,z.length<100&&w<4096){let O=_-$-1;if(O>0&&O<=4096-w){let H=A.slice($+1,_);if(H.trim())z.push(Buffer.from(H).toString()),w+=O}}_=$}this.#Y+=Y;for(let $=z.length-1;$>=0;$--)this.#z.add(z[$]);if(this.#O&&z.length>0){let $=this.#z.getRecent(5);this.#O(Sq1($,`
`),Sq1(this.#z.getRecent(100),`
`),this.#Y,this.#_,this.#K!==null)}}#P(A,q){if(this.#K=new Lq1(this.taskId),this.#A)this.#K.append(this.#A),this.#A="";if(this.#q)this.#K.append(`[stderr] ${this.#q}`),this.#q="";if(q)this.#K.append(q);if(A)this.#K.append(`[stderr] ${A}`)}async getStdout(){if(this.stdoutToFile)return this.#G();if(this.#K){let A=this.#z.getRecent(5),q=Sq1(A,`
`),Y=`
Output truncated (${Math.round(this.#_/1024)}KB total). Full output saved to: ${this.path}`;return q?q+Y:Y.trimStart()}return this.#A}async#G(){let A=hq1();try{let q=await A61(this.path,0,A);if(!q)return this.#H=!0,"";let{content:K,bytesRead:Y,bytesTotal:z}=q;return this.#j=z,this.#H=z<=Y,K}catch{return""}}getStderr(){if(this.#K)return"";return this.#q}get isOverflowed(){return this.#K!==null}get totalLines(){return this.#Y}get totalBytes(){return this.#_}get outputFileRedundant(){return this.#H}get outputFileSize(){return this.#j}spillToDisk(){if(!this.#K)this.#P(null,null)}async flush(){await this.#K?.flush()}async deleteOutputFile(){try{await Z63(this.path)}catch{}}clear(){this.#A="",this.#q="",this.#z.clear(),this.#O=null,this.#K?.cancel(),i_.stopPolling(this.taskId),i_.#$.delete(this.taskId)}}});class ds1{#A;#q=!1;#K;#z;#Y=this.#_.bind(this);constructor(A,q,K){this.#A=A,this.#K=q,this.#z=K,A.setEncoding("utf-8"),A.on("data",this.#Y)}#_(A){let q=typeof A==="string"?A:A.toString();if(this.#z)this.#K.writeStderr(q);else this.#K.writeStdout(q)}cleanup(){if(this.#q)return;this.#q=!0,this.#A.removeListener("data",this.#Y),this.#A=null,this.#K=null,this.#Y=()=>{}}}class cs1{#A="running";#q;#K;#z;#Y;#_=null;#w;#O;#H;#j;#$=null;#J=null;#M=null;taskOutput;static#W(A){if(A.#j&&A.#O)A.#O(A.background.bind(A));else A.#k(CpA)}result;onTimeout;constructor(A,q,K,Y,z=!1){if(this.#Y=A,this.#w=q,this.#H=K,this.#j=z,this.taskOutput=Y,this.#z=A.stderr?new ds1(A.stderr,Y,!0):null,this.#K=A.stdout?new ds1(A.stdout,Y,!1):null,z)this.onTimeout=(w)=>{this.#O=w};this.result=this.#T()}get status(){return this.#A}#X(){if(this.#w.reason==="interrupt")return;this.kill()}#Z(A,q){let K=A!==null&&A!==void 0?A:q==="SIGTERM"?144:1;this.#G(K)}#P(){this.#G(1)}#G(A){if(this.#J)this.#J(A),this.#J=null}#f(){let A=this.#_;if(A)clearTimeout(A),this.#_=null;let q=this.#M;if(q)this.#w.removeEventListener("abort",q),this.#M=null}#T(){this.#M=this.#X.bind(this),this.#w.addEventListener("abort",this.#M,{once:!0}),this.#Y.once("exit",this.#Z.bind(this)),this.#Y.once("error",this.#P.bind(this)),this.#_=setTimeout(cs1.#W,this.#H,this);let A=new Promise((q)=>{this.#J=q});return new Promise((q)=>{this.#$=q,A.then(this.#V.bind(this))})}async#V(A){if(this.#f(),this.#A==="running"||this.#A==="backgrounded")this.#A="completed";let q=await this.taskOutput.getStdout(),K={code:A,stdout:q,stderr:this.taskOutput.getStderr(),interrupted:A===hpA,backgroundTaskId:this.#q};if(this.taskOutput.stdoutToFile&&!this.#q)if(this.taskOutput.outputFileRedundant)this.taskOutput.deleteOutputFile();else K.outputFilePath=this.taskOutput.path,K.outputFileSize=this.taskOutput.outputFileSize,K.outputTaskId=this.taskOutput.taskId;if(A===CpA)K.stderr=[`Command timed out after ${Y3(this.#H)}`,K.stderr].filter(Boolean).join(" ");let Y=this.#$;if(Y)this.#$=null,Y(K)}#k(A){if(this.#A="killed",this.#Y.pid)IpA.default(this.#Y.pid,"SIGKILL");this.#G(A??hpA)}kill(){this.#k()}background(A){if(this.#A==="running"){if(this.#q=A,this.#A="backgrounded",this.#f(),!this.taskOutput.stdoutToFile)this.taskOutput.spillToDisk();return!0}return!1}cleanup(){this.#K?.cleanup(),this.#z?.cleanup(),this.taskOutput.clear(),this.#f(),this.#Y=null,this.#w=null,this.#O=void 0}}function Iq1(A,q,K,Y,z=!1){return new cs1(A,q,K,Y,z)}class xpA{status="killed";result;taskOutput;constructor(A){this.taskOutput=new i_(jk("local_bash"),null),this.result=Promise.resolve({code:A?.code??145,stdout:"",stderr:A?.stderr??"Command aborted before execution",interrupted:!0,backgroundTaskId:A?.backgroundTaskId})}background(){return!1}kill(){}cleanup(){}}function ls1(A,q){return new xpA({backgroundTaskId:A,...q})}function bpA(A){let q=new i_(jk("local_bash"),null);return{status:"completed",result:Promise.resolve({code:1,stdout:"",stderr:A,interrupted:!1,preSpawnError:A}),taskOutput:q,background(){return!1},kill(){},cleanup(){}}}var IpA,hpA=137,CpA=143;var is1=E(()=>{Hq();bU();Uh6();IpA=q6(ZpA(),1)});var mpA=h((Bxw,upA)=>{upA.exports=function(q){return q.map(function(K){if(K==="")return"''";if(K&&typeof K==="object")return K.op.replace(/(.)/g,"\\$1");if(/["\s\\]/.test(K)&&!/'/.test(K))return"'"+K.replace(/(['])/g,"\\$1")+"'";if(/["'\s]/.test(K))return'"'+K.replace(/(["\\$`!])/g,"\\$1")+'"';return String(K).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g,"$1\\$2")}).join(" ")}});var dpA=h((gxw,UpA)=>{var QpA="(?:"+["\\|\\|","\\&\\&",";;","\\|\\&","\\<\\(","\\<\\<\\<",">>",">\\&","<\\&","[&;()|<>]"].join("|")+")",BpA=new RegExp("^"+QpA+"$"),gpA="|&;()<> \\t",V63='"((\\\\"|[^"])*?)"',N63="'((\\\\'|[^'])*?)'",k63=/^#$/,ppA="'",FpA='"',ns1="$",Lq6="",E63=4294967296;for(xq1=0;xq1<4;xq1++)Lq6+=(E63*Math.random()).toString(16);var xq1,L63=new RegExp("^"+Lq6);function y63(A,q){var K=q.lastIndex,Y=[],z;while(z=q.exec(A))if(Y.push(z),q.lastIndex===z.index)q.lastIndex+=1;return q.lastIndex=K,Y}function R63(A,q,K){var Y=typeof A==="function"?A(K):A[K];if(typeof Y>"u"&&K!="")Y="";else if(typeof Y>"u")Y="$";if(typeof Y==="object")return q+Lq6+JSON.stringify(Y)+Lq6;return q+Y}function S63(A,q,K){if(!K)K={};var Y=K.escape||"\\",z="(\\"+Y+`['"`+gpA+`]|[^\\s'"`+gpA+"])+",w=new RegExp(["("+QpA+")","("+z+"|"+V63+"|"+N63+")+"].join("|"),"g"),_=y63(A,w);if(_.length===0)return[];if(!q)q={};var $=!1;return _.map(function(O){var H=O[0];if(!H||$)return;if(BpA.test(H))return{op:H};var j=!1,J=!1,M="",D=!1,X;function P(){X+=1;var Z,f,v=H.charAt(X);if(v==="{"){if(X+=1,H.charAt(X)==="}")throw Error("Bad substitution: "+H.slice(X-2,X+1));if(Z=H.indexOf("}",X),Z<0)throw Error("Bad substitution: "+H.slice(X));f=H.slice(X,Z),X=Z}else if(/[*@#?$!_-]/.test(v))f=v,X+=1;else{var V=H.slice(X);if(Z=V.match(/[^\w\d_]/),!Z)f=V,X=H.length;else f=V.slice(0,Z.index),X+=Z.index-1}return R63(q,"",f)}for(X=0;X<H.length;X++){var W=H.charAt(X);if(D=D||!j&&(W==="*"||W==="?"),J)M+=W,J=!1;else if(j)if(W===j)j=!1;else if(j==ppA)M+=W;else if(W===Y)if(X+=1,W=H.charAt(X),W===FpA||W===Y||W===ns1)M+=W;else M+=Y+W;else if(W===ns1)M+=P();else M+=W;else if(W===FpA||W===ppA)j=W;else if(BpA.test(W))return{op:H};else if(k63.test(W)){$=!0;var G={comment:A.slice(O.index+X+1)};if(M.length)return[M,G];return[G]}else if(W===Y)J=!0;else if(W===ns1)M+=P();else M+=W}if(D)return{op:"glob",pattern:M};return M}).reduce(function(O,H){return typeof H>"u"?O:O.concat(H)},[])}UpA.exports=function(q,K,Y){var z=S63(q,K,Y);if(typeof K!=="function")return z;return z.reduce(function(w,_){if(typeof _==="object")return w.concat(_);var $=_.split(RegExp("("+Lq6+".*?"+Lq6+")","g"));if($.length===1)return w.concat($[0]);return w.concat($.filter(Boolean).map(function(O){if(L63.test(O))return JSON.parse(O.split(Lq6)[1]);return O}))},[])}});var bq1=h((h63)=>{h63.quote=mpA();h63.parse=dpA()});function qw(A,q){try{return{success:!0,tokens:typeof q==="function"?IJ6.parse(A,q):IJ6.parse(A,q)}}catch(K){if(K instanceof Error)$6(K);return{success:!1,error:K instanceof Error?K.message:"Unknown parse error"}}}function x63(A){try{let q=A.map((Y,z)=>{if(Y===null||Y===void 0)return String(Y);let w=typeof Y;if(w==="string")return Y;if(w==="number"||w==="boolean")return String(Y);if(w==="object")throw Error(`Cannot quote argument at index ${z}: object values are not supported`);if(w==="symbol")throw Error(`Cannot quote argument at index ${z}: symbol values are not supported`);if(w==="function")throw Error(`Cannot quote argument at index ${z}: function values are not supported`);throw Error(`Cannot quote argument at index ${z}: unsupported type ${w}`)});return{success:!0,quoted:IJ6.quote(q)}}catch(q){if(q instanceof Error)$6(q);return{success:!1,error:q instanceof Error?q.message:"Unknown quote error"}}}function cpA(A){let q=!1,K=!1;for(let Y=0;Y<A.length;Y++){let z=A[Y];if(z==="\\"&&!q){Y++;continue}if(z==='"'&&!q){K=!K;continue}if(z==="'"&&!K){if(q=!q,!q){let w=0,_=Y-1;while(_>=0&&A[_]==="\\")w++,_--;if(w>0&&w%2===1)return!0;if(w>0&&w%2===0&&A.indexOf("'",Y+1)!==-1)return!0}continue}}return!1}function T4(A){let q=x63([...A]);if(q.success)return q.quoted;try{let K=A.map((Y)=>{if(Y===null||Y===void 0)return String(Y);let z=typeof Y;if(z==="string"||z==="number"||z==="boolean")return String(Y);return p6(Y)});return IJ6.quote(K)}catch(K){if(K instanceof Error)$6(K);throw Error("Failed to quote shell arguments safely")}}var IJ6;var _M=E(()=>{u1();a1();IJ6=q6(bq1(),1)});function uq1(A,q){let K=A.lastIndexOf(" -");if(K>0){let Y=A.substring(0,K),z=A.substring(K+1);return`${T4([Y])} ${z} ${T4([q])}`}else return`${T4([A])} ${T4([q])}`}var rs1=E(()=>{_M()});import{readFile as lpA,mkdir as b63,readdir as u63}from"fs/promises";import{join as os1}from"node:path";async function ipA(){let A=os1(zA(),"session-env",i1());return await b63(A,{recursive:!0}),A}async function npA(A,q){let K=A.toLowerCase();return os1(await ipA(),`${K}-hook-${q}.sh`)}function rpA(){y("Invalidating session environment cache"),ba=void 0}async function opA(){if(o8()==="windows")return y("Session environment not yet supported on Windows"),null;if(ba!==void 0)return ba;let A=[],q=process.env.CLAUDE_ENV_FILE;if(q)try{let Y=(await lpA(q,"utf8")).trim();if(Y)A.push(Y),y(`Session environment loaded from CLAUDE_ENV_FILE: ${q} (${Y.length} chars)`)}catch(Y){if(Y.code!=="ENOENT")y(`Failed to read CLAUDE_ENV_FILE: ${D1(Y)}`)}let K=await ipA();try{let z=(await u63(K)).filter((w)=>w.match(/^(setup|sessionstart)-hook-\d+\.sh$/)).sort((w,_)=>{let $=w.match(/^(setup|sessionstart)-hook-(\d+)\.sh$/),O=_.match(/^(setup|sessionstart)-hook-(\d+)\.sh$/),H=$?.[1]||"",j=O?.[1]||"";if(H!==j)return H==="setup"?-1:1;let J=parseInt($?.[2]||"0",10),M=parseInt(O?.[2]||"0",10);return J-M});for(let w of z){let _=os1(K,w);try{let $=(await lpA(_,"utf8")).trim();if($)A.push($)}catch($){if($.code!=="ENOENT")y(`Failed to read hook file ${_}: ${D1($)}`)}}if(z.length>0)y(`Session environment loaded from ${z.length} hook file(s)`)}catch(Y){if(Y.code!=="ENOENT")y(`Failed to load session environment from hooks: ${D1(Y)}`)}if(A.length===0)return y("No session environment scripts found"),ba=null,ba;return ba=A.join(`
`),y(`Session environment script ready (${ba.length} chars total)`),ba}var ba=void 0;var mq1=E(()=>{Z1();iK();Z8();U1();DA()});function Bq1(A,q,K,Y,z,w,_){spA(A,q,K,Y,z,w,_)}function gq1(A,q,K,Y,z,w,_){let $=_?.id||`function-hook-${Date.now()}-${Math.random()}`,O={type:"function",id:$,timeout:_?.timeout||5000,callback:z,errorMessage:w};return spA(A,q,K,Y,O),$}function spA(A,q,K,Y,z,w,_){A(($)=>{let O=$.sessionHooks[q]||{hooks:{}},H=O.hooks[K]||[],j=H.findIndex((D)=>D.matcher===Y&&D.skillRoot===_),J;if(j>=0){J=[...H];let D=J[j];J[j]={matcher:D.matcher,skillRoot:D.skillRoot,hooks:[...D.hooks,{hook:z,onHookSuccess:w}]}}else J=[...H,{matcher:Y,skillRoot:_,hooks:[{hook:z,onHookSuccess:w}]}];let M={...O.hooks,[K]:J};return{...$,sessionHooks:{...$.sessionHooks,[q]:{hooks:M}}}}),y(`Added session hook for event ${K} in session ${q}`)}function tpA(A,q,K,Y){A((z)=>{let w=z.sessionHooks[q];if(!w)return z;let $=(w.hooks[K]||[]).map((H)=>{let j=H.hooks.filter((J)=>!bJ6(J.hook,Y));return j.length>0?{...H,hooks:j}:null}).filter((H)=>H!==null),O=$.length>0?{...w.hooks,[K]:$}:{...w.hooks};if($.length===0)delete O[K];return{...z,sessionHooks:{...z.sessionHooks,[q]:{...w,hooks:O}}}}),y(`Removed session hook for event ${K} in session ${q}`)}function apA(A){return A.map((q)=>({matcher:q.matcher,skillRoot:q.skillRoot,hooks:q.hooks.map((K)=>K.hook).filter((K)=>K.type!=="function")}))}function pq1(A,q,K){let Y=A.sessionHooks[q];if(!Y)return new Map;let z=new Map;if(K){let w=Y.hooks[K];if(w)z.set(K,apA(w));return z}for(let w of vm){let _=Y.hooks[w];if(_)z.set(w,apA(_))}return z}function epA(A,q,K){let Y=A.sessionHooks[q];if(!Y)return new Map;let z=new Map,w=(_)=>{return _.map(($)=>({matcher:$.matcher,hooks:$.hooks.map((O)=>O.hook).filter((O)=>O.type==="function")})).filter(($)=>$.hooks.length>0)};if(K){let _=Y.hooks[K];if(_){let $=w(_);if($.length>0)z.set(K,$)}return z}for(let _ of vm){let $=Y.hooks[_];if($){let O=w($);if(O.length>0)z.set(_,O)}}return z}function AFA(A,q,K,Y,z){let w=A.sessionHooks[q];if(!w)return;let _=w.hooks[K];if(!_)return;for(let $ of _)if($.matcher===Y||Y===""){let O=$.hooks.find((H)=>bJ6(H.hook,z));if(O)return O}return}function xJ6(A,q){A((K)=>{let Y={...K.sessionHooks};return delete Y[q],{...K,sessionHooks:Y}}),y(`Cleared all session hooks for session ${q}`)}var uU=E(()=>{MJ6();Z1();Nm()});import{resolve as m63}from"path";function bJ6(A,q){if(A.type!==q.type)return!1;switch(A.type){case"command":return q.type==="command"&&A.command===q.command;case"prompt":return q.type==="prompt"&&A.prompt===q.prompt;case"agent":return q.type==="agent"&&A.prompt===q.prompt;case"http":return q.type==="http"&&A.url===q.url;case"function":return!1}}function Mj(A){if("statusMessage"in A&&A.statusMessage)return A.statusMessage;switch(A.type){case"command":return A.command;case"prompt":return A.prompt;case"agent":return A.prompt([]);case"http":return A.url;case"callback":return"callback";case"function":return"function"}}function qFA(A){let q=[];if(LA("policySettings")?.allowManagedHooksOnly!==!0){let _=["userSettings","projectSettings","localSettings"],$=new Set;for(let O of _){let H=L2(O);if(H){let J=m63(H);if($.has(J))continue;$.add(J)}let j=LA(O);if(!j?.hooks)continue;for(let[J,M]of Object.entries(j.hooks))for(let D of M)for(let X of D.hooks)q.push({event:J,config:X,matcher:D.matcher,source:O})}}let z=i1(),w=pq1(A,z);for(let[_,$]of w.entries())for(let O of $)for(let H of O.hooks)q.push({event:_,config:H,matcher:O.matcher,source:"sessionHook"});return q}async function KFA(A,q,K="",Y="userSettings"){let w=(LA(Y)??{}).hooks??{},_=w[A]??[],$=_.findIndex((J)=>J.matcher===K),O;if($>=0){O=[..._];let J=O[$];O[$]={matcher:J.matcher,hooks:[...J.hooks,q]}}else O=[..._,{matcher:K,hooks:[q]}];let H={...w,[A]:O},{error:j}=gA(Y,{hooks:H});if(j)throw Error(j.message);yq6()}async function YFA(A){if(A.source==="pluginHook")throw Error("Plugin hooks cannot be removed through settings. Disable the plugin instead.");if(A.source==="sessionHook")throw Error("Session hooks cannot be removed through settings. They are temporary and will be cleared when the session ends.");let q=LA(A.source)??{},K=q.hooks??{},z=(K[A.event]??[]).map(($)=>{if($.matcher===A.matcher){let O=$.hooks.filter((H)=>!bJ6(H,A.config));return O.length>0?{...$,hooks:O}:null}return $}).filter(($)=>$!==null),w={...K,[A.event]:z.length>0?z:void 0},_=Object.values(w).some(($)=>$!==void 0);gA(A.source,{...q,hooks:_?w:void 0}),yq6()}function zFA(A){switch(A){case"userSettings":return"User settings (~/.claude/settings.json)";case"projectSettings":return"Project settings (.claude/settings.json)";case"localSettings":return"Local settings (.claude/settings.local.json)";case"pluginHook":return"Plugin hooks (~/.claude/plugins/*/hooks/hooks.json)";case"sessionHook":return"Session hooks (in-memory, temporary)";default:return A}}function as1(A){switch(A){case"userSettings":return"User Settings";case"projectSettings":return"Project Settings";case"localSettings":return"Local Settings";case"pluginHook":return"Plugin Hooks";case"sessionHook":return"Session Hooks";default:return A}}function wFA(A){switch(A){case"userSettings":return"User";case"projectSettings":return"Project";case"localSettings":return"Local";case"pluginHook":return"Plugin";case"sessionHook":return"Session";default:return A}}function _FA(A,q,K){let Y=Wq6.reduce((z,w,_)=>{return z[w]=_,z},{});return[...A].sort((z,w)=>{let _=q[K]?.[z]||[],$=q[K]?.[w]||[],O=Array.from(new Set(_.map((D)=>D.source))),H=Array.from(new Set($.map((D)=>D.source))),j=(D)=>D==="pluginHook"?999:Y[D],J=Math.min(...O.map(j)),M=Math.min(...H.map(j));if(J!==M)return J-M;return z.localeCompare(w)})}var Nm=E(()=>{EA();E2();Rq6();uU();U1()});function ss1(){let A=LA("policySettings");if(A?.disableAllHooks===!0)return{};if(A?.allowManagedHooksOnly===!0)return A.hooks??{};let q=bA();if(q.disableAllHooks===!0)return A?.hooks??{};return q.hooks??{}}function Gy(){let A=LA("policySettings");if(A?.allowManagedHooksOnly===!0)return!0;if(bA().disableAllHooks===!0&&A?.disableAllHooks!==!0)return!0;return!1}function dh6(){return LA("policySettings")?.disableAllHooks===!0}function ts1(A){if(!A)return null;let q={},K=Object.keys(A).sort();for(let Y of K){let z=A[Y];if(!z)continue;let w=[...z].sort((_,$)=>{let O=_.matcher||"",H=$.matcher||"";return O.localeCompare(H)});q[Y]=w.map((_)=>({matcher:_.matcher,hooks:[..._.hooks].sort(($,O)=>Mj($).localeCompare(Mj(O)))}))}return q}function es1(){let A=ss1();ua=ts1(A)}function yq6(){tJ();let A=ss1();ua=ts1(A)}function $FA(){if(ua===null)return null;let A=ts1(ss1()),q=p6(ua),K=p6(A);if(q===K)return null;let Y=[],z=new Set(Object.keys(ua||{})),w=new Set(Object.keys(A||{}));for(let _ of w)if(!z.has(_))Y.push(`Added hooks for event: ${_}`);for(let _ of z)if(!w.has(_))Y.push(`Removed all hooks for event: ${_}`);for(let _ of z)if(w.has(_)){let $=ua?.[_]||[],O=A?.[_]||[];if(p6($)!==p6(O)){let H=[],j=new Map($.map((M)=>[M.matcher||"",M])),J=new Map(O.map((M)=>[M.matcher||"",M]));for(let[M]of J)if(!j.has(M))H.push(`  - Added matcher: ${M||"(no matcher)"}`);for(let[M]of j)if(!J.has(M))H.push(`  - Removed matcher: ${M||"(no matcher)"}`);for(let[M,D]of J)if(j.has(M)){let X=j.get(M);if(p6(X.hooks)!==p6(D.hooks))H.push(`  - Modified hooks for matcher: ${M||"(no matcher)"}`)}if(H.length>0)Y.push(`Modified hooks for event: ${_}`),Y.push(...H);else Y.push(`Modified hooks for event: ${_}`)}}return Y.length>0?Y.join(`
`):"Hooks configuration has been modified"}function ch6(){if(ua===null)es1();return ua}var ua=null;var Rq6=E(()=>{EA();Nm();U1();a1()});import{isAbsolute as B63,join as lh6,normalize as jFA,sep as JFA}from"path";function d9(){let A=process.env.CLAUDE_CODE_DISABLE_AUTO_MEMORY;if(w1(A))return!1;if(nw(A))return!0;if(w1(process.env.CLAUDE_CODE_REMOTE)&&!process.env.CLAUDE_CODE_REMOTE_MEMORY_DIR)return!1;let q=b7();if(q.autoMemoryEnabled!==void 0)return q.autoMemoryEnabled;return!0}function mU(){if(process.env.CLAUDE_CODE_REMOTE_MEMORY_DIR)return process.env.CLAUDE_CODE_REMOTE_MEMORY_DIR;return zA()}function At1(){let A=process.env.CLAUDE_COWORK_MEMORY_PATH_OVERRIDE;if(!A)return;let q=jFA(A).replace(/[/\\]+$/,"");if(!B63(q)||q.length<3||/^[A-Za-z]:$/.test(q)||q.startsWith("\\\\")||q.startsWith("//")||q.includes("\x00"))return;return(q+JFA).normalize("NFC")}function Fq1(){return At1()!==void 0}function DFA(){return J0(A_())??A_()}function Zy(){let A=At1();if(A)return A;let q=lh6(mU(),"projects");return(lh6(q,qf(DFA()),MFA)+JFA).normalize("NFC")}function Qq1(){let A=At1();if(A)return lh6(A,HFA);let q=lh6(mU(),"projects");return lh6(q,qf(DFA()),MFA,HFA)}function ih6(A){return jFA(A).startsWith(Zy())}var MFA="memory",HFA="MEMORY.md";var vD=E(()=>{U1();r3();Z8();EA();iY()});function g63(){return process.argv.includes("--agent-teams")}function W7(){if(!w1(process.env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS)&&!g63())return!1;if(!qA("tengu_amber_flint",!0))return!1;return!0}var kY=E(()=>{P7();Z8()});function p63(A){var q=A==null?0:A.length;return q?A[q-1]:void 0}var Tv;var uJ6=E(()=>{Tv=p63});import XFA from"node:process";function qt1(){let{env:A}=XFA,{TERM:q,TERM_PROGRAM:K}=A;if(XFA.platform!=="win32")return q!=="linux";return Boolean(A.WT_SESSION)||Boolean(A.TERMINUS_SUBLIME)||A.ConEmuTask==="{cmd::Cmder}"||K==="Terminus-Sublime"||K==="vscode"||q==="xterm-256color"||q==="alacritty"||q==="rxvt-unicode"||q==="rxvt-unicode-256color"||A.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var PFA=()=>{};var WFA,GFA,F63,Q63,U63,d63,c63,a6,Sbw;var i7=E(()=>{PFA();WFA={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},GFA={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},F63={tick:"√",info:"i",warning:"‼",cross:"×",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},Q63={...WFA,...GFA},U63={...WFA,...F63},d63=qt1(),c63=d63?Q63:U63,a6=c63,Sbw=Object.entries(GFA)});var nY=h((t63)=>{var Kt1=Symbol.for("yaml.alias"),ZFA=Symbol.for("yaml.document"),Uq1=Symbol.for("yaml.map"),fFA=Symbol.for("yaml.pair"),Yt1=Symbol.for("yaml.scalar"),dq1=Symbol.for("yaml.seq"),BU=Symbol.for("yaml.node.type"),l63=(A)=>!!A&&typeof A==="object"&&A[BU]===Kt1,i63=(A)=>!!A&&typeof A==="object"&&A[BU]===ZFA,n63=(A)=>!!A&&typeof A==="object"&&A[BU]===Uq1,r63=(A)=>!!A&&typeof A==="object"&&A[BU]===fFA,TFA=(A)=>!!A&&typeof A==="object"&&A[BU]===Yt1,o63=(A)=>!!A&&typeof A==="object"&&A[BU]===dq1;function vFA(A){if(A&&typeof A==="object")switch(A[BU]){case Uq1:case dq1:return!0}return!1}function a63(A){if(A&&typeof A==="object")switch(A[BU]){case Kt1:case Uq1:case Yt1:case dq1:return!0}return!1}var s63=(A)=>(TFA(A)||vFA(A))&&!!A.anchor;t63.ALIAS=Kt1;t63.DOC=ZFA;t63.MAP=Uq1;t63.NODE_TYPE=BU;t63.PAIR=fFA;t63.SCALAR=Yt1;t63.SEQ=dq1;t63.hasAnchor=s63;t63.isAlias=l63;t63.isCollection=vFA;t63.isDocument=i63;t63.isMap=n63;t63.isNode=a63;t63.isPair=r63;t63.isScalar=TFA;t63.isSeq=o63});var nh6=h((P13)=>{var VD=nY(),vv=Symbol("break visit"),VFA=Symbol("skip children"),km=Symbol("remove node");function cq1(A,q){let K=NFA(q);if(VD.isDocument(A)){if(mJ6(null,A.contents,K,Object.freeze([A]))===km)A.contents=null}else mJ6(null,A,K,Object.freeze([]))}cq1.BREAK=vv;cq1.SKIP=VFA;cq1.REMOVE=km;function mJ6(A,q,K,Y){let z=kFA(A,q,K,Y);if(VD.isNode(z)||VD.isPair(z))return EFA(A,Y,z),mJ6(A,z,K,Y);if(typeof z!=="symbol"){if(VD.isCollection(q)){Y=Object.freeze(Y.concat(q));for(let w=0;w<q.items.length;++w){let _=mJ6(w,q.items[w],K,Y);if(typeof _==="number")w=_-1;else if(_===vv)return vv;else if(_===km)q.items.splice(w,1),w-=1}}else if(VD.isPair(q)){Y=Object.freeze(Y.concat(q));let w=mJ6("key",q.key,K,Y);if(w===vv)return vv;else if(w===km)q.key=null;let _=mJ6("value",q.value,K,Y);if(_===vv)return vv;else if(_===km)q.value=null}}return z}async function lq1(A,q){let K=NFA(q);if(VD.isDocument(A)){if(await BJ6(null,A.contents,K,Object.freeze([A]))===km)A.contents=null}else await BJ6(null,A,K,Object.freeze([]))}lq1.BREAK=vv;lq1.SKIP=VFA;lq1.REMOVE=km;async function BJ6(A,q,K,Y){let z=await kFA(A,q,K,Y);if(VD.isNode(z)||VD.isPair(z))return EFA(A,Y,z),BJ6(A,z,K,Y);if(typeof z!=="symbol"){if(VD.isCollection(q)){Y=Object.freeze(Y.concat(q));for(let w=0;w<q.items.length;++w){let _=await BJ6(w,q.items[w],K,Y);if(typeof _==="number")w=_-1;else if(_===vv)return vv;else if(_===km)q.items.splice(w,1),w-=1}}else if(VD.isPair(q)){Y=Object.freeze(Y.concat(q));let w=await BJ6("key",q.key,K,Y);if(w===vv)return vv;else if(w===km)q.key=null;let _=await BJ6("value",q.value,K,Y);if(_===vv)return vv;else if(_===km)q.value=null}}return z}function NFA(A){if(typeof A==="object"&&(A.Collection||A.Node||A.Value))return Object.assign({Alias:A.Node,Map:A.Node,Scalar:A.Node,Seq:A.Node},A.Value&&{Map:A.Value,Scalar:A.Value,Seq:A.Value},A.Collection&&{Map:A.Collection,Seq:A.Collection},A);return A}function kFA(A,q,K,Y){if(typeof K==="function")return K(A,q,Y);if(VD.isMap(q))return K.Map?.(A,q,Y);if(VD.isSeq(q))return K.Seq?.(A,q,Y);if(VD.isPair(q))return K.Pair?.(A,q,Y);if(VD.isScalar(q))return K.Scalar?.(A,q,Y);if(VD.isAlias(q))return K.Alias?.(A,q,Y);return}function EFA(A,q,K){let Y=q[q.length-1];if(VD.isCollection(Y))Y.items[A]=K;else if(VD.isPair(Y))if(A==="key")Y.key=K;else Y.value=K;else if(VD.isDocument(Y))Y.contents=K;else{let z=VD.isAlias(Y)?"alias":"scalar";throw Error(`Cannot replace node with ${z} parent`)}}P13.visit=cq1;P13.visitAsync=lq1});var zt1=h((v13)=>{var LFA=nY(),Z13=nh6(),f13={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},T13=(A)=>A.replace(/[!,[\]{}]/g,(q)=>f13[q]);class fy{constructor(A,q){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},fy.defaultYaml,A),this.tags=Object.assign({},fy.defaultTags,q)}clone(){let A=new fy(this.yaml,this.tags);return A.docStart=this.docStart,A}atDocument(){let A=new fy(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:fy.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},fy.defaultTags);break}return A}add(A,q){if(this.atNextDocument)this.yaml={explicit:fy.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},fy.defaultTags),this.atNextDocument=!1;let K=A.trim().split(/[ \t]+/),Y=K.shift();switch(Y){case"%TAG":{if(K.length!==2){if(q(0,"%TAG directive should contain exactly two parts"),K.length<2)return!1}let[z,w]=K;return this.tags[z]=w,!0}case"%YAML":{if(this.yaml.explicit=!0,K.length!==1)return q(0,"%YAML directive should contain exactly one part"),!1;let[z]=K;if(z==="1.1"||z==="1.2")return this.yaml.version=z,!0;else{let w=/^\d+\.\d+$/.test(z);return q(6,`Unsupported YAML version ${z}`,w),!1}}default:return q(0,`Unknown directive ${Y}`,!0),!1}}tagName(A,q){if(A==="!")return"!";if(A[0]!=="!")return q(`Not a valid tag: ${A}`),null;if(A[1]==="<"){let w=A.slice(2,-1);if(w==="!"||w==="!!")return q(`Verbatim tags aren't resolved, so ${A} is invalid.`),null;if(A[A.length-1]!==">")q("Verbatim tags must end with a >");return w}let[,K,Y]=A.match(/^(.*!)([^!]*)$/s);if(!Y)q(`The ${A} tag has no suffix`);let z=this.tags[K];if(z)try{return z+decodeURIComponent(Y)}catch(w){return q(String(w)),null}if(K==="!")return A;return q(`Could not resolve tag: ${A}`),null}tagString(A){for(let[q,K]of Object.entries(this.tags))if(A.startsWith(K))return q+T13(A.substring(K.length));return A[0]==="!"?A:`!<${A}>`}toString(A){let q=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],K=Object.entries(this.tags),Y;if(A&&K.length>0&&LFA.isNode(A.contents)){let z={};Z13.visit(A.contents,(w,_)=>{if(LFA.isNode(_)&&_.tag)z[_.tag]=!0}),Y=Object.keys(z)}else Y=[];for(let[z,w]of K){if(z==="!!"&&w==="tag:yaml.org,2002:")continue;if(!A||Y.some((_)=>_.startsWith(w)))q.push(`%TAG ${z} ${w}`)}return q.join(`
`)}}fy.defaultYaml={explicit:!1,version:"1.2"};fy.defaultTags={"!!":"tag:yaml.org,2002:"};v13.Directives=fy});var iq1=h((L13)=>{var yFA=nY(),N13=nh6();function k13(A){if(/[\x00-\x19\s,[\]{}]/.test(A)){let K=`Anchor must not contain whitespace or control characters: ${JSON.stringify(A)}`;throw Error(K)}return!0}function RFA(A){let q=new Set;return N13.visit(A,{Value(K,Y){if(Y.anchor)q.add(Y.anchor)}}),q}function SFA(A,q){for(let K=1;;++K){let Y=`${A}${K}`;if(!q.has(Y))return Y}}function E13(A,q){let K=[],Y=new Map,z=null;return{onAnchor:(w)=>{K.push(w),z??(z=RFA(A));let _=SFA(q,z);return z.add(_),_},setAnchors:()=>{for(let w of K){let _=Y.get(w);if(typeof _==="object"&&_.anchor&&(yFA.isScalar(_.node)||yFA.isCollection(_.node)))_.node.anchor=_.anchor;else{let $=Error("Failed to resolve repeated object (this should not happen)");throw $.source=w,$}}},sourceObjects:Y}}L13.anchorIsValid=k13;L13.anchorNames=RFA;L13.createNodeAnchors=E13;L13.findNewAnchor=SFA});var wt1=h((C13)=>{function rh6(A,q,K,Y){if(Y&&typeof Y==="object")if(Array.isArray(Y))for(let z=0,w=Y.length;z<w;++z){let _=Y[z],$=rh6(A,Y,String(z),_);if($===void 0)delete Y[z];else if($!==_)Y[z]=$}else if(Y instanceof Map)for(let z of Array.from(Y.keys())){let w=Y.get(z),_=rh6(A,Y,z,w);if(_===void 0)Y.delete(z);else if(_!==w)Y.set(z,_)}else if(Y instanceof Set)for(let z of Array.from(Y)){let w=rh6(A,Y,z,z);if(w===void 0)Y.delete(z);else if(w!==z)Y.delete(z),Y.add(w)}else for(let[z,w]of Object.entries(Y)){let _=rh6(A,Y,z,w);if(_===void 0)delete Y[z];else if(_!==w)Y[z]=_}return A.call(q,K,Y)}C13.applyReviver=rh6});var ma=h((b13)=>{var x13=nY();function hFA(A,q,K){if(Array.isArray(A))return A.map((Y,z)=>hFA(Y,String(z),K));if(A&&typeof A.toJSON==="function"){if(!K||!x13.hasAnchor(A))return A.toJSON(q,K);let Y={aliasCount:0,count:1,res:void 0};K.anchors.set(A,Y),K.onCreate=(w)=>{Y.res=w,delete K.onCreate};let z=A.toJSON(q,K);if(K.onCreate)K.onCreate(z);return z}if(typeof A==="bigint"&&!K?.keep)return Number(A);return A}b13.toJS=hFA});var nq1=h((g13)=>{var m13=wt1(),CFA=nY(),B13=ma();class IFA{constructor(A){Object.defineProperty(this,CFA.NODE_TYPE,{value:A})}clone(){let A=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)A.range=this.range.slice();return A}toJS(A,{mapAsMap:q,maxAliasCount:K,onAnchor:Y,reviver:z}={}){if(!CFA.isDocument(A))throw TypeError("A document argument is required");let w={anchors:new Map,doc:A,keep:!0,mapAsMap:q===!0,mapKeyWarned:!1,maxAliasCount:typeof K==="number"?K:100},_=B13.toJS(this,"",w);if(typeof Y==="function")for(let{count:$,res:O}of w.anchors.values())Y(O,$);return typeof z==="function"?m13.applyReviver(z,{"":_},"",_):_}}g13.NodeBase=IFA});var oh6=h((c13)=>{var F13=iq1(),Q13=nh6(),gJ6=nY(),U13=nq1(),d13=ma();class xFA extends U13.NodeBase{constructor(A){super(gJ6.ALIAS);this.source=A,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(A,q){let K;if(q?.aliasResolveCache)K=q.aliasResolveCache;else if(K=[],Q13.visit(A,{Node:(z,w)=>{if(gJ6.isAlias(w)||gJ6.hasAnchor(w))K.push(w)}}),q)q.aliasResolveCache=K;let Y=void 0;for(let z of K){if(z===this)break;if(z.anchor===this.source)Y=z}return Y}toJSON(A,q){if(!q)return{source:this.source};let{anchors:K,doc:Y,maxAliasCount:z}=q,w=this.resolve(Y,q);if(!w){let $=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError($)}let _=K.get(w);if(!_)d13.toJS(w,null,q),_=K.get(w);if(!_||_.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(z>=0){if(_.count+=1,_.aliasCount===0)_.aliasCount=rq1(Y,w,K);if(_.count*_.aliasCount>z)throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return _.res}toString(A,q,K){let Y=`*${this.source}`;if(A){if(F13.anchorIsValid(this.source),A.options.verifyAliasOrder&&!A.anchors.has(this.source)){let z=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(z)}if(A.implicitKey)return`${Y} `}return Y}}function rq1(A,q,K){if(gJ6.isAlias(q)){let Y=q.resolve(A),z=K&&Y&&K.get(Y);return z?z.count*z.aliasCount:0}else if(gJ6.isCollection(q)){let Y=0;for(let z of q.items){let w=rq1(A,z,K);if(w>Y)Y=w}return Y}else if(gJ6.isPair(q)){let Y=rq1(A,q.key,K),z=rq1(A,q.value,K);return Math.max(Y,z)}return 1}c13.Alias=xFA});var $M=h((a13)=>{var i13=nY(),n13=nq1(),r13=ma(),o13=(A)=>!A||typeof A!=="function"&&typeof A!=="object";class Sq6 extends n13.NodeBase{constructor(A){super(i13.SCALAR);this.value=A}toJSON(A,q){return q?.keep?this.value:r13.toJS(this.value,A,q)}toString(){return String(this.value)}}Sq6.BLOCK_FOLDED="BLOCK_FOLDED";Sq6.BLOCK_LITERAL="BLOCK_LITERAL";Sq6.PLAIN="PLAIN";Sq6.QUOTE_DOUBLE="QUOTE_DOUBLE";Sq6.QUOTE_SINGLE="QUOTE_SINGLE";a13.Scalar=Sq6;a13.isScalarValue=o13});var ah6=h((Y83)=>{var e13=oh6(),hq6=nY(),bFA=$M(),A83="tag:yaml.org,2002:";function q83(A,q,K){if(q){let Y=K.filter((w)=>w.tag===q),z=Y.find((w)=>!w.format)??Y[0];if(!z)throw Error(`Tag ${q} not found`);return z}return K.find((Y)=>Y.identify?.(A)&&!Y.format)}function K83(A,q,K){if(hq6.isDocument(A))A=A.contents;if(hq6.isNode(A))return A;if(hq6.isPair(A)){let J=K.schema[hq6.MAP].createNode?.(K.schema,null,K);return J.items.push(A),J}if(A instanceof String||A instanceof Number||A instanceof Boolean||typeof BigInt<"u"&&A instanceof BigInt)A=A.valueOf();let{aliasDuplicateObjects:Y,onAnchor:z,onTagObj:w,schema:_,sourceObjects:$}=K,O=void 0;if(Y&&A&&typeof A==="object")if(O=$.get(A),O)return O.anchor??(O.anchor=z(A)),new e13.Alias(O.anchor);else O={anchor:null,node:null},$.set(A,O);if(q?.startsWith("!!"))q=A83+q.slice(2);let H=q83(A,q,_.tags);if(!H){if(A&&typeof A.toJSON==="function")A=A.toJSON();if(!A||typeof A!=="object"){let J=new bFA.Scalar(A);if(O)O.node=J;return J}H=A instanceof Map?_[hq6.MAP]:(Symbol.iterator in Object(A))?_[hq6.SEQ]:_[hq6.MAP]}if(w)w(H),delete K.onTagObj;let j=H?.createNode?H.createNode(K.schema,A,K):typeof H?.nodeClass?.from==="function"?H.nodeClass.from(K.schema,A,K):new bFA.Scalar(A);if(q)j.tag=q;else if(!H.default)j.tag=H.tag;if(O)O.node=j;return j}Y83.createNode=K83});var oq1=h(($83)=>{var w83=ah6(),Em=nY(),_83=nq1();function _t1(A,q,K){let Y=K;for(let z=q.length-1;z>=0;--z){let w=q[z];if(typeof w==="number"&&Number.isInteger(w)&&w>=0){let _=[];_[w]=Y,Y=_}else Y=new Map([[w,Y]])}return w83.createNode(Y,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:A,sourceObjects:new Map})}var uFA=(A)=>A==null||typeof A==="object"&&!!A[Symbol.iterator]().next().done;class mFA extends _83.NodeBase{constructor(A,q){super(A);Object.defineProperty(this,"schema",{value:q,configurable:!0,enumerable:!1,writable:!0})}clone(A){let q=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(A)q.schema=A;if(q.items=q.items.map((K)=>Em.isNode(K)||Em.isPair(K)?K.clone(A):K),this.range)q.range=this.range.slice();return q}addIn(A,q){if(uFA(A))this.add(q);else{let[K,...Y]=A,z=this.get(K,!0);if(Em.isCollection(z))z.addIn(Y,q);else if(z===void 0&&this.schema)this.set(K,_t1(this.schema,Y,q));else throw Error(`Expected YAML collection at ${K}. Remaining path: ${Y}`)}}deleteIn(A){let[q,...K]=A;if(K.length===0)return this.delete(q);let Y=this.get(q,!0);if(Em.isCollection(Y))return Y.deleteIn(K);else throw Error(`Expected YAML collection at ${q}. Remaining path: ${K}`)}getIn(A,q){let[K,...Y]=A,z=this.get(K,!0);if(Y.length===0)return!q&&Em.isScalar(z)?z.value:z;else return Em.isCollection(z)?z.getIn(Y,q):void 0}hasAllNullValues(A){return this.items.every((q)=>{if(!Em.isPair(q))return!1;let K=q.value;return K==null||A&&Em.isScalar(K)&&K.value==null&&!K.commentBefore&&!K.comment&&!K.tag})}hasIn(A){let[q,...K]=A;if(K.length===0)return this.has(q);let Y=this.get(q,!0);return Em.isCollection(Y)?Y.hasIn(K):!1}setIn(A,q){let[K,...Y]=A;if(Y.length===0)this.set(K,q);else{let z=this.get(K,!0);if(Em.isCollection(z))z.setIn(Y,q);else if(z===void 0&&this.schema)this.set(K,_t1(this.schema,Y,q));else throw Error(`Expected YAML collection at ${K}. Remaining path: ${Y}`)}}}$83.Collection=mFA;$83.collectionFromPath=_t1;$83.isEmptyPath=uFA});var sh6=h((D83)=>{var J83=(A)=>A.replace(/^(?!$)(?: $)?/gm,"#");function $t1(A,q){if(/^\n+$/.test(A))return A.substring(1);return q?A.replace(/^(?! *$)/gm,q):A}var M83=(A,q,K)=>A.endsWith(`
`)?$t1(K,q):K.includes(`
`)?`
`+$t1(K,q):(A.endsWith(" ")?"":" ")+K;D83.indentComment=$t1;D83.lineComment=M83;D83.stringifyComment=J83});var gFA=h((Z83)=>{function G83(A,q,K="flow",{indentAtStart:Y,lineWidth:z=80,minContentWidth:w=20,onFold:_,onOverflow:$}={}){if(!z||z<0)return A;if(z<w)w=0;let O=Math.max(1+w,1+z-q.length);if(A.length<=O)return A;let H=[],j={},J=z-q.length;if(typeof Y==="number")if(Y>z-Math.max(2,w))H.push(0);else J=z-Y;let M=void 0,D=void 0,X=!1,P=-1,W=-1,G=-1;if(K==="block"){if(P=BFA(A,P,q.length),P!==-1)J=P+O}for(let f;f=A[P+=1];){if(K==="quoted"&&f==="\\"){switch(W=P,A[P+1]){case"x":P+=3;break;case"u":P+=5;break;case"U":P+=9;break;default:P+=1}G=P}if(f===`
`){if(K==="block")P=BFA(A,P,q.length);J=P+q.length+O,M=void 0}else{if(f===" "&&D&&D!==" "&&D!==`
`&&D!=="\t"){let v=A[P+1];if(v&&v!==" "&&v!==`
`&&v!=="\t")M=P}if(P>=J)if(M)H.push(M),J=M+O,M=void 0;else if(K==="quoted"){while(D===" "||D==="\t")D=f,f=A[P+=1],X=!0;let v=P>G+1?P-2:W-1;if(j[v])return A;H.push(v),j[v]=!0,J=v+O,M=void 0}else X=!0}D=f}if(X&&$)$();if(H.length===0)return A;if(_)_();let Z=A.slice(0,H[0]);for(let f=0;f<H.length;++f){let v=H[f],V=H[f+1]||A.length;if(v===0)Z=`
${q}${A.slice(0,V)}`;else{if(K==="quoted"&&j[v])Z+=`${A[v]}\\`;Z+=`
${q}${A.slice(v+1,V)}`}}return Z}function BFA(A,q,K){let Y=q,z=q+1,w=A[z];while(w===" "||w==="\t")if(q<z+K)w=A[++q];else{do w=A[++q];while(w&&w!==`
`);Y=q,z=q+1,w=A[z]}return Y}Z83.FOLD_BLOCK="block";Z83.FOLD_FLOW="flow";Z83.FOLD_QUOTED="quoted";Z83.foldFlowLines=G83});var eh6=h((L83)=>{var gC=$M(),Ba=gFA(),sq1=(A,q)=>({indentAtStart:q?A.indent.length:A.indentAtStart,lineWidth:A.options.lineWidth,minContentWidth:A.options.minContentWidth}),tq1=(A)=>/^(%|---|\.\.\.)/m.test(A);function N83(A,q,K){if(!q||q<0)return!1;let Y=q-K,z=A.length;if(z<=Y)return!1;for(let w=0,_=0;w<z;++w)if(A[w]===`
`){if(w-_>Y)return!0;if(_=w+1,z-_<=Y)return!1}return!0}function th6(A,q){let K=JSON.stringify(A);if(q.options.doubleQuotedAsJSON)return K;let{implicitKey:Y}=q,z=q.options.doubleQuotedMinMultiLineLength,w=q.indent||(tq1(A)?"  ":""),_="",$=0;for(let O=0,H=K[O];H;H=K[++O]){if(H===" "&&K[O+1]==="\\"&&K[O+2]==="n")_+=K.slice($,O)+"\\ ",O+=1,$=O,H="\\";if(H==="\\")switch(K[O+1]){case"u":{_+=K.slice($,O);let j=K.substr(O+2,4);switch(j){case"0000":_+="\\0";break;case"0007":_+="\\a";break;case"000b":_+="\\v";break;case"001b":_+="\\e";break;case"0085":_+="\\N";break;case"00a0":_+="\\_";break;case"2028":_+="\\L";break;case"2029":_+="\\P";break;default:if(j.substr(0,2)==="00")_+="\\x"+j.substr(2);else _+=K.substr(O,6)}O+=5,$=O+1}break;case"n":if(Y||K[O+2]==='"'||K.length<z)O+=1;else{_+=K.slice($,O)+`

`;while(K[O+2]==="\\"&&K[O+3]==="n"&&K[O+4]!=='"')_+=`
`,O+=2;if(_+=w,K[O+2]===" ")_+="\\";O+=1,$=O+1}break;default:O+=1}}return _=$?_+K.slice($):K,Y?_:Ba.foldFlowLines(_,w,Ba.FOLD_QUOTED,sq1(q,!1))}function Ot1(A,q){if(q.options.singleQuote===!1||q.implicitKey&&A.includes(`
`)||/[ \t]\n|\n[ \t]/.test(A))return th6(A,q);let K=q.indent||(tq1(A)?"  ":""),Y="'"+A.replace(/'/g,"''").replace(/\n+/g,`$&
${K}`)+"'";return q.implicitKey?Y:Ba.foldFlowLines(Y,K,Ba.FOLD_FLOW,sq1(q,!1))}function pJ6(A,q){let{singleQuote:K}=q.options,Y;if(K===!1)Y=th6;else{let z=A.includes('"'),w=A.includes("'");if(z&&!w)Y=Ot1;else if(w&&!z)Y=th6;else Y=K?Ot1:th6}return Y(A,q)}var Ht1;try{Ht1=new RegExp(`(^|(?<!
))
+(?!
|$)`,"g")}catch{Ht1=/\n+(?!\n|$)/g}function aq1({comment:A,type:q,value:K},Y,z,w){let{blockQuote:_,commentString:$,lineWidth:O}=Y.options;if(!_||/\n[\t ]+$/.test(K))return pJ6(K,Y);let H=Y.indent||(Y.forceBlockIndent||tq1(K)?"  ":""),j=_==="literal"?!0:_==="folded"||q===gC.Scalar.BLOCK_FOLDED?!1:q===gC.Scalar.BLOCK_LITERAL?!0:!N83(K,O,H.length);if(!K)return j?`|
`:`>
`;let J,M;for(M=K.length;M>0;--M){let V=K[M-1];if(V!==`
`&&V!=="\t"&&V!==" ")break}let D=K.substring(M),X=D.indexOf(`
`);if(X===-1)J="-";else if(K===D||X!==D.length-1){if(J="+",w)w()}else J="";if(D){if(K=K.slice(0,-D.length),D[D.length-1]===`
`)D=D.slice(0,-1);D=D.replace(Ht1,`$&${H}`)}let P=!1,W,G=-1;for(W=0;W<K.length;++W){let V=K[W];if(V===" ")P=!0;else if(V===`
`)G=W;else break}let Z=K.substring(0,G<W?G+1:W);if(Z)K=K.substring(Z.length),Z=Z.replace(/\n+/g,`$&${H}`);let v=(P?H?"2":"1":"")+J;if(A){if(v+=" "+$(A.replace(/ ?[\r\n]+/g," ")),z)z()}if(!j){let V=K.replace(/\n+/g,`
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${H}`),N=!1,L=sq1(Y,!0);if(_!=="folded"&&q!==gC.Scalar.BLOCK_FOLDED)L.onOverflow=()=>{N=!0};let S=Ba.foldFlowLines(`${Z}${V}${D}`,H,Ba.FOLD_BLOCK,L);if(!N)return`>${v}
${H}${S}`}return K=K.replace(/\n+/g,`$&${H}`),`|${v}
${H}${Z}${K}${D}`}function k83(A,q,K,Y){let{type:z,value:w}=A,{actualString:_,implicitKey:$,indent:O,indentStep:H,inFlow:j}=q;if($&&w.includes(`
`)||j&&/[[\]{},]/.test(w))return pJ6(w,q);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(w))return $||j||!w.includes(`
`)?pJ6(w,q):aq1(A,q,K,Y);if(!$&&!j&&z!==gC.Scalar.PLAIN&&w.includes(`
`))return aq1(A,q,K,Y);if(tq1(w)){if(O==="")return q.forceBlockIndent=!0,aq1(A,q,K,Y);else if($&&O===H)return pJ6(w,q)}let J=w.replace(/\n+/g,`$&
${O}`);if(_){let M=(P)=>P.default&&P.tag!=="tag:yaml.org,2002:str"&&P.test?.test(J),{compat:D,tags:X}=q.doc.schema;if(X.some(M)||D?.some(M))return pJ6(w,q)}return $?J:Ba.foldFlowLines(J,O,Ba.FOLD_FLOW,sq1(q,!1))}function E83(A,q,K,Y){let{implicitKey:z,inFlow:w}=q,_=typeof A.value==="string"?A:Object.assign({},A,{value:String(A.value)}),{type:$}=A;if($!==gC.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(_.value))$=gC.Scalar.QUOTE_DOUBLE}let O=(j)=>{switch(j){case gC.Scalar.BLOCK_FOLDED:case gC.Scalar.BLOCK_LITERAL:return z||w?pJ6(_.value,q):aq1(_,q,K,Y);case gC.Scalar.QUOTE_DOUBLE:return th6(_.value,q);case gC.Scalar.QUOTE_SINGLE:return Ot1(_.value,q);case gC.Scalar.PLAIN:return k83(_,q,K,Y);default:return null}},H=O($);if(H===null){let{defaultKeyType:j,defaultStringType:J}=q.options,M=z&&j||J;if(H=O(M),H===null)throw Error(`Unsupported default string type ${M}`)}return H}L83.stringifyString=E83});var AC6=h((u83)=>{var R83=iq1(),ga=nY(),S83=sh6(),h83=eh6();function C83(A,q){let K=Object.assign({blockQuote:!0,commentString:S83.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},A.schema.toStringOptions,q),Y;switch(K.collectionStyle){case"block":Y=!1;break;case"flow":Y=!0;break;default:Y=null}return{anchors:new Set,doc:A,flowCollectionPadding:K.flowCollectionPadding?" ":"",indent:"",indentStep:typeof K.indent==="number"?" ".repeat(K.indent):"  ",inFlow:Y,options:K}}function I83(A,q){if(q.tag){let z=A.filter((w)=>w.tag===q.tag);if(z.length>0)return z.find((w)=>w.format===q.format)??z[0]}let K=void 0,Y;if(ga.isScalar(q)){Y=q.value;let z=A.filter((w)=>w.identify?.(Y));if(z.length>1){let w=z.filter((_)=>_.test);if(w.length>0)z=w}K=z.find((w)=>w.format===q.format)??z.find((w)=>!w.format)}else Y=q,K=A.find((z)=>z.nodeClass&&Y instanceof z.nodeClass);if(!K){let z=Y?.constructor?.name??(Y===null?"null":typeof Y);throw Error(`Tag not resolved for ${z} value`)}return K}function x83(A,q,{anchors:K,doc:Y}){if(!Y.directives)return"";let z=[],w=(ga.isScalar(A)||ga.isCollection(A))&&A.anchor;if(w&&R83.anchorIsValid(w))K.add(w),z.push(`&${w}`);let _=A.tag??(q.default?null:q.tag);if(_)z.push(Y.directives.tagString(_));return z.join(" ")}function b83(A,q,K,Y){if(ga.isPair(A))return A.toString(q,K,Y);if(ga.isAlias(A)){if(q.doc.directives)return A.toString(q);if(q.resolvedAliases?.has(A))throw TypeError("Cannot stringify circular structure without alias nodes");else{if(q.resolvedAliases)q.resolvedAliases.add(A);else q.resolvedAliases=new Set([A]);A=A.resolve(q.doc)}}let z=void 0,w=ga.isNode(A)?A:q.doc.createNode(A,{onTagObj:(O)=>z=O});z??(z=I83(q.doc.schema.tags,w));let _=x83(w,z,q);if(_.length>0)q.indentAtStart=(q.indentAtStart??0)+_.length+1;let $=typeof z.stringify==="function"?z.stringify(w,q,K,Y):ga.isScalar(w)?h83.stringifyString(w,q,K,Y):w.toString(q,K,Y);if(!_)return $;return ga.isScalar(w)||$[0]==="{"||$[0]==="["?`${_} ${$}`:`${_}
${q.indent}${$}`}u83.createStringifyContext=C83;u83.stringify=b83});var QFA=h((p83)=>{var gU=nY(),pFA=$M(),FFA=AC6(),qC6=sh6();function g83({key:A,value:q},K,Y,z){let{allNullValues:w,doc:_,indent:$,indentStep:O,options:{commentString:H,indentSeq:j,simpleKeys:J}}=K,M=gU.isNode(A)&&A.comment||null;if(J){if(M)throw Error("With simple keys, key nodes cannot have comments");if(gU.isCollection(A)||!gU.isNode(A)&&typeof A==="object")throw Error("With simple keys, collection cannot be used as a key value")}let D=!J&&(!A||M&&q==null&&!K.inFlow||gU.isCollection(A)||(gU.isScalar(A)?A.type===pFA.Scalar.BLOCK_FOLDED||A.type===pFA.Scalar.BLOCK_LITERAL:typeof A==="object"));K=Object.assign({},K,{allNullValues:!1,implicitKey:!D&&(J||!w),indent:$+O});let X=!1,P=!1,W=FFA.stringify(A,K,()=>X=!0,()=>P=!0);if(!D&&!K.inFlow&&W.length>1024){if(J)throw Error("With simple keys, single line scalar must not span more than 1024 characters");D=!0}if(K.inFlow){if(w||q==null){if(X&&Y)Y();return W===""?"?":D?`? ${W}`:W}}else if(w&&!J||q==null&&D){if(W=`? ${W}`,M&&!X)W+=qC6.lineComment(W,K.indent,H(M));else if(P&&z)z();return W}if(X)M=null;if(D){if(M)W+=qC6.lineComment(W,K.indent,H(M));W=`? ${W}
${$}:`}else if(W=`${W}:`,M)W+=qC6.lineComment(W,K.indent,H(M));let G,Z,f;if(gU.isNode(q))G=!!q.spaceBefore,Z=q.commentBefore,f=q.comment;else if(G=!1,Z=null,f=null,q&&typeof q==="object")q=_.createNode(q);if(K.implicitKey=!1,!D&&!M&&gU.isScalar(q))K.indentAtStart=W.length+1;if(P=!1,!j&&O.length>=2&&!K.inFlow&&!D&&gU.isSeq(q)&&!q.flow&&!q.tag&&!q.anchor)K.indent=K.indent.substring(2);let v=!1,V=FFA.stringify(q,K,()=>v=!0,()=>P=!0),N=" ";if(M||G||Z){if(N=G?`
`:"",Z){let L=H(Z);N+=`
${qC6.indentComment(L,K.indent)}`}if(V===""&&!K.inFlow){if(N===`
`)N=`

`}else N+=`
${K.indent}`}else if(!D&&gU.isCollection(q)){let L=V[0],S=V.indexOf(`
`),C=S!==-1,m=K.inFlow??q.flow??q.items.length===0;if(C||!m){let x=!1;if(C&&(L==="&"||L==="!")){let p=V.indexOf(" ");if(L==="&"&&p!==-1&&p<S&&V[p+1]==="!")p=V.indexOf(" ",p+1);if(p===-1||S<p)x=!0}if(!x)N=`
${K.indent}`}}else if(V===""||V[0]===`
`)N="";if(W+=N+V,K.inFlow){if(v&&Y)Y()}else if(f&&!v)W+=qC6.lineComment(W,K.indent,H(f));else if(P&&z)z();return W}p83.stringifyPair=g83});var jt1=h((d83)=>{var UFA=u6("process");function Q83(A,...q){if(A==="debug")console.log(...q)}function U83(A,q){if(A==="debug"||A==="warn")if(typeof UFA.emitWarning==="function")UFA.emitWarning(q);else console.warn(q)}d83.debug=Q83;d83.warn=U83});var qK1=h((n83)=>{var KC6=nY(),dFA=$M(),eq1="<<",AK1={identify:(A)=>A===eq1||typeof A==="symbol"&&A.description===eq1,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new dFA.Scalar(Symbol(eq1)),{addToJSMap:cFA}),stringify:()=>eq1},i83=(A,q)=>(AK1.identify(q)||KC6.isScalar(q)&&(!q.type||q.type===dFA.Scalar.PLAIN)&&AK1.identify(q.value))&&A?.doc.schema.tags.some((K)=>K.tag===AK1.tag&&K.default);function cFA(A,q,K){if(K=A&&KC6.isAlias(K)?K.resolve(A.doc):K,KC6.isSeq(K))for(let Y of K.items)Jt1(A,q,Y);else if(Array.isArray(K))for(let Y of K)Jt1(A,q,Y);else Jt1(A,q,K)}function Jt1(A,q,K){let Y=A&&KC6.isAlias(K)?K.resolve(A.doc):K;if(!KC6.isMap(Y))throw Error("Merge sources must be maps or map aliases");let z=Y.toJSON(null,A,Map);for(let[w,_]of z)if(q instanceof Map){if(!q.has(w))q.set(w,_)}else if(q instanceof Set)q.add(w);else if(!Object.prototype.hasOwnProperty.call(q,w))Object.defineProperty(q,w,{value:_,writable:!0,enumerable:!0,configurable:!0});return q}n83.addMergeToJSMap=cFA;n83.isMergeKey=i83;n83.merge=AK1});var Dt1=h((qA3)=>{var s83=jt1(),lFA=qK1(),t83=AC6(),iFA=nY(),Mt1=ma();function e83(A,q,{key:K,value:Y}){if(iFA.isNode(K)&&K.addToJSMap)K.addToJSMap(A,q,Y);else if(lFA.isMergeKey(A,K))lFA.addMergeToJSMap(A,q,Y);else{let z=Mt1.toJS(K,"",A);if(q instanceof Map)q.set(z,Mt1.toJS(Y,z,A));else if(q instanceof Set)q.add(z);else{let w=AA3(K,z,A),_=Mt1.toJS(Y,w,A);if(w in q)Object.defineProperty(q,w,{value:_,writable:!0,enumerable:!0,configurable:!0});else q[w]=_}}return q}function AA3(A,q,K){if(q===null)return"";if(typeof q!=="object")return String(q);if(iFA.isNode(A)&&K?.doc){let Y=t83.createStringifyContext(K.doc,{});Y.anchors=new Set;for(let w of K.anchors.keys())Y.anchors.add(w.anchor);Y.inFlow=!0,Y.inStringifyKey=!0;let z=A.toString(Y);if(!K.mapKeyWarned){let w=JSON.stringify(z);if(w.length>40)w=w.substring(0,36)+'..."';s83.warn(K.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${w}. Set mapAsMap: true to use object keys.`),K.mapKeyWarned=!0}return z}return JSON.stringify(q)}qA3.addPairToJSMap=e83});var pa=h((_A3)=>{var nFA=ah6(),YA3=QFA(),zA3=Dt1(),KK1=nY();function wA3(A,q,K){let Y=nFA.createNode(A,void 0,K),z=nFA.createNode(q,void 0,K);return new YK1(Y,z)}class YK1{constructor(A,q=null){Object.defineProperty(this,KK1.NODE_TYPE,{value:KK1.PAIR}),this.key=A,this.value=q}clone(A){let{key:q,value:K}=this;if(KK1.isNode(q))q=q.clone(A);if(KK1.isNode(K))K=K.clone(A);return new YK1(q,K)}toJSON(A,q){let K=q?.mapAsMap?new Map:{};return zA3.addPairToJSMap(q,K,this)}toString(A,q,K){return A?.doc?YA3.stringifyPair(this,A,q,K):JSON.stringify(this)}}_A3.Pair=YK1;_A3.createPair=wA3});var Xt1=h((MA3)=>{var Cq6=nY(),rFA=AC6(),zK1=sh6();function HA3(A,q,K){return(q.inFlow??A.flow?JA3:jA3)(A,q,K)}function jA3({comment:A,items:q},K,{blockItemPrefix:Y,flowChars:z,itemIndent:w,onChompKeep:_,onComment:$}){let{indent:O,options:{commentString:H}}=K,j=Object.assign({},K,{indent:w,type:null}),J=!1,M=[];for(let X=0;X<q.length;++X){let P=q[X],W=null;if(Cq6.isNode(P)){if(!J&&P.spaceBefore)M.push("");if(wK1(K,M,P.commentBefore,J),P.comment)W=P.comment}else if(Cq6.isPair(P)){let Z=Cq6.isNode(P.key)?P.key:null;if(Z){if(!J&&Z.spaceBefore)M.push("");wK1(K,M,Z.commentBefore,J)}}J=!1;let G=rFA.stringify(P,j,()=>W=null,()=>J=!0);if(W)G+=zK1.lineComment(G,w,H(W));if(J&&W)J=!1;M.push(Y+G)}let D;if(M.length===0)D=z.start+z.end;else{D=M[0];for(let X=1;X<M.length;++X){let P=M[X];D+=P?`
${O}${P}`:`
`}}if(A){if(D+=`
`+zK1.indentComment(H(A),O),$)$()}else if(J&&_)_();return D}function JA3({items:A},q,{flowChars:K,itemIndent:Y}){let{indent:z,indentStep:w,flowCollectionPadding:_,options:{commentString:$}}=q;Y+=w;let O=Object.assign({},q,{indent:Y,inFlow:!0,type:null}),H=!1,j=0,J=[];for(let X=0;X<A.length;++X){let P=A[X],W=null;if(Cq6.isNode(P)){if(P.spaceBefore)J.push("");if(wK1(q,J,P.commentBefore,!1),P.comment)W=P.comment}else if(Cq6.isPair(P)){let Z=Cq6.isNode(P.key)?P.key:null;if(Z){if(Z.spaceBefore)J.push("");if(wK1(q,J,Z.commentBefore,!1),Z.comment)H=!0}let f=Cq6.isNode(P.value)?P.value:null;if(f){if(f.comment)W=f.comment;if(f.commentBefore)H=!0}else if(P.value==null&&Z?.comment)W=Z.comment}if(W)H=!0;let G=rFA.stringify(P,O,()=>W=null);if(X<A.length-1)G+=",";if(W)G+=zK1.lineComment(G,Y,$(W));if(!H&&(J.length>j||G.includes(`
`)))H=!0;J.push(G),j=J.length}let{start:M,end:D}=K;if(J.length===0)return M+D;else{if(!H){let X=J.reduce((P,W)=>P+W.length+2,2);H=q.options.lineWidth>0&&X>q.options.lineWidth}if(H){let X=M;for(let P of J)X+=P?`
${w}${z}${P}`:`
`;return`${X}
${z}${D}`}else return`${M}${_}${J.join(" ")}${_}${D}`}}function wK1({indent:A,options:{commentString:q}},K,Y,z){if(Y&&z)Y=Y.replace(/^\n+/,"");if(Y){let w=zK1.indentComment(q(Y),A);K.push(w.trimStart())}}MA3.stringifyCollection=HA3});var Qa=h((ZA3)=>{var XA3=Xt1(),PA3=Dt1(),WA3=oq1(),Fa=nY(),_K1=pa(),GA3=$M();function YC6(A,q){let K=Fa.isScalar(q)?q.value:q;for(let Y of A)if(Fa.isPair(Y)){if(Y.key===q||Y.key===K)return Y;if(Fa.isScalar(Y.key)&&Y.key.value===K)return Y}return}class oFA extends WA3.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(A){super(Fa.MAP,A);this.items=[]}static from(A,q,K){let{keepUndefined:Y,replacer:z}=K,w=new this(A),_=($,O)=>{if(typeof z==="function")O=z.call(q,$,O);else if(Array.isArray(z)&&!z.includes($))return;if(O!==void 0||Y)w.items.push(_K1.createPair($,O,K))};if(q instanceof Map)for(let[$,O]of q)_($,O);else if(q&&typeof q==="object")for(let $ of Object.keys(q))_($,q[$]);if(typeof A.sortMapEntries==="function")w.items.sort(A.sortMapEntries);return w}add(A,q){let K;if(Fa.isPair(A))K=A;else if(!A||typeof A!=="object"||!("key"in A))K=new _K1.Pair(A,A?.value);else K=new _K1.Pair(A.key,A.value);let Y=YC6(this.items,K.key),z=this.schema?.sortMapEntries;if(Y){if(!q)throw Error(`Key ${K.key} already set`);if(Fa.isScalar(Y.value)&&GA3.isScalarValue(K.value))Y.value.value=K.value;else Y.value=K.value}else if(z){let w=this.items.findIndex((_)=>z(K,_)<0);if(w===-1)this.items.push(K);else this.items.splice(w,0,K)}else this.items.push(K)}delete(A){let q=YC6(this.items,A);if(!q)return!1;return this.items.splice(this.items.indexOf(q),1).length>0}get(A,q){let Y=YC6(this.items,A)?.value;return(!q&&Fa.isScalar(Y)?Y.value:Y)??void 0}has(A){return!!YC6(this.items,A)}set(A,q){this.add(new _K1.Pair(A,q),!0)}toJSON(A,q,K){let Y=K?new K:q?.mapAsMap?new Map:{};if(q?.onCreate)q.onCreate(Y);for(let z of this.items)PA3.addPairToJSMap(q,Y,z);return Y}toString(A,q,K){if(!A)return JSON.stringify(this);for(let Y of this.items)if(!Fa.isPair(Y))throw Error(`Map items must all be pairs; found ${JSON.stringify(Y)} instead`);if(!A.allNullValues&&this.hasAllNullValues(!1))A=Object.assign({},A,{allNullValues:!0});return XA3.stringifyCollection(this,A,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:A.indent||"",onChompKeep:K,onComment:q})}}ZA3.YAMLMap=oFA;ZA3.findPair=YC6});var FJ6=h((NA3)=>{var vA3=nY(),aFA=Qa(),VA3={collection:"map",default:!0,nodeClass:aFA.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(A,q){if(!vA3.isMap(A))q("Expected a mapping for this tag");return A},createNode:(A,q,K)=>aFA.YAMLMap.from(A,q,K)};NA3.map=VA3});var Ua=h((hA3)=>{var EA3=ah6(),LA3=Xt1(),yA3=oq1(),OK1=nY(),RA3=$M(),SA3=ma();class sFA extends yA3.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(A){super(OK1.SEQ,A);this.items=[]}add(A){this.items.push(A)}delete(A){let q=$K1(A);if(typeof q!=="number")return!1;return this.items.splice(q,1).length>0}get(A,q){let K=$K1(A);if(typeof K!=="number")return;let Y=this.items[K];return!q&&OK1.isScalar(Y)?Y.value:Y}has(A){let q=$K1(A);return typeof q==="number"&&q<this.items.length}set(A,q){let K=$K1(A);if(typeof K!=="number")throw Error(`Expected a valid index, not ${A}.`);let Y=this.items[K];if(OK1.isScalar(Y)&&RA3.isScalarValue(q))Y.value=q;else this.items[K]=q}toJSON(A,q){let K=[];if(q?.onCreate)q.onCreate(K);let Y=0;for(let z of this.items)K.push(SA3.toJS(z,String(Y++),q));return K}toString(A,q,K){if(!A)return JSON.stringify(this);return LA3.stringifyCollection(this,A,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(A.indent||"")+"  ",onChompKeep:K,onComment:q})}static from(A,q,K){let{replacer:Y}=K,z=new this(A);if(q&&Symbol.iterator in Object(q)){let w=0;for(let _ of q){if(typeof Y==="function"){let $=q instanceof Set?_:String(w++);_=Y.call(q,$,_)}z.items.push(EA3.createNode(_,void 0,K))}}return z}}function $K1(A){let q=OK1.isScalar(A)?A.value:A;if(q&&typeof q==="string")q=Number(q);return typeof q==="number"&&Number.isInteger(q)&&q>=0?q:null}hA3.YAMLSeq=sFA});var QJ6=h((bA3)=>{var IA3=nY(),tFA=Ua(),xA3={collection:"seq",default:!0,nodeClass:tFA.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(A,q){if(!IA3.isSeq(A))q("Expected a sequence for this tag");return A},createNode:(A,q,K)=>tFA.YAMLSeq.from(A,q,K)};bA3.seq=xA3});var zC6=h((gA3)=>{var mA3=eh6(),BA3={identify:(A)=>typeof A==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(A)=>A,stringify(A,q,K,Y){return q=Object.assign({actualString:!0},q),mA3.stringifyString(A,q,K,Y)}};gA3.string=BA3});var HK1=h((FA3)=>{var eFA=$M(),AQA={identify:(A)=>A==null,createNode:()=>new eFA.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new eFA.Scalar(null),stringify:({source:A},q)=>typeof A==="string"&&AQA.test.test(A)?A:q.options.nullStr};FA3.nullTag=AQA});var Pt1=h((dA3)=>{var UA3=$M(),qQA={identify:(A)=>typeof A==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:(A)=>new UA3.Scalar(A[0]==="t"||A[0]==="T"),stringify({source:A,value:q},K){if(A&&qQA.test.test(A)){let Y=A[0]==="t"||A[0]==="T";if(q===Y)return A}return q?K.options.trueStr:K.options.falseStr}};dA3.boolTag=qQA});var UJ6=h((iA3)=>{function lA3({format:A,minFractionDigits:q,tag:K,value:Y}){if(typeof Y==="bigint")return String(Y);let z=typeof Y==="number"?Y:Number(Y);if(!isFinite(z))return isNaN(z)?".nan":z<0?"-.inf":".inf";let w=JSON.stringify(Y);if(!A&&q&&(!K||K==="tag:yaml.org,2002:float")&&/^\d/.test(w)){let _=w.indexOf(".");if(_<0)_=w.length,w+=".";let $=q-(w.length-_-1);while($-- >0)w+="0"}return w}iA3.stringifyNumber=lA3});var Gt1=h((tA3)=>{var rA3=$M(),Wt1=UJ6(),oA3={identify:(A)=>typeof A==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(A)=>A.slice(-3).toLowerCase()==="nan"?NaN:A[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Wt1.stringifyNumber},aA3={identify:(A)=>typeof A==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:(A)=>parseFloat(A),stringify(A){let q=Number(A.value);return isFinite(q)?q.toExponential():Wt1.stringifyNumber(A)}},sA3={identify:(A)=>typeof A==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(A){let q=new rA3.Scalar(parseFloat(A)),K=A.indexOf(".");if(K!==-1&&A[A.length-1]==="0")q.minFractionDigits=A.length-K-1;return q},stringify:Wt1.stringifyNumber};tA3.float=sA3;tA3.floatExp=aA3;tA3.floatNaN=oA3});var ft1=h((w73)=>{var KQA=UJ6(),jK1=(A)=>typeof A==="bigint"||Number.isInteger(A),Zt1=(A,q,K,{intAsBigInt:Y})=>Y?BigInt(A):parseInt(A.substring(q),K);function YQA(A,q,K){let{value:Y}=A;if(jK1(Y)&&Y>=0)return K+Y.toString(q);return KQA.stringifyNumber(A)}var K73={identify:(A)=>jK1(A)&&A>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(A,q,K)=>Zt1(A,2,8,K),stringify:(A)=>YQA(A,8,"0o")},Y73={identify:jK1,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(A,q,K)=>Zt1(A,0,10,K),stringify:KQA.stringifyNumber},z73={identify:(A)=>jK1(A)&&A>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(A,q,K)=>Zt1(A,2,16,K),stringify:(A)=>YQA(A,16,"0x")};w73.int=Y73;w73.intHex=z73;w73.intOct=K73});var zQA=h((P73)=>{var H73=FJ6(),j73=HK1(),J73=QJ6(),M73=zC6(),D73=Pt1(),Tt1=Gt1(),vt1=ft1(),X73=[H73.map,J73.seq,M73.string,j73.nullTag,D73.boolTag,vt1.intOct,vt1.int,vt1.intHex,Tt1.floatNaN,Tt1.floatExp,Tt1.float];P73.schema=X73});var _QA=h((N73)=>{var G73=$M(),Z73=FJ6(),f73=QJ6();function wQA(A){return typeof A==="bigint"||Number.isInteger(A)}var JK1=({value:A})=>JSON.stringify(A),T73=[{identify:(A)=>typeof A==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(A)=>A,stringify:JK1},{identify:(A)=>A==null,createNode:()=>new G73.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:JK1},{identify:(A)=>typeof A==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:(A)=>A==="true",stringify:JK1},{identify:wQA,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(A,q,{intAsBigInt:K})=>K?BigInt(A):parseInt(A,10),stringify:({value:A})=>wQA(A)?A.toString():JSON.stringify(A)},{identify:(A)=>typeof A==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:(A)=>parseFloat(A),stringify:JK1}],v73={default:!0,tag:"",test:/^/,resolve(A,q){return q(`Unresolved plain scalar ${JSON.stringify(A)}`),A}},V73=[Z73.map,f73.seq].concat(T73,v73);N73.schema=V73});var Nt1=h((y73)=>{var wC6=u6("buffer"),Vt1=$M(),E73=eh6(),L73={identify:(A)=>A instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(A,q){if(typeof wC6.Buffer==="function")return wC6.Buffer.from(A,"base64");else if(typeof atob==="function"){let K=atob(A.replace(/[\n\r]/g,"")),Y=new Uint8Array(K.length);for(let z=0;z<K.length;++z)Y[z]=K.charCodeAt(z);return Y}else return q("This environment does not support reading binary tags; either Buffer or atob is required"),A},stringify({comment:A,type:q,value:K},Y,z,w){if(!K)return"";let _=K,$;if(typeof wC6.Buffer==="function")$=_ instanceof wC6.Buffer?_.toString("base64"):wC6.Buffer.from(_.buffer).toString("base64");else if(typeof btoa==="function"){let O="";for(let H=0;H<_.length;++H)O+=String.fromCharCode(_[H]);$=btoa(O)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(q??(q=Vt1.Scalar.BLOCK_LITERAL),q!==Vt1.Scalar.QUOTE_DOUBLE){let O=Math.max(Y.options.lineWidth-Y.indent.length,Y.options.minContentWidth),H=Math.ceil($.length/O),j=Array(H);for(let J=0,M=0;J<H;++J,M+=O)j[J]=$.substr(M,O);$=j.join(q===Vt1.Scalar.BLOCK_LITERAL?`
`:" ")}return E73.stringifyString({comment:A,type:q,value:$},Y,z,w)}};y73.binary=L73});var DK1=h((I73)=>{var MK1=nY(),kt1=pa(),S73=$M(),h73=Ua();function $QA(A,q){if(MK1.isSeq(A))for(let K=0;K<A.items.length;++K){let Y=A.items[K];if(MK1.isPair(Y))continue;else if(MK1.isMap(Y)){if(Y.items.length>1)q("Each pair must have its own sequence indicator");let z=Y.items[0]||new kt1.Pair(new S73.Scalar(null));if(Y.commentBefore)z.key.commentBefore=z.key.commentBefore?`${Y.commentBefore}
${z.key.commentBefore}`:Y.commentBefore;if(Y.comment){let w=z.value??z.key;w.comment=w.comment?`${Y.comment}
${w.comment}`:Y.comment}Y=z}A.items[K]=MK1.isPair(Y)?Y:new kt1.Pair(Y)}else q("Expected a sequence for this tag");return A}function OQA(A,q,K){let{replacer:Y}=K,z=new h73.YAMLSeq(A);z.tag="tag:yaml.org,2002:pairs";let w=0;if(q&&Symbol.iterator in Object(q))for(let _ of q){if(typeof Y==="function")_=Y.call(q,String(w++),_);let $,O;if(Array.isArray(_))if(_.length===2)$=_[0],O=_[1];else throw TypeError(`Expected [key, value] tuple: ${_}`);else if(_&&_ instanceof Object){let H=Object.keys(_);if(H.length===1)$=H[0],O=_[$];else throw TypeError(`Expected tuple with one key, not ${H.length} keys`)}else $=_;z.items.push(kt1.createPair($,O,K))}return z}var C73={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:$QA,createNode:OQA};I73.createPairs=OQA;I73.pairs=C73;I73.resolvePairs=$QA});var Lt1=h((g73)=>{var HQA=nY(),Et1=ma(),_C6=Qa(),m73=Ua(),jQA=DK1();class Iq6 extends m73.YAMLSeq{constructor(){super();this.add=_C6.YAMLMap.prototype.add.bind(this),this.delete=_C6.YAMLMap.prototype.delete.bind(this),this.get=_C6.YAMLMap.prototype.get.bind(this),this.has=_C6.YAMLMap.prototype.has.bind(this),this.set=_C6.YAMLMap.prototype.set.bind(this),this.tag=Iq6.tag}toJSON(A,q){if(!q)return super.toJSON(A);let K=new Map;if(q?.onCreate)q.onCreate(K);for(let Y of this.items){let z,w;if(HQA.isPair(Y))z=Et1.toJS(Y.key,"",q),w=Et1.toJS(Y.value,z,q);else z=Et1.toJS(Y,"",q);if(K.has(z))throw Error("Ordered maps must not include duplicate keys");K.set(z,w)}return K}static from(A,q,K){let Y=jQA.createPairs(A,q,K),z=new this;return z.items=Y.items,z}}Iq6.tag="tag:yaml.org,2002:omap";var B73={collection:"seq",identify:(A)=>A instanceof Map,nodeClass:Iq6,default:!1,tag:"tag:yaml.org,2002:omap",resolve(A,q){let K=jQA.resolvePairs(A,q),Y=[];for(let{key:z}of K.items)if(HQA.isScalar(z))if(Y.includes(z.value))q(`Ordered maps must not include duplicate keys: ${z.value}`);else Y.push(z.value);return Object.assign(new Iq6,K)},createNode:(A,q,K)=>Iq6.from(A,q,K)};g73.YAMLOMap=Iq6;g73.omap=B73});var PQA=h((Q73)=>{var JQA=$M();function MQA({value:A,source:q},K){if(q&&(A?DQA:XQA).test.test(q))return q;return A?K.options.trueStr:K.options.falseStr}var DQA={identify:(A)=>A===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new JQA.Scalar(!0),stringify:MQA},XQA={identify:(A)=>A===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new JQA.Scalar(!1),stringify:MQA};Q73.falseTag=XQA;Q73.trueTag=DQA});var WQA=h((r73)=>{var c73=$M(),yt1=UJ6(),l73={identify:(A)=>typeof A==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(A)=>A.slice(-3).toLowerCase()==="nan"?NaN:A[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:yt1.stringifyNumber},i73={identify:(A)=>typeof A==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:(A)=>parseFloat(A.replace(/_/g,"")),stringify(A){let q=Number(A.value);return isFinite(q)?q.toExponential():yt1.stringifyNumber(A)}},n73={identify:(A)=>typeof A==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(A){let q=new c73.Scalar(parseFloat(A.replace(/_/g,""))),K=A.indexOf(".");if(K!==-1){let Y=A.substring(K+1).replace(/_/g,"");if(Y[Y.length-1]==="0")q.minFractionDigits=Y.length}return q},stringify:yt1.stringifyNumber};r73.float=n73;r73.floatExp=i73;r73.floatNaN=l73});var ZQA=h((K43)=>{var GQA=UJ6(),$C6=(A)=>typeof A==="bigint"||Number.isInteger(A);function XK1(A,q,K,{intAsBigInt:Y}){let z=A[0];if(z==="-"||z==="+")q+=1;if(A=A.substring(q).replace(/_/g,""),Y){switch(K){case 2:A=`0b${A}`;break;case 8:A=`0o${A}`;break;case 16:A=`0x${A}`;break}let _=BigInt(A);return z==="-"?BigInt(-1)*_:_}let w=parseInt(A,K);return z==="-"?-1*w:w}function Rt1(A,q,K){let{value:Y}=A;if($C6(Y)){let z=Y.toString(q);return Y<0?"-"+K+z.substr(1):K+z}return GQA.stringifyNumber(A)}var t73={identify:$C6,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(A,q,K)=>XK1(A,2,2,K),stringify:(A)=>Rt1(A,2,"0b")},e73={identify:$C6,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(A,q,K)=>XK1(A,1,8,K),stringify:(A)=>Rt1(A,8,"0")},A43={identify:$C6,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(A,q,K)=>XK1(A,0,10,K),stringify:GQA.stringifyNumber},q43={identify:$C6,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(A,q,K)=>XK1(A,2,16,K),stringify:(A)=>Rt1(A,16,"0x")};K43.int=A43;K43.intBin=t73;K43.intHex=q43;K43.intOct=e73});var St1=h((O43)=>{var GK1=nY(),PK1=pa(),WK1=Qa();class xq6 extends WK1.YAMLMap{constructor(A){super(A);this.tag=xq6.tag}add(A){let q;if(GK1.isPair(A))q=A;else if(A&&typeof A==="object"&&"key"in A&&"value"in A&&A.value===null)q=new PK1.Pair(A.key,null);else q=new PK1.Pair(A,null);if(!WK1.findPair(this.items,q.key))this.items.push(q)}get(A,q){let K=WK1.findPair(this.items,A);return!q&&GK1.isPair(K)?GK1.isScalar(K.key)?K.key.value:K.key:K}set(A,q){if(typeof q!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof q}`);let K=WK1.findPair(this.items,A);if(K&&!q)this.items.splice(this.items.indexOf(K),1);else if(!K&&q)this.items.push(new PK1.Pair(A))}toJSON(A,q){return super.toJSON(A,q,Set)}toString(A,q,K){if(!A)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},A,{allNullValues:!0}),q,K);else throw Error("Set items must all have null values")}static from(A,q,K){let{replacer:Y}=K,z=new this(A);if(q&&Symbol.iterator in Object(q))for(let w of q){if(typeof Y==="function")w=Y.call(q,w,w);z.items.push(PK1.createPair(w,null,K))}return z}}xq6.tag="tag:yaml.org,2002:set";var $43={collection:"map",identify:(A)=>A instanceof Set,nodeClass:xq6,default:!1,tag:"tag:yaml.org,2002:set",createNode:(A,q,K)=>xq6.from(A,q,K),resolve(A,q){if(GK1.isMap(A))if(A.hasAllNullValues(!0))return Object.assign(new xq6,A);else q("Set items must all have null values");else q("Expected a mapping for this tag");return A}};O43.YAMLSet=xq6;O43.set=$43});var Ct1=h((X43)=>{var J43=UJ6();function ht1(A,q){let K=A[0],Y=K==="-"||K==="+"?A.substring(1):A,z=(_)=>q?BigInt(_):Number(_),w=Y.replace(/_/g,"").split(":").reduce((_,$)=>_*z(60)+z($),z(0));return K==="-"?z(-1)*w:w}function fQA(A){let{value:q}=A,K=(_)=>_;if(typeof q==="bigint")K=(_)=>BigInt(_);else if(isNaN(q)||!isFinite(q))return J43.stringifyNumber(A);let Y="";if(q<0)Y="-",q*=K(-1);let z=K(60),w=[q%z];if(q<60)w.unshift(0);else if(q=(q-w[0])/z,w.unshift(q%z),q>=60)q=(q-w[0])/z,w.unshift(q);return Y+w.map((_)=>String(_).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var M43={identify:(A)=>typeof A==="bigint"||Number.isInteger(A),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(A,q,{intAsBigInt:K})=>ht1(A,K),stringify:fQA},D43={identify:(A)=>typeof A==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:(A)=>ht1(A,!1),stringify:fQA},TQA={identify:(A)=>A instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(A){let q=A.match(TQA.test);if(!q)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,K,Y,z,w,_,$]=q.map(Number),O=q[7]?Number((q[7]+"00").substr(1,3)):0,H=Date.UTC(K,Y-1,z,w||0,_||0,$||0,O),j=q[8];if(j&&j!=="Z"){let J=ht1(j,!1);if(Math.abs(J)<30)J*=60;H-=60000*J}return new Date(H)},stringify:({value:A})=>A?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};X43.floatTime=D43;X43.intTime=M43;X43.timestamp=TQA});var VQA=h((R43)=>{var Z43=FJ6(),f43=HK1(),T43=QJ6(),v43=zC6(),V43=Nt1(),vQA=PQA(),It1=WQA(),ZK1=ZQA(),N43=qK1(),k43=Lt1(),E43=DK1(),L43=St1(),xt1=Ct1(),y43=[Z43.map,T43.seq,v43.string,f43.nullTag,vQA.trueTag,vQA.falseTag,ZK1.intBin,ZK1.intOct,ZK1.int,ZK1.intHex,It1.floatNaN,It1.floatExp,It1.float,V43.binary,N43.merge,k43.omap,E43.pairs,L43.set,xt1.intTime,xt1.floatTime,xt1.timestamp];R43.schema=y43});var IQA=h((B43)=>{var LQA=FJ6(),h43=HK1(),yQA=QJ6(),C43=zC6(),I43=Pt1(),bt1=Gt1(),ut1=ft1(),x43=zQA(),b43=_QA(),RQA=Nt1(),OC6=qK1(),SQA=Lt1(),hQA=DK1(),NQA=VQA(),CQA=St1(),fK1=Ct1(),kQA=new Map([["core",x43.schema],["failsafe",[LQA.map,yQA.seq,C43.string]],["json",b43.schema],["yaml11",NQA.schema],["yaml-1.1",NQA.schema]]),EQA={binary:RQA.binary,bool:I43.boolTag,float:bt1.float,floatExp:bt1.floatExp,floatNaN:bt1.floatNaN,floatTime:fK1.floatTime,int:ut1.int,intHex:ut1.intHex,intOct:ut1.intOct,intTime:fK1.intTime,map:LQA.map,merge:OC6.merge,null:h43.nullTag,omap:SQA.omap,pairs:hQA.pairs,seq:yQA.seq,set:CQA.set,timestamp:fK1.timestamp},u43={"tag:yaml.org,2002:binary":RQA.binary,"tag:yaml.org,2002:merge":OC6.merge,"tag:yaml.org,2002:omap":SQA.omap,"tag:yaml.org,2002:pairs":hQA.pairs,"tag:yaml.org,2002:set":CQA.set,"tag:yaml.org,2002:timestamp":fK1.timestamp};function m43(A,q,K){let Y=kQA.get(q);if(Y&&!A)return K&&!Y.includes(OC6.merge)?Y.concat(OC6.merge):Y.slice();let z=Y;if(!z)if(Array.isArray(A))z=[];else{let w=Array.from(kQA.keys()).filter((_)=>_!=="yaml11").map((_)=>JSON.stringify(_)).join(", ");throw Error(`Unknown schema "${q}"; use one of ${w} or define customTags array`)}if(Array.isArray(A))for(let w of A)z=z.concat(w);else if(typeof A==="function")z=A(z.slice());if(K)z=z.concat(OC6.merge);return z.reduce((w,_)=>{let $=typeof _==="string"?EQA[_]:_;if(!$){let O=JSON.stringify(_),H=Object.keys(EQA).map((j)=>JSON.stringify(j)).join(", ");throw Error(`Unknown custom tag ${O}; use one of ${H}`)}if(!w.includes($))w.push($);return w},[])}B43.coreKnownTags=u43;B43.getTags=m43});var gt1=h((c43)=>{var mt1=nY(),F43=FJ6(),Q43=QJ6(),U43=zC6(),TK1=IQA(),d43=(A,q)=>A.key<q.key?-1:A.key>q.key?1:0;class Bt1{constructor({compat:A,customTags:q,merge:K,resolveKnownTags:Y,schema:z,sortMapEntries:w,toStringDefaults:_}){this.compat=Array.isArray(A)?TK1.getTags(A,"compat"):A?TK1.getTags(null,A):null,this.name=typeof z==="string"&&z||"core",this.knownTags=Y?TK1.coreKnownTags:{},this.tags=TK1.getTags(q,this.name,K),this.toStringOptions=_??null,Object.defineProperty(this,mt1.MAP,{value:F43.map}),Object.defineProperty(this,mt1.SCALAR,{value:U43.string}),Object.defineProperty(this,mt1.SEQ,{value:Q43.seq}),this.sortMapEntries=typeof w==="function"?w:w===!0?d43:null}clone(){let A=Object.create(Bt1.prototype,Object.getOwnPropertyDescriptors(this));return A.tags=this.tags.slice(),A}}c43.Schema=Bt1});var xQA=h((r43)=>{var i43=nY(),pt1=AC6(),HC6=sh6();function n43(A,q){let K=[],Y=q.directives===!0;if(q.directives!==!1&&A.directives){let O=A.directives.toString(A);if(O)K.push(O),Y=!0;else if(A.directives.docStart)Y=!0}if(Y)K.push("---");let z=pt1.createStringifyContext(A,q),{commentString:w}=z.options;if(A.commentBefore){if(K.length!==1)K.unshift("");let O=w(A.commentBefore);K.unshift(HC6.indentComment(O,""))}let _=!1,$=null;if(A.contents){if(i43.isNode(A.contents)){if(A.contents.spaceBefore&&Y)K.push("");if(A.contents.commentBefore){let j=w(A.contents.commentBefore);K.push(HC6.indentComment(j,""))}z.forceBlockIndent=!!A.comment,$=A.contents.comment}let O=$?void 0:()=>_=!0,H=pt1.stringify(A.contents,z,()=>$=null,O);if($)H+=HC6.lineComment(H,"",w($));if((H[0]==="|"||H[0]===">")&&K[K.length-1]==="---")K[K.length-1]=`--- ${H}`;else K.push(H)}else K.push(pt1.stringify(A.contents,z));if(A.directives?.docEnd)if(A.comment){let O=w(A.comment);if(O.includes(`
`))K.push("..."),K.push(HC6.indentComment(O,""));else K.push(`... ${O}`)}else K.push("...");else{let O=A.comment;if(O&&_)O=O.replace(/^\n+/,"");if(O){if((!_||$)&&K[K.length-1]!=="")K.push("");K.push(HC6.indentComment(w(O),""))}}return K.join(`
`)+`
`}r43.stringifyDocument=n43});var jC6=h((Yq3)=>{var a43=oh6(),dJ6=oq1(),Ty=nY(),s43=pa(),t43=ma(),e43=gt1(),Aq3=xQA(),Ft1=iq1(),qq3=wt1(),Kq3=ah6(),Qt1=zt1();class Ut1{constructor(A,q,K){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Ty.NODE_TYPE,{value:Ty.DOC});let Y=null;if(typeof q==="function"||Array.isArray(q))Y=q;else if(K===void 0&&q)K=q,q=void 0;let z=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},K);this.options=z;let{version:w}=z;if(K?._directives){if(this.directives=K._directives.atDocument(),this.directives.yaml.explicit)w=this.directives.yaml.version}else this.directives=new Qt1.Directives({version:w});this.setSchema(w,K),this.contents=A===void 0?null:this.createNode(A,Y,K)}clone(){let A=Object.create(Ut1.prototype,{[Ty.NODE_TYPE]:{value:Ty.DOC}});if(A.commentBefore=this.commentBefore,A.comment=this.comment,A.errors=this.errors.slice(),A.warnings=this.warnings.slice(),A.options=Object.assign({},this.options),this.directives)A.directives=this.directives.clone();if(A.schema=this.schema.clone(),A.contents=Ty.isNode(this.contents)?this.contents.clone(A.schema):this.contents,this.range)A.range=this.range.slice();return A}add(A){if(cJ6(this.contents))this.contents.add(A)}addIn(A,q){if(cJ6(this.contents))this.contents.addIn(A,q)}createAlias(A,q){if(!A.anchor){let K=Ft1.anchorNames(this);A.anchor=!q||K.has(q)?Ft1.findNewAnchor(q||"a",K):q}return new a43.Alias(A.anchor)}createNode(A,q,K){let Y=void 0;if(typeof q==="function")A=q.call({"":A},"",A),Y=q;else if(Array.isArray(q)){let P=(G)=>typeof G==="number"||G instanceof String||G instanceof Number,W=q.filter(P).map(String);if(W.length>0)q=q.concat(W);Y=q}else if(K===void 0&&q)K=q,q=void 0;let{aliasDuplicateObjects:z,anchorPrefix:w,flow:_,keepUndefined:$,onTagObj:O,tag:H}=K??{},{onAnchor:j,setAnchors:J,sourceObjects:M}=Ft1.createNodeAnchors(this,w||"a"),D={aliasDuplicateObjects:z??!0,keepUndefined:$??!1,onAnchor:j,onTagObj:O,replacer:Y,schema:this.schema,sourceObjects:M},X=Kq3.createNode(A,H,D);if(_&&Ty.isCollection(X))X.flow=!0;return J(),X}createPair(A,q,K={}){let Y=this.createNode(A,null,K),z=this.createNode(q,null,K);return new s43.Pair(Y,z)}delete(A){return cJ6(this.contents)?this.contents.delete(A):!1}deleteIn(A){if(dJ6.isEmptyPath(A)){if(this.contents==null)return!1;return this.contents=null,!0}return cJ6(this.contents)?this.contents.deleteIn(A):!1}get(A,q){return Ty.isCollection(this.contents)?this.contents.get(A,q):void 0}getIn(A,q){if(dJ6.isEmptyPath(A))return!q&&Ty.isScalar(this.contents)?this.contents.value:this.contents;return Ty.isCollection(this.contents)?this.contents.getIn(A,q):void 0}has(A){return Ty.isCollection(this.contents)?this.contents.has(A):!1}hasIn(A){if(dJ6.isEmptyPath(A))return this.contents!==void 0;return Ty.isCollection(this.contents)?this.contents.hasIn(A):!1}set(A,q){if(this.contents==null)this.contents=dJ6.collectionFromPath(this.schema,[A],q);else if(cJ6(this.contents))this.contents.set(A,q)}setIn(A,q){if(dJ6.isEmptyPath(A))this.contents=q;else if(this.contents==null)this.contents=dJ6.collectionFromPath(this.schema,Array.from(A),q);else if(cJ6(this.contents))this.contents.setIn(A,q)}setSchema(A,q={}){if(typeof A==="number")A=String(A);let K;switch(A){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new Qt1.Directives({version:"1.1"});K={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=A;else this.directives=new Qt1.Directives({version:A});K={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;K=null;break;default:{let Y=JSON.stringify(A);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${Y}`)}}if(q.schema instanceof Object)this.schema=q.schema;else if(K)this.schema=new e43.Schema(Object.assign(K,q));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:A,jsonArg:q,mapAsMap:K,maxAliasCount:Y,onAnchor:z,reviver:w}={}){let _={anchors:new Map,doc:this,keep:!A,mapAsMap:K===!0,mapKeyWarned:!1,maxAliasCount:typeof Y==="number"?Y:100},$=t43.toJS(this.contents,q??"",_);if(typeof z==="function")for(let{count:O,res:H}of _.anchors.values())z(H,O);return typeof w==="function"?qq3.applyReviver(w,{"":$},"",$):$}toJSON(A,q){return this.toJS({json:!0,jsonArg:A,mapAsMap:!1,onAnchor:q})}toString(A={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in A&&(!Number.isInteger(A.indent)||Number(A.indent)<=0)){let q=JSON.stringify(A.indent);throw Error(`"indent" option must be a positive integer, not ${q}`)}return Aq3.stringifyDocument(this,A)}}function cJ6(A){if(Ty.isCollection(A))return!0;throw Error("Expected a YAML collection as document contents")}Yq3.Document=Ut1});var JC6=h((_q3)=>{class vK1 extends Error{constructor(A,q,K,Y){super();this.name=A,this.code=K,this.message=Y,this.pos=q}}class bQA extends vK1{constructor(A,q,K){super("YAMLParseError",A,q,K)}}class uQA extends vK1{constructor(A,q,K){super("YAMLWarning",A,q,K)}}var wq3=(A,q)=>(K)=>{if(K.pos[0]===-1)return;K.linePos=K.pos.map(($)=>q.linePos($));let{line:Y,col:z}=K.linePos[0];K.message+=` at line ${Y}, column ${z}`;let w=z-1,_=A.substring(q.lineStarts[Y-1],q.lineStarts[Y]).replace(/[\n\r]+$/,"");if(w>=60&&_.length>80){let $=Math.min(w-39,_.length-79);_="…"+_.substring($),w-=$-1}if(_.length>80)_=_.substring(0,79)+"…";if(Y>1&&/^ *$/.test(_.substring(0,w))){let $=A.substring(q.lineStarts[Y-2],q.lineStarts[Y-1]);if($.length>80)$=$.substring(0,79)+`…
`;_=$+_}if(/[^ ]/.test(_)){let $=1,O=K.linePos[1];if(O&&O.line===Y&&O.col>z)$=Math.max(1,Math.min(O.col-z,80-w));let H=" ".repeat(w)+"^".repeat($);K.message+=`:

${_}
${H}
`}};_q3.YAMLError=vK1;_q3.YAMLParseError=bQA;_q3.YAMLWarning=uQA;_q3.prettifyError=wq3});var MC6=h((Mq3)=>{function Jq3(A,{flow:q,indicator:K,next:Y,offset:z,onError:w,parentIndent:_,startOnNewline:$}){let O=!1,H=$,j=$,J="",M="",D=!1,X=!1,P=null,W=null,G=null,Z=null,f=null,v=null,V=null;for(let S of A){if(X){if(S.type!=="space"&&S.type!=="newline"&&S.type!=="comma")w(S.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");X=!1}if(P){if(H&&S.type!=="comment"&&S.type!=="newline")w(P,"TAB_AS_INDENT","Tabs are not allowed as indentation");P=null}switch(S.type){case"space":if(!q&&(K!=="doc-start"||Y?.type!=="flow-collection")&&S.source.includes("\t"))P=S;j=!0;break;case"comment":{if(!j)w(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let C=S.source.substring(1)||" ";if(!J)J=C;else J+=M+C;M="",H=!1;break}case"newline":if(H){if(J)J+=S.source;else if(!v||K!=="seq-item-ind")O=!0}else M+=S.source;if(H=!0,D=!0,W||G)Z=S;j=!0;break;case"anchor":if(W)w(S,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(S.source.endsWith(":"))w(S.offset+S.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0);W=S,V??(V=S.offset),H=!1,j=!1,X=!0;break;case"tag":{if(G)w(S,"MULTIPLE_TAGS","A node can have at most one tag");G=S,V??(V=S.offset),H=!1,j=!1,X=!0;break}case K:if(W||G)w(S,"BAD_PROP_ORDER",`Anchors and tags must be after the ${S.source} indicator`);if(v)w(S,"UNEXPECTED_TOKEN",`Unexpected ${S.source} in ${q??"collection"}`);v=S,H=K==="seq-item-ind"||K==="explicit-key-ind",j=!1;break;case"comma":if(q){if(f)w(S,"UNEXPECTED_TOKEN",`Unexpected , in ${q}`);f=S,H=!1,j=!1;break}default:w(S,"UNEXPECTED_TOKEN",`Unexpected ${S.type} token`),H=!1,j=!1}}let N=A[A.length-1],L=N?N.offset+N.source.length:z;if(X&&Y&&Y.type!=="space"&&Y.type!=="newline"&&Y.type!=="comma"&&(Y.type!=="scalar"||Y.source!==""))w(Y.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");if(P&&(H&&P.indent<=_||Y?.type==="block-map"||Y?.type==="block-seq"))w(P,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:f,found:v,spaceBefore:O,comment:J,hasNewline:D,anchor:W,tag:G,newlineAfterProp:Z,end:L,start:V??L}}Mq3.resolveProps=Jq3});var VK1=h((Xq3)=>{function dt1(A){if(!A)return null;switch(A.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(A.source.includes(`
`))return!0;if(A.end){for(let q of A.end)if(q.type==="newline")return!0}return!1;case"flow-collection":for(let q of A.items){for(let K of q.start)if(K.type==="newline")return!0;if(q.sep){for(let K of q.sep)if(K.type==="newline")return!0}if(dt1(q.key)||dt1(q.value))return!0}return!1;default:return!0}}Xq3.containsNewline=dt1});var ct1=h((Zq3)=>{var Wq3=VK1();function Gq3(A,q,K){if(q?.type==="flow-collection"){let Y=q.end[0];if(Y.indent===A&&(Y.source==="]"||Y.source==="}")&&Wq3.containsNewline(q))K(Y,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}Zq3.flowIndentCheck=Gq3});var lt1=h((vq3)=>{var mQA=nY();function Tq3(A,q,K){let{uniqueKeys:Y}=A.options;if(Y===!1)return!1;let z=typeof Y==="function"?Y:(w,_)=>w===_||mQA.isScalar(w)&&mQA.isScalar(_)&&w.value===_.value;return q.some((w)=>z(w.key,K))}vq3.mapIncludes=Tq3});var QQA=h((yq3)=>{var BQA=pa(),Nq3=Qa(),gQA=MC6(),kq3=VK1(),pQA=ct1(),Eq3=lt1(),FQA="All mapping items must start at the same column";function Lq3({composeNode:A,composeEmptyNode:q},K,Y,z,w){let $=new(w?.nodeClass??Nq3.YAMLMap)(K.schema);if(K.atRoot)K.atRoot=!1;let O=Y.offset,H=null;for(let j of Y.items){let{start:J,key:M,sep:D,value:X}=j,P=gQA.resolveProps(J,{indicator:"explicit-key-ind",next:M??D?.[0],offset:O,onError:z,parentIndent:Y.indent,startOnNewline:!0}),W=!P.found;if(W){if(M){if(M.type==="block-seq")z(O,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in M&&M.indent!==Y.indent)z(O,"BAD_INDENT",FQA)}if(!P.anchor&&!P.tag&&!D){if(H=P.end,P.comment)if($.comment)$.comment+=`
`+P.comment;else $.comment=P.comment;continue}if(P.newlineAfterProp||kq3.containsNewline(M))z(M??J[J.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else if(P.found?.indent!==Y.indent)z(O,"BAD_INDENT",FQA);K.atKey=!0;let G=P.end,Z=M?A(K,M,P,z):q(K,G,J,null,P,z);if(K.schema.compat)pQA.flowIndentCheck(Y.indent,M,z);if(K.atKey=!1,Eq3.mapIncludes(K,$.items,Z))z(G,"DUPLICATE_KEY","Map keys must be unique");let f=gQA.resolveProps(D??[],{indicator:"map-value-ind",next:X,offset:Z.range[2],onError:z,parentIndent:Y.indent,startOnNewline:!M||M.type==="block-scalar"});if(O=f.end,f.found){if(W){if(X?.type==="block-map"&&!f.hasNewline)z(O,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(K.options.strict&&P.start<f.found.offset-1024)z(Z.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}let v=X?A(K,X,f,z):q(K,O,D,null,f,z);if(K.schema.compat)pQA.flowIndentCheck(Y.indent,X,z);O=v.range[2];let V=new BQA.Pair(Z,v);if(K.options.keepSourceTokens)V.srcToken=j;$.items.push(V)}else{if(W)z(Z.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(f.comment)if(Z.comment)Z.comment+=`
`+f.comment;else Z.comment=f.comment;let v=new BQA.Pair(Z);if(K.options.keepSourceTokens)v.srcToken=j;$.items.push(v)}}if(H&&H<O)z(H,"IMPOSSIBLE","Map comment with trailing content");return $.range=[Y.offset,O,H??O],$}yq3.resolveBlockMap=Lq3});var UQA=h((xq3)=>{var Sq3=Ua(),hq3=MC6(),Cq3=ct1();function Iq3({composeNode:A,composeEmptyNode:q},K,Y,z,w){let $=new(w?.nodeClass??Sq3.YAMLSeq)(K.schema);if(K.atRoot)K.atRoot=!1;if(K.atKey)K.atKey=!1;let O=Y.offset,H=null;for(let{start:j,value:J}of Y.items){let M=hq3.resolveProps(j,{indicator:"seq-item-ind",next:J,offset:O,onError:z,parentIndent:Y.indent,startOnNewline:!0});if(!M.found)if(M.anchor||M.tag||J)if(J&&J.type==="block-seq")z(M.end,"BAD_INDENT","All sequence items must start at the same column");else z(O,"MISSING_CHAR","Sequence item without - indicator");else{if(H=M.end,M.comment)$.comment=M.comment;continue}let D=J?A(K,J,M,z):q(K,M.end,j,null,M,z);if(K.schema.compat)Cq3.flowIndentCheck(Y.indent,J,z);O=D.range[2],$.items.push(D)}return $.range=[Y.offset,O,H??O],$}xq3.resolveBlockSeq=Iq3});var lJ6=h((mq3)=>{function uq3(A,q,K,Y){let z="";if(A){let w=!1,_="";for(let $ of A){let{source:O,type:H}=$;switch(H){case"space":w=!0;break;case"comment":{if(K&&!w)Y($,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let j=O.substring(1)||" ";if(!z)z=j;else z+=_+j;_="";break}case"newline":if(z)_+=O;w=!0;break;default:Y($,"UNEXPECTED_TOKEN",`Unexpected ${H} at node end`)}q+=O.length}}return{comment:z,offset:q}}mq3.resolveEnd=uq3});var lQA=h((lq3)=>{var gq3=nY(),pq3=pa(),dQA=Qa(),Fq3=Ua(),Qq3=lJ6(),cQA=MC6(),Uq3=VK1(),dq3=lt1(),it1="Block collections are not allowed within flow collections",nt1=(A)=>A&&(A.type==="block-map"||A.type==="block-seq");function cq3({composeNode:A,composeEmptyNode:q},K,Y,z,w){let _=Y.start.source==="{",$=_?"flow map":"flow sequence",H=new(w?.nodeClass??(_?dQA.YAMLMap:Fq3.YAMLSeq))(K.schema);H.flow=!0;let j=K.atRoot;if(j)K.atRoot=!1;if(K.atKey)K.atKey=!1;let J=Y.offset+Y.start.source.length;for(let W=0;W<Y.items.length;++W){let G=Y.items[W],{start:Z,key:f,sep:v,value:V}=G,N=cQA.resolveProps(Z,{flow:$,indicator:"explicit-key-ind",next:f??v?.[0],offset:J,onError:z,parentIndent:Y.indent,startOnNewline:!1});if(!N.found){if(!N.anchor&&!N.tag&&!v&&!V){if(W===0&&N.comma)z(N.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${$}`);else if(W<Y.items.length-1)z(N.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${$}`);if(N.comment)if(H.comment)H.comment+=`
`+N.comment;else H.comment=N.comment;J=N.end;continue}if(!_&&K.options.strict&&Uq3.containsNewline(f))z(f,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(W===0){if(N.comma)z(N.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${$}`)}else{if(!N.comma)z(N.start,"MISSING_CHAR",`Missing , between ${$} items`);if(N.comment){let L="";A:for(let S of Z)switch(S.type){case"comma":case"space":break;case"comment":L=S.source.substring(1);break A;default:break A}if(L){let S=H.items[H.items.length-1];if(gq3.isPair(S))S=S.value??S.key;if(S.comment)S.comment+=`
`+L;else S.comment=L;N.comment=N.comment.substring(L.length+1)}}}if(!_&&!v&&!N.found){let L=V?A(K,V,N,z):q(K,N.end,v,null,N,z);if(H.items.push(L),J=L.range[2],nt1(V))z(L.range,"BLOCK_IN_FLOW",it1)}else{K.atKey=!0;let L=N.end,S=f?A(K,f,N,z):q(K,L,Z,null,N,z);if(nt1(f))z(S.range,"BLOCK_IN_FLOW",it1);K.atKey=!1;let C=cQA.resolveProps(v??[],{flow:$,indicator:"map-value-ind",next:V,offset:S.range[2],onError:z,parentIndent:Y.indent,startOnNewline:!1});if(C.found){if(!_&&!N.found&&K.options.strict){if(v)for(let p of v){if(p===C.found)break;if(p.type==="newline"){z(p,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(N.start<C.found.offset-1024)z(C.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(V)if("source"in V&&V.source&&V.source[0]===":")z(V,"MISSING_CHAR",`Missing space after : in ${$}`);else z(C.start,"MISSING_CHAR",`Missing , or : between ${$} items`);let m=V?A(K,V,C,z):C.found?q(K,C.end,v,null,C,z):null;if(m){if(nt1(V))z(m.range,"BLOCK_IN_FLOW",it1)}else if(C.comment)if(S.comment)S.comment+=`
`+C.comment;else S.comment=C.comment;let x=new pq3.Pair(S,m);if(K.options.keepSourceTokens)x.srcToken=G;if(_){let p=H;if(dq3.mapIncludes(K,p.items,S))z(L,"DUPLICATE_KEY","Map keys must be unique");p.items.push(x)}else{let p=new dQA.YAMLMap(K.schema);p.flow=!0,p.items.push(x);let g=(m??S).range;p.range=[S.range[0],g[1],g[2]],H.items.push(p)}J=m?m.range[2]:C.end}}let M=_?"}":"]",[D,...X]=Y.end,P=J;if(D&&D.source===M)P=D.offset+D.source.length;else{let W=$[0].toUpperCase()+$.substring(1),G=j?`${W} must end with a ${M}`:`${W} in block collection must be sufficiently indented and end with a ${M}`;if(z(J,j?"MISSING_CHAR":"BAD_INDENT",G),D&&D.source.length!==1)X.unshift(D)}if(X.length>0){let W=Qq3.resolveEnd(X,P,K.options.strict,z);if(W.comment)if(H.comment)H.comment+=`
`+W.comment;else H.comment=W.comment;H.range=[Y.offset,P,W.offset]}else H.range=[Y.offset,P,P];return H}lq3.resolveFlowCollection=cq3});var iQA=h((qK3)=>{var nq3=nY(),rq3=$M(),oq3=Qa(),aq3=Ua(),sq3=QQA(),tq3=UQA(),eq3=lQA();function rt1(A,q,K,Y,z,w){let _=K.type==="block-map"?sq3.resolveBlockMap(A,q,K,Y,w):K.type==="block-seq"?tq3.resolveBlockSeq(A,q,K,Y,w):eq3.resolveFlowCollection(A,q,K,Y,w),$=_.constructor;if(z==="!"||z===$.tagName)return _.tag=$.tagName,_;if(z)_.tag=z;return _}function AK3(A,q,K,Y,z){let w=Y.tag,_=!w?null:q.directives.tagName(w.source,(M)=>z(w,"TAG_RESOLVE_FAILED",M));if(K.type==="block-seq"){let{anchor:M,newlineAfterProp:D}=Y,X=M&&w?M.offset>w.offset?M:w:M??w;if(X&&(!D||D.offset<X.offset))z(X,"MISSING_CHAR","Missing newline after block sequence props")}let $=K.type==="block-map"?"map":K.type==="block-seq"?"seq":K.start.source==="{"?"map":"seq";if(!w||!_||_==="!"||_===oq3.YAMLMap.tagName&&$==="map"||_===aq3.YAMLSeq.tagName&&$==="seq")return rt1(A,q,K,z,_);let O=q.schema.tags.find((M)=>M.tag===_&&M.collection===$);if(!O){let M=q.schema.knownTags[_];if(M&&M.collection===$)q.schema.tags.push(Object.assign({},M,{default:!1})),O=M;else{if(M)z(w,"BAD_COLLECTION_TYPE",`${M.tag} used for ${$} collection, but expects ${M.collection??"scalar"}`,!0);else z(w,"TAG_RESOLVE_FAILED",`Unresolved tag: ${_}`,!0);return rt1(A,q,K,z,_)}}let H=rt1(A,q,K,z,_,O),j=O.resolve?.(H,(M)=>z(w,"TAG_RESOLVE_FAILED",M),q.options)??H,J=nq3.isNode(j)?j:new rq3.Scalar(j);if(J.range=H.range,J.tag=_,O?.format)J.format=O.format;return J}qK3.composeCollection=AK3});var at1=h((_K3)=>{var ot1=$M();function YK3(A,q,K){let Y=q.offset,z=zK3(q,A.options.strict,K);if(!z)return{value:"",type:null,comment:"",range:[Y,Y,Y]};let w=z.mode===">"?ot1.Scalar.BLOCK_FOLDED:ot1.Scalar.BLOCK_LITERAL,_=q.source?wK3(q.source):[],$=_.length;for(let P=_.length-1;P>=0;--P){let W=_[P][1];if(W===""||W==="\r")$=P;else break}if($===0){let P=z.chomp==="+"&&_.length>0?`
`.repeat(Math.max(1,_.length-1)):"",W=Y+z.length;if(q.source)W+=q.source.length;return{value:P,type:w,comment:z.comment,range:[Y,W,W]}}let O=q.indent+z.indent,H=q.offset+z.length,j=0;for(let P=0;P<$;++P){let[W,G]=_[P];if(G===""||G==="\r"){if(z.indent===0&&W.length>O)O=W.length}else{if(W.length<O)K(H+W.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator");if(z.indent===0)O=W.length;if(j=P,O===0&&!A.atRoot)K(H,"BAD_INDENT","Block scalar values in collections must be indented");break}H+=W.length+G.length+1}for(let P=_.length-1;P>=$;--P)if(_[P][0].length>O)$=P+1;let J="",M="",D=!1;for(let P=0;P<j;++P)J+=_[P][0].slice(O)+`
`;for(let P=j;P<$;++P){let[W,G]=_[P];H+=W.length+G.length+1;let Z=G[G.length-1]==="\r";if(Z)G=G.slice(0,-1);if(G&&W.length<O){let v=`Block scalar lines must not be less indented than their ${z.indent?"explicit indentation indicator":"first line"}`;K(H-G.length-(Z?2:1),"BAD_INDENT",v),W=""}if(w===ot1.Scalar.BLOCK_LITERAL)J+=M+W.slice(O)+G,M=`
`;else if(W.length>O||G[0]==="\t"){if(M===" ")M=`
`;else if(!D&&M===`
`)M=`

`;J+=M+W.slice(O)+G,M=`
`,D=!0}else if(G==="")if(M===`
`)J+=`
`;else M=`
`;else J+=M+G,M=" ",D=!1}switch(z.chomp){case"-":break;case"+":for(let P=$;P<_.length;++P)J+=`
`+_[P][0].slice(O);if(J[J.length-1]!==`
`)J+=`
`;break;default:J+=`
`}let X=Y+z.length+q.source.length;return{value:J,type:w,comment:z.comment,range:[Y,X,X]}}function zK3({offset:A,props:q},K,Y){if(q[0].type!=="block-scalar-header")return Y(q[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:z}=q[0],w=z[0],_=0,$="",O=-1;for(let M=1;M<z.length;++M){let D=z[M];if(!$&&(D==="-"||D==="+"))$=D;else{let X=Number(D);if(!_&&X)_=X;else if(O===-1)O=A+M}}if(O!==-1)Y(O,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${z}`);let H=!1,j="",J=z.length;for(let M=1;M<q.length;++M){let D=q[M];switch(D.type){case"space":H=!0;case"newline":J+=D.source.length;break;case"comment":if(K&&!H)Y(D,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");J+=D.source.length,j=D.source.substring(1);break;case"error":Y(D,"UNEXPECTED_TOKEN",D.message),J+=D.source.length;break;default:{let X=`Unexpected token in block scalar header: ${D.type}`;Y(D,"UNEXPECTED_TOKEN",X);let P=D.source;if(P&&typeof P==="string")J+=P.length}}}return{mode:w,indent:_,chomp:$,comment:j,length:J}}function wK3(A){let q=A.split(/\n( *)/),K=q[0],Y=K.match(/^( *)/),w=[Y?.[1]?[Y[1],K.slice(Y[1].length)]:["",K]];for(let _=1;_<q.length;_+=2)w.push([q[_],q[_+1]]);return w}_K3.resolveBlockScalar=YK3});var tt1=h((WK3)=>{var st1=$M(),OK3=lJ6();function HK3(A,q,K){let{offset:Y,type:z,source:w,end:_}=A,$,O,H=(M,D,X)=>K(Y+M,D,X);switch(z){case"scalar":$=st1.Scalar.PLAIN,O=jK3(w,H);break;case"single-quoted-scalar":$=st1.Scalar.QUOTE_SINGLE,O=JK3(w,H);break;case"double-quoted-scalar":$=st1.Scalar.QUOTE_DOUBLE,O=MK3(w,H);break;default:return K(A,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${z}`),{value:"",type:null,comment:"",range:[Y,Y+w.length,Y+w.length]}}let j=Y+w.length,J=OK3.resolveEnd(_,j,q,K);return{value:O,type:$,comment:J.comment,range:[Y,j,J.offset]}}function jK3(A,q){let K="";switch(A[0]){case"\t":K="a tab character";break;case",":K="flow indicator character ,";break;case"%":K="directive indicator character %";break;case"|":case">":{K=`block scalar indicator ${A[0]}`;break}case"@":case"`":{K=`reserved character ${A[0]}`;break}}if(K)q(0,"BAD_SCALAR_START",`Plain value cannot start with ${K}`);return nQA(A)}function JK3(A,q){if(A[A.length-1]!=="'"||A.length===1)q(A.length,"MISSING_CHAR","Missing closing 'quote");return nQA(A.slice(1,-1)).replace(/''/g,"'")}function nQA(A){let q,K;try{q=new RegExp(`(.*?)(?<![ 	])[ 	]*\r?
`,"sy"),K=new RegExp(`[ 	]*(.*?)(?:(?<![ 	])[ 	]*)?\r?
`,"sy")}catch{q=/(.*?)[ \t]*\r?\n/sy,K=/[ \t]*(.*?)[ \t]*\r?\n/sy}let Y=q.exec(A);if(!Y)return A;let z=Y[1],w=" ",_=q.lastIndex;K.lastIndex=_;while(Y=K.exec(A)){if(Y[1]==="")if(w===`
`)z+=w;else w=`
`;else z+=w+Y[1],w=" ";_=K.lastIndex}let $=/[ \t]*(.*)/sy;return $.lastIndex=_,Y=$.exec(A),z+w+(Y?.[1]??"")}function MK3(A,q){let K="";for(let Y=1;Y<A.length-1;++Y){let z=A[Y];if(z==="\r"&&A[Y+1]===`
`)continue;if(z===`
`){let{fold:w,offset:_}=DK3(A,Y);K+=w,Y=_}else if(z==="\\"){let w=A[++Y],_=XK3[w];if(_)K+=_;else if(w===`
`){w=A[Y+1];while(w===" "||w==="\t")w=A[++Y+1]}else if(w==="\r"&&A[Y+1]===`
`){w=A[++Y+1];while(w===" "||w==="\t")w=A[++Y+1]}else if(w==="x"||w==="u"||w==="U"){let $={x:2,u:4,U:8}[w];K+=PK3(A,Y+1,$,q),Y+=$}else{let $=A.substr(Y-1,2);q(Y-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${$}`),K+=$}}else if(z===" "||z==="\t"){let w=Y,_=A[Y+1];while(_===" "||_==="\t")_=A[++Y+1];if(_!==`
`&&!(_==="\r"&&A[Y+2]===`
`))K+=Y>w?A.slice(w,Y+1):z}else K+=z}if(A[A.length-1]!=='"'||A.length===1)q(A.length,"MISSING_CHAR",'Missing closing "quote');return K}function DK3(A,q){let K="",Y=A[q+1];while(Y===" "||Y==="\t"||Y===`
`||Y==="\r"){if(Y==="\r"&&A[q+2]!==`
`)break;if(Y===`
`)K+=`
`;q+=1,Y=A[q+1]}if(!K)K=" ";return{fold:K,offset:q}}var XK3={"0":"\x00",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
`,r:"\r",t:"\t",v:"\v",N:"",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function PK3(A,q,K,Y){let z=A.substr(q,K),_=z.length===K&&/^[0-9a-fA-F]+$/.test(z)?parseInt(z,16):NaN;if(isNaN(_)){let $=A.substr(q-2,K+2);return Y(q-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${$}`),$}return String.fromCodePoint(_)}WK3.resolveFlowScalar=HK3});var oQA=h((NK3)=>{var bq6=nY(),rQA=$M(),ZK3=at1(),fK3=tt1();function TK3(A,q,K,Y){let{value:z,type:w,comment:_,range:$}=q.type==="block-scalar"?ZK3.resolveBlockScalar(A,q,Y):fK3.resolveFlowScalar(q,A.options.strict,Y),O=K?A.directives.tagName(K.source,(J)=>Y(K,"TAG_RESOLVE_FAILED",J)):null,H;if(A.options.stringKeys&&A.atKey)H=A.schema[bq6.SCALAR];else if(O)H=vK3(A.schema,z,O,K,Y);else if(q.type==="scalar")H=VK3(A,z,q,Y);else H=A.schema[bq6.SCALAR];let j;try{let J=H.resolve(z,(M)=>Y(K??q,"TAG_RESOLVE_FAILED",M),A.options);j=bq6.isScalar(J)?J:new rQA.Scalar(J)}catch(J){let M=J instanceof Error?J.message:String(J);Y(K??q,"TAG_RESOLVE_FAILED",M),j=new rQA.Scalar(z)}if(j.range=$,j.source=z,w)j.type=w;if(O)j.tag=O;if(H.format)j.format=H.format;if(_)j.comment=_;return j}function vK3(A,q,K,Y,z){if(K==="!")return A[bq6.SCALAR];let w=[];for(let $ of A.tags)if(!$.collection&&$.tag===K)if($.default&&$.test)w.push($);else return $;for(let $ of w)if($.test?.test(q))return $;let _=A.knownTags[K];if(_&&!_.collection)return A.tags.push(Object.assign({},_,{default:!1,test:void 0})),_;return z(Y,"TAG_RESOLVE_FAILED",`Unresolved tag: ${K}`,K!=="tag:yaml.org,2002:str"),A[bq6.SCALAR]}function VK3({atKey:A,directives:q,schema:K},Y,z,w){let _=K.tags.find(($)=>($.default===!0||A&&$.default==="key")&&$.test?.test(Y))||K[bq6.SCALAR];if(K.compat){let $=K.compat.find((O)=>O.default&&O.test?.test(Y))??K[bq6.SCALAR];if(_.tag!==$.tag){let O=q.tagString(_.tag),H=q.tagString($.tag),j=`Value may be parsed as either ${O} or ${H}`;w(z,"TAG_RESOLVE_FAILED",j,!0)}}return _}NK3.composeScalar=TK3});var aQA=h((LK3)=>{function EK3(A,q,K){if(q){K??(K=q.length);for(let Y=K-1;Y>=0;--Y){let z=q[Y];switch(z.type){case"space":case"comment":case"newline":A-=z.source.length;continue}z=q[++Y];while(z?.type==="space")A+=z.source.length,z=q[++Y];break}}return A}LK3.emptyScalarPosition=EK3});var eQA=h((uK3)=>{var RK3=oh6(),SK3=nY(),hK3=iQA(),sQA=oQA(),CK3=lJ6(),IK3=aQA(),xK3={composeNode:tQA,composeEmptyNode:et1};function tQA(A,q,K,Y){let z=A.atKey,{spaceBefore:w,comment:_,anchor:$,tag:O}=K,H,j=!0;switch(q.type){case"alias":if(H=bK3(A,q,Y),$||O)Y(q,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":if(H=sQA.composeScalar(A,q,O,Y),$)H.anchor=$.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":if(H=hK3.composeCollection(xK3,A,q,K,Y),$)H.anchor=$.source.substring(1);break;default:{let J=q.type==="error"?q.message:`Unsupported token (type: ${q.type})`;Y(q,"UNEXPECTED_TOKEN",J),H=et1(A,q.offset,void 0,null,K,Y),j=!1}}if($&&H.anchor==="")Y($,"BAD_ALIAS","Anchor cannot be an empty string");if(z&&A.options.stringKeys&&(!SK3.isScalar(H)||typeof H.value!=="string"||H.tag&&H.tag!=="tag:yaml.org,2002:str"))Y(O??q,"NON_STRING_KEY","With stringKeys, all keys must be strings");if(w)H.spaceBefore=!0;if(_)if(q.type==="scalar"&&q.source==="")H.comment=_;else H.commentBefore=_;if(A.options.keepSourceTokens&&j)H.srcToken=q;return H}function et1(A,q,K,Y,{spaceBefore:z,comment:w,anchor:_,tag:$,end:O},H){let j={type:"scalar",offset:IK3.emptyScalarPosition(q,K,Y),indent:-1,source:""},J=sQA.composeScalar(A,j,$,H);if(_){if(J.anchor=_.source.substring(1),J.anchor==="")H(_,"BAD_ALIAS","Anchor cannot be an empty string")}if(z)J.spaceBefore=!0;if(w)J.comment=w,J.range[2]=O;return J}function bK3({options:A},{offset:q,source:K,end:Y},z){let w=new RK3.Alias(K.substring(1));if(w.source==="")z(q,"BAD_ALIAS","Alias cannot be an empty string");if(w.source.endsWith(":"))z(q+K.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let _=q+K.length,$=CK3.resolveEnd(Y,_,A.strict,z);if(w.range=[q,_,$.offset],$.comment)w.comment=$.comment;return w}uK3.composeEmptyNode=et1;uK3.composeNode=tQA});var qUA=h((UK3)=>{var gK3=jC6(),AUA=eQA(),pK3=lJ6(),FK3=MC6();function QK3(A,q,{offset:K,start:Y,value:z,end:w},_){let $=Object.assign({_directives:q},A),O=new gK3.Document(void 0,$),H={atKey:!1,atRoot:!0,directives:O.directives,options:O.options,schema:O.schema},j=FK3.resolveProps(Y,{indicator:"doc-start",next:z??w?.[0],offset:K,onError:_,parentIndent:0,startOnNewline:!0});if(j.found){if(O.directives.docStart=!0,z&&(z.type==="block-map"||z.type==="block-seq")&&!j.hasNewline)_(j.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}O.contents=z?AUA.composeNode(H,z,j,_):AUA.composeEmptyNode(H,j.end,Y,null,j,_);let J=O.contents.range[2],M=pK3.resolveEnd(w,J,!1,_);if(M.comment)O.comment=M.comment;return O.range=[K,J,M.offset],O}UK3.composeDoc=QK3});var Ae1=h((oK3)=>{var cK3=u6("process"),lK3=zt1(),iK3=jC6(),DC6=JC6(),KUA=nY(),nK3=qUA(),rK3=lJ6();function XC6(A){if(typeof A==="number")return[A,A+1];if(Array.isArray(A))return A.length===2?A:[A[0],A[1]];let{offset:q,source:K}=A;return[q,q+(typeof K==="string"?K.length:1)]}function YUA(A){let q="",K=!1,Y=!1;for(let z=0;z<A.length;++z){let w=A[z];switch(w[0]){case"#":q+=(q===""?"":Y?`

`:`
`)+(w.substring(1)||" "),K=!0,Y=!1;break;case"%":if(A[z+1]?.[0]!=="#")z+=1;K=!1;break;default:if(!K)Y=!0;K=!1}}return{comment:q,afterEmptyLine:Y}}class zUA{constructor(A={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(q,K,Y,z)=>{let w=XC6(q);if(z)this.warnings.push(new DC6.YAMLWarning(w,K,Y));else this.errors.push(new DC6.YAMLParseError(w,K,Y))},this.directives=new lK3.Directives({version:A.version||"1.2"}),this.options=A}decorate(A,q){let{comment:K,afterEmptyLine:Y}=YUA(this.prelude);if(K){let z=A.contents;if(q)A.comment=A.comment?`${A.comment}
${K}`:K;else if(Y||A.directives.docStart||!z)A.commentBefore=K;else if(KUA.isCollection(z)&&!z.flow&&z.items.length>0){let w=z.items[0];if(KUA.isPair(w))w=w.key;let _=w.commentBefore;w.commentBefore=_?`${K}
${_}`:K}else{let w=z.commentBefore;z.commentBefore=w?`${K}
${w}`:K}}if(q)Array.prototype.push.apply(A.errors,this.errors),Array.prototype.push.apply(A.warnings,this.warnings);else A.errors=this.errors,A.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:YUA(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(A,q=!1,K=-1){for(let Y of A)yield*this.next(Y);yield*this.end(q,K)}*next(A){if(cK3.env.LOG_STREAM)console.dir(A,{depth:null});switch(A.type){case"directive":this.directives.add(A.source,(q,K,Y)=>{let z=XC6(A);z[0]+=q,this.onError(z,"BAD_DIRECTIVE",K,Y)}),this.prelude.push(A.source),this.atDirectives=!0;break;case"document":{let q=nK3.composeDoc(this.options,this.directives,A,this.onError);if(this.atDirectives&&!q.directives.docStart)this.onError(A,"MISSING_CHAR","Missing directives-end/doc-start indicator line");if(this.decorate(q,!1),this.doc)yield this.doc;this.doc=q,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(A.source);break;case"error":{let q=A.source?`${A.message}: ${JSON.stringify(A.source)}`:A.message,K=new DC6.YAMLParseError(XC6(A),"UNEXPECTED_TOKEN",q);if(this.atDirectives||!this.doc)this.errors.push(K);else this.doc.errors.push(K);break}case"doc-end":{if(!this.doc){this.errors.push(new DC6.YAMLParseError(XC6(A),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let q=rK3.resolveEnd(A.end,A.offset+A.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),q.comment){let K=this.doc.comment;this.doc.comment=K?`${K}
${q.comment}`:q.comment}this.doc.range[2]=q.offset;break}default:this.errors.push(new DC6.YAMLParseError(XC6(A),"UNEXPECTED_TOKEN",`Unsupported token ${A.type}`))}}*end(A=!1,q=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(A){let K=Object.assign({_directives:this.directives},this.options),Y=new iK3.Document(void 0,K);if(this.atDirectives)this.onError(q,"MISSING_CHAR","Missing directives-end indicator line");Y.range=[0,q,q],this.decorate(Y,!1),yield Y}}}oK3.Composer=zUA});var $UA=h((z33)=>{var sK3=at1(),tK3=tt1(),eK3=JC6(),wUA=eh6();function A33(A,q=!0,K){if(A){let Y=(z,w,_)=>{let $=typeof z==="number"?z:Array.isArray(z)?z[0]:z.offset;if(K)K($,w,_);else throw new eK3.YAMLParseError([$,$+1],w,_)};switch(A.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return tK3.resolveFlowScalar(A,q,Y);case"block-scalar":return sK3.resolveBlockScalar({options:{strict:q}},A,Y)}}return null}function q33(A,q){let{implicitKey:K=!1,indent:Y,inFlow:z=!1,offset:w=-1,type:_="PLAIN"}=q,$=wUA.stringifyString({type:_,value:A},{implicitKey:K,indent:Y>0?" ".repeat(Y):"",inFlow:z,options:{blockQuote:!0,lineWidth:-1}}),O=q.end??[{type:"newline",offset:-1,indent:Y,source:`
`}];switch($[0]){case"|":case">":{let H=$.indexOf(`
`),j=$.substring(0,H),J=$.substring(H+1)+`
`,M=[{type:"block-scalar-header",offset:w,indent:Y,source:j}];if(!_UA(M,O))M.push({type:"newline",offset:-1,indent:Y,source:`
`});return{type:"block-scalar",offset:w,indent:Y,props:M,source:J}}case'"':return{type:"double-quoted-scalar",offset:w,indent:Y,source:$,end:O};case"'":return{type:"single-quoted-scalar",offset:w,indent:Y,source:$,end:O};default:return{type:"scalar",offset:w,indent:Y,source:$,end:O}}}function K33(A,q,K={}){let{afterKey:Y=!1,implicitKey:z=!1,inFlow:w=!1,type:_}=K,$="indent"in A?A.indent:null;if(Y&&typeof $==="number")$+=2;if(!_)switch(A.type){case"single-quoted-scalar":_="QUOTE_SINGLE";break;case"double-quoted-scalar":_="QUOTE_DOUBLE";break;case"block-scalar":{let H=A.props[0];if(H.type!=="block-scalar-header")throw Error("Invalid block scalar header");_=H.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:_="PLAIN"}let O=wUA.stringifyString({type:_,value:q},{implicitKey:z||$===null,indent:$!==null&&$>0?" ".repeat($):"",inFlow:w,options:{blockQuote:!0,lineWidth:-1}});switch(O[0]){case"|":case">":Y33(A,O);break;case'"':qe1(A,O,"double-quoted-scalar");break;case"'":qe1(A,O,"single-quoted-scalar");break;default:qe1(A,O,"scalar")}}function Y33(A,q){let K=q.indexOf(`
`),Y=q.substring(0,K),z=q.substring(K+1)+`
`;if(A.type==="block-scalar"){let w=A.props[0];if(w.type!=="block-scalar-header")throw Error("Invalid block scalar header");w.source=Y,A.source=z}else{let{offset:w}=A,_="indent"in A?A.indent:-1,$=[{type:"block-scalar-header",offset:w,indent:_,source:Y}];if(!_UA($,"end"in A?A.end:void 0))$.push({type:"newline",offset:-1,indent:_,source:`
`});for(let O of Object.keys(A))if(O!=="type"&&O!=="offset")delete A[O];Object.assign(A,{type:"block-scalar",indent:_,props:$,source:z})}}function _UA(A,q){if(q)for(let K of q)switch(K.type){case"space":case"comment":A.push(K);break;case"newline":return A.push(K),!0}return!1}function qe1(A,q,K){switch(A.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":A.type=K,A.source=q;break;case"block-scalar":{let Y=A.props.slice(1),z=q.length;if(A.props[0].type==="block-scalar-header")z-=A.props[0].source.length;for(let w of Y)w.offset+=z;delete A.props,Object.assign(A,{type:K,source:q,end:Y});break}case"block-map":case"block-seq":{let z={type:"newline",offset:A.offset+q.length,indent:A.indent,source:`
`};delete A.items,Object.assign(A,{type:K,source:q,end:[z]});break}default:{let Y="indent"in A?A.indent:-1,z="end"in A&&Array.isArray(A.end)?A.end.filter((w)=>w.type==="space"||w.type==="comment"||w.type==="newline"):[];for(let w of Object.keys(A))if(w!=="type"&&w!=="offset")delete A[w];Object.assign(A,{type:K,indent:Y,source:q,end:z})}}}z33.createScalarToken=q33;z33.resolveAsScalar=A33;z33.setScalarValue=K33});var OUA=h((H33)=>{var O33=(A)=>("type"in A)?kK1(A):NK1(A);function kK1(A){switch(A.type){case"block-scalar":{let q="";for(let K of A.props)q+=kK1(K);return q+A.source}case"block-map":case"block-seq":{let q="";for(let K of A.items)q+=NK1(K);return q}case"flow-collection":{let q=A.start.source;for(let K of A.items)q+=NK1(K);for(let K of A.end)q+=K.source;return q}case"document":{let q=NK1(A);if(A.end)for(let K of A.end)q+=K.source;return q}default:{let q=A.source;if("end"in A&&A.end)for(let K of A.end)q+=K.source;return q}}}function NK1({start:A,key:q,sep:K,value:Y}){let z="";for(let w of A)z+=w.source;if(q)z+=kK1(q);if(K)for(let w of K)z+=w.source;if(Y)z+=kK1(Y);return z}H33.stringify=O33});var JUA=h((M33)=>{var Ke1=Symbol("break visit"),J33=Symbol("skip children"),HUA=Symbol("remove item");function uq6(A,q){if("type"in A&&A.type==="document")A={start:A.start,value:A.value};jUA(Object.freeze([]),A,q)}uq6.BREAK=Ke1;uq6.SKIP=J33;uq6.REMOVE=HUA;uq6.itemAtPath=(A,q)=>{let K=A;for(let[Y,z]of q){let w=K?.[Y];if(w&&"items"in w)K=w.items[z];else return}return K};uq6.parentCollection=(A,q)=>{let K=uq6.itemAtPath(A,q.slice(0,-1)),Y=q[q.length-1][0],z=K?.[Y];if(z&&"items"in z)return z;throw Error("Parent collection not found")};function jUA(A,q,K){let Y=K(q,A);if(typeof Y==="symbol")return Y;for(let z of["key","value"]){let w=q[z];if(w&&"items"in w){for(let _=0;_<w.items.length;++_){let $=jUA(Object.freeze(A.concat([[z,_]])),w.items[_],K);if(typeof $==="number")_=$-1;else if($===Ke1)return Ke1;else if($===HUA)w.items.splice(_,1),_-=1}if(typeof Y==="function"&&z==="key")Y=Y(q,A)}}return typeof Y==="function"?Y(q,A):Y}M33.visit=uq6});var EK1=h((T33)=>{var Ye1=$UA(),X33=OUA(),P33=JUA(),ze1="\uFEFF",we1="\x02",_e1="\x18",$e1="\x1F",W33=(A)=>!!A&&("items"in A),G33=(A)=>!!A&&(A.type==="scalar"||A.type==="single-quoted-scalar"||A.type==="double-quoted-scalar"||A.type==="block-scalar");function Z33(A){switch(A){case ze1:return"<BOM>";case we1:return"<DOC>";case _e1:return"<FLOW_END>";case $e1:return"<SCALAR>";default:return JSON.stringify(A)}}function f33(A){switch(A){case ze1:return"byte-order-mark";case we1:return"doc-mode";case _e1:return"flow-error-end";case $e1:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
`:case`\r
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(A[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}T33.createScalarToken=Ye1.createScalarToken;T33.resolveAsScalar=Ye1.resolveAsScalar;T33.setScalarValue=Ye1.setScalarValue;T33.stringify=X33.stringify;T33.visit=P33.visit;T33.BOM=ze1;T33.DOCUMENT=we1;T33.FLOW_END=_e1;T33.SCALAR=$e1;T33.isCollection=W33;T33.isScalar=G33;T33.prettyToken=Z33;T33.tokenType=f33});var He1=h((m33)=>{var PC6=EK1();function pC(A){switch(A){case void 0:case" ":case`
`:case"\r":case"\t":return!0;default:return!1}}var MUA=new Set("0123456789ABCDEFabcdef"),b33=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),LK1=new Set(",[]{}"),u33=new Set(` ,[]{}
\r	`),Oe1=(A)=>!A||u33.has(A);class DUA{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(A,q=!1){if(A){if(typeof A!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+A:A,this.lineEndPos=null}this.atEnd=!q;let K=this.next??"stream";while(K&&(q||this.hasChars(1)))K=yield*this.parseNext(K)}atLineEnd(){let A=this.pos,q=this.buffer[A];while(q===" "||q==="\t")q=this.buffer[++A];if(!q||q==="#"||q===`
`)return!0;if(q==="\r")return this.buffer[A+1]===`
`;return!1}charAt(A){return this.buffer[this.pos+A]}continueScalar(A){let q=this.buffer[A];if(this.indentNext>0){let K=0;while(q===" ")q=this.buffer[++K+A];if(q==="\r"){let Y=this.buffer[K+A+1];if(Y===`
`||!Y&&!this.atEnd)return A+K+1}return q===`
`||K>=this.indentNext||!q&&!this.atEnd?A+K:-1}if(q==="-"||q==="."){let K=this.buffer.substr(A,3);if((K==="---"||K==="...")&&pC(this.buffer[A+3]))return-1}return A}getLine(){let A=this.lineEndPos;if(typeof A!=="number"||A!==-1&&A<this.pos)A=this.buffer.indexOf(`
`,this.pos),this.lineEndPos=A;if(A===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[A-1]==="\r")A-=1;return this.buffer.substring(this.pos,A)}hasChars(A){return this.pos+A<=this.buffer.length}setNext(A){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=A,null}peek(A){return this.buffer.substr(this.pos,A)}*parseNext(A){switch(A){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let A=this.getLine();if(A===null)return this.setNext("stream");if(A[0]===PC6.BOM)yield*this.pushCount(1),A=A.substring(1);if(A[0]==="%"){let q=A.length,K=A.indexOf("#");while(K!==-1){let z=A[K-1];if(z===" "||z==="\t"){q=K-1;break}else K=A.indexOf("#",K+1)}while(!0){let z=A[q-1];if(z===" "||z==="\t")q-=1;else break}let Y=(yield*this.pushCount(q))+(yield*this.pushSpaces(!0));return yield*this.pushCount(A.length-Y),this.pushNewline(),"stream"}if(this.atLineEnd()){let q=yield*this.pushSpaces(!0);return yield*this.pushCount(A.length-q),yield*this.pushNewline(),"stream"}return yield PC6.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let A=this.charAt(0);if(!A&&!this.atEnd)return this.setNext("line-start");if(A==="-"||A==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let q=this.peek(3);if((q==="---"||q==="...")&&pC(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,q==="---"?"doc":"stream"}if(this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!pC(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){let[A,q]=this.peek(2);if(!q&&!this.atEnd)return this.setNext("block-start");if((A==="-"||A==="?"||A===":")&&pC(q)){let K=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=K,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let A=this.getLine();if(A===null)return this.setNext("doc");let q=yield*this.pushIndicators();switch(A[q]){case"#":yield*this.pushCount(A.length-q);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Oe1),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return q+=yield*this.parseBlockScalarHeader(),q+=yield*this.pushSpaces(!0),yield*this.pushCount(A.length-q),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let A,q,K=-1;do{if(A=yield*this.pushNewline(),A>0)q=yield*this.pushSpaces(!1),this.indentValue=K=q;else q=0;q+=yield*this.pushSpaces(!0)}while(A+q>0);let Y=this.getLine();if(Y===null)return this.setNext("flow");if(K!==-1&&K<this.indentNext&&Y[0]!=="#"||K===0&&(Y.startsWith("---")||Y.startsWith("..."))&&pC(Y[3])){if(!(K===this.indentNext-1&&this.flowLevel===1&&(Y[0]==="]"||Y[0]==="}")))return this.flowLevel=0,yield PC6.FLOW_END,yield*this.parseLineStart()}let z=0;while(Y[z]===",")z+=yield*this.pushCount(1),z+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(z+=yield*this.pushIndicators(),Y[z]){case void 0:return"flow";case"#":return yield*this.pushCount(Y.length-z),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Oe1),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let w=this.charAt(1);if(this.flowKey||pC(w)||w===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let A=this.charAt(0),q=this.buffer.indexOf(A,this.pos+1);if(A==="'")while(q!==-1&&this.buffer[q+1]==="'")q=this.buffer.indexOf("'",q+2);else while(q!==-1){let z=0;while(this.buffer[q-1-z]==="\\")z+=1;if(z%2===0)break;q=this.buffer.indexOf('"',q+1)}let K=this.buffer.substring(0,q),Y=K.indexOf(`
`,this.pos);if(Y!==-1){while(Y!==-1){let z=this.continueScalar(Y+1);if(z===-1)break;Y=K.indexOf(`
`,z)}if(Y!==-1)q=Y-(K[Y-1]==="\r"?2:1)}if(q===-1){if(!this.atEnd)return this.setNext("quoted-scalar");q=this.buffer.length}return yield*this.pushToIndex(q+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let A=this.pos;while(!0){let q=this.buffer[++A];if(q==="+")this.blockScalarKeep=!0;else if(q>"0"&&q<="9")this.blockScalarIndent=Number(q)-1;else if(q!=="-")break}return yield*this.pushUntil((q)=>pC(q)||q==="#")}*parseBlockScalar(){let A=this.pos-1,q=0,K;A:for(let z=this.pos;K=this.buffer[z];++z)switch(K){case" ":q+=1;break;case`
`:A=z,q=0;break;case"\r":{let w=this.buffer[z+1];if(!w&&!this.atEnd)return this.setNext("block-scalar");if(w===`
`)break}default:break A}if(!K&&!this.atEnd)return this.setNext("block-scalar");if(q>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=q;else this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let z=this.continueScalar(A+1);if(z===-1)break;A=this.buffer.indexOf(`
`,z)}while(A!==-1);if(A===-1){if(!this.atEnd)return this.setNext("block-scalar");A=this.buffer.length}}let Y=A+1;K=this.buffer[Y];while(K===" ")K=this.buffer[++Y];if(K==="\t"){while(K==="\t"||K===" "||K==="\r"||K===`
`)K=this.buffer[++Y];A=Y-1}else if(!this.blockScalarKeep)do{let z=A-1,w=this.buffer[z];if(w==="\r")w=this.buffer[--z];let _=z;while(w===" ")w=this.buffer[--z];if(w===`
`&&z>=this.pos&&z+1+q>_)A=z;else break}while(!0);return yield PC6.SCALAR,yield*this.pushToIndex(A+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let A=this.flowLevel>0,q=this.pos-1,K=this.pos-1,Y;while(Y=this.buffer[++K])if(Y===":"){let z=this.buffer[K+1];if(pC(z)||A&&LK1.has(z))break;q=K}else if(pC(Y)){let z=this.buffer[K+1];if(Y==="\r")if(z===`
`)K+=1,Y=`
`,z=this.buffer[K+1];else q=K;if(z==="#"||A&&LK1.has(z))break;if(Y===`
`){let w=this.continueScalar(K+1);if(w===-1)break;K=Math.max(K,w-2)}}else{if(A&&LK1.has(Y))break;q=K}if(!Y&&!this.atEnd)return this.setNext("plain-scalar");return yield PC6.SCALAR,yield*this.pushToIndex(q+1,!0),A?"flow":"doc"}*pushCount(A){if(A>0)return yield this.buffer.substr(this.pos,A),this.pos+=A,A;return 0}*pushToIndex(A,q){let K=this.buffer.slice(this.pos,A);if(K)return yield K,this.pos+=K.length,K.length;else if(q)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Oe1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let A=this.flowLevel>0,q=this.charAt(1);if(pC(q)||A&&LK1.has(q)){if(!A)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=!1;return(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let A=this.pos+2,q=this.buffer[A];while(!pC(q)&&q!==">")q=this.buffer[++A];return yield*this.pushToIndex(q===">"?A+1:A,!1)}else{let A=this.pos+1,q=this.buffer[A];while(q)if(b33.has(q))q=this.buffer[++A];else if(q==="%"&&MUA.has(this.buffer[A+1])&&MUA.has(this.buffer[A+2]))q=this.buffer[A+=3];else break;return yield*this.pushToIndex(A,!1)}}*pushNewline(){let A=this.buffer[this.pos];if(A===`
`)return yield*this.pushCount(1);else if(A==="\r"&&this.charAt(1)===`
`)return yield*this.pushCount(2);else return 0}*pushSpaces(A){let q=this.pos-1,K;do K=this.buffer[++q];while(K===" "||A&&K==="\t");let Y=q-this.pos;if(Y>0)yield this.buffer.substr(this.pos,Y),this.pos=q;return Y}*pushUntil(A){let q=this.pos,K=this.buffer[q];while(!A(K))K=this.buffer[++q];return yield*this.pushToIndex(q,!1)}}m33.Lexer=DUA});var je1=h((g33)=>{class XUA{constructor(){this.lineStarts=[],this.addNewLine=(A)=>this.lineStarts.push(A),this.linePos=(A)=>{let q=0,K=this.lineStarts.length;while(q<K){let z=q+K>>1;if(this.lineStarts[z]<A)q=z+1;else K=z}if(this.lineStarts[q]===A)return{line:q+1,col:1};if(q===0)return{line:0,col:A};let Y=this.lineStarts[q-1];return{line:q,col:A-Y+1}}}}g33.LineCounter=XUA});var Je1=h((U33)=>{var F33=u6("process"),PUA=EK1(),Q33=He1();function da(A,q){for(let K=0;K<A.length;++K)if(A[K].type===q)return!0;return!1}function WUA(A){for(let q=0;q<A.length;++q)switch(A[q].type){case"space":case"comment":case"newline":break;default:return q}return-1}function ZUA(A){switch(A?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function yK1(A){switch(A.type){case"document":return A.start;case"block-map":{let q=A.items[A.items.length-1];return q.sep??q.start}case"block-seq":return A.items[A.items.length-1].start;default:return[]}}function iJ6(A){if(A.length===0)return[];let q=A.length;A:while(--q>=0)switch(A[q].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break A}while(A[++q]?.type==="space");return A.splice(q,A.length)}function GUA(A){if(A.start.type==="flow-seq-start"){for(let q of A.items)if(q.sep&&!q.value&&!da(q.start,"explicit-key-ind")&&!da(q.sep,"map-value-ind")){if(q.key)q.value=q.key;if(delete q.key,ZUA(q.value))if(q.value.end)Array.prototype.push.apply(q.value.end,q.sep);else q.value.end=q.sep;else Array.prototype.push.apply(q.start,q.sep);delete q.sep}}}class fUA{constructor(A){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Q33.Lexer,this.onNewLine=A}*parse(A,q=!1){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(let K of this.lexer.lex(A,q))yield*this.next(K);if(!q)yield*this.end()}*next(A){if(this.source=A,F33.env.LOG_TOKENS)console.log("|",PUA.prettyToken(A));if(this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=A.length;return}let q=PUA.tokenType(A);if(!q){let K=`Not a YAML token: ${A}`;yield*this.pop({type:"error",offset:this.offset,message:K,source:A}),this.offset+=A.length}else if(q==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=q,yield*this.step(),q){case"newline":if(this.atNewLine=!0,this.indent=0,this.onNewLine)this.onNewLine(this.offset+A.length);break;case"space":if(this.atNewLine&&A[0]===" ")this.indent+=A.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=A.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=A.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let A=this.peek(1);if(this.type==="doc-end"&&(!A||A.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!A)return yield*this.stream();switch(A.type){case"document":return yield*this.document(A);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(A);case"block-scalar":return yield*this.blockScalar(A);case"block-map":return yield*this.blockMap(A);case"block-seq":return yield*this.blockSequence(A);case"flow-collection":return yield*this.flowCollection(A);case"doc-end":return yield*this.documentEnd(A)}yield*this.pop()}peek(A){return this.stack[this.stack.length-A]}*pop(A){let q=A??this.stack.pop();if(!q)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield q;else{let K=this.peek(1);if(q.type==="block-scalar")q.indent="indent"in K?K.indent:0;else if(q.type==="flow-collection"&&K.type==="document")q.indent=0;if(q.type==="flow-collection")GUA(q);switch(K.type){case"document":K.value=q;break;case"block-scalar":K.props.push(q);break;case"block-map":{let Y=K.items[K.items.length-1];if(Y.value){K.items.push({start:[],key:q,sep:[]}),this.onKeyLine=!0;return}else if(Y.sep)Y.value=q;else{Object.assign(Y,{key:q,sep:[]}),this.onKeyLine=!Y.explicitKey;return}break}case"block-seq":{let Y=K.items[K.items.length-1];if(Y.value)K.items.push({start:[],value:q});else Y.value=q;break}case"flow-collection":{let Y=K.items[K.items.length-1];if(!Y||Y.value)K.items.push({start:[],key:q,sep:[]});else if(Y.sep)Y.value=q;else Object.assign(Y,{key:q,sep:[]});return}default:yield*this.pop(),yield*this.pop(q)}if((K.type==="document"||K.type==="block-map"||K.type==="block-seq")&&(q.type==="block-map"||q.type==="block-seq")){let Y=q.items[q.items.length-1];if(Y&&!Y.sep&&!Y.value&&Y.start.length>0&&WUA(Y.start)===-1&&(q.indent===0||Y.start.every((z)=>z.type!=="comment"||z.indent<q.indent))){if(K.type==="document")K.end=Y.start;else K.items.push({start:Y.start});q.items.splice(-1,1)}}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let A={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")A.start.push(this.sourceToken);this.stack.push(A);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(A){if(A.value)return yield*this.lineEnd(A);switch(this.type){case"doc-start":{if(WUA(A.start)!==-1)yield*this.pop(),yield*this.step();else A.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":A.start.push(this.sourceToken);return}let q=this.startBlockValue(A);if(q)this.stack.push(q);else yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(A){if(this.type==="map-value-ind"){let q=yK1(this.peek(2)),K=iJ6(q),Y;if(A.end)Y=A.end,Y.push(this.sourceToken),delete A.end;else Y=[this.sourceToken];let z={type:"block-map",offset:A.offset,indent:A.indent,items:[{start:K,key:A,sep:Y}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=z}else yield*this.lineEnd(A)}*blockScalar(A){switch(this.type){case"space":case"comment":case"newline":A.props.push(this.sourceToken);return;case"scalar":if(A.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let q=this.source.indexOf(`
`)+1;while(q!==0)this.onNewLine(this.offset+q),q=this.source.indexOf(`
`,q)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(A){let q=A.items[A.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,q.value){let K="end"in q.value?q.value.end:void 0;if((Array.isArray(K)?K[K.length-1]:void 0)?.type==="comment")K?.push(this.sourceToken);else A.items.push({start:[this.sourceToken]})}else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"space":case"comment":if(q.value)A.items.push({start:[this.sourceToken]});else if(q.sep)q.sep.push(this.sourceToken);else{if(this.atIndentedComment(q.start,A.indent)){let Y=A.items[A.items.length-2]?.value?.end;if(Array.isArray(Y)){Array.prototype.push.apply(Y,q.start),Y.push(this.sourceToken),A.items.pop();return}}q.start.push(this.sourceToken)}return}if(this.indent>=A.indent){let K=!this.onKeyLine&&this.indent===A.indent,Y=K&&(q.sep||q.explicitKey)&&this.type!=="seq-item-ind",z=[];if(Y&&q.sep&&!q.value){let w=[];for(let _=0;_<q.sep.length;++_){let $=q.sep[_];switch($.type){case"newline":w.push(_);break;case"space":break;case"comment":if($.indent>A.indent)w.length=0;break;default:w.length=0}}if(w.length>=2)z=q.sep.splice(w[1])}switch(this.type){case"anchor":case"tag":if(Y||q.value)z.push(this.sourceToken),A.items.push({start:z}),this.onKeyLine=!0;else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"explicit-key-ind":if(!q.sep&&!q.explicitKey)q.start.push(this.sourceToken),q.explicitKey=!0;else if(Y||q.value)z.push(this.sourceToken),A.items.push({start:z,explicitKey:!0});else this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]});this.onKeyLine=!0;return;case"map-value-ind":if(q.explicitKey)if(!q.sep)if(da(q.start,"newline"))Object.assign(q,{key:null,sep:[this.sourceToken]});else{let w=iJ6(q.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:w,key:null,sep:[this.sourceToken]}]})}else if(q.value)A.items.push({start:[],key:null,sep:[this.sourceToken]});else if(da(q.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:z,key:null,sep:[this.sourceToken]}]});else if(ZUA(q.key)&&!da(q.sep,"newline")){let w=iJ6(q.start),_=q.key,$=q.sep;$.push(this.sourceToken),delete q.key,delete q.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:w,key:_,sep:$}]})}else if(z.length>0)q.sep=q.sep.concat(z,this.sourceToken);else q.sep.push(this.sourceToken);else if(!q.sep)Object.assign(q,{key:null,sep:[this.sourceToken]});else if(q.value||Y)A.items.push({start:z,key:null,sep:[this.sourceToken]});else if(da(q.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else q.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let w=this.flowScalar(this.type);if(Y||q.value)A.items.push({start:z,key:w,sep:[]}),this.onKeyLine=!0;else if(q.sep)this.stack.push(w);else Object.assign(q,{key:w,sep:[]}),this.onKeyLine=!0;return}default:{let w=this.startBlockValue(A);if(w){if(w.type==="block-seq"){if(!q.explicitKey&&q.sep&&!da(q.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if(K)A.items.push({start:z});this.stack.push(w);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(A){let q=A.items[A.items.length-1];switch(this.type){case"newline":if(q.value){let K="end"in q.value?q.value.end:void 0;if((Array.isArray(K)?K[K.length-1]:void 0)?.type==="comment")K?.push(this.sourceToken);else A.items.push({start:[this.sourceToken]})}else q.start.push(this.sourceToken);return;case"space":case"comment":if(q.value)A.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(q.start,A.indent)){let Y=A.items[A.items.length-2]?.value?.end;if(Array.isArray(Y)){Array.prototype.push.apply(Y,q.start),Y.push(this.sourceToken),A.items.pop();return}}q.start.push(this.sourceToken)}return;case"anchor":case"tag":if(q.value||this.indent<=A.indent)break;q.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==A.indent)break;if(q.value||da(q.start,"seq-item-ind"))A.items.push({start:[this.sourceToken]});else q.start.push(this.sourceToken);return}if(this.indent>A.indent){let K=this.startBlockValue(A);if(K){this.stack.push(K);return}}yield*this.pop(),yield*this.step()}*flowCollection(A){let q=A.items[A.items.length-1];if(this.type==="flow-error-end"){let K;do yield*this.pop(),K=this.peek(1);while(K&&K.type==="flow-collection")}else if(A.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!q||q.sep)A.items.push({start:[this.sourceToken]});else q.start.push(this.sourceToken);return;case"map-value-ind":if(!q||q.value)A.items.push({start:[],key:null,sep:[this.sourceToken]});else if(q.sep)q.sep.push(this.sourceToken);else Object.assign(q,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!q||q.value)A.items.push({start:[this.sourceToken]});else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let Y=this.flowScalar(this.type);if(!q||q.value)A.items.push({start:[],key:Y,sep:[]});else if(q.sep)this.stack.push(Y);else Object.assign(q,{key:Y,sep:[]});return}case"flow-map-end":case"flow-seq-end":A.end.push(this.sourceToken);return}let K=this.startBlockValue(A);if(K)this.stack.push(K);else yield*this.pop(),yield*this.step()}else{let K=this.peek(2);if(K.type==="block-map"&&(this.type==="map-value-ind"&&K.indent===A.indent||this.type==="newline"&&!K.items[K.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&K.type!=="flow-collection"){let Y=yK1(K),z=iJ6(Y);GUA(A);let w=A.end.splice(1,A.end.length);w.push(this.sourceToken);let _={type:"block-map",offset:A.offset,indent:A.indent,items:[{start:z,key:A,sep:w}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=_}else yield*this.lineEnd(A)}}flowScalar(A){if(this.onNewLine){let q=this.source.indexOf(`
`)+1;while(q!==0)this.onNewLine(this.offset+q),q=this.source.indexOf(`
`,q)+1}return{type:A,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(A){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let q=yK1(A),K=iJ6(q);return K.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:K,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let q=yK1(A),K=iJ6(q);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:K,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(A,q){if(this.type!=="comment")return!1;if(this.indent<=q)return!1;return A.every((K)=>K.type==="newline"||K.type==="space")}*documentEnd(A){if(this.type!=="doc-mode"){if(A.end)A.end.push(this.sourceToken);else A.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(A){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:if(A.end)A.end.push(this.sourceToken);else A.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}U33.Parser=fUA});var kUA=h((s33)=>{var TUA=Ae1(),c33=jC6(),WC6=JC6(),l33=jt1(),i33=nY(),n33=je1(),vUA=Je1();function VUA(A){let q=A.prettyErrors!==!1;return{lineCounter:A.lineCounter||q&&new n33.LineCounter||null,prettyErrors:q}}function r33(A,q={}){let{lineCounter:K,prettyErrors:Y}=VUA(q),z=new vUA.Parser(K?.addNewLine),w=new TUA.Composer(q),_=Array.from(w.compose(z.parse(A)));if(Y&&K)for(let $ of _)$.errors.forEach(WC6.prettifyError(A,K)),$.warnings.forEach(WC6.prettifyError(A,K));if(_.length>0)return _;return Object.assign([],{empty:!0},w.streamInfo())}function NUA(A,q={}){let{lineCounter:K,prettyErrors:Y}=VUA(q),z=new vUA.Parser(K?.addNewLine),w=new TUA.Composer(q),_=null;for(let $ of w.compose(z.parse(A),!0,A.length))if(!_)_=$;else if(_.options.logLevel!=="silent"){_.errors.push(new WC6.YAMLParseError($.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(Y&&K)_.errors.forEach(WC6.prettifyError(A,K)),_.warnings.forEach(WC6.prettifyError(A,K));return _}function o33(A,q,K){let Y=void 0;if(typeof q==="function")Y=q;else if(K===void 0&&q&&typeof q==="object")K=q;let z=NUA(A,K);if(!z)return null;if(z.warnings.forEach((w)=>l33.warn(z.options.logLevel,w)),z.errors.length>0)if(z.options.logLevel!=="silent")throw z.errors[0];else z.errors=[];return z.toJS(Object.assign({reviver:Y},K))}function a33(A,q,K){let Y=null;if(typeof q==="function"||Array.isArray(q))Y=q;else if(K===void 0&&q)K=q;if(typeof K==="string")K=K.length;if(typeof K==="number"){let z=Math.round(K);K=z<1?void 0:z>8?{indent:8}:{indent:z}}if(A===void 0){let{keepUndefined:z}=K??q??{};if(!z)return}if(i33.isDocument(A)&&!Y)return A.toString(K);return new c33.Document(A,Y,K).toString(K)}s33.parse=o33;s33.parseAllDocuments=r33;s33.parseDocument=NUA;s33.stringify=a33});var K53,Y53,z53,Me1,w53,ca,_53,$53,O53,H53,ruw,j53,J53,M53,RK1,EUA,D53,X53,P53,W53,G53,Z53,f53,T53,v53,V53,N53,k53,E53,L53,y53,R53,S53,h53,C53,I53,x53,b53,De1,u53,m53,B53,g53,p53;var LUA=E(()=>{K53=Ae1(),Y53=jC6(),z53=gt1(),Me1=JC6(),w53=oh6(),ca=nY(),_53=pa(),$53=$M(),O53=Qa(),H53=Ua(),ruw=EK1(),j53=He1(),J53=je1(),M53=Je1(),RK1=kUA(),EUA=nh6();D53=K53.Composer,X53=Y53.Document,P53=z53.Schema,W53=Me1.YAMLError,G53=Me1.YAMLParseError,Z53=Me1.YAMLWarning,f53=w53.Alias,T53=ca.isAlias,v53=ca.isCollection,V53=ca.isDocument,N53=ca.isMap,k53=ca.isNode,E53=ca.isPair,L53=ca.isScalar,y53=ca.isSeq,R53=_53.Pair,S53=$53.Scalar,h53=O53.YAMLMap,C53=H53.YAMLSeq,I53=j53.Lexer,x53=J53.LineCounter,b53=M53.Parser,De1=RK1.parse,u53=RK1.parseAllDocuments,m53=RK1.parseDocument,B53=RK1.stringify,g53=EUA.visit,p53=EUA.visitAsync});function Xe1(A){if(typeof Bun<"u")return Bun.YAML.parse(A);return De1(A)}var yUA=E(()=>{LUA()});function Q53(A){let q=A.split(`
`),K=[];for(let Y of q){let z=Y.match(/^([a-zA-Z_-]+):\s+(.+)$/);if(z){let[,w,_]=z;if(!w||!_){K.push(Y);continue}if(_.startsWith('"')&&_.endsWith('"')||_.startsWith("'")&&_.endsWith("'")){K.push(Y);continue}if(F53.test(_)){let $=_.replace(/\\/g,"\\\\").replace(/"/g,"\\\"");K.push(`${w}: "${$}"`);continue}}K.push(Y)}return K.join(`
`)}function sj(A,q){let K=/^---\s*\n([\s\S]*?)---\s*\n?/,Y=A.match(K);if(!Y)return{frontmatter:{},content:A};let z=Y[1]||"",w=A.slice(Y[0].length),_={};try{let $=Xe1(z);if($&&typeof $==="object"&&!Array.isArray($))_=$}catch{try{let $=Q53(z),O=Xe1($);if(O&&typeof O==="object"&&!Array.isArray(O))_=O}catch($){let O=q?` in ${q}`:"";y(`Failed to parse YAML frontmatter${O}: ${$ instanceof Error?$.message:$}`,{level:"warn"})}}return{frontmatter:_,content:w}}function SK1(A){let q=[],K="",Y=0;for(let w=0;w<A.length;w++){let _=A[w];if(_==="{")Y++,K+=_;else if(_==="}")Y--,K+=_;else if(_===","&&Y===0){let $=K.trim();if($)q.push($);K=""}else K+=_}let z=K.trim();if(z)q.push(z);return q.filter((w)=>w.length>0).flatMap((w)=>RUA(w))}function RUA(A){let q=A.match(/^([^{]*)\{([^}]+)\}(.*)$/);if(!q)return[A];let K=q[1]||"",Y=q[2]||"",z=q[3]||"",w=Y.split(",").map(($)=>$.trim()),_=[];for(let $ of w){let O=K+$+z,H=RUA(O);_.push(...H)}return _}function SUA(A){if(A===void 0||A===null)return;let q=typeof A==="number"?A:parseInt(String(A),10);if(Number.isInteger(q)&&q>0)return q;return}function vy(A,q,K){if(A==null)return null;if(typeof A==="string")return A.trim()||null;if(typeof A==="number"||typeof A==="boolean")return String(A);let Y=K?`${K}:${q}`:q??"unknown";return y(`Description invalid for ${Y} - omitting`,{level:"warn"}),null}var F53;var Vv=E(()=>{yUA();Z1();F53=/[{}[\]*&#!|>%@`]|: /});function ZC6(){return LA("policySettings")?.allowManagedPermissionRulesOnly===!0}function la(){return!ZC6()}function d53(A){let q=L2(A);if(!q)return null;try{let{resolvedPath:K}=b$(P1(),q),Y=Dj(K);if(Y.trim()==="")return{};let z=n3(Y,!1);return z&&typeof z==="object"?z:null}catch{return null}}function c53(A,q){if(!A||!A.permissions)return[];let{permissions:K}=A,Y=[];for(let z of U53){let w=K[z];if(w)for(let _ of w)Y.push({source:q,ruleBehavior:z,ruleValue:fD(_)})}return Y}function hK1(){if(ZC6())return GC6("policySettings");let A=[];for(let q of yU())A.push(...GC6(q));return A}function GC6(A){let q=LA(A);return c53(q,A)}function hUA(A){if(!l53.includes(A.source))return!1;let q=w5(A.ruleValue),K=LA(A.source);if(!K||!K.permissions)return!1;let Y=K.permissions[A.ruleBehavior];if(!Y)return!1;let z=(w)=>w5(fD(w));if(!Y.some((w)=>z(w)===q))return!1;try{let w={...K,permissions:{...K.permissions,[A.ruleBehavior]:Y.filter(($)=>z($)!==q)}},{error:_}=gA(A.source,w);if(_)return!1;return!0}catch(w){return $6(w),!1}}function i53(){return{permissions:{}}}function CUA({ruleValues:A,ruleBehavior:q},K){if(ZC6())return!1;if(A.length<1)return!0;let Y=A.map(w5),z=LA(K)||d53(K)||i53();try{let w=z.permissions||{},_=w[q]||[],$=new Set(_.map((J)=>w5(fD(J)))),O=Y.filter((J)=>!$.has(J));if(O.length===0)return!0;let H={...z,permissions:{...w,[q]:[..._,...O]}},j=gA(K,H);if(j.error)throw j.error;return!0}catch(w){return $6(w),!1}}var U53,l53;var Lm=E(()=>{u1();H0();E2();EA();D7();c7();z_();U53=["allow","deny","ask"];l53=["userSettings","projectSettings","localSettings"]});import{posix as n53}from"path";function ia(A){if(!A)return[];return A.flatMap((q)=>{switch(q.type){case"addRules":return q.rules;default:return[]}})}function ew(A,q){switch(q.type){case"setMode":return y(`Applying permission update: Setting mode to '${q.mode}'`),{...A,mode:q.mode};case"addRules":{let K=q.rules.map((z)=>w5(z));y(`Applying permission update: Adding ${q.rules.length} ${q.behavior} rule(s) to destination '${q.destination}': ${p6(K)}`);let Y=q.behavior==="allow"?"alwaysAllowRules":q.behavior==="deny"?"alwaysDenyRules":"alwaysAskRules";return{...A,[Y]:{...A[Y],[q.destination]:[...A[Y][q.destination]||[],...K]}}}case"replaceRules":{let K=q.rules.map((z)=>w5(z));y(`Replacing all ${q.behavior} rules for destination '${q.destination}' with ${q.rules.length} rule(s): ${p6(K)}`);let Y=q.behavior==="allow"?"alwaysAllowRules":q.behavior==="deny"?"alwaysDenyRules":"alwaysAskRules";return{...A,[Y]:{...A[Y],[q.destination]:K}}}case"addDirectories":{y(`Applying permission update: Adding ${q.directories.length} director${q.directories.length===1?"y":"ies"} with destination '${q.destination}': ${p6(q.directories)}`);let K=new Map(A.additionalWorkingDirectories);for(let Y of q.directories)K.set(Y,{path:Y,source:q.destination});return{...A,additionalWorkingDirectories:K}}case"removeRules":{let K=q.rules.map(($)=>w5($));y(`Applying permission update: Removing ${q.rules.length} ${q.behavior} rule(s) from source '${q.destination}': ${p6(K)}`);let Y=q.behavior==="allow"?"alwaysAllowRules":q.behavior==="deny"?"alwaysDenyRules":"alwaysAskRules",z=A[Y][q.destination]||[],w=new Set(K),_=z.filter(($)=>!w.has($));return{...A,[Y]:{...A[Y],[q.destination]:_}}}case"removeDirectories":{y(`Applying permission update: Removing ${q.directories.length} director${q.directories.length===1?"y":"ies"}: ${p6(q.directories)}`);let K=new Map(A.additionalWorkingDirectories);for(let Y of q.directories)K.delete(Y);return{...A,additionalWorkingDirectories:K}}default:return A}}function Nv(A,q){let K=A;for(let Y of q)K=ew(K,Y);return K}function Pe1(A){return A==="localSettings"||A==="userSettings"||A==="projectSettings"}function ym(A){if(!Pe1(A.destination))return;switch(y(`Persisting permission update: ${A.type} to source '${A.destination}'`),A.type){case"addRules":{y(`Persisting ${A.rules.length} ${A.behavior} rule(s) to ${A.destination}`),CUA({ruleValues:A.rules,ruleBehavior:A.behavior},A.destination);break}case"addDirectories":{y(`Persisting ${A.directories.length} director${A.directories.length===1?"y":"ies"} to ${A.destination}`);let K=LA(A.destination)?.permissions?.additionalDirectories||[],Y=A.directories.filter((z)=>!K.includes(z));if(Y.length>0){let z=[...K,...Y];gA(A.destination,{permissions:{additionalDirectories:z}})}break}case"removeRules":{y(`Removing ${A.rules.length} ${A.behavior} rule(s) from ${A.destination}`);let Y=(LA(A.destination)?.permissions||{})[A.behavior]||[],z=new Set(A.rules.map(w5)),w=Y.filter((_)=>{let $=w5(fD(_));return!z.has($)});gA(A.destination,{permissions:{[A.behavior]:w}});break}case"removeDirectories":{y(`Removing ${A.directories.length} director${A.directories.length===1?"y":"ies"} from ${A.destination}`);let K=LA(A.destination)?.permissions?.additionalDirectories||[],Y=new Set(A.directories),z=K.filter((w)=>!Y.has(w));gA(A.destination,{permissions:{additionalDirectories:z}});break}case"setMode":{y(`Persisting mode '${A.mode}' to ${A.destination}`),gA(A.destination,{permissions:{defaultMode:A.mode}});break}case"replaceRules":{y(`Replacing all ${A.behavior} rules in ${A.destination} with ${A.rules.length} rule(s)`);let q=A.rules.map(w5);gA(A.destination,{permissions:{[A.behavior]:q}});break}}}function FC(A){for(let q of A)ym(q)}function CK1(A,q="session"){let K=IUA(A);if(K==="/")return;return{type:"addRules",rules:[{toolName:"Read",ruleContent:n53.isAbsolute(K)?`/${K}/**`:`${K}/**`}],behavior:"allow",destination:q}}var ZH=E(()=>{H0();Z1();EA();Lm();uz();a1()});function $4(A,q,K,Y,z){if(Y==="m")throw TypeError("Private method is not writable");if(Y==="a"&&!z)throw TypeError("Private accessor was defined without a setter");if(typeof q==="function"?A!==q||!z:!q.has(A))throw TypeError("Cannot write private member to an object whose class did not declare it");return Y==="a"?z.call(A,K):z?z.value=K:q.set(A,K),K}function x8(A,q,K,Y){if(K==="a"&&!Y)throw TypeError("Private accessor was defined without a getter");if(typeof q==="function"?A!==q||!Y:!q.has(A))throw TypeError("Cannot read private member from an object whose class did not declare it");return K==="m"?Y:K==="a"?Y.call(A):Y?Y.value:q.get(A)}var pU=()=>{};var We1=function(){let{crypto:A}=globalThis;if(A?.randomUUID)return We1=A.randomUUID.bind(A),A.randomUUID();let q=new Uint8Array(1),K=A?()=>A.getRandomValues(q)[0]:()=>Math.random()*255&255;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(Y)=>(+Y^K()&15>>+Y/4).toString(16))};function FU(A){return typeof A==="object"&&A!==null&&(("name"in A)&&A.name==="AbortError"||("message"in A)&&String(A.message).includes("FetchRequestCanceledException"))}var fC6=(A)=>{if(A instanceof Error)return A;if(typeof A==="object"&&A!==null){try{if(Object.prototype.toString.call(A)==="[object Error]"){let q=Error(A.message,A.cause?{cause:A.cause}:{});if(A.stack)q.stack=A.stack;if(A.cause&&!q.cause)q.cause=A.cause;if(A.name)q.name=A.name;return q}}catch{}try{return Error(JSON.stringify(A))}catch{}}return Error(A)};var O4,v4,mz,OG,Rm,TC6,mq6,vC6,Bq6,VC6,NC6,kC6,EC6;var HG=E(()=>{O4=class O4 extends Error{};v4=class v4 extends O4{constructor(A,q,K,Y){super(`${v4.makeMessage(A,q,K)}`);this.status=A,this.headers=Y,this.requestID=Y?.get("request-id"),this.error=q}static makeMessage(A,q,K){let Y=q?.message?typeof q.message==="string"?q.message:JSON.stringify(q.message):q?JSON.stringify(q):K;if(A&&Y)return`${A} ${Y}`;if(A)return`${A} status code (no body)`;if(Y)return Y;return"(no status code or body)"}static generate(A,q,K,Y){if(!A||!Y)return new OG({message:K,cause:fC6(q)});let z=q;if(A===400)return new TC6(A,z,K,Y);if(A===401)return new mq6(A,z,K,Y);if(A===403)return new vC6(A,z,K,Y);if(A===404)return new Bq6(A,z,K,Y);if(A===409)return new VC6(A,z,K,Y);if(A===422)return new NC6(A,z,K,Y);if(A===429)return new kC6(A,z,K,Y);if(A>=500)return new EC6(A,z,K,Y);return new v4(A,z,K,Y)}};mz=class mz extends v4{constructor({message:A}={}){super(void 0,void 0,A||"Request was aborted.",void 0)}};OG=class OG extends v4{constructor({message:A,cause:q}){super(void 0,void 0,A||"Connection error.",void 0);if(q)this.cause=q}};Rm=class Rm extends OG{constructor({message:A}={}){super({message:A??"Request timed out."})}};TC6=class TC6 extends v4{};mq6=class mq6 extends v4{};vC6=class vC6 extends v4{};Bq6=class Bq6 extends v4{};VC6=class VC6 extends v4{};NC6=class NC6 extends v4{};kC6=class kC6 extends v4{};EC6=class EC6 extends v4{}});function IK1(A){if(typeof A!=="object")return{};return A??{}}function bUA(A){if(!A)return!0;for(let q in A)return!1;return!0}function uUA(A,q){return Object.prototype.hasOwnProperty.call(A,q)}var o53,xUA=(A)=>{return o53.test(A)},Ge1=(A)=>(Ge1=Array.isArray,Ge1(A)),Ze1,mUA=(A,q)=>{if(typeof q!=="number"||!Number.isInteger(q))throw new O4(`${A} must be an integer`);if(q<0)throw new O4(`${A} must be a positive integer`);return q},xK1=(A)=>{try{return JSON.parse(A)}catch(q){return}};var gq6=E(()=>{HG();o53=/^[a-z][a-z0-9+.-]*:/i,Ze1=Ge1});var BUA=(A)=>new Promise((q)=>setTimeout(q,A));var na="0.74.0";function a53(){if(typeof Deno<"u"&&Deno.build!=null)return"deno";if(typeof EdgeRuntime<"u")return"edge";if(Object.prototype.toString.call(typeof globalThis.process<"u"?globalThis.process:0)==="[object process]")return"node";return"unknown"}function t53(){if(typeof navigator>"u"||!navigator)return null;let A=[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(let{key:q,pattern:K}of A){let Y=K.exec(navigator.userAgent);if(Y){let z=Y[1]||0,w=Y[2]||0,_=Y[3]||0;return{browser:q,version:`${z}.${w}.${_}`}}}return null}var QUA=()=>{return typeof window<"u"&&typeof window.document<"u"&&typeof navigator<"u"},s53=()=>{let A=a53();if(A==="deno")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":na,"X-Stainless-OS":pUA(Deno.build.os),"X-Stainless-Arch":gUA(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":typeof Deno.version==="string"?Deno.version:Deno.version?.deno??"unknown"};if(typeof EdgeRuntime<"u")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":na,"X-Stainless-OS":"Unknown","X-Stainless-Arch":`other:${EdgeRuntime}`,"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":globalThis.process.version};if(A==="node")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":na,"X-Stainless-OS":pUA(globalThis.process.platform??"unknown"),"X-Stainless-Arch":gUA(globalThis.process.arch??"unknown"),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":globalThis.process.version??"unknown"};let q=t53();if(q)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":na,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":`browser:${q.browser}`,"X-Stainless-Runtime-Version":q.version};return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":na,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}},gUA=(A)=>{if(A==="x32")return"x32";if(A==="x86_64"||A==="x64")return"x64";if(A==="arm")return"arm";if(A==="aarch64"||A==="arm64")return"arm64";if(A)return`other:${A}`;return"unknown"},pUA=(A)=>{if(A=A.toLowerCase(),A.includes("ios"))return"iOS";if(A==="android")return"Android";if(A==="darwin")return"MacOS";if(A==="win32")return"Windows";if(A==="freebsd")return"FreeBSD";if(A==="openbsd")return"OpenBSD";if(A==="linux")return"Linux";if(A)return`Other:${A}`;return"Unknown"},FUA,UUA=()=>{return FUA??(FUA=s53())};var fe1=()=>{};function dUA(){if(typeof fetch<"u")return fetch;throw Error("`fetch` is not defined as a global; Either pass `fetch` to the client, `new Anthropic({ fetch })` or polyfill the global, `globalThis.fetch = fetch`")}function Te1(...A){let q=globalThis.ReadableStream;if(typeof q>"u")throw Error("`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`");return new q(...A)}function bK1(A){let q=Symbol.asyncIterator in A?A[Symbol.asyncIterator]():A[Symbol.iterator]();return Te1({start(){},async pull(K){let{done:Y,value:z}=await q.next();if(Y)K.close();else K.enqueue(z)},async cancel(){await q.return?.()}})}function LC6(A){if(A[Symbol.asyncIterator])return A;let q=A.getReader();return{async next(){try{let K=await q.read();if(K?.done)q.releaseLock();return K}catch(K){throw q.releaseLock(),K}},async return(){let K=q.cancel();return q.releaseLock(),await K,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}async function cUA(A){if(A===null||typeof A!=="object")return;if(A[Symbol.asyncIterator]){await A[Symbol.asyncIterator]().return?.();return}let q=A.getReader(),K=q.cancel();q.releaseLock(),await K}var lUA=({headers:A,body:q})=>{return{bodyHeaders:{"content-type":"application/json"},body:JSON.stringify(q)}};function rUA(A){let q=0;for(let z of A)q+=z.length;let K=new Uint8Array(q),Y=0;for(let z of A)K.set(z,Y),Y+=z.length;return K}function yC6(A){let q;return(iUA??(q=new globalThis.TextEncoder,iUA=q.encode.bind(q)))(A)}function ve1(A){let q;return(nUA??(q=new globalThis.TextDecoder,nUA=q.decode.bind(q)))(A)}var iUA,nUA;class ra{constructor(){Jk.set(this,void 0),Mk.set(this,void 0),$4(this,Jk,new Uint8Array,"f"),$4(this,Mk,null,"f")}decode(A){if(A==null)return[];let q=A instanceof ArrayBuffer?new Uint8Array(A):typeof A==="string"?yC6(A):A;$4(this,Jk,rUA([x8(this,Jk,"f"),q]),"f");let K=[],Y;while((Y=q93(x8(this,Jk,"f"),x8(this,Mk,"f")))!=null){if(Y.carriage&&x8(this,Mk,"f")==null){$4(this,Mk,Y.index,"f");continue}if(x8(this,Mk,"f")!=null&&(Y.index!==x8(this,Mk,"f")+1||Y.carriage)){K.push(ve1(x8(this,Jk,"f").subarray(0,x8(this,Mk,"f")-1))),$4(this,Jk,x8(this,Jk,"f").subarray(x8(this,Mk,"f")),"f"),$4(this,Mk,null,"f");continue}let z=x8(this,Mk,"f")!==null?Y.preceding-1:Y.preceding,w=ve1(x8(this,Jk,"f").subarray(0,z));K.push(w),$4(this,Jk,x8(this,Jk,"f").subarray(Y.index),"f"),$4(this,Mk,null,"f")}return K}flush(){if(!x8(this,Jk,"f").length)return[];return this.decode(`
`)}}function q93(A,q){for(let z=q??0;z<A.length;z++){if(A[z]===10)return{preceding:z,index:z+1,carriage:!1};if(A[z]===13)return{preceding:z,index:z+1,carriage:!0}}return null}function oUA(A){for(let Y=0;Y<A.length-1;Y++){if(A[Y]===10&&A[Y+1]===10)return Y+2;if(A[Y]===13&&A[Y+1]===13)return Y+2;if(A[Y]===13&&A[Y+1]===10&&Y+3<A.length&&A[Y+2]===13&&A[Y+3]===10)return Y+4}return-1}var Jk,Mk;var Ve1=E(()=>{pU();Jk=new WeakMap,Mk=new WeakMap;ra.NEWLINE_CHARS=new Set([`
`,"\r"]);ra.NEWLINE_REGEXP=/\r\n|[\n\r]/g});function RC6(){}function uK1(A,q,K){if(!q||mK1[A]>mK1[K])return RC6;else return q[A].bind(q)}function yX(A){let q=A.logger,K=A.logLevel??"off";if(!q)return K93;let Y=aUA.get(q);if(Y&&Y[0]===K)return Y[1];let z={error:uK1("error",q,K),warn:uK1("warn",q,K),info:uK1("info",q,K),debug:uK1("debug",q,K)};return aUA.set(q,[K,z]),z}var mK1,Ne1=(A,q,K)=>{if(!A)return;if(uUA(mK1,A))return A;yX(K).warn(`${q} was set to ${JSON.stringify(A)}, expected one of ${JSON.stringify(Object.keys(mK1))}`);return},K93,aUA,QU=(A)=>{if(A.options)A.options={...A.options},delete A.options.headers;if(A.headers)A.headers=Object.fromEntries((A.headers instanceof Headers?[...A.headers]:Object.entries(A.headers)).map(([q,K])=>[q,q.toLowerCase()==="x-api-key"||q.toLowerCase()==="authorization"||q.toLowerCase()==="cookie"||q.toLowerCase()==="set-cookie"?"***":K]));if("retryOfRequestLogID"in A){if(A.retryOfRequestLogID)A.retryOf=A.retryOfRequestLogID;delete A.retryOfRequestLogID}return A};var BK1=E(()=>{gq6();mK1={off:0,error:200,warn:300,info:400,debug:500};K93={error:RC6,warn:RC6,info:RC6,debug:RC6},aUA=new WeakMap});async function*Y93(A,q){if(!A.body){if(q.abort(),typeof globalThis.navigator<"u"&&globalThis.navigator.product==="ReactNative")throw new O4("The default react-native fetch implementation does not support streaming. Please use expo/fetch: https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api");throw new O4("Attempted to iterate over a response with no body")}let K=new sUA,Y=new ra,z=LC6(A.body);for await(let w of z93(z))for(let _ of Y.decode(w)){let $=K.decode(_);if($)yield $}for(let w of Y.flush()){let _=K.decode(w);if(_)yield _}}async function*z93(A){let q=new Uint8Array;for await(let K of A){if(K==null)continue;let Y=K instanceof ArrayBuffer?new Uint8Array(K):typeof K==="string"?yC6(K):K,z=new Uint8Array(q.length+Y.length);z.set(q),z.set(Y,q.length),q=z;let w;while((w=oUA(q))!==-1)yield q.slice(0,w),q=q.slice(w)}if(q.length>0)yield q}class sUA{constructor(){this.event=null,this.data=[],this.chunks=[]}decode(A){if(A.endsWith("\r"))A=A.substring(0,A.length-1);if(!A){if(!this.event&&!this.data.length)return null;let z={event:this.event,data:this.data.join(`
`),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],z}if(this.chunks.push(A),A.startsWith(":"))return null;let[q,K,Y]=w93(A,":");if(Y.startsWith(" "))Y=Y.substring(1);if(q==="event")this.event=Y;else if(q==="data")this.data.push(Y);return null}}function w93(A,q){let K=A.indexOf(q);if(K!==-1)return[A.substring(0,K),q,A.substring(K+q.length)];return[A,"",""]}var SC6,Of;var ke1=E(()=>{pU();HG();Ve1();gq6();BK1();HG();Of=class Of{constructor(A,q,K){this.iterator=A,SC6.set(this,void 0),this.controller=q,$4(this,SC6,K,"f")}static fromSSEResponse(A,q,K){let Y=!1,z=K?yX(K):console;async function*w(){if(Y)throw new O4("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");Y=!0;let _=!1;try{for await(let $ of Y93(A,q)){if($.event==="completion")try{yield JSON.parse($.data)}catch(O){throw z.error("Could not parse message into JSON:",$.data),z.error("From chunk:",$.raw),O}if($.event==="message_start"||$.event==="message_delta"||$.event==="message_stop"||$.event==="content_block_start"||$.event==="content_block_delta"||$.event==="content_block_stop")try{yield JSON.parse($.data)}catch(O){throw z.error("Could not parse message into JSON:",$.data),z.error("From chunk:",$.raw),O}if($.event==="ping")continue;if($.event==="error")throw new v4(void 0,xK1($.data)??$.data,void 0,A.headers)}_=!0}catch($){if(FU($))return;throw $}finally{if(!_)q.abort()}}return new Of(w,q,K)}static fromReadableStream(A,q,K){let Y=!1;async function*z(){let _=new ra,$=LC6(A);for await(let O of $)for(let H of _.decode(O))yield H;for(let O of _.flush())yield O}async function*w(){if(Y)throw new O4("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");Y=!0;let _=!1;try{for await(let $ of z()){if(_)continue;if($)yield JSON.parse($)}_=!0}catch($){if(FU($))return;throw $}finally{if(!_)q.abort()}}return new Of(w,q,K)}[(SC6=new WeakMap,Symbol.asyncIterator)](){return this.iterator()}tee(){let A=[],q=[],K=this.iterator(),Y=(z)=>{return{next:()=>{if(z.length===0){let w=K.next();A.push(w),q.push(w)}return z.shift()}}};return[new Of(()=>Y(A),this.controller,x8(this,SC6,"f")),new Of(()=>Y(q),this.controller,x8(this,SC6,"f"))]}toReadableStream(){let A=this,q;return Te1({async start(){q=A[Symbol.asyncIterator]()},async pull(K){try{let{value:Y,done:z}=await q.next();if(z)return K.close();let w=yC6(JSON.stringify(Y)+`
`);K.enqueue(w)}catch(Y){K.error(Y)}},async cancel(){await q.return?.()}})}}});async function gK1(A,q){let{response:K,requestLogID:Y,retryOfRequestLogID:z,startTime:w}=q,_=await(async()=>{if(q.options.stream){if(yX(A).debug("response",K.status,K.url,K.headers,K.body),q.options.__streamClass)return q.options.__streamClass.fromSSEResponse(K,q.controller);return Of.fromSSEResponse(K,q.controller)}if(K.status===204)return null;if(q.options.__binaryResponse)return K;let O=K.headers.get("content-type")?.split(";")[0]?.trim();if(O?.includes("application/json")||O?.endsWith("+json")){if(K.headers.get("content-length")==="0")return;let M=await K.json();return Ee1(M,K)}return await K.text()})();return yX(A).debug(`[${Y}] response parsed`,QU({retryOfRequestLogID:z,url:K.url,status:K.status,body:_,durationMs:Date.now()-w})),_}function Ee1(A,q){if(!A||typeof A!=="object"||Array.isArray(A))return A;return Object.defineProperty(A,"_request_id",{value:q.headers.get("request-id"),enumerable:!1})}var Le1=E(()=>{ke1();BK1()});var hC6,pq6;var pK1=E(()=>{pU();Le1();pq6=class pq6 extends Promise{constructor(A,q,K=gK1){super((Y)=>{Y(null)});this.responsePromise=q,this.parseResponse=K,hC6.set(this,void 0),$4(this,hC6,A,"f")}_thenUnwrap(A){return new pq6(x8(this,hC6,"f"),this.responsePromise,async(q,K)=>Ee1(A(await this.parseResponse(q,K),K),K.response))}asResponse(){return this.responsePromise.then((A)=>A.response)}async withResponse(){let[A,q]=await Promise.all([this.parse(),this.asResponse()]);return{data:A,response:q,request_id:q.headers.get("request-id")}}parse(){if(!this.parsedPromise)this.parsedPromise=this.responsePromise.then((A)=>this.parseResponse(x8(this,hC6,"f"),A));return this.parsedPromise}then(A,q){return this.parse().then(A,q)}catch(A){return this.parse().catch(A)}finally(A){return this.parse().finally(A)}};hC6=new WeakMap});var FK1,ye1,QK1,QC,CC6;var Sm=E(()=>{pU();HG();Le1();pK1();gq6();ye1=class ye1{constructor(A,q,K,Y){FK1.set(this,void 0),$4(this,FK1,A,"f"),this.options=Y,this.response=q,this.body=K}hasNextPage(){if(!this.getPaginatedItems().length)return!1;return this.nextPageRequestOptions()!=null}async getNextPage(){let A=this.nextPageRequestOptions();if(!A)throw new O4("No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.");return await x8(this,FK1,"f").requestAPIList(this.constructor,A)}async*iterPages(){let A=this;yield A;while(A.hasNextPage())A=await A.getNextPage(),yield A}async*[(FK1=new WeakMap,Symbol.asyncIterator)](){for await(let A of this.iterPages())for(let q of A.getPaginatedItems())yield q}};QK1=class QK1 extends pq6{constructor(A,q,K){super(A,q,async(Y,z)=>new K(Y,z.response,await gK1(Y,z),z.options))}async*[Symbol.asyncIterator](){let A=await this;for await(let q of A)yield q}};QC=class QC extends ye1{constructor(A,q,K,Y){super(A,q,K,Y);this.data=K.data||[],this.has_more=K.has_more||!1,this.first_id=K.first_id||null,this.last_id=K.last_id||null}getPaginatedItems(){return this.data??[]}hasNextPage(){if(this.has_more===!1)return!1;return super.hasNextPage()}nextPageRequestOptions(){if(this.options.query?.before_id){let q=this.first_id;if(!q)return null;return{...this.options,query:{...IK1(this.options.query),before_id:q}}}let A=this.last_id;if(!A)return null;return{...this.options,query:{...IK1(this.options.query),after_id:A}}}};CC6=class CC6 extends ye1{constructor(A,q,K,Y){super(A,q,K,Y);this.data=K.data||[],this.has_more=K.has_more||!1,this.next_page=K.next_page||null}getPaginatedItems(){return this.data??[]}hasNextPage(){if(this.has_more===!1)return!1;return super.hasNextPage()}nextPageRequestOptions(){let A=this.next_page;if(!A)return null;return{...this.options,query:{...IK1(this.options.query),page:A}}}}});function Fq6(A,q,K){return Se1(),new File(A,q??"unknown_file",K)}function IC6(A,q){let K=typeof A==="object"&&A!==null&&(("name"in A)&&A.name&&String(A.name)||("url"in A)&&A.url&&String(A.url)||("filename"in A)&&A.filename&&String(A.filename)||("path"in A)&&A.path&&String(A.path))||"";return q?K.split(/[\\/]/).pop()||void 0:K}function $93(A){let q=typeof A==="function"?A:A.fetch,K=tUA.get(q);if(K)return K;let Y=(async()=>{try{let z="Response"in q?q.Response:(await q("data:,")).constructor,w=new FormData;if(w.toString()===await new z(w).text())return!1;return!0}catch{return!0}})();return tUA.set(q,Y),Y}var Se1=()=>{if(typeof File>"u"){let{process:A}=globalThis,q=typeof A?.versions?.node==="string"&&parseInt(A.versions.node.split("."))<20;throw Error("`File` is not defined as a global, which is required for file uploads."+(q?" Update to Node 20 LTS or newer, or set `globalThis.File` to `import('node:buffer').File`.":""))}},he1=(A)=>A!=null&&typeof A==="object"&&typeof A[Symbol.asyncIterator]==="function",nJ6=async(A,q,K=!0)=>{return{...A,body:await O93(A.body,q,K)}},tUA,O93=async(A,q,K=!0)=>{if(!await $93(q))throw TypeError("The provided fetch function does not support file uploads with the current global FormData class.");let Y=new FormData;return await Promise.all(Object.entries(A||{}).map(([z,w])=>Re1(Y,z,w,K))),Y},H93=(A)=>A instanceof Blob&&("name"in A),Re1=async(A,q,K,Y)=>{if(K===void 0)return;if(K==null)throw TypeError(`Received null for "${q}"; to pass null in FormData, you must use the string 'null'`);if(typeof K==="string"||typeof K==="number"||typeof K==="boolean")A.append(q,String(K));else if(K instanceof Response){let z={},w=K.headers.get("Content-Type");if(w)z={type:w};A.append(q,Fq6([await K.blob()],IC6(K,Y),z))}else if(he1(K))A.append(q,Fq6([await new Response(bK1(K)).blob()],IC6(K,Y)));else if(H93(K))A.append(q,Fq6([K],IC6(K,Y),{type:K.type}));else if(Array.isArray(K))await Promise.all(K.map((z)=>Re1(A,q+"[]",z,Y)));else if(typeof K==="object")await Promise.all(Object.entries(K).map(([z,w])=>Re1(A,`${q}[${z}]`,w,Y)));else throw TypeError(`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${K} instead`)};var rJ6=E(()=>{tUA=new WeakMap});async function UK1(A,q,K){if(Se1(),A=await A,q||(q=IC6(A,!0)),j93(A)){if(A instanceof File&&q==null&&K==null)return A;return Fq6([await A.arrayBuffer()],q??A.name,{type:A.type,lastModified:A.lastModified,...K})}if(J93(A)){let z=await A.blob();return q||(q=new URL(A.url).pathname.split(/[\\/]/).pop()),Fq6(await Ce1(z),q,K)}let Y=await Ce1(A);if(!K?.type){let z=Y.find((w)=>typeof w==="object"&&("type"in w)&&w.type);if(typeof z==="string")K={...K,type:z}}return Fq6(Y,q,K)}async function Ce1(A){let q=[];if(typeof A==="string"||ArrayBuffer.isView(A)||A instanceof ArrayBuffer)q.push(A);else if(eUA(A))q.push(A instanceof Blob?A:await A.arrayBuffer());else if(he1(A))for await(let K of A)q.push(...await Ce1(K));else{let K=A?.constructor?.name;throw Error(`Unexpected data type: ${typeof A}${K?`; constructor: ${K}`:""}${M93(A)}`)}return q}function M93(A){if(typeof A!=="object"||A===null)return"";return`; props: [${Object.getOwnPropertyNames(A).map((K)=>`"${K}"`).join(", ")}]`}var eUA=(A)=>A!=null&&typeof A==="object"&&typeof A.size==="number"&&typeof A.type==="string"&&typeof A.text==="function"&&typeof A.slice==="function"&&typeof A.arrayBuffer==="function",j93=(A)=>A!=null&&typeof A==="object"&&typeof A.name==="string"&&typeof A.lastModified==="number"&&eUA(A),J93=(A)=>A!=null&&typeof A==="object"&&typeof A.url==="string"&&typeof A.blob==="function";var AdA=E(()=>{rJ6();rJ6()});var Ie1=E(()=>{AdA()});var qdA=()=>{};class fH{constructor(A){this._client=A}}function*X93(A){if(!A)return;if(KdA in A){let{values:Y,nulls:z}=A;yield*Y.entries();for(let w of z)yield[w,null];return}let q=!1,K;if(A instanceof Headers)K=A.entries();else if(Ze1(A))K=A;else q=!0,K=Object.entries(A??{});for(let Y of K){let z=Y[0];if(typeof z!=="string")throw TypeError("expected header name to be a string");let w=Ze1(Y[1])?Y[1]:[Y[1]],_=!1;for(let $ of w){if($===void 0)continue;if(q&&!_)_=!0,yield[z,null];yield[z,$]}}}var KdA,D3=(A)=>{let q=new Headers,K=new Set;for(let Y of A){let z=new Set;for(let[w,_]of X93(Y)){let $=w.toLowerCase();if(!z.has($))q.delete(w),z.add($);if(_===null)q.delete(w),K.add($);else q.append(w,_),K.delete($)}}return{[KdA]:!0,values:q,nulls:K}};var Dk=E(()=>{gq6();KdA=Symbol.for("brand.privateNullableHeaders")});function dK1(A){return typeof A==="object"&&A!==null&&xC6 in A}function xe1(A,q){let K=new Set;if(A){for(let Y of A)if(dK1(Y))K.add(Y[xC6])}if(q)for(let Y of q){if(dK1(Y))K.add(Y[xC6]);if(Array.isArray(Y.content)){for(let z of Y.content)if(dK1(z))K.add(z[xC6])}}return Array.from(K)}function cK1(A,q){let K=xe1(A,q);if(K.length===0)return{};return{"x-stainless-helper":K.join(", ")}}function YdA(A){if(dK1(A))return{"x-stainless-helper":A[xC6]};return{}}var xC6;var bC6=E(()=>{xC6=Symbol("anthropic.sdk.stainlessHelper")});function wdA(A){return A.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g,encodeURIComponent)}var zdA,P93=(A=wdA)=>function(K,...Y){if(K.length===1)return K[0];let z=!1,w=[],_=K.reduce((j,J,M)=>{if(/[?#]/.test(J))z=!0;let D=Y[M],X=(z?encodeURIComponent:A)(""+D);if(M!==Y.length&&(D==null||typeof D==="object"&&D.toString===Object.getPrototypeOf(Object.getPrototypeOf(D.hasOwnProperty??zdA)??zdA)?.toString))X=D+"",w.push({start:j.length+J.length,length:X.length,error:`Value of type ${Object.prototype.toString.call(D).slice(8,-1)} is not a valid path parameter`});return j+J+(M===Y.length?"":X)},""),$=_.split(/[?#]/,1)[0],O=/(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi,H;while((H=O.exec($))!==null)w.push({start:H.index,length:H[0].length,error:`Value "${H[0]}" can't be safely passed as a path parameter`});if(w.sort((j,J)=>j.start-J.start),w.length>0){let j=0,J=w.reduce((M,D)=>{let X=" ".repeat(D.start-j),P="^".repeat(D.length);return j=D.start+D.length,M+X+P},"");throw new O4(`Path parameters result in path with invalid segments:
${w.map((M)=>M.error).join(`
`)}
${_}
${J}`)}return _},NO;var oa=E(()=>{HG();zdA=Object.freeze(Object.create(null)),NO=P93(wdA)});var uC6;var be1=E(()=>{Sm();Dk();bC6();rJ6();oa();uC6=class uC6 extends fH{list(A={},q){let{betas:K,...Y}=A??{};return this._client.getAPIList("/v1/files",QC,{query:Y,...q,headers:D3([{"anthropic-beta":[...K??[],"files-api-2025-04-14"].toString()},q?.headers])})}delete(A,q={},K){let{betas:Y}=q??{};return this._client.delete(NO`/v1/files/${A}`,{...K,headers:D3([{"anthropic-beta":[...Y??[],"files-api-2025-04-14"].toString()},K?.headers])})}download(A,q={},K){let{betas:Y}=q??{};return this._client.get(NO`/v1/files/${A}/content`,{...K,headers:D3([{"anthropic-beta":[...Y??[],"files-api-2025-04-14"].toString(),Accept:"application/binary"},K?.headers]),__binaryResponse:!0})}retrieveMetadata(A,q={},K){let{betas:Y}=q??{};return this._client.get(NO`/v1/files/${A}`,{...K,headers:D3([{"anthropic-beta":[...Y??[],"files-api-2025-04-14"].toString()},K?.headers])})}upload(A,q){let{betas:K,...Y}=A;return this._client.post("/v1/files",nJ6({body:Y,...q,headers:D3([{"anthropic-beta":[...K??[],"files-api-2025-04-14"].toString()},YdA(Y.file),q?.headers])},this._client))}}});var mC6;var ue1=E(()=>{Sm();Dk();oa();mC6=class mC6 extends fH{retrieve(A,q={},K){let{betas:Y}=q??{};return this._client.get(NO`/v1/models/${A}?beta=true`,{...K,headers:D3([{...Y?.toString()!=null?{"anthropic-beta":Y?.toString()}:void 0},K?.headers])})}list(A={},q){let{betas:K,...Y}=A??{};return this._client.getAPIList("/v1/models?beta=true",QC,{query:Y,...q,headers:D3([{...K?.toString()!=null?{"anthropic-beta":K?.toString()}:void 0},q?.headers])})}}});var aa=E(()=>{HG()});var lK1;var me1=E(()=>{lK1={"claude-opus-4-20250514":8192,"claude-opus-4-0":8192,"claude-4-opus-20250514":8192,"anthropic.claude-opus-4-20250514-v1:0":8192,"claude-opus-4@20250514":8192,"claude-opus-4-1-20250805":8192,"anthropic.claude-opus-4-1-20250805-v1:0":8192,"claude-opus-4-1@20250805":8192}});function _dA(A){return A?.output_format??A?.output_config?.format}function Be1(A,q,K){let Y=_dA(q);if(!q||!("parse"in(Y??{})))return{...A,content:A.content.map((z)=>{if(z.type==="text"){let w=Object.defineProperty({...z},"parsed_output",{value:null,enumerable:!1});return Object.defineProperty(w,"parsed",{get(){return K.logger.warn("The `parsed` property on `text` blocks is deprecated, please use `parsed_output` instead."),null},enumerable:!1})}return z}),parsed_output:null};return ge1(A,q,K)}function ge1(A,q,K){let Y=null,z=A.content.map((w)=>{if(w.type==="text"){let _=Z93(q,w.text);if(Y===null)Y=_;let $=Object.defineProperty({...w},"parsed_output",{value:_,enumerable:!1});return Object.defineProperty($,"parsed",{get(){return K.logger.warn("The `parsed` property on `text` blocks is deprecated, please use `parsed_output` instead."),_},enumerable:!1})}return w});return{...A,content:z,parsed_output:Y}}function Z93(A,q){let K=_dA(A);if(K?.type!=="json_schema")return null;try{if("parse"in K)return K.parse(q);return JSON.parse(q)}catch(Y){throw new O4(`Failed to parse structured output: ${Y}`)}}var pe1=E(()=>{HG()});var f93=(A)=>{let q=0,K=[];while(q<A.length){let Y=A[q];if(Y==="\\"){q++;continue}if(Y==="{"){K.push({type:"brace",value:"{"}),q++;continue}if(Y==="}"){K.push({type:"brace",value:"}"}),q++;continue}if(Y==="["){K.push({type:"paren",value:"["}),q++;continue}if(Y==="]"){K.push({type:"paren",value:"]"}),q++;continue}if(Y===":"){K.push({type:"separator",value:":"}),q++;continue}if(Y===","){K.push({type:"delimiter",value:","}),q++;continue}if(Y==='"'){let $="",O=!1;Y=A[++q];while(Y!=='"'){if(q===A.length){O=!0;break}if(Y==="\\"){if(q++,q===A.length){O=!0;break}$+=Y+A[q],Y=A[++q]}else $+=Y,Y=A[++q]}if(Y=A[++q],!O)K.push({type:"string",value:$});continue}if(Y&&/\s/.test(Y)){q++;continue}let w=/[0-9]/;if(Y&&w.test(Y)||Y==="-"||Y==="."){let $="";if(Y==="-")$+=Y,Y=A[++q];while(Y&&w.test(Y)||Y===".")$+=Y,Y=A[++q];K.push({type:"number",value:$});continue}let _=/[a-z]/i;if(Y&&_.test(Y)){let $="";while(Y&&_.test(Y)){if(q===A.length)break;$+=Y,Y=A[++q]}if($=="true"||$=="false"||$==="null")K.push({type:"name",value:$});else{q++;continue}continue}q++}return K},oJ6=(A)=>{if(A.length===0)return A;let q=A[A.length-1];switch(q.type){case"separator":return A=A.slice(0,A.length-1),oJ6(A);break;case"number":let K=q.value[q.value.length-1];if(K==="."||K==="-")return A=A.slice(0,A.length-1),oJ6(A);case"string":let Y=A[A.length-2];if(Y?.type==="delimiter")return A=A.slice(0,A.length-1),oJ6(A);else if(Y?.type==="brace"&&Y.value==="{")return A=A.slice(0,A.length-1),oJ6(A);break;case"delimiter":return A=A.slice(0,A.length-1),oJ6(A);break}return A},T93=(A)=>{let q=[];if(A.map((K)=>{if(K.type==="brace")if(K.value==="{")q.push("}");else q.splice(q.lastIndexOf("}"),1);if(K.type==="paren")if(K.value==="[")q.push("]");else q.splice(q.lastIndexOf("]"),1)}),q.length>0)q.reverse().map((K)=>{if(K==="}")A.push({type:"brace",value:"}"});else if(K==="]")A.push({type:"paren",value:"]"})});return A},v93=(A)=>{let q="";return A.map((K)=>{switch(K.type){case"string":q+='"'+K.value+'"';break;default:q+=K.value;break}}),q},iK1=(A)=>JSON.parse(v93(T93(oJ6(f93(A)))));var Fe1=()=>{};var nK1=E(()=>{ke1()});function jdA(A){return A.type==="tool_use"||A.type==="server_tool_use"||A.type==="mcp_tool_use"}function JdA(A){}var Vy,sa,aJ6,BC6,rK1,gC6,pC6,oK1,FC6,UU,QC6,aK1,sK1,Qq6,tK1,eK1,UC6,Qe1,$dA,A31,Ue1,de1,ce1,OdA,HdA="__json_buf",dC6;var MdA=E(()=>{pU();Fe1();aa();nK1();pe1();dC6=class dC6{constructor(A,q){Vy.add(this),this.messages=[],this.receivedMessages=[],sa.set(this,void 0),aJ6.set(this,null),this.controller=new AbortController,BC6.set(this,void 0),rK1.set(this,()=>{}),gC6.set(this,()=>{}),pC6.set(this,void 0),oK1.set(this,()=>{}),FC6.set(this,()=>{}),UU.set(this,{}),QC6.set(this,!1),aK1.set(this,!1),sK1.set(this,!1),Qq6.set(this,!1),tK1.set(this,void 0),eK1.set(this,void 0),UC6.set(this,void 0),A31.set(this,(K)=>{if($4(this,aK1,!0,"f"),FU(K))K=new mz;if(K instanceof mz)return $4(this,sK1,!0,"f"),this._emit("abort",K);if(K instanceof O4)return this._emit("error",K);if(K instanceof Error){let Y=new O4(K.message);return Y.cause=K,this._emit("error",Y)}return this._emit("error",new O4(String(K)))}),$4(this,BC6,new Promise((K,Y)=>{$4(this,rK1,K,"f"),$4(this,gC6,Y,"f")}),"f"),$4(this,pC6,new Promise((K,Y)=>{$4(this,oK1,K,"f"),$4(this,FC6,Y,"f")}),"f"),x8(this,BC6,"f").catch(()=>{}),x8(this,pC6,"f").catch(()=>{}),$4(this,aJ6,A,"f"),$4(this,UC6,q?.logger??console,"f")}get response(){return x8(this,tK1,"f")}get request_id(){return x8(this,eK1,"f")}async withResponse(){$4(this,Qq6,!0,"f");let A=await x8(this,BC6,"f");if(!A)throw Error("Could not resolve a `Response` object");return{data:this,response:A,request_id:A.headers.get("request-id")}}static fromReadableStream(A){let q=new dC6(null);return q._run(()=>q._fromReadableStream(A)),q}static createMessage(A,q,K,{logger:Y}={}){let z=new dC6(q,{logger:Y});for(let w of q.messages)z._addMessageParam(w);return $4(z,aJ6,{...q,stream:!0},"f"),z._run(()=>z._createMessage(A,{...q,stream:!0},{...K,headers:{...K?.headers,"X-Stainless-Helper-Method":"stream"}})),z}_run(A){A().then(()=>{this._emitFinal(),this._emit("end")},x8(this,A31,"f"))}_addMessageParam(A){this.messages.push(A)}_addMessage(A,q=!0){if(this.receivedMessages.push(A),q)this._emit("message",A)}async _createMessage(A,q,K){let Y=K?.signal,z;if(Y){if(Y.aborted)this.controller.abort();z=this.controller.abort.bind(this.controller),Y.addEventListener("abort",z)}try{x8(this,Vy,"m",Ue1).call(this);let{response:w,data:_}=await A.create({...q,stream:!0},{...K,signal:this.controller.signal}).withResponse();this._connected(w);for await(let $ of _)x8(this,Vy,"m",de1).call(this,$);if(_.controller.signal?.aborted)throw new mz;x8(this,Vy,"m",ce1).call(this)}finally{if(Y&&z)Y.removeEventListener("abort",z)}}_connected(A){if(this.ended)return;$4(this,tK1,A,"f"),$4(this,eK1,A?.headers.get("request-id"),"f"),x8(this,rK1,"f").call(this,A),this._emit("connect")}get ended(){return x8(this,QC6,"f")}get errored(){return x8(this,aK1,"f")}get aborted(){return x8(this,sK1,"f")}abort(){this.controller.abort()}on(A,q){return(x8(this,UU,"f")[A]||(x8(this,UU,"f")[A]=[])).push({listener:q}),this}off(A,q){let K=x8(this,UU,"f")[A];if(!K)return this;let Y=K.findIndex((z)=>z.listener===q);if(Y>=0)K.splice(Y,1);return this}once(A,q){return(x8(this,UU,"f")[A]||(x8(this,UU,"f")[A]=[])).push({listener:q,once:!0}),this}emitted(A){return new Promise((q,K)=>{if($4(this,Qq6,!0,"f"),A!=="error")this.once("error",K);this.once(A,q)})}async done(){$4(this,Qq6,!0,"f"),await x8(this,pC6,"f")}get currentMessage(){return x8(this,sa,"f")}async finalMessage(){return await this.done(),x8(this,Vy,"m",Qe1).call(this)}async finalText(){return await this.done(),x8(this,Vy,"m",$dA).call(this)}_emit(A,...q){if(x8(this,QC6,"f"))return;if(A==="end")$4(this,QC6,!0,"f"),x8(this,oK1,"f").call(this);let K=x8(this,UU,"f")[A];if(K)x8(this,UU,"f")[A]=K.filter((Y)=>!Y.once),K.forEach(({listener:Y})=>Y(...q));if(A==="abort"){let Y=q[0];if(!x8(this,Qq6,"f")&&!K?.length)Promise.reject(Y);x8(this,gC6,"f").call(this,Y),x8(this,FC6,"f").call(this,Y),this._emit("end");return}if(A==="error"){let Y=q[0];if(!x8(this,Qq6,"f")&&!K?.length)Promise.reject(Y);x8(this,gC6,"f").call(this,Y),x8(this,FC6,"f").call(this,Y),this._emit("end")}}_emitFinal(){if(this.receivedMessages.at(-1))this._emit("finalMessage",x8(this,Vy,"m",Qe1).call(this))}async _fromReadableStream(A,q){let K=q?.signal,Y;if(K){if(K.aborted)this.controller.abort();Y=this.controller.abort.bind(this.controller),K.addEventListener("abort",Y)}try{x8(this,Vy,"m",Ue1).call(this),this._connected(null);let z=Of.fromReadableStream(A,this.controller);for await(let w of z)x8(this,Vy,"m",de1).call(this,w);if(z.controller.signal?.aborted)throw new mz;x8(this,Vy,"m",ce1).call(this)}finally{if(K&&Y)K.removeEventListener("abort",Y)}}[(sa=new WeakMap,aJ6=new WeakMap,BC6=new WeakMap,rK1=new WeakMap,gC6=new WeakMap,pC6=new WeakMap,oK1=new WeakMap,FC6=new WeakMap,UU=new WeakMap,QC6=new WeakMap,aK1=new WeakMap,sK1=new WeakMap,Qq6=new WeakMap,tK1=new WeakMap,eK1=new WeakMap,UC6=new WeakMap,A31=new WeakMap,Vy=new WeakSet,Qe1=function(){if(this.receivedMessages.length===0)throw new O4("stream ended without producing a Message with role=assistant");return this.receivedMessages.at(-1)},$dA=function(){if(this.receivedMessages.length===0)throw new O4("stream ended without producing a Message with role=assistant");let q=this.receivedMessages.at(-1).content.filter((K)=>K.type==="text").map((K)=>K.text);if(q.length===0)throw new O4("stream ended without producing a content block with type=text");return q.join(" ")},Ue1=function(){if(this.ended)return;$4(this,sa,void 0,"f")},de1=function(q){if(this.ended)return;let K=x8(this,Vy,"m",OdA).call(this,q);switch(this._emit("streamEvent",q,K),q.type){case"content_block_delta":{let Y=K.content.at(-1);switch(q.delta.type){case"text_delta":{if(Y.type==="text")this._emit("text",q.delta.text,Y.text||"");break}case"citations_delta":{if(Y.type==="text")this._emit("citation",q.delta.citation,Y.citations??[]);break}case"input_json_delta":{if(jdA(Y)&&Y.input)this._emit("inputJson",q.delta.partial_json,Y.input);break}case"thinking_delta":{if(Y.type==="thinking")this._emit("thinking",q.delta.thinking,Y.thinking);break}case"signature_delta":{if(Y.type==="thinking")this._emit("signature",Y.signature);break}case"compaction_delta":{if(Y.type==="compaction"&&Y.content)this._emit("compaction",Y.content);break}default:JdA(q.delta)}break}case"message_stop":{this._addMessageParam(K),this._addMessage(Be1(K,x8(this,aJ6,"f"),{logger:x8(this,UC6,"f")}),!0);break}case"content_block_stop":{this._emit("contentBlock",K.content.at(-1));break}case"message_start":{$4(this,sa,K,"f");break}case"content_block_start":case"message_delta":break}},ce1=function(){if(this.ended)throw new O4("stream has ended, this shouldn't happen");let q=x8(this,sa,"f");if(!q)throw new O4("request ended without sending any chunks");return $4(this,sa,void 0,"f"),Be1(q,x8(this,aJ6,"f"),{logger:x8(this,UC6,"f")})},OdA=function(q){let K=x8(this,sa,"f");if(q.type==="message_start"){if(K)throw new O4(`Unexpected event order, got ${q.type} before receiving "message_stop"`);return q.message}if(!K)throw new O4(`Unexpected event order, got ${q.type} before "message_start"`);switch(q.type){case"message_stop":return K;case"message_delta":if(K.container=q.delta.container,K.stop_reason=q.delta.stop_reason,K.stop_sequence=q.delta.stop_sequence,K.usage.output_tokens=q.usage.output_tokens,K.context_management=q.context_management,q.usage.input_tokens!=null)K.usage.input_tokens=q.usage.input_tokens;if(q.usage.cache_creation_input_tokens!=null)K.usage.cache_creation_input_tokens=q.usage.cache_creation_input_tokens;if(q.usage.cache_read_input_tokens!=null)K.usage.cache_read_input_tokens=q.usage.cache_read_input_tokens;if(q.usage.server_tool_use!=null)K.usage.server_tool_use=q.usage.server_tool_use;if(q.usage.iterations!=null)K.usage.iterations=q.usage.iterations;return K;case"content_block_start":return K.content.push(q.content_block),K;case"content_block_delta":{let Y=K.content.at(q.index);switch(q.delta.type){case"text_delta":{if(Y?.type==="text")K.content[q.index]={...Y,text:(Y.text||"")+q.delta.text};break}case"citations_delta":{if(Y?.type==="text")K.content[q.index]={...Y,citations:[...Y.citations??[],q.delta.citation]};break}case"input_json_delta":{if(Y&&jdA(Y)){let z=Y[HdA]||"";z+=q.delta.partial_json;let w={...Y};if(Object.defineProperty(w,HdA,{value:z,enumerable:!1,writable:!0}),z)try{w.input=iK1(z)}catch(_){let $=new O4(`Unable to parse tool parameter JSON from model. Please retry your request or adjust your prompt. Error: ${_}. JSON: ${z}`);x8(this,A31,"f").call(this,$)}K.content[q.index]=w}break}case"thinking_delta":{if(Y?.type==="thinking")K.content[q.index]={...Y,thinking:Y.thinking+q.delta.thinking};break}case"signature_delta":{if(Y?.type==="thinking")K.content[q.index]={...Y,signature:q.delta.signature};break}case"compaction_delta":{if(Y?.type==="compaction")K.content[q.index]={...Y,content:(Y.content||"")+q.delta.content};break}default:JdA(q.delta)}return K}case"content_block_stop":return K}},Symbol.asyncIterator)](){let A=[],q=[],K=!1;return this.on("streamEvent",(Y)=>{let z=q.shift();if(z)z.resolve(Y);else A.push(Y)}),this.on("end",()=>{K=!0;for(let Y of q)Y.resolve(void 0);q.length=0}),this.on("abort",(Y)=>{K=!0;for(let z of q)z.reject(Y);q.length=0}),this.on("error",(Y)=>{K=!0;for(let z of q)z.reject(Y);q.length=0}),{next:async()=>{if(!A.length){if(K)return{value:void 0,done:!0};return new Promise((z,w)=>q.push({resolve:z,reject:w})).then((z)=>z?{value:z,done:!1}:{value:void 0,done:!0})}return{value:A.shift(),done:!1}},return:async()=>{return this.abort(),{value:void 0,done:!0}}}}toReadableStream(){return new Of(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}}});var sJ6;var q31=E(()=>{sJ6=class sJ6 extends Error{constructor(A){let q=typeof A==="string"?A:A.map((K)=>{if(K.type==="text")return K.text;return`[${K.type}]`}).join(" ");super(q);this.name="ToolError",this.content=A}}});var DdA=1e5,XdA=`You have been working on the task described above but have not yet completed it. Write a continuation summary that will allow you (or another instance of yourself) to resume work efficiently in a future context window where the conversation history will be replaced with this summary. Your summary should be structured, concise, and actionable. Include:
1. Task Overview
The user's core request and success criteria
Any clarifications or constraints they specified
2. Current State
What has been completed so far
Files created, modified, or analyzed (with paths if relevant)
Key outputs or artifacts produced
3. Important Discoveries
Technical constraints or requirements uncovered
Decisions made and their rationale
Errors encountered and how they were resolved
What approaches were tried that didn't work (and why)
4. Next Steps
Specific actions needed to complete the task
Any blockers or open questions to resolve
Priority order if multiple steps remain
5. Context to Preserve
User preferences or style requirements
Domain-specific details that aren't obvious
Any promises made to the user
Be concise but complete—err on the side of including information that would prevent duplicate work or repeated mistakes. Write in a way that enables immediate resumption of the task.
Wrap your summary in <summary></summary> tags.`;function WdA(){let A,q;return{promise:new Promise((Y,z)=>{A=Y,q=z}),resolve:A,reject:q}}async function V93(A,q=A.messages.at(-1)){if(!q||q.role!=="assistant"||!q.content||typeof q.content==="string")return null;let K=q.content.filter((z)=>z.type==="tool_use");if(K.length===0)return null;return{role:"user",content:await Promise.all(K.map(async(z)=>{let w=A.tools.find((_)=>("name"in _?_.name:_.mcp_server_name)===z.name);if(!w||!("run"in w))return{type:"tool_result",tool_use_id:z.id,content:`Error: Tool '${z.name}' not found`,is_error:!0};try{let _=z.input;if("parse"in w&&w.parse)_=w.parse(_);let $=await w.run(_);return{type:"tool_result",tool_use_id:z.id,content:$}}catch(_){return{type:"tool_result",tool_use_id:z.id,content:_ instanceof sJ6?_.content:`Error: ${_ instanceof Error?_.message:String(_)}`,is_error:!0}}}))}}var cC6,tJ6,Uq6,ND,lC6,Xk,dU,ta,iC6,PdA,le1,nC6;var ie1=E(()=>{pU();q31();HG();Dk();bC6();nC6=class nC6{constructor(A,q,K){cC6.add(this),this.client=A,tJ6.set(this,!1),Uq6.set(this,!1),ND.set(this,void 0),lC6.set(this,void 0),Xk.set(this,void 0),dU.set(this,void 0),ta.set(this,void 0),iC6.set(this,0),$4(this,ND,{params:{...q,messages:structuredClone(q.messages)}},"f");let z=["BetaToolRunner",...xe1(q.tools,q.messages)].join(", ");$4(this,lC6,{...K,headers:D3([{"x-stainless-helper":z},K?.headers])},"f"),$4(this,ta,WdA(),"f")}async*[(tJ6=new WeakMap,Uq6=new WeakMap,ND=new WeakMap,lC6=new WeakMap,Xk=new WeakMap,dU=new WeakMap,ta=new WeakMap,iC6=new WeakMap,cC6=new WeakSet,PdA=async function(){let q=x8(this,ND,"f").params.compactionControl;if(!q||!q.enabled)return!1;let K=0;if(x8(this,Xk,"f")!==void 0)try{let O=await x8(this,Xk,"f");K=O.usage.input_tokens+(O.usage.cache_creation_input_tokens??0)+(O.usage.cache_read_input_tokens??0)+O.usage.output_tokens}catch{return!1}let Y=q.contextTokenThreshold??DdA;if(K<Y)return!1;let z=q.model??x8(this,ND,"f").params.model,w=q.summaryPrompt??XdA,_=x8(this,ND,"f").params.messages;if(_[_.length-1].role==="assistant"){let O=_[_.length-1];if(Array.isArray(O.content)){let H=O.content.filter((j)=>j.type!=="tool_use");if(H.length===0)_.pop();else O.content=H}}let $=await this.client.beta.messages.create({model:z,messages:[..._,{role:"user",content:[{type:"text",text:w}]}],max_tokens:x8(this,ND,"f").params.max_tokens},{headers:{"x-stainless-helper":"compaction"}});if($.content[0]?.type!=="text")throw new O4("Expected text response for compaction");return x8(this,ND,"f").params.messages=[{role:"user",content:$.content}],!0},Symbol.asyncIterator)](){var A;if(x8(this,tJ6,"f"))throw new O4("Cannot iterate over a consumed stream");$4(this,tJ6,!0,"f"),$4(this,Uq6,!0,"f"),$4(this,dU,void 0,"f");try{while(!0){let q;try{if(x8(this,ND,"f").params.max_iterations&&x8(this,iC6,"f")>=x8(this,ND,"f").params.max_iterations)break;$4(this,Uq6,!1,"f"),$4(this,dU,void 0,"f"),$4(this,iC6,(A=x8(this,iC6,"f"),A++,A),"f"),$4(this,Xk,void 0,"f");let{max_iterations:K,compactionControl:Y,...z}=x8(this,ND,"f").params;if(z.stream)q=this.client.beta.messages.stream({...z},x8(this,lC6,"f")),$4(this,Xk,q.finalMessage(),"f"),x8(this,Xk,"f").catch(()=>{}),yield q;else $4(this,Xk,this.client.beta.messages.create({...z,stream:!1},x8(this,lC6,"f")),"f"),yield x8(this,Xk,"f");if(!await x8(this,cC6,"m",PdA).call(this)){if(!x8(this,Uq6,"f")){let{role:$,content:O}=await x8(this,Xk,"f");x8(this,ND,"f").params.messages.push({role:$,content:O})}let _=await x8(this,cC6,"m",le1).call(this,x8(this,ND,"f").params.messages.at(-1));if(_)x8(this,ND,"f").params.messages.push(_);else if(!x8(this,Uq6,"f"))break}}finally{if(q)q.abort()}}if(!x8(this,Xk,"f"))throw new O4("ToolRunner concluded without a message from the server");x8(this,ta,"f").resolve(await x8(this,Xk,"f"))}catch(q){throw $4(this,tJ6,!1,"f"),x8(this,ta,"f").promise.catch(()=>{}),x8(this,ta,"f").reject(q),$4(this,ta,WdA(),"f"),q}}setMessagesParams(A){if(typeof A==="function")x8(this,ND,"f").params=A(x8(this,ND,"f").params);else x8(this,ND,"f").params=A;$4(this,Uq6,!0,"f"),$4(this,dU,void 0,"f")}async generateToolResponse(){let A=await x8(this,Xk,"f")??this.params.messages.at(-1);if(!A)return null;return x8(this,cC6,"m",le1).call(this,A)}done(){return x8(this,ta,"f").promise}async runUntilDone(){if(!x8(this,tJ6,"f"))for await(let A of this);return this.done()}get params(){return x8(this,ND,"f").params}pushMessages(...A){this.setMessagesParams((q)=>({...q,messages:[...q.messages,...A]}))}then(A,q){return this.runUntilDone().then(A,q)}};le1=async function(q){if(x8(this,dU,"f")!==void 0)return x8(this,dU,"f");return $4(this,dU,V93(x8(this,ND,"f").params,q),"f"),x8(this,dU,"f")}});var eJ6;var ne1=E(()=>{HG();Ve1();eJ6=class eJ6{constructor(A,q){this.iterator=A,this.controller=q}async*decoder(){let A=new ra;for await(let q of this.iterator)for(let K of A.decode(q))yield JSON.parse(K);for(let q of A.flush())yield JSON.parse(q)}[Symbol.asyncIterator](){return this.decoder()}static fromResponse(A,q){if(!A.body){if(q.abort(),typeof globalThis.navigator<"u"&&globalThis.navigator.product==="ReactNative")throw new O4("The default react-native fetch implementation does not support streaming. Please use expo/fetch: https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api");throw new O4("Attempted to iterate over a response with no body")}return new eJ6(LC6(A.body),q)}}});var rC6;var re1=E(()=>{Sm();Dk();ne1();aa();oa();rC6=class rC6 extends fH{create(A,q){let{betas:K,...Y}=A;return this._client.post("/v1/messages/batches?beta=true",{body:Y,...q,headers:D3([{"anthropic-beta":[...K??[],"message-batches-2024-09-24"].toString()},q?.headers])})}retrieve(A,q={},K){let{betas:Y}=q??{};return this._client.get(NO`/v1/messages/batches/${A}?beta=true`,{...K,headers:D3([{"anthropic-beta":[...Y??[],"message-batches-2024-09-24"].toString()},K?.headers])})}list(A={},q){let{betas:K,...Y}=A??{};return this._client.getAPIList("/v1/messages/batches?beta=true",QC,{query:Y,...q,headers:D3([{"anthropic-beta":[...K??[],"message-batches-2024-09-24"].toString()},q?.headers])})}delete(A,q={},K){let{betas:Y}=q??{};return this._client.delete(NO`/v1/messages/batches/${A}?beta=true`,{...K,headers:D3([{"anthropic-beta":[...Y??[],"message-batches-2024-09-24"].toString()},K?.headers])})}cancel(A,q={},K){let{betas:Y}=q??{};return this._client.post(NO`/v1/messages/batches/${A}/cancel?beta=true`,{...K,headers:D3([{"anthropic-beta":[...Y??[],"message-batches-2024-09-24"].toString()},K?.headers])})}async results(A,q={},K){let Y=await this.retrieve(A);if(!Y.results_url)throw new O4(`No batch \`results_url\`; Has it finished processing? ${Y.processing_status} - ${Y.id}`);let{betas:z}=q??{};return this._client.get(Y.results_url,{...K,headers:D3([{"anthropic-beta":[...z??[],"message-batches-2024-09-24"].toString(),Accept:"application/binary"},K?.headers]),stream:!0,__binaryResponse:!0})._thenUnwrap((w,_)=>eJ6.fromResponse(_.response,_.controller))}}});function ZdA(A){if(!A.output_format)return A;if(A.output_config?.format)throw new O4("Both output_format and output_config.format were provided. Please use only output_config.format (output_format is deprecated).");let{output_format:q,...K}=A;return{...K,output_config:{...A.output_config,format:q}}}var GdA,k93,ea;var oe1=E(()=>{aa();me1();Dk();bC6();pe1();MdA();ie1();q31();re1();re1();ie1();q31();GdA={"claude-1.3":"November 6th, 2024","claude-1.3-100k":"November 6th, 2024","claude-instant-1.1":"November 6th, 2024","claude-instant-1.1-100k":"November 6th, 2024","claude-instant-1.2":"November 6th, 2024","claude-3-sonnet-20240229":"July 21st, 2025","claude-3-opus-20240229":"January 5th, 2026","claude-2.1":"July 21st, 2025","claude-2.0":"July 21st, 2025","claude-3-7-sonnet-latest":"February 19th, 2026","claude-3-7-sonnet-20250219":"February 19th, 2026"},k93=["claude-opus-4-6"];ea=class ea extends fH{constructor(){super(...arguments);this.batches=new rC6(this._client)}create(A,q){let K=ZdA(A),{betas:Y,...z}=K;if(z.model in GdA)console.warn(`The model '${z.model}' is deprecated and will reach end-of-life on ${GdA[z.model]}
Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.`);if(z.model in k93&&z.thinking&&z.thinking.type==="enabled")console.warn(`Using Claude with ${z.model} and 'thinking.type=enabled' is deprecated. Use 'thinking.type=adaptive' instead which results in better model performance in our testing: https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking`);let w=this._client._options.timeout;if(!z.stream&&w==null){let $=lK1[z.model]??void 0;w=this._client.calculateNonstreamingTimeout(z.max_tokens,$)}let _=cK1(z.tools,z.messages);return this._client.post("/v1/messages?beta=true",{body:z,timeout:w??600000,...q,headers:D3([{...Y?.toString()!=null?{"anthropic-beta":Y?.toString()}:void 0},_,q?.headers]),stream:K.stream??!1})}parse(A,q){return q={...q,headers:D3([{"anthropic-beta":[...A.betas??[],"structured-outputs-2025-12-15"].toString()},q?.headers])},this.create(A,q).then((K)=>ge1(K,A,{logger:this._client.logger??console}))}stream(A,q){return dC6.createMessage(this,A,q)}countTokens(A,q){let K=ZdA(A),{betas:Y,...z}=K;return this._client.post("/v1/messages/count_tokens?beta=true",{body:z,...q,headers:D3([{"anthropic-beta":[...Y??[],"token-counting-2024-11-01"].toString()},q?.headers])})}toolRunner(A,q){return new nC6(this._client,A,q)}};ea.Batches=rC6;ea.BetaToolRunner=nC6;ea.ToolError=sJ6});var oC6;var ae1=E(()=>{Sm();Dk();rJ6();oa();oC6=class oC6 extends fH{create(A,q={},K){let{betas:Y,...z}=q??{};return this._client.post(NO`/v1/skills/${A}/versions?beta=true`,nJ6({body:z,...K,headers:D3([{"anthropic-beta":[...Y??[],"skills-2025-10-02"].toString()},K?.headers])},this._client))}retrieve(A,q,K){let{skill_id:Y,betas:z}=q;return this._client.get(NO`/v1/skills/${Y}/versions/${A}?beta=true`,{...K,headers:D3([{"anthropic-beta":[...z??[],"skills-2025-10-02"].toString()},K?.headers])})}list(A,q={},K){let{betas:Y,...z}=q??{};return this._client.getAPIList(NO`/v1/skills/${A}/versions?beta=true`,CC6,{query:z,...K,headers:D3([{"anthropic-beta":[...Y??[],"skills-2025-10-02"].toString()},K?.headers])})}delete(A,q,K){let{skill_id:Y,betas:z}=q;return this._client.delete(NO`/v1/skills/${Y}/versions/${A}?beta=true`,{...K,headers:D3([{"anthropic-beta":[...z??[],"skills-2025-10-02"].toString()},K?.headers])})}}});var AM6;var se1=E(()=>{ae1();ae1();Sm();Dk();rJ6();oa();AM6=class AM6 extends fH{constructor(){super(...arguments);this.versions=new oC6(this._client)}create(A={},q){let{betas:K,...Y}=A??{};return this._client.post("/v1/skills?beta=true",nJ6({body:Y,...q,headers:D3([{"anthropic-beta":[...K??[],"skills-2025-10-02"].toString()},q?.headers])},this._client,!1))}retrieve(A,q={},K){let{betas:Y}=q??{};return this._client.get(NO`/v1/skills/${A}?beta=true`,{...K,headers:D3([{"anthropic-beta":[...Y??[],"skills-2025-10-02"].toString()},K?.headers])})}list(A={},q){let{betas:K,...Y}=A??{};return this._client.getAPIList("/v1/skills?beta=true",CC6,{query:Y,...q,headers:D3([{"anthropic-beta":[...K??[],"skills-2025-10-02"].toString()},q?.headers])})}delete(A,q={},K){let{betas:Y}=q??{};return this._client.delete(NO`/v1/skills/${A}?beta=true`,{...K,headers:D3([{"anthropic-beta":[...Y??[],"skills-2025-10-02"].toString()},K?.headers])})}};AM6.Versions=oC6});var jG;var te1=E(()=>{be1();be1();ue1();ue1();oe1();oe1();se1();se1();jG=class jG extends fH{constructor(){super(...arguments);this.models=new mC6(this._client),this.messages=new ea(this._client),this.files=new uC6(this._client),this.skills=new AM6(this._client)}};jG.Models=mC6;jG.Messages=ea;jG.Files=uC6;jG.Skills=AM6});var As;var ee1=E(()=>{Dk();As=class As extends fH{create(A,q){let{betas:K,...Y}=A;return this._client.post("/v1/complete",{body:Y,timeout:this._client._options.timeout??600000,...q,headers:D3([{...K?.toString()!=null?{"anthropic-beta":K?.toString()}:void 0},q?.headers]),stream:A.stream??!1})}}});function fdA(A){return A?.output_config?.format}function A68(A,q,K){let Y=fdA(q);if(!q||!("parse"in(Y??{})))return{...A,content:A.content.map((z)=>{if(z.type==="text")return Object.defineProperty({...z},"parsed_output",{value:null,enumerable:!1});return z}),parsed_output:null};return q68(A,q,K)}function q68(A,q,K){let Y=null,z=A.content.map((w)=>{if(w.type==="text"){let _=R93(q,w.text);if(Y===null)Y=_;return Object.defineProperty({...w},"parsed_output",{value:_,enumerable:!1})}return w});return{...A,content:z,parsed_output:Y}}function R93(A,q){let K=fdA(A);if(K?.type!=="json_schema")return null;try{if("parse"in K)return K.parse(q);return JSON.parse(q)}catch(Y){throw new O4(`Failed to parse structured output: ${Y}`)}}var K68=E(()=>{HG()});function NdA(A){return A.type==="tool_use"||A.type==="server_tool_use"}function kdA(A){}var Ny,qs,qM6,aC6,K31,sC6,tC6,Y31,eC6,cU,AI6,z31,w31,dq6,_31,$31,qI6,Y68,TdA,z68,w68,_68,$68,vdA,VdA="__json_buf",KI6;var EdA=E(()=>{pU();aa();nK1();Fe1();K68();KI6=class KI6{constructor(A,q){Ny.add(this),this.messages=[],this.receivedMessages=[],qs.set(this,void 0),qM6.set(this,null),this.controller=new AbortController,aC6.set(this,void 0),K31.set(this,()=>{}),sC6.set(this,()=>{}),tC6.set(this,void 0),Y31.set(this,()=>{}),eC6.set(this,()=>{}),cU.set(this,{}),AI6.set(this,!1),z31.set(this,!1),w31.set(this,!1),dq6.set(this,!1),_31.set(this,void 0),$31.set(this,void 0),qI6.set(this,void 0),z68.set(this,(K)=>{if($4(this,z31,!0,"f"),FU(K))K=new mz;if(K instanceof mz)return $4(this,w31,!0,"f"),this._emit("abort",K);if(K instanceof O4)return this._emit("error",K);if(K instanceof Error){let Y=new O4(K.message);return Y.cause=K,this._emit("error",Y)}return this._emit("error",new O4(String(K)))}),$4(this,aC6,new Promise((K,Y)=>{$4(this,K31,K,"f"),$4(this,sC6,Y,"f")}),"f"),$4(this,tC6,new Promise((K,Y)=>{$4(this,Y31,K,"f"),$4(this,eC6,Y,"f")}),"f"),x8(this,aC6,"f").catch(()=>{}),x8(this,tC6,"f").catch(()=>{}),$4(this,qM6,A,"f"),$4(this,qI6,q?.logger??console,"f")}get response(){return x8(this,_31,"f")}get request_id(){return x8(this,$31,"f")}async withResponse(){$4(this,dq6,!0,"f");let A=await x8(this,aC6,"f");if(!A)throw Error("Could not resolve a `Response` object");return{data:this,response:A,request_id:A.headers.get("request-id")}}static fromReadableStream(A){let q=new KI6(null);return q._run(()=>q._fromReadableStream(A)),q}static createMessage(A,q,K,{logger:Y}={}){let z=new KI6(q,{logger:Y});for(let w of q.messages)z._addMessageParam(w);return $4(z,qM6,{...q,stream:!0},"f"),z._run(()=>z._createMessage(A,{...q,stream:!0},{...K,headers:{...K?.headers,"X-Stainless-Helper-Method":"stream"}})),z}_run(A){A().then(()=>{this._emitFinal(),this._emit("end")},x8(this,z68,"f"))}_addMessageParam(A){this.messages.push(A)}_addMessage(A,q=!0){if(this.receivedMessages.push(A),q)this._emit("message",A)}async _createMessage(A,q,K){let Y=K?.signal,z;if(Y){if(Y.aborted)this.controller.abort();z=this.controller.abort.bind(this.controller),Y.addEventListener("abort",z)}try{x8(this,Ny,"m",w68).call(this);let{response:w,data:_}=await A.create({...q,stream:!0},{...K,signal:this.controller.signal}).withResponse();this._connected(w);for await(let $ of _)x8(this,Ny,"m",_68).call(this,$);if(_.controller.signal?.aborted)throw new mz;x8(this,Ny,"m",$68).call(this)}finally{if(Y&&z)Y.removeEventListener("abort",z)}}_connected(A){if(this.ended)return;$4(this,_31,A,"f"),$4(this,$31,A?.headers.get("request-id"),"f"),x8(this,K31,"f").call(this,A),this._emit("connect")}get ended(){return x8(this,AI6,"f")}get errored(){return x8(this,z31,"f")}get aborted(){return x8(this,w31,"f")}abort(){this.controller.abort()}on(A,q){return(x8(this,cU,"f")[A]||(x8(this,cU,"f")[A]=[])).push({listener:q}),this}off(A,q){let K=x8(this,cU,"f")[A];if(!K)return this;let Y=K.findIndex((z)=>z.listener===q);if(Y>=0)K.splice(Y,1);return this}once(A,q){return(x8(this,cU,"f")[A]||(x8(this,cU,"f")[A]=[])).push({listener:q,once:!0}),this}emitted(A){return new Promise((q,K)=>{if($4(this,dq6,!0,"f"),A!=="error")this.once("error",K);this.once(A,q)})}async done(){$4(this,dq6,!0,"f"),await x8(this,tC6,"f")}get currentMessage(){return x8(this,qs,"f")}async finalMessage(){return await this.done(),x8(this,Ny,"m",Y68).call(this)}async finalText(){return await this.done(),x8(this,Ny,"m",TdA).call(this)}_emit(A,...q){if(x8(this,AI6,"f"))return;if(A==="end")$4(this,AI6,!0,"f"),x8(this,Y31,"f").call(this);let K=x8(this,cU,"f")[A];if(K)x8(this,cU,"f")[A]=K.filter((Y)=>!Y.once),K.forEach(({listener:Y})=>Y(...q));if(A==="abort"){let Y=q[0];if(!x8(this,dq6,"f")&&!K?.length)Promise.reject(Y);x8(this,sC6,"f").call(this,Y),x8(this,eC6,"f").call(this,Y),this._emit("end");return}if(A==="error"){let Y=q[0];if(!x8(this,dq6,"f")&&!K?.length)Promise.reject(Y);x8(this,sC6,"f").call(this,Y),x8(this,eC6,"f").call(this,Y),this._emit("end")}}_emitFinal(){if(this.receivedMessages.at(-1))this._emit("finalMessage",x8(this,Ny,"m",Y68).call(this))}async _fromReadableStream(A,q){let K=q?.signal,Y;if(K){if(K.aborted)this.controller.abort();Y=this.controller.abort.bind(this.controller),K.addEventListener("abort",Y)}try{x8(this,Ny,"m",w68).call(this),this._connected(null);let z=Of.fromReadableStream(A,this.controller);for await(let w of z)x8(this,Ny,"m",_68).call(this,w);if(z.controller.signal?.aborted)throw new mz;x8(this,Ny,"m",$68).call(this)}finally{if(K&&Y)K.removeEventListener("abort",Y)}}[(qs=new WeakMap,qM6=new WeakMap,aC6=new WeakMap,K31=new WeakMap,sC6=new WeakMap,tC6=new WeakMap,Y31=new WeakMap,eC6=new WeakMap,cU=new WeakMap,AI6=new WeakMap,z31=new WeakMap,w31=new WeakMap,dq6=new WeakMap,_31=new WeakMap,$31=new WeakMap,qI6=new WeakMap,z68=new WeakMap,Ny=new WeakSet,Y68=function(){if(this.receivedMessages.length===0)throw new O4("stream ended without producing a Message with role=assistant");return this.receivedMessages.at(-1)},TdA=function(){if(this.receivedMessages.length===0)throw new O4("stream ended without producing a Message with role=assistant");let q=this.receivedMessages.at(-1).content.filter((K)=>K.type==="text").map((K)=>K.text);if(q.length===0)throw new O4("stream ended without producing a content block with type=text");return q.join(" ")},w68=function(){if(this.ended)return;$4(this,qs,void 0,"f")},_68=function(q){if(this.ended)return;let K=x8(this,Ny,"m",vdA).call(this,q);switch(this._emit("streamEvent",q,K),q.type){case"content_block_delta":{let Y=K.content.at(-1);switch(q.delta.type){case"text_delta":{if(Y.type==="text")this._emit("text",q.delta.text,Y.text||"");break}case"citations_delta":{if(Y.type==="text")this._emit("citation",q.delta.citation,Y.citations??[]);break}case"input_json_delta":{if(NdA(Y)&&Y.input)this._emit("inputJson",q.delta.partial_json,Y.input);break}case"thinking_delta":{if(Y.type==="thinking")this._emit("thinking",q.delta.thinking,Y.thinking);break}case"signature_delta":{if(Y.type==="thinking")this._emit("signature",Y.signature);break}default:kdA(q.delta)}break}case"message_stop":{this._addMessageParam(K),this._addMessage(A68(K,x8(this,qM6,"f"),{logger:x8(this,qI6,"f")}),!0);break}case"content_block_stop":{this._emit("contentBlock",K.content.at(-1));break}case"message_start":{$4(this,qs,K,"f");break}case"content_block_start":case"message_delta":break}},$68=function(){if(this.ended)throw new O4("stream has ended, this shouldn't happen");let q=x8(this,qs,"f");if(!q)throw new O4("request ended without sending any chunks");return $4(this,qs,void 0,"f"),A68(q,x8(this,qM6,"f"),{logger:x8(this,qI6,"f")})},vdA=function(q){let K=x8(this,qs,"f");if(q.type==="message_start"){if(K)throw new O4(`Unexpected event order, got ${q.type} before receiving "message_stop"`);return q.message}if(!K)throw new O4(`Unexpected event order, got ${q.type} before "message_start"`);switch(q.type){case"message_stop":return K;case"message_delta":if(K.stop_reason=q.delta.stop_reason,K.stop_sequence=q.delta.stop_sequence,K.usage.output_tokens=q.usage.output_tokens,q.usage.input_tokens!=null)K.usage.input_tokens=q.usage.input_tokens;if(q.usage.cache_creation_input_tokens!=null)K.usage.cache_creation_input_tokens=q.usage.cache_creation_input_tokens;if(q.usage.cache_read_input_tokens!=null)K.usage.cache_read_input_tokens=q.usage.cache_read_input_tokens;if(q.usage.server_tool_use!=null)K.usage.server_tool_use=q.usage.server_tool_use;return K;case"content_block_start":return K.content.push({...q.content_block}),K;case"content_block_delta":{let Y=K.content.at(q.index);switch(q.delta.type){case"text_delta":{if(Y?.type==="text")K.content[q.index]={...Y,text:(Y.text||"")+q.delta.text};break}case"citations_delta":{if(Y?.type==="text")K.content[q.index]={...Y,citations:[...Y.citations??[],q.delta.citation]};break}case"input_json_delta":{if(Y&&NdA(Y)){let z=Y[VdA]||"";z+=q.delta.partial_json;let w={...Y};if(Object.defineProperty(w,VdA,{value:z,enumerable:!1,writable:!0}),z)w.input=iK1(z);K.content[q.index]=w}break}case"thinking_delta":{if(Y?.type==="thinking")K.content[q.index]={...Y,thinking:Y.thinking+q.delta.thinking};break}case"signature_delta":{if(Y?.type==="thinking")K.content[q.index]={...Y,signature:q.delta.signature};break}default:kdA(q.delta)}return K}case"content_block_stop":return K}},Symbol.asyncIterator)](){let A=[],q=[],K=!1;return this.on("streamEvent",(Y)=>{let z=q.shift();if(z)z.resolve(Y);else A.push(Y)}),this.on("end",()=>{K=!0;for(let Y of q)Y.resolve(void 0);q.length=0}),this.on("abort",(Y)=>{K=!0;for(let z of q)z.reject(Y);q.length=0}),this.on("error",(Y)=>{K=!0;for(let z of q)z.reject(Y);q.length=0}),{next:async()=>{if(!A.length){if(K)return{value:void 0,done:!0};return new Promise((z,w)=>q.push({resolve:z,reject:w})).then((z)=>z?{value:z,done:!1}:{value:void 0,done:!0})}return{value:A.shift(),done:!1}},return:async()=>{return this.abort(),{value:void 0,done:!0}}}}toReadableStream(){return new Of(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}}});var YI6;var O68=E(()=>{Sm();Dk();ne1();aa();oa();YI6=class YI6 extends fH{create(A,q){return this._client.post("/v1/messages/batches",{body:A,...q})}retrieve(A,q){return this._client.get(NO`/v1/messages/batches/${A}`,q)}list(A={},q){return this._client.getAPIList("/v1/messages/batches",QC,{query:A,...q})}delete(A,q){return this._client.delete(NO`/v1/messages/batches/${A}`,q)}cancel(A,q){return this._client.post(NO`/v1/messages/batches/${A}/cancel`,q)}async results(A,q){let K=await this.retrieve(A);if(!K.results_url)throw new O4(`No batch \`results_url\`; Has it finished processing? ${K.processing_status} - ${K.id}`);return this._client.get(K.results_url,{...q,headers:D3([{Accept:"application/binary"},q?.headers]),stream:!0,__binaryResponse:!0})._thenUnwrap((Y,z)=>eJ6.fromResponse(z.response,z.controller))}}});var Pk,LdA,h93;var H68=E(()=>{Dk();bC6();EdA();K68();O68();O68();me1();Pk=class Pk extends fH{constructor(){super(...arguments);this.batches=new YI6(this._client)}create(A,q){if(A.model in LdA)console.warn(`The model '${A.model}' is deprecated and will reach end-of-life on ${LdA[A.model]}
Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.`);if(A.model in h93&&A.thinking&&A.thinking.type==="enabled")console.warn(`Using Claude with ${A.model} and 'thinking.type=enabled' is deprecated. Use 'thinking.type=adaptive' instead which results in better model performance in our testing: https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking`);let K=this._client._options.timeout;if(!A.stream&&K==null){let z=lK1[A.model]??void 0;K=this._client.calculateNonstreamingTimeout(A.max_tokens,z)}let Y=cK1(A.tools,A.messages);return this._client.post("/v1/messages",{body:A,timeout:K??600000,...q,headers:D3([Y,q?.headers]),stream:A.stream??!1})}parse(A,q){return this.create(A,q).then((K)=>q68(K,A,{logger:this._client.logger??console}))}stream(A,q){return KI6.createMessage(this,A,q,{logger:this._client.logger??console})}countTokens(A,q){return this._client.post("/v1/messages/count_tokens",{body:A,...q})}};LdA={"claude-1.3":"November 6th, 2024","claude-1.3-100k":"November 6th, 2024","claude-instant-1.1":"November 6th, 2024","claude-instant-1.1-100k":"November 6th, 2024","claude-instant-1.2":"November 6th, 2024","claude-3-sonnet-20240229":"July 21st, 2025","claude-3-opus-20240229":"January 5th, 2026","claude-2.1":"July 21st, 2025","claude-2.0":"July 21st, 2025","claude-3-7-sonnet-latest":"February 19th, 2026","claude-3-7-sonnet-20250219":"February 19th, 2026","claude-3-5-haiku-latest":"February 19th, 2026","claude-3-5-haiku-20241022":"February 19th, 2026"},h93=["claude-opus-4-6"];Pk.Batches=YI6});var KM6;var j68=E(()=>{Sm();Dk();oa();KM6=class KM6 extends fH{retrieve(A,q={},K){let{betas:Y}=q??{};return this._client.get(NO`/v1/models/${A}`,{...K,headers:D3([{...Y?.toString()!=null?{"anthropic-beta":Y?.toString()}:void 0},K?.headers])})}list(A={},q){let{betas:K,...Y}=A??{};return this._client.getAPIList("/v1/models",QC,{query:Y,...q,headers:D3([{...K?.toString()!=null?{"anthropic-beta":K?.toString()}:void 0},q?.headers])})}}});var zI6=E(()=>{te1();ee1();H68();j68();qdA()});var wI6=(A)=>{if(typeof globalThis.process<"u")return globalThis.process.env?.[A]?.trim()??void 0;if(typeof globalThis.Deno<"u")return globalThis.Deno.env?.get?.(A)?.trim();return};class Bz{constructor({baseURL:A=wI6("ANTHROPIC_BASE_URL"),apiKey:q=wI6("ANTHROPIC_API_KEY")??null,authToken:K=wI6("ANTHROPIC_AUTH_TOKEN")??null,...Y}={}){J68.add(this),H31.set(this,void 0);let z={apiKey:q,authToken:K,...Y,baseURL:A||"https://api.anthropic.com"};if(!z.dangerouslyAllowBrowser&&QUA())throw new O4(`It looks like you're running in a browser-like environment.

This is disabled by default, as it risks exposing your secret API credentials to attackers.
If you understand the risks and have appropriate mitigations in place,
you can set the \`dangerouslyAllowBrowser\` option to \`true\`, e.g.,

new Anthropic({ apiKey, dangerouslyAllowBrowser: true });
`);this.baseURL=z.baseURL,this.timeout=z.timeout??M68.DEFAULT_TIMEOUT,this.logger=z.logger??console;let w="warn";this.logLevel=w,this.logLevel=Ne1(z.logLevel,"ClientOptions.logLevel",this)??Ne1(wI6("ANTHROPIC_LOG"),"process.env['ANTHROPIC_LOG']",this)??w,this.fetchOptions=z.fetchOptions,this.maxRetries=z.maxRetries??2,this.fetch=z.fetch??dUA(),$4(this,H31,lUA,"f"),this._options=z,this.apiKey=typeof q==="string"?q:null,this.authToken=K}withOptions(A){return new this.constructor({...this._options,baseURL:this.baseURL,maxRetries:this.maxRetries,timeout:this.timeout,logger:this.logger,logLevel:this.logLevel,fetch:this.fetch,fetchOptions:this.fetchOptions,apiKey:this.apiKey,authToken:this.authToken,...A})}defaultQuery(){return this._options.defaultQuery}validateHeaders({values:A,nulls:q}){if(A.get("x-api-key")||A.get("authorization"))return;if(this.apiKey&&A.get("x-api-key"))return;if(q.has("x-api-key"))return;if(this.authToken&&A.get("authorization"))return;if(q.has("authorization"))return;throw Error('Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the "X-Api-Key" or "Authorization" headers to be explicitly omitted')}async authHeaders(A){return D3([await this.apiKeyAuth(A),await this.bearerAuth(A)])}async apiKeyAuth(A){if(this.apiKey==null)return;return D3([{"X-Api-Key":this.apiKey}])}async bearerAuth(A){if(this.authToken==null)return;return D3([{Authorization:`Bearer ${this.authToken}`}])}stringifyQuery(A){return Object.entries(A).filter(([q,K])=>typeof K<"u").map(([q,K])=>{if(typeof K==="string"||typeof K==="number"||typeof K==="boolean")return`${encodeURIComponent(q)}=${encodeURIComponent(K)}`;if(K===null)return`${encodeURIComponent(q)}=`;throw new O4(`Cannot stringify type ${typeof K}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`)}).join("&")}getUserAgent(){return`${this.constructor.name}/JS ${na}`}defaultIdempotencyKey(){return`stainless-node-retry-${We1()}`}makeStatusError(A,q,K,Y){return v4.generate(A,q,K,Y)}buildURL(A,q,K){let Y=!x8(this,J68,"m",ydA).call(this)&&K||this.baseURL,z=xUA(A)?new URL(A):new URL(Y+(Y.endsWith("/")&&A.startsWith("/")?A.slice(1):A)),w=this.defaultQuery();if(!bUA(w))q={...w,...q};if(typeof q==="object"&&q&&!Array.isArray(q))z.search=this.stringifyQuery(q);return z.toString()}_calculateNonstreamingTimeout(A){if(3600*A/128000>600)throw new O4("Streaming is required for operations that may take longer than 10 minutes. See https://github.com/anthropics/anthropic-sdk-typescript#streaming-responses for more details");return 600000}async prepareOptions(A){}async prepareRequest(A,{url:q,options:K}){}get(A,q){return this.methodRequest("get",A,q)}post(A,q){return this.methodRequest("post",A,q)}patch(A,q){return this.methodRequest("patch",A,q)}put(A,q){return this.methodRequest("put",A,q)}delete(A,q){return this.methodRequest("delete",A,q)}methodRequest(A,q,K){return this.request(Promise.resolve(K).then((Y)=>{return{method:A,path:q,...Y}}))}request(A,q=null){return new pq6(this,this.makeRequest(A,q,void 0))}async makeRequest(A,q,K){let Y=await A,z=Y.maxRetries??this.maxRetries;if(q==null)q=z;await this.prepareOptions(Y);let{req:w,url:_,timeout:$}=await this.buildRequest(Y,{retryCount:z-q});await this.prepareRequest(w,{url:_,options:Y});let O="log_"+(Math.random()*16777216|0).toString(16).padStart(6,"0"),H=K===void 0?"":`, retryOf: ${K}`,j=Date.now();if(yX(this).debug(`[${O}] sending request`,QU({retryOfRequestLogID:K,method:Y.method,url:_,options:Y,headers:w.headers})),Y.signal?.aborted)throw new mz;let J=new AbortController,M=await this.fetchWithTimeout(_,w,$,J).catch(fC6),D=Date.now();if(M instanceof globalThis.Error){let W=`retrying, ${q} attempts remaining`;if(Y.signal?.aborted)throw new mz;let G=FU(M)||/timed? ?out/i.test(String(M)+("cause"in M?String(M.cause):""));if(q)return yX(this).info(`[${O}] connection ${G?"timed out":"failed"} - ${W}`),yX(this).debug(`[${O}] connection ${G?"timed out":"failed"} (${W})`,QU({retryOfRequestLogID:K,url:_,durationMs:D-j,message:M.message})),this.retryRequest(Y,q,K??O);if(yX(this).info(`[${O}] connection ${G?"timed out":"failed"} - error; no more retries left`),yX(this).debug(`[${O}] connection ${G?"timed out":"failed"} (error; no more retries left)`,QU({retryOfRequestLogID:K,url:_,durationMs:D-j,message:M.message})),G)throw new Rm;throw new OG({cause:M})}let X=[...M.headers.entries()].filter(([W])=>W==="request-id").map(([W,G])=>", "+W+": "+JSON.stringify(G)).join(""),P=`[${O}${H}${X}] ${w.method} ${_} ${M.ok?"succeeded":"failed"} with status ${M.status} in ${D-j}ms`;if(!M.ok){let W=await this.shouldRetry(M);if(q&&W){let N=`retrying, ${q} attempts remaining`;return await cUA(M.body),yX(this).info(`${P} - ${N}`),yX(this).debug(`[${O}] response error (${N})`,QU({retryOfRequestLogID:K,url:M.url,status:M.status,headers:M.headers,durationMs:D-j})),this.retryRequest(Y,q,K??O,M.headers)}let G=W?"error; no more retries left":"error; not retryable";yX(this).info(`${P} - ${G}`);let Z=await M.text().catch((N)=>fC6(N).message),f=xK1(Z),v=f?void 0:Z;throw yX(this).debug(`[${O}] response error (${G})`,QU({retryOfRequestLogID:K,url:M.url,status:M.status,headers:M.headers,message:v,durationMs:Date.now()-j})),this.makeStatusError(M.status,f,v,M.headers)}return yX(this).info(P),yX(this).debug(`[${O}] response start`,QU({retryOfRequestLogID:K,url:M.url,status:M.status,headers:M.headers,durationMs:D-j})),{response:M,options:Y,controller:J,requestLogID:O,retryOfRequestLogID:K,startTime:j}}getAPIList(A,q,K){return this.requestAPIList(q,K&&"then"in K?K.then((Y)=>({method:"get",path:A,...Y})):{method:"get",path:A,...K})}requestAPIList(A,q){let K=this.makeRequest(q,null,void 0);return new QK1(this,K,A)}async fetchWithTimeout(A,q,K,Y){let{signal:z,method:w,..._}=q||{},$=this._makeAbort(Y);if(z)z.addEventListener("abort",$,{once:!0});let O=setTimeout($,K),H=globalThis.ReadableStream&&_.body instanceof globalThis.ReadableStream||typeof _.body==="object"&&_.body!==null&&Symbol.asyncIterator in _.body,j={signal:Y.signal,...H?{duplex:"half"}:{},method:"GET",..._};if(w)j.method=w.toUpperCase();try{return await this.fetch.call(void 0,A,j)}finally{clearTimeout(O)}}async shouldRetry(A){let q=A.headers.get("x-should-retry");if(q==="true")return!0;if(q==="false")return!1;if(A.status===408)return!0;if(A.status===409)return!0;if(A.status===429)return!0;if(A.status>=500)return!0;return!1}async retryRequest(A,q,K,Y){let z,w=Y?.get("retry-after-ms");if(w){let $=parseFloat(w);if(!Number.isNaN($))z=$}let _=Y?.get("retry-after");if(_&&!z){let $=parseFloat(_);if(!Number.isNaN($))z=$*1000;else z=Date.parse(_)-Date.now()}if(!(z&&0<=z&&z<60000)){let $=A.maxRetries??this.maxRetries;z=this.calculateDefaultRetryTimeoutMillis(q,$)}return await BUA(z),this.makeRequest(A,q-1,K)}calculateDefaultRetryTimeoutMillis(A,q){let z=q-A,w=Math.min(0.5*Math.pow(2,z),8),_=1-Math.random()*0.25;return w*_*1000}calculateNonstreamingTimeout(A,q){if(3600000*A/128000>600000||q!=null&&A>q)throw new O4("Streaming is required for operations that may take longer than 10 minutes. See https://github.com/anthropics/anthropic-sdk-typescript#long-requests for more details");return 600000}async buildRequest(A,{retryCount:q=0}={}){let K={...A},{method:Y,path:z,query:w,defaultBaseURL:_}=K,$=this.buildURL(z,w,_);if("timeout"in K)mUA("timeout",K.timeout);K.timeout=K.timeout??this.timeout;let{bodyHeaders:O,body:H}=this.buildBody({options:K}),j=await this.buildHeaders({options:A,method:Y,bodyHeaders:O,retryCount:q});return{req:{method:Y,headers:j,...K.signal&&{signal:K.signal},...globalThis.ReadableStream&&H instanceof globalThis.ReadableStream&&{duplex:"half"},...H&&{body:H},...this.fetchOptions??{},...K.fetchOptions??{}},url:$,timeout:K.timeout}}async buildHeaders({options:A,method:q,bodyHeaders:K,retryCount:Y}){let z={};if(this.idempotencyHeader&&q!=="get"){if(!A.idempotencyKey)A.idempotencyKey=this.defaultIdempotencyKey();z[this.idempotencyHeader]=A.idempotencyKey}let w=D3([z,{Accept:"application/json","User-Agent":this.getUserAgent(),"X-Stainless-Retry-Count":String(Y),...A.timeout?{"X-Stainless-Timeout":String(Math.trunc(A.timeout/1000))}:{},...UUA(),...this._options.dangerouslyAllowBrowser?{"anthropic-dangerous-direct-browser-access":"true"}:void 0,"anthropic-version":"2023-06-01"},await this.authHeaders(A),this._options.defaultHeaders,K,A.headers]);return this.validateHeaders(w),w.values}_makeAbort(A){return()=>A.abort()}buildBody({options:{body:A,headers:q}}){if(!A)return{bodyHeaders:void 0,body:void 0};let K=D3([q]);if(ArrayBuffer.isView(A)||A instanceof ArrayBuffer||A instanceof DataView||typeof A==="string"&&K.values.has("content-type")||globalThis.Blob&&A instanceof globalThis.Blob||A instanceof FormData||A instanceof URLSearchParams||globalThis.ReadableStream&&A instanceof globalThis.ReadableStream)return{bodyHeaders:void 0,body:A};else if(typeof A==="object"&&((Symbol.asyncIterator in A)||(Symbol.iterator in A)&&("next"in A)&&typeof A.next==="function"))return{bodyHeaders:void 0,body:bK1(A)};else return x8(this,H31,"f").call(this,{body:A,headers:K})}}var J68,M68,H31,ydA,RdA="\\n\\nHuman:",SdA="\\n\\nAssistant:",UC;var lU=E(()=>{pU();gq6();fe1();HG();Sm();Ie1();zI6();pK1();ee1();j68();te1();H68();fe1();Dk();BK1();gq6();M68=Bz,H31=new WeakMap,J68=new WeakSet,ydA=function(){return this.baseURL!=="https://api.anthropic.com"};Bz.Anthropic=M68;Bz.HUMAN_PROMPT=RdA;Bz.AI_PROMPT=SdA;Bz.DEFAULT_TIMEOUT=600000;Bz.AnthropicError=O4;Bz.APIError=v4;Bz.APIConnectionError=OG;Bz.APIConnectionTimeoutError=Rm;Bz.APIUserAbortError=mz;Bz.NotFoundError=Bq6;Bz.ConflictError=VC6;Bz.RateLimitError=kC6;Bz.BadRequestError=TC6;Bz.AuthenticationError=mq6;Bz.InternalServerError=EC6;Bz.PermissionDeniedError=vC6;Bz.UnprocessableEntityError=NC6;Bz.toFile=UK1;UC=class UC extends Bz{constructor(){super(...arguments);this.completions=new As(this),this.messages=new Pk(this),this.models=new KM6(this),this.beta=new jG(this)}};UC.Completions=As;UC.Messages=Pk;UC.Models=KM6;UC.Beta=jG});var kv=E(()=>{lU();Ie1();pK1();lU();Sm();HG()});var a4="Bash";function WA(A,q){if(!process.env.SRT_DEBUG)return;let K=q?.level||"info",Y="[SandboxDebug]";switch(K){case"error":console.error(`${Y} ${A}`);break;case"warn":console.warn(`${Y} ${A}`);break;default:console.error(`${Y} ${A}`)}}import{Agent as C93,createServer as I93}from"node:http";import{request as hdA}from"node:http";import{request as x93}from"node:https";import{connect as CdA}from"node:net";import{URL as b93}from"node:url";function IdA(A){let q=I93();return q.on("connect",async(K,Y)=>{Y.on("error",(z)=>{WA(`Client socket error: ${z.message}`,{level:"error"})});try{let[z,w]=K.url.split(":"),_=w===void 0?void 0:parseInt(w,10);if(!z||!_){WA(`Invalid CONNECT request: ${K.url}`,{level:"error"}),Y.end(`HTTP/1.1 400 Bad Request\r
\r
`);return}if(!await A.filter(_,z,Y)){WA(`Connection blocked to ${z}:${_}`,{level:"error"}),Y.end(`HTTP/1.1 403 Forbidden\r
Content-Type: text/plain\r
X-Proxy-Error: blocked-by-allowlist\r
\r
Connection blocked by network allowlist`);return}let O=A.getMitmSocketPath?.(z);if(O){WA(`Routing CONNECT ${z}:${_} through MITM proxy at ${O}`);let H=CdA({path:O},()=>{H.write(`CONNECT ${z}:${_} HTTP/1.1\r
Host: ${z}:${_}\r
\r
`)}),j="",J=(M)=>{j+=M.toString();let D=j.indexOf(`\r
\r
`);if(D!==-1){H.removeListener("data",J);let X=j.substring(0,j.indexOf(`\r
`));if(X.includes(" 200 ")){Y.write(`HTTP/1.1 200 Connection Established\r
\r
`);let P=j.substring(D+4);if(P.length>0)Y.write(P);H.pipe(Y),Y.pipe(H)}else WA(`MITM proxy rejected CONNECT: ${X}`,{level:"error"}),Y.end(`HTTP/1.1 502 Bad Gateway\r
\r
`),H.destroy()}};H.on("data",J),H.on("error",(M)=>{WA(`MITM proxy connection failed: ${M.message}`,{level:"error"}),Y.end(`HTTP/1.1 502 Bad Gateway\r
\r
`)}),Y.on("error",(M)=>{WA(`Client socket error: ${M.message}`,{level:"error"}),H.destroy()}),Y.on("end",()=>H.end()),H.on("end",()=>Y.end())}else{let H=CdA(_,z,()=>{Y.write(`HTTP/1.1 200 Connection Established\r
\r
`),H.pipe(Y),Y.pipe(H)});H.on("error",(j)=>{WA(`CONNECT tunnel failed: ${j.message}`,{level:"error"}),Y.end(`HTTP/1.1 502 Bad Gateway\r
\r
`)}),Y.on("error",(j)=>{WA(`Client socket error: ${j.message}`,{level:"error"}),H.destroy()}),Y.on("end",()=>H.end()),H.on("end",()=>Y.end())}}catch(z){WA(`Error handling CONNECT: ${z}`,{level:"error"}),Y.end(`HTTP/1.1 500 Internal Server Error\r
\r
`)}}),q.on("request",async(K,Y)=>{try{let z=new b93(K.url),w=z.hostname,_=z.port?parseInt(z.port,10):z.protocol==="https:"?443:80;if(!await A.filter(_,w,K.socket)){WA(`HTTP request blocked to ${w}:${_}`,{level:"error"}),Y.writeHead(403,{"Content-Type":"text/plain","X-Proxy-Error":"blocked-by-allowlist"}),Y.end("Connection blocked by network allowlist");return}let O=A.getMitmSocketPath?.(w);if(O){WA(`Routing HTTP ${K.method} ${w}:${_} through MITM proxy at ${O}`);let H=new C93({socketPath:O}),j=hdA({agent:H,path:K.url,method:K.method,headers:{...K.headers,host:z.host}},(J)=>{Y.writeHead(J.statusCode,J.headers),J.pipe(Y)});j.on("error",(J)=>{if(WA(`MITM proxy request failed: ${J.message}`,{level:"error"}),!Y.headersSent)Y.writeHead(502,{"Content-Type":"text/plain"}),Y.end("Bad Gateway")}),K.pipe(j)}else{let j=(z.protocol==="https:"?x93:hdA)({hostname:w,port:_,path:z.pathname+z.search,method:K.method,headers:{...K.headers,host:z.host}},(J)=>{Y.writeHead(J.statusCode,J.headers),J.pipe(Y)});j.on("error",(J)=>{if(WA(`Proxy request failed: ${J.message}`,{level:"error"}),!Y.headersSent)Y.writeHead(502,{"Content-Type":"text/plain"}),Y.end("Bad Gateway")}),K.pipe(j)}}catch(z){WA(`Error handling HTTP request: ${z}`,{level:"error"}),Y.writeHead(500,{"Content-Type":"text/plain"}),Y.end("Internal Server Error")}}),q}var xdA=()=>{};var FdA=h((opw,pdA)=>{var{create:u93,defineProperty:j31,getOwnPropertyDescriptor:m93,getOwnPropertyNames:B93,getPrototypeOf:g93}=Object,p93=Object.prototype.hasOwnProperty,F93=(A,q)=>{for(var K in q)j31(A,K,{get:q[K],enumerable:!0})},bdA=(A,q,K,Y)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let z of B93(q))if(!p93.call(A,z)&&z!==K)j31(A,z,{get:()=>q[z],enumerable:!(Y=m93(q,z))||Y.enumerable})}return A},udA=(A,q,K)=>(K=A!=null?u93(g93(A)):{},bdA(q||!A||!A.__esModule?j31(K,"default",{value:A,enumerable:!0}):K,A)),Q93=(A)=>bdA(j31({},"__esModule",{value:!0}),A),mdA={};F93(mdA,{Socks5Server:()=>gdA,createServer:()=>l93,defaultConnectionHandler:()=>X68});pdA.exports=Q93(mdA);var U93=udA(u6("net")),BdA=((A)=>{return A[A.connect=1]="connect",A[A.bind=2]="bind",A[A.udp=3]="udp",A})(BdA||{}),D68=((A)=>{return A[A.REQUEST_GRANTED=0]="REQUEST_GRANTED",A[A.GENERAL_FAILURE=1]="GENERAL_FAILURE",A[A.CONNECTION_NOT_ALLOWED=2]="CONNECTION_NOT_ALLOWED",A[A.NETWORK_UNREACHABLE=3]="NETWORK_UNREACHABLE",A[A.HOST_UNREACHABLE=4]="HOST_UNREACHABLE",A[A.CONNECTION_REFUSED=5]="CONNECTION_REFUSED",A[A.TTL_EXPIRED=6]="TTL_EXPIRED",A[A.COMMAND_NOT_SUPPORTED=7]="COMMAND_NOT_SUPPORTED",A[A.ADDRESS_TYPE_NOT_SUPPORTED=8]="ADDRESS_TYPE_NOT_SUPPORTED",A})(D68||{}),d93=class{constructor(A,q){this.errorHandler=()=>{},this.metadata={},this.socket=q,this.server=A,q.on("error",this.errorHandler),q.pause(),this.handleGreeting()}readBytes(A){return new Promise((q)=>{let K=Buffer.allocUnsafe(A),Y=0,z=(w)=>{let _=Math.min(w.length,A-Y);if(w.copy(K,Y,0,_),Y+=_,Y<A)return;this.socket.removeListener("data",z),this.socket.push(w.subarray(_)),q(K),this.socket.pause()};this.socket.on("data",z),this.socket.resume()})}async handleGreeting(){if((await this.readBytes(1)).readUInt8()!==5)return this.socket.destroy();let q=(await this.readBytes(1)).readUInt8();if(q>128||q===0)return this.socket.destroy();let K=await this.readBytes(q),Y=this.server.authHandler?2:0;if(!K.includes(Y))return this.socket.write(Buffer.from([5,255])),this.socket.destroy();if(this.socket.write(Buffer.from([5,Y])),this.server.authHandler)this.handleUserPassword();else this.handleConnectionRequest()}async handleUserPassword(){await this.readBytes(1);let A=(await this.readBytes(1)).readUint8(),q=(await this.readBytes(A)).toString(),K=(await this.readBytes(1)).readUint8(),Y=(await this.readBytes(K)).toString();this.username=q,this.password=Y;let z=!1,w=()=>{if(z)return;z=!0,this.socket.write(Buffer.from([1,0])),this.handleConnectionRequest()},_=()=>{if(z)return;z=!0,this.socket.write(Buffer.from([1,1])),this.socket.destroy()},$=await this.server.authHandler(this,w,_);if($===!0)w();else if($===!1)_()}async handleConnectionRequest(){await this.readBytes(1);let A=(await this.readBytes(1))[0],q=BdA[A];if(!q)return this.socket.destroy();this.command=q,await this.readBytes(1);let K=(await this.readBytes(1)).readUInt8(),Y="";switch(K){case 1:Y=(await this.readBytes(4)).join(".");break;case 3:let H=(await this.readBytes(1)).readUInt8();Y=(await this.readBytes(H)).toString();break;case 4:let j=await this.readBytes(16);for(let J=0;J<16;J++){if(J%2===0&&J>0)Y+=":";Y+=`${j[J]<16?"0":""}${j[J].toString(16)}`}break;default:this.socket.destroy();return}let z=(await this.readBytes(2)).readUInt16BE();if(!this.server.supportedCommands.has(q))return this.socket.write(Buffer.from([5,7])),this.socket.destroy();this.destAddress=Y,this.destPort=z;let w=!1,_=()=>{if(w)return;w=!0,this.connect()};if(!this.server.rulesetValidator)return _();let $=()=>{if(w)return;w=!0,this.socket.write(Buffer.from([5,2,0,1,0,0,0,0,0,0])),this.socket.destroy()},O=await this.server.rulesetValidator(this,_,$);if(O===!0)_();else if(O===!1)$()}connect(){this.socket.removeListener("error",this.errorHandler),this.server.connectionHandler(this,(A)=>{if(D68[A]===void 0)throw Error(`"${A}" is not a valid status.`);if(this.socket.write(Buffer.from([5,D68[A],0,1,0,0,0,0,0,0])),A!=="REQUEST_GRANTED")this.socket.destroy()}),this.socket.resume()}},c93=udA(u6("net"));function X68(A,q){if(A.command!=="connect")return q("COMMAND_NOT_SUPPORTED");A.socket.on("error",()=>{});let K=c93.default.createConnection({host:A.destAddress,port:A.destPort});K.setNoDelay();let Y=!1;return K.on("error",(z)=>{if(!Y)switch(z.code){case"EINVAL":case"ENOENT":case"ENOTFOUND":case"ETIMEDOUT":case"EADDRNOTAVAIL":case"EHOSTUNREACH":q("HOST_UNREACHABLE");break;case"ENETUNREACH":q("NETWORK_UNREACHABLE");break;case"ECONNREFUSED":q("CONNECTION_REFUSED");break;default:q("GENERAL_FAILURE")}}),K.on("ready",()=>{Y=!0,q("REQUEST_GRANTED"),A.socket.pipe(K).pipe(A.socket)}),A.socket.on("close",()=>K.destroy()),K}var gdA=class{constructor(){this.supportedCommands=new Set(["connect"]),this.connectionHandler=X68,this.server=U93.default.createServer((A)=>{A.setNoDelay(),this._handleConnection(A)})}listen(...A){return this.server.listen(...A),this}close(A){return this.server.close(A),this}setAuthHandler(A){return this.authHandler=A,this}disableAuthHandler(){return this.authHandler=void 0,this}setRulesetValidator(A){return this.rulesetValidator=A,this}disableRulesetValidator(){return this.rulesetValidator=void 0,this}setConnectionHandler(A){return this.connectionHandler=A,this}useDefaultConnectionHandler(){return this.connectionHandler=X68,this}_handleConnection(A){return new d93(this,A),this}};function l93(A){let q=new gdA;if(A?.auth)q.setAuthHandler((K)=>{return K.username===A.auth.username&&K.password===A.auth.password});if(A?.port)q.listen(A.port,A.hostname);return q}});function UdA(A){let q=QdA.createServer();return q.setRulesetValidator(async(K)=>{try{let{destAddress:Y,destPort:z}=K;if(WA(`Connection request to ${Y}:${z}`),!await A.filter(z,Y))return WA(`Connection blocked to ${Y}:${z}`,{level:"error"}),!1;return WA(`Connection allowed to ${Y}:${z}`),!0}catch(Y){return WA(`Error validating connection: ${Y}`,{level:"error"}),!1}}),{server:q,getPort(){try{let K=q?.server;if(K&&typeof K?.address==="function"){let Y=K.address();if(Y&&typeof Y==="object"&&"port"in Y)return Y.port}}catch(K){WA(`Error getting port: ${K}`,{level:"error"})}return},listen(K,Y){return new Promise((z,w)=>{let _=()=>{let $=this.getPort();if($)WA(`SOCKS proxy listening on ${Y}:${$}`),z($);else w(Error("Failed to get SOCKS proxy server port"))};q.listen(K,Y,_)})},async close(){return new Promise((K,Y)=>{q.close((z)=>{if(z){let w=z.message?.toLowerCase()||"";if(!(w.includes("not running")||w.includes("already closed")||w.includes("not listening"))){Y(z);return}}K()})})},unref(){try{let K=q?.server;if(K&&typeof K?.unref==="function")K.unref()}catch(K){WA(`Error calling unref: ${K}`,{level:"error"})}}}}var QdA;var ddA=E(()=>{QdA=q6(FdA(),1)});import{spawnSync as i93}from"node:child_process";function iU(A){if(typeof globalThis.Bun<"u")return globalThis.Bun.which(A);let q=i93("which",[A],{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:1000});if(q.status===0&&q.stdout)return q.stdout.trim();return null}var _I6=()=>{};function n93(){this.__data__=[],this.size=0}var cdA;var ldA=E(()=>{cdA=n93});function r93(A,q){return A===q||A!==A&&q!==q}var J31;var P68=E(()=>{J31=r93});function o93(A,q){var K=A.length;while(K--)if(J31(A[K][0],q))return K;return-1}var Ks;var $I6=E(()=>{P68();Ks=o93});function t93(A){var q=this.__data__,K=Ks(q,A);if(K<0)return!1;var Y=q.length-1;if(K==Y)q.pop();else s93.call(q,K,1);return--this.size,!0}var a93,s93,idA;var ndA=E(()=>{$I6();a93=Array.prototype,s93=a93.splice;idA=t93});function e93(A){var q=this.__data__,K=Ks(q,A);return K<0?void 0:q[K][1]}var rdA;var odA=E(()=>{$I6();rdA=e93});function AY3(A){return Ks(this.__data__,A)>-1}var adA;var sdA=E(()=>{$I6();adA=AY3});function qY3(A,q){var K=this.__data__,Y=Ks(K,A);if(Y<0)++this.size,K.push([A,q]);else K[Y][1]=q;return this}var tdA;var edA=E(()=>{$I6();tdA=qY3});function YM6(A){var q=-1,K=A==null?0:A.length;this.clear();while(++q<K){var Y=A[q];this.set(Y[0],Y[1])}}var Ys;var OI6=E(()=>{ldA();ndA();odA();sdA();edA();YM6.prototype.clear=cdA;YM6.prototype.delete=idA;YM6.prototype.get=rdA;YM6.prototype.has=adA;YM6.prototype.set=tdA;Ys=YM6});function KY3(){this.__data__=new Ys,this.size=0}var AcA;var qcA=E(()=>{OI6();AcA=KY3});function YY3(A){var q=this.__data__,K=q.delete(A);return this.size=q.size,K}var KcA;var YcA=E(()=>{KcA=YY3});function zY3(A){return this.__data__.get(A)}var zcA;var wcA=E(()=>{zcA=zY3});function wY3(A){return this.__data__.has(A)}var _cA;var $cA=E(()=>{_cA=wY3});var _Y3,M31;var W68=E(()=>{_Y3=typeof global=="object"&&global&&global.Object===Object&&global,M31=_Y3});var $Y3,OY3,OM;var dC=E(()=>{W68();$Y3=typeof self=="object"&&self&&self.Object===Object&&self,OY3=M31||$Y3||Function("return this")(),OM=OY3});var HY3,nU;var D31=E(()=>{dC();HY3=OM.Symbol,nU=HY3});function MY3(A){var q=jY3.call(A,HI6),K=A[HI6];try{A[HI6]=void 0;var Y=!0}catch(w){}var z=JY3.call(A);if(Y)if(q)A[HI6]=K;else delete A[HI6];return z}var OcA,jY3,JY3,HI6,HcA;var jcA=E(()=>{D31();OcA=Object.prototype,jY3=OcA.hasOwnProperty,JY3=OcA.toString,HI6=nU?nU.toStringTag:void 0;HcA=MY3});function PY3(A){return XY3.call(A)}var DY3,XY3,JcA;var McA=E(()=>{DY3=Object.prototype,XY3=DY3.toString;JcA=PY3});function ZY3(A){if(A==null)return A===void 0?GY3:WY3;return DcA&&DcA in Object(A)?HcA(A):JcA(A)}var WY3="[object Null]",GY3="[object Undefined]",DcA,rU;var jI6=E(()=>{D31();jcA();McA();DcA=nU?nU.toStringTag:void 0;rU=ZY3});function fY3(A){var q=typeof A;return A!=null&&(q=="object"||q=="function")}var hm;var zM6=E(()=>{hm=fY3});function kY3(A){if(!hm(A))return!1;var q=rU(A);return q==vY3||q==VY3||q==TY3||q==NY3}var TY3="[object AsyncFunction]",vY3="[object Function]",VY3="[object GeneratorFunction]",NY3="[object Proxy]",X31;var G68=E(()=>{jI6();zM6();X31=kY3});var EY3,P31;var XcA=E(()=>{dC();EY3=OM["__core-js_shared__"],P31=EY3});function LY3(A){return!!PcA&&PcA in A}var PcA,WcA;var GcA=E(()=>{XcA();PcA=function(){var A=/[^.]+$/.exec(P31&&P31.keys&&P31.keys.IE_PROTO||"");return A?"Symbol(src)_1."+A:""}();WcA=LY3});function SY3(A){if(A!=null){try{return RY3.call(A)}catch(q){}try{return A+""}catch(q){}}return""}var yY3,RY3,oU;var Z68=E(()=>{yY3=Function.prototype,RY3=yY3.toString;oU=SY3});function BY3(A){if(!hm(A)||WcA(A))return!1;var q=X31(A)?mY3:CY3;return q.test(oU(A))}var hY3,CY3,IY3,xY3,bY3,uY3,mY3,ZcA;var fcA=E(()=>{G68();GcA();zM6();Z68();hY3=/[\\^$.*+?()[\]{}|]/g,CY3=/^\[object .+?Constructor\]$/,IY3=Function.prototype,xY3=Object.prototype,bY3=IY3.toString,uY3=xY3.hasOwnProperty,mY3=RegExp("^"+bY3.call(uY3).replace(hY3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");ZcA=BY3});function gY3(A,q){return A==null?void 0:A[q]}var TcA;var vcA=E(()=>{TcA=gY3});function pY3(A,q){var K=TcA(A,q);return ZcA(K)?K:void 0}var Ev;var zs=E(()=>{fcA();vcA();Ev=pY3});var FY3,ws;var W31=E(()=>{zs();dC();FY3=Ev(OM,"Map"),ws=FY3});var QY3,aU;var JI6=E(()=>{zs();QY3=Ev(Object,"create"),aU=QY3});function UY3(){this.__data__=aU?aU(null):{},this.size=0}var VcA;var NcA=E(()=>{JI6();VcA=UY3});function dY3(A){var q=this.has(A)&&delete this.__data__[A];return this.size-=q?1:0,q}var kcA;var EcA=E(()=>{kcA=dY3});function nY3(A){var q=this.__data__;if(aU){var K=q[A];return K===cY3?void 0:K}return iY3.call(q,A)?q[A]:void 0}var cY3="__lodash_hash_undefined__",lY3,iY3,LcA;var ycA=E(()=>{JI6();lY3=Object.prototype,iY3=lY3.hasOwnProperty;LcA=nY3});function aY3(A){var q=this.__data__;return aU?q[A]!==void 0:oY3.call(q,A)}var rY3,oY3,RcA;var ScA=E(()=>{JI6();rY3=Object.prototype,oY3=rY3.hasOwnProperty;RcA=aY3});function tY3(A,q){var K=this.__data__;return this.size+=this.has(A)?0:1,K[A]=aU&&q===void 0?sY3:q,this}var sY3="__lodash_hash_undefined__",hcA;var CcA=E(()=>{JI6();hcA=tY3});function wM6(A){var q=-1,K=A==null?0:A.length;this.clear();while(++q<K){var Y=A[q];this.set(Y[0],Y[1])}}var f68;var IcA=E(()=>{NcA();EcA();ycA();ScA();CcA();wM6.prototype.clear=VcA;wM6.prototype.delete=kcA;wM6.prototype.get=LcA;wM6.prototype.has=RcA;wM6.prototype.set=hcA;f68=wM6});function eY3(){this.size=0,this.__data__={hash:new f68,map:new(ws||Ys),string:new f68}}var xcA;var bcA=E(()=>{IcA();OI6();W31();xcA=eY3});function Az3(A){var q=typeof A;return q=="string"||q=="number"||q=="symbol"||q=="boolean"?A!=="__proto__":A===null}var ucA;var mcA=E(()=>{ucA=Az3});function qz3(A,q){var K=A.__data__;return ucA(q)?K[typeof q=="string"?"string":"hash"]:K.map}var _s;var MI6=E(()=>{mcA();_s=qz3});function Kz3(A){var q=_s(this,A).delete(A);return this.size-=q?1:0,q}var BcA;var gcA=E(()=>{MI6();BcA=Kz3});function Yz3(A){return _s(this,A).get(A)}var pcA;var FcA=E(()=>{MI6();pcA=Yz3});function zz3(A){return _s(this,A).has(A)}var QcA;var UcA=E(()=>{MI6();QcA=zz3});function wz3(A,q){var K=_s(this,A),Y=K.size;return K.set(A,q),this.size+=K.size==Y?0:1,this}var dcA;var ccA=E(()=>{MI6();dcA=wz3});function _M6(A){var q=-1,K=A==null?0:A.length;this.clear();while(++q<K){var Y=A[q];this.set(Y[0],Y[1])}}var lcA;var icA=E(()=>{bcA();gcA();FcA();UcA();ccA();_M6.prototype.clear=xcA;_M6.prototype.delete=BcA;_M6.prototype.get=pcA;_M6.prototype.has=QcA;_M6.prototype.set=dcA;lcA=_M6});function $z3(A,q){var K=this.__data__;if(K instanceof Ys){var Y=K.__data__;if(!ws||Y.length<_z3-1)return Y.push([A,q]),this.size=++K.size,this;K=this.__data__=new lcA(Y)}return K.set(A,q),this.size=K.size,this}var _z3=200,ncA;var rcA=E(()=>{OI6();W31();icA();ncA=$z3});function $M6(A){var q=this.__data__=new Ys(A);this.size=q.size}var ocA;var acA=E(()=>{OI6();qcA();YcA();wcA();$cA();rcA();$M6.prototype.clear=AcA;$M6.prototype.delete=KcA;$M6.prototype.get=zcA;$M6.prototype.has=_cA;$M6.prototype.set=ncA;ocA=$M6});function Oz3(A,q){var K=-1,Y=A==null?0:A.length;while(++K<Y)if(q(A[K],K,A)===!1)break;return A}var scA;var tcA=E(()=>{scA=Oz3});var Hz3,T68;var ecA=E(()=>{zs();Hz3=function(){try{var A=Ev(Object,"defineProperty");return A({},"",{}),A}catch(q){}}(),T68=Hz3});function jz3(A,q,K){if(q=="__proto__"&&T68)T68(A,q,{configurable:!0,enumerable:!0,value:K,writable:!0});else A[q]=K}var G31;var v68=E(()=>{ecA();G31=jz3});function Dz3(A,q,K){var Y=A[q];if(!(Mz3.call(A,q)&&J31(Y,K))||K===void 0&&!(q in A))G31(A,q,K)}var Jz3,Mz3,Z31;var V68=E(()=>{v68();P68();Jz3=Object.prototype,Mz3=Jz3.hasOwnProperty;Z31=Dz3});function Xz3(A,q,K,Y){var z=!K;K||(K={});var w=-1,_=q.length;while(++w<_){var $=q[w],O=Y?Y(K[$],A[$],$,K,A):void 0;if(O===void 0)O=A[$];if(z)G31(K,$,O);else Z31(K,$,O)}return K}var $s;var DI6=E(()=>{V68();v68();$s=Xz3});function Pz3(A,q){var K=-1,Y=Array(A);while(++K<A)Y[K]=q(K);return Y}var AlA;var qlA=E(()=>{AlA=Pz3});function Wz3(A){return A!=null&&typeof A=="object"}var Cm;var OM6=E(()=>{Cm=Wz3});function Zz3(A){return Cm(A)&&rU(A)==Gz3}var Gz3="[object Arguments]",N68;var KlA=E(()=>{jI6();OM6();N68=Zz3});var YlA,fz3,Tz3,vz3,zlA;var wlA=E(()=>{KlA();OM6();YlA=Object.prototype,fz3=YlA.hasOwnProperty,Tz3=YlA.propertyIsEnumerable,vz3=N68(function(){return arguments}())?N68:function(A){return Cm(A)&&fz3.call(A,"callee")&&!Tz3.call(A,"callee")},zlA=vz3});var Vz3,HM6;var f31=E(()=>{Vz3=Array.isArray,HM6=Vz3});function Nz3(){return!1}var _lA;var $lA=E(()=>{_lA=Nz3});var v31={};d1(v31,{default:()=>XI6});var jlA,OlA,kz3,HlA,Ez3,Lz3,XI6;var k68=E(()=>{dC();$lA();jlA=typeof v31=="object"&&v31&&!v31.nodeType&&v31,OlA=jlA&&typeof T31=="object"&&T31&&!T31.nodeType&&T31,kz3=OlA&&OlA.exports===jlA,HlA=kz3?OM.Buffer:void 0,Ez3=HlA?HlA.isBuffer:void 0,Lz3=Ez3||_lA,XI6=Lz3});function Sz3(A,q){var K=typeof A;return q=q==null?yz3:q,!!q&&(K=="number"||K!="symbol"&&Rz3.test(A))&&(A>-1&&A%1==0&&A<q)}var yz3=9007199254740991,Rz3,JlA;var MlA=E(()=>{Rz3=/^(?:0|[1-9]\d*)$/;JlA=Sz3});function Cz3(A){return typeof A=="number"&&A>-1&&A%1==0&&A<=hz3}var hz3=9007199254740991,V31;var E68=E(()=>{V31=Cz3});function Kw3(A){return Cm(A)&&V31(A.length)&&!!p$[rU(A)]}var Iz3="[object Arguments]",xz3="[object Array]",bz3="[object Boolean]",uz3="[object Date]",mz3="[object Error]",Bz3="[object Function]",gz3="[object Map]",pz3="[object Number]",Fz3="[object Object]",Qz3="[object RegExp]",Uz3="[object Set]",dz3="[object String]",cz3="[object WeakMap]",lz3="[object ArrayBuffer]",iz3="[object DataView]",nz3="[object Float32Array]",rz3="[object Float64Array]",oz3="[object Int8Array]",az3="[object Int16Array]",sz3="[object Int32Array]",tz3="[object Uint8Array]",ez3="[object Uint8ClampedArray]",Aw3="[object Uint16Array]",qw3="[object Uint32Array]",p$,DlA;var XlA=E(()=>{jI6();E68();OM6();p$={};p$[nz3]=p$[rz3]=p$[oz3]=p$[az3]=p$[sz3]=p$[tz3]=p$[ez3]=p$[Aw3]=p$[qw3]=!0;p$[Iz3]=p$[xz3]=p$[lz3]=p$[bz3]=p$[iz3]=p$[uz3]=p$[mz3]=p$[Bz3]=p$[gz3]=p$[pz3]=p$[Fz3]=p$[Qz3]=p$[Uz3]=p$[dz3]=p$[cz3]=!1;DlA=Kw3});function Yw3(A){return function(q){return A(q)}}var jM6;var N31=E(()=>{jM6=Yw3});var E31={};d1(E31,{default:()=>Im});var PlA,PI6,zw3,L68,ww3,Im;var L31=E(()=>{W68();PlA=typeof E31=="object"&&E31&&!E31.nodeType&&E31,PI6=PlA&&typeof k31=="object"&&k31&&!k31.nodeType&&k31,zw3=PI6&&PI6.exports===PlA,L68=zw3&&M31.process,ww3=function(){try{var A=PI6&&PI6.require&&PI6.require("util").types;if(A)return A;return L68&&L68.binding&&L68.binding("util")}catch(q){}}(),Im=ww3});var WlA,_w3,GlA;var ZlA=E(()=>{XlA();N31();L31();WlA=Im&&Im.isTypedArray,_w3=WlA?jM6(WlA):DlA,GlA=_w3});function Hw3(A,q){var K=HM6(A),Y=!K&&zlA(A),z=!K&&!Y&&XI6(A),w=!K&&!Y&&!z&&GlA(A),_=K||Y||z||w,$=_?AlA(A.length,String):[],O=$.length;for(var H in A)if((q||Ow3.call(A,H))&&!(_&&(H=="length"||z&&(H=="offset"||H=="parent")||w&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||JlA(H,O))))$.push(H);return $}var $w3,Ow3,y31;var y68=E(()=>{qlA();wlA();f31();k68();MlA();ZlA();$w3=Object.prototype,Ow3=$w3.hasOwnProperty;y31=Hw3});function Jw3(A){var q=A&&A.constructor,K=typeof q=="function"&&q.prototype||jw3;return A===K}var jw3,JM6;var R31=E(()=>{jw3=Object.prototype;JM6=Jw3});function Mw3(A,q){return function(K){return A(q(K))}}var S31;var R68=E(()=>{S31=Mw3});var Dw3,flA;var TlA=E(()=>{R68();Dw3=S31(Object.keys,Object),flA=Dw3});function Ww3(A){if(!JM6(A))return flA(A);var q=[];for(var K in Object(A))if(Pw3.call(A,K)&&K!="constructor")q.push(K);return q}var Xw3,Pw3,vlA;var VlA=E(()=>{R31();TlA();Xw3=Object.prototype,Pw3=Xw3.hasOwnProperty;vlA=Ww3});function Gw3(A){return A!=null&&V31(A.length)&&!X31(A)}var h31;var S68=E(()=>{G68();E68();h31=Gw3});function Zw3(A){return h31(A)?y31(A):vlA(A)}var MM6;var C31=E(()=>{y68();VlA();S68();MM6=Zw3});function fw3(A,q){return A&&$s(q,MM6(q),A)}var NlA;var klA=E(()=>{DI6();C31();NlA=fw3});function Tw3(A){var q=[];if(A!=null)for(var K in Object(A))q.push(K);return q}var ElA;var LlA=E(()=>{ElA=Tw3});function Nw3(A){if(!hm(A))return ElA(A);var q=JM6(A),K=[];for(var Y in A)if(!(Y=="constructor"&&(q||!Vw3.call(A,Y))))K.push(Y);return K}var vw3,Vw3,ylA;var RlA=E(()=>{zM6();R31();LlA();vw3=Object.prototype,Vw3=vw3.hasOwnProperty;ylA=Nw3});function kw3(A){return h31(A)?y31(A,!0):ylA(A)}var DM6;var I31=E(()=>{y68();RlA();S68();DM6=kw3});function Ew3(A,q){return A&&$s(q,DM6(q),A)}var SlA;var hlA=E(()=>{DI6();I31();SlA=Ew3});var b31={};d1(b31,{default:()=>h68});function yw3(A,q){if(q)return A.slice();var K=A.length,Y=xlA?xlA(K):new A.constructor(K);return A.copy(Y),Y}var blA,ClA,Lw3,IlA,xlA,h68;var ulA=E(()=>{dC();blA=typeof b31=="object"&&b31&&!b31.nodeType&&b31,ClA=blA&&typeof x31=="object"&&x31&&!x31.nodeType&&x31,Lw3=ClA&&ClA.exports===blA,IlA=Lw3?OM.Buffer:void 0,xlA=IlA?IlA.allocUnsafe:void 0;h68=yw3});function Rw3(A,q){var K=-1,Y=A.length;q||(q=Array(Y));while(++K<Y)q[K]=A[K];return q}var mlA;var BlA=E(()=>{mlA=Rw3});function Sw3(A,q){var K=-1,Y=A==null?0:A.length,z=0,w=[];while(++K<Y){var _=A[K];if(q(_,K,A))w[z++]=_}return w}var glA;var plA=E(()=>{glA=Sw3});function hw3(){return[]}var u31;var C68=E(()=>{u31=hw3});var Cw3,Iw3,FlA,xw3,XM6;var m31=E(()=>{plA();C68();Cw3=Object.prototype,Iw3=Cw3.propertyIsEnumerable,FlA=Object.getOwnPropertySymbols,xw3=!FlA?u31:function(A){if(A==null)return[];return A=Object(A),glA(FlA(A),function(q){return Iw3.call(A,q)})},XM6=xw3});function bw3(A,q){return $s(A,XM6(A),q)}var QlA;var UlA=E(()=>{DI6();m31();QlA=bw3});function uw3(A,q){var K=-1,Y=q.length,z=A.length;while(++K<Y)A[z+K]=q[K];return A}var B31;var I68=E(()=>{B31=uw3});var mw3,g31;var x68=E(()=>{R68();mw3=S31(Object.getPrototypeOf,Object),g31=mw3});var Bw3,gw3,p31;var b68=E(()=>{I68();x68();m31();C68();Bw3=Object.getOwnPropertySymbols,gw3=!Bw3?u31:function(A){var q=[];while(A)B31(q,XM6(A)),A=g31(A);return q},p31=gw3});function pw3(A,q){return $s(A,p31(A),q)}var dlA;var clA=E(()=>{DI6();b68();dlA=pw3});function Fw3(A,q,K){var Y=q(A);return HM6(A)?Y:B31(Y,K(A))}var F31;var u68=E(()=>{I68();f31();F31=Fw3});function Qw3(A){return F31(A,MM6,XM6)}var llA;var ilA=E(()=>{u68();m31();C31();llA=Qw3});function Uw3(A){return F31(A,DM6,p31)}var nlA;var rlA=E(()=>{u68();b68();I31();nlA=Uw3});var dw3,Q31;var olA=E(()=>{zs();dC();dw3=Ev(OM,"DataView"),Q31=dw3});var cw3,U31;var alA=E(()=>{zs();dC();cw3=Ev(OM,"Promise"),U31=cw3});var lw3,d31;var slA=E(()=>{zs();dC();lw3=Ev(OM,"Set"),d31=lw3});var iw3,c31;var tlA=E(()=>{zs();dC();iw3=Ev(OM,"WeakMap"),c31=iw3});var elA="[object Map]",nw3="[object Object]",AiA="[object Promise]",qiA="[object Set]",KiA="[object WeakMap]",YiA="[object DataView]",rw3,ow3,aw3,sw3,tw3,cq6,PM6;var l31=E(()=>{olA();W31();alA();slA();tlA();jI6();Z68();rw3=oU(Q31),ow3=oU(ws),aw3=oU(U31),sw3=oU(d31),tw3=oU(c31),cq6=rU;if(Q31&&cq6(new Q31(new ArrayBuffer(1)))!=YiA||ws&&cq6(new ws)!=elA||U31&&cq6(U31.resolve())!=AiA||d31&&cq6(new d31)!=qiA||c31&&cq6(new c31)!=KiA)cq6=function(A){var q=rU(A),K=q==nw3?A.constructor:void 0,Y=K?oU(K):"";if(Y)switch(Y){case rw3:return YiA;case ow3:return elA;case aw3:return AiA;case sw3:return qiA;case tw3:return KiA}return q};PM6=cq6});function q23(A){var q=A.length,K=new A.constructor(q);if(q&&typeof A[0]=="string"&&A23.call(A,"index"))K.index=A.index,K.input=A.input;return K}var ew3,A23,ziA;var wiA=E(()=>{ew3=Object.prototype,A23=ew3.hasOwnProperty;ziA=q23});var K23,m68;var _iA=E(()=>{dC();K23=OM.Uint8Array,m68=K23});function Y23(A){var q=new A.constructor(A.byteLength);return new m68(q).set(new m68(A)),q}var WM6;var i31=E(()=>{_iA();WM6=Y23});function z23(A,q){var K=q?WM6(A.buffer):A.buffer;return new A.constructor(K,A.byteOffset,A.byteLength)}var $iA;var OiA=E(()=>{i31();$iA=z23});function _23(A){var q=new A.constructor(A.source,w23.exec(A));return q.lastIndex=A.lastIndex,q}var w23,HiA;var jiA=E(()=>{w23=/\w*$/;HiA=_23});function $23(A){return MiA?Object(MiA.call(A)):{}}var JiA,MiA,DiA;var XiA=E(()=>{D31();JiA=nU?nU.prototype:void 0,MiA=JiA?JiA.valueOf:void 0;DiA=$23});function O23(A,q){var K=q?WM6(A.buffer):A.buffer;return new A.constructor(K,A.byteOffset,A.length)}var PiA;var WiA=E(()=>{i31();PiA=O23});function R23(A,q,K){var Y=A.constructor;switch(q){case G23:return WM6(A);case H23:case j23:return new Y(+A);case Z23:return $iA(A,K);case f23:case T23:case v23:case V23:case N23:case k23:case E23:case L23:case y23:return PiA(A,K);case J23:return new Y;case M23:case P23:return new Y(A);case D23:return HiA(A);case X23:return new Y;case W23:return DiA(A)}}var H23="[object Boolean]",j23="[object Date]",J23="[object Map]",M23="[object Number]",D23="[object RegExp]",X23="[object Set]",P23="[object String]",W23="[object Symbol]",G23="[object ArrayBuffer]",Z23="[object DataView]",f23="[object Float32Array]",T23="[object Float64Array]",v23="[object Int8Array]",V23="[object Int16Array]",N23="[object Int32Array]",k23="[object Uint8Array]",E23="[object Uint8ClampedArray]",L23="[object Uint16Array]",y23="[object Uint32Array]",GiA;var ZiA=E(()=>{i31();OiA();jiA();XiA();WiA();GiA=R23});var fiA,S23,TiA;var viA=E(()=>{zM6();fiA=Object.create,S23=function(){function A(){}return function(q){if(!hm(q))return{};if(fiA)return fiA(q);A.prototype=q;var K=new A;return A.prototype=void 0,K}}(),TiA=S23});function h23(A){return typeof A.constructor=="function"&&!JM6(A)?TiA(g31(A)):{}}var ViA;var NiA=E(()=>{viA();x68();R31();ViA=h23});function I23(A){return Cm(A)&&PM6(A)==C23}var C23="[object Map]",kiA;var EiA=E(()=>{l31();OM6();kiA=I23});var LiA,x23,yiA;var RiA=E(()=>{EiA();N31();L31();LiA=Im&&Im.isMap,x23=LiA?jM6(LiA):kiA,yiA=x23});function u23(A){return Cm(A)&&PM6(A)==b23}var b23="[object Set]",SiA;var hiA=E(()=>{l31();OM6();SiA=u23});var CiA,m23,IiA;var xiA=E(()=>{hiA();N31();L31();CiA=Im&&Im.isSet,m23=CiA?jM6(CiA):SiA,IiA=m23});function n31(A,q,K,Y,z,w){var _,$=q&B23,O=q&g23,H=q&p23;if(K)_=z?K(A,Y,z,w):K(A);if(_!==void 0)return _;if(!hm(A))return A;var j=HM6(A);if(j){if(_=ziA(A),!$)return mlA(A,_)}else{var J=PM6(A),M=J==uiA||J==c23;if(XI6(A))return h68(A,$);if(J==miA||J==biA||M&&!z){if(_=O||M?{}:ViA(A),!$)return O?dlA(A,SlA(_,A)):QlA(A,NlA(_,A))}else{if(!n_[J])return z?A:{};_=GiA(A,J,$)}}w||(w=new ocA);var D=w.get(A);if(D)return D;if(w.set(A,_),IiA(A))A.forEach(function(W){_.add(n31(W,q,K,W,A,w))});else if(yiA(A))A.forEach(function(W,G){_.set(G,n31(W,q,K,G,A,w))});var X=H?O?nlA:llA:O?DM6:MM6,P=j?void 0:X(A);return scA(P||A,function(W,G){if(P)G=W,W=A[G];Z31(_,G,n31(W,q,K,G,A,w))}),_}var B23=1,g23=2,p23=4,biA="[object Arguments]",F23="[object Array]",Q23="[object Boolean]",U23="[object Date]",d23="[object Error]",uiA="[object Function]",c23="[object GeneratorFunction]",l23="[object Map]",i23="[object Number]",miA="[object Object]",n23="[object RegExp]",r23="[object Set]",o23="[object String]",a23="[object Symbol]",s23="[object WeakMap]",t23="[object ArrayBuffer]",e23="[object DataView]",A_3="[object Float32Array]",q_3="[object Float64Array]",K_3="[object Int8Array]",Y_3="[object Int16Array]",z_3="[object Int32Array]",w_3="[object Uint8Array]",__3="[object Uint8ClampedArray]",$_3="[object Uint16Array]",O_3="[object Uint32Array]",n_,BiA;var giA=E(()=>{acA();tcA();V68();klA();hlA();ulA();BlA();UlA();clA();ilA();rlA();l31();wiA();ZiA();NiA();f31();k68();RiA();zM6();xiA();C31();I31();n_={};n_[biA]=n_[F23]=n_[t23]=n_[e23]=n_[Q23]=n_[U23]=n_[A_3]=n_[q_3]=n_[K_3]=n_[Y_3]=n_[z_3]=n_[l23]=n_[i23]=n_[miA]=n_[n23]=n_[r23]=n_[o23]=n_[a23]=n_[w_3]=n_[__3]=n_[$_3]=n_[O_3]=!0;n_[d23]=n_[uiA]=n_[s23]=!1;BiA=n31});function J_3(A){return BiA(A,H_3|j_3)}var H_3=1,j_3=4,B68;var piA=E(()=>{giA();B68=J_3});var FiA=E(()=>{piA()});import*as QiA from"fs";function g68(){if(process.platform!=="linux")return;try{let A=QiA.readFileSync("/proc/version",{encoding:"utf8"}),q=A.match(/WSL(\d+)/i);if(q&&q[1])return q[1];if(A.toLowerCase().includes("microsoft"))return"1";return}catch{return}}function Lv(){switch(process.platform){case"darwin":return"macos";case"linux":return"linux";case"win32":return"windows";default:return"unknown"}}var r31=()=>{};import{execFile as M_3}from"child_process";async function UiA(A,q,K,Y={command:"rg"}){let{command:z,args:w=[]}=Y;return new Promise((_,$)=>{M_3(z,[...w,...A,q],{maxBuffer:20000000,signal:K,timeout:1e4},(O,H,j)=>{if(!O){_(H.trim().split(`
`).filter(Boolean));return}if(O.code===1){_([]);return}$(Error(`ripgrep failed with exit code ${O.code}: ${j||O.message}`))})})}var diA=E(()=>{_I6()});import{homedir as p68}from"os";import*as Hf from"path";import*as lq6 from"fs";function a31(){return[...D_3.filter((A)=>A!==".git"),".claude/commands",".claude/agents"]}function F68(A){return A.toLowerCase()}function Wk(A){return A.includes("*")||A.includes("?")||A.includes("[")||A.includes("]")}function iq6(A){return A.replace(/\/\*\*$/,"")||"/"}function o31(A,q){let K=Hf.normalize(A),Y=Hf.normalize(q);if(Y===K)return!1;if(K.startsWith("/tmp/")&&Y==="/private"+K)return!1;if(K.startsWith("/var/")&&Y==="/private"+K)return!1;if(K.startsWith("/private/tmp/")&&Y===K)return!1;if(K.startsWith("/private/var/")&&Y===K)return!1;if(Y==="/")return!0;if(Y.split("/").filter(Boolean).length<=1)return!0;if(K.startsWith(Y+"/"))return!0;let w=K;if(K.startsWith("/tmp/"))w="/private"+K;else if(K.startsWith("/var/"))w="/private"+K;if(w!==K&&w.startsWith(Y+"/"))return!0;let _=Y.startsWith(K+"/"),$=w!==K&&Y.startsWith(w+"/");if(Y!==K&&!(w!==K&&Y===w)&&!_&&!$)return!0;return!1}function ky(A){let q=process.cwd(),K=A;if(A==="~")K=p68();else if(A.startsWith("~/"))K=p68()+A.slice(1);else if(A.startsWith("./")||A.startsWith("../"))K=Hf.resolve(q,A);else if(!Hf.isAbsolute(A))K=Hf.resolve(q,A);if(Wk(K)){let Y=K.split(/[*?[\]]/)[0];if(Y&&Y!=="/"){let z=Y.endsWith("/")?Y.slice(0,-1):Hf.dirname(Y);try{let w=lq6.realpathSync(z);if(!o31(z,w)){let _=K.slice(z.length);return w+_}}catch{}}return K}try{let Y=lq6.realpathSync(K);if(o31(K,Y));else K=Y}catch{}return K}function GI6(){let A=p68();return["/dev/stdout","/dev/stderr","/dev/null","/dev/tty","/dev/dtracehelper","/dev/autofs_nowait","/tmp/claude","/private/tmp/claude",Hf.join(A,".npm/_logs"),Hf.join(A,".claude/debug")]}function s31(A,q){let Y=["SANDBOX_RUNTIME=1",`TMPDIR=${process.env.CLAUDE_TMPDIR||"/tmp/claude"}`];if(!A&&!q)return Y;let z=["localhost","127.0.0.1","::1","*.local",".local","169.254.0.0/16","10.0.0.0/8","172.16.0.0/12","192.168.0.0/16"].join(",");if(Y.push(`NO_PROXY=${z}`),Y.push(`no_proxy=${z}`),A)Y.push(`HTTP_PROXY=http://localhost:${A}`),Y.push(`HTTPS_PROXY=http://localhost:${A}`),Y.push(`http_proxy=http://localhost:${A}`),Y.push(`https_proxy=http://localhost:${A}`);if(q){if(Y.push(`ALL_PROXY=socks5h://localhost:${q}`),Y.push(`all_proxy=socks5h://localhost:${q}`),Lv()==="macos")Y.push(`GIT_SSH_COMMAND=ssh -o ProxyCommand='nc -X 5 -x localhost:${q} %h %p'`);if(Y.push(`FTP_PROXY=socks5h://localhost:${q}`),Y.push(`ftp_proxy=socks5h://localhost:${q}`),Y.push(`RSYNC_PROXY=localhost:${q}`),Y.push(`DOCKER_HTTP_PROXY=http://localhost:${A||q}`),Y.push(`DOCKER_HTTPS_PROXY=http://localhost:${A||q}`),A)Y.push("CLOUDSDK_PROXY_TYPE=https"),Y.push("CLOUDSDK_PROXY_ADDRESS=localhost"),Y.push(`CLOUDSDK_PROXY_PORT=${A}`);Y.push(`GRPC_PROXY=socks5h://localhost:${q}`),Y.push(`grpc_proxy=socks5h://localhost:${q}`)}return Y}function t31(A){let q=A.slice(0,100);return Buffer.from(q).toString("base64")}function ciA(A){return Buffer.from(A,"base64").toString("utf8")}function GM6(A){return"^"+A.replace(/[.^$+{}()|\\]/g,"\\$&").replace(/\[([^\]]*?)$/g,"\\[$1").replace(/\*\*\//g,"__GLOBSTAR_SLASH__").replace(/\*\*/g,"__GLOBSTAR__").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]").replace(/__GLOBSTAR_SLASH__/g,"(.*/)?").replace(/__GLOBSTAR__/g,".*")+"$"}function Q68(A){let q=ky(A),K=q.split(/[*?[\]]/)[0];if(!K||K==="/")return WA(`[Sandbox] Glob pattern too broad, skipping: ${A}`),[];let Y=K.endsWith("/")?K.slice(0,-1):Hf.dirname(K);if(!lq6.existsSync(Y))return WA(`[Sandbox] Base directory for glob does not exist: ${Y}`),[];let z=new RegExp(GM6(q)),w=[];try{let _=lq6.readdirSync(Y,{recursive:!0,withFileTypes:!0});for(let $ of _){let O=$.parentPath??$.path??Y,H=Hf.join(O,$.name);if(z.test(H))w.push(H)}}catch(_){WA(`[Sandbox] Error expanding glob pattern ${A}: ${_}`)}return w}var WI6,D_3;var ZM6=E(()=>{r31();WI6=[".gitconfig",".gitmodules",".bashrc",".bash_profile",".zshrc",".zprofile",".profile",".ripgreprc",".mcp.json"],D_3=[".git",".vscode",".idea"]});import{join as Ey,dirname as X_3}from"node:path";import{fileURLToPath as P_3}from"node:url";import*as nq6 from"node:fs";import{execSync as W_3}from"node:child_process";import{homedir as G_3}from"node:os";function liA(){if(c68)return c68;let A=[];try{let K=W_3("npm root -g",{encoding:"utf8",timeout:5000,stdio:["pipe","pipe","ignore"]}).trim();if(K)A.push(Ey(K,"@anthropic-ai","sandbox-runtime"))}catch{}let q=G_3();return A.push(Ey("/usr","lib","node_modules","@anthropic-ai","sandbox-runtime"),Ey("/usr","local","lib","node_modules","@anthropic-ai","sandbox-runtime"),Ey("/opt","homebrew","lib","node_modules","@anthropic-ai","sandbox-runtime"),Ey(q,".npm","lib","node_modules","@anthropic-ai","sandbox-runtime"),Ey(q,".npm-global","lib","node_modules","@anthropic-ai","sandbox-runtime")),c68=A,A}function l68(){let A=process.arch;switch(A){case"x64":case"x86_64":return"x64";case"arm64":case"aarch64":return"arm64";case"ia32":case"x86":return WA("[SeccompFilter] 32-bit x86 (ia32) is not currently supported due to missing socketcall() syscall blocking. The current seccomp filter only blocks socket(AF_UNIX, ...), but on 32-bit x86, socketcall() can be used to bypass this.",{level:"error"}),null;default:return WA(`[SeccompFilter] Unsupported architecture: ${A}. Only x64 and arm64 are supported.`),null}}function iiA(A){let q=l68();if(!q)return[];let K=X_3(P_3(import.meta.url)),Y=Ey("vendor","seccomp",q,A);return[Ey(K,Y),Ey(K,"..","..",Y),Ey(K,"..",Y)]}function i68(A){let q=A??"";if(U68.has(q))return U68.get(q);let K=Z_3(A);return U68.set(q,K),K}function Z_3(A){if(A){if(nq6.existsSync(A))return WA(`[SeccompFilter] Using BPF filter from explicit path: ${A}`),A;WA(`[SeccompFilter] Explicit path provided but file not found: ${A}`)}let q=l68();if(!q)return WA(`[SeccompFilter] Cannot find pre-generated BPF filter: unsupported architecture ${process.arch}`),null;WA(`[SeccompFilter] Detected architecture: ${q}`);for(let K of iiA("unix-block.bpf"))if(nq6.existsSync(K))return WA(`[SeccompFilter] Found pre-generated BPF filter: ${K} (${q})`),K;for(let K of liA()){let Y=Ey(K,"vendor","seccomp",q,"unix-block.bpf");if(nq6.existsSync(Y))return WA(`[SeccompFilter] Found pre-generated BPF filter in global install: ${Y} (${q})`),Y}return WA(`[SeccompFilter] Pre-generated BPF filter not found in any expected location (${q})`),null}function ZI6(A){let q=A??"";if(d68.has(q))return d68.get(q);let K=f_3(A);return d68.set(q,K),K}function f_3(A){if(A){if(nq6.existsSync(A))return WA(`[SeccompFilter] Using apply-seccomp binary from explicit path: ${A}`),A;WA(`[SeccompFilter] Explicit path provided but file not found: ${A}`)}let q=l68();if(!q)return WA(`[SeccompFilter] Cannot find apply-seccomp binary: unsupported architecture ${process.arch}`),null;WA(`[SeccompFilter] Looking for apply-seccomp binary for architecture: ${q}`);for(let K of iiA("apply-seccomp"))if(nq6.existsSync(K))return WA(`[SeccompFilter] Found apply-seccomp binary: ${K} (${q})`),K;for(let K of liA()){let Y=Ey(K,"vendor","seccomp",q,"apply-seccomp");if(nq6.existsSync(Y))return WA(`[SeccompFilter] Found apply-seccomp binary in global install: ${Y} (${q})`),Y}return WA(`[SeccompFilter] apply-seccomp binary not found in any expected location (${q})`),null}function niA(A){let q=i68(A);if(q)return WA("[SeccompFilter] Using pre-generated BPF filter"),q;return WA("[SeccompFilter] Pre-generated BPF filter not available for this architecture. Only x64 and arm64 are supported.",{level:"error"}),null}function n68(A){}var U68,d68,c68=null;var riA=E(()=>{U68=new Map,d68=new Map});import{randomBytes as T_3}from"node:crypto";import*as y2 from"fs";import{spawn as oiA}from"node:child_process";import{tmpdir as r68}from"node:os";import HM,{join as aiA}from"node:path";function v_3(A,q){let K=A.split(HM.sep),Y="";for(let z of K){if(!z)continue;let w=Y+HM.sep+z;try{if(y2.lstatSync(w).isSymbolicLink()){if(q.some((O)=>w.startsWith(O+"/")||w===O))return w}}catch{break}Y=w}return null}function V_3(A){let q=A.split(HM.sep),K="";for(let Y of q){if(!Y)continue;let z=K+HM.sep+Y;try{let w=y2.statSync(z);if(w.isFile()||w.isSymbolicLink())return!0}catch{break}K=z}return!1}function N_3(A){let q=A.split(HM.sep),K="";for(let Y of q){if(!Y)continue;let z=K+HM.sep+Y;if(!y2.existsSync(z))return z;K=z}return A}async function k_3(A={command:"rg"},q=s68,K=!1,Y){let z=process.cwd(),w=new AbortController,_=Y??w.signal,$=a31(),O=[...WI6.map((D)=>HM.resolve(z,D)),...$.map((D)=>HM.resolve(z,D))],H=HM.resolve(z,".git"),j=!1;try{j=y2.statSync(H).isDirectory()}catch{}if(j){if(O.push(HM.resolve(z,".git/hooks")),!K)O.push(HM.resolve(z,".git/config"))}let J=[];for(let D of WI6)J.push("--iglob",D);for(let D of $)J.push("--iglob",`**/${D}/**`);if(J.push("--iglob","**/.git/hooks/**"),!K)J.push("--iglob","**/.git/config");let M=[];try{M=await UiA(["--files","--hidden","--max-depth",String(q),...J,"-g","!**/node_modules/**"],z,_,A)}catch(D){WA(`[Sandbox] ripgrep scan failed: ${D}`)}for(let D of M){let X=HM.resolve(z,D),P=!1;for(let W of[...$,".git"]){let G=F68(W),Z=X.split(HM.sep),f=Z.findIndex((v)=>F68(v)===G);if(f!==-1){if(W===".git"){let v=Z.slice(0,f+1).join(HM.sep);if(D.includes(".git/hooks"))O.push(HM.join(v,"hooks"));else if(D.includes(".git/config"))O.push(HM.join(v,"config"))}else O.push(Z.slice(0,f+1).join(HM.sep));P=!0;break}}if(!P)O.push(X)}return[...new Set(O)]}function a68(){if(siA)return;process.on("exit",()=>{for(let A of o68)try{n68(A)}catch{}t68()}),siA=!0}function t68(){for(let A of e31)try{let q=y2.statSync(A);if(q.isFile()&&q.size===0)y2.unlinkSync(A),WA(`[Sandbox Linux] Cleaned up bwrap mount point (file): ${A}`);else if(q.isDirectory()){if(y2.readdirSync(A).length===0)y2.rmdirSync(A),WA(`[Sandbox Linux] Cleaned up bwrap mount point (dir): ${A}`)}}catch{}e31.clear()}function tiA(A){let q=[],K=[];if(iU("bwrap")===null)q.push("bubblewrap (bwrap) not installed");if(iU("socat")===null)q.push("socat not installed");let Y=i68(A?.bpfPath)!==null,z=ZI6(A?.applyPath)!==null;if(!Y||!z)K.push("seccomp not available - unix socket access not restricted");return{warnings:K,errors:q}}async function eiA(A,q){let K=T_3(8).toString("hex"),Y=aiA(r68(),`claude-http-${K}.sock`),z=aiA(r68(),`claude-socks-${K}.sock`),w=[`UNIX-LISTEN:${Y},fork,reuseaddr`,`TCP:localhost:${A},keepalive,keepidle=10,keepintvl=5,keepcnt=3`];WA(`Starting HTTP bridge: socat ${w.join(" ")}`);let _=oiA("socat",w,{stdio:"ignore"});if(!_.pid)throw Error("Failed to start HTTP bridge process");_.on("error",(j)=>{WA(`HTTP bridge process error: ${j}`,{level:"error"})}),_.on("exit",(j,J)=>{WA(`HTTP bridge process exited with code ${j}, signal ${J}`,{level:j===0?"info":"error"})});let $=[`UNIX-LISTEN:${z},fork,reuseaddr`,`TCP:localhost:${q},keepalive,keepidle=10,keepintvl=5,keepcnt=3`];WA(`Starting SOCKS bridge: socat ${$.join(" ")}`);let O=oiA("socat",$,{stdio:"ignore"});if(!O.pid){if(_.pid)try{process.kill(_.pid,"SIGTERM")}catch{}throw Error("Failed to start SOCKS bridge process")}O.on("error",(j)=>{WA(`SOCKS bridge process error: ${j}`,{level:"error"})}),O.on("exit",(j,J)=>{WA(`SOCKS bridge process exited with code ${j}, signal ${J}`,{level:j===0?"info":"error"})});let H=5;for(let j=0;j<H;j++){if(!_.pid||_.killed||!O.pid||O.killed)throw Error("Linux bridge process died unexpectedly");try{if(y2.existsSync(Y)&&y2.existsSync(z)){WA(`Linux bridges ready after ${j+1} attempts`);break}}catch(J){WA(`Error checking sockets (attempt ${j+1}): ${J}`,{level:"error"})}if(j===H-1){if(_.pid)try{process.kill(_.pid,"SIGTERM")}catch{}if(O.pid)try{process.kill(O.pid,"SIGTERM")}catch{}throw Error(`Failed to create bridge sockets after ${H} attempts`)}await new Promise((J)=>setTimeout(J,j*100))}return{httpSocketPath:Y,socksSocketPath:z,httpBridgeProcess:_,socksBridgeProcess:O,httpProxyPort:A,socksProxyPort:q}}function E_3(A,q,K,Y,z,w){let _=z||"bash",$=[`socat TCP-LISTEN:3128,fork,reuseaddr UNIX-CONNECT:${A} >/dev/null 2>&1 &`,`socat TCP-LISTEN:1080,fork,reuseaddr UNIX-CONNECT:${q} >/dev/null 2>&1 &`,'trap "kill %1 %2 2>/dev/null; exit" EXIT'];if(Y){let O=ZI6(w);if(!O)throw Error("apply-seccomp binary not found. This should have been caught earlier. Ensure vendor/seccomp/{x64,arm64}/apply-seccomp binaries are included in the package.");let H=rq6.default.quote([O,Y,_,"-c",K]),j=[...$,H].join(`
`);return`${_} -c ${rq6.default.quote([j])}`}else{let O=[...$,`eval ${rq6.default.quote([K])}`].join(`
`);return`${_} -c ${rq6.default.quote([O])}`}}async function L_3(A,q,K={command:"rg"},Y=s68,z=!1,w){let _=[];if(q){_.push("--ro-bind","/","/");let O=[];for(let j of q.allowOnly||[]){let J=ky(j);if(WA(`[Sandbox Linux] Processing write path: ${j} -> ${J}`),J.startsWith("/dev/")){WA(`[Sandbox Linux] Skipping /dev path: ${J}`);continue}if(!y2.existsSync(J)){WA(`[Sandbox Linux] Skipping non-existent write path: ${J}`);continue}try{let M=y2.realpathSync(J),D=J.replace(/\/+$/,"");if(M!==D&&o31(J,M)){WA(`[Sandbox Linux] Skipping symlink write path pointing outside expected location: ${j} -> ${M}`);continue}}catch{WA(`[Sandbox Linux] Skipping write path that could not be resolved: ${J}`);continue}_.push("--bind",J,J),O.push(J)}let H=[...q.denyWithinAllow||[],...await k_3(K,Y,z,w)];for(let j of H){let J=ky(j);if(J.startsWith("/dev/"))continue;let M=v_3(J,O);if(M){_.push("--ro-bind","/dev/null",M),WA(`[Sandbox Linux] Mounted /dev/null at symlink ${M} to prevent symlink replacement attack`);continue}if(!y2.existsSync(J)){if(V_3(J)){WA(`[Sandbox Linux] Skipping deny path with file ancestor (cannot create paths under a file): ${J}`);continue}let X=HM.dirname(J);while(X!=="/"&&!y2.existsSync(X))X=HM.dirname(X);if(O.some((W)=>X.startsWith(W+"/")||X===W||J.startsWith(W+"/"))){let W=N_3(J);if(W!==J){let G=y2.mkdtempSync(HM.join(r68(),"claude-empty-"));_.push("--ro-bind",G,W),e31.add(W),a68(),WA(`[Sandbox Linux] Mounted empty dir at ${W} to block creation of ${J}`)}else _.push("--ro-bind","/dev/null",W),e31.add(W),a68(),WA(`[Sandbox Linux] Mounted /dev/null at ${W} to block creation of ${J}`)}else WA(`[Sandbox Linux] Skipping non-existent deny path not within allowed paths: ${J}`);continue}if(O.some((X)=>J.startsWith(X+"/")||J===X))_.push("--ro-bind",J,J);else WA(`[Sandbox Linux] Skipping deny path not within allowed paths: ${J}`)}}else _.push("--bind","/","/");let $=[...A?.denyOnly||[]];if(y2.existsSync("/etc/ssh/ssh_config.d"))$.push("/etc/ssh/ssh_config.d");for(let O of $){let H=ky(O);if(!y2.existsSync(H)){WA(`[Sandbox Linux] Skipping non-existent read deny path: ${H}`);continue}if(y2.statSync(H).isDirectory())_.push("--tmpfs",H);else _.push("--ro-bind","/dev/null",H)}return _}async function AnA(A){let{command:q,needsNetworkRestriction:K,httpSocketPath:Y,socksSocketPath:z,httpProxyPort:w,socksProxyPort:_,readConfig:$,writeConfig:O,enableWeakerNestedSandbox:H,allowAllUnixSockets:j,binShell:J,ripgrepConfig:M={command:"rg"},mandatoryDenySearchDepth:D=s68,allowGitConfig:X=!1,seccompConfig:P,abortSignal:W}=A,G=$&&$.denyOnly.length>0,Z=O!==void 0;if(!K&&!G&&!Z)return q;let f=["--new-session","--die-with-parent"],v=void 0;try{if(!j){v=niA(P?.bpfPath)??void 0;let m=ZI6(P?.applyPath);if(!v||!m)WA("[Sandbox Linux] Seccomp binaries not available - unix socket blocking disabled. Install @anthropic-ai/sandbox-runtime globally for full protection.",{level:"warn"}),v=void 0;else{if(!v.includes("/vendor/seccomp/"))o68.add(v),a68();WA("[Sandbox Linux] Generated seccomp BPF filter for Unix socket blocking")}}else WA("[Sandbox Linux] Skipping seccomp filter - allowAllUnixSockets is enabled");if(K){if(f.push("--unshare-net"),Y&&z){if(!y2.existsSync(Y))throw Error(`Linux HTTP bridge socket does not exist: ${Y}. The bridge process may have died. Try reinitializing the sandbox.`);if(!y2.existsSync(z))throw Error(`Linux SOCKS bridge socket does not exist: ${z}. The bridge process may have died. Try reinitializing the sandbox.`);f.push("--bind",Y,Y),f.push("--bind",z,z);let m=s31(3128,1080);if(f.push(...m.flatMap((x)=>{let p=x.indexOf("="),g=x.slice(0,p),b=x.slice(p+1);return["--setenv",g,b]})),w!==void 0)f.push("--setenv","CLAUDE_CODE_HOST_HTTP_PROXY_PORT",String(w));if(_!==void 0)f.push("--setenv","CLAUDE_CODE_HOST_SOCKS_PROXY_PORT",String(_))}}let V=await L_3($,O,M,D,X,W);if(f.push(...V),f.push("--dev","/dev"),f.push("--unshare-pid"),!H)f.push("--proc","/proc");let N=J||"bash",L=iU(N);if(!L)throw Error(`Shell '${N}' not found in PATH`);if(f.push("--",L,"-c"),K&&Y&&z){let m=E_3(Y,z,q,v,L,P?.applyPath);f.push(m)}else if(v){let m=ZI6(P?.applyPath);if(!m)throw Error("apply-seccomp binary not found. This should have been caught earlier. Ensure vendor/seccomp/{x64,arm64}/apply-seccomp binaries are included in the package.");let x=rq6.default.quote([m,v,L,"-c",q]);f.push(x)}else f.push(q);let S=rq6.default.quote(["bwrap",...f]),C=[];if(K)C.push("network");if(G||Z)C.push("filesystem");if(v)C.push("seccomp(unix-block)");return WA(`[Sandbox Linux] Wrapped command with bwrap (${C.join(", ")} restrictions)`),S}catch(V){if(v&&!v.includes("/vendor/seccomp/")){o68.delete(v);try{n68(v)}catch(N){WA(`[Sandbox Linux] Failed to clean up seccomp filter on error: ${N}`,{level:"error"})}}throw V}}var rq6,s68=3,o68,e31,siA=!1;var qnA=E(()=>{_I6();diA();ZM6();riA();rq6=q6(bq1(),1);o68=new Set,e31=new Set});import{spawn as y_3}from"child_process";import*as sU from"path";function R_3(A=!1){let q=process.cwd(),K=[];for(let Y of WI6)K.push(sU.resolve(q,Y)),K.push(`**/${Y}`);for(let Y of a31())K.push(sU.resolve(q,Y)),K.push(`**/${Y}/**`);if(K.push(sU.resolve(q,".git/hooks")),K.push("**/.git/hooks/**"),!A)K.push(sU.resolve(q,".git/config")),K.push("**/.git/config");return[...new Set(K)]}function S_3(A){return`CMD64_${t31(A)}_END_${znA}`}function KnA(A){let q=[],K=sU.dirname(A);while(K!=="/"&&K!=="."){q.push(K);let Y=sU.dirname(K);if(Y===K)break;K=Y}return q}function wnA(A,q){let K=[];for(let Y of A){let z=ky(Y);if(Wk(z)){let w=GM6(z);K.push("(deny file-write-unlink",`  (regex ${yv(w)})`,`  (with message "${q}"))`);let _=z.split(/[*?[\]]/)[0];if(_&&_!=="/"){let $=_.endsWith("/")?_.slice(0,-1):sU.dirname(_);K.push("(deny file-write-unlink",`  (literal ${yv($)})`,`  (with message "${q}"))`);for(let O of KnA($))K.push("(deny file-write-unlink",`  (literal ${yv(O)})`,`  (with message "${q}"))`)}}else{K.push("(deny file-write-unlink",`  (subpath ${yv(z)})`,`  (with message "${q}"))`);for(let w of KnA(z))K.push("(deny file-write-unlink",`  (literal ${yv(w)})`,`  (with message "${q}"))`)}}return K}function h_3(A,q){if(!A)return["(allow file-read*)"];let K=[];K.push("(allow file-read*)");for(let Y of A.denyOnly||[]){let z=ky(Y);if(Wk(z)){let w=GM6(z);K.push("(deny file-read*",`  (regex ${yv(w)})`,`  (with message "${q}"))`)}else K.push("(deny file-read*",`  (subpath ${yv(z)})`,`  (with message "${q}"))`)}return K.push(...wnA(A.denyOnly||[],q)),K}function C_3(A,q,K=!1){if(!A)return["(allow file-write*)"];let Y=[],z=x_3();for(let _ of z){let $=ky(_);Y.push("(allow file-write*",`  (subpath ${yv($)})`,`  (with message "${q}"))`)}for(let _ of A.allowOnly||[]){let $=ky(_);if(Wk($)){let O=GM6($);Y.push("(allow file-write*",`  (regex ${yv(O)})`,`  (with message "${q}"))`)}else Y.push("(allow file-write*",`  (subpath ${yv($)})`,`  (with message "${q}"))`)}let w=[...A.denyWithinAllow||[],...R_3(K)];for(let _ of w){let $=ky(_);if(Wk($)){let O=GM6($);Y.push("(deny file-write*",`  (regex ${yv(O)})`,`  (with message "${q}"))`)}else Y.push("(deny file-write*",`  (subpath ${yv($)})`,`  (with message "${q}"))`)}return Y.push(...wnA(w,q)),Y}function I_3({readConfig:A,writeConfig:q,httpProxyPort:K,socksProxyPort:Y,needsNetworkRestriction:z,allowUnixSockets:w,allowAllUnixSockets:_,allowLocalBinding:$,allowPty:O,allowGitConfig:H=!1,enableWeakerNetworkIsolation:j=!1,logTag:J}){let M=["(version 1)",`(deny default (with message "${J}"))`,"",`; LogTag: ${J}`,"","; Essential permissions - based on Chrome sandbox policy","; Process permissions","(allow process-exec)","(allow process-fork)","(allow process-info* (target same-sandbox))","(allow signal (target same-sandbox))","(allow mach-priv-task-port (target same-sandbox))","","; User preferences","(allow user-preference-read)","","; Mach IPC - specific services only (no wildcard)","(allow mach-lookup",'  (global-name "com.apple.audio.systemsoundserver")','  (global-name "com.apple.distributed_notifications@Uv3")','  (global-name "com.apple.FontObjectsServer")','  (global-name "com.apple.fonts")','  (global-name "com.apple.logd")','  (global-name "com.apple.lsd.mapdb")','  (global-name "com.apple.PowerManagement.control")','  (global-name "com.apple.system.logger")','  (global-name "com.apple.system.notification_center")','  (global-name "com.apple.system.opendirectoryd.libinfo")','  (global-name "com.apple.system.opendirectoryd.membership")','  (global-name "com.apple.bsd.dirhelper")','  (global-name "com.apple.securityd.xpc")','  (global-name "com.apple.coreservices.launchservicesd")',")","",...j?["; trustd.agent - needed for Go TLS certificate verification (weaker network isolation)",'(allow mach-lookup (global-name "com.apple.trustd.agent"))']:[],"","; POSIX IPC - shared memory","(allow ipc-posix-shm)","","; POSIX IPC - semaphores for Python multiprocessing","(allow ipc-posix-sem)","","; IOKit - specific operations only","(allow iokit-open",'  (iokit-registry-entry-class "IOSurfaceRootUserClient")','  (iokit-registry-entry-class "RootDomainUserClient")','  (iokit-user-client-class "IOSurfaceSendRight")',")","","; IOKit properties","(allow iokit-get-properties)","","; Specific safe system-sockets, doesn't allow network access","(allow system-socket (require-all (socket-domain AF_SYSTEM) (socket-protocol 2)))","","; sysctl - specific sysctls only","(allow sysctl-read",'  (sysctl-name "hw.activecpu")','  (sysctl-name "hw.busfrequency_compat")','  (sysctl-name "hw.byteorder")','  (sysctl-name "hw.cacheconfig")','  (sysctl-name "hw.cachelinesize_compat")','  (sysctl-name "hw.cpufamily")','  (sysctl-name "hw.cpufrequency")','  (sysctl-name "hw.cpufrequency_compat")','  (sysctl-name "hw.cputype")','  (sysctl-name "hw.l1dcachesize_compat")','  (sysctl-name "hw.l1icachesize_compat")','  (sysctl-name "hw.l2cachesize_compat")','  (sysctl-name "hw.l3cachesize_compat")','  (sysctl-name "hw.logicalcpu")','  (sysctl-name "hw.logicalcpu_max")','  (sysctl-name "hw.machine")','  (sysctl-name "hw.memsize")','  (sysctl-name "hw.ncpu")','  (sysctl-name "hw.nperflevels")','  (sysctl-name "hw.packages")','  (sysctl-name "hw.pagesize_compat")','  (sysctl-name "hw.pagesize")','  (sysctl-name "hw.physicalcpu")','  (sysctl-name "hw.physicalcpu_max")','  (sysctl-name "hw.tbfrequency_compat")','  (sysctl-name "hw.vectorunit")','  (sysctl-name "kern.argmax")','  (sysctl-name "kern.bootargs")','  (sysctl-name "kern.hostname")','  (sysctl-name "kern.maxfiles")','  (sysctl-name "kern.maxfilesperproc")','  (sysctl-name "kern.maxproc")','  (sysctl-name "kern.ngroups")','  (sysctl-name "kern.osproductversion")','  (sysctl-name "kern.osrelease")','  (sysctl-name "kern.ostype")','  (sysctl-name "kern.osvariant_status")','  (sysctl-name "kern.osversion")','  (sysctl-name "kern.secure_kernel")','  (sysctl-name "kern.tcsm_available")','  (sysctl-name "kern.tcsm_enable")','  (sysctl-name "kern.usrstack64")','  (sysctl-name "kern.version")','  (sysctl-name "kern.willshutdown")','  (sysctl-name "machdep.cpu.brand_string")','  (sysctl-name "machdep.ptrauth_enabled")','  (sysctl-name "security.mac.lockdown_mode_state")','  (sysctl-name "sysctl.proc_cputype")','  (sysctl-name "vm.loadavg")','  (sysctl-name-prefix "hw.optional.arm")','  (sysctl-name-prefix "hw.optional.arm.")','  (sysctl-name-prefix "hw.optional.armv8_")','  (sysctl-name-prefix "hw.perflevel")','  (sysctl-name-prefix "kern.proc.all")','  (sysctl-name-prefix "kern.proc.pgrp.")','  (sysctl-name-prefix "kern.proc.pid.")','  (sysctl-name-prefix "machdep.cpu.")','  (sysctl-name-prefix "net.routetable.")',")","","; V8 thread calculations","(allow sysctl-write",'  (sysctl-name "kern.tcsm_enable")',")","","; Distributed notifications","(allow distributed-notification-post)","","; Specific mach-lookup permissions for security operations",'(allow mach-lookup (global-name "com.apple.SecurityServer"))',"","; File I/O on device files",'(allow file-ioctl (literal "/dev/null"))','(allow file-ioctl (literal "/dev/zero"))','(allow file-ioctl (literal "/dev/random"))','(allow file-ioctl (literal "/dev/urandom"))','(allow file-ioctl (literal "/dev/dtracehelper"))','(allow file-ioctl (literal "/dev/tty"))',"","(allow file-ioctl file-read-data file-write-data","  (require-all",'    (literal "/dev/null")',"    (vnode-type CHARACTER-DEVICE)","  )",")",""];if(M.push("; Network"),!z)M.push("(allow network*)");else{if($)M.push('(allow network-bind (local ip "*:*"))'),M.push('(allow network-inbound (local ip "*:*"))'),M.push('(allow network-outbound (local ip "*:*"))');if(_)M.push("(allow system-socket (socket-domain AF_UNIX))"),M.push('(allow network-bind (local unix-socket (path-regex #"^/")))'),M.push('(allow network-outbound (remote unix-socket (path-regex #"^/")))');else if(w&&w.length>0){M.push("(allow system-socket (socket-domain AF_UNIX))");for(let D of w){let X=ky(D);M.push(`(allow network-bind (local unix-socket (subpath ${yv(X)})))`),M.push(`(allow network-outbound (remote unix-socket (subpath ${yv(X)})))`)}}if(K!==void 0)M.push(`(allow network-bind (local ip "localhost:${K}"))`),M.push(`(allow network-inbound (local ip "localhost:${K}"))`),M.push(`(allow network-outbound (remote ip "localhost:${K}"))`);if(Y!==void 0)M.push(`(allow network-bind (local ip "localhost:${Y}"))`),M.push(`(allow network-inbound (local ip "localhost:${Y}"))`),M.push(`(allow network-outbound (remote ip "localhost:${Y}"))`)}if(M.push(""),M.push("; File read"),M.push(...h_3(A,J)),M.push(""),M.push("; File write"),M.push(...C_3(q,J,H)),O)M.push(""),M.push("; Pseudo-terminal (pty) support"),M.push("(allow pseudo-tty)"),M.push("(allow file-ioctl"),M.push('  (literal "/dev/ptmx")'),M.push('  (regex #"^/dev/ttys")'),M.push(")"),M.push("(allow file-read* file-write*"),M.push('  (literal "/dev/ptmx")'),M.push('  (regex #"^/dev/ttys")'),M.push(")");return M.join(`
`)}function yv(A){return JSON.stringify(A)}function x_3(){let A=process.env.TMPDIR;if(!A)return[];if(!A.match(/^\/(private\/)?var\/folders\/[^/]{2}\/[^/]+\/T\/?$/))return[];let K=A.replace(/\/T\/?$/,"");if(K.startsWith("/private/var/"))return[K,K.replace("/private","")];else if(K.startsWith("/var/"))return[K,"/private"+K];return[K]}function _nA(A){let{command:q,needsNetworkRestriction:K,httpProxyPort:Y,socksProxyPort:z,allowUnixSockets:w,allowAllUnixSockets:_,allowLocalBinding:$,readConfig:O,writeConfig:H,allowPty:j,allowGitConfig:J=!1,enableWeakerNetworkIsolation:M=!1,binShell:D}=A,X=O&&O.denyOnly.length>0;if(!K&&!X&&H===void 0)return q;let W=S_3(q),G=I_3({readConfig:O,writeConfig:H,httpProxyPort:Y,socksProxyPort:z,needsNetworkRestriction:K,allowUnixSockets:w,allowAllUnixSockets:_,allowLocalBinding:$,allowPty:j,allowGitConfig:J,enableWeakerNetworkIsolation:M,logTag:W}),Z=s31(Y,z),f=D||"bash",v=iU(f);if(!v)throw Error(`Shell '${f}' not found in PATH`);let V=YnA.default.quote(["env",...Z,"sandbox-exec","-p",G,v,"-c",q]);return WA(`[Sandbox macOS] Applied restrictions - network: ${!!(Y||z)}, read: ${O?"allowAllExcept"in O?"allowAllExcept":"denyAllExcept":"none"}, write: ${H?"allowAllExcept"in H?"allowAllExcept":"denyAllExcept":"none"}`),V}function $nA(A,q){let K=/CMD64_(.+?)_END/,Y=/Sandbox:\s+(.+)$/,z=q?.["*"]||[],w=q?Object.entries(q).filter(([$])=>$!=="*"):[],_=y_3("log",["stream","--predicate",`(eventMessage ENDSWITH "${znA}")`,"--style","compact"]);return _.stdout?.on("data",($)=>{let O=$.toString().split(`
`),H=O.find((P)=>P.includes("Sandbox:")&&P.includes("deny")),j=O.find((P)=>P.startsWith("CMD64_"));if(!H)return;let J=H.match(Y);if(!J?.[1])return;let M=J[1],D,X;if(j){if(X=j.match(K)?.[1],X)try{D=ciA(X)}catch{}}if(M.includes("mDNSResponder")||M.includes("mach-lookup com.apple.diagnosticd")||M.includes("mach-lookup com.apple.analyticsd"))return;if(q&&D){if(z.length>0){if(z.some((W)=>M.includes(W)))return}for(let[P,W]of w)if(D.includes(P)){if(W.some((Z)=>M.includes(Z)))return}}A({line:M,command:D,encodedCommand:X,timestamp:new Date})}),_.stderr?.on("data",($)=>{WA(`[Sandbox Monitor] Log stream stderr: ${$.toString()}`)}),_.on("error",($)=>{WA(`[Sandbox Monitor] Failed to start log stream: ${$.message}`)}),_.on("exit",($)=>{WA(`[Sandbox Monitor] Log stream exited with code: ${$}`)}),()=>{WA("[Sandbox Monitor] Stopping log monitor"),_.kill("SIGTERM")}}var YnA,znA;var OnA=E(()=>{_I6();ZM6();YnA=q6(bq1(),1);znA=`_${Math.random().toString(36).slice(2,11)}_SBX`});class fM6{constructor(){this.violations=[],this.totalCount=0,this.maxSize=100,this.listeners=new Set}addViolation(A){if(this.violations.push(A),this.totalCount++,this.violations.length>this.maxSize)this.violations=this.violations.slice(-this.maxSize);this.notifyListeners()}getViolations(A){if(A===void 0)return[...this.violations];return this.violations.slice(-A)}getCount(){return this.violations.length}getTotalCount(){return this.totalCount}getViolationsForCommand(A){let q=t31(A);return this.violations.filter((K)=>K.encodedCommand===q)}clear(){this.violations=[],this.notifyListeners()}subscribe(A){return this.listeners.add(A),A(this.getViolations()),()=>{this.listeners.delete(A)}}notifyListeners(){let A=this.getViolations();this.listeners.forEach((q)=>q(A))}}var e68=E(()=>{ZM6()});import*as q18 from"fs";import{EOL as A18}from"node:os";function b_3(){if(HnA)return;let A=()=>Y18().catch((q)=>{WA(`Cleanup failed in registerCleanup ${q}`,{level:"error"})});process.once("exit",A),process.once("SIGINT",A),process.once("SIGTERM",A),HnA=!0}function K18(A,q){if(q.startsWith("*.")){let K=q.substring(2);return A.toLowerCase().endsWith("."+K.toLowerCase())}return A.toLowerCase()===q.toLowerCase()}async function MnA(A,q,K){if(!o3)return WA("No config available, denying network request"),!1;for(let Y of o3.network.deniedDomains)if(K18(q,Y))return WA(`Denied by config rule: ${q}:${A}`),!1;for(let Y of o3.network.allowedDomains)if(K18(q,Y))return WA(`Allowed by config rule: ${q}:${A}`),!0;if(!K)return WA(`No matching config rule, denying: ${q}:${A}`),!1;WA(`No matching config rule, asking user: ${q}:${A}`);try{if(await K({host:q,port:A}))return WA(`User allowed: ${q}:${A}`),!0;else return WA(`User denied: ${q}:${A}`),!1}catch(Y){return WA(`Error in permission callback: ${Y}`,{level:"error"}),!1}}function u_3(A){if(!o3?.network.mitmProxy)return;let{socketPath:q,domains:K}=o3.network.mitmProxy;for(let Y of K)if(K18(A,Y))return WA(`Host ${A} matches MITM pattern ${Y}`),q;return}async function m_3(A){return TM6=IdA({filter:(q,K)=>MnA(q,K,A),getMitmSocketPath:u_3}),new Promise((q,K)=>{if(!TM6){K(Error("HTTP proxy server undefined before listen"));return}let Y=TM6;Y.once("error",K),Y.once("listening",()=>{let z=Y.address();if(z&&typeof z==="object")Y.unref(),WA(`HTTP proxy listening on localhost:${z.port}`),q(z.port);else K(Error("Failed to get proxy server address"))}),Y.listen(0,"127.0.0.1")})}async function B_3(A){return oq6=UdA({filter:(q,K)=>MnA(q,K,A)}),new Promise((q,K)=>{if(!oq6){K(Error("SOCKS proxy server undefined before listen"));return}oq6.listen(0,"127.0.0.1").then((Y)=>{oq6?.unref(),q(Y)}).catch(K)})}async function g_3(A,q,K=!1){if(Os){await Os;return}o3=A;let Y=XnA();if(Y.errors.length>0)throw Error(`Sandbox dependencies not available: ${Y.errors.join(", ")}`);if(K&&Lv()==="macos")A51=$nA(q51.addViolation.bind(q51),o3.ignoreViolations),WA("Started macOS sandbox log monitor");b_3(),Os=(async()=>{try{let z;if(o3.network.httpProxyPort!==void 0)z=o3.network.httpProxyPort,WA(`Using external HTTP proxy on port ${z}`);else z=await m_3(q);let w;if(o3.network.socksProxyPort!==void 0)w=o3.network.socksProxyPort,WA(`Using external SOCKS proxy on port ${w}`);else w=await B_3(q);let _;if(Lv()==="linux")_=await eiA(z,w);let $={httpProxyPort:z,socksProxyPort:w,linuxBridge:_};return Ly=$,WA("Network infrastructure initialized"),$}catch(z){throw Os=void 0,Ly=void 0,Y18().catch((w)=>{WA(`Cleanup failed in initializationPromise ${w}`,{level:"error"})}),z}})(),await Os}function DnA(){let A=Lv();if(A==="linux")return g68()!=="1";return A==="macos"}function p_3(){return o3!==void 0}function XnA(A){if(!DnA())return{errors:["Unsupported platform"],warnings:[]};let q=[],K=[],Y=A??o3?.ripgrep??{command:"rg"};if(iU(Y.command)===null)q.push(`ripgrep (${Y.command}) not found`);if(Lv()==="linux"){let w=tiA(o3?.seccomp);q.push(...w.errors),K.push(...w.warnings)}return{errors:q,warnings:K}}function F_3(){if(!o3)return{denyOnly:[]};let A=[];for(let q of o3.filesystem.denyRead){let K=iq6(q);if(Lv()==="linux"&&Wk(K)){let Y=Q68(q);WA(`[Sandbox] Expanded glob pattern "${q}" to ${Y.length} paths on Linux`),A.push(...Y)}else A.push(K)}return{denyOnly:A}}function Q_3(){if(!o3)return{allowOnly:GI6(),denyWithinAllow:[]};let A=o3.filesystem.allowWrite.map((Y)=>iq6(Y)).filter((Y)=>{if(Lv()==="linux"&&Wk(Y))return WA(`Skipping glob pattern on Linux/WSL: ${Y}`),!1;return!0}),q=o3.filesystem.denyWrite.map((Y)=>iq6(Y)).filter((Y)=>{if(Lv()==="linux"&&Wk(Y))return WA(`Skipping glob pattern on Linux/WSL: ${Y}`),!1;return!0});return{allowOnly:[...GI6(),...A],denyWithinAllow:q}}function U_3(){if(!o3)return{};let A=o3.network.allowedDomains,q=o3.network.deniedDomains;return{...A.length>0&&{allowedHosts:A},...q.length>0&&{deniedHosts:q}}}function PnA(){return o3?.network?.allowUnixSockets}function jnA(){return o3?.network?.allowAllUnixSockets}function WnA(){return o3?.network?.allowLocalBinding}function GnA(){return o3?.ignoreViolations}function ZnA(){return o3?.enableWeakerNestedSandbox}function d_3(){return o3?.enableWeakerNetworkIsolation}function c_3(){return o3?.ripgrep??{command:"rg"}}function l_3(){return o3?.mandatoryDenySearchDepth??3}function JnA(){return o3?.filesystem?.allowGitConfig??!1}function i_3(){return o3?.seccomp}function fnA(){return Ly?.httpProxyPort}function TnA(){return Ly?.socksProxyPort}function vnA(){return Ly?.linuxBridge?.httpSocketPath}function VnA(){return Ly?.linuxBridge?.socksSocketPath}async function NnA(){if(!o3)return!1;if(Os)try{return await Os,!0}catch{return!1}return Ly!==void 0}async function n_3(A,q,K,Y){let z=Lv(),w=(P)=>P.map((W)=>iq6(W)).filter((W)=>{if(Lv()==="linux"&&Wk(W))return WA(`[Sandbox] Skipping glob write pattern on Linux: ${W}`),!1;return!0}),_=w(K?.filesystem?.allowWrite??o3?.filesystem.allowWrite??[]),$={allowOnly:[...GI6(),..._],denyWithinAllow:w(K?.filesystem?.denyWrite??o3?.filesystem.denyWrite??[])},O=K?.filesystem?.denyRead??o3?.filesystem.denyRead??[],H=[];for(let P of O){let W=iq6(P);if(Lv()==="linux"&&Wk(W))H.push(...Q68(P));else H.push(W)}let j={denyOnly:H},J=K?.network?.allowedDomains!==void 0||o3?.network?.allowedDomains!==void 0,M=J,D=J;if(D)await NnA();let X=K?.allowPty??o3?.allowPty;switch(z){case"macos":return _nA({command:A,needsNetworkRestriction:M,httpProxyPort:D?fnA():void 0,socksProxyPort:D?TnA():void 0,readConfig:j,writeConfig:$,allowUnixSockets:PnA(),allowAllUnixSockets:jnA(),allowLocalBinding:WnA(),ignoreViolations:GnA(),allowPty:X,allowGitConfig:JnA(),enableWeakerNetworkIsolation:d_3(),binShell:q});case"linux":return AnA({command:A,needsNetworkRestriction:M,httpSocketPath:D?vnA():void 0,socksSocketPath:D?VnA():void 0,httpProxyPort:D?Ly?.httpProxyPort:void 0,socksProxyPort:D?Ly?.socksProxyPort:void 0,readConfig:j,writeConfig:$,enableWeakerNestedSandbox:ZnA(),allowAllUnixSockets:jnA(),binShell:q,ripgrepConfig:c_3(),mandatoryDenySearchDepth:l_3(),allowGitConfig:JnA(),seccompConfig:i_3(),abortSignal:Y});default:throw Error(`Sandbox configuration is not supported on platform: ${z}`)}}function r_3(){return o3}function o_3(A){o3=B68(A),WA("Sandbox configuration updated")}function knA(){t68()}async function Y18(){if(knA(),A51)A51(),A51=void 0;if(Ly?.linuxBridge){let{httpSocketPath:q,socksSocketPath:K,httpBridgeProcess:Y,socksBridgeProcess:z}=Ly.linuxBridge,w=[];if(Y.pid&&!Y.killed)try{process.kill(Y.pid,"SIGTERM"),WA("Sent SIGTERM to HTTP bridge process"),w.push(new Promise((_)=>{Y.once("exit",()=>{WA("HTTP bridge process exited"),_()}),setTimeout(()=>{if(!Y.killed){WA("HTTP bridge did not exit, forcing SIGKILL",{level:"warn"});try{if(Y.pid)process.kill(Y.pid,"SIGKILL")}catch{}}_()},5000)}))}catch(_){if(_.code!=="ESRCH")WA(`Error killing HTTP bridge: ${_}`,{level:"error"})}if(z.pid&&!z.killed)try{process.kill(z.pid,"SIGTERM"),WA("Sent SIGTERM to SOCKS bridge process"),w.push(new Promise((_)=>{z.once("exit",()=>{WA("SOCKS bridge process exited"),_()}),setTimeout(()=>{if(!z.killed){WA("SOCKS bridge did not exit, forcing SIGKILL",{level:"warn"});try{if(z.pid)process.kill(z.pid,"SIGKILL")}catch{}}_()},5000)}))}catch(_){if(_.code!=="ESRCH")WA(`Error killing SOCKS bridge: ${_}`,{level:"error"})}if(await Promise.all(w),q)try{q18.rmSync(q,{force:!0}),WA("Cleaned up HTTP socket")}catch(_){WA(`HTTP socket cleanup error: ${_}`,{level:"error"})}if(K)try{q18.rmSync(K,{force:!0}),WA("Cleaned up SOCKS socket")}catch(_){WA(`SOCKS socket cleanup error: ${_}`,{level:"error"})}}let A=[];if(TM6){let q=TM6,K=new Promise((Y)=>{q.close((z)=>{if(z&&z.message!=="Server is not running.")WA(`Error closing HTTP proxy server: ${z.message}`,{level:"error"});Y()})});A.push(K)}if(oq6){let q=oq6.close().catch((K)=>{WA(`Error closing SOCKS proxy server: ${K.message}`,{level:"error"})});A.push(q)}await Promise.all(A),TM6=void 0,oq6=void 0,Ly=void 0,Os=void 0}function a_3(){return q51}function s_3(A,q){if(!o3)return q;let K=q51.getViolationsForCommand(A);if(K.length===0)return q;let Y=q;Y+=A18+"<sandbox_violations>"+A18;for(let z of K)Y+=z.line+A18;return Y+="</sandbox_violations>",Y}function t_3(){if(Lv()!=="linux"||!o3)return[];let A=[],q=[...o3.filesystem.allowWrite,...o3.filesystem.denyWrite];for(let K of q){let Y=iq6(K);if(Wk(Y))A.push(K)}return A}var o3,TM6,oq6,Ly,Os,HnA=!1,A51,q51,kO;var EnA=E(()=>{xdA();ddA();_I6();FiA();r31();qnA();OnA();ZM6();e68();q51=new fM6;kO={initialize:g_3,isSupportedPlatform:DnA,isSandboxingEnabled:p_3,checkDependencies:XnA,getFsReadConfig:F_3,getFsWriteConfig:Q_3,getNetworkRestrictionConfig:U_3,getAllowUnixSockets:PnA,getAllowLocalBinding:WnA,getIgnoreViolations:GnA,getEnableWeakerNestedSandbox:ZnA,getProxyPort:fnA,getSocksProxyPort:TnA,getLinuxHttpSocketPath:vnA,getLinuxSocksSocketPath:VnA,waitForNetworkInitialization:NnA,wrapWithSandbox:n_3,cleanupAfterCommand:knA,reset:Y18,getSandboxViolationStore:a_3,annotateStderrWithSandboxFailures:s_3,getLinuxGlobPatternWarnings:t_3,getConfig:r_3,updateConfig:o_3}});var vM6=E(()=>{lQ1();lQ1()});var w18,z18,e_3,ynA,RnA,SnA,hnA,A$3,_18;var CnA=E(()=>{vM6();w18=XK.string().refine((A)=>{if(A.includes("://")||A.includes("/")||A.includes(":"))return!1;if(A==="localhost")return!0;if(A.startsWith("*.")){let q=A.slice(2);if(!q.includes(".")||q.startsWith(".")||q.endsWith("."))return!1;let K=q.split(".");return K.length>=2&&K.every((Y)=>Y.length>0)}if(A.includes("*"))return!1;return A.includes(".")&&!A.startsWith(".")&&!A.endsWith(".")},{message:'Invalid domain pattern. Must be a valid domain (e.g., "example.com") or wildcard (e.g., "*.example.com"). Overly broad patterns like "*.com" or "*" are not allowed for security reasons.'}),z18=XK.string().min(1,"Path cannot be empty"),e_3=XK.object({socketPath:XK.string().min(1).describe("Unix socket path to the MITM proxy"),domains:XK.array(w18).min(1).describe('Domains to route through the MITM proxy (e.g., ["api.example.com", "*.internal.org"])')}),ynA=XK.object({allowedDomains:XK.array(w18).describe('List of allowed domains (e.g., ["github.com", "*.npmjs.org"])'),deniedDomains:XK.array(w18).describe("List of denied domains"),allowUnixSockets:XK.array(XK.string()).optional().describe("macOS only: Unix socket paths to allow. Ignored on Linux (seccomp cannot filter by path)."),allowAllUnixSockets:XK.boolean().optional().describe("If true, allow all Unix sockets (disables blocking on both platforms)."),allowLocalBinding:XK.boolean().optional().describe("Whether to allow binding to local ports (default: false)"),httpProxyPort:XK.number().int().min(1).max(65535).optional().describe("Port of an external HTTP proxy to use instead of starting a local one. When provided, the library will skip starting its own HTTP proxy and use this port. The external proxy must handle domain filtering."),socksProxyPort:XK.number().int().min(1).max(65535).optional().describe("Port of an external SOCKS proxy to use instead of starting a local one. When provided, the library will skip starting its own SOCKS proxy and use this port. The external proxy must handle domain filtering."),mitmProxy:e_3.optional().describe("Optional MITM proxy configuration. Routes matching domains through an upstream proxy via Unix socket while SRT still handles allow/deny filtering.")}),RnA=XK.object({denyRead:XK.array(z18).describe("Paths denied for reading"),allowWrite:XK.array(z18).describe("Paths allowed for writing"),denyWrite:XK.array(z18).describe("Paths denied for writing (takes precedence over allowWrite)"),allowGitConfig:XK.boolean().optional().describe("Allow writes to .git/config files (default: false). Enables git remote URL updates while keeping .git/hooks protected.")}),SnA=XK.record(XK.string(),XK.array(XK.string())).describe('Map of command patterns to filesystem paths to ignore violations for. Use "*" to match all commands'),hnA=XK.object({command:XK.string().describe('The ripgrep command to execute (e.g., "rg", "claude")'),args:XK.array(XK.string()).optional().describe('Additional arguments to pass before ripgrep args (e.g., ["--ripgrep"])')}),A$3=XK.object({bpfPath:XK.string().optional().describe("Path to the unix-block.bpf filter file"),applyPath:XK.string().optional().describe("Path to the apply-seccomp binary")}),_18=XK.object({network:ynA.describe("Network restrictions configuration"),filesystem:RnA.describe("Filesystem restrictions configuration"),ignoreViolations:SnA.optional().describe("Optional configuration for ignoring specific violations"),enableWeakerNestedSandbox:XK.boolean().optional().describe("Enable weaker nested sandbox mode (for Docker environments)"),enableWeakerNetworkIsolation:XK.boolean().optional().describe("Enable weaker network isolation to allow access to com.apple.trustd.agent (macOS only). This is needed for Go programs (gh, gcloud, terraform, kubectl, etc.) to verify TLS certificates when using httpProxyPort with a MITM proxy and custom CA. Enabling this opens a potential data exfiltration vector through the trustd service. Only enable if you need Go TLS verification."),ripgrep:hnA.optional().describe('Custom ripgrep configuration (default: { command: "rg" })'),mandatoryDenySearchDepth:XK.number().int().min(1).max(10).optional().describe("Maximum directory depth to search for dangerous files on Linux (default: 3). Higher values provide more protection but slower performance."),allowPty:XK.boolean().optional().describe("Allow pseudo-terminal (pty) operations (macOS only)"),seccomp:A$3.optional().describe("Custom seccomp binary paths (Linux only).")})});var InA=E(()=>{EnA();e68();CnA();ZM6();r31()});function xnA(A,q,K){return`
Web page content:
---
${A}
---

${q}

${K?"Provide a concise response based on the content above. Include relevant details, code examples, and documentation excerpts as needed.":`Provide a concise response based only on the content above. In your response:
 - Enforce a strict 125-character maximum for quotes from any source document. Open Source Software is ok as long as we respect the license.
 - Use quotation marks for exact language from articles; any language outside of the quotation should never be word-for-word the same.
 - You are not a lawyer and never comment on the legality of your own prompts and responses.
 - Never produce or reproduce exact song lyrics.`}
`}var kD="WebFetch",$18=`
- Fetches content from a specified URL and processes it using an AI model
- Takes a URL and a prompt as input
- Fetches the URL content, converts HTML to markdown
- Processes the content with the prompt using a small, fast model
- Returns the model's response about the content
- Use this tool when you need to retrieve and analyze web content

Usage notes:
  - IMPORTANT: If an MCP-provided web fetch tool is available, prefer using that tool instead of this one, as it may have fewer restrictions.
  - The URL must be a fully-formed valid URL
  - HTTP URLs will be automatically upgraded to HTTPS
  - The prompt should describe what information you want to extract from the page
  - This tool is read-only and does not modify any files
  - Results may be summarized if the content is very large
  - Includes a self-cleaning 15-minute cache for faster responses when repeatedly accessing the same URL
  - When a URL redirects to a different host, the tool will inform you and provide the redirect URL in a special format. You should then make a new WebFetch request with the redirect URL to fetch the content.
  - For GitHub URLs, prefer using the gh CLI via Bash instead (e.g., gh pr view, gh issue view, gh api).
`;var kq="Edit",K51="/.claude/**",Y51="~/.claude/**",fI6="File has been unexpectedly modified. Read it again before attempting to write it.";function O18(A){let q=A.trim();if(!q)return null;if(q.endsWith("-")){let w=parseInt(q.slice(0,-1),10);if(isNaN(w)||w<1)return null;return{firstPage:w,lastPage:1/0}}let K=q.indexOf("-");if(K===-1){let w=parseInt(q,10);if(isNaN(w)||w<1)return null;return{firstPage:w,lastPage:w}}let Y=parseInt(q.slice(0,K),10),z=parseInt(q.slice(K+1),10);if(isNaN(Y)||isNaN(z)||Y<1||z<1||z<Y)return null;return{firstPage:Y,lastPage:z}}function TI6(){return S7()==="firstParty"}function VM6(A){let q=A.startsWith(".")?A.slice(1):A;return q$3.has(q.toLowerCase())}var q$3;var z51=E(()=>{Aw();q$3=new Set(["pdf"])});var wq="Read",vI6=2000,K$3=2000,bnA="Read a file from the local filesystem.",Y$3="- Results are returned using cat -n format, with line numbers starting at 1",unA;var __=E(()=>{z51();unA=`Reads a file from the local filesystem. You can access any file directly by using this tool.
Assume this tool is able to read all files on the machine. If the User provides a path to a file assume that path is valid. It is okay to read a file that does not exist; an error will be returned.

Usage:
- The file_path parameter must be an absolute path, not a relative path
- By default, it reads up to ${vI6} lines starting from the beginning of the file
- You can optionally specify a line offset and limit (especially handy for long files), but it's recommended to read the whole file by not providing these parameters
- Any lines longer than ${K$3} characters will be truncated
${Y$3}
- This tool allows Claude Code to read images (eg PNG, JPG, etc). When reading an image file the contents are presented visually as Claude Code is a multimodal LLM.${TI6()?`
- This tool can read PDF files (.pdf). For large PDFs (more than 10 pages), you MUST provide the pages parameter to read specific page ranges (e.g., pages: "1-5"). Reading a large PDF without the pages parameter will fail. Maximum 20 pages per request.`:""}
- This tool can read Jupyter notebooks (.ipynb files) and returns all cells with their outputs, combining code, text, and visualizations.
- This tool can only read files, not directories. To read a directory, use an ls command via the ${a4} tool.
- You can call multiple tools in a single response. It is always better to speculatively read multiple potentially useful files in parallel.
- You will regularly be asked to read screenshots. If the user provides a path to a screenshot, ALWAYS use this tool to view the file at the path. This tool will work with all temporary file paths.
- If you read a file that exists but has empty contents you will receive a system reminder warning in place of file contents.`});var gnA={};d1(gnA,{shouldAllowManagedSandboxDomainsOnly:()=>tq6,resolvePathPatternForSandbox:()=>sq6,convertToSandboxRuntimeConfig:()=>w51,addToExcludedCommands:()=>M18,SandboxViolationStore:()=>fM6,SandboxRuntimeConfigSchema:()=>_18,SandboxManager:()=>uA});import{resolve as aq6,join as z$3}from"path";import{readFile as w$3}from"fs/promises";function NM6(A){let q=A.match(/^([^(]+)\(([^)]+)\)$/);if(!q)return{toolName:A};let K=q[1],Y=q[2];if(!K||!Y)return{toolName:A};return{toolName:K,ruleContent:Y}}function _$3(A){return A.match(/^(.+):\*$/)?.[1]??null}function sq6(A,q){if(A.startsWith("//"))return A.slice(1);if(A.startsWith("/")&&!A.startsWith("//")){let K=EM6(q);return aq6(K,A.slice(1))}return A}function tq6(){return LA("policySettings")?.sandbox?.network?.allowManagedDomainsOnly===!0}function w51(A){let q=A.permissions||{},K=[],Y=[];if(tq6()){let D=LA("policySettings");for(let X of D?.sandbox?.network?.allowedDomains||[])K.push(X);for(let X of D?.permissions?.allow||[]){let P=NM6(X);if(P.toolName===kD&&P.ruleContent?.startsWith("domain:"))K.push(P.ruleContent.substring(7))}}else{for(let D of A.sandbox?.network?.allowedDomains||[])K.push(D);for(let D of q.allow||[]){let X=NM6(D);if(X.toolName===kD&&X.ruleContent?.startsWith("domain:"))K.push(X.ruleContent.substring(7))}}for(let D of q.deny||[]){let X=NM6(D);if(X.toolName===kD&&X.ruleContent?.startsWith("domain:"))Y.push(X.ruleContent.substring(7))}let z=[".",bm()],w=[],_=[],$=Gv.map((D)=>L2(D)).filter((D)=>D!==void 0);w.push(...$);let O=AC(),H=OA();if(O!==H)w.push(aq6(O,".claude","settings.json")),w.push(aq6(O,".claude","settings.local.json"));if(w.push(aq6(H,".claude","skills")),O!==H)w.push(aq6(O,".claude","skills"));let j=["HEAD","objects","refs","hooks","config"];for(let D of j)if(w.push(aq6(H,D)),O!==H)w.push(aq6(O,D));if(kM6&&kM6!==O)z.push(kM6);let J=new Set([...A.permissions?.additionalDirectories||[],...qv()]);z.push(...J);for(let D of Gv){let X=LA(D);if(X?.permissions){for(let W of X.permissions.allow||[]){let G=NM6(W);if(G.toolName===kq&&G.ruleContent)z.push(sq6(G.ruleContent,D))}for(let W of X.permissions.deny||[]){let G=NM6(W);if(G.toolName===kq&&G.ruleContent)w.push(sq6(G.ruleContent,D));if(G.toolName===wq&&G.ruleContent)_.push(sq6(G.ruleContent,D))}}let P=X?.sandbox?.filesystem;if(P){for(let W of P.allowWrite||[])z.push(sq6(W,D));for(let W of P.denyWrite||[])w.push(sq6(W,D));for(let W of P.denyRead||[])_.push(sq6(W,D))}}let M=A.sandbox?.ripgrep?A.sandbox.ripgrep:(()=>{let{rgPath:D,rgArgs:X}=dj6();return{command:D,args:X}})();return{network:{allowedDomains:K,deniedDomains:Y,allowUnixSockets:A.sandbox?.network?.allowUnixSockets,allowAllUnixSockets:A.sandbox?.network?.allowAllUnixSockets,allowLocalBinding:A.sandbox?.network?.allowLocalBinding,httpProxyPort:A.sandbox?.network?.httpProxyPort,socksProxyPort:A.sandbox?.network?.socksProxyPort},filesystem:{denyRead:_,allowWrite:z,denyWrite:w},ignoreViolations:A.sandbox?.ignoreViolations,enableWeakerNestedSandbox:A.sandbox?.enableWeakerNestedSandbox,enableWeakerNetworkIsolation:A.sandbox?.enableWeakerNetworkIsolation,ripgrep:M}}async function $$3(A){let q=z$3(A,".git");try{let Y=(await w$3(q,{encoding:"utf8"})).match(/^gitdir:\s*(.+)$/m);if(Y?.[1]){let z=Y[1].trim(),w=z.indexOf(".git");if(w>0)return z.substring(0,w-1)}return null}catch{return null}}function mnA(){try{return bA()?.sandbox?.enabled??!1}catch(A){return y(`Failed to get settings for sandbox check: ${A}`),!1}}function O$3(){return bA()?.sandbox?.autoAllowBashIfSandboxed??!0}function H$3(){return bA()?.sandbox?.allowUnsandboxedCommands??!0}function BnA(){try{let q=b7()?.sandbox?.enabledPlatforms;if(q===void 0)return!0;if(q.length===0)return!1;let K=o8();return q.includes(K)}catch(A){return y(`Failed to check enabledPlatforms: ${A}`),!0}}function _51(){if(!J18())return!1;if(j18().errors.length>0)return!1;if(!BnA())return!1;return mnA()}function j$3(){let A=o8();if(A!=="linux"&&A!=="wsl")return[];try{let q=bA();if(!q?.sandbox?.enabled)return[];let K=q?.permissions||{},Y=[],z=(w)=>{let _=w.replace(/\/\*\*$/,"");return/[*?[\]]/.test(_)};for(let w of[...K.allow||[],...K.deny||[]]){let _=NM6(w);if((_.toolName===kq||_.toolName===wq)&&_.ruleContent&&z(_.ruleContent))Y.push(w)}return Y}catch(q){return y(`Failed to get Linux glob pattern warnings: ${q}`),[]}}function J$3(){let A=["flagSettings","policySettings"];for(let q of A){let K=LA(q);if(K?.sandbox?.enabled!==void 0||K?.sandbox?.autoAllowBashIfSandboxed!==void 0||K?.sandbox?.allowUnsandboxedCommands!==void 0)return!0}return!1}async function M$3(A){let q=LA("localSettings");gA("localSettings",{sandbox:{...q?.sandbox,...A.enabled!==void 0&&{enabled:A.enabled},...A.autoAllowBashIfSandboxed!==void 0&&{autoAllowBashIfSandboxed:A.autoAllowBashIfSandboxed},...A.allowUnsandboxedCommands!==void 0&&{allowUnsandboxedCommands:A.allowUnsandboxedCommands}}})}function D$3(){return bA()?.sandbox?.excludedCommands??[]}async function X$3(A,q,K,Y){if(_51())if(Hs)await Hs;else throw Error("Sandbox failed to initialize. ");return kO.wrapWithSandbox(A,q,K,Y)}async function P$3(A){if(Hs)return Hs;if(!_51())return;let q=A?async(K)=>{if(tq6())return y(`[sandbox] Blocked network request to ${K.host} (allowManagedDomainsOnly)`),!1;return A(K)}:void 0;return Hs=(async()=>{try{if(kM6===void 0)kM6=await $$3(AC());let K=bA(),Y=w51(K);await kO.initialize(Y,q),H18=EO.subscribe(()=>{let z=bA(),w=w51(z);kO.updateConfig(w),y("Sandbox configuration updated from settings change")})}catch(K){Hs=void 0,y(`Failed to initialize sandbox: ${D1(K)}`)}})(),Hs}function W$3(){if(!_51())return;let A=bA(),q=w51(A);kO.updateConfig(q)}async function G$3(){return H18?.(),H18=void 0,kM6=void 0,j18.cache.clear?.(),J18.cache.clear?.(),Hs=void 0,kO.reset()}function M18(A,q){let K=LA("localSettings"),Y=K?.sandbox?.excludedCommands||[],z=A;if(q){let w=q.filter((_)=>_.type==="addRules"&&_.rules.some(($)=>$.toolName===a4));if(w.length>0&&w[0].type==="addRules"){let _=w[0].rules.find(($)=>$.toolName===a4);if(_?.ruleContent)z=_$3(_.ruleContent)||_.ruleContent}}if(!Y.includes(z))gA("localSettings",{sandbox:{...K?.sandbox,excludedCommands:[...Y,z]}});return z}var Hs,H18,kM6,j18,J18,uA;var Kw=E(()=>{InA();iK();EA();E2();U1();Z1();xm();o71();__();hC();uz();DA();j18=k8(()=>{let{rgPath:A,rgArgs:q}=dj6();return kO.checkDependencies({command:A,args:q})});J18=k8(()=>{return kO.isSupportedPlatform()});uA={initialize:P$3,isSandboxingEnabled:_51,isSandboxEnabledInSettings:mnA,isPlatformInEnabledList:BnA,isAutoAllowBashIfSandboxedEnabled:O$3,areUnsandboxedCommandsAllowed:H$3,areSandboxSettingsLockedByPolicy:J$3,setSandboxSettings:M$3,getExcludedCommands:D$3,wrapWithSandbox:X$3,refreshConfig:W$3,reset:G$3,checkDependencies:j18,getFsReadConfig:kO.getFsReadConfig,getFsWriteConfig:kO.getFsWriteConfig,getNetworkRestrictionConfig:kO.getNetworkRestrictionConfig,getIgnoreViolations:kO.getIgnoreViolations,getLinuxGlobPatternWarnings:j$3,isSupportedPlatform:J18,getAllowUnixSockets:kO.getAllowUnixSockets,getAllowLocalBinding:kO.getAllowLocalBinding,getEnableWeakerNestedSandbox:kO.getEnableWeakerNestedSandbox,getProxyPort:kO.getProxyPort,getSocksProxyPort:kO.getSocksProxyPort,getLinuxHttpSocketPath:kO.getLinuxHttpSocketPath,getLinuxSocksSocketPath:kO.getLinuxSocksSocketPath,waitForNetworkInitialization:kO.waitForNetworkInitialization,getSandboxViolationStore:kO.getSandboxViolationStore,annotateStderrWithSandboxFailures:kO.annotateStderrWithSandboxFailures,cleanupAfterCommand:kO.cleanupAfterCommand}});var W6=h((b$3)=>{var P18=Symbol.for("react.transitional.element"),Z$3=Symbol.for("react.portal"),f$3=Symbol.for("react.fragment"),T$3=Symbol.for("react.strict_mode"),v$3=Symbol.for("react.profiler"),V$3=Symbol.for("react.consumer"),N$3=Symbol.for("react.context"),k$3=Symbol.for("react.forward_ref"),E$3=Symbol.for("react.suspense"),L$3=Symbol.for("react.memo"),dnA=Symbol.for("react.lazy"),y$3=Symbol.for("react.activity"),pnA=Symbol.iterator;function R$3(A){if(A===null||typeof A!=="object")return null;return A=pnA&&A[pnA]||A["@@iterator"],typeof A==="function"?A:null}var cnA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lnA=Object.assign,inA={};function yM6(A,q,K){this.props=A,this.context=q,this.refs=inA,this.updater=K||cnA}yM6.prototype.isReactComponent={};yM6.prototype.setState=function(A,q){if(typeof A!=="object"&&typeof A!=="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,q,"setState")};yM6.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function nnA(){}nnA.prototype=yM6.prototype;function W18(A,q,K){this.props=A,this.context=q,this.refs=inA,this.updater=K||cnA}var G18=W18.prototype=new nnA;G18.constructor=W18;lnA(G18,yM6.prototype);G18.isPureReactComponent=!0;var FnA=Array.isArray;function X18(){}var F$={H:null,A:null,T:null,S:null},rnA=Object.prototype.hasOwnProperty;function Z18(A,q,K){var Y=K.ref;return{$$typeof:P18,type:A,key:q,ref:Y!==void 0?Y:null,props:K}}function S$3(A,q){return Z18(A.type,q,A.props)}function f18(A){return typeof A==="object"&&A!==null&&A.$$typeof===P18}function h$3(A){var q={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(K){return q[K]})}var QnA=/\/+/g;function D18(A,q){return typeof A==="object"&&A!==null&&A.key!=null?h$3(""+A.key):q.toString(36)}function C$3(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status==="string"?A.then(X18,X18):(A.status="pending",A.then(function(q){A.status==="pending"&&(A.status="fulfilled",A.value=q)},function(q){A.status==="pending"&&(A.status="rejected",A.reason=q)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function LM6(A,q,K,Y,z){var w=typeof A;if(w==="undefined"||w==="boolean")A=null;var _=!1;if(A===null)_=!0;else switch(w){case"bigint":case"string":case"number":_=!0;break;case"object":switch(A.$$typeof){case P18:case Z$3:_=!0;break;case dnA:return _=A._init,LM6(_(A._payload),q,K,Y,z)}}if(_)return z=z(A),_=Y===""?"."+D18(A,0):Y,FnA(z)?(K="",_!=null&&(K=_.replace(QnA,"$&/")+"/"),LM6(z,q,K,"",function(H){return H})):z!=null&&(f18(z)&&(z=S$3(z,K+(z.key==null||A&&A.key===z.key?"":(""+z.key).replace(QnA,"$&/")+"/")+_)),q.push(z)),1;_=0;var $=Y===""?".":Y+":";if(FnA(A))for(var O=0;O<A.length;O++)Y=A[O],w=$+D18(Y,O),_+=LM6(Y,q,K,w,z);else if(O=R$3(A),typeof O==="function")for(A=O.call(A),O=0;!(Y=A.next()).done;)Y=Y.value,w=$+D18(Y,O++),_+=LM6(Y,q,K,w,z);else if(w==="object"){if(typeof A.then==="function")return LM6(C$3(A),q,K,Y,z);throw q=String(A),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return _}function $51(A,q,K){if(A==null)return A;var Y=[],z=0;return LM6(A,Y,"","",function(w){return q.call(K,w,z++)}),Y}function I$3(A){if(A._status===-1){var q=A._result;q=q(),q.then(function(K){if(A._status===0||A._status===-1)A._status=1,A._result=K},function(K){if(A._status===0||A._status===-1)A._status=2,A._result=K}),A._status===-1&&(A._status=0,A._result=q)}if(A._status===1)return A._result.default;throw A._result}var UnA=typeof reportError==="function"?reportError:function(A){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A==="object"&&A!==null&&typeof A.message==="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(q))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",A);return}console.error(A)},x$3={map:$51,forEach:function(A,q,K){$51(A,function(){q.apply(this,arguments)},K)},count:function(A){var q=0;return $51(A,function(){q++}),q},toArray:function(A){return $51(A,function(q){return q})||[]},only:function(A){if(!f18(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};b$3.Activity=y$3;b$3.Children=x$3;b$3.Component=yM6;b$3.Fragment=f$3;b$3.Profiler=v$3;b$3.PureComponent=W18;b$3.StrictMode=T$3;b$3.Suspense=E$3;b$3.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F$;b$3.__COMPILER_RUNTIME={__proto__:null,c:function(A){return F$.H.useMemoCache(A)}};b$3.cache=function(A){return function(){return A.apply(null,arguments)}};b$3.cacheSignal=function(){return null};b$3.cloneElement=function(A,q,K){if(A===null||A===void 0)throw Error("The argument must be a React element, but you passed "+A+".");var Y=lnA({},A.props),z=A.key;if(q!=null)for(w in q.key!==void 0&&(z=""+q.key),q)!rnA.call(q,w)||w==="key"||w==="__self"||w==="__source"||w==="ref"&&q.ref===void 0||(Y[w]=q[w]);var w=arguments.length-2;if(w===1)Y.children=K;else if(1<w){for(var _=Array(w),$=0;$<w;$++)_[$]=arguments[$+2];Y.children=_}return Z18(A.type,z,Y)};b$3.createContext=function(A){return A={$$typeof:N$3,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:V$3,_context:A},A};b$3.createElement=function(A,q,K){var Y,z={},w=null;if(q!=null)for(Y in q.key!==void 0&&(w=""+q.key),q)rnA.call(q,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(z[Y]=q[Y]);var _=arguments.length-2;if(_===1)z.children=K;else if(1<_){for(var $=Array(_),O=0;O<_;O++)$[O]=arguments[O+2];z.children=$}if(A&&A.defaultProps)for(Y in _=A.defaultProps,_)z[Y]===void 0&&(z[Y]=_[Y]);return Z18(A,w,z)};b$3.createRef=function(){return{current:null}};b$3.forwardRef=function(A){return{$$typeof:k$3,render:A}};b$3.isValidElement=f18;b$3.lazy=function(A){return{$$typeof:dnA,_payload:{_status:-1,_result:A},_init:I$3}};b$3.memo=function(A,q){return{$$typeof:L$3,type:A,compare:q===void 0?null:q}};b$3.startTransition=function(A){var q=F$.T,K={};F$.T=K;try{var Y=A(),z=F$.S;z!==null&&z(K,Y),typeof Y==="object"&&Y!==null&&typeof Y.then==="function"&&Y.then(X18,UnA)}catch(w){UnA(w)}finally{q!==null&&K.types!==null&&(q.types=K.types),F$.T=q}};b$3.unstable_useCacheRefresh=function(){return F$.H.useCacheRefresh()};b$3.use=function(A){return F$.H.use(A)};b$3.useActionState=function(A,q,K){return F$.H.useActionState(A,q,K)};b$3.useCallback=function(A,q){return F$.H.useCallback(A,q)};b$3.useContext=function(A){return F$.H.useContext(A)};b$3.useDebugValue=function(){};b$3.useDeferredValue=function(A,q){return F$.H.useDeferredValue(A,q)};b$3.useEffect=function(A,q){return F$.H.useEffect(A,q)};b$3.useEffectEvent=function(A){return F$.H.useEffectEvent(A)};b$3.useId=function(){return F$.H.useId()};b$3.useImperativeHandle=function(A,q,K){return F$.H.useImperativeHandle(A,q,K)};b$3.useInsertionEffect=function(A,q){return F$.H.useInsertionEffect(A,q)};b$3.useLayoutEffect=function(A,q){return F$.H.useLayoutEffect(A,q)};b$3.useMemo=function(A,q){return F$.H.useMemo(A,q)};b$3.useOptimistic=function(A,q){return F$.H.useOptimistic(A,q)};b$3.useReducer=function(A,q,K){return F$.H.useReducer(A,q,K)};b$3.useRef=function(A){return F$.H.useRef(A)};b$3.useState=function(A){return F$.H.useState(A)};b$3.useSyncExternalStore=function(A,q,K){return F$.H.useSyncExternalStore(A,q,K)};b$3.useTransition=function(){return F$.H.useTransition()};b$3.version="19.2.0"});import{randomBytes as NO3}from"crypto";function LO3(){return NO3(8).toString("hex")}function RO3(A,q){let K=!1,Y=!1;for(let z=0;z<q;z++){let w=A[z];if(K){if(w==="'")K=!1;continue}if(Y){if(w==="\\"){z++;continue}if(w==='"')Y=!1;continue}let _=0;for(let $=z-1;$>=0&&A[$]==="\\";$--)_++;if(_%2===1)continue;if(w==="'")K=!0;else if(w==='"')Y=!0}return K||Y}function SO3(A,q){let K=A.lastIndexOf(`
`,q-1)+1,Y=!1,z=!1;for(let w=0;w<q;w++){let _=A[w];if(Y){if(_==="'")Y=!1;continue}if(z){if(_==="\\"){w++;continue}if(_==='"')z=!1;continue}let $=0;for(let O=w-1;O>=0&&A[O]==="\\";O--)$++;if($%2===1)continue;if(_==="'")Y=!0;else if(_==='"')z=!0;else if(w>=K&&_==="#")return!0}return!1}function RM6(A,q){let K=new Map;if(!A.includes("<<"))return{processedCommand:A,heredocs:K};if(/\$['"]/.test(A))return{processedCommand:A,heredocs:K};let Y=A.indexOf("<<");if(Y>0&&A.slice(0,Y).includes("`"))return{processedCommand:A,heredocs:K};if(Y>0){let M=A.slice(0,Y),D=(M.match(/\(\(/g)||[]).length,X=(M.match(/\)\)/g)||[]).length;if(D>X)return{processedCommand:A,heredocs:K}}let z=new RegExp(yO3.source,"g"),w=[],_=[],$;while(($=z.exec(A))!==null){let M=$.index;if(RO3(A,M))continue;let D=0;for(let O6=M-1;O6>=0&&A[O6]==="\\";O6--)D++;if(D%2===1)continue;if(SO3(A,M))continue;let X=!1;for(let O6 of _)if(M>O6.contentStartIndex&&M<O6.contentEndIndex){X=!0;break}if(X)continue;let P=$[0],W=$[1]==="-",G=$[3]||$[4],Z=M+P.length,f=$[2];if(f&&A[Z-1]!==f)continue;let v=P.includes("\\"),V=!!f||v;if(Z<A.length){let O6=A[Z];if(!/^[ \t\n|&;()<>]$/.test(O6))continue}let N=-1;{let O6=!1,P6=!1;for(let f6=Z;f6<A.length;f6++){let a=A[f6];if(O6){if(a==="'")O6=!1;continue}if(P6){if(a==="\\"){f6++;continue}if(a==='"')P6=!1;continue}if(a===`
`){N=f6-Z;break}let s=0;for(let _6=f6-1;_6>=Z&&A[_6]==="\\";_6--)s++;if(s%2===1)continue;if(a==="'")O6=!0;else if(a==='"')P6=!0}}if(N===-1)continue;let L=A.slice(Z,Z+N),S=0;for(let O6=L.length-1;O6>=0;O6--)if(L[O6]==="\\")S++;else break;if(S%2===1)continue;let C=Z+N,x=A.slice(C+1).split(`
`),p=-1;for(let O6=0;O6<x.length;O6++){let P6=x[O6];if(W){if(P6.replace(/^\t*/,"")===G){p=O6;break}}else if(P6===G){p=O6;break}let f6=W?P6.replace(/^\t*/,""):P6;if(f6.length>G.length&&f6.startsWith(G)){let a=f6[G.length];if(/^[)}`|&;(<>]$/.test(a)){p=-1;break}}}if(q?.quotedOnly&&!V){let O6;if(p===-1)O6=A.length;else{let f6=x.slice(0,p+1).join(`
`).length;O6=C+1+f6}_.push({contentStartIndex:C,contentEndIndex:O6});continue}if(p===-1)continue;let b=x.slice(0,p+1).join(`
`).length,Q=C+1+b,c=!1;for(let O6 of _)if(C<O6.contentEndIndex&&O6.contentStartIndex<Q){c=!0;break}if(c)continue;let d=A.slice(M,Z),A6=A.slice(C,Q),e=d+A6;w.push({fullText:e,delimiter:G,operatorStartIndex:M,operatorEndIndex:Z,contentStartIndex:C,contentEndIndex:Q})}if(w.length===0)return{processedCommand:A,heredocs:K};let O=w.filter((M,D,X)=>{for(let P of X){if(M===P)continue;if(M.operatorStartIndex>P.contentStartIndex&&M.operatorStartIndex<P.contentEndIndex)return!1}return!0});if(O.length===0)return{processedCommand:A,heredocs:K};if(new Set(O.map((M)=>M.contentStartIndex)).size<O.length)return{processedCommand:A,heredocs:K};O.sort((M,D)=>D.contentEndIndex-M.contentEndIndex);let j=LO3(),J=A;return O.forEach((M,D)=>{let X=O.length-1-D,P=`${kO3}${X}_${j}${EO3}`;K.set(P,M),J=J.slice(0,M.operatorStartIndex)+P+J.slice(M.operatorEndIndex,M.contentStartIndex)+J.slice(M.contentEndIndex)}),{processedCommand:J,heredocs:K}}function hO3(A,q){let K=A;for(let[Y,z]of q)K=K.replaceAll(Y,z.fullText);return K}function onA(A,q){if(q.size===0)return A;return A.map((K)=>hO3(K,q))}var kO3="__HEREDOC_",EO3="__",yO3;var T18=E(()=>{yO3=/(?<!<)<<(?!<)(-)?[ \t]*(?:(['"])(\\?\w+)\2|\\?(\w+))/});var CO3=null,tU;var SM6=E(()=>{tU=[a4,CO3].filter((A)=>A!=null)});var gz="Glob",v18=`- Fast file pattern matching tool that works with any codebase size
- Supports glob patterns like "**/*.js" or "src/**/*.ts"
- Returns matching file paths sorted by modification time
- Use this tool when you need to find files by name patterns
- When you are doing an open ended search that may require multiple rounds of globbing and grepping, use the Agent tool instead
- You can call multiple tools in a single response. It is always better to speculatively perform multiple searches in parallel if they are potentially useful.`;function V18(){return`A powerful search tool built on ripgrep

  Usage:
  - ALWAYS use ${N5} for search tasks. NEVER invoke \`grep\` or \`rg\` as a ${a4} command. The ${N5} tool has been optimized for correct permissions and access.
  - Supports full regex syntax (e.g., "log.*Error", "function\\s+\\w+")
  - Filter files with glob parameter (e.g., "*.js", "**/*.tsx") or type parameter (e.g., "js", "py", "rust")
  - Output modes: "content" shows matching lines, "files_with_matches" shows only file paths (default), "count" shows match counts
  - Use ${pq} tool for open-ended searches requiring multiple rounds
  - Pattern syntax: Uses ripgrep (not grep) - literal braces need escaping (use \`interface\\{\\}\` to find \`interface{}\` in Go code)
  - Multiline matching: By default patterns match within single lines only. For cross-line patterns like \`struct \\{[\\s\\S]*?field\`, use \`multiline: true\`
`}var N5="Grep";var M0=()=>{};function IO3(){return`
- If this is an existing file, you MUST use the ${wq} tool first to read the file's contents. This tool will fail if you did not read the file first.`}function anA(){return`Writes a file to the local filesystem.

Usage:
- This tool will overwrite the existing file if there is one at the provided path.${IO3()}
- Prefer the Edit tool for modifying existing files — it only sends the diff. Only use this tool to create new files or for complete rewrites.
- NEVER create documentation files (*.md) or README files unless explicitly requested by the User.
- Only use emojis if the user explicitly requests it. Avoid writing emojis to files unless asked.`}var R3="Write";var tj=E(()=>{__()});var RX="NotebookEdit";function hM6(){let A=new Date,q=A.getFullYear(),K=String(A.getMonth()+1).padStart(2,"0"),Y=String(A.getDate()).padStart(2,"0");return`${q}-${K}-${Y}`}function snA(){return new Date().toLocaleString("en-US",{month:"long",year:"numeric"})}function tnA(){return`
- Allows Claude to search the web and use the results to inform responses
- Provides up-to-date information for current events and recent data
- Returns search result information formatted as search result blocks, including links as markdown hyperlinks
- Use this tool for accessing information beyond Claude's knowledge cutoff
- Searches are performed automatically within a single API call

CRITICAL REQUIREMENT - You MUST follow this:
  - After answering the user's question, you MUST include a "Sources:" section at the end of your response
  - In the Sources section, list all relevant URLs from the search results as markdown hyperlinks: [Title](URL)
  - This is MANDATORY - never skip including sources in your response
  - Example format:

    [Your answer here]

    Sources:
    - [Source Title 1](https://example.com/1)
    - [Source Title 2](https://example.com/2)

Usage notes:
  - Domain filtering is supported to include or block specific websites
  - Web search is only available in the US

IMPORTANT - Use the correct year in search queries:
  - The current month is ${snA()}. You MUST use this year when searching for recent information, documentation, or current events.
  - Example: If the user asks for "latest React docs", search for "React documentation" with the current year, NOT last year
`}var Gk="WebSearch";var eq6=()=>{};function qrA(A){let{hasThinking:q=!1}=A??{},K=[];if(q&&qA("tengu_marble_anvil",!1))K.push({type:"clear_thinking_20251015",keep:"all"});return K.length>0?{edits:K}:void 0}var enA=180000,ArA=40000,xO3,bO3;var KrA=E(()=>{Z8();P7();SM6();M0();__();tj();eq6();xO3=[...tU,gz,N5,wq,kD,Gk],bO3=[kq,R3,RX]});function VI6(){return qA("tengu_quartz_falcon",null)}function js(){return VI6()?.enabled===!0}function NI6(){let A=VI6();if(A?.enabled&&A?.defaultLabel)return A.defaultLabel;return""}var AK6=E(()=>{P7()});function Js(A){let q=A.toLowerCase();if(q.includes("opus-4-6")||q.includes("sonnet-4-6"))return!0;if(q.includes("haiku")||q.includes("sonnet")||q.includes("opus"))return!1;return!0}function uO3(A){return CM6.includes(A)}function eU(A){if(A===void 0||A===null||A==="")return;let q=typeof A==="number"?A:parseInt(String(A),10);if(!isNaN(q)&&mO3(q))return q;if(typeof A==="string"&&uO3(A))return A;return}function N18(){let A=b7();return eU(A.effortLevel)}function zrA(){return eU(process.env.CLAUDE_CODE_EFFORT_LEVEL)}function mO3(A){return Number.isInteger(A)}function cC(A){if(typeof A==="string")return A;return"high"}function kI6(){let A=qA("tengu_grey_step2",YrA);return{...YrA,...A}}function IM6(A){if(A.toLowerCase().includes("opus-4-6")){if(js()||qd())return"medium";if(kI6().enabled&&(Ry()||EI6()))return"medium"}if(Ad()&&Js(A))return"medium";return}var CM6,YrA;var yy=E(()=>{lC();EA();xA();AK6();P7();CM6=["low","medium","high","max"];YrA={enabled:!1,dialogTitle:"",dialogDescription:""}});function H51(A){if(S7()==="vertex")return k18;if(A?.isNonInteractive){if(A.hasAppendSystemPrompt)return wrA;return _rA}return k18}function gO3(){if(nw(process.env.CLAUDE_CODE_ATTRIBUTION_HEADER))return!1;return qA("tengu_attribution_header",!0)}function j51(A){if(!gO3())return"";let q=`${{ISSUES_EXPLAINER:"report the issue at https://github.com/anthropics/claude-code/issues",PACKAGE_URL:"@anthropic-ai/claude-code",README_URL:"https://code.claude.com/docs/en/overview",VERSION:"2.1.69",FEEDBACK_CHANNEL:"https://github.com/anthropics/claude-code/issues",BUILD_TIME:"2026-03-04T21:45:14Z"}.VERSION}.${A}`,K=process.env.CLAUDE_CODE_ENTRYPOINT??"unknown",z=`x-anthropic-billing-header: cc_version=${q}; cc_entrypoint=${K};${" cch=00000;"}`;return y(`attribution header ${z}`),z}var k18="You are Claude Code, Anthropic's official CLI for Claude.",wrA="You are Claude Code, Anthropic's official CLI for Claude, running within the Claude Agent SDK.",_rA="You are a Claude agent, built on Anthropic's Claude Agent SDK.",BO3,O51;var J51=E(()=>{Aw();Z1();P7();Z8();BO3=[k18,wrA,_rA],O51=new Set(BO3)});import{createHash as pO3}from"crypto";function QO3(A){let q=A.find((Y)=>Y.type==="user");if(!q)return"";let K=q.message.content;if(typeof K==="string")return K;if(Array.isArray(K)){let Y=K.find((z)=>z.type==="text");if(Y&&Y.type==="text")return Y.text}return""}function E18(A,q){let Y=[4,7,20].map((_)=>A[_]||"0").join(""),z=`${FO3}${Y}${q}`;return pO3("sha256").update(z).digest("hex").slice(0,3)}function $rA(A){let q=QO3(A);return E18(q,{ISSUES_EXPLAINER:"report the issue at https://github.com/anthropics/claude-code/issues",PACKAGE_URL:"@anthropic-ai/claude-code",README_URL:"https://code.claude.com/docs/en/overview",VERSION:"2.1.69",FEEDBACK_CHANNEL:"https://github.com/anthropics/claude-code/issues",BUILD_TIME:"2026-03-04T21:45:14Z"}.VERSION)}var FO3="59cf53e54c78";var L18=()=>{};function Ms(A){return A.filter((q)=>q.data?.type!=="hook_progress")}function k5(A,q){return A.name===q||(A.aliases?.includes(q)??!1)}function N3(A,q){return A.find((K)=>k5(K,q))}var ED=()=>({mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1});function Kd(A){let q=OrA.get(A);if(q)return q;let K=rQ(A);return OrA.set(A,K),K}var OrA;var M51=E(()=>{_4();OrA=new WeakMap});import{createHash as HrA}from"crypto";function UO3(A){return HrA("sha256").update(A).digest("hex").slice(0,16)}function dO3(A){return HrA("sha256").update(A).digest("hex")}function iC(A){let q={operation:A.operation,tool:A.tool,filePathHash:UO3(A.filePath)};if(A.content!==void 0&&A.content.length<=cO3)q.contentHash=dO3(A.content);if(A.type!==void 0)q.type=A.type;l("tengu_file_operation",q)}var cO3=102400;var D51=E(()=>{m1()});class qK6{diff(A,q,K={}){let Y;if(typeof K==="function")Y=K,K={};else if("callback"in K)Y=K.callback;let z=this.castInput(A,K),w=this.castInput(q,K),_=this.removeEmpty(this.tokenize(z,K)),$=this.removeEmpty(this.tokenize(w,K));return this.diffWithOptionsObj(_,$,K,Y)}diffWithOptionsObj(A,q,K,Y){var z;let w=(G)=>{if(G=this.postProcess(G,K),Y){setTimeout(function(){Y(G)},0);return}else return G},_=q.length,$=A.length,O=1,H=_+$;if(K.maxEditLength!=null)H=Math.min(H,K.maxEditLength);let j=(z=K.timeout)!==null&&z!==void 0?z:1/0,J=Date.now()+j,M=[{oldPos:-1,lastComponent:void 0}],D=this.extractCommon(M[0],q,A,0,K);if(M[0].oldPos+1>=$&&D+1>=_)return w(this.buildValues(M[0].lastComponent,q,A));let X=-1/0,P=1/0,W=()=>{for(let G=Math.max(X,-O);G<=Math.min(P,O);G+=2){let Z,f=M[G-1],v=M[G+1];if(f)M[G-1]=void 0;let V=!1;if(v){let L=v.oldPos-G;V=v&&0<=L&&L<_}let N=f&&f.oldPos+1<$;if(!V&&!N){M[G]=void 0;continue}if(!N||V&&f.oldPos<v.oldPos)Z=this.addToPath(v,!0,!1,0,K);else Z=this.addToPath(f,!1,!0,1,K);if(D=this.extractCommon(Z,q,A,G,K),Z.oldPos+1>=$&&D+1>=_)return w(this.buildValues(Z.lastComponent,q,A))||!0;else{if(M[G]=Z,Z.oldPos+1>=$)P=Math.min(P,G-1);if(D+1>=_)X=Math.max(X,G+1)}}O++};if(Y)(function G(){setTimeout(function(){if(O>H||Date.now()>J)return Y(void 0);if(!W())G()},0)})();else while(O<=H&&Date.now()<=J){let G=W();if(G)return G}}addToPath(A,q,K,Y,z){let w=A.lastComponent;if(w&&!z.oneChangePerToken&&w.added===q&&w.removed===K)return{oldPos:A.oldPos+Y,lastComponent:{count:w.count+1,added:q,removed:K,previousComponent:w.previousComponent}};else return{oldPos:A.oldPos+Y,lastComponent:{count:1,added:q,removed:K,previousComponent:w}}}extractCommon(A,q,K,Y,z){let w=q.length,_=K.length,$=A.oldPos,O=$-Y,H=0;while(O+1<w&&$+1<_&&this.equals(K[$+1],q[O+1],z))if(O++,$++,H++,z.oneChangePerToken)A.lastComponent={count:1,previousComponent:A.lastComponent,added:!1,removed:!1};if(H&&!z.oneChangePerToken)A.lastComponent={count:H,previousComponent:A.lastComponent,added:!1,removed:!1};return A.oldPos=$,O}equals(A,q,K){if(K.comparator)return K.comparator(A,q);else return A===q||!!K.ignoreCase&&A.toLowerCase()===q.toLowerCase()}removeEmpty(A){let q=[];for(let K=0;K<A.length;K++)if(A[K])q.push(A[K]);return q}castInput(A,q){return A}tokenize(A,q){return Array.from(A)}join(A){return A.join("")}postProcess(A,q){return A}get useLongestToken(){return!1}buildValues(A,q,K){let Y=[],z;while(A)Y.push(A),z=A.previousComponent,delete A.previousComponent,A=z;Y.reverse();let w=Y.length,_=0,$=0,O=0;for(;_<w;_++){let H=Y[_];if(!H.removed){if(!H.added&&this.useLongestToken){let j=q.slice($,$+H.count);j=j.map(function(J,M){let D=K[O+M];return D.length>J.length?D:J}),H.value=this.join(j)}else H.value=this.join(q.slice($,$+H.count));if($+=H.count,!H.added)O+=H.count}else H.value=this.join(K.slice(O,O+H.count)),O+=H.count}return Y}}function y18(A,q){let K;for(K=0;K<A.length&&K<q.length;K++)if(A[K]!=q[K])return A.slice(0,K);return A.slice(0,K)}function R18(A,q){let K;if(!A||!q||A[A.length-1]!=q[q.length-1])return"";for(K=0;K<A.length&&K<q.length;K++)if(A[A.length-(K+1)]!=q[q.length-(K+1)])return A.slice(-K);return A.slice(-K)}function X51(A,q,K){if(A.slice(0,q.length)!=q)throw Error(`string ${JSON.stringify(A)} doesn't start with prefix ${JSON.stringify(q)}; this is a bug`);return K+A.slice(q.length)}function P51(A,q,K){if(!q)return A+K;if(A.slice(-q.length)!=q)throw Error(`string ${JSON.stringify(A)} doesn't end with suffix ${JSON.stringify(q)}; this is a bug`);return A.slice(0,-q.length)+K}function xM6(A,q){return X51(A,q,"")}function LI6(A,q){return P51(A,q,"")}function S18(A,q){return q.slice(0,lO3(A,q))}function lO3(A,q){let K=0;if(A.length>q.length)K=A.length-q.length;let Y=q.length;if(A.length<q.length)Y=A.length;let z=Array(Y),w=0;z[0]=0;for(let _=1;_<Y;_++){if(q[_]==q[w])z[_]=z[w];else z[_]=w;while(w>0&&q[_]!=q[w])w=z[w];if(q[_]==q[w])w++}w=0;for(let _=K;_<A.length;_++){while(w>0&&A[_]!=q[w])w=z[w];if(A[_]==q[w])w++}return w}function bM6(A){let q;for(q=A.length-1;q>=0;q--)if(!A[q].match(/\s/))break;return A.substring(q+1)}function Yd(A){let q=A.match(/^\s*/);return q?q[0]:""}function jrA(A,q,K,Y){if(q&&K){let z=Yd(q.value),w=bM6(q.value),_=Yd(K.value),$=bM6(K.value);if(A){let O=y18(z,_);A.value=P51(A.value,_,O),q.value=xM6(q.value,O),K.value=xM6(K.value,O)}if(Y){let O=R18(w,$);Y.value=X51(Y.value,$,O),q.value=LI6(q.value,O),K.value=LI6(K.value,O)}}else if(K){if(A){let z=Yd(K.value);K.value=K.value.substring(z.length)}if(Y){let z=Yd(Y.value);Y.value=Y.value.substring(z.length)}}else if(A&&Y){let z=Yd(Y.value),w=Yd(q.value),_=bM6(q.value),$=y18(z,w);q.value=xM6(q.value,$);let O=R18(xM6(z,$),_);q.value=LI6(q.value,O),Y.value=X51(Y.value,z,O),A.value=P51(A.value,z,z.slice(0,z.length-O.length))}else if(Y){let z=Yd(Y.value),w=bM6(q.value),_=S18(w,z);q.value=LI6(q.value,_)}else if(A){let z=bM6(A.value),w=Yd(q.value),_=S18(z,w);q.value=xM6(q.value,_)}}function h18(A,q,K){return DrA.diff(A,q,K)}var W51="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",iO3,JrA,nO3,MrA,DrA;var XrA=E(()=>{iO3=new RegExp(`[${W51}]+|\\s+|[^${W51}]`,"ug");JrA=class JrA extends qK6{equals(A,q,K){if(K.ignoreCase)A=A.toLowerCase(),q=q.toLowerCase();return A.trim()===q.trim()}tokenize(A,q={}){let K;if(q.intlSegmenter){let w=q.intlSegmenter;if(w.resolvedOptions().granularity!="word")throw Error('The segmenter passed must have a granularity of "word"');K=[];for(let _ of Array.from(w.segment(A))){let $=_.segment;if(K.length&&/\s/.test(K[K.length-1])&&/\s/.test($))K[K.length-1]+=$;else K.push($)}}else K=A.match(iO3)||[];let Y=[],z=null;return K.forEach((w)=>{if(/\s/.test(w))if(z==null)Y.push(w);else Y.push(Y.pop()+w);else if(z!=null&&/\s/.test(z))if(Y[Y.length-1]==z)Y.push(Y.pop()+w);else Y.push(z+w);else Y.push(w);z=w}),Y}join(A){return A.map((q,K)=>{if(K==0)return q;else return q.replace(/^\s+/,"")}).join("")}postProcess(A,q){if(!A||q.oneChangePerToken)return A;let K=null,Y=null,z=null;if(A.forEach((w)=>{if(w.added)Y=w;else if(w.removed)z=w;else{if(Y||z)jrA(K,z,Y,w);K=w,Y=null,z=null}}),Y||z)jrA(K,z,Y,null);return A}};nO3=new JrA;MrA=class MrA extends qK6{tokenize(A){let q=new RegExp(`(\\r?\\n)|[${W51}]+|[^\\S\\n\\r]+|[^${W51}]`,"ug");return A.match(q)||[]}};DrA=new MrA});function Ds(A,q,K){return WrA.diff(A,q,K)}function rO3(A,q){if(q.stripTrailingCr)A=A.replace(/\r\n/g,`
`);let K=[],Y=A.split(/(\n|\r\n)/);if(!Y[Y.length-1])Y.pop();for(let z=0;z<Y.length;z++){let w=Y[z];if(z%2&&!q.newlineIsToken)K[K.length-1]+=w;else K.push(w)}return K}var PrA,WrA;var C18=E(()=>{PrA=class PrA extends qK6{constructor(){super(...arguments);this.tokenize=rO3}equals(A,q,K){if(K.ignoreWhitespace){if(!K.newlineIsToken||!A.includes(`
`))A=A.trim();if(!K.newlineIsToken||!q.includes(`
`))q=q.trim()}else if(K.ignoreNewlineAtEof&&!K.newlineIsToken){if(A.endsWith(`
`))A=A.slice(0,-1);if(q.endsWith(`
`))q=q.slice(0,-1)}return super.equals(A,q,K)}};WrA=new PrA});function uM6(A,q,K,Y,z,w,_){let $;if(!_)$={};else if(typeof _==="function")$={callback:_};else $=_;if(typeof $.context>"u")$.context=4;let O=$.context;if($.newlineIsToken)throw Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(!$.callback)return H(Ds(K,Y,$));else{let{callback:j}=$;Ds(K,Y,Object.assign(Object.assign({},$),{callback:(J)=>{let M=H(J);j(M)}}))}function H(j){if(!j)return;j.push({value:"",lines:[]});function J(Z){return Z.map(function(f){return" "+f})}let M=[],D=0,X=0,P=[],W=1,G=1;for(let Z=0;Z<j.length;Z++){let f=j[Z],v=f.lines||oO3(f.value);if(f.lines=v,f.added||f.removed){if(!D){let V=j[Z-1];if(D=W,X=G,V)P=O>0?J(V.lines.slice(-O)):[],D-=P.length,X-=P.length}for(let V of v)P.push((f.added?"+":"-")+V);if(f.added)G+=v.length;else W+=v.length}else{if(D)if(v.length<=O*2&&Z<j.length-2)for(let V of J(v))P.push(V);else{let V=Math.min(v.length,O);for(let L of J(v.slice(0,V)))P.push(L);let N={oldStart:D,oldLines:W-D+V,newStart:X,newLines:G-X+V,lines:P};M.push(N),D=0,X=0,P=[]}W+=v.length,G+=v.length}}for(let Z of M)for(let f=0;f<Z.lines.length;f++)if(Z.lines[f].endsWith(`
`))Z.lines[f]=Z.lines[f].slice(0,-1);else Z.lines.splice(f+1,0,"\\ No newline at end of file"),f++;return{oldFileName:A,newFileName:q,oldHeader:z,newHeader:w,hunks:M}}}function oO3(A){let q=A.endsWith(`
`),K=A.split(`
`).map((Y)=>Y+`
`);if(q)K.pop();else K.push(K.pop().slice(0,-1));return K}var GrA=E(()=>{C18()});var mM6=E(()=>{XrA();C18();GrA()});function tO3(){let A=new Map;for(let[q,K]of Object.entries(LO)){for(let[Y,z]of Object.entries(K))LO[Y]={open:`\x1B[${z[0]}m`,close:`\x1B[${z[1]}m`},K[Y]=LO[Y],A.set(z[0],z[1]);Object.defineProperty(LO,q,{value:K,enumerable:!1})}return Object.defineProperty(LO,"codes",{value:A,enumerable:!1}),LO.color.close="\x1B[39m",LO.bgColor.close="\x1B[49m",LO.color.ansi=ZrA(),LO.color.ansi256=frA(),LO.color.ansi16m=TrA(),LO.bgColor.ansi=ZrA(10),LO.bgColor.ansi256=frA(10),LO.bgColor.ansi16m=TrA(10),Object.defineProperties(LO,{rgbToAnsi256:{value(q,K,Y){if(q===K&&K===Y){if(q<8)return 16;if(q>248)return 231;return Math.round((q-8)/247*24)+232}return 16+36*Math.round(q/255*5)+6*Math.round(K/255*5)+Math.round(Y/255*5)},enumerable:!1},hexToRgb:{value(q){let K=/[a-f\d]{6}|[a-f\d]{3}/i.exec(q.toString(16));if(!K)return[0,0,0];let[Y]=K;if(Y.length===3)Y=[...Y].map((w)=>w+w).join("");let z=Number.parseInt(Y,16);return[z>>16&255,z>>8&255,z&255]},enumerable:!1},hexToAnsi256:{value:(q)=>LO.rgbToAnsi256(...LO.hexToRgb(q)),enumerable:!1},ansi256ToAnsi:{value(q){if(q<8)return 30+q;if(q<16)return 90+(q-8);let K,Y,z;if(q>=232)K=((q-232)*10+8)/255,Y=K,z=K;else{q-=16;let $=q%36;K=Math.floor(q/36)/5,Y=Math.floor($/6)/5,z=$%6/5}let w=Math.max(K,Y,z)*2;if(w===0)return 30;let _=30+(Math.round(z)<<2|Math.round(Y)<<1|Math.round(K));if(w===2)_+=60;return _},enumerable:!1},rgbToAnsi:{value:(q,K,Y)=>LO.ansi256ToAnsi(LO.rgbToAnsi256(q,K,Y)),enumerable:!1},hexToAnsi:{value:(q)=>LO.ansi256ToAnsi(LO.hexToAnsi256(q)),enumerable:!1}}),LO}var ZrA=(A=0)=>(q)=>`\x1B[${q+A}m`,frA=(A=0)=>(q)=>`\x1B[${38+A};5;${q}m`,TrA=(A=0)=>(q,K,Y)=>`\x1B[${38+A};2;${q};${K};${Y}m`,LO,Fq2,aO3,sO3,Qq2,eO3,nC;var vrA=E(()=>{LO={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Fq2=Object.keys(LO.modifier),aO3=Object.keys(LO.color),sO3=Object.keys(LO.bgColor),Qq2=[...aO3,...sO3];eO3=tO3(),nC=eO3});import I18 from"node:process";import AH3 from"node:os";import VrA from"node:tty";function Sy(A,q=globalThis.Deno?globalThis.Deno.args:I18.argv){let K=A.startsWith("-")?"":A.length===1?"-":"--",Y=q.indexOf(K+A),z=q.indexOf("--");return Y!==-1&&(z===-1||Y<z)}function qH3(){if("FORCE_COLOR"in Xj){if(Xj.FORCE_COLOR==="true")return 1;if(Xj.FORCE_COLOR==="false")return 0;return Xj.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Xj.FORCE_COLOR,10),3)}}function KH3(A){if(A===0)return!1;return{level:A,hasBasic:!0,has256:A>=2,has16m:A>=3}}function YH3(A,{streamIsTTY:q,sniffFlags:K=!0}={}){let Y=qH3();if(Y!==void 0)G51=Y;let z=K?G51:Y;if(z===0)return 0;if(K){if(Sy("color=16m")||Sy("color=full")||Sy("color=truecolor"))return 3;if(Sy("color=256"))return 2}if("TF_BUILD"in Xj&&"AGENT_NAME"in Xj)return 1;if(A&&!q&&z===void 0)return 0;let w=z||0;if(Xj.TERM==="dumb")return w;if(I18.platform==="win32"){let _=AH3.release().split(".");if(Number(_[0])>=10&&Number(_[2])>=10586)return Number(_[2])>=14931?3:2;return 1}if("CI"in Xj){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((_)=>(_ in Xj)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((_)=>(_ in Xj))||Xj.CI_NAME==="codeship")return 1;return w}if("TEAMCITY_VERSION"in Xj)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Xj.TEAMCITY_VERSION)?1:0;if(Xj.COLORTERM==="truecolor")return 3;if(Xj.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Xj){let _=Number.parseInt((Xj.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Xj.TERM_PROGRAM){case"iTerm.app":return _>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(Xj.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Xj.TERM))return 1;if("COLORTERM"in Xj)return 1;return w}function NrA(A,q={}){let K=YH3(A,{streamIsTTY:A&&A.isTTY,...q});return KH3(K)}var Xj,G51,zH3,krA;var ErA=E(()=>{({env:Xj}=I18);if(Sy("no-color")||Sy("no-colors")||Sy("color=false")||Sy("color=never"))G51=0;else if(Sy("color")||Sy("colors")||Sy("color=true")||Sy("color=always"))G51=1;zH3={stdout:NrA({isTTY:VrA.isatty(1)}),stderr:NrA({isTTY:VrA.isatty(2)})},krA=zH3});function LrA(A,q,K){let Y=A.indexOf(q);if(Y===-1)return A;let z=q.length,w=0,_="";do _+=A.slice(w,Y)+q+K,w=Y+z,Y=A.indexOf(q,w);while(Y!==-1);return _+=A.slice(w),_}function yrA(A,q,K,Y){let z=0,w="";do{let _=A[Y-1]==="\r";w+=A.slice(z,_?Y-1:Y)+q+(_?`\r
`:`
`)+K,z=Y+1,Y=A.indexOf(`
`,z)}while(Y!==-1);return w+=A.slice(z),w}class m18{constructor(A){return CrA(A)}}function RI6(A){return CrA(A)}var RrA,SrA,x18,BM6,yI6,hrA,gM6,wH3=(A,q={})=>{if(q.level&&!(Number.isInteger(q.level)&&q.level>=0&&q.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let K=RrA?RrA.level:0;A.level=q.level===void 0?K:q.level},CrA=(A)=>{let q=(...K)=>K.join(" ");return wH3(q,A),Object.setPrototypeOf(q,RI6.prototype),q},b18=(A,q,K,...Y)=>{if(A==="rgb"){if(q==="ansi16m")return nC[K].ansi16m(...Y);if(q==="ansi256")return nC[K].ansi256(nC.rgbToAnsi256(...Y));return nC[K].ansi(nC.rgbToAnsi(...Y))}if(A==="hex")return b18("rgb",q,K,...nC.hexToRgb(...Y));return nC[K][A](...Y)},_H3,$H3,u18=(A,q,K)=>{let Y,z;if(K===void 0)Y=A,z=q;else Y=K.openAll+A,z=q+K.closeAll;return{open:A,close:q,openAll:Y,closeAll:z,parent:K}},Z51=(A,q,K)=>{let Y=(...z)=>OH3(Y,z.length===1?""+z[0]:z.join(" "));return Object.setPrototypeOf(Y,$H3),Y[x18]=A,Y[BM6]=q,Y[yI6]=K,Y},OH3=(A,q)=>{if(A.level<=0||!q)return A[yI6]?"":q;let K=A[BM6];if(K===void 0)return q;let{openAll:Y,closeAll:z}=K;if(q.includes("\x1B"))while(K!==void 0)q=LrA(q,K.close,K.open),K=K.parent;let w=q.indexOf(`
`);if(w!==-1)q=yrA(q,z,Y,w);return Y+q+z},HH3,sq2,j1;var BK=E(()=>{vrA();ErA();({stdout:RrA,stderr:SrA}=krA),x18=Symbol("GENERATOR"),BM6=Symbol("STYLER"),yI6=Symbol("IS_EMPTY"),hrA=["ansi","ansi","ansi256","ansi16m"],gM6=Object.create(null);Object.setPrototypeOf(RI6.prototype,Function.prototype);for(let[A,q]of Object.entries(nC))gM6[A]={get(){let K=Z51(this,u18(q.open,q.close,this[BM6]),this[yI6]);return Object.defineProperty(this,A,{value:K}),K}};gM6.visible={get(){let A=Z51(this,this[BM6],!0);return Object.defineProperty(this,"visible",{value:A}),A}};_H3=["rgb","hex","ansi256"];for(let A of _H3){gM6[A]={get(){let{level:K}=this;return function(...Y){let z=u18(b18(A,hrA[K],"color",...Y),nC.color.close,this[BM6]);return Z51(this,z,this[yI6])}}};let q="bg"+A[0].toUpperCase()+A.slice(1);gM6[q]={get(){let{level:K}=this;return function(...Y){let z=u18(b18(A,hrA[K],"bgColor",...Y),nC.bgColor.close,this[BM6]);return Z51(this,z,this[yI6])}}}}$H3=Object.defineProperties(()=>{},{...gM6,level:{enumerable:!0,get(){return this[x18].level},set(A){this[x18].level=A}}});Object.defineProperties(RI6.prototype,gM6);HH3=RI6(),sq2=RI6({level:SrA?SrA.level:0}),j1=HH3});var brA=h((Rv)=>{var jH3=Rv&&Rv.__createBinding||(Object.create?function(A,q,K,Y){if(Y===void 0)Y=K;var z=Object.getOwnPropertyDescriptor(q,K);if(!z||("get"in z?!q.__esModule:z.writable||z.configurable))z={enumerable:!0,get:function(){return q[K]}};Object.defineProperty(A,Y,z)}:function(A,q,K,Y){if(Y===void 0)Y=K;A[Y]=q[K]}),JH3=Rv&&Rv.__setModuleDefault||(Object.create?function(A,q){Object.defineProperty(A,"default",{enumerable:!0,value:q})}:function(A,q){A.default=q}),IrA=Rv&&Rv.__importStar||function(A){if(A&&A.__esModule)return A;var q={};if(A!=null){for(var K in A)if(K!=="default"&&Object.prototype.hasOwnProperty.call(A,K))jH3(q,A,K)}return JH3(q,A),q};Object.defineProperty(Rv,"__esModule",{value:!0});Rv.req=Rv.json=Rv.toBuffer=void 0;var MH3=IrA(u6("http")),DH3=IrA(u6("https"));async function xrA(A){let q=0,K=[];for await(let Y of A)q+=Y.length,K.push(Y);return Buffer.concat(K,q)}Rv.toBuffer=xrA;async function XH3(A){let K=(await xrA(A)).toString("utf8");try{return JSON.parse(K)}catch(Y){let z=Y;throw z.message+=` (input: ${K})`,z}}Rv.json=XH3;function PH3(A,q={}){let Y=((typeof A==="string"?A:A.href).startsWith("https:")?DH3:MH3).request(A,q),z=new Promise((w,_)=>{Y.once("response",w).once("error",_).end()});return Y.then=z.then.bind(z),Y}Rv.req=PH3});var B18=h((Zk)=>{var mrA=Zk&&Zk.__createBinding||(Object.create?function(A,q,K,Y){if(Y===void 0)Y=K;var z=Object.getOwnPropertyDescriptor(q,K);if(!z||("get"in z?!q.__esModule:z.writable||z.configurable))z={enumerable:!0,get:function(){return q[K]}};Object.defineProperty(A,Y,z)}:function(A,q,K,Y){if(Y===void 0)Y=K;A[Y]=q[K]}),WH3=Zk&&Zk.__setModuleDefault||(Object.create?function(A,q){Object.defineProperty(A,"default",{enumerable:!0,value:q})}:function(A,q){A.default=q}),BrA=Zk&&Zk.__importStar||function(A){if(A&&A.__esModule)return A;var q={};if(A!=null){for(var K in A)if(K!=="default"&&Object.prototype.hasOwnProperty.call(A,K))mrA(q,A,K)}return WH3(q,A),q},GH3=Zk&&Zk.__exportStar||function(A,q){for(var K in A)if(K!=="default"&&!Object.prototype.hasOwnProperty.call(q,K))mrA(q,A,K)};Object.defineProperty(Zk,"__esModule",{value:!0});Zk.Agent=void 0;var ZH3=BrA(u6("net")),urA=BrA(u6("http")),fH3=u6("https");GH3(brA(),Zk);var um=Symbol("AgentBaseInternalState");class grA extends urA.Agent{constructor(A){super(A);this[um]={}}isSecureEndpoint(A){if(A){if(typeof A.secureEndpoint==="boolean")return A.secureEndpoint;if(typeof A.protocol==="string")return A.protocol==="https:"}let{stack:q}=Error();if(typeof q!=="string")return!1;return q.split(`
`).some((K)=>K.indexOf("(https.js:")!==-1||K.indexOf("node:https:")!==-1)}incrementSockets(A){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[A])this.sockets[A]=[];let q=new ZH3.Socket({writable:!1});return this.sockets[A].push(q),this.totalSocketCount++,q}decrementSockets(A,q){if(!this.sockets[A]||q===null)return;let K=this.sockets[A],Y=K.indexOf(q);if(Y!==-1){if(K.splice(Y,1),this.totalSocketCount--,K.length===0)delete this.sockets[A]}}getName(A){if(typeof A.secureEndpoint==="boolean"?A.secureEndpoint:this.isSecureEndpoint(A))return fH3.Agent.prototype.getName.call(this,A);return super.getName(A)}createSocket(A,q,K){let Y={...q,secureEndpoint:this.isSecureEndpoint(q)},z=this.getName(Y),w=this.incrementSockets(z);Promise.resolve().then(()=>this.connect(A,Y)).then((_)=>{if(this.decrementSockets(z,w),_ instanceof urA.Agent)try{return _.addRequest(A,Y)}catch($){return K($)}this[um].currentSocket=_,super.createSocket(A,q,K)},(_)=>{this.decrementSockets(z,w),K(_)})}createConnection(){let A=this[um].currentSocket;if(this[um].currentSocket=void 0,!A)throw Error("No socket was returned in the `connect()` function");return A}get defaultPort(){return this[um].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(A){if(this[um])this[um].defaultPort=A}get protocol(){return this[um].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(A){if(this[um])this[um].protocol=A}}Zk.Agent=grA});var prA=h((pM6)=>{var TH3=pM6&&pM6.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(pM6,"__esModule",{value:!0});pM6.parseProxyResponse=void 0;var vH3=TH3(N46()),f51=(0,vH3.default)("https-proxy-agent:parse-proxy-response");function VH3(A){return new Promise((q,K)=>{let Y=0,z=[];function w(){let j=A.read();if(j)H(j);else A.once("readable",w)}function _(){A.removeListener("end",$),A.removeListener("error",O),A.removeListener("readable",w)}function $(){_(),f51("onend"),K(Error("Proxy connection ended before receiving CONNECT response"))}function O(j){_(),f51("onerror %o",j),K(j)}function H(j){z.push(j),Y+=j.length;let J=Buffer.concat(z,Y),M=J.indexOf(`\r
\r
`);if(M===-1){f51("have not received end of HTTP headers yet..."),w();return}let D=J.slice(0,M).toString("ascii").split(`\r
`),X=D.shift();if(!X)return A.destroy(),K(Error("No header received from proxy CONNECT response"));let P=X.split(" "),W=+P[1],G=P.slice(2).join(" "),Z={};for(let f of D){if(!f)continue;let v=f.indexOf(":");if(v===-1)return A.destroy(),K(Error(`Invalid header from proxy CONNECT response: "${f}"`));let V=f.slice(0,v).toLowerCase(),N=f.slice(v+1).trimStart(),L=Z[V];if(typeof L==="string")Z[V]=[L,N];else if(Array.isArray(L))L.push(N);else Z[V]=N}f51("got proxy server response: %o %o",X,Z),_(),q({connect:{statusCode:W,statusText:G,headers:Z},buffered:J})}A.on("error",O),A.on("end",$),w()})}pM6.parseProxyResponse=VH3});var hI6=h((hy)=>{var NH3=hy&&hy.__createBinding||(Object.create?function(A,q,K,Y){if(Y===void 0)Y=K;var z=Object.getOwnPropertyDescriptor(q,K);if(!z||("get"in z?!q.__esModule:z.writable||z.configurable))z={enumerable:!0,get:function(){return q[K]}};Object.defineProperty(A,Y,z)}:function(A,q,K,Y){if(Y===void 0)Y=K;A[Y]=q[K]}),kH3=hy&&hy.__setModuleDefault||(Object.create?function(A,q){Object.defineProperty(A,"default",{enumerable:!0,value:q})}:function(A,q){A.default=q}),drA=hy&&hy.__importStar||function(A){if(A&&A.__esModule)return A;var q={};if(A!=null){for(var K in A)if(K!=="default"&&Object.prototype.hasOwnProperty.call(A,K))NH3(q,A,K)}return kH3(q,A),q},crA=hy&&hy.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(hy,"__esModule",{value:!0});hy.HttpsProxyAgent=void 0;var T51=drA(u6("net")),FrA=drA(u6("tls")),EH3=crA(u6("assert")),LH3=crA(N46()),yH3=B18(),RH3=u6("url"),SH3=prA(),SI6=(0,LH3.default)("https-proxy-agent"),QrA=(A)=>{if(A.servername===void 0&&A.host&&!T51.isIP(A.host))return{...A,servername:A.host};return A};class g18 extends yH3.Agent{constructor(A,q){super(q);this.options={path:void 0},this.proxy=typeof A==="string"?new RH3.URL(A):A,this.proxyHeaders=q?.headers??{},SI6("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let K=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),Y=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...q?UrA(q,"headers"):null,host:K,port:Y}}async connect(A,q){let{proxy:K}=this;if(!q.host)throw TypeError('No "host" provided');let Y;if(K.protocol==="https:")SI6("Creating `tls.Socket`: %o",this.connectOpts),Y=FrA.connect(QrA(this.connectOpts));else SI6("Creating `net.Socket`: %o",this.connectOpts),Y=T51.connect(this.connectOpts);let z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},w=T51.isIPv6(q.host)?`[${q.host}]`:q.host,_=`CONNECT ${w}:${q.port} HTTP/1.1\r
`;if(K.username||K.password){let J=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;z["Proxy-Authorization"]=`Basic ${Buffer.from(J).toString("base64")}`}if(z.Host=`${w}:${q.port}`,!z["Proxy-Connection"])z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let J of Object.keys(z))_+=`${J}: ${z[J]}\r
`;let $=(0,SH3.parseProxyResponse)(Y);Y.write(`${_}\r
`);let{connect:O,buffered:H}=await $;if(A.emit("proxyConnect",O),this.emit("proxyConnect",O,A),O.statusCode===200){if(A.once("socket",hH3),q.secureEndpoint)return SI6("Upgrading socket connection to TLS"),FrA.connect({...UrA(QrA(q),"host","path","port"),socket:Y});return Y}Y.destroy();let j=new T51.Socket({writable:!1});return j.readable=!0,A.once("socket",(J)=>{SI6("Replaying proxy buffer for failed request"),(0,EH3.default)(J.listenerCount("data")>0),J.push(H),J.push(null)}),j}}g18.protocols=["http","https"];hy.HttpsProxyAgent=g18;function hH3(A){A.resume()}function UrA(A,...q){let K={},Y;for(Y in A)if(!q.includes(Y))K[Y]=A[Y];return K}});var yO=h((YK2,lrA)=>{lrA.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Yw=h((zK2,DoA)=>{class Pj extends Error{constructor(A){super(A);this.name="UndiciError",this.code="UND_ERR"}}class irA extends Pj{constructor(A){super(A);this.name="ConnectTimeoutError",this.message=A||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}}class nrA extends Pj{constructor(A){super(A);this.name="HeadersTimeoutError",this.message=A||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}}class rrA extends Pj{constructor(A){super(A);this.name="HeadersOverflowError",this.message=A||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}}class orA extends Pj{constructor(A){super(A);this.name="BodyTimeoutError",this.message=A||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}}class arA extends Pj{constructor(A,q,K,Y){super(A);this.name="ResponseStatusCodeError",this.message=A||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=Y,this.status=q,this.statusCode=q,this.headers=K}}class srA extends Pj{constructor(A){super(A);this.name="InvalidArgumentError",this.message=A||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}}class trA extends Pj{constructor(A){super(A);this.name="InvalidReturnValueError",this.message=A||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}}class p18 extends Pj{constructor(A){super(A);this.name="AbortError",this.message=A||"The operation was aborted"}}class erA extends p18{constructor(A){super(A);this.name="AbortError",this.message=A||"Request aborted",this.code="UND_ERR_ABORTED"}}class AoA extends Pj{constructor(A){super(A);this.name="InformationalError",this.message=A||"Request information",this.code="UND_ERR_INFO"}}class qoA extends Pj{constructor(A){super(A);this.name="RequestContentLengthMismatchError",this.message=A||"Request body length does not match content-length header",this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class KoA extends Pj{constructor(A){super(A);this.name="ResponseContentLengthMismatchError",this.message=A||"Response body length does not match content-length header",this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class YoA extends Pj{constructor(A){super(A);this.name="ClientDestroyedError",this.message=A||"The client is destroyed",this.code="UND_ERR_DESTROYED"}}class zoA extends Pj{constructor(A){super(A);this.name="ClientClosedError",this.message=A||"The client is closed",this.code="UND_ERR_CLOSED"}}class woA extends Pj{constructor(A,q){super(A);this.name="SocketError",this.message=A||"Socket error",this.code="UND_ERR_SOCKET",this.socket=q}}class _oA extends Pj{constructor(A){super(A);this.name="NotSupportedError",this.message=A||"Not supported error",this.code="UND_ERR_NOT_SUPPORTED"}}class $oA extends Pj{constructor(A){super(A);this.name="MissingUpstreamError",this.message=A||"No upstream has been added to the BalancedPool",this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class OoA extends Error{constructor(A,q,K){super(A);this.name="HTTPParserError",this.code=q?`HPE_${q}`:void 0,this.data=K?K.toString():void 0}}class HoA extends Pj{constructor(A){super(A);this.name="ResponseExceededMaxSizeError",this.message=A||"Response content exceeded max size",this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class joA extends Pj{constructor(A,q,{headers:K,data:Y}){super(A);this.name="RequestRetryError",this.message=A||"Request retry error",this.code="UND_ERR_REQ_RETRY",this.statusCode=q,this.data=Y,this.headers=K}}class JoA extends Pj{constructor(A,q,{headers:K,data:Y}){super(A);this.name="ResponseError",this.message=A||"Response error",this.code="UND_ERR_RESPONSE",this.statusCode=q,this.data=Y,this.headers=K}}class MoA extends Pj{constructor(A,q,K){super(q,{cause:A,...K??{}});this.name="SecureProxyConnectionError",this.message=q||"Secure Proxy Connection failed",this.code="UND_ERR_PRX_TLS",this.cause=A}}DoA.exports={AbortError:p18,HTTPParserError:OoA,UndiciError:Pj,HeadersTimeoutError:nrA,HeadersOverflowError:rrA,BodyTimeoutError:orA,RequestContentLengthMismatchError:qoA,ConnectTimeoutError:irA,ResponseStatusCodeError:arA,InvalidArgumentError:srA,InvalidReturnValueError:trA,RequestAbortedError:erA,ClientDestroyedError:YoA,ClientClosedError:zoA,InformationalError:AoA,SocketError:woA,NotSupportedError:_oA,ResponseContentLengthMismatchError:KoA,BalancedPoolMissingUpstreamError:$oA,ResponseExceededMaxSizeError:HoA,RequestRetryError:joA,ResponseError:JoA,SecureProxyConnectionError:MoA}});var V51=h((wK2,XoA)=>{var v51={},F18=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let A=0;A<F18.length;++A){let q=F18[A],K=q.toLowerCase();v51[q]=v51[K]=K}Object.setPrototypeOf(v51,null);XoA.exports={wellknownHeaderNames:F18,headerNameLowerCasedRecord:v51}});var ZoA=h((_K2,GoA)=>{var{wellknownHeaderNames:PoA,headerNameLowerCasedRecord:CH3}=V51();class FM6{value=null;left=null;middle=null;right=null;code;constructor(A,q,K){if(K===void 0||K>=A.length)throw TypeError("Unreachable");if((this.code=A.charCodeAt(K))>127)throw TypeError("key must be ascii string");if(A.length!==++K)this.middle=new FM6(A,q,K);else this.value=q}add(A,q){let K=A.length;if(K===0)throw TypeError("Unreachable");let Y=0,z=this;while(!0){let w=A.charCodeAt(Y);if(w>127)throw TypeError("key must be ascii string");if(z.code===w)if(K===++Y){z.value=q;break}else if(z.middle!==null)z=z.middle;else{z.middle=new FM6(A,q,Y);break}else if(z.code<w)if(z.left!==null)z=z.left;else{z.left=new FM6(A,q,Y);break}else if(z.right!==null)z=z.right;else{z.right=new FM6(A,q,Y);break}}}search(A){let q=A.length,K=0,Y=this;while(Y!==null&&K<q){let z=A[K];if(z<=90&&z>=65)z|=32;while(Y!==null){if(z===Y.code){if(q===++K)return Y;Y=Y.middle;break}Y=Y.code<z?Y.left:Y.right}}return null}}class Q18{node=null;insert(A,q){if(this.node===null)this.node=new FM6(A,q,0);else this.node.add(A,q)}lookup(A){return this.node?.search(A)?.value??null}}var WoA=new Q18;for(let A=0;A<PoA.length;++A){let q=CH3[PoA[A]];WoA.insert(q,q)}GoA.exports={TernarySearchTree:Q18,tree:WoA}});var E9=h(($K2,boA)=>{var CI6=u6("node:assert"),{kDestroyed:ToA,kBodyUsed:QM6,kListeners:U18,kBody:foA}=yO(),{IncomingMessage:IH3}=u6("node:http"),k51=u6("node:stream"),xH3=u6("node:net"),{Blob:bH3}=u6("node:buffer"),uH3=u6("node:util"),{stringify:mH3}=u6("node:querystring"),{EventEmitter:BH3}=u6("node:events"),{InvalidArgumentError:SX}=Yw(),{headerNameLowerCasedRecord:gH3}=V51(),{tree:voA}=ZoA(),[pH3,FH3]=process.versions.node.split(".").map((A)=>Number(A));class d18{constructor(A){this[foA]=A,this[QM6]=!1}async*[Symbol.asyncIterator](){CI6(!this[QM6],"disturbed"),this[QM6]=!0,yield*this[foA]}}function QH3(A){if(E51(A)){if(LoA(A)===0)A.on("data",function(){CI6(!1)});if(typeof A.readableDidRead!=="boolean")A[QM6]=!1,BH3.prototype.on.call(A,"data",function(){this[QM6]=!0});return A}else if(A&&typeof A.pipeTo==="function")return new d18(A);else if(A&&typeof A!=="string"&&!ArrayBuffer.isView(A)&&EoA(A))return new d18(A);else return A}function UH3(){}function E51(A){return A&&typeof A==="object"&&typeof A.pipe==="function"&&typeof A.on==="function"}function VoA(A){if(A===null)return!1;else if(A instanceof bH3)return!0;else if(typeof A!=="object")return!1;else{let q=A[Symbol.toStringTag];return(q==="Blob"||q==="File")&&(("stream"in A)&&typeof A.stream==="function"||("arrayBuffer"in A)&&typeof A.arrayBuffer==="function")}}function dH3(A,q){if(A.includes("?")||A.includes("#"))throw Error('Query params cannot be passed when url already contains "?" or "#".');let K=mH3(q);if(K)A+="?"+K;return A}function NoA(A){let q=parseInt(A,10);return q===Number(A)&&q>=0&&q<=65535}function N51(A){return A!=null&&A[0]==="h"&&A[1]==="t"&&A[2]==="t"&&A[3]==="p"&&(A[4]===":"||A[4]==="s"&&A[5]===":")}function koA(A){if(typeof A==="string"){if(A=new URL(A),!N51(A.origin||A.protocol))throw new SX("Invalid URL protocol: the URL must start with `http:` or `https:`.");return A}if(!A||typeof A!=="object")throw new SX("Invalid URL: The URL argument must be a non-null object.");if(!(A instanceof URL)){if(A.port!=null&&A.port!==""&&NoA(A.port)===!1)throw new SX("Invalid URL: port must be a valid integer or a string representation of an integer.");if(A.path!=null&&typeof A.path!=="string")throw new SX("Invalid URL path: the path must be a string or null/undefined.");if(A.pathname!=null&&typeof A.pathname!=="string")throw new SX("Invalid URL pathname: the pathname must be a string or null/undefined.");if(A.hostname!=null&&typeof A.hostname!=="string")throw new SX("Invalid URL hostname: the hostname must be a string or null/undefined.");if(A.origin!=null&&typeof A.origin!=="string")throw new SX("Invalid URL origin: the origin must be a string or null/undefined.");if(!N51(A.origin||A.protocol))throw new SX("Invalid URL protocol: the URL must start with `http:` or `https:`.");let q=A.port!=null?A.port:A.protocol==="https:"?443:80,K=A.origin!=null?A.origin:`${A.protocol||""}//${A.hostname||""}:${q}`,Y=A.path!=null?A.path:`${A.pathname||""}${A.search||""}`;if(K[K.length-1]==="/")K=K.slice(0,K.length-1);if(Y&&Y[0]!=="/")Y=`/${Y}`;return new URL(`${K}${Y}`)}if(!N51(A.origin||A.protocol))throw new SX("Invalid URL protocol: the URL must start with `http:` or `https:`.");return A}function cH3(A){if(A=koA(A),A.pathname!=="/"||A.search||A.hash)throw new SX("invalid url");return A}function lH3(A){if(A[0]==="["){let K=A.indexOf("]");return CI6(K!==-1),A.substring(1,K)}let q=A.indexOf(":");if(q===-1)return A;return A.substring(0,q)}function iH3(A){if(!A)return null;CI6(typeof A==="string");let q=lH3(A);if(xH3.isIP(q))return"";return q}function nH3(A){return JSON.parse(JSON.stringify(A))}function rH3(A){return A!=null&&typeof A[Symbol.asyncIterator]==="function"}function EoA(A){return A!=null&&(typeof A[Symbol.iterator]==="function"||typeof A[Symbol.asyncIterator]==="function")}function LoA(A){if(A==null)return 0;else if(E51(A)){let q=A._readableState;return q&&q.objectMode===!1&&q.ended===!0&&Number.isFinite(q.length)?q.length:null}else if(VoA(A))return A.size!=null?A.size:null;else if(SoA(A))return A.byteLength;return null}function yoA(A){return A&&!!(A.destroyed||A[ToA]||k51.isDestroyed?.(A))}function oH3(A,q){if(A==null||!E51(A)||yoA(A))return;if(typeof A.destroy==="function"){if(Object.getPrototypeOf(A).constructor===IH3)A.socket=null;A.destroy(q)}else if(q)queueMicrotask(()=>{A.emit("error",q)});if(A.destroyed!==!0)A[ToA]=!0}var aH3=/timeout=(\d+)/;function sH3(A){let q=A.toString().match(aH3);return q?parseInt(q[1],10)*1000:null}function RoA(A){return typeof A==="string"?gH3[A]??A.toLowerCase():voA.lookup(A)??A.toString("latin1").toLowerCase()}function tH3(A){return voA.lookup(A)??A.toString("latin1").toLowerCase()}function eH3(A,q){if(q===void 0)q={};for(let K=0;K<A.length;K+=2){let Y=RoA(A[K]),z=q[Y];if(z){if(typeof z==="string")z=[z],q[Y]=z;z.push(A[K+1].toString("utf8"))}else{let w=A[K+1];if(typeof w==="string")q[Y]=w;else q[Y]=Array.isArray(w)?w.map((_)=>_.toString("utf8")):w.toString("utf8")}}if("content-length"in q&&"content-disposition"in q)q["content-disposition"]=Buffer.from(q["content-disposition"]).toString("latin1");return q}function Aj3(A){let q=A.length,K=Array(q),Y=!1,z=-1,w,_,$=0;for(let O=0;O<A.length;O+=2){if(w=A[O],_=A[O+1],typeof w!=="string"&&(w=w.toString()),typeof _!=="string"&&(_=_.toString("utf8")),$=w.length,$===14&&w[7]==="-"&&(w==="content-length"||w.toLowerCase()==="content-length"))Y=!0;else if($===19&&w[7]==="-"&&(w==="content-disposition"||w.toLowerCase()==="content-disposition"))z=O+1;K[O]=w,K[O+1]=_}if(Y&&z!==-1)K[z]=Buffer.from(K[z]).toString("latin1");return K}function SoA(A){return A instanceof Uint8Array||Buffer.isBuffer(A)}function qj3(A,q,K){if(!A||typeof A!=="object")throw new SX("handler must be an object");if(typeof A.onConnect!=="function")throw new SX("invalid onConnect method");if(typeof A.onError!=="function")throw new SX("invalid onError method");if(typeof A.onBodySent!=="function"&&A.onBodySent!==void 0)throw new SX("invalid onBodySent method");if(K||q==="CONNECT"){if(typeof A.onUpgrade!=="function")throw new SX("invalid onUpgrade method")}else{if(typeof A.onHeaders!=="function")throw new SX("invalid onHeaders method");if(typeof A.onData!=="function")throw new SX("invalid onData method");if(typeof A.onComplete!=="function")throw new SX("invalid onComplete method")}}function Kj3(A){return!!(A&&(k51.isDisturbed(A)||A[QM6]))}function Yj3(A){return!!(A&&k51.isErrored(A))}function zj3(A){return!!(A&&k51.isReadable(A))}function wj3(A){return{localAddress:A.localAddress,localPort:A.localPort,remoteAddress:A.remoteAddress,remotePort:A.remotePort,remoteFamily:A.remoteFamily,timeout:A.timeout,bytesWritten:A.bytesWritten,bytesRead:A.bytesRead}}function _j3(A){let q;return new ReadableStream({async start(){q=A[Symbol.asyncIterator]()},async pull(K){let{done:Y,value:z}=await q.next();if(Y)queueMicrotask(()=>{K.close(),K.byobRequest?.respond(0)});else{let w=Buffer.isBuffer(z)?z:Buffer.from(z);if(w.byteLength)K.enqueue(new Uint8Array(w))}return K.desiredSize>0},async cancel(K){await q.return()},type:"bytes"})}function $j3(A){return A&&typeof A==="object"&&typeof A.append==="function"&&typeof A.delete==="function"&&typeof A.get==="function"&&typeof A.getAll==="function"&&typeof A.has==="function"&&typeof A.set==="function"&&A[Symbol.toStringTag]==="FormData"}function Oj3(A,q){if("addEventListener"in A)return A.addEventListener("abort",q,{once:!0}),()=>A.removeEventListener("abort",q);return A.addListener("abort",q),()=>A.removeListener("abort",q)}var Hj3=typeof String.prototype.toWellFormed==="function",jj3=typeof String.prototype.isWellFormed==="function";function hoA(A){return Hj3?`${A}`.toWellFormed():uH3.toUSVString(A)}function Jj3(A){return jj3?`${A}`.isWellFormed():hoA(A)===`${A}`}function CoA(A){switch(A){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return!1;default:return A>=33&&A<=126}}function Mj3(A){if(A.length===0)return!1;for(let q=0;q<A.length;++q)if(!CoA(A.charCodeAt(q)))return!1;return!0}var Dj3=/[^\t\x20-\x7e\x80-\xff]/;function Xj3(A){return!Dj3.test(A)}function Pj3(A){if(A==null||A==="")return{start:0,end:null,size:null};let q=A?A.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return q?{start:parseInt(q[1]),end:q[2]?parseInt(q[2]):null,size:q[3]?parseInt(q[3]):null}:null}function Wj3(A,q,K){return(A[U18]??=[]).push([q,K]),A.on(q,K),A}function Gj3(A){for(let[q,K]of A[U18]??[])A.removeListener(q,K);A[U18]=null}function Zj3(A,q,K){try{q.onError(K),CI6(q.aborted)}catch(Y){A.emit("error",Y)}}var IoA=Object.create(null);IoA.enumerable=!0;var c18={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"},xoA={...c18,patch:"patch",PATCH:"PATCH"};Object.setPrototypeOf(c18,null);Object.setPrototypeOf(xoA,null);boA.exports={kEnumerableProperty:IoA,nop:UH3,isDisturbed:Kj3,isErrored:Yj3,isReadable:zj3,toUSVString:hoA,isUSVString:Jj3,isBlobLike:VoA,parseOrigin:cH3,parseURL:koA,getServerName:iH3,isStream:E51,isIterable:EoA,isAsyncIterable:rH3,isDestroyed:yoA,headerNameToString:RoA,bufferToLowerCasedHeaderName:tH3,addListener:Wj3,removeAllListeners:Gj3,errorRequest:Zj3,parseRawHeaders:Aj3,parseHeaders:eH3,parseKeepAliveTimeout:sH3,destroy:oH3,bodyLength:LoA,deepClone:nH3,ReadableStreamFrom:_j3,isBuffer:SoA,validateHandler:qj3,getSocketInfo:wj3,isFormDataLike:$j3,buildURL:dH3,addAbortListener:Oj3,isValidHTTPToken:Mj3,isValidHeaderValue:Xj3,isTokenCharCode:CoA,parseRangeHeader:Pj3,normalizedMethodRecordsBase:c18,normalizedMethodRecords:xoA,isValidPort:NoA,isHttpOrHttpsPrefixed:N51,nodeMajor:pH3,nodeMinor:FH3,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"],wrapRequestBody:QH3}});var UM6=h((OK2,moA)=>{var Nw=u6("node:diagnostics_channel"),i18=u6("node:util"),L51=i18.debuglog("undici"),l18=i18.debuglog("fetch"),KK6=i18.debuglog("websocket"),uoA=!1,fj3={beforeConnect:Nw.channel("undici:client:beforeConnect"),connected:Nw.channel("undici:client:connected"),connectError:Nw.channel("undici:client:connectError"),sendHeaders:Nw.channel("undici:client:sendHeaders"),create:Nw.channel("undici:request:create"),bodySent:Nw.channel("undici:request:bodySent"),headers:Nw.channel("undici:request:headers"),trailers:Nw.channel("undici:request:trailers"),error:Nw.channel("undici:request:error"),open:Nw.channel("undici:websocket:open"),close:Nw.channel("undici:websocket:close"),socketError:Nw.channel("undici:websocket:socket_error"),ping:Nw.channel("undici:websocket:ping"),pong:Nw.channel("undici:websocket:pong")};if(L51.enabled||l18.enabled){let A=l18.enabled?l18:L51;Nw.channel("undici:client:beforeConnect").subscribe((q)=>{let{connectParams:{version:K,protocol:Y,port:z,host:w}}=q;A("connecting to %s using %s%s",`${w}${z?`:${z}`:""}`,Y,K)}),Nw.channel("undici:client:connected").subscribe((q)=>{let{connectParams:{version:K,protocol:Y,port:z,host:w}}=q;A("connected to %s using %s%s",`${w}${z?`:${z}`:""}`,Y,K)}),Nw.channel("undici:client:connectError").subscribe((q)=>{let{connectParams:{version:K,protocol:Y,port:z,host:w},error:_}=q;A("connection to %s using %s%s errored - %s",`${w}${z?`:${z}`:""}`,Y,K,_.message)}),Nw.channel("undici:client:sendHeaders").subscribe((q)=>{let{request:{method:K,path:Y,origin:z}}=q;A("sending request to %s %s/%s",K,z,Y)}),Nw.channel("undici:request:headers").subscribe((q)=>{let{request:{method:K,path:Y,origin:z},response:{statusCode:w}}=q;A("received response to %s %s/%s - HTTP %d",K,z,Y,w)}),Nw.channel("undici:request:trailers").subscribe((q)=>{let{request:{method:K,path:Y,origin:z}}=q;A("trailers received from %s %s/%s",K,z,Y)}),Nw.channel("undici:request:error").subscribe((q)=>{let{request:{method:K,path:Y,origin:z},error:w}=q;A("request to %s %s/%s errored - %s",K,z,Y,w.message)}),uoA=!0}if(KK6.enabled){if(!uoA){let A=L51.enabled?L51:KK6;Nw.channel("undici:client:beforeConnect").subscribe((q)=>{let{connectParams:{version:K,protocol:Y,port:z,host:w}}=q;A("connecting to %s%s using %s%s",w,z?`:${z}`:"",Y,K)}),Nw.channel("undici:client:connected").subscribe((q)=>{let{connectParams:{version:K,protocol:Y,port:z,host:w}}=q;A("connected to %s%s using %s%s",w,z?`:${z}`:"",Y,K)}),Nw.channel("undici:client:connectError").subscribe((q)=>{let{connectParams:{version:K,protocol:Y,port:z,host:w},error:_}=q;A("connection to %s%s using %s%s errored - %s",w,z?`:${z}`:"",Y,K,_.message)}),Nw.channel("undici:client:sendHeaders").subscribe((q)=>{let{request:{method:K,path:Y,origin:z}}=q;A("sending request to %s %s/%s",K,z,Y)})}Nw.channel("undici:websocket:open").subscribe((A)=>{let{address:{address:q,port:K}}=A;KK6("connection opened %s%s",q,K?`:${K}`:"")}),Nw.channel("undici:websocket:close").subscribe((A)=>{let{websocket:q,code:K,reason:Y}=A;KK6("closed connection to %s - %s %s",q.url,K,Y)}),Nw.channel("undici:websocket:socket_error").subscribe((A)=>{KK6("connection errored - %s",A.message)}),Nw.channel("undici:websocket:ping").subscribe((A)=>{KK6("ping received")}),Nw.channel("undici:websocket:pong").subscribe((A)=>{KK6("pong received")})}moA.exports={channels:fj3}});var UoA=h((HK2,QoA)=>{var{InvalidArgumentError:TH,NotSupportedError:Tj3}=Yw(),zd=u6("node:assert"),{isValidHTTPToken:poA,isValidHeaderValue:BoA,isStream:vj3,destroy:Vj3,isBuffer:Nj3,isFormDataLike:kj3,isIterable:Ej3,isBlobLike:Lj3,buildURL:yj3,validateHandler:Rj3,getServerName:Sj3,normalizedMethodRecords:hj3}=E9(),{channels:mm}=UM6(),{headerNameLowerCasedRecord:goA}=V51(),Cj3=/[^\u0021-\u00ff]/,Cy=Symbol("handler");class FoA{constructor(A,{path:q,method:K,body:Y,headers:z,query:w,idempotent:_,blocking:$,upgrade:O,headersTimeout:H,bodyTimeout:j,reset:J,throwOnError:M,expectContinue:D,servername:X},P){if(typeof q!=="string")throw new TH("path must be a string");else if(q[0]!=="/"&&!(q.startsWith("http://")||q.startsWith("https://"))&&K!=="CONNECT")throw new TH("path must be an absolute URL or start with a slash");else if(Cj3.test(q))throw new TH("invalid request path");if(typeof K!=="string")throw new TH("method must be a string");else if(hj3[K]===void 0&&!poA(K))throw new TH("invalid request method");if(O&&typeof O!=="string")throw new TH("upgrade must be a string");if(H!=null&&(!Number.isFinite(H)||H<0))throw new TH("invalid headersTimeout");if(j!=null&&(!Number.isFinite(j)||j<0))throw new TH("invalid bodyTimeout");if(J!=null&&typeof J!=="boolean")throw new TH("invalid reset");if(D!=null&&typeof D!=="boolean")throw new TH("invalid expectContinue");if(this.headersTimeout=H,this.bodyTimeout=j,this.throwOnError=M===!0,this.method=K,this.abort=null,Y==null)this.body=null;else if(vj3(Y)){this.body=Y;let W=this.body._readableState;if(!W||!W.autoDestroy)this.endHandler=function(){Vj3(this)},this.body.on("end",this.endHandler);this.errorHandler=(G)=>{if(this.abort)this.abort(G);else this.error=G},this.body.on("error",this.errorHandler)}else if(Nj3(Y))this.body=Y.byteLength?Y:null;else if(ArrayBuffer.isView(Y))this.body=Y.buffer.byteLength?Buffer.from(Y.buffer,Y.byteOffset,Y.byteLength):null;else if(Y instanceof ArrayBuffer)this.body=Y.byteLength?Buffer.from(Y):null;else if(typeof Y==="string")this.body=Y.length?Buffer.from(Y):null;else if(kj3(Y)||Ej3(Y)||Lj3(Y))this.body=Y;else throw new TH("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");if(this.completed=!1,this.aborted=!1,this.upgrade=O||null,this.path=w?yj3(q,w):q,this.origin=A,this.idempotent=_==null?K==="HEAD"||K==="GET":_,this.blocking=$==null?!1:$,this.reset=J==null?null:J,this.host=null,this.contentLength=null,this.contentType=null,this.headers=[],this.expectContinue=D!=null?D:!1,Array.isArray(z)){if(z.length%2!==0)throw new TH("headers array must be even");for(let W=0;W<z.length;W+=2)y51(this,z[W],z[W+1])}else if(z&&typeof z==="object")if(z[Symbol.iterator])for(let W of z){if(!Array.isArray(W)||W.length!==2)throw new TH("headers must be in key-value pair format");y51(this,W[0],W[1])}else{let W=Object.keys(z);for(let G=0;G<W.length;++G)y51(this,W[G],z[W[G]])}else if(z!=null)throw new TH("headers must be an object or an array");if(Rj3(P,K,O),this.servername=X||Sj3(this.host),this[Cy]=P,mm.create.hasSubscribers)mm.create.publish({request:this})}onBodySent(A){if(this[Cy].onBodySent)try{return this[Cy].onBodySent(A)}catch(q){this.abort(q)}}onRequestSent(){if(mm.bodySent.hasSubscribers)mm.bodySent.publish({request:this});if(this[Cy].onRequestSent)try{return this[Cy].onRequestSent()}catch(A){this.abort(A)}}onConnect(A){if(zd(!this.aborted),zd(!this.completed),this.error)A(this.error);else return this.abort=A,this[Cy].onConnect(A)}onResponseStarted(){return this[Cy].onResponseStarted?.()}onHeaders(A,q,K,Y){if(zd(!this.aborted),zd(!this.completed),mm.headers.hasSubscribers)mm.headers.publish({request:this,response:{statusCode:A,headers:q,statusText:Y}});try{return this[Cy].onHeaders(A,q,K,Y)}catch(z){this.abort(z)}}onData(A){zd(!this.aborted),zd(!this.completed);try{return this[Cy].onData(A)}catch(q){return this.abort(q),!1}}onUpgrade(A,q,K){return zd(!this.aborted),zd(!this.completed),this[Cy].onUpgrade(A,q,K)}onComplete(A){if(this.onFinally(),zd(!this.aborted),this.completed=!0,mm.trailers.hasSubscribers)mm.trailers.publish({request:this,trailers:A});try{return this[Cy].onComplete(A)}catch(q){this.onError(q)}}onError(A){if(this.onFinally(),mm.error.hasSubscribers)mm.error.publish({request:this,error:A});if(this.aborted)return;return this.aborted=!0,this[Cy].onError(A)}onFinally(){if(this.errorHandler)this.body.off("error",this.errorHandler),this.errorHandler=null;if(this.endHandler)this.body.off("end",this.endHandler),this.endHandler=null}addHeader(A,q){return y51(this,A,q),this}}function y51(A,q,K){if(K&&(typeof K==="object"&&!Array.isArray(K)))throw new TH(`invalid ${q} header`);else if(K===void 0)return;let Y=goA[q];if(Y===void 0){if(Y=q.toLowerCase(),goA[Y]===void 0&&!poA(Y))throw new TH("invalid header key")}if(Array.isArray(K)){let z=[];for(let w=0;w<K.length;w++)if(typeof K[w]==="string"){if(!BoA(K[w]))throw new TH(`invalid ${q} header`);z.push(K[w])}else if(K[w]===null)z.push("");else if(typeof K[w]==="object")throw new TH(`invalid ${q} header`);else z.push(`${K[w]}`);K=z}else if(typeof K==="string"){if(!BoA(K))throw new TH(`invalid ${q} header`)}else if(K===null)K="";else K=`${K}`;if(A.host===null&&Y==="host"){if(typeof K!=="string")throw new TH("invalid host header");A.host=K}else if(A.contentLength===null&&Y==="content-length"){if(A.contentLength=parseInt(K,10),!Number.isFinite(A.contentLength))throw new TH("invalid content-length header")}else if(A.contentType===null&&Y==="content-type")A.contentType=K,A.headers.push(q,K);else if(Y==="transfer-encoding"||Y==="keep-alive"||Y==="upgrade")throw new TH(`invalid ${Y} header`);else if(Y==="connection"){let z=typeof K==="string"?K.toLowerCase():null;if(z!=="close"&&z!=="keep-alive")throw new TH("invalid connection header");if(z==="close")A.reset=!0}else if(Y==="expect")throw new Tj3("expect header not supported");else A.headers.push(q,K)}QoA.exports=FoA});var II6=h((jK2,coA)=>{var Ij3=u6("node:events");class n18 extends Ij3{dispatch(){throw Error("not implemented")}close(){throw Error("not implemented")}destroy(){throw Error("not implemented")}compose(...A){let q=Array.isArray(A[0])?A[0]:A,K=this.dispatch.bind(this);for(let Y of q){if(Y==null)continue;if(typeof Y!=="function")throw TypeError(`invalid interceptor, expected function received ${typeof Y}`);if(K=Y(K),K==null||typeof K!=="function"||K.length!==2)throw TypeError("invalid interceptor")}return new doA(this,K)}}class doA extends n18{#A=null;#q=null;constructor(A,q){super();this.#A=A,this.#q=q}dispatch(...A){this.#q(...A)}close(...A){return this.#A.close(...A)}destroy(...A){return this.#A.destroy(...A)}}coA.exports=n18});var iM6=h((JK2,ioA)=>{var xj3=II6(),{ClientDestroyedError:r18,ClientClosedError:bj3,InvalidArgumentError:dM6}=Yw(),{kDestroy:uj3,kClose:mj3,kClosed:xI6,kDestroyed:cM6,kDispatch:o18,kInterceptors:YK6}=yO(),wd=Symbol("onDestroyed"),lM6=Symbol("onClosed"),R51=Symbol("Intercepted Dispatch");class loA extends xj3{constructor(){super();this[cM6]=!1,this[wd]=null,this[xI6]=!1,this[lM6]=[]}get destroyed(){return this[cM6]}get closed(){return this[xI6]}get interceptors(){return this[YK6]}set interceptors(A){if(A){for(let q=A.length-1;q>=0;q--)if(typeof this[YK6][q]!=="function")throw new dM6("interceptor must be an function")}this[YK6]=A}close(A){if(A===void 0)return new Promise((K,Y)=>{this.close((z,w)=>{return z?Y(z):K(w)})});if(typeof A!=="function")throw new dM6("invalid callback");if(this[cM6]){queueMicrotask(()=>A(new r18,null));return}if(this[xI6]){if(this[lM6])this[lM6].push(A);else queueMicrotask(()=>A(null,null));return}this[xI6]=!0,this[lM6].push(A);let q=()=>{let K=this[lM6];this[lM6]=null;for(let Y=0;Y<K.length;Y++)K[Y](null,null)};this[mj3]().then(()=>this.destroy()).then(()=>{queueMicrotask(q)})}destroy(A,q){if(typeof A==="function")q=A,A=null;if(q===void 0)return new Promise((Y,z)=>{this.destroy(A,(w,_)=>{return w?z(w):Y(_)})});if(typeof q!=="function")throw new dM6("invalid callback");if(this[cM6]){if(this[wd])this[wd].push(q);else queueMicrotask(()=>q(null,null));return}if(!A)A=new r18;this[cM6]=!0,this[wd]=this[wd]||[],this[wd].push(q);let K=()=>{let Y=this[wd];this[wd]=null;for(let z=0;z<Y.length;z++)Y[z](null,null)};this[uj3](A).then(()=>{queueMicrotask(K)})}[R51](A,q){if(!this[YK6]||this[YK6].length===0)return this[R51]=this[o18],this[o18](A,q);let K=this[o18].bind(this);for(let Y=this[YK6].length-1;Y>=0;Y--)K=this[YK6][Y](K);return this[R51]=K,K(A,q)}dispatch(A,q){if(!q||typeof q!=="object")throw new dM6("handler must be an object");try{if(!A||typeof A!=="object")throw new dM6("opts must be an object.");if(this[cM6]||this[wd])throw new r18;if(this[xI6])throw new bj3;return this[R51](A,q)}catch(K){if(typeof q.onError!=="function")throw new dM6("invalid onError method");return q.onError(K),!1}}}ioA.exports=loA});var Y88=h((MK2,aoA)=>{var nM6=0,a18=1000,s18=(a18>>1)-1,_d,t18=Symbol("kFastTimer"),$d=[],e18=-2,A88=-1,roA=0,noA=1;function q88(){nM6+=s18;let A=0,q=$d.length;while(A<q){let K=$d[A];if(K._state===roA)K._idleStart=nM6-s18,K._state=noA;else if(K._state===noA&&nM6>=K._idleStart+K._idleTimeout)K._state=A88,K._idleStart=-1,K._onTimeout(K._timerArg);if(K._state===A88){if(K._state=e18,--q!==0)$d[A]=$d[q]}else++A}if($d.length=q,$d.length!==0)ooA()}function ooA(){if(_d)_d.refresh();else if(clearTimeout(_d),_d=setTimeout(q88,s18),_d.unref)_d.unref()}class K88{[t18]=!0;_state=e18;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(A,q,K){this._onTimeout=A,this._idleTimeout=q,this._timerArg=K,this.refresh()}refresh(){if(this._state===e18)$d.push(this);if(!_d||$d.length===1)ooA();this._state=roA}clear(){this._state=A88,this._idleStart=-1}}aoA.exports={setTimeout(A,q,K){return q<=a18?setTimeout(A,q,K):new K88(A,q,K)},clearTimeout(A){if(A[t18])A.clear();else clearTimeout(A)},setFastTimeout(A,q,K){return new K88(A,q,K)},clearFastTimeout(A){A.clear()},now(){return nM6},tick(A=0){nM6+=A-a18+1,q88(),q88()},reset(){nM6=0,$d.length=0,clearTimeout(_d),_d=null},kFastTimer:t18}});var bI6=h((DK2,qaA)=>{var Bj3=u6("node:net"),soA=u6("node:assert"),AaA=E9(),{InvalidArgumentError:gj3,ConnectTimeoutError:pj3}=Yw(),S51=Y88();function toA(){}var z88,w88;if(global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG))w88=class{constructor(q){this._maxCachedSessions=q,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry((K)=>{if(this._sessionCache.size<this._maxCachedSessions)return;let Y=this._sessionCache.get(K);if(Y!==void 0&&Y.deref()===void 0)this._sessionCache.delete(K)})}get(q){let K=this._sessionCache.get(q);return K?K.deref():null}set(q,K){if(this._maxCachedSessions===0)return;this._sessionCache.set(q,new WeakRef(K)),this._sessionRegistry.register(K,q)}};else w88=class{constructor(q){this._maxCachedSessions=q,this._sessionCache=new Map}get(q){return this._sessionCache.get(q)}set(q,K){if(this._maxCachedSessions===0)return;if(this._sessionCache.size>=this._maxCachedSessions){let{value:Y}=this._sessionCache.keys().next();this._sessionCache.delete(Y)}this._sessionCache.set(q,K)}};function Fj3({allowH2:A,maxCachedSessions:q,socketPath:K,timeout:Y,session:z,...w}){if(q!=null&&(!Number.isInteger(q)||q<0))throw new gj3("maxCachedSessions must be a positive integer or zero");let _={path:K,...w},$=new w88(q==null?100:q);return Y=Y==null?1e4:Y,A=A!=null?A:!1,function({hostname:H,host:j,protocol:J,port:M,servername:D,localAddress:X,httpSocket:P},W){let G;if(J==="https:"){if(!z88)z88=u6("node:tls");D=D||_.servername||AaA.getServerName(j)||null;let f=D||H;soA(f);let v=z||$.get(f)||null;M=M||443,G=z88.connect({highWaterMark:16384,..._,servername:D,session:v,localAddress:X,ALPNProtocols:A?["http/1.1","h2"]:["http/1.1"],socket:P,port:M,host:H}),G.on("session",function(V){$.set(f,V)})}else soA(!P,"httpSocket can only be sent on TLS update"),M=M||80,G=Bj3.connect({highWaterMark:65536,..._,localAddress:X,port:M,host:H});if(_.keepAlive==null||_.keepAlive){let f=_.keepAliveInitialDelay===void 0?60000:_.keepAliveInitialDelay;G.setKeepAlive(!0,f)}let Z=Qj3(new WeakRef(G),{timeout:Y,hostname:H,port:M});return G.setNoDelay(!0).once(J==="https:"?"secureConnect":"connect",function(){if(queueMicrotask(Z),W){let f=W;W=null,f(null,this)}}).on("error",function(f){if(queueMicrotask(Z),W){let v=W;W=null,v(f)}}),G}}var Qj3=process.platform==="win32"?(A,q)=>{if(!q.timeout)return toA;let K=null,Y=null,z=S51.setFastTimeout(()=>{K=setImmediate(()=>{Y=setImmediate(()=>eoA(A.deref(),q))})},q.timeout);return()=>{S51.clearFastTimeout(z),clearImmediate(K),clearImmediate(Y)}}:(A,q)=>{if(!q.timeout)return toA;let K=null,Y=S51.setFastTimeout(()=>{K=setImmediate(()=>{eoA(A.deref(),q)})},q.timeout);return()=>{S51.clearFastTimeout(Y),clearImmediate(K)}};function eoA(A,q){if(A==null)return;let K="Connect Timeout Error";if(Array.isArray(A.autoSelectFamilyAttemptedAddresses))K+=` (attempted addresses: ${A.autoSelectFamilyAttemptedAddresses.join(", ")},`;else K+=` (attempted address: ${q.hostname}:${q.port},`;K+=` timeout: ${q.timeout}ms)`,AaA.destroy(A,new pj3(K))}qaA.exports=Fj3});var zaA=h((KaA)=>{Object.defineProperty(KaA,"__esModule",{value:!0});KaA.enumToMap=void 0;function Uj3(A){let q={};return Object.keys(A).forEach((K)=>{let Y=A[K];if(typeof Y==="number")q[K]=Y}),q}KaA.enumToMap=Uj3});var vaA=h((MaA)=>{Object.defineProperty(MaA,"__esModule",{value:!0});MaA.SPECIAL_HEADERS=MaA.HEADER_STATE=MaA.MINOR=MaA.MAJOR=MaA.CONNECTION_TOKEN_CHARS=MaA.HEADER_CHARS=MaA.TOKEN=MaA.STRICT_TOKEN=MaA.HEX=MaA.URL_CHAR=MaA.STRICT_URL_CHAR=MaA.USERINFO_CHARS=MaA.MARK=MaA.ALPHANUM=MaA.NUM=MaA.HEX_MAP=MaA.NUM_MAP=MaA.ALPHA=MaA.FINISH=MaA.H_METHOD_MAP=MaA.METHOD_MAP=MaA.METHODS_RTSP=MaA.METHODS_ICE=MaA.METHODS_HTTP=MaA.METHODS=MaA.LENIENT_FLAGS=MaA.FLAGS=MaA.TYPE=MaA.ERROR=void 0;var dj3=zaA(),cj3;(function(A){A[A.OK=0]="OK",A[A.INTERNAL=1]="INTERNAL",A[A.STRICT=2]="STRICT",A[A.LF_EXPECTED=3]="LF_EXPECTED",A[A.UNEXPECTED_CONTENT_LENGTH=4]="UNEXPECTED_CONTENT_LENGTH",A[A.CLOSED_CONNECTION=5]="CLOSED_CONNECTION",A[A.INVALID_METHOD=6]="INVALID_METHOD",A[A.INVALID_URL=7]="INVALID_URL",A[A.INVALID_CONSTANT=8]="INVALID_CONSTANT",A[A.INVALID_VERSION=9]="INVALID_VERSION",A[A.INVALID_HEADER_TOKEN=10]="INVALID_HEADER_TOKEN",A[A.INVALID_CONTENT_LENGTH=11]="INVALID_CONTENT_LENGTH",A[A.INVALID_CHUNK_SIZE=12]="INVALID_CHUNK_SIZE",A[A.INVALID_STATUS=13]="INVALID_STATUS",A[A.INVALID_EOF_STATE=14]="INVALID_EOF_STATE",A[A.INVALID_TRANSFER_ENCODING=15]="INVALID_TRANSFER_ENCODING",A[A.CB_MESSAGE_BEGIN=16]="CB_MESSAGE_BEGIN",A[A.CB_HEADERS_COMPLETE=17]="CB_HEADERS_COMPLETE",A[A.CB_MESSAGE_COMPLETE=18]="CB_MESSAGE_COMPLETE",A[A.CB_CHUNK_HEADER=19]="CB_CHUNK_HEADER",A[A.CB_CHUNK_COMPLETE=20]="CB_CHUNK_COMPLETE",A[A.PAUSED=21]="PAUSED",A[A.PAUSED_UPGRADE=22]="PAUSED_UPGRADE",A[A.PAUSED_H2_UPGRADE=23]="PAUSED_H2_UPGRADE",A[A.USER=24]="USER"})(cj3=MaA.ERROR||(MaA.ERROR={}));var lj3;(function(A){A[A.BOTH=0]="BOTH",A[A.REQUEST=1]="REQUEST",A[A.RESPONSE=2]="RESPONSE"})(lj3=MaA.TYPE||(MaA.TYPE={}));var ij3;(function(A){A[A.CONNECTION_KEEP_ALIVE=1]="CONNECTION_KEEP_ALIVE",A[A.CONNECTION_CLOSE=2]="CONNECTION_CLOSE",A[A.CONNECTION_UPGRADE=4]="CONNECTION_UPGRADE",A[A.CHUNKED=8]="CHUNKED",A[A.UPGRADE=16]="UPGRADE",A[A.CONTENT_LENGTH=32]="CONTENT_LENGTH",A[A.SKIPBODY=64]="SKIPBODY",A[A.TRAILING=128]="TRAILING",A[A.TRANSFER_ENCODING=512]="TRANSFER_ENCODING"})(ij3=MaA.FLAGS||(MaA.FLAGS={}));var nj3;(function(A){A[A.HEADERS=1]="HEADERS",A[A.CHUNKED_LENGTH=2]="CHUNKED_LENGTH",A[A.KEEP_ALIVE=4]="KEEP_ALIVE"})(nj3=MaA.LENIENT_FLAGS||(MaA.LENIENT_FLAGS={}));var VK;(function(A){A[A.DELETE=0]="DELETE",A[A.GET=1]="GET",A[A.HEAD=2]="HEAD",A[A.POST=3]="POST",A[A.PUT=4]="PUT",A[A.CONNECT=5]="CONNECT",A[A.OPTIONS=6]="OPTIONS",A[A.TRACE=7]="TRACE",A[A.COPY=8]="COPY",A[A.LOCK=9]="LOCK",A[A.MKCOL=10]="MKCOL",A[A.MOVE=11]="MOVE",A[A.PROPFIND=12]="PROPFIND",A[A.PROPPATCH=13]="PROPPATCH",A[A.SEARCH=14]="SEARCH",A[A.UNLOCK=15]="UNLOCK",A[A.BIND=16]="BIND",A[A.REBIND=17]="REBIND",A[A.UNBIND=18]="UNBIND",A[A.ACL=19]="ACL",A[A.REPORT=20]="REPORT",A[A.MKACTIVITY=21]="MKACTIVITY",A[A.CHECKOUT=22]="CHECKOUT",A[A.MERGE=23]="MERGE",A[A["M-SEARCH"]=24]="M-SEARCH",A[A.NOTIFY=25]="NOTIFY",A[A.SUBSCRIBE=26]="SUBSCRIBE",A[A.UNSUBSCRIBE=27]="UNSUBSCRIBE",A[A.PATCH=28]="PATCH",A[A.PURGE=29]="PURGE",A[A.MKCALENDAR=30]="MKCALENDAR",A[A.LINK=31]="LINK",A[A.UNLINK=32]="UNLINK",A[A.SOURCE=33]="SOURCE",A[A.PRI=34]="PRI",A[A.DESCRIBE=35]="DESCRIBE",A[A.ANNOUNCE=36]="ANNOUNCE",A[A.SETUP=37]="SETUP",A[A.PLAY=38]="PLAY",A[A.PAUSE=39]="PAUSE",A[A.TEARDOWN=40]="TEARDOWN",A[A.GET_PARAMETER=41]="GET_PARAMETER",A[A.SET_PARAMETER=42]="SET_PARAMETER",A[A.REDIRECT=43]="REDIRECT",A[A.RECORD=44]="RECORD",A[A.FLUSH=45]="FLUSH"})(VK=MaA.METHODS||(MaA.METHODS={}));MaA.METHODS_HTTP=[VK.DELETE,VK.GET,VK.HEAD,VK.POST,VK.PUT,VK.CONNECT,VK.OPTIONS,VK.TRACE,VK.COPY,VK.LOCK,VK.MKCOL,VK.MOVE,VK.PROPFIND,VK.PROPPATCH,VK.SEARCH,VK.UNLOCK,VK.BIND,VK.REBIND,VK.UNBIND,VK.ACL,VK.REPORT,VK.MKACTIVITY,VK.CHECKOUT,VK.MERGE,VK["M-SEARCH"],VK.NOTIFY,VK.SUBSCRIBE,VK.UNSUBSCRIBE,VK.PATCH,VK.PURGE,VK.MKCALENDAR,VK.LINK,VK.UNLINK,VK.PRI,VK.SOURCE];MaA.METHODS_ICE=[VK.SOURCE];MaA.METHODS_RTSP=[VK.OPTIONS,VK.DESCRIBE,VK.ANNOUNCE,VK.SETUP,VK.PLAY,VK.PAUSE,VK.TEARDOWN,VK.GET_PARAMETER,VK.SET_PARAMETER,VK.REDIRECT,VK.RECORD,VK.FLUSH,VK.GET,VK.POST];MaA.METHOD_MAP=dj3.enumToMap(VK);MaA.H_METHOD_MAP={};Object.keys(MaA.METHOD_MAP).forEach((A)=>{if(/^H/.test(A))MaA.H_METHOD_MAP[A]=MaA.METHOD_MAP[A]});var rj3;(function(A){A[A.SAFE=0]="SAFE",A[A.SAFE_WITH_CB=1]="SAFE_WITH_CB",A[A.UNSAFE=2]="UNSAFE"})(rj3=MaA.FINISH||(MaA.FINISH={}));MaA.ALPHA=[];for(let A=65;A<=90;A++)MaA.ALPHA.push(String.fromCharCode(A)),MaA.ALPHA.push(String.fromCharCode(A+32));MaA.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};MaA.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};MaA.NUM=["0","1","2","3","4","5","6","7","8","9"];MaA.ALPHANUM=MaA.ALPHA.concat(MaA.NUM);MaA.MARK=["-","_",".","!","~","*","'","(",")"];MaA.USERINFO_CHARS=MaA.ALPHANUM.concat(MaA.MARK).concat(["%",";",":","&","=","+","$",","]);MaA.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(MaA.ALPHANUM);MaA.URL_CHAR=MaA.STRICT_URL_CHAR.concat(["\t","\f"]);for(let A=128;A<=255;A++)MaA.URL_CHAR.push(A);MaA.HEX=MaA.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);MaA.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(MaA.ALPHANUM);MaA.TOKEN=MaA.STRICT_TOKEN.concat([" "]);MaA.HEADER_CHARS=["\t"];for(let A=32;A<=255;A++)if(A!==127)MaA.HEADER_CHARS.push(A);MaA.CONNECTION_TOKEN_CHARS=MaA.HEADER_CHARS.filter((A)=>A!==44);MaA.MAJOR=MaA.NUM_MAP;MaA.MINOR=MaA.MAJOR;var rM6;(function(A){A[A.GENERAL=0]="GENERAL",A[A.CONNECTION=1]="CONNECTION",A[A.CONTENT_LENGTH=2]="CONTENT_LENGTH",A[A.TRANSFER_ENCODING=3]="TRANSFER_ENCODING",A[A.UPGRADE=4]="UPGRADE",A[A.CONNECTION_KEEP_ALIVE=5]="CONNECTION_KEEP_ALIVE",A[A.CONNECTION_CLOSE=6]="CONNECTION_CLOSE",A[A.CONNECTION_UPGRADE=7]="CONNECTION_UPGRADE",A[A.TRANSFER_ENCODING_CHUNKED=8]="TRANSFER_ENCODING_CHUNKED"})(rM6=MaA.HEADER_STATE||(MaA.HEADER_STATE={}));MaA.SPECIAL_HEADERS={connection:rM6.CONNECTION,"content-length":rM6.CONTENT_LENGTH,"proxy-connection":rM6.CONNECTION,"transfer-encoding":rM6.TRANSFER_ENCODING,upgrade:rM6.UPGRADE}});var H88=h((WK2,VaA)=>{var{Buffer:zJ3}=u6("node:buffer");VaA.exports=zJ3.from("[encoded data, 64820 characters]","base64")});var kaA=h((GK2,NaA)=>{var{Buffer:wJ3}=u6("node:buffer");NaA.exports=wJ3.from("[encoded data, 64860 characters]","base64")});var uI6=h((ZK2,IaA)=>{var EaA=["GET","HEAD","POST"],_J3=new Set(EaA),$J3=[101,204,205,304],LaA=[301,302,303,307,308],OJ3=new Set(LaA),yaA=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"],HJ3=new Set(yaA),RaA=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],jJ3=new Set(RaA),JJ3=["follow","manual","error"],SaA=["GET","HEAD","OPTIONS","TRACE"],MJ3=new Set(SaA),DJ3=["navigate","same-origin","no-cors","cors"],XJ3=["omit","same-origin","include"],PJ3=["default","no-store","reload","no-cache","force-cache","only-if-cached"],WJ3=["content-encoding","content-language","content-location","content-type","content-length"],GJ3=["half"],haA=["CONNECT","TRACE","TRACK"],ZJ3=new Set(haA),CaA=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],fJ3=new Set(CaA);IaA.exports={subresource:CaA,forbiddenMethods:haA,requestBodyHeader:WJ3,referrerPolicy:RaA,requestRedirect:JJ3,requestMode:DJ3,requestCredentials:XJ3,requestCache:PJ3,redirectStatus:LaA,corsSafeListedMethods:EaA,nullBodyStatus:$J3,safeMethods:SaA,badPorts:yaA,requestDuplex:GJ3,subresourceSet:fJ3,badPortsSet:HJ3,redirectStatusSet:OJ3,corsSafeListedMethodsSet:_J3,safeMethodsSet:MJ3,forbiddenMethodsSet:ZJ3,referrerPolicySet:jJ3}});var J88=h((fK2,xaA)=>{var j88=Symbol.for("undici.globalOrigin.1");function TJ3(){return globalThis[j88]}function vJ3(A){if(A===void 0){Object.defineProperty(globalThis,j88,{value:void 0,writable:!0,enumerable:!1,configurable:!1});return}let q=new URL(A);if(q.protocol!=="http:"&&q.protocol!=="https:")throw TypeError(`Only http & https urls are allowed, received ${q.protocol}`);Object.defineProperty(globalThis,j88,{value:q,writable:!0,enumerable:!1,configurable:!1})}xaA.exports={getGlobalOrigin:TJ3,setGlobalOrigin:vJ3}});var Sv=h((TK2,FaA)=>{var x51=u6("node:assert"),VJ3=new TextEncoder,mI6=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/,NJ3=/[\u000A\u000D\u0009\u0020]/,kJ3=/[\u0009\u000A\u000C\u000D\u0020]/g,EJ3=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function LJ3(A){x51(A.protocol==="data:");let q=maA(A,!0);q=q.slice(5);let K={position:0},Y=oM6(",",q,K),z=Y.length;if(Y=IJ3(Y,!0,!0),K.position>=q.length)return"failure";K.position++;let w=q.slice(z+1),_=BaA(w);if(/;(\u0020){0,}base64$/i.test(Y)){let O=paA(_);if(_=RJ3(O),_==="failure")return"failure";Y=Y.slice(0,-6),Y=Y.replace(/(\u0020)+$/,""),Y=Y.slice(0,-1)}if(Y.startsWith(";"))Y="text/plain"+Y;let $=M88(Y);if($==="failure")$=M88("text/plain;charset=US-ASCII");return{mimeType:$,body:_}}function maA(A,q=!1){if(!q)return A.href;let K=A.href,Y=A.hash.length,z=Y===0?K:K.substring(0,K.length-Y);if(!Y&&K.endsWith("#"))return z.slice(0,-1);return z}function b51(A,q,K){let Y="";while(K.position<q.length&&A(q[K.position]))Y+=q[K.position],K.position++;return Y}function oM6(A,q,K){let Y=q.indexOf(A,K.position),z=K.position;if(Y===-1)return K.position=q.length,q.slice(z);return K.position=Y,q.slice(z,K.position)}function BaA(A){let q=VJ3.encode(A);return yJ3(q)}function baA(A){return A>=48&&A<=57||A>=65&&A<=70||A>=97&&A<=102}function uaA(A){return A>=48&&A<=57?A-48:(A&223)-55}function yJ3(A){let q=A.length,K=new Uint8Array(q),Y=0;for(let z=0;z<q;++z){let w=A[z];if(w!==37)K[Y++]=w;else if(w===37&&!(baA(A[z+1])&&baA(A[z+2])))K[Y++]=37;else K[Y++]=uaA(A[z+1])<<4|uaA(A[z+2]),z+=2}return q===Y?K:K.subarray(0,Y)}function M88(A){A=I51(A,!0,!0);let q={position:0},K=oM6("/",A,q);if(K.length===0||!mI6.test(K))return"failure";if(q.position>A.length)return"failure";q.position++;let Y=oM6(";",A,q);if(Y=I51(Y,!1,!0),Y.length===0||!mI6.test(Y))return"failure";let z=K.toLowerCase(),w=Y.toLowerCase(),_={type:z,subtype:w,parameters:new Map,essence:`${z}/${w}`};while(q.position<A.length){q.position++,b51((H)=>NJ3.test(H),A,q);let $=b51((H)=>H!==";"&&H!=="=",A,q);if($=$.toLowerCase(),q.position<A.length){if(A[q.position]===";")continue;q.position++}if(q.position>A.length)break;let O=null;if(A[q.position]==='"')O=gaA(A,q,!0),oM6(";",A,q);else if(O=oM6(";",A,q),O=I51(O,!1,!0),O.length===0)continue;if($.length!==0&&mI6.test($)&&(O.length===0||EJ3.test(O))&&!_.parameters.has($))_.parameters.set($,O)}return _}function RJ3(A){A=A.replace(kJ3,"");let q=A.length;if(q%4===0){if(A.charCodeAt(q-1)===61){if(--q,A.charCodeAt(q-1)===61)--q}}if(q%4===1)return"failure";if(/[^+/0-9A-Za-z]/.test(A.length===q?A:A.substring(0,q)))return"failure";let K=Buffer.from(A,"base64");return new Uint8Array(K.buffer,K.byteOffset,K.byteLength)}function gaA(A,q,K){let Y=q.position,z="";x51(A[q.position]==='"'),q.position++;while(!0){if(z+=b51((_)=>_!=='"'&&_!=="\\",A,q),q.position>=A.length)break;let w=A[q.position];if(q.position++,w==="\\"){if(q.position>=A.length){z+="\\";break}z+=A[q.position],q.position++}else{x51(w==='"');break}}if(K)return z;return A.slice(Y,q.position)}function SJ3(A){x51(A!=="failure");let{parameters:q,essence:K}=A,Y=K;for(let[z,w]of q.entries()){if(Y+=";",Y+=z,Y+="=",!mI6.test(w))w=w.replace(/(\\|")/g,"\\$1"),w='"'+w,w+='"';Y+=w}return Y}function hJ3(A){return A===13||A===10||A===9||A===32}function I51(A,q=!0,K=!0){return D88(A,q,K,hJ3)}function CJ3(A){return A===13||A===10||A===9||A===12||A===32}function IJ3(A,q=!0,K=!0){return D88(A,q,K,CJ3)}function D88(A,q,K,Y){let z=0,w=A.length-1;if(q)while(z<A.length&&Y(A.charCodeAt(z)))z++;if(K)while(w>0&&Y(A.charCodeAt(w)))w--;return z===0&&w===A.length-1?A:A.slice(z,w+1)}function paA(A){let q=A.length;if(65535>q)return String.fromCharCode.apply(null,A);let K="",Y=0,z=65535;while(Y<q){if(Y+z>q)z=q-Y;K+=String.fromCharCode.apply(null,A.subarray(Y,Y+=z))}return K}function xJ3(A){switch(A.essence){case"application/ecmascript":case"application/javascript":case"application/x-ecmascript":case"application/x-javascript":case"text/ecmascript":case"text/javascript":case"text/javascript1.0":case"text/javascript1.1":case"text/javascript1.2":case"text/javascript1.3":case"text/javascript1.4":case"text/javascript1.5":case"text/jscript":case"text/livescript":case"text/x-ecmascript":case"text/x-javascript":return"text/javascript";case"application/json":case"text/json":return"application/json";case"image/svg+xml":return"image/svg+xml";case"text/xml":case"application/xml":return"application/xml"}if(A.subtype.endsWith("+json"))return"application/json";if(A.subtype.endsWith("+xml"))return"application/xml";return""}FaA.exports={dataURLProcessor:LJ3,URLSerializer:maA,collectASequenceOfCodePoints:b51,collectASequenceOfCodePointsFast:oM6,stringPercentDecode:BaA,parseMIMEType:M88,collectAnHTTPQuotedString:gaA,serializeAMimeType:SJ3,removeChars:D88,removeHTTPWhitespace:I51,minimizeSupportedMimeType:xJ3,HTTP_TOKEN_CODEPOINTS:mI6,isomorphicDecode:paA}});var D0=h((vK2,QaA)=>{var{types:Bm,inspect:bJ3}=u6("node:util"),{markAsUncloneable:uJ3}=u6("node:worker_threads"),{toUSVString:mJ3}=E9(),v7={};v7.converters={};v7.util={};v7.errors={};v7.errors.exception=function(A){return TypeError(`${A.header}: ${A.message}`)};v7.errors.conversionFailed=function(A){let q=A.types.length===1?"":" one of",K=`${A.argument} could not be converted to${q}: ${A.types.join(", ")}.`;return v7.errors.exception({header:A.prefix,message:K})};v7.errors.invalidArgument=function(A){return v7.errors.exception({header:A.prefix,message:`"${A.value}" is an invalid ${A.type}.`})};v7.brandCheck=function(A,q,K){if(K?.strict!==!1){if(!(A instanceof q)){let Y=TypeError("Illegal invocation");throw Y.code="ERR_INVALID_THIS",Y}}else if(A?.[Symbol.toStringTag]!==q.prototype[Symbol.toStringTag]){let Y=TypeError("Illegal invocation");throw Y.code="ERR_INVALID_THIS",Y}};v7.argumentLengthCheck=function({length:A},q,K){if(A<q)throw v7.errors.exception({message:`${q} argument${q!==1?"s":""} required, but${A?" only":""} ${A} found.`,header:K})};v7.illegalConstructor=function(){throw v7.errors.exception({header:"TypeError",message:"Illegal constructor"})};v7.util.Type=function(A){switch(typeof A){case"undefined":return"Undefined";case"boolean":return"Boolean";case"string":return"String";case"symbol":return"Symbol";case"number":return"Number";case"bigint":return"BigInt";case"function":case"object":{if(A===null)return"Null";return"Object"}}};v7.util.markAsUncloneable=uJ3||(()=>{});v7.util.ConvertToInt=function(A,q,K,Y){let z,w;if(q===64)if(z=Math.pow(2,53)-1,K==="unsigned")w=0;else w=Math.pow(-2,53)+1;else if(K==="unsigned")w=0,z=Math.pow(2,q)-1;else w=Math.pow(-2,q)-1,z=Math.pow(2,q-1)-1;let _=Number(A);if(_===0)_=0;if(Y?.enforceRange===!0){if(Number.isNaN(_)||_===Number.POSITIVE_INFINITY||_===Number.NEGATIVE_INFINITY)throw v7.errors.exception({header:"Integer conversion",message:`Could not convert ${v7.util.Stringify(A)} to an integer.`});if(_=v7.util.IntegerPart(_),_<w||_>z)throw v7.errors.exception({header:"Integer conversion",message:`Value must be between ${w}-${z}, got ${_}.`});return _}if(!Number.isNaN(_)&&Y?.clamp===!0){if(_=Math.min(Math.max(_,w),z),Math.floor(_)%2===0)_=Math.floor(_);else _=Math.ceil(_);return _}if(Number.isNaN(_)||_===0&&Object.is(0,_)||_===Number.POSITIVE_INFINITY||_===Number.NEGATIVE_INFINITY)return 0;if(_=v7.util.IntegerPart(_),_=_%Math.pow(2,q),K==="signed"&&_>=Math.pow(2,q)-1)return _-Math.pow(2,q);return _};v7.util.IntegerPart=function(A){let q=Math.floor(Math.abs(A));if(A<0)return-1*q;return q};v7.util.Stringify=function(A){switch(v7.util.Type(A)){case"Symbol":return`Symbol(${A.description})`;case"Object":return bJ3(A);case"String":return`"${A}"`;default:return`${A}`}};v7.sequenceConverter=function(A){return(q,K,Y,z)=>{if(v7.util.Type(q)!=="Object")throw v7.errors.exception({header:K,message:`${Y} (${v7.util.Stringify(q)}) is not iterable.`});let w=typeof z==="function"?z():q?.[Symbol.iterator]?.(),_=[],$=0;if(w===void 0||typeof w.next!=="function")throw v7.errors.exception({header:K,message:`${Y} is not iterable.`});while(!0){let{done:O,value:H}=w.next();if(O)break;_.push(A(H,K,`${Y}[${$++}]`))}return _}};v7.recordConverter=function(A,q){return(K,Y,z)=>{if(v7.util.Type(K)!=="Object")throw v7.errors.exception({header:Y,message:`${z} ("${v7.util.Type(K)}") is not an Object.`});let w={};if(!Bm.isProxy(K)){let $=[...Object.getOwnPropertyNames(K),...Object.getOwnPropertySymbols(K)];for(let O of $){let H=A(O,Y,z),j=q(K[O],Y,z);w[H]=j}return w}let _=Reflect.ownKeys(K);for(let $ of _)if(Reflect.getOwnPropertyDescriptor(K,$)?.enumerable){let H=A($,Y,z),j=q(K[$],Y,z);w[H]=j}return w}};v7.interfaceConverter=function(A){return(q,K,Y,z)=>{if(z?.strict!==!1&&!(q instanceof A))throw v7.errors.exception({header:K,message:`Expected ${Y} ("${v7.util.Stringify(q)}") to be an instance of ${A.name}.`});return q}};v7.dictionaryConverter=function(A){return(q,K,Y)=>{let z=v7.util.Type(q),w={};if(z==="Null"||z==="Undefined")return w;else if(z!=="Object")throw v7.errors.exception({header:K,message:`Expected ${q} to be one of: Null, Undefined, Object.`});for(let _ of A){let{key:$,defaultValue:O,required:H,converter:j}=_;if(H===!0){if(!Object.hasOwn(q,$))throw v7.errors.exception({header:K,message:`Missing required key "${$}".`})}let J=q[$],M=Object.hasOwn(_,"defaultValue");if(M&&J!==null)J??=O();if(H||M||J!==void 0){if(J=j(J,K,`${Y}.${$}`),_.allowedValues&&!_.allowedValues.includes(J))throw v7.errors.exception({header:K,message:`${J} is not an accepted type. Expected one of ${_.allowedValues.join(", ")}.`});w[$]=J}}return w}};v7.nullableConverter=function(A){return(q,K,Y)=>{if(q===null)return q;return A(q,K,Y)}};v7.converters.DOMString=function(A,q,K,Y){if(A===null&&Y?.legacyNullToEmptyString)return"";if(typeof A==="symbol")throw v7.errors.exception({header:q,message:`${K} is a symbol, which cannot be converted to a DOMString.`});return String(A)};v7.converters.ByteString=function(A,q,K){let Y=v7.converters.DOMString(A,q,K);for(let z=0;z<Y.length;z++)if(Y.charCodeAt(z)>255)throw TypeError(`Cannot convert argument to a ByteString because the character at index ${z} has a value of ${Y.charCodeAt(z)} which is greater than 255.`);return Y};v7.converters.USVString=mJ3;v7.converters.boolean=function(A){return Boolean(A)};v7.converters.any=function(A){return A};v7.converters["long long"]=function(A,q,K){return v7.util.ConvertToInt(A,64,"signed",void 0,q,K)};v7.converters["unsigned long long"]=function(A,q,K){return v7.util.ConvertToInt(A,64,"unsigned",void 0,q,K)};v7.converters["unsigned long"]=function(A,q,K){return v7.util.ConvertToInt(A,32,"unsigned",void 0,q,K)};v7.converters["unsigned short"]=function(A,q,K,Y){return v7.util.ConvertToInt(A,16,"unsigned",Y,q,K)};v7.converters.ArrayBuffer=function(A,q,K,Y){if(v7.util.Type(A)!=="Object"||!Bm.isAnyArrayBuffer(A))throw v7.errors.conversionFailed({prefix:q,argument:`${K} ("${v7.util.Stringify(A)}")`,types:["ArrayBuffer"]});if(Y?.allowShared===!1&&Bm.isSharedArrayBuffer(A))throw v7.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(A.resizable||A.growable)throw v7.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return A};v7.converters.TypedArray=function(A,q,K,Y,z){if(v7.util.Type(A)!=="Object"||!Bm.isTypedArray(A)||A.constructor.name!==q.name)throw v7.errors.conversionFailed({prefix:K,argument:`${Y} ("${v7.util.Stringify(A)}")`,types:[q.name]});if(z?.allowShared===!1&&Bm.isSharedArrayBuffer(A.buffer))throw v7.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(A.buffer.resizable||A.buffer.growable)throw v7.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return A};v7.converters.DataView=function(A,q,K,Y){if(v7.util.Type(A)!=="Object"||!Bm.isDataView(A))throw v7.errors.exception({header:q,message:`${K} is not a DataView.`});if(Y?.allowShared===!1&&Bm.isSharedArrayBuffer(A.buffer))throw v7.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(A.buffer.resizable||A.buffer.growable)throw v7.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return A};v7.converters.BufferSource=function(A,q,K,Y){if(Bm.isAnyArrayBuffer(A))return v7.converters.ArrayBuffer(A,q,K,{...Y,allowShared:!1});if(Bm.isTypedArray(A))return v7.converters.TypedArray(A,A.constructor,q,K,{...Y,allowShared:!1});if(Bm.isDataView(A))return v7.converters.DataView(A,q,K,{...Y,allowShared:!1});throw v7.errors.conversionFailed({prefix:q,argument:`${K} ("${v7.util.Stringify(A)}")`,types:["BufferSource"]})};v7.converters["sequence<ByteString>"]=v7.sequenceConverter(v7.converters.ByteString);v7.converters["sequence<sequence<ByteString>>"]=v7.sequenceConverter(v7.converters["sequence<ByteString>"]);v7.converters["record<ByteString, ByteString>"]=v7.recordConverter(v7.converters.ByteString,v7.converters.ByteString);QaA.exports={webidl:v7}});var fk=h((VK2,zsA)=>{var{Transform:BJ3}=u6("node:stream"),UaA=u6("node:zlib"),{redirectStatusSet:gJ3,referrerPolicySet:pJ3,badPortsSet:FJ3}=uI6(),{getGlobalOrigin:daA}=J88(),{collectASequenceOfCodePoints:zK6,collectAnHTTPQuotedString:QJ3,removeChars:UJ3,parseMIMEType:dJ3}=Sv(),{performance:cJ3}=u6("node:perf_hooks"),{isBlobLike:lJ3,ReadableStreamFrom:iJ3,isValidHTTPToken:caA,normalizedMethodRecordsBase:nJ3}=E9(),wK6=u6("node:assert"),{isUint8Array:rJ3}=u6("node:util/types"),{webidl:BI6}=D0(),laA=[],m51;try{m51=u6("node:crypto");let A=["sha256","sha384","sha512"];laA=m51.getHashes().filter((q)=>A.includes(q))}catch{}function iaA(A){let q=A.urlList,K=q.length;return K===0?null:q[K-1].toString()}function oJ3(A,q){if(!gJ3.has(A.status))return null;let K=A.headersList.get("location",!0);if(K!==null&&raA(K)){if(!naA(K))K=aJ3(K);K=new URL(K,iaA(A))}if(K&&!K.hash)K.hash=q;return K}function naA(A){for(let q=0;q<A.length;++q){let K=A.charCodeAt(q);if(K>126||K<32)return!1}return!0}function aJ3(A){return Buffer.from(A,"binary").toString("utf8")}function pI6(A){return A.urlList[A.urlList.length-1]}function sJ3(A){let q=pI6(A);if(eaA(q)&&FJ3.has(q.port))return"blocked";return"allowed"}function tJ3(A){return A instanceof Error||(A?.constructor?.name==="Error"||A?.constructor?.name==="DOMException")}function eJ3(A){for(let q=0;q<A.length;++q){let K=A.charCodeAt(q);if(!(K===9||K>=32&&K<=126||K>=128&&K<=255))return!1}return!0}var AM3=caA;function raA(A){return(A[0]==="\t"||A[0]===" "||A[A.length-1]==="\t"||A[A.length-1]===" "||A.includes(`
`)||A.includes("\r")||A.includes("\x00"))===!1}function qM3(A,q){let{headersList:K}=q,Y=(K.get("referrer-policy",!0)??"").split(","),z="";if(Y.length>0)for(let w=Y.length;w!==0;w--){let _=Y[w-1].trim();if(pJ3.has(_)){z=_;break}}if(z!=="")A.referrerPolicy=z}function KM3(){return"allowed"}function YM3(){return"success"}function zM3(){return"success"}function wM3(A){let q=null;q=A.mode,A.headersList.set("sec-fetch-mode",q,!0)}function _M3(A){let q=A.origin;if(q==="client"||q===void 0)return;if(A.responseTainting==="cors"||A.mode==="websocket")A.headersList.append("origin",q,!0);else if(A.method!=="GET"&&A.method!=="HEAD"){switch(A.referrerPolicy){case"no-referrer":q=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(A.origin&&P88(A.origin)&&!P88(pI6(A)))q=null;break;case"same-origin":if(!B51(A,pI6(A)))q=null;break;default:}A.headersList.append("origin",q,!0)}}function aM6(A,q){return A}function $M3(A,q,K){if(!A?.startTime||A.startTime<q)return{domainLookupStartTime:q,domainLookupEndTime:q,connectionStartTime:q,connectionEndTime:q,secureConnectionStartTime:q,ALPNNegotiatedProtocol:A?.ALPNNegotiatedProtocol};return{domainLookupStartTime:aM6(A.domainLookupStartTime,K),domainLookupEndTime:aM6(A.domainLookupEndTime,K),connectionStartTime:aM6(A.connectionStartTime,K),connectionEndTime:aM6(A.connectionEndTime,K),secureConnectionStartTime:aM6(A.secureConnectionStartTime,K),ALPNNegotiatedProtocol:A.ALPNNegotiatedProtocol}}function OM3(A){return aM6(cJ3.now(),A)}function HM3(A){return{startTime:A.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:A.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function oaA(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function jM3(A){return{referrerPolicy:A.referrerPolicy}}function JM3(A){let q=A.referrerPolicy;wK6(q);let K=null;if(A.referrer==="client"){let $=daA();if(!$||$.origin==="null")return"no-referrer";K=new URL($)}else if(A.referrer instanceof URL)K=A.referrer;let Y=X88(K),z=X88(K,!0);if(Y.toString().length>4096)Y=z;let w=B51(A,Y),_=gI6(Y)&&!gI6(A.url);switch(q){case"origin":return z!=null?z:X88(K,!0);case"unsafe-url":return Y;case"same-origin":return w?z:"no-referrer";case"origin-when-cross-origin":return w?Y:z;case"strict-origin-when-cross-origin":{let $=pI6(A);if(B51(Y,$))return Y;if(gI6(Y)&&!gI6($))return"no-referrer";return z}case"strict-origin":case"no-referrer-when-downgrade":default:return _?"no-referrer":z}}function X88(A,q){if(wK6(A instanceof URL),A=new URL(A),A.protocol==="file:"||A.protocol==="about:"||A.protocol==="blank:")return"no-referrer";if(A.username="",A.password="",A.hash="",q)A.pathname="",A.search="";return A}function gI6(A){if(!(A instanceof URL))return!1;if(A.href==="about:blank"||A.href==="about:srcdoc")return!0;if(A.protocol==="data:")return!0;if(A.protocol==="file:")return!0;return q(A.origin);function q(K){if(K==null||K==="null")return!1;let Y=new URL(K);if(Y.protocol==="https:"||Y.protocol==="wss:")return!0;if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(Y.hostname)||(Y.hostname==="localhost"||Y.hostname.includes("localhost."))||Y.hostname.endsWith(".localhost"))return!0;return!1}}function MM3(A,q){if(m51===void 0)return!0;let K=aaA(q);if(K==="no metadata")return!0;if(K.length===0)return!0;let Y=XM3(K),z=PM3(K,Y);for(let w of z){let{algo:_,hash:$}=w,O=m51.createHash(_).update(A).digest("base64");if(O[O.length-1]==="=")if(O[O.length-2]==="=")O=O.slice(0,-2);else O=O.slice(0,-1);if(WM3(O,$))return!0}return!1}var DM3=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function aaA(A){let q=[],K=!0;for(let Y of A.split(" ")){K=!1;let z=DM3.exec(Y);if(z===null||z.groups===void 0||z.groups.algo===void 0)continue;let w=z.groups.algo.toLowerCase();if(laA.includes(w))q.push(z.groups)}if(K===!0)return"no metadata";return q}function XM3(A){let q=A[0].algo;if(q[3]==="5")return q;for(let K=1;K<A.length;++K){let Y=A[K];if(Y.algo[3]==="5"){q="sha512";break}else if(q[3]==="3")continue;else if(Y.algo[3]==="3")q="sha384"}return q}function PM3(A,q){if(A.length===1)return A;let K=0;for(let Y=0;Y<A.length;++Y)if(A[Y].algo===q)A[K++]=A[Y];return A.length=K,A}function WM3(A,q){if(A.length!==q.length)return!1;for(let K=0;K<A.length;++K)if(A[K]!==q[K]){if(A[K]==="+"&&q[K]==="-"||A[K]==="/"&&q[K]==="_")continue;return!1}return!0}function GM3(A){}function B51(A,q){if(A.origin===q.origin&&A.origin==="null")return!0;if(A.protocol===q.protocol&&A.hostname===q.hostname&&A.port===q.port)return!0;return!1}function ZM3(){let A,q;return{promise:new Promise((Y,z)=>{A=Y,q=z}),resolve:A,reject:q}}function fM3(A){return A.controller.state==="aborted"}function TM3(A){return A.controller.state==="aborted"||A.controller.state==="terminated"}function vM3(A){return nJ3[A.toLowerCase()]??A}function VM3(A){let q=JSON.stringify(A);if(q===void 0)throw TypeError("Value is not JSON serializable");return wK6(typeof q==="string"),q}var NM3=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function saA(A,q,K=0,Y=1){class z{#A;#q;#K;constructor(w,_){this.#A=w,this.#q=_,this.#K=0}next(){if(typeof this!=="object"||this===null||!(#A in this))throw TypeError(`'next' called on an object that does not implement interface ${A} Iterator.`);let w=this.#K,_=this.#A[q],$=_.length;if(w>=$)return{value:void 0,done:!0};let{[K]:O,[Y]:H}=_[w];this.#K=w+1;let j;switch(this.#q){case"key":j=O;break;case"value":j=H;break;case"key+value":j=[O,H];break}return{value:j,done:!1}}}return delete z.prototype.constructor,Object.setPrototypeOf(z.prototype,NM3),Object.defineProperties(z.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${A} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(w,_){return new z(w,_)}}function kM3(A,q,K,Y=0,z=1){let w=saA(A,K,Y,z),_={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return BI6.brandCheck(this,q),w(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return BI6.brandCheck(this,q),w(this,"value")}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return BI6.brandCheck(this,q),w(this,"key+value")}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(O,H=globalThis){if(BI6.brandCheck(this,q),BI6.argumentLengthCheck(arguments,1,`${A}.forEach`),typeof O!=="function")throw TypeError(`Failed to execute 'forEach' on '${A}': parameter 1 is not of type 'Function'.`);for(let{0:j,1:J}of w(this,"key+value"))O.call(H,J,j,this)}}};return Object.defineProperties(q.prototype,{..._,[Symbol.iterator]:{writable:!0,enumerable:!1,configurable:!0,value:_.entries.value}})}async function EM3(A,q,K){let Y=q,z=K,w;try{w=A.stream.getReader()}catch(_){z(_);return}try{Y(await taA(w))}catch(_){z(_)}}function LM3(A){return A instanceof ReadableStream||A[Symbol.toStringTag]==="ReadableStream"&&typeof A.tee==="function"}function yM3(A){try{A.close(),A.byobRequest?.respond(0)}catch(q){if(!q.message.includes("Controller is already closed")&&!q.message.includes("ReadableStream is already closed"))throw q}}var RM3=/[^\x00-\xFF]/;function u51(A){return wK6(!RM3.test(A)),A}async function taA(A){let q=[],K=0;while(!0){let{done:Y,value:z}=await A.read();if(Y)return Buffer.concat(q,K);if(!rJ3(z))throw TypeError("Received non-Uint8Array chunk");q.push(z),K+=z.length}}function SM3(A){wK6("protocol"in A);let q=A.protocol;return q==="about:"||q==="blob:"||q==="data:"}function P88(A){return typeof A==="string"&&A[5]===":"&&A[0]==="h"&&A[1]==="t"&&A[2]==="t"&&A[3]==="p"&&A[4]==="s"||A.protocol==="https:"}function eaA(A){wK6("protocol"in A);let q=A.protocol;return q==="http:"||q==="https:"}function hM3(A,q){let K=A;if(!K.startsWith("bytes"))return"failure";let Y={position:5};if(q)zK6((O)=>O==="\t"||O===" ",K,Y);if(K.charCodeAt(Y.position)!==61)return"failure";if(Y.position++,q)zK6((O)=>O==="\t"||O===" ",K,Y);let z=zK6((O)=>{let H=O.charCodeAt(0);return H>=48&&H<=57},K,Y),w=z.length?Number(z):null;if(q)zK6((O)=>O==="\t"||O===" ",K,Y);if(K.charCodeAt(Y.position)!==45)return"failure";if(Y.position++,q)zK6((O)=>O==="\t"||O===" ",K,Y);let _=zK6((O)=>{let H=O.charCodeAt(0);return H>=48&&H<=57},K,Y),$=_.length?Number(_):null;if(Y.position<K.length)return"failure";if($===null&&w===null)return"failure";if(w>$)return"failure";return{rangeStartValue:w,rangeEndValue:$}}function CM3(A,q,K){let Y="bytes ";return Y+=u51(`${A}`),Y+="-",Y+=u51(`${q}`),Y+="/",Y+=u51(`${K}`),Y}class AsA extends BJ3{#A;constructor(A){super();this.#A=A}_transform(A,q,K){if(!this._inflateStream){if(A.length===0){K();return}this._inflateStream=(A[0]&15)===8?UaA.createInflate(this.#A):UaA.createInflateRaw(this.#A),this._inflateStream.on("data",this.push.bind(this)),this._inflateStream.on("end",()=>this.push(null)),this._inflateStream.on("error",(Y)=>this.destroy(Y))}this._inflateStream.write(A,q,K)}_final(A){if(this._inflateStream)this._inflateStream.end(),this._inflateStream=null;A()}}function IM3(A){return new AsA(A)}function xM3(A){let q=null,K=null,Y=null,z=qsA("content-type",A);if(z===null)return"failure";for(let w of z){let _=dJ3(w);if(_==="failure"||_.essence==="*/*")continue;if(Y=_,Y.essence!==K){if(q=null,Y.parameters.has("charset"))q=Y.parameters.get("charset");K=Y.essence}else if(!Y.parameters.has("charset")&&q!==null)Y.parameters.set("charset",q)}if(Y==null)return"failure";return Y}function bM3(A){let q=A,K={position:0},Y=[],z="";while(K.position<q.length){if(z+=zK6((w)=>w!=='"'&&w!==",",q,K),K.position<q.length)if(q.charCodeAt(K.position)===34){if(z+=QJ3(q,K),K.position<q.length)continue}else wK6(q.charCodeAt(K.position)===44),K.position++;z=UJ3(z,!0,!0,(w)=>w===9||w===32),Y.push(z),z=""}return Y}function qsA(A,q){let K=q.get(A,!0);if(K===null)return null;return bM3(K)}var uM3=new TextDecoder;function mM3(A){if(A.length===0)return"";if(A[0]===239&&A[1]===187&&A[2]===191)A=A.subarray(3);return uM3.decode(A)}class KsA{get baseUrl(){return daA()}get origin(){return this.baseUrl?.origin}policyContainer=oaA()}class YsA{settingsObject=new KsA}var BM3=new YsA;zsA.exports={isAborted:fM3,isCancelled:TM3,isValidEncodedURL:naA,createDeferredPromise:ZM3,ReadableStreamFrom:iJ3,tryUpgradeRequestToAPotentiallyTrustworthyURL:GM3,clampAndCoarsenConnectionTimingInfo:$M3,coarsenedSharedCurrentTime:OM3,determineRequestsReferrer:JM3,makePolicyContainer:oaA,clonePolicyContainer:jM3,appendFetchMetadata:wM3,appendRequestOriginHeader:_M3,TAOCheck:zM3,corsCheck:YM3,crossOriginResourcePolicyCheck:KM3,createOpaqueTimingInfo:HM3,setRequestReferrerPolicyOnRedirect:qM3,isValidHTTPToken:caA,requestBadPort:sJ3,requestCurrentURL:pI6,responseURL:iaA,responseLocationURL:oJ3,isBlobLike:lJ3,isURLPotentiallyTrustworthy:gI6,isValidReasonPhrase:eJ3,sameOrigin:B51,normalizeMethod:vM3,serializeJavascriptValueToJSONString:VM3,iteratorMixin:kM3,createIterator:saA,isValidHeaderName:AM3,isValidHeaderValue:raA,isErrorLike:tJ3,fullyReadBody:EM3,bytesMatch:MM3,isReadableStreamLike:LM3,readableStreamClose:yM3,isomorphicEncode:u51,urlIsLocal:SM3,urlHasHttpsScheme:P88,urlIsHttpHttpsScheme:eaA,readAllBytes:taA,simpleRangeHeaderValue:hM3,buildContentRange:CM3,parseMetadata:aaA,createInflate:IM3,extractMimeType:xM3,getDecodeSplit:qsA,utf8DecodeBytes:mM3,environmentSettingsObject:BM3}});var Xs=h((NK2,wsA)=>{wsA.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}});var W88=h((kK2,_sA)=>{var{Blob:gM3,File:pM3}=u6("node:buffer"),{kState:Od}=Xs(),{webidl:gm}=D0();class pm{constructor(A,q,K={}){let Y=q,z=K.type,w=K.lastModified??Date.now();this[Od]={blobLike:A,name:Y,type:z,lastModified:w}}stream(...A){return gm.brandCheck(this,pm),this[Od].blobLike.stream(...A)}arrayBuffer(...A){return gm.brandCheck(this,pm),this[Od].blobLike.arrayBuffer(...A)}slice(...A){return gm.brandCheck(this,pm),this[Od].blobLike.slice(...A)}text(...A){return gm.brandCheck(this,pm),this[Od].blobLike.text(...A)}get size(){return gm.brandCheck(this,pm),this[Od].blobLike.size}get type(){return gm.brandCheck(this,pm),this[Od].blobLike.type}get name(){return gm.brandCheck(this,pm),this[Od].name}get lastModified(){return gm.brandCheck(this,pm),this[Od].lastModified}get[Symbol.toStringTag](){return"File"}}gm.converters.Blob=gm.interfaceConverter(gM3);function FM3(A){return A instanceof pM3||A&&(typeof A.stream==="function"||typeof A.arrayBuffer==="function")&&A[Symbol.toStringTag]==="File"}_sA.exports={FileLike:pm,isFileLike:FM3}});var FI6=h((EK2,JsA)=>{var{isBlobLike:g51,iteratorMixin:QM3}=fk(),{kState:jf}=Xs(),{kEnumerableProperty:sM6}=E9(),{FileLike:$sA,isFileLike:UM3}=W88(),{webidl:r_}=D0(),{File:jsA}=u6("node:buffer"),OsA=u6("node:util"),HsA=globalThis.File??jsA;class Fm{constructor(A){if(r_.util.markAsUncloneable(this),A!==void 0)throw r_.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[jf]=[]}append(A,q,K=void 0){r_.brandCheck(this,Fm);let Y="FormData.append";if(r_.argumentLengthCheck(arguments,2,Y),arguments.length===3&&!g51(q))throw TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");A=r_.converters.USVString(A,Y,"name"),q=g51(q)?r_.converters.Blob(q,Y,"value",{strict:!1}):r_.converters.USVString(q,Y,"value"),K=arguments.length===3?r_.converters.USVString(K,Y,"filename"):void 0;let z=G88(A,q,K);this[jf].push(z)}delete(A){r_.brandCheck(this,Fm);let q="FormData.delete";r_.argumentLengthCheck(arguments,1,q),A=r_.converters.USVString(A,q,"name"),this[jf]=this[jf].filter((K)=>K.name!==A)}get(A){r_.brandCheck(this,Fm);let q="FormData.get";r_.argumentLengthCheck(arguments,1,q),A=r_.converters.USVString(A,q,"name");let K=this[jf].findIndex((Y)=>Y.name===A);if(K===-1)return null;return this[jf][K].value}getAll(A){r_.brandCheck(this,Fm);let q="FormData.getAll";return r_.argumentLengthCheck(arguments,1,q),A=r_.converters.USVString(A,q,"name"),this[jf].filter((K)=>K.name===A).map((K)=>K.value)}has(A){r_.brandCheck(this,Fm);let q="FormData.has";return r_.argumentLengthCheck(arguments,1,q),A=r_.converters.USVString(A,q,"name"),this[jf].findIndex((K)=>K.name===A)!==-1}set(A,q,K=void 0){r_.brandCheck(this,Fm);let Y="FormData.set";if(r_.argumentLengthCheck(arguments,2,Y),arguments.length===3&&!g51(q))throw TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");A=r_.converters.USVString(A,Y,"name"),q=g51(q)?r_.converters.Blob(q,Y,"name",{strict:!1}):r_.converters.USVString(q,Y,"name"),K=arguments.length===3?r_.converters.USVString(K,Y,"name"):void 0;let z=G88(A,q,K),w=this[jf].findIndex((_)=>_.name===A);if(w!==-1)this[jf]=[...this[jf].slice(0,w),z,...this[jf].slice(w+1).filter((_)=>_.name!==A)];else this[jf].push(z)}[OsA.inspect.custom](A,q){let K=this[jf].reduce((z,w)=>{if(z[w.name])if(Array.isArray(z[w.name]))z[w.name].push(w.value);else z[w.name]=[z[w.name],w.value];else z[w.name]=w.value;return z},{__proto__:null});q.depth??=A,q.colors??=!0;let Y=OsA.formatWithOptions(q,K);return`FormData ${Y.slice(Y.indexOf("]")+2)}`}}QM3("FormData",Fm,jf,"name","value");Object.defineProperties(Fm.prototype,{append:sM6,delete:sM6,get:sM6,getAll:sM6,has:sM6,set:sM6,[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function G88(A,q,K){if(typeof q==="string");else{if(!UM3(q))q=q instanceof Blob?new HsA([q],"blob",{type:q.type}):new $sA(q,"blob",{type:q.type});if(K!==void 0){let Y={type:q.type,lastModified:q.lastModified};q=q instanceof jsA?new HsA([q],K,Y):new $sA(q,K,Y)}}return{name:A,value:q}}JsA.exports={FormData:Fm,makeEntry:G88}});var GsA=h((LK2,WsA)=>{var{isUSVString:MsA,bufferToLowerCasedHeaderName:dM3}=E9(),{utf8DecodeBytes:cM3}=fk(),{HTTP_TOKEN_CODEPOINTS:lM3,isomorphicDecode:DsA}=Sv(),{isFileLike:iM3}=W88(),{makeEntry:nM3}=FI6(),p51=u6("node:assert"),{File:rM3}=u6("node:buffer"),oM3=globalThis.File??rM3,aM3=Buffer.from('form-data; name="'),XsA=Buffer.from("; filename"),sM3=Buffer.from("--"),tM3=Buffer.from(`--\r
`);function eM3(A){for(let q=0;q<A.length;++q)if((A.charCodeAt(q)&-128)!==0)return!1;return!0}function AD3(A){let q=A.length;if(q<27||q>70)return!1;for(let K=0;K<q;++K){let Y=A.charCodeAt(K);if(!(Y>=48&&Y<=57||Y>=65&&Y<=90||Y>=97&&Y<=122||Y===39||Y===45||Y===95))return!1}return!0}function qD3(A,q){p51(q!=="failure"&&q.essence==="multipart/form-data");let K=q.parameters.get("boundary");if(K===void 0)return"failure";let Y=Buffer.from(`--${K}`,"utf8"),z=[],w={position:0};while(A[w.position]===13&&A[w.position+1]===10)w.position+=2;let _=A.length;while(A[_-1]===10&&A[_-2]===13)_-=2;if(_!==A.length)A=A.subarray(0,_);while(!0){if(A.subarray(w.position,w.position+Y.length).equals(Y))w.position+=Y.length;else return"failure";if(w.position===A.length-2&&F51(A,sM3,w)||w.position===A.length-4&&F51(A,tM3,w))return z;if(A[w.position]!==13||A[w.position+1]!==10)return"failure";w.position+=2;let $=KD3(A,w);if($==="failure")return"failure";let{name:O,filename:H,contentType:j,encoding:J}=$;w.position+=2;let M;{let X=A.indexOf(Y.subarray(2),w.position);if(X===-1)return"failure";if(M=A.subarray(w.position,X-4),w.position+=M.length,J==="base64")M=Buffer.from(M.toString(),"base64")}if(A[w.position]!==13||A[w.position+1]!==10)return"failure";else w.position+=2;let D;if(H!==null){if(j??="text/plain",!eM3(j))j="";D=new oM3([M],H,{type:j})}else D=cM3(Buffer.from(M));p51(MsA(O)),p51(typeof D==="string"&&MsA(D)||iM3(D)),z.push(nM3(O,D,H))}}function KD3(A,q){let K=null,Y=null,z=null,w=null;while(!0){if(A[q.position]===13&&A[q.position+1]===10){if(K===null)return"failure";return{name:K,filename:Y,contentType:z,encoding:w}}let _=tM6(($)=>$!==10&&$!==13&&$!==58,A,q);if(_=Z88(_,!0,!0,($)=>$===9||$===32),!lM3.test(_.toString()))return"failure";if(A[q.position]!==58)return"failure";switch(q.position++,tM6(($)=>$===32||$===9,A,q),dM3(_)){case"content-disposition":{if(K=Y=null,!F51(A,aM3,q))return"failure";if(q.position+=17,K=PsA(A,q),K===null)return"failure";if(F51(A,XsA,q)){let $=q.position+XsA.length;if(A[$]===42)q.position+=1,$+=1;if(A[$]!==61||A[$+1]!==34)return"failure";if(q.position+=12,Y=PsA(A,q),Y===null)return"failure"}break}case"content-type":{let $=tM6((O)=>O!==10&&O!==13,A,q);$=Z88($,!1,!0,(O)=>O===9||O===32),z=DsA($);break}case"content-transfer-encoding":{let $=tM6((O)=>O!==10&&O!==13,A,q);$=Z88($,!1,!0,(O)=>O===9||O===32),w=DsA($);break}default:tM6(($)=>$!==10&&$!==13,A,q)}if(A[q.position]!==13&&A[q.position+1]!==10)return"failure";else q.position+=2}}function PsA(A,q){p51(A[q.position-1]===34);let K=tM6((Y)=>Y!==10&&Y!==13&&Y!==34,A,q);if(A[q.position]!==34)return null;else q.position++;return K=new TextDecoder().decode(K).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),K}function tM6(A,q,K){let Y=K.position;while(Y<q.length&&A(q[Y]))++Y;return q.subarray(K.position,K.position=Y)}function Z88(A,q,K,Y){let z=0,w=A.length-1;if(q)while(z<A.length&&Y(A[z]))z++;if(K)while(w>0&&Y(A[w]))w--;return z===0&&w===A.length-1?A:A.subarray(z,w+1)}function F51(A,q,K){if(A.length<q.length)return!1;for(let Y=0;Y<q.length;Y++)if(q[Y]!==A[K.position+Y])return!1;return!0}WsA.exports={multipartFormDataParser:qD3,validateBoundary:AD3}});var qD6=h((yK2,EsA)=>{var QI6=E9(),{ReadableStreamFrom:YD3,isBlobLike:ZsA,isReadableStreamLike:zD3,readableStreamClose:wD3,createDeferredPromise:_D3,fullyReadBody:$D3,extractMimeType:OD3,utf8DecodeBytes:vsA}=fk(),{FormData:fsA}=FI6(),{kState:AD6}=Xs(),{webidl:HD3}=D0(),{Blob:jD3}=u6("node:buffer"),f88=u6("node:assert"),{isErrored:VsA,isDisturbed:JD3}=u6("node:stream"),{isArrayBuffer:MD3}=u6("node:util/types"),{serializeAMimeType:DD3}=Sv(),{multipartFormDataParser:XD3}=GsA(),T88;try{let A=u6("node:crypto");T88=(q)=>A.randomInt(0,q)}catch{T88=(A)=>Math.floor(Math.random(A))}var Q51=new TextEncoder;function PD3(){}var v88=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,V88;if(v88)V88=new FinalizationRegistry((A)=>{let q=A.deref();if(q&&!q.locked&&!JD3(q)&&!VsA(q))q.cancel("Response object has been garbage collected").catch(PD3)});function NsA(A,q=!1){let K=null;if(A instanceof ReadableStream)K=A;else if(ZsA(A))K=A.stream();else K=new ReadableStream({async pull(O){let H=typeof z==="string"?Q51.encode(z):z;if(H.byteLength)O.enqueue(H);queueMicrotask(()=>wD3(O))},start(){},type:"bytes"});f88(zD3(K));let Y=null,z=null,w=null,_=null;if(typeof A==="string")z=A,_="text/plain;charset=UTF-8";else if(A instanceof URLSearchParams)z=A.toString(),_="application/x-www-form-urlencoded;charset=UTF-8";else if(MD3(A))z=new Uint8Array(A.slice());else if(ArrayBuffer.isView(A))z=new Uint8Array(A.buffer.slice(A.byteOffset,A.byteOffset+A.byteLength));else if(QI6.isFormDataLike(A)){let O=`----formdata-undici-0${`${T88(100000000000)}`.padStart(11,"0")}`,H=`--${O}\r
Content-Disposition: form-data`;/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */let j=(W)=>W.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),J=(W)=>W.replace(/\r?\n|\r/g,`\r
`),M=[],D=new Uint8Array([13,10]);w=0;let X=!1;for(let[W,G]of A)if(typeof G==="string"){let Z=Q51.encode(H+`; name="${j(J(W))}"\r
\r
${J(G)}\r
`);M.push(Z),w+=Z.byteLength}else{let Z=Q51.encode(`${H}; name="${j(J(W))}"`+(G.name?`; filename="${j(G.name)}"`:"")+`\r
Content-Type: ${G.type||"application/octet-stream"}\r
\r
`);if(M.push(Z,G,D),typeof G.size==="number")w+=Z.byteLength+G.size+D.byteLength;else X=!0}let P=Q51.encode(`--${O}--`);if(M.push(P),w+=P.byteLength,X)w=null;z=A,Y=async function*(){for(let W of M)if(W.stream)yield*W.stream();else yield W},_=`multipart/form-data; boundary=${O}`}else if(ZsA(A)){if(z=A,w=A.size,A.type)_=A.type}else if(typeof A[Symbol.asyncIterator]==="function"){if(q)throw TypeError("keepalive");if(QI6.isDisturbed(A)||A.locked)throw TypeError("Response body object should not be disturbed or locked");K=A instanceof ReadableStream?A:YD3(A)}if(typeof z==="string"||QI6.isBuffer(z))w=Buffer.byteLength(z);if(Y!=null){let O;K=new ReadableStream({async start(){O=Y(A)[Symbol.asyncIterator]()},async pull(H){let{value:j,done:J}=await O.next();if(J)queueMicrotask(()=>{H.close(),H.byobRequest?.respond(0)});else if(!VsA(K)){let M=new Uint8Array(j);if(M.byteLength)H.enqueue(M)}return H.desiredSize>0},async cancel(H){await O.return()},type:"bytes"})}return[{stream:K,source:z,length:w},_]}function WD3(A,q=!1){if(A instanceof ReadableStream)f88(!QI6.isDisturbed(A),"The body has already been consumed."),f88(!A.locked,"The stream is locked.");return NsA(A,q)}function GD3(A,q){let[K,Y]=q.stream.tee();if(v88)V88.register(A,new WeakRef(K));return q.stream=K,{stream:Y,length:q.length,source:q.source}}function ZD3(A){if(A.aborted)throw new DOMException("The operation was aborted.","AbortError")}function fD3(A){return{blob(){return eM6(this,(K)=>{let Y=TsA(this);if(Y===null)Y="";else if(Y)Y=DD3(Y);return new jD3([K],{type:Y})},A)},arrayBuffer(){return eM6(this,(K)=>{return new Uint8Array(K).buffer},A)},text(){return eM6(this,vsA,A)},json(){return eM6(this,vD3,A)},formData(){return eM6(this,(K)=>{let Y=TsA(this);if(Y!==null)switch(Y.essence){case"multipart/form-data":{let z=XD3(K,Y);if(z==="failure")throw TypeError("Failed to parse body as FormData.");let w=new fsA;return w[AD6]=z,w}case"application/x-www-form-urlencoded":{let z=new URLSearchParams(K.toString()),w=new fsA;for(let[_,$]of z)w.append(_,$);return w}}throw TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},A)},bytes(){return eM6(this,(K)=>{return new Uint8Array(K)},A)}}}function TD3(A){Object.assign(A.prototype,fD3(A))}async function eM6(A,q,K){if(HD3.brandCheck(A,K),ksA(A))throw TypeError("Body is unusable: Body has already been read");ZD3(A[AD6]);let Y=_D3(),z=(_)=>Y.reject(_),w=(_)=>{try{Y.resolve(q(_))}catch($){z($)}};if(A[AD6].body==null)return w(Buffer.allocUnsafe(0)),Y.promise;return await $D3(A[AD6].body,w,z),Y.promise}function ksA(A){let q=A[AD6].body;return q!=null&&(q.stream.locked||QI6.isDisturbed(q.stream))}function vD3(A){return JSON.parse(vsA(A))}function TsA(A){let q=A[AD6].headersList,K=OD3(q);if(K==="failure")return null;return K}EsA.exports={extractBody:NsA,safelyExtractBody:WD3,cloneBody:GD3,mixinBody:TD3,streamRegistry:V88,hasFinalizationRegistry:v88,bodyUnusable:ksA}});var BsA=h((RK2,msA)=>{var gK=u6("node:assert"),S3=E9(),{channels:LsA}=UM6(),N88=Y88(),{RequestContentLengthMismatchError:_K6,ResponseContentLengthMismatchError:VD3,RequestAbortedError:IsA,HeadersTimeoutError:ND3,HeadersOverflowError:kD3,SocketError:n51,InformationalError:KD6,BodyTimeoutError:ED3,HTTPParserError:LD3,ResponseExceededMaxSizeError:yD3}=Yw(),{kUrl:xsA,kReset:hv,kClient:y88,kParser:Wj,kBlocking:cI6,kRunning:JG,kPending:RD3,kSize:ysA,kWriting:Ws,kQueue:rC,kNoRef:UI6,kKeepAliveDefaultTimeout:SD3,kHostHeader:hD3,kPendingIdx:CD3,kRunningIdx:Iy,kError:xy,kPipelining:l51,kSocket:YD6,kKeepAliveTimeoutValue:r51,kMaxHeadersSize:k88,kKeepAliveMaxTimeout:ID3,kKeepAliveTimeoutThreshold:xD3,kHeadersTimeout:bD3,kBodyTimeout:uD3,kStrictContentLength:R88,kMaxRequests:RsA,kCounter:mD3,kMaxResponseSize:BD3,kOnError:gD3,kResume:Ps,kHTTPContext:bsA}=yO(),Qm=vaA(),pD3=Buffer.alloc(0),U51=Buffer[Symbol.species],d51=S3.addListener,FD3=S3.removeAllListeners,E88;async function QD3(){let A=process.env.JEST_WORKER_ID?H88():void 0,q;try{q=await WebAssembly.compile(kaA())}catch(K){q=await WebAssembly.compile(A||H88())}return await WebAssembly.instantiate(q,{env:{wasm_on_url:(K,Y,z)=>{return 0},wasm_on_status:(K,Y,z)=>{gK(LD.ptr===K);let w=Y-dm+Um.byteOffset;return LD.onStatus(new U51(Um.buffer,w,z))||0},wasm_on_message_begin:(K)=>{return gK(LD.ptr===K),LD.onMessageBegin()||0},wasm_on_header_field:(K,Y,z)=>{gK(LD.ptr===K);let w=Y-dm+Um.byteOffset;return LD.onHeaderField(new U51(Um.buffer,w,z))||0},wasm_on_header_value:(K,Y,z)=>{gK(LD.ptr===K);let w=Y-dm+Um.byteOffset;return LD.onHeaderValue(new U51(Um.buffer,w,z))||0},wasm_on_headers_complete:(K,Y,z,w)=>{return gK(LD.ptr===K),LD.onHeadersComplete(Y,Boolean(z),Boolean(w))||0},wasm_on_body:(K,Y,z)=>{gK(LD.ptr===K);let w=Y-dm+Um.byteOffset;return LD.onBody(new U51(Um.buffer,w,z))||0},wasm_on_message_complete:(K)=>{return gK(LD.ptr===K),LD.onMessageComplete()||0}}})}var L88=null,S88=QD3();S88.catch();var LD=null,Um=null,c51=0,dm=null,UD3=0,dI6=1,zD6=2|dI6,i51=4|dI6,h88=8|UD3;class usA{constructor(A,q,{exports:K}){gK(Number.isFinite(A[k88])&&A[k88]>0),this.llhttp=K,this.ptr=this.llhttp.llhttp_alloc(Qm.TYPE.RESPONSE),this.client=A,this.socket=q,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=A[k88],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=A[BD3]}setTimeout(A,q){if(A!==this.timeoutValue||q&dI6^this.timeoutType&dI6){if(this.timeout)N88.clearTimeout(this.timeout),this.timeout=null;if(A)if(q&dI6)this.timeout=N88.setFastTimeout(SsA,A,new WeakRef(this));else this.timeout=setTimeout(SsA,A,new WeakRef(this)),this.timeout.unref();this.timeoutValue=A}else if(this.timeout){if(this.timeout.refresh)this.timeout.refresh()}this.timeoutType=q}resume(){if(this.socket.destroyed||!this.paused)return;if(gK(this.ptr!=null),gK(LD==null),this.llhttp.llhttp_resume(this.ptr),gK(this.timeoutType===i51),this.timeout){if(this.timeout.refresh)this.timeout.refresh()}this.paused=!1,this.execute(this.socket.read()||pD3),this.readMore()}readMore(){while(!this.paused&&this.ptr){let A=this.socket.read();if(A===null)break;this.execute(A)}}execute(A){gK(this.ptr!=null),gK(LD==null),gK(!this.paused);let{socket:q,llhttp:K}=this;if(A.length>c51){if(dm)K.free(dm);c51=Math.ceil(A.length/4096)*4096,dm=K.malloc(c51)}new Uint8Array(K.memory.buffer,dm,c51).set(A);try{let Y;try{Um=A,LD=this,Y=K.llhttp_execute(this.ptr,dm,A.length)}catch(w){throw w}finally{LD=null,Um=null}let z=K.llhttp_get_error_pos(this.ptr)-dm;if(Y===Qm.ERROR.PAUSED_UPGRADE)this.onUpgrade(A.slice(z));else if(Y===Qm.ERROR.PAUSED)this.paused=!0,q.unshift(A.slice(z));else if(Y!==Qm.ERROR.OK){let w=K.llhttp_get_error_reason(this.ptr),_="";if(w){let $=new Uint8Array(K.memory.buffer,w).indexOf(0);_="Response does not match the HTTP/1.1 protocol ("+Buffer.from(K.memory.buffer,w,$).toString()+")"}throw new LD3(_,Qm.ERROR[Y],A.slice(z))}}catch(Y){S3.destroy(q,Y)}}destroy(){gK(this.ptr!=null),gK(LD==null),this.llhttp.llhttp_free(this.ptr),this.ptr=null,this.timeout&&N88.clearTimeout(this.timeout),this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.paused=!1}onStatus(A){this.statusText=A.toString()}onMessageBegin(){let{socket:A,client:q}=this;if(A.destroyed)return-1;let K=q[rC][q[Iy]];if(!K)return-1;K.onResponseStarted()}onHeaderField(A){let q=this.headers.length;if((q&1)===0)this.headers.push(A);else this.headers[q-1]=Buffer.concat([this.headers[q-1],A]);this.trackHeader(A.length)}onHeaderValue(A){let q=this.headers.length;if((q&1)===1)this.headers.push(A),q+=1;else this.headers[q-1]=Buffer.concat([this.headers[q-1],A]);let K=this.headers[q-2];if(K.length===10){let Y=S3.bufferToLowerCasedHeaderName(K);if(Y==="keep-alive")this.keepAlive+=A.toString();else if(Y==="connection")this.connection+=A.toString()}else if(K.length===14&&S3.bufferToLowerCasedHeaderName(K)==="content-length")this.contentLength+=A.toString();this.trackHeader(A.length)}trackHeader(A){if(this.headersSize+=A,this.headersSize>=this.headersMaxSize)S3.destroy(this.socket,new kD3)}onUpgrade(A){let{upgrade:q,client:K,socket:Y,headers:z,statusCode:w}=this;gK(q),gK(K[YD6]===Y),gK(!Y.destroyed),gK(!this.paused),gK((z.length&1)===0);let _=K[rC][K[Iy]];gK(_),gK(_.upgrade||_.method==="CONNECT"),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,this.headers=[],this.headersSize=0,Y.unshift(A),Y[Wj].destroy(),Y[Wj]=null,Y[y88]=null,Y[xy]=null,FD3(Y),K[YD6]=null,K[bsA]=null,K[rC][K[Iy]++]=null,K.emit("disconnect",K[xsA],[K],new KD6("upgrade"));try{_.onUpgrade(w,z,Y)}catch($){S3.destroy(Y,$)}K[Ps]()}onHeadersComplete(A,q,K){let{client:Y,socket:z,headers:w,statusText:_}=this;if(z.destroyed)return-1;let $=Y[rC][Y[Iy]];if(!$)return-1;if(gK(!this.upgrade),gK(this.statusCode<200),A===100)return S3.destroy(z,new n51("bad response",S3.getSocketInfo(z))),-1;if(q&&!$.upgrade)return S3.destroy(z,new n51("bad upgrade",S3.getSocketInfo(z))),-1;if(gK(this.timeoutType===zD6),this.statusCode=A,this.shouldKeepAlive=K||$.method==="HEAD"&&!z[hv]&&this.connection.toLowerCase()==="keep-alive",this.statusCode>=200){let H=$.bodyTimeout!=null?$.bodyTimeout:Y[uD3];this.setTimeout(H,i51)}else if(this.timeout){if(this.timeout.refresh)this.timeout.refresh()}if($.method==="CONNECT")return gK(Y[JG]===1),this.upgrade=!0,2;if(q)return gK(Y[JG]===1),this.upgrade=!0,2;if(gK((this.headers.length&1)===0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&Y[l51]){let H=this.keepAlive?S3.parseKeepAliveTimeout(this.keepAlive):null;if(H!=null){let j=Math.min(H-Y[xD3],Y[ID3]);if(j<=0)z[hv]=!0;else Y[r51]=j}else Y[r51]=Y[SD3]}else z[hv]=!0;let O=$.onHeaders(A,w,this.resume,_)===!1;if($.aborted)return-1;if($.method==="HEAD")return 1;if(A<200)return 1;if(z[cI6])z[cI6]=!1,Y[Ps]();return O?Qm.ERROR.PAUSED:0}onBody(A){let{client:q,socket:K,statusCode:Y,maxResponseSize:z}=this;if(K.destroyed)return-1;let w=q[rC][q[Iy]];if(gK(w),gK(this.timeoutType===i51),this.timeout){if(this.timeout.refresh)this.timeout.refresh()}if(gK(Y>=200),z>-1&&this.bytesRead+A.length>z)return S3.destroy(K,new yD3),-1;if(this.bytesRead+=A.length,w.onData(A)===!1)return Qm.ERROR.PAUSED}onMessageComplete(){let{client:A,socket:q,statusCode:K,upgrade:Y,headers:z,contentLength:w,bytesRead:_,shouldKeepAlive:$}=this;if(q.destroyed&&(!K||$))return-1;if(Y)return;gK(K>=100),gK((this.headers.length&1)===0);let O=A[rC][A[Iy]];if(gK(O),this.statusCode=null,this.statusText="",this.bytesRead=0,this.contentLength="",this.keepAlive="",this.connection="",this.headers=[],this.headersSize=0,K<200)return;if(O.method!=="HEAD"&&w&&_!==parseInt(w,10))return S3.destroy(q,new VD3),-1;if(O.onComplete(z),A[rC][A[Iy]++]=null,q[Ws])return gK(A[JG]===0),S3.destroy(q,new KD6("reset")),Qm.ERROR.PAUSED;else if(!$)return S3.destroy(q,new KD6("reset")),Qm.ERROR.PAUSED;else if(q[hv]&&A[JG]===0)return S3.destroy(q,new KD6("reset")),Qm.ERROR.PAUSED;else if(A[l51]==null||A[l51]===1)setImmediate(()=>A[Ps]());else A[Ps]()}}function SsA(A){let{socket:q,timeoutType:K,client:Y,paused:z}=A.deref();if(K===zD6){if(!q[Ws]||q.writableNeedDrain||Y[JG]>1)gK(!z,"cannot be paused while waiting for headers"),S3.destroy(q,new ND3)}else if(K===i51){if(!z)S3.destroy(q,new ED3)}else if(K===h88)gK(Y[JG]===0&&Y[r51]),S3.destroy(q,new KD6("socket idle timeout"))}async function dD3(A,q){if(A[YD6]=q,!L88)L88=await S88,S88=null;q[UI6]=!1,q[Ws]=!1,q[hv]=!1,q[cI6]=!1,q[Wj]=new usA(A,q,L88),d51(q,"error",function(Y){gK(Y.code!=="ERR_TLS_CERT_ALTNAME_INVALID");let z=this[Wj];if(Y.code==="ECONNRESET"&&z.statusCode&&!z.shouldKeepAlive){z.onMessageComplete();return}this[xy]=Y,this[y88][gD3](Y)}),d51(q,"readable",function(){let Y=this[Wj];if(Y)Y.readMore()}),d51(q,"end",function(){let Y=this[Wj];if(Y.statusCode&&!Y.shouldKeepAlive){Y.onMessageComplete();return}S3.destroy(this,new n51("other side closed",S3.getSocketInfo(this)))}),d51(q,"close",function(){let Y=this[y88],z=this[Wj];if(z){if(!this[xy]&&z.statusCode&&!z.shouldKeepAlive)z.onMessageComplete();this[Wj].destroy(),this[Wj]=null}let w=this[xy]||new n51("closed",S3.getSocketInfo(this));if(Y[YD6]=null,Y[bsA]=null,Y.destroyed){gK(Y[RD3]===0);let _=Y[rC].splice(Y[Iy]);for(let $=0;$<_.length;$++){let O=_[$];S3.errorRequest(Y,O,w)}}else if(Y[JG]>0&&w.code!=="UND_ERR_INFO"){let _=Y[rC][Y[Iy]];Y[rC][Y[Iy]++]=null,S3.errorRequest(Y,_,w)}Y[CD3]=Y[Iy],gK(Y[JG]===0),Y.emit("disconnect",Y[xsA],[Y],w),Y[Ps]()});let K=!1;return q.on("close",()=>{K=!0}),{version:"h1",defaultPipelining:1,write(...Y){return iD3(A,...Y)},resume(){cD3(A)},destroy(Y,z){if(K)queueMicrotask(z);else q.destroy(Y).on("close",z)},get destroyed(){return q.destroyed},busy(Y){if(q[Ws]||q[hv]||q[cI6])return!0;if(Y){if(A[JG]>0&&!Y.idempotent)return!0;if(A[JG]>0&&(Y.upgrade||Y.method==="CONNECT"))return!0;if(A[JG]>0&&S3.bodyLength(Y.body)!==0&&(S3.isStream(Y.body)||S3.isAsyncIterable(Y.body)||S3.isFormDataLike(Y.body)))return!0}return!1}}}function cD3(A){let q=A[YD6];if(q&&!q.destroyed){if(A[ysA]===0){if(!q[UI6]&&q.unref)q.unref(),q[UI6]=!0}else if(q[UI6]&&q.ref)q.ref(),q[UI6]=!1;if(A[ysA]===0){if(q[Wj].timeoutType!==h88)q[Wj].setTimeout(A[r51],h88)}else if(A[JG]>0&&q[Wj].statusCode<200){if(q[Wj].timeoutType!==zD6){let K=A[rC][A[Iy]],Y=K.headersTimeout!=null?K.headersTimeout:A[bD3];q[Wj].setTimeout(Y,zD6)}}}}function lD3(A){return A!=="GET"&&A!=="HEAD"&&A!=="OPTIONS"&&A!=="TRACE"&&A!=="CONNECT"}function iD3(A,q){let{method:K,path:Y,host:z,upgrade:w,blocking:_,reset:$}=q,{body:O,headers:H,contentLength:j}=q,J=K==="PUT"||K==="POST"||K==="PATCH"||K==="QUERY"||K==="PROPFIND"||K==="PROPPATCH";if(S3.isFormDataLike(O)){if(!E88)E88=qD6().extractBody;let[W,G]=E88(O);if(q.contentType==null)H.push("content-type",G);O=W.stream,j=W.length}else if(S3.isBlobLike(O)&&q.contentType==null&&O.type)H.push("content-type",O.type);if(O&&typeof O.read==="function")O.read(0);let M=S3.bodyLength(O);if(j=M??j,j===null)j=q.contentLength;if(j===0&&!J)j=null;if(lD3(K)&&j>0&&q.contentLength!==null&&q.contentLength!==j){if(A[R88])return S3.errorRequest(A,q,new _K6),!1;process.emitWarning(new _K6)}let D=A[YD6],X=(W)=>{if(q.aborted||q.completed)return;S3.errorRequest(A,q,W||new IsA),S3.destroy(O),S3.destroy(D,new KD6("aborted"))};try{q.onConnect(X)}catch(W){S3.errorRequest(A,q,W)}if(q.aborted)return!1;if(K==="HEAD")D[hv]=!0;if(w||K==="CONNECT")D[hv]=!0;if($!=null)D[hv]=$;if(A[RsA]&&D[mD3]++>=A[RsA])D[hv]=!0;if(_)D[cI6]=!0;let P=`${K} ${Y} HTTP/1.1\r
`;if(typeof z==="string")P+=`host: ${z}\r
`;else P+=A[hD3];if(w)P+=`connection: upgrade\r
upgrade: ${w}\r
`;else if(A[l51]&&!D[hv])P+=`connection: keep-alive\r
`;else P+=`connection: close\r
`;if(Array.isArray(H))for(let W=0;W<H.length;W+=2){let G=H[W+0],Z=H[W+1];if(Array.isArray(Z))for(let f=0;f<Z.length;f++)P+=`${G}: ${Z[f]}\r
`;else P+=`${G}: ${Z}\r
`}if(LsA.sendHeaders.hasSubscribers)LsA.sendHeaders.publish({request:q,headers:P,socket:D});if(!O||M===0)hsA(X,null,A,q,D,j,P,J);else if(S3.isBuffer(O))hsA(X,O,A,q,D,j,P,J);else if(S3.isBlobLike(O))if(typeof O.stream==="function")CsA(X,O.stream(),A,q,D,j,P,J);else rD3(X,O,A,q,D,j,P,J);else if(S3.isStream(O))nD3(X,O,A,q,D,j,P,J);else if(S3.isIterable(O))CsA(X,O,A,q,D,j,P,J);else gK(!1);return!0}function nD3(A,q,K,Y,z,w,_,$){gK(w!==0||K[JG]===0,"stream body cannot be pipelined");let O=!1,H=new C88({abort:A,socket:z,request:Y,contentLength:w,client:K,expectsPayload:$,header:_}),j=function(X){if(O)return;try{if(!H.write(X)&&this.pause)this.pause()}catch(P){S3.destroy(this,P)}},J=function(){if(O)return;if(q.resume)q.resume()},M=function(){if(queueMicrotask(()=>{q.removeListener("error",D)}),!O){let X=new IsA;queueMicrotask(()=>D(X))}},D=function(X){if(O)return;if(O=!0,gK(z.destroyed||z[Ws]&&K[JG]<=1),z.off("drain",J).off("error",D),q.removeListener("data",j).removeListener("end",D).removeListener("close",M),!X)try{H.end()}catch(P){X=P}if(H.destroy(X),X&&(X.code!=="UND_ERR_INFO"||X.message!=="reset"))S3.destroy(q,X);else S3.destroy(q)};if(q.on("data",j).on("end",D).on("error",D).on("close",M),q.resume)q.resume();if(z.on("drain",J).on("error",D),q.errorEmitted??q.errored)setImmediate(()=>D(q.errored));else if(q.endEmitted??q.readableEnded)setImmediate(()=>D(null));if(q.closeEmitted??q.closed)setImmediate(M)}function hsA(A,q,K,Y,z,w,_,$){try{if(!q)if(w===0)z.write(`${_}content-length: 0\r
\r
`,"latin1");else gK(w===null,"no body must not have content length"),z.write(`${_}\r
`,"latin1");else if(S3.isBuffer(q)){if(gK(w===q.byteLength,"buffer body must have content length"),z.cork(),z.write(`${_}content-length: ${w}\r
\r
`,"latin1"),z.write(q),z.uncork(),Y.onBodySent(q),!$&&Y.reset!==!1)z[hv]=!0}Y.onRequestSent(),K[Ps]()}catch(O){A(O)}}async function rD3(A,q,K,Y,z,w,_,$){gK(w===q.size,"blob body must have content length");try{if(w!=null&&w!==q.size)throw new _K6;let O=Buffer.from(await q.arrayBuffer());if(z.cork(),z.write(`${_}content-length: ${w}\r
\r
`,"latin1"),z.write(O),z.uncork(),Y.onBodySent(O),Y.onRequestSent(),!$&&Y.reset!==!1)z[hv]=!0;K[Ps]()}catch(O){A(O)}}async function CsA(A,q,K,Y,z,w,_,$){gK(w!==0||K[JG]===0,"iterator body cannot be pipelined");let O=null;function H(){if(O){let M=O;O=null,M()}}let j=()=>new Promise((M,D)=>{if(gK(O===null),z[xy])D(z[xy]);else O=M});z.on("close",H).on("drain",H);let J=new C88({abort:A,socket:z,request:Y,contentLength:w,client:K,expectsPayload:$,header:_});try{for await(let M of q){if(z[xy])throw z[xy];if(!J.write(M))await j()}J.end()}catch(M){J.destroy(M)}finally{z.off("close",H).off("drain",H)}}class C88{constructor({abort:A,socket:q,request:K,contentLength:Y,client:z,expectsPayload:w,header:_}){this.socket=q,this.request=K,this.contentLength=Y,this.client=z,this.bytesWritten=0,this.expectsPayload=w,this.header=_,this.abort=A,q[Ws]=!0}write(A){let{socket:q,request:K,contentLength:Y,client:z,bytesWritten:w,expectsPayload:_,header:$}=this;if(q[xy])throw q[xy];if(q.destroyed)return!1;let O=Buffer.byteLength(A);if(!O)return!0;if(Y!==null&&w+O>Y){if(z[R88])throw new _K6;process.emitWarning(new _K6)}if(q.cork(),w===0){if(!_&&K.reset!==!1)q[hv]=!0;if(Y===null)q.write(`${$}transfer-encoding: chunked\r
`,"latin1");else q.write(`${$}content-length: ${Y}\r
\r
`,"latin1")}if(Y===null)q.write(`\r
${O.toString(16)}\r
`,"latin1");this.bytesWritten+=O;let H=q.write(A);if(q.uncork(),K.onBodySent(A),!H){if(q[Wj].timeout&&q[Wj].timeoutType===zD6){if(q[Wj].timeout.refresh)q[Wj].timeout.refresh()}}return H}end(){let{socket:A,contentLength:q,client:K,bytesWritten:Y,expectsPayload:z,header:w,request:_}=this;if(_.onRequestSent(),A[Ws]=!1,A[xy])throw A[xy];if(A.destroyed)return;if(Y===0)if(z)A.write(`${w}content-length: 0\r
\r
`,"latin1");else A.write(`${w}\r
`,"latin1");else if(q===null)A.write(`\r
0\r
\r
`,"latin1");if(q!==null&&Y!==q)if(K[R88])throw new _K6;else process.emitWarning(new _K6);if(A[Wj].timeout&&A[Wj].timeoutType===zD6){if(A[Wj].timeout.refresh)A[Wj].timeout.refresh()}K[Ps]()}destroy(A){let{socket:q,client:K,abort:Y}=this;if(q[Ws]=!1,A)gK(K[JG]<=1,"pipeline should only contain this request"),Y(A)}}msA.exports=dD3});var lsA=h((SK2,csA)=>{var by=u6("node:assert"),{pipeline:oD3}=u6("node:stream"),jY=E9(),{RequestContentLengthMismatchError:I88,RequestAbortedError:gsA,SocketError:lI6,InformationalError:x88}=Yw(),{kUrl:o51,kReset:s51,kClient:wD6,kRunning:t51,kPending:aD3,kQueue:Gs,kPendingIdx:b88,kRunningIdx:oC,kError:sC,kSocket:hX,kStrictContentLength:sD3,kOnError:u88,kMaxConcurrentStreams:dsA,kHTTP2Session:aC,kResume:Zs,kSize:tD3,kHTTPContext:eD3}=yO(),Hd=Symbol("open streams"),psA,FsA=!1,a51;try{a51=u6("node:http2")}catch{a51={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:AX3,HTTP2_HEADER_METHOD:qX3,HTTP2_HEADER_PATH:KX3,HTTP2_HEADER_SCHEME:YX3,HTTP2_HEADER_CONTENT_LENGTH:zX3,HTTP2_HEADER_EXPECT:wX3,HTTP2_HEADER_STATUS:_X3}}=a51;function $X3(A){let q=[];for(let[K,Y]of Object.entries(A))if(Array.isArray(Y))for(let z of Y)q.push(Buffer.from(K),Buffer.from(z));else q.push(Buffer.from(K),Buffer.from(Y));return q}async function OX3(A,q){if(A[hX]=q,!FsA)FsA=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"});let K=a51.connect(A[o51],{createConnection:()=>q,peerMaxConcurrentStreams:A[dsA]});K[Hd]=0,K[wD6]=A,K[hX]=q,jY.addListener(K,"error",jX3),jY.addListener(K,"frameError",JX3),jY.addListener(K,"end",MX3),jY.addListener(K,"goaway",DX3),jY.addListener(K,"close",function(){let{[wD6]:z}=this,{[hX]:w}=z,_=this[hX][sC]||this[sC]||new lI6("closed",jY.getSocketInfo(w));if(z[aC]=null,z.destroyed){by(z[aD3]===0);let $=z[Gs].splice(z[oC]);for(let O=0;O<$.length;O++){let H=$[O];jY.errorRequest(z,H,_)}}}),K.unref(),A[aC]=K,q[aC]=K,jY.addListener(q,"error",function(z){by(z.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[sC]=z,this[wD6][u88](z)}),jY.addListener(q,"end",function(){jY.destroy(this,new lI6("other side closed",jY.getSocketInfo(this)))}),jY.addListener(q,"close",function(){let z=this[sC]||new lI6("closed",jY.getSocketInfo(this));if(A[hX]=null,this[aC]!=null)this[aC].destroy(z);A[b88]=A[oC],by(A[t51]===0),A.emit("disconnect",A[o51],[A],z),A[Zs]()});let Y=!1;return q.on("close",()=>{Y=!0}),{version:"h2",defaultPipelining:1/0,write(...z){return PX3(A,...z)},resume(){HX3(A)},destroy(z,w){if(Y)queueMicrotask(w);else q.destroy(z).on("close",w)},get destroyed(){return q.destroyed},busy(){return!1}}}function HX3(A){let q=A[hX];if(q?.destroyed===!1)if(A[tD3]===0&&A[dsA]===0)q.unref(),A[aC].unref();else q.ref(),A[aC].ref()}function jX3(A){by(A.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[hX][sC]=A,this[wD6][u88](A)}function JX3(A,q,K){if(K===0){let Y=new x88(`HTTP/2: "frameError" received - type ${A}, code ${q}`);this[hX][sC]=Y,this[wD6][u88](Y)}}function MX3(){let A=new lI6("other side closed",jY.getSocketInfo(this[hX]));this.destroy(A),jY.destroy(this[hX],A)}function DX3(A){let q=this[sC]||new lI6(`HTTP/2: "GOAWAY" frame received with code ${A}`,jY.getSocketInfo(this)),K=this[wD6];if(K[hX]=null,K[eD3]=null,this[aC]!=null)this[aC].destroy(q),this[aC]=null;if(jY.destroy(this[hX],q),K[oC]<K[Gs].length){let Y=K[Gs][K[oC]];K[Gs][K[oC]++]=null,jY.errorRequest(K,Y,q),K[b88]=K[oC]}by(K[t51]===0),K.emit("disconnect",K[o51],[K],q),K[Zs]()}function XX3(A){return A!=="GET"&&A!=="HEAD"&&A!=="OPTIONS"&&A!=="TRACE"&&A!=="CONNECT"}function PX3(A,q){let K=A[aC],{method:Y,path:z,host:w,upgrade:_,expectContinue:$,signal:O,headers:H}=q,{body:j}=q;if(_)return jY.errorRequest(A,q,Error("Upgrade not supported for H2")),!1;let J={};for(let v=0;v<H.length;v+=2){let V=H[v+0],N=H[v+1];if(Array.isArray(N))for(let L=0;L<N.length;L++)if(J[V])J[V]+=`,${N[L]}`;else J[V]=N[L];else J[V]=N}let M,{hostname:D,port:X}=A[o51];J[AX3]=w||`${D}${X?`:${X}`:""}`,J[qX3]=Y;let P=(v)=>{if(q.aborted||q.completed)return;if(v=v||new gsA,jY.errorRequest(A,q,v),M!=null)jY.destroy(M,v);jY.destroy(j,v),A[Gs][A[oC]++]=null,A[Zs]()};try{q.onConnect(P)}catch(v){jY.errorRequest(A,q,v)}if(q.aborted)return!1;if(Y==="CONNECT"){if(K.ref(),M=K.request(J,{endStream:!1,signal:O}),M.id&&!M.pending)q.onUpgrade(null,null,M),++K[Hd],A[Gs][A[oC]++]=null;else M.once("ready",()=>{q.onUpgrade(null,null,M),++K[Hd],A[Gs][A[oC]++]=null});return M.once("close",()=>{if(K[Hd]-=1,K[Hd]===0)K.unref()}),!0}J[KX3]=z,J[YX3]="https";let W=Y==="PUT"||Y==="POST"||Y==="PATCH";if(j&&typeof j.read==="function")j.read(0);let G=jY.bodyLength(j);if(jY.isFormDataLike(j)){psA??=qD6().extractBody;let[v,V]=psA(j);J["content-type"]=V,j=v.stream,G=v.length}if(G==null)G=q.contentLength;if(G===0||!W)G=null;if(XX3(Y)&&G>0&&q.contentLength!=null&&q.contentLength!==G){if(A[sD3])return jY.errorRequest(A,q,new I88),!1;process.emitWarning(new I88)}if(G!=null)by(j,"no body must not have content length"),J[zX3]=`${G}`;K.ref();let Z=Y==="GET"||Y==="HEAD"||j===null;if($)J[wX3]="100-continue",M=K.request(J,{endStream:Z,signal:O}),M.once("continue",f);else M=K.request(J,{endStream:Z,signal:O}),f();return++K[Hd],M.once("response",(v)=>{let{[_X3]:V,...N}=v;if(q.onResponseStarted(),q.aborted){let L=new gsA;jY.errorRequest(A,q,L),jY.destroy(M,L);return}if(q.onHeaders(Number(V),$X3(N),M.resume.bind(M),"")===!1)M.pause();M.on("data",(L)=>{if(q.onData(L)===!1)M.pause()})}),M.once("end",()=>{if(M.state?.state==null||M.state.state<6)q.onComplete([]);if(K[Hd]===0)K.unref();P(new x88("HTTP/2: stream half-closed (remote)")),A[Gs][A[oC]++]=null,A[b88]=A[oC],A[Zs]()}),M.once("close",()=>{if(K[Hd]-=1,K[Hd]===0)K.unref()}),M.once("error",function(v){P(v)}),M.once("frameError",(v,V)=>{P(new x88(`HTTP/2: "frameError" received - type ${v}, code ${V}`))}),!0;function f(){if(!j||G===0)QsA(P,M,null,A,q,A[hX],G,W);else if(jY.isBuffer(j))QsA(P,M,j,A,q,A[hX],G,W);else if(jY.isBlobLike(j))if(typeof j.stream==="function")UsA(P,M,j.stream(),A,q,A[hX],G,W);else GX3(P,M,j,A,q,A[hX],G,W);else if(jY.isStream(j))WX3(P,A[hX],W,M,j,A,q,G);else if(jY.isIterable(j))UsA(P,M,j,A,q,A[hX],G,W);else by(!1)}}function QsA(A,q,K,Y,z,w,_,$){try{if(K!=null&&jY.isBuffer(K))by(_===K.byteLength,"buffer body must have content length"),q.cork(),q.write(K),q.uncork(),q.end(),z.onBodySent(K);if(!$)w[s51]=!0;z.onRequestSent(),Y[Zs]()}catch(O){A(O)}}function WX3(A,q,K,Y,z,w,_,$){by($!==0||w[t51]===0,"stream body cannot be pipelined");let O=oD3(z,Y,(j)=>{if(j)jY.destroy(O,j),A(j);else{if(jY.removeAllListeners(O),_.onRequestSent(),!K)q[s51]=!0;w[Zs]()}});jY.addListener(O,"data",H);function H(j){_.onBodySent(j)}}async function GX3(A,q,K,Y,z,w,_,$){by(_===K.size,"blob body must have content length");try{if(_!=null&&_!==K.size)throw new I88;let O=Buffer.from(await K.arrayBuffer());if(q.cork(),q.write(O),q.uncork(),q.end(),z.onBodySent(O),z.onRequestSent(),!$)w[s51]=!0;Y[Zs]()}catch(O){A(O)}}async function UsA(A,q,K,Y,z,w,_,$){by(_!==0||Y[t51]===0,"iterator body cannot be pipelined");let O=null;function H(){if(O){let J=O;O=null,J()}}let j=()=>new Promise((J,M)=>{if(by(O===null),w[sC])M(w[sC]);else O=J});q.on("close",H).on("drain",H);try{for await(let J of K){if(w[sC])throw w[sC];let M=q.write(J);if(z.onBodySent(J),!M)await j()}if(q.end(),z.onRequestSent(),!$)w[s51]=!0;Y[Zs]()}catch(J){A(J)}finally{q.off("close",H).off("drain",H)}}csA.exports=OX3});var e51=h((hK2,osA)=>{var cm=E9(),{kBodyUsed:iI6}=yO(),B88=u6("node:assert"),{InvalidArgumentError:ZX3}=Yw(),fX3=u6("node:events"),TX3=[300,301,302,303,307,308],isA=Symbol("body");class m88{constructor(A){this[isA]=A,this[iI6]=!1}async*[Symbol.asyncIterator](){B88(!this[iI6],"disturbed"),this[iI6]=!0,yield*this[isA]}}class rsA{constructor(A,q,K,Y){if(q!=null&&(!Number.isInteger(q)||q<0))throw new ZX3("maxRedirections must be a positive number");if(cm.validateHandler(Y,K.method,K.upgrade),this.dispatch=A,this.location=null,this.abort=null,this.opts={...K,maxRedirections:0},this.maxRedirections=q,this.handler=Y,this.history=[],this.redirectionLimitReached=!1,cm.isStream(this.opts.body)){if(cm.bodyLength(this.opts.body)===0)this.opts.body.on("data",function(){B88(!1)});if(typeof this.opts.body.readableDidRead!=="boolean")this.opts.body[iI6]=!1,fX3.prototype.on.call(this.opts.body,"data",function(){this[iI6]=!0})}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function")this.opts.body=new m88(this.opts.body);else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&cm.isIterable(this.opts.body))this.opts.body=new m88(this.opts.body)}onConnect(A){this.abort=A,this.handler.onConnect(A,{history:this.history})}onUpgrade(A,q,K){this.handler.onUpgrade(A,q,K)}onError(A){this.handler.onError(A)}onHeaders(A,q,K,Y){if(this.location=this.history.length>=this.maxRedirections||cm.isDisturbed(this.opts.body)?null:vX3(A,q),this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){if(this.request)this.request.abort(Error("max redirects"));this.redirectionLimitReached=!0,this.abort(Error("max redirects"));return}if(this.opts.origin)this.history.push(new URL(this.opts.path,this.opts.origin));if(!this.location)return this.handler.onHeaders(A,q,K,Y);let{origin:z,pathname:w,search:_}=cm.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),$=_?`${w}${_}`:w;if(this.opts.headers=VX3(this.opts.headers,A===303,this.opts.origin!==z),this.opts.path=$,this.opts.origin=z,this.opts.maxRedirections=0,this.opts.query=null,A===303&&this.opts.method!=="HEAD")this.opts.method="GET",this.opts.body=null}onData(A){if(this.location);else return this.handler.onData(A)}onComplete(A){if(this.location)this.location=null,this.abort=null,this.dispatch(this.opts,this);else this.handler.onComplete(A)}onBodySent(A){if(this.handler.onBodySent)this.handler.onBodySent(A)}}function vX3(A,q){if(TX3.indexOf(A)===-1)return null;for(let K=0;K<q.length;K+=2)if(q[K].length===8&&cm.headerNameToString(q[K])==="location")return q[K+1]}function nsA(A,q,K){if(A.length===4)return cm.headerNameToString(A)==="host";if(q&&cm.headerNameToString(A).startsWith("content-"))return!0;if(K&&(A.length===13||A.length===6||A.length===19)){let Y=cm.headerNameToString(A);return Y==="authorization"||Y==="cookie"||Y==="proxy-authorization"}return!1}function VX3(A,q,K){let Y=[];if(Array.isArray(A)){for(let z=0;z<A.length;z+=2)if(!nsA(A[z],q,K))Y.push(A[z],A[z+1])}else if(A&&typeof A==="object"){for(let z of Object.keys(A))if(!nsA(z,q,K))Y.push(z,A[z])}else B88(A==null,"headers must be an object or an array");return Y}osA.exports=rsA});var A91=h((CK2,asA)=>{var NX3=e51();function kX3({maxRedirections:A}){return(q)=>{return function(Y,z){let{maxRedirections:w=A}=Y;if(!w)return q(Y,z);let _=new NX3(q,w,Y,z);return Y={...Y,maxRedirections:0},q(Y,_)}}}asA.exports=kX3});var eI6=h((IK2,$tA)=>{var jd=u6("node:assert"),KtA=u6("node:net"),EX3=u6("node:http"),$K6=E9(),{channels:_D6}=UM6(),LX3=UoA(),yX3=iM6(),{InvalidArgumentError:ej,InformationalError:RX3,ClientDestroyedError:SX3}=Yw(),hX3=bI6(),{kUrl:lm,kServerName:Ts,kClient:CX3,kBusy:g88,kConnect:IX3,kResuming:OK6,kRunning:sI6,kPending:tI6,kSize:aI6,kQueue:tC,kConnected:xX3,kConnecting:$D6,kNeedDrain:Vs,kKeepAliveDefaultTimeout:ssA,kHostHeader:bX3,kPendingIdx:eC,kRunningIdx:Jd,kError:uX3,kPipelining:q91,kKeepAliveTimeoutValue:mX3,kMaxHeadersSize:BX3,kKeepAliveMaxTimeout:gX3,kKeepAliveTimeoutThreshold:pX3,kHeadersTimeout:FX3,kBodyTimeout:QX3,kStrictContentLength:UX3,kConnector:nI6,kMaxRedirections:dX3,kMaxRequests:p88,kCounter:cX3,kClose:lX3,kDestroy:iX3,kDispatch:nX3,kInterceptors:tsA,kLocalAddress:rI6,kMaxResponseSize:rX3,kOnError:oX3,kHTTPContext:AJ,kMaxConcurrentStreams:aX3,kResume:oI6}=yO(),sX3=BsA(),tX3=lsA(),esA=!1,vs=Symbol("kClosedResolve"),AtA=()=>{};function YtA(A){return A[q91]??A[AJ]?.defaultPipelining??1}class ztA extends yX3{constructor(A,{interceptors:q,maxHeaderSize:K,headersTimeout:Y,socketTimeout:z,requestTimeout:w,connectTimeout:_,bodyTimeout:$,idleTimeout:O,keepAlive:H,keepAliveTimeout:j,maxKeepAliveTimeout:J,keepAliveMaxTimeout:M,keepAliveTimeoutThreshold:D,socketPath:X,pipelining:P,tls:W,strictContentLength:G,maxCachedSessions:Z,maxRedirections:f,connect:v,maxRequestsPerClient:V,localAddress:N,maxResponseSize:L,autoSelectFamily:S,autoSelectFamilyAttemptTimeout:C,maxConcurrentStreams:m,allowH2:x}={}){super();if(H!==void 0)throw new ej("unsupported keepAlive, use pipelining=0 instead");if(z!==void 0)throw new ej("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(w!==void 0)throw new ej("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(O!==void 0)throw new ej("unsupported idleTimeout, use keepAliveTimeout instead");if(J!==void 0)throw new ej("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(K!=null&&!Number.isFinite(K))throw new ej("invalid maxHeaderSize");if(X!=null&&typeof X!=="string")throw new ej("invalid socketPath");if(_!=null&&(!Number.isFinite(_)||_<0))throw new ej("invalid connectTimeout");if(j!=null&&(!Number.isFinite(j)||j<=0))throw new ej("invalid keepAliveTimeout");if(M!=null&&(!Number.isFinite(M)||M<=0))throw new ej("invalid keepAliveMaxTimeout");if(D!=null&&!Number.isFinite(D))throw new ej("invalid keepAliveTimeoutThreshold");if(Y!=null&&(!Number.isInteger(Y)||Y<0))throw new ej("headersTimeout must be a positive integer or zero");if($!=null&&(!Number.isInteger($)||$<0))throw new ej("bodyTimeout must be a positive integer or zero");if(v!=null&&typeof v!=="function"&&typeof v!=="object")throw new ej("connect must be a function or an object");if(f!=null&&(!Number.isInteger(f)||f<0))throw new ej("maxRedirections must be a positive number");if(V!=null&&(!Number.isInteger(V)||V<0))throw new ej("maxRequestsPerClient must be a positive number");if(N!=null&&(typeof N!=="string"||KtA.isIP(N)===0))throw new ej("localAddress must be valid string IP address");if(L!=null&&(!Number.isInteger(L)||L<-1))throw new ej("maxResponseSize must be a positive number");if(C!=null&&(!Number.isInteger(C)||C<-1))throw new ej("autoSelectFamilyAttemptTimeout must be a positive number");if(x!=null&&typeof x!=="boolean")throw new ej("allowH2 must be a valid boolean value");if(m!=null&&(typeof m!=="number"||m<1))throw new ej("maxConcurrentStreams must be a positive integer, greater than 0");if(typeof v!=="function")v=hX3({...W,maxCachedSessions:Z,allowH2:x,socketPath:X,timeout:_,...S?{autoSelectFamily:S,autoSelectFamilyAttemptTimeout:C}:void 0,...v});if(q?.Client&&Array.isArray(q.Client)){if(this[tsA]=q.Client,!esA)esA=!0,process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"})}else this[tsA]=[eX3({maxRedirections:f})];this[lm]=$K6.parseOrigin(A),this[nI6]=v,this[q91]=P!=null?P:1,this[BX3]=K||EX3.maxHeaderSize,this[ssA]=j==null?4000:j,this[gX3]=M==null?600000:M,this[pX3]=D==null?2000:D,this[mX3]=this[ssA],this[Ts]=null,this[rI6]=N!=null?N:null,this[OK6]=0,this[Vs]=0,this[bX3]=`host: ${this[lm].hostname}${this[lm].port?`:${this[lm].port}`:""}\r
`,this[QX3]=$!=null?$:300000,this[FX3]=Y!=null?Y:300000,this[UX3]=G==null?!0:G,this[dX3]=f,this[p88]=V,this[vs]=null,this[rX3]=L>-1?L:-1,this[aX3]=m!=null?m:100,this[AJ]=null,this[tC]=[],this[Jd]=0,this[eC]=0,this[oI6]=(p)=>F88(this,p),this[oX3]=(p)=>wtA(this,p)}get pipelining(){return this[q91]}set pipelining(A){this[q91]=A,this[oI6](!0)}get[tI6](){return this[tC].length-this[eC]}get[sI6](){return this[eC]-this[Jd]}get[aI6](){return this[tC].length-this[Jd]}get[xX3](){return!!this[AJ]&&!this[$D6]&&!this[AJ].destroyed}get[g88](){return Boolean(this[AJ]?.busy(null)||this[aI6]>=(YtA(this)||1)||this[tI6]>0)}[IX3](A){_tA(this),this.once("connect",A)}[nX3](A,q){let K=A.origin||this[lm].origin,Y=new LX3(K,A,q);if(this[tC].push(Y),this[OK6]);else if($K6.bodyLength(Y.body)==null&&$K6.isIterable(Y.body))this[OK6]=1,queueMicrotask(()=>F88(this));else this[oI6](!0);if(this[OK6]&&this[Vs]!==2&&this[g88])this[Vs]=2;return this[Vs]<2}async[lX3](){return new Promise((A)=>{if(this[aI6])this[vs]=A;else A(null)})}async[iX3](A){return new Promise((q)=>{let K=this[tC].splice(this[eC]);for(let z=0;z<K.length;z++){let w=K[z];$K6.errorRequest(this,w,A)}let Y=()=>{if(this[vs])this[vs](),this[vs]=null;q(null)};if(this[AJ])this[AJ].destroy(A,Y),this[AJ]=null;else queueMicrotask(Y);this[oI6]()})}}var eX3=A91();function wtA(A,q){if(A[sI6]===0&&q.code!=="UND_ERR_INFO"&&q.code!=="UND_ERR_SOCKET"){jd(A[eC]===A[Jd]);let K=A[tC].splice(A[Jd]);for(let Y=0;Y<K.length;Y++){let z=K[Y];$K6.errorRequest(A,z,q)}jd(A[aI6]===0)}}async function _tA(A){jd(!A[$D6]),jd(!A[AJ]);let{host:q,hostname:K,protocol:Y,port:z}=A[lm];if(K[0]==="["){let w=K.indexOf("]");jd(w!==-1);let _=K.substring(1,w);jd(KtA.isIP(_)),K=_}if(A[$D6]=!0,_D6.beforeConnect.hasSubscribers)_D6.beforeConnect.publish({connectParams:{host:q,hostname:K,protocol:Y,port:z,version:A[AJ]?.version,servername:A[Ts],localAddress:A[rI6]},connector:A[nI6]});try{let w=await new Promise((_,$)=>{A[nI6]({host:q,hostname:K,protocol:Y,port:z,servername:A[Ts],localAddress:A[rI6]},(O,H)=>{if(O)$(O);else _(H)})});if(A.destroyed){$K6.destroy(w.on("error",AtA),new SX3);return}jd(w);try{A[AJ]=w.alpnProtocol==="h2"?await tX3(A,w):await sX3(A,w)}catch(_){throw w.destroy().on("error",AtA),_}if(A[$D6]=!1,w[cX3]=0,w[p88]=A[p88],w[CX3]=A,w[uX3]=null,_D6.connected.hasSubscribers)_D6.connected.publish({connectParams:{host:q,hostname:K,protocol:Y,port:z,version:A[AJ]?.version,servername:A[Ts],localAddress:A[rI6]},connector:A[nI6],socket:w});A.emit("connect",A[lm],[A])}catch(w){if(A.destroyed)return;if(A[$D6]=!1,_D6.connectError.hasSubscribers)_D6.connectError.publish({connectParams:{host:q,hostname:K,protocol:Y,port:z,version:A[AJ]?.version,servername:A[Ts],localAddress:A[rI6]},connector:A[nI6],error:w});if(w.code==="ERR_TLS_CERT_ALTNAME_INVALID"){jd(A[sI6]===0);while(A[tI6]>0&&A[tC][A[eC]].servername===A[Ts]){let _=A[tC][A[eC]++];$K6.errorRequest(A,_,w)}}else wtA(A,w);A.emit("connectionError",A[lm],[A],w)}A[oI6]()}function qtA(A){A[Vs]=0,A.emit("drain",A[lm],[A])}function F88(A,q){if(A[OK6]===2)return;if(A[OK6]=2,AP3(A,q),A[OK6]=0,A[Jd]>256)A[tC].splice(0,A[Jd]),A[eC]-=A[Jd],A[Jd]=0}function AP3(A,q){while(!0){if(A.destroyed){jd(A[tI6]===0);return}if(A[vs]&&!A[aI6]){A[vs](),A[vs]=null;return}if(A[AJ])A[AJ].resume();if(A[g88])A[Vs]=2;else if(A[Vs]===2){if(q)A[Vs]=1,queueMicrotask(()=>qtA(A));else qtA(A);continue}if(A[tI6]===0)return;if(A[sI6]>=(YtA(A)||1))return;let K=A[tC][A[eC]];if(A[lm].protocol==="https:"&&A[Ts]!==K.servername){if(A[sI6]>0)return;A[Ts]=K.servername,A[AJ]?.destroy(new RX3("servername changed"),()=>{A[AJ]=null,F88(A)})}if(A[$D6])return;if(!A[AJ]){_tA(A);return}if(A[AJ].destroyed)return;if(A[AJ].busy(K))return;if(!K.aborted&&A[AJ].write(K))A[eC]++;else A[tC].splice(A[eC],1)}}$tA.exports=ztA});var U88=h((xK2,OtA)=>{class Q88{constructor(){this.bottom=0,this.top=0,this.list=Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(A){this.list[this.top]=A,this.top=this.top+1&2047}shift(){let A=this.list[this.bottom];if(A===void 0)return null;return this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,A}}OtA.exports=class{constructor(){this.head=this.tail=new Q88}isEmpty(){return this.head.isEmpty()}push(q){if(this.head.isFull())this.head=this.head.next=new Q88;this.head.push(q)}shift(){let q=this.tail,K=q.shift();if(q.isEmpty()&&q.next!==null)this.tail=q.next;return K}}});var JtA=h((bK2,jtA)=>{var{kFree:qP3,kConnected:KP3,kPending:YP3,kQueued:zP3,kRunning:wP3,kSize:_P3}=yO(),HK6=Symbol("pool");class HtA{constructor(A){this[HK6]=A}get connected(){return this[HK6][KP3]}get free(){return this[HK6][qP3]}get pending(){return this[HK6][YP3]}get queued(){return this[HK6][zP3]}get running(){return this[HK6][wP3]}get size(){return this[HK6][_P3]}}jtA.exports=HtA});var n88=h((uK2,VtA)=>{var $P3=iM6(),OP3=U88(),{kConnected:d88,kSize:MtA,kRunning:DtA,kPending:XtA,kQueued:Ax6,kBusy:HP3,kFree:jP3,kUrl:JP3,kClose:MP3,kDestroy:DP3,kDispatch:XP3}=yO(),PP3=JtA(),Cv=Symbol("clients"),Jf=Symbol("needDrain"),qx6=Symbol("queue"),c88=Symbol("closed resolve"),l88=Symbol("onDrain"),PtA=Symbol("onConnect"),WtA=Symbol("onDisconnect"),GtA=Symbol("onConnectionError"),i88=Symbol("get dispatcher"),ftA=Symbol("add client"),TtA=Symbol("remove client"),ZtA=Symbol("stats");class vtA extends $P3{constructor(){super();this[qx6]=new OP3,this[Cv]=[],this[Ax6]=0;let A=this;this[l88]=function(K,Y){let z=A[qx6],w=!1;while(!w){let _=z.shift();if(!_)break;A[Ax6]--,w=!this.dispatch(_.opts,_.handler)}if(this[Jf]=w,!this[Jf]&&A[Jf])A[Jf]=!1,A.emit("drain",K,[A,...Y]);if(A[c88]&&z.isEmpty())Promise.all(A[Cv].map((_)=>_.close())).then(A[c88])},this[PtA]=(q,K)=>{A.emit("connect",q,[A,...K])},this[WtA]=(q,K,Y)=>{A.emit("disconnect",q,[A,...K],Y)},this[GtA]=(q,K,Y)=>{A.emit("connectionError",q,[A,...K],Y)},this[ZtA]=new PP3(this)}get[HP3](){return this[Jf]}get[d88](){return this[Cv].filter((A)=>A[d88]).length}get[jP3](){return this[Cv].filter((A)=>A[d88]&&!A[Jf]).length}get[XtA](){let A=this[Ax6];for(let{[XtA]:q}of this[Cv])A+=q;return A}get[DtA](){let A=0;for(let{[DtA]:q}of this[Cv])A+=q;return A}get[MtA](){let A=this[Ax6];for(let{[MtA]:q}of this[Cv])A+=q;return A}get stats(){return this[ZtA]}async[MP3](){if(this[qx6].isEmpty())await Promise.all(this[Cv].map((A)=>A.close()));else await new Promise((A)=>{this[c88]=A})}async[DP3](A){while(!0){let q=this[qx6].shift();if(!q)break;q.handler.onError(A)}await Promise.all(this[Cv].map((q)=>q.destroy(A)))}[XP3](A,q){let K=this[i88]();if(!K)this[Jf]=!0,this[qx6].push({opts:A,handler:q}),this[Ax6]++;else if(!K.dispatch(A,q))K[Jf]=!0,this[Jf]=!this[i88]();return!this[Jf]}[ftA](A){if(A.on("drain",this[l88]).on("connect",this[PtA]).on("disconnect",this[WtA]).on("connectionError",this[GtA]),this[Cv].push(A),this[Jf])queueMicrotask(()=>{if(this[Jf])this[l88](A[JP3],[this,A])});return this}[TtA](A){A.close(()=>{let q=this[Cv].indexOf(A);if(q!==-1)this[Cv].splice(q,1)}),this[Jf]=this[Cv].some((q)=>!q[Jf]&&q.closed!==!0&&q.destroyed!==!0)}}VtA.exports={PoolBase:vtA,kClients:Cv,kNeedDrain:Jf,kAddClient:ftA,kRemoveClient:TtA,kGetDispatcher:i88}});var OD6=h((mK2,RtA)=>{var{PoolBase:WP3,kClients:NtA,kNeedDrain:GP3,kAddClient:ZP3,kGetDispatcher:fP3}=n88(),TP3=eI6(),{InvalidArgumentError:r88}=Yw(),ktA=E9(),{kUrl:EtA,kInterceptors:vP3}=yO(),VP3=bI6(),o88=Symbol("options"),a88=Symbol("connections"),LtA=Symbol("factory");function NP3(A,q){return new TP3(A,q)}class ytA extends WP3{constructor(A,{connections:q,factory:K=NP3,connect:Y,connectTimeout:z,tls:w,maxCachedSessions:_,socketPath:$,autoSelectFamily:O,autoSelectFamilyAttemptTimeout:H,allowH2:j,...J}={}){super();if(q!=null&&(!Number.isFinite(q)||q<0))throw new r88("invalid connections");if(typeof K!=="function")throw new r88("factory must be a function.");if(Y!=null&&typeof Y!=="function"&&typeof Y!=="object")throw new r88("connect must be a function or an object");if(typeof Y!=="function")Y=VP3({...w,maxCachedSessions:_,allowH2:j,socketPath:$,timeout:z,...O?{autoSelectFamily:O,autoSelectFamilyAttemptTimeout:H}:void 0,...Y});this[vP3]=J.interceptors?.Pool&&Array.isArray(J.interceptors.Pool)?J.interceptors.Pool:[],this[a88]=q||null,this[EtA]=ktA.parseOrigin(A),this[o88]={...ktA.deepClone(J),connect:Y,allowH2:j},this[o88].interceptors=J.interceptors?{...J.interceptors}:void 0,this[LtA]=K}[fP3](){for(let A of this[NtA])if(!A[GP3])return A;if(!this[a88]||this[NtA].length<this[a88]){let A=this[LtA](this[EtA],this[o88]);return this[ZP3](A),A}}}RtA.exports=ytA});var btA=h((BK2,xtA)=>{var{BalancedPoolMissingUpstreamError:kP3,InvalidArgumentError:EP3}=Yw(),{PoolBase:LP3,kClients:MG,kNeedDrain:Kx6,kAddClient:yP3,kRemoveClient:RP3,kGetDispatcher:SP3}=n88(),hP3=OD6(),{kUrl:s88,kInterceptors:CP3}=yO(),{parseOrigin:StA}=E9(),htA=Symbol("factory"),K91=Symbol("options"),CtA=Symbol("kGreatestCommonDivisor"),jK6=Symbol("kCurrentWeight"),JK6=Symbol("kIndex"),uy=Symbol("kWeight"),Y91=Symbol("kMaxWeightPerServer"),z91=Symbol("kErrorPenalty");function IP3(A,q){if(A===0)return q;while(q!==0){let K=q;q=A%q,A=K}return A}function xP3(A,q){return new hP3(A,q)}class ItA extends LP3{constructor(A=[],{factory:q=xP3,...K}={}){super();if(this[K91]=K,this[JK6]=-1,this[jK6]=0,this[Y91]=this[K91].maxWeightPerServer||100,this[z91]=this[K91].errorPenalty||15,!Array.isArray(A))A=[A];if(typeof q!=="function")throw new EP3("factory must be a function.");this[CP3]=K.interceptors?.BalancedPool&&Array.isArray(K.interceptors.BalancedPool)?K.interceptors.BalancedPool:[],this[htA]=q;for(let Y of A)this.addUpstream(Y);this._updateBalancedPoolStats()}addUpstream(A){let q=StA(A).origin;if(this[MG].find((Y)=>Y[s88].origin===q&&Y.closed!==!0&&Y.destroyed!==!0))return this;let K=this[htA](q,Object.assign({},this[K91]));this[yP3](K),K.on("connect",()=>{K[uy]=Math.min(this[Y91],K[uy]+this[z91])}),K.on("connectionError",()=>{K[uy]=Math.max(1,K[uy]-this[z91]),this._updateBalancedPoolStats()}),K.on("disconnect",(...Y)=>{let z=Y[2];if(z&&z.code==="UND_ERR_SOCKET")K[uy]=Math.max(1,K[uy]-this[z91]),this._updateBalancedPoolStats()});for(let Y of this[MG])Y[uy]=this[Y91];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let A=0;for(let q=0;q<this[MG].length;q++)A=IP3(this[MG][q][uy],A);this[CtA]=A}removeUpstream(A){let q=StA(A).origin,K=this[MG].find((Y)=>Y[s88].origin===q&&Y.closed!==!0&&Y.destroyed!==!0);if(K)this[RP3](K);return this}get upstreams(){return this[MG].filter((A)=>A.closed!==!0&&A.destroyed!==!0).map((A)=>A[s88].origin)}[SP3](){if(this[MG].length===0)throw new kP3;if(!this[MG].find((z)=>!z[Kx6]&&z.closed!==!0&&z.destroyed!==!0))return;if(this[MG].map((z)=>z[Kx6]).reduce((z,w)=>z&&w,!0))return;let K=0,Y=this[MG].findIndex((z)=>!z[Kx6]);while(K++<this[MG].length){this[JK6]=(this[JK6]+1)%this[MG].length;let z=this[MG][this[JK6]];if(z[uy]>this[MG][Y][uy]&&!z[Kx6])Y=this[JK6];if(this[JK6]===0){if(this[jK6]=this[jK6]-this[CtA],this[jK6]<=0)this[jK6]=this[Y91]}if(z[uy]>=this[jK6]&&!z[Kx6])return z}return this[jK6]=this[MG][Y][uy],this[JK6]=Y,this[MG][Y]}}xtA.exports=ItA});var HD6=h((gK2,UtA)=>{var{InvalidArgumentError:w91}=Yw(),{kClients:Ns,kRunning:utA,kClose:bP3,kDestroy:uP3,kDispatch:mP3,kInterceptors:BP3}=yO(),gP3=iM6(),pP3=OD6(),FP3=eI6(),QP3=E9(),UP3=A91(),mtA=Symbol("onConnect"),BtA=Symbol("onDisconnect"),gtA=Symbol("onConnectionError"),dP3=Symbol("maxRedirections"),ptA=Symbol("onDrain"),FtA=Symbol("factory"),t88=Symbol("options");function cP3(A,q){return q&&q.connections===1?new FP3(A,q):new pP3(A,q)}class QtA extends gP3{constructor({factory:A=cP3,maxRedirections:q=0,connect:K,...Y}={}){super();if(typeof A!=="function")throw new w91("factory must be a function.");if(K!=null&&typeof K!=="function"&&typeof K!=="object")throw new w91("connect must be a function or an object");if(!Number.isInteger(q)||q<0)throw new w91("maxRedirections must be a positive number");if(K&&typeof K!=="function")K={...K};this[BP3]=Y.interceptors?.Agent&&Array.isArray(Y.interceptors.Agent)?Y.interceptors.Agent:[UP3({maxRedirections:q})],this[t88]={...QP3.deepClone(Y),connect:K},this[t88].interceptors=Y.interceptors?{...Y.interceptors}:void 0,this[dP3]=q,this[FtA]=A,this[Ns]=new Map,this[ptA]=(z,w)=>{this.emit("drain",z,[this,...w])},this[mtA]=(z,w)=>{this.emit("connect",z,[this,...w])},this[BtA]=(z,w,_)=>{this.emit("disconnect",z,[this,...w],_)},this[gtA]=(z,w,_)=>{this.emit("connectionError",z,[this,...w],_)}}get[utA](){let A=0;for(let q of this[Ns].values())A+=q[utA];return A}[mP3](A,q){let K;if(A.origin&&(typeof A.origin==="string"||A.origin instanceof URL))K=String(A.origin);else throw new w91("opts.origin must be a non-empty string or URL.");let Y=this[Ns].get(K);if(!Y)Y=this[FtA](A.origin,this[t88]).on("drain",this[ptA]).on("connect",this[mtA]).on("disconnect",this[BtA]).on("connectionError",this[gtA]),this[Ns].set(K,Y);return Y.dispatch(A,q)}async[bP3](){let A=[];for(let q of this[Ns].values())A.push(q.close());this[Ns].clear(),await Promise.all(A)}async[uP3](A){let q=[];for(let K of this[Ns].values())q.push(K.destroy(A));this[Ns].clear(),await Promise.all(q)}}UtA.exports=QtA});var AA8=h((pK2,ntA)=>{var{kProxy:lP3,kClose:iP3,kDestroy:nP3,kInterceptors:rP3}=yO(),{URL:Yx6}=u6("node:url"),oP3=HD6(),aP3=OD6(),sP3=iM6(),{InvalidArgumentError:O91,RequestAbortedError:tP3,SecureProxyConnectionError:eP3}=Yw(),dtA=bI6(),_91=Symbol("proxy agent"),$91=Symbol("proxy client"),zx6=Symbol("proxy headers"),e88=Symbol("request tls settings"),ctA=Symbol("proxy tls settings"),ltA=Symbol("connect endpoint function");function A03(A){return A==="https:"?443:80}function q03(A,q){return new aP3(A,q)}var K03=()=>{};class itA extends sP3{constructor(A){super();if(!A||typeof A==="object"&&!(A instanceof Yx6)&&!A.uri)throw new O91("Proxy uri is mandatory");let{clientFactory:q=q03}=A;if(typeof q!=="function")throw new O91("Proxy opts.clientFactory must be a function.");let K=this.#A(A),{href:Y,origin:z,port:w,protocol:_,username:$,password:O,hostname:H}=K;if(this[lP3]={uri:Y,protocol:_},this[rP3]=A.interceptors?.ProxyAgent&&Array.isArray(A.interceptors.ProxyAgent)?A.interceptors.ProxyAgent:[],this[e88]=A.requestTls,this[ctA]=A.proxyTls,this[zx6]=A.headers||{},A.auth&&A.token)throw new O91("opts.auth cannot be used in combination with opts.token");else if(A.auth)this[zx6]["proxy-authorization"]=`Basic ${A.auth}`;else if(A.token)this[zx6]["proxy-authorization"]=A.token;else if($&&O)this[zx6]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent($)}:${decodeURIComponent(O)}`).toString("base64")}`;let j=dtA({...A.proxyTls});this[ltA]=dtA({...A.requestTls}),this[$91]=q(K,{connect:j}),this[_91]=new oP3({...A,connect:async(J,M)=>{let D=J.host;if(!J.port)D+=`:${A03(J.protocol)}`;try{let{socket:X,statusCode:P}=await this[$91].connect({origin:z,port:w,path:D,signal:J.signal,headers:{...this[zx6],host:J.host},servername:this[ctA]?.servername||H});if(P!==200)X.on("error",K03).destroy(),M(new tP3(`Proxy response (${P}) !== 200 when HTTP Tunneling`));if(J.protocol!=="https:"){M(null,X);return}let W;if(this[e88])W=this[e88].servername;else W=J.servername;this[ltA]({...J,servername:W,httpSocket:X},M)}catch(X){if(X.code==="ERR_TLS_CERT_ALTNAME_INVALID")M(new eP3(X));else M(X)}}})}dispatch(A,q){let K=Y03(A.headers);if(z03(K),K&&!("host"in K)&&!("Host"in K)){let{host:Y}=new Yx6(A.origin);K.host=Y}return this[_91].dispatch({...A,headers:K},q)}#A(A){if(typeof A==="string")return new Yx6(A);else if(A instanceof Yx6)return A;else return new Yx6(A.uri)}async[iP3](){await this[_91].close(),await this[$91].close()}async[nP3](){await this[_91].destroy(),await this[$91].destroy()}}function Y03(A){if(Array.isArray(A)){let q={};for(let K=0;K<A.length;K+=2)q[A[K]]=A[K+1];return q}return A}function z03(A){if(A&&Object.keys(A).find((K)=>K.toLowerCase()==="proxy-authorization"))throw new O91("Proxy-Authorization should be sent in ProxyAgent constructor")}ntA.exports=itA});var AeA=h((FK2,etA)=>{var w03=iM6(),{kClose:_03,kDestroy:$03,kClosed:rtA,kDestroyed:otA,kDispatch:O03,kNoProxyAgent:wx6,kHttpProxyAgent:ks,kHttpsProxyAgent:MK6}=yO(),atA=AA8(),H03=HD6(),j03={"http:":80,"https:":443},stA=!1;class ttA extends w03{#A=null;#q=null;#K=null;constructor(A={}){super();if(this.#K=A,!stA)stA=!0,process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"});let{httpProxy:q,httpsProxy:K,noProxy:Y,...z}=A;this[wx6]=new H03(z);let w=q??process.env.http_proxy??process.env.HTTP_PROXY;if(w)this[ks]=new atA({...z,uri:w});else this[ks]=this[wx6];let _=K??process.env.https_proxy??process.env.HTTPS_PROXY;if(_)this[MK6]=new atA({...z,uri:_});else this[MK6]=this[ks];this.#_()}[O03](A,q){let K=new URL(A.origin);return this.#z(K).dispatch(A,q)}async[_03](){if(await this[wx6].close(),!this[ks][rtA])await this[ks].close();if(!this[MK6][rtA])await this[MK6].close()}async[$03](A){if(await this[wx6].destroy(A),!this[ks][otA])await this[ks].destroy(A);if(!this[MK6][otA])await this[MK6].destroy(A)}#z(A){let{protocol:q,host:K,port:Y}=A;if(K=K.replace(/:\d*$/,"").toLowerCase(),Y=Number.parseInt(Y,10)||j03[q]||0,!this.#Y(K,Y))return this[wx6];if(q==="https:")return this[MK6];return this[ks]}#Y(A,q){if(this.#w)this.#_();if(this.#q.length===0)return!0;if(this.#A==="*")return!1;for(let K=0;K<this.#q.length;K++){let Y=this.#q[K];if(Y.port&&Y.port!==q)continue;if(!/^[.*]/.test(Y.hostname)){if(A===Y.hostname)return!1}else if(A.endsWith(Y.hostname.replace(/^\*/,"")))return!1}return!0}#_(){let A=this.#K.noProxy??this.#O,q=A.split(/[,\s]/),K=[];for(let Y=0;Y<q.length;Y++){let z=q[Y];if(!z)continue;let w=z.match(/^(.+):(\d+)$/);K.push({hostname:(w?w[1]:z).toLowerCase(),port:w?Number.parseInt(w[2],10):0})}this.#A=A,this.#q=K}get#w(){if(this.#K.noProxy!==void 0)return!1;return this.#A!==this.#O}get#O(){return process.env.no_proxy??process.env.NO_PROXY??""}}etA.exports=ttA});var H91=h((QK2,zeA)=>{var jD6=u6("node:assert"),{kRetryHandlerDefaultRetry:qeA}=yO(),{RequestRetryError:_x6}=Yw(),{isDisturbed:KeA,parseHeaders:J03,parseRangeHeader:YeA,wrapRequestBody:M03}=E9();function D03(A){let q=Date.now();return new Date(A).getTime()-q}class qA8{constructor(A,q){let{retryOptions:K,...Y}=A,{retry:z,maxRetries:w,maxTimeout:_,minTimeout:$,timeoutFactor:O,methods:H,errorCodes:j,retryAfter:J,statusCodes:M}=K??{};this.dispatch=q.dispatch,this.handler=q.handler,this.opts={...Y,body:M03(A.body)},this.abort=null,this.aborted=!1,this.retryOpts={retry:z??qA8[qeA],retryAfter:J??!0,maxTimeout:_??30000,minTimeout:$??500,timeoutFactor:O??2,maxRetries:w??5,methods:H??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:M??[500,502,503,504,429],errorCodes:j??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE","UND_ERR_SOCKET"]},this.retryCount=0,this.retryCountCheckpoint=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect((D)=>{if(this.aborted=!0,this.abort)this.abort(D);else this.reason=D})}onRequestSent(){if(this.handler.onRequestSent)this.handler.onRequestSent()}onUpgrade(A,q,K){if(this.handler.onUpgrade)this.handler.onUpgrade(A,q,K)}onConnect(A){if(this.aborted)A(this.reason);else this.abort=A}onBodySent(A){if(this.handler.onBodySent)return this.handler.onBodySent(A)}static[qeA](A,{state:q,opts:K},Y){let{statusCode:z,code:w,headers:_}=A,{method:$,retryOptions:O}=K,{maxRetries:H,minTimeout:j,maxTimeout:J,timeoutFactor:M,statusCodes:D,errorCodes:X,methods:P}=O,{counter:W}=q;if(w&&w!=="UND_ERR_REQ_RETRY"&&!X.includes(w)){Y(A);return}if(Array.isArray(P)&&!P.includes($)){Y(A);return}if(z!=null&&Array.isArray(D)&&!D.includes(z)){Y(A);return}if(W>H){Y(A);return}let G=_?.["retry-after"];if(G)G=Number(G),G=Number.isNaN(G)?D03(G):G*1000;let Z=G>0?Math.min(G,J):Math.min(j*M**(W-1),J);setTimeout(()=>Y(null),Z)}onHeaders(A,q,K,Y){let z=J03(q);if(this.retryCount+=1,A>=300)if(this.retryOpts.statusCodes.includes(A)===!1)return this.handler.onHeaders(A,q,K,Y);else return this.abort(new _x6("Request failed",A,{headers:z,data:{count:this.retryCount}})),!1;if(this.resume!=null){if(this.resume=null,A!==206&&(this.start>0||A!==200))return this.abort(new _x6("server does not support the range header and the payload was partially consumed",A,{headers:z,data:{count:this.retryCount}})),!1;let _=YeA(z["content-range"]);if(!_)return this.abort(new _x6("Content-Range mismatch",A,{headers:z,data:{count:this.retryCount}})),!1;if(this.etag!=null&&this.etag!==z.etag)return this.abort(new _x6("ETag mismatch",A,{headers:z,data:{count:this.retryCount}})),!1;let{start:$,size:O,end:H=O-1}=_;return jD6(this.start===$,"content-range mismatch"),jD6(this.end==null||this.end===H,"content-range mismatch"),this.resume=K,!0}if(this.end==null){if(A===206){let _=YeA(z["content-range"]);if(_==null)return this.handler.onHeaders(A,q,K,Y);let{start:$,size:O,end:H=O-1}=_;jD6($!=null&&Number.isFinite($),"content-range mismatch"),jD6(H!=null&&Number.isFinite(H),"invalid content-length"),this.start=$,this.end=H}if(this.end==null){let _=z["content-length"];this.end=_!=null?Number(_)-1:null}if(jD6(Number.isFinite(this.start)),jD6(this.end==null||Number.isFinite(this.end),"invalid content-length"),this.resume=K,this.etag=z.etag!=null?z.etag:null,this.etag!=null&&this.etag.startsWith("W/"))this.etag=null;return this.handler.onHeaders(A,q,K,Y)}let w=new _x6("Request failed",A,{headers:z,data:{count:this.retryCount}});return this.abort(w),!1}onData(A){return this.start+=A.length,this.handler.onData(A)}onComplete(A){return this.retryCount=0,this.handler.onComplete(A)}onError(A){if(this.aborted||KeA(this.opts.body))return this.handler.onError(A);if(this.retryCount-this.retryCountCheckpoint>0)this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint);else this.retryCount+=1;this.retryOpts.retry(A,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},q.bind(this));function q(K){if(K!=null||this.aborted||KeA(this.opts.body))return this.handler.onError(K);if(this.start!==0){let Y={range:`bytes=${this.start}-${this.end??""}`};if(this.etag!=null)Y["if-match"]=this.etag;this.opts={...this.opts,headers:{...this.opts.headers,...Y}}}try{this.retryCountCheckpoint=this.retryCount,this.dispatch(this.opts,this)}catch(Y){this.handler.onError(Y)}}}}zeA.exports=qA8});var $eA=h((UK2,_eA)=>{var X03=II6(),P03=H91();class weA extends X03{#A=null;#q=null;constructor(A,q={}){super(q);this.#A=A,this.#q=q}dispatch(A,q){let K=new P03({...A,retryOptions:this.#q},{dispatch:this.#A.dispatch.bind(this.#A),handler:q});return this.#A.dispatch(A,K)}close(){return this.#A.close()}destroy(){return this.#A.destroy()}}_eA.exports=weA});var _A8=h((dK2,GeA)=>{var MeA=u6("node:assert"),{Readable:W03}=u6("node:stream"),{RequestAbortedError:DeA,NotSupportedError:G03,InvalidArgumentError:Z03,AbortError:KA8}=Yw(),XeA=E9(),{ReadableStreamFrom:f03}=E9(),Tk=Symbol("kConsume"),$x6=Symbol("kReading"),Es=Symbol("kBody"),OeA=Symbol("kAbort"),PeA=Symbol("kContentType"),HeA=Symbol("kContentLength"),T03=()=>{};class WeA extends W03{constructor({resume:A,abort:q,contentType:K="",contentLength:Y,highWaterMark:z=65536}){super({autoDestroy:!0,read:A,highWaterMark:z});this._readableState.dataEmitted=!1,this[OeA]=q,this[Tk]=null,this[Es]=null,this[PeA]=K,this[HeA]=Y,this[$x6]=!1}destroy(A){if(!A&&!this._readableState.endEmitted)A=new DeA;if(A)this[OeA]();return super.destroy(A)}_destroy(A,q){if(!this[$x6])setImmediate(()=>{q(A)});else q(A)}on(A,...q){if(A==="data"||A==="readable")this[$x6]=!0;return super.on(A,...q)}addListener(A,...q){return this.on(A,...q)}off(A,...q){let K=super.off(A,...q);if(A==="data"||A==="readable")this[$x6]=this.listenerCount("data")>0||this.listenerCount("readable")>0;return K}removeListener(A,...q){return this.off(A,...q)}push(A){if(this[Tk]&&A!==null)return zA8(this[Tk],A),this[$x6]?super.push(A):!0;return super.push(A)}async text(){return Ox6(this,"text")}async json(){return Ox6(this,"json")}async blob(){return Ox6(this,"blob")}async bytes(){return Ox6(this,"bytes")}async arrayBuffer(){return Ox6(this,"arrayBuffer")}async formData(){throw new G03}get bodyUsed(){return XeA.isDisturbed(this)}get body(){if(!this[Es]){if(this[Es]=f03(this),this[Tk])this[Es].getReader(),MeA(this[Es].locked)}return this[Es]}async dump(A){let q=Number.isFinite(A?.limit)?A.limit:131072,K=A?.signal;if(K!=null&&(typeof K!=="object"||!("aborted"in K)))throw new Z03("signal must be an AbortSignal");if(K?.throwIfAborted(),this._readableState.closeEmitted)return null;return await new Promise((Y,z)=>{if(this[HeA]>q)this.destroy(new KA8);let w=()=>{this.destroy(K.reason??new KA8)};K?.addEventListener("abort",w),this.on("close",function(){if(K?.removeEventListener("abort",w),K?.aborted)z(K.reason??new KA8);else Y(null)}).on("error",T03).on("data",function(_){if(q-=_.length,q<=0)this.destroy()}).resume()})}}function v03(A){return A[Es]&&A[Es].locked===!0||A[Tk]}function V03(A){return XeA.isDisturbed(A)||v03(A)}async function Ox6(A,q){return MeA(!A[Tk]),new Promise((K,Y)=>{if(V03(A)){let z=A._readableState;if(z.destroyed&&z.closeEmitted===!1)A.on("error",(w)=>{Y(w)}).on("close",()=>{Y(TypeError("unusable"))});else Y(z.errored??TypeError("unusable"))}else queueMicrotask(()=>{A[Tk]={type:q,stream:A,resolve:K,reject:Y,length:0,body:[]},A.on("error",function(z){wA8(this[Tk],z)}).on("close",function(){if(this[Tk].body!==null)wA8(this[Tk],new DeA)}),N03(A[Tk])})})}function N03(A){if(A.body===null)return;let{_readableState:q}=A.stream;if(q.bufferIndex){let K=q.bufferIndex,Y=q.buffer.length;for(let z=K;z<Y;z++)zA8(A,q.buffer[z])}else for(let K of q.buffer)zA8(A,K);if(q.endEmitted)JeA(this[Tk]);else A.stream.on("end",function(){JeA(this[Tk])});A.stream.resume();while(A.stream.read()!=null);}function YA8(A,q){if(A.length===0||q===0)return"";let K=A.length===1?A[0]:Buffer.concat(A,q),Y=K.length,z=Y>2&&K[0]===239&&K[1]===187&&K[2]===191?3:0;return K.utf8Slice(z,Y)}function jeA(A,q){if(A.length===0||q===0)return new Uint8Array(0);if(A.length===1)return new Uint8Array(A[0]);let K=new Uint8Array(Buffer.allocUnsafeSlow(q).buffer),Y=0;for(let z=0;z<A.length;++z){let w=A[z];K.set(w,Y),Y+=w.length}return K}function JeA(A){let{type:q,body:K,resolve:Y,stream:z,length:w}=A;try{if(q==="text")Y(YA8(K,w));else if(q==="json")Y(JSON.parse(YA8(K,w)));else if(q==="arrayBuffer")Y(jeA(K,w).buffer);else if(q==="blob")Y(new Blob(K,{type:z[PeA]}));else if(q==="bytes")Y(jeA(K,w));wA8(A)}catch(_){z.destroy(_)}}function zA8(A,q){A.length+=q.length,A.body.push(q)}function wA8(A,q){if(A.body===null)return;if(q)A.reject(q);else A.resolve();A.type=null,A.stream=null,A.resolve=null,A.reject=null,A.length=0,A.body=null}GeA.exports={Readable:WeA,chunksDecode:YA8}});var $A8=h((cK2,VeA)=>{var k03=u6("node:assert"),{ResponseStatusCodeError:ZeA}=Yw(),{chunksDecode:feA}=_A8();async function E03({callback:A,body:q,contentType:K,statusCode:Y,statusMessage:z,headers:w}){k03(q);let _=[],$=0;try{for await(let J of q)if(_.push(J),$+=J.length,$>131072){_=[],$=0;break}}catch{_=[],$=0}let O=`Response status code ${Y}${z?`: ${z}`:""}`;if(Y===204||!K||!$){queueMicrotask(()=>A(new ZeA(O,Y,w)));return}let H=Error.stackTraceLimit;Error.stackTraceLimit=0;let j;try{if(TeA(K))j=JSON.parse(feA(_,$));else if(veA(K))j=feA(_,$)}catch{}finally{Error.stackTraceLimit=H}queueMicrotask(()=>A(new ZeA(O,Y,w,j)))}var TeA=(A)=>{return A.length>15&&A[11]==="/"&&A[0]==="a"&&A[1]==="p"&&A[2]==="p"&&A[3]==="l"&&A[4]==="i"&&A[5]==="c"&&A[6]==="a"&&A[7]==="t"&&A[8]==="i"&&A[9]==="o"&&A[10]==="n"&&A[12]==="j"&&A[13]==="s"&&A[14]==="o"&&A[15]==="n"},veA=(A)=>{return A.length>4&&A[4]==="/"&&A[0]==="t"&&A[1]==="e"&&A[2]==="x"&&A[3]==="t"};VeA.exports={getResolveErrorBodyCallback:E03,isContentTypeApplicationJson:TeA,isContentTypeText:veA}});var EeA=h((lK2,HA8)=>{var L03=u6("node:assert"),{Readable:y03}=_A8(),{InvalidArgumentError:JD6,RequestAbortedError:NeA}=Yw(),vk=E9(),{getResolveErrorBodyCallback:R03}=$A8(),{AsyncResource:S03}=u6("node:async_hooks");class OA8 extends S03{constructor(A,q){if(!A||typeof A!=="object")throw new JD6("invalid opts");let{signal:K,method:Y,opaque:z,body:w,onInfo:_,responseHeaders:$,throwOnError:O,highWaterMark:H}=A;try{if(typeof q!=="function")throw new JD6("invalid callback");if(H&&(typeof H!=="number"||H<0))throw new JD6("invalid highWaterMark");if(K&&typeof K.on!=="function"&&typeof K.addEventListener!=="function")throw new JD6("signal must be an EventEmitter or EventTarget");if(Y==="CONNECT")throw new JD6("invalid method");if(_&&typeof _!=="function")throw new JD6("invalid onInfo callback");super("UNDICI_REQUEST")}catch(j){if(vk.isStream(w))vk.destroy(w.on("error",vk.nop),j);throw j}if(this.method=Y,this.responseHeaders=$||null,this.opaque=z||null,this.callback=q,this.res=null,this.abort=null,this.body=w,this.trailers={},this.context=null,this.onInfo=_||null,this.throwOnError=O,this.highWaterMark=H,this.signal=K,this.reason=null,this.removeAbortListener=null,vk.isStream(w))w.on("error",(j)=>{this.onError(j)});if(this.signal)if(this.signal.aborted)this.reason=this.signal.reason??new NeA;else this.removeAbortListener=vk.addAbortListener(this.signal,()=>{if(this.reason=this.signal.reason??new NeA,this.res)vk.destroy(this.res.on("error",vk.nop),this.reason);else if(this.abort)this.abort(this.reason);if(this.removeAbortListener)this.res?.off("close",this.removeAbortListener),this.removeAbortListener(),this.removeAbortListener=null})}onConnect(A,q){if(this.reason){A(this.reason);return}L03(this.callback),this.abort=A,this.context=q}onHeaders(A,q,K,Y){let{callback:z,opaque:w,abort:_,context:$,responseHeaders:O,highWaterMark:H}=this,j=O==="raw"?vk.parseRawHeaders(q):vk.parseHeaders(q);if(A<200){if(this.onInfo)this.onInfo({statusCode:A,headers:j});return}let J=O==="raw"?vk.parseHeaders(q):j,M=J["content-type"],D=J["content-length"],X=new y03({resume:K,abort:_,contentType:M,contentLength:this.method!=="HEAD"&&D?Number(D):null,highWaterMark:H});if(this.removeAbortListener)X.on("close",this.removeAbortListener);if(this.callback=null,this.res=X,z!==null)if(this.throwOnError&&A>=400)this.runInAsyncScope(R03,null,{callback:z,body:X,contentType:M,statusCode:A,statusMessage:Y,headers:j});else this.runInAsyncScope(z,null,null,{statusCode:A,headers:j,trailers:this.trailers,opaque:w,body:X,context:$})}onData(A){return this.res.push(A)}onComplete(A){vk.parseHeaders(A,this.trailers),this.res.push(null)}onError(A){let{res:q,callback:K,body:Y,opaque:z}=this;if(K)this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(K,null,A,{opaque:z})});if(q)this.res=null,queueMicrotask(()=>{vk.destroy(q,A)});if(Y)this.body=null,vk.destroy(Y,A);if(this.removeAbortListener)q?.off("close",this.removeAbortListener),this.removeAbortListener(),this.removeAbortListener=null}}function keA(A,q){if(q===void 0)return new Promise((K,Y)=>{keA.call(this,A,(z,w)=>{return z?Y(z):K(w)})});try{this.dispatch(A,new OA8(A,q))}catch(K){if(typeof q!=="function")throw K;let Y=A?.opaque;queueMicrotask(()=>q(K,{opaque:Y}))}}HA8.exports=keA;HA8.exports.RequestHandler=OA8});var Hx6=h((iK2,ReA)=>{var{addAbortListener:h03}=E9(),{RequestAbortedError:C03}=Yw(),MD6=Symbol("kListener"),im=Symbol("kSignal");function LeA(A){if(A.abort)A.abort(A[im]?.reason);else A.reason=A[im]?.reason??new C03;yeA(A)}function I03(A,q){if(A.reason=null,A[im]=null,A[MD6]=null,!q)return;if(q.aborted){LeA(A);return}A[im]=q,A[MD6]=()=>{LeA(A)},h03(A[im],A[MD6])}function yeA(A){if(!A[im])return;if("removeEventListener"in A[im])A[im].removeEventListener("abort",A[MD6]);else A[im].removeListener("abort",A[MD6]);A[im]=null,A[MD6]=null}ReA.exports={addSignal:I03,removeSignal:yeA}});var xeA=h((nK2,IeA)=>{var x03=u6("node:assert"),{finished:b03,PassThrough:u03}=u6("node:stream"),{InvalidArgumentError:DD6,InvalidReturnValueError:m03}=Yw(),AI=E9(),{getResolveErrorBodyCallback:B03}=$A8(),{AsyncResource:g03}=u6("node:async_hooks"),{addSignal:p03,removeSignal:SeA}=Hx6();class heA extends g03{constructor(A,q,K){if(!A||typeof A!=="object")throw new DD6("invalid opts");let{signal:Y,method:z,opaque:w,body:_,onInfo:$,responseHeaders:O,throwOnError:H}=A;try{if(typeof K!=="function")throw new DD6("invalid callback");if(typeof q!=="function")throw new DD6("invalid factory");if(Y&&typeof Y.on!=="function"&&typeof Y.addEventListener!=="function")throw new DD6("signal must be an EventEmitter or EventTarget");if(z==="CONNECT")throw new DD6("invalid method");if($&&typeof $!=="function")throw new DD6("invalid onInfo callback");super("UNDICI_STREAM")}catch(j){if(AI.isStream(_))AI.destroy(_.on("error",AI.nop),j);throw j}if(this.responseHeaders=O||null,this.opaque=w||null,this.factory=q,this.callback=K,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=_,this.onInfo=$||null,this.throwOnError=H||!1,AI.isStream(_))_.on("error",(j)=>{this.onError(j)});p03(this,Y)}onConnect(A,q){if(this.reason){A(this.reason);return}x03(this.callback),this.abort=A,this.context=q}onHeaders(A,q,K,Y){let{factory:z,opaque:w,context:_,callback:$,responseHeaders:O}=this,H=O==="raw"?AI.parseRawHeaders(q):AI.parseHeaders(q);if(A<200){if(this.onInfo)this.onInfo({statusCode:A,headers:H});return}this.factory=null;let j;if(this.throwOnError&&A>=400){let D=(O==="raw"?AI.parseHeaders(q):H)["content-type"];j=new u03,this.callback=null,this.runInAsyncScope(B03,null,{callback:$,body:j,contentType:D,statusCode:A,statusMessage:Y,headers:H})}else{if(z===null)return;if(j=this.runInAsyncScope(z,null,{statusCode:A,headers:H,opaque:w,context:_}),!j||typeof j.write!=="function"||typeof j.end!=="function"||typeof j.on!=="function")throw new m03("expected Writable");b03(j,{readable:!1},(M)=>{let{callback:D,res:X,opaque:P,trailers:W,abort:G}=this;if(this.res=null,M||!X.readable)AI.destroy(X,M);if(this.callback=null,this.runInAsyncScope(D,null,M||null,{opaque:P,trailers:W}),M)G()})}return j.on("drain",K),this.res=j,(j.writableNeedDrain!==void 0?j.writableNeedDrain:j._writableState?.needDrain)!==!0}onData(A){let{res:q}=this;return q?q.write(A):!0}onComplete(A){let{res:q}=this;if(SeA(this),!q)return;this.trailers=AI.parseHeaders(A),q.end()}onError(A){let{res:q,callback:K,opaque:Y,body:z}=this;if(SeA(this),this.factory=null,q)this.res=null,AI.destroy(q,A);else if(K)this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(K,null,A,{opaque:Y})});if(z)this.body=null,AI.destroy(z,A)}}function CeA(A,q,K){if(K===void 0)return new Promise((Y,z)=>{CeA.call(this,A,q,(w,_)=>{return w?z(w):Y(_)})});try{this.dispatch(A,new heA(A,q,K))}catch(Y){if(typeof K!=="function")throw Y;let z=A?.opaque;queueMicrotask(()=>K(Y,{opaque:z}))}}IeA.exports=CeA});var FeA=h((rK2,peA)=>{var{Readable:ueA,Duplex:F03,PassThrough:Q03}=u6("node:stream"),{InvalidArgumentError:jx6,InvalidReturnValueError:U03,RequestAbortedError:jA8}=Yw(),my=E9(),{AsyncResource:d03}=u6("node:async_hooks"),{addSignal:c03,removeSignal:l03}=Hx6(),beA=u6("node:assert"),XD6=Symbol("resume");class meA extends ueA{constructor(){super({autoDestroy:!0});this[XD6]=null}_read(){let{[XD6]:A}=this;if(A)this[XD6]=null,A()}_destroy(A,q){this._read(),q(A)}}class BeA extends ueA{constructor(A){super({autoDestroy:!0});this[XD6]=A}_read(){this[XD6]()}_destroy(A,q){if(!A&&!this._readableState.endEmitted)A=new jA8;q(A)}}class geA extends d03{constructor(A,q){if(!A||typeof A!=="object")throw new jx6("invalid opts");if(typeof q!=="function")throw new jx6("invalid handler");let{signal:K,method:Y,opaque:z,onInfo:w,responseHeaders:_}=A;if(K&&typeof K.on!=="function"&&typeof K.addEventListener!=="function")throw new jx6("signal must be an EventEmitter or EventTarget");if(Y==="CONNECT")throw new jx6("invalid method");if(w&&typeof w!=="function")throw new jx6("invalid onInfo callback");super("UNDICI_PIPELINE");this.opaque=z||null,this.responseHeaders=_||null,this.handler=q,this.abort=null,this.context=null,this.onInfo=w||null,this.req=new meA().on("error",my.nop),this.ret=new F03({readableObjectMode:A.objectMode,autoDestroy:!0,read:()=>{let{body:$}=this;if($?.resume)$.resume()},write:($,O,H)=>{let{req:j}=this;if(j.push($,O)||j._readableState.destroyed)H();else j[XD6]=H},destroy:($,O)=>{let{body:H,req:j,res:J,ret:M,abort:D}=this;if(!$&&!M._readableState.endEmitted)$=new jA8;if(D&&$)D();my.destroy(H,$),my.destroy(j,$),my.destroy(J,$),l03(this),O($)}}).on("prefinish",()=>{let{req:$}=this;$.push(null)}),this.res=null,c03(this,K)}onConnect(A,q){let{ret:K,res:Y}=this;if(this.reason){A(this.reason);return}beA(!Y,"pipeline cannot be retried"),beA(!K.destroyed),this.abort=A,this.context=q}onHeaders(A,q,K){let{opaque:Y,handler:z,context:w}=this;if(A<200){if(this.onInfo){let $=this.responseHeaders==="raw"?my.parseRawHeaders(q):my.parseHeaders(q);this.onInfo({statusCode:A,headers:$})}return}this.res=new BeA(K);let _;try{this.handler=null;let $=this.responseHeaders==="raw"?my.parseRawHeaders(q):my.parseHeaders(q);_=this.runInAsyncScope(z,null,{statusCode:A,headers:$,opaque:Y,body:this.res,context:w})}catch($){throw this.res.on("error",my.nop),$}if(!_||typeof _.on!=="function")throw new U03("expected Readable");_.on("data",($)=>{let{ret:O,body:H}=this;if(!O.push($)&&H.pause)H.pause()}).on("error",($)=>{let{ret:O}=this;my.destroy(O,$)}).on("end",()=>{let{ret:$}=this;$.push(null)}).on("close",()=>{let{ret:$}=this;if(!$._readableState.ended)my.destroy($,new jA8)}),this.body=_}onData(A){let{res:q}=this;return q.push(A)}onComplete(A){let{res:q}=this;q.push(null)}onError(A){let{ret:q}=this;this.handler=null,my.destroy(q,A)}}function i03(A,q){try{let K=new geA(A,q);return this.dispatch({...A,body:K.req},K),K.ret}catch(K){return new Q03().destroy(K)}}peA.exports=i03});var neA=h((oK2,ieA)=>{var{InvalidArgumentError:JA8,SocketError:n03}=Yw(),{AsyncResource:r03}=u6("node:async_hooks"),QeA=E9(),{addSignal:o03,removeSignal:UeA}=Hx6(),deA=u6("node:assert");class ceA extends r03{constructor(A,q){if(!A||typeof A!=="object")throw new JA8("invalid opts");if(typeof q!=="function")throw new JA8("invalid callback");let{signal:K,opaque:Y,responseHeaders:z}=A;if(K&&typeof K.on!=="function"&&typeof K.addEventListener!=="function")throw new JA8("signal must be an EventEmitter or EventTarget");super("UNDICI_UPGRADE");this.responseHeaders=z||null,this.opaque=Y||null,this.callback=q,this.abort=null,this.context=null,o03(this,K)}onConnect(A,q){if(this.reason){A(this.reason);return}deA(this.callback),this.abort=A,this.context=null}onHeaders(){throw new n03("bad upgrade",null)}onUpgrade(A,q,K){deA(A===101);let{callback:Y,opaque:z,context:w}=this;UeA(this),this.callback=null;let _=this.responseHeaders==="raw"?QeA.parseRawHeaders(q):QeA.parseHeaders(q);this.runInAsyncScope(Y,null,null,{headers:_,socket:K,opaque:z,context:w})}onError(A){let{callback:q,opaque:K}=this;if(UeA(this),q)this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(q,null,A,{opaque:K})})}}function leA(A,q){if(q===void 0)return new Promise((K,Y)=>{leA.call(this,A,(z,w)=>{return z?Y(z):K(w)})});try{let K=new ceA(A,q);this.dispatch({...A,method:A.method||"GET",upgrade:A.protocol||"Websocket"},K)}catch(K){if(typeof q!=="function")throw K;let Y=A?.opaque;queueMicrotask(()=>q(K,{opaque:Y}))}}ieA.exports=leA});var eeA=h((aK2,teA)=>{var a03=u6("node:assert"),{AsyncResource:s03}=u6("node:async_hooks"),{InvalidArgumentError:MA8,SocketError:t03}=Yw(),reA=E9(),{addSignal:e03,removeSignal:oeA}=Hx6();class aeA extends s03{constructor(A,q){if(!A||typeof A!=="object")throw new MA8("invalid opts");if(typeof q!=="function")throw new MA8("invalid callback");let{signal:K,opaque:Y,responseHeaders:z}=A;if(K&&typeof K.on!=="function"&&typeof K.addEventListener!=="function")throw new MA8("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT");this.opaque=Y||null,this.responseHeaders=z||null,this.callback=q,this.abort=null,e03(this,K)}onConnect(A,q){if(this.reason){A(this.reason);return}a03(this.callback),this.abort=A,this.context=q}onHeaders(){throw new t03("bad connect",null)}onUpgrade(A,q,K){let{callback:Y,opaque:z,context:w}=this;oeA(this),this.callback=null;let _=q;if(_!=null)_=this.responseHeaders==="raw"?reA.parseRawHeaders(q):reA.parseHeaders(q);this.runInAsyncScope(Y,null,null,{statusCode:A,headers:_,socket:K,opaque:z,context:w})}onError(A){let{callback:q,opaque:K}=this;if(oeA(this),q)this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(q,null,A,{opaque:K})})}}function seA(A,q){if(q===void 0)return new Promise((K,Y)=>{seA.call(this,A,(z,w)=>{return z?Y(z):K(w)})});try{let K=new aeA(A,q);this.dispatch({...A,method:"CONNECT"},K)}catch(K){if(typeof q!=="function")throw K;let Y=A?.opaque;queueMicrotask(()=>q(K,{opaque:Y}))}}teA.exports=seA});var A67=h((AW3,PD6)=>{AW3.request=EeA();AW3.stream=xeA();AW3.pipeline=FeA();AW3.upgrade=neA();AW3.connect=eeA()});var XA8=h((sK2,q67)=>{var{UndiciError:_W3}=Yw();class DA8 extends _W3{constructor(A){super(A);Error.captureStackTrace(this,DA8),this.name="MockNotMatchedError",this.message=A||"The request does not match any registered mock dispatches",this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}q67.exports={MockNotMatchedError:DA8}});var WD6=h((tK2,K67)=>{K67.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}});var Jx6=h((eK2,D67)=>{var{MockNotMatchedError:DK6}=XA8(),{kDispatches:j91,kMockAgent:$W3,kOriginalDispatch:OW3,kOrigin:HW3,kGetNetConnect:jW3}=WD6(),{buildURL:JW3}=E9(),{STATUS_CODES:MW3}=u6("node:http"),{types:{isPromise:DW3}}=u6("node:util");function Md(A,q){if(typeof A==="string")return A===q;if(A instanceof RegExp)return A.test(q);if(typeof A==="function")return A(q)===!0;return!1}function z67(A){return Object.fromEntries(Object.entries(A).map(([q,K])=>{return[q.toLocaleLowerCase(),K]}))}function w67(A,q){if(Array.isArray(A)){for(let K=0;K<A.length;K+=2)if(A[K].toLocaleLowerCase()===q.toLocaleLowerCase())return A[K+1];return}else if(typeof A.get==="function")return A.get(q);else return z67(A)[q.toLocaleLowerCase()]}function GA8(A){let q=A.slice(),K=[];for(let Y=0;Y<q.length;Y+=2)K.push([q[Y],q[Y+1]]);return Object.fromEntries(K)}function _67(A,q){if(typeof A.headers==="function"){if(Array.isArray(q))q=GA8(q);return A.headers(q?z67(q):{})}if(typeof A.headers>"u")return!0;if(typeof q!=="object"||typeof A.headers!=="object")return!1;for(let[K,Y]of Object.entries(A.headers)){let z=w67(q,K);if(!Md(Y,z))return!1}return!0}function Y67(A){if(typeof A!=="string")return A;let q=A.split("?");if(q.length!==2)return A;let K=new URLSearchParams(q.pop());return K.sort(),[...q,K.toString()].join("?")}function XW3(A,{path:q,method:K,body:Y,headers:z}){let w=Md(A.path,q),_=Md(A.method,K),$=typeof A.body<"u"?Md(A.body,Y):!0,O=_67(A,z);return w&&_&&$&&O}function $67(A){if(Buffer.isBuffer(A))return A;else if(A instanceof Uint8Array)return A;else if(A instanceof ArrayBuffer)return A;else if(typeof A==="object")return JSON.stringify(A);else return A.toString()}function O67(A,q){let K=q.query?JW3(q.path,q.query):q.path,Y=typeof K==="string"?Y67(K):K,z=A.filter(({consumed:w})=>!w).filter(({path:w})=>Md(Y67(w),Y));if(z.length===0)throw new DK6(`Mock dispatch not matched for path '${Y}'`);if(z=z.filter(({method:w})=>Md(w,q.method)),z.length===0)throw new DK6(`Mock dispatch not matched for method '${q.method}' on path '${Y}'`);if(z=z.filter(({body:w})=>typeof w<"u"?Md(w,q.body):!0),z.length===0)throw new DK6(`Mock dispatch not matched for body '${q.body}' on path '${Y}'`);if(z=z.filter((w)=>_67(w,q.headers)),z.length===0){let w=typeof q.headers==="object"?JSON.stringify(q.headers):q.headers;throw new DK6(`Mock dispatch not matched for headers '${w}' on path '${Y}'`)}return z[0]}function PW3(A,q,K){let Y={timesInvoked:0,times:1,persist:!1,consumed:!1},z=typeof K==="function"?{callback:K}:{...K},w={...Y,...q,pending:!0,data:{error:null,...z}};return A.push(w),w}function PA8(A,q){let K=A.findIndex((Y)=>{if(!Y.consumed)return!1;return XW3(Y,q)});if(K!==-1)A.splice(K,1)}function H67(A){let{path:q,method:K,body:Y,headers:z,query:w}=A;return{path:q,method:K,body:Y,headers:z,query:w}}function WA8(A){let q=Object.keys(A),K=[];for(let Y=0;Y<q.length;++Y){let z=q[Y],w=A[z],_=Buffer.from(`${z}`);if(Array.isArray(w))for(let $=0;$<w.length;++$)K.push(_,Buffer.from(`${w[$]}`));else K.push(_,Buffer.from(`${w}`))}return K}function j67(A){return MW3[A]||"unknown"}async function WW3(A){let q=[];for await(let K of A)q.push(K);return Buffer.concat(q).toString("utf8")}function J67(A,q){let K=H67(A),Y=O67(this[j91],K);if(Y.timesInvoked++,Y.data.callback)Y.data={...Y.data,...Y.data.callback(A)};let{data:{statusCode:z,data:w,headers:_,trailers:$,error:O},delay:H,persist:j}=Y,{timesInvoked:J,times:M}=Y;if(Y.consumed=!j&&J>=M,Y.pending=J<M,O!==null)return PA8(this[j91],K),q.onError(O),!0;if(typeof H==="number"&&H>0)setTimeout(()=>{D(this[j91])},H);else D(this[j91]);function D(P,W=w){let G=Array.isArray(A.headers)?GA8(A.headers):A.headers,Z=typeof W==="function"?W({...A,headers:G}):W;if(DW3(Z)){Z.then((N)=>D(P,N));return}let f=$67(Z),v=WA8(_),V=WA8($);q.onConnect?.((N)=>q.onError(N),null),q.onHeaders?.(z,v,X,j67(z)),q.onData?.(Buffer.from(f)),q.onComplete?.(V),PA8(P,K)}function X(){}return!0}function GW3(){let A=this[$W3],q=this[HW3],K=this[OW3];return function(z,w){if(A.isMockActive)try{J67.call(this,z,w)}catch(_){if(_ instanceof DK6){let $=A[jW3]();if($===!1)throw new DK6(`${_.message}: subsequent request to origin ${q} was not allowed (net.connect disabled)`);if(M67($,q))K.call(this,z,w);else throw new DK6(`${_.message}: subsequent request to origin ${q} was not allowed (net.connect is not enabled for this origin)`)}else throw _}else K.call(this,z,w)}}function M67(A,q){let K=new URL(q);if(A===!0)return!0;else if(Array.isArray(A)&&A.some((Y)=>Md(Y,K.host)))return!0;return!1}function ZW3(A){if(A){let{agent:q,...K}=A;return K}}D67.exports={getResponseData:$67,getMockDispatch:O67,addMockDispatch:PW3,deleteMockDispatch:PA8,buildKey:H67,generateKeyValues:WA8,matchValue:Md,getResponse:WW3,getStatusText:j67,mockDispatch:J67,buildMockDispatch:GW3,checkNetConnect:M67,buildMockOptions:ZW3,getHeaderByName:w67,buildHeadersFromArray:GA8}});var NA8=h((VW3,VA8)=>{var{getResponseData:fW3,buildKey:TW3,addMockDispatch:ZA8}=Jx6(),{kDispatches:J91,kDispatchKey:M91,kDefaultHeaders:fA8,kDefaultTrailers:TA8,kContentLength:vA8,kMockDispatch:D91}=WD6(),{InvalidArgumentError:nm}=Yw(),{buildURL:vW3}=E9();class Mx6{constructor(A){this[D91]=A}delay(A){if(typeof A!=="number"||!Number.isInteger(A)||A<=0)throw new nm("waitInMs must be a valid integer > 0");return this[D91].delay=A,this}persist(){return this[D91].persist=!0,this}times(A){if(typeof A!=="number"||!Number.isInteger(A)||A<=0)throw new nm("repeatTimes must be a valid integer > 0");return this[D91].times=A,this}}class X67{constructor(A,q){if(typeof A!=="object")throw new nm("opts must be an object");if(typeof A.path>"u")throw new nm("opts.path must be defined");if(typeof A.method>"u")A.method="GET";if(typeof A.path==="string")if(A.query)A.path=vW3(A.path,A.query);else{let K=new URL(A.path,"data://");A.path=K.pathname+K.search}if(typeof A.method==="string")A.method=A.method.toUpperCase();this[M91]=TW3(A),this[J91]=q,this[fA8]={},this[TA8]={},this[vA8]=!1}createMockScopeDispatchData({statusCode:A,data:q,responseOptions:K}){let Y=fW3(q),z=this[vA8]?{"content-length":Y.length}:{},w={...this[fA8],...z,...K.headers},_={...this[TA8],...K.trailers};return{statusCode:A,data:q,headers:w,trailers:_}}validateReplyParameters(A){if(typeof A.statusCode>"u")throw new nm("statusCode must be defined");if(typeof A.responseOptions!=="object"||A.responseOptions===null)throw new nm("responseOptions must be an object")}reply(A){if(typeof A==="function"){let z=(_)=>{let $=A(_);if(typeof $!=="object"||$===null)throw new nm("reply options callback must return an object");let O={data:"",responseOptions:{},...$};return this.validateReplyParameters(O),{...this.createMockScopeDispatchData(O)}},w=ZA8(this[J91],this[M91],z);return new Mx6(w)}let q={statusCode:A,data:arguments[1]===void 0?"":arguments[1],responseOptions:arguments[2]===void 0?{}:arguments[2]};this.validateReplyParameters(q);let K=this.createMockScopeDispatchData(q),Y=ZA8(this[J91],this[M91],K);return new Mx6(Y)}replyWithError(A){if(typeof A>"u")throw new nm("error must be defined");let q=ZA8(this[J91],this[M91],{error:A});return new Mx6(q)}defaultReplyHeaders(A){if(typeof A>"u")throw new nm("headers must be defined");return this[fA8]=A,this}defaultReplyTrailers(A){if(typeof A>"u")throw new nm("trailers must be defined");return this[TA8]=A,this}replyContentLength(){return this[vA8]=!0,this}}VW3.MockInterceptor=X67;VW3.MockScope=Mx6});var EA8=h((A32,V67)=>{var{promisify:EW3}=u6("node:util"),LW3=eI6(),{buildMockDispatch:yW3}=Jx6(),{kDispatches:P67,kMockAgent:W67,kClose:G67,kOriginalClose:Z67,kOrigin:f67,kOriginalDispatch:RW3,kConnected:kA8}=WD6(),{MockInterceptor:SW3}=NA8(),T67=yO(),{InvalidArgumentError:hW3}=Yw();class v67 extends LW3{constructor(A,q){super(A,q);if(!q||!q.agent||typeof q.agent.dispatch!=="function")throw new hW3("Argument opts.agent must implement Agent");this[W67]=q.agent,this[f67]=A,this[P67]=[],this[kA8]=1,this[RW3]=this.dispatch,this[Z67]=this.close.bind(this),this.dispatch=yW3.call(this),this.close=this[G67]}get[T67.kConnected](){return this[kA8]}intercept(A){return new SW3(A,this[P67])}async[G67](){await EW3(this[Z67])(),this[kA8]=0,this[W67][T67.kClients].delete(this[f67])}}V67.exports=v67});var yA8=h((q32,h67)=>{var{promisify:CW3}=u6("node:util"),IW3=OD6(),{buildMockDispatch:xW3}=Jx6(),{kDispatches:N67,kMockAgent:k67,kClose:E67,kOriginalClose:L67,kOrigin:y67,kOriginalDispatch:bW3,kConnected:LA8}=WD6(),{MockInterceptor:uW3}=NA8(),R67=yO(),{InvalidArgumentError:mW3}=Yw();class S67 extends IW3{constructor(A,q){super(A,q);if(!q||!q.agent||typeof q.agent.dispatch!=="function")throw new mW3("Argument opts.agent must implement Agent");this[k67]=q.agent,this[y67]=A,this[N67]=[],this[LA8]=1,this[bW3]=this.dispatch,this[L67]=this.close.bind(this),this.dispatch=xW3.call(this),this.close=this[E67]}get[R67.kConnected](){return this[LA8]}intercept(A){return new uW3(A,this[N67])}async[E67](){await CW3(this[L67])(),this[LA8]=0,this[k67][R67.kClients].delete(this[y67])}}h67.exports=S67});var I67=h((K32,C67)=>{var BW3={pronoun:"it",is:"is",was:"was",this:"this"},gW3={pronoun:"they",is:"are",was:"were",this:"these"};C67.exports=class{constructor(q,K){this.singular=q,this.plural=K}pluralize(q){let K=q===1,Y=K?BW3:gW3,z=K?this.singular:this.plural;return{...Y,count:q,noun:z}}}});var b67=h((Y32,x67)=>{var{Transform:pW3}=u6("node:stream"),{Console:FW3}=u6("node:console"),QW3=process.versions.icu?"✅":"Y ",UW3=process.versions.icu?"❌":"N ";x67.exports=class{constructor({disableColors:q}={}){this.transform=new pW3({transform(K,Y,z){z(null,K)}}),this.logger=new FW3({stdout:this.transform,inspectOptions:{colors:!q&&!0}})}format(q){let K=q.map(({method:Y,path:z,data:{statusCode:w},persist:_,times:$,timesInvoked:O,origin:H})=>({Method:Y,Origin:H,Path:z,"Status code":w,Persistent:_?QW3:UW3,Invocations:O,Remaining:_?1/0:$-O}));return this.logger.table(K),this.transform.read().toString()}}});var p67=h((z32,g67)=>{var{kClients:XK6}=yO(),dW3=HD6(),{kAgent:RA8,kMockAgentSet:X91,kMockAgentGet:u67,kDispatches:SA8,kIsMockActive:P91,kNetConnect:PK6,kGetNetConnect:cW3,kOptions:W91,kFactory:G91}=WD6(),lW3=EA8(),iW3=yA8(),{matchValue:nW3,buildMockOptions:rW3}=Jx6(),{InvalidArgumentError:m67,UndiciError:oW3}=Yw(),aW3=II6(),sW3=I67(),tW3=b67();class B67 extends aW3{constructor(A){super(A);if(this[PK6]=!0,this[P91]=!0,A?.agent&&typeof A.agent.dispatch!=="function")throw new m67("Argument opts.agent must implement Agent");let q=A?.agent?A.agent:new dW3(A);this[RA8]=q,this[XK6]=q[XK6],this[W91]=rW3(A)}get(A){let q=this[u67](A);if(!q)q=this[G91](A),this[X91](A,q);return q}dispatch(A,q){return this.get(A.origin),this[RA8].dispatch(A,q)}async close(){await this[RA8].close(),this[XK6].clear()}deactivate(){this[P91]=!1}activate(){this[P91]=!0}enableNetConnect(A){if(typeof A==="string"||typeof A==="function"||A instanceof RegExp)if(Array.isArray(this[PK6]))this[PK6].push(A);else this[PK6]=[A];else if(typeof A>"u")this[PK6]=!0;else throw new m67("Unsupported matcher. Must be one of String|Function|RegExp.")}disableNetConnect(){this[PK6]=!1}get isMockActive(){return this[P91]}[X91](A,q){this[XK6].set(A,q)}[G91](A){let q=Object.assign({agent:this},this[W91]);return this[W91]&&this[W91].connections===1?new lW3(A,q):new iW3(A,q)}[u67](A){let q=this[XK6].get(A);if(q)return q;if(typeof A!=="string"){let K=this[G91]("http://localhost:9999");return this[X91](A,K),K}for(let[K,Y]of Array.from(this[XK6]))if(Y&&typeof K!=="string"&&nW3(K,A)){let z=this[G91](A);return this[X91](A,z),z[SA8]=Y[SA8],z}}[cW3](){return this[PK6]}pendingInterceptors(){let A=this[XK6];return Array.from(A.entries()).flatMap(([q,K])=>K[SA8].map((Y)=>({...Y,origin:q}))).filter(({pending:q})=>q)}assertNoPendingInterceptors({pendingInterceptorsFormatter:A=new tW3}={}){let q=this.pendingInterceptors();if(q.length===0)return;let K=new sW3("interceptor","interceptors").pluralize(q.length);throw new oW3(`
${K.count} ${K.noun} ${K.is} pending:

${A.format(q)}
`.trim())}}g67.exports=B67});var Z91=h((w32,d67)=>{var F67=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:eW3}=Yw(),AG3=HD6();if(U67()===void 0)Q67(new AG3);function Q67(A){if(!A||typeof A.dispatch!=="function")throw new eW3("Argument agent must implement Agent");Object.defineProperty(globalThis,F67,{value:A,writable:!0,enumerable:!1,configurable:!1})}function U67(){return globalThis[F67]}d67.exports={setGlobalDispatcher:Q67,getGlobalDispatcher:U67}});var f91=h((_32,c67)=>{c67.exports=class{#A;constructor(q){if(typeof q!=="object"||q===null)throw TypeError("handler must be an object");this.#A=q}onConnect(...q){return this.#A.onConnect?.(...q)}onError(...q){return this.#A.onError?.(...q)}onUpgrade(...q){return this.#A.onUpgrade?.(...q)}onResponseStarted(...q){return this.#A.onResponseStarted?.(...q)}onHeaders(...q){return this.#A.onHeaders?.(...q)}onData(...q){return this.#A.onData?.(...q)}onComplete(...q){return this.#A.onComplete?.(...q)}onBodySent(...q){return this.#A.onBodySent?.(...q)}}});var i67=h(($32,l67)=>{var qG3=e51();l67.exports=(A)=>{let q=A?.maxRedirections;return(K)=>{return function(z,w){let{maxRedirections:_=q,...$}=z;if(!_)return K(z,w);let O=new qG3(K,_,z,w);return K($,O)}}}});var r67=h((O32,n67)=>{var KG3=H91();n67.exports=(A)=>{return(q)=>{return function(Y,z){return q(Y,new KG3({...Y,retryOptions:{...A,...Y.retryOptions}},{handler:z,dispatch:q}))}}}});var s67=h((H32,a67)=>{var YG3=E9(),{InvalidArgumentError:zG3,RequestAbortedError:wG3}=Yw(),_G3=f91();class o67 extends _G3{#A=1048576;#q=null;#K=!1;#z=!1;#Y=0;#_=null;#w=null;constructor({maxSize:A},q){super(q);if(A!=null&&(!Number.isFinite(A)||A<1))throw new zG3("maxSize must be a number greater than 0");this.#A=A??this.#A,this.#w=q}onConnect(A){this.#q=A,this.#w.onConnect(this.#O.bind(this))}#O(A){this.#z=!0,this.#_=A}onHeaders(A,q,K,Y){let w=YG3.parseHeaders(q)["content-length"];if(w!=null&&w>this.#A)throw new wG3(`Response size (${w}) larger than maxSize (${this.#A})`);if(this.#z)return!0;return this.#w.onHeaders(A,q,K,Y)}onError(A){if(this.#K)return;A=this.#_??A,this.#w.onError(A)}onData(A){if(this.#Y=this.#Y+A.length,this.#Y>=this.#A)if(this.#K=!0,this.#z)this.#w.onError(this.#_);else this.#w.onComplete([]);return!0}onComplete(A){if(this.#K)return;if(this.#z){this.#w.onError(this.reason);return}this.#w.onComplete(A)}}function $G3({maxSize:A}={maxSize:1048576}){return(q)=>{return function(Y,z){let{dumpMaxSize:w=A}=Y,_=new o67({maxSize:w},z);return q(Y,_)}}}a67.exports=$G3});var K17=h((j32,q17)=>{var{isIP:OG3}=u6("node:net"),{lookup:HG3}=u6("node:dns"),jG3=f91(),{InvalidArgumentError:GD6,InformationalError:JG3}=Yw(),t67=Math.pow(2,31)-1;class e67{#A=0;#q=0;#K=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(A){this.#A=A.maxTTL,this.#q=A.maxItems,this.dualStack=A.dualStack,this.affinity=A.affinity,this.lookup=A.lookup??this.#z,this.pick=A.pick??this.#Y}get full(){return this.#K.size===this.#q}runLookup(A,q,K){let Y=this.#K.get(A.hostname);if(Y==null&&this.full){K(null,A.origin);return}let z={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...q.dns,maxTTL:this.#A,maxItems:this.#q};if(Y==null)this.lookup(A,z,(w,_)=>{if(w||_==null||_.length===0){K(w??new JG3("No DNS entries found"));return}this.setRecords(A,_);let $=this.#K.get(A.hostname),O=this.pick(A,$,z.affinity),H;if(typeof O.port==="number")H=`:${O.port}`;else if(A.port!=="")H=`:${A.port}`;else H="";K(null,`${A.protocol}//${O.family===6?`[${O.address}]`:O.address}${H}`)});else{let w=this.pick(A,Y,z.affinity);if(w==null){this.#K.delete(A.hostname),this.runLookup(A,q,K);return}let _;if(typeof w.port==="number")_=`:${w.port}`;else if(A.port!=="")_=`:${A.port}`;else _="";K(null,`${A.protocol}//${w.family===6?`[${w.address}]`:w.address}${_}`)}}#z(A,q,K){HG3(A.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(Y,z)=>{if(Y)return K(Y);let w=new Map;for(let _ of z)w.set(`${_.address}:${_.family}`,_);K(null,w.values())})}#Y(A,q,K){let Y=null,{records:z,offset:w}=q,_;if(this.dualStack){if(K==null)if(w==null||w===t67)q.offset=0,K=4;else q.offset++,K=(q.offset&1)===1?6:4;if(z[K]!=null&&z[K].ips.length>0)_=z[K];else _=z[K===4?6:4]}else _=z[K];if(_==null||_.ips.length===0)return Y;if(_.offset==null||_.offset===t67)_.offset=0;else _.offset++;let $=_.offset%_.ips.length;if(Y=_.ips[$]??null,Y==null)return Y;if(Date.now()-Y.timestamp>Y.ttl)return _.ips.splice($,1),this.pick(A,q,K);return Y}setRecords(A,q){let K=Date.now(),Y={records:{4:null,6:null}};for(let z of q){if(z.timestamp=K,typeof z.ttl==="number")z.ttl=Math.min(z.ttl,this.#A);else z.ttl=this.#A;let w=Y.records[z.family]??{ips:[]};w.ips.push(z),Y.records[z.family]=w}this.#K.set(A.hostname,Y)}getHandler(A,q){return new A17(this,A,q)}}class A17 extends jG3{#A=null;#q=null;#K=null;#z=null;#Y=null;constructor(A,{origin:q,handler:K,dispatch:Y},z){super(K);this.#Y=q,this.#z=K,this.#q={...z},this.#A=A,this.#K=Y}onError(A){switch(A.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#A.dualStack){this.#A.runLookup(this.#Y,this.#q,(q,K)=>{if(q)return this.#z.onError(q);let Y={...this.#q,origin:K};this.#K(Y,this)});return}this.#z.onError(A);return}case"ENOTFOUND":this.#A.deleteRecord(this.#Y);default:this.#z.onError(A);break}}}q17.exports=(A)=>{if(A?.maxTTL!=null&&(typeof A?.maxTTL!=="number"||A?.maxTTL<0))throw new GD6("Invalid maxTTL. Must be a positive number");if(A?.maxItems!=null&&(typeof A?.maxItems!=="number"||A?.maxItems<1))throw new GD6("Invalid maxItems. Must be a positive number and greater than zero");if(A?.affinity!=null&&A?.affinity!==4&&A?.affinity!==6)throw new GD6("Invalid affinity. Must be either 4 or 6");if(A?.dualStack!=null&&typeof A?.dualStack!=="boolean")throw new GD6("Invalid dualStack. Must be a boolean");if(A?.lookup!=null&&typeof A?.lookup!=="function")throw new GD6("Invalid lookup. Must be a function");if(A?.pick!=null&&typeof A?.pick!=="function")throw new GD6("Invalid pick. Must be a function");let q=A?.dualStack??!0,K;if(q)K=A?.affinity??null;else K=A?.affinity??4;let Y={maxTTL:A?.maxTTL??1e4,lookup:A?.lookup??null,pick:A?.pick??null,dualStack:q,affinity:K,maxItems:A?.maxItems??1/0},z=new e67(Y);return(w)=>{return function($,O){let H=$.origin.constructor===URL?$.origin:new URL($.origin);if(OG3(H.hostname)!==0)return w($,O);return z.runLookup(H,$,(j,J)=>{if(j)return O.onError(j);let M=null;M={...$,servername:H.hostname,origin:J,headers:{host:H.hostname,...$.headers}},w(M,z.getHandler({origin:H,dispatch:w,handler:O},$))}),!0}}}});var WK6=h((J32,H17)=>{var{kConstruct:MG3}=yO(),{kEnumerableProperty:ZD6}=E9(),{iteratorMixin:DG3,isValidHeaderName:Dx6,isValidHeaderValue:z17}=fk(),{webidl:rY}=D0(),hA8=u6("node:assert"),T91=u6("node:util"),jM=Symbol("headers map"),Vk=Symbol("headers map sorted");function Y17(A){return A===10||A===13||A===9||A===32}function w17(A){let q=0,K=A.length;while(K>q&&Y17(A.charCodeAt(K-1)))--K;while(K>q&&Y17(A.charCodeAt(q)))++q;return q===0&&K===A.length?A:A.substring(q,K)}function _17(A,q){if(Array.isArray(q))for(let K=0;K<q.length;++K){let Y=q[K];if(Y.length!==2)throw rY.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${Y.length}.`});CA8(A,Y[0],Y[1])}else if(typeof q==="object"&&q!==null){let K=Object.keys(q);for(let Y=0;Y<K.length;++Y)CA8(A,K[Y],q[K[Y]])}else throw rY.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function CA8(A,q,K){if(K=w17(K),!Dx6(q))throw rY.errors.invalidArgument({prefix:"Headers.append",value:q,type:"header name"});else if(!z17(K))throw rY.errors.invalidArgument({prefix:"Headers.append",value:K,type:"header value"});if(O17(A)==="immutable")throw TypeError("immutable");return IA8(A).append(q,K,!1)}function $17(A,q){return A[0]<q[0]?-1:1}class v91{cookies=null;constructor(A){if(A instanceof v91)this[jM]=new Map(A[jM]),this[Vk]=A[Vk],this.cookies=A.cookies===null?null:[...A.cookies];else this[jM]=new Map(A),this[Vk]=null}contains(A,q){return this[jM].has(q?A:A.toLowerCase())}clear(){this[jM].clear(),this[Vk]=null,this.cookies=null}append(A,q,K){this[Vk]=null;let Y=K?A:A.toLowerCase(),z=this[jM].get(Y);if(z){let w=Y==="cookie"?"; ":", ";this[jM].set(Y,{name:z.name,value:`${z.value}${w}${q}`})}else this[jM].set(Y,{name:A,value:q});if(Y==="set-cookie")(this.cookies??=[]).push(q)}set(A,q,K){this[Vk]=null;let Y=K?A:A.toLowerCase();if(Y==="set-cookie")this.cookies=[q];this[jM].set(Y,{name:A,value:q})}delete(A,q){if(this[Vk]=null,!q)A=A.toLowerCase();if(A==="set-cookie")this.cookies=null;this[jM].delete(A)}get(A,q){return this[jM].get(q?A:A.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:A,1:{value:q}}of this[jM])yield[A,q]}get entries(){let A={};if(this[jM].size!==0)for(let{name:q,value:K}of this[jM].values())A[q]=K;return A}rawValues(){return this[jM].values()}get entriesList(){let A=[];if(this[jM].size!==0)for(let{0:q,1:{name:K,value:Y}}of this[jM])if(q==="set-cookie")for(let z of this.cookies)A.push([K,z]);else A.push([K,Y]);return A}toSortedArray(){let A=this[jM].size,q=Array(A);if(A<=32){if(A===0)return q;let K=this[jM][Symbol.iterator](),Y=K.next().value;q[0]=[Y[0],Y[1].value],hA8(Y[1].value!==null);for(let z=1,w=0,_=0,$=0,O=0,H,j;z<A;++z){j=K.next().value,H=q[z]=[j[0],j[1].value],hA8(H[1]!==null),$=0,_=z;while($<_)if(O=$+(_-$>>1),q[O][0]<=H[0])$=O+1;else _=O;if(z!==O){w=z;while(w>$)q[w]=q[--w];q[$]=H}}if(!K.next().done)throw TypeError("Unreachable");return q}else{let K=0;for(let{0:Y,1:{value:z}}of this[jM])q[K++]=[Y,z],hA8(z!==null);return q.sort($17)}}}class DG{#A;#q;constructor(A=void 0){if(rY.util.markAsUncloneable(this),A===MG3)return;if(this.#q=new v91,this.#A="none",A!==void 0)A=rY.converters.HeadersInit(A,"Headers contructor","init"),_17(this,A)}append(A,q){rY.brandCheck(this,DG),rY.argumentLengthCheck(arguments,2,"Headers.append");let K="Headers.append";return A=rY.converters.ByteString(A,K,"name"),q=rY.converters.ByteString(q,K,"value"),CA8(this,A,q)}delete(A){rY.brandCheck(this,DG),rY.argumentLengthCheck(arguments,1,"Headers.delete");let q="Headers.delete";if(A=rY.converters.ByteString(A,q,"name"),!Dx6(A))throw rY.errors.invalidArgument({prefix:"Headers.delete",value:A,type:"header name"});if(this.#A==="immutable")throw TypeError("immutable");if(!this.#q.contains(A,!1))return;this.#q.delete(A,!1)}get(A){rY.brandCheck(this,DG),rY.argumentLengthCheck(arguments,1,"Headers.get");let q="Headers.get";if(A=rY.converters.ByteString(A,q,"name"),!Dx6(A))throw rY.errors.invalidArgument({prefix:q,value:A,type:"header name"});return this.#q.get(A,!1)}has(A){rY.brandCheck(this,DG),rY.argumentLengthCheck(arguments,1,"Headers.has");let q="Headers.has";if(A=rY.converters.ByteString(A,q,"name"),!Dx6(A))throw rY.errors.invalidArgument({prefix:q,value:A,type:"header name"});return this.#q.contains(A,!1)}set(A,q){rY.brandCheck(this,DG),rY.argumentLengthCheck(arguments,2,"Headers.set");let K="Headers.set";if(A=rY.converters.ByteString(A,K,"name"),q=rY.converters.ByteString(q,K,"value"),q=w17(q),!Dx6(A))throw rY.errors.invalidArgument({prefix:K,value:A,type:"header name"});else if(!z17(q))throw rY.errors.invalidArgument({prefix:K,value:q,type:"header value"});if(this.#A==="immutable")throw TypeError("immutable");this.#q.set(A,q,!1)}getSetCookie(){rY.brandCheck(this,DG);let A=this.#q.cookies;if(A)return[...A];return[]}get[Vk](){if(this.#q[Vk])return this.#q[Vk];let A=[],q=this.#q.toSortedArray(),K=this.#q.cookies;if(K===null||K.length===1)return this.#q[Vk]=q;for(let Y=0;Y<q.length;++Y){let{0:z,1:w}=q[Y];if(z==="set-cookie")for(let _=0;_<K.length;++_)A.push([z,K[_]]);else A.push([z,w])}return this.#q[Vk]=A}[T91.inspect.custom](A,q){return q.depth??=A,`Headers ${T91.formatWithOptions(q,this.#q.entries)}`}static getHeadersGuard(A){return A.#A}static setHeadersGuard(A,q){A.#A=q}static getHeadersList(A){return A.#q}static setHeadersList(A,q){A.#q=q}}var{getHeadersGuard:O17,setHeadersGuard:XG3,getHeadersList:IA8,setHeadersList:PG3}=DG;Reflect.deleteProperty(DG,"getHeadersGuard");Reflect.deleteProperty(DG,"setHeadersGuard");Reflect.deleteProperty(DG,"getHeadersList");Reflect.deleteProperty(DG,"setHeadersList");DG3("Headers",DG,Vk,0,1);Object.defineProperties(DG.prototype,{append:ZD6,delete:ZD6,get:ZD6,has:ZD6,set:ZD6,getSetCookie:ZD6,[Symbol.toStringTag]:{value:"Headers",configurable:!0},[T91.inspect.custom]:{enumerable:!1}});rY.converters.HeadersInit=function(A,q,K){if(rY.util.Type(A)==="Object"){let Y=Reflect.get(A,Symbol.iterator);if(!T91.types.isProxy(A)&&Y===DG.prototype.entries)try{return IA8(A).entriesList}catch{}if(typeof Y==="function")return rY.converters["sequence<sequence<ByteString>>"](A,q,K,Y.bind(A));return rY.converters["record<ByteString, ByteString>"](A,q,K)}throw rY.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})};H17.exports={fill:_17,compareHeaderName:$17,Headers:DG,HeadersList:v91,getHeadersGuard:O17,setHeadersGuard:XG3,setHeadersList:PG3,getHeadersList:IA8}});var Px6=h((M32,f17)=>{var{Headers:P17,HeadersList:j17,fill:WG3,getHeadersGuard:GG3,setHeadersGuard:W17,setHeadersList:G17}=WK6(),{extractBody:J17,cloneBody:ZG3,mixinBody:fG3,hasFinalizationRegistry:TG3,streamRegistry:vG3,bodyUnusable:VG3}=qD6(),xA8=E9(),M17=u6("node:util"),{kEnumerableProperty:Nk}=xA8,{isValidReasonPhrase:NG3,isCancelled:kG3,isAborted:EG3,isBlobLike:LG3,serializeJavascriptValueToJSONString:yG3,isErrorLike:RG3,isomorphicEncode:SG3,environmentSettingsObject:hG3}=fk(),{redirectStatusSet:CG3,nullBodyStatus:IG3}=uI6(),{kState:Gj,kHeaders:Dd}=Xs(),{webidl:b5}=D0(),{FormData:xG3}=FI6(),{URLSerializer:D17}=Sv(),{kConstruct:N91}=yO(),bA8=u6("node:assert"),{types:bG3}=u6("node:util"),uG3=new TextEncoder("utf-8");class XG{static error(){return Xx6(k91(),"immutable")}static json(A,q={}){if(b5.argumentLengthCheck(arguments,1,"Response.json"),q!==null)q=b5.converters.ResponseInit(q);let K=uG3.encode(yG3(A)),Y=J17(K),z=Xx6(fD6({}),"response");return X17(z,q,{body:Y[0],type:"application/json"}),z}static redirect(A,q=302){b5.argumentLengthCheck(arguments,1,"Response.redirect"),A=b5.converters.USVString(A),q=b5.converters["unsigned short"](q);let K;try{K=new URL(A,hG3.settingsObject.baseUrl)}catch(w){throw TypeError(`Failed to parse URL from ${A}`,{cause:w})}if(!CG3.has(q))throw RangeError(`Invalid status code ${q}`);let Y=Xx6(fD6({}),"immutable");Y[Gj].status=q;let z=SG3(D17(K));return Y[Gj].headersList.append("location",z,!0),Y}constructor(A=null,q={}){if(b5.util.markAsUncloneable(this),A===N91)return;if(A!==null)A=b5.converters.BodyInit(A);q=b5.converters.ResponseInit(q),this[Gj]=fD6({}),this[Dd]=new P17(N91),W17(this[Dd],"response"),G17(this[Dd],this[Gj].headersList);let K=null;if(A!=null){let[Y,z]=J17(A);K={body:Y,type:z}}X17(this,q,K)}get type(){return b5.brandCheck(this,XG),this[Gj].type}get url(){b5.brandCheck(this,XG);let A=this[Gj].urlList,q=A[A.length-1]??null;if(q===null)return"";return D17(q,!0)}get redirected(){return b5.brandCheck(this,XG),this[Gj].urlList.length>1}get status(){return b5.brandCheck(this,XG),this[Gj].status}get ok(){return b5.brandCheck(this,XG),this[Gj].status>=200&&this[Gj].status<=299}get statusText(){return b5.brandCheck(this,XG),this[Gj].statusText}get headers(){return b5.brandCheck(this,XG),this[Dd]}get body(){return b5.brandCheck(this,XG),this[Gj].body?this[Gj].body.stream:null}get bodyUsed(){return b5.brandCheck(this,XG),!!this[Gj].body&&xA8.isDisturbed(this[Gj].body.stream)}clone(){if(b5.brandCheck(this,XG),VG3(this))throw b5.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let A=uA8(this[Gj]);return Xx6(A,GG3(this[Dd]))}[M17.inspect.custom](A,q){if(q.depth===null)q.depth=2;q.colors??=!0;let K={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${M17.formatWithOptions(q,K)}`}}fG3(XG);Object.defineProperties(XG.prototype,{type:Nk,url:Nk,status:Nk,ok:Nk,redirected:Nk,statusText:Nk,headers:Nk,clone:Nk,body:Nk,bodyUsed:Nk,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties(XG,{json:Nk,redirect:Nk,error:Nk});function uA8(A){if(A.internalResponse)return Z17(uA8(A.internalResponse),A.type);let q=fD6({...A,body:null});if(A.body!=null)q.body=ZG3(q,A.body);return q}function fD6(A){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...A,headersList:A?.headersList?new j17(A?.headersList):new j17,urlList:A?.urlList?[...A.urlList]:[]}}function k91(A){let q=RG3(A);return fD6({type:"error",status:0,error:q?A:Error(A?String(A):A),aborted:A&&A.name==="AbortError"})}function mG3(A){return A.type==="error"&&A.status===0}function V91(A,q){return q={internalResponse:A,...q},new Proxy(A,{get(K,Y){return Y in q?q[Y]:K[Y]},set(K,Y,z){return bA8(!(Y in q)),K[Y]=z,!0}})}function Z17(A,q){if(q==="basic")return V91(A,{type:"basic",headersList:A.headersList});else if(q==="cors")return V91(A,{type:"cors",headersList:A.headersList});else if(q==="opaque")return V91(A,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});else if(q==="opaqueredirect")return V91(A,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});else bA8(!1)}function BG3(A,q=null){return bA8(kG3(A)),EG3(A)?k91(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:q})):k91(Object.assign(new DOMException("Request was cancelled."),{cause:q}))}function X17(A,q,K){if(q.status!==null&&(q.status<200||q.status>599))throw RangeError('init["status"] must be in the range of 200 to 599, inclusive.');if("statusText"in q&&q.statusText!=null){if(!NG3(String(q.statusText)))throw TypeError("Invalid statusText")}if("status"in q&&q.status!=null)A[Gj].status=q.status;if("statusText"in q&&q.statusText!=null)A[Gj].statusText=q.statusText;if("headers"in q&&q.headers!=null)WG3(A[Dd],q.headers);if(K){if(IG3.includes(A.status))throw b5.errors.exception({header:"Response constructor",message:`Invalid response status code ${A.status}`});if(A[Gj].body=K.body,K.type!=null&&!A[Gj].headersList.contains("content-type",!0))A[Gj].headersList.append("content-type",K.type,!0)}}function Xx6(A,q){let K=new XG(N91);if(K[Gj]=A,K[Dd]=new P17(N91),G17(K[Dd],A.headersList),W17(K[Dd],q),TG3&&A.body?.stream)vG3.register(K,new WeakRef(A.body.stream));return K}b5.converters.ReadableStream=b5.interfaceConverter(ReadableStream);b5.converters.FormData=b5.interfaceConverter(xG3);b5.converters.URLSearchParams=b5.interfaceConverter(URLSearchParams);b5.converters.XMLHttpRequestBodyInit=function(A,q,K){if(typeof A==="string")return b5.converters.USVString(A,q,K);if(LG3(A))return b5.converters.Blob(A,q,K,{strict:!1});if(ArrayBuffer.isView(A)||bG3.isArrayBuffer(A))return b5.converters.BufferSource(A,q,K);if(xA8.isFormDataLike(A))return b5.converters.FormData(A,q,K,{strict:!1});if(A instanceof URLSearchParams)return b5.converters.URLSearchParams(A,q,K);return b5.converters.DOMString(A,q,K)};b5.converters.BodyInit=function(A,q,K){if(A instanceof ReadableStream)return b5.converters.ReadableStream(A,q,K);if(A?.[Symbol.asyncIterator])return A;return b5.converters.XMLHttpRequestBodyInit(A,q,K)};b5.converters.ResponseInit=b5.dictionaryConverter([{key:"status",converter:b5.converters["unsigned short"],defaultValue:()=>200},{key:"statusText",converter:b5.converters.ByteString,defaultValue:()=>""},{key:"headers",converter:b5.converters.HeadersInit}]);f17.exports={isNetworkError:mG3,makeNetworkError:k91,makeResponse:fD6,makeAppropriateNetworkError:BG3,filterResponse:Z17,Response:XG,cloneResponse:uA8,fromInnerResponse:Xx6}});var E17=h((D32,k17)=>{var{kConnected:T17,kSize:v17}=yO();class V17{constructor(A){this.value=A}deref(){return this.value[T17]===0&&this.value[v17]===0?void 0:this.value}}class N17{constructor(A){this.finalizer=A}register(A,q){if(A.on)A.on("disconnect",()=>{if(A[T17]===0&&A[v17]===0)this.finalizer(q)})}unregister(A){}}k17.exports=function(){if(process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18"))return process._rawDebug("Using compatibility WeakRef and FinalizationRegistry"),{WeakRef:V17,FinalizationRegistry:N17};return{WeakRef,FinalizationRegistry}}});var TD6=h((X32,F17)=>{var{extractBody:gG3,mixinBody:pG3,cloneBody:FG3,bodyUnusable:L17}=qD6(),{Headers:u17,fill:QG3,HeadersList:R91,setHeadersGuard:BA8,getHeadersGuard:UG3,setHeadersList:m17,getHeadersList:y17}=WK6(),{FinalizationRegistry:dG3}=E17()(),L91=E9(),R17=u6("node:util"),{isValidHTTPToken:cG3,sameOrigin:S17,environmentSettingsObject:E91}=fk(),{forbiddenMethodsSet:lG3,corsSafeListedMethodsSet:iG3,referrerPolicy:nG3,requestRedirect:rG3,requestMode:oG3,requestCredentials:aG3,requestCache:sG3,requestDuplex:tG3}=uI6(),{kEnumerableProperty:JM,normalizedMethodRecordsBase:eG3,normalizedMethodRecords:AZ3}=L91,{kHeaders:kk,kSignal:y91,kState:Q$,kDispatcher:mA8}=Xs(),{webidl:pK}=D0(),{URLSerializer:qZ3}=Sv(),{kConstruct:S91}=yO(),KZ3=u6("node:assert"),{getMaxListeners:h17,setMaxListeners:C17,getEventListeners:YZ3,defaultMaxListeners:I17}=u6("node:events"),zZ3=Symbol("abortController"),B17=new dG3(({signal:A,abort:q})=>{A.removeEventListener("abort",q)}),h91=new WeakMap;function x17(A){return q;function q(){let K=A.deref();if(K!==void 0){B17.unregister(q),this.removeEventListener("abort",q),K.abort(this.reason);let Y=h91.get(K.signal);if(Y!==void 0){if(Y.size!==0){for(let z of Y){let w=z.deref();if(w!==void 0)w.abort(this.reason)}Y.clear()}h91.delete(K.signal)}}}}var b17=!1;class $_{constructor(A,q={}){if(pK.util.markAsUncloneable(this),A===S91)return;let K="Request constructor";pK.argumentLengthCheck(arguments,1,K),A=pK.converters.RequestInfo(A,K,"input"),q=pK.converters.RequestInit(q,K,"init");let Y=null,z=null,w=E91.settingsObject.baseUrl,_=null;if(typeof A==="string"){this[mA8]=q.dispatcher;let W;try{W=new URL(A,w)}catch(G){throw TypeError("Failed to parse URL from "+A,{cause:G})}if(W.username||W.password)throw TypeError("Request cannot be constructed from a URL that includes credentials: "+A);Y=C91({urlList:[W]}),z="cors"}else this[mA8]=q.dispatcher||A[mA8],KZ3(A instanceof $_),Y=A[Q$],_=A[y91];let $=E91.settingsObject.origin,O="client";if(Y.window?.constructor?.name==="EnvironmentSettingsObject"&&S17(Y.window,$))O=Y.window;if(q.window!=null)throw TypeError(`'window' option '${O}' must be null`);if("window"in q)O="no-window";Y=C91({method:Y.method,headersList:Y.headersList,unsafeRequest:Y.unsafeRequest,client:E91.settingsObject,window:O,priority:Y.priority,origin:Y.origin,referrer:Y.referrer,referrerPolicy:Y.referrerPolicy,mode:Y.mode,credentials:Y.credentials,cache:Y.cache,redirect:Y.redirect,integrity:Y.integrity,keepalive:Y.keepalive,reloadNavigation:Y.reloadNavigation,historyNavigation:Y.historyNavigation,urlList:[...Y.urlList]});let H=Object.keys(q).length!==0;if(H){if(Y.mode==="navigate")Y.mode="same-origin";Y.reloadNavigation=!1,Y.historyNavigation=!1,Y.origin="client",Y.referrer="client",Y.referrerPolicy="",Y.url=Y.urlList[Y.urlList.length-1],Y.urlList=[Y.url]}if(q.referrer!==void 0){let W=q.referrer;if(W==="")Y.referrer="no-referrer";else{let G;try{G=new URL(W,w)}catch(Z){throw TypeError(`Referrer "${W}" is not a valid URL.`,{cause:Z})}if(G.protocol==="about:"&&G.hostname==="client"||$&&!S17(G,E91.settingsObject.baseUrl))Y.referrer="client";else Y.referrer=G}}if(q.referrerPolicy!==void 0)Y.referrerPolicy=q.referrerPolicy;let j;if(q.mode!==void 0)j=q.mode;else j=z;if(j==="navigate")throw pK.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(j!=null)Y.mode=j;if(q.credentials!==void 0)Y.credentials=q.credentials;if(q.cache!==void 0)Y.cache=q.cache;if(Y.cache==="only-if-cached"&&Y.mode!=="same-origin")throw TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(q.redirect!==void 0)Y.redirect=q.redirect;if(q.integrity!=null)Y.integrity=String(q.integrity);if(q.keepalive!==void 0)Y.keepalive=Boolean(q.keepalive);if(q.method!==void 0){let W=q.method,G=AZ3[W];if(G!==void 0)Y.method=G;else{if(!cG3(W))throw TypeError(`'${W}' is not a valid HTTP method.`);let Z=W.toUpperCase();if(lG3.has(Z))throw TypeError(`'${W}' HTTP method is unsupported.`);W=eG3[Z]??W,Y.method=W}if(!b17&&Y.method==="patch")process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"}),b17=!0}if(q.signal!==void 0)_=q.signal;this[Q$]=Y;let J=new AbortController;if(this[y91]=J.signal,_!=null){if(!_||typeof _.aborted!=="boolean"||typeof _.addEventListener!=="function")throw TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(_.aborted)J.abort(_.reason);else{this[zZ3]=J;let W=new WeakRef(J),G=x17(W);try{if(typeof h17==="function"&&h17(_)===I17)C17(1500,_);else if(YZ3(_,"abort").length>=I17)C17(1500,_)}catch{}L91.addAbortListener(_,G),B17.register(J,{signal:_,abort:G},G)}}if(this[kk]=new u17(S91),m17(this[kk],Y.headersList),BA8(this[kk],"request"),j==="no-cors"){if(!iG3.has(Y.method))throw TypeError(`'${Y.method} is unsupported in no-cors mode.`);BA8(this[kk],"request-no-cors")}if(H){let W=y17(this[kk]),G=q.headers!==void 0?q.headers:new R91(W);if(W.clear(),G instanceof R91){for(let{name:Z,value:f}of G.rawValues())W.append(Z,f,!1);W.cookies=G.cookies}else QG3(this[kk],G)}let M=A instanceof $_?A[Q$].body:null;if((q.body!=null||M!=null)&&(Y.method==="GET"||Y.method==="HEAD"))throw TypeError("Request with GET/HEAD method cannot have body.");let D=null;if(q.body!=null){let[W,G]=gG3(q.body,Y.keepalive);if(D=W,G&&!y17(this[kk]).contains("content-type",!0))this[kk].append("content-type",G)}let X=D??M;if(X!=null&&X.source==null){if(D!=null&&q.duplex==null)throw TypeError("RequestInit: duplex option is required when sending a body.");if(Y.mode!=="same-origin"&&Y.mode!=="cors")throw TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');Y.useCORSPreflightFlag=!0}let P=X;if(D==null&&M!=null){if(L17(A))throw TypeError("Cannot construct a Request with a Request object that has already been used.");let W=new TransformStream;M.stream.pipeThrough(W),P={source:M.source,length:M.length,stream:W.readable}}this[Q$].body=P}get method(){return pK.brandCheck(this,$_),this[Q$].method}get url(){return pK.brandCheck(this,$_),qZ3(this[Q$].url)}get headers(){return pK.brandCheck(this,$_),this[kk]}get destination(){return pK.brandCheck(this,$_),this[Q$].destination}get referrer(){if(pK.brandCheck(this,$_),this[Q$].referrer==="no-referrer")return"";if(this[Q$].referrer==="client")return"about:client";return this[Q$].referrer.toString()}get referrerPolicy(){return pK.brandCheck(this,$_),this[Q$].referrerPolicy}get mode(){return pK.brandCheck(this,$_),this[Q$].mode}get credentials(){return this[Q$].credentials}get cache(){return pK.brandCheck(this,$_),this[Q$].cache}get redirect(){return pK.brandCheck(this,$_),this[Q$].redirect}get integrity(){return pK.brandCheck(this,$_),this[Q$].integrity}get keepalive(){return pK.brandCheck(this,$_),this[Q$].keepalive}get isReloadNavigation(){return pK.brandCheck(this,$_),this[Q$].reloadNavigation}get isHistoryNavigation(){return pK.brandCheck(this,$_),this[Q$].historyNavigation}get signal(){return pK.brandCheck(this,$_),this[y91]}get body(){return pK.brandCheck(this,$_),this[Q$].body?this[Q$].body.stream:null}get bodyUsed(){return pK.brandCheck(this,$_),!!this[Q$].body&&L91.isDisturbed(this[Q$].body.stream)}get duplex(){return pK.brandCheck(this,$_),"half"}clone(){if(pK.brandCheck(this,$_),L17(this))throw TypeError("unusable");let A=g17(this[Q$]),q=new AbortController;if(this.signal.aborted)q.abort(this.signal.reason);else{let K=h91.get(this.signal);if(K===void 0)K=new Set,h91.set(this.signal,K);let Y=new WeakRef(q);K.add(Y),L91.addAbortListener(q.signal,x17(Y))}return p17(A,q.signal,UG3(this[kk]))}[R17.inspect.custom](A,q){if(q.depth===null)q.depth=2;q.colors??=!0;let K={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${R17.formatWithOptions(q,K)}`}}pG3($_);function C91(A){return{method:A.method??"GET",localURLsOnly:A.localURLsOnly??!1,unsafeRequest:A.unsafeRequest??!1,body:A.body??null,client:A.client??null,reservedClient:A.reservedClient??null,replacesClientId:A.replacesClientId??"",window:A.window??"client",keepalive:A.keepalive??!1,serviceWorkers:A.serviceWorkers??"all",initiator:A.initiator??"",destination:A.destination??"",priority:A.priority??null,origin:A.origin??"client",policyContainer:A.policyContainer??"client",referrer:A.referrer??"client",referrerPolicy:A.referrerPolicy??"",mode:A.mode??"no-cors",useCORSPreflightFlag:A.useCORSPreflightFlag??!1,credentials:A.credentials??"same-origin",useCredentials:A.useCredentials??!1,cache:A.cache??"default",redirect:A.redirect??"follow",integrity:A.integrity??"",cryptoGraphicsNonceMetadata:A.cryptoGraphicsNonceMetadata??"",parserMetadata:A.parserMetadata??"",reloadNavigation:A.reloadNavigation??!1,historyNavigation:A.historyNavigation??!1,userActivation:A.userActivation??!1,taintedOrigin:A.taintedOrigin??!1,redirectCount:A.redirectCount??0,responseTainting:A.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:A.preventNoCacheCacheControlHeaderModification??!1,done:A.done??!1,timingAllowFailed:A.timingAllowFailed??!1,urlList:A.urlList,url:A.urlList[0],headersList:A.headersList?new R91(A.headersList):new R91}}function g17(A){let q=C91({...A,body:null});if(A.body!=null)q.body=FG3(q,A.body);return q}function p17(A,q,K){let Y=new $_(S91);return Y[Q$]=A,Y[y91]=q,Y[kk]=new u17(S91),m17(Y[kk],A.headersList),BA8(Y[kk],K),Y}Object.defineProperties($_.prototype,{method:JM,url:JM,headers:JM,redirect:JM,clone:JM,signal:JM,duplex:JM,destination:JM,body:JM,bodyUsed:JM,isHistoryNavigation:JM,isReloadNavigation:JM,keepalive:JM,integrity:JM,cache:JM,credentials:JM,attribute:JM,referrerPolicy:JM,referrer:JM,mode:JM,[Symbol.toStringTag]:{value:"Request",configurable:!0}});pK.converters.Request=pK.interfaceConverter($_);pK.converters.RequestInfo=function(A,q,K){if(typeof A==="string")return pK.converters.USVString(A,q,K);if(A instanceof $_)return pK.converters.Request(A,q,K);return pK.converters.USVString(A,q,K)};pK.converters.AbortSignal=pK.interfaceConverter(AbortSignal);pK.converters.RequestInit=pK.dictionaryConverter([{key:"method",converter:pK.converters.ByteString},{key:"headers",converter:pK.converters.HeadersInit},{key:"body",converter:pK.nullableConverter(pK.converters.BodyInit)},{key:"referrer",converter:pK.converters.USVString},{key:"referrerPolicy",converter:pK.converters.DOMString,allowedValues:nG3},{key:"mode",converter:pK.converters.DOMString,allowedValues:oG3},{key:"credentials",converter:pK.converters.DOMString,allowedValues:aG3},{key:"cache",converter:pK.converters.DOMString,allowedValues:sG3},{key:"redirect",converter:pK.converters.DOMString,allowedValues:rG3},{key:"integrity",converter:pK.converters.DOMString},{key:"keepalive",converter:pK.converters.boolean},{key:"signal",converter:pK.nullableConverter((A)=>pK.converters.AbortSignal(A,"RequestInit","signal",{strict:!1}))},{key:"window",converter:pK.converters.any},{key:"duplex",converter:pK.converters.DOMString,allowedValues:tG3},{key:"dispatcher",converter:pK.converters.any}]);F17.exports={Request:$_,makeRequest:C91,fromInnerRequest:p17,cloneRequest:g17}});var Gx6=h((P32,q87)=>{var{makeNetworkError:A2,makeAppropriateNetworkError:I91,filterResponse:gA8,makeResponse:x91,fromInnerResponse:wZ3}=Px6(),{HeadersList:Q17}=WK6(),{Request:_Z3,cloneRequest:$Z3}=TD6(),Ls=u6("node:zlib"),{bytesMatch:OZ3,makePolicyContainer:HZ3,clonePolicyContainer:jZ3,requestBadPort:JZ3,TAOCheck:MZ3,appendRequestOriginHeader:DZ3,responseLocationURL:XZ3,requestCurrentURL:rm,setRequestReferrerPolicyOnRedirect:PZ3,tryUpgradeRequestToAPotentiallyTrustworthyURL:WZ3,createOpaqueTimingInfo:dA8,appendFetchMetadata:GZ3,corsCheck:ZZ3,crossOriginResourcePolicyCheck:fZ3,determineRequestsReferrer:TZ3,coarsenedSharedCurrentTime:Wx6,createDeferredPromise:vZ3,isBlobLike:VZ3,sameOrigin:UA8,isCancelled:GK6,isAborted:U17,isErrorLike:NZ3,fullyReadBody:kZ3,readableStreamClose:EZ3,isomorphicEncode:b91,urlIsLocal:LZ3,urlIsHttpHttpsScheme:cA8,urlHasHttpsScheme:yZ3,clampAndCoarsenConnectionTimingInfo:RZ3,simpleRangeHeaderValue:SZ3,buildContentRange:hZ3,createInflate:CZ3,extractMimeType:IZ3}=fk(),{kState:i17,kDispatcher:xZ3}=Xs(),ZK6=u6("node:assert"),{safelyExtractBody:lA8,extractBody:d17}=qD6(),{redirectStatusSet:n17,nullBodyStatus:r17,safeMethodsSet:bZ3,requestBodyHeader:uZ3,subresourceSet:mZ3}=uI6(),BZ3=u6("node:events"),{Readable:gZ3,pipeline:pZ3,finished:FZ3}=u6("node:stream"),{addAbortListener:QZ3,isErrored:UZ3,isReadable:u91,bufferToLowerCasedHeaderName:c17}=E9(),{dataURLProcessor:dZ3,serializeAMimeType:cZ3,minimizeSupportedMimeType:lZ3}=Sv(),{getGlobalDispatcher:iZ3}=Z91(),{webidl:nZ3}=D0(),{STATUS_CODES:rZ3}=u6("node:http"),oZ3=["GET","HEAD"],aZ3=typeof __UNDICI_IS_NODE__<"u"||typeof esbuildDetection<"u"?"node":"undici",pA8;class iA8 extends BZ3{constructor(A){super();this.dispatcher=A,this.connection=null,this.dump=!1,this.state="ongoing"}terminate(A){if(this.state!=="ongoing")return;this.state="terminated",this.connection?.destroy(A),this.emit("terminated",A)}abort(A){if(this.state!=="ongoing")return;if(this.state="aborted",!A)A=new DOMException("The operation was aborted.","AbortError");this.serializedAbortReason=A,this.connection?.destroy(A),this.emit("terminated",A)}}function sZ3(A){o17(A,"fetch")}function tZ3(A,q=void 0){nZ3.argumentLengthCheck(arguments,1,"globalThis.fetch");let K=vZ3(),Y;try{Y=new _Z3(A,q)}catch(j){return K.reject(j),K.promise}let z=Y[i17];if(Y.signal.aborted)return FA8(K,z,null,Y.signal.reason),K.promise;if(z.client.globalObject?.constructor?.name==="ServiceWorkerGlobalScope")z.serviceWorkers="none";let _=null,$=!1,O=null;return QZ3(Y.signal,()=>{$=!0,ZK6(O!=null),O.abort(Y.signal.reason);let j=_?.deref();FA8(K,z,j,Y.signal.reason)}),O=s17({request:z,processResponseEndOfBody:sZ3,processResponse:(j)=>{if($)return;if(j.aborted){FA8(K,z,_,O.serializedAbortReason);return}if(j.type==="error"){K.reject(TypeError("fetch failed",{cause:j.error}));return}_=new WeakRef(wZ3(j,"immutable")),K.resolve(_.deref()),K=null},dispatcher:Y[xZ3]}),K.promise}function o17(A,q="other"){if(A.type==="error"&&A.aborted)return;if(!A.urlList?.length)return;let K=A.urlList[0],Y=A.timingInfo,z=A.cacheState;if(!cA8(K))return;if(Y===null)return;if(!A.timingAllowPassed)Y=dA8({startTime:Y.startTime}),z="";Y.endTime=Wx6(),A.timingInfo=Y,a17(Y,K.href,q,globalThis,z)}var a17=performance.markResourceTiming;function FA8(A,q,K,Y){if(A)A.reject(Y);if(q.body!=null&&u91(q.body?.stream))q.body.stream.cancel(Y).catch((w)=>{if(w.code==="ERR_INVALID_STATE")return;throw w});if(K==null)return;let z=K[i17];if(z.body!=null&&u91(z.body?.stream))z.body.stream.cancel(Y).catch((w)=>{if(w.code==="ERR_INVALID_STATE")return;throw w})}function s17({request:A,processRequestBodyChunkLength:q,processRequestEndOfBody:K,processResponse:Y,processResponseEndOfBody:z,processResponseConsumeBody:w,useParallelQueue:_=!1,dispatcher:$=iZ3()}){ZK6($);let O=null,H=!1;if(A.client!=null)O=A.client.globalObject,H=A.client.crossOriginIsolatedCapability;let j=Wx6(H),J=dA8({startTime:j}),M={controller:new iA8($),request:A,timingInfo:J,processRequestBodyChunkLength:q,processRequestEndOfBody:K,processResponse:Y,processResponseConsumeBody:w,processResponseEndOfBody:z,taskDestination:O,crossOriginIsolatedCapability:H};if(ZK6(!A.body||A.body.stream),A.window==="client")A.window=A.client?.globalObject?.constructor?.name==="Window"?A.client:"no-window";if(A.origin==="client")A.origin=A.client.origin;if(A.policyContainer==="client")if(A.client!=null)A.policyContainer=jZ3(A.client.policyContainer);else A.policyContainer=HZ3();if(!A.headersList.contains("accept",!0))A.headersList.append("accept","*/*",!0);if(!A.headersList.contains("accept-language",!0))A.headersList.append("accept-language","*",!0);if(A.priority===null);if(mZ3.has(A.destination));return t17(M).catch((D)=>{M.controller.terminate(D)}),M.controller}async function t17(A,q=!1){let K=A.request,Y=null;if(K.localURLsOnly&&!LZ3(rm(K)))Y=A2("local URLs only");if(WZ3(K),JZ3(K)==="blocked")Y=A2("bad port");if(K.referrerPolicy==="")K.referrerPolicy=K.policyContainer.referrerPolicy;if(K.referrer!=="no-referrer")K.referrer=TZ3(K);if(Y===null)Y=await(async()=>{let w=rm(K);if(UA8(w,K.url)&&K.responseTainting==="basic"||w.protocol==="data:"||(K.mode==="navigate"||K.mode==="websocket"))return K.responseTainting="basic",await l17(A);if(K.mode==="same-origin")return A2('request mode cannot be "same-origin"');if(K.mode==="no-cors"){if(K.redirect!=="follow")return A2('redirect mode cannot be "follow" for "no-cors" request');return K.responseTainting="opaque",await l17(A)}if(!cA8(rm(K)))return A2("URL scheme must be a HTTP(S) scheme");return K.responseTainting="cors",await e17(A)})();if(q)return Y;if(Y.status!==0&&!Y.internalResponse){if(K.responseTainting==="cors");if(K.responseTainting==="basic")Y=gA8(Y,"basic");else if(K.responseTainting==="cors")Y=gA8(Y,"cors");else if(K.responseTainting==="opaque")Y=gA8(Y,"opaque");else ZK6(!1)}let z=Y.status===0?Y:Y.internalResponse;if(z.urlList.length===0)z.urlList.push(...K.urlList);if(!K.timingAllowFailed)Y.timingAllowPassed=!0;if(Y.type==="opaque"&&z.status===206&&z.rangeRequested&&!K.headers.contains("range",!0))Y=z=A2();if(Y.status!==0&&(K.method==="HEAD"||K.method==="CONNECT"||r17.includes(z.status)))z.body=null,A.controller.dump=!0;if(K.integrity){let w=($)=>QA8(A,A2($));if(K.responseTainting==="opaque"||Y.body==null){w(Y.error);return}let _=($)=>{if(!OZ3($,K.integrity)){w("integrity mismatch");return}Y.body=lA8($)[0],QA8(A,Y)};await kZ3(Y.body,_,w)}else QA8(A,Y)}function l17(A){if(GK6(A)&&A.request.redirectCount===0)return Promise.resolve(I91(A));let{request:q}=A,{protocol:K}=rm(q);switch(K){case"about:":return Promise.resolve(A2("about scheme is not supported"));case"blob:":{if(!pA8)pA8=u6("node:buffer").resolveObjectURL;let Y=rm(q);if(Y.search.length!==0)return Promise.resolve(A2("NetworkError when attempting to fetch resource."));let z=pA8(Y.toString());if(q.method!=="GET"||!VZ3(z))return Promise.resolve(A2("invalid method"));let w=x91(),_=z.size,$=b91(`${_}`),O=z.type;if(!q.headersList.contains("range",!0)){let H=d17(z);w.statusText="OK",w.body=H[0],w.headersList.set("content-length",$,!0),w.headersList.set("content-type",O,!0)}else{w.rangeRequested=!0;let H=q.headersList.get("range",!0),j=SZ3(H,!0);if(j==="failure")return Promise.resolve(A2("failed to fetch the data URL"));let{rangeStartValue:J,rangeEndValue:M}=j;if(J===null)J=_-M,M=J+M-1;else{if(J>=_)return Promise.resolve(A2("Range start is greater than the blob's size."));if(M===null||M>=_)M=_-1}let D=z.slice(J,M,O),X=d17(D);w.body=X[0];let P=b91(`${D.size}`),W=hZ3(J,M,_);w.status=206,w.statusText="Partial Content",w.headersList.set("content-length",P,!0),w.headersList.set("content-type",O,!0),w.headersList.set("content-range",W,!0)}return Promise.resolve(w)}case"data:":{let Y=rm(q),z=dZ3(Y);if(z==="failure")return Promise.resolve(A2("failed to fetch the data URL"));let w=cZ3(z.mimeType);return Promise.resolve(x91({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:w}]],body:lA8(z.body)[0]}))}case"file:":return Promise.resolve(A2("not implemented... yet..."));case"http:":case"https:":return e17(A).catch((Y)=>A2(Y));default:return Promise.resolve(A2("unknown scheme"))}}function eZ3(A,q){if(A.request.done=!0,A.processResponseDone!=null)queueMicrotask(()=>A.processResponseDone(q))}function QA8(A,q){let K=A.timingInfo,Y=()=>{let w=Date.now();if(A.request.destination==="document")A.controller.fullTimingInfo=K;A.controller.reportTimingSteps=()=>{if(A.request.url.protocol!=="https:")return;K.endTime=w;let{cacheState:$,bodyInfo:O}=q;if(!q.timingAllowPassed)K=dA8(K),$="";let H=0;if(A.request.mode!=="navigator"||!q.hasCrossOriginRedirects){H=q.status;let j=IZ3(q.headersList);if(j!=="failure")O.contentType=lZ3(j)}if(A.request.initiatorType!=null)a17(K,A.request.url.href,A.request.initiatorType,globalThis,$,O,H)};let _=()=>{if(A.request.done=!0,A.processResponseEndOfBody!=null)queueMicrotask(()=>A.processResponseEndOfBody(q));if(A.request.initiatorType!=null)A.controller.reportTimingSteps()};queueMicrotask(()=>_())};if(A.processResponse!=null)queueMicrotask(()=>{A.processResponse(q),A.processResponse=null});let z=q.type==="error"?q:q.internalResponse??q;if(z.body==null)Y();else FZ3(z.body.stream,()=>{Y()})}async function e17(A){let q=A.request,K=null,Y=null,z=A.timingInfo;if(q.serviceWorkers==="all");if(K===null){if(q.redirect==="follow")q.serviceWorkers="none";if(Y=K=await A87(A),q.responseTainting==="cors"&&ZZ3(q,K)==="failure")return A2("cors failure");if(MZ3(q,K)==="failure")q.timingAllowFailed=!0}if((q.responseTainting==="opaque"||K.type==="opaque")&&fZ3(q.origin,q.client,q.destination,Y)==="blocked")return A2("blocked");if(n17.has(Y.status)){if(q.redirect!=="manual")A.controller.connection.destroy(void 0,!1);if(q.redirect==="error")K=A2("unexpected redirect");else if(q.redirect==="manual")K=Y;else if(q.redirect==="follow")K=await Af3(A,K);else ZK6(!1)}return K.timingInfo=z,K}function Af3(A,q){let K=A.request,Y=q.internalResponse?q.internalResponse:q,z;try{if(z=XZ3(Y,rm(K).hash),z==null)return q}catch(_){return Promise.resolve(A2(_))}if(!cA8(z))return Promise.resolve(A2("URL scheme must be a HTTP(S) scheme"));if(K.redirectCount===20)return Promise.resolve(A2("redirect count exceeded"));if(K.redirectCount+=1,K.mode==="cors"&&(z.username||z.password)&&!UA8(K,z))return Promise.resolve(A2('cross origin not allowed for request mode "cors"'));if(K.responseTainting==="cors"&&(z.username||z.password))return Promise.resolve(A2('URL cannot contain credentials for request mode "cors"'));if(Y.status!==303&&K.body!=null&&K.body.source==null)return Promise.resolve(A2());if([301,302].includes(Y.status)&&K.method==="POST"||Y.status===303&&!oZ3.includes(K.method)){K.method="GET",K.body=null;for(let _ of uZ3)K.headersList.delete(_)}if(!UA8(rm(K),z))K.headersList.delete("authorization",!0),K.headersList.delete("proxy-authorization",!0),K.headersList.delete("cookie",!0),K.headersList.delete("host",!0);if(K.body!=null)ZK6(K.body.source!=null),K.body=lA8(K.body.source)[0];let w=A.timingInfo;if(w.redirectEndTime=w.postRedirectStartTime=Wx6(A.crossOriginIsolatedCapability),w.redirectStartTime===0)w.redirectStartTime=w.startTime;return K.urlList.push(z),PZ3(K,Y),t17(A,!0)}async function A87(A,q=!1,K=!1){let Y=A.request,z=null,w=null,_=null,$=null,O=!1;if(Y.window==="no-window"&&Y.redirect==="error")z=A,w=Y;else w=$Z3(Y),z={...A},z.request=w;let H=Y.credentials==="include"||Y.credentials==="same-origin"&&Y.responseTainting==="basic",j=w.body?w.body.length:null,J=null;if(w.body==null&&["POST","PUT"].includes(w.method))J="0";if(j!=null)J=b91(`${j}`);if(J!=null)w.headersList.append("content-length",J,!0);if(j!=null&&w.keepalive);if(w.referrer instanceof URL)w.headersList.append("referer",b91(w.referrer.href),!0);if(DZ3(w),GZ3(w),!w.headersList.contains("user-agent",!0))w.headersList.append("user-agent",aZ3);if(w.cache==="default"&&(w.headersList.contains("if-modified-since",!0)||w.headersList.contains("if-none-match",!0)||w.headersList.contains("if-unmodified-since",!0)||w.headersList.contains("if-match",!0)||w.headersList.contains("if-range",!0)))w.cache="no-store";if(w.cache==="no-cache"&&!w.preventNoCacheCacheControlHeaderModification&&!w.headersList.contains("cache-control",!0))w.headersList.append("cache-control","max-age=0",!0);if(w.cache==="no-store"||w.cache==="reload"){if(!w.headersList.contains("pragma",!0))w.headersList.append("pragma","no-cache",!0);if(!w.headersList.contains("cache-control",!0))w.headersList.append("cache-control","no-cache",!0)}if(w.headersList.contains("range",!0))w.headersList.append("accept-encoding","identity",!0);if(!w.headersList.contains("accept-encoding",!0))if(yZ3(rm(w)))w.headersList.append("accept-encoding","br, gzip, deflate",!0);else w.headersList.append("accept-encoding","gzip, deflate",!0);if(w.headersList.delete("host",!0),$==null)w.cache="no-store";if(w.cache!=="no-store"&&w.cache!=="reload");if(_==null){if(w.cache==="only-if-cached")return A2("only if cached");let M=await qf3(z,H,K);if(!bZ3.has(w.method)&&M.status>=200&&M.status<=399);if(O&&M.status===304);if(_==null)_=M}if(_.urlList=[...w.urlList],w.headersList.contains("range",!0))_.rangeRequested=!0;if(_.requestIncludesCredentials=H,_.status===407){if(Y.window==="no-window")return A2();if(GK6(A))return I91(A);return A2("proxy authentication required")}if(_.status===421&&!K&&(Y.body==null||Y.body.source!=null)){if(GK6(A))return I91(A);A.controller.connection.destroy(),_=await A87(A,q,!0)}return _}async function qf3(A,q=!1,K=!1){ZK6(!A.controller.connection||A.controller.connection.destroyed),A.controller.connection={abort:null,destroyed:!1,destroy(X,P=!0){if(!this.destroyed){if(this.destroyed=!0,P)this.abort?.(X??new DOMException("The operation was aborted.","AbortError"))}}};let Y=A.request,z=null,w=A.timingInfo;if(!0)Y.cache="no-store";let $=K?"yes":"no";if(Y.mode==="websocket");let O=null;if(Y.body==null&&A.processRequestEndOfBody)queueMicrotask(()=>A.processRequestEndOfBody());else if(Y.body!=null){let X=async function*(G){if(GK6(A))return;yield G,A.processRequestBodyChunkLength?.(G.byteLength)},P=()=>{if(GK6(A))return;if(A.processRequestEndOfBody)A.processRequestEndOfBody()},W=(G)=>{if(GK6(A))return;if(G.name==="AbortError")A.controller.abort();else A.controller.terminate(G)};O=async function*(){try{for await(let G of Y.body.stream)yield*X(G);P()}catch(G){W(G)}}()}try{let{body:X,status:P,statusText:W,headersList:G,socket:Z}=await D({body:O});if(Z)z=x91({status:P,statusText:W,headersList:G,socket:Z});else{let f=X[Symbol.asyncIterator]();A.controller.next=()=>f.next(),z=x91({status:P,statusText:W,headersList:G})}}catch(X){if(X.name==="AbortError")return A.controller.connection.destroy(),I91(A,X);return A2(X)}let H=async()=>{await A.controller.resume()},j=(X)=>{if(!GK6(A))A.controller.abort(X)},J=new ReadableStream({async start(X){A.controller.controller=X},async pull(X){await H(X)},async cancel(X){await j(X)},type:"bytes"});z.body={stream:J,source:null,length:null},A.controller.onAborted=M,A.controller.on("terminated",M),A.controller.resume=async()=>{while(!0){let X,P;try{let{done:G,value:Z}=await A.controller.next();if(U17(A))break;X=G?void 0:Z}catch(G){if(A.controller.ended&&!w.encodedBodySize)X=void 0;else X=G,P=!0}if(X===void 0){EZ3(A.controller.controller),eZ3(A,z);return}if(w.decodedBodySize+=X?.byteLength??0,P){A.controller.terminate(X);return}let W=new Uint8Array(X);if(W.byteLength)A.controller.controller.enqueue(W);if(UZ3(J)){A.controller.terminate();return}if(A.controller.controller.desiredSize<=0)return}};function M(X){if(U17(A)){if(z.aborted=!0,u91(J))A.controller.controller.error(A.controller.serializedAbortReason)}else if(u91(J))A.controller.controller.error(TypeError("terminated",{cause:NZ3(X)?X:void 0}));A.controller.connection.destroy()}return z;function D({body:X}){let P=rm(Y),W=A.controller.dispatcher;return new Promise((G,Z)=>W.dispatch({path:P.pathname+P.search,origin:P.origin,method:Y.method,body:W.isMockActive?Y.body&&(Y.body.source||Y.body.stream):X,headers:Y.headersList.entries,maxRedirections:0,upgrade:Y.mode==="websocket"?"websocket":void 0},{body:null,abort:null,onConnect(f){let{connection:v}=A.controller;if(w.finalConnectionTimingInfo=RZ3(void 0,w.postRedirectStartTime,A.crossOriginIsolatedCapability),v.destroyed)f(new DOMException("The operation was aborted.","AbortError"));else A.controller.on("terminated",f),this.abort=v.abort=f;w.finalNetworkRequestStartTime=Wx6(A.crossOriginIsolatedCapability)},onResponseStarted(){w.finalNetworkResponseStartTime=Wx6(A.crossOriginIsolatedCapability)},onHeaders(f,v,V,N){if(f<200)return;let L=[],S="",C=new Q17;for(let b=0;b<v.length;b+=2)C.append(c17(v[b]),v[b+1].toString("latin1"),!0);let m=C.get("content-encoding",!0);if(m)L=m.toLowerCase().split(",").map((b)=>b.trim());S=C.get("location",!0),this.body=new gZ3({read:V});let x=[],p=S&&Y.redirect==="follow"&&n17.has(f);if(L.length!==0&&Y.method!=="HEAD"&&Y.method!=="CONNECT"&&!r17.includes(f)&&!p)for(let b=L.length-1;b>=0;--b){let Q=L[b];if(Q==="x-gzip"||Q==="gzip")x.push(Ls.createGunzip({flush:Ls.constants.Z_SYNC_FLUSH,finishFlush:Ls.constants.Z_SYNC_FLUSH}));else if(Q==="deflate")x.push(CZ3({flush:Ls.constants.Z_SYNC_FLUSH,finishFlush:Ls.constants.Z_SYNC_FLUSH}));else if(Q==="br")x.push(Ls.createBrotliDecompress({flush:Ls.constants.BROTLI_OPERATION_FLUSH,finishFlush:Ls.constants.BROTLI_OPERATION_FLUSH}));else{x.length=0;break}}let g=this.onError.bind(this);return G({status:f,statusText:N,headersList:C,body:x.length?pZ3(this.body,...x,(b)=>{if(b)this.onError(b)}).on("error",g):this.body.on("error",g)}),!0},onData(f){if(A.controller.dump)return;let v=f;return w.encodedBodySize+=v.byteLength,this.body.push(v)},onComplete(){if(this.abort)A.controller.off("terminated",this.abort);if(A.controller.onAborted)A.controller.off("terminated",A.controller.onAborted);A.controller.ended=!0,this.body.push(null)},onError(f){if(this.abort)A.controller.off("terminated",this.abort);this.body?.destroy(f),A.controller.terminate(f),Z(f)},onUpgrade(f,v,V){if(f!==101)return;let N=new Q17;for(let L=0;L<v.length;L+=2)N.append(c17(v[L]),v[L+1].toString("latin1"),!0);return G({status:f,statusText:rZ3[f],headersList:N,socket:V}),!0}}))}}q87.exports={fetch:tZ3,Fetch:iA8,fetching:s17,finalizeAndReportTiming:o17}});var nA8=h((W32,K87)=>{K87.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}});var z87=h((G32,Y87)=>{var{webidl:Ek}=D0(),m91=Symbol("ProgressEvent state");class Zx6 extends Event{constructor(A,q={}){A=Ek.converters.DOMString(A,"ProgressEvent constructor","type"),q=Ek.converters.ProgressEventInit(q??{});super(A,q);this[m91]={lengthComputable:q.lengthComputable,loaded:q.loaded,total:q.total}}get lengthComputable(){return Ek.brandCheck(this,Zx6),this[m91].lengthComputable}get loaded(){return Ek.brandCheck(this,Zx6),this[m91].loaded}get total(){return Ek.brandCheck(this,Zx6),this[m91].total}}Ek.converters.ProgressEventInit=Ek.dictionaryConverter([{key:"lengthComputable",converter:Ek.converters.boolean,defaultValue:()=>!1},{key:"loaded",converter:Ek.converters["unsigned long long"],defaultValue:()=>0},{key:"total",converter:Ek.converters["unsigned long long"],defaultValue:()=>0},{key:"bubbles",converter:Ek.converters.boolean,defaultValue:()=>!1},{key:"cancelable",converter:Ek.converters.boolean,defaultValue:()=>!1},{key:"composed",converter:Ek.converters.boolean,defaultValue:()=>!1}]);Y87.exports={ProgressEvent:Zx6}});var _87=h((Z32,w87)=>{function Kf3(A){if(!A)return"failure";switch(A.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}w87.exports={getEncoding:Kf3}});var X87=h((f32,D87)=>{var{kState:vD6,kError:rA8,kResult:$87,kAborted:fx6,kLastProgressEventFired:oA8}=nA8(),{ProgressEvent:Yf3}=z87(),{getEncoding:O87}=_87(),{serializeAMimeType:zf3,parseMIMEType:H87}=Sv(),{types:wf3}=u6("node:util"),{StringDecoder:j87}=u6("string_decoder"),{btoa:J87}=u6("node:buffer"),_f3={enumerable:!0,writable:!1,configurable:!1};function $f3(A,q,K,Y){if(A[vD6]==="loading")throw new DOMException("Invalid state","InvalidStateError");A[vD6]="loading",A[$87]=null,A[rA8]=null;let w=q.stream().getReader(),_=[],$=w.read(),O=!0;(async()=>{while(!A[fx6])try{let{done:H,value:j}=await $;if(O&&!A[fx6])queueMicrotask(()=>{ys("loadstart",A)});if(O=!1,!H&&wf3.isUint8Array(j)){if(_.push(j),(A[oA8]===void 0||Date.now()-A[oA8]>=50)&&!A[fx6])A[oA8]=Date.now(),queueMicrotask(()=>{ys("progress",A)});$=w.read()}else if(H){queueMicrotask(()=>{A[vD6]="done";try{let J=Of3(_,K,q.type,Y);if(A[fx6])return;A[$87]=J,ys("load",A)}catch(J){A[rA8]=J,ys("error",A)}if(A[vD6]!=="loading")ys("loadend",A)});break}}catch(H){if(A[fx6])return;queueMicrotask(()=>{if(A[vD6]="done",A[rA8]=H,ys("error",A),A[vD6]!=="loading")ys("loadend",A)});break}})()}function ys(A,q){let K=new Yf3(A,{bubbles:!1,cancelable:!1});q.dispatchEvent(K)}function Of3(A,q,K,Y){switch(q){case"DataURL":{let z="data:",w=H87(K||"application/octet-stream");if(w!=="failure")z+=zf3(w);z+=";base64,";let _=new j87("latin1");for(let $ of A)z+=J87(_.write($));return z+=J87(_.end()),z}case"Text":{let z="failure";if(Y)z=O87(Y);if(z==="failure"&&K){let w=H87(K);if(w!=="failure")z=O87(w.parameters.get("charset"))}if(z==="failure")z="UTF-8";return Hf3(A,z)}case"ArrayBuffer":return M87(A).buffer;case"BinaryString":{let z="",w=new j87("latin1");for(let _ of A)z+=w.write(_);return z+=w.end(),z}}}function Hf3(A,q){let K=M87(A),Y=jf3(K),z=0;if(Y!==null)q=Y,z=Y==="UTF-8"?3:2;let w=K.slice(z);return new TextDecoder(q).decode(w)}function jf3(A){let[q,K,Y]=A;if(q===239&&K===187&&Y===191)return"UTF-8";else if(q===254&&K===255)return"UTF-16BE";else if(q===255&&K===254)return"UTF-16LE";return null}function M87(A){let q=A.reduce((Y,z)=>{return Y+z.byteLength},0),K=0;return A.reduce((Y,z)=>{return Y.set(z,K),K+=z.byteLength,Y},new Uint8Array(q))}D87.exports={staticPropertyDescriptors:_f3,readOperation:$f3,fireAProgressEvent:ys}});var Z87=h((T32,G87)=>{var{staticPropertyDescriptors:VD6,readOperation:B91,fireAProgressEvent:P87}=X87(),{kState:fK6,kError:W87,kResult:g91,kEvents:zw,kAborted:Jf3}=nA8(),{webidl:R2}=D0(),{kEnumerableProperty:Iv}=E9();class q2 extends EventTarget{constructor(){super();this[fK6]="empty",this[g91]=null,this[W87]=null,this[zw]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(A){R2.brandCheck(this,q2),R2.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer"),A=R2.converters.Blob(A,{strict:!1}),B91(this,A,"ArrayBuffer")}readAsBinaryString(A){R2.brandCheck(this,q2),R2.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString"),A=R2.converters.Blob(A,{strict:!1}),B91(this,A,"BinaryString")}readAsText(A,q=void 0){if(R2.brandCheck(this,q2),R2.argumentLengthCheck(arguments,1,"FileReader.readAsText"),A=R2.converters.Blob(A,{strict:!1}),q!==void 0)q=R2.converters.DOMString(q,"FileReader.readAsText","encoding");B91(this,A,"Text",q)}readAsDataURL(A){R2.brandCheck(this,q2),R2.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL"),A=R2.converters.Blob(A,{strict:!1}),B91(this,A,"DataURL")}abort(){if(this[fK6]==="empty"||this[fK6]==="done"){this[g91]=null;return}if(this[fK6]==="loading")this[fK6]="done",this[g91]=null;if(this[Jf3]=!0,P87("abort",this),this[fK6]!=="loading")P87("loadend",this)}get readyState(){switch(R2.brandCheck(this,q2),this[fK6]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return R2.brandCheck(this,q2),this[g91]}get error(){return R2.brandCheck(this,q2),this[W87]}get onloadend(){return R2.brandCheck(this,q2),this[zw].loadend}set onloadend(A){if(R2.brandCheck(this,q2),this[zw].loadend)this.removeEventListener("loadend",this[zw].loadend);if(typeof A==="function")this[zw].loadend=A,this.addEventListener("loadend",A);else this[zw].loadend=null}get onerror(){return R2.brandCheck(this,q2),this[zw].error}set onerror(A){if(R2.brandCheck(this,q2),this[zw].error)this.removeEventListener("error",this[zw].error);if(typeof A==="function")this[zw].error=A,this.addEventListener("error",A);else this[zw].error=null}get onloadstart(){return R2.brandCheck(this,q2),this[zw].loadstart}set onloadstart(A){if(R2.brandCheck(this,q2),this[zw].loadstart)this.removeEventListener("loadstart",this[zw].loadstart);if(typeof A==="function")this[zw].loadstart=A,this.addEventListener("loadstart",A);else this[zw].loadstart=null}get onprogress(){return R2.brandCheck(this,q2),this[zw].progress}set onprogress(A){if(R2.brandCheck(this,q2),this[zw].progress)this.removeEventListener("progress",this[zw].progress);if(typeof A==="function")this[zw].progress=A,this.addEventListener("progress",A);else this[zw].progress=null}get onload(){return R2.brandCheck(this,q2),this[zw].load}set onload(A){if(R2.brandCheck(this,q2),this[zw].load)this.removeEventListener("load",this[zw].load);if(typeof A==="function")this[zw].load=A,this.addEventListener("load",A);else this[zw].load=null}get onabort(){return R2.brandCheck(this,q2),this[zw].abort}set onabort(A){if(R2.brandCheck(this,q2),this[zw].abort)this.removeEventListener("abort",this[zw].abort);if(typeof A==="function")this[zw].abort=A,this.addEventListener("abort",A);else this[zw].abort=null}}q2.EMPTY=q2.prototype.EMPTY=0;q2.LOADING=q2.prototype.LOADING=1;q2.DONE=q2.prototype.DONE=2;Object.defineProperties(q2.prototype,{EMPTY:VD6,LOADING:VD6,DONE:VD6,readAsArrayBuffer:Iv,readAsBinaryString:Iv,readAsText:Iv,readAsDataURL:Iv,abort:Iv,readyState:Iv,result:Iv,error:Iv,onloadstart:Iv,onprogress:Iv,onload:Iv,onabort:Iv,onerror:Iv,onloadend:Iv,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(q2,{EMPTY:VD6,LOADING:VD6,DONE:VD6});G87.exports={FileReader:q2}});var p91=h((v32,f87)=>{f87.exports={kConstruct:yO().kConstruct}});var V87=h((V32,v87)=>{var Mf3=u6("node:assert"),{URLSerializer:T87}=Sv(),{isValidHeaderName:Df3}=fk();function Xf3(A,q,K=!1){let Y=T87(A,K),z=T87(q,K);return Y===z}function Pf3(A){Mf3(A!==null);let q=[];for(let K of A.split(","))if(K=K.trim(),Df3(K))q.push(K);return q}v87.exports={urlEquals:Xf3,getFieldValues:Pf3}});var E87=h((N32,k87)=>{var{kConstruct:Wf3}=p91(),{urlEquals:Gf3,getFieldValues:aA8}=V87(),{kEnumerableProperty:TK6,isDisturbed:Zf3}=E9(),{webidl:qK}=D0(),{Response:ff3,cloneResponse:Tf3,fromInnerResponse:vf3}=Px6(),{Request:Xd,fromInnerRequest:Vf3}=TD6(),{kState:qI}=Xs(),{fetching:Nf3}=Gx6(),{urlIsHttpHttpsScheme:F91,createDeferredPromise:ND6,readAllBytes:kf3}=fk(),sA8=u6("node:assert");class om{#A;constructor(){if(arguments[0]!==Wf3)qK.illegalConstructor();qK.util.markAsUncloneable(this),this.#A=arguments[1]}async match(A,q={}){qK.brandCheck(this,om);let K="Cache.match";qK.argumentLengthCheck(arguments,1,K),A=qK.converters.RequestInfo(A,K,"request"),q=qK.converters.CacheQueryOptions(q,K,"options");let Y=this.#Y(A,q,1);if(Y.length===0)return;return Y[0]}async matchAll(A=void 0,q={}){qK.brandCheck(this,om);let K="Cache.matchAll";if(A!==void 0)A=qK.converters.RequestInfo(A,K,"request");return q=qK.converters.CacheQueryOptions(q,K,"options"),this.#Y(A,q)}async add(A){qK.brandCheck(this,om);let q="Cache.add";qK.argumentLengthCheck(arguments,1,q),A=qK.converters.RequestInfo(A,q,"request");let K=[A];return await this.addAll(K)}async addAll(A){qK.brandCheck(this,om);let q="Cache.addAll";qK.argumentLengthCheck(arguments,1,q);let K=[],Y=[];for(let J of A){if(J===void 0)throw qK.errors.conversionFailed({prefix:q,argument:"Argument 1",types:["undefined is not allowed"]});if(J=qK.converters.RequestInfo(J),typeof J==="string")continue;let M=J[qI];if(!F91(M.url)||M.method!=="GET")throw qK.errors.exception({header:q,message:"Expected http/s scheme when method is not GET."})}let z=[];for(let J of A){let M=new Xd(J)[qI];if(!F91(M.url))throw qK.errors.exception({header:q,message:"Expected http/s scheme."});M.initiator="fetch",M.destination="subresource",Y.push(M);let D=ND6();z.push(Nf3({request:M,processResponse(X){if(X.type==="error"||X.status===206||X.status<200||X.status>299)D.reject(qK.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(X.headersList.contains("vary")){let P=aA8(X.headersList.get("vary"));for(let W of P)if(W==="*"){D.reject(qK.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let G of z)G.abort();return}}},processResponseEndOfBody(X){if(X.aborted){D.reject(new DOMException("aborted","AbortError"));return}D.resolve(X)}})),K.push(D.promise)}let _=await Promise.all(K),$=[],O=0;for(let J of _){let M={type:"put",request:Y[O],response:J};$.push(M),O++}let H=ND6(),j=null;try{this.#q($)}catch(J){j=J}return queueMicrotask(()=>{if(j===null)H.resolve(void 0);else H.reject(j)}),H.promise}async put(A,q){qK.brandCheck(this,om);let K="Cache.put";qK.argumentLengthCheck(arguments,2,K),A=qK.converters.RequestInfo(A,K,"request"),q=qK.converters.Response(q,K,"response");let Y=null;if(A instanceof Xd)Y=A[qI];else Y=new Xd(A)[qI];if(!F91(Y.url)||Y.method!=="GET")throw qK.errors.exception({header:K,message:"Expected an http/s scheme when method is not GET"});let z=q[qI];if(z.status===206)throw qK.errors.exception({header:K,message:"Got 206 status"});if(z.headersList.contains("vary")){let M=aA8(z.headersList.get("vary"));for(let D of M)if(D==="*")throw qK.errors.exception({header:K,message:"Got * vary field value"})}if(z.body&&(Zf3(z.body.stream)||z.body.stream.locked))throw qK.errors.exception({header:K,message:"Response body is locked or disturbed"});let w=Tf3(z),_=ND6();if(z.body!=null){let D=z.body.stream.getReader();kf3(D).then(_.resolve,_.reject)}else _.resolve(void 0);let $=[],O={type:"put",request:Y,response:w};$.push(O);let H=await _.promise;if(w.body!=null)w.body.source=H;let j=ND6(),J=null;try{this.#q($)}catch(M){J=M}return queueMicrotask(()=>{if(J===null)j.resolve();else j.reject(J)}),j.promise}async delete(A,q={}){qK.brandCheck(this,om);let K="Cache.delete";qK.argumentLengthCheck(arguments,1,K),A=qK.converters.RequestInfo(A,K,"request"),q=qK.converters.CacheQueryOptions(q,K,"options");let Y=null;if(A instanceof Xd){if(Y=A[qI],Y.method!=="GET"&&!q.ignoreMethod)return!1}else sA8(typeof A==="string"),Y=new Xd(A)[qI];let z=[],w={type:"delete",request:Y,options:q};z.push(w);let _=ND6(),$=null,O;try{O=this.#q(z)}catch(H){$=H}return queueMicrotask(()=>{if($===null)_.resolve(!!O?.length);else _.reject($)}),_.promise}async keys(A=void 0,q={}){qK.brandCheck(this,om);let K="Cache.keys";if(A!==void 0)A=qK.converters.RequestInfo(A,K,"request");q=qK.converters.CacheQueryOptions(q,K,"options");let Y=null;if(A!==void 0){if(A instanceof Xd){if(Y=A[qI],Y.method!=="GET"&&!q.ignoreMethod)return[]}else if(typeof A==="string")Y=new Xd(A)[qI]}let z=ND6(),w=[];if(A===void 0)for(let _ of this.#A)w.push(_[0]);else{let _=this.#K(Y,q);for(let $ of _)w.push($[0])}return queueMicrotask(()=>{let _=[];for(let $ of w){let O=Vf3($,new AbortController().signal,"immutable");_.push(O)}z.resolve(Object.freeze(_))}),z.promise}#q(A){let q=this.#A,K=[...q],Y=[],z=[];try{for(let w of A){if(w.type!=="delete"&&w.type!=="put")throw qK.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if(w.type==="delete"&&w.response!=null)throw qK.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(this.#K(w.request,w.options,Y).length)throw new DOMException("???","InvalidStateError");let _;if(w.type==="delete"){if(_=this.#K(w.request,w.options),_.length===0)return[];for(let $ of _){let O=q.indexOf($);sA8(O!==-1),q.splice(O,1)}}else if(w.type==="put"){if(w.response==null)throw qK.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let $=w.request;if(!F91($.url))throw qK.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if($.method!=="GET")throw qK.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(w.options!=null)throw qK.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});_=this.#K(w.request);for(let O of _){let H=q.indexOf(O);sA8(H!==-1),q.splice(H,1)}q.push([w.request,w.response]),Y.push([w.request,w.response])}z.push([w.request,w.response])}return z}catch(w){throw this.#A.length=0,this.#A=K,w}}#K(A,q,K){let Y=[],z=K??this.#A;for(let w of z){let[_,$]=w;if(this.#z(A,_,$,q))Y.push(w)}return Y}#z(A,q,K=null,Y){let z=new URL(A.url),w=new URL(q.url);if(Y?.ignoreSearch)w.search="",z.search="";if(!Gf3(z,w,!0))return!1;if(K==null||Y?.ignoreVary||!K.headersList.contains("vary"))return!0;let _=aA8(K.headersList.get("vary"));for(let $ of _){if($==="*")return!1;let O=q.headersList.get($),H=A.headersList.get($);if(O!==H)return!1}return!0}#Y(A,q,K=1/0){let Y=null;if(A!==void 0){if(A instanceof Xd){if(Y=A[qI],Y.method!=="GET"&&!q.ignoreMethod)return[]}else if(typeof A==="string")Y=new Xd(A)[qI]}let z=[];if(A===void 0)for(let _ of this.#A)z.push(_[1]);else{let _=this.#K(Y,q);for(let $ of _)z.push($[1])}let w=[];for(let _ of z){let $=vf3(_,"immutable");if(w.push($.clone()),w.length>=K)break}return Object.freeze(w)}}Object.defineProperties(om.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:TK6,matchAll:TK6,add:TK6,addAll:TK6,put:TK6,delete:TK6,keys:TK6});var N87=[{key:"ignoreSearch",converter:qK.converters.boolean,defaultValue:()=>!1},{key:"ignoreMethod",converter:qK.converters.boolean,defaultValue:()=>!1},{key:"ignoreVary",converter:qK.converters.boolean,defaultValue:()=>!1}];qK.converters.CacheQueryOptions=qK.dictionaryConverter(N87);qK.converters.MultiCacheQueryOptions=qK.dictionaryConverter([...N87,{key:"cacheName",converter:qK.converters.DOMString}]);qK.converters.Response=qK.interfaceConverter(ff3);qK.converters["sequence<RequestInfo>"]=qK.sequenceConverter(qK.converters.RequestInfo);k87.exports={Cache:om}});var y87=h((k32,L87)=>{var{kConstruct:Tx6}=p91(),{Cache:Q91}=E87(),{webidl:PG}=D0(),{kEnumerableProperty:vx6}=E9();class Rs{#A=new Map;constructor(){if(arguments[0]!==Tx6)PG.illegalConstructor();PG.util.markAsUncloneable(this)}async match(A,q={}){if(PG.brandCheck(this,Rs),PG.argumentLengthCheck(arguments,1,"CacheStorage.match"),A=PG.converters.RequestInfo(A),q=PG.converters.MultiCacheQueryOptions(q),q.cacheName!=null){if(this.#A.has(q.cacheName)){let K=this.#A.get(q.cacheName);return await new Q91(Tx6,K).match(A,q)}}else for(let K of this.#A.values()){let z=await new Q91(Tx6,K).match(A,q);if(z!==void 0)return z}}async has(A){PG.brandCheck(this,Rs);let q="CacheStorage.has";return PG.argumentLengthCheck(arguments,1,q),A=PG.converters.DOMString(A,q,"cacheName"),this.#A.has(A)}async open(A){PG.brandCheck(this,Rs);let q="CacheStorage.open";if(PG.argumentLengthCheck(arguments,1,q),A=PG.converters.DOMString(A,q,"cacheName"),this.#A.has(A)){let Y=this.#A.get(A);return new Q91(Tx6,Y)}let K=[];return this.#A.set(A,K),new Q91(Tx6,K)}async delete(A){PG.brandCheck(this,Rs);let q="CacheStorage.delete";return PG.argumentLengthCheck(arguments,1,q),A=PG.converters.DOMString(A,q,"cacheName"),this.#A.delete(A)}async keys(){return PG.brandCheck(this,Rs),[...this.#A.keys()]}}Object.defineProperties(Rs.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:vx6,has:vx6,open:vx6,delete:vx6,keys:vx6});L87.exports={CacheStorage:Rs}});var S87=h((E32,R87)=>{R87.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var tA8=h((L32,b87)=>{function Ef3(A){for(let q=0;q<A.length;++q){let K=A.charCodeAt(q);if(K>=0&&K<=8||K>=10&&K<=31||K===127)return!0}return!1}function h87(A){for(let q=0;q<A.length;++q){let K=A.charCodeAt(q);if(K<33||K>126||K===34||K===40||K===41||K===60||K===62||K===64||K===44||K===59||K===58||K===92||K===47||K===91||K===93||K===63||K===61||K===123||K===125)throw Error("Invalid cookie name")}}function C87(A){let q=A.length,K=0;if(A[0]==='"'){if(q===1||A[q-1]!=='"')throw Error("Invalid cookie value");--q,++K}while(K<q){let Y=A.charCodeAt(K++);if(Y<33||Y>126||Y===34||Y===44||Y===59||Y===92)throw Error("Invalid cookie value")}}function I87(A){for(let q=0;q<A.length;++q){let K=A.charCodeAt(q);if(K<32||K===127||K===59)throw Error("Invalid cookie path")}}function Lf3(A){if(A.startsWith("-")||A.endsWith(".")||A.endsWith("-"))throw Error("Invalid cookie domain")}var yf3=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Rf3=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],U91=Array(61).fill(0).map((A,q)=>q.toString().padStart(2,"0"));function x87(A){if(typeof A==="number")A=new Date(A);return`${yf3[A.getUTCDay()]}, ${U91[A.getUTCDate()]} ${Rf3[A.getUTCMonth()]} ${A.getUTCFullYear()} ${U91[A.getUTCHours()]}:${U91[A.getUTCMinutes()]}:${U91[A.getUTCSeconds()]} GMT`}function Sf3(A){if(A<0)throw Error("Invalid cookie max-age")}function hf3(A){if(A.name.length===0)return null;h87(A.name),C87(A.value);let q=[`${A.name}=${A.value}`];if(A.name.startsWith("__Secure-"))A.secure=!0;if(A.name.startsWith("__Host-"))A.secure=!0,A.domain=null,A.path="/";if(A.secure)q.push("Secure");if(A.httpOnly)q.push("HttpOnly");if(typeof A.maxAge==="number")Sf3(A.maxAge),q.push(`Max-Age=${A.maxAge}`);if(A.domain)Lf3(A.domain),q.push(`Domain=${A.domain}`);if(A.path)I87(A.path),q.push(`Path=${A.path}`);if(A.expires&&A.expires.toString()!=="Invalid Date")q.push(`Expires=${x87(A.expires)}`);if(A.sameSite)q.push(`SameSite=${A.sameSite}`);for(let K of A.unparsed){if(!K.includes("="))throw Error("Invalid unparsed");let[Y,...z]=K.split("=");q.push(`${Y.trim()}=${z.join("=")}`)}return q.join("; ")}b87.exports={isCTLExcludingHtab:Ef3,validateCookieName:h87,validateCookiePath:I87,validateCookieValue:C87,toIMFDate:x87,stringify:hf3}});var m87=h((y32,u87)=>{var{maxNameValuePairSize:Cf3,maxAttributeValueSize:If3}=S87(),{isCTLExcludingHtab:xf3}=tA8(),{collectASequenceOfCodePointsFast:d91}=Sv(),bf3=u6("node:assert");function uf3(A){if(xf3(A))return null;let q="",K="",Y="",z="";if(A.includes(";")){let w={position:0};q=d91(";",A,w),K=A.slice(w.position)}else q=A;if(!q.includes("="))z=q;else{let w={position:0};Y=d91("=",q,w),z=q.slice(w.position+1)}if(Y=Y.trim(),z=z.trim(),Y.length+z.length>Cf3)return null;return{name:Y,value:z,...kD6(K)}}function kD6(A,q={}){if(A.length===0)return q;bf3(A[0]===";"),A=A.slice(1);let K="";if(A.includes(";"))K=d91(";",A,{position:0}),A=A.slice(K.length);else K=A,A="";let Y="",z="";if(K.includes("=")){let _={position:0};Y=d91("=",K,_),z=K.slice(_.position+1)}else Y=K;if(Y=Y.trim(),z=z.trim(),z.length>If3)return kD6(A,q);let w=Y.toLowerCase();if(w==="expires"){let _=new Date(z);q.expires=_}else if(w==="max-age"){let _=z.charCodeAt(0);if((_<48||_>57)&&z[0]!=="-")return kD6(A,q);if(!/^\d+$/.test(z))return kD6(A,q);let $=Number(z);q.maxAge=$}else if(w==="domain"){let _=z;if(_[0]===".")_=_.slice(1);_=_.toLowerCase(),q.domain=_}else if(w==="path"){let _="";if(z.length===0||z[0]!=="/")_="/";else _=z;q.path=_}else if(w==="secure")q.secure=!0;else if(w==="httponly")q.httpOnly=!0;else if(w==="samesite"){let _="Default",$=z.toLowerCase();if($.includes("none"))_="None";if($.includes("strict"))_="Strict";if($.includes("lax"))_="Lax";q.sameSite=_}else q.unparsed??=[],q.unparsed.push(`${Y}=${z}`);return kD6(A,q)}u87.exports={parseSetCookie:uf3,parseUnparsedAttributes:kD6}});var p87=h((R32,g87)=>{var{parseSetCookie:mf3}=m87(),{stringify:Bf3}=tA8(),{webidl:JY}=D0(),{Headers:c91}=WK6();function gf3(A){JY.argumentLengthCheck(arguments,1,"getCookies"),JY.brandCheck(A,c91,{strict:!1});let q=A.get("cookie"),K={};if(!q)return K;for(let Y of q.split(";")){let[z,...w]=Y.split("=");K[z.trim()]=w.join("=")}return K}function pf3(A,q,K){JY.brandCheck(A,c91,{strict:!1});let Y="deleteCookie";JY.argumentLengthCheck(arguments,2,Y),q=JY.converters.DOMString(q,Y,"name"),K=JY.converters.DeleteCookieAttributes(K),B87(A,{name:q,value:"",expires:new Date(0),...K})}function Ff3(A){JY.argumentLengthCheck(arguments,1,"getSetCookies"),JY.brandCheck(A,c91,{strict:!1});let q=A.getSetCookie();if(!q)return[];return q.map((K)=>mf3(K))}function B87(A,q){JY.argumentLengthCheck(arguments,2,"setCookie"),JY.brandCheck(A,c91,{strict:!1}),q=JY.converters.Cookie(q);let K=Bf3(q);if(K)A.append("Set-Cookie",K)}JY.converters.DeleteCookieAttributes=JY.dictionaryConverter([{converter:JY.nullableConverter(JY.converters.DOMString),key:"path",defaultValue:()=>null},{converter:JY.nullableConverter(JY.converters.DOMString),key:"domain",defaultValue:()=>null}]);JY.converters.Cookie=JY.dictionaryConverter([{converter:JY.converters.DOMString,key:"name"},{converter:JY.converters.DOMString,key:"value"},{converter:JY.nullableConverter((A)=>{if(typeof A==="number")return JY.converters["unsigned long long"](A);return new Date(A)}),key:"expires",defaultValue:()=>null},{converter:JY.nullableConverter(JY.converters["long long"]),key:"maxAge",defaultValue:()=>null},{converter:JY.nullableConverter(JY.converters.DOMString),key:"domain",defaultValue:()=>null},{converter:JY.nullableConverter(JY.converters.DOMString),key:"path",defaultValue:()=>null},{converter:JY.nullableConverter(JY.converters.boolean),key:"secure",defaultValue:()=>null},{converter:JY.nullableConverter(JY.converters.boolean),key:"httpOnly",defaultValue:()=>null},{converter:JY.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:JY.sequenceConverter(JY.converters.DOMString),key:"unparsed",defaultValue:()=>[]}]);g87.exports={getCookies:gf3,deleteCookie:pf3,getSetCookies:Ff3,setCookie:B87}});var LD6=h((S32,Q87)=>{var{webidl:cq}=D0(),{kEnumerableProperty:xv}=E9(),{kConstruct:F87}=yO(),{MessagePort:Qf3}=u6("node:worker_threads");class Lk extends Event{#A;constructor(A,q={}){if(A===F87){super(arguments[1],arguments[2]);cq.util.markAsUncloneable(this);return}let K="MessageEvent constructor";cq.argumentLengthCheck(arguments,1,K),A=cq.converters.DOMString(A,K,"type"),q=cq.converters.MessageEventInit(q,K,"eventInitDict");super(A,q);this.#A=q,cq.util.markAsUncloneable(this)}get data(){return cq.brandCheck(this,Lk),this.#A.data}get origin(){return cq.brandCheck(this,Lk),this.#A.origin}get lastEventId(){return cq.brandCheck(this,Lk),this.#A.lastEventId}get source(){return cq.brandCheck(this,Lk),this.#A.source}get ports(){if(cq.brandCheck(this,Lk),!Object.isFrozen(this.#A.ports))Object.freeze(this.#A.ports);return this.#A.ports}initMessageEvent(A,q=!1,K=!1,Y=null,z="",w="",_=null,$=[]){return cq.brandCheck(this,Lk),cq.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent"),new Lk(A,{bubbles:q,cancelable:K,data:Y,origin:z,lastEventId:w,source:_,ports:$})}static createFastMessageEvent(A,q){let K=new Lk(F87,A,q);return K.#A=q,K.#A.data??=null,K.#A.origin??="",K.#A.lastEventId??="",K.#A.source??=null,K.#A.ports??=[],K}}var{createFastMessageEvent:Uf3}=Lk;delete Lk.createFastMessageEvent;class ED6 extends Event{#A;constructor(A,q={}){cq.argumentLengthCheck(arguments,1,"CloseEvent constructor"),A=cq.converters.DOMString(A,"CloseEvent constructor","type"),q=cq.converters.CloseEventInit(q);super(A,q);this.#A=q,cq.util.markAsUncloneable(this)}get wasClean(){return cq.brandCheck(this,ED6),this.#A.wasClean}get code(){return cq.brandCheck(this,ED6),this.#A.code}get reason(){return cq.brandCheck(this,ED6),this.#A.reason}}class Ss extends Event{#A;constructor(A,q){cq.argumentLengthCheck(arguments,1,"ErrorEvent constructor");super(A,q);cq.util.markAsUncloneable(this),A=cq.converters.DOMString(A,"ErrorEvent constructor","type"),q=cq.converters.ErrorEventInit(q??{}),this.#A=q}get message(){return cq.brandCheck(this,Ss),this.#A.message}get filename(){return cq.brandCheck(this,Ss),this.#A.filename}get lineno(){return cq.brandCheck(this,Ss),this.#A.lineno}get colno(){return cq.brandCheck(this,Ss),this.#A.colno}get error(){return cq.brandCheck(this,Ss),this.#A.error}}Object.defineProperties(Lk.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:xv,origin:xv,lastEventId:xv,source:xv,ports:xv,initMessageEvent:xv});Object.defineProperties(ED6.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:xv,code:xv,wasClean:xv});Object.defineProperties(Ss.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:xv,filename:xv,lineno:xv,colno:xv,error:xv});cq.converters.MessagePort=cq.interfaceConverter(Qf3);cq.converters["sequence<MessagePort>"]=cq.sequenceConverter(cq.converters.MessagePort);var eA8=[{key:"bubbles",converter:cq.converters.boolean,defaultValue:()=>!1},{key:"cancelable",converter:cq.converters.boolean,defaultValue:()=>!1},{key:"composed",converter:cq.converters.boolean,defaultValue:()=>!1}];cq.converters.MessageEventInit=cq.dictionaryConverter([...eA8,{key:"data",converter:cq.converters.any,defaultValue:()=>null},{key:"origin",converter:cq.converters.USVString,defaultValue:()=>""},{key:"lastEventId",converter:cq.converters.DOMString,defaultValue:()=>""},{key:"source",converter:cq.nullableConverter(cq.converters.MessagePort),defaultValue:()=>null},{key:"ports",converter:cq.converters["sequence<MessagePort>"],defaultValue:()=>[]}]);cq.converters.CloseEventInit=cq.dictionaryConverter([...eA8,{key:"wasClean",converter:cq.converters.boolean,defaultValue:()=>!1},{key:"code",converter:cq.converters["unsigned short"],defaultValue:()=>0},{key:"reason",converter:cq.converters.USVString,defaultValue:()=>""}]);cq.converters.ErrorEventInit=cq.dictionaryConverter([...eA8,{key:"message",converter:cq.converters.DOMString,defaultValue:()=>""},{key:"filename",converter:cq.converters.USVString,defaultValue:()=>""},{key:"lineno",converter:cq.converters["unsigned long"],defaultValue:()=>0},{key:"colno",converter:cq.converters["unsigned long"],defaultValue:()=>0},{key:"error",converter:cq.converters.any}]);Q87.exports={MessageEvent:Lk,CloseEvent:ED6,ErrorEvent:Ss,createFastMessageEvent:Uf3}});var vK6=h((h32,U87)=>{var df3={enumerable:!0,writable:!1,configurable:!1},cf3={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},lf3={NOT_SENT:0,PROCESSING:1,SENT:2},if3={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},nf3={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},rf3=Buffer.allocUnsafe(0),of3={string:1,typedArray:2,arrayBuffer:3,blob:4};U87.exports={uid:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",sentCloseFrameState:lf3,staticPropertyDescriptors:df3,states:cf3,opcodes:if3,maxUnsigned16Bit:65535,parserStates:nf3,emptyBuffer:rf3,sendHints:of3}});var Vx6=h((C32,d87)=>{d87.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}});var Ex6=h((I32,t87)=>{var{kReadyState:Nx6,kController:af3,kResponse:sf3,kBinaryType:tf3,kWebSocketURL:ef3}=Vx6(),{states:kx6,opcodes:hs}=vK6(),{ErrorEvent:AT3,createFastMessageEvent:qT3}=LD6(),{isUtf8:KT3}=u6("node:buffer"),{collectASequenceOfCodePointsFast:YT3,removeHTTPWhitespace:c87}=Sv();function zT3(A){return A[Nx6]===kx6.CONNECTING}function wT3(A){return A[Nx6]===kx6.OPEN}function _T3(A){return A[Nx6]===kx6.CLOSING}function $T3(A){return A[Nx6]===kx6.CLOSED}function A78(A,q,K=(z,w)=>new Event(z,w),Y={}){let z=K(A,Y);q.dispatchEvent(z)}function OT3(A,q,K){if(A[Nx6]!==kx6.OPEN)return;let Y;if(q===hs.TEXT)try{Y=s87(K)}catch{i87(A,"Received invalid UTF-8 in text frame.");return}else if(q===hs.BINARY)if(A[tf3]==="blob")Y=new Blob([K]);else Y=HT3(K);A78("message",A,qT3,{origin:A[ef3].origin,data:Y})}function HT3(A){if(A.byteLength===A.buffer.byteLength)return A.buffer;return A.buffer.slice(A.byteOffset,A.byteOffset+A.byteLength)}function jT3(A){if(A.length===0)return!1;for(let q=0;q<A.length;++q){let K=A.charCodeAt(q);if(K<33||K>126||K===34||K===40||K===41||K===44||K===47||K===58||K===59||K===60||K===61||K===62||K===63||K===64||K===91||K===92||K===93||K===123||K===125)return!1}return!0}function JT3(A){if(A>=1000&&A<1015)return A!==1004&&A!==1005&&A!==1006;return A>=3000&&A<=4999}function i87(A,q){let{[af3]:K,[sf3]:Y}=A;if(K.abort(),Y?.socket&&!Y.socket.destroyed)Y.socket.destroy();if(q)A78("error",A,(z,w)=>new AT3(z,w),{error:Error(q),message:q})}function n87(A){return A===hs.CLOSE||A===hs.PING||A===hs.PONG}function r87(A){return A===hs.CONTINUATION}function o87(A){return A===hs.TEXT||A===hs.BINARY}function MT3(A){return o87(A)||r87(A)||n87(A)}function DT3(A){let q={position:0},K=new Map;while(q.position<A.length){let Y=YT3(";",A,q),[z,w=""]=Y.split("=");K.set(c87(z,!0,!1),c87(w,!1,!0)),q.position++}return K}function XT3(A){for(let q=0;q<A.length;q++){let K=A.charCodeAt(q);if(K<48||K>57)return!1}return!0}var a87=typeof process.versions.icu==="string",l87=a87?new TextDecoder("utf-8",{fatal:!0}):void 0,s87=a87?l87.decode.bind(l87):function(A){if(KT3(A))return A.toString("utf-8");throw TypeError("Invalid utf-8 received.")};t87.exports={isConnecting:zT3,isEstablished:wT3,isClosing:_T3,isClosed:$T3,fireEvent:A78,isValidSubprotocol:jT3,isValidStatusCode:JT3,failWebsocketConnection:i87,websocketMessageReceived:OT3,utf8Decode:s87,isControlFrame:n87,isContinuationFrame:r87,isTextBinaryFrame:o87,isValidOpcode:MT3,parseExtensions:DT3,isValidClientWindowBits:XT3}});var l91=h((x32,AA7)=>{var{maxUnsigned16Bit:PT3}=vK6(),q78,Lx6=null,yD6=16386;try{q78=u6("node:crypto")}catch{q78={randomFillSync:function(q,K,Y){for(let z=0;z<q.length;++z)q[z]=Math.random()*255|0;return q}}}function WT3(){if(yD6===16386)yD6=0,q78.randomFillSync(Lx6??=Buffer.allocUnsafe(16386),0,16386);return[Lx6[yD6++],Lx6[yD6++],Lx6[yD6++],Lx6[yD6++]]}class e87{constructor(A){this.frameData=A}createFrame(A){let q=this.frameData,K=WT3(),Y=q?.byteLength??0,z=Y,w=6;if(Y>PT3)w+=8,z=127;else if(Y>125)w+=2,z=126;let _=Buffer.allocUnsafe(Y+w);_[0]=_[1]=0,_[0]|=128,_[0]=(_[0]&240)+A;/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */if(_[w-4]=K[0],_[w-3]=K[1],_[w-2]=K[2],_[w-1]=K[3],_[1]=z,z===126)_.writeUInt16BE(Y,2);else if(z===127)_[2]=_[3]=0,_.writeUIntBE(Y,4,6);_[1]|=128;for(let $=0;$<Y;++$)_[w+$]=q[$]^K[$&3];return _}}AA7.exports={WebsocketFrameSend:e87}});var Y78=h((b32,$A7)=>{var{uid:GT3,states:yx6,sentCloseFrameState:i91,emptyBuffer:ZT3,opcodes:fT3}=vK6(),{kReadyState:Rx6,kSentClose:n91,kByteParser:KA7,kReceivedClose:qA7,kResponse:YA7}=Vx6(),{fireEvent:TT3,failWebsocketConnection:Cs,isClosing:vT3,isClosed:VT3,isEstablished:NT3,parseExtensions:kT3}=Ex6(),{channels:RD6}=UM6(),{CloseEvent:ET3}=LD6(),{makeRequest:LT3}=TD6(),{fetching:yT3}=Gx6(),{Headers:RT3,getHeadersList:ST3}=WK6(),{getDecodeSplit:hT3}=fk(),{WebsocketFrameSend:CT3}=l91(),K78;try{K78=u6("node:crypto")}catch{}function IT3(A,q,K,Y,z,w){let _=A;_.protocol=A.protocol==="ws:"?"http:":"https:";let $=LT3({urlList:[_],client:K,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(w.headers){let J=ST3(new RT3(w.headers));$.headersList=J}let O=K78.randomBytes(16).toString("base64");$.headersList.append("sec-websocket-key",O),$.headersList.append("sec-websocket-version","13");for(let J of q)$.headersList.append("sec-websocket-protocol",J);let H="permessage-deflate; client_max_window_bits";return $.headersList.append("sec-websocket-extensions",H),yT3({request:$,useParallelQueue:!0,dispatcher:w.dispatcher,processResponse(J){if(J.type==="error"||J.status!==101){Cs(Y,"Received network error or non-101 status code.");return}if(q.length!==0&&!J.headersList.get("Sec-WebSocket-Protocol")){Cs(Y,"Server did not respond with sent protocols.");return}if(J.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){Cs(Y,'Server did not set Upgrade header to "websocket".');return}if(J.headersList.get("Connection")?.toLowerCase()!=="upgrade"){Cs(Y,'Server did not set Connection header to "upgrade".');return}let M=J.headersList.get("Sec-WebSocket-Accept"),D=K78.createHash("sha1").update(O+GT3).digest("base64");if(M!==D){Cs(Y,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let X=J.headersList.get("Sec-WebSocket-Extensions"),P;if(X!==null){if(P=kT3(X),!P.has("permessage-deflate")){Cs(Y,"Sec-WebSocket-Extensions header does not match.");return}}let W=J.headersList.get("Sec-WebSocket-Protocol");if(W!==null){if(!hT3("sec-websocket-protocol",$.headersList).includes(W)){Cs(Y,"Protocol was not set in the opening handshake.");return}}if(J.socket.on("data",zA7),J.socket.on("close",wA7),J.socket.on("error",_A7),RD6.open.hasSubscribers)RD6.open.publish({address:J.socket.address(),protocol:W,extensions:X});z(J,P)}})}function xT3(A,q,K,Y){if(vT3(A)||VT3(A));else if(!NT3(A))Cs(A,"Connection was closed before it was established."),A[Rx6]=yx6.CLOSING;else if(A[n91]===i91.NOT_SENT){A[n91]=i91.PROCESSING;let z=new CT3;if(q!==void 0&&K===void 0)z.frameData=Buffer.allocUnsafe(2),z.frameData.writeUInt16BE(q,0);else if(q!==void 0&&K!==void 0)z.frameData=Buffer.allocUnsafe(2+Y),z.frameData.writeUInt16BE(q,0),z.frameData.write(K,2,"utf-8");else z.frameData=ZT3;A[YA7].socket.write(z.createFrame(fT3.CLOSE)),A[n91]=i91.SENT,A[Rx6]=yx6.CLOSING}else A[Rx6]=yx6.CLOSING}function zA7(A){if(!this.ws[KA7].write(A))this.pause()}function wA7(){let{ws:A}=this,{[YA7]:q}=A;q.socket.off("data",zA7),q.socket.off("close",wA7),q.socket.off("error",_A7);let K=A[n91]===i91.SENT&&A[qA7],Y=1005,z="",w=A[KA7].closingInfo;if(w&&!w.error)Y=w.code??1005,z=w.reason;else if(!A[qA7])Y=1006;if(A[Rx6]=yx6.CLOSED,TT3("close",A,(_,$)=>new ET3(_,$),{wasClean:K,code:Y,reason:z}),RD6.close.hasSubscribers)RD6.close.publish({websocket:A,code:Y,reason:z})}function _A7(A){let{ws:q}=this;if(q[Rx6]=yx6.CLOSING,RD6.socketError.hasSubscribers)RD6.socketError.publish(A);this.destroy()}$A7.exports={establishWebSocketConnection:IT3,closeWebSocketConnection:xT3}});var jA7=h((u32,HA7)=>{var{createInflateRaw:bT3,Z_DEFAULT_WINDOWBITS:uT3}=u6("node:zlib"),{isValidClientWindowBits:mT3}=Ex6(),BT3=Buffer.from([0,0,255,255]),r91=Symbol("kBuffer"),o91=Symbol("kLength");class OA7{#A;#q={};constructor(A){this.#q.serverNoContextTakeover=A.has("server_no_context_takeover"),this.#q.serverMaxWindowBits=A.get("server_max_window_bits")}decompress(A,q,K){if(!this.#A){let Y=uT3;if(this.#q.serverMaxWindowBits){if(!mT3(this.#q.serverMaxWindowBits)){K(Error("Invalid server_max_window_bits"));return}Y=Number.parseInt(this.#q.serverMaxWindowBits)}this.#A=bT3({windowBits:Y}),this.#A[r91]=[],this.#A[o91]=0,this.#A.on("data",(z)=>{this.#A[r91].push(z),this.#A[o91]+=z.length}),this.#A.on("error",(z)=>{this.#A=null,K(z)})}if(this.#A.write(A),q)this.#A.write(BT3);this.#A.flush(()=>{let Y=Buffer.concat(this.#A[r91],this.#A[o91]);this.#A[r91].length=0,this.#A[o91]=0,K(null,Y)})}}HA7.exports={PerMessageDeflate:OA7}});var VA7=h((m32,vA7)=>{var{Writable:gT3}=u6("node:stream"),pT3=u6("node:assert"),{parserStates:bv,opcodes:SD6,states:FT3,emptyBuffer:JA7,sentCloseFrameState:MA7}=vK6(),{kReadyState:QT3,kSentClose:DA7,kResponse:XA7,kReceivedClose:PA7}=Vx6(),{channels:a91}=UM6(),{isValidStatusCode:UT3,isValidOpcode:dT3,failWebsocketConnection:By,websocketMessageReceived:WA7,utf8Decode:cT3,isControlFrame:GA7,isTextBinaryFrame:z78,isContinuationFrame:lT3}=Ex6(),{WebsocketFrameSend:ZA7}=l91(),{closeWebSocketConnection:fA7}=Y78(),{PerMessageDeflate:iT3}=jA7();class TA7 extends gT3{#A=[];#q=0;#K=!1;#z=bv.INFO;#Y={};#_=[];#w;constructor(A,q){super();if(this.ws=A,this.#w=q==null?new Map:q,this.#w.has("permessage-deflate"))this.#w.set("permessage-deflate",new iT3(q))}_write(A,q,K){this.#A.push(A),this.#q+=A.length,this.#K=!0,this.run(K)}run(A){while(this.#K)if(this.#z===bv.INFO){if(this.#q<2)return A();let q=this.consume(2),K=(q[0]&128)!==0,Y=q[0]&15,z=(q[1]&128)===128,w=!K&&Y!==SD6.CONTINUATION,_=q[1]&127,$=q[0]&64,O=q[0]&32,H=q[0]&16;if(!dT3(Y))return By(this.ws,"Invalid opcode received"),A();if(z)return By(this.ws,"Frame cannot be masked"),A();if($!==0&&!this.#w.has("permessage-deflate")){By(this.ws,"Expected RSV1 to be clear.");return}if(O!==0||H!==0){By(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(w&&!z78(Y)){By(this.ws,"Invalid frame type was fragmented.");return}if(z78(Y)&&this.#_.length>0){By(this.ws,"Expected continuation frame");return}if(this.#Y.fragmented&&w){By(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((_>125||w)&&GA7(Y)){By(this.ws,"Control frame either too large or fragmented");return}if(lT3(Y)&&this.#_.length===0&&!this.#Y.compressed){By(this.ws,"Unexpected continuation frame");return}if(_<=125)this.#Y.payloadLength=_,this.#z=bv.READ_DATA;else if(_===126)this.#z=bv.PAYLOADLENGTH_16;else if(_===127)this.#z=bv.PAYLOADLENGTH_64;if(z78(Y))this.#Y.binaryType=Y,this.#Y.compressed=$!==0;this.#Y.opcode=Y,this.#Y.masked=z,this.#Y.fin=K,this.#Y.fragmented=w}else if(this.#z===bv.PAYLOADLENGTH_16){if(this.#q<2)return A();let q=this.consume(2);this.#Y.payloadLength=q.readUInt16BE(0),this.#z=bv.READ_DATA}else if(this.#z===bv.PAYLOADLENGTH_64){if(this.#q<8)return A();let q=this.consume(8),K=q.readUInt32BE(0);if(K>2147483647){By(this.ws,"Received payload length > 2^31 bytes.");return}let Y=q.readUInt32BE(4);this.#Y.payloadLength=(K<<8)+Y,this.#z=bv.READ_DATA}else if(this.#z===bv.READ_DATA){if(this.#q<this.#Y.payloadLength)return A();let q=this.consume(this.#Y.payloadLength);if(GA7(this.#Y.opcode))this.#K=this.parseControlFrame(q),this.#z=bv.INFO;else if(!this.#Y.compressed){if(this.#_.push(q),!this.#Y.fragmented&&this.#Y.fin){let K=Buffer.concat(this.#_);WA7(this.ws,this.#Y.binaryType,K),this.#_.length=0}this.#z=bv.INFO}else{this.#w.get("permessage-deflate").decompress(q,this.#Y.fin,(K,Y)=>{if(K){fA7(this.ws,1007,K.message,K.message.length);return}if(this.#_.push(Y),!this.#Y.fin){this.#z=bv.INFO,this.#K=!0,this.run(A);return}WA7(this.ws,this.#Y.binaryType,Buffer.concat(this.#_)),this.#K=!0,this.#z=bv.INFO,this.#_.length=0,this.run(A)}),this.#K=!1;break}}}consume(A){if(A>this.#q)throw Error("Called consume() before buffers satiated.");else if(A===0)return JA7;if(this.#A[0].length===A)return this.#q-=this.#A[0].length,this.#A.shift();let q=Buffer.allocUnsafe(A),K=0;while(K!==A){let Y=this.#A[0],{length:z}=Y;if(z+K===A){q.set(this.#A.shift(),K);break}else if(z+K>A){q.set(Y.subarray(0,A-K),K),this.#A[0]=Y.subarray(A-K);break}else q.set(this.#A.shift(),K),K+=Y.length}return this.#q-=A,q}parseCloseBody(A){pT3(A.length!==1);let q;if(A.length>=2)q=A.readUInt16BE(0);if(q!==void 0&&!UT3(q))return{code:1002,reason:"Invalid status code",error:!0};let K=A.subarray(2);if(K[0]===239&&K[1]===187&&K[2]===191)K=K.subarray(3);try{K=cT3(K)}catch{return{code:1007,reason:"Invalid UTF-8",error:!0}}return{code:q,reason:K,error:!1}}parseControlFrame(A){let{opcode:q,payloadLength:K}=this.#Y;if(q===SD6.CLOSE){if(K===1)return By(this.ws,"Received close frame with a 1-byte body."),!1;if(this.#Y.closeInfo=this.parseCloseBody(A),this.#Y.closeInfo.error){let{code:Y,reason:z}=this.#Y.closeInfo;return fA7(this.ws,Y,z,z.length),By(this.ws,z),!1}if(this.ws[DA7]!==MA7.SENT){let Y=JA7;if(this.#Y.closeInfo.code)Y=Buffer.allocUnsafe(2),Y.writeUInt16BE(this.#Y.closeInfo.code,0);let z=new ZA7(Y);this.ws[XA7].socket.write(z.createFrame(SD6.CLOSE),(w)=>{if(!w)this.ws[DA7]=MA7.SENT})}return this.ws[QT3]=FT3.CLOSING,this.ws[PA7]=!0,!1}else if(q===SD6.PING){if(!this.ws[PA7]){let Y=new ZA7(A);if(this.ws[XA7].socket.write(Y.createFrame(SD6.PONG)),a91.ping.hasSubscribers)a91.ping.publish({payload:A})}}else if(q===SD6.PONG){if(a91.pong.hasSubscribers)a91.pong.publish({payload:A})}return!0}get closingInfo(){return this.#Y.closeInfo}}vA7.exports={ByteParser:TA7}});var RA7=h((B32,yA7)=>{var{WebsocketFrameSend:nT3}=l91(),{opcodes:NA7,sendHints:hD6}=vK6(),rT3=U88(),kA7=Buffer[Symbol.species];class LA7{#A=new rT3;#q=!1;#K;constructor(A){this.#K=A}add(A,q,K){if(K!==hD6.blob){let z=EA7(A,K);if(!this.#q)this.#K.write(z,q);else{let w={promise:null,callback:q,frame:z};this.#A.push(w)}return}let Y={promise:A.arrayBuffer().then((z)=>{Y.promise=null,Y.frame=EA7(z,K)}),callback:q,frame:null};if(this.#A.push(Y),!this.#q)this.#z()}async#z(){this.#q=!0;let A=this.#A;while(!A.isEmpty()){let q=A.shift();if(q.promise!==null)await q.promise;this.#K.write(q.frame,q.callback),q.callback=q.frame=null}this.#q=!1}}function EA7(A,q){return new nT3(oT3(A,q)).createFrame(q===hD6.string?NA7.TEXT:NA7.BINARY)}function oT3(A,q){switch(q){case hD6.string:return Buffer.from(A);case hD6.arrayBuffer:case hD6.blob:return new kA7(A);case hD6.typedArray:return new kA7(A.buffer,A.byteOffset,A.byteLength)}}yA7.exports={SendQueue:LA7}});var BA7=h((g32,mA7)=>{var{webidl:X3}=D0(),{URLSerializer:aT3}=Sv(),{environmentSettingsObject:SA7}=fk(),{staticPropertyDescriptors:Is,states:Sx6,sentCloseFrameState:sT3,sendHints:s91}=vK6(),{kWebSocketURL:hA7,kReadyState:w78,kController:tT3,kBinaryType:t91,kResponse:CA7,kSentClose:eT3,kByteParser:Av3}=Vx6(),{isConnecting:qv3,isEstablished:Kv3,isClosing:Yv3,isValidSubprotocol:zv3,fireEvent:IA7}=Ex6(),{establishWebSocketConnection:wv3,closeWebSocketConnection:xA7}=Y78(),{ByteParser:_v3}=VA7(),{kEnumerableProperty:gy,isBlobLike:bA7}=E9(),{getGlobalDispatcher:$v3}=Z91(),{types:uA7}=u6("node:util"),{ErrorEvent:Ov3,CloseEvent:Hv3}=LD6(),{SendQueue:jv3}=RA7();class kw extends EventTarget{#A={open:null,error:null,close:null,message:null};#q=0;#K="";#z="";#Y;constructor(A,q=[]){super();X3.util.markAsUncloneable(this);let K="WebSocket constructor";X3.argumentLengthCheck(arguments,1,K);let Y=X3.converters["DOMString or sequence<DOMString> or WebSocketInit"](q,K,"options");A=X3.converters.USVString(A,K,"url"),q=Y.protocols;let z=SA7.settingsObject.baseUrl,w;try{w=new URL(A,z)}catch($){throw new DOMException($,"SyntaxError")}if(w.protocol==="http:")w.protocol="ws:";else if(w.protocol==="https:")w.protocol="wss:";if(w.protocol!=="ws:"&&w.protocol!=="wss:")throw new DOMException(`Expected a ws: or wss: protocol, got ${w.protocol}`,"SyntaxError");if(w.hash||w.href.endsWith("#"))throw new DOMException("Got fragment","SyntaxError");if(typeof q==="string")q=[q];if(q.length!==new Set(q.map(($)=>$.toLowerCase())).size)throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");if(q.length>0&&!q.every(($)=>zv3($)))throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[hA7]=new URL(w.href);let _=SA7.settingsObject;this[tT3]=wv3(w,q,_,this,($,O)=>this.#_($,O),Y),this[w78]=kw.CONNECTING,this[eT3]=sT3.NOT_SENT,this[t91]="blob"}close(A=void 0,q=void 0){X3.brandCheck(this,kw);let K="WebSocket.close";if(A!==void 0)A=X3.converters["unsigned short"](A,K,"code",{clamp:!0});if(q!==void 0)q=X3.converters.USVString(q,K,"reason");if(A!==void 0){if(A!==1000&&(A<3000||A>4999))throw new DOMException("invalid code","InvalidAccessError")}let Y=0;if(q!==void 0){if(Y=Buffer.byteLength(q),Y>123)throw new DOMException(`Reason must be less than 123 bytes; received ${Y}`,"SyntaxError")}xA7(this,A,q,Y)}send(A){X3.brandCheck(this,kw);let q="WebSocket.send";if(X3.argumentLengthCheck(arguments,1,q),A=X3.converters.WebSocketSendData(A,q,"data"),qv3(this))throw new DOMException("Sent before connected.","InvalidStateError");if(!Kv3(this)||Yv3(this))return;if(typeof A==="string"){let K=Buffer.byteLength(A);this.#q+=K,this.#Y.add(A,()=>{this.#q-=K},s91.string)}else if(uA7.isArrayBuffer(A))this.#q+=A.byteLength,this.#Y.add(A,()=>{this.#q-=A.byteLength},s91.arrayBuffer);else if(ArrayBuffer.isView(A))this.#q+=A.byteLength,this.#Y.add(A,()=>{this.#q-=A.byteLength},s91.typedArray);else if(bA7(A))this.#q+=A.size,this.#Y.add(A,()=>{this.#q-=A.size},s91.blob)}get readyState(){return X3.brandCheck(this,kw),this[w78]}get bufferedAmount(){return X3.brandCheck(this,kw),this.#q}get url(){return X3.brandCheck(this,kw),aT3(this[hA7])}get extensions(){return X3.brandCheck(this,kw),this.#z}get protocol(){return X3.brandCheck(this,kw),this.#K}get onopen(){return X3.brandCheck(this,kw),this.#A.open}set onopen(A){if(X3.brandCheck(this,kw),this.#A.open)this.removeEventListener("open",this.#A.open);if(typeof A==="function")this.#A.open=A,this.addEventListener("open",A);else this.#A.open=null}get onerror(){return X3.brandCheck(this,kw),this.#A.error}set onerror(A){if(X3.brandCheck(this,kw),this.#A.error)this.removeEventListener("error",this.#A.error);if(typeof A==="function")this.#A.error=A,this.addEventListener("error",A);else this.#A.error=null}get onclose(){return X3.brandCheck(this,kw),this.#A.close}set onclose(A){if(X3.brandCheck(this,kw),this.#A.close)this.removeEventListener("close",this.#A.close);if(typeof A==="function")this.#A.close=A,this.addEventListener("close",A);else this.#A.close=null}get onmessage(){return X3.brandCheck(this,kw),this.#A.message}set onmessage(A){if(X3.brandCheck(this,kw),this.#A.message)this.removeEventListener("message",this.#A.message);if(typeof A==="function")this.#A.message=A,this.addEventListener("message",A);else this.#A.message=null}get binaryType(){return X3.brandCheck(this,kw),this[t91]}set binaryType(A){if(X3.brandCheck(this,kw),A!=="blob"&&A!=="arraybuffer")this[t91]="blob";else this[t91]=A}#_(A,q){this[CA7]=A;let K=new _v3(this,q);K.on("drain",Jv3),K.on("error",Mv3.bind(this)),A.socket.ws=this,this[Av3]=K,this.#Y=new jv3(A.socket),this[w78]=Sx6.OPEN;let Y=A.headersList.get("sec-websocket-extensions");if(Y!==null)this.#z=Y;let z=A.headersList.get("sec-websocket-protocol");if(z!==null)this.#K=z;IA7("open",this)}}kw.CONNECTING=kw.prototype.CONNECTING=Sx6.CONNECTING;kw.OPEN=kw.prototype.OPEN=Sx6.OPEN;kw.CLOSING=kw.prototype.CLOSING=Sx6.CLOSING;kw.CLOSED=kw.prototype.CLOSED=Sx6.CLOSED;Object.defineProperties(kw.prototype,{CONNECTING:Is,OPEN:Is,CLOSING:Is,CLOSED:Is,url:gy,readyState:gy,bufferedAmount:gy,onopen:gy,onerror:gy,onclose:gy,close:gy,onmessage:gy,binaryType:gy,send:gy,extensions:gy,protocol:gy,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(kw,{CONNECTING:Is,OPEN:Is,CLOSING:Is,CLOSED:Is});X3.converters["sequence<DOMString>"]=X3.sequenceConverter(X3.converters.DOMString);X3.converters["DOMString or sequence<DOMString>"]=function(A,q,K){if(X3.util.Type(A)==="Object"&&Symbol.iterator in A)return X3.converters["sequence<DOMString>"](A);return X3.converters.DOMString(A,q,K)};X3.converters.WebSocketInit=X3.dictionaryConverter([{key:"protocols",converter:X3.converters["DOMString or sequence<DOMString>"],defaultValue:()=>[]},{key:"dispatcher",converter:X3.converters.any,defaultValue:()=>$v3()},{key:"headers",converter:X3.nullableConverter(X3.converters.HeadersInit)}]);X3.converters["DOMString or sequence<DOMString> or WebSocketInit"]=function(A){if(X3.util.Type(A)==="Object"&&!(Symbol.iterator in A))return X3.converters.WebSocketInit(A);return{protocols:X3.converters["DOMString or sequence<DOMString>"](A)}};X3.converters.WebSocketSendData=function(A){if(X3.util.Type(A)==="Object"){if(bA7(A))return X3.converters.Blob(A,{strict:!1});if(ArrayBuffer.isView(A)||uA7.isArrayBuffer(A))return X3.converters.BufferSource(A)}return X3.converters.USVString(A)};function Jv3(){this.ws[CA7].socket.resume()}function Mv3(A){let q,K;if(A instanceof Hv3)q=A.reason,K=A.code;else q=A.message;IA7("error",this,()=>new Ov3("error",{error:A,message:q})),xA7(this,K)}mA7.exports={WebSocket:kw}});var _78=h((p32,gA7)=>{function Dv3(A){return A.indexOf("\x00")===-1}function Xv3(A){if(A.length===0)return!1;for(let q=0;q<A.length;q++)if(A.charCodeAt(q)<48||A.charCodeAt(q)>57)return!1;return!0}function Pv3(A){return new Promise((q)=>{setTimeout(q,A).unref()})}gA7.exports={isValidLastEventId:Dv3,isASCIINumber:Xv3,delay:Pv3}});var dA7=h((F32,UA7)=>{var{Transform:Wv3}=u6("node:stream"),{isASCIINumber:pA7,isValidLastEventId:FA7}=_78(),Pd=[239,187,191];class QA7 extends Wv3{state=null;checkBOM=!0;crlfCheck=!1;eventEndCheck=!1;buffer=null;pos=0;event={data:void 0,event:void 0,id:void 0,retry:void 0};constructor(A={}){A.readableObjectMode=!0;super(A);if(this.state=A.eventSourceSettings||{},A.push)this.push=A.push}_transform(A,q,K){if(A.length===0){K();return}if(this.buffer)this.buffer=Buffer.concat([this.buffer,A]);else this.buffer=A;if(this.checkBOM)switch(this.buffer.length){case 1:if(this.buffer[0]===Pd[0]){K();return}this.checkBOM=!1,K();return;case 2:if(this.buffer[0]===Pd[0]&&this.buffer[1]===Pd[1]){K();return}this.checkBOM=!1;break;case 3:if(this.buffer[0]===Pd[0]&&this.buffer[1]===Pd[1]&&this.buffer[2]===Pd[2]){this.buffer=Buffer.alloc(0),this.checkBOM=!1,K();return}this.checkBOM=!1;break;default:if(this.buffer[0]===Pd[0]&&this.buffer[1]===Pd[1]&&this.buffer[2]===Pd[2])this.buffer=this.buffer.subarray(3);this.checkBOM=!1;break}while(this.pos<this.buffer.length){if(this.eventEndCheck){if(this.crlfCheck){if(this.buffer[this.pos]===10){this.buffer=this.buffer.subarray(this.pos+1),this.pos=0,this.crlfCheck=!1;continue}this.crlfCheck=!1}if(this.buffer[this.pos]===10||this.buffer[this.pos]===13){if(this.buffer[this.pos]===13)this.crlfCheck=!0;if(this.buffer=this.buffer.subarray(this.pos+1),this.pos=0,this.event.data!==void 0||this.event.event||this.event.id||this.event.retry)this.processEvent(this.event);this.clearEvent();continue}this.eventEndCheck=!1;continue}if(this.buffer[this.pos]===10||this.buffer[this.pos]===13){if(this.buffer[this.pos]===13)this.crlfCheck=!0;this.parseLine(this.buffer.subarray(0,this.pos),this.event),this.buffer=this.buffer.subarray(this.pos+1),this.pos=0,this.eventEndCheck=!0;continue}this.pos++}K()}parseLine(A,q){if(A.length===0)return;let K=A.indexOf(58);if(K===0)return;let Y="",z="";if(K!==-1){Y=A.subarray(0,K).toString("utf8");let w=K+1;if(A[w]===32)++w;z=A.subarray(w).toString("utf8")}else Y=A.toString("utf8"),z="";switch(Y){case"data":if(q[Y]===void 0)q[Y]=z;else q[Y]+=`
${z}`;break;case"retry":if(pA7(z))q[Y]=z;break;case"id":if(FA7(z))q[Y]=z;break;case"event":if(z.length>0)q[Y]=z;break}}processEvent(A){if(A.retry&&pA7(A.retry))this.state.reconnectionTime=parseInt(A.retry,10);if(A.id&&FA7(A.id))this.state.lastEventId=A.id;if(A.data!==void 0)this.push({type:A.event||"message",options:{data:A.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}}UA7.exports={EventSourceStream:QA7}});var sA7=h((Q32,aA7)=>{var{pipeline:Gv3}=u6("node:stream"),{fetching:Zv3}=Gx6(),{makeRequest:fv3}=TD6(),{webidl:Wd}=D0(),{EventSourceStream:Tv3}=dA7(),{parseMIMEType:vv3}=Sv(),{createFastMessageEvent:Vv3}=LD6(),{isNetworkError:cA7}=Px6(),{delay:Nv3}=_78(),{kEnumerableProperty:VK6}=E9(),{environmentSettingsObject:lA7}=fk(),iA7=!1,nA7=3000,hx6=0,rA7=1,Cx6=2,kv3="anonymous",Ev3="use-credentials";class CD6 extends EventTarget{#A={open:null,error:null,message:null};#q=null;#K=!1;#z=hx6;#Y=null;#_=null;#w;#O;constructor(A,q={}){super();Wd.util.markAsUncloneable(this);let K="EventSource constructor";if(Wd.argumentLengthCheck(arguments,1,K),!iA7)iA7=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"});A=Wd.converters.USVString(A,K,"url"),q=Wd.converters.EventSourceInitDict(q,K,"eventSourceInitDict"),this.#w=q.dispatcher,this.#O={lastEventId:"",reconnectionTime:nA7};let Y=lA7,z;try{z=new URL(A,Y.settingsObject.baseUrl),this.#O.origin=z.origin}catch($){throw new DOMException($,"SyntaxError")}this.#q=z.href;let w=kv3;if(q.withCredentials)w=Ev3,this.#K=!0;let _={redirect:"follow",keepalive:!0,mode:"cors",credentials:w==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};_.client=lA7.settingsObject,_.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],_.cache="no-store",_.initiator="other",_.urlList=[new URL(this.#q)],this.#Y=fv3(_),this.#H()}get readyState(){return this.#z}get url(){return this.#q}get withCredentials(){return this.#K}#H(){if(this.#z===Cx6)return;this.#z=hx6;let A={request:this.#Y,dispatcher:this.#w},q=(K)=>{if(cA7(K))this.dispatchEvent(new Event("error")),this.close();this.#j()};A.processResponseEndOfBody=q,A.processResponse=(K)=>{if(cA7(K))if(K.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#j();return}let Y=K.headersList.get("content-type",!0),z=Y!==null?vv3(Y):"failure",w=z!=="failure"&&z.essence==="text/event-stream";if(K.status!==200||w===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#z=rA7,this.dispatchEvent(new Event("open")),this.#O.origin=K.urlList[K.urlList.length-1].origin;let _=new Tv3({eventSourceSettings:this.#O,push:($)=>{this.dispatchEvent(Vv3($.type,$.options))}});Gv3(K.body.stream,_,($)=>{if($?.aborted===!1)this.close(),this.dispatchEvent(new Event("error"))})},this.#_=Zv3(A)}async#j(){if(this.#z===Cx6)return;if(this.#z=hx6,this.dispatchEvent(new Event("error")),await Nv3(this.#O.reconnectionTime),this.#z!==hx6)return;if(this.#O.lastEventId.length)this.#Y.headersList.set("last-event-id",this.#O.lastEventId,!0);this.#H()}close(){if(Wd.brandCheck(this,CD6),this.#z===Cx6)return;this.#z=Cx6,this.#_.abort(),this.#Y=null}get onopen(){return this.#A.open}set onopen(A){if(this.#A.open)this.removeEventListener("open",this.#A.open);if(typeof A==="function")this.#A.open=A,this.addEventListener("open",A);else this.#A.open=null}get onmessage(){return this.#A.message}set onmessage(A){if(this.#A.message)this.removeEventListener("message",this.#A.message);if(typeof A==="function")this.#A.message=A,this.addEventListener("message",A);else this.#A.message=null}get onerror(){return this.#A.error}set onerror(A){if(this.#A.error)this.removeEventListener("error",this.#A.error);if(typeof A==="function")this.#A.error=A,this.addEventListener("error",A);else this.#A.error=null}}var oA7={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:hx6,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:rA7,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Cx6,writable:!1}};Object.defineProperties(CD6,oA7);Object.defineProperties(CD6.prototype,oA7);Object.defineProperties(CD6.prototype,{close:VK6,onerror:VK6,onmessage:VK6,onopen:VK6,readyState:VK6,url:VK6,withCredentials:VK6});Wd.converters.EventSourceInitDict=Wd.dictionaryConverter([{key:"withCredentials",converter:Wd.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Wd.converters.any}]);aA7.exports={EventSource:CD6,defaultReconnectionTime:nA7}});function Ix6(A){return(q,K,Y)=>{if(typeof K==="function")Y=K,K=null;if(!q||typeof q!=="string"&&typeof q!=="object"&&!(q instanceof URL))throw new e91("invalid url");if(K!=null&&typeof K!=="object")throw new e91("invalid opts");if(K&&K.path!=null){if(typeof K.path!=="string")throw new e91("invalid opts.path");let _=K.path;if(!K.path.startsWith("/"))_=`/${_}`;q=new URL(AY1.parseOrigin(q).origin+_)}else{if(!K)K=typeof q==="object"?q:{};q=AY1.parseURL(q)}let{agent:z,dispatcher:w=hv3()}=K;if(z)throw new e91("unsupported opts.agent. Did you mean opts.client?");return A.call(w,{...K,origin:q.origin,path:q.search?`${q.pathname}${q.search}`:q.pathname,method:K.method||(K.body?"PUT":"GET")},Y)}}var U32,Lv3,d32,c32,yv3,l32,Rv3,i32,Sv3,AY1,e91,ID6,n32,r32,o32,a32,s32,t32,hv3,Cv3,e32,A52,q52,$78,O78,bv3,uv3,qY1,K52,mv3,Bv3,gv3,pv3,Fv3,Qv3,Y52,z52,Iv3,xv3,Uv3,w52,_52,$52,O52,H52,j52,J52,M52,D52,dv3,cv3,lv3,iv3,nv3,rv3,X52;var H78=E(()=>{U32=eI6(),Lv3=II6(),d32=OD6(),c32=btA(),yv3=HD6(),l32=AA8(),Rv3=AeA(),i32=$eA(),Sv3=Yw(),AY1=E9(),{InvalidArgumentError:e91}=Sv3,ID6=A67(),n32=bI6(),r32=EA8(),o32=p67(),a32=yA8(),s32=XA8(),t32=H91(),{getGlobalDispatcher:hv3,setGlobalDispatcher:Cv3}=Z91(),e32=f91(),A52=e51(),q52=A91();Object.assign(Lv3.prototype,ID6);$78=yv3,O78=Rv3,bv3={redirect:i67(),retry:r67(),dump:s67(),dns:K17()},uv3={parseHeaders:AY1.parseHeaders,headerNameToString:AY1.headerNameToString};qY1=Cv3;K52=Gx6().fetch;mv3=WK6().Headers,Bv3=Px6().Response,gv3=TD6().Request,pv3=FI6().FormData,Fv3=globalThis.File??u6("node:buffer").File,Qv3=Z87().FileReader;({setGlobalOrigin:Y52,getGlobalOrigin:z52}=J88()),{CacheStorage:Iv3}=y87(),{kConstruct:xv3}=p91();Uv3=new Iv3(xv3);({deleteCookie:w52,getCookies:_52,getSetCookies:$52,setCookie:O52}=p87()),{parseMIMEType:H52,serializeAMimeType:j52}=Sv(),{CloseEvent:J52,ErrorEvent:M52,MessageEvent:D52}=LD6();dv3=BA7().WebSocket,cv3=Ix6(ID6.request),lv3=Ix6(ID6.stream),iv3=Ix6(ID6.pipeline),nv3=Ix6(ID6.connect),rv3=Ix6(ID6.upgrade);({EventSource:X52}=sA7())});import{Agent as ov3}from"https";function j78(){let A=KI();if(!A)return;return{cert:A.cert,key:A.key,passphrase:A.passphrase}}function J78(){let A=KI();if(!A)return{};if(typeof Bun<"u")return{tls:A};return y("mTLS: Created undici agent with custom certificates"),{dispatcher:new $78({connect:{cert:A.cert,key:A.key,passphrase:A.passphrase},pipelining:1})}}function A77(){if(!KI())return;if(process.env.NODE_EXTRA_CA_CERTS)y("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var KI,eA7;var xD6=E(()=>{Rq();H78();Z1();D7();KI=k8(()=>{let A={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{A.cert=P1().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),y("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(q){y(`mTLS: Failed to load client certificate: ${q}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{A.key=P1().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),y("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(q){y(`mTLS: Failed to load client key: ${q}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)A.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,y("mTLS: Using client key passphrase");if(Object.keys(A).length===0)return;return A}),eA7=k8(()=>{let A=KI();if(!A)return;let q={...A,keepAlive:!0};return y("mTLS: Creating HTTPS agent with custom certificates"),new ov3(q)})});var q77=h((qV3)=>{qV3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(qV3.HttpAuthLocation||(qV3.HttpAuthLocation={}));qV3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(qV3.HttpApiKeyAuthLocation||(qV3.HttpApiKeyAuthLocation={}));qV3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(qV3.EndpointURLScheme||(qV3.EndpointURLScheme={}));qV3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(qV3.AlgorithmId||(qV3.AlgorithmId={}));var av3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>qV3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>qV3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},sv3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},tv3=(A)=>{return av3(A)},ev3=(A)=>{return sv3(A)};qV3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(qV3.FieldPosition||(qV3.FieldPosition={}));var AV3="__smithy_context";qV3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(qV3.IniSectionType||(qV3.IniSectionType={}));qV3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(qV3.RequestHandlerProtocol||(qV3.RequestHandlerProtocol={}));qV3.SMITHY_CONTEXT_KEY=AV3;qV3.getDefaultClientConfiguration=tv3;qV3.resolveDefaultRuntimeConfig=ev3});var w77=h((jV3)=>{var wV3=q77(),_V3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},$V3=(A)=>{return{httpHandler:A.httpHandler()}};class K77{name;kind;values;constructor({name:A,kind:q=wV3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class Y77{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class KY1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new KY1({...A,headers:{...A.headers}});if(q.query)q.query=OV3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return KY1.clone(this)}}function OV3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class z77{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function HV3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}jV3.Field=K77;jV3.Fields=Y77;jV3.HttpRequest=KY1;jV3.HttpResponse=z77;jV3.getHttpHandlerExtensionConfiguration=_V3;jV3.isValidHostname=HV3;jV3.resolveHttpHandlerRuntimeConfig=$V3});var $77=h((TV3)=>{var _77=(A)=>encodeURIComponent(A).replace(/[!'()*]/g,ZV3),ZV3=(A)=>`%${A.charCodeAt(0).toString(16).toUpperCase()}`,fV3=(A)=>A.split("/").map(_77).join("/");TV3.escapeUri=_77;TV3.escapeUriPath=fV3});var O77=h((kV3)=>{var Z78=$77();function NV3(A){let q=[];for(let K of Object.keys(A).sort()){let Y=A[K];if(K=Z78.escapeUri(K),Array.isArray(Y))for(let z=0,w=Y.length;z<w;z++)q.push(`${K}=${Z78.escapeUri(Y[z])}`);else{let z=K;if(Y||typeof Y==="string")z+=`=${Z78.escapeUri(Y)}`;q.push(z)}}return q.join("&")}kV3.buildQueryString=NV3});var uv=h((BV3)=>{var M77=w77(),D77=O77(),YY1=u6("http"),zY1=u6("https"),X77=u6("stream"),f78=u6("http2"),LV3=["ECONNRESET","EPIPE","ETIMEDOUT"],P77=(A)=>{let q={};for(let K of Object.keys(A)){let Y=A[K];q[K]=Array.isArray(Y)?Y.join(","):Y}return q},Mf={setTimeout:(A,q)=>setTimeout(A,q),clearTimeout:(A)=>clearTimeout(A)},H77=1000,yV3=(A,q,K=0)=>{if(!K)return-1;let Y=(z)=>{let w=Mf.setTimeout(()=>{A.destroy(),q(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${K} ms.`),{name:"TimeoutError"}))},K-z),_=($)=>{if($?.connecting)$.on("connect",()=>{Mf.clearTimeout(w)});else Mf.clearTimeout(w)};if(A.socket)_(A.socket);else A.on("socket",_)};if(K<2000)return Y(0),0;return Mf.setTimeout(Y.bind(null,H77),H77)},RV3=(A,q,K=0,Y,z)=>{if(K)return Mf.setTimeout(()=>{let w=`@smithy/node-http-handler - [${Y?"ERROR":"WARN"}] a request has exceeded the configured ${K} ms requestTimeout.`;if(Y){let _=Object.assign(Error(w),{name:"TimeoutError",code:"ETIMEDOUT"});A.destroy(_),q(_)}else w+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",z?.warn?.(w)},K);return-1},SV3=3000,hV3=(A,{keepAlive:q,keepAliveMsecs:K},Y=SV3)=>{if(q!==!0)return-1;let z=()=>{if(A.socket)A.socket.setKeepAlive(q,K||0);else A.on("socket",(w)=>{w.setKeepAlive(q,K||0)})};if(Y===0)return z(),0;return Mf.setTimeout(z,Y)},j77=3000,CV3=(A,q,K=0)=>{let Y=(z)=>{let w=K-z,_=()=>{A.destroy(),q(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${K} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(A.socket)A.socket.setTimeout(w,_),A.on("close",()=>A.socket?.removeListener("timeout",_));else A.setTimeout(w,_)};if(0<K&&K<6000)return Y(0),0;return Mf.setTimeout(Y.bind(null,K===0?0:j77),j77)},J77=6000;async function W77(A,q,K=J77,Y=!1){let z=q.headers??{},w=z.Expect||z.expect,_=-1,$=!0;if(!Y&&w==="100-continue")$=await Promise.race([new Promise((O)=>{_=Number(Mf.setTimeout(()=>O(!0),Math.max(J77,K)))}),new Promise((O)=>{A.on("continue",()=>{Mf.clearTimeout(_),O(!0)}),A.on("response",()=>{Mf.clearTimeout(_),O(!1)}),A.on("error",()=>{Mf.clearTimeout(_),O(!1)})})]);if($)IV3(A,q.body)}function IV3(A,q){if(q instanceof X77.Readable){q.pipe(A);return}if(q){if(Buffer.isBuffer(q)||typeof q==="string"){A.end(q);return}let K=q;if(typeof K==="object"&&K.buffer&&typeof K.byteOffset==="number"&&typeof K.byteLength==="number"){A.end(Buffer.from(K.buffer,K.byteOffset,K.byteLength));return}A.end(Buffer.from(q));return}A.end()}var xV3=0;class wY1{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(A){if(typeof A?.handle==="function")return A;return new wY1(A)}static checkSocketUsage(A,q,K=console){let{sockets:Y,requests:z,maxSockets:w}=A;if(typeof w!=="number"||w===1/0)return q;let _=15000;if(Date.now()-_<q)return q;if(Y&&z)for(let $ in Y){let O=Y[$]?.length??0,H=z[$]?.length??0;if(O>=w&&H>=2*w)return K?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${O} and ${H} additional requests are enqueued.
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return q}constructor(A){this.configProvider=new Promise((q,K)=>{if(typeof A==="function")A().then((Y)=>{q(this.resolveDefaultConfig(Y))}).catch(K);else q(this.resolveDefaultConfig(A))})}resolveDefaultConfig(A){let{requestTimeout:q,connectionTimeout:K,socketTimeout:Y,socketAcquisitionWarningTimeout:z,httpAgent:w,httpsAgent:_,throwOnRequestTimeout:$}=A||{},O=!0,H=50;return{connectionTimeout:K,requestTimeout:q,socketTimeout:Y,socketAcquisitionWarningTimeout:z,throwOnRequestTimeout:$,httpAgent:(()=>{if(w instanceof YY1.Agent||typeof w?.destroy==="function")return this.externalAgent=!0,w;return new YY1.Agent({keepAlive:!0,maxSockets:50,...w})})(),httpsAgent:(()=>{if(_ instanceof zY1.Agent||typeof _?.destroy==="function")return this.externalAgent=!0,_;return new zY1.Agent({keepAlive:!0,maxSockets:50,..._})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(A,{abortSignal:q,requestTimeout:K}={}){if(!this.config)this.config=await this.configProvider;return new Promise((Y,z)=>{let w=this.config,_=void 0,$=[],O=async(L)=>{await _,$.forEach(Mf.clearTimeout),Y(L)},H=async(L)=>{await _,$.forEach(Mf.clearTimeout),z(L)};if(q?.aborted){let L=Error("Request aborted");L.name="AbortError",H(L);return}let j=A.protocol==="https:",J=A.headers??{},M=(J.Expect??J.expect)==="100-continue",D=j?w.httpsAgent:w.httpAgent;if(M&&!this.externalAgent)D=new(j?zY1.Agent:YY1.Agent)({keepAlive:!1,maxSockets:1/0});$.push(Mf.setTimeout(()=>{this.socketWarningTimestamp=wY1.checkSocketUsage(D,this.socketWarningTimestamp,w.logger)},w.socketAcquisitionWarningTimeout??(w.requestTimeout??2000)+(w.connectionTimeout??1000)));let X=D77.buildQueryString(A.query||{}),P=void 0;if(A.username!=null||A.password!=null){let L=A.username??"",S=A.password??"";P=`${L}:${S}`}let W=A.path;if(X)W+=`?${X}`;if(A.fragment)W+=`#${A.fragment}`;let G=A.hostname??"";if(G[0]==="["&&G.endsWith("]"))G=A.hostname.slice(1,-1);else G=A.hostname;let Z={headers:A.headers,host:G,method:A.method,path:W,port:A.port,agent:D,auth:P},v=(j?zY1.request:YY1.request)(Z,(L)=>{let S=new M77.HttpResponse({statusCode:L.statusCode||-1,reason:L.statusMessage,headers:P77(L.headers),body:L});O({response:S})});if(v.on("error",(L)=>{if(LV3.includes(L.code))H(Object.assign(L,{name:"TimeoutError"}));else H(L)}),q){let L=()=>{v.destroy();let S=Error("Request aborted");S.name="AbortError",H(S)};if(typeof q.addEventListener==="function"){let S=q;S.addEventListener("abort",L,{once:!0}),v.once("close",()=>S.removeEventListener("abort",L))}else q.onabort=L}let V=K??w.requestTimeout;$.push(yV3(v,H,w.connectionTimeout)),$.push(RV3(v,H,V,w.throwOnRequestTimeout,w.logger??console)),$.push(CV3(v,H,w.socketTimeout));let N=Z.agent;if(typeof N==="object"&&"keepAlive"in N)$.push(hV3(v,{keepAlive:N.keepAlive,keepAliveMsecs:N.keepAliveMsecs}));_=W77(v,A,V,this.externalAgent).catch((L)=>{return $.forEach(Mf.clearTimeout),z(L)})})}updateHttpClientConfig(A,q){this.config=void 0,this.configProvider=this.configProvider.then((K)=>{return{...K,[A]:q}})}httpHandlerConfigs(){return this.config??{}}}class G77{sessions=[];constructor(A){this.sessions=A??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(A){this.sessions.push(A)}contains(A){return this.sessions.includes(A)}remove(A){this.sessions=this.sessions.filter((q)=>q!==A)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(A){for(let q of this.sessions)if(q===A){if(!q.destroyed)q.destroy()}}}class Z77{constructor(A){if(this.config=A,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}config;sessionCache=new Map;lease(A,q){let K=this.getUrlString(A),Y=this.sessionCache.get(K);if(Y){let $=Y.poll();if($&&!this.config.disableConcurrency)return $}let z=f78.connect(K);if(this.config.maxConcurrency)z.settings({maxConcurrentStreams:this.config.maxConcurrency},($)=>{if($)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+A.destination.toString())});z.unref();let w=()=>{z.destroy(),this.deleteSession(K,z)};if(z.on("goaway",w),z.on("error",w),z.on("frameError",w),z.on("close",()=>this.deleteSession(K,z)),q.requestTimeout)z.setTimeout(q.requestTimeout,w);let _=this.sessionCache.get(K)||new G77;return _.offerLast(z),this.sessionCache.set(K,_),z}deleteSession(A,q){let K=this.sessionCache.get(A);if(!K)return;if(!K.contains(q))return;K.remove(q),this.sessionCache.set(A,K)}release(A,q){let K=this.getUrlString(A);this.sessionCache.get(K)?.offerLast(q)}destroy(){for(let[A,q]of this.sessionCache){for(let K of q){if(!K.destroyed)K.destroy();q.remove(K)}this.sessionCache.delete(A)}}setMaxConcurrentStreams(A){if(A&&A<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=A}setDisableConcurrentStreams(A){this.config.disableConcurrency=A}getUrlString(A){return A.destination.toString()}}class T78{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new Z77({});static create(A){if(typeof A?.handle==="function")return A;return new T78(A)}constructor(A){this.configProvider=new Promise((q,K)=>{if(typeof A==="function")A().then((Y)=>{q(Y||{})}).catch(K);else q(A||{})})}destroy(){this.connectionManager.destroy()}async handle(A,{abortSignal:q,requestTimeout:K}={}){if(!this.config){if(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams)this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}let{requestTimeout:Y,disableConcurrentStreams:z}=this.config,w=K??Y;return new Promise((_,$)=>{let O=!1,H=void 0,j=async(C)=>{await H,_(C)},J=async(C)=>{await H,$(C)};if(q?.aborted){O=!0;let C=Error("Request aborted");C.name="AbortError",J(C);return}let{hostname:M,method:D,port:X,protocol:P,query:W}=A,G="";if(A.username!=null||A.password!=null){let C=A.username??"",m=A.password??"";G=`${C}:${m}@`}let Z=`${P}//${G}${M}${X?`:${X}`:""}`,f={destination:new URL(Z)},v=this.connectionManager.lease(f,{requestTimeout:this.config?.sessionTimeout,disableConcurrentStreams:z||!1}),V=(C)=>{if(z)this.destroySession(v);O=!0,J(C)},N=D77.buildQueryString(W||{}),L=A.path;if(N)L+=`?${N}`;if(A.fragment)L+=`#${A.fragment}`;let S=v.request({...A.headers,[f78.constants.HTTP2_HEADER_PATH]:L,[f78.constants.HTTP2_HEADER_METHOD]:D});if(v.ref(),S.on("response",(C)=>{let m=new M77.HttpResponse({statusCode:C[":status"]||-1,headers:P77(C),body:S});if(O=!0,j({response:m}),z)v.close(),this.connectionManager.deleteSession(Z,v)}),w)S.setTimeout(w,()=>{S.close();let C=Error(`Stream timed out because of no activity for ${w} ms`);C.name="TimeoutError",V(C)});if(q){let C=()=>{S.close();let m=Error("Request aborted");m.name="AbortError",V(m)};if(typeof q.addEventListener==="function"){let m=q;m.addEventListener("abort",C,{once:!0}),S.once("close",()=>m.removeEventListener("abort",C))}else q.onabort=C}S.on("frameError",(C,m,x)=>{V(Error(`Frame type id ${C} in stream id ${x} has failed with code ${m}.`))}),S.on("error",V),S.on("aborted",()=>{V(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${S.rstCode}.`))}),S.on("close",()=>{if(v.unref(),z)v.destroy();if(!O)V(Error("Unexpected error: http2 request did not get a response"))}),H=W77(S,A,w)})}updateHttpClientConfig(A,q){this.config=void 0,this.configProvider=this.configProvider.then((K)=>{return{...K,[A]:q}})}httpHandlerConfigs(){return this.config??{}}destroySession(A){if(!A.destroyed)A.destroy()}}class f77 extends X77.Writable{bufferedBytes=[];_write(A,q,K){this.bufferedBytes.push(A),K()}}var bV3=(A)=>{if(uV3(A))return mV3(A);return new Promise((q,K)=>{let Y=new f77;A.pipe(Y),A.on("error",(z)=>{Y.end(),K(z)}),Y.on("error",K),Y.on("finish",function(){let z=new Uint8Array(Buffer.concat(this.bufferedBytes));q(z)})})},uV3=(A)=>typeof ReadableStream==="function"&&A instanceof ReadableStream;async function mV3(A){let q=[],K=A.getReader(),Y=!1,z=0;while(!Y){let{done:$,value:O}=await K.read();if(O)q.push(O),z+=O.length;Y=$}let w=new Uint8Array(z),_=0;for(let $ of q)w.set($,_),_+=$.length;return w}BV3.DEFAULT_REQUEST_TIMEOUT=xV3;BV3.NodeHttp2Handler=T78;BV3.NodeHttpHandler=wY1;BV3.streamCollector=bV3});var mv=h((iV3)=>{var v78={warningEmitted:!1},UV3=(A)=>{if(A&&!v78.warningEmitted&&parseInt(A.substring(1,A.indexOf(".")))<18)v78.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
no longer support Node.js 16.x on January 6, 2025.

To continue receiving updates to AWS services, bug fixes, and security
updates please upgrade to a supported Node.js LTS version.

More information can be found at: https://a.co/74kJMmI`)};function dV3(A,q,K){if(!A.$source)A.$source={};return A.$source[q]=K,A}function cV3(A,q,K){if(!A.__aws_sdk_context)A.__aws_sdk_context={features:{}};else if(!A.__aws_sdk_context.features)A.__aws_sdk_context.features={};A.__aws_sdk_context.features[q]=K}function lV3(A,q,K){if(!A.$source)A.$source={};return A.$source[q]=K,A}iV3.emitWarningIfUnsupportedVersion=UV3;iV3.setCredentialFeature=dV3;iV3.setFeature=cV3;iV3.setTokenFeature=lV3;iV3.state=v78});var MM=h((qN3)=>{class bD6 extends Error{name="ProviderError";tryNextLink;constructor(A,q=!0){let K,Y=!0;if(typeof q==="boolean")K=void 0,Y=q;else if(q!=null&&typeof q==="object")K=q.logger,Y=q.tryNextLink??!0;super(A);this.tryNextLink=Y,Object.setPrototypeOf(this,bD6.prototype),K?.debug?.(`@smithy/property-provider ${Y?"->":"(!)"} ${A}`)}static from(A,q=!0){return Object.assign(new this(A.message,q),A)}}class V78 extends bD6{name="CredentialsProviderError";constructor(A,q=!0){super(A,q);Object.setPrototypeOf(this,V78.prototype)}}class N78 extends bD6{name="TokenProviderError";constructor(A,q=!0){super(A,q);Object.setPrototypeOf(this,N78.prototype)}}var tV3=(...A)=>async()=>{if(A.length===0)throw new bD6("No providers in chain");let q;for(let K of A)try{return await K()}catch(Y){if(q=Y,Y?.tryNextLink)continue;throw Y}throw q},eV3=(A)=>()=>Promise.resolve(A),AN3=(A,q,K)=>{let Y,z,w,_=!1,$=async()=>{if(!z)z=A();try{Y=await z,w=!0,_=!1}finally{z=void 0}return Y};if(q===void 0)return async(O)=>{if(!w||O?.forceRefresh)Y=await $();return Y};return async(O)=>{if(!w||O?.forceRefresh)Y=await $();if(_)return Y;if(K&&!K(Y))return _=!0,Y;if(q(Y))return await $(),Y;return Y}};qN3.CredentialsProviderError=V78;qN3.ProviderError=bD6;qN3.TokenProviderError=N78;qN3.chain=tV3;qN3.fromStatic=eV3;qN3.memoize=AN3});var _Y1=h((JN3)=>{var ON3=mv(),HN3=MM(),T77="AWS_ACCESS_KEY_ID",v77="AWS_SECRET_ACCESS_KEY",V77="AWS_SESSION_TOKEN",N77="AWS_CREDENTIAL_EXPIRATION",k77="AWS_CREDENTIAL_SCOPE",E77="AWS_ACCOUNT_ID",jN3=(A)=>async()=>{A?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let q=process.env[T77],K=process.env[v77],Y=process.env[V77],z=process.env[N77],w=process.env[k77],_=process.env[E77];if(q&&K){let $={accessKeyId:q,secretAccessKey:K,...Y&&{sessionToken:Y},...z&&{expiration:new Date(z)},...w&&{credentialScope:w},..._&&{accountId:_}};return ON3.setCredentialFeature($,"CREDENTIALS_ENV_VARS","g"),$}throw new HN3.CredentialsProviderError("Unable to find environment variable credentials.",{logger:A?.logger})};JN3.ENV_ACCOUNT_ID=E77;JN3.ENV_CREDENTIAL_SCOPE=k77;JN3.ENV_EXPIRATION=N77;JN3.ENV_KEY=T77;JN3.ENV_SECRET=v77;JN3.ENV_SESSION=V77;JN3.fromEnv=jN3});var E78=h((L77)=>{Object.defineProperty(L77,"__esModule",{value:!0});L77.getHomeDir=void 0;var fN3=u6("os"),TN3=u6("path"),k78={},vN3=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},VN3=()=>{let{HOME:A,USERPROFILE:q,HOMEPATH:K,HOMEDRIVE:Y=`C:${TN3.sep}`}=process.env;if(A)return A;if(q)return q;if(K)return`${Y}${K}`;let z=vN3();if(!k78[z])k78[z]=(0,fN3.homedir)();return k78[z]};L77.getHomeDir=VN3});var L78=h((R77)=>{Object.defineProperty(R77,"__esModule",{value:!0});R77.getSSOTokenFilepath=void 0;var NN3=u6("crypto"),kN3=u6("path"),EN3=E78(),LN3=(A)=>{let K=(0,NN3.createHash)("sha1").update(A).digest("hex");return(0,kN3.join)((0,EN3.getHomeDir)(),".aws","sso","cache",`${K}.json`)};R77.getSSOTokenFilepath=LN3});var I77=h((h77)=>{Object.defineProperty(h77,"__esModule",{value:!0});h77.getSSOTokenFromFile=h77.tokenIntercept=void 0;var yN3=u6("fs/promises"),RN3=L78();h77.tokenIntercept={};var SN3=async(A)=>{if(h77.tokenIntercept[A])return h77.tokenIntercept[A];let q=(0,RN3.getSSOTokenFilepath)(A),K=await(0,yN3.readFile)(q,"utf8");return JSON.parse(K)};h77.getSSOTokenFromFile=SN3});var x77=h((uN3)=>{uN3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(uN3.HttpAuthLocation||(uN3.HttpAuthLocation={}));uN3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(uN3.HttpApiKeyAuthLocation||(uN3.HttpApiKeyAuthLocation={}));uN3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(uN3.EndpointURLScheme||(uN3.EndpointURLScheme={}));uN3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(uN3.AlgorithmId||(uN3.AlgorithmId={}));var hN3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>uN3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>uN3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},CN3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},IN3=(A)=>{return hN3(A)},xN3=(A)=>{return CN3(A)};uN3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(uN3.FieldPosition||(uN3.FieldPosition={}));var bN3="__smithy_context";uN3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(uN3.IniSectionType||(uN3.IniSectionType={}));uN3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(uN3.RequestHandlerProtocol||(uN3.RequestHandlerProtocol={}));uN3.SMITHY_CONTEXT_KEY=bN3;uN3.getDefaultClientConfiguration=IN3;uN3.resolveDefaultRuntimeConfig=xN3});var m77=h((b77)=>{Object.defineProperty(b77,"__esModule",{value:!0});b77.readFile=b77.fileIntercept=b77.filePromises=void 0;var pN3=u6("node:fs/promises");b77.filePromises={};b77.fileIntercept={};var FN3=(A,q)=>{if(b77.fileIntercept[A]!==void 0)return b77.fileIntercept[A];if(!b77.filePromises[A]||q?.ignoreCache)b77.filePromises[A]=(0,pN3.readFile)(A,"utf8");return b77.filePromises[A]};b77.readFile=FN3});var am=h((kK6)=>{var ux6=E78(),B77=L78(),u78=I77(),OY1=u6("path"),HY1=x77(),uD6=m77(),p77="AWS_PROFILE",F77="default",QN3=(A)=>A.profile||process.env[p77]||F77,NK6=".",UN3=(A)=>Object.entries(A).filter(([q])=>{let K=q.indexOf(NK6);if(K===-1)return!1;return Object.values(HY1.IniSectionType).includes(q.substring(0,K))}).reduce((q,[K,Y])=>{let z=K.indexOf(NK6),w=K.substring(0,z)===HY1.IniSectionType.PROFILE?K.substring(z+1):K;return q[w]=Y,q},{...A.default&&{default:A.default}}),dN3="AWS_CONFIG_FILE",Q77=()=>process.env[dN3]||OY1.join(ux6.getHomeDir(),".aws","config"),cN3="AWS_SHARED_CREDENTIALS_FILE",lN3=()=>process.env[cN3]||OY1.join(ux6.getHomeDir(),".aws","credentials"),iN3=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,nN3=["__proto__","profile __proto__"],m78=(A)=>{let q={},K,Y;for(let z of A.split(/\r?\n/)){let w=z.split(/(^|\s)[;#]/)[0].trim();if(w[0]==="["&&w[w.length-1]==="]"){K=void 0,Y=void 0;let $=w.substring(1,w.length-1),O=iN3.exec($);if(O){let[,H,,j]=O;if(Object.values(HY1.IniSectionType).includes(H))K=[H,j].join(NK6)}else K=$;if(nN3.includes($))throw Error(`Found invalid profile name "${$}"`)}else if(K){let $=w.indexOf("=");if(![0,-1].includes($)){let[O,H]=[w.substring(0,$).trim(),w.substring($+1).trim()];if(H==="")Y=O;else{if(Y&&z.trimStart()===z)Y=void 0;q[K]=q[K]||{};let j=Y?[Y,O].join(NK6):O;q[K][j]=H}}}}return q},g77=()=>({}),U77=async(A={})=>{let{filepath:q=lN3(),configFilepath:K=Q77()}=A,Y=ux6.getHomeDir(),z="~/",w=q;if(q.startsWith("~/"))w=OY1.join(Y,q.slice(2));let _=K;if(K.startsWith("~/"))_=OY1.join(Y,K.slice(2));let $=await Promise.all([uD6.readFile(_,{ignoreCache:A.ignoreCache}).then(m78).then(UN3).catch(g77),uD6.readFile(w,{ignoreCache:A.ignoreCache}).then(m78).catch(g77)]);return{configFile:$[0],credentialsFile:$[1]}},rN3=(A)=>Object.entries(A).filter(([q])=>q.startsWith(HY1.IniSectionType.SSO_SESSION+NK6)).reduce((q,[K,Y])=>({...q,[K.substring(K.indexOf(NK6)+1)]:Y}),{}),oN3=()=>({}),aN3=async(A={})=>uD6.readFile(A.configFilepath??Q77()).then(m78).then(rN3).catch(oN3),sN3=(...A)=>{let q={};for(let K of A)for(let[Y,z]of Object.entries(K))if(q[Y]!==void 0)Object.assign(q[Y],z);else q[Y]=z;return q},tN3=async(A)=>{let q=await U77(A);return sN3(q.configFile,q.credentialsFile)},eN3={getFileRecord(){return uD6.fileIntercept},interceptFile(A,q){uD6.fileIntercept[A]=Promise.resolve(q)},getTokenRecord(){return u78.tokenIntercept},interceptToken(A,q){u78.tokenIntercept[A]=q}};Object.defineProperty(kK6,"getSSOTokenFromFile",{enumerable:!0,get:function(){return u78.getSSOTokenFromFile}});Object.defineProperty(kK6,"readFile",{enumerable:!0,get:function(){return uD6.readFile}});kK6.CONFIG_PREFIX_SEPARATOR=NK6;kK6.DEFAULT_PROFILE=F77;kK6.ENV_PROFILE=p77;kK6.externalDataInterceptor=eN3;kK6.getProfileName=QN3;kK6.loadSharedConfigFiles=U77;kK6.loadSsoSessionData=aN3;kK6.parseKnownFiles=tN3;Object.keys(ux6).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(kK6,A))Object.defineProperty(kK6,A,{enumerable:!0,get:function(){return ux6[A]}})});Object.keys(B77).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(kK6,A))Object.defineProperty(kK6,A,{enumerable:!0,get:function(){return B77[A]}})})});var Bv=h((Dk3)=>{var mx6=MM(),d77=am();function c77(A){try{let q=new Set(Array.from(A.match(/([A-Z_]){3,}/g)??[]));return q.delete("CONFIG"),q.delete("CONFIG_PREFIX_SEPARATOR"),q.delete("ENV"),[...q].join(", ")}catch(q){return A}}var Ok3=(A,q)=>async()=>{try{let K=A(process.env,q);if(K===void 0)throw Error();return K}catch(K){throw new mx6.CredentialsProviderError(K.message||`Not found in ENV: ${c77(A.toString())}`,{logger:q?.logger})}},Hk3=(A,{preferredFile:q="config",...K}={})=>async()=>{let Y=d77.getProfileName(K),{configFile:z,credentialsFile:w}=await d77.loadSharedConfigFiles(K),_=w[Y]||{},$=z[Y]||{},O=q==="config"?{..._,...$}:{...$,..._};try{let j=A(O,q==="config"?z:w);if(j===void 0)throw Error();return j}catch(H){throw new mx6.CredentialsProviderError(H.message||`Not found in config files w/ profile [${Y}]: ${c77(A.toString())}`,{logger:K.logger})}},jk3=(A)=>typeof A==="function",Jk3=(A)=>jk3(A)?async()=>await A():mx6.fromStatic(A),Mk3=({environmentVariableSelector:A,configFileSelector:q,default:K},Y={})=>{let{signingName:z,logger:w}=Y,_={signingName:z,logger:w};return mx6.memoize(mx6.chain(Ok3(A,_),Hk3(q,Y),Jk3(K)))};Dk3.loadConfig=Mk3});var l77=h((Wk3)=>{function Pk3(A){let q={};if(A=A.replace(/^\?/,""),A)for(let K of A.split("&")){let[Y,z=null]=K.split("=");if(Y=decodeURIComponent(Y),z)z=decodeURIComponent(z);if(!(Y in q))q[Y]=z;else if(Array.isArray(q[Y]))q[Y].push(z);else q[Y]=[q[Y],z]}return q}Wk3.parseQueryString=Pk3});var py=h((fk3)=>{var Zk3=l77(),i77=(A)=>{if(typeof A==="string")return i77(new URL(A));let{hostname:q,pathname:K,port:Y,protocol:z,search:w}=A,_;if(w)_=Zk3.parseQueryString(w);return{hostname:q,port:Y?parseInt(Y):void 0,protocol:z,path:K,query:_}};fk3.parseUrl=i77});var EK6=h((ok3)=>{var sm=MM(),vk3=u6("url"),Vk3=u6("buffer"),Nk3=u6("http"),F78=Bv(),kk3=py();function gx6(A){return new Promise((q,K)=>{let Y=Nk3.request({method:"GET",...A,hostname:A.hostname?.replace(/^\[(.+)\]$/,"$1")});Y.on("error",(z)=>{K(Object.assign(new sm.ProviderError("Unable to connect to instance metadata service"),z)),Y.destroy()}),Y.on("timeout",()=>{K(new sm.ProviderError("TimeoutError from instance metadata service")),Y.destroy()}),Y.on("response",(z)=>{let{statusCode:w=400}=z;if(w<200||300<=w)K(Object.assign(new sm.ProviderError("Error response received from instance metadata service"),{statusCode:w})),Y.destroy();let _=[];z.on("data",($)=>{_.push($)}),z.on("end",()=>{q(Vk3.Buffer.concat(_)),Y.destroy()})}),Y.end()})}var a77=(A)=>Boolean(A)&&typeof A==="object"&&typeof A.AccessKeyId==="string"&&typeof A.SecretAccessKey==="string"&&typeof A.Token==="string"&&typeof A.Expiration==="string",s77=(A)=>({accessKeyId:A.AccessKeyId,secretAccessKey:A.SecretAccessKey,sessionToken:A.Token,expiration:new Date(A.Expiration),...A.AccountId&&{accountId:A.AccountId}}),t77=1000,e77=0,Q78=({maxRetries:A=e77,timeout:q=t77})=>({maxRetries:A,timeout:q}),g78=(A,q)=>{let K=A();for(let Y=0;Y<q;Y++)K=K.catch(A);return K},jY1="AWS_CONTAINER_CREDENTIALS_FULL_URI",JY1="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",p78="AWS_CONTAINER_AUTHORIZATION_TOKEN",Ek3=(A={})=>{let{timeout:q,maxRetries:K}=Q78(A);return()=>g78(async()=>{let Y=await hk3({logger:A.logger}),z=JSON.parse(await Lk3(q,Y));if(!a77(z))throw new sm.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:A.logger});return s77(z)},K)},Lk3=async(A,q)=>{if(process.env[p78])q.headers={...q.headers,Authorization:process.env[p78]};return(await gx6({...q,timeout:A})).toString()},yk3="169.254.170.2",Rk3={localhost:!0,"127.0.0.1":!0},Sk3={"http:":!0,"https:":!0},hk3=async({logger:A})=>{if(process.env[JY1])return{hostname:yk3,path:process.env[JY1]};if(process.env[jY1]){let q=vk3.parse(process.env[jY1]);if(!q.hostname||!(q.hostname in Rk3))throw new sm.CredentialsProviderError(`${q.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:A});if(!q.protocol||!(q.protocol in Sk3))throw new sm.CredentialsProviderError(`${q.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:A});return{...q,port:q.port?parseInt(q.port,10):void 0}}throw new sm.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${JY1} or ${jY1} environment variable is set`,{tryNextLink:!1,logger:A})};class U78 extends sm.CredentialsProviderError{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(A,q=!0){super(A,q);this.tryNextLink=q,Object.setPrototypeOf(this,U78.prototype)}}ok3.Endpoint=void 0;(function(A){A.IPv4="http://169.254.169.254",A.IPv6="http://[fd00:ec2::254]"})(ok3.Endpoint||(ok3.Endpoint={}));var Ck3="AWS_EC2_METADATA_SERVICE_ENDPOINT",Ik3="ec2_metadata_service_endpoint",xk3={environmentVariableSelector:(A)=>A[Ck3],configFileSelector:(A)=>A[Ik3],default:void 0},mD6;(function(A){A.IPv4="IPv4",A.IPv6="IPv6"})(mD6||(mD6={}));var bk3="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",uk3="ec2_metadata_service_endpoint_mode",mk3={environmentVariableSelector:(A)=>A[bk3],configFileSelector:(A)=>A[uk3],default:mD6.IPv4},A47=async()=>kk3.parseUrl(await Bk3()||await gk3()),Bk3=async()=>F78.loadConfig(xk3)(),gk3=async()=>{let A=await F78.loadConfig(mk3)();switch(A){case mD6.IPv4:return ok3.Endpoint.IPv4;case mD6.IPv6:return ok3.Endpoint.IPv6;default:throw Error(`Unsupported endpoint mode: ${A}. Select from ${Object.values(mD6)}`)}},pk3=300,Fk3=300,Qk3="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",n77=(A,q)=>{let K=pk3+Math.floor(Math.random()*Fk3),Y=new Date(Date.now()+K*1000);q.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(Y)}.
For more information, please visit: `+Qk3);let z=A.originalExpiration??A.expiration;return{...A,...z?{originalExpiration:z}:{},expiration:Y}},Uk3=(A,q={})=>{let K=q?.logger||console,Y;return async()=>{let z;try{if(z=await A(),z.expiration&&z.expiration.getTime()<Date.now())z=n77(z,K)}catch(w){if(Y)K.warn("Credential renew failed: ",w),z=n77(Y,K);else throw w}return Y=z,z}},q47="/latest/meta-data/iam/security-credentials/",dk3="/latest/api/token",B78="AWS_EC2_METADATA_V1_DISABLED",r77="ec2_metadata_v1_disabled",o77="x-aws-ec2-metadata-token",ck3=(A={})=>Uk3(lk3(A),{logger:A.logger}),lk3=(A={})=>{let q=!1,{logger:K,profile:Y}=A,{timeout:z,maxRetries:w}=Q78(A),_=async($,O)=>{if(q||O.headers?.[o77]==null){let J=!1,M=!1,D=await F78.loadConfig({environmentVariableSelector:(X)=>{let P=X[B78];if(M=!!P&&P!=="false",P===void 0)throw new sm.CredentialsProviderError(`${B78} not set in env, checking config file next.`,{logger:A.logger});return M},configFileSelector:(X)=>{let P=X[r77];return J=!!P&&P!=="false",J},default:!1},{profile:Y})();if(A.ec2MetadataV1Disabled||D){let X=[];if(A.ec2MetadataV1Disabled)X.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(J)X.push(`config file profile (${r77})`);if(M)X.push(`process environment variable (${B78})`);throw new U78(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${X.join(", ")}].`)}}let j=(await g78(async()=>{let J;try{J=await nk3(O)}catch(M){if(M.statusCode===401)q=!1;throw M}return J},$)).trim();return g78(async()=>{let J;try{J=await rk3(j,O,A)}catch(M){if(M.statusCode===401)q=!1;throw M}return J},$)};return async()=>{let $=await A47();if(q)return K?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),_(w,{...$,timeout:z});else{let O;try{O=(await ik3({...$,timeout:z})).toString()}catch(H){if(H?.statusCode===400)throw Object.assign(H,{message:"EC2 Metadata token request returned error"});else if(H.message==="TimeoutError"||[403,404,405].includes(H.statusCode))q=!0;return K?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),_(w,{...$,timeout:z})}return _(w,{...$,headers:{[o77]:O},timeout:z})}}},ik3=async(A)=>gx6({...A,path:dk3,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),nk3=async(A)=>(await gx6({...A,path:q47})).toString(),rk3=async(A,q,K)=>{let Y=JSON.parse((await gx6({...q,path:q47+A})).toString());if(!a77(Y))throw new sm.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:K.logger});return s77(Y)};ok3.DEFAULT_MAX_RETRIES=e77;ok3.DEFAULT_TIMEOUT=t77;ok3.ENV_CMDS_AUTH_TOKEN=p78;ok3.ENV_CMDS_FULL_URI=jY1;ok3.ENV_CMDS_RELATIVE_URI=JY1;ok3.fromContainerMetadata=Ek3;ok3.fromInstanceMetadata=ck3;ok3.getInstanceMetadataEndpoint=A47;ok3.httpRequest=gx6;ok3.providerConfigFromInit=Q78});var S2=h((g52,XY1)=>{var K47,Y47,z47,w47,_47,$47,O47,H47,j47,J47,M47,D47,X47,MY1,d78,P47,W47,G47,BD6,Z47,f47,T47,v47,V47,N47,k47,E47,L47,DY1,y47,R47,S47;(function(A){var q=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(Y){A(K(q,K(Y)))});else if(typeof XY1==="object"&&typeof g52==="object")A(K(q,K(g52)));else A(K(q));function K(Y,z){if(Y!==q)if(typeof Object.create==="function")Object.defineProperty(Y,"__esModule",{value:!0});else Y.__esModule=!0;return function(w,_){return Y[w]=z?z(w,_):_}}})(function(A){var q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,_){w.__proto__=_}||function(w,_){for(var $ in _)if(Object.prototype.hasOwnProperty.call(_,$))w[$]=_[$]};K47=function(w,_){if(typeof _!=="function"&&_!==null)throw TypeError("Class extends value "+String(_)+" is not a constructor or null");q(w,_);function $(){this.constructor=w}w.prototype=_===null?Object.create(_):($.prototype=_.prototype,new $)},Y47=Object.assign||function(w){for(var _,$=1,O=arguments.length;$<O;$++){_=arguments[$];for(var H in _)if(Object.prototype.hasOwnProperty.call(_,H))w[H]=_[H]}return w},z47=function(w,_){var $={};for(var O in w)if(Object.prototype.hasOwnProperty.call(w,O)&&_.indexOf(O)<0)$[O]=w[O];if(w!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var H=0,O=Object.getOwnPropertySymbols(w);H<O.length;H++)if(_.indexOf(O[H])<0&&Object.prototype.propertyIsEnumerable.call(w,O[H]))$[O[H]]=w[O[H]]}return $},w47=function(w,_,$,O){var H=arguments.length,j=H<3?_:O===null?O=Object.getOwnPropertyDescriptor(_,$):O,J;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")j=Reflect.decorate(w,_,$,O);else for(var M=w.length-1;M>=0;M--)if(J=w[M])j=(H<3?J(j):H>3?J(_,$,j):J(_,$))||j;return H>3&&j&&Object.defineProperty(_,$,j),j},_47=function(w,_){return function($,O){_($,O,w)}},$47=function(w,_,$,O,H,j){function J(N){if(N!==void 0&&typeof N!=="function")throw TypeError("Function expected");return N}var M=O.kind,D=M==="getter"?"get":M==="setter"?"set":"value",X=!_&&w?O.static?w:w.prototype:null,P=_||(X?Object.getOwnPropertyDescriptor(X,O.name):{}),W,G=!1;for(var Z=$.length-1;Z>=0;Z--){var f={};for(var v in O)f[v]=v==="access"?{}:O[v];for(var v in O.access)f.access[v]=O.access[v];f.addInitializer=function(N){if(G)throw TypeError("Cannot add initializers after decoration has completed");j.push(J(N||null))};var V=(0,$[Z])(M==="accessor"?{get:P.get,set:P.set}:P[D],f);if(M==="accessor"){if(V===void 0)continue;if(V===null||typeof V!=="object")throw TypeError("Object expected");if(W=J(V.get))P.get=W;if(W=J(V.set))P.set=W;if(W=J(V.init))H.unshift(W)}else if(W=J(V))if(M==="field")H.unshift(W);else P[D]=W}if(X)Object.defineProperty(X,O.name,P);G=!0},O47=function(w,_,$){var O=arguments.length>2;for(var H=0;H<_.length;H++)$=O?_[H].call(w,$):_[H].call(w);return O?$:void 0},H47=function(w){return typeof w==="symbol"?w:"".concat(w)},j47=function(w,_,$){if(typeof _==="symbol")_=_.description?"[".concat(_.description,"]"):"";return Object.defineProperty(w,"name",{configurable:!0,value:$?"".concat($," ",_):_})},J47=function(w,_){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(w,_)},M47=function(w,_,$,O){function H(j){return j instanceof $?j:new $(function(J){J(j)})}return new($||($=Promise))(function(j,J){function M(P){try{X(O.next(P))}catch(W){J(W)}}function D(P){try{X(O.throw(P))}catch(W){J(W)}}function X(P){P.done?j(P.value):H(P.value).then(M,D)}X((O=O.apply(w,_||[])).next())})},D47=function(w,_){var $={label:0,sent:function(){if(j[0]&1)throw j[1];return j[1]},trys:[],ops:[]},O,H,j,J=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return J.next=M(0),J.throw=M(1),J.return=M(2),typeof Symbol==="function"&&(J[Symbol.iterator]=function(){return this}),J;function M(X){return function(P){return D([X,P])}}function D(X){if(O)throw TypeError("Generator is already executing.");while(J&&(J=0,X[0]&&($=0)),$)try{if(O=1,H&&(j=X[0]&2?H.return:X[0]?H.throw||((j=H.return)&&j.call(H),0):H.next)&&!(j=j.call(H,X[1])).done)return j;if(H=0,j)X=[X[0]&2,j.value];switch(X[0]){case 0:case 1:j=X;break;case 4:return $.label++,{value:X[1],done:!1};case 5:$.label++,H=X[1],X=[0];continue;case 7:X=$.ops.pop(),$.trys.pop();continue;default:if((j=$.trys,!(j=j.length>0&&j[j.length-1]))&&(X[0]===6||X[0]===2)){$=0;continue}if(X[0]===3&&(!j||X[1]>j[0]&&X[1]<j[3])){$.label=X[1];break}if(X[0]===6&&$.label<j[1]){$.label=j[1],j=X;break}if(j&&$.label<j[2]){$.label=j[2],$.ops.push(X);break}if(j[2])$.ops.pop();$.trys.pop();continue}X=_.call(w,$)}catch(P){X=[6,P],H=0}finally{O=j=0}if(X[0]&5)throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}},X47=function(w,_){for(var $ in w)if($!=="default"&&!Object.prototype.hasOwnProperty.call(_,$))DY1(_,w,$)},DY1=Object.create?function(w,_,$,O){if(O===void 0)O=$;var H=Object.getOwnPropertyDescriptor(_,$);if(!H||("get"in H?!_.__esModule:H.writable||H.configurable))H={enumerable:!0,get:function(){return _[$]}};Object.defineProperty(w,O,H)}:function(w,_,$,O){if(O===void 0)O=$;w[O]=_[$]},MY1=function(w){var _=typeof Symbol==="function"&&Symbol.iterator,$=_&&w[_],O=0;if($)return $.call(w);if(w&&typeof w.length==="number")return{next:function(){if(w&&O>=w.length)w=void 0;return{value:w&&w[O++],done:!w}}};throw TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")},d78=function(w,_){var $=typeof Symbol==="function"&&w[Symbol.iterator];if(!$)return w;var O=$.call(w),H,j=[],J;try{while((_===void 0||_-- >0)&&!(H=O.next()).done)j.push(H.value)}catch(M){J={error:M}}finally{try{if(H&&!H.done&&($=O.return))$.call(O)}finally{if(J)throw J.error}}return j},P47=function(){for(var w=[],_=0;_<arguments.length;_++)w=w.concat(d78(arguments[_]));return w},W47=function(){for(var w=0,_=0,$=arguments.length;_<$;_++)w+=arguments[_].length;for(var O=Array(w),H=0,_=0;_<$;_++)for(var j=arguments[_],J=0,M=j.length;J<M;J++,H++)O[H]=j[J];return O},G47=function(w,_,$){if($||arguments.length===2){for(var O=0,H=_.length,j;O<H;O++)if(j||!(O in _)){if(!j)j=Array.prototype.slice.call(_,0,O);j[O]=_[O]}}return w.concat(j||Array.prototype.slice.call(_))},BD6=function(w){return this instanceof BD6?(this.v=w,this):new BD6(w)},Z47=function(w,_,$){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var O=$.apply(w,_||[]),H,j=[];return H=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),M("next"),M("throw"),M("return",J),H[Symbol.asyncIterator]=function(){return this},H;function J(Z){return function(f){return Promise.resolve(f).then(Z,W)}}function M(Z,f){if(O[Z]){if(H[Z]=function(v){return new Promise(function(V,N){j.push([Z,v,V,N])>1||D(Z,v)})},f)H[Z]=f(H[Z])}}function D(Z,f){try{X(O[Z](f))}catch(v){G(j[0][3],v)}}function X(Z){Z.value instanceof BD6?Promise.resolve(Z.value.v).then(P,W):G(j[0][2],Z)}function P(Z){D("next",Z)}function W(Z){D("throw",Z)}function G(Z,f){if(Z(f),j.shift(),j.length)D(j[0][0],j[0][1])}},f47=function(w){var _,$;return _={},O("next"),O("throw",function(H){throw H}),O("return"),_[Symbol.iterator]=function(){return this},_;function O(H,j){_[H]=w[H]?function(J){return($=!$)?{value:BD6(w[H](J)),done:!1}:j?j(J):J}:j}},T47=function(w){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var _=w[Symbol.asyncIterator],$;return _?_.call(w):(w=typeof MY1==="function"?MY1(w):w[Symbol.iterator](),$={},O("next"),O("throw"),O("return"),$[Symbol.asyncIterator]=function(){return this},$);function O(j){$[j]=w[j]&&function(J){return new Promise(function(M,D){J=w[j](J),H(M,D,J.done,J.value)})}}function H(j,J,M,D){Promise.resolve(D).then(function(X){j({value:X,done:M})},J)}},v47=function(w,_){if(Object.defineProperty)Object.defineProperty(w,"raw",{value:_});else w.raw=_;return w};var K=Object.create?function(w,_){Object.defineProperty(w,"default",{enumerable:!0,value:_})}:function(w,_){w.default=_},Y=function(w){return Y=Object.getOwnPropertyNames||function(_){var $=[];for(var O in _)if(Object.prototype.hasOwnProperty.call(_,O))$[$.length]=O;return $},Y(w)};V47=function(w){if(w&&w.__esModule)return w;var _={};if(w!=null){for(var $=Y(w),O=0;O<$.length;O++)if($[O]!=="default")DY1(_,w,$[O])}return K(_,w),_},N47=function(w){return w&&w.__esModule?w:{default:w}},k47=function(w,_,$,O){if($==="a"&&!O)throw TypeError("Private accessor was defined without a getter");if(typeof _==="function"?w!==_||!O:!_.has(w))throw TypeError("Cannot read private member from an object whose class did not declare it");return $==="m"?O:$==="a"?O.call(w):O?O.value:_.get(w)},E47=function(w,_,$,O,H){if(O==="m")throw TypeError("Private method is not writable");if(O==="a"&&!H)throw TypeError("Private accessor was defined without a setter");if(typeof _==="function"?w!==_||!H:!_.has(w))throw TypeError("Cannot write private member to an object whose class did not declare it");return O==="a"?H.call(w,$):H?H.value=$:_.set(w,$),$},L47=function(w,_){if(_===null||typeof _!=="object"&&typeof _!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof w==="function"?_===w:w.has(_)},y47=function(w,_,$){if(_!==null&&_!==void 0){if(typeof _!=="object"&&typeof _!=="function")throw TypeError("Object expected.");var O,H;if($){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");O=_[Symbol.asyncDispose]}if(O===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(O=_[Symbol.dispose],$)H=O}if(typeof O!=="function")throw TypeError("Object not disposable.");if(H)O=function(){try{H.call(this)}catch(j){return Promise.reject(j)}};w.stack.push({value:_,dispose:O,async:$})}else if($)w.stack.push({async:!0});return _};var z=typeof SuppressedError==="function"?SuppressedError:function(w,_,$){var O=Error($);return O.name="SuppressedError",O.error=w,O.suppressed=_,O};R47=function(w){function _(j){w.error=w.hasError?new z(j,w.error,"An error was suppressed during disposal."):j,w.hasError=!0}var $,O=0;function H(){while($=w.stack.pop())try{if(!$.async&&O===1)return O=0,w.stack.push($),Promise.resolve().then(H);if($.dispose){var j=$.dispose.call($.value);if($.async)return O|=2,Promise.resolve(j).then(H,function(J){return _(J),H()})}else O|=1}catch(J){_(J)}if(O===1)return w.hasError?Promise.reject(w.error):Promise.resolve();if(w.hasError)throw w.error}return H()},S47=function(w,_){if(typeof w==="string"&&/^\.\.?\//.test(w))return w.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function($,O,H,j,J){return O?_?".jsx":".js":H&&(!j||!J)?$:H+j+"."+J.toLowerCase()+"js"});return w},A("__extends",K47),A("__assign",Y47),A("__rest",z47),A("__decorate",w47),A("__param",_47),A("__esDecorate",$47),A("__runInitializers",O47),A("__propKey",H47),A("__setFunctionName",j47),A("__metadata",J47),A("__awaiter",M47),A("__generator",D47),A("__exportStar",X47),A("__createBinding",DY1),A("__values",MY1),A("__read",d78),A("__spread",P47),A("__spreadArrays",W47),A("__spreadArray",G47),A("__await",BD6),A("__asyncGenerator",Z47),A("__asyncDelegator",f47),A("__asyncValues",T47),A("__makeTemplateObject",v47),A("__importStar",V47),A("__importDefault",N47),A("__classPrivateFieldGet",k47),A("__classPrivateFieldSet",E47),A("__classPrivateFieldIn",L47),A("__addDisposableResource",y47),A("__disposeResources",R47),A("__rewriteRelativeImportExtension",S47)})});var I47=h((h47)=>{Object.defineProperty(h47,"__esModule",{value:!0});h47.checkUrl=void 0;var _E3=MM(),$E3="169.254.170.2",OE3="169.254.170.23",HE3="[fd00:ec2::23]",jE3=(A,q)=>{if(A.protocol==="https:")return;if(A.hostname===$E3||A.hostname===OE3||A.hostname===HE3)return;if(A.hostname.includes("[")){if(A.hostname==="[::1]"||A.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(A.hostname==="localhost")return;let K=A.hostname.split("."),Y=(z)=>{let w=parseInt(z,10);return 0<=w&&w<=255};if(K[0]==="127"&&Y(K[1])&&Y(K[2])&&Y(K[3])&&K.length===4)return}throw new _E3.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
  - loopback CIDR 127.0.0.0/8 or [::1/128]
  - ECS container host 169.254.170.2
  - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:q})};h47.checkUrl=jE3});var a78=h((WE3)=>{WE3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(WE3.HttpAuthLocation||(WE3.HttpAuthLocation={}));WE3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(WE3.HttpApiKeyAuthLocation||(WE3.HttpApiKeyAuthLocation={}));WE3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(WE3.EndpointURLScheme||(WE3.EndpointURLScheme={}));WE3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(WE3.AlgorithmId||(WE3.AlgorithmId={}));var JE3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>WE3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>WE3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},ME3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},DE3=(A)=>{return JE3(A)},XE3=(A)=>{return ME3(A)};WE3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(WE3.FieldPosition||(WE3.FieldPosition={}));var PE3="__smithy_context";WE3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(WE3.IniSectionType||(WE3.IniSectionType={}));WE3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(WE3.RequestHandlerProtocol||(WE3.RequestHandlerProtocol={}));WE3.SMITHY_CONTEXT_KEY=PE3;WE3.getDefaultClientConfiguration=DE3;WE3.resolveDefaultRuntimeConfig=XE3});var m47=h((EE3)=>{var TE3=a78(),vE3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},VE3=(A)=>{return{httpHandler:A.httpHandler()}};class x47{name;kind;values;constructor({name:A,kind:q=TE3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class b47{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class PY1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new PY1({...A,headers:{...A.headers}});if(q.query)q.query=NE3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return PY1.clone(this)}}function NE3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class u47{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function kE3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}EE3.Field=x47;EE3.Fields=b47;EE3.HttpRequest=PY1;EE3.HttpResponse=u47;EE3.getHttpHandlerExtensionConfiguration=vE3;EE3.isValidHostname=kE3;EE3.resolveHttpHandlerRuntimeConfig=VE3});var tm=h((xE3)=>{var LK6=(A,q)=>{let K=[];if(A)K.push(A);if(q)for(let Y of q)K.push(Y);return K},xs=(A,q)=>{return`${A||"anonymous"}${q&&q.length>0?` (a.k.a. ${q.join(",")})`:""}`},s78=()=>{let A=[],q=[],K=!1,Y=new Set,z=(J)=>J.sort((M,D)=>B47[D.step]-B47[M.step]||g47[D.priority||"normal"]-g47[M.priority||"normal"]),w=(J)=>{let M=!1,D=(X)=>{let P=LK6(X.name,X.aliases);if(P.includes(J)){M=!0;for(let W of P)Y.delete(W);return!1}return!0};return A=A.filter(D),q=q.filter(D),M},_=(J)=>{let M=!1,D=(X)=>{if(X.middleware===J){M=!0;for(let P of LK6(X.name,X.aliases))Y.delete(P);return!1}return!0};return A=A.filter(D),q=q.filter(D),M},$=(J)=>{return A.forEach((M)=>{J.add(M.middleware,{...M})}),q.forEach((M)=>{J.addRelativeTo(M.middleware,{...M})}),J.identifyOnResolve?.(j.identifyOnResolve()),J},O=(J)=>{let M=[];return J.before.forEach((D)=>{if(D.before.length===0&&D.after.length===0)M.push(D);else M.push(...O(D))}),M.push(J),J.after.reverse().forEach((D)=>{if(D.before.length===0&&D.after.length===0)M.push(D);else M.push(...O(D))}),M},H=(J=!1)=>{let M=[],D=[],X={};return A.forEach((W)=>{let G={...W,before:[],after:[]};for(let Z of LK6(G.name,G.aliases))X[Z]=G;M.push(G)}),q.forEach((W)=>{let G={...W,before:[],after:[]};for(let Z of LK6(G.name,G.aliases))X[Z]=G;D.push(G)}),D.forEach((W)=>{if(W.toMiddleware){let G=X[W.toMiddleware];if(G===void 0){if(J)return;throw Error(`${W.toMiddleware} is not found when adding ${xs(W.name,W.aliases)} middleware ${W.relation} ${W.toMiddleware}`)}if(W.relation==="after")G.after.push(W);if(W.relation==="before")G.before.push(W)}}),z(M).map(O).reduce((W,G)=>{return W.push(...G),W},[])},j={add:(J,M={})=>{let{name:D,override:X,aliases:P}=M,W={step:"initialize",priority:"normal",middleware:J,...M},G=LK6(D,P);if(G.length>0){if(G.some((Z)=>Y.has(Z))){if(!X)throw Error(`Duplicate middleware name '${xs(D,P)}'`);for(let Z of G){let f=A.findIndex((V)=>V.name===Z||V.aliases?.some((N)=>N===Z));if(f===-1)continue;let v=A[f];if(v.step!==W.step||W.priority!==v.priority)throw Error(`"${xs(v.name,v.aliases)}" middleware with ${v.priority} priority in ${v.step} step cannot be overridden by "${xs(D,P)}" middleware with ${W.priority} priority in ${W.step} step.`);A.splice(f,1)}}for(let Z of G)Y.add(Z)}A.push(W)},addRelativeTo:(J,M)=>{let{name:D,override:X,aliases:P}=M,W={middleware:J,...M},G=LK6(D,P);if(G.length>0){if(G.some((Z)=>Y.has(Z))){if(!X)throw Error(`Duplicate middleware name '${xs(D,P)}'`);for(let Z of G){let f=q.findIndex((V)=>V.name===Z||V.aliases?.some((N)=>N===Z));if(f===-1)continue;let v=q[f];if(v.toMiddleware!==W.toMiddleware||v.relation!==W.relation)throw Error(`"${xs(v.name,v.aliases)}" middleware ${v.relation} "${v.toMiddleware}" middleware cannot be overridden by "${xs(D,P)}" middleware ${W.relation} "${W.toMiddleware}" middleware.`);q.splice(f,1)}}for(let Z of G)Y.add(Z)}q.push(W)},clone:()=>$(s78()),use:(J)=>{J.applyToStack(j)},remove:(J)=>{if(typeof J==="string")return w(J);else return _(J)},removeByTag:(J)=>{let M=!1,D=(X)=>{let{tags:P,name:W,aliases:G}=X;if(P&&P.includes(J)){let Z=LK6(W,G);for(let f of Z)Y.delete(f);return M=!0,!1}return!0};return A=A.filter(D),q=q.filter(D),M},concat:(J)=>{let M=$(s78());return M.use(J),M.identifyOnResolve(K||M.identifyOnResolve()||(J.identifyOnResolve?.()??!1)),M},applyToStack:$,identify:()=>{return H(!0).map((J)=>{let M=J.step??J.relation+" "+J.toMiddleware;return xs(J.name,J.aliases)+" - "+M})},identifyOnResolve(J){if(typeof J==="boolean")K=J;return K},resolve:(J,M)=>{for(let D of H().map((X)=>X.middleware).reverse())J=D(J,M);if(K)console.log(j.identify());return J}};return j},B47={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},g47={high:3,normal:2,low:1};xE3.constructStack=s78});var p47=h((mE3)=>{var uE3=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";mE3.isArrayBuffer=uE3});var WY1=h((QE3)=>{var gE3=p47(),t78=u6("buffer"),pE3=(A,q=0,K=A.byteLength-q)=>{if(!gE3.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return t78.Buffer.from(A,q,K)},FE3=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?t78.Buffer.from(A,q):t78.Buffer.from(A)};QE3.fromArrayBuffer=pE3;QE3.fromString=FE3});var U47=h((F47)=>{Object.defineProperty(F47,"__esModule",{value:!0});F47.fromBase64=void 0;var cE3=WY1(),lE3=/^[A-Za-z0-9+/]*={0,2}$/,iE3=(A)=>{if(A.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!lE3.exec(A))throw TypeError("Invalid base64 string.");let q=(0,cE3.fromString)(A,"base64");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength)};F47.fromBase64=iE3});var d47=h((rE3)=>{var nE3=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";rE3.isArrayBuffer=nE3});var c47=h((eE3)=>{var aE3=d47(),e78=u6("buffer"),sE3=(A,q=0,K=A.byteLength-q)=>{if(!aE3.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return e78.Buffer.from(A,q,K)},tE3=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?e78.Buffer.from(A,q):e78.Buffer.from(A)};eE3.fromArrayBuffer=sE3;eE3.fromString=tE3});var K2=h((zL3)=>{var l47=c47(),i47=(A)=>{let q=l47.fromString(A,"utf8");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength/Uint8Array.BYTES_PER_ELEMENT)},KL3=(A)=>{if(typeof A==="string")return i47(A);if(ArrayBuffer.isView(A))return new Uint8Array(A.buffer,A.byteOffset,A.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(A)},YL3=(A)=>{if(typeof A==="string")return A;if(typeof A!=="object"||typeof A.byteOffset!=="number"||typeof A.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return l47.fromArrayBuffer(A.buffer,A.byteOffset,A.byteLength).toString("utf8")};zL3.fromUtf8=i47;zL3.toUint8Array=KL3;zL3.toUtf8=YL3});var o47=h((n47)=>{Object.defineProperty(n47,"__esModule",{value:!0});n47.toBase64=void 0;var OL3=WY1(),HL3=K2(),jL3=(A)=>{let q;if(typeof A==="string")q=(0,HL3.fromUtf8)(A);else q=A;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,OL3.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("base64")};n47.toBase64=jL3});var gD6=h((Fx6)=>{var a47=U47(),s47=o47();Object.keys(a47).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(Fx6,A))Object.defineProperty(Fx6,A,{enumerable:!0,get:function(){return a47[A]}})});Object.keys(s47).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(Fx6,A))Object.defineProperty(Fx6,A,{enumerable:!0,get:function(){return s47[A]}})})});var A48=h((e47)=>{Object.defineProperty(e47,"__esModule",{value:!0});e47.ChecksumStream=void 0;var JL3=gD6(),ML3=u6("stream");class t47 extends ML3.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;constructor({expectedChecksum:A,checksum:q,source:K,checksumSourceLocation:Y,base64Encoder:z}){super();if(typeof K.pipe==="function")this.source=K;else throw Error(`@smithy/util-stream: unsupported source type ${K?.constructor?.name??K} in ChecksumStream.`);this.base64Encoder=z??JL3.toBase64,this.expectedChecksum=A,this.checksum=q,this.checksumSourceLocation=Y,this.source.pipe(this)}_read(A){}_write(A,q,K){try{this.checksum.update(A),this.push(A)}catch(Y){return K(Y)}return K()}async _final(A){try{let q=await this.checksum.digest(),K=this.base64Encoder(q);if(this.expectedChecksum!==K)return A(Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${K}" in response header "${this.checksumSourceLocation}".`))}catch(q){return A(q)}return this.push(null),A()}}e47.ChecksumStream=t47});var bs=h((qq7)=>{Object.defineProperty(qq7,"__esModule",{value:!0});qq7.isBlob=qq7.isReadableStream=void 0;var DL3=(A)=>typeof ReadableStream==="function"&&(A?.constructor?.name===ReadableStream.name||A instanceof ReadableStream);qq7.isReadableStream=DL3;var XL3=(A)=>{return typeof Blob==="function"&&(A?.constructor?.name===Blob.name||A instanceof Blob)};qq7.isBlob=XL3});var _q7=h((zq7)=>{Object.defineProperty(zq7,"__esModule",{value:!0});zq7.ChecksumStream=void 0;var WL3=typeof ReadableStream==="function"?ReadableStream:function(){};class Yq7 extends WL3{}zq7.ChecksumStream=Yq7});var Hq7=h(($q7)=>{Object.defineProperty($q7,"__esModule",{value:!0});$q7.createChecksumStream=void 0;var GL3=gD6(),ZL3=bs(),fL3=_q7(),TL3=({expectedChecksum:A,checksum:q,source:K,checksumSourceLocation:Y,base64Encoder:z})=>{if(!(0,ZL3.isReadableStream)(K))throw Error(`@smithy/util-stream: unsupported source type ${K?.constructor?.name??K} in ChecksumStream.`);let w=z??GL3.toBase64;if(typeof TransformStream!=="function")throw Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let _=new TransformStream({start(){},async transform(O,H){q.update(O),H.enqueue(O)},async flush(O){let H=await q.digest(),j=w(H);if(A!==j){let J=Error(`Checksum mismatch: expected "${A}" but received "${j}" in response header "${Y}".`);O.error(J)}else O.terminate()}});K.pipeThrough(_);let $=_.readable;return Object.setPrototypeOf($,fL3.ChecksumStream.prototype),$};$q7.createChecksumStream=TL3});var Jq7=h((jq7)=>{Object.defineProperty(jq7,"__esModule",{value:!0});jq7.createChecksumStream=kL3;var vL3=bs(),VL3=A48(),NL3=Hq7();function kL3(A){if(typeof ReadableStream==="function"&&(0,vL3.isReadableStream)(A.source))return(0,NL3.createChecksumStream)(A);return new VL3.ChecksumStream(A)}});var q48=h((Dq7)=>{Object.defineProperty(Dq7,"__esModule",{value:!0});Dq7.ByteArrayCollector=void 0;class Mq7{allocByteArray;byteLength=0;byteArrays=[];constructor(A){this.allocByteArray=A}push(A){this.byteArrays.push(A),this.byteLength+=A.byteLength}flush(){if(this.byteArrays.length===1){let K=this.byteArrays[0];return this.reset(),K}let A=this.allocByteArray(this.byteLength),q=0;for(let K=0;K<this.byteArrays.length;++K){let Y=this.byteArrays[K];A.set(Y,q),q+=Y.byteLength}return this.reset(),A}reset(){this.byteArrays=[],this.byteLength=0}}Dq7.ByteArrayCollector=Mq7});var Tq7=h((Zq7)=>{Object.defineProperty(Zq7,"__esModule",{value:!0});Zq7.createBufferedReadable=void 0;Zq7.createBufferedReadableStream=Pq7;Zq7.merge=Wq7;Zq7.flush=GY1;Zq7.sizeOf=pD6;Zq7.modeOf=Gq7;var LL3=q48();function Pq7(A,q,K){let Y=A.getReader(),z=!1,w=0,_=["",new LL3.ByteArrayCollector((H)=>new Uint8Array(H))],$=-1,O=async(H)=>{let{value:j,done:J}=await Y.read(),M=j;if(J){if($!==-1){let D=GY1(_,$);if(pD6(D)>0)H.enqueue(D)}H.close()}else{let D=Gq7(M,!1);if($!==D){if($>=0)H.enqueue(GY1(_,$));$=D}if($===-1){H.enqueue(M);return}let X=pD6(M);w+=X;let P=pD6(_[$]);if(X>=q&&P===0)H.enqueue(M);else{let W=Wq7(_,$,M);if(!z&&w>q*2)z=!0,K?.warn(`@smithy/util-stream - stream chunk size ${X} is below threshold of ${q}, automatically buffering.`);if(W>=q)H.enqueue(GY1(_,$));else await O(H)}}};return new ReadableStream({pull:O})}Zq7.createBufferedReadable=Pq7;function Wq7(A,q,K){switch(q){case 0:return A[0]+=K,pD6(A[0]);case 1:case 2:return A[q].push(K),pD6(A[q])}}function GY1(A,q){switch(q){case 0:let K=A[0];return A[0]="",K;case 1:case 2:return A[q].flush()}throw Error(`@smithy/util-stream - invalid index ${q} given to flush()`)}function pD6(A){return A?.byteLength??A?.length??0}function Gq7(A,q=!0){if(q&&typeof Buffer<"u"&&A instanceof Buffer)return 2;if(A instanceof Uint8Array)return 1;if(typeof A==="string")return 0;return-1}});var Nq7=h((Vq7)=>{Object.defineProperty(Vq7,"__esModule",{value:!0});Vq7.createBufferedReadable=bL3;var IL3=u6("node:stream"),vq7=q48(),Gd=Tq7(),xL3=bs();function bL3(A,q,K){if((0,xL3.isReadableStream)(A))return(0,Gd.createBufferedReadableStream)(A,q,K);let Y=new IL3.Readable({read(){}}),z=!1,w=0,_=["",new vq7.ByteArrayCollector((O)=>new Uint8Array(O)),new vq7.ByteArrayCollector((O)=>Buffer.from(new Uint8Array(O)))],$=-1;return A.on("data",(O)=>{let H=(0,Gd.modeOf)(O,!0);if($!==H){if($>=0)Y.push((0,Gd.flush)(_,$));$=H}if($===-1){Y.push(O);return}let j=(0,Gd.sizeOf)(O);w+=j;let J=(0,Gd.sizeOf)(_[$]);if(j>=q&&J===0)Y.push(O);else{let M=(0,Gd.merge)(_,$,O);if(!z&&w>q*2)z=!0,K?.warn(`@smithy/util-stream - stream chunk size ${j} is below threshold of ${q}, automatically buffering.`);if(M>=q)Y.push((0,Gd.flush)(_,$))}}),A.on("end",()=>{if($!==-1){let O=(0,Gd.flush)(_,$);if((0,Gd.sizeOf)(O)>0)Y.push(O)}Y.push(null)}),Y}});var Lq7=h((kq7)=>{Object.defineProperty(kq7,"__esModule",{value:!0});kq7.getAwsChunkedEncodingStream=void 0;var mL3=u6("stream"),BL3=(A,q)=>{let{base64Encoder:K,bodyLengthChecker:Y,checksumAlgorithmFn:z,checksumLocationName:w,streamHasher:_}=q,$=K!==void 0&&z!==void 0&&w!==void 0&&_!==void 0,O=$?_(z,A):void 0,H=new mL3.Readable({read:()=>{}});return A.on("data",(j)=>{let J=Y(j)||0;H.push(`${J.toString(16)}\r
`),H.push(j),H.push(`\r
`)}),A.on("end",async()=>{if(H.push(`0\r
`),$){let j=K(await O);H.push(`${w}:${j}\r
`),H.push(`\r
`)}H.push(null)}),H};kq7.getAwsChunkedEncodingStream=BL3});var Rq7=h((yq7)=>{Object.defineProperty(yq7,"__esModule",{value:!0});yq7.headStream=gL3;async function gL3(A,q){let K=0,Y=[],z=A.getReader(),w=!1;while(!w){let{done:O,value:H}=await z.read();if(H)Y.push(H),K+=H?.byteLength??0;if(K>=q)break;w=O}z.releaseLock();let _=new Uint8Array(Math.min(q,K)),$=0;for(let O of Y){if(O.byteLength>_.byteLength-$){_.set(O.subarray(0,_.byteLength-$),$);break}else _.set(O,$);$+=O.length}return _}});var Iq7=h((hq7)=>{Object.defineProperty(hq7,"__esModule",{value:!0});hq7.headStream=void 0;var FL3=u6("stream"),QL3=Rq7(),UL3=bs(),dL3=(A,q)=>{if((0,UL3.isReadableStream)(A))return(0,QL3.headStream)(A,q);return new Promise((K,Y)=>{let z=new Sq7;z.limit=q,A.pipe(z),A.on("error",(w)=>{z.end(),Y(w)}),z.on("error",Y),z.on("finish",function(){let w=new Uint8Array(Buffer.concat(this.buffers));K(w)})})};hq7.headStream=dL3;class Sq7 extends FL3.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write(A,q,K){if(this.buffers.push(A),this.bytesBuffered+=A.byteLength??0,this.bytesBuffered>=this.limit){let Y=this.bytesBuffered-this.limit,z=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=z.subarray(0,z.byteLength-Y),this.emit("finish")}K()}}});var xq7=h((oL3)=>{oL3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(oL3.HttpAuthLocation||(oL3.HttpAuthLocation={}));oL3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(oL3.HttpApiKeyAuthLocation||(oL3.HttpApiKeyAuthLocation={}));oL3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(oL3.EndpointURLScheme||(oL3.EndpointURLScheme={}));oL3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(oL3.AlgorithmId||(oL3.AlgorithmId={}));var cL3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>oL3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>oL3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},lL3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},iL3=(A)=>{return cL3(A)},nL3=(A)=>{return lL3(A)};oL3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(oL3.FieldPosition||(oL3.FieldPosition={}));var rL3="__smithy_context";oL3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(oL3.IniSectionType||(oL3.IniSectionType={}));oL3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(oL3.RequestHandlerProtocol||(oL3.RequestHandlerProtocol={}));oL3.SMITHY_CONTEXT_KEY=rL3;oL3.getDefaultClientConfiguration=iL3;oL3.resolveDefaultRuntimeConfig=nL3});var Bq7=h((zy3)=>{var eL3=xq7(),Ay3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},qy3=(A)=>{return{httpHandler:A.httpHandler()}};class bq7{name;kind;values;constructor({name:A,kind:q=eL3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class uq7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class ZY1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new ZY1({...A,headers:{...A.headers}});if(q.query)q.query=Ky3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return ZY1.clone(this)}}function Ky3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class mq7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function Yy3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}zy3.Field=bq7;zy3.Fields=uq7;zy3.HttpRequest=ZY1;zy3.HttpResponse=mq7;zy3.getHttpHandlerExtensionConfiguration=Ay3;zy3.isValidHostname=Yy3;zy3.resolveHttpHandlerRuntimeConfig=qy3});var pq7=h((Xy3)=>{var gq7=(A)=>encodeURIComponent(A).replace(/[!'()*]/g,My3),My3=(A)=>`%${A.charCodeAt(0).toString(16).toUpperCase()}`,Dy3=(A)=>A.split("/").map(gq7).join("/");Xy3.escapeUri=gq7;Xy3.escapeUriPath=Dy3});var Fq7=h((Zy3)=>{var O48=pq7();function Gy3(A){let q=[];for(let K of Object.keys(A).sort()){let Y=A[K];if(K=O48.escapeUri(K),Array.isArray(Y))for(let z=0,w=Y.length;z<w;z++)q.push(`${K}=${O48.escapeUri(Y[z])}`);else{let z=K;if(Y||typeof Y==="string")z+=`=${O48.escapeUri(Y)}`;q.push(z)}}return q.join("&")}Zy3.buildQueryString=Gy3});var dq7=h((yy3)=>{var Qq7=Bq7(),Ty3=Fq7(),vy3=gD6();function Uq7(A,q){return new Request(A,q)}function Vy3(A=0){return new Promise((q,K)=>{if(A)setTimeout(()=>{let Y=Error(`Request did not complete within ${A} ms`);Y.name="TimeoutError",K(Y)},A)})}var fY1={supported:void 0};class H48{config;configProvider;static create(A){if(typeof A?.handle==="function")return A;return new H48(A)}constructor(A){if(typeof A==="function")this.configProvider=A().then((q)=>q||{});else this.config=A??{},this.configProvider=Promise.resolve(this.config);if(fY1.supported===void 0)fY1.supported=Boolean(typeof Request<"u"&&"keepalive"in Uq7("https://[::1]"))}destroy(){}async handle(A,{abortSignal:q,requestTimeout:K}={}){if(!this.config)this.config=await this.configProvider;let Y=K??this.config.requestTimeout,z=this.config.keepAlive===!0,w=this.config.credentials;if(q?.aborted){let G=Error("Request aborted");return G.name="AbortError",Promise.reject(G)}let _=A.path,$=Ty3.buildQueryString(A.query||{});if($)_+=`?${$}`;if(A.fragment)_+=`#${A.fragment}`;let O="";if(A.username!=null||A.password!=null){let G=A.username??"",Z=A.password??"";O=`${G}:${Z}@`}let{port:H,method:j}=A,J=`${A.protocol}//${O}${A.hostname}${H?`:${H}`:""}${_}`,M=j==="GET"||j==="HEAD"?void 0:A.body,D={body:M,headers:new Headers(A.headers),method:j,credentials:w};if(this.config?.cache)D.cache=this.config.cache;if(M)D.duplex="half";if(typeof AbortController<"u")D.signal=q;if(fY1.supported)D.keepalive=z;if(typeof this.config.requestInit==="function")Object.assign(D,this.config.requestInit(A));let X=()=>{},P=Uq7(J,D),W=[fetch(P).then((G)=>{let Z=G.headers,f={};for(let V of Z.entries())f[V[0]]=V[1];if(G.body==null)return G.blob().then((V)=>({response:new Qq7.HttpResponse({headers:f,reason:G.statusText,statusCode:G.status,body:V})}));return{response:new Qq7.HttpResponse({headers:f,reason:G.statusText,statusCode:G.status,body:G.body})}}),Vy3(Y)];if(q)W.push(new Promise((G,Z)=>{let f=()=>{let v=Error("Request aborted");v.name="AbortError",Z(v)};if(typeof q.addEventListener==="function"){let v=q;v.addEventListener("abort",f,{once:!0}),X=()=>v.removeEventListener("abort",f)}else q.onabort=f}));return Promise.race(W).finally(X)}updateHttpClientConfig(A,q){this.config=void 0,this.configProvider=this.configProvider.then((K)=>{return K[A]=q,K})}httpHandlerConfigs(){return this.config??{}}}var Ny3=async(A)=>{if(typeof Blob==="function"&&A instanceof Blob||A.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await A.arrayBuffer());return ky3(A)}return Ey3(A)};async function ky3(A){let q=await Ly3(A),K=vy3.fromBase64(q);return new Uint8Array(K)}async function Ey3(A){let q=[],K=A.getReader(),Y=!1,z=0;while(!Y){let{done:$,value:O}=await K.read();if(O)q.push(O),z+=O.length;Y=$}let w=new Uint8Array(z),_=0;for(let $ of q)w.set($,_),_+=$.length;return w}function Ly3(A){return new Promise((q,K)=>{let Y=new FileReader;Y.onloadend=()=>{if(Y.readyState!==2)return K(Error("Reader aborted too early"));let z=Y.result??"",w=z.indexOf(","),_=w>-1?w+1:z.length;q(z.substring(_))},Y.onabort=()=>K(Error("Read aborted")),Y.onerror=()=>K(Y.error),Y.readAsDataURL(A)})}yy3.FetchHttpHandler=H48;yy3.keepAliveSupport=fY1;yy3.streamCollector=Ny3});var lq7=h((xy3)=>{var cq7={},j48={};for(let A=0;A<256;A++){let q=A.toString(16).toLowerCase();if(q.length===1)q=`0${q}`;cq7[A]=q,j48[q]=A}function Cy3(A){if(A.length%2!==0)throw Error("Hex encoded strings must have an even number length");let q=new Uint8Array(A.length/2);for(let K=0;K<A.length;K+=2){let Y=A.slice(K,K+2).toLowerCase();if(Y in j48)q[K/2]=j48[Y];else throw Error(`Cannot decode unrecognized sequence ${Y} as hexadecimal`)}return q}function Iy3(A){let q="";for(let K=0;K<A.byteLength;K++)q+=cq7[A[K]];return q}xy3.fromHex=Cy3;xy3.toHex=Iy3});var sq7=h((oq7)=>{Object.defineProperty(oq7,"__esModule",{value:!0});oq7.sdkStreamMixin=void 0;var my3=dq7(),By3=gD6(),gy3=lq7(),py3=K2(),iq7=bs(),nq7="The stream has already been transformed.",Fy3=(A)=>{if(!rq7(A)&&!(0,iq7.isReadableStream)(A)){let z=A?.__proto__?.constructor?.name||A;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${z}`)}let q=!1,K=async()=>{if(q)throw Error(nq7);return q=!0,await(0,my3.streamCollector)(A)},Y=(z)=>{if(typeof z.stream!=="function")throw Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return z.stream()};return Object.assign(A,{transformToByteArray:K,transformToString:async(z)=>{let w=await K();if(z==="base64")return(0,By3.toBase64)(w);else if(z==="hex")return(0,gy3.toHex)(w);else if(z===void 0||z==="utf8"||z==="utf-8")return(0,py3.toUtf8)(w);else if(typeof TextDecoder==="function")return new TextDecoder(z).decode(w);else throw Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(q)throw Error(nq7);if(q=!0,rq7(A))return Y(A);else if((0,iq7.isReadableStream)(A))return A;else throw Error(`Cannot transform payload to web stream, got ${A}`)}})};oq7.sdkStreamMixin=Fy3;var rq7=(A)=>typeof Blob==="function"&&A instanceof Blob});var qK7=h((eq7)=>{Object.defineProperty(eq7,"__esModule",{value:!0});eq7.sdkStreamMixin=void 0;var Qy3=uv(),Uy3=WY1(),J48=u6("stream"),dy3=sq7(),tq7="The stream has already been transformed.",cy3=(A)=>{if(!(A instanceof J48.Readable))try{return(0,dy3.sdkStreamMixin)(A)}catch(Y){let z=A?.__proto__?.constructor?.name||A;throw Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${z}`)}let q=!1,K=async()=>{if(q)throw Error(tq7);return q=!0,await(0,Qy3.streamCollector)(A)};return Object.assign(A,{transformToByteArray:K,transformToString:async(Y)=>{let z=await K();if(Y===void 0||Buffer.isEncoding(Y))return(0,Uy3.fromArrayBuffer)(z.buffer,z.byteOffset,z.byteLength).toString(Y);else return new TextDecoder(Y).decode(z)},transformToWebStream:()=>{if(q)throw Error(tq7);if(A.readableFlowing!==null)throw Error("The stream has been consumed by other callbacks.");if(typeof J48.Readable.toWeb!=="function")throw Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return q=!0,J48.Readable.toWeb(A)}})};eq7.sdkStreamMixin=cy3});var YK7=h((KK7)=>{Object.defineProperty(KK7,"__esModule",{value:!0});KK7.splitStream=ly3;async function ly3(A){if(typeof A.stream==="function")A=A.stream();return A.tee()}});var $K7=h((_K7)=>{Object.defineProperty(_K7,"__esModule",{value:!0});_K7.splitStream=ry3;var zK7=u6("stream"),ny3=YK7(),wK7=bs();async function ry3(A){if((0,wK7.isReadableStream)(A)||(0,wK7.isBlob)(A))return(0,ny3.splitStream)(A);let q=new zK7.PassThrough,K=new zK7.PassThrough;return A.pipe(q),A.pipe(K),[q,K]}});var M48=h((X0)=>{var OK7=gD6(),HK7=K2(),jK7=A48(),JK7=Jq7(),MK7=Nq7(),DK7=Lq7(),XK7=Iq7(),PK7=qK7(),WK7=$K7(),GK7=bs();class Ux6 extends Uint8Array{static fromString(A,q="utf-8"){if(typeof A==="string"){if(q==="base64")return Ux6.mutate(OK7.fromBase64(A));return Ux6.mutate(HK7.fromUtf8(A))}throw Error(`Unsupported conversion from ${typeof A} to Uint8ArrayBlobAdapter.`)}static mutate(A){return Object.setPrototypeOf(A,Ux6.prototype),A}transformToString(A="utf-8"){if(A==="base64")return OK7.toBase64(this);return HK7.toUtf8(this)}}X0.Uint8ArrayBlobAdapter=Ux6;Object.keys(jK7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(X0,A))Object.defineProperty(X0,A,{enumerable:!0,get:function(){return jK7[A]}})});Object.keys(JK7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(X0,A))Object.defineProperty(X0,A,{enumerable:!0,get:function(){return JK7[A]}})});Object.keys(MK7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(X0,A))Object.defineProperty(X0,A,{enumerable:!0,get:function(){return MK7[A]}})});Object.keys(DK7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(X0,A))Object.defineProperty(X0,A,{enumerable:!0,get:function(){return DK7[A]}})});Object.keys(XK7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(X0,A))Object.defineProperty(X0,A,{enumerable:!0,get:function(){return XK7[A]}})});Object.keys(PK7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(X0,A))Object.defineProperty(X0,A,{enumerable:!0,get:function(){return PK7[A]}})});Object.keys(WK7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(X0,A))Object.defineProperty(X0,A,{enumerable:!0,get:function(){return WK7[A]}})});Object.keys(GK7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(X0,A))Object.defineProperty(X0,A,{enumerable:!0,get:function(){return GK7[A]}})})});var f48=h((KR3)=>{KR3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(KR3.HttpAuthLocation||(KR3.HttpAuthLocation={}));KR3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(KR3.HttpApiKeyAuthLocation||(KR3.HttpApiKeyAuthLocation={}));KR3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(KR3.EndpointURLScheme||(KR3.EndpointURLScheme={}));KR3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(KR3.AlgorithmId||(KR3.AlgorithmId={}));var sy3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>KR3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>KR3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},ty3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},ey3=(A)=>{return sy3(A)},AR3=(A)=>{return ty3(A)};KR3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(KR3.FieldPosition||(KR3.FieldPosition={}));var qR3="__smithy_context";KR3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(KR3.IniSectionType||(KR3.IniSectionType={}));KR3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(KR3.RequestHandlerProtocol||(KR3.RequestHandlerProtocol={}));KR3.SMITHY_CONTEXT_KEY=qR3;KR3.getDefaultClientConfiguration=ey3;KR3.resolveDefaultRuntimeConfig=AR3});var cx6=h((JR3)=>{var _R3=f48(),$R3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},OR3=(A)=>{return{httpHandler:A.httpHandler()}};class ZK7{name;kind;values;constructor({name:A,kind:q=_R3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class fK7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class TY1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new TY1({...A,headers:{...A.headers}});if(q.query)q.query=HR3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return TY1.clone(this)}}function HR3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class TK7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function jR3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}JR3.Field=ZK7;JR3.Fields=fK7;JR3.HttpRequest=TY1;JR3.HttpResponse=TK7;JR3.getHttpHandlerExtensionConfiguration=$R3;JR3.isValidHostname=jR3;JR3.resolveHttpHandlerRuntimeConfig=OR3});var vK7=h((kR3)=>{kR3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(kR3.HttpAuthLocation||(kR3.HttpAuthLocation={}));kR3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(kR3.HttpApiKeyAuthLocation||(kR3.HttpApiKeyAuthLocation={}));kR3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(kR3.EndpointURLScheme||(kR3.EndpointURLScheme={}));kR3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(kR3.AlgorithmId||(kR3.AlgorithmId={}));var fR3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>kR3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>kR3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},TR3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},vR3=(A)=>{return fR3(A)},VR3=(A)=>{return TR3(A)};kR3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(kR3.FieldPosition||(kR3.FieldPosition={}));var NR3="__smithy_context";kR3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(kR3.IniSectionType||(kR3.IniSectionType={}));kR3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(kR3.RequestHandlerProtocol||(kR3.RequestHandlerProtocol={}));kR3.SMITHY_CONTEXT_KEY=NR3;kR3.getDefaultClientConfiguration=vR3;kR3.resolveDefaultRuntimeConfig=VR3});var WG=h((hR3)=>{var VK7=vK7(),RR3=(A)=>A[VK7.SMITHY_CONTEXT_KEY]||(A[VK7.SMITHY_CONTEXT_KEY]={}),SR3=(A)=>{if(typeof A==="function")return A;let q=Promise.resolve(A);return()=>q};hR3.getSmithyContext=RR3;hR3.normalizeProvider=SR3});var RO=h((lR3)=>{var xR3=cx6(),NK7=WG(),vY1=(A)=>{if(typeof A==="function")return A();return A},R48=(A,q,K,Y,z)=>({name:q,namespace:A,traits:K,input:Y,output:z}),bR3=(A)=>(q,K)=>async(Y)=>{let{response:z}=await q(Y),{operationSchema:w}=NK7.getSmithyContext(K),[,_,$,O,H,j]=w??[];try{let J=await A.protocol.deserializeResponse(R48(_,$,O,H,j),{...A,...K},z);return{response:z,output:J}}catch(J){if(Object.defineProperty(J,"$response",{value:z,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in J)){try{J.message+=`
  Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(D){if(!K.logger||K.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else K.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof J.$responseBodyText<"u"){if(J.$response)J.$response.body=J.$responseBodyText}try{if(xR3.HttpResponse.isInstance(z)){let{headers:D={}}=z,X=Object.entries(D);J.$metadata={httpStatusCode:z.statusCode,requestId:L48(/^x-[\w-]+-request-?id$/,X),extendedRequestId:L48(/^x-[\w-]+-id-2$/,X),cfId:L48(/^x-[\w-]+-cf-id$/,X)}}}catch(D){}}throw J}},L48=(A,q)=>{return(q.find(([K])=>{return K.match(A)})||[void 0,void 0])[1]},uR3=(A)=>(q,K)=>async(Y)=>{let{operationSchema:z}=NK7.getSmithyContext(K),[,w,_,$,O,H]=z??[],j=K.endpointV2?.url&&A.urlParser?async()=>A.urlParser(K.endpointV2.url):A.endpoint,J=await A.protocol.serializeRequest(R48(w,_,$,O,H),Y.input,{...A,...K,endpoint:j});return q({...Y,request:J})},kK7={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},EK7={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function mR3(A){return{applyToStack:(q)=>{q.add(uR3(A),EK7),q.add(bR3(A),kK7),A.protocol.setSerdeContext(A)}}}class gv{name;namespace;traits;static assign(A,q){return Object.assign(A,q)}static[Symbol.hasInstance](A){let q=this.prototype.isPrototypeOf(A);if(!q&&typeof A==="object"&&A!==null)return A.symbol===this.symbol;return q}getName(){return this.namespace+"#"+this.name}}class VY1 extends gv{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=VY1.symbol}var BR3=(A,q,K,Y)=>gv.assign(new VY1,{name:q,namespace:A,traits:K,valueSchema:Y});class NY1 extends gv{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=NY1.symbol}var gR3=(A,q,K,Y,z)=>gv.assign(new NY1,{name:q,namespace:A,traits:K,keySchema:Y,valueSchema:z});class kY1 extends gv{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=kY1.symbol}var pR3=(A,q,K,Y,z)=>gv.assign(new kY1,{name:q,namespace:A,traits:K,input:Y,output:z});class rx6 extends gv{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=rx6.symbol}var FR3=(A,q,K,Y,z)=>gv.assign(new rx6,{name:q,namespace:A,traits:K,memberNames:Y,memberList:z});class EY1 extends rx6{static symbol=Symbol.for("@smithy/err");ctor;symbol=EY1.symbol}var QR3=(A,q,K,Y,z,w)=>gv.assign(new EY1,{name:q,namespace:A,traits:K,memberNames:Y,memberList:z,ctor:null});function nx6(A){if(typeof A==="object")return A;A=A|0;let q={},K=0;for(let Y of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])if((A>>K++&1)===1)q[Y]=1;return q}class fd{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=fd.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(A,q){this.ref=A,this.memberName=q;let K=[],Y=A,z=A;this._isMemberSchema=!1;while(y48(Y))K.push(Y[1]),Y=Y[0],z=vY1(Y),this._isMemberSchema=!0;if(K.length>0){this.memberTraits={};for(let w=K.length-1;w>=0;--w){let _=K[w];Object.assign(this.memberTraits,nx6(_))}}else this.memberTraits=0;if(z instanceof fd){let w=this.memberTraits;Object.assign(this,z),this.memberTraits=Object.assign({},w,z.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=q??z.memberName;return}if(this.schema=vY1(z),LK7(this.schema))this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3];else this.name=this.memberName??String(z),this.traits=0;if(this._isMemberSchema&&!q)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](A){let q=this.prototype.isPrototypeOf(A);if(!q&&typeof A==="object"&&A!==null)return A.symbol===this.symbol;return q}static of(A){let q=vY1(A);if(q instanceof fd)return q;if(y48(q)){let[K,Y]=q;if(K instanceof fd)return Object.assign(K.getMergedTraits(),nx6(Y)),K;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(A,null,2)}.`)}return new fd(q)}getSchema(){let A=this.schema;if(A[0]===0)return A[4];return A}getName(A=!1){let{name:q}=this;return!A&&q&&q.includes("#")?q.split("#")[1]:q||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let A=this.getSchema();return typeof A==="number"?A>=64&&A<128:A[0]===1}isMapSchema(){let A=this.getSchema();return typeof A==="number"?A>=128&&A<=255:A[0]===2}isStructSchema(){let A=this.getSchema();return A[0]===3||A[0]===-3}isBlobSchema(){let A=this.getSchema();return A===21||A===42}isTimestampSchema(){let A=this.getSchema();return typeof A==="number"&&A>=4&&A<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:A}=this.getMergedTraits();return!!A||this.getSchema()===42}isIdempotencyToken(){let A=(z)=>(z&4)===4||!!z?.idempotencyToken,{normalizedTraits:q,traits:K,memberTraits:Y}=this;return A(q)||A(K)||A(Y)}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return nx6(this.memberTraits)}getOwnTraits(){return nx6(this.traits)}getKeySchema(){let[A,q]=[this.isDocumentSchema(),this.isMapSchema()];if(!A&&!q)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let K=this.getSchema(),Y=A?15:K[4]??0;return ix6([Y,0],"key")}getValueSchema(){let A=this.getSchema(),[q,K,Y]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],z=typeof A==="number"?63&A:A&&typeof A==="object"&&(K||Y)?A[3+A[0]]:q?15:void 0;if(z!=null)return ix6([z,0],K?"value":"member");throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(A){let q=this.getSchema();if(this.isStructSchema()&&q[4].includes(A)){let K=q[4].indexOf(A),Y=q[5][K];return ix6(y48(Y)?Y:[Y,0],A)}if(this.isDocumentSchema())return ix6([15,0],A);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${A}.`)}getMemberSchemas(){let A={};try{for(let[q,K]of this.structIterator())A[q]=K}catch(q){}return A}getEventStreamMember(){if(this.isStructSchema()){for(let[A,q]of this.structIterator())if(q.isStreaming()&&q.isStructSchema())return A}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error("@smithy/core/schema - cannot iterate non-struct schema.");let A=this.getSchema();for(let q=0;q<A[4].length;++q)yield[A[4][q],ix6([A[5][q],0],A[4][q])]}}function ix6(A,q){if(A instanceof fd)return Object.assign(A,{memberName:q,_isMemberSchema:!0});return new fd(A,q)}var y48=(A)=>Array.isArray(A)&&A.length===2,LK7=(A)=>Array.isArray(A)&&A.length>=5;class ox6 extends gv{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=ox6.symbol}var UR3=(A,q,K,Y)=>gv.assign(new ox6,{name:q,namespace:A,traits:Y,schemaRef:K}),dR3=(A,q,K,Y)=>gv.assign(new ox6,{name:q,namespace:A,traits:K,schemaRef:Y}),cR3={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128};class Zd{namespace;schemas;exceptions;static registries=new Map;constructor(A,q=new Map,K=new Map){this.namespace=A,this.schemas=q,this.exceptions=K}static for(A){if(!Zd.registries.has(A))Zd.registries.set(A,new Zd(A));return Zd.registries.get(A)}register(A,q){let K=this.normalizeShapeId(A);Zd.for(K.split("#")[0]).schemas.set(K,q)}getSchema(A){let q=this.normalizeShapeId(A);if(!this.schemas.has(q))throw Error(`@smithy/core/schema - schema not found for ${q}`);return this.schemas.get(q)}registerError(A,q){let K=A,Y=Zd.for(K[1]);Y.schemas.set(K[1]+"#"+K[2],K),Y.exceptions.set(K,q)}getErrorCtor(A){let q=A;return Zd.for(q[1]).exceptions.get(q)}getBaseException(){for(let A of this.exceptions.keys())if(Array.isArray(A)){let[,q,K]=A,Y=q+"#"+K;if(Y.startsWith("smithy.ts.sdk.synthetic.")&&Y.endsWith("ServiceException"))return A}return}find(A){return[...this.schemas.values()].find(A)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(A){if(A.includes("#"))return A;return this.namespace+"#"+A}}lR3.ErrorSchema=EY1;lR3.ListSchema=VY1;lR3.MapSchema=NY1;lR3.NormalizedSchema=fd;lR3.OperationSchema=kY1;lR3.SCHEMA=cR3;lR3.Schema=gv;lR3.SimpleSchema=ox6;lR3.StructureSchema=rx6;lR3.TypeRegistry=Zd;lR3.deref=vY1;lR3.deserializerMiddlewareOption=kK7;lR3.error=QR3;lR3.getSchemaSerdePlugin=mR3;lR3.isStaticSchema=LK7;lR3.list=BR3;lR3.map=gR3;lR3.op=pR3;lR3.operation=R48;lR3.serializerMiddlewareOption=EK7;lR3.sim=UR3;lR3.simAdapter=dR3;lR3.struct=FR3;lR3.translateTraits=nx6});var hK7=h((RK7)=>{Object.defineProperty(RK7,"__esModule",{value:!0});RK7.randomUUID=void 0;var WS3=S2(),yK7=WS3.__importDefault(u6("crypto"));RK7.randomUUID=yK7.default.randomUUID.bind(yK7.default)});var S48=h((ZS3)=>{var CK7=hK7(),GG=Array.from({length:256},(A,q)=>q.toString(16).padStart(2,"0")),GS3=()=>{if(CK7.randomUUID)return CK7.randomUUID();let A=new Uint8Array(16);return crypto.getRandomValues(A),A[6]=A[6]&15|64,A[8]=A[8]&63|128,GG[A[0]]+GG[A[1]]+GG[A[2]]+GG[A[3]]+"-"+GG[A[4]]+GG[A[5]]+"-"+GG[A[6]]+GG[A[7]]+"-"+GG[A[8]]+GG[A[9]]+"-"+GG[A[10]]+GG[A[11]]+GG[A[12]]+GG[A[13]]+GG[A[14]]+GG[A[15]]};ZS3.v4=GS3});var pv=h((FK7)=>{var TS3=S48(),vS3=(A,q,K=(Y)=>Y)=>A,VS3=(A)=>{switch(A){case"true":return!0;case"false":return!1;default:throw Error(`Unable to parse boolean value "${A}"`)}},NS3=(A)=>{if(A===null||A===void 0)return;if(typeof A==="number"){if(A===0||A===1)ex6.warn(yY1(`Expected boolean, got ${typeof A}: ${A}`));if(A===0)return!1;if(A===1)return!0}if(typeof A==="string"){let q=A.toLowerCase();if(q==="false"||q==="true")ex6.warn(yY1(`Expected boolean, got ${typeof A}: ${A}`));if(q==="false")return!1;if(q==="true")return!0}if(typeof A==="boolean")return A;throw TypeError(`Expected boolean, got ${typeof A}: ${A}`)},sx6=(A)=>{if(A===null||A===void 0)return;if(typeof A==="string"){let q=parseFloat(A);if(!Number.isNaN(q)){if(String(q)!==String(A))ex6.warn(yY1(`Expected number but observed string: ${A}`));return q}}if(typeof A==="number")return A;throw TypeError(`Expected number, got ${typeof A}: ${A}`)},kS3=Math.ceil(340282346638528860000000000000000000000),LY1=(A)=>{let q=sx6(A);if(q!==void 0&&!Number.isNaN(q)&&q!==1/0&&q!==-1/0){if(Math.abs(q)>kS3)throw TypeError(`Expected 32-bit float, got ${A}`)}return q},tx6=(A)=>{if(A===null||A===void 0)return;if(Number.isInteger(A)&&!Number.isNaN(A))return A;throw TypeError(`Expected integer, got ${typeof A}: ${A}`)},ES3=tx6,C48=(A)=>b48(A,32),I48=(A)=>b48(A,16),x48=(A)=>b48(A,8),b48=(A,q)=>{let K=tx6(A);if(K!==void 0&&LS3(K,q)!==K)throw TypeError(`Expected ${q}-bit integer, got ${A}`);return K},LS3=(A,q)=>{switch(q){case 32:return Int32Array.of(A)[0];case 16:return Int16Array.of(A)[0];case 8:return Int8Array.of(A)[0]}},yS3=(A,q)=>{if(A===null||A===void 0){if(q)throw TypeError(`Expected a non-null value for ${q}`);throw TypeError("Expected a non-null value")}return A},xK7=(A)=>{if(A===null||A===void 0)return;if(typeof A==="object"&&!Array.isArray(A))return A;let q=Array.isArray(A)?"array":typeof A;throw TypeError(`Expected object, got ${q}: ${A}`)},RS3=(A)=>{if(A===null||A===void 0)return;if(typeof A==="string")return A;if(["boolean","number","bigint"].includes(typeof A))return ex6.warn(yY1(`Expected string, got ${typeof A}: ${A}`)),String(A);throw TypeError(`Expected string, got ${typeof A}: ${A}`)},SS3=(A)=>{if(A===null||A===void 0)return;let q=xK7(A),K=Object.entries(q).filter(([,Y])=>Y!=null).map(([Y])=>Y);if(K.length===0)throw TypeError("Unions must have exactly one non-null member. None were found.");if(K.length>1)throw TypeError(`Unions must have exactly one non-null member. Keys ${K} were not null.`);return q},u48=(A)=>{if(typeof A=="string")return sx6(UD6(A));return sx6(A)},hS3=u48,bK7=(A)=>{if(typeof A=="string")return LY1(UD6(A));return LY1(A)},CS3=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,UD6=(A)=>{let q=A.match(CS3);if(q===null||q[0].length!==A.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat(A)},m48=(A)=>{if(typeof A=="string")return uK7(A);return sx6(A)},IS3=m48,xS3=m48,bS3=(A)=>{if(typeof A=="string")return uK7(A);return LY1(A)},uK7=(A)=>{switch(A){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw Error(`Unable to parse float value: ${A}`)}},mK7=(A)=>{if(typeof A==="string")return tx6(UD6(A));return tx6(A)},uS3=mK7,mS3=(A)=>{if(typeof A==="string")return C48(UD6(A));return C48(A)},FD6=(A)=>{if(typeof A==="string")return I48(UD6(A));return I48(A)},BK7=(A)=>{if(typeof A==="string")return x48(UD6(A));return x48(A)},yY1=(A)=>{return String(TypeError(A).stack||A).split(`
`).slice(0,5).filter((q)=>!q.includes("stackTraceWarning")).join(`
`)},ex6={warn:console.warn},BS3=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],B48=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function gS3(A){let q=A.getUTCFullYear(),K=A.getUTCMonth(),Y=A.getUTCDay(),z=A.getUTCDate(),w=A.getUTCHours(),_=A.getUTCMinutes(),$=A.getUTCSeconds(),O=z<10?`0${z}`:`${z}`,H=w<10?`0${w}`:`${w}`,j=_<10?`0${_}`:`${_}`,J=$<10?`0${$}`:`${$}`;return`${BS3[Y]}, ${O} ${B48[K]} ${q} ${H}:${j}:${J} GMT`}var pS3=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),FS3=(A)=>{if(A===null||A===void 0)return;if(typeof A!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let q=pS3.exec(A);if(!q)throw TypeError("Invalid RFC-3339 date-time value");let[K,Y,z,w,_,$,O,H]=q,j=FD6(QD6(Y)),J=em(z,"month",1,12),M=em(w,"day",1,31);return ax6(j,J,M,{hours:_,minutes:$,seconds:O,fractionalMilliseconds:H})},QS3=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),US3=(A)=>{if(A===null||A===void 0)return;if(typeof A!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let q=QS3.exec(A);if(!q)throw TypeError("Invalid RFC-3339 date-time value");let[K,Y,z,w,_,$,O,H,j]=q,J=FD6(QD6(Y)),M=em(z,"month",1,12),D=em(w,"day",1,31),X=ax6(J,M,D,{hours:_,minutes:$,seconds:O,fractionalMilliseconds:H});if(j.toUpperCase()!="Z")X.setTime(X.getTime()-qh3(j));return X},dS3=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),cS3=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),lS3=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),iS3=(A)=>{if(A===null||A===void 0)return;if(typeof A!=="string")throw TypeError("RFC-7231 date-times must be expressed as strings");let q=dS3.exec(A);if(q){let[K,Y,z,w,_,$,O,H]=q;return ax6(FD6(QD6(w)),h48(z),em(Y,"day",1,31),{hours:_,minutes:$,seconds:O,fractionalMilliseconds:H})}if(q=cS3.exec(A),q){let[K,Y,z,w,_,$,O,H]=q;return aS3(ax6(rS3(w),h48(z),em(Y,"day",1,31),{hours:_,minutes:$,seconds:O,fractionalMilliseconds:H}))}if(q=lS3.exec(A),q){let[K,Y,z,w,_,$,O,H]=q;return ax6(FD6(QD6(H)),h48(Y),em(z.trimLeft(),"day",1,31),{hours:w,minutes:_,seconds:$,fractionalMilliseconds:O})}throw TypeError("Invalid RFC-7231 date-time value")},nS3=(A)=>{if(A===null||A===void 0)return;let q;if(typeof A==="number")q=A;else if(typeof A==="string")q=u48(A);else if(typeof A==="object"&&A.tag===1)q=A.value;else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(q)||q===1/0||q===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(q*1000))},ax6=(A,q,K,Y)=>{let z=q-1;return tS3(A,z,K),new Date(Date.UTC(A,z,K,em(Y.hours,"hour",0,23),em(Y.minutes,"minute",0,59),em(Y.seconds,"seconds",0,60),Ah3(Y.fractionalMilliseconds)))},rS3=(A)=>{let q=new Date().getUTCFullYear(),K=Math.floor(q/100)*100+FD6(QD6(A));if(K<q)return K+100;return K},oS3=1576800000000,aS3=(A)=>{if(A.getTime()-new Date().getTime()>oS3)return new Date(Date.UTC(A.getUTCFullYear()-100,A.getUTCMonth(),A.getUTCDate(),A.getUTCHours(),A.getUTCMinutes(),A.getUTCSeconds(),A.getUTCMilliseconds()));return A},h48=(A)=>{let q=B48.indexOf(A);if(q<0)throw TypeError(`Invalid month: ${A}`);return q+1},sS3=[31,28,31,30,31,30,31,31,30,31,30,31],tS3=(A,q,K)=>{let Y=sS3[q];if(q===1&&eS3(A))Y=29;if(K>Y)throw TypeError(`Invalid day for ${B48[q]} in ${A}: ${K}`)},eS3=(A)=>{return A%4===0&&(A%100!==0||A%400===0)},em=(A,q,K,Y)=>{let z=BK7(QD6(A));if(z<K||z>Y)throw TypeError(`${q} must be between ${K} and ${Y}, inclusive`);return z},Ah3=(A)=>{if(A===null||A===void 0)return 0;return bK7("0."+A)*1000},qh3=(A)=>{let q=A[0],K=1;if(q=="+")K=1;else if(q=="-")K=-1;else throw TypeError(`Offset direction, ${q}, must be "+" or "-"`);let Y=Number(A.substring(1,3)),z=Number(A.substring(4,6));return K*(Y*60+z)*60*1000},QD6=(A)=>{let q=0;while(q<A.length-1&&A.charAt(q)==="0")q++;if(q===0)return A;return A.slice(q)},yK6=function(q){return Object.assign(new String(q),{deserializeJSON(){return JSON.parse(String(q))},toString(){return String(q)},toJSON(){return String(q)}})};yK6.from=(A)=>{if(A&&typeof A==="object"&&(A instanceof yK6||("deserializeJSON"in A)))return A;else if(typeof A==="string"||Object.getPrototypeOf(A)===String.prototype)return yK6(String(A));return yK6(JSON.stringify(A))};yK6.fromObject=yK6.from;function Kh3(A){if(A.includes(",")||A.includes('"'))A=`"${A.replace(/"/g,"\\\"")}"`;return A}var g48="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",p48="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",F48="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",gK7="(\\d?\\d)",pK7="(\\d{4})",Yh3=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),zh3=new RegExp(`^${g48}, ${gK7} ${p48} ${pK7} ${F48} GMT$`),wh3=new RegExp(`^${g48}, ${gK7}-${p48}-(\\d\\d) ${F48} GMT$`),_h3=new RegExp(`^${g48} ${p48} ( [1-9]|\\d\\d) ${F48} ${pK7}$`),$h3=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Oh3=(A)=>{if(A==null)return;let q=NaN;if(typeof A==="number")q=A;else if(typeof A==="string"){if(!/^-?\d*\.?\d+$/.test(A))throw TypeError("parseEpochTimestamp - numeric string invalid.");q=Number.parseFloat(A)}else if(typeof A==="object"&&A.tag===1)q=A.value;if(isNaN(q)||Math.abs(q)===1/0)throw TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(q*1000))},Hh3=(A)=>{if(A==null)return;if(typeof A!=="string")throw TypeError("RFC3339 timestamps must be strings");let q=Yh3.exec(A);if(!q)throw TypeError(`Invalid RFC3339 timestamp format ${A}`);let[,K,Y,z,w,_,$,,O,H]=q;Td(Y,1,12),Td(z,1,31),Td(w,0,23),Td(_,0,59),Td($,0,60);let j=new Date(Date.UTC(Number(K),Number(Y)-1,Number(z),Number(w),Number(_),Number($),Number(O)?Math.round(parseFloat(`0.${O}`)*1000):0));if(j.setUTCFullYear(Number(K)),H.toUpperCase()!="Z"){let[,J,M,D]=/([+-])(\d\d):(\d\d)/.exec(H)||[void 0,"+",0,0],X=J==="-"?1:-1;j.setTime(j.getTime()+X*(Number(M)*60*60*1000+Number(D)*60*1000))}return j},jh3=(A)=>{if(A==null)return;if(typeof A!=="string")throw TypeError("RFC7231 timestamps must be strings.");let q,K,Y,z,w,_,$,O;if(O=zh3.exec(A))[,q,K,Y,z,w,_,$]=O;else if(O=wh3.exec(A))[,q,K,Y,z,w,_,$]=O,Y=(Number(Y)+1900).toString();else if(O=_h3.exec(A))[,K,q,z,w,_,$,Y]=O;if(Y&&_){let H=Date.UTC(Number(Y),$h3.indexOf(K),Number(q),Number(z),Number(w),Number(_),$?Math.round(parseFloat(`0.${$}`)*1000):0);Td(q,1,31),Td(z,0,23),Td(w,0,59),Td(_,0,60);let j=new Date(H);return j.setUTCFullYear(Number(Y)),j}throw TypeError(`Invalid RFC7231 date-time value ${A}.`)};function Td(A,q,K){let Y=Number(A);if(Y<q||Y>K)throw Error(`Value ${Y} out of range [${q}, ${K}]`)}function Jh3(A,q,K){if(K<=0||!Number.isInteger(K))throw Error("Invalid number of delimiters ("+K+") for splitEvery.");let Y=A.split(q);if(K===1)return Y;let z=[],w="";for(let _=0;_<Y.length;_++){if(w==="")w=Y[_];else w+=q+Y[_];if((_+1)%K===0)z.push(w),w=""}if(w!=="")z.push(w);return z}var Mh3=(A)=>{let q=A.length,K=[],Y=!1,z=void 0,w=0;for(let _=0;_<q;++_){let $=A[_];switch($){case'"':if(z!=="\\")Y=!Y;break;case",":if(!Y)K.push(A.slice(w,_)),w=_+1;break}z=$}return K.push(A.slice(w)),K.map((_)=>{_=_.trim();let $=_.length;if($<2)return _;if(_[0]==='"'&&_[$-1]==='"')_=_.slice(1,$-1);return _.replace(/\\"/g,'"')})},IK7=/^-?\d*(\.\d+)?$/;class RY1{string;type;constructor(A,q){if(this.string=A,this.type=q,!IK7.test(A))throw Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](A){if(!A||typeof A!=="object")return!1;let q=A;return RY1.prototype.isPrototypeOf(A)||q.type==="bigDecimal"&&IK7.test(q.string)}}function Dh3(A){return new RY1(String(A),"bigDecimal")}Object.defineProperty(FK7,"generateIdempotencyToken",{enumerable:!0,get:function(){return TS3.v4}});FK7.LazyJsonString=yK6;FK7.NumericValue=RY1;FK7._parseEpochTimestamp=Oh3;FK7._parseRfc3339DateTimeWithOffset=Hh3;FK7._parseRfc7231DateTime=jh3;FK7.copyDocumentWithTransform=vS3;FK7.dateToUtcString=gS3;FK7.expectBoolean=NS3;FK7.expectByte=x48;FK7.expectFloat32=LY1;FK7.expectInt=ES3;FK7.expectInt32=C48;FK7.expectLong=tx6;FK7.expectNonNull=yS3;FK7.expectNumber=sx6;FK7.expectObject=xK7;FK7.expectShort=I48;FK7.expectString=RS3;FK7.expectUnion=SS3;FK7.handleFloat=IS3;FK7.limitedParseDouble=m48;FK7.limitedParseFloat=xS3;FK7.limitedParseFloat32=bS3;FK7.logger=ex6;FK7.nv=Dh3;FK7.parseBoolean=VS3;FK7.parseEpochTimestamp=nS3;FK7.parseRfc3339DateTime=FS3;FK7.parseRfc3339DateTimeWithOffset=US3;FK7.parseRfc7231DateTime=iS3;FK7.quoteHeader=Kh3;FK7.splitEvery=Jh3;FK7.splitHeader=Mh3;FK7.strictParseByte=BK7;FK7.strictParseDouble=u48;FK7.strictParseFloat=hS3;FK7.strictParseFloat32=bK7;FK7.strictParseInt=uS3;FK7.strictParseInt32=mS3;FK7.strictParseLong=mK7;FK7.strictParseShort=FD6});var QK7=h((KC3)=>{var qC3=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";KC3.isArrayBuffer=qC3});var U48=h(($C3)=>{var zC3=QK7(),Q48=u6("buffer"),wC3=(A,q=0,K=A.byteLength-q)=>{if(!zC3.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return Q48.Buffer.from(A,q,K)},_C3=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?Q48.Buffer.from(A,q):Q48.Buffer.from(A)};$C3.fromArrayBuffer=wC3;$C3.fromString=_C3});var cK7=h((UK7)=>{Object.defineProperty(UK7,"__esModule",{value:!0});UK7.fromBase64=void 0;var jC3=U48(),JC3=/^[A-Za-z0-9+/]*={0,2}$/,MC3=(A)=>{if(A.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!JC3.exec(A))throw TypeError("Invalid base64 string.");let q=(0,jC3.fromString)(A,"base64");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength)};UK7.fromBase64=MC3});var nK7=h((lK7)=>{Object.defineProperty(lK7,"__esModule",{value:!0});lK7.toBase64=void 0;var DC3=U48(),XC3=K2(),PC3=(A)=>{let q;if(typeof A==="string")q=(0,XC3.fromUtf8)(A);else q=A;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,DC3.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("base64")};lK7.toBase64=PC3});var d48=h((Ab6)=>{var rK7=cK7(),oK7=nK7();Object.keys(rK7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(Ab6,A))Object.defineProperty(Ab6,A,{enumerable:!0,get:function(){return rK7[A]}})});Object.keys(oK7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(Ab6,A))Object.defineProperty(Ab6,A,{enumerable:!0,get:function(){return oK7[A]}})})});var tK7=h((WC3)=>{var aK7=K2();class sK7{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:A,serializer:q,deserializer:K,serdeContext:Y,defaultContentType:z}){this.marshaller=A,this.serializer=q,this.deserializer=K,this.serdeContext=Y,this.defaultContentType=z}async serializeEventStream({eventStream:A,requestSchema:q,initialRequest:K}){let Y=this.marshaller,z=q.getEventStreamMember(),w=q.getMemberSchema(z),_=this.serializer,$=this.defaultContentType,O=Symbol("initialRequestMarker"),H={async*[Symbol.asyncIterator](){if(K){let j={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:$}};_.write(q,K);let J=_.flush();yield{[O]:!0,headers:j,body:J}}for await(let j of A)yield j}};return Y.serialize(H,(j)=>{if(j[O])return{headers:j.headers,body:j.body};let J=Object.keys(j).find((G)=>{return G!=="__type"})??"",{additionalHeaders:M,body:D,eventType:X,explicitPayloadContentType:P}=this.writeEventBody(J,w,j);return{headers:{":event-type":{type:"string",value:X},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:P??$},...M},body:D}})}async deserializeEventStream({response:A,responseSchema:q,initialResponseContainer:K}){let Y=this.marshaller,z=q.getEventStreamMember(),_=q.getMemberSchema(z).getMemberSchemas(),$=Symbol("initialResponseMarker"),O=Y.deserialize(A.body,async(J)=>{let M=Object.keys(J).find((X)=>{return X!=="__type"})??"",D=J[M].body;if(M==="initial-response"){let X=await this.deserializer.read(q,D);return delete X[z],{[$]:!0,...X}}else if(M in _){let X=_[M];if(X.isStructSchema()){let P={},W=!1;for(let[G,Z]of X.structIterator()){let{eventHeader:f,eventPayload:v}=Z.getMergedTraits();if(W=W||Boolean(f||v),v){if(Z.isBlobSchema())P[G]=D;else if(Z.isStringSchema())P[G]=(this.serdeContext?.utf8Encoder??aK7.toUtf8)(D);else if(Z.isStructSchema())P[G]=await this.deserializer.read(Z,D)}else if(f){let V=J[M].headers[G]?.value;if(V!=null)if(Z.isNumericSchema())if(V&&typeof V==="object"&&"bytes"in V)P[G]=BigInt(V.toString());else P[G]=Number(V);else P[G]=V}}if(W)return{[M]:P}}return{[M]:await this.deserializer.read(X,D)}}else return{$unknown:J}}),H=O[Symbol.asyncIterator](),j=await H.next();if(j.done)return O;if(j.value?.[$]){if(!q)throw Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let[J,M]of Object.entries(j.value))K[J]=M}return{async*[Symbol.asyncIterator](){if(!j?.value?.[$])yield j.value;while(!0){let{done:J,value:M}=await H.next();if(J)break;yield M}}}}writeEventBody(A,q,K){let Y=this.serializer,z=A,w=null,_,$=(()=>{return q.getSchema()[4].includes(A)})(),O={};if(!$){let[J,M]=K[A];z=J,Y.write(15,M)}else{let J=q.getMemberSchema(A);if(J.isStructSchema()){for(let[M,D]of J.structIterator()){let{eventHeader:X,eventPayload:P}=D.getMergedTraits();if(P){w=M;break}else if(X){let W=K[A][M],G="binary";if(D.isNumericSchema())if(-2147483648<=W&&W<=2147483647)G="integer";else G="long";else if(D.isTimestampSchema())G="timestamp";else if(D.isStringSchema())G="string";else if(D.isBooleanSchema())G="boolean";if(W!=null)O[M]={type:G,value:W},delete K[A][M]}}if(w!==null){let M=J.getMemberSchema(w);if(M.isBlobSchema())_="application/octet-stream";else if(M.isStringSchema())_="text/plain";Y.write(M,K[A][w])}else Y.write(J,K[A])}else throw Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}let H=Y.flush();return{body:typeof H==="string"?(this.serdeContext?.utf8Decoder??aK7.fromUtf8)(H):H,eventType:z,explicitPayloadContentType:_,additionalHeaders:O}}}WC3.EventStreamSerde=sK7});var Fv=h((fC3)=>{var SY1=M48(),Qy=RO(),Fy=pv(),qb6=cx6(),hY1=d48(),c48=K2(),RK6=async(A=new Uint8Array,q)=>{if(A instanceof Uint8Array)return SY1.Uint8ArrayBlobAdapter.mutate(A);if(!A)return SY1.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let K=q.streamCollector(A);return SY1.Uint8ArrayBlobAdapter.mutate(await K)};function Kb6(A){return encodeURIComponent(A).replace(/[!'()*]/g,function(q){return"%"+q.charCodeAt(0).toString(16).toUpperCase()})}class dD6{serdeContext;setSerdeContext(A){this.serdeContext=A}}class CY1 extends dD6{options;constructor(A){super();this.options=A}getRequestType(){return qb6.HttpRequest}getResponseType(){return qb6.HttpResponse}setSerdeContext(A){if(this.serdeContext=A,this.serializer.setSerdeContext(A),this.deserializer.setSerdeContext(A),this.getPayloadCodec())this.getPayloadCodec().setSerdeContext(A)}updateServiceEndpoint(A,q){if("url"in q){if(A.protocol=q.url.protocol,A.hostname=q.url.hostname,A.port=q.url.port?Number(q.url.port):void 0,A.path=q.url.pathname,A.fragment=q.url.hash||void 0,A.username=q.url.username||void 0,A.password=q.url.password||void 0,!A.query)A.query={};for(let[K,Y]of q.url.searchParams.entries())A.query[K]=Y;return A}else return A.protocol=q.protocol,A.hostname=q.hostname,A.port=q.port?Number(q.port):void 0,A.path=q.path,A.query={...q.query},A}setHostPrefix(A,q,K){let Y=Qy.NormalizedSchema.of(q.input),z=Qy.translateTraits(q.traits??{});if(z.endpoint){let w=z.endpoint?.[0];if(typeof w==="string"){let _=[...Y.structIterator()].filter(([,$])=>$.getMergedTraits().hostLabel);for(let[$]of _){let O=K[$];if(typeof O!=="string")throw Error(`@smithy/core/schema - ${$} in input must be a string as hostLabel.`);w=w.replace(`{${$}}`,O)}A.hostname=w+A.hostname}}}deserializeMetadata(A){return{httpStatusCode:A.statusCode,requestId:A.headers["x-amzn-requestid"]??A.headers["x-amzn-request-id"]??A.headers["x-amz-request-id"],extendedRequestId:A.headers["x-amz-id-2"],cfId:A.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:A,requestSchema:q,initialRequest:K}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:A,requestSchema:q,initialRequest:K})}async deserializeEventStream({response:A,responseSchema:q,initialResponseContainer:K}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:A,responseSchema:q,initialResponseContainer:K})}async loadEventStreamCapability(){let{EventStreamSerde:A}=await Promise.resolve().then(() => q6(tK7()));return new A({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(A,q,K,Y,z){return[]}getEventStreamMarshaller(){let A=this.serdeContext;if(!A.eventStreamMarshaller)throw Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return A.eventStreamMarshaller}}class eK7 extends CY1{async serializeRequest(A,q,K){let Y={...q??{}},z=this.serializer,w={},_={},$=await K.endpoint(),O=Qy.NormalizedSchema.of(A?.input),H=O.getSchema(),j=!1,J,M=new qb6.HttpRequest({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:w,headers:_,body:void 0});if($){this.updateServiceEndpoint(M,$),this.setHostPrefix(M,A,Y);let D=Qy.translateTraits(A.traits);if(D.http){M.method=D.http[0];let[X,P]=D.http[1].split("?");if(M.path=="/")M.path=X;else M.path+=X;let W=new URLSearchParams(P??"");Object.assign(w,Object.fromEntries(W))}}for(let[D,X]of O.structIterator()){let P=X.getMergedTraits()??{},W=Y[D];if(W==null&&!X.isIdempotencyToken())continue;if(P.httpPayload){if(X.isStreaming())if(X.isStructSchema()){if(Y[D])J=await this.serializeEventStream({eventStream:Y[D],requestSchema:O})}else J=W;else z.write(X,W),J=z.flush();delete Y[D]}else if(P.httpLabel){z.write(X,W);let G=z.flush();if(M.path.includes(`{${D}+}`))M.path=M.path.replace(`{${D}+}`,G.split("/").map(Kb6).join("/"));else if(M.path.includes(`{${D}}`))M.path=M.path.replace(`{${D}}`,Kb6(G));delete Y[D]}else if(P.httpHeader)z.write(X,W),_[P.httpHeader.toLowerCase()]=String(z.flush()),delete Y[D];else if(typeof P.httpPrefixHeaders==="string"){for(let[G,Z]of Object.entries(W)){let f=P.httpPrefixHeaders+G;z.write([X.getValueSchema(),{httpHeader:f}],Z),_[f.toLowerCase()]=z.flush()}delete Y[D]}else if(P.httpQuery||P.httpQueryParams)this.serializeQuery(X,W,w),delete Y[D];else j=!0}if(j&&Y)z.write(H,Y),J=z.flush();return M.headers=_,M.query=w,M.body=J,M}serializeQuery(A,q,K){let Y=this.serializer,z=A.getMergedTraits();if(z.httpQueryParams){for(let[w,_]of Object.entries(q))if(!(w in K)){let $=A.getValueSchema();Object.assign($.getMergedTraits(),{...z,httpQuery:w,httpQueryParams:void 0}),this.serializeQuery($,_,K)}return}if(A.isListSchema()){let w=!!A.getMergedTraits().sparse,_=[];for(let $ of q){Y.write([A.getValueSchema(),z],$);let O=Y.flush();if(w||O!==void 0)_.push(O)}K[z.httpQuery]=_}else Y.write([A,z],q),K[z.httpQuery]=Y.flush()}async deserializeResponse(A,q,K){let Y=this.deserializer,z=Qy.NormalizedSchema.of(A.output),w={};if(K.statusCode>=300){let $=await RK6(K.body,q);if($.byteLength>0)Object.assign(w,await Y.read(15,$));throw await this.handleError(A,q,K,w,this.deserializeMetadata(K)),Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let $ in K.headers){let O=K.headers[$];delete K.headers[$],K.headers[$.toLowerCase()]=O}let _=await this.deserializeHttpMessage(z,q,K,w);if(_.length){let $=await RK6(K.body,q);if($.byteLength>0){let O=await Y.read(z,$);for(let H of _)w[H]=O[H]}}else if(_.discardResponseBody)await RK6(K.body,q);return w.$metadata=this.deserializeMetadata(K),w}async deserializeHttpMessage(A,q,K,Y,z){let w;if(Y instanceof Set)w=z;else w=Y;let _=!0,$=this.deserializer,O=Qy.NormalizedSchema.of(A),H=[];for(let[j,J]of O.structIterator()){let M=J.getMemberTraits();if(M.httpPayload){if(_=!1,J.isStreaming())if(J.isStructSchema())w[j]=await this.deserializeEventStream({response:K,responseSchema:O});else w[j]=SY1.sdkStreamMixin(K.body);else if(K.body){let X=await RK6(K.body,q);if(X.byteLength>0)w[j]=await $.read(J,X)}}else if(M.httpHeader){let D=String(M.httpHeader).toLowerCase(),X=K.headers[D];if(X!=null)if(J.isListSchema()){let P=J.getValueSchema();P.getMergedTraits().httpHeader=D;let W;if(P.isTimestampSchema()&&P.getSchema()===4)W=Fy.splitEvery(X,",",2);else W=Fy.splitHeader(X);let G=[];for(let Z of W)G.push(await $.read(P,Z.trim()));w[j]=G}else w[j]=await $.read(J,X)}else if(M.httpPrefixHeaders!==void 0){w[j]={};for(let[D,X]of Object.entries(K.headers))if(D.startsWith(M.httpPrefixHeaders)){let P=J.getValueSchema();P.getMergedTraits().httpHeader=D,w[j][D.slice(M.httpPrefixHeaders.length)]=await $.read(P,X)}}else if(M.httpResponseCode)w[j]=K.statusCode;else H.push(j)}return H.discardResponseBody=_,H}}class A37 extends CY1{async serializeRequest(A,q,K){let Y=this.serializer,z={},w={},_=await K.endpoint(),$=Qy.NormalizedSchema.of(A?.input),O=$.getSchema(),H,j=new qb6.HttpRequest({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:z,headers:w,body:void 0});if(_)this.updateServiceEndpoint(j,_),this.setHostPrefix(j,A,q);let J={...q};if(q){let M=$.getEventStreamMember();if(M){if(J[M]){let D={};for(let[X,P]of $.structIterator())if(X!==M&&J[X])Y.write(P,J[X]),D[X]=Y.flush();H=await this.serializeEventStream({eventStream:J[M],requestSchema:$,initialRequest:D})}}else Y.write(O,J),H=Y.flush()}return j.headers=w,j.query=z,j.body=H,j.method="POST",j}async deserializeResponse(A,q,K){let Y=this.deserializer,z=Qy.NormalizedSchema.of(A.output),w={};if(K.statusCode>=300){let $=await RK6(K.body,q);if($.byteLength>0)Object.assign(w,await Y.read(15,$));throw await this.handleError(A,q,K,w,this.deserializeMetadata(K)),Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let $ in K.headers){let O=K.headers[$];delete K.headers[$],K.headers[$.toLowerCase()]=O}let _=z.getEventStreamMember();if(_)w[_]=await this.deserializeEventStream({response:K,responseSchema:z,initialResponseContainer:w});else{let $=await RK6(K.body,q);if($.byteLength>0)Object.assign(w,await Y.read(z,$))}return w.$metadata=this.deserializeMetadata(K),w}}var q37=(A,q,K,Y,z,w)=>{if(q!=null&&q[K]!==void 0){let _=Y();if(_.length<=0)throw Error("Empty value provided for input HTTP label: "+K+".");A=A.replace(z,w?_.split("/").map(($)=>Kb6($)).join("/"):Kb6(_))}else throw Error("No value provided for input HTTP label: "+K+".");return A};function ZC3(A,q){return new l48(A,q)}class l48{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(A,q){this.input=A,this.context=q}async build(){let{hostname:A,protocol:q="https",port:K,path:Y}=await this.context.endpoint();this.path=Y;for(let z of this.resolvePathStack)z(this.path);return new qb6.HttpRequest({protocol:q,hostname:this.hostname||A,port:K,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(A){return this.hostname=A,this}bp(A){return this.resolvePathStack.push((q)=>{this.path=`${q?.endsWith("/")?q.slice(0,-1):q||""}`+A}),this}p(A,q,K,Y){return this.resolvePathStack.push((z)=>{this.path=q37(z,this.input,A,q,K,Y)}),this}h(A){return this.headers=A,this}q(A){return this.query=A,this}b(A){return this.body=A,this}m(A){return this.method=A,this}}function i48(A,q){if(q.timestampFormat.useTrait){if(A.isTimestampSchema()&&(A.getSchema()===5||A.getSchema()===6||A.getSchema()===7))return A.getSchema()}let{httpLabel:K,httpPrefixHeaders:Y,httpHeader:z,httpQuery:w}=A.getMergedTraits();return(q.httpBindings?typeof Y==="string"||Boolean(z)?6:Boolean(w)||Boolean(K)?5:void 0:void 0)??q.timestampFormat.default}class n48 extends dD6{settings;constructor(A){super();this.settings=A}read(A,q){let K=Qy.NormalizedSchema.of(A);if(K.isListSchema())return Fy.splitHeader(q).map((Y)=>this.read(K.getValueSchema(),Y));if(K.isBlobSchema())return(this.serdeContext?.base64Decoder??hY1.fromBase64)(q);if(K.isTimestampSchema())switch(i48(K,this.settings)){case 5:return Fy._parseRfc3339DateTimeWithOffset(q);case 6:return Fy._parseRfc7231DateTime(q);case 7:return Fy._parseEpochTimestamp(q);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",q),new Date(q)}if(K.isStringSchema()){let Y=K.getMergedTraits().mediaType,z=q;if(Y){if(K.getMergedTraits().httpHeader)z=this.base64ToUtf8(z);if(Y==="application/json"||Y.endsWith("+json"))z=Fy.LazyJsonString.from(z);return z}}if(K.isNumericSchema())return Number(q);if(K.isBigIntegerSchema())return BigInt(q);if(K.isBigDecimalSchema())return new Fy.NumericValue(q,"bigDecimal");if(K.isBooleanSchema())return String(q).toLowerCase()==="true";return q}base64ToUtf8(A){return(this.serdeContext?.utf8Encoder??c48.toUtf8)((this.serdeContext?.base64Decoder??hY1.fromBase64)(A))}}class K37 extends dD6{codecDeserializer;stringDeserializer;constructor(A,q){super();this.codecDeserializer=A,this.stringDeserializer=new n48(q)}setSerdeContext(A){this.stringDeserializer.setSerdeContext(A),this.codecDeserializer.setSerdeContext(A),this.serdeContext=A}read(A,q){let K=Qy.NormalizedSchema.of(A),Y=K.getMergedTraits(),z=this.serdeContext?.utf8Encoder??c48.toUtf8;if(Y.httpHeader||Y.httpResponseCode)return this.stringDeserializer.read(K,z(q));if(Y.httpPayload){if(K.isBlobSchema()){let w=this.serdeContext?.utf8Decoder??c48.fromUtf8;if(typeof q==="string")return w(q);return q}else if(K.isStringSchema()){if("byteLength"in q)return z(q);return q}}return this.codecDeserializer.read(K,q)}}class r48 extends dD6{settings;stringBuffer="";constructor(A){super();this.settings=A}write(A,q){let K=Qy.NormalizedSchema.of(A);switch(typeof q){case"object":if(q===null){this.stringBuffer="null";return}if(K.isTimestampSchema()){if(!(q instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${q} when schema expected Date in ${K.getName(!0)}`);switch(i48(K,this.settings)){case 5:this.stringBuffer=q.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=Fy.dateToUtcString(q);break;case 7:this.stringBuffer=String(q.getTime()/1000);break;default:console.warn("Missing timestamp format, using epoch seconds",q),this.stringBuffer=String(q.getTime()/1000)}return}if(K.isBlobSchema()&&"byteLength"in q){this.stringBuffer=(this.serdeContext?.base64Encoder??hY1.toBase64)(q);return}if(K.isListSchema()&&Array.isArray(q)){let w="";for(let _ of q){this.write([K.getValueSchema(),K.getMergedTraits()],_);let $=this.flush(),O=K.getValueSchema().isTimestampSchema()?$:Fy.quoteHeader($);if(w!=="")w+=", ";w+=O}this.stringBuffer=w;return}this.stringBuffer=JSON.stringify(q,null,2);break;case"string":let Y=K.getMergedTraits().mediaType,z=q;if(Y){if(Y==="application/json"||Y.endsWith("+json"))z=Fy.LazyJsonString.from(z);if(K.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??hY1.toBase64)(z.toString());return}}this.stringBuffer=q;break;default:if(K.isIdempotencyToken())this.stringBuffer=Fy.generateIdempotencyToken();else this.stringBuffer=String(q)}}flush(){let A=this.stringBuffer;return this.stringBuffer="",A}}class Y37{codecSerializer;stringSerializer;buffer;constructor(A,q,K=new r48(q)){this.codecSerializer=A,this.stringSerializer=K}setSerdeContext(A){this.codecSerializer.setSerdeContext(A),this.stringSerializer.setSerdeContext(A)}write(A,q){let K=Qy.NormalizedSchema.of(A),Y=K.getMergedTraits();if(Y.httpHeader||Y.httpLabel||Y.httpQuery){this.stringSerializer.write(K,q),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(K,q)}flush(){if(this.buffer!==void 0){let A=this.buffer;return this.buffer=void 0,A}return this.codecSerializer.flush()}}fC3.FromStringShapeDeserializer=n48;fC3.HttpBindingProtocol=eK7;fC3.HttpInterceptingShapeDeserializer=K37;fC3.HttpInterceptingShapeSerializer=Y37;fC3.HttpProtocol=CY1;fC3.RequestBuilder=l48;fC3.RpcProtocol=A37;fC3.SerdeContext=dD6;fC3.ToStringShapeSerializer=r48;fC3.collectBody=RK6;fC3.determineTimestampFormat=i48;fC3.extendedEncodeURIComponent=Kb6;fC3.requestBuilder=ZC3;fC3.resolvedPath=q37});var W37=h((lD6)=>{var _37=tm(),e48=Fv(),a48=a78(),bC3=RO(),z37=pv();class $37{config;middlewareStack=_37.constructStack();initConfig;handlers;constructor(A){this.config=A}send(A,q,K){let Y=typeof q!=="function"?q:void 0,z=typeof q==="function"?q:K,w=Y===void 0&&this.config.cacheMiddleware===!0,_;if(w){if(!this.handlers)this.handlers=new WeakMap;let $=this.handlers;if($.has(A.constructor))_=$.get(A.constructor);else _=A.resolveMiddleware(this.middlewareStack,this.config,Y),$.set(A.constructor,_)}else delete this.handlers,_=A.resolveMiddleware(this.middlewareStack,this.config,Y);if(z)_(A).then(($)=>z(null,$.output),($)=>z($)).catch(()=>{});else return _(A).then(($)=>$.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var o48="***SensitiveInformation***";function s48(A,q){if(q==null)return q;let K=bC3.NormalizedSchema.of(A);if(K.getMergedTraits().sensitive)return o48;if(K.isListSchema()){if(!!K.getValueSchema().getMergedTraits().sensitive)return o48}else if(K.isMapSchema()){if(!!K.getKeySchema().getMergedTraits().sensitive||!!K.getValueSchema().getMergedTraits().sensitive)return o48}else if(K.isStructSchema()&&typeof q==="object"){let Y=q,z={};for(let[w,_]of K.structIterator())if(Y[w]!=null)z[w]=s48(_,Y[w]);return z}return q}class Aq8{middlewareStack=_37.constructStack();schema;static classBuilder(){return new O37}resolveMiddlewareWithContext(A,q,K,{middlewareFn:Y,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,smithyContext:O,additionalContext:H,CommandCtor:j}){for(let P of Y.bind(this)(j,A,q,K))this.middlewareStack.use(P);let J=A.concat(this.middlewareStack),{logger:M}=q,D={logger:M,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,[a48.SMITHY_CONTEXT_KEY]:{commandInstance:this,...O},...H},{requestHandler:X}=q;return J.resolve((P)=>X.handle(P.request,K||{}),D)}}class O37{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(A){this._init=A}ep(A){return this._ep=A,this}m(A){return this._middlewareFn=A,this}s(A,q,K={}){return this._smithyContext={service:A,operation:q,...K},this}c(A={}){return this._additionalContext=A,this}n(A,q){return this._clientName=A,this._commandName=q,this}f(A=(K)=>K,q=(K)=>K){return this._inputFilterSensitiveLog=A,this._outputFilterSensitiveLog=q,this}ser(A){return this._serializer=A,this}de(A){return this._deserializer=A,this}sc(A){return this._operationSchema=A,this._smithyContext.operationSchema=A,this}build(){let A=this,q;return q=class extends Aq8{input;static getEndpointParameterInstructions(){return A._ep}constructor(...[K]){super();this.input=K??{},A._init(this),this.schema=A._operationSchema}resolveMiddleware(K,Y,z){let w=A._operationSchema,_=w?.[4]??w?.input,$=w?.[5]??w?.output;return this.resolveMiddlewareWithContext(K,Y,z,{CommandCtor:q,middlewareFn:A._middlewareFn,clientName:A._clientName,commandName:A._commandName,inputFilterSensitiveLog:A._inputFilterSensitiveLog??(w?s48.bind(null,_):(O)=>O),outputFilterSensitiveLog:A._outputFilterSensitiveLog??(w?s48.bind(null,$):(O)=>O),smithyContext:A._smithyContext,additionalContext:A._additionalContext})}serialize=A._serializer;deserialize=A._deserializer}}}var uC3="***SensitiveInformation***",mC3=(A,q)=>{for(let K of Object.keys(A)){let Y=A[K],z=async function(_,$,O){let H=new Y(_);if(typeof $==="function")this.send(H,$);else if(typeof O==="function"){if(typeof $!=="object")throw Error(`Expected http options but got ${typeof $}`);this.send(H,$||{},O)}else return this.send(H,$)},w=(K[0].toLowerCase()+K.slice(1)).replace(/Command$/,"");q.prototype[w]=z}};class cD6 extends Error{$fault;$response;$retryable;$metadata;constructor(A){super(A.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=A.name,this.$fault=A.$fault,this.$metadata=A.$metadata}static isInstance(A){if(!A)return!1;let q=A;return cD6.prototype.isPrototypeOf(q)||Boolean(q.$fault)&&Boolean(q.$metadata)&&(q.$fault==="client"||q.$fault==="server")}static[Symbol.hasInstance](A){if(!A)return!1;let q=A;if(this===cD6)return cD6.isInstance(A);if(cD6.isInstance(A)){if(q.name&&this.name)return this.prototype.isPrototypeOf(A)||q.name===this.name;return this.prototype.isPrototypeOf(A)}return!1}}var H37=(A,q={})=>{Object.entries(q).filter(([,Y])=>Y!==void 0).forEach(([Y,z])=>{if(A[Y]==null||A[Y]==="")A[Y]=z});let K=A.message||A.Message||"UnknownError";return A.message=K,delete A.Message,A},j37=({output:A,parsedBody:q,exceptionCtor:K,errorCode:Y})=>{let z=gC3(A),w=z.httpStatusCode?z.httpStatusCode+"":void 0,_=new K({name:q?.code||q?.Code||Y||w||"UnknownError",$fault:"client",$metadata:z});throw H37(_,q)},BC3=(A)=>{return({output:q,parsedBody:K,errorCode:Y})=>{j37({output:q,parsedBody:K,exceptionCtor:A,errorCode:Y})}},gC3=(A)=>({httpStatusCode:A.statusCode,requestId:A.headers["x-amzn-requestid"]??A.headers["x-amzn-request-id"]??A.headers["x-amz-request-id"],extendedRequestId:A.headers["x-amz-id-2"],cfId:A.headers["x-amz-cf-id"]}),pC3=(A)=>{switch(A){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},w37=!1,FC3=(A)=>{if(A&&!w37&&parseInt(A.substring(1,A.indexOf(".")))<16)w37=!0},QC3=(A)=>{let q=[];for(let K in a48.AlgorithmId){let Y=a48.AlgorithmId[K];if(A[Y]===void 0)continue;q.push({algorithmId:()=>Y,checksumConstructor:()=>A[Y]})}return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},UC3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},dC3=(A)=>{return{setRetryStrategy(q){A.retryStrategy=q},retryStrategy(){return A.retryStrategy}}},cC3=(A)=>{let q={};return q.retryStrategy=A.retryStrategy(),q},J37=(A)=>{return Object.assign(QC3(A),dC3(A))},lC3=J37,iC3=(A)=>{return Object.assign(UC3(A),cC3(A))},nC3=(A)=>Array.isArray(A)?A:[A],M37=(A)=>{for(let K in A)if(A.hasOwnProperty(K)&&A[K]["#text"]!==void 0)A[K]=A[K]["#text"];else if(typeof A[K]==="object"&&A[K]!==null)A[K]=M37(A[K]);return A},rC3=(A)=>{return A!=null};class D37{trace(){}debug(){}info(){}warn(){}error(){}}function X37(A,q,K){let Y,z,w;if(typeof q>"u"&&typeof K>"u")Y={},w=A;else if(Y=A,typeof q==="function")return z=q,w=K,sC3(Y,z,w);else w=q;for(let _ of Object.keys(w)){if(!Array.isArray(w[_])){Y[_]=w[_];continue}P37(Y,null,w,_)}return Y}var oC3=(A)=>{let q={};for(let[K,Y]of Object.entries(A||{}))q[K]=[,Y];return q},aC3=(A,q)=>{let K={};for(let Y in q)P37(K,A,q,Y);return K},sC3=(A,q,K)=>{return X37(A,Object.entries(K).reduce((Y,[z,w])=>{if(Array.isArray(w))Y[z]=w;else if(typeof w==="function")Y[z]=[q,w()];else Y[z]=[q,w];return Y},{}))},P37=(A,q,K,Y)=>{if(q!==null){let _=K[Y];if(typeof _==="function")_=[,_];let[$=tC3,O=eC3,H=Y]=_;if(typeof $==="function"&&$(q[H])||typeof $!=="function"&&!!$)A[Y]=O(q[H]);return}let[z,w]=K[Y];if(typeof w==="function"){let _,$=z===void 0&&(_=w())!=null,O=typeof z==="function"&&!!z(void 0)||typeof z!=="function"&&!!z;if($)A[Y]=_;else if(O)A[Y]=w()}else{let _=z===void 0&&w!=null,$=typeof z==="function"&&!!z(w)||typeof z!=="function"&&!!z;if(_||$)A[Y]=w}},tC3=(A)=>A!=null,eC3=(A)=>A,AI3=(A)=>{if(A!==A)return"NaN";switch(A){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return A}},qI3=(A)=>A.toISOString().replace(".000Z","Z"),t48=(A)=>{if(A==null)return{};if(Array.isArray(A))return A.filter((q)=>q!=null).map(t48);if(typeof A==="object"){let q={};for(let K of Object.keys(A)){if(A[K]==null)continue;q[K]=t48(A[K])}return q}return A};Object.defineProperty(lD6,"collectBody",{enumerable:!0,get:function(){return e48.collectBody}});Object.defineProperty(lD6,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return e48.extendedEncodeURIComponent}});Object.defineProperty(lD6,"resolvedPath",{enumerable:!0,get:function(){return e48.resolvedPath}});lD6.Client=$37;lD6.Command=Aq8;lD6.NoOpLogger=D37;lD6.SENSITIVE_STRING=uC3;lD6.ServiceException=cD6;lD6._json=t48;lD6.convertMap=oC3;lD6.createAggregatedClient=mC3;lD6.decorateServiceException=H37;lD6.emitWarningIfUnsupportedVersion=FC3;lD6.getArrayIfSingleItem=nC3;lD6.getDefaultClientConfiguration=lC3;lD6.getDefaultExtensionConfiguration=J37;lD6.getValueFromTextNode=M37;lD6.isSerializableHeaderValue=rC3;lD6.loadConfigsForDefaultMode=pC3;lD6.map=X37;lD6.resolveDefaultRuntimeConfig=iC3;lD6.serializeDateTime=qI3;lD6.serializeFloat=AI3;lD6.take=aC3;lD6.throwDefaultError=j37;lD6.withBaseException=BC3;Object.keys(z37).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(lD6,A))Object.defineProperty(lD6,A,{enumerable:!0,get:function(){return z37[A]}})})});var Z37=h((G37)=>{Object.defineProperty(G37,"__esModule",{value:!0});G37.createGetRequest=RI3;G37.getCredentials=SI3;var qq8=MM(),EI3=m47(),LI3=W37(),yI3=M48();function RI3(A){return new EI3.HttpRequest({protocol:A.protocol,hostname:A.hostname,port:Number(A.port),path:A.pathname,query:Array.from(A.searchParams.entries()).reduce((q,[K,Y])=>{return q[K]=Y,q},{}),fragment:A.hash})}async function SI3(A,q){let Y=await(0,yI3.sdkStreamMixin)(A.body).transformToString();if(A.statusCode===200){let z=JSON.parse(Y);if(typeof z.AccessKeyId!=="string"||typeof z.SecretAccessKey!=="string"||typeof z.Token!=="string"||typeof z.Expiration!=="string")throw new qq8.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:q});return{accessKeyId:z.AccessKeyId,secretAccessKey:z.SecretAccessKey,sessionToken:z.Token,expiration:(0,LI3.parseRfc3339DateTime)(z.Expiration)}}if(A.statusCode>=400&&A.statusCode<500){let z={};try{z=JSON.parse(Y)}catch(w){}throw Object.assign(new qq8.CredentialsProviderError(`Server responded with status: ${A.statusCode}`,{logger:q}),{Code:z.Code,Message:z.Message})}throw new qq8.CredentialsProviderError(`Server responded with status: ${A.statusCode}`,{logger:q})}});var v37=h((f37)=>{Object.defineProperty(f37,"__esModule",{value:!0});f37.retryWrapper=void 0;var II3=(A,q,K)=>{return async()=>{for(let Y=0;Y<q;++Y)try{return await A()}catch(z){await new Promise((w)=>setTimeout(w,K))}return await A()}};f37.retryWrapper=II3});var L37=h((k37)=>{Object.defineProperty(k37,"__esModule",{value:!0});k37.fromHttp=void 0;var xI3=S2(),bI3=mv(),uI3=uv(),V37=MM(),mI3=xI3.__importDefault(u6("fs/promises")),BI3=I47(),N37=Z37(),gI3=v37(),pI3="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",FI3="http://169.254.170.2",QI3="AWS_CONTAINER_CREDENTIALS_FULL_URI",UI3="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",dI3="AWS_CONTAINER_AUTHORIZATION_TOKEN",cI3=(A={})=>{A.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let q,K=A.awsContainerCredentialsRelativeUri??process.env[pI3],Y=A.awsContainerCredentialsFullUri??process.env[QI3],z=A.awsContainerAuthorizationToken??process.env[dI3],w=A.awsContainerAuthorizationTokenFile??process.env[UI3],_=A.logger?.constructor?.name==="NoOpLogger"||!A.logger?.warn?console.warn:A.logger.warn.bind(A.logger);if(K&&Y)_("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),_("awsContainerCredentialsFullUri will take precedence.");if(z&&w)_("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),_("awsContainerAuthorizationToken will take precedence.");if(Y)q=Y;else if(K)q=`${FI3}${K}`;else throw new V37.CredentialsProviderError(`No HTTP credential provider host provided.
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:A.logger});let $=new URL(q);(0,BI3.checkUrl)($,A.logger);let O=uI3.NodeHttpHandler.create({requestTimeout:A.timeout??1000,connectionTimeout:A.timeout??1000});return(0,gI3.retryWrapper)(async()=>{let H=(0,N37.createGetRequest)($);if(z)H.headers.Authorization=z;else if(w)H.headers.Authorization=(await mI3.default.readFile(w)).toString();try{let j=await O.handle(H);return(0,N37.getCredentials)(j.response).then((J)=>(0,bI3.setCredentialFeature)(J,"CREDENTIALS_HTTP","z"))}catch(j){throw new V37.CredentialsProviderError(String(j),{logger:A.logger})}},A.maxRetries??3,A.timeout??1000)};k37.fromHttp=cI3});var IY1=h((Kq8)=>{Object.defineProperty(Kq8,"__esModule",{value:!0});Kq8.fromHttp=void 0;var lI3=L37();Object.defineProperty(Kq8,"fromHttp",{enumerable:!0,get:function(){return lI3.fromHttp}})});var Hq8=h((tI3)=>{tI3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(tI3.HttpAuthLocation||(tI3.HttpAuthLocation={}));tI3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(tI3.HttpApiKeyAuthLocation||(tI3.HttpApiKeyAuthLocation={}));tI3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(tI3.EndpointURLScheme||(tI3.EndpointURLScheme={}));tI3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(tI3.AlgorithmId||(tI3.AlgorithmId={}));var nI3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>tI3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>tI3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},rI3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},oI3=(A)=>{return nI3(A)},aI3=(A)=>{return rI3(A)};tI3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(tI3.FieldPosition||(tI3.FieldPosition={}));var sI3="__smithy_context";tI3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(tI3.IniSectionType||(tI3.IniSectionType={}));tI3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(tI3.RequestHandlerProtocol||(tI3.RequestHandlerProtocol={}));tI3.SMITHY_CONTEXT_KEY=sI3;tI3.getDefaultClientConfiguration=oI3;tI3.resolveDefaultRuntimeConfig=aI3});var bY1=h(($x3)=>{var Kx3=Hq8(),Yx3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},zx3=(A)=>{return{httpHandler:A.httpHandler()}};class y37{name;kind;values;constructor({name:A,kind:q=Kx3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class R37{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class xY1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new xY1({...A,headers:{...A.headers}});if(q.query)q.query=wx3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return xY1.clone(this)}}function wx3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class S37{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function _x3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}$x3.Field=y37;$x3.Fields=R37;$x3.HttpRequest=xY1;$x3.HttpResponse=S37;$x3.getHttpHandlerExtensionConfiguration=Yx3;$x3.isValidHostname=_x3;$x3.resolveHttpHandlerRuntimeConfig=zx3});var h37=h((Tx3)=>{Tx3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Tx3.HttpAuthLocation||(Tx3.HttpAuthLocation={}));Tx3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Tx3.HttpApiKeyAuthLocation||(Tx3.HttpApiKeyAuthLocation={}));Tx3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(Tx3.EndpointURLScheme||(Tx3.EndpointURLScheme={}));Tx3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(Tx3.AlgorithmId||(Tx3.AlgorithmId={}));var Px3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>Tx3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>Tx3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},Wx3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},Gx3=(A)=>{return Px3(A)},Zx3=(A)=>{return Wx3(A)};Tx3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(Tx3.FieldPosition||(Tx3.FieldPosition={}));var fx3="__smithy_context";Tx3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(Tx3.IniSectionType||(Tx3.IniSectionType={}));Tx3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(Tx3.RequestHandlerProtocol||(Tx3.RequestHandlerProtocol={}));Tx3.SMITHY_CONTEXT_KEY=fx3;Tx3.getDefaultClientConfiguration=Gx3;Tx3.resolveDefaultRuntimeConfig=Zx3});var b37=h((Sx3)=>{var kx3=h37(),Ex3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},Lx3=(A)=>{return{httpHandler:A.httpHandler()}};class C37{name;kind;values;constructor({name:A,kind:q=kx3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class I37{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class uY1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new uY1({...A,headers:{...A.headers}});if(q.query)q.query=yx3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return uY1.clone(this)}}function yx3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class x37{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function Rx3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}Sx3.Field=C37;Sx3.Fields=I37;Sx3.HttpRequest=uY1;Sx3.HttpResponse=x37;Sx3.getHttpHandlerExtensionConfiguration=Ex3;Sx3.isValidHostname=Rx3;Sx3.resolveHttpHandlerRuntimeConfig=Lx3});var Gq8=h((px3)=>{var Bx3=b37(),u37=(A,q)=>(K,Y)=>async(z)=>{let{response:w}=await K(z);try{let _=await q(w,A);return{response:w,output:_}}catch(_){if(Object.defineProperty(_,"$response",{value:w,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in _)){try{_.message+=`
  Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(O){if(!Y.logger||Y.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else Y.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof _.$responseBodyText<"u"){if(_.$response)_.$response.body=_.$responseBodyText}try{if(Bx3.HttpResponse.isInstance(w)){let{headers:O={}}=w,H=Object.entries(O);_.$metadata={httpStatusCode:w.statusCode,requestId:Wq8(/^x-[\w-]+-request-?id$/,H),extendedRequestId:Wq8(/^x-[\w-]+-id-2$/,H),cfId:Wq8(/^x-[\w-]+-cf-id$/,H)}}}catch(O){}}throw _}},Wq8=(A,q)=>{return(q.find(([K])=>{return K.match(A)})||[void 0,void 0])[1]},m37=(A,q)=>(K,Y)=>async(z)=>{let w=A,_=Y.endpointV2?.url&&w.urlParser?async()=>w.urlParser(Y.endpointV2.url):w.endpoint;if(!_)throw Error("No valid endpoint provider available.");let $=await q(z.input,{...A,endpoint:_});return K({...z,request:$})},B37={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},g37={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function gx3(A,q,K){return{applyToStack:(Y)=>{Y.add(u37(A,K),B37),Y.add(m37(A,q),g37)}}}px3.deserializerMiddleware=u37;px3.deserializerMiddlewareOption=B37;px3.getSerdePlugin=gx3;px3.serializerMiddleware=m37;px3.serializerMiddlewareOption=g37});var Ew=h((s37)=>{var mY1=f48(),p37=WG(),lx3=Gq8(),Zq8=cx6(),ix3=Fv(),nx3=(A)=>A[mY1.SMITHY_CONTEXT_KEY]||(A[mY1.SMITHY_CONTEXT_KEY]={}),rx3=(A,q)=>{if(!q||q.length===0)return A;let K=[];for(let Y of q)for(let z of A)if(z.schemeId.split("#")[1]===Y)K.push(z);for(let Y of A)if(!K.find(({schemeId:z})=>z===Y.schemeId))K.push(Y);return K};function ox3(A){let q=new Map;for(let K of A)q.set(K.schemeId,K);return q}var fq8=(A,q)=>(K,Y)=>async(z)=>{let w=A.httpAuthSchemeProvider(await q.httpAuthSchemeParametersProvider(A,Y,z.input)),_=A.authSchemePreference?await A.authSchemePreference():[],$=rx3(w,_),O=ox3(A.httpAuthSchemes),H=p37.getSmithyContext(Y),j=[];for(let J of $){let M=O.get(J.schemeId);if(!M){j.push(`HttpAuthScheme \`${J.schemeId}\` was not enabled for this service.`);continue}let D=M.identityProvider(await q.identityProviderConfigProvider(A));if(!D){j.push(`HttpAuthScheme \`${J.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:X={},signingProperties:P={}}=J.propertiesExtractor?.(A,Y)||{};J.identityProperties=Object.assign(J.identityProperties||{},X),J.signingProperties=Object.assign(J.signingProperties||{},P),H.selectedHttpAuthScheme={httpAuthOption:J,identity:await D(J.identityProperties),signer:M.signer};break}if(!H.selectedHttpAuthScheme)throw Error(j.join(`
`));return K(z)},F37={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},ax3=(A,{httpAuthSchemeParametersProvider:q,identityProviderConfigProvider:K})=>({applyToStack:(Y)=>{Y.addRelativeTo(fq8(A,{httpAuthSchemeParametersProvider:q,identityProviderConfigProvider:K}),F37)}}),Q37={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:lx3.serializerMiddlewareOption.name},sx3=(A,{httpAuthSchemeParametersProvider:q,identityProviderConfigProvider:K})=>({applyToStack:(Y)=>{Y.addRelativeTo(fq8(A,{httpAuthSchemeParametersProvider:q,identityProviderConfigProvider:K}),Q37)}}),tx3=(A)=>(q)=>{throw q},ex3=(A,q)=>{},U37=(A)=>(q,K)=>async(Y)=>{if(!Zq8.HttpRequest.isInstance(Y.request))return q(Y);let w=p37.getSmithyContext(K).selectedHttpAuthScheme;if(!w)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:_={}},identity:$,signer:O}=w,H=await q({...Y,request:await O.sign(Y.request,$,_)}).catch((O.errorHandler||tx3)(_));return(O.successHandler||ex3)(H.response,_),H},d37={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Ab3=(A)=>({applyToStack:(q)=>{q.addRelativeTo(U37(),d37)}}),qb3=(A)=>{if(typeof A==="function")return A;let q=Promise.resolve(A);return()=>q},Kb3=async(A,q,K,Y=(w)=>w,...z)=>{let w=new A(K);return w=Y(w)??w,await q.send(w,...z)};function Yb3(A,q,K,Y,z){return async function*(_,$,...O){let H=$,j=_.startingToken??H[K],J=!0,M;while(J){if(H[K]=j,z)H[z]=H[z]??_.pageSize;if(_.client instanceof A)M=await Kb3(q,_.client,$,_.withCommand,...O);else throw Error(`Invalid client, expected instance of ${A.name}`);yield M;let D=j;j=zb3(M,Y),J=!!(j&&(!_.stopOnSameToken||j!==D))}return}}var zb3=(A,q)=>{let K=A,Y=q.split(".");for(let z of Y){if(!K||typeof K!=="object")return;K=K[z]}return K};function wb3(A,q,K){if(!A.__smithy_context)A.__smithy_context={features:{}};else if(!A.__smithy_context.features)A.__smithy_context.features={};A.__smithy_context.features[q]=K}class c37{authSchemes=new Map;constructor(A){for(let[q,K]of Object.entries(A))if(K!==void 0)this.authSchemes.set(q,K)}getIdentityProvider(A){return this.authSchemes.get(A)}}class l37{async sign(A,q,K){if(!K)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!K.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!K.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!q.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let Y=Zq8.HttpRequest.clone(A);if(K.in===mY1.HttpApiKeyAuthLocation.QUERY)Y.query[K.name]=q.apiKey;else if(K.in===mY1.HttpApiKeyAuthLocation.HEADER)Y.headers[K.name]=K.scheme?`${K.scheme} ${q.apiKey}`:q.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+K.in+"`");return Y}}class i37{async sign(A,q,K){let Y=Zq8.HttpRequest.clone(A);if(!q.token)throw Error("request could not be signed with `token` since the `token` is not defined");return Y.headers.Authorization=`Bearer ${q.token}`,Y}}class n37{async sign(A,q,K){return A}}var r37=(A)=>function(K){return a37(K)&&K.expiration.getTime()-Date.now()<A},o37=300000,_b3=r37(o37),a37=(A)=>A.expiration!==void 0,$b3=(A,q,K)=>{if(A===void 0)return;let Y=typeof A!=="function"?async()=>Promise.resolve(A):A,z,w,_,$=!1,O=async(H)=>{if(!w)w=Y(H);try{z=await w,_=!0,$=!1}finally{w=void 0}return z};if(q===void 0)return async(H)=>{if(!_||H?.forceRefresh)z=await O(H);return z};return async(H)=>{if(!_||H?.forceRefresh)z=await O(H);if($)return z;if(!K(z))return $=!0,z;if(q(z))return await O(H),z;return z}};Object.defineProperty(s37,"requestBuilder",{enumerable:!0,get:function(){return ix3.requestBuilder}});s37.DefaultIdentityProviderConfig=c37;s37.EXPIRATION_MS=o37;s37.HttpApiKeyAuthSigner=l37;s37.HttpBearerAuthSigner=i37;s37.NoAuthSigner=n37;s37.createIsIdentityExpiredFunction=r37;s37.createPaginator=Yb3;s37.doesIdentityRequireRefresh=a37;s37.getHttpAuthSchemeEndpointRuleSetPlugin=ax3;s37.getHttpAuthSchemePlugin=sx3;s37.getHttpSigningPlugin=Ab3;s37.getSmithyContext=nx3;s37.httpAuthSchemeEndpointRuleSetMiddlewareOptions=F37;s37.httpAuthSchemeMiddleware=fq8;s37.httpAuthSchemeMiddlewareOptions=Q37;s37.httpSigningMiddleware=U37;s37.httpSigningMiddlewareOptions=d37;s37.isIdentityExpired=_b3;s37.memoizeIdentityProvider=$b3;s37.normalizeProvider=qb3;s37.setFeature=wb3});var e37=h((Cb3)=>{var t37={},Tq8={};for(let A=0;A<256;A++){let q=A.toString(16).toLowerCase();if(q.length===1)q=`0${q}`;t37[A]=q,Tq8[q]=A}function Sb3(A){if(A.length%2!==0)throw Error("Hex encoded strings must have an even number length");let q=new Uint8Array(A.length/2);for(let K=0;K<A.length;K+=2){let Y=A.slice(K,K+2).toLowerCase();if(Y in Tq8)q[K/2]=Tq8[Y];else throw Error(`Cannot decode unrecognized sequence ${Y} as hexadecimal`)}return q}function hb3(A){let q="";for(let K=0;K<A.byteLength;K++)q+=t37[A[K]];return q}Cb3.fromHex=Sb3;Cb3.toHex=hb3});var A57=h((ub3)=>{var bb3=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";ub3.isArrayBuffer=bb3});var K57=h((pb3)=>{var q57=(A)=>encodeURIComponent(A).replace(/[!'()*]/g,Bb3),Bb3=(A)=>`%${A.charCodeAt(0).toString(16).toUpperCase()}`,gb3=(A)=>A.split("/").map(q57).join("/");pb3.escapeUri=q57;pb3.escapeUriPath=gb3});var Cq8=h((tb3)=>{var us=e37(),SK6=K2(),Ub3=A57(),_57=bY1(),Y57=WG(),BY1=K57(),$57="X-Amz-Algorithm",O57="X-Amz-Credential",Nq8="X-Amz-Date",H57="X-Amz-SignedHeaders",j57="X-Amz-Expires",kq8="X-Amz-Signature",Eq8="X-Amz-Security-Token",db3="X-Amz-Region-Set",Lq8="authorization",yq8=Nq8.toLowerCase(),J57="date",M57=[Lq8,yq8,J57],D57=kq8.toLowerCase(),UY1="x-amz-content-sha256",X57=Eq8.toLowerCase(),cb3="host",P57={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},W57=/^proxy-/,G57=/^sec-/,lb3=[/^proxy-/i,/^sec-/i],gY1="AWS4-HMAC-SHA256",ib3="AWS4-ECDSA-P256-SHA256",Z57="AWS4-HMAC-SHA256-PAYLOAD",f57="UNSIGNED-PAYLOAD",T57=50,Rq8="aws4_request",v57=604800,iD6={},pY1=[],FY1=(A,q,K)=>`${A}/${q}/${K}/${Rq8}`,V57=async(A,q,K,Y,z)=>{let w=await z57(A,q.secretAccessKey,q.accessKeyId),_=`${K}:${Y}:${z}:${us.toHex(w)}:${q.sessionToken}`;if(_ in iD6)return iD6[_];pY1.push(_);while(pY1.length>T57)delete iD6[pY1.shift()];let $=`AWS4${q.secretAccessKey}`;for(let O of[K,Y,z,Rq8])$=await z57(A,$,O);return iD6[_]=$},nb3=()=>{pY1.length=0,Object.keys(iD6).forEach((A)=>{delete iD6[A]})},z57=(A,q,K)=>{let Y=new A(q);return Y.update(SK6.toUint8Array(K)),Y.digest()},vq8=({headers:A},q,K)=>{let Y={};for(let z of Object.keys(A).sort()){if(A[z]==null)continue;let w=z.toLowerCase();if(w in P57||q?.has(w)||W57.test(w)||G57.test(w)){if(!K||K&&!K.has(w))continue}Y[w]=A[z].trim().replace(/\s+/g," ")}return Y},QY1=async({headers:A,body:q},K)=>{for(let Y of Object.keys(A))if(Y.toLowerCase()===UY1)return A[Y];if(q==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof q==="string"||ArrayBuffer.isView(q)||Ub3.isArrayBuffer(q)){let Y=new K;return Y.update(SK6.toUint8Array(q)),us.toHex(await Y.digest())}return f57};class N57{format(A){let q=[];for(let z of Object.keys(A)){let w=SK6.fromUtf8(z);q.push(Uint8Array.from([w.byteLength]),w,this.formatHeaderValue(A[z]))}let K=new Uint8Array(q.reduce((z,w)=>z+w.byteLength,0)),Y=0;for(let z of q)K.set(z,Y),Y+=z.byteLength;return K}formatHeaderValue(A){switch(A.type){case"boolean":return Uint8Array.from([A.value?0:1]);case"byte":return Uint8Array.from([2,A.value]);case"short":let q=new DataView(new ArrayBuffer(3));return q.setUint8(0,3),q.setInt16(1,A.value,!1),new Uint8Array(q.buffer);case"integer":let K=new DataView(new ArrayBuffer(5));return K.setUint8(0,4),K.setInt32(1,A.value,!1),new Uint8Array(K.buffer);case"long":let Y=new Uint8Array(9);return Y[0]=5,Y.set(A.value.bytes,1),Y;case"binary":let z=new DataView(new ArrayBuffer(3+A.value.byteLength));z.setUint8(0,6),z.setUint16(1,A.value.byteLength,!1);let w=new Uint8Array(z.buffer);return w.set(A.value,3),w;case"string":let _=SK6.fromUtf8(A.value),$=new DataView(new ArrayBuffer(3+_.byteLength));$.setUint8(0,7),$.setUint16(1,_.byteLength,!1);let O=new Uint8Array($.buffer);return O.set(_,3),O;case"timestamp":let H=new Uint8Array(9);return H[0]=8,H.set(Sq8.fromNumber(A.value.valueOf()).bytes,1),H;case"uuid":if(!rb3.test(A.value))throw Error(`Invalid UUID received: ${A.value}`);let j=new Uint8Array(17);return j[0]=9,j.set(us.fromHex(A.value.replace(/\-/g,"")),1),j}}}var rb3=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Sq8{bytes;constructor(A){if(this.bytes=A,A.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(A){if(A>9223372036854776000||A<-9223372036854776000)throw Error(`${A} is too large (or, if negative, too small) to represent as an Int64`);let q=new Uint8Array(8);for(let K=7,Y=Math.abs(Math.round(A));K>-1&&Y>0;K--,Y/=256)q[K]=Y;if(A<0)w57(q);return new Sq8(q)}valueOf(){let A=this.bytes.slice(0),q=A[0]&128;if(q)w57(A);return parseInt(us.toHex(A),16)*(q?-1:1)}toString(){return String(this.valueOf())}}function w57(A){for(let q=0;q<8;q++)A[q]^=255;for(let q=7;q>-1;q--)if(A[q]++,A[q]!==0)break}var k57=(A,q)=>{A=A.toLowerCase();for(let K of Object.keys(q))if(A===K.toLowerCase())return!0;return!1},E57=(A,q={})=>{let{headers:K,query:Y={}}=_57.HttpRequest.clone(A);for(let z of Object.keys(K)){let w=z.toLowerCase();if(w.slice(0,6)==="x-amz-"&&!q.unhoistableHeaders?.has(w)||q.hoistableHeaders?.has(w))Y[z]=K[z],delete K[z]}return{...A,headers:K,query:Y}},Vq8=(A)=>{A=_57.HttpRequest.clone(A);for(let q of Object.keys(A.headers))if(M57.indexOf(q.toLowerCase())>-1)delete A.headers[q];return A},L57=({query:A={}})=>{let q=[],K={};for(let Y of Object.keys(A)){if(Y.toLowerCase()===D57)continue;let z=BY1.escapeUri(Y);q.push(z);let w=A[Y];if(typeof w==="string")K[z]=`${z}=${BY1.escapeUri(w)}`;else if(Array.isArray(w))K[z]=w.slice(0).reduce((_,$)=>_.concat([`${z}=${BY1.escapeUri($)}`]),[]).sort().join("&")}return q.sort().map((Y)=>K[Y]).filter((Y)=>Y).join("&")},ob3=(A)=>ab3(A).toISOString().replace(/\.\d{3}Z$/,"Z"),ab3=(A)=>{if(typeof A==="number")return new Date(A*1000);if(typeof A==="string"){if(Number(A))return new Date(Number(A)*1000);return new Date(A)}return A};class hq8{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:A,credentials:q,region:K,service:Y,sha256:z,uriEscapePath:w=!0}){this.service=Y,this.sha256=z,this.uriEscapePath=w,this.applyChecksum=typeof A==="boolean"?A:!0,this.regionProvider=Y57.normalizeProvider(K),this.credentialProvider=Y57.normalizeProvider(q)}createCanonicalRequest(A,q,K){let Y=Object.keys(q).sort();return`${A.method}
${this.getCanonicalPath(A)}
${L57(A)}
${Y.map((z)=>`${z}:${q[z]}`).join(`
`)}

${Y.join(";")}
${K}`}async createStringToSign(A,q,K,Y){let z=new this.sha256;z.update(SK6.toUint8Array(K));let w=await z.digest();return`${Y}
${A}
${q}
${us.toHex(w)}`}getCanonicalPath({path:A}){if(this.uriEscapePath){let q=[];for(let z of A.split("/")){if(z?.length===0)continue;if(z===".")continue;if(z==="..")q.pop();else q.push(z)}let K=`${A?.startsWith("/")?"/":""}${q.join("/")}${q.length>0&&A?.endsWith("/")?"/":""}`;return BY1.escapeUri(K).replace(/%2F/g,"/")}return A}validateResolvedCredentials(A){if(typeof A!=="object"||typeof A.accessKeyId!=="string"||typeof A.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(A){let q=ob3(A).replace(/[\-:]/g,"");return{longDate:q,shortDate:q.slice(0,8)}}getCanonicalHeaderList(A){return Object.keys(A).sort().join(";")}}class y57 extends hq8{headerFormatter=new N57;constructor({applyChecksum:A,credentials:q,region:K,service:Y,sha256:z,uriEscapePath:w=!0}){super({applyChecksum:A,credentials:q,region:K,service:Y,sha256:z,uriEscapePath:w})}async presign(A,q={}){let{signingDate:K=new Date,expiresIn:Y=3600,unsignableHeaders:z,unhoistableHeaders:w,signableHeaders:_,hoistableHeaders:$,signingRegion:O,signingService:H}=q,j=await this.credentialProvider();this.validateResolvedCredentials(j);let J=O??await this.regionProvider(),{longDate:M,shortDate:D}=this.formatDate(K);if(Y>v57)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let X=FY1(D,J,H??this.service),P=E57(Vq8(A),{unhoistableHeaders:w,hoistableHeaders:$});if(j.sessionToken)P.query[Eq8]=j.sessionToken;P.query[$57]=gY1,P.query[O57]=`${j.accessKeyId}/${X}`,P.query[Nq8]=M,P.query[j57]=Y.toString(10);let W=vq8(P,z,_);return P.query[H57]=this.getCanonicalHeaderList(W),P.query[kq8]=await this.getSignature(M,X,this.getSigningKey(j,J,D,H),this.createCanonicalRequest(P,W,await QY1(A,this.sha256))),P}async sign(A,q){if(typeof A==="string")return this.signString(A,q);else if(A.headers&&A.payload)return this.signEvent(A,q);else if(A.message)return this.signMessage(A,q);else return this.signRequest(A,q)}async signEvent({headers:A,payload:q},{signingDate:K=new Date,priorSignature:Y,signingRegion:z,signingService:w}){let _=z??await this.regionProvider(),{shortDate:$,longDate:O}=this.formatDate(K),H=FY1($,_,w??this.service),j=await QY1({headers:{},body:q},this.sha256),J=new this.sha256;J.update(A);let M=us.toHex(await J.digest()),D=[Z57,O,H,Y,M,j].join(`
`);return this.signString(D,{signingDate:K,signingRegion:_,signingService:w})}async signMessage(A,{signingDate:q=new Date,signingRegion:K,signingService:Y}){return this.signEvent({headers:this.headerFormatter.format(A.message.headers),payload:A.message.body},{signingDate:q,signingRegion:K,signingService:Y,priorSignature:A.priorSignature}).then((w)=>{return{message:A.message,signature:w}})}async signString(A,{signingDate:q=new Date,signingRegion:K,signingService:Y}={}){let z=await this.credentialProvider();this.validateResolvedCredentials(z);let w=K??await this.regionProvider(),{shortDate:_}=this.formatDate(q),$=new this.sha256(await this.getSigningKey(z,w,_,Y));return $.update(SK6.toUint8Array(A)),us.toHex(await $.digest())}async signRequest(A,{signingDate:q=new Date,signableHeaders:K,unsignableHeaders:Y,signingRegion:z,signingService:w}={}){let _=await this.credentialProvider();this.validateResolvedCredentials(_);let $=z??await this.regionProvider(),O=Vq8(A),{longDate:H,shortDate:j}=this.formatDate(q),J=FY1(j,$,w??this.service);if(O.headers[yq8]=H,_.sessionToken)O.headers[X57]=_.sessionToken;let M=await QY1(O,this.sha256);if(!k57(UY1,O.headers)&&this.applyChecksum)O.headers[UY1]=M;let D=vq8(O,Y,K),X=await this.getSignature(H,J,this.getSigningKey(_,$,j,w),this.createCanonicalRequest(O,D,M));return O.headers[Lq8]=`${gY1} Credential=${_.accessKeyId}/${J}, SignedHeaders=${this.getCanonicalHeaderList(D)}, Signature=${X}`,O}async getSignature(A,q,K,Y){let z=await this.createStringToSign(A,q,Y,gY1),w=new this.sha256(await K);return w.update(SK6.toUint8Array(z)),us.toHex(await w.digest())}getSigningKey(A,q,K,Y){return V57(this.sha256,A,K,q,Y||this.service)}}var sb3={SignatureV4a:null};tb3.ALGORITHM_IDENTIFIER=gY1;tb3.ALGORITHM_IDENTIFIER_V4A=ib3;tb3.ALGORITHM_QUERY_PARAM=$57;tb3.ALWAYS_UNSIGNABLE_HEADERS=P57;tb3.AMZ_DATE_HEADER=yq8;tb3.AMZ_DATE_QUERY_PARAM=Nq8;tb3.AUTH_HEADER=Lq8;tb3.CREDENTIAL_QUERY_PARAM=O57;tb3.DATE_HEADER=J57;tb3.EVENT_ALGORITHM_IDENTIFIER=Z57;tb3.EXPIRES_QUERY_PARAM=j57;tb3.GENERATED_HEADERS=M57;tb3.HOST_HEADER=cb3;tb3.KEY_TYPE_IDENTIFIER=Rq8;tb3.MAX_CACHE_SIZE=T57;tb3.MAX_PRESIGNED_TTL=v57;tb3.PROXY_HEADER_PATTERN=W57;tb3.REGION_SET_PARAM=db3;tb3.SEC_HEADER_PATTERN=G57;tb3.SHA256_HEADER=UY1;tb3.SIGNATURE_HEADER=D57;tb3.SIGNATURE_QUERY_PARAM=kq8;tb3.SIGNED_HEADERS_QUERY_PARAM=H57;tb3.SignatureV4=y57;tb3.SignatureV4Base=hq8;tb3.TOKEN_HEADER=X57;tb3.TOKEN_QUERY_PARAM=Eq8;tb3.UNSIGNABLE_PATTERNS=lb3;tb3.UNSIGNED_PAYLOAD=f57;tb3.clearCredentialCache=nb3;tb3.createScope=FY1;tb3.getCanonicalHeaders=vq8;tb3.getCanonicalQuery=L57;tb3.getPayloadHash=QY1;tb3.getSigningKey=V57;tb3.hasHeader=k57;tb3.moveHeadersToQuery=E57;tb3.prepareRequest=Vq8;tb3.signatureV4aContainer=sb3});var g57=h((nu3)=>{var Iq8=bY1(),ms=Ew(),R57=MM(),gu3=mv(),S57=Cq8(),h57=(A)=>Iq8.HttpResponse.isInstance(A)?A.headers?.date??A.headers?.Date:void 0,xq8=(A)=>new Date(Date.now()+A),pu3=(A,q)=>Math.abs(xq8(q).getTime()-A)>=300000,C57=(A,q)=>{let K=Date.parse(A);if(pu3(K,q))return K-Date.now();return q},wb6=(A,q)=>{if(!q)throw Error(`Property \`${A}\` is not resolved for AWS SDK SigV4Auth`);return q},bq8=async(A)=>{let q=wb6("context",A.context),K=wb6("config",A.config),Y=q.endpointV2?.properties?.authSchemes?.[0],w=await wb6("signer",K.signer)(Y),_=A?.signingRegion,$=A?.signingRegionSet,O=A?.signingName;return{config:K,signer:w,signingRegion:_,signingRegionSet:$,signingName:O}};class dY1{async sign(A,q,K){if(!Iq8.HttpRequest.isInstance(A))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let Y=await bq8(K),{config:z,signer:w}=Y,{signingRegion:_,signingName:$}=Y,O=K.context;if(O?.authSchemes?.length??!1){let[j,J]=O.authSchemes;if(j?.name==="sigv4a"&&J?.name==="sigv4")_=J?.signingRegion??_,$=J?.signingName??$}return await w.sign(A,{signingDate:xq8(z.systemClockOffset),signingRegion:_,signingService:$})}errorHandler(A){return(q)=>{let K=q.ServerTime??h57(q.$response);if(K){let Y=wb6("config",A.config),z=Y.systemClockOffset;if(Y.systemClockOffset=C57(K,Y.systemClockOffset),Y.systemClockOffset!==z&&q.$metadata)q.$metadata.clockSkewCorrected=!0}throw q}}successHandler(A,q){let K=h57(A);if(K){let Y=wb6("config",q.config);Y.systemClockOffset=C57(K,Y.systemClockOffset)}}}var Fu3=dY1;class u57 extends dY1{async sign(A,q,K){if(!Iq8.HttpRequest.isInstance(A))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:Y,signer:z,signingRegion:w,signingRegionSet:_,signingName:$}=await bq8(K),H=(await Y.sigv4aSigningRegionSet?.()??_??[w]).join(",");return await z.sign(A,{signingDate:xq8(Y.systemClockOffset),signingRegion:H,signingService:$})}}var I57=(A)=>typeof A==="string"&&A.length>0?A.split(",").map((q)=>q.trim()):[],m57=(A)=>`AWS_BEARER_TOKEN_${A.replace(/[\s-]/g,"_").toUpperCase()}`,x57="AWS_AUTH_SCHEME_PREFERENCE",b57="auth_scheme_preference",Qu3={environmentVariableSelector:(A,q)=>{if(q?.signingName){if(m57(q.signingName)in A)return["httpBearerAuth"]}if(!(x57 in A))return;return I57(A[x57])},configFileSelector:(A)=>{if(!(b57 in A))return;return I57(A[b57])},default:[]},Uu3=(A)=>{return A.sigv4aSigningRegionSet=ms.normalizeProvider(A.sigv4aSigningRegionSet),A},du3={environmentVariableSelector(A){if(A.AWS_SIGV4A_SIGNING_REGION_SET)return A.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((q)=>q.trim());throw new R57.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(A){if(A.sigv4a_signing_region_set)return(A.sigv4a_signing_region_set??"").split(",").map((q)=>q.trim());throw new R57.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},B57=(A)=>{let q=A.credentials,K=!!A.credentials,Y=void 0;Object.defineProperty(A,"credentials",{set(H){if(H&&H!==q&&H!==Y)K=!0;q=H;let j=lu3(A,{credentials:q,credentialDefaultProvider:A.credentialDefaultProvider}),J=iu3(A,j);if(K&&!J.attributed)Y=async(M)=>J(M).then((D)=>gu3.setCredentialFeature(D,"CREDENTIALS_CODE","e")),Y.memoized=J.memoized,Y.configBound=J.configBound,Y.attributed=!0;else Y=J},get(){return Y},enumerable:!0,configurable:!0}),A.credentials=q;let{signingEscapePath:z=!0,systemClockOffset:w=A.systemClockOffset||0,sha256:_}=A,$;if(A.signer)$=ms.normalizeProvider(A.signer);else if(A.regionInfoProvider)$=()=>ms.normalizeProvider(A.region)().then(async(H)=>[await A.regionInfoProvider(H,{useFipsEndpoint:await A.useFipsEndpoint(),useDualstackEndpoint:await A.useDualstackEndpoint()})||{},H]).then(([H,j])=>{let{signingRegion:J,signingService:M}=H;A.signingRegion=A.signingRegion||J||j,A.signingName=A.signingName||M||A.serviceId;let D={...A,credentials:A.credentials,region:A.signingRegion,service:A.signingName,sha256:_,uriEscapePath:z};return new(A.signerConstructor||S57.SignatureV4)(D)});else $=async(H)=>{H=Object.assign({},{name:"sigv4",signingName:A.signingName||A.defaultSigningName,signingRegion:await ms.normalizeProvider(A.region)(),properties:{}},H);let{signingRegion:j,signingName:J}=H;A.signingRegion=A.signingRegion||j,A.signingName=A.signingName||J||A.serviceId;let M={...A,credentials:A.credentials,region:A.signingRegion,service:A.signingName,sha256:_,uriEscapePath:z};return new(A.signerConstructor||S57.SignatureV4)(M)};return Object.assign(A,{systemClockOffset:w,signingEscapePath:z,signer:$})},cu3=B57;function lu3(A,{credentials:q,credentialDefaultProvider:K}){let Y;if(q)if(!q?.memoized)Y=ms.memoizeIdentityProvider(q,ms.isIdentityExpired,ms.doesIdentityRequireRefresh);else Y=q;else if(K)Y=ms.normalizeProvider(K(Object.assign({},A,{parentClientConfig:A})));else Y=async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")};return Y.memoized=!0,Y}function iu3(A,q){if(q.configBound)return q;let K=async(Y)=>q({...Y,callerClientConfig:A});return K.memoized=q.memoized,K.configBound=!0,K}nu3.AWSSDKSigV4Signer=Fu3;nu3.AwsSdkSigV4ASigner=u57;nu3.AwsSdkSigV4Signer=dY1;nu3.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=Qu3;nu3.NODE_SIGV4A_CONFIG_OPTIONS=du3;nu3.getBearerTokenEnvKey=m57;nu3.resolveAWSSDKSigV4Config=cu3;nu3.resolveAwsSdkSigV4AConfig=Uu3;nu3.resolveAwsSdkSigV4Config=B57;nu3.validateSigningProperties=bq8});var p57=h((Hm3)=>{Hm3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Hm3.HttpAuthLocation||(Hm3.HttpAuthLocation={}));Hm3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Hm3.HttpApiKeyAuthLocation||(Hm3.HttpApiKeyAuthLocation={}));Hm3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(Hm3.EndpointURLScheme||(Hm3.EndpointURLScheme={}));Hm3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(Hm3.AlgorithmId||(Hm3.AlgorithmId={}));var zm3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>Hm3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>Hm3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},wm3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},_m3=(A)=>{return zm3(A)},$m3=(A)=>{return wm3(A)};Hm3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(Hm3.FieldPosition||(Hm3.FieldPosition={}));var Om3="__smithy_context";Hm3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(Hm3.IniSectionType||(Hm3.IniSectionType={}));Hm3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(Hm3.RequestHandlerProtocol||(Hm3.RequestHandlerProtocol={}));Hm3.SMITHY_CONTEXT_KEY=Om3;Hm3.getDefaultClientConfiguration=_m3;Hm3.resolveDefaultRuntimeConfig=$m3});var d57=h((Zm3)=>{var Dm3=p57(),Xm3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},Pm3=(A)=>{return{httpHandler:A.httpHandler()}};class F57{name;kind;values;constructor({name:A,kind:q=Dm3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class Q57{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class cY1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new cY1({...A,headers:{...A.headers}});if(q.query)q.query=Wm3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return cY1.clone(this)}}function Wm3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class U57{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function Gm3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}Zm3.Field=F57;Zm3.Fields=Q57;Zm3.HttpRequest=cY1;Zm3.HttpResponse=U57;Zm3.getHttpHandlerExtensionConfiguration=Xm3;Zm3.isValidHostname=Gm3;Zm3.resolveHttpHandlerRuntimeConfig=Pm3});var vd=h((Sm3)=>{var Lm3=d57();function ym3(A){return A}var c57=(A)=>(q)=>async(K)=>{if(!Lm3.HttpRequest.isInstance(K.request))return q(K);let{request:Y}=K,{handlerProtocol:z=""}=A.requestHandler.metadata||{};if(z.indexOf("h2")>=0&&!Y.headers[":authority"])delete Y.headers.host,Y.headers[":authority"]=Y.hostname+(Y.port?":"+Y.port:"");else if(!Y.headers.host){let w=Y.hostname;if(Y.port!=null)w+=`:${Y.port}`;Y.headers.host=w}return q(K)},l57={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Rm3=(A)=>({applyToStack:(q)=>{q.add(c57(A),l57)}});Sm3.getHostHeaderPlugin=Rm3;Sm3.hostHeaderMiddleware=c57;Sm3.hostHeaderMiddlewareOptions=l57;Sm3.resolveHostHeaderConfig=ym3});var Vd=h((um3)=>{var i57=()=>(A,q)=>async(K)=>{try{let Y=await A(K),{clientName:z,commandName:w,logger:_,dynamoDbDocumentClientOptions:$={}}=q,{overrideInputFilterSensitiveLog:O,overrideOutputFilterSensitiveLog:H}=$,j=O??q.inputFilterSensitiveLog,J=H??q.outputFilterSensitiveLog,{$metadata:M,...D}=Y.output;return _?.info?.({clientName:z,commandName:w,input:j(K.input),output:J(D),metadata:M}),Y}catch(Y){let{clientName:z,commandName:w,logger:_,dynamoDbDocumentClientOptions:$={}}=q,{overrideInputFilterSensitiveLog:O}=$,H=O??q.inputFilterSensitiveLog;throw _?.error?.({clientName:z,commandName:w,input:H(K.input),error:Y,metadata:Y.$metadata}),Y}},n57={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},bm3=(A)=>({applyToStack:(q)=>{q.add(i57(),n57)}});um3.getLoggerPlugin=bm3;um3.loggerMiddleware=i57;um3.loggerMiddlewareOptions=n57});var o57=h((pm3)=>{var $b6={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID")},Qq8=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!Qq8)globalThis.awslambda=globalThis.awslambda||{};class lY1{static PROTECTED_KEYS=$b6;isProtectedKey(A){return Object.values($b6).includes(A)}getRequestId(){return this.get($b6.REQUEST_ID)??"-"}getXRayTraceId(){return this.get($b6.X_RAY_TRACE_ID)}getTenantId(){return this.get($b6.TENANT_ID)}}class r57 extends lY1{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(A){return this.currentContext?.[A]}set(A,q){if(this.isProtectedKey(A))throw Error(`Cannot modify protected Lambda context field: ${String(A)}`);this.currentContext=this.currentContext||{},this.currentContext[A]=q}run(A,q){this.currentContext=A;try{return q()}finally{this.currentContext=void 0}}}class dq8 extends lY1{als;static async create(){let A=new dq8,q=await import("node:async_hooks");return A.als=new q.AsyncLocalStorage,A}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(A){return this.als.getStore()?.[A]}set(A,q){if(this.isProtectedKey(A))throw Error(`Cannot modify protected Lambda context field: ${String(A)}`);let K=this.als.getStore();if(!K)throw Error("No context available");K[A]=q}run(A,q){return this.als.run(A,q)}}pm3.InvokeStore=void 0;(function(A){let q=null;async function K(){if(!q)q=(async()=>{let z="AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await dq8.create():new r57;if(!Qq8&&globalThis.awslambda?.InvokeStore)return globalThis.awslambda.InvokeStore;else if(!Qq8&&globalThis.awslambda)return globalThis.awslambda.InvokeStore=z,z;else return z})();return q}A.getInstanceAsync=K,A._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{if(q=null,globalThis.awslambda?.InvokeStore)delete globalThis.awslambda.InvokeStore;globalThis.awslambda={}}}:void 0})(pm3.InvokeStore||(pm3.InvokeStore={}));pm3.InvokeStoreBase=lY1});var a57=h((im3)=>{im3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(im3.HttpAuthLocation||(im3.HttpAuthLocation={}));im3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(im3.HttpApiKeyAuthLocation||(im3.HttpApiKeyAuthLocation={}));im3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(im3.EndpointURLScheme||(im3.EndpointURLScheme={}));im3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(im3.AlgorithmId||(im3.AlgorithmId={}));var Qm3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>im3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>im3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},Um3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},dm3=(A)=>{return Qm3(A)},cm3=(A)=>{return Um3(A)};im3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(im3.FieldPosition||(im3.FieldPosition={}));var lm3="__smithy_context";im3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(im3.IniSectionType||(im3.IniSectionType={}));im3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(im3.RequestHandlerProtocol||(im3.RequestHandlerProtocol={}));im3.SMITHY_CONTEXT_KEY=lm3;im3.getDefaultClientConfiguration=dm3;im3.resolveDefaultRuntimeConfig=cm3});var A97=h((qB3)=>{var am3=a57(),sm3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},tm3=(A)=>{return{httpHandler:A.httpHandler()}};class s57{name;kind;values;constructor({name:A,kind:q=am3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class t57{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class iY1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new iY1({...A,headers:{...A.headers}});if(q.query)q.query=em3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return iY1.clone(this)}}function em3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class e57{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function AB3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}qB3.Field=s57;qB3.Fields=t57;qB3.HttpRequest=iY1;qB3.HttpResponse=e57;qB3.getHttpHandlerExtensionConfiguration=sm3;qB3.isValidHostname=AB3;qB3.resolveHttpHandlerRuntimeConfig=tm3});var Y97=h((q97)=>{Object.defineProperty(q97,"__esModule",{value:!0});q97.recursionDetectionMiddleware=void 0;var HB3=o57(),jB3=A97(),aq8="X-Amzn-Trace-Id",JB3="AWS_LAMBDA_FUNCTION_NAME",MB3="_X_AMZN_TRACE_ID",DB3=()=>(A)=>async(q)=>{let{request:K}=q;if(!jB3.HttpRequest.isInstance(K))return A(q);let Y=Object.keys(K.headers??{}).find((j)=>j.toLowerCase()===aq8.toLowerCase())??aq8;if(K.headers.hasOwnProperty(Y))return A(q);let z=process.env[JB3],w=process.env[MB3],O=(await HB3.InvokeStore.getInstanceAsync())?.getXRayTraceId()??w,H=(j)=>typeof j==="string"&&j.length>0;if(H(z)&&H(O))K.headers[aq8]=O;return A({...q,request:K})};q97.recursionDetectionMiddleware=DB3});var Nd=h((tq8)=>{var sq8=Y97(),XB3={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},PB3=(A)=>({applyToStack:(q)=>{q.add(sq8.recursionDetectionMiddleware(),XB3)}});tq8.getRecursionDetectionPlugin=PB3;Object.keys(sq8).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(tq8,A))Object.defineProperty(tq8,A,{enumerable:!0,get:function(){return sq8[A]}})})});var z97=h((VB3)=>{VB3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(VB3.HttpAuthLocation||(VB3.HttpAuthLocation={}));VB3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(VB3.HttpApiKeyAuthLocation||(VB3.HttpApiKeyAuthLocation={}));VB3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(VB3.EndpointURLScheme||(VB3.EndpointURLScheme={}));VB3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(VB3.AlgorithmId||(VB3.AlgorithmId={}));var GB3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>VB3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>VB3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},ZB3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},fB3=(A)=>{return GB3(A)},TB3=(A)=>{return ZB3(A)};VB3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(VB3.FieldPosition||(VB3.FieldPosition={}));var vB3="__smithy_context";VB3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(VB3.IniSectionType||(VB3.IniSectionType={}));VB3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(VB3.RequestHandlerProtocol||(VB3.RequestHandlerProtocol={}));VB3.SMITHY_CONTEXT_KEY=vB3;VB3.getDefaultClientConfiguration=fB3;VB3.resolveDefaultRuntimeConfig=TB3});var YI=h((lB3)=>{var _K8=z97();class w97{capacity;data=new Map;parameters=[];constructor({size:A,params:q}){if(this.capacity=A??50,q)this.parameters=q}get(A,q){let K=this.hash(A);if(K===!1)return q();if(!this.data.has(K)){if(this.data.size>this.capacity+10){let Y=this.data.keys(),z=0;while(!0){let{value:w,done:_}=Y.next();if(this.data.delete(w),_||++z>10)break}}this.data.set(K,q())}return this.data.get(K)}size(){return this.data.size}hash(A){let q="",{parameters:K}=this;if(K.length===0)return!1;for(let Y of K){let z=String(A[Y]??"");if(z.includes("|;"))return!1;q+=z+"|;"}return q}}var LB3=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),_97=(A)=>LB3.test(A)||A.startsWith("[")&&A.endsWith("]"),yB3=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),OK8=(A,q=!1)=>{if(!q)return yB3.test(A);let K=A.split(".");for(let Y of K)if(!OK8(Y))return!1;return!0},$K8={},jb6="endpoints";function Bs(A){if(typeof A!=="object"||A==null)return A;if("ref"in A)return`$${Bs(A.ref)}`;if("fn"in A)return`${A.fn}(${(A.argv||[]).map(Bs).join(", ")})`;return JSON.stringify(A,null,2)}class Df extends Error{constructor(A){super(A);this.name="EndpointError"}}var RB3=(A,q)=>A===q,SB3=(A)=>{let q=A.split("."),K=[];for(let Y of q){let z=Y.indexOf("[");if(z!==-1){if(Y.indexOf("]")!==Y.length-1)throw new Df(`Path: '${A}' does not end with ']'`);let w=Y.slice(z+1,-1);if(Number.isNaN(parseInt(w)))throw new Df(`Invalid array index: '${w}' in path: '${A}'`);if(z!==0)K.push(Y.slice(0,z));K.push(w)}else K.push(Y)}return K},$97=(A,q)=>SB3(q).reduce((K,Y)=>{if(typeof K!=="object")throw new Df(`Index '${Y}' in '${q}' not found in '${JSON.stringify(A)}'`);else if(Array.isArray(K))return K[parseInt(Y)];return K[Y]},A),hB3=(A)=>A!=null,CB3=(A)=>!A,wK8={[_K8.EndpointURLScheme.HTTP]:80,[_K8.EndpointURLScheme.HTTPS]:443},IB3=(A)=>{let q=(()=>{try{if(A instanceof URL)return A;if(typeof A==="object"&&"hostname"in A){let{hostname:M,port:D,protocol:X="",path:P="",query:W={}}=A,G=new URL(`${X}//${M}${D?`:${D}`:""}${P}`);return G.search=Object.entries(W).map(([Z,f])=>`${Z}=${f}`).join("&"),G}return new URL(A)}catch(M){return null}})();if(!q)return console.error(`Unable to parse ${JSON.stringify(A)} as a whatwg URL.`),null;let K=q.href,{host:Y,hostname:z,pathname:w,protocol:_,search:$}=q;if($)return null;let O=_.slice(0,-1);if(!Object.values(_K8.EndpointURLScheme).includes(O))return null;let H=_97(z),j=K.includes(`${Y}:${wK8[O]}`)||typeof A==="string"&&A.includes(`${Y}:${wK8[O]}`),J=`${Y}${j?`:${wK8[O]}`:""}`;return{scheme:O,authority:J,path:w,normalizedPath:w.endsWith("/")?w:`${w}/`,isIp:H}},xB3=(A,q)=>A===q,bB3=(A,q,K,Y)=>{if(q>=K||A.length<K)return null;if(!Y)return A.substring(q,K);return A.substring(A.length-K,A.length-q)},uB3=(A)=>encodeURIComponent(A).replace(/[!*'()]/g,(q)=>`%${q.charCodeAt(0).toString(16).toUpperCase()}`),mB3={booleanEquals:RB3,getAttr:$97,isSet:hB3,isValidHostLabel:OK8,not:CB3,parseURL:IB3,stringEquals:xB3,substring:bB3,uriEncode:uB3},O97=(A,q)=>{let K=[],Y={...q.endpointParams,...q.referenceRecord},z=0;while(z<A.length){let w=A.indexOf("{",z);if(w===-1){K.push(A.slice(z));break}K.push(A.slice(z,w));let _=A.indexOf("}",w);if(_===-1){K.push(A.slice(w));break}if(A[w+1]==="{"&&A[_+1]==="}")K.push(A.slice(w+1,_)),z=_+2;let $=A.substring(w+1,_);if($.includes("#")){let[O,H]=$.split("#");K.push($97(Y[O],H))}else K.push(Y[$]);z=_+1}return K.join("")},BB3=({ref:A},q)=>{return{...q.endpointParams,...q.referenceRecord}[A]},nY1=(A,q,K)=>{if(typeof A==="string")return O97(A,K);else if(A.fn)return j97.callFunction(A,K);else if(A.ref)return BB3(A,K);throw new Df(`'${q}': ${String(A)} is not a string, function or reference.`)},H97=({fn:A,argv:q},K)=>{let Y=q.map((w)=>["boolean","number"].includes(typeof w)?w:j97.evaluateExpression(w,"arg",K)),z=A.split(".");if(z[0]in $K8&&z[1]!=null)return $K8[z[0]][z[1]](...Y);return mB3[A](...Y)},j97={evaluateExpression:nY1,callFunction:H97},gB3=({assign:A,...q},K)=>{if(A&&A in K.referenceRecord)throw new Df(`'${A}' is already defined in Reference Record.`);let Y=H97(q,K);return K.logger?.debug?.(`${jb6} evaluateCondition: ${Bs(q)} = ${Bs(Y)}`),{result:Y===""?!0:!!Y,...A!=null&&{toAssign:{name:A,value:Y}}}},HK8=(A=[],q)=>{let K={};for(let Y of A){let{result:z,toAssign:w}=gB3(Y,{...q,referenceRecord:{...q.referenceRecord,...K}});if(!z)return{result:z};if(w)K[w.name]=w.value,q.logger?.debug?.(`${jb6} assign: ${w.name} := ${Bs(w.value)}`)}return{result:!0,referenceRecord:K}},pB3=(A,q)=>Object.entries(A).reduce((K,[Y,z])=>({...K,[Y]:z.map((w)=>{let _=nY1(w,"Header value entry",q);if(typeof _!=="string")throw new Df(`Header '${Y}' value '${_}' is not a string`);return _})}),{}),J97=(A,q)=>Object.entries(A).reduce((K,[Y,z])=>({...K,[Y]:D97.getEndpointProperty(z,q)}),{}),M97=(A,q)=>{if(Array.isArray(A))return A.map((K)=>M97(K,q));switch(typeof A){case"string":return O97(A,q);case"object":if(A===null)throw new Df(`Unexpected endpoint property: ${A}`);return D97.getEndpointProperties(A,q);case"boolean":return A;default:throw new Df(`Unexpected endpoint property type: ${typeof A}`)}},D97={getEndpointProperty:M97,getEndpointProperties:J97},FB3=(A,q)=>{let K=nY1(A,"Endpoint URL",q);if(typeof K==="string")try{return new URL(K)}catch(Y){throw console.error(`Failed to construct URL with ${K}`,Y),Y}throw new Df(`Endpoint URL must be a string, got ${typeof K}`)},QB3=(A,q)=>{let{conditions:K,endpoint:Y}=A,{result:z,referenceRecord:w}=HK8(K,q);if(!z)return;let _={...q,referenceRecord:{...q.referenceRecord,...w}},{url:$,properties:O,headers:H}=Y;return q.logger?.debug?.(`${jb6} Resolving endpoint from template: ${Bs(Y)}`),{...H!=null&&{headers:pB3(H,_)},...O!=null&&{properties:J97(O,_)},url:FB3($,_)}},UB3=(A,q)=>{let{conditions:K,error:Y}=A,{result:z,referenceRecord:w}=HK8(K,q);if(!z)return;throw new Df(nY1(Y,"Error",{...q,referenceRecord:{...q.referenceRecord,...w}}))},X97=(A,q)=>{for(let K of A)if(K.type==="endpoint"){let Y=QB3(K,q);if(Y)return Y}else if(K.type==="error")UB3(K,q);else if(K.type==="tree"){let Y=P97.evaluateTreeRule(K,q);if(Y)return Y}else throw new Df(`Unknown endpoint rule: ${K}`);throw new Df("Rules evaluation failed")},dB3=(A,q)=>{let{conditions:K,rules:Y}=A,{result:z,referenceRecord:w}=HK8(K,q);if(!z)return;return P97.evaluateRules(Y,{...q,referenceRecord:{...q.referenceRecord,...w}})},P97={evaluateRules:X97,evaluateTreeRule:dB3},cB3=(A,q)=>{let{endpointParams:K,logger:Y}=q,{parameters:z,rules:w}=A;q.logger?.debug?.(`${jb6} Initial EndpointParams: ${Bs(K)}`);let _=Object.entries(z).filter(([,H])=>H.default!=null).map(([H,j])=>[H,j.default]);if(_.length>0)for(let[H,j]of _)K[H]=K[H]??j;let $=Object.entries(z).filter(([,H])=>H.required).map(([H])=>H);for(let H of $)if(K[H]==null)throw new Df(`Missing required parameter: '${H}'`);let O=X97(w,{endpointParams:K,logger:Y,referenceRecord:{}});return q.logger?.debug?.(`${jb6} Resolved endpoint: ${Bs(O)}`),O};lB3.EndpointCache=w97;lB3.EndpointError=Df;lB3.customEndpointFunctions=$K8;lB3.isIpAddress=_97;lB3.isValidHostLabel=OK8;lB3.resolveEndpoint=cB3});var AB=h((rY1)=>{var nD6=YI(),tB3=py(),G97=(A,q=!1)=>{if(q){for(let K of A.split("."))if(!G97(K))return!1;return!0}if(!nD6.isValidHostLabel(A))return!1;if(A.length<3||A.length>63)return!1;if(A!==A.toLowerCase())return!1;if(nD6.isIpAddress(A))return!1;return!0},W97=":",eB3="/",Ag3=(A)=>{let q=A.split(W97);if(q.length<6)return null;let[K,Y,z,w,_,...$]=q;if(K!=="arn"||Y===""||z===""||$.join(W97)==="")return null;let O=$.map((H)=>H.split(eB3)).flat();return{partition:Y,service:z,region:w,accountId:_,resourceId:O}},qg3=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"EU (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],Kg3="1.1",Z97={partitions:qg3,version:Kg3},f97=Z97,T97="",v97=(A)=>{let{partitions:q}=f97;for(let Y of q){let{regions:z,outputs:w}=Y;for(let[_,$]of Object.entries(z))if(_===A)return{...w,...$}}for(let Y of q){let{regionRegex:z,outputs:w}=Y;if(new RegExp(z).test(A))return{...w}}let K=q.find((Y)=>Y.id==="aws");if(!K)throw Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...K.outputs}},V97=(A,q="")=>{f97=A,T97=q},Yg3=()=>{V97(Z97,"")},zg3=()=>T97,N97={isVirtualHostableS3Bucket:G97,parseArn:Ag3,partition:v97};nD6.customEndpointFunctions.aws=N97;var wg3=(A)=>{if(typeof A.endpointProvider!=="function")throw Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:q}=A;if(q===void 0)A.endpoint=async()=>{return k97(A.endpointProvider({Region:typeof A.region==="function"?await A.region():A.region,UseDualStack:typeof A.useDualstackEndpoint==="function"?await A.useDualstackEndpoint():A.useDualstackEndpoint,UseFIPS:typeof A.useFipsEndpoint==="function"?await A.useFipsEndpoint():A.useFipsEndpoint,Endpoint:void 0},{logger:A.logger}))};return A},k97=(A)=>tB3.parseUrl(A.url);Object.defineProperty(rY1,"EndpointError",{enumerable:!0,get:function(){return nD6.EndpointError}});Object.defineProperty(rY1,"isIpAddress",{enumerable:!0,get:function(){return nD6.isIpAddress}});Object.defineProperty(rY1,"resolveEndpoint",{enumerable:!0,get:function(){return nD6.resolveEndpoint}});rY1.awsEndpointFunctions=N97;rY1.getUserAgentPrefix=zg3;rY1.partition=v97;rY1.resolveDefaultAwsRegionalEndpointsConfig=wg3;rY1.setPartitionInfo=V97;rY1.toEndpointV1=k97;rY1.useDefaultPartitionInfo=Yg3});var E97=h((Zg3)=>{Zg3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Zg3.HttpAuthLocation||(Zg3.HttpAuthLocation={}));Zg3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Zg3.HttpApiKeyAuthLocation||(Zg3.HttpApiKeyAuthLocation={}));Zg3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(Zg3.EndpointURLScheme||(Zg3.EndpointURLScheme={}));Zg3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(Zg3.AlgorithmId||(Zg3.AlgorithmId={}));var Dg3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>Zg3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>Zg3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},Xg3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},Pg3=(A)=>{return Dg3(A)},Wg3=(A)=>{return Xg3(A)};Zg3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(Zg3.FieldPosition||(Zg3.FieldPosition={}));var Gg3="__smithy_context";Zg3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(Zg3.IniSectionType||(Zg3.IniSectionType={}));Zg3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(Zg3.RequestHandlerProtocol||(Zg3.RequestHandlerProtocol={}));Zg3.SMITHY_CONTEXT_KEY=Gg3;Zg3.getDefaultClientConfiguration=Pg3;Zg3.resolveDefaultRuntimeConfig=Wg3});var S97=h((yg3)=>{var Vg3=E97(),Ng3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},kg3=(A)=>{return{httpHandler:A.httpHandler()}};class L97{name;kind;values;constructor({name:A,kind:q=Vg3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class y97{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class oY1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new oY1({...A,headers:{...A.headers}});if(q.query)q.query=Eg3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return oY1.clone(this)}}function Eg3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class R97{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function Lg3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}yg3.Field=L97;yg3.Fields=y97;yg3.HttpRequest=oY1;yg3.HttpResponse=R97;yg3.getHttpHandlerExtensionConfiguration=Ng3;yg3.isValidHostname=Lg3;yg3.resolveHttpHandlerRuntimeConfig=kg3});var C97=h((mg3)=>{var h97=typeof TextEncoder=="function"?new TextEncoder:null,ug3=(A)=>{if(typeof A==="string"){if(h97)return h97.encode(A).byteLength;let q=A.length;for(let K=q-1;K>=0;K--){let Y=A.charCodeAt(K);if(Y>127&&Y<=2047)q++;else if(Y>2047&&Y<=65535)q+=2;if(Y>=56320&&Y<=57343)K--}return q}else if(typeof A.byteLength==="number")return A.byteLength;else if(typeof A.size==="number")return A.size;throw Error(`Body Length computation failed for ${A}`)};mg3.calculateBodyLength=ug3});var SK8=h((_p3)=>{var Az1=pv(),u97=K2(),Db6=Fv(),gg3=cx6(),pg3=C97(),rD6=RO(),Fg3=WG(),m97=d48(),tY1=0,eY1=1,hK6=2,gs=3,Mb6=4,aY1=5,B97=6,WK8=7,g97=20,fK8=21,p97=22,Qg3=23,vK8=24,CK6=25,IK6=26,ps=27,VK8=31;function oD6(A){return typeof Buffer<"u"?Buffer.alloc(A):new Uint8Array(A)}var NK8=Symbol("@smithy/core/cbor::tagSymbol");function kK8(A){return A[NK8]=!0,A}var Ug3=typeof TextDecoder<"u",dg3=typeof Buffer<"u",h2=oD6(0),Ld=new DataView(h2.buffer,h2.byteOffset,h2.byteLength),I97=Ug3?new TextDecoder:null,L9=0;function cg3(A){h2=A,Ld=new DataView(h2.buffer,h2.byteOffset,h2.byteLength)}function yd(A,q){if(A>=q)throw Error("unexpected end of (decode) payload.");let K=(h2[A]&224)>>5,Y=h2[A]&31;switch(K){case tY1:case eY1:case B97:let z,w;if(Y<24)z=Y,w=1;else switch(Y){case vK8:case CK6:case IK6:case ps:let _=Q97[Y],$=_+1;if(w=$,q-A<$)throw Error(`countLength ${_} greater than remaining buf len.`);let O=A+1;if(_===1)z=h2[O];else if(_===2)z=Ld.getUint16(O);else if(_===4)z=Ld.getUint32(O);else z=Ld.getBigUint64(O);break;default:throw Error(`unexpected minor value ${Y}.`)}if(K===tY1)return L9=w,GK8(z);else if(K===eY1){let _;if(typeof z==="bigint")_=BigInt(-1)-z;else _=-1-z;return L9=w,GK8(_)}else if(Y===2||Y===3){let _=Xb6(A+w,q),$=BigInt(0),O=A+w+L9;for(let H=O;H<O+_;++H)$=$<<BigInt(8)|BigInt(h2[H]);return L9=w+L9+_,Y===3?-$-BigInt(1):$}else if(Y===4){let _=yd(A+w,q),[$,O]=_,H=O<0?-1:1,j="0".repeat(Math.abs($)+1)+String(BigInt(H)*BigInt(O)),J,M=O<0?"-":"";if(J=$===0?j:j.slice(0,j.length+$)+"."+j.slice($),J=J.replace(/^0+/g,""),J==="")J="0";if(J[0]===".")J="0"+J;return J=M+J,L9=w+L9,Az1.nv(J)}else{let _=yd(A+w,q);return L9=w+L9,kK8({tag:GK8(z),value:_})}case gs:case aY1:case Mb6:case hK6:if(Y===VK8)switch(K){case gs:return rg3(A,q);case aY1:return eg3(A,q);case Mb6:return sg3(A,q);case hK6:return og3(A,q)}else switch(K){case gs:return ng3(A,q);case aY1:return tg3(A,q);case Mb6:return ag3(A,q);case hK6:return EK8(A,q)}default:return Ap3(A,q)}}function F97(A,q,K){if(dg3&&A.constructor?.name==="Buffer")return A.toString("utf-8",q,K);if(I97)return I97.decode(A.subarray(q,K));return u97.toUtf8(A.subarray(q,K))}function lg3(A){let q=Number(A);if(q<Number.MIN_SAFE_INTEGER||Number.MAX_SAFE_INTEGER<q)console.warn(Error(`@smithy/core/cbor - truncating BigInt(${A}) to ${q} with loss of precision.`));return q}var Q97={[vK8]:1,[CK6]:2,[IK6]:4,[ps]:8};function ig3(A,q){let K=A>>7,Y=(A&124)>>2,z=(A&3)<<8|q,w=K===0?1:-1,_,$;if(Y===0)if(z===0)return 0;else _=Math.pow(2,-14),$=0;else if(Y===31)if(z===0)return w*(1/0);else return NaN;else _=Math.pow(2,Y-15),$=1;return $+=z/1024,w*(_*$)}function Xb6(A,q){let K=h2[A]&31;if(K<24)return L9=1,K;if(K===vK8||K===CK6||K===IK6||K===ps){let Y=Q97[K];if(L9=Y+1,q-A<L9)throw Error(`countLength ${Y} greater than remaining buf len.`);let z=A+1;if(Y===1)return h2[z];else if(Y===2)return Ld.getUint16(z);else if(Y===4)return Ld.getUint32(z);return lg3(Ld.getBigUint64(z))}throw Error(`unexpected minor value ${K}.`)}function ng3(A,q){let K=Xb6(A,q),Y=L9;if(A+=Y,q-A<K)throw Error(`string len ${K} greater than remaining buf len.`);let z=F97(h2,A,A+K);return L9=Y+K,z}function rg3(A,q){A+=1;let K=[];for(let Y=A;A<q;){if(h2[A]===255){let O=oD6(K.length);return O.set(K,0),L9=A-Y+2,F97(O,0,O.length)}let z=(h2[A]&224)>>5,w=h2[A]&31;if(z!==gs)throw Error(`unexpected major type ${z} in indefinite string.`);if(w===VK8)throw Error("nested indefinite string.");let _=EK8(A,q);A+=L9;for(let O=0;O<_.length;++O)K.push(_[O])}throw Error("expected break marker.")}function EK8(A,q){let K=Xb6(A,q),Y=L9;if(A+=Y,q-A<K)throw Error(`unstructured byte string len ${K} greater than remaining buf len.`);let z=h2.subarray(A,A+K);return L9=Y+K,z}function og3(A,q){A+=1;let K=[];for(let Y=A;A<q;){if(h2[A]===255){let O=oD6(K.length);return O.set(K,0),L9=A-Y+2,O}let z=(h2[A]&224)>>5,w=h2[A]&31;if(z!==hK6)throw Error(`unexpected major type ${z} in indefinite string.`);if(w===VK8)throw Error("nested indefinite string.");let _=EK8(A,q);A+=L9;for(let O=0;O<_.length;++O)K.push(_[O])}throw Error("expected break marker.")}function ag3(A,q){let K=Xb6(A,q),Y=L9;A+=Y;let z=A,w=Array(K);for(let _=0;_<K;++_){let $=yd(A,q),O=L9;w[_]=$,A+=O}return L9=Y+(A-z),w}function sg3(A,q){A+=1;let K=[];for(let Y=A;A<q;){if(h2[A]===255)return L9=A-Y+2,K;let z=yd(A,q);A+=L9,K.push(z)}throw Error("expected break marker.")}function tg3(A,q){let K=Xb6(A,q),Y=L9;A+=Y;let z=A,w={};for(let _=0;_<K;++_){if(A>=q)throw Error("unexpected end of map payload.");let $=(h2[A]&224)>>5;if($!==gs)throw Error(`unexpected major type ${$} for map key at index ${A}.`);let O=yd(A,q);A+=L9;let H=yd(A,q);A+=L9,w[O]=H}return L9=Y+(A-z),w}function eg3(A,q){A+=1;let K=A,Y={};for(;A<q;){if(A>=q)throw Error("unexpected end of map payload.");if(h2[A]===255)return L9=A-K+2,Y;let z=(h2[A]&224)>>5;if(z!==gs)throw Error(`unexpected major type ${z} for map key.`);let w=yd(A,q);A+=L9;let _=yd(A,q);A+=L9,Y[w]=_}throw Error("expected break marker.")}function Ap3(A,q){let K=h2[A]&31;switch(K){case fK8:case g97:return L9=1,K===fK8;case p97:return L9=1,null;case Qg3:return L9=1,null;case CK6:if(q-A<3)throw Error("incomplete float16 at end of buf.");return L9=3,ig3(h2[A+1],h2[A+2]);case IK6:if(q-A<5)throw Error("incomplete float32 at end of buf.");return L9=5,Ld.getFloat32(A+1);case ps:if(q-A<9)throw Error("incomplete float64 at end of buf.");return L9=9,Ld.getFloat64(A+1);default:throw Error(`unexpected minor value ${K}.`)}}function GK8(A){if(typeof A==="number")return A;let q=Number(A);if(Number.MIN_SAFE_INTEGER<=q&&q<=Number.MAX_SAFE_INTEGER)return q;return A}var x97=typeof Buffer<"u",qp3=2048,k3=oD6(qp3),Ed=new DataView(k3.buffer,k3.byteOffset,k3.byteLength),lq=0;function ZK8(A){if(k3.byteLength-lq<A)if(lq<16000000)TK8(Math.max(k3.byteLength*4,k3.byteLength+A));else TK8(k3.byteLength+A+16000000)}function b97(){let A=oD6(lq);return A.set(k3.subarray(0,lq),0),lq=0,A}function TK8(A){let q=k3;if(k3=oD6(A),q)if(q.copy)q.copy(k3,0,0,q.byteLength);else k3.set(q,0);Ed=new DataView(k3.buffer,k3.byteOffset,k3.byteLength)}function kd(A,q){if(q<24)k3[lq++]=A<<5|q;else if(q<256)k3[lq++]=A<<5|24,k3[lq++]=q;else if(q<65536)k3[lq++]=A<<5|CK6,Ed.setUint16(lq,q),lq+=2;else if(q<4294967296)k3[lq++]=A<<5|IK6,Ed.setUint32(lq,q),lq+=4;else k3[lq++]=A<<5|ps,Ed.setBigUint64(lq,typeof q==="bigint"?q:BigInt(q)),lq+=8}function Kp3(A){let q=[A];while(q.length){let K=q.pop();if(ZK8(typeof K==="string"?K.length*4:64),typeof K==="string"){if(x97)kd(gs,Buffer.byteLength(K)),lq+=k3.write(K,lq);else{let Y=u97.fromUtf8(K);kd(gs,Y.byteLength),k3.set(Y,lq),lq+=Y.byteLength}continue}else if(typeof K==="number"){if(Number.isInteger(K)){let Y=K>=0,z=Y?tY1:eY1,w=Y?K:-K-1;if(w<24)k3[lq++]=z<<5|w;else if(w<256)k3[lq++]=z<<5|24,k3[lq++]=w;else if(w<65536)k3[lq++]=z<<5|CK6,k3[lq++]=w>>8,k3[lq++]=w;else if(w<4294967296)k3[lq++]=z<<5|IK6,Ed.setUint32(lq,w),lq+=4;else k3[lq++]=z<<5|ps,Ed.setBigUint64(lq,BigInt(w)),lq+=8;continue}k3[lq++]=WK8<<5|ps,Ed.setFloat64(lq,K),lq+=8;continue}else if(typeof K==="bigint"){let Y=K>=0,z=Y?tY1:eY1,w=Y?K:-K-BigInt(1),_=Number(w);if(_<24)k3[lq++]=z<<5|_;else if(_<256)k3[lq++]=z<<5|24,k3[lq++]=_;else if(_<65536)k3[lq++]=z<<5|CK6,k3[lq++]=_>>8,k3[lq++]=_&255;else if(_<4294967296)k3[lq++]=z<<5|IK6,Ed.setUint32(lq,_),lq+=4;else if(w<BigInt("18446744073709551616"))k3[lq++]=z<<5|ps,Ed.setBigUint64(lq,w),lq+=8;else{let $=w.toString(2),O=new Uint8Array(Math.ceil($.length/8)),H=w,j=0;while(O.byteLength-++j>=0)O[O.byteLength-j]=Number(H&BigInt(255)),H>>=BigInt(8);if(ZK8(O.byteLength*2),k3[lq++]=Y?194:195,x97)kd(hK6,Buffer.byteLength(O));else kd(hK6,O.byteLength);k3.set(O,lq),lq+=O.byteLength}continue}else if(K===null){k3[lq++]=WK8<<5|p97;continue}else if(typeof K==="boolean"){k3[lq++]=WK8<<5|(K?fK8:g97);continue}else if(typeof K>"u")throw Error("@smithy/core/cbor: client may not serialize undefined value.");else if(Array.isArray(K)){for(let Y=K.length-1;Y>=0;--Y)q.push(K[Y]);kd(Mb6,K.length);continue}else if(typeof K.byteLength==="number"){ZK8(K.length*2),kd(hK6,K.length),k3.set(K,lq),lq+=K.byteLength;continue}else if(typeof K==="object"){if(K instanceof Az1.NumericValue){let z=K.string.indexOf("."),w=z===-1?0:z-K.string.length+1,_=BigInt(K.string.replace(".",""));k3[lq++]=196,q.push(_),q.push(w),kd(Mb6,2);continue}if(K[NK8])if("tag"in K&&"value"in K){q.push(K.value),kd(B97,K.tag);continue}else throw Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(K));let Y=Object.keys(K);for(let z=Y.length-1;z>=0;--z){let w=Y[z];q.push(K[w]),q.push(w)}kd(aY1,Y.length);continue}throw Error(`data type ${K?.constructor?.name??typeof K} not compatible for encoding.`)}}var qz1={deserialize(A){return cg3(A),yd(0,A.length)},serialize(A){try{return Kp3(A),b97()}catch(q){throw b97(),q}},resizeEncodingBuffer(A){TK8(A)}},U97=(A,q)=>{return Db6.collectBody(A,q).then(async(K)=>{if(K.length)try{return qz1.deserialize(K)}catch(Y){throw Object.defineProperty(Y,"$responseBodyText",{value:q.utf8Encoder(K)}),Y}return{}})},sY1=(A)=>{return kK8({tag:1,value:A.getTime()/1000})},Yp3=async(A,q)=>{let K=await U97(A,q);return K.message=K.message??K.Message,K},d97=(A,q)=>{let K=(z)=>{let w=z;if(typeof w==="number")w=w.toString();if(w.indexOf(",")>=0)w=w.split(",")[0];if(w.indexOf(":")>=0)w=w.split(":")[0];if(w.indexOf("#")>=0)w=w.split("#")[1];return w};if(q.__type!==void 0)return K(q.__type);let Y=Object.keys(q).find((z)=>z.toLowerCase()==="code");if(Y&&q[Y]!==void 0)return K(q[Y])},zp3=(A)=>{if(String(A.headers["smithy-protocol"]).toLowerCase()!=="rpc-v2-cbor")throw Error("Malformed RPCv2 CBOR response, status: "+A.statusCode)},wp3=async(A,q,K,Y,z)=>{let{hostname:w,protocol:_="https",port:$,path:O}=await A.endpoint(),H={protocol:_,hostname:w,port:$,method:"POST",path:O.endsWith("/")?O.slice(0,-1)+K:O+K,headers:{...q}};if(Y!==void 0)H.hostname=Y;if(z!==void 0){H.body=z;try{H.headers["content-length"]=String(pg3.calculateBodyLength(z))}catch(j){}}return new gg3.HttpRequest(H)};class LK8 extends Db6.SerdeContext{createSerializer(){let A=new yK8;return A.setSerdeContext(this.serdeContext),A}createDeserializer(){let A=new RK8;return A.setSerdeContext(this.serdeContext),A}}class yK8 extends Db6.SerdeContext{value;write(A,q){this.value=this.serialize(A,q)}serialize(A,q){let K=rD6.NormalizedSchema.of(A);if(q==null){if(K.isIdempotencyToken())return Az1.generateIdempotencyToken();return q}if(K.isBlobSchema()){if(typeof q==="string")return(this.serdeContext?.base64Decoder??m97.fromBase64)(q);return q}if(K.isTimestampSchema()){if(typeof q==="number"||typeof q==="bigint")return sY1(new Date(Number(q)/1000|0));return sY1(q)}if(typeof q==="function"||typeof q==="object"){let Y=q;if(K.isListSchema()&&Array.isArray(Y)){let w=!!K.getMergedTraits().sparse,_=[],$=0;for(let O of Y){let H=this.serialize(K.getValueSchema(),O);if(H!=null||w)_[$++]=H}return _}if(Y instanceof Date)return sY1(Y);let z={};if(K.isMapSchema()){let w=!!K.getMergedTraits().sparse;for(let _ of Object.keys(Y)){let $=this.serialize(K.getValueSchema(),Y[_]);if($!=null||w)z[_]=$}}else if(K.isStructSchema())for(let[w,_]of K.structIterator()){let $=this.serialize(_,Y[w]);if($!=null)z[w]=$}else if(K.isDocumentSchema())for(let w of Object.keys(Y))z[w]=this.serialize(K.getValueSchema(),Y[w]);return z}return q}flush(){let A=qz1.serialize(this.value);return this.value=void 0,A}}class RK8 extends Db6.SerdeContext{read(A,q){let K=qz1.deserialize(q);return this.readValue(A,K)}readValue(A,q){let K=rD6.NormalizedSchema.of(A);if(K.isTimestampSchema()&&typeof q==="number")return Az1._parseEpochTimestamp(q);if(K.isBlobSchema()){if(typeof q==="string")return(this.serdeContext?.base64Decoder??m97.fromBase64)(q);return q}if(typeof q>"u"||typeof q==="boolean"||typeof q==="number"||typeof q==="string"||typeof q==="bigint"||typeof q==="symbol")return q;else if(typeof q==="function"||typeof q==="object"){if(q===null)return null;if("byteLength"in q)return q;if(q instanceof Date)return q;if(K.isDocumentSchema())return q;if(K.isListSchema()){let z=[],w=K.getValueSchema(),_=!!K.getMergedTraits().sparse;for(let $ of q){let O=this.readValue(w,$);if(O!=null||_)z.push(O)}return z}let Y={};if(K.isMapSchema()){let z=!!K.getMergedTraits().sparse,w=K.getValueSchema();for(let _ of Object.keys(q)){let $=this.readValue(w,q[_]);if($!=null||z)Y[_]=$}}else if(K.isStructSchema())for(let[z,w]of K.structIterator()){let _=this.readValue(w,q[z]);if(_!=null)Y[z]=_}return Y}else return q}}class c97 extends Db6.RpcProtocol{codec=new LK8;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:A}){super({defaultNamespace:A})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K);if(Object.assign(Y.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()}),rD6.deref(A.input)==="unit")delete Y.body,delete Y.headers["content-type"];else{if(!Y.body)this.serializer.write(15,{}),Y.body=this.serializer.flush();try{Y.headers["content-length"]=String(Y.body.byteLength)}catch($){}}let{service:z,operation:w}=Fg3.getSmithyContext(K),_=`/service/${z}/operation/${w}`;if(Y.path.endsWith("/"))Y.path+=_.slice(1);else Y.path+=_;return Y}async deserializeResponse(A,q,K){return super.deserializeResponse(A,q,K)}async handleError(A,q,K,Y,z){let w=d97(K,Y)??"Unknown",_=this.options.defaultNamespace;if(w.includes("#"))[_]=w.split("#");let $={$metadata:z,$fault:K.statusCode<=500?"client":"server"},O=rD6.TypeRegistry.for(_),H;try{H=O.getSchema(w)}catch(P){if(Y.Message)Y.message=Y.Message;let W=rD6.TypeRegistry.for("smithy.ts.sdk.synthetic."+_),G=W.getBaseException();if(G){let Z=W.getErrorCtor(G);throw Object.assign(new Z({name:w}),$,Y)}throw Object.assign(Error(w),$,Y)}let j=rD6.NormalizedSchema.of(H),J=O.getErrorCtor(H),M=Y.message??Y.Message??"Unknown",D=new J(M),X={};for(let[P,W]of j.structIterator())X[P]=this.deserializer.readValue(W,Y[P]);throw Object.assign(D,$,{$fault:j.getMergedTraits().error,message:M},X)}getDefaultContentType(){return"application/cbor"}}_p3.CborCodec=LK8;_p3.CborShapeDeserializer=RK8;_p3.CborShapeSerializer=yK8;_p3.SmithyRpcV2CborProtocol=c97;_p3.buildHttpRpcRequest=wp3;_p3.cbor=qz1;_p3.checkCborResponse=zp3;_p3.dateToTag=sY1;_p3.loadSmithyRpcV2CborErrorCode=d97;_p3.parseCborBody=U97;_p3.parseCborErrorBody=Yp3;_p3.tag=kK8;_p3.tagSymbol=NK8});var mK8=h((sD6)=>{var n97=tm(),bK8=Fv(),CK8=Hq8(),Tp3=RO(),l97=pv();class r97{config;middlewareStack=n97.constructStack();initConfig;handlers;constructor(A){this.config=A}send(A,q,K){let Y=typeof q!=="function"?q:void 0,z=typeof q==="function"?q:K,w=Y===void 0&&this.config.cacheMiddleware===!0,_;if(w){if(!this.handlers)this.handlers=new WeakMap;let $=this.handlers;if($.has(A.constructor))_=$.get(A.constructor);else _=A.resolveMiddleware(this.middlewareStack,this.config,Y),$.set(A.constructor,_)}else delete this.handlers,_=A.resolveMiddleware(this.middlewareStack,this.config,Y);if(z)_(A).then(($)=>z(null,$.output),($)=>z($)).catch(()=>{});else return _(A).then(($)=>$.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var hK8="***SensitiveInformation***";function IK8(A,q){if(q==null)return q;let K=Tp3.NormalizedSchema.of(A);if(K.getMergedTraits().sensitive)return hK8;if(K.isListSchema()){if(!!K.getValueSchema().getMergedTraits().sensitive)return hK8}else if(K.isMapSchema()){if(!!K.getKeySchema().getMergedTraits().sensitive||!!K.getValueSchema().getMergedTraits().sensitive)return hK8}else if(K.isStructSchema()&&typeof q==="object"){let Y=q,z={};for(let[w,_]of K.structIterator())if(Y[w]!=null)z[w]=IK8(_,Y[w]);return z}return q}class uK8{middlewareStack=n97.constructStack();schema;static classBuilder(){return new o97}resolveMiddlewareWithContext(A,q,K,{middlewareFn:Y,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,smithyContext:O,additionalContext:H,CommandCtor:j}){for(let P of Y.bind(this)(j,A,q,K))this.middlewareStack.use(P);let J=A.concat(this.middlewareStack),{logger:M}=q,D={logger:M,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,[CK8.SMITHY_CONTEXT_KEY]:{commandInstance:this,...O},...H},{requestHandler:X}=q;return J.resolve((P)=>X.handle(P.request,K||{}),D)}}class o97{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(A){this._init=A}ep(A){return this._ep=A,this}m(A){return this._middlewareFn=A,this}s(A,q,K={}){return this._smithyContext={service:A,operation:q,...K},this}c(A={}){return this._additionalContext=A,this}n(A,q){return this._clientName=A,this._commandName=q,this}f(A=(K)=>K,q=(K)=>K){return this._inputFilterSensitiveLog=A,this._outputFilterSensitiveLog=q,this}ser(A){return this._serializer=A,this}de(A){return this._deserializer=A,this}sc(A){return this._operationSchema=A,this._smithyContext.operationSchema=A,this}build(){let A=this,q;return q=class extends uK8{input;static getEndpointParameterInstructions(){return A._ep}constructor(...[K]){super();this.input=K??{},A._init(this),this.schema=A._operationSchema}resolveMiddleware(K,Y,z){let w=A._operationSchema,_=w?.[4]??w?.input,$=w?.[5]??w?.output;return this.resolveMiddlewareWithContext(K,Y,z,{CommandCtor:q,middlewareFn:A._middlewareFn,clientName:A._clientName,commandName:A._commandName,inputFilterSensitiveLog:A._inputFilterSensitiveLog??(w?IK8.bind(null,_):(O)=>O),outputFilterSensitiveLog:A._outputFilterSensitiveLog??(w?IK8.bind(null,$):(O)=>O),smithyContext:A._smithyContext,additionalContext:A._additionalContext})}serialize=A._serializer;deserialize=A._deserializer}}}var vp3="***SensitiveInformation***",Vp3=(A,q)=>{for(let K of Object.keys(A)){let Y=A[K],z=async function(_,$,O){let H=new Y(_);if(typeof $==="function")this.send(H,$);else if(typeof O==="function"){if(typeof $!=="object")throw Error(`Expected http options but got ${typeof $}`);this.send(H,$||{},O)}else return this.send(H,$)},w=(K[0].toLowerCase()+K.slice(1)).replace(/Command$/,"");q.prototype[w]=z}};class aD6 extends Error{$fault;$response;$retryable;$metadata;constructor(A){super(A.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=A.name,this.$fault=A.$fault,this.$metadata=A.$metadata}static isInstance(A){if(!A)return!1;let q=A;return aD6.prototype.isPrototypeOf(q)||Boolean(q.$fault)&&Boolean(q.$metadata)&&(q.$fault==="client"||q.$fault==="server")}static[Symbol.hasInstance](A){if(!A)return!1;let q=A;if(this===aD6)return aD6.isInstance(A);if(aD6.isInstance(A)){if(q.name&&this.name)return this.prototype.isPrototypeOf(A)||q.name===this.name;return this.prototype.isPrototypeOf(A)}return!1}}var a97=(A,q={})=>{Object.entries(q).filter(([,Y])=>Y!==void 0).forEach(([Y,z])=>{if(A[Y]==null||A[Y]==="")A[Y]=z});let K=A.message||A.Message||"UnknownError";return A.message=K,delete A.Message,A},s97=({output:A,parsedBody:q,exceptionCtor:K,errorCode:Y})=>{let z=kp3(A),w=z.httpStatusCode?z.httpStatusCode+"":void 0,_=new K({name:q?.code||q?.Code||Y||w||"UnknownError",$fault:"client",$metadata:z});throw a97(_,q)},Np3=(A)=>{return({output:q,parsedBody:K,errorCode:Y})=>{s97({output:q,parsedBody:K,exceptionCtor:A,errorCode:Y})}},kp3=(A)=>({httpStatusCode:A.statusCode,requestId:A.headers["x-amzn-requestid"]??A.headers["x-amzn-request-id"]??A.headers["x-amz-request-id"],extendedRequestId:A.headers["x-amz-id-2"],cfId:A.headers["x-amz-cf-id"]}),Ep3=(A)=>{switch(A){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},i97=!1,Lp3=(A)=>{if(A&&!i97&&parseInt(A.substring(1,A.indexOf(".")))<16)i97=!0},yp3=(A)=>{let q=[];for(let K in CK8.AlgorithmId){let Y=CK8.AlgorithmId[K];if(A[Y]===void 0)continue;q.push({algorithmId:()=>Y,checksumConstructor:()=>A[Y]})}return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},Rp3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},Sp3=(A)=>{return{setRetryStrategy(q){A.retryStrategy=q},retryStrategy(){return A.retryStrategy}}},hp3=(A)=>{let q={};return q.retryStrategy=A.retryStrategy(),q},t97=(A)=>{return Object.assign(yp3(A),Sp3(A))},Cp3=t97,Ip3=(A)=>{return Object.assign(Rp3(A),hp3(A))},xp3=(A)=>Array.isArray(A)?A:[A],e97=(A)=>{for(let K in A)if(A.hasOwnProperty(K)&&A[K]["#text"]!==void 0)A[K]=A[K]["#text"];else if(typeof A[K]==="object"&&A[K]!==null)A[K]=e97(A[K]);return A},bp3=(A)=>{return A!=null};class AY7{trace(){}debug(){}info(){}warn(){}error(){}}function qY7(A,q,K){let Y,z,w;if(typeof q>"u"&&typeof K>"u")Y={},w=A;else if(Y=A,typeof q==="function")return z=q,w=K,Bp3(Y,z,w);else w=q;for(let _ of Object.keys(w)){if(!Array.isArray(w[_])){Y[_]=w[_];continue}KY7(Y,null,w,_)}return Y}var up3=(A)=>{let q={};for(let[K,Y]of Object.entries(A||{}))q[K]=[,Y];return q},mp3=(A,q)=>{let K={};for(let Y in q)KY7(K,A,q,Y);return K},Bp3=(A,q,K)=>{return qY7(A,Object.entries(K).reduce((Y,[z,w])=>{if(Array.isArray(w))Y[z]=w;else if(typeof w==="function")Y[z]=[q,w()];else Y[z]=[q,w];return Y},{}))},KY7=(A,q,K,Y)=>{if(q!==null){let _=K[Y];if(typeof _==="function")_=[,_];let[$=gp3,O=pp3,H=Y]=_;if(typeof $==="function"&&$(q[H])||typeof $!=="function"&&!!$)A[Y]=O(q[H]);return}let[z,w]=K[Y];if(typeof w==="function"){let _,$=z===void 0&&(_=w())!=null,O=typeof z==="function"&&!!z(void 0)||typeof z!=="function"&&!!z;if($)A[Y]=_;else if(O)A[Y]=w()}else{let _=z===void 0&&w!=null,$=typeof z==="function"&&!!z(w)||typeof z!=="function"&&!!z;if(_||$)A[Y]=w}},gp3=(A)=>A!=null,pp3=(A)=>A,Fp3=(A)=>{if(A!==A)return"NaN";switch(A){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return A}},Qp3=(A)=>A.toISOString().replace(".000Z","Z"),xK8=(A)=>{if(A==null)return{};if(Array.isArray(A))return A.filter((q)=>q!=null).map(xK8);if(typeof A==="object"){let q={};for(let K of Object.keys(A)){if(A[K]==null)continue;q[K]=xK8(A[K])}return q}return A};Object.defineProperty(sD6,"collectBody",{enumerable:!0,get:function(){return bK8.collectBody}});Object.defineProperty(sD6,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return bK8.extendedEncodeURIComponent}});Object.defineProperty(sD6,"resolvedPath",{enumerable:!0,get:function(){return bK8.resolvedPath}});sD6.Client=r97;sD6.Command=uK8;sD6.NoOpLogger=AY7;sD6.SENSITIVE_STRING=vp3;sD6.ServiceException=aD6;sD6._json=xK8;sD6.convertMap=up3;sD6.createAggregatedClient=Vp3;sD6.decorateServiceException=a97;sD6.emitWarningIfUnsupportedVersion=Lp3;sD6.getArrayIfSingleItem=xp3;sD6.getDefaultClientConfiguration=Cp3;sD6.getDefaultExtensionConfiguration=t97;sD6.getValueFromTextNode=e97;sD6.isSerializableHeaderValue=bp3;sD6.loadConfigsForDefaultMode=Ep3;sD6.map=qY7;sD6.resolveDefaultRuntimeConfig=Ip3;sD6.serializeDateTime=Qp3;sD6.serializeFloat=Fp3;sD6.take=mp3;sD6.throwDefaultError=s97;sD6.withBaseException=Np3;Object.keys(l97).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(sD6,A))Object.defineProperty(sD6,A,{enumerable:!0,get:function(){return l97[A]}})})});var YY7=h((MF3)=>{var JF3=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";MF3.isArrayBuffer=JF3});var gK8=h((GF3)=>{var XF3=YY7(),BK8=u6("buffer"),PF3=(A,q=0,K=A.byteLength-q)=>{if(!XF3.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return BK8.Buffer.from(A,q,K)},WF3=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?BK8.Buffer.from(A,q):BK8.Buffer.from(A)};GF3.fromArrayBuffer=PF3;GF3.fromString=WF3});var _Y7=h((zY7)=>{Object.defineProperty(zY7,"__esModule",{value:!0});zY7.fromBase64=void 0;var TF3=gK8(),vF3=/^[A-Za-z0-9+/]*={0,2}$/,VF3=(A)=>{if(A.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!vF3.exec(A))throw TypeError("Invalid base64 string.");let q=(0,TF3.fromString)(A,"base64");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength)};zY7.fromBase64=VF3});var HY7=h(($Y7)=>{Object.defineProperty($Y7,"__esModule",{value:!0});$Y7.toBase64=void 0;var NF3=gK8(),kF3=K2(),EF3=(A)=>{let q;if(typeof A==="string")q=(0,kF3.fromUtf8)(A);else q=A;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,NF3.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("base64")};$Y7.toBase64=EF3});var pK8=h((Pb6)=>{var jY7=_Y7(),JY7=HY7();Object.keys(jY7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(Pb6,A))Object.defineProperty(Pb6,A,{enumerable:!0,get:function(){return jY7[A]}})});Object.keys(JY7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(Pb6,A))Object.defineProperty(Pb6,A,{enumerable:!0,get:function(){return JY7[A]}})})});var DY7=h((TY2,MY7)=>{(()=>{var A={d:(v6,G6)=>{for(var U6 in G6)A.o(G6,U6)&&!A.o(v6,U6)&&Object.defineProperty(v6,U6,{enumerable:!0,get:G6[U6]})},o:(v6,G6)=>Object.prototype.hasOwnProperty.call(v6,G6),r:(v6)=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v6,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v6,"__esModule",{value:!0})}},q={};A.r(q),A.d(q,{XMLBuilder:()=>c6,XMLParser:()=>N6,XMLValidator:()=>L1});let K=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Y=new RegExp("^["+K+"]["+K+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function z(v6,G6){let U6=[],M1=G6.exec(v6);for(;M1;){let O1=[];O1.startIndex=G6.lastIndex-M1[0].length;let _1=M1.length;for(let x1=0;x1<_1;x1++)O1.push(M1[x1]);U6.push(O1),M1=G6.exec(v6)}return U6}let w=function(v6){return Y.exec(v6)!=null},_={allowBooleanAttributes:!1,unpairedTags:[]};function $(v6,G6){G6=Object.assign({},_,G6);let U6=[],M1=!1,O1=!1;v6[0]==="\uFEFF"&&(v6=v6.substr(1));for(let _1=0;_1<v6.length;_1++)if(v6[_1]==="<"&&v6[_1+1]==="?"){if(_1+=2,_1=H(v6,_1),_1.err)return _1}else{if(v6[_1]!=="<"){if(O(v6[_1]))continue;return G("InvalidChar","char '"+v6[_1]+"' is not expected.",f(v6,_1))}{let x1=_1;if(_1++,v6[_1]==="!"){_1=j(v6,_1);continue}{let f1=!1;v6[_1]==="/"&&(f1=!0,_1++);let g1="";for(;_1<v6.length&&v6[_1]!==">"&&v6[_1]!==" "&&v6[_1]!=="\t"&&v6[_1]!==`
`&&v6[_1]!=="\r";_1++)g1+=v6[_1];if(g1=g1.trim(),g1[g1.length-1]==="/"&&(g1=g1.substring(0,g1.length-1),_1--),!w(g1)){let _A;return _A=g1.trim().length===0?"Invalid space after '<'.":"Tag '"+g1+"' is an invalid name.",G("InvalidTag",_A,f(v6,_1))}let j8=D(v6,_1);if(j8===!1)return G("InvalidAttr","Attributes for '"+g1+"' have open quote.",f(v6,_1));let jA=j8.value;if(_1=j8.index,jA[jA.length-1]==="/"){let _A=_1-jA.length;jA=jA.substring(0,jA.length-1);let rA=P(jA,G6);if(rA!==!0)return G(rA.err.code,rA.err.msg,f(v6,_A+rA.err.line));M1=!0}else if(f1){if(!j8.tagClosed)return G("InvalidTag","Closing tag '"+g1+"' doesn't have proper closing.",f(v6,_1));if(jA.trim().length>0)return G("InvalidTag","Closing tag '"+g1+"' can't have attributes or invalid starting.",f(v6,x1));if(U6.length===0)return G("InvalidTag","Closing tag '"+g1+"' has not been opened.",f(v6,x1));{let _A=U6.pop();if(g1!==_A.tagName){let rA=f(v6,_A.tagStartPos);return G("InvalidTag","Expected closing tag '"+_A.tagName+"' (opened in line "+rA.line+", col "+rA.col+") instead of closing tag '"+g1+"'.",f(v6,x1))}U6.length==0&&(O1=!0)}}else{let _A=P(jA,G6);if(_A!==!0)return G(_A.err.code,_A.err.msg,f(v6,_1-jA.length+_A.err.line));if(O1===!0)return G("InvalidXml","Multiple possible root nodes found.",f(v6,_1));G6.unpairedTags.indexOf(g1)!==-1||U6.push({tagName:g1,tagStartPos:x1}),M1=!0}for(_1++;_1<v6.length;_1++)if(v6[_1]==="<"){if(v6[_1+1]==="!"){_1++,_1=j(v6,_1);continue}if(v6[_1+1]!=="?")break;if(_1=H(v6,++_1),_1.err)return _1}else if(v6[_1]==="&"){let _A=W(v6,_1);if(_A==-1)return G("InvalidChar","char '&' is not expected.",f(v6,_1));_1=_A}else if(O1===!0&&!O(v6[_1]))return G("InvalidXml","Extra text at the end",f(v6,_1));v6[_1]==="<"&&_1--}}}return M1?U6.length==1?G("InvalidTag","Unclosed tag '"+U6[0].tagName+"'.",f(v6,U6[0].tagStartPos)):!(U6.length>0)||G("InvalidXml","Invalid '"+JSON.stringify(U6.map((_1)=>_1.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):G("InvalidXml","Start tag expected.",1)}function O(v6){return v6===" "||v6==="\t"||v6===`
`||v6==="\r"}function H(v6,G6){let U6=G6;for(;G6<v6.length;G6++)if(v6[G6]!="?"&&v6[G6]!=" ");else{let M1=v6.substr(U6,G6-U6);if(G6>5&&M1==="xml")return G("InvalidXml","XML declaration allowed only at the start of the document.",f(v6,G6));if(v6[G6]=="?"&&v6[G6+1]==">"){G6++;break}}return G6}function j(v6,G6){if(v6.length>G6+5&&v6[G6+1]==="-"&&v6[G6+2]==="-"){for(G6+=3;G6<v6.length;G6++)if(v6[G6]==="-"&&v6[G6+1]==="-"&&v6[G6+2]===">"){G6+=2;break}}else if(v6.length>G6+8&&v6[G6+1]==="D"&&v6[G6+2]==="O"&&v6[G6+3]==="C"&&v6[G6+4]==="T"&&v6[G6+5]==="Y"&&v6[G6+6]==="P"&&v6[G6+7]==="E"){let U6=1;for(G6+=8;G6<v6.length;G6++)if(v6[G6]==="<")U6++;else if(v6[G6]===">"&&(U6--,U6===0))break}else if(v6.length>G6+9&&v6[G6+1]==="["&&v6[G6+2]==="C"&&v6[G6+3]==="D"&&v6[G6+4]==="A"&&v6[G6+5]==="T"&&v6[G6+6]==="A"&&v6[G6+7]==="["){for(G6+=8;G6<v6.length;G6++)if(v6[G6]==="]"&&v6[G6+1]==="]"&&v6[G6+2]===">"){G6+=2;break}}return G6}let J='"',M="'";function D(v6,G6){let U6="",M1="",O1=!1;for(;G6<v6.length;G6++){if(v6[G6]===J||v6[G6]===M)M1===""?M1=v6[G6]:M1!==v6[G6]||(M1="");else if(v6[G6]===">"&&M1===""){O1=!0;break}U6+=v6[G6]}return M1===""&&{value:U6,index:G6,tagClosed:O1}}let X=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function P(v6,G6){let U6=z(v6,X),M1={};for(let O1=0;O1<U6.length;O1++){if(U6[O1][1].length===0)return G("InvalidAttr","Attribute '"+U6[O1][2]+"' has no space in starting.",v(U6[O1]));if(U6[O1][3]!==void 0&&U6[O1][4]===void 0)return G("InvalidAttr","Attribute '"+U6[O1][2]+"' is without value.",v(U6[O1]));if(U6[O1][3]===void 0&&!G6.allowBooleanAttributes)return G("InvalidAttr","boolean attribute '"+U6[O1][2]+"' is not allowed.",v(U6[O1]));let _1=U6[O1][2];if(!Z(_1))return G("InvalidAttr","Attribute '"+_1+"' is an invalid name.",v(U6[O1]));if(M1.hasOwnProperty(_1))return G("InvalidAttr","Attribute '"+_1+"' is repeated.",v(U6[O1]));M1[_1]=1}return!0}function W(v6,G6){if(v6[++G6]===";")return-1;if(v6[G6]==="#")return function(M1,O1){let _1=/\d/;for(M1[O1]==="x"&&(O1++,_1=/[\da-fA-F]/);O1<M1.length;O1++){if(M1[O1]===";")return O1;if(!M1[O1].match(_1))break}return-1}(v6,++G6);let U6=0;for(;G6<v6.length;G6++,U6++)if(!(v6[G6].match(/\w/)&&U6<20)){if(v6[G6]===";")break;return-1}return G6}function G(v6,G6,U6){return{err:{code:v6,msg:G6,line:U6.line||U6,col:U6.col}}}function Z(v6){return w(v6)}function f(v6,G6){let U6=v6.substring(0,G6).split(/\r?\n/);return{line:U6.length,col:U6[U6.length-1].length+1}}function v(v6){return v6.startIndex+v6[1].length}let V={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(v6,G6){return G6},attributeValueProcessor:function(v6,G6){return G6},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(v6,G6,U6){return v6},captureMetaData:!1},N;N=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class L{constructor(v6){this.tagname=v6,this.child=[],this[":@"]={}}add(v6,G6){v6==="__proto__"&&(v6="#__proto__"),this.child.push({[v6]:G6})}addChild(v6,G6){v6.tagname==="__proto__"&&(v6.tagname="#__proto__"),v6[":@"]&&Object.keys(v6[":@"]).length>0?this.child.push({[v6.tagname]:v6.child,":@":v6[":@"]}):this.child.push({[v6.tagname]:v6.child}),G6!==void 0&&(this.child[this.child.length-1][N]={startIndex:G6})}static getMetaDataSymbol(){return N}}function S(v6,G6){let U6={};if(v6[G6+3]!=="O"||v6[G6+4]!=="C"||v6[G6+5]!=="T"||v6[G6+6]!=="Y"||v6[G6+7]!=="P"||v6[G6+8]!=="E")throw Error("Invalid Tag instead of DOCTYPE");{G6+=9;let M1=1,O1=!1,_1=!1,x1="";for(;G6<v6.length;G6++)if(v6[G6]!=="<"||_1)if(v6[G6]===">"){if(_1?v6[G6-1]==="-"&&v6[G6-2]==="-"&&(_1=!1,M1--):M1--,M1===0)break}else v6[G6]==="["?O1=!0:x1+=v6[G6];else{if(O1&&b(v6,"!ENTITY",G6)){let f1,g1;G6+=7,[f1,g1,G6]=m(v6,G6+1),g1.indexOf("&")===-1&&(U6[f1]={regx:RegExp(`&${f1};`,"g"),val:g1})}else if(O1&&b(v6,"!ELEMENT",G6)){G6+=8;let{index:f1}=g(v6,G6+1);G6=f1}else if(O1&&b(v6,"!ATTLIST",G6))G6+=8;else if(O1&&b(v6,"!NOTATION",G6)){G6+=9;let{index:f1}=x(v6,G6+1);G6=f1}else{if(!b(v6,"!--",G6))throw Error("Invalid DOCTYPE");_1=!0}M1++,x1=""}if(M1!==0)throw Error("Unclosed DOCTYPE")}return{entities:U6,i:G6}}let C=(v6,G6)=>{for(;G6<v6.length&&/\s/.test(v6[G6]);)G6++;return G6};function m(v6,G6){G6=C(v6,G6);let U6="";for(;G6<v6.length&&!/\s/.test(v6[G6])&&v6[G6]!=='"'&&v6[G6]!=="'";)U6+=v6[G6],G6++;if(Q(U6),G6=C(v6,G6),v6.substring(G6,G6+6).toUpperCase()==="SYSTEM")throw Error("External entities are not supported");if(v6[G6]==="%")throw Error("Parameter entities are not supported");let M1="";return[G6,M1]=p(v6,G6,"entity"),[U6,M1,--G6]}function x(v6,G6){G6=C(v6,G6);let U6="";for(;G6<v6.length&&!/\s/.test(v6[G6]);)U6+=v6[G6],G6++;Q(U6),G6=C(v6,G6);let M1=v6.substring(G6,G6+6).toUpperCase();if(M1!=="SYSTEM"&&M1!=="PUBLIC")throw Error(`Expected SYSTEM or PUBLIC, found "${M1}"`);G6+=M1.length,G6=C(v6,G6);let O1=null,_1=null;if(M1==="PUBLIC")[G6,O1]=p(v6,G6,"publicIdentifier"),v6[G6=C(v6,G6)]!=='"'&&v6[G6]!=="'"||([G6,_1]=p(v6,G6,"systemIdentifier"));else if(M1==="SYSTEM"&&([G6,_1]=p(v6,G6,"systemIdentifier"),!_1))throw Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:U6,publicIdentifier:O1,systemIdentifier:_1,index:--G6}}function p(v6,G6,U6){let M1="",O1=v6[G6];if(O1!=='"'&&O1!=="'")throw Error(`Expected quoted string, found "${O1}"`);for(G6++;G6<v6.length&&v6[G6]!==O1;)M1+=v6[G6],G6++;if(v6[G6]!==O1)throw Error(`Unterminated ${U6} value`);return[++G6,M1]}function g(v6,G6){G6=C(v6,G6);let U6="";for(;G6<v6.length&&!/\s/.test(v6[G6]);)U6+=v6[G6],G6++;if(!Q(U6))throw Error(`Invalid element name: "${U6}"`);let M1="";if(v6[G6=C(v6,G6)]==="E"&&b(v6,"MPTY",G6))G6+=4;else if(v6[G6]==="A"&&b(v6,"NY",G6))G6+=2;else{if(v6[G6]!=="(")throw Error(`Invalid Element Expression, found "${v6[G6]}"`);for(G6++;G6<v6.length&&v6[G6]!==")";)M1+=v6[G6],G6++;if(v6[G6]!==")")throw Error("Unterminated content model")}return{elementName:U6,contentModel:M1.trim(),index:G6}}function b(v6,G6,U6){for(let M1=0;M1<G6.length;M1++)if(G6[M1]!==v6[U6+M1+1])return!1;return!0}function Q(v6){if(w(v6))return v6;throw Error(`Invalid entity name ${v6}`)}let c=/^[-+]?0x[a-fA-F0-9]+$/,d=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,A6={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0},e=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function O6(v6){return typeof v6=="function"?v6:Array.isArray(v6)?(G6)=>{for(let U6 of v6){if(typeof U6=="string"&&G6===U6)return!0;if(U6 instanceof RegExp&&U6.test(G6))return!0}}:()=>!1}class P6{constructor(v6){this.options=v6,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(G6,U6)=>String.fromCodePoint(Number.parseInt(U6,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(G6,U6)=>String.fromCodePoint(Number.parseInt(U6,16))}},this.addExternalEntities=f6,this.parseXml=y6,this.parseTextData=a,this.resolveNameSpace=s,this.buildAttributesMap=H6,this.isItStopNode=T6,this.replaceEntitiesValue=z6,this.readStopNodeData=J6,this.saveTextToParentTag=t,this.addChild=V6,this.ignoreAttributesFn=O6(this.options.ignoreAttributes)}}function f6(v6){let G6=Object.keys(v6);for(let U6=0;U6<G6.length;U6++){let M1=G6[U6];this.lastEntities[M1]={regex:new RegExp("&"+M1+";","g"),val:v6[M1]}}}function a(v6,G6,U6,M1,O1,_1,x1){if(v6!==void 0&&(this.options.trimValues&&!M1&&(v6=v6.trim()),v6.length>0)){x1||(v6=this.replaceEntitiesValue(v6));let f1=this.options.tagValueProcessor(G6,v6,U6,O1,_1);return f1==null?v6:typeof f1!=typeof v6||f1!==v6?f1:this.options.trimValues||v6.trim()===v6?w6(v6,this.options.parseTagValue,this.options.numberParseOptions):v6}}function s(v6){if(this.options.removeNSPrefix){let G6=v6.split(":"),U6=v6.charAt(0)==="/"?"/":"";if(G6[0]==="xmlns")return"";G6.length===2&&(v6=U6+G6[1])}return v6}let _6=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function H6(v6,G6,U6){if(this.options.ignoreAttributes!==!0&&typeof v6=="string"){let M1=z(v6,_6),O1=M1.length,_1={};for(let x1=0;x1<O1;x1++){let f1=this.resolveNameSpace(M1[x1][1]);if(this.ignoreAttributesFn(f1,G6))continue;let g1=M1[x1][4],j8=this.options.attributeNamePrefix+f1;if(f1.length)if(this.options.transformAttributeName&&(j8=this.options.transformAttributeName(j8)),j8==="__proto__"&&(j8="#__proto__"),g1!==void 0){this.options.trimValues&&(g1=g1.trim()),g1=this.replaceEntitiesValue(g1);let jA=this.options.attributeValueProcessor(f1,g1,G6);_1[j8]=jA==null?g1:typeof jA!=typeof g1||jA!==g1?jA:w6(g1,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(_1[j8]=!0)}if(!Object.keys(_1).length)return;if(this.options.attributesGroupName){let x1={};return x1[this.options.attributesGroupName]=_1,x1}return _1}}let y6=function(v6){v6=v6.replace(/\r\n?/g,`
`);let G6=new L("!xml"),U6=G6,M1="",O1="";for(let _1=0;_1<v6.length;_1++)if(v6[_1]==="<")if(v6[_1+1]==="/"){let x1=Y6(v6,">",_1,"Closing Tag is not closed."),f1=v6.substring(_1+2,x1).trim();if(this.options.removeNSPrefix){let jA=f1.indexOf(":");jA!==-1&&(f1=f1.substr(jA+1))}this.options.transformTagName&&(f1=this.options.transformTagName(f1)),U6&&(M1=this.saveTextToParentTag(M1,U6,O1));let g1=O1.substring(O1.lastIndexOf(".")+1);if(f1&&this.options.unpairedTags.indexOf(f1)!==-1)throw Error(`Unpaired tag can not be used as closing tag: </${f1}>`);let j8=0;g1&&this.options.unpairedTags.indexOf(g1)!==-1?(j8=O1.lastIndexOf(".",O1.lastIndexOf(".")-1),this.tagsNodeStack.pop()):j8=O1.lastIndexOf("."),O1=O1.substring(0,j8),U6=this.tagsNodeStack.pop(),M1="",_1=x1}else if(v6[_1+1]==="?"){let x1=r(v6,_1,!1,"?>");if(!x1)throw Error("Pi Tag is not closed.");if(M1=this.saveTextToParentTag(M1,U6,O1),this.options.ignoreDeclaration&&x1.tagName==="?xml"||this.options.ignorePiTags);else{let f1=new L(x1.tagName);f1.add(this.options.textNodeName,""),x1.tagName!==x1.tagExp&&x1.attrExpPresent&&(f1[":@"]=this.buildAttributesMap(x1.tagExp,O1,x1.tagName)),this.addChild(U6,f1,O1,_1)}_1=x1.closeIndex+1}else if(v6.substr(_1+1,3)==="!--"){let x1=Y6(v6,"-->",_1+4,"Comment is not closed.");if(this.options.commentPropName){let f1=v6.substring(_1+4,x1-2);M1=this.saveTextToParentTag(M1,U6,O1),U6.add(this.options.commentPropName,[{[this.options.textNodeName]:f1}])}_1=x1}else if(v6.substr(_1+1,2)==="!D"){let x1=S(v6,_1);this.docTypeEntities=x1.entities,_1=x1.i}else if(v6.substr(_1+1,2)==="!["){let x1=Y6(v6,"]]>",_1,"CDATA is not closed.")-2,f1=v6.substring(_1+9,x1);M1=this.saveTextToParentTag(M1,U6,O1);let g1=this.parseTextData(f1,U6.tagname,O1,!0,!1,!0,!0);g1==null&&(g1=""),this.options.cdataPropName?U6.add(this.options.cdataPropName,[{[this.options.textNodeName]:f1}]):U6.add(this.options.textNodeName,g1),_1=x1+2}else{let x1=r(v6,_1,this.options.removeNSPrefix),f1=x1.tagName,g1=x1.rawTagName,j8=x1.tagExp,jA=x1.attrExpPresent,_A=x1.closeIndex;this.options.transformTagName&&(f1=this.options.transformTagName(f1)),U6&&M1&&U6.tagname!=="!xml"&&(M1=this.saveTextToParentTag(M1,U6,O1,!1));let rA=U6;rA&&this.options.unpairedTags.indexOf(rA.tagname)!==-1&&(U6=this.tagsNodeStack.pop(),O1=O1.substring(0,O1.lastIndexOf("."))),f1!==G6.tagname&&(O1+=O1?"."+f1:f1);let h7=_1;if(this.isItStopNode(this.options.stopNodes,O1,f1)){let IA="";if(j8.length>0&&j8.lastIndexOf("/")===j8.length-1)f1[f1.length-1]==="/"?(f1=f1.substr(0,f1.length-1),O1=O1.substr(0,O1.length-1),j8=f1):j8=j8.substr(0,j8.length-1),_1=x1.closeIndex;else if(this.options.unpairedTags.indexOf(f1)!==-1)_1=x1.closeIndex;else{let w4=this.readStopNodeData(v6,g1,_A+1);if(!w4)throw Error(`Unexpected end of ${g1}`);_1=w4.i,IA=w4.tagContent}let N7=new L(f1);f1!==j8&&jA&&(N7[":@"]=this.buildAttributesMap(j8,O1,f1)),IA&&(IA=this.parseTextData(IA,f1,O1,!0,jA,!0,!0)),O1=O1.substr(0,O1.lastIndexOf(".")),N7.add(this.options.textNodeName,IA),this.addChild(U6,N7,O1,h7)}else{if(j8.length>0&&j8.lastIndexOf("/")===j8.length-1){f1[f1.length-1]==="/"?(f1=f1.substr(0,f1.length-1),O1=O1.substr(0,O1.length-1),j8=f1):j8=j8.substr(0,j8.length-1),this.options.transformTagName&&(f1=this.options.transformTagName(f1));let IA=new L(f1);f1!==j8&&jA&&(IA[":@"]=this.buildAttributesMap(j8,O1,f1)),this.addChild(U6,IA,O1,h7),O1=O1.substr(0,O1.lastIndexOf("."))}else{let IA=new L(f1);this.tagsNodeStack.push(U6),f1!==j8&&jA&&(IA[":@"]=this.buildAttributesMap(j8,O1,f1)),this.addChild(U6,IA,O1,h7),U6=IA}M1="",_1=_A}}else M1+=v6[_1];return G6.child};function V6(v6,G6,U6,M1){this.options.captureMetaData||(M1=void 0);let O1=this.options.updateTag(G6.tagname,U6,G6[":@"]);O1===!1||(typeof O1=="string"?(G6.tagname=O1,v6.addChild(G6,M1)):v6.addChild(G6,M1))}let z6=function(v6){if(this.options.processEntities){for(let G6 in this.docTypeEntities){let U6=this.docTypeEntities[G6];v6=v6.replace(U6.regx,U6.val)}for(let G6 in this.lastEntities){let U6=this.lastEntities[G6];v6=v6.replace(U6.regex,U6.val)}if(this.options.htmlEntities)for(let G6 in this.htmlEntities){let U6=this.htmlEntities[G6];v6=v6.replace(U6.regex,U6.val)}v6=v6.replace(this.ampEntity.regex,this.ampEntity.val)}return v6};function t(v6,G6,U6,M1){return v6&&(M1===void 0&&(M1=G6.child.length===0),(v6=this.parseTextData(v6,G6.tagname,U6,!1,!!G6[":@"]&&Object.keys(G6[":@"]).length!==0,M1))!==void 0&&v6!==""&&G6.add(this.options.textNodeName,v6),v6=""),v6}function T6(v6,G6,U6){let M1="*."+U6;for(let O1 in v6){let _1=v6[O1];if(M1===_1||G6===_1)return!0}return!1}function Y6(v6,G6,U6,M1){let O1=v6.indexOf(G6,U6);if(O1===-1)throw Error(M1);return O1+G6.length-1}function r(v6,G6,U6,M1=">"){let O1=function(_A,rA,h7=">"){let IA,N7="";for(let w4=rA;w4<_A.length;w4++){let S4=_A[w4];if(IA)S4===IA&&(IA="");else if(S4==='"'||S4==="'")IA=S4;else if(S4===h7[0]){if(!h7[1])return{data:N7,index:w4};if(_A[w4+1]===h7[1])return{data:N7,index:w4}}else S4==="\t"&&(S4=" ");N7+=S4}}(v6,G6+1,M1);if(!O1)return;let{data:_1,index:x1}=O1,f1=_1.search(/\s/),g1=_1,j8=!0;f1!==-1&&(g1=_1.substring(0,f1),_1=_1.substring(f1+1).trimStart());let jA=g1;if(U6){let _A=g1.indexOf(":");_A!==-1&&(g1=g1.substr(_A+1),j8=g1!==O1.data.substr(_A+1))}return{tagName:g1,tagExp:_1,closeIndex:x1,attrExpPresent:j8,rawTagName:jA}}function J6(v6,G6,U6){let M1=U6,O1=1;for(;U6<v6.length;U6++)if(v6[U6]==="<")if(v6[U6+1]==="/"){let _1=Y6(v6,">",U6,`${G6} is not closed`);if(v6.substring(U6+2,_1).trim()===G6&&(O1--,O1===0))return{tagContent:v6.substring(M1,U6),i:_1};U6=_1}else if(v6[U6+1]==="?")U6=Y6(v6,"?>",U6+1,"StopNode is not closed.");else if(v6.substr(U6+1,3)==="!--")U6=Y6(v6,"-->",U6+3,"StopNode is not closed.");else if(v6.substr(U6+1,2)==="![")U6=Y6(v6,"]]>",U6,"StopNode is not closed.")-2;else{let _1=r(v6,U6,">");_1&&((_1&&_1.tagName)===G6&&_1.tagExp[_1.tagExp.length-1]!=="/"&&O1++,U6=_1.closeIndex)}}function w6(v6,G6,U6){if(G6&&typeof v6=="string"){let M1=v6.trim();return M1==="true"||M1!=="false"&&function(O1,_1={}){if(_1=Object.assign({},A6,_1),!O1||typeof O1!="string")return O1;let x1=O1.trim();if(_1.skipLike!==void 0&&_1.skipLike.test(x1))return O1;if(O1==="0")return 0;if(_1.hex&&c.test(x1))return function(g1){if(parseInt)return parseInt(g1,16);if(Number.parseInt)return Number.parseInt(g1,16);if(window&&window.parseInt)return window.parseInt(g1,16);throw Error("parseInt, Number.parseInt, window.parseInt are not supported")}(x1);if(x1.search(/.+[eE].+/)!==-1)return function(g1,j8,jA){if(!jA.eNotation)return g1;let _A=j8.match(e);if(_A){let rA=_A[1]||"",h7=_A[3].indexOf("e")===-1?"E":"e",IA=_A[2],N7=rA?g1[IA.length+1]===h7:g1[IA.length]===h7;return IA.length>1&&N7?g1:IA.length!==1||!_A[3].startsWith(`.${h7}`)&&_A[3][0]!==h7?jA.leadingZeros&&!N7?(j8=(_A[1]||"")+_A[3],Number(j8)):g1:Number(j8)}return g1}(O1,x1,_1);{let g1=d.exec(x1);if(g1){let j8=g1[1]||"",jA=g1[2],_A=(f1=g1[3])&&f1.indexOf(".")!==-1?((f1=f1.replace(/0+$/,""))==="."?f1="0":f1[0]==="."?f1="0"+f1:f1[f1.length-1]==="."&&(f1=f1.substring(0,f1.length-1)),f1):f1,rA=j8?O1[jA.length+1]===".":O1[jA.length]===".";if(!_1.leadingZeros&&(jA.length>1||jA.length===1&&!rA))return O1;{let h7=Number(x1),IA=String(h7);if(h7===0||h7===-0)return h7;if(IA.search(/[eE]/)!==-1)return _1.eNotation?h7:O1;if(x1.indexOf(".")!==-1)return IA==="0"||IA===_A||IA===`${j8}${_A}`?h7:O1;let N7=jA?_A:x1;return jA?N7===IA||j8+N7===IA?h7:O1:N7===IA||N7===j8+IA?h7:O1}}return O1}var f1}(v6,U6)}return v6!==void 0?v6:""}let j6=L.getMetaDataSymbol();function Z6(v6,G6){return S6(v6,G6)}function S6(v6,G6,U6){let M1,O1={};for(let _1=0;_1<v6.length;_1++){let x1=v6[_1],f1=L6(x1),g1="";if(g1=U6===void 0?f1:U6+"."+f1,f1===G6.textNodeName)M1===void 0?M1=x1[f1]:M1+=""+x1[f1];else{if(f1===void 0)continue;if(x1[f1]){let j8=S6(x1[f1],G6,g1),jA=D6(j8,G6);x1[j6]!==void 0&&(j8[j6]=x1[j6]),x1[":@"]?X6(j8,x1[":@"],g1,G6):Object.keys(j8).length!==1||j8[G6.textNodeName]===void 0||G6.alwaysCreateTextNode?Object.keys(j8).length===0&&(G6.alwaysCreateTextNode?j8[G6.textNodeName]="":j8=""):j8=j8[G6.textNodeName],O1[f1]!==void 0&&O1.hasOwnProperty(f1)?(Array.isArray(O1[f1])||(O1[f1]=[O1[f1]]),O1[f1].push(j8)):G6.isArray(f1,g1,jA)?O1[f1]=[j8]:O1[f1]=j8}}}return typeof M1=="string"?M1.length>0&&(O1[G6.textNodeName]=M1):M1!==void 0&&(O1[G6.textNodeName]=M1),O1}function L6(v6){let G6=Object.keys(v6);for(let U6=0;U6<G6.length;U6++){let M1=G6[U6];if(M1!==":@")return M1}}function X6(v6,G6,U6,M1){if(G6){let O1=Object.keys(G6),_1=O1.length;for(let x1=0;x1<_1;x1++){let f1=O1[x1];M1.isArray(f1,U6+"."+f1,!0,!0)?v6[f1]=[G6[f1]]:v6[f1]=G6[f1]}}}function D6(v6,G6){let{textNodeName:U6}=G6,M1=Object.keys(v6).length;return M1===0||!(M1!==1||!v6[U6]&&typeof v6[U6]!="boolean"&&v6[U6]!==0)}class N6{constructor(v6){this.externalEntities={},this.options=function(G6){return Object.assign({},V,G6)}(v6)}parse(v6,G6){if(typeof v6=="string");else{if(!v6.toString)throw Error("XML data is accepted in String or Bytes[] form.");v6=v6.toString()}if(G6){G6===!0&&(G6={});let O1=$(v6,G6);if(O1!==!0)throw Error(`${O1.err.msg}:${O1.err.line}:${O1.err.col}`)}let U6=new P6(this.options);U6.addExternalEntities(this.externalEntities);let M1=U6.parseXml(v6);return this.options.preserveOrder||M1===void 0?M1:Z6(M1,this.options)}addEntity(v6,G6){if(G6.indexOf("&")!==-1)throw Error("Entity value can't have '&'");if(v6.indexOf("&")!==-1||v6.indexOf(";")!==-1)throw Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(G6==="&")throw Error("An entity with value '&' is not permitted");this.externalEntities[v6]=G6}static getMetaDataSymbol(){return L.getMetaDataSymbol()}}function R6(v6,G6){let U6="";return G6.format&&G6.indentBy.length>0&&(U6=`
`),C6(v6,G6,"",U6)}function C6(v6,G6,U6,M1){let O1="",_1=!1;for(let x1=0;x1<v6.length;x1++){let f1=v6[x1],g1=B6(f1);if(g1===void 0)continue;let j8="";if(j8=U6.length===0?g1:`${U6}.${g1}`,g1===G6.textNodeName){let h7=f1[g1];Q6(j8,G6)||(h7=G6.tagValueProcessor(g1,h7),h7=A1(h7,G6)),_1&&(O1+=M1),O1+=h7,_1=!1;continue}if(g1===G6.cdataPropName){_1&&(O1+=M1),O1+=`<![CDATA[${f1[g1][0][G6.textNodeName]}]]>`,_1=!1;continue}if(g1===G6.commentPropName){O1+=M1+`<!--${f1[g1][0][G6.textNodeName]}-->`,_1=!0;continue}if(g1[0]==="?"){let h7=m6(f1[":@"],G6),IA=g1==="?xml"?"":M1,N7=f1[g1][0][G6.textNodeName];N7=N7.length!==0?" "+N7:"",O1+=IA+`<${g1}${N7}${h7}?>`,_1=!0;continue}let jA=M1;jA!==""&&(jA+=G6.indentBy);let _A=M1+`<${g1}${m6(f1[":@"],G6)}`,rA=C6(f1[g1],G6,j8,jA);G6.unpairedTags.indexOf(g1)!==-1?G6.suppressUnpairedNode?O1+=_A+">":O1+=_A+"/>":rA&&rA.length!==0||!G6.suppressEmptyNode?rA&&rA.endsWith(">")?O1+=_A+`>${rA}${M1}</${g1}>`:(O1+=_A+">",rA&&M1!==""&&(rA.includes("/>")||rA.includes("</"))?O1+=M1+G6.indentBy+rA+M1:O1+=rA,O1+=`</${g1}>`):O1+=_A+"/>",_1=!0}return O1}function B6(v6){let G6=Object.keys(v6);for(let U6=0;U6<G6.length;U6++){let M1=G6[U6];if(v6.hasOwnProperty(M1)&&M1!==":@")return M1}}function m6(v6,G6){let U6="";if(v6&&!G6.ignoreAttributes)for(let M1 in v6){if(!v6.hasOwnProperty(M1))continue;let O1=G6.attributeValueProcessor(M1,v6[M1]);O1=A1(O1,G6),O1===!0&&G6.suppressBooleanAttributes?U6+=` ${M1.substr(G6.attributeNamePrefix.length)}`:U6+=` ${M1.substr(G6.attributeNamePrefix.length)}="${O1}"`}return U6}function Q6(v6,G6){let U6=(v6=v6.substr(0,v6.length-G6.textNodeName.length-1)).substr(v6.lastIndexOf(".")+1);for(let M1 in G6.stopNodes)if(G6.stopNodes[M1]===v6||G6.stopNodes[M1]==="*."+U6)return!0;return!1}function A1(v6,G6){if(v6&&v6.length>0&&G6.processEntities)for(let U6=0;U6<G6.entities.length;U6++){let M1=G6.entities[U6];v6=v6.replace(M1.regex,M1.val)}return v6}let I6={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:"  ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(v6,G6){return G6},attributeValueProcessor:function(v6,G6){return G6},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function c6(v6){this.options=Object.assign({},I6,v6),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=O6(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=N1),this.processTextOrObjNode=J1,this.options.format?(this.indentate=W1,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function J1(v6,G6,U6,M1){let O1=this.j2x(v6,U6+1,M1.concat(G6));return v6[this.options.textNodeName]!==void 0&&Object.keys(v6).length===1?this.buildTextValNode(v6[this.options.textNodeName],G6,O1.attrStr,U6):this.buildObjectNode(O1.val,G6,O1.attrStr,U6)}function W1(v6){return this.options.indentBy.repeat(v6)}function N1(v6){return!(!v6.startsWith(this.options.attributeNamePrefix)||v6===this.options.textNodeName)&&v6.substr(this.attrPrefixLen)}c6.prototype.build=function(v6){return this.options.preserveOrder?R6(v6,this.options):(Array.isArray(v6)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(v6={[this.options.arrayNodeName]:v6}),this.j2x(v6,0,[]).val)},c6.prototype.j2x=function(v6,G6,U6){let M1="",O1="",_1=U6.join(".");for(let x1 in v6)if(Object.prototype.hasOwnProperty.call(v6,x1))if(v6[x1]===void 0)this.isAttribute(x1)&&(O1+="");else if(v6[x1]===null)this.isAttribute(x1)||x1===this.options.cdataPropName?O1+="":x1[0]==="?"?O1+=this.indentate(G6)+"<"+x1+"?"+this.tagEndChar:O1+=this.indentate(G6)+"<"+x1+"/"+this.tagEndChar;else if(v6[x1]instanceof Date)O1+=this.buildTextValNode(v6[x1],x1,"",G6);else if(typeof v6[x1]!="object"){let f1=this.isAttribute(x1);if(f1&&!this.ignoreAttributesFn(f1,_1))M1+=this.buildAttrPairStr(f1,""+v6[x1]);else if(!f1)if(x1===this.options.textNodeName){let g1=this.options.tagValueProcessor(x1,""+v6[x1]);O1+=this.replaceEntitiesValue(g1)}else O1+=this.buildTextValNode(v6[x1],x1,"",G6)}else if(Array.isArray(v6[x1])){let f1=v6[x1].length,g1="",j8="";for(let jA=0;jA<f1;jA++){let _A=v6[x1][jA];if(_A===void 0);else if(_A===null)x1[0]==="?"?O1+=this.indentate(G6)+"<"+x1+"?"+this.tagEndChar:O1+=this.indentate(G6)+"<"+x1+"/"+this.tagEndChar;else if(typeof _A=="object")if(this.options.oneListGroup){let rA=this.j2x(_A,G6+1,U6.concat(x1));g1+=rA.val,this.options.attributesGroupName&&_A.hasOwnProperty(this.options.attributesGroupName)&&(j8+=rA.attrStr)}else g1+=this.processTextOrObjNode(_A,x1,G6,U6);else if(this.options.oneListGroup){let rA=this.options.tagValueProcessor(x1,_A);rA=this.replaceEntitiesValue(rA),g1+=rA}else g1+=this.buildTextValNode(_A,x1,"",G6)}this.options.oneListGroup&&(g1=this.buildObjectNode(g1,x1,j8,G6)),O1+=g1}else if(this.options.attributesGroupName&&x1===this.options.attributesGroupName){let f1=Object.keys(v6[x1]),g1=f1.length;for(let j8=0;j8<g1;j8++)M1+=this.buildAttrPairStr(f1[j8],""+v6[x1][f1[j8]])}else O1+=this.processTextOrObjNode(v6[x1],x1,G6,U6);return{attrStr:M1,val:O1}},c6.prototype.buildAttrPairStr=function(v6,G6){return G6=this.options.attributeValueProcessor(v6,""+G6),G6=this.replaceEntitiesValue(G6),this.options.suppressBooleanAttributes&&G6==="true"?" "+v6:" "+v6+'="'+G6+'"'},c6.prototype.buildObjectNode=function(v6,G6,U6,M1){if(v6==="")return G6[0]==="?"?this.indentate(M1)+"<"+G6+U6+"?"+this.tagEndChar:this.indentate(M1)+"<"+G6+U6+this.closeTag(G6)+this.tagEndChar;{let O1="</"+G6+this.tagEndChar,_1="";return G6[0]==="?"&&(_1="?",O1=""),!U6&&U6!==""||v6.indexOf("<")!==-1?this.options.commentPropName!==!1&&G6===this.options.commentPropName&&_1.length===0?this.indentate(M1)+`<!--${v6}-->`+this.newLine:this.indentate(M1)+"<"+G6+U6+_1+this.tagEndChar+v6+this.indentate(M1)+O1:this.indentate(M1)+"<"+G6+U6+_1+">"+v6+O1}},c6.prototype.closeTag=function(v6){let G6="";return this.options.unpairedTags.indexOf(v6)!==-1?this.options.suppressUnpairedNode||(G6="/"):G6=this.options.suppressEmptyNode?"/":`></${v6}`,G6},c6.prototype.buildTextValNode=function(v6,G6,U6,M1){if(this.options.cdataPropName!==!1&&G6===this.options.cdataPropName)return this.indentate(M1)+`<![CDATA[${v6}]]>`+this.newLine;if(this.options.commentPropName!==!1&&G6===this.options.commentPropName)return this.indentate(M1)+`<!--${v6}-->`+this.newLine;if(G6[0]==="?")return this.indentate(M1)+"<"+G6+U6+"?"+this.tagEndChar;{let O1=this.options.tagValueProcessor(G6,v6);return O1=this.replaceEntitiesValue(O1),O1===""?this.indentate(M1)+"<"+G6+U6+this.closeTag(G6)+this.tagEndChar:this.indentate(M1)+"<"+G6+U6+">"+O1+"</"+G6+this.tagEndChar}},c6.prototype.replaceEntitiesValue=function(v6){if(v6&&v6.length>0&&this.options.processEntities)for(let G6=0;G6<this.options.entities.length;G6++){let U6=this.options.entities[G6];v6=v6.replace(U6.regex,U6.val)}return v6};let L1={validate:$};MY7.exports=q})()});var PY7=h((XY7)=>{Object.defineProperty(XY7,"__esModule",{value:!0});XY7.parseXML=yF3;var LF3=DY7(),FK8=new LF3.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(A,q)=>q.trim()===""&&q.includes(`
`)?"":void 0});FK8.addEntity("#xD","\r");FK8.addEntity("#10",`
`);function yF3(A){return FK8.parse(A,!0)}});var UK8=h((WY7)=>{var SF3=PY7();function hF3(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function CF3(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#x0D;").replace(/\n/g,"&#x0A;").replace(/\u0085/g,"&#x85;").replace(/\u2028/,"&#x2028;")}class QK8{value;constructor(A){this.value=A}toString(){return CF3(""+this.value)}}class Wb6{name;children;attributes={};static of(A,q,K){let Y=new Wb6(A);if(q!==void 0)Y.addChildNode(new QK8(q));if(K!==void 0)Y.withName(K);return Y}constructor(A,q=[]){this.name=A,this.children=q}withName(A){return this.name=A,this}addAttribute(A,q){return this.attributes[A]=q,this}addChildNode(A){return this.children.push(A),this}removeAttribute(A){return delete this.attributes[A],this}n(A){return this.name=A,this}c(A){return this.children.push(A),this}a(A,q){if(q!=null)this.attributes[A]=q;return this}cc(A,q,K=q){if(A[q]!=null){let Y=Wb6.of(q,A[q]).withName(K);this.c(Y)}}l(A,q,K,Y){if(A[q]!=null)Y().map((w)=>{w.withName(K),this.c(w)})}lc(A,q,K,Y){if(A[q]!=null){let z=Y(),w=new Wb6(K);z.map((_)=>{w.c(_)}),this.c(w)}}toString(){let A=Boolean(this.children.length),q=`<${this.name}`,K=this.attributes;for(let Y of Object.keys(K)){let z=K[Y];if(z!=null)q+=` ${Y}="${hF3(""+z)}"`}return q+=!A?"/>":`>${this.children.map((Y)=>Y.toString()).join("")}</${this.name}>`}}Object.defineProperty(WY7,"parseXML",{enumerable:!0,get:function(){return SF3.parseXML}});WY7.XmlNode=Wb6;WY7.XmlText=QK8});var o_=h((AQ3)=>{var cK8=bY1(),Fs=Ew(),GY7=MM(),bF3=mv(),ZY7=Cq8(),fY7=SK8(),Y2=RO(),Rd=mK8(),P0=Fv(),IX=pv(),Zb6=pK8(),LY7=K2(),Uy=UK8(),dK8={warningEmitted:!1},uF3=(A)=>{if(A&&!dK8.warningEmitted&&parseInt(A.substring(1,A.indexOf(".")))<18)dK8.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
no longer support Node.js 16.x on January 6, 2025.

To continue receiving updates to AWS services, bug fixes, and security
updates please upgrade to a supported Node.js LTS version.

More information can be found at: https://a.co/74kJMmI`)};function mF3(A,q,K){if(!A.$source)A.$source={};return A.$source[q]=K,A}function BF3(A,q,K){if(!A.__aws_sdk_context)A.__aws_sdk_context={features:{}};else if(!A.__aws_sdk_context.features)A.__aws_sdk_context.features={};A.__aws_sdk_context.features[q]=K}function gF3(A,q,K){if(!A.$source)A.$source={};return A.$source[q]=K,A}var TY7=(A)=>cK8.HttpResponse.isInstance(A)?A.headers?.date??A.headers?.Date:void 0,lK8=(A)=>new Date(Date.now()+A),pF3=(A,q)=>Math.abs(lK8(q).getTime()-A)>=300000,vY7=(A,q)=>{let K=Date.parse(A);if(pF3(K,q))return K-Date.now();return q},Gb6=(A,q)=>{if(!q)throw Error(`Property \`${A}\` is not resolved for AWS SDK SigV4Auth`);return q},iK8=async(A)=>{let q=Gb6("context",A.context),K=Gb6("config",A.config),Y=q.endpointV2?.properties?.authSchemes?.[0],w=await Gb6("signer",K.signer)(Y),_=A?.signingRegion,$=A?.signingRegionSet,O=A?.signingName;return{config:K,signer:w,signingRegion:_,signingRegionSet:$,signingName:O}};class Kz1{async sign(A,q,K){if(!cK8.HttpRequest.isInstance(A))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let Y=await iK8(K),{config:z,signer:w}=Y,{signingRegion:_,signingName:$}=Y,O=K.context;if(O?.authSchemes?.length??!1){let[j,J]=O.authSchemes;if(j?.name==="sigv4a"&&J?.name==="sigv4")_=J?.signingRegion??_,$=J?.signingName??$}return await w.sign(A,{signingDate:lK8(z.systemClockOffset),signingRegion:_,signingService:$})}errorHandler(A){return(q)=>{let K=q.ServerTime??TY7(q.$response);if(K){let Y=Gb6("config",A.config),z=Y.systemClockOffset;if(Y.systemClockOffset=vY7(K,Y.systemClockOffset),Y.systemClockOffset!==z&&q.$metadata)q.$metadata.clockSkewCorrected=!0}throw q}}successHandler(A,q){let K=TY7(A);if(K){let Y=Gb6("config",q.config);Y.systemClockOffset=vY7(K,Y.systemClockOffset)}}}var FF3=Kz1;class yY7 extends Kz1{async sign(A,q,K){if(!cK8.HttpRequest.isInstance(A))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:Y,signer:z,signingRegion:w,signingRegionSet:_,signingName:$}=await iK8(K),H=(await Y.sigv4aSigningRegionSet?.()??_??[w]).join(",");return await z.sign(A,{signingDate:lK8(Y.systemClockOffset),signingRegion:H,signingService:$})}}var VY7=(A)=>typeof A==="string"&&A.length>0?A.split(",").map((q)=>q.trim()):[],RY7=(A)=>`AWS_BEARER_TOKEN_${A.replace(/[\s-]/g,"_").toUpperCase()}`,NY7="AWS_AUTH_SCHEME_PREFERENCE",kY7="auth_scheme_preference",QF3={environmentVariableSelector:(A,q)=>{if(q?.signingName){if(RY7(q.signingName)in A)return["httpBearerAuth"]}if(!(NY7 in A))return;return VY7(A[NY7])},configFileSelector:(A)=>{if(!(kY7 in A))return;return VY7(A[kY7])},default:[]},UF3=(A)=>{return A.sigv4aSigningRegionSet=Fs.normalizeProvider(A.sigv4aSigningRegionSet),A},dF3={environmentVariableSelector(A){if(A.AWS_SIGV4A_SIGNING_REGION_SET)return A.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((q)=>q.trim());throw new GY7.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(A){if(A.sigv4a_signing_region_set)return(A.sigv4a_signing_region_set??"").split(",").map((q)=>q.trim());throw new GY7.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},SY7=(A)=>{let q=A.credentials,K=!!A.credentials,Y=void 0;Object.defineProperty(A,"credentials",{set(H){if(H&&H!==q&&H!==Y)K=!0;q=H;let j=lF3(A,{credentials:q,credentialDefaultProvider:A.credentialDefaultProvider}),J=iF3(A,j);if(K&&!J.attributed)Y=async(M)=>J(M).then((D)=>bF3.setCredentialFeature(D,"CREDENTIALS_CODE","e")),Y.memoized=J.memoized,Y.configBound=J.configBound,Y.attributed=!0;else Y=J},get(){return Y},enumerable:!0,configurable:!0}),A.credentials=q;let{signingEscapePath:z=!0,systemClockOffset:w=A.systemClockOffset||0,sha256:_}=A,$;if(A.signer)$=Fs.normalizeProvider(A.signer);else if(A.regionInfoProvider)$=()=>Fs.normalizeProvider(A.region)().then(async(H)=>[await A.regionInfoProvider(H,{useFipsEndpoint:await A.useFipsEndpoint(),useDualstackEndpoint:await A.useDualstackEndpoint()})||{},H]).then(([H,j])=>{let{signingRegion:J,signingService:M}=H;A.signingRegion=A.signingRegion||J||j,A.signingName=A.signingName||M||A.serviceId;let D={...A,credentials:A.credentials,region:A.signingRegion,service:A.signingName,sha256:_,uriEscapePath:z};return new(A.signerConstructor||ZY7.SignatureV4)(D)});else $=async(H)=>{H=Object.assign({},{name:"sigv4",signingName:A.signingName||A.defaultSigningName,signingRegion:await Fs.normalizeProvider(A.region)(),properties:{}},H);let{signingRegion:j,signingName:J}=H;A.signingRegion=A.signingRegion||j,A.signingName=A.signingName||J||A.serviceId;let M={...A,credentials:A.credentials,region:A.signingRegion,service:A.signingName,sha256:_,uriEscapePath:z};return new(A.signerConstructor||ZY7.SignatureV4)(M)};return Object.assign(A,{systemClockOffset:w,signingEscapePath:z,signer:$})},cF3=SY7;function lF3(A,{credentials:q,credentialDefaultProvider:K}){let Y;if(q)if(!q?.memoized)Y=Fs.memoizeIdentityProvider(q,Fs.isIdentityExpired,Fs.doesIdentityRequireRefresh);else Y=q;else if(K)Y=Fs.normalizeProvider(K(Object.assign({},A,{parentClientConfig:A})));else Y=async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")};return Y.memoized=!0,Y}function iF3(A,q){if(q.configBound)return q;let K=async(Y)=>q({...Y,callerClientConfig:A});return K.memoized=q.memoized,K.configBound=!0,K}class tD6{queryCompat;constructor(A=!1){this.queryCompat=A}resolveRestContentType(A,q){let K=q.getMemberSchemas(),Y=Object.values(K).find((z)=>{return!!z.getMergedTraits().httpPayload});if(Y){let z=Y.getMergedTraits().mediaType;if(z)return z;else if(Y.isStringSchema())return"text/plain";else if(Y.isBlobSchema())return"application/octet-stream";else return A}else if(!q.isUnitSchema()){if(Object.values(K).find((w)=>{let{httpQuery:_,httpQueryParams:$,httpHeader:O,httpLabel:H,httpPrefixHeaders:j}=w.getMergedTraits();return!_&&!$&&!O&&!H&&j===void 0}))return A}}async getErrorSchemaOrThrowBaseException(A,q,K,Y,z,w){let _=q,$=A;if(A.includes("#"))[_,$]=A.split("#");let O={$metadata:z,$fault:K.statusCode<500?"client":"server"},H=Y2.TypeRegistry.for(_);try{return{errorSchema:w?.(H,$)??H.getSchema(A),errorMetadata:O}}catch(j){Y.message=Y.message??Y.Message??"UnknownError";let J=Y2.TypeRegistry.for("smithy.ts.sdk.synthetic."+_),M=J.getBaseException();if(M){let D=J.getErrorCtor(M)??Error;throw this.decorateServiceException(Object.assign(new D({name:$}),O),Y)}throw this.decorateServiceException(Object.assign(Error($),O),Y)}}decorateServiceException(A,q={}){if(this.queryCompat){let K=A.Message??q.Message,Y=Rd.decorateServiceException(A,q);if(K)Y.Message=K,Y.message=K;return Y}return Rd.decorateServiceException(A,q)}setQueryCompatError(A,q){let K=q.headers?.["x-amzn-query-error"];if(A!==void 0&&K!=null){let[Y,z]=K.split(";"),w=Object.entries(A),_={Code:Y,Type:z};Object.assign(A,_);for(let[$,O]of w)_[$]=O;delete _.__type,A.Error=_}}queryCompatOutput(A,q){if(A.Error)q.Error=A.Error;if(A.Type)q.Type=A.Type;if(A.Code)q.Code=A.Code}}class hY7 extends fY7.SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace:A,awsQueryCompatible:q}){super({defaultNamespace:A});this.awsQueryCompatible=!!q,this.mixin=new tD6(this.awsQueryCompatible)}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K);if(this.awsQueryCompatible)Y.headers["x-amzn-query-mode"]="true";return Y}async handleError(A,q,K,Y,z){if(this.awsQueryCompatible)this.mixin.setQueryCompatError(Y,K);let w=fY7.loadSmithyRpcV2CborErrorCode(K,Y)??"Unknown",{errorSchema:_,errorMetadata:$}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,Y,z),O=Y2.NormalizedSchema.of(_),H=Y.message??Y.Message??"Unknown",J=new(Y2.TypeRegistry.for(_[1]).getErrorCtor(_)??Error)(H),M={};for(let[D,X]of O.structIterator())M[D]=this.deserializer.readValue(X,Y[D]);if(this.awsQueryCompatible)this.mixin.queryCompatOutput(Y,M);throw this.mixin.decorateServiceException(Object.assign(J,$,{$fault:O.getMergedTraits().error,message:H},M),Y)}}var nF3=(A)=>{if(A==null)return A;if(typeof A==="number"||typeof A==="bigint"){let q=Error(`Received number ${A} where a string was expected.`);return q.name="Warning",console.warn(q),String(A)}if(typeof A==="boolean"){let q=Error(`Received boolean ${A} where a string was expected.`);return q.name="Warning",console.warn(q),String(A)}return A},rF3=(A)=>{if(A==null)return A;if(typeof A==="string"){let q=A.toLowerCase();if(A!==""&&q!=="false"&&q!=="true"){let K=Error(`Received string "${A}" where a boolean was expected.`);K.name="Warning",console.warn(K)}return A!==""&&q!=="false"}return A},oF3=(A)=>{if(A==null)return A;if(typeof A==="string"){let q=Number(A);if(q.toString()!==A){let K=Error(`Received string "${A}" where a number was expected.`);return K.name="Warning",console.warn(K),A}return q}return A};class Qs{serdeContext;setSerdeContext(A){this.serdeContext=A}}function aF3(A,q,K){if(K?.source){let Y=K.source;if(typeof q==="number"){if(q>Number.MAX_SAFE_INTEGER||q<Number.MIN_SAFE_INTEGER||Y!==String(q))if(Y.includes("."))return new IX.NumericValue(Y,"bigDecimal");else return BigInt(Y)}}return q}var CY7=(A,q)=>Rd.collectBody(A,q).then((K)=>(q?.utf8Encoder??LY7.toUtf8)(K)),nK8=(A,q)=>CY7(A,q).then((K)=>{if(K.length)try{return JSON.parse(K)}catch(Y){if(Y?.name==="SyntaxError")Object.defineProperty(Y,"$responseBodyText",{value:K});throw Y}return{}}),sF3=async(A,q)=>{let K=await nK8(A,q);return K.message=K.message??K.Message,K},rK8=(A,q)=>{let K=(w,_)=>Object.keys(w).find(($)=>$.toLowerCase()===_.toLowerCase()),Y=(w)=>{let _=w;if(typeof _==="number")_=_.toString();if(_.indexOf(",")>=0)_=_.split(",")[0];if(_.indexOf(":")>=0)_=_.split(":")[0];if(_.indexOf("#")>=0)_=_.split("#")[1];return _},z=K(A.headers,"x-amzn-errortype");if(z!==void 0)return Y(A.headers[z]);if(q&&typeof q==="object"){let w=K(q,"code");if(w&&q[w]!==void 0)return Y(q[w]);if(q.__type!==void 0)return Y(q.__type)}};class oK8 extends Qs{settings;constructor(A){super();this.settings=A}async read(A,q){return this._read(A,typeof q==="string"?JSON.parse(q,aF3):await nK8(q,this.serdeContext))}readObject(A,q){return this._read(A,q)}_read(A,q){let K=q!==null&&typeof q==="object",Y=Y2.NormalizedSchema.of(A);if(Y.isListSchema()&&Array.isArray(q)){let w=Y.getValueSchema(),_=[],$=!!Y.getMergedTraits().sparse;for(let O of q)if($||O!=null)_.push(this._read(w,O));return _}else if(Y.isMapSchema()&&K){let w=Y.getValueSchema(),_={},$=!!Y.getMergedTraits().sparse;for(let[O,H]of Object.entries(q))if($||H!=null)_[O]=this._read(w,H);return _}else if(Y.isStructSchema()&&K){let w={};for(let[_,$]of Y.structIterator()){let O=this.settings.jsonName?$.getMergedTraits().jsonName??_:_,H=this._read($,q[O]);if(H!=null)w[_]=H}return w}if(Y.isBlobSchema()&&typeof q==="string")return Zb6.fromBase64(q);let z=Y.getMergedTraits().mediaType;if(Y.isStringSchema()&&typeof q==="string"&&z){if(z==="application/json"||z.endsWith("+json"))return IX.LazyJsonString.from(q)}if(Y.isTimestampSchema()&&q!=null)switch(P0.determineTimestampFormat(Y,this.settings)){case 5:return IX.parseRfc3339DateTimeWithOffset(q);case 6:return IX.parseRfc7231DateTime(q);case 7:return IX.parseEpochTimestamp(q);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",q),new Date(q)}if(Y.isBigIntegerSchema()&&(typeof q==="number"||typeof q==="string"))return BigInt(q);if(Y.isBigDecimalSchema()&&q!=null){if(q instanceof IX.NumericValue)return q;let w=q;if(w.type==="bigDecimal"&&"string"in w)return new IX.NumericValue(w.string,w.type);return new IX.NumericValue(String(q),"bigDecimal")}if(Y.isNumericSchema()&&typeof q==="string")switch(q){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}if(Y.isDocumentSchema())if(K){let w=Array.isArray(q)?[]:{};for(let[_,$]of Object.entries(q))if($ instanceof IX.NumericValue)w[_]=$;else w[_]=this._read(Y,$);return w}else return structuredClone(q);return q}}var EY7=String.fromCharCode(925);class IY7{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(A,q)=>{if(q instanceof IX.NumericValue){let K=`${EY7+"nv"+this.counter++}_`+q.string;return this.values.set(`"${K}"`,q.string),K}if(typeof q==="bigint"){let K=q.toString(),Y=`${EY7+"b"+this.counter++}_`+K;return this.values.set(`"${Y}"`,K),Y}return q}}replaceInJson(A){if(this.stage===0)throw Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return A;for(let[q,K]of this.values)A=A.replace(q,K);return A}}class aK8 extends Qs{settings;buffer;rootSchema;constructor(A){super();this.settings=A}write(A,q){this.rootSchema=Y2.NormalizedSchema.of(A),this.buffer=this._write(this.rootSchema,q)}writeDiscriminatedDocument(A,q){if(this.write(A,q),typeof this.buffer==="object")this.buffer.__type=Y2.NormalizedSchema.of(A).getName(!0)}flush(){let{rootSchema:A}=this;if(this.rootSchema=void 0,A?.isStructSchema()||A?.isDocumentSchema()){let q=new IY7;return q.replaceInJson(JSON.stringify(this.buffer,q.createReplacer(),0))}return this.buffer}_write(A,q,K){let Y=q!==null&&typeof q==="object",z=Y2.NormalizedSchema.of(A);if(z.isListSchema()&&Array.isArray(q)){let w=z.getValueSchema(),_=[],$=!!z.getMergedTraits().sparse;for(let O of q)if($||O!=null)_.push(this._write(w,O));return _}else if(z.isMapSchema()&&Y){let w=z.getValueSchema(),_={},$=!!z.getMergedTraits().sparse;for(let[O,H]of Object.entries(q))if($||H!=null)_[O]=this._write(w,H);return _}else if(z.isStructSchema()&&Y){let w={};for(let[_,$]of z.structIterator()){let O=this.settings.jsonName?$.getMergedTraits().jsonName??_:_,H=this._write($,q[_],z);if(H!==void 0)w[O]=H}return w}if(q===null&&K?.isStructSchema())return;if(z.isBlobSchema()&&(q instanceof Uint8Array||typeof q==="string")||z.isDocumentSchema()&&q instanceof Uint8Array){if(z===this.rootSchema)return q;return(this.serdeContext?.base64Encoder??Zb6.toBase64)(q)}if((z.isTimestampSchema()||z.isDocumentSchema())&&q instanceof Date)switch(P0.determineTimestampFormat(z,this.settings)){case 5:return q.toISOString().replace(".000Z","Z");case 6:return IX.dateToUtcString(q);case 7:return q.getTime()/1000;default:return console.warn("Missing timestamp format, using epoch seconds",q),q.getTime()/1000}if(z.isNumericSchema()&&typeof q==="number"){if(Math.abs(q)===1/0||isNaN(q))return String(q)}if(z.isStringSchema()){if(typeof q>"u"&&z.isIdempotencyToken())return IX.generateIdempotencyToken();let w=z.getMergedTraits().mediaType;if(q!=null&&w){if(w==="application/json"||w.endsWith("+json"))return IX.LazyJsonString.from(q)}}if(z.isDocumentSchema())if(Y){let w=Array.isArray(q)?[]:{};for(let[_,$]of Object.entries(q))if($ instanceof IX.NumericValue)w[_]=$;else w[_]=this._write(z,$);return w}else return structuredClone(q);return q}}class Yz1 extends Qs{settings;constructor(A){super();this.settings=A}createSerializer(){let A=new aK8(this.settings);return A.setSerdeContext(this.serdeContext),A}createDeserializer(){let A=new oK8(this.settings);return A.setSerdeContext(this.serdeContext),A}}class zz1 extends P0.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K}){super({defaultNamespace:A});this.serviceTarget=q,this.codec=new Yz1({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!K,this.mixin=new tD6(this.awsQueryCompatible)}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K);if(!Y.path.endsWith("/"))Y.path+="/";if(Object.assign(Y.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${A.name}`}),this.awsQueryCompatible)Y.headers["x-amzn-query-mode"]="true";if(Y2.deref(A.input)==="unit"||!Y.body)Y.body="{}";return Y}getPayloadCodec(){return this.codec}async handleError(A,q,K,Y,z){if(this.awsQueryCompatible)this.mixin.setQueryCompatError(Y,K);let w=rK8(K,Y)??"Unknown",{errorSchema:_,errorMetadata:$}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,Y,z),O=Y2.NormalizedSchema.of(_),H=Y.message??Y.Message??"Unknown",J=new(Y2.TypeRegistry.for(_[1]).getErrorCtor(_)??Error)(H),M={};for(let[D,X]of O.structIterator()){let P=X.getMergedTraits().jsonName??D;M[D]=this.codec.createDeserializer().readObject(X,Y[P])}if(this.awsQueryCompatible)this.mixin.queryCompatOutput(Y,M);throw this.mixin.decorateServiceException(Object.assign(J,$,{$fault:O.getMergedTraits().error,message:H},M),Y)}}class xY7 extends zz1{constructor({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K}){super({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class bY7 extends zz1{constructor({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K}){super({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class uY7 extends P0.HttpBindingProtocol{serializer;deserializer;codec;mixin=new tD6;constructor({defaultNamespace:A}){super({defaultNamespace:A});let q={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new Yz1(q),this.serializer=new P0.HttpInterceptingShapeSerializer(this.codec.createSerializer(),q),this.deserializer=new P0.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),q)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(A){this.codec.setSerdeContext(A),super.setSerdeContext(A)}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K),z=Y2.NormalizedSchema.of(A.input);if(!Y.headers["content-type"]){let w=this.mixin.resolveRestContentType(this.getDefaultContentType(),z);if(w)Y.headers["content-type"]=w}if(Y.body==null&&Y.headers["content-type"]===this.getDefaultContentType())Y.body="{}";return Y}async deserializeResponse(A,q,K){let Y=await super.deserializeResponse(A,q,K),z=Y2.NormalizedSchema.of(A.output);for(let[w,_]of z.structIterator())if(_.getMemberTraits().httpPayload&&!(w in Y))Y[w]=null;return Y}async handleError(A,q,K,Y,z){let w=rK8(K,Y)??"Unknown",{errorSchema:_,errorMetadata:$}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,Y,z),O=Y2.NormalizedSchema.of(_),H=Y.message??Y.Message??"Unknown",J=new(Y2.TypeRegistry.for(_[1]).getErrorCtor(_)??Error)(H);await this.deserializeHttpMessage(_,q,K,Y);let M={};for(let[D,X]of O.structIterator()){let P=X.getMergedTraits().jsonName??D;M[D]=this.codec.createDeserializer().readObject(X,Y[P])}throw this.mixin.decorateServiceException(Object.assign(J,$,{$fault:O.getMergedTraits().error,message:H},M),Y)}getDefaultContentType(){return"application/json"}}var tF3=(A)=>{if(A==null)return;if(typeof A==="object"&&"__type"in A)delete A.__type;return Rd.expectUnion(A)};class wz1 extends Qs{settings;stringDeserializer;constructor(A){super();this.settings=A,this.stringDeserializer=new P0.FromStringShapeDeserializer(A)}setSerdeContext(A){this.serdeContext=A,this.stringDeserializer.setSerdeContext(A)}read(A,q,K){let Y=Y2.NormalizedSchema.of(A),z=Y.getMemberSchemas();if(Y.isStructSchema()&&Y.isMemberSchema()&&!!Object.values(z).find((O)=>{return!!O.getMemberTraits().eventPayload})){let O={},H=Object.keys(z)[0];if(z[H].isBlobSchema())O[H]=q;else O[H]=this.read(z[H],q);return O}let _=(this.serdeContext?.utf8Encoder??LY7.toUtf8)(q),$=this.parseXml(_);return this.readSchema(A,K?$[K]:$)}readSchema(A,q){let K=Y2.NormalizedSchema.of(A);if(K.isUnitSchema())return;let Y=K.getMergedTraits();if(K.isListSchema()&&!Array.isArray(q))return this.readSchema(K,[q]);if(q==null)return q;if(typeof q==="object"){let z=!!Y.sparse,w=!!Y.xmlFlattened;if(K.isListSchema()){let $=K.getValueSchema(),O=[],H=$.getMergedTraits().xmlName??"member",j=w?q:(q[0]??q)[H],J=Array.isArray(j)?j:[j];for(let M of J)if(M!=null||z)O.push(this.readSchema($,M));return O}let _={};if(K.isMapSchema()){let $=K.getKeySchema(),O=K.getValueSchema(),H;if(w)H=Array.isArray(q)?q:[q];else H=Array.isArray(q.entry)?q.entry:[q.entry];let j=$.getMergedTraits().xmlName??"key",J=O.getMergedTraits().xmlName??"value";for(let M of H){let D=M[j],X=M[J];if(X!=null||z)_[D]=this.readSchema(O,X)}return _}if(K.isStructSchema()){for(let[$,O]of K.structIterator()){let H=O.getMergedTraits(),j=!H.httpPayload?O.getMemberTraits().xmlName??$:H.xmlName??O.getName();if(q[j]!=null)_[$]=this.readSchema(O,q[j])}return _}if(K.isDocumentSchema())return q;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${K.getName(!0)}`)}if(K.isListSchema())return[];if(K.isMapSchema()||K.isStructSchema())return{};return this.stringDeserializer.read(K,q)}parseXml(A){if(A.length){let q;try{q=Uy.parseXML(A)}catch(w){if(w&&typeof w==="object")Object.defineProperty(w,"$responseBodyText",{value:A});throw w}let K="#text",Y=Object.keys(q)[0],z=q[Y];if(z[K])z[Y]=z[K],delete z[K];return Rd.getValueFromTextNode(z)}return{}}}class mY7 extends Qs{settings;buffer;constructor(A){super();this.settings=A}write(A,q,K=""){if(this.buffer===void 0)this.buffer="";let Y=Y2.NormalizedSchema.of(A);if(K&&!K.endsWith("."))K+=".";if(Y.isBlobSchema()){if(typeof q==="string"||q instanceof Uint8Array)this.writeKey(K),this.writeValue((this.serdeContext?.base64Encoder??Zb6.toBase64)(q))}else if(Y.isBooleanSchema()||Y.isNumericSchema()||Y.isStringSchema()){if(q!=null)this.writeKey(K),this.writeValue(String(q));else if(Y.isIdempotencyToken())this.writeKey(K),this.writeValue(IX.generateIdempotencyToken())}else if(Y.isBigIntegerSchema()){if(q!=null)this.writeKey(K),this.writeValue(String(q))}else if(Y.isBigDecimalSchema()){if(q!=null)this.writeKey(K),this.writeValue(q instanceof IX.NumericValue?q.string:String(q))}else if(Y.isTimestampSchema()){if(q instanceof Date)switch(this.writeKey(K),P0.determineTimestampFormat(Y,this.settings)){case 5:this.writeValue(q.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Rd.dateToUtcString(q));break;case 7:this.writeValue(String(q.getTime()/1000));break}}else if(Y.isDocumentSchema())throw Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${Y.getName(!0)}`);else if(Y.isListSchema()){if(Array.isArray(q))if(q.length===0){if(this.settings.serializeEmptyLists)this.writeKey(K),this.writeValue("")}else{let z=Y.getValueSchema(),w=this.settings.flattenLists||Y.getMergedTraits().xmlFlattened,_=1;for(let $ of q){if($==null)continue;let O=this.getKey("member",z.getMergedTraits().xmlName),H=w?`${K}${_}`:`${K}${O}.${_}`;this.write(z,$,H),++_}}}else if(Y.isMapSchema()){if(q&&typeof q==="object"){let z=Y.getKeySchema(),w=Y.getValueSchema(),_=Y.getMergedTraits().xmlFlattened,$=1;for(let[O,H]of Object.entries(q)){if(H==null)continue;let j=this.getKey("key",z.getMergedTraits().xmlName),J=_?`${K}${$}.${j}`:`${K}entry.${$}.${j}`,M=this.getKey("value",w.getMergedTraits().xmlName),D=_?`${K}${$}.${M}`:`${K}entry.${$}.${M}`;this.write(z,O,J),this.write(w,H,D),++$}}}else if(Y.isStructSchema()){if(q&&typeof q==="object")for(let[z,w]of Y.structIterator()){if(q[z]==null&&!w.isIdempotencyToken())continue;let _=this.getKey(z,w.getMergedTraits().xmlName),$=`${K}${_}`;this.write(w,q[z],$)}}else if(Y.isUnitSchema());else throw Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${Y.getName(!0)}`)}flush(){if(this.buffer===void 0)throw Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let A=this.buffer;return delete this.buffer,A}getKey(A,q){let K=q??A;if(this.settings.capitalizeKeys)return K[0].toUpperCase()+K.slice(1);return K}writeKey(A){if(A.endsWith("."))A=A.slice(0,A.length-1);this.buffer+=`&${P0.extendedEncodeURIComponent(A)}=`}writeValue(A){this.buffer+=P0.extendedEncodeURIComponent(A)}}class sK8 extends P0.RpcProtocol{options;serializer;deserializer;mixin=new tD6;constructor(A){super({defaultNamespace:A.defaultNamespace});this.options=A;let q={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:A.xmlNamespace,serviceNamespace:A.defaultNamespace,serializeEmptyLists:!0};this.serializer=new mY7(q),this.deserializer=new wz1(q)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(A){this.serializer.setSerdeContext(A),this.deserializer.setSerdeContext(A)}getPayloadCodec(){throw Error("AWSQuery protocol has no payload codec.")}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K);if(!Y.path.endsWith("/"))Y.path+="/";if(Object.assign(Y.headers,{"content-type":"application/x-www-form-urlencoded"}),Y2.deref(A.input)==="unit"||!Y.body)Y.body="";let z=A.name.split("#")[1]??A.name;if(Y.body=`Action=${z}&Version=${this.options.version}`+Y.body,Y.body.endsWith("&"))Y.body=Y.body.slice(-1);return Y}async deserializeResponse(A,q,K){let Y=this.deserializer,z=Y2.NormalizedSchema.of(A.output),w={};if(K.statusCode>=300){let j=await P0.collectBody(K.body,q);if(j.byteLength>0)Object.assign(w,await Y.read(15,j));await this.handleError(A,q,K,w,this.deserializeMetadata(K))}for(let j in K.headers){let J=K.headers[j];delete K.headers[j],K.headers[j.toLowerCase()]=J}let _=A.name.split("#")[1]??A.name,$=z.isStructSchema()&&this.useNestedResult()?_+"Result":void 0,O=await P0.collectBody(K.body,q);if(O.byteLength>0)Object.assign(w,await Y.read(z,O,$));return{$metadata:this.deserializeMetadata(K),...w}}useNestedResult(){return!0}async handleError(A,q,K,Y,z){let w=this.loadQueryErrorCode(K,Y)??"Unknown",_=this.loadQueryError(Y),$=this.loadQueryErrorMessage(Y);_.message=$,_.Error={Type:_.Type,Code:_.Code,Message:$};let{errorSchema:O,errorMetadata:H}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,_,z,(X,P)=>{try{return X.getSchema(P)}catch(W){return X.find((G)=>Y2.NormalizedSchema.of(G).getMergedTraits().awsQueryError?.[0]===P)}}),j=Y2.NormalizedSchema.of(O),M=new(Y2.TypeRegistry.for(O[1]).getErrorCtor(O)??Error)($),D={Error:_.Error};for(let[X,P]of j.structIterator()){let W=P.getMergedTraits().xmlName??X,G=_[W]??Y[W];D[X]=this.deserializer.readSchema(P,G)}throw this.mixin.decorateServiceException(Object.assign(M,H,{$fault:j.getMergedTraits().error,message:$},D),Y)}loadQueryErrorCode(A,q){let K=(q.Errors?.[0]?.Error??q.Errors?.Error??q.Error)?.Code;if(K!==void 0)return K;if(A.statusCode==404)return"NotFound"}loadQueryError(A){return A.Errors?.[0]?.Error??A.Errors?.Error??A.Error}loadQueryErrorMessage(A){let q=this.loadQueryError(A);return q?.message??q?.Message??A.message??A.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class BY7 extends sK8{options;constructor(A){super(A);this.options=A;let q={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1};Object.assign(this.serializer.settings,q)}useNestedResult(){return!1}}var gY7=(A,q)=>CY7(A,q).then((K)=>{if(K.length){let Y;try{Y=Uy.parseXML(K)}catch($){if($&&typeof $==="object")Object.defineProperty($,"$responseBodyText",{value:K});throw $}let z="#text",w=Object.keys(Y)[0],_=Y[w];if(_[z])_[w]=_[z],delete _[z];return Rd.getValueFromTextNode(_)}return{}}),eF3=async(A,q)=>{let K=await gY7(A,q);if(K.Error)K.Error.message=K.Error.message??K.Error.Message;return K},pY7=(A,q)=>{if(q?.Error?.Code!==void 0)return q.Error.Code;if(q?.Code!==void 0)return q.Code;if(A.statusCode==404)return"NotFound"};class tK8 extends Qs{settings;stringBuffer;byteBuffer;buffer;constructor(A){super();this.settings=A}write(A,q){let K=Y2.NormalizedSchema.of(A);if(K.isStringSchema()&&typeof q==="string")this.stringBuffer=q;else if(K.isBlobSchema())this.byteBuffer="byteLength"in q?q:(this.serdeContext?.base64Decoder??Zb6.fromBase64)(q);else{this.buffer=this.writeStruct(K,q,void 0);let Y=K.getMergedTraits();if(Y.httpPayload&&!Y.xmlName)this.buffer.withName(K.getName())}}flush(){if(this.byteBuffer!==void 0){let q=this.byteBuffer;return delete this.byteBuffer,q}if(this.stringBuffer!==void 0){let q=this.stringBuffer;return delete this.stringBuffer,q}let A=this.buffer;if(this.settings.xmlNamespace){if(!A?.attributes?.xmlns)A.addAttribute("xmlns",this.settings.xmlNamespace)}return delete this.buffer,A.toString()}writeStruct(A,q,K){let Y=A.getMergedTraits(),z=A.isMemberSchema()&&!Y.httpPayload?A.getMemberTraits().xmlName??A.getMemberName():Y.xmlName??A.getName();if(!z||!A.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${A.getName(!0)}.`);let w=Uy.XmlNode.of(z),[_,$]=this.getXmlnsAttribute(A,K);for(let[O,H]of A.structIterator()){let j=q[O];if(j!=null||H.isIdempotencyToken()){if(H.getMergedTraits().xmlAttribute){w.addAttribute(H.getMergedTraits().xmlName??O,this.writeSimple(H,j));continue}if(H.isListSchema())this.writeList(H,j,w,$);else if(H.isMapSchema())this.writeMap(H,j,w,$);else if(H.isStructSchema())w.addChildNode(this.writeStruct(H,j,$));else{let J=Uy.XmlNode.of(H.getMergedTraits().xmlName??H.getMemberName());this.writeSimpleInto(H,j,J,$),w.addChildNode(J)}}}if($)w.addAttribute(_,$);return w}writeList(A,q,K,Y){if(!A.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${A.getName(!0)}`);let z=A.getMergedTraits(),w=A.getValueSchema(),_=w.getMergedTraits(),$=!!_.sparse,O=!!z.xmlFlattened,[H,j]=this.getXmlnsAttribute(A,Y),J=(M,D)=>{if(w.isListSchema())this.writeList(w,Array.isArray(D)?D:[D],M,j);else if(w.isMapSchema())this.writeMap(w,D,M,j);else if(w.isStructSchema()){let X=this.writeStruct(w,D,j);M.addChildNode(X.withName(O?z.xmlName??A.getMemberName():_.xmlName??"member"))}else{let X=Uy.XmlNode.of(O?z.xmlName??A.getMemberName():_.xmlName??"member");this.writeSimpleInto(w,D,X,j),M.addChildNode(X)}};if(O){for(let M of q)if($||M!=null)J(K,M)}else{let M=Uy.XmlNode.of(z.xmlName??A.getMemberName());if(j)M.addAttribute(H,j);for(let D of q)if($||D!=null)J(M,D);K.addChildNode(M)}}writeMap(A,q,K,Y,z=!1){if(!A.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${A.getName(!0)}`);let w=A.getMergedTraits(),_=A.getKeySchema(),O=_.getMergedTraits().xmlName??"key",H=A.getValueSchema(),j=H.getMergedTraits(),J=j.xmlName??"value",M=!!j.sparse,D=!!w.xmlFlattened,[X,P]=this.getXmlnsAttribute(A,Y),W=(G,Z,f)=>{let v=Uy.XmlNode.of(O,Z),[V,N]=this.getXmlnsAttribute(_,P);if(N)v.addAttribute(V,N);G.addChildNode(v);let L=Uy.XmlNode.of(J);if(H.isListSchema())this.writeList(H,f,L,P);else if(H.isMapSchema())this.writeMap(H,f,L,P,!0);else if(H.isStructSchema())L=this.writeStruct(H,f,P);else this.writeSimpleInto(H,f,L,P);G.addChildNode(L)};if(D){for(let[G,Z]of Object.entries(q))if(M||Z!=null){let f=Uy.XmlNode.of(w.xmlName??A.getMemberName());W(f,G,Z),K.addChildNode(f)}}else{let G;if(!z){if(G=Uy.XmlNode.of(w.xmlName??A.getMemberName()),P)G.addAttribute(X,P);K.addChildNode(G)}for(let[Z,f]of Object.entries(q))if(M||f!=null){let v=Uy.XmlNode.of("entry");W(v,Z,f),(z?K:G).addChildNode(v)}}}writeSimple(A,q){if(q===null)throw Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let K=Y2.NormalizedSchema.of(A),Y=null;if(q&&typeof q==="object")if(K.isBlobSchema())Y=(this.serdeContext?.base64Encoder??Zb6.toBase64)(q);else if(K.isTimestampSchema()&&q instanceof Date)switch(P0.determineTimestampFormat(K,this.settings)){case 5:Y=q.toISOString().replace(".000Z","Z");break;case 6:Y=Rd.dateToUtcString(q);break;case 7:Y=String(q.getTime()/1000);break;default:console.warn("Missing timestamp format, using http date",q),Y=Rd.dateToUtcString(q);break}else if(K.isBigDecimalSchema()&&q){if(q instanceof IX.NumericValue)return q.string;return String(q)}else if(K.isMapSchema()||K.isListSchema())throw Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.");else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${K.getName(!0)}`);if(K.isBooleanSchema()||K.isNumericSchema()||K.isBigIntegerSchema()||K.isBigDecimalSchema())Y=String(q);if(K.isStringSchema())if(q===void 0&&K.isIdempotencyToken())Y=IX.generateIdempotencyToken();else Y=String(q);if(Y===null)throw Error(`Unhandled schema-value pair ${K.getName(!0)}=${q}`);return Y}writeSimpleInto(A,q,K,Y){let z=this.writeSimple(A,q),w=Y2.NormalizedSchema.of(A),_=new Uy.XmlText(z),[$,O]=this.getXmlnsAttribute(w,Y);if(O)K.addAttribute($,O);K.addChildNode(_)}getXmlnsAttribute(A,q){let K=A.getMergedTraits(),[Y,z]=K.xmlNamespace??[];if(z&&z!==q)return[Y?`xmlns:${Y}`:"xmlns",z];return[void 0,void 0]}}class eK8 extends Qs{settings;constructor(A){super();this.settings=A}createSerializer(){let A=new tK8(this.settings);return A.setSerdeContext(this.serdeContext),A}createDeserializer(){let A=new wz1(this.settings);return A.setSerdeContext(this.serdeContext),A}}class FY7 extends P0.HttpBindingProtocol{codec;serializer;deserializer;mixin=new tD6;constructor(A){super(A);let q={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:A.xmlNamespace,serviceNamespace:A.defaultNamespace};this.codec=new eK8(q),this.serializer=new P0.HttpInterceptingShapeSerializer(this.codec.createSerializer(),q),this.deserializer=new P0.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),q)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K),z=Y2.NormalizedSchema.of(A.input);if(!Y.headers["content-type"]){let w=this.mixin.resolveRestContentType(this.getDefaultContentType(),z);if(w)Y.headers["content-type"]=w}if(Y.headers["content-type"]===this.getDefaultContentType()){if(typeof Y.body==="string")Y.body='<?xml version="1.0" encoding="UTF-8"?>'+Y.body}return Y}async deserializeResponse(A,q,K){return super.deserializeResponse(A,q,K)}async handleError(A,q,K,Y,z){let w=pY7(K,Y)??"Unknown",{errorSchema:_,errorMetadata:$}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,Y,z),O=Y2.NormalizedSchema.of(_),H=Y.Error?.message??Y.Error?.Message??Y.message??Y.Message??"Unknown",J=new(Y2.TypeRegistry.for(_[1]).getErrorCtor(_)??Error)(H);await this.deserializeHttpMessage(_,q,K,Y);let M={};for(let[D,X]of O.structIterator()){let P=X.getMergedTraits().xmlName??D,W=Y.Error?.[P]??Y[P];M[D]=this.codec.createDeserializer().readSchema(X,W)}throw this.mixin.decorateServiceException(Object.assign(J,$,{$fault:O.getMergedTraits().error,message:H},M),Y)}getDefaultContentType(){return"application/xml"}}AQ3.AWSSDKSigV4Signer=FF3;AQ3.AwsEc2QueryProtocol=BY7;AQ3.AwsJson1_0Protocol=xY7;AQ3.AwsJson1_1Protocol=bY7;AQ3.AwsJsonRpcProtocol=zz1;AQ3.AwsQueryProtocol=sK8;AQ3.AwsRestJsonProtocol=uY7;AQ3.AwsRestXmlProtocol=FY7;AQ3.AwsSdkSigV4ASigner=yY7;AQ3.AwsSdkSigV4Signer=Kz1;AQ3.AwsSmithyRpcV2CborProtocol=hY7;AQ3.JsonCodec=Yz1;AQ3.JsonShapeDeserializer=oK8;AQ3.JsonShapeSerializer=aK8;AQ3.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=QF3;AQ3.NODE_SIGV4A_CONFIG_OPTIONS=dF3;AQ3.XmlCodec=eK8;AQ3.XmlShapeDeserializer=wz1;AQ3.XmlShapeSerializer=tK8;AQ3._toBool=rF3;AQ3._toNum=oF3;AQ3._toStr=nF3;AQ3.awsExpectUnion=tF3;AQ3.emitWarningIfUnsupportedVersion=uF3;AQ3.getBearerTokenEnvKey=RY7;AQ3.loadRestJsonErrorCode=rK8;AQ3.loadRestXmlErrorCode=pY7;AQ3.parseJsonBody=nK8;AQ3.parseJsonErrorBody=sF3;AQ3.parseXmlBody=gY7;AQ3.parseXmlErrorBody=eF3;AQ3.resolveAWSSDKSigV4Config=cF3;AQ3.resolveAwsSdkSigV4AConfig=UF3;AQ3.resolveAwsSdkSigV4Config=SY7;AQ3.setCredentialFeature=mF3;AQ3.setFeature=BF3;AQ3.setTokenFeature=gF3;AQ3.state=dK8;AQ3.validateSigningProperties=iK8});var KB=h((tQ3)=>{var FQ3=Ew(),QQ3=AB(),UQ3=S97(),qB=o_(),cY7=void 0;function dQ3(A){if(A===void 0)return!0;return typeof A==="string"&&A.length<=50}function cQ3(A){let q=FQ3.normalizeProvider(A.userAgentAppId??cY7),{customUserAgent:K}=A;return Object.assign(A,{customUserAgent:typeof K==="string"?[[K]]:K,userAgentAppId:async()=>{let Y=await q();if(!dQ3(Y)){let z=A.logger?.constructor?.name==="NoOpLogger"||!A.logger?console:A.logger;if(typeof Y!=="string")z?.warn("userAgentAppId must be a string or undefined.");else if(Y.length>50)z?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return Y}})}var lQ3=/\d{12}\.ddb/;async function iQ3(A,q,K){if(K.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")qB.setFeature(A,"PROTOCOL_RPC_V2_CBOR","M");if(typeof q.retryStrategy==="function"){let w=await q.retryStrategy();if(typeof w.acquireInitialRetryToken==="function")if(w.constructor?.name?.includes("Adaptive"))qB.setFeature(A,"RETRY_MODE_ADAPTIVE","F");else qB.setFeature(A,"RETRY_MODE_STANDARD","E");else qB.setFeature(A,"RETRY_MODE_LEGACY","D")}if(typeof q.accountIdEndpointMode==="function"){let w=A.endpointV2;if(String(w?.url?.hostname).match(lQ3))qB.setFeature(A,"ACCOUNT_ID_ENDPOINT","O");switch(await q.accountIdEndpointMode?.()){case"disabled":qB.setFeature(A,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":qB.setFeature(A,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":qB.setFeature(A,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let z=A.__smithy_context?.selectedHttpAuthScheme?.identity;if(z?.$source){let w=z;if(w.accountId)qB.setFeature(A,"RESOLVED_ACCOUNT_ID","T");for(let[_,$]of Object.entries(w.$source??{}))qB.setFeature(A,_,$)}}var QY7="user-agent",A38="x-amz-user-agent",UY7=" ",q38="/",nQ3=/[^!$%&'*+\-.^_`|~\w]/g,rQ3=/[^!$%&'*+\-.^_`|~\w#]/g,dY7="-",oQ3=1024;function aQ3(A){let q="";for(let K in A){let Y=A[K];if(q.length+Y.length+1<=oQ3){if(q.length)q+=","+Y;else q+=Y;continue}break}return q}var lY7=(A)=>(q,K)=>async(Y)=>{let{request:z}=Y;if(!UQ3.HttpRequest.isInstance(z))return q(Y);let{headers:w}=z,_=K?.userAgent?.map(_z1)||[],$=(await A.defaultUserAgentProvider()).map(_z1);await iQ3(K,A,Y);let O=K;$.push(`m/${aQ3(Object.assign({},K.__smithy_context?.features,O.__aws_sdk_context?.features))}`);let H=A?.customUserAgent?.map(_z1)||[],j=await A.userAgentAppId();if(j)$.push(_z1(["app",`${j}`]));let J=QQ3.getUserAgentPrefix(),M=(J?[J]:[]).concat([...$,..._,...H]).join(UY7),D=[...$.filter((X)=>X.startsWith("aws-sdk-")),...H].join(UY7);if(A.runtime!=="browser"){if(D)w[A38]=w[A38]?`${w[QY7]} ${D}`:D;w[QY7]=M}else w[A38]=M;return q({...Y,request:z})},_z1=(A)=>{let q=A[0].split(q38).map((_)=>_.replace(nQ3,dY7)).join(q38),K=A[1]?.replace(rQ3,dY7),Y=q.indexOf(q38),z=q.substring(0,Y),w=q.substring(Y+1);if(z==="api")w=w.toLowerCase();return[z,w,K].filter((_)=>_&&_.length>0).reduce((_,$,O)=>{switch(O){case 0:return $;case 1:return`${_}/${$}`;default:return`${_}#${$}`}},"")},iY7={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},sQ3=(A)=>({applyToStack:(q)=>{q.add(lY7(A),iY7)}});tQ3.DEFAULT_UA_APP_ID=cY7;tQ3.getUserAgentMiddlewareOptions=iY7;tQ3.getUserAgentPlugin=sQ3;tQ3.resolveUserAgentConfig=cQ3;tQ3.userAgentMiddleware=lY7});var nY7=h((_U3)=>{var zU3=(A,q,K)=>{if(!(q in A))return;if(A[q]==="true")return!0;if(A[q]==="false")return!1;throw Error(`Cannot load ${K} "${q}". Expected "true" or "false", got ${A[q]}.`)},wU3=(A,q,K)=>{if(!(q in A))return;let Y=parseInt(A[q],10);if(Number.isNaN(Y))throw TypeError(`Cannot load ${K} '${q}'. Expected number, got '${A[q]}'.`);return Y};_U3.SelectorType=void 0;(function(A){A.ENV="env",A.CONFIG="shared config entry"})(_U3.SelectorType||(_U3.SelectorType={}));_U3.booleanSelector=zU3;_U3.numberSelector=wU3});var qJ=h((LU3)=>{var Us=nY7(),$z1=WG(),HU3=YI(),aY7="AWS_USE_DUALSTACK_ENDPOINT",sY7="use_dualstack_endpoint",jU3=!1,JU3={environmentVariableSelector:(A)=>Us.booleanSelector(A,aY7,Us.SelectorType.ENV),configFileSelector:(A)=>Us.booleanSelector(A,sY7,Us.SelectorType.CONFIG),default:!1},tY7="AWS_USE_FIPS_ENDPOINT",eY7="use_fips_endpoint",MU3=!1,DU3={environmentVariableSelector:(A)=>Us.booleanSelector(A,tY7,Us.SelectorType.ENV),configFileSelector:(A)=>Us.booleanSelector(A,eY7,Us.SelectorType.CONFIG),default:!1},XU3=(A)=>{let{tls:q,endpoint:K,urlParser:Y,useDualstackEndpoint:z}=A;return Object.assign(A,{tls:q??!0,endpoint:$z1.normalizeProvider(typeof K==="string"?Y(K):K),isCustomEndpoint:!0,useDualstackEndpoint:$z1.normalizeProvider(z??!1)})},PU3=async(A)=>{let{tls:q=!0}=A,K=await A.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(K))throw Error("Invalid region in client config");let z=await A.useDualstackEndpoint(),w=await A.useFipsEndpoint(),{hostname:_}=await A.regionInfoProvider(K,{useDualstackEndpoint:z,useFipsEndpoint:w})??{};if(!_)throw Error("Cannot resolve hostname from client config");return A.urlParser(`${q?"https:":"http:"}//${_}`)},WU3=(A)=>{let q=$z1.normalizeProvider(A.useDualstackEndpoint??!1),{endpoint:K,useFipsEndpoint:Y,urlParser:z,tls:w}=A;return Object.assign(A,{tls:w??!0,endpoint:K?$z1.normalizeProvider(typeof K==="string"?z(K):K):()=>PU3({...A,useDualstackEndpoint:q,useFipsEndpoint:Y}),isCustomEndpoint:!!K,useDualstackEndpoint:q})},Az7="AWS_REGION",qz7="region",GU3={environmentVariableSelector:(A)=>A[Az7],configFileSelector:(A)=>A[qz7],default:()=>{throw Error("Region is missing")}},ZU3={preferredFile:"credentials"},rY7=new Set,fU3=(A,q=HU3.isValidHostLabel)=>{if(!rY7.has(A)&&!q(A))if(A==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw Error(`Region not accepted: region="${A}" is not a valid hostname component.`);else rY7.add(A)},Kz7=(A)=>typeof A==="string"&&(A.startsWith("fips-")||A.endsWith("-fips")),TU3=(A)=>Kz7(A)?["fips-aws-global","aws-fips"].includes(A)?"us-east-1":A.replace(/fips-(dkr-|prod-)?|-fips/,""):A,vU3=(A)=>{let{region:q,useFipsEndpoint:K}=A;if(!q)throw Error("Region is missing");return Object.assign(A,{region:async()=>{let Y=typeof q==="function"?await q():q,z=TU3(Y);return fU3(z),z},useFipsEndpoint:async()=>{let Y=typeof q==="string"?q:await q();if(Kz7(Y))return!0;return typeof K!=="function"?Promise.resolve(!!K):K()}})},oY7=(A=[],{useFipsEndpoint:q,useDualstackEndpoint:K})=>A.find(({tags:Y})=>q===Y.includes("fips")&&K===Y.includes("dualstack"))?.hostname,VU3=(A,{regionHostname:q,partitionHostname:K})=>q?q:K?K.replace("{region}",A):void 0,NU3=(A,{partitionHash:q})=>Object.keys(q||{}).find((K)=>q[K].regions.includes(A))??"aws",kU3=(A,{signingRegion:q,regionRegex:K,useFipsEndpoint:Y})=>{if(q)return q;else if(Y){let z=K.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),w=A.match(z);if(w)return w[0].slice(1,-1)}},EU3=(A,{useFipsEndpoint:q=!1,useDualstackEndpoint:K=!1,signingService:Y,regionHash:z,partitionHash:w})=>{let _=NU3(A,{partitionHash:w}),$=A in z?A:w[_]?.endpoint??A,O={useFipsEndpoint:q,useDualstackEndpoint:K},H=oY7(z[$]?.variants,O),j=oY7(w[_]?.variants,O),J=VU3($,{regionHostname:H,partitionHostname:j});if(J===void 0)throw Error(`Endpoint resolution failed for: ${{resolvedRegion:$,useFipsEndpoint:q,useDualstackEndpoint:K}}`);let M=kU3(J,{signingRegion:z[$]?.signingRegion,regionRegex:w[_].regionRegex,useFipsEndpoint:q});return{partition:_,signingService:Y,hostname:J,...M&&{signingRegion:M},...z[$]?.signingService&&{signingService:z[$].signingService}}};LU3.CONFIG_USE_DUALSTACK_ENDPOINT=sY7;LU3.CONFIG_USE_FIPS_ENDPOINT=eY7;LU3.DEFAULT_USE_DUALSTACK_ENDPOINT=jU3;LU3.DEFAULT_USE_FIPS_ENDPOINT=MU3;LU3.ENV_USE_DUALSTACK_ENDPOINT=aY7;LU3.ENV_USE_FIPS_ENDPOINT=tY7;LU3.NODE_REGION_CONFIG_FILE_OPTIONS=ZU3;LU3.NODE_REGION_CONFIG_OPTIONS=GU3;LU3.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=JU3;LU3.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=DU3;LU3.REGION_ENV_NAME=Az7;LU3.REGION_INI_NAME=qz7;LU3.getRegionInfo=EU3;LU3.resolveCustomEndpointsConfig=XU3;LU3.resolveEndpointsConfig=WU3;LU3.resolveRegionConfig=vU3});var Yz7=h((rU3)=>{rU3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(rU3.HttpAuthLocation||(rU3.HttpAuthLocation={}));rU3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(rU3.HttpApiKeyAuthLocation||(rU3.HttpApiKeyAuthLocation={}));rU3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(rU3.EndpointURLScheme||(rU3.EndpointURLScheme={}));rU3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(rU3.AlgorithmId||(rU3.AlgorithmId={}));var dU3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>rU3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>rU3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},cU3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},lU3=(A)=>{return dU3(A)},iU3=(A)=>{return cU3(A)};rU3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(rU3.FieldPosition||(rU3.FieldPosition={}));var nU3="__smithy_context";rU3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(rU3.IniSectionType||(rU3.IniSectionType={}));rU3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(rU3.RequestHandlerProtocol||(rU3.RequestHandlerProtocol={}));rU3.SMITHY_CONTEXT_KEY=nU3;rU3.getDefaultClientConfiguration=lU3;rU3.resolveDefaultRuntimeConfig=iU3});var $z7=h((Yd3)=>{var tU3=Yz7(),eU3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},Ad3=(A)=>{return{httpHandler:A.httpHandler()}};class zz7{name;kind;values;constructor({name:A,kind:q=tU3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class wz7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class Oz1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new Oz1({...A,headers:{...A.headers}});if(q.query)q.query=qd3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return Oz1.clone(this)}}function qd3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class _z7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function Kd3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}Yd3.Field=zz7;Yd3.Fields=wz7;Yd3.HttpRequest=Oz1;Yd3.HttpResponse=_z7;Yd3.getHttpHandlerExtensionConfiguration=eU3;Yd3.isValidHostname=Kd3;Yd3.resolveHttpHandlerRuntimeConfig=Ad3});var Sd=h((Dd3)=>{var Jd3=$z7(),Oz7="content-length";function Hz7(A){return(q)=>async(K)=>{let Y=K.request;if(Jd3.HttpRequest.isInstance(Y)){let{body:z,headers:w}=Y;if(z&&Object.keys(w).map((_)=>_.toLowerCase()).indexOf(Oz7)===-1)try{let _=A(z);Y.headers={...Y.headers,[Oz7]:String(_)}}catch(_){}}return q({...K,request:Y})}}var jz7={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Md3=(A)=>({applyToStack:(q)=>{q.add(Hz7(A.bodyLengthChecker),jz7)}});Dd3.contentLengthMiddleware=Hz7;Dd3.contentLengthMiddlewareOptions=jz7;Dd3.getContentLengthPlugin=Md3});var Wz7=h((Xz7)=>{Object.defineProperty(Xz7,"__esModule",{value:!0});Xz7.getEndpointUrlConfig=void 0;var Jz7=am(),Mz7="AWS_ENDPOINT_URL",Dz7="endpoint_url",Gd3=(A)=>({environmentVariableSelector:(q)=>{let K=A.split(" ").map((w)=>w.toUpperCase()),Y=q[[Mz7,...K].join("_")];if(Y)return Y;let z=q[Mz7];if(z)return z;return},configFileSelector:(q,K)=>{if(K&&q.services){let z=K[["services",q.services].join(Jz7.CONFIG_PREFIX_SEPARATOR)];if(z){let w=A.split(" ").map(($)=>$.toLowerCase()),_=z[[w.join("_"),Dz7].join(Jz7.CONFIG_PREFIX_SEPARATOR)];if(_)return _}}let Y=q[Dz7];if(Y)return Y;return},default:void 0});Xz7.getEndpointUrlConfig=Gd3});var fz7=h((Gz7)=>{Object.defineProperty(Gz7,"__esModule",{value:!0});Gz7.getEndpointFromConfig=void 0;var Zd3=Bv(),fd3=Wz7(),Td3=async(A)=>(0,Zd3.loadConfig)((0,fd3.getEndpointUrlConfig)(A??""))();Gz7.getEndpointFromConfig=Td3});var zI=h((xd3)=>{var vz7=fz7(),Tz7=py(),vd3=Ew(),Hz1=WG(),Vd3=Gq8(),Nd3=async(A)=>{let q=A?.Bucket||"";if(typeof A.Bucket==="string")A.Bucket=q.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Rd3(q)){if(A.ForcePathStyle===!0)throw Error("Path-style addressing cannot be used with ARN buckets")}else if(!yd3(q)||q.indexOf(".")!==-1&&!String(A.Endpoint).startsWith("http:")||q.toLowerCase()!==q||q.length<3)A.ForcePathStyle=!0;if(A.DisableMultiRegionAccessPoints)A.disableMultiRegionAccessPoints=!0,A.DisableMRAP=!0;return A},kd3=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Ed3=/(\d+\.){3}\d+/,Ld3=/\.\./,yd3=(A)=>kd3.test(A)&&!Ed3.test(A)&&!Ld3.test(A),Rd3=(A)=>{let[q,K,Y,,,z]=A.split(":"),w=q==="arn"&&A.split(":").length>=6,_=Boolean(w&&K&&Y&&z);if(w&&!_)throw Error(`Invalid ARN: ${A} was an invalid ARN.`);return _},Sd3=(A,q,K)=>{let Y=async()=>{let z=K[A]??K[q];if(typeof z==="function")return z();return z};if(A==="credentialScope"||q==="CredentialScope")return async()=>{let z=typeof K.credentials==="function"?await K.credentials():K.credentials;return z?.credentialScope??z?.CredentialScope};if(A==="accountId"||q==="AccountId")return async()=>{let z=typeof K.credentials==="function"?await K.credentials():K.credentials;return z?.accountId??z?.AccountId};if(A==="endpoint"||q==="endpoint")return async()=>{if(K.isCustomEndpoint===!1)return;let z=await Y();if(z&&typeof z==="object"){if("url"in z)return z.url.href;if("hostname"in z){let{protocol:w,hostname:_,port:$,path:O}=z;return`${w}//${_}${$?":"+$:""}${O}`}}return z};return Y},H38=(A)=>{if(typeof A==="object"){if("url"in A)return Tz7.parseUrl(A.url);return A}return Tz7.parseUrl(A)},Vz7=async(A,q,K,Y)=>{if(!K.isCustomEndpoint){let _;if(K.serviceConfiguredEndpoint)_=await K.serviceConfiguredEndpoint();else _=await vz7.getEndpointFromConfig(K.serviceId);if(_)K.endpoint=()=>Promise.resolve(H38(_)),K.isCustomEndpoint=!0}let z=await Nz7(A,q,K);if(typeof K.endpointProvider!=="function")throw Error("config.endpointProvider is not set.");return K.endpointProvider(z,Y)},Nz7=async(A,q,K)=>{let Y={},z=q?.getEndpointParameterInstructions?.()||{};for(let[w,_]of Object.entries(z))switch(_.type){case"staticContextParams":Y[w]=_.value;break;case"contextParams":Y[w]=A[_.name];break;case"clientContextParams":case"builtInParams":Y[w]=await Sd3(_.name,w,K)();break;case"operationContextParams":Y[w]=_.get(A);break;default:throw Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(_))}if(Object.keys(z).length===0)Object.assign(Y,K);if(String(K.serviceId).toLowerCase()==="s3")await Nd3(Y);return Y},kz7=({config:A,instructions:q})=>{return(K,Y)=>async(z)=>{if(A.isCustomEndpoint)vd3.setFeature(Y,"ENDPOINT_OVERRIDE","N");let w=await Vz7(z.input,{getEndpointParameterInstructions(){return q}},{...A},Y);Y.endpointV2=w,Y.authSchemes=w.properties?.authSchemes;let _=Y.authSchemes?.[0];if(_){Y.signing_region=_.signingRegion,Y.signing_service=_.signingName;let O=Hz1.getSmithyContext(Y)?.selectedHttpAuthScheme?.httpAuthOption;if(O)O.signingProperties=Object.assign(O.signingProperties||{},{signing_region:_.signingRegion,signingRegion:_.signingRegion,signing_service:_.signingName,signingName:_.signingName,signingRegionSet:_.signingRegionSet},_.properties)}return K({...z})}},Ez7={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Vd3.serializerMiddlewareOption.name},hd3=(A,q)=>({applyToStack:(K)=>{K.addRelativeTo(kz7({config:A,instructions:q}),Ez7)}}),Cd3=(A)=>{let q=A.tls??!0,{endpoint:K,useDualstackEndpoint:Y,useFipsEndpoint:z}=A,w=K!=null?async()=>H38(await Hz1.normalizeProvider(K)()):void 0,$=Object.assign(A,{endpoint:w,tls:q,isCustomEndpoint:!!K,useDualstackEndpoint:Hz1.normalizeProvider(Y??!1),useFipsEndpoint:Hz1.normalizeProvider(z??!1)}),O=void 0;return $.serviceConfiguredEndpoint=async()=>{if(A.serviceId&&!O)O=vz7.getEndpointFromConfig(A.serviceId);return O},$},Id3=(A)=>{let{endpoint:q}=A;if(q===void 0)A.endpoint=async()=>{throw Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")};return A};xd3.endpointMiddleware=kz7;xd3.endpointMiddlewareOptions=Ez7;xd3.getEndpointFromInstructions=Vz7;xd3.getEndpointPlugin=hd3;xd3.resolveEndpointConfig=Cd3;xd3.resolveEndpointRequiredConfig=Id3;xd3.resolveParams=Nz7;xd3.toEndpointV1=H38});var J38=h((sd3)=>{var Ud3=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],dd3=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],cd3=["TimeoutError","RequestTimeout","RequestTimeoutException"],ld3=[500,502,503,504],id3=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],nd3=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],Lz7=(A)=>A?.$retryable!==void 0,rd3=(A)=>Ud3.includes(A.name),yz7=(A)=>A.$metadata?.clockSkewCorrected,Rz7=(A)=>{let q=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(A&&A instanceof TypeError))return!1;return q.has(A.message)},od3=(A)=>A.$metadata?.httpStatusCode===429||dd3.includes(A.name)||A.$retryable?.throttling==!0,j38=(A,q=0)=>Lz7(A)||yz7(A)||cd3.includes(A.name)||id3.includes(A?.code||"")||nd3.includes(A?.code||"")||ld3.includes(A.$metadata?.httpStatusCode||0)||Rz7(A)||A.cause!==void 0&&q<=10&&j38(A.cause,q+1),ad3=(A)=>{if(A.$metadata?.httpStatusCode!==void 0){let q=A.$metadata.httpStatusCode;if(500<=q&&q<=599&&!j38(A))return!0;return!1}return!1};sd3.isBrowserNetworkError=Rz7;sd3.isClockSkewCorrectedError=yz7;sd3.isClockSkewError=rd3;sd3.isRetryableByTrait=Lz7;sd3.isServerError=ad3;sd3.isThrottlingError=od3;sd3.isTransientError=j38});var YB=h((jc3)=>{var wc3=J38();jc3.RETRY_MODES=void 0;(function(A){A.STANDARD="standard",A.ADAPTIVE="adaptive"})(jc3.RETRY_MODES||(jc3.RETRY_MODES={}));var M38=3,_c3=jc3.RETRY_MODES.STANDARD;class jz1{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=!1;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(A){this.beta=A?.beta??0.7,this.minCapacity=A?.minCapacity??1,this.minFillRate=A?.minFillRate??0.5,this.scaleConstant=A?.scaleConstant??0.4,this.smooth=A?.smooth??0.8;let q=this.getCurrentTimeInSeconds();this.lastThrottleTime=q,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(A){if(!this.enabled)return;if(this.refillTokenBucket(),A>this.currentCapacity){let q=(A-this.currentCapacity)/this.fillRate*1000;await new Promise((K)=>jz1.setTimeoutFn(K,q))}this.currentCapacity=this.currentCapacity-A}refillTokenBucket(){let A=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=A;return}let q=(A-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+q),this.lastTimestamp=A}updateClientSendingRate(A){let q;if(this.updateMeasuredRate(),wc3.isThrottlingError(A)){let Y=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=Y,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),q=this.cubicThrottle(Y),this.enableTokenBucket()}else this.calculateTimeWindow(),q=this.cubicSuccess(this.getCurrentTimeInSeconds());let K=Math.min(q,2*this.measuredTxRate);this.updateTokenBucketRate(K)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(A){return this.getPrecise(A*this.beta)}cubicSuccess(A){return this.getPrecise(this.scaleConstant*Math.pow(A-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(A){this.refillTokenBucket(),this.fillRate=Math.max(A,this.minFillRate),this.maxCapacity=Math.max(A,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let A=this.getCurrentTimeInSeconds(),q=Math.floor(A*2)/2;if(this.requestCount++,q>this.lastTxRateBucket){let K=this.requestCount/(q-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(K*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=q}}getPrecise(A){return parseFloat(A.toFixed(8))}}var Tb6=100,X38=20000,hz7=500,D38=500,Cz7=5,Iz7=10,xz7=1,$c3="amz-sdk-invocation-id",Oc3="amz-sdk-request",Hc3=()=>{let A=Tb6;return{computeNextBackoffDelay:(Y)=>{return Math.floor(Math.min(X38,Math.random()*2**Y*A))},setDelayBase:(Y)=>{A=Y}}},Sz7=({retryDelay:A,retryCount:q,retryCost:K})=>{return{getRetryCount:()=>q,getRetryDelay:()=>Math.min(X38,A),getRetryCost:()=>K}};class Jz1{maxAttempts;mode=jc3.RETRY_MODES.STANDARD;capacity=D38;retryBackoffStrategy=Hc3();maxAttemptsProvider;constructor(A){this.maxAttempts=A,this.maxAttemptsProvider=typeof A==="function"?A:async()=>A}async acquireInitialRetryToken(A){return Sz7({retryDelay:Tb6,retryCount:0})}async refreshRetryTokenForRetry(A,q){let K=await this.getMaxAttempts();if(this.shouldRetry(A,q,K)){let Y=q.errorType;this.retryBackoffStrategy.setDelayBase(Y==="THROTTLING"?hz7:Tb6);let z=this.retryBackoffStrategy.computeNextBackoffDelay(A.getRetryCount()),w=q.retryAfterHint?Math.max(q.retryAfterHint.getTime()-Date.now()||0,z):z,_=this.getCapacityCost(Y);return this.capacity-=_,Sz7({retryDelay:w,retryCount:A.getRetryCount()+1,retryCost:_})}throw Error("No retry token available")}recordSuccess(A){this.capacity=Math.max(D38,this.capacity+(A.getRetryCost()??xz7))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(A){return console.warn(`Max attempts provider could not resolve. Using default of ${M38}`),M38}}shouldRetry(A,q,K){return A.getRetryCount()+1<K&&this.capacity>=this.getCapacityCost(q.errorType)&&this.isRetryableError(q.errorType)}getCapacityCost(A){return A==="TRANSIENT"?Iz7:Cz7}isRetryableError(A){return A==="THROTTLING"||A==="TRANSIENT"}}class bz7{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=jc3.RETRY_MODES.ADAPTIVE;constructor(A,q){this.maxAttemptsProvider=A;let{rateLimiter:K}=q??{};this.rateLimiter=K??new jz1,this.standardRetryStrategy=new Jz1(A)}async acquireInitialRetryToken(A){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(A)}async refreshRetryTokenForRetry(A,q){return this.rateLimiter.updateClientSendingRate(q),this.standardRetryStrategy.refreshRetryTokenForRetry(A,q)}recordSuccess(A){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(A)}}class uz7 extends Jz1{computeNextBackoffDelay;constructor(A,q=Tb6){super(typeof A==="function"?A:async()=>A);if(typeof q==="number")this.computeNextBackoffDelay=()=>q;else this.computeNextBackoffDelay=q}async refreshRetryTokenForRetry(A,q){let K=await super.refreshRetryTokenForRetry(A,q);return K.getRetryDelay=()=>this.computeNextBackoffDelay(K.getRetryCount()),K}}jc3.AdaptiveRetryStrategy=bz7;jc3.ConfiguredRetryStrategy=uz7;jc3.DEFAULT_MAX_ATTEMPTS=M38;jc3.DEFAULT_RETRY_DELAY_BASE=Tb6;jc3.DEFAULT_RETRY_MODE=_c3;jc3.DefaultRateLimiter=jz1;jc3.INITIAL_RETRY_TOKENS=D38;jc3.INVOCATION_ID_HEADER=$c3;jc3.MAXIMUM_RETRY_DELAY=X38;jc3.NO_RETRY_INCREMENT=xz7;jc3.REQUEST_HEADER=Oc3;jc3.RETRY_COST=Cz7;jc3.StandardRetryStrategy=Jz1;jc3.THROTTLING_RETRY_DELAY_BASE=hz7;jc3.TIMEOUT_RETRY_COST=Iz7});var v38=h((Cc3)=>{Cc3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Cc3.HttpAuthLocation||(Cc3.HttpAuthLocation={}));Cc3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Cc3.HttpApiKeyAuthLocation||(Cc3.HttpApiKeyAuthLocation={}));Cc3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(Cc3.EndpointURLScheme||(Cc3.EndpointURLScheme={}));Cc3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(Cc3.AlgorithmId||(Cc3.AlgorithmId={}));var Lc3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>Cc3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>Cc3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},yc3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},Rc3=(A)=>{return Lc3(A)},Sc3=(A)=>{return yc3(A)};Cc3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(Cc3.FieldPosition||(Cc3.FieldPosition={}));var hc3="__smithy_context";Cc3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(Cc3.IniSectionType||(Cc3.IniSectionType={}));Cc3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(Cc3.RequestHandlerProtocol||(Cc3.RequestHandlerProtocol={}));Cc3.SMITHY_CONTEXT_KEY=hc3;Cc3.getDefaultClientConfiguration=Rc3;Cc3.resolveDefaultRuntimeConfig=Sc3});var pz7=h((Fc3)=>{var uc3=v38(),mc3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},Bc3=(A)=>{return{httpHandler:A.httpHandler()}};class mz7{name;kind;values;constructor({name:A,kind:q=uc3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class Bz7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class Mz1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new Mz1({...A,headers:{...A.headers}});if(q.query)q.query=gc3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return Mz1.clone(this)}}function gc3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class gz7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function pc3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}Fc3.Field=mz7;Fc3.Fields=Bz7;Fc3.HttpRequest=Mz1;Fc3.HttpResponse=gz7;Fc3.getHttpHandlerExtensionConfiguration=mc3;Fc3.isValidHostname=pc3;Fc3.resolveHttpHandlerRuntimeConfig=Bc3});var tz7=h((qX6)=>{var Uz7=tm(),L38=Fv(),N38=v38(),rc3=RO(),Fz7=pv();class dz7{config;middlewareStack=Uz7.constructStack();initConfig;handlers;constructor(A){this.config=A}send(A,q,K){let Y=typeof q!=="function"?q:void 0,z=typeof q==="function"?q:K,w=Y===void 0&&this.config.cacheMiddleware===!0,_;if(w){if(!this.handlers)this.handlers=new WeakMap;let $=this.handlers;if($.has(A.constructor))_=$.get(A.constructor);else _=A.resolveMiddleware(this.middlewareStack,this.config,Y),$.set(A.constructor,_)}else delete this.handlers,_=A.resolveMiddleware(this.middlewareStack,this.config,Y);if(z)_(A).then(($)=>z(null,$.output),($)=>z($)).catch(()=>{});else return _(A).then(($)=>$.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var V38="***SensitiveInformation***";function k38(A,q){if(q==null)return q;let K=rc3.NormalizedSchema.of(A);if(K.getMergedTraits().sensitive)return V38;if(K.isListSchema()){if(!!K.getValueSchema().getMergedTraits().sensitive)return V38}else if(K.isMapSchema()){if(!!K.getKeySchema().getMergedTraits().sensitive||!!K.getValueSchema().getMergedTraits().sensitive)return V38}else if(K.isStructSchema()&&typeof q==="object"){let Y=q,z={};for(let[w,_]of K.structIterator())if(Y[w]!=null)z[w]=k38(_,Y[w]);return z}return q}class y38{middlewareStack=Uz7.constructStack();schema;static classBuilder(){return new cz7}resolveMiddlewareWithContext(A,q,K,{middlewareFn:Y,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,smithyContext:O,additionalContext:H,CommandCtor:j}){for(let P of Y.bind(this)(j,A,q,K))this.middlewareStack.use(P);let J=A.concat(this.middlewareStack),{logger:M}=q,D={logger:M,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,[N38.SMITHY_CONTEXT_KEY]:{commandInstance:this,...O},...H},{requestHandler:X}=q;return J.resolve((P)=>X.handle(P.request,K||{}),D)}}class cz7{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(A){this._init=A}ep(A){return this._ep=A,this}m(A){return this._middlewareFn=A,this}s(A,q,K={}){return this._smithyContext={service:A,operation:q,...K},this}c(A={}){return this._additionalContext=A,this}n(A,q){return this._clientName=A,this._commandName=q,this}f(A=(K)=>K,q=(K)=>K){return this._inputFilterSensitiveLog=A,this._outputFilterSensitiveLog=q,this}ser(A){return this._serializer=A,this}de(A){return this._deserializer=A,this}sc(A){return this._operationSchema=A,this._smithyContext.operationSchema=A,this}build(){let A=this,q;return q=class extends y38{input;static getEndpointParameterInstructions(){return A._ep}constructor(...[K]){super();this.input=K??{},A._init(this),this.schema=A._operationSchema}resolveMiddleware(K,Y,z){let w=A._operationSchema,_=w?.[4]??w?.input,$=w?.[5]??w?.output;return this.resolveMiddlewareWithContext(K,Y,z,{CommandCtor:q,middlewareFn:A._middlewareFn,clientName:A._clientName,commandName:A._commandName,inputFilterSensitiveLog:A._inputFilterSensitiveLog??(w?k38.bind(null,_):(O)=>O),outputFilterSensitiveLog:A._outputFilterSensitiveLog??(w?k38.bind(null,$):(O)=>O),smithyContext:A._smithyContext,additionalContext:A._additionalContext})}serialize=A._serializer;deserialize=A._deserializer}}}var oc3="***SensitiveInformation***",ac3=(A,q)=>{for(let K of Object.keys(A)){let Y=A[K],z=async function(_,$,O){let H=new Y(_);if(typeof $==="function")this.send(H,$);else if(typeof O==="function"){if(typeof $!=="object")throw Error(`Expected http options but got ${typeof $}`);this.send(H,$||{},O)}else return this.send(H,$)},w=(K[0].toLowerCase()+K.slice(1)).replace(/Command$/,"");q.prototype[w]=z}};class AX6 extends Error{$fault;$response;$retryable;$metadata;constructor(A){super(A.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=A.name,this.$fault=A.$fault,this.$metadata=A.$metadata}static isInstance(A){if(!A)return!1;let q=A;return AX6.prototype.isPrototypeOf(q)||Boolean(q.$fault)&&Boolean(q.$metadata)&&(q.$fault==="client"||q.$fault==="server")}static[Symbol.hasInstance](A){if(!A)return!1;let q=A;if(this===AX6)return AX6.isInstance(A);if(AX6.isInstance(A)){if(q.name&&this.name)return this.prototype.isPrototypeOf(A)||q.name===this.name;return this.prototype.isPrototypeOf(A)}return!1}}var lz7=(A,q={})=>{Object.entries(q).filter(([,Y])=>Y!==void 0).forEach(([Y,z])=>{if(A[Y]==null||A[Y]==="")A[Y]=z});let K=A.message||A.Message||"UnknownError";return A.message=K,delete A.Message,A},iz7=({output:A,parsedBody:q,exceptionCtor:K,errorCode:Y})=>{let z=tc3(A),w=z.httpStatusCode?z.httpStatusCode+"":void 0,_=new K({name:q?.code||q?.Code||Y||w||"UnknownError",$fault:"client",$metadata:z});throw lz7(_,q)},sc3=(A)=>{return({output:q,parsedBody:K,errorCode:Y})=>{iz7({output:q,parsedBody:K,exceptionCtor:A,errorCode:Y})}},tc3=(A)=>({httpStatusCode:A.statusCode,requestId:A.headers["x-amzn-requestid"]??A.headers["x-amzn-request-id"]??A.headers["x-amz-request-id"],extendedRequestId:A.headers["x-amz-id-2"],cfId:A.headers["x-amz-cf-id"]}),ec3=(A)=>{switch(A){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},Qz7=!1,Al3=(A)=>{if(A&&!Qz7&&parseInt(A.substring(1,A.indexOf(".")))<16)Qz7=!0},ql3=(A)=>{let q=[];for(let K in N38.AlgorithmId){let Y=N38.AlgorithmId[K];if(A[Y]===void 0)continue;q.push({algorithmId:()=>Y,checksumConstructor:()=>A[Y]})}return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},Kl3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},Yl3=(A)=>{return{setRetryStrategy(q){A.retryStrategy=q},retryStrategy(){return A.retryStrategy}}},zl3=(A)=>{let q={};return q.retryStrategy=A.retryStrategy(),q},nz7=(A)=>{return Object.assign(ql3(A),Yl3(A))},wl3=nz7,_l3=(A)=>{return Object.assign(Kl3(A),zl3(A))},$l3=(A)=>Array.isArray(A)?A:[A],rz7=(A)=>{for(let K in A)if(A.hasOwnProperty(K)&&A[K]["#text"]!==void 0)A[K]=A[K]["#text"];else if(typeof A[K]==="object"&&A[K]!==null)A[K]=rz7(A[K]);return A},Ol3=(A)=>{return A!=null};class oz7{trace(){}debug(){}info(){}warn(){}error(){}}function az7(A,q,K){let Y,z,w;if(typeof q>"u"&&typeof K>"u")Y={},w=A;else if(Y=A,typeof q==="function")return z=q,w=K,Jl3(Y,z,w);else w=q;for(let _ of Object.keys(w)){if(!Array.isArray(w[_])){Y[_]=w[_];continue}sz7(Y,null,w,_)}return Y}var Hl3=(A)=>{let q={};for(let[K,Y]of Object.entries(A||{}))q[K]=[,Y];return q},jl3=(A,q)=>{let K={};for(let Y in q)sz7(K,A,q,Y);return K},Jl3=(A,q,K)=>{return az7(A,Object.entries(K).reduce((Y,[z,w])=>{if(Array.isArray(w))Y[z]=w;else if(typeof w==="function")Y[z]=[q,w()];else Y[z]=[q,w];return Y},{}))},sz7=(A,q,K,Y)=>{if(q!==null){let _=K[Y];if(typeof _==="function")_=[,_];let[$=Ml3,O=Dl3,H=Y]=_;if(typeof $==="function"&&$(q[H])||typeof $!=="function"&&!!$)A[Y]=O(q[H]);return}let[z,w]=K[Y];if(typeof w==="function"){let _,$=z===void 0&&(_=w())!=null,O=typeof z==="function"&&!!z(void 0)||typeof z!=="function"&&!!z;if($)A[Y]=_;else if(O)A[Y]=w()}else{let _=z===void 0&&w!=null,$=typeof z==="function"&&!!z(w)||typeof z!=="function"&&!!z;if(_||$)A[Y]=w}},Ml3=(A)=>A!=null,Dl3=(A)=>A,Xl3=(A)=>{if(A!==A)return"NaN";switch(A){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return A}},Pl3=(A)=>A.toISOString().replace(".000Z","Z"),E38=(A)=>{if(A==null)return{};if(Array.isArray(A))return A.filter((q)=>q!=null).map(E38);if(typeof A==="object"){let q={};for(let K of Object.keys(A)){if(A[K]==null)continue;q[K]=E38(A[K])}return q}return A};Object.defineProperty(qX6,"collectBody",{enumerable:!0,get:function(){return L38.collectBody}});Object.defineProperty(qX6,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return L38.extendedEncodeURIComponent}});Object.defineProperty(qX6,"resolvedPath",{enumerable:!0,get:function(){return L38.resolvedPath}});qX6.Client=dz7;qX6.Command=y38;qX6.NoOpLogger=oz7;qX6.SENSITIVE_STRING=oc3;qX6.ServiceException=AX6;qX6._json=E38;qX6.convertMap=Hl3;qX6.createAggregatedClient=ac3;qX6.decorateServiceException=lz7;qX6.emitWarningIfUnsupportedVersion=Al3;qX6.getArrayIfSingleItem=$l3;qX6.getDefaultClientConfiguration=wl3;qX6.getDefaultExtensionConfiguration=nz7;qX6.getValueFromTextNode=rz7;qX6.isSerializableHeaderValue=Ol3;qX6.loadConfigsForDefaultMode=ec3;qX6.map=az7;qX6.resolveDefaultRuntimeConfig=_l3;qX6.serializeDateTime=Pl3;qX6.serializeFloat=Xl3;qX6.take=jl3;qX6.throwDefaultError=iz7;qX6.withBaseException=sc3;Object.keys(Fz7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(qX6,A))Object.defineProperty(qX6,A,{enumerable:!0,get:function(){return Fz7[A]}})})});var qw7=h((ez7)=>{Object.defineProperty(ez7,"__esModule",{value:!0});ez7.isStreamingPayload=void 0;var pl3=u6("stream"),Fl3=(A)=>A?.body instanceof pl3.Readable||typeof ReadableStream<"u"&&A?.body instanceof ReadableStream;ez7.isStreamingPayload=Fl3});var W0=h((el3)=>{var vH=YB(),KX6=pz7(),ds=J38(),Yw7=S48(),Kw7=WG(),Ql3=tz7(),Ul3=qw7(),dl3=(A,q)=>{let K=A,Y=vH.NO_RETRY_INCREMENT,z=vH.RETRY_COST,w=vH.TIMEOUT_RETRY_COST,_=A,$=(J)=>J.name==="TimeoutError"?w:z,O=(J)=>$(J)<=_;return Object.freeze({hasRetryTokens:O,retrieveRetryTokens:(J)=>{if(!O(J))throw Error("No retry token available");let M=$(J);return _-=M,M},releaseRetryTokens:(J)=>{_+=J??Y,_=Math.min(_,K)}})},zw7=(A,q)=>Math.floor(Math.min(vH.MAXIMUM_RETRY_DELAY,Math.random()*2**q*A)),ww7=(A)=>{if(!A)return!1;return ds.isRetryableByTrait(A)||ds.isClockSkewError(A)||ds.isThrottlingError(A)||ds.isTransientError(A)},_w7=(A)=>{if(A instanceof Error)return A;if(A instanceof Object)return Object.assign(Error(),A);if(typeof A==="string")return Error(A);return Error(`AWS SDK error wrapper for ${A}`)};class h38{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=vH.RETRY_MODES.STANDARD;constructor(A,q){this.maxAttemptsProvider=A,this.retryDecider=q?.retryDecider??ww7,this.delayDecider=q?.delayDecider??zw7,this.retryQuota=q?.retryQuota??dl3(vH.INITIAL_RETRY_TOKENS)}shouldRetry(A,q,K){return q<K&&this.retryDecider(A)&&this.retryQuota.hasRetryTokens(A)}async getMaxAttempts(){let A;try{A=await this.maxAttemptsProvider()}catch(q){A=vH.DEFAULT_MAX_ATTEMPTS}return A}async retry(A,q,K){let Y,z=0,w=0,_=await this.getMaxAttempts(),{request:$}=q;if(KX6.HttpRequest.isInstance($))$.headers[vH.INVOCATION_ID_HEADER]=Yw7.v4();while(!0)try{if(KX6.HttpRequest.isInstance($))$.headers[vH.REQUEST_HEADER]=`attempt=${z+1}; max=${_}`;if(K?.beforeRequest)await K.beforeRequest();let{response:O,output:H}=await A(q);if(K?.afterRequest)K.afterRequest(O);return this.retryQuota.releaseRetryTokens(Y),H.$metadata.attempts=z+1,H.$metadata.totalRetryDelay=w,{response:O,output:H}}catch(O){let H=_w7(O);if(z++,this.shouldRetry(H,z,_)){Y=this.retryQuota.retrieveRetryTokens(H);let j=this.delayDecider(ds.isThrottlingError(H)?vH.THROTTLING_RETRY_DELAY_BASE:vH.DEFAULT_RETRY_DELAY_BASE,z),J=cl3(H.$response),M=Math.max(J||0,j);w+=M,await new Promise((D)=>setTimeout(D,M));continue}if(!H.$metadata)H.$metadata={};throw H.$metadata.attempts=z,H.$metadata.totalRetryDelay=w,H}}}var cl3=(A)=>{if(!KX6.HttpResponse.isInstance(A))return;let q=Object.keys(A.headers).find((w)=>w.toLowerCase()==="retry-after");if(!q)return;let K=A.headers[q],Y=Number(K);if(!Number.isNaN(Y))return Y*1000;return new Date(K).getTime()-Date.now()};class $w7 extends h38{rateLimiter;constructor(A,q){let{rateLimiter:K,...Y}=q??{};super(A,Y);this.rateLimiter=K??new vH.DefaultRateLimiter,this.mode=vH.RETRY_MODES.ADAPTIVE}async retry(A,q){return super.retry(A,q,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(K)=>{this.rateLimiter.updateClientSendingRate(K)}})}}var R38="AWS_MAX_ATTEMPTS",S38="max_attempts",ll3={environmentVariableSelector:(A)=>{let q=A[R38];if(!q)return;let K=parseInt(q);if(Number.isNaN(K))throw Error(`Environment variable ${R38} mast be a number, got "${q}"`);return K},configFileSelector:(A)=>{let q=A[S38];if(!q)return;let K=parseInt(q);if(Number.isNaN(K))throw Error(`Shared config file entry ${S38} mast be a number, got "${q}"`);return K},default:vH.DEFAULT_MAX_ATTEMPTS},il3=(A)=>{let{retryStrategy:q,retryMode:K,maxAttempts:Y}=A,z=Kw7.normalizeProvider(Y??vH.DEFAULT_MAX_ATTEMPTS);return Object.assign(A,{maxAttempts:z,retryStrategy:async()=>{if(q)return q;if(await Kw7.normalizeProvider(K)()===vH.RETRY_MODES.ADAPTIVE)return new vH.AdaptiveRetryStrategy(z);return new vH.StandardRetryStrategy(z)}})},Ow7="AWS_RETRY_MODE",Hw7="retry_mode",nl3={environmentVariableSelector:(A)=>A[Ow7],configFileSelector:(A)=>A[Hw7],default:vH.DEFAULT_RETRY_MODE},jw7=()=>(A)=>async(q)=>{let{request:K}=q;if(KX6.HttpRequest.isInstance(K))delete K.headers[vH.INVOCATION_ID_HEADER],delete K.headers[vH.REQUEST_HEADER];return A(q)},Jw7={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},rl3=(A)=>({applyToStack:(q)=>{q.addRelativeTo(jw7(),Jw7)}}),Mw7=(A)=>(q,K)=>async(Y)=>{let z=await A.retryStrategy(),w=await A.maxAttempts();if(ol3(z)){z=z;let _=await z.acquireInitialRetryToken(K.partition_id),$=Error(),O=0,H=0,{request:j}=Y,J=KX6.HttpRequest.isInstance(j);if(J)j.headers[vH.INVOCATION_ID_HEADER]=Yw7.v4();while(!0)try{if(J)j.headers[vH.REQUEST_HEADER]=`attempt=${O+1}; max=${w}`;let{response:M,output:D}=await q(Y);return z.recordSuccess(_),D.$metadata.attempts=O+1,D.$metadata.totalRetryDelay=H,{response:M,output:D}}catch(M){let D=al3(M);if($=_w7(M),J&&Ul3.isStreamingPayload(j))throw(K.logger instanceof Ql3.NoOpLogger?console:K.logger)?.warn("An error was encountered in a non-retryable streaming request."),$;try{_=await z.refreshRetryTokenForRetry(_,D)}catch(P){if(!$.$metadata)$.$metadata={};throw $.$metadata.attempts=O+1,$.$metadata.totalRetryDelay=H,$}O=_.getRetryCount();let X=_.getRetryDelay();H+=X,await new Promise((P)=>setTimeout(P,X))}}else{if(z=z,z?.mode)K.userAgent=[...K.userAgent||[],["cfg/retry-mode",z.mode]];return z.retry(q,Y)}},ol3=(A)=>typeof A.acquireInitialRetryToken<"u"&&typeof A.refreshRetryTokenForRetry<"u"&&typeof A.recordSuccess<"u",al3=(A)=>{let q={error:A,errorType:sl3(A)},K=Xw7(A.$response);if(K)q.retryAfterHint=K;return q},sl3=(A)=>{if(ds.isThrottlingError(A))return"THROTTLING";if(ds.isTransientError(A))return"TRANSIENT";if(ds.isServerError(A))return"SERVER_ERROR";return"CLIENT_ERROR"},Dw7={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},tl3=(A)=>({applyToStack:(q)=>{q.add(Mw7(A),Dw7)}}),Xw7=(A)=>{if(!KX6.HttpResponse.isInstance(A))return;let q=Object.keys(A.headers).find((w)=>w.toLowerCase()==="retry-after");if(!q)return;let K=A.headers[q],Y=Number(K);if(!Number.isNaN(Y))return new Date(Y*1000);return new Date(K)};el3.AdaptiveRetryStrategy=$w7;el3.CONFIG_MAX_ATTEMPTS=S38;el3.CONFIG_RETRY_MODE=Hw7;el3.ENV_MAX_ATTEMPTS=R38;el3.ENV_RETRY_MODE=Ow7;el3.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=ll3;el3.NODE_RETRY_MODE_CONFIG_OPTIONS=nl3;el3.StandardRetryStrategy=h38;el3.defaultDelayDecider=zw7;el3.defaultRetryDecider=ww7;el3.getOmitRetryHeadersPlugin=rl3;el3.getRetryAfterHint=Xw7;el3.getRetryPlugin=tl3;el3.omitRetryHeadersMiddleware=jw7;el3.omitRetryHeadersMiddlewareOptions=Jw7;el3.resolveRetryConfig=il3;el3.retryMiddleware=Mw7;el3.retryMiddlewareOptions=Dw7});var B38=h((Ni3)=>{Ni3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Ni3.HttpAuthLocation||(Ni3.HttpAuthLocation={}));Ni3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Ni3.HttpApiKeyAuthLocation||(Ni3.HttpApiKeyAuthLocation={}));Ni3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(Ni3.EndpointURLScheme||(Ni3.EndpointURLScheme={}));Ni3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(Ni3.AlgorithmId||(Ni3.AlgorithmId={}));var Zi3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>Ni3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>Ni3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},fi3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},Ti3=(A)=>{return Zi3(A)},vi3=(A)=>{return fi3(A)};Ni3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(Ni3.FieldPosition||(Ni3.FieldPosition={}));var Vi3="__smithy_context";Ni3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(Ni3.IniSectionType||(Ni3.IniSectionType={}));Ni3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(Ni3.RequestHandlerProtocol||(Ni3.RequestHandlerProtocol={}));Ni3.SMITHY_CONTEXT_KEY=Vi3;Ni3.getDefaultClientConfiguration=Ti3;Ni3.resolveDefaultRuntimeConfig=vi3});var Xf=h((zX6)=>{var Gw7=tm(),U38=Fv(),p38=B38(),yi3=RO(),Pw7=pv();class Zw7{config;middlewareStack=Gw7.constructStack();initConfig;handlers;constructor(A){this.config=A}send(A,q,K){let Y=typeof q!=="function"?q:void 0,z=typeof q==="function"?q:K,w=Y===void 0&&this.config.cacheMiddleware===!0,_;if(w){if(!this.handlers)this.handlers=new WeakMap;let $=this.handlers;if($.has(A.constructor))_=$.get(A.constructor);else _=A.resolveMiddleware(this.middlewareStack,this.config,Y),$.set(A.constructor,_)}else delete this.handlers,_=A.resolveMiddleware(this.middlewareStack,this.config,Y);if(z)_(A).then(($)=>z(null,$.output),($)=>z($)).catch(()=>{});else return _(A).then(($)=>$.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var g38="***SensitiveInformation***";function F38(A,q){if(q==null)return q;let K=yi3.NormalizedSchema.of(A);if(K.getMergedTraits().sensitive)return g38;if(K.isListSchema()){if(!!K.getValueSchema().getMergedTraits().sensitive)return g38}else if(K.isMapSchema()){if(!!K.getKeySchema().getMergedTraits().sensitive||!!K.getValueSchema().getMergedTraits().sensitive)return g38}else if(K.isStructSchema()&&typeof q==="object"){let Y=q,z={};for(let[w,_]of K.structIterator())if(Y[w]!=null)z[w]=F38(_,Y[w]);return z}return q}class d38{middlewareStack=Gw7.constructStack();schema;static classBuilder(){return new fw7}resolveMiddlewareWithContext(A,q,K,{middlewareFn:Y,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,smithyContext:O,additionalContext:H,CommandCtor:j}){for(let P of Y.bind(this)(j,A,q,K))this.middlewareStack.use(P);let J=A.concat(this.middlewareStack),{logger:M}=q,D={logger:M,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,[p38.SMITHY_CONTEXT_KEY]:{commandInstance:this,...O},...H},{requestHandler:X}=q;return J.resolve((P)=>X.handle(P.request,K||{}),D)}}class fw7{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(A){this._init=A}ep(A){return this._ep=A,this}m(A){return this._middlewareFn=A,this}s(A,q,K={}){return this._smithyContext={service:A,operation:q,...K},this}c(A={}){return this._additionalContext=A,this}n(A,q){return this._clientName=A,this._commandName=q,this}f(A=(K)=>K,q=(K)=>K){return this._inputFilterSensitiveLog=A,this._outputFilterSensitiveLog=q,this}ser(A){return this._serializer=A,this}de(A){return this._deserializer=A,this}sc(A){return this._operationSchema=A,this._smithyContext.operationSchema=A,this}build(){let A=this,q;return q=class extends d38{input;static getEndpointParameterInstructions(){return A._ep}constructor(...[K]){super();this.input=K??{},A._init(this),this.schema=A._operationSchema}resolveMiddleware(K,Y,z){let w=A._operationSchema,_=w?.[4]??w?.input,$=w?.[5]??w?.output;return this.resolveMiddlewareWithContext(K,Y,z,{CommandCtor:q,middlewareFn:A._middlewareFn,clientName:A._clientName,commandName:A._commandName,inputFilterSensitiveLog:A._inputFilterSensitiveLog??(w?F38.bind(null,_):(O)=>O),outputFilterSensitiveLog:A._outputFilterSensitiveLog??(w?F38.bind(null,$):(O)=>O),smithyContext:A._smithyContext,additionalContext:A._additionalContext})}serialize=A._serializer;deserialize=A._deserializer}}}var Ri3="***SensitiveInformation***",Si3=(A,q)=>{for(let K of Object.keys(A)){let Y=A[K],z=async function(_,$,O){let H=new Y(_);if(typeof $==="function")this.send(H,$);else if(typeof O==="function"){if(typeof $!=="object")throw Error(`Expected http options but got ${typeof $}`);this.send(H,$||{},O)}else return this.send(H,$)},w=(K[0].toLowerCase()+K.slice(1)).replace(/Command$/,"");q.prototype[w]=z}};class YX6 extends Error{$fault;$response;$retryable;$metadata;constructor(A){super(A.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=A.name,this.$fault=A.$fault,this.$metadata=A.$metadata}static isInstance(A){if(!A)return!1;let q=A;return YX6.prototype.isPrototypeOf(q)||Boolean(q.$fault)&&Boolean(q.$metadata)&&(q.$fault==="client"||q.$fault==="server")}static[Symbol.hasInstance](A){if(!A)return!1;let q=A;if(this===YX6)return YX6.isInstance(A);if(YX6.isInstance(A)){if(q.name&&this.name)return this.prototype.isPrototypeOf(A)||q.name===this.name;return this.prototype.isPrototypeOf(A)}return!1}}var Tw7=(A,q={})=>{Object.entries(q).filter(([,Y])=>Y!==void 0).forEach(([Y,z])=>{if(A[Y]==null||A[Y]==="")A[Y]=z});let K=A.message||A.Message||"UnknownError";return A.message=K,delete A.Message,A},vw7=({output:A,parsedBody:q,exceptionCtor:K,errorCode:Y})=>{let z=Ci3(A),w=z.httpStatusCode?z.httpStatusCode+"":void 0,_=new K({name:q?.code||q?.Code||Y||w||"UnknownError",$fault:"client",$metadata:z});throw Tw7(_,q)},hi3=(A)=>{return({output:q,parsedBody:K,errorCode:Y})=>{vw7({output:q,parsedBody:K,exceptionCtor:A,errorCode:Y})}},Ci3=(A)=>({httpStatusCode:A.statusCode,requestId:A.headers["x-amzn-requestid"]??A.headers["x-amzn-request-id"]??A.headers["x-amz-request-id"],extendedRequestId:A.headers["x-amz-id-2"],cfId:A.headers["x-amz-cf-id"]}),Ii3=(A)=>{switch(A){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},Ww7=!1,xi3=(A)=>{if(A&&!Ww7&&parseInt(A.substring(1,A.indexOf(".")))<16)Ww7=!0},bi3=(A)=>{let q=[];for(let K in p38.AlgorithmId){let Y=p38.AlgorithmId[K];if(A[Y]===void 0)continue;q.push({algorithmId:()=>Y,checksumConstructor:()=>A[Y]})}return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},ui3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},mi3=(A)=>{return{setRetryStrategy(q){A.retryStrategy=q},retryStrategy(){return A.retryStrategy}}},Bi3=(A)=>{let q={};return q.retryStrategy=A.retryStrategy(),q},Vw7=(A)=>{return Object.assign(bi3(A),mi3(A))},gi3=Vw7,pi3=(A)=>{return Object.assign(ui3(A),Bi3(A))},Fi3=(A)=>Array.isArray(A)?A:[A],Nw7=(A)=>{for(let K in A)if(A.hasOwnProperty(K)&&A[K]["#text"]!==void 0)A[K]=A[K]["#text"];else if(typeof A[K]==="object"&&A[K]!==null)A[K]=Nw7(A[K]);return A},Qi3=(A)=>{return A!=null};class kw7{trace(){}debug(){}info(){}warn(){}error(){}}function Ew7(A,q,K){let Y,z,w;if(typeof q>"u"&&typeof K>"u")Y={},w=A;else if(Y=A,typeof q==="function")return z=q,w=K,ci3(Y,z,w);else w=q;for(let _ of Object.keys(w)){if(!Array.isArray(w[_])){Y[_]=w[_];continue}Lw7(Y,null,w,_)}return Y}var Ui3=(A)=>{let q={};for(let[K,Y]of Object.entries(A||{}))q[K]=[,Y];return q},di3=(A,q)=>{let K={};for(let Y in q)Lw7(K,A,q,Y);return K},ci3=(A,q,K)=>{return Ew7(A,Object.entries(K).reduce((Y,[z,w])=>{if(Array.isArray(w))Y[z]=w;else if(typeof w==="function")Y[z]=[q,w()];else Y[z]=[q,w];return Y},{}))},Lw7=(A,q,K,Y)=>{if(q!==null){let _=K[Y];if(typeof _==="function")_=[,_];let[$=li3,O=ii3,H=Y]=_;if(typeof $==="function"&&$(q[H])||typeof $!=="function"&&!!$)A[Y]=O(q[H]);return}let[z,w]=K[Y];if(typeof w==="function"){let _,$=z===void 0&&(_=w())!=null,O=typeof z==="function"&&!!z(void 0)||typeof z!=="function"&&!!z;if($)A[Y]=_;else if(O)A[Y]=w()}else{let _=z===void 0&&w!=null,$=typeof z==="function"&&!!z(w)||typeof z!=="function"&&!!z;if(_||$)A[Y]=w}},li3=(A)=>A!=null,ii3=(A)=>A,ni3=(A)=>{if(A!==A)return"NaN";switch(A){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return A}},ri3=(A)=>A.toISOString().replace(".000Z","Z"),Q38=(A)=>{if(A==null)return{};if(Array.isArray(A))return A.filter((q)=>q!=null).map(Q38);if(typeof A==="object"){let q={};for(let K of Object.keys(A)){if(A[K]==null)continue;q[K]=Q38(A[K])}return q}return A};Object.defineProperty(zX6,"collectBody",{enumerable:!0,get:function(){return U38.collectBody}});Object.defineProperty(zX6,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return U38.extendedEncodeURIComponent}});Object.defineProperty(zX6,"resolvedPath",{enumerable:!0,get:function(){return U38.resolvedPath}});zX6.Client=Zw7;zX6.Command=d38;zX6.NoOpLogger=kw7;zX6.SENSITIVE_STRING=Ri3;zX6.ServiceException=YX6;zX6._json=Q38;zX6.convertMap=Ui3;zX6.createAggregatedClient=Si3;zX6.decorateServiceException=Tw7;zX6.emitWarningIfUnsupportedVersion=xi3;zX6.getArrayIfSingleItem=Fi3;zX6.getDefaultClientConfiguration=gi3;zX6.getDefaultExtensionConfiguration=Vw7;zX6.getValueFromTextNode=Nw7;zX6.isSerializableHeaderValue=Qi3;zX6.loadConfigsForDefaultMode=Ii3;zX6.map=Ew7;zX6.resolveDefaultRuntimeConfig=pi3;zX6.serializeDateTime=ri3;zX6.serializeFloat=ni3;zX6.take=di3;zX6.throwDefaultError=vw7;zX6.withBaseException=hi3;Object.keys(Pw7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(zX6,A))Object.defineProperty(zX6,A,{enumerable:!0,get:function(){return Pw7[A]}})})});var l38=h((yw7)=>{Object.defineProperty(yw7,"__esModule",{value:!0});yw7.resolveHttpAuthSchemeConfig=yw7.defaultSSOOIDCHttpAuthSchemeProvider=yw7.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var Zn3=o_(),c38=WG(),fn3=async(A,q,K)=>{return{operation:(0,c38.getSmithyContext)(q).operation,region:await(0,c38.normalizeProvider)(A.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};yw7.defaultSSOOIDCHttpAuthSchemeParametersProvider=fn3;function Tn3(A){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:A.region},propertiesExtractor:(q,K)=>({signingProperties:{config:q,context:K}})}}function vn3(A){return{schemeId:"smithy.api#noAuth"}}var Vn3=(A)=>{let q=[];switch(A.operation){case"CreateToken":{q.push(vn3(A));break}default:q.push(Tn3(A))}return q};yw7.defaultSSOOIDCHttpAuthSchemeProvider=Vn3;var Nn3=(A)=>{let q=(0,Zn3.resolveAwsSdkSigV4Config)(A);return Object.assign(q,{authSchemePreference:(0,c38.normalizeProvider)(A.authSchemePreference??[])})};yw7.resolveHttpAuthSchemeConfig=Nn3});var Dz1=h((lY2,Ln3)=>{Ln3.exports={name:"@aws-sdk/nested-clients",version:"3.936.0",description:"Nested clients for AWS SDK packages.",main:"./dist-cjs/index.js",module:"./dist-es/index.js",types:"./dist-types/index.d.ts",scripts:{build:"yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo",lint:"node ../../scripts/validation/submodules-linter.js --pkg nested-clients",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},engines:{node:">=18.0.0"},sideEffects:!1,author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.936.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.936.0","@aws-sdk/middleware-user-agent":"3.936.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.936.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.5","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.12","@smithy/middleware-retry":"^4.4.12","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.8","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.11","@smithy/util-defaults-mode-node":"^4.2.14","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.8.3"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],browser:{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"}}}});var hd=h((In3)=>{var Sw7=u6("os"),i38=u6("process"),yn3=KB(),hw7={isCrtAvailable:!1},Rn3=()=>{if(hw7.isCrtAvailable)return["md/crt-avail"];return null},Cw7=({serviceId:A,clientVersion:q})=>{return async(K)=>{let Y=[["aws-sdk-js",q],["ua","2.1"],[`os/${Sw7.platform()}`,Sw7.release()],["lang/js"],["md/nodejs",`${i38.versions.node}`]],z=Rn3();if(z)Y.push(z);if(A)Y.push([`api/${A}`,q]);if(i38.env.AWS_EXECUTION_ENV)Y.push([`exec-env/${i38.env.AWS_EXECUTION_ENV}`]);let w=await K?.userAgentAppId?.();return w?[...Y,[`app/${w}`]]:[...Y]}},Sn3=Cw7,Iw7="AWS_SDK_UA_APP_ID",xw7="sdk_ua_app_id",hn3="sdk-ua-app-id",Cn3={environmentVariableSelector:(A)=>A[Iw7],configFileSelector:(A)=>A[xw7]??A[hn3],default:yn3.DEFAULT_UA_APP_ID};In3.NODE_APP_ID_CONFIG_OPTIONS=Cn3;In3.UA_APP_ID_ENV_NAME=Iw7;In3.UA_APP_ID_INI_NAME=xw7;In3.createDefaultUserAgentProvider=Cw7;In3.crtAvailability=hw7;In3.defaultUserAgent=Sn3});var bw7=h((Fn3)=>{var pn3=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";Fn3.isArrayBuffer=pn3});var uw7=h((ln3)=>{var Un3=bw7(),n38=u6("buffer"),dn3=(A,q=0,K=A.byteLength-q)=>{if(!Un3.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return n38.Buffer.from(A,q,K)},cn3=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?n38.Buffer.from(A,q):n38.Buffer.from(A)};ln3.fromArrayBuffer=dn3;ln3.fromString=cn3});var Cd=h((an3)=>{var r38=uw7(),rn3=K2(),on3=u6("buffer"),mw7=u6("crypto");class gw7{algorithmIdentifier;secret;hash;constructor(A,q){this.algorithmIdentifier=A,this.secret=q,this.reset()}update(A,q){this.hash.update(rn3.toUint8Array(Bw7(A,q)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?mw7.createHmac(this.algorithmIdentifier,Bw7(this.secret)):mw7.createHash(this.algorithmIdentifier)}}function Bw7(A,q){if(on3.Buffer.isBuffer(A))return A;if(typeof A==="string")return r38.fromString(A,q);if(ArrayBuffer.isView(A))return r38.fromArrayBuffer(A.buffer,A.byteOffset,A.byteLength);return r38.fromArrayBuffer(A)}an3.Hash=gw7});var Id=h((en3)=>{var o38=u6("node:fs"),tn3=(A)=>{if(!A)return 0;if(typeof A==="string")return Buffer.byteLength(A);else if(typeof A.byteLength==="number")return A.byteLength;else if(typeof A.size==="number")return A.size;else if(typeof A.start==="number"&&typeof A.end==="number")return A.end+1-A.start;else if(A instanceof o38.ReadStream){if(A.path!=null)return o38.lstatSync(A.path).size;else if(typeof A.fd==="number")return o38.fstatSync(A.fd).size}throw Error(`Body Length computation failed for ${A}`)};en3.calculateBodyLength=tn3});var bd=h((Or3)=>{var pw7=SK8(),z2=RO(),xd=mK8(),G0=Fv(),xX=pv(),Nb6=pK8(),Qw7=K2(),dy=UK8();class wX6{queryCompat;constructor(A=!1){this.queryCompat=A}resolveRestContentType(A,q){let K=q.getMemberSchemas(),Y=Object.values(K).find((z)=>{return!!z.getMergedTraits().httpPayload});if(Y){let z=Y.getMergedTraits().mediaType;if(z)return z;else if(Y.isStringSchema())return"text/plain";else if(Y.isBlobSchema())return"application/octet-stream";else return A}else if(!q.isUnitSchema()){if(Object.values(K).find((w)=>{let{httpQuery:_,httpQueryParams:$,httpHeader:O,httpLabel:H,httpPrefixHeaders:j}=w.getMergedTraits();return!_&&!$&&!O&&!H&&j===void 0}))return A}}async getErrorSchemaOrThrowBaseException(A,q,K,Y,z,w){let _=q,$=A;if(A.includes("#"))[_,$]=A.split("#");let O={$metadata:z,$fault:K.statusCode<500?"client":"server"},H=z2.TypeRegistry.for(_);try{return{errorSchema:w?.(H,$)??H.getSchema(A),errorMetadata:O}}catch(j){Y.message=Y.message??Y.Message??"UnknownError";let J=z2.TypeRegistry.for("smithy.ts.sdk.synthetic."+_),M=J.getBaseException();if(M){let D=J.getErrorCtor(M)??Error;throw this.decorateServiceException(Object.assign(new D({name:$}),O),Y)}throw this.decorateServiceException(Object.assign(Error($),O),Y)}}decorateServiceException(A,q={}){if(this.queryCompat){let K=A.Message??q.Message,Y=xd.decorateServiceException(A,q);if(K)Y.Message=K,Y.message=K;return Y}return xd.decorateServiceException(A,q)}setQueryCompatError(A,q){let K=q.headers?.["x-amzn-query-error"];if(A!==void 0&&K!=null){let[Y,z]=K.split(";"),w=Object.entries(A),_={Code:Y,Type:z};Object.assign(A,_);for(let[$,O]of w)_[$]=O;delete _.__type,A.Error=_}}queryCompatOutput(A,q){if(A.Error)q.Error=A.Error;if(A.Type)q.Type=A.Type;if(A.Code)q.Code=A.Code}}class Uw7 extends pw7.SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace:A,awsQueryCompatible:q}){super({defaultNamespace:A});this.awsQueryCompatible=!!q,this.mixin=new wX6(this.awsQueryCompatible)}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K);if(this.awsQueryCompatible)Y.headers["x-amzn-query-mode"]="true";return Y}async handleError(A,q,K,Y,z){if(this.awsQueryCompatible)this.mixin.setQueryCompatError(Y,K);let w=pw7.loadSmithyRpcV2CborErrorCode(K,Y)??"Unknown",{errorSchema:_,errorMetadata:$}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,Y,z),O=z2.NormalizedSchema.of(_),H=Y.message??Y.Message??"Unknown",J=new(z2.TypeRegistry.for(_[1]).getErrorCtor(_)??Error)(H),M={};for(let[D,X]of O.structIterator())M[D]=this.deserializer.readValue(X,Y[D]);if(this.awsQueryCompatible)this.mixin.queryCompatOutput(Y,M);throw this.mixin.decorateServiceException(Object.assign(J,$,{$fault:O.getMergedTraits().error,message:H},M),Y)}}var qr3=(A)=>{if(A==null)return A;if(typeof A==="number"||typeof A==="bigint"){let q=Error(`Received number ${A} where a string was expected.`);return q.name="Warning",console.warn(q),String(A)}if(typeof A==="boolean"){let q=Error(`Received boolean ${A} where a string was expected.`);return q.name="Warning",console.warn(q),String(A)}return A},Kr3=(A)=>{if(A==null)return A;if(typeof A==="string"){let q=A.toLowerCase();if(A!==""&&q!=="false"&&q!=="true"){let K=Error(`Received string "${A}" where a boolean was expected.`);K.name="Warning",console.warn(K)}return A!==""&&q!=="false"}return A},Yr3=(A)=>{if(A==null)return A;if(typeof A==="string"){let q=Number(A);if(q.toString()!==A){let K=Error(`Received string "${A}" where a number was expected.`);return K.name="Warning",console.warn(K),A}return q}return A};class cs{serdeContext;setSerdeContext(A){this.serdeContext=A}}function zr3(A,q,K){if(K?.source){let Y=K.source;if(typeof q==="number"){if(q>Number.MAX_SAFE_INTEGER||q<Number.MIN_SAFE_INTEGER||Y!==String(q))if(Y.includes("."))return new xX.NumericValue(Y,"bigDecimal");else return BigInt(Y)}}return q}var dw7=(A,q)=>xd.collectBody(A,q).then((K)=>(q?.utf8Encoder??Qw7.toUtf8)(K)),a38=(A,q)=>dw7(A,q).then((K)=>{if(K.length)try{return JSON.parse(K)}catch(Y){if(Y?.name==="SyntaxError")Object.defineProperty(Y,"$responseBodyText",{value:K});throw Y}return{}}),wr3=async(A,q)=>{let K=await a38(A,q);return K.message=K.message??K.Message,K},s38=(A,q)=>{let K=(w,_)=>Object.keys(w).find(($)=>$.toLowerCase()===_.toLowerCase()),Y=(w)=>{let _=w;if(typeof _==="number")_=_.toString();if(_.indexOf(",")>=0)_=_.split(",")[0];if(_.indexOf(":")>=0)_=_.split(":")[0];if(_.indexOf("#")>=0)_=_.split("#")[1];return _},z=K(A.headers,"x-amzn-errortype");if(z!==void 0)return Y(A.headers[z]);if(q&&typeof q==="object"){let w=K(q,"code");if(w&&q[w]!==void 0)return Y(q[w]);if(q.__type!==void 0)return Y(q.__type)}};class t38 extends cs{settings;constructor(A){super();this.settings=A}async read(A,q){return this._read(A,typeof q==="string"?JSON.parse(q,zr3):await a38(q,this.serdeContext))}readObject(A,q){return this._read(A,q)}_read(A,q){let K=q!==null&&typeof q==="object",Y=z2.NormalizedSchema.of(A);if(Y.isListSchema()&&Array.isArray(q)){let w=Y.getValueSchema(),_=[],$=!!Y.getMergedTraits().sparse;for(let O of q)if($||O!=null)_.push(this._read(w,O));return _}else if(Y.isMapSchema()&&K){let w=Y.getValueSchema(),_={},$=!!Y.getMergedTraits().sparse;for(let[O,H]of Object.entries(q))if($||H!=null)_[O]=this._read(w,H);return _}else if(Y.isStructSchema()&&K){let w={};for(let[_,$]of Y.structIterator()){let O=this.settings.jsonName?$.getMergedTraits().jsonName??_:_,H=this._read($,q[O]);if(H!=null)w[_]=H}return w}if(Y.isBlobSchema()&&typeof q==="string")return Nb6.fromBase64(q);let z=Y.getMergedTraits().mediaType;if(Y.isStringSchema()&&typeof q==="string"&&z){if(z==="application/json"||z.endsWith("+json"))return xX.LazyJsonString.from(q)}if(Y.isTimestampSchema()&&q!=null)switch(G0.determineTimestampFormat(Y,this.settings)){case 5:return xX.parseRfc3339DateTimeWithOffset(q);case 6:return xX.parseRfc7231DateTime(q);case 7:return xX.parseEpochTimestamp(q);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",q),new Date(q)}if(Y.isBigIntegerSchema()&&(typeof q==="number"||typeof q==="string"))return BigInt(q);if(Y.isBigDecimalSchema()&&q!=null){if(q instanceof xX.NumericValue)return q;let w=q;if(w.type==="bigDecimal"&&"string"in w)return new xX.NumericValue(w.string,w.type);return new xX.NumericValue(String(q),"bigDecimal")}if(Y.isNumericSchema()&&typeof q==="string")switch(q){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}if(Y.isDocumentSchema())if(K){let w=Array.isArray(q)?[]:{};for(let[_,$]of Object.entries(q))if($ instanceof xX.NumericValue)w[_]=$;else w[_]=this._read(Y,$);return w}else return structuredClone(q);return q}}var Fw7=String.fromCharCode(925);class cw7{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(A,q)=>{if(q instanceof xX.NumericValue){let K=`${Fw7+"nv"+this.counter++}_`+q.string;return this.values.set(`"${K}"`,q.string),K}if(typeof q==="bigint"){let K=q.toString(),Y=`${Fw7+"b"+this.counter++}_`+K;return this.values.set(`"${Y}"`,K),Y}return q}}replaceInJson(A){if(this.stage===0)throw Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return A;for(let[q,K]of this.values)A=A.replace(q,K);return A}}class e38 extends cs{settings;buffer;rootSchema;constructor(A){super();this.settings=A}write(A,q){this.rootSchema=z2.NormalizedSchema.of(A),this.buffer=this._write(this.rootSchema,q)}writeDiscriminatedDocument(A,q){if(this.write(A,q),typeof this.buffer==="object")this.buffer.__type=z2.NormalizedSchema.of(A).getName(!0)}flush(){let{rootSchema:A}=this;if(this.rootSchema=void 0,A?.isStructSchema()||A?.isDocumentSchema()){let q=new cw7;return q.replaceInJson(JSON.stringify(this.buffer,q.createReplacer(),0))}return this.buffer}_write(A,q,K){let Y=q!==null&&typeof q==="object",z=z2.NormalizedSchema.of(A);if(z.isListSchema()&&Array.isArray(q)){let w=z.getValueSchema(),_=[],$=!!z.getMergedTraits().sparse;for(let O of q)if($||O!=null)_.push(this._write(w,O));return _}else if(z.isMapSchema()&&Y){let w=z.getValueSchema(),_={},$=!!z.getMergedTraits().sparse;for(let[O,H]of Object.entries(q))if($||H!=null)_[O]=this._write(w,H);return _}else if(z.isStructSchema()&&Y){let w={};for(let[_,$]of z.structIterator()){let O=this.settings.jsonName?$.getMergedTraits().jsonName??_:_,H=this._write($,q[_],z);if(H!==void 0)w[O]=H}return w}if(q===null&&K?.isStructSchema())return;if(z.isBlobSchema()&&(q instanceof Uint8Array||typeof q==="string")||z.isDocumentSchema()&&q instanceof Uint8Array){if(z===this.rootSchema)return q;return(this.serdeContext?.base64Encoder??Nb6.toBase64)(q)}if((z.isTimestampSchema()||z.isDocumentSchema())&&q instanceof Date)switch(G0.determineTimestampFormat(z,this.settings)){case 5:return q.toISOString().replace(".000Z","Z");case 6:return xX.dateToUtcString(q);case 7:return q.getTime()/1000;default:return console.warn("Missing timestamp format, using epoch seconds",q),q.getTime()/1000}if(z.isNumericSchema()&&typeof q==="number"){if(Math.abs(q)===1/0||isNaN(q))return String(q)}if(z.isStringSchema()){if(typeof q>"u"&&z.isIdempotencyToken())return xX.generateIdempotencyToken();let w=z.getMergedTraits().mediaType;if(q!=null&&w){if(w==="application/json"||w.endsWith("+json"))return xX.LazyJsonString.from(q)}}if(z.isDocumentSchema())if(Y){let w=Array.isArray(q)?[]:{};for(let[_,$]of Object.entries(q))if($ instanceof xX.NumericValue)w[_]=$;else w[_]=this._write(z,$);return w}else return structuredClone(q);return q}}class Xz1 extends cs{settings;constructor(A){super();this.settings=A}createSerializer(){let A=new e38(this.settings);return A.setSerdeContext(this.serdeContext),A}createDeserializer(){let A=new t38(this.settings);return A.setSerdeContext(this.serdeContext),A}}class Pz1 extends G0.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K}){super({defaultNamespace:A});this.serviceTarget=q,this.codec=new Xz1({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!K,this.mixin=new wX6(this.awsQueryCompatible)}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K);if(!Y.path.endsWith("/"))Y.path+="/";if(Object.assign(Y.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${A.name}`}),this.awsQueryCompatible)Y.headers["x-amzn-query-mode"]="true";if(z2.deref(A.input)==="unit"||!Y.body)Y.body="{}";return Y}getPayloadCodec(){return this.codec}async handleError(A,q,K,Y,z){if(this.awsQueryCompatible)this.mixin.setQueryCompatError(Y,K);let w=s38(K,Y)??"Unknown",{errorSchema:_,errorMetadata:$}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,Y,z),O=z2.NormalizedSchema.of(_),H=Y.message??Y.Message??"Unknown",J=new(z2.TypeRegistry.for(_[1]).getErrorCtor(_)??Error)(H),M={};for(let[D,X]of O.structIterator()){let P=X.getMergedTraits().jsonName??D;M[D]=this.codec.createDeserializer().readObject(X,Y[P])}if(this.awsQueryCompatible)this.mixin.queryCompatOutput(Y,M);throw this.mixin.decorateServiceException(Object.assign(J,$,{$fault:O.getMergedTraits().error,message:H},M),Y)}}class lw7 extends Pz1{constructor({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K}){super({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class iw7 extends Pz1{constructor({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K}){super({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class nw7 extends G0.HttpBindingProtocol{serializer;deserializer;codec;mixin=new wX6;constructor({defaultNamespace:A}){super({defaultNamespace:A});let q={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new Xz1(q),this.serializer=new G0.HttpInterceptingShapeSerializer(this.codec.createSerializer(),q),this.deserializer=new G0.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),q)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(A){this.codec.setSerdeContext(A),super.setSerdeContext(A)}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K),z=z2.NormalizedSchema.of(A.input);if(!Y.headers["content-type"]){let w=this.mixin.resolveRestContentType(this.getDefaultContentType(),z);if(w)Y.headers["content-type"]=w}if(Y.body==null&&Y.headers["content-type"]===this.getDefaultContentType())Y.body="{}";return Y}async deserializeResponse(A,q,K){let Y=await super.deserializeResponse(A,q,K),z=z2.NormalizedSchema.of(A.output);for(let[w,_]of z.structIterator())if(_.getMemberTraits().httpPayload&&!(w in Y))Y[w]=null;return Y}async handleError(A,q,K,Y,z){let w=s38(K,Y)??"Unknown",{errorSchema:_,errorMetadata:$}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,Y,z),O=z2.NormalizedSchema.of(_),H=Y.message??Y.Message??"Unknown",J=new(z2.TypeRegistry.for(_[1]).getErrorCtor(_)??Error)(H);await this.deserializeHttpMessage(_,q,K,Y);let M={};for(let[D,X]of O.structIterator()){let P=X.getMergedTraits().jsonName??D;M[D]=this.codec.createDeserializer().readObject(X,Y[P])}throw this.mixin.decorateServiceException(Object.assign(J,$,{$fault:O.getMergedTraits().error,message:H},M),Y)}getDefaultContentType(){return"application/json"}}var _r3=(A)=>{if(A==null)return;if(typeof A==="object"&&"__type"in A)delete A.__type;return xd.expectUnion(A)};class Wz1 extends cs{settings;stringDeserializer;constructor(A){super();this.settings=A,this.stringDeserializer=new G0.FromStringShapeDeserializer(A)}setSerdeContext(A){this.serdeContext=A,this.stringDeserializer.setSerdeContext(A)}read(A,q,K){let Y=z2.NormalizedSchema.of(A),z=Y.getMemberSchemas();if(Y.isStructSchema()&&Y.isMemberSchema()&&!!Object.values(z).find((O)=>{return!!O.getMemberTraits().eventPayload})){let O={},H=Object.keys(z)[0];if(z[H].isBlobSchema())O[H]=q;else O[H]=this.read(z[H],q);return O}let _=(this.serdeContext?.utf8Encoder??Qw7.toUtf8)(q),$=this.parseXml(_);return this.readSchema(A,K?$[K]:$)}readSchema(A,q){let K=z2.NormalizedSchema.of(A);if(K.isUnitSchema())return;let Y=K.getMergedTraits();if(K.isListSchema()&&!Array.isArray(q))return this.readSchema(K,[q]);if(q==null)return q;if(typeof q==="object"){let z=!!Y.sparse,w=!!Y.xmlFlattened;if(K.isListSchema()){let $=K.getValueSchema(),O=[],H=$.getMergedTraits().xmlName??"member",j=w?q:(q[0]??q)[H],J=Array.isArray(j)?j:[j];for(let M of J)if(M!=null||z)O.push(this.readSchema($,M));return O}let _={};if(K.isMapSchema()){let $=K.getKeySchema(),O=K.getValueSchema(),H;if(w)H=Array.isArray(q)?q:[q];else H=Array.isArray(q.entry)?q.entry:[q.entry];let j=$.getMergedTraits().xmlName??"key",J=O.getMergedTraits().xmlName??"value";for(let M of H){let D=M[j],X=M[J];if(X!=null||z)_[D]=this.readSchema(O,X)}return _}if(K.isStructSchema()){for(let[$,O]of K.structIterator()){let H=O.getMergedTraits(),j=!H.httpPayload?O.getMemberTraits().xmlName??$:H.xmlName??O.getName();if(q[j]!=null)_[$]=this.readSchema(O,q[j])}return _}if(K.isDocumentSchema())return q;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${K.getName(!0)}`)}if(K.isListSchema())return[];if(K.isMapSchema()||K.isStructSchema())return{};return this.stringDeserializer.read(K,q)}parseXml(A){if(A.length){let q;try{q=dy.parseXML(A)}catch(w){if(w&&typeof w==="object")Object.defineProperty(w,"$responseBodyText",{value:A});throw w}let K="#text",Y=Object.keys(q)[0],z=q[Y];if(z[K])z[Y]=z[K],delete z[K];return xd.getValueFromTextNode(z)}return{}}}class rw7 extends cs{settings;buffer;constructor(A){super();this.settings=A}write(A,q,K=""){if(this.buffer===void 0)this.buffer="";let Y=z2.NormalizedSchema.of(A);if(K&&!K.endsWith("."))K+=".";if(Y.isBlobSchema()){if(typeof q==="string"||q instanceof Uint8Array)this.writeKey(K),this.writeValue((this.serdeContext?.base64Encoder??Nb6.toBase64)(q))}else if(Y.isBooleanSchema()||Y.isNumericSchema()||Y.isStringSchema()){if(q!=null)this.writeKey(K),this.writeValue(String(q));else if(Y.isIdempotencyToken())this.writeKey(K),this.writeValue(xX.generateIdempotencyToken())}else if(Y.isBigIntegerSchema()){if(q!=null)this.writeKey(K),this.writeValue(String(q))}else if(Y.isBigDecimalSchema()){if(q!=null)this.writeKey(K),this.writeValue(q instanceof xX.NumericValue?q.string:String(q))}else if(Y.isTimestampSchema()){if(q instanceof Date)switch(this.writeKey(K),G0.determineTimestampFormat(Y,this.settings)){case 5:this.writeValue(q.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(xd.dateToUtcString(q));break;case 7:this.writeValue(String(q.getTime()/1000));break}}else if(Y.isDocumentSchema())throw Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${Y.getName(!0)}`);else if(Y.isListSchema()){if(Array.isArray(q))if(q.length===0){if(this.settings.serializeEmptyLists)this.writeKey(K),this.writeValue("")}else{let z=Y.getValueSchema(),w=this.settings.flattenLists||Y.getMergedTraits().xmlFlattened,_=1;for(let $ of q){if($==null)continue;let O=this.getKey("member",z.getMergedTraits().xmlName),H=w?`${K}${_}`:`${K}${O}.${_}`;this.write(z,$,H),++_}}}else if(Y.isMapSchema()){if(q&&typeof q==="object"){let z=Y.getKeySchema(),w=Y.getValueSchema(),_=Y.getMergedTraits().xmlFlattened,$=1;for(let[O,H]of Object.entries(q)){if(H==null)continue;let j=this.getKey("key",z.getMergedTraits().xmlName),J=_?`${K}${$}.${j}`:`${K}entry.${$}.${j}`,M=this.getKey("value",w.getMergedTraits().xmlName),D=_?`${K}${$}.${M}`:`${K}entry.${$}.${M}`;this.write(z,O,J),this.write(w,H,D),++$}}}else if(Y.isStructSchema()){if(q&&typeof q==="object")for(let[z,w]of Y.structIterator()){if(q[z]==null&&!w.isIdempotencyToken())continue;let _=this.getKey(z,w.getMergedTraits().xmlName),$=`${K}${_}`;this.write(w,q[z],$)}}else if(Y.isUnitSchema());else throw Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${Y.getName(!0)}`)}flush(){if(this.buffer===void 0)throw Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let A=this.buffer;return delete this.buffer,A}getKey(A,q){let K=q??A;if(this.settings.capitalizeKeys)return K[0].toUpperCase()+K.slice(1);return K}writeKey(A){if(A.endsWith("."))A=A.slice(0,A.length-1);this.buffer+=`&${G0.extendedEncodeURIComponent(A)}=`}writeValue(A){this.buffer+=G0.extendedEncodeURIComponent(A)}}class A58 extends G0.RpcProtocol{options;serializer;deserializer;mixin=new wX6;constructor(A){super({defaultNamespace:A.defaultNamespace});this.options=A;let q={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:A.xmlNamespace,serviceNamespace:A.defaultNamespace,serializeEmptyLists:!0};this.serializer=new rw7(q),this.deserializer=new Wz1(q)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(A){this.serializer.setSerdeContext(A),this.deserializer.setSerdeContext(A)}getPayloadCodec(){throw Error("AWSQuery protocol has no payload codec.")}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K);if(!Y.path.endsWith("/"))Y.path+="/";if(Object.assign(Y.headers,{"content-type":"application/x-www-form-urlencoded"}),z2.deref(A.input)==="unit"||!Y.body)Y.body="";let z=A.name.split("#")[1]??A.name;if(Y.body=`Action=${z}&Version=${this.options.version}`+Y.body,Y.body.endsWith("&"))Y.body=Y.body.slice(-1);return Y}async deserializeResponse(A,q,K){let Y=this.deserializer,z=z2.NormalizedSchema.of(A.output),w={};if(K.statusCode>=300){let j=await G0.collectBody(K.body,q);if(j.byteLength>0)Object.assign(w,await Y.read(15,j));await this.handleError(A,q,K,w,this.deserializeMetadata(K))}for(let j in K.headers){let J=K.headers[j];delete K.headers[j],K.headers[j.toLowerCase()]=J}let _=A.name.split("#")[1]??A.name,$=z.isStructSchema()&&this.useNestedResult()?_+"Result":void 0,O=await G0.collectBody(K.body,q);if(O.byteLength>0)Object.assign(w,await Y.read(z,O,$));return{$metadata:this.deserializeMetadata(K),...w}}useNestedResult(){return!0}async handleError(A,q,K,Y,z){let w=this.loadQueryErrorCode(K,Y)??"Unknown",_=this.loadQueryError(Y),$=this.loadQueryErrorMessage(Y);_.message=$,_.Error={Type:_.Type,Code:_.Code,Message:$};let{errorSchema:O,errorMetadata:H}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,_,z,(X,P)=>{try{return X.getSchema(P)}catch(W){return X.find((G)=>z2.NormalizedSchema.of(G).getMergedTraits().awsQueryError?.[0]===P)}}),j=z2.NormalizedSchema.of(O),M=new(z2.TypeRegistry.for(O[1]).getErrorCtor(O)??Error)($),D={Error:_.Error};for(let[X,P]of j.structIterator()){let W=P.getMergedTraits().xmlName??X,G=_[W]??Y[W];D[X]=this.deserializer.readSchema(P,G)}throw this.mixin.decorateServiceException(Object.assign(M,H,{$fault:j.getMergedTraits().error,message:$},D),Y)}loadQueryErrorCode(A,q){let K=(q.Errors?.[0]?.Error??q.Errors?.Error??q.Error)?.Code;if(K!==void 0)return K;if(A.statusCode==404)return"NotFound"}loadQueryError(A){return A.Errors?.[0]?.Error??A.Errors?.Error??A.Error}loadQueryErrorMessage(A){let q=this.loadQueryError(A);return q?.message??q?.Message??A.message??A.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class ow7 extends A58{options;constructor(A){super(A);this.options=A;let q={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1};Object.assign(this.serializer.settings,q)}useNestedResult(){return!1}}var aw7=(A,q)=>dw7(A,q).then((K)=>{if(K.length){let Y;try{Y=dy.parseXML(K)}catch($){if($&&typeof $==="object")Object.defineProperty($,"$responseBodyText",{value:K});throw $}let z="#text",w=Object.keys(Y)[0],_=Y[w];if(_[z])_[w]=_[z],delete _[z];return xd.getValueFromTextNode(_)}return{}}),$r3=async(A,q)=>{let K=await aw7(A,q);if(K.Error)K.Error.message=K.Error.message??K.Error.Message;return K},sw7=(A,q)=>{if(q?.Error?.Code!==void 0)return q.Error.Code;if(q?.Code!==void 0)return q.Code;if(A.statusCode==404)return"NotFound"};class q58 extends cs{settings;stringBuffer;byteBuffer;buffer;constructor(A){super();this.settings=A}write(A,q){let K=z2.NormalizedSchema.of(A);if(K.isStringSchema()&&typeof q==="string")this.stringBuffer=q;else if(K.isBlobSchema())this.byteBuffer="byteLength"in q?q:(this.serdeContext?.base64Decoder??Nb6.fromBase64)(q);else{this.buffer=this.writeStruct(K,q,void 0);let Y=K.getMergedTraits();if(Y.httpPayload&&!Y.xmlName)this.buffer.withName(K.getName())}}flush(){if(this.byteBuffer!==void 0){let q=this.byteBuffer;return delete this.byteBuffer,q}if(this.stringBuffer!==void 0){let q=this.stringBuffer;return delete this.stringBuffer,q}let A=this.buffer;if(this.settings.xmlNamespace){if(!A?.attributes?.xmlns)A.addAttribute("xmlns",this.settings.xmlNamespace)}return delete this.buffer,A.toString()}writeStruct(A,q,K){let Y=A.getMergedTraits(),z=A.isMemberSchema()&&!Y.httpPayload?A.getMemberTraits().xmlName??A.getMemberName():Y.xmlName??A.getName();if(!z||!A.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${A.getName(!0)}.`);let w=dy.XmlNode.of(z),[_,$]=this.getXmlnsAttribute(A,K);for(let[O,H]of A.structIterator()){let j=q[O];if(j!=null||H.isIdempotencyToken()){if(H.getMergedTraits().xmlAttribute){w.addAttribute(H.getMergedTraits().xmlName??O,this.writeSimple(H,j));continue}if(H.isListSchema())this.writeList(H,j,w,$);else if(H.isMapSchema())this.writeMap(H,j,w,$);else if(H.isStructSchema())w.addChildNode(this.writeStruct(H,j,$));else{let J=dy.XmlNode.of(H.getMergedTraits().xmlName??H.getMemberName());this.writeSimpleInto(H,j,J,$),w.addChildNode(J)}}}if($)w.addAttribute(_,$);return w}writeList(A,q,K,Y){if(!A.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${A.getName(!0)}`);let z=A.getMergedTraits(),w=A.getValueSchema(),_=w.getMergedTraits(),$=!!_.sparse,O=!!z.xmlFlattened,[H,j]=this.getXmlnsAttribute(A,Y),J=(M,D)=>{if(w.isListSchema())this.writeList(w,Array.isArray(D)?D:[D],M,j);else if(w.isMapSchema())this.writeMap(w,D,M,j);else if(w.isStructSchema()){let X=this.writeStruct(w,D,j);M.addChildNode(X.withName(O?z.xmlName??A.getMemberName():_.xmlName??"member"))}else{let X=dy.XmlNode.of(O?z.xmlName??A.getMemberName():_.xmlName??"member");this.writeSimpleInto(w,D,X,j),M.addChildNode(X)}};if(O){for(let M of q)if($||M!=null)J(K,M)}else{let M=dy.XmlNode.of(z.xmlName??A.getMemberName());if(j)M.addAttribute(H,j);for(let D of q)if($||D!=null)J(M,D);K.addChildNode(M)}}writeMap(A,q,K,Y,z=!1){if(!A.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${A.getName(!0)}`);let w=A.getMergedTraits(),_=A.getKeySchema(),O=_.getMergedTraits().xmlName??"key",H=A.getValueSchema(),j=H.getMergedTraits(),J=j.xmlName??"value",M=!!j.sparse,D=!!w.xmlFlattened,[X,P]=this.getXmlnsAttribute(A,Y),W=(G,Z,f)=>{let v=dy.XmlNode.of(O,Z),[V,N]=this.getXmlnsAttribute(_,P);if(N)v.addAttribute(V,N);G.addChildNode(v);let L=dy.XmlNode.of(J);if(H.isListSchema())this.writeList(H,f,L,P);else if(H.isMapSchema())this.writeMap(H,f,L,P,!0);else if(H.isStructSchema())L=this.writeStruct(H,f,P);else this.writeSimpleInto(H,f,L,P);G.addChildNode(L)};if(D){for(let[G,Z]of Object.entries(q))if(M||Z!=null){let f=dy.XmlNode.of(w.xmlName??A.getMemberName());W(f,G,Z),K.addChildNode(f)}}else{let G;if(!z){if(G=dy.XmlNode.of(w.xmlName??A.getMemberName()),P)G.addAttribute(X,P);K.addChildNode(G)}for(let[Z,f]of Object.entries(q))if(M||f!=null){let v=dy.XmlNode.of("entry");W(v,Z,f),(z?K:G).addChildNode(v)}}}writeSimple(A,q){if(q===null)throw Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let K=z2.NormalizedSchema.of(A),Y=null;if(q&&typeof q==="object")if(K.isBlobSchema())Y=(this.serdeContext?.base64Encoder??Nb6.toBase64)(q);else if(K.isTimestampSchema()&&q instanceof Date)switch(G0.determineTimestampFormat(K,this.settings)){case 5:Y=q.toISOString().replace(".000Z","Z");break;case 6:Y=xd.dateToUtcString(q);break;case 7:Y=String(q.getTime()/1000);break;default:console.warn("Missing timestamp format, using http date",q),Y=xd.dateToUtcString(q);break}else if(K.isBigDecimalSchema()&&q){if(q instanceof xX.NumericValue)return q.string;return String(q)}else if(K.isMapSchema()||K.isListSchema())throw Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.");else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${K.getName(!0)}`);if(K.isBooleanSchema()||K.isNumericSchema()||K.isBigIntegerSchema()||K.isBigDecimalSchema())Y=String(q);if(K.isStringSchema())if(q===void 0&&K.isIdempotencyToken())Y=xX.generateIdempotencyToken();else Y=String(q);if(Y===null)throw Error(`Unhandled schema-value pair ${K.getName(!0)}=${q}`);return Y}writeSimpleInto(A,q,K,Y){let z=this.writeSimple(A,q),w=z2.NormalizedSchema.of(A),_=new dy.XmlText(z),[$,O]=this.getXmlnsAttribute(w,Y);if(O)K.addAttribute($,O);K.addChildNode(_)}getXmlnsAttribute(A,q){let K=A.getMergedTraits(),[Y,z]=K.xmlNamespace??[];if(z&&z!==q)return[Y?`xmlns:${Y}`:"xmlns",z];return[void 0,void 0]}}class K58 extends cs{settings;constructor(A){super();this.settings=A}createSerializer(){let A=new q58(this.settings);return A.setSerdeContext(this.serdeContext),A}createDeserializer(){let A=new Wz1(this.settings);return A.setSerdeContext(this.serdeContext),A}}class tw7 extends G0.HttpBindingProtocol{codec;serializer;deserializer;mixin=new wX6;constructor(A){super(A);let q={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:A.xmlNamespace,serviceNamespace:A.defaultNamespace};this.codec=new K58(q),this.serializer=new G0.HttpInterceptingShapeSerializer(this.codec.createSerializer(),q),this.deserializer=new G0.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),q)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K),z=z2.NormalizedSchema.of(A.input);if(!Y.headers["content-type"]){let w=this.mixin.resolveRestContentType(this.getDefaultContentType(),z);if(w)Y.headers["content-type"]=w}if(Y.headers["content-type"]===this.getDefaultContentType()){if(typeof Y.body==="string")Y.body='<?xml version="1.0" encoding="UTF-8"?>'+Y.body}return Y}async deserializeResponse(A,q,K){return super.deserializeResponse(A,q,K)}async handleError(A,q,K,Y,z){let w=sw7(K,Y)??"Unknown",{errorSchema:_,errorMetadata:$}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,Y,z),O=z2.NormalizedSchema.of(_),H=Y.Error?.message??Y.Error?.Message??Y.message??Y.Message??"Unknown",J=new(z2.TypeRegistry.for(_[1]).getErrorCtor(_)??Error)(H);await this.deserializeHttpMessage(_,q,K,Y);let M={};for(let[D,X]of O.structIterator()){let P=X.getMergedTraits().xmlName??D,W=Y.Error?.[P]??Y[P];M[D]=this.codec.createDeserializer().readSchema(X,W)}throw this.mixin.decorateServiceException(Object.assign(J,$,{$fault:O.getMergedTraits().error,message:H},M),Y)}getDefaultContentType(){return"application/xml"}}Or3.AwsEc2QueryProtocol=ow7;Or3.AwsJson1_0Protocol=lw7;Or3.AwsJson1_1Protocol=iw7;Or3.AwsJsonRpcProtocol=Pz1;Or3.AwsQueryProtocol=A58;Or3.AwsRestJsonProtocol=nw7;Or3.AwsRestXmlProtocol=tw7;Or3.AwsSmithyRpcV2CborProtocol=Uw7;Or3.JsonCodec=Xz1;Or3.JsonShapeDeserializer=t38;Or3.JsonShapeSerializer=e38;Or3.XmlCodec=K58;Or3.XmlShapeDeserializer=Wz1;Or3.XmlShapeSerializer=q58;Or3._toBool=Kr3;Or3._toNum=Yr3;Or3._toStr=qr3;Or3.awsExpectUnion=_r3;Or3.loadRestJsonErrorCode=s38;Or3.loadRestXmlErrorCode=sw7;Or3.parseJsonBody=a38;Or3.parseJsonErrorBody=wr3;Or3.parseXmlBody=aw7;Or3.parseXmlErrorBody=$r3});var ew7=h((br3)=>{var xr3=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";br3.isArrayBuffer=xr3});var z58=h((pr3)=>{var mr3=ew7(),Y58=u6("buffer"),Br3=(A,q=0,K=A.byteLength-q)=>{if(!mr3.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return Y58.Buffer.from(A,q,K)},gr3=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?Y58.Buffer.from(A,q):Y58.Buffer.from(A)};pr3.fromArrayBuffer=Br3;pr3.fromString=gr3});var K27=h((A27)=>{Object.defineProperty(A27,"__esModule",{value:!0});A27.fromBase64=void 0;var Ur3=z58(),dr3=/^[A-Za-z0-9+/]*={0,2}$/,cr3=(A)=>{if(A.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!dr3.exec(A))throw TypeError("Invalid base64 string.");let q=(0,Ur3.fromString)(A,"base64");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength)};A27.fromBase64=cr3});var w27=h((Y27)=>{Object.defineProperty(Y27,"__esModule",{value:!0});Y27.toBase64=void 0;var lr3=z58(),ir3=K2(),nr3=(A)=>{let q;if(typeof A==="string")q=(0,ir3.fromUtf8)(A);else q=A;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,lr3.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("base64")};Y27.toBase64=nr3});var Gz1=h((kb6)=>{var _27=K27(),$27=w27();Object.keys(_27).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(kb6,A))Object.defineProperty(kb6,A,{enumerable:!0,get:function(){return _27[A]}})});Object.keys($27).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(kb6,A))Object.defineProperty(kb6,A,{enumerable:!0,get:function(){return $27[A]}})})});var k27=h((V27)=>{Object.defineProperty(V27,"__esModule",{value:!0});V27.ruleSet=void 0;var Z27="required",ly="fn",iy="argv",OX6="ref",O27=!0,H27="isSet",Eb6="booleanEquals",_X6="error",$X6="endpoint",ud="tree",w58="PartitionResult",_58="getAttr",j27={[Z27]:!1,type:"string"},J27={[Z27]:!0,default:!1,type:"boolean"},M27={[OX6]:"Endpoint"},f27={[ly]:Eb6,[iy]:[{[OX6]:"UseFIPS"},!0]},T27={[ly]:Eb6,[iy]:[{[OX6]:"UseDualStack"},!0]},cy={},D27={[ly]:_58,[iy]:[{[OX6]:w58},"supportsFIPS"]},v27={[OX6]:w58},X27={[ly]:Eb6,[iy]:[!0,{[ly]:_58,[iy]:[v27,"supportsDualStack"]}]},P27=[f27],W27=[T27],G27=[{[OX6]:"Region"}],rr3={version:"1.0",parameters:{Region:j27,UseDualStack:J27,UseFIPS:J27,Endpoint:j27},rules:[{conditions:[{[ly]:H27,[iy]:[M27]}],rules:[{conditions:P27,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:_X6},{conditions:W27,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:_X6},{endpoint:{url:M27,properties:cy,headers:cy},type:$X6}],type:ud},{conditions:[{[ly]:H27,[iy]:G27}],rules:[{conditions:[{[ly]:"aws.partition",[iy]:G27,assign:w58}],rules:[{conditions:[f27,T27],rules:[{conditions:[{[ly]:Eb6,[iy]:[O27,D27]},X27],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:cy,headers:cy},type:$X6}],type:ud},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:_X6}],type:ud},{conditions:P27,rules:[{conditions:[{[ly]:Eb6,[iy]:[D27,O27]}],rules:[{conditions:[{[ly]:"stringEquals",[iy]:[{[ly]:_58,[iy]:[v27,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:cy,headers:cy},type:$X6},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:cy,headers:cy},type:$X6}],type:ud},{error:"FIPS is enabled but this partition does not support FIPS",type:_X6}],type:ud},{conditions:W27,rules:[{conditions:[X27],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:cy,headers:cy},type:$X6}],type:ud},{error:"DualStack is enabled but this partition does not support DualStack",type:_X6}],type:ud},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:cy,headers:cy},type:$X6}],type:ud}],type:ud},{error:"Invalid Configuration: Missing Region",type:_X6}]};V27.ruleSet=rr3});var y27=h((E27)=>{Object.defineProperty(E27,"__esModule",{value:!0});E27.defaultEndpointResolver=void 0;var or3=AB(),$58=YI(),ar3=k27(),sr3=new $58.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),tr3=(A,q={})=>{return sr3.get(A,()=>(0,$58.resolveEndpoint)(ar3.ruleSet,{endpointParams:A,logger:q.logger}))};E27.defaultEndpointResolver=tr3;$58.customEndpointFunctions.aws=or3.awsEndpointFunctions});var I27=h((h27)=>{Object.defineProperty(h27,"__esModule",{value:!0});h27.getRuntimeConfig=void 0;var er3=o_(),Ao3=bd(),qo3=Ew(),Ko3=Xf(),Yo3=py(),R27=Gz1(),S27=K2(),zo3=l38(),wo3=y27(),_o3=(A)=>{return{apiVersion:"2019-06-10",base64Decoder:A?.base64Decoder??R27.fromBase64,base64Encoder:A?.base64Encoder??R27.toBase64,disableHostPrefix:A?.disableHostPrefix??!1,endpointProvider:A?.endpointProvider??wo3.defaultEndpointResolver,extensions:A?.extensions??[],httpAuthSchemeProvider:A?.httpAuthSchemeProvider??zo3.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:A?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(q)=>q.getIdentityProvider("aws.auth#sigv4"),signer:new er3.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(q)=>q.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new qo3.NoAuthSigner}],logger:A?.logger??new Ko3.NoOpLogger,protocol:A?.protocol??new Ao3.AwsRestJsonProtocol({defaultNamespace:"com.amazonaws.ssooidc"}),serviceId:A?.serviceId??"SSO OIDC",urlParser:A?.urlParser??Yo3.parseUrl,utf8Decoder:A?.utf8Decoder??S27.fromUtf8,utf8Encoder:A?.utf8Encoder??S27.toUtf8}};h27.getRuntimeConfig=_o3});var md=h((fo3)=>{var $o3=qJ(),x27=Bv(),Oo3=MM(),Ho3="AWS_EXECUTION_ENV",b27="AWS_REGION",u27="AWS_DEFAULT_REGION",jo3="AWS_EC2_METADATA_DISABLED",Jo3=["in-region","cross-region","mobile","standard","legacy"],Mo3="/latest/meta-data/placement/region",Do3="AWS_DEFAULTS_MODE",Xo3="defaults_mode",Po3={environmentVariableSelector:(A)=>{return A[Do3]},configFileSelector:(A)=>{return A[Xo3]},default:"legacy"},Wo3=({region:A=x27.loadConfig($o3.NODE_REGION_CONFIG_OPTIONS),defaultsMode:q=x27.loadConfig(Po3)}={})=>Oo3.memoize(async()=>{let K=typeof q==="function"?await q():q;switch(K?.toLowerCase()){case"auto":return Go3(A);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(K?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw Error(`Invalid parameter for "defaultsMode", expect ${Jo3.join(", ")}, got ${K}`)}}),Go3=async(A)=>{if(A){let q=typeof A==="function"?await A():A,K=await Zo3();if(!K)return"standard";if(q===K)return"in-region";else return"cross-region"}return"standard"},Zo3=async()=>{if(process.env[Ho3]&&(process.env[b27]||process.env[u27]))return process.env[b27]??process.env[u27];if(!process.env[jo3])try{let{getInstanceMetadataEndpoint:A,httpRequest:q}=await Promise.resolve().then(() => q6(EK6())),K=await A();return(await q({...K,path:Mo3})).toString()}catch(A){}};fo3.resolveDefaultsModeConfig=Wo3});var U27=h((F27)=>{Object.defineProperty(F27,"__esModule",{value:!0});F27.getRuntimeConfig=void 0;var vo3=S2(),Vo3=vo3.__importDefault(Dz1()),m27=o_(),B27=hd(),Zz1=qJ(),No3=Cd(),g27=W0(),xK6=Bv(),p27=uv(),ko3=Id(),Eo3=YB(),Lo3=I27(),yo3=Xf(),Ro3=md(),So3=Xf(),ho3=(A)=>{(0,So3.emitWarningIfUnsupportedVersion)(process.version);let q=(0,Ro3.resolveDefaultsModeConfig)(A),K=()=>q().then(yo3.loadConfigsForDefaultMode),Y=(0,Lo3.getRuntimeConfig)(A);(0,m27.emitWarningIfUnsupportedVersion)(process.version);let z={profile:A?.profile,logger:Y.logger};return{...Y,...A,runtime:"node",defaultsMode:q,authSchemePreference:A?.authSchemePreference??(0,xK6.loadConfig)(m27.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,z),bodyLengthChecker:A?.bodyLengthChecker??ko3.calculateBodyLength,defaultUserAgentProvider:A?.defaultUserAgentProvider??(0,B27.createDefaultUserAgentProvider)({serviceId:Y.serviceId,clientVersion:Vo3.default.version}),maxAttempts:A?.maxAttempts??(0,xK6.loadConfig)(g27.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,A),region:A?.region??(0,xK6.loadConfig)(Zz1.NODE_REGION_CONFIG_OPTIONS,{...Zz1.NODE_REGION_CONFIG_FILE_OPTIONS,...z}),requestHandler:p27.NodeHttpHandler.create(A?.requestHandler??K),retryMode:A?.retryMode??(0,xK6.loadConfig)({...g27.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await K()).retryMode||Eo3.DEFAULT_RETRY_MODE},A),sha256:A?.sha256??No3.Hash.bind(null,"sha256"),streamCollector:A?.streamCollector??p27.streamCollector,useDualstackEndpoint:A?.useDualstackEndpoint??(0,xK6.loadConfig)(Zz1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,z),useFipsEndpoint:A?.useFipsEndpoint??(0,xK6.loadConfig)(Zz1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,z),userAgentAppId:A?.userAgentAppId??(0,xK6.loadConfig)(B27.NODE_APP_ID_CONFIG_OPTIONS,z)}};F27.getRuntimeConfig=ho3});var l27=h((c27)=>{Object.defineProperty(c27,"__esModule",{value:!0});c27.warning=void 0;c27.stsRegionDefaultResolver=Io3;var d27=qJ(),Co3=Bv();function Io3(A={}){return(0,Co3.loadConfig)({...d27.NODE_REGION_CONFIG_OPTIONS,async default(){if(!c27.warning.silence)console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.");return"us-east-1"}},{...d27.NODE_REGION_CONFIG_FILE_OPTIONS,...A})}c27.warning={silence:!1}});var wI=h((ls)=>{var Lb6=qJ(),i27=l27(),bo3=(A)=>{return{setRegion(q){A.region=q},region(){return A.region}}},uo3=(A)=>{return{region:A.region()}};Object.defineProperty(ls,"NODE_REGION_CONFIG_FILE_OPTIONS",{enumerable:!0,get:function(){return Lb6.NODE_REGION_CONFIG_FILE_OPTIONS}});Object.defineProperty(ls,"NODE_REGION_CONFIG_OPTIONS",{enumerable:!0,get:function(){return Lb6.NODE_REGION_CONFIG_OPTIONS}});Object.defineProperty(ls,"REGION_ENV_NAME",{enumerable:!0,get:function(){return Lb6.REGION_ENV_NAME}});Object.defineProperty(ls,"REGION_INI_NAME",{enumerable:!0,get:function(){return Lb6.REGION_INI_NAME}});Object.defineProperty(ls,"resolveRegionConfig",{enumerable:!0,get:function(){return Lb6.resolveRegionConfig}});ls.getAwsRegionExtensionConfiguration=bo3;ls.resolveAwsRegionExtensionConfiguration=uo3;Object.keys(i27).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(ls,A))Object.defineProperty(ls,A,{enumerable:!0,get:function(){return i27[A]}})})});var Tz1=h((do3)=>{var go3=B38(),po3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},Fo3=(A)=>{return{httpHandler:A.httpHandler()}};class n27{name;kind;values;constructor({name:A,kind:q=go3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class r27{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class fz1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new fz1({...A,headers:{...A.headers}});if(q.query)q.query=Qo3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return fz1.clone(this)}}function Qo3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class o27{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function Uo3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}do3.Field=n27;do3.Fields=r27;do3.HttpRequest=fz1;do3.HttpResponse=o27;do3.getHttpHandlerExtensionConfiguration=po3;do3.isValidHostname=Uo3;do3.resolveHttpHandlerRuntimeConfig=Fo3});var X58=h((D58)=>{var a27=vd(),so3=Vd(),to3=Nd(),s27=KB(),eo3=qJ(),H58=Ew(),yk=RO(),Aa3=Sd(),K_7=zI(),t27=W0(),is=Xf(),e27=l38(),qa3=U27(),A_7=wI(),q_7=Tz1(),Ka3=(A)=>{return Object.assign(A,{useDualstackEndpoint:A.useDualstackEndpoint??!1,useFipsEndpoint:A.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},Ya3={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},za3=(A)=>{let{httpAuthSchemes:q,httpAuthSchemeProvider:K,credentials:Y}=A;return{setHttpAuthScheme(z){let w=q.findIndex((_)=>_.schemeId===z.schemeId);if(w===-1)q.push(z);else q.splice(w,1,z)},httpAuthSchemes(){return q},setHttpAuthSchemeProvider(z){K=z},httpAuthSchemeProvider(){return K},setCredentials(z){Y=z},credentials(){return Y}}},wa3=(A)=>{return{httpAuthSchemes:A.httpAuthSchemes(),httpAuthSchemeProvider:A.httpAuthSchemeProvider(),credentials:A.credentials()}},_a3=(A,q)=>{let K=Object.assign(A_7.getAwsRegionExtensionConfiguration(A),is.getDefaultExtensionConfiguration(A),q_7.getHttpHandlerExtensionConfiguration(A),za3(A));return q.forEach((Y)=>Y.configure(K)),Object.assign(A,A_7.resolveAwsRegionExtensionConfiguration(K),is.resolveDefaultRuntimeConfig(K),q_7.resolveHttpHandlerRuntimeConfig(K),wa3(K))};class j58 extends is.Client{config;constructor(...[A]){let q=qa3.getRuntimeConfig(A||{});super(q);this.initConfig=q;let K=Ka3(q),Y=s27.resolveUserAgentConfig(K),z=t27.resolveRetryConfig(Y),w=eo3.resolveRegionConfig(z),_=a27.resolveHostHeaderConfig(w),$=K_7.resolveEndpointConfig(_),O=e27.resolveHttpAuthSchemeConfig($),H=_a3(O,A?.extensions||[]);this.config=H,this.middlewareStack.use(yk.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(s27.getUserAgentPlugin(this.config)),this.middlewareStack.use(t27.getRetryPlugin(this.config)),this.middlewareStack.use(Aa3.getContentLengthPlugin(this.config)),this.middlewareStack.use(a27.getHostHeaderPlugin(this.config)),this.middlewareStack.use(so3.getLoggerPlugin(this.config)),this.middlewareStack.use(to3.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(H58.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:e27.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(j)=>new H58.DefaultIdentityProviderConfig({"aws.auth#sigv4":j.credentials})})),this.middlewareStack.use(H58.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}var Rk=class A extends is.ServiceException{constructor(q){super(q);Object.setPrototypeOf(this,A.prototype)}},Y_7=class A extends Rk{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(q){super({name:"AccessDeniedException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.reason=q.reason,this.error_description=q.error_description}},z_7=class A extends Rk{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(q){super({name:"AuthorizationPendingException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.error_description=q.error_description}},w_7=class A extends Rk{name="ExpiredTokenException";$fault="client";error;error_description;constructor(q){super({name:"ExpiredTokenException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.error_description=q.error_description}},__7=class A extends Rk{name="InternalServerException";$fault="server";error;error_description;constructor(q){super({name:"InternalServerException",$fault:"server",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.error_description=q.error_description}},$_7=class A extends Rk{name="InvalidClientException";$fault="client";error;error_description;constructor(q){super({name:"InvalidClientException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.error_description=q.error_description}},O_7=class A extends Rk{name="InvalidGrantException";$fault="client";error;error_description;constructor(q){super({name:"InvalidGrantException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.error_description=q.error_description}},H_7=class A extends Rk{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(q){super({name:"InvalidRequestException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.reason=q.reason,this.error_description=q.error_description}},j_7=class A extends Rk{name="InvalidScopeException";$fault="client";error;error_description;constructor(q){super({name:"InvalidScopeException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.error_description=q.error_description}},J_7=class A extends Rk{name="SlowDownException";$fault="client";error;error_description;constructor(q){super({name:"SlowDownException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.error_description=q.error_description}},M_7=class A extends Rk{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(q){super({name:"UnauthorizedClientException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.error_description=q.error_description}},D_7=class A extends Rk{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(q){super({name:"UnsupportedGrantTypeException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.error_description=q.error_description}},$a3="AccessDeniedException",Oa3="AuthorizationPendingException",Ha3="AccessToken",ja3="ClientSecret",Ja3="CreateToken",Ma3="CreateTokenRequest",Da3="CreateTokenResponse",Xa3="CodeVerifier",Pa3="ExpiredTokenException",Wa3="InvalidClientException",Ga3="InvalidGrantException",Za3="InvalidRequestException",fa3="InternalServerException",Ta3="InvalidScopeException",va3="IdToken",Va3="RefreshToken",Na3="SlowDownException",ka3="UnauthorizedClientException",Ea3="UnsupportedGrantTypeException",La3="accessToken",zB="client",ya3="clientId",Ra3="clientSecret",Sa3="codeVerifier",ha3="code",Ca3="deviceCode",Zj="error",Ia3="expiresIn",_I="error_description",xa3="grantType",ba3="http",$I="httpError",ua3="idToken",X_7="reason",P_7="refreshToken",ma3="redirectUri",Ba3="scope",ga3="server",W_7="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",pa3="tokenType",Lw="com.amazonaws.ssooidc",Fa3=[0,Lw,Ha3,8,0],Qa3=[0,Lw,ja3,8,0],Ua3=[0,Lw,Xa3,8,0],da3=[0,Lw,va3,8,0],G_7=[0,Lw,Va3,8,0],ca3=[-3,Lw,$a3,{[Zj]:zB,[$I]:400},[Zj,X_7,_I],[0,0,0]];yk.TypeRegistry.for(Lw).registerError(ca3,Y_7);var la3=[-3,Lw,Oa3,{[Zj]:zB,[$I]:400},[Zj,_I],[0,0]];yk.TypeRegistry.for(Lw).registerError(la3,z_7);var ia3=[3,Lw,Ma3,0,[ya3,Ra3,xa3,Ca3,ha3,P_7,Ba3,ma3,Sa3],[0,[()=>Qa3,0],0,0,0,[()=>G_7,0],64,0,[()=>Ua3,0]]],na3=[3,Lw,Da3,0,[La3,pa3,Ia3,P_7,ua3],[[()=>Fa3,0],0,1,[()=>G_7,0],[()=>da3,0]]],ra3=[-3,Lw,Pa3,{[Zj]:zB,[$I]:400},[Zj,_I],[0,0]];yk.TypeRegistry.for(Lw).registerError(ra3,w_7);var oa3=[-3,Lw,fa3,{[Zj]:ga3,[$I]:500},[Zj,_I],[0,0]];yk.TypeRegistry.for(Lw).registerError(oa3,__7);var aa3=[-3,Lw,Wa3,{[Zj]:zB,[$I]:401},[Zj,_I],[0,0]];yk.TypeRegistry.for(Lw).registerError(aa3,$_7);var sa3=[-3,Lw,Ga3,{[Zj]:zB,[$I]:400},[Zj,_I],[0,0]];yk.TypeRegistry.for(Lw).registerError(sa3,O_7);var ta3=[-3,Lw,Za3,{[Zj]:zB,[$I]:400},[Zj,X_7,_I],[0,0,0]];yk.TypeRegistry.for(Lw).registerError(ta3,H_7);var ea3=[-3,Lw,Ta3,{[Zj]:zB,[$I]:400},[Zj,_I],[0,0]];yk.TypeRegistry.for(Lw).registerError(ea3,j_7);var As3=[-3,Lw,Na3,{[Zj]:zB,[$I]:400},[Zj,_I],[0,0]];yk.TypeRegistry.for(Lw).registerError(As3,J_7);var qs3=[-3,Lw,ka3,{[Zj]:zB,[$I]:400},[Zj,_I],[0,0]];yk.TypeRegistry.for(Lw).registerError(qs3,M_7);var Ks3=[-3,Lw,Ea3,{[Zj]:zB,[$I]:400},[Zj,_I],[0,0]];yk.TypeRegistry.for(Lw).registerError(Ks3,D_7);var Ys3=[-3,W_7,"SSOOIDCServiceException",0,[],[]];yk.TypeRegistry.for(W_7).registerError(Ys3,Rk);var zs3=[9,Lw,Ja3,{[ba3]:["POST","/token",200]},()=>ia3,()=>na3];class J58 extends is.Command.classBuilder().ep(Ya3).m(function(A,q,K,Y){return[K_7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").sc(zs3).build(){}var ws3={CreateTokenCommand:J58};class M58 extends j58{}is.createAggregatedClient(ws3,M58);var _s3={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},$s3={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};Object.defineProperty(D58,"$Command",{enumerable:!0,get:function(){return is.Command}});Object.defineProperty(D58,"__Client",{enumerable:!0,get:function(){return is.Client}});D58.AccessDeniedException=Y_7;D58.AccessDeniedExceptionReason=_s3;D58.AuthorizationPendingException=z_7;D58.CreateTokenCommand=J58;D58.ExpiredTokenException=w_7;D58.InternalServerException=__7;D58.InvalidClientException=$_7;D58.InvalidGrantException=O_7;D58.InvalidRequestException=H_7;D58.InvalidRequestExceptionReason=$s3;D58.InvalidScopeException=j_7;D58.SSOOIDC=M58;D58.SSOOIDCClient=j58;D58.SSOOIDCServiceException=Rk;D58.SlowDownException=J_7;D58.UnauthorizedClientException=M_7;D58.UnsupportedGrantTypeException=D_7});var vz1=h((ms3)=>{var Es3=mv(),Ls3=g57(),Sk=MM(),yb6=am(),ys3=u6("fs"),Rs3=({logger:A,signingName:q}={})=>async()=>{if(A?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!q)throw new Sk.TokenProviderError("Please pass 'signingName' to compute environment variable key",{logger:A});let K=Ls3.getBearerTokenEnvKey(q);if(!(K in process.env))throw new Sk.TokenProviderError(`Token not present in '${K}' environment variable`,{logger:A});let Y={token:process.env[K]};return Es3.setTokenFeature(Y,"BEARER_SERVICE_ENV_VARS","3"),Y},Ss3=300000,P58="To refresh this SSO session run 'aws sso login' with the corresponding profile.",hs3=async(A,q={})=>{let{SSOOIDCClient:K}=await Promise.resolve().then(() => q6(X58())),Y=(w)=>q.clientConfig?.[w]??q.parentClientConfig?.[w];return new K(Object.assign({},q.clientConfig??{},{region:A??q.clientConfig?.region,logger:Y("logger"),userAgentAppId:Y("userAgentAppId")}))},Cs3=async(A,q,K={})=>{let{CreateTokenCommand:Y}=await Promise.resolve().then(() => q6(X58()));return(await hs3(q,K)).send(new Y({clientId:A.clientId,clientSecret:A.clientSecret,refreshToken:A.refreshToken,grantType:"refresh_token"}))},Z_7=(A)=>{if(A.expiration&&A.expiration.getTime()<Date.now())throw new Sk.TokenProviderError(`Token is expired. ${P58}`,!1)},bK6=(A,q,K=!1)=>{if(typeof q>"u")throw new Sk.TokenProviderError(`Value not present for '${A}' in SSO Token${K?". Cannot refresh":""}. ${P58}`,!1)},{writeFile:Is3}=ys3.promises,xs3=(A,q)=>{let K=yb6.getSSOTokenFilepath(A),Y=JSON.stringify(q,null,2);return Is3(K,Y)},f_7=new Date(0),T_7=(A={})=>async({callerClientConfig:q}={})=>{let K={...A,parentClientConfig:{...q,...A.parentClientConfig}};K.logger?.debug("@aws-sdk/token-providers - fromSso");let Y=await yb6.parseKnownFiles(K),z=yb6.getProfileName({profile:K.profile??q?.profile}),w=Y[z];if(!w)throw new Sk.TokenProviderError(`Profile '${z}' could not be found in shared credentials file.`,!1);else if(!w.sso_session)throw new Sk.TokenProviderError(`Profile '${z}' is missing required property 'sso_session'.`);let _=w.sso_session,O=(await yb6.loadSsoSessionData(K))[_];if(!O)throw new Sk.TokenProviderError(`Sso session '${_}' could not be found in shared credentials file.`,!1);for(let X of["sso_start_url","sso_region"])if(!O[X])throw new Sk.TokenProviderError(`Sso session '${_}' is missing required property '${X}'.`,!1);O.sso_start_url;let H=O.sso_region,j;try{j=await yb6.getSSOTokenFromFile(_)}catch(X){throw new Sk.TokenProviderError(`The SSO session token associated with profile=${z} was not found or is invalid. ${P58}`,!1)}bK6("accessToken",j.accessToken),bK6("expiresAt",j.expiresAt);let{accessToken:J,expiresAt:M}=j,D={token:J,expiration:new Date(M)};if(D.expiration.getTime()-Date.now()>Ss3)return D;if(Date.now()-f_7.getTime()<30000)return Z_7(D),D;bK6("clientId",j.clientId,!0),bK6("clientSecret",j.clientSecret,!0),bK6("refreshToken",j.refreshToken,!0);try{f_7.setTime(Date.now());let X=await Cs3(j,H,K);bK6("accessToken",X.accessToken),bK6("expiresIn",X.expiresIn);let P=new Date(Date.now()+X.expiresIn*1000);try{await xs3(_,{...j,accessToken:X.accessToken,expiresAt:P.toISOString(),refreshToken:X.refreshToken})}catch(W){}return{token:X.accessToken,expiration:P}}catch(X){return Z_7(D),D}},bs3=({token:A,logger:q})=>async()=>{if(q?.debug("@aws-sdk/token-providers - fromStatic"),!A||!A.token)throw new Sk.TokenProviderError("Please pass a valid token to fromStatic",!1);return A},us3=(A={})=>Sk.memoize(Sk.chain(T_7(A),async()=>{throw new Sk.TokenProviderError("Could not load token from any providers",!1)}),(q)=>q.expiration!==void 0&&q.expiration.getTime()-Date.now()<300000,(q)=>q.expiration!==void 0);ms3.fromEnvSigningName=Rs3;ms3.fromSso=T_7;ms3.fromStatic=bs3;ms3.nodeProvider=us3});var V58=h((is3)=>{is3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(is3.HttpAuthLocation||(is3.HttpAuthLocation={}));is3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(is3.HttpApiKeyAuthLocation||(is3.HttpApiKeyAuthLocation={}));is3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(is3.EndpointURLScheme||(is3.EndpointURLScheme={}));is3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(is3.AlgorithmId||(is3.AlgorithmId={}));var Qs3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>is3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>is3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},Us3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},ds3=(A)=>{return Qs3(A)},cs3=(A)=>{return Us3(A)};is3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(is3.FieldPosition||(is3.FieldPosition={}));var ls3="__smithy_context";is3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(is3.IniSectionType||(is3.IniSectionType={}));is3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(is3.RequestHandlerProtocol||(is3.RequestHandlerProtocol={}));is3.SMITHY_CONTEXT_KEY=ls3;is3.getDefaultClientConfiguration=ds3;is3.resolveDefaultRuntimeConfig=cs3});var Sb6=h((jX6)=>{var N_7=tm(),y58=Fv(),k58=V58(),as3=RO(),v_7=pv();class k_7{config;middlewareStack=N_7.constructStack();initConfig;handlers;constructor(A){this.config=A}send(A,q,K){let Y=typeof q!=="function"?q:void 0,z=typeof q==="function"?q:K,w=Y===void 0&&this.config.cacheMiddleware===!0,_;if(w){if(!this.handlers)this.handlers=new WeakMap;let $=this.handlers;if($.has(A.constructor))_=$.get(A.constructor);else _=A.resolveMiddleware(this.middlewareStack,this.config,Y),$.set(A.constructor,_)}else delete this.handlers,_=A.resolveMiddleware(this.middlewareStack,this.config,Y);if(z)_(A).then(($)=>z(null,$.output),($)=>z($)).catch(()=>{});else return _(A).then(($)=>$.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var N58="***SensitiveInformation***";function E58(A,q){if(q==null)return q;let K=as3.NormalizedSchema.of(A);if(K.getMergedTraits().sensitive)return N58;if(K.isListSchema()){if(!!K.getValueSchema().getMergedTraits().sensitive)return N58}else if(K.isMapSchema()){if(!!K.getKeySchema().getMergedTraits().sensitive||!!K.getValueSchema().getMergedTraits().sensitive)return N58}else if(K.isStructSchema()&&typeof q==="object"){let Y=q,z={};for(let[w,_]of K.structIterator())if(Y[w]!=null)z[w]=E58(_,Y[w]);return z}return q}class R58{middlewareStack=N_7.constructStack();schema;static classBuilder(){return new E_7}resolveMiddlewareWithContext(A,q,K,{middlewareFn:Y,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,smithyContext:O,additionalContext:H,CommandCtor:j}){for(let P of Y.bind(this)(j,A,q,K))this.middlewareStack.use(P);let J=A.concat(this.middlewareStack),{logger:M}=q,D={logger:M,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,[k58.SMITHY_CONTEXT_KEY]:{commandInstance:this,...O},...H},{requestHandler:X}=q;return J.resolve((P)=>X.handle(P.request,K||{}),D)}}class E_7{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(A){this._init=A}ep(A){return this._ep=A,this}m(A){return this._middlewareFn=A,this}s(A,q,K={}){return this._smithyContext={service:A,operation:q,...K},this}c(A={}){return this._additionalContext=A,this}n(A,q){return this._clientName=A,this._commandName=q,this}f(A=(K)=>K,q=(K)=>K){return this._inputFilterSensitiveLog=A,this._outputFilterSensitiveLog=q,this}ser(A){return this._serializer=A,this}de(A){return this._deserializer=A,this}sc(A){return this._operationSchema=A,this._smithyContext.operationSchema=A,this}build(){let A=this,q;return q=class extends R58{input;static getEndpointParameterInstructions(){return A._ep}constructor(...[K]){super();this.input=K??{},A._init(this),this.schema=A._operationSchema}resolveMiddleware(K,Y,z){let w=A._operationSchema,_=w?.[4]??w?.input,$=w?.[5]??w?.output;return this.resolveMiddlewareWithContext(K,Y,z,{CommandCtor:q,middlewareFn:A._middlewareFn,clientName:A._clientName,commandName:A._commandName,inputFilterSensitiveLog:A._inputFilterSensitiveLog??(w?E58.bind(null,_):(O)=>O),outputFilterSensitiveLog:A._outputFilterSensitiveLog??(w?E58.bind(null,$):(O)=>O),smithyContext:A._smithyContext,additionalContext:A._additionalContext})}serialize=A._serializer;deserialize=A._deserializer}}}var ss3="***SensitiveInformation***",ts3=(A,q)=>{for(let K of Object.keys(A)){let Y=A[K],z=async function(_,$,O){let H=new Y(_);if(typeof $==="function")this.send(H,$);else if(typeof O==="function"){if(typeof $!=="object")throw Error(`Expected http options but got ${typeof $}`);this.send(H,$||{},O)}else return this.send(H,$)},w=(K[0].toLowerCase()+K.slice(1)).replace(/Command$/,"");q.prototype[w]=z}};class HX6 extends Error{$fault;$response;$retryable;$metadata;constructor(A){super(A.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=A.name,this.$fault=A.$fault,this.$metadata=A.$metadata}static isInstance(A){if(!A)return!1;let q=A;return HX6.prototype.isPrototypeOf(q)||Boolean(q.$fault)&&Boolean(q.$metadata)&&(q.$fault==="client"||q.$fault==="server")}static[Symbol.hasInstance](A){if(!A)return!1;let q=A;if(this===HX6)return HX6.isInstance(A);if(HX6.isInstance(A)){if(q.name&&this.name)return this.prototype.isPrototypeOf(A)||q.name===this.name;return this.prototype.isPrototypeOf(A)}return!1}}var L_7=(A,q={})=>{Object.entries(q).filter(([,Y])=>Y!==void 0).forEach(([Y,z])=>{if(A[Y]==null||A[Y]==="")A[Y]=z});let K=A.message||A.Message||"UnknownError";return A.message=K,delete A.Message,A},y_7=({output:A,parsedBody:q,exceptionCtor:K,errorCode:Y})=>{let z=At3(A),w=z.httpStatusCode?z.httpStatusCode+"":void 0,_=new K({name:q?.code||q?.Code||Y||w||"UnknownError",$fault:"client",$metadata:z});throw L_7(_,q)},es3=(A)=>{return({output:q,parsedBody:K,errorCode:Y})=>{y_7({output:q,parsedBody:K,exceptionCtor:A,errorCode:Y})}},At3=(A)=>({httpStatusCode:A.statusCode,requestId:A.headers["x-amzn-requestid"]??A.headers["x-amzn-request-id"]??A.headers["x-amz-request-id"],extendedRequestId:A.headers["x-amz-id-2"],cfId:A.headers["x-amz-cf-id"]}),qt3=(A)=>{switch(A){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},V_7=!1,Kt3=(A)=>{if(A&&!V_7&&parseInt(A.substring(1,A.indexOf(".")))<16)V_7=!0},Yt3=(A)=>{let q=[];for(let K in k58.AlgorithmId){let Y=k58.AlgorithmId[K];if(A[Y]===void 0)continue;q.push({algorithmId:()=>Y,checksumConstructor:()=>A[Y]})}return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},zt3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},wt3=(A)=>{return{setRetryStrategy(q){A.retryStrategy=q},retryStrategy(){return A.retryStrategy}}},_t3=(A)=>{let q={};return q.retryStrategy=A.retryStrategy(),q},R_7=(A)=>{return Object.assign(Yt3(A),wt3(A))},$t3=R_7,Ot3=(A)=>{return Object.assign(zt3(A),_t3(A))},Ht3=(A)=>Array.isArray(A)?A:[A],S_7=(A)=>{for(let K in A)if(A.hasOwnProperty(K)&&A[K]["#text"]!==void 0)A[K]=A[K]["#text"];else if(typeof A[K]==="object"&&A[K]!==null)A[K]=S_7(A[K]);return A},jt3=(A)=>{return A!=null};class h_7{trace(){}debug(){}info(){}warn(){}error(){}}function C_7(A,q,K){let Y,z,w;if(typeof q>"u"&&typeof K>"u")Y={},w=A;else if(Y=A,typeof q==="function")return z=q,w=K,Dt3(Y,z,w);else w=q;for(let _ of Object.keys(w)){if(!Array.isArray(w[_])){Y[_]=w[_];continue}I_7(Y,null,w,_)}return Y}var Jt3=(A)=>{let q={};for(let[K,Y]of Object.entries(A||{}))q[K]=[,Y];return q},Mt3=(A,q)=>{let K={};for(let Y in q)I_7(K,A,q,Y);return K},Dt3=(A,q,K)=>{return C_7(A,Object.entries(K).reduce((Y,[z,w])=>{if(Array.isArray(w))Y[z]=w;else if(typeof w==="function")Y[z]=[q,w()];else Y[z]=[q,w];return Y},{}))},I_7=(A,q,K,Y)=>{if(q!==null){let _=K[Y];if(typeof _==="function")_=[,_];let[$=Xt3,O=Pt3,H=Y]=_;if(typeof $==="function"&&$(q[H])||typeof $!=="function"&&!!$)A[Y]=O(q[H]);return}let[z,w]=K[Y];if(typeof w==="function"){let _,$=z===void 0&&(_=w())!=null,O=typeof z==="function"&&!!z(void 0)||typeof z!=="function"&&!!z;if($)A[Y]=_;else if(O)A[Y]=w()}else{let _=z===void 0&&w!=null,$=typeof z==="function"&&!!z(w)||typeof z!=="function"&&!!z;if(_||$)A[Y]=w}},Xt3=(A)=>A!=null,Pt3=(A)=>A,Wt3=(A)=>{if(A!==A)return"NaN";switch(A){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return A}},Gt3=(A)=>A.toISOString().replace(".000Z","Z"),L58=(A)=>{if(A==null)return{};if(Array.isArray(A))return A.filter((q)=>q!=null).map(L58);if(typeof A==="object"){let q={};for(let K of Object.keys(A)){if(A[K]==null)continue;q[K]=L58(A[K])}return q}return A};Object.defineProperty(jX6,"collectBody",{enumerable:!0,get:function(){return y58.collectBody}});Object.defineProperty(jX6,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return y58.extendedEncodeURIComponent}});Object.defineProperty(jX6,"resolvedPath",{enumerable:!0,get:function(){return y58.resolvedPath}});jX6.Client=k_7;jX6.Command=R58;jX6.NoOpLogger=h_7;jX6.SENSITIVE_STRING=ss3;jX6.ServiceException=HX6;jX6._json=L58;jX6.convertMap=Jt3;jX6.createAggregatedClient=ts3;jX6.decorateServiceException=L_7;jX6.emitWarningIfUnsupportedVersion=Kt3;jX6.getArrayIfSingleItem=Ht3;jX6.getDefaultClientConfiguration=$t3;jX6.getDefaultExtensionConfiguration=R_7;jX6.getValueFromTextNode=S_7;jX6.isSerializableHeaderValue=jt3;jX6.loadConfigsForDefaultMode=qt3;jX6.map=C_7;jX6.resolveDefaultRuntimeConfig=Ot3;jX6.serializeDateTime=Gt3;jX6.serializeFloat=Wt3;jX6.take=Mt3;jX6.throwDefaultError=y_7;jX6.withBaseException=es3;Object.keys(v_7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(jX6,A))Object.defineProperty(jX6,A,{enumerable:!0,get:function(){return v_7[A]}})})});var h58=h((x_7)=>{Object.defineProperty(x_7,"__esModule",{value:!0});x_7.resolveHttpAuthSchemeConfig=x_7.defaultSSOHttpAuthSchemeProvider=x_7.defaultSSOHttpAuthSchemeParametersProvider=void 0;var Qt3=o_(),S58=WG(),Ut3=async(A,q,K)=>{return{operation:(0,S58.getSmithyContext)(q).operation,region:await(0,S58.normalizeProvider)(A.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};x_7.defaultSSOHttpAuthSchemeParametersProvider=Ut3;function dt3(A){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:A.region},propertiesExtractor:(q,K)=>({signingProperties:{config:q,context:K}})}}function Vz1(A){return{schemeId:"smithy.api#noAuth"}}var ct3=(A)=>{let q=[];switch(A.operation){case"GetRoleCredentials":{q.push(Vz1(A));break}case"ListAccountRoles":{q.push(Vz1(A));break}case"ListAccounts":{q.push(Vz1(A));break}case"Logout":{q.push(Vz1(A));break}default:q.push(dt3(A))}return q};x_7.defaultSSOHttpAuthSchemeProvider=ct3;var lt3=(A)=>{let q=(0,Qt3.resolveAwsSdkSigV4Config)(A);return Object.assign(q,{authSchemePreference:(0,S58.normalizeProvider)(A.authSchemePreference??[])})};x_7.resolveHttpAuthSchemeConfig=lt3});var u_7=h((Gz2,rt3)=>{rt3.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.936.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.936.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.936.0","@aws-sdk/middleware-user-agent":"3.936.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.936.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.5","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.12","@smithy/middleware-retry":"^4.4.12","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.8","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.11","@smithy/util-defaults-mode-node":"^4.2.14","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.8.3"},engines:{node:">=18.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var m_7=h((at3)=>{var ot3=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";at3.isArrayBuffer=ot3});var I58=h((qe3)=>{var tt3=m_7(),C58=u6("buffer"),et3=(A,q=0,K=A.byteLength-q)=>{if(!tt3.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return C58.Buffer.from(A,q,K)},Ae3=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?C58.Buffer.from(A,q):C58.Buffer.from(A)};qe3.fromArrayBuffer=et3;qe3.fromString=Ae3});var p_7=h((B_7)=>{Object.defineProperty(B_7,"__esModule",{value:!0});B_7.fromBase64=void 0;var ze3=I58(),we3=/^[A-Za-z0-9+/]*={0,2}$/,_e3=(A)=>{if(A.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!we3.exec(A))throw TypeError("Invalid base64 string.");let q=(0,ze3.fromString)(A,"base64");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength)};B_7.fromBase64=_e3});var U_7=h((F_7)=>{Object.defineProperty(F_7,"__esModule",{value:!0});F_7.toBase64=void 0;var $e3=I58(),Oe3=K2(),He3=(A)=>{let q;if(typeof A==="string")q=(0,Oe3.fromUtf8)(A);else q=A;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,$e3.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("base64")};F_7.toBase64=He3});var l_7=h((hb6)=>{var d_7=p_7(),c_7=U_7();Object.keys(d_7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(hb6,A))Object.defineProperty(hb6,A,{enumerable:!0,get:function(){return d_7[A]}})});Object.keys(c_7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(hb6,A))Object.defineProperty(hb6,A,{enumerable:!0,get:function(){return c_7[A]}})})});var O$7=h((_$7)=>{Object.defineProperty(_$7,"__esModule",{value:!0});_$7.ruleSet=void 0;var K$7="required",ry="fn",oy="argv",DX6="ref",i_7=!0,n_7="isSet",Cb6="booleanEquals",JX6="error",MX6="endpoint",Bd="tree",x58="PartitionResult",b58="getAttr",r_7={[K$7]:!1,type:"string"},o_7={[K$7]:!0,default:!1,type:"boolean"},a_7={[DX6]:"Endpoint"},Y$7={[ry]:Cb6,[oy]:[{[DX6]:"UseFIPS"},!0]},z$7={[ry]:Cb6,[oy]:[{[DX6]:"UseDualStack"},!0]},ny={},s_7={[ry]:b58,[oy]:[{[DX6]:x58},"supportsFIPS"]},w$7={[DX6]:x58},t_7={[ry]:Cb6,[oy]:[!0,{[ry]:b58,[oy]:[w$7,"supportsDualStack"]}]},e_7=[Y$7],A$7=[z$7],q$7=[{[DX6]:"Region"}],je3={version:"1.0",parameters:{Region:r_7,UseDualStack:o_7,UseFIPS:o_7,Endpoint:r_7},rules:[{conditions:[{[ry]:n_7,[oy]:[a_7]}],rules:[{conditions:e_7,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:JX6},{conditions:A$7,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:JX6},{endpoint:{url:a_7,properties:ny,headers:ny},type:MX6}],type:Bd},{conditions:[{[ry]:n_7,[oy]:q$7}],rules:[{conditions:[{[ry]:"aws.partition",[oy]:q$7,assign:x58}],rules:[{conditions:[Y$7,z$7],rules:[{conditions:[{[ry]:Cb6,[oy]:[i_7,s_7]},t_7],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ny,headers:ny},type:MX6}],type:Bd},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:JX6}],type:Bd},{conditions:e_7,rules:[{conditions:[{[ry]:Cb6,[oy]:[s_7,i_7]}],rules:[{conditions:[{[ry]:"stringEquals",[oy]:[{[ry]:b58,[oy]:[w$7,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:ny,headers:ny},type:MX6},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ny,headers:ny},type:MX6}],type:Bd},{error:"FIPS is enabled but this partition does not support FIPS",type:JX6}],type:Bd},{conditions:A$7,rules:[{conditions:[t_7],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ny,headers:ny},type:MX6}],type:Bd},{error:"DualStack is enabled but this partition does not support DualStack",type:JX6}],type:Bd},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:ny,headers:ny},type:MX6}],type:Bd}],type:Bd},{error:"Invalid Configuration: Missing Region",type:JX6}]};_$7.ruleSet=je3});var J$7=h((H$7)=>{Object.defineProperty(H$7,"__esModule",{value:!0});H$7.defaultEndpointResolver=void 0;var Je3=AB(),u58=YI(),Me3=O$7(),De3=new u58.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Xe3=(A,q={})=>{return De3.get(A,()=>(0,u58.resolveEndpoint)(Me3.ruleSet,{endpointParams:A,logger:q.logger}))};H$7.defaultEndpointResolver=Xe3;u58.customEndpointFunctions.aws=Je3.awsEndpointFunctions});var W$7=h((X$7)=>{Object.defineProperty(X$7,"__esModule",{value:!0});X$7.getRuntimeConfig=void 0;var Pe3=o_(),We3=bd(),Ge3=Ew(),Ze3=Sb6(),fe3=py(),M$7=l_7(),D$7=K2(),Te3=h58(),ve3=J$7(),Ve3=(A)=>{return{apiVersion:"2019-06-10",base64Decoder:A?.base64Decoder??M$7.fromBase64,base64Encoder:A?.base64Encoder??M$7.toBase64,disableHostPrefix:A?.disableHostPrefix??!1,endpointProvider:A?.endpointProvider??ve3.defaultEndpointResolver,extensions:A?.extensions??[],httpAuthSchemeProvider:A?.httpAuthSchemeProvider??Te3.defaultSSOHttpAuthSchemeProvider,httpAuthSchemes:A?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(q)=>q.getIdentityProvider("aws.auth#sigv4"),signer:new Pe3.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(q)=>q.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ge3.NoAuthSigner}],logger:A?.logger??new Ze3.NoOpLogger,protocol:A?.protocol??new We3.AwsRestJsonProtocol({defaultNamespace:"com.amazonaws.sso"}),serviceId:A?.serviceId??"SSO",urlParser:A?.urlParser??fe3.parseUrl,utf8Decoder:A?.utf8Decoder??D$7.fromUtf8,utf8Encoder:A?.utf8Encoder??D$7.toUtf8}};X$7.getRuntimeConfig=Ve3});var N$7=h((v$7)=>{Object.defineProperty(v$7,"__esModule",{value:!0});v$7.getRuntimeConfig=void 0;var Ne3=S2(),ke3=Ne3.__importDefault(u_7()),G$7=o_(),Z$7=hd(),Nz1=qJ(),Ee3=Cd(),f$7=W0(),uK6=Bv(),T$7=uv(),Le3=Id(),ye3=YB(),Re3=W$7(),Se3=Sb6(),he3=md(),Ce3=Sb6(),Ie3=(A)=>{(0,Ce3.emitWarningIfUnsupportedVersion)(process.version);let q=(0,he3.resolveDefaultsModeConfig)(A),K=()=>q().then(Se3.loadConfigsForDefaultMode),Y=(0,Re3.getRuntimeConfig)(A);(0,G$7.emitWarningIfUnsupportedVersion)(process.version);let z={profile:A?.profile,logger:Y.logger};return{...Y,...A,runtime:"node",defaultsMode:q,authSchemePreference:A?.authSchemePreference??(0,uK6.loadConfig)(G$7.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,z),bodyLengthChecker:A?.bodyLengthChecker??Le3.calculateBodyLength,defaultUserAgentProvider:A?.defaultUserAgentProvider??(0,Z$7.createDefaultUserAgentProvider)({serviceId:Y.serviceId,clientVersion:ke3.default.version}),maxAttempts:A?.maxAttempts??(0,uK6.loadConfig)(f$7.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,A),region:A?.region??(0,uK6.loadConfig)(Nz1.NODE_REGION_CONFIG_OPTIONS,{...Nz1.NODE_REGION_CONFIG_FILE_OPTIONS,...z}),requestHandler:T$7.NodeHttpHandler.create(A?.requestHandler??K),retryMode:A?.retryMode??(0,uK6.loadConfig)({...f$7.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await K()).retryMode||ye3.DEFAULT_RETRY_MODE},A),sha256:A?.sha256??Ee3.Hash.bind(null,"sha256"),streamCollector:A?.streamCollector??T$7.streamCollector,useDualstackEndpoint:A?.useDualstackEndpoint??(0,uK6.loadConfig)(Nz1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,z),useFipsEndpoint:A?.useFipsEndpoint??(0,uK6.loadConfig)(Nz1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,z),userAgentAppId:A?.userAgentAppId??(0,uK6.loadConfig)(Z$7.NODE_APP_ID_CONFIG_OPTIONS,z)}};v$7.getRuntimeConfig=Ie3});var y$7=h((ge3)=>{var xe3=V58(),be3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},ue3=(A)=>{return{httpHandler:A.httpHandler()}};class k$7{name;kind;values;constructor({name:A,kind:q=xe3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class E$7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class kz1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new kz1({...A,headers:{...A.headers}});if(q.query)q.query=me3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return kz1.clone(this)}}function me3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class L$7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function Be3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}ge3.Field=k$7;ge3.Fields=E$7;ge3.HttpRequest=kz1;ge3.HttpResponse=L$7;ge3.getHttpHandlerExtensionConfiguration=be3;ge3.isValidHostname=Be3;ge3.resolveHttpHandlerRuntimeConfig=ue3});var c$7=h((p58)=>{var R$7=vd(),ie3=Vd(),ne3=Nd(),S$7=KB(),re3=qJ(),Ib6=Ew(),XX6=RO(),oe3=Sd(),xb6=zI(),h$7=W0(),OI=Sb6(),C$7=h58(),ae3=N$7(),I$7=wI(),x$7=y$7(),se3=(A)=>{return Object.assign(A,{useDualstackEndpoint:A.useDualstackEndpoint??!1,useFipsEndpoint:A.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"})},Ez1={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},te3=(A)=>{let{httpAuthSchemes:q,httpAuthSchemeProvider:K,credentials:Y}=A;return{setHttpAuthScheme(z){let w=q.findIndex((_)=>_.schemeId===z.schemeId);if(w===-1)q.push(z);else q.splice(w,1,z)},httpAuthSchemes(){return q},setHttpAuthSchemeProvider(z){K=z},httpAuthSchemeProvider(){return K},setCredentials(z){Y=z},credentials(){return Y}}},ee3=(A)=>{return{httpAuthSchemes:A.httpAuthSchemes(),httpAuthSchemeProvider:A.httpAuthSchemeProvider(),credentials:A.credentials()}},A65=(A,q)=>{let K=Object.assign(I$7.getAwsRegionExtensionConfiguration(A),OI.getDefaultExtensionConfiguration(A),x$7.getHttpHandlerExtensionConfiguration(A),te3(A));return q.forEach((Y)=>Y.configure(K)),Object.assign(A,I$7.resolveAwsRegionExtensionConfiguration(K),OI.resolveDefaultRuntimeConfig(K),x$7.resolveHttpHandlerRuntimeConfig(K),ee3(K))};class bb6 extends OI.Client{config;constructor(...[A]){let q=ae3.getRuntimeConfig(A||{});super(q);this.initConfig=q;let K=se3(q),Y=S$7.resolveUserAgentConfig(K),z=h$7.resolveRetryConfig(Y),w=re3.resolveRegionConfig(z),_=R$7.resolveHostHeaderConfig(w),$=xb6.resolveEndpointConfig(_),O=C$7.resolveHttpAuthSchemeConfig($),H=A65(O,A?.extensions||[]);this.config=H,this.middlewareStack.use(XX6.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(S$7.getUserAgentPlugin(this.config)),this.middlewareStack.use(h$7.getRetryPlugin(this.config)),this.middlewareStack.use(oe3.getContentLengthPlugin(this.config)),this.middlewareStack.use(R$7.getHostHeaderPlugin(this.config)),this.middlewareStack.use(ie3.getLoggerPlugin(this.config)),this.middlewareStack.use(ne3.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(Ib6.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:C$7.defaultSSOHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(j)=>new Ib6.DefaultIdentityProviderConfig({"aws.auth#sigv4":j.credentials})})),this.middlewareStack.use(Ib6.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}var PX6=class A extends OI.ServiceException{constructor(q){super(q);Object.setPrototypeOf(this,A.prototype)}},b$7=class A extends PX6{name="InvalidRequestException";$fault="client";constructor(q){super({name:"InvalidRequestException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},u$7=class A extends PX6{name="ResourceNotFoundException";$fault="client";constructor(q){super({name:"ResourceNotFoundException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},m$7=class A extends PX6{name="TooManyRequestsException";$fault="client";constructor(q){super({name:"TooManyRequestsException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},B$7=class A extends PX6{name="UnauthorizedException";$fault="client";constructor(q){super({name:"UnauthorizedException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},q65="AccountInfo",K65="AccountListType",Y65="AccessTokenType",z65="GetRoleCredentials",w65="GetRoleCredentialsRequest",_65="GetRoleCredentialsResponse",$65="InvalidRequestException",O65="Logout",H65="ListAccounts",j65="ListAccountsRequest",J65="ListAccountRolesRequest",M65="ListAccountRolesResponse",D65="ListAccountsResponse",X65="ListAccountRoles",P65="LogoutRequest",W65="RoleCredentials",G65="RoleInfo",Z65="RoleListType",f65="ResourceNotFoundException",T65="SecretAccessKeyType",v65="SessionTokenType",V65="TooManyRequestsException",N65="UnauthorizedException",Lz1="accountId",k65="accessKeyId",E65="accountList",L65="accountName",yz1="accessToken",g$7="account_id",Rz1="client",Sz1="error",y65="emailAddress",R65="expiration",hz1="http",Cz1="httpError",Iz1="httpHeader",mK6="httpQuery",xz1="message",p$7="maxResults",F$7="max_result",bz1="nextToken",Q$7="next_token",S65="roleCredentials",h65="roleList",U$7="roleName",C65="role_name",d$7="smithy.ts.sdk.synthetic.com.amazonaws.sso",I65="secretAccessKey",x65="sessionToken",uz1="x-amz-sso_bearer_token",O_="com.amazonaws.sso",mz1=[0,O_,Y65,8,0],b65=[0,O_,T65,8,0],u65=[0,O_,v65,8,0],m65=[3,O_,q65,0,[Lz1,L65,y65],[0,0,0]],B65=[3,O_,w65,0,[U$7,Lz1,yz1],[[0,{[mK6]:C65}],[0,{[mK6]:g$7}],[()=>mz1,{[Iz1]:uz1}]]],g65=[3,O_,_65,0,[S65],[[()=>i65,0]]],p65=[-3,O_,$65,{[Sz1]:Rz1,[Cz1]:400},[xz1],[0]];XX6.TypeRegistry.for(O_).registerError(p65,b$7);var F65=[3,O_,J65,0,[bz1,p$7,yz1,Lz1],[[0,{[mK6]:Q$7}],[1,{[mK6]:F$7}],[()=>mz1,{[Iz1]:uz1}],[0,{[mK6]:g$7}]]],Q65=[3,O_,M65,0,[bz1,h65],[0,()=>e65]],U65=[3,O_,j65,0,[bz1,p$7,yz1],[[0,{[mK6]:Q$7}],[1,{[mK6]:F$7}],[()=>mz1,{[Iz1]:uz1}]]],d65=[3,O_,D65,0,[bz1,E65],[0,()=>t65]],c65=[3,O_,P65,0,[yz1],[[()=>mz1,{[Iz1]:uz1}]]],l65=[-3,O_,f65,{[Sz1]:Rz1,[Cz1]:404},[xz1],[0]];XX6.TypeRegistry.for(O_).registerError(l65,u$7);var i65=[3,O_,W65,0,[k65,I65,x65,R65],[0,[()=>b65,0],[()=>u65,0],1]],n65=[3,O_,G65,0,[U$7,Lz1],[0,0]],r65=[-3,O_,V65,{[Sz1]:Rz1,[Cz1]:429},[xz1],[0]];XX6.TypeRegistry.for(O_).registerError(r65,m$7);var o65=[-3,O_,N65,{[Sz1]:Rz1,[Cz1]:401},[xz1],[0]];XX6.TypeRegistry.for(O_).registerError(o65,B$7);var a65="unit",s65=[-3,d$7,"SSOServiceException",0,[],[]];XX6.TypeRegistry.for(d$7).registerError(s65,PX6);var t65=[1,O_,K65,0,()=>m65],e65=[1,O_,Z65,0,()=>n65],A15=[9,O_,z65,{[hz1]:["GET","/federation/credentials",200]},()=>B65,()=>g65],q15=[9,O_,X65,{[hz1]:["GET","/assignment/roles",200]},()=>F65,()=>Q65],K15=[9,O_,H65,{[hz1]:["GET","/assignment/accounts",200]},()=>U65,()=>d65],Y15=[9,O_,O65,{[hz1]:["POST","/logout",200]},()=>c65,()=>a65];class m58 extends OI.Command.classBuilder().ep(Ez1).m(function(A,q,K,Y){return[xb6.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(A15).build(){}class Bz1 extends OI.Command.classBuilder().ep(Ez1).m(function(A,q,K,Y){return[xb6.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccountRoles",{}).n("SSOClient","ListAccountRolesCommand").sc(q15).build(){}class gz1 extends OI.Command.classBuilder().ep(Ez1).m(function(A,q,K,Y){return[xb6.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccounts",{}).n("SSOClient","ListAccountsCommand").sc(K15).build(){}class B58 extends OI.Command.classBuilder().ep(Ez1).m(function(A,q,K,Y){return[xb6.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("SWBPortalService","Logout",{}).n("SSOClient","LogoutCommand").sc(Y15).build(){}var z15={GetRoleCredentialsCommand:m58,ListAccountRolesCommand:Bz1,ListAccountsCommand:gz1,LogoutCommand:B58};class g58 extends bb6{}OI.createAggregatedClient(z15,g58);var w15=Ib6.createPaginator(bb6,Bz1,"nextToken","nextToken","maxResults"),_15=Ib6.createPaginator(bb6,gz1,"nextToken","nextToken","maxResults");Object.defineProperty(p58,"$Command",{enumerable:!0,get:function(){return OI.Command}});Object.defineProperty(p58,"__Client",{enumerable:!0,get:function(){return OI.Client}});p58.GetRoleCredentialsCommand=m58;p58.InvalidRequestException=b$7;p58.ListAccountRolesCommand=Bz1;p58.ListAccountsCommand=gz1;p58.LogoutCommand=B58;p58.ResourceNotFoundException=u$7;p58.SSO=g58;p58.SSOClient=bb6;p58.SSOServiceException=PX6;p58.TooManyRequestsException=m$7;p58.UnauthorizedException=B$7;p58.paginateListAccountRoles=w15;p58.paginateListAccounts=_15});var i$7=h((F58)=>{var l$7=c$7();Object.defineProperty(F58,"GetRoleCredentialsCommand",{enumerable:!0,get:function(){return l$7.GetRoleCredentialsCommand}});Object.defineProperty(F58,"SSOClient",{enumerable:!0,get:function(){return l$7.SSOClient}})});var Fz1=h((V15)=>{var HI=MM(),pz1=am(),n$7=mv(),T15=vz1(),o$7=(A)=>A&&(typeof A.sso_start_url==="string"||typeof A.sso_account_id==="string"||typeof A.sso_session==="string"||typeof A.sso_region==="string"||typeof A.sso_role_name==="string"),ub6=!1,r$7=async({ssoStartUrl:A,ssoSession:q,ssoAccountId:K,ssoRegion:Y,ssoRoleName:z,ssoClient:w,clientConfig:_,parentClientConfig:$,profile:O,filepath:H,configFilepath:j,ignoreCache:J,logger:M})=>{let D,X="To refresh this SSO session run aws sso login with the corresponding profile.";if(q)try{let x=await T15.fromSso({profile:O,filepath:H,configFilepath:j,ignoreCache:J})();D={accessToken:x.token,expiresAt:new Date(x.expiration).toISOString()}}catch(x){throw new HI.CredentialsProviderError(x.message,{tryNextLink:ub6,logger:M})}else try{D=await pz1.getSSOTokenFromFile(A)}catch(x){throw new HI.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:ub6,logger:M})}if(new Date(D.expiresAt).getTime()-Date.now()<=0)throw new HI.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:ub6,logger:M});let{accessToken:P}=D,{SSOClient:W,GetRoleCredentialsCommand:G}=await Promise.resolve().then(function(){return i$7()}),Z=w||new W(Object.assign({},_??{},{logger:_?.logger??$?.logger,region:_?.region??Y,userAgentAppId:_?.userAgentAppId??$?.userAgentAppId})),f;try{f=await Z.send(new G({accountId:K,roleName:z,accessToken:P}))}catch(x){throw new HI.CredentialsProviderError(x,{tryNextLink:ub6,logger:M})}let{roleCredentials:{accessKeyId:v,secretAccessKey:V,sessionToken:N,expiration:L,credentialScope:S,accountId:C}={}}=f;if(!v||!V||!N||!L)throw new HI.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:ub6,logger:M});let m={accessKeyId:v,secretAccessKey:V,sessionToken:N,expiration:new Date(L),...S&&{credentialScope:S},...C&&{accountId:C}};if(q)n$7.setCredentialFeature(m,"CREDENTIALS_SSO","s");else n$7.setCredentialFeature(m,"CREDENTIALS_SSO_LEGACY","u");return m},a$7=(A,q)=>{let{sso_start_url:K,sso_account_id:Y,sso_region:z,sso_role_name:w}=A;if(!K||!Y||!z||!w)throw new HI.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(A).join(", ")}
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:q});return A},v15=(A={})=>async({callerClientConfig:q}={})=>{A.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:K,ssoAccountId:Y,ssoRegion:z,ssoRoleName:w,ssoSession:_}=A,{ssoClient:$}=A,O=pz1.getProfileName({profile:A.profile??q?.profile});if(!K&&!Y&&!z&&!w&&!_){let j=(await pz1.parseKnownFiles(A))[O];if(!j)throw new HI.CredentialsProviderError(`Profile ${O} was not found.`,{logger:A.logger});if(!o$7(j))throw new HI.CredentialsProviderError(`Profile ${O} is not configured with SSO credentials.`,{logger:A.logger});if(j?.sso_session){let G=(await pz1.loadSsoSessionData(A))[j.sso_session],Z=` configurations in profile ${O} and sso-session ${j.sso_session}`;if(z&&z!==G.sso_region)throw new HI.CredentialsProviderError("Conflicting SSO region"+Z,{tryNextLink:!1,logger:A.logger});if(K&&K!==G.sso_start_url)throw new HI.CredentialsProviderError("Conflicting SSO start_url"+Z,{tryNextLink:!1,logger:A.logger});j.sso_region=G.sso_region,j.sso_start_url=G.sso_start_url}let{sso_start_url:J,sso_account_id:M,sso_region:D,sso_role_name:X,sso_session:P}=a$7(j,A.logger);return r$7({ssoStartUrl:J,ssoSession:P,ssoAccountId:M,ssoRegion:D,ssoRoleName:X,ssoClient:$,clientConfig:A.clientConfig,parentClientConfig:A.parentClientConfig,profile:O,filepath:A.filepath,configFilepath:A.configFilepath,ignoreCache:A.ignoreCache,logger:A.logger})}else if(!K||!Y||!z||!w)throw new HI.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:A.logger});else return r$7({ssoStartUrl:K,ssoSession:_,ssoAccountId:Y,ssoRegion:z,ssoRoleName:w,ssoClient:$,clientConfig:A.clientConfig,parentClientConfig:A.parentClientConfig,profile:O,filepath:A.filepath,configFilepath:A.configFilepath,ignoreCache:A.ignoreCache,logger:A.logger})};V15.fromSSO=v15;V15.isSsoProfile=o$7;V15.validateSsoProfile=a$7});var s$7=h((C15)=>{C15.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(C15.HttpAuthLocation||(C15.HttpAuthLocation={}));C15.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(C15.HttpApiKeyAuthLocation||(C15.HttpApiKeyAuthLocation={}));C15.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(C15.EndpointURLScheme||(C15.EndpointURLScheme={}));C15.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(C15.AlgorithmId||(C15.AlgorithmId={}));var L15=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>C15.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>C15.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},y15=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},R15=(A)=>{return L15(A)},S15=(A)=>{return y15(A)};C15.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(C15.FieldPosition||(C15.FieldPosition={}));var h15="__smithy_context";C15.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(C15.IniSectionType||(C15.IniSectionType={}));C15.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(C15.RequestHandlerProtocol||(C15.RequestHandlerProtocol={}));C15.SMITHY_CONTEXT_KEY=h15;C15.getDefaultClientConfiguration=R15;C15.resolveDefaultRuntimeConfig=S15});var qO7=h((F15)=>{var u15=s$7(),m15=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},B15=(A)=>{return{httpHandler:A.httpHandler()}};class t$7{name;kind;values;constructor({name:A,kind:q=u15.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class e$7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class Qz1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new Qz1({...A,headers:{...A.headers}});if(q.query)q.query=g15(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return Qz1.clone(this)}}function g15(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class AO7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function p15(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}F15.Field=t$7;F15.Fields=e$7;F15.HttpRequest=Qz1;F15.HttpResponse=AO7;F15.getHttpHandlerExtensionConfiguration=m15;F15.isValidHostname=p15;F15.resolveHttpHandlerRuntimeConfig=B15});var r58=h((KO7)=>{Object.defineProperty(KO7,"__esModule",{value:!0});KO7.resolveHttpAuthSchemeConfig=KO7.defaultSigninHttpAuthSchemeProvider=KO7.defaultSigninHttpAuthSchemeParametersProvider=void 0;var r15=o_(),n58=WG(),o15=async(A,q,K)=>{return{operation:(0,n58.getSmithyContext)(q).operation,region:await(0,n58.normalizeProvider)(A.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};KO7.defaultSigninHttpAuthSchemeParametersProvider=o15;function a15(A){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:A.region},propertiesExtractor:(q,K)=>({signingProperties:{config:q,context:K}})}}function s15(A){return{schemeId:"smithy.api#noAuth"}}var t15=(A)=>{let q=[];switch(A.operation){case"CreateOAuth2Token":{q.push(s15(A));break}default:q.push(a15(A))}return q};KO7.defaultSigninHttpAuthSchemeProvider=t15;var e15=(A)=>{let q=(0,r15.resolveAwsSdkSigV4Config)(A);return Object.assign(q,{authSchemePreference:(0,n58.normalizeProvider)(A.authSchemePreference??[])})};KO7.resolveHttpAuthSchemeConfig=e15});var PO7=h((DO7)=>{Object.defineProperty(DO7,"__esModule",{value:!0});DO7.ruleSet=void 0;var MO7="required",fG="fn",TG="argv",gd="ref",zO7=!0,wO7="isSet",BK6="booleanEquals",WX6="error",ns="endpoint",jI="tree",cz1="PartitionResult",o58="stringEquals",_O7={[MO7]:!0,default:!1,type:"boolean"},$O7={[MO7]:!1,type:"string"},OO7={[gd]:"Endpoint"},a58={[fG]:BK6,[TG]:[{[gd]:"UseFIPS"},!0]},s58={[fG]:BK6,[TG]:[{[gd]:"UseDualStack"},!0]},ZG={},t58={[fG]:"getAttr",[TG]:[{[gd]:cz1},"name"]},Uz1={[fG]:BK6,[TG]:[{[gd]:"UseFIPS"},!1]},dz1={[fG]:BK6,[TG]:[{[gd]:"UseDualStack"},!1]},HO7={[fG]:"getAttr",[TG]:[{[gd]:cz1},"supportsFIPS"]},jO7={[fG]:BK6,[TG]:[!0,{[fG]:"getAttr",[TG]:[{[gd]:cz1},"supportsDualStack"]}]},JO7=[{[gd]:"Region"}],K85={version:"1.0",parameters:{UseDualStack:_O7,UseFIPS:_O7,Endpoint:$O7,Region:$O7},rules:[{conditions:[{[fG]:wO7,[TG]:[OO7]}],rules:[{conditions:[a58],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:WX6},{rules:[{conditions:[s58],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:WX6},{endpoint:{url:OO7,properties:ZG,headers:ZG},type:ns}],type:jI}],type:jI},{rules:[{conditions:[{[fG]:wO7,[TG]:JO7}],rules:[{conditions:[{[fG]:"aws.partition",[TG]:JO7,assign:cz1}],rules:[{conditions:[{[fG]:o58,[TG]:[t58,"aws"]},Uz1,dz1],endpoint:{url:"https://{Region}.signin.aws.amazon.com",properties:ZG,headers:ZG},type:ns},{conditions:[{[fG]:o58,[TG]:[t58,"aws-cn"]},Uz1,dz1],endpoint:{url:"https://{Region}.signin.amazonaws.cn",properties:ZG,headers:ZG},type:ns},{conditions:[{[fG]:o58,[TG]:[t58,"aws-us-gov"]},Uz1,dz1],endpoint:{url:"https://{Region}.signin.amazonaws-us-gov.com",properties:ZG,headers:ZG},type:ns},{conditions:[a58,s58],rules:[{conditions:[{[fG]:BK6,[TG]:[zO7,HO7]},jO7],rules:[{endpoint:{url:"https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ZG,headers:ZG},type:ns}],type:jI},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:WX6}],type:jI},{conditions:[a58,dz1],rules:[{conditions:[{[fG]:BK6,[TG]:[HO7,zO7]}],rules:[{endpoint:{url:"https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ZG,headers:ZG},type:ns}],type:jI},{error:"FIPS is enabled but this partition does not support FIPS",type:WX6}],type:jI},{conditions:[Uz1,s58],rules:[{conditions:[jO7],rules:[{endpoint:{url:"https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ZG,headers:ZG},type:ns}],type:jI},{error:"DualStack is enabled but this partition does not support DualStack",type:WX6}],type:jI},{endpoint:{url:"https://signin.{Region}.{PartitionResult#dnsSuffix}",properties:ZG,headers:ZG},type:ns}],type:jI}],type:jI},{error:"Invalid Configuration: Missing Region",type:WX6}],type:jI}]};DO7.ruleSet=K85});var ZO7=h((WO7)=>{Object.defineProperty(WO7,"__esModule",{value:!0});WO7.defaultEndpointResolver=void 0;var Y85=AB(),e58=YI(),z85=PO7(),w85=new e58.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),_85=(A,q={})=>{return w85.get(A,()=>(0,e58.resolveEndpoint)(z85.ruleSet,{endpointParams:A,logger:q.logger}))};WO7.defaultEndpointResolver=_85;e58.customEndpointFunctions.aws=Y85.awsEndpointFunctions});var NO7=h((vO7)=>{Object.defineProperty(vO7,"__esModule",{value:!0});vO7.getRuntimeConfig=void 0;var $85=o_(),O85=bd(),H85=Ew(),j85=Xf(),J85=py(),fO7=Gz1(),TO7=K2(),M85=r58(),D85=ZO7(),X85=(A)=>{return{apiVersion:"2023-01-01",base64Decoder:A?.base64Decoder??fO7.fromBase64,base64Encoder:A?.base64Encoder??fO7.toBase64,disableHostPrefix:A?.disableHostPrefix??!1,endpointProvider:A?.endpointProvider??D85.defaultEndpointResolver,extensions:A?.extensions??[],httpAuthSchemeProvider:A?.httpAuthSchemeProvider??M85.defaultSigninHttpAuthSchemeProvider,httpAuthSchemes:A?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(q)=>q.getIdentityProvider("aws.auth#sigv4"),signer:new $85.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(q)=>q.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new H85.NoAuthSigner}],logger:A?.logger??new j85.NoOpLogger,protocol:A?.protocol??new O85.AwsRestJsonProtocol({defaultNamespace:"com.amazonaws.signin"}),serviceId:A?.serviceId??"Signin",urlParser:A?.urlParser??J85.parseUrl,utf8Decoder:A?.utf8Decoder??TO7.fromUtf8,utf8Encoder:A?.utf8Encoder??TO7.toUtf8}};vO7.getRuntimeConfig=X85});var hO7=h((RO7)=>{Object.defineProperty(RO7,"__esModule",{value:!0});RO7.getRuntimeConfig=void 0;var P85=S2(),W85=P85.__importDefault(Dz1()),kO7=o_(),EO7=hd(),lz1=qJ(),G85=Cd(),LO7=W0(),gK6=Bv(),yO7=uv(),Z85=Id(),f85=YB(),T85=NO7(),v85=Xf(),V85=md(),N85=Xf(),k85=(A)=>{(0,N85.emitWarningIfUnsupportedVersion)(process.version);let q=(0,V85.resolveDefaultsModeConfig)(A),K=()=>q().then(v85.loadConfigsForDefaultMode),Y=(0,T85.getRuntimeConfig)(A);(0,kO7.emitWarningIfUnsupportedVersion)(process.version);let z={profile:A?.profile,logger:Y.logger};return{...Y,...A,runtime:"node",defaultsMode:q,authSchemePreference:A?.authSchemePreference??(0,gK6.loadConfig)(kO7.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,z),bodyLengthChecker:A?.bodyLengthChecker??Z85.calculateBodyLength,defaultUserAgentProvider:A?.defaultUserAgentProvider??(0,EO7.createDefaultUserAgentProvider)({serviceId:Y.serviceId,clientVersion:W85.default.version}),maxAttempts:A?.maxAttempts??(0,gK6.loadConfig)(LO7.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,A),region:A?.region??(0,gK6.loadConfig)(lz1.NODE_REGION_CONFIG_OPTIONS,{...lz1.NODE_REGION_CONFIG_FILE_OPTIONS,...z}),requestHandler:yO7.NodeHttpHandler.create(A?.requestHandler??K),retryMode:A?.retryMode??(0,gK6.loadConfig)({...LO7.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await K()).retryMode||f85.DEFAULT_RETRY_MODE},A),sha256:A?.sha256??G85.Hash.bind(null,"sha256"),streamCollector:A?.streamCollector??yO7.streamCollector,useDualstackEndpoint:A?.useDualstackEndpoint??(0,gK6.loadConfig)(lz1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,z),useFipsEndpoint:A?.useFipsEndpoint??(0,gK6.loadConfig)(lz1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,z),userAgentAppId:A?.userAgentAppId??(0,gK6.loadConfig)(EO7.NODE_APP_ID_CONFIG_OPTIONS,z)}};RO7.getRuntimeConfig=k85});var qH7=h((_98)=>{var CO7=vd(),E85=Vd(),L85=Nd(),IO7=KB(),y85=qJ(),A98=Ew(),GX6=RO(),R85=Sd(),rO7=zI(),xO7=W0(),rs=Xf(),bO7=r58(),S85=hO7(),uO7=wI(),mO7=Tz1(),h85=(A)=>{return Object.assign(A,{useDualstackEndpoint:A.useDualstackEndpoint??!1,useFipsEndpoint:A.useFipsEndpoint??!1,defaultSigningName:"signin"})},C85={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},I85=(A)=>{let{httpAuthSchemes:q,httpAuthSchemeProvider:K,credentials:Y}=A;return{setHttpAuthScheme(z){let w=q.findIndex((_)=>_.schemeId===z.schemeId);if(w===-1)q.push(z);else q.splice(w,1,z)},httpAuthSchemes(){return q},setHttpAuthSchemeProvider(z){K=z},httpAuthSchemeProvider(){return K},setCredentials(z){Y=z},credentials(){return Y}}},x85=(A)=>{return{httpAuthSchemes:A.httpAuthSchemes(),httpAuthSchemeProvider:A.httpAuthSchemeProvider(),credentials:A.credentials()}},b85=(A,q)=>{let K=Object.assign(uO7.getAwsRegionExtensionConfiguration(A),rs.getDefaultExtensionConfiguration(A),mO7.getHttpHandlerExtensionConfiguration(A),I85(A));return q.forEach((Y)=>Y.configure(K)),Object.assign(A,uO7.resolveAwsRegionExtensionConfiguration(K),rs.resolveDefaultRuntimeConfig(K),mO7.resolveHttpHandlerRuntimeConfig(K),x85(K))};class q98 extends rs.Client{config;constructor(...[A]){let q=S85.getRuntimeConfig(A||{});super(q);this.initConfig=q;let K=h85(q),Y=IO7.resolveUserAgentConfig(K),z=xO7.resolveRetryConfig(Y),w=y85.resolveRegionConfig(z),_=CO7.resolveHostHeaderConfig(w),$=rO7.resolveEndpointConfig(_),O=bO7.resolveHttpAuthSchemeConfig($),H=b85(O,A?.extensions||[]);this.config=H,this.middlewareStack.use(GX6.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(IO7.getUserAgentPlugin(this.config)),this.middlewareStack.use(xO7.getRetryPlugin(this.config)),this.middlewareStack.use(R85.getContentLengthPlugin(this.config)),this.middlewareStack.use(CO7.getHostHeaderPlugin(this.config)),this.middlewareStack.use(E85.getLoggerPlugin(this.config)),this.middlewareStack.use(L85.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(A98.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:bO7.defaultSigninHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(j)=>new A98.DefaultIdentityProviderConfig({"aws.auth#sigv4":j.credentials})})),this.middlewareStack.use(A98.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}var ZX6=class A extends rs.ServiceException{constructor(q){super(q);Object.setPrototypeOf(this,A.prototype)}},oO7=class A extends ZX6{name="AccessDeniedException";$fault="client";error;constructor(q){super({name:"AccessDeniedException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error}},aO7=class A extends ZX6{name="InternalServerException";$fault="server";error;constructor(q){super({name:"InternalServerException",$fault:"server",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error}},sO7=class A extends ZX6{name="TooManyRequestsError";$fault="client";error;constructor(q){super({name:"TooManyRequestsError",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error}},tO7=class A extends ZX6{name="ValidationException";$fault="client";error;constructor(q){super({name:"ValidationException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error}},u85="AccessDeniedException",m85="AccessToken",B85="CreateOAuth2Token",g85="CreateOAuth2TokenRequest",p85="CreateOAuth2TokenRequestBody",F85="CreateOAuth2TokenResponseBody",Q85="CreateOAuth2TokenResponse",U85="InternalServerException",d85="RefreshToken",c85="TooManyRequestsError",l85="ValidationException",BO7="accessKeyId",gO7="accessToken",K98="client",pO7="clientId",FO7="codeVerifier",i85="code",os="error",QO7="expiresIn",UO7="grantType",n85="http",Y98="httpError",dO7="idToken",hk="jsonName",nz1="message",iz1="refreshToken",cO7="redirectUri",r85="server",lO7="secretAccessKey",iO7="sessionToken",eO7="smithy.ts.sdk.synthetic.com.amazonaws.signin",o85="tokenInput",a85="tokenOutput",nO7="tokenType",Pf="com.amazonaws.signin",AH7=[0,Pf,d85,8,0],s85=[-3,Pf,u85,{[os]:K98},[os,nz1],[0,0]];GX6.TypeRegistry.for(Pf).registerError(s85,oO7);var t85=[3,Pf,m85,8,[BO7,lO7,iO7],[[0,{[hk]:BO7}],[0,{[hk]:lO7}],[0,{[hk]:iO7}]]],e85=[3,Pf,g85,0,[o85],[[()=>AA5,16]]],AA5=[3,Pf,p85,0,[pO7,UO7,i85,cO7,FO7,iz1],[[0,{[hk]:pO7}],[0,{[hk]:UO7}],0,[0,{[hk]:cO7}],[0,{[hk]:FO7}],[()=>AH7,{[hk]:iz1}]]],qA5=[3,Pf,Q85,0,[a85],[[()=>KA5,16]]],KA5=[3,Pf,F85,0,[gO7,nO7,QO7,iz1,dO7],[[()=>t85,{[hk]:gO7}],[0,{[hk]:nO7}],[1,{[hk]:QO7}],[()=>AH7,{[hk]:iz1}],[0,{[hk]:dO7}]]],YA5=[-3,Pf,U85,{[os]:r85,[Y98]:500},[os,nz1],[0,0]];GX6.TypeRegistry.for(Pf).registerError(YA5,aO7);var zA5=[-3,Pf,c85,{[os]:K98,[Y98]:429},[os,nz1],[0,0]];GX6.TypeRegistry.for(Pf).registerError(zA5,sO7);var wA5=[-3,Pf,l85,{[os]:K98,[Y98]:400},[os,nz1],[0,0]];GX6.TypeRegistry.for(Pf).registerError(wA5,tO7);var _A5=[-3,eO7,"SigninServiceException",0,[],[]];GX6.TypeRegistry.for(eO7).registerError(_A5,ZX6);var $A5=[9,Pf,B85,{[n85]:["POST","/v1/token",200]},()=>e85,()=>qA5];class z98 extends rs.Command.classBuilder().ep(C85).m(function(A,q,K,Y){return[rO7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("Signin","CreateOAuth2Token",{}).n("SigninClient","CreateOAuth2TokenCommand").sc($A5).build(){}var OA5={CreateOAuth2TokenCommand:z98};class w98 extends q98{}rs.createAggregatedClient(OA5,w98);var HA5={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",SERVER_ERROR:"server_error",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"};Object.defineProperty(_98,"$Command",{enumerable:!0,get:function(){return rs.Command}});Object.defineProperty(_98,"__Client",{enumerable:!0,get:function(){return rs.Client}});_98.AccessDeniedException=oO7;_98.CreateOAuth2TokenCommand=z98;_98.InternalServerException=aO7;_98.OAuth2ErrorCode=HA5;_98.Signin=w98;_98.SigninClient=q98;_98.SigninServiceException=ZX6;_98.TooManyRequestsError=sO7;_98.ValidationException=tO7});var J98=h((NA5)=>{var fA5=mv(),as=MM(),H98=am(),TA5=qO7(),rz1=u6("node:crypto"),$98=u6("node:fs"),vA5=u6("node:os"),O98=u6("node:path");class j98{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300000;constructor(A,q,K){this.profileData=A,this.init=q,this.callerClientConfig=K}async loadCredentials(){let A=await this.loadToken();if(!A)throw new as.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let q=A.accessToken,K=Date.now();if(new Date(q.expiresAt).getTime()-K<=j98.REFRESH_THRESHOLD)return this.refresh(A);return{accessKeyId:q.accessKeyId,secretAccessKey:q.secretAccessKey,sessionToken:q.sessionToken,accountId:q.accountId,expiration:new Date(q.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(A){let{SigninClient:q,CreateOAuth2TokenCommand:K}=await Promise.resolve().then(() => q6(qH7())),{logger:Y,userAgentAppId:z}=this.callerClientConfig??{},_=((j)=>{return j?.metadata?.handlerProtocol==="h2"})(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,$=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,O=new q({credentials:{accessKeyId:"",secretAccessKey:""},region:$,requestHandler:_,logger:Y,userAgentAppId:z,...this.init?.clientConfig});this.createDPoPInterceptor(O.middlewareStack);let H={tokenInput:{clientId:A.clientId,refreshToken:A.refreshToken,grantType:"refresh_token"}};try{let j=await O.send(new K(H)),{accessKeyId:J,secretAccessKey:M,sessionToken:D}=j.tokenOutput?.accessToken??{},{refreshToken:X,expiresIn:P}=j.tokenOutput??{};if(!J||!M||!D||!X)throw new as.CredentialsProviderError("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let W=(P??900)*1000,G=new Date(Date.now()+W),Z={...A,accessToken:{...A.accessToken,accessKeyId:J,secretAccessKey:M,sessionToken:D,expiresAt:G.toISOString()},refreshToken:X};await this.saveToken(Z);let f=Z.accessToken;return{accessKeyId:f.accessKeyId,secretAccessKey:f.secretAccessKey,sessionToken:f.sessionToken,accountId:f.accountId,expiration:G}}catch(j){if(j.name==="AccessDeniedException"){let J=j.error,M;switch(J){case"TOKEN_EXPIRED":M="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":M="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":M="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:M=`Failed to refresh token: ${String(j)}. Please re-authenticate using \`aws login\``}throw new as.CredentialsProviderError(M,{logger:this.logger,tryNextLink:!1})}throw new as.CredentialsProviderError(`Failed to refresh token: ${String(j)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let A=this.getTokenFilePath();try{let q;try{q=await H98.readFile(A,{ignoreCache:this.init?.ignoreCache})}catch{q=await $98.promises.readFile(A,"utf8")}let K=JSON.parse(q),Y=["accessToken","clientId","refreshToken","dpopKey"].filter((z)=>!K[z]);if(!K.accessToken?.accountId)Y.push("accountId");if(Y.length>0)throw new as.CredentialsProviderError(`Token validation failed, missing fields: ${Y.join(", ")}`,{logger:this.logger,tryNextLink:!1});return K}catch(q){throw new as.CredentialsProviderError(`Failed to load token from ${A}: ${String(q)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(A){let q=this.getTokenFilePath(),K=O98.dirname(q);try{await $98.promises.mkdir(K,{recursive:!0})}catch(Y){}await $98.promises.writeFile(q,JSON.stringify(A,null,2),"utf8")}getTokenFilePath(){let A=process.env.AWS_LOGIN_CACHE_DIRECTORY??O98.join(vA5.homedir(),".aws","login","cache"),q=Buffer.from(this.loginSession,"utf8"),K=rz1.createHash("sha256").update(q).digest("hex");return O98.join(A,`${K}.json`)}derToRawSignature(A){let q=2;if(A[q]!==2)throw Error("Invalid DER signature");q++;let K=A[q++],Y=A.subarray(q,q+K);if(q+=K,A[q]!==2)throw Error("Invalid DER signature");q++;let z=A[q++],w=A.subarray(q,q+z);Y=Y[0]===0?Y.subarray(1):Y,w=w[0]===0?w.subarray(1):w;let _=Buffer.concat([Buffer.alloc(32-Y.length),Y]),$=Buffer.concat([Buffer.alloc(32-w.length),w]);return Buffer.concat([_,$])}createDPoPInterceptor(A){A.add((q)=>async(K)=>{if(TA5.HttpRequest.isInstance(K.request)){let Y=K.request,z=`${Y.protocol}//${Y.hostname}${Y.port?`:${Y.port}`:""}${Y.path}`,w=await this.generateDpop(Y.method,z);Y.headers={...Y.headers,DPoP:w}}return q(K)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(A="POST",q){let K=await this.loadToken();try{let Y=rz1.createPrivateKey({key:K.dpopKey,format:"pem",type:"sec1"}),w=rz1.createPublicKey(Y).export({format:"der",type:"spki"}),_=-1;for(let G=0;G<w.length;G++)if(w[G]===4){_=G;break}let $=w.slice(_+1,_+33),O=w.slice(_+33,_+65),H={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:$.toString("base64url"),y:O.toString("base64url")}},j={jti:crypto.randomUUID(),htm:A,htu:q,iat:Math.floor(Date.now()/1000)},J=Buffer.from(JSON.stringify(H)).toString("base64url"),M=Buffer.from(JSON.stringify(j)).toString("base64url"),D=`${J}.${M}`,X=rz1.sign("sha256",Buffer.from(D),Y),W=this.derToRawSignature(X).toString("base64url");return`${D}.${W}`}catch(Y){throw new as.CredentialsProviderError(`Failed to generate Dpop proof: ${Y instanceof Error?Y.message:String(Y)}`,{logger:this.logger,tryNextLink:!1})}}}var VA5=(A)=>async({callerClientConfig:q}={})=>{A?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let K=await H98.parseKnownFiles(A||{}),Y=H98.getProfileName({profile:A?.profile??q?.profile}),z=K[Y];if(!z?.login_session)throw new as.CredentialsProviderError(`Profile ${Y} does not contain login_session.`,{tryNextLink:!0,logger:A?.logger});let _=await new j98(z,A,q).loadCredentials();return fA5.setCredentialFeature(_,"CREDENTIALS_LOGIN","AD")};NA5.fromLoginCredentials=VA5});var D98=h((KH7)=>{Object.defineProperty(KH7,"__esModule",{value:!0});KH7.resolveHttpAuthSchemeConfig=KH7.resolveStsAuthConfig=KH7.defaultSTSHttpAuthSchemeProvider=KH7.defaultSTSHttpAuthSchemeParametersProvider=void 0;var EA5=o_(),M98=WG(),LA5=X98(),yA5=async(A,q,K)=>{return{operation:(0,M98.getSmithyContext)(q).operation,region:await(0,M98.normalizeProvider)(A.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};KH7.defaultSTSHttpAuthSchemeParametersProvider=yA5;function RA5(A){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:A.region},propertiesExtractor:(q,K)=>({signingProperties:{config:q,context:K}})}}function SA5(A){return{schemeId:"smithy.api#noAuth"}}var hA5=(A)=>{let q=[];switch(A.operation){case"AssumeRoleWithWebIdentity":{q.push(SA5(A));break}default:q.push(RA5(A))}return q};KH7.defaultSTSHttpAuthSchemeProvider=hA5;var CA5=(A)=>Object.assign(A,{stsClientCtor:LA5.STSClient});KH7.resolveStsAuthConfig=CA5;var IA5=(A)=>{let q=KH7.resolveStsAuthConfig(A),K=(0,EA5.resolveAwsSdkSigV4Config)(q);return Object.assign(K,{authSchemePreference:(0,M98.normalizeProvider)(A.authSchemePreference??[])})};KH7.resolveHttpAuthSchemeConfig=IA5});var P98=h((wH7)=>{Object.defineProperty(wH7,"__esModule",{value:!0});wH7.commonParams=wH7.resolveClientEndpointParameters=void 0;var uA5=(A)=>{return Object.assign(A,{useDualstackEndpoint:A.useDualstackEndpoint??!1,useFipsEndpoint:A.useFipsEndpoint??!1,useGlobalEndpoint:A.useGlobalEndpoint??!1,defaultSigningName:"sts"})};wH7.resolveClientEndpointParameters=uA5;wH7.commonParams={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var hH7=h((RH7)=>{Object.defineProperty(RH7,"__esModule",{value:!0});RH7.ruleSet=void 0;var ZH7="required",u5="type",pz="fn",Fz="argv",ts="ref",$H7=!1,W98=!0,ss="booleanEquals",Z0="stringEquals",fH7="sigv4",TH7="sts",vH7="us-east-1",SO="endpoint",OH7="https://sts.{Region}.{PartitionResult#dnsSuffix}",wB="tree",fX6="error",Z98="getAttr",HH7={[ZH7]:!1,[u5]:"string"},G98={[ZH7]:!0,default:!1,[u5]:"boolean"},VH7={[ts]:"Endpoint"},jH7={[pz]:"isSet",[Fz]:[{[ts]:"Region"}]},f0={[ts]:"Region"},JH7={[pz]:"aws.partition",[Fz]:[f0],assign:"PartitionResult"},NH7={[ts]:"UseFIPS"},kH7={[ts]:"UseDualStack"},vG={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:fH7,signingName:TH7,signingRegion:vH7}]},headers:{}},Ck={},MH7={conditions:[{[pz]:Z0,[Fz]:[f0,"aws-global"]}],[SO]:vG,[u5]:SO},EH7={[pz]:ss,[Fz]:[NH7,!0]},LH7={[pz]:ss,[Fz]:[kH7,!0]},DH7={[pz]:Z98,[Fz]:[{[ts]:"PartitionResult"},"supportsFIPS"]},yH7={[ts]:"PartitionResult"},XH7={[pz]:ss,[Fz]:[!0,{[pz]:Z98,[Fz]:[yH7,"supportsDualStack"]}]},PH7=[{[pz]:"isSet",[Fz]:[VH7]}],WH7=[EH7],GH7=[LH7],BA5={version:"1.0",parameters:{Region:HH7,UseDualStack:G98,UseFIPS:G98,Endpoint:HH7,UseGlobalEndpoint:G98},rules:[{conditions:[{[pz]:ss,[Fz]:[{[ts]:"UseGlobalEndpoint"},W98]},{[pz]:"not",[Fz]:PH7},jH7,JH7,{[pz]:ss,[Fz]:[NH7,$H7]},{[pz]:ss,[Fz]:[kH7,$H7]}],rules:[{conditions:[{[pz]:Z0,[Fz]:[f0,"ap-northeast-1"]}],endpoint:vG,[u5]:SO},{conditions:[{[pz]:Z0,[Fz]:[f0,"ap-south-1"]}],endpoint:vG,[u5]:SO},{conditions:[{[pz]:Z0,[Fz]:[f0,"ap-southeast-1"]}],endpoint:vG,[u5]:SO},{conditions:[{[pz]:Z0,[Fz]:[f0,"ap-southeast-2"]}],endpoint:vG,[u5]:SO},MH7,{conditions:[{[pz]:Z0,[Fz]:[f0,"ca-central-1"]}],endpoint:vG,[u5]:SO},{conditions:[{[pz]:Z0,[Fz]:[f0,"eu-central-1"]}],endpoint:vG,[u5]:SO},{conditions:[{[pz]:Z0,[Fz]:[f0,"eu-north-1"]}],endpoint:vG,[u5]:SO},{conditions:[{[pz]:Z0,[Fz]:[f0,"eu-west-1"]}],endpoint:vG,[u5]:SO},{conditions:[{[pz]:Z0,[Fz]:[f0,"eu-west-2"]}],endpoint:vG,[u5]:SO},{conditions:[{[pz]:Z0,[Fz]:[f0,"eu-west-3"]}],endpoint:vG,[u5]:SO},{conditions:[{[pz]:Z0,[Fz]:[f0,"sa-east-1"]}],endpoint:vG,[u5]:SO},{conditions:[{[pz]:Z0,[Fz]:[f0,vH7]}],endpoint:vG,[u5]:SO},{conditions:[{[pz]:Z0,[Fz]:[f0,"us-east-2"]}],endpoint:vG,[u5]:SO},{conditions:[{[pz]:Z0,[Fz]:[f0,"us-west-1"]}],endpoint:vG,[u5]:SO},{conditions:[{[pz]:Z0,[Fz]:[f0,"us-west-2"]}],endpoint:vG,[u5]:SO},{endpoint:{url:OH7,properties:{authSchemes:[{name:fH7,signingName:TH7,signingRegion:"{Region}"}]},headers:Ck},[u5]:SO}],[u5]:wB},{conditions:PH7,rules:[{conditions:WH7,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[u5]:fX6},{conditions:GH7,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[u5]:fX6},{endpoint:{url:VH7,properties:Ck,headers:Ck},[u5]:SO}],[u5]:wB},{conditions:[jH7],rules:[{conditions:[JH7],rules:[{conditions:[EH7,LH7],rules:[{conditions:[{[pz]:ss,[Fz]:[W98,DH7]},XH7],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ck,headers:Ck},[u5]:SO}],[u5]:wB},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[u5]:fX6}],[u5]:wB},{conditions:WH7,rules:[{conditions:[{[pz]:ss,[Fz]:[DH7,W98]}],rules:[{conditions:[{[pz]:Z0,[Fz]:[{[pz]:Z98,[Fz]:[yH7,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:Ck,headers:Ck},[u5]:SO},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Ck,headers:Ck},[u5]:SO}],[u5]:wB},{error:"FIPS is enabled but this partition does not support FIPS",[u5]:fX6}],[u5]:wB},{conditions:GH7,rules:[{conditions:[XH7],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ck,headers:Ck},[u5]:SO}],[u5]:wB},{error:"DualStack is enabled but this partition does not support DualStack",[u5]:fX6}],[u5]:wB},MH7,{endpoint:{url:OH7,properties:Ck,headers:Ck},[u5]:SO}],[u5]:wB}],[u5]:wB},{error:"Invalid Configuration: Missing Region",[u5]:fX6}]};RH7.ruleSet=BA5});var xH7=h((CH7)=>{Object.defineProperty(CH7,"__esModule",{value:!0});CH7.defaultEndpointResolver=void 0;var gA5=AB(),f98=YI(),pA5=hH7(),FA5=new f98.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),QA5=(A,q={})=>{return FA5.get(A,()=>(0,f98.resolveEndpoint)(pA5.ruleSet,{endpointParams:A,logger:q.logger}))};CH7.defaultEndpointResolver=QA5;f98.customEndpointFunctions.aws=gA5.awsEndpointFunctions});var gH7=h((mH7)=>{Object.defineProperty(mH7,"__esModule",{value:!0});mH7.getRuntimeConfig=void 0;var UA5=o_(),dA5=bd(),cA5=Ew(),lA5=Xf(),iA5=py(),bH7=Gz1(),uH7=K2(),nA5=D98(),rA5=xH7(),oA5=(A)=>{return{apiVersion:"2011-06-15",base64Decoder:A?.base64Decoder??bH7.fromBase64,base64Encoder:A?.base64Encoder??bH7.toBase64,disableHostPrefix:A?.disableHostPrefix??!1,endpointProvider:A?.endpointProvider??rA5.defaultEndpointResolver,extensions:A?.extensions??[],httpAuthSchemeProvider:A?.httpAuthSchemeProvider??nA5.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:A?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(q)=>q.getIdentityProvider("aws.auth#sigv4"),signer:new UA5.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(q)=>q.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new cA5.NoAuthSigner}],logger:A?.logger??new lA5.NoOpLogger,protocol:A?.protocol??new dA5.AwsQueryProtocol({defaultNamespace:"com.amazonaws.sts",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15"}),serviceId:A?.serviceId??"STS",urlParser:A?.urlParser??iA5.parseUrl,utf8Decoder:A?.utf8Decoder??uH7.fromUtf8,utf8Encoder:A?.utf8Encoder??uH7.toUtf8}};mH7.getRuntimeConfig=oA5});var cH7=h((UH7)=>{Object.defineProperty(UH7,"__esModule",{value:!0});UH7.getRuntimeConfig=void 0;var aA5=S2(),sA5=aA5.__importDefault(Dz1()),T98=o_(),pH7=hd(),oz1=qJ(),tA5=Ew(),eA5=Cd(),FH7=W0(),pK6=Bv(),QH7=uv(),A75=Id(),q75=YB(),K75=gH7(),Y75=Xf(),z75=md(),w75=Xf(),_75=(A)=>{(0,w75.emitWarningIfUnsupportedVersion)(process.version);let q=(0,z75.resolveDefaultsModeConfig)(A),K=()=>q().then(Y75.loadConfigsForDefaultMode),Y=(0,K75.getRuntimeConfig)(A);(0,T98.emitWarningIfUnsupportedVersion)(process.version);let z={profile:A?.profile,logger:Y.logger};return{...Y,...A,runtime:"node",defaultsMode:q,authSchemePreference:A?.authSchemePreference??(0,pK6.loadConfig)(T98.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,z),bodyLengthChecker:A?.bodyLengthChecker??A75.calculateBodyLength,defaultUserAgentProvider:A?.defaultUserAgentProvider??(0,pH7.createDefaultUserAgentProvider)({serviceId:Y.serviceId,clientVersion:sA5.default.version}),httpAuthSchemes:A?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(w)=>w.getIdentityProvider("aws.auth#sigv4")||(async(_)=>await A.credentialDefaultProvider(_?.__config||{})()),signer:new T98.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(w)=>w.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new tA5.NoAuthSigner}],maxAttempts:A?.maxAttempts??(0,pK6.loadConfig)(FH7.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,A),region:A?.region??(0,pK6.loadConfig)(oz1.NODE_REGION_CONFIG_OPTIONS,{...oz1.NODE_REGION_CONFIG_FILE_OPTIONS,...z}),requestHandler:QH7.NodeHttpHandler.create(A?.requestHandler??K),retryMode:A?.retryMode??(0,pK6.loadConfig)({...FH7.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await K()).retryMode||q75.DEFAULT_RETRY_MODE},A),sha256:A?.sha256??eA5.Hash.bind(null,"sha256"),streamCollector:A?.streamCollector??QH7.streamCollector,useDualstackEndpoint:A?.useDualstackEndpoint??(0,pK6.loadConfig)(oz1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,z),useFipsEndpoint:A?.useFipsEndpoint??(0,pK6.loadConfig)(oz1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,z),userAgentAppId:A?.userAgentAppId??(0,pK6.loadConfig)(pH7.NODE_APP_ID_CONFIG_OPTIONS,z)}};UH7.getRuntimeConfig=_75});var nH7=h((lH7)=>{Object.defineProperty(lH7,"__esModule",{value:!0});lH7.resolveHttpAuthRuntimeConfig=lH7.getHttpAuthExtensionConfiguration=void 0;var $75=(A)=>{let{httpAuthSchemes:q,httpAuthSchemeProvider:K,credentials:Y}=A;return{setHttpAuthScheme(z){let w=q.findIndex((_)=>_.schemeId===z.schemeId);if(w===-1)q.push(z);else q.splice(w,1,z)},httpAuthSchemes(){return q},setHttpAuthSchemeProvider(z){K=z},httpAuthSchemeProvider(){return K},setCredentials(z){Y=z},credentials(){return Y}}};lH7.getHttpAuthExtensionConfiguration=$75;var O75=(A)=>{return{httpAuthSchemes:A.httpAuthSchemes(),httpAuthSchemeProvider:A.httpAuthSchemeProvider(),credentials:A.credentials()}};lH7.resolveHttpAuthRuntimeConfig=O75});var Aj7=h((tH7)=>{Object.defineProperty(tH7,"__esModule",{value:!0});tH7.resolveRuntimeExtensions=void 0;var rH7=wI(),oH7=Tz1(),aH7=Xf(),sH7=nH7(),j75=(A,q)=>{let K=Object.assign((0,rH7.getAwsRegionExtensionConfiguration)(A),(0,aH7.getDefaultExtensionConfiguration)(A),(0,oH7.getHttpHandlerExtensionConfiguration)(A),(0,sH7.getHttpAuthExtensionConfiguration)(A));return q.forEach((Y)=>Y.configure(K)),Object.assign(A,(0,rH7.resolveAwsRegionExtensionConfiguration)(K),(0,aH7.resolveDefaultRuntimeConfig)(K),(0,oH7.resolveHttpHandlerRuntimeConfig)(K),(0,sH7.resolveHttpAuthRuntimeConfig)(K))};tH7.resolveRuntimeExtensions=j75});var X98=h((V98)=>{Object.defineProperty(V98,"__esModule",{value:!0});V98.STSClient=V98.__Client=void 0;var qj7=vd(),J75=Vd(),M75=Nd(),Kj7=KB(),D75=qJ(),v98=Ew(),X75=RO(),P75=Sd(),W75=zI(),Yj7=W0(),wj7=Xf();Object.defineProperty(V98,"__Client",{enumerable:!0,get:function(){return wj7.Client}});var zj7=D98(),G75=P98(),Z75=cH7(),f75=Aj7();class _j7 extends wj7.Client{config;constructor(...[A]){let q=(0,Z75.getRuntimeConfig)(A||{});super(q);this.initConfig=q;let K=(0,G75.resolveClientEndpointParameters)(q),Y=(0,Kj7.resolveUserAgentConfig)(K),z=(0,Yj7.resolveRetryConfig)(Y),w=(0,D75.resolveRegionConfig)(z),_=(0,qj7.resolveHostHeaderConfig)(w),$=(0,W75.resolveEndpointConfig)(_),O=(0,zj7.resolveHttpAuthSchemeConfig)($),H=(0,f75.resolveRuntimeExtensions)(O,A?.extensions||[]);this.config=H,this.middlewareStack.use((0,X75.getSchemaSerdePlugin)(this.config)),this.middlewareStack.use((0,Kj7.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,Yj7.getRetryPlugin)(this.config)),this.middlewareStack.use((0,P75.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,qj7.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,J75.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,M75.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,v98.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:zj7.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(j)=>new v98.DefaultIdentityProviderConfig({"aws.auth#sigv4":j.credentials})})),this.middlewareStack.use((0,v98.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}V98.STSClient=_j7});var ez1=h((az1)=>{var Bb6=X98(),gb6=Xf(),Oj7=zI(),Hj7=P98(),es=RO(),N98=mv(),T75=wI(),pd=class A extends gb6.ServiceException{constructor(q){super(q);Object.setPrototypeOf(this,A.prototype)}},jj7=class A extends pd{name="ExpiredTokenException";$fault="client";constructor(q){super({name:"ExpiredTokenException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},Jj7=class A extends pd{name="MalformedPolicyDocumentException";$fault="client";constructor(q){super({name:"MalformedPolicyDocumentException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},Mj7=class A extends pd{name="PackedPolicyTooLargeException";$fault="client";constructor(q){super({name:"PackedPolicyTooLargeException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},Dj7=class A extends pd{name="RegionDisabledException";$fault="client";constructor(q){super({name:"RegionDisabledException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},Xj7=class A extends pd{name="IDPRejectedClaimException";$fault="client";constructor(q){super({name:"IDPRejectedClaimException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},Pj7=class A extends pd{name="InvalidIdentityTokenException";$fault="client";constructor(q){super({name:"InvalidIdentityTokenException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},Wj7=class A extends pd{name="IDPCommunicationErrorException";$fault="client";constructor(q){super({name:"IDPCommunicationErrorException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},v75="Arn",V75="AccessKeyId",N75="AssumeRole",k75="AssumedRoleId",E75="AssumeRoleRequest",L75="AssumeRoleResponse",k98="AssumedRoleUser",y75="AssumeRoleWithWebIdentity",R75="AssumeRoleWithWebIdentityRequest",S75="AssumeRoleWithWebIdentityResponse",h75="Audience",E98="Credentials",C75="ContextAssertion",Gj7="DurationSeconds",I75="Expiration",x75="ExternalId",b75="ExpiredTokenException",u75="IDPCommunicationErrorException",m75="IDPRejectedClaimException",B75="InvalidIdentityTokenException",g75="Key",p75="MalformedPolicyDocumentException",Zj7="Policy",fj7="PolicyArns",F75="ProviderArn",Q75="ProvidedContexts",U75="ProvidedContextsListType",d75="ProvidedContext",c75="PolicyDescriptorType",l75="ProviderId",Tj7="PackedPolicySize",i75="PackedPolicyTooLargeException",n75="Provider",vj7="RoleArn",r75="RegionDisabledException",Vj7="RoleSessionName",o75="SecretAccessKey",a75="SubjectFromWebIdentityToken",L98="SourceIdentity",s75="SerialNumber",t75="SessionToken",e75="Tags",A45="TokenCode",q45="TransitiveTagKeys",K45="Tag",Y45="Value",z45="WebIdentityToken",w45="arn",_45="accessKeySecretType",FK6="awsQueryError",QK6="client",$45="clientTokenType",UK6="error",dK6="httpError",cK6="message",O45="policyDescriptorListType",Nj7="smithy.ts.sdk.synthetic.com.amazonaws.sts",H45="tagListType",yw="com.amazonaws.sts",j45=[0,yw,_45,8,0],J45=[0,yw,$45,8,0],kj7=[3,yw,k98,0,[k75,v75],[0,0]],M45=[3,yw,E75,0,[vj7,Vj7,fj7,Zj7,Gj7,e75,q45,x75,s75,A45,L98,Q75],[0,0,()=>Lj7,0,1,()=>R45,64,0,0,0,0,()=>y45]],D45=[3,yw,L75,0,[E98,k98,Tj7,L98],[[()=>Ej7,0],()=>kj7,1,0]],X45=[3,yw,R75,0,[vj7,Vj7,z45,l75,fj7,Zj7,Gj7],[0,0,[()=>J45,0],0,()=>Lj7,0,1]],P45=[3,yw,S75,0,[E98,a75,k98,Tj7,n75,h75,L98],[[()=>Ej7,0],0,()=>kj7,1,0,0,0]],Ej7=[3,yw,E98,0,[V75,o75,t75,I75],[0,[()=>j45,0],0,4]],W45=[-3,yw,b75,{[UK6]:QK6,[dK6]:400,[FK6]:["ExpiredTokenException",400]},[cK6],[0]];es.TypeRegistry.for(yw).registerError(W45,jj7);var G45=[-3,yw,u75,{[UK6]:QK6,[dK6]:400,[FK6]:["IDPCommunicationError",400]},[cK6],[0]];es.TypeRegistry.for(yw).registerError(G45,Wj7);var Z45=[-3,yw,m75,{[UK6]:QK6,[dK6]:403,[FK6]:["IDPRejectedClaim",403]},[cK6],[0]];es.TypeRegistry.for(yw).registerError(Z45,Xj7);var f45=[-3,yw,B75,{[UK6]:QK6,[dK6]:400,[FK6]:["InvalidIdentityToken",400]},[cK6],[0]];es.TypeRegistry.for(yw).registerError(f45,Pj7);var T45=[-3,yw,p75,{[UK6]:QK6,[dK6]:400,[FK6]:["MalformedPolicyDocument",400]},[cK6],[0]];es.TypeRegistry.for(yw).registerError(T45,Jj7);var v45=[-3,yw,i75,{[UK6]:QK6,[dK6]:400,[FK6]:["PackedPolicyTooLarge",400]},[cK6],[0]];es.TypeRegistry.for(yw).registerError(v45,Mj7);var V45=[3,yw,c75,0,[w45],[0]],N45=[3,yw,d75,0,[F75,C75],[0,0]],k45=[-3,yw,r75,{[UK6]:QK6,[dK6]:403,[FK6]:["RegionDisabledException",403]},[cK6],[0]];es.TypeRegistry.for(yw).registerError(k45,Dj7);var E45=[3,yw,K45,0,[g75,Y45],[0,0]],L45=[-3,Nj7,"STSServiceException",0,[],[]];es.TypeRegistry.for(Nj7).registerError(L45,pd);var Lj7=[1,yw,O45,0,()=>V45],y45=[1,yw,U75,0,()=>N45],R45=[1,yw,H45,0,()=>E45],S45=[9,yw,N75,0,()=>M45,()=>D45],h45=[9,yw,y75,0,()=>X45,()=>P45];class sz1 extends gb6.Command.classBuilder().ep(Hj7.commonParams).m(function(A,q,K,Y){return[Oj7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(S45).build(){}class tz1 extends gb6.Command.classBuilder().ep(Hj7.commonParams).m(function(A,q,K,Y){return[Oj7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(h45).build(){}var C45={AssumeRoleCommand:sz1,AssumeRoleWithWebIdentityCommand:tz1};class y98 extends Bb6.STSClient{}gb6.createAggregatedClient(C45,y98);var yj7=(A)=>{if(typeof A?.Arn==="string"){let q=A.Arn.split(":");if(q.length>4&&q[4]!=="")return q[4]}return},Rj7=async(A,q,K,Y={})=>{let z=typeof A==="function"?await A():A,w=typeof q==="function"?await q():q,_=await T75.stsRegionDefaultResolver(Y)();return K?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${z} (credential provider clientConfig)`,`${w} (contextual client)`,`${_} (STS default: AWS_REGION, profile region, or us-east-1)`),z??w??_},I45=(A,q)=>{let K,Y;return async(z,w)=>{if(Y=z,!K){let{logger:j=A?.parentClientConfig?.logger,profile:J=A?.parentClientConfig?.profile,region:M,requestHandler:D=A?.parentClientConfig?.requestHandler,credentialProviderLogger:X,userAgentAppId:P=A?.parentClientConfig?.userAgentAppId}=A,W=await Rj7(M,A?.parentClientConfig?.region,X,{logger:j,profile:J}),G=!Sj7(D);K=new q({...A,userAgentAppId:P,profile:J,credentialDefaultProvider:()=>async()=>Y,region:W,requestHandler:G?D:void 0,logger:j})}let{Credentials:_,AssumedRoleUser:$}=await K.send(new sz1(w));if(!_||!_.AccessKeyId||!_.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${w.RoleArn}`);let O=yj7($),H={accessKeyId:_.AccessKeyId,secretAccessKey:_.SecretAccessKey,sessionToken:_.SessionToken,expiration:_.Expiration,..._.CredentialScope&&{credentialScope:_.CredentialScope},...O&&{accountId:O}};return N98.setCredentialFeature(H,"CREDENTIALS_STS_ASSUME_ROLE","i"),H}},x45=(A,q)=>{let K;return async(Y)=>{if(!K){let{logger:O=A?.parentClientConfig?.logger,profile:H=A?.parentClientConfig?.profile,region:j,requestHandler:J=A?.parentClientConfig?.requestHandler,credentialProviderLogger:M,userAgentAppId:D=A?.parentClientConfig?.userAgentAppId}=A,X=await Rj7(j,A?.parentClientConfig?.region,M,{logger:O,profile:H}),P=!Sj7(J);K=new q({...A,userAgentAppId:D,profile:H,region:X,requestHandler:P?J:void 0,logger:O})}let{Credentials:z,AssumedRoleUser:w}=await K.send(new tz1(Y));if(!z||!z.AccessKeyId||!z.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${Y.RoleArn}`);let _=yj7(w),$={accessKeyId:z.AccessKeyId,secretAccessKey:z.SecretAccessKey,sessionToken:z.SessionToken,expiration:z.Expiration,...z.CredentialScope&&{credentialScope:z.CredentialScope},..._&&{accountId:_}};if(_)N98.setCredentialFeature($,"RESOLVED_ACCOUNT_ID","T");return N98.setCredentialFeature($,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),$}},Sj7=(A)=>{return A?.metadata?.handlerProtocol==="h2"},hj7=(A,q)=>{if(!q)return A;else return class extends A{constructor(Y){super(Y);for(let z of q)this.middlewareStack.use(z)}}},Cj7=(A={},q)=>I45(A,hj7(Bb6.STSClient,q)),Ij7=(A={},q)=>x45(A,hj7(Bb6.STSClient,q)),b45=(A)=>(q)=>A({roleAssumer:Cj7(q),roleAssumerWithWebIdentity:Ij7(q),...q});Object.defineProperty(az1,"$Command",{enumerable:!0,get:function(){return gb6.Command}});az1.AssumeRoleCommand=sz1;az1.AssumeRoleWithWebIdentityCommand=tz1;az1.ExpiredTokenException=jj7;az1.IDPCommunicationErrorException=Wj7;az1.IDPRejectedClaimException=Xj7;az1.InvalidIdentityTokenException=Pj7;az1.MalformedPolicyDocumentException=Jj7;az1.PackedPolicyTooLargeException=Mj7;az1.RegionDisabledException=Dj7;az1.STS=y98;az1.STSServiceException=pd;az1.decorateDefaultCredentialProvider=b45;az1.getDefaultRoleAssumer=Cj7;az1.getDefaultRoleAssumerWithWebIdentity=Ij7;Object.keys(Bb6).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(az1,A))Object.defineProperty(az1,A,{enumerable:!0,get:function(){return Bb6[A]}})})});var Aw1=h((qq5)=>{var S98=am(),R98=MM(),o45=u6("child_process"),a45=u6("util"),s45=mv(),t45=(A,q,K)=>{if(q.Version!==1)throw Error(`Profile ${A} credential_process did not return Version 1.`);if(q.AccessKeyId===void 0||q.SecretAccessKey===void 0)throw Error(`Profile ${A} credential_process returned invalid credentials.`);if(q.Expiration){let w=new Date;if(new Date(q.Expiration)<w)throw Error(`Profile ${A} credential_process returned expired credentials.`)}let Y=q.AccountId;if(!Y&&K?.[A]?.aws_account_id)Y=K[A].aws_account_id;let z={accessKeyId:q.AccessKeyId,secretAccessKey:q.SecretAccessKey,...q.SessionToken&&{sessionToken:q.SessionToken},...q.Expiration&&{expiration:new Date(q.Expiration)},...q.CredentialScope&&{credentialScope:q.CredentialScope},...Y&&{accountId:Y}};return s45.setCredentialFeature(z,"CREDENTIALS_PROCESS","w"),z},e45=async(A,q,K)=>{let Y=q[A];if(q[A]){let z=Y.credential_process;if(z!==void 0){let w=a45.promisify(S98.externalDataInterceptor?.getTokenRecord?.().exec??o45.exec);try{let{stdout:_}=await w(z),$;try{$=JSON.parse(_.trim())}catch{throw Error(`Profile ${A} credential_process returned invalid JSON.`)}return t45(A,$,q)}catch(_){throw new R98.CredentialsProviderError(_.message,{logger:K})}}else throw new R98.CredentialsProviderError(`Profile ${A} did not contain credential_process.`,{logger:K})}else throw new R98.CredentialsProviderError(`Profile ${A} could not be found in shared credentials file.`,{logger:K})},Aq5=(A={})=>async({callerClientConfig:q}={})=>{A.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let K=await S98.parseKnownFiles(A);return e45(S98.getProfileName({profile:A.profile??q?.profile}),K,A.logger)};qq5.fromProcess=Aq5});var h98=h((_B)=>{var Yq5=_B&&_B.__createBinding||(Object.create?function(A,q,K,Y){if(Y===void 0)Y=K;var z=Object.getOwnPropertyDescriptor(q,K);if(!z||("get"in z?!q.__esModule:z.writable||z.configurable))z={enumerable:!0,get:function(){return q[K]}};Object.defineProperty(A,Y,z)}:function(A,q,K,Y){if(Y===void 0)Y=K;A[Y]=q[K]}),zq5=_B&&_B.__setModuleDefault||(Object.create?function(A,q){Object.defineProperty(A,"default",{enumerable:!0,value:q})}:function(A,q){A.default=q}),wq5=_B&&_B.__importStar||function(){var A=function(q){return A=Object.getOwnPropertyNames||function(K){var Y=[];for(var z in K)if(Object.prototype.hasOwnProperty.call(K,z))Y[Y.length]=z;return Y},A(q)};return function(q){if(q&&q.__esModule)return q;var K={};if(q!=null){for(var Y=A(q),z=0;z<Y.length;z++)if(Y[z]!=="default")Yq5(K,q,Y[z])}return zq5(K,q),K}}();Object.defineProperty(_B,"__esModule",{value:!0});_B.fromWebToken=void 0;var _q5=(A)=>async(q)=>{A.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:K,roleSessionName:Y,webIdentityToken:z,providerId:w,policyArns:_,policy:$,durationSeconds:O}=A,{roleAssumerWithWebIdentity:H}=A;if(!H){let{getDefaultRoleAssumerWithWebIdentity:j}=await Promise.resolve().then(()=>wq5(ez1()));H=j({...A.clientConfig,credentialProviderLogger:A.logger,parentClientConfig:{...q?.callerClientConfig,...A.parentClientConfig}},A.clientPlugins)}return H({RoleArn:K,RoleSessionName:Y??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:z,ProviderId:w,PolicyArns:_,Policy:$,DurationSeconds:O})};_B.fromWebToken=_q5});var mj7=h((bj7)=>{Object.defineProperty(bj7,"__esModule",{value:!0});bj7.fromTokenFile=void 0;var $q5=mv(),Oq5=MM(),Hq5=am(),jq5=u6("fs"),Jq5=h98(),xj7="AWS_WEB_IDENTITY_TOKEN_FILE",Mq5="AWS_ROLE_ARN",Dq5="AWS_ROLE_SESSION_NAME",Xq5=(A={})=>async(q)=>{A.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let K=A?.webIdentityTokenFile??process.env[xj7],Y=A?.roleArn??process.env[Mq5],z=A?.roleSessionName??process.env[Dq5];if(!K||!Y)throw new Oq5.CredentialsProviderError("Web identity configuration not specified",{logger:A.logger});let w=await(0,Jq5.fromWebToken)({...A,webIdentityToken:Hq5.externalDataInterceptor?.getTokenRecord?.()[K]??(0,jq5.readFileSync)(K,{encoding:"ascii"}),roleArn:Y,roleSessionName:z})(q);if(K===process.env[xj7])(0,$q5.setCredentialFeature)(w,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return w};bj7.fromTokenFile=Xq5});var Fb6=h((pb6)=>{var Bj7=mj7(),gj7=h98();Object.keys(Bj7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(pb6,A))Object.defineProperty(pb6,A,{enumerable:!0,get:function(){return Bj7[A]}})});Object.keys(gj7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(pb6,A))Object.defineProperty(pb6,A,{enumerable:!0,get:function(){return gj7[A]}})})});var x98=h((hq5)=>{var I98=am(),Qb6=MM(),Fd=mv(),Pq5=J98(),Wq5=(A,q,K)=>{let Y={EcsContainer:async(z)=>{let{fromHttp:w}=await Promise.resolve().then(() => q6(IY1())),{fromContainerMetadata:_}=await Promise.resolve().then(() => q6(EK6()));return K?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>Qb6.chain(w(z??{}),_(z))().then(C98)},Ec2InstanceMetadata:async(z)=>{K?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:w}=await Promise.resolve().then(() => q6(EK6()));return async()=>w(z)().then(C98)},Environment:async(z)=>{K?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:w}=await Promise.resolve().then(() => q6(_Y1()));return async()=>w(z)().then(C98)}};if(A in Y)return Y[A];else throw new Qb6.CredentialsProviderError(`Unsupported credential source in profile ${q}. Got ${A}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:K})},C98=(A)=>Fd.setCredentialFeature(A,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),Gq5=(A,{profile:q="default",logger:K}={})=>{return Boolean(A)&&typeof A==="object"&&typeof A.role_arn==="string"&&["undefined","string"].indexOf(typeof A.role_session_name)>-1&&["undefined","string"].indexOf(typeof A.external_id)>-1&&["undefined","string"].indexOf(typeof A.mfa_serial)>-1&&(Zq5(A,{profile:q,logger:K})||fq5(A,{profile:q,logger:K}))},Zq5=(A,{profile:q,logger:K})=>{let Y=typeof A.source_profile==="string"&&typeof A.credential_source>"u";if(Y)K?.debug?.(`    ${q} isAssumeRoleWithSourceProfile source_profile=${A.source_profile}`);return Y},fq5=(A,{profile:q,logger:K})=>{let Y=typeof A.credential_source==="string"&&typeof A.source_profile>"u";if(Y)K?.debug?.(`    ${q} isCredentialSourceProfile credential_source=${A.credential_source}`);return Y},Tq5=async(A,q,K,Y={},z)=>{K.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let w=q[A],{source_profile:_,region:$}=w;if(!K.roleAssumer){let{getDefaultRoleAssumer:H}=await Promise.resolve().then(() => q6(ez1()));K.roleAssumer=H({...K.clientConfig,credentialProviderLogger:K.logger,parentClientConfig:{...K?.parentClientConfig,region:$??K?.parentClientConfig?.region}},K.clientPlugins)}if(_&&_ in Y)throw new Qb6.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${I98.getProfileName(K)}. Profiles visited: `+Object.keys(Y).join(", "),{logger:K.logger});K.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${_?`source_profile=[${_}]`:`profile=[${A}]`}`);let O=_?z(_,q,K,{...Y,[_]:!0},pj7(q[_]??{})):(await Wq5(w.credential_source,A,K.logger)(K))();if(pj7(w))return O.then((H)=>Fd.setCredentialFeature(H,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let H={RoleArn:w.role_arn,RoleSessionName:w.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:w.external_id,DurationSeconds:parseInt(w.duration_seconds||"3600",10)},{mfa_serial:j}=w;if(j){if(!K.mfaCodeProvider)throw new Qb6.CredentialsProviderError(`Profile ${A} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:K.logger,tryNextLink:!1});H.SerialNumber=j,H.TokenCode=await K.mfaCodeProvider(j)}let J=await O;return K.roleAssumer(J,H).then((M)=>Fd.setCredentialFeature(M,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},pj7=(A)=>{return!A.role_arn&&!!A.credential_source},vq5=(A)=>{return Boolean(A&&A.login_session)},Vq5=async(A,q)=>{let K=await Pq5.fromLoginCredentials({...q,profile:A})();return Fd.setCredentialFeature(K,"CREDENTIALS_PROFILE_LOGIN","AC")},Nq5=(A)=>Boolean(A)&&typeof A==="object"&&typeof A.credential_process==="string",kq5=async(A,q)=>Promise.resolve().then(() => q6(Aw1())).then(({fromProcess:K})=>K({...A,profile:q})().then((Y)=>Fd.setCredentialFeature(Y,"CREDENTIALS_PROFILE_PROCESS","v"))),Eq5=async(A,q,K={})=>{let{fromSSO:Y}=await Promise.resolve().then(() => q6(Fz1()));return Y({profile:A,logger:K.logger,parentClientConfig:K.parentClientConfig,clientConfig:K.clientConfig})().then((z)=>{if(q.sso_session)return Fd.setCredentialFeature(z,"CREDENTIALS_PROFILE_SSO","r");else return Fd.setCredentialFeature(z,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},Lq5=(A)=>A&&(typeof A.sso_start_url==="string"||typeof A.sso_account_id==="string"||typeof A.sso_session==="string"||typeof A.sso_region==="string"||typeof A.sso_role_name==="string"),Fj7=(A)=>Boolean(A)&&typeof A==="object"&&typeof A.aws_access_key_id==="string"&&typeof A.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof A.aws_session_token)>-1&&["undefined","string"].indexOf(typeof A.aws_account_id)>-1,Qj7=async(A,q)=>{q?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let K={accessKeyId:A.aws_access_key_id,secretAccessKey:A.aws_secret_access_key,sessionToken:A.aws_session_token,...A.aws_credential_scope&&{credentialScope:A.aws_credential_scope},...A.aws_account_id&&{accountId:A.aws_account_id}};return Fd.setCredentialFeature(K,"CREDENTIALS_PROFILE","n")},yq5=(A)=>Boolean(A)&&typeof A==="object"&&typeof A.web_identity_token_file==="string"&&typeof A.role_arn==="string"&&["undefined","string"].indexOf(typeof A.role_session_name)>-1,Rq5=async(A,q)=>Promise.resolve().then(() => q6(Fb6())).then(({fromTokenFile:K})=>K({webIdentityTokenFile:A.web_identity_token_file,roleArn:A.role_arn,roleSessionName:A.role_session_name,roleAssumerWithWebIdentity:q.roleAssumerWithWebIdentity,logger:q.logger,parentClientConfig:q.parentClientConfig})().then((Y)=>Fd.setCredentialFeature(Y,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q"))),Uj7=async(A,q,K,Y={},z=!1)=>{let w=q[A];if(Object.keys(Y).length>0&&Fj7(w))return Qj7(w,K);if(z||Gq5(w,{profile:A,logger:K.logger}))return Tq5(A,q,K,Y,Uj7);if(Fj7(w))return Qj7(w,K);if(yq5(w))return Rq5(w,K);if(Nq5(w))return kq5(K,A);if(Lq5(w))return await Eq5(A,w,K);if(vq5(w))return Vq5(A,K);throw new Qb6.CredentialsProviderError(`Could not resolve credentials using profile: [${A}] in configuration/credentials file(s).`,{logger:K.logger})},Sq5=(A={})=>async({callerClientConfig:q}={})=>{let K={...A,parentClientConfig:{...q,...A.parentClientConfig}};K.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let Y=await I98.parseKnownFiles(K);return Uj7(I98.getProfileName({profile:A.profile??q?.profile}),Y,K)};hq5.fromIni=Sq5});var lK6=h((gq5)=>{var b98=_Y1(),Ub6=MM(),Iq5=am(),dj7="AWS_EC2_METADATA_DISABLED",xq5=async(A)=>{let{ENV_CMDS_FULL_URI:q,ENV_CMDS_RELATIVE_URI:K,fromContainerMetadata:Y,fromInstanceMetadata:z}=await Promise.resolve().then(() => q6(EK6()));if(process.env[K]||process.env[q]){A.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:w}=await Promise.resolve().then(() => q6(IY1()));return Ub6.chain(w(A),Y(A))}if(process.env[dj7]&&process.env[dj7]!=="false")return async()=>{throw new Ub6.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:A.logger})};return A.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),z(A)};function bq5(A,q){let K=uq5(A),Y,z,w,_=async($)=>{if($?.forceRefresh)return await K($);if(w?.expiration){if(w?.expiration?.getTime()<Date.now())w=void 0}if(Y)await Y;else if(!w||q?.(w))if(w){if(!z)z=K($).then((O)=>{w=O,z=void 0})}else return Y=K($).then((O)=>{w=O,Y=void 0}),_($);return w};return _}var uq5=(A)=>async(q)=>{let K;for(let Y of A)try{return await Y(q)}catch(z){if(K=z,z?.tryNextLink)continue;throw z}throw K},cj7=!1,mq5=(A={})=>bq5([async()=>{if(A.profile??process.env[Iq5.ENV_PROFILE]){if(process.env[b98.ENV_KEY]&&process.env[b98.ENV_SECRET]){if(!cj7)(A.logger?.warn&&A.logger?.constructor?.name!=="NoOpLogger"?A.logger.warn.bind(A.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
    Multiple credential sources detected: 
    Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
    This SDK will proceed with the AWS_PROFILE value.
    
    However, a future version may change this behavior to prefer the ENV static credentials.
    Please ensure that your environment only sets either the AWS_PROFILE or the
    AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
`),cj7=!0}throw new Ub6.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:A.logger,tryNextLink:!0})}return A.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),b98.fromEnv(A)()},async(q)=>{A.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:K,ssoAccountId:Y,ssoRegion:z,ssoRoleName:w,ssoSession:_}=A;if(!K&&!Y&&!z&&!w&&!_)throw new Ub6.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:A.logger});let{fromSSO:$}=await Promise.resolve().then(() => q6(Fz1()));return $(A)(q)},async(q)=>{A.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:K}=await Promise.resolve().then(() => q6(x98()));return K(A)(q)},async(q)=>{A.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:K}=await Promise.resolve().then(() => q6(Aw1()));return K(A)(q)},async(q)=>{A.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:K}=await Promise.resolve().then(() => q6(Fb6()));return K(A)(q)},async()=>{return A.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await xq5(A))()},async()=>{throw new Ub6.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:!1,logger:A.logger})}],lj7),Bq5=(A)=>A?.expiration!==void 0,lj7=(A)=>A?.expiration!==void 0&&A.expiration.getTime()-Date.now()<300000;gq5.credentialsTreatedAsExpired=lj7;gq5.credentialsWillNeedRefresh=Bq5;gq5.defaultProvider=mq5});function Uq5(A){switch(A.family){case 0:case 4:case 6:return A.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${A.family}`)}}function JI(A=process.env){return A.https_proxy||A.HTTPS_PROXY||A.http_proxy||A.HTTP_PROXY}function dq5(A=process.env){return A.no_proxy||A.NO_PROXY}function iK6(A,q=dq5()){if(!q)return!1;if(q==="*")return!0;try{let K=new URL(A),Y=K.hostname.toLowerCase(),z=K.port||(K.protocol==="https:"?"443":"80"),w=`${Y}:${z}`;return q.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return w===$;if($.startsWith(".")){let O=$;return Y===$.substring(1)||Y.endsWith(O)}return Y===$})}catch{return!1}}function ij7(A){let q=KI(),K={...q&&{cert:q.cert,key:q.key,passphrase:q.passphrase}};if(w1(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))K.lookup=(Y,z,w)=>{w(null,Y,Uq5(z))};return new u98.HttpsProxyAgent(A,K)}function Qd(A){let q=JI();if(!q)return;if(iK6(A))return;return ij7(q)}function Ud(A){let q=JI();if(!q)return;if(iK6(A))return;return q}function nK6(){let A=JI(),q=J78();if(A){if(typeof Bun<"u")return{proxy:A,...q};return{dispatcher:nj7(A)}}return q}function Kw1(){let A=JI(),q=eA7();if(qw1!==void 0)Q8.interceptors.request.eject(qw1),qw1=void 0;if(Q8.defaults.proxy=void 0,Q8.defaults.httpAgent=void 0,Q8.defaults.httpsAgent=void 0,A){Q8.defaults.proxy=!1;let K=ij7(A);qw1=Q8.interceptors.request.use((Y)=>{if(Y.url&&iK6(Y.url))if(q)Y.httpsAgent=q,Y.httpAgent=q;else delete Y.httpsAgent,delete Y.httpAgent;else Y.httpsAgent=K,Y.httpAgent=K;return Y}),qY1(nj7(A))}else if(q){Q8.defaults.httpsAgent=q;let K=J78();if(K.dispatcher)qY1(K.dispatcher)}}async function m98(){let A=JI();if(!A)return{};let[{NodeHttpHandler:q},{defaultProvider:K}]=await Promise.all([Promise.resolve().then(() => q6(uv(),1)),Promise.resolve().then(() => q6(lK6(),1))]),Y=new u98.HttpsProxyAgent(A),z=new q({httpAgent:Y,httpsAgent:Y});return{requestHandler:z,credentials:K({clientConfig:{requestHandler:z}})}}var u98,nj7,qw1;var ay=E(()=>{M3();Rq();H78();xD6();Z8();u98=q6(hI6(),1);nj7=k8((A)=>{let q=KI(),K={httpProxy:A,httpsProxy:A,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(q)K.connect={cert:q.cert,key:q.key,passphrase:q.passphrase};return new O78(K)})});var d98=h((oq5)=>{oq5.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(oq5.HttpAuthLocation||(oq5.HttpAuthLocation={}));oq5.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(oq5.HttpApiKeyAuthLocation||(oq5.HttpApiKeyAuthLocation={}));oq5.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(oq5.EndpointURLScheme||(oq5.EndpointURLScheme={}));oq5.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(oq5.AlgorithmId||(oq5.AlgorithmId={}));var cq5=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>oq5.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>oq5.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},lq5=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},iq5=(A)=>{return cq5(A)},nq5=(A)=>{return lq5(A)};oq5.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(oq5.FieldPosition||(oq5.FieldPosition={}));var rq5="__smithy_context";oq5.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(oq5.IniSectionType||(oq5.IniSectionType={}));oq5.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(oq5.RequestHandlerProtocol||(oq5.RequestHandlerProtocol={}));oq5.SMITHY_CONTEXT_KEY=rq5;oq5.getDefaultClientConfiguration=iq5;oq5.resolveDefaultRuntimeConfig=nq5});var cb6=h((vX6)=>{var aj7=tm(),r98=Fv(),l98=d98(),eq5=RO(),rj7=pv();class sj7{config;middlewareStack=aj7.constructStack();initConfig;handlers;constructor(A){this.config=A}send(A,q,K){let Y=typeof q!=="function"?q:void 0,z=typeof q==="function"?q:K,w=Y===void 0&&this.config.cacheMiddleware===!0,_;if(w){if(!this.handlers)this.handlers=new WeakMap;let $=this.handlers;if($.has(A.constructor))_=$.get(A.constructor);else _=A.resolveMiddleware(this.middlewareStack,this.config,Y),$.set(A.constructor,_)}else delete this.handlers,_=A.resolveMiddleware(this.middlewareStack,this.config,Y);if(z)_(A).then(($)=>z(null,$.output),($)=>z($)).catch(()=>{});else return _(A).then(($)=>$.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var c98="***SensitiveInformation***";function i98(A,q){if(q==null)return q;let K=eq5.NormalizedSchema.of(A);if(K.getMergedTraits().sensitive)return c98;if(K.isListSchema()){if(!!K.getValueSchema().getMergedTraits().sensitive)return c98}else if(K.isMapSchema()){if(!!K.getKeySchema().getMergedTraits().sensitive||!!K.getValueSchema().getMergedTraits().sensitive)return c98}else if(K.isStructSchema()&&typeof q==="object"){let Y=q,z={};for(let[w,_]of K.structIterator())if(Y[w]!=null)z[w]=i98(_,Y[w]);return z}return q}class o98{middlewareStack=aj7.constructStack();schema;static classBuilder(){return new tj7}resolveMiddlewareWithContext(A,q,K,{middlewareFn:Y,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,smithyContext:O,additionalContext:H,CommandCtor:j}){for(let P of Y.bind(this)(j,A,q,K))this.middlewareStack.use(P);let J=A.concat(this.middlewareStack),{logger:M}=q,D={logger:M,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,[l98.SMITHY_CONTEXT_KEY]:{commandInstance:this,...O},...H},{requestHandler:X}=q;return J.resolve((P)=>X.handle(P.request,K||{}),D)}}class tj7{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(A){this._init=A}ep(A){return this._ep=A,this}m(A){return this._middlewareFn=A,this}s(A,q,K={}){return this._smithyContext={service:A,operation:q,...K},this}c(A={}){return this._additionalContext=A,this}n(A,q){return this._clientName=A,this._commandName=q,this}f(A=(K)=>K,q=(K)=>K){return this._inputFilterSensitiveLog=A,this._outputFilterSensitiveLog=q,this}ser(A){return this._serializer=A,this}de(A){return this._deserializer=A,this}sc(A){return this._operationSchema=A,this._smithyContext.operationSchema=A,this}build(){let A=this,q;return q=class extends o98{input;static getEndpointParameterInstructions(){return A._ep}constructor(...[K]){super();this.input=K??{},A._init(this),this.schema=A._operationSchema}resolveMiddleware(K,Y,z){let w=A._operationSchema,_=w?.[4]??w?.input,$=w?.[5]??w?.output;return this.resolveMiddlewareWithContext(K,Y,z,{CommandCtor:q,middlewareFn:A._middlewareFn,clientName:A._clientName,commandName:A._commandName,inputFilterSensitiveLog:A._inputFilterSensitiveLog??(w?i98.bind(null,_):(O)=>O),outputFilterSensitiveLog:A._outputFilterSensitiveLog??(w?i98.bind(null,$):(O)=>O),smithyContext:A._smithyContext,additionalContext:A._additionalContext})}serialize=A._serializer;deserialize=A._deserializer}}}var AK5="***SensitiveInformation***",qK5=(A,q)=>{for(let K of Object.keys(A)){let Y=A[K],z=async function(_,$,O){let H=new Y(_);if(typeof $==="function")this.send(H,$);else if(typeof O==="function"){if(typeof $!=="object")throw Error(`Expected http options but got ${typeof $}`);this.send(H,$||{},O)}else return this.send(H,$)},w=(K[0].toLowerCase()+K.slice(1)).replace(/Command$/,"");q.prototype[w]=z}};class TX6 extends Error{$fault;$response;$retryable;$metadata;constructor(A){super(A.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=A.name,this.$fault=A.$fault,this.$metadata=A.$metadata}static isInstance(A){if(!A)return!1;let q=A;return TX6.prototype.isPrototypeOf(q)||Boolean(q.$fault)&&Boolean(q.$metadata)&&(q.$fault==="client"||q.$fault==="server")}static[Symbol.hasInstance](A){if(!A)return!1;let q=A;if(this===TX6)return TX6.isInstance(A);if(TX6.isInstance(A)){if(q.name&&this.name)return this.prototype.isPrototypeOf(A)||q.name===this.name;return this.prototype.isPrototypeOf(A)}return!1}}var ej7=(A,q={})=>{Object.entries(q).filter(([,Y])=>Y!==void 0).forEach(([Y,z])=>{if(A[Y]==null||A[Y]==="")A[Y]=z});let K=A.message||A.Message||"UnknownError";return A.message=K,delete A.Message,A},AJ7=({output:A,parsedBody:q,exceptionCtor:K,errorCode:Y})=>{let z=YK5(A),w=z.httpStatusCode?z.httpStatusCode+"":void 0,_=new K({name:q?.code||q?.Code||Y||w||"UnknownError",$fault:"client",$metadata:z});throw ej7(_,q)},KK5=(A)=>{return({output:q,parsedBody:K,errorCode:Y})=>{AJ7({output:q,parsedBody:K,exceptionCtor:A,errorCode:Y})}},YK5=(A)=>({httpStatusCode:A.statusCode,requestId:A.headers["x-amzn-requestid"]??A.headers["x-amzn-request-id"]??A.headers["x-amz-request-id"],extendedRequestId:A.headers["x-amz-id-2"],cfId:A.headers["x-amz-cf-id"]}),zK5=(A)=>{switch(A){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},oj7=!1,wK5=(A)=>{if(A&&!oj7&&parseInt(A.substring(1,A.indexOf(".")))<16)oj7=!0},_K5=(A)=>{let q=[];for(let K in l98.AlgorithmId){let Y=l98.AlgorithmId[K];if(A[Y]===void 0)continue;q.push({algorithmId:()=>Y,checksumConstructor:()=>A[Y]})}return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},$K5=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},OK5=(A)=>{return{setRetryStrategy(q){A.retryStrategy=q},retryStrategy(){return A.retryStrategy}}},HK5=(A)=>{let q={};return q.retryStrategy=A.retryStrategy(),q},qJ7=(A)=>{return Object.assign(_K5(A),OK5(A))},jK5=qJ7,JK5=(A)=>{return Object.assign($K5(A),HK5(A))},MK5=(A)=>Array.isArray(A)?A:[A],KJ7=(A)=>{for(let K in A)if(A.hasOwnProperty(K)&&A[K]["#text"]!==void 0)A[K]=A[K]["#text"];else if(typeof A[K]==="object"&&A[K]!==null)A[K]=KJ7(A[K]);return A},DK5=(A)=>{return A!=null};class YJ7{trace(){}debug(){}info(){}warn(){}error(){}}function zJ7(A,q,K){let Y,z,w;if(typeof q>"u"&&typeof K>"u")Y={},w=A;else if(Y=A,typeof q==="function")return z=q,w=K,WK5(Y,z,w);else w=q;for(let _ of Object.keys(w)){if(!Array.isArray(w[_])){Y[_]=w[_];continue}wJ7(Y,null,w,_)}return Y}var XK5=(A)=>{let q={};for(let[K,Y]of Object.entries(A||{}))q[K]=[,Y];return q},PK5=(A,q)=>{let K={};for(let Y in q)wJ7(K,A,q,Y);return K},WK5=(A,q,K)=>{return zJ7(A,Object.entries(K).reduce((Y,[z,w])=>{if(Array.isArray(w))Y[z]=w;else if(typeof w==="function")Y[z]=[q,w()];else Y[z]=[q,w];return Y},{}))},wJ7=(A,q,K,Y)=>{if(q!==null){let _=K[Y];if(typeof _==="function")_=[,_];let[$=GK5,O=ZK5,H=Y]=_;if(typeof $==="function"&&$(q[H])||typeof $!=="function"&&!!$)A[Y]=O(q[H]);return}let[z,w]=K[Y];if(typeof w==="function"){let _,$=z===void 0&&(_=w())!=null,O=typeof z==="function"&&!!z(void 0)||typeof z!=="function"&&!!z;if($)A[Y]=_;else if(O)A[Y]=w()}else{let _=z===void 0&&w!=null,$=typeof z==="function"&&!!z(w)||typeof z!=="function"&&!!z;if(_||$)A[Y]=w}},GK5=(A)=>A!=null,ZK5=(A)=>A,fK5=(A)=>{if(A!==A)return"NaN";switch(A){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return A}},TK5=(A)=>A.toISOString().replace(".000Z","Z"),n98=(A)=>{if(A==null)return{};if(Array.isArray(A))return A.filter((q)=>q!=null).map(n98);if(typeof A==="object"){let q={};for(let K of Object.keys(A)){if(A[K]==null)continue;q[K]=n98(A[K])}return q}return A};Object.defineProperty(vX6,"collectBody",{enumerable:!0,get:function(){return r98.collectBody}});Object.defineProperty(vX6,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return r98.extendedEncodeURIComponent}});Object.defineProperty(vX6,"resolvedPath",{enumerable:!0,get:function(){return r98.resolvedPath}});vX6.Client=sj7;vX6.Command=o98;vX6.NoOpLogger=YJ7;vX6.SENSITIVE_STRING=AK5;vX6.ServiceException=TX6;vX6._json=n98;vX6.convertMap=XK5;vX6.createAggregatedClient=qK5;vX6.decorateServiceException=ej7;vX6.emitWarningIfUnsupportedVersion=wK5;vX6.getArrayIfSingleItem=MK5;vX6.getDefaultClientConfiguration=jK5;vX6.getDefaultExtensionConfiguration=qJ7;vX6.getValueFromTextNode=KJ7;vX6.isSerializableHeaderValue=DK5;vX6.loadConfigsForDefaultMode=zK5;vX6.map=zJ7;vX6.resolveDefaultRuntimeConfig=JK5;vX6.serializeDateTime=TK5;vX6.serializeFloat=fK5;vX6.take=PK5;vX6.throwDefaultError=AJ7;vX6.withBaseException=KK5;Object.keys(rj7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(vX6,A))Object.defineProperty(vX6,A,{enumerable:!0,get:function(){return rj7[A]}})})});var t98=h((_J7)=>{Object.defineProperty(_J7,"__esModule",{value:!0});_J7.resolveHttpAuthSchemeConfig=_J7.defaultBedrockHttpAuthSchemeProvider=_J7.defaultBedrockHttpAuthSchemeParametersProvider=void 0;var cK5=o_(),a98=Ew(),s98=WG(),lK5=async(A,q,K)=>{return{operation:(0,s98.getSmithyContext)(q).operation,region:await(0,s98.normalizeProvider)(A.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};_J7.defaultBedrockHttpAuthSchemeParametersProvider=lK5;function iK5(A){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"bedrock",region:A.region},propertiesExtractor:(q,K)=>({signingProperties:{config:q,context:K}})}}function nK5(A){return{schemeId:"smithy.api#httpBearerAuth",propertiesExtractor:({profile:q,filepath:K,configFilepath:Y,ignoreCache:z},w)=>({identityProperties:{profile:q,filepath:K,configFilepath:Y,ignoreCache:z}})}}var rK5=(A)=>{let q=[];switch(A.operation){default:q.push(iK5(A)),q.push(nK5(A))}return q};_J7.defaultBedrockHttpAuthSchemeProvider=rK5;var oK5=(A)=>{let q=(0,a98.memoizeIdentityProvider)(A.token,a98.isIdentityExpired,a98.doesIdentityRequireRefresh),K=(0,cK5.resolveAwsSdkSigV4Config)(A);return Object.assign(K,{authSchemePreference:(0,s98.normalizeProvider)(A.authSchemePreference??[]),token:q})};_J7.resolveHttpAuthSchemeConfig=oK5});var OJ7=h((Mw2,tK5)=>{tK5.exports={name:"@aws-sdk/client-bedrock",description:"AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",version:"3.936.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-bedrock","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo bedrock"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.936.0","@aws-sdk/credential-provider-node":"3.936.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.936.0","@aws-sdk/middleware-user-agent":"3.936.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/token-providers":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.936.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.5","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.12","@smithy/middleware-retry":"^4.4.12","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.8","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.11","@smithy/util-defaults-mode-node":"^4.2.14","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.8.3"},engines:{node:">=18.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-bedrock"}}});var HJ7=h((A35)=>{var eK5=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";A35.isArrayBuffer=eK5});var AY8=h((w35)=>{var K35=HJ7(),e98=u6("buffer"),Y35=(A,q=0,K=A.byteLength-q)=>{if(!K35.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return e98.Buffer.from(A,q,K)},z35=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?e98.Buffer.from(A,q):e98.Buffer.from(A)};w35.fromArrayBuffer=Y35;w35.fromString=z35});var MJ7=h((jJ7)=>{Object.defineProperty(jJ7,"__esModule",{value:!0});jJ7.fromBase64=void 0;var O35=AY8(),H35=/^[A-Za-z0-9+/]*={0,2}$/,j35=(A)=>{if(A.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!H35.exec(A))throw TypeError("Invalid base64 string.");let q=(0,O35.fromString)(A,"base64");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength)};jJ7.fromBase64=j35});var PJ7=h((DJ7)=>{Object.defineProperty(DJ7,"__esModule",{value:!0});DJ7.toBase64=void 0;var J35=AY8(),M35=K2(),D35=(A)=>{let q;if(typeof A==="string")q=(0,M35.fromUtf8)(A);else q=A;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,J35.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("base64")};DJ7.toBase64=D35});var ZJ7=h((lb6)=>{var WJ7=MJ7(),GJ7=PJ7();Object.keys(WJ7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(lb6,A))Object.defineProperty(lb6,A,{enumerable:!0,get:function(){return WJ7[A]}})});Object.keys(GJ7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(lb6,A))Object.defineProperty(lb6,A,{enumerable:!0,get:function(){return GJ7[A]}})})});var bJ7=h((IJ7)=>{Object.defineProperty(IJ7,"__esModule",{value:!0});IJ7.ruleSet=void 0;var SJ7="required",OB="fn",HB="argv",NX6="ref",fJ7=!0,TJ7="isSet",nb6="booleanEquals",VX6="error",ib6="endpoint",Wf="tree",qY8="PartitionResult",vJ7={[SJ7]:!1,type:"string"},VJ7={[SJ7]:!0,default:!1,type:"boolean"},NJ7={[NX6]:"Endpoint"},hJ7={[OB]:nb6,[HB]:[{[NX6]:"UseFIPS"},!0]},CJ7={[OB]:nb6,[HB]:[{[NX6]:"UseDualStack"},!0]},$B={},kJ7={[OB]:"getAttr",[HB]:[{[NX6]:qY8},"supportsFIPS"]},EJ7={[OB]:nb6,[HB]:[!0,{[OB]:"getAttr",[HB]:[{[NX6]:qY8},"supportsDualStack"]}]},LJ7=[hJ7],yJ7=[CJ7],RJ7=[{[NX6]:"Region"}],X35={version:"1.0",parameters:{Region:vJ7,UseDualStack:VJ7,UseFIPS:VJ7,Endpoint:vJ7},rules:[{conditions:[{[OB]:TJ7,[HB]:[NJ7]}],rules:[{conditions:LJ7,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:VX6},{rules:[{conditions:yJ7,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:VX6},{endpoint:{url:NJ7,properties:$B,headers:$B},type:ib6}],type:Wf}],type:Wf},{rules:[{conditions:[{[OB]:TJ7,[HB]:RJ7}],rules:[{conditions:[{[OB]:"aws.partition",[HB]:RJ7,assign:qY8}],rules:[{conditions:[hJ7,CJ7],rules:[{conditions:[{[OB]:nb6,[HB]:[fJ7,kJ7]},EJ7],rules:[{rules:[{endpoint:{url:"https://bedrock-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:$B,headers:$B},type:ib6}],type:Wf}],type:Wf},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:VX6}],type:Wf},{conditions:LJ7,rules:[{conditions:[{[OB]:nb6,[HB]:[kJ7,fJ7]}],rules:[{rules:[{endpoint:{url:"https://bedrock-fips.{Region}.{PartitionResult#dnsSuffix}",properties:$B,headers:$B},type:ib6}],type:Wf}],type:Wf},{error:"FIPS is enabled but this partition does not support FIPS",type:VX6}],type:Wf},{conditions:yJ7,rules:[{conditions:[EJ7],rules:[{rules:[{endpoint:{url:"https://bedrock.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:$B,headers:$B},type:ib6}],type:Wf}],type:Wf},{error:"DualStack is enabled but this partition does not support DualStack",type:VX6}],type:Wf},{rules:[{endpoint:{url:"https://bedrock.{Region}.{PartitionResult#dnsSuffix}",properties:$B,headers:$B},type:ib6}],type:Wf}],type:Wf}],type:Wf},{error:"Invalid Configuration: Missing Region",type:VX6}],type:Wf}]};IJ7.ruleSet=X35});var BJ7=h((uJ7)=>{Object.defineProperty(uJ7,"__esModule",{value:!0});uJ7.defaultEndpointResolver=void 0;var P35=AB(),KY8=YI(),W35=bJ7(),G35=new KY8.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Z35=(A,q={})=>{return G35.get(A,()=>(0,KY8.resolveEndpoint)(W35.ruleSet,{endpointParams:A,logger:q.logger}))};uJ7.defaultEndpointResolver=Z35;KY8.customEndpointFunctions.aws=P35.awsEndpointFunctions});var UJ7=h((FJ7)=>{Object.defineProperty(FJ7,"__esModule",{value:!0});FJ7.getRuntimeConfig=void 0;var f35=o_(),T35=bd(),v35=Ew(),V35=cb6(),N35=py(),gJ7=ZJ7(),pJ7=K2(),k35=t98(),E35=BJ7(),L35=(A)=>{return{apiVersion:"2023-04-20",base64Decoder:A?.base64Decoder??gJ7.fromBase64,base64Encoder:A?.base64Encoder??gJ7.toBase64,disableHostPrefix:A?.disableHostPrefix??!1,endpointProvider:A?.endpointProvider??E35.defaultEndpointResolver,extensions:A?.extensions??[],httpAuthSchemeProvider:A?.httpAuthSchemeProvider??k35.defaultBedrockHttpAuthSchemeProvider,httpAuthSchemes:A?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(q)=>q.getIdentityProvider("aws.auth#sigv4"),signer:new f35.AwsSdkSigV4Signer},{schemeId:"smithy.api#httpBearerAuth",identityProvider:(q)=>q.getIdentityProvider("smithy.api#httpBearerAuth"),signer:new v35.HttpBearerAuthSigner}],logger:A?.logger??new V35.NoOpLogger,protocol:A?.protocol??new T35.AwsRestJsonProtocol({defaultNamespace:"com.amazonaws.bedrock"}),serviceId:A?.serviceId??"Bedrock",urlParser:A?.urlParser??N35.parseUrl,utf8Decoder:A?.utf8Decoder??pJ7.fromUtf8,utf8Encoder:A?.utf8Encoder??pJ7.toUtf8}};FJ7.getRuntimeConfig=L35});var oJ7=h((nJ7)=>{Object.defineProperty(nJ7,"__esModule",{value:!0});nJ7.getRuntimeConfig=void 0;var y35=S2(),R35=y35.__importDefault(OJ7()),YY8=o_(),S35=lK6(),dJ7=vz1(),cJ7=hd(),Yw1=qJ(),h35=Ew(),C35=Cd(),lJ7=W0(),rK6=Bv(),iJ7=uv(),I35=Id(),x35=YB(),b35=UJ7(),u35=cb6(),m35=md(),B35=cb6(),g35=(A)=>{(0,B35.emitWarningIfUnsupportedVersion)(process.version);let q=(0,m35.resolveDefaultsModeConfig)(A),K=()=>q().then(u35.loadConfigsForDefaultMode),Y=(0,b35.getRuntimeConfig)(A);(0,YY8.emitWarningIfUnsupportedVersion)(process.version);let z={profile:A?.profile,logger:Y.logger,signingName:"bedrock"};return{...Y,...A,runtime:"node",defaultsMode:q,authSchemePreference:A?.authSchemePreference??(0,rK6.loadConfig)(YY8.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,z),bodyLengthChecker:A?.bodyLengthChecker??I35.calculateBodyLength,credentialDefaultProvider:A?.credentialDefaultProvider??S35.defaultProvider,defaultUserAgentProvider:A?.defaultUserAgentProvider??(0,cJ7.createDefaultUserAgentProvider)({serviceId:Y.serviceId,clientVersion:R35.default.version}),httpAuthSchemes:A?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(w)=>w.getIdentityProvider("aws.auth#sigv4"),signer:new YY8.AwsSdkSigV4Signer},{schemeId:"smithy.api#httpBearerAuth",identityProvider:(w)=>w.getIdentityProvider("smithy.api#httpBearerAuth")||(async(_)=>{try{return await(0,dJ7.fromEnvSigningName)({signingName:"bedrock"})()}catch($){return await(0,dJ7.nodeProvider)(_)(_)}}),signer:new h35.HttpBearerAuthSigner}],maxAttempts:A?.maxAttempts??(0,rK6.loadConfig)(lJ7.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,A),region:A?.region??(0,rK6.loadConfig)(Yw1.NODE_REGION_CONFIG_OPTIONS,{...Yw1.NODE_REGION_CONFIG_FILE_OPTIONS,...z}),requestHandler:iJ7.NodeHttpHandler.create(A?.requestHandler??K),retryMode:A?.retryMode??(0,rK6.loadConfig)({...lJ7.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await K()).retryMode||x35.DEFAULT_RETRY_MODE},A),sha256:A?.sha256??C35.Hash.bind(null,"sha256"),streamCollector:A?.streamCollector??iJ7.streamCollector,useDualstackEndpoint:A?.useDualstackEndpoint??(0,rK6.loadConfig)(Yw1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,z),useFipsEndpoint:A?.useFipsEndpoint??(0,rK6.loadConfig)(Yw1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,z),userAgentAppId:A?.userAgentAppId??(0,rK6.loadConfig)(cJ7.NODE_APP_ID_CONFIG_OPTIONS,z)}};nJ7.getRuntimeConfig=g35});var eJ7=h((c35)=>{var p35=d98(),F35=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},Q35=(A)=>{return{httpHandler:A.httpHandler()}};class aJ7{name;kind;values;constructor({name:A,kind:q=p35.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class sJ7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class zw1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new zw1({...A,headers:{...A.headers}});if(q.query)q.query=U35(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return zw1.clone(this)}}function U35(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class tJ7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function d35(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}c35.Field=aJ7;c35.Fields=sJ7;c35.HttpRequest=zw1;c35.HttpResponse=tJ7;c35.getHttpHandlerExtensionConfiguration=F35;c35.isValidHostname=d35;c35.resolveHttpHandlerRuntimeConfig=Q35});var tw1=h((bw8)=>{var AM7=vd(),t35=Vd(),e35=Nd(),qM7=KB(),A55=qJ(),DM=Ew(),sy=RO(),q55=Sd(),z7=zI(),KM7=W0(),iA=cb6(),YM7=t98(),K55=oJ7(),zM7=wI(),wM7=eJ7(),Y55=(A)=>{return Object.assign(A,{useDualstackEndpoint:A.useDualstackEndpoint??!1,useFipsEndpoint:A.useFipsEndpoint??!1,defaultSigningName:"bedrock"})},$7={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},z55=(A)=>{let{httpAuthSchemes:q,httpAuthSchemeProvider:K,credentials:Y,token:z}=A;return{setHttpAuthScheme(w){let _=q.findIndex(($)=>$.schemeId===w.schemeId);if(_===-1)q.push(w);else q.splice(_,1,w)},httpAuthSchemes(){return q},setHttpAuthSchemeProvider(w){K=w},httpAuthSchemeProvider(){return K},setCredentials(w){Y=w},credentials(){return Y},setToken(w){z=w},token(){return z}}},w55=(A)=>{return{httpAuthSchemes:A.httpAuthSchemes(),httpAuthSchemeProvider:A.httpAuthSchemeProvider(),credentials:A.credentials(),token:A.token()}},_55=(A,q)=>{let K=Object.assign(zM7.getAwsRegionExtensionConfiguration(A),iA.getDefaultExtensionConfiguration(A),wM7.getHttpHandlerExtensionConfiguration(A),z55(A));return q.forEach((Y)=>Y.configure(K)),Object.assign(A,zM7.resolveAwsRegionExtensionConfiguration(K),iA.resolveDefaultRuntimeConfig(K),wM7.resolveHttpHandlerRuntimeConfig(K),w55(K))};class PM extends iA.Client{config;constructor(...[A]){let q=K55.getRuntimeConfig(A||{});super(q);this.initConfig=q;let K=Y55(q),Y=qM7.resolveUserAgentConfig(K),z=KM7.resolveRetryConfig(Y),w=A55.resolveRegionConfig(z),_=AM7.resolveHostHeaderConfig(w),$=z7.resolveEndpointConfig(_),O=YM7.resolveHttpAuthSchemeConfig($),H=_55(O,A?.extensions||[]);this.config=H,this.middlewareStack.use(sy.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(qM7.getUserAgentPlugin(this.config)),this.middlewareStack.use(KM7.getRetryPlugin(this.config)),this.middlewareStack.use(q55.getContentLengthPlugin(this.config)),this.middlewareStack.use(AM7.getHostHeaderPlugin(this.config)),this.middlewareStack.use(t35.getLoggerPlugin(this.config)),this.middlewareStack.use(e35.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(DM.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:YM7.defaultBedrockHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(j)=>new DM.DefaultIdentityProviderConfig({"aws.auth#sigv4":j.credentials,"smithy.api#httpBearerAuth":j.token})})),this.middlewareStack.use(DM.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}var ty=class A extends iA.ServiceException{constructor(q){super(q);Object.setPrototypeOf(this,A.prototype)}},yM7=class A extends ty{name="AccessDeniedException";$fault="client";constructor(q){super({name:"AccessDeniedException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},RM7=class A extends ty{name="InternalServerException";$fault="server";constructor(q){super({name:"InternalServerException",$fault:"server",...q});Object.setPrototypeOf(this,A.prototype)}},SM7=class A extends ty{name="ResourceNotFoundException";$fault="client";constructor(q){super({name:"ResourceNotFoundException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},hM7=class A extends ty{name="ThrottlingException";$fault="client";constructor(q){super({name:"ThrottlingException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},CM7=class A extends ty{name="ValidationException";$fault="client";constructor(q){super({name:"ValidationException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},IM7=class A extends ty{name="ConflictException";$fault="client";constructor(q){super({name:"ConflictException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},xM7=class A extends ty{name="ServiceQuotaExceededException";$fault="client";constructor(q){super({name:"ServiceQuotaExceededException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},bM7=class A extends ty{name="TooManyTagsException";$fault="client";resourceName;constructor(q){super({name:"TooManyTagsException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.resourceName=q.resourceName}},uM7=class A extends ty{name="ResourceInUseException";$fault="client";constructor(q){super({name:"ResourceInUseException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},mM7=class A extends ty{name="ServiceUnavailableException";$fault="server";constructor(q){super({name:"ServiceUnavailableException",$fault:"server",...q});Object.setPrototypeOf(this,A.prototype)}},$55="AgreementAvailability",O55="AccessDeniedException",H55="AutomatedEvaluationConfig",j55="AutomatedEvaluationCustomMetrics",J55="AutomatedEvaluationCustomMetricConfig",M55="AutomatedEvaluationCustomMetricSource",D55="AutomatedReasoningCheckDifferenceScenarioList",X55="AutomatedReasoningCheckFinding",P55="AutomatedReasoningCheckFindingList",W55="AutomatedReasoningCheckImpossibleFinding",G55="AutomatedReasoningCheckInvalidFinding",Z55="AutomatedReasoningCheckInputTextReference",f55="AutomatedReasoningCheckInputTextReferenceList",T55="AutomatedReasoningCheckLogicWarning",v55="AutomatedReasoningCheckNoTranslationsFinding",V55="AutomatedReasoningCheckRule",N55="AutomatedReasoningCheckRuleList",k55="AutomatedReasoningCheckScenario",E55="AutomatedReasoningCheckSatisfiableFinding",L55="AutomatedReasoningCheckTranslation",y55="AutomatedReasoningCheckTranslationAmbiguousFinding",R55="AutomatedReasoningCheckTooComplexFinding",S55="AutomatedReasoningCheckTranslationList",h55="AutomatedReasoningCheckTranslationOption",C55="AutomatedReasoningCheckTranslationOptionList",I55="AutomatedReasoningCheckValidFinding",x55="AutomatedReasoningLogicStatement",b55="AutomatedReasoningLogicStatementContent",u55="AutomatedReasoningLogicStatementList",m55="AutomatedReasoningNaturalLanguageStatementContent",B55="AutomatedReasoningPolicyAnnotation",g55="AutomatedReasoningPolicyAnnotationFeedbackNaturalLanguage",p55="AutomatedReasoningPolicyAnnotationIngestContent",F55="AutomatedReasoningPolicyAnnotationList",Q55="AutomatedReasoningPolicyAddRuleAnnotation",U55="AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation",d55="AutomatedReasoningPolicyAddRuleMutation",c55="AutomatedReasoningPolicyAnnotationRuleNaturalLanguage",l55="AutomatedReasoningPolicyAddTypeAnnotation",i55="AutomatedReasoningPolicyAddTypeMutation",n55="AutomatedReasoningPolicyAddTypeValue",r55="AutomatedReasoningPolicyAddVariableAnnotation",o55="AutomatedReasoningPolicyAddVariableMutation",a55="AutomatedReasoningPolicyBuildDocumentBlob",s55="AutomatedReasoningPolicyBuildDocumentDescription",t55="AutomatedReasoningPolicyBuildDocumentName",e55="AutomatedReasoningPolicyBuildLog",A95="AutomatedReasoningPolicyBuildLogEntry",q95="AutomatedReasoningPolicyBuildLogEntryList",K95="AutomatedReasoningPolicyBuildResultAssets",Y95="AutomatedReasoningPolicyBuildStep",z95="AutomatedReasoningPolicyBuildStepContext",w95="AutomatedReasoningPolicyBuildStepList",_95="AutomatedReasoningPolicyBuildStepMessage",$95="AutomatedReasoningPolicyBuildStepMessageList",O95="AutomatedReasoningPolicyBuildWorkflowDocument",H95="AutomatedReasoningPolicyBuildWorkflowDocumentList",j95="AutomatedReasoningPolicyBuildWorkflowRepairContent",J95="AutomatedReasoningPolicyBuildWorkflowSource",M95="AutomatedReasoningPolicyBuildWorkflowSummary",D95="AutomatedReasoningPolicyBuildWorkflowSummaries",X95="AutomatedReasoningPolicyDescription",P95="AutomatedReasoningPolicyDefinitionElement",W95="AutomatedReasoningPolicyDefinitionQualityReport",G95="AutomatedReasoningPolicyDefinitionRule",Z95="AutomatedReasoningPolicyDeleteRuleAnnotation",f95="AutomatedReasoningPolicyDefinitionRuleAlternateExpression",T95="AutomatedReasoningPolicyDefinitionRuleExpression",v95="AutomatedReasoningPolicyDefinitionRuleList",V95="AutomatedReasoningPolicyDeleteRuleMutation",N95="AutomatedReasoningPolicyDisjointRuleSet",k95="AutomatedReasoningPolicyDisjointRuleSetList",E95="AutomatedReasoningPolicyDefinitionType",L95="AutomatedReasoningPolicyDeleteTypeAnnotation",y95="AutomatedReasoningPolicyDefinitionTypeDescription",R95="AutomatedReasoningPolicyDefinitionTypeList",S95="AutomatedReasoningPolicyDeleteTypeMutation",h95="AutomatedReasoningPolicyDefinitionTypeName",C95="AutomatedReasoningPolicyDefinitionTypeNameList",I95="AutomatedReasoningPolicyDefinitionTypeValue",x95="AutomatedReasoningPolicyDefinitionTypeValueDescription",b95="AutomatedReasoningPolicyDefinitionTypeValueList",u95="AutomatedReasoningPolicyDefinitionTypeValuePair",m95="AutomatedReasoningPolicyDefinitionTypeValuePairList",B95="AutomatedReasoningPolicyDeleteTypeValue",g95="AutomatedReasoningPolicyDefinitionVariable",p95="AutomatedReasoningPolicyDeleteVariableAnnotation",F95="AutomatedReasoningPolicyDefinitionVariableDescription",Q95="AutomatedReasoningPolicyDefinitionVariableList",U95="AutomatedReasoningPolicyDeleteVariableMutation",d95="AutomatedReasoningPolicyDefinitionVariableName",c95="AutomatedReasoningPolicyDefinitionVariableNameList",l95="AutomatedReasoningPolicyDefinition",i95="AutomatedReasoningPolicyGeneratedTestCase",n95="AutomatedReasoningPolicyGeneratedTestCaseList",r95="AutomatedReasoningPolicyGeneratedTestCases",o95="AutomatedReasoningPolicyIngestContentAnnotation",a95="AutomatedReasoningPolicyMutation",s95="AutomatedReasoningPolicyName",t95="AutomatedReasoningPolicyPlanning",e95="AutomatedReasoningPolicyScenario",AY5="AutomatedReasoningPolicyScenarioAlternateExpression",qY5="AutomatedReasoningPolicyScenarioExpression",KY5="AutomatedReasoningPolicySummary",YY5="AutomatedReasoningPolicySummaries",zY5="AutomatedReasoningPolicyTestCase",wY5="AutomatedReasoningPolicyTestCaseList",_Y5="AutomatedReasoningPolicyTestGuardContent",$Y5="AutomatedReasoningPolicyTestList",OY5="AutomatedReasoningPolicyTestQueryContent",HY5="AutomatedReasoningPolicyTestResult",jY5="AutomatedReasoningPolicyTypeValueAnnotation",JY5="AutomatedReasoningPolicyTypeValueAnnotationList",MY5="AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation",DY5="AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation",XY5="AutomatedReasoningPolicyUpdateRuleAnnotation",PY5="AutomatedReasoningPolicyUpdateRuleMutation",WY5="AutomatedReasoningPolicyUpdateTypeAnnotation",GY5="AutomatedReasoningPolicyUpdateTypeMutation",ZY5="AutomatedReasoningPolicyUpdateTypeValue",fY5="AutomatedReasoningPolicyUpdateVariableAnnotation",TY5="AutomatedReasoningPolicyUpdateVariableMutation",vY5="AutomatedReasoningPolicyWorkflowTypeContent",VY5="ByteContentBlob",NY5="ByteContentDoc",kY5="BatchDeleteEvaluationJob",EY5="BatchDeleteEvaluationJobError",LY5="BatchDeleteEvaluationJobErrors",yY5="BatchDeleteEvaluationJobItem",RY5="BatchDeleteEvaluationJobItems",SY5="BatchDeleteEvaluationJobRequest",hY5="BatchDeleteEvaluationJobResponse",CY5="BedrockEvaluatorModel",IY5="BedrockEvaluatorModels",xY5="CreateAutomatedReasoningPolicy",bY5="CancelAutomatedReasoningPolicyBuildWorkflow",uY5="CancelAutomatedReasoningPolicyBuildWorkflowRequest",mY5="CancelAutomatedReasoningPolicyBuildWorkflowResponse",BY5="CreateAutomatedReasoningPolicyRequest",gY5="CreateAutomatedReasoningPolicyResponse",pY5="CreateAutomatedReasoningPolicyTestCase",FY5="CreateAutomatedReasoningPolicyTestCaseRequest",QY5="CreateAutomatedReasoningPolicyTestCaseResponse",UY5="CreateAutomatedReasoningPolicyVersion",dY5="CreateAutomatedReasoningPolicyVersionRequest",cY5="CreateAutomatedReasoningPolicyVersionResponse",lY5="CustomizationConfig",iY5="CreateCustomModel",nY5="CreateCustomModelDeployment",rY5="CreateCustomModelDeploymentRequest",oY5="CreateCustomModelDeploymentResponse",aY5="CreateCustomModelRequest",sY5="CreateCustomModelResponse",tY5="ConflictException",eY5="CreateEvaluationJob",Az5="CreateEvaluationJobRequest",qz5="CreateEvaluationJobResponse",Kz5="CreateFoundationModelAgreement",Yz5="CreateFoundationModelAgreementRequest",zz5="CreateFoundationModelAgreementResponse",wz5="CreateGuardrail",_z5="CreateGuardrailRequest",$z5="CreateGuardrailResponse",Oz5="CreateGuardrailVersion",Hz5="CreateGuardrailVersionRequest",jz5="CreateGuardrailVersionResponse",Jz5="CreateInferenceProfile",Mz5="CreateInferenceProfileRequest",Dz5="CreateInferenceProfileResponse",Xz5="CustomMetricBedrockEvaluatorModel",Pz5="CustomMetricBedrockEvaluatorModels",Wz5="CreateModelCopyJob",Gz5="CreateModelCopyJobRequest",Zz5="CreateModelCopyJobResponse",fz5="CreateModelCustomizationJobRequest",Tz5="CreateModelCustomizationJobResponse",vz5="CreateModelCustomizationJob",Vz5="CustomMetricDefinition",Nz5="CustomModelDeploymentSummary",kz5="CustomModelDeploymentSummaryList",Ez5="CustomMetricEvaluatorModelConfig",Lz5="CreateModelImportJob",yz5="CreateModelImportJobRequest",Rz5="CreateModelImportJobResponse",Sz5="CreateModelInvocationJobRequest",hz5="CreateModelInvocationJobResponse",Cz5="CreateModelInvocationJob",Iz5="CreateMarketplaceModelEndpoint",xz5="CreateMarketplaceModelEndpointRequest",bz5="CreateMarketplaceModelEndpointResponse",uz5="CustomModelSummary",mz5="CustomModelSummaryList",Bz5="CustomModelUnits",gz5="CreateProvisionedModelThroughput",pz5="CreateProvisionedModelThroughputRequest",Fz5="CreateProvisionedModelThroughputResponse",Qz5="CreatePromptRouter",Uz5="CreatePromptRouterRequest",dz5="CreatePromptRouterResponse",cz5="CloudWatchConfig",lz5="DeleteAutomatedReasoningPolicy",iz5="DeleteAutomatedReasoningPolicyBuildWorkflow",nz5="DeleteAutomatedReasoningPolicyBuildWorkflowRequest",rz5="DeleteAutomatedReasoningPolicyBuildWorkflowResponse",oz5="DeleteAutomatedReasoningPolicyRequest",az5="DeleteAutomatedReasoningPolicyResponse",sz5="DeleteAutomatedReasoningPolicyTestCase",tz5="DeleteAutomatedReasoningPolicyTestCaseRequest",ez5="DeleteAutomatedReasoningPolicyTestCaseResponse",Aw5="DistillationConfig",qw5="DeleteCustomModel",Kw5="DeleteCustomModelDeployment",Yw5="DeleteCustomModelDeploymentRequest",zw5="DeleteCustomModelDeploymentResponse",ww5="DeleteCustomModelRequest",_w5="DeleteCustomModelResponse",$w5="DeleteFoundationModelAgreement",Ow5="DeleteFoundationModelAgreementRequest",Hw5="DeleteFoundationModelAgreementResponse",jw5="DeleteGuardrail",Jw5="DeleteGuardrailRequest",Mw5="DeleteGuardrailResponse",Dw5="DeleteImportedModel",Xw5="DeleteImportedModelRequest",Pw5="DeleteImportedModelResponse",Ww5="DeleteInferenceProfile",Gw5="DeleteInferenceProfileRequest",Zw5="DeleteInferenceProfileResponse",fw5="DeleteModelInvocationLoggingConfiguration",Tw5="DeleteModelInvocationLoggingConfigurationRequest",vw5="DeleteModelInvocationLoggingConfigurationResponse",Vw5="DeleteMarketplaceModelEndpoint",Nw5="DeleteMarketplaceModelEndpointRequest",kw5="DeleteMarketplaceModelEndpointResponse",Ew5="DeregisterMarketplaceModelEndpointRequest",Lw5="DeregisterMarketplaceModelEndpointResponse",yw5="DeregisterMarketplaceModelEndpoint",Rw5="DataProcessingDetails",Sw5="DeleteProvisionedModelThroughput",hw5="DeleteProvisionedModelThroughputRequest",Cw5="DeleteProvisionedModelThroughputResponse",Iw5="DimensionalPriceRate",xw5="DeletePromptRouterRequest",bw5="DeletePromptRouterResponse",uw5="DeletePromptRouter",mw5="ExportAutomatedReasoningPolicyVersion",Bw5="ExportAutomatedReasoningPolicyVersionRequest",gw5="ExportAutomatedReasoningPolicyVersionResponse",pw5="EvaluationBedrockModel",Fw5="EndpointConfig",Qw5="EvaluationConfig",Uw5="EvaluationDataset",dw5="EvaluationDatasetLocation",cw5="EvaluationDatasetMetricConfig",lw5="EvaluationDatasetMetricConfigs",iw5="EvaluationDatasetName",nw5="EvaluationInferenceConfig",rw5="EvaluationInferenceConfigSummary",ow5="EvaluationJobDescription",aw5="EvaluationJobIdentifier",sw5="EvaluationJobIdentifiers",tw5="EvaluationModelConfigs",ew5="EvaluationModelConfigSummary",A25="EvaluationModelConfig",q25="EvaluatorModelConfig",K25="EvaluationMetricDescription",Y25="EvaluationModelInferenceParams",z25="EvaluationMetricName",w25="EvaluationMetricNames",_25="EvaluationOutputDataConfig",$25="EvaluationPrecomputedInferenceSource",O25="EvaluationPrecomputedRetrieveAndGenerateSourceConfig",H25="EvaluationPrecomputedRetrieveSourceConfig",j25="EvaluationPrecomputedRagSourceConfig",J25="EvaluationRagConfigSummary",M25="EvaluationSummary",D25="ExternalSourcesGenerationConfiguration",X25="ExternalSourcesRetrieveAndGenerateConfiguration",P25="EvaluationSummaries",W25="ExternalSource",G25="ExternalSources",Z25="FilterAttribute",f25="FieldForReranking",T25="FieldsForReranking",v25="FoundationModelDetails",V25="FoundationModelLifecycle",N25="FoundationModelSummary",k25="FoundationModelSummaryList",E25="GuardrailAutomatedReasoningPolicy",L25="GetAutomatedReasoningPolicyAnnotations",y25="GetAutomatedReasoningPolicyAnnotationsRequest",R25="GetAutomatedReasoningPolicyAnnotationsResponse",S25="GetAutomatedReasoningPolicyBuildWorkflow",h25="GetAutomatedReasoningPolicyBuildWorkflowRequest",C25="GetAutomatedReasoningPolicyBuildWorkflowResultAssets",I25="GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest",x25="GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse",b25="GetAutomatedReasoningPolicyBuildWorkflowResponse",u25="GuardrailAutomatedReasoningPolicyConfig",m25="GetAutomatedReasoningPolicyNextScenario",B25="GetAutomatedReasoningPolicyNextScenarioRequest",g25="GetAutomatedReasoningPolicyNextScenarioResponse",p25="GetAutomatedReasoningPolicyRequest",F25="GetAutomatedReasoningPolicyResponse",Q25="GetAutomatedReasoningPolicyTestCase",U25="GetAutomatedReasoningPolicyTestCaseRequest",d25="GetAutomatedReasoningPolicyTestCaseResponse",c25="GetAutomatedReasoningPolicyTestResult",l25="GetAutomatedReasoningPolicyTestResultRequest",i25="GetAutomatedReasoningPolicyTestResultResponse",n25="GetAutomatedReasoningPolicy",r25="GuardrailBlockedMessaging",o25="GenerationConfiguration",a25="GuardrailContentFilter",s25="GuardrailContentFilterAction",t25="GuardrailContentFilterConfig",e25="GuardrailContentFiltersConfig",A_5="GuardrailContentFiltersTier",q_5="GuardrailContentFiltersTierConfig",K_5="GuardrailContentFiltersTierName",Y_5="GuardrailContentFilters",z_5="GuardrailContextualGroundingAction",w_5="GuardrailContextualGroundingFilter",__5="GuardrailContextualGroundingFilterConfig",$_5="GuardrailContextualGroundingFiltersConfig",O_5="GuardrailContextualGroundingFilters",H_5="GuardrailContextualGroundingPolicy",j_5="GuardrailContextualGroundingPolicyConfig",J_5="GetCustomModel",M_5="GetCustomModelDeployment",D_5="GetCustomModelDeploymentRequest",X_5="GetCustomModelDeploymentResponse",P_5="GetCustomModelRequest",W_5="GetCustomModelResponse",G_5="GuardrailContentPolicy",Z_5="GuardrailContentPolicyConfig",f_5="GuardrailCrossRegionConfig",T_5="GuardrailCrossRegionDetails",v_5="GuardrailConfiguration",V_5="GuardrailDescription",N_5="GetEvaluationJob",k_5="GetEvaluationJobRequest",E_5="GetEvaluationJobResponse",L_5="GetFoundationModel",y_5="GetFoundationModelAvailability",R_5="GetFoundationModelAvailabilityRequest",S_5="GetFoundationModelAvailabilityResponse",h_5="GetFoundationModelRequest",C_5="GetFoundationModelResponse",I_5="GuardrailFailureRecommendation",x_5="GuardrailFailureRecommendations",b_5="GetGuardrail",u_5="GetGuardrailRequest",m_5="GetGuardrailResponse",B_5="GetImportedModel",g_5="GetImportedModelRequest",p_5="GetImportedModelResponse",F_5="GetInferenceProfile",Q_5="GetInferenceProfileRequest",U_5="GetInferenceProfileResponse",d_5="GuardrailModality",c_5="GetModelCopyJob",l_5="GetModelCopyJobRequest",i_5="GetModelCopyJobResponse",n_5="GetModelCustomizationJobRequest",r_5="GetModelCustomizationJobResponse",o_5="GetModelCustomizationJob",a_5="GetModelImportJob",s_5="GetModelImportJobRequest",t_5="GetModelImportJobResponse",e_5="GetModelInvocationJobRequest",A$5="GetModelInvocationJobResponse",q$5="GetModelInvocationJob",K$5="GetModelInvocationLoggingConfiguration",Y$5="GetModelInvocationLoggingConfigurationRequest",z$5="GetModelInvocationLoggingConfigurationResponse",w$5="GetMarketplaceModelEndpoint",_$5="GetMarketplaceModelEndpointRequest",$$5="GetMarketplaceModelEndpointResponse",O$5="GuardrailManagedWords",H$5="GuardrailManagedWordsConfig",j$5="GuardrailManagedWordLists",J$5="GuardrailManagedWordListsConfig",M$5="GuardrailModalities",D$5="GuardrailName",X$5="GuardrailPiiEntity",P$5="GuardrailPiiEntityConfig",W$5="GuardrailPiiEntitiesConfig",G$5="GuardrailPiiEntities",Z$5="GetProvisionedModelThroughput",f$5="GetProvisionedModelThroughputRequest",T$5="GetProvisionedModelThroughputResponse",v$5="GetPromptRouter",V$5="GetPromptRouterRequest",N$5="GetPromptRouterResponse",k$5="GuardrailRegex",E$5="GuardrailRegexConfig",L$5="GuardrailRegexesConfig",y$5="GuardrailRegexes",R$5="GuardrailSummary",S$5="GuardrailSensitiveInformationPolicy",h$5="GuardrailSensitiveInformationPolicyConfig",C$5="GuardrailStatusReason",I$5="GuardrailStatusReasons",x$5="GuardrailSummaries",b$5="GuardrailTopic",u$5="GuardrailTopicAction",m$5="GuardrailTopicConfig",B$5="GuardrailTopicsConfig",g$5="GuardrailTopicDefinition",p$5="GuardrailTopicExample",F$5="GuardrailTopicExamples",Q$5="GuardrailTopicName",U$5="GuardrailTopicPolicy",d$5="GuardrailTopicPolicyConfig",c$5="GuardrailTopicsTier",l$5="GuardrailTopicsTierConfig",i$5="GuardrailTopicsTierName",n$5="GuardrailTopics",r$5="GetUseCaseForModelAccess",o$5="GetUseCaseForModelAccessRequest",a$5="GetUseCaseForModelAccessResponse",s$5="GuardrailWord",t$5="GuardrailWordAction",e$5="GuardrailWordConfig",AO5="GuardrailWordsConfig",qO5="GuardrailWordPolicy",KO5="GuardrailWordPolicyConfig",YO5="GuardrailWords",zO5="HumanEvaluationConfig",wO5="HumanEvaluationCustomMetric",_O5="HumanEvaluationCustomMetrics",$O5="HumanTaskInstructions",OO5="HumanWorkflowConfig",HO5="Identifier",jO5="ImplicitFilterConfiguration",JO5="InvocationLogsConfig",MO5="InvocationLogSource",DO5="ImportedModelSummary",XO5="ImportedModelSummaryList",PO5="InferenceProfileDescription",WO5="InferenceProfileModel",GO5="InferenceProfileModelSource",ZO5="InferenceProfileModels",fO5="InferenceProfileSummary",TO5="InferenceProfileSummaries",vO5="InternalServerException",VO5="KnowledgeBaseConfig",NO5="KnowledgeBaseRetrieveAndGenerateConfiguration",kO5="KnowledgeBaseRetrievalConfiguration",EO5="KnowledgeBaseVectorSearchConfiguration",LO5="KbInferenceConfig",yO5="ListAutomatedReasoningPolicies",RO5="ListAutomatedReasoningPolicyBuildWorkflows",SO5="ListAutomatedReasoningPolicyBuildWorkflowsRequest",hO5="ListAutomatedReasoningPolicyBuildWorkflowsResponse",CO5="ListAutomatedReasoningPoliciesRequest",IO5="ListAutomatedReasoningPoliciesResponse",xO5="ListAutomatedReasoningPolicyTestCases",bO5="ListAutomatedReasoningPolicyTestCasesRequest",uO5="ListAutomatedReasoningPolicyTestCasesResponse",mO5="ListAutomatedReasoningPolicyTestResults",BO5="ListAutomatedReasoningPolicyTestResultsRequest",gO5="ListAutomatedReasoningPolicyTestResultsResponse",pO5="LoggingConfig",FO5="ListCustomModels",QO5="ListCustomModelDeployments",UO5="ListCustomModelDeploymentsRequest",dO5="ListCustomModelDeploymentsResponse",cO5="ListCustomModelsRequest",lO5="ListCustomModelsResponse",iO5="ListEvaluationJobs",nO5="ListEvaluationJobsRequest",rO5="ListEvaluationJobsResponse",oO5="ListFoundationModels",aO5="ListFoundationModelAgreementOffers",sO5="ListFoundationModelAgreementOffersRequest",tO5="ListFoundationModelAgreementOffersResponse",eO5="ListFoundationModelsRequest",AH5="ListFoundationModelsResponse",qH5="ListGuardrails",KH5="ListGuardrailsRequest",YH5="ListGuardrailsResponse",zH5="ListImportedModels",wH5="ListImportedModelsRequest",_H5="ListImportedModelsResponse",$H5="ListInferenceProfiles",OH5="ListInferenceProfilesRequest",HH5="ListInferenceProfilesResponse",jH5="ListModelCopyJobs",JH5="ListModelCopyJobsRequest",MH5="ListModelCopyJobsResponse",DH5="ListModelCustomizationJobsRequest",XH5="ListModelCustomizationJobsResponse",PH5="ListModelCustomizationJobs",WH5="ListModelImportJobs",GH5="ListModelImportJobsRequest",ZH5="ListModelImportJobsResponse",fH5="ListModelInvocationJobsRequest",TH5="ListModelInvocationJobsResponse",vH5="ListModelInvocationJobs",VH5="ListMarketplaceModelEndpoints",NH5="ListMarketplaceModelEndpointsRequest",kH5="ListMarketplaceModelEndpointsResponse",EH5="ListProvisionedModelThroughputs",LH5="ListProvisionedModelThroughputsRequest",yH5="ListProvisionedModelThroughputsResponse",RH5="ListPromptRouters",SH5="ListPromptRoutersRequest",hH5="ListPromptRoutersResponse",CH5="LegalTerm",IH5="ListTagsForResource",xH5="ListTagsForResourceRequest",bH5="ListTagsForResourceResponse",uH5="Message",mH5="MetadataAttributeSchema",BH5="MetadataAttributeSchemaList",gH5="MetadataConfigurationForReranking",pH5="ModelCopyJobSummary",FH5="ModelCustomizationJobSummary",QH5="ModelCopyJobSummaries",UH5="ModelCustomizationJobSummaries",dH5="ModelDataSource",cH5="ModelInvocationJobInputDataConfig",lH5="ModelInvocationJobOutputDataConfig",iH5="ModelImportJobSummary",nH5="ModelInvocationJobS3InputDataConfig",rH5="ModelInvocationJobS3OutputDataConfig",oH5="ModelInvocationJobSummary",aH5="ModelImportJobSummaries",sH5="ModelInvocationJobSummaries",tH5="MarketplaceModelEndpoint",eH5="MarketplaceModelEndpointSummary",Aj5="MarketplaceModelEndpointSummaries",qj5="MetricName",Kj5="Offer",Yj5="OrchestrationConfiguration",zj5="OutputDataConfig",wj5="Offers",_j5="PerformanceConfiguration",$j5="PutModelInvocationLoggingConfiguration",Oj5="PutModelInvocationLoggingConfigurationRequest",Hj5="PutModelInvocationLoggingConfigurationResponse",jj5="ProvisionedModelSummary",Jj5="ProvisionedModelSummaries",Mj5="PromptRouterDescription",Dj5="PromptRouterSummary",Xj5="PromptRouterSummaries",Pj5="PromptRouterTargetModel",Wj5="PromptRouterTargetModels",Gj5="PricingTerm",Zj5="PromptTemplate",fj5="PutUseCaseForModelAccess",Tj5="PutUseCaseForModelAccessRequest",vj5="PutUseCaseForModelAccessResponse",Vj5="QueryTransformationConfiguration",Nj5="RetrieveAndGenerateConfiguration",kj5="RAGConfig",Ej5="RetrieveConfig",Lj5="RagConfigs",yj5="RateCard",Rj5="RoutingCriteria",Sj5="RetrievalFilter",hj5="RetrievalFilterList",Cj5="ResourceInUseException",Ij5="RequestMetadataBaseFilters",xj5="RequestMetadataFilters",bj5="RequestMetadataFiltersList",uj5="RequestMetadataMap",mj5="RegisterMarketplaceModelEndpoint",Bj5="RegisterMarketplaceModelEndpointRequest",gj5="RegisterMarketplaceModelEndpointResponse",pj5="RerankingMetadataSelectiveModeConfiguration",Fj5="ResourceNotFoundException",Qj5="RatingScale",Uj5="RatingScaleItem",dj5="RatingScaleItemValue",cj5="StartAutomatedReasoningPolicyBuildWorkflow",lj5="StartAutomatedReasoningPolicyBuildWorkflowRequest",ij5="StartAutomatedReasoningPolicyBuildWorkflowResponse",nj5="StartAutomatedReasoningPolicyTestWorkflow",rj5="StartAutomatedReasoningPolicyTestWorkflowRequest",oj5="StartAutomatedReasoningPolicyTestWorkflowResponse",aj5="S3Config",sj5="StatusDetails",tj5="S3DataSource",ej5="StopEvaluationJob",AJ5="StopEvaluationJobRequest",qJ5="StopEvaluationJobResponse",KJ5="StopModelCustomizationJob",YJ5="StopModelCustomizationJobRequest",zJ5="StopModelCustomizationJobResponse",wJ5="SageMakerEndpoint",_J5="StopModelInvocationJob",$J5="StopModelInvocationJobRequest",OJ5="StopModelInvocationJobResponse",HJ5="S3ObjectDoc",jJ5="ServiceQuotaExceededException",JJ5="SupportTerm",MJ5="ServiceUnavailableException",DJ5="Tag",XJ5="TermDetails",PJ5="TrainingDataConfig",WJ5="TrainingDetails",GJ5="ThrottlingException",ZJ5="TextInferenceConfig",fJ5="TagList",TJ5="TrainingMetrics",vJ5="TeacherModelConfig",VJ5="TooManyTagsException",NJ5="TextPromptTemplate",kJ5="TagResource",EJ5="TagResourceRequest",LJ5="TagResourceResponse",yJ5="UpdateAutomatedReasoningPolicy",RJ5="UpdateAutomatedReasoningPolicyAnnotations",SJ5="UpdateAutomatedReasoningPolicyAnnotationsRequest",hJ5="UpdateAutomatedReasoningPolicyAnnotationsResponse",CJ5="UpdateAutomatedReasoningPolicyRequest",IJ5="UpdateAutomatedReasoningPolicyResponse",xJ5="UpdateAutomatedReasoningPolicyTestCase",bJ5="UpdateAutomatedReasoningPolicyTestCaseRequest",uJ5="UpdateAutomatedReasoningPolicyTestCaseResponse",mJ5="UpdateGuardrail",BJ5="UpdateGuardrailRequest",gJ5="UpdateGuardrailResponse",pJ5="UpdateMarketplaceModelEndpoint",FJ5="UpdateMarketplaceModelEndpointRequest",QJ5="UpdateMarketplaceModelEndpointResponse",UJ5="UpdateProvisionedModelThroughput",dJ5="UpdateProvisionedModelThroughputRequest",cJ5="UpdateProvisionedModelThroughputResponse",lJ5="UntagResource",iJ5="UntagResourceRequest",nJ5="UntagResourceResponse",rJ5="Validator",oJ5="VpcConfig",aJ5="ValidationDetails",sJ5="ValidationDataConfig",tJ5="ValidationException",eJ5="ValidatorMetric",AM5="ValidationMetrics",qM5="VectorSearchBedrockRerankingConfiguration",KM5="VectorSearchBedrockRerankingModelConfiguration",YM5="VectorSearchRerankingConfiguration",zM5="ValidityTerm",wM5="Validators",_M5="annotation",$M5="agreementAvailability",BM7="andAll",OM5="agreementDuration",gM7="alternateExpression",HM5="acceptEula",zY8="additionalModelRequestFields",pM7="addRule",jM5="addRuleFromNaturalLanguage",JM5="automatedReasoningPolicy",MM5="automatedReasoningPolicyBuildWorkflowSummaries",FM7="automatedReasoningPolicyConfig",DM5="automatedReasoningPolicySummaries",XM5="authorizationStatus",QM7="annotationSetHash",wY8="applicationType",_M7="applicationTypeEquals",PM5="aggregatedTestFindingsResult",WM5="addTypeValue",UM7="addType",$M7="assetType",dM7="addVariable",LX6="action",_Y8="annotations",GM5="arn",ZM5="automated",fM5="byteContent",OM7="byCustomizationType",cM7="bedrockEvaluatorModels",$Y8="blockedInputMessaging",HM7="byInferenceType",TM5="bedrockKnowledgeBaseIdentifiers",vM5="buildLog",VM5="bedrockModel",Mw1="baseModelArn",jM7="baseModelArnEquals",NM5="baseModelIdentifier",kM5="bedrockModelIdentifiers",EM5="baseModelName",LM5="bucketName",OY8="blockedOutputsMessaging",JM7="byOutputModality",MM7="byProvider",yM5="bedrockRerankingConfiguration",RM5="buildSteps",SM5="buildWorkflowAssets",NG="buildWorkflowId",HY8="buildWorkflowType",qt="client",mX="createdAt",DM7="createdAfter",XM7="createdBefore",jY8="customizationConfig",JY8="commitmentDuration",lM7="customerEncryptionKeyId",iM7="commitmentExpirationTime",hM5="copyFrom",CM5="claimsFalseScenario",IM5="contextualGroundingPolicy",nM7="contextualGroundingPolicyConfig",rM7="customMetrics",xM5="customModelArn",bM5="customMetricConfig",uM5="customMetricDefinition",MY8="customModelDeploymentArn",oM7="customModelDeploymentIdentifier",mM5="customModelDeploymentName",BM5="customMetricsEvaluatorModelIdentifiers",gM5="customModelKmsKeyId",aM7="customModelName",pM5="customModelTags",FM5="customModelUnits",QM5="customModelUnitsPerModelCopy",UM5="customModelUnitsVersion",dM5="contentPolicy",sM7="contentPolicyConfig",tM7="contradictingRules",eM7="crossRegionConfig",AD7="crossRegionDetails",VH="clientRequestToken",cM5="conflictingRules",qD7="customizationsSupported",ab6="confidenceThreshold",Qv="creationTimeAfter",Uv="creationTimeBefore",KD7="claimsTrueScenario",lM5="contentType",T0="creationTime",sb6="customizationType",iM5="cloudWatchConfig",YD7="claims",nM5="confidence",rM5="code",oM5="context",aM5="content",Wz="description",sM5="distillationConfig",zD7="documentContentType",wD7="documentDescription",Dw1="definitionHash",tM5="datasetLocation",_D7="desiredModelArn",$D7="datasetMetricConfigs",eM5="desiredModelId",OD7="desiredModelUnits",HD7="documentName",AD5="dataProcessingDetails",qD5="desiredProvisionedModelName",jD7="deleteRule",KD5="disjointRuleSets",YD5="differenceScenarios",JD7="deleteType",zD5="deleteTypeValue",MD7="deleteVariable",wD5="data",_D5="dataset",DY8="definition",$D5="dimension",OD5="document",HD5="documents",JB="error",yX6="endpointArn",Xw1="expectedAggregatedFindingsResult",jD5="entitlementAvailability",DD7="evaluationConfig",XY8="endpointConfig",JD5="embeddingDataDeliveryEnabled",MD5="endpointIdentifier",DD5="evaluationJobs",XD5="errorMessage",XD7="evaluatorModelConfig",PD5="evaluatorModelIdentifiers",WD5="endpointName",GD5="expectedResult",ZD5="executionRole",fD5="endpointStatus",TD5="externalSourcesConfiguration",vD5="endpointStatusMessage",RX6="endTime",VD5="evaluationTaskTypes",ND5="entries",PD7="enabled",PY8="equals",kD5="errors",Pw1="expression",WD7="examples",GD7="feedback",ZD7="filtersConfig",fD7="formData",ED5="flowDefinitionArn",WY8="fallbackModel",TD7="foundationModelArn",PM7="foundationModelArnEquals",Kt="failureMessage",LD5="failureMessages",yD5="fieldName",RD5="failureRecommendations",SD5="fieldsToExclude",hD5="fieldsToInclude",CD5="floatValue",vD7="filters",ID5="filter",WM7="force",xD5="guardrails",GY8="guardrailArn",Ww1="guardContent",VD7="generationConfiguration",ND7="guardrailConfiguration",tb6="guardrailId",kX6="guardrailIdentifier",bD5="guardrailProfileArn",uD5="guardrailProfileIdentifier",mD5="guardrailProfileId",BD5="greaterThan",kD7="generatedTestCases",gD5="greaterThanOrEquals",rb6="guardrailVersion",pD5="human",MB="httpError",FD5="httpHeader",ZY8="hyperParameters",hA="httpQuery",QD5="humanWorkflowConfig",O7="http",Gw1="id",ey="inputAction",ED7="inferenceConfig",UD5="inferenceConfigSummary",dD5="ingestContent",fY8="inputDataConfig",cD5="imageDataDeliveryEnabled",AR="inputEnabled",lD5="implicitFilterConfiguration",iD5="initialInstanceCount",nD5="invocationJobSummaries",rD5="invocationLogsConfig",oD5="invocationLogSource",Zw1="inputModalities",LD7="importedModelArn",aD5="importedModelKmsKeyArn",sD5="importedModelKmsKeyId",TY8="importedModelName",tD5="importedModelTags",GM7="isOwned",eD5="inferenceParams",vY8="inferenceProfileArn",yD7="inferenceProfileIdentifier",RD7="inferenceProfileId",VY8="inferenceProfileName",AX5="inferenceProfileSummaries",SD7="instructSupported",qX5="inferenceSourceIdentifier",hD7="inputStrength",KX5="instanceType",CD7="inferenceTypesSupported",YX5="idempotencyToken",zX5="identifier",wX5="impossible",ID7="instructions",_X5="in",$X5="invalid",BX="jobArn",xD7="jobDescription",bD7="jobExpirationTime",dd="jobIdentifier",OX5="jobIdentifiers",cv="jobName",HX5="jobStatus",jX5="jobSummaries",NY8="jobTags",uD7="jobType",kY8="key",JX5="knowledgeBaseConfiguration",MX5="knowledgeBaseConfig",mD7="knowledgeBaseId",DX5="knowledgeBaseRetrievalConfiguration",XX5="kmsEncryptionKey",BD7="kbInferenceConfig",gD7="kmsKeyArn",EY8="kmsKeyId",PX5="keyPrefix",WX5="logic",pD7="loggingConfig",GX5="listContains",ZX5="largeDataDeliveryS3Config",fX5="logGroupName",qR="lastModifiedTime",TX5="legalTerm",vX5="lessThanOrEquals",VX5="lessThan",eb6="lastUpdatedAt",NX5="lastUpdatedAnnotationSetHash",kX5="lastUpdatedDefinitionHash",fw1="logicWarning",EX5="latency",lv="message",gX="modelArn",ww1="modelArnEquals",LX5="metadataAttributes",FD7="modelArchitecture",yX5="modelConfiguration",RX5="modelCopyJobSummaries",SX5="modelCustomizationJobSummaries",hX5="modelConfigSummary",CX5="metadataConfiguration",IX5="modelDetails",QD7="modelDeploymentName",LY8="modelDataSource",xX5="modelDeploymentSummaries",Yt="modelIdentifier",bX5="modelImportJobSummaries",Ik="modelId",uX5="modelIdentifiers",yY8="modelKmsKeyArn",mX5="modelKmsKeyId",UD7="modelLifecycle",Tw1="marketplaceModelEndpoint",BX5="marketplaceModelEndpoints",aK6="modelName",gX5="metricNames",oY="maxResults",pX5="maxResponseLengthForInference",FX5="modelSource",QX5="modelSourceConfig",UX5="modelSourceEquals",Au6="modelSourceIdentifier",_w1="modelStatus",RY8="modelSummaries",dX5="messageType",cX5="maxTokens",lX5="modelTags",SY8="modelUnits",iX5="managedWordLists",nX5="managedWordListsConfig",rX5="messages",SX6="models",oX5="mutation",w2="name",VG="nameContains",hY8="notEquals",aX5="notIn",dD7="naturalLanguage",cD7="newName",sX5="numberOfResults",tX5="numberOfRerankedResults",hK="nextToken",eX5="noTranslations",AP5="newValue",qP5="options",KR="outputAction",KP5="ownerAccountId",lD7="orAll",YP5="orchestrationConfiguration",zt="outputDataConfig",YR="outputEnabled",zP5="offerId",vw1="outputModalities",wP5="outputModelArn",_P5="outputModelKmsKeyArn",$P5="outputModelName",OP5="outputModelNameContains",iD7="outputStrength",HP5="overrideSearchType",nD7="offerToken",ZM7="offerType",jP5="offers",rD7="premises",m5="policyArn",JP5="performanceConfig",qu6="policyDefinition",MP5="policyDefinitionRule",DP5="policyDefinitionType",XP5="policyDefinitionVariable",PP5="priorElement",WP5="piiEntitiesConfig",GP5="piiEntities",oD7="policyId",ZP5="precomputedInferenceSource",fP5="precomputedInferenceSourceIdentifiers",CY8="provisionedModelArn",IY8="provisionedModelId",xY8="provisionedModelName",TP5="provisionedModelSummaries",aD7="providerName",Ku6="promptRouterArn",vP5="policyRepairAssets",bY8="promptRouterName",VP5="promptRouterSummaries",NP5="precomputedRagSourceConfig",kP5="precomputedRagSourceIdentifiers",sD7="promptTemplate",EP5="policyVersionArn",tD7="pattern",LP5="planning",eD7="policies",yP5="price",Vw1="queryContent",RP5="qualityReport",SP5="queryTransformationConfiguration",AX7="rule",DI="roleArn",hP5="retrieveAndGenerateConfig",CP5="retrieveAndGenerateSourceConfig",uY8="resourceARN",IP5="regionAvailability",xP5="ruleCount",bP5="ragConfigSummary",uP5="rateCard",mP5="ragConfigs",BP5="regexesConfig",gP5="rerankingConfiguration",pP5="retrievalConfiguration",FP5="retrieveConfig",mY8="routingCriteria",qX7="ruleId",QP5="ragIdentifiers",BY8="ruleIds",UP5="ratingMethod",dP5="requestMetadataFilters",cP5="resourceName",lP5="refundPolicyDescription",iP5="responseQualityDifference",nP5="ratingScale",rP5="retrieveSourceConfig",KX7="ragSourceIdentifier",YX7="responseStreamingSupported",oP5="regexes",zX7="rules",ww="status",fM7="sourceAccountEquals",wX7="sourceAccountId",bX="sortBy",_X7="s3BucketOwner",aP5="s3Config",sP5="sourceContent",tP5="stringContains",$X7="statusDetails",eP5="s3DataSource",A05="scenarioExpression",q05="s3EncryptionKeyId",dv="statusEquals",K05="securityGroupIds",Y05="subnetIds",z05="s3InputDataConfig",w05="s3InputFormat",_05="sensitiveInformationPolicy",OX7="sensitiveInformationPolicyConfig",$05="s3Location",HX7="statusMessage",gY8="sourceModelArn",TM7="sourceModelArnEquals",O05="selectiveModeConfiguration",jX7="sourceModelName",H05="sageMaker",j05="selectionMode",uX="sortOrder",J05="s3OutputDataConfig",M05="supportingRules",D05="statusReasons",X05="stopSequences",P05="sourceType",vM7="submitTimeAfter",VM7="submitTimeBefore",JX7="submitTime",W05="supportTerm",cd="s3Uri",G05="stringValue",Z05="startsWith",f05="satisfiable",T05="scenario",MX7="server",DX7="smithy.ts.sdk.synthetic.com.amazonaws.bedrock",v05="sources",V05="statements",Nw1="translation",N05="translationAmbiguous",k05="typeCount",sK6="testCaseId",E05="testCaseIds",XX7="testCase",L05="testCases",PX7="tierConfig",y05="topicsConfig",R05="tooComplex",S05="termDetails",pY8="trainingDataConfig",h05="textDataDeliveryEnabled",FY8="timeoutDurationInHours",C05="trainingDetails",I05="typeEquals",x05="testFindings",b05="textInferenceConfig",u05="tagKeys",m05="trainingLoss",WX7="trainingMetrics",GX7="targetModelArn",B05="teacherModelConfig",g05="teacherModelIdentifier",ZX7="targetModelKmsKeyArn",QY8="targetModelName",p05="targetModelNameContains",UY8="targetModelTags",F05="typeName",kw1="tierName",Q05="topicPolicy",fX7="topicPolicyConfig",U05="textPromptTemplate",d05="topP",c05="testResult",l05="testRunResult",i05="testRunStatus",n05="testResults",r05="taskType",XI="tags",dY8="text",o05="temperature",TX7="threshold",vX7="tier",a05="topics",s05="translations",a_="type",t05="types",e05="unit",KJ="updatedAt",AW5="usageBasedPricingTerm",qW5="untranslatedClaims",KW5="updateFromRulesFeedback",YW5="updateFromScenarioFeedback",zW5="untranslatedPremises",wW5="usePromptResponse",VX7="updateRule",_W5="unusedTypes",$W5="unusedTypeValues",OW5="updateTypeValue",NX7="updateType",HW5="unusedVariables",kX7="updateVariable",jW5="url",JW5="uri",cY8="values",MW5="variableCount",tK6="vpcConfig",DW5="validationDetails",lY8="validationDataConfig",XW5="videoDataDeliveryEnabled",PW5="validationLoss",EX7="validationMetrics",WW5="valueName",GW5="vectorSearchConfiguration",ZW5="validityTerm",eK6="value",fW5="validators",TW5="valid",LX7="variable",yX7="variables",DB="version",vW5="vpc",VW5="words",NW5="workflowContent",kW5="wordsConfig",EW5="wordPolicy",RX7="wordPolicyConfig",LW5="x-amz-client-token",k6="com.amazonaws.bedrock",yW5=[0,k6,b55,8,0],SX7=[0,k6,m55,8,0],hX7=[0,k6,g55,8,0],RW5=[0,k6,p55,8,0],SW5=[0,k6,c55,8,0],hW5=[0,k6,a55,8,21],CX7=[0,k6,s55,8,0],IX7=[0,k6,t55,8,0],CW5=[0,k6,f95,8,0],iY8=[0,k6,T95,8,0],nY8=[0,k6,y95,8,0],jB=[0,k6,h95,8,0],rY8=[0,k6,x95,8,0],oY8=[0,k6,F95,8,0],oK6=[0,k6,d95,8,0],hX6=[0,k6,X95,8,0],wt=[0,k6,s95,8,0],IW5=[0,k6,AY5,8,0],xX7=[0,k6,qY5,8,0],Ew1=[0,k6,_Y5,8,0],Lw1=[0,k6,OY5,8,0],xW5=[0,k6,VY5,8,21],bW5=[0,k6,iw5,8,0],bX7=[0,k6,ow5,8,0],Yu6=[0,k6,aw5,8,0],uW5=[0,k6,K25,8,0],uX7=[0,k6,z25,8,0],mW5=[0,k6,Y25,8,0],EX6=[0,k6,r25,8,0],$w1=[0,k6,s25,8,0],mX7=[0,k6,K_5,8,0],BX7=[0,k6,z_5,8,0],zu6=[0,k6,V_5,8,0],BW5=[0,k6,I_5,8,0],gW5=[0,k6,d_5,8,0],yw1=[0,k6,D$5,8,0],pW5=[0,k6,C$5,8,0],Ow1=[0,k6,u$5,8,0],gX7=[0,k6,g$5,8,0],FW5=[0,k6,p$5,8,0],pX7=[0,k6,Q$5,8,0],FX7=[0,k6,i$5,8,0],At=[0,k6,t$5,8,0],QW5=[0,k6,$O5,8,0],UW5=[0,k6,HO5,8,0],aY8=[0,k6,PO5,8,0],QX7=[0,k6,uH5,8,0],dW5=[0,k6,qj5,8,0],sY8=[0,k6,Mj5,8,0],cW5=[0,k6,NJ5,8,0],lW5=[-3,k6,O55,{[JB]:qt,[MB]:403},[lv],[0]];sy.TypeRegistry.for(k6).registerError(lW5,yM7);var iW5=[3,k6,$55,0,[ww,XD5],[0,0]],nW5=[3,k6,H55,0,[$D7,XD7,bM5],[[()=>HP7,0],()=>rk5,[()=>rW5,0]]],rW5=[3,k6,J55,0,[rM7,XD7],[[()=>EN5,0],()=>FZ5]],oW5=[3,k6,W55,0,[Nw1,tM7,fw1],[[()=>wu6,0],()=>Yz8,[()=>Rw1,0]]],aW5=[3,k6,Z55,0,[dY8],[[()=>SX7,0]]],sW5=[3,k6,G55,0,[Nw1,tM7,fw1],[[()=>wu6,0],()=>Yz8,[()=>Rw1,0]]],Rw1=[3,k6,T55,0,[a_,rD7,YD7],[0,[()=>ob6,0],[()=>ob6,0]]],tW5=[3,k6,v55,0,[],[]],eW5=[3,k6,V55,0,[Gw1,EP5],[0,0]],AG5=[3,k6,E55,0,[Nw1,KD7,CM5,fw1],[[()=>wu6,0],[()=>Hw1,0],[()=>Hw1,0],[()=>Rw1,0]]],Hw1=[3,k6,k55,0,[V05],[[()=>ob6,0]]],qG5=[3,k6,R55,0,[],[]],wu6=[3,k6,L55,0,[rD7,YD7,zW5,qW5,nM5],[[()=>ob6,0],[()=>ob6,0],[()=>NM7,0],[()=>NM7,0],1]],KG5=[3,k6,y55,0,[qP5,YD5],[[()=>SN5,0],[()=>LN5,0]]],YG5=[3,k6,h55,0,[s05],[[()=>RN5,0]]],zG5=[3,k6,I55,0,[Nw1,KD7,M05,fw1],[[()=>wu6,0],[()=>Hw1,0],()=>Yz8,[()=>Rw1,0]]],wG5=[3,k6,x55,0,[WX5,dD7],[[()=>yW5,0],[()=>SX7,0]]],_G5=[3,k6,Q55,0,[Pw1],[[()=>iY8,0]]],$G5=[3,k6,U55,0,[dD7],[[()=>SW5,0]]],OG5=[3,k6,d55,0,[AX7],[[()=>Sw1,0]]],HG5=[3,k6,l55,0,[w2,Wz,cY8],[[()=>jB,0],[()=>nY8,0],[()=>$P7,0]]],jG5=[3,k6,i55,0,[a_],[[()=>hw1,0]]],JG5=[3,k6,n55,0,[eK6,Wz],[0,[()=>rY8,0]]],MG5=[3,k6,r55,0,[w2,a_,Wz],[[()=>oK6,0],[()=>jB,0],[()=>oY8,0]]],DG5=[3,k6,o55,0,[LX7],[[()=>Cw1,0]]],XG5=[3,k6,e55,0,[ND5],[[()=>hN5,0]]],PG5=[3,k6,A95,0,[_M5,ww,RM5],[[()=>DP7,0],0,[()=>CN5,0]]],WG5=[3,k6,Y95,0,[oM5,PP5,rX5],[[()=>Fk5,0],[()=>Qk5,0],()=>IN5]],GG5=[3,k6,_95,0,[lv,dX5],[0,0]],ZG5=[3,k6,O95,0,[OD5,zD7,HD7,wD7],[[()=>hW5,0],0,[()=>IX7,0],[()=>CX7,0]]],fG5=[3,k6,j95,0,[_Y8],[[()=>zz8,0]]],TG5=[3,k6,J95,0,[qu6,NW5],[[()=>_u6,0],[()=>ck5,0]]],vG5=[3,k6,M95,0,[m5,NG,ww,HY8,mX,KJ],[0,0,0,0,5,5]],_u6=[3,k6,l95,0,[DB,t05,zX7,yX7],[0,[()=>mN5,0],[()=>uN5,0],[()=>pN5,0]]],VG5=[3,k6,W95,0,[k05,MW5,xP5,_W5,$W5,HW5,cM5,KD5],[1,1,1,[()=>BN5,0],[()=>gN5,0],[()=>OP7,0],64,[()=>FN5,0]]],Sw1=[3,k6,G95,0,[Gw1,Pw1,gM7],[0,[()=>iY8,0],[()=>CW5,0]]],hw1=[3,k6,E95,0,[w2,Wz,cY8],[[()=>jB,0],[()=>nY8,0],[()=>$P7,0]]],NG5=[3,k6,I95,0,[eK6,Wz],[0,[()=>rY8,0]]],kG5=[3,k6,u95,0,[F05,WW5],[[()=>jB,0],0]],Cw1=[3,k6,g95,0,[w2,a_,Wz],[[()=>oK6,0],[()=>jB,0],[()=>oY8,0]]],EG5=[3,k6,Z95,0,[qX7],[0]],LG5=[3,k6,V95,0,[Gw1],[0]],yG5=[3,k6,L95,0,[w2],[[()=>jB,0]]],RG5=[3,k6,S95,0,[w2],[[()=>jB,0]]],SG5=[3,k6,B95,0,[eK6],[0]],hG5=[3,k6,p95,0,[w2],[[()=>oK6,0]]],CG5=[3,k6,U95,0,[w2],[[()=>oK6,0]]],IG5=[3,k6,N95,0,[yX7,zX7],[[()=>OP7,0],64]],xG5=[3,k6,i95,0,[Vw1,Ww1,Xw1],[[()=>Lw1,0],[()=>Ew1,0],0]],bG5=[3,k6,r95,0,[kD7],[[()=>QN5,0]]],uG5=[3,k6,o95,0,[aM5],[[()=>RW5,0]]],mG5=[3,k6,t95,0,[],[]],BG5=[3,k6,e95,0,[Pw1,gM7,BY8,GD5],[[()=>xX7,0],[()=>IW5,0],64,0]],gG5=[3,k6,KY5,0,[m5,w2,Wz,DB,oD7,mX,KJ],[0,[()=>wt,0],[()=>hX6,0],0,0,5,5]],tY8=[3,k6,zY5,0,[sK6,Ww1,Vw1,Xw1,mX,KJ,ab6],[0,[()=>Ew1,0],[()=>Lw1,0],0,5,5,1]],UX7=[3,k6,HY5,0,[XX7,m5,i05,x05,l05,PM5,KJ],[[()=>tY8,0],0,0,[()=>yN5,0],0,0,5]],pG5=[3,k6,MY5,0,[BY8,GD7],[64,[()=>hX7,0]]],FG5=[3,k6,DY5,0,[BY8,A05,GD7],[64,[()=>xX7,0],[()=>hX7,0]]],QG5=[3,k6,XY5,0,[qX7,Pw1],[0,[()=>iY8,0]]],UG5=[3,k6,PY5,0,[AX7],[[()=>Sw1,0]]],dG5=[3,k6,WY5,0,[w2,cD7,Wz,cY8],[[()=>jB,0],[()=>jB,0],[()=>nY8,0],[()=>lN5,0]]],cG5=[3,k6,GY5,0,[a_],[[()=>hw1,0]]],lG5=[3,k6,ZY5,0,[eK6,AP5,Wz],[0,0,[()=>rY8,0]]],iG5=[3,k6,fY5,0,[w2,cD7,Wz],[[()=>oK6,0],[()=>oK6,0],[()=>oY8,0]]],nG5=[3,k6,TY5,0,[LX7],[[()=>Cw1,0]]],rG5=[3,k6,EY5,0,[dd,rM5,lv],[[()=>Yu6,0],0,0]],oG5=[3,k6,yY5,0,[dd,HX5],[[()=>Yu6,0],0]],aG5=[3,k6,SY5,0,[OX5],[[()=>tN5,0]]],sG5=[3,k6,hY5,0,[kD5,DD5],[[()=>iN5,0],[()=>nN5,0]]],tG5=[3,k6,CY5,0,[Yt],[0]],eG5=[3,k6,NY5,0,[zX5,lM5,wD5],[[()=>UW5,0],0,[()=>xW5,0]]],AZ5=[3,k6,uY5,0,[m5,NG],[[0,1],[0,1]]],qZ5=[3,k6,mY5,0,[],[]],KZ5=[3,k6,cz5,0,[fX5,DI,ZX5],[0,0,()=>zP7]],YZ5=[-3,k6,tY5,{[JB]:qt,[MB]:400},[lv],[0]];sy.TypeRegistry.for(k6).registerError(YZ5,IM7);var zZ5=[3,k6,BY5,0,[w2,Wz,VH,qu6,EY8,XI],[[()=>wt,0],[()=>hX6,0],[0,4],[()=>_u6,0],0,()=>XM]],wZ5=[3,k6,gY5,0,[m5,DB,w2,Wz,Dw1,mX,KJ],[0,0,[()=>wt,0],[()=>hX6,0],0,5,5]],_Z5=[3,k6,FY5,0,[m5,Ww1,Vw1,Xw1,VH,ab6],[[0,1],[()=>Ew1,0],[()=>Lw1,0],0,[0,4],1]],$Z5=[3,k6,QY5,0,[m5,sK6],[0,0]],OZ5=[3,k6,dY5,0,[m5,VH,kX5,XI],[[0,1],[0,4],0,()=>XM]],HZ5=[3,k6,cY5,0,[m5,DB,w2,Wz,Dw1,mX],[0,0,[()=>wt,0],[()=>hX6,0],0,5]],jZ5=[3,k6,rY5,0,[QD7,gX,Wz,XI,VH],[0,0,0,()=>XM,[0,4]]],JZ5=[3,k6,oY5,0,[MY8],[0]],MZ5=[3,k6,aY5,0,[aK6,QX5,yY8,DI,lX5,VH],[0,()=>bw1,0,0,()=>XM,[0,4]]],DZ5=[3,k6,sY5,0,[gX],[0]],XZ5=[3,k6,Az5,0,[cv,xD7,VH,DI,lM7,NY8,wY8,DD7,ED7,zt],[0,[()=>bX7,0],[0,4],0,0,()=>XM,0,[()=>XP7,0],[()=>PP7,0],()=>dX7]],PZ5=[3,k6,qz5,0,[BX],[0]],WZ5=[3,k6,Yz5,0,[nD7,Ik],[0,0]],GZ5=[3,k6,zz5,0,[Ik],[0]],ZZ5=[3,k6,_z5,0,[w2,Wz,fX7,sM7,RX7,OX7,nM7,FM7,eM7,$Y8,OY8,EY8,XI,VH],[[()=>yw1,0],[()=>zu6,0],[()=>tX7,0],[()=>nX7,0],[()=>eX7,0],()=>sX7,[()=>rX7,0],()=>lX7,()=>oX7,[()=>EX6,0],[()=>EX6,0],0,()=>XM,[0,4]]],fZ5=[3,k6,$z5,0,[tb6,GY8,DB,mX],[0,0,0,5]],TZ5=[3,k6,Hz5,0,[kX6,Wz,VH],[[0,1],[()=>zu6,0],[0,4]]],vZ5=[3,k6,jz5,0,[tb6,DB],[0,0]],VZ5=[3,k6,Mz5,0,[VY8,Wz,VH,FX5,XI],[0,[()=>aY8,0],[0,4],()=>ok5,()=>XM]],NZ5=[3,k6,Dz5,0,[vY8,ww],[0,0]],kZ5=[3,k6,xz5,0,[Au6,XY8,HM5,WD5,VH,XI],[0,()=>$z8,2,0,[0,4],()=>XM]],EZ5=[3,k6,bz5,0,[Tw1],[()=>Iw1]],LZ5=[3,k6,Gz5,0,[gY8,QY8,mX5,UY8,VH],[0,0,0,()=>XM,[0,4]]],yZ5=[3,k6,Zz5,0,[BX],[0]],RZ5=[3,k6,fz5,0,[cv,aM7,DI,VH,NM5,sb6,gM5,NY8,pM5,pY8,lY8,zt,ZY8,tK6,jY8],[0,0,0,[0,4],0,0,0,()=>XM,()=>XM,[()=>qz8,0],()=>Kz8,()=>eY8,128,()=>_t,()=>_z8]],SZ5=[3,k6,Tz5,0,[BX],[0]],hZ5=[3,k6,yz5,0,[cv,TY8,DI,LY8,NY8,tD5,VH,tK6,sD5],[0,0,0,()=>bw1,()=>XM,()=>XM,0,()=>_t,0]],CZ5=[3,k6,Rz5,0,[BX],[0]],IZ5=[3,k6,Sz5,0,[cv,DI,VH,Ik,fY8,zt,tK6,FY8,XI],[0,0,[0,4],0,()=>Oz8,()=>Hz8,()=>_t,1,()=>XM]],xZ5=[3,k6,hz5,0,[BX],[0]],bZ5=[3,k6,Uz5,0,[VH,bY8,SX6,Wz,mY8,WY8,XI],[[0,4],0,()=>wz8,[()=>sY8,0],()=>Az8,()=>xw1,()=>XM]],uZ5=[3,k6,dz5,0,[Ku6],[0]],mZ5=[3,k6,pz5,0,[VH,SY8,xY8,Ik,JY8,XI],[[0,4],1,0,0,0,()=>XM]],BZ5=[3,k6,Fz5,0,[CY8],[0]],gZ5=[3,k6,Xz5,0,[Yt],[0]],pZ5=[3,k6,Vz5,8,[w2,ID7,nP5],[[()=>dW5,0],0,()=>uk5]],FZ5=[3,k6,Ez5,0,[cM7],[()=>oN5]],QZ5=[3,k6,Nz5,0,[MY8,mM5,gX,mX,ww,eb6,Kt],[0,0,0,5,0,5,0]],UZ5=[3,k6,uz5,0,[gX,aK6,T0,Mw1,EM5,sb6,KP5,_w1],[0,0,5,0,0,0,0,0]],dZ5=[3,k6,Bz5,0,[QM5,UM5],[1,0]],cZ5=[3,k6,Rw5,0,[ww,T0,qR],[0,5,5]],lZ5=[3,k6,nz5,0,[m5,NG,eb6],[[0,1],[0,1],[5,{[hA]:KJ}]]],iZ5=[3,k6,rz5,0,[],[]],nZ5=[3,k6,oz5,0,[m5,WM7],[[0,1],[2,{[hA]:WM7}]]],rZ5=[3,k6,az5,0,[],[]],oZ5=[3,k6,tz5,0,[m5,sK6,eb6],[[0,1],[0,1],[5,{[hA]:KJ}]]],aZ5=[3,k6,ez5,0,[],[]],sZ5=[3,k6,Yw5,0,[oM7],[[0,1]]],tZ5=[3,k6,zw5,0,[],[]],eZ5=[3,k6,ww5,0,[Yt],[[0,1]]],Af5=[3,k6,_w5,0,[],[]],qf5=[3,k6,Ow5,0,[Ik],[0]],Kf5=[3,k6,Hw5,0,[],[]],Yf5=[3,k6,Jw5,0,[kX6,rb6],[[0,1],[0,{[hA]:rb6}]]],zf5=[3,k6,Mw5,0,[],[]],wf5=[3,k6,Xw5,0,[Yt],[[0,1]]],_f5=[3,k6,Pw5,0,[],[]],$f5=[3,k6,Gw5,0,[yD7],[[0,1]]],Of5=[3,k6,Zw5,0,[],[]],Hf5=[3,k6,Nw5,0,[yX6],[[0,1]]],jf5=[3,k6,kw5,0,[],[]],Jf5=[3,k6,Tw5,0,[],[]],Mf5=[3,k6,vw5,0,[],[]],Df5=[3,k6,xw5,0,[Ku6],[[0,1]]],Xf5=[3,k6,bw5,0,[],[]],Pf5=[3,k6,hw5,0,[IY8],[[0,1]]],Wf5=[3,k6,Cw5,0,[],[]],Gf5=[3,k6,Ew5,0,[yX6],[[0,1]]],Zf5=[3,k6,Lw5,0,[],[]],ff5=[3,k6,Iw5,0,[$D5,yP5,Wz,e05],[0,0,0,0]],Tf5=[3,k6,Aw5,0,[B05],[()=>aV5]],vf5=[3,k6,pw5,0,[Yt,eD5,JP5],[0,[()=>mW5,0],()=>XV5]],Vf5=[3,k6,Uw5,0,[w2,tM5],[[()=>bW5,0],()=>lk5]],Nf5=[3,k6,cw5,0,[r05,_D5,gX5],[0,[()=>Vf5,0],[()=>eN5,0]]],kf5=[3,k6,rw5,0,[hX5,bP5],[()=>Ef5,()=>Sf5]],Ef5=[3,k6,ew5,0,[kM5,fP5],[64,64]],dX7=[3,k6,_25,0,[cd],[0]],Lf5=[3,k6,$25,0,[qX5],[0]],yf5=[3,k6,O25,0,[KX7],[0]],Rf5=[3,k6,H25,0,[KX7],[0]],Sf5=[3,k6,J25,0,[TM5,kP5],[64,64]],hf5=[3,k6,M25,0,[BX,cv,ww,T0,uD7,VD5,uX5,QP5,PD5,BM5,UD5,wY8],[0,0,0,5,0,64,64,64,64,64,()=>kf5,0]],Cf5=[3,k6,Bw5,0,[m5],[[0,1]]],If5=[3,k6,gw5,0,[qu6],[[()=>_u6,16]]],xf5=[3,k6,W25,0,[P05,$05,fM5],[0,()=>IV5,[()=>eG5,0]]],bf5=[3,k6,D25,0,[sD7,ND7,BD7,zY8],[[()=>YP7,0],()=>iX7,()=>AP7,143]],uf5=[3,k6,X25,0,[gX,v05,VD7],[0,[()=>Kk5,0],[()=>bf5,0]]],mf5=[3,k6,f25,0,[yD5],[0]],MI=[3,k6,Z25,0,[kY8,eK6],[0,15]],Bf5=[3,k6,v25,0,[gX,Ik,aK6,aD7,Zw1,vw1,YX7,qD7,CD7,UD7],[0,0,0,0,64,64,2,64,64,()=>cX7]],cX7=[3,k6,V25,0,[ww],[0]],gf5=[3,k6,N25,0,[gX,Ik,aK6,aD7,Zw1,vw1,YX7,qD7,CD7,UD7],[0,0,0,0,64,64,2,64,64,()=>cX7]],pf5=[3,k6,o25,0,[sD7,ND7,BD7,zY8],[[()=>YP7,0],()=>iX7,()=>AP7,143]],Ff5=[3,k6,y25,0,[m5,NG],[[0,1],[0,1]]],Qf5=[3,k6,R25,0,[m5,w2,NG,_Y8,QM7,KJ],[0,[()=>wt,0],0,[()=>zz8,0],0,5]],Uf5=[3,k6,h25,0,[m5,NG],[[0,1],[0,1]]],df5=[3,k6,b25,0,[m5,NG,ww,HY8,HD7,zD7,wD7,mX,KJ],[0,0,0,0,[()=>IX7,0],0,[()=>CX7,0],5,5]],cf5=[3,k6,I25,0,[m5,NG,$M7],[[0,1],[0,1],[0,{[hA]:$M7}]]],lf5=[3,k6,x25,0,[m5,NG,SM5],[0,0,[()=>pk5,0]]],if5=[3,k6,B25,0,[m5,NG],[[0,1],[0,1]]],nf5=[3,k6,g25,0,[m5,T05],[0,[()=>BG5,0]]],rf5=[3,k6,p25,0,[m5],[[0,1]]],of5=[3,k6,F25,0,[m5,w2,DB,oD7,Wz,Dw1,gD7,mX,KJ],[0,[()=>wt,0],0,0,[()=>hX6,0],0,0,5,5]],af5=[3,k6,U25,0,[m5,sK6],[[0,1],[0,1]]],sf5=[3,k6,d25,0,[m5,XX7],[0,[()=>tY8,0]]],tf5=[3,k6,l25,0,[m5,NG,sK6],[[0,1],[0,1],[0,1]]],ef5=[3,k6,i25,0,[c05],[[()=>UX7,0]]],AT5=[3,k6,D_5,0,[oM7],[[0,1]]],qT5=[3,k6,X_5,0,[MY8,QD7,gX,mX,ww,Wz,Kt,eb6],[0,0,0,5,0,0,0,5]],KT5=[3,k6,P_5,0,[Yt],[[0,1]]],YT5=[3,k6,W_5,0,[gX,aK6,cv,BX,Mw1,sb6,yY8,ZY8,pY8,lY8,zt,WX7,EX7,T0,jY8,_w1,Kt],[0,0,0,0,0,0,0,128,[()=>qz8,0],()=>Kz8,()=>eY8,()=>_P7,()=>MP7,5,()=>_z8,0,0]],zT5=[3,k6,k_5,0,[dd],[[()=>Yu6,1]]],wT5=[3,k6,E_5,0,[cv,ww,BX,xD7,DI,lM7,uD7,wY8,DD7,ED7,zt,T0,qR,LD5],[0,0,0,[()=>bX7,0],0,0,0,0,[()=>XP7,0],[()=>PP7,0],()=>dX7,5,5,64]],_T5=[3,k6,R_5,0,[Ik],[[0,1]]],$T5=[3,k6,S_5,0,[Ik,$M5,XM5,jD5,IP5],[0,()=>iW5,0,0,0]],OT5=[3,k6,h_5,0,[Yt],[[0,1]]],HT5=[3,k6,C_5,0,[IX5],[()=>Bf5]],jT5=[3,k6,u_5,0,[kX6,rb6],[[0,1],[0,{[hA]:rb6}]]],JT5=[3,k6,m_5,0,[w2,Wz,tb6,GY8,DB,ww,Q05,dM5,EW5,_05,IM5,JM5,AD7,mX,KJ,D05,RD5,$Y8,OY8,gD7],[[()=>yw1,0],[()=>zu6,0],0,0,0,0,[()=>eT5,0],[()=>pT5,0],[()=>zv5,0],()=>oT5,[()=>UT5,0],()=>bT5,()=>aX7,5,5,[()=>Pk5,0],[()=>Ok5,0],[()=>EX6,0],[()=>EX6,0],0]],MT5=[3,k6,g_5,0,[Yt],[[0,1]]],DT5=[3,k6,p_5,0,[gX,aK6,cv,BX,LY8,T0,FD7,yY8,SD7,FM5],[0,0,0,0,()=>bw1,5,0,0,2,()=>dZ5]],XT5=[3,k6,Q_5,0,[yD7],[[0,1]]],PT5=[3,k6,U_5,0,[VY8,Wz,mX,KJ,vY8,SX6,RD7,ww,a_],[0,[()=>aY8,0],5,5,0,()=>JP7,0,0,0]],WT5=[3,k6,_$5,0,[yX6],[[0,1]]],GT5=[3,k6,$$5,0,[Tw1],[()=>Iw1]],ZT5=[3,k6,l_5,0,[BX],[[0,1]]],fT5=[3,k6,i_5,0,[BX,ww,T0,GX7,QY8,wX7,gY8,ZX7,UY8,Kt,jX7],[0,0,5,0,0,0,0,0,()=>XM,0,0]],TT5=[3,k6,n_5,0,[dd],[[0,1]]],vT5=[3,k6,r_5,0,[BX,cv,$P5,wP5,VH,DI,ww,$X7,Kt,T0,qR,RX6,Mw1,ZY8,pY8,lY8,zt,sb6,_P5,WX7,EX7,tK6,jY8],[0,0,0,0,0,0,0,()=>wP7,0,5,5,5,0,128,[()=>qz8,0],()=>Kz8,()=>eY8,0,0,()=>_P7,()=>MP7,()=>_t,()=>_z8]],VT5=[3,k6,s_5,0,[dd],[[0,1]]],NT5=[3,k6,t_5,0,[BX,cv,TY8,LD7,DI,LY8,ww,Kt,T0,qR,RX6,tK6,aD5],[0,0,0,0,0,()=>bw1,0,0,5,5,5,()=>_t,0]],kT5=[3,k6,e_5,0,[dd],[[0,1]]],ET5=[3,k6,A$5,0,[BX,cv,Ik,VH,DI,ww,lv,JX7,qR,RX6,fY8,zt,tK6,FY8,bD7],[0,0,0,0,0,0,[()=>QX7,0],5,5,5,()=>Oz8,()=>Hz8,()=>_t,1,5]],LT5=[3,k6,Y$5,0,[],[]],yT5=[3,k6,z$5,0,[pD7],[()=>KP7]],RT5=[3,k6,V$5,0,[Ku6],[[0,1]]],ST5=[3,k6,N$5,0,[bY8,mY8,Wz,mX,KJ,Ku6,SX6,WY8,ww,a_],[0,()=>Az8,[()=>sY8,0],5,5,0,()=>wz8,()=>xw1,0,0]],hT5=[3,k6,f$5,0,[IY8],[[0,1]]],CT5=[3,k6,T$5,0,[SY8,OD7,xY8,CY8,gX,_D7,TD7,ww,T0,qR,Kt,JY8,iM7],[1,1,0,0,0,0,0,0,5,5,0,0,5]],IT5=[3,k6,o$5,0,[],[]],xT5=[3,k6,a$5,0,[fD7],[21]],bT5=[3,k6,E25,0,[eD7,ab6],[64,1]],lX7=[3,k6,u25,0,[eD7,ab6],[64,1]],iX7=[3,k6,v_5,0,[tb6,rb6],[0,0]],uT5=[3,k6,a25,0,[a_,hD7,iD7,Zw1,vw1,ey,KR,AR,YR],[0,0,0,[()=>jw1,0],[()=>jw1,0],[()=>$w1,0],[()=>$w1,0],2,2]],mT5=[3,k6,t25,0,[a_,hD7,iD7,Zw1,vw1,ey,KR,AR,YR],[0,0,0,[()=>jw1,0],[()=>jw1,0],[()=>$w1,0],[()=>$w1,0],2,2]],BT5=[3,k6,A_5,0,[kw1],[[()=>mX7,0]]],gT5=[3,k6,q_5,0,[kw1],[[()=>mX7,0]]],pT5=[3,k6,G_5,0,[vD7,vX7],[[()=>zk5,0],[()=>BT5,0]]],nX7=[3,k6,Z_5,0,[ZD7,PX7],[[()=>wk5,0],[()=>gT5,0]]],FT5=[3,k6,w_5,0,[a_,TX7,LX6,PD7],[0,1,[()=>BX7,0],2]],QT5=[3,k6,__5,0,[a_,TX7,LX6,PD7],[0,1,[()=>BX7,0],2]],UT5=[3,k6,H_5,0,[vD7],[[()=>_k5,0]]],rX7=[3,k6,j_5,0,[ZD7],[[()=>$k5,0]]],oX7=[3,k6,f_5,0,[uD5],[0]],aX7=[3,k6,T_5,0,[mD5,bD5],[0,0]],dT5=[3,k6,O$5,0,[a_,ey,KR,AR,YR],[0,[()=>At,0],[()=>At,0],2,2]],cT5=[3,k6,H$5,0,[a_,ey,KR,AR,YR],[0,[()=>At,0],[()=>At,0],2,2]],lT5=[3,k6,X$5,0,[a_,LX6,ey,KR,AR,YR],[0,0,0,0,2,2]],iT5=[3,k6,P$5,0,[a_,LX6,ey,KR,AR,YR],[0,0,0,0,2,2]],nT5=[3,k6,k$5,0,[w2,Wz,tD7,LX6,ey,KR,AR,YR],[0,0,0,0,0,0,2,2]],rT5=[3,k6,E$5,0,[w2,Wz,tD7,LX6,ey,KR,AR,YR],[0,0,0,0,0,0,2,2]],oT5=[3,k6,S$5,0,[GP5,oP5],[()=>Jk5,()=>Dk5]],sX7=[3,k6,h$5,0,[WP5,BP5],[()=>Mk5,()=>Xk5]],aT5=[3,k6,R$5,0,[Gw1,GM5,ww,w2,Wz,DB,mX,KJ,AD7],[0,0,0,[()=>yw1,0],[()=>zu6,0],0,5,5,()=>aX7]],sT5=[3,k6,b$5,0,[w2,DY8,WD7,a_,ey,KR,AR,YR],[[()=>pX7,0],[()=>gX7,0],[()=>jP7,0],0,[()=>Ow1,0],[()=>Ow1,0],2,2]],tT5=[3,k6,m$5,0,[w2,DY8,WD7,a_,ey,KR,AR,YR],[[()=>pX7,0],[()=>gX7,0],[()=>jP7,0],0,[()=>Ow1,0],[()=>Ow1,0],2,2]],eT5=[3,k6,U$5,0,[a05,vX7],[[()=>Gk5,0],[()=>Av5,0]]],tX7=[3,k6,d$5,0,[y05,PX7],[[()=>Zk5,0],[()=>qv5,0]]],Av5=[3,k6,c$5,0,[kw1],[[()=>FX7,0]]],qv5=[3,k6,l$5,0,[kw1],[[()=>FX7,0]]],Kv5=[3,k6,s$5,0,[dY8,ey,KR,AR,YR],[0,[()=>At,0],[()=>At,0],2,2]],Yv5=[3,k6,e$5,0,[dY8,ey,KR,AR,YR],[0,[()=>At,0],[()=>At,0],2,2]],zv5=[3,k6,qO5,0,[VW5,iX5],[[()=>fk5,0],[()=>Hk5,0]]],eX7=[3,k6,KO5,0,[kW5,nX5],[[()=>Tk5,0],[()=>jk5,0]]],wv5=[3,k6,zO5,0,[QD5,rM7,$D7],[[()=>$v5,0],[()=>vk5,0],[()=>HP7,0]]],_v5=[3,k6,wO5,0,[w2,Wz,UP5],[[()=>uX7,0],[()=>uW5,0],0]],$v5=[3,k6,OO5,0,[ED5,ID7],[0,[()=>QW5,0]]],Ov5=[3,k6,jO5,0,[LX5,gX],[[()=>Ek5,0],0]],Hv5=[3,k6,DO5,0,[gX,aK6,T0,SD7,FD7],[0,0,5,2,0]],jv5=[3,k6,WO5,0,[gX],[0]],Jv5=[3,k6,fO5,0,[VY8,Wz,mX,KJ,vY8,SX6,RD7,ww,a_],[0,[()=>aY8,0],5,5,0,()=>JP7,0,0,0]],Mv5=[-3,k6,vO5,{[JB]:MX7,[MB]:500},[lv],[0]];sy.TypeRegistry.for(k6).registerError(Mv5,RM7);var Dv5=[3,k6,JO5,0,[wW5,oD5,dP5],[2,()=>ak5,[()=>AE5,0]]],AP7=[3,k6,LO5,0,[b05],[()=>tV5]],qP7=[3,k6,kO5,0,[GW5],[[()=>Pv5,0]]],Xv5=[3,k6,NO5,0,[mD7,gX,pP5,VD7,YP5],[0,0,[()=>qP7,0],[()=>pf5,0],()=>DV5]],Pv5=[3,k6,EO5,0,[sX5,HP5,ID5,lD5,gP5],[1,0,[()=>WP7,0],[()=>Ov5,0],[()=>NN5,0]]],Wv5=[3,k6,CH5,0,[jW5],[0]],Gv5=[3,k6,CO5,0,[m5,hK,oY],[[0,{[hA]:m5}],[0,{[hA]:hK}],[1,{[hA]:oY}]]],Zv5=[3,k6,IO5,0,[DM5,hK],[[()=>UN5,0],0]],fv5=[3,k6,SO5,0,[m5,hK,oY],[[0,1],[0,{[hA]:hK}],[1,{[hA]:oY}]]],Tv5=[3,k6,hO5,0,[MM5,hK],[()=>bN5,0]],vv5=[3,k6,bO5,0,[m5,hK,oY],[[0,1],[0,{[hA]:hK}],[1,{[hA]:oY}]]],Vv5=[3,k6,uO5,0,[L05,hK],[[()=>dN5,0],0]],Nv5=[3,k6,BO5,0,[m5,NG,hK,oY],[[0,1],[0,1],[0,{[hA]:hK}],[1,{[hA]:oY}]]],kv5=[3,k6,gO5,0,[n05,hK],[[()=>cN5,0],0]],Ev5=[3,k6,UO5,0,[XM7,DM7,VG,oY,hK,bX,uX,dv,ww1],[[5,{[hA]:XM7}],[5,{[hA]:DM7}],[0,{[hA]:VG}],[1,{[hA]:oY}],[0,{[hA]:hK}],[0,{[hA]:bX}],[0,{[hA]:uX}],[0,{[hA]:dv}],[0,{[hA]:ww1}]]],Lv5=[3,k6,dO5,0,[hK,xX5],[0,()=>aN5]],yv5=[3,k6,cO5,0,[Uv,Qv,VG,jM7,PM7,oY,hK,bX,uX,GM7,_w1],[[5,{[hA]:Uv}],[5,{[hA]:Qv}],[0,{[hA]:VG}],[0,{[hA]:jM7}],[0,{[hA]:PM7}],[1,{[hA]:oY}],[0,{[hA]:hK}],[0,{[hA]:bX}],[0,{[hA]:uX}],[2,{[hA]:GM7}],[0,{[hA]:_w1}]]],Rv5=[3,k6,lO5,0,[hK,RY8],[0,()=>sN5]],Sv5=[3,k6,nO5,0,[Qv,Uv,dv,_M7,VG,oY,hK,bX,uX],[[5,{[hA]:Qv}],[5,{[hA]:Uv}],[0,{[hA]:dv}],[0,{[hA]:_M7}],[0,{[hA]:VG}],[1,{[hA]:oY}],[0,{[hA]:hK}],[0,{[hA]:bX}],[0,{[hA]:uX}]]],hv5=[3,k6,rO5,0,[hK,jX5],[0,()=>qk5]],Cv5=[3,k6,sO5,0,[Ik,ZM7],[[0,1],[0,{[hA]:ZM7}]]],Iv5=[3,k6,tO5,0,[Ik,jP5],[0,()=>hk5]],xv5=[3,k6,eO5,0,[MM7,OM7,JM7,HM7],[[0,{[hA]:MM7}],[0,{[hA]:OM7}],[0,{[hA]:JM7}],[0,{[hA]:HM7}]]],bv5=[3,k6,AH5,0,[RY8],[()=>Yk5]],uv5=[3,k6,KH5,0,[kX6,oY,hK],[[0,{[hA]:kX6}],[1,{[hA]:oY}],[0,{[hA]:hK}]]],mv5=[3,k6,YH5,0,[xD5,hK],[[()=>Wk5,0],0]],Bv5=[3,k6,wH5,0,[Uv,Qv,VG,oY,hK,bX,uX],[[5,{[hA]:Uv}],[5,{[hA]:Qv}],[0,{[hA]:VG}],[1,{[hA]:oY}],[0,{[hA]:hK}],[0,{[hA]:bX}],[0,{[hA]:uX}]]],gv5=[3,k6,_H5,0,[hK,RY8],[0,()=>Vk5]],pv5=[3,k6,OH5,0,[oY,hK,I05],[[1,{[hA]:oY}],[0,{[hA]:hK}],[0,{[hA]:a_}]]],Fv5=[3,k6,HH5,0,[AX5,hK],[[()=>Nk5,0],0]],Qv5=[3,k6,NH5,0,[oY,hK,UX5],[[1,{[hA]:oY}],[0,{[hA]:hK}],[0,{[hA]:Au6}]]],Uv5=[3,k6,kH5,0,[BX5,hK],[()=>kk5,0]],dv5=[3,k6,JH5,0,[Qv,Uv,dv,fM7,TM7,p05,oY,hK,bX,uX],[[5,{[hA]:Qv}],[5,{[hA]:Uv}],[0,{[hA]:dv}],[0,{[hA]:fM7}],[0,{[hA]:TM7}],[0,{[hA]:OP5}],[1,{[hA]:oY}],[0,{[hA]:hK}],[0,{[hA]:bX}],[0,{[hA]:uX}]]],cv5=[3,k6,MH5,0,[hK,RX5],[0,()=>Lk5]],lv5=[3,k6,DH5,0,[Qv,Uv,dv,VG,oY,hK,bX,uX],[[5,{[hA]:Qv}],[5,{[hA]:Uv}],[0,{[hA]:dv}],[0,{[hA]:VG}],[1,{[hA]:oY}],[0,{[hA]:hK}],[0,{[hA]:bX}],[0,{[hA]:uX}]]],iv5=[3,k6,XH5,0,[hK,SX5],[0,()=>yk5]],nv5=[3,k6,GH5,0,[Qv,Uv,dv,VG,oY,hK,bX,uX],[[5,{[hA]:Qv}],[5,{[hA]:Uv}],[0,{[hA]:dv}],[0,{[hA]:VG}],[1,{[hA]:oY}],[0,{[hA]:hK}],[0,{[hA]:bX}],[0,{[hA]:uX}]]],rv5=[3,k6,ZH5,0,[hK,bX5],[0,()=>Rk5]],ov5=[3,k6,fH5,0,[vM7,VM7,dv,VG,oY,hK,bX,uX],[[5,{[hA]:vM7}],[5,{[hA]:VM7}],[0,{[hA]:dv}],[0,{[hA]:VG}],[1,{[hA]:oY}],[0,{[hA]:hK}],[0,{[hA]:bX}],[0,{[hA]:uX}]]],av5=[3,k6,TH5,0,[hK,nD5],[0,[()=>Sk5,0]]],sv5=[3,k6,SH5,0,[oY,hK,a_],[[1,{[hA]:oY}],[0,{[hA]:hK}],[0,{[hA]:a_}]]],tv5=[3,k6,hH5,0,[VP5,hK],[[()=>Ck5,0],0]],ev5=[3,k6,LH5,0,[Qv,Uv,dv,ww1,VG,oY,hK,bX,uX],[[5,{[hA]:Qv}],[5,{[hA]:Uv}],[0,{[hA]:dv}],[0,{[hA]:ww1}],[0,{[hA]:VG}],[1,{[hA]:oY}],[0,{[hA]:hK}],[0,{[hA]:bX}],[0,{[hA]:uX}]]],AV5=[3,k6,yH5,0,[hK,TP5],[0,()=>Ik5]],qV5=[3,k6,xH5,0,[uY8],[0]],KV5=[3,k6,bH5,0,[XI],[()=>XM]],KP7=[3,k6,pO5,0,[iM5,aP5,h05,cD5,JD5,XW5],[()=>KZ5,()=>zP7,2,2,2,2]],Iw1=[3,k6,tH5,0,[yX6,Au6,ww,HX7,mX,KJ,XY8,fD5,vD5],[0,0,0,0,5,5,()=>$z8,0,0]],YV5=[3,k6,eH5,0,[yX6,Au6,ww,HX7,mX,KJ],[0,0,0,0,5,5]],zV5=[3,k6,mH5,8,[kY8,a_,Wz],[0,0,0]],wV5=[3,k6,gH5,0,[j05,O05],[0,[()=>qE5,0]]],_V5=[3,k6,pH5,0,[BX,ww,T0,GX7,QY8,wX7,gY8,ZX7,UY8,Kt,jX7],[0,0,5,0,0,0,0,0,()=>XM,0,0]],$V5=[3,k6,FH5,0,[BX,Mw1,cv,ww,$X7,qR,T0,RX6,xM5,aM7,sb6],[0,0,0,0,()=>wP7,5,5,5,0,0,0]],OV5=[3,k6,iH5,0,[BX,cv,ww,qR,T0,RX6,LD7,TY8],[0,0,0,5,5,5,0,0]],HV5=[3,k6,nH5,0,[w05,cd,_X7],[0,0,0]],jV5=[3,k6,rH5,0,[cd,q05,_X7],[0,0,0]],JV5=[3,k6,oH5,0,[BX,cv,Ik,VH,DI,ww,lv,JX7,qR,RX6,fY8,zt,tK6,FY8,bD7],[0,0,0,0,0,0,[()=>QX7,0],5,5,5,()=>Oz8,()=>Hz8,()=>_t,1,5]],MV5=[3,k6,Kj5,0,[zP5,nD7,S05],[0,0,()=>sV5]],DV5=[3,k6,Yj5,0,[SP5],[()=>VV5]],eY8=[3,k6,zj5,0,[cd],[0]],XV5=[3,k6,_j5,0,[EX5],[0]],PV5=[3,k6,Gj5,0,[uP5],[()=>bk5]],WV5=[3,k6,Dj5,0,[bY8,mY8,Wz,mX,KJ,Ku6,SX6,WY8,ww,a_],[0,()=>Az8,[()=>sY8,0],5,5,0,()=>wz8,()=>xw1,0,0]],xw1=[3,k6,Pj5,0,[gX],[0]],YP7=[3,k6,Zj5,0,[U05],[[()=>cW5,0]]],GV5=[3,k6,jj5,0,[xY8,CY8,gX,_D7,TD7,SY8,OD7,ww,JY8,iM7,T0,qR],[0,0,0,0,0,1,1,0,0,5,5,5]],ZV5=[3,k6,Oj5,0,[pD7],[()=>KP7]],fV5=[3,k6,Hj5,0,[],[]],TV5=[3,k6,Tj5,0,[fD7],[21]],vV5=[3,k6,vj5,0,[],[]],VV5=[3,k6,Vj5,0,[a_],[0]],NV5=[3,k6,Uj5,0,[DY8,eK6],[0,()=>ek5]],kV5=[3,k6,Bj5,0,[MD5,Au6],[[0,1],0]],EV5=[3,k6,gj5,0,[Tw1],[()=>Iw1]],LV5=[3,k6,Ij5,0,[PY8,hY8],[[()=>Jw1,0],[()=>Jw1,0]]],yV5=[-3,k6,Cj5,{[JB]:qt,[MB]:400},[lv],[0]];sy.TypeRegistry.for(k6).registerError(yV5,uM7);var RV5=[-3,k6,Fj5,{[JB]:qt,[MB]:404},[lv],[0]];sy.TypeRegistry.for(k6).registerError(RV5,SM7);var SV5=[3,k6,Nj5,0,[a_,JX5,TD5],[0,[()=>Xv5,0],[()=>uf5,0]]],hV5=[3,k6,Ej5,0,[mD7,DX5],[0,[()=>qP7,0]]],Az8=[3,k6,Rj5,0,[iP5],[1]],zP7=[3,k6,aj5,0,[LM5,PX5],[0,0]],CV5=[3,k6,tj5,0,[cd],[0]],IV5=[3,k6,HJ5,0,[JW5],[0]],xV5=[3,k6,wJ5,0,[iD5,KX5,ZD5,XX5,vW5],[1,0,0,0,()=>_t]],bV5=[-3,k6,jJ5,{[JB]:qt,[MB]:400},[lv],[0]];sy.TypeRegistry.for(k6).registerError(bV5,xM7);var uV5=[-3,k6,MJ5,{[JB]:MX7,[MB]:503},[lv],[0]];sy.TypeRegistry.for(k6).registerError(uV5,mM7);var mV5=[3,k6,lj5,0,[m5,HY8,VH,sP5],[[0,1],[0,1],[0,{[FD5]:LW5,[YX5]:1}],[()=>TG5,16]]],BV5=[3,k6,ij5,0,[m5,NG],[0,0]],gV5=[3,k6,rj5,0,[m5,NG,E05,VH],[[0,1],[0,1],64,[0,4]]],pV5=[3,k6,oj5,0,[m5],[0]],wP7=[3,k6,sj5,0,[DW5,AD5,C05],[()=>WN5,()=>cZ5,()=>qN5]],FV5=[3,k6,AJ5,0,[dd],[[()=>Yu6,1]]],QV5=[3,k6,qJ5,0,[],[]],UV5=[3,k6,YJ5,0,[dd],[[0,1]]],dV5=[3,k6,zJ5,0,[],[]],cV5=[3,k6,$J5,0,[dd],[[0,1]]],lV5=[3,k6,OJ5,0,[],[]],iV5=[3,k6,JJ5,0,[lP5],[0]],nV5=[3,k6,DJ5,0,[kY8,eK6],[0,0]],rV5=[3,k6,EJ5,0,[uY8,XI],[0,()=>XM]],oV5=[3,k6,LJ5,0,[],[]],aV5=[3,k6,vJ5,0,[g05,pX5],[0,1]],sV5=[3,k6,XJ5,0,[AW5,TX5,W05,ZW5],[()=>PV5,()=>Wv5,()=>iV5,()=>TN5]],tV5=[3,k6,ZJ5,0,[o05,d05,cX5,X05],[1,1,1,64]],eV5=[-3,k6,GJ5,{[JB]:qt,[MB]:429},[lv],[0]];sy.TypeRegistry.for(k6).registerError(eV5,hM7);var AN5=[-3,k6,VJ5,{[JB]:qt,[MB]:400},[lv,cP5],[0,0]];sy.TypeRegistry.for(k6).registerError(AN5,bM7);var qz8=[3,k6,PJ5,0,[cd,rD5],[0,[()=>Dv5,0]]],qN5=[3,k6,WJ5,0,[ww,T0,qR],[0,5,5]],_P7=[3,k6,TJ5,0,[m05],[1]],KN5=[3,k6,iJ5,0,[uY8,u05],[0,64]],YN5=[3,k6,nJ5,0,[],[]],zN5=[3,k6,SJ5,0,[m5,NG,_Y8,NX5],[[0,1],[0,1],[()=>zz8,0],0]],wN5=[3,k6,hJ5,0,[m5,NG,QM7,KJ],[0,0,0,5]],_N5=[3,k6,CJ5,0,[m5,qu6,w2,Wz],[[0,1],[()=>_u6,0],[()=>wt,0],[()=>hX6,0]]],$N5=[3,k6,IJ5,0,[m5,w2,Dw1,KJ],[0,[()=>wt,0],0,5]],ON5=[3,k6,bJ5,0,[m5,sK6,Ww1,Vw1,eb6,Xw1,ab6,VH],[[0,1],[0,1],[()=>Ew1,0],[()=>Lw1,0],5,0,1,[0,4]]],HN5=[3,k6,uJ5,0,[m5,sK6],[0,0]],jN5=[3,k6,BJ5,0,[kX6,w2,Wz,fX7,sM7,RX7,OX7,nM7,FM7,eM7,$Y8,OY8,EY8],[[0,1],[()=>yw1,0],[()=>zu6,0],[()=>tX7,0],[()=>nX7,0],[()=>eX7,0],()=>sX7,[()=>rX7,0],()=>lX7,()=>oX7,[()=>EX6,0],[()=>EX6,0],0]],JN5=[3,k6,gJ5,0,[tb6,GY8,DB,KJ],[0,0,0,5]],MN5=[3,k6,FJ5,0,[yX6,XY8,VH],[[0,1],()=>$z8,[0,4]]],DN5=[3,k6,QJ5,0,[Tw1],[()=>Iw1]],XN5=[3,k6,dJ5,0,[IY8,qD5,eM5],[[0,1],0,0]],PN5=[3,k6,cJ5,0,[],[]],Kz8=[3,k6,sJ5,0,[fW5],[()=>mk5]],WN5=[3,k6,aJ5,0,[ww,T0,qR],[0,5,5]],GN5=[-3,k6,tJ5,{[JB]:qt,[MB]:400},[lv],[0]];sy.TypeRegistry.for(k6).registerError(GN5,CM7);var ZN5=[3,k6,rJ5,0,[cd],[0]],fN5=[3,k6,eJ5,0,[PW5],[1]],TN5=[3,k6,zM5,0,[OM5],[0]],vN5=[3,k6,qM5,0,[yX5,tX5,CX5],[()=>VN5,1,[()=>wV5,0]]],VN5=[3,k6,KM5,0,[gX,zY8],[0,143]],NN5=[3,k6,YM5,0,[a_,yM5],[0,[()=>vN5,0]]],_t=[3,k6,oJ5,0,[Y05,K05],[64,64]],kN5=[-3,DX7,"BedrockServiceException",0,[],[]];sy.TypeRegistry.for(DX7).registerError(kN5,ty);var EN5=[1,k6,j55,0,[()=>Bk5,0]],LN5=[1,k6,D55,0,[()=>Hw1,0]],yN5=[1,k6,P55,0,[()=>gk5,0]],NM7=[1,k6,f55,0,[()=>aW5,0]],Yz8=[1,k6,N55,0,()=>eW5],RN5=[1,k6,S55,0,[()=>wu6,0]],SN5=[1,k6,C55,0,[()=>YG5,0]],ob6=[1,k6,u55,0,[()=>wG5,0]],zz8=[1,k6,F55,0,[()=>DP7,0]],hN5=[1,k6,q95,0,[()=>PG5,0]],CN5=[1,k6,w95,0,[()=>WG5,0]],IN5=[1,k6,$95,0,()=>GG5],xN5=[1,k6,H95,0,[()=>ZG5,0]],bN5=[1,k6,D95,0,()=>vG5],uN5=[1,k6,v95,0,[()=>Sw1,0]],mN5=[1,k6,R95,0,[()=>hw1,0]],BN5=[1,k6,C95,0,[()=>jB,0]],$P7=[1,k6,b95,0,[()=>NG5,0]],gN5=[1,k6,m95,0,[()=>kG5,0]],pN5=[1,k6,Q95,0,[()=>Cw1,0]],OP7=[1,k6,c95,0,[()=>oK6,0]],FN5=[1,k6,k95,0,[()=>IG5,0]],QN5=[1,k6,n95,0,[()=>xG5,0]],UN5=[1,k6,YY5,0,[()=>gG5,0]],dN5=[1,k6,wY5,0,[()=>tY8,0]],cN5=[1,k6,$Y5,0,[()=>UX7,0]],lN5=[1,k6,JY5,0,[()=>dk5,0]],iN5=[1,k6,LY5,0,[()=>rG5,0]],nN5=[1,k6,RY5,0,[()=>oG5,0]],rN5=[1,k6,IY5,0,()=>tG5],oN5=[1,k6,Pz5,0,()=>gZ5],aN5=[1,k6,kz5,0,()=>QZ5],sN5=[1,k6,mz5,0,()=>UZ5],HP7=[1,k6,lw5,0,[()=>Nf5,0]],tN5=[1,k6,sw5,0,[()=>Yu6,0]],eN5=[1,k6,w25,0,[()=>uX7,0]],Ak5=[1,k6,tw5,0,[()=>ik5,0]],qk5=[1,k6,P25,0,()=>hf5],Kk5=[1,k6,G25,0,[()=>xf5,0]],kM7=[1,k6,T25,8,()=>mf5],Yk5=[1,k6,k25,0,()=>gf5],zk5=[1,k6,Y_5,0,[()=>uT5,0]],wk5=[1,k6,e25,0,[()=>mT5,0]],_k5=[1,k6,O_5,0,[()=>FT5,0]],$k5=[1,k6,$_5,0,[()=>QT5,0]],Ok5=[1,k6,x_5,0,[()=>BW5,0]],Hk5=[1,k6,j$5,0,[()=>dT5,0]],jk5=[1,k6,J$5,0,[()=>cT5,0]],jw1=[1,k6,M$5,0,[()=>gW5,0]],Jk5=[1,k6,G$5,0,()=>lT5],Mk5=[1,k6,W$5,0,()=>iT5],Dk5=[1,k6,y$5,0,()=>nT5],Xk5=[1,k6,L$5,0,()=>rT5],Pk5=[1,k6,I$5,0,[()=>pW5,0]],Wk5=[1,k6,x$5,0,[()=>aT5,0]],jP7=[1,k6,F$5,0,[()=>FW5,0]],Gk5=[1,k6,n$5,0,[()=>sT5,0]],Zk5=[1,k6,B$5,0,[()=>tT5,0]],fk5=[1,k6,YO5,0,[()=>Kv5,0]],Tk5=[1,k6,AO5,0,[()=>Yv5,0]],vk5=[1,k6,_O5,0,[()=>_v5,0]],Vk5=[1,k6,XO5,0,()=>Hv5],JP7=[1,k6,ZO5,0,()=>jv5],Nk5=[1,k6,TO5,0,[()=>Jv5,0]],kk5=[1,k6,Aj5,0,()=>YV5],Ek5=[1,k6,BH5,0,[()=>zV5,0]],Lk5=[1,k6,QH5,0,()=>_V5],yk5=[1,k6,UH5,0,()=>$V5],Rk5=[1,k6,aH5,0,()=>OV5],Sk5=[1,k6,sH5,0,[()=>JV5,0]],hk5=[1,k6,wj5,0,()=>MV5],Ck5=[1,k6,Xj5,0,[()=>WV5,0]],wz8=[1,k6,Wj5,0,()=>xw1],Ik5=[1,k6,Jj5,0,()=>GV5],xk5=[1,k6,Lj5,0,[()=>tk5,0]],bk5=[1,k6,yj5,0,()=>ff5],uk5=[1,k6,Qj5,0,()=>NV5],EM7=[1,k6,bj5,0,[()=>LV5,0]],LM7=[1,k6,hj5,0,[()=>WP7,0]],XM=[1,k6,fJ5,0,()=>nV5],MP7=[1,k6,AM5,0,()=>fN5],mk5=[1,k6,wM5,0,()=>ZN5],Jw1=[2,k6,uj5,8,0,0],Bk5=[3,k6,M55,0,[uM5],[[()=>pZ5,0]]],gk5=[3,k6,X55,0,[TW5,$X5,f05,wX5,N05,R05,eX5],[[()=>zG5,0],[()=>sW5,0],[()=>AG5,0],[()=>oW5,0],[()=>KG5,0],()=>qG5,()=>tW5]],DP7=[3,k6,B55,0,[UM7,NX7,JD7,dM7,kX7,MD7,pM7,VX7,jD7,jM5,KW5,YW5,dD5],[[()=>HG5,0],[()=>dG5,0],[()=>yG5,0],[()=>MG5,0],[()=>iG5,0],[()=>hG5,0],[()=>_G5,0],[()=>QG5,0],()=>EG5,[()=>$G5,0],[()=>pG5,0],[()=>FG5,0],[()=>uG5,0]]],pk5=[3,k6,K95,0,[qu6,RP5,vM5,kD7],[[()=>_u6,0],[()=>VG5,0],[()=>XG5,0],[()=>bG5,0]]],Fk5=[3,k6,z95,0,[LP5,oX5],[()=>mG5,[()=>Uk5,0]]],Qk5=[3,k6,P95,0,[XP5,DP5,MP5],[[()=>Cw1,0],[()=>hw1,0],[()=>Sw1,0]]],Uk5=[3,k6,a95,0,[UM7,NX7,JD7,dM7,kX7,MD7,pM7,VX7,jD7],[[()=>jG5,0],[()=>cG5,0],[()=>RG5,0],[()=>DG5,0],[()=>nG5,0],[()=>CG5,0],[()=>OG5,0],[()=>UG5,0],()=>LG5]],dk5=[3,k6,jY5,0,[WM5,OW5,zD5],[[()=>JG5,0],[()=>lG5,0],()=>SG5]],ck5=[3,k6,vY5,0,[HD5,vP5],[[()=>xN5,0],[()=>fG5,0]]],_z8=[3,k6,lY5,0,[sM5],[()=>Tf5]],$z8=[3,k6,Fw5,0,[H05],[()=>xV5]],XP7=[3,k6,Qw5,0,[ZM5,pD5],[[()=>nW5,0],[()=>wv5,0]]],lk5=[3,k6,dw5,0,[cd],[0]],PP7=[3,k6,nw5,0,[SX6,mP5],[[()=>Ak5,0],[()=>xk5,0]]],ik5=[3,k6,A25,0,[VM5,ZP5],[[()=>vf5,0],()=>Lf5]],nk5=[3,k6,j25,0,[rP5,CP5],[()=>Rf5,()=>yf5]],rk5=[3,k6,q25,0,[cM7],[()=>rN5]],ok5=[3,k6,GO5,0,[hM5],[0]],ak5=[3,k6,MO5,0,[cd],[0]],sk5=[3,k6,VO5,0,[FP5,hP5],[[()=>hV5,0],[()=>SV5,0]]],bw1=[3,k6,dH5,0,[eP5],[()=>CV5]],Oz8=[3,k6,cH5,0,[z05],[()=>HV5]],Hz8=[3,k6,lH5,0,[J05],[()=>jV5]],tk5=[3,k6,kj5,0,[MX5,NP5],[[()=>sk5,0],()=>nk5]],ek5=[3,k6,dj5,0,[G05,CD5],[0,1]],AE5=[3,k6,xj5,0,[PY8,hY8,BM7,lD7],[[()=>Jw1,0],[()=>Jw1,0],[()=>EM7,0],[()=>EM7,0]]],qE5=[3,k6,pj5,0,[hD5,SD5],[[()=>kM7,0],[()=>kM7,0]]],WP7=[3,k6,Sj5,8,[PY8,hY8,BD5,gD5,VX5,vX5,_X5,aX5,Z05,GX5,tP5,BM7,lD7],[()=>MI,()=>MI,()=>MI,()=>MI,()=>MI,()=>MI,()=>MI,()=>MI,()=>MI,()=>MI,()=>MI,[()=>LM7,0],[()=>LM7,0]]],KE5=[9,k6,kY5,{[O7]:["POST","/evaluation-jobs/batch-delete",202]},()=>aG5,()=>sG5],YE5=[9,k6,bY5,{[O7]:["POST","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/cancel",202]},()=>AZ5,()=>qZ5],zE5=[9,k6,xY5,{[O7]:["POST","/automated-reasoning-policies",200]},()=>zZ5,()=>wZ5],wE5=[9,k6,pY5,{[O7]:["POST","/automated-reasoning-policies/{policyArn}/test-cases",200]},()=>_Z5,()=>$Z5],_E5=[9,k6,UY5,{[O7]:["POST","/automated-reasoning-policies/{policyArn}/versions",200]},()=>OZ5,()=>HZ5],$E5=[9,k6,iY5,{[O7]:["POST","/custom-models/create-custom-model",202]},()=>MZ5,()=>DZ5],OE5=[9,k6,nY5,{[O7]:["POST","/model-customization/custom-model-deployments",202]},()=>jZ5,()=>JZ5],HE5=[9,k6,eY5,{[O7]:["POST","/evaluation-jobs",202]},()=>XZ5,()=>PZ5],jE5=[9,k6,Kz5,{[O7]:["POST","/create-foundation-model-agreement",202]},()=>WZ5,()=>GZ5],JE5=[9,k6,wz5,{[O7]:["POST","/guardrails",202]},()=>ZZ5,()=>fZ5],ME5=[9,k6,Oz5,{[O7]:["POST","/guardrails/{guardrailIdentifier}",202]},()=>TZ5,()=>vZ5],DE5=[9,k6,Jz5,{[O7]:["POST","/inference-profiles",201]},()=>VZ5,()=>NZ5],XE5=[9,k6,Iz5,{[O7]:["POST","/marketplace-model/endpoints",200]},()=>kZ5,()=>EZ5],PE5=[9,k6,Wz5,{[O7]:["POST","/model-copy-jobs",201]},()=>LZ5,()=>yZ5],WE5=[9,k6,vz5,{[O7]:["POST","/model-customization-jobs",201]},()=>RZ5,()=>SZ5],GE5=[9,k6,Lz5,{[O7]:["POST","/model-import-jobs",201]},()=>hZ5,()=>CZ5],ZE5=[9,k6,Cz5,{[O7]:["POST","/model-invocation-job",200]},()=>IZ5,()=>xZ5],fE5=[9,k6,Qz5,{[O7]:["POST","/prompt-routers",200]},()=>bZ5,()=>uZ5],TE5=[9,k6,gz5,{[O7]:["POST","/provisioned-model-throughput",201]},()=>mZ5,()=>BZ5],vE5=[9,k6,lz5,{[O7]:["DELETE","/automated-reasoning-policies/{policyArn}",202]},()=>nZ5,()=>rZ5],VE5=[9,k6,iz5,{[O7]:["DELETE","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}",202]},()=>lZ5,()=>iZ5],NE5=[9,k6,sz5,{[O7]:["DELETE","/automated-reasoning-policies/{policyArn}/test-cases/{testCaseId}",202]},()=>oZ5,()=>aZ5],kE5=[9,k6,qw5,{[O7]:["DELETE","/custom-models/{modelIdentifier}",200]},()=>eZ5,()=>Af5],EE5=[9,k6,Kw5,{[O7]:["DELETE","/model-customization/custom-model-deployments/{customModelDeploymentIdentifier}",200]},()=>sZ5,()=>tZ5],LE5=[9,k6,$w5,{[O7]:["POST","/delete-foundation-model-agreement",202]},()=>qf5,()=>Kf5],yE5=[9,k6,jw5,{[O7]:["DELETE","/guardrails/{guardrailIdentifier}",202]},()=>Yf5,()=>zf5],RE5=[9,k6,Dw5,{[O7]:["DELETE","/imported-models/{modelIdentifier}",200]},()=>wf5,()=>_f5],SE5=[9,k6,Ww5,{[O7]:["DELETE","/inference-profiles/{inferenceProfileIdentifier}",200]},()=>$f5,()=>Of5],hE5=[9,k6,Vw5,{[O7]:["DELETE","/marketplace-model/endpoints/{endpointArn}",200]},()=>Hf5,()=>jf5],CE5=[9,k6,fw5,{[O7]:["DELETE","/logging/modelinvocations",200]},()=>Jf5,()=>Mf5],IE5=[9,k6,uw5,{[O7]:["DELETE","/prompt-routers/{promptRouterArn}",200]},()=>Df5,()=>Xf5],xE5=[9,k6,Sw5,{[O7]:["DELETE","/provisioned-model-throughput/{provisionedModelId}",200]},()=>Pf5,()=>Wf5],bE5=[9,k6,yw5,{[O7]:["DELETE","/marketplace-model/endpoints/{endpointArn}/registration",200]},()=>Gf5,()=>Zf5],uE5=[9,k6,mw5,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/export",200]},()=>Cf5,()=>If5],mE5=[9,k6,n25,{[O7]:["GET","/automated-reasoning-policies/{policyArn}",200]},()=>rf5,()=>of5],BE5=[9,k6,L25,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/annotations",200]},()=>Ff5,()=>Qf5],gE5=[9,k6,S25,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}",200]},()=>Uf5,()=>df5],pE5=[9,k6,C25,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/result-assets",200]},()=>cf5,()=>lf5],FE5=[9,k6,m25,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/scenarios",200]},()=>if5,()=>nf5],QE5=[9,k6,Q25,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/test-cases/{testCaseId}",200]},()=>af5,()=>sf5],UE5=[9,k6,c25,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/test-cases/{testCaseId}/test-results",200]},()=>tf5,()=>ef5],dE5=[9,k6,J_5,{[O7]:["GET","/custom-models/{modelIdentifier}",200]},()=>KT5,()=>YT5],cE5=[9,k6,M_5,{[O7]:["GET","/model-customization/custom-model-deployments/{customModelDeploymentIdentifier}",200]},()=>AT5,()=>qT5],lE5=[9,k6,N_5,{[O7]:["GET","/evaluation-jobs/{jobIdentifier}",200]},()=>zT5,()=>wT5],iE5=[9,k6,L_5,{[O7]:["GET","/foundation-models/{modelIdentifier}",200]},()=>OT5,()=>HT5],nE5=[9,k6,y_5,{[O7]:["GET","/foundation-model-availability/{modelId}",200]},()=>_T5,()=>$T5],rE5=[9,k6,b_5,{[O7]:["GET","/guardrails/{guardrailIdentifier}",200]},()=>jT5,()=>JT5],oE5=[9,k6,B_5,{[O7]:["GET","/imported-models/{modelIdentifier}",200]},()=>MT5,()=>DT5],aE5=[9,k6,F_5,{[O7]:["GET","/inference-profiles/{inferenceProfileIdentifier}",200]},()=>XT5,()=>PT5],sE5=[9,k6,w$5,{[O7]:["GET","/marketplace-model/endpoints/{endpointArn}",200]},()=>WT5,()=>GT5],tE5=[9,k6,c_5,{[O7]:["GET","/model-copy-jobs/{jobArn}",200]},()=>ZT5,()=>fT5],eE5=[9,k6,o_5,{[O7]:["GET","/model-customization-jobs/{jobIdentifier}",200]},()=>TT5,()=>vT5],AL5=[9,k6,a_5,{[O7]:["GET","/model-import-jobs/{jobIdentifier}",200]},()=>VT5,()=>NT5],qL5=[9,k6,q$5,{[O7]:["GET","/model-invocation-job/{jobIdentifier}",200]},()=>kT5,()=>ET5],KL5=[9,k6,K$5,{[O7]:["GET","/logging/modelinvocations",200]},()=>LT5,()=>yT5],YL5=[9,k6,v$5,{[O7]:["GET","/prompt-routers/{promptRouterArn}",200]},()=>RT5,()=>ST5],zL5=[9,k6,Z$5,{[O7]:["GET","/provisioned-model-throughput/{provisionedModelId}",200]},()=>hT5,()=>CT5],wL5=[9,k6,r$5,{[O7]:["GET","/use-case-for-model-access",200]},()=>IT5,()=>xT5],_L5=[9,k6,yO5,{[O7]:["GET","/automated-reasoning-policies",200]},()=>Gv5,()=>Zv5],$L5=[9,k6,RO5,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/build-workflows",200]},()=>fv5,()=>Tv5],OL5=[9,k6,xO5,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/test-cases",200]},()=>vv5,()=>Vv5],HL5=[9,k6,mO5,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/test-results",200]},()=>Nv5,()=>kv5],jL5=[9,k6,QO5,{[O7]:["GET","/model-customization/custom-model-deployments",200]},()=>Ev5,()=>Lv5],JL5=[9,k6,FO5,{[O7]:["GET","/custom-models",200]},()=>yv5,()=>Rv5],ML5=[9,k6,iO5,{[O7]:["GET","/evaluation-jobs",200]},()=>Sv5,()=>hv5],DL5=[9,k6,aO5,{[O7]:["GET","/list-foundation-model-agreement-offers/{modelId}",200]},()=>Cv5,()=>Iv5],XL5=[9,k6,oO5,{[O7]:["GET","/foundation-models",200]},()=>xv5,()=>bv5],PL5=[9,k6,qH5,{[O7]:["GET","/guardrails",200]},()=>uv5,()=>mv5],WL5=[9,k6,zH5,{[O7]:["GET","/imported-models",200]},()=>Bv5,()=>gv5],GL5=[9,k6,$H5,{[O7]:["GET","/inference-profiles",200]},()=>pv5,()=>Fv5],ZL5=[9,k6,VH5,{[O7]:["GET","/marketplace-model/endpoints",200]},()=>Qv5,()=>Uv5],fL5=[9,k6,jH5,{[O7]:["GET","/model-copy-jobs",200]},()=>dv5,()=>cv5],TL5=[9,k6,PH5,{[O7]:["GET","/model-customization-jobs",200]},()=>lv5,()=>iv5],vL5=[9,k6,WH5,{[O7]:["GET","/model-import-jobs",200]},()=>nv5,()=>rv5],VL5=[9,k6,vH5,{[O7]:["GET","/model-invocation-jobs",200]},()=>ov5,()=>av5],NL5=[9,k6,RH5,{[O7]:["GET","/prompt-routers",200]},()=>sv5,()=>tv5],kL5=[9,k6,EH5,{[O7]:["GET","/provisioned-model-throughputs",200]},()=>ev5,()=>AV5],EL5=[9,k6,IH5,{[O7]:["POST","/listTagsForResource",200]},()=>qV5,()=>KV5],LL5=[9,k6,$j5,{[O7]:["PUT","/logging/modelinvocations",200]},()=>ZV5,()=>fV5],yL5=[9,k6,fj5,{[O7]:["POST","/use-case-for-model-access",201]},()=>TV5,()=>vV5],RL5=[9,k6,mj5,{[O7]:["POST","/marketplace-model/endpoints/{endpointIdentifier}/registration",200]},()=>kV5,()=>EV5],SL5=[9,k6,cj5,{[O7]:["POST","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowType}/start",200]},()=>mV5,()=>BV5],hL5=[9,k6,nj5,{[O7]:["POST","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/test-workflows",200]},()=>gV5,()=>pV5],CL5=[9,k6,ej5,{[O7]:["POST","/evaluation-job/{jobIdentifier}/stop",200]},()=>FV5,()=>QV5],IL5=[9,k6,KJ5,{[O7]:["POST","/model-customization-jobs/{jobIdentifier}/stop",200]},()=>UV5,()=>dV5],xL5=[9,k6,_J5,{[O7]:["POST","/model-invocation-job/{jobIdentifier}/stop",200]},()=>cV5,()=>lV5],bL5=[9,k6,kJ5,{[O7]:["POST","/tagResource",200]},()=>rV5,()=>oV5],uL5=[9,k6,lJ5,{[O7]:["POST","/untagResource",200]},()=>KN5,()=>YN5],mL5=[9,k6,yJ5,{[O7]:["PATCH","/automated-reasoning-policies/{policyArn}",200]},()=>_N5,()=>$N5],BL5=[9,k6,RJ5,{[O7]:["PATCH","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/annotations",200]},()=>zN5,()=>wN5],gL5=[9,k6,xJ5,{[O7]:["PATCH","/automated-reasoning-policies/{policyArn}/test-cases/{testCaseId}",200]},()=>ON5,()=>HN5],pL5=[9,k6,mJ5,{[O7]:["PUT","/guardrails/{guardrailIdentifier}",202]},()=>jN5,()=>JN5],FL5=[9,k6,pJ5,{[O7]:["PATCH","/marketplace-model/endpoints/{endpointArn}",200]},()=>MN5,()=>DN5],QL5=[9,k6,UJ5,{[O7]:["PATCH","/provisioned-model-throughput/{provisionedModelId}",200]},()=>XN5,()=>PN5];class jz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","BatchDeleteEvaluationJob",{}).n("BedrockClient","BatchDeleteEvaluationJobCommand").sc(KE5).build(){}class Jz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CancelAutomatedReasoningPolicyBuildWorkflow",{}).n("BedrockClient","CancelAutomatedReasoningPolicyBuildWorkflowCommand").sc(YE5).build(){}class Mz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateAutomatedReasoningPolicy",{}).n("BedrockClient","CreateAutomatedReasoningPolicyCommand").sc(zE5).build(){}class Dz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateAutomatedReasoningPolicyTestCase",{}).n("BedrockClient","CreateAutomatedReasoningPolicyTestCaseCommand").sc(wE5).build(){}class Xz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateAutomatedReasoningPolicyVersion",{}).n("BedrockClient","CreateAutomatedReasoningPolicyVersionCommand").sc(_E5).build(){}class Pz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateCustomModel",{}).n("BedrockClient","CreateCustomModelCommand").sc($E5).build(){}class Wz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateCustomModelDeployment",{}).n("BedrockClient","CreateCustomModelDeploymentCommand").sc(OE5).build(){}class Gz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateEvaluationJob",{}).n("BedrockClient","CreateEvaluationJobCommand").sc(HE5).build(){}class Zz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateFoundationModelAgreement",{}).n("BedrockClient","CreateFoundationModelAgreementCommand").sc(jE5).build(){}class fz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateGuardrail",{}).n("BedrockClient","CreateGuardrailCommand").sc(JE5).build(){}class Tz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateGuardrailVersion",{}).n("BedrockClient","CreateGuardrailVersionCommand").sc(ME5).build(){}class vz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateInferenceProfile",{}).n("BedrockClient","CreateInferenceProfileCommand").sc(DE5).build(){}class Vz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateMarketplaceModelEndpoint",{}).n("BedrockClient","CreateMarketplaceModelEndpointCommand").sc(XE5).build(){}class Nz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateModelCopyJob",{}).n("BedrockClient","CreateModelCopyJobCommand").sc(PE5).build(){}class kz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateModelCustomizationJob",{}).n("BedrockClient","CreateModelCustomizationJobCommand").sc(WE5).build(){}class Ez8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateModelImportJob",{}).n("BedrockClient","CreateModelImportJobCommand").sc(GE5).build(){}class Lz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateModelInvocationJob",{}).n("BedrockClient","CreateModelInvocationJobCommand").sc(ZE5).build(){}class yz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreatePromptRouter",{}).n("BedrockClient","CreatePromptRouterCommand").sc(fE5).build(){}class Rz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateProvisionedModelThroughput",{}).n("BedrockClient","CreateProvisionedModelThroughputCommand").sc(TE5).build(){}class Sz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteAutomatedReasoningPolicyBuildWorkflow",{}).n("BedrockClient","DeleteAutomatedReasoningPolicyBuildWorkflowCommand").sc(VE5).build(){}class hz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteAutomatedReasoningPolicy",{}).n("BedrockClient","DeleteAutomatedReasoningPolicyCommand").sc(vE5).build(){}class Cz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteAutomatedReasoningPolicyTestCase",{}).n("BedrockClient","DeleteAutomatedReasoningPolicyTestCaseCommand").sc(NE5).build(){}class Iz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteCustomModel",{}).n("BedrockClient","DeleteCustomModelCommand").sc(kE5).build(){}class xz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteCustomModelDeployment",{}).n("BedrockClient","DeleteCustomModelDeploymentCommand").sc(EE5).build(){}class bz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteFoundationModelAgreement",{}).n("BedrockClient","DeleteFoundationModelAgreementCommand").sc(LE5).build(){}class uz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteGuardrail",{}).n("BedrockClient","DeleteGuardrailCommand").sc(yE5).build(){}class mz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteImportedModel",{}).n("BedrockClient","DeleteImportedModelCommand").sc(RE5).build(){}class Bz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteInferenceProfile",{}).n("BedrockClient","DeleteInferenceProfileCommand").sc(SE5).build(){}class gz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteMarketplaceModelEndpoint",{}).n("BedrockClient","DeleteMarketplaceModelEndpointCommand").sc(hE5).build(){}class pz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteModelInvocationLoggingConfiguration",{}).n("BedrockClient","DeleteModelInvocationLoggingConfigurationCommand").sc(CE5).build(){}class Fz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeletePromptRouter",{}).n("BedrockClient","DeletePromptRouterCommand").sc(IE5).build(){}class Qz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteProvisionedModelThroughput",{}).n("BedrockClient","DeleteProvisionedModelThroughputCommand").sc(xE5).build(){}class Uz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeregisterMarketplaceModelEndpoint",{}).n("BedrockClient","DeregisterMarketplaceModelEndpointCommand").sc(bE5).build(){}class dz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ExportAutomatedReasoningPolicyVersion",{}).n("BedrockClient","ExportAutomatedReasoningPolicyVersionCommand").sc(uE5).build(){}class cz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetAutomatedReasoningPolicyAnnotations",{}).n("BedrockClient","GetAutomatedReasoningPolicyAnnotationsCommand").sc(BE5).build(){}class lz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetAutomatedReasoningPolicyBuildWorkflow",{}).n("BedrockClient","GetAutomatedReasoningPolicyBuildWorkflowCommand").sc(gE5).build(){}class iz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetAutomatedReasoningPolicyBuildWorkflowResultAssets",{}).n("BedrockClient","GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand").sc(pE5).build(){}class nz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetAutomatedReasoningPolicy",{}).n("BedrockClient","GetAutomatedReasoningPolicyCommand").sc(mE5).build(){}class rz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetAutomatedReasoningPolicyNextScenario",{}).n("BedrockClient","GetAutomatedReasoningPolicyNextScenarioCommand").sc(FE5).build(){}class oz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetAutomatedReasoningPolicyTestCase",{}).n("BedrockClient","GetAutomatedReasoningPolicyTestCaseCommand").sc(QE5).build(){}class az8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetAutomatedReasoningPolicyTestResult",{}).n("BedrockClient","GetAutomatedReasoningPolicyTestResultCommand").sc(UE5).build(){}class sz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetCustomModel",{}).n("BedrockClient","GetCustomModelCommand").sc(dE5).build(){}class tz8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetCustomModelDeployment",{}).n("BedrockClient","GetCustomModelDeploymentCommand").sc(cE5).build(){}class ez8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetEvaluationJob",{}).n("BedrockClient","GetEvaluationJobCommand").sc(lE5).build(){}class Aw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetFoundationModelAvailability",{}).n("BedrockClient","GetFoundationModelAvailabilityCommand").sc(nE5).build(){}class qw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetFoundationModel",{}).n("BedrockClient","GetFoundationModelCommand").sc(iE5).build(){}class Kw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetGuardrail",{}).n("BedrockClient","GetGuardrailCommand").sc(rE5).build(){}class Yw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetImportedModel",{}).n("BedrockClient","GetImportedModelCommand").sc(oE5).build(){}class zw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetInferenceProfile",{}).n("BedrockClient","GetInferenceProfileCommand").sc(aE5).build(){}class ww8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetMarketplaceModelEndpoint",{}).n("BedrockClient","GetMarketplaceModelEndpointCommand").sc(sE5).build(){}class _w8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetModelCopyJob",{}).n("BedrockClient","GetModelCopyJobCommand").sc(tE5).build(){}class $w8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetModelCustomizationJob",{}).n("BedrockClient","GetModelCustomizationJobCommand").sc(eE5).build(){}class Ow8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetModelImportJob",{}).n("BedrockClient","GetModelImportJobCommand").sc(AL5).build(){}class Hw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetModelInvocationJob",{}).n("BedrockClient","GetModelInvocationJobCommand").sc(qL5).build(){}class jw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetModelInvocationLoggingConfiguration",{}).n("BedrockClient","GetModelInvocationLoggingConfigurationCommand").sc(KL5).build(){}class Jw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetPromptRouter",{}).n("BedrockClient","GetPromptRouterCommand").sc(YL5).build(){}class Mw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetProvisionedModelThroughput",{}).n("BedrockClient","GetProvisionedModelThroughputCommand").sc(zL5).build(){}class Dw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetUseCaseForModelAccess",{}).n("BedrockClient","GetUseCaseForModelAccessCommand").sc(wL5).build(){}class uw1 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListAutomatedReasoningPolicies",{}).n("BedrockClient","ListAutomatedReasoningPoliciesCommand").sc(_L5).build(){}class mw1 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListAutomatedReasoningPolicyBuildWorkflows",{}).n("BedrockClient","ListAutomatedReasoningPolicyBuildWorkflowsCommand").sc($L5).build(){}class Bw1 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListAutomatedReasoningPolicyTestCases",{}).n("BedrockClient","ListAutomatedReasoningPolicyTestCasesCommand").sc(OL5).build(){}class gw1 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListAutomatedReasoningPolicyTestResults",{}).n("BedrockClient","ListAutomatedReasoningPolicyTestResultsCommand").sc(HL5).build(){}class pw1 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListCustomModelDeployments",{}).n("BedrockClient","ListCustomModelDeploymentsCommand").sc(jL5).build(){}class Fw1 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListCustomModels",{}).n("BedrockClient","ListCustomModelsCommand").sc(JL5).build(){}class Qw1 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListEvaluationJobs",{}).n("BedrockClient","ListEvaluationJobsCommand").sc(ML5).build(){}class Xw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListFoundationModelAgreementOffers",{}).n("BedrockClient","ListFoundationModelAgreementOffersCommand").sc(DL5).build(){}class Pw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListFoundationModels",{}).n("BedrockClient","ListFoundationModelsCommand").sc(XL5).build(){}class Uw1 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListGuardrails",{}).n("BedrockClient","ListGuardrailsCommand").sc(PL5).build(){}class dw1 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListImportedModels",{}).n("BedrockClient","ListImportedModelsCommand").sc(WL5).build(){}class cw1 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListInferenceProfiles",{}).n("BedrockClient","ListInferenceProfilesCommand").sc(GL5).build(){}class lw1 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListMarketplaceModelEndpoints",{}).n("BedrockClient","ListMarketplaceModelEndpointsCommand").sc(ZL5).build(){}class iw1 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListModelCopyJobs",{}).n("BedrockClient","ListModelCopyJobsCommand").sc(fL5).build(){}class nw1 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListModelCustomizationJobs",{}).n("BedrockClient","ListModelCustomizationJobsCommand").sc(TL5).build(){}class rw1 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListModelImportJobs",{}).n("BedrockClient","ListModelImportJobsCommand").sc(vL5).build(){}class ow1 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListModelInvocationJobs",{}).n("BedrockClient","ListModelInvocationJobsCommand").sc(VL5).build(){}class aw1 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListPromptRouters",{}).n("BedrockClient","ListPromptRoutersCommand").sc(NL5).build(){}class sw1 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListProvisionedModelThroughputs",{}).n("BedrockClient","ListProvisionedModelThroughputsCommand").sc(kL5).build(){}class Ww8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListTagsForResource",{}).n("BedrockClient","ListTagsForResourceCommand").sc(EL5).build(){}class Gw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","PutModelInvocationLoggingConfiguration",{}).n("BedrockClient","PutModelInvocationLoggingConfigurationCommand").sc(LL5).build(){}class Zw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","PutUseCaseForModelAccess",{}).n("BedrockClient","PutUseCaseForModelAccessCommand").sc(yL5).build(){}class fw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","RegisterMarketplaceModelEndpoint",{}).n("BedrockClient","RegisterMarketplaceModelEndpointCommand").sc(RL5).build(){}class Tw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","StartAutomatedReasoningPolicyBuildWorkflow",{}).n("BedrockClient","StartAutomatedReasoningPolicyBuildWorkflowCommand").sc(SL5).build(){}class vw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","StartAutomatedReasoningPolicyTestWorkflow",{}).n("BedrockClient","StartAutomatedReasoningPolicyTestWorkflowCommand").sc(hL5).build(){}class Vw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","StopEvaluationJob",{}).n("BedrockClient","StopEvaluationJobCommand").sc(CL5).build(){}class Nw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","StopModelCustomizationJob",{}).n("BedrockClient","StopModelCustomizationJobCommand").sc(IL5).build(){}class kw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","StopModelInvocationJob",{}).n("BedrockClient","StopModelInvocationJobCommand").sc(xL5).build(){}class Ew8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","TagResource",{}).n("BedrockClient","TagResourceCommand").sc(bL5).build(){}class Lw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","UntagResource",{}).n("BedrockClient","UntagResourceCommand").sc(uL5).build(){}class yw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","UpdateAutomatedReasoningPolicyAnnotations",{}).n("BedrockClient","UpdateAutomatedReasoningPolicyAnnotationsCommand").sc(BL5).build(){}class Rw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","UpdateAutomatedReasoningPolicy",{}).n("BedrockClient","UpdateAutomatedReasoningPolicyCommand").sc(mL5).build(){}class Sw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","UpdateAutomatedReasoningPolicyTestCase",{}).n("BedrockClient","UpdateAutomatedReasoningPolicyTestCaseCommand").sc(gL5).build(){}class hw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","UpdateGuardrail",{}).n("BedrockClient","UpdateGuardrailCommand").sc(pL5).build(){}class Cw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","UpdateMarketplaceModelEndpoint",{}).n("BedrockClient","UpdateMarketplaceModelEndpointCommand").sc(FL5).build(){}class Iw8 extends iA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[z7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","UpdateProvisionedModelThroughput",{}).n("BedrockClient","UpdateProvisionedModelThroughputCommand").sc(QL5).build(){}var UL5={BatchDeleteEvaluationJobCommand:jz8,CancelAutomatedReasoningPolicyBuildWorkflowCommand:Jz8,CreateAutomatedReasoningPolicyCommand:Mz8,CreateAutomatedReasoningPolicyTestCaseCommand:Dz8,CreateAutomatedReasoningPolicyVersionCommand:Xz8,CreateCustomModelCommand:Pz8,CreateCustomModelDeploymentCommand:Wz8,CreateEvaluationJobCommand:Gz8,CreateFoundationModelAgreementCommand:Zz8,CreateGuardrailCommand:fz8,CreateGuardrailVersionCommand:Tz8,CreateInferenceProfileCommand:vz8,CreateMarketplaceModelEndpointCommand:Vz8,CreateModelCopyJobCommand:Nz8,CreateModelCustomizationJobCommand:kz8,CreateModelImportJobCommand:Ez8,CreateModelInvocationJobCommand:Lz8,CreatePromptRouterCommand:yz8,CreateProvisionedModelThroughputCommand:Rz8,DeleteAutomatedReasoningPolicyCommand:hz8,DeleteAutomatedReasoningPolicyBuildWorkflowCommand:Sz8,DeleteAutomatedReasoningPolicyTestCaseCommand:Cz8,DeleteCustomModelCommand:Iz8,DeleteCustomModelDeploymentCommand:xz8,DeleteFoundationModelAgreementCommand:bz8,DeleteGuardrailCommand:uz8,DeleteImportedModelCommand:mz8,DeleteInferenceProfileCommand:Bz8,DeleteMarketplaceModelEndpointCommand:gz8,DeleteModelInvocationLoggingConfigurationCommand:pz8,DeletePromptRouterCommand:Fz8,DeleteProvisionedModelThroughputCommand:Qz8,DeregisterMarketplaceModelEndpointCommand:Uz8,ExportAutomatedReasoningPolicyVersionCommand:dz8,GetAutomatedReasoningPolicyCommand:nz8,GetAutomatedReasoningPolicyAnnotationsCommand:cz8,GetAutomatedReasoningPolicyBuildWorkflowCommand:lz8,GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand:iz8,GetAutomatedReasoningPolicyNextScenarioCommand:rz8,GetAutomatedReasoningPolicyTestCaseCommand:oz8,GetAutomatedReasoningPolicyTestResultCommand:az8,GetCustomModelCommand:sz8,GetCustomModelDeploymentCommand:tz8,GetEvaluationJobCommand:ez8,GetFoundationModelCommand:qw8,GetFoundationModelAvailabilityCommand:Aw8,GetGuardrailCommand:Kw8,GetImportedModelCommand:Yw8,GetInferenceProfileCommand:zw8,GetMarketplaceModelEndpointCommand:ww8,GetModelCopyJobCommand:_w8,GetModelCustomizationJobCommand:$w8,GetModelImportJobCommand:Ow8,GetModelInvocationJobCommand:Hw8,GetModelInvocationLoggingConfigurationCommand:jw8,GetPromptRouterCommand:Jw8,GetProvisionedModelThroughputCommand:Mw8,GetUseCaseForModelAccessCommand:Dw8,ListAutomatedReasoningPoliciesCommand:uw1,ListAutomatedReasoningPolicyBuildWorkflowsCommand:mw1,ListAutomatedReasoningPolicyTestCasesCommand:Bw1,ListAutomatedReasoningPolicyTestResultsCommand:gw1,ListCustomModelDeploymentsCommand:pw1,ListCustomModelsCommand:Fw1,ListEvaluationJobsCommand:Qw1,ListFoundationModelAgreementOffersCommand:Xw8,ListFoundationModelsCommand:Pw8,ListGuardrailsCommand:Uw1,ListImportedModelsCommand:dw1,ListInferenceProfilesCommand:cw1,ListMarketplaceModelEndpointsCommand:lw1,ListModelCopyJobsCommand:iw1,ListModelCustomizationJobsCommand:nw1,ListModelImportJobsCommand:rw1,ListModelInvocationJobsCommand:ow1,ListPromptRoutersCommand:aw1,ListProvisionedModelThroughputsCommand:sw1,ListTagsForResourceCommand:Ww8,PutModelInvocationLoggingConfigurationCommand:Gw8,PutUseCaseForModelAccessCommand:Zw8,RegisterMarketplaceModelEndpointCommand:fw8,StartAutomatedReasoningPolicyBuildWorkflowCommand:Tw8,StartAutomatedReasoningPolicyTestWorkflowCommand:vw8,StopEvaluationJobCommand:Vw8,StopModelCustomizationJobCommand:Nw8,StopModelInvocationJobCommand:kw8,TagResourceCommand:Ew8,UntagResourceCommand:Lw8,UpdateAutomatedReasoningPolicyCommand:Rw8,UpdateAutomatedReasoningPolicyAnnotationsCommand:yw8,UpdateAutomatedReasoningPolicyTestCaseCommand:Sw8,UpdateGuardrailCommand:hw8,UpdateMarketplaceModelEndpointCommand:Cw8,UpdateProvisionedModelThroughputCommand:Iw8};class xw8 extends PM{}iA.createAggregatedClient(UL5,xw8);var dL5=DM.createPaginator(PM,uw1,"nextToken","nextToken","maxResults"),cL5=DM.createPaginator(PM,mw1,"nextToken","nextToken","maxResults"),lL5=DM.createPaginator(PM,Bw1,"nextToken","nextToken","maxResults"),iL5=DM.createPaginator(PM,gw1,"nextToken","nextToken","maxResults"),nL5=DM.createPaginator(PM,pw1,"nextToken","nextToken","maxResults"),rL5=DM.createPaginator(PM,Fw1,"nextToken","nextToken","maxResults"),oL5=DM.createPaginator(PM,Qw1,"nextToken","nextToken","maxResults"),aL5=DM.createPaginator(PM,Uw1,"nextToken","nextToken","maxResults"),sL5=DM.createPaginator(PM,dw1,"nextToken","nextToken","maxResults"),tL5=DM.createPaginator(PM,cw1,"nextToken","nextToken","maxResults"),eL5=DM.createPaginator(PM,lw1,"nextToken","nextToken","maxResults"),Ay5=DM.createPaginator(PM,iw1,"nextToken","nextToken","maxResults"),qy5=DM.createPaginator(PM,nw1,"nextToken","nextToken","maxResults"),Ky5=DM.createPaginator(PM,rw1,"nextToken","nextToken","maxResults"),Yy5=DM.createPaginator(PM,ow1,"nextToken","nextToken","maxResults"),zy5=DM.createPaginator(PM,aw1,"nextToken","nextToken","maxResults"),wy5=DM.createPaginator(PM,sw1,"nextToken","nextToken","maxResults"),_y5={AVAILABLE:"AVAILABLE",ERROR:"ERROR",NOT_AVAILABLE:"NOT_AVAILABLE",PENDING:"PENDING"},$y5={IMPOSSIBLE:"IMPOSSIBLE",INVALID:"INVALID",NO_TRANSLATION:"NO_TRANSLATION",SATISFIABLE:"SATISFIABLE",TOO_COMPLEX:"TOO_COMPLEX",TRANSLATION_AMBIGUOUS:"TRANSLATION_AMBIGUOUS",VALID:"VALID"},Oy5={IMPORT_POLICY:"IMPORT_POLICY",INGEST_CONTENT:"INGEST_CONTENT",REFINE_POLICY:"REFINE_POLICY"},Hy5={PDF:"pdf",TEXT:"txt"},jy5={BUILDING:"BUILDING",CANCELLED:"CANCELLED",CANCEL_REQUESTED:"CANCEL_REQUESTED",COMPLETED:"COMPLETED",FAILED:"FAILED",PREPROCESSING:"PREPROCESSING",SCHEDULED:"SCHEDULED",TESTING:"TESTING"},Jy5={BUILD_LOG:"BUILD_LOG",GENERATED_TEST_CASES:"GENERATED_TEST_CASES",POLICY_DEFINITION:"POLICY_DEFINITION",QUALITY_REPORT:"QUALITY_REPORT"},My5={ERROR:"ERROR",INFO:"INFO",WARNING:"WARNING"},Dy5={APPLIED:"APPLIED",FAILED:"FAILED"},Xy5={ALWAYS_FALSE:"ALWAYS_FALSE",ALWAYS_TRUE:"ALWAYS_TRUE"},Py5={FAILED:"FAILED",PASSED:"PASSED"},Wy5={COMPLETED:"COMPLETED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS",NOT_STARTED:"NOT_STARTED",SCHEDULED:"SCHEDULED"},Gy5={INCOMPATIBLE_ENDPOINT:"INCOMPATIBLE_ENDPOINT",REGISTERED:"REGISTERED"},Zy5={ACTIVE:"Active",CREATING:"Creating",FAILED:"Failed"},fy5={CREATION_TIME:"CreationTime"},Ty5={ASCENDING:"Ascending",DESCENDING:"Descending"},vy5={CONTINUED_PRE_TRAINING:"CONTINUED_PRE_TRAINING",DISTILLATION:"DISTILLATION",FINE_TUNING:"FINE_TUNING",IMPORTED:"IMPORTED"},Vy5={ACTIVE:"Active",CREATING:"Creating",FAILED:"Failed"},Ny5={COMPLETED:"Completed",DELETING:"Deleting",FAILED:"Failed",IN_PROGRESS:"InProgress",STOPPED:"Stopped",STOPPING:"Stopping"},ky5={MODEL_EVALUATION:"ModelEvaluation",RAG_EVALUATION:"RagEvaluation"},Ey5={CLASSIFICATION:"Classification",CUSTOM:"Custom",GENERATION:"Generation",QUESTION_AND_ANSWER:"QuestionAndAnswer",SUMMARIZATION:"Summarization"},Ly5={OPTIMIZED:"optimized",STANDARD:"standard"},yy5={BYTE_CONTENT:"BYTE_CONTENT",S3:"S3"},Ry5={QUERY_DECOMPOSITION:"QUERY_DECOMPOSITION"},Sy5={BOOLEAN:"BOOLEAN",NUMBER:"NUMBER",STRING:"STRING",STRING_LIST:"STRING_LIST"},hy5={HYBRID:"HYBRID",SEMANTIC:"SEMANTIC"},Cy5={ALL:"ALL",SELECTIVE:"SELECTIVE"},Iy5={BEDROCK_RERANKING_MODEL:"BEDROCK_RERANKING_MODEL"},xy5={EXTERNAL_SOURCES:"EXTERNAL_SOURCES",KNOWLEDGE_BASE:"KNOWLEDGE_BASE"},by5={AUTOMATED:"Automated",HUMAN:"Human"},uy5={CREATION_TIME:"CreationTime"},my5={BLOCK:"BLOCK",NONE:"NONE"},By5={IMAGE:"IMAGE",TEXT:"TEXT"},gy5={HIGH:"HIGH",LOW:"LOW",MEDIUM:"MEDIUM",NONE:"NONE"},py5={HATE:"HATE",INSULTS:"INSULTS",MISCONDUCT:"MISCONDUCT",PROMPT_ATTACK:"PROMPT_ATTACK",SEXUAL:"SEXUAL",VIOLENCE:"VIOLENCE"},Fy5={CLASSIC:"CLASSIC",STANDARD:"STANDARD"},Qy5={BLOCK:"BLOCK",NONE:"NONE"},Uy5={GROUNDING:"GROUNDING",RELEVANCE:"RELEVANCE"},dy5={ANONYMIZE:"ANONYMIZE",BLOCK:"BLOCK",NONE:"NONE"},cy5={ADDRESS:"ADDRESS",AGE:"AGE",AWS_ACCESS_KEY:"AWS_ACCESS_KEY",AWS_SECRET_KEY:"AWS_SECRET_KEY",CA_HEALTH_NUMBER:"CA_HEALTH_NUMBER",CA_SOCIAL_INSURANCE_NUMBER:"CA_SOCIAL_INSURANCE_NUMBER",CREDIT_DEBIT_CARD_CVV:"CREDIT_DEBIT_CARD_CVV",CREDIT_DEBIT_CARD_EXPIRY:"CREDIT_DEBIT_CARD_EXPIRY",CREDIT_DEBIT_CARD_NUMBER:"CREDIT_DEBIT_CARD_NUMBER",DRIVER_ID:"DRIVER_ID",EMAIL:"EMAIL",INTERNATIONAL_BANK_ACCOUNT_NUMBER:"INTERNATIONAL_BANK_ACCOUNT_NUMBER",IP_ADDRESS:"IP_ADDRESS",LICENSE_PLATE:"LICENSE_PLATE",MAC_ADDRESS:"MAC_ADDRESS",NAME:"NAME",PASSWORD:"PASSWORD",PHONE:"PHONE",PIN:"PIN",SWIFT_CODE:"SWIFT_CODE",UK_NATIONAL_HEALTH_SERVICE_NUMBER:"UK_NATIONAL_HEALTH_SERVICE_NUMBER",UK_NATIONAL_INSURANCE_NUMBER:"UK_NATIONAL_INSURANCE_NUMBER",UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER:"UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",URL:"URL",USERNAME:"USERNAME",US_BANK_ACCOUNT_NUMBER:"US_BANK_ACCOUNT_NUMBER",US_BANK_ROUTING_NUMBER:"US_BANK_ROUTING_NUMBER",US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER:"US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",US_PASSPORT_NUMBER:"US_PASSPORT_NUMBER",US_SOCIAL_SECURITY_NUMBER:"US_SOCIAL_SECURITY_NUMBER",VEHICLE_IDENTIFICATION_NUMBER:"VEHICLE_IDENTIFICATION_NUMBER"},ly5={CLASSIC:"CLASSIC",STANDARD:"STANDARD"},iy5={BLOCK:"BLOCK",NONE:"NONE"},ny5={DENY:"DENY"},ry5={BLOCK:"BLOCK",NONE:"NONE"},oy5={PROFANITY:"PROFANITY"},ay5={CREATING:"CREATING",DELETING:"DELETING",FAILED:"FAILED",READY:"READY",UPDATING:"UPDATING",VERSIONING:"VERSIONING"},sy5={ACTIVE:"ACTIVE"},ty5={APPLICATION:"APPLICATION",SYSTEM_DEFINED:"SYSTEM_DEFINED"},ey5={COMPLETED:"Completed",FAILED:"Failed",IN_PROGRESS:"InProgress"},AR5={COMPLETED:"Completed",FAILED:"Failed",IN_PROGRESS:"InProgress"},qR5={JSONL:"JSONL"},KR5={COMPLETED:"Completed",EXPIRED:"Expired",FAILED:"Failed",IN_PROGRESS:"InProgress",PARTIALLY_COMPLETED:"PartiallyCompleted",SCHEDULED:"Scheduled",STOPPED:"Stopped",STOPPING:"Stopping",SUBMITTED:"Submitted",VALIDATING:"Validating"},YR5={CONTINUED_PRE_TRAINING:"CONTINUED_PRE_TRAINING",DISTILLATION:"DISTILLATION",FINE_TUNING:"FINE_TUNING"},zR5={ON_DEMAND:"ON_DEMAND",PROVISIONED:"PROVISIONED"},wR5={EMBEDDING:"EMBEDDING",IMAGE:"IMAGE",TEXT:"TEXT"},_R5={ACTIVE:"ACTIVE",LEGACY:"LEGACY"},$R5={AVAILABLE:"AVAILABLE"},OR5={CUSTOM:"custom",DEFAULT:"default"},HR5={ONE_MONTH:"OneMonth",SIX_MONTHS:"SixMonths"},jR5={CREATING:"Creating",FAILED:"Failed",IN_SERVICE:"InService",UPDATING:"Updating"},JR5={CREATION_TIME:"CreationTime"},MR5={AUTHORIZED:"AUTHORIZED",NOT_AUTHORIZED:"NOT_AUTHORIZED"},DR5={AVAILABLE:"AVAILABLE",NOT_AVAILABLE:"NOT_AVAILABLE"},XR5={AVAILABLE:"AVAILABLE",NOT_AVAILABLE:"NOT_AVAILABLE"},PR5={ALL:"ALL",PUBLIC:"PUBLIC"},WR5={COMPLETED:"Completed",FAILED:"Failed",IN_PROGRESS:"InProgress",STOPPED:"Stopped",STOPPING:"Stopping"},GR5={COMPLETED:"Completed",FAILED:"Failed",IN_PROGRESS:"InProgress",NOT_STARTED:"NotStarted",STOPPED:"Stopped",STOPPING:"Stopping"},ZR5={COMPLETED:"Completed",FAILED:"Failed",IN_PROGRESS:"InProgress",STOPPED:"Stopped",STOPPING:"Stopping"};Object.defineProperty(bw8,"$Command",{enumerable:!0,get:function(){return iA.Command}});Object.defineProperty(bw8,"__Client",{enumerable:!0,get:function(){return iA.Client}});bw8.AccessDeniedException=yM7;bw8.AgreementStatus=_y5;bw8.ApplicationType=ky5;bw8.AttributeType=Sy5;bw8.AuthorizationStatus=MR5;bw8.AutomatedReasoningCheckLogicWarningType=Xy5;bw8.AutomatedReasoningCheckResult=$y5;bw8.AutomatedReasoningPolicyAnnotationStatus=Dy5;bw8.AutomatedReasoningPolicyBuildDocumentContentType=Hy5;bw8.AutomatedReasoningPolicyBuildMessageType=My5;bw8.AutomatedReasoningPolicyBuildResultAssetType=Jy5;bw8.AutomatedReasoningPolicyBuildWorkflowStatus=jy5;bw8.AutomatedReasoningPolicyBuildWorkflowType=Oy5;bw8.AutomatedReasoningPolicyTestRunResult=Py5;bw8.AutomatedReasoningPolicyTestRunStatus=Wy5;bw8.BatchDeleteEvaluationJobCommand=jz8;bw8.Bedrock=xw8;bw8.BedrockClient=PM;bw8.BedrockServiceException=ty;bw8.CancelAutomatedReasoningPolicyBuildWorkflowCommand=Jz8;bw8.CommitmentDuration=HR5;bw8.ConflictException=IM7;bw8.CreateAutomatedReasoningPolicyCommand=Mz8;bw8.CreateAutomatedReasoningPolicyTestCaseCommand=Dz8;bw8.CreateAutomatedReasoningPolicyVersionCommand=Xz8;bw8.CreateCustomModelCommand=Pz8;bw8.CreateCustomModelDeploymentCommand=Wz8;bw8.CreateEvaluationJobCommand=Gz8;bw8.CreateFoundationModelAgreementCommand=Zz8;bw8.CreateGuardrailCommand=fz8;bw8.CreateGuardrailVersionCommand=Tz8;bw8.CreateInferenceProfileCommand=vz8;bw8.CreateMarketplaceModelEndpointCommand=Vz8;bw8.CreateModelCopyJobCommand=Nz8;bw8.CreateModelCustomizationJobCommand=kz8;bw8.CreateModelImportJobCommand=Ez8;bw8.CreateModelInvocationJobCommand=Lz8;bw8.CreatePromptRouterCommand=yz8;bw8.CreateProvisionedModelThroughputCommand=Rz8;bw8.CustomModelDeploymentStatus=Zy5;bw8.CustomizationType=vy5;bw8.DeleteAutomatedReasoningPolicyBuildWorkflowCommand=Sz8;bw8.DeleteAutomatedReasoningPolicyCommand=hz8;bw8.DeleteAutomatedReasoningPolicyTestCaseCommand=Cz8;bw8.DeleteCustomModelCommand=Iz8;bw8.DeleteCustomModelDeploymentCommand=xz8;bw8.DeleteFoundationModelAgreementCommand=bz8;bw8.DeleteGuardrailCommand=uz8;bw8.DeleteImportedModelCommand=mz8;bw8.DeleteInferenceProfileCommand=Bz8;bw8.DeleteMarketplaceModelEndpointCommand=gz8;bw8.DeleteModelInvocationLoggingConfigurationCommand=pz8;bw8.DeletePromptRouterCommand=Fz8;bw8.DeleteProvisionedModelThroughputCommand=Qz8;bw8.DeregisterMarketplaceModelEndpointCommand=Uz8;bw8.EntitlementAvailability=DR5;bw8.EvaluationJobStatus=Ny5;bw8.EvaluationJobType=by5;bw8.EvaluationTaskType=Ey5;bw8.ExportAutomatedReasoningPolicyVersionCommand=dz8;bw8.ExternalSourceType=yy5;bw8.FineTuningJobStatus=ZR5;bw8.FoundationModelLifecycleStatus=_R5;bw8.GetAutomatedReasoningPolicyAnnotationsCommand=cz8;bw8.GetAutomatedReasoningPolicyBuildWorkflowCommand=lz8;bw8.GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand=iz8;bw8.GetAutomatedReasoningPolicyCommand=nz8;bw8.GetAutomatedReasoningPolicyNextScenarioCommand=rz8;bw8.GetAutomatedReasoningPolicyTestCaseCommand=oz8;bw8.GetAutomatedReasoningPolicyTestResultCommand=az8;bw8.GetCustomModelCommand=sz8;bw8.GetCustomModelDeploymentCommand=tz8;bw8.GetEvaluationJobCommand=ez8;bw8.GetFoundationModelAvailabilityCommand=Aw8;bw8.GetFoundationModelCommand=qw8;bw8.GetGuardrailCommand=Kw8;bw8.GetImportedModelCommand=Yw8;bw8.GetInferenceProfileCommand=zw8;bw8.GetMarketplaceModelEndpointCommand=ww8;bw8.GetModelCopyJobCommand=_w8;bw8.GetModelCustomizationJobCommand=$w8;bw8.GetModelImportJobCommand=Ow8;bw8.GetModelInvocationJobCommand=Hw8;bw8.GetModelInvocationLoggingConfigurationCommand=jw8;bw8.GetPromptRouterCommand=Jw8;bw8.GetProvisionedModelThroughputCommand=Mw8;bw8.GetUseCaseForModelAccessCommand=Dw8;bw8.GuardrailContentFilterAction=my5;bw8.GuardrailContentFilterType=py5;bw8.GuardrailContentFiltersTierName=Fy5;bw8.GuardrailContextualGroundingAction=Qy5;bw8.GuardrailContextualGroundingFilterType=Uy5;bw8.GuardrailFilterStrength=gy5;bw8.GuardrailManagedWordsType=oy5;bw8.GuardrailModality=By5;bw8.GuardrailPiiEntityType=cy5;bw8.GuardrailSensitiveInformationAction=dy5;bw8.GuardrailStatus=ay5;bw8.GuardrailTopicAction=iy5;bw8.GuardrailTopicType=ny5;bw8.GuardrailTopicsTierName=ly5;bw8.GuardrailWordAction=ry5;bw8.InferenceProfileStatus=sy5;bw8.InferenceProfileType=ty5;bw8.InferenceType=zR5;bw8.InternalServerException=RM7;bw8.JobStatusDetails=GR5;bw8.ListAutomatedReasoningPoliciesCommand=uw1;bw8.ListAutomatedReasoningPolicyBuildWorkflowsCommand=mw1;bw8.ListAutomatedReasoningPolicyTestCasesCommand=Bw1;bw8.ListAutomatedReasoningPolicyTestResultsCommand=gw1;bw8.ListCustomModelDeploymentsCommand=pw1;bw8.ListCustomModelsCommand=Fw1;bw8.ListEvaluationJobsCommand=Qw1;bw8.ListFoundationModelAgreementOffersCommand=Xw8;bw8.ListFoundationModelsCommand=Pw8;bw8.ListGuardrailsCommand=Uw1;bw8.ListImportedModelsCommand=dw1;bw8.ListInferenceProfilesCommand=cw1;bw8.ListMarketplaceModelEndpointsCommand=lw1;bw8.ListModelCopyJobsCommand=iw1;bw8.ListModelCustomizationJobsCommand=nw1;bw8.ListModelImportJobsCommand=rw1;bw8.ListModelInvocationJobsCommand=ow1;bw8.ListPromptRoutersCommand=aw1;bw8.ListProvisionedModelThroughputsCommand=sw1;bw8.ListTagsForResourceCommand=Ww8;bw8.ModelCopyJobStatus=ey5;bw8.ModelCustomization=YR5;bw8.ModelCustomizationJobStatus=WR5;bw8.ModelImportJobStatus=AR5;bw8.ModelInvocationJobStatus=KR5;bw8.ModelModality=wR5;bw8.ModelStatus=Vy5;bw8.OfferType=PR5;bw8.PerformanceConfigLatency=Ly5;bw8.PromptRouterStatus=$R5;bw8.PromptRouterType=OR5;bw8.ProvisionedModelStatus=jR5;bw8.PutModelInvocationLoggingConfigurationCommand=Gw8;bw8.PutUseCaseForModelAccessCommand=Zw8;bw8.QueryTransformationType=Ry5;bw8.RegionAvailability=XR5;bw8.RegisterMarketplaceModelEndpointCommand=fw8;bw8.RerankingMetadataSelectionMode=Cy5;bw8.ResourceInUseException=uM7;bw8.ResourceNotFoundException=SM7;bw8.RetrieveAndGenerateType=xy5;bw8.S3InputFormat=qR5;bw8.SearchType=hy5;bw8.ServiceQuotaExceededException=xM7;bw8.ServiceUnavailableException=mM7;bw8.SortByProvisionedModels=JR5;bw8.SortJobsBy=uy5;bw8.SortModelsBy=fy5;bw8.SortOrder=Ty5;bw8.StartAutomatedReasoningPolicyBuildWorkflowCommand=Tw8;bw8.StartAutomatedReasoningPolicyTestWorkflowCommand=vw8;bw8.Status=Gy5;bw8.StopEvaluationJobCommand=Vw8;bw8.StopModelCustomizationJobCommand=Nw8;bw8.StopModelInvocationJobCommand=kw8;bw8.TagResourceCommand=Ew8;bw8.ThrottlingException=hM7;bw8.TooManyTagsException=bM7;bw8.UntagResourceCommand=Lw8;bw8.UpdateAutomatedReasoningPolicyAnnotationsCommand=yw8;bw8.UpdateAutomatedReasoningPolicyCommand=Rw8;bw8.UpdateAutomatedReasoningPolicyTestCaseCommand=Sw8;bw8.UpdateGuardrailCommand=hw8;bw8.UpdateMarketplaceModelEndpointCommand=Cw8;bw8.UpdateProvisionedModelThroughputCommand=Iw8;bw8.ValidationException=CM7;bw8.VectorSearchRerankingConfigurationType=Iy5;bw8.paginateListAutomatedReasoningPolicies=dL5;bw8.paginateListAutomatedReasoningPolicyBuildWorkflows=cL5;bw8.paginateListAutomatedReasoningPolicyTestCases=lL5;bw8.paginateListAutomatedReasoningPolicyTestResults=iL5;bw8.paginateListCustomModelDeployments=nL5;bw8.paginateListCustomModels=rL5;bw8.paginateListEvaluationJobs=oL5;bw8.paginateListGuardrails=aL5;bw8.paginateListImportedModels=sL5;bw8.paginateListInferenceProfiles=tL5;bw8.paginateListMarketplaceModelEndpoints=eL5;bw8.paginateListModelCopyJobs=Ay5;bw8.paginateListModelCustomizationJobs=qy5;bw8.paginateListModelImportJobs=Ky5;bw8.paginateListModelInvocationJobs=Yy5;bw8.paginateListPromptRouters=zy5;bw8.paginateListProvisionedModelThroughputs=wy5});var GP7=h((eC5)=>{eC5.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(eC5.HttpAuthLocation||(eC5.HttpAuthLocation={}));eC5.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(eC5.HttpApiKeyAuthLocation||(eC5.HttpApiKeyAuthLocation={}));eC5.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(eC5.EndpointURLScheme||(eC5.EndpointURLScheme={}));eC5.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(eC5.AlgorithmId||(eC5.AlgorithmId={}));var rC5=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>eC5.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>eC5.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},oC5=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},aC5=(A)=>{return rC5(A)},sC5=(A)=>{return oC5(A)};eC5.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(eC5.FieldPosition||(eC5.FieldPosition={}));var tC5="__smithy_context";eC5.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(eC5.IniSectionType||(eC5.IniSectionType={}));eC5.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(eC5.RequestHandlerProtocol||(eC5.RequestHandlerProtocol={}));eC5.SMITHY_CONTEXT_KEY=tC5;eC5.getDefaultClientConfiguration=aC5;eC5.resolveDefaultRuntimeConfig=sC5});var vP7=h((OI5)=>{var YI5=GP7(),zI5=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},wI5=(A)=>{return{httpHandler:A.httpHandler()}};class ZP7{name;kind;values;constructor({name:A,kind:q=YI5.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class fP7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class ew1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new ew1({...A,headers:{...A.headers}});if(q.query)q.query=_I5(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return ew1.clone(this)}}function _I5(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class TP7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function $I5(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}OI5.Field=ZP7;OI5.Fields=fP7;OI5.HttpRequest=ew1;OI5.HttpResponse=TP7;OI5.getHttpHandlerExtensionConfiguration=zI5;OI5.isValidHostname=$I5;OI5.resolveHttpHandlerRuntimeConfig=wI5});var yP7=h((ZI5)=>{var VP7=vP7();function WI5(A){let{signer:q,signer:K}=A,Y=Object.assign(A,{eventSigner:q,messageSigner:K}),z=Y.eventStreamPayloadHandlerProvider(Y);return Object.assign(Y,{eventStreamPayloadHandler:z})}var NP7=(A)=>(q,K)=>async(Y)=>{let{request:z}=Y;if(!VP7.HttpRequest.isInstance(z))return q(Y);return A.eventStreamPayloadHandler.handle(q,Y,K)},kP7={tags:["EVENT_STREAM","SIGNATURE","HANDLE"],name:"eventStreamHandlingMiddleware",relation:"after",toMiddleware:"awsAuthMiddleware",override:!0},EP7=(A)=>async(q)=>{let{request:K}=q;if(!VP7.HttpRequest.isInstance(K))return A(q);return K.headers={...K.headers,"content-type":"application/vnd.amazon.eventstream","x-amz-content-sha256":"STREAMING-AWS4-HMAC-SHA256-EVENTS"},A({...q,request:K})},LP7={step:"build",tags:["EVENT_STREAM","HEADER","CONTENT_TYPE","CONTENT_SHA256"],name:"eventStreamHeaderMiddleware",override:!0},GI5=(A)=>({applyToStack:(q)=>{q.addRelativeTo(NP7(A),kP7),q.add(EP7,LP7)}});ZI5.eventStreamHandlingMiddleware=NP7;ZI5.eventStreamHandlingMiddlewareOptions=kP7;ZI5.eventStreamHeaderMiddleware=EP7;ZI5.eventStreamHeaderMiddlewareOptions=LP7;ZI5.getEventStreamPlugin=GI5;ZI5.resolveEventStreamConfig=WI5});var hP7=h((yw2,SP7)=>{var{defineProperty:A21,getOwnPropertyDescriptor:EI5,getOwnPropertyNames:LI5}=Object,yI5=Object.prototype.hasOwnProperty,RI5=(A,q)=>A21(A,"name",{value:q,configurable:!0}),SI5=(A,q)=>{for(var K in q)A21(A,K,{get:q[K],enumerable:!0})},hI5=(A,q,K,Y)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let z of LI5(q))if(!yI5.call(A,z)&&z!==K)A21(A,z,{get:()=>q[z],enumerable:!(Y=EI5(q,z))||Y.enumerable})}return A},CI5=(A)=>hI5(A21({},"__esModule",{value:!0}),A),RP7={};SI5(RP7,{isArrayBuffer:()=>II5});SP7.exports=CI5(RP7);var II5=RI5((A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]","isArrayBuffer")});var A36=h((Rw2,xP7)=>{var{defineProperty:q21,getOwnPropertyDescriptor:xI5,getOwnPropertyNames:bI5}=Object,uI5=Object.prototype.hasOwnProperty,CP7=(A,q)=>q21(A,"name",{value:q,configurable:!0}),mI5=(A,q)=>{for(var K in q)q21(A,K,{get:q[K],enumerable:!0})},BI5=(A,q,K,Y)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let z of bI5(q))if(!uI5.call(A,z)&&z!==K)q21(A,z,{get:()=>q[z],enumerable:!(Y=xI5(q,z))||Y.enumerable})}return A},gI5=(A)=>BI5(q21({},"__esModule",{value:!0}),A),IP7={};mI5(IP7,{fromArrayBuffer:()=>FI5,fromString:()=>QI5});xP7.exports=gI5(IP7);var pI5=hP7(),Qw8=u6("buffer"),FI5=CP7((A,q=0,K=A.byteLength-q)=>{if(!(0,pI5.isArrayBuffer)(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return Qw8.Buffer.from(A,q,K)},"fromArrayBuffer"),QI5=CP7((A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?Qw8.Buffer.from(A,q):Qw8.Buffer.from(A)},"fromString")});var gP7=h((Sw2,BP7)=>{var{defineProperty:K21,getOwnPropertyDescriptor:UI5,getOwnPropertyNames:dI5}=Object,cI5=Object.prototype.hasOwnProperty,Uw8=(A,q)=>K21(A,"name",{value:q,configurable:!0}),lI5=(A,q)=>{for(var K in q)K21(A,K,{get:q[K],enumerable:!0})},iI5=(A,q,K,Y)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let z of dI5(q))if(!cI5.call(A,z)&&z!==K)K21(A,z,{get:()=>q[z],enumerable:!(Y=UI5(q,z))||Y.enumerable})}return A},nI5=(A)=>iI5(K21({},"__esModule",{value:!0}),A),bP7={};lI5(bP7,{fromUtf8:()=>mP7,toUint8Array:()=>rI5,toUtf8:()=>oI5});BP7.exports=nI5(bP7);var uP7=A36(),mP7=Uw8((A)=>{let q=(0,uP7.fromString)(A,"utf8");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),rI5=Uw8((A)=>{if(typeof A==="string")return mP7(A);if(ArrayBuffer.isView(A))return new Uint8Array(A.buffer,A.byteOffset,A.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(A)},"toUint8Array"),oI5=Uw8((A)=>{if(typeof A==="string")return A;if(typeof A!=="object"||typeof A.byteOffset!=="number"||typeof A.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return(0,uP7.fromArrayBuffer)(A.buffer,A.byteOffset,A.byteLength).toString("utf8")},"toUtf8")});var QP7=h((pP7)=>{Object.defineProperty(pP7,"__esModule",{value:!0});pP7.convertToBuffer=void 0;var aI5=gP7(),sI5=typeof Buffer<"u"&&Buffer.from?function(A){return Buffer.from(A,"utf8")}:aI5.fromUtf8;function tI5(A){if(A instanceof Uint8Array)return A;if(typeof A==="string")return sI5(A);if(ArrayBuffer.isView(A))return new Uint8Array(A.buffer,A.byteOffset,A.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(A)}pP7.convertToBuffer=tI5});var cP7=h((UP7)=>{Object.defineProperty(UP7,"__esModule",{value:!0});UP7.isEmptyData=void 0;function eI5(A){if(typeof A==="string")return A.length===0;return A.byteLength===0}UP7.isEmptyData=eI5});var nP7=h((lP7)=>{Object.defineProperty(lP7,"__esModule",{value:!0});lP7.numToUint8=void 0;function Ax5(A){return new Uint8Array([(A&4278190080)>>24,(A&16711680)>>16,(A&65280)>>8,A&255])}lP7.numToUint8=Ax5});var aP7=h((rP7)=>{Object.defineProperty(rP7,"__esModule",{value:!0});rP7.uint32ArrayFrom=void 0;function qx5(A){if(!Uint32Array.from){var q=new Uint32Array(A.length),K=0;while(K<A.length)q[K]=A[K],K+=1;return q}return Uint32Array.from(A)}rP7.uint32ArrayFrom=qx5});var dw8=h((CX6)=>{Object.defineProperty(CX6,"__esModule",{value:!0});CX6.uint32ArrayFrom=CX6.numToUint8=CX6.isEmptyData=CX6.convertToBuffer=void 0;var Kx5=QP7();Object.defineProperty(CX6,"convertToBuffer",{enumerable:!0,get:function(){return Kx5.convertToBuffer}});var Yx5=cP7();Object.defineProperty(CX6,"isEmptyData",{enumerable:!0,get:function(){return Yx5.isEmptyData}});var zx5=nP7();Object.defineProperty(CX6,"numToUint8",{enumerable:!0,get:function(){return zx5.numToUint8}});var wx5=aP7();Object.defineProperty(CX6,"uint32ArrayFrom",{enumerable:!0,get:function(){return wx5.uint32ArrayFrom}})});var q07=h((eP7)=>{Object.defineProperty(eP7,"__esModule",{value:!0});eP7.AwsCrc32=void 0;var sP7=S2(),cw8=dw8(),tP7=lw8(),$x5=function(){function A(){this.crc32=new tP7.Crc32}return A.prototype.update=function(q){if((0,cw8.isEmptyData)(q))return;this.crc32.update((0,cw8.convertToBuffer)(q))},A.prototype.digest=function(){return sP7.__awaiter(this,void 0,void 0,function(){return sP7.__generator(this,function(q){return[2,(0,cw8.numToUint8)(this.crc32.digest())]})})},A.prototype.reset=function(){this.crc32=new tP7.Crc32},A}();eP7.AwsCrc32=$x5});var lw8=h((iw8)=>{Object.defineProperty(iw8,"__esModule",{value:!0});iw8.AwsCrc32=iw8.Crc32=iw8.crc32=void 0;var Ox5=S2(),Hx5=dw8();function jx5(A){return new K07().update(A).digest()}iw8.crc32=jx5;var K07=function(){function A(){this.checksum=4294967295}return A.prototype.update=function(q){var K,Y;try{for(var z=Ox5.__values(q),w=z.next();!w.done;w=z.next()){var _=w.value;this.checksum=this.checksum>>>8^Mx5[(this.checksum^_)&255]}}catch($){K={error:$}}finally{try{if(w&&!w.done&&(Y=z.return))Y.call(z)}finally{if(K)throw K.error}}return this},A.prototype.digest=function(){return(this.checksum^4294967295)>>>0},A}();iw8.Crc32=K07;var Jx5=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],Mx5=(0,Hx5.uint32ArrayFrom)(Jx5),Dx5=q07();Object.defineProperty(iw8,"AwsCrc32",{enumerable:!0,get:function(){return Dx5.AwsCrc32}})});var z07=h((fx5)=>{var Y07={},nw8={};for(let A=0;A<256;A++){let q=A.toString(16).toLowerCase();if(q.length===1)q=`0${q}`;Y07[A]=q,nw8[q]=A}function Gx5(A){if(A.length%2!==0)throw Error("Hex encoded strings must have an even number length");let q=new Uint8Array(A.length/2);for(let K=0;K<A.length;K+=2){let Y=A.slice(K,K+2).toLowerCase();if(Y in nw8)q[K/2]=nw8[Y];else throw Error(`Cannot decode unrecognized sequence ${Y} as hexadecimal`)}return q}function Zx5(A){let q="";for(let K=0;K<A.byteLength;K++)q+=Y07[A[K]];return q}fx5.fromHex=Gx5;fx5.toHex=Zx5});var Ou6=h((xx5)=>{var $07=lw8(),q36=z07();class IX6{bytes;constructor(A){if(this.bytes=A,A.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(A){if(A>9223372036854776000||A<-9223372036854776000)throw Error(`${A} is too large (or, if negative, too small) to represent as an Int64`);let q=new Uint8Array(8);for(let K=7,Y=Math.abs(Math.round(A));K>-1&&Y>0;K--,Y/=256)q[K]=Y;if(A<0)w07(q);return new IX6(q)}valueOf(){let A=this.bytes.slice(0),q=A[0]&128;if(q)w07(A);return parseInt(q36.toHex(A),16)*(q?-1:1)}toString(){return String(this.valueOf())}}function w07(A){for(let q=0;q<8;q++)A[q]^=255;for(let q=7;q>-1;q--)if(A[q]++,A[q]!==0)break}class rw8{toUtf8;fromUtf8;constructor(A,q){this.toUtf8=A,this.fromUtf8=q}format(A){let q=[];for(let z of Object.keys(A)){let w=this.fromUtf8(z);q.push(Uint8Array.from([w.byteLength]),w,this.formatHeaderValue(A[z]))}let K=new Uint8Array(q.reduce((z,w)=>z+w.byteLength,0)),Y=0;for(let z of q)K.set(z,Y),Y+=z.byteLength;return K}formatHeaderValue(A){switch(A.type){case"boolean":return Uint8Array.from([A.value?0:1]);case"byte":return Uint8Array.from([2,A.value]);case"short":let q=new DataView(new ArrayBuffer(3));return q.setUint8(0,3),q.setInt16(1,A.value,!1),new Uint8Array(q.buffer);case"integer":let K=new DataView(new ArrayBuffer(5));return K.setUint8(0,4),K.setInt32(1,A.value,!1),new Uint8Array(K.buffer);case"long":let Y=new Uint8Array(9);return Y[0]=5,Y.set(A.value.bytes,1),Y;case"binary":let z=new DataView(new ArrayBuffer(3+A.value.byteLength));z.setUint8(0,6),z.setUint16(1,A.value.byteLength,!1);let w=new Uint8Array(z.buffer);return w.set(A.value,3),w;case"string":let _=this.fromUtf8(A.value),$=new DataView(new ArrayBuffer(3+_.byteLength));$.setUint8(0,7),$.setUint16(1,_.byteLength,!1);let O=new Uint8Array($.buffer);return O.set(_,3),O;case"timestamp":let H=new Uint8Array(9);return H[0]=8,H.set(IX6.fromNumber(A.value.valueOf()).bytes,1),H;case"uuid":if(!hx5.test(A.value))throw Error(`Invalid UUID received: ${A.value}`);let j=new Uint8Array(17);return j[0]=9,j.set(q36.fromHex(A.value.replace(/\-/g,"")),1),j}}parse(A){let q={},K=0;while(K<A.byteLength){let Y=A.getUint8(K++),z=this.toUtf8(new Uint8Array(A.buffer,A.byteOffset+K,Y));switch(K+=Y,A.getUint8(K++)){case 0:q[z]={type:_07,value:!0};break;case 1:q[z]={type:_07,value:!1};break;case 2:q[z]={type:Vx5,value:A.getInt8(K++)};break;case 3:q[z]={type:Nx5,value:A.getInt16(K,!1)},K+=2;break;case 4:q[z]={type:kx5,value:A.getInt32(K,!1)},K+=4;break;case 5:q[z]={type:Ex5,value:new IX6(new Uint8Array(A.buffer,A.byteOffset+K,8))},K+=8;break;case 6:let w=A.getUint16(K,!1);K+=2,q[z]={type:Lx5,value:new Uint8Array(A.buffer,A.byteOffset+K,w)},K+=w;break;case 7:let _=A.getUint16(K,!1);K+=2,q[z]={type:yx5,value:this.toUtf8(new Uint8Array(A.buffer,A.byteOffset+K,_))},K+=_;break;case 8:q[z]={type:Rx5,value:new Date(new IX6(new Uint8Array(A.buffer,A.byteOffset+K,8)).valueOf())},K+=8;break;case 9:let $=new Uint8Array(A.buffer,A.byteOffset+K,16);K+=16,q[z]={type:Sx5,value:`${q36.toHex($.subarray(0,4))}-${q36.toHex($.subarray(4,6))}-${q36.toHex($.subarray(6,8))}-${q36.toHex($.subarray(8,10))}-${q36.toHex($.subarray(10))}`};break;default:throw Error("Unrecognized header type tag")}}return q}}var _07="boolean",Vx5="byte",Nx5="short",kx5="integer",Ex5="long",Lx5="binary",yx5="string",Rx5="timestamp",Sx5="uuid",hx5=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,O07=4,$t=O07*2,K36=4,Cx5=$t+K36*2;function Ix5({byteLength:A,byteOffset:q,buffer:K}){if(A<Cx5)throw Error("Provided message too short to accommodate event stream message overhead");let Y=new DataView(K,q,A),z=Y.getUint32(0,!1);if(A!==z)throw Error("Reported message length does not match received message length");let w=Y.getUint32(O07,!1),_=Y.getUint32($t,!1),$=Y.getUint32(A-K36,!1),O=new $07.Crc32().update(new Uint8Array(K,q,$t));if(_!==O.digest())throw Error(`The prelude checksum specified in the message (${_}) does not match the calculated CRC32 checksum (${O.digest()})`);if(O.update(new Uint8Array(K,q+$t,A-($t+K36))),$!==O.digest())throw Error(`The message checksum (${O.digest()}) did not match the expected value of ${$}`);return{headers:new DataView(K,q+$t+K36,w),body:new Uint8Array(K,q+$t+K36+w,z-w-($t+K36+K36))}}class H07{headerMarshaller;messageBuffer;isEndOfStream;constructor(A,q){this.headerMarshaller=new rw8(A,q),this.messageBuffer=[],this.isEndOfStream=!1}feed(A){this.messageBuffer.push(this.decode(A))}endOfStream(){this.isEndOfStream=!0}getMessage(){let A=this.messageBuffer.pop(),q=this.isEndOfStream;return{getMessage(){return A},isEndOfStream(){return q}}}getAvailableMessages(){let A=this.messageBuffer;this.messageBuffer=[];let q=this.isEndOfStream;return{getMessages(){return A},isEndOfStream(){return q}}}encode({headers:A,body:q}){let K=this.headerMarshaller.format(A),Y=K.byteLength+q.byteLength+16,z=new Uint8Array(Y),w=new DataView(z.buffer,z.byteOffset,z.byteLength),_=new $07.Crc32;return w.setUint32(0,Y,!1),w.setUint32(4,K.byteLength,!1),w.setUint32(8,_.update(z.subarray(0,8)).digest(),!1),z.set(K,12),z.set(q,K.byteLength+12),w.setUint32(Y-4,_.update(z.subarray(8,Y-4)).digest(),!1),z}decode(A){let{headers:q,body:K}=Ix5(A);return{headers:this.headerMarshaller.parse(q),body:K}}formatHeaders(A){return this.headerMarshaller.format(A)}}class j07{options;constructor(A){this.options=A}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let A of this.options.inputStream)yield this.options.decoder.decode(A)}}class J07{options;constructor(A){this.options=A}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let A of this.options.messageStream)yield this.options.encoder.encode(A);if(this.options.includeEndFrame)yield new Uint8Array(0)}}class M07{options;constructor(A){this.options=A}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let A of this.options.messageStream){let q=await this.options.deserializer(A);if(q===void 0)continue;yield q}}}class D07{options;constructor(A){this.options=A}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let A of this.options.inputStream)yield this.options.serializer(A)}}xx5.EventStreamCodec=H07;xx5.HeaderMarshaller=rw8;xx5.Int64=IX6;xx5.MessageDecoderStream=j07;xx5.MessageEncoderStream=J07;xx5.SmithyMessageDecoderStream=M07;xx5.SmithyMessageEncoderStream=D07});var P07=h((dx5)=>{var X07={},ow8={};for(let A=0;A<256;A++){let q=A.toString(16).toLowerCase();if(q.length===1)q=`0${q}`;X07[A]=q,ow8[q]=A}function Qx5(A){if(A.length%2!==0)throw Error("Hex encoded strings must have an even number length");let q=new Uint8Array(A.length/2);for(let K=0;K<A.length;K+=2){let Y=A.slice(K,K+2).toLowerCase();if(Y in ow8)q[K/2]=ow8[Y];else throw Error(`Cannot decode unrecognized sequence ${Y} as hexadecimal`)}return q}function Ux5(A){let q="";for(let K=0;K<A.byteLength;K++)q+=X07[A[K]];return q}dx5.fromHex=Qx5;dx5.toHex=Ux5});var W07=h((sx5)=>{sx5.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(sx5.HttpAuthLocation||(sx5.HttpAuthLocation={}));sx5.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(sx5.HttpApiKeyAuthLocation||(sx5.HttpApiKeyAuthLocation={}));sx5.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(sx5.EndpointURLScheme||(sx5.EndpointURLScheme={}));sx5.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(sx5.AlgorithmId||(sx5.AlgorithmId={}));var ix5=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>sx5.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>sx5.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},nx5=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},rx5=(A)=>{return ix5(A)},ox5=(A)=>{return nx5(A)};sx5.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(sx5.FieldPosition||(sx5.FieldPosition={}));var ax5="__smithy_context";sx5.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(sx5.IniSectionType||(sx5.IniSectionType={}));sx5.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(sx5.RequestHandlerProtocol||(sx5.RequestHandlerProtocol={}));sx5.SMITHY_CONTEXT_KEY=ax5;sx5.getDefaultClientConfiguration=rx5;sx5.resolveDefaultRuntimeConfig=ox5});var K28=h((_b5)=>{var qb5=W07(),Kb5=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},Yb5=(A)=>{return{httpHandler:A.httpHandler()}};class G07{name;kind;values;constructor({name:A,kind:q=qb5.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class Z07{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class Y21{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new Y21({...A,headers:{...A.headers}});if(q.query)q.query=zb5(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return Y21.clone(this)}}function zb5(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class f07{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function wb5(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}_b5.Field=G07;_b5.Fields=Z07;_b5.HttpRequest=Y21;_b5.HttpResponse=f07;_b5.getHttpHandlerExtensionConfiguration=Kb5;_b5.isValidHostname=wb5;_b5.resolveHttpHandlerRuntimeConfig=Yb5});var v07=h((Wb5)=>{var T07=(A)=>encodeURIComponent(A).replace(/[!'()*]/g,Xb5),Xb5=(A)=>`%${A.charCodeAt(0).toString(16).toUpperCase()}`,Pb5=(A)=>A.split("/").map(T07).join("/");Wb5.escapeUri=T07;Wb5.escapeUriPath=Pb5});var V07=h((Tb5)=>{var Y28=v07();function fb5(A){let q=[];for(let K of Object.keys(A).sort()){let Y=A[K];if(K=Y28.escapeUri(K),Array.isArray(Y))for(let z=0,w=Y.length;z<w;z++)q.push(`${K}=${Y28.escapeUri(Y[z])}`);else{let z=K;if(Y||typeof Y==="string")z+=`=${Y28.escapeUri(Y)}`;q.push(z)}}return q.join("&")}Tb5.buildQueryString=fb5});var N07=h((kb5)=>{var Vb5=V07();function Nb5(A){let{port:q,query:K}=A,{protocol:Y,path:z,hostname:w}=A;if(Y&&Y.slice(-1)!==":")Y+=":";if(q)w+=`:${q}`;if(z&&z.charAt(0)!=="/")z=`/${z}`;let _=K?Vb5.buildQueryString(K):"";if(_&&_[0]!=="?")_=`?${_}`;let $="";if(A.username!=null||A.password!=null){let H=A.username??"",j=A.password??"";$=`${H}:${j}@`}let O="";if(A.fragment)O=`#${A.fragment}`;return`${Y}//${$}${w}${z}${_}${O}`}kb5.formatUrl=Nb5});var k07=h((Sb5)=>{var ju6=Ou6();function Lb5(A){let q=0,K=0,Y=null,z=null,w=($)=>{if(typeof $!=="number")throw Error("Attempted to allocate an event message where size was not a number: "+$);q=$,K=4,Y=new Uint8Array($),new DataView(Y.buffer).setUint32(0,$,!1)},_=async function*(){let $=A[Symbol.asyncIterator]();while(!0){let{value:O,done:H}=await $.next();if(H){if(!q)return;else if(q===K)yield Y;else throw Error("Truncated event message received.");return}let j=O.length,J=0;while(J<j){if(!Y){let D=j-J;if(!z)z=new Uint8Array(4);let X=Math.min(4-K,D);if(z.set(O.slice(J,J+X),K),K+=X,J+=X,K<4)break;w(new DataView(z.buffer).getUint32(0,!1)),z=null}let M=Math.min(q-K,j-J);if(Y.set(O.slice(J,J+M),K),K+=M,J+=M,q&&q===K)yield Y,Y=null,q=0,K=0}}};return{[Symbol.asyncIterator]:_}}function yb5(A,q){return async function(K){let{value:Y}=K.headers[":message-type"];if(Y==="error"){let z=Error(K.headers[":error-message"].value||"UnknownError");throw z.name=K.headers[":error-code"].value,z}else if(Y==="exception"){let z=K.headers[":exception-type"].value,w={[z]:K},_=await A(w);if(_.$unknown){let $=Error(q(K.body));throw $.name=z,$}throw _[z]}else if(Y==="event"){let z={[K.headers[":event-type"].value]:K},w=await A(z);if(w.$unknown)return;return w}else throw Error(`Unrecognizable event type: ${K.headers[":event-type"].value}`)}}class z28{eventStreamCodec;utfEncoder;constructor({utf8Encoder:A,utf8Decoder:q}){this.eventStreamCodec=new ju6.EventStreamCodec(A,q),this.utfEncoder=A}deserialize(A,q){let K=Lb5(A);return new ju6.SmithyMessageDecoderStream({messageStream:new ju6.MessageDecoderStream({inputStream:K,decoder:this.eventStreamCodec}),deserializer:yb5(q,this.utfEncoder)})}serialize(A,q){return new ju6.MessageEncoderStream({messageStream:new ju6.SmithyMessageEncoderStream({inputStream:A,serializer:q}),encoder:this.eventStreamCodec,includeEndFrame:!0})}}var Rb5=(A)=>new z28(A);Sb5.EventStreamMarshaller=z28;Sb5.eventStreamSerdeProvider=Rb5});var y07=h((ub5)=>{var Ib5=k07(),E07=(A)=>({[Symbol.asyncIterator]:async function*(){let q=A.getReader();try{while(!0){let{done:K,value:Y}=await q.read();if(K)return;yield Y}}finally{q.releaseLock()}}}),L07=(A)=>{let q=A[Symbol.asyncIterator]();return new ReadableStream({async pull(K){let{done:Y,value:z}=await q.next();if(Y)return K.close();K.enqueue(z)}})};class w28{universalMarshaller;constructor({utf8Encoder:A,utf8Decoder:q}){this.universalMarshaller=new Ib5.EventStreamMarshaller({utf8Decoder:q,utf8Encoder:A})}deserialize(A,q){let K=xb5(A)?E07(A):A;return this.universalMarshaller.deserialize(K,q)}serialize(A,q){let K=this.universalMarshaller.serialize(A,q);return typeof ReadableStream==="function"?L07(K):K}}var xb5=(A)=>typeof ReadableStream==="function"&&A instanceof ReadableStream,bb5=(A)=>new w28(A);ub5.EventStreamMarshaller=w28;ub5.eventStreamSerdeProvider=bb5;ub5.iterableToReadableStream=L07;ub5.readableStreamtoIterable=E07});var S07=h((Ub5)=>{var R07=(A)=>encodeURIComponent(A).replace(/[!'()*]/g,Fb5),Fb5=(A)=>`%${A.charCodeAt(0).toString(16).toUpperCase()}`,Qb5=(A)=>A.split("/").map(R07).join("/");Ub5.escapeUri=R07;Ub5.escapeUriPath=Qb5});var h07=h((ib5)=>{var _28=S07();function lb5(A){let q=[];for(let K of Object.keys(A).sort()){let Y=A[K];if(K=_28.escapeUri(K),Array.isArray(Y))for(let z=0,w=Y.length;z<w;z++)q.push(`${K}=${_28.escapeUri(Y[z])}`);else{let z=K;if(Y||typeof Y==="string")z+=`=${_28.escapeUri(Y)}`;q.push(z)}}return q.join("&")}ib5.buildQueryString=lb5});var C07=h((ob5)=>{var rb5=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";ob5.isArrayBuffer=rb5});var O28=h((Au5)=>{var sb5=C07(),$28=u6("buffer"),tb5=(A,q=0,K=A.byteLength-q)=>{if(!sb5.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return $28.Buffer.from(A,q,K)},eb5=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?$28.Buffer.from(A,q):$28.Buffer.from(A)};Au5.fromArrayBuffer=tb5;Au5.fromString=eb5});var b07=h((I07)=>{Object.defineProperty(I07,"__esModule",{value:!0});I07.fromBase64=void 0;var Yu5=O28(),zu5=/^[A-Za-z0-9+/]*={0,2}$/,wu5=(A)=>{if(A.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!zu5.exec(A))throw TypeError("Invalid base64 string.");let q=(0,Yu5.fromString)(A,"base64");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength)};I07.fromBase64=wu5});var B07=h((u07)=>{Object.defineProperty(u07,"__esModule",{value:!0});u07.toBase64=void 0;var _u5=O28(),$u5=K2(),Ou5=(A)=>{let q;if(typeof A==="string")q=(0,$u5.fromUtf8)(A);else q=A;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,_u5.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("base64")};u07.toBase64=Ou5});var F07=h((Ju6)=>{var g07=b07(),p07=B07();Object.keys(g07).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(Ju6,A))Object.defineProperty(Ju6,A,{enumerable:!0,get:function(){return g07[A]}})});Object.keys(p07).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(Ju6,A))Object.defineProperty(Ju6,A,{enumerable:!0,get:function(){return p07[A]}})})});var d07=h((Wu5)=>{var Q07=K28(),Hu5=h07(),ju5=F07();function U07(A,q){return new Request(A,q)}function Ju5(A=0){return new Promise((q,K)=>{if(A)setTimeout(()=>{let Y=Error(`Request did not complete within ${A} ms`);Y.name="TimeoutError",K(Y)},A)})}var z21={supported:void 0};class H28{config;configProvider;static create(A){if(typeof A?.handle==="function")return A;return new H28(A)}constructor(A){if(typeof A==="function")this.configProvider=A().then((q)=>q||{});else this.config=A??{},this.configProvider=Promise.resolve(this.config);if(z21.supported===void 0)z21.supported=Boolean(typeof Request<"u"&&"keepalive"in U07("https://[::1]"))}destroy(){}async handle(A,{abortSignal:q,requestTimeout:K}={}){if(!this.config)this.config=await this.configProvider;let Y=K??this.config.requestTimeout,z=this.config.keepAlive===!0,w=this.config.credentials;if(q?.aborted){let G=Error("Request aborted");return G.name="AbortError",Promise.reject(G)}let _=A.path,$=Hu5.buildQueryString(A.query||{});if($)_+=`?${$}`;if(A.fragment)_+=`#${A.fragment}`;let O="";if(A.username!=null||A.password!=null){let G=A.username??"",Z=A.password??"";O=`${G}:${Z}@`}let{port:H,method:j}=A,J=`${A.protocol}//${O}${A.hostname}${H?`:${H}`:""}${_}`,M=j==="GET"||j==="HEAD"?void 0:A.body,D={body:M,headers:new Headers(A.headers),method:j,credentials:w};if(this.config?.cache)D.cache=this.config.cache;if(M)D.duplex="half";if(typeof AbortController<"u")D.signal=q;if(z21.supported)D.keepalive=z;if(typeof this.config.requestInit==="function")Object.assign(D,this.config.requestInit(A));let X=()=>{},P=U07(J,D),W=[fetch(P).then((G)=>{let Z=G.headers,f={};for(let V of Z.entries())f[V[0]]=V[1];if(G.body==null)return G.blob().then((V)=>({response:new Q07.HttpResponse({headers:f,reason:G.statusText,statusCode:G.status,body:V})}));return{response:new Q07.HttpResponse({headers:f,reason:G.statusText,statusCode:G.status,body:G.body})}}),Ju5(Y)];if(q)W.push(new Promise((G,Z)=>{let f=()=>{let v=Error("Request aborted");v.name="AbortError",Z(v)};if(typeof q.addEventListener==="function"){let v=q;v.addEventListener("abort",f,{once:!0}),X=()=>v.removeEventListener("abort",f)}else q.onabort=f}));return Promise.race(W).finally(X)}updateHttpClientConfig(A,q){this.config=void 0,this.configProvider=this.configProvider.then((K)=>{return K[A]=q,K})}httpHandlerConfigs(){return this.config??{}}}var Mu5=async(A)=>{if(typeof Blob==="function"&&A instanceof Blob||A.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await A.arrayBuffer());return Du5(A)}return Xu5(A)};async function Du5(A){let q=await Pu5(A),K=ju5.fromBase64(q);return new Uint8Array(K)}async function Xu5(A){let q=[],K=A.getReader(),Y=!1,z=0;while(!Y){let{done:$,value:O}=await K.read();if(O)q.push(O),z+=O.length;Y=$}let w=new Uint8Array(z),_=0;for(let $ of q)w.set($,_),_+=$.length;return w}function Pu5(A){return new Promise((q,K)=>{let Y=new FileReader;Y.onloadend=()=>{if(Y.readyState!==2)return K(Error("Reader aborted too early"));let z=Y.result??"",w=z.indexOf(","),_=w>-1?w+1:z.length;q(z.substring(_))},Y.onabort=()=>K(Error("Read aborted")),Y.onerror=()=>K(Y.error),Y.readAsDataURL(A)})}Wu5.FetchHttpHandler=H28;Wu5.keepAliveSupport=z21;Wu5.streamCollector=Mu5});var o07=h((mu5)=>{var Tu5=Ou6(),vu5=P07(),j28=K28(),Vu5=N07(),l07=y07(),c07=d07(),Nu5=(A,q,K,Y)=>{let z=A,w={start(){},async transform(_,$){try{let O=new Date(Date.now()+await Y()),H={":date":{type:"timestamp",value:O}},j=await q.sign({message:{body:_,headers:H},priorSignature:z},{signingDate:O});z=j.signature;let J=K.encode({headers:{...H,":chunk-signature":{type:"binary",value:vu5.fromHex(j.signature)}},body:_});$.enqueue(J)}catch(O){$.error(O)}}};return new TransformStream({...w})};class i07{messageSigner;eventStreamCodec;systemClockOffsetProvider;constructor(A){this.messageSigner=A.messageSigner,this.eventStreamCodec=new Tu5.EventStreamCodec(A.utf8Encoder,A.utf8Decoder),this.systemClockOffsetProvider=async()=>A.systemClockOffset??0}async handle(A,q,K={}){let Y=q.request,{body:z,headers:w,query:_}=Y;if(!(z instanceof ReadableStream))throw Error("Eventstream payload must be a ReadableStream.");let $=new TransformStream;Y.body=$.readable;let O;try{O=await A(q)}catch(D){throw Y.body.cancel(),D}let j=((w.authorization||"").match(/Signature=([\w]+)$/)||[])[1]||_&&_["X-Amz-Signature"]||"",J=Nu5(j,await this.messageSigner(),this.eventStreamCodec,this.systemClockOffsetProvider);return z.pipeThrough(J).pipeThrough($),O}}var ku5=(A)=>new i07(A),Eu5=()=>(A)=>async(q)=>{let K={...q.input},Y=await A(q),z=Y.output;if(K.SessionId&&z.SessionId==null)z.SessionId=K.SessionId;return Y},Lu5={step:"initialize",name:"injectSessionIdMiddleware",tags:["WEBSOCKET","EVENT_STREAM"],override:!0},yu5=(A,q)=>(K)=>(Y)=>{let{request:z}=Y;if(j28.HttpRequest.isInstance(z)&&A.requestHandler.metadata?.handlerProtocol?.toLowerCase().includes("websocket")){z.protocol="wss:",z.method="GET",z.path=`${z.path}-websocket`;let{headers:w}=z;delete w["content-type"],delete w["x-amz-content-sha256"];for(let _ of Object.keys(w))if(_.indexOf(q.headerPrefix)===0){let $=_.replace(q.headerPrefix,"");z.query[$]=w[_]}if(w["x-amz-user-agent"])z.query["user-agent"]=w["x-amz-user-agent"];z.headers={host:w.host??z.hostname}}return K(Y)},Ru5={name:"websocketEndpointMiddleware",tags:["WEBSOCKET","EVENT_STREAM"],relation:"after",toMiddleware:"eventStreamHeaderMiddleware",override:!0},Su5=(A,q)=>({applyToStack:(K)=>{K.addRelativeTo(yu5(A,q),Ru5),K.add(Eu5(),Lu5)}}),n07=(A)=>A.protocol==="ws:"||A.protocol==="wss:";class r07{signer;constructor(A){this.signer=A.signer}presign(A,q={}){return this.signer.presign(A,q)}async sign(A,q){if(j28.HttpRequest.isInstance(A)&&n07(A))return{...await this.signer.presign({...A,body:""},{...q,expiresIn:60,unsignableHeaders:new Set(Object.keys(A.headers).filter((Y)=>Y!=="host"))}),body:A.body};else return this.signer.sign(A,q)}}var hu5=(A)=>{let{signer:q}=A;return Object.assign(A,{signer:async(K)=>{let Y=await q(K);if(Cu5(Y))return new r07({signer:Y});throw Error("Expected WebsocketSignatureV4 signer, please check the client constructor.")}})},Cu5=(A)=>!!A,Iu5=2000;class J28{metadata={handlerProtocol:"websocket/h1.1"};config;configPromise;httpHandler;sockets={};static create(A,q=new c07.FetchHttpHandler){if(typeof A?.handle==="function")return A;return new J28(A,q)}constructor(A,q=new c07.FetchHttpHandler){if(this.httpHandler=q,typeof A==="function")this.config={},this.configPromise=A().then((K)=>this.config=K??{});else this.config=A??{},this.configPromise=Promise.resolve(this.config)}destroy(){for(let[A,q]of Object.entries(this.sockets)){for(let K of q)K.close(1000,"Socket closed through destroy() call");delete this.sockets[A]}}async handle(A){if(!n07(A))return this.httpHandler.handle(A);let q=Vu5.formatUrl(A),K=new WebSocket(q);if(!this.sockets[q])this.sockets[q]=[];this.sockets[q].push(K),K.binaryType="arraybuffer",this.config=await this.configPromise;let{connectionTimeout:Y=Iu5}=this.config;await this.waitForReady(K,Y);let{body:z}=A,w=xu5(z),_=this.connect(K,w),$=bu5(_);return{response:new j28.HttpResponse({statusCode:200,body:$})}}updateHttpClientConfig(A,q){this.configPromise=this.configPromise.then((K)=>{return K[A]=q,K})}httpHandlerConfigs(){return this.config??{}}removeNotUsableSockets(A){this.sockets[A]=(this.sockets[A]??[]).filter((q)=>![WebSocket.CLOSING,WebSocket.CLOSED].includes(q.readyState))}waitForReady(A,q){return new Promise((K,Y)=>{let z=setTimeout(()=>{this.removeNotUsableSockets(A.url),Y({$metadata:{httpStatusCode:500}})},q);A.onopen=()=>{clearTimeout(z),K()}})}connect(A,q){let K=void 0,Y=!1,z=()=>{},w=()=>{};A.onmessage=(O)=>{w({done:!1,value:new Uint8Array(O.data)})},A.onerror=(O)=>{Y=!0,A.close(),z(O)},A.onclose=()=>{if(this.removeNotUsableSockets(A.url),Y)return;if(K)z(K);else w({done:!0,value:void 0})};let _={[Symbol.asyncIterator]:()=>({next:()=>{return new Promise((O,H)=>{w=O,z=H})}})};return(async()=>{try{for await(let O of q)A.send(O)}catch(O){K=O}finally{A.close(1000)}})(),_}}var xu5=(A)=>{if(A[Symbol.asyncIterator])return A;if(uu5(A))return l07.readableStreamtoIterable(A);return{[Symbol.asyncIterator]:async function*(){yield A}}},bu5=(A)=>typeof ReadableStream==="function"?l07.iterableToReadableStream(A):A,uu5=(A)=>typeof ReadableStream==="function"&&A instanceof ReadableStream;mu5.WebSocketFetchHandler=J28;mu5.eventStreamPayloadHandlerProvider=ku5;mu5.getWebSocketPlugin=Su5;mu5.resolveWebSocketConfig=hu5});var a07=h((Uu5)=>{var Qu5=(A)=>Object.assign(A,{eventStreamMarshaller:A.eventStreamSerdeProvider(A)});Uu5.resolveEventStreamSerdeConfig=Qu5});var Z28=h((ou5)=>{ou5.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(ou5.HttpAuthLocation||(ou5.HttpAuthLocation={}));ou5.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(ou5.HttpApiKeyAuthLocation||(ou5.HttpApiKeyAuthLocation={}));ou5.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(ou5.EndpointURLScheme||(ou5.EndpointURLScheme={}));ou5.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(ou5.AlgorithmId||(ou5.AlgorithmId={}));var cu5=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>ou5.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>ou5.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},lu5=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},iu5=(A)=>{return cu5(A)},nu5=(A)=>{return lu5(A)};ou5.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(ou5.FieldPosition||(ou5.FieldPosition={}));var ru5="__smithy_context";ou5.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(ou5.IniSectionType||(ou5.IniSectionType={}));ou5.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(ou5.RequestHandlerProtocol||(ou5.RequestHandlerProtocol={}));ou5.SMITHY_CONTEXT_KEY=ru5;ou5.getDefaultClientConfiguration=iu5;ou5.resolveDefaultRuntimeConfig=nu5});var Du6=h((bX6)=>{var e07=tm(),N28=Fv(),T28=Z28(),eu5=RO(),s07=pv();class AW7{config;middlewareStack=e07.constructStack();initConfig;handlers;constructor(A){this.config=A}send(A,q,K){let Y=typeof q!=="function"?q:void 0,z=typeof q==="function"?q:K,w=Y===void 0&&this.config.cacheMiddleware===!0,_;if(w){if(!this.handlers)this.handlers=new WeakMap;let $=this.handlers;if($.has(A.constructor))_=$.get(A.constructor);else _=A.resolveMiddleware(this.middlewareStack,this.config,Y),$.set(A.constructor,_)}else delete this.handlers,_=A.resolveMiddleware(this.middlewareStack,this.config,Y);if(z)_(A).then(($)=>z(null,$.output),($)=>z($)).catch(()=>{});else return _(A).then(($)=>$.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var f28="***SensitiveInformation***";function v28(A,q){if(q==null)return q;let K=eu5.NormalizedSchema.of(A);if(K.getMergedTraits().sensitive)return f28;if(K.isListSchema()){if(!!K.getValueSchema().getMergedTraits().sensitive)return f28}else if(K.isMapSchema()){if(!!K.getKeySchema().getMergedTraits().sensitive||!!K.getValueSchema().getMergedTraits().sensitive)return f28}else if(K.isStructSchema()&&typeof q==="object"){let Y=q,z={};for(let[w,_]of K.structIterator())if(Y[w]!=null)z[w]=v28(_,Y[w]);return z}return q}class k28{middlewareStack=e07.constructStack();schema;static classBuilder(){return new qW7}resolveMiddlewareWithContext(A,q,K,{middlewareFn:Y,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,smithyContext:O,additionalContext:H,CommandCtor:j}){for(let P of Y.bind(this)(j,A,q,K))this.middlewareStack.use(P);let J=A.concat(this.middlewareStack),{logger:M}=q,D={logger:M,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,[T28.SMITHY_CONTEXT_KEY]:{commandInstance:this,...O},...H},{requestHandler:X}=q;return J.resolve((P)=>X.handle(P.request,K||{}),D)}}class qW7{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(A){this._init=A}ep(A){return this._ep=A,this}m(A){return this._middlewareFn=A,this}s(A,q,K={}){return this._smithyContext={service:A,operation:q,...K},this}c(A={}){return this._additionalContext=A,this}n(A,q){return this._clientName=A,this._commandName=q,this}f(A=(K)=>K,q=(K)=>K){return this._inputFilterSensitiveLog=A,this._outputFilterSensitiveLog=q,this}ser(A){return this._serializer=A,this}de(A){return this._deserializer=A,this}sc(A){return this._operationSchema=A,this._smithyContext.operationSchema=A,this}build(){let A=this,q;return q=class extends k28{input;static getEndpointParameterInstructions(){return A._ep}constructor(...[K]){super();this.input=K??{},A._init(this),this.schema=A._operationSchema}resolveMiddleware(K,Y,z){let w=A._operationSchema,_=w?.[4]??w?.input,$=w?.[5]??w?.output;return this.resolveMiddlewareWithContext(K,Y,z,{CommandCtor:q,middlewareFn:A._middlewareFn,clientName:A._clientName,commandName:A._commandName,inputFilterSensitiveLog:A._inputFilterSensitiveLog??(w?v28.bind(null,_):(O)=>O),outputFilterSensitiveLog:A._outputFilterSensitiveLog??(w?v28.bind(null,$):(O)=>O),smithyContext:A._smithyContext,additionalContext:A._additionalContext})}serialize=A._serializer;deserialize=A._deserializer}}}var Am5="***SensitiveInformation***",qm5=(A,q)=>{for(let K of Object.keys(A)){let Y=A[K],z=async function(_,$,O){let H=new Y(_);if(typeof $==="function")this.send(H,$);else if(typeof O==="function"){if(typeof $!=="object")throw Error(`Expected http options but got ${typeof $}`);this.send(H,$||{},O)}else return this.send(H,$)},w=(K[0].toLowerCase()+K.slice(1)).replace(/Command$/,"");q.prototype[w]=z}};class xX6 extends Error{$fault;$response;$retryable;$metadata;constructor(A){super(A.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=A.name,this.$fault=A.$fault,this.$metadata=A.$metadata}static isInstance(A){if(!A)return!1;let q=A;return xX6.prototype.isPrototypeOf(q)||Boolean(q.$fault)&&Boolean(q.$metadata)&&(q.$fault==="client"||q.$fault==="server")}static[Symbol.hasInstance](A){if(!A)return!1;let q=A;if(this===xX6)return xX6.isInstance(A);if(xX6.isInstance(A)){if(q.name&&this.name)return this.prototype.isPrototypeOf(A)||q.name===this.name;return this.prototype.isPrototypeOf(A)}return!1}}var KW7=(A,q={})=>{Object.entries(q).filter(([,Y])=>Y!==void 0).forEach(([Y,z])=>{if(A[Y]==null||A[Y]==="")A[Y]=z});let K=A.message||A.Message||"UnknownError";return A.message=K,delete A.Message,A},YW7=({output:A,parsedBody:q,exceptionCtor:K,errorCode:Y})=>{let z=Ym5(A),w=z.httpStatusCode?z.httpStatusCode+"":void 0,_=new K({name:q?.code||q?.Code||Y||w||"UnknownError",$fault:"client",$metadata:z});throw KW7(_,q)},Km5=(A)=>{return({output:q,parsedBody:K,errorCode:Y})=>{YW7({output:q,parsedBody:K,exceptionCtor:A,errorCode:Y})}},Ym5=(A)=>({httpStatusCode:A.statusCode,requestId:A.headers["x-amzn-requestid"]??A.headers["x-amzn-request-id"]??A.headers["x-amz-request-id"],extendedRequestId:A.headers["x-amz-id-2"],cfId:A.headers["x-amz-cf-id"]}),zm5=(A)=>{switch(A){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},t07=!1,wm5=(A)=>{if(A&&!t07&&parseInt(A.substring(1,A.indexOf(".")))<16)t07=!0},_m5=(A)=>{let q=[];for(let K in T28.AlgorithmId){let Y=T28.AlgorithmId[K];if(A[Y]===void 0)continue;q.push({algorithmId:()=>Y,checksumConstructor:()=>A[Y]})}return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},$m5=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},Om5=(A)=>{return{setRetryStrategy(q){A.retryStrategy=q},retryStrategy(){return A.retryStrategy}}},Hm5=(A)=>{let q={};return q.retryStrategy=A.retryStrategy(),q},zW7=(A)=>{return Object.assign(_m5(A),Om5(A))},jm5=zW7,Jm5=(A)=>{return Object.assign($m5(A),Hm5(A))},Mm5=(A)=>Array.isArray(A)?A:[A],wW7=(A)=>{for(let K in A)if(A.hasOwnProperty(K)&&A[K]["#text"]!==void 0)A[K]=A[K]["#text"];else if(typeof A[K]==="object"&&A[K]!==null)A[K]=wW7(A[K]);return A},Dm5=(A)=>{return A!=null};class _W7{trace(){}debug(){}info(){}warn(){}error(){}}function $W7(A,q,K){let Y,z,w;if(typeof q>"u"&&typeof K>"u")Y={},w=A;else if(Y=A,typeof q==="function")return z=q,w=K,Wm5(Y,z,w);else w=q;for(let _ of Object.keys(w)){if(!Array.isArray(w[_])){Y[_]=w[_];continue}OW7(Y,null,w,_)}return Y}var Xm5=(A)=>{let q={};for(let[K,Y]of Object.entries(A||{}))q[K]=[,Y];return q},Pm5=(A,q)=>{let K={};for(let Y in q)OW7(K,A,q,Y);return K},Wm5=(A,q,K)=>{return $W7(A,Object.entries(K).reduce((Y,[z,w])=>{if(Array.isArray(w))Y[z]=w;else if(typeof w==="function")Y[z]=[q,w()];else Y[z]=[q,w];return Y},{}))},OW7=(A,q,K,Y)=>{if(q!==null){let _=K[Y];if(typeof _==="function")_=[,_];let[$=Gm5,O=Zm5,H=Y]=_;if(typeof $==="function"&&$(q[H])||typeof $!=="function"&&!!$)A[Y]=O(q[H]);return}let[z,w]=K[Y];if(typeof w==="function"){let _,$=z===void 0&&(_=w())!=null,O=typeof z==="function"&&!!z(void 0)||typeof z!=="function"&&!!z;if($)A[Y]=_;else if(O)A[Y]=w()}else{let _=z===void 0&&w!=null,$=typeof z==="function"&&!!z(w)||typeof z!=="function"&&!!z;if(_||$)A[Y]=w}},Gm5=(A)=>A!=null,Zm5=(A)=>A,fm5=(A)=>{if(A!==A)return"NaN";switch(A){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return A}},Tm5=(A)=>A.toISOString().replace(".000Z","Z"),V28=(A)=>{if(A==null)return{};if(Array.isArray(A))return A.filter((q)=>q!=null).map(V28);if(typeof A==="object"){let q={};for(let K of Object.keys(A)){if(A[K]==null)continue;q[K]=V28(A[K])}return q}return A};Object.defineProperty(bX6,"collectBody",{enumerable:!0,get:function(){return N28.collectBody}});Object.defineProperty(bX6,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return N28.extendedEncodeURIComponent}});Object.defineProperty(bX6,"resolvedPath",{enumerable:!0,get:function(){return N28.resolvedPath}});bX6.Client=AW7;bX6.Command=k28;bX6.NoOpLogger=_W7;bX6.SENSITIVE_STRING=Am5;bX6.ServiceException=xX6;bX6._json=V28;bX6.convertMap=Xm5;bX6.createAggregatedClient=qm5;bX6.decorateServiceException=KW7;bX6.emitWarningIfUnsupportedVersion=wm5;bX6.getArrayIfSingleItem=Mm5;bX6.getDefaultClientConfiguration=jm5;bX6.getDefaultExtensionConfiguration=zW7;bX6.getValueFromTextNode=wW7;bX6.isSerializableHeaderValue=Dm5;bX6.loadConfigsForDefaultMode=zm5;bX6.map=$W7;bX6.resolveDefaultRuntimeConfig=Jm5;bX6.serializeDateTime=Tm5;bX6.serializeFloat=fm5;bX6.take=Pm5;bX6.throwDefaultError=YW7;bX6.withBaseException=Km5;Object.keys(s07).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(bX6,A))Object.defineProperty(bX6,A,{enumerable:!0,get:function(){return s07[A]}})})});var y28=h((HW7)=>{Object.defineProperty(HW7,"__esModule",{value:!0});HW7.resolveHttpAuthSchemeConfig=HW7.defaultBedrockRuntimeHttpAuthSchemeProvider=HW7.defaultBedrockRuntimeHttpAuthSchemeParametersProvider=void 0;var cm5=o_(),E28=Ew(),L28=WG(),lm5=async(A,q,K)=>{return{operation:(0,L28.getSmithyContext)(q).operation,region:await(0,L28.normalizeProvider)(A.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};HW7.defaultBedrockRuntimeHttpAuthSchemeParametersProvider=lm5;function im5(A){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"bedrock",region:A.region},propertiesExtractor:(q,K)=>({signingProperties:{config:q,context:K}})}}function nm5(A){return{schemeId:"smithy.api#httpBearerAuth",propertiesExtractor:({profile:q,filepath:K,configFilepath:Y,ignoreCache:z},w)=>({identityProperties:{profile:q,filepath:K,configFilepath:Y,ignoreCache:z}})}}var rm5=(A)=>{let q=[];switch(A.operation){default:q.push(im5(A)),q.push(nm5(A))}return q};HW7.defaultBedrockRuntimeHttpAuthSchemeProvider=rm5;var om5=(A)=>{let q=(0,E28.memoizeIdentityProvider)(A.token,E28.isIdentityExpired,E28.doesIdentityRequireRefresh),K=(0,cm5.resolveAwsSdkSigV4Config)(A);return Object.assign(K,{authSchemePreference:(0,L28.normalizeProvider)(A.authSchemePreference??[]),token:q})};HW7.resolveHttpAuthSchemeConfig=om5});var JW7=h((j22,tm5)=>{tm5.exports={name:"@aws-sdk/client-bedrock-runtime",description:"AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",version:"3.936.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-bedrock-runtime","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo bedrock-runtime"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.936.0","@aws-sdk/credential-provider-node":"3.936.0","@aws-sdk/eventstream-handler-node":"3.936.0","@aws-sdk/middleware-eventstream":"3.936.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.936.0","@aws-sdk/middleware-user-agent":"3.936.0","@aws-sdk/middleware-websocket":"3.936.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/token-providers":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.936.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.5","@smithy/eventstream-serde-browser":"^4.2.5","@smithy/eventstream-serde-config-resolver":"^4.3.5","@smithy/eventstream-serde-node":"^4.2.5","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.12","@smithy/middleware-retry":"^4.4.12","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.8","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.11","@smithy/util-defaults-mode-node":"^4.2.14","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-stream":"^4.5.6","@smithy/util-utf8":"^4.2.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.8.3"},engines:{node:">=18.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock-runtime",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-bedrock-runtime"}}});var XW7=h((KB5)=>{var em5=Ou6(),w21=u6("stream");class MW7 extends w21.Transform{priorSignature;messageSigner;eventStreamCodec;systemClockOffsetProvider;constructor(A){super({autoDestroy:!0,readableObjectMode:!0,writableObjectMode:!0,...A});this.priorSignature=A.priorSignature,this.eventStreamCodec=A.eventStreamCodec,this.messageSigner=A.messageSigner,this.systemClockOffsetProvider=A.systemClockOffsetProvider}async _transform(A,q,K){try{let Y=new Date(Date.now()+await this.systemClockOffsetProvider()),z={":date":{type:"timestamp",value:Y}},w=await this.messageSigner.sign({message:{body:A,headers:z},priorSignature:this.priorSignature},{signingDate:Y});this.priorSignature=w.signature;let _=this.eventStreamCodec.encode({headers:{...z,":chunk-signature":{type:"binary",value:AB5(w.signature)}},body:A});return this.push(_),K()}catch(Y){K(Y)}}}function AB5(A){let q=Buffer.from(A,"hex");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength/Uint8Array.BYTES_PER_ELEMENT)}class DW7{messageSigner;eventStreamCodec;systemClockOffsetProvider;constructor(A){this.messageSigner=A.messageSigner,this.eventStreamCodec=new em5.EventStreamCodec(A.utf8Encoder,A.utf8Decoder),this.systemClockOffsetProvider=async()=>A.systemClockOffset??0}async handle(A,q,K={}){let Y=q.request,{body:z,query:w}=Y;if(!(z instanceof w21.Readable))throw Error("Eventstream payload must be a Readable stream.");let _=z;Y.body=new w21.PassThrough({objectMode:!0});let O=Y.headers?.authorization?.match(/Signature=([\w]+)$/)?.[1]??w?.["X-Amz-Signature"]??"",H=new MW7({priorSignature:O,eventStreamCodec:this.eventStreamCodec,messageSigner:await this.messageSigner(),systemClockOffsetProvider:this.systemClockOffsetProvider});w21.pipeline(_,H,Y.body,(J)=>{if(J)throw J});let j;try{j=await A(q)}catch(J){throw Y.body.end(),J}return j}}var qB5=(A)=>new DW7(A);KB5.eventStreamPayloadHandlerProvider=qB5});var PW7=h(($B5)=>{var Xu6=Ou6();function zB5(A){let q=0,K=0,Y=null,z=null,w=($)=>{if(typeof $!=="number")throw Error("Attempted to allocate an event message where size was not a number: "+$);q=$,K=4,Y=new Uint8Array($),new DataView(Y.buffer).setUint32(0,$,!1)},_=async function*(){let $=A[Symbol.asyncIterator]();while(!0){let{value:O,done:H}=await $.next();if(H){if(!q)return;else if(q===K)yield Y;else throw Error("Truncated event message received.");return}let j=O.length,J=0;while(J<j){if(!Y){let D=j-J;if(!z)z=new Uint8Array(4);let X=Math.min(4-K,D);if(z.set(O.slice(J,J+X),K),K+=X,J+=X,K<4)break;w(new DataView(z.buffer).getUint32(0,!1)),z=null}let M=Math.min(q-K,j-J);if(Y.set(O.slice(J,J+M),K),K+=M,J+=M,q&&q===K)yield Y,Y=null,q=0,K=0}}};return{[Symbol.asyncIterator]:_}}function wB5(A,q){return async function(K){let{value:Y}=K.headers[":message-type"];if(Y==="error"){let z=Error(K.headers[":error-message"].value||"UnknownError");throw z.name=K.headers[":error-code"].value,z}else if(Y==="exception"){let z=K.headers[":exception-type"].value,w={[z]:K},_=await A(w);if(_.$unknown){let $=Error(q(K.body));throw $.name=z,$}throw _[z]}else if(Y==="event"){let z={[K.headers[":event-type"].value]:K},w=await A(z);if(w.$unknown)return;return w}else throw Error(`Unrecognizable event type: ${K.headers[":event-type"].value}`)}}class R28{eventStreamCodec;utfEncoder;constructor({utf8Encoder:A,utf8Decoder:q}){this.eventStreamCodec=new Xu6.EventStreamCodec(A,q),this.utfEncoder=A}deserialize(A,q){let K=zB5(A);return new Xu6.SmithyMessageDecoderStream({messageStream:new Xu6.MessageDecoderStream({inputStream:K,decoder:this.eventStreamCodec}),deserializer:wB5(q,this.utfEncoder)})}serialize(A,q){return new Xu6.MessageEncoderStream({messageStream:new Xu6.SmithyMessageEncoderStream({inputStream:A,serializer:q}),encoder:this.eventStreamCodec,includeEndFrame:!0})}}var _B5=(A)=>new R28(A);$B5.EventStreamMarshaller=R28;$B5.eventStreamSerdeProvider=_B5});var WW7=h((XB5)=>{var jB5=PW7(),JB5=u6("stream");async function*MB5(A){let q=!1,K=!1,Y=[];A.on("error",(z)=>{if(!q)q=!0;if(z)throw z}),A.on("data",(z)=>{Y.push(z)}),A.on("end",()=>{q=!0});while(!K){let z=await new Promise((w)=>setTimeout(()=>w(Y.shift()),0));if(z)yield z;K=q&&Y.length===0}}class S28{universalMarshaller;constructor({utf8Encoder:A,utf8Decoder:q}){this.universalMarshaller=new jB5.EventStreamMarshaller({utf8Decoder:q,utf8Encoder:A})}deserialize(A,q){let K=typeof A[Symbol.asyncIterator]==="function"?A:MB5(A);return this.universalMarshaller.deserialize(K,q)}serialize(A,q){return JB5.Readable.from(this.universalMarshaller.serialize(A,q))}}var DB5=(A)=>new S28(A);XB5.EventStreamMarshaller=S28;XB5.eventStreamSerdeProvider=DB5});var GW7=h((ZB5)=>{var GB5=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";ZB5.isArrayBuffer=GB5});var C28=h((NB5)=>{var TB5=GW7(),h28=u6("buffer"),vB5=(A,q=0,K=A.byteLength-q)=>{if(!TB5.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return h28.Buffer.from(A,q,K)},VB5=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?h28.Buffer.from(A,q):h28.Buffer.from(A)};NB5.fromArrayBuffer=vB5;NB5.fromString=VB5});var TW7=h((ZW7)=>{Object.defineProperty(ZW7,"__esModule",{value:!0});ZW7.fromBase64=void 0;var LB5=C28(),yB5=/^[A-Za-z0-9+/]*={0,2}$/,RB5=(A)=>{if(A.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!yB5.exec(A))throw TypeError("Invalid base64 string.");let q=(0,LB5.fromString)(A,"base64");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength)};ZW7.fromBase64=RB5});var NW7=h((vW7)=>{Object.defineProperty(vW7,"__esModule",{value:!0});vW7.toBase64=void 0;var SB5=C28(),hB5=K2(),CB5=(A)=>{let q;if(typeof A==="string")q=(0,hB5.fromUtf8)(A);else q=A;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,SB5.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("base64")};vW7.toBase64=CB5});var LW7=h((Pu6)=>{var kW7=TW7(),EW7=NW7();Object.keys(kW7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(Pu6,A))Object.defineProperty(Pu6,A,{enumerable:!0,get:function(){return kW7[A]}})});Object.keys(EW7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(Pu6,A))Object.defineProperty(Pu6,A,{enumerable:!0,get:function(){return EW7[A]}})})});var UW7=h((FW7)=>{Object.defineProperty(FW7,"__esModule",{value:!0});FW7.ruleSet=void 0;var BW7="required",PB="fn",WB="argv",mX6="ref",yW7=!0,RW7="isSet",Gu6="booleanEquals",uX6="error",Wu6="endpoint",Gf="tree",I28="PartitionResult",SW7={[BW7]:!1,type:"string"},hW7={[BW7]:!0,default:!1,type:"boolean"},CW7={[mX6]:"Endpoint"},gW7={[PB]:Gu6,[WB]:[{[mX6]:"UseFIPS"},!0]},pW7={[PB]:Gu6,[WB]:[{[mX6]:"UseDualStack"},!0]},XB={},IW7={[PB]:"getAttr",[WB]:[{[mX6]:I28},"supportsFIPS"]},xW7={[PB]:Gu6,[WB]:[!0,{[PB]:"getAttr",[WB]:[{[mX6]:I28},"supportsDualStack"]}]},bW7=[gW7],uW7=[pW7],mW7=[{[mX6]:"Region"}],IB5={version:"1.0",parameters:{Region:SW7,UseDualStack:hW7,UseFIPS:hW7,Endpoint:SW7},rules:[{conditions:[{[PB]:RW7,[WB]:[CW7]}],rules:[{conditions:bW7,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:uX6},{rules:[{conditions:uW7,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:uX6},{endpoint:{url:CW7,properties:XB,headers:XB},type:Wu6}],type:Gf}],type:Gf},{rules:[{conditions:[{[PB]:RW7,[WB]:mW7}],rules:[{conditions:[{[PB]:"aws.partition",[WB]:mW7,assign:I28}],rules:[{conditions:[gW7,pW7],rules:[{conditions:[{[PB]:Gu6,[WB]:[yW7,IW7]},xW7],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:XB,headers:XB},type:Wu6}],type:Gf}],type:Gf},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:uX6}],type:Gf},{conditions:bW7,rules:[{conditions:[{[PB]:Gu6,[WB]:[IW7,yW7]}],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:XB,headers:XB},type:Wu6}],type:Gf}],type:Gf},{error:"FIPS is enabled but this partition does not support FIPS",type:uX6}],type:Gf},{conditions:uW7,rules:[{conditions:[xW7],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:XB,headers:XB},type:Wu6}],type:Gf}],type:Gf},{error:"DualStack is enabled but this partition does not support DualStack",type:uX6}],type:Gf},{rules:[{endpoint:{url:"https://bedrock-runtime.{Region}.{PartitionResult#dnsSuffix}",properties:XB,headers:XB},type:Wu6}],type:Gf}],type:Gf}],type:Gf},{error:"Invalid Configuration: Missing Region",type:uX6}],type:Gf}]};FW7.ruleSet=IB5});var lW7=h((dW7)=>{Object.defineProperty(dW7,"__esModule",{value:!0});dW7.defaultEndpointResolver=void 0;var xB5=AB(),x28=YI(),bB5=UW7(),uB5=new x28.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),mB5=(A,q={})=>{return uB5.get(A,()=>(0,x28.resolveEndpoint)(bB5.ruleSet,{endpointParams:A,logger:q.logger}))};dW7.defaultEndpointResolver=mB5;x28.customEndpointFunctions.aws=xB5.awsEndpointFunctions});var aW7=h((rW7)=>{Object.defineProperty(rW7,"__esModule",{value:!0});rW7.getRuntimeConfig=void 0;var BB5=o_(),gB5=bd(),pB5=Ew(),FB5=Du6(),QB5=py(),iW7=LW7(),nW7=K2(),UB5=y28(),dB5=lW7(),cB5=(A)=>{return{apiVersion:"2023-09-30",base64Decoder:A?.base64Decoder??iW7.fromBase64,base64Encoder:A?.base64Encoder??iW7.toBase64,disableHostPrefix:A?.disableHostPrefix??!1,endpointProvider:A?.endpointProvider??dB5.defaultEndpointResolver,extensions:A?.extensions??[],httpAuthSchemeProvider:A?.httpAuthSchemeProvider??UB5.defaultBedrockRuntimeHttpAuthSchemeProvider,httpAuthSchemes:A?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(q)=>q.getIdentityProvider("aws.auth#sigv4"),signer:new BB5.AwsSdkSigV4Signer},{schemeId:"smithy.api#httpBearerAuth",identityProvider:(q)=>q.getIdentityProvider("smithy.api#httpBearerAuth"),signer:new pB5.HttpBearerAuthSigner}],logger:A?.logger??new FB5.NoOpLogger,protocol:A?.protocol??new gB5.AwsRestJsonProtocol({defaultNamespace:"com.amazonaws.bedrockruntime"}),serviceId:A?.serviceId??"Bedrock Runtime",urlParser:A?.urlParser??QB5.parseUrl,utf8Decoder:A?.utf8Decoder??nW7.fromUtf8,utf8Encoder:A?.utf8Encoder??nW7.toUtf8}};rW7.getRuntimeConfig=cB5});var YG7=h((qG7)=>{Object.defineProperty(qG7,"__esModule",{value:!0});qG7.getRuntimeConfig=void 0;var lB5=S2(),iB5=lB5.__importDefault(JW7()),b28=o_(),nB5=lK6(),rB5=XW7(),sW7=vz1(),tW7=hd(),_21=qJ(),oB5=Ew(),aB5=WW7(),sB5=Cd(),eW7=W0(),Y36=Bv(),AG7=uv(),tB5=Id(),eB5=YB(),Ag5=aW7(),qg5=Du6(),Kg5=md(),Yg5=Du6(),zg5=(A)=>{(0,Yg5.emitWarningIfUnsupportedVersion)(process.version);let q=(0,Kg5.resolveDefaultsModeConfig)(A),K=()=>q().then(qg5.loadConfigsForDefaultMode),Y=(0,Ag5.getRuntimeConfig)(A);(0,b28.emitWarningIfUnsupportedVersion)(process.version);let z={profile:A?.profile,logger:Y.logger,signingName:"bedrock"};return{...Y,...A,runtime:"node",defaultsMode:q,authSchemePreference:A?.authSchemePreference??(0,Y36.loadConfig)(b28.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,z),bodyLengthChecker:A?.bodyLengthChecker??tB5.calculateBodyLength,credentialDefaultProvider:A?.credentialDefaultProvider??nB5.defaultProvider,defaultUserAgentProvider:A?.defaultUserAgentProvider??(0,tW7.createDefaultUserAgentProvider)({serviceId:Y.serviceId,clientVersion:iB5.default.version}),eventStreamPayloadHandlerProvider:A?.eventStreamPayloadHandlerProvider??rB5.eventStreamPayloadHandlerProvider,eventStreamSerdeProvider:A?.eventStreamSerdeProvider??aB5.eventStreamSerdeProvider,httpAuthSchemes:A?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(w)=>w.getIdentityProvider("aws.auth#sigv4"),signer:new b28.AwsSdkSigV4Signer},{schemeId:"smithy.api#httpBearerAuth",identityProvider:(w)=>w.getIdentityProvider("smithy.api#httpBearerAuth")||(async(_)=>{try{return await(0,sW7.fromEnvSigningName)({signingName:"bedrock"})()}catch($){return await(0,sW7.nodeProvider)(_)(_)}}),signer:new oB5.HttpBearerAuthSigner}],maxAttempts:A?.maxAttempts??(0,Y36.loadConfig)(eW7.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,A),region:A?.region??(0,Y36.loadConfig)(_21.NODE_REGION_CONFIG_OPTIONS,{..._21.NODE_REGION_CONFIG_FILE_OPTIONS,...z}),requestHandler:AG7.NodeHttp2Handler.create(A?.requestHandler??(async()=>({...await K(),disableConcurrentStreams:!0}))),retryMode:A?.retryMode??(0,Y36.loadConfig)({...eW7.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await K()).retryMode||eB5.DEFAULT_RETRY_MODE},A),sha256:A?.sha256??sB5.Hash.bind(null,"sha256"),streamCollector:A?.streamCollector??AG7.streamCollector,useDualstackEndpoint:A?.useDualstackEndpoint??(0,Y36.loadConfig)(_21.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,z),useFipsEndpoint:A?.useFipsEndpoint??(0,Y36.loadConfig)(_21.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,z),userAgentAppId:A?.userAgentAppId??(0,Y36.loadConfig)(tW7.NODE_APP_ID_CONFIG_OPTIONS,z)}};qG7.getRuntimeConfig=zg5});var $G7=h((jg5)=>{var wg5=Z28(),_g5=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},$g5=(A)=>{return{httpHandler:A.httpHandler()}};class zG7{name;kind;values;constructor({name:A,kind:q=wg5.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class wG7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class $21{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new $21({...A,headers:{...A.headers}});if(q.query)q.query=Og5(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return $21.clone(this)}}function Og5(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class _G7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function Hg5(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}jg5.Field=zG7;jg5.Fields=wG7;jg5.HttpRequest=$21;jg5.HttpResponse=_G7;jg5.getHttpHandlerExtensionConfiguration=_g5;jg5.isValidHostname=Hg5;jg5.resolveHttpHandlerRuntimeConfig=$g5});var m21=h((N_8)=>{var vG7=yP7(),OG7=vd(),Zg5=Vd(),fg5=Nd(),HG7=KB(),VG7=o07(),Tg5=qJ(),O21=Ew(),iv=RO(),vg5=a07(),Vg5=Sd(),PI=zI(),jG7=W0(),v0=Du6(),JG7=y28(),Ng5=YG7(),MG7=wI(),DG7=$G7(),kg5=(A)=>{return Object.assign(A,{useDualstackEndpoint:A.useDualstackEndpoint??!1,useFipsEndpoint:A.useFipsEndpoint??!1,defaultSigningName:"bedrock"})},GB={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Eg5=(A)=>{let{httpAuthSchemes:q,httpAuthSchemeProvider:K,credentials:Y,token:z}=A;return{setHttpAuthScheme(w){let _=q.findIndex(($)=>$.schemeId===w.schemeId);if(_===-1)q.push(w);else q.splice(_,1,w)},httpAuthSchemes(){return q},setHttpAuthSchemeProvider(w){K=w},httpAuthSchemeProvider(){return K},setCredentials(w){Y=w},credentials(){return Y},setToken(w){z=w},token(){return z}}},Lg5=(A)=>{return{httpAuthSchemes:A.httpAuthSchemes(),httpAuthSchemeProvider:A.httpAuthSchemeProvider(),credentials:A.credentials(),token:A.token()}},yg5=(A,q)=>{let K=Object.assign(MG7.getAwsRegionExtensionConfiguration(A),v0.getDefaultExtensionConfiguration(A),DG7.getHttpHandlerExtensionConfiguration(A),Eg5(A));return q.forEach((Y)=>Y.configure(K)),Object.assign(A,MG7.resolveAwsRegionExtensionConfiguration(K),v0.resolveDefaultRuntimeConfig(K),DG7.resolveHttpHandlerRuntimeConfig(K),Lg5(K))};class j21 extends v0.Client{config;constructor(...[A]){let q=Ng5.getRuntimeConfig(A||{});super(q);this.initConfig=q;let K=kg5(q),Y=HG7.resolveUserAgentConfig(K),z=jG7.resolveRetryConfig(Y),w=Tg5.resolveRegionConfig(z),_=OG7.resolveHostHeaderConfig(w),$=PI.resolveEndpointConfig(_),O=vg5.resolveEventStreamSerdeConfig($),H=JG7.resolveHttpAuthSchemeConfig(O),j=vG7.resolveEventStreamConfig(H),J=VG7.resolveWebSocketConfig(j),M=yg5(J,A?.extensions||[]);this.config=M,this.middlewareStack.use(iv.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(HG7.getUserAgentPlugin(this.config)),this.middlewareStack.use(jG7.getRetryPlugin(this.config)),this.middlewareStack.use(Vg5.getContentLengthPlugin(this.config)),this.middlewareStack.use(OG7.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Zg5.getLoggerPlugin(this.config)),this.middlewareStack.use(fg5.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(O21.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:JG7.defaultBedrockRuntimeHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(D)=>new O21.DefaultIdentityProviderConfig({"aws.auth#sigv4":D.credentials,"smithy.api#httpBearerAuth":D.token})})),this.middlewareStack.use(O21.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}var nv=class A extends v0.ServiceException{constructor(q){super(q);Object.setPrototypeOf(this,A.prototype)}},NG7=class A extends nv{name="AccessDeniedException";$fault="client";constructor(q){super({name:"AccessDeniedException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},kG7=class A extends nv{name="InternalServerException";$fault="server";constructor(q){super({name:"InternalServerException",$fault:"server",...q});Object.setPrototypeOf(this,A.prototype)}},EG7=class A extends nv{name="ThrottlingException";$fault="client";constructor(q){super({name:"ThrottlingException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},LG7=class A extends nv{name="ValidationException";$fault="client";constructor(q){super({name:"ValidationException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},yG7=class A extends nv{name="ConflictException";$fault="client";constructor(q){super({name:"ConflictException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},RG7=class A extends nv{name="ResourceNotFoundException";$fault="client";constructor(q){super({name:"ResourceNotFoundException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},SG7=class A extends nv{name="ServiceQuotaExceededException";$fault="client";constructor(q){super({name:"ServiceQuotaExceededException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},hG7=class A extends nv{name="ServiceUnavailableException";$fault="server";constructor(q){super({name:"ServiceUnavailableException",$fault:"server",...q});Object.setPrototypeOf(this,A.prototype)}},CG7=class A extends nv{name="ModelErrorException";$fault="client";originalStatusCode;resourceName;constructor(q){super({name:"ModelErrorException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.originalStatusCode=q.originalStatusCode,this.resourceName=q.resourceName}},IG7=class A extends nv{name="ModelNotReadyException";$fault="client";$retryable={};constructor(q){super({name:"ModelNotReadyException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},xG7=class A extends nv{name="ModelTimeoutException";$fault="client";constructor(q){super({name:"ModelTimeoutException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},bG7=class A extends nv{name="ModelStreamErrorException";$fault="client";originalStatusCode;originalMessage;constructor(q){super({name:"ModelStreamErrorException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.originalStatusCode=q.originalStatusCode,this.originalMessage=q.originalMessage}},Rg5="Accept",Sg5="AccessDeniedException",hg5="ApplyGuardrail",Cg5="ApplyGuardrailRequest",Ig5="ApplyGuardrailResponse",xg5="AsyncInvokeMessage",bg5="AsyncInvokeOutputDataConfig",ug5="AsyncInvokeSummary",mg5="AsyncInvokeS3OutputDataConfig",Bg5="AsyncInvokeSummaries",gg5="AnyToolChoice",pg5="AutoToolChoice",Fg5="Body",Qg5="BidirectionalInputPayloadPart",Ug5="BidirectionalOutputPayloadPart",dg5="Citation",cg5="ContentBlocks",lg5="ContentBlockDelta",ig5="ContentBlockDeltaEvent",ng5="ContentBlockStart",rg5="ContentBlockStartEvent",og5="ContentBlockStopEvent",ag5="ContentBlock",sg5="CitationsConfig",tg5="CitationsContentBlock",eg5="CitationsDelta",Ap5="ConflictException",qp5="CitationGeneratedContent",Kp5="CitationGeneratedContentList",Yp5="CitationLocation",zp5="ConverseMetrics",wp5="ConverseOutput",_p5="CachePointBlock",$p5="ConverseRequest",Op5="ConverseResponse",Hp5="ConverseStream",jp5="CitationSourceContent",Jp5="CitationSourceContentDelta",Mp5="CitationSourceContentList",Dp5="CitationSourceContentListDelta",Xp5="ConverseStreamMetrics",Pp5="ConverseStreamMetadataEvent",Wp5="ConverseStreamOutput",Gp5="ConverseStreamRequest",Zp5="ConverseStreamResponse",fp5="ConverseStreamTrace",Tp5="ConverseTrace",vp5="CountTokensInput",Vp5="ConverseTokensRequest",Np5="CountTokensRequest",kp5="CountTokensResponse",m28="Content-Type",Ep5="CountTokens",Lp5="Citations",yp5="Converse",Rp5="DocumentBlock",Sp5="DocumentContentBlocks",hp5="DocumentContentBlock",Cp5="DocumentCharLocation",Ip5="DocumentChunkLocation",xp5="DocumentPageLocation",bp5="DocumentSource",up5="GuardrailAssessment",mp5="GetAsyncInvoke",Bp5="GetAsyncInvokeRequest",gp5="GetAsyncInvokeResponse",pp5="GuardrailAssessmentList",Fp5="GuardrailAssessmentListMap",Qp5="GuardrailAssessmentMap",Up5="GuardrailAutomatedReasoningDifferenceScenarioList",dp5="GuardrailAutomatedReasoningFinding",cp5="GuardrailAutomatedReasoningFindingList",lp5="GuardrailAutomatedReasoningImpossibleFinding",ip5="GuardrailAutomatedReasoningInvalidFinding",np5="GuardrailAutomatedReasoningInputTextReference",rp5="GuardrailAutomatedReasoningInputTextReferenceList",op5="GuardrailAutomatedReasoningLogicWarning",ap5="GuardrailAutomatedReasoningNoTranslationsFinding",sp5="GuardrailAutomatedReasoningPolicyAssessment",tp5="GuardrailAutomatedReasoningRule",ep5="GuardrailAutomatedReasoningRuleList",AF5="GuardrailAutomatedReasoningScenario",qF5="GuardrailAutomatedReasoningSatisfiableFinding",KF5="GuardrailAutomatedReasoningStatementList",YF5="GuardrailAutomatedReasoningStatementLogicContent",zF5="GuardrailAutomatedReasoningStatementNaturalLanguageContent",wF5="GuardrailAutomatedReasoningStatement",_F5="GuardrailAutomatedReasoningTranslation",$F5="GuardrailAutomatedReasoningTranslationAmbiguousFinding",OF5="GuardrailAutomatedReasoningTooComplexFinding",HF5="GuardrailAutomatedReasoningTranslationList",jF5="GuardrailAutomatedReasoningTranslationOption",JF5="GuardrailAutomatedReasoningTranslationOptionList",MF5="GuardrailAutomatedReasoningValidFinding",DF5="GuardrailConfiguration",XF5="GuardrailContentBlock",PF5="GuardrailContentBlockList",WF5="GuardrailConverseContentBlock",GF5="GuardrailContentFilter",ZF5="GuardrailContentFilterList",fF5="GuardrailContextualGroundingFilter",TF5="GuardrailContextualGroundingFilters",vF5="GuardrailContextualGroundingPolicyAssessment",VF5="GuardrailConverseImageBlock",NF5="GuardrailConverseImageSource",kF5="GuardrailContentPolicyAssessment",EF5="GuardrailConverseTextBlock",LF5="GuardrailCustomWord",yF5="GuardrailCustomWordList",RF5="GuardrailCoverage",SF5="GuardrailImageBlock",hF5="GuardrailImageCoverage",CF5="GuardrailInvocationMetrics",IF5="GuardrailImageSource",xF5="GuardrailManagedWord",bF5="GuardrailManagedWordList",uF5="GuardrailOutputContent",mF5="GuardrailOutputContentList",BF5="GuardrailPiiEntityFilter",gF5="GuardrailPiiEntityFilterList",pF5="GuardrailRegexFilter",FF5="GuardrailRegexFilterList",QF5="GuardrailStreamConfiguration",UF5="GuardrailSensitiveInformationPolicyAssessment",dF5="GuardrailTopic",cF5="GuardrailTraceAssessment",lF5="GuardrailTextBlock",iF5="GuardrailTextCharactersCoverage",nF5="GuardrailTopicList",rF5="GuardrailTopicPolicyAssessment",oF5="GuardrailUsage",aF5="GuardrailWordPolicyAssessment",sF5="ImageBlock",tF5="InferenceConfiguration",eF5="InvokeModel",AQ5="InvokeModelRequest",qQ5="InvokeModelResponse",KQ5="InvokeModelTokensRequest",YQ5="InvokeModelWithBidirectionalStream",zQ5="InvokeModelWithBidirectionalStreamInput",wQ5="InvokeModelWithBidirectionalStreamOutput",_Q5="InvokeModelWithBidirectionalStreamRequest",$Q5="InvokeModelWithBidirectionalStreamResponse",OQ5="InvokeModelWithResponseStream",HQ5="InvokeModelWithResponseStreamRequest",jQ5="InvokeModelWithResponseStreamResponse",JQ5="ImageSource",MQ5="InternalServerException",DQ5="ListAsyncInvokes",XQ5="ListAsyncInvokesRequest",PQ5="ListAsyncInvokesResponse",WQ5="Message",GQ5="ModelErrorException",ZQ5="ModelInputPayload",fQ5="ModelNotReadyException",TQ5="MessageStartEvent",vQ5="ModelStreamErrorException",VQ5="MessageStopEvent",NQ5="ModelTimeoutException",kQ5="Messages",EQ5="PartBody",LQ5="PerformanceConfiguration",yQ5="PayloadPart",RQ5="PromptRouterTrace",SQ5="PromptVariableMap",hQ5="PromptVariableValues",CQ5="ReasoningContentBlock",IQ5="ReasoningContentBlockDelta",xQ5="RequestMetadata",bQ5="ResourceNotFoundException",uQ5="ResponseStream",mQ5="ReasoningTextBlock",BQ5="StartAsyncInvoke",gQ5="StartAsyncInvokeRequest",pQ5="StartAsyncInvokeResponse",FQ5="SystemContentBlocks",QQ5="SystemContentBlock",UQ5="S3Location",dQ5="ServiceQuotaExceededException",cQ5="SearchResultBlock",lQ5="SearchResultContentBlock",iQ5="SearchResultContentBlocks",nQ5="SearchResultLocation",rQ5="ServiceTier",oQ5="SpecificToolChoice",aQ5="SystemTool",sQ5="ServiceUnavailableException",tQ5="Tag",eQ5="ToolConfiguration",AU5="ToolChoice",qU5="ThrottlingException",KU5="ToolInputSchema",YU5="TagList",zU5="ToolResultBlock",wU5="ToolResultBlocksDelta",_U5="ToolResultBlockDelta",$U5="ToolResultBlockStart",OU5="ToolResultContentBlocks",HU5="ToolResultContentBlock",jU5="ToolSpecification",JU5="TokenUsage",MU5="ToolUseBlock",DU5="ToolUseBlockDelta",XU5="ToolUseBlockStart",PU5="Tools",WU5="Tool",GU5="VideoBlock",ZU5="ValidationException",fU5="VideoSource",TU5="WebLocation",vU5="X-Amzn-Bedrock-Accept",VU5="X-Amzn-Bedrock-Content-Type",uG7="X-Amzn-Bedrock-GuardrailIdentifier",mG7="X-Amzn-Bedrock-GuardrailVersion",J21="X-Amzn-Bedrock-PerformanceConfig-Latency",M21="X-Amzn-Bedrock-Service-Tier",BG7="X-Amzn-Bedrock-Trace",Ot="action",NU5="asyncInvokeSummaries",B28="additionalModelRequestFields",gG7="additionalModelResponseFieldPaths",pG7="additionalModelResponseFields",FG7="actionReason",kU5="automatedReasoningPolicy",EU5="automatedReasoningPolicyUnits",LU5="automatedReasoningPolicies",QG7="accept",yU5="any",RU5="assessments",SU5="auto",Ht="bytes",UG7="bucketOwner",w36="body",ZB="client",hU5="contentBlockDelta",g28="contentBlockIndex",CU5="contentBlockStart",IU5="contentBlockStop",xU5="citationsContent",bU5="claimsFalseScenario",uU5="contextualGroundingPolicy",mU5="contextualGroundingPolicyUnits",BU5="contentPolicy",gU5="contentPolicyImageUnits",pU5="contentPolicyUnits",p28="cachePoint",dG7="contradictingRules",FU5="cacheReadInputTokens",F28="clientRequestToken",D21="contentType",cG7="claimsTrueScenario",QU5="customWords",UU5="cacheWriteInputTokens",Q28="chunk",U28="citations",dU5="citation",lG7="claims",BX6="content",cU5="context",iG7="confidence",lU5="converse",iU5="delta",nU5="documentChar",rU5="documentChunk",d28="documentIndex",oU5="documentPage",aU5="differenceScenarios",_36="detected",sU5="description",tU5="domain",nG7="document",zR="error",rG7="endTime",eU5="enabled",X21="end",fu6="format",oG7="failureMessage",Ad5="filterStrength",qd5="findings",aG7="filters",sG7="guardrail",tG7="guardrailCoverage",eG7="guardrailConfig",AZ7="guardContent",Tu6="guardrailIdentifier",Kd5="guardrailProcessingLatency",vu6="guardrailVersion",qZ7="guarded",fB="http",wR="httpError",WM="httpHeader",z36="httpQuery",c28="input",P21="invocationArn",Yd5="inputAssessment",KZ7="inferenceConfig",zd5="invocationMetrics",wd5="invokedModelId",_d5="invokeModel",$d5="inputSchema",l28="internalServerException",YZ7="inputTokens",Od5="identifier",Hd5="images",W21="image",jd5="impossible",Jd5="invalid",zZ7="json",Md5="key",Dd5="kmsKeyId",wZ7="location",_Z7="latencyMs",$Z7="lastModifiedTime",G21="logicWarning",Xd5="latency",Pd5="logic",xk="message",OZ7="modelArn",$36="modelId",Wd5="modelInput",Gd5="modelOutput",XG7="maxResults",Zd5="messageStart",i28="modelStreamErrorException",fd5="messageStop",Td5="maxTokens",HZ7="modelTimeoutException",vd5="managedWordLists",Z21="match",n28="messages",jZ7="metrics",Vd5="metadata",jt="name",Nd5="naturalLanguage",u28="nextToken",kd5="noTranslations",Ed5="outputs",Ld5="outputAssessments",r28="outputDataConfig",yd5="originalMessage",Rd5="outputScope",JZ7="originalStatusCode",Sd5="outputTokens",hd5="options",Cd5="output",MZ7="premises",f21="performanceConfig",T21="performanceConfigLatency",Id5="piiEntities",DZ7="promptRouter",XZ7="promptVariables",xd5="policyVersionArn",PZ7="qualifiers",bd5="regex",WZ7="reasoningContent",GZ7="redactedContent",ZZ7="requestMetadata",ud5="resourceName",md5="reasoningText",Bd5="regexes",fZ7="role",ld="source",PG7="sortBy",TZ7="sourceContent",WG7="statusEquals",gd5="sensitiveInformationPolicy",pd5="sensitiveInformationPolicyFreeUnits",Fd5="sensitiveInformationPolicyUnits",o28="s3Location",GG7="sortOrder",Qd5="s3OutputDataConfig",Ud5="streamProcessingMode",vZ7="stopReason",dd5="searchResultIndex",cd5="searchResultLocation",VZ7="searchResult",ld5="supportingRules",id5="stopSequences",NZ7="submitTime",ZG7="submitTimeAfter",fG7="submitTimeBefore",Jt="serviceTier",nd5="systemTool",rd5="s3Uri",a28="serviceUnavailableException",od5="satisfiable",ad5="score",kZ7="server",EZ7="signature",LZ7="smithy.ts.sdk.synthetic.com.amazonaws.bedrockruntime",v21="status",Vu6="start",sd5="statements",td5="stream",V21="streaming",s28="system",_R="type",ed5="translationAmbiguous",t28="toolConfig",Ac5="textCharacters",qc5="toolChoice",Kc5="tooComplex",e28="throttlingException",Yc5="topicPolicy",zc5="topicPolicyUnits",wc5="topP",A_8="toolResult",_c5="toolSpec",$c5="totalTokens",q_8="toolUse",N21="toolUseId",Oc5="tags",GM="text",Hc5="temperature",jc5="threshold",K_8="title",yZ7="total",Jc5="tools",Mc5="tool",Dc5="topics",gX6="trace",k21="translation",Xc5="translations",E21="usage",Pc5="untranslatedClaims",Wc5="untranslatedPremises",Gc5="uri",Zc5="url",fc5="value",Y_8="validationException",Tc5="valid",RZ7="video",vc5="web",Vc5="wordPolicy",Nc5="wordPolicyUnits",c1="com.amazonaws.bedrockruntime",SZ7=[0,c1,xg5,8,0],L21=[0,c1,Fg5,8,21],kc5=[0,c1,YF5,8,0],hZ7=[0,c1,zF5,8,0],Ec5=[0,c1,ZQ5,8,15],z_8=[0,c1,EQ5,8,21],Lc5=[-3,c1,Sg5,{[zR]:ZB,[wR]:403},[xk],[0]];iv.TypeRegistry.for(c1).registerError(Lc5,NG7);var yc5=[3,c1,gg5,0,[],[]],Rc5=[3,c1,Cg5,0,[Tu6,vu6,ld,BX6,Rd5],[[0,1],[0,1],0,[()=>Si5,0],0]],Sc5=[3,c1,Ig5,0,[E21,Ot,FG7,Ed5,RU5,tG7],[()=>mZ7,0,0,()=>bi5,[()=>cZ7,0],()=>bZ7]],hc5=[3,c1,mg5,0,[rd5,Dd5,UG7],[0,0,0]],Cc5=[3,c1,ug5,0,[P21,OZ7,F28,v21,oG7,NZ7,$Z7,rG7,r28],[0,0,0,0,[()=>SZ7,0],5,5,5,()=>M_8]],Ic5=[3,c1,pg5,0,[],[]],xc5=[3,c1,Qg5,8,[Ht],[[()=>z_8,0]]],bc5=[3,c1,Ug5,8,[Ht],[[()=>z_8,0]]],w_8=[3,c1,_p5,0,[_R],[0]],uc5=[3,c1,dg5,0,[K_8,ld,TZ7,wZ7],[0,0,()=>vi5,()=>nZ7]],CZ7=[3,c1,sg5,0,[eU5],[2]],mc5=[3,c1,tg5,0,[BX6,U28],[()=>fi5,()=>Ti5]],Bc5=[3,c1,eg5,0,[K_8,ld,TZ7,wZ7],[0,0,()=>Vi5,()=>nZ7]],gc5=[3,c1,Jp5,0,[GM],[0]],pc5=[-3,c1,Ap5,{[zR]:ZB,[wR]:400},[xk],[0]];iv.TypeRegistry.for(c1).registerError(pc5,yG7);var Fc5=[3,c1,ig5,0,[iU5,g28],[[()=>ri5,0],1]],Qc5=[3,c1,rg5,0,[Vu6,g28],[()=>oi5,1]],Uc5=[3,c1,og5,0,[g28],[1]],dc5=[3,c1,zp5,0,[_Z7],[1]],cc5=[3,c1,$p5,0,[$36,n28,s28,KZ7,t28,eG7,B28,XZ7,gG7,ZZ7,f21,Jt],[[0,1],[()=>j_8,0],[()=>J_8,0],()=>gZ7,()=>O_8,()=>Zl5,15,[()=>lZ7,0],64,[()=>iZ7,0],()=>h21,()=>C21]],lc5=[3,c1,Op5,0,[Cd5,vZ7,E21,jZ7,pG7,gX6,f21,Jt],[[()=>ai5,0],0,()=>UZ7,()=>dc5,15,[()=>tc5,0],()=>h21,()=>C21]],ic5=[3,c1,Pp5,0,[E21,jZ7,gX6,f21,Jt],[()=>UZ7,()=>nc5,[()=>ac5,0],()=>h21,()=>C21]],nc5=[3,c1,Xp5,0,[_Z7],[1]],rc5=[3,c1,Gp5,0,[$36,n28,s28,KZ7,t28,eG7,B28,XZ7,gG7,ZZ7,f21,Jt],[[0,1],[()=>j_8,0],[()=>J_8,0],()=>gZ7,()=>O_8,()=>bl5,15,[()=>lZ7,0],64,[()=>iZ7,0],()=>h21,()=>C21]],oc5=[3,c1,Zp5,0,[td5],[[()=>si5,16]]],ac5=[3,c1,fp5,0,[sG7,DZ7],[[()=>uZ7,0],()=>FZ7]],sc5=[3,c1,Vp5,0,[n28,s28,t28,B28],[[()=>j_8,0],[()=>J_8,0],()=>O_8,15]],tc5=[3,c1,Tp5,0,[sG7,DZ7],[[()=>uZ7,0],()=>FZ7]],ec5=[3,c1,Np5,0,[$36,c28],[[0,1],[()=>ti5,0]]],Al5=[3,c1,kp5,0,[YZ7],[1]],IZ7=[3,c1,Rp5,0,[fu6,jt,ld,cU5,U28],[0,0,()=>An5,0,()=>CZ7]],ql5=[3,c1,Cp5,0,[d28,Vu6,X21],[1,1,1]],Kl5=[3,c1,Ip5,0,[d28,Vu6,X21],[1,1,1]],Yl5=[3,c1,xp5,0,[d28,Vu6,X21],[1,1,1]],zl5=[3,c1,Bp5,0,[P21],[[0,1]]],wl5=[3,c1,gp5,0,[P21,OZ7,F28,v21,oG7,NZ7,$Z7,rG7,r28],[0,0,0,0,[()=>SZ7,0],5,5,5,()=>M_8]],xZ7=[3,c1,up5,0,[Yc5,BU5,Vc5,gd5,uU5,kU5,zd5],[()=>gl5,()=>Tl5,()=>pl5,()=>xl5,()=>Vl5,[()=>jl5,0],()=>Rl5]],_l5=[3,c1,lp5,0,[k21,dG7,G21],[[()=>Nu6,0],()=>H_8,[()=>y21,0]]],$l5=[3,c1,np5,0,[GM],[[()=>hZ7,0]]],Ol5=[3,c1,ip5,0,[k21,dG7,G21],[[()=>Nu6,0],()=>H_8,[()=>y21,0]]],y21=[3,c1,op5,0,[_R,MZ7,lG7],[0,[()=>Zu6,0],[()=>Zu6,0]]],Hl5=[3,c1,ap5,0,[],[]],jl5=[3,c1,sp5,0,[qd5],[[()=>Li5,0]]],Jl5=[3,c1,tp5,0,[Od5,xd5],[0,0]],Ml5=[3,c1,qF5,0,[k21,cG7,bU5,G21],[[()=>Nu6,0],[()=>H21,0],[()=>H21,0],[()=>y21,0]]],H21=[3,c1,AF5,0,[sd5],[[()=>Zu6,0]]],Dl5=[3,c1,wF5,0,[Pd5,Nd5],[[()=>kc5,0],[()=>hZ7,0]]],Xl5=[3,c1,OF5,0,[],[]],Nu6=[3,c1,_F5,0,[MZ7,lG7,Wc5,Pc5,iG7],[[()=>Zu6,0],[()=>Zu6,0],[()=>TG7,0],[()=>TG7,0],1]],Pl5=[3,c1,$F5,0,[hd5,aU5],[[()=>Ri5,0],[()=>Ei5,0]]],Wl5=[3,c1,jF5,0,[Xc5],[[()=>yi5,0]]],Gl5=[3,c1,MF5,0,[k21,cG7,ld5,G21],[[()=>Nu6,0],[()=>H21,0],()=>H_8,[()=>y21,0]]],Zl5=[3,c1,DF5,0,[Tu6,vu6,gX6],[0,0,0]],fl5=[3,c1,GF5,0,[_R,iG7,Ad5,Ot,_36],[0,0,0,0,2]],Tl5=[3,c1,kF5,0,[aG7],[()=>hi5]],vl5=[3,c1,fF5,0,[_R,jc5,ad5,Ot,_36],[0,1,1,0,2]],Vl5=[3,c1,vF5,0,[aG7],[()=>Ci5]],Nl5=[3,c1,VF5,8,[fu6,ld],[0,[()=>Yn5,0]]],kl5=[3,c1,EF5,0,[GM,PZ7],[0,64]],bZ7=[3,c1,RF5,0,[Ac5,Hd5],[()=>ml5,()=>yl5]],El5=[3,c1,LF5,0,[Z21,Ot,_36],[0,0,2]],Ll5=[3,c1,SF5,8,[fu6,ld],[0,[()=>zn5,0]]],yl5=[3,c1,hF5,0,[qZ7,yZ7],[1,1]],Rl5=[3,c1,CF5,0,[Kd5,E21,tG7],[1,()=>mZ7,()=>bZ7]],Sl5=[3,c1,xF5,0,[Z21,_R,Ot,_36],[0,0,0,2]],hl5=[3,c1,uF5,0,[GM],[0]],Cl5=[3,c1,BF5,0,[Z21,_R,Ot,_36],[0,0,0,2]],Il5=[3,c1,pF5,0,[jt,Z21,bd5,Ot,_36],[0,0,0,0,2]],xl5=[3,c1,UF5,0,[Id5,Bd5],[()=>ui5,()=>mi5]],bl5=[3,c1,QF5,0,[Tu6,vu6,gX6,Ud5],[0,0,0,0]],ul5=[3,c1,lF5,0,[GM,PZ7],[0,64]],ml5=[3,c1,iF5,0,[qZ7,yZ7],[1,1]],Bl5=[3,c1,dF5,0,[jt,_R,Ot,_36],[0,0,0,2]],gl5=[3,c1,rF5,0,[Dc5],[()=>Bi5]],uZ7=[3,c1,cF5,0,[Gd5,Yd5,Ld5,FG7],[64,[()=>ci5,0],[()=>di5,0],0]],mZ7=[3,c1,oF5,0,[zc5,pU5,Nc5,Fd5,pd5,mU5,gU5,EU5,LU5],[1,1,1,1,1,1,1,1,1]],pl5=[3,c1,aF5,0,[QU5,vd5],[()=>Ii5,()=>xi5]],BZ7=[3,c1,sF5,0,[fu6,ld],[0,()=>wn5]],gZ7=[3,c1,tF5,0,[Td5,Hc5,wc5,id5],[1,1,1,64]],R21=[-3,c1,MQ5,{[zR]:kZ7,[wR]:500},[xk],[0]];iv.TypeRegistry.for(c1).registerError(R21,kG7);var Fl5=[3,c1,AQ5,0,[w36,D21,QG7,$36,gX6,Tu6,vu6,T21,Jt],[[()=>L21,16],[0,{[WM]:m28}],[0,{[WM]:Rg5}],[0,1],[0,{[WM]:BG7}],[0,{[WM]:uG7}],[0,{[WM]:mG7}],[0,{[WM]:J21}],[0,{[WM]:M21}]]],Ql5=[3,c1,qQ5,0,[w36,D21,T21,Jt],[[()=>L21,16],[0,{[WM]:m28}],[0,{[WM]:J21}],[0,{[WM]:M21}]]],Ul5=[3,c1,KQ5,0,[w36],[[()=>L21,0]]],dl5=[3,c1,_Q5,0,[$36,w36],[[0,1],[()=>_n5,16]]],cl5=[3,c1,$Q5,0,[w36],[[()=>$n5,16]]],ll5=[3,c1,HQ5,0,[w36,D21,QG7,$36,gX6,Tu6,vu6,T21,Jt],[[()=>L21,16],[0,{[WM]:m28}],[0,{[WM]:vU5}],[0,1],[0,{[WM]:BG7}],[0,{[WM]:uG7}],[0,{[WM]:mG7}],[0,{[WM]:J21}],[0,{[WM]:M21}]]],il5=[3,c1,jQ5,0,[w36,D21,T21,Jt],[[()=>Jn5,16],[0,{[WM]:VU5}],[0,{[WM]:J21}],[0,{[WM]:M21}]]],nl5=[3,c1,XQ5,0,[ZG7,fG7,WG7,XG7,u28,PG7,GG7],[[5,{[z36]:ZG7}],[5,{[z36]:fG7}],[0,{[z36]:WG7}],[1,{[z36]:XG7}],[0,{[z36]:u28}],[0,{[z36]:PG7}],[0,{[z36]:GG7}]]],rl5=[3,c1,PQ5,0,[u28,NU5],[0,[()=>Zi5,0]]],pZ7=[3,c1,WQ5,0,[fZ7,BX6],[0,[()=>Ni5,0]]],ol5=[3,c1,TQ5,0,[fZ7],[0]],al5=[3,c1,VQ5,0,[vZ7,pG7],[0,15]],sl5=[-3,c1,GQ5,{[zR]:ZB,[wR]:424},[xk,JZ7,ud5],[0,1,0]];iv.TypeRegistry.for(c1).registerError(sl5,CG7);var tl5=[-3,c1,fQ5,{[zR]:ZB,[wR]:429},[xk],[0]];iv.TypeRegistry.for(c1).registerError(tl5,IG7);var S21=[-3,c1,vQ5,{[zR]:ZB,[wR]:424},[xk,JZ7,yd5],[0,1,0]];iv.TypeRegistry.for(c1).registerError(S21,bG7);var __8=[-3,c1,NQ5,{[zR]:ZB,[wR]:408},[xk],[0]];iv.TypeRegistry.for(c1).registerError(__8,xG7);var el5=[3,c1,yQ5,8,[Ht],[[()=>z_8,0]]],h21=[3,c1,LQ5,0,[Xd5],[0]],FZ7=[3,c1,RQ5,0,[wd5],[0]],Ai5=[3,c1,mQ5,8,[GM,EZ7],[0,0]],qi5=[-3,c1,bQ5,{[zR]:ZB,[wR]:404},[xk],[0]];iv.TypeRegistry.for(c1).registerError(qi5,RG7);var $_8=[3,c1,UQ5,0,[Gc5,UG7],[0,0]],QZ7=[3,c1,cQ5,0,[ld,K_8,BX6,U28],[0,0,()=>gi5,()=>CZ7]],Ki5=[3,c1,lQ5,0,[GM],[0]],Yi5=[3,c1,nQ5,0,[dd5,Vu6,X21],[1,1,1]],zi5=[-3,c1,dQ5,{[zR]:ZB,[wR]:400},[xk],[0]];iv.TypeRegistry.for(c1).registerError(zi5,SG7);var C21=[3,c1,rQ5,0,[_R],[0]],I21=[-3,c1,sQ5,{[zR]:kZ7,[wR]:503},[xk],[0]];iv.TypeRegistry.for(c1).registerError(I21,hG7);var wi5=[3,c1,oQ5,0,[jt],[0]],_i5=[3,c1,gQ5,0,[F28,$36,Wd5,r28,Oc5],[[0,4],0,[()=>Ec5,0],()=>M_8,()=>pi5]],$i5=[3,c1,pQ5,0,[P21],[0]],Oi5=[3,c1,aQ5,0,[jt],[0]],Hi5=[3,c1,tQ5,0,[Md5,fc5],[0,0]],x21=[-3,c1,qU5,{[zR]:ZB,[wR]:429},[xk],[0]];iv.TypeRegistry.for(c1).registerError(x21,EG7);var UZ7=[3,c1,JU5,0,[YZ7,Sd5,$c5,FU5,UU5],[1,1,1,1,1]],O_8=[3,c1,eQ5,0,[Jc5,qc5],[()=>Ui5,()=>Xn5]],ji5=[3,c1,zU5,0,[N21,BX6,v21,_R],[0,()=>Qi5,0,0]],Ji5=[3,c1,$U5,0,[N21,_R,v21],[0,0,0]],Mi5=[3,c1,jU5,0,[jt,sU5,$d5],[0,0,()=>Pn5]],Di5=[3,c1,MU5,0,[N21,jt,c28,_R],[0,0,15,0]],Xi5=[3,c1,DU5,0,[c28],[0]],Pi5=[3,c1,XU5,0,[N21,jt,_R],[0,0,0]],b21=[-3,c1,ZU5,{[zR]:ZB,[wR]:400},[xk],[0]];iv.TypeRegistry.for(c1).registerError(b21,LG7);var dZ7=[3,c1,GU5,0,[fu6,ld],[0,()=>Zn5]],Wi5=[3,c1,TU5,0,[Zc5,tU5],[0,0]],Gi5=[-3,LZ7,"BedrockRuntimeServiceException",0,[],[]];iv.TypeRegistry.for(LZ7).registerError(Gi5,nv);var Zi5=[1,c1,Bg5,0,[()=>Cc5,0]],fi5=[1,c1,Kp5,0,()=>li5],Ti5=[1,c1,Lp5,0,()=>uc5],vi5=[1,c1,Mp5,0,()=>ii5],Vi5=[1,c1,Dp5,0,()=>gc5],Ni5=[1,c1,cg5,0,[()=>ni5,0]],ki5=[1,c1,Sp5,0,()=>ei5],cZ7=[1,c1,pp5,0,[()=>xZ7,0]],Ei5=[1,c1,Up5,0,[()=>H21,0]],Li5=[1,c1,cp5,0,[()=>qn5,0]],TG7=[1,c1,rp5,0,[()=>$l5,0]],H_8=[1,c1,ep5,0,()=>Jl5],Zu6=[1,c1,KF5,0,[()=>Dl5,0]],yi5=[1,c1,HF5,0,[()=>Nu6,0]],Ri5=[1,c1,JF5,0,[()=>Wl5,0]],Si5=[1,c1,PF5,0,[()=>Kn5,0]],hi5=[1,c1,ZF5,0,()=>fl5],Ci5=[1,c1,TF5,0,()=>vl5],Ii5=[1,c1,yF5,0,()=>El5],xi5=[1,c1,bF5,0,()=>Sl5],bi5=[1,c1,mF5,0,()=>hl5],ui5=[1,c1,gF5,0,()=>Cl5],mi5=[1,c1,FF5,0,()=>Il5],Bi5=[1,c1,nF5,0,()=>Bl5],j_8=[1,c1,kQ5,0,[()=>pZ7,0]],gi5=[1,c1,iQ5,0,()=>Ki5],J_8=[1,c1,FQ5,0,[()=>Mn5,0]],pi5=[1,c1,YU5,0,()=>Hi5],Fi5=[1,c1,wU5,0,()=>Wn5],Qi5=[1,c1,OU5,0,()=>Gn5],Ui5=[1,c1,PU5,0,()=>Dn5],di5=[2,c1,Fp5,0,[0,0],[()=>cZ7,0]],ci5=[2,c1,Qp5,0,[0,0],[()=>xZ7,0]],lZ7=[2,c1,SQ5,8,0,()=>On5],iZ7=[2,c1,xQ5,8,0,0],M_8=[3,c1,bg5,0,[Qd5],[()=>hc5]],li5=[3,c1,qp5,0,[GM],[0]],nZ7=[3,c1,Yp5,0,[vc5,nU5,oU5,rU5,cd5],[()=>Wi5,()=>ql5,()=>Yl5,()=>Kl5,()=>Yi5]],ii5=[3,c1,jp5,0,[GM],[0]],ni5=[3,c1,ag5,0,[GM,W21,nG7,RZ7,q_8,A_8,AZ7,p28,WZ7,xU5,VZ7],[0,()=>BZ7,()=>IZ7,()=>dZ7,()=>Di5,()=>ji5,[()=>rZ7,0],()=>w_8,[()=>Hn5,0],()=>mc5,()=>QZ7]],ri5=[3,c1,lg5,0,[GM,q_8,A_8,WZ7,dU5],[0,()=>Xi5,()=>Fi5,[()=>jn5,0],()=>Bc5]],oi5=[3,c1,ng5,0,[q_8,A_8],[()=>Pi5,()=>Ji5]],ai5=[3,c1,wp5,0,[xk],[[()=>pZ7,0]]],si5=[3,c1,Wp5,{[V21]:1},[Zd5,CU5,hU5,IU5,fd5,Vd5,l28,i28,Y_8,e28,a28],[()=>ol5,()=>Qc5,[()=>Fc5,0],()=>Uc5,()=>al5,[()=>ic5,0],[()=>R21,0],[()=>S21,0],[()=>b21,0],[()=>x21,0],[()=>I21,0]]],ti5=[3,c1,vp5,0,[_d5,lU5],[[()=>Ul5,0],[()=>sc5,0]]],ei5=[3,c1,hp5,0,[GM],[0]],An5=[3,c1,bp5,0,[Ht,o28,GM,BX6],[21,()=>$_8,0,()=>ki5]],qn5=[3,c1,dp5,0,[Tc5,Jd5,od5,jd5,ed5,Kc5,kd5],[[()=>Gl5,0],[()=>Ol5,0],[()=>Ml5,0],[()=>_l5,0],[()=>Pl5,0],()=>Xl5,()=>Hl5]],Kn5=[3,c1,XF5,0,[GM,W21],[()=>ul5,[()=>Ll5,0]]],rZ7=[3,c1,WF5,0,[GM,W21],[()=>kl5,[()=>Nl5,0]]],Yn5=[3,c1,NF5,8,[Ht],[21]],zn5=[3,c1,IF5,8,[Ht],[21]],wn5=[3,c1,JQ5,0,[Ht,o28],[21,()=>$_8]],_n5=[3,c1,zQ5,{[V21]:1},[Q28],[[()=>xc5,0]]],$n5=[3,c1,wQ5,{[V21]:1},[Q28,l28,i28,Y_8,e28,HZ7,a28],[[()=>bc5,0],[()=>R21,0],[()=>S21,0],[()=>b21,0],[()=>x21,0],[()=>__8,0],[()=>I21,0]]],On5=[3,c1,hQ5,0,[GM],[0]],Hn5=[3,c1,CQ5,8,[md5,GZ7],[[()=>Ai5,0],21]],jn5=[3,c1,IQ5,8,[GM,GZ7,EZ7],[0,21,0]],Jn5=[3,c1,uQ5,{[V21]:1},[Q28,l28,i28,Y_8,e28,HZ7,a28],[[()=>el5,0],[()=>R21,0],[()=>S21,0],[()=>b21,0],[()=>x21,0],[()=>__8,0],[()=>I21,0]]],Mn5=[3,c1,QQ5,0,[GM,AZ7,p28],[0,[()=>rZ7,0],()=>w_8]],Dn5=[3,c1,WU5,0,[_c5,nd5,p28],[()=>Mi5,()=>Oi5,()=>w_8]],Xn5=[3,c1,AU5,0,[SU5,yU5,Mc5],[()=>Ic5,()=>yc5,()=>wi5]],Pn5=[3,c1,KU5,0,[zZ7],[15]],Wn5=[3,c1,_U5,0,[GM],[0]],Gn5=[3,c1,HU5,0,[zZ7,GM,W21,nG7,RZ7,VZ7],[15,0,()=>BZ7,()=>IZ7,()=>dZ7,()=>QZ7]],Zn5=[3,c1,fU5,0,[Ht,o28],[21,()=>$_8]],fn5=[9,c1,hg5,{[fB]:["POST","/guardrail/{guardrailIdentifier}/version/{guardrailVersion}/apply",200]},()=>Rc5,()=>Sc5],Tn5=[9,c1,yp5,{[fB]:["POST","/model/{modelId}/converse",200]},()=>cc5,()=>lc5],vn5=[9,c1,Hp5,{[fB]:["POST","/model/{modelId}/converse-stream",200]},()=>rc5,()=>oc5],Vn5=[9,c1,Ep5,{[fB]:["POST","/model/{modelId}/count-tokens",200]},()=>ec5,()=>Al5],Nn5=[9,c1,mp5,{[fB]:["GET","/async-invoke/{invocationArn}",200]},()=>zl5,()=>wl5],kn5=[9,c1,eF5,{[fB]:["POST","/model/{modelId}/invoke",200]},()=>Fl5,()=>Ql5],En5=[9,c1,YQ5,{[fB]:["POST","/model/{modelId}/invoke-with-bidirectional-stream",200]},()=>dl5,()=>cl5],Ln5=[9,c1,OQ5,{[fB]:["POST","/model/{modelId}/invoke-with-response-stream",200]},()=>ll5,()=>il5],yn5=[9,c1,DQ5,{[fB]:["GET","/async-invoke",200]},()=>nl5,()=>rl5],Rn5=[9,c1,BQ5,{[fB]:["POST","/async-invoke",200]},()=>_i5,()=>$i5];class D_8 extends v0.Command.classBuilder().ep(GB).m(function(A,q,K,Y){return[PI.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockFrontendService","ApplyGuardrail",{}).n("BedrockRuntimeClient","ApplyGuardrailCommand").sc(fn5).build(){}class X_8 extends v0.Command.classBuilder().ep(GB).m(function(A,q,K,Y){return[PI.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockFrontendService","Converse",{}).n("BedrockRuntimeClient","ConverseCommand").sc(Tn5).build(){}class P_8 extends v0.Command.classBuilder().ep(GB).m(function(A,q,K,Y){return[PI.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockFrontendService","ConverseStream",{eventStream:{output:!0}}).n("BedrockRuntimeClient","ConverseStreamCommand").sc(vn5).build(){}class W_8 extends v0.Command.classBuilder().ep(GB).m(function(A,q,K,Y){return[PI.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockFrontendService","CountTokens",{}).n("BedrockRuntimeClient","CountTokensCommand").sc(Vn5).build(){}class G_8 extends v0.Command.classBuilder().ep(GB).m(function(A,q,K,Y){return[PI.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockFrontendService","GetAsyncInvoke",{}).n("BedrockRuntimeClient","GetAsyncInvokeCommand").sc(Nn5).build(){}class Z_8 extends v0.Command.classBuilder().ep(GB).m(function(A,q,K,Y){return[PI.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockFrontendService","InvokeModel",{}).n("BedrockRuntimeClient","InvokeModelCommand").sc(kn5).build(){}class f_8 extends v0.Command.classBuilder().ep(GB).m(function(A,q,K,Y){return[PI.getEndpointPlugin(K,A.getEndpointParameterInstructions()),vG7.getEventStreamPlugin(K),VG7.getWebSocketPlugin(K,{headerPrefix:"x-amz-bedrock-"})]}).s("AmazonBedrockFrontendService","InvokeModelWithBidirectionalStream",{eventStream:{input:!0,output:!0}}).n("BedrockRuntimeClient","InvokeModelWithBidirectionalStreamCommand").sc(En5).build(){}class T_8 extends v0.Command.classBuilder().ep(GB).m(function(A,q,K,Y){return[PI.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockFrontendService","InvokeModelWithResponseStream",{eventStream:{output:!0}}).n("BedrockRuntimeClient","InvokeModelWithResponseStreamCommand").sc(Ln5).build(){}class u21 extends v0.Command.classBuilder().ep(GB).m(function(A,q,K,Y){return[PI.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockFrontendService","ListAsyncInvokes",{}).n("BedrockRuntimeClient","ListAsyncInvokesCommand").sc(yn5).build(){}class v_8 extends v0.Command.classBuilder().ep(GB).m(function(A,q,K,Y){return[PI.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockFrontendService","StartAsyncInvoke",{}).n("BedrockRuntimeClient","StartAsyncInvokeCommand").sc(Rn5).build(){}var Sn5={ApplyGuardrailCommand:D_8,ConverseCommand:X_8,ConverseStreamCommand:P_8,CountTokensCommand:W_8,GetAsyncInvokeCommand:G_8,InvokeModelCommand:Z_8,InvokeModelWithBidirectionalStreamCommand:f_8,InvokeModelWithResponseStreamCommand:T_8,ListAsyncInvokesCommand:u21,StartAsyncInvokeCommand:v_8};class V_8 extends j21{}v0.createAggregatedClient(Sn5,V_8);var hn5=O21.createPaginator(j21,u21,"nextToken","nextToken","maxResults"),Cn5={COMPLETED:"Completed",FAILED:"Failed",IN_PROGRESS:"InProgress"},In5={SUBMISSION_TIME:"SubmissionTime"},xn5={ASCENDING:"Ascending",DESCENDING:"Descending"},bn5={JPEG:"jpeg",PNG:"png"},un5={GROUNDING_SOURCE:"grounding_source",GUARD_CONTENT:"guard_content",QUERY:"query"},mn5={FULL:"FULL",INTERVENTIONS:"INTERVENTIONS"},Bn5={INPUT:"INPUT",OUTPUT:"OUTPUT"},gn5={GUARDRAIL_INTERVENED:"GUARDRAIL_INTERVENED",NONE:"NONE"},pn5={ALWAYS_FALSE:"ALWAYS_FALSE",ALWAYS_TRUE:"ALWAYS_TRUE"},Fn5={BLOCKED:"BLOCKED",NONE:"NONE"},Qn5={HIGH:"HIGH",LOW:"LOW",MEDIUM:"MEDIUM",NONE:"NONE"},Un5={HIGH:"HIGH",LOW:"LOW",MEDIUM:"MEDIUM",NONE:"NONE"},dn5={HATE:"HATE",INSULTS:"INSULTS",MISCONDUCT:"MISCONDUCT",PROMPT_ATTACK:"PROMPT_ATTACK",SEXUAL:"SEXUAL",VIOLENCE:"VIOLENCE"},cn5={BLOCKED:"BLOCKED",NONE:"NONE"},ln5={GROUNDING:"GROUNDING",RELEVANCE:"RELEVANCE"},in5={ANONYMIZED:"ANONYMIZED",BLOCKED:"BLOCKED",NONE:"NONE"},nn5={ADDRESS:"ADDRESS",AGE:"AGE",AWS_ACCESS_KEY:"AWS_ACCESS_KEY",AWS_SECRET_KEY:"AWS_SECRET_KEY",CA_HEALTH_NUMBER:"CA_HEALTH_NUMBER",CA_SOCIAL_INSURANCE_NUMBER:"CA_SOCIAL_INSURANCE_NUMBER",CREDIT_DEBIT_CARD_CVV:"CREDIT_DEBIT_CARD_CVV",CREDIT_DEBIT_CARD_EXPIRY:"CREDIT_DEBIT_CARD_EXPIRY",CREDIT_DEBIT_CARD_NUMBER:"CREDIT_DEBIT_CARD_NUMBER",DRIVER_ID:"DRIVER_ID",EMAIL:"EMAIL",INTERNATIONAL_BANK_ACCOUNT_NUMBER:"INTERNATIONAL_BANK_ACCOUNT_NUMBER",IP_ADDRESS:"IP_ADDRESS",LICENSE_PLATE:"LICENSE_PLATE",MAC_ADDRESS:"MAC_ADDRESS",NAME:"NAME",PASSWORD:"PASSWORD",PHONE:"PHONE",PIN:"PIN",SWIFT_CODE:"SWIFT_CODE",UK_NATIONAL_HEALTH_SERVICE_NUMBER:"UK_NATIONAL_HEALTH_SERVICE_NUMBER",UK_NATIONAL_INSURANCE_NUMBER:"UK_NATIONAL_INSURANCE_NUMBER",UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER:"UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",URL:"URL",USERNAME:"USERNAME",US_BANK_ACCOUNT_NUMBER:"US_BANK_ACCOUNT_NUMBER",US_BANK_ROUTING_NUMBER:"US_BANK_ROUTING_NUMBER",US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER:"US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",US_PASSPORT_NUMBER:"US_PASSPORT_NUMBER",US_SOCIAL_SECURITY_NUMBER:"US_SOCIAL_SECURITY_NUMBER",VEHICLE_IDENTIFICATION_NUMBER:"VEHICLE_IDENTIFICATION_NUMBER"},rn5={BLOCKED:"BLOCKED",NONE:"NONE"},on5={DENY:"DENY"},an5={BLOCKED:"BLOCKED",NONE:"NONE"},sn5={PROFANITY:"PROFANITY"},tn5={DISABLED:"disabled",ENABLED:"enabled",ENABLED_FULL:"enabled_full"},en5={DEFAULT:"default"},Ar5={CSV:"csv",DOC:"doc",DOCX:"docx",HTML:"html",MD:"md",PDF:"pdf",TXT:"txt",XLS:"xls",XLSX:"xlsx"},qr5={JPEG:"jpeg",PNG:"png"},Kr5={GROUNDING_SOURCE:"grounding_source",GUARD_CONTENT:"guard_content",QUERY:"query"},Yr5={GIF:"gif",JPEG:"jpeg",PNG:"png",WEBP:"webp"},zr5={FLV:"flv",MKV:"mkv",MOV:"mov",MP4:"mp4",MPEG:"mpeg",MPG:"mpg",THREE_GP:"three_gp",WEBM:"webm",WMV:"wmv"},wr5={ERROR:"error",SUCCESS:"success"},_r5={SERVER_TOOL_USE:"server_tool_use"},$r5={ASSISTANT:"assistant",USER:"user"},Or5={OPTIMIZED:"optimized",STANDARD:"standard"},Hr5={DEFAULT:"default",FLEX:"flex",PRIORITY:"priority"},jr5={CONTENT_FILTERED:"content_filtered",END_TURN:"end_turn",GUARDRAIL_INTERVENED:"guardrail_intervened",MAX_TOKENS:"max_tokens",MODEL_CONTEXT_WINDOW_EXCEEDED:"model_context_window_exceeded",STOP_SEQUENCE:"stop_sequence",TOOL_USE:"tool_use"},Jr5={ASYNC:"async",SYNC:"sync"},Mr5={DISABLED:"DISABLED",ENABLED:"ENABLED",ENABLED_FULL:"ENABLED_FULL"};Object.defineProperty(N_8,"$Command",{enumerable:!0,get:function(){return v0.Command}});Object.defineProperty(N_8,"__Client",{enumerable:!0,get:function(){return v0.Client}});N_8.AccessDeniedException=NG7;N_8.ApplyGuardrailCommand=D_8;N_8.AsyncInvokeStatus=Cn5;N_8.BedrockRuntime=V_8;N_8.BedrockRuntimeClient=j21;N_8.BedrockRuntimeServiceException=nv;N_8.CachePointType=en5;N_8.ConflictException=yG7;N_8.ConversationRole=$r5;N_8.ConverseCommand=X_8;N_8.ConverseStreamCommand=P_8;N_8.CountTokensCommand=W_8;N_8.DocumentFormat=Ar5;N_8.GetAsyncInvokeCommand=G_8;N_8.GuardrailAction=gn5;N_8.GuardrailAutomatedReasoningLogicWarningType=pn5;N_8.GuardrailContentFilterConfidence=Qn5;N_8.GuardrailContentFilterStrength=Un5;N_8.GuardrailContentFilterType=dn5;N_8.GuardrailContentPolicyAction=Fn5;N_8.GuardrailContentQualifier=un5;N_8.GuardrailContentSource=Bn5;N_8.GuardrailContextualGroundingFilterType=ln5;N_8.GuardrailContextualGroundingPolicyAction=cn5;N_8.GuardrailConverseContentQualifier=Kr5;N_8.GuardrailConverseImageFormat=qr5;N_8.GuardrailImageFormat=bn5;N_8.GuardrailManagedWordType=sn5;N_8.GuardrailOutputScope=mn5;N_8.GuardrailPiiEntityType=nn5;N_8.GuardrailSensitiveInformationPolicyAction=in5;N_8.GuardrailStreamProcessingMode=Jr5;N_8.GuardrailTopicPolicyAction=rn5;N_8.GuardrailTopicType=on5;N_8.GuardrailTrace=tn5;N_8.GuardrailWordPolicyAction=an5;N_8.ImageFormat=Yr5;N_8.InternalServerException=kG7;N_8.InvokeModelCommand=Z_8;N_8.InvokeModelWithBidirectionalStreamCommand=f_8;N_8.InvokeModelWithResponseStreamCommand=T_8;N_8.ListAsyncInvokesCommand=u21;N_8.ModelErrorException=CG7;N_8.ModelNotReadyException=IG7;N_8.ModelStreamErrorException=bG7;N_8.ModelTimeoutException=xG7;N_8.PerformanceConfigLatency=Or5;N_8.ResourceNotFoundException=RG7;N_8.ServiceQuotaExceededException=SG7;N_8.ServiceTierType=Hr5;N_8.ServiceUnavailableException=hG7;N_8.SortAsyncInvocationBy=In5;N_8.SortOrder=xn5;N_8.StartAsyncInvokeCommand=v_8;N_8.StopReason=jr5;N_8.ThrottlingException=EG7;N_8.ToolResultStatus=wr5;N_8.ToolUseType=_r5;N_8.Trace=Mr5;N_8.ValidationException=LG7;N_8.VideoFormat=zr5;N_8.paginateListAsyncInvokes=hn5});function $R(A,q){return A.find((K)=>K.includes(q))??null}async function aZ7(){let{BedrockClient:A}=await Promise.resolve().then(() => q6(tw1(),1)),q=Q76(),K=w1(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Y={region:q,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await m98(),...K&&{requestHandler:new(await Promise.resolve().then(() => q6(uv(),1))).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await Promise.resolve().then(() => q6(Ew(),1))).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!K&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let z=await Mt();if(z)Y.credentials={accessKeyId:z.accessKeyId,secretAccessKey:z.secretAccessKey,sessionToken:z.sessionToken}}return new A(Y)}async function sZ7(){let{BedrockRuntimeClient:A}=await Promise.resolve().then(() => q6(m21(),1)),q=Q76(),K=w1(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Y={region:q,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await m98(),...K&&{requestHandler:new(await Promise.resolve().then(() => q6(uv(),1))).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await Promise.resolve().then(() => q6(Ew(),1))).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!K&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let z=await Mt();if(z)Y.credentials={accessKeyId:z.accessKeyId,secretAccessKey:z.secretAccessKey,sessionToken:z.sessionToken}}return new A(Y)}function k_8(A){return A.startsWith("anthropic.")}function Vo5(A){if(!A.startsWith("arn:"))return A;let q=A.lastIndexOf("/");if(q===-1)return A;return A.substring(q+1)}function E_8(A){let q=Vo5(A);for(let K of vo5)if(q.startsWith(`${K}.anthropic.`))return K;return}function tZ7(A,q){let K=E_8(A);if(K)return A.replace(`${K}.`,`${q}.`);if(k_8(A))return`${q}.${A}`;return A}var oZ7,B21,vo5;var ku6=E(()=>{Rq();xA();Z8();u1();ay();oZ7=k8(async function(){let[A,{ListInferenceProfilesCommand:q}]=await Promise.all([aZ7(),Promise.resolve().then(() => q6(tw1(),1))]),K=[],Y;try{do{let z=new q({...Y&&{nextToken:Y},typeEquals:"SYSTEM_DEFINED"}),w=await A.send(z);if(w.inferenceProfileSummaries)K.push(...w.inferenceProfileSummaries);Y=w.nextToken}while(Y);return K.filter((z)=>z.inferenceProfileId?.includes("anthropic")).map((z)=>z.inferenceProfileId).filter(Boolean)}catch(z){throw $6(z),z}});B21=k8(async function(A){try{let[q,{GetInferenceProfileCommand:K}]=await Promise.all([aZ7(),Promise.resolve().then(() => q6(tw1(),1))]),Y=new K({inferenceProfileIdentifier:A}),z=await q.send(Y);if(!z.models||z.models.length===0)return null;let w=z.models[0];if(!w?.modelArn)return null;let _=w.modelArn.lastIndexOf("/");return _>=0?w.modelArn.substring(_+1):w.modelArn}catch(q){return $6(q),null}});vo5=["us","eu","apac","global"]});function Xt(A){if(S7()==="foundry")return;let q=A.toLowerCase();if(q.includes("claude-opus-4-6[1m]"))return"Opus 4.6 (with 1M context)";if(q.includes("claude-opus-4-6"))return"Opus 4.6";if(q.includes("claude-opus-4-5"))return"Opus 4.5";if(q.includes("claude-opus-4-1"))return"Opus 4.1";if(q.includes("claude-opus-4"))return"Opus 4";if(q.includes("claude-sonnet-4-6[1m]"))return"Sonnet 4.6 (with 1M context)";if(q.includes("claude-sonnet-4-6"))return"Sonnet 4.6";if(q.includes("claude-sonnet-4-5[1m]"))return"Sonnet 4.5 (with 1M context)";if(q.includes("claude-sonnet-4-5"))return"Sonnet 4.5";if(q.includes("claude-sonnet-4[1m]"))return"Sonnet 4 (with 1M context)";if(q.includes("claude-sonnet-4"))return"Sonnet 4";if(q.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(q.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(q.includes("claude-haiku-4-5"))return"Haiku 4.5";if(q.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}var Eu6,Lu6,yu6,Ru6,Su6,hu6,Cu6,Iu6,xu6,Dt,bu6;var pX6=E(()=>{Aw();Eu6={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet"},Lu6={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet"},yu6={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku"},Ru6={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5"},Su6={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4"},hu6={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5"},Cu6={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4"},Iu6={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1"},xu6={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5"},Dt={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6"},bu6={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6"}});function TB(A){let q=[],K=!1;async function Y(){if(K)return;if(q.length===0)return;K=!0;while(q.length>0){let{args:z,resolve:w,reject:_,context:$}=q.shift();try{let O=await A.apply($,z);w(O)}catch(O){_(O)}}if(K=!1,q.length>0)Y()}return function(...z){return new Promise((w,_)=>{q.push({args:z,resolve:w,reject:_,context:this}),Y()})}}function uu6(A){return{haiku35:yu6[A],haiku45:Ru6[A],sonnet35:Lu6[A],sonnet37:Eu6[A],sonnet40:Su6[A],sonnet45:hu6[A],sonnet46:bu6[A],opus40:Cu6[A],opus41:Iu6[A],opus45:xu6[A],opus46:Dt[A]}}async function No5(){let A;try{A=await oZ7()}catch(M){return $6(M),uu6("bedrock")}if(!A?.length)return uu6("bedrock");let q=$R(A,"claude-3-5-haiku-20241022"),K=$R(A,"claude-haiku-4-5-20251001"),Y=$R(A,"claude-3-5-sonnet-20241022"),z=$R(A,"claude-3-7-sonnet-20250219"),w=$R(A,"claude-sonnet-4-20250514"),_=$R(A,"claude-sonnet-4-5-20250929"),$=$R(A,"claude-sonnet-4-6"),O=$R(A,"claude-opus-4-20250514"),H=$R(A,"claude-opus-4-1-20250805"),j=$R(A,"claude-opus-4-5-20251101"),J=$R(A,"claude-opus-4-6");return{haiku35:q||yu6.bedrock,haiku45:K||Ru6.bedrock,sonnet35:Y||Lu6.bedrock,sonnet37:z||Eu6.bedrock,sonnet40:w||Su6.bedrock,sonnet45:_||hu6.bedrock,sonnet46:$||bu6.bedrock,opus40:O||Cu6.bedrock,opus41:H||Iu6.bedrock,opus45:j||xu6.bedrock,opus46:J||Dt.bedrock}}function ko5(){if(HO6()!==null)return;if(S7()!=="bedrock"){vL6(uu6(S7()));return}eZ7()}function B5(){let A=HO6();if(A===null)return ko5(),uu6(S7());return A}async function Af7(){if(HO6()!==null)return;if(S7()!=="bedrock"){vL6(uu6(S7()));return}await eZ7()}var eZ7;var O36=E(()=>{U1();u1();ku6();pX6();Aw();eZ7=TB(async()=>{if(HO6()!==null)return;try{let A=await No5();vL6(A)}catch(A){$6(A)}})});function FX6(A,q){if(Sq()&&q)return Eo5;return A?wf7:H36}function yo5(A,q){return q.input_tokens/1e6*A.inputTokens+q.output_tokens/1e6*A.outputTokens+(q.cache_read_input_tokens??0)/1e6*A.promptCacheReadTokens+(q.cache_creation_input_tokens??0)/1e6*A.promptCacheWriteTokens+(q.server_tool_use?.web_search_requests??0)*A.webSearchRequests}function Kf7(A){return A.input_tokens+(A.cache_read_input_tokens??0)+(A.cache_creation_input_tokens??0)}function Ro5(A,q){let K=U$(A);if(K===U$(Dt.firstParty)){let z=q.speed==="fast",w=Kf7(q)>200000;return FX6(w,z)}let Y=g21[K];if(!Y)return Yf7(A,K),g21[U$(vB())]??Lo5;if(Kf7(q)>200000){if(Y===j36)return p21;if(Y===H36)return wf7;Yf7(A,K)}return Y}function Yf7(A,q){l("tengu_unknown_model_cost",{model:A,shortName:q}),Se6()}function F21(A,q){let K=Ro5(A,q);return yo5(K,q)}function zf7(A){if(Number.isInteger(A))return`$${A}`;return`$${A.toFixed(2)}`}function OR(A){return`${zf7(A.inputTokens)}/${zf7(A.outputTokens)} per Mtok`}var j36,qf7,H36,wf7,Eo5,p21,L_8,y_8,Lo5,g21;var Pt=E(()=>{bk();m1();kG();pX6();e4();j36={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheReadTokens:0.3,webSearchRequests:0.01},qf7={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheReadTokens:1.5,webSearchRequests:0.01},H36={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheReadTokens:0.5,webSearchRequests:0.01},wf7={inputTokens:10,outputTokens:37.5,promptCacheWriteTokens:12.5,promptCacheReadTokens:1,webSearchRequests:0.01},Eo5={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheReadTokens:3,webSearchRequests:0.01},p21={inputTokens:6,outputTokens:22.5,promptCacheWriteTokens:7.5,promptCacheReadTokens:0.6,webSearchRequests:0.01},L_8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheReadTokens:0.08,webSearchRequests:0.01},y_8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.1,webSearchRequests:0.01},Lo5=H36;g21={[U$(yu6.firstParty)]:L_8,[U$(Ru6.firstParty)]:y_8,[U$(Lu6.firstParty)]:j36,[U$(Eu6.firstParty)]:j36,[U$(Su6.firstParty)]:j36,[U$(hu6.firstParty)]:H36,[U$(bu6.firstParty)]:H36,[U$(Cu6.firstParty)]:qf7,[U$(Iu6.firstParty)]:qf7,[U$(xu6.firstParty)]:H36,[U$(Dt.firstParty)]:H36}});var y9,Wt="✻",Gt="↯",_f7="↻",mu6,Q21="·✔︎·",U21="×";var d$=E(()=>{o5();y9=e8.platform==="darwin"?"⏺":"●",mu6=["·|·","·/·","·—·","·\\·"]});function id(A){return J36.includes(A)}function QX6(A){return So5.includes(A)}var J36,So5;var UX6=E(()=>{J36=["sonnet","opus","haiku","best","sonnet[1m]","opus[1m]","opusplan"];So5=["sonnet","opus","haiku"]});function ho5(A,q){if(A.includes(q))return!0;if(id(A))return $5(A).toLowerCase().includes(q);return!1}function $f7(A,q){if(!A.startsWith(q))return!1;return A.length===q.length||A[q.length]==="-"}function Co5(A,q){let K=id(A)?$5(A).toLowerCase():A;if($f7(K,q))return!0;if(!q.startsWith("claude-")&&$f7(K,`claude-${q}`))return!0;return!1}function Of7(A,q){for(let K of q){if(QX6(K))continue;let Y=K.indexOf(A);if(Y===-1)continue;let z=Y+A.length;if(z===K.length||K[z]==="-")return!0}return!1}function Zt(A){let q=bA()||{},{availableModels:K}=q;if(!K)return!0;if(K.length===0)return!1;let Y=A.trim().toLowerCase(),z=K.map((w)=>w.trim().toLowerCase());if(z.includes(Y)){if(!QX6(Y)||!Of7(Y,z))return!0}for(let w of z)if(QX6(w)&&!Of7(w,z)&&ho5(Y,w))return!0;if(id(Y)){let w=$5(Y).toLowerCase();if(z.includes(w))return!0}for(let w of z)if(!QX6(w)&&id(w)){if($5(w).toLowerCase()===Y)return!0}for(let w of z)if(!QX6(w)&&!id(w)){if(Co5(Y,w))return!0}return!1}var Bu6=E(()=>{EA();UX6();e4()});var jf7={};d1(jf7,{renderModelSetting:()=>S_8,renderModelName:()=>pX,renderDefaultModelSetting:()=>R_8,parseUserSpecifiedModel:()=>$5,normalizeModelStringForAPI:()=>VB,modelDisplayString:()=>FX,isNonCustomOpusModel:()=>M36,isLegacyModelRemapEnabled:()=>d21,getUserSpecifiedModelSetting:()=>HR,getSmallFastModel:()=>hO,getRuntimeMainLoopModel:()=>WI,getPublicModelName:()=>h_8,getPublicModelDisplayName:()=>gu6,getOpus46PricingSuffix:()=>D36,getMainLoopModel:()=>E5,getDefaultSonnetModel:()=>Zf,getDefaultOpusModel:()=>rv,getDefaultMainLoopModelSetting:()=>vB,getDefaultMainLoopModel:()=>V0,getDefaultHaikuModel:()=>dX6,getClaudeAiUserDefaultModelDescription:()=>cX6,getCanonicalName:()=>U$,getBestModel:()=>Hf7});function hO(){return process.env.ANTHROPIC_SMALL_FAST_MODEL||dX6()}function M36(A){return A===B5().opus40||A===B5().opus41||A===B5().opus45||A===B5().opus46}function HR(){let A,q=KC();if(q!==void 0)A=q;else{let K=bA()||{};A=process.env.ANTHROPIC_MODEL||K.model||void 0}if(A&&!Zt(A))return;return A}function E5(){let A=HR();if(A!==void 0&&A!==null)return $5(A);return V0()}function Hf7(){return rv()}function rv(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;if(S7()==="firstParty")return B5().opus46;return B5().opus41}function Zf(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;if(S7()!=="firstParty")return B5().sonnet45;return B5().sonnet46}function dX6(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;return B5().haiku45}function WI(A){let{permissionMode:q,mainLoopModel:K,exceeds200kTokens:Y=!1}=A;if(HR()==="opusplan"&&q==="plan"&&!Y)return rv();if(HR()==="haiku"&&q==="plan")return Zf();return K}function vB(){if(Ry())return rv();if(ft())return rv();return Zf()}function V0(){return $5(vB())}function U$(A){if(A.includes("claude-opus-4-6"))return"claude-opus-4-6";if(A.includes("claude-opus-4-5"))return"claude-opus-4-5";if(A.includes("claude-opus-4-1"))return"claude-opus-4-1";if(A.includes("claude-opus-4"))return"claude-opus-4";if(A.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(A.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(A.includes("claude-sonnet-4"))return"claude-sonnet-4";if(A.includes("claude-haiku-4-5"))return"claude-haiku-4-5";let q=A.match(/(claude-(\d+-\d+-)?\w+)/);if(q&&q[1])return q[1];return A}function cX6(A=!1){if(Ry()||ft())return`Opus 4.6${NI6()} · Most capable for complex work${A?D36(!1,!0):""}`;return"Sonnet 4.6 · Best for everyday tasks"}function R_8(A){if(A==="opusplan")return"Opus 4.6 in plan mode, else Sonnet 4.6";return pX($5(A))}function D36(A,q){if(S7()!=="firstParty")return"";let K=OR(FX6(A,q));return` ·${q?` (${Gt})`:""} ${K}`}function S_8(A){if(A==="opusplan")return"Opus Plan";if(id(A))return A.charAt(0).toUpperCase()+A.slice(1);return pX(A)}function gu6(A){switch(A){case B5().opus46:return"Opus 4.6";case B5().opus46+"[1m]":return"Opus 4.6 (1M context)";case B5().opus45:return"Opus 4.5";case B5().opus41:return"Opus 4.1";case B5().opus40:return"Opus 4";case B5().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case B5().sonnet46:return"Sonnet 4.6";case B5().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case B5().sonnet45:return"Sonnet 4.5";case B5().sonnet40:return"Sonnet 4";case B5().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case B5().sonnet37:return"Sonnet 3.7";case B5().sonnet35:return"Sonnet 3.5";case B5().haiku45:return"Haiku 4.5";case B5().haiku35:return"Haiku 3.5";default:return null}}function pX(A){let q=gu6(A);if(q)return q;return A}function h_8(A){let q=gu6(A);if(q)return`Claude ${q}`;return`Claude (${A})`}function $5(A){let q=A.trim(),K=q.toLowerCase(),Y=Jy(K),z=Y?K.replace(/\[1m]$/i,"").trim():K;if(id(z))switch(z){case"opusplan":return Zf()+(Y?"[1m]":"");case"sonnet":return Zf()+(Y?"[1m]":"");case"haiku":return dX6()+(Y?"[1m]":"");case"opus":return rv()+(Y||js()?"[1m]":"");case"best":return Hf7();default:}if(S7()==="firstParty"&&xo5(z)&&d21())return rv()+(Y?"[1m]":"");if(Y)return q.replace(/\[1m\]$/i,"").trim()+"[1m]";return q}function xo5(A){return Io5.includes(A)}function d21(){if(w1(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP))return!1;return qA("tengu_grey_wool",!0)}function FX(A){if(A===null){if(eA())return`Default (${cX6()})`;return`Default (${V0()})`}let q=$5(A);return A===q?q:`${A} (${q})`}function VB(A){return A.replace(/\[(1|2)m\]/gi,"")}var Io5;var e4=E(()=>{U1();xA();zM();Z8();O36();Pt();EA();Aw();d$();Bu6();UX6();AK6();P7();Io5=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function Sq(){return!w1(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function YJ(){if(!Sq())return!1;return Tt()===null}function bo5(A,q){switch(A){case"free":return q==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function Tt(){if(!Sq())return"Fast mode is not available";if(!r5()&&qA("tengu_marble_sandcastle",!0))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";let A=qA("tengu_penguins_off",null);if(A!==null)return y(`Fast mode unavailable: ${A}`),A;if(B7()&&EL6()){if(!LA("flagSettings")?.fastMode)return y("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(S7()!=="firstParty")return y("Fast mode unavailable: Fast mode is not available on Bedrock, Vertex, or Foundry"),"Fast mode is not available on Bedrock, Vertex, or Foundry";if(ov.status==="disabled"&&qA("tengu_tangerine_ladder_boost",!0)){if(ov.reason==="network_error"||ov.reason==="unknown")return null;let q=l7()!==null?"oauth":"api-key",K=bo5(ov.reason,q);return y(`Fast mode unavailable: ${K}`),K}return null}function x_8(A){if(!Sq())return!1;if(!YJ())return!1;if(!CO(A))return!1;let q=b7();if(q.fastModePerSessionOptIn)return!1;return q.fastMode===!0}function CO(A){if(!Sq())return!1;let q=A??vB();return $5(q).toLowerCase().includes("opus-4-6")}function Mf7(A){return c21.add(A),()=>{c21.delete(A)}}function b_8(){if(lX6.status==="cooldown"&&Date.now()>=lX6.resetAt){if(Sq()&&!C_8){y("Fast mode cooldown expired, re-enabling fast mode"),C_8=!0;for(let A of c21)A.onCooldownExpired()}lX6={status:"active"}}return lX6}function Df7(A,q){if(!Sq())return;lX6={status:"cooldown",resetAt:A,reason:q},C_8=!1;let K=A-Date.now();y(`Fast mode cooldown triggered (${q}), duration ${Math.round(K/1000)}s`),l("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:K,cooldown_reason:q});for(let Y of c21)Y.onCooldownTriggered(A,q)}function X36(){lX6={status:"active"}}function Xf7(){if(ov.status==="disabled")return;ov={status:"disabled",reason:"preference"},gA("userSettings",{fastMode:void 0}),O8((A)=>({...A,penguinModeOrgEnabled:!1}));for(let A of l21)A(!1)}function Pf7(A){return I_8.add(A),()=>{I_8.delete(A)}}function uo5(A){switch(A){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function mo5(A){return A==="org_level_disabled_until"||A==="out_of_credits"}function Wf7(A){let q=uo5(A);if(y(`Fast mode overage rejection: ${A??"unknown"} — ${q}`),l("tengu_fast_mode_overage_rejected",{overage_disabled_reason:A??"unknown"}),!mo5(A))gA("userSettings",{fastMode:void 0}),O8((K)=>({...K,penguinModeOrgEnabled:!1}));for(let K of I_8)K(q)}function NB(){return b_8().status==="cooldown"}function kB(A,q){let K=Sq()&&YJ()&&!!q&&CO(A);if(K&&NB())return"cooldown";if(K)return"on";return"off"}function Gf7(A){return l21.add(A),()=>{l21.delete(A)}}async function Bo5(A){let q=`${s7().BASE_API_URL}/api/claude_code_penguin_mode`,K="accessToken"in A?{Authorization:`Bearer ${A.accessToken}`,"anthropic-beta":tZ}:{"x-api-key":A.apiKey};return(await Q8.get(q,{headers:K})).data}function u_8(){if(!Sq())return;if(ov.status!=="pending")return;let A=!1,q=v1().penguinModeOrgEnabled===!0;ov=A||q?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function i21(){if(process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC)return;if(!Sq())return;if(pu6)return y("Fast mode prefetch in progress, returning in-flight promise"),pu6;let A=wk();if(!(l7()?.accessToken&&Yf())&&!A){ov=v1().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let K=Date.now();if(K-Jf7<go5){y("Skipping fast mode prefetch, fetched recently");return}Jf7=K;let Y=async()=>{let w=l7(),_=w?.accessToken&&Yf()?{accessToken:w.accessToken}:A?{apiKey:A}:null;if(!_)throw Error("No auth available");return Bo5(_)};async function z(){try{let w;try{w=await Y()}catch($){if(Q8.isAxiosError($)&&($.response?.status===401||$.response?.status===403&&typeof $.response?.data==="string"&&$.response.data.includes("OAuth token has been revoked"))){let H=l7()?.accessToken;if(H)await _k(H),w=await Y();else throw $}else throw $}let _=ov.status!=="pending"?ov.status==="enabled":v1().penguinModeOrgEnabled;if(ov=w.enabled?{status:"enabled"}:{status:"disabled",reason:w.disabled_reason??"preference"},_!==w.enabled){if(!w.enabled)gA("userSettings",{fastMode:void 0});O8(($)=>({...$,penguinModeOrgEnabled:w.enabled}));for(let $ of l21)$(w.enabled)}y(`Org fast mode: ${w.enabled?"enabled":`disabled (${w.disabled_reason??"preference"})`}`)}catch(w){ov=v1().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},y(`Failed to fetch org fast mode status, defaulting to ${ov.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${w}`,{level:"error"}),l("tengu_org_penguin_mode_fetch_failed",{})}finally{pu6=null}}return pu6=z(),pu6}var Fu6="opus",uk="Opus 4.6",lX6,C_8=!1,c21,I_8,ov,l21,go5=30000,Jf7=0,pu6=null;var kG=E(()=>{M3();EA();m1();Z1();U1();xA();Aw();e4();P7();D9();U8();Z8();lX6={status:"active"},c21=new Set;I_8=new Set;ov={status:"pending"},l21=new Set});function m_8(A){let q=H_();if(q.lastSessionId!==A)return;let K;if(q.lastModelUsage)K=Object.fromEntries(Object.entries(q.lastModelUsage).map(([Y,z])=>[Y,{...z,contextWindow:YM(Y,zj()),maxOutputTokens:La(Y).default}]));return{totalCostUSD:q.lastCost??0,totalAPIDuration:q.lastAPIDuration??0,totalAPIDurationWithoutRetries:q.lastAPIDurationWithoutRetries??0,totalToolDuration:q.lastToolDuration??0,totalLinesAdded:q.lastLinesAdded??0,totalLinesRemoved:q.lastLinesRemoved??0,lastDuration:q.lastDuration,modelUsage:K}}function n21(A){let q=m_8(A);if(!q)return!1;return TL6(q),!0}function r21(A){j_((q)=>({...q,lastCost:XX(),lastAPIDuration:pN(),lastAPIDurationWithoutRetries:Ou1(),lastToolDuration:Hu1(),lastDuration:wO6(),lastLinesAdded:R76(),lastLinesRemoved:S76(),lastTotalInputTokens:ZL6(),lastTotalOutputTokens:fL6(),lastTotalCacheCreationInputTokens:Zu1(),lastTotalCacheReadInputTokens:Gu1(),lastTotalWebSearchRequests:fu1(),lastFpsAverage:A?.averageFps,lastFpsLow1Pct:A?.low1PctFps,lastModelUsage:Object.fromEntries(Object.entries(qC()).map(([K,Y])=>[K,{inputTokens:Y.inputTokens,outputTokens:Y.outputTokens,cacheReadInputTokens:Y.cacheReadInputTokens,cacheCreationInputTokens:Y.cacheCreationInputTokens,webSearchRequests:Y.webSearchRequests,costUSD:Y.costUSD}])),lastSessionId:i1()}))}function Qu6(A,q=4){return`$${A>0.5?Fo5(A,100).toFixed(2):A.toFixed(q)}`}function po5(){let A=qC();if(Object.keys(A).length===0)return"Usage:                 0 input, 0 output, 0 cache read, 0 cache write";let q={};for(let[Y,z]of Object.entries(A)){let w=U$(Y);if(!q[w])q[w]={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0,contextWindow:0,maxOutputTokens:0};let _=q[w];_.inputTokens+=z.inputTokens,_.outputTokens+=z.outputTokens,_.cacheReadInputTokens+=z.cacheReadInputTokens,_.cacheCreationInputTokens+=z.cacheCreationInputTokens,_.webSearchRequests+=z.webSearchRequests,_.costUSD+=z.costUSD}let K="Usage by model:";for(let[Y,z]of Object.entries(q)){let w=`  ${z3(z.inputTokens)} input, ${z3(z.outputTokens)} output, ${z3(z.cacheReadInputTokens)} cache read, ${z3(z.cacheCreationInputTokens)} cache write`+(z.webSearchRequests>0?`, ${z3(z.webSearchRequests)} web search`:"")+` (${Qu6(z.costUSD)})`;K+=`
`+`${Y}:`.padStart(21)+w}return K}function o21(){let A=Qu6(XX())+(Tu1()?" (costs may be inaccurate due to usage of unknown models)":""),q=po5();return j1.dim(`Total cost:            ${A}
Total duration (API):  ${Y3(pN())}
Total duration (wall): ${Y3(wO6())}
Total code changes:    ${R76()} ${R76()===1?"line":"lines"} added, ${S76()} ${S76()===1?"line":"lines"} removed
${q}`)}function Fo5(A,q){return Math.round(A*q)/q}function Qo5(A,q,K){let Y=vu1(K)??{inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0,contextWindow:0,maxOutputTokens:0};return Y.inputTokens+=q.input_tokens,Y.outputTokens+=q.output_tokens,Y.cacheReadInputTokens+=q.cache_read_input_tokens??0,Y.cacheCreationInputTokens+=q.cache_creation_input_tokens??0,Y.webSearchRequests+=q.server_tool_use?.web_search_requests??0,Y.costUSD+=A,Y.contextWindow=YM(K,zj()),Y.maxOutputTokens=La(K).default,Y}function a21(A,q,K){let Y=Qo5(A,q,K);$u1(A,Y,K);let z=Sq()&&q.speed==="fast"?{model:K,speed:"fast"}:{model:K};yu1()?.add(A,z),jO6()?.add(q.input_tokens,{...z,type:"input"}),jO6()?.add(q.output_tokens,{...z,type:"output"}),jO6()?.add(q.cache_read_input_tokens??0,{...z,type:"cacheRead"}),jO6()?.add(q.cache_creation_input_tokens??0,{...z,type:"cacheCreation"})}var bk=E(()=>{BK();kG();Hq();e4();U8();U1();U1();U1();zM();U1()});function Uu6(A){return A.replaceAll("&",ff7).replaceAll("$",Tf7)}function vf7(A){return A.replaceAll(ff7,"&").replaceAll(Tf7,"$")}function du6(A,q){let K=0,Y=0;if(A.length===0&&q)K=q.split(/\r?\n/).length;else K=A.reduce((z,w)=>z+w.lines.filter((_)=>_.startsWith("+")).length,0),Y=A.reduce((z,w)=>z+w.lines.filter((_)=>_.startsWith("-")).length,0);Re6(K,Y),he6()?.add(K,{type:"added"}),he6()?.add(Y,{type:"removed"}),l("tengu_file_changed",{lines_added:K,lines_removed:Y})}function Vf7({filePath:A,oldContent:q,newContent:K,ignoreWhitespace:Y=!1,singleHunk:z=!1}){return uM6(A,A,Uu6(q),Uu6(K),void 0,void 0,{ignoreWhitespace:Y,context:z?1e5:Zf7}).hunks.map((w)=>({...w,lines:w.lines.map(vf7)}))}function mk({filePath:A,fileContents:q,edits:K,ignoreWhitespace:Y=!1}){let z=Uu6(iX6(q));return uM6(A,A,z,K.reduce((w,_)=>{let{old_string:$,new_string:O}=_,H="replace_all"in _?_.replace_all:!1,j=Uu6(iX6($)),J=Uu6(iX6(O));if(H)return w.replaceAll(j,()=>J);else return w.replace(j,()=>J)},z),void 0,void 0,{context:Zf7,ignoreWhitespace:Y}).hunks.map((w)=>({...w,lines:w.lines.map(vf7)}))}var Zf7=3,ff7="<<:AMPERSAND_TOKEN:>>",Tf7="<<:DOLLAR_TOKEN:>>";var nd=E(()=>{mM6();bk();c7();m1();U1()});var s21="ZPMQVRWSNKTXJBYH",r_2,o_2,a_2;var vt=E(()=>{P7();U1();Z1();m1();r_2=Array.from({length:256},(A,q)=>s21[q>>>4]+s21[q&15]),o_2=new RegExp(`^(\\d+)#([${s21}]{2})\\|`),a_2=new RegExp(`^(\\d+)#([${s21}]{2})$`)});function Uo5(){return`
- You must use your \`${wq}\` tool at least once in the conversation before editing. This tool will error if you attempt an edit without reading the file. `}function Nf7(){return do5()}function do5(){return`Performs exact string replacements in files.

Usage:${Uo5()}
- When editing text from Read tool output, ensure you preserve the exact indentation (tabs/spaces) as it appears AFTER the line number prefix. The line number prefix format is: spaces + line number + tab. Everything after that tab is the actual file content to match. Never include any part of the line number prefix in the old_string or new_string.
- ALWAYS prefer editing existing files in the codebase. NEVER write new files unless explicitly required.
- Only use emojis if the user explicitly requests it. Avoid adding emojis to files unless asked.
- The edit will FAIL if \`old_string\` is not unique in the file. Either provide a larger string with more surrounding context to make it unique or use \`replace_all\` to change every instance of \`old_string\`.
- Use \`replace_all\` for replacing and renaming strings across the file. This parameter is useful if you want to rename a variable for instance.`}var kf7=E(()=>{__();vt()});function Ef7(A){return A.replaceAll(B_8,"'").replaceAll(t21,"'").replaceAll(g_8,'"').replaceAll(p_8,'"')}function F_8(A){let q=A.split(/(\r\n|\n|\r)/),K="";for(let Y=0;Y<q.length;Y++){let z=q[Y];if(z!==void 0)if(Y%2===0)K+=z.replace(/\s+$/,"");else K+=z}return K}function P36(A,q){if(A.includes(q))return q;let K=Ef7(q),z=Ef7(A).indexOf(K);if(z!==-1)return A.substring(z,z+q.length);return null}function nX6(A,q,K){if(A===q)return K;let Y=q.includes(g_8)||q.includes(p_8),z=q.includes(B_8)||q.includes(t21);if(!Y&&!z)return K;let w=K;if(Y)w=co5(w);if(z)w=lo5(w);return w}function Lf7(A,q){if(q===0)return!0;let K=A[q-1];return K===" "||K==="\t"||K===`
`||K==="\r"||K==="("||K==="["||K==="{"||K==="—"||K==="–"}function co5(A){let q=[...A],K=[];for(let Y=0;Y<q.length;Y++)if(q[Y]==='"')K.push(Lf7(q,Y)?g_8:p_8);else K.push(q[Y]);return K.join("")}function lo5(A){let q=[...A],K=[];for(let Y=0;Y<q.length;Y++)if(q[Y]==="'"){let z=Y>0?q[Y-1]:void 0,w=Y<q.length-1?q[Y+1]:void 0,_=z!==void 0&&/\p{L}/u.test(z),$=w!==void 0&&/\p{L}/u.test(w);if(_&&$)K.push(t21);else K.push(Lf7(q,Y)?B_8:t21)}else K.push(q[Y]);return K.join("")}function io5(A,q,K,Y=!1){let z=Y?(_,$,O)=>_.replaceAll($,()=>O):(_,$,O)=>_.replace($,()=>O);if(K!=="")return z(A,q,K);return!q.endsWith(`
`)&&A.includes(q+`
`)?z(A,q+`
`,K):z(A,q,K)}function e21({filePath:A,fileContents:q,oldString:K,newString:Y,replaceAll:z=!1}){return cu6({filePath:A,fileContents:q,edits:[{old_string:K,new_string:Y,replace_all:z}]})}function cu6({filePath:A,fileContents:q,edits:K}){let Y=q,z=[];if(!q&&K.length===1&&K[0]&&K[0].old_string===""&&K[0].new_string==="")return{patch:mk({filePath:A,fileContents:q,edits:[{old_string:q,new_string:Y,replace_all:!1}]}),updatedFile:""};for(let _ of K){let $=_.old_string.replace(/\n+$/,"");for(let H of z)if($!==""&&H.includes($))throw Error("Cannot edit file: old_string is a substring of a new_string from a previous edit.");let O=Y;if(Y=_.old_string===""?_.new_string:io5(Y,_.old_string,_.new_string,_.replace_all),Y===O)throw Error("String not found in file. Failed to apply edit.");z.push(_.new_string)}if(Y===q)throw Error("Original and edited file match exactly. Failed to apply edit.");return{patch:mk({filePath:A,fileContents:q,edits:[{old_string:q,new_string:Y,replace_all:!1}]}),updatedFile:Y}}function yf7(A,q){return uM6("file.txt","file.txt",A,q,void 0,void 0,{context:8}).hunks.map((Y)=>({startLine:Y.oldStart,content:Y.lines.filter((z)=>!z.startsWith("-")&&!z.startsWith("\\")).map((z)=>z.slice(1)).join(`
`)})).map(A_1).join(`
...
`)}function Rf7(A){return A.map((q)=>{let K=[],Y=[],z=[];for(let w of q.lines)if(w.startsWith(" "))K.push(w.slice(1)),Y.push(w.slice(1)),z.push(w.slice(1));else if(w.startsWith("-"))Y.push(w.slice(1));else if(w.startsWith("+"))z.push(w.slice(1));return{old_string:Y.join(`
`),new_string:z.join(`
`),replace_all:!1}})}function ro5(A){let q=A,K=[];for(let[Y,z]of Object.entries(no5)){let w=q;if(q=q.replaceAll(Y,z),w!==q)K.push({from:Y,to:z})}return{result:q,appliedReplacements:K}}function Sf7({file_path:A,edits:q}){if(q.length===0)return{file_path:A,edits:q};try{let K=o4(A);if(!P1().existsSync(K))return{file_path:A,edits:q};let Y=Q_8(K);return{file_path:A,edits:q.map(({old_string:z,new_string:w,replace_all:_})=>{let $=F_8(w),O=z;if(Y.includes(O))return{old_string:O,new_string:$,replace_all:_};let{result:H,appliedReplacements:j}=ro5(O);if(Y.includes(H)){let J=$;for(let{from:M,to:D}of j)J=J.replaceAll(M,D);return{old_string:H,new_string:J,replace_all:_}}return{old_string:O,new_string:$,replace_all:_}})}}catch(K){$6(K)}return{file_path:A,edits:q}}function oo5(A,q,K){if(A.length===q.length&&A.every(($,O)=>{let H=q[O];return H!==void 0&&$.old_string===H.old_string&&$.new_string===H.new_string&&$.replace_all===H.replace_all}))return!0;let Y=null,z=null,w=null,_=null;try{Y=cu6({filePath:"temp",fileContents:K,edits:A})}catch($){z=D1($)}try{w=cu6({filePath:"temp",fileContents:K,edits:q})}catch($){_=D1($)}if(z!==null&&_!==null)return z===_;if(z!==null||_!==null)return!1;return Y.updatedFile===w.updatedFile}function hf7(A,q){if(A.file_path!==q.file_path)return!1;if(A.edits.length===q.edits.length&&A.edits.every((z,w)=>{let _=q.edits[w];return _!==void 0&&z.old_string===_.old_string&&z.new_string===_.new_string&&z.replace_all===_.replace_all}))return!0;let Y=P1().existsSync(A.file_path)?Q_8(A.file_path):"";return oo5(A.edits,q.edits,Y)}var B_8="‘",t21="’",g_8="“",p_8="”",no5;var W36=E(()=>{mM6();c7();nd();iY();D7();u1();vt();DA();no5={"<fnr>":"<function_results>","<n>":"<name>","</n>":"</name>","<o>":"<output>","</o>":"</output>","<e>":"<error>","</e>":"</error>","<s>":"<system>","</s>":"</system>","<r>":"<result>","</r>":"</result>","< META_START >":"<META_START>","< META_END >":"<META_END>","< EOT >":"<EOT>","< META >":"<META>","< SOS >":"<SOS>","\n\nH:":`

Human:`,"\n\nA:":`

Assistant:`}});async function lu6(A,q,{concurrency:K=Number.POSITIVE_INFINITY,stopOnError:Y=!0,signal:z}={}){return new Promise((w,_)=>{if(A[Symbol.iterator]===void 0&&A[Symbol.asyncIterator]===void 0)throw TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof A})`);if(typeof q!=="function")throw TypeError("Mapper function is required");if(!(Number.isSafeInteger(K)&&K>=1||K===Number.POSITIVE_INFINITY))throw TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${K}\` (${typeof K})`);let $=[],O=[],H=new Map,j=!1,J=!1,M=!1,D=0,X=0,P=A[Symbol.iterator]===void 0?A[Symbol.asyncIterator]():A[Symbol.iterator](),W=()=>{f(z.reason)},G=()=>{z?.removeEventListener("abort",W)},Z=(V)=>{w(V),G()},f=(V)=>{j=!0,J=!0,_(V),G()};if(z){if(z.aborted)f(z.reason);z.addEventListener("abort",W,{once:!0})}let v=async()=>{if(J)return;let V=await P.next(),N=X;if(X++,V.done){if(M=!0,D===0&&!J){if(!Y&&O.length>0){f(AggregateError(O));return}if(J=!0,H.size===0){Z($);return}let L=[];for(let[S,C]of $.entries()){if(H.get(S)===Cf7)continue;L.push(C)}Z(L)}return}D++,(async()=>{try{let L=await V.value;if(J)return;let S=await q(L,N);if(S===Cf7)H.set(N,S);$[N]=S,D--,await v()}catch(L){if(Y)f(L);else{O.push(L),D--;try{await v()}catch(S){f(S)}}}})()};(async()=>{for(let V=0;V<K;V++){try{await v()}catch(N){f(N);break}if(M||j)break}})()})}var Cf7;var U_8=E(()=>{Cf7=Symbol("skip")});class d_8{constructor(A){this._client=A}async*callToolStream(A,q=ru,K){let Y=this._client,z={...K,task:K?.task??(Y.isToolTask(A.name)?{}:void 0)},w=Y.requestStream({method:"tools/call",params:A},q,z),_=Y.getToolOutputValidator(A.name);for await(let $ of w){if($.type==="result"&&_){let O=$.result;if(!O.structuredContent&&!O.isError){yield{type:"error",error:new Oq(aq.InvalidRequest,`Tool ${A.name} has an output schema but did not return structured content`)};return}if(O.structuredContent)try{let H=_(O.structuredContent);if(!H.valid){yield{type:"error",error:new Oq(aq.InvalidParams,`Structured content does not match the tool's output schema: ${H.errorMessage}`)};return}}catch(H){if(H instanceof Oq){yield{type:"error",error:H};return}yield{type:"error",error:new Oq(aq.InvalidParams,`Failed to validate structured content: ${H instanceof Error?H.message:String(H)}`)};return}}yield $}}async getTask(A,q){return this._client.getTask({taskId:A},q)}async getTaskResult(A,q,K){return this._client.getTaskResult({taskId:A},q,K)}async listTasks(A,q){return this._client.listTasks(A?{cursor:A}:void 0,q)}async cancelTask(A,q){return this._client.cancelTask({taskId:A},q)}requestStream(A,q,K){return this._client.requestStream(A,q,K)}}var If7=E(()=>{WD()});function q_1(A,q){if(!A||q===null||typeof q!=="object")return;if(A.type==="object"&&A.properties&&typeof A.properties==="object"){let K=q,Y=A.properties;for(let z of Object.keys(Y)){let w=Y[z];if(K[z]===void 0&&Object.prototype.hasOwnProperty.call(w,"default"))K[z]=w.default;if(K[z]!==void 0)q_1(w,K[z])}}if(Array.isArray(A.anyOf)){for(let K of A.anyOf)if(typeof K!=="boolean")q_1(K,q)}if(Array.isArray(A.oneOf)){for(let K of A.oneOf)if(typeof K!=="boolean")q_1(K,q)}}function ao5(A){if(!A)return{supportsFormMode:!1,supportsUrlMode:!1};let q=A.form!==void 0,K=A.url!==void 0;return{supportsFormMode:q||!q&&!K,supportsUrlMode:K}}var K_1;var xf7=E(()=>{GU1();WD();fd1();JR6();If7();K_1=class K_1 extends DR6{constructor(A,q){super(q);if(this._clientInfo=A,this._cachedToolOutputValidators=new Map,this._cachedKnownTaskTools=new Set,this._cachedRequiredTaskTools=new Set,this._listChangedDebounceTimers=new Map,this._capabilities=q?.capabilities??{},this._jsonSchemaValidator=q?.jsonSchemaValidator??new BR6,q?.listChanged)this._pendingListChangedConfig=q.listChanged}_setupListChangedHandlers(A){if(A.tools&&this._serverCapabilities?.tools?.listChanged)this._setupListChangedHandler("tools",Uy6,A.tools,async()=>{return(await this.listTools()).tools});if(A.prompts&&this._serverCapabilities?.prompts?.listChanged)this._setupListChangedHandler("prompts",py6,A.prompts,async()=>{return(await this.listPrompts()).prompts});if(A.resources&&this._serverCapabilities?.resources?.listChanged)this._setupListChangedHandler("resources",By6,A.resources,async()=>{return(await this.listResources()).resources})}get experimental(){if(!this._experimental)this._experimental={tasks:new d_8(this)};return this._experimental}registerCapabilities(A){if(this.transport)throw Error("Cannot register capabilities after connecting to transport");this._capabilities=a11(this._capabilities,A)}setRequestHandler(A,q){let Y=HH6(A)?.method;if(!Y)throw Error("Schema is missing a method literal");let z;if(Eo(Y)){let _=Y;z=_._zod?.def?.value??_.value}else{let _=Y;z=_._def?.value??_.value}if(typeof z!=="string")throw Error("Schema method literal must be a string");let w=z;if(w==="elicitation/create"){let _=async($,O)=>{let H=oZ(tQ,$);if(!H.success){let G=H.error instanceof Error?H.error.message:String(H.error);throw new Oq(aq.InvalidParams,`Invalid elicitation request: ${G}`)}let{params:j}=H.data;j.mode=j.mode??"form";let{supportsFormMode:J,supportsUrlMode:M}=ao5(this._capabilities.elicitation);if(j.mode==="form"&&!J)throw new Oq(aq.InvalidParams,"Client does not support form-mode elicitation requests");if(j.mode==="url"&&!M)throw new Oq(aq.InvalidParams,"Client does not support URL-mode elicitation requests");let D=await Promise.resolve(q($,O));if(j.task){let G=oZ(sQ,D);if(!G.success){let Z=G.error instanceof Error?G.error.message:String(G.error);throw new Oq(aq.InvalidParams,`Invalid task creation result: ${Z}`)}return G.data}let X=oZ(Po,D);if(!X.success){let G=X.error instanceof Error?X.error.message:String(X.error);throw new Oq(aq.InvalidParams,`Invalid elicitation result: ${G}`)}let P=X.data,W=j.mode==="form"?j.requestedSchema:void 0;if(j.mode==="form"&&P.action==="accept"&&P.content&&W){if(this._capabilities.elicitation?.form?.applyDefaults)try{q_1(W,P.content)}catch{}}return P};return super.setRequestHandler(A,_)}if(w==="sampling/createMessage"){let _=async($,O)=>{let H=oZ(GQ1,$);if(!H.success){let P=H.error instanceof Error?H.error.message:String(H.error);throw new Oq(aq.InvalidParams,`Invalid sampling request: ${P}`)}let{params:j}=H.data,J=await Promise.resolve(q($,O));if(j.task){let P=oZ(sQ,J);if(!P.success){let W=P.error instanceof Error?P.error.message:String(P.error);throw new Oq(aq.InvalidParams,`Invalid task creation result: ${W}`)}return P.data}let D=j.tools||j.toolChoice?cy6:A46,X=oZ(D,J);if(!X.success){let P=X.error instanceof Error?X.error.message:String(X.error);throw new Oq(aq.InvalidParams,`Invalid sampling result: ${P}`)}return X.data};return super.setRequestHandler(A,_)}return super.setRequestHandler(A,q)}assertCapability(A,q){if(!this._serverCapabilities?.[A])throw Error(`Server does not support ${A} (required for ${q})`)}async connect(A,q){if(await super.connect(A),A.sessionId!==void 0)return;try{let K=await this.request({method:"initialize",params:{protocolVersion:Do,capabilities:this._capabilities,clientInfo:this._clientInfo}},$Q1,q);if(K===void 0)throw Error(`Server sent invalid initialize result: ${K}`);if(!O11.includes(K.protocolVersion))throw Error(`Server's protocol version is not supported: ${K.protocolVersion}`);if(this._serverCapabilities=K.capabilities,this._serverVersion=K.serverInfo,A.setProtocolVersion)A.setProtocolVersion(K.protocolVersion);if(this._instructions=K.instructions,await this.notification({method:"notifications/initialized"}),this._pendingListChangedConfig)this._setupListChangedHandlers(this._pendingListChangedConfig),this._pendingListChangedConfig=void 0}catch(K){throw this.close(),K}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(A){switch(A){case"logging/setLevel":if(!this._serverCapabilities?.logging)throw Error(`Server does not support logging (required for ${A})`);break;case"prompts/get":case"prompts/list":if(!this._serverCapabilities?.prompts)throw Error(`Server does not support prompts (required for ${A})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!this._serverCapabilities?.resources)throw Error(`Server does not support resources (required for ${A})`);if(A==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw Error(`Server does not support resource subscriptions (required for ${A})`);break;case"tools/call":case"tools/list":if(!this._serverCapabilities?.tools)throw Error(`Server does not support tools (required for ${A})`);break;case"completion/complete":if(!this._serverCapabilities?.completions)throw Error(`Server does not support completions (required for ${A})`);break;case"initialize":break;case"ping":break}}assertNotificationCapability(A){switch(A){case"notifications/roots/list_changed":if(!this._capabilities.roots?.listChanged)throw Error(`Client does not support roots list changed notifications (required for ${A})`);break;case"notifications/initialized":break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(A){if(!this._capabilities)return;switch(A){case"sampling/createMessage":if(!this._capabilities.sampling)throw Error(`Client does not support sampling capability (required for ${A})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw Error(`Client does not support elicitation capability (required for ${A})`);break;case"roots/list":if(!this._capabilities.roots)throw Error(`Client does not support roots capability (required for ${A})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw Error(`Client does not support tasks capability (required for ${A})`);break;case"ping":break}}assertTaskCapability(A){u81(this._serverCapabilities?.tasks?.requests,A,"Server")}assertTaskHandlerCapability(A){if(!this._capabilities)return;m81(this._capabilities.tasks?.requests,A,"Client")}async ping(A){return this.request({method:"ping"},aQ,A)}async complete(A,q){return this.request({method:"completion/complete",params:A},ZQ1,q)}async setLoggingLevel(A,q){return this.request({method:"logging/setLevel",params:{level:A}},aQ,q)}async getPrompt(A,q){return this.request({method:"prompts/get",params:A},PQ1,q)}async listPrompts(A,q){return this.request({method:"prompts/list",params:A},gy6,q)}async listResources(A,q){return this.request({method:"resources/list",params:A},t76,q)}async listResourceTemplates(A,q){return this.request({method:"resources/templates/list",params:A},HQ1,q)}async readResource(A,q){return this.request({method:"resources/read",params:A},my6,q)}async subscribeResource(A,q){return this.request({method:"resources/subscribe",params:A},aQ,q)}async unsubscribeResource(A,q){return this.request({method:"resources/unsubscribe",params:A},aQ,q)}async callTool(A,q=ru,K){if(this.isToolTaskRequired(A.name))throw new Oq(aq.InvalidRequest,`Tool "${A.name}" requires task-based execution. Use client.experimental.tasks.callToolStream() instead.`);let Y=await this.request({method:"tools/call",params:A},q,K),z=this.getToolOutputValidator(A.name);if(z){if(!Y.structuredContent&&!Y.isError)throw new Oq(aq.InvalidRequest,`Tool ${A.name} has an output schema but did not return structured content`);if(Y.structuredContent)try{let w=z(Y.structuredContent);if(!w.valid)throw new Oq(aq.InvalidParams,`Structured content does not match the tool's output schema: ${w.errorMessage}`)}catch(w){if(w instanceof Oq)throw w;throw new Oq(aq.InvalidParams,`Failed to validate structured content: ${w instanceof Error?w.message:String(w)}`)}}return Y}isToolTask(A){if(!this._serverCapabilities?.tasks?.requests?.tools?.call)return!1;return this._cachedKnownTaskTools.has(A)}isToolTaskRequired(A){return this._cachedRequiredTaskTools.has(A)}cacheToolMetadata(A){this._cachedToolOutputValidators.clear(),this._cachedKnownTaskTools.clear(),this._cachedRequiredTaskTools.clear();for(let q of A){if(q.outputSchema){let Y=this._jsonSchemaValidator.getValidator(q.outputSchema);this._cachedToolOutputValidators.set(q.name,Y)}let K=q.execution?.taskSupport;if(K==="required"||K==="optional")this._cachedKnownTaskTools.add(q.name);if(K==="required")this._cachedRequiredTaskTools.add(q.name)}}getToolOutputValidator(A){return this._cachedToolOutputValidators.get(A)}async listTools(A,q){let K=await this.request({method:"tools/list",params:A},Qy6,q);return this.cacheToolMetadata(K.tools),K}_setupListChangedHandler(A,q,K,Y){let z=qqA.safeParse(K);if(!z.success)throw Error(`Invalid ${A} listChanged options: ${z.error.message}`);if(typeof K.onChanged!=="function")throw Error(`Invalid ${A} listChanged options: onChanged must be a function`);let{autoRefresh:w,debounceMs:_}=z.data,{onChanged:$}=K,O=async()=>{if(!w){$(null,null);return}try{let j=await Y();$(null,j)}catch(j){let J=j instanceof Error?j:Error(String(j));$(J,null)}},H=()=>{if(_){let j=this._listChangedDebounceTimers.get(A);if(j)clearTimeout(j);let J=setTimeout(O,_);this._listChangedDebounceTimers.set(A,J)}else O()};this.setNotificationHandler(q,H)}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}}});import Y_1 from"node:process";import{PassThrough as so5}from"node:stream";function eo5(){let A={};for(let q of to5){let K=Y_1.env[q];if(K===void 0)continue;if(K.startsWith("()"))continue;A[q]=K}return A}class c_8{constructor(A){if(this._readBuffer=new iy6,this._stderrStream=null,this._serverParams=A,A.stderr==="pipe"||A.stderr==="overlapped")this._stderrStream=new so5}async start(){if(this._process)throw Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((A,q)=>{if(this._process=bf7.default(this._serverParams.command,this._serverParams.args??[],{env:{...eo5(),...this._serverParams.env},stdio:["pipe","pipe",this._serverParams.stderr??"inherit"],shell:!1,windowsHide:Y_1.platform==="win32"&&Aa5(),cwd:this._serverParams.cwd}),this._process.on("error",(K)=>{q(K),this.onerror?.(K)}),this._process.on("spawn",()=>{A()}),this._process.on("close",(K)=>{this._process=void 0,this.onclose?.()}),this._process.stdin?.on("error",(K)=>{this.onerror?.(K)}),this._process.stdout?.on("data",(K)=>{this._readBuffer.append(K),this.processReadBuffer()}),this._process.stdout?.on("error",(K)=>{this.onerror?.(K)}),this._stderrStream&&this._process.stderr)this._process.stderr.pipe(this._stderrStream)})}get stderr(){if(this._stderrStream)return this._stderrStream;return this._process?.stderr??null}get pid(){return this._process?.pid??null}processReadBuffer(){while(!0)try{let A=this._readBuffer.readMessage();if(A===null)break;this.onmessage?.(A)}catch(A){this.onerror?.(A)}}async close(){if(this._process){let A=this._process;this._process=void 0;let q=new Promise((K)=>{A.once("close",()=>{K()})});try{A.stdin?.end()}catch{}if(await Promise.race([q,new Promise((K)=>setTimeout(K,2000).unref())]),A.exitCode===null){try{A.kill("SIGTERM")}catch{}await Promise.race([q,new Promise((K)=>setTimeout(K,2000).unref())])}if(A.exitCode===null)try{A.kill("SIGKILL")}catch{}}this._readBuffer.clear()}send(A){return new Promise((q)=>{if(!this._process?.stdin)throw Error("Not connected");let K=v11(A);if(this._process.stdin.write(K))q();else this._process.stdin.once("drain",q)})}}function Aa5(){return"type"in Y_1}var bf7,to5;var uf7=E(()=>{vQ1();bf7=q6(Di1(),1),to5=Y_1.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"]});function l_8(A){}function z_1(A){if(typeof A=="function")throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:q=l_8,onError:K=l_8,onRetry:Y=l_8,onComment:z}=A,w="",_=!0,$,O="",H="";function j(P){let W=_?P.replace(/^\xEF\xBB\xBF/,""):P,[G,Z]=qa5(`${w}${W}`);for(let f of G)J(f);w=Z,_=!1}function J(P){if(P===""){D();return}if(P.startsWith(":")){z&&z(P.slice(P.startsWith(": ")?2:1));return}let W=P.indexOf(":");if(W!==-1){let G=P.slice(0,W),Z=P[W+1]===" "?2:1,f=P.slice(W+Z);M(G,f,P);return}M(P,"",P)}function M(P,W,G){switch(P){case"event":H=W;break;case"data":O=`${O}${W}
`;break;case"id":$=W.includes("\x00")?void 0:W;break;case"retry":/^\d+$/.test(W)?Y(parseInt(W,10)):K(new i_8(`Invalid \`retry\` value: "${W}"`,{type:"invalid-retry",value:W,line:G}));break;default:K(new i_8(`Unknown field "${P.length>20?`${P.slice(0,20)}…`:P}"`,{type:"unknown-field",field:P,value:W,line:G}));break}}function D(){O.length>0&&q({id:$,event:H||void 0,data:O.endsWith(`
`)?O.slice(0,-1):O}),$=void 0,O="",H=""}function X(P={}){w&&P.consume&&J(w),_=!0,$=void 0,O="",H="",w=""}return{feed:j,reset:X}}function qa5(A){let q=[],K="",Y=0;for(;Y<A.length;){let z=A.indexOf("\r",Y),w=A.indexOf(`
`,Y),_=-1;if(z!==-1&&w!==-1?_=Math.min(z,w):z!==-1?_=z:w!==-1&&(_=w),_===-1){K=A.slice(Y);break}else{let $=A.slice(Y,_);q.push($),Y=_+1,A[Y-1]==="\r"&&A[Y]===`
`&&Y++}}return[q,K]}var i_8;var n_8=E(()=>{i_8=class i_8 extends Error{constructor(A,q){super(A),this.name="ParseError",this.type=q.type,this.field=q.field,this.value=q.value,this.line=q.line}}});function Ka5(A){let q=globalThis.DOMException;return typeof q=="function"?new q(A,"SyntaxError"):SyntaxError(A)}function o_8(A){return A instanceof Error?"errors"in A&&Array.isArray(A.errors)?A.errors.map(o_8).join(", "):("cause"in A)&&A.cause instanceof Error?`${A}: ${o_8(A.cause)}`:A.message:`${A}`}function mf7(A){return{type:A.type,message:A.message,code:A.code,defaultPrevented:A.defaultPrevented,cancelable:A.cancelable,timeStamp:A.timeStamp}}function Ya5(){let A="document"in globalThis?globalThis.document:void 0;return A&&typeof A=="object"&&"baseURI"in A&&typeof A.baseURI=="string"?A.baseURI:void 0}var r_8,gf7=(A)=>{throw TypeError(A)},Y$8=(A,q,K)=>q.has(A)||gf7("Cannot "+K),c9=(A,q,K)=>(Y$8(A,q,"read from private field"),K?K.call(A):q.get(A)),yD=(A,q,K)=>q.has(A)?gf7("Cannot add the same private member more than once"):q instanceof WeakSet?q.add(A):q.set(A,K),IO=(A,q,K,Y)=>(Y$8(A,q,"write to private field"),q.set(A,K),K),rd=(A,q,K)=>(Y$8(A,q,"access private method"),K),av,G36,rX6,w_1,__1,ru6,sX6,ou6,Vt,oX6,tX6,aX6,iu6,GI,a_8,s_8,t_8,Bf7,e_8,A$8,nu6,q$8,K$8,eX6;var pf7=E(()=>{n_8();r_8=class r_8 extends Event{constructor(A,q){var K,Y;super(A),this.code=(K=q==null?void 0:q.code)!=null?K:void 0,this.message=(Y=q==null?void 0:q.message)!=null?Y:void 0}[Symbol.for("nodejs.util.inspect.custom")](A,q,K){return K(mf7(this),q)}[Symbol.for("Deno.customInspect")](A,q){return A(mf7(this),q)}};eX6=class eX6 extends EventTarget{constructor(A,q){var K,Y;super(),yD(this,GI),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,yD(this,av),yD(this,G36),yD(this,rX6),yD(this,w_1),yD(this,__1),yD(this,ru6),yD(this,sX6),yD(this,ou6,null),yD(this,Vt),yD(this,oX6),yD(this,tX6,null),yD(this,aX6,null),yD(this,iu6,null),yD(this,s_8,async(z)=>{var w;c9(this,oX6).reset();let{body:_,redirected:$,status:O,headers:H}=z;if(O===204){rd(this,GI,nu6).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if($?IO(this,rX6,new URL(z.url)):IO(this,rX6,void 0),O!==200){rd(this,GI,nu6).call(this,`Non-200 status code (${O})`,O);return}if(!(H.get("content-type")||"").startsWith("text/event-stream")){rd(this,GI,nu6).call(this,'Invalid content type, expected "text/event-stream"',O);return}if(c9(this,av)===this.CLOSED)return;IO(this,av,this.OPEN);let j=new Event("open");if((w=c9(this,iu6))==null||w.call(this,j),this.dispatchEvent(j),typeof _!="object"||!_||!("getReader"in _)){rd(this,GI,nu6).call(this,"Invalid response body, expected a web ReadableStream",O),this.close();return}let J=new TextDecoder,M=_.getReader(),D=!0;do{let{done:X,value:P}=await M.read();P&&c9(this,oX6).feed(J.decode(P,{stream:!X})),X&&(D=!1,c9(this,oX6).reset(),rd(this,GI,q$8).call(this))}while(D)}),yD(this,t_8,(z)=>{IO(this,Vt,void 0),!(z.name==="AbortError"||z.type==="aborted")&&rd(this,GI,q$8).call(this,o_8(z))}),yD(this,e_8,(z)=>{typeof z.id=="string"&&IO(this,ou6,z.id);let w=new MessageEvent(z.event||"message",{data:z.data,origin:c9(this,rX6)?c9(this,rX6).origin:c9(this,G36).origin,lastEventId:z.id||""});c9(this,aX6)&&(!z.event||z.event==="message")&&c9(this,aX6).call(this,w),this.dispatchEvent(w)}),yD(this,A$8,(z)=>{IO(this,ru6,z)}),yD(this,K$8,()=>{IO(this,sX6,void 0),c9(this,av)===this.CONNECTING&&rd(this,GI,a_8).call(this)});try{if(A instanceof URL)IO(this,G36,A);else if(typeof A=="string")IO(this,G36,new URL(A,Ya5()));else throw Error("Invalid URL")}catch{throw Ka5("An invalid or illegal string was specified")}IO(this,oX6,z_1({onEvent:c9(this,e_8),onRetry:c9(this,A$8)})),IO(this,av,this.CONNECTING),IO(this,ru6,3000),IO(this,__1,(K=q==null?void 0:q.fetch)!=null?K:globalThis.fetch),IO(this,w_1,(Y=q==null?void 0:q.withCredentials)!=null?Y:!1),rd(this,GI,a_8).call(this)}get readyState(){return c9(this,av)}get url(){return c9(this,G36).href}get withCredentials(){return c9(this,w_1)}get onerror(){return c9(this,tX6)}set onerror(A){IO(this,tX6,A)}get onmessage(){return c9(this,aX6)}set onmessage(A){IO(this,aX6,A)}get onopen(){return c9(this,iu6)}set onopen(A){IO(this,iu6,A)}addEventListener(A,q,K){let Y=q;super.addEventListener(A,Y,K)}removeEventListener(A,q,K){let Y=q;super.removeEventListener(A,Y,K)}close(){c9(this,sX6)&&clearTimeout(c9(this,sX6)),c9(this,av)!==this.CLOSED&&(c9(this,Vt)&&c9(this,Vt).abort(),IO(this,av,this.CLOSED),IO(this,Vt,void 0))}};av=new WeakMap,G36=new WeakMap,rX6=new WeakMap,w_1=new WeakMap,__1=new WeakMap,ru6=new WeakMap,sX6=new WeakMap,ou6=new WeakMap,Vt=new WeakMap,oX6=new WeakMap,tX6=new WeakMap,aX6=new WeakMap,iu6=new WeakMap,GI=new WeakSet,a_8=function(){IO(this,av,this.CONNECTING),IO(this,Vt,new AbortController),c9(this,__1)(c9(this,G36),rd(this,GI,Bf7).call(this)).then(c9(this,s_8)).catch(c9(this,t_8))},s_8=new WeakMap,t_8=new WeakMap,Bf7=function(){var A;let q={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...c9(this,ou6)?{"Last-Event-ID":c9(this,ou6)}:void 0},cache:"no-store",signal:(A=c9(this,Vt))==null?void 0:A.signal};return"window"in globalThis&&(q.credentials=this.withCredentials?"include":"same-origin"),q},e_8=new WeakMap,A$8=new WeakMap,nu6=function(A,q){var K;c9(this,av)!==this.CLOSED&&IO(this,av,this.CLOSED);let Y=new r_8("error",{code:q,message:A});(K=c9(this,tX6))==null||K.call(this,Y),this.dispatchEvent(Y)},q$8=function(A,q){var K;if(c9(this,av)===this.CLOSED)return;IO(this,av,this.CONNECTING);let Y=new r_8("error",{code:q,message:A});(K=c9(this,tX6))==null||K.call(this,Y),this.dispatchEvent(Y),IO(this,sX6,setTimeout(c9(this,K$8),c9(this,ru6)))},K$8=new WeakMap,eX6.CONNECTING=0,eX6.OPEN=1,eX6.CLOSED=2});function AP6(A){if(!A)return{};if(A instanceof Headers)return Object.fromEntries(A.entries());if(Array.isArray(A))return Object.fromEntries(A);return{...A}}function Z36(A=fetch,q){if(!q)return A;return async(K,Y)=>{let z={...q,...Y,headers:Y?.headers?{...AP6(q.headers),...AP6(Y.headers)}:q.headers};return A(K,z)}}async function za5(A){return(await z$8).getRandomValues(new Uint8Array(A))}async function wa5(A){let K="",Y=await za5(A);for(let z=0;z<A;z++){let w=Y[z]%66;K+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~"[w]}return K}async function _a5(A){return await wa5(A)}async function $a5(A){let q=await(await z$8).subtle.digest("SHA-256",new TextEncoder().encode(A));return btoa(String.fromCharCode(...new Uint8Array(q))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function w$8(A){if(!A)A=43;if(A<43||A>128)throw`Expected a length between 43 and 128. Received ${A}.`;let q=await _a5(A),K=await $a5(q);return{code_verifier:q,code_challenge:K}}var z$8;var Ff7=E(()=>{z$8=globalThis.crypto?.webcrypto??globalThis.crypto??import("node:crypto").then((A)=>A.webcrypto)});var N0,Uf7,au6,Oa5,df7,cf7,$_1,Qf7,Ha5,ja5,lf7,m$2,B$2;var O_1=E(()=>{_4();N0=RF1().superRefine((A,q)=>{if(!URL.canParse(A))return q.addIssue({code:AQ1.custom,message:"URL must be parseable",fatal:!0}),pL6}).refine((A)=>{let q=new URL(A);return q.protocol!=="javascript:"&&q.protocol!=="data:"&&q.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),Uf7=AM({resource:n1().url(),authorization_servers:d7(N0).optional(),jwks_uri:n1().url().optional(),scopes_supported:d7(n1()).optional(),bearer_methods_supported:d7(n1()).optional(),resource_signing_alg_values_supported:d7(n1()).optional(),resource_name:n1().optional(),resource_documentation:n1().optional(),resource_policy_uri:n1().url().optional(),resource_tos_uri:n1().url().optional(),tls_client_certificate_bound_access_tokens:rw().optional(),authorization_details_types_supported:d7(n1()).optional(),dpop_signing_alg_values_supported:d7(n1()).optional(),dpop_bound_access_tokens_required:rw().optional()}),au6=AM({issuer:n1(),authorization_endpoint:N0,token_endpoint:N0,registration_endpoint:N0.optional(),scopes_supported:d7(n1()).optional(),response_types_supported:d7(n1()),response_modes_supported:d7(n1()).optional(),grant_types_supported:d7(n1()).optional(),token_endpoint_auth_methods_supported:d7(n1()).optional(),token_endpoint_auth_signing_alg_values_supported:d7(n1()).optional(),service_documentation:N0.optional(),revocation_endpoint:N0.optional(),revocation_endpoint_auth_methods_supported:d7(n1()).optional(),revocation_endpoint_auth_signing_alg_values_supported:d7(n1()).optional(),introspection_endpoint:n1().optional(),introspection_endpoint_auth_methods_supported:d7(n1()).optional(),introspection_endpoint_auth_signing_alg_values_supported:d7(n1()).optional(),code_challenge_methods_supported:d7(n1()).optional(),client_id_metadata_document_supported:rw().optional()}),Oa5=AM({issuer:n1(),authorization_endpoint:N0,token_endpoint:N0,userinfo_endpoint:N0.optional(),jwks_uri:N0,registration_endpoint:N0.optional(),scopes_supported:d7(n1()).optional(),response_types_supported:d7(n1()),response_modes_supported:d7(n1()).optional(),grant_types_supported:d7(n1()).optional(),acr_values_supported:d7(n1()).optional(),subject_types_supported:d7(n1()),id_token_signing_alg_values_supported:d7(n1()),id_token_encryption_alg_values_supported:d7(n1()).optional(),id_token_encryption_enc_values_supported:d7(n1()).optional(),userinfo_signing_alg_values_supported:d7(n1()).optional(),userinfo_encryption_alg_values_supported:d7(n1()).optional(),userinfo_encryption_enc_values_supported:d7(n1()).optional(),request_object_signing_alg_values_supported:d7(n1()).optional(),request_object_encryption_alg_values_supported:d7(n1()).optional(),request_object_encryption_enc_values_supported:d7(n1()).optional(),token_endpoint_auth_methods_supported:d7(n1()).optional(),token_endpoint_auth_signing_alg_values_supported:d7(n1()).optional(),display_values_supported:d7(n1()).optional(),claim_types_supported:d7(n1()).optional(),claims_supported:d7(n1()).optional(),service_documentation:n1().optional(),claims_locales_supported:d7(n1()).optional(),ui_locales_supported:d7(n1()).optional(),claims_parameter_supported:rw().optional(),request_parameter_supported:rw().optional(),request_uri_parameter_supported:rw().optional(),require_request_uri_registration:rw().optional(),op_policy_uri:N0.optional(),op_tos_uri:N0.optional(),client_id_metadata_document_supported:rw().optional()}),df7=z4({...Oa5.shape,...au6.pick({code_challenge_methods_supported:!0}).shape}),cf7=z4({access_token:n1(),id_token:n1().optional(),token_type:n1(),expires_in:yy6.number().optional(),scope:n1().optional(),refresh_token:n1().optional()}).strip(),$_1=z4({error:n1(),error_description:n1().optional(),error_uri:n1().optional()}),Qf7=N0.optional().or($q("").transform(()=>{return})),Ha5=z4({redirect_uris:d7(N0),token_endpoint_auth_method:n1().optional(),grant_types:d7(n1()).optional(),response_types:d7(n1()).optional(),client_name:n1().optional(),client_uri:N0.optional(),logo_uri:Qf7,scope:n1().optional(),contacts:d7(n1()).optional(),tos_uri:Qf7,policy_uri:n1().optional(),jwks_uri:N0.optional(),jwks:lF1().optional(),software_id:n1().optional(),software_version:n1().optional(),software_statement:n1().optional()}).strip(),ja5=z4({client_id:n1(),client_secret:n1().optional(),client_id_issued_at:UY().optional(),client_secret_expires_at:UY().optional()}).strip(),lf7=Ha5.merge(ja5),m$2=z4({error:n1(),error_description:n1().optional()}).strip(),B$2=z4({token:n1(),token_type_hint:n1().optional()}).strip()});function if7(A){let q=typeof A==="string"?new URL(A):new URL(A.href);return q.hash="",q}function nf7({requestedResource:A,configuredResource:q}){let K=typeof A==="string"?new URL(A):new URL(A.href),Y=typeof q==="string"?new URL(q):new URL(q.href);if(K.origin!==Y.origin)return!1;if(K.pathname.length<Y.pathname.length)return!1;let z=K.pathname.endsWith("/")?K.pathname:K.pathname+"/",w=Y.pathname.endsWith("/")?Y.pathname:Y.pathname+"/";return z.startsWith(w)}var ZM,H_1,qP6,Nt,KP6,j_1,J_1,M_1,EB,YP6,D_1,X_1,P_1,W_1,zP6,wP6,G_1,Z_1,rf7;var _$8=E(()=>{ZM=class ZM extends Error{constructor(A,q){super(A);this.errorUri=q,this.name=this.constructor.name}toResponseObject(){let A={error:this.errorCode,error_description:this.message};if(this.errorUri)A.error_uri=this.errorUri;return A}get errorCode(){return this.constructor.errorCode}};H_1=class H_1 extends ZM{};H_1.errorCode="invalid_request";qP6=class qP6 extends ZM{};qP6.errorCode="invalid_client";Nt=class Nt extends ZM{};Nt.errorCode="invalid_grant";KP6=class KP6 extends ZM{};KP6.errorCode="unauthorized_client";j_1=class j_1 extends ZM{};j_1.errorCode="unsupported_grant_type";J_1=class J_1 extends ZM{};J_1.errorCode="invalid_scope";M_1=class M_1 extends ZM{};M_1.errorCode="access_denied";EB=class EB extends ZM{};EB.errorCode="server_error";YP6=class YP6 extends ZM{};YP6.errorCode="temporarily_unavailable";D_1=class D_1 extends ZM{};D_1.errorCode="unsupported_response_type";X_1=class X_1 extends ZM{};X_1.errorCode="unsupported_token_type";P_1=class P_1 extends ZM{};P_1.errorCode="invalid_token";W_1=class W_1 extends ZM{};W_1.errorCode="method_not_allowed";zP6=class zP6 extends ZM{};zP6.errorCode="too_many_requests";wP6=class wP6 extends ZM{};wP6.errorCode="invalid_client_metadata";G_1=class G_1 extends ZM{};G_1.errorCode="insufficient_scope";Z_1=class Z_1 extends ZM{};Z_1.errorCode="invalid_target";rf7={[H_1.errorCode]:H_1,[qP6.errorCode]:qP6,[Nt.errorCode]:Nt,[KP6.errorCode]:KP6,[j_1.errorCode]:j_1,[J_1.errorCode]:J_1,[M_1.errorCode]:M_1,[EB.errorCode]:EB,[YP6.errorCode]:YP6,[D_1.errorCode]:D_1,[X_1.errorCode]:X_1,[P_1.errorCode]:P_1,[W_1.errorCode]:W_1,[zP6.errorCode]:zP6,[wP6.errorCode]:wP6,[G_1.errorCode]:G_1,[Z_1.errorCode]:Z_1}});function Ja5(A){return["client_secret_basic","client_secret_post","none"].includes(A)}function Ma5(A,q){let K=A.client_secret!==void 0;if(q.length===0)return K?"client_secret_post":"none";if("token_endpoint_auth_method"in A&&A.token_endpoint_auth_method&&Ja5(A.token_endpoint_auth_method)&&q.includes(A.token_endpoint_auth_method))return A.token_endpoint_auth_method;if(K&&q.includes("client_secret_basic"))return"client_secret_basic";if(K&&q.includes("client_secret_post"))return"client_secret_post";if(q.includes("none"))return"none";return K?"client_secret_post":"none"}function Da5(A,q,K,Y){let{client_id:z,client_secret:w}=q;switch(A){case"client_secret_basic":Xa5(z,w,K);return;case"client_secret_post":Pa5(z,w,Y);return;case"none":Wa5(z,Y);return;default:throw Error(`Unsupported client authentication method: ${A}`)}}function Xa5(A,q,K){if(!q)throw Error("client_secret_basic authentication requires a client_secret");let Y=btoa(`${A}:${q}`);K.set("Authorization",`Basic ${Y}`)}function Pa5(A,q,K){if(K.set("client_id",A),q)K.set("client_secret",q)}function Wa5(A,q){q.set("client_id",A)}async function af7(A){let q=A instanceof Response?A.status:void 0,K=A instanceof Response?await A.text():A;try{let Y=$_1.parse(JSON.parse(K)),{error:z,error_description:w,error_uri:_}=Y;return new(rf7[z]||EB)(w||"",_)}catch(Y){let z=`${q?`HTTP ${q}: `:""}Invalid OAuth error response: ${Y}. Raw body: ${K}`;return new EB(z)}}async function jR(A,q){try{return await H$8(A,q)}catch(K){if(K instanceof qP6||K instanceof KP6)return await A.invalidateCredentials?.("all"),await H$8(A,q);else if(K instanceof Nt)return await A.invalidateCredentials?.("tokens"),await H$8(A,q);throw K}}async function H$8(A,{serverUrl:q,authorizationCode:K,scope:Y,resourceMetadataUrl:z,fetchFn:w}){let _=await A.discoveryState?.(),$,O,H,j=z;if(!j&&_?.resourceMetadataUrl)j=new URL(_.resourceMetadataUrl);if(_?.authorizationServerUrl){if(O=_.authorizationServerUrl,$=_.resourceMetadata,H=_.authorizationServerMetadata??await su6(O,{fetchFn:w}),!$)try{$=await sf7(q,{resourceMetadataUrl:j},w)}catch{}if(H!==_.authorizationServerMetadata||$!==_.resourceMetadata)await A.saveDiscoveryState?.({authorizationServerUrl:String(O),resourceMetadataUrl:j?.toString(),resourceMetadata:$,authorizationServerMetadata:H})}else{let Z=await Na5(q,{resourceMetadataUrl:j,fetchFn:w});O=Z.authorizationServerUrl,H=Z.authorizationServerMetadata,$=Z.resourceMetadata,await A.saveDiscoveryState?.({authorizationServerUrl:String(O),resourceMetadataUrl:j?.toString(),resourceMetadata:$,authorizationServerMetadata:H})}let J=await Za5(q,A,$),M=await Promise.resolve(A.clientInformation());if(!M){if(K!==void 0)throw Error("Existing OAuth client information is required when exchanging an authorization code");let Z=H?.client_id_metadata_document_supported===!0,f=A.clientMetadataUrl;if(f&&!Ga5(f))throw new wP6(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${f}`);if(Z&&f)M={client_id:f},await A.saveClientInformation?.(M);else{if(!A.saveClientInformation)throw Error("OAuth client information must be saveable for dynamic registration");let V=await ya5(O,{metadata:H,clientMetadata:A.clientMetadata,fetchFn:w});await A.saveClientInformation(V),M=V}}let D=!A.redirectUrl;if(K!==void 0||D){let Z=await La5(A,O,{metadata:H,resource:J,authorizationCode:K,fetchFn:w});return await A.saveTokens(Z),"AUTHORIZED"}let X=await A.tokens();if(X?.refresh_token)try{let Z=await M$8(O,{metadata:H,clientInformation:M,refreshToken:X.refresh_token,resource:J,addClientAuthentication:A.addClientAuthentication,fetchFn:w});return await A.saveTokens(Z),"AUTHORIZED"}catch(Z){if(!(Z instanceof ZM)||Z instanceof EB);else throw Z}let P=A.state?await A.state():void 0,{authorizationUrl:W,codeVerifier:G}=await ka5(O,{metadata:H,clientInformation:M,state:P,redirectUrl:A.redirectUrl,scope:Y||$?.scopes_supported?.join(" ")||A.clientMetadata.scope,resource:J});return await A.saveCodeVerifier(G),await A.redirectToAuthorization(W),"REDIRECT"}function Ga5(A){if(!A)return!1;try{let q=new URL(A);return q.protocol==="https:"&&q.pathname!=="/"}catch{return!1}}async function Za5(A,q,K){let Y=if7(A);if(q.validateResourceURL)return await q.validateResourceURL(Y,K?.resource);if(!K)return;if(!nf7({requestedResource:Y,configuredResource:K.resource}))throw Error(`Protected resource ${K.resource} does not match expected ${Y} (or origin)`);return new URL(K.resource)}function _P6(A){let q=A.headers.get("WWW-Authenticate");if(!q)return{};let[K,Y]=q.split(" ");if(K.toLowerCase()!=="bearer"||!Y)return{};let z=j$8(A,"resource_metadata")||void 0,w;if(z)try{w=new URL(z)}catch{}let _=j$8(A,"scope")||void 0,$=j$8(A,"error")||void 0;return{resourceMetadataUrl:w,scope:_,error:$}}function j$8(A,q){let K=A.headers.get("WWW-Authenticate");if(!K)return null;let Y=new RegExp(`${q}=(?:"([^"]+)"|([^\\s,]+))`),z=K.match(Y);if(z)return z[1]||z[2];return null}async function sf7(A,q,K=fetch){let Y=await va5(A,"oauth-protected-resource",K,{protocolVersion:q?.protocolVersion,metadataUrl:q?.resourceMetadataUrl});if(!Y||Y.status===404)throw await Y?.body?.cancel(),Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!Y.ok)throw await Y.body?.cancel(),Error(`HTTP ${Y.status} trying to load well-known OAuth protected resource metadata.`);return Uf7.parse(await Y.json())}async function J$8(A,q,K=fetch){try{return await K(A,{headers:q})}catch(Y){if(Y instanceof TypeError)if(q)return J$8(A,void 0,K);else return;throw Y}}function fa5(A,q="",K={}){if(q.endsWith("/"))q=q.slice(0,-1);return K.prependPathname?`${q}/.well-known/${A}`:`/.well-known/${A}${q}`}async function of7(A,q,K=fetch){return await J$8(A,{"MCP-Protocol-Version":q},K)}function Ta5(A,q){return!A||A.status>=400&&A.status<500&&q!=="/"}async function va5(A,q,K,Y){let z=new URL(A),w=Y?.protocolVersion??Do,_;if(Y?.metadataUrl)_=new URL(Y.metadataUrl);else{let O=fa5(q,z.pathname);_=new URL(O,Y?.metadataServerUrl??z),_.search=z.search}let $=await of7(_,w,K);if(!Y?.metadataUrl&&Ta5($,z.pathname)){let O=new URL(`/.well-known/${q}`,z);$=await of7(O,w,K)}return $}function Va5(A){let q=typeof A==="string"?new URL(A):A,K=q.pathname!=="/",Y=[];if(!K)return Y.push({url:new URL("/.well-known/oauth-authorization-server",q.origin),type:"oauth"}),Y.push({url:new URL("/.well-known/openid-configuration",q.origin),type:"oidc"}),Y;let z=q.pathname;if(z.endsWith("/"))z=z.slice(0,-1);return Y.push({url:new URL(`/.well-known/oauth-authorization-server${z}`,q.origin),type:"oauth"}),Y.push({url:new URL(`/.well-known/openid-configuration${z}`,q.origin),type:"oidc"}),Y.push({url:new URL(`${z}/.well-known/openid-configuration`,q.origin),type:"oidc"}),Y}async function su6(A,{fetchFn:q=fetch,protocolVersion:K=Do}={}){let Y={"MCP-Protocol-Version":K,Accept:"application/json"},z=Va5(A);for(let{url:w,type:_}of z){let $=await J$8(w,Y,q);if(!$)continue;if(!$.ok){if(await $.body?.cancel(),$.status>=400&&$.status<500)continue;throw Error(`HTTP ${$.status} trying to load ${_==="oauth"?"OAuth":"OpenID provider"} metadata from ${w}`)}if(_==="oauth")return au6.parse(await $.json());else return df7.parse(await $.json())}return}async function Na5(A,q){let K,Y;try{if(K=await sf7(A,{resourceMetadataUrl:q?.resourceMetadataUrl},q?.fetchFn),K.authorization_servers&&K.authorization_servers.length>0)Y=K.authorization_servers[0]}catch{}if(!Y)Y=String(new URL("/",A));let z=await su6(Y,{fetchFn:q?.fetchFn});return{authorizationServerUrl:Y,authorizationServerMetadata:z,resourceMetadata:K}}async function ka5(A,{metadata:q,clientInformation:K,redirectUrl:Y,scope:z,state:w,resource:_}){let $;if(q){if($=new URL(q.authorization_endpoint),!q.response_types_supported.includes($$8))throw Error(`Incompatible auth server: does not support response type ${$$8}`);if(q.code_challenge_methods_supported&&!q.code_challenge_methods_supported.includes(O$8))throw Error(`Incompatible auth server: does not support code challenge method ${O$8}`)}else $=new URL("/authorize",A);let O=await w$8(),H=O.code_verifier,j=O.code_challenge;if($.searchParams.set("response_type",$$8),$.searchParams.set("client_id",K.client_id),$.searchParams.set("code_challenge",j),$.searchParams.set("code_challenge_method",O$8),$.searchParams.set("redirect_uri",String(Y)),w)$.searchParams.set("state",w);if(z)$.searchParams.set("scope",z);if(z?.includes("offline_access"))$.searchParams.append("prompt","consent");if(_)$.searchParams.set("resource",_.href);return{authorizationUrl:$,codeVerifier:H}}function Ea5(A,q,K){return new URLSearchParams({grant_type:"authorization_code",code:A,code_verifier:q,redirect_uri:String(K)})}async function tf7(A,{metadata:q,tokenRequestParams:K,clientInformation:Y,addClientAuthentication:z,resource:w,fetchFn:_}){let $=q?.token_endpoint?new URL(q.token_endpoint):new URL("/token",A),O=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(w)K.set("resource",w.href);if(z)await z(O,K,$,q);else if(Y){let j=q?.token_endpoint_auth_methods_supported??[],J=Ma5(Y,j);Da5(J,Y,O,K)}let H=await(_??fetch)($,{method:"POST",headers:O,body:K});if(!H.ok)throw await af7(H);return cf7.parse(await H.json())}async function M$8(A,{metadata:q,clientInformation:K,refreshToken:Y,resource:z,addClientAuthentication:w,fetchFn:_}){let $=new URLSearchParams({grant_type:"refresh_token",refresh_token:Y}),O=await tf7(A,{metadata:q,tokenRequestParams:$,clientInformation:K,addClientAuthentication:w,resource:z,fetchFn:_});return{refresh_token:Y,...O}}async function La5(A,q,{metadata:K,resource:Y,authorizationCode:z,fetchFn:w}={}){let _=A.clientMetadata.scope,$;if(A.prepareTokenRequest)$=await A.prepareTokenRequest(_);if(!$){if(!z)throw Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!A.redirectUrl)throw Error("redirectUrl is required for authorization_code flow");let H=await A.codeVerifier();$=Ea5(z,H,A.redirectUrl)}let O=await A.clientInformation();return tf7(q,{metadata:K,tokenRequestParams:$,clientInformation:O??void 0,addClientAuthentication:A.addClientAuthentication,resource:Y,fetchFn:w})}async function ya5(A,{metadata:q,clientMetadata:K,fetchFn:Y}){let z;if(q){if(!q.registration_endpoint)throw Error("Incompatible auth server: does not support dynamic client registration");z=new URL(q.registration_endpoint)}else z=new URL("/register",A);let w=await(Y??fetch)(z,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(K)});if(!w.ok)throw await af7(w);return lf7.parse(await w.json())}var QX,$$8="code",O$8="S256";var tu6=E(()=>{Ff7();WD();O_1();O_1();_$8();QX=class QX extends Error{constructor(A){super(A??"Unauthorized")}}});class f_1{constructor(A,q){this._url=A,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=q?.eventSourceInit,this._requestInit=q?.requestInit,this._authProvider=q?.authProvider,this._fetch=q?.fetch,this._fetchWithInit=Z36(q?.fetch,q?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new QX("No auth provider");let A;try{A=await jR(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(q){throw this.onerror?.(q),q}if(A!=="AUTHORIZED")throw new QX;return await this._startOrAuth()}async _commonHeaders(){let A={};if(this._authProvider){let K=await this._authProvider.tokens();if(K)A.Authorization=`Bearer ${K.access_token}`}if(this._protocolVersion)A["mcp-protocol-version"]=this._protocolVersion;let q=AP6(this._requestInit?.headers);return new Headers({...A,...q})}_startOrAuth(){let A=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((q,K)=>{this._eventSource=new eX6(this._url.href,{...this._eventSourceInit,fetch:async(Y,z)=>{let w=await this._commonHeaders();w.set("Accept","text/event-stream");let _=await A(Y,{...z,headers:w});if(_.status===401&&_.headers.has("www-authenticate")){let{resourceMetadataUrl:$,scope:O}=_P6(_);this._resourceMetadataUrl=$,this._scope=O}return _}}),this._abortController=new AbortController,this._eventSource.onerror=(Y)=>{if(Y.code===401&&this._authProvider){this._authThenStart().then(q,K);return}let z=new ef7(Y.code,Y.message,Y);K(z),this.onerror?.(z)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",(Y)=>{let z=Y;try{if(this._endpoint=new URL(z.data,this._url),this._endpoint.origin!==this._url.origin)throw Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(w){K(w),this.onerror?.(w),this.close();return}q()}),this._eventSource.onmessage=(Y)=>{let z=Y,w;try{w=zC.parse(JSON.parse(z.data))}catch(_){this.onerror?.(_);return}this.onmessage?.(w)}})}async start(){if(this._eventSource)throw Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(A){if(!this._authProvider)throw new QX("No auth provider");if(await jR(this._authProvider,{serverUrl:this._url,authorizationCode:A,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new QX("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(A){if(!this._endpoint)throw Error("Not connected");try{let q=await this._commonHeaders();q.set("content-type","application/json");let K={...this._requestInit,method:"POST",headers:q,body:JSON.stringify(A),signal:this._abortController?.signal},Y=await(this._fetch??fetch)(this._endpoint,K);if(!Y.ok){let z=await Y.text().catch(()=>null);if(Y.status===401&&this._authProvider){let{resourceMetadataUrl:w,scope:_}=_P6(Y);if(this._resourceMetadataUrl=w,this._scope=_,await jR(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new QX;return this.send(A)}throw Error(`Error POSTing to endpoint (HTTP ${Y.status}): ${z}`)}await Y.body?.cancel()}catch(q){throw this.onerror?.(q),q}}setProtocolVersion(A){this._protocolVersion=A}}var ef7;var AT7=E(()=>{pf7();WD();tu6();ef7=class ef7 extends Error{constructor(A,q,K){super(`SSE error: ${q}`);this.code=A,this.event=K}}});var D$8;var qT7=E(()=>{n_8();D$8=class D$8 extends TransformStream{constructor({onError:A,onRetry:q,onComment:K}={}){let Y;super({start(z){Y=z_1({onEvent:(w)=>{z.enqueue(w)},onError(w){A==="terminate"?z.error(w):typeof A=="function"&&A(w)},onRetry:q,onComment:K})},transform(z){Y.feed(z)}})}}});class T_1{constructor(A,q){this._hasCompletedAuthFlow=!1,this._url=A,this._resourceMetadataUrl=void 0,this._scope=void 0,this._requestInit=q?.requestInit,this._authProvider=q?.authProvider,this._fetch=q?.fetch,this._fetchWithInit=Z36(q?.fetch,q?.requestInit),this._sessionId=q?.sessionId,this._reconnectionOptions=q?.reconnectionOptions??Ra5}async _authThenStart(){if(!this._authProvider)throw new QX("No auth provider");let A;try{A=await jR(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(q){throw this.onerror?.(q),q}if(A!=="AUTHORIZED")throw new QX;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){let A={};if(this._authProvider){let K=await this._authProvider.tokens();if(K)A.Authorization=`Bearer ${K.access_token}`}if(this._sessionId)A["mcp-session-id"]=this._sessionId;if(this._protocolVersion)A["mcp-protocol-version"]=this._protocolVersion;let q=AP6(this._requestInit?.headers);return new Headers({...A,...q})}async _startOrAuthSse(A){let{resumptionToken:q}=A;try{let K=await this._commonHeaders();if(K.set("Accept","text/event-stream"),q)K.set("last-event-id",q);let Y=await(this._fetch??fetch)(this._url,{method:"GET",headers:K,signal:this._abortController?.signal});if(!Y.ok){if(await Y.body?.cancel(),Y.status===401&&this._authProvider)return await this._authThenStart();if(Y.status===405)return;throw new f36(Y.status,`Failed to open SSE stream: ${Y.statusText}`)}this._handleSseStream(Y.body,A,!0)}catch(K){throw this.onerror?.(K),K}}_getNextReconnectionDelay(A){if(this._serverRetryMs!==void 0)return this._serverRetryMs;let q=this._reconnectionOptions.initialReconnectionDelay,K=this._reconnectionOptions.reconnectionDelayGrowFactor,Y=this._reconnectionOptions.maxReconnectionDelay;return Math.min(q*Math.pow(K,A),Y)}_scheduleReconnection(A,q=0){let K=this._reconnectionOptions.maxRetries;if(q>=K){this.onerror?.(Error(`Maximum reconnection attempts (${K}) exceeded.`));return}let Y=this._getNextReconnectionDelay(q);this._reconnectionTimeout=setTimeout(()=>{this._startOrAuthSse(A).catch((z)=>{this.onerror?.(Error(`Failed to reconnect SSE stream: ${z instanceof Error?z.message:String(z)}`)),this._scheduleReconnection(A,q+1)})},Y)}_handleSseStream(A,q,K){if(!A)return;let{onresumptiontoken:Y,replayMessageId:z}=q,w,_=!1,$=!1;(async()=>{try{let H=A.pipeThrough(new TextDecoderStream).pipeThrough(new D$8({onRetry:(M)=>{this._serverRetryMs=M}})).getReader();while(!0){let{value:M,done:D}=await H.read();if(D)break;if(M.id)w=M.id,_=!0,Y?.(M.id);if(!M.data)continue;if(!M.event||M.event==="message")try{let X=zC.parse(JSON.parse(M.data));if(s76(X)){if($=!0,z!==void 0)X.id=z}this.onmessage?.(X)}catch(X){this.onerror?.(X)}}if((K||_)&&!$&&this._abortController&&!this._abortController.signal.aborted)this._scheduleReconnection({resumptionToken:w,onresumptiontoken:Y,replayMessageId:z},0)}catch(H){if(this.onerror?.(Error(`SSE stream disconnected: ${H}`)),(K||_)&&!$&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:w,onresumptiontoken:Y,replayMessageId:z},0)}catch(M){this.onerror?.(Error(`Failed to reconnect: ${M instanceof Error?M.message:String(M)}`))}}})()}async start(){if(this._abortController)throw Error("StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.");this._abortController=new AbortController}async finishAuth(A){if(!this._authProvider)throw new QX("No auth provider");if(await jR(this._authProvider,{serverUrl:this._url,authorizationCode:A,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new QX("Failed to authorize")}async close(){if(this._reconnectionTimeout)clearTimeout(this._reconnectionTimeout),this._reconnectionTimeout=void 0;this._abortController?.abort(),this.onclose?.()}async send(A,q){try{let{resumptionToken:K,onresumptiontoken:Y}=q||{};if(K){this._startOrAuthSse({resumptionToken:K,replayMessageId:Sy6(A)?A.id:void 0}).catch((J)=>this.onerror?.(J));return}let z=await this._commonHeaders();z.set("content-type","application/json"),z.set("accept","application/json, text/event-stream");let w={...this._requestInit,method:"POST",headers:z,body:JSON.stringify(A),signal:this._abortController?.signal},_=await(this._fetch??fetch)(this._url,w),$=_.headers.get("mcp-session-id");if($)this._sessionId=$;if(!_.ok){let J=await _.text().catch(()=>null);if(_.status===401&&this._authProvider){if(this._hasCompletedAuthFlow)throw new f36(401,"Server returned 401 after successful authentication");let{resourceMetadataUrl:M,scope:D}=_P6(_);if(this._resourceMetadataUrl=M,this._scope=D,await jR(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new QX;return this._hasCompletedAuthFlow=!0,this.send(A)}if(_.status===403&&this._authProvider){let{resourceMetadataUrl:M,scope:D,error:X}=_P6(_);if(X==="insufficient_scope"){let P=_.headers.get("WWW-Authenticate");if(this._lastUpscopingHeader===P)throw new f36(403,"Server returned 403 after trying upscoping");if(D)this._scope=D;if(M)this._resourceMetadataUrl=M;if(this._lastUpscopingHeader=P??void 0,await jR(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetch})!=="AUTHORIZED")throw new QX;return this.send(A)}}throw new f36(_.status,`Error POSTing to endpoint: ${J}`)}if(this._hasCompletedAuthFlow=!1,this._lastUpscopingHeader=void 0,_.status===202){if(await _.body?.cancel(),r4A(A))this._startOrAuthSse({resumptionToken:void 0}).catch((J)=>this.onerror?.(J));return}let H=(Array.isArray(A)?A:[A]).filter((J)=>("method"in J)&&("id"in J)&&J.id!==void 0).length>0,j=_.headers.get("content-type");if(H)if(j?.includes("text/event-stream"))this._handleSseStream(_.body,{onresumptiontoken:Y},!1);else if(j?.includes("application/json")){let J=await _.json(),M=Array.isArray(J)?J.map((D)=>zC.parse(D)):[zC.parse(J)];for(let D of M)this.onmessage?.(D)}else throw await _.body?.cancel(),new f36(-1,`Unexpected content type: ${j}`);else await _.body?.cancel()}catch(K){throw this.onerror?.(K),K}}get sessionId(){return this._sessionId}async terminateSession(){if(!this._sessionId)return;try{let A=await this._commonHeaders(),q={...this._requestInit,method:"DELETE",headers:A,signal:this._abortController?.signal},K=await(this._fetch??fetch)(this._url,q);if(await K.body?.cancel(),!K.ok&&K.status!==405)throw new f36(K.status,`Failed to terminate session: ${K.statusText}`);this._sessionId=void 0}catch(A){throw this.onerror?.(A),A}}setProtocolVersion(A){this._protocolVersion=A}get protocolVersion(){return this._protocolVersion}async resumeStream(A,q){await this._startOrAuthSse({resumptionToken:A,onresumptiontoken:q?.onresumptiontoken})}}var Ra5,f36;var KT7=E(()=>{WD();tu6();qT7();Ra5={initialReconnectionDelay:1000,maxReconnectionDelay:30000,reconnectionDelayGrowFactor:1.5,maxRetries:2};f36=class f36 extends Error{constructor(A,q){super(`Streamable HTTP error: ${q}`);this.code=A}}});function Sa5(A,q,K){var Y=-1,z=A.length,w=q.length,_={};while(++Y<z){var $=Y<w?q[Y]:void 0;K(_,A[Y],$)}return _}var YT7;var zT7=E(()=>{YT7=Sa5});function ha5(A,q){return YT7(A||[],q||[],Ho)}var wT7;var _T7=E(()=>{bL6();zT7();wT7=ha5});function od(){return qA("tengu_mcp_elicitation",!1)}var v_1=E(()=>{P7()});function Ca5(A){return A.mode==="url"?"url":"form"}function Ia5(A,q,K){return A.findIndex((Y)=>Y.serverName===q&&Y.params.mode==="url"&&("elicitationId"in Y.params)&&Y.params.elicitationId===K)}function V_1(A,q,K){try{A.setRequestHandler(tQ,async(Y,z)=>{z8(q,`Received elicitation request: ${p6(Y)}`);let w=Ca5(Y.params);l("tengu_mcp_elicitation_shown",{mode:w});try{let _=await eu6(q,Y.params,z.signal);if(_)return z8(q,`Elicitation resolved by hook: ${p6(_)}`),l("tengu_mcp_elicitation_response",{mode:w,action:_.action}),_;let $=w==="url"&&"elicitationId"in Y.params?Y.params.elicitationId:void 0,H=await new Promise((J)=>{let M=()=>{J({action:"cancel"})};if(z.signal.aborted){M();return}let D=$?{actionLabel:"Skip confirmation"}:void 0;K((X)=>({...X,elicitation:{queue:[...X.elicitation.queue,{serverName:q,requestId:z.requestId,params:Y.params,signal:z.signal,waitingState:D,respond:(P)=>{z.signal.removeEventListener("abort",M),l("tengu_mcp_elicitation_response",{mode:w,action:P.action}),J(P)}}]}})),z.signal.addEventListener("abort",M)});return z8(q,`Elicitation response: ${p6(H)}`),await Am6(q,H,z.signal,w,$)}catch(_){return lY(q,`Elicitation error: ${_}`),{action:"cancel"}}}),A.setNotificationHandler(ly6,(Y)=>{let{elicitationId:z}=Y.params;z8(q,`Received elicitation completion notification: ${z}`),LB({message:`MCP server "${q}" confirmed elicitation ${z} complete`,notificationType:"elicitation_complete"});let w=!1;if(K((_)=>{let $=Ia5(_.elicitation.queue,q,z);if($===-1)return _;w=!0;let O=[..._.elicitation.queue];return O[$]={...O[$],completed:!0},{..._,elicitation:{queue:O}}}),!w)z8(q,`Ignoring completion notification for unknown elicitation: ${z}`)})}catch{return}}async function eu6(A,q,K){try{let Y=q.mode==="url"?"url":"form",z="url"in q?q.url:void 0,w="elicitationId"in q?q.elicitationId:void 0,{elicitationResponse:_,blockingError:$}=await X$8({serverName:A,message:q.message,requestedSchema:"requestedSchema"in q?q.requestedSchema:void 0,signal:K,mode:Y,url:z,elicitationId:w});if($)return{action:"decline"};if(_)return{action:_.action,content:_.content};return}catch(Y){lY(A,`Elicitation hook error: ${Y}`);return}}async function Am6(A,q,K,Y,z){try{let{elicitationResultResponse:w,blockingError:_}=await P$8({serverName:A,action:q.action,content:q.content,signal:K,mode:Y,elicitationId:z});if(_)return LB({message:`Elicitation response for server "${A}": decline`,notificationType:"elicitation_response"}),{action:"decline"};let $=w?{action:w.action,content:w.content??q.content}:q;return LB({message:`Elicitation response for server "${A}": ${$.action}`,notificationType:"elicitation_response"}),$}catch(w){return lY(A,`ElicitationResult hook error: ${w}`),LB({message:`Elicitation response for server "${A}": ${q.action}`,notificationType:"elicitation_response"}),q}}var N_1=E(()=>{WD();m1();u1();a1();s_()});var qm6=h((ZO2,$T7)=>{var xa5=Number.MAX_SAFE_INTEGER||9007199254740991,ba5=["major","premajor","minor","preminor","patch","prepatch","prerelease"];$T7.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:xa5,RELEASE_TYPES:ba5,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Km6=h((fO2,OT7)=>{var ua5=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...A)=>console.error("SEMVER",...A):()=>{};OT7.exports=ua5});var $P6=h((yB,HT7)=>{var{MAX_SAFE_COMPONENT_LENGTH:W$8,MAX_SAFE_BUILD_LENGTH:ma5,MAX_LENGTH:Ba5}=qm6(),ga5=Km6();yB=HT7.exports={};var pa5=yB.re=[],Fa5=yB.safeRe=[],B4=yB.src=[],Qa5=yB.safeSrc=[],g4=yB.t={},Ua5=0,G$8="[a-zA-Z0-9-]",da5=[["\\s",1],["\\d",Ba5],[G$8,ma5]],ca5=(A)=>{for(let[q,K]of da5)A=A.split(`${q}*`).join(`${q}{0,${K}}`).split(`${q}+`).join(`${q}{1,${K}}`);return A},O5=(A,q,K)=>{let Y=ca5(q),z=Ua5++;ga5(A,z,q),g4[A]=z,B4[z]=q,Qa5[z]=Y,pa5[z]=new RegExp(q,K?"g":void 0),Fa5[z]=new RegExp(Y,K?"g":void 0)};O5("NUMERICIDENTIFIER","0|[1-9]\\d*");O5("NUMERICIDENTIFIERLOOSE","\\d+");O5("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${G$8}*`);O5("MAINVERSION",`(${B4[g4.NUMERICIDENTIFIER]})\\.(${B4[g4.NUMERICIDENTIFIER]})\\.(${B4[g4.NUMERICIDENTIFIER]})`);O5("MAINVERSIONLOOSE",`(${B4[g4.NUMERICIDENTIFIERLOOSE]})\\.(${B4[g4.NUMERICIDENTIFIERLOOSE]})\\.(${B4[g4.NUMERICIDENTIFIERLOOSE]})`);O5("PRERELEASEIDENTIFIER",`(?:${B4[g4.NONNUMERICIDENTIFIER]}|${B4[g4.NUMERICIDENTIFIER]})`);O5("PRERELEASEIDENTIFIERLOOSE",`(?:${B4[g4.NONNUMERICIDENTIFIER]}|${B4[g4.NUMERICIDENTIFIERLOOSE]})`);O5("PRERELEASE",`(?:-(${B4[g4.PRERELEASEIDENTIFIER]}(?:\\.${B4[g4.PRERELEASEIDENTIFIER]})*))`);O5("PRERELEASELOOSE",`(?:-?(${B4[g4.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${B4[g4.PRERELEASEIDENTIFIERLOOSE]})*))`);O5("BUILDIDENTIFIER",`${G$8}+`);O5("BUILD",`(?:\\+(${B4[g4.BUILDIDENTIFIER]}(?:\\.${B4[g4.BUILDIDENTIFIER]})*))`);O5("FULLPLAIN",`v?${B4[g4.MAINVERSION]}${B4[g4.PRERELEASE]}?${B4[g4.BUILD]}?`);O5("FULL",`^${B4[g4.FULLPLAIN]}$`);O5("LOOSEPLAIN",`[v=\\s]*${B4[g4.MAINVERSIONLOOSE]}${B4[g4.PRERELEASELOOSE]}?${B4[g4.BUILD]}?`);O5("LOOSE",`^${B4[g4.LOOSEPLAIN]}$`);O5("GTLT","((?:<|>)?=?)");O5("XRANGEIDENTIFIERLOOSE",`${B4[g4.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);O5("XRANGEIDENTIFIER",`${B4[g4.NUMERICIDENTIFIER]}|x|X|\\*`);O5("XRANGEPLAIN",`[v=\\s]*(${B4[g4.XRANGEIDENTIFIER]})(?:\\.(${B4[g4.XRANGEIDENTIFIER]})(?:\\.(${B4[g4.XRANGEIDENTIFIER]})(?:${B4[g4.PRERELEASE]})?${B4[g4.BUILD]}?)?)?`);O5("XRANGEPLAINLOOSE",`[v=\\s]*(${B4[g4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${B4[g4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${B4[g4.XRANGEIDENTIFIERLOOSE]})(?:${B4[g4.PRERELEASELOOSE]})?${B4[g4.BUILD]}?)?)?`);O5("XRANGE",`^${B4[g4.GTLT]}\\s*${B4[g4.XRANGEPLAIN]}$`);O5("XRANGELOOSE",`^${B4[g4.GTLT]}\\s*${B4[g4.XRANGEPLAINLOOSE]}$`);O5("COERCEPLAIN",`(^|[^\\d])(\\d{1,${W$8}})(?:\\.(\\d{1,${W$8}}))?(?:\\.(\\d{1,${W$8}}))?`);O5("COERCE",`${B4[g4.COERCEPLAIN]}(?:$|[^\\d])`);O5("COERCEFULL",B4[g4.COERCEPLAIN]+`(?:${B4[g4.PRERELEASE]})?(?:${B4[g4.BUILD]})?(?:$|[^\\d])`);O5("COERCERTL",B4[g4.COERCE],!0);O5("COERCERTLFULL",B4[g4.COERCEFULL],!0);O5("LONETILDE","(?:~>?)");O5("TILDETRIM",`(\\s*)${B4[g4.LONETILDE]}\\s+`,!0);yB.tildeTrimReplace="$1~";O5("TILDE",`^${B4[g4.LONETILDE]}${B4[g4.XRANGEPLAIN]}$`);O5("TILDELOOSE",`^${B4[g4.LONETILDE]}${B4[g4.XRANGEPLAINLOOSE]}$`);O5("LONECARET","(?:\\^)");O5("CARETTRIM",`(\\s*)${B4[g4.LONECARET]}\\s+`,!0);yB.caretTrimReplace="$1^";O5("CARET",`^${B4[g4.LONECARET]}${B4[g4.XRANGEPLAIN]}$`);O5("CARETLOOSE",`^${B4[g4.LONECARET]}${B4[g4.XRANGEPLAINLOOSE]}$`);O5("COMPARATORLOOSE",`^${B4[g4.GTLT]}\\s*(${B4[g4.LOOSEPLAIN]})$|^$`);O5("COMPARATOR",`^${B4[g4.GTLT]}\\s*(${B4[g4.FULLPLAIN]})$|^$`);O5("COMPARATORTRIM",`(\\s*)${B4[g4.GTLT]}\\s*(${B4[g4.LOOSEPLAIN]}|${B4[g4.XRANGEPLAIN]})`,!0);yB.comparatorTrimReplace="$1$2$3";O5("HYPHENRANGE",`^\\s*(${B4[g4.XRANGEPLAIN]})\\s+-\\s+(${B4[g4.XRANGEPLAIN]})\\s*$`);O5("HYPHENRANGELOOSE",`^\\s*(${B4[g4.XRANGEPLAINLOOSE]})\\s+-\\s+(${B4[g4.XRANGEPLAINLOOSE]})\\s*$`);O5("STAR","(<|>)?=?\\s*\\*");O5("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");O5("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var k_1=h((TO2,jT7)=>{var la5=Object.freeze({loose:!0}),ia5=Object.freeze({}),na5=(A)=>{if(!A)return ia5;if(typeof A!=="object")return la5;return A};jT7.exports=na5});var Z$8=h((vO2,DT7)=>{var JT7=/^[0-9]+$/,MT7=(A,q)=>{let K=JT7.test(A),Y=JT7.test(q);if(K&&Y)A=+A,q=+q;return A===q?0:K&&!Y?-1:Y&&!K?1:A<q?-1:1},ra5=(A,q)=>MT7(q,A);DT7.exports={compareIdentifiers:MT7,rcompareIdentifiers:ra5}});var EG=h((VO2,PT7)=>{var E_1=Km6(),{MAX_LENGTH:XT7,MAX_SAFE_INTEGER:L_1}=qm6(),{safeRe:y_1,t:R_1}=$P6(),oa5=k_1(),{compareIdentifiers:OP6}=Z$8();class ZI{constructor(A,q){if(q=oa5(q),A instanceof ZI)if(A.loose===!!q.loose&&A.includePrerelease===!!q.includePrerelease)return A;else A=A.version;else if(typeof A!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof A}".`);if(A.length>XT7)throw TypeError(`version is longer than ${XT7} characters`);E_1("SemVer",A,q),this.options=q,this.loose=!!q.loose,this.includePrerelease=!!q.includePrerelease;let K=A.trim().match(q.loose?y_1[R_1.LOOSE]:y_1[R_1.FULL]);if(!K)throw TypeError(`Invalid Version: ${A}`);if(this.raw=A,this.major=+K[1],this.minor=+K[2],this.patch=+K[3],this.major>L_1||this.major<0)throw TypeError("Invalid major version");if(this.minor>L_1||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>L_1||this.patch<0)throw TypeError("Invalid patch version");if(!K[4])this.prerelease=[];else this.prerelease=K[4].split(".").map((Y)=>{if(/^[0-9]+$/.test(Y)){let z=+Y;if(z>=0&&z<L_1)return z}return Y});this.build=K[5]?K[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(A){if(E_1("SemVer.compare",this.version,this.options,A),!(A instanceof ZI)){if(typeof A==="string"&&A===this.version)return 0;A=new ZI(A,this.options)}if(A.version===this.version)return 0;return this.compareMain(A)||this.comparePre(A)}compareMain(A){if(!(A instanceof ZI))A=new ZI(A,this.options);return OP6(this.major,A.major)||OP6(this.minor,A.minor)||OP6(this.patch,A.patch)}comparePre(A){if(!(A instanceof ZI))A=new ZI(A,this.options);if(this.prerelease.length&&!A.prerelease.length)return-1;else if(!this.prerelease.length&&A.prerelease.length)return 1;else if(!this.prerelease.length&&!A.prerelease.length)return 0;let q=0;do{let K=this.prerelease[q],Y=A.prerelease[q];if(E_1("prerelease compare",q,K,Y),K===void 0&&Y===void 0)return 0;else if(Y===void 0)return 1;else if(K===void 0)return-1;else if(K===Y)continue;else return OP6(K,Y)}while(++q)}compareBuild(A){if(!(A instanceof ZI))A=new ZI(A,this.options);let q=0;do{let K=this.build[q],Y=A.build[q];if(E_1("build compare",q,K,Y),K===void 0&&Y===void 0)return 0;else if(Y===void 0)return 1;else if(K===void 0)return-1;else if(K===Y)continue;else return OP6(K,Y)}while(++q)}inc(A,q,K){if(A.startsWith("pre")){if(!q&&K===!1)throw Error("invalid increment argument: identifier is empty");if(q){let Y=`-${q}`.match(this.options.loose?y_1[R_1.PRERELEASELOOSE]:y_1[R_1.PRERELEASE]);if(!Y||Y[1]!==q)throw Error(`invalid identifier: ${q}`)}}switch(A){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",q,K);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",q,K);break;case"prepatch":this.prerelease.length=0,this.inc("patch",q,K),this.inc("pre",q,K);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",q,K);this.inc("pre",q,K);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let Y=Number(K)?1:0;if(this.prerelease.length===0)this.prerelease=[Y];else{let z=this.prerelease.length;while(--z>=0)if(typeof this.prerelease[z]==="number")this.prerelease[z]++,z=-2;if(z===-1){if(q===this.prerelease.join(".")&&K===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(Y)}}if(q){let z=[q,Y];if(K===!1)z=[q];if(OP6(this.prerelease[0],q)===0){if(isNaN(this.prerelease[1]))this.prerelease=z}else this.prerelease=z}break}default:throw Error(`invalid increment argument: ${A}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}PT7.exports=ZI});var T36=h((NO2,GT7)=>{var WT7=EG(),aa5=(A,q,K=!1)=>{if(A instanceof WT7)return A;try{return new WT7(A,q)}catch(Y){if(!K)return null;throw Y}};GT7.exports=aa5});var fT7=h((kO2,ZT7)=>{var sa5=T36(),ta5=(A,q)=>{let K=sa5(A,q);return K?K.version:null};ZT7.exports=ta5});var vT7=h((EO2,TT7)=>{var ea5=T36(),As5=(A,q)=>{let K=ea5(A.trim().replace(/^[=v]+/,""),q);return K?K.version:null};TT7.exports=As5});var kT7=h((LO2,NT7)=>{var VT7=EG(),qs5=(A,q,K,Y,z)=>{if(typeof K==="string")z=Y,Y=K,K=void 0;try{return new VT7(A instanceof VT7?A.version:A,K).inc(q,Y,z).version}catch(w){return null}};NT7.exports=qs5});var yT7=h((yO2,LT7)=>{var ET7=T36(),Ks5=(A,q)=>{let K=ET7(A,null,!0),Y=ET7(q,null,!0),z=K.compare(Y);if(z===0)return null;let w=z>0,_=w?K:Y,$=w?Y:K,O=!!_.prerelease.length;if(!!$.prerelease.length&&!O){if(!$.patch&&!$.minor)return"major";if($.compareMain(_)===0){if($.minor&&!$.patch)return"minor";return"patch"}}let j=O?"pre":"";if(K.major!==Y.major)return j+"major";if(K.minor!==Y.minor)return j+"minor";if(K.patch!==Y.patch)return j+"patch";return"prerelease"};LT7.exports=Ks5});var ST7=h((RO2,RT7)=>{var Ys5=EG(),zs5=(A,q)=>new Ys5(A,q).major;RT7.exports=zs5});var CT7=h((SO2,hT7)=>{var ws5=EG(),_s5=(A,q)=>new ws5(A,q).minor;hT7.exports=_s5});var xT7=h((hO2,IT7)=>{var $s5=EG(),Os5=(A,q)=>new $s5(A,q).patch;IT7.exports=Os5});var uT7=h((CO2,bT7)=>{var Hs5=T36(),js5=(A,q)=>{let K=Hs5(A,q);return K&&K.prerelease.length?K.prerelease:null};bT7.exports=js5});var JR=h((IO2,BT7)=>{var mT7=EG(),Js5=(A,q,K)=>new mT7(A,K).compare(new mT7(q,K));BT7.exports=Js5});var pT7=h((xO2,gT7)=>{var Ms5=JR(),Ds5=(A,q,K)=>Ms5(q,A,K);gT7.exports=Ds5});var QT7=h((bO2,FT7)=>{var Xs5=JR(),Ps5=(A,q)=>Xs5(A,q,!0);FT7.exports=Ps5});var S_1=h((uO2,dT7)=>{var UT7=EG(),Ws5=(A,q,K)=>{let Y=new UT7(A,K),z=new UT7(q,K);return Y.compare(z)||Y.compareBuild(z)};dT7.exports=Ws5});var lT7=h((mO2,cT7)=>{var Gs5=S_1(),Zs5=(A,q)=>A.sort((K,Y)=>Gs5(K,Y,q));cT7.exports=Zs5});var nT7=h((BO2,iT7)=>{var fs5=S_1(),Ts5=(A,q)=>A.sort((K,Y)=>fs5(Y,K,q));iT7.exports=Ts5});var Ym6=h((gO2,rT7)=>{var vs5=JR(),Vs5=(A,q,K)=>vs5(A,q,K)>0;rT7.exports=Vs5});var h_1=h((pO2,oT7)=>{var Ns5=JR(),ks5=(A,q,K)=>Ns5(A,q,K)<0;oT7.exports=ks5});var f$8=h((FO2,aT7)=>{var Es5=JR(),Ls5=(A,q,K)=>Es5(A,q,K)===0;aT7.exports=Ls5});var T$8=h((QO2,sT7)=>{var ys5=JR(),Rs5=(A,q,K)=>ys5(A,q,K)!==0;sT7.exports=Rs5});var C_1=h((UO2,tT7)=>{var Ss5=JR(),hs5=(A,q,K)=>Ss5(A,q,K)>=0;tT7.exports=hs5});var I_1=h((dO2,eT7)=>{var Cs5=JR(),Is5=(A,q,K)=>Cs5(A,q,K)<=0;eT7.exports=Is5});var v$8=h((cO2,Av7)=>{var xs5=f$8(),bs5=T$8(),us5=Ym6(),ms5=C_1(),Bs5=h_1(),gs5=I_1(),ps5=(A,q,K,Y)=>{switch(q){case"===":if(typeof A==="object")A=A.version;if(typeof K==="object")K=K.version;return A===K;case"!==":if(typeof A==="object")A=A.version;if(typeof K==="object")K=K.version;return A!==K;case"":case"=":case"==":return xs5(A,K,Y);case"!=":return bs5(A,K,Y);case">":return us5(A,K,Y);case">=":return ms5(A,K,Y);case"<":return Bs5(A,K,Y);case"<=":return gs5(A,K,Y);default:throw TypeError(`Invalid operator: ${q}`)}};Av7.exports=ps5});var Kv7=h((lO2,qv7)=>{var Fs5=EG(),Qs5=T36(),{safeRe:x_1,t:b_1}=$P6(),Us5=(A,q)=>{if(A instanceof Fs5)return A;if(typeof A==="number")A=String(A);if(typeof A!=="string")return null;q=q||{};let K=null;if(!q.rtl)K=A.match(q.includePrerelease?x_1[b_1.COERCEFULL]:x_1[b_1.COERCE]);else{let O=q.includePrerelease?x_1[b_1.COERCERTLFULL]:x_1[b_1.COERCERTL],H;while((H=O.exec(A))&&(!K||K.index+K[0].length!==A.length)){if(!K||H.index+H[0].length!==K.index+K[0].length)K=H;O.lastIndex=H.index+H[1].length+H[2].length}O.lastIndex=-1}if(K===null)return null;let Y=K[2],z=K[3]||"0",w=K[4]||"0",_=q.includePrerelease&&K[5]?`-${K[5]}`:"",$=q.includePrerelease&&K[6]?`+${K[6]}`:"";return Qs5(`${Y}.${z}.${w}${_}${$}`,q)};qv7.exports=Us5});var wv7=h((iO2,zv7)=>{class Yv7{constructor(){this.max=1000,this.map=new Map}get(A){let q=this.map.get(A);if(q===void 0)return;else return this.map.delete(A),this.map.set(A,q),q}delete(A){return this.map.delete(A)}set(A,q){if(!this.delete(A)&&q!==void 0){if(this.map.size>=this.max){let Y=this.map.keys().next().value;this.delete(Y)}this.map.set(A,q)}return this}}zv7.exports=Yv7});var MR=h((nO2,Hv7)=>{var ds5=/\s+/g;class zm6{constructor(A,q){if(q=ls5(q),A instanceof zm6)if(A.loose===!!q.loose&&A.includePrerelease===!!q.includePrerelease)return A;else return new zm6(A.raw,q);if(A instanceof V$8)return this.raw=A.value,this.set=[[A]],this.formatted=void 0,this;if(this.options=q,this.loose=!!q.loose,this.includePrerelease=!!q.includePrerelease,this.raw=A.trim().replace(ds5," "),this.set=this.raw.split("||").map((K)=>this.parseRange(K.trim())).filter((K)=>K.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let K=this.set[0];if(this.set=this.set.filter((Y)=>!$v7(Y[0])),this.set.length===0)this.set=[K];else if(this.set.length>1){for(let Y of this.set)if(Y.length===1&&ts5(Y[0])){this.set=[Y];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let A=0;A<this.set.length;A++){if(A>0)this.formatted+="||";let q=this.set[A];for(let K=0;K<q.length;K++){if(K>0)this.formatted+=" ";this.formatted+=q[K].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(A){let K=((this.options.includePrerelease&&as5)|(this.options.loose&&ss5))+":"+A,Y=_v7.get(K);if(Y)return Y;let z=this.options.loose,w=z?sv[ff.HYPHENRANGELOOSE]:sv[ff.HYPHENRANGE];A=A.replace(w,Ot5(this.options.includePrerelease)),c$("hyphen replace",A),A=A.replace(sv[ff.COMPARATORTRIM],ns5),c$("comparator trim",A),A=A.replace(sv[ff.TILDETRIM],rs5),c$("tilde trim",A),A=A.replace(sv[ff.CARETTRIM],os5),c$("caret trim",A);let _=A.split(" ").map((j)=>es5(j,this.options)).join(" ").split(/\s+/).map((j)=>$t5(j,this.options));if(z)_=_.filter((j)=>{return c$("loose invalid filter",j,this.options),!!j.match(sv[ff.COMPARATORLOOSE])});c$("range list",_);let $=new Map,O=_.map((j)=>new V$8(j,this.options));for(let j of O){if($v7(j))return[j];$.set(j.value,j)}if($.size>1&&$.has(""))$.delete("");let H=[...$.values()];return _v7.set(K,H),H}intersects(A,q){if(!(A instanceof zm6))throw TypeError("a Range is required");return this.set.some((K)=>{return Ov7(K,q)&&A.set.some((Y)=>{return Ov7(Y,q)&&K.every((z)=>{return Y.every((w)=>{return z.intersects(w,q)})})})})}test(A){if(!A)return!1;if(typeof A==="string")try{A=new is5(A,this.options)}catch(q){return!1}for(let q=0;q<this.set.length;q++)if(Ht5(this.set[q],A,this.options))return!0;return!1}}Hv7.exports=zm6;var cs5=wv7(),_v7=new cs5,ls5=k_1(),V$8=wm6(),c$=Km6(),is5=EG(),{safeRe:sv,t:ff,comparatorTrimReplace:ns5,tildeTrimReplace:rs5,caretTrimReplace:os5}=$P6(),{FLAG_INCLUDE_PRERELEASE:as5,FLAG_LOOSE:ss5}=qm6(),$v7=(A)=>A.value==="<0.0.0-0",ts5=(A)=>A.value==="",Ov7=(A,q)=>{let K=!0,Y=A.slice(),z=Y.pop();while(K&&Y.length)K=Y.every((w)=>{return z.intersects(w,q)}),z=Y.pop();return K},es5=(A,q)=>{return c$("comp",A,q),A=Kt5(A,q),c$("caret",A),A=At5(A,q),c$("tildes",A),A=zt5(A,q),c$("xrange",A),A=_t5(A,q),c$("stars",A),A},Tf=(A)=>!A||A.toLowerCase()==="x"||A==="*",At5=(A,q)=>{return A.trim().split(/\s+/).map((K)=>qt5(K,q)).join(" ")},qt5=(A,q)=>{let K=q.loose?sv[ff.TILDELOOSE]:sv[ff.TILDE];return A.replace(K,(Y,z,w,_,$)=>{c$("tilde",A,Y,z,w,_,$);let O;if(Tf(z))O="";else if(Tf(w))O=`>=${z}.0.0 <${+z+1}.0.0-0`;else if(Tf(_))O=`>=${z}.${w}.0 <${z}.${+w+1}.0-0`;else if($)c$("replaceTilde pr",$),O=`>=${z}.${w}.${_}-${$} <${z}.${+w+1}.0-0`;else O=`>=${z}.${w}.${_} <${z}.${+w+1}.0-0`;return c$("tilde return",O),O})},Kt5=(A,q)=>{return A.trim().split(/\s+/).map((K)=>Yt5(K,q)).join(" ")},Yt5=(A,q)=>{c$("caret",A,q);let K=q.loose?sv[ff.CARETLOOSE]:sv[ff.CARET],Y=q.includePrerelease?"-0":"";return A.replace(K,(z,w,_,$,O)=>{c$("caret",A,z,w,_,$,O);let H;if(Tf(w))H="";else if(Tf(_))H=`>=${w}.0.0${Y} <${+w+1}.0.0-0`;else if(Tf($))if(w==="0")H=`>=${w}.${_}.0${Y} <${w}.${+_+1}.0-0`;else H=`>=${w}.${_}.0${Y} <${+w+1}.0.0-0`;else if(O)if(c$("replaceCaret pr",O),w==="0")if(_==="0")H=`>=${w}.${_}.${$}-${O} <${w}.${_}.${+$+1}-0`;else H=`>=${w}.${_}.${$}-${O} <${w}.${+_+1}.0-0`;else H=`>=${w}.${_}.${$}-${O} <${+w+1}.0.0-0`;else if(c$("no pr"),w==="0")if(_==="0")H=`>=${w}.${_}.${$}${Y} <${w}.${_}.${+$+1}-0`;else H=`>=${w}.${_}.${$}${Y} <${w}.${+_+1}.0-0`;else H=`>=${w}.${_}.${$} <${+w+1}.0.0-0`;return c$("caret return",H),H})},zt5=(A,q)=>{return c$("replaceXRanges",A,q),A.split(/\s+/).map((K)=>wt5(K,q)).join(" ")},wt5=(A,q)=>{A=A.trim();let K=q.loose?sv[ff.XRANGELOOSE]:sv[ff.XRANGE];return A.replace(K,(Y,z,w,_,$,O)=>{c$("xRange",A,Y,z,w,_,$,O);let H=Tf(w),j=H||Tf(_),J=j||Tf($),M=J;if(z==="="&&M)z="";if(O=q.includePrerelease?"-0":"",H)if(z===">"||z==="<")Y="<0.0.0-0";else Y="*";else if(z&&M){if(j)_=0;if($=0,z===">")if(z=">=",j)w=+w+1,_=0,$=0;else _=+_+1,$=0;else if(z==="<=")if(z="<",j)w=+w+1;else _=+_+1;if(z==="<")O="-0";Y=`${z+w}.${_}.${$}${O}`}else if(j)Y=`>=${w}.0.0${O} <${+w+1}.0.0-0`;else if(J)Y=`>=${w}.${_}.0${O} <${w}.${+_+1}.0-0`;return c$("xRange return",Y),Y})},_t5=(A,q)=>{return c$("replaceStars",A,q),A.trim().replace(sv[ff.STAR],"")},$t5=(A,q)=>{return c$("replaceGTE0",A,q),A.trim().replace(sv[q.includePrerelease?ff.GTE0PRE:ff.GTE0],"")},Ot5=(A)=>(q,K,Y,z,w,_,$,O,H,j,J,M)=>{if(Tf(Y))K="";else if(Tf(z))K=`>=${Y}.0.0${A?"-0":""}`;else if(Tf(w))K=`>=${Y}.${z}.0${A?"-0":""}`;else if(_)K=`>=${K}`;else K=`>=${K}${A?"-0":""}`;if(Tf(H))O="";else if(Tf(j))O=`<${+H+1}.0.0-0`;else if(Tf(J))O=`<${H}.${+j+1}.0-0`;else if(M)O=`<=${H}.${j}.${J}-${M}`;else if(A)O=`<${H}.${j}.${+J+1}-0`;else O=`<=${O}`;return`${K} ${O}`.trim()},Ht5=(A,q,K)=>{for(let Y=0;Y<A.length;Y++)if(!A[Y].test(q))return!1;if(q.prerelease.length&&!K.includePrerelease){for(let Y=0;Y<A.length;Y++){if(c$(A[Y].semver),A[Y].semver===V$8.ANY)continue;if(A[Y].semver.prerelease.length>0){let z=A[Y].semver;if(z.major===q.major&&z.minor===q.minor&&z.patch===q.patch)return!0}}return!1}return!0}});var wm6=h((rO2,Pv7)=>{var _m6=Symbol("SemVer ANY");class u_1{static get ANY(){return _m6}constructor(A,q){if(q=jv7(q),A instanceof u_1)if(A.loose===!!q.loose)return A;else A=A.value;if(A=A.trim().split(/\s+/).join(" "),k$8("comparator",A,q),this.options=q,this.loose=!!q.loose,this.parse(A),this.semver===_m6)this.value="";else this.value=this.operator+this.semver.version;k$8("comp",this)}parse(A){let q=this.options.loose?Jv7[Mv7.COMPARATORLOOSE]:Jv7[Mv7.COMPARATOR],K=A.match(q);if(!K)throw TypeError(`Invalid comparator: ${A}`);if(this.operator=K[1]!==void 0?K[1]:"",this.operator==="=")this.operator="";if(!K[2])this.semver=_m6;else this.semver=new Dv7(K[2],this.options.loose)}toString(){return this.value}test(A){if(k$8("Comparator.test",A,this.options.loose),this.semver===_m6||A===_m6)return!0;if(typeof A==="string")try{A=new Dv7(A,this.options)}catch(q){return!1}return N$8(A,this.operator,this.semver,this.options)}intersects(A,q){if(!(A instanceof u_1))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new Xv7(A.value,q).test(this.value)}else if(A.operator===""){if(A.value==="")return!0;return new Xv7(this.value,q).test(A.semver)}if(q=jv7(q),q.includePrerelease&&(this.value==="<0.0.0-0"||A.value==="<0.0.0-0"))return!1;if(!q.includePrerelease&&(this.value.startsWith("<0.0.0")||A.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&A.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&A.operator.startsWith("<"))return!0;if(this.semver.version===A.semver.version&&this.operator.includes("=")&&A.operator.includes("="))return!0;if(N$8(this.semver,"<",A.semver,q)&&this.operator.startsWith(">")&&A.operator.startsWith("<"))return!0;if(N$8(this.semver,">",A.semver,q)&&this.operator.startsWith("<")&&A.operator.startsWith(">"))return!0;return!1}}Pv7.exports=u_1;var jv7=k_1(),{safeRe:Jv7,t:Mv7}=$P6(),N$8=v$8(),k$8=Km6(),Dv7=EG(),Xv7=MR()});var $m6=h((oO2,Wv7)=>{var jt5=MR(),Jt5=(A,q,K)=>{try{q=new jt5(q,K)}catch(Y){return!1}return q.test(A)};Wv7.exports=Jt5});var Zv7=h((aO2,Gv7)=>{var Mt5=MR(),Dt5=(A,q)=>new Mt5(A,q).set.map((K)=>K.map((Y)=>Y.value).join(" ").trim().split(" "));Gv7.exports=Dt5});var Tv7=h((sO2,fv7)=>{var Xt5=EG(),Pt5=MR(),Wt5=(A,q,K)=>{let Y=null,z=null,w=null;try{w=new Pt5(q,K)}catch(_){return null}return A.forEach((_)=>{if(w.test(_)){if(!Y||z.compare(_)===-1)Y=_,z=new Xt5(Y,K)}}),Y};fv7.exports=Wt5});var Vv7=h((tO2,vv7)=>{var Gt5=EG(),Zt5=MR(),ft5=(A,q,K)=>{let Y=null,z=null,w=null;try{w=new Zt5(q,K)}catch(_){return null}return A.forEach((_)=>{if(w.test(_)){if(!Y||z.compare(_)===1)Y=_,z=new Gt5(Y,K)}}),Y};vv7.exports=ft5});var Ev7=h((eO2,kv7)=>{var E$8=EG(),Tt5=MR(),Nv7=Ym6(),vt5=(A,q)=>{A=new Tt5(A,q);let K=new E$8("0.0.0");if(A.test(K))return K;if(K=new E$8("0.0.0-0"),A.test(K))return K;K=null;for(let Y=0;Y<A.set.length;++Y){let z=A.set[Y],w=null;if(z.forEach((_)=>{let $=new E$8(_.semver.version);switch(_.operator){case">":if($.prerelease.length===0)$.patch++;else $.prerelease.push(0);$.raw=$.format();case"":case">=":if(!w||Nv7($,w))w=$;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${_.operator}`)}}),w&&(!K||Nv7(K,w)))K=w}if(K&&A.test(K))return K;return null};kv7.exports=vt5});var yv7=h((AH2,Lv7)=>{var Vt5=MR(),Nt5=(A,q)=>{try{return new Vt5(A,q).range||"*"}catch(K){return null}};Lv7.exports=Nt5});var m_1=h((qH2,Cv7)=>{var kt5=EG(),hv7=wm6(),{ANY:Et5}=hv7,Lt5=MR(),yt5=$m6(),Rv7=Ym6(),Sv7=h_1(),Rt5=I_1(),St5=C_1(),ht5=(A,q,K,Y)=>{A=new kt5(A,Y),q=new Lt5(q,Y);let z,w,_,$,O;switch(K){case">":z=Rv7,w=Rt5,_=Sv7,$=">",O=">=";break;case"<":z=Sv7,w=St5,_=Rv7,$="<",O="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(yt5(A,q,Y))return!1;for(let H=0;H<q.set.length;++H){let j=q.set[H],J=null,M=null;if(j.forEach((D)=>{if(D.semver===Et5)D=new hv7(">=0.0.0");if(J=J||D,M=M||D,z(D.semver,J.semver,Y))J=D;else if(_(D.semver,M.semver,Y))M=D}),J.operator===$||J.operator===O)return!1;if((!M.operator||M.operator===$)&&w(A,M.semver))return!1;else if(M.operator===O&&_(A,M.semver))return!1}return!0};Cv7.exports=ht5});var xv7=h((KH2,Iv7)=>{var Ct5=m_1(),It5=(A,q,K)=>Ct5(A,q,">",K);Iv7.exports=It5});var uv7=h((YH2,bv7)=>{var xt5=m_1(),bt5=(A,q,K)=>xt5(A,q,"<",K);bv7.exports=bt5});var gv7=h((zH2,Bv7)=>{var mv7=MR(),ut5=(A,q,K)=>{return A=new mv7(A,K),q=new mv7(q,K),A.intersects(q,K)};Bv7.exports=ut5});var Fv7=h((wH2,pv7)=>{var mt5=$m6(),Bt5=JR();pv7.exports=(A,q,K)=>{let Y=[],z=null,w=null,_=A.sort((j,J)=>Bt5(j,J,K));for(let j of _)if(mt5(j,q,K)){if(w=j,!z)z=j}else{if(w)Y.push([z,w]);w=null,z=null}if(z)Y.push([z,null]);let $=[];for(let[j,J]of Y)if(j===J)$.push(j);else if(!J&&j===_[0])$.push("*");else if(!J)$.push(`>=${j}`);else if(j===_[0])$.push(`<=${J}`);else $.push(`${j} - ${J}`);let O=$.join(" || "),H=typeof q.raw==="string"?q.raw:String(q);return O.length<H.length?O:q}});var iv7=h((_H2,lv7)=>{var Qv7=MR(),y$8=wm6(),{ANY:L$8}=y$8,Om6=$m6(),R$8=JR(),gt5=(A,q,K={})=>{if(A===q)return!0;A=new Qv7(A,K),q=new Qv7(q,K);let Y=!1;A:for(let z of A.set){for(let w of q.set){let _=Ft5(z,w,K);if(Y=Y||_!==null,_)continue A}if(Y)return!1}return!0},pt5=[new y$8(">=0.0.0-0")],Uv7=[new y$8(">=0.0.0")],Ft5=(A,q,K)=>{if(A===q)return!0;if(A.length===1&&A[0].semver===L$8)if(q.length===1&&q[0].semver===L$8)return!0;else if(K.includePrerelease)A=pt5;else A=Uv7;if(q.length===1&&q[0].semver===L$8)if(K.includePrerelease)return!0;else q=Uv7;let Y=new Set,z,w;for(let D of A)if(D.operator===">"||D.operator===">=")z=dv7(z,D,K);else if(D.operator==="<"||D.operator==="<=")w=cv7(w,D,K);else Y.add(D.semver);if(Y.size>1)return null;let _;if(z&&w){if(_=R$8(z.semver,w.semver,K),_>0)return null;else if(_===0&&(z.operator!==">="||w.operator!=="<="))return null}for(let D of Y){if(z&&!Om6(D,String(z),K))return null;if(w&&!Om6(D,String(w),K))return null;for(let X of q)if(!Om6(D,String(X),K))return!1;return!0}let $,O,H,j,J=w&&!K.includePrerelease&&w.semver.prerelease.length?w.semver:!1,M=z&&!K.includePrerelease&&z.semver.prerelease.length?z.semver:!1;if(J&&J.prerelease.length===1&&w.operator==="<"&&J.prerelease[0]===0)J=!1;for(let D of q){if(j=j||D.operator===">"||D.operator===">=",H=H||D.operator==="<"||D.operator==="<=",z){if(M){if(D.semver.prerelease&&D.semver.prerelease.length&&D.semver.major===M.major&&D.semver.minor===M.minor&&D.semver.patch===M.patch)M=!1}if(D.operator===">"||D.operator===">="){if($=dv7(z,D,K),$===D&&$!==z)return!1}else if(z.operator===">="&&!Om6(z.semver,String(D),K))return!1}if(w){if(J){if(D.semver.prerelease&&D.semver.prerelease.length&&D.semver.major===J.major&&D.semver.minor===J.minor&&D.semver.patch===J.patch)J=!1}if(D.operator==="<"||D.operator==="<="){if(O=cv7(w,D,K),O===D&&O!==w)return!1}else if(w.operator==="<="&&!Om6(w.semver,String(D),K))return!1}if(!D.operator&&(w||z)&&_!==0)return!1}if(z&&H&&!w&&_!==0)return!1;if(w&&j&&!z&&_!==0)return!1;if(M||J)return!1;return!0},dv7=(A,q,K)=>{if(!A)return q;let Y=R$8(A.semver,q.semver,K);return Y>0?A:Y<0?q:q.operator===">"&&A.operator===">="?q:A},cv7=(A,q,K)=>{if(!A)return q;let Y=R$8(A.semver,q.semver,K);return Y<0?A:Y>0?q:q.operator==="<"&&A.operator==="<="?q:A};lv7.exports=gt5});var HP6=h(($H2,ov7)=>{var S$8=$P6(),nv7=qm6(),Qt5=EG(),rv7=Z$8(),Ut5=T36(),dt5=fT7(),ct5=vT7(),lt5=kT7(),it5=yT7(),nt5=ST7(),rt5=CT7(),ot5=xT7(),at5=uT7(),st5=JR(),tt5=pT7(),et5=QT7(),Ae5=S_1(),qe5=lT7(),Ke5=nT7(),Ye5=Ym6(),ze5=h_1(),we5=f$8(),_e5=T$8(),$e5=C_1(),Oe5=I_1(),He5=v$8(),je5=Kv7(),Je5=wm6(),Me5=MR(),De5=$m6(),Xe5=Zv7(),Pe5=Tv7(),We5=Vv7(),Ge5=Ev7(),Ze5=yv7(),fe5=m_1(),Te5=xv7(),ve5=uv7(),Ve5=gv7(),Ne5=Fv7(),ke5=iv7();ov7.exports={parse:Ut5,valid:dt5,clean:ct5,inc:lt5,diff:it5,major:nt5,minor:rt5,patch:ot5,prerelease:at5,compare:st5,rcompare:tt5,compareLoose:et5,compareBuild:Ae5,sort:qe5,rsort:Ke5,gt:Ye5,lt:ze5,eq:we5,neq:_e5,gte:$e5,lte:Oe5,cmp:He5,coerce:je5,Comparator:Je5,Range:Me5,satisfies:De5,toComparators:Xe5,maxSatisfying:Pe5,minSatisfying:We5,minVersion:Ge5,validRange:Ze5,outside:fe5,gtr:Te5,ltr:ve5,intersects:Ve5,simplifyRange:Ne5,subset:ke5,SemVer:Qt5,re:S$8.re,src:S$8.src,tokens:S$8.t,SEMVER_SPEC_VERSION:nv7.SEMVER_SPEC_VERSION,RELEASE_TYPES:nv7.RELEASE_TYPES,compareIdentifiers:rv7.compareIdentifiers,rcompareIdentifiers:rv7.rcompareIdentifiers}});function B_1(){if(!h$8)h$8=HP6();return h$8}function vf(A,q){if(typeof Bun<"u")return Bun.semver.order(A,q)===1;return B_1().gt(A,q,{loose:!0})}function RD(A,q){if(typeof Bun<"u")return Bun.semver.order(A,q)>=0;return B_1().gte(A,q,{loose:!0})}function jP6(A,q){if(typeof Bun<"u")return Bun.semver.order(A,q)===-1;return B_1().lt(A,q,{loose:!0})}function C$8(A,q){if(typeof Bun<"u")return Bun.semver.satisfies(A,q);return B_1().satisfies(A,q,{loose:!0})}var h$8;function Ee5(A,q,K){var Y=-1,z=A.length;if(q<0)q=-q>z?0:z+q;if(K=K>z?z:K,K<0)K+=z;z=q>K?0:K-q>>>0,q>>>=0;var w=Array(z);while(++Y<z)w[Y]=A[Y+q];return w}var g_1;var I$8=E(()=>{g_1=Ee5});function Le5(A,q,K){var Y=A.length;return K=K===void 0?Y:K,!q&&K>=Y?A:g_1(A,q,K)}var av7;var sv7=E(()=>{I$8();av7=Le5});function ue5(A){return be5.test(A)}var ye5="\\ud800-\\udfff",Re5="\\u0300-\\u036f",Se5="\\ufe20-\\ufe2f",he5="\\u20d0-\\u20ff",Ce5,Ie5="\\ufe0e\\ufe0f",xe5="\\u200d",be5,p_1;var x$8=E(()=>{Ce5=Re5+Se5+he5,be5=RegExp("["+xe5+ye5+Ce5+Ie5+"]");p_1=ue5});function me5(A){return A.split("")}var tv7;var ev7=E(()=>{tv7=me5});function oe5(A){return A.match(re5)||[]}var AV7="\\ud800-\\udfff",Be5="\\u0300-\\u036f",ge5="\\ufe20-\\ufe2f",pe5="\\u20d0-\\u20ff",Fe5,Qe5="\\ufe0e\\ufe0f",Ue5,b$8,u$8="\\ud83c[\\udffb-\\udfff]",de5,qV7,KV7="(?:\\ud83c[\\udde6-\\uddff]){2}",YV7="[\\ud800-\\udbff][\\udc00-\\udfff]",ce5="\\u200d",zV7,wV7,le5,ie5,ne5,re5,_V7;var $V7=E(()=>{Fe5=Be5+ge5+pe5,Ue5="["+AV7+"]",b$8="["+Fe5+"]",de5="(?:"+b$8+"|"+u$8+")",qV7="[^"+AV7+"]",zV7=de5+"?",wV7="["+Qe5+"]?",le5="(?:"+ce5+"(?:"+[qV7,KV7,YV7].join("|")+")"+wV7+zV7+")*",ie5=wV7+zV7+le5,ne5="(?:"+[qV7+b$8+"?",b$8,KV7,YV7,Ue5].join("|")+")",re5=RegExp(u$8+"(?="+u$8+")|"+ne5+ie5,"g");_V7=oe5});function ae5(A){return p_1(A)?_V7(A):tv7(A)}var OV7;var HV7=E(()=>{ev7();x$8();$V7();OV7=ae5});function se5(A){return function(q){q=e$6(q);var K=p_1(q)?OV7(q):void 0,Y=K?K[0]:q.charAt(0),z=K?av7(K,1).join(""):q.slice(1);return Y[A]()+z}}var jV7;var JV7=E(()=>{sv7();x$8();HV7();Ve6();jV7=se5});var te5,MV7;var DV7=E(()=>{JV7();te5=jV7("toUpperCase"),MV7=te5});function ee5(A){return MV7(e$6(A).toLowerCase())}var ad;var Hm6=E(()=>{Ve6();DV7();ad=ee5});import*as k0 from"path";import*as jm6 from"os";function q69(A){let q=jm6.homedir(),K=[],Y=XV7[A.toLowerCase()];if(!Y)return K;let z=process.env.APPDATA||k0.join(q,"AppData","Roaming"),w=process.env.LOCALAPPDATA||k0.join(q,"AppData","Local");switch(jm6.platform()){case"darwin":if(K.push(k0.join(q,"Library","Application Support","JetBrains"),k0.join(q,"Library","Application Support")),A.toLowerCase()==="androidstudio")K.push(k0.join(q,"Library","Application Support","Google"));break;case"win32":if(K.push(k0.join(z,"JetBrains"),k0.join(w,"JetBrains"),k0.join(z)),A.toLowerCase()==="androidstudio")K.push(k0.join(w,"Google"));break;case"linux":K.push(k0.join(q,".config","JetBrains"),k0.join(q,".local","share","JetBrains"));for(let _ of Y)K.push(k0.join(q,"."+_));if(A.toLowerCase()==="androidstudio")K.push(k0.join(q,".config","Google"));break;default:break}return K}async function K69(A){let q=[],K=P1(),Y=q69(A),z=XV7[A.toLowerCase()];if(!z)return q;for(let w of Y)try{let _=await K.readdir(w);for(let $ of z){let O=new RegExp("^"+$+".*$"),H=[];for(let j of _){if(!O.test(j.name))continue;try{let J=k0.join(w,j.name);if((await K.stat(J)).isDirectory())H.push(J)}catch{}}for(let j of H){let J=jm6.platform()==="linux"?j:k0.join(j,"plugins");try{await K.stat(J),q.push(J)}catch{}}}}catch{continue}return q.filter((w,_)=>q.indexOf(w)===_)}async function Y69(A){let q=await K69(A);for(let K of q){let Y=k0.join(K,A69);try{return await P1().stat(Y),!0}catch{}}return!1}async function z69(A,q=!1){if(!q){let Y=m$8.get(A);if(Y)return Y}let K=Y69(A).then((Y)=>{return B$8.set(A,Y),Y});return m$8.set(A,K),K}async function PV7(A,q=!1){if(q)B$8.delete(A),m$8.delete(A);return z69(A,q)}function WV7(A){return B$8.get(A)??!1}var A69="claude-code-jetbrains-plugin",XV7,B$8,m$8;var g$8=E(()=>{D7();XV7={pycharm:["PyCharm"],intellij:["IntelliJIdea","IdeaIC"],webstorm:["WebStorm"],phpstorm:["PhpStorm"],rubymine:["RubyMine"],clion:["CLion"],goland:["GoLand"],rider:["Rider"],datagrip:["DataGrip"],appcode:["AppCode"],dataspell:["DataSpell"],aqua:["Aqua"],gateway:["Gateway"],fleet:["Fleet"],androidstudio:["AndroidStudio"]};B$8=new Map,m$8=new Map});import{execFileSync as GV7}from"node:child_process";class JP6{wslDistroName;constructor(A){this.wslDistroName=A}toLocalPath(A){if(!A)return A;if(this.wslDistroName){let q=A.match(/^\\\\wsl(?:\.localhost|\$)\\([^\\]+)(.*)$/);if(q&&q[1]!==this.wslDistroName)return A}try{return GV7("wslpath",["-u",A],{encoding:"utf8",stdio:["pipe","pipe","ignore"]}).trim()}catch{return A.replace(/\\/g,"/").replace(/^([A-Z]):/i,(q,K)=>`/mnt/${K.toLowerCase()}`)}}toIDEPath(A){if(!A)return A;try{return GV7("wslpath",["-w",A],{encoding:"utf8",stdio:["pipe","pipe","ignore"]}).trim()}catch{return A}}}function ZV7(A,q){let K=A.match(/^\\\\wsl(?:\.localhost|\$)\\([^\\]+)(.*)$/);if(K)return K[1]===q;return!0}var p$8=()=>{};import{setMaxListeners as w69}from"events";function P3(A=_69){let q=new AbortController;return w69(A,q.signal),q}function $69(A){let q=this.deref();A.deref()?.abort(q?.signal.reason)}function O69(A){let q=this.deref(),K=A.deref();if(q&&K)q.signal.removeEventListener("abort",K)}function v36(A,q){let K=P3(q);if(A.signal.aborted)return K.abort(A.signal.reason),K;let Y=new WeakRef(K),z=new WeakRef(A),w=$69.bind(z,Y);return A.signal.addEventListener("abort",w,{once:!0}),K.signal.addEventListener("abort",O69.bind(z,new WeakRef(w)),{once:!0}),K}var _69=50;var zJ=()=>{};var fV7,H69,K6=function(A){return H69.H.useMemoCache(A)};var t6=E(()=>{fV7=q6(W6(),1),H69=fV7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE});var j69=function(){return Yj.Date.now()},F_1;var TV7=E(()=>{mL();F_1=j69});function M69(A){var q=A.length;while(q--&&J69.test(A.charAt(q)));return q}var J69,vV7;var VV7=E(()=>{J69=/\s/;vV7=M69});function X69(A){return A?A.slice(0,vV7(A)+1).replace(D69,""):A}var D69,NV7;var kV7=E(()=>{VV7();D69=/^\s+/;NV7=X69});function f69(A){if(typeof A=="number")return A;if(wo(A))return EV7;if(Zw(A)){var q=typeof A.valueOf=="function"?A.valueOf():A;A=Zw(q)?q+"":q}if(typeof A!="string")return A===0?A:+A;A=NV7(A);var K=W69.test(A);return K||G69.test(A)?Z69(A.slice(2),K?2:8):P69.test(A)?EV7:+A}var EV7=NaN,P69,W69,G69,Z69,F$8;var LV7=E(()=>{kV7();UZ();GL6();P69=/^[-+]0x[0-9a-f]+$/i,W69=/^0b[01]+$/i,G69=/^0o[0-7]+$/i,Z69=parseInt;F$8=f69});function N69(A,q,K){var Y,z,w,_,$,O,H=0,j=!1,J=!1,M=!0;if(typeof A!="function")throw TypeError(T69);if(q=F$8(q)||0,Zw(K))j=!!K.leading,J="maxWait"in K,w=J?v69(F$8(K.maxWait)||0,q):w,M="trailing"in K?!!K.trailing:M;function D(N){var L=Y,S=z;return Y=z=void 0,H=N,_=A.apply(S,L),_}function X(N){return H=N,$=setTimeout(G,q),j?D(N):_}function P(N){var L=N-O,S=N-H,C=q-L;return J?V69(C,w-S):C}function W(N){var L=N-O,S=N-H;return O===void 0||L>=q||L<0||J&&S>=w}function G(){var N=F_1();if(W(N))return Z(N);$=setTimeout(G,P(N))}function Z(N){if($=void 0,M&&Y)return D(N);return Y=z=void 0,_}function f(){if($!==void 0)clearTimeout($);H=0,Y=O=z=$=void 0}function v(){return $===void 0?_:Z(F_1())}function V(){var N=F_1(),L=W(N);if(Y=arguments,z=this,O=N,L){if($===void 0)return X(O);if(J)return clearTimeout($),$=setTimeout(G,q),D(O)}if($===void 0)$=setTimeout(G,q);return _}return V.cancel=f,V.flush=v,V}var T69="Expected a function",v69,V69,yV7;var RV7=E(()=>{UZ();TV7();LV7();v69=Math.max,V69=Math.min;yV7=N69});function E69(A,q,K){var Y=!0,z=!0;if(typeof A!="function")throw TypeError(k69);if(Zw(K))Y="leading"in K?!!K.leading:Y,z="trailing"in K?!!K.trailing:z;return yV7(A,q,{leading:Y,maxWait:q,trailing:z})}var k69="Expected a function",SV7;var hV7=E(()=>{RV7();UZ();SV7=E69});function Q$8(A,{include:q,exclude:K}={}){let Y=(z)=>{let w=(_)=>typeof _==="string"?z===_:_.test(z);if(q)return q.some(w);if(K)return!K.some(w);return!0};for(let[z,w]of L69(A.constructor.prototype)){if(w==="constructor"||!Y(w))continue;let _=Reflect.getOwnPropertyDescriptor(z,w);if(_&&typeof _.value==="function")A[w]=A[w].bind(A)}return A}var L69=(A)=>{let q=new Set;do for(let K of Reflect.ownKeys(A))q.add([A,K]);while((A=Reflect.getPrototypeOf(A))&&A!==Object.prototype);return q};import{PassThrough as CV7}from"node:stream";var IV7,U$8,y69=(A)=>{let q=new CV7,K=new CV7;q.write=(z)=>{A("stdout",z)},K.write=(z)=>{A("stderr",z)};let Y=new console.Console(q,K);for(let z of IV7)U$8[z]=console[z],console[z]=Y[z];return()=>{for(let z of IV7)console[z]=U$8[z];U$8={}}},xV7;var bV7=E(()=>{IV7=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],U$8={},xV7=y69});function l$8(A,q){var K=A.length;A.push(q);A:for(;0<K;){var Y=K-1>>>1,z=A[Y];if(0<Q_1(z,q))A[Y]=q,A[K]=z,K=Y;else break A}}function RB(A){return A.length===0?null:A[0]}function l_1(A){if(A.length===0)return null;var q=A[0],K=A.pop();if(K!==q){A[0]=K;A:for(var Y=0,z=A.length,w=z>>>1;Y<w;){var _=2*(Y+1)-1,$=A[_],O=_+1,H=A[O];if(0>Q_1($,K))O<z&&0>Q_1(H,$)?(A[Y]=H,A[O]=K,Y=O):(A[Y]=$,A[_]=K,Y=_);else if(O<z&&0>Q_1(H,K))A[Y]=H,A[O]=K,Y=O;else break A}}return q}function Q_1(A,q){var K=A.sortIndex-q.sortIndex;return K!==0?K:A.id-q.id}function d_1(A){for(var q=RB(kt);q!==null;){if(q.callback===null)l_1(kt);else if(q.startTime<=A)l_1(kt),q.sortIndex=q.expirationTime,l$8(sd,q);else break;q=RB(kt)}}function s$8(A){if(Mm6=!1,d_1(A),!Jm6)if(RB(sd)!==null)Jm6=!0,DP6||(DP6=!0,MP6());else{var q=RB(kt);q!==null&&t$8(s$8,q.startTime-A)}}function pV7(){return a$8?!0:SB()-gV7<S69?!1:!0}function c$8(){if(a$8=!1,DP6){var A=SB();gV7=A;var q=!0;try{A:{Jm6=!1,Mm6&&(Mm6=!1,BV7(Dm6),Dm6=-1),r$8=!0;var K=d$8;try{q:{d_1(A);for(DR=RB(sd);DR!==null&&!(DR.expirationTime>A&&pV7());){var Y=DR.callback;if(typeof Y==="function"){DR.callback=null,d$8=DR.priorityLevel;var z=Y(DR.expirationTime<=A);if(A=SB(),typeof z==="function"){DR.callback=z,d_1(A),q=!0;break q}DR===RB(sd)&&l_1(sd),d_1(A)}else l_1(sd);DR=RB(sd)}if(DR!==null)q=!0;else{var w=RB(kt);w!==null&&t$8(s$8,w.startTime-A),q=!1}}break A}finally{DR=null,d$8=K,r$8=!1}q=void 0}}finally{q?MP6():DP6=!1}}}function t$8(A,q){Dm6=mV7(function(){A(SB())},q)}var SB=void 0,i$8,U_1,n$8,sd,kt,R69=1,DR=null,d$8=3,r$8=!1,Jm6=!1,Mm6=!1,a$8=!1,mV7,BV7,uV7,DP6=!1,Dm6=-1,S69=5,gV7=-1,MP6,c_1,o$8,e$8=5,AO8=1,i_1=3,qO8=2,KO8=function(A){A.callback=null},YO8=function(){a$8=!0},n_1=function(A,q,K){var Y=SB();switch(typeof K==="object"&&K!==null?(K=K.delay,K=typeof K==="number"&&0<K?Y+K:Y):K=Y,A){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5000}return z=K+z,A={id:R69++,callback:q,priorityLevel:A,startTime:K,expirationTime:z,sortIndex:-1},K>Y?(A.sortIndex=K,l$8(kt,A),RB(sd)===null&&A===RB(kt)&&(Mm6?(BV7(Dm6),Dm6=-1):Mm6=!0,t$8(s$8,K-Y))):(A.sortIndex=z,l$8(sd,A),Jm6||r$8||(Jm6=!0,DP6||(DP6=!0,MP6()))),A},zO8;var QV7=E(()=>{if(typeof performance==="object"&&typeof performance.now==="function")i$8=performance,SB=function(){return i$8.now()};else U_1=Date,n$8=U_1.now(),SB=function(){return U_1.now()-n$8};sd=[],kt=[],mV7=typeof setTimeout==="function"?setTimeout:null,BV7=typeof clearTimeout==="function"?clearTimeout:null,uV7=typeof setImmediate<"u"?setImmediate:null;if(typeof uV7==="function")MP6=function(){uV7(c$8)};else if(typeof MessageChannel<"u")c_1=new MessageChannel,o$8=c_1.port2,c_1.port1.onmessage=c$8,MP6=function(){o$8.postMessage(null)};else MP6=function(){mV7(c$8,0)};zO8=pV7});var UV7=h((qj2,Xm6)=>{QV7();var wO8=q6(W6());Xm6.exports=function(A){function q(k,R,U,n){return new l_6(k,R,U,n)}function K(){}function Y(k){var R="https://react.dev/errors/"+k;if(1<arguments.length){R+="?args[]="+encodeURIComponent(arguments[1]);for(var U=2;U<arguments.length;U++)R+="&args[]="+encodeURIComponent(arguments[U])}return"Minified React error #"+k+"; visit "+R+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function z(k){var R=k,U=k;if(k.alternate)for(;R.return;)R=R.return;else{k=R;do R=k,(R.flags&4098)!==0&&(U=R.return),k=R.return;while(k)}return R.tag===3?U:null}function w(k){if(z(k)!==k)throw Error(Y(188))}function _(k){var R=k.alternate;if(!R){if(R=z(k),R===null)throw Error(Y(188));return R!==k?null:k}for(var U=k,n=R;;){var M6=U.return;if(M6===null)break;var E6=M6.alternate;if(E6===null){if(n=M6.return,n!==null){U=n;continue}break}if(M6.child===E6.child){for(E6=M6.child;E6;){if(E6===U)return w(M6),k;if(E6===n)return w(M6),R;E6=E6.sibling}throw Error(Y(188))}if(U.return!==n.return)U=M6,n=E6;else{for(var z1=!1,Q1=M6.child;Q1;){if(Q1===U){z1=!0,U=M6,n=E6;break}if(Q1===n){z1=!0,n=M6,U=E6;break}Q1=Q1.sibling}if(!z1){for(Q1=E6.child;Q1;){if(Q1===U){z1=!0,U=E6,n=M6;break}if(Q1===n){z1=!0,n=E6,U=M6;break}Q1=Q1.sibling}if(!z1)throw Error(Y(189))}}if(U.alternate!==n)throw Error(Y(190))}if(U.tag!==3)throw Error(Y(188));return U.stateNode.current===U?k:R}function $(k){var R=k.tag;if(R===5||R===26||R===27||R===6)return k;for(k=k.child;k!==null;){if(R=$(k),R!==null)return R;k=k.sibling}return null}function O(k){var R=k.tag;if(R===5||R===26||R===27||R===6)return k;for(k=k.child;k!==null;){if(k.tag!==4&&(R=O(k),R!==null))return R;k=k.sibling}return null}function H(k){if(k===null||typeof k!=="object")return null;return k=fE6&&k[fE6]||k["@@iterator"],typeof k==="function"?k:null}function j(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===Ux1?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case Ir:return"Fragment";case GE6:return"Profiler";case WE6:return"StrictMode";case oW:return"Suspense";case ZE6:return"SuspenseList";case JQ:return"Activity"}if(typeof k==="object")switch(k.$$typeof){case Qh:return"Portal";case yL:return k.displayName||"Context";case LL:return(k._context.displayName||"Context")+".Consumer";case Uh:var R=k.render;return k=k.displayName,k||(k=R.displayName||R.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case o_6:return R=k.displayName||null,R!==null?R:j(k.type)||"Memo";case dh:R=k._payload,k=k._init;try{return j(k(R))}catch(U){}}return null}function J(k){return{current:k}}function M(k){0>Su||(k.current=Br[Su],Br[Su]=null,Su--)}function D(k,R){Su++,Br[Su]=k.current,k.current=R}function X(k){return k>>>=0,k===0?32:31-(uE6(k)/Rt6|0)|0}function P(k){var R=k&42;if(R!==0)return R;switch(k&-k){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return k&261888;case 262144:case 524288:case 1048576:case 2097152:return k&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return k&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return k}}function W(k,R,U){var n=k.pendingLanes;if(n===0)return 0;var M6=0,E6=k.suspendedLanes,z1=k.pingedLanes;k=k.warmLanes;var Q1=n&134217727;return Q1!==0?(n=Q1&~E6,n!==0?M6=P(n):(z1&=Q1,z1!==0?M6=P(z1):U||(U=Q1&~k,U!==0&&(M6=P(U))))):(Q1=n&~E6,Q1!==0?M6=P(Q1):z1!==0?M6=P(z1):U||(U=n&~k,U!==0&&(M6=P(U)))),M6===0?0:R!==0&&R!==M6&&(R&E6)===0&&(E6=M6&-M6,U=R&-R,E6>=U||E6===32&&(U&4194048)!==0)?R:M6}function G(k,R){return(k.pendingLanes&~(k.suspendedLanes&~k.pingedLanes)&R)===0}function Z(k,R){switch(k){case 1:case 2:case 4:case 8:case 64:return R+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return R+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function f(){var k=M$6;return M$6<<=1,(M$6&62914560)===0&&(M$6=4194304),k}function v(k){for(var R=[],U=0;31>U;U++)R.push(k);return R}function V(k,R){k.pendingLanes|=R,R!==268435456&&(k.suspendedLanes=0,k.pingedLanes=0,k.warmLanes=0)}function N(k,R,U,n,M6,E6){var z1=k.pendingLanes;k.pendingLanes=U,k.suspendedLanes=0,k.pingedLanes=0,k.warmLanes=0,k.expiredLanes&=U,k.entangledLanes&=U,k.errorRecoveryDisabledLanes&=U,k.shellSuspendCounter=0;var{entanglements:Q1,expirationTimes:r8,hiddenUpdates:mA}=k;for(U=z1&~U;0<U;){var Q7=31-mZ(U),T7=1<<Q7;Q1[Q7]=0,r8[Q7]=-1;var h4=mA[Q7];if(h4!==null)for(mA[Q7]=null,Q7=0;Q7<h4.length;Q7++){var L3=h4[Q7];L3!==null&&(L3.lane&=-536870913)}U&=~T7}n!==0&&L(k,n,0),E6!==0&&M6===0&&k.tag!==0&&(k.suspendedLanes|=E6&~(z1&~R))}function L(k,R,U){k.pendingLanes|=R,k.suspendedLanes&=~R;var n=31-mZ(R);k.entangledLanes|=R,k.entanglements[n]=k.entanglements[n]|1073741824|U&261930}function S(k,R){var U=k.entangledLanes|=R;for(k=k.entanglements;U;){var n=31-mZ(U),M6=1<<n;M6&R|k[n]&R&&(k[n]|=R),U&=~M6}}function C(k,R){var U=R&-R;return U=(U&42)!==0?1:m(U),(U&(k.suspendedLanes|R))!==0?0:U}function m(k){switch(k){case 2:k=1;break;case 8:k=4;break;case 32:k=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:k=128;break;case 268435456:k=134217728;break;default:k=0}return k}function x(k){return k&=-k,2<k?8<k?(k&134217727)!==0?32:268435456:8:2}function p(k){if(typeof Pb1==="function"&&gE6(k),BZ&&typeof BZ.setStrictMode==="function")try{BZ.setStrictMode(J76,k)}catch(R){}}function g(k,R){return k===R&&(k!==0||1/k===1/R)||k!==k&&R!==R}function b(k){if(FE6===void 0)try{throw Error()}catch(U){var R=U.stack.trim().match(/\n( *(at )?)/);FE6=R&&R[1]||"",It6=-1<U.stack.indexOf(`
    at`)?" (<anonymous>)":-1<U.stack.indexOf("@")?"@unknown:0:0":""}return`
`+FE6+k+It6}function Q(k,R){if(!k||QE6)return"";QE6=!0;var U=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(R){var T7=function(){throw Error()};if(Object.defineProperty(T7.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(T7,[])}catch(L3){var h4=L3}Reflect.construct(k,[],T7)}else{try{T7.call()}catch(L3){h4=L3}k.call(T7.prototype)}}else{try{throw Error()}catch(L3){h4=L3}(T7=k())&&typeof T7.catch==="function"&&T7.catch(function(){})}}catch(L3){if(L3&&h4&&typeof L3.stack==="string")return[L3.stack,h4.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var M6=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");M6&&M6.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E6=n.DetermineComponentFrameRoot(),z1=E6[0],Q1=E6[1];if(z1&&Q1){var r8=z1.split(`
`),mA=Q1.split(`
`);for(M6=n=0;n<r8.length&&!r8[n].includes("DetermineComponentFrameRoot");)n++;for(;M6<mA.length&&!mA[M6].includes("DetermineComponentFrameRoot");)M6++;if(n===r8.length||M6===mA.length)for(n=r8.length-1,M6=mA.length-1;1<=n&&0<=M6&&r8[n]!==mA[M6];)M6--;for(;1<=n&&0<=M6;n--,M6--)if(r8[n]!==mA[M6]){if(n!==1||M6!==1)do if(n--,M6--,0>M6||r8[n]!==mA[M6]){var Q7=`
`+r8[n].replace(" at new "," at ");return k.displayName&&Q7.includes("<anonymous>")&&(Q7=Q7.replace("<anonymous>",k.displayName)),Q7}while(1<=n&&0<=M6);break}}}finally{QE6=!1,Error.prepareStackTrace=U}return(U=k?k.displayName||k.name:"")?b(U):""}function c(k,R){switch(k.tag){case 26:case 27:case 5:return b(k.type);case 16:return b("Lazy");case 13:return k.child!==R&&R!==null?b("Suspense Fallback"):b("Suspense");case 19:return b("SuspenseList");case 0:case 15:return Q(k.type,!1);case 11:return Q(k.type.render,!1);case 1:return Q(k.type,!0);case 31:return b("Activity");default:return""}}function d(k){try{var R="",U=null;do R+=c(k,U),U=k,k=k.return;while(k);return R}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}function A6(k,R){if(typeof k==="object"&&k!==null){var U=xt6.get(k);if(U!==void 0)return U;return R={value:k,source:R,stack:d(R)},xt6.set(k,R),R}return{value:k,source:R,stack:d(R)}}function e(k,R){GQ[ZQ++]=fQ,GQ[ZQ++]=D$6,D$6=k,fQ=R}function O6(k,R,U){gZ[JX++]=SN,gZ[JX++]=hN,gZ[JX++]=xL,xL=k;var n=SN;k=hN;var M6=32-mZ(n)-1;n&=~(1<<M6),U+=1;var E6=32-mZ(R)+M6;if(30<E6){var z1=M6-M6%5;E6=(n&(1<<z1)-1).toString(32),n>>=z1,M6-=z1,SN=1<<32-mZ(R)+M6|U<<M6|n,hN=E6+k}else SN=1<<E6|U<<M6|n,hN=k}function P6(k){k.return!==null&&(e(k,1),O6(k,1,0))}function f6(k){for(;k===D$6;)D$6=GQ[--ZQ],GQ[ZQ]=null,fQ=GQ[--ZQ],GQ[ZQ]=null;for(;k===xL;)xL=gZ[--JX],gZ[JX]=null,hN=gZ[--JX],gZ[JX]=null,SN=gZ[--JX],gZ[JX]=null}function a(k,R){gZ[JX++]=SN,gZ[JX++]=hN,gZ[JX++]=xL,SN=R.id,hN=R.overflow,xL=k}function s(k,R){D(JD,R),D(gr,k),D(tH,null),k=RL(R),M(tH),D(tH,k)}function _6(){M(tH),M(gr),M(JD)}function H6(k){k.memoizedState!==null&&D(bL,k);var R=tH.current,U=TE6(R,k.type);R!==U&&(D(gr,k),D(tH,U))}function y6(k){gr.current===k&&(M(tH),M(gr)),bL.current===k&&(M(bL),bZ?hL._currentValue=PQ:hL._currentValue2=PQ)}function V6(k){var R=Error(Y(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw J6(A6(R,k)),UE6}function z6(k,R){if(!jX)throw Error(Y(175));$b1(k.stateNode,k.type,k.memoizedProps,R,k)||V6(k,!0)}function t(k){for(MD=k.return;MD;)switch(MD.tag){case 5:case 31:case 13:oT=!1;return;case 27:case 3:oT=!0;return;default:MD=MD.return}}function T6(k){if(!jX||k!==MD)return!1;if(!g9)return t(k),g9=!0,!1;var R=k.tag;if(HH?R!==3&&R!==27&&(R!==5||_$6(k.type)&&!e_6(k.type,k.memoizedProps))&&U_&&V6(k):R!==3&&(R!==5||_$6(k.type)&&!e_6(k.type,k.memoizedProps))&&U_&&V6(k),t(k),R===13){if(!jX)throw Error(Y(316));if(k=k.memoizedState,k=k!==null?k.dehydrated:null,!k)throw Error(Y(317));U_=Tt6(k)}else if(R===31){if(k=k.memoizedState,k=k!==null?k.dehydrated:null,!k)throw Error(Y(317));U_=ft6(k)}else U_=HH&&R===27?Yb1(k.type,U_):MD?K$6(k.stateNode):null;return!0}function Y6(){jX&&(U_=MD=null,g9=!1)}function r(){var k=hu;return k!==null&&(qG===null?qG=k:qG.push.apply(qG,k),hu=null),k}function J6(k){hu===null?hu=[k]:hu.push(k)}function w6(k,R,U){bZ?(D(X$6,R._currentValue),R._currentValue=U):(D(X$6,R._currentValue2),R._currentValue2=U)}function j6(k){var R=X$6.current;bZ?k._currentValue=R:k._currentValue2=R,M(X$6)}function Z6(k,R,U){for(;k!==null;){var n=k.alternate;if((k.childLanes&R)!==R?(k.childLanes|=R,n!==null&&(n.childLanes|=R)):n!==null&&(n.childLanes&R)!==R&&(n.childLanes|=R),k===U)break;k=k.return}}function S6(k,R,U,n){var M6=k.child;M6!==null&&(M6.return=k);for(;M6!==null;){var E6=M6.dependencies;if(E6!==null){var z1=M6.child;E6=E6.firstContext;A:for(;E6!==null;){var Q1=E6;E6=M6;for(var r8=0;r8<R.length;r8++)if(Q1.context===R[r8]){E6.lanes|=U,Q1=E6.alternate,Q1!==null&&(Q1.lanes|=U),Z6(E6.return,U,k),n||(z1=null);break A}E6=Q1.next}}else if(M6.tag===18){if(z1=M6.return,z1===null)throw Error(Y(341));z1.lanes|=U,E6=z1.alternate,E6!==null&&(E6.lanes|=U),Z6(z1,U,k),z1=null}else z1=M6.child;if(z1!==null)z1.return=M6;else for(z1=M6;z1!==null;){if(z1===k){z1=null;break}if(M6=z1.sibling,M6!==null){M6.return=z1.return,z1=M6;break}z1=z1.return}M6=z1}}function L6(k,R,U,n){k=null;for(var M6=R,E6=!1;M6!==null;){if(!E6){if((M6.flags&524288)!==0)E6=!0;else if((M6.flags&262144)!==0)break}if(M6.tag===10){var z1=M6.alternate;if(z1===null)throw Error(Y(387));if(z1=z1.memoizedProps,z1!==null){var Q1=M6.type;jD(M6.pendingProps.value,z1.value)||(k!==null?k.push(Q1):k=[Q1])}}else if(M6===bL.current){if(z1=M6.alternate,z1===null)throw Error(Y(387));z1.memoizedState.memoizedState!==M6.memoizedState.memoizedState&&(k!==null?k.push(hL):k=[hL])}M6=M6.return}k!==null&&S6(R,k,U,n),R.flags|=262144}function X6(k){for(k=k.firstContext;k!==null;){var R=k.context;if(!jD(bZ?R._currentValue:R._currentValue2,k.memoizedValue))return!0;k=k.next}return!1}function D6(k){TQ=k,nh=null,k=k.dependencies,k!==null&&(k.firstContext=null)}function N6(k){return C6(TQ,k)}function R6(k,R){return TQ===null&&D6(k),C6(k,R)}function C6(k,R){var U=bZ?R._currentValue:R._currentValue2;if(R={context:R,memoizedValue:U,next:null},nh===null){if(k===null)throw Error(Y(308));nh=R,k.dependencies={lanes:0,firstContext:R},k.flags|=524288}else nh=nh.next=R;return U}function B6(){return{controller:new Wb1,data:new Map,refCount:0}}function m6(k){k.refCount--,k.refCount===0&&Gb1(Zb1,function(){k.controller.abort()})}function Q6(){}function A1(k){k!==vQ&&k.next===null&&(vQ===null?M76=vQ=k:vQ=vQ.next=k),W$6=!0,P$6||(P$6=!0,v6())}function I6(k,R){if(!dE6&&W$6){dE6=!0;do{var U=!1;for(var n=M76;n!==null;){if(!R)if(k!==0){var M6=n.pendingLanes;if(M6===0)var E6=0;else{var{suspendedLanes:z1,pingedLanes:Q1}=n;E6=(1<<31-mZ(42|k)+1)-1,E6&=M6&~(z1&~Q1),E6=E6&201326741?E6&201326741|1:E6?E6|2:0}E6!==0&&(U=!0,L1(n,E6))}else E6=N9,E6=W(n,n===lw?E6:0,n.cancelPendingCommit!==null||n.timeoutHandle!==XQ),(E6&3)===0||G(n,E6)||(U=!0,L1(n,E6));n=n.next}}while(U);dE6=!1}}function c6(){J1()}function J1(){W$6=P$6=!1;var k=0;VQ!==0&&lx1()&&(k=VQ);for(var R=sW(),U=null,n=M76;n!==null;){var M6=n.next,E6=W1(n,R);if(E6===0)n.next=null,U===null?M76=M6:U.next=M6,M6===null&&(vQ=U);else if(U=n,k!==0||(E6&3)!==0)W$6=!0;n=M6}lj!==0&&lj!==5||I6(k,!1),VQ!==0&&(VQ=0)}function W1(k,R){for(var{suspendedLanes:U,pingedLanes:n,expirationTimes:M6}=k,E6=k.pendingLanes&-62914561;0<E6;){var z1=31-mZ(E6),Q1=1<<z1,r8=M6[z1];if(r8===-1){if((Q1&U)===0||(Q1&n)!==0)M6[z1]=Z(Q1,R)}else r8<=R&&(k.expiredLanes|=Q1);E6&=~Q1}if(R=lw,U=N9,U=W(k,k===R?U:0,k.cancelPendingCommit!==null||k.timeoutHandle!==XQ),n=k.callbackNode,U===0||k===R&&(tz===2||tz===9)||k.cancelPendingCommit!==null)return n!==null&&n!==null&&mE6(n),k.callbackNode=null,k.callbackPriority=0;if((U&3)===0||G(k,U)){if(R=U&-U,R===k.callbackPriority)return R;switch(n!==null&&mE6(n),x(U)){case 2:case 8:U=ih;break;case 32:U=HD;break;case 268435456:U=BE6;break;default:U=HD}return n=N1.bind(null,k),U=j76(U,n),k.callbackPriority=R,k.callbackNode=U,R}return n!==null&&n!==null&&mE6(n),k.callbackPriority=2,k.callbackNode=null,2}function N1(k,R){if(lj!==0&&lj!==5)return k.callbackNode=null,k.callbackPriority=0,null;var U=k.callbackNode;if(wD()&&k.callbackNode!==U)return null;var n=N9;if(n=W(k,k===lw?n:0,k.cancelPendingCommit!==null||k.timeoutHandle!==XQ),n===0)return null;return Tu(k,n,R),W1(k,sW()),k.callbackNode!=null&&k.callbackNode===U?N1.bind(null,k):null}function L1(k,R){if(wD())return null;Tu(k,R,!0)}function v6(){_t6?$t6(function(){(H9&6)!==0?j76(ht6,c6):J1()}):j76(ht6,c6)}function G6(){if(VQ===0){var k=Fr;k===0&&(k=cj,cj<<=1,(cj&261888)===0&&(cj=256)),VQ=k}return VQ}function U6(k,R){if(pr===null){var U=pr=[];cE6=0,Fr=G6(),Qr={status:"pending",value:void 0,then:function(n){U.push(n)}}}return cE6++,R.then(M1,M1),R}function M1(){if(--cE6===0&&pr!==null){Qr!==null&&(Qr.status="fulfilled");var k=pr;pr=null,Fr=0,Qr=null;for(var R=0;R<k.length;R++)(0,k[R])()}}function O1(k,R){var U=[],n={status:"pending",value:null,reason:null,then:function(M6){U.push(M6)}};return k.then(function(){n.status="fulfilled",n.value=R;for(var M6=0;M6<U.length;M6++)(0,U[M6])(R)},function(M6){n.status="rejected",n.reason=M6;for(M6=0;M6<U.length;M6++)(0,U[M6])(void 0)}),n}function _1(){var k=NQ.current;return k!==null?k:lw.pooledCache}function x1(k,R){R===null?D(NQ,NQ.current):D(NQ,R.pool)}function f1(){var k=_1();return k===null?null:{parent:bZ?h$._currentValue:h$._currentValue2,pool:k}}function g1(k,R){if(jD(k,R))return!0;if(typeof k!=="object"||k===null||typeof R!=="object"||R===null)return!1;var U=Object.keys(k),n=Object.keys(R);if(U.length!==n.length)return!1;for(n=0;n<U.length;n++){var M6=U[n];if(!Ct6.call(R,M6)||!jD(k[M6],R[M6]))return!1}return!0}function j8(k){return k=k.status,k==="fulfilled"||k==="rejected"}function jA(k,R,U){switch(U=k[U],U===void 0?k.push(R):U!==R&&(R.then(Q6,Q6),R=U),R.status){case"fulfilled":return R.value;case"rejected":throw k=R.reason,h7(k),k;default:if(typeof R.status==="string")R.then(Q6,Q6);else{if(k=lw,k!==null&&100<k.shellSuspendCounter)throw Error(Y(482));k=R,k.status="pending",k.then(function(n){if(R.status==="pending"){var M6=R;M6.status="fulfilled",M6.value=n}},function(n){if(R.status==="pending"){var M6=R;M6.status="rejected",M6.reason=n}})}switch(R.status){case"fulfilled":return R.value;case"rejected":throw k=R.reason,h7(k),k}throw kQ=R,Ur}}function _A(k){try{var R=k._init;return R(k._payload)}catch(U){if(U!==null&&typeof U==="object"&&typeof U.then==="function")throw kQ=U,Ur;throw U}}function rA(){if(kQ===null)throw Error(Y(459));var k=kQ;return kQ=null,k}function h7(k){if(k===Ur||k===G$6)throw Error(Y(483))}function IA(k){var R=D76;return D76+=1,EQ===null&&(EQ=[]),jA(EQ,k,R)}function N7(k,R){R=R.props.ref,k.ref=R!==void 0?R:null}function w4(k,R){if(R.$$typeof===PE6)throw Error(Y(525));throw k=Object.prototype.toString.call(R),Error(Y(31,k==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":k))}function S4(k){function R(p8,P8){if(k){var n8=p8.deletions;n8===null?(p8.deletions=[P8],p8.flags|=16):n8.push(P8)}}function U(p8,P8){if(!k)return null;for(;P8!==null;)R(p8,P8),P8=P8.sibling;return null}function n(p8){for(var P8=new Map;p8!==null;)p8.key!==null?P8.set(p8.key,p8):P8.set(p8.index,p8),p8=p8.sibling;return P8}function M6(p8,P8){return p8=EL(p8,P8),p8.index=0,p8.sibling=null,p8}function E6(p8,P8,n8){if(p8.index=n8,!k)return p8.flags|=1048576,P8;if(n8=p8.alternate,n8!==null)return n8=n8.index,n8<P8?(p8.flags|=67108866,P8):n8;return p8.flags|=67108866,P8}function z1(p8){return k&&p8.alternate===null&&(p8.flags|=67108866),p8}function Q1(p8,P8,n8,cA){if(P8===null||P8.tag!==6)return P8=ME6(n8,p8.mode,cA),P8.return=p8,P8;return P8=M6(P8,n8),P8.return=p8,P8}function r8(p8,P8,n8,cA){var DK=n8.type;if(DK===Ir)return Q7(p8,P8,n8.props.children,cA,n8.key);if(P8!==null&&(P8.elementType===DK||typeof DK==="object"&&DK!==null&&DK.$$typeof===dh&&_A(DK)===P8.type))return P8=M6(P8,n8.props),N7(P8,n8),P8.return=p8,P8;return P8=n_6(n8.type,n8.key,n8.props,null,p8.mode,cA),N7(P8,n8),P8.return=p8,P8}function mA(p8,P8,n8,cA){if(P8===null||P8.tag!==4||P8.stateNode.containerInfo!==n8.containerInfo||P8.stateNode.implementation!==n8.implementation)return P8=xZ(n8,p8.mode,cA),P8.return=p8,P8;return P8=M6(P8,n8.children||[]),P8.return=p8,P8}function Q7(p8,P8,n8,cA,DK){if(P8===null||P8.tag!==7)return P8=IZ(n8,p8.mode,cA,DK),P8.return=p8,P8;return P8=M6(P8,n8),P8.return=p8,P8}function T7(p8,P8,n8){if(typeof P8==="string"&&P8!==""||typeof P8==="number"||typeof P8==="bigint")return P8=ME6(""+P8,p8.mode,n8),P8.return=p8,P8;if(typeof P8==="object"&&P8!==null){switch(P8.$$typeof){case Eu:return n8=n_6(P8.type,P8.key,P8.props,null,p8.mode,n8),N7(n8,P8),n8.return=p8,n8;case Qh:return P8=xZ(P8,p8.mode,n8),P8.return=p8,P8;case dh:return P8=_A(P8),T7(p8,P8,n8)}if(MQ(P8)||H(P8))return P8=IZ(P8,p8.mode,n8,null),P8.return=p8,P8;if(typeof P8.then==="function")return T7(p8,IA(P8),n8);if(P8.$$typeof===yL)return T7(p8,R6(p8,P8),n8);w4(p8,P8)}return null}function h4(p8,P8,n8,cA){var DK=P8!==null?P8.key:null;if(typeof n8==="string"&&n8!==""||typeof n8==="number"||typeof n8==="bigint")return DK!==null?null:Q1(p8,P8,""+n8,cA);if(typeof n8==="object"&&n8!==null){switch(n8.$$typeof){case Eu:return n8.key===DK?r8(p8,P8,n8,cA):null;case Qh:return n8.key===DK?mA(p8,P8,n8,cA):null;case dh:return n8=_A(n8),h4(p8,P8,n8,cA)}if(MQ(n8)||H(n8))return DK!==null?null:Q7(p8,P8,n8,cA,null);if(typeof n8.then==="function")return h4(p8,P8,IA(n8),cA);if(n8.$$typeof===yL)return h4(p8,P8,R6(p8,n8),cA);w4(p8,n8)}return null}function L3(p8,P8,n8,cA,DK){if(typeof cA==="string"&&cA!==""||typeof cA==="number"||typeof cA==="bigint")return p8=p8.get(n8)||null,Q1(P8,p8,""+cA,DK);if(typeof cA==="object"&&cA!==null){switch(cA.$$typeof){case Eu:return p8=p8.get(cA.key===null?n8:cA.key)||null,r8(P8,p8,cA,DK);case Qh:return p8=p8.get(cA.key===null?n8:cA.key)||null,mA(P8,p8,cA,DK);case dh:return cA=_A(cA),L3(p8,P8,n8,cA,DK)}if(MQ(cA)||H(cA))return p8=p8.get(n8)||null,Q7(P8,p8,cA,DK,null);if(typeof cA.then==="function")return L3(p8,P8,n8,IA(cA),DK);if(cA.$$typeof===yL)return L3(p8,P8,n8,R6(P8,cA),DK);w4(P8,cA)}return null}function DD(p8,P8,n8,cA){for(var DK=null,I$=null,Uq=P8,J4=P8=0,sJ=null;Uq!==null&&J4<n8.length;J4++){Uq.index>J4?(sJ=Uq,Uq=null):sJ=Uq.sibling;var J3=h4(p8,Uq,n8[J4],cA);if(J3===null){Uq===null&&(Uq=sJ);break}k&&Uq&&J3.alternate===null&&R(p8,Uq),P8=E6(J3,P8,J4),I$===null?DK=J3:I$.sibling=J3,I$=J3,Uq=sJ}if(J4===n8.length)return U(p8,Uq),g9&&e(p8,J4),DK;if(Uq===null){for(;J4<n8.length;J4++)Uq=T7(p8,n8[J4],cA),Uq!==null&&(P8=E6(Uq,P8,J4),I$===null?DK=Uq:I$.sibling=Uq,I$=Uq);return g9&&e(p8,J4),DK}for(Uq=n(Uq);J4<n8.length;J4++)sJ=L3(Uq,p8,J4,n8[J4],cA),sJ!==null&&(k&&sJ.alternate!==null&&Uq.delete(sJ.key===null?J4:sJ.key),P8=E6(sJ,P8,J4),I$===null?DK=sJ:I$.sibling=sJ,I$=sJ);return k&&Uq.forEach(function(Ww){return R(p8,Ww)}),g9&&e(p8,J4),DK}function f76(p8,P8,n8,cA){if(n8==null)throw Error(Y(151));for(var DK=null,I$=null,Uq=P8,J4=P8=0,sJ=null,J3=n8.next();Uq!==null&&!J3.done;J4++,J3=n8.next()){Uq.index>J4?(sJ=Uq,Uq=null):sJ=Uq.sibling;var Ww=h4(p8,Uq,J3.value,cA);if(Ww===null){Uq===null&&(Uq=sJ);break}k&&Uq&&Ww.alternate===null&&R(p8,Uq),P8=E6(Ww,P8,J4),I$===null?DK=Ww:I$.sibling=Ww,I$=Ww,Uq=sJ}if(J3.done)return U(p8,Uq),g9&&e(p8,J4),DK;if(Uq===null){for(;!J3.done;J4++,J3=n8.next())J3=T7(p8,J3.value,cA),J3!==null&&(P8=E6(J3,P8,J4),I$===null?DK=J3:I$.sibling=J3,I$=J3);return g9&&e(p8,J4),DK}for(Uq=n(Uq);!J3.done;J4++,J3=n8.next())J3=L3(Uq,p8,J4,J3.value,cA),J3!==null&&(k&&J3.alternate!==null&&Uq.delete(J3.key===null?J4:J3.key),P8=E6(J3,P8,J4),I$===null?DK=J3:I$.sibling=J3,I$=J3);return k&&Uq.forEach(function(Vb1){return R(p8,Vb1)}),g9&&e(p8,J4),DK}function hQ(p8,P8,n8,cA){if(typeof n8==="object"&&n8!==null&&n8.type===Ir&&n8.key===null&&(n8=n8.props.children),typeof n8==="object"&&n8!==null){switch(n8.$$typeof){case Eu:A:{for(var DK=n8.key;P8!==null;){if(P8.key===DK){if(DK=n8.type,DK===Ir){if(P8.tag===7){U(p8,P8.sibling),cA=M6(P8,n8.props.children),cA.return=p8,p8=cA;break A}}else if(P8.elementType===DK||typeof DK==="object"&&DK!==null&&DK.$$typeof===dh&&_A(DK)===P8.type){U(p8,P8.sibling),cA=M6(P8,n8.props),N7(cA,n8),cA.return=p8,p8=cA;break A}U(p8,P8);break}else R(p8,P8);P8=P8.sibling}n8.type===Ir?(cA=IZ(n8.props.children,p8.mode,cA,n8.key),cA.return=p8,p8=cA):(cA=n_6(n8.type,n8.key,n8.props,null,p8.mode,cA),N7(cA,n8),cA.return=p8,p8=cA)}return z1(p8);case Qh:A:{for(DK=n8.key;P8!==null;){if(P8.key===DK)if(P8.tag===4&&P8.stateNode.containerInfo===n8.containerInfo&&P8.stateNode.implementation===n8.implementation){U(p8,P8.sibling),cA=M6(P8,n8.children||[]),cA.return=p8,p8=cA;break A}else{U(p8,P8);break}else R(p8,P8);P8=P8.sibling}cA=xZ(n8,p8.mode,cA),cA.return=p8,p8=cA}return z1(p8);case dh:return n8=_A(n8),hQ(p8,P8,n8,cA)}if(MQ(n8))return DD(p8,P8,n8,cA);if(H(n8)){if(DK=H(n8),typeof DK!=="function")throw Error(Y(150));return n8=DK.call(n8),f76(p8,P8,n8,cA)}if(typeof n8.then==="function")return hQ(p8,P8,IA(n8),cA);if(n8.$$typeof===yL)return hQ(p8,P8,R6(p8,n8),cA);w4(p8,n8)}return typeof n8==="string"&&n8!==""||typeof n8==="number"||typeof n8==="bigint"?(n8=""+n8,P8!==null&&P8.tag===6?(U(p8,P8.sibling),cA=M6(P8,n8),cA.return=p8,p8=cA):(U(p8,P8),cA=ME6(n8,p8.mode,cA),cA.return=p8,p8=cA),z1(p8)):U(p8,P8)}return function(p8,P8,n8,cA){try{D76=0;var DK=hQ(p8,P8,n8,cA);return EQ=null,DK}catch(Uq){if(Uq===Ur||Uq===G$6)throw Uq;var I$=q(29,Uq,null,p8.mode);return I$.lanes=cA,I$.return=p8,I$}finally{}}}function Dq(){for(var k=Cu,R=lE6=Cu=0;R<k;){var U=aT[R];aT[R++]=null;var n=aT[R];aT[R++]=null;var M6=aT[R];aT[R++]=null;var E6=aT[R];if(aT[R++]=null,n!==null&&M6!==null){var z1=n.pending;z1===null?M6.next=M6:(M6.next=z1.next,z1.next=M6),n.pending=M6}E6!==0&&u9(U,M6,E6)}}function f7(k,R,U,n){aT[Cu++]=k,aT[Cu++]=R,aT[Cu++]=U,aT[Cu++]=n,lE6|=n,k.lanes|=n,k=k.alternate,k!==null&&(k.lanes|=n)}function k7(k,R,U,n){return f7(k,R,U,n),O3(k)}function mq(k,R){return f7(k,null,null,R),O3(k)}function u9(k,R,U){k.lanes|=U;var n=k.alternate;n!==null&&(n.lanes|=U);for(var M6=!1,E6=k.return;E6!==null;)E6.childLanes|=U,n=E6.alternate,n!==null&&(n.childLanes|=U),E6.tag===22&&(k=E6.stateNode,k===null||k._visibility&1||(M6=!0)),k=E6,E6=E6.return;return k.tag===3?(E6=k.stateNode,M6&&R!==null&&(M6=31-mZ(U),k=E6.hiddenUpdates,n=k[M6],n===null?k[M6]=[R]:n.push(R),R.lane=U|536870912),E6):null}function O3(k){if(50<or)throw or=0,KL6=null,Error(Y(185));for(var R=k.return;R!==null;)k=R,R=k.return;return k.tag===3?k.stateNode:null}function $z(k){k.updateQueue={baseState:k.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function N$(k,R){k=k.updateQueue,R.updateQueue===k&&(R.updateQueue={baseState:k.baseState,firstBaseUpdate:k.firstBaseUpdate,lastBaseUpdate:k.lastBaseUpdate,shared:k.shared,callbacks:null})}function Rz(k){return{lane:k,tag:0,payload:null,callback:null,next:null}}function Oz(k,R,U){var n=k.updateQueue;if(n===null)return null;if(n=n.shared,(H9&2)!==0){var M6=n.pending;return M6===null?R.next=R:(R.next=M6.next,M6.next=R),n.pending=R,R=O3(k),u9(k,null,U),R}return f7(k,n,R,U),O3(k)}function uY(k,R,U){if(R=R.updateQueue,R!==null&&(R=R.shared,(U&4194048)!==0)){var n=R.lanes;n&=k.pendingLanes,U|=n,R.lanes=U,S(k,U)}}function mY(k,R){var{updateQueue:U,alternate:n}=k;if(n!==null&&(n=n.updateQueue,U===n)){var M6=null,E6=null;if(U=U.firstBaseUpdate,U!==null){do{var z1={lane:U.lane,tag:U.tag,payload:U.payload,callback:null,next:null};E6===null?M6=E6=z1:E6=E6.next=z1,U=U.next}while(U!==null);E6===null?M6=E6=R:E6=E6.next=R}else M6=E6=R;U={baseState:n.baseState,firstBaseUpdate:M6,lastBaseUpdate:E6,shared:n.shared,callbacks:n.callbacks},k.updateQueue=U;return}k=U.lastBaseUpdate,k===null?U.firstBaseUpdate=R:k.next=R,U.lastBaseUpdate=R}function s2(){if(iE6){var k=Qr;if(k!==null)throw k}}function TY(k,R,U,n){iE6=!1;var M6=k.updateQueue;Iu=!1;var{firstBaseUpdate:E6,lastBaseUpdate:z1}=M6,Q1=M6.shared.pending;if(Q1!==null){M6.shared.pending=null;var r8=Q1,mA=r8.next;r8.next=null,z1===null?E6=mA:z1.next=mA,z1=r8;var Q7=k.alternate;Q7!==null&&(Q7=Q7.updateQueue,Q1=Q7.lastBaseUpdate,Q1!==z1&&(Q1===null?Q7.firstBaseUpdate=mA:Q1.next=mA,Q7.lastBaseUpdate=r8))}if(E6!==null){var T7=M6.baseState;z1=0,Q7=mA=r8=null,Q1=E6;do{var h4=Q1.lane&-536870913,L3=h4!==Q1.lane;if(L3?(N9&h4)===h4:(n&h4)===h4){h4!==0&&h4===Fr&&(iE6=!0),Q7!==null&&(Q7=Q7.next={lane:0,tag:Q1.tag,payload:Q1.payload,callback:null,next:null});A:{var DD=k,f76=Q1;h4=R;var hQ=U;switch(f76.tag){case 1:if(DD=f76.payload,typeof DD==="function"){T7=DD.call(hQ,T7,h4);break A}T7=DD;break A;case 3:DD.flags=DD.flags&-65537|128;case 0:if(DD=f76.payload,h4=typeof DD==="function"?DD.call(hQ,T7,h4):DD,h4===null||h4===void 0)break A;T7=XE6({},T7,h4);break A;case 2:Iu=!0}}h4=Q1.callback,h4!==null&&(k.flags|=64,L3&&(k.flags|=8192),L3=M6.callbacks,L3===null?M6.callbacks=[h4]:L3.push(h4))}else L3={lane:h4,tag:Q1.tag,payload:Q1.payload,callback:Q1.callback,next:null},Q7===null?(mA=Q7=L3,r8=T7):Q7=Q7.next=L3,z1|=h4;if(Q1=Q1.next,Q1===null)if(Q1=M6.shared.pending,Q1===null)break;else L3=Q1,Q1=L3.next,L3.next=null,M6.lastBaseUpdate=L3,M6.shared.pending=null}while(1);Q7===null&&(r8=T7),M6.baseState=r8,M6.firstBaseUpdate=mA,M6.lastBaseUpdate=Q7,E6===null&&(M6.shared.lanes=0),IN|=z1,k.lanes=z1,k.memoizedState=T7}}function sz(k,R){if(typeof k!=="function")throw Error(Y(191,k));k.call(R)}function F3(k,R){var U=k.callbacks;if(U!==null)for(k.callbacks=null,k=0;k<U.length;k++)sz(U[k],R)}function BY(k,R){k=sh,D(f$6,k),D(dr,R),sh=k|R.baseLanes}function Hz(){D(f$6,sh),D(dr,dr.current)}function Xw(){sh=f$6.current,M(dr),M(f$6)}function _7(k){var R=k.alternate;D(jH,jH.current&1),D(pZ,k),sT===null&&(R===null||dr.current!==null?sT=k:R.memoizedState!==null&&(sT=k))}function jz(k){D(jH,jH.current),D(pZ,k),sT===null&&(sT=k)}function m9(k){k.tag===22?(D(jH,jH.current),D(pZ,k),sT===null&&(sT=k)):c5(k)}function c5(){D(jH,jH.current),D(pZ,pZ.current)}function Q3(k){M(pZ),sT===k&&(sT=null),M(jH)}function l5(k){for(var R=k;R!==null;){if(R.tag===13){var U=R.memoizedState;if(U!==null&&(U=U.dehydrated,U===null||_76(U)||CL(U)))return R}else if(R.tag===19&&(R.memoizedProps.revealOrder==="forwards"||R.memoizedProps.revealOrder==="backwards"||R.memoizedProps.revealOrder==="unstable_legacy-backwards"||R.memoizedProps.revealOrder==="together")){if((R.flags&128)!==0)return R}else if(R.child!==null){R.child.return=R,R=R.child;continue}if(R===k)break;for(;R.sibling===null;){if(R.return===null||R.return===k)return null;R=R.return}R.sibling.return=R.return,R=R.sibling}return null}function Tq(){throw Error(Y(321))}function _Y(k,R){if(R===null)return!1;for(var U=0;U<R.length&&U<k.length;U++)if(!jD(k[U],R[U]))return!1;return!0}function Jz(k,R,U,n,M6,E6){return rh=E6,l3=R,R.memoizedState=null,R.updateQueue=null,R.lanes=0,MK.H=k===null||k.memoizedState===null?V$6:N$6,yQ=!1,E6=U(n,M6),yQ=!1,cr&&(E6=u_(R,U,n,M6)),U3(k),E6}function U3(k){MK.H=P76;var R=Pw!==null&&Pw.next!==null;if(rh=0,eH=Pw=l3=null,T$6=!1,X76=0,lr=null,R)throw Error(Y(300));k===null||Aj||(k=k.dependencies,k!==null&&X6(k)&&(Aj=!0))}function u_(k,R,U,n){l3=k;var M6=0;do{if(cr&&(lr=null),X76=0,cr=!1,25<=M6)throw Error(Y(301));if(M6+=1,eH=Pw=null,k.updateQueue!=null){var E6=k.updateQueue;E6.lastEffect=null,E6.events=null,E6.stores=null,E6.memoCache!=null&&(E6.memoCache.index=0)}MK.H=mt6,E6=R(U,n)}while(cr);return E6}function pw(){var k=MK.H,R=k.useState()[0];return R=typeof R.then==="function"?k1(R):R,k=k.useState()[0],(Pw!==null?Pw.memoizedState:null)!==k&&(l3.flags|=1024),R}function s6(){var k=v$6!==0;return v$6=0,k}function q1(k,R,U){R.updateQueue=k.updateQueue,R.flags&=-2053,k.lanes&=~U}function S1(k){if(T$6){for(k=k.memoizedState;k!==null;){var R=k.queue;R!==null&&(R.pending=null),k=k.next}T$6=!1}rh=0,eH=Pw=l3=null,cr=!1,X76=v$6=0,lr=null}function F1(){var k={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return eH===null?l3.memoizedState=eH=k:eH=eH.next=k,eH}function e1(){if(Pw===null){var k=l3.alternate;k=k!==null?k.memoizedState:null}else k=Pw.next;var R=eH===null?l3.memoizedState:eH.next;if(R!==null)eH=R,Pw=k;else{if(k===null){if(l3.alternate===null)throw Error(Y(467));throw Error(Y(310))}Pw=k,k={memoizedState:Pw.memoizedState,baseState:Pw.baseState,baseQueue:Pw.baseQueue,queue:Pw.queue,next:null},eH===null?l3.memoizedState=eH=k:eH=eH.next=k}return eH}function R8(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function k1(k){var R=X76;return X76+=1,lr===null&&(lr=[]),k=jA(lr,k,R),R=l3,(eH===null?R.memoizedState:eH.next)===null&&(R=R.alternate,MK.H=R===null||R.memoizedState===null?V$6:N$6),k}function D8(k){if(k!==null&&typeof k==="object"){if(typeof k.then==="function")return k1(k);if(k.$$typeof===yL)return N6(k)}throw Error(Y(438,String(k)))}function g8(k){var R=null,U=l3.updateQueue;if(U!==null&&(R=U.memoCache),R==null){var n=l3.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(R={data:n.data.map(function(M6){return M6.slice()}),index:0})))}if(R==null&&(R={data:[],index:0}),U===null&&(U=R8(),l3.updateQueue=U),U.memoCache=R,U=R.data[R.index],U===void 0)for(U=R.data[R.index]=Array(k),n=0;n<k;n++)U[n]=Lu;return R.index++,U}function I8(k,R){return typeof R==="function"?R(k):R}function t8(k){var R=e1();return CA(R,Pw,k)}function CA(k,R,U){var n=k.queue;if(n===null)throw Error(Y(311));n.lastRenderedReducer=U;var M6=k.baseQueue,E6=n.pending;if(E6!==null){if(M6!==null){var z1=M6.next;M6.next=E6.next,E6.next=z1}R.baseQueue=M6=E6,n.pending=null}if(E6=k.baseState,M6===null)k.memoizedState=E6;else{R=M6.next;var Q1=z1=null,r8=null,mA=R,Q7=!1;do{var T7=mA.lane&-536870913;if(T7!==mA.lane?(N9&T7)===T7:(rh&T7)===T7){var h4=mA.revertLane;if(h4===0)r8!==null&&(r8=r8.next={lane:0,revertLane:0,gesture:null,action:mA.action,hasEagerState:mA.hasEagerState,eagerState:mA.eagerState,next:null}),T7===Fr&&(Q7=!0);else if((rh&h4)===h4){mA=mA.next,h4===Fr&&(Q7=!0);continue}else T7={lane:0,revertLane:mA.revertLane,gesture:null,action:mA.action,hasEagerState:mA.hasEagerState,eagerState:mA.eagerState,next:null},r8===null?(Q1=r8=T7,z1=E6):r8=r8.next=T7,l3.lanes|=h4,IN|=h4;T7=mA.action,yQ&&U(E6,T7),E6=mA.hasEagerState?mA.eagerState:U(E6,T7)}else h4={lane:T7,revertLane:mA.revertLane,gesture:mA.gesture,action:mA.action,hasEagerState:mA.hasEagerState,eagerState:mA.eagerState,next:null},r8===null?(Q1=r8=h4,z1=E6):r8=r8.next=h4,l3.lanes|=T7,IN|=T7;mA=mA.next}while(mA!==null&&mA!==R);if(r8===null?z1=E6:r8.next=Q1,!jD(E6,k.memoizedState)&&(Aj=!0,Q7&&(U=Qr,U!==null)))throw U;k.memoizedState=E6,k.baseState=z1,k.baseQueue=r8,n.lastRenderedState=E6}return M6===null&&(n.lanes=0),[k.memoizedState,n.dispatch]}function E4(k){var R=e1(),U=R.queue;if(U===null)throw Error(Y(311));U.lastRenderedReducer=k;var{dispatch:n,pending:M6}=U,E6=R.memoizedState;if(M6!==null){U.pending=null;var z1=M6=M6.next;do E6=k(E6,z1.action),z1=z1.next;while(z1!==M6);jD(E6,R.memoizedState)||(Aj=!0),R.memoizedState=E6,R.baseQueue===null&&(R.baseState=E6),U.lastRenderedState=E6}return[E6,n]}function l4(k,R,U){var n=l3,M6=e1(),E6=g9;if(E6){if(U===void 0)throw Error(Y(407));U=U()}else U=R();var z1=!jD((Pw||M6).memoizedState,U);if(z1&&(M6.memoizedState=U,Aj=!0),M6=M6.queue,k$(d3.bind(null,n,M6,k),[k]),M6.getSnapshot!==R||z1||eH!==null&&eH.memoizedState.tag&1){if(n.flags|=2048,H3(9,{destroy:void 0},u4.bind(null,n,M6,U,R),null),lw===null)throw Error(Y(349));E6||(rh&127)!==0||M7(n,R,U)}return U}function M7(k,R,U){k.flags|=16384,k={getSnapshot:R,value:U},R=l3.updateQueue,R===null?(R=R8(),l3.updateQueue=R,R.stores=[k]):(U=R.stores,U===null?R.stores=[k]:U.push(k))}function u4(k,R,U,n){R.value=U,R.getSnapshot=n,q3(R)&&w9(k)}function d3(k,R,U){return U(function(){q3(R)&&w9(k)})}function q3(k){var R=k.getSnapshot;k=k.value;try{var U=R();return!jD(k,U)}catch(n){return!0}}function w9(k){var R=mq(k,2);R!==null&&rJ(R,k,2)}function m_(k){var R=F1();if(typeof k==="function"){var U=k;if(k=U(),yQ){p(!0);try{U()}finally{p(!1)}}}return R.memoizedState=R.baseState=k,R.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:I8,lastRenderedState:k},R}function Fw(k,R,U,n){return k.baseState=U,CA(k,Pw,typeof n==="function"?n:I8)}function B_(k,R,U,n,M6){if(N2(k))throw Error(Y(485));if(k=R.action,k!==null){var E6={payload:M6,action:k,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z1){E6.listeners.push(z1)}};MK.T!==null?U(!0):E6.isTransition=!1,n(E6),U=R.pending,U===null?(E6.next=R.pending=E6,vK(R,E6)):(E6.next=U.next,R.pending=U.next=E6)}}function vK(k,R){var{action:U,payload:n}=R,M6=k.state;if(R.isTransition){var E6=MK.T,z1={};MK.T=z1;try{var Q1=U(M6,n),r8=MK.S;r8!==null&&r8(z1,Q1),g_(k,R,Q1)}catch(mA){gY(k,R,mA)}finally{E6!==null&&z1.types!==null&&(E6.types=z1.types),MK.T=E6}}else try{E6=U(M6,n),g_(k,R,E6)}catch(mA){gY(k,R,mA)}}function g_(k,R,U){U!==null&&typeof U==="object"&&typeof U.then==="function"?U.then(function(n){_H(k,R,n)},function(n){return gY(k,R,n)}):_H(k,R,U)}function _H(k,R,U){R.status="fulfilled",R.value=U,pJ(R),k.state=U,R=k.pending,R!==null&&(U=R.next,U===R?k.pending=null:(U=U.next,R.next=U,vK(k,U)))}function gY(k,R,U){var n=k.pending;if(k.pending=null,n!==null){n=n.next;do R.status="rejected",R.reason=U,pJ(R),R=R.next;while(R!==n)}k.action=null}function pJ(k){k=k.listeners;for(var R=0;R<k.length;R++)(0,k[R])()}function aH(k,R){return R}function OX(k,R){if(g9){var U=lw.formState;if(U!==null){A:{var n=l3;if(g9){if(U_){var M6=Dt6(U_,oT);if(M6){U_=K$6(M6),n=Xt6(M6);break A}}V6(n)}n=!1}n&&(R=U[0])}}U=F1(),U.memoizedState=U.baseState=R,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aH,lastRenderedState:R},U.queue=n,U=e7.bind(null,l3,n),n.dispatch=U,n=m_(!1);var E6=V2.bind(null,l3,!1,n.queue);return n=F1(),M6={state:R,dispatch:null,action:k,pending:null},n.queue=M6,U=B_.bind(null,l3,M6,E6,U),M6.dispatch=U,n.memoizedState=k,[R,U,!1]}function QP(k){var R=e1();return vq(R,Pw,k)}function vq(k,R,U){if(R=CA(k,R,aH)[0],k=t8(I8)[0],typeof R==="object"&&R!==null&&typeof R.then==="function")try{var n=k1(R)}catch(z1){if(z1===Ur)throw G$6;throw z1}else n=R;R=e1();var M6=R.queue,E6=M6.dispatch;return U!==R.memoizedState&&(l3.flags|=2048,H3(9,{destroy:void 0},lW.bind(null,M6,U),null)),[n,E6,k]}function lW(k,R){k.action=R}function Fj(k){var R=e1(),U=Pw;if(U!==null)return vq(R,U,k);e1(),R=R.memoizedState,U=e1();var n=U.queue.dispatch;return U.memoizedState=k,[R,n,!1]}function H3(k,R,U,n){return k={tag:k,create:U,deps:n,inst:R,next:null},R=l3.updateQueue,R===null&&(R=R8(),l3.updateQueue=R),U=R.lastEffect,U===null?R.lastEffect=k.next=k:(n=U.next,U.next=k,k.next=n,R.lastEffect=k),k}function q5(){return e1().memoizedState}function jK(k,R,U,n){var M6=F1();l3.flags|=k,M6.memoizedState=H3(1|R,{destroy:void 0},U,n===void 0?null:n)}function FJ(k,R,U,n){var M6=e1();n=n===void 0?null:n;var E6=M6.memoizedState.inst;Pw!==null&&n!==null&&_Y(n,Pw.memoizedState.deps)?M6.memoizedState=H3(R,E6,U,n):(l3.flags|=k,M6.memoizedState=H3(1|R,E6,U,n))}function Qj(k,R){jK(8390656,8,k,R)}function k$(k,R){FJ(2048,8,k,R)}function QJ(k){l3.flags|=4;var R=l3.updateQueue;if(R===null)R=R8(),l3.updateQueue=R,R.events=[k];else{var U=R.events;U===null?R.events=[k]:U.push(k)}}function t2(k){var R=e1().memoizedState;return QJ({ref:R,nextImpl:k}),function(){if((H9&2)!==0)throw Error(Y(440));return R.impl.apply(void 0,arguments)}}function UP(k,R){return FJ(4,2,k,R)}function E$(k,R){return FJ(4,4,k,R)}function UJ(k,R){if(typeof R==="function"){k=k();var U=R(k);return function(){typeof U==="function"?U():R(null)}}if(R!==null&&R!==void 0)return k=k(),R.current=k,function(){R.current=null}}function Qq(k,R,U){U=U!==null&&U!==void 0?U.concat([k]):null,FJ(4,4,UJ.bind(null,R,k),U)}function L$(){}function Mz(k,R){var U=e1();R=R===void 0?null:R;var n=U.memoizedState;if(R!==null&&_Y(R,n[1]))return n[0];return U.memoizedState=[k,R],k}function Sz(k,R){var U=e1();R=R===void 0?null:R;var n=U.memoizedState;if(R!==null&&_Y(R,n[1]))return n[0];if(n=k(),yQ){p(!0);try{k()}finally{p(!1)}}return U.memoizedState=[n,R],n}function y$(k,R,U){if(U===void 0||(rh&1073741824)!==0&&(N9&261930)===0)return k.memoizedState=R;return k.memoizedState=U,k=d_6(),l3.lanes|=k,IN|=k,U}function v2(k,R,U,n){if(jD(U,R))return U;if(dr.current!==null)return k=y$(k,U,n),jD(k,R)||(Aj=!0),k;if((rh&42)===0||(rh&1073741824)!==0&&(N9&261930)===0)return Aj=!0,k.memoizedState=U;return k=d_6(),l3.lanes|=k,IN|=k,R}function GA(k,R,U,n,M6){var E6=RN();oJ(E6!==0&&8>E6?E6:8);var z1=MK.T,Q1={};MK.T=Q1,V2(k,!1,R,U);try{var r8=M6(),mA=MK.S;if(mA!==null&&mA(Q1,r8),r8!==null&&typeof r8==="object"&&typeof r8.then==="function"){var Q7=O1(r8,n);Y5(k,R,Q7,sH(k))}else Y5(k,R,n,sH(k))}catch(T7){Y5(k,R,{then:function(){},status:"rejected",reason:T7},sH())}finally{oJ(E6),z1!==null&&Q1.types!==null&&(z1.types=Q1.types),MK.T=z1}}function SA(k){var R=k.memoizedState;if(R!==null)return R;R={memoizedState:PQ,baseState:PQ,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:I8,lastRenderedState:PQ},next:null};var U={};return R.next={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:I8,lastRenderedState:U},next:null},k.memoizedState=R,k=k.alternate,k!==null&&(k.memoizedState=R),R}function _q(){return N6(hL)}function c3(){return e1().memoizedState}function Bq(){return e1().memoizedState}function B9(k){for(var R=k.return;R!==null;){switch(R.tag){case 24:case 3:var U=sH();k=Rz(U);var n=Oz(R,k,U);n!==null&&(rJ(n,R,U),uY(n,R,U)),R={cache:B6()},k.payload=R;return}R=R.return}}function K5(k,R,U){var n=sH();U={lane:n,revertLane:0,gesture:null,action:U,hasEagerState:!1,eagerState:null,next:null},N2(k)?p_(R,U):(U=k7(k,R,U,n),U!==null&&(rJ(U,k,n),Qw(U,R,n)))}function e7(k,R,U){var n=sH();Y5(k,R,U,n)}function Y5(k,R,U,n){var M6={lane:n,revertLane:0,gesture:null,action:U,hasEagerState:!1,eagerState:null,next:null};if(N2(k))p_(R,M6);else{var E6=k.alternate;if(k.lanes===0&&(E6===null||E6.lanes===0)&&(E6=R.lastRenderedReducer,E6!==null))try{var z1=R.lastRenderedState,Q1=E6(z1,U);if(M6.hasEagerState=!0,M6.eagerState=Q1,jD(Q1,z1))return f7(k,R,M6,0),lw===null&&Dq(),!1}catch(r8){}finally{}if(U=k7(k,R,M6,n),U!==null)return rJ(U,k,n),Qw(U,R,n),!0}return!1}function V2(k,R,U,n){if(n={lane:2,revertLane:G6(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},N2(k)){if(R)throw Error(Y(479))}else R=k7(k,U,n,2),R!==null&&rJ(R,k,2)}function N2(k){var R=k.alternate;return k===l3||R!==null&&R===l3}function p_(k,R){cr=T$6=!0;var U=k.pending;U===null?R.next=R:(R.next=U.next,U.next=R),k.pending=R}function Qw(k,R,U){if((U&4194048)!==0){var n=R.lanes;n&=k.pendingLanes,U|=n,R.lanes=U,S(k,U)}}function F_(k,R,U,n){R=k.memoizedState,U=U(n,R),U=U===null||U===void 0?R:XE6({},R,U),k.memoizedState=U,k.lanes===0&&(k.updateQueue.baseState=U)}function h5(k,R,U,n,M6,E6,z1){return k=k.stateNode,typeof k.shouldComponentUpdate==="function"?k.shouldComponentUpdate(n,E6,z1):R.prototype&&R.prototype.isPureReactComponent?!g1(U,n)||!g1(M6,E6):!0}function R$(k,R,U,n){k=R.state,typeof R.componentWillReceiveProps==="function"&&R.componentWillReceiveProps(U,n),typeof R.UNSAFE_componentWillReceiveProps==="function"&&R.UNSAFE_componentWillReceiveProps(U,n),R.state!==k&&nE6.enqueueReplaceState(R,R.state,null)}function hz(k,R){var U=R;if("ref"in R){U={};for(var n in R)n!=="ref"&&(U[n]=R[n])}if(k=k.defaultProps){U===R&&(U=XE6({},U));for(var M6 in k)U[M6]===void 0&&(U[M6]=k[M6])}return U}function dJ(k,R){try{var U=k.onUncaughtError;U(R.value,{componentStack:R.stack})}catch(n){setTimeout(function(){throw n})}}function iW(k,R,U){try{var n=k.onCaughtError;n(U.value,{componentStack:U.stack,errorBoundary:R.tag===1?R.stateNode:null})}catch(M6){setTimeout(function(){throw M6})}}function nW(k,R,U){return U=Rz(U),U.tag=3,U.payload={element:null},U.callback=function(){dJ(k,R)},U}function EN(k){return k=Rz(k),k.tag=3,k}function bh(k,R,U,n){var M6=U.type.getDerivedStateFromError;if(typeof M6==="function"){var E6=n.value;k.payload=function(){return M6(E6)},k.callback=function(){iW(R,U,n)}}var z1=U.stateNode;z1!==null&&typeof z1.componentDidCatch==="function"&&(k.callback=function(){iW(R,U,n),typeof M6!=="function"&&(xN===null?xN=new Set([this]):xN.add(this));var Q1=n.stack;this.componentDidCatch(n.value,{componentStack:Q1!==null?Q1:""})})}function dT(k,R,U,n,M6){if(U.flags|=32768,n!==null&&typeof n==="object"&&typeof n.then==="function"){if(R=U.alternate,R!==null&&L6(R,U,M6,!0),U=pZ.current,U!==null){switch(U.tag){case 31:case 13:return sT===null?Rr():U.alternate===null&&WO===0&&(WO=3),U.flags&=-257,U.flags|=65536,U.lanes=M6,n===Z$6?U.flags|=16384:(R=U.updateQueue,R===null?U.updateQueue=new Set([n]):R.add(n),hr(k,n,M6)),!1;case 22:return U.flags|=65536,n===Z$6?U.flags|=16384:(R=U.updateQueue,R===null?(R={transitions:null,markerInstances:null,retryQueue:new Set([n])},U.updateQueue=R):(U=R.retryQueue,U===null?R.retryQueue=new Set([n]):U.add(n)),hr(k,n,M6)),!1}throw Error(Y(435,U.tag))}return hr(k,n,M6),Rr(),!1}if(g9)return R=pZ.current,R!==null?((R.flags&65536)===0&&(R.flags|=256),R.flags|=65536,R.lanes=M6,n!==UE6&&(k=Error(Y(422),{cause:n}),J6(A6(k,U)))):(n!==UE6&&(R=Error(Y(423),{cause:n}),J6(A6(R,U))),k=k.current.alternate,k.flags|=65536,M6&=-M6,k.lanes|=M6,n=A6(n,U),M6=nW(k.stateNode,n,M6),mY(k,M6),WO!==4&&(WO=2)),!1;var E6=Error(Y(520),{cause:n});if(E6=A6(E6,U),G76===null?G76=[E6]:G76.push(E6),WO!==4&&(WO=2),R===null)return!0;n=A6(n,U),U=R;do{switch(U.tag){case 3:return U.flags|=65536,k=M6&-M6,U.lanes|=k,k=nW(U.stateNode,n,k),mY(U,k),!1;case 1:if(R=U.type,E6=U.stateNode,(U.flags&128)===0&&(typeof R.getDerivedStateFromError==="function"||E6!==null&&typeof E6.componentDidCatch==="function"&&(xN===null||!xN.has(E6))))return U.flags|=65536,M6&=-M6,U.lanes|=M6,M6=EN(M6),bh(M6,k,U,n),mY(U,M6),!1}U=U.return}while(U!==null);return!1}function Uw(k,R,U,n){R.child=k===null?ut6(R,null,U,n):LQ(R,k.child,U,n)}function KD(k,R,U,n,M6){U=U.render;var E6=R.ref;if("ref"in n){var z1={};for(var Q1 in n)Q1!=="ref"&&(z1[Q1]=n[Q1])}else z1=n;if(D6(R),n=Jz(k,R,U,z1,E6,M6),Q1=s6(),k!==null&&!Aj)return q1(k,R,M6),lT(k,R,M6);return g9&&Q1&&P6(R),R.flags|=1,Uw(k,R,n,M6),R.child}function b6(k,R,U,n,M6){if(k===null){var E6=U.type;if(typeof E6==="function"&&!i_6(E6)&&E6.defaultProps===void 0&&U.compare===null)return R.tag=15,R.type=E6,g6(k,R,E6,n,M6);return k=n_6(U.type,null,n,R,R.mode,M6),k.ref=R.ref,k.return=R,R.child=k}if(E6=k.child,!fr(k,M6)){var z1=E6.memoizedProps;if(U=U.compare,U=U!==null?U:g1,U(z1,n)&&k.ref===R.ref)return lT(k,R,M6)}return R.flags|=1,k=EL(E6,n),k.ref=R.ref,k.return=R,R.child=k}function g6(k,R,U,n,M6){if(k!==null){var E6=k.memoizedProps;if(g1(E6,n)&&k.ref===R.ref)if(Aj=!1,R.pendingProps=n=E6,fr(k,M6))(k.flags&131072)!==0&&(Aj=!0);else return R.lanes=k.lanes,lT(k,R,M6)}return z5(k,R,U,n,M6)}function y1(k,R,U,n){var M6=n.children,E6=k!==null?k.memoizedState:null;if(k===null&&R.stateNode===null&&(R.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((R.flags&128)!==0){if(E6=E6!==null?E6.baseLanes|U:U,k!==null){n=R.child=k.child;for(M6=0;n!==null;)M6=M6|n.lanes|n.childLanes,n=n.sibling;n=M6&~E6}else n=0,R.child=null;return I1(k,R,E6,U,n)}if((U&536870912)!==0)R.memoizedState={baseLanes:0,cachePool:null},k!==null&&x1(R,E6!==null?E6.cachePool:null),E6!==null?BY(R,E6):Hz(),m9(R);else return n=R.lanes=536870912,I1(k,R,E6!==null?E6.baseLanes|U:U,U,n)}else E6!==null?(x1(R,E6.cachePool),BY(R,E6),c5(R),R.memoizedState=null):(k!==null&&x1(R,null),Hz(),c5(R));return Uw(k,R,M6,U),R.child}function e6(k,R){return k!==null&&k.tag===22||R.stateNode!==null||(R.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),R.sibling}function I1(k,R,U,n,M6){var E6=_1();return E6=E6===null?null:{parent:bZ?h$._currentValue:h$._currentValue2,pool:E6},R.memoizedState={baseLanes:U,cachePool:E6},k!==null&&x1(R,null),Hz(),m9(R),k!==null&&L6(k,R,n,!0),R.childLanes=M6,null}function B8(k,R){return R=Wr({mode:R.mode,children:R.children},k.mode),R.ref=k.ref,k.child=R,R.return=k,R}function NA(k,R,U){return LQ(R,k.child,null,U),k=B8(R,R.pendingProps),k.flags|=2,Q3(R),R.memoizedState=null,k}function m7(k,R,U){var n=R.pendingProps,M6=(R.flags&128)!==0;if(R.flags&=-129,k===null){if(g9){if(n.mode==="hidden")return k=B8(R,n),R.lanes=536870912,e6(null,k);if(jz(R),(k=U_)?(k=aW(k,oT),k!==null&&(R.memoizedState={dehydrated:k,treeContext:xL!==null?{id:SN,overflow:hN}:null,retryLane:536870912,hydrationErrors:null},U=rs6(k),U.return=R,R.child=U,MD=R,U_=null)):k=null,k===null)throw V6(R);return R.lanes=536870912,null}return B8(R,n)}var E6=k.memoizedState;if(E6!==null){var z1=E6.dehydrated;if(jz(R),M6)if(R.flags&256)R.flags&=-257,R=NA(k,R,U);else if(R.memoizedState!==null)R.child=k.child,R.flags|=128,R=null;else throw Error(Y(558));else if(Aj||L6(k,R,U,!1),M6=(U&k.childLanes)!==0,Aj||M6){if(n=lw,n!==null&&(z1=C(n,U),z1!==0&&z1!==E6.retryLane))throw E6.retryLane=z1,mq(k,z1),rJ(n,k,z1),rE6;Rr(),R=NA(k,R,U)}else k=E6.treeContext,jX&&(U_=Pt6(z1),MD=R,g9=!0,hu=null,oT=!1,k!==null&&a(R,k)),R=B8(R,n),R.flags|=4096;return R}return k=EL(k.child,{mode:n.mode,children:n.children}),k.ref=R.ref,R.child=k,k.return=R,k}function JK(k,R){var U=R.ref;if(U===null)k!==null&&k.ref!==null&&(R.flags|=4194816);else{if(typeof U!=="function"&&typeof U!=="object")throw Error(Y(284));if(k===null||k.ref!==U)R.flags|=4194816}}function z5(k,R,U,n,M6){if(D6(R),U=Jz(k,R,U,n,void 0,M6),n=s6(),k!==null&&!Aj)return q1(k,R,M6),lT(k,R,M6);return g9&&n&&P6(R),R.flags|=1,Uw(k,R,U,M6),R.child}function V9(k,R,U,n,M6,E6){if(D6(R),R.updateQueue=null,U=u_(R,n,U,M6),U3(k),n=s6(),k!==null&&!Aj)return q1(k,R,E6),lT(k,R,E6);return g9&&n&&P6(R),R.flags|=1,Uw(k,R,U,E6),R.child}function $Y(k,R,U,n,M6){if(D6(R),R.stateNode===null){var E6=rT,z1=U.contextType;typeof z1==="object"&&z1!==null&&(E6=N6(z1)),E6=new U(n,E6),R.memoizedState=E6.state!==null&&E6.state!==void 0?E6.state:null,E6.updater=nE6,R.stateNode=E6,E6._reactInternals=R,E6=R.stateNode,E6.props=n,E6.state=R.memoizedState,E6.refs={},$z(R),z1=U.contextType,E6.context=typeof z1==="object"&&z1!==null?N6(z1):rT,E6.state=R.memoizedState,z1=U.getDerivedStateFromProps,typeof z1==="function"&&(F_(R,U,z1,n),E6.state=R.memoizedState),typeof U.getDerivedStateFromProps==="function"||typeof E6.getSnapshotBeforeUpdate==="function"||typeof E6.UNSAFE_componentWillMount!=="function"&&typeof E6.componentWillMount!=="function"||(z1=E6.state,typeof E6.componentWillMount==="function"&&E6.componentWillMount(),typeof E6.UNSAFE_componentWillMount==="function"&&E6.UNSAFE_componentWillMount(),z1!==E6.state&&nE6.enqueueReplaceState(E6,E6.state,null),TY(R,n,E6,M6),s2(),E6.state=R.memoizedState),typeof E6.componentDidMount==="function"&&(R.flags|=4194308),n=!0}else if(k===null){E6=R.stateNode;var Q1=R.memoizedProps,r8=hz(U,Q1);E6.props=r8;var mA=E6.context,Q7=U.contextType;z1=rT,typeof Q7==="object"&&Q7!==null&&(z1=N6(Q7));var T7=U.getDerivedStateFromProps;Q7=typeof T7==="function"||typeof E6.getSnapshotBeforeUpdate==="function",Q1=R.pendingProps!==Q1,Q7||typeof E6.UNSAFE_componentWillReceiveProps!=="function"&&typeof E6.componentWillReceiveProps!=="function"||(Q1||mA!==z1)&&R$(R,E6,n,z1),Iu=!1;var h4=R.memoizedState;E6.state=h4,TY(R,n,E6,M6),s2(),mA=R.memoizedState,Q1||h4!==mA||Iu?(typeof T7==="function"&&(F_(R,U,T7,n),mA=R.memoizedState),(r8=Iu||h5(R,U,r8,n,h4,mA,z1))?(Q7||typeof E6.UNSAFE_componentWillMount!=="function"&&typeof E6.componentWillMount!=="function"||(typeof E6.componentWillMount==="function"&&E6.componentWillMount(),typeof E6.UNSAFE_componentWillMount==="function"&&E6.UNSAFE_componentWillMount()),typeof E6.componentDidMount==="function"&&(R.flags|=4194308)):(typeof E6.componentDidMount==="function"&&(R.flags|=4194308),R.memoizedProps=n,R.memoizedState=mA),E6.props=n,E6.state=mA,E6.context=z1,n=r8):(typeof E6.componentDidMount==="function"&&(R.flags|=4194308),n=!1)}else{E6=R.stateNode,N$(k,R),z1=R.memoizedProps,Q7=hz(U,z1),E6.props=Q7,T7=R.pendingProps,h4=E6.context,mA=U.contextType,r8=rT,typeof mA==="object"&&mA!==null&&(r8=N6(mA)),Q1=U.getDerivedStateFromProps,(mA=typeof Q1==="function"||typeof E6.getSnapshotBeforeUpdate==="function")||typeof E6.UNSAFE_componentWillReceiveProps!=="function"&&typeof E6.componentWillReceiveProps!=="function"||(z1!==T7||h4!==r8)&&R$(R,E6,n,r8),Iu=!1,h4=R.memoizedState,E6.state=h4,TY(R,n,E6,M6),s2();var L3=R.memoizedState;z1!==T7||h4!==L3||Iu||k!==null&&k.dependencies!==null&&X6(k.dependencies)?(typeof Q1==="function"&&(F_(R,U,Q1,n),L3=R.memoizedState),(Q7=Iu||h5(R,U,Q7,n,h4,L3,r8)||k!==null&&k.dependencies!==null&&X6(k.dependencies))?(mA||typeof E6.UNSAFE_componentWillUpdate!=="function"&&typeof E6.componentWillUpdate!=="function"||(typeof E6.componentWillUpdate==="function"&&E6.componentWillUpdate(n,L3,r8),typeof E6.UNSAFE_componentWillUpdate==="function"&&E6.UNSAFE_componentWillUpdate(n,L3,r8)),typeof E6.componentDidUpdate==="function"&&(R.flags|=4),typeof E6.getSnapshotBeforeUpdate==="function"&&(R.flags|=1024)):(typeof E6.componentDidUpdate!=="function"||z1===k.memoizedProps&&h4===k.memoizedState||(R.flags|=4),typeof E6.getSnapshotBeforeUpdate!=="function"||z1===k.memoizedProps&&h4===k.memoizedState||(R.flags|=1024),R.memoizedProps=n,R.memoizedState=L3),E6.props=n,E6.state=L3,E6.context=r8,n=Q7):(typeof E6.componentDidUpdate!=="function"||z1===k.memoizedProps&&h4===k.memoizedState||(R.flags|=4),typeof E6.getSnapshotBeforeUpdate!=="function"||z1===k.memoizedProps&&h4===k.memoizedState||(R.flags|=1024),n=!1)}return E6=n,JK(k,R),n=(R.flags&128)!==0,E6||n?(E6=R.stateNode,U=n&&typeof U.getDerivedStateFromError!=="function"?null:E6.render(),R.flags|=1,k!==null&&n?(R.child=LQ(R,k.child,null,M6),R.child=LQ(R,null,U,M6)):Uw(k,R,U,M6),R.memoizedState=E6.state,k=R.child):k=lT(k,R,M6),k}function cJ(k,R,U,n){return Y6(),R.flags|=256,Uw(k,R,U,n),R.child}function Q_(k){return{baseLanes:k,cachePool:f1()}}function cT(k,R,U){return k=k!==null?k.childLanes&~U:0,R&&(k|=FZ),k}function YQ(k,R,U){var n=R.pendingProps,M6=!1,E6=(R.flags&128)!==0,z1;if((z1=E6)||(z1=k!==null&&k.memoizedState===null?!1:(jH.current&2)!==0),z1&&(M6=!0,R.flags&=-129),z1=(R.flags&32)!==0,R.flags&=-33,k===null){if(g9){if(M6?_7(R):c5(R),(k=U_)?(k=IL(k,oT),k!==null&&(R.memoizedState={dehydrated:k,treeContext:xL!==null?{id:SN,overflow:hN}:null,retryLane:536870912,hydrationErrors:null},U=rs6(k),U.return=R,R.child=U,MD=R,U_=null)):k=null,k===null)throw V6(R);return CL(k)?R.lanes=32:R.lanes=536870912,null}var Q1=n.children;if(n=n.fallback,M6)return c5(R),M6=R.mode,Q1=Wr({mode:"hidden",children:Q1},M6),n=IZ(n,M6,U,null),Q1.return=R,n.return=R,Q1.sibling=n,R.child=Q1,n=R.child,n.memoizedState=Q_(U),n.childLanes=cT(k,z1,U),R.memoizedState=oE6,e6(null,n);return _7(R),nA6(R,Q1)}var r8=k.memoizedState;if(r8!==null&&(Q1=r8.dehydrated,Q1!==null)){if(E6)R.flags&256?(_7(R),R.flags&=-257,R=Gr(k,R,U)):R.memoizedState!==null?(c5(R),R.child=k.child,R.flags|=128,R=null):(c5(R),Q1=n.fallback,M6=R.mode,n=Wr({mode:"visible",children:n.children},M6),Q1=IZ(Q1,M6,U,null),Q1.flags|=2,n.return=R,Q1.return=R,n.sibling=Q1,R.child=n,LQ(R,k.child,null,U),n=R.child,n.memoizedState=Q_(U),n.childLanes=cT(k,z1,U),R.memoizedState=oE6,R=e6(null,n));else if(_7(R),CL(Q1))z1=Kb1(Q1).digest,n=Error(Y(419)),n.stack="",n.digest=z1,J6({value:n,source:null,stack:null}),R=Gr(k,R,U);else if(Aj||L6(k,R,U,!1),z1=(U&k.childLanes)!==0,Aj||z1){if(z1=lw,z1!==null&&(n=C(z1,U),n!==0&&n!==r8.retryLane))throw r8.retryLane=n,mq(k,n),rJ(z1,k,n),rE6;_76(Q1)||Rr(),R=Gr(k,R,U)}else _76(Q1)?(R.flags|=192,R.child=k.child,R=null):(k=r8.treeContext,jX&&(U_=Wt6(Q1),MD=R,g9=!0,hu=null,oT=!1,k!==null&&a(R,k)),R=nA6(R,n.children),R.flags|=4096);return R}if(M6)return c5(R),Q1=n.fallback,M6=R.mode,r8=k.child,E6=r8.sibling,n=EL(r8,{mode:"hidden",children:n.children}),n.subtreeFlags=r8.subtreeFlags&65011712,E6!==null?Q1=EL(E6,Q1):(Q1=IZ(Q1,M6,U,null),Q1.flags|=2),Q1.return=R,n.return=R,n.sibling=Q1,R.child=n,e6(null,n),n=R.child,Q1=k.child.memoizedState,Q1===null?Q1=Q_(U):(M6=Q1.cachePool,M6!==null?(r8=bZ?h$._currentValue:h$._currentValue2,M6=M6.parent!==r8?{parent:r8,pool:r8}:M6):M6=f1(),Q1={baseLanes:Q1.baseLanes|U,cachePool:M6}),n.memoizedState=Q1,n.childLanes=cT(k,z1,U),R.memoizedState=oE6,e6(k.child,n);return _7(R),U=k.child,k=U.sibling,U=EL(U,{mode:"visible",children:n.children}),U.return=R,U.sibling=null,k!==null&&(z1=R.deletions,z1===null?(R.deletions=[k],R.flags|=16):z1.push(k)),R.child=U,R.memoizedState=null,U}function nA6(k,R){return R=Wr({mode:"visible",children:R},k.mode),R.return=k,k.child=R}function Wr(k,R){return k=q(22,k,null,R),k.lanes=0,k}function Gr(k,R,U){return LQ(R,k.child,null,U),k=nA6(R,R.pendingProps.children),k.flags|=2,R.memoizedState=null,k}function B_6(k,R,U){k.lanes|=R;var n=k.alternate;n!==null&&(n.lanes|=R),Z6(k.return,R,U)}function Zr(k,R,U,n,M6,E6){var z1=k.memoizedState;z1===null?k.memoizedState={isBackwards:R,rendering:null,renderingStartTime:0,last:n,tail:U,tailMode:M6,treeForkCount:E6}:(z1.isBackwards=R,z1.rendering=null,z1.renderingStartTime=0,z1.last=n,z1.tail=U,z1.tailMode=M6,z1.treeForkCount=E6)}function uh(k,R,U){var n=R.pendingProps,M6=n.revealOrder,E6=n.tail;n=n.children;var z1=jH.current,Q1=(z1&2)!==0;if(Q1?(z1=z1&1|2,R.flags|=128):z1&=1,D(jH,z1),Uw(k,R,n,U),n=g9?fQ:0,!Q1&&k!==null&&(k.flags&128)!==0)A:for(k=R.child;k!==null;){if(k.tag===13)k.memoizedState!==null&&B_6(k,U,R);else if(k.tag===19)B_6(k,U,R);else if(k.child!==null){k.child.return=k,k=k.child;continue}if(k===R)break A;for(;k.sibling===null;){if(k.return===null||k.return===R)break A;k=k.return}k.sibling.return=k.return,k=k.sibling}switch(M6){case"forwards":U=R.child;for(M6=null;U!==null;)k=U.alternate,k!==null&&l5(k)===null&&(M6=U),U=U.sibling;U=M6,U===null?(M6=R.child,R.child=null):(M6=U.sibling,U.sibling=null),Zr(R,!1,M6,U,E6,n);break;case"backwards":case"unstable_legacy-backwards":U=null,M6=R.child;for(R.child=null;M6!==null;){if(k=M6.alternate,k!==null&&l5(k)===null){R.child=M6;break}k=M6.sibling,M6.sibling=U,U=M6,M6=k}Zr(R,!0,U,null,E6,n);break;case"together":Zr(R,!1,null,null,void 0,n);break;default:R.memoizedState=null}return R.child}function lT(k,R,U){if(k!==null&&(R.dependencies=k.dependencies),IN|=R.lanes,(U&R.childLanes)===0)if(k!==null){if(L6(k,R,U,!1),(U&R.childLanes)===0)return null}else return null;if(k!==null&&R.child!==k.child)throw Error(Y(153));if(R.child!==null){k=R.child,U=EL(k,k.pendingProps),R.child=U;for(U.return=R;k.sibling!==null;)k=k.sibling,U=U.sibling=EL(k,k.pendingProps),U.return=R;U.sibling=null}return R.child}function fr(k,R){if((k.lanes&R)!==0)return!0;return k=k.dependencies,k!==null&&X6(k)?!0:!1}function rA6(k,R,U){switch(R.tag){case 3:s(R,R.stateNode.containerInfo),w6(R,h$,k.memoizedState.cache),Y6();break;case 27:case 5:H6(R);break;case 4:s(R,R.stateNode.containerInfo);break;case 10:w6(R,R.type,R.memoizedProps.value);break;case 31:if(R.memoizedState!==null)return R.flags|=128,jz(R),null;break;case 13:var n=R.memoizedState;if(n!==null){if(n.dehydrated!==null)return _7(R),R.flags|=128,null;if((U&R.child.childLanes)!==0)return YQ(k,R,U);return _7(R),k=lT(k,R,U),k!==null?k.sibling:null}_7(R);break;case 19:var M6=(k.flags&128)!==0;if(n=(U&R.childLanes)!==0,n||(L6(k,R,U,!1),n=(U&R.childLanes)!==0),M6){if(n)return uh(k,R,U);R.flags|=128}if(M6=R.memoizedState,M6!==null&&(M6.rendering=null,M6.tail=null,M6.lastEffect=null),D(jH,jH.current),n)break;else return null;case 22:return R.lanes=0,y1(k,R,U,R.pendingProps);case 24:w6(R,h$,k.memoizedState.cache)}return lT(k,R,U)}function mh(k,R,U){if(k!==null)if(k.memoizedProps!==R.pendingProps)Aj=!0;else{if(!fr(k,U)&&(R.flags&128)===0)return Aj=!1,rA6(k,R,U);Aj=(k.flags&131072)!==0?!0:!1}else Aj=!1,g9&&(R.flags&1048576)!==0&&O6(R,fQ,R.index);switch(R.lanes=0,R.tag){case 16:A:{var n=R.pendingProps;if(k=_A(R.elementType),R.type=k,typeof k==="function")i_6(k)?(n=hz(k,n),R.tag=1,R=$Y(null,R,k,n,U)):(R.tag=0,R=z5(null,R,k,n,U));else{if(k!==void 0&&k!==null){var M6=k.$$typeof;if(M6===Uh){R.tag=11,R=KD(null,R,k,n,U);break A}else if(M6===o_6){R.tag=14,R=b6(null,R,k,n,U);break A}}throw R=j(k)||k,Error(Y(306,R,""))}}return R;case 0:return z5(k,R,R.type,R.pendingProps,U);case 1:return n=R.type,M6=hz(n,R.pendingProps),$Y(k,R,n,M6,U);case 3:A:{if(s(R,R.stateNode.containerInfo),k===null)throw Error(Y(387));var E6=R.pendingProps;M6=R.memoizedState,n=M6.element,N$(k,R),TY(R,E6,null,U);var z1=R.memoizedState;if(E6=z1.cache,w6(R,h$,E6),E6!==M6.cache&&S6(R,[h$],U,!0),s2(),E6=z1.element,jX&&M6.isDehydrated)if(M6={element:E6,isDehydrated:!1,cache:z1.cache},R.updateQueue.baseState=M6,R.memoizedState=M6,R.flags&256){R=cJ(k,R,E6,U);break A}else if(E6!==n){n=A6(Error(Y(424)),R),J6(n),R=cJ(k,R,E6,U);break A}else for(jX&&(U_=wb1(R.stateNode.containerInfo),MD=R,g9=!0,hu=null,oT=!0),U=ut6(R,null,E6,U),R.child=U;U;)U.flags=U.flags&-3|4096,U=U.sibling;else{if(Y6(),E6===n){R=lT(k,R,U);break A}Uw(k,R,E6,U)}R=R.child}return R;case 26:if(nT)return JK(k,R),k===null?(U=H$6(R.type,null,R.pendingProps,null))?R.memoizedState=U:g9||(R.stateNode=Mb1(R.type,R.pendingProps,JD.current,R)):R.memoizedState=H$6(R.type,k.memoizedProps,R.pendingProps,k.memoizedState),null;case 27:if(HH)return H6(R),k===null&&HH&&g9&&(n=R.stateNode=j$6(R.type,R.pendingProps,JD.current,tH.current,!1),MD=R,oT=!0,U_=_b1(R.type,n,U_)),Uw(k,R,R.pendingProps.children,U),JK(k,R),k===null&&(R.flags|=4194304),R.child;case 5:if(k===null&&g9){if($$6(R.type,R.pendingProps,tH.current),M6=n=U_)n=Gt6(n,R.type,R.pendingProps,oT),n!==null?(R.stateNode=n,MD=R,U_=zb1(n),oT=!1,M6=!0):M6=!1;M6||V6(R)}return H6(R),M6=R.type,E6=R.pendingProps,z1=k!==null?k.memoizedProps:null,n=E6.children,e_6(M6,E6)?n=null:z1!==null&&e_6(M6,z1)&&(R.flags|=32),R.memoizedState!==null&&(M6=Jz(k,R,pw,null,null,U),bZ?hL._currentValue=M6:hL._currentValue2=M6),JK(k,R),Uw(k,R,n,U),R.child;case 6:if(k===null&&g9){if(Jb1(R.pendingProps,tH.current),k=U=U_)U=Zt6(U,R.pendingProps,oT),U!==null?(R.stateNode=U,MD=R,U_=null,k=!0):k=!1;k||V6(R)}return null;case 13:return YQ(k,R,U);case 4:return s(R,R.stateNode.containerInfo),n=R.pendingProps,k===null?R.child=LQ(R,null,n,U):Uw(k,R,n,U),R.child;case 11:return KD(k,R,R.type,R.pendingProps,U);case 7:return Uw(k,R,R.pendingProps,U),R.child;case 8:return Uw(k,R,R.pendingProps.children,U),R.child;case 12:return Uw(k,R,R.pendingProps.children,U),R.child;case 10:return n=R.pendingProps,w6(R,R.type,n.value),Uw(k,R,n.children,U),R.child;case 9:return M6=R.type._context,n=R.pendingProps.children,D6(R),M6=N6(M6),n=n(M6),R.flags|=1,Uw(k,R,n,U),R.child;case 14:return b6(k,R,R.type,R.pendingProps,U);case 15:return g6(k,R,R.type,R.pendingProps,U);case 19:return uh(k,R,U);case 31:return m7(k,R,U);case 22:return y1(k,R,U,R.pendingProps);case 24:return D6(R),n=N6(h$),k===null?(M6=_1(),M6===null&&(M6=lw,E6=B6(),M6.pooledCache=E6,E6.refCount++,E6!==null&&(M6.pooledCacheLanes|=U),M6=E6),R.memoizedState={parent:n,cache:M6},$z(R),w6(R,h$,M6)):((k.lanes&U)!==0&&(N$(k,R),TY(R,null,null,U),s2()),M6=k.memoizedState,E6=R.memoizedState,M6.parent!==n?(M6={parent:n,cache:n},R.memoizedState=M6,R.lanes===0&&(R.memoizedState=R.updateQueue.baseState=M6),w6(R,h$,n)):(n=E6.cache,w6(R,h$,n),n!==M6.cache&&S6(R,[h$],U,!0))),Uw(k,R,R.pendingProps.children,U),R.child;case 29:throw R.pendingProps}throw Error(Y(156,R.tag))}function $H(k){k.flags|=4}function YD(k){SL&&(k.flags|=8)}function Tr(k,R){if(k!==null&&k.child===R.child)return!1;if((R.flags&16)!==0)return!0;for(k=R.child;k!==null;){if((k.flags&8218)!==0||(k.subtreeFlags&8218)!==0)return!0;k=k.sibling}return!1}function g_6(k,R,U,n){if(OD)for(U=R.child;U!==null;){if(U.tag===5||U.tag===6)$D(k,U.stateNode);else if(!(U.tag===4||HH&&U.tag===27)&&U.child!==null){U.child.return=U,U=U.child;continue}if(U===R)break;for(;U.sibling===null;){if(U.return===null||U.return===R)return;U=U.return}U.sibling.return=U.return,U=U.sibling}else if(SL)for(var M6=R.child;M6!==null;){if(M6.tag===5){var E6=M6.stateNode;U&&n&&(E6=hE6(E6,M6.type,M6.memoizedProps)),$D(k,E6)}else if(M6.tag===6)E6=M6.stateNode,U&&n&&(E6=q$6(E6,M6.memoizedProps)),$D(k,E6);else if(M6.tag!==4){if(M6.tag===22&&M6.memoizedState!==null)E6=M6.child,E6!==null&&(E6.return=M6),g_6(k,M6,!0,!0);else if(M6.child!==null){M6.child.return=M6,M6=M6.child;continue}}if(M6===R)break;for(;M6.sibling===null;){if(M6.return===null||M6.return===R)return;M6=M6.return}M6.sibling.return=M6.return,M6=M6.sibling}}function oA6(k,R,U,n){var M6=!1;if(SL)for(var E6=R.child;E6!==null;){if(E6.tag===5){var z1=E6.stateNode;U&&n&&(z1=hE6(z1,E6.type,E6.memoizedProps)),w76(k,z1)}else if(E6.tag===6)z1=E6.stateNode,U&&n&&(z1=q$6(z1,E6.memoizedProps)),w76(k,z1);else if(E6.tag!==4){if(E6.tag===22&&E6.memoizedState!==null)M6=E6.child,M6!==null&&(M6.return=E6),oA6(k,E6,!0,!0),M6=!0;else if(E6.child!==null){E6.child.return=E6,E6=E6.child;continue}}if(E6===R)break;for(;E6.sibling===null;){if(E6.return===null||E6.return===R)return M6;E6=E6.return}E6.sibling.return=E6.return,E6=E6.sibling}return M6}function TL(k,R){if(SL&&Tr(k,R)){k=R.stateNode;var U=k.containerInfo,n=SE6();oA6(n,R,!1,!1),k.pendingChildren=n,$H(R),Mt6(U,n)}}function dP(k,R,U,n){if(OD)k.memoizedProps!==n&&$H(R);else if(SL){var{stateNode:M6,memoizedProps:E6}=k;if((k=Tr(k,R))||E6!==n){var z1=tH.current;E6=RE6(M6,U,E6,n,!k,null),E6===M6?R.stateNode=M6:(YD(R),t_6(E6,U,n,z1)&&$H(R),R.stateNode=E6,k&&g_6(E6,R,!1,!1))}else R.stateNode=M6}}function zQ(k,R,U,n,M6){if((k.mode&32)!==0&&(U===null?nx1(R,n):Yt6(R,U,n))){if(k.flags|=16777216,(M6&335544128)===M6||q76(R,n))if(zt6(k.stateNode,R,n))k.flags|=8192;else if(tA6())k.flags|=8192;else throw kQ=Z$6,tW}else k.flags&=-16777217}function vr(k,R){if(Db1(R)){if(k.flags|=16777216,!yt6(R))if(tA6())k.flags|=8192;else throw kQ=Z$6,tW}else k.flags&=-16777217}function Xu(k,R){R!==null&&(k.flags|=4),k.flags&16384&&(R=k.tag!==22?f():536870912,k.lanes|=R,rr|=R)}function Vr(k,R){if(!g9)switch(k.tailMode){case"hidden":R=k.tail;for(var U=null;R!==null;)R.alternate!==null&&(U=R),R=R.sibling;U===null?k.tail=null:U.sibling=null;break;case"collapsed":U=k.tail;for(var n=null;U!==null;)U.alternate!==null&&(n=U),U=U.sibling;n===null?R||k.tail===null?k.tail=null:k.tail.sibling=null:n.sibling=null}}function dw(k){var R=k.alternate!==null&&k.alternate.child===k.child,U=0,n=0;if(R)for(var M6=k.child;M6!==null;)U|=M6.lanes|M6.childLanes,n|=M6.subtreeFlags&65011712,n|=M6.flags&65011712,M6.return=k,M6=M6.sibling;else for(M6=k.child;M6!==null;)U|=M6.lanes|M6.childLanes,n|=M6.subtreeFlags,n|=M6.flags,M6.return=k,M6=M6.sibling;return k.subtreeFlags|=n,k.childLanes=U,R}function wQ(k,R,U){var n=R.pendingProps;switch(f6(R),R.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dw(R),null;case 1:return dw(R),null;case 3:if(U=R.stateNode,n=null,k!==null&&(n=k.memoizedState.cache),R.memoizedState.cache!==n&&(R.flags|=2048),j6(h$),_6(),U.pendingContext&&(U.context=U.pendingContext,U.pendingContext=null),k===null||k.child===null)T6(R)?$H(R):k===null||k.memoizedState.isDehydrated&&(R.flags&256)===0||(R.flags|=1024,r());return TL(k,R),dw(R),null;case 26:if(nT){var{type:M6,memoizedState:E6}=R;return k===null?($H(R),E6!==null?(dw(R),vr(R,E6)):(dw(R),zQ(R,M6,null,n,U))):E6?E6!==k.memoizedState?($H(R),dw(R),vr(R,E6)):(dw(R),R.flags&=-16777217):(E6=k.memoizedProps,OD?E6!==n&&$H(R):dP(k,R,M6,n),dw(R),zQ(R,M6,E6,n,U)),null}case 27:if(HH){if(y6(R),U=JD.current,M6=R.type,k!==null&&R.stateNode!=null)OD?k.memoizedProps!==n&&$H(R):dP(k,R,M6,n);else{if(!n){if(R.stateNode===null)throw Error(Y(166));return dw(R),null}k=tH.current,T6(R)?z6(R,k):(k=j$6(M6,n,U,k,!0),R.stateNode=k,$H(R))}return dw(R),null}case 5:if(y6(R),M6=R.type,k!==null&&R.stateNode!=null)dP(k,R,M6,n);else{if(!n){if(R.stateNode===null)throw Error(Y(166));return dw(R),null}if(E6=tH.current,T6(R))z6(R,E6),jb1(R.stateNode,M6,n,E6)&&(R.flags|=64);else{var z1=At6(M6,n,JD.current,E6,R);YD(R),g_6(z1,R,!1,!1),R.stateNode=z1,t_6(z1,M6,n,E6)&&$H(R)}}return dw(R),zQ(R,R.type,k===null?null:k.memoizedProps,R.pendingProps,U),null;case 6:if(k&&R.stateNode!=null)U=k.memoizedProps,OD?U!==n&&$H(R):SL&&(U!==n?(k=JD.current,U=tH.current,YD(R),R.stateNode=qt6(n,k,U,R)):R.stateNode=k.stateNode);else{if(typeof n!=="string"&&R.stateNode===null)throw Error(Y(166));if(k=JD.current,U=tH.current,T6(R)){if(!jX)throw Error(Y(176));if(k=R.stateNode,U=R.memoizedProps,n=null,M6=MD,M6!==null)switch(M6.tag){case 27:case 5:n=M6.memoizedProps}Ob1(k,U,R,n)||V6(R,!0)}else YD(R),R.stateNode=qt6(n,k,U,R)}return dw(R),null;case 31:if(U=R.memoizedState,k===null||k.memoizedState!==null){if(n=T6(R),U!==null){if(k===null){if(!n)throw Error(Y(318));if(!jX)throw Error(Y(556));if(k=R.memoizedState,k=k!==null?k.dehydrated:null,!k)throw Error(Y(557));Y$6(k,R)}else Y6(),(R.flags&128)===0&&(R.memoizedState=null),R.flags|=4;dw(R),k=!1}else U=r(),k!==null&&k.memoizedState!==null&&(k.memoizedState.hydrationErrors=U),k=!0;if(!k){if(R.flags&256)return Q3(R),R;return Q3(R),null}if((R.flags&128)!==0)throw Error(Y(558))}return dw(R),null;case 13:if(n=R.memoizedState,k===null||k.memoizedState!==null&&k.memoizedState.dehydrated!==null){if(M6=T6(R),n!==null&&n.dehydrated!==null){if(k===null){if(!M6)throw Error(Y(318));if(!jX)throw Error(Y(344));if(M6=R.memoizedState,M6=M6!==null?M6.dehydrated:null,!M6)throw Error(Y(317));ur(M6,R)}else Y6(),(R.flags&128)===0&&(R.memoizedState=null),R.flags|=4;dw(R),M6=!1}else M6=r(),k!==null&&k.memoizedState!==null&&(k.memoizedState.hydrationErrors=M6),M6=!0;if(!M6){if(R.flags&256)return Q3(R),R;return Q3(R),null}}if(Q3(R),(R.flags&128)!==0)return R.lanes=U,R;return U=n!==null,k=k!==null&&k.memoizedState!==null,U&&(n=R.child,M6=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(M6=n.alternate.memoizedState.cachePool.pool),E6=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(E6=n.memoizedState.cachePool.pool),E6!==M6&&(n.flags|=2048)),U!==k&&U&&(R.child.flags|=8192),Xu(R,R.updateQueue),dw(R),null;case 4:return _6(),TL(k,R),k===null&&cx1(R.stateNode.containerInfo),dw(R),null;case 10:return j6(R.type),dw(R),null;case 19:if(M(jH),n=R.memoizedState,n===null)return dw(R),null;if(M6=(R.flags&128)!==0,E6=n.rendering,E6===null)if(M6)Vr(n,!1);else{if(WO!==0||k!==null&&(k.flags&128)!==0)for(k=R.child;k!==null;){if(E6=l5(k),E6!==null){R.flags|=128,Vr(n,!1),k=E6.updateQueue,R.updateQueue=k,Xu(R,k),R.subtreeFlags=0,k=U;for(U=R.child;U!==null;)ns6(U,k),U=U.sibling;return D(jH,jH.current&1|2),g9&&e(R,n.treeForkCount),R.child}k=k.sibling}n.tail!==null&&sW()>Z76&&(R.flags|=128,M6=!0,Vr(n,!1),R.lanes=4194304)}else{if(!M6)if(k=l5(E6),k!==null){if(R.flags|=128,M6=!0,k=k.updateQueue,R.updateQueue=k,Xu(R,k),Vr(n,!0),n.tail===null&&n.tailMode==="hidden"&&!E6.alternate&&!g9)return dw(R),null}else 2*sW()-n.renderingStartTime>Z76&&U!==536870912&&(R.flags|=128,M6=!0,Vr(n,!1),R.lanes=4194304);n.isBackwards?(E6.sibling=R.child,R.child=E6):(k=n.last,k!==null?k.sibling=E6:R.child=E6,n.last=E6)}if(n.tail!==null)return k=n.tail,n.rendering=k,n.tail=k.sibling,n.renderingStartTime=sW(),k.sibling=null,U=jH.current,D(jH,M6?U&1|2:U&1),g9&&e(R,n.treeForkCount),k;return dw(R),null;case 22:case 23:return Q3(R),Xw(),n=R.memoizedState!==null,k!==null?k.memoizedState!==null!==n&&(R.flags|=8192):n&&(R.flags|=8192),n?(U&536870912)!==0&&(R.flags&128)===0&&(dw(R),R.subtreeFlags&6&&(R.flags|=8192)):dw(R),U=R.updateQueue,U!==null&&Xu(R,U.retryQueue),U=null,k!==null&&k.memoizedState!==null&&k.memoizedState.cachePool!==null&&(U=k.memoizedState.cachePool.pool),n=null,R.memoizedState!==null&&R.memoizedState.cachePool!==null&&(n=R.memoizedState.cachePool.pool),n!==U&&(R.flags|=2048),k!==null&&M(NQ),null;case 24:return U=null,k!==null&&(U=k.memoizedState.cache),R.memoizedState.cache!==U&&(R.flags|=2048),j6(h$),dw(R),null;case 25:return null;case 30:return null}throw Error(Y(156,R.tag))}function rW(k,R){switch(f6(R),R.tag){case 1:return k=R.flags,k&65536?(R.flags=k&-65537|128,R):null;case 3:return j6(h$),_6(),k=R.flags,(k&65536)!==0&&(k&128)===0?(R.flags=k&-65537|128,R):null;case 26:case 27:case 5:return y6(R),null;case 31:if(R.memoizedState!==null){if(Q3(R),R.alternate===null)throw Error(Y(340));Y6()}return k=R.flags,k&65536?(R.flags=k&-65537|128,R):null;case 13:if(Q3(R),k=R.memoizedState,k!==null&&k.dehydrated!==null){if(R.alternate===null)throw Error(Y(340));Y6()}return k=R.flags,k&65536?(R.flags=k&-65537|128,R):null;case 19:return M(jH),null;case 4:return _6(),null;case 10:return j6(R.type),null;case 22:case 23:return Q3(R),Xw(),k!==null&&M(NQ),k=R.flags,k&65536?(R.flags=k&-65537|128,R):null;case 24:return j6(h$),null;case 25:return null;default:return null}}function $8(k,R){switch(f6(R),R.tag){case 3:j6(h$),_6();break;case 26:case 27:case 5:y6(R);break;case 4:_6();break;case 31:R.memoizedState!==null&&Q3(R);break;case 13:Q3(R);break;case 19:M(jH);break;case 10:j6(R.type);break;case 22:case 23:Q3(R),Xw(),k!==null&&M(NQ);break;case 24:j6(h$)}}function AA(k,R){try{var U=R.updateQueue,n=U!==null?U.lastEffect:null;if(n!==null){var M6=n.next;U=M6;do{if((U.tag&k)===k){n=void 0;var{create:E6,inst:z1}=U;n=E6(),z1.destroy=n}U=U.next}while(U!==M6)}}catch(Q1){j3(R,R.return,Q1)}}function F8(k,R,U){try{var n=R.updateQueue,M6=n!==null?n.lastEffect:null;if(M6!==null){var E6=M6.next;n=E6;do{if((n.tag&k)===k){var z1=n.inst,Q1=z1.destroy;if(Q1!==void 0){z1.destroy=void 0,M6=R;var r8=U,mA=Q1;try{mA()}catch(Q7){j3(M6,r8,Q7)}}}n=n.next}while(n!==E6)}}catch(Q7){j3(R,R.return,Q7)}}function Y4(k){var R=k.updateQueue;if(R!==null){var U=k.stateNode;try{F3(R,U)}catch(n){j3(k,k.return,n)}}}function bK(k,R,U){U.props=hz(k.type,k.memoizedProps),U.state=k.memoizedState;try{U.componentWillUnmount()}catch(n){j3(k,R,n)}}function _9(k,R){try{var U=k.ref;if(U!==null){switch(k.tag){case 26:case 27:case 5:var n=xr(k.stateNode);break;case 30:n=k.stateNode;break;default:n=k.stateNode}typeof U==="function"?k.refCleanup=U(n):U.current=n}}catch(M6){j3(k,R,M6)}}function pY(k,R){var{ref:U,refCleanup:n}=k;if(U!==null)if(typeof n==="function")try{n()}catch(M6){j3(k,R,M6)}finally{k.refCleanup=null,k=k.alternate,k!=null&&(k.refCleanup=null)}else if(typeof U==="function")try{U(null)}catch(M6){j3(k,R,M6)}else U.current=null}function OY(k){var{type:R,memoizedProps:U,stateNode:n}=k;try{Y76(n,R,U,k)}catch(M6){j3(k,k.return,M6)}}function Bh(k,R,U){try{Ht6(k.stateNode,k.type,U,R,k)}catch(n){j3(k,k.return,n)}}function Nr(k){return k.tag===5||k.tag===3||(nT?k.tag===26:!1)||(HH?k.tag===27&&hq(k.type):!1)||k.tag===4}function zD(k){A:for(;;){for(;k.sibling===null;){if(k.return===null||Nr(k.return))return null;k=k.return}k.sibling.return=k.return;for(k=k.sibling;k.tag!==5&&k.tag!==6&&k.tag!==18;){if(HH&&k.tag===27&&hq(k.type))continue A;if(k.flags&2)continue A;if(k.child===null||k.tag===4)continue A;else k.child.return=k,k=k.child}if(!(k.flags&2))return k.stateNode}}function vL(k,R,U){var n=k.tag;if(n===5||n===6)k=k.stateNode,R?Ab1(U,k,R):sx1(U,k);else if(n!==4&&(HH&&n===27&&hq(k.type)&&(U=k.stateNode,R=null),k=k.child,k!==null))for(vL(k,R,U),k=k.sibling;k!==null;)vL(k,R,U),k=k.sibling}function _Q(k,R,U){var n=k.tag;if(n===5||n===6)k=k.stateNode,R?ex1(U,k,R):C5(U,k);else if(n!==4&&(HH&&n===27&&hq(k.type)&&(U=k.stateNode),k=k.child,k!==null))for(_Q(k,R,U),k=k.sibling;k!==null;)_Q(k,R,U),k=k.sibling}function VL(k,R,U){k=k.containerInfo;try{A$6(k,U)}catch(n){j3(R,R.return,n)}}function Pu(k){var{stateNode:R,memoizedProps:U}=k;try{bE6(k.type,U,R,k)}catch(n){j3(k,k.return,n)}}function kr(k,R){s_6(k.containerInfo);for(aJ=R;aJ!==null;)if(k=aJ,R=k.child,(k.subtreeFlags&1028)!==0&&R!==null)R.return=k,aJ=R;else for(;aJ!==null;){k=aJ;var U=k.alternate;switch(R=k.flags,k.tag){case 0:if((R&4)!==0&&(R=k.updateQueue,R=R!==null?R.events:null,R!==null))for(var n=0;n<R.length;n++){var M6=R[n];M6.ref.impl=M6.nextImpl}break;case 11:case 15:break;case 1:if((R&1024)!==0&&U!==null){R=void 0,n=k,M6=U.memoizedProps,U=U.memoizedState;var E6=n.stateNode;try{var z1=hz(n.type,M6);R=E6.getSnapshotBeforeUpdate(z1,U),E6.__reactInternalSnapshotBeforeUpdate=R}catch(Q1){j3(n,n.return,Q1)}}break;case 3:(R&1024)!==0&&OD&&yu(k.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((R&1024)!==0)throw Error(Y(163))}if(R=k.sibling,R!==null){R.return=k.return,aJ=R;break}aJ=k.return}}function oq(k,R,U){var n=U.flags;switch(U.tag){case 0:case 11:case 15:CZ(k,U),n&4&&AA(5,U);break;case 1:if(CZ(k,U),n&4)if(k=U.stateNode,R===null)try{k.componentDidMount()}catch(z1){j3(U,U.return,z1)}else{var M6=hz(U.type,R.memoizedProps);R=R.memoizedState;try{k.componentDidUpdate(M6,R,k.__reactInternalSnapshotBeforeUpdate)}catch(z1){j3(U,U.return,z1)}}n&64&&Y4(U),n&512&&_9(U,U.return);break;case 3:if(CZ(k,U),n&64&&(n=U.updateQueue,n!==null)){if(k=null,U.child!==null)switch(U.child.tag){case 27:case 5:k=xr(U.child.stateNode);break;case 1:k=U.child.stateNode}try{F3(n,k)}catch(z1){j3(U,U.return,z1)}}break;case 27:HH&&R===null&&n&4&&Pu(U);case 26:case 5:if(CZ(k,U),R===null){if(n&4)OY(U);else if(n&64){k=U.type,R=U.memoizedProps,M6=U.stateNode;try{Hb1(M6,k,R,U)}catch(z1){j3(U,U.return,z1)}}}n&512&&_9(U,U.return);break;case 12:CZ(k,U);break;case 31:CZ(k,U),n&4&&aA6(k,U);break;case 13:CZ(k,U),n&4&&F_6(k,U),n&64&&(n=U.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(U=ls6.bind(null,U),Ru(n,U))));break;case 22:if(n=U.memoizedState!==null||oh,!n){R=R!==null&&R.memoizedState!==null||qj,M6=oh;var E6=qj;oh=n,(qj=R)&&!E6?PO(k,U,(U.subtreeFlags&8772)!==0):CZ(k,U),oh=M6,qj=E6}break;case 30:break;default:CZ(k,U)}}function p_6(k){var R=k.alternate;R!==null&&(k.alternate=null,p_6(R)),k.child=null,k.deletions=null,k.sibling=null,k.tag===5&&(R=k.stateNode,R!==null&&ix1(R)),k.stateNode=null,k.return=null,k.dependencies=null,k.memoizedProps=null,k.memoizedState=null,k.pendingProps=null,k.stateNode=null,k.updateQueue=null}function cP(k,R,U){for(U=U.child;U!==null;)gh(k,R,U),U=U.sibling}function gh(k,R,U){if(BZ&&typeof BZ.onCommitFiberUnmount==="function")try{BZ.onCommitFiberUnmount(J76,U)}catch(E6){}switch(U.tag){case 26:if(nT){qj||pY(U,R),cP(k,R,U),U.memoizedState?CE6(U.memoizedState):U.stateNode&&xE6(U.stateNode);break}case 27:if(HH){qj||pY(U,R);var n=C$,M6=eW;hq(U.type)&&(C$=U.stateNode,eW=!1),cP(k,R,U),H76(U.stateNode),C$=n,eW=M6;break}case 5:qj||pY(U,R);case 6:if(OD){if(n=C$,M6=eW,C$=null,cP(k,R,U),C$=n,eW=M6,C$!==null)if(eW)try{qb1(C$,U.stateNode)}catch(E6){j3(U,R,E6)}else try{iT(C$,U.stateNode)}catch(E6){j3(U,R,E6)}}else cP(k,R,U);break;case 18:OD&&C$!==null&&(eW?z$6(C$,U.stateNode):Nt6(C$,U.stateNode));break;case 4:OD?(n=C$,M6=eW,C$=U.stateNode.containerInfo,eW=!0,cP(k,R,U),C$=n,eW=M6):(SL&&VL(U.stateNode,U,SE6()),cP(k,R,U));break;case 0:case 11:case 14:case 15:F8(2,U,R),qj||F8(4,U,R),cP(k,R,U);break;case 1:qj||(pY(U,R),n=U.stateNode,typeof n.componentWillUnmount==="function"&&bK(U,R,n)),cP(k,R,U);break;case 21:cP(k,R,U);break;case 22:qj=(n=qj)||U.memoizedState!==null,cP(k,R,U),qj=n;break;default:cP(k,R,U)}}function aA6(k,R){if(jX&&R.memoizedState===null&&(k=R.alternate,k!==null&&(k=k.memoizedState,k!==null))){k=k.dehydrated;try{mr(k)}catch(U){j3(R,R.return,U)}}}function F_6(k,R){if(jX&&R.memoizedState===null&&(k=R.alternate,k!==null&&(k=k.memoizedState,k!==null&&(k=k.dehydrated,k!==null))))try{$76(k)}catch(U){j3(R,R.return,U)}}function Er(k){switch(k.tag){case 31:case 13:case 19:var R=k.stateNode;return R===null&&(R=k.stateNode=new sE6),R;case 22:return k=k.stateNode,R=k._retryCache,R===null&&(R=k._retryCache=new sE6),R;default:throw Error(Y(435,k.tag))}}function HX(k,R){var U=Er(k);R.forEach(function(n){if(!U.has(n)){U.add(n);var M6=is6.bind(null,k,n);n.then(M6,M6)}})}function e2(k,R){var U=R.deletions;if(U!==null)for(var n=0;n<U.length;n++){var M6=U[n],E6=k,z1=R;if(OD){var Q1=z1;A:for(;Q1!==null;){switch(Q1.tag){case 27:if(HH){if(hq(Q1.type)){C$=Q1.stateNode,eW=!1;break A}break}case 5:C$=Q1.stateNode,eW=!1;break A;case 3:case 4:C$=Q1.stateNode.containerInfo,eW=!0;break A}Q1=Q1.return}if(C$===null)throw Error(Y(160));gh(E6,z1,M6),C$=null,eW=!1}else gh(E6,z1,M6);E6=M6.alternate,E6!==null&&(E6.return=null),M6.return=null}if(R.subtreeFlags&13886)for(R=R.child;R!==null;)lJ(R,k),R=R.sibling}function lJ(k,R){var{alternate:U,flags:n}=k;switch(k.tag){case 0:case 11:case 14:case 15:e2(R,k),iJ(k),n&4&&(F8(3,k,k.return),AA(3,k),F8(5,k,k.return));break;case 1:e2(R,k),iJ(k),n&512&&(qj||U===null||pY(U,U.return)),n&64&&oh&&(k=k.updateQueue,k!==null&&(n=k.callbacks,n!==null&&(U=k.shared.hiddenCallbacks,k.shared.hiddenCallbacks=U===null?n:U.concat(n))));break;case 26:if(nT){var M6=CN;if(e2(R,k),iJ(k),n&512&&(qj||U===null||pY(U,U.return)),n&4){n=U!==null?U.memoizedState:null;var E6=k.memoizedState;U===null?E6===null?k.stateNode===null?k.stateNode=ch(M6,k.type,k.memoizedProps,k):IE6(M6,k.type,k.stateNode):k.stateNode=Et6(M6,E6,k.memoizedProps):n!==E6?(n===null?U.stateNode!==null&&xE6(U.stateNode):CE6(n),E6===null?IE6(M6,k.type,k.stateNode):Et6(M6,E6,k.memoizedProps)):E6===null&&k.stateNode!==null&&Bh(k,k.memoizedProps,U.memoizedProps)}break}case 27:if(HH){e2(R,k),iJ(k),n&512&&(qj||U===null||pY(U,U.return)),U!==null&&n&4&&Bh(k,k.memoizedProps,U.memoizedProps);break}case 5:if(e2(R,k),iJ(k),n&512&&(qj||U===null||pY(U,U.return)),OD){if(k.flags&32){M6=k.stateNode;try{z76(M6)}catch(T7){j3(k,k.return,T7)}}n&4&&k.stateNode!=null&&(M6=k.memoizedProps,Bh(k,M6,U!==null?U.memoizedProps:M6)),n&1024&&(aE6=!0)}else SL&&k.alternate!==null&&(k.alternate.stateNode=k.stateNode);break;case 6:if(e2(R,k),iJ(k),n&4&&OD){if(k.stateNode===null)throw Error(Y(162));n=k.memoizedProps,U=U!==null?U.memoizedProps:n,M6=k.stateNode;try{tx1(M6,U,n)}catch(T7){j3(k,k.return,T7)}}break;case 3:if(nT?(Lt6(),M6=CN,CN=O$6(R.containerInfo),e2(R,k),CN=M6):e2(R,k),iJ(k),n&4){if(OD&&jX&&U!==null&&U.memoizedState.isDehydrated)try{vt6(R.containerInfo)}catch(T7){j3(k,k.return,T7)}if(SL){n=R.containerInfo,U=R.pendingChildren;try{A$6(n,U)}catch(T7){j3(k,k.return,T7)}}}aE6&&(aE6=!1,$Q(k));break;case 4:nT?(U=CN,CN=O$6(k.stateNode.containerInfo),e2(R,k),iJ(k),CN=U):(e2(R,k),iJ(k)),n&4&&SL&&VL(k.stateNode,k,k.stateNode.pendingChildren);break;case 12:e2(R,k),iJ(k);break;case 31:e2(R,k),iJ(k),n&4&&(n=k.updateQueue,n!==null&&(k.updateQueue=null,HX(k,n)));break;case 13:e2(R,k),iJ(k),k.child.flags&8192&&k.memoizedState!==null!==(U!==null&&U.memoizedState!==null)&&(S$6=sW()),n&4&&(n=k.updateQueue,n!==null&&(k.updateQueue=null,HX(k,n)));break;case 22:M6=k.memoizedState!==null;var z1=U!==null&&U.memoizedState!==null,Q1=oh,r8=qj;if(oh=Q1||M6,qj=r8||z1,e2(R,k),qj=r8,oh=Q1,iJ(k),n&8192&&(R=k.stateNode,R._visibility=M6?R._visibility&-2:R._visibility|1,M6&&(U===null||z1||oh||qj||LN(k)),OD))A:if(U=null,OD)for(R=k;;){if(R.tag===5||nT&&R.tag===26){if(U===null){z1=U=R;try{E6=z1.stateNode,M6?yE6(E6):Jt6(z1.stateNode,z1.memoizedProps)}catch(T7){j3(z1,z1.return,T7)}}}else if(R.tag===6){if(U===null){z1=R;try{var mA=z1.stateNode;M6?jt6(mA):uZ(mA,z1.memoizedProps)}catch(T7){j3(z1,z1.return,T7)}}}else if(R.tag===18){if(U===null){z1=R;try{var Q7=z1.stateNode;M6?kt6(Q7):w$6(z1.stateNode)}catch(T7){j3(z1,z1.return,T7)}}}else if((R.tag!==22&&R.tag!==23||R.memoizedState===null||R===k)&&R.child!==null){R.child.return=R,R=R.child;continue}if(R===k)break A;for(;R.sibling===null;){if(R.return===null||R.return===k)break A;U===R&&(U=null),R=R.return}U===R&&(U=null),R.sibling.return=R.return,R=R.sibling}n&4&&(n=k.updateQueue,n!==null&&(U=n.retryQueue,U!==null&&(n.retryQueue=null,HX(k,U))));break;case 19:e2(R,k),iJ(k),n&4&&(n=k.updateQueue,n!==null&&(k.updateQueue=null,HX(k,n)));break;case 30:break;case 21:break;default:e2(R,k),iJ(k)}}function iJ(k){var R=k.flags;if(R&2){try{for(var U,n=k.return;n!==null;){if(Nr(n)){U=n;break}n=n.return}if(OD){if(U==null)throw Error(Y(160));switch(U.tag){case 27:if(HH){var M6=U.stateNode,E6=zD(k);_Q(k,E6,M6);break}case 5:var z1=U.stateNode;U.flags&32&&(z76(z1),U.flags&=-33);var Q1=zD(k);_Q(k,Q1,z1);break;case 3:case 4:var r8=U.stateNode.containerInfo,mA=zD(k);vL(k,mA,r8);break;default:throw Error(Y(161))}}}catch(Q7){j3(k,k.return,Q7)}k.flags&=-3}R&4096&&(k.flags&=-4097)}function $Q(k){if(k.subtreeFlags&1024)for(k=k.child;k!==null;){var R=k;$Q(R),R.tag===5&&R.flags&1024&&rx1(R.stateNode),k=k.sibling}}function CZ(k,R){if(R.subtreeFlags&8772)for(R=R.child;R!==null;)oq(k,R.alternate,R),R=R.sibling}function LN(k){for(k=k.child;k!==null;){var R=k;switch(R.tag){case 0:case 11:case 14:case 15:F8(4,R,R.return),LN(R);break;case 1:pY(R,R.return);var U=R.stateNode;typeof U.componentWillUnmount==="function"&&bK(R,R.return,U),LN(R);break;case 27:HH&&H76(R.stateNode);case 26:case 5:pY(R,R.return),LN(R);break;case 22:R.memoizedState===null&&LN(R);break;case 30:LN(R);break;default:LN(R)}k=k.sibling}}function PO(k,R,U){U=U&&(R.subtreeFlags&8772)!==0;for(R=R.child;R!==null;){var n=R.alternate,M6=k,E6=R,z1=E6.flags;switch(E6.tag){case 0:case 11:case 15:PO(M6,E6,U),AA(4,E6);break;case 1:if(PO(M6,E6,U),n=E6,M6=n.stateNode,typeof M6.componentDidMount==="function")try{M6.componentDidMount()}catch(mA){j3(n,n.return,mA)}if(n=E6,M6=n.updateQueue,M6!==null){var Q1=n.stateNode;try{var r8=M6.shared.hiddenCallbacks;if(r8!==null)for(M6.shared.hiddenCallbacks=null,M6=0;M6<r8.length;M6++)sz(r8[M6],Q1)}catch(mA){j3(n,n.return,mA)}}U&&z1&64&&Y4(E6),_9(E6,E6.return);break;case 27:HH&&Pu(E6);case 26:case 5:PO(M6,E6,U),U&&n===null&&z1&4&&OY(E6),_9(E6,E6.return);break;case 12:PO(M6,E6,U);break;case 31:PO(M6,E6,U),U&&z1&4&&aA6(M6,E6);break;case 13:PO(M6,E6,U),U&&z1&4&&F_6(M6,E6);break;case 22:E6.memoizedState===null&&PO(M6,E6,U),_9(E6,E6.return);break;case 30:break;default:PO(M6,E6,U)}R=R.sibling}}function Wu(k,R){var U=null;k!==null&&k.memoizedState!==null&&k.memoizedState.cachePool!==null&&(U=k.memoizedState.cachePool.pool),k=null,R.memoizedState!==null&&R.memoizedState.cachePool!==null&&(k=R.memoizedState.cachePool.pool),k!==U&&(k!=null&&k.refCount++,U!=null&&m6(U))}function nJ(k,R){k=null,R.alternate!==null&&(k=R.alternate.memoizedState.cache),R=R.memoizedState.cache,R!==k&&(R.refCount++,k!=null&&m6(k))}function Uj(k,R,U,n){if(R.subtreeFlags&10256)for(R=R.child;R!==null;)OQ(k,R,U,n),R=R.sibling}function OQ(k,R,U,n){var M6=R.flags;switch(R.tag){case 0:case 11:case 15:Uj(k,R,U,n),M6&2048&&AA(9,R);break;case 1:Uj(k,R,U,n);break;case 3:Uj(k,R,U,n),M6&2048&&(k=null,R.alternate!==null&&(k=R.alternate.memoizedState.cache),R=R.memoizedState.cache,R!==k&&(R.refCount++,k!=null&&m6(k)));break;case 12:if(M6&2048){Uj(k,R,U,n),k=R.stateNode;try{var E6=R.memoizedProps,z1=E6.id,Q1=E6.onPostCommit;typeof Q1==="function"&&Q1(z1,R.alternate===null?"mount":"update",k.passiveEffectDuration,-0)}catch(r8){j3(R,R.return,r8)}}else Uj(k,R,U,n);break;case 31:Uj(k,R,U,n);break;case 13:Uj(k,R,U,n);break;case 23:break;case 22:E6=R.stateNode,z1=R.alternate,R.memoizedState!==null?E6._visibility&2?Uj(k,R,U,n):Zu(k,R):E6._visibility&2?Uj(k,R,U,n):(E6._visibility|=2,Gu(k,R,U,n,(R.subtreeFlags&10256)!==0||!1)),M6&2048&&Wu(z1,R);break;case 24:Uj(k,R,U,n),M6&2048&&nJ(R.alternate,R);break;default:Uj(k,R,U,n)}}function Gu(k,R,U,n,M6){M6=M6&&((R.subtreeFlags&10256)!==0||!1);for(R=R.child;R!==null;){var E6=k,z1=R,Q1=U,r8=n,mA=z1.flags;switch(z1.tag){case 0:case 11:case 15:Gu(E6,z1,Q1,r8,M6),AA(8,z1);break;case 23:break;case 22:var Q7=z1.stateNode;z1.memoizedState!==null?Q7._visibility&2?Gu(E6,z1,Q1,r8,M6):Zu(E6,z1):(Q7._visibility|=2,Gu(E6,z1,Q1,r8,M6)),M6&&mA&2048&&Wu(z1.alternate,z1);break;case 24:Gu(E6,z1,Q1,r8,M6),M6&&mA&2048&&nJ(z1.alternate,z1);break;default:Gu(E6,z1,Q1,r8,M6)}R=R.sibling}}function Zu(k,R){if(R.subtreeFlags&10256)for(R=R.child;R!==null;){var U=k,n=R,M6=n.flags;switch(n.tag){case 22:Zu(U,n),M6&2048&&Wu(n.alternate,n);break;case 24:Zu(U,n),M6&2048&&nJ(n.alternate,n);break;default:Zu(U,n)}R=R.sibling}}function NL(k,R,U){if(k.subtreeFlags&ir)for(k=k.child;k!==null;)fu(k,R,U),k=k.sibling}function fu(k,R,U){switch(k.tag){case 26:if(NL(k,R,U),k.flags&ir)if(k.memoizedState!==null)lh(U,CN,k.memoizedState,k.memoizedProps);else{var{stateNode:n,type:M6}=k;k=k.memoizedProps,((R&335544128)===R||q76(M6,k))&&NE6(U,n,M6,k)}break;case 5:NL(k,R,U),k.flags&ir&&(n=k.stateNode,M6=k.type,k=k.memoizedProps,((R&335544128)===R||q76(M6,k))&&NE6(U,n,M6,k));break;case 3:case 4:nT?(n=CN,CN=O$6(k.stateNode.containerInfo),NL(k,R,U),CN=n):NL(k,R,U);break;case 22:k.memoizedState===null&&(n=k.alternate,n!==null&&n.memoizedState!==null?(n=ir,ir=16777216,NL(k,R,U),ir=n):NL(k,R,U));break;default:NL(k,R,U)}}function HQ(k){var R=k.alternate;if(R!==null&&(k=R.child,k!==null)){R.child=null;do R=k.sibling,k.sibling=null,k=R;while(k!==null)}}function ph(k){var R=k.deletions;if((k.flags&16)!==0){if(R!==null)for(var U=0;U<R.length;U++){var n=R[U];aJ=n,Lr(n,k)}HQ(k)}if(k.subtreeFlags&10256)for(k=k.child;k!==null;)Q_6(k),k=k.sibling}function Q_6(k){switch(k.tag){case 0:case 11:case 15:ph(k),k.flags&2048&&F8(9,k,k.return);break;case 3:ph(k);break;case 12:ph(k);break;case 22:var R=k.stateNode;k.memoizedState!==null&&R._visibility&2&&(k.return===null||k.return.tag!==13)?(R._visibility&=-3,jQ(k)):ph(k);break;default:ph(k)}}function jQ(k){var R=k.deletions;if((k.flags&16)!==0){if(R!==null)for(var U=0;U<R.length;U++){var n=R[U];aJ=n,Lr(n,k)}HQ(k)}for(k=k.child;k!==null;){switch(R=k,R.tag){case 0:case 11:case 15:F8(8,R,R.return),jQ(R);break;case 22:U=R.stateNode,U._visibility&2&&(U._visibility&=-3,jQ(R));break;default:jQ(R)}k=k.sibling}}function Lr(k,R){for(;aJ!==null;){var U=aJ;switch(U.tag){case 0:case 11:case 15:F8(8,U,R);break;case 23:case 22:if(U.memoizedState!==null&&U.memoizedState.cachePool!==null){var n=U.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:m6(U.memoizedState.cache)}if(n=U.child,n!==null)n.return=U,aJ=n;else A:for(U=k;aJ!==null;){n=aJ;var{sibling:M6,return:E6}=n;if(p_6(n),n===U){aJ=null;break A}if(M6!==null){M6.return=E6,aJ=M6;break A}aJ=E6}}}function U_6(k){var R=A76(k);if(R!=null){if(typeof R.memoizedProps["data-testname"]!=="string")throw Error(Y(364));return R}if(k=Ot6(k),k===null)throw Error(Y(362));return k.stateNode.current}function S$(k,R){var U=k.tag;switch(R.$$typeof){case k$6:if(k.type===R.value)return!0;break;case E$6:A:{R=R.value,k=[k,0];for(U=0;U<k.length;){var n=k[U++],M6=n.tag,E6=k[U++],z1=R[E6];if(M6!==5&&M6!==26&&M6!==27||!br(n)){for(;z1!=null&&S$(n,z1);)E6++,z1=R[E6];if(E6===R.length){R=!0;break A}else for(n=n.child;n!==null;)k.push(n,E6),n=n.sibling}}R=!1}return R;case L$6:if((U===5||U===26||U===27)&&EE6(k.stateNode,R.value))return!0;break;case R$6:if(U===5||U===6||U===26||U===27){if(k=kE6(k),k!==null&&0<=k.indexOf(R.value))return!0}break;case y$6:if(U===5||U===26||U===27){if(k=k.memoizedProps["data-testname"],typeof k==="string"&&k.toLowerCase()===R.value.toLowerCase())return!0}break;default:throw Error(Y(365))}return!1}function OH(k){switch(k.$$typeof){case k$6:return"<"+(j(k.value)||"Unknown")+">";case E$6:return":has("+(OH(k)||"")+")";case L$6:return'[role="'+k.value+'"]';case R$6:return'"'+k.value+'"';case y$6:return'[data-testname="'+k.value+'"]';default:throw Error(Y(365))}}function sA6(k,R){var U=[];k=[k,0];for(var n=0;n<k.length;){var M6=k[n++],E6=M6.tag,z1=k[n++],Q1=R[z1];if(E6!==5&&E6!==26&&E6!==27||!br(M6)){for(;Q1!=null&&S$(M6,Q1);)z1++,Q1=R[z1];if(z1===R.length)U.push(M6);else for(M6=M6.child;M6!==null;)k.push(M6,z1),M6=M6.sibling}}return U}function Fh(k,R){if(!K76)throw Error(Y(363));k=U_6(k),k=sA6(k,R),R=[],k=Array.from(k);for(var U=0;U<k.length;){var n=k[U++],M6=n.tag;if(M6===5||M6===26||M6===27)br(n)||R.push(n.stateNode);else for(n=n.child;n!==null;)k.push(n),n=n.sibling}return R}function sH(){return(H9&2)!==0&&N9!==0?N9&-N9:MK.T!==null?G6():Kt6()}function d_6(){if(FZ===0)if((N9&536870912)===0||g9){var k=J$6;J$6<<=1,(J$6&3932160)===0&&(J$6=262144),FZ=k}else FZ=536870912;return k=pZ.current,k!==null&&(k.flags|=32),FZ}function rJ(k,R,U){if(k===lw&&(tz===2||tz===9)||k.cancelPendingCommit!==null)iP(k,0),lP(k,N9,FZ,!1);if(V(k,U),(H9&2)===0||k!==lw)k===lw&&((H9&2)===0&&(RQ|=U),WO===4&&lP(k,N9,FZ,!1)),A1(k)}function Tu(k,R,U){if((H9&6)!==0)throw Error(Y(327));var n=!U&&(R&127)===0&&(R&k.expiredLanes)===0||G(k,R),M6=n?YA(k,R):V1(k,R,!0),E6=n;do{if(M6===0){nr&&!n&&lP(k,R,0,!1);break}else{if(U=k.current.alternate,E6&&!vu(U)){M6=V1(k,R,!1),E6=!1;continue}if(M6===2){if(E6=R,k.errorRecoveryDisabledLanes&E6)var z1=0;else z1=k.pendingLanes&-536870913,z1=z1!==0?z1:z1&536870912?536870912:0;if(z1!==0){R=z1;A:{var Q1=k;M6=G76;var r8=jX&&Q1.current.memoizedState.isDehydrated;if(r8&&(iP(Q1,z1).flags|=256),z1=V1(Q1,z1,!1),z1!==2){if(tE6&&!r8){Q1.errorRecoveryDisabledLanes|=E6,RQ|=E6,M6=4;break A}E6=qG,qG=M6,E6!==null&&(qG===null?qG=E6:qG.push.apply(qG,E6))}M6=z1}if(E6=!1,M6!==2)continue}}if(M6===1){iP(k,0),lP(k,R,0,!0);break}A:{switch(n=k,E6=M6,E6){case 0:case 1:throw Error(Y(345));case 4:if((R&4194048)!==R)break;case 6:lP(n,R,FZ,!ah);break A;case 2:qG=null;break;case 3:case 5:break;default:throw Error(Y(329))}if((R&62914560)===R&&(M6=S$6+300-sW(),10<M6)){if(lP(n,R,FZ,!ah),W(n,0,!0)!==0)break A;bN=R,n.timeoutHandle=dx1(yr.bind(null,n,U,qG,h$6,AL6,R,FZ,RQ,rr,ah,E6,"Throttled",-0,0),M6);break A}yr(n,U,qG,h$6,AL6,R,FZ,RQ,rr,ah,E6,null,-0,0)}}break}while(1);A1(k)}function yr(k,R,U,n,M6,E6,z1,Q1,r8,mA,Q7,T7,h4,L3){if(k.timeoutHandle=XQ,T7=R.subtreeFlags,T7&8192||(T7&16785408)===16785408){T7=VE6(),fu(R,E6,T7);var DD=(E6&62914560)===E6?S$6-sW():(E6&4194048)===E6?Bt6-sW():0;if(DD=wt6(T7,DD),DD!==null){bN=E6,k.cancelPendingCommit=DD(cK.bind(null,k,R,E6,U,n,M6,z1,Q1,r8,Q7,T7,null,h4,L3)),lP(k,E6,z1,!mA);return}}cK(k,R,E6,U,n,M6,z1,Q1,r8)}function vu(k){for(var R=k;;){var U=R.tag;if((U===0||U===11||U===15)&&R.flags&16384&&(U=R.updateQueue,U!==null&&(U=U.stores,U!==null)))for(var n=0;n<U.length;n++){var M6=U[n],E6=M6.getSnapshot;M6=M6.value;try{if(!jD(E6(),M6))return!1}catch(z1){return!1}}if(U=R.child,R.subtreeFlags&16384&&U!==null)U.return=R,R=U;else{if(R===k)break;for(;R.sibling===null;){if(R.return===null||R.return===k)return!0;R=R.return}R.sibling.return=R.return,R=R.sibling}}return!0}function lP(k,R,U,n){R&=~eE6,R&=~RQ,k.suspendedLanes|=R,k.pingedLanes&=~R,n&&(k.warmLanes|=R),n=k.expirationTimes;for(var M6=R;0<M6;){var E6=31-mZ(M6),z1=1<<E6;n[E6]=-1,M6&=~z1}U!==0&&L(k,U,R)}function Vu(){return(H9&6)===0?(I6(0,!1),!1):!0}function Nu(){if(j9!==null){if(tz===0)var k=j9.return;else k=j9,nh=TQ=null,S1(k),EQ=null,D76=0,k=j9;for(;k!==null;)$8(k.alternate,k),k=k.return;j9=null}}function iP(k,R){var U=k.timeoutHandle;U!==XQ&&(k.timeoutHandle=XQ,vE6(U)),U=k.cancelPendingCommit,U!==null&&(k.cancelPendingCommit=null,U()),bN=0,Nu(),lw=k,j9=U=EL(k.current,null),N9=R,tz=0,AG=null,ah=!1,nr=G(k,R),tE6=!1,rr=FZ=eE6=RQ=IN=WO=0,qG=G76=null,AL6=!1,(R&8)!==0&&(R|=R&32);var n=k.entangledLanes;if(n!==0)for(k=k.entanglements,n&=R;0<n;){var M6=31-mZ(n),E6=1<<M6;R|=k[M6],n&=~E6}return sh=R,Dq(),U}function ku(k,R){l3=null,MK.H=P76,R===Ur||R===G$6?(R=rA(),tz=3):R===tW?(R=rA(),tz=4):tz=R===rE6?8:R!==null&&typeof R==="object"&&typeof R.then==="function"?6:1,AG=R,j9===null&&(WO=1,dJ(k,A6(R,k.current)))}function tA6(){var k=pZ.current;return k===null?!0:(N9&4194048)===N9?sT===null?!0:!1:(N9&62914560)===N9||(N9&536870912)!==0?k===sT:!1}function c_6(){var k=MK.H;return MK.H=P76,k===null?P76:k}function eA6(){var k=MK.A;return MK.A=Tb1,k}function Rr(){WO=4,ah||(N9&4194048)!==N9&&pZ.current!==null||(nr=!0),(IN&134217727)===0&&(RQ&134217727)===0||lw===null||lP(lw,N9,FZ,!1)}function V1(k,R,U){var n=H9;H9|=2;var M6=c_6(),E6=eA6();if(lw!==k||N9!==R)h$6=null,iP(k,R);R=!1;var z1=WO;A:do try{if(tz!==0&&j9!==null){var Q1=j9,r8=AG;switch(tz){case 8:Nu(),z1=6;break A;case 3:case 2:case 9:case 6:pZ.current===null&&(R=!0);var mA=tz;if(tz=0,AG=null,sA(k,Q1,r8,mA),U&&nr){z1=0;break A}break;default:mA=tz,tz=0,AG=null,sA(k,Q1,r8,mA)}}C8(),z1=WO;break}catch(Q7){ku(k,Q7)}while(1);return R&&k.shellSuspendCounter++,nh=TQ=null,H9=n,MK.H=M6,MK.A=E6,j9===null&&(lw=null,N9=0,Dq()),z1}function C8(){for(;j9!==null;)C7(j9)}function YA(k,R){var U=H9;H9|=2;var n=c_6(),M6=eA6();lw!==k||N9!==R?(h$6=null,Z76=sW()+500,iP(k,R)):nr=G(k,R);A:do try{if(tz!==0&&j9!==null){R=j9;var E6=AG;q:switch(tz){case 1:tz=0,AG=null,sA(k,R,E6,1);break;case 2:case 9:if(j8(E6)){tz=0,AG=null,o7(R);break}R=function(){tz!==2&&tz!==9||lw!==k||(tz=7),A1(k)},E6.then(R,R);break A;case 3:tz=7;break A;case 4:tz=5;break A;case 7:j8(E6)?(tz=0,AG=null,o7(R)):(tz=0,AG=null,sA(k,R,E6,7));break;case 5:var z1=null;switch(j9.tag){case 26:z1=j9.memoizedState;case 5:case 27:var Q1=j9,r8=Q1.type,mA=Q1.pendingProps;if(z1?yt6(z1):zt6(Q1.stateNode,r8,mA)){tz=0,AG=null;var Q7=Q1.sibling;if(Q7!==null)j9=Q7;else{var T7=Q1.return;T7!==null?(j9=T7,K7(T7)):j9=null}break q}}tz=0,AG=null,sA(k,R,E6,5);break;case 6:tz=0,AG=null,sA(k,R,E6,6);break;case 8:Nu(),WO=6;break A;default:throw Error(Y(462))}}n6();break}catch(h4){ku(k,h4)}while(1);if(nh=TQ=null,MK.H=n,MK.A=M6,H9=U,j9!==null)return 0;return lw=null,N9=0,Dq(),WO}function n6(){for(;j9!==null&&!St6();)C7(j9)}function C7(k){var R=mh(k.alternate,k,sh);k.memoizedProps=k.pendingProps,R===null?K7(k):j9=R}function o7(k){var R=k,U=R.alternate;switch(R.tag){case 15:case 0:R=V9(U,R,R.pendingProps,R.type,void 0,N9);break;case 11:R=V9(U,R,R.pendingProps,R.type.render,R.ref,N9);break;case 5:S1(R);default:$8(U,R),R=j9=ns6(R,sh),R=mh(U,R,sh)}k.memoizedProps=k.pendingProps,R===null?K7(k):j9=R}function sA(k,R,U,n){nh=TQ=null,S1(R),EQ=null,D76=0;var M6=R.return;try{if(dT(k,M6,R,U,N9)){WO=1,dJ(k,A6(U,k.current)),j9=null;return}}catch(E6){if(M6!==null)throw j9=M6,E6;WO=1,dJ(k,A6(U,k.current)),j9=null;return}if(R.flags&32768){if(g9||n===1)k=!0;else if(nr||(N9&536870912)!==0)k=!1;else if(ah=k=!0,n===2||n===9||n===3||n===6)n=pZ.current,n!==null&&n.tag===13&&(n.flags|=16384);k4(R,k)}else K7(R)}function K7(k){var R=k;do{if((R.flags&32768)!==0){k4(R,ah);return}k=R.return;var U=wQ(R.alternate,R,sh);if(U!==null){j9=U;return}if(R=R.sibling,R!==null){j9=R;return}j9=R=k}while(R!==null);WO===0&&(WO=5)}function k4(k,R){do{var U=rW(k.alternate,k);if(U!==null){U.flags&=32767,j9=U;return}if(U=k.return,U!==null&&(U.flags|=32768,U.subtreeFlags=0,U.deletions=null),!R&&(k=k.sibling,k!==null)){j9=k;return}j9=k=U}while(k!==null);WO=6,j9=null}function cK(k,R,U,n,M6,E6,z1,Q1,r8){k.cancelPendingCommit=null;do wD();while(lj!==0);if((H9&6)!==0)throw Error(Y(327));if(R!==null){if(R===k.current)throw Error(Y(177));if(E6=R.lanes|R.childLanes,E6|=lE6,N(k,U,E6,z1,Q1,r8),k===lw&&(j9=lw=null,N9=0),SQ=R,th=k,bN=U,C$6=E6,I$6=M6,qL6=n,(R.subtreeFlags&10256)!==0||(R.flags&10256)!==0?(k.callbackNode=null,k.callbackPriority=0,kL(HD,function(){return yN(),null})):(k.callbackNode=null,k.callbackPriority=0),n=(R.flags&13878)!==0,(R.subtreeFlags&13878)!==0||n){n=MK.T,MK.T=null,M6=RN(),oJ(2),z1=H9,H9|=4;try{kr(k,R,U)}finally{H9=z1,oJ(M6),MK.T=n}}lj=1,cw(),$9(),dj()}}function cw(){if(lj===1){lj=0;var k=th,R=SQ,U=(R.flags&13878)!==0;if((R.subtreeFlags&13878)!==0||U){U=MK.T,MK.T=null;var n=RN();oJ(2);var M6=H9;H9|=4;try{lJ(R,k),DQ(k.containerInfo)}finally{H9=M6,oJ(n),MK.T=U}}k.current=R,lj=2}}function $9(){if(lj===2){lj=0;var k=th,R=SQ,U=(R.flags&8772)!==0;if((R.subtreeFlags&8772)!==0||U){U=MK.T,MK.T=null;var n=RN();oJ(2);var M6=H9;H9|=4;try{oq(k,R.alternate,R)}finally{H9=M6,oJ(n),MK.T=U}}lj=3}}function dj(){if(lj===4||lj===3){lj=0,Xb1();var k=th,R=SQ,U=bN,n=qL6;(R.subtreeFlags&10256)!==0||(R.flags&10256)!==0?lj=5:(lj=0,SQ=th=null,Cz(k,k.pendingLanes));var M6=k.pendingLanes;if(M6===0&&(xN=null),x(U),R=R.stateNode,BZ&&typeof BZ.onCommitFiberRoot==="function")try{BZ.onCommitFiberRoot(J76,R,void 0,(R.current.flags&128)===128)}catch(r8){}if(n!==null){R=MK.T,M6=RN(),oJ(2),MK.T=null;try{for(var E6=k.onRecoverableError,z1=0;z1<n.length;z1++){var Q1=n[z1];E6(Q1.value,{componentStack:Q1.stack})}}finally{MK.T=R,oJ(M6)}}(bN&3)!==0&&wD(),A1(k),M6=k.pendingLanes,(U&261930)!==0&&(M6&42)!==0?k===KL6?or++:(or=0,KL6=k):or=0,jX&&Vt6(),I6(0,!1)}}function Cz(k,R){(k.pooledCacheLanes&=R)===0&&(R=k.pooledCache,R!=null&&(k.pooledCache=null,m6(R)))}function wD(){return cw(),$9(),dj(),yN()}function yN(){if(lj!==5)return!1;var k=th,R=C$6;C$6=0;var U=x(bN),n=32>U?32:U;U=MK.T;var M6=RN();try{oJ(n),MK.T=null,n=I$6,I$6=null;var E6=th,z1=bN;if(lj=0,SQ=th=null,bN=0,(H9&6)!==0)throw Error(Y(331));var Q1=H9;if(H9|=4,Q_6(E6.current),OQ(E6,E6.current,z1,n),H9=Q1,I6(0,!1),BZ&&typeof BZ.onPostCommitFiberRoot==="function")try{BZ.onPostCommitFiberRoot(J76,E6)}catch(r8){}return!0}finally{oJ(M6),MK.T=U,Cz(k,R)}}function Sr(k,R,U){R=A6(U,R),R=nW(k.stateNode,R,2),k=Oz(k,R,2),k!==null&&(V(k,2),A1(k))}function j3(k,R,U){if(k.tag===3)Sr(k,k,U);else for(;R!==null;){if(R.tag===3){Sr(R,k,U);break}else if(R.tag===1){var n=R.stateNode;if(typeof R.type.getDerivedStateFromError==="function"||typeof n.componentDidCatch==="function"&&(xN===null||!xN.has(n))){k=A6(U,k),U=EN(2),n=Oz(R,U,2),n!==null&&(bh(U,n,R,k),V(n,2),A1(n));break}}R=R.return}}function hr(k,R,U){var n=k.pingCache;if(n===null){n=k.pingCache=new vb1;var M6=new Set;n.set(R,M6)}else M6=n.get(R),M6===void 0&&(M6=new Set,n.set(R,M6));M6.has(U)||(tE6=!0,M6.add(U),k=Cr.bind(null,k,R,U),R.then(k,k))}function Cr(k,R,U){var n=k.pingCache;n!==null&&n.delete(R),k.pingedLanes|=k.suspendedLanes&U,k.warmLanes&=~U,lw===k&&(N9&U)===U&&(WO===4||WO===3&&(N9&62914560)===N9&&300>sW()-S$6?(H9&2)===0&&iP(k,0):eE6|=U,rr===N9&&(rr=0)),A1(k)}function JE6(k,R){R===0&&(R=f()),k=mq(k,R),k!==null&&(V(k,R),A1(k))}function ls6(k){var R=k.memoizedState,U=0;R!==null&&(U=R.retryLane),JE6(k,U)}function is6(k,R){var U=0;switch(k.tag){case 31:case 13:var{stateNode:n,memoizedState:M6}=k;M6!==null&&(U=M6.retryLane);break;case 19:n=k.stateNode;break;case 22:n=k.stateNode._retryCache;break;default:throw Error(Y(314))}n!==null&&n.delete(R),JE6(k,U)}function kL(k,R){return j76(k,R)}function l_6(k,R,U,n){this.tag=k,this.key=U,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=R,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function i_6(k){return k=k.prototype,!(!k||!k.isReactComponent)}function EL(k,R){var U=k.alternate;return U===null?(U=q(k.tag,R,k.key,k.mode),U.elementType=k.elementType,U.type=k.type,U.stateNode=k.stateNode,U.alternate=k,k.alternate=U):(U.pendingProps=R,U.type=k.type,U.flags=0,U.subtreeFlags=0,U.deletions=null),U.flags=k.flags&65011712,U.childLanes=k.childLanes,U.lanes=k.lanes,U.child=k.child,U.memoizedProps=k.memoizedProps,U.memoizedState=k.memoizedState,U.updateQueue=k.updateQueue,R=k.dependencies,U.dependencies=R===null?null:{lanes:R.lanes,firstContext:R.firstContext},U.sibling=k.sibling,U.index=k.index,U.ref=k.ref,U.refCleanup=k.refCleanup,U}function ns6(k,R){k.flags&=65011714;var U=k.alternate;return U===null?(k.childLanes=0,k.lanes=R,k.child=null,k.subtreeFlags=0,k.memoizedProps=null,k.memoizedState=null,k.updateQueue=null,k.dependencies=null,k.stateNode=null):(k.childLanes=U.childLanes,k.lanes=U.lanes,k.child=U.child,k.subtreeFlags=0,k.deletions=null,k.memoizedProps=U.memoizedProps,k.memoizedState=U.memoizedState,k.updateQueue=U.updateQueue,k.type=U.type,R=U.dependencies,k.dependencies=R===null?null:{lanes:R.lanes,firstContext:R.firstContext}),k}function n_6(k,R,U,n,M6,E6){var z1=0;if(n=k,typeof k==="function")i_6(k)&&(z1=1);else if(typeof k==="string")z1=nT&&HH?O76(k,U,tH.current)?26:WQ(k)?27:5:nT?O76(k,U,tH.current)?26:5:HH?WQ(k)?27:5:5;else A:switch(k){case JQ:return k=q(31,U,R,M6),k.elementType=JQ,k.lanes=E6,k;case Ir:return IZ(U.children,M6,E6,R);case WE6:z1=8,M6|=24;break;case GE6:return k=q(12,U,R,M6|2),k.elementType=GE6,k.lanes=E6,k;case oW:return k=q(13,U,R,M6),k.elementType=oW,k.lanes=E6,k;case ZE6:return k=q(19,U,R,M6),k.elementType=ZE6,k.lanes=E6,k;default:if(typeof k==="object"&&k!==null)switch(k.$$typeof){case yL:z1=10;break A;case LL:z1=9;break A;case Uh:z1=11;break A;case o_6:z1=14;break A;case dh:z1=16,n=null;break A}z1=29,U=Error(Y(130,k===null?"null":typeof k,"")),n=null}return R=q(z1,U,R,M6),R.elementType=k,R.type=n,R.lanes=E6,R}function IZ(k,R,U,n){return k=q(7,k,n,R),k.lanes=U,k}function ME6(k,R,U){return k=q(6,k,null,R),k.lanes=U,k}function rs6(k){var R=q(18,null,null,0);return R.stateNode=k,R}function xZ(k,R,U){return R=q(4,k.children!==null?k.children:[],k.key,R),R.lanes=U,R.stateNode={containerInfo:k.containerInfo,pendingChildren:null,implementation:k.implementation},R}function Qx1(k,R,U,n,M6,E6,z1,Q1,r8){this.tag=1,this.containerInfo=k,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=XQ,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=v(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=v(0),this.hiddenUpdates=v(null),this.identifierPrefix=n,this.onUncaughtError=M6,this.onCaughtError=E6,this.onRecoverableError=z1,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=r8,this.incompleteTransitions=new Map}function os6(k,R,U,n,M6,E6,z1,Q1,r8,mA,Q7,T7){return k=new Qx1(k,R,U,z1,r8,mA,Q7,T7,Q1),R=1,E6===!0&&(R|=24),E6=q(3,null,null,R),k.current=E6,E6.stateNode=k,R=B6(),R.refCount++,k.pooledCache=R,R.refCount++,E6.memoizedState={element:n,isDehydrated:U,cache:R},$z(E6),k}function as6(k){if(!k)return rT;return k=rT,k}function ss6(k){var R=k._reactInternals;if(R===void 0){if(typeof k.render==="function")throw Error(Y(188));throw k=Object.keys(k).join(","),Error(Y(268,k))}return k=_(R),k=k!==null?$(k):null,k===null?null:xr(k.stateNode)}function ts6(k,R,U,n,M6,E6){M6=as6(M6),n.context===null?n.context=M6:n.pendingContext=M6,n=Rz(R),n.payload={element:U},E6=E6===void 0?null:E6,E6!==null&&(n.callback=E6),U=Oz(k,n,R),U!==null&&(rJ(U,k,R),uY(U,k,R))}function DE6(k,R){if(k=k.memoizedState,k!==null&&k.dehydrated!==null){var U=k.retryLane;k.retryLane=U!==0&&U<R?U:R}}function r_6(k,R){DE6(k,R),(k=k.alternate)&&DE6(k,R)}var O9={},XE6=Object.assign,PE6=Symbol.for("react.element"),Eu=Symbol.for("react.transitional.element"),Qh=Symbol.for("react.portal"),Ir=Symbol.for("react.fragment"),WE6=Symbol.for("react.strict_mode"),GE6=Symbol.for("react.profiler"),LL=Symbol.for("react.consumer"),yL=Symbol.for("react.context"),Uh=Symbol.for("react.forward_ref"),oW=Symbol.for("react.suspense"),ZE6=Symbol.for("react.suspense_list"),o_6=Symbol.for("react.memo"),dh=Symbol.for("react.lazy"),JQ=Symbol.for("react.activity"),Lu=Symbol.for("react.memo_cache_sentinel"),fE6=Symbol.iterator,Ux1=Symbol.for("react.client.reference"),MQ=Array.isArray,MK=wO8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,es6=A.rendererVersion,_D=A.rendererPackageName,a_6=A.extraDevToolsConfig,xr=A.getPublicInstance,RL=A.getRootHostContext,TE6=A.getChildHostContext,s_6=A.prepareForCommit,DQ=A.resetAfterCommit,At6=A.createInstance;A.cloneMutableInstance;var{appendInitialChild:$D,finalizeInitialChildren:t_6,shouldSetTextContent:e_6,createTextInstance:qt6}=A;A.cloneMutableTextInstance;var{scheduleTimeout:dx1,cancelTimeout:vE6,noTimeout:XQ,isPrimaryRenderer:bZ}=A;A.warnsIfNotActing;var{supportsMutation:OD,supportsPersistence:SL,supportsHydration:jX,getInstanceFromNode:A76}=A;A.beforeActiveInstanceBlur;var cx1=A.preparePortalMount;A.prepareScopeUpdate,A.getInstanceFromScope;var{setCurrentUpdatePriority:oJ,getCurrentUpdatePriority:RN,resolveUpdatePriority:Kt6}=A;A.trackSchedulerEvent,A.resolveEventType,A.resolveEventTimeStamp;var{shouldAttemptEagerTransition:lx1,detachDeletedInstance:ix1}=A;A.requestPostPaintCallback;var{maySuspendCommit:nx1,maySuspendCommitOnUpdate:Yt6,maySuspendCommitInSyncRender:q76,preloadInstance:zt6,startSuspendingCommit:VE6,suspendInstance:NE6}=A;A.suspendOnActiveViewTransition;var wt6=A.waitForCommitToBeReady;A.getSuspendedCommitReason;var{NotPendingTransition:PQ,HostTransitionContext:hL,resetFormInstance:rx1}=A;A.bindToConsole;var{supportsMicrotasks:_t6,scheduleMicrotask:$t6,supportsTestSelectors:K76,findFiberRoot:Ot6,getBoundingRect:ox1,getTextContent:kE6,isHiddenSubtree:br,matchAccessibilityRole:EE6,setFocusIfFocusable:ax1,setupIntersectionObserver:LE6,appendChild:C5,appendChildToContainer:sx1,commitTextUpdate:tx1,commitMount:Y76,commitUpdate:Ht6,insertBefore:ex1,insertInContainerBefore:Ab1,removeChild:iT,removeChildFromContainer:qb1,resetTextContent:z76,hideInstance:yE6,hideTextInstance:jt6,unhideInstance:Jt6,unhideTextInstance:uZ}=A;A.cancelViewTransitionName,A.cancelRootViewTransitionName,A.restoreRootViewTransitionName,A.cloneRootViewTransitionContainer,A.removeRootViewTransitionClone,A.measureClonedInstance,A.hasInstanceChanged,A.hasInstanceAffectedParent,A.startViewTransition,A.startGestureTransition,A.stopViewTransition,A.getCurrentGestureOffset,A.createViewTransitionInstance;var yu=A.clearContainer;A.createFragmentInstance,A.updateFragmentInstanceFiber,A.commitNewChildToFragmentInstance,A.deleteChildFromFragmentInstance;var{cloneInstance:RE6,createContainerChildSet:SE6,appendChildToContainerChildSet:w76,finalizeContainerChildren:Mt6,replaceContainerChildren:A$6,cloneHiddenInstance:hE6,cloneHiddenTextInstance:q$6,isSuspenseInstancePending:_76,isSuspenseInstanceFallback:CL,getSuspenseInstanceFallbackErrorDetails:Kb1,registerSuspenseInstanceRetry:Ru,canHydrateFormStateMarker:Dt6,isFormStateMarkerMatching:Xt6,getNextHydratableSibling:K$6,getNextHydratableSiblingAfterSingleton:Yb1,getFirstHydratableChild:zb1,getFirstHydratableChildWithinContainer:wb1,getFirstHydratableChildWithinActivityInstance:Pt6,getFirstHydratableChildWithinSuspenseInstance:Wt6,getFirstHydratableChildWithinSingleton:_b1,canHydrateInstance:Gt6,canHydrateTextInstance:Zt6,canHydrateActivityInstance:aW,canHydrateSuspenseInstance:IL,hydrateInstance:$b1,hydrateTextInstance:Ob1,hydrateActivityInstance:Y$6,hydrateSuspenseInstance:ur,getNextHydratableInstanceAfterActivityInstance:ft6,getNextHydratableInstanceAfterSuspenseInstance:Tt6,commitHydratedInstance:Hb1,commitHydratedContainer:vt6,commitHydratedActivityInstance:mr,commitHydratedSuspenseInstance:$76,finalizeHydratedChildren:jb1,flushHydrationEvents:Vt6}=A;A.clearActivityBoundary;var Nt6=A.clearSuspenseBoundary;A.clearActivityBoundaryFromContainer;var{clearSuspenseBoundaryFromContainer:z$6,hideDehydratedBoundary:kt6,unhideDehydratedBoundary:w$6,shouldDeleteUnhydratedTailInstances:_$6}=A;A.diffHydratedPropsForDevWarnings,A.diffHydratedTextForDevWarnings,A.describeHydratableInstanceForDevWarnings;var{validateHydratableInstance:$$6,validateHydratableTextInstance:Jb1,supportsResources:nT,isHostHoistableType:O76,getHoistableRoot:O$6,getResource:H$6,acquireResource:Et6,releaseResource:CE6,hydrateHoistable:ch,mountHoistable:IE6,unmountHoistable:xE6,createHoistableInstance:Mb1,prepareToCommitHoistables:Lt6,mayResourceSuspendCommit:Db1,preloadResource:yt6,suspendResource:lh,supportsSingletons:HH,resolveSingletonInstance:j$6,acquireSingletonInstance:bE6,releaseSingletonInstance:H76,isHostSingletonType:WQ,isSingletonScope:hq}=A,Br=[],Su=-1,rT={},mZ=Math.clz32?Math.clz32:X,uE6=Math.log,Rt6=Math.LN2,cj=256,J$6=262144,M$6=4194304,j76=n_1,mE6=KO8,St6=zO8,Xb1=YO8,sW=SB,ht6=AO8,ih=qO8,HD=i_1,BE6=e$8,Pb1=void 0,gE6=void 0,J76=null,BZ=null,jD=typeof Object.is==="function"?Object.is:g,pE6=typeof reportError==="function"?reportError:function(k){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k==="object"&&k!==null&&typeof k.message==="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(R))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",k);return}console.error(k)},Ct6=Object.prototype.hasOwnProperty,FE6,It6,QE6=!1,xt6=new WeakMap,GQ=[],ZQ=0,D$6=null,fQ=0,gZ=[],JX=0,xL=null,SN=1,hN="",tH=J(null),gr=J(null),JD=J(null),bL=J(null),MD=null,U_=null,g9=!1,hu=null,oT=!1,UE6=Error(Y(519)),X$6=J(null),TQ=null,nh=null,Wb1=typeof AbortController<"u"?AbortController:function(){var k=[],R=this.signal={aborted:!1,addEventListener:function(U,n){k.push(n)}};this.abort=function(){R.aborted=!0,k.forEach(function(U){return U()})}},Gb1=n_1,Zb1=i_1,h$={$$typeof:yL,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0},M76=null,vQ=null,P$6=!1,W$6=!1,dE6=!1,VQ=0,pr=null,cE6=0,Fr=0,Qr=null,bt6=MK.S;MK.S=function(k,R){Bt6=sW(),typeof R==="object"&&R!==null&&typeof R.then==="function"&&U6(k,R),bt6!==null&&bt6(k,R)};var NQ=J(null),Ur=Error(Y(460)),tW=Error(Y(474)),G$6=Error(Y(542)),Z$6={then:function(){}},kQ=null,EQ=null,D76=0,LQ=S4(!0),ut6=S4(!1),aT=[],Cu=0,lE6=0,Iu=!1,iE6=!1,dr=J(null),f$6=J(0),pZ=J(null),sT=null,jH=J(0),rh=0,l3=null,Pw=null,eH=null,T$6=!1,cr=!1,yQ=!1,v$6=0,X76=0,lr=null,fb1=0,P76={readContext:N6,use:D8,useCallback:Tq,useContext:Tq,useEffect:Tq,useImperativeHandle:Tq,useLayoutEffect:Tq,useInsertionEffect:Tq,useMemo:Tq,useReducer:Tq,useRef:Tq,useState:Tq,useDebugValue:Tq,useDeferredValue:Tq,useTransition:Tq,useSyncExternalStore:Tq,useId:Tq,useHostTransitionStatus:Tq,useFormState:Tq,useActionState:Tq,useOptimistic:Tq,useMemoCache:Tq,useCacheRefresh:Tq};P76.useEffectEvent=Tq;var V$6={readContext:N6,use:D8,useCallback:function(k,R){return F1().memoizedState=[k,R===void 0?null:R],k},useContext:N6,useEffect:Qj,useImperativeHandle:function(k,R,U){U=U!==null&&U!==void 0?U.concat([k]):null,jK(4194308,4,UJ.bind(null,R,k),U)},useLayoutEffect:function(k,R){return jK(4194308,4,k,R)},useInsertionEffect:function(k,R){jK(4,2,k,R)},useMemo:function(k,R){var U=F1();R=R===void 0?null:R;var n=k();if(yQ){p(!0);try{k()}finally{p(!1)}}return U.memoizedState=[n,R],n},useReducer:function(k,R,U){var n=F1();if(U!==void 0){var M6=U(R);if(yQ){p(!0);try{U(R)}finally{p(!1)}}}else M6=R;return n.memoizedState=n.baseState=M6,k={pending:null,lanes:0,dispatch:null,lastRenderedReducer:k,lastRenderedState:M6},n.queue=k,k=k.dispatch=K5.bind(null,l3,k),[n.memoizedState,k]},useRef:function(k){var R=F1();return k={current:k},R.memoizedState=k},useState:function(k){k=m_(k);var R=k.queue,U=e7.bind(null,l3,R);return R.dispatch=U,[k.memoizedState,U]},useDebugValue:L$,useDeferredValue:function(k,R){var U=F1();return y$(U,k,R)},useTransition:function(){var k=m_(!1);return k=GA.bind(null,l3,k.queue,!0,!1),F1().memoizedState=k,[!1,k]},useSyncExternalStore:function(k,R,U){var n=l3,M6=F1();if(g9){if(U===void 0)throw Error(Y(407));U=U()}else{if(U=R(),lw===null)throw Error(Y(349));(N9&127)!==0||M7(n,R,U)}M6.memoizedState=U;var E6={value:U,getSnapshot:R};return M6.queue=E6,Qj(d3.bind(null,n,E6,k),[k]),n.flags|=2048,H3(9,{destroy:void 0},u4.bind(null,n,E6,U,R),null),U},useId:function(){var k=F1(),R=lw.identifierPrefix;if(g9){var U=hN,n=SN;U=(n&~(1<<32-mZ(n)-1)).toString(32)+U,R="_"+R+"R_"+U,U=v$6++,0<U&&(R+="H"+U.toString(32)),R+="_"}else U=fb1++,R="_"+R+"r_"+U.toString(32)+"_";return k.memoizedState=R},useHostTransitionStatus:_q,useFormState:OX,useActionState:OX,useOptimistic:function(k){var R=F1();R.memoizedState=R.baseState=k;var U={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return R.queue=U,R=V2.bind(null,l3,!0,U),U.dispatch=R,[k,R]},useMemoCache:g8,useCacheRefresh:function(){return F1().memoizedState=B9.bind(null,l3)},useEffectEvent:function(k){var R=F1(),U={impl:k};return R.memoizedState=U,function(){if((H9&2)!==0)throw Error(Y(440));return U.impl.apply(void 0,arguments)}}},N$6={readContext:N6,use:D8,useCallback:Mz,useContext:N6,useEffect:k$,useImperativeHandle:Qq,useInsertionEffect:UP,useLayoutEffect:E$,useMemo:Sz,useReducer:t8,useRef:q5,useState:function(){return t8(I8)},useDebugValue:L$,useDeferredValue:function(k,R){var U=e1();return v2(U,Pw.memoizedState,k,R)},useTransition:function(){var k=t8(I8)[0],R=e1().memoizedState;return[typeof k==="boolean"?k:k1(k),R]},useSyncExternalStore:l4,useId:c3,useHostTransitionStatus:_q,useFormState:QP,useActionState:QP,useOptimistic:function(k,R){var U=e1();return Fw(U,Pw,k,R)},useMemoCache:g8,useCacheRefresh:Bq};N$6.useEffectEvent=t2;var mt6={readContext:N6,use:D8,useCallback:Mz,useContext:N6,useEffect:k$,useImperativeHandle:Qq,useInsertionEffect:UP,useLayoutEffect:E$,useMemo:Sz,useReducer:E4,useRef:q5,useState:function(){return E4(I8)},useDebugValue:L$,useDeferredValue:function(k,R){var U=e1();return Pw===null?y$(U,k,R):v2(U,Pw.memoizedState,k,R)},useTransition:function(){var k=E4(I8)[0],R=e1().memoizedState;return[typeof k==="boolean"?k:k1(k),R]},useSyncExternalStore:l4,useId:c3,useHostTransitionStatus:_q,useFormState:Fj,useActionState:Fj,useOptimistic:function(k,R){var U=e1();if(Pw!==null)return Fw(U,Pw,k,R);return U.baseState=k,[k,U.queue.dispatch]},useMemoCache:g8,useCacheRefresh:Bq};mt6.useEffectEvent=t2;var nE6={enqueueSetState:function(k,R,U){k=k._reactInternals;var n=sH(),M6=Rz(n);M6.payload=R,U!==void 0&&U!==null&&(M6.callback=U),R=Oz(k,M6,n),R!==null&&(rJ(R,k,n),uY(R,k,n))},enqueueReplaceState:function(k,R,U){k=k._reactInternals;var n=sH(),M6=Rz(n);M6.tag=1,M6.payload=R,U!==void 0&&U!==null&&(M6.callback=U),R=Oz(k,M6,n),R!==null&&(rJ(R,k,n),uY(R,k,n))},enqueueForceUpdate:function(k,R){k=k._reactInternals;var U=sH(),n=Rz(U);n.tag=2,R!==void 0&&R!==null&&(n.callback=R),R=Oz(k,n,U),R!==null&&(rJ(R,k,U),uY(R,k,U))}},rE6=Error(Y(461)),Aj=!1,oE6={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},oh=!1,qj=!1,aE6=!1,sE6=typeof WeakSet==="function"?WeakSet:Set,aJ=null,C$=null,eW=!1,CN=null,ir=8192,Tb1={getCacheForType:function(k){var R=N6(h$),U=R.data.get(k);return U===void 0&&(U=k(),R.data.set(k,U)),U},cacheSignal:function(){return N6(h$).controller.signal}},k$6=0,E$6=1,L$6=2,y$6=3,R$6=4;if(typeof Symbol==="function"&&Symbol.for){var W76=Symbol.for;k$6=W76("selector.component"),E$6=W76("selector.has_pseudo_class"),L$6=W76("selector.role"),y$6=W76("selector.test_id"),R$6=W76("selector.text")}var vb1=typeof WeakMap==="function"?WeakMap:Map,H9=0,lw=null,j9=null,N9=0,tz=0,AG=null,ah=!1,nr=!1,tE6=!1,sh=0,WO=0,IN=0,RQ=0,eE6=0,FZ=0,rr=0,G76=null,qG=null,AL6=!1,S$6=0,Bt6=0,Z76=1/0,h$6=null,xN=null,lj=0,th=null,SQ=null,bN=0,C$6=0,I$6=null,qL6=null,or=0,KL6=null;return O9.attemptContinuousHydration=function(k){if(k.tag===13||k.tag===31){var R=mq(k,67108864);R!==null&&rJ(R,k,67108864),r_6(k,67108864)}},O9.attemptHydrationAtCurrentPriority=function(k){if(k.tag===13||k.tag===31){var R=sH();R=m(R);var U=mq(k,R);U!==null&&rJ(U,k,R),r_6(k,R)}},O9.attemptSynchronousHydration=function(k){switch(k.tag){case 3:if(k=k.stateNode,k.current.memoizedState.isDehydrated){var R=P(k.pendingLanes);if(R!==0){k.pendingLanes|=2;for(k.entangledLanes|=2;R;){var U=1<<31-mZ(R);k.entanglements[1]|=U,R&=~U}A1(k),(H9&6)===0&&(Z76=sW()+500,I6(0,!1))}}break;case 31:case 13:R=mq(k,2),R!==null&&rJ(R,k,2),Vu(),r_6(k,2)}},O9.batchedUpdates=function(k,R){return k(R)},O9.createComponentSelector=function(k){return{$$typeof:k$6,value:k}},O9.createContainer=function(k,R,U,n,M6,E6,z1,Q1,r8,mA){return os6(k,R,!1,null,U,n,E6,null,z1,Q1,r8,mA)},O9.createHasPseudoClassSelector=function(k){return{$$typeof:E$6,value:k}},O9.createHydrationContainer=function(k,R,U,n,M6,E6,z1,Q1,r8,mA,Q7,T7,h4,L3){return k=os6(U,n,!0,k,M6,E6,Q1,L3,r8,mA,Q7,T7),k.context=as6(null),U=k.current,n=sH(),n=m(n),M6=Rz(n),M6.callback=R!==void 0&&R!==null?R:null,Oz(U,M6,n),R=n,k.current.lanes=R,V(k,R),A1(k),k},O9.createPortal=function(k,R,U){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Qh,key:n==null?null:""+n,children:k,containerInfo:R,implementation:U}},O9.createRoleSelector=function(k){return{$$typeof:L$6,value:k}},O9.createTestNameSelector=function(k){return{$$typeof:y$6,value:k}},O9.createTextSelector=function(k){return{$$typeof:R$6,value:k}},O9.defaultOnCaughtError=function(k){console.error(k)},O9.defaultOnRecoverableError=function(k){pE6(k)},O9.defaultOnUncaughtError=function(k){pE6(k)},O9.deferredUpdates=function(k){var R=MK.T,U=RN();try{return oJ(32),MK.T=null,k()}finally{oJ(U),MK.T=R}},O9.discreteUpdates=function(k,R,U,n,M6){var E6=MK.T,z1=RN();try{return oJ(2),MK.T=null,k(R,U,n,M6)}finally{oJ(z1),MK.T=E6,H9===0&&(Z76=sW()+500)}},O9.findAllNodes=Fh,O9.findBoundingRects=function(k,R){if(!K76)throw Error(Y(363));R=Fh(k,R),k=[];for(var U=0;U<R.length;U++)k.push(ox1(R[U]));for(R=k.length-1;0<R;R--){U=k[R];for(var n=U.x,M6=n+U.width,E6=U.y,z1=E6+U.height,Q1=R-1;0<=Q1;Q1--)if(R!==Q1){var r8=k[Q1],mA=r8.x,Q7=mA+r8.width,T7=r8.y,h4=T7+r8.height;if(n>=mA&&E6>=T7&&M6<=Q7&&z1<=h4){k.splice(R,1);break}else if(!(n!==mA||U.width!==r8.width||h4<E6||T7>z1)){T7>E6&&(r8.height+=T7-E6,r8.y=E6),h4<z1&&(r8.height=z1-T7),k.splice(R,1);break}else if(!(E6!==T7||U.height!==r8.height||Q7<n||mA>M6)){mA>n&&(r8.width+=mA-n,r8.x=n),Q7<M6&&(r8.width=M6-mA),k.splice(R,1);break}}}return k},O9.findHostInstance=ss6,O9.findHostInstanceWithNoPortals=function(k){return k=_(k),k=k!==null?O(k):null,k===null?null:xr(k.stateNode)},O9.findHostInstanceWithWarning=function(k){return ss6(k)},O9.flushPassiveEffects=wD,O9.flushSyncFromReconciler=function(k){var R=H9;H9|=1;var U=MK.T,n=RN();try{if(oJ(2),MK.T=null,k)return k()}finally{oJ(n),MK.T=U,H9=R,(H9&6)===0&&I6(0,!1)}},O9.flushSyncWork=Vu,O9.focusWithin=function(k,R){if(!K76)throw Error(Y(363));k=U_6(k),R=sA6(k,R),R=Array.from(R);for(k=0;k<R.length;){var U=R[k++],n=U.tag;if(!br(U)){if((n===5||n===26||n===27)&&ax1(U.stateNode))return!0;for(U=U.child;U!==null;)R.push(U),U=U.sibling}}return!1},O9.getFindAllNodesFailureDescription=function(k,R){if(!K76)throw Error(Y(363));var U=0,n=[];k=[U_6(k),0];for(var M6=0;M6<k.length;){var E6=k[M6++],z1=E6.tag,Q1=k[M6++],r8=R[Q1];if(z1!==5&&z1!==26&&z1!==27||!br(E6)){if(S$(E6,r8)&&(n.push(OH(r8)),Q1++,Q1>U&&(U=Q1)),Q1<R.length)for(E6=E6.child;E6!==null;)k.push(E6,Q1),E6=E6.sibling}}if(U<R.length){for(k=[];U<R.length;U++)k.push(OH(R[U]));return`findAllNodes was able to match part of the selector:
  `+(n.join(" > ")+`

No matching component was found for:
  `)+k.join(" > ")}return null},O9.getPublicRootInstance=function(k){if(k=k.current,!k.child)return null;switch(k.child.tag){case 27:case 5:return xr(k.child.stateNode);default:return k.child.stateNode}},O9.injectIntoDevTools=function(){var k={bundleType:0,version:es6,rendererPackageName:_D,currentDispatcherRef:MK,reconcilerVersion:"19.2.0"};if(a_6!==null&&(k.rendererConfig=a_6),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")k=!1;else{var R=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(R.isDisabled||!R.supportsFiber)k=!0;else{try{J76=R.inject(k),BZ=R}catch(U){}k=R.checkDCE?!0:!1}}return k},O9.isAlreadyRendering=function(){return(H9&6)!==0},O9.observeVisibleRects=function(k,R,U,n){if(!K76)throw Error(Y(363));k=Fh(k,R);var M6=LE6(k,U,n).disconnect;return{disconnect:function(){M6()}}},O9.shouldError=function(){return null},O9.shouldSuspend=function(){return!1},O9.startHostTransition=function(k,R,U,n){if(k.tag!==5)throw Error(Y(476));var M6=SA(k).queue;GA(k,M6,R,PQ,U===null?K:function(){var E6=SA(k);return E6.next===null&&(E6=k.alternate.memoizedState),Y5(k,E6.next.queue,{},sH()),U(n)})},O9.updateContainer=function(k,R,U,n){var M6=R.current,E6=sH();return ts6(M6,E6,k,R,U,n),E6},O9.updateContainerSync=function(k,R,U,n){return ts6(R.current,2,k,R,U,n),2},O9};Xm6.exports.default=Xm6.exports;Object.defineProperty(Xm6.exports,"__esModule",{value:!0})});var _O8=1,$O8=32;var OO8=()=>{};var X9,r_1,Bk,Pm6,td,V36,o_1,HO8,a_1,XP6;var N36=E(()=>{X9={All:"all",Horizontal:"horizontal",Vertical:"vertical",Left:"left",Right:"right",Top:"top",Bottom:"bottom",Start:"start",End:"end"},r_1={All:"all",Column:"column",Row:"row"},Bk={Flex:"flex",None:"none"},Pm6={Row:"row",RowReverse:"row-reverse",Column:"column",ColumnReverse:"column-reverse"},td={Auto:"auto",Stretch:"stretch",FlexStart:"flex-start",Center:"center",FlexEnd:"flex-end"},V36={FlexStart:"flex-start",Center:"center",FlexEnd:"flex-end",SpaceBetween:"space-between",SpaceAround:"space-around",SpaceEvenly:"space-evenly"},o_1={NoWrap:"nowrap",Wrap:"wrap",WrapReverse:"wrap-reverse"},HO8={Relative:"relative",Absolute:"absolute"},a_1={Visible:"visible",Hidden:"hidden",Scroll:"scroll"},XP6={Undefined:"undefined",Exactly:"exactly",AtMost:"at-most"}});function t_1(A){let q=s_1.get(A);if(q!==void 0)return q;let K=u8(A);if(s_1.size>=I69)s_1.clear();return s_1.set(A,K),K}var s_1,I69=4096;var jO8=E(()=>{_5();s_1=new Map});function x69(A,q){if(A.length===0)return{width:0,height:0};let K=q<=0||!Number.isFinite(q),Y=0,z=0,w=0;while(w<=A.length){let _=A.indexOf(`
`,w),$=_===-1?A.substring(w):A.substring(w,_),O=t_1($);if(z=Math.max(z,O),K)Y++;else Y+=O===0?1:Math.ceil(O/q);if(_===-1)break;w=_+1}return{width:z,height:Y}}var e_1;var dV7=E(()=>{jO8();e_1=x69});var b69=(A,q)=>{if("position"in q)A.setPositionType(q.position==="absolute"?HO8.Absolute:HO8.Relative)},u69=(A,q)=>{let K=q.overflowY??q.overflow,Y=q.overflowX??q.overflow;if(K==="scroll"||Y==="scroll")A.setOverflow(a_1.Scroll);else if(K==="hidden"||Y==="hidden")A.setOverflow(a_1.Hidden);else if("overflow"in q||"overflowX"in q||"overflowY"in q)A.setOverflow(a_1.Visible)},m69=(A,q)=>{if("margin"in q)A.setMargin(X9.All,q.margin??0);if("marginX"in q)A.setMargin(X9.Horizontal,q.marginX??0);if("marginY"in q)A.setMargin(X9.Vertical,q.marginY??0);if("marginLeft"in q)A.setMargin(X9.Start,q.marginLeft||0);if("marginRight"in q)A.setMargin(X9.End,q.marginRight||0);if("marginTop"in q)A.setMargin(X9.Top,q.marginTop||0);if("marginBottom"in q)A.setMargin(X9.Bottom,q.marginBottom||0)},B69=(A,q)=>{if("padding"in q)A.setPadding(X9.All,q.padding??0);if("paddingX"in q)A.setPadding(X9.Horizontal,q.paddingX??0);if("paddingY"in q)A.setPadding(X9.Vertical,q.paddingY??0);if("paddingLeft"in q)A.setPadding(X9.Left,q.paddingLeft||0);if("paddingRight"in q)A.setPadding(X9.Right,q.paddingRight||0);if("paddingTop"in q)A.setPadding(X9.Top,q.paddingTop||0);if("paddingBottom"in q)A.setPadding(X9.Bottom,q.paddingBottom||0)},g69=(A,q)=>{if("flexGrow"in q)A.setFlexGrow(q.flexGrow??0);if("flexShrink"in q)A.setFlexShrink(typeof q.flexShrink==="number"?q.flexShrink:1);if("flexWrap"in q){if(q.flexWrap==="nowrap")A.setFlexWrap(o_1.NoWrap);if(q.flexWrap==="wrap")A.setFlexWrap(o_1.Wrap);if(q.flexWrap==="wrap-reverse")A.setFlexWrap(o_1.WrapReverse)}if("flexDirection"in q){if(q.flexDirection==="row")A.setFlexDirection(Pm6.Row);if(q.flexDirection==="row-reverse")A.setFlexDirection(Pm6.RowReverse);if(q.flexDirection==="column")A.setFlexDirection(Pm6.Column);if(q.flexDirection==="column-reverse")A.setFlexDirection(Pm6.ColumnReverse)}if("flexBasis"in q)if(typeof q.flexBasis==="number")A.setFlexBasis(q.flexBasis);else if(typeof q.flexBasis==="string")A.setFlexBasisPercent(Number.parseInt(q.flexBasis,10));else A.setFlexBasis(Number.NaN);if("alignItems"in q){if(q.alignItems==="stretch"||!q.alignItems)A.setAlignItems(td.Stretch);if(q.alignItems==="flex-start")A.setAlignItems(td.FlexStart);if(q.alignItems==="center")A.setAlignItems(td.Center);if(q.alignItems==="flex-end")A.setAlignItems(td.FlexEnd)}if("alignSelf"in q){if(q.alignSelf==="auto"||!q.alignSelf)A.setAlignSelf(td.Auto);if(q.alignSelf==="flex-start")A.setAlignSelf(td.FlexStart);if(q.alignSelf==="center")A.setAlignSelf(td.Center);if(q.alignSelf==="flex-end")A.setAlignSelf(td.FlexEnd)}if("justifyContent"in q){if(q.justifyContent==="flex-start"||!q.justifyContent)A.setJustifyContent(V36.FlexStart);if(q.justifyContent==="center")A.setJustifyContent(V36.Center);if(q.justifyContent==="flex-end")A.setJustifyContent(V36.FlexEnd);if(q.justifyContent==="space-between")A.setJustifyContent(V36.SpaceBetween);if(q.justifyContent==="space-around")A.setJustifyContent(V36.SpaceAround);if(q.justifyContent==="space-evenly")A.setJustifyContent(V36.SpaceEvenly)}},p69=(A,q)=>{if("width"in q)if(typeof q.width==="number")A.setWidth(q.width);else if(typeof q.width==="string")A.setWidthPercent(Number.parseInt(q.width,10));else A.setWidthAuto();if("height"in q)if(typeof q.height==="number")A.setHeight(q.height);else if(typeof q.height==="string")A.setHeightPercent(Number.parseInt(q.height,10));else A.setHeightAuto();if("minWidth"in q)if(typeof q.minWidth==="string")A.setMinWidthPercent(Number.parseInt(q.minWidth,10));else A.setMinWidth(q.minWidth??0);if("minHeight"in q)if(typeof q.minHeight==="string")A.setMinHeightPercent(Number.parseInt(q.minHeight,10));else A.setMinHeight(q.minHeight??0);if("maxWidth"in q)if(typeof q.maxWidth==="string")A.setMaxWidthPercent(Number.parseInt(q.maxWidth,10));else A.setMaxWidth(q.maxWidth??0);if("maxHeight"in q)if(typeof q.maxHeight==="string")A.setMaxHeightPercent(Number.parseInt(q.maxHeight,10));else A.setMaxHeight(q.maxHeight??0)},F69=(A,q)=>{if("display"in q)A.setDisplay(q.display==="flex"?Bk.Flex:Bk.None)},Q69=(A,q,K)=>{let Y=K??q;if("borderStyle"in q){let z=q.borderStyle?1:0;A.setBorder(X9.Top,Y.borderTop!==!1?z:0),A.setBorder(X9.Bottom,Y.borderBottom!==!1?z:0),A.setBorder(X9.Left,Y.borderLeft!==!1?z:0),A.setBorder(X9.Right,Y.borderRight!==!1?z:0)}else{if("borderTop"in q&&q.borderTop!==void 0)A.setBorder(X9.Top,q.borderTop===!1?0:1);if("borderBottom"in q&&q.borderBottom!==void 0)A.setBorder(X9.Bottom,q.borderBottom===!1?0:1);if("borderLeft"in q&&q.borderLeft!==void 0)A.setBorder(X9.Left,q.borderLeft===!1?0:1);if("borderRight"in q&&q.borderRight!==void 0)A.setBorder(X9.Right,q.borderRight===!1?0:1)}},U69=(A,q)=>{if("gap"in q)A.setGap(r_1.All,q.gap??0);if("columnGap"in q)A.setGap(r_1.Column,q.columnGap??0);if("rowGap"in q)A.setGap(r_1.Row,q.rowGap??0)},d69=(A,q={},K)=>{b69(A,q),u69(A,q),m69(A,q),B69(A,q),g69(A,q),p69(A,q),F69(A,q),Q69(A,q,K),U69(A,q)},Wm6;var JO8=E(()=>{N36();Wm6=d69});var lV7=h((Mj2,cV7)=>{cV7.exports=()=>{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\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](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\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]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\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])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\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-\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]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\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(?:[\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\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\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-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\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-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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 k36(A,q={}){if(typeof A!=="string"||A.length===0)return 0;let{ambiguousIsNarrow:K=!0,countAnsiEscapeCodes:Y=!1}=q;if(!Y)A=Pz(A);if(A.length===0)return 0;let z=0,w={ambiguousAsWide:!K};for(let{segment:_}of c69.segment(A)){let $=_.codePointAt(0);if($<=31||$>=127&&$<=159)continue;if($>=8203&&$<=8207||$===65279)continue;if($>=768&&$<=879||$>=6832&&$<=6911||$>=7616&&$<=7679||$>=8400&&$<=8447||$>=65056&&$<=65071)continue;if($>=55296&&$<=57343)continue;if($>=65024&&$<=65039)continue;if(l69.test(_))continue;if(iV7.default().test(_)){z+=2;continue}z+=Vq6($,w)}return z}var iV7,c69,l69;var nV7=E(()=>{_f();Bh6();iV7=q6(lV7(),1),c69=new Intl.Segmenter,l69=/^\p{Default_Ignorable_Code_Point}$/u});function r69(){let A=new Map;for(let[q,K]of Object.entries(xO)){for(let[Y,z]of Object.entries(K))xO[Y]={open:`\x1B[${z[0]}m`,close:`\x1B[${z[1]}m`},K[Y]=xO[Y],A.set(z[0],z[1]);Object.defineProperty(xO,q,{value:K,enumerable:!1})}return Object.defineProperty(xO,"codes",{value:A,enumerable:!1}),xO.color.close="\x1B[39m",xO.bgColor.close="\x1B[49m",xO.color.ansi=rV7(),xO.color.ansi256=oV7(),xO.color.ansi16m=aV7(),xO.bgColor.ansi=rV7(10),xO.bgColor.ansi256=oV7(10),xO.bgColor.ansi16m=aV7(10),Object.defineProperties(xO,{rgbToAnsi256:{value:(q,K,Y)=>{if(q===K&&K===Y){if(q<8)return 16;if(q>248)return 231;return Math.round((q-8)/247*24)+232}return 16+36*Math.round(q/255*5)+6*Math.round(K/255*5)+Math.round(Y/255*5)},enumerable:!1},hexToRgb:{value:(q)=>{let K=/[a-f\d]{6}|[a-f\d]{3}/i.exec(q.toString(16));if(!K)return[0,0,0];let[Y]=K;if(Y.length===3)Y=[...Y].map((w)=>w+w).join("");let z=Number.parseInt(Y,16);return[z>>16&255,z>>8&255,z&255]},enumerable:!1},hexToAnsi256:{value:(q)=>xO.rgbToAnsi256(...xO.hexToRgb(q)),enumerable:!1},ansi256ToAnsi:{value:(q)=>{if(q<8)return 30+q;if(q<16)return 90+(q-8);let K,Y,z;if(q>=232)K=((q-232)*10+8)/255,Y=K,z=K;else{q-=16;let $=q%36;K=Math.floor(q/36)/5,Y=Math.floor($/6)/5,z=$%6/5}let w=Math.max(K,Y,z)*2;if(w===0)return 30;let _=30+(Math.round(z)<<2|Math.round(Y)<<1|Math.round(K));if(w===2)_+=60;return _},enumerable:!1},rgbToAnsi:{value:(q,K,Y)=>xO.ansi256ToAnsi(xO.rgbToAnsi256(q,K,Y)),enumerable:!1},hexToAnsi:{value:(q)=>xO.ansi256ToAnsi(xO.hexToAnsi256(q)),enumerable:!1}}),xO}var rV7=(A=0)=>(q)=>`\x1B[${q+A}m`,oV7=(A=0)=>(q)=>`\x1B[${38+A};5;${q}m`,aV7=(A=0)=>(q,K,Y)=>`\x1B[${38+A};2;${q};${K};${Y}m`,xO,Wj2,i69,n69,Gj2,o69,wJ;var Gm6=E(()=>{xO={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Wj2=Object.keys(xO.modifier),i69=Object.keys(xO.color),n69=Object.keys(xO.bgColor),Gj2=[...i69,...n69];o69=r69(),wJ=o69});function XO8(A,q,K){return String(A).normalize().replaceAll(`\r
`,`
`).split(`
`).map((Y)=>A19(Y,q,K)).join(`
`)}var q$1,a69=39,DO8="\x07",eV7="[",s69="]",AN7="m",A$1,sV7=(A)=>`${q$1.values().next().value}${eV7}${A}${AN7}`,tV7=(A)=>`${q$1.values().next().value}${A$1}${A}${DO8}`,t69=(A)=>A.split(" ").map((q)=>k36(q)),MO8=(A,q,K)=>{let Y=[...q],z=!1,w=!1,_=k36(Pz(A.at(-1)));for(let[$,O]of Y.entries()){let H=k36(O);if(_+H<=K)A[A.length-1]+=O;else A.push(O),_=0;if(q$1.has(O))z=!0,w=Y.slice($+1,$+1+A$1.length).join("")===A$1;if(z){if(w){if(O===DO8)z=!1,w=!1}else if(O===AN7)z=!1;continue}if(_+=H,_===K&&$<Y.length-1)A.push(""),_=0}if(!_&&A.at(-1).length>0&&A.length>1)A[A.length-2]+=A.pop()},e69=(A)=>{let q=A.split(" "),K=q.length;while(K>0){if(k36(q[K-1])>0)break;K--}if(K===q.length)return A;return q.slice(0,K).join(" ")+q.slice(K).join("")},A19=(A,q,K={})=>{if(K.trim!==!1&&A.trim()==="")return"";let Y="",z,w,_=t69(A),$=[""];for(let[J,M]of A.split(" ").entries()){if(K.trim!==!1)$[$.length-1]=$.at(-1).trimStart();let D=k36($.at(-1));if(J!==0){if(D>=q&&(K.wordWrap===!1||K.trim===!1))$.push(""),D=0;if(D>0||K.trim===!1)$[$.length-1]+=" ",D++}if(K.hard&&_[J]>q){let X=q-D,P=1+Math.floor((_[J]-X-1)/q);if(Math.floor((_[J]-1)/q)<P)$.push("");MO8($,M,q);continue}if(D+_[J]>q&&D>0&&_[J]>0){if(K.wordWrap===!1&&D<q){MO8($,M,q);continue}$.push("")}if(D+_[J]>q&&K.wordWrap===!1){MO8($,M,q);continue}$[$.length-1]+=M}if(K.trim!==!1)$=$.map((J)=>e69(J));let O=$.join(`
`),H=[...O],j=0;for(let[J,M]of H.entries()){if(Y+=M,q$1.has(M)){let{groups:X}=new RegExp(`(?:\\${eV7}(?<code>\\d+)m|\\${A$1}(?<uri>.*)${DO8})`).exec(O.slice(j))||{groups:{}};if(X.code!==void 0){let P=Number.parseFloat(X.code);z=P===a69?void 0:P}else if(X.uri!==void 0)w=X.uri.length===0?void 0:X.uri}let D=wJ.codes.get(Number(z));if(H[J+1]===`
`){if(w)Y+=tV7("");if(z&&D)Y+=sV7(D)}else if(M===`
`){if(z&&D)Y+=sV7(z);if(w)Y+=tV7(w)}j+=M.length}return Y};var qN7=E(()=>{nV7();_f();Gm6();q$1=new Set(["\x1B",""]),A$1=`${s69}8;;`});var q19,E36;var K$1=E(()=>{qN7();q19=typeof Bun<"u"&&typeof Bun.wrapAnsi==="function"?Bun.wrapAnsi:null,E36=q19??XO8});function PO8(A){if(!Number.isInteger(A))return!1;return A>=4352&&(A<=4447||A===9001||A===9002||11904<=A&&A<=12871&&A!==12351||12880<=A&&A<=19903||19968<=A&&A<=42182||43360<=A&&A<=43388||44032<=A&&A<=55203||63744<=A&&A<=64255||65040<=A&&A<=65049||65072<=A&&A<=65131||65281<=A&&A<=65376||65504<=A&&A<=65510||110592<=A&&A<=110593||127488<=A&&A<=127569||131072<=A&&A<=262141)}function hB(A,q,K){let Y=[...A],z=[],w=typeof K==="number"?K:Y.length,_=!1,$,O=0,H="";for(let[j,J]of Y.entries()){let M=!1;if(YN7.includes(J)){let D=/\d[^m]*/.exec(A.slice(j,j+18));if($=D&&D.length>0?D[0]:void 0,O<w){if(_=!0,$!==void 0)z.push($)}}else if(_&&J==="m")_=!1,M=!0;if(!_&&!M)O++;if(!K19.test(J)&&PO8(J.codePointAt())){if(O++,typeof K!=="number")w++}if(O>q&&O<=w)H+=J;else if(O===q&&!_&&$!==void 0)H=KN7(z);else if(O>=w){H+=KN7(z,!0,$);break}}return H}var K19,YN7,Y$1=(A)=>`${YN7[0]}[${A}m`,KN7=(A,q,K)=>{let Y=[];A=[...A];for(let z of A){let w=z;if(z.includes(";"))z=z.split(";")[0][0]+"0";let _=wJ.codes.get(Number.parseInt(z,10));if(_){let $=A.indexOf(_.toString());if($===-1)Y.push(Y$1(q?_:w));else A.splice($,1)}else if(q){Y.push(Y$1(0));break}else Y.push(Y$1(w))}if(q){if(Y=Y.filter((z,w)=>Y.indexOf(z)===w),K!==void 0){let z=Y$1(wJ.codes.get(Number.parseInt(K,10)));Y=Y.reduce((w,_)=>_===z?[_,...w]:[...w,_],[])}}return Y.join("")};var zN7=E(()=>{Gm6();K19=/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/,YN7=["\x1B",""]});var _N7=h((Sj2,wN7)=>{wN7.exports=()=>{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\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](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\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]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\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])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\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-\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]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\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(?:[\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\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\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-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\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-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\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 PP6(A,q={}){if(typeof A!=="string"||A.length===0)return 0;let{ambiguousIsNarrow:K=!0,countAnsiEscapeCodes:Y=!1}=q;if(!Y)A=Pz(A);if(A.length===0)return 0;let z=0,w={ambiguousAsWide:!K};for(let{segment:_}of Y19.segment(A)){let $=_.codePointAt(0);if($<=31||$>=127&&$<=159)continue;if($>=8203&&$<=8207||$===65279)continue;if($>=768&&$<=879||$>=6832&&$<=6911||$>=7616&&$<=7679||$>=8400&&$<=8447||$>=65056&&$<=65071)continue;if($>=55296&&$<=57343)continue;if($>=65024&&$<=65039)continue;if(z19.test(_))continue;if($N7.default().test(_)){z+=2;continue}z+=Vq6($,w)}return z}var $N7,Y19,z19;var ON7=E(()=>{_f();Bh6();$N7=q6(_N7(),1),Y19=new Intl.Segmenter,z19=/^\p{Default_Ignorable_Code_Point}$/u});function z$1(A,q,K){if(A.charAt(q)===" ")return q;let Y=K?1:-1;for(let z=0;z<=3;z++){let w=q+z*Y;if(A.charAt(w)===" ")return w}return q}function WO8(A,q,K={}){let{position:Y="end",space:z=!1,preferTruncationOnSpace:w=!1}=K,{truncationCharacter:_="…"}=K;if(typeof A!=="string")throw TypeError(`Expected \`input\` to be a string, got ${typeof A}`);if(typeof q!=="number")throw TypeError(`Expected \`columns\` to be a number, got ${typeof q}`);if(q<1)return"";if(q===1)return _;let $=PP6(A);if($<=q)return A;if(Y==="start"){if(w){let O=z$1(A,$-q+1,!0);return _+hB(A,O,$).trim()}if(z===!0)_+=" ";return _+hB(A,$-q+PP6(_),$)}if(Y==="middle"){if(z===!0)_=` ${_} `;let O=Math.floor(q/2);if(w){let H=z$1(A,O),j=z$1(A,$-(q-O)+1,!0);return hB(A,0,H)+_+hB(A,j,$).trim()}return hB(A,0,O)+_+hB(A,$-(q-O)+PP6(_),$)}if(Y==="end"){if(w){let O=z$1(A,q-1);return hB(A,0,O)+_}if(z===!0)_=` ${_}`;return hB(A,0,q-PP6(_))+_}throw Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${Y}`)}var HN7=E(()=>{zN7();ON7()});function Vf(A,q,K){if(K==="wrap")return E36(A,q,{trim:!1,hard:!0});if(K==="wrap-trim")return E36(A,q,{trim:!0,hard:!0});if(K.startsWith("truncate")){let Y="end";if(K==="truncate-middle")Y="middle";if(K==="truncate-start")Y="start";return WO8(A,q,{position:Y})}return A}var w$1=E(()=>{K$1();HN7()});function _$1(A,q={},K,Y=[]){let z=A.textStyles?{...q,...A.textStyles}:q;for(let w of A.childNodes){if(w===void 0)continue;if(w.nodeName==="#text"){if(w.nodeValue.length>0)Y.push({text:w.nodeValue,styles:z,hyperlink:K})}else if(w.nodeName==="ink-text"||w.nodeName==="ink-virtual-text")_$1(w,z,K,Y);else if(w.nodeName==="ink-link"){let _=w.attributes.href;_$1(w,z,_||K,Y)}}return Y}function GO8(A){let q="";for(let K of A.childNodes){if(K===void 0)continue;if(K.nodeName==="#text")q+=K.nodeValue;else if(K.nodeName==="ink-text"||K.nodeName==="ink-virtual-text")q+=GO8(K);else if(K.nodeName==="ink-link")q+=GO8(K)}return q}var jN7;var ZO8=E(()=>{jN7=GO8});function fO8(A){return A>=48&&A<=126}var CB,Et="\x1B",ed="\x07",Lt=";",fI;var L36=E(()=>{CB={NUL:0,SOH:1,STX:2,ETX:3,EOT:4,ENQ:5,ACK:6,BEL:7,BS:8,HT:9,LF:10,VT:11,FF:12,CR:13,SO:14,SI:15,DLE:16,DC1:17,DC2:18,DC3:19,DC4:20,NAK:21,SYN:22,ETB:23,CAN:24,EM:25,SUB:26,ESC:27,FS:28,GS:29,RS:30,US:31,DEL:127},fI={CSI:91,OSC:93,DCS:80,APC:95,PM:94,SOS:88,ST:92}});function JN7(A){return A>=WP6.PARAM_START&&A<=WP6.PARAM_END}function $$1(A){return A>=WP6.INTERMEDIATE_START&&A<=WP6.INTERMEDIATE_END}function MN7(A){return A>=WP6.FINAL_START&&A<=WP6.FINAL_END}function l$(...A){if(A.length===0)return TO8;if(A.length===1)return`${TO8}${A[0]}`;let q=A.slice(0,-1),K=A[A.length-1];return`${TO8}${q.join(Lt)}${K}`}function PN7(A=1){return A===0?"":l$(A,"A")}function w19(A=1){return A===0?"":l$(A,"B")}function _19(A=1){return A===0?"":l$(A,"C")}function $19(A=1){return A===0?"":l$(A,"D")}function WN7(A){return l$(A,"G")}function GN7(A,q){let K="";if(A<0)K+=$19(-A);else if(A>0)K+=_19(A);if(q<0)K+=PN7(-q);else if(q>0)K+=w19(q);return K}function ZN7(A){if(A<=0)return"";let q="";for(let K=0;K<A;K++)if(q+=H19,K<A-1)q+=PN7(1);return q+=O19,q}var TO8,WP6,bO,DN7,XN7,vO8,O19,VO8,Uj2,dj2,H19,O$1,NO8,fN7,TN7,vN7,VN7,NN7,GP6;var TI=E(()=>{L36();TO8=Et+String.fromCharCode(fI.CSI),WP6={PARAM_START:48,PARAM_END:63,INTERMEDIATE_START:32,INTERMEDIATE_END:47,FINAL_START:64,FINAL_END:126};bO={CUU:65,CUD:66,CUF:67,CUB:68,CNL:69,CPL:70,CHA:71,CUP:72,CHT:73,VPA:100,HVP:102,ED:74,EL:75,ECH:88,IL:76,DL:77,ICH:64,DCH:80,SU:83,SD:84,SM:104,RM:108,SGR:109,DSR:110,DECSCUSR:113,DECSTBM:114,SCOSC:115,SCORC:117,CBT:90},DN7=["toEnd","toStart","all","scrollback"],XN7=["toEnd","toStart","all"],vO8=[{style:"block",blinking:!0},{style:"block",blinking:!0},{style:"block",blinking:!1},{style:"underline",blinking:!0},{style:"underline",blinking:!1},{style:"bar",blinking:!0},{style:"bar",blinking:!1}];O19=l$("G"),VO8=l$("H");Uj2=l$("s"),dj2=l$("u"),H19=l$(2,"K"),O$1=l$(2,"J"),NO8=l$(3,"J");fN7=l$("200~"),TN7=l$("201~"),vN7=l$("I"),VN7=l$("O"),NN7=l$(">1u"),GP6=l$("<u")});function ZP6(){let A="ground",q="";return{feed(K){let Y=kN7(K,A,q,!1);return A=Y.state.state,q=Y.state.buffer,Y.tokens},flush(){let K=kN7("",A,q,!0);return A=K.state.state,q=K.state.buffer,K.tokens},reset(){A="ground",q=""},buffer(){return q}}}function kN7(A,q,K,Y){let z=[],w={state:q,buffer:""},_=K+A,$=0,O=0,H=0,j=()=>{if($>O){let M=_.slice(O,$);if(M)z.push({type:"text",value:M})}O=$},J=(M)=>{if(M)z.push({type:"sequence",value:M});w.state="ground",O=$};while($<_.length){let M=_.charCodeAt($);switch(w.state){case"ground":if(M===CB.ESC)j(),H=$,w.state="escape",$++;else $++;break;case"escape":if(M===fI.CSI)w.state="csi",$++;else if(M===fI.OSC)w.state="osc",$++;else if(M===fI.DCS)w.state="dcs",$++;else if(M===fI.APC)w.state="apc",$++;else if(M===79)w.state="ss3",$++;else if($$1(M))w.state="escapeIntermediate",$++;else if(fO8(M))$++,J(_.slice(H,$));else if(M===CB.ESC)J(_.slice(H,$)),H=$,w.state="escape",$++;else w.state="ground",O=H;break;case"escapeIntermediate":if($$1(M))$++;else if(fO8(M))$++,J(_.slice(H,$));else w.state="ground",O=H;break;case"csi":if(MN7(M))$++,J(_.slice(H,$));else if(JN7(M)||$$1(M))$++;else w.state="ground",O=H;break;case"ss3":if(M>=64&&M<=126)$++,J(_.slice(H,$));else w.state="ground",O=H;break;case"osc":if(M===CB.BEL)$++,J(_.slice(H,$));else if(M===CB.ESC&&$+1<_.length&&_.charCodeAt($+1)===fI.ST)$+=2,J(_.slice(H,$));else $++;break;case"dcs":case"apc":if(M===CB.BEL)$++,J(_.slice(H,$));else if(M===CB.ESC&&$+1<_.length&&_.charCodeAt($+1)===fI.ST)$+=2,J(_.slice(H,$));else $++;break}}if(w.state==="ground")j();else if(Y){let M=_.slice(H);if(M)z.push({type:"sequence",value:M});w.state="ground"}else w.buffer=_.slice(H);return{tokens:z,state:w}}var H$1=E(()=>{L36();TI()});function EN7(A,q=j19){if(!A.includes("\t"))return A;let K=ZP6(),Y=K.feed(A);Y.push(...K.flush());let z="",w=0;for(let _ of Y)if(_.type==="sequence")z+=_.value;else{let $=_.value.split(/(\t|\n)/);for(let O of $)if(O==="\t"){let H=q-w%q;z+=" ".repeat(H),w+=H}else if(O===`
`)z+=O,w=0;else z+=O,w+=u8(O)}return z}var j19=8;var LN7=E(()=>{_5();H$1()});var gk,fP6;var j$1=E(()=>{gk=new WeakMap,fP6=new WeakMap});var J19,yN7;var RN7=E(()=>{J19=(()=>{var A=import.meta.url;return function(q){q=q||{};var K;K||(K=typeof q<"u"?q:{});var Y,z;K.ready=new Promise(function(s6,q1){Y=s6,z=q1});var w=Object.assign({},K),_="";typeof document<"u"&&document.currentScript&&(_=document.currentScript.src),A&&(_=A),_.indexOf("blob:")!==0?_=_.substr(0,_.replace(/[?#].*/,"").lastIndexOf("/")+1):_="";var $=K.print||console.log.bind(console),O=K.printErr||console.warn.bind(console);Object.assign(K,w),w=null;var H;K.wasmBinary&&(H=K.wasmBinary);var j=K.noExitRuntime||!0;typeof WebAssembly!="object"&&c("no native wasm support detected");var J,M=!1;function D(s6,q1,S1){S1=q1+S1;for(var F1="";!(q1>=S1);){var e1=s6[q1++];if(!e1)break;if(e1&128){var R8=s6[q1++]&63;if((e1&224)==192)F1+=String.fromCharCode((e1&31)<<6|R8);else{var k1=s6[q1++]&63;e1=(e1&240)==224?(e1&15)<<12|R8<<6|k1:(e1&7)<<18|R8<<12|k1<<6|s6[q1++]&63,65536>e1?F1+=String.fromCharCode(e1):(e1-=65536,F1+=String.fromCharCode(55296|e1>>10,56320|e1&1023))}}else F1+=String.fromCharCode(e1)}return F1}var X,P,W,G,Z,f,v,V,N;function L(){var s6=J.buffer;X=s6,K.HEAP8=P=new Int8Array(s6),K.HEAP16=G=new Int16Array(s6),K.HEAP32=f=new Int32Array(s6),K.HEAPU8=W=new Uint8Array(s6),K.HEAPU16=Z=new Uint16Array(s6),K.HEAPU32=v=new Uint32Array(s6),K.HEAPF32=V=new Float32Array(s6),K.HEAPF64=N=new Float64Array(s6)}var S,C=[],m=[],x=[];function p(){var s6=K.preRun.shift();C.unshift(s6)}var g=0,b=null,Q=null;function c(s6){if(K.onAbort)K.onAbort(s6);throw s6="Aborted("+s6+")",O(s6),M=!0,s6=new WebAssembly.RuntimeError(s6+". Build with -sASSERTIONS for more info."),z(s6),s6}function d(s6){return s6.startsWith("data:application/octet-stream;base64,")}var A6="data:application/octet-stream;base64,[encoded data, 95648 characters]";if(!d(A6)){var e=A6;A6=K.locateFile?K.locateFile(e,_):_+e}function O6(){var s6=A6;try{if(s6==A6&&H)return new Uint8Array(H);if(d(s6))try{var q1=l5(s6.slice(37)),S1=new Uint8Array(q1.length);for(s6=0;s6<q1.length;++s6)S1[s6]=q1.charCodeAt(s6);var F1=S1}catch(R8){throw Error("Converting base64 string to bytes failed.")}else F1=void 0;var e1=F1;if(e1)return e1;throw"both async and sync fetching of the wasm failed"}catch(R8){c(R8)}}function P6(){return H||typeof fetch!="function"?Promise.resolve().then(function(){return O6()}):fetch(A6,{credentials:"same-origin"}).then(function(s6){if(!s6.ok)throw"failed to load wasm binary file at '"+A6+"'";return s6.arrayBuffer()}).catch(function(){return O6()})}function f6(s6){for(;0<s6.length;)s6.shift()(K)}function a(s6){if(s6===void 0)return"_unknown";s6=s6.replace(/[^a-zA-Z0-9_]/g,"$");var q1=s6.charCodeAt(0);return 48<=q1&&57>=q1?"_"+s6:s6}function s(s6,q1){return s6=a(s6),function(){return q1.apply(this,arguments)}}var _6=[{},{value:void 0},{value:null},{value:!0},{value:!1}],H6=[];function y6(s6){var q1=Error,S1=s(s6,function(F1){this.name=s6,this.message=F1,F1=Error(F1).stack,F1!==void 0&&(this.stack=this.toString()+`
`+F1.replace(/^Error(:[^\n]*)?\n/,""))});return S1.prototype=Object.create(q1.prototype),S1.prototype.constructor=S1,S1.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},S1}var V6=void 0;function z6(s6){throw new V6(s6)}var t=(s6)=>{return s6||z6("Cannot use deleted val. handle = "+s6),_6[s6].value},T6=(s6)=>{switch(s6){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var q1=H6.length?H6.pop():_6.length;return _6[q1]={ga:1,value:s6},q1}},Y6=void 0,r=void 0;function J6(s6){for(var q1="";W[s6];)q1+=r[W[s6++]];return q1}var w6=[];function j6(){for(;w6.length;){var s6=w6.pop();s6.M.$=!1,s6.delete()}}var Z6=void 0,S6={};function L6(s6,q1){for(q1===void 0&&z6("ptr should not be undefined");s6.R;)q1=s6.ba(q1),s6=s6.R;return q1}var X6={};function D6(s6){s6=_Y(s6);var q1=J6(s6);return U3(s6),q1}function N6(s6,q1){var S1=X6[s6];return S1===void 0&&z6(q1+" has unknown type "+D6(s6)),S1}function R6(){}var C6=!1;function B6(s6){--s6.count.value,s6.count.value===0&&(s6.T?s6.U.W(s6.T):s6.P.N.W(s6.O))}function m6(s6,q1,S1){if(q1===S1)return s6;if(S1.R===void 0)return null;return s6=m6(s6,q1,S1.R),s6===null?null:S1.na(s6)}var Q6={};function A1(s6,q1){return q1=L6(s6,q1),S6[q1]}var I6=void 0;function c6(s6){throw new I6(s6)}function J1(s6,q1){return q1.P&&q1.O||c6("makeClassHandle requires ptr and ptrType"),!!q1.U!==!!q1.T&&c6("Both smartPtrType and smartPtr must be specified"),q1.count={value:1},W1(Object.create(s6,{M:{value:q1}}))}function W1(s6){if(typeof FinalizationRegistry>"u")return W1=(q1)=>q1,s6;return C6=new FinalizationRegistry((q1)=>{B6(q1.M)}),W1=(q1)=>{var S1=q1.M;return S1.T&&C6.register(q1,{M:S1},q1),q1},R6=(q1)=>{C6.unregister(q1)},W1(s6)}var N1={};function L1(s6){for(;s6.length;){var q1=s6.pop();s6.pop()(q1)}}function v6(s6){return this.fromWireType(f[s6>>2])}var G6={},U6={};function M1(s6,q1,S1){function F1(D8){D8=S1(D8),D8.length!==s6.length&&c6("Mismatched type converter count");for(var g8=0;g8<s6.length;++g8)_1(s6[g8],D8[g8])}s6.forEach(function(D8){U6[D8]=q1});var e1=Array(q1.length),R8=[],k1=0;q1.forEach((D8,g8)=>{X6.hasOwnProperty(D8)?e1[g8]=X6[D8]:(R8.push(D8),G6.hasOwnProperty(D8)||(G6[D8]=[]),G6[D8].push(()=>{e1[g8]=X6[D8],++k1,k1===R8.length&&F1(e1)}))}),R8.length===0&&F1(e1)}function O1(s6){switch(s6){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw TypeError("Unknown type size: "+s6)}}function _1(s6,q1,S1={}){if(!("argPackAdvance"in q1))throw TypeError("registerType registeredInstance requires argPackAdvance");var F1=q1.name;if(s6||z6('type "'+F1+'" must have a positive integer typeid pointer'),X6.hasOwnProperty(s6)){if(S1.ua)return;z6("Cannot register type '"+F1+"' twice")}X6[s6]=q1,delete U6[s6],G6.hasOwnProperty(s6)&&(q1=G6[s6],delete G6[s6],q1.forEach((e1)=>e1()))}function x1(s6){z6(s6.M.P.N.name+" instance already deleted")}function f1(){}function g1(s6,q1,S1){if(s6[q1].S===void 0){var F1=s6[q1];s6[q1]=function(){return s6[q1].S.hasOwnProperty(arguments.length)||z6("Function '"+S1+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+s6[q1].S+")!"),s6[q1].S[arguments.length].apply(this,arguments)},s6[q1].S=[],s6[q1].S[F1.Z]=F1}}function j8(s6,q1){K.hasOwnProperty(s6)?(z6("Cannot register public name '"+s6+"' twice"),g1(K,s6,s6),K.hasOwnProperty(void 0)&&z6("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),K[s6].S[void 0]=q1):K[s6]=q1}function jA(s6,q1,S1,F1,e1,R8,k1,D8){this.name=s6,this.constructor=q1,this.X=S1,this.W=F1,this.R=e1,this.pa=R8,this.ba=k1,this.na=D8,this.ja=[]}function _A(s6,q1,S1){for(;q1!==S1;)q1.ba||z6("Expected null or instance of "+S1.name+", got an instance of "+q1.name),s6=q1.ba(s6),q1=q1.R;return s6}function rA(s6,q1){if(q1===null)return this.ea&&z6("null is not a valid "+this.name),0;return q1.M||z6('Cannot pass "'+$z(q1)+'" as a '+this.name),q1.M.O||z6("Cannot pass deleted object as a pointer of type "+this.name),_A(q1.M.O,q1.M.P.N,this.N)}function h7(s6,q1){if(q1===null){if(this.ea&&z6("null is not a valid "+this.name),this.da){var S1=this.fa();return s6!==null&&s6.push(this.W,S1),S1}return 0}if(q1.M||z6('Cannot pass "'+$z(q1)+'" as a '+this.name),q1.M.O||z6("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&q1.M.P.ca&&z6("Cannot convert argument of type "+(q1.M.U?q1.M.U.name:q1.M.P.name)+" to parameter type "+this.name),S1=_A(q1.M.O,q1.M.P.N,this.N),this.da)switch(q1.M.T===void 0&&z6("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:q1.M.U===this?S1=q1.M.T:z6("Cannot convert argument of type "+(q1.M.U?q1.M.U.name:q1.M.P.name)+" to parameter type "+this.name);break;case 1:S1=q1.M.T;break;case 2:if(q1.M.U===this)S1=q1.M.T;else{var F1=q1.clone();S1=this.xa(S1,T6(function(){F1.delete()})),s6!==null&&s6.push(this.W,S1)}break;default:z6("Unsupporting sharing policy")}return S1}function IA(s6,q1){if(q1===null)return this.ea&&z6("null is not a valid "+this.name),0;return q1.M||z6('Cannot pass "'+$z(q1)+'" as a '+this.name),q1.M.O||z6("Cannot pass deleted object as a pointer of type "+this.name),q1.M.P.ca&&z6("Cannot convert argument of type "+q1.M.P.name+" to parameter type "+this.name),_A(q1.M.O,q1.M.P.N,this.N)}function N7(s6,q1,S1,F1){this.name=s6,this.N=q1,this.ea=S1,this.ca=F1,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,q1.R!==void 0?this.toWireType=h7:(this.toWireType=F1?rA:IA,this.V=null)}function w4(s6,q1){K.hasOwnProperty(s6)||c6("Replacing nonexistant public symbol"),K[s6]=q1,K[s6].Z=void 0}function S4(s6,q1){var S1=[];return function(){if(S1.length=0,Object.assign(S1,arguments),s6.includes("j")){var F1=K["dynCall_"+s6];F1=S1&&S1.length?F1.apply(null,[q1].concat(S1)):F1.call(null,q1)}else F1=S.get(q1).apply(null,S1);return F1}}function Dq(s6,q1){s6=J6(s6);var S1=s6.includes("j")?S4(s6,q1):S.get(q1);return typeof S1!="function"&&z6("unknown function pointer with signature "+s6+": "+q1),S1}var f7=void 0;function k7(s6,q1){function S1(R8){e1[R8]||X6[R8]||(U6[R8]?U6[R8].forEach(S1):(F1.push(R8),e1[R8]=!0))}var F1=[],e1={};throw q1.forEach(S1),new f7(s6+": "+F1.map(D6).join([", "]))}function mq(s6,q1,S1,F1,e1){var R8=q1.length;2>R8&&z6("argTypes array size mismatch! Must at least get return value and 'this' types!");var k1=q1[1]!==null&&S1!==null,D8=!1;for(S1=1;S1<q1.length;++S1)if(q1[S1]!==null&&q1[S1].V===void 0){D8=!0;break}var g8=q1[0].name!=="void",I8=R8-2,t8=Array(I8),CA=[],E4=[];return function(){if(arguments.length!==I8&&z6("function "+s6+" called with "+arguments.length+" arguments, expected "+I8+" args!"),E4.length=0,CA.length=k1?2:1,CA[0]=e1,k1){var l4=q1[1].toWireType(E4,this);CA[1]=l4}for(var M7=0;M7<I8;++M7)t8[M7]=q1[M7+2].toWireType(E4,arguments[M7]),CA.push(t8[M7]);if(M7=F1.apply(null,CA),D8)L1(E4);else for(var u4=k1?1:2;u4<q1.length;u4++){var d3=u4===1?l4:t8[u4-2];q1[u4].V!==null&&q1[u4].V(d3)}return l4=g8?q1[0].fromWireType(M7):void 0,l4}}function u9(s6,q1){for(var S1=[],F1=0;F1<s6;F1++)S1.push(v[q1+4*F1>>2]);return S1}function O3(s6){4<s6&&--_6[s6].ga===0&&(_6[s6]=void 0,H6.push(s6))}function $z(s6){if(s6===null)return"null";var q1=typeof s6;return q1==="object"||q1==="array"||q1==="function"?s6.toString():""+s6}function N$(s6,q1){switch(q1){case 2:return function(S1){return this.fromWireType(V[S1>>2])};case 3:return function(S1){return this.fromWireType(N[S1>>3])};default:throw TypeError("Unknown float type: "+s6)}}function Rz(s6,q1,S1){switch(q1){case 0:return S1?function(F1){return P[F1]}:function(F1){return W[F1]};case 1:return S1?function(F1){return G[F1>>1]}:function(F1){return Z[F1>>1]};case 2:return S1?function(F1){return f[F1>>2]}:function(F1){return v[F1>>2]};default:throw TypeError("Unknown integer type: "+s6)}}function Oz(s6,q1){for(var S1="",F1=0;!(F1>=q1/2);++F1){var e1=G[s6+2*F1>>1];if(e1==0)break;S1+=String.fromCharCode(e1)}return S1}function uY(s6,q1,S1){if(S1===void 0&&(S1=2147483647),2>S1)return 0;S1-=2;var F1=q1;S1=S1<2*s6.length?S1/2:s6.length;for(var e1=0;e1<S1;++e1)G[q1>>1]=s6.charCodeAt(e1),q1+=2;return G[q1>>1]=0,q1-F1}function mY(s6){return 2*s6.length}function s2(s6,q1){for(var S1=0,F1="";!(S1>=q1/4);){var e1=f[s6+4*S1>>2];if(e1==0)break;++S1,65536<=e1?(e1-=65536,F1+=String.fromCharCode(55296|e1>>10,56320|e1&1023)):F1+=String.fromCharCode(e1)}return F1}function TY(s6,q1,S1){if(S1===void 0&&(S1=2147483647),4>S1)return 0;var F1=q1;S1=F1+S1-4;for(var e1=0;e1<s6.length;++e1){var R8=s6.charCodeAt(e1);if(55296<=R8&&57343>=R8){var k1=s6.charCodeAt(++e1);R8=65536+((R8&1023)<<10)|k1&1023}if(f[q1>>2]=R8,q1+=4,q1+4>S1)break}return f[q1>>2]=0,q1-F1}function sz(s6){for(var q1=0,S1=0;S1<s6.length;++S1){var F1=s6.charCodeAt(S1);55296<=F1&&57343>=F1&&++S1,q1+=4}return q1}var F3={};function BY(s6){var q1=F3[s6];return q1===void 0?J6(s6):q1}var Hz=[];function Xw(s6){var q1=Hz.length;return Hz.push(s6),q1}function _7(s6,q1){for(var S1=Array(s6),F1=0;F1<s6;++F1)S1[F1]=N6(v[q1+4*F1>>2],"parameter "+F1);return S1}var jz=[],m9=[null,[],[]];V6=K.BindingError=y6("BindingError"),K.count_emval_handles=function(){for(var s6=0,q1=5;q1<_6.length;++q1)_6[q1]!==void 0&&++s6;return s6},K.get_first_emval=function(){for(var s6=5;s6<_6.length;++s6)if(_6[s6]!==void 0)return _6[s6];return null},Y6=K.PureVirtualError=y6("PureVirtualError");for(var c5=Array(256),Q3=0;256>Q3;++Q3)c5[Q3]=String.fromCharCode(Q3);r=c5,K.getInheritedInstanceCount=function(){return Object.keys(S6).length},K.getLiveInheritedInstances=function(){var s6=[],q1;for(q1 in S6)S6.hasOwnProperty(q1)&&s6.push(S6[q1]);return s6},K.flushPendingDeletes=j6,K.setDelayFunction=function(s6){Z6=s6,w6.length&&Z6&&Z6(j6)},I6=K.InternalError=y6("InternalError"),f1.prototype.isAliasOf=function(s6){if(!(this instanceof f1&&s6 instanceof f1))return!1;var q1=this.M.P.N,S1=this.M.O,F1=s6.M.P.N;for(s6=s6.M.O;q1.R;)S1=q1.ba(S1),q1=q1.R;for(;F1.R;)s6=F1.ba(s6),F1=F1.R;return q1===F1&&S1===s6},f1.prototype.clone=function(){if(this.M.O||x1(this),this.M.aa)return this.M.count.value+=1,this;var s6=W1,q1=Object,S1=q1.create,F1=Object.getPrototypeOf(this),e1=this.M;return s6=s6(S1.call(q1,F1,{M:{value:{count:e1.count,$:e1.$,aa:e1.aa,O:e1.O,P:e1.P,T:e1.T,U:e1.U}}})),s6.M.count.value+=1,s6.M.$=!1,s6},f1.prototype.delete=function(){this.M.O||x1(this),this.M.$&&!this.M.aa&&z6("Object already scheduled for deletion"),R6(this),B6(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},f1.prototype.isDeleted=function(){return!this.M.O},f1.prototype.deleteLater=function(){return this.M.O||x1(this),this.M.$&&!this.M.aa&&z6("Object already scheduled for deletion"),w6.push(this),w6.length===1&&Z6&&Z6(j6),this.M.$=!0,this},N7.prototype.qa=function(s6){return this.ka&&(s6=this.ka(s6)),s6},N7.prototype.ha=function(s6){this.W&&this.W(s6)},N7.prototype.argPackAdvance=8,N7.prototype.readValueFromPointer=v6,N7.prototype.deleteObject=function(s6){if(s6!==null)s6.delete()},N7.prototype.fromWireType=function(s6){function q1(){return this.da?J1(this.N.X,{P:this.wa,O:S1,U:this,T:s6}):J1(this.N.X,{P:this,O:s6})}var S1=this.qa(s6);if(!S1)return this.ha(s6),null;var F1=A1(this.N,S1);if(F1!==void 0){if(F1.M.count.value===0)return F1.M.O=S1,F1.M.T=s6,F1.clone();return F1=F1.clone(),this.ha(s6),F1}if(F1=this.N.pa(S1),F1=Q6[F1],!F1)return q1.call(this);F1=this.ca?F1.la:F1.pointerType;var e1=m6(S1,this.N,F1.N);return e1===null?q1.call(this):this.da?J1(F1.N.X,{P:F1,O:e1,U:this,T:s6}):J1(F1.N.X,{P:F1,O:e1})},f7=K.UnboundTypeError=y6("UnboundTypeError");var l5=typeof atob=="function"?atob:function(s6){var q1="",S1=0;s6=s6.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var F1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(s6.charAt(S1++)),e1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(s6.charAt(S1++)),R8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(s6.charAt(S1++)),k1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(s6.charAt(S1++));F1=F1<<2|e1>>4,e1=(e1&15)<<4|R8>>2;var D8=(R8&3)<<6|k1;q1+=String.fromCharCode(F1),R8!==64&&(q1+=String.fromCharCode(e1)),k1!==64&&(q1+=String.fromCharCode(D8))}while(S1<s6.length);return q1},Tq={l:function(s6,q1,S1,F1){c("Assertion failed: "+(s6?D(W,s6):"")+", at: "+[q1?q1?D(W,q1):"":"unknown filename",S1,F1?F1?D(W,F1):"":"unknown function"])},q:function(s6,q1,S1){s6=J6(s6),q1=N6(q1,"wrapper"),S1=t(S1);var F1=[].slice,e1=q1.N,R8=e1.X,k1=e1.R.X,D8=e1.R.constructor;s6=s(s6,function(){e1.R.ja.forEach(function(I8){if(this[I8]===k1[I8])throw new Y6("Pure virtual function "+I8+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:R8}),this.__construct.apply(this,F1.call(arguments))}),R8.__construct=function(){this===R8&&z6("Pass correct 'this' to __construct");var I8=D8.implement.apply(void 0,[this].concat(F1.call(arguments)));R6(I8);var t8=I8.M;I8.notifyOnDestruction(),t8.aa=!0,Object.defineProperties(this,{M:{value:t8}}),W1(this),I8=t8.O,I8=L6(e1,I8),S6.hasOwnProperty(I8)?z6("Tried to register registered instance: "+I8):S6[I8]=this},R8.__destruct=function(){this===R8&&z6("Pass correct 'this' to __destruct"),R6(this);var I8=this.M.O;I8=L6(e1,I8),S6.hasOwnProperty(I8)?delete S6[I8]:z6("Tried to unregister unregistered instance: "+I8)},s6.prototype=Object.create(R8);for(var g8 in S1)s6.prototype[g8]=S1[g8];return T6(s6)},j:function(s6){var q1=N1[s6];delete N1[s6];var{fa:S1,W:F1,ia:e1}=q1,R8=e1.map((k1)=>k1.ta).concat(e1.map((k1)=>k1.za));M1([s6],R8,(k1)=>{var D8={};return e1.forEach((g8,I8)=>{var t8=k1[I8],CA=g8.ra,E4=g8.sa,l4=k1[I8+e1.length],M7=g8.ya,u4=g8.Aa;D8[g8.oa]={read:(d3)=>t8.fromWireType(CA(E4,d3)),write:(d3,q3)=>{var w9=[];M7(u4,d3,l4.toWireType(w9,q3)),L1(w9)}}}),[{name:q1.name,fromWireType:function(g8){var I8={},t8;for(t8 in D8)I8[t8]=D8[t8].read(g8);return F1(g8),I8},toWireType:function(g8,I8){for(var t8 in D8)if(!(t8 in I8))throw TypeError('Missing field:  "'+t8+'"');var CA=S1();for(t8 in D8)D8[t8].write(CA,I8[t8]);return g8!==null&&g8.push(F1,CA),CA},argPackAdvance:8,readValueFromPointer:v6,V:F1}]})},v:function(){},B:function(s6,q1,S1,F1,e1){var R8=O1(S1);q1=J6(q1),_1(s6,{name:q1,fromWireType:function(k1){return!!k1},toWireType:function(k1,D8){return D8?F1:e1},argPackAdvance:8,readValueFromPointer:function(k1){if(S1===1)var D8=P;else if(S1===2)D8=G;else if(S1===4)D8=f;else throw TypeError("Unknown boolean type size: "+q1);return this.fromWireType(D8[k1>>R8])},V:null})},f:function(s6,q1,S1,F1,e1,R8,k1,D8,g8,I8,t8,CA,E4){t8=J6(t8),R8=Dq(e1,R8),D8&&(D8=Dq(k1,D8)),I8&&(I8=Dq(g8,I8)),E4=Dq(CA,E4);var l4=a(t8);j8(l4,function(){k7("Cannot construct "+t8+" due to unbound types",[F1])}),M1([s6,q1,S1],F1?[F1]:[],function(M7){if(M7=M7[0],F1)var u4=M7.N,d3=u4.X;else d3=f1.prototype;M7=s(l4,function(){if(Object.getPrototypeOf(this)!==q3)throw new V6("Use 'new' to construct "+t8);if(w9.Y===void 0)throw new V6(t8+" has no accessible constructor");var Fw=w9.Y[arguments.length];if(Fw===void 0)throw new V6("Tried to invoke ctor of "+t8+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(w9.Y).toString()+") parameters instead!");return Fw.apply(this,arguments)});var q3=Object.create(d3,{constructor:{value:M7}});M7.prototype=q3;var w9=new jA(t8,M7,q3,E4,u4,R8,D8,I8);u4=new N7(t8,w9,!0,!1),d3=new N7(t8+"*",w9,!1,!1);var m_=new N7(t8+" const*",w9,!1,!0);return Q6[s6]={pointerType:d3,la:m_},w4(l4,M7),[u4,d3,m_]})},d:function(s6,q1,S1,F1,e1,R8,k1){var D8=u9(S1,F1);q1=J6(q1),R8=Dq(e1,R8),M1([],[s6],function(g8){function I8(){k7("Cannot call "+t8+" due to unbound types",D8)}g8=g8[0];var t8=g8.name+"."+q1;q1.startsWith("@@")&&(q1=Symbol[q1.substring(2)]);var CA=g8.N.constructor;return CA[q1]===void 0?(I8.Z=S1-1,CA[q1]=I8):(g1(CA,q1,t8),CA[q1].S[S1-1]=I8),M1([],D8,function(E4){return E4=mq(t8,[E4[0],null].concat(E4.slice(1)),null,R8,k1),CA[q1].S===void 0?(E4.Z=S1-1,CA[q1]=E4):CA[q1].S[S1-1]=E4,[]}),[]})},p:function(s6,q1,S1,F1,e1,R8){0<q1||c();var k1=u9(q1,S1);e1=Dq(F1,e1),M1([],[s6],function(D8){D8=D8[0];var g8="constructor "+D8.name;if(D8.N.Y===void 0&&(D8.N.Y=[]),D8.N.Y[q1-1]!==void 0)throw new V6("Cannot register multiple constructors with identical number of parameters ("+(q1-1)+") for class '"+D8.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return D8.N.Y[q1-1]=()=>{k7("Cannot construct "+D8.name+" due to unbound types",k1)},M1([],k1,function(I8){return I8.splice(1,0,null),D8.N.Y[q1-1]=mq(g8,I8,null,e1,R8),[]}),[]})},a:function(s6,q1,S1,F1,e1,R8,k1,D8){var g8=u9(S1,F1);q1=J6(q1),R8=Dq(e1,R8),M1([],[s6],function(I8){function t8(){k7("Cannot call "+CA+" due to unbound types",g8)}I8=I8[0];var CA=I8.name+"."+q1;q1.startsWith("@@")&&(q1=Symbol[q1.substring(2)]),D8&&I8.N.ja.push(q1);var E4=I8.N.X,l4=E4[q1];return l4===void 0||l4.S===void 0&&l4.className!==I8.name&&l4.Z===S1-2?(t8.Z=S1-2,t8.className=I8.name,E4[q1]=t8):(g1(E4,q1,CA),E4[q1].S[S1-2]=t8),M1([],g8,function(M7){return M7=mq(CA,M7,I8,R8,k1),E4[q1].S===void 0?(M7.Z=S1-2,E4[q1]=M7):E4[q1].S[S1-2]=M7,[]}),[]})},A:function(s6,q1){q1=J6(q1),_1(s6,{name:q1,fromWireType:function(S1){var F1=t(S1);return O3(S1),F1},toWireType:function(S1,F1){return T6(F1)},argPackAdvance:8,readValueFromPointer:v6,V:null})},n:function(s6,q1,S1){S1=O1(S1),q1=J6(q1),_1(s6,{name:q1,fromWireType:function(F1){return F1},toWireType:function(F1,e1){return e1},argPackAdvance:8,readValueFromPointer:N$(q1,S1),V:null})},e:function(s6,q1,S1,F1,e1){q1=J6(q1),e1===-1&&(e1=4294967295),e1=O1(S1);var R8=(D8)=>D8;if(F1===0){var k1=32-8*S1;R8=(D8)=>D8<<k1>>>k1}S1=q1.includes("unsigned")?function(D8,g8){return g8>>>0}:function(D8,g8){return g8},_1(s6,{name:q1,fromWireType:R8,toWireType:S1,argPackAdvance:8,readValueFromPointer:Rz(q1,e1,F1!==0),V:null})},b:function(s6,q1,S1){function F1(R8){R8>>=2;var k1=v;return new e1(X,k1[R8+1],k1[R8])}var e1=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][q1];S1=J6(S1),_1(s6,{name:S1,fromWireType:F1,argPackAdvance:8,readValueFromPointer:F1},{ua:!0})},o:function(s6,q1){q1=J6(q1);var S1=q1==="std::string";_1(s6,{name:q1,fromWireType:function(F1){var e1=v[F1>>2],R8=F1+4;if(S1)for(var k1=R8,D8=0;D8<=e1;++D8){var g8=R8+D8;if(D8==e1||W[g8]==0){if(k1=k1?D(W,k1,g8-k1):"",I8===void 0)var I8=k1;else I8+=String.fromCharCode(0),I8+=k1;k1=g8+1}}else{I8=Array(e1);for(D8=0;D8<e1;++D8)I8[D8]=String.fromCharCode(W[R8+D8]);I8=I8.join("")}return U3(F1),I8},toWireType:function(F1,e1){e1 instanceof ArrayBuffer&&(e1=new Uint8Array(e1));var R8,k1=typeof e1=="string";if(k1||e1 instanceof Uint8Array||e1 instanceof Uint8ClampedArray||e1 instanceof Int8Array||z6("Cannot pass non-string to std::string"),S1&&k1){var D8=0;for(R8=0;R8<e1.length;++R8){var g8=e1.charCodeAt(R8);127>=g8?D8++:2047>=g8?D8+=2:55296<=g8&&57343>=g8?(D8+=4,++R8):D8+=3}R8=D8}else R8=e1.length;if(D8=Jz(4+R8+1),g8=D8+4,v[D8>>2]=R8,S1&&k1){if(k1=g8,g8=R8+1,R8=W,0<g8){g8=k1+g8-1;for(var I8=0;I8<e1.length;++I8){var t8=e1.charCodeAt(I8);if(55296<=t8&&57343>=t8){var CA=e1.charCodeAt(++I8);t8=65536+((t8&1023)<<10)|CA&1023}if(127>=t8){if(k1>=g8)break;R8[k1++]=t8}else{if(2047>=t8){if(k1+1>=g8)break;R8[k1++]=192|t8>>6}else{if(65535>=t8){if(k1+2>=g8)break;R8[k1++]=224|t8>>12}else{if(k1+3>=g8)break;R8[k1++]=240|t8>>18,R8[k1++]=128|t8>>12&63}R8[k1++]=128|t8>>6&63}R8[k1++]=128|t8&63}}R8[k1]=0}}else if(k1)for(k1=0;k1<R8;++k1)I8=e1.charCodeAt(k1),255<I8&&(U3(g8),z6("String has UTF-16 code units that do not fit in 8 bits")),W[g8+k1]=I8;else for(k1=0;k1<R8;++k1)W[g8+k1]=e1[k1];return F1!==null&&F1.push(U3,D8),D8},argPackAdvance:8,readValueFromPointer:v6,V:function(F1){U3(F1)}})},i:function(s6,q1,S1){if(S1=J6(S1),q1===2)var F1=Oz,e1=uY,R8=mY,k1=()=>Z,D8=1;else q1===4&&(F1=s2,e1=TY,R8=sz,k1=()=>v,D8=2);_1(s6,{name:S1,fromWireType:function(g8){for(var I8=v[g8>>2],t8=k1(),CA,E4=g8+4,l4=0;l4<=I8;++l4){var M7=g8+4+l4*q1;if(l4==I8||t8[M7>>D8]==0)E4=F1(E4,M7-E4),CA===void 0?CA=E4:(CA+=String.fromCharCode(0),CA+=E4),E4=M7+q1}return U3(g8),CA},toWireType:function(g8,I8){typeof I8!="string"&&z6("Cannot pass non-string to C++ string type "+S1);var t8=R8(I8),CA=Jz(4+t8+q1);return v[CA>>2]=t8>>D8,e1(I8,CA+4,t8+q1),g8!==null&&g8.push(U3,CA),CA},argPackAdvance:8,readValueFromPointer:v6,V:function(g8){U3(g8)}})},k:function(s6,q1,S1,F1,e1,R8){N1[s6]={name:J6(q1),fa:Dq(S1,F1),W:Dq(e1,R8),ia:[]}},h:function(s6,q1,S1,F1,e1,R8,k1,D8,g8,I8){N1[s6].ia.push({oa:J6(q1),ta:S1,ra:Dq(F1,e1),sa:R8,za:k1,ya:Dq(D8,g8),Aa:I8})},C:function(s6,q1){q1=J6(q1),_1(s6,{va:!0,name:q1,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(s6,q1,S1,F1,e1){s6=Hz[s6],q1=t(q1),S1=BY(S1);var R8=[];return v[F1>>2]=T6(R8),s6(q1,S1,R8,e1)},t:function(s6,q1,S1,F1){s6=Hz[s6],q1=t(q1),S1=BY(S1),s6(q1,S1,null,F1)},g:O3,m:function(s6,q1){var S1=_7(s6,q1),F1=S1[0];q1=F1.name+"_$"+S1.slice(1).map(function(k1){return k1.name}).join("_")+"$";var e1=jz[q1];if(e1!==void 0)return e1;var R8=Array(s6-1);return e1=Xw((k1,D8,g8,I8)=>{for(var t8=0,CA=0;CA<s6-1;++CA)R8[CA]=S1[CA+1].readValueFromPointer(I8+t8),t8+=S1[CA+1].argPackAdvance;k1=k1[D8].apply(k1,R8);for(CA=0;CA<s6-1;++CA)S1[CA+1].ma&&S1[CA+1].ma(R8[CA]);if(!F1.va)return F1.toWireType(g8,k1)}),jz[q1]=e1},D:function(s6){4<s6&&(_6[s6].ga+=1)},r:function(s6){var q1=t(s6);L1(q1),O3(s6)},c:function(){c("")},x:function(s6,q1,S1){W.copyWithin(s6,q1,q1+S1)},w:function(s6){var q1=W.length;if(s6>>>=0,2147483648<s6)return!1;for(var S1=1;4>=S1;S1*=2){var F1=q1*(1+0.2/S1);F1=Math.min(F1,s6+100663296);var e1=Math;F1=Math.max(s6,F1),e1=e1.min.call(e1,2147483648,F1+(65536-F1%65536)%65536);A:{try{J.grow(e1-X.byteLength+65535>>>16),L();var R8=1;break A}catch(k1){}R8=void 0}if(R8)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(s6,q1,S1,F1){for(var e1=0,R8=0;R8<S1;R8++){var k1=v[q1>>2],D8=v[q1+4>>2];q1+=8;for(var g8=0;g8<D8;g8++){var I8=W[k1+g8],t8=m9[s6];I8===0||I8===10?((s6===1?$:O)(D(t8,0)),t8.length=0):t8.push(I8)}e1+=D8}return v[F1>>2]=e1,0}};(function(){function s6(e1){K.asm=e1.exports,J=K.asm.E,L(),S=K.asm.J,m.unshift(K.asm.F),g--,K.monitorRunDependencies&&K.monitorRunDependencies(g),g==0&&(b!==null&&(clearInterval(b),b=null),Q&&(e1=Q,Q=null,e1()))}function q1(e1){s6(e1.instance)}function S1(e1){return P6().then(function(R8){return WebAssembly.instantiate(R8,F1)}).then(function(R8){return R8}).then(e1,function(R8){O("failed to asynchronously prepare wasm: "+R8),c(R8)})}var F1={a:Tq};if(g++,K.monitorRunDependencies&&K.monitorRunDependencies(g),K.instantiateWasm)try{return K.instantiateWasm(F1,s6)}catch(e1){O("Module.instantiateWasm callback failed with error: "+e1),z(e1)}return function(){return H||typeof WebAssembly.instantiateStreaming!="function"||d(A6)||typeof fetch!="function"?S1(q1):fetch(A6,{credentials:"same-origin"}).then(function(e1){return WebAssembly.instantiateStreaming(e1,F1).then(q1,function(R8){return O("wasm streaming compile failed: "+R8),O("falling back to ArrayBuffer instantiation"),S1(q1)})})}().catch(z),{}})(),K.___wasm_call_ctors=function(){return(K.___wasm_call_ctors=K.asm.F).apply(null,arguments)};var _Y=K.___getTypeName=function(){return(_Y=K.___getTypeName=K.asm.G).apply(null,arguments)};K.__embind_initialize_bindings=function(){return(K.__embind_initialize_bindings=K.asm.H).apply(null,arguments)};var Jz=K._malloc=function(){return(Jz=K._malloc=K.asm.I).apply(null,arguments)},U3=K._free=function(){return(U3=K._free=K.asm.K).apply(null,arguments)};K.dynCall_jiji=function(){return(K.dynCall_jiji=K.asm.L).apply(null,arguments)};var u_;Q=function s6(){u_||pw(),u_||(Q=s6)};function pw(){function s6(){if(!u_&&(u_=!0,K.calledRun=!0,!M)){if(f6(m),Y(K),K.onRuntimeInitialized)K.onRuntimeInitialized();if(K.postRun)for(typeof K.postRun=="function"&&(K.postRun=[K.postRun]);K.postRun.length;){var q1=K.postRun.shift();x.unshift(q1)}f6(x)}}if(!(0<g)){if(K.preRun)for(typeof K.preRun=="function"&&(K.preRun=[K.preRun]);K.preRun.length;)p();f6(C),0<g||(K.setStatus?(K.setStatus("Running..."),setTimeout(function(){setTimeout(function(){K.setStatus("")},1),s6()},1)):s6())}}if(K.preInit)for(typeof K.preInit=="function"&&(K.preInit=[K.preInit]);0<K.preInit.length;)K.preInit.pop()();return pw(),q.ready}})(),yN7=J19});var fM,SN7,hN7,y36,R36,SD,TP6,M19,Ac,S36,pk,vP6,VP6,CN7,h36,NP6,vI,C36,D19,IN7;var J$1=E(()=>{fM=function(A){return A[A.Auto=0]="Auto",A[A.FlexStart=1]="FlexStart",A[A.Center=2]="Center",A[A.FlexEnd=3]="FlexEnd",A[A.Stretch=4]="Stretch",A[A.Baseline=5]="Baseline",A[A.SpaceBetween=6]="SpaceBetween",A[A.SpaceAround=7]="SpaceAround",A[A.SpaceEvenly=8]="SpaceEvenly",A}({}),SN7=function(A){return A[A.BorderBox=0]="BorderBox",A[A.ContentBox=1]="ContentBox",A}({}),hN7=function(A){return A[A.Width=0]="Width",A[A.Height=1]="Height",A}({}),y36=function(A){return A[A.Inherit=0]="Inherit",A[A.LTR=1]="LTR",A[A.RTL=2]="RTL",A}({}),R36=function(A){return A[A.Flex=0]="Flex",A[A.None=1]="None",A[A.Contents=2]="Contents",A}({}),SD=function(A){return A[A.Left=0]="Left",A[A.Top=1]="Top",A[A.Right=2]="Right",A[A.Bottom=3]="Bottom",A[A.Start=4]="Start",A[A.End=5]="End",A[A.Horizontal=6]="Horizontal",A[A.Vertical=7]="Vertical",A[A.All=8]="All",A}({}),TP6=function(A){return A[A.None=0]="None",A[A.StretchFlexBasis=1]="StretchFlexBasis",A[A.AbsolutePositionWithoutInsetsExcludesPadding=2]="AbsolutePositionWithoutInsetsExcludesPadding",A[A.AbsolutePercentAgainstInnerSize=4]="AbsolutePercentAgainstInnerSize",A[A.All=2147483647]="All",A[A.Classic=2147483646]="Classic",A}({}),M19=function(A){return A[A.WebFlexBasis=0]="WebFlexBasis",A}({}),Ac=function(A){return A[A.Column=0]="Column",A[A.ColumnReverse=1]="ColumnReverse",A[A.Row=2]="Row",A[A.RowReverse=3]="RowReverse",A}({}),S36=function(A){return A[A.Column=0]="Column",A[A.Row=1]="Row",A[A.All=2]="All",A}({}),pk=function(A){return A[A.FlexStart=0]="FlexStart",A[A.Center=1]="Center",A[A.FlexEnd=2]="FlexEnd",A[A.SpaceBetween=3]="SpaceBetween",A[A.SpaceAround=4]="SpaceAround",A[A.SpaceEvenly=5]="SpaceEvenly",A}({}),vP6=function(A){return A[A.Error=0]="Error",A[A.Warn=1]="Warn",A[A.Info=2]="Info",A[A.Debug=3]="Debug",A[A.Verbose=4]="Verbose",A[A.Fatal=5]="Fatal",A}({}),VP6=function(A){return A[A.Undefined=0]="Undefined",A[A.Exactly=1]="Exactly",A[A.AtMost=2]="AtMost",A}({}),CN7=function(A){return A[A.Default=0]="Default",A[A.Text=1]="Text",A}({}),h36=function(A){return A[A.Visible=0]="Visible",A[A.Hidden=1]="Hidden",A[A.Scroll=2]="Scroll",A}({}),NP6=function(A){return A[A.Static=0]="Static",A[A.Relative=1]="Relative",A[A.Absolute=2]="Absolute",A}({}),vI=function(A){return A[A.Undefined=0]="Undefined",A[A.Point=1]="Point",A[A.Percent=2]="Percent",A[A.Auto=3]="Auto",A}({}),C36=function(A){return A[A.NoWrap=0]="NoWrap",A[A.Wrap=1]="Wrap",A[A.WrapReverse=2]="WrapReverse",A}({}),D19={ALIGN_AUTO:fM.Auto,ALIGN_FLEX_START:fM.FlexStart,ALIGN_CENTER:fM.Center,ALIGN_FLEX_END:fM.FlexEnd,ALIGN_STRETCH:fM.Stretch,ALIGN_BASELINE:fM.Baseline,ALIGN_SPACE_BETWEEN:fM.SpaceBetween,ALIGN_SPACE_AROUND:fM.SpaceAround,ALIGN_SPACE_EVENLY:fM.SpaceEvenly,BOX_SIZING_BORDER_BOX:SN7.BorderBox,BOX_SIZING_CONTENT_BOX:SN7.ContentBox,DIMENSION_WIDTH:hN7.Width,DIMENSION_HEIGHT:hN7.Height,DIRECTION_INHERIT:y36.Inherit,DIRECTION_LTR:y36.LTR,DIRECTION_RTL:y36.RTL,DISPLAY_FLEX:R36.Flex,DISPLAY_NONE:R36.None,DISPLAY_CONTENTS:R36.Contents,EDGE_LEFT:SD.Left,EDGE_TOP:SD.Top,EDGE_RIGHT:SD.Right,EDGE_BOTTOM:SD.Bottom,EDGE_START:SD.Start,EDGE_END:SD.End,EDGE_HORIZONTAL:SD.Horizontal,EDGE_VERTICAL:SD.Vertical,EDGE_ALL:SD.All,ERRATA_NONE:TP6.None,ERRATA_STRETCH_FLEX_BASIS:TP6.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:TP6.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:TP6.AbsolutePercentAgainstInnerSize,ERRATA_ALL:TP6.All,ERRATA_CLASSIC:TP6.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:M19.WebFlexBasis,FLEX_DIRECTION_COLUMN:Ac.Column,FLEX_DIRECTION_COLUMN_REVERSE:Ac.ColumnReverse,FLEX_DIRECTION_ROW:Ac.Row,FLEX_DIRECTION_ROW_REVERSE:Ac.RowReverse,GUTTER_COLUMN:S36.Column,GUTTER_ROW:S36.Row,GUTTER_ALL:S36.All,JUSTIFY_FLEX_START:pk.FlexStart,JUSTIFY_CENTER:pk.Center,JUSTIFY_FLEX_END:pk.FlexEnd,JUSTIFY_SPACE_BETWEEN:pk.SpaceBetween,JUSTIFY_SPACE_AROUND:pk.SpaceAround,JUSTIFY_SPACE_EVENLY:pk.SpaceEvenly,LOG_LEVEL_ERROR:vP6.Error,LOG_LEVEL_WARN:vP6.Warn,LOG_LEVEL_INFO:vP6.Info,LOG_LEVEL_DEBUG:vP6.Debug,LOG_LEVEL_VERBOSE:vP6.Verbose,LOG_LEVEL_FATAL:vP6.Fatal,MEASURE_MODE_UNDEFINED:VP6.Undefined,MEASURE_MODE_EXACTLY:VP6.Exactly,MEASURE_MODE_AT_MOST:VP6.AtMost,NODE_TYPE_DEFAULT:CN7.Default,NODE_TYPE_TEXT:CN7.Text,OVERFLOW_VISIBLE:h36.Visible,OVERFLOW_HIDDEN:h36.Hidden,OVERFLOW_SCROLL:h36.Scroll,POSITION_TYPE_STATIC:NP6.Static,POSITION_TYPE_RELATIVE:NP6.Relative,POSITION_TYPE_ABSOLUTE:NP6.Absolute,UNIT_UNDEFINED:vI.Undefined,UNIT_POINT:vI.Point,UNIT_PERCENT:vI.Percent,UNIT_AUTO:vI.Auto,WRAP_NO_WRAP:C36.NoWrap,WRAP_WRAP:C36.Wrap,WRAP_WRAP_REVERSE:C36.WrapReverse},IN7=D19});function kO8(A){function q(z,w,_){let $=z[w];z[w]=function(){for(var O=arguments.length,H=Array(O),j=0;j<O;j++)H[j]=arguments[j];return _.call(this,$,...H)}}for(let z of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){let w={[vI.Point]:A.Node.prototype[z],[vI.Percent]:A.Node.prototype[`${z}Percent`],[vI.Auto]:A.Node.prototype[`${z}Auto`]};q(A.Node.prototype,z,function(_){for(var $=arguments.length,O=Array($>1?$-1:0),H=1;H<$;H++)O[H-1]=arguments[H];let j=O.pop(),J,M;if(j==="auto")J=vI.Auto,M=void 0;else if(typeof j==="object")J=j.unit,M=j.valueOf();else if(J=typeof j==="string"&&j.endsWith("%")?vI.Percent:vI.Point,M=parseFloat(j),j!==void 0&&!Number.isNaN(j)&&Number.isNaN(M))throw Error(`Invalid value ${j} for ${z}`);if(!w[J])throw Error(`Failed to execute "${z}": Unsupported unit '${j}'`);if(M!==void 0)return w[J].call(this,...O,M);else return w[J].call(this,...O)})}function K(z){return A.MeasureCallback.implement({measure:function(){let{width:w,height:_}=z(...arguments);return{width:w??NaN,height:_??NaN}}})}q(A.Node.prototype,"setMeasureFunc",function(z,w){if(w)return z.call(this,K(w));else return this.unsetMeasureFunc()});function Y(z){return A.DirtiedCallback.implement({dirtied:z})}return q(A.Node.prototype,"setDirtiedFunc",function(z,w){z.call(this,Y(w))}),q(A.Config.prototype,"free",function(){A.Config.destroy(this)}),q(A.Node,"create",(z,w)=>{return w?A.Node.createWithConfig(w):A.Node.createDefault()}),q(A.Node.prototype,"free",function(){A.Node.destroy(this)}),q(A.Node.prototype,"freeRecursive",function(){for(let z=0,w=this.getChildCount();z<w;++z)this.getChild(0).freeRecursive();this.free()}),q(A.Node.prototype,"calculateLayout",function(z){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,$=arguments.length>3&&arguments[3]!==void 0?arguments[3]:y36.LTR;return z.call(this,w,_,$)}),{Config:A.Config,Node:A.Node,...IN7}}var xN7=E(()=>{J$1();J$1()});async function EO8(){return kO8(await yN7())}var bN7=E(()=>{RN7();xN7();J$1()});class LO8{yoga;constructor(A){this.yoga=A}insertChild(A,q){this.yoga.insertChild(A.yoga,q)}removeChild(A){this.yoga.removeChild(A.yoga)}getChildCount(){return this.yoga.getChildCount()}getParent(){let A=this.yoga.getParent();return A?new LO8(A):null}calculateLayout(A,q){this.yoga.calculateLayout(A,void 0,y36.LTR)}setMeasureFunc(A){this.yoga.setMeasureFunc((q,K)=>{let Y=K===VP6.Exactly?XP6.Exactly:K===VP6.AtMost?XP6.AtMost:XP6.Undefined;return A(q,Y)})}unsetMeasureFunc(){this.yoga.unsetMeasureFunc()}markDirty(){this.yoga.markDirty()}getComputedLeft(){return this.yoga.getComputedLeft()}getComputedTop(){return this.yoga.getComputedTop()}getComputedWidth(){return this.yoga.getComputedWidth()}getComputedHeight(){return this.yoga.getComputedHeight()}getComputedBorder(A){return this.yoga.getComputedBorder(Zm6[A])}getComputedPadding(A){return this.yoga.getComputedPadding(Zm6[A])}setWidth(A){this.yoga.setWidth(A)}setWidthPercent(A){this.yoga.setWidthPercent(A)}setWidthAuto(){this.yoga.setWidthAuto()}setHeight(A){this.yoga.setHeight(A)}setHeightPercent(A){this.yoga.setHeightPercent(A)}setHeightAuto(){this.yoga.setHeightAuto()}setMinWidth(A){this.yoga.setMinWidth(A)}setMinWidthPercent(A){this.yoga.setMinWidthPercent(A)}setMinHeight(A){this.yoga.setMinHeight(A)}setMinHeightPercent(A){this.yoga.setMinHeightPercent(A)}setMaxWidth(A){this.yoga.setMaxWidth(A)}setMaxWidthPercent(A){this.yoga.setMaxWidthPercent(A)}setMaxHeight(A){this.yoga.setMaxHeight(A)}setMaxHeightPercent(A){this.yoga.setMaxHeightPercent(A)}setFlexDirection(A){let q={row:Ac.Row,"row-reverse":Ac.RowReverse,column:Ac.Column,"column-reverse":Ac.ColumnReverse};this.yoga.setFlexDirection(q[A])}setFlexGrow(A){this.yoga.setFlexGrow(A)}setFlexShrink(A){this.yoga.setFlexShrink(A)}setFlexBasis(A){this.yoga.setFlexBasis(A)}setFlexBasisPercent(A){this.yoga.setFlexBasisPercent(A)}setFlexWrap(A){let q={nowrap:C36.NoWrap,wrap:C36.Wrap,"wrap-reverse":C36.WrapReverse};this.yoga.setFlexWrap(q[A])}setAlignItems(A){let q={auto:fM.Auto,stretch:fM.Stretch,"flex-start":fM.FlexStart,center:fM.Center,"flex-end":fM.FlexEnd};this.yoga.setAlignItems(q[A])}setAlignSelf(A){let q={auto:fM.Auto,stretch:fM.Stretch,"flex-start":fM.FlexStart,center:fM.Center,"flex-end":fM.FlexEnd};this.yoga.setAlignSelf(q[A])}setJustifyContent(A){let q={"flex-start":pk.FlexStart,center:pk.Center,"flex-end":pk.FlexEnd,"space-between":pk.SpaceBetween,"space-around":pk.SpaceAround,"space-evenly":pk.SpaceEvenly};this.yoga.setJustifyContent(q[A])}setDisplay(A){this.yoga.setDisplay(A==="flex"?R36.Flex:R36.None)}getDisplay(){return this.yoga.getDisplay()===R36.None?Bk.None:Bk.Flex}setPositionType(A){this.yoga.setPositionType(A==="absolute"?NP6.Absolute:NP6.Relative)}setOverflow(A){let q={visible:h36.Visible,hidden:h36.Hidden,scroll:h36.Scroll};this.yoga.setOverflow(q[A])}setMargin(A,q){this.yoga.setMargin(Zm6[A],q)}setPadding(A,q){this.yoga.setPadding(Zm6[A],q)}setBorder(A,q){this.yoga.setBorder(Zm6[A],q)}setGap(A,q){this.yoga.setGap(X19[A],q)}free(){this.yoga.free()}freeRecursive(){this.yoga.freeRecursive()}}async function uN7(){if(Tm6)return;if(!D$1)D$1=EO8().then((A)=>{Tm6=A});await D$1}function mN7(){if(!Tm6)throw Error("Yoga not loaded");return new LO8(Tm6.Node.create())}function BN7(){if(M$1||fm6)return;M$1=EO8().then((A)=>{fm6=A,M$1=void 0},()=>{M$1=void 0})}function gN7(){if(!fm6)return!1;return Tm6=fm6,fm6=void 0,D$1=void 0,!0}var Zm6,X19,Tm6,D$1,fm6,M$1;var pN7=E(()=>{bN7();N36();Zm6={all:SD.All,horizontal:SD.Horizontal,vertical:SD.Vertical,left:SD.Left,right:SD.Right,top:SD.Top,bottom:SD.Bottom,start:SD.Start,end:SD.End},X19={all:S36.All,column:S36.Column,row:S36.Row}});var FN7={};d1(FN7,{swapLayout:()=>RO8,preloadLayout:()=>yO8,initLayout:()=>X$1,createLayoutNode:()=>P$1});async function X$1(){await uN7()}function P$1(){return mN7()}function yO8(){BN7()}function RO8(){return gN7()}var vm6=E(()=>{pN7()});function QN7(A,q){if(q.nodeName==="#text")return;let K=q,Y=gk.get(K);if(Y){let z=fP6.get(A);if(z)z.push(Y);else fP6.set(A,[Y]);gk.delete(K)}for(let z of K.childNodes)QN7(A,z)}function P19(A,q){if(A===q)return!0;let K=Object.keys(A),Y=Object.keys(q);if(K.length!==Y.length)return!1;for(let z of K)if(A[z]!==q[z])return!1;return!0}function cN7(A){let q=A.yogaNode;Z$1(A),q?.freeRecursive(),lN7(A)}function W19(A){return A.nodeName!=="#text"}function lN7(A){if(A.nodeName!=="ink-virtual-text"&&A.nodeName!=="ink-link"&&A.nodeName!=="ink-progress"){if(A.yogaNode=P$1(),Wm6(A.yogaNode,A.style),A.isHidden)A.yogaNode.setDisplay(Bk.None);if(A.nodeName==="ink-text")A.yogaNode.setMeasureFunc(dN7.bind(null,A))}for(let K of A.childNodes){if(!W19(K))continue;if(lN7(K),K.yogaNode&&A.yogaNode)A.yogaNode.insertChild(K.yogaNode,A.yogaNode.getChildCount())}}var W$1=(A)=>{let K={nodeName:A,style:{},attributes:{},childNodes:[],parentNode:void 0,yogaNode:A!=="ink-virtual-text"&&A!=="ink-link"&&A!=="ink-progress"?P$1():void 0,dirty:!1};if(A==="ink-text")K.yogaNode?.setMeasureFunc(dN7.bind(null,K));return K},G$1=(A,q)=>{if(q.parentNode)Vm6(q.parentNode,q);if(q.parentNode=A,A.childNodes.push(q),q.yogaNode)A.yogaNode?.insertChild(q.yogaNode,A.yogaNode.getChildCount());XR(A)},SO8=(A,q,K)=>{if(q.parentNode)Vm6(q.parentNode,q);q.parentNode=A;let Y=A.childNodes.indexOf(K);if(Y>=0){let z=0;if(q.yogaNode&&A.yogaNode){for(let w=0;w<Y;w++)if(A.childNodes[w]?.yogaNode)z++}if(A.childNodes.splice(Y,0,q),q.yogaNode&&A.yogaNode)A.yogaNode.insertChild(q.yogaNode,z);XR(A);return}if(A.childNodes.push(q),q.yogaNode)A.yogaNode?.insertChild(q.yogaNode,A.yogaNode.getChildCount());XR(A)},Vm6=(A,q)=>{if(q.yogaNode)q.parentNode?.yogaNode?.removeChild(q.yogaNode);QN7(A,q),q.parentNode=void 0;let K=A.childNodes.indexOf(q);if(K>=0)A.childNodes.splice(K,1);XR(A)},hO8=(A,q,K)=>{if(q==="children")return;if(A.attributes[q]===K)return;A.attributes[q]=K,XR(A)},CO8=(A,q)=>{if(P19(A.style,q))return;A.style=q,XR(A)},UN7=(A)=>{let q={nodeName:"#text",nodeValue:A,yogaNode:void 0,parentNode:void 0,style:{}};return Nm6(q,A),q},dN7=function(A,q,K){let Y=A.nodeName==="#text"?A.nodeValue:jN7(A),z=EN7(Y),w=e_1(z,q);if(w.width<=q)return w;if(w.width>=1&&q>0&&q<1)return w;if(z.includes(`
`)&&K===XP6.Undefined){let O=Math.max(q,w.width);return e_1(z,O)}let _=A.style?.textWrap??"wrap",$=Vf(z,q,_);return e_1($,q)},XR=(A)=>{let q=A,K=!1;while(q){if(q.nodeName!=="#text"){if(q.dirty=!0,!K&&q.nodeName==="ink-text"&&q.yogaNode)q.yogaNode.markDirty(),K=!0}q=q.parentNode}},Nm6=(A,q)=>{if(typeof q!=="string")q=String(q);if(A.nodeValue===q)return;A.nodeValue=q,XR(A)},Z$1=(A)=>{if("childNodes"in A)for(let q of A.childNodes)Z$1(q);A.yogaNode=void 0};var km6=E(()=>{dV7();JO8();w$1();ZO8();LN7();j$1();N36();vm6()});var rN7,iN7=(A,q)=>{if(A===q)return;if(!A)return q;let K={},Y=!1;for(let z of Object.keys(A))if(q?!Object.hasOwn(q,z):!0)K[z]=void 0,Y=!0;if(q){for(let z of Object.keys(q))if(q[z]!==A[z])K[z]=q[z],Y=!0}return Y?K:void 0},nN7=(A)=>{let q=A.yogaNode;if(q)q.unsetMeasureFunc(),Z$1(A),q.freeRecursive()},IO8,qc;var xO8=E(()=>{OO8();N36();km6();JO8();rN7=q6(UV7(),1),IO8=$O8,qc=rN7.default({getRootHostContext:()=>({isInsideText:!1}),prepareForCommit:()=>null,preparePortalMount:()=>null,clearContainer:()=>!1,resetAfterCommit(A){if(typeof A.onComputeLayout==="function")A.onComputeLayout();A.onRender?.()},getChildHostContext(A,q){let K=A.isInsideText,Y=q==="ink-text"||q==="ink-virtual-text"||q==="ink-link";if(K===Y)return A;return{isInsideText:Y}},shouldSetTextContent:()=>!1,createInstance(A,q,K,Y){if(Y.isInsideText&&A==="ink-box")throw Error("<Box> can't be nested inside <Text> component");let z=A==="ink-text"&&Y.isInsideText?"ink-virtual-text":A,w=W$1(z);for(let[_,$]of Object.entries(q)){if(_==="children")continue;if(_==="style"){if(CO8(w,$),w.yogaNode)Wm6(w.yogaNode,$);continue}if(_==="textStyles"){w.textStyles=$;continue}if(_==="onClick"){w.onClick=$;continue}hO8(w,_,$)}return w},createTextInstance(A,q,K){if(!K.isInsideText)throw Error(`Text string "${A}" must be rendered inside <Text> component`);return UN7(A)},resetTextContent(){},hideTextInstance(A){Nm6(A,"")},unhideTextInstance(A,q){Nm6(A,q)},getPublicInstance:(A)=>A,hideInstance(A){A.isHidden=!0,A.yogaNode?.setDisplay(Bk.None),XR(A)},unhideInstance(A){A.isHidden=!1,A.yogaNode?.setDisplay(Bk.Flex),XR(A)},appendInitialChild:G$1,appendChild:G$1,insertBefore:SO8,finalizeInitialChildren:()=>!1,isPrimaryRenderer:!0,supportsMutation:!0,supportsPersistence:!1,supportsHydration:!1,scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,getCurrentUpdatePriority:()=>IO8,beforeActiveInstanceBlur(){},afterActiveInstanceBlur(){},detachDeletedInstance(){},getInstanceFromNode:()=>null,prepareScopeUpdate(){},getInstanceFromScope:()=>null,appendChildToContainer:G$1,insertInContainerBefore:SO8,removeChildFromContainer(A,q){Vm6(A,q),nN7(q)},commitUpdate(A,q,K,Y){let z=iN7(K,Y),w=iN7(K.style,Y.style);if(z)for(let[_,$]of Object.entries(z)){if(_==="style"){CO8(A,$);continue}if(_==="textStyles"){A.textStyles=$,XR(A);continue}if(_==="onClick"){A.onClick=$;continue}hO8(A,_,$)}if(w&&A.yogaNode)Wm6(A.yogaNode,w,Y.style)},commitTextUpdate(A,q,K){Nm6(A,K)},removeChild(A,q){Vm6(A,q),nN7(q)},maySuspendCommit(){return!1},preloadInstance(){return!0},startSuspendingCommit(){},suspendInstance(){},waitForCommitToBeReady(){return null},NotPendingTransition:null,HostTransitionContext:{$$typeof:Symbol.for("react.context"),_currentValue:null},setCurrentUpdatePriority(A){IO8=A},resolveUpdatePriority(){return IO8},resetFormInstance(){},requestPostPaintCallback(){},shouldAttemptEagerTransition(){return!1},trackSchedulerEvent(){},resolveEventType(){return null},resolveEventTimeStamp(){return-1.1}})});function f$1(A){let q=0,K=0;while(K<=A.length){let Y=A.indexOf(`
`,K),z=Y===-1?A.substring(K):A.substring(K,Y);if(q=Math.max(q,t_1(z)),Y===-1)break;K=Y+1}return q}var bO8=E(()=>{jO8()});function uO8(A,q=1,K={}){let{indent:Y=" ",includeEmptyLines:z=!1}=K;if(typeof A!=="string")throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof A}\``);if(typeof q!=="number")throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof q}\``);if(q<0)throw RangeError(`Expected \`count\` to be at least 0, got \`${q}\``);if(typeof Y!=="string")throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof Y}\``);if(q===0)return A;let w=z?/^/gm:/^(?!\s*$)/gm;return A.replace(w,Y.repeat(q))}var Z19=(A)=>{return A.getComputedWidth()-A.getComputedPadding(X9.Left)-A.getComputedPadding(X9.Right)-A.getComputedBorder(X9.Left)-A.getComputedBorder(X9.Right)},oN7;var aN7=E(()=>{N36();oN7=Z19});var sN7=h((SJ2,f19)=>{f19.exports={single:{topLeft:"┌",top:"─",topRight:"┐",right:"│",bottomRight:"┘",bottom:"─",bottomLeft:"└",left:"│"},double:{topLeft:"╔",top:"═",topRight:"╗",right:"║",bottomRight:"╝",bottom:"═",bottomLeft:"╚",left:"║"},round:{topLeft:"╭",top:"─",topRight:"╮",right:"│",bottomRight:"╯",bottom:"─",bottomLeft:"╰",left:"│"},bold:{topLeft:"┏",top:"━",topRight:"┓",right:"┃",bottomRight:"┛",bottom:"━",bottomLeft:"┗",left:"┃"},singleDouble:{topLeft:"╓",top:"─",topRight:"╖",right:"║",bottomRight:"╜",bottom:"─",bottomLeft:"╙",left:"║"},doubleSingle:{topLeft:"╒",top:"═",topRight:"╕",right:"│",bottomRight:"╛",bottom:"═",bottomLeft:"╘",left:"│"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"↘",top:"↓",topRight:"↙",right:"←",bottomRight:"↖",bottom:"↑",bottomLeft:"↗",left:"→"}}});var eN7=h((hJ2,mO8)=>{var tN7=sN7();mO8.exports=tN7;mO8.exports.default=tN7});function EP6(A,q){let K=A;if(q.inverse)K=j1.inverse(K);if(q.strikethrough)K=j1.strikethrough(K);if(q.underline)K=j1.underline(K);if(q.italic)K=j1.italic(K);if(q.bold)K=j1.bold(K);if(q.dim)K=j1.dim(K);if(q.color)K=kP6(K,q.color,"foreground");if(q.backgroundColor)K=kP6(K,q.backgroundColor,"background");return K}function Kc(A,q){if(!q)return A;return kP6(A,q,"foreground")}var T19,v19,kP6=(A,q,K)=>{if(!q)return A;if(q.startsWith("ansi:"))switch(q.substring(5)){case"black":return K==="foreground"?j1.black(A):j1.bgBlack(A);case"red":return K==="foreground"?j1.red(A):j1.bgRed(A);case"green":return K==="foreground"?j1.green(A):j1.bgGreen(A);case"yellow":return K==="foreground"?j1.yellow(A):j1.bgYellow(A);case"blue":return K==="foreground"?j1.blue(A):j1.bgBlue(A);case"magenta":return K==="foreground"?j1.magenta(A):j1.bgMagenta(A);case"cyan":return K==="foreground"?j1.cyan(A):j1.bgCyan(A);case"white":return K==="foreground"?j1.white(A):j1.bgWhite(A);case"blackBright":return K==="foreground"?j1.blackBright(A):j1.bgBlackBright(A);case"redBright":return K==="foreground"?j1.redBright(A):j1.bgRedBright(A);case"greenBright":return K==="foreground"?j1.greenBright(A):j1.bgGreenBright(A);case"yellowBright":return K==="foreground"?j1.yellowBright(A):j1.bgYellowBright(A);case"blueBright":return K==="foreground"?j1.blueBright(A):j1.bgBlueBright(A);case"magentaBright":return K==="foreground"?j1.magentaBright(A):j1.bgMagentaBright(A);case"cyanBright":return K==="foreground"?j1.cyanBright(A):j1.bgCyanBright(A);case"whiteBright":return K==="foreground"?j1.whiteBright(A):j1.bgWhiteBright(A)}if(q.startsWith("#"))return K==="foreground"?j1.hex(q)(A):j1.bgHex(q)(A);if(q.startsWith("ansi256")){let Y=v19.exec(q);if(!Y)return A;let z=Number(Y[1]);return K==="foreground"?j1.ansi256(z)(A):j1.bgAnsi256(z)(A)}if(q.startsWith("rgb")){let Y=T19.exec(q);if(!Y)return A;let z=Number(Y[1]),w=Number(Y[2]),_=Number(Y[3]);return K==="foreground"?j1.rgb(z,w,_)(A):j1.bgRgb(z,w,_)(A)}return A};var LP6=E(()=>{BK();T19=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/,v19=/^ansi256\(\s?(\d+)\s?\)$/});function Ak7(A,q,K,Y=0,z){let w=u8(q),_=A.length;if(w>=_-2)return["",q.substring(0,_),""];let $;if(K==="center")$=Math.floor((_-w)/2);else if(K==="start")$=Y+1;else $=_-w-Y-1;$=Math.max(1,Math.min($,_-w-1));let O=A.substring(0,1)+z.repeat($-1),H=z.repeat(_-$-w-1)+A.substring(_-1);return[O,q,H]}function yP6(A,q,K){let Y=Kc(A,q);if(K)Y=j1.dim(Y);return Y}var qk7,V19,N19=(A,q,K,Y)=>{if(K.style.borderStyle){let z=Math.floor(K.yogaNode.getComputedWidth()),w=Math.floor(K.yogaNode.getComputedHeight()),_=typeof K.style.borderStyle==="string"?V19[K.style.borderStyle]??qk7.default[K.style.borderStyle]:K.style.borderStyle,$=K.style.borderTopColor??K.style.borderColor,O=K.style.borderBottomColor??K.style.borderColor,H=K.style.borderLeftColor??K.style.borderColor,j=K.style.borderRightColor??K.style.borderColor,J=K.style.borderTopDimColor??K.style.borderDimColor,M=K.style.borderBottomDimColor??K.style.borderDimColor,D=K.style.borderLeftDimColor??K.style.borderDimColor,X=K.style.borderRightDimColor??K.style.borderDimColor,P=K.style.borderTop!==!1,W=K.style.borderBottom!==!1,G=K.style.borderLeft!==!1,Z=K.style.borderRight!==!1,f=Math.max(0,z-(G?1:0)-(Z?1:0)),v=P?(G?_.topLeft:"")+_.top.repeat(f)+(Z?_.topRight:""):"",V;if(P&&K.style.borderText?.position==="top"){let[p,g,b]=Ak7(v,K.style.borderText.content,K.style.borderText.align,K.style.borderText.offset,_.top);V=yP6(p,$,J)+g+yP6(b,$,J)}else if(P)V=yP6(v,$,J);let N=w;if(P)N-=1;if(W)N-=1;N=Math.max(0,N);let L=(Kc(_.left,H)+`
`).repeat(N);if(D)L=j1.dim(L);let S=(Kc(_.right,j)+`
`).repeat(N);if(X)S=j1.dim(S);let C=W?(G?_.bottomLeft:"")+_.bottom.repeat(f)+(Z?_.bottomRight:""):"",m;if(W&&K.style.borderText?.position==="bottom"){let[p,g,b]=Ak7(C,K.style.borderText.content,K.style.borderText.align,K.style.borderText.offset,_.bottom);m=yP6(p,O,M)+g+yP6(b,O,M)}else if(W)m=yP6(C,O,M);let x=P?1:0;if(V)Y.write(A,q,V);if(G)Y.write(A,q+x,L);if(Z)Y.write(A+z-1,q+x,S);if(m)Y.write(A,q+w-1,m)}},Kk7;var Yk7=E(()=>{BK();_5();LP6();qk7=q6(eN7(),1),V19={dashed:{top:"╌",left:"╎",right:"╎",bottom:"╌",topLeft:" ",topRight:" ",bottomLeft:" ",bottomRight:" "}};Kk7=N19});function T$1(A,q){return`${zk7}8;;${q}${wk7}${A}${zk7}8;;${wk7}`}function k19(A){let q=[];for(let K=0;K<A.length;K++){let Y=A[K].text.length;for(let z=0;z<Y;z++)q.push(K)}return q}function E19(A,q,K,Y,z=!1){let w=A.split(`
`),_=[],$=0;for(let O=0;O<w.length;O++){let H=w[O];if(z&&H.length>0){let P=/\s/.test(H[0]);if($<Y.length&&/\s/.test(Y[$])&&!P)while($<Y.length&&/\s/.test(Y[$]))$++}let j="",J=0,M=K[$]??0;for(let P=0;P<H.length;P++){let W=K[$]??M;if(W!==M){let G=H.slice(J,P),Z=q[M];if(Z){let f=EP6(G,Z.styles);if(Z.hyperlink)f=T$1(f,Z.hyperlink);j+=f}else j+=G;J=P,M=W}$++}let D=H.slice(J),X=q[M];if(X){let P=EP6(D,X.styles);if(X.hyperlink)P=T$1(P,X.hyperlink);j+=P}else j+=D;if(_.push(j),$<Y.length&&Y[$]===`
`)$++;if(z&&O<w.length-1){let P=w[O+1],W=P.length>0?P[0]:null;while($<Y.length&&/\s/.test(Y[$])){if(W!==null&&Y[$]===W)break;$++}}}return _.join(`
`)}function L19(A,q){let K=A.childNodes[0]?.yogaNode;if(K){let Y=K.getComputedLeft(),z=K.getComputedTop();q=`
`.repeat(z)+uO8(q,Y)}return q}function BO8(A,q,{offsetX:K=0,offsetY:Y=0,prevScreen:z,inheritedBackgroundColor:w}){let{yogaNode:_}=A;if(_){if(_.getDisplay()===Bk.None){if(A.dirty){let X=gk.get(A);if(X)q.clear({x:Math.floor(X.x),y:Math.floor(X.y),width:Math.floor(X.width),height:Math.floor(X.height)}),gk.delete(A)}return}let $=K+_.getComputedLeft(),O=Y+_.getComputedTop(),H=_.getComputedWidth(),j=_.getComputedHeight(),J=gk.get(A);if(!A.dirty&&J&&J.x===$&&J.y===O&&J.width===H&&J.height===j&&z){q.blit(z,{x:Math.floor($),y:Math.floor(O),width:Math.floor(H),height:Math.floor(j)});return}if(J&&(A.dirty||J.x!==$||J.y!==O||J.width!==H||J.height!==j))q.clear({x:Math.floor(J.x),y:Math.floor(J.y),width:Math.floor(J.width),height:Math.floor(J.height)});let M=fP6.get(A),D=M!==void 0;if(D){for(let X of M)q.clear({x:Math.floor(X.x),y:Math.floor(X.y),width:Math.floor(X.width),height:Math.floor(X.height)});fP6.delete(A)}if(A.nodeName==="ink-text"){let X=_$1(A,w?{backgroundColor:w}:void 0),P=X.map((W)=>W.text).join("");if(P.length>0){let W=Math.min(oN7(_),q.width-$),G=A.style.textWrap??"wrap",Z=f$1(P)>W,f;if(Z&&X.length===1){let v=X[0];f=Vf(P,W,G).split(`
`).map((N)=>{let L=EP6(N,v.styles);if(v.hyperlink)L=T$1(L,v.hyperlink);return L}).join(`
`)}else if(Z){let v=Vf(P,W,G),V=k19(X);f=E19(v,X,V,P,G==="wrap-trim")}else f=X.map((v)=>{let V=EP6(v.text,v.styles);if(v.hyperlink)V=T$1(V,v.hyperlink);return V}).join("");f=L19(A,f),q.write($,O,f)}}else if(A.nodeName==="ink-box"){let X=A.style.backgroundColor??w;if(A.style.noSelect){let L=Math.floor($),S=A.style.noSelect==="from-left-edge";q.noSelect({x:S?0:L,y:Math.floor(O),width:S?L+Math.floor(H):Math.floor(H),height:Math.floor(j)})}let P=A.style.overflowX??A.style.overflow,W=A.style.overflowY??A.style.overflow,G=P==="hidden"||P==="scroll",Z=W==="hidden"||W==="scroll",f=W==="scroll",v=G||Z,V,N;if(v){let L=G?$+_.getComputedBorder(X9.Left):void 0,S=G?$+_.getComputedWidth()-_.getComputedBorder(X9.Right):void 0;V=Z?O+_.getComputedBorder(X9.Top):void 0,N=Z?O+_.getComputedHeight()-_.getComputedBorder(X9.Bottom):void 0,q.clip({x1:L,x2:S,y1:V,y2:N})}if(f){let L=Math.max(0,(N??O+j)-(V??O)-_.getComputedPadding(X9.Top)-_.getComputedPadding(X9.Bottom)),S=A.childNodes.find((b)=>b.yogaNode),C=S?.yogaNode,m=C?.getComputedHeight()??0;A.scrollHeight=m,A.scrollViewportHeight=L;let x=Math.max(0,m-L);if(A.stickyScroll??Boolean(A.attributes.stickyScroll))A.scrollTop=x;let g=Math.max(0,Math.min(A.scrollTop??0,x));if(A.scrollTop=g,S&&C){let b=$+C.getComputedLeft(),Q=O+C.getComputedTop()-g;if(V!==void 0&&N!==void 0)q.clear({x:Math.floor($),y:Math.floor(V),width:Math.floor(H),height:Math.floor(N-V)});y19(S,q,b,Q,D,void 0,g,g+L,X),gk.set(S,{x:b,y:Q,width:C.getComputedWidth(),height:C.getComputedHeight()}),S.dirty=!1}}else{let L=A.style.backgroundColor;if(L){let S=_.getComputedBorder(X9.Left),C=_.getComputedBorder(X9.Right),m=_.getComputedBorder(X9.Top),x=_.getComputedBorder(X9.Bottom),p=Math.floor(H)-S-C,g=Math.floor(j)-m-x;if(p>0&&g>0){let b=EP6(" ".repeat(p),{backgroundColor:L}),Q=Array(g).fill(b).join(`
`);q.write($+S,O+m,Q)}}_k7(A,q,$,O,D,L?void 0:z,X)}if(v)q.unclip();Kk7($,O,A,q)}else if(A.nodeName==="ink-root")_k7(A,q,$,O,D,z,w);gk.set(A,{x:$,y:O,width:H,height:j}),A.dirty=!1}}function _k7(A,q,K,Y,z,w,_){let $=!1;for(let O of A.childNodes){let H=O,j=H.dirty;if(BO8(H,q,{offsetX:K,offsetY:Y,prevScreen:z||$?void 0:w,inheritedBackgroundColor:_}),j)$=!0}}function y19(A,q,K,Y,z,w,_,$,O){let H=!1;for(let j of A.childNodes){let J=j,M=J.yogaNode;if(M){let X=M.getComputedTop();if(X+M.getComputedHeight()<=_||X>=$){$k7(J);continue}}let D=J.dirty;if(BO8(J,q,{offsetX:K,offsetY:Y,prevScreen:z||H?void 0:w,inheritedBackgroundColor:O}),D)H=!0}}function $k7(A){gk.delete(A);for(let q of A.childNodes)if(q.nodeName!=="#text")$k7(q)}var zk7="\x1B]",wk7="\x07",Ok7;var Hk7=E(()=>{bO8();N36();w$1();aN7();ZO8();Yk7();LP6();j$1();Ok7=BO8});function FO8(A){if(v$1.has(A))return A;if(gO8.has(A))return gO8.get(A);if(A.startsWith(V$1))return R19;if(A=A.slice(2),A.startsWith("38"))return wJ.color.close;else if(A.startsWith("48"))return wJ.bgColor.close;let q=wJ.codes.get(parseInt(A,10));if(q)return wJ.color.ansi(q);else return wJ.reset.open}function Nf(A){return A.map((q)=>q.code).join("")}var jk7,Jk7,Mk7,v$1,gO8,V$1="\x1B]8;;",pO8,Dk7="\x07",rJ2,R19;var Em6=E(()=>{Gm6();jk7=new Set([27,155]),Jk7="[".codePointAt(0),Mk7="]".codePointAt(0),v$1=new Set,gO8=new Map;for(let[A,q]of wJ.codes)v$1.add(wJ.color.ansi(q)),gO8.set(wJ.color.ansi(A),wJ.color.ansi(q));pO8=V$1.split("").map((A)=>A.charCodeAt(0)),rJ2=Dk7.charCodeAt(0),R19=`\x1B]8;;${Dk7}`});function yt(A){return N$1([],A)}function N$1(A,q){let K=[...A];for(let Y of q)if(Y.code===wJ.reset.open)K=[];else if(v$1.has(Y.code))K=K.filter((z)=>z.endCode!==Y.code);else if(Y.code===wJ.bold.open||Y.code===wJ.dim.open){if(!K.find((w)=>w.code===Y.code&&w.endCode===Y.endCode))K.push(Y)}else K=K.filter((w)=>w.endCode!==Y.endCode),K.push(Y);return K}var k$1=E(()=>{Gm6();Em6()});function I36(A){return yt(A).reverse().map((q)=>({...q,code:q.endCode}))}var QO8=E(()=>{k$1()});function VI(A,q){let K=new Set(q.map((z)=>z.endCode)),Y=new Set(A.map((z)=>z.code));return[...I36(A.filter((z)=>!K.has(z.endCode))),...q.filter((z)=>!Y.has(z.code))]}var UO8=E(()=>{QO8()});function Xk7(A){let q=[],K=[];for(let Y of A)if(Y.type==="ansi")q=N$1(q,[Y]);else if(Y.type==="char")K.push({...Y,styles:[...q]});return K}var Pk7=E(()=>{Em6();UO8();k$1()});function dO8(A){if(!Number.isInteger(A))return!1;return uh6(A)||mh6(A)}var Wk7=E(()=>{Bh6()});function S19(A,q){A=A.slice(q);for(let Y=1;Y<pO8.length;Y++)if(A.charCodeAt(Y)!==pO8[Y])return;let K=A.indexOf("\x07",V$1.length);if(K===-1)return;return A.slice(0,K+1)}function b19(A){for(let q=2;q<A.length;q++){let K=A.charCodeAt(q);if(K===x19)return q;if(K===I19)continue;if(K>=h19&&K<=C19)continue;break}return-1}function u19(A,q){A=A.slice(q);let K=b19(A);if(K===-1)return;return A.slice(0,K+1)}function m19(A){if(!A.includes(";"))return[A];let q=A.slice(2,-1).split(";"),K=[];for(let Y=0;Y<q.length;Y++){let z=q[Y];if(z==="38"||z==="48"){if(Y+2<q.length&&q[Y+1]==="5"){K.push(q.slice(Y,Y+3).join(";")),Y+=2;continue}else if(Y+4<q.length&&q[Y+1]==="2"){K.push(q.slice(Y,Y+5).join(";")),Y+=4;continue}}K.push(z)}return K.map((Y)=>`\x1B[${Y}m`)}function RP6(A,q=Number.POSITIVE_INFINITY){let K=[],Y=0,z=0;while(Y<A.length){let w=A.codePointAt(Y);if(jk7.has(w)){let O,H=A.codePointAt(Y+1);if(H===Mk7){if(O=S19(A,Y),O)K.push({type:"ansi",code:O,endCode:FO8(O)})}else if(H===Jk7){if(O=u19(A,Y),O){let j=m19(O);for(let J of j)K.push({type:"ansi",code:J,endCode:FO8(J)})}}if(O){Y+=O.length;continue}}let _=dO8(w),$=String.fromCodePoint(w);if(K.push({type:"char",value:$,fullWidth:_}),Y+=$.length,z+=_?2:$.length,z>=q)break}return K}var h19=48,C19=57,I19=59,x19=109;var Gk7=E(()=>{Wk7();Em6()});var x36=E(()=>{Em6();UO8();k$1();QO8();Pk7();Gk7()});function B19(A){return A.code===A.endCode}function Zk7(A){return A.filter((q)=>!B19(q))}function Fk(A,q,K){let Y=RP6(A,K),z=[],w=0,_="",$=!1;for(let H of Y){if(K!==void 0&&w>=K)break;if(H.type==="ansi"){if(z.push(H),$)_+=H.code}else{if(!$&&w>=q)$=!0,z=Zk7(yt(z)),_=Nf(z);if($)_+=H.value;w+=H.fullWidth?2:H.value.length}}let O=Zk7(yt(z));return _+=Nf(I36(O)),_}var SP6=E(()=>{x36()});function Rt(A,q){let K=Math.min(A.x,q.x),Y=Math.min(A.y,q.y),z=Math.max(A.x+A.width,q.x+q.width),w=Math.max(A.y+A.height,q.y+q.height);return{x:K,y:Y,width:z-K,height:w-Y}}var cO8=()=>{};function NH(A,q){if(A===void 0)return;if(Number.isInteger(A))return;y(`${q} should be an integer, got ${A}`,{level:"warn"})}var lO8=E(()=>{Z1()});class E$1{strings=[" ",""];stringMap=new Map([[" ",0],["",1]]);ascii=Q19();intern(A){if(A.length===1){let Y=A.charCodeAt(0);if(Y<128){let z=this.ascii[Y];if(z!==-1)return z;let w=this.strings.length;return this.strings.push(A),this.ascii[Y]=w,w}}let q=this.stringMap.get(A);if(q!==void 0)return q;let K=this.strings.length;return this.strings.push(A),this.stringMap.set(A,K),K}get(A){return this.strings[A]??" "}}class L$1{strings=[""];stringMap=new Map;intern(A){if(!A)return 0;let q=this.stringMap.get(A);if(q===void 0)q=this.strings.length,this.strings.push(A),this.stringMap.set(A,q);return q}get(A){return A===0?void 0:this.strings[A]}}class nO8{ids=new Map;styles=[];transitionCache=new Map;none;constructor(){this.none=this.intern([])}intern(A){let q=A.length===0?"":A.map((Y)=>Y.code).join("\x00"),K=this.ids.get(q);if(K===void 0){let Y=this.styles.length;this.styles.push(A.length===0?[]:A),K=Y<<1|(A.length>0&&F19(A)?1:0),this.ids.set(q,K)}return K}get(A){return this.styles[A>>>1]??[]}transition(A,q){if(A===q)return"";let K=A*1048576+q,Y=this.transitionCache.get(K);if(Y===void 0)Y=Nf(VI(this.get(A),this.get(q))),this.transitionCache.set(K,Y);return Y}inverseCache=new Map;withInverse(A){let q=this.inverseCache.get(A);if(q===void 0){let K=this.get(A);q=K.some((z)=>z.endCode==="\x1B[27m")?A:this.intern([...K,g19]),this.inverseCache.set(A,q)}return q}bgCache=new Map;withBackground(A,q){let K=A*1048576+this.intern([q]),Y=this.bgCache.get(K);if(Y===void 0){let w=this.get(A).filter((_)=>_.endCode!=="\x1B[49m"&&_.endCode!=="\x1B[27m");Y=this.intern([...w,q]),this.bgCache.set(K,Y)}return Y}}function F19(A){for(let q of A)if(p19.has(q.endCode))return!0;return!1}function Q19(){let A=new Int32Array(128);return A.fill(-1),A[32]=iO8,A}function b36(A,q,K){return A<<hP6|q<<CP6|K}function d19(A,q){let K=q<<1;return A.cells[K]===0&&A.cells[K|1]===0}function vk7(A,q,K){if(q<0||K<0||q>=A.width||K>=A.height)return!0;return d19(A,K*A.width+q)}function c19(A,q){return A.hyperlinkPool.intern(q)}function u36(A,q,K,Y,z){if(NH(A,"createScreen width"),NH(q,"createScreen height"),!Number.isInteger(A)||A<0)A=Math.max(0,Math.floor(A)||0);if(!Number.isInteger(q)||q<0)q=Math.max(0,Math.floor(q)||0);let w=A*q,_=new ArrayBuffer(w<<3),$=new Int32Array(_),O=new BigInt64Array(_);return{width:A,height:q,cells:$,cells64:O,charPool:Y,hyperlinkPool:z,emptyStyleId:K.none,damage:void 0,noSelect:new Uint8Array(w)}}function rO8(A,q,K){if(NH(q,"resetScreen width"),NH(K,"resetScreen height"),!Number.isInteger(q)||q<0)q=Math.max(0,Math.floor(q)||0);if(!Number.isInteger(K)||K<0)K=Math.max(0,Math.floor(K)||0);let Y=q*K;if(A.cells64.length<Y){let z=new ArrayBuffer(Y<<3);A.cells=new Int32Array(z),A.cells64=new BigInt64Array(z),A.noSelect=new Uint8Array(Y)}A.cells64.fill(U19,0,Y),A.noSelect.fill(0,0,Y),A.width=q,A.height=K,A.damage=void 0}function Vk7(A,q,K){let{charPool:Y,hyperlinkPool:z}=A;if(Y===q&&z===K)return;let w=A.width*A.height,_=A.cells;for(let $=0;$<w<<1;$+=2){let O=_[$];_[$]=q.intern(Y.get(O));let H=_[$+1],j=H>>>CP6&Lm6;if(j!==0){let J=z.get(j),M=K.intern(J),D=H>>>hP6,X=H&Yc;_[$+1]=b36(D,M,X)}}A.charPool=q,A.hyperlinkPool=K}function ym6(A,q,K){if(q<0||K<0||q>=A.width||K>=A.height)return;return oO8(A,K*A.width+q)}function oO8(A,q){let K=q<<1,Y=A.cells[K+1],z=Y>>>CP6&Lm6;return{char:A.charPool.get(A.cells[K]),styleId:Y>>>hP6,width:Y&Yc,hyperlink:z===0?void 0:A.hyperlinkPool.get(z)}}function Nk7(A,q,K,Y,z){let w=Y<<1,_=A[w];if(_===1)return;let $=A[w+1];if(_===0&&($&262140)===0){let H=$>>>hP6;if(H===0||H===z)return}let O=$>>>CP6&Lm6;return{char:q.get(_),styleId:$>>>hP6,width:$&Yc,hyperlink:O===0?void 0:K.get(O)}}function St(A,q,K){let Y=q|1,z=A.cells[Y];K.char=A.charPool.get(A.cells[q]),K.styleId=z>>>hP6,K.width=z&Yc;let w=z>>>CP6&Lm6;K.hyperlink=w===0?void 0:A.hyperlinkPool.get(w)}function aO8(A,q,K){if(q<0||K<0||q>=A.width||K>=A.height)return;let Y=K*A.width+q<<1;return A.charPool.get(A.cells[Y])}function y$1(A,q,K,Y){if(q<0||K<0||q>=A.width||K>=A.height)return;let z=K*A.width+q<<1,w=A.cells,_=w[z+1]&Yc;if(_===1&&Y.width!==1){if(q+1<A.width){let J=z+2;if((w[J+1]&Yc)===2)w[J]=iO8,w[J+1]=b36(A.emptyStyleId,0,0)}}let $=-1;if(_===2&&Y.width!==2){if(q>0){let j=z-2;if((w[j+1]&Yc)===1)w[j]=iO8,w[j+1]=b36(A.emptyStyleId,0,0),$=q-1}}w[z]=l19(A,Y.char),w[z+1]=b36(Y.styleId,c19(A,Y.hyperlink),Y.width);let O=$>=0?Math.min(q,$):q,H=A.damage;if(H){let j=H.x+H.width,J=H.y+H.height;if(O<H.x)H.width+=H.x-O,H.x=O;else if(q>=j)H.width=q-H.x+1;if(K<H.y)H.height+=H.y-K,H.y=K;else if(K>=J)H.height=K-H.y+1}else A.damage={x:O,y:K,width:q-O+1,height:1};if(Y.width===1){let j=q+1;if(j<A.width){let J=z+2;w[J]=Tk7,w[J+1]=b36(A.emptyStyleId,0,2);let M=A.damage;if(M&&j>=M.x+M.width)M.width=j-M.x+1}}}function kk7(A,q,K,Y){if(q<0||K<0||q>=A.width||K>=A.height)return;let z=K*A.width+q<<1,w=A.cells,_=w[z+1],$=_&Yc;if($===2||$===3)return;let O=_>>>CP6&Lm6;w[z+1]=b36(Y,O,$);let H=A.damage;if(H)A.damage=Rt(H,{x:q,y:K,width:1,height:1});else A.damage={x:q,y:K,width:1,height:1}}function l19(A,q){return A.charPool.intern(q)}function Ek7(A,q,K,Y,z,w){if(K>=z||Y>=w)return;let _=z-K,$=q.width<<1,O=A.width<<1,H=_<<1,j=q.cells,J=A.cells,M=q.noSelect,D=A.noSelect;if(K===0&&z===q.width&&q.width===A.width){let P=Y*$,W=(w-Y)*$;J.set(j.subarray(P,P+W),P);let G=Y*q.width,Z=(w-Y)*q.width;D.set(M.subarray(G,G+Z),G)}else{let P=Y*$+(K<<1),W=Y*O+(K<<1),G=Y*q.width+K,Z=Y*A.width+K;for(let f=Y;f<w;f++)J.set(j.subarray(P,P+H),W),D.set(M.subarray(G,G+_),Z),P+=$,W+=O,G+=q.width,Z+=A.width}let X={x:K,y:Y,width:_,height:w-Y};if(A.damage)A.damage=Rt(A.damage,X);else A.damage=X;if(z<A.width){let P=Y*q.width+(z-1)<<1,W=Y*A.width+z<<1,G=!1;for(let Z=Y;Z<w;Z++){if((j[P+1]&Yc)===1)J[W]=Tk7,J[W+1]=b36(A.emptyStyleId,0,2),G=!0;P+=$,W+=O}if(G&&A.damage){if(A.damage.x+A.damage.width===z)A.damage={...A.damage,width:A.damage.width+1}}}}function yk7(A){for(let q of A){let K=q.code;if(K.length<5||!K.startsWith(Rm6))continue;let Y=K.match(Lk7);if(Y)return Y[1]||null}return null}function Rk7(A){return A.filter((q)=>!q.code.startsWith(Rm6)||!Lk7.test(q.code))}function sO8(A,q,K){let Y=A.width,z=q.width,w=A.height,_=q.height,$;if(Y===0&&w===0)$={x:0,y:0,width:z,height:_};else if(q.damage){if($=q.damage,A.damage)$=Rt($,A.damage)}else if(A.damage)$=A.damage;else $={x:0,y:0,width:0,height:0};if(w>_)$=Rt($,{x:0,y:_,width:Y,height:w-_});if(Y>z)$=Rt($,{x:z,y:0,width:Y-z,height:w});let O=Math.max(w,_),H=Math.max(Y,z),j=Math.min($.y+$.height,O),J=Math.min($.x+$.width,H);if(Y===z)return a19(A,q,$.x,J,$.y,j,K);return s19(A,q,$.x,J,$.y,j,K)}function i19(A,q,K,Y){for(let z=0;z<Y;z++,K+=2){let w=K|1;if(A[K]!==q[K]||A[w]!==q[w])return z}return Y}function n19(A,q,K,Y,z,w,_,$,O,H,j){let J=_;while(J<$){let M=i19(A,q,z,$-J);if(J+=M,z+=M<<1,J>=$)break;if(St(K,z,O),St(Y,z,H),j(J,w,O,H))return!0;J++,z+=2}return!1}function r19(A,q,K,Y,z,w,_){for(let $=Y;$<z;$++,q+=2)if(St(A,q,w),_($,K,w,void 0))return!0;return!1}function o19(A,q,K,Y,z,w,_,$){for(let O=z;O<w;O++,K+=2){if(A[K]===0&&A[K|1]===0)continue;if(St(q,K,_),$(O,Y,void 0,_))return!0}return!1}function a19(A,q,K,Y,z,w,_){let $=A.cells,O=q.cells,H=A.width,j=A.height,J=q.height,M=H<<1,D={char:" ",styleId:0,width:0,hyperlink:void 0},X={char:" ",styleId:0,width:0,hyperlink:void 0},P=Math.min(Y,H),W=z*H+K<<1;for(let G=z;G<w;G++){let Z=G<j,f=G<J;if(Z&&f){if(n19($,O,A,q,W,G,K,P,D,X,_))return!0}else if(Z){if(r19(A,W,G,K,P,D,_))return!0}else if(f){if(o19(O,q,W,G,K,P,X,_))return!0}W+=M}return!1}function s19(A,q,K,Y,z,w,_){let $=A.width,O=q.width,H=A.cells,j=q.cells,J={char:" ",styleId:0,width:0,hyperlink:void 0},M={char:" ",styleId:0,width:0,hyperlink:void 0},D=$<<1,X=O<<1,P=z*$+K<<1,W=z*O+K<<1;for(let G=z;G<w;G++){let Z=G<A.height,f=G<q.height,v=Z?Math.min(Y,$):K,V=f?Math.min(Y,O):K,N=Math.min(v,V),L=P,S=W;for(let C=K;C<N;C++){if(H[L]===j[S]&&H[L+1]===j[S+1]){L+=2,S+=2;continue}if(St(A,L,J),St(q,S,M),L+=2,S+=2,_(C,G,J,M))return!0}if(v>N){L=P+(N-K<<1);for(let C=N;C<v;C++)if(St(A,L,J),L+=2,_(C,G,J,void 0))return!0}if(V>N){S=W+(N-K<<1);for(let C=N;C<V;C++){if(j[S]===0&&j[S|1]===0){S+=2;continue}if(St(q,S,M),S+=2,_(C,G,void 0,M))return!0}}P+=D,W+=X}return!1}function Sk7(A,q,K,Y,z){let w=Math.min(q+Y,A.width),_=Math.min(K+z,A.height),$=A.noSelect,O=A.width;for(let H=Math.max(0,K);H<_;H++){let j=H*O;$.fill(1,j+Math.max(0,q),j+w)}}var g19,p19,iO8=0,Tk7=1,hP6=17,CP6=2,Lm6=32767,Yc=3,U19=0n,Lk7,Rm6;var m36=E(()=>{cO8();x36();lO8();L36();g19={type:"ansi",code:"\x1B[7m",endCode:"\x1B[27m"};p19=new Set(["\x1B[49m","\x1B[27m","\x1B[24m","\x1B[29m","\x1B[55m"]);Lk7=new RegExp(`^${Et}\\]8${Lt}${Lt}([^${ed}]*)${ed}$`),Rm6=`${Et}]8${Lt}`});function t19(A,q){if(!A)return q;return{x1:hk7(A.x1,q.x1),x2:Ck7(A.x2,q.x2),y1:hk7(A.y1,q.y1),y2:Ck7(A.y2,q.y2)}}function hk7(A,q){if(A===void 0)return q;if(q===void 0)return A;return Math.max(A,q)}function Ck7(A,q){if(A===void 0)return q;if(q===void 0)return A;return Math.min(A,q)}class R$1{width;height;stylePool;screen;operations=[];charCache=new Map;constructor(A){let{width:q,height:K,stylePool:Y,screen:z}=A;this.width=q,this.height=K,this.stylePool=Y,this.screen=z,rO8(z,q,K)}reset(A,q,K){if(this.width=A,this.height=q,this.screen=K,this.operations.length=0,rO8(K,A,q),this.charCache.size>16384)this.charCache.clear()}blit(A,q){this.operations.push({type:"blit",src:A,region:q})}clear(A){this.operations.push({type:"clear",region:A})}noSelect(A){this.operations.push({type:"noSelect",region:A})}write(A,q,K){if(!K)return;this.operations.push({type:"write",x:A,y:q,text:K})}clip(A){this.operations.push({type:"clip",clip:A})}unclip(){this.operations.push({type:"unclip"})}get(){let A=this.screen,q=this.width,K=this.height,Y=0,z=0;for(let $ of this.operations){if($.type!=="clear")continue;let{x:O,y:H,width:j,height:J}=$.region,M=Math.max(0,O),D=Math.max(0,H),X=Math.min(O+j,q),P=Math.min(H+J,K);if(M>=X||D>=P)continue;let W={x:M,y:D,width:X-M,height:P-D};A.damage=A.damage?Rt(A.damage,W):W}let w=[];for(let $ of this.operations)switch($.type){case"clear":continue;case"clip":w.push(t19(w.at(-1),$.clip));continue;case"unclip":w.pop();continue;case"blit":{let{src:O,region:H}=$,{x:j,y:J,width:M,height:D}=H,X=Math.min(J+D,K,O.height),P=Math.min(j+M,q,O.width);Ek7(A,O,j,J,P,X),Y+=(X-J)*(P-j);continue}case"write":{let{text:O}=$,{x:H,y:j}=$,J=O.split(`
`),M=w.at(-1);if(M){let X=typeof M?.x1==="number"&&typeof M?.x2==="number",P=typeof M?.y1==="number"&&typeof M?.y2==="number";if(X){let W=f$1(O);if(H+W<M.x1||H>M.x2)continue}if(P){let W=J.length;if(j+W<M.y1||j>M.y2)continue}if(X){if(J=J.map((W)=>{let G=H<M.x1?M.x1-H:0,Z=u8(W),f=H+Z>M.x2?M.x2-H:Z;return Fk(W,G,f)}),H<M.x1)H=M.x1}if(P){let W=j<M.y1?M.y1-j:0,G=J.length,Z=j+G>M.y2?M.y2-j:G;if(J=J.slice(W,Z),j<M.y1)j=M.y1}}let D=0;for(let X of J){let P=j+D;if(P>=K)break;z+=q89(A,X,H,P,q,this.stylePool,this.charCache),D++}continue}}for(let $ of this.operations)if($.type==="noSelect"){let{x:O,y:H,width:j,height:J}=$.region;Sk7(A,O,H,j,J)}let _=Y+z;if(_>1000&&z>Y)y(`High write ratio: blit=${Y}, write=${z} (${(z/_*100).toFixed(1)}% writes), screen=${K}x${q}`);return A}}function e19(A,q){if(A===q)return!0;let K=A.length;if(K!==q.length)return!1;if(K===0)return!0;for(let Y=0;Y<K;Y++)if(A[Y].code!==q[Y].code)return!1;return!0}function A89(A,q){let K=A.length;if(K===0)return[];let Y=[],z=[],w=A[0].styles;for(let _=0;_<K;_++){let $=A[_],O=$.styles;if(z.length>0&&!e19(O,w))Ik7(z.join(""),w,q,Y),z.length=0;z.push($.value),w=O}if(z.length>0)Ik7(z.join(""),w,q,Y);return Y}function Ik7(A,q,K,Y){let z=yk7(q)??void 0,_=z!==void 0||q.some((O)=>O.code.length>=Rm6.length&&O.code.startsWith(Rm6))?Rk7(q):q,$=K.intern(_);for(let{segment:O}of Jj().segment(A))Y.push({value:O,width:u8(O),styleId:$,hyperlink:z})}function q89(A,q,K,Y,z,w,_){let $=_.get(q);if(!$)$=A89(Xk7(RP6(q)),w),_.set(q,$);let O=K,H=0;for(let j=0;j<$.length;j++){let J=$[j],M=J.value.codePointAt(0);if(M!==void 0&&M<=31){if(M===9){let W=8-O%8;for(let G=0;G<W&&O<z;G++)y$1(A,O,Y,{char:" ",styleId:w.none,width:0,hyperlink:void 0}),O++}else if(M===27){let P=$[j+1]?.value,W=P?.codePointAt(0);if(P==="("||P===")"||P==="*"||P==="+")j+=2;else if(P==="["){j++;while(j<$.length-1){j++;let G=$[j]?.value.codePointAt(0);if(G!==void 0&&G>=64&&G<=126)break}}else if(P==="]"||P==="P"||P==="_"||P==="^"||P==="X"){j++;while(j<$.length-1){j++;let G=$[j]?.value;if(G==="\x07")break;if(G==="\x1B"){if($[j+1]?.value==="\\"){j++;break}}}}else if(W!==void 0&&W>=48&&W<=126)j++}continue}let D=J.width;if(D===0)continue;let X=D>=2;if(X&&O+2>z){y$1(A,O,Y,{char:" ",styleId:w.none,width:3,hyperlink:void 0}),O++;continue}y$1(A,O,Y,{char:J.value,styleId:J.styleId,width:X?1:0,hyperlink:J.hyperlink}),H++,O+=X?2:1}return H}var bk7=E(()=>{SP6();bO8();x36();_5();m36();Z1();cO8();Wy()});function tO8(A,q){let K;return(Y)=>{let{frontFrame:z,backFrame:w,isTTY:_,terminalWidth:$,terminalRows:O}=Y,H=z.screen,j=w.screen,J=j.charPool,M=j.hyperlinkPool,D=A.yogaNode?.getComputedHeight(),X=A.yogaNode?.getComputedWidth(),P=D===void 0||!Number.isFinite(D)||D<0,W=X===void 0||!Number.isFinite(X)||X<0;if(!A.yogaNode||P||W){if(A.yogaNode&&(P||W))y(`Invalid yoga dimensions: width=${X}, height=${D}, childNodes=${A.childNodes.length}, terminalWidth=${$}, terminalRows=${O}`);return{screen:u36($,0,q,J,M),viewport:{width:$,height:O},cursor:{x:0,y:0,visible:!0}}}let G=Math.floor(A.yogaNode.getComputedWidth()),Z=Math.floor(A.yogaNode.getComputedHeight()),f=j??u36(G,Z,q,J,M);if(K)K.reset(G,Z,f);else K=new R$1({width:G,height:Z,stylePool:q,screen:f});return Ok7(A,K,{prevScreen:Y.altScreen?void 0:H}),{screen:K.get(),viewport:{width:$,height:Y.altScreen?O+1:O},cursor:{x:0,y:Y.altScreen?Math.max(0,Math.min(f.height,O)-1):f.height,visible:!_||f.height===0}}}}var uk7=E(()=>{Hk7();bk7();m36();Z1()});import{Buffer as K89}from"buffer";function E0(...A){let q=e8.terminal==="kitty"?Y89:ed;return`${eO8}${A.join(Lt)}${q}`}function AH8(A){let q=K89.from(A,"utf8").toString("base64");return E0(fj.CLIPBOARD,"c",q)}function mk7(A){let q=A.indexOf(";"),K=q>=0?A.slice(0,q):A,Y=q>=0?A.slice(q+1):"",z=parseInt(K,10);if(z===fj.SET_TITLE_AND_ICON)return{type:"title",action:{type:"both",title:Y}};if(z===fj.SET_ICON)return{type:"title",action:{type:"iconName",name:Y}};if(z===fj.SET_TITLE)return{type:"title",action:{type:"windowTitle",title:Y}};if(z===fj.HYPERLINK){let w=Y.split(";"),_=w[0]??"",$=w.slice(1).join(";");if($==="")return{type:"link",action:{type:"end"}};let O={};if(_)for(let H of _.split(":")){let j=H.indexOf("=");if(j>=0)O[H.slice(0,j)]=H.slice(j+1)}return{type:"link",action:{type:"start",url:$,params:Object.keys(O).length>0?O:void 0}}}return{type:"unknown",sequence:`\x1B]${A}`}}function S$1(A,q){let K=q?Object.entries(q).map(([Y,z])=>`${Y}=${z}`).join(":"):"";return E0(fj.HYPERLINK,K,A)}var eO8,Y89,fj,qH8,B36,g36,h$1,Bk7;var IB=E(()=>{L36();o5();eO8=Et+String.fromCharCode(fI.OSC),Y89=Et+"\\";fj={SET_TITLE_AND_ICON:0,SET_ICON:1,SET_TITLE:2,SET_COLOR:4,SET_CWD:7,HYPERLINK:8,ITERM2:9,SET_FG_COLOR:10,SET_BG_COLOR:11,SET_CURSOR_COLOR:12,CLIPBOARD:52,KITTY:99,RESET_COLOR:104,RESET_FG_COLOR:110,RESET_BG_COLOR:111,RESET_CURSOR_COLOR:112,SEMANTIC_PROMPT:133,GHOSTTY:777};qH8=E0(fj.HYPERLINK,"",""),B36={NOTIFY:0,BADGE:2,PROGRESS:4},g36={CLEAR:0,SET:1,ERROR:2,INDETERMINATE:3},h$1=`${eO8}${fj.ITERM2};${B36.PROGRESS};${g36.CLEAR};${ed}`,Bk7=`${eO8}${fj.SET_TITLE_AND_ICON};${ed}`});class YH8{options;state;constructor(A){this.options=A;this.state={previousOutput:""}}renderPreviousOutput_DEPRECATED(A){if(!this.options.isTTY)return[C$1];return this.getRenderOpsForDone(A)}reset(){this.state.previousOutput=""}renderFullFrame(A){let{screen:q}=A,K=[],Y=[],z=void 0;for(let w=0;w<q.height;w++){let _="";for(let O=0;O<q.width;O++){let H=ym6(q,O,w);if(H&&H.width!==2){if(H.hyperlink!==z){if(z!==void 0)_+=qH8;if(H.hyperlink!==void 0)_+=S$1(H.hyperlink);z=H.hyperlink}let j=this.options.stylePool.get(H.styleId),J=VI(Y,j);if(J.length>0)_+=Nf(J),Y=j;_+=H.char}}if(z!==void 0)_+=qH8,z=void 0;let $=VI(Y,[]);if($.length>0)_+=Nf($),Y=[];K.push(_.trimEnd())}if(K.length===0)return[];return[{type:"stdout",content:K.join(`
`)}]}getRenderOpsForDone(A){if(this.state.previousOutput="",!A.cursor.visible)return[{type:"cursorShow"}];return[]}render(A,q){if(!this.options.isTTY)return this.renderFullFrame(q);let K=performance.now();if(q.viewport.height<A.viewport.height||A.viewport.width!==0&&q.viewport.width!==A.viewport.width)return Sm6(q,"resize",this.options.stylePool);let Y=A.cursor.y>=A.screen.height,z=q.screen.height>A.screen.height,w=Y&&A.screen.height>=A.viewport.height,_=q.screen.height<A.screen.height,$=q.screen.height<=A.viewport.height;if(w&&$&&_)return y(`Full reset (shrink->below): prevHeight=${A.screen.height}, nextHeight=${q.screen.height}, viewport=${A.viewport.height}`),Sm6(q,"offscreen",this.options.stylePool);if(A.screen.height>=A.viewport.height&&A.screen.height>0&&Y&&!z){let f=A.screen.height-A.viewport.height+1,v=-1;if(sO8(A.screen,q.screen,(V,N)=>{if(N<f)return v=N,!0}),v>=0){let V="";for(let L=0;L<A.screen.width;L++)V+=aO8(A.screen,L,v)??" ";let N="";for(let L=0;L<q.screen.width;L++)N+=aO8(q.screen,L,v)??" ";return y(`Full reset (scrollback changes): scrollbackRows=${f}, firstChangeY=${v}
  prev: "${V}"
  next: "${N}"`),Sm6(q,"offscreen",this.options.stylePool)}}let O=new wH8(A.cursor,q.viewport.width),H=Math.max(q.screen.height,1)-Math.max(A.screen.height,1),j=H<0,J=H>0;if(j){let Z=A.screen.height-q.screen.height;if(Z>A.viewport.height)return Sm6(q,"offscreen",this.options.stylePool);O.txn((f)=>[[{type:"clear",count:Z},{type:"cursorMove",x:0,y:-1}],{dx:-f.x,dy:-Z}])}let M=w?1:0,D=J?Math.max(0,A.screen.height-A.viewport.height+M):Math.max(A.screen.height,q.screen.height)-q.viewport.height+M,X=[],P=void 0,W=!1;if(sO8(A.screen,q.screen,(Z,f,v,V)=>{if(J&&f>=A.screen.height)return;if(V&&(V.width===2||V.width===3))return;if(v&&(v.width===2||v.width===3)&&!V)return;if(V&&vk7(q.screen,Z,f)&&!v)return;if(f<D)return W=!0,!0;if(KH8(O,Z,f),V){if(V.width===1&&zH8(V.char)&&Z+1<q.screen.width){let C=ym6(A.screen,Z+1,f);if(C&&C.width!==2&&C.width!==3){if(X.length>0){let m=VI(X,[]);if(m.length>0)O.diff.push({type:"style",codes:m})}if(P!==void 0)O.diff.push({type:"hyperlink",uri:""}),P=void 0;X=[],O.txn(()=>[[{type:"cursorTo",col:Z+2},{type:"stdout",content:" "},{type:"cursorTo",col:Z+1}],{dx:0,dy:0}])}}let N=V.hyperlink;P=gk7(O.diff,P,N);let L=this.options.stylePool.get(V.styleId),S=VI(X,L);w89(O,V,S),X=L}else if(v){let N=X,L=P;X=[],P=void 0,O.txn(()=>{let S=[];if(N.length>0){let C=VI(N,[]);if(C.length>0)S.push({type:"style",codes:C})}if(L!==void 0)S.push({type:"hyperlink",uri:""});return S.push({type:"stdout",content:" "}),[S,{dx:1,dy:0}]})}}),W)return Sm6(q,"offscreen",this.options.stylePool);if(X.length>0){let Z=VI(X,[]);if(Z.length>0)O.diff.push({type:"style",codes:Z});X=[]}if(P!==void 0)O.diff.push({type:"hyperlink",uri:""}),P=void 0;if(J)pk7(O,q,A.screen.height,q.screen.height,this.options.stylePool);if(q.cursor.y>=q.screen.height)O.txn((Z)=>{let f=q.cursor.y-Z.y;if(f>0){let V=Array(1+f);V[0]=IP6;for(let N=0;N<f;N++)V[1+N]=C$1;return[V,{dx:-Z.x,dy:f}]}let v=q.cursor.y-Z.y;if(v!==0||Z.x!==q.cursor.x){let V=[IP6];return V.push({type:"cursorMove",x:q.cursor.x,y:v}),[V,{dx:q.cursor.x-Z.x,dy:v}]}return[[],{dx:0,dy:0}]});else KH8(O,q.cursor.x,q.cursor.y);let G=performance.now()-K;if(G>50){let Z=q.screen.damage,f=Z?`${Z.width}x${Z.height} at (${Z.x},${Z.y})`:"none";y(`Slow render: ${G.toFixed(1)}ms, screen: ${q.screen.height}x${q.screen.width}, damage: ${f}, changes: ${O.diff.length}`)}return O.diff}}function gk7(A,q,K){if(q!==K)return A.push({type:"hyperlink",uri:K??""}),K;return q}function Sm6(A,q,K){let Y=new wH8({x:0,y:0},A.viewport.width);return z89(Y,A,K),[{type:"clearTerminal",reason:q},...Y.diff]}function z89(A,q,K){pk7(A,q,0,q.screen.height,K)}function pk7(A,q,K,Y,z){let w=z.none,_=void 0,$=-1,{width:O,cells:H,charPool:j,hyperlinkPool:J}=q.screen,M=K*O;for(let D=K;D<Y;D+=1){if(A.cursor.y<D){let X=D-A.cursor.y;A.txn((P)=>{let W=Array(1+X);W[0]=IP6;for(let G=0;G<X;G++)W[1+G]=C$1;return[W,{dx:-P.x,dy:X}]})}$=-1;for(let X=0;X<O;X+=1,M+=1){let P=Nk7(H,j,J,M,$);if(!P)continue;KH8(A,X,D);let W=P.hyperlink;_=gk7(A.diff,_,W);let G=z.transition(w,P.styleId);_89(A,P,G),w=P.styleId,$=P.styleId}if(w!==z.none){let X=z.transition(w,z.none);if(X.length>0)A.diff.push({type:"styleStr",str:X});w=z.none}if(_!==void 0)A.diff.push({type:"hyperlink",uri:""}),_=void 0;A.txn((X)=>[[IP6,C$1],{dx:-X.x,dy:1}])}if(_!==void 0)A.diff.push({type:"hyperlink",uri:""});if(w!==z.none){let D=z.transition(w,z.none);if(D.length>0)A.diff.push({type:"styleStr",str:D})}return A}function w89(A,q,K){A.txn((Y)=>{let z=q.width===1?2:1;if(z===2&&Y.x<A.viewportWidth){let O=q.char.length>2?A.viewportWidth:A.viewportWidth+1;if(Y.x+2>=O)return[[],{dx:0,dy:0}]}let w=Y.x>=A.viewportWidth?z-Y.x:z,_=Y.x>=A.viewportWidth?1:0,$=K.length>0?[{type:"style",codes:K},{type:"stdout",content:q.char}]:[{type:"stdout",content:q.char}];if(z===2&&zH8(q.char))$.push({type:"cursorTo",col:Y.x+z+1});return[$,{dx:w,dy:_}]})}function _89(A,q,K){let Y=q.width===1?2:1,z=A.cursor.x,w=A.viewportWidth;if(Y===2&&z<w){let $=q.char.length>2?w:w+1;if(z+2>=$)return}let _=A.diff;if(K.length>0)_.push({type:"styleStr",str:K});if(_.push({type:"stdout",content:q.char}),Y===2&&zH8(q.char))_.push({type:"cursorTo",col:z+Y+1});if(z>=w)A.cursor.x=Y,A.cursor.y++;else A.cursor.x=z+Y}function KH8(A,q,K){A.txn((Y)=>{let z=q-Y.x,w=K-Y.y;if(Y.x>=A.viewportWidth)return[[IP6,{type:"cursorMove",x:q,y:w}],{dx:z,dy:w}];if(w!==0)return[[IP6,{type:"cursorMove",x:q,y:w}],{dx:z,dy:w}];return[[{type:"cursorMove",x:z,y:w}],{dx:z,dy:w}]})}function zH8(A){let q=A.codePointAt(0);if(q===void 0)return!1;if(q>=129648&&q<=129791||q>=129792&&q<=130047)return!0;if(A.length>=2){for(let K=0;K<A.length;K++)if(A.charCodeAt(K)===65039)return!0}return!1}class wH8{viewportWidth;cursor;diff=[];constructor(A,q){this.viewportWidth=q;this.cursor={...A}}txn(A){let[q,K]=A(this.cursor);for(let Y of q)this.diff.push(Y);this.cursor.x+=K.dx,this.cursor.y+=K.dy}}var IP6,C$1;var Fk7=E(()=>{m36();x36();Z1();IB();IP6={type:"carriageReturn"},C$1={type:"stdout",content:`
`}});var $89,LG;var zc=E(()=>{$89=new Map,LG=$89});class NI{_didStopImmediatePropagation=!1;didStopImmediatePropagation(){return this._didStopImmediatePropagation}stopImmediatePropagation(){this._didStopImmediatePropagation=!0}}import{EventEmitter as O89}from"events";var p36;var I$1=E(()=>{p36=class p36 extends O89{constructor(){super();this.setMaxListeners(0)}emit(A,...q){if(A==="error")return super.emit(A,...q);let K=this.rawListeners(A);if(K.length===0)return!1;let Y=q[0]instanceof NI?q[0]:null;for(let z of K)if(z.apply(this,q),Y?.didStopImmediatePropagation())break;return!0}}});var Qk7,Uk7,x$1;var _H8=E(()=>{Qk7=q6(W6(),1),Uk7=Qk7.createContext({exit(){}});Uk7.displayName="InternalAppContext";x$1=Uk7});var dk7,ck7,xP6;var b$1=E(()=>{I$1();dk7=q6(W6(),1),ck7=dk7.createContext({stdin:process.stdin,internal_eventEmitter:new p36,setRawMode(){},isRawModeSupported:!1,internal_exitOnCtrlC:!0,internal_querier:null});ck7.displayName="InternalStdinContext";xP6=ck7});var lk7,ik7,bP6;var u$1=E(()=>{lk7=q6(W6(),1),ik7=lk7.createContext({activeId:void 0,add(){},remove(){},activate(){},deactivate(){},enableFocus(){},disableFocus(){},focusNext(){},focusPrevious(){},focus(){}});ik7.displayName="InternalFocusContext";bP6=ik7});function HH8(A){OH8=A?"focused":"blurred";for(let q of $H8)q();if(!A){for(let q of nk7)q();nk7.clear()}}function m$1(){return OH8!=="blurred"}function rk7(){return OH8}function jH8(A){return $H8.add(A),()=>{$H8.delete(A)}}var OH8="unknown",nk7,$H8;var B$1=E(()=>{nk7=new Set,$H8=new Set});function ok7(A){let q=K6(6),{children:K}=A,Y=F36.useSyncExternalStore(jH8,m$1),z=F36.useSyncExternalStore(jH8,rk7),w;if(q[0]!==Y||q[1]!==z)w={isTerminalFocused:Y,terminalFocusState:z},q[0]=Y,q[1]=z,q[2]=w;else w=q[2];let _=w,$;if(q[3]!==K||q[4]!==_)$=F36.default.createElement(JH8.Provider,{value:_},K),q[3]=K,q[4]=_,q[5]=$;else $=q[5];return $}var F36,JH8,ak7;var MH8=E(()=>{t6();B$1();F36=q6(W6(),1),JH8=F36.createContext({isTerminalFocused:!0,terminalFocusState:"unknown"});JH8.displayName="TerminalFocusContext";ak7=JH8});var tk7=h((jD2,sk7)=>{var H89=/[|\\{}()[\]^$+*?.-]/g;sk7.exports=(A)=>{if(typeof A!=="string")throw TypeError("Expected a string");return A.replace(H89,"\\$&")}});var KE7=h((JD2,qE7)=>{var j89=tk7(),J89=typeof process==="object"&&process&&typeof process.cwd==="function"?process.cwd():".",AE7=[].concat(u6("module").builtinModules,"bootstrap_node","node").map((A)=>new RegExp(`(?:\\((?:node:)?${A}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${A}(?:\\.js)?:\\d+:\\d+$)`));AE7.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);class DH8{constructor(A){if(A={ignoredPackages:[],...A},"internals"in A===!1)A.internals=DH8.nodeInternals();if("cwd"in A===!1)A.cwd=J89;this._cwd=A.cwd.replace(/\\/g,"/"),this._internals=[].concat(A.internals,M89(A.ignoredPackages)),this._wrapCallSite=A.wrapCallSite||!1}static nodeInternals(){return[...AE7]}clean(A,q=0){if(q=" ".repeat(q),!Array.isArray(A))A=A.split(`
`);if(!/^\s*at /.test(A[0])&&/^\s*at /.test(A[1]))A=A.slice(1);let K=!1,Y=null,z=[];return A.forEach((w)=>{if(w=w.replace(/\\/g,"/"),this._internals.some(($)=>$.test(w)))return;let _=/^\s*at /.test(w);if(K)w=w.trimEnd().replace(/^(\s+)at /,"$1");else if(w=w.trim(),_)w=w.slice(3);if(w=w.replace(`${this._cwd}/`,""),w)if(_){if(Y)z.push(Y),Y=null;z.push(w)}else K=!0,Y=w}),z.map((w)=>`${q}${w}
`).join("")}captureString(A,q=this.captureString){if(typeof A==="function")q=A,A=1/0;let{stackTraceLimit:K}=Error;if(A)Error.stackTraceLimit=A;let Y={};Error.captureStackTrace(Y,q);let{stack:z}=Y;return Error.stackTraceLimit=K,this.clean(z)}capture(A,q=this.capture){if(typeof A==="function")q=A,A=1/0;let{prepareStackTrace:K,stackTraceLimit:Y}=Error;if(Error.prepareStackTrace=(_,$)=>{if(this._wrapCallSite)return $.map(this._wrapCallSite);return $},A)Error.stackTraceLimit=A;let z={};Error.captureStackTrace(z,q);let{stack:w}=z;return Object.assign(Error,{prepareStackTrace:K,stackTraceLimit:Y}),w}at(A=this.at){let[q]=this.capture(1,A);if(!q)return{};let K={line:q.getLineNumber(),column:q.getColumnNumber()};if(ek7(K,q.getFileName(),this._cwd),q.isConstructor())Object.defineProperty(K,"constructor",{value:!0,configurable:!0});if(q.isEval())K.evalOrigin=q.getEvalOrigin();if(q.isNative())K.native=!0;let Y;try{Y=q.getTypeName()}catch(_){}if(Y&&Y!=="Object"&&Y!=="[object Object]")K.type=Y;let z=q.getFunctionName();if(z)K.function=z;let w=q.getMethodName();if(w&&z!==w)K.method=w;return K}parseLine(A){let q=A&&A.match(D89);if(!q)return null;let K=q[1]==="new",Y=q[2],z=q[3],w=q[4],_=Number(q[5]),$=Number(q[6]),O=q[7],H=q[8],j=q[9],J=q[10]==="native",M=q[11]===")",D,X={};if(H)X.line=Number(H);if(j)X.column=Number(j);if(M&&O){let P=0;for(let W=O.length-1;W>0;W--)if(O.charAt(W)===")")P++;else if(O.charAt(W)==="("&&O.charAt(W-1)===" "){if(P--,P===-1&&O.charAt(W-1)===" "){let G=O.slice(0,W-1);O=O.slice(W+1),Y+=` (${G}`;break}}}if(Y){let P=Y.match(X89);if(P)Y=P[1],D=P[2]}if(ek7(X,O,this._cwd),K)Object.defineProperty(X,"constructor",{value:!0,configurable:!0});if(z)X.evalOrigin=z,X.evalLine=_,X.evalColumn=$,X.evalFile=w&&w.replace(/\\/g,"/");if(J)X.native=!0;if(Y)X.function=Y;if(D&&Y!==D)X.method=D;return X}}function ek7(A,q,K){if(q){if(q=q.replace(/\\/g,"/"),q.startsWith(`${K}/`))q=q.slice(K.length+1);A.file=q}}function M89(A){if(A.length===0)return[];let q=A.map((K)=>j89(K));return new RegExp(`[/\\\\]node_modules[/\\\\](?:${q.join("|")})[/\\\\][^:]+:\\d+:\\d+`)}var D89=new RegExp("^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$"),X89=/^(.*?) \[as (.*?)\]$/;qE7.exports=DH8});var P89=(A,q=2)=>{return A.replace(/^\t+/gm,(K)=>" ".repeat(K.length*q))},YE7;var zE7=E(()=>{YE7=P89});var W89=(A,q)=>{let K=[],Y=A-q,z=A+q;for(let w=Y;w<=z;w++)K.push(w);return K},G89=(A,q,K={})=>{var Y;if(typeof A!=="string")throw TypeError("Source code is missing.");if(!q||q<1)throw TypeError("Line number must start from `1`.");let z=YE7(A).split(/\r?\n/);if(q>z.length)return;return W89(q,(Y=K.around)!==null&&Y!==void 0?Y:3).filter((w)=>z[w-1]!==void 0).map((w)=>({line:w,value:z[w-1]}))},wE7;var _E7=E(()=>{zE7();wE7=G89});function Z89(A){let q=K6(22),K,Y,z,w,_,$,O,H;if(q[0]!==A){let{children:X,flexWrap:P,flexDirection:W,flexGrow:G,flexShrink:Z,ref:f,onClick:v,...V}=A;K=X,O=f,$=v,H=V,_=P===void 0?"nowrap":P,Y=W===void 0?"row":W,z=G===void 0?0:G,w=Z===void 0?1:Z,NH(H.margin,"margin"),NH(H.marginX,"marginX"),NH(H.marginY,"marginY"),NH(H.marginTop,"marginTop"),NH(H.marginBottom,"marginBottom"),NH(H.marginLeft,"marginLeft"),NH(H.marginRight,"marginRight"),NH(H.padding,"padding"),NH(H.paddingX,"paddingX"),NH(H.paddingY,"paddingY"),NH(H.paddingTop,"paddingTop"),NH(H.paddingBottom,"paddingBottom"),NH(H.paddingLeft,"paddingLeft"),NH(H.paddingRight,"paddingRight"),NH(H.gap,"gap"),NH(H.columnGap,"columnGap"),NH(H.rowGap,"rowGap"),q[0]=A,q[1]=K,q[2]=Y,q[3]=z,q[4]=w,q[5]=_,q[6]=$,q[7]=O,q[8]=H}else K=q[1],Y=q[2],z=q[3],w=q[4],_=q[5],$=q[6],O=q[7],H=q[8];let j=H.overflowX??H.overflow??"visible",J=H.overflowY??H.overflow??"visible",M;if(q[9]!==Y||q[10]!==z||q[11]!==w||q[12]!==_||q[13]!==H||q[14]!==j||q[15]!==J)M={flexWrap:_,flexDirection:Y,flexGrow:z,flexShrink:w,...H,overflowX:j,overflowY:J},q[9]=Y,q[10]=z,q[11]=w,q[12]=_,q[13]=H,q[14]=j,q[15]=J,q[16]=M;else M=q[16];let D;if(q[17]!==K||q[18]!==$||q[19]!==O||q[20]!==M)D=$E7.default.createElement("ink-box",{ref:O,onClick:$,style:M},K),q[17]=K,q[18]=$,q[19]=O,q[20]=M,q[21]=D;else D=q[21];return D}var $E7,TM;var wc=E(()=>{t6();lO8();$E7=q6(W6(),1);TM=Z89});function Gz(A){let q=K6(29),{color:K,backgroundColor:Y,bold:z,dim:w,italic:_,underline:$,strikethrough:O,inverse:H,wrap:j,children:J}=A,M=_===void 0?!1:_,D=$===void 0?!1:$,X=O===void 0?!1:O,P=H===void 0?!1:H,W=j===void 0?"wrap":j;if(J===void 0||J===null)return null;let G;if(q[0]!==K)G=K&&{color:K},q[0]=K,q[1]=G;else G=q[1];let Z;if(q[2]!==Y)Z=Y&&{backgroundColor:Y},q[2]=Y,q[3]=Z;else Z=q[3];let f;if(q[4]!==w)f=w&&{dim:w},q[4]=w,q[5]=f;else f=q[5];let v;if(q[6]!==z)v=z&&{bold:z},q[6]=z,q[7]=v;else v=q[7];let V;if(q[8]!==M)V=M&&{italic:M},q[8]=M,q[9]=V;else V=q[9];let N;if(q[10]!==D)N=D&&{underline:D},q[10]=D,q[11]=N;else N=q[11];let L;if(q[12]!==X)L=X&&{strikethrough:X},q[12]=X,q[13]=L;else L=q[13];let S;if(q[14]!==P)S=P&&{inverse:P},q[14]=P,q[15]=S;else S=q[15];let C;if(q[16]!==V||q[17]!==N||q[18]!==L||q[19]!==S||q[20]!==G||q[21]!==Z||q[22]!==f||q[23]!==v)C={...G,...Z,...f,...v,...V,...N,...L,...S},q[16]=V,q[17]=N,q[18]=L,q[19]=S,q[20]=G,q[21]=Z,q[22]=f,q[23]=v,q[24]=C;else C=q[24];let m=C,x=f89[W],p;if(q[25]!==J||q[26]!==x||q[27]!==m)p=OE7.default.createElement("ink-text",{style:x,textStyles:m},J),q[25]=J,q[26]=x,q[27]=m,q[28]=p;else p=q[28];return p}var OE7,f89;var Q36=E(()=>{t6();OE7=q6(W6(),1),f89={wrap:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:"wrap"},"wrap-trim":{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:"wrap-trim"},end:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:"end"},middle:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:"middle"},"truncate-end":{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:"truncate-end"},truncate:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:"truncate"},"truncate-middle":{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:"truncate-middle"},"truncate-start":{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:"truncate-start"}}});import*as JE7 from"node:fs";import{cwd as ME7}from"node:process";function PH8({error:A}){let q=A.stack?A.stack.split(`
`).slice(1):void 0,K=q?jE7.parseLine(q[0]):void 0,Y=HE7(K?.file),z,w=0;if(Y&&K?.line)try{let _=JE7.readFileSync(Y,"utf8");if(z=wE7(_,K.line),z)for(let{line:$}of z)w=Math.max(w,String($).length)}catch{}return vM.default.createElement(TM,{flexDirection:"column",padding:1},vM.default.createElement(TM,null,vM.default.createElement(Gz,{backgroundColor:"ansi:red",color:"ansi:white"}," ","ERROR"," "),vM.default.createElement(Gz,null," ",A.message)),K&&Y&&vM.default.createElement(TM,{marginTop:1},vM.default.createElement(Gz,{dim:!0},Y,":",K.line,":",K.column)),K&&z&&vM.default.createElement(TM,{marginTop:1,flexDirection:"column"},z.map(({line:_,value:$})=>vM.default.createElement(TM,{key:_},vM.default.createElement(TM,{width:w+1},vM.default.createElement(Gz,{dim:_!==K.line,backgroundColor:_===K.line?"ansi:red":void 0,color:_===K.line?"ansi:white":void 0},String(_).padStart(w," "),":")),vM.default.createElement(Gz,{key:_,backgroundColor:_===K.line?"ansi:red":void 0,color:_===K.line?"ansi:white":void 0}," "+$)))),A.stack&&vM.default.createElement(TM,{marginTop:1,flexDirection:"column"},A.stack.split(`
`).slice(1).map((_)=>{let $=jE7.parseLine(_);if(!$)return vM.default.createElement(TM,{key:_},vM.default.createElement(Gz,{dim:!0},"- "),vM.default.createElement(Gz,{bold:!0},_));return vM.default.createElement(TM,{key:_},vM.default.createElement(Gz,{dim:!0},"- "),vM.default.createElement(Gz,{bold:!0},$.function),vM.default.createElement(Gz,{dim:!0}," ","(",HE7($.file)??"",":",$.line,":",$.column,")"))})))}var vM,XH8,HE7=(A)=>{return A?.replace(`file://${ME7()}/`,"")},jE7;var DE7=E(()=>{_E7();wc();Q36();vM=q6(W6(),1),XH8=q6(KE7(),1),jE7=new XH8.default({cwd:ME7(),internals:XH8.default.nodeInternals()})});var uP6=16;function _2(){let{isTerminalFocused:A}=XE7.useContext(ak7);return A}var XE7;var mP6=E(()=>{MH8();XE7=q6(W6(),1)});function T89(A){let q=new Map,K=null,Y=A,z=0,w=0;function _(){w=Date.now()-z;for(let O of q.keys())O()}function $(){if([...q.values()].some(Boolean)){if(K)clearInterval(K),K=null;if(z===0)z=Date.now();K=setInterval(_,Y)}else if(K)clearInterval(K),K=null}return{subscribe(O,H){return q.set(O,H),$(),()=>{q.delete(O),$()}},now(){if(z===0)z=Date.now();if(K&&w)return w;return Date.now()-z},setTickInterval(O){if(O===Y)return;Y=O,$()}}}function PE7(A){let q=K6(7),{children:K}=A,[Y]=ht.useState(V89),z=_2(),w,_;if(q[0]!==Y||q[1]!==z)w=()=>{Y.setTickInterval(z?uP6:v89)},_=[Y,z],q[0]=Y,q[1]=z,q[2]=w,q[3]=_;else w=q[2],_=q[3];ht.useEffect(w,_);let $;if(q[4]!==K||q[5]!==Y)$=ht.default.createElement(BP6.Provider,{value:Y},K),q[4]=K,q[5]=Y,q[6]=$;else $=q[6];return $}function V89(){return T89(uP6)}var ht,BP6,v89;var g$1=E(()=>{t6();mP6();ht=q6(W6(),1);BP6=ht.createContext(null),v89=uP6*2});import{Buffer as N89}from"buffer";function WE7(A){return{kind:"key",name:"",fn:!1,ctrl:!1,meta:!1,shift:!1,option:!1,sequence:A,raw:A,isPasted:!0}}function b89(A){if(A.startsWith("\x1B[")){let q;if(q=R89.exec(A))return{type:"decrpm",mode:parseInt(q[1],10),status:parseInt(q[2],10)};if(q=S89.exec(A))return{type:"da1",params:GE7(q[1])};if(q=h89.exec(A))return{type:"da2",params:GE7(q[1])};if(q=C89.exec(A))return{type:"kittyKeyboard",flags:parseInt(q[1],10)};if(q=I89.exec(A))return{type:"cursorPosition",row:parseInt(q[1],10),col:parseInt(q[2],10)};return null}if(A.startsWith("\x1B]")){let q=x89.exec(A);if(q)return{type:"osc",code:parseInt(q[1],10),data:q[2]}}return null}function GE7(A){if(!A)return[];return A.split(";").map((q)=>parseInt(q,10))}function u89(A){if(N89.isBuffer(A))if(A[0]>127&&A[1]===void 0)return A[0]-=128,"\x1B"+String(A);else return String(A);else if(A!==void 0&&typeof A!=="string")return String(A);else if(!A)return"";else return A}function NE7(A,q=""){let K=q===null,Y=K?"":u89(q),z=A._tokenizer??ZP6(),w=K?z.flush():z.feed(Y),_=[],$=A.mode==="IN_PASTE",O=A.pasteBuffer;for(let j of w)if(j.type==="sequence")if(j.value===fN7)$=!0,O="";else if(j.value===TN7)_.push(WE7(O)),$=!1,O="";else if($)O+=j.value;else{let J=b89(j.value);if(J)_.push({kind:"response",sequence:j.value,response:J});else{let M=g89(j.value);if(M)_.push(M);else _.push(TE7(j.value))}}else if(j.type==="text")if($)O+=j.value;else _.push(TE7(j.value));if(K&&$&&O)_.push(WE7(O)),$=!1,O="";let H={mode:$?"IN_PASTE":"NORMAL",incomplete:z.buffer(),pasteBuffer:O,_tokenizer:z};return[_,H]}function ZE7(A){let q=A-1;return{shift:!!(q&1),meta:!!(q&2)||!!(q&8),ctrl:!!(q&4)}}function fE7(A){switch(A){case 9:return"tab";case 13:return"return";case 27:return"escape";case 32:return"space";case 127:return"backspace";case 57399:return"0";case 57400:return"1";case 57401:return"2";case 57402:return"3";case 57403:return"4";case 57404:return"5";case 57405:return"6";case 57406:return"7";case 57407:return"8";case 57408:return"9";case 57409:return".";case 57410:return"/";case 57411:return"*";case 57412:return"-";case 57413:return"+";case 57414:return"return";case 57415:return"=";default:if(A>=32&&A<=126)return String.fromCharCode(A).toLowerCase();return}}function g89(A){let q=vE7.exec(A);if(!q)return null;let K=parseInt(q[1],10);if((K&64)!==0)return null;return{kind:"mouse",button:K,action:q[4]==="M"?"press":"release",col:parseInt(q[2],10),row:parseInt(q[3],10),sequence:A}}function TE7(A=""){let q,K={kind:"key",name:"",fn:!1,ctrl:!1,meta:!1,shift:!1,option:!1,sequence:A,raw:A,isPasted:!1};K.sequence=K.sequence||A||K.name;let Y;if(Y=L89.exec(A)){let z=parseInt(Y[1],10),w=Y[2]?parseInt(Y[2],10):1,_=ZE7(w);return{kind:"key",name:fE7(z),fn:!1,ctrl:_.ctrl,meta:_.meta,shift:_.shift,option:!1,sequence:A,raw:A,isPasted:!1}}if(Y=y89.exec(A)){let z=ZE7(parseInt(Y[1],10));return{kind:"key",name:fE7(parseInt(Y[2],10)),fn:!1,ctrl:z.ctrl,meta:z.meta,shift:z.shift,option:!1,sequence:A,raw:A,isPasted:!1}}if(Y=vE7.exec(A)){let z=parseInt(Y[1],10);if((z&67)===64)return _c(A,"wheelup",!1);if((z&67)===65)return _c(A,"wheeldown",!1);return _c(A,"mouse",!1)}if(A==="\r")K.raw=void 0,K.name="return";else if(A===`
`)K.name="enter";else if(A==="\t")K.name="tab";else if(A==="\b"||A==="\x1B\b")K.name="backspace",K.meta=A.charAt(0)==="\x1B";else if(A==="