-
Notifications
You must be signed in to change notification settings - Fork 1
/
polyfills.166aa95e659276e2.js
2 lines (2 loc) · 51.7 KB
/
polyfills.166aa95e659276e2.js
1
2
(self.webpackChunksite=self.webpackChunksite||[]).push([["polyfills"],{5391:(st,Et,dt)=>{"use strict";dt(192),dt(8984)},8984:()=>{(function(){"use strict";var st=window.Document.prototype.createElement,Et=window.Document.prototype.createElementNS,dt=window.Document.prototype.importNode,Ot=window.Document.prototype.prepend,re=window.Document.prototype.append,Rt=window.DocumentFragment.prototype.prepend,Ht=window.DocumentFragment.prototype.append,Ft=window.Node.prototype.cloneNode,Ct=window.Node.prototype.appendChild,ut=window.Node.prototype.insertBefore,ct=window.Node.prototype.removeChild,bt=window.Node.prototype.replaceChild,Mt=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),xt=window.Element.prototype.attachShadow,B=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),vt=window.Element.prototype.getAttribute,wt=window.Element.prototype.setAttribute,J=window.Element.prototype.removeAttribute,Ut=window.Element.prototype.toggleAttribute,Dt=window.Element.prototype.getAttributeNS,oe=window.Element.prototype.setAttributeNS,Wt=window.Element.prototype.removeAttributeNS,Vt=window.Element.prototype.insertAdjacentElement,Lt=window.Element.prototype.insertAdjacentHTML,zt=window.Element.prototype.prepend,ie=window.Element.prototype.append,Zt=window.Element.prototype.before,qt=window.Element.prototype.after,Xt=window.Element.prototype.replaceWith,Yt=window.Element.prototype.remove,at=window.HTMLElement,kt=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),ft=window.HTMLElement.prototype.insertAdjacentElement,se=window.HTMLElement.prototype.insertAdjacentHTML,ht=new Set;function $t(t){var e=ht.has(t);return t=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(t),!e&&t}"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function(t){return ht.add(t)});var Kt=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function Y(t){var e=t.isConnected;if(void 0!==e)return e;if(Kt(t))return!0;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function Jt(t){var e=t.children;if(e)return Array.prototype.slice.call(e);for(e=[],t=t.firstChild;t;t=t.nextSibling)t.nodeType===Node.ELEMENT_NODE&&e.push(t);return e}function mt(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function Qt(t,e,r){for(var a=t;a;){if(a.nodeType===Node.ELEMENT_NODE){var i=a;e(i);var c=i.localName;if("link"===c&&"import"===i.getAttribute("rel")){if(a=i.import,void 0===r&&(r=new Set),a instanceof Node&&!r.has(a))for(r.add(a),a=a.firstChild;a;a=a.nextSibling)Qt(a,e,r);a=mt(t,i);continue}if("template"===c){a=mt(t,i);continue}if(i=i.__CE_shadowRoot)for(i=i.firstChild;i;i=i.nextSibling)Qt(i,e,r)}a=a.firstChild?a.firstChild:mt(t,a)}}function et(){var t=!(null==P||!P.noDocumentConstructionObserver),e=!(null==P||!P.shadyDomFastWalk);this.m=[],this.g=[],this.j=!1,this.shadyDomFastWalk=e,this.I=!t}function Nt(t,e,r,a){var i=window.ShadyDOM;if(t.shadyDomFastWalk&&i&&i.inUse){if(e.nodeType===Node.ELEMENT_NODE&&r(e),e.querySelectorAll)for(t=i.nativeMethods.querySelectorAll.call(e,"*"),e=0;e<t.length;e++)r(t[e])}else Qt(e,r,a)}function Bt(t,e){t.j&&Nt(t,e,function(r){return Pt(t,r)})}function Pt(t,e){if(t.j&&!e.__CE_patched){e.__CE_patched=!0;for(var r=0;r<t.m.length;r++)t.m[r](e);for(r=0;r<t.g.length;r++)t.g[r](e)}}function lt(t,e){var r=[];for(Nt(t,e,function(i){return r.push(i)}),e=0;e<r.length;e++){var a=r[e];1===a.__CE_state?t.connectedCallback(a):At(t,a)}}function nt(t,e){var r=[];for(Nt(t,e,function(i){return r.push(i)}),e=0;e<r.length;e++){var a=r[e];1===a.__CE_state&&t.disconnectedCallback(a)}}function pt(t,e,r){var a=(r=void 0===r?{}:r).J,i=r.upgrade||function(_){return At(t,_)},c=[];for(Nt(t,e,function(_){if(t.j&&Pt(t,_),"link"===_.localName&&"import"===_.getAttribute("rel")){var E=_.import;E instanceof Node&&(E.__CE_isImportDocument=!0,E.__CE_registry=document.__CE_registry),E&&"complete"===E.readyState?E.__CE_documentLoadHandled=!0:_.addEventListener("load",function(){var p=_.import;if(!p.__CE_documentLoadHandled){p.__CE_documentLoadHandled=!0;var m=new Set;a&&(a.forEach(function(A){return m.add(A)}),m.delete(p)),pt(t,p,{J:m,upgrade:i})}})}else c.push(_)},a),e=0;e<c.length;e++)i(c[e])}function At(t,e){try{var r=e.ownerDocument,a=r.__CE_registry,i=a&&(r.defaultView||r.__CE_isImportDocument)?n(a,e.localName):void 0;if(i&&void 0===e.__CE_state){i.constructionStack.push(e);try{try{if(new i.constructorFunction!==e)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{i.constructionStack.pop()}}catch(p){throw e.__CE_state=2,p}if(e.__CE_state=1,e.__CE_definition=i,i.attributeChangedCallback&&e.hasAttributes()){var c=i.observedAttributes;for(i=0;i<c.length;i++){var _=c[i],E=e.getAttribute(_);null!==E&&t.attributeChangedCallback(e,_,null,E,null)}}Y(e)&&t.connectedCallback(e)}}catch(p){yt(p)}}function te(t,e,r,a){var i=e.__CE_registry;if(i&&(null===a||"http://www.w3.org/1999/xhtml"===a)&&(i=n(i,r)))try{var c=new i.constructorFunction;if(void 0===c.__CE_state||void 0===c.__CE_definition)throw Error("Failed to construct '"+r+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==c.namespaceURI)throw Error("Failed to construct '"+r+"': The constructed element's namespace must be the HTML namespace.");if(c.hasAttributes())throw Error("Failed to construct '"+r+"': The constructed element must not have any attributes.");if(null!==c.firstChild)throw Error("Failed to construct '"+r+"': The constructed element must not have any children.");if(null!==c.parentNode)throw Error("Failed to construct '"+r+"': The constructed element must not have a parent node.");if(c.ownerDocument!==e)throw Error("Failed to construct '"+r+"': The constructed element's owner document is incorrect.");if(c.localName!==r)throw Error("Failed to construct '"+r+"': The constructed element's local name is incorrect.");return c}catch(_){return yt(_),e=null===a?st.call(e,r):Et.call(e,a,r),Object.setPrototypeOf(e,HTMLUnknownElement.prototype),e.__CE_state=2,e.__CE_definition=void 0,Pt(t,e),e}return Pt(t,e=null===a?st.call(e,r):Et.call(e,a,r)),e}function yt(t){var e="",r="",a=0,i=0;t instanceof Error?(e=t.message,r=t.sourceURL||t.fileName||"",a=t.line||t.lineNumber||0,i=t.column||t.columnNumber||0):e="Uncaught "+String(t);var c=void 0;void 0===ErrorEvent.prototype.initErrorEvent?c=new ErrorEvent("error",{cancelable:!0,message:e,filename:r,lineno:a,colno:i,error:t}):((c=document.createEvent("ErrorEvent")).initErrorEvent("error",!1,!0,e,r,a),c.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})}),void 0===c.error&&Object.defineProperty(c,"error",{configurable:!0,enumerable:!0,get:function(){return t}}),window.dispatchEvent(c),c.defaultPrevented||console.error(t)}function le(){var t=this;this.g=void 0,this.F=new Promise(function(e){t.l=e})}function ue(t){var e=document;this.l=void 0,this.h=t,this.g=e,pt(this.h,this.g),"loading"===this.g.readyState&&(this.l=new MutationObserver(this.G.bind(this)),this.l.observe(this.g,{childList:!0,subtree:!0}))}function It(t){t.l&&t.l.disconnect()}function V(t){this.s=new Map,this.u=new Map,this.C=new Map,this.A=!1,this.B=new Map,this.o=function(e){return e()},this.i=!1,this.v=[],this.h=t,this.D=t.I?new ue(t):void 0}function fe(t,e){if(!$t(e))throw new SyntaxError("The element name '"+e+"' is not valid.");if(n(t,e))throw Error("A custom element with name '"+e+"' has already been defined.");if(t.A)throw Error("A custom element is already being defined.")}function he(t,e,r){var a;t.A=!0;try{var i=r.prototype;if(!(i instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var c=function(A){var F=i[A];if(void 0!==F&&!(F instanceof Function))throw Error("The '"+A+"' callback must be a function.");return F},_=c("connectedCallback"),E=c("disconnectedCallback"),p=c("adoptedCallback"),m=(a=c("attributeChangedCallback"))&&r.observedAttributes||[]}catch(A){throw A}finally{t.A=!1}return t.u.set(e,r={localName:e,constructorFunction:r,connectedCallback:_,disconnectedCallback:E,adoptedCallback:p,attributeChangedCallback:a,observedAttributes:m,constructionStack:[]}),t.C.set(r.constructorFunction,r),r}function de(t){if(!1!==t.i){t.i=!1;for(var e=[],r=t.v,a=new Map,i=0;i<r.length;i++)a.set(r[i],[]);for(pt(t.h,document,{upgrade:function(p){if(void 0===p.__CE_state){var m=p.localName,A=a.get(m);A?A.push(p):t.u.has(m)&&e.push(p)}}}),i=0;i<e.length;i++)At(t.h,e[i]);for(i=0;i<r.length;i++){for(var c=r[i],_=a.get(c),E=0;E<_.length;E++)At(t.h,_[E]);(c=t.B.get(c))&&c.resolve(void 0)}r.length=0}}function n(t,e){var r=t.u.get(e);if(r)return r;if(r=t.s.get(e)){t.s.delete(e);try{return he(t,e,r())}catch(a){yt(a)}}}function s(t,e,r){function a(i){return function(c){for(var _=[],E=0;E<arguments.length;++E)_[E]=arguments[E];E=[];for(var p=[],m=0;m<_.length;m++){var A=_[m];if(A instanceof Element&&Y(A)&&p.push(A),A instanceof DocumentFragment)for(A=A.firstChild;A;A=A.nextSibling)E.push(A);else E.push(A)}for(i.apply(this,_),_=0;_<p.length;_++)nt(t,p[_]);if(Y(this))for(_=0;_<E.length;_++)(p=E[_])instanceof Element&<(t,p)}}void 0!==r.prepend&&(e.prepend=a(r.prepend)),void 0!==r.append&&(e.append=a(r.append))}et.prototype.connectedCallback=function(t){var e=t.__CE_definition;if(e.connectedCallback)try{e.connectedCallback.call(t)}catch(r){yt(r)}},et.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;if(e.disconnectedCallback)try{e.disconnectedCallback.call(t)}catch(r){yt(r)}},et.prototype.attributeChangedCallback=function(t,e,r,a,i){var c=t.__CE_definition;if(c.attributeChangedCallback&&-1<c.observedAttributes.indexOf(e))try{c.attributeChangedCallback.call(t,e,r,a,i)}catch(_){yt(_)}},le.prototype.resolve=function(t){if(this.g)throw Error("Already resolved.");this.g=t,this.l(t)},ue.prototype.G=function(t){var e=this.g.readyState;for("interactive"!==e&&"complete"!==e||It(this),e=0;e<t.length;e++)for(var r=t[e].addedNodes,a=0;a<r.length;a++)pt(this.h,r[a])},V.prototype.H=function(t,e){var r=this;if(!(e instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");fe(this,t),this.s.set(t,e),this.v.push(t),this.i||(this.i=!0,this.o(function(){return de(r)}))},V.prototype.define=function(t,e){var r=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");fe(this,t),he(this,t,e),this.v.push(t),this.i||(this.i=!0,this.o(function(){return de(r)}))},V.prototype.upgrade=function(t){pt(this.h,t)},V.prototype.get=function(t){if(t=n(this,t))return t.constructorFunction},V.prototype.whenDefined=function(t){if(!$t(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.B.get(t);if(e)return e.F;e=new le,this.B.set(t,e);var r=this.u.has(t)||this.s.has(t);return t=-1===this.v.indexOf(t),r&&t&&e.resolve(void 0),e.F},V.prototype.polyfillWrapFlushCallback=function(t){this.D&&It(this.D);var e=this.o;this.o=function(r){return t(function(){return e(r)})}},V.prototype.define=V.prototype.define,V.prototype.upgrade=V.prototype.upgrade,V.prototype.get=V.prototype.get,V.prototype.whenDefined=V.prototype.whenDefined,V.prototype.polyfillDefineLazy=V.prototype.H,V.prototype.polyfillWrapFlushCallback=V.prototype.polyfillWrapFlushCallback;var y={},P=window.customElements;function R(){var t=new et;(function D(t){function e(){var r=this.constructor,a=document.__CE_registry.C.get(r);if(!a)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var i=a.constructionStack;if(0===i.length)return i=st.call(document,a.localName),Object.setPrototypeOf(i,r.prototype),i.__CE_state=1,i.__CE_definition=a,Pt(t,i),i;var c=i.length-1,_=i[c];if(_===y)throw Error("Failed to construct '"+a.localName+"': This element was already constructed.");return i[c]=y,Object.setPrototypeOf(_,r.prototype),Pt(t,_),_}e.prototype=at.prototype,Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:e}),window.HTMLElement=e})(t),function f(t){Document.prototype.createElement=function(e){return te(t,this,e,null)},Document.prototype.importNode=function(e,r){return e=dt.call(this,e,!!r),this.__CE_registry?pt(t,e):Bt(t,e),e},Document.prototype.createElementNS=function(e,r){return te(t,this,r,e)},s(t,Document.prototype,{prepend:Ot,append:re})}(t),s(t,DocumentFragment.prototype,{prepend:Rt,append:Ht}),function b(t){function e(r,a){Object.defineProperty(r,"textContent",{enumerable:a.enumerable,configurable:!0,get:a.get,set:function(i){if(this.nodeType===Node.TEXT_NODE)a.set.call(this,i);else{var c=void 0;if(this.firstChild){var _=this.childNodes,E=_.length;if(0<E&&Y(this)){c=Array(E);for(var p=0;p<E;p++)c[p]=_[p]}}if(a.set.call(this,i),c)for(i=0;i<c.length;i++)nt(t,c[i])}}})}Node.prototype.insertBefore=function(r,a){if(r instanceof DocumentFragment){var i=Jt(r);if(r=ut.call(this,r,a),Y(this))for(a=0;a<i.length;a++)lt(t,i[a]);return r}return i=r instanceof Element&&Y(r),a=ut.call(this,r,a),i&&nt(t,r),Y(this)&<(t,r),a},Node.prototype.appendChild=function(r){if(r instanceof DocumentFragment){var a=Jt(r);if(r=Ct.call(this,r),Y(this))for(var i=0;i<a.length;i++)lt(t,a[i]);return r}return a=r instanceof Element&&Y(r),i=Ct.call(this,r),a&&nt(t,r),Y(this)&<(t,r),i},Node.prototype.cloneNode=function(r){return r=Ft.call(this,!!r),this.ownerDocument.__CE_registry?pt(t,r):Bt(t,r),r},Node.prototype.removeChild=function(r){var a=r instanceof Element&&Y(r),i=ct.call(this,r);return a&&nt(t,r),i},Node.prototype.replaceChild=function(r,a){if(r instanceof DocumentFragment){var i=Jt(r);if(r=bt.call(this,r,a),Y(this))for(nt(t,a),a=0;a<i.length;a++)lt(t,i[a]);return r}i=r instanceof Element&&Y(r);var c=bt.call(this,r,a),_=Y(this);return _&&nt(t,a),i&&nt(t,r),_&<(t,r),c},Mt&&Mt.get?e(Node.prototype,Mt):function ce(t,e){t.j=!0,t.m.push(e)}(t,function(r){e(r,{enumerable:!0,configurable:!0,get:function(){for(var a=[],i=this.firstChild;i;i=i.nextSibling)i.nodeType!==Node.COMMENT_NODE&&a.push(i.textContent);return a.join("")},set:function(a){for(;this.firstChild;)ct.call(this,this.firstChild);null!=a&&""!==a&&Ct.call(this,document.createTextNode(a))}})})}(t),function h(t){function e(i,c){Object.defineProperty(i,"innerHTML",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(_){var E=this,p=void 0;if(Y(this)&&(p=[],Nt(t,this,function(F){F!==E&&p.push(F)})),c.set.call(this,_),p)for(var m=0;m<p.length;m++){var A=p[m];1===A.__CE_state&&t.disconnectedCallback(A)}return this.ownerDocument.__CE_registry?pt(t,this):Bt(t,this),_}})}function r(i,c){i.insertAdjacentElement=function(_,E){var p=Y(E);return _=c.call(this,_,E),p&&nt(t,E),Y(_)&<(t,E),_}}function a(i,c){function _(E,p){for(var m=[];E!==p;E=E.nextSibling)m.push(E);for(p=0;p<m.length;p++)pt(t,m[p])}i.insertAdjacentHTML=function(E,p){if("beforebegin"===(E=E.toLowerCase())){var m=this.previousSibling;c.call(this,E,p),_(m||this.parentNode.firstChild,this)}else if("afterbegin"===E)m=this.firstChild,c.call(this,E,p),_(this.firstChild,m);else if("beforeend"===E)m=this.lastChild,c.call(this,E,p),_(m||this.firstChild,null);else{if("afterend"!==E)throw new SyntaxError("The value provided ("+String(E)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");m=this.nextSibling,c.call(this,E,p),_(this.nextSibling,m)}}}xt&&(Element.prototype.attachShadow=function(i){if(i=xt.call(this,i),t.j&&!i.__CE_patched){i.__CE_patched=!0;for(var c=0;c<t.m.length;c++)t.m[c](i)}return this.__CE_shadowRoot=i}),B&&B.get?e(Element.prototype,B):kt&&kt.get?e(HTMLElement.prototype,kt):function ae(t,e){t.j=!0,t.g.push(e)}(t,function(i){e(i,{enumerable:!0,configurable:!0,get:function(){return Ft.call(this,!0).innerHTML},set:function(c){var _="template"===this.localName,E=_?this.content:this,p=Et.call(document,this.namespaceURI,this.localName);for(p.innerHTML=c;0<E.childNodes.length;)ct.call(E,E.childNodes[0]);for(c=_?p.content:p;0<c.childNodes.length;)Ct.call(E,c.childNodes[0])}})}),Element.prototype.setAttribute=function(i,c){if(1!==this.__CE_state)return wt.call(this,i,c);var _=vt.call(this,i);wt.call(this,i,c),c=vt.call(this,i),t.attributeChangedCallback(this,i,_,c,null)},Element.prototype.setAttributeNS=function(i,c,_){if(1!==this.__CE_state)return oe.call(this,i,c,_);var E=Dt.call(this,i,c);oe.call(this,i,c,_),_=Dt.call(this,i,c),t.attributeChangedCallback(this,c,E,_,i)},Element.prototype.removeAttribute=function(i){if(1!==this.__CE_state)return J.call(this,i);var c=vt.call(this,i);J.call(this,i),null!==c&&t.attributeChangedCallback(this,i,c,null,null)},Ut&&(Element.prototype.toggleAttribute=function(i,c){if(1!==this.__CE_state)return Ut.call(this,i,c);var _=vt.call(this,i);return null!==_!==(c=Ut.call(this,i,c))&&t.attributeChangedCallback(this,i,_,c?"":null,null),c}),Element.prototype.removeAttributeNS=function(i,c){if(1!==this.__CE_state)return Wt.call(this,i,c);var _=Dt.call(this,i,c);Wt.call(this,i,c);var E=Dt.call(this,i,c);_!==E&&t.attributeChangedCallback(this,c,_,E,i)},ft?r(HTMLElement.prototype,ft):Vt&&r(Element.prototype,Vt),se?a(HTMLElement.prototype,se):Lt&&a(Element.prototype,Lt),s(t,Element.prototype,{prepend:zt,append:ie}),function l(t){function e(a){return function(i){for(var c=[],_=0;_<arguments.length;++_)c[_]=arguments[_];_=[];for(var E=[],p=0;p<c.length;p++){var m=c[p];if(m instanceof Element&&Y(m)&&E.push(m),m instanceof DocumentFragment)for(m=m.firstChild;m;m=m.nextSibling)_.push(m);else _.push(m)}for(a.apply(this,c),c=0;c<E.length;c++)nt(t,E[c]);if(Y(this))for(c=0;c<_.length;c++)(E=_[c])instanceof Element&<(t,E)}}var r=Element.prototype;void 0!==Zt&&(r.before=e(Zt)),void 0!==qt&&(r.after=e(qt)),void 0!==Xt&&(r.replaceWith=function(a){for(var i=[],c=0;c<arguments.length;++c)i[c]=arguments[c];c=[];for(var _=[],E=0;E<i.length;E++){var p=i[E];if(p instanceof Element&&Y(p)&&_.push(p),p instanceof DocumentFragment)for(p=p.firstChild;p;p=p.nextSibling)c.push(p);else c.push(p)}for(E=Y(this),Xt.apply(this,i),i=0;i<_.length;i++)nt(t,_[i]);if(E)for(nt(t,this),i=0;i<c.length;i++)(_=c[i])instanceof Element&<(t,_)}),void 0!==Yt&&(r.remove=function(){var a=Y(this);Yt.call(this),a&&nt(t,this)})}(t)}(t),window.CustomElementRegistry=V,t=new V(t),document.__CE_registry=t,Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:t})}P&&!P.forcePolyfill&&"function"==typeof P.define&&"function"==typeof P.get||R(),window.__CE_installPolyfill=R}).call(self)},192:()=>{"use strict";!function(n){const s=n.performance;function f(W){s&&s.mark&&s.mark(W)}function l(W,k){s&&s.measure&&s.measure(W,k)}f("Zone");const h=n.__Zone_symbol_prefix||"__zone_symbol__";function y(W){return h+W}const D=!0===n[y("forceDuplicateZoneCheck")];if(n.Zone){if(D||"function"!=typeof n.Zone.__symbol__)throw new Error("Zone already loaded.");return n.Zone}let b=(()=>{class k{static assertZonePatched(){if(n.Promise!==gt.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.)")}static get root(){let o=k.current;for(;o.parent;)o=o.parent;return o}static get current(){return $.zone}static get currentTask(){return _t}static __load_patch(o,C,L=!1){if(gt.hasOwnProperty(o)){if(!L&&D)throw Error("Already loaded patch: "+o)}else if(!n["__Zone_disable_"+o]){const G="Zone:"+o;f(G),gt[o]=C(n,k,tt),l(G,G)}}get parent(){return this._parent}get name(){return this._name}constructor(o,C){this._parent=o,this._name=C?C.name||"unnamed":"<root>",this._properties=C&&C.properties||{},this._zoneDelegate=new R(this,this._parent&&this._parent._zoneDelegate,C)}get(o){const C=this.getZoneWith(o);if(C)return C._properties[o]}getZoneWith(o){let C=this;for(;C;){if(C._properties.hasOwnProperty(o))return C;C=C._parent}return null}fork(o){if(!o)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,o)}wrap(o,C){if("function"!=typeof o)throw new Error("Expecting function got: "+o);const L=this._zoneDelegate.intercept(this,o,C),G=this;return function(){return G.runGuarded(L,this,arguments,C)}}run(o,C,L,G){$={parent:$,zone:this};try{return this._zoneDelegate.invoke(this,o,C,L,G)}finally{$=$.parent}}runGuarded(o,C=null,L,G){$={parent:$,zone:this};try{try{return this._zoneDelegate.invoke(this,o,C,L,G)}catch(g){if(this._zoneDelegate.handleError(this,g))throw g}}finally{$=$.parent}}runTask(o,C,L){if(o.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(o.zone||A).name+"; Execution: "+this.name+")");if(o.state===F&&(o.type===rt||o.type===M))return;const G=o.state!=N;G&&o._transitionTo(N,U),o.runCount++;const g=_t;_t=o,$={parent:$,zone:this};try{o.type==M&&o.data&&!o.data.isPeriodic&&(o.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,o,C,L)}catch(T){if(this._zoneDelegate.handleError(this,T))throw T}}finally{o.state!==F&&o.state!==w&&(o.type==rt||o.data&&o.data.isPeriodic?G&&o._transitionTo(U,N):(o.runCount=0,this._updateTaskCount(o,-1),G&&o._transitionTo(F,N,F))),$=$.parent,_t=g}}scheduleTask(o){if(o.zone&&o.zone!==this){let L=this;for(;L;){if(L===o.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${o.zone.name}`);L=L.parent}}o._transitionTo(Q,F);const C=[];o._zoneDelegates=C,o._zone=this;try{o=this._zoneDelegate.scheduleTask(this,o)}catch(L){throw o._transitionTo(w,Q,F),this._zoneDelegate.handleError(this,L),L}return o._zoneDelegates===C&&this._updateTaskCount(o,1),o.state==Q&&o._transitionTo(U,Q),o}scheduleMicroTask(o,C,L,G){return this.scheduleTask(new t(x,o,C,L,G,void 0))}scheduleMacroTask(o,C,L,G,g){return this.scheduleTask(new t(M,o,C,L,G,g))}scheduleEventTask(o,C,L,G,g){return this.scheduleTask(new t(rt,o,C,L,G,g))}cancelTask(o){if(o.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(o.zone||A).name+"; Execution: "+this.name+")");if(o.state===U||o.state===N){o._transitionTo(z,U,N);try{this._zoneDelegate.cancelTask(this,o)}catch(C){throw o._transitionTo(w,z),this._zoneDelegate.handleError(this,C),C}return this._updateTaskCount(o,-1),o._transitionTo(F,z),o.runCount=0,o}}_updateTaskCount(o,C){const L=o._zoneDelegates;-1==C&&(o._zoneDelegates=null);for(let G=0;G<L.length;G++)L[G]._updateTaskCount(o.type,C)}}return k.__symbol__=y,k})();const P={name:"",onHasTask:(W,k,d,o)=>W.hasTask(d,o),onScheduleTask:(W,k,d,o)=>W.scheduleTask(d,o),onInvokeTask:(W,k,d,o,C,L)=>W.invokeTask(d,o,C,L),onCancelTask:(W,k,d,o)=>W.cancelTask(d,o)};class R{constructor(k,d,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=k,this._parentDelegate=d,this._forkZS=o&&(o&&o.onFork?o:d._forkZS),this._forkDlgt=o&&(o.onFork?d:d._forkDlgt),this._forkCurrZone=o&&(o.onFork?this.zone:d._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:d._interceptZS),this._interceptDlgt=o&&(o.onIntercept?d:d._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this.zone:d._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:d._invokeZS),this._invokeDlgt=o&&(o.onInvoke?d:d._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this.zone:d._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:d._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?d:d._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this.zone:d._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:d._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?d:d._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this.zone:d._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:d._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?d:d._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this.zone:d._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:d._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?d:d._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this.zone:d._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const C=o&&o.onHasTask;(C||d&&d._hasTaskZS)&&(this._hasTaskZS=C?o:P,this._hasTaskDlgt=d,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=k,o.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=d,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=d,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=d,this._cancelTaskCurrZone=this.zone))}fork(k,d){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,k,d):new b(k,d)}intercept(k,d,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,k,d,o):d}invoke(k,d,o,C,L){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,k,d,o,C,L):d.apply(o,C)}handleError(k,d){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,k,d)}scheduleTask(k,d){let o=d;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,k,d),o||(o=d);else if(d.scheduleFn)d.scheduleFn(d);else{if(d.type!=x)throw new Error("Task is missing scheduleFn.");p(d)}return o}invokeTask(k,d,o,C){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,k,d,o,C):d.callback.apply(o,C)}cancelTask(k,d){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,k,d);else{if(!d.cancelFn)throw Error("Task is not cancelable");o=d.cancelFn(d)}return o}hasTask(k,d){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,k,d)}catch(o){this.handleError(k,o)}}_updateTaskCount(k,d){const o=this._taskCounts,C=o[k],L=o[k]=C+d;if(L<0)throw new Error("More tasks executed then were scheduled.");0!=C&&0!=L||this.hasTask(this.zone,{microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:k})}}class t{constructor(k,d,o,C,L,G){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=k,this.source=d,this.data=C,this.scheduleFn=L,this.cancelFn=G,!o)throw new Error("callback is not defined");this.callback=o;const g=this;this.invoke=k===rt&&C&&C.useG?t.invokeTask:function(){return t.invokeTask.call(n,g,this,arguments)}}static invokeTask(k,d,o){k||(k=this),it++;try{return k.runCount++,k.zone.runTask(k,d,o)}finally{1==it&&m(),it--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(F,Q)}_transitionTo(k,d,o){if(this._state!==d&&this._state!==o)throw new Error(`${this.type} '${this.source}': can not transition to '${k}', expecting state '${d}'${o?" or '"+o+"'":""}, was '${this._state}'.`);this._state=k,k==F&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const e=y("setTimeout"),r=y("Promise"),a=y("then");let _,i=[],c=!1;function E(W){if(_||n[r]&&(_=n[r].resolve(0)),_){let k=_[a];k||(k=_.then),k.call(_,W)}else n[e](W,0)}function p(W){0===it&&0===i.length&&E(m),W&&i.push(W)}function m(){if(!c){for(c=!0;i.length;){const W=i;i=[];for(let k=0;k<W.length;k++){const d=W[k];try{d.zone.runTask(d,null,null)}catch(o){tt.onUnhandledError(o)}}}tt.microtaskDrainDone(),c=!1}}const A={name:"NO ZONE"},F="notScheduled",Q="scheduling",U="scheduled",N="running",z="canceling",w="unknown",x="microTask",M="macroTask",rt="eventTask",gt={},tt={symbol:y,currentZoneFrame:()=>$,onUnhandledError:K,microtaskDrainDone:K,scheduleMicroTask:p,showUncaughtError:()=>!b[y("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:K,patchMethod:()=>K,bindArguments:()=>[],patchThen:()=>K,patchMacroTask:()=>K,patchEventPrototype:()=>K,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>K,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>K,wrapWithCurrentZone:()=>K,filterProperties:()=>[],attachOriginToPatched:()=>K,_redefineProperty:()=>K,patchCallbacks:()=>K,nativeScheduleMicroTask:E};let $={parent:null,zone:new b(null,null)},_t=null,it=0;function K(){}l("Zone","Zone"),n.Zone=b}(globalThis);const st=Object.getOwnPropertyDescriptor,Et=Object.defineProperty,dt=Object.getPrototypeOf,Ot=Object.create,re=Array.prototype.slice,Rt="addEventListener",Ht="removeEventListener",Ft=Zone.__symbol__(Rt),Ct=Zone.__symbol__(Ht),ut="true",ct="false",bt=Zone.__symbol__("");function Mt(n,s){return Zone.current.wrap(n,s)}function xt(n,s,f,l,h){return Zone.current.scheduleMacroTask(n,s,f,l,h)}const B=Zone.__symbol__,vt=typeof window<"u",wt=vt?window:void 0,J=vt&&wt||globalThis,Ut="removeAttribute";function Dt(n,s){for(let f=n.length-1;f>=0;f--)"function"==typeof n[f]&&(n[f]=Mt(n[f],s+"_"+f));return n}function Wt(n){return!n||!1!==n.writable&&!("function"==typeof n.get&&typeof n.set>"u")}const Vt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Lt=!("nw"in J)&&typeof J.process<"u"&&"[object process]"==={}.toString.call(J.process),zt=!Lt&&!Vt&&!(!vt||!wt.HTMLElement),ie=typeof J.process<"u"&&"[object process]"==={}.toString.call(J.process)&&!Vt&&!(!vt||!wt.HTMLElement),Zt={},qt=function(n){if(!(n=n||J.event))return;let s=Zt[n.type];s||(s=Zt[n.type]=B("ON_PROPERTY"+n.type));const f=this||n.target||J,l=f[s];let h;return zt&&f===wt&&"error"===n.type?(h=l&&l.call(this,n.message,n.filename,n.lineno,n.colno,n.error),!0===h&&n.preventDefault()):(h=l&&l.apply(this,arguments),null!=h&&!h&&n.preventDefault()),h};function Xt(n,s,f){let l=st(n,s);if(!l&&f&&st(f,s)&&(l={enumerable:!0,configurable:!0}),!l||!l.configurable)return;const h=B("on"+s+"patched");if(n.hasOwnProperty(h)&&n[h])return;delete l.writable,delete l.value;const y=l.get,D=l.set,b=s.slice(2);let P=Zt[b];P||(P=Zt[b]=B("ON_PROPERTY"+b)),l.set=function(R){let t=this;!t&&n===J&&(t=J),t&&("function"==typeof t[P]&&t.removeEventListener(b,qt),D&&D.call(t,null),t[P]=R,"function"==typeof R&&t.addEventListener(b,qt,!1))},l.get=function(){let R=this;if(!R&&n===J&&(R=J),!R)return null;const t=R[P];if(t)return t;if(y){let e=y.call(this);if(e)return l.set.call(this,e),"function"==typeof R[Ut]&&R.removeAttribute(s),e}return null},Et(n,s,l),n[h]=!0}function Yt(n,s,f){if(s)for(let l=0;l<s.length;l++)Xt(n,"on"+s[l],f);else{const l=[];for(const h in n)"on"==h.slice(0,2)&&l.push(h);for(let h=0;h<l.length;h++)Xt(n,l[h],f)}}const at=B("originalInstance");function kt(n){const s=J[n];if(!s)return;J[B(n)]=s,J[n]=function(){const h=Dt(arguments,n);switch(h.length){case 0:this[at]=new s;break;case 1:this[at]=new s(h[0]);break;case 2:this[at]=new s(h[0],h[1]);break;case 3:this[at]=new s(h[0],h[1],h[2]);break;case 4:this[at]=new s(h[0],h[1],h[2],h[3]);break;default:throw new Error("Arg list too long.")}},ht(J[n],s);const f=new s(function(){});let l;for(l in f)"XMLHttpRequest"===n&&"responseBlob"===l||function(h){"function"==typeof f[h]?J[n].prototype[h]=function(){return this[at][h].apply(this[at],arguments)}:Et(J[n].prototype,h,{set:function(y){"function"==typeof y?(this[at][h]=Mt(y,n+"."+h),ht(this[at][h],y)):this[at][h]=y},get:function(){return this[at][h]}})}(l);for(l in s)"prototype"!==l&&s.hasOwnProperty(l)&&(J[n][l]=s[l])}function ft(n,s,f){let l=n;for(;l&&!l.hasOwnProperty(s);)l=dt(l);!l&&n[s]&&(l=n);const h=B(s);let y=null;if(l&&(!(y=l[h])||!l.hasOwnProperty(h))&&(y=l[h]=l[s],Wt(l&&st(l,s)))){const b=f(y,h,s);l[s]=function(){return b(this,arguments)},ht(l[s],y)}return y}function se(n,s,f){let l=null;function h(y){const D=y.data;return D.args[D.cbIdx]=function(){y.invoke.apply(this,arguments)},l.apply(D.target,D.args),y}l=ft(n,s,y=>function(D,b){const P=f(D,b);return P.cbIdx>=0&&"function"==typeof b[P.cbIdx]?xt(P.name,b[P.cbIdx],P,h):y.apply(D,b)})}function ht(n,s){n[B("OriginalDelegate")]=s}let $t=!1,Kt=!1;function Jt(){if($t)return Kt;$t=!0;try{const n=wt.navigator.userAgent;(-1!==n.indexOf("MSIE ")||-1!==n.indexOf("Trident/")||-1!==n.indexOf("Edge/"))&&(Kt=!0)}catch{}return Kt}Zone.__load_patch("ZoneAwarePromise",(n,s,f)=>{const l=Object.getOwnPropertyDescriptor,h=Object.defineProperty,D=f.symbol,b=[],P=!1!==n[D("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],R=D("Promise"),t=D("then"),e="__creationTrace__";f.onUnhandledError=g=>{if(f.showUncaughtError()){const T=g&&g.rejection;T?console.error("Unhandled Promise rejection:",T instanceof Error?T.message:T,"; Zone:",g.zone.name,"; Task:",g.task&&g.task.source,"; Value:",T,T instanceof Error?T.stack:void 0):console.error(g)}},f.microtaskDrainDone=()=>{for(;b.length;){const g=b.shift();try{g.zone.runGuarded(()=>{throw g.throwOriginal?g.rejection:g})}catch(T){a(T)}}};const r=D("unhandledPromiseRejectionHandler");function a(g){f.onUnhandledError(g);try{const T=s[r];"function"==typeof T&&T.call(this,g)}catch{}}function i(g){return g&&g.then}function c(g){return g}function _(g){return d.reject(g)}const E=D("state"),p=D("value"),m=D("finally"),A=D("parentPromiseValue"),F=D("parentPromiseState"),Q="Promise.then",U=null,N=!0,z=!1,w=0;function x(g,T){return u=>{try{tt(g,T,u)}catch(v){tt(g,!1,v)}}}const M=function(){let g=!1;return function(u){return function(){g||(g=!0,u.apply(null,arguments))}}},rt="Promise resolved with itself",gt=D("currentTaskTrace");function tt(g,T,u){const v=M();if(g===u)throw new TypeError(rt);if(g[E]===U){let O=null;try{("object"==typeof u||"function"==typeof u)&&(O=u&&u.then)}catch(Z){return v(()=>{tt(g,!1,Z)})(),g}if(T!==z&&u instanceof d&&u.hasOwnProperty(E)&&u.hasOwnProperty(p)&&u[E]!==U)_t(u),tt(g,u[E],u[p]);else if(T!==z&&"function"==typeof O)try{O.call(u,v(x(g,T)),v(x(g,!1)))}catch(Z){v(()=>{tt(g,!1,Z)})()}else{g[E]=T;const Z=g[p];if(g[p]=u,g[m]===m&&T===N&&(g[E]=g[F],g[p]=g[A]),T===z&&u instanceof Error){const S=s.currentTask&&s.currentTask.data&&s.currentTask.data[e];S&&h(u,gt,{configurable:!0,enumerable:!1,writable:!0,value:S})}for(let S=0;S<Z.length;)it(g,Z[S++],Z[S++],Z[S++],Z[S++]);if(0==Z.length&&T==z){g[E]=w;let S=u;try{throw new Error("Uncaught (in promise): "+function y(g){return g&&g.toString===Object.prototype.toString?(g.constructor&&g.constructor.name||"")+": "+JSON.stringify(g):g?g.toString():Object.prototype.toString.call(g)}(u)+(u&&u.stack?"\n"+u.stack:""))}catch(I){S=I}P&&(S.throwOriginal=!0),S.rejection=u,S.promise=g,S.zone=s.current,S.task=s.currentTask,b.push(S),f.scheduleMicroTask()}}}return g}const $=D("rejectionHandledHandler");function _t(g){if(g[E]===w){try{const T=s[$];T&&"function"==typeof T&&T.call(this,{rejection:g[p],promise:g})}catch{}g[E]=z;for(let T=0;T<b.length;T++)g===b[T].promise&&b.splice(T,1)}}function it(g,T,u,v,O){_t(g);const Z=g[E],S=Z?"function"==typeof v?v:c:"function"==typeof O?O:_;T.scheduleMicroTask(Q,()=>{try{const I=g[p],j=!!u&&m===u[m];j&&(u[A]=I,u[F]=Z);const H=T.run(S,void 0,j&&S!==_&&S!==c?[]:[I]);tt(u,!0,H)}catch(I){tt(u,!1,I)}},u)}const W=function(){},k=n.AggregateError;class d{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(T){return T instanceof d?T:tt(new this(null),N,T)}static reject(T){return tt(new this(null),z,T)}static withResolvers(){const T={};return T.promise=new d((u,v)=>{T.resolve=u,T.reject=v}),T}static any(T){if(!T||"function"!=typeof T[Symbol.iterator])return Promise.reject(new k([],"All promises were rejected"));const u=[];let v=0;try{for(let S of T)v++,u.push(d.resolve(S))}catch{return Promise.reject(new k([],"All promises were rejected"))}if(0===v)return Promise.reject(new k([],"All promises were rejected"));let O=!1;const Z=[];return new d((S,I)=>{for(let j=0;j<u.length;j++)u[j].then(H=>{O||(O=!0,S(H))},H=>{Z.push(H),v--,0===v&&(O=!0,I(new k(Z,"All promises were rejected")))})})}static race(T){let u,v,O=new this((I,j)=>{u=I,v=j});function Z(I){u(I)}function S(I){v(I)}for(let I of T)i(I)||(I=this.resolve(I)),I.then(Z,S);return O}static all(T){return d.allWithCallback(T)}static allSettled(T){return(this&&this.prototype instanceof d?this:d).allWithCallback(T,{thenCallback:v=>({status:"fulfilled",value:v}),errorCallback:v=>({status:"rejected",reason:v})})}static allWithCallback(T,u){let v,O,Z=new this((H,q)=>{v=H,O=q}),S=2,I=0;const j=[];for(let H of T){i(H)||(H=this.resolve(H));const q=I;try{H.then(X=>{j[q]=u?u.thenCallback(X):X,S--,0===S&&v(j)},X=>{u?(j[q]=u.errorCallback(X),S--,0===S&&v(j)):O(X)})}catch(X){O(X)}S++,I++}return S-=2,0===S&&v(j),Z}constructor(T){const u=this;if(!(u instanceof d))throw new Error("Must be an instanceof Promise.");u[E]=U,u[p]=[];try{const v=M();T&&T(v(x(u,N)),v(x(u,z)))}catch(v){tt(u,!1,v)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return d}then(T,u){let v=this.constructor?.[Symbol.species];(!v||"function"!=typeof v)&&(v=this.constructor||d);const O=new v(W),Z=s.current;return this[E]==U?this[p].push(Z,O,T,u):it(this,Z,O,T,u),O}catch(T){return this.then(null,T)}finally(T){let u=this.constructor?.[Symbol.species];(!u||"function"!=typeof u)&&(u=d);const v=new u(W);v[m]=m;const O=s.current;return this[E]==U?this[p].push(O,v,T,T):it(this,O,v,T,T),v}}d.resolve=d.resolve,d.reject=d.reject,d.race=d.race,d.all=d.all;const o=n[R]=n.Promise;n.Promise=d;const C=D("thenPatched");function L(g){const T=g.prototype,u=l(T,"then");if(u&&(!1===u.writable||!u.configurable))return;const v=T.then;T[t]=v,g.prototype.then=function(O,Z){return new d((I,j)=>{v.call(this,I,j)}).then(O,Z)},g[C]=!0}return f.patchThen=L,o&&(L(o),ft(n,"fetch",g=>function G(g){return function(T,u){let v=g.apply(T,u);if(v instanceof d)return v;let O=v.constructor;return O[C]||L(O),v}}(g))),Promise[s.__symbol__("uncaughtPromiseErrors")]=b,d}),Zone.__load_patch("toString",n=>{const s=Function.prototype.toString,f=B("OriginalDelegate"),l=B("Promise"),h=B("Error"),y=function(){if("function"==typeof this){const R=this[f];if(R)return"function"==typeof R?s.call(R):Object.prototype.toString.call(R);if(this===Promise){const t=n[l];if(t)return s.call(t)}if(this===Error){const t=n[h];if(t)return s.call(t)}}return s.call(this)};y[f]=s,Function.prototype.toString=y;const D=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":D.call(this)}});let mt=!1;if(typeof window<"u")try{const n=Object.defineProperty({},"passive",{get:function(){mt=!0}});window.addEventListener("test",n,n),window.removeEventListener("test",n,n)}catch{mt=!1}const Qt={useG:!0},et={},Nt={},ce=new RegExp("^"+bt+"(\\w+)(true|false)$"),ae=B("propagationStopped");function Bt(n,s){const f=(s?s(n):n)+ct,l=(s?s(n):n)+ut,h=bt+f,y=bt+l;et[n]={},et[n][ct]=h,et[n][ut]=y}function Pt(n,s,f,l){const h=l&&l.add||Rt,y=l&&l.rm||Ht,D=l&&l.listeners||"eventListeners",b=l&&l.rmAll||"removeAllListeners",P=B(h),R="."+h+":",t="prependListener",e="."+t+":",r=function(p,m,A){if(p.isRemoved)return;const F=p.callback;let Q;"object"==typeof F&&F.handleEvent&&(p.callback=N=>F.handleEvent(N),p.originalDelegate=F);try{p.invoke(p,m,[A])}catch(N){Q=N}const U=p.options;return U&&"object"==typeof U&&U.once&&m[y].call(m,A.type,p.originalDelegate?p.originalDelegate:p.callback,U),Q};function a(p,m,A){if(!(m=m||n.event))return;const F=p||m.target||n,Q=F[et[m.type][A?ut:ct]];if(Q){const U=[];if(1===Q.length){const N=r(Q[0],F,m);N&&U.push(N)}else{const N=Q.slice();for(let z=0;z<N.length&&(!m||!0!==m[ae]);z++){const w=r(N[z],F,m);w&&U.push(w)}}if(1===U.length)throw U[0];for(let N=0;N<U.length;N++){const z=U[N];s.nativeScheduleMicroTask(()=>{throw z})}}}const i=function(p){return a(this,p,!1)},c=function(p){return a(this,p,!0)};function _(p,m){if(!p)return!1;let A=!0;m&&void 0!==m.useG&&(A=m.useG);const F=m&&m.vh;let Q=!0;m&&void 0!==m.chkDup&&(Q=m.chkDup);let U=!1;m&&void 0!==m.rt&&(U=m.rt);let N=p;for(;N&&!N.hasOwnProperty(h);)N=dt(N);if(!N&&p[h]&&(N=p),!N||N[P])return!1;const z=m&&m.eventNameToString,w={},x=N[P]=N[h],M=N[B(y)]=N[y],rt=N[B(D)]=N[D],gt=N[B(b)]=N[b];let tt;m&&m.prepend&&(tt=N[B(m.prepend)]=N[m.prepend]);const d=A?function(u){if(!w.isExisting)return x.call(w.target,w.eventName,w.capture?c:i,w.options)}:function(u){return x.call(w.target,w.eventName,u.invoke,w.options)},o=A?function(u){if(!u.isRemoved){const v=et[u.eventName];let O;v&&(O=v[u.capture?ut:ct]);const Z=O&&u.target[O];if(Z)for(let S=0;S<Z.length;S++)if(Z[S]===u){Z.splice(S,1),u.isRemoved=!0,0===Z.length&&(u.allRemoved=!0,u.target[O]=null);break}}if(u.allRemoved)return M.call(u.target,u.eventName,u.capture?c:i,u.options)}:function(u){return M.call(u.target,u.eventName,u.invoke,u.options)},L=m&&m.diff?m.diff:function(u,v){const O=typeof v;return"function"===O&&u.callback===v||"object"===O&&u.originalDelegate===v},G=Zone[B("UNPATCHED_EVENTS")],g=n[B("PASSIVE_EVENTS")],T=function(u,v,O,Z,S=!1,I=!1){return function(){const j=this||n;let H=arguments[0];m&&m.transferEventName&&(H=m.transferEventName(H));let q=arguments[1];if(!q)return u.apply(this,arguments);if(Lt&&"uncaughtException"===H)return u.apply(this,arguments);let X=!1;if("function"!=typeof q){if(!q.handleEvent)return u.apply(this,arguments);X=!0}if(F&&!F(u,q,j,arguments))return;const St=mt&&!!g&&-1!==g.indexOf(H),ot=function $(u,v){return!mt&&"object"==typeof u&&u?!!u.capture:mt&&v?"boolean"==typeof u?{capture:u,passive:!0}:u?"object"==typeof u&&!1!==u.passive?{...u,passive:!0}:u:{passive:!0}:u}(arguments[2],St),ee=ot&&"object"==typeof ot&&ot.signal&&"object"==typeof ot.signal?ot.signal:void 0;if(ee?.aborted)return;if(G)for(let jt=0;jt<G.length;jt++)if(H===G[jt])return St?u.call(j,H,q,ot):u.apply(this,arguments);const _e=!!ot&&("boolean"==typeof ot||ot.capture),me=!(!ot||"object"!=typeof ot)&&ot.once,we=Zone.current;let Ee=et[H];Ee||(Bt(H,z),Ee=et[H]);const ye=Ee[_e?ut:ct];let pe,Gt=j[ye],ge=!1;if(Gt){if(ge=!0,Q)for(let jt=0;jt<Gt.length;jt++)if(L(Gt[jt],q))return}else Gt=j[ye]=[];const Te=j.constructor.name,ve=Nt[Te];ve&&(pe=ve[H]),pe||(pe=Te+v+(z?z(H):H)),w.options=ot,me&&(w.options.once=!1),w.target=j,w.capture=_e,w.eventName=H,w.isExisting=ge;const ne=A?Qt:void 0;ne&&(ne.taskData=w),ee&&(w.options.signal=void 0);const Tt=we.scheduleEventTask(pe,q,ne,O,Z);return ee&&(w.options.signal=ee,u.call(ee,"abort",()=>{Tt.zone.cancelTask(Tt)},{once:!0})),w.target=null,ne&&(ne.taskData=null),me&&(ot.once=!0),!mt&&"boolean"==typeof Tt.options||(Tt.options=ot),Tt.target=j,Tt.capture=_e,Tt.eventName=H,X&&(Tt.originalDelegate=q),I?Gt.unshift(Tt):Gt.push(Tt),S?j:void 0}};return N[h]=T(x,R,d,o,U),tt&&(N[t]=T(tt,e,function(u){return tt.call(w.target,w.eventName,u.invoke,w.options)},o,U,!0)),N[y]=function(){const u=this||n;let v=arguments[0];m&&m.transferEventName&&(v=m.transferEventName(v));const O=arguments[2],Z=!!O&&("boolean"==typeof O||O.capture),S=arguments[1];if(!S)return M.apply(this,arguments);if(F&&!F(M,S,u,arguments))return;const I=et[v];let j;I&&(j=I[Z?ut:ct]);const H=j&&u[j];if(H)for(let q=0;q<H.length;q++){const X=H[q];if(L(X,S))return H.splice(q,1),X.isRemoved=!0,0===H.length&&(X.allRemoved=!0,u[j]=null,"string"==typeof v)&&(u[bt+"ON_PROPERTY"+v]=null),X.zone.cancelTask(X),U?u:void 0}return M.apply(this,arguments)},N[D]=function(){const u=this||n;let v=arguments[0];m&&m.transferEventName&&(v=m.transferEventName(v));const O=[],Z=lt(u,z?z(v):v);for(let S=0;S<Z.length;S++){const I=Z[S];O.push(I.originalDelegate?I.originalDelegate:I.callback)}return O},N[b]=function(){const u=this||n;let v=arguments[0];if(v){m&&m.transferEventName&&(v=m.transferEventName(v));const O=et[v];if(O){const I=u[O[ct]],j=u[O[ut]];if(I){const H=I.slice();for(let q=0;q<H.length;q++){const X=H[q];this[y].call(this,v,X.originalDelegate?X.originalDelegate:X.callback,X.options)}}if(j){const H=j.slice();for(let q=0;q<H.length;q++){const X=H[q];this[y].call(this,v,X.originalDelegate?X.originalDelegate:X.callback,X.options)}}}}else{const O=Object.keys(u);for(let Z=0;Z<O.length;Z++){const I=ce.exec(O[Z]);let j=I&&I[1];j&&"removeListener"!==j&&this[b].call(this,j)}this[b].call(this,"removeListener")}if(U)return this},ht(N[h],x),ht(N[y],M),gt&&ht(N[b],gt),rt&&ht(N[D],rt),!0}let E=[];for(let p=0;p<f.length;p++)E[p]=_(f[p],l);return E}function lt(n,s){if(!s){const y=[];for(let D in n){const b=ce.exec(D);let P=b&&b[1];if(P&&(!s||P===s)){const R=n[D];if(R)for(let t=0;t<R.length;t++)y.push(R[t])}}return y}let f=et[s];f||(Bt(s),f=et[s]);const l=n[f[ct]],h=n[f[ut]];return l?h?l.concat(h):l.slice():h?h.slice():[]}function nt(n,s){const f=n.Event;f&&f.prototype&&s.patchMethod(f.prototype,"stopImmediatePropagation",l=>function(h,y){h[ae]=!0,l&&l.apply(h,y)})}function pt(n,s,f,l,h){const y=Zone.__symbol__(l);if(s[y])return;const D=s[y]=s[l];s[l]=function(b,P,R){return P&&P.prototype&&h.forEach(function(t){const e=`${f}.${l}::`+t,r=P.prototype;try{if(r.hasOwnProperty(t)){const a=n.ObjectGetOwnPropertyDescriptor(r,t);a&&a.value?(a.value=n.wrapWithCurrentZone(a.value,e),n._redefineProperty(P.prototype,t,a)):r[t]&&(r[t]=n.wrapWithCurrentZone(r[t],e))}else r[t]&&(r[t]=n.wrapWithCurrentZone(r[t],e))}catch{}}),D.call(s,b,P,R)},n.attachOriginToPatched(s[l],D)}function At(n,s,f){if(!f||0===f.length)return s;const l=f.filter(y=>y.target===n);if(!l||0===l.length)return s;const h=l[0].ignoreProperties;return s.filter(y=>-1===h.indexOf(y))}function te(n,s,f,l){n&&Yt(n,At(n,s,f),l)}function yt(n){return Object.getOwnPropertyNames(n).filter(s=>s.startsWith("on")&&s.length>2).map(s=>s.substring(2))}Zone.__load_patch("util",(n,s,f)=>{const l=yt(n);f.patchOnProperties=Yt,f.patchMethod=ft,f.bindArguments=Dt,f.patchMacroTask=se;const h=s.__symbol__("BLACK_LISTED_EVENTS"),y=s.__symbol__("UNPATCHED_EVENTS");n[y]&&(n[h]=n[y]),n[h]&&(s[h]=s[y]=n[h]),f.patchEventPrototype=nt,f.patchEventTarget=Pt,f.isIEOrEdge=Jt,f.ObjectDefineProperty=Et,f.ObjectGetOwnPropertyDescriptor=st,f.ObjectCreate=Ot,f.ArraySlice=re,f.patchClass=kt,f.wrapWithCurrentZone=Mt,f.filterProperties=At,f.attachOriginToPatched=ht,f._redefineProperty=Object.defineProperty,f.patchCallbacks=pt,f.getGlobalObjects=()=>({globalSources:Nt,zoneSymbolEventNames:et,eventNames:l,isBrowser:zt,isMix:ie,isNode:Lt,TRUE_STR:ut,FALSE_STR:ct,ZONE_SYMBOL_PREFIX:bt,ADD_EVENT_LISTENER_STR:Rt,REMOVE_EVENT_LISTENER_STR:Ht})});const It=B("zoneTask");function V(n,s,f,l){let h=null,y=null;f+=l;const D={};function b(R){const t=R.data;return t.args[0]=function(){return R.invoke.apply(this,arguments)},t.handleId=h.apply(n,t.args),R}function P(R){return y.call(n,R.data.handleId)}h=ft(n,s+=l,R=>function(t,e){if("function"==typeof e[0]){const r={isPeriodic:"Interval"===l,delay:"Timeout"===l||"Interval"===l?e[1]||0:void 0,args:e},a=e[0];e[0]=function(){try{return a.apply(this,arguments)}finally{r.isPeriodic||("number"==typeof r.handleId?delete D[r.handleId]:r.handleId&&(r.handleId[It]=null))}};const i=xt(s,e[0],r,b,P);if(!i)return i;const c=i.data.handleId;return"number"==typeof c?D[c]=i:c&&(c[It]=i),c&&c.ref&&c.unref&&"function"==typeof c.ref&&"function"==typeof c.unref&&(i.ref=c.ref.bind(c),i.unref=c.unref.bind(c)),"number"==typeof c||c?c:i}return R.apply(n,e)}),y=ft(n,f,R=>function(t,e){const r=e[0];let a;"number"==typeof r?a=D[r]:(a=r&&r[It],a||(a=r)),a&&"string"==typeof a.type?"notScheduled"!==a.state&&(a.cancelFn&&a.data.isPeriodic||0===a.runCount)&&("number"==typeof r?delete D[r]:r&&(r[It]=null),a.zone.cancelTask(a)):R.apply(n,e)})}Zone.__load_patch("legacy",n=>{const s=n[Zone.__symbol__("legacyPatch")];s&&s()}),Zone.__load_patch("timers",n=>{const s="set",f="clear";V(n,s,f,"Timeout"),V(n,s,f,"Interval"),V(n,s,f,"Immediate")}),Zone.__load_patch("requestAnimationFrame",n=>{V(n,"request","cancel","AnimationFrame"),V(n,"mozRequest","mozCancel","AnimationFrame"),V(n,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(n,s)=>{const f=["alert","prompt","confirm"];for(let l=0;l<f.length;l++)ft(n,f[l],(y,D,b)=>function(P,R){return s.current.run(y,n,R,b)})}),Zone.__load_patch("EventTarget",(n,s,f)=>{(function de(n,s){s.patchEventPrototype(n,s)})(n,f),function he(n,s){if(Zone[s.symbol("patchEventTarget")])return;const{eventNames:f,zoneSymbolEventNames:l,TRUE_STR:h,FALSE_STR:y,ZONE_SYMBOL_PREFIX:D}=s.getGlobalObjects();for(let P=0;P<f.length;P++){const R=f[P],r=D+(R+y),a=D+(R+h);l[R]={},l[R][y]=r,l[R][h]=a}const b=n.EventTarget;b&&b.prototype&&s.patchEventTarget(n,s,[b&&b.prototype])}(n,f);const l=n.XMLHttpRequestEventTarget;l&&l.prototype&&f.patchEventTarget(n,f,[l.prototype])}),Zone.__load_patch("MutationObserver",(n,s,f)=>{kt("MutationObserver"),kt("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(n,s,f)=>{kt("IntersectionObserver")}),Zone.__load_patch("FileReader",(n,s,f)=>{kt("FileReader")}),Zone.__load_patch("on_property",(n,s,f)=>{!function le(n,s){if(Lt&&!ie||Zone[n.symbol("patchEvents")])return;const f=s.__Zone_ignore_on_properties;let l=[];if(zt){const h=window;l=l.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const y=function Y(){try{const n=wt.navigator.userAgent;if(-1!==n.indexOf("MSIE ")||-1!==n.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:h,ignoreProperties:["error"]}]:[];te(h,yt(h),f&&f.concat(y),dt(h))}l=l.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let h=0;h<l.length;h++){const y=s[l[h]];y&&y.prototype&&te(y.prototype,yt(y.prototype),f)}}(f,n)}),Zone.__load_patch("customElements",(n,s,f)=>{!function fe(n,s){const{isBrowser:f,isMix:l}=s.getGlobalObjects();(f||l)&&n.customElements&&"customElements"in n&&s.patchCallbacks(s,n.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(n,f)}),Zone.__load_patch("XHR",(n,s)=>{!function P(R){const t=R.XMLHttpRequest;if(!t)return;const e=t.prototype;let a=e[Ft],i=e[Ct];if(!a){const w=R.XMLHttpRequestEventTarget;if(w){const x=w.prototype;a=x[Ft],i=x[Ct]}}const c="readystatechange",_="scheduled";function E(w){const x=w.data,M=x.target;M[y]=!1,M[b]=!1;const rt=M[h];a||(a=M[Ft],i=M[Ct]),rt&&i.call(M,c,rt);const gt=M[h]=()=>{if(M.readyState===M.DONE)if(!x.aborted&&M[y]&&w.state===_){const $=M[s.__symbol__("loadfalse")];if(0!==M.status&&$&&$.length>0){const _t=w.invoke;w.invoke=function(){const it=M[s.__symbol__("loadfalse")];for(let K=0;K<it.length;K++)it[K]===w&&it.splice(K,1);!x.aborted&&w.state===_&&_t.call(w)},$.push(w)}else w.invoke()}else!x.aborted&&!1===M[y]&&(M[b]=!0)};return a.call(M,c,gt),M[f]||(M[f]=w),N.apply(M,x.args),M[y]=!0,w}function p(){}function m(w){const x=w.data;return x.aborted=!0,z.apply(x.target,x.args)}const A=ft(e,"open",()=>function(w,x){return w[l]=0==x[2],w[D]=x[1],A.apply(w,x)}),Q=B("fetchTaskAborting"),U=B("fetchTaskScheduling"),N=ft(e,"send",()=>function(w,x){if(!0===s.current[U]||w[l])return N.apply(w,x);{const M={target:w,url:w[D],isPeriodic:!1,args:x,aborted:!1},rt=xt("XMLHttpRequest.send",p,M,E,m);w&&!0===w[b]&&!M.aborted&&rt.state===_&&rt.invoke()}}),z=ft(e,"abort",()=>function(w,x){const M=function r(w){return w[f]}(w);if(M&&"string"==typeof M.type){if(null==M.cancelFn||M.data&&M.data.aborted)return;M.zone.cancelTask(M)}else if(!0===s.current[Q])return z.apply(w,x)})}(n);const f=B("xhrTask"),l=B("xhrSync"),h=B("xhrListener"),y=B("xhrScheduled"),D=B("xhrURL"),b=B("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&function oe(n,s){const f=n.constructor.name;for(let l=0;l<s.length;l++){const h=s[l],y=n[h];if(y){if(!Wt(st(n,h)))continue;n[h]=(b=>{const P=function(){return b.apply(this,Dt(arguments,f+"."+h))};return ht(P,b),P})(y)}}}(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(n,s)=>{function f(l){return function(h){lt(n,l).forEach(D=>{const b=n.PromiseRejectionEvent;if(b){const P=new b(l,{promise:h.promise,reason:h.rejection});D.invoke(P)}})}}n.PromiseRejectionEvent&&(s[B("unhandledPromiseRejectionHandler")]=f("unhandledrejection"),s[B("rejectionHandledHandler")]=f("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(n,s,f)=>{!function ue(n,s){s.patchMethod(n,"queueMicrotask",f=>function(l,h){Zone.current.scheduleMicroTask("queueMicrotask",h[0])})}(n,f)})}},st=>{st(st.s=5391)}]);
//# sourceMappingURL=polyfills.166aa95e659276e2.js.map