amis-rpc-design/dist/ts.worker.js

7 lines
4.6 MiB
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
/*! For license information please see ts.worker.js.LICENSE.txt */
(()=>{"use strict";var e={};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();const n=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(o.isErrorNoTelemetry(e))throw new o(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((n=>{n(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function t(e){var t;(t=e)instanceof a||t instanceof Error&&t.name===i&&t.message===i||n.onUnexpectedError(e)}function r(e){if(e instanceof Error){const{name:n,message:t}=e;return{$isError:!0,name:n,message:t,stack:e.stacktrace||e.stack,noTelemetry:o.isErrorNoTelemetry(e)}}return e}const i="Canceled";class a extends Error{constructor(){super(i),this.name=this.message}}class o extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof o)return e;const n=new o;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class s extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,s.prototype)}}function c(e){const n=this;let t,r=!1;return function(){return r||(r=!0,t=e.apply(n,arguments)),t}}var l;!function(e){function n(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=n;const t=Object.freeze([]);function*r(e){yield e}e.empty=function(){return t},e.single=r,e.wrap=function(e){return n(e)?e:r(e)},e.from=function(e){return e||t},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,n){for(const t of e)if(n(t))return!0;return!1},e.find=function(e,n){for(const t of e)if(n(t))return t},e.filter=function*(e,n){for(const t of e)n(t)&&(yield t)},e.map=function*(e,n){let t=0;for(const r of e)yield n(r,t++)},e.concat=function*(...e){for(const n of e)for(const e of n)yield e},e.reduce=function(e,n,t){let r=t;for(const t of e)r=n(r,t);return r},e.slice=function*(e,n,t=e.length){for(n<0&&(n+=e.length),t<0?t+=e.length:t>e.length&&(t=e.length);n<t;n++)yield e[n]},e.consume=function(n,t=Number.POSITIVE_INFINITY){const r=[];if(0===t)return[r,n];const i=n[Symbol.iterator]();for(let n=0;n<t;n++){const n=i.next();if(n.done)return[r,e.empty()];r.push(n.value)}return[r,{[Symbol.iterator]:()=>i}]}}(l||(l={}));let d=null;function u(e){return null==d||d.trackDisposable(e),e}function _(e){null==d||d.markAsDisposed(e)}function p(e,n){null==d||d.setParent(e,n)}function f(e){if(l.is(e)){const n=[];for(const t of e)if(t)try{t.dispose()}catch(e){n.push(e)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function m(e){const n=u({dispose:c((()=>{_(n),e()}))});return n}class h{constructor(){this._toDispose=new Set,this._isDisposed=!1,u(this)}dispose(){this._isDisposed||(_(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{f(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return p(e,this),this._isDisposed?h.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}h.DISABLE_DISPOSED_WARNING=!1;class g{constructor(){this._store=new h,u(this),p(this._store,this)}dispose(){_(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}g.None=Object.freeze({dispose(){}}),Symbol.iterator;class y{constructor(e){this.element=e,this.next=y.Undefined,this.prev=y.Undefined}}y.Undefined=new y(void 0);class v{constructor(){t
const ${"_superIndex"} = name => super[name];`},QL={name:"typescript:advanced-async-super",scoped:!0,text:tC`
const ${"_superIndex"} = (function (geti, seti) {
const cache = Object.create(null);
return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
})(name => super[name], (name, value) => super[name] = value);`}}});function oC(e){return 8===e.kind}function sC(e){return 9===e.kind}function cC(e){return 10===e.kind}function lC(e){return 11===e.kind}function dC(e){return 13===e.kind}function uC(e){return 14===e.kind}function _C(e){return 15===e.kind}function pC(e){return 16===e.kind}function fC(e){return 17===e.kind}function mC(e){return 25===e.kind}function hC(e){return 27===e.kind}function gC(e){return 39===e.kind}function yC(e){return 40===e.kind}function vC(e){return 41===e.kind}function bC(e){return 53===e.kind}function EC(e){return 57===e.kind}function TC(e){return 58===e.kind}function xC(e){return 28===e.kind}function SC(e){return 38===e.kind}function AC(e){return 79===e.kind}function LC(e){return 80===e.kind}function CC(e){return 93===e.kind}function kC(e){return 88===e.kind}function IC(e){return 132===e.kind}function wC(e){return 129===e.kind}function RC(e){return 133===e.kind}function NC(e){return 146===e.kind}function DC(e){return 124===e.kind}function OC(e){return 126===e.kind}function MC(e){return 161===e.kind}function PC(e){return 127===e.kind}function FC(e){return 106===e.kind}function GC(e){return 100===e.kind}function BC(e){return 82===e.kind}function UC(e){return 163===e.kind}function VC(e){return 164===e.kind}function jC(e){return 165===e.kind}function HC(e){return 166===e.kind}function KC(e){return 167===e.kind}function WC(e){return 168===e.kind}function qC(e){return 169===e.kind}function zC(e){return 170===e.kind}function JC(e){return 171===e.kind}function XC(e){return 172===e.kind}function YC(e){return 173===e.kind}function $C(e){return 174===e.kind}function QC(e){return 175===e.kind}function ZC(e){return 176===e.kind}function ek(e){return 177===e.kind}function nk(e){return 178===e.kind}function tk(e){return 179===e.kind}function rk(e){return 180===e.kind}function ik(e){return 181===e.kind}function ak(e){return 182===e.kind}function ok(e){return 183===e.kind}function sk(e){return 184===e.kind}function ck(e){return 185===e.kind}function lk(e){return 186===e.kind}function dk(e){return 199===e.kind}function uk(e){return 187===e.kind}function _k(e){return 188===e.kind}function pk(e){return 189===e.kind}function fk(e){return 190===e.kind}function mk(e){return 191===e.kind}function hk(e){return 192===e.kind}function gk(e){return 193===e.kind}function yk(e){return 194===e.kind}function vk(e){return 195===e.kind}function bk(e){return 196===e.kind}function Ek(e){return 197===e.kind}function Tk(e){return 198===e.kind}function xk(e){return 202===e.kind}function Sk(e){return 201===e.kind}function Ak(e){return 200===e.kind}function Lk(e){return 203===e.kind}function Ck(e){return 204===e.kind}function kk(e){return 205===e.kind}function Ik(e){return 206===e.kind}function wk(e){return 207===e.kind}function Rk(e){return 208===e.kind}function Nk(e){return 209===e.kind}function Dk(e){return 210===e.kind}function Ok(e){return 211===e.kind}function Mk(e){return 212===e.kind}function Pk(e){return 213===e.kind}function Fk(e){return 214===e.kind}function Gk(e){return 215===e.kind}function Bk(e){return 216===e.kind}function Uk(e){return 217===e.kind}function Vk(e){return 218===e.kind}function jk(e){return 219===e.kind}function Hk(e){return 220===e.kind}function Kk(e){return 221===e.kind}function Wk(e){return 222===e.kind}function qk(e){return 223===e.kind}function zk(e){return 224===e.kind}function Jk(e){return 225===e.kind}function Xk(e){return 226===e.kind}function Yk(e){return 227===e.kind}function $k(e){return 228===e.kind}function Qk(e){return 229===e.kind}function Zk(e){return 230===e.kind}function eI(e){return 231===e.kind}function nI(e){return 235===e.kind}function tI(e){return 232===e.kind}function rI(e){return 233===e.kind}function iI(e){return 234===e.kind}function aI(e){return 356===e.kind}function oI(e){return 357===e.kind}function sI(e){return 236===e.kind}function cI(e){return 237===e.kind}function lI(e){return 238===e.kind}function dI(e){return 240===e.kind}function uI(e){return 239===e.kind}function _I(e){return 241===e.kind}function pI(e){r