1 Star 0 Fork 0

丁伟东/ng-docs.github.io

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
polyfills.484bababb6e0f3a2b3fc.js 52.66 KB
一键复制 编辑 原始数据 按行查看 历史
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"0TWp":function(e,t,n){!function(){"use strict";!function(e){var t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function r(e,n){t&&t.measure&&t.measure(e,n)}if(n("Zone"),e.Zone)throw new Error("Zone already loaded.");var o,i=function(){function t(e,t){this._properties=null,this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new s(this,this._parent&&this._parent._zoneDelegate,t)}return t.assertZonePatched=function(){if(e.Promise!==S.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(t,"root",{get:function(){for(var e=t.current;e.parent;)e=e.parent;return e},enumerable:!0,configurable:!0}),Object.defineProperty(t,"current",{get:function(){return O.zone},enumerable:!0,configurable:!0}),Object.defineProperty(t,"currentTask",{get:function(){return Z},enumerable:!0,configurable:!0}),t.__load_patch=function(o,i){if(S.hasOwnProperty(o))throw Error("Already loaded patch: "+o);if(!e["__Zone_disable_"+o]){var a="Zone:"+o;n(a),S[o]=i(e,t,D),r(a,a)}},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t.prototype.get=function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]},t.prototype.getZoneWith=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null},t.prototype.fork=function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)},t.prototype.wrap=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}},t.prototype.run=function(e,t,n,r){void 0===t&&(t=void 0),void 0===n&&(n=null),void 0===r&&(r=null),O={parent:O,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{O=O.parent}},t.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),O={parent:O,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{O=O.parent}},t.prototype.runTask=function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||g).name+"; Execution: "+this.name+")");if(e.state!==m||e.type!==C){var r=e.state!=b;r&&e._transitionTo(b,_),e.runCount++;var o=Z;Z=e,O={parent:O,zone:this};try{e.type==T&&e.data&&!e.data.isPeriodic&&(e.cancelFn=null);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{e.state!==m&&e.state!==w&&(e.type==C||e.data&&e.data.isPeriodic?r&&e._transitionTo(_,b):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(m,b,m))),O=O.parent,Z=o}}},t.prototype.scheduleTask=function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+e.zone.name);t=t.parent}e._transitionTo(y,m);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(r){throw e._transitionTo(w,y,m),this._zoneDelegate.handleError(this,r),r}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==y&&e._transitionTo(_,y),e},t.prototype.scheduleMicroTask=function(e,t,n,r){return this.scheduleTask(new c(E,e,t,n,r,null))},t.prototype.scheduleMacroTask=function(e,t,n,r,o){return this.scheduleTask(new c(T,e,t,n,r,o))},t.prototype.scheduleEventTask=function(e,t,n,r,o){return this.scheduleTask(new c(C,e,t,n,r,o))},t.prototype.cancelTask=function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||g).name+"; Execution: "+this.name+")");e._transitionTo(k,_,b);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(w,k),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(m,k),e.runCount=0,e},t.prototype._updateTaskCount=function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var r=0;r<n.length;r++)n[r]._updateTaskCount(e.type,t)},t.__symbol__=z,t}(),a={name:"",onHasTask:function(e,t,n,r){return e.hasTask(n,r)},onScheduleTask:function(e,t,n,r){return e.scheduleTask(n,r)},onInvokeTask:function(e,t,n,r,o,i){return e.invokeTask(n,r,o,i)},onCancelTask:function(e,t,n,r){return e.cancelTask(n,r)}},s=function(){function e(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t.zone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t.zone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t.zone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t.zone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t.zone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t.zone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t.zone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var r=n&&n.onHasTask;(r||t&&t._hasTaskZS)&&(this._hasTaskZS=r?n:a,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=a,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=a,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=a,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}return e.prototype.fork=function(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new i(e,t)},e.prototype.intercept=function(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t},e.prototype.invoke=function(e,t,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,r,o):t.apply(n,r)},e.prototype.handleError=function(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)},e.prototype.scheduleTask=function(e,t){var n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),(n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t))||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=E)throw new Error("Task is missing scheduleFn.");d(t)}return n},e.prototype.invokeTask=function(e,t,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,r):t.callback.apply(n,r)},e.prototype.cancelTask=function(e,t){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n},e.prototype.hasTask=function(e,t){try{return this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}},e.prototype._updateTaskCount=function(e,t){var n=this._taskCounts,r=n[e],o=n[e]=r+t;if(o<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=o||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})},e}(),c=function(){function t(n,r,o,i,a,s){this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=i,this.scheduleFn=a,this.cancelFn=s,this.callback=o;var c=this;this.invoke=n===C&&i&&i.useG?t.invokeTask:function(){return t.invokeTask.call(e,c,this,arguments)}}return t.invokeTask=function(e,t,n){e||(e=this),P++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==P&&v(),P--}},Object.defineProperty(t.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),t.prototype.cancelScheduleRequest=function(){this._transitionTo(m,y)},t.prototype._transitionTo=function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+e+"', expecting state '"+t+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=e,e==m&&(this._zoneDelegates=null)},t.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId:Object.prototype.toString.call(this)},t.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},t}(),l=z("setTimeout"),u=z("Promise"),p=z("then"),f=[],h=!1;function d(t){0===P&&0===f.length&&(o||e[u]&&(o=e[u].resolve(0)),o?o[p](v):e[l](v,0)),t&&f.push(t)}function v(){if(!h){for(h=!0;f.length;){var e=f;f=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(r){D.onUnhandledError(r)}}}D.microtaskDrainDone(),h=!1}}var g={name:"NO ZONE"},m="notScheduled",y="scheduling",_="scheduled",b="running",k="canceling",w="unknown",E="microTask",T="macroTask",C="eventTask",S={},D={symbol:z,currentZoneFrame:function(){return O},onUnhandledError:j,microtaskDrainDone:j,scheduleMicroTask:d,showUncaughtError:function(){return!i[z("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:j,patchMethod:function(){return j},bindArguments:function(){return null},setNativePromise:function(e){e&&"function"==typeof e.resolve&&(o=e.resolve(0))}},O={parent:null,zone:new i(null,null)},Z=null,P=0;function j(){}function z(e){return"__zone_symbol__"+e}r("Zone","Zone"),e.Zone=i}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",function(e,t,n){var r=Object.getOwnPropertyDescriptor,o=Object.defineProperty,i=n.symbol,a=[],s=i("Promise"),c=i("then"),l="__creationTrace__";n.onUnhandledError=function(e){if(n.showUncaughtError()){var t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=function(){for(;a.length;)for(var e=function(){var e=a.shift();try{e.zone.runGuarded(function(){throw e})}catch(t){p(t)}};a.length;)e()};var u=i("unhandledPromiseRejectionHandler");function p(e){n.onUnhandledError(e);try{var r=t[u];r&&"function"==typeof r&&r.call(this,e)}catch(o){}}function f(e){return e&&e.then}function h(e){return e}function d(e){return L.reject(e)}var v=i("state"),g=i("value"),m=i("finally"),y=i("parentPromiseValue"),_=i("parentPromiseState"),b="Promise.then",k=null,w=!0,E=!1,T=0;function C(e,t){return function(n){try{Z(e,t,n)}catch(r){Z(e,!1,r)}}}var S=function(){var e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}},D="Promise resolved with itself",O=i("currentTaskTrace");function Z(e,r,i){var s,c=S();if(e===i)throw new TypeError(D);if(e[v]===k){var u=null;try{"object"!=typeof i&&"function"!=typeof i||(u=i&&i.then)}catch(b){return c(function(){Z(e,!1,b)})(),e}if(r!==E&&i instanceof L&&i.hasOwnProperty(v)&&i.hasOwnProperty(g)&&i[v]!==k)j(i),Z(e,i[v],i[g]);else if(r!==E&&"function"==typeof u)try{u.call(i,c(C(e,r)),c(C(e,!1)))}catch(b){c(function(){Z(e,!1,b)})()}else{e[v]=r;var p=e[g];if(e[g]=i,e[m]===m&&r===w&&(e[v]=e[_],e[g]=e[y]),r===E&&i instanceof Error){var f=t.currentTask&&t.currentTask.data&&t.currentTask.data[l];f&&o(i,O,{configurable:!0,enumerable:!1,writable:!0,value:f})}for(var h=0;h<p.length;)z(e,p[h++],p[h++],p[h++],p[h++]);if(0==p.length&&r==E){e[v]=T;try{throw new Error("Uncaught (in promise): "+((s=i)&&s.toString===Object.prototype.toString?(s.constructor&&s.constructor.name||"")+": "+JSON.stringify(s):s?s.toString():Object.prototype.toString.call(s))+(i&&i.stack?"\n"+i.stack:""))}catch(b){var d=b;d.rejection=i,d.promise=e,d.zone=t.current,d.task=t.currentTask,a.push(d),n.scheduleMicroTask()}}}}return e}var P=i("rejectionHandledHandler");function j(e){if(e[v]===T){try{var n=t[P];n&&"function"==typeof n&&n.call(this,{rejection:e[g],promise:e})}catch(o){}e[v]=E;for(var r=0;r<a.length;r++)e===a[r].promise&&a.splice(r,1)}}function z(e,t,n,r,o){j(e);var i=e[v],a=i?"function"==typeof r?r:h:"function"==typeof o?o:d;t.scheduleMicroTask(b,function(){try{var r=e[g],o=n&&m===n[m];o&&(n[y]=r,n[_]=i);var s=t.run(a,void 0,o&&a!==d&&a!==h?[]:[r]);Z(n,!0,s)}catch(c){Z(n,!1,c)}},n)}var L=function(){function e(t){if(!(this instanceof e))throw new Error("Must be an instanceof Promise.");this[v]=k,this[g]=[];try{t&&t(C(this,w),C(this,E))}catch(n){Z(this,!1,n)}}return e.toString=function(){return"function ZoneAwarePromise() { [native code] }"},e.resolve=function(e){return Z(new this(null),w,e)},e.reject=function(e){return Z(new this(null),E,e)},e.race=function(e){var t,n,r=new this(function(e,r){t=e,n=r});function o(e){r&&(r=t(e))}function i(e){r&&(r=n(e))}for(var a=0,s=e;a<s.length;a++){var c=s[a];f(c)||(c=this.resolve(c)),c.then(o,i)}return r},e.all=function(e){for(var t,n,r=new this(function(e,r){t=e,n=r}),o=0,i=[],a=0,s=e;a<s.length;a++){var c=s[a];f(c)||(c=this.resolve(c)),c.then(function(e){return function(n){i[e]=n,--o||t(i)}}(o),n),o++}return o||t(i),r},e.prototype.then=function(e,n){var r=new this.constructor(null),o=t.current;return this[v]==k?this[g].push(o,r,e,n):z(this,o,r,e,n),r},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var n=new this.constructor(null);n[m]=m;var r=t.current;return this[v]==k?this[g].push(r,n,e,e):z(this,r,n,e,e),n},e}();L.resolve=L.resolve,L.reject=L.reject,L.race=L.race,L.all=L.all;var M=e[s]=e.Promise,N=t.__symbol__("ZoneAwarePromise"),H=r(e,"Promise");H&&!H.configurable||(H&&delete H.writable,H&&delete H.value,H||(H={configurable:!0,enumerable:!0}),H.get=function(){return e[N]?e[N]:e[s]},H.set=function(t){t===L?e[N]=t:(e[s]=t,t.prototype[c]||x(t),n.setNativePromise(t))},o(e,"Promise",H)),e.Promise=L;var I,R=i("thenPatched");function x(e){var t=e.prototype,n=r(t,"then");if(!n||!1!==n.writable&&n.configurable){var o=t.then;t[c]=o,e.prototype.then=function(e,t){var n=this;return new L(function(e,t){o.call(n,e,t)}).then(e,t)},e[R]=!0}}if(M){x(M);var A=e.fetch;"function"==typeof A&&(e.fetch=(I=A,function(){var e=I.apply(this,arguments);if(e instanceof L)return e;var t=e.constructor;return t[R]||x(t),e}))}return Promise[t.__symbol__("uncaughtPromiseErrors")]=a,L});var e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,r=Object.create,o=Array.prototype.slice,i="addEventListener",a="removeEventListener",s=Zone.__symbol__(i),c=Zone.__symbol__(a),l="true",u="false",p="__zone_symbol__";function f(e,t){return Zone.current.wrap(e,t)}function h(e,t,n,r,o){return Zone.current.scheduleMacroTask(e,t,n,r,o)}var d=Zone.__symbol__,v="undefined"!=typeof window,g=v?window:void 0,m=v&&g||"object"==typeof self&&self||global,y="removeAttribute",_=[null];function b(e,t){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=f(e[n],t+"_"+n));return e}function k(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var w="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,E=!("nw"in m)&&void 0!==m.process&&"[object process]"==={}.toString.call(m.process),T=!E&&!w&&!(!v||!g.HTMLElement),C=void 0!==m.process&&"[object process]"==={}.toString.call(m.process)&&!w&&!(!v||!g.HTMLElement),S={},D=function(e){if(e=e||m.event){var t=S[e.type];t||(t=S[e.type]=d("ON_PROPERTY"+e.type));var n=(this||e.target||m)[t],r=n&&n.apply(this,arguments);return null==r||r||e.preventDefault(),r}};function O(n,r,o){var i=e(n,r);if(!i&&o&&e(o,r)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){delete i.writable,delete i.value;var a=i.get,s=i.set,c=r.substr(2),l=S[c];l||(l=S[c]=d("ON_PROPERTY"+c)),i.set=function(e){var t=this;t||n!==m||(t=m),t&&(t[l]&&t.removeEventListener(c,D),s&&s.apply(t,_),"function"==typeof e?(t[l]=e,t.addEventListener(c,D,!1)):t[l]=null)},i.get=function(){var e=this;if(e||n!==m||(e=m),!e)return null;var t=e[l];if(t)return t;if(a){var o=a&&a.call(this);if(o)return i.set.call(this,o),"function"==typeof e[y]&&e.removeAttribute(r),o}return null},t(n,r,i)}}function Z(e,t,n){if(t)for(var r=0;r<t.length;r++)O(e,"on"+t[r],n);else{var o=[];for(var i in e)"on"==i.substr(0,2)&&o.push(i);for(var a=0;a<o.length;a++)O(e,o[a],n)}}var P=d("originalInstance");function j(e){var n=m[e];if(n){m[d(e)]=n,m[e]=function(){var t=b(arguments,e);switch(t.length){case 0:this[P]=new n;break;case 1:this[P]=new n(t[0]);break;case 2:this[P]=new n(t[0],t[1]);break;case 3:this[P]=new n(t[0],t[1],t[2]);break;case 4:this[P]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("Arg list too long.")}},L(m[e],n);var r,o=new n(function(){});for(r in o)"XMLHttpRequest"===e&&"responseBlob"===r||function(n){"function"==typeof o[n]?m[e].prototype[n]=function(){return this[P][n].apply(this[P],arguments)}:t(m[e].prototype,n,{set:function(t){"function"==typeof t?(this[P][n]=f(t,e+"."+n),L(this[P][n],t)):this[P][n]=t},get:function(){return this[P][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(m[e][r]=n[r])}}function z(t,r,o){for(var i=t;i&&!i.hasOwnProperty(r);)i=n(i);!i&&t[r]&&(i=t);var a,s=d(r);if(i&&!(a=i[s])&&(a=i[s]=i[r],k(i&&e(i,r)))){var c=o(a,s,r);i[r]=function(){return c(this,arguments)},L(i[r],a)}return a}function L(e,t){e[d("OriginalDelegate")]=t}var M=!1,N=!1;function H(){if(M)return N;M=!0;try{var e=g.navigator.userAgent;return-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(N=!0),N}catch(t){}}Zone.__load_patch("toString",function(e){var t=Function.prototype.toString,n=d("OriginalDelegate"),r=d("Promise"),o=d("Error"),i=function(){if("function"==typeof this){var i=this[n];if(i)return"function"==typeof i?t.apply(this[n],arguments):Object.prototype.toString.call(i);if(this===Promise){var a=e[r];if(a)return t.apply(a,arguments)}if(this===Error){var s=e[o];if(s)return t.apply(s,arguments)}}return t.apply(this,arguments)};i[n]=t,Function.prototype.toString=i;var a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.apply(this,arguments)}});var I={useG:!0},R={},x={},A=/^__zone_symbol__(\w+)(true|false)$/,F="__zone_symbol__propagationStopped";function q(e,t,r){var o=r&&r.add||i,s=r&&r.rm||a,c=r&&r.listeners||"eventListeners",f=r&&r.rmAll||"removeAllListeners",h=d(o),v="."+o+":",g="prependListener",m="."+g+":",y=function(e,t,n){if(!e.isRemoved){var r=e.callback;"object"==typeof r&&r.handleEvent&&(e.callback=function(e){return r.handleEvent(e)},e.originalDelegate=r),e.invoke(e,t,[n]);var o=e.options;o&&"object"==typeof o&&o.once&&t[s].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,o)}},_=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[R[t.type][u]];if(r)if(1===r.length)y(r[0],n,t);else for(var o=r.slice(),i=0;i<o.length&&(!t||!0!==t[F]);i++)y(o[i],n,t)}},b=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[R[t.type][l]];if(r)if(1===r.length)y(r[0],n,t);else for(var o=r.slice(),i=0;i<o.length&&(!t||!0!==t[F]);i++)y(o[i],n,t)}};function k(t,r){if(!t)return!1;var i=!0;r&&void 0!==r.useG&&(i=r.useG);var a=r&&r.vh,y=!0;r&&void 0!==r.chkDup&&(y=r.chkDup);var k=!1;r&&void 0!==r.rt&&(k=r.rt);for(var w=t;w&&!w.hasOwnProperty(o);)w=n(w);if(!w&&t[o]&&(w=t),!w)return!1;if(w[h])return!1;var E,T={},C=w[h]=w[o],S=w[d(s)]=w[s],D=w[d(c)]=w[c],O=w[d(f)]=w[f];r&&r.prepend&&(E=w[d(r.prepend)]=w[r.prepend]);var Z=i?function(){if(!T.isExisting)return C.call(T.target,T.eventName,T.capture?b:_,T.options)}:function(e){return C.call(T.target,T.eventName,e.invoke,T.options)},P=i?function(e){if(!e.isRemoved){var t=R[e.eventName],n=void 0;t&&(n=t[e.capture?l:u]);var r=n&&e.target[n];if(r)for(var o=0;o<r.length;o++)if(r[o]===e){r.splice(o,1),e.isRemoved=!0,0===r.length&&(e.allRemoved=!0,e.target[n]=null);break}}if(e.allRemoved)return S.call(e.target,e.eventName,e.capture?b:_,e.options)}:function(e){return S.call(e.target,e.eventName,e.invoke,e.options)},j=r&&r.diff?r.diff:function(e,t){var n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},z=Zone[Zone.__symbol__("BLACK_LISTED_EVENTS")],M=function(t,n,r,o,s,c){return void 0===s&&(s=!1),void 0===c&&(c=!1),function(){var f=this||e,h=arguments[1];if(!h)return t.apply(this,arguments);var d=!1;if("function"!=typeof h){if(!h.handleEvent)return t.apply(this,arguments);d=!0}if(!a||a(t,h,f,arguments)){var v,g=arguments[0],m=arguments[2];if(z)for(var _=0;_<z.length;_++)if(g===z[_])return t.apply(this,arguments);var b=!1;void 0===m?v=!1:!0===m?v=!0:!1===m?v=!1:(v=!!m&&!!m.capture,b=!!m&&!!m.once);var k,w=Zone.current,E=R[g];if(E)k=E[v?l:u];else{var C=p+(g+u),S=p+(g+l);R[g]={},R[g][u]=C,R[g][l]=S,k=v?S:C}var D,O=f[k],Z=!1;if(O){if(Z=!0,y)for(_=0;_<O.length;_++)if(j(O[_],h))return}else O=f[k]=[];var P=f.constructor.name,L=x[P];L&&(D=L[g]),D||(D=P+n+g),T.options=m,b&&(T.options.once=!1),T.target=f,T.capture=v,T.eventName=g,T.isExisting=Z;var M=i?I:null;M&&(M.taskData=T);var N=w.scheduleEventTask(D,h,M,r,o);return T.target=null,M&&(M.taskData=null),b&&(m.once=!0),N.options=m,N.target=f,N.capture=v,N.eventName=g,d&&(N.originalDelegate=h),c?O.unshift(N):O.push(N),s?f:void 0}}};return w[o]=M(C,v,Z,P,k),E&&(w[g]=M(E,m,function(e){return E.call(T.target,T.eventName,e.invoke,T.options)},P,k,!0)),w[s]=function(){var t,n=this||e,r=arguments[0],o=arguments[2];t=void 0!==o&&(!0===o||!1!==o&&!!o&&!!o.capture);var i=arguments[1];if(!i)return S.apply(this,arguments);if(!a||a(S,i,n,arguments)){var s,c=R[r];c&&(s=c[t?l:u]);var p=s&&n[s];if(p)for(var f=0;f<p.length;f++){var h=p[f];if(j(h,i))return p.splice(f,1),h.isRemoved=!0,0===p.length&&(h.allRemoved=!0,n[s]=null),h.zone.cancelTask(h),k?n:void 0}return S.apply(this,arguments)}},w[c]=function(){for(var t=[],n=B(this||e,arguments[0]),r=0;r<n.length;r++){var o=n[r];t.push(o.originalDelegate?o.originalDelegate:o.callback)}return t},w[f]=function(){var t=this||e,n=arguments[0];if(n){var r=R[n];if(r){var o=t[r[u]],i=t[r[l]];if(o){var a=o.slice();for(h=0;h<a.length;h++)this[s].call(this,n,(c=a[h]).originalDelegate?c.originalDelegate:c.callback,c.options)}if(i)for(a=i.slice(),h=0;h<a.length;h++){var c;this[s].call(this,n,(c=a[h]).originalDelegate?c.originalDelegate:c.callback,c.options)}}}else{for(var p=Object.keys(t),h=0;h<p.length;h++){var d=A.exec(p[h]),v=d&&d[1];v&&"removeListener"!==v&&this[f].call(this,v)}this[f].call(this,"removeListener")}if(k)return this},L(w[o],C),L(w[s],S),O&&L(w[f],O),D&&L(w[c],D),!0}for(var w=[],E=0;E<t.length;E++)w[E]=k(t[E],r);return w}function B(e,t){var n=[];for(var r in e){var o=A.exec(r),i=o&&o[1];if(i&&(!t||i===t)){var a=e[r];if(a)for(var s=0;s<a.length;s++)n.push(a[s])}}return n}var W=d("zoneTask");function X(e,t,n,r){var o=null,i=null;n+=r;var a={};function s(t){var n=t.data;return n.args[0]=function(){try{t.invoke.apply(this,arguments)}finally{t.data&&t.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[W]=null))}},n.handleId=o.apply(e,n.args),t}function c(e){return i(e.data.handleId)}o=z(e,t+=r,function(n){return function(o,i){if("function"==typeof i[0]){var l=h(t,i[0],{handleId:null,isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:null,args:i},s,c);if(!l)return l;var u=l.data.handleId;return"number"==typeof u?a[u]=l:u&&(u[W]=l),u&&u.ref&&u.unref&&"function"==typeof u.ref&&"function"==typeof u.unref&&(l.ref=u.ref.bind(u),l.unref=u.unref.bind(u)),"number"==typeof u||u?u:l}return n.apply(e,i)}}),i=z(e,n,function(t){return function(n,r){var o,i=r[0];"number"==typeof i?o=a[i]:(o=i&&i[W])||(o=i),o&&"string"==typeof o.type?"notScheduled"!==o.state&&(o.cancelFn&&o.data.isPeriodic||0===o.runCount)&&("number"==typeof i?delete a[i]:i&&(i[W]=null),o.zone.cancelTask(o)):t.apply(e,r)}})}var U=Object[d("defineProperty")]=Object.defineProperty,G=Object[d("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,V=Object.create,J=d("unconfigurables");function K(e,t){return e&&e[J]&&e[J][t]}function Y(e,t,n){return Object.isFrozen(n)||(n.configurable=!0),n.configurable||(e[J]||Object.isFrozen(e)||U(e,J,{writable:!0,value:{}}),e[J]&&(e[J][t]=!0)),n}function $(e,t,n,r){try{return U(e,t,n)}catch(i){if(!n.configurable)throw i;void 0===r?delete n.configurable:n.configurable=r;try{return U(e,t,n)}catch(i){var o=null;try{o=JSON.stringify(n)}catch(i){o=n.toString()}console.log("Attempting to configure '"+t+"' with descriptor '"+o+"' on object '"+e+"' and got error, giving up: "+i)}}}var Q=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplyconnected","vrdisplaydisconnected","vrdisplaypresentchange"],ee=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],te=["load"],ne=["blur","error","focus","load","resize","scroll","messageerror"],re=["bounce","finish","start"],oe=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],ie=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],ae=["close","error","open","message"],se=["error","message"],ce=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange"],Q,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function le(e,t,n,r){e&&Z(e,function(e,t,n){if(!n)return t;var r=n.filter(function(t){return t.target===e});if(!r||0===r.length)return t;var o=r[0].ignoreProperties;return t.filter(function(e){return-1===o.indexOf(e)})}(e,t,n),r)}function ue(s,c){if(!E||C){var l="undefined"!=typeof WebSocket;if(function(){if((T||C)&&!e(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var n=e(Element.prototype,"onclick");if(n&&!n.configurable)return!1}var r=XMLHttpRequest.prototype,o=e(r,"onreadystatechange");if(o){t(r,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return!0}});var i=!!(s=new XMLHttpRequest).onreadystatechange;return t(r,"onreadystatechange",o||{}),i}var a=d("fake");t(r,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return this[a]},set:function(e){this[a]=e}});var s,c=function(){};return(s=new XMLHttpRequest).onreadystatechange=c,i=s[a]===c,s.onreadystatechange=null,i}()){var u=c.__Zone_ignore_on_properties;if(T){var p=window;le(p,ce.concat(["messageerror"]),u,n(p)),le(Document.prototype,ce,u),void 0!==p.SVGElement&&le(p.SVGElement.prototype,ce,u),le(Element.prototype,ce,u),le(HTMLElement.prototype,ce,u),le(HTMLMediaElement.prototype,ee,u),le(HTMLFrameSetElement.prototype,Q.concat(ne),u),le(HTMLBodyElement.prototype,Q.concat(ne),u),le(HTMLFrameElement.prototype,te,u),le(HTMLIFrameElement.prototype,te,u);var h=p.HTMLMarqueeElement;h&&le(h.prototype,re,u);var v=p.Worker;v&&le(v.prototype,se,u)}le(XMLHttpRequest.prototype,oe,u);var g=c.XMLHttpRequestEventTarget;g&&le(g&&g.prototype,oe,u),"undefined"!=typeof IDBIndex&&(le(IDBIndex.prototype,ie,u),le(IDBRequest.prototype,ie,u),le(IDBOpenDBRequest.prototype,ie,u),le(IDBDatabase.prototype,ie,u),le(IDBTransaction.prototype,ie,u),le(IDBCursor.prototype,ie,u)),l&&le(WebSocket.prototype,ae,u)}else!function(){for(var e=function(e){var t=ce[e],n="on"+t;self.addEventListener(t,function(e){var t,r,o=e.target;for(r=o?o.constructor.name+"."+n:"unknown."+n;o;)o[n]&&!o[n][pe]&&((t=f(o[n],r))[pe]=o[n],o[n]=t),o=o.parentElement},!0)},t=0;t<ce.length;t++)e(t)}(),j("XMLHttpRequest"),l&&function(t,n){var s=n.WebSocket;n.EventTarget||q(n,[s.prototype]),n.WebSocket=function(t,n){var c,l,u=arguments.length>1?new s(t,n):new s(t),p=e(u,"onmessage");return p&&!1===p.configurable?(c=r(u),l=u,[i,a,"send","close"].forEach(function(e){c[e]=function(){var t=o.call(arguments);if(e===i||e===a){var n=t.length>0?t[0]:void 0;if(n){var r=Zone.__symbol__("ON_PROPERTY"+n);u[r]=c[r]}}return u[e].apply(u,t)}})):c=u,Z(c,["close","error","message","open"],l),c};var c=n.WebSocket;for(var l in s)c[l]=s[l]}(0,c)}}var pe=d("unbound");Zone.__load_patch("util",function(e,t,n){n.patchOnProperties=Z,n.patchMethod=z,n.bindArguments=b}),Zone.__load_patch("timers",function(e){X(e,"set","clear","Timeout"),X(e,"set","clear","Interval"),X(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){X(e,"request","cancel","AnimationFrame"),X(e,"mozRequest","mozCancel","AnimationFrame"),X(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,t){for(var n=["alert","prompt","confirm"],r=0;r<n.length;r++)z(e,n[r],function(n,r,o){return function(r,i){return t.current.run(n,e,i,o)}})}),Zone.__load_patch("EventTarget",function(e,t,n){var r=t.__symbol__("BLACK_LISTED_EVENTS");e[r]&&(t[r]=e[r]),function(e,t){!function(e,t){var n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,"stopImmediatePropagation",function(e){return function(t,n){t[F]=!0,e&&e.apply(t,n)}})}(e,t)}(e,n),function(e,t){var n="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video",r="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),o=[],i=e.wtf,a=n.split(",");i?o=a.map(function(e){return"HTML"+e+"Element"}).concat(r):e.EventTarget?o.push("EventTarget"):o=r;for(var s=e.__Zone_disable_IE_check||!1,c=e.__Zone_enable_cross_context_check||!1,f=H(),h="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",d=0;d<ce.length;d++){var v=p+((b=ce[d])+u),g=p+(b+l);R[b]={},R[b][u]=v,R[b][l]=g}for(d=0;d<n.length;d++)for(var m=a[d],y=x[m]={},_=0;_<ce.length;_++){var b;y[b=ce[_]]=m+".addEventListener:"+b}var k=[];for(d=0;d<o.length;d++){var w=e[o[d]];k.push(w&&w.prototype)}q(e,k,{vh:function(e,t,n,r){if(!s&&f){if(c)try{var o;if("[object FunctionWrapper]"===(o=t.toString())||o==h)return e.apply(n,r),!1}catch(i){return e.apply(n,r),!1}else if("[object FunctionWrapper]"===(o=t.toString())||o==h)return e.apply(n,r),!1}else if(c)try{t.toString()}catch(i){return e.apply(n,r),!1}return!0}}),t.patchEventTarget=q}(e,n);var o=e.XMLHttpRequestEventTarget;o&&o.prototype&&n.patchEventTarget(e,[o.prototype]),j("MutationObserver"),j("WebKitMutationObserver"),j("IntersectionObserver"),j("FileReader")}),Zone.__load_patch("on_property",function(t,n,r){ue(0,t),Object.defineProperty=function(e,t,n){if(K(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);var r=n.configurable;return"prototype"!==t&&(n=Y(e,t,n)),$(e,t,n,r)},Object.defineProperties=function(e,t){return Object.keys(t).forEach(function(n){Object.defineProperty(e,n,t[n])}),e},Object.create=function(e,t){return"object"!=typeof t||Object.isFrozen(t)||Object.keys(t).forEach(function(n){t[n]=Y(e,n,t[n])}),V(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=G(e,t);return K(e,t)&&(n.configurable=!1),n},function(n){if((T||C)&&"registerElement"in t.document){var r=document.registerElement,o=["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"];document.registerElement=function(t,n){return n&&n.prototype&&o.forEach(function(t){var r,o,i,a,s="Document.registerElement::"+t,c=n.prototype;if(c.hasOwnProperty(t)){var l=e(c,t);l&&l.value?(l.value=f(l.value,s),a=(i=l).configurable,$(r=n.prototype,o=t,i=Y(r,o,i),a)):c[t]=f(c[t],s)}else c[t]&&(c[t]=f(c[t],s))}),r.call(document,t,n)},L(document.registerElement,r)}}()}),Zone.__load_patch("canvas",function(e){var t=e.HTMLCanvasElement;void 0!==t&&t.prototype&&t.prototype.toBlob&&function(e,n,r){var o=null;function i(e){var t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},o.apply(t.target,t.args),e}o=z(t.prototype,"toBlob",function(e){return function(t,n){var r=function(e,t){return{name:"HTMLCanvasElement.toBlob",target:e,cbIdx:0,args:t}}(t,n);return r.cbIdx>=0&&"function"==typeof n[r.cbIdx]?h(r.name,n[r.cbIdx],r,i,null):e.apply(t,n)}})}()}),Zone.__load_patch("XHR",function(e,t){!function(t){var l=XMLHttpRequest.prototype,u=l[s],p=l[c];if(!u){var f=e.XMLHttpRequestEventTarget;if(f){var d=f.prototype;u=d[s],p=d[c]}}var v="readystatechange",g="scheduled";function m(e){XMLHttpRequest[i]=!1;var t=e.data,r=t.target,a=r[o];u||(u=r[s],p=r[c]),a&&p.call(r,v,a);var l=r[o]=function(){r.readyState===r.DONE&&!t.aborted&&XMLHttpRequest[i]&&e.state===g&&e.invoke()};return u.call(r,v,l),r[n]||(r[n]=e),k.apply(r,t.args),XMLHttpRequest[i]=!0,e}function y(){}function _(e){var t=e.data;return t.aborted=!0,w.apply(t.target,t.args)}var b=z(l,"open",function(){return function(e,t){return e[r]=0==t[2],e[a]=t[1],b.apply(e,t)}}),k=z(l,"send",function(){return function(e,t){return e[r]?k.apply(e,t):h("XMLHttpRequest.send",y,{target:e,url:e[a],isPeriodic:!1,delay:null,args:t,aborted:!1},m,_)}}),w=z(l,"abort",function(){return function(e){var t=e[n];if(t&&"string"==typeof t.type){if(null==t.cancelFn||t.data&&t.data.aborted)return;t.zone.cancelTask(t)}}})}();var n=d("xhrTask"),r=d("xhrSync"),o=d("xhrListener"),i=d("xhrScheduled"),a=d("xhrURL")}),Zone.__load_patch("geolocation",function(t){t.navigator&&t.navigator.geolocation&&function(t,n){for(var r=t.constructor.name,o=function(o){var i=n[o],a=t[i];if(a){if(!k(e(t,i)))return"continue";t[i]=function(e){var t=function(){return e.apply(this,b(arguments,r+"."+i))};return L(t,e),t}(a)}},i=0;i<n.length;i++)o(i)}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",function(e,t){function n(t){return function(n){B(e,t).forEach(function(r){var o=e.PromiseRejectionEvent;if(o){var i=new o(t,{promise:n.promise,reason:n.rejection});r.invoke(i)}})}}e.PromiseRejectionEvent&&(t[d("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[d("rejectionHandledHandler")]=n("rejectionhandled"))})}()},1:function(e,t,n){e.exports=n("hN/g")},aVe3:function(e,t){(function(){"use strict";var e=new function(){},t=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function n(e){var n=t.has(e);return e=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(e),!n&&e}function r(e){var t=e.isConnected;if(void 0!==t)return t;for(;e&&!(e.__CE_isImportDocument||e instanceof Document);)e=e.parentNode||(window.ShadowRoot&&e instanceof ShadowRoot?e.host:void 0);return!(!e||!(e.__CE_isImportDocument||e instanceof Document))}function o(e,t){for(;t&&t!==e&&!t.nextSibling;)t=t.parentNode;return t&&t!==e?t.nextSibling:null}function i(e,t,n){n=n||new Set;for(var r=e;r;){if(r.nodeType===Node.ELEMENT_NODE){var a=r;t(a);var s=a.localName;if("link"===s&&"import"===a.getAttribute("rel")){if((r=a.import)instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)i(r,t,n);r=o(e,a);continue}if("template"===s){r=o(e,a);continue}if(a=a.__CE_shadowRoot)for(a=a.firstChild;a;a=a.nextSibling)i(a,t,n)}r=r.firstChild?r.firstChild:o(e,r)}}function a(e,t,n){e[t]=n}function s(){this.a=new Map,this.s=new Map,this.f=[],this.b=!1}function c(e,t){e.b=!0,e.f.push(t)}function l(e,t){e.b&&i(t,function(t){return u(e,t)})}function u(e,t){if(e.b&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.f.length;n++)e.f[n](t)}}function p(e,t){var n=[];for(i(t,function(e){return n.push(e)}),t=0;t<n.length;t++){var r=n[t];1===r.__CE_state?e.connectedCallback(r):d(e,r)}}function f(e,t){var n=[];for(i(t,function(e){return n.push(e)}),t=0;t<n.length;t++){var r=n[t];1===r.__CE_state&&e.disconnectedCallback(r)}}function h(e,t,n){var r=(n=n||{}).w||new Set,o=n.i||function(t){return d(e,t)},a=[];if(i(t,function(t){if("link"===t.localName&&"import"===t.getAttribute("rel")){var n=t.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_hasRegistry=!0),n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:t.addEventListener("load",function(){var n=t.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var i=new Set(r);i.delete(n),h(e,n,{w:i,i:o})}})}else a.push(t)},r),e.b)for(t=0;t<a.length;t++)u(e,a[t]);for(t=0;t<a.length;t++)o(a[t])}function d(e,t){if(void 0===t.__CE_state){var n=t.ownerDocument;if((n.defaultView||n.__CE_isImportDocument&&n.__CE_hasRegistry)&&(n=e.a.get(t.localName))){n.constructionStack.push(t);var o=n.constructor;try{try{if(new o!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{n.constructionStack.pop()}}catch(s){throw t.__CE_state=2,s}if(t.__CE_state=1,t.__CE_definition=n,n.attributeChangedCallback)for(n=n.observedAttributes,o=0;o<n.length;o++){var i=n[o],a=t.getAttribute(i);null!==a&&e.attributeChangedCallback(t,i,null,a,null)}r(t)&&e.connectedCallback(t)}}}function v(e,t){this.c=e,this.a=t,this.b=void 0,h(this.c,this.a),"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function g(e){e.b&&e.b.disconnect()}function m(){var e=this;this.b=this.a=void 0,this.f=new Promise(function(t){e.b=t,e.a&&t(e.a)})}function y(e){if(e.a)throw Error("Already resolved.");e.a=void 0,e.b&&e.b(void 0)}function _(e){this.j=!1,this.c=e,this.o=new Map,this.l=function(e){return e()},this.g=!1,this.m=[],this.u=new v(e,document)}s.prototype.connectedCallback=function(e){var t=e.__CE_definition;t.connectedCallback&&t.connectedCallback.call(e)},s.prototype.disconnectedCallback=function(e){var t=e.__CE_definition;t.disconnectedCallback&&t.disconnectedCallback.call(e)},s.prototype.attributeChangedCallback=function(e,t,n,r,o){var i=e.__CE_definition;i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(t)&&i.attributeChangedCallback.call(e,t,n,r,o)},v.prototype.f=function(e){var t=this.a.readyState;for("interactive"!==t&&"complete"!==t||g(this),t=0;t<e.length;t++)for(var n=e[t].addedNodes,r=0;r<n.length;r++)h(this.c,n[r])},_.prototype.define=function(e,t){var r,o,i,a,s,c=this;if(!(t instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!n(e))throw new SyntaxError("The element name '"+e+"' is not valid.");if(this.c.a.get(e))throw Error("A custom element with name '"+e+"' has already been defined.");if(this.j)throw Error("A custom element is already being defined.");this.j=!0;try{var l=function(e){var t=u[e];if(void 0!==t&&!(t instanceof Function))throw Error("The '"+e+"' callback must be a function.");return t},u=t.prototype;if(!(u instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");r=l("connectedCallback"),o=l("disconnectedCallback"),i=l("adoptedCallback"),a=l("attributeChangedCallback"),s=t.observedAttributes||[]}catch(p){return}finally{this.j=!1}(function(e,t,n){e.a.set(t,n),e.s.set(n.constructor,n)})(this.c,e,t={localName:e,constructor:t,connectedCallback:r,disconnectedCallback:o,adoptedCallback:i,attributeChangedCallback:a,observedAttributes:s,constructionStack:[]}),this.m.push(t),this.g||(this.g=!0,this.l(function(){return function(e){if(!1!==e.g){e.g=!1;for(var t=e.m,n=[],r=new Map,o=0;o<t.length;o++)r.set(t[o].localName,[]);for(h(e.c,document,{i:function(t){if(void 0===t.__CE_state){var o=t.localName,i=r.get(o);i?i.push(t):e.c.a.get(o)&&n.push(t)}}}),o=0;o<n.length;o++)d(e.c,n[o]);for(;0<t.length;){o=(i=t.shift()).localName;for(var i=r.get(i.localName),a=0;a<i.length;a++)d(e.c,i[a]);(o=e.o.get(o))&&y(o)}}}(c)}))},_.prototype.i=function(e){h(this.c,e)},_.prototype.get=function(e){if(e=this.c.a.get(e))return e.constructor},_.prototype.whenDefined=function(e){if(!n(e))return Promise.reject(new SyntaxError("'"+e+"' is not a valid custom element name."));var t=this.o.get(e);return t?t.f:(t=new m,this.o.set(e,t),this.c.a.get(e)&&!this.m.some(function(t){return t.localName===e})&&y(t),t.f)},_.prototype.v=function(e){g(this.u);var t=this.l;this.l=function(n){return e(function(){return t(n)})}},window.CustomElementRegistry=_,_.prototype.define=_.prototype.define,_.prototype.upgrade=_.prototype.i,_.prototype.get=_.prototype.get,_.prototype.whenDefined=_.prototype.whenDefined,_.prototype.polyfillWrapFlushCallback=_.prototype.v;var b=window.Document.prototype.createElement,k=window.Document.prototype.createElementNS,w=window.Document.prototype.importNode,E=window.Document.prototype.prepend,T=window.Document.prototype.append,C=window.DocumentFragment.prototype.prepend,S=window.DocumentFragment.prototype.append,D=window.Node.prototype.cloneNode,O=window.Node.prototype.appendChild,Z=window.Node.prototype.insertBefore,P=window.Node.prototype.removeChild,j=window.Node.prototype.replaceChild,z=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),L=window.Element.prototype.attachShadow,M=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),N=window.Element.prototype.getAttribute,H=window.Element.prototype.setAttribute,I=window.Element.prototype.removeAttribute,R=window.Element.prototype.getAttributeNS,x=window.Element.prototype.setAttributeNS,A=window.Element.prototype.removeAttributeNS,F=window.Element.prototype.insertAdjacentElement,q=window.Element.prototype.insertAdjacentHTML,B=window.Element.prototype.prepend,W=window.Element.prototype.append,X=window.Element.prototype.before,U=window.Element.prototype.after,G=window.Element.prototype.replaceWith,V=window.Element.prototype.remove,J=window.HTMLElement,K=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Y=window.HTMLElement.prototype.insertAdjacentElement,$=window.HTMLElement.prototype.insertAdjacentHTML;function Q(e,t,n){function o(t){return function(n){for(var o=[],i=0;i<arguments.length;++i)o[i-0]=arguments[i];i=[];for(var a=[],s=0;s<o.length;s++){var c=o[s];if(c instanceof Element&&r(c)&&a.push(c),c instanceof DocumentFragment)for(c=c.firstChild;c;c=c.nextSibling)i.push(c);else i.push(c)}for(t.apply(this,o),o=0;o<a.length;o++)f(e,a[o]);if(r(this))for(o=0;o<i.length;o++)(a=i[o])instanceof Element&&p(e,a)}}n.h&&(t.prepend=o(n.h)),n.append&&(t.append=o(n.append))}var ee,te=window.customElements;if(!te||te.forcePolyfill||"function"!=typeof te.define||"function"!=typeof te.get){var ne=new s;ee=ne,window.HTMLElement=function(){function t(){var t=this.constructor;if(!(r=ee.s.get(t)))throw Error("The custom element being constructed was not registered with `customElements`.");var n=r.constructionStack;if(!n.length)return n=b.call(document,r.localName),Object.setPrototypeOf(n,t.prototype),n.__CE_state=1,n.__CE_definition=r,u(ee,n),n;var r,o=n[r=n.length-1];if(o===e)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return n[r]=e,Object.setPrototypeOf(o,t.prototype),u(ee,o),o}return t.prototype=J.prototype,Object.defineProperty(t.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:t}),t}(),function(){var e=ne;a(Document.prototype,"createElement",function(t){if(this.__CE_hasRegistry){var n=e.a.get(t);if(n)return new n.constructor}return t=b.call(this,t),u(e,t),t}),a(Document.prototype,"importNode",function(t,n){return t=w.call(this,t,n),this.__CE_hasRegistry?h(e,t):l(e,t),t}),a(Document.prototype,"createElementNS",function(t,n){if(this.__CE_hasRegistry&&(null===t||"http://www.w3.org/1999/xhtml"===t)){var r=e.a.get(n);if(r)return new r.constructor}return t=k.call(this,t,n),u(e,t),t}),Q(e,Document.prototype,{h:E,append:T})}(),Q(ne,DocumentFragment.prototype,{h:C,append:S}),function(){var e=ne;function t(t,n){Object.defineProperty(t,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,t);else{var o=void 0;if(this.firstChild){var i=this.childNodes,a=i.length;if(0<a&&r(this)){o=Array(a);for(var s=0;s<a;s++)o[s]=i[s]}}if(n.set.call(this,t),o)for(t=0;t<o.length;t++)f(e,o[t])}}})}a(Node.prototype,"insertBefore",function(t,n){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);if(t=Z.call(this,t,n),r(this))for(n=0;n<o.length;n++)p(e,o[n]);return t}return o=r(t),n=Z.call(this,t,n),o&&f(e,t),r(this)&&p(e,t),n}),a(Node.prototype,"appendChild",function(t){if(t instanceof DocumentFragment){var n=Array.prototype.slice.apply(t.childNodes);if(t=O.call(this,t),r(this))for(var o=0;o<n.length;o++)p(e,n[o]);return t}return n=r(t),o=O.call(this,t),n&&f(e,t),r(this)&&p(e,t),o}),a(Node.prototype,"cloneNode",function(t){return t=D.call(this,t),this.ownerDocument.__CE_hasRegistry?h(e,t):l(e,t),t}),a(Node.prototype,"removeChild",function(t){var n=r(t),o=P.call(this,t);return n&&f(e,t),o}),a(Node.prototype,"replaceChild",function(t,n){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);if(t=j.call(this,t,n),r(this))for(f(e,n),n=0;n<o.length;n++)p(e,o[n]);return t}o=r(t);var i=j.call(this,t,n),a=r(this);return a&&f(e,n),o&&f(e,t),a&&p(e,t),i}),z&&z.get?t(Node.prototype,z):c(e,function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var e=[],t=0;t<this.childNodes.length;t++)e.push(this.childNodes[t].textContent);return e.join("")},set:function(e){for(;this.firstChild;)P.call(this,this.firstChild);O.call(this,document.createTextNode(e))}})})}(),function(){var e=ne;function t(t,n){Object.defineProperty(t,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){var o=this,a=void 0;if(r(this)&&(a=[],i(this,function(e){e!==o&&a.push(e)})),n.set.call(this,t),a)for(var s=0;s<a.length;s++){var c=a[s];1===c.__CE_state&&e.disconnectedCallback(c)}return this.ownerDocument.__CE_hasRegistry?h(e,this):l(e,this),t}})}function n(t,n){a(t,"insertAdjacentElement",function(t,o){var i=r(o);return t=n.call(this,t,o),i&&f(e,o),r(t)&&p(e,o),t})}function o(t,n){function r(t,n){for(var r=[];t!==n;t=t.nextSibling)r.push(t);for(n=0;n<r.length;n++)h(e,r[n])}a(t,"insertAdjacentHTML",function(e,t){if("beforebegin"===(e=e.toLowerCase())){var o=this.previousSibling;n.call(this,e,t),r(o||this.parentNode.firstChild,this)}else if("afterbegin"===e)o=this.firstChild,n.call(this,e,t),r(this.firstChild,o);else if("beforeend"===e)o=this.lastChild,n.call(this,e,t),r(o||this.firstChild,null);else{if("afterend"!==e)throw new SyntaxError("The value provided ("+String(e)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");o=this.nextSibling,n.call(this,e,t),r(this.nextSibling,o)}})}L&&a(Element.prototype,"attachShadow",function(e){return this.__CE_shadowRoot=L.call(this,e)}),M&&M.get?t(Element.prototype,M):K&&K.get?t(HTMLElement.prototype,K):c(e,function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return D.call(this,!0).innerHTML},set:function(e){var t="template"===this.localName,n=t?this.content:this,r=k.call(document,this.namespaceURI,this.localName);for(r.innerHTML=e;0<n.childNodes.length;)P.call(n,n.childNodes[0]);for(e=t?r.content:r;0<e.childNodes.length;)O.call(n,e.childNodes[0])}})}),a(Element.prototype,"setAttribute",function(t,n){if(1!==this.__CE_state)return H.call(this,t,n);var r=N.call(this,t);H.call(this,t,n),n=N.call(this,t),e.attributeChangedCallback(this,t,r,n,null)}),a(Element.prototype,"setAttributeNS",function(t,n,r){if(1!==this.__CE_state)return x.call(this,t,n,r);var o=R.call(this,t,n);x.call(this,t,n,r),r=R.call(this,t,n),e.attributeChangedCallback(this,n,o,r,t)}),a(Element.prototype,"removeAttribute",function(t){if(1!==this.__CE_state)return I.call(this,t);var n=N.call(this,t);I.call(this,t),null!==n&&e.attributeChangedCallback(this,t,n,null,null)}),a(Element.prototype,"removeAttributeNS",function(t,n){if(1!==this.__CE_state)return A.call(this,t,n);var r=R.call(this,t,n);A.call(this,t,n);var o=R.call(this,t,n);r!==o&&e.attributeChangedCallback(this,n,r,o,t)}),Y?n(HTMLElement.prototype,Y):F?n(Element.prototype,F):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),$?o(HTMLElement.prototype,$):q?o(Element.prototype,q):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched."),Q(e,Element.prototype,{h:B,append:W}),function(e){var t=Element.prototype;function n(t){return function(n){for(var o=[],i=0;i<arguments.length;++i)o[i-0]=arguments[i];i=[];for(var a=[],s=0;s<o.length;s++){var c=o[s];if(c instanceof Element&&r(c)&&a.push(c),c instanceof DocumentFragment)for(c=c.firstChild;c;c=c.nextSibling)i.push(c);else i.push(c)}for(t.apply(this,o),o=0;o<a.length;o++)f(e,a[o]);if(r(this))for(o=0;o<i.length;o++)(a=i[o])instanceof Element&&p(e,a)}}X&&(t.before=n(X)),X&&(t.after=n(U)),G&&a(t,"replaceWith",function(t){for(var n=[],o=0;o<arguments.length;++o)n[o-0]=arguments[o];o=[];for(var i=[],a=0;a<n.length;a++){var s=n[a];if(s instanceof Element&&r(s)&&i.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)o.push(s);else o.push(s)}for(a=r(this),G.apply(this,n),n=0;n<i.length;n++)f(e,i[n]);if(a)for(f(e,this),n=0;n<o.length;n++)(i=o[n])instanceof Element&&p(e,i)}),V&&a(t,"remove",function(){var t=r(this);V.call(this),t&&f(e,this)})}(e)}(),document.__CE_hasRegistry=!0;var re=new _(ne);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:re})}}).call(self)},"hN/g":function(e,t,n){"use strict";n.r(t),n("0TWp"),n("aVe3"),n("s1Zv")},s1Zv:function(e,t){!function(){if(void 0===window.Reflect||void 0===window.customElements||window.customElements.hasOwnProperty("polyfillWrapFlushCallback"))return;const e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}()}},[[1,1]]]);
//# sourceMappingURL=polyfills.484bababb6e0f3a2b3fc.js.map
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tradewind_admin/ng-docs.github.io.git
git@gitee.com:tradewind_admin/ng-docs.github.io.git
tradewind_admin
ng-docs.github.io
ng-docs.github.io
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385