1
(function(){/*
2
3
Copyright The Closure Library Authors.
4
SPDX-License-Identifier: Apache-2.0
5
*/
6
'use strict';var ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a}
7
;function ca(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}
8
throw Error("Cannot find global object");}
9
var da=ca(this);
10
function ea(a,b){if(b)a:{var c=da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}
11
a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ba(c,a,{configurable:!0,writable:!0,value:b}
12
)}
13
}
14
function fa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}
15
:{done:!0}
16
}
17
}
18
function ha(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:fa(a)}
19
}
20
21
ea("Promise",function(a){function b(f){this.b=0;this.c=void 0;this.a=[];var h=this.f();try{f(h.resolve,h.reject)}
22
catch(k){h.reject(k)}
23
}
24
function c(){this.a=null}
25
function d(f){return f instanceof b?f:new b(function(h){h(f)}
26
)}
27
if(a)return a;c.prototype.b=function(f){if(null==this.a){this.a=[];var h=this;this.c(function(){h.g()}
28
)}
29
this.a.push(f)}
30
;var e=da.setTimeout;c.prototype.c=function(f){e(f,0)}
31
;c.prototype.g=function(){for(;this.a&&this.a.length;){var f=this.a;this.a=[];for(var h=0;h<f.length;++h){var k=
32
f[h];f[h]=null;try{k()}
33
catch(l){this.f(l)}
34
}
35
}
36
this.a=null}
37
;c.prototype.f=function(f){this.c(function(){throw f;}
38
)}
39
;b.prototype.f=function(){function f(l){return function(p){k||(k=!0,l.call(h,p))}
40
}
...
</html>