Files
Botexercito/Frontend/angular-internal-chat/dist/internal-chat-ui/browser/main-EIPMKREL.js

9 lines
201 KiB
JavaScript
Raw Normal View History

2026-03-22 18:07:19 +00:00
var Wf=Object.defineProperty,qf=Object.defineProperties;var Zf=Object.getOwnPropertyDescriptors;var $a=Object.getOwnPropertySymbols;var Yf=Object.prototype.hasOwnProperty,Qf=Object.prototype.propertyIsEnumerable;var Ua=(e,t,n)=>t in e?Wf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t)=>{for(var n in t||={})Yf.call(t,n)&&Ua(e,n,t[n]);if($a)for(var n of $a(t))Qf.call(t,n)&&Ua(e,n,t[n]);return e},U=(e,t)=>qf(e,Zf(t));var Xn=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function Ha(e,t){return Object.is(e,t)}var Y=null,er=!1,tr=1,Le=Symbol("SIGNAL");function T(e){let t=Y;return Y=e,t}function Ga(){return Y}var Dn={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ni(e){if(er)throw new Error("");if(Y===null)return;Y.consumerOnSignalRead(e);let t=Y.nextProducerIndex++;if(ir(Y),t<Y.producerNode.length&&Y.producerNode[t]!==e&&vn(Y)){let n=Y.producerNode[t];or(n,Y.producerIndexOfThis[t])}Y.producerNode[t]!==e&&(Y.producerNode[t]=e,Y.producerIndexOfThis[t]=vn(Y)?Za(e,Y,t):0),Y.producerLastReadVersion[t]=e.version}function Kf(){tr++}function za(e){if(!(vn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===tr)){if(!e.producerMustRecompute(e)&&!oi(e)){e.dirty=!1,e.lastCleanEpoch=tr;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=tr}}function Wa(e){if(e.liveConsumerNode===void 0)return;let t=er;er=!0;try{for(let n of e.liveConsumerNode)n.dirty||Jf(n)}finally{er=t}}function qa(){return Y?.consumerAllowSignalWrites!==!1}function Jf(e){e.dirty=!0,Wa(e),e.consumerMarkedDirty?.(e)}function rr(e){return e&&(e.nextProducerIndex=0),T(e)}function ri(e,t){if(T(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(vn(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)or(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function oi(e){ir(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(za(n),r!==n.version))return!0}return!1}function ii(e){if(ir(e),vn(e))for(let t=0;t<e.producerNode.length;t++)or(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function Za(e,t,n){if(Ya(e),e.liveConsumerNode.length===0&&Qa(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=Za(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function or(e,t){if(Ya(e),e.liveConsumerNode.length===1&&Qa(e))for(let r=0;r<e.producerNode.length;r++)or(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];ir(o),o.producerIndexOfThis[r]=t}}function vn(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function ir(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Ya(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Qa(e){return e.producerNode!==void 0}function Ka(e){let t=Object.create(Xf);t.computation=e;let n=()=>{if(za(t),ni(t),t.value===nr)throw t.error;return t.value};return n[Le]=t,n}var ei=Symbol("UNSET"),ti=Symbol("COMPUTING"),nr=Symbol("ERRORED"),Xf=U(k({},Dn),{value:ei
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function ut(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var J=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(_(r))try{r()}catch(i){t=i instanceof sr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{oc(i)}catch(s){t=t??[],s instanceof sr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new sr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)oc(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&ut(n,t)}remove(t){let{_finalizers:n}=this;n&&ut(n,t),t instanceof e&&t._removeParent(this)}};J.EMPTY=(()=>{let e=new J;return e.closed=!0,e})();var ai=J.EMPTY;function ar(e){return e instanceof J||e&&"closed"in e&&_(e.remove)&&_(e.add)&&_(e.unsubscribe)}function oc(e){_(e)?e():e.unsubscribe()}var De={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ft={setTimeout(e,t,...n){let{delegate:r}=Ft;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Ft;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function cr(e){Ft.setTimeout(()=>{let{onUnhandledError:t}=De;if(t)t(e);else throw e})}function ci(){}var ic=ui("C",void 0,void 0);function sc(e){return ui("E",void 0,e)}function ac(e){return ui("N",e,void 0)}function ui(e,t,n){return{kind:e,value:t,error:n}}var lt=null;function Pt(e){if(De.useDeprecatedSynchronousErrorHandling){let t=!lt;if(t&&(lt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=lt;if(lt=null,n)throw r}}else e()}function cc(e){De.useDeprecatedSynchronousErrorHandling&&lt&&(lt.errorThrown=!0,lt.error=e)}var dt=class extends J{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ar(t)&&t.add(this)):this.destination=ih}static create(t,n,r){return new kt(t,n,r)}next(t){this.isStopped?di(ac(t),this):this._next(t)}error(t){this.isStopped?di(sc(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?di(ic,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},rh=Function.prototype.bind;function li(e,t){return rh.call(e,t)}var fi=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ur(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ur(r)}else ur(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ur(n)}}},kt=class extends dt{constructor(t,n,r){super();let o;if(_(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&De.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&li(t.next,i),error:t.error&&li(t.error,i),complete:t.complete&&li(t.complete,i)}):o=t}this.destination=new fi(o)}};function ur(e){De.useDeprecatedSynchronousErrorHandling?cc(e):cr(e)}function oh(e){throw e}function di(e,t){let{onStoppedNotification:n}=De;n&&Ft.setTimeout(()=>n(e,t))}var ih={closed:!0,next:ci,error:oh,complete:ci};var Lt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function uc(e){return e}function lc(e){return e.length===0?uc:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var B=(()=>{class e{constructor(n
`);return n===-1?t:t.substring(0,n)}function Fc(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var xh=j({__forward_ref__:j});function Fn(e){return e.__forward_ref__=Fn,e.toString=function(){return fe(this())},e}function oe(e){return wu(e)?e():e}function wu(e){return typeof e=="function"&&e.hasOwnProperty(xh)&&e.__forward_ref__===Fn}function x(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Tt(e){return{providers:e.providers||[],imports:e.imports||[]}}function xs(e){return Pc(e,Eu)||Pc(e,Cu)}function Pc(e,t){return e.hasOwnProperty(t)?e[t]:null}function Sh(e){let t=e&&(e[Eu]||e[Cu]);return t||null}function kc(e){return e&&(e.hasOwnProperty(Lc)||e.hasOwnProperty(Nh))?e[Lc]:null}var Eu=j({\u0275prov:j}),Lc=j({\u0275inj:j}),Cu=j({ngInjectableDef:j}),Nh=j({ngInjectorDef:j}),D=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=x({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function _u(e){return e&&!!e.\u0275providers}var Ah=j({\u0275cmp:j}),Oh=j({\u0275dir:j}),Rh=j({\u0275pipe:j});var Vr=j({\u0275fac:j}),bn=j({__NG_ELEMENT_ID__:j}),Vc=j({__NG_ENV_ID__:j});function jr(e){return typeof e=="string"?e:e==null?"":String(e)}function Fh(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():jr(e)}function Ph(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new E(-200,e)}function Ss(e,t){throw new E(-201,!1)}var I=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(I||{}),Fi;function Iu(){return Fi}function ue(e){let t=Fi;return Fi=e,t}function bu(e,t,n){let r=xs(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&I.Optional)return null;if(t!==void 0)return t;Ss(e,"Injector")}var kh={},Mn=kh,Pi="__NG_DI_FLAG__",Br="ngTempTokenPath",Lh="ngTokenPath",Vh=/\n/gm,jh="\u0275",jc="__source",Ht;function Bh(){return Ht}function Qe(e){let t=Ht;return Ht=e,t}function $h(e,t=I.Default){if(Ht===void 0)throw new E(-203,!1);return Ht===null?bu(e,void 0,t):Ht.get(e,t&I.Optional?null:void 0,t)}function b(e,t=I.Default){return(Iu()||$h)(oe(e),t)}function v(e,t=I.Default){return b(e,uo(t))}function uo(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ki(e){let t=[];for(let n=0;n<e.length;n++){let r=oe(e[n]);if(Array.isArray(r)){if(r.length===0)throw new E(900,!1);let o,i=I.Default;for(let s=0;s<r.length;s++){let a=r[s],c=Uh(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(b(o,i))}else t.push(b(r))}return t}function Mu(e,t){return e[Pi]=t,e.prototype[Pi]=t,e}function Uh(e){return e[Pi]}function Hh(e,t,n,r){let o=e[Br];throw t[jc]&&o.unshift(t[jc]),e.message=Gh(`
`+e.message,o,n,r),e[Lh]=o,e[Br]=null,e}function Gh(e,t,n,r=null){e=e&&e.charAt(0)===`
`&&e.charAt(1)==jh?e.slice(2):e;let o=fe(t);if(Array.isArray(t))o=t.map(fe).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):fe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Vh,`
`)}`}var Tu=Mu(Du("Optional"),8);var zh=Mu(Du("SkipSelf"),4);function mt(e,t){let n=e.hasOwnProperty(Vr);return n?e[Vr]:null}function Wh(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function qh(e){return e.flat(Number.POSITIVE_INFINITY)}function Ns(e,t){e.forEach(n=>Array.isArray(n)?Ns(n,t):t(n))}function xu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function $r(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Zh(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Yh(e,t,n){let r=Pn(e,t);return r>=0?e[r|1]=n:(r=~r,Zh(e,r,t,n)),r}function wi(e,t){let n=Pn(e,t);if(n>=0)return e[n|1]}function Pn(e,t){return Qh(e,t,1)}function Qh(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var zt={},ge=[],Tn=new D(""),Su=new D("",-1),Nu=new D(""),Ur=class{get(t,n=Mn){if(n===Mn){let r=new Error(`NullInjectorError: No provider for ${fe(t)}!`);throw r.name="NullInjectorError",r}return n}},Au=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Au||{}),Se=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Se||{}),Xe=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Xe||{});function Kh(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function Li(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];Xh(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Jh(e){return e===3||e===4||e===6}function Xh(e){return e.charCodeAt(0)===64}function xn(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Bc(e,n,o,null,t[++r]):Bc(e,n,o,null,null))}}return e}function Bc(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){if(r===null){o!==null&&(e[i+1]=o);return}else if(r===e[i+1]){e[i+2]=o;return}}i++,r!==null&&i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),r!==null&&e.splice(i++,0,r),o!==null&&e.splice(i++,0,o)}var Ou="ng-template";function ep(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Kh(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(As(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function As(e){return e.type===4&&e.value!==Ou}function tp(e,t,n){let r=e.type===4&&!n?Ou:e.value;return t===r}function np(e,t,n){let r=4,o=e.attrs,i=o!==null?ip(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!we(r)&&!we(c))return!1;if(s&&we(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!tp(e,c,n)||c===""&&t.length===1){if(we(r))return!1;s=!0}}else if(r&8){if(o===null||!ep(e,o,c,n)){if(we(r))return!1;s=!0}}else{let u=t[++a],l=rp(c,o,As(e),n);if(l===-1){if(we(r))return!1;s=!0;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(we(r))return!1;s=!0}}}}return we(r)||s}function we(e){return(e&1)===0}function rp(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return sp(t,e)}function op(e,t,n=!1){for(let r=0;r<t.length;r++)if(np(e,t[r],n))return!0;return!1}function ip(e){for(let t=0;t<e.length;t+
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Ca=class{encodeKey(t){return ef(t)}encodeValue(t){return ef(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function mD(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var yD=/%(\d[a-f0-9])/gi,vD={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ef(e){return encodeURIComponent(e).replace(yD,(t,n)=>vD[n]??t)}function Uo(e){return`${e}`}var at=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Ca,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=mD(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Uo):[Uo(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFro