/** * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. * Original file: /npm/rxjs@7.5.6/dist/esm5/fetch/index.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ import{__values as r,__spreadArray as t,__read as e,__extends as n,__asyncGenerator as o,__generator as i,__await as u,__awaiter as c,__asyncValues as s,__rest as a,__assign as l}from"/npm/tslib@2.6.2/+esm";function f(r){return"function"==typeof r}var p,h=((p=function(r){return function(t){r(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(r,t){return t+1+") "+r.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}((function(r){Error.call(r),r.stack=(new Error).stack}))).prototype=Object.create(Error.prototype),p.prototype.constructor=p,p);function b(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var d=function(){function n(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}var o;return n.prototype.unsubscribe=function(){var n,o,i,u,c;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=r(s),l=a.next();!l.done;l=a.next()){l.value.remove(this)}}catch(r){n={error:r}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}else s.remove(this);var p=this.initialTeardown;if(f(p))try{p()}catch(r){c=r instanceof h?r.errors:[r]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var d=r(b),v=d.next();!v.done;v=d.next()){var m=v.value;try{y(m)}catch(r){c=null!=c?c:[],r instanceof h?c=t(t([],e(c)),e(r.errors)):c.push(r)}}}catch(r){i={error:r}}finally{try{v&&!v.done&&(u=d.return)&&u.call(d)}finally{if(i)throw i.error}}}if(c)throw new h(c)}},n.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)y(r);else{if(r instanceof n){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(r)}},n.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},n.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},n.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&b(t,r)},n.prototype.remove=function(r){var t=this._finalizers;t&&b(t,r),r instanceof n&&r._removeParent(this)},n.EMPTY=((o=new n).closed=!0,o),n}();function v(r){return r instanceof d||r&&"closed"in r&&f(r.remove)&&f(r.add)&&f(r.unsubscribe)}function y(r){f(r)?r():r.unsubscribe()}d.EMPTY;var m={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},_={setTimeout:function(r,n){for(var o=[],i=2;i