1!function(){function e(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,o)}function t(t){return function(){var n=this,r=arguments;return new Promise(function(o,i){var a=t.apply(n,r);function s(t){e(a,o,i,s,u,"next",t)}function u(t){e(a,o,i,s,u,"throw",t)}s(void 0)})}}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function o(e){var t="function"==typeof Map?new Map:void 0;return(o=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return i(e,arguments,v(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)})(e)}function i(e,t,n){return(i=y()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&h(o,n.prototype),o}).apply(null,arguments)}function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=y();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(self.webpackChunkeax_abc_app=self.webpackChunkeax_abc_app||[]).push([[179],{98255:function(e){function t(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=function(){return[]},t.resolve=t,t.id=98255,e.exports=t},61116:function(e,t,n){"use strict";n.d(t,{mr:function(){return x},Ov:function(){return Re},ez:function(){return je},K0:function(){return l},uU:function(){return Ie},JJ:function(){return Ne},Do:function(){return A},Nd:function(){return Pe},V_:function(){return y},Ye:function(){return R},S$:function(){return E},mk:function(){return be},sg:function(){return _e},O5:function(){return Se},b0:function(){return O},lw:function(){return h},EM:function(){return Fe},JF:function(){return qe},PM:function(){return Le},qS:function(){return ve},w_:function(){return c},bD:function(){return De},q:function(){return i},Mx:function(){return ge},HT:function(){return a}});var r=n(35366),o=null;function i(){return o}function a(e){o||(o=e)}var c=function e(){w(this,e)},l=new r.OlP("DocumentToken"),h=function(){var e=function(){function e(){w(this,e)}return b(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,r.Yz7)({factory:m,token:e,providedIn:"platform"}),e}();function m(){return(0,r.LFG)(v)}var y=new r.OlP("Location Initialized"),v=function(){var e=function(e){f(n,e);var t=d(n);function n(e){var r;return w(this,n),(r=t.call(this))._doc=e,r._init(),r}return b(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return i().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=i().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=i().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){g()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){g()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}]),n}(h);return e.\u0275fac=function(t){return new(t||e)(r.LFG(l))},e.\u0275prov=(0,r.Yz7)({factory:_,token:e,providedIn:"platform"}),e}();function g(){return!!window.history.pushState}function _(){return new v((0,r.LFG)(l))}function k(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function S(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function C(e){return e&&"?"!==e[0]?"?"+e:e}var E=function(){var e=function(){function e(){w(this,e)}return b(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,r.Yz7)({factory:T,token:e,providedIn:"root"}),e}();function T(e){var t=(0,r.LFG)(l).location;return new O((0,r.LFG)(h),t&&t.origin||"")}var x=new r.OlP("appBaseHref"),O=function(){var e=function(e){f(n,e);var t=d(n);function n(e,r){var o;if(w(this,n),(o=t.call(this))._platformLocation=e,o._removeListenerFns=[],null==r&&(r=o._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return o._baseHref=r,p(o)}return b(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.on
1HashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return k(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+C(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var o=this.prepareExternalUrl(n+C(r));this._platformLocation.pushState(e,t,o)}},{key:"replaceState",value:function(e,t,n,r){var o=this.prepareExternalUrl(n+C(r));this._platformLocation.replaceState(e,t,o)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(E);return e.\u0275fac=function(t){return new(t||e)(r.LFG(h),r.LFG(x,8))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),A=function(){var e=function(e){f(n,e);var t=d(n);function n(e,r){var o;return w(this,n),(o=t.call(this))._platformLocation=e,o._baseHref="",o._removeListenerFns=[],null!=r&&(o._baseHref=r),o}return b(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=k(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var o=this.prepareExternalUrl(n+C(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,t,o)}},{key:"replaceState",value:function(e,t,n,r){var o=this.prepareExternalUrl(n+C(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,o)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(E);return e.\u0275fac=function(t){return new(t||e)(r.LFG(h),r.LFG(x,8))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),R=function(){var e=function(){function e(t,n){var o=this;w(this,e),this._subject=new r.vpe,this._urlChangeListeners=[],this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=S(P(i)),this._platformStrategy.onPopState(function(e){o._subject.emit({url:o.path(!0),pop:!0,state:e.state,type:e.type})})}return b(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+C(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,P(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+C(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+C(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;
1this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(E),r.LFG(h))},e.normalizeQueryParams=C,e.joinWithSlash=k,e.stripTrailingSlash=S,e.\u0275prov=(0,r.Yz7)({factory:I,token:e,providedIn:"root"}),e}();function I(){return new R((0,r.LFG)(E),(0,r.LFG)(h))}function P(e){return e.replace(/\/index.html$/,"")}var M=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),N=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),j=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),D=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),L=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),F=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function B(e,t){return V((0,r.cg1)(e)[r.wAp.DateFormat],t)}function U(e,t){return V((0,r.cg1)(e)[r.wAp.TimeFormat],t)}function q(e,t){return V((0,r.cg1)(e)[r.wAp.DateTimeFormat],t)}function H(e,t){var n=(0,r.cg1)(e),o=n[r.wAp.NumberSymbols][t];if(void 0===o){if(t===F.CurrencyDecimal)return n[r.wAp.NumberSymbols][F.Decimal];if(t===F.CurrencyGroup)return n[r.wAp.NumberSymbols][F.Group]}return o}var z=r.kL8;function G(e){if(!e[r.wAp.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[r.wAp.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function V(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function $(e){var t=u(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var K=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Y={},W=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,X=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),Z=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),J=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function Q(e,t,n,r){var o=function(e){if(he(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){var t=u(e.split("-").map(function(e){return+e}),3),n=t[0],r=t[1],o=void 0===r?1:r,i=t[2];return ee(n,o-1,void 0===i?1:i)}var a,s=parseFloat(e);if(!isNaN(e-s))return new Date(s);if(a=e.match(K))return function(e){var t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var a=Number(e[4]||0)-n,s=Number(e[5]||0)-r,u=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,a,s,u,c),t}(a)}var c=new Date(e);if(!he(c))throw new Error('Unable to convert "'.concat(e,'" into a date'));return c}(e);t=te(n,t)||t;for(var i,a=[];t;){if(!(i=W.exec(t))){a.push(t);break}var s=(a=a.concat(i.slice(1))).pop();if(!s)break;t=s}var c=o.getTimezoneOffset();r&&(c=fe(r,c),o=function(e,t,n){var r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(fe(t,r)-r))}(o,r));var l="";return a.forEach(function(e){var t=function(e){if(le[e])return le[e];var t;switch(e){case"G":case"GG":case"GGG":t=ie(J.Eras,D.Abbreviated);break;case"GGGG":t=ie(J.Eras,D.Wide);break;case"GGGGG":t=ie(J.Eras,D.Narrow);break;case"y":t=oe(Z.FullYear,1,0,!1,!0);break;case"yy":t=oe(Z.FullYear,2,0,!0,!0);break;case"yyy":t=oe(Z.FullYear,3,0,!1,!0);break;case"yyyy":t=oe(Z.FullYear,4,0,!1,!0);break;case"Y":t=ce(1);break;case"YY":t=ce(2,!0);break;case"YYY":t=ce(3);break;case"YYYY":t=ce(4);break;case"M":case"L":t=oe(Z.Month,1,1);break;case"MM":case"LL":t=oe(Z.Month,2,1);break;case"MMM":t=ie(J.Months,D.Abbreviated);break;case"MMMM":t=ie(J.Months,D.Wide);break;case"MMMMM":t=ie(J.Months,D.Narrow);break;case"LLL":t=ie(J.Months,D.Abbreviated,j.Standalone);break;case"LLLL":t=ie(J.Months,D.Wide,j.Standalone);break;case"LLLLL":t=ie(J.Months,D.Narrow,j.Standalone);break;case"w":t=ue(1);break;case"ww":t=ue(2);break;case"W":t=ue(1,!0);break;case"d":t=oe(Z.Date,1);break;case"dd":t=oe(Z.Date,2);break;case"c":case"cc":t=oe(Z.Day,1);break;case"ccc":t=ie(J.Days,D.Abbreviated,j.Standalone);break;case"cccc":t=ie(J.Days,D.Wide,j.Standalone);break;case"ccccc":t=ie(J.Days,D.Narrow,j.Standalone);break;case"cccccc":t=ie(J.Days,D.Short,j.Standalone);break;case"E":case"EE":case"EEE":t=ie(J.Days,D.Abbreviated);break;case"EEEE":t=ie(J.Days,D.Wide);break;case"EEEEE":t=ie(J.Days,D.Narrow);break;case"EEEEEE":t=ie(J.Days,D.Short);break;case"a":case"aa":case"aaa":t=ie(J.DayPeriods,D.Abbreviated);break;case"aaaa":t=ie(J.DayPeriods,D.Wide);break;case"aaaaa":t=ie(J.DayPeriods,D.Narrow);break;
1case"b":case"bb":case"bbb":t=ie(J.DayPeriods,D.Abbreviated,j.Standalone,!0);break;case"bbbb":t=ie(J.DayPeriods,D.Wide,j.Standalone,!0);break;case"bbbbb":t=ie(J.DayPeriods,D.Narrow,j.Standalone,!0);break;case"B":case"BB":case"BBB":t=ie(J.DayPeriods,D.Abbreviated,j.Format,!0);break;case"BBBB":t=ie(J.DayPeriods,D.Wide,j.Format,!0);break;case"BBBBB":t=ie(J.DayPeriods,D.Narrow,j.Format,!0);break;case"h":t=oe(Z.Hours,1,-12);break;case"hh":t=oe(Z.Hours,2,-12);break;case"H":t=oe(Z.Hours,1);break;case"HH":t=oe(Z.Hours,2);break;case"m":t=oe(Z.Minutes,1);break;case"mm":t=oe(Z.Minutes,2);break;case"s":t=oe(Z.Seconds,1);break;case"ss":t=oe(Z.Seconds,2);break;case"S":t=oe(Z.FractionalSeconds,1);break;case"SS":t=oe(Z.FractionalSeconds,2);break;case"SSS":t=oe(Z.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ae(X.Short);break;case"ZZZZZ":t=ae(X.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ae(X.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ae(X.Long);break;default:return null}return le[e]=t,t}(e);l+=t?t(o,n,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function ee(e,t,n){var r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function te(e,t){var n=function(e){return(0,r.cg1)(e)[r.wAp.LocaleId]}(e);if(Y[n]=Y[n]||{},Y[n][t])return Y[n][t];var o="";switch(t){case"shortDate":o=B(e,L.Short);break;case"mediumDate":o=B(e,L.Medium);break;case"longDate":o=B(e,L.Long);break;case"fullDate":o=B(e,L.Full);break;case"shortTime":o=U(e,L.Short);break;case"mediumTime":o=U(e,L.Medium);break;case"longTime":o=U(e,L.Long);break;case"fullTime":o=U(e,L.Full);break;case"short":var i=te(e,"shortTime"),a=te(e,"shortDate");o=ne(q(e,L.Short),[i,a]);break;case"medium":var s=te(e,"mediumTime"),u=te(e,"mediumDate");o=ne(q(e,L.Medium),[s,u]);break;case"long":var c=te(e,"longTime"),l=te(e,"longDate");o=ne(q(e,L.Long),[c,l]);break;case"full":var f=te(e,"fullTime"),h=te(e,"fullDate");o=ne(q(e,L.Full),[f,h])}return o&&(Y[n][t]=o),o}function ne(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,i=n));for(var a=String(e);a.length<t;)a="0"+a;return r&&(a=a.substr(a.length-t)),i+a}function oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(i,a){var s,u=function(e,t){switch(e){case Z.FullYear:return t.getFullYear();case Z.Month:return t.getMonth();case Z.Date:return t.getDate();case Z.Hours:return t.getHours();case Z.Minutes:return t.getMinutes();case Z.Seconds:return t.getSeconds();case Z.FractionalSeconds:return t.getMilliseconds();case Z.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,i);if((n>0||u>-n)&&(u+=n),e===Z.Hours)0===u&&-12===n&&(u=12);else if(e===Z.FractionalSeconds)return s=t,re(u,3).substr(0,s);var c=H(a,F.MinusSign);return re(u,t,c,r,o)}}function ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j.Format,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(i,a){return function(e,t,n,o,i,a){switch(n){case J.Months:return function(e,t,n){var o=(0,r.cg1)(e),i=V([o[r.wAp.MonthsFormat],o[r.wAp.MonthsStandalone]],t);return V(i,n)}(t,i,o)[e.getMonth()];case J.Days:return function(e,t,n){var o=(0,r.cg1)(e),i=V([o[r.wAp.DaysFormat],o[r.wAp.DaysStandalone]],t);return V(i,n)}(t,i,o)[e.getDay()];case J.DayPeriods:var s=e.getHours(),c=e.getMinutes();if(a){var l=function(e){var t=(0,r.cg1)(e);return G(t),(t[r.wAp.ExtraData][2]||[]).map(function(e){return"string"==typeof e?$(e):[$(e[0]),$(e[1])]})}(t),f=function(e,t,n){var o=(0,r.cg1)(e);G(o);var i=V([o[r.wAp.ExtraData][0],o[r.wAp.ExtraData][1]],t)||[];return V(i,n)||[]}(t,i,o),h=l.findIndex(function(e){if(Array.isArray(e)){var t=u(e,2),n=t[0],r=t[1],o=s>=n.hours&&c>=n.minutes,i=s<r.hours||s===r.hours&&c<r.minutes;if(n.hours<r.hours){if(o&&i)return!0}else if(o||i)return!0}else if(e.hours===s&&e.minutes===c)return!0;return!1});if(-1!==h)return f[h]}return function(e,t,n){var o=(0,r.cg1)(e),i=V([o[r.wAp.DayPeriodsFormat],o[r.wAp.DayPeriodsStandalone]],t);return V(i,n)}(t,i,o)[s<12?0:1];case J.Eras:return function(e,t){return V((0,r.cg1)(e)[r.wAp.Eras],t)}(t,o)[e.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type ".concat(n))}}(i,a,e,t,n,o)}}function ae(e){return function(t,n,r){var o=-1*r,i=H(n,F.MinusSign),a=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case X.Short:return(o>=0?"+":"")+re(a,2,i)+re(Math.abs(o%60),2,i);case X.ShortGMT:return"GMT"+(o>=0?"+":"")+re(a,1,i);case X.Long:return"GMT"+(o>=0?"+":"")+re(a,2,i)+":"+re(Math.abs(o%60),2,i);case X.Extended:return 0===r?"Z":(o>=0?"+":"")+re(a,2,i)+":"+re(Math.abs(o%60),2,i);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function se(e){return ee(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function ue(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r){var o,i,a;if(t){var s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,u=n.getDate();o=1+Math.floor((u+s)/7)}else{var c=se(n),l=(i=c.getFullYear(),a=ee(i,0,1).getDay(),ee(i,0,1+(a<=4?4:11)-a)),f=c.getTime()-l.getTime();o=1+Math.round(f/6048e5)}return re(o,e,H(r,F.MinusSign))}}function ce(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r){return re(se(n).getFullYear(),e,H(r,F.MinusSign),t)}}var le={};function fe(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function he(e){return e instanceof Date&&!isNaN(e.valueOf())}var de=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function pe(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}var me=function e(){w(this,e)},ye=function(){var e=function(e){f(n,e);var t=d(n);function n(e){var r;return w(this,n),(r=t.call(this)).locale=e,r}return b(n,[{key:"getPluralCategory",value:function(e,t){switch(z(t||this.locale)(e)){case N.Zero:return"zero";case N.One:return"one";case N.Two:return"two";case N.Few:return"few";case N.Many:return"many";default:return"other"}}}]),n}(me);return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.soG))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}();function ve(e,t,n){return(0,r.dwT)(e,t,n)}function ge(e,t){t=encodeURIComponent(t);var n,r=s(e.split(";"));try{for(r.s();!(n=r.n()).done;){var o=n.value,i=o.indexOf("="),a=u(-1==i?[o,""]:[o.slice(0,i),o.slice(i+1)],2),c=a[0],l=a[1];if(c.trim()===t)return decodeURIComponent(l)}}catch(f){r.e(f)}finally{r.f()}return null}var be=function(){var e=function(){function e(t,n,r,o){w(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return b(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&((0,r.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,r.AaK)(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.ZZ4),r.Y36(r.aQg),r.Y36(r.SBq),r.Y36(r.Qsj))},e.\u0275dir=r.lG2({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),we=function(){function e(t,n,r,o){w(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}return b(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),_e=function(){var e=function(){function e(t,n,r){w(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return b(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,r,o){if(null==e.previousIndex){var i=t._viewContainer.createEmbeddedView(t._template,new we(null,t._ngForOf,-1,-1),null===o?void 0:o),a=new ke(e,i);n.push(a)}else if(null==o)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=t._viewContainer.get(r);t._viewContainer.move(s,o);var u=new ke(e,s);n.push(u)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var o=0,i=this._viewContainer.length;o<i;o++){var a=this._viewContainer.get(o);
1a.context.index=o,a.context.count=i,a.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(r.ZZ4))},e.\u0275dir=r.lG2({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e}(),ke=function e(t,n){w(this,e),this.record=t,this.view=n},Se=function(){var e=function(){function e(t,n){w(this,e),this._viewContainer=t,this._context=new Ce,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return b(e,[{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){Ee("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){Ee("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.s_b),r.Y36(r.Rgc))},e.\u0275dir=r.lG2({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e}(),Ce=function e(){w(this,e),this.$implicit=null,this.ngIf=null};function Ee(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat((0,r.AaK)(t),"'."))}function Te(e,t){return Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat((0,r.AaK)(e),"'"))}var xe=function(){function e(){w(this,e)}return b(e,[{key:"createSubscription",value:function(e,t){return e.subscribe({next:t,error:function(e){throw e}})}},{key:"dispose",value:function(e){e.unsubscribe()}},{key:"onDestroy",value:function(e){e.unsubscribe()}}]),e}(),Oe=new(function(){function e(){w(this,e)}return b(e,[{key:"createSubscription",value:function(e,t){return e.then(t,function(e){throw e})}},{key:"dispose",value:function(e){}},{key:"onDestroy",value:function(e){}}]),e}()),Ae=new xe,Re=function(){var e=function(){function e(t){w(this,e),this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return b(e,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}},{key:"_subscribe",value:function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})}},{key:"_selectStrategy",value:function(t){if((0,r.QGY)(t))return Oe;if((0,r.F4k)(t))return Ae;throw Te(e,t)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.sBO,16))},e.\u0275pipe=r.Yjl({name:"async",type:e,pure:!1}),e}(),Ie=function(){var e=function(){function e(t){w(this,e),this.locale=t}return b(e,[{key:"transform",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return Q(t,n,o||this.locale,r)}catch(i){throw Te(e,i.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.soG,16))},e.\u0275pipe=r.Yjl({name:"date",type:e,pure:!0}),e}(),Pe=function(){var e=function(){function e(t){w(this,e),this.differs=t,this.keyValues=[]}return b(e,[{key:"transform",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me;if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());var r=this.differ.diff(e);
1return r&&(this.keyValues=[],r.forEachItem(function(e){t.keyValues.push({key:e.key,value:e.currentValue})}),this.keyValues.sort(n)),this.keyValues}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.aQg,16))},e.\u0275pipe=r.Yjl({name:"keyvalue",type:e,pure:!1}),e}();function Me(e,t){var n=e.key,r=t.key;if(n===r)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(null===n)return 1;if(null===r)return-1;if("string"==typeof n&&"string"==typeof r)return n<r?-1:1;if("number"==typeof n&&"number"==typeof r)return n-r;if("boolean"==typeof n&&"boolean"==typeof r)return n<r?-1:1;var o=String(n),i=String(r);return o==i?0:o<i?-1:1}var Ne=function(){var e=function(){function e(t){w(this,e),this._locale=t}return b(e,[{key:"transform",value:function(t,n,o){if(!function(e){return!(null==e||""===e||e!=e)}(t))return null;o=o||this._locale;try{return function(e,t,n){return function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",u=!1;if(isFinite(e)){var c=function(e){var t,n,r,o,i,a=Math.abs(e)+"",s=0;for((n=a.indexOf("."))>-1&&(a=a.replace(".","")),(r=a.search(/e/i))>0?(n<0&&(n=r),n+=+a.slice(r+1),a=a.substring(0,r)):n<0&&(n=a.length),r=0;"0"===a.charAt(r);r++);if(r===(i=a.length))t=[0],n=1;else{for(i--;"0"===a.charAt(i);)i--;for(n-=r,t=[],o=0;r<=i;r++,o++)t[o]=Number(a.charAt(r))}return n>22&&(t=t.splice(0,21),s=n-1,n=1),{digits:t,exponent:s,integerLen:n}}(e);a&&(c=function(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(c));var l=t.minInt,f=t.minFrac,h=t.maxFrac;if(i){var d=i.match(de);if(null===d)throw new Error("".concat(i," is not a valid digit info"));var p=d[1],m=d[3],y=d[5];null!=p&&(l=pe(p)),null!=m&&(f=pe(m)),null!=y?h=pe(y):null!=m&&f>h&&(h=f)}!function(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction (".concat(t,") is higher than the maximum (").concat(n,")."));var r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),a=i+e.integerLen,s=r[a];if(a>0){r.splice(Math.max(e.integerLen,a));for(var u=a;u<r.length;u++)r[u]=0}else{o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,a=i+1),r[0]=0;for(var c=1;c<a;c++)r[c]=0}if(s>=5)if(a-1<0){for(var l=0;l>a;l--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[a-1]++;for(;o<Math.max(0,i);o++)r.push(0);var f=0!==i,h=t+e.integerLen,d=r.reduceRight(function(e,t,n,r){return r[n]=(t+=e)<10?t:t-10,f&&(0===r[n]&&n>=h?r.pop():f=!1),t>=10?1:0},0);d&&(r.unshift(d),e.integerLen++)}(c,f,h);var v=c.digits,g=c.integerLen,b=c.exponent,w=[];for(u=v.every(function(e){return!e});g<l;g++)v.unshift(0);for(;g<0;g++)v.unshift(0);g>0?w=v.splice(g,v.length):(w=v,v=[0]);var _=[];for(v.length>=t.lgSize&&_.unshift(v.splice(-t.lgSize,v.length).join(""));v.length>t.gSize;)_.unshift(v.splice(-t.gSize,v.length).join(""));v.length&&_.unshift(v.join("")),s=_.join(H(n,r)),w.length&&(s+=H(n,o)+w.join("")),b&&(s+=H(n,F.Exponential)+"+"+b)}else s=H(n,F.Infinity);return s=e<0&&!u?t.negPre+s+t.negSuf:t.posPre+s+t.posSuf}(e,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),o=r[0],i=r[1],a=-1!==o.indexOf(".")?o.split("."):[o.substring(0,o.lastIndexOf("0")+1),o.substring(o.lastIndexOf("0")+1)],s=a[0],u=a[1]||"";n.posPre=s.substr(0,s.indexOf("#"));for(var c=0;c<u.length;c++){var l=u.charAt(c);"0"===l?n.minFrac=n.maxFrac=c+1:"#"===l?n.maxFrac=c+1:n.posSuf+=l}var f=s.split(",");if(n.gSize=f[1]?f[1].length:0,n.lgSize=f[2]||f[1]?(f[2]||f[1]).length:0,i){var h=o.length-n.posPre.length-n.posSuf.length,d=i.indexOf("#");n.negPre=i.substr(0,d).replace(/'/g,""),n.negSuf=i.substr(d+h).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}(function(e,t){return(0,r.cg1)(e)[r.wAp.NumberFormats][t]}(t,M.Decimal),H(t,F.MinusSign)),t,F.Group,F.Decimal,n)}(function(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error("".concat(e," is not a number"));return e}(t),o,n)}catch(i){throw Te(e,i.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.soG,16))},e.\u0275pipe=r.Yjl({name:"number",type:e,pure:!0}),e}(),je=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[{provide:me,useClass:ye}]}),e}(),De="browser";function Le(e){return"server"===e}var Fe=function(){var e=function e(){w(this,e)};return e.\u0275prov=(0,r.Yz7)({token:e,providedIn:"root",factory:function(){return new Be((0,r.LFG)(l),window)}}),e}(),Be=function(){function e(t,n){w(this,e),this.document=t,this.window=n,this.offset=function(){return[0,0]}}return b(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportsScrolling()){var t=function(e,t){var n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow))for(var r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;o;){var i=o.shadowRoot;if(i){var a=i.getElementById(t)||i.querySelector('[name="'.concat(t,'"]'));if(a)return a}o=r.nextNode()}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}},{key:"attemptFocus",value:function(e){return e.focus(),this.document.activeElement===e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var e=Ue(this.window.history)||Ue(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}]),e}();function Ue(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var qe=function e(){w(this,e)}},42693:function(e,t,n){"use strict";n.d(t,{TP:function(){return D},eN:function(){return N},JF:function(){return K},WM:function(){return y},LE:function(){return k}});var r=n(61116),o=n(35366),i=n(40878),s=n(71784),c=n(436),l=n(43835),h=n(79996),p=function e(){w(this,e)},m=function e(){w(this,e)},y=function(){function e(t){var n=this;w(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var r=e.slice(0,t),o=r.toLowerCase(),i=e.slice(t+1).trim();n.maybeSetNormalizedName(r,o),n.headers.has(o)?n.headers.get(o).push(i):n.headers.set(o,[i])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var r=t[e],o=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(o,r),n.maybeSetNormalizedName(e,o))})}:this.headers=new Map}return b(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;
1e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,a(n)),this.headers.set(t,r);break;case"d":var o=e.value;if(o){var i=this.headers.get(t);if(!i)return;0===(i=i.filter(function(e){return-1===o.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,i)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),v=function(){function e(){w(this,e)}return b(e,[{key:"encodeKey",value:function(e){return g(e)}},{key:"encodeValue",value:function(e){return g(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function g(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function _(e){return"".concat(e)}var k=function(){function e(){var t,n,r,o=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(w(this,e),this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new v,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(t=i.fromString,n=this.encoder,r=new Map,t.length>0&&t.replace(/^\?/,"").split("&").forEach(function(e){var t=e.indexOf("="),o=u(-1==t?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,t)),n.decodeValue(e.slice(t+1))],2),i=o[0],a=o[1],s=r.get(i)||[];s.push(a),r.set(i,s)}),r)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(function(e){var t=i.fromObject[e];o.map.set(e,Array.isArray(t)?t:[t])})):this.map=null}return b(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var r=e[n];Array.isArray(r)?r.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:r,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(_(t.value)),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],o=r.indexOf(_(t.value));-1!==o&&r.splice(o,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),S=function(){function e(){w(this,e),this.map=new Map}return b(e,[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}}
1,{key:"keys",value:function(){return this.map.keys()}}]),e}();function C(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function E(e){return"undefined"!=typeof Blob&&e instanceof Blob}function T(e){return"undefined"!=typeof FormData&&e instanceof FormData}var x=function(){function e(t,n,r,o){var i;if(w(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new y),this.context||(this.context=new S),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s<n.length-1?"&":"")+a}}else this.params=new k,this.urlWithParams=n}return b(e,[{key:"serializeBody",value:function(){return null===this.body?null:C(this.body)||E(this.body)||T(this.body)||"string"==typeof this.body?this.body:this.body instanceof k?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||T(this.body)?null:E(this.body)?this.body.type||null:C(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof k?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}},{key:"clone",value:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.method||this.method,o=n.url||this.url,i=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,u=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,c=n.headers||this.headers,l=n.params||this.params,f=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},c)),n.setParams&&(l=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},l)),new e(r,o,a,{params:l,headers:c,context:f,reportProgress:u,responseType:i,withCredentials:s})}}]),e}(),O=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),A=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";w(this,e),this.headers=t.headers||new y,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},R=function(e){f(n,e);var t=d(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w(this,n),(e=t.call(this,r)).type=O.ResponseHeader,e}return b(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(A),I=function(e){f(n,e);var t=d(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w(this,n),(e=t.call(this,r)).type=O.Response,e.body=void 0!==r.body?r.body:null,e}return b(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(A),P=function(e){f(n,e);var t=d(n);function n(e){var r;return w(this,n),(r=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),r.error=e.error||null,r}return n}(A);function M(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var N=function(){var e=function(){function e(t){w(this,e),this.handler=t}return b(e,[{key:"request",value:function(e,t){var n,r,o,a=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof x?n=e:(r=s.headers instanceof y?s.headers:new y(s.headers),s.params&&(o=s.params instanceof k?s.params:new k({fromObject:s.params})),n=new x(e,t,void 0!==s.body?s.body:null,{headers:r,context:s.context,params:o,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials}));var u=(0,i.of)(n).pipe((0,c.b)(function(e){return a.handler.handle(e)}));if(e instanceof x||"events"===s.observe)return u;var f=u.pipe((0,l.h)(function(e){return e instanceof I}));switch(s.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return f.pipe((0,h.U)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return f.pipe((0,h.U)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return f.pipe((0,h.U)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return f.pipe((0,h.U)(function(e){return e.body}))}case"response":return f;default:throw new Error("Unreachable: unhandled observe type ".concat(s.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new k).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,M(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,M(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,M(n,t))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.LFG(p))},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac}),e}(),j=function(){function e(t,n){w(this,e),this.next=t,this.interceptor=n}return b(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),D=new o.OlP("HTTP_INTERCEPTORS"),L=function(){var e=function(){function e(){w(this,e)}return b(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac}),e}(),F=/^\)\]\}',?\n/,B=function(){var e=function(){function e(t){w(this,e),this.xhrFactory=t}return b(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new s.y(function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEac
1h(function(e,t){return r.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var o=e.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(e.responseType){var i=e.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===r.status?204:r.status,n=r.statusText||"OK",o=new y(r.getAllResponseHeaders()),i=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new R({headers:o,status:t,statusText:n,url:i})},c=function(){var t=u(),o=t.headers,i=t.status,a=t.statusText,s=t.url,c=null;204!==i&&(c=void 0===r.response?r.responseText:r.response),0===i&&(i=c?200:0);var l=i>=200&&i<300;if("json"===e.responseType&&"string"==typeof c){var f=c;c=c.replace(F,"");try{c=""!==c?JSON.parse(c):null}catch(h){c=f,l&&(l=!1,c={error:h,text:c})}}l?(n.next(new I({body:c,headers:o,status:i,statusText:a,url:s||void 0})),n.complete()):n.error(new P({error:c,headers:o,status:i,statusText:a,url:s||void 0}))},l=function(e){var t=u().url,o=new P({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t||void 0});n.error(o)},f=!1,h=function(t){f||(n.next(u()),f=!0);var o={type:O.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(o.total=t.total),"text"===e.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},d=function(e){var t={type:O.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",c),r.addEventListener("error",l),r.addEventListener("timeout",l),r.addEventListener("abort",l),e.reportProgress&&(r.addEventListener("progress",h),null!==a&&r.upload&&r.upload.addEventListener("progress",d)),r.send(a),n.next({type:O.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("abort",l),r.removeEventListener("load",c),r.removeEventListener("timeout",l),e.reportProgress&&(r.removeEventListener("progress",h),null!==a&&r.upload&&r.upload.removeEventListener("progress",d)),r.readyState!==r.DONE&&r.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.LFG(r.JF))},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac}),e}(),U=new o.OlP("XSRF_COOKIE_NAME"),q=new o.OlP("XSRF_HEADER_NAME"),H=function e(){w(this,e)},z=function(){var e=function(){function e(t,n,r){w(this,e),this.doc=t,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return b(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,r.Mx)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.LFG(r.K0),o.LFG(o.Lbi),o.LFG(U))},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac}),e}(),G=function(){var e=function(){function e(t,n){w(this,e),this.tokenService=t,this.headerName=n}return b(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.LFG(H),o.LFG(q))},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac}),e}(),V=function(){var e=function(){function e(t,n){w(this,e),this.backend=t,this.injector=n,this.chain=null}return b(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(D,[]);this.chain=t.reduceRight(function(e,t){return new j(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.LFG(m),o.LFG(o.zs3))},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac}),e}(),$=function(){var e=function(){function e(){w(this,e)}return b(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:G,useClass:L}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:U,useValue:t.cookieName}:[],t.headerName?{provide:q,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({providers:[G,{provide:D,useExisting:G,multi:!0},{provide:H,useClass:z},{provide:U,useValue:"XSRF-TOKEN"},{provide:q,useValue:"X-XSRF-TOKEN"}
1]}),e}(),K=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({providers:[N,{provide:p,useClass:V},B,{provide:m,useExisting:B}],imports:[[$.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}()},59827:function(e,t,n){var r,o,i;!function(a){if("object"==typeof e.exports){var s=a(0,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["en-GB",[["a","p"],["am","pm"],n],[["am","pm"],n,n],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],n,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE, d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",n,"{1} 'at' {0}",n],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"GBP","\xa3","British Pound",{JPY:["JP\xa5","\xa5"],USD:["US$","$"]},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}]})},12437:function(e,t,n){var r,o,i;!function(a){if("object"==typeof e.exports){var s=a(0,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["es",[["a.\xa0m.","p.\xa0m."],n,n],n,[["D","L","M","X","J","V","S"],["dom.","lun.","mar.","mi\xe9.","jue.","vie.","s\xe1b."],["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"],["DO","LU","MA","MI","JU","VI","SA"]],n,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sept.","oct.","nov.","dic."],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],n,[["a. C.","d. C."],n,["antes de Cristo","despu\xe9s de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1} {0}",n,"{1}, {0}",n],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{AUD:[n,"$"],BRL:[n,"R$"],CNY:[n,"\xa5"],EGP:[],ESP:["\u20a7"],GBP:[n,"\xa3"],HKD:[n,"$"],ILS:[n,"\u20aa"],INR:[n,"\u20b9"],JPY:[n,"\xa5"],KRW:[n,"\u20a9"],MXN:[n,"$"],NZD:[n,"$"],RON:[n,"L"],THB:["\u0e3f"],TWD:[n,"NT$"],USD:["US$","$"],XAF:[],XCD:[n,"$"],XOF:[]},"ltr",function(e){return 1===e?1:5}]})},35366:function(e,t,n){"use strict";n.d(t,{deG:function(){return fn},tb:function(){return ec},AFp:function(){return Wu},ip1:function(){return Ku},CZH:function(){return Yu},hGG:function(){return Vc},z2F:function(){return jc},ahi:function(){return cn},sBO:function(){return Gs},Sil:function(){return fc},_Vd:function(){return ps},EJc:function(){return rc},SBq:function(){return gs},qLn:function(){return Er},vpe:function(){return xu},gxx:function(){return hi},tBr:function(){return In},XFs:function(){return H},OlP:function(){return ln},zs3:function(){return Ti},ZZ4:function(){return Ls},aQg:function(){return Bs},soG:function(){return nc},YKP:function(){return Qs},v3s:function(){return Lc},h0i:function(){return Js},PXZ:function(){return Rc},R0b:function(){return pc},FiY:function(){return Pn},Lbi:function(){return Qu},g9A:function(){return Ju},Qsj:function(){return _s},FYo:function(){return ws},JOm:function(){return Or},Tiy:function(){return Ss},q3G:function(){return gr},tp0:function(){return Mn},EAV:function(){return Uc},Rgc:function(){return Ws},dDg:function(){return _c},DyG:function(){return hn},q4F:function(){return Es},GfV:function(){return Cs},s_b:function(){return tu},ifc:function(){return K},eFA:function(){return Ic},G48:function(){return Oc},Gpc:function(){return E},_c5:function(){return zc},VLi:function(){return Sc},c2e:function(){return tc},zSh:function(){return pi},wAp:function(){return ns},vHH:function(){return O},EiD:function(){return yr},mCW:function(){return Qn},qzn:function(){return Hn},JVY:function(){return Gn},pB0:function(){return Yn},eBb:function(){return $n},L6k:function(){return Vn},LAX:function(){return Kn},cg1:function(){return Qa},Tjo:function(){return Hc}
1,kL8:function(){return es},yhl:function(){return zn},dqk:function(){return J},sIi:function(){return Di},CqO:function(){return ia},QGY:function(){return ra},F4k:function(){return oa},dwT:function(){return Ja},RDi:function(){return Ne},AaK:function(){return k},z3N:function(){return qn},qOj:function(){return Oi},TTD:function(){return Ae},_Bn:function(){return fs},xp6:function(){return mo},uIk:function(){return qi},Tol:function(){return Aa},Gre:function(){return Va},ekj:function(){return Ta},Suo:function(){return qu},Xpm:function(){return ce},lG2:function(){return ye},Yz7:function(){return P},cJS:function(){return M},oAB:function(){return de},Yjl:function(){return ve},Y36:function(){return $i},_UZ:function(){return Ji},GkF:function(){return ta},BQk:function(){return ea},ynx:function(){return Qi},qZA:function(){return Zi},TgZ:function(){return Xi},EpF:function(){return na},n5z:function(){return on},Ikx:function(){return Ya},LFG:function(){return xn},$8M:function(){return sn},$Z:function(){return Ki},NdJ:function(){return aa},CRH:function(){return Hu},oxw:function(){return ca},ALo:function(){return _u},lcZ:function(){return ku},xi3:function(){return Su},Hsn:function(){return ha},F$t:function(){return fa},Q6J:function(){return Yi},s9C:function(){return da},DdM:function(){return mu},VKq:function(){return yu},WLB:function(){return vu},iGM:function(){return Bu},MAs:function(){return Vi},CHM:function(){return Je},LSH:function(){return br},kYT:function(){return pe},Akn:function(){return xa},Jzz:function(){return $a},vpz:function(){return Ka},YNc:function(){return Gi},W1O:function(){return $u},_uU:function(){return qa},Oqu:function(){return Ha},hij:function(){return za},AsE:function(){return Ga},Gf:function(){return Uu}});var c=n(55959),l=n(87570),h=n(71784),p=n(31906),y=n(1055);function g(e){for(var t in e)if(e[t]===g)return t;throw Error("Could not find renamed property on target object.")}function _(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function k(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(k).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function S(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var C=g({__forward_ref__:g});function E(e){return e.__forward_ref__=E,e.toString=function(){return k(this())},e}function T(e){return x(e)?e():e}function x(e){return"function"==typeof e&&e.hasOwnProperty(C)&&e.__forward_ref__===E}var O=function(e){f(n,e);var t=d(n);function n(e,r){var o;return w(this,n),(o=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,r))).code=e,o}return n}(o(Error));function A(e){return"string"==typeof e?e:null==e?"":String(e)}function R(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():A(e)}function I(e,t){var n=t?" in ".concat(t):"";throw new O("201","No provider for ".concat(R(e)," found").concat(n))}function P(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function M(e){return{providers:e.providers||[],imports:e.imports||[]}}function N(e){return j(e,F)||j(e,U)}function j(e,t){return e.hasOwnProperty(t)?e[t]:null}function D(e){return e&&(e.hasOwnProperty(B)||e.hasOwnProperty(q))?e[B]:null}var L,F=g({"\u0275prov":g}),B=g({"\u0275inj":g}),U=g({ngInjectableDef:g}),q=g({ngInjectorDef:g}),H=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function z(e){var t=L;return L=e,t}function G(e,t,n){var r=N(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&H.Optional?null:void 0!==t?t:void I(k(e),"Injector")}function V(e){return{toString:e}.toString()}var $=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),K=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Y="undefined"!=typeof globalThis&&globalThis,W="undefined"!=typeof window&&window,X="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Z="undefined"!=typeof global&&global,J=Y||Z||W||X,Q={},ee=[],te=g({"\u0275cmp":g}),ne=g({"\u0275dir":g}),re=g({"\u0275pipe":g}),oe=g({"\u0275mod":g}),ie=g({"\u0275loc":g}),ae=g({"\u0275fac":g}),se=g({__NG_ELEMENT_ID__:g}),ue=0;function ce(e){return V(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===$.OnPush,directiveDefs:null,pipeDefs:null,
1selectors:e.selectors||ee,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||K.Emulated,id:"c",styles:e.styles||ee,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,o=e.features,i=e.pipes;return n.id+=ue++,n.inputs=me(e.inputs,t),n.outputs=me(e.outputs),o&&o.forEach(function(e){return e(n)}),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(le)}:null,n.pipeDefs=i?function(){return("function"==typeof i?i():i).map(fe)}:null,n})}function le(e){return ge(e)||function(e){return e[ne]||null}(e)}function fe(e){return function(e){return e[re]||null}(e)}var he={};function de(e){var t={type:e.type,bootstrap:e.bootstrap||ee,declarations:e.declarations||ee,imports:e.imports||ee,exports:e.exports||ee,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&V(function(){he[e.id]=e.type}),t}function pe(e,t){return V(function(){var n=be(e,!0);n.declarations=t.declarations||ee,n.imports=t.imports||ee,n.exports=t.exports||ee})}function me(e,t){if(null==e)return Q;var n={};for(var r in e)if(e.hasOwnProperty(r)){var o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}var ye=ce;function ve(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ge(e){return e[te]||null}function be(e,t){var n=e[oe]||null;if(!n&&!0===t)throw new Error("Type ".concat(k(e)," does not have '\u0275mod' property."));return n}function we(e){return Array.isArray(e)&&"object"==typeof e[1]}function _e(e){return Array.isArray(e)&&!0===e[1]}function ke(e){return 0!=(8&e.flags)}function Se(e){return 2==(2&e.flags)}function Ce(e){return 1==(1&e.flags)}function Ee(e){return null!==e.template}function Te(e,t){return e.hasOwnProperty(ae)?e[ae]:null}var xe,Oe=function(){function e(t,n,r){w(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return b(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Ae(){return Re}function Re(e){return e.type.prototype.ngOnChanges&&(e.setInput=Pe),Ie}function Ie(){var e=Me(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===Q)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Pe(e,t,n,r){var o=Me(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Q,current:null}),i=o.current||(o.current={}),a=o.previous,s=this.declaredInputs[n],u=a[s];i[s]=new Oe(u&&u.currentValue,t,a===Q),e[r]=t}function Me(e){return e.__ngSimpleChanges__||null}function Ne(e){xe=e}function je(e){return!!e.listen}Ae.ngInherit=!0;var De={createRenderer:function(e,t){return void 0!==xe?xe:"undefined"!=typeof document?document:void 0}};function Le(e){for(;Array.isArray(e);)e=e[0];return e}function Fe(e,t){return Le(t[e])}function Be(e,t){return Le(t[e.index])}function Ue(e,t){return e.data[t]}function qe(e,t){return e[t]}function He(e,t){var n=t[e];return we(n)?n:n[0]}function ze(e){return 4==(4&e[2])}function Ge(e){return 128==(128&e[2])}function Ve(e,t){return null==t?null:e[t]}function $e(e){e[18]=0}function Ke(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var Ye={lFrame:vt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function We(){return Ye.bindingsEnabled}function Xe(){return Ye.lFrame.lView}function Ze(){return Ye.lFrame.tView}function Je(e){return Ye.lFrame.contextLView=e,e[8]}function Qe(){for(var e=et();null!==e&&64===e.type;)e=e.parent;return e}function et(){return Ye.lFrame.currentTNode}function tt(e,t){var n=Ye.lFrame;n.currentTNode=e,n.isParent=t}function nt(){return Ye.lFrame.isParent}function rt(){Ye.lFrame.isParent=!1}function ot(){return Ye.isInCheckNoChangesMode}function it(e){Ye.isInCheckNoChangesMode=e}function at(){var e=Ye.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function st(){return Ye.lFrame.bindingIndex}function ut(){return Ye.lFrame.bindingIndex++}function ct(e){var t=Ye.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function lt(e){Ye.lFrame.currentDirectiveIndex=e}function ft(){return Ye.lFrame.currentQueryIndex}function ht(e){Ye.lFrame.currentQueryIndex=e}function dt(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function pt(e,t,n){if(n&H.SkipSelf){for(var r=t,o=e;!(null!==(r=r.parent)||n&H.Host||(r=dt(o),null===r)||(o=o[15],10&r.type)););if(null===r)return!1;t=r,e=o}var i=Ye.lFrame=yt();return i.currentTNode=t,i.lView=e,!0}function mt(e){var t=yt(),n=e[1];
vendor: 5,786 bytes, line 1
1Ye.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function yt(){var e=Ye.lFrame,t=null===e?null:e.child;return null===t?vt(e):t}function vt(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function gt(){var e=Ye.lFrame;return Ye.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var bt=gt;function wt(){var e=gt();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function _t(){return Ye.lFrame.selectedIndex}function kt(e){Ye.lFrame.selectedIndex=e}function St(){var e=Ye.lFrame;return Ue(e.tView,e.selectedIndex)}function Ct(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n<r;n++){var o=e.data[n].type.prototype,i=o.ngAfterContentInit,a=o.ngAfterContentChecked,s=o.ngAfterViewInit,u=o.ngAfterViewChecked,c=o.ngOnDestroy;i&&(e.contentHooks||(e.contentHooks=[])).push(-n,i),a&&((e.contentHooks||(e.contentHooks=[])).push(n,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),u&&((e.viewHooks||(e.viewHooks=[])).push(n,u),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,u)),null!=c&&(e.destroyHooks||(e.destroyHooks=[])).push(n,c)}}function Et(e,t,n){Ot(e,t,3,n)}function Tt(e,t,n,r){(3&e[2])===n&&Ot(e,t,n,r)}function xt(e,t){var n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Ot(e,t,n,r){for(var o=null!=r?r:-1,i=t.length-1,a=0,s=void 0!==r?65535&e[18]:0;s<i;s++)if("number"==typeof t[s+1]){if(a=t[s],null!=r&&a>=r)break}else t[s]<0&&(e[18]+=65536),(a<o||-1==o)&&(At(e,n,t,s),e[18]=(4294901760&e[18])+s+2),s++}function At(e,t,n,r){var o=n[r]<0,i=n[r+1],a=e[o?-n[r]:n[r]];if(o){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}var Rt=function e(t,n,r){w(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function It(e,t,n){for(var r=je(e),o=0;o<n.length;){var i=n[o];if("number"==typeof i){if(0!==i)break;o++;var a=n[o++],s=n[o++],u=n[o++];r?e.setAttribute(t,s,u,a):t.setAttributeNS(a,s,u)}else{var c=i,l=n[++o];Mt(c)?r&&e.setProperty(t,c,l):r?e.setAttribute(t,c,l):t.setAttribute(c,l),o++}}return o}function Pt(e){return 3===e||4===e||6===e}function Mt(e){return 64===e.charCodeAt(0)}function Nt(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,r=0;r<t.length;r++){var o=t[r];"number"==typeof o?n=o:0===n||jt(e,n,o,null,-1===n||2===n?t[++r]:null)}return e}function jt(e,t,n,r,o){var i=0,a=e.length;if(-1===t)a=-1;else for(;i<e.length;){var s=e[i++];if("number"==typeof s){if(s===t){a=-1;break}if(s>t){a=i-1;break}}}for(;i<e.length;){var u=e[i];if("number"==typeof u)break;if(u===n){if(null===r)return void(null!==o&&(e[i+1]=o));if(r===e[i+1])return void(e[i+2]=o)}i++,null!==r&&i++,null!==o&&i++}-1!==a&&(e.splice(a,0,t),i=a+1),e.splice(i++,0,n),null!==r&&e.splice(i++,0,r),null!==o&&e.splice(i++,0,o)}function Dt(e){return-1!==e}function Lt(e){return 32767&e}function Ft(e,t){for(var n=e>>16,r=t;n>0;)r=r[15],n--;return r}var Bt=!0;function Ut(e){var t=Bt;return Bt=e,t}var qt=0;function Ht(e,t){var n=Gt(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,zt(r.data,e),zt(t,null),zt(r.blueprint,null));var o=Vt(e,t),i=e.injectorIndex;if(Dt(o))for(var a=Lt(o),s=Ft(o,t),u=s[1].data,c=0;c<8;c++)t[i+c]=s[a+c]|u[a+c];return t[i+8]=o,i}function zt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Gt(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Vt(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,r=null,o=t;null!==o;){var i=o[1],a=i.type;if(null===(r=2===a?i.declTNode:1===a?o[6]:null))return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function $t(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(se)&&(r=n[se]),null==r&&(r=n[se]=qt++);var o=255&r;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function Kt(e,t,n){if(n&H.Optional)return e;I(t,"NodeInjector")}function Yt(e,t,n,r){if(n&H.Optional&&void 0===r&&(r=null),0==(n&(H.Self|H.Host))){var o=e[9],i=z(void 0);try{return o?o.get(t,r,n&H.Optional):G(t,r,n&H.Optional)}finally{z(i)}}return Kt(r,t,n)}function Wt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:H.Default,o=arguments.length>4?arguments[4]:void 0;if(null!==e){var i=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(se)?e[se]:void 0;return"number"==typeof t?t>=0?255&t:Zt:t}(n);if("function"==typeof i){if(!pt(t,e,r))return r&H.Host?Kt(o,n,r):Yt(t,n,r,o);try{var a=i(r);if(null!=a||r&H.Optional)return a;I(n)}finally{bt()}}else if("number"==typeof i){var s=null,u=Gt(e,t),c=-1,l=r&H.Host?t[16][6]:null;for((-1===u||r&H.SkipSelf)&&(-1!==(c=-1===u?Vt(e,t):t[u+8])&&nn(r,!1)?(s=t[1],u=Lt(c),t=Ft(c,t)):u=-1);-1!==u;){var f=t[1];if(tn(i,u,f.data)){var h=Jt(u,t,n,s,r,l);if(h!==Xt)return h}-1!==(c=t[u+8])&&nn(r,t[1].data[u+8]===l)&&tn(i,u,t)?(s=f,u=Lt(c),t=Ft(c,t)):u=-1}}}return Yt(t,n,r,o)}var Xt={};function Zt(){return new rn(Qe(),Xe())}function Jt(e,t,n,r,o,i){var a=t[1],s=a.data[e+8],u=Qt(s,a,n,null==r?Se(s)&&Bt:r!=a&&0!=(3&s.type),o&H.Host&&i===s);return null!==u?en(t,a,u,s):Xt}function Qt(e,t,n,r,o){for(var i=e.providerIndexes,a=t.data,s=1048575&i,u=e.directiveStart,c=i>>20,l=o?s+c:e.directiveEnd,f=r?s:s+c;f<l;f++){var h=a[f];if(f<u&&n===h||f>
1=u&&h.type===n)return f}if(o){var d=a[u];if(d&&Ee(d)&&d.type===n)return u}return null}function en(e,t,n,r){var o=e[n],i=t.data;if(o instanceof Rt){var a=o;a.resolving&&function(e,t){throw new O("200","Circular dependency in DI detected for ".concat(e))}(R(i[n]));var s=Ut(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?z(a.injectImpl):null;pt(e,r,H.Default);try{o=e[n]=a.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.type.prototype,o=r.ngOnChanges,i=r.ngOnInit,a=r.ngDoCheck;if(o){var s=Re(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,i[n],t)}finally{null!==u&&z(u),Ut(s),a.resolving=!1,bt()}}return o}function tn(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function nn(e,t){return!(e&H.Self||e&H.Host&&t)}var rn=function(){function e(t,n){w(this,e),this._tNode=t,this._lView=n}return b(e,[{key:"get",value:function(e,t){return Wt(this._tNode,this._lView,e,void 0,t)}}]),e}();function on(e){return V(function(){for(var t=e.prototype.constructor,n=t[ae]||an(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;o&&o!==r;){var i=o[ae]||an(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return function(e){return new e}})}function an(e){return x(e)?function(){var t=an(T(e));return t&&t()}:Te(e)}function sn(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var r=n.length,o=0;o<r;){var i=n[o];if(Pt(i))break;if(0===i)o+=2;else if("number"==typeof i)for(o++;o<r&&"string"==typeof n[o];)o++;else{if(i===t)return n[o+1];o+=2}}return null}(Qe(),e)}function un(e,t,n){return V(function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof o)return r.apply(this,t),this;var a=i(o,t);return s.annotation=a,s;function s(e,t,n){for(var r=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(a),e}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var cn=un("Attribute",function(e){return{attributeName:e,__NG_ELEMENT_ID__:function(){return sn(e)}}}),ln=function(){function e(t,n){w(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=P({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return b(e,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),e}(),fn=new ln("AnalyzeForEntryComponents"),hn=Function;function dn(e,t){void 0===t&&(t=e);for(var n=0;n<e.length;n++){var r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),dn(r,t)):t!==e&&t.push(r)}return t}function pn(e,t){e.forEach(function(e){return Array.isArray(e)?pn(e,t):t(e)})}function mn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function yn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function vn(e,t){for(var n=[],r=0;r<e;r++)n.push(t);return n}function gn(e,t,n){var r=wn(e,t);return r>=0?e[1|r]=n:function(e,t,n,r){var o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function bn(e,t){var n=wn(e,t);if(n>=0)return e[1|n]}function wn(e,t){return function(e,t,n){for(var r=0,o=e.length>>1;o!==r;){var i=r+(o-r>>1),a=e[i<<1];if(t===a)return i<<1;a>t?o=i:r=i+1}return~(o<<1)}(e,t)}var _n,kn={},Sn=/\n/gm,Cn=g({provide:String,useValue:g});function En(e){var t=_n;return _n=e,t}function Tn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H.Default;if(void 0===_n)throw new Error("inject() must be called from an injection context");return null===_n?G(e,void 0,t):_n.get(e,t&H.Optional?null:void 0,t)}function xn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H.Default;return(L||Tn)(T(e),t)}function On(e){for(var t=[],n=0;n<e.length;n++){var r=T(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var o=void 0,i=H.Default,a=0;a<r.length;a++){var s=r[a],u=s.__NG_DI_FLAG__;"number"==typeof u?-1===u?o=s.token:i|=u:o=s}t.push(xn(o,i))}else t.push(xn(r))}return t}function An(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}var Rn,In=An(un("Inject",function(e){return{token:e}}),-1),Pn=An(un("Optional"),8),Mn=An(un("SkipSelf"),4);function Nn(e){var t;return(null===(t=function(){if(void 0===Rn&&(Rn=null,J.trustedTypes))try{Rn=J.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Rn}())||void 0===t?void 0:t.createHTML(e))||e}var jn=function(){function e(t){w(this,e),this.changingThisBreaksApplicationSecurity=t}return b(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity," (see https://g.co/ng/security#xss)")}}]),e}(),Dn=function(e){f(n,e);var t=d(n);function n(){return w(this,n),t.apply(this,arguments)}return b(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(jn),Ln=function(e){f(n,e);var t=d(n);function n(){return w(this,n),t.apply(this,arguments)}return b(n,[{key:"getTypeName",value:function(){return"Style"}}
1]),n}(jn),Fn=function(e){f(n,e);var t=d(n);function n(){return w(this,n),t.apply(this,arguments)}return b(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(jn),Bn=function(e){f(n,e);var t=d(n);function n(){return w(this,n),t.apply(this,arguments)}return b(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(jn),Un=function(e){f(n,e);var t=d(n);function n(){return w(this,n),t.apply(this,arguments)}return b(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(jn);function qn(e){return e instanceof jn?e.changingThisBreaksApplicationSecurity:e}function Hn(e,t){var n=zn(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function zn(e){return e instanceof jn&&e.getTypeName()||null}function Gn(e){return new Dn(e)}function Vn(e){return new Ln(e)}function $n(e){return new Fn(e)}function Kn(e){return new Bn(e)}function Yn(e){return new Un(e)}var Wn=function(){function e(t){w(this,e),this.inertDocumentHelper=t}return b(e,[{key:"getInertBodyElement",value:function(e){e="<body><remove></remove>"+e;try{var t=(new window.DOMParser).parseFromString(Nn(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(n){return null}}}]),e}(),Xn=function(){function e(t){if(w(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var r=this.inertDocument.createElement("body");n.appendChild(r)}}return b(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Nn(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=Nn(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var r=t.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.removeAttribute(r)}for(var o=e.firstChild;o;)o.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(o),o=o.nextSibling}}]),e}(),Zn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Jn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Qn(e){return(e=String(e)).match(Zn)||e.match(Jn)?e:"unsafe:"+e}function er(e){var t,n={},r=s(e.split(","));try{for(r.s();!(t=r.n()).done;){n[t.value]=!0}}catch(o){r.e(o)}finally{r.f()}return n}function tr(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];for(var s in a)a.hasOwnProperty(s)&&(e[s]=!0)}return e}var nr,rr=er("area,br,col,hr,img,wbr"),or=er("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ir=er("rp,rt"),ar=tr(ir,or),sr=tr(rr,tr(or,er("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),tr(ir,er("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ar),ur=er("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),cr=er("srcset"),lr=tr(ur,cr,er("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),er("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),fr=er("script,style,template"),hr=function(){function e(){w(this,e),this.sanitizedSomething=!1,this.buf=[]}return b(e,[{key:"sanitizeChildren",value:function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var t=e.nodeName.toLowerCase();if(!sr.hasOwnProperty(t))return this.sanitizedSomething=!0,!fr.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);for(var n,r=e.attributes,o=0;o<r.length;o++){var i=r.item(o),a=i.name,s=a.toLowerCase();if(lr.hasOwnProperty(s)){var u=i.value;ur[s]&&(u=Qn(u)),cr[s]&&(n=u,u=(n=String(n)).split(",").map(function(e){return Qn(e.trim())}).join(", ")),this.buf.push(" ",a,'="',mr(u),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();sr.hasOwnProperty(t)&&!rr.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(mr(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),dr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,pr=/([^\#-~ |!])/g;function mr(e){return e.replace(/&/g,"&").replace(dr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(pr,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function yr(e,t){var n=null;try{nr=nr||function(e){var t=new Xn(e);return function(){try{return!!(new window.DOMParser).parseFromString(Nn(""),"text/html")}catch(e){return!1}}()?new Wn(t):t}(e);var r=t?String(t):"";n=nr.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=nr.getInertBodyElement(r)}while(r!==i);return Nn((new hr).sanitizeChildren(vr(n)||n))}finally{if(n)for(var a=vr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}
vendor: 18,942 bytes, line 1
1function vr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var gr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function br(e){var t,n=(t=Xe())&&t[12];return n?n.sanitize(gr.URL,e)||"":Hn(e,"URL")?qn(e):Qn(A(e))}function wr(e,t){e.__ngContext__=t}function _r(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function kr(e){return e.ngDebugContext}function Sr(e){return e.ngOriginalError}function Cr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.error.apply(e,n)}var Er=function(){function e(){w(this,e),this._console=console}return b(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||Cr}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?kr(e)?kr(e):this._findContext(Sr(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=Sr(e);t&&Sr(t);)t=Sr(t);return t}}]),e}(),Tr=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(J);function xr(e){return e instanceof Function?e():e}var Or=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function Ar(e,t){return(void 0)(e,t)}function Rr(e){var t=e[3];return _e(t)?t[3]:t}function Ir(e){return Mr(e[13])}function Pr(e){return Mr(e[4])}function Mr(e){for(;null!==e&&!_e(e);)e=e[4];return e}function Nr(e,t,n,r,o){if(null!=r){var i,a=!1;_e(r)?i=r:we(r)&&(a=!0,r=r[0]);var s=Le(r);0===e&&null!==n?null==o?Hr(t,n,s):qr(t,n,s,o||null,!0):1===e&&null!==n?qr(t,n,s,o||null,!0):2===e?function(e,t,n){var r=Gr(e,t);r&&function(e,t,n,r){je(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,s,a):3===e&&t.destroyNode(s),null!=i&&function(e,t,n,r,o){var i=n[7];i!==Le(n)&&Nr(t,e,r,i,o);for(var a=10;a<n.length;a++){var s=n[a];Jr(s[1],s,e,t,r,i)}}(t,e,i,n,o)}}function jr(e,t,n){return je(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Dr(e,t){var n=e[9],r=n.indexOf(t),o=t[3];1024&t[2]&&(t[2]&=-1025,Ke(o,-1)),n.splice(r,1)}function Lr(e,t){if(!(e.length<=10)){var n,r=10+t,o=e[r];if(o){var i=o[17];null!==i&&i!==e&&Dr(i,o),t>0&&(e[r-1][4]=o[4]);var a=yn(e,10+t);Jr(o[1],n=o,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),o[3]=null,o[4]=null,o[2]&=-129}return o}}function Fr(e,t){if(!(256&t[2])){var n=t[11];je(n)&&n.destroyNode&&Jr(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Br(e[1],e);for(;t;){var n=null;if(we(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)we(t)&&Br(t[1],t),t=t[3];null===t&&(t=e),we(t)&&Br(t[1],t),n=t&&t[4]}t=n}}(t)}}function Br(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r<n.length;r+=2){var o=t[n[r]];if(!(o instanceof Rt)){var i=n[r+1];if(Array.isArray(i))for(var a=0;a<i.length;a+=2){var s=o[i[a]],u=i[a+1];try{u.call(s)}finally{}}else try{i.call(o)}finally{}}}}(e,t),function(e,t){var n=e.cleanup,r=t[7],o=-1;if(null!==n)for(var i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){var a=n[i+1],s="function"==typeof a?a(t):Le(t[a]),u=r[o=n[i+2]],c=n[i+3];"boolean"==typeof c?s.removeEventListener(n[i],u,c):c>=0?r[o=c]():r[o=-c].unsubscribe(),i+=2}else{var l=r[o=n[i+1]];n[i].call(l)}if(null!==r){for(var f=o+1;f<r.length;f++)(0,r[f])();t[7]=null}}(e,t),1===t[1].type&&je(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&_e(t[3])){n!==t[3]&&Dr(n,t);var r=t[19];null!==r&&r.detachView(e)}}}function Ur(e,t,n){return function(e,t,n){for(var r=t;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){var o=e.data[r.directiveStart].encapsulation;if(o===K.None||o===K.Emulated)return null}return Be(r,n)}(e,t.parent,n)}function qr(e,t,n,r,o){je(e)?e.insertBefore(t,n,r,o):t.insertBefore(n,r,o)}function Hr(e,t,n){je(e)?e.appendChild(t,n):t.appendChild(n)}function zr(e,t,n,r,o){null!==r?qr(e,t,n,r,o):Hr(e,t,n)}function Gr(e,t){return je(e)?e.parentNode(t):t.parentNode}function Vr(e,t,n){return $r(e,t,n)}var $r=function(e,t,n){return 40&e.type?Be(e,n):null};function Kr(e,t,n,r){var o=Ur(e,r,t),i=t[11],a=Vr(r.parent||t[6],r,t);if(null!=o)if(Array.isArray(n))for(var s=0;s<n.length;s++)zr(i,o,n[s],a,!1);else zr(i,o,n,a,!1)}function Yr(e,t){if(null!==t){var n=t.type;if(3&n)return Be(t,e);if(4&n)return Xr(-1,e[t.index]);if(8&n){var r=t.child;if(null!==r)return Yr(e,r);var o=e[t.index];return _e(o)?Xr(-1,o):Le(o)}if(32&n)return Ar(t,e)()||Le(e[t.index]);var i=Wr(e,t);return null!==i?Array.isArray(i)?i[0]:Yr(Rr(e[16]),i):Yr(e,t.next)}return null}function Wr(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Xr(e,t){var n=10+e+1;if(n<t.length){var r=t[n],o=r[1].firstChild;if(null!==o)return Yr(r,o)}return t[7]}function Zr(e,t,n,r,o,i,a){for(;null!=n;){var s=r[n.index],u=n.type;if(a&&0===t&&(s&&wr(Le(s),r),n.flags|=4),64!=(64&n.flags))if(8&u)Zr(e,t,n.child,r,o,i,!1),Nr(t,e,o,s,i);else if(32&u){for(var c=Ar(n,r),l=void 0;l=c();)Nr(t,e,o,l,i);Nr(t,e,o,s,i)}else 16&u?Qr(e,t,r,n,o,i):Nr(t,e,o,s,i);n=a?n.projectionNext:n.next}}function Jr(e,t,n,r,o,i){Zr(n,r,e.firstChild,t,o,i,!1)}function Qr(e,t,n,r,o,i){var a=n[16],s=a[6].projection[r.projection];if(Array.isArray(s))for(var u=0;u<s.length;u++)Nr(t,e,o,s[u],i);else Zr(e,t,s,a[3],o,i,!0)}function eo(e,t,n){je(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function to(e,t,n){je(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function no(e,t,n){for(var r=e.length;;){var o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){var i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function ro(e,t,n){for(var r=0;r<e.length;){var o=e[r++];if(n&&"class"===o){if(-1!==no((o=e[r]).toLowerCase(),t,0))return!0}else if(1===o){for(;r<e.length&&"string"==typeof(o=e[r++]);)if(o.toLowerCase()===t)return!0;return!1}}return!1}function oo(e){return 4===e.type&&"ng-template"!==e.value}function io(e,t,n){return t===(4!==e.type||n?e.value:"ng-template")}function ao(e,t,n){for(var r=4,o=e.attrs||[],i=function(e){for(var t=0;t<e.length;t++)if(Pt(e[t]))return t;return e.length}(o),a=!1,s=0;s<t.length;s++){var u=t[s];if("number"!=typeof u){if(!a)if(4&r){if(r=2|1&r,""!==u&&!io(e,u,n)||""===u&&1===t.length){if(so(r))return!1;a=!0}}else{var c=8&r?u:t[++s];if(8&r&&null!==e.attrs){if(!ro(e.attrs,c,n)){if(so(r))return!1;a=!0}continue}var l=uo(8&r?"class":u,o,oo(e),n);if(-1===l){if(so(r))return!1;a=!0;continue}if(""!==c){var f;f=l>i?"":o[l+1].toLowerCase();var h=8&r?f:null;if(h&&-1!==no(h,c,0)||2&r&&c!==f){if(so(r))return!1;a=!0}}}}else{if(!a&&!so(r)&&!so(u))return!1;if(a&&so(u))continue;a=!1,r=u|1&r}}return so(r)||a}function so(e){return 0==(1&e)}function uo(e,t,n,r){if(null===t)return-1;var o=0;if(r||!n){for(var i=!1;o<t.length;){var a=t[o];if(a===e)return o;if(3===a||6===a)i=!0;else{if(1===a||2===a){for(var s=t[++o];"string"==typeof s;)s=t[++o];continue}if(4===a)break;if(0===a){o+=4;continue}}o+=i?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function co(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=0;r<t.length;r++)if(ao(e,t[r],n))return!0;return!1}function lo(e,t){e:for(var n=0;n<t.length;n++){var r=t[n];if(e.length===r.length){for(var o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return!0}}return!1}function fo(e,t){return e?":not("+t.trim()+")":t}function ho(e){for(var t=e[0],n=1,r=2,o="",i=!1;n<e.length;){var a=e[n];if("string"==typeof a)if(2&r){var s=e[++n];o+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&r?o+="."+a:4&r&&(o+=" "+a);else""===o||so(a)||(t+=fo(i,o),o=""),r=a,i=i||!so(r);n++}return""!==o&&(t+=fo(i,o)),t}var po={};function mo(e){yo(Ze(),Xe(),_t()+e,ot())}function yo(e,t,n,r){if(!r)if(3==(3&t[2])){var o=e.preOrderCheckHooks;null!==o&&Et(t,o,n)}else{var i=e.preOrderHooks;null!==i&&Tt(t,i,0,n)}kt(n)}function vo(e,t){return e<<17|t<<2}function go(e){return e>>17&32767}function bo(e){return 2|e}function wo(e){return(131068&e)>>2}function _o(e,t){return-131069&e|t<<2}function ko(e){return 1|e}function So(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1];if(-1!==i){var a=e.data[i];ht(o),a.contentQueries(2,t[i],i)}}}function Co(e,t,n,r,o,i,a,s,u,c){var l=t.blueprint.slice();return l[0]=o,l[2]=140|r,$e(l),l[3]=l[15]=e,l[8]=n,l[10]=a||e&&e[10],l[11]=s||e&&e[11],l[12]=u||e&&e[12]||null,l[9]=c||e&&e[9]||null,l[6]=i,l[16]=2==t.type?e[16]:l,l}function Eo(e,t,n,r,o){var i,a,s=e.data[t];if(null===s)s=function(e,t,n,r,o){var i=et(),a=nt(),s=e.data[t]=function(e,t,n,r,o,i){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=s),null!==i&&(a?null==i.child&&null!==s.parent&&(i.child=s):null===i.next&&(i.next=s)),s}(e,t,n,r,o),Ye.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=r,s.attrs=o;var u=(i=Ye.lFrame,a=i.currentTNode,i.isParent?a:a.parent);s.injectorIndex=null===u?-1:u.injectorIndex}return tt(s,!0),s}function To(e,t,n,r){if(0===n)return-1;for(var o=t.length,i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function xo(e,t,n){mt(t);try{var r=e.viewQuery;null!==r&&ri(1,r,n);var o=e.template;null!==o&&Ro(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&So(e,t),e.staticViewQueries&&ri(2,e.viewQuery,n);var i=e.components;null!==i&&function(e,t){for(var n=0;n<t.length;n++)Jo(e,t[n])}(t,i)}catch(a){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),a}finally{t[2]&=-5,wt()}}function Oo(e,t,n,r){var o=t[2];if(256!=(256&o)){mt(t);var i=ot();try{$e(t),Ye.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Ro(e,t,n,2,r);var a=3==(3&o);if(!i)if(a){var s=e.preOrderCheckHooks;null!==s&&Et(t,s,null)}else{var u=e.preOrderHooks;null!==u&&Tt(t,u,0,null),xt(t,0)}if(function(e){for(var t=Ir(e);null!==t;t=Pr(t))if(t[2])for(var n=t[9],r=0;r<n.length;r++){var o=n[r],i=o[3];0==(1024&o[2])&&Ke(i,1),o[2]|=1024}}(t),function(e){for(var t=Ir(e);null!==t;t=Pr(t))for(var n=10;n<t.length;n++){var r=t[n],o=r[1];Ge(r)&&Oo(o,r,o.template,r[8])}}(t),null!==e.contentQueries&&So(e,t),!i)if(a){var c=e.contentCheckHooks;null!==c&&Et(t,c)}else{var l=e.contentHooks;null!==l&&Tt(t,l,1),xt(t,1)}!function(e,t){var n,r,o,i=e.hostBindingOpCodes;if(null!==i)try{for(var a=0;a<i.length;a++){var s=i[a];if(s<0)kt(~s);else{var u=s,c=i[++a],l=i[++a];n=c,r=u,o=void 0,(o=Ye.lFrame).bindingIndex=o.bindingRootIndex=n,lt(r),l(2,t[u])}}}finally{kt(-1)}}(e,t);var f=e.components;null!==f&&function(e,t){for(var n=0;n<t.length;n++)Xo(e,t[n])}(t,f);var h=e.viewQuery;if(null!==h&&ri(2,h,r),!i)if(a){var d=e.viewCheckHooks;null!==d&&Et(t,d)}else{var p=e.viewHooks;null!==p&&Tt(t,p,2),xt(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),i||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Ke(t[3],-1))}finally{wt()}}}function Ao(e,t,n,r){var o=t[10],i=!ot(),a=ze(t);try{i&&!a&&o.begin&&o.begin(),a&&xo(e,t,r),Oo(e,t,n,r)}finally{i&&!a&&o.end&&o.end()}}function Ro(e,t,n,r,o){var i=_t(),a=2&r;try{kt(-1),a&&t.length>20&&yo(e,t,20,ot()),n(r,o)}finally{kt(i)}}function Io(e,t,n){if(ke(t))for(var r=t.directiveEnd,o=t.directiveStart;o<r;o++){var i=e.data[o];i.contentQueries&&i.contentQueries(1,n[o],o)}}function Po(e,t,n){We()&&(function(e,t,n,r){var o=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||Ht(n,t),wr(r,t);for(var a=n.initialInputs,s=o;s<i;s++){var u=e.data[s],c=Ee(u);c&&$o(t,n,u);var l=en(t,e,s,n);wr(l,t),null!==a&&Ko(0,s-o,l,u,0,a),c&&(He(n.index,t)[8]=l)}}(e,t,n,Be(n,t)),128==(128&n.flags)&&function(e,t,n){var r=n.directiveStart,o=n.directiveEnd,i=n.index,a=Ye.lFrame.currentDirectiveIndex;try{kt(i);for(var s=r;s<o;s++){var u=e.data[s],c=t[s];lt(s),null===u.hostBindings&&0===u.hostVars&&null===u.hostAttrs||qo(u,c)}}finally{kt(-1),lt(a)}}(e,t,n))}function Mo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Be,r=t.localNames;if(null!==r)for(var o=t.index+1,i=0;i<r.length;i+=2){var a=r[i+1],s=-1===a?n(t,e):e[a];e[o++]=s}}function No(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=jo(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function jo(e,t,n,r,o,i,a,s,u,c){var l=20+r,f=l+o,h=function(e,t){for(var n=[],r=0;r<t;r++)n.push(r<e?null:po);return n}(l,f),d="function"==typeof c?c():c;return h[1]={type:e,blueprint:h,template:n,queries:null,viewQuery:s,declTNode:t,data:h.slice().fill(null,l),bindingStartIndex:l,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:u,consts:d,incompleteFirstPass:!1}}function Do(e,t,n,r){var o=ii(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&ai(e).push(r,o.length-1))}function Lo(e,t,n){for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,o):n[r]=[t,o]}return n}function Fo(e,t,n,r,o,i,a,s){var u,c=Be(t,n),l=t.inputs;!s&&null!=l&&(u=l[r])?(ui(e,n,u,r,o),Se(t)&&function(e,t){var n=He(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=a?a(o,t.value||"",r):o,je(i)?i.setProperty(c,r,o):Mt(r)||(c.setProperty?c.setProperty(r,o):c[r]=o))}function Bo(e,t,n,r){var o=!1;if(We()){var i=function(e,t,n){var r=e.directiveRegistry,o=null;if(r)for(var i=0;i<r.length;i++){var a=r[i];co(n,a.selectors,!1)&&(o||(o=[]),$t(Ht(n,t),e,a.type),Ee(a)?(Ho(e,n),o.unshift(a)):o.push(a))}return o}(e,t,n),a=null===r?null:{"":-1};if(null!==i){o=!0,Go(n,e.data.length,i.length);for(var s=0;s<i.length;s++){var u=i[s];u.providersResolver&&u.providersResolver(u)}for(var c=!1,l=!1,f=To(e,t,i.length,null),h=0;h<i.length;h++){var d=i[h];n.mergedAttrs=Nt(n.mergedAttrs,d.hostAttrs),Vo(e,n,t,f,d),zo(f,d,a),null!==d.contentQueries&&(n.flags|=8),null===d.hostBindings&&null===d.hostAttrs&&0===d.hostVars||(n.flags|=128);var p=d.type.prototype;!c&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),c=!0),l||!p.ngOnChanges&&!p.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),l=!0),f++}!function(e,t){for(var n=t.directiveEnd,r=e.data,o=t.attrs,i=[],a=null,s=null,u=t.directiveStart;u<n;u++){var c=r[u],l=c.inputs,f=null===o||oo(t)?null:Yo(l,o);i.push(f),a=Lo(l,u,a),s=Lo(c.outputs,u,s)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=i,t.inputs=a,t.outputs=s}(e,n)}a&&function(e,t,n){if(t)for(var r=e.localNames=[],o=0;o<t.length;o+=2){var i=n[t[o+1]];if(null==i)throw new O("301","Export of name '".concat(t[o+1],"' not found!"));r.push(t[o],i)}}(n,r,a)}return n.mergedAttrs=Nt(n.mergedAttrs,n.attrs),o}function Uo(e,t,n,r,o,i){var a=i.hostBindings;if(a){var s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);var u=~t.index;(function(e){for(var t=e.length;t>0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(r,o,a)}}function qo(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Ho(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function zo(e,t,n){if(n){if(t.exportAs)for(var r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ee(t)&&(n[""]=e)}}function Go(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Vo(e,t,n,r,o){e.data[r]=o;var i=o.factory||(o.factory=Te(o.type)),a=new Rt(i,Ee(o),null);e.blueprint[r]=a,n[r]=a,Uo(e,t,0,r,To(e,n,o.hostVars,po),o)}function $o(e,t,n){var r=Be(t,e),o=No(n),i=e[10],a=Qo(e,Co(e,o,null,n.onPush?64:16,r,t,i,i.createRenderer(r,n),null,null));e[t.index]=a}function Ko(e,t,n,r,o,i){var a=i[t];if(null!==a)for(var s=r.setInput,u=0;u<a.length;){var c=a[u++],l=a[u++],f=a[u++];null!==s?r.setInput(n,f,c,l):n[l]=f}}function Yo(e,t){for(var n=null,r=0;r<t.length;){var o=t[r];if(0!==o)if(5!==o){if("number"==typeof o)break;e.hasOwnProperty(o)&&(null===n&&(n=[]),n.push(o,e[o],t[r+1])),r+=2}else r+=2;else r+=4}return n}function Wo(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function Xo(e,t){var n=He(t,e);if(Ge(n)){var r=n[1];80&n[2]?Oo(r,n,r.template,n[8]):n[5]>0&&Zo(n)}}function Zo(e){for(var t=Ir(e);null!==t;t=Pr(t))for(var n=10;n<t.length;n++){var r=t[n];if(1024&r[2]){var o=r[1];Oo(o,r,o.template,r[8])}else r[5]>0&&Zo(r)}var i=e[1].components;if(null!==i)for(var a=0;a<i.length;a++){var s=He(i[a],e);Ge(s)&&s[5]>0&&Zo(s)}}function Jo(e,t){var n=He(t,e),r=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n),xo(r,n,n[8])}function Qo(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function ei(e){for(;e;){e[2]|=64;var t=Rr(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function ti(e,t,n){var r=t[10];r.begin&&r.begin();try{Oo(e,t,e.template,n)}catch(o){throw si(t,o),o}finally{r.end&&r.end()}}function ni(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],r=_r(n),o=r[1];Ao(o,r,o.template,n)}}(e[8])}function ri(e,t,n){ht(0),t(e,n)}var oi=Promise.resolve(null);function ii(e){return e[7]||(e[7]=[])}function ai(e){return e.cleanup||(e.cleanup=[])}function si(e,t){var n=e[9],r=n?n.get(Er,null):null;r&&r.handleError(t)}function ui(e,t,n,r,o){for(var i=0;i<n.length;){var a=n[i++],s=n[i++],u=t[a],c=e.data[a];null!==c.setInput?c.setInput(u,o,r,s):u[s]=o}}function ci(e,t,n){var r=Fe(t,e);!function(e,t,n){je(e)?e.setValue(t,n):t.textContent=n}(e[11],r,n)}function li(e,t,n){var r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(var a=0;a<t.length;a++){var s=t[a];"number"==typeof s?i=s:1==i?o=S(o,s):2==i&&(r=S(r,s+": "+t[++a]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}var fi,hi=new ln("INJECTOR",-1),di=function(){function e(){w(this,e)}return b(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kn;
1if(t===kn){var n=new Error("NullInjectorError: No provider for ".concat(k(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),pi=new ln("Set Injector scope."),mi={},yi={};function vi(){return void 0===fi&&(fi=new di),fi}function gi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new bi(e,n,t||vi(),r)}var bi=function(){function e(t,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;w(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&pn(n,function(e){return o.processProvider(e,t,n)}),pn([t],function(e){return o.processInjectorType(e,[],a)}),this.records.set(hi,ki(void 0,this));var s=this.records.get(pi);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:k(t))}return b(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:H.Default;this.assertNotDestroyed();var r,o=En(this);try{if(!(n&H.SkipSelf)){var i=this.records.get(e);if(void 0===i){var a=("function"==typeof(r=e)||"object"==typeof r&&r instanceof ln)&&N(e);i=a&&this.injectableDefInScope(a)?ki(wi(e),mi):null,this.records.set(e,i)}if(null!=i)return this.hydrate(e,i)}return(n&H.Self?vi():this.parent).get(e,t=n&H.Optional&&t===kn?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(k(e)),o)throw s;return function(e,t,n,r){var o=e.ngTempTokenPath;throw t.__source&&o.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var o=k(t);if(Array.isArray(t))o=t.map(k).join(" -> ");else if("object"==typeof t){var i=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];i.push(a+":"+("string"==typeof s?JSON.stringify(s):k(s)))}o="{".concat(i.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(o,"]: ").concat(e.replace(Sn,"\n "))}("\n"+e.message,o,"R3InjectorError",r),e.ngTokenPath=o,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{En(o)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(k(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=T(e)))return!1;var o=D(e),i=null==o&&e.ngModule||void 0,a=void 0===i?e:i,s=-1!==n.indexOf(a);if(void 0!==i&&(o=D(i)),null==o)return!1;if(null!=o.imports&&!s){var u;n.push(a);try{pn(o.imports,function(e){r.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var c=function(e){var t=u[e],n=t.ngModule,o=t.providers;pn(o,function(e){return r.processProvider(e,n,o||ee)})},l=0;l<u.length;l++)c(l)}this.injectorDefTypes.add(a);var f=Te(a)||function(){return new a};this.records.set(a,ki(f,mi));var h=o.providers;if(null!=h&&!s){var d=e;pn(h,function(e){return r.processProvider(e,d,h)})}return void 0!==i&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var r=Ci(e=T(e))?e:T(e&&e.provide),o=function(e,t,n){return Si(e)?ki(void 0,e.useValue):ki(_i(e),mi)}(e);if(Ci(e)||!0!==e.multi)this.records.get(r);else{var i=this.records.get(r);i||((i=ki(void 0,mi,!0)).factory=function(){return On(i.multi)},this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,o)}},{key:"hydrate",value:function(e,t){var n;return t.value===mi&&(t.value=yi,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}},{key:"injectableDefInScope",value:function(e){if(!e.providedIn)return!1;var t=T(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}]),e}();function wi(e){var t=N(e),n=null!==t?t.factory:Te(e);
vendor: 9,467 bytes, line 1
1if(null!==n)return n;if(e instanceof ln)throw new Error("Token ".concat(k(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=vn(t,"?");throw new Error("Can't resolve all parameters for ".concat(k(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[F]||e[U]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function _i(e,t,n){var r,o;if(Ci(e)){var s=T(e);return Te(s)||wi(s)}if(Si(e))r=function(){return T(e.useValue)};else if((o=e)&&o.useFactory)r=function(){return e.useFactory.apply(e,a(On(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))r=function(){return xn(T(e.useExisting))};else{var u=T(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Te(u)||wi(u);r=function(){return i(u,a(On(e.deps)))}}return r}function ki(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Si(e){return null!==e&&"object"==typeof e&&Cn in e}function Ci(e){return"function"==typeof e}var Ei=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,o=gi(e,t,n,r);return o._resolveInjectorDefTypes(),o}({name:n},t,e,n)},Ti=function(){var e=function(){function e(){w(this,e)}return b(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Ei(e,t,""):Ei(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=kn,e.NULL=new di,e.\u0275prov=P({token:e,providedIn:"any",factory:function(){return xn(hi)}}),e.__NG_ELEMENT_ID__=-1,e}();function xi(e,t){Ct(_r(e)[1],Qe())}function Oi(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,r=[e];t;){var o=void 0;if(Ee(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");o=t.\u0275dir}if(o){if(n){r.push(o);var i=e;i.inputs=Ai(e.inputs),i.declaredInputs=Ai(e.declaredInputs),i.outputs=Ai(e.outputs);var a=o.hostBindings;a&&Pi(e,a);var s=o.viewQuery,u=o.contentQueries;if(s&&Ri(e,s),u&&Ii(e,u),_(e.inputs,o.inputs),_(e.declaredInputs,o.declaredInputs),_(e.outputs,o.outputs),Ee(o)&&o.data.animation){var c=e.data;c.animation=(c.animation||[]).concat(o.data.animation)}}var l=o.features;if(l)for(var f=0;f<l.length;f++){var h=l[f];h&&h.ngInherit&&h(e),h===Oi&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,r=e.length-1;r>=0;r--){var o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Nt(o.hostAttrs,n=Nt(n,o.hostAttrs))}}(r)}function Ai(e){return e===Q?{}:e===ee?[]:e}function Ri(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function Ii(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,o){t(e,r,o),n(e,r,o)}:t}function Pi(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var Mi=null;function Ni(){if(!Mi){var e=J.Symbol;if(e&&e.iterator)Mi=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Mi=r)}}return Mi}var ji=function(){function e(t){w(this,e),this.wrapped=t}return b(e,null,[{key:"wrap",value:function(t){return new e(t)}},{key:"unwrap",value:function(t){return e.isWrapped(t)?t.wrapped:t}},{key:"isWrapped",value:function(t){return t instanceof e}}]),e}();function Di(e){return!!Li(e)&&(Array.isArray(e)||!(e instanceof Map)&&Ni()in e)}function Li(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Fi(e,t,n){return e[t]=n}function Bi(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Ui(e,t,n,r){var o=Bi(e,t,n);return Bi(e,t+1,r)||o}function qi(e,t,n,r){var o=Xe();return Bi(o,ut(),t)&&(Ze(),function(e,t,n,r,o,i){var a=Be(e,t);!function(e,t,n,r,o,i,a){if(null==i)je(e)?e.removeAttribute(t,o,n):t.removeAttribute(o);else{var s=null==a?A(i):a(i,r||"",o);je(e)?e.setAttribute(t,o,s,n):n?t.setAttributeNS(n,o,s):t.setAttribute(o,s)}}(t[11],a,i,e.value,n,r,o)}(St(),o,e,t,n,r)),qi}function Hi(e,t,n,r){return Bi(e,ut(),n)?t+A(n)+r:po}function zi(e,t,n,r,o,i){var a=Ui(e,st(),n,o);return ct(2),a?t+A(n)+r+A(o)+i:po}function Gi(e,t,n,r,o,i,a,s){var u=Xe(),c=Ze(),l=e+20,f=c.firstCreatePass?function(e,t,n,r,o,i,a,s,u){var c=t.consts,l=Eo(t,e,4,a||null,Ve(c,s));Bo(t,n,l,Ve(c,u)),Ct(t,l);var f=l.tViews=jo(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,l),f.queries=t.queries.embeddedTView(l)),l}(l,c,u,t,n,r,o,i,a):c.data[l];tt(f,!1);var h=u[11].createComment("");Kr(c,u,h,f),wr(h,u),Qo(u,u[l]=Wo(h,u,h,f)),Ce(f)&&Po(c,u,f),null!=a&&Mo(u,f,s)}function Vi(e){return qe(Ye.lFrame.contextLView,20+e)}function $i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H.Default,n=Xe();return null===n?xn(e,t):Wt(Qe(),n,T(e),t)}function Ki(){throw new Error("invalid")}function Yi(e,t,n){var r=Xe();return Bi(r,ut(),t)&&Fo(Ze(),St(),r,e,t,r[11],n,!1),Yi}function Wi(e,t,n,r,o){var i=o?"class":"style";ui(e,n,t.inputs[i],i,r)}function Xi(e,t,n,r){var o=Xe(),i=Ze(),a=20+e,s=o[11],u=o[a]=jr(s,t,Ye.lFrame.currentNamespace),c=i.firstCreatePass?function(e,t,n,r,o,i,a){var s=t.consts,u=Eo(t,e,2,o,Ve(s,i));return Bo(t,n,u,Ve(s,a)),null!==u.attrs&&li(u,u.attrs,!1),null!==u.mergedAttrs&&li(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,i,o,0,t,n,r):i.data[a];tt(c,!0);var l=c.mergedAttrs;null!==l&&It(s,u,l);var f=c.classes;null!==f&&to(s,u,f);var h=c.styles;null!==h&&eo(s,u,h),64!=(64&c.flags)&&Kr(i,o,u,c),0===Ye.lFrame.elementDepthCount&&wr(u,o),Ye.lFrame.elementDepthCount++,Ce(c)&&(Po(i,o,c),Io(i,c,o)),null!==r&&Mo(o,c)}function Zi(){var e=Qe();nt()?rt():tt(e=e.parent,!1);var t=e;Ye.lFrame.elementDepthCount--;var n=Ze();n.firstCreatePass&&(Ct(n,e),ke(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Wi(n,t,Xe(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Wi(n,t,Xe(),t.stylesWithoutHost,!1)}function Ji(e,t,n,r){Xi(e,t,n,r),Zi()}function Qi(e,t,n){var r=Xe(),o=Ze(),i=e+20,a=o.firstCreatePass?function(e,t,n,r,o){var i=t.consts,a=Ve(i,r),s=Eo(t,e,8,"ng-container",a);return null!==a&&li(s,a,!0),Bo(t,n,s,Ve(i,o)),null!==t.queries&&t.queries.elementStart(t,s),s}(i,o,r,t,n):o.data[i];tt(a,!0);var s=r[i]=r[11].createComment("");Kr(o,r,s,a),wr(s,r),Ce(a)&&(Po(o,r,a),Io(o,a,r)),null!=n&&Mo(r,a)}function ea(){var e=Qe(),t=Ze();nt()?rt():tt(e=e.parent,!1),t.firstCreatePass&&(Ct(t,e),ke(e)&&t.queries.elementEnd(e))}function ta(e,t,n){Qi(e,t,n),ea()}function na(){return Xe()}function ra(e){return!!e&&"function"==typeof e.then}function oa(e){return!!e&&"function"==typeof e.subscribe}var ia=oa;function aa(e,t,n,r){var o=Xe(),i=Ze(),a=Qe();return function(e,t,n,r,o,i,a,s){var u=Ce(r),c=e.firstCreatePass&&ai(e),l=ii(t),f=!0;if(3&r.type){var h=Be(r,t),d=s?s(h):h,p=l.length,m=s?function(e){return s(Le(e[r.index]))}:r.index;if(je(n)){var y=null;if(!s&&u&&(y=function(e,t,n,r){var o=e.cleanup;if(null!=o)for(var i=0;i<o.length-1;i+=2){var a=o[i];if(a===n&&o[i+1]===r){var s=t[7],u=o[i+2];return s.length>u?s[u]:null}"string"==typeof a&&(i+=2)}return null}(e,t,o,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=i,y.__ngLastListenerFn__=i,f=!1;else{i=ua(r,t,0,i,!1);var v=n.listen(d,o,i);l.push(i,v),c&&c.push(o,m,p,p+1)}}else i=ua(r,t,0,i,!0),d.addEventListener(o,i,a),l.push(i),c&&c.push(o,m,p,a)}else i=ua(r,t,0,i,!1);var g,b=r.outputs;if(f&&null!==b&&(g=b[o])){var w=g.length;if(w)for(var _=0;_<w;_+=2){var k=t[g[_]][g[_+1]].subscribe(i),S=l.length;l.push(i,k),c&&c.push(o,r.index,S,-(S+1))}}}(i,o,o[11],a,e,t,!!n,r),aa}function sa(e,t,n,r){try{return!1!==n(r)}catch(o){return si(e,o),!1}}function ua(e,t,n,r,o){return function n(i){if(i===Function)return r;var a=2&e.flags?He(e.index,t):t;0==(32&t[2])&&ei(a);for(var s=sa(t,0,r,i),u=n.__ngNextListenerFn__;u;)s=sa(t,0,u,i)&&s,u=u.__ngNextListenerFn__;return o&&!1===s&&(i.preventDefault(),i.returnValue=!1),s}}function ca(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Ye.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Ye.lFrame.contextLView))[8]}(e)}function la(e,t){for(var n=null,r=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),o=0;o<t.length;o++){var i=t[o];if("*"!==i){if(null===r?co(e,i,!0):lo(r,i))return o}else n=o}return n}function fa(e){var t=Xe()[16][6];if(!t.projection)for(var n=t.projection=vn(e?e.length:1,null),r=n.slice(),o=t.child;null!==o;){var i=e?la(o,e):0;null!==i&&(r[i]?r[i].projectionNext=o:n[i]=o,r[i]=o),o=o.next}}function ha(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=Xe(),o=Ze(),i=Eo(o,20+e,16,null,n||null);null===i.projection&&(i.projection=t),rt(),64!=(64&i.flags)&&function(e,t,n){Qr(t[11],0,t,n,Ur(e,n,t),Vr(n.parent||t[6],n,t))}(o,r,i)}
1function da(e,t,n){return pa(e,"",t,"",n),da}function pa(e,t,n,r,o){var i=Xe(),a=Hi(i,t,n,r);return a!==po&&Fo(Ze(),St(),i,e,a,i[11],o,!1),pa}function ma(e,t,n,r,o){for(var i=e[n+1],a=null===t,s=r?go(i):wo(i),u=!1;0!==s&&(!1===u||a);){var c=e[s+1];ya(e[s],t)&&(u=!0,e[s+1]=r?ko(c):bo(c)),s=r?go(c):wo(c)}u&&(e[n+1]=r?bo(i):ko(i))}function ya(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&wn(e,t)>=0}var va={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ga(e){return e.substring(va.key,va.keyEnd)}function ba(e){return e.substring(va.value,va.valueEnd)}function wa(e,t){var n=va.textEnd;return n===t?-1:(t=va.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,va.key=t,n),Sa(e,t,n))}function _a(e,t){var n=va.textEnd,r=va.key=Sa(e,t,n);return n===r?-1:(r=va.keyEnd=function(e,t,n){for(var r;t<n&&(45===(r=e.charCodeAt(t))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=Ca(e,r,n),r=va.value=Sa(e,r,n),r=va.valueEnd=function(e,t,n){for(var r=-1,o=-1,i=-1,a=t,s=a;a<n;){var u=e.charCodeAt(a++);if(59===u)return s;34===u||39===u?s=a=Ea(e,u,a,n):t===a-4&&85===i&&82===o&&76===r&&40===u?s=a=Ea(e,41,a,n):u>32&&(s=a),i=o,o=r,r=-33&u}return s}(e,r,n),Ca(e,r,n))}function ka(e){va.key=0,va.keyEnd=0,va.value=0,va.valueEnd=0,va.textEnd=e.length}function Sa(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Ca(e,t,n,r){return(t=Sa(e,t,n))<n&&t++,t}function Ea(e,t,n,r){for(var o=-1,i=n;i<r;){var a=e.charCodeAt(i++);if(a==t&&92!==o)return i;o=92==a&&92===o?0:a}throw new Error}function Ta(e,t){return function(e,t,n,r){var o=Xe(),i=Ze(),a=ct(2);i.firstUpdatePass&&Ma(i,e,a,!0),t!==po&&Bi(o,a,t)&&La(i,i.data[_t()],o,o[11],e,o[a+1]=function(e,t){return null==e||"object"==typeof e&&(e=k(qn(e))),e}(t),!0,a)}(e,t),Ta}function xa(e){Ia(Da,Oa,e,!1)}function Oa(e,t){for(var n=function(e){return ka(e),_a(e,Sa(e,0,va.textEnd))}(t);n>=0;n=_a(t,n))Da(e,ga(t),ba(t))}function Aa(e){Ia(gn,Ra,e,!0)}function Ra(e,t){for(var n=function(e){return ka(e),wa(e,Sa(e,0,va.textEnd))}(t);n>=0;n=wa(t,n))gn(e,ga(t),!0)}function Ia(e,t,n,r){var o=Ze(),i=ct(2);o.firstUpdatePass&&Ma(o,null,i,r);var a=Xe();if(n!==po&&Bi(a,i,n)){var s=o.data[_t()];if(Ua(s,r)&&!Pa(o,i)){var u=r?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(n=S(u,n||"")),Wi(o,s,a,n,r)}else!function(e,t,n,r,o,i,a,s){o===po&&(o=ee);for(var u=0,c=0,l=0<o.length?o[0]:null,f=0<i.length?i[0]:null;null!==l||null!==f;){var h=u<o.length?o[u+1]:void 0,d=c<i.length?i[c+1]:void 0,p=void 0,m=null;l===f?(u+=2,c+=2,h!==d&&(m=f,p=d)):null===f||null!==l&&l<f?(u+=2,m=l):(c+=2,m=f,p=d),null!==m&&La(e,t,n,r,m,p,a,s),l=u<o.length?o[u]:null,f=c<i.length?i[c]:null}}(o,s,a,a[11],a[i+1],a[i+1]=function(e,t,n){if(null==n||""===n)return ee;var r=[],o=qn(n);if(Array.isArray(o))for(var i=0;i<o.length;i++)e(r,o[i],!0);else if("object"==typeof o)for(var a in o)o.hasOwnProperty(a)&&e(r,a,o[a]);else"string"==typeof o&&t(r,o);return r}(e,t,n),r,i)}}function Pa(e,t){return t>=e.expandoStartIndex}function Ma(e,t,n,r){var o=e.data;if(null===o[n+1]){var i=o[_t()],a=Pa(e,n);Ua(i,r)&&null===t&&!a&&(t=!1),t=function(e,t,n,r){var o=function(e){var t=Ye.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=ja(n=Na(null,e,t,n,r),t.attrs,r),i=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==o)if(n=Na(o,e,t,n,r),null===i){var s=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==wo(r))return e[go(r)]}(e,t,r);void 0!==s&&Array.isArray(s)&&function(e,t,n,r){e[go(n?t.classBindings:t.styleBindings)]=r}(e,t,r,s=ja(s=Na(null,e,t,s[1],r),t.attrs,r))}else i=function(e,t,n){for(var r,o=t.directiveEnd,i=1+t.directiveStylingLast;i<o;i++)r=ja(r,e[i].hostAttrs,n);return ja(r,t.attrs,n)}(e,t,r)}return void 0!==i&&(r?t.residualClasses=i:t.residualStyles=i),n}(o,i,t,r),function(e,t,n,r,o,i){var a=i?t.classBindings:t.styleBindings,s=go(a),u=wo(a);e[r]=n;var c,l=!1;if(Array.isArray(n)){var f=n;(null===(c=f[1])||wn(f,c)>0)&&(l=!0)}else c=n;if(o)if(0!==u){var h=go(e[s+1]);e[r+1]=vo(h,s),0!==h&&(e[h+1]=_o(e[h+1],r)),e[s+1]=131071&e[s+1]|r<<17}else e[r+1]=vo(s,0),0!==s&&(e[s+1]=_o(e[s+1],r)),s=r;else e[r+1]=vo(u,0),0===s?s=r:e[u+1]=_o(e[u+1],r),u=r;l&&(e[r+1]=bo(e[r+1])),ma(e,c,r,!0),ma(e,c,r,!1),function(e,t,n,r,o){var i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&wn(i,t)>=0&&(n[r+1]=ko(n[r+1]))}(t,c,e,r,i),a=vo(s,u),i?t.classBindings=a:t.styleBindings=a}(o,i,t,n,a,r)}}function Na(e,t,n,r,o){var i=null,a=n.directiveEnd,s=n.directiveStylingLast;
vendor: 4,826 bytes, line 1
1for(-1===s?s=n.directiveStart:s++;s<a&&(r=ja(r,(i=t[s]).hostAttrs,o),i!==e);)s++;return null!==e&&(n.directiveStylingLast=s),r}function ja(e,t,n){var r=n?1:2,o=-1;if(null!==t)for(var i=0;i<t.length;i++){var a=t[i];"number"==typeof a?o=a:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),gn(e,a,!!n||t[++i]))}return void 0===e?null:e}function Da(e,t,n){gn(e,t,qn(n))}function La(e,t,n,r,o,i,a,s){if(3&t.type){var u=e.data,c=u[s+1];Ba(1==(1&c)?Fa(u,t,n,o,wo(c),a):void 0)||(Ba(i)||2==(2&c)&&(i=Fa(u,null,n,o,s,a)),function(e,t,n,r,o){var i=je(e);if(t)o?i?e.addClass(n,r):n.classList.add(r):i?e.removeClass(n,r):n.classList.remove(r);else{var a=-1===r.indexOf("-")?void 0:Or.DashCase;if(null==o)i?e.removeStyle(n,r,a):n.style.removeProperty(r);else{var s="string"==typeof o&&o.endsWith("!important");s&&(o=o.slice(0,-10),a|=Or.Important),i?e.setStyle(n,r,o,a):n.style.setProperty(r,o,s?"important":"")}}}(r,a,Fe(_t(),n),o,i))}}function Fa(e,t,n,r,o,i){for(var a,s=null===t;o>0;){var u=e[o],c=Array.isArray(u),l=c?u[1]:u,f=null===l,h=n[o+1];h===po&&(h=f?ee:void 0);var d=f?bn(h,r):l===r?h:void 0;if(c&&!Ba(d)&&(d=bn(u,r)),Ba(d)&&(a=d,s))return a;var p=e[o+1];o=s?go(p):wo(p)}if(null!==t){var m=i?t.residualClasses:t.residualStyles;null!=m&&(a=bn(m,r))}return a}function Ba(e){return void 0!==e}function Ua(e,t){return 0!=(e.flags&(t?16:32))}function qa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Xe(),r=Ze(),o=e+20,i=r.firstCreatePass?Eo(r,o,1,t,null):r.data[o],a=n[o]=function(e,t){return je(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Kr(r,n,a,i),tt(i,!1)}function Ha(e){return za("",e,""),Ha}function za(e,t,n){var r=Xe(),o=Hi(r,e,t,n);return o!==po&&ci(r,_t(),o),za}function Ga(e,t,n,r,o){var i=Xe(),a=zi(i,e,t,n,r,o);return a!==po&&ci(i,_t(),a),Ga}function Va(e,t,n){Ia(gn,Ra,Hi(Xe(),e,t,n),!0)}function $a(e,t,n){xa(Hi(Xe(),e,t,n))}function Ka(e,t,n,r,o){xa(zi(Xe(),e,t,n,r,o))}function Ya(e,t,n){var r=Xe();return Bi(r,ut(),t)&&Fo(Ze(),St(),r,e,t,r[11],n,!0),Ya}var Wa=void 0,Xa=["en",[["a","p"],["AM","PM"],Wa],[["AM","PM"],Wa,Wa],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Wa,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Wa,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Wa,"{1} 'at' {0}",Wa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Za={};function Ja(e,t,n){"string"!=typeof t&&(n=t,t=e[ns.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Za[t]=e,n&&(Za[t][ns.ExtraData]=n)}function Qa(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=ts(t);if(n)return n;var r=t.split("-")[0];if(n=ts(r))return n;if("en"===r)return Xa;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function es(e){return Qa(e)[ns.PluralCase]}function ts(e){return e in Za||(Za[e]=J.ng&&J.ng.common&&J.ng.common.locales&&J.ng.common.locales[e]),Za[e]}var ns=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function rs(e){var t;null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined"," [Expected=> null != ").concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function os(e,t,n,r,o){if(e=T(e),Array.isArray(e))for(var i=0;i<e.length;i++)os(e[i],t,n,r,o);else{var a=Ze(),s=Xe(),u=Ci(e)?e:T(e.provide),c=_i(e),l=Qe(),f=1048575&l.providerIndexes,h=l.directiveStart,d=l.providerIndexes>>20;if(Ci(e)||!e.multi){var p=new Rt(c,o,$i),m=ss(u,t,o?f:f+d,h);
vendor: 17,760 bytes, line 1
1-1===m?($t(Ht(l,s),a,u),is(a,e,t.length),t.push(u),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(p),s.push(p)):(n[m]=p,s[m]=p)}else{var y=ss(u,t,f+d,h),v=ss(u,t,f,f+d),g=y>=0&&n[y],b=v>=0&&n[v];if(o&&!b||!o&&!g){$t(Ht(l,s),a,u);var w=function(e,t,n,r,o){var i=new Rt(e,n,$i);return i.multi=[],i.index=t,i.componentProviders=0,as(i,o,r&&!n),i}(o?cs:us,n.length,o,r,c);!o&&b&&(n[v].providerFactory=w),is(a,e,t.length,0),t.push(u),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(w),s.push(w)}else is(a,e,y>-1?y:v,as(n[o?v:y],c,!o&&r));!o&&r&&b&&n[v].componentProviders++}}}function is(e,t,n,r){var o=Ci(t);if(o||t.useClass){var i=(t.useClass||t).prototype.ngOnDestroy;if(i){var a=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[r,i]):a[s+1].push(r,i)}else a.push(n,i)}}}function as(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ss(e,t,n,r){for(var o=n;o<r;o++)if(t[o]===e)return o;return-1}function us(e,t,n,r){return ls(this.multi,[])}function cs(e,t,n,r){var o,i=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=en(n,n[1],this.providerFactory.index,r);ls(i,o=s.slice(0,a));for(var u=a;u<s.length;u++)o.push(s[u])}else ls(i,o=[]);return o}function ls(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function fs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(e,t,n){var r=Ze();if(r.firstCreatePass){var o=Ee(e);os(n,r.data,r.blueprint,o,!0),os(t,r.data,r.blueprint,o,!1)}}(n,r?r(e):e,t)}}}var hs=function e(){w(this,e)},ds=function(){function e(){w(this,e)}return b(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(k(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),ps=function(){var e=function e(){w(this,e)};return e.NULL=new ds,e}();function ms(){}function ys(e,t){return new gs(Be(e,t))}var vs=function(){return ys(Qe(),Xe())},gs=function(){var e=function e(t){w(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=vs,e}();function bs(e){return e instanceof gs?e.nativeElement:e}var ws=function e(){w(this,e)},_s=function(){var e=function e(){w(this,e)};return e.__NG_ELEMENT_ID__=function(){return ks()},e}(),ks=function(){var e=Xe(),t=He(Qe().index,e);return function(e){return e[11]}(we(t)?t:e)},Ss=function(){var e=function e(){w(this,e)};return e.\u0275prov=P({token:e,providedIn:"root",factory:function(){return null}}),e}(),Cs=function e(t){w(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Es=new Cs("12.0.0"),Ts=function(){function e(){w(this,e)}return b(e,[{key:"supports",value:function(e){return Di(e)}},{key:"create",value:function(e){return new Os(e)}}]),e}(),xs=function(e,t){return t},Os=function(){function e(t){w(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||xs}return b(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,o=null;t||n;){var i=!n||t&&t.currentIndex<Ps(n,r,o)?t:n,a=Ps(i,r,o),s=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)r++;else{o||(o=[]);var u=a-r,c=s-r;if(u!=c){for(var l=0;l<u;l++){var f=l<o.length?o[l]:o[l]=0,h=f+l;c<=h&&h<u&&(o[l]=f+1)}o[i.previousIndex]=c-u}}a!==s&&e(i,a,s)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!Di(e))throw new Error("Error trying to diff '".concat(k(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,r,o,i=this._itHead,a=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)r=e[s],o=this._trackByFn(s,r),null!==i&&Object.is(i.trackById,o)?(a&&(i=this._verifyReinsertion(i,r,o,s)),Object.is(i.item,r)||this._addIdentityChange(i,r)):(i=this._mismatch(i,r,o,s),a=!0),i=i._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r,o=e[Ni()]();!(r=o.next()).done;)t(r.value)}(e,function(e){o=t._trackByFn(n,e),null!==i&&Object.is(i.trackById,o)?(a&&(i=t._verifyReinsertion(i,e,o,n)),Object.is(i.item,e)||t._addIdentityChange(i,e)):(i=t._mismatch(i,e,o,n),a=!0),i=i._next,n++}),this.length=n;return this._truncate(i),this.collection=e,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,r){var o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):e=this._addAfter(new As(t,n),o,r),e}},{key:"_verifyReinsertion",value:function(e,t,n,r){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Is),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Is),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}]),e}(),As=function e(t,n){w(this,e),this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},Rs=function(){function e(){w(this,e),this._head=null,this._tail=null}return b(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}},{key:"remove",value:function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}]),e}(),Is=function(){function e(){w(this,e),this.map=new Map}return b(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new Rs,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),e}();function Ps(e,t,n){var r=e.previousIndex;if(null===r)return r;var o=0;return n&&r<n.length&&(o=n[r]),r+t+o}var Ms=function(){function e(){w(this,e)}return b(e,[{key:"supports",value:function(e){return e instanceof Map||Li(e)}},{key:"create",value:function(){return new Ns}}]),e}(),Ns=function(){function e(){w(this,e),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return b(e,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||Li(e)))throw new Error("Error trying to diff '".concat(k(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,r){if(n&&n.key===r)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var o=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}var i=new js(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})}}]),e}(),js=function e(t){w(this,e),this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null};function Ds(){return new Ls([new Ts])}var Ls=function(){var e=function(){function e(t){w(this,e),this.factories=t}return b(e,[{key:"find",value:function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||Ds())},deps:[[e,new Mn,new Pn]]}}}]),e}();return e.\u0275prov=P({token:e,providedIn:"root",factory:Ds}),e}();function Fs(){return new Bs([new Ms])}var Bs=function(){var e=function(){function e(t){w(this,e),this.factories=t}return b(e,[{key:"find",value:function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||Fs())},deps:[[e,new Mn,new Pn]]}}}]),e}();return e.\u0275prov=P({token:e,providedIn:"root",factory:Fs}),e}();function Us(e,t,n,r){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var i=t[n.index];if(null!==i&&r.push(Le(i)),_e(i))for(var s=10;s<i.length;s++){var u=i[s],c=u[1].firstChild;null!==c&&Us(u[1],u,c,r)}var l=n.type;if(8&l)Us(e,t,n.child,r);else if(32&l)for(var f=Ar(n,t),h=void 0;h=f();)r.push(h);else if(16&l){var d=Wr(t,n);if(Array.isArray(d))r.push.apply(r,a(d));else{var p=Rr(t[16]);Us(p[1],p,d,r,!0)}}n=o?n.projectionNext:n.next}return r}var qs=function(){function e(t,n){w(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}return b(e,[{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return Us(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]},set:function(e){this._lView[8]=e}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var e=this._lView[3];if(_e(e)){var t=e[8],n=t?t.indexOf(this):-1;n>-1&&(Lr(e,n),yn(t,n))}this._attachedToViewContainer=!1}Fr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Do(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){ei(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){ti(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){it(!0);try{ti(e,t,n)}finally{it(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Jr(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a Vie
1wContainer!");this._appRef=e}}]),e}(),Hs=function(e){f(n,e);var t=d(n);function n(e){var r;return w(this,n),(r=t.call(this,e))._view=e,r}return b(n,[{key:"detectChanges",value:function(){ni(this._view)}},{key:"checkNoChanges",value:function(){!function(e){it(!0);try{ni(e)}finally{it(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(qs),zs=function(e){return function(e,t,n){if(Se(e)&&!n){var r=He(e.index,t);return new qs(r,r)}return 47&e.type?new qs(t[16],t):null}(Qe(),Xe(),16==(16&e))},Gs=function(){var e=function e(){w(this,e)};return e.__NG_ELEMENT_ID__=zs,e}(),Vs=[new Ms],$s=new Ls([new Ts]),Ks=new Bs(Vs),Ys=function(){return Zs(Qe(),Xe())},Ws=function(){var e=function e(){w(this,e)};return e.__NG_ELEMENT_ID__=Ys,e}(),Xs=function(e){f(n,e);var t=d(n);function n(e,r,o){var i;return w(this,n),(i=t.call(this))._declarationLView=e,i._declarationTContainer=r,i.elementRef=o,i}return b(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Co(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),xo(t,n,e),new qs(n)}}]),n}(Ws);function Zs(e,t){return 4&e.type?new Xs(t,e,ys(e,t)):null}var Js=function e(){w(this,e)},Qs=function e(){w(this,e)},eu=function(){return iu(Qe(),Xe())},tu=function(){var e=function e(){w(this,e)};return e.__NG_ELEMENT_ID__=eu,e}(),nu=function(e){f(n,e);var t=d(n);function n(e,r,o){var i;return w(this,n),(i=t.call(this))._lContainer=e,i._hostTNode=r,i._hostLView=o,i}return b(n,[{key:"element",get:function(){return ys(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new rn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=Vt(this._hostTNode,this._hostLView);if(Dt(e)){var t=Ft(e,this._hostLView),n=Lt(e);return new rn(t[1].data[n+8],t)}return new rn(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=ru(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,o){var i=n||this.parentInjector;if(!o&&null==e.ngModule&&i){var a=i.get(Js,null);a&&(o=a)}var s=e.create(i,r,void 0,o);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var r=e._lView,o=r[1];if(_e(r[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var a=r[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var u=this._adjustIndex(t),c=this._lContainer;!function(e,t,n,r){var o=10+r,i=n.length;r>0&&(n[o-1][4]=t),r<i-10?(t[4]=n[o],mn(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;var a=t[17];null!==a&&n!==a&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(a,t);var s=t[19];null!==s&&s.insertView(e),t[2]|=128}(o,r,c,u);var l=Xr(u,c),f=r[11],h=Gr(f,c[7]);return null!==h&&function(e,t,n,r,o,i){r[0]=o,r[6]=t,Jr(e,r,n,1,o,i)}(o,c[6],f,r,h,l),e.attachToViewContainerRef(),mn(ou(c),u,e),e}},{key:"move",value:function(e,t){return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=ru(this._lContainer);return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){var t=this._adjustIndex(e,-1),n=Lr(this._lContainer,t);n&&(yn(ou(this._lContainer),t),Fr(n[1],n))}},{key:"detach",value:function(e){var t=this._adjustIndex(e,-1),n=Lr(this._lContainer,t);return n&&null!=yn(ou(this._lContainer),t)?new qs(n):null}},{key:"_adjustIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(tu);function ru(e){return e[8]}function ou(e){return e[8]||(e[8]=[])}function iu(e,t){var n,r=t[e.index];if(_e(r))n=r;else{var o;if(8&e.type)o=Le(r);else{var i=t[11];o=i.createComment("");var a=Be(e,t);qr(i,Gr(i,a),o,function(e,t){return je(e)?e.nextSibling(t):t.nextSibling}(i,a),!1)}
vendor: 11,974 bytes, line 1
1t[e.index]=n=Wo(r,t,o,e),Qo(t,n)}return new nu(n,e,t)}var au={},su=function(e){f(n,e);var t=d(n);function n(e){var r;return w(this,n),(r=t.call(this)).ngModule=e,r}return b(n,[{key:"resolveComponentFactory",value:function(e){var t=ge(e);return new lu(t,this.ngModule)}}]),n}(ps);function uu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var cu=new ln("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Tr}}),lu=function(e){f(n,e);var t=d(n);function n(e,r){var o;return w(this,n),(o=t.call(this)).componentDef=e,o.ngModule=r,o.componentType=e.type,o.selector=e.selectors.map(ho).join(","),o.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],o.isBoundToModule=!!r,o}return b(n,[{key:"inputs",get:function(){return uu(this.componentDef.inputs)}},{key:"outputs",get:function(){return uu(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,r){var o,i,a=(r=r||this.ngModule)?function(e,t){return{get:function(n,r,o){var i=e.get(n,au,o);return i!==au||r===au?i:t.get(n,r,o)}}}(e,r.injector):e,s=a.get(ws,De),u=a.get(Ss,null),c=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",f=n?function(e,t,n){if(je(e))return e.selectRootElement(t,n===K.ShadowDom);var r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(c,n,this.componentDef.encapsulation):jr(s.createRenderer(null,this.componentDef),l,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,d={components:[],scheduler:Tr,clean:oi,playerHandler:null,flags:0},p=jo(0,null,null,1,0,null,null,null,null,null),m=Co(null,p,d,h,null,null,s,c,u,a);mt(m);try{var y=function(e,t,n,r,o,i){var a=n[1];n[20]=e;var s=Eo(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(li(s,u,!0),null!==e&&(It(o,e,u),null!==s.classes&&to(o,e,s.classes),null!==s.styles&&eo(o,e,s.styles)));var c=r.createRenderer(e,t),l=Co(n,No(t),null,t.onPush?64:16,n[20],s,r,c,null,null);return a.firstCreatePass&&($t(Ht(s,n),a,t.type),Ho(a,s),Go(s,n.length,1)),Qo(n,l),n[20]=l}(f,this.componentDef,m,s,c);if(f)if(n)It(c,f,["ng-version",Es.full]);else{var v=function(e){for(var t=[],n=[],r=1,o=2;r<e.length;){var i=e[r];if("string"==typeof i)2===o?""!==i&&t.push(i,e[++r]):8===o&&n.push(i);else{if(!so(o))break;o=i}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),g=v.attrs,b=v.classes;g&&It(c,f,g),b&&b.length>0&&to(c,f,b.join(" "))}if(i=Ue(p,20),void 0!==t)for(var w=i.projection=[],_=0;_<this.ngContentSelectors.length;_++){var k=t[_];w.push(null!=k?Array.from(k):null)}o=function(e,t,n,r,o){var i=n[1],a=function(e,t,n){var r=Qe();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Vo(e,r,t,To(e,t,1,null),n));var o=en(t,e,r.directiveStart,r);wr(o,t);var i=Be(r,t);return i&&wr(i,t),o}(i,n,t);if(r.components.push(a),e[8]=a,o&&o.forEach(function(e){return e(a,t)}),t.contentQueries){var s=Qe();t.contentQueries(1,a,s.directiveStart)}var u=Qe();return!i.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(kt(u.index),Uo(n[1],u,0,u.directiveStart,u.directiveEnd,t),qo(t,a)),a}(y,this.componentDef,m,d,[xi]),xo(p,m,null)}finally{wt()}return new fu(this.componentType,o,ys(i,m),m,i)}}]),n}(hs),fu=function(e){f(n,e);var t=d(n);function n(e,r,o,i,a){var s;return w(this,n),(s=t.call(this)).location=o,s._rootLView=i,s._tNode=a,s.instance=r,s.hostView=s.changeDetectorRef=new Hs(i),s.componentType=e,s}return b(n,[{key:"injector",get:function(){return new rn(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(e){this.hostView.onDestroy(e)}}]),n}(function(){return function e(){w(this,e)}}()),hu=new Map,du=function(e){f(n,e);var t=d(n);function n(e,r){var o;w(this,n),(o=t.call(this))._parent=r,o._bootstrapComponents=[],o.injector=m(o),o.destroyCbs=[],o.componentFactoryResolver=new su(m(o));var i=be(e),a=e[ie]||null;return a&&rs(a),o._bootstrapComponents=xr(i.bootstrap),o._r3Injector=gi(e,r,[{provide:Js,useValue:m(o)},{provide:ps,useValue:o.componentFactoryResolver}],k(e)),o._r3Injector._resolveInjectorDefTypes(),o.instance=o.get(e),o}return b(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ti.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:H.Default;return e===Ti||e===Js||e===hi?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Js),pu=function(e){f(n,e);var t=d(n);function n(e){var r,o,i;return w(this,n),(r=t.call(this)).moduleType=e,null!==be(e)&&(o=e,i=new Set,function e(t){var n=be(t,!0),r=n.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(k(t)," vs ").concat(k(t.name)))}(r,hu.get(r),t),hu.set(r,t));var o,a=s(xr(n.imports));try{for(a.s();!(o=a.n()).done;){var u=o.value;i.has(u)||(i.add(u),e(u))}}catch(c){a.e(c)}finally{a.f()}}(o)),r}return b(n,[{key:"create",value:function(e){return new du(this.moduleType,e)}}]),n}(Qs);function mu(e,t,n){var r=at()+e,o=Xe();return o[r]===po?Fi(o,r,n?t.call(n):t()):function(e,t){return e[t]}(o,r)}function yu(e,t,n,r){return bu(Xe(),at(),e,t,n,r)}function vu(e,t,n,r,o){return wu(Xe(),at(),e,t,n,r,o)}function gu(e,t){var n=e[t];return n===po?void 0:n}function bu(e,t,n,r,o,i){var a=t+n;return Bi(e,a,o)?Fi(e,a+1,i?r.call(i,o):r(o)):gu(e,a+1)}function wu(e,t,n,r,o,i,a){var s=t+n;return Ui(e,s,o,i)?Fi(e,s+2,a?r.call(a,o,i):r(o,i)):gu(e,s+2)}function _u(e,t){var n,r=Ze(),o=e+20;r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if(e===r.name)return r}throw new O("302","The pipe '".concat(e,"' could not be found!"))}(t,r.pipeRegistry),r.data[o]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(o,n.onDestroy)):n=r.data[o];var i=n.factory||(n.factory=Te(n.type)),a=z($i);try{var s=Ut(!1),u=i();return Ut(s),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(r,Xe(),o,u),u}finally{z(a)}}function ku(e,t,n){var r=e+20,o=Xe(),i=qe(o,r);return Eu(o,Cu(o,r)?bu(o,at(),t,i.transform,n,i):i.transform(n))}function Su(e,t,n,r){var o=e+20,i=Xe(),a=qe(i,o);return Eu(i,Cu(i,o)?wu(i,at(),t,a.transform,n,r,a):a.transform(n,r))}function Cu(e,t){return e[1].data[t].pure}function Eu(e,t){return ji.isWrapped(t)&&(t=ji.unwrap(t),e[st()]=po),t}function Tu(e){return function(t){setTimeout(e,void 0,t)}}var xu=function(e){f(n,e);var t=d(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return w(this,n),(e=t.call(this)).__isAsync=r,e}return b(n,[{key:"emit",value:function(e){r(v(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,o){var i,a,s,u=e,c=t||function(){return null},f=o;if(e&&"object"==typeof e){var h=e;u=null===(i=h.next)||void 0===i?void 0:i.bind(h),c=null===(a=h.error)||void 0===a?void 0:a.bind(h),f=null===(s=h.complete)||void 0===s?void 0:s.bind(h)}this.__isAsync&&(c=Tu(c),u&&(u=Tu(u)),f&&(f=Tu(f)));var d=r(v(n.prototype),"subscribe",this).call(this,{next:u,error:c,complete:f});return e instanceof l.w&&e.add(d),d}}]),n}(c.xQ);function Ou(){return this._results[Ni()]()}var Au=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];w(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Ni(),r=e.prototype;r[n]||(r[n]=Ou)}return b(e,[{key:"changes",get:function(){return this._changes||(this._changes=new xu)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){this.dirty=!1;var n=dn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}},{key:"notifyOnChanges",value:function(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),Ru=function(){function e(t){w(this,e),this.queryList=t,this.matches=null}return b(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),Iu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];w(this,e),this.queries=t}return b(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[],i=0;i<r;i++){var a=n.getByIndex(i);o.push(this.queries[a.indexInDeclarationView].clone())}return new e(o)}return null}},{key:"insertView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"detachView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"dirtyQueriesWithMatches",value:function(e){for(var t=0;t<this.queries.length;t++)null!==Vu(e,t).matches&&this.queries[t].setDirty()}}]),e}(),Pu=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;w(this,e),this.predicate=t,this.flags=n,this.read=r},Mu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];w(this,e),this.queries=t}return b(e,[{key:"elementStart",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}},{key:"elementEnd",value:function(e){for(var t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}},{key:"embeddedTView",value:function(t){for(var n=null,r=0;r<this.length;r++){var o=null!==n?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,null!==n?n.push(i):n=[i])}return null!==n?new e(n):null}},{key:"template",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}},{key:"getByIndex",value:function(e){return this.queries[e]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(e){this.queries.push(e)}}]),e}(),Nu=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;w(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return b(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r<n.length;r++){var o=n[r];this.matchTNodeWithReadOption(e,t,ju(t,o)),this.matchTNodeWithReadOption(e,t,Qt(t,e,o,!1,
1!1))}else n===Ws?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Qt(t,e,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var r=this.metadata.read;if(null!==r)if(r===gs||r===tu||r===Ws&&4&t.type)this.addMatch(t.index,-2);else{var o=Qt(t,e,r,!1,!1);null!==o&&this.addMatch(t.index,o)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}]),e}();function ju(e,t){var n=e.localNames;if(null!==n)for(var r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function Du(e,t,n,r){return-1===n?function(e,t){return 11&e.type?ys(e,t):4&e.type?Zs(e,t):null}(t,e):-2===n?function(e,t,n){return n===gs?ys(t,e):n===Ws?Zs(t,e):n===tu?iu(t,e):void 0}(e,t,r):en(e,e[1],n,t)}function Lu(e,t,n,r){var o=t[19].queries[r];if(null===o.matches){for(var i=e.data,a=n.matches,s=[],u=0;u<a.length;u+=2){var c=a[u];s.push(c<0?null:Du(t,i[c],a[u+1],n.metadata.read))}o.matches=s}return o.matches}function Fu(e,t,n,r){var o=e.queries.getByIndex(n),i=o.matches;if(null!==i)for(var a=Lu(e,t,o,n),s=0;s<i.length;s+=2){var u=i[s];if(u>0)r.push(a[s/2]);else{for(var c=i[s+1],l=t[-u],f=10;f<l.length;f++){var h=l[f];h[17]===h[3]&&Fu(h[1],h,c,r)}if(null!==l[9])for(var d=l[9],p=0;p<d.length;p++){var m=d[p];Fu(m[1],m,c,r)}}}return r}function Bu(e){var t=Xe(),n=Ze(),r=ft();ht(r+1);var o=Vu(n,r);if(e.dirty&&ze(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{var i=o.crossesNgTemplate?Fu(n,t,r,[]):Lu(n,t,o,r);e.reset(i,bs),e.notifyOnChanges()}return!0}return!1}function Uu(e,t,n){var r=Ze();r.firstCreatePass&&(Gu(r,new Pu(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),zu(r,Xe(),t)}function qu(e,t,n,r){var o=Ze();if(o.firstCreatePass){var i=Qe();Gu(o,new Pu(t,n,r),i.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}zu(o,Xe(),n)}function Hu(){return e=Xe(),t=ft(),e[19].queries[t].queryList;var e,t}function zu(e,t,n){var r=new Au(4==(4&n));Do(e,t,r,r.destroy),null===t[19]&&(t[19]=new Iu),t[19].queries.push(new Ru(r))}function Gu(e,t,n){null===e.queries&&(e.queries=new Mu),e.queries.track(new Nu(t,n))}function Vu(e,t){return e.queries.getByIndex(t)}function $u(e,t){return Zs(e,t)}var Ku=new ln("Application Initializer"),Yu=function(){var e=function(){function e(t){var n=this;w(this,e),this.appInits=t,this.resolve=ms,this.reject=ms,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return b(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=function(n){var r=e.appInits[n]();if(ra(r))t.push(r);else if(ia(r)){var o=new Promise(function(e,t){r.subscribe({complete:e,error:t})});t.push(o)}},o=0;o<this.appInits.length;o++)r(o);Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(xn(Ku,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e}(),Wu=new ln("AppId"),Xu={provide:Wu,useFactory:function(){return"".concat(Zu()).concat(Zu()).concat(Zu())},deps:[]};function Zu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Ju=new ln("Platform Initializer"),Qu=new ln("Platform ID"),ec=new ln("appBootstrapListener"),tc=function(){var e=function(){function e(){w(this,e)}return b(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e}(),nc=new ln("LocaleId"),rc=new ln("DefaultCurrencyCode"),oc=function e(t,n){w(this,e),this.ngModuleFactory=t,this.componentFactories=n},ic=function(e){return new pu(e)},ac=ic,sc=function(e){return Promise.resolve(ic(e))},uc=function(e){var t=ic(e),n=xr(be(e).declarations).reduce(function(e,t){var n=ge(t);return n&&e.push(new lu(n)),e},[]);return new oc(t,n)},cc=uc,lc=function(e){return Promise.resolve(uc(e))},fc=function(){var e=function(){function e(){w(this,e),this.compileModuleSync=ac,this.compileModuleAsync=sc,this.compileModuleAndAllComponentsSync=cc,this.compileModuleAndAllComponentsAsync=lc}return b(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e}(),hc=Promise.resolve(0);function dc(e){"undefined"==typeof Zone?hc.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var pc=function(){function e(t){var n,r,o=t.enableLongStackTrace,i=void 0!==o&&o,a=t.shouldCoalesceEventChangeDetection,s=void 0!==a&&a,u=t.shouldCoalesceRunChangeDetection,c=void 0!==u&&u;if(w(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xu(!1),this.onMicrotaskEmpty=new xu(!1),this.onStable=new xu(!1),this.onError=ne
1w xu(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!c&&s,this.shouldCoalesceRunChangeDetection=c,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var e=J.requestAnimationFrame,t=J.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,r=function(){!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(J,function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){e.lastRequestAnimationFrameId=-1,vc(e),e.isCheckStableRunning=!0,yc(e),e.isCheckStableRunning=!1},void 0,function(){},function(){})),e.fakeTopEventTask.invoke()}),vc(e))}(n)},(n=this)._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,o,i,a,s){try{return gc(n),e.invokeTask(o,i,a,s)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||n.shouldCoalesceRunChangeDetection)&&r(),bc(n)}},onInvoke:function(e,t,o,i,a,s,u){try{return gc(n),e.invoke(o,i,a,s,u)}finally{n.shouldCoalesceRunChangeDetection&&r(),bc(n)}},onHasTask:function(e,t,r,o){e.hasTask(r,o),t===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,vc(n),yc(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:function(e,t,r,o){return e.handleError(r,o),n.runOutsideAngular(function(){return n.onError.emit(o)}),!1}})}return b(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,r){var o=this._inner,i=o.scheduleEventTask("NgZoneEvent: "+r,e,mc,ms,ms);try{return o.runTask(i,t,n)}finally{o.cancelTask(i)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}(),mc={};function yc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function vc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function gc(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function bc(e){e._nesting--,yc(e)}var wc=function(){function e(){w(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xu,this.onMicrotaskEmpty=new xu,this.onStable=new xu,this.onError=new xu}return b(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,r){return e.apply(t,n)}}]),e}(),_c=function(){var e=function(){function e(t){var n=this;w(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return b(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){pc.assertNotInAngularZone(),dc(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pe
1ndingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())dc(function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1});else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]}},{key:"addCallback",value:function(e,t,n){var r=this,o=-1;t&&t>0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==o}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(xn(pc))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e}(),kc=function(){var e=function(){function e(){w(this,e),this._applications=new Map,Ec.addToWindow(this)}return b(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ec.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e}();function Sc(e){Ec=e}var Cc,Ec=new(function(){function e(){w(this,e)}return b(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Tc=!0,xc=!1;function Oc(){if(xc)throw new Error("Cannot enable prod mode after platform setup.");Tc=!1}var Ac=new ln("AllowMultipleToken"),Rc=function e(t,n){w(this,e),this.name=t,this.token=n};function Ic(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),o=new ln(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=Pc();if(!i||i.injector.get(Ac,!1))if(e)e(n.concat(t).concat({provide:o,useValue:!0}));else{var a=n.concat(t).concat({provide:o,useValue:!0},{provide:pi,useValue:"platform"});!function(e){if(Cc&&!Cc.destroyed&&!Cc.injector.get(Ac,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Cc=e.get(Mc);var t=e.get(Ju,null);t&&t.forEach(function(e){return e()})}(Ti.create({providers:a,name:r}))}return function(e){var t=Pc();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function Pc(){return Cc&&!Cc.destroyed?Cc:null}var Mc=function(){var e=function(){function e(t){w(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return b(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,o=this,i=(n=t?t.ngZone:void 0,r={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===n?new wc:("zone.js"===n?void 0:n)||new pc({enableLongStackTrace:(xc=!0,Tc
1),shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})),a=[{provide:pc,useValue:i}];return i.run(function(){var t=Ti.create({providers:a,parent:o.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(Er,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(function(){var e=i.onError.subscribe({next:function(e){r.handleError(e)}});n.onDestroy(function(){Dc(o._modules,n),e.unsubscribe()})}),function(e,t,r){try{var i=((a=n.injector.get(Yu)).runInitializers(),a.donePromise.then(function(){return rs(n.injector.get(nc,"en-US")||"en-US"),o._moduleDoBootstrap(n),n}));return ra(i)?i.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):i}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var a}(r,i)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Nc({},n);return function(e,t,n){var r=new pu(n);return Promise.resolve(r)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,r)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(jc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(k(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(xn(Ti))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e}();function Nc(e,t){return Array.isArray(t)?t.reduce(Nc,e):Object.assign(Object.assign({},e),t)}var jc=function(){var e=function(){function e(t,n,r,o,i){var a=this;w(this,e),this._zone=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var s=new h.y(function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){e.next(a._stable),e.complete()})}),u=new h.y(function(e){var t;a._zone.runOutsideAngular(function(){t=a._zone.onStable.subscribe(function(){pc.assertNotInAngularZone(),dc(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){pc.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=(0,p.T)(s,u.pipe((0,y.B)()))}return b(e,[{key:"bootstrap",value:function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof hs?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n.isBoundToModule?void 0:this._injector.get(Js),i=n.create(Ti.NULL,[],t||n.selector,o),a=i.location.nativeElement,s=i.injector.get(_c,null),u=s&&i.injector.get(kc);return s&&u&&u.registerApplication(a,s),i.onDestroy(function(){r.detachView(i.hostView),Dc(r.components,i),u&&u.unregisterApplication(a)}),this._loadComponent(i),i}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=s(this._views);try{for(n.s();!(t=n.n()).done;){t.value.detectChanges()}}catch(r){n.e(r)}finally{n.f()}}catch(o){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(o)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Dc(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(ec,[]).concat(this._bootstrapListeners).forEac
1h(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(xn(pc),xn(Ti),xn(Er),xn(ps),xn(Yu))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e}();function Dc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Lc=function e(){w(this,e)},Fc=function e(){w(this,e)},Bc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Uc=function(){var e=function(){function e(t,n){w(this,e),this._compiler=t,this._config=n||Bc}return b(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,r=u(e.split("#"),2),o=r[0],i=r[1];return void 0===i&&(i="default"),n(98255)(o).then(function(e){return e[i]}).then(function(e){return qc(e,o,i)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=u(e.split("#"),2),r=t[0],o=t[1],i="NgFactory";return void 0===o&&(o="default",i=""),n(98255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[o+i]}).then(function(e){return qc(e,r,o)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(xn(fc),xn(Fc,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e}();function qc(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Hc=function(e){return null},zc=Ic(null,"core",[{provide:Qu,useValue:"unknown"},{provide:Mc,deps:[Ti]},{provide:kc,deps:[]},{provide:tc,deps:[]}]),Gc=[{provide:jc,useClass:jc,deps:[pc,Ti,Er,ps,Yu]},{provide:cu,deps:[pc],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Yu,useClass:Yu,deps:[[new Pn,Ku]]},{provide:fc,useClass:fc,deps:[]},Xu,{provide:Ls,useFactory:function(){return $s},deps:[]},{provide:Bs,useFactory:function(){return Ks},deps:[]},{provide:nc,useFactory:function(e){return rs(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new In(nc),new Pn,new Mn]]},{provide:rc,useValue:"USD"}],Vc=function(){var e=function e(t){w(this,e)};return e.\u0275fac=function(t){return new(t||e)(xn(jc))},e.\u0275mod=de({type:e}),e.\u0275inj=M({providers:Gc}),e}()},11462:function(e,t,n){"use strict";n.d(t,{NI:function(){return le},oH:function(){return _e},u:function(){return Re},cw:function(){return fe},sg:function(){return Se},x0:function(){return Ee},u5:function(){return Pe},JU:function(){return v},a5:function(){return G},JJ:function(){return $},JL:function(){return K},On:function(){return ye},UX:function(){return Me},kI:function(){return O},_Y:function(){return ve}});var r=n(35366),o=n(61116),i=n(71784),u=n(98470),c=n(79996),l=n(82056),h=n(19764);function p(e,t){return new i.y(function(n){var r=e.length;if(0!==r)for(var o=new Array(r),i=0,a=0,s=function(s){var u=(0,h.D)(e[s]),c=!1;n.add(u.subscribe({next:function(e){c||(c=!0,a++),o[s]=e},error:function(e){return n.error(e)},complete:function(){++i!==r&&c||(a===r&&n.next(t?t.reduce(function(e,t,n){return e[t]=o[n],e},{}):o),n.complete())}}))},u=0;u<r;u++)s(u);else n.complete()})}var m=function(){var e=function(){function e(t,n){w(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return b(e,[{key:"setProperty",value:function(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"setDisabledState",value:function(e){this.setProperty("disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.Qsj),r.Y36(r.SBq))},e.\u0275dir=r.lG2({type:e}),e}(),y=function(){var e,t=function(e){f(n,e);var t=d(n);function n(){return w(this,n),t.apply(this,arguments)}return n}(m);return t.\u0275fac=function(n){return(e||(e=r.n5z(t)))(n||t)},t.\u0275dir=r.lG2({type:t,features:[r.qOj]}),t}(),v=new r.OlP("NgValueAccessor"),g={provide:v,useExisting:(0,r.Gpc)(function(){return k}),multi:!0},_=new r.OlP("CompositionEventMode"),k=function(){var e=function(e){f(n,e);var t=d(n);
1function n(e,r,i){var a,s;return w(this,n),(a=t.call(this,e,r))._compositionMode=i,a._composing=!1,null==a._compositionMode&&(a._compositionMode=(s=(0,o.q)()?(0,o.q)().getUserAgent():"",!/android (\d+)/.test(s.toLowerCase()))),a}return b(n,[{key:"writeValue",value:function(e){this.setProperty("value",null==e?"":e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),n}(m);return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.Qsj),r.Y36(r.SBq),r.Y36(_,8))},e.\u0275dir=r.lG2({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&r.NdJ("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[r._Bn([g]),r.qOj]}),e}();function S(e){return null==e||0===e.length}function C(e){return null!=e&&"number"==typeof e.length}var E=new r.OlP("NgValidators"),T=new r.OlP("NgAsyncValidators"),x=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,O=function(){function e(){w(this,e)}return b(e,null,[{key:"min",value:function(e){return function(e){return function(t){if(S(t.value)||S(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}(e)}},{key:"max",value:function(e){return function(e){return function(t){if(S(t.value)||S(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(e)}},{key:"required",value:function(e){return function(e){return S(e.value)?{required:!0}:null}(e)}},{key:"requiredTrue",value:function(e){return function(e){return!0===e.value?null:{required:!0}}(e)}},{key:"email",value:function(e){return function(e){return S(e.value)||x.test(e.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return function(e){return function(t){return S(t.value)||!C(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}}(e)}},{key:"maxLength",value:function(e){return function(e){return function(t){return C(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}(e)}},{key:"pattern",value:function(e){return function(e){return e?("string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),function(e){if(S(e.value))return null;var r=e.value;return t.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}):A;var t,n}(e)}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){return j(e)}},{key:"composeAsync",value:function(e){return L(e)}}]),e}();function A(e){return null}function R(e){return null!=e}function I(e){var t=(0,r.QGY)(e)?(0,h.D)(e):e;return(0,r.CqO)(t),t}function P(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function M(e,t){return t.map(function(t){return t(e)})}function N(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function j(e){if(!e)return null;var t=e.filter(R);return 0==t.length?null:function(e){return P(M(e,t))}}function D(e){return null!=e?j(N(e)):null}function L(e){if(!e)return null;var t=e.filter(R);return 0==t.length?null:function(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var r=t[0];if((0,u.k)(r))return p(r,null);if((0,l.K)(r)&&Object.getPrototypeOf(r)===Object.prototype){var o=Object.keys(r);return p(o.map(function(e){return r[e]}),o)}}if("function"==typeof t[t.length-1]){var i=t.pop();return p(t=1===t.length&&(0,u.k)(t[0])?t[0]:t,null).pipe((0,c.U)(function(e){return i.apply(void 0,a(e))}))}return p(t,null)}(M(e,t).map(I)).pipe((0,c.U)(P))}}function F(e){return null!=e?L(N(e)):null}function B(e,t){return null===e?[t]:Array.isArray(e)?[].concat(a(e),[t]):[e,t]}function U(e){return e._rawValidators}function q(e){return e._rawAsyncValidators}var H=function(){var e=function(){function e(){w(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return b(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=D(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=F(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.lG2({type:e}),e}(),z=function(){var e,t=function(e){f(n,e);var t=d(n);function n(){return w(this,n),t.apply(this,arguments)}return b(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(H);return t.\u0275fac=function(n){return(e||(e=r.n5z(t)))(n||t)},t.\u0275dir=r.lG2({type:t,features:[r.qOj]}),t}(),G=function(e){f(n,e);var t=d(n);function n(){var e;return w(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(H),V=function(){function e(t){w(this,e),this._cd=t}return b(e,[{key:"is",value:function(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}]),e}(),$=function(){var e=function(e){f(n,e);var t=d(n);function n(e){return w(this,n),t.call(this,e)}return n}(V);return e.\u0275fac=function(t){return new(t||e)(r.Y36(G,2))},e.\u0275dir=r.lG2({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&r.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[r.qOj]}),e}(),K=function(){var e=function(e){f(n,e);var t=d(n);function n(e){return w(this,n),t.call(this,e)}return n}(V);return e.\u0275fac=function(t){return new(t||e)(r.Y36(z,10))},e.\u0275dir=r.lG2({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&r.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[r.qOj]}),e}();function Y(e,t){return[].concat(a(t.path),[e])}function W(e,t){J(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&ee(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&ee(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function X(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),Q(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function Z(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)}
1)}function J(e,t,n){var r=U(e);null!==t.validator?e.setValidators(B(r,t.validator)):"function"==typeof r&&e.setValidators([r]);var o=q(e);if(null!==t.asyncValidator?e.setAsyncValidators(B(o,t.asyncValidator)):"function"==typeof o&&e.setAsyncValidators([o]),n){var i=function(){return e.updateValueAndValidity()};Z(t._rawValidators,i),Z(t._rawAsyncValidators,i)}}function Q(e,t,n){var r=!1;if(null!==e){if(null!==t.validator){var o=U(e);if(Array.isArray(o)&&o.length>0){var i=o.filter(function(e){return e!==t.validator});i.length!==o.length&&(r=!0,e.setValidators(i))}}if(null!==t.asyncValidator){var a=q(e);if(Array.isArray(a)&&a.length>0){var s=a.filter(function(e){return e!==t.asyncValidator});s.length!==a.length&&(r=!0,e.setAsyncValidators(s))}}}if(n){var u=function(){};Z(t._rawValidators,u),Z(t._rawAsyncValidators,u)}return r}function ee(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function te(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function ne(e,t){return t?(Array.isArray(t),t.forEach(function(e){e.constructor===k?n=e:Object.getPrototypeOf(e.constructor)===y?r=e:o=e}),o||r||n||null):null;var n,r,o}function re(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function oe(e){return(ue(e)?e.validators:e)||null}function ie(e){return Array.isArray(e)?D(e):e||null}function ae(e,t){return(ue(t)?t.asyncValidators:e)||null}function se(e){return Array.isArray(e)?F(e):e||null}function ue(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var ce=function(){function e(t,n){w(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=ie(this._rawValidators),this._composedAsyncValidatorFn=se(this._rawAsyncValidators)}return b(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=ie(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=se(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};
1this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=I(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var r=e;return t.forEach(function(e){r=r instanceof fe?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof he&&r.at(e)||null}),r}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new r.vpe,this.statusChanges=new r.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){ue(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),le=function(e){f(n,e);var t=d(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return w(this,n),(e=t.call(this,oe(o),ae(i,o)))._onChange=[],e._applyFormState(r),e._setUpdateStrategy(o),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),e}return b(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};
1this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){re(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){re(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(ce),fe=function(e){f(n,e);var t=d(n);function n(e,r,o){var i;return w(this,n),(i=t.call(this,oe(r),ae(o,r))).controls=e,i._initObservables(),i._setUpdateStrategy(r),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),i}return b(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){t._throwIfControlMissing(r),t.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(r){t.controls[r]&&t.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof le?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});
1return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var r=t.controls[n];r&&e(r,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t<n.length;t++){var r=n[t],o=this.controls[r];if(this.contains(r)&&e(o))return!0}return!1}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++){var n=t[e];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Mu
1st supply a value for form control with name: '".concat(n,"'."))})}}]),n}(ce),he=function(e){f(n,e);var t=d(n);function n(e,r,o){var i;return w(this,n),(i=t.call(this,oe(r),ae(o,r))).controls=e,i._initObservables(),i._setUpdateStrategy(r),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),i}return b(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,r){t._throwIfControlMissing(r),t.at(r).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,r){t.at(r)&&t.at(r).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof le?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Mu
1st supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=s(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(ce),de=function(){var e,t=function(e){f(n,e);var t=d(n);function n(){return w(this,n),t.apply(this,arguments)}return b(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return Y(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}}]),n}(z);return t.\u0275fac=function(n){return(e||(e=r.n5z(t)))(n||t)},t.\u0275dir=r.lG2({type:t,features:[r.qOj]}),t}(),pe={provide:G,useExisting:(0,r.Gpc)(function(){return ye})},me=Promise.resolve(null),ye=function(){var e=function(e){f(n,e);var t=d(n);function n(e,o,i,a){var s;return w(this,n),(s=t.call(this)).control=new le,s._registered=!1,s.update=new r.vpe,s._parent=e,s._setValidators(o),s._setAsyncValidators(i),s.valueAccessor=ne(0,a),s}return b(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),te(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?Y(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){W(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;me.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;me.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})}}]),n}(G);return e.\u0275fac=function(t){return new(t||e)(r.Y36(z,9),r.Y36(E,10),r.Y36(T,10),r.Y36(v,10))},e.\u0275dir=r.lG2({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r._Bn([pe]),r.qOj,r.TTD]}),e}(),ve=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),ge=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}(),be=new r.OlP("NgModelWithFormControlWarning"),we={provide:G,useExisting:(0,r.Gpc)(function(){return _e})},_e=function(){var e=function(e){f(n,e);var t=d(n);function n(e,o,i,a){var s;return w(this,n),(s=t.call(this))._ngModelWarningConfig=a,s.update=new r.vpe,s._ngModelWarningSent=!1,s._setValidators(e),s._setAsyncValidators(o),s.valueAccessor=ne(0,i),s}return b(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;
1t&&X(t,this,!1),W(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}te(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&X(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}}]),n}(G);return e.\u0275fac=function(t){return new(t||e)(r.Y36(E,10),r.Y36(T,10),r.Y36(v,10),r.Y36(be,8))},e.\u0275dir=r.lG2({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r._Bn([we]),r.qOj,r.TTD]}),e._ngModelWarningSentOnce=!1,e}(),ke={provide:z,useExisting:(0,r.Gpc)(function(){return Se})},Se=function(){var e=function(e){f(n,e);var t=d(n);function n(e,o){var i;return w(this,n),(i=t.call(this)).validators=e,i.asyncValidators=o,i.submitted=!1,i._onCollectionChange=function(){return i._updateDomValue()},i.directives=[],i.form=null,i.ngSubmit=new r.vpe,i._setValidators(e),i._setAsyncValidators(o),i}return b(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(Q(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return W(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){X(e.control||null,e,!1),re(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,t=this.directives,this.form._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,r=e.form.get(t.path);n!==r&&(X(n||null,t),r instanceof le&&(W(r,t),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);(function(e,t){J(e,t,!1)})(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return Q(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){J(this.form,this,!1),this._oldForm&&Q(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}}]),n}(z);return e.\u0275fac=function(t){return new(t||e)(r.Y36(E,10),r.Y36(T,10))},e.\u0275dir=r.lG2({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&r.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r._Bn([ke]),r.qOj,r.TTD]}),e}(),Ce={provide:z,useExisting:(0,r.Gpc)(function(){return Ee})},Ee=function(){var e=function(e){f(n,e);var t=d(n);function n(e,r,o){var i;return w(this,n),(i=t.call(this))._parent=e,i._setValidators(r),i._setAsyncValidators(o),i}return b(n,[{key:"_checkParentType",value:function(){Oe(this._parent)}}]),n}(de);return e.\u0275fac=function(t){return new(t||e)(r.Y36(z,13),r.Y36(E,10),r.Y36(T,10))},e.\u0275dir=r.lG2({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[r._Bn([Ce]),r.qOj]}),e}(),Te={provide:z,useExisting:(0,r.Gpc)(function(){return xe})},xe=function(){var e=function(e){f(n,e);var t=d(n);function n(e,r,o){var i;return w(this,n),(i=t.call(this))._parent=e,i._setValidators(r),i._setAsyncValidators(o),i}return b(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return Y(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"_checkParentType",value:function(){Oe(this._parent)}}]),n}(z);return e.\u0275fac=function(t){return new(t||e)(r.Y36(z,13),r.Y36(E,10),r.Y36(T,10))},e.\u0275dir=r.lG2({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[r._Bn([Te]),r.qOj]}),e}();function Oe(e){return!(e instanceof Ee||e instanceof Se||e instanceof xe)}var Ae={provide:G,useExisting:(0,r.Gpc)(function(){return Re})},Re=function(){var e=function(e){f(n,e);var t=d(n);function n(e,o,i,a,s){var u;return w(this,n),(u=t.call(this))._ngModelWarningConfig=s,u._added=!1,u.update=new r.vpe,u._ngModelWarningSent=!1,u._parent=e,u._setValidators(o),u._setAsyncValidators(i),u.valueAccessor=ne(0,a),u}return b(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),te(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"path",get:function(){return Y(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),n}(G);return e.\u0275fac=function(t){return new(t||e)(r.Y36(z,13),r.Y36(E,10),r.Y36(T,10),r.Y36(v,10),r.Y36(be,8))},e.\u0275dir=r.lG2({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r._Bn([Ae]),r.qOj,r.TTD]}),e._ngModelWarningSentOnce=!1,e}(),Ie=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({imports:[[ge]]}),e}(),Pe=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({imports:[Ie]}),e}(),Me=function(){var e=function(){function e(){w(this,e)}return b(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:be,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({imports:[Ie]}),e}()},99624:function(e,t,n){"use strict";n.d(t,{b2:function(){return z},H7:function(){return F},q6:function(){return q}});var o,i=n(61116),a=n(35366),s=function(e){f(n,e);var t=d(n);function n(){return w(this,n),t.apply(this,arguments)}return b(n,[{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){e.parentNode&&e.parentNode.removeChild(e)}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}}
1,{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getBaseHref",value:function(e){var t=(u=u||document.querySelector("base"))?u.getAttribute("href"):null;return null==t?null:function(e){(o=o||document.createElement("a")).setAttribute("href",e);var t=o.pathname;return"/"===t.charAt(0)?t:"/".concat(t)}(t)}},{key:"resetBaseElement",value:function(){u=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(e){return(0,i.Mx)(document.cookie,e)}}],[{key:"makeCurrent",value:function(){(0,i.HT)(new n)}}]),n}(function(e){f(n,e);var t=d(n);function n(){var e;return w(this,n),(e=t.apply(this,arguments)).supportsDOMEvents=!0,e}return n}(i.w_)),u=null,c=new a.OlP("TRANSITION_ID"),l=[{provide:a.ip1,useFactory:function(e,t,n){return function(){n.get(a.CZH).donePromise.then(function(){var n=(0,i.q)();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[c,i.K0,a.zs3],multi:!0}],h=function(){function e(){w(this,e)}return b(e,[{key:"addToWindow",value:function(e){a.dqk.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},a.dqk.getAllAngularTestabilities=function(){return e.getAllTestabilities()},a.dqk.getAllAngularRootElements=function(){return e.getAllRootElements()},a.dqk.frameworkStabilizers||(a.dqk.frameworkStabilizers=[]),a.dqk.frameworkStabilizers.push(function(e){var t=a.dqk.getAllAngularTestabilities(),n=t.length,r=!1,o=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(o)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?(0,i.q)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){(0,a.VLi)(new e)}}]),e}(),p=function(){var e=function(){function e(){w(this,e)}return b(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),m=new a.OlP("EventManagerPlugins"),y=function(){var e=function(){function e(t,n){var r=this;w(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=r}),this._plugins=t.slice().reverse()}return b(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error("No event manager plugin found for event ".concat(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(m),a.LFG(a.R0b))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),g=function(){function e(t){w(this,e),this._doc=t}return b(e,[{key:"addGlobalEventListener",value:function(e,t,n){var r=(0,i.q)().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target ".concat(r," for event ").concat(t));return this.addEventListener(r,t,n)}}]),e}(),_=function(){var e=function(){function e(){w(this,e),this._stylesSet=new Set}return b(e,[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),k=function(){var e=function(e){f(n,e);var t=d(n);function n(e){var r;return w(this,n),(r=t.call(this))._doc=e,r._hostNodes=new Map,r._hostNodes.set(e.head,[]),r}return b(n,[{key:"_addStylesToHost",value:function(e,t,n){var r=this;e.forEach(function(e){var o=r._doc.createElement("style");o.textContent=e,n.push(t.appendChild(o))})}},{key:"addHost",value:function(e){var t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}},{key:"removeHost",value:function(e){var t=this._hostNodes.get(e);t&&t.forEach(S),this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;
1this._hostNodes.forEach(function(n,r){t._addStylesToHost(e,r,n)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(e){return e.forEach(S)})}}]),n}(_);return e.\u0275fac=function(t){return new(t||e)(a.LFG(i.K0))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}();function S(e){(0,i.q)().remove(e)}var C={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},E=/%COMP%/g;function T(e,t,n){for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?T(e,o,n):(o=o.replace(E,e),n.push(o))}return n}function x(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var O=function(){var e=function(){function e(t,n,r){w(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new A(t)}return b(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case a.ifc.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new R(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case 1:case a.ifc.ShadowDom:return new I(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=T(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(y),a.LFG(k),a.LFG(a.AFp))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),A=function(){function e(t){w(this,e),this.eventManager=t,this.data=Object.create(null)}return b(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(C[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,r){if(r){t=r+":"+t;var o=C[r];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var r=C[n];r?e.removeAttributeNS(r,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,r){r&(a.JOm.DashCase|a.JOm.Important)?e.style.setProperty(t,n,r&a.JOm.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&a.JOm.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,x(n)):this.eventManager.addEventListener(e,t,x(n))}}]),e}(),R=function(e){f(n,e);var t=d(n);function n(e,r,o,i){var a;w(this,n),(a=t.call(this,e)).component=o;var s=T(i+"-"+o.id,o.styles,[]);return r.addStyles(s),a.contentAttr="_ngcontent-%COMP%".replace(E,i+"-"+o.id),a.hostAttr="_nghost-%COMP%".replace(E,i+"-"+o.id),a}return b(n,[{key:"applyToHost",value:function(e){r(v(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var o=r(v(n.prototype),"createElement",this).call(this,e,t);return r(v(n.prototype),"setAttribute",this).call(this,o,this.contentAttr,""),o}}]),n}(A),I=function(e){f(n,e);var t=d(n);function n(e,r,o,i){var a;w(this,n),(a=t.call(this,e)).sharedStylesHost=r,a.hostEl=o,a.shadowRoot=o.attachShadow({mode:"open"}),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=T(i.id,i.styles,[]),u=0;u<s.length;u++){var c=document.createElement("style");c.textContent=s[u],a.shadowRoot.appendChild(c)}return a}return b(n,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,t){return r(v(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,o){return r(v(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,o)}},{key:"removeChild",value:function(e,t){return r(v(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(r(v(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}(A),P=function(){var e=function(e){f(n,e);var t=d(n);function n(e){return w(this,n),t.call(this,e)}return b(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var r=this;return e.addEventListener(t,n,!1),function(){return r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(g);return e.\u0275fac=function(t){return new(t||e)(a.LFG(i.K0))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),M=["alt","control","meta","shift"],N={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},j={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},D={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},L=function(){var e=function(e){f(n,e);var t=d(n);function n(e){return w(this,n),t.call(this,e)}return b(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,r){var o=n.parseEventName(t),a=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return(0,i.q)().onAndCancel(e,o.domEventName,a)})}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(t.pop()),i="";
1if(M.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),i+=e+".")}),i+=o,0!=t.length||0===o.length)return null;var a={};return a.domEventName=r,a.fullKey=i,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&j.hasOwnProperty(t)&&(t=j[t]))}return N[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),M.forEach(function(r){r!=n&&(0,D[r])(e)&&(t+=r+".")}),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(o){n.getEventFullKey(o)===e&&r.runGuarded(function(){return t(o)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(g);return e.\u0275fac=function(t){return new(t||e)(a.LFG(i.K0))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),F=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,a.Yz7)({factory:function(){return(0,a.LFG)(U)},token:e,providedIn:"root"}),e}();function B(e){return new U(e.get(i.K0))}var U=function(){var e=function(e){f(n,e);var t=d(n);function n(e){var r;return w(this,n),(r=t.call(this))._doc=e,r}return b(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case a.q3G.NONE:return t;case a.q3G.HTML:return(0,a.qzn)(t,"HTML")?(0,a.z3N)(t):(0,a.EiD)(this._doc,String(t)).toString();case a.q3G.STYLE:return(0,a.qzn)(t,"Style")?(0,a.z3N)(t):t;case a.q3G.SCRIPT:if((0,a.qzn)(t,"Script"))return(0,a.z3N)(t);throw new Error("unsafe value used in a script context");case a.q3G.URL:return(0,a.yhl)(t),(0,a.qzn)(t,"URL")?(0,a.z3N)(t):(0,a.mCW)(String(t));case a.q3G.RESOURCE_URL:if((0,a.qzn)(t,"ResourceURL"))return(0,a.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return(0,a.JVY)(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return(0,a.L6k)(e)}},{key:"bypassSecurityTrustScript",value:function(e){return(0,a.eBb)(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return(0,a.LAX)(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return(0,a.pB0)(e)}}]),n}(F);return e.\u0275fac=function(t){return new(t||e)(a.LFG(i.K0))},e.\u0275prov=(0,a.Yz7)({factory:function(){return B((0,a.LFG)(a.gxx))},token:e,providedIn:"root"}),e}(),q=(0,a.eFA)(a._c5,"browser",[{provide:a.Lbi,useValue:i.bD},{provide:a.g9A,useValue:function(){s.makeCurrent(),h.init()},multi:!0},{provide:i.K0,useFactory:function(){return(0,a.RDi)(document),document},deps:[]}]),H=[[],{provide:a.zSh,useValue:"root"},{provide:a.qLn,useFactory:function(){return new a.qLn},deps:[]},{provide:m,useClass:P,multi:!0,deps:[i.K0,a.R0b,a.Lbi]},{provide:m,useClass:L,multi:!0,deps:[i.K0]},[],{provide:O,useClass:O,deps:[y,k,a.AFp]},{provide:a.FYo,useExisting:O},{provide:_,useExisting:k},{provide:k,useClass:k,deps:[i.K0]},{provide:a.dDg,useClass:a.dDg,deps:[a.R0b]},{provide:y,useClass:y,deps:[m,a.R0b]},{provide:i.JF,useClass:p,deps:[]},[]],z=function(){var e=function(){function e(t){if(w(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return b(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:a.AFp,useValue:t.appId},{provide:c,useExisting:a.AFp},l]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(e,12))},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:H,imports:[i.ez,a.hGG]}),e}();"undefined"!=typeof window&&window},26239:function(e,t,r){"use strict";r.d(t,{gz:function(){return tt},y6:function(){return vn},OD:function(){return W},eC:function(){return fe},wm:function(){return Rn},wN:function(){return hn},F0:function(){return Cn},rH:function(){return En},Bz:function(){return Fn},lC:function(){return xn},Hx:function(){return Pe}});var o=r(61116),i=r(35366),u=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),c=r(71784),l=r(19764),h=r(70653);function p(e){return new c.y(function(t){var n;try{n=e()}catch(r){return void t.error(r)}return(n?(0,l.D)(n):(0,h.c)()).subscribe(t)})}var y=r(40878),v=r(78512),g=r(31305),_=r(47930),k=r(42875),S=r(55959),C=r(43835),E=r(4991),T=r(96673);function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R;return function(t){return t.lift(new O(e))}}var O=function(){function e(t){w(this,e),this.errorFactory=t}return b(e,[{key:"call",value:function(e,t){return t.subscribe(new A(e,this.errorFactory)
1)}}]),e}(),A=function(e){f(n,e);var t=d(n);function n(e,r){var o;return w(this,n),(o=t.call(this,e)).errorFactory=r,o.hasValue=!1,o}return b(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(T.L);function R(){return new u}var I=r(7768),P=r(13392),M=r(90611);function N(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?(0,C.h)(function(t,n){return e(t,n,r)}):P.y,(0,M.q)(1),n?(0,I.d)(t):x(function(){return new u}))}}var j=r(87570),D=function(){function e(t){w(this,e),this.callback=t}return b(e,[{key:"call",value:function(e,t){return t.subscribe(new L(e,this.callback))}}]),e}(),L=function(e){f(n,e);var t=d(n);function n(e,r){var o;return w(this,n),(o=t.call(this,e)).add(new j.w(r)),o}return n}(T.L),F=r(79996),B=r(44689),U=r(56238),q=r(2023),H=r(47727),z=r(436),G=r(73982),V=r(66599),$=r(21564),K=r(97471),Y=function e(t,n){w(this,e),this.id=t,this.url=n},W=function(e){f(n,e);var t=d(n);function n(e,r){var o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return w(this,n),(o=t.call(this,e,r)).navigationTrigger=i,o.restoredState=a,o}return b(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Y),X=function(e){f(n,e);var t=d(n);function n(e,r,o){var i;return w(this,n),(i=t.call(this,e,r)).urlAfterRedirects=o,i}return b(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Y),Z=function(e){f(n,e);var t=d(n);function n(e,r,o){var i;return w(this,n),(i=t.call(this,e,r)).reason=o,i}return b(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Y),J=function(e){f(n,e);var t=d(n);function n(e,r,o){var i;return w(this,n),(i=t.call(this,e,r)).error=o,i}return b(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Y),Q=function(e){f(n,e);var t=d(n);function n(e,r,o,i){var a;return w(this,n),(a=t.call(this,e,r)).urlAfterRedirects=o,a.state=i,a}return b(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Y),ee=function(e){f(n,e);var t=d(n);function n(e,r,o,i){var a;return w(this,n),(a=t.call(this,e,r)).urlAfterRedirects=o,a.state=i,a}return b(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Y),te=function(e){f(n,e);var t=d(n);function n(e,r,o,i,a){var s;return w(this,n),(s=t.call(this,e,r)).urlAfterRedirects=o,s.state=i,s.shouldActivate=a,s}return b(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(Y),ne=function(e){f(n,e);var t=d(n);function n(e,r,o,i){var a;return w(this,n),(a=t.call(this,e,r)).urlAfterRedirects=o,a.state=i,a}return b(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Y),re=function(e){f(n,e);var t=d(n);function n(e,r,o,i){var a;return w(this,n),(a=t.call(this,e,r)).urlAfterRedirects=o,a.state=i,a}return b(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Y),oe=function(){function e(t){w(this,e),this.route=t}return b(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),ie=function(){function e(t){w(this,e),this.route=t}return b(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),ae=function(){function e(t){w(this,e),this.snapshot=t}return b(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),se=function(){function e(t){w(this,e),this.snapshot=t}return b(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),ue=function(){function e(t){w(this,e),this.snapshot=t}return b(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),ce=function(){function e(t){w(this,e),this.snapshot=t}return b(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),le=function(){function e(t,n,r){w(this,e),this.routerEvent=t,this.position=n,this.anchor=r}return b(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),fe="primary",he=function(){function e(t){w(this,e),this.params=t||{}}return b(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function de(e){return new he(e)}function pe(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function me(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;for(var o={},i=0;i<r.length;i++){var a=r[i],s=e[i];if(a.startsWith(":"))o[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:e.slice(0,r.length),posParams:o}}function ye(e,t){var n,r=e?Object.keys(e):void 0,o=t?Object.keys(t):void 0;if(!r||!o||r.length!=o.length)return!1;for(var i=0;i<r.length;i++)if(!ve(e[n=r[i]],t[n]))return!1;return!0}function ve(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;var n=a(e).sort(),r=a(t).sort();return n.every(function(e,t){return r[t]===e})}return e===t}function ge(e){return Array.prototype.concat.apply([],e)}function be(e){return e.length>0?e[e.length-1]:null}function we(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function _e(e){return(0,i.CqO)(e)?e:(0,i.QGY)(e)?(0,l.D)(Promise.resolve(e)):(0,y.of)(e)}var ke={exact:function e(t,n,r){if(!Ie(t.segments,n.segments))return!1;if(!xe(t.segments,n.segments,r))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var o in n.children){if(!t.children[o])return!1;if(!e(t.children[o],n.children[o],r))return!1}return!0},subset:Ee},Se={exact:function(e,t){return ye(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return ve(e[n],t[n])})},ignored:function(){return!0}};function Ce(e,t,n){return ke[n.paths](e.root,t.root,n.matrixParams)&&Se[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Ee(e,t,n){return Te(e,t,t.segments,n)}function Te(e,t,n,r){if(e.segments.length>n.length){var o=e.segments.slice(0,n.length);return!!Ie(o,n)&&!t.hasChildren()&&!!xe(o,n,r)}if(e.segments.length===n.length){if(!Ie(e.segments,n))return!1;if(!xe(e.segments,n,r))return!1;for(var i in t.children){if(!e.children[i])return!1;if(!Ee(e.children[i],t.children[i],r))return!1}return!0}var a=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!Ie(e.segments,a)&&!!xe(e.segments,a,r)&&!!e.children[fe]&&Te(e.children[fe],t,s,r)}function xe(e,t,n){return t.every(function(t,r){return Se[n](e[r].parameters,t.parameters)})}var Oe=function(){function e(t,n,r){w(this,e),this.root=t,this.queryParams=n,this.fragment=r}return b(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=de(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Ne.serialize(this)}}]),e}(),Ae=function(){function e(t,n){var r=this;w(this,e),this.segments=t,this.children=n,this.parent=null,we(n,function(e,t){return e.parent=r})}return b(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return je(this)}}]),e}(),Re=function(){function e(t,n){w(this,e),this.path=t,this.parameters=n}return b(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=de(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return He(this)}}]),e}();function Ie(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var Pe=function e(){w(this,e)},Me=function(){function e(){w(this,e)}return b(e,[{key:"parse",value:function(e){var t=new Ke(e);return new Oe(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,r;return"/".concat(De(e.root,!0)).concat((n=e.queryParams,r=Object.keys(n).map(function(e){var t=n[e];return Array.isArray(t)?t.map(function(t){return"".concat(Fe(e),"=").concat(Fe(t))}).join("&"):"".concat(Fe(e),"=").concat(Fe(t))}),r.length?"?".concat(r.join("&")):"")).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),Ne=new Me;function je(e){return e.segments.map(function(e){return He(e)}).join("/")}function De(e,t){if(!e.hasChildren())return je(e);if(t){var n=e.children[fe]?De(e.children[fe],!1):"",r=[];return we(e.children,function(e,t){t!==fe&&r.push("".concat(t,":").concat(De(e,!1))
1)}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var o=function(e,t){var n=[];return we(e.children,function(e,r){r===fe&&(n=n.concat(t(e,r)))}),we(e.children,function(e,r){r!==fe&&(n=n.concat(t(e,r)))}),n}(e,function(t,n){return n===fe?[De(e.children[fe],!1)]:["".concat(n,":").concat(De(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[fe]?"".concat(je(e),"/").concat(o[0]):"".concat(je(e),"/(").concat(o.join("//"),")")}function Le(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Fe(e){return Le(e).replace(/%3B/gi,";")}function Be(e){return Le(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ue(e){return decodeURIComponent(e)}function qe(e){return Ue(e.replace(/\+/g,"%20"))}function He(e){return"".concat(Be(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(Be(e),"=").concat(Be(t[e]))}).join("")));var t}var ze=/^[^\/()?;=#]+/;function Ge(e){var t=e.match(ze);return t?t[0]:""}var Ve=/^[^=?&#]+/,$e=/^[^?&#]+/,Ke=function(){function e(t){w(this,e),this.url=t,this.remaining=t}return b(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ae([],{}):new Ae([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[fe]=new Ae(e,t)),n}},{key:"parseSegment",value:function(){var e=Ge(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Re(Ue(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Ge(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=Ge(this.remaining);r&&(n=r,this.capture(n))}e[Ue(t)]=Ue(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Ve);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=function(e){var t=e.match($e);return t?t[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var o=qe(t),i=qe(n);if(e.hasOwnProperty(o)){var a=e[o];Array.isArray(a)||(a=[a],e[o]=a),a.push(i)}else e[o]=i}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Ge(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(
1o=fe);var i=this.parseChildren();t[o]=1===Object.keys(i).length?i[fe]:new Ae([],i),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Ye=function(){function e(t){w(this,e),this._root=t}return b(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=We(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=We(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=Xe(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return Xe(e,this._root).map(function(e){return e.value})}}]),e}();function We(e,t){if(e===t.value)return t;var n,r=s(t.children);try{for(r.s();!(n=r.n()).done;){var o=We(e,n.value);if(o)return o}}catch(i){r.e(i)}finally{r.f()}return null}function Xe(e,t){if(e===t.value)return[t];var n,r=s(t.children);try{for(r.s();!(n=r.n()).done;){var o=Xe(e,n.value);if(o.length)return o.unshift(t),o}}catch(i){r.e(i)}finally{r.f()}return[]}var Ze=function(){function e(t,n){w(this,e),this.value=t,this.children=n}return b(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function Je(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var Qe=function(e){f(n,e);var t=d(n);function n(e,r){var o;return w(this,n),(o=t.call(this,e)).snapshot=r,it(m(o),e),o}return b(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Ye);function et(e,t){var n=function(e,t){var n=new rt([],{},{},"",{},fe,t,null,e.root,-1,{});return new ot("",new Ze(n,[]))}(e,t),r=new v.X([new Re("",{})]),o=new v.X({}),i=new v.X({}),a=new v.X({}),s=new v.X(""),u=new tt(r,o,a,s,i,fe,t,n.root);return u.snapshot=n.root,new Qe(new Ze(u,[]),n)}var tt=function(){function e(t,n,r,o,i,a,s,u){w(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=a,this.component=s,this._futureSnapshot=u}return b(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,F.U)(function(e){return de(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,F.U)(function(e){return de(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var o=n[r],i=n[r-1];
1if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var rt=function(){function e(t,n,r,o,i,a,s,u,c,l,f){w(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=l,this._resolve=f}return b(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=de(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=de(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),ot=function(e){f(n,e);var t=d(n);function n(e,r){var o;return w(this,n),(o=t.call(this,r)).url=e,it(m(o),r),o}return b(n,[{key:"toString",value:function(){return at(this._root)}}]),n}(Ye);function it(e,t){t.value._routerState=e,t.children.forEach(function(t){return it(e,t)})}function at(e){var t=e.children.length>0?" { ".concat(e.children.map(at).join(", ")," } "):"";return"".concat(e.value).concat(t)}function st(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ye(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ye(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!ye(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),ye(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function ut(e,t){var n,r;return ye(e.params,t.params)&&Ie(n=e.url,r=t.url)&&n.every(function(e,t){return ye(e.parameters,r[t].parameters)})&&!(!e.parent!=!t.parent)&&(!e.parent||ut(e.parent,t.parent))}function ct(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){var r=n.value;r._futureSnapshot=t.value;var o=function(e,t,n){return t.children.map(function(t){var r,o=s(n.children);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(e.shouldReuseRoute(t.value,i.value.snapshot))return ct(e,t,i)}}catch(a){o.e(a)}finally{o.f()}return ct(e,t)})}(e,t,n);return new Ze(r,o)}if(e.shouldAttach(t.value)){var i=e.retrieve(t.value);if(null!==i){var a=i.route;return lt(t,a),a}}var u,c=new tt(new v.X((u=t.value).url),new v.X(u.params),new v.X(u.queryParams),new v.X(u.fragment),new v.X(u.data),u.outlet,u.component,u),l=t.children.map(function(t){return ct(e,t)});return new Ze(c,l)}function lt(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)lt(e.children[n],t.children[n])}function ft(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ht(e){return"object"==typeof e&&null!=e&&e.outlets}function dt(e,t,n,r,o){var i={};return r&&we(r,function(e,t){i[t]=Array.isArray(e)?e.map(function(e){return"".concat(e)}):"".concat(e)}),new Oe(n.root===e?t:pt(n.root,e,t),i,o)}function pt(e,t,n){var r={};return we(e.children,function(e,o){r[o]=e===t?n:pt(e,t,n)}),new Ae(e.segments,r)}var mt=function(){function e(t,n,r){if(w(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ft(r[0]))throw new Error("Root segment cannot have matrix parameters");var o=r.find(ht);if(o&&o!==be(r))throw new Error("{outlets:{}} has to be the last command")}return b(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),yt=function e(t,n,r){w(this,e),this.segmentGroup=t,this.processChildren=n,this.index=r};function vt(e,t,n){if(e||(e=new Ae([],{})),0===e.segments.length&&e.hasChildren())return gt(e,t,n);var r=function(e,t,n){for(var r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};o<e.segments.length;){if(r>=n.length)return i;var a=e.segments[o],s=n[r];if(ht(s))break;var u="".concat(s),c=r<n.length-1?n[r+1]:null;if(o>0&&void 0===u)break;if(u&&c&&"object"==typeof c&&void 0===c.outlets){if(!kt(u,c,a))return i;r+=2}else{if(!kt(u,{},a))return i;r++}
1o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){var i=new Ae(e.segments.slice(0,r.pathIndex),{});return i.children[fe]=new Ae(e.segments.slice(r.pathIndex),e.children),gt(i,0,o)}return r.match&&0===o.length?new Ae(e.segments,{}):r.match&&!e.hasChildren()?bt(e,t,n):r.match?gt(e,0,o):bt(e,t,n)}function gt(e,t,r){if(0===r.length)return new Ae(e.segments,{});var o=function(e){return ht(e[0])?e[0].outlets:n({},fe,e)}(r),i={};return we(o,function(n,r){"string"==typeof n&&(n=[n]),null!==n&&(i[r]=vt(e.children[r],t,n))}),we(e.children,function(e,t){void 0===o[t]&&(i[t]=e)}),new Ae(e.segments,i)}function bt(e,t,n){for(var r=e.segments.slice(0,t),o=0;o<n.length;){var i=n[o];if(ht(i)){var a=wt(i.outlets);return new Ae(r,a)}if(0===o&&ft(n[0]))r.push(new Re(e.segments[t].path,_t(n[0]))),o++;else{var s=ht(i)?i.outlets[fe]:"".concat(i),u=o<n.length-1?n[o+1]:null;s&&u&&ft(u)?(r.push(new Re(s,_t(u))),o+=2):(r.push(new Re(s,{})),o++)}}return new Ae(r,{})}function wt(e){var t={};return we(e,function(e,n){"string"==typeof e&&(e=[e]),null!==e&&(t[n]=bt(new Ae([],{}),0,e))}),t}function _t(e){var t={};return we(e,function(e,n){return t[n]="".concat(e)}),t}function kt(e,t,n){return e==n.path&&ye(t,n.parameters)}var St=function(){function e(t,n,r,o){w(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o}return b(e,[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),st(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var r=this,o=Je(t);e.children.forEach(function(e){var t=e.value.outlet;r.deactivateRoutes(e,o[t],n),delete o[t]}),we(o,function(e,t){r.deactivateRouteAndItsChildren(e,n)})}},{key:"deactivateRoutes",value:function(e,t,n){var r=e.value,o=t?t.value:null;if(r===o)if(r.component){var i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(e,t,i.children)}else this.deactivateChildRoutes(e,t,n);else o&&this.deactivateRouteAndItsChildren(t,n)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),o=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:r,route:e,contexts:o})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){for(var n=t.getContext(e.value.outlet),r=n&&e.value.component?n.children:t,o=Je(e),i=0,a=Object.keys(o);i<a.length;i++){var s=a[i];this.deactivateRouteAndItsChildren(o[s],r)}n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}},{key:"activateChildRoutes",value:function(e,t,n){var r=this,o=Je(t);e.children.forEach(function(e){r.activateRoutes(e,o[e.value.outlet],n),r.forwardEvent(new ce(e.value.snapshot))}),e.children.length&&this.forwardEvent(new se(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var r=e.value,o=t?t.value:null;if(st(r),r===o)if(r.component){var i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,i.children)}else this.activateChildRoutes(e,t,n);else if(r.component){var a=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Ct(s.route)}else{var u=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(r.snapshot),c=u?u.module.componentFactoryResolver:null;a.attachRef=null,a.route=r,a.resolver=c,a.outlet&&a.outlet.activateWith(r,c),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();
1function Ct(e){st(e.value),e.children.forEach(Ct)}var Et=function e(t,n){w(this,e),this.routes=t,this.module=n};function Tt(e){return"function"==typeof e}function xt(e){return e instanceof Oe}var Ot=Symbol("INITIAL_VALUE");function At(){return(0,B.w)(function(e){return(0,g.aj)(e.map(function(e){return e.pipe((0,M.q)(1),(0,U.O)(Ot))})).pipe((0,q.R)(function(e,t){var n=!1;return t.reduce(function(e,r,o){if(e!==Ot)return e;if(r===Ot&&(n=!0),!n){if(!1===r)return r;if(o===t.length-1||xt(r))return r}return e},e)},Ot),(0,C.h)(function(e){return e!==Ot}),(0,F.U)(function(e){return xt(e)?e:!0===e}),(0,M.q)(1))})}var Rt=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Xpm({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},directives:function(){return[xn]},encapsulation:2}),e}();function It(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var r=e[n];Pt(r,Mt(t,r))}}function Pt(e,t){e.children&&It(e.children,t)}function Mt(e,t){return t?e||t.path?e&&!t.path?"".concat(e,"/"):!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function Nt(e){var t=e.children&&e.children.map(Nt),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==fe&&(n.component=Rt),n}function jt(e){return e.outlet||fe}function Dt(e,t){var n=e.filter(function(e){return jt(e)===t});return n.push.apply(n,a(e.filter(function(e){return jt(e)!==t}))),n}var Lt={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ft(e,t,n){var r;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},Lt):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var o=(t.matcher||me)(n,e,t);if(!o)return Object.assign({},Lt);var i={};we(o.posParams,function(e,t){i[t]=e.path});var a=o.consumed.length>0?Object.assign(Object.assign({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:a,positionalParamSegments:null!==(r=o.posParams)&&void 0!==r?r:{}}}function Bt(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return Ut(e,t,n)&&jt(n)!==fe})}(e,n,r)){var i=new Ae(t,function(e,t,n,r){var o={};o[fe]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var i,a=s(n);try{for(a.s();!(i=a.n()).done;){var u=i.value;if(""===u.path&&jt(u)!==fe){var c=new Ae([],{});c._sourceSegment=e,c._segmentIndexShift=t.length,o[jt(u)]=c}}}catch(l){a.e(l)}finally{a.f()}return o}(e,t,r,new Ae(n,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return Ut(e,t,n)})}(e,n,r)){var a=new Ae(e.segments,function(e,t,n,r,o,i){var a,u={},c=s(r);try{for(c.s();!(a=c.n()).done;){var l=a.value;if(Ut(e,n,l)&&!o[jt(l)]){var f=new Ae([],{});f._sourceSegment=e,f._segmentIndexShift="legacy"===i?e.segments.length:t.length,u[jt(l)]=f}}}catch(h){c.e(h)}finally{c.f()}return Object.assign(Object.assign({},o),u)}(e,t,n,r,e.children,o));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var u=new Ae(e.segments,e.children);return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}function Ut(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function qt(e,t,n,r){return!!(jt(e)===r||r!==fe&&Ut(t,n,e))&&("**"===e.path||Ft(t,e,n).matched)}function Ht(e,t,n){return 0===t.length&&!e.children[n]}var zt=function e(t){w(this,e),this.segmentGroup=t||null},Gt=function e(t){w(this,e),this.urlTree=t};function Vt(e){return new c.y(function(t){return t.error(new zt(e))})}function $t(e){return new c.y(function(t){return t.error(new Gt(e))})}function Kt(e){return new c.y(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var Yt=function(){function e(t,n,r,o,a){w(this,e),this.configLoader=n,this.urlSerializer
1=r,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(i.h0i)}return b(e,[{key:"apply",value:function(){var e=this,t=Bt(this.urlTree.root,[],[],this.config).segmentGroup,n=new Ae(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,fe).pipe((0,F.U)(function(t){return e.createUrlTree(Wt(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe((0,H.K)(function(t){if(t instanceof Gt)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof zt)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,fe).pipe((0,F.U)(function(n){return t.createUrlTree(Wt(n),e.queryParams,e.fragment)})).pipe((0,H.K)(function(e){if(e instanceof zt)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,r){var o=e.segments.length>0?new Ae([],n({},fe,e)):e;return new Oe(o,t,r)}},{key:"expandSegmentGroup",value:function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe((0,F.U)(function(e){return new Ae([],e)})):this.expandSegment(e,n,t,n.segments,r,!0)}},{key:"expandChildren",value:function(e,t,n){for(var r=this,o=[],i=0,a=Object.keys(n.children);i<a.length;i++){var s=a[i];"primary"===s?o.unshift(s):o.push(s)}return(0,l.D)(o).pipe((0,z.b)(function(o){var i=n.children[o],a=Dt(t,o);return r.expandSegmentGroup(e,a,i,o).pipe((0,F.U)(function(e){return{segment:e,outlet:o}}))}),(0,q.R)(function(e,t){return e[t.outlet]=t.segment,e},{}),function(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?(0,C.h)(function(t,n){return e(t,n,r)}):P.y,(0,E.h)(1),n?(0,I.d)(t):x(function(){return new u}))}}())}},{key:"expandSegment",value:function(e,t,n,r,o,i){var a=this;return(0,l.D)(n).pipe((0,z.b)(function(s){return a.expandSegmentAgainstRoute(e,t,n,s,r,o,i).pipe((0,H.K)(function(e){if(e instanceof zt)return(0,y.of)(null);throw e}))}),N(function(e){return!!e}),(0,H.K)(function(e,n){if(e instanceof u||"EmptyError"===e.name){if(Ht(t,r,o))return(0,y.of)(new Ae([],{}));throw new zt(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,r,o,i,a){return qt(r,t,o,i)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,o,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,o,i):Vt(t):Vt(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,o,i)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?$t(i):this.lineralizeSegments(n,i).pipe((0,G.zg)(function(n){var i=new Ae(n,{});return o.expandSegment(e,i,t,n,r,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,o,i){var a=this,s=Ft(t,r,o),u=s.matched,c=s.consumedSegments,l=s.lastChild,f=s.positionalParamSegments;if(!u)return Vt(t);var h=this.applyRedirectCommands(c,r.redirectTo,f);return r.redirectTo.startsWith("/")?$t(h):this.lineralizeSegments(r,h).pipe((0,G.zg)(function(r){return a.expandSegment(e,t,n,r.concat(o.slice(l)),i,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r,o){var i=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,y.of)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe((0,F.U)(function(e){return n._loadedConfig=e,new Ae(r,{})})):(0,y.of)(new Ae(r,{}));var a=Ft(t,n,r),s=a.matched,u=a.consumedSegments,c=a.lastChild;if(!s)return Vt(t);var l=r.slice(c);return this.getChildConfig(e,n,r).pipe((0,G.zg)(function(e){var r=e.module,a=e.routes,s=Bt(t,u,l,a),c=s.segmentGroup,f=s.slicedSegments,h=new Ae(c.segments,c.children);if(0===f.length&&h.hasChildren())return i.expandChildren(r,a,h).pipe((0,F.U)(function(e){return new Ae(u,e)}));if(0===a.length&&0===f.length)return(0,y.of)(new Ae(u,{}));var d=jt(n)===o;return i.expandSegment(r,h,a,f,d?fe:o,!0).pipe((0,F.U)(function(e){return new Ae(u.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var r=this;return t.children?(0,y.of)(new Et(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?(0,y.of)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe((0,G.zg)(function(n){return n?r.configLoader.load(e.injector,t).pipe((0,F.U)(function(e){return t._loadedConfig=e,e})):function(e){return new c.y(function(t){return t.error(pe("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):(0,y.of)(new Et([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var r=this,o=t.canLoad;if(!o||0===o.length)return(0,y.of)(!0);var i=o.map(function(r){var o,i=e.get(r);if(function(e){return e&&Tt(e.canLoad)}(i))o=i.canLoad(t,n);else{if(!Tt(i))throw new Error("Invalid CanLoad guard");o=i(t,n)}return _e(o)});return(0,y.of)(i).pipe(At(),(0,V.b)(function(e){if(xt(e)){var t=pe('Redirecting to "'.concat(r.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),(0,F.U)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return(0,y.of)(n);if(r.numberOfChildren>1||!r.children[fe])return Kt(e.redirectTo);r=r.children[fe]}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,r){var o=this.createSegmentGroup(e,t.root,n,r);return new Oe(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return we(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var o=e.substring(1);n[r]=t[o]}else n[r]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,r){var o=this,i=this.createSegments(e,t.segments,n,r),a={};return we(t.children,function(t,i){a[i]=o.createSegmentGroup(e,t,n,r)}),new Ae(i,a)}},{key:"createSegments",value:function(e,t,n,r){var o=this;return t.map(function(t){return t.path.startsWith(":")?o.findPosParam(e,t,r):o.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return r}},{key:"findOrReturn",value:function(e,t){var n,r=0,o=s(t);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.path===e.path)return t.splice(r),i;r++}}catch(a){o.e(a)}finally{o.f()}return e}}]),e}();function Wt(e){for(var t={},n=0,r=Object.keys(e.children);n<r.length;n++){var o=r[n],i=Wt(e.children[o]);(i.segments.length>0||i.hasChildren())&&(t[o]=i)}return function(e){if(1===e.numberOfChildren&&e.children[fe]){var t=e.children[fe];return new Ae(e.segments.concat(t.segments),t.children)}return e}(new Ae(e.segments,t))}var Xt=function e(t){w(this,e),this.path=t,this.route=this.path[this.path.length-1]},Zt=function e(t,n){w(this,e),this.component=t,this.route=n};function Jt(e,t,n){var r=e._root;return en(r,t?t._root:null,n,[r.value])}function Qt(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function en(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},i=Je(t);
1return e.children.forEach(function(e){!function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},i=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&i.routeConfig===a.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Ie(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Ie(e.url,t.url)||!ye(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ut(e,t)||!ye(e.queryParams,t.queryParams);case"paramsChange":default:return!ut(e,t)}}(a,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new Xt(r)):(i.data=a.data,i._resolvedData=a._resolvedData),en(e,t,i.component?s?s.children:null:n,r,o),u&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new Zt(s.outlet.component,a))}else a&&tn(t,s,o),o.canActivateChecks.push(new Xt(r)),en(e,null,i.component?s?s.children:null:n,r,o)}(e,i[e.value.outlet],n,r.concat([e.value]),o),delete i[e.value.outlet]}),we(i,function(e,t){return tn(e,n.getContext(t),o)}),o}function tn(e,t,n){var r=Je(e),o=e.value;we(r,function(e,r){tn(e,o.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new Zt(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}var nn=function e(){w(this,e)};function rn(e){return new c.y(function(t){return t.error(e)})}var on=function(){function e(t,n,r,o,i,a){w(this,e),this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=a}return b(e,[{key:"recognize",value:function(){var e=Bt(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,fe);if(null===t)return null;var n=new rt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},fe,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ze(n,t),o=new ot(this.url,r);return this.inheritParamsAndData(o._root),o}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,r=nt(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],r=0,o=Object.keys(t.children);r<o.length;r++){var i=o[r],s=t.children[i],u=Dt(e,i),c=this.processSegmentGroup(u,s,i);if(null===c)return null;n.push.apply(n,a(c))}var l=an(n);return l.sort(function(e,t){return e.value.outlet===fe?-1:t.value.outlet===fe?1:e.value.outlet.localeCompare(t.value.outlet)}),l}},{key:"processSegment",value:function(e,t,n,r){var o,i=s(e);try{for(i.s();!(o=i.n()).done;){var a=o.value,u=this.processSegmentAgainstRoute(a,t,n,r);if(null!==u)return u}}catch(c){i.e(c)}finally{i.f()}return Ht(t,n,r)?[]:null}},{key:"processSegmentAgainstRoute",value:function(e,t,n,r){if(e.redirectTo||!qt(e,t,n,r))return null;var o,i=[],a=[];if("**"===e.path){var s=n.length>0?be(n).parameters:{};o=new rt(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cn(e),jt(e),e.component,e,sn(t),un(t)+n.length,ln(e))}else{var u=Ft(t,e,n);if(!u.matched)return null;i=u.consumedSegments,a=n.slice(u.lastChild),o=new rt(i,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cn(e),jt(e),e.component,e,sn(t),un(t)+i.length,ln(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),l=Bt(t,i,a,c.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),f=l.segmentGroup,h=l.slicedSegments;if(0===h.length&&f.hasChildren()){var d=this.processChildren(c,f);return null===d?null:[new Ze(o,d)]}if(0===c.length&&0===h.length)return[new Ze(o,[])];var p=jt(e)===r,m=this.processSegment(c,f,h,p?fe:r);return null===m?null:[new Ze(o,m)]}}]),e}();function an(e){var t,n=[],r=new Set,o=s(e);try{var i=function(){var e,o=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(o))return n.push(o),"continue";var i=n.find(function(e){return o.value.routeConfig===e.value.routeConfig});void 0!==i?((e=i.children).push.apply(e,a(o.children)),r.add(i)):n.push(o)};for(o.s();!(t=o.n()).done;)i()}catch(h){o.e(h)}finally{o.f()}var u,c=s(r);try{for(c.s();!(u=c.n()).done;){var l=u.value,f=an(l.children);n.push(new Ze(l.value,f))}}catch(h){c.e(h)}finally{c.f()}return n.filter(function(e){return!r.has(e)})}function sn(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function un(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function cn(e){return e.data||{}}function ln(e){return e.resolve||{}}function fn(e){return(0,B.w)(function(t){var n=e(t);return n?(0,l.D)(n).pipe((0,F.U)(function(){return t})):(0,y.of)(t)})}var hn=function e(){w(this,e)},dn=function(e){f(n,e);var t=d(n);function n(){return w(this,n),t.apply(this,arguments)}return n}(function(){function e(){w(this,e)}return b(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),pn=new i.OlP("ROUTES"),mn=function(){function e(t,n,r,o){w(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=o}return b(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var r=this.loadModuleFactory(t.loadChildren).pipe((0,F.U)(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var o=r.create(e);return new Et(ge(o.injector.get(pn,void 0,i.XFs.Self|i.XFs.Optional)).map(Nt),o)}),(0,H.K)(function(e){throw t._loader$=void 0,e}));return t._loader$=new k.c(r,function(){return new S.xQ}).pipe((0,$.x)()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?(0,l.D)(this.loader.load(e)):_e(e()).pipe((0,G.zg)(function(e){return e instanceof i.YKP?(0,y.of)(e):(0,l.D)(t.compiler.compileModuleAsync(e))}))}}]),e}(),yn=function e(){w(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new vn,this.attachRef=null},vn=function(){function e(){w(this,e),this.contexts=new Map}return b(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new yn,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),gn=function(){function e(){w(this,e)}return b(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function bn(e){throw e}function wn(e,t,n){return t.parse("/")}function _n(e,t){return(0,y.of)(null)}var kn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Sn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Cn=function(){var e=function(){function e(t,n,r,o,a,s,u,c){var l=this;
1w(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=r,this.location=o,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new S.xQ,this.errorHandler=bn,this.malformedUriErrorHandler=wn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:_n,afterPreactivation:_n},this.urlHandlingStrategy=new gn,this.routeReuseStrategy=new dn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=a.get(i.h0i),this.console=a.get(i.c2e);var f=a.get(i.R0b);this.isNgZoneEnabled=f instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Oe(new Ae([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new mn(s,u,function(e){return l.triggerEvent(new oe(e))},function(e){return l.triggerEvent(new ie(e))}),this.routerState=et(this.currentUrlTree,this.rootComponentType),this.transitions=new v.X({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return b(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe((0,C.h)(function(e){return 0!==e.id}),(0,F.U)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),(0,B.w)(function(e){var r,o,i,a,s=!1,u=!1;return(0,y.of)(e).pipe((0,V.b)(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,B.w)(function(e){var r,o,i,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return(0,y.of)(e).pipe((0,B.w)(function(e){var r=t.transitions.getValue();return n.next(new W(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?h.E:Promise.resolve(e)}),(r=t.ngModule.injector,o=t.configLoader,i=t.urlSerializer,a=t.config,(0,B.w)(function(e){return function(e,t,n,r,o){return new Yt(e,t,n,r,o).apply()}(r,o,i,e.extractedUrl,a).pipe((0,F.U)(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))})),(0,V.b)(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,r,o,i){return(0,G.zg)(function(r){return function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new on(e,t,n,r,o,i).recognize();return null===a?rn(new nn):(0,y.of)(a)}catch(s){return rn(s)}}(e,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,t.serializeUrl(a)),o,i).pipe((0,F.U)(function(e){return Object.assign(Object.assign({},r),{targetSnapshot:e})}));var a})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),(0,V.b)(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects);var r=new Q(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var u=e.id,c=e.extractedUrl,l=e.source,f=e.restoredState,d=e.extras,p=new W(u,t.serializeUrl(c),l,f);n.next(p);var m=et(c,t.rootComponentType).snapshot;return(0,y.of)(Object.assign(Object.assign({},e),{targetSnapshot:m,urlAfterRedirects:c,extras:Object.assign(Object.assign({},d),{skipLocationChange:!1,replaceUrl:!1})}
1))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),h.E}),fn(function(e){var n=e.targetSnapshot,r=e.id,o=e.extractedUrl,i=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:o,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!u})}),(0,V.b)(function(e){var n=new ee(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,F.U)(function(e){return Object.assign(Object.assign({},e),{guards:Jt(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return(0,G.zg)(function(n){var r=n.targetSnapshot,o=n.currentSnapshot,i=n.guards,a=i.canActivateChecks,s=i.canDeactivateChecks;return 0===s.length&&0===a.length?(0,y.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return(0,l.D)(e).pipe((0,G.zg)(function(e){return function(e,t,n,r,o){var i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||0===i.length)return(0,y.of)(!0);var a=i.map(function(i){var a,s=Qt(i,t,o);if(function(e){return e&&Tt(e.canDeactivate)}(s))a=_e(s.canDeactivate(e,t,n,r));else{if(!Tt(s))throw new Error("Invalid CanDeactivate guard");a=_e(s(e,t,n,r))}return a.pipe(N())});return(0,y.of)(a).pipe(At())}(e.component,e.route,n,t,r)}),N(function(e){return!0!==e},!0))}(s,r,o,e).pipe((0,G.zg)(function(n){return n&&"boolean"==typeof n?function(e,t,n,r){return(0,l.D)(t).pipe((0,z.b)(function(t){return(0,_.z)(function(e,t){return null!==e&&t&&t(new ae(e)),(0,y.of)(!0)}(t.route.parent,r),function(e,t){return null!==e&&t&&t(new ue(e)),(0,y.of)(!0)}(t.route,r),function(e,t,n){var r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return p(function(){var o=t.guards.map(function(o){var i,a=Qt(o,t.node,n);if(function(e){return e&&Tt(e.canActivateChild)}(a))i=_e(a.canActivateChild(r,e));else{if(!Tt(a))throw new Error("Invalid CanActivateChild guard");i=_e(a(r,e))}return i.pipe(N())});return(0,y.of)(o).pipe(At())})});return(0,y.of)(o).pipe(At())}(e,t.path,n),function(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return(0,y.of)(!0);var o=r.map(function(r){return p(function(){var o,i=Qt(r,t,n);if(function(e){return e&&Tt(e.canActivate)}(i))o=_e(i.canActivate(t,e));else{if(!Tt(i))throw new Error("Invalid CanActivate guard");o=_e(i(t,e))}return o.pipe(N())})});return(0,y.of)(o).pipe(At())}(e,t.route,n))}),N(function(e){return!0!==e},!0))}(r,a,e,t):(0,y.of)(n)}),(0,F.U)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),(0,V.b)(function(e){if(xt(e.guardsResult)){var n=pe('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var r=new te(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(r)}),(0,C.h)(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new Z(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0}),fn(function(e){if(e.guards.canActivateChecks.length)return(0,y.of)(e).pipe((0,V.b)(function(e){var n=new ne(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,B.w)(function(e){var r,o,i=!1;return(0,y.of)(e).pipe((r=t.paramsInheritanceStrategy,o=t.ngModule.injector,(0,G.zg)(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return(0,y.of)(e);var i=0;return(0,l.D)(n).pipe((0,z.b)(function(e){return function(e,t,n,r){return function(e,t,n,r){var o=Object.keys(e);if(0===o.length)return(0,y.of)({});var i={};return(0,l.D)(o).pipe((0,G.zg)(function(o){return function(e,t,n,r){var o=Qt(e,t,r);return _e(o.resolve?o.resolve(t,n):o(t,n))}(e[o],t,n,r).pipe((0,V.b)(function(e){i[o]=e}))}),(0,E.h)(1),(0,G.zg)(function(){return Object.keys(i).length===o.length?(0,y.of)(i):h.E}))}(e._resolve,e,t,r).pipe((0,F.U)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),nt(e,n).resolve),null}))}(e.route,t,r,o)}),(0,V.b)(function(){return i++}),(0,E.h)(1),(0,G.zg)(function(t){return i===n.length?(0,y.of)(e):h.E}))})),(0,V.b)({next:function(){return i=!0},complete:function(){if(!i){var r=new Z(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(r),e.resolve(!1)}}}))}),(0,V.b)(function(e){var n=new re(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),fn(function(e){var n=e.targetSnapshot,r=e.id,o=e.extractedUrl,i=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:o,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!u})}),(0,F.U)(function(e){var n=function(e,t,n){var r=ct(e,t._root,n?n._root:void 0);return new Qe(r,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),(0,V.b)(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(o=t.rootContexts,i=t.routeReuseStrategy,a=function(e){return t.triggerEvent(e)},(0,F.U)(function(e){return new St(i,e.targetRouterState,e.currentRouterState,a).activate(o),e})),(0,V.b)({next:function(){s=!0},complete:function(){s=!0}}),(r=function(){if(!s&&!u){t.resetUrlToCurrentUrlTree();var r=new Z(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(r),e.resolve(!1)}t.currentNavigation=null},function(e){return e.lift(new D(r))}),(0,H.K)(function(r){if(u=!0,(s=r)&&s.ngNavigationCancelingError){var o=xt(r.url);o||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var i=new Z(e.id,t.serializeUrl(e.extractedUrl),r.message);n.next(i),o?setTimeout(function(){var n=t.urlHandlingStrategy.merge(r.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new J(e.id,t.serializeUrl(e.extractedUrl),r);n.next(a);try{e.resolve(t.errorHandler(r))}catch(c){e.reject(c)}}var s;return h.E}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,r=n.state,o=n.urlTree,i={replaceUrl:!0};if(r){var a=Object.assign({},r);delete a.navigationId,0!==Object.keys(a).length&&(i.state=a)}e.scheduleNavigation(o,t,r,i)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){It(e),this.config=e.map(Nt),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,r=t.queryParams,o=t.fragment,i=t.queryParamsHandling,s=t.preserveFragment,u=n||this.routerState.root,c=s?this.currentUrlTree.fragment:o,l=null;switch(i){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=r||null}return null!==l&&(l=this.removeEmptyProps(l)),function(e,t,n,r,o){if(0===n.length)return dt(t.root,t.root,t,r,o);var i=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new mt(!0,0,e);var t=0,n=!1,r=e.reduce(function(e,r,o){if("object"==typeof r&&null!=r){if(r.outlets){var i={};return we(r.outlets,function(e,t){i[t]="string"==typeof e?e.split("/"):e}),[].concat(a(e),[{outlets:i}])}if(r.segmentPath)return[].concat(a(e),[r.segmentPath])}return"string"!=typeof r?[].concat(a(e),[r]):0===o?(r.split("/").forEach(function(r,o){0==o&&"."===r||(0==o&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[].concat(a(e),[r])},[]);return new mt(n,t,r)}(n);if(i.toRoot())return dt(t.root,new Ae([],{}),t,r,o);var s=function(e,t,n){if(e.isAbsolute)return new yt(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var r=n.snapshot._urlSegment;return new yt(r,r===t.root,0)}var o=ft(e.commands[0])?0:1;return function(e,t,n){for(var r=e,o=t,i=n;i>o;){if(i-=o,!(r=r.parent))throw new Error("Invalid number of '../'");o=r.segments.length}return new yt(r,!1,o-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+o,e.numberOfDoubleDots)}(i,t,e),u=s.processChildren?gt(s.segmentGroup,s.index,i.commands):vt(s.segmentGroup,s.index,i.commands);return dt(s.segmentGroup,u,t,r,o)}(u,this.currentUrlTree,e,l,null!=c?c:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=xt(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(t))}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){var n;
1if(n=!0===t?Object.assign({},kn):!1===t?Object.assign({},Sn):t,xt(e))return Ce(this.currentUrlTree,e,n);var r=this.parseUrl(e);return Ce(this.currentUrlTree,r,n)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null!=r&&(t[n]=r),t},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new X(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,t.resolve(!0)},function(t){e.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(e,t,n,r,o){if(this.disposed)return Promise.resolve(!1);var i,a,s,u=this.getTransition(),c="imperative"!==t&&"imperative"===(null==u?void 0:u.source),l=(this.lastSuccessfulId===u.id||this.currentNavigation?u.rawUrl:u.urlAfterRedirects).toString()===e.toString();if(c&&l)return Promise.resolve(!0);o?(i=o.resolve,a=o.reject,s=o.promise):s=new Promise(function(e,t){i=e,a=t});var f=++this.navigationId;return this.setTransition({id:f,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:i,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(e){return Promise.reject(e)})}},{key:"setBrowserUrl",value:function(e,t,n,r){var o=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(o)||t?this.location.replaceState(o,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(o,"",Object.assign(Object.assign({},r),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.LFG(i.DyG),i.LFG(Pe),i.LFG(vn),i.LFG(o.Ye),i.LFG(i.zs3),i.LFG(i.v3s),i.LFG(i.Sil),i.LFG(void 0))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),En=function(){var e=function(){function e(t,n,r,o,i){w(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new S.xQ,null==r&&o.setAttribute(i.nativeElement,"tabindex","0")}return b(e,[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"onClick",value:function(){var e={skipLocationChange:Tn(this.skipLocationChange),replaceUrl:Tn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Tn(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(Cn),i.Y36(tt),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq))},e.\u0275dir=i.lG2({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[i.TTD]}),e}();function Tn(e){return""===e||!!e}var xn=function(){var e=function(){function e(t,n,r,o,a){w(this,e),this.parentContexts=t,this.location=n,this.resolver=r,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.name=o||fe,t.onChildOutletCreated(this.name,this)}return b(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,o=new On(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(vn),i.Y36(i.s_b),i.Y36(i._Vd),i.$8M("name"),i.Y36(i.sBO))},e.\u0275dir=i.lG2({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e}(),On=function(){function e(t,n,r){w(this,e),this.route=t,this.childContexts=n,this.parent=r}return b(e,[{key:"get",value:function(e,t){return e===tt?this.route:e===vn?this.childContexts:this.parent.get(e,t)}}]),e}(),An=function e(){w(this,e)},Rn=function(){function e(){w(this,e)}return b(e,[{key:"preload",value:function(e,t){return t().pipe((0,H.K)(function(){return(0,y.of)(null)}))}}]),e}(),In=function(){function e(){w(this,e)}return b(e,[{key:"preload",value:function(e,t){return(0,y.of)(null)}}]),e}(),Pn=function(){var e=function(){function e(t,n,r,o,i){w(this,e),this.router=t,this.injector=o,this.preloadingStrategy=i,this.loader=new mn(n,r,function(e){return t.triggerEvent(new oe(e))},function(e){return t.triggerEvent(new ie(e))})}return b(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe((0,C.h)(function(e){return e instanceof X}),(0,z.b)(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(i.h0i);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,r=[],o=s(t);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.loadChildren&&!i.canLoad&&i._loadedConfig){var a=i._loadedConfig;r.push(this.processRoutes(a.module,a.routes))}else i.loadChildren&&!i.canLoad?r.push(this.preloadConfig(e,i)):i.children&&r.push(this.processRoutes(e,i.children))}}catch(u){o.e(u)}finally{o.f()}return(0,l.D)(r).pipe((0,K.J)(),(0,F.U)(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?(0,y.of)(t._loadedConfig):n.loader.load(e.injector,t)).pipe((0,G.zg)(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.LFG(Cn),i.LFG(i.v3s),i.LFG(i.Sil),i.LFG(i.zs3),i.LFG(An))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),Mn=function(){var e=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(this,e),this.router=t,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return b(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof W?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof X&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof le&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new le(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.LFG(Cn),i.LFG(o.EM),i.LFG(void 0))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),Nn=new i.OlP("ROUTER_CONFIGURATION"),jn=new i.OlP("ROUTER_FORROOT_GUARD"),Dn=[o.Ye,{provide:Pe,useClass:Me},{provide:Cn,useFactory:function(e,t,n,r,o,i,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,l=new Cn(null,e,t,n,r,o,i,ge(a));return u&&(l.urlHandlingStrategy=u),c&&(l.routeReuseStrategy=c),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,l),s.enableTracing&&l.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}
1),l},deps:[Pe,vn,o.Ye,i.zs3,i.v3s,i.Sil,pn,Nn,[function(){return function e(){w(this,e)}}(),new i.FiY],[hn,new i.FiY]]},vn,{provide:tt,useFactory:function(e){return e.routerState.root},deps:[Cn]},{provide:i.v3s,useClass:i.EAV},Pn,In,Rn,{provide:Nn,useValue:{enableTracing:!1}}];function Ln(){return new i.PXZ("Router",Cn)}var Fn=function(){var e=function(){function e(t,n){w(this,e)}return b(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Dn,Hn(t),{provide:jn,useFactory:qn,deps:[[Cn,new i.FiY,new i.tp0]]},{provide:Nn,useValue:n||{}},{provide:o.S$,useFactory:Un,deps:[o.lw,[new i.tBr(o.mr),new i.FiY],Nn]},{provide:Mn,useFactory:Bn,deps:[Cn,o.EM,Nn]},{provide:An,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:In},{provide:i.PXZ,multi:!0,useFactory:Ln},[zn,{provide:i.ip1,multi:!0,useFactory:Gn,deps:[zn]},{provide:$n,useFactory:Vn,deps:[zn]},{provide:i.tb,multi:!0,useExisting:$n}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Hn(t)]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.LFG(jn,8),i.LFG(Cn,8))},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({}),e}();function Bn(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Mn(e,t,n)}function Un(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new o.Do(e,t):new o.b0(e,t)}function qn(e){return"guarded"}function Hn(e){return[{provide:i.deG,multi:!0,useValue:e},{provide:pn,multi:!0,useValue:e}]}var zn=function(){var e=function(){function e(t){w(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new S.xQ}return b(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(o.V_,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),r=e.injector.get(Cn),o=e.injector.get(Nn);return"disabled"===o.initialNavigation?(r.setUpLocationChangeListener(),t(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(r.hooks.afterPreactivation=function(){return e.initNavigation?(0,y.of)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Nn),n=this.injector.get(Pn),r=this.injector.get(Mn),o=this.injector.get(Cn),a=this.injector.get(i.z2F);e===a.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||o.initialNavigation(),n.setUpPreloading(),r.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.LFG(i.zs3))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}();function Gn(e){return e.appInitializer.bind(e)}function Vn(e){return e.bootstrapListener.bind(e)}var $n=new i.OlP("Router Initializer")},32488:function(e,t,n){"use strict";n.d(t,{S9:function(){return O},sK:function(){return x},ge:function(){return A},J$:function(){return P},RQ:function(){return M},CH:function(){return N},W2:function(){return I}});var r=n(35366),o=n(61116),i=n(34357),a=n(31002),s=function(){function e(){}return e.getInteractionStatusFromEvent=function(e,t){switch(e.eventType){case i.t.LOGIN_START:return a.$H.Login;case i.t.SSO_SILENT_START:return a.$H.SsoSilent;case i.t.ACQUIRE_TOKEN_START:if(e.interactionType===a.s_.Redirect||e.interactionType===a.s_.Popup)return a.$H.AcquireToken;break;case i.t.HANDLE_REDIRECT_START:return a.$H.HandleRedirect;case i.t.LOGOUT_START:return a.$H.Logout;case i.t.SSO_SILENT_SUCCESS:case i.t.SSO_SILENT_FAILURE:if(t&&t!==a.$H.SsoSilent)break;return a.$H.None;case i.t.LOGOUT_END:if(t&&t!==a.$H.Logout)break;return a.$H.None;case i.t.HANDLE_REDIRECT_END:if(t&&t!==a.$H.HandleRedirect)break;return a.$H.None;case i.t.LOGIN_SUCCESS:case i.t.LOGIN_FAILURE:case i.t.ACQUIRE_TOKEN_SUCCESS:case i.t.ACQUIRE_TOKEN_FAILURE:if(e.interactionType===a.s_.Redirect||e.interactionType===a.s_.Popup){if(t&&t!==a.$H.Login&&t!==a.$H.AcquireToken)break;return a.$H.None}}return null},e}(),u=n(79459),c=n(87346),l=n(95179),f=n(49622),h=n(19764),d=n(74156),p=n(55959),m=n(78512),y=n(40878),v=n(70653),g=n(79996),_=n(436),k=n(47727),S=n(44689),C=n(90611),E=n(43835),T=n(26239),x=new r.OlP("MSAL_INSTANCE"),O=new r.OlP("MSAL_GUARD_CONFIG"),A=new r.OlP("MSAL_INTERCEPTOR_CONFIG"),R=new r.OlP("MSAL_BROADCAST_CONFIG"),I=function(){var e=function(){function e(t,n){w(this,e),this.instance=t,this.location=n;var r=this.location.path(!0).split("#").pop();r&&(this.redirectHash="#".concat(r)),this.instance.initializeWrapperLibrary(a.lA.Angular,"2.5.7")}return b(e,[{key:"initialize",value:function(){return(0,h.D)(this.instance.initialize())}},{key:"acquireTokenPopup",value:function(e){return(0,h.D)(this.instance.acquireTokenPopup(e))}},{key:"acquireTokenRedirect",value:function(e){return(0,h.D)(this.instance.acquireTokenRedirect(e))}},{key:"acquireTokenSilent",value:function(e){return(0,h.D)(this.instance.acquireTokenSilent(e))}},{key:"handleRedirectObservable",value:function(e){return(0,h.D)(this.instance.handleRedirectPromise(e||this.redirectHash))}},{key:"loginPopup",value:function(e){return(0,h.D)(this.instance.loginPopup(e))}},{key:"loginRedirect",value:function(e){return(0,h.D)(this.instance.loginRedirect(e))}},{key:"logout",value:function(e){return(0,h.D)(this.instance.logout(e))}},{key:"logoutRedirect",value:function(e){return(0,h.D)(this.instance.logoutRedirect(e))}},{key:"logoutPopup",value:function(e){return(0,h.D)(this.instance.logoutPopup(e))}},{key:"ssoSilent",value:function(e){return(0,h.D)(this.instance.ssoSilent(e))}},{key:"getLogger",value:function(){return this.logger||(this.logger=this.instance.getLogger().clone("@azure/msal-angular","2.5.7")),this.logger}},{key:"setLogger",value:function(e){this.logger=e.clone("@azure/msal-angular","2.5.7"),this.instance.setLogger(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(x),r.LFG(o.Ye))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),P=function(){var e=function e(t,n,r){var o=this;w(this,e),this.msalInstance=t,this.authService=n,this.msalBroadcastConfig=r,this.msalBroadcastConfig&&this.msalBroadcastConfig.eventsToReplay>0?(this.authService.getLogger().verbose("BroadcastService - replayPastEvents set on BroadcastConfig, replaying the last ".concat(this.msalBroadcastConfig.eventsToReplay," events")),this._msalSubject=ne
1w d.t(this.msalBroadcastConfig.eventsToReplay)):this._msalSubject=new p.xQ,this.msalSubject$=this._msalSubject.asObservable(),this._inProgress=new m.X(a.$H.Startup),this.inProgress$=this._inProgress.asObservable(),this.msalInstance.addEventCallback(function(e){o._msalSubject.next(e);var t=s.getInteractionStatusFromEvent(e,o._inProgress.value);null!==t&&(o.authService.getLogger().verbose("BroadcastService - ".concat(e.eventType," results in setting inProgress from ").concat(o._inProgress.value," to ").concat(t)),o._inProgress.next(t))})};return e.\u0275fac=function(t){return new(t||e)(r.LFG(x),r.LFG(I),r.LFG(R,8))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),M=function(){var e=function(){function e(t,n,r,o,i){w(this,e),this.msalGuardConfig=t,this.msalBroadcastService=n,this.authService=r,this.location=o,this.router=i,this.msalBroadcastService.inProgress$.subscribe()}return b(e,[{key:"parseUrl",value:function(e){return this.router.parseUrl(e)}},{key:"getDestinationUrl",value:function(e){this.authService.getLogger().verbose("Guard - getting destination url");var t=document.getElementsByTagName("base"),n=this.location.normalize(t.length?t[0].href:window.location.origin),r=this.location.prepareExternalUrl(e);return r.startsWith("#")?(this.authService.getLogger().verbose("Guard - destination by hash routing"),"".concat(n,"/").concat(r)):"".concat(n).concat(e)}},{key:"loginInteractively",value:function(e){var t=this,n="function"==typeof this.msalGuardConfig.authRequest?this.msalGuardConfig.authRequest(this.authService,e):Object.assign({},this.msalGuardConfig.authRequest);if(this.msalGuardConfig.interactionType===a.s_.Popup)return this.authService.getLogger().verbose("Guard - logging in by popup"),this.authService.loginPopup(n).pipe((0,g.U)(function(e){return t.authService.getLogger().verbose("Guard - login by popup successful, can activate, setting active account"),t.authService.instance.setActiveAccount(e.account),!0}));this.authService.getLogger().verbose("Guard - logging in by redirect");var r=this.getDestinationUrl(e.url);return this.authService.loginRedirect(Object.assign({redirectStartPage:r},n)).pipe((0,g.U)(function(){return!1}))}},{key:"activateHelper",value:function(e){var t=this;if(this.msalGuardConfig.interactionType!==a.s_.Popup&&this.msalGuardConfig.interactionType!==a.s_.Redirect)throw new u.W("invalid_interaction_type","Invalid interaction type provided to MSAL Guard. InteractionType.Popup or InteractionType.Redirect must be provided in the MsalGuardConfiguration");if(this.authService.getLogger().verbose("MSAL Guard activated"),"undefined"==typeof window)return this.authService.getLogger().info("Guard - window is undefined, MSAL does not support server-side token acquisition"),(0,y.of)(!0);if(c.G.hashContainsKnownProperties(window.location.hash)&&l.M.isInIframe()&&!this.authService.instance.getConfiguration().system.allowRedirectInIframe)return this.authService.getLogger().warning("Guard - redirectUri set to page with MSAL Guard. It is recommended to not set redirectUri to a page that requires authentication."),(0,y.of)(!1);this.msalGuardConfig.loginFailedRoute&&(this.loginFailedRoute=this.parseUrl(this.msalGuardConfig.loginFailedRoute));var n=this.location.path(!0);return this.authService.handleRedirectObservable().pipe((0,_.b)(function(){if(!t.authService.instance.getAllAccounts().length)return e?(t.authService.getLogger().verbose("Guard - no accounts retrieved, log in required to activate"),t.loginInteractively(e)):(t.authService.getLogger().verbose("Guard - no accounts retrieved, no state, cannot load"),(0,y.of)(!1));if(t.authService.getLogger().verbose("Guard - at least 1 account exists, can activate or load"),e){var r=t.includesCode(e.url),o=!!e.root&&!!e.root.fragment&&t.includesCode("#".concat(e.root.fragment)),i=0===t.location.prepareExternalUrl(e.url).indexOf("#");if(r&&(o||i))return t.authService.getLogger().info("Guard - Hash contains known code response, stopping navigation."),n.indexOf("#")>-1?(0,y.of)(t.parseUrl(t.location.path())):(0,y.of)(t.parseUrl(""))}return(0,y.of)(!0)}),(0,k.K)(function(n){return t.authService.getLogger().error("Guard - error while logging in, unable to activate"),t.authService.getLogger().errorPii("Guard - error: ".concat(n.message)),t.loginFailedRoute&&parseInt(r.q4F.major,10)>9&&e?(t.authService.getLogger().verbose("Guard - loginFailedRoute set, redirecting"),(0,y.of)(t.loginFailedRoute)):(0,y.of)(!1)}))}},{key:"includesCode",value:function(e){return e.lastIndexOf("/code")>-1&&e.lastIndexOf("/code")===e.length-"/code".length||e.indexOf("#code=")>-1||e.indexOf("&code=")>-1}},{key:"canActivate",value:function(e,t){return this.authService.getLogger().verbose("Guard - canActivate"),this.activateHelper(t)}},{key:"canActivateChild",value:function(e,t){return this.authService.getLogger().verbose("Guard - canActivateChild"),this.activateHelper(t)}},{key:"canLoad",value:function(){return this.authService.getLogger().verbose("Guard - canLoad"),this.activateHelper()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(O),r.LFG(P),r.LFG(I),r.LFG(o.Ye),r.LFG(T.F0))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),N=function(){var e=function(){function e(t,n,r,o,i){w(this,e),this.msalInterceptorConfig=t,this.authService=n,this.location=r,this.msalBroadcastService=o,this._document=i}return b(e,[{key:"intercept",value:function(e,t){var n=this;if(this.msalInterceptorConfig.interactionType!==a.s_.Popup&&this.msalInterceptorConfig.interactionType!==a.s_.Redirect)throw new u.W("invalid_interaction_type","Invalid interaction type provided to MSAL Interceptor. InteractionType.Popup, InteractionType.Redirect must be provided in the msalInterceptorConfiguration");this.authService.getLogger().verbose("MSAL Interceptor activated");var r,o=this.getScopesForEndpoint(e.url,e.method);if(!o||0===o.length)return this.authService.getLogger().verbose("Interceptor - no scopes for endpoint"),t.handle(e);this.authService.instance.getActiveAccount()?(this.authService.getLogger().verbose("Interceptor - active account selected"),r=this.authService.instance.getActiveAccount()):(this.authService.getLogger().verbose("Interceptor - no active account, fallback to first account"),r=this.authService.instance.getAllAccounts()[0]);var i="function"==typeof this.msalInterceptorConfig.authRequest?this.msalInterceptorConfig.authRequest(this.authService,e,{account:r}):Object.assign(Object.assign({},this.msalInterceptorConfig.authRequest),{account:r});return this.authService.getLogger().info("Interceptor - ".concat(o.length," scopes found for endpoint")),this.authService.getLogger().infoPii("Interceptor - [".concat(o,"] scopes found for ").concat(e.url)),this.acquireToken(i,o,r).pipe((0,S.w)(function(r){n.authService.getLogger().verbose("Interceptor - setting authorization headers");var o=e.headers.set("Authorization","Bearer ".concat(r.accessToken)),i=e.clone({headers:o});return t.handle(i)}))}},{key:"acquireToken",value:function(e,t,n){var r=this;return this.authService.acquireTokenSilent(Object.assign(Object.assign({},e),{scopes:t,account:n})).pipe((0,k.K)(function(){return r.authService.getLogger().error("Interceptor - acquireTokenSilent rejected with error. Invoking interaction to resolve."),r.msalBroadcastService.inProgress$.pipe((0,C.q)(1),(0,S.w)(function(o){return o===a.$H.None?r.acquireTokenInteractively(e,t):r.msalBroadcastService.inProgress$.pipe((0,E.h)(function(e){return e===a.$H.None}),(0,C.q)(1),(0,S.w)(function(){return r.acquireToken(e,t,n)}))}))}),(0,S.w)(function(n){return n.accessToken?(0,y.of)(n):(r.authService.getLogger().error("Interceptor - acquireTokenSilent resolved with null access token. Known issue with B2C tenants, invoking interaction to resolve."),r.msalBroadcastService.inProgress$.pipe((0,E.h)(function(e){return e===a.$H.None}),(0,C.q)(1),(0,S.w)(function(){return r.acquireTokenInteractively(e,t)})))}
1))}},{key:"acquireTokenInteractively",value:function(e,t){if(this.msalInterceptorConfig.interactionType===a.s_.Popup)return this.authService.getLogger().verbose("Interceptor - error acquiring token silently, acquiring by popup"),this.authService.acquireTokenPopup(Object.assign(Object.assign({},e),{scopes:t}));this.authService.getLogger().verbose("Interceptor - error acquiring token silently, acquiring by redirect");var n=window.location.href;return this.authService.acquireTokenRedirect(Object.assign(Object.assign({},e),{scopes:t,redirectStartPage:n})),v.E}},{key:"getScopesForEndpoint",value:function(e,t){this.authService.getLogger().verbose("Interceptor - getting scopes for endpoint");var n=this.location.normalize(e),r=Array.from(this.msalInterceptorConfig.protectedResourceMap.keys()),o=this.matchResourcesToEndpoint(r,n);return o.absoluteResources.length>0?this.matchScopesToEndpoint(this.msalInterceptorConfig.protectedResourceMap,o.absoluteResources,t):o.relativeResources.length>0?this.matchScopesToEndpoint(this.msalInterceptorConfig.protectedResourceMap,o.relativeResources,t):null}},{key:"matchResourcesToEndpoint",value:function(e,t){var n=this,r={absoluteResources:[],relativeResources:[]};return e.forEach(function(e){var o=n.location.normalize(e);f.x.matchPattern(o,t)&&r.absoluteResources.push(e);var i=n.getAbsoluteUrl(e),a=new c.G(i).getUrlComponents(),s=n.getAbsoluteUrl(t),u=new c.G(s).getUrlComponents(),l=a.QueryString?"".concat(a.AbsolutePath,"?").concat(a.QueryString):n.location.normalize(a.AbsolutePath);a.HostNameAndPort===u.HostNameAndPort&&f.x.matchPattern(l,s)&&""!==l&&"/*"!==l&&r.relativeResources.push(e)}),r}},{key:"getAbsoluteUrl",value:function(e){var t=this._document.createElement("a");return t.href=e,t.href}},{key:"matchScopesToEndpoint",value:function(e,t,n){var r=[];return t.forEach(function(t){var o=[],i=e.get(t);null!==i?(i.forEach(function(e){if("string"==typeof e)o.push(e);else{var t=n.toLowerCase();e.httpMethod.toLowerCase()===t&&(null===e.scopes?r.push(null):e.scopes.forEach(function(e){o.push(e)}))}}),o.length>0&&r.push(o)):r.push(null)}),r.length>0?(r.length>1&&this.authService.getLogger().warning("Interceptor - More than 1 matching scopes for endpoint found."),r[0]):null}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(A),r.LFG(I),r.LFG(o.Ye),r.LFG(P),r.LFG(o.K0))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}()},87132:function(e,t,n){"use strict";n.d(t,{pi:function(){return i},mG:function(){return s},ZT:function(){return o},Jh:function(){return u},_T:function(){return a},fl:function(){return l}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function u(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function l(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e}},91818:function(e,t,n){"use strict";n.d(t,{U:function(){return s},n:function(){return a}});var r=n(87132),o=n(49622),i=n(83424),a={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered a
1pplications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},authCodeRequired:{code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},authCodeOrNativeAccountRequired:{code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},spaCodeAndNativeAccountPresent:{code:"spa_code_and_nativeAccountId_present",desc:"Request cannot contain both spa code and native account id."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},unableToAcquireTokenFromNativePlatform:{code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},nativeHandshakeTimeout:{code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},nativeExtensionNotInstalled:{code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},nativeConnectionNotEstablished:{code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},nativeBrokerCalledBeforeInitialize:{code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},nativePromptNotSupported:{code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."}},s=function(e){function t(n,r){var o=e.call(this,n,r)||this;return Object.setPrototypeOf(o,t.prototype),o.name="BrowserAuthError",o}return(0,r.ZT)(t,e),t.createPkceNotGeneratedError=function(e){return new t(a.pkceNotGenerated.code,a.pkceNotGenerated.desc+" Detail:"+e)},t.createCryptoNotAvailableError=function(e){return new t(a.cryptoDoesNotExist.code,a.cryptoDoesNotExist.desc+" Detail:"+e)},t.createHttpMethodNotImplementedError=function(e){return new t(a.httpMethodNotImplementedError.code,a.httpMethodNotImplementedError.desc+" Given Method: "+e)},t.createEmptyNavigationUriError=function(){return new t(a.emptyNavigateUriError.code,a.emptyNavigateUriError.desc)},t.createEmptyHashError=function(e){return new t(a.hashEmptyError.code,a.hashEmptyError.desc+" Given Url: "+e)},t.createHashDoesNotContainStateError=function(){return new t(a.hashDoesNotContainStateError.code,a.hashDoesNotContainStateError.desc)},t.createHashDoesNotContainKnownPropertiesError=function(){return new t(a.hashDoesNotContainKnownPropertiesError.code,a.hashDoesNotContainKnownPropertiesError.desc)},t.createUnableToParseStateError=function(){return new t(a.unableToParseStateError.code,a.unableToParseStateError.desc)},t.createStateInteractionTypeMismatchError=function(){return new t(a.stateInteractionTypeMismatchError.code,a.stateInteractionTypeMismatchError.desc)},t.createInteractionInProgressError=function(){return new t(a.interactionInProgress.code,a.interactionInProgress.desc)},t.createPopupWindowError=function(e){var n=a.popupWindowError.desc;
1return n=o.x.isEmpty(e)?n:n+" Details: "+e,new t(a.popupWindowError.code,n)},t.createEmptyWindowCreatedError=function(){return new t(a.emptyWindowError.code,a.emptyWindowError.desc)},t.createUserCancelledError=function(){return new t(a.userCancelledError.code,a.userCancelledError.desc)},t.createMonitorPopupTimeoutError=function(){return new t(a.monitorPopupTimeoutError.code,a.monitorPopupTimeoutError.desc)},t.createMonitorIframeTimeoutError=function(){return new t(a.monitorIframeTimeoutError.code,a.monitorIframeTimeoutError.desc)},t.createRedirectInIframeError=function(e){return new t(a.redirectInIframeError.code,a.redirectInIframeError.desc+" (window.parent !== window) => "+e)},t.createBlockReloadInHiddenIframeError=function(){return new t(a.blockTokenRequestsInHiddenIframeError.code,a.blockTokenRequestsInHiddenIframeError.desc)},t.createBlockAcquireTokenInPopupsError=function(){return new t(a.blockAcquireTokenInPopupsError.code,a.blockAcquireTokenInPopupsError.desc)},t.createIframeClosedPrematurelyError=function(){return new t(a.iframeClosedPrematurelyError.code,a.iframeClosedPrematurelyError.desc)},t.createSilentLogoutUnsupportedError=function(){return new t(a.silentLogoutUnsupportedError.code,a.silentLogoutUnsupportedError.desc)},t.createNoAccountError=function(){return new t(a.noAccountError.code,a.noAccountError.desc)},t.createSilentPromptValueError=function(e){return new t(a.silentPromptValueError.code,a.silentPromptValueError.desc+" Given value: "+e)},t.createUnableToParseTokenRequestCacheError=function(){return new t(a.unableToParseTokenRequestCacheError.code,a.unableToParseTokenRequestCacheError.desc)},t.createNoTokenRequestCacheError=function(){return new t(a.noTokenRequestCacheError.code,a.noTokenRequestCacheError.desc)},t.createAuthRequestNotSetError=function(){return new t(a.authRequestNotSet.code,a.authRequestNotSet.desc)},t.createNoCachedAuthorityError=function(){return new t(a.noCachedAuthorityError.code,a.noCachedAuthorityError.desc)},t.createInvalidCacheTypeError=function(){return new t(a.invalidCacheType.code,""+a.invalidCacheType.desc)},t.createNonBrowserEnvironmentError=function(){return new t(a.notInBrowserEnvironment.code,a.notInBrowserEnvironment.desc)},t.createDatabaseNotOpenError=function(){return new t(a.databaseNotOpen.code,a.databaseNotOpen.desc)},t.createNoNetworkConnectivityError=function(){return new t(a.noNetworkConnectivity.code,a.noNetworkConnectivity.desc)},t.createPostRequestFailedError=function(e,n){return new t(a.postRequestFailed.code,a.postRequestFailed.desc+" | Network client threw: "+e+" | Attempted to reach: "+n.split("?")[0])},t.createGetRequestFailedError=function(e,n){return new t(a.getRequestFailed.code,a.getRequestFailed.desc+" | Network client threw: "+e+" | Attempted to reach: "+n.split("?")[0])},t.createFailedToParseNetworkResponseError=function(e){return new t(a.failedToParseNetworkResponse.code,a.failedToParseNetworkResponse.desc+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToLoadTokenError=function(e){return new t(a.unableToLoadTokenError.code,a.unableToLoadTokenError.desc+" | "+e)},t.createSigningKeyNotFoundInStorageError=function(e){return new t(a.signingKeyNotFoundInStorage.code,a.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+e)},t.createAuthCodeRequiredError=function(){return new t(a.authCodeRequired.code,a.authCodeRequired.desc)},t.createAuthCodeOrNativeAccountIdRequiredError=function(){return new t(a.authCodeOrNativeAccountRequired.code,a.authCodeOrNativeAccountRequired.desc)},t.createSpaCodeAndNativeAccountIdPresentError=function(){return new t(a.spaCodeAndNativeAccountPresent.code,a.spaCodeAndNativeAccountPresent.desc)},t.createDatabaseUnavailableError=function(){return new t(a.databaseUnavailable.code,a.databaseUnavailable.desc)},t.createUnableToAcquireTokenFromNativePlatformError=function(){return new t(a.unableToAcquireTokenFromNativePlatform.code,a.unableToAcquireTokenFromNativePlatform.desc)},t.createNativeHandshakeTimeoutError=function(){return new t(a.nativeHandshakeTimeout.code,a.nativeHandshakeTimeout.desc)},t.createNativeExtensionNotInstalledError=function(){return new t(a.nativeExtensionNotInstalled.code,a.nativeExtensionNotInstalled.desc)},t.createNativeConnectionNotEstablishedError=function(){return new t(a.nativeConnectionNotEstablished.code,a.nativeConnectionNotEstablished.desc)},t.createNativeBrokerCalledBeforeInitialize=function(){return new t(a.nativeBrokerCalledBeforeInitialize.code,a.nativeBrokerCalledBeforeInitialize.desc)},t.createNativePromptParameterNotSupportedError=function(){return new t(a.nativePromptNotSupported.code,a.nativePromptNotSupported.desc)},t}(i.l)},79459:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(87132),o=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.name="BrowserConfigurationAuthError",Object.setPrototypeOf(o,t.prototype),o}return(0,r.ZT)(t,e),t.createRedirectUriEmptyError=function(){return new t("redirect_uri_empty","A redirect URI is required for all calls, and none has been set.")},t.createPostLogoutRedirectUriEmptyError=function(){return new t("post_logout_uri_empty","A post logout redirect has not been set.")},t.createStorageNotSupportedError=function(e){return new t("storage_not_supported","Given storage configuration option was not supported. Given Location: "+e)},t.createRedirectCallbacksNotSetError=function(){return new t("no_redirect_callbacks","No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics.")},t.createStubPcaInstanceCalledError=function(){return new t("stubbed_public_client_application_called","Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors")},t.createInMemoryRedirectUnavailableError=function(){return new t("in_mem_redirect_unavailable","Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true.")},t.createEntropyNotProvided=function(){return new t("entropy_not_provided","The available browser crypto interface requires entro
1py set via system.cryptoOptions.entropy configuration option.")},t}(n(83424).l)},34357:function(e,t,n){"use strict";var r;n.d(t,{t:function(){return r}}),function(e){e.INITIALIZE_START="msal:initializeStart",e.INITIALIZE_END="msal:initializeEnd",e.ACCOUNT_ADDED="msal:accountAdded",e.ACCOUNT_REMOVED="msal:accountRemoved",e.LOGIN_START="msal:loginStart",e.LOGIN_SUCCESS="msal:loginSuccess",e.LOGIN_FAILURE="msal:loginFailure",e.ACQUIRE_TOKEN_START="msal:acquireTokenStart",e.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",e.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",e.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",e.SSO_SILENT_START="msal:ssoSilentStart",e.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",e.SSO_SILENT_FAILURE="msal:ssoSilentFailure",e.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",e.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",e.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",e.HANDLE_REDIRECT_START="msal:handleRedirectStart",e.HANDLE_REDIRECT_END="msal:handleRedirectEnd",e.POPUP_OPENED="msal:popupOpened",e.LOGOUT_START="msal:logoutStart",e.LOGOUT_SUCCESS="msal:logoutSuccess",e.LOGOUT_FAILURE="msal:logoutFailure",e.LOGOUT_END="msal:logoutEnd"}(r||(r={}))},31002:function(e,t,n){"use strict";n.d(t,{WN:function(){return c},Ix:function(){return o},qx:function(){return d},lu:function(){return g},H4:function(){return b},Gv:function(){return _},kd:function(){return w},yo:function(){return y},EC:function(){return i},Bs:function(){return u},$H:function(){return f},s_:function(){return l},Mm:function(){return v},BD:function(){return p},Ky:function(){return r},Oq:function(){return s},c4:function(){return a},lA:function(){return m}});var r,o,i,a,s,u,c,l,f,h=n(96977),d={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},p={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"};!function(e){e.HandshakeRequest="Handshake",e.HandshakeResponse="HandshakeResponse",e.GetToken="GetToken",e.Response="Response"}(r||(r={})),function(e){e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.MemoryStorage="memoryStorage"}(o||(o={})),function(e){e.GET="GET",e.POST="POST"}(i||(i={})),function(e){e.AUTHORITY="authority",e.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",e.SESSION_STATE="session.state",e.REQUEST_STATE="request.state",e.NONCE_IDTOKEN="nonce.id_token",e.ORIGIN_URI="request.origin",e.RENEW_STATUS="token.renew.status",e.URL_HASH="urlHash",e.REQUEST_PARAMS="request.params",e.SCOPES="scopes",e.INTERACTION_STATUS_KEY="interaction.status",e.CCS_CREDENTIAL="ccs.credential",e.CORRELATION_ID="request.correlationId",e.NATIVE_REQUEST="request.native",e.REDIRECT_CONTEXT="request.redirect.context"}(a||(a={})),function(e){e.ACCOUNT_KEYS="msal.account.keys",e.TOKEN_KEYS="msal.token.keys"}(s||(s={})),function(e){e.WRAPPER_SKU="wrapper.sku",e.WRAPPER_VER="wrapper.version"}(u||(u={})),function(e){e[e.acquireTokenRedirect=861]="acquireTokenRedirect",e[e.acquireTokenPopup=862]="acquireTokenPopup",e[e.ssoSilent=863]="ssoSilent",e[e.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",e[e.handleRedirectPromise=865]="handleRedirectPromise",e[e.acquireTokenByCode=866]="acquireTokenByCode",e[e.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",e[e.logout=961]="logout",e[e.logoutPopup=962]="logoutPopup"}(c||(c={})),function(e){e.Redirect="redirect",e.Popup="popup",e.Silent="silent",e.None="none"}(l||(l={})),function(e){e.Startup="startup",e.Login="login",e.Logout="logout",e.AcquireToken="acquireToken",e.SsoSilent="ssoSilent",e.HandleRedirect="handleRedirect",e.None="none"}(f||(f={}));var m,y={scopes:h.f_},v="jwk";!function(e){e.React="@azure/msal-react",e.Angular="@azure/msal-angular"}(m||(m={}));var g,b="msal.db",w=1,_=b+".keys";!function(e){e[e.Default=0]="Default",e[e.AccessToken=1]="AccessToken",e[e.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",e[e.RefreshToken=3]="RefreshToken",e[e.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",e[e.Skip=5]="Skip"}(g||(g={}))},95179:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r=n(96977),o=n(87346),i=n(87132),a=n(91818),s=n(31002),u=function(){function e(){}return e.prototype.sendGetRequestAsync=function(e,t){return(0,i.mG)(this,void 0,void 0,function(){var n,r,o;return(0,i.Jh)(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,fetch(e,{method:s.EC.GET,headers:this.getFetchHeaders(t)})];case 1:return n=i.sent(),[3,3];case 2:throw r=i.sent(),window.navigator.onLine?a.U.createGetRequestFailedError(r,e):a.U.createNoNetworkConnectivityError();case 3:return i.trys.push([3,5,,6]),o={headers:this.getHeaderDict(n.headers)},[4,n.json()];case 4:return[2,(o.body=i.sent(),o.status=n.status,o)];case 5:throw i.sent(),a.U.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},e.prototype.sendPostRequestAsync=function(e,t){return(0,i.mG)(this,void 0,void 0,function(){var n,o,u,c;return(0,i.Jh)(this,function(i){switch(i.label){case 0:n=t&&t.body||r.gT.EMPTY_STRING,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,fetch(e,{method:s.EC.POST,headers:this.getFetchHeaders(t),body:n})];case 2:return o=i.sent(),[3,4];case 3:throw u=i.sent(),window.navigator.onLine?a.U.createPostRequestFailedError(u,e):a.U.createNoNetworkConnectivityError();case 4:return i.trys.push([4,6,,7]),c={headers:this.getHeaderDict(o.headers)},[4,o.json()];case 5:return[2,(c.body=i.sent(),c.status=o.status,c)];case 6:throw i.sent(),a.U.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},e.prototype.getFetchHeaders=function(e){var t=new Headers;if(!e||!e.headers)return t;var n=e.headers;
1return Object.keys(n).forEach(function(e){t.append(e,n[e])}),t},e.prototype.getHeaderDict=function(e){var t={};return e.forEach(function(e,n){t[n]=e}),t},e}(),c=function(){function e(){}return e.prototype.sendGetRequestAsync=function(e,t){return(0,i.mG)(this,void 0,void 0,function(){return(0,i.Jh)(this,function(n){return[2,this.sendRequestAsync(e,s.EC.GET,t)]})})},e.prototype.sendPostRequestAsync=function(e,t){return(0,i.mG)(this,void 0,void 0,function(){return(0,i.Jh)(this,function(n){return[2,this.sendRequestAsync(e,s.EC.POST,t)]})})},e.prototype.sendRequestAsync=function(e,t,n){var r=this;return new Promise(function(o,i){var u=new XMLHttpRequest;if(u.open(t,e,!0),r.setXhrHeaders(u,n),u.onload=function(){(u.status<200||u.status>=300)&&i(t===s.EC.POST?a.U.createPostRequestFailedError("Failed with status "+u.status,e):a.U.createGetRequestFailedError("Failed with status "+u.status,e));try{var n=JSON.parse(u.responseText),c={headers:r.getHeaderDict(u),body:n,status:u.status};o(c)}catch(l){i(a.U.createFailedToParseNetworkResponseError(e))}},u.onerror=function(){window.navigator.onLine?i(t===s.EC.POST?a.U.createPostRequestFailedError("Failed with status "+u.status,e):a.U.createGetRequestFailedError("Failed with status "+u.status,e)):i(a.U.createNoNetworkConnectivityError())},t===s.EC.POST&&n&&n.body)u.send(n.body);else{if(t!==s.EC.GET)throw a.U.createHttpMethodNotImplementedError(t);u.send()}})},e.prototype.setXhrHeaders=function(e,t){if(t&&t.headers){var n=t.headers;Object.keys(n).forEach(function(t){e.setRequestHeader(t,n[t])})}},e.prototype.getHeaderDict=function(e){var t=e.getAllResponseHeaders().trim().split(/[\r\n]+/),n={};return t.forEach(function(e){var t=e.split(": "),r=t.shift(),o=t.join(": ");r&&o&&(n[r]=o)}),n},e}(),l=function(){function e(){}return e.clearHash=function(e){e.location.hash=r.gT.EMPTY_STRING,"function"==typeof e.history.replaceState&&e.history.replaceState(null,r.gT.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},e.replaceHash=function(e){var t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):r.gT.EMPTY_STRING},e.isInIframe=function(){return window.parent!==window},e.isInPopup=function(){return"undefined"!=typeof window&&!!window.opener&&window.opener!==window&&"string"==typeof window.name&&0===window.name.indexOf(s.qx.POPUP_NAME_PREFIX+".")},e.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},e.getHomepage=function(){var e=new o.G(window.location.href).getUrlComponents();return e.Protocol+"//"+e.HostNameAndPort+"/"},e.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new u:new c},e.blockReloadInHiddenIframes=function(){if(o.G.hashContainsKnownProperties(window.location.hash)&&e.isInIframe())throw a.U.createBlockReloadInHiddenIframeError()},e.blockRedirectInIframe=function(t,n){var r=e.isInIframe();if(t===s.s_.Redirect&&r&&!n)throw a.U.createRedirectInIframeError(r)},e.blockAcquireTokenInPopups=function(){if(e.isInPopup())throw a.U.createBlockAcquireTokenInPopupsError()},e.blockNonBrowserEnvironment=function(e){if(!e)throw a.U.createNonBrowserEnvironmentError()},e.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw a.U.createNativeBrokerCalledBeforeInitialize()},e.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/");return t>0||n>0||r>0},e}()},68114:function(e,t,n){"use strict";n.d(t,{pi:function(){return i},mG:function(){return a},ZT:function(){return o},Jh:function(){return s},pr:function(){return u}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};
1function a(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function s(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function u(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}},83424:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(68114),o=n(96977),i=function(e){function t(n,r,i){var a=this;return a=e.call(this,r?n+": "+r:n)||this,Object.setPrototypeOf(a,t.prototype),a.errorCode=n||o.gT.EMPTY_STRING,a.errorMessage=r||o.gT.EMPTY_STRING,a.subError=i||o.gT.EMPTY_STRING,a.name="AuthError",a}return(0,r.ZT)(t,e),t.prototype.setCorrelationId=function(e){this.correlationId=e},t.createUnexpectedError=function(e){return new t("unexpected_error","Unexpected error in authentication.: "+e)},t.createPostRequestFailed=function(e){return new t("post_request_failed","Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details.: "+e)},t}(Error)},77275:function(e,t,n){"use strict";n.d(t,{e:function(){return a},A:function(){return i}});var r=n(68114),o=n(83424),i={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},blankGuidGenerated:{code:"blank_guid_generated",desc:"The guid generated was blank. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},noTokensFoundError:{code:"no_tokens_found",desc:"No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken()."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"}
1,tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},noAzureRegionDetected:{code:"no_azure_region_detected",desc:"No azure region was detected and no fallback was made available"},accessTokenEntityNullError:{code:"access_token_entity_null",desc:"Access token entity is null, please check logs and cache to ensure a valid access token is present."},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},userCanceledError:{code:"user_canceled",desc:"User canceled the flow."}},a=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.name="ClientAuthError",Object.setPrototypeOf(o,t.prototype),o}return(0,r.ZT)(t,e),t.createClientInfoDecodingError=function(e){return new t(i.clientInfoDecodingError.code,i.clientInfoDecodingError.desc+" Failed with error: "+e)},t.createClientInfoEmptyError=function(){return new t(i.clientInfoEmptyError.code,""+i.clientInfoEmptyError.desc)},t.createTokenParsingError=function(e){return new t(i.tokenParsingError.code,i.tokenParsingError.desc+" Failed with error: "+e)},t.createTokenNullOrEmptyError=function(e){return new t(i.nullOrEmptyToken.code,i.nullOrEmptyToken.desc+" Raw Token Value: "+e)},t.createEndpointDiscoveryIncompleteError=function(e){return new t(i.endpointResolutionError.code,i.endpointResolutionError.desc+" Detail: "+e)},t.createNetworkError=function(e,n){return new t(i.networkError.code,i.networkError.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToGetOpenidConfigError=function(e){return new t(i.unableToGetOpenidConfigError.code,i.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+e)},t.createHashNotDeserializedError=function(e){return new t(i.hashNotDeserialized.code,i.hashNotDeserialized.desc+" Given Object: "+e)},t.createInvalidStateError=function(e,n){return new t(i.invalidStateError.code,i.invalidStateError.desc+" Invalid State: "+e+", Root Err: "+n)},t.createStateMismatchError=function(){return new t(i.stateMismatchError.code,i.stateMismatchError.desc)},t.createStateNotFoundError=function(e){return new t(i.stateNotFoundError.code,i.stateNotFoundError.desc+": "+e)},t.createNonceMismatchError=function(){return new t(i.nonceMismatchError.code,i.nonceMismatchError.desc)},t.createAuthTimeNotFoundError=function(){return new t(i.authTimeNotFoundError.code,i.authTimeNotFoundError.desc)},t.createMaxAgeTranspiredError=function(){return new t(i.maxAgeTranspiredError.code,i.maxAgeTranspiredError.desc)},t.createNonceNotFoundError=function(e){return new t(i.nonceNotFoundError.code,i.nonceNotFoundError.desc+": "+e)},t.createMultipleMatchingTokensInCacheError=function(){return new t(i.multipleMatchingTokens.code,i.multipleMatchingTokens.desc+".")},t.createMultipleMatchingAccountsInCacheError=function(){return new t(i.multipleMatchingAccounts.code,i.multipleMatchingAccounts.desc)},t.createMultipleMatchingAppMetadataInCacheError=function(){return new t(i.multipleMatchingAppMetadata.code,i.multipleMatchingAppMetadata.desc)},t.createTokenRequestCannotBeMadeError=function(){return new t(i.token
1RequestCannotBeMade.code,i.tokenRequestCannotBeMade.desc)},t.createAppendEmptyScopeToSetError=function(e){return new t(i.appendEmptyScopeError.code,i.appendEmptyScopeError.desc+" Given Scope: "+e)},t.createRemoveEmptyScopeFromSetError=function(e){return new t(i.removeEmptyScopeError.code,i.removeEmptyScopeError.desc+" Given Scope: "+e)},t.createAppendScopeSetError=function(e){return new t(i.appendScopeSetError.code,i.appendScopeSetError.desc+" Detail Error: "+e)},t.createEmptyInputScopeSetError=function(){return new t(i.emptyInputScopeSetError.code,""+i.emptyInputScopeSetError.desc)},t.createDeviceCodeCancelledError=function(){return new t(i.DeviceCodePollingCancelled.code,""+i.DeviceCodePollingCancelled.desc)},t.createDeviceCodeExpiredError=function(){return new t(i.DeviceCodeExpired.code,""+i.DeviceCodeExpired.desc)},t.createDeviceCodeUnknownError=function(){return new t(i.DeviceCodeUnknownError.code,""+i.DeviceCodeUnknownError.desc)},t.createNoAccountInSilentRequestError=function(){return new t(i.NoAccountInSilentRequest.code,""+i.NoAccountInSilentRequest.desc)},t.createNullOrUndefinedCacheRecord=function(){return new t(i.invalidCacheRecord.code,i.invalidCacheRecord.desc)},t.createInvalidCacheEnvironmentError=function(){return new t(i.invalidCacheEnvironment.code,i.invalidCacheEnvironment.desc)},t.createNoAccountFoundError=function(){return new t(i.noAccountFound.code,i.noAccountFound.desc)},t.createCachePluginError=function(){return new t(i.CachePluginError.code,""+i.CachePluginError.desc)},t.createNoCryptoObjectError=function(e){return new t(i.noCryptoObj.code,""+i.noCryptoObj.desc+e)},t.createInvalidCacheTypeError=function(){return new t(i.invalidCacheType.code,""+i.invalidCacheType.desc)},t.createUnexpectedAccountTypeError=function(){return new t(i.unexpectedAccountType.code,""+i.unexpectedAccountType.desc)},t.createUnexpectedCredentialTypeError=function(){return new t(i.unexpectedCredentialType.code,""+i.unexpectedCredentialType.desc)},t.createInvalidAssertionError=function(){return new t(i.invalidAssertion.code,""+i.invalidAssertion.desc)},t.createInvalidCredentialError=function(){return new t(i.invalidClientCredential.code,""+i.invalidClientCredential.desc)},t.createRefreshRequiredError=function(){return new t(i.tokenRefreshRequired.code,i.tokenRefreshRequired.desc)},t.createUserTimeoutReachedError=function(){return new t(i.userTimeoutReached.code,i.userTimeoutReached.desc)},t.createTokenClaimsRequiredError=function(){return new t(i.tokenClaimsRequired.code,i.tokenClaimsRequired.desc)},t.createNoAuthCodeInServerResponseError=function(){return new t(i.noAuthorizationCodeFromServer.code,i.noAuthorizationCodeFromServer.desc)},t.createBindingKeyNotRemovedError=function(){return new t(i.bindingKeyNotRemovedError.code,i.bindingKeyNotRemovedError.desc)},t.createLogoutNotSupportedError=function(){return new t(i.logoutNotSupported.code,i.logoutNotSupported.desc)},t.createKeyIdMissingError=function(){return new t(i.keyIdMissing.code,i.keyIdMissing.desc)},t.createNoNetworkConnectivityError=function(){return new t(i.noNetworkConnectivity.code,i.noNetworkConnectivity.desc)},t.createUserCanceledError=function(){return new t(i.userCanceledError.code,i.userCanceledError.desc)},t}(o.l)},43130:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(68114),o=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.name="ClientConfigurationError",Object.setPrototypeOf(o,t.prototype),o}return(0,r.ZT)(t,e),t.createRedirectUriEmptyError=function(){return new t("redirect_uri_empty","A redirect URI is required for all calls, and none has been set.")},t.createPostLogoutRedirectUriEmptyError=function(){return new t("post_logout_uri_empty","A post logout redirect has not been set.")},t.createClaimsRequestParsingError=function(e){return new t("claims_request_parsing_error","Could not parse the given claims request object. Given value: "+e)},t.createInsecureAuthorityUriError=function(e){return new t("authority_uri_insecure","Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us
1/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options Given URI: "+e)},t.createUrlParseError=function(e){return new t("url_parse_error","URL could not be parsed into appropriate segments. Given Error: "+e)},t.createUrlEmptyError=function(){return new t("empty_url_error","URL was empty or null.")},t.createEmptyScopesArrayError=function(){return new t("empty_input_scopes_error","Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.")},t.createClientIdSingleScopeError=function(e){return new t("clientid_input_scopes_error","Client ID can only be provided as a single scope. Given Scopes: "+e)},t.createInvalidPromptError=function(e){return new t("invalid_prompt_value","Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'. Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest Given value: "+e)},t.createInvalidClaimsRequestError=function(){return new t("invalid_claims","Given claims parameter must be a stringified JSON object.")},t.createEmptyLogoutRequestError=function(){return new t("logout_request_empty","The logout request was null or undefined.")},t.createEmptyTokenRequestError=function(){return new t("token_request_empty","Token request was empty and not found in cache.")},t.createInvalidCodeChallengeMethodError=function(){return new t("invalid_code_challenge_method",'code_challenge_method passed is invalid. Valid values are "plain" and "S256".')},t.createInvalidCodeChallengeParamsError=function(){return new t("pkce_params_missing","Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request")},t.createInvalidCloudDiscoveryMetadataError=function(){return new t("invalid_cloud_discovery_metadata","Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields")},t.createInvalidAuthorityMetadataError=function(){return new t("invalid_authority_metadata","Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.")},t.createUntrustedAuthorityError=function(){return new t("untrusted_authority","The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.")},t.createInvalidAzureCloudInstanceError=function(){return new t("invalid_azure_cloud_instance","Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values")},t.createMissingSshJwkError=function(){return new t("missing_ssh_jwk","Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.")},t.createMissingSshKidError=function(){return new t("missing_ssh_kid","Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.")},t.createMissingNonceAuthenticationHeadersError=function(){return new t("missing_nonce_authentication_header","Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.")},t.createInvalidAuthenticationHeaderError=function(e,n){return new t("invalid_authentication_header","Invalid authentication header provided. Invalid header: "+e+". Details: "+n)},t}(n(77275).e)},83987:function(e,t,n){"use strict";n.d(t,{i:function(){return r},Y:function(){return a}});var r,o=n(49622),i=n(96977);!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Verbose=3]="Verbose",e[e.Trace=4]="Trace"}(r||(r={}));var a=function(){function e(t,n,o){this.level=r.Info;var a=t||e.createDefaultLoggerOptions();this.localCallback=a.loggerCallback||function(){},this.piiLoggingEnabled=a.piiLoggingEnabled||!1,this.level="number"==typeof a.logLevel?a.logLevel:r.Info,this.correlationId=a.correlationId||i.gT.EMPTY_STRING,this.packageName=n||i.gT.EMPTY_STRING,this.packageVersion=o||i.gT.EMPTY_STRING}return e.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:r.Info}},e.prototype.clone=function(t,n,r){return new e({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},t,n)},e.prototype.logMessage=function(e,t){if(!(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)){var n,i=(new Date).toUTCString();n=o.x.isEmpty(t.correlationId)?o.x.isEmpty(this.correlationId)?"["+i+"]":"["+i+"] : ["+this.correlationId+"]":"["+i+"] : ["+t.correlationId+"]",this.executeCallback(t.logLevel,n+" : "+this.packageName+"@"+this.packageVersion+" : "+r[t.logLevel]+" - "+e,t.containsPii||!1)}},e.prototype.executeCallback=function(e,t,n){this.localCallback&&this.localCallback(e,t,n)},e.prototype.error=function(e,t){this.logMessage(e,{logLevel:r.Error,containsPii:!1,correlationId:t||i.gT.EMPTY_STRING})},e.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:r.Error,containsPii:!0,correlationId:t||i.gT.EMPTY_STRING})},e.prototype.warning=function(e,t){this.logMessage(e,{logLevel:r.Warning,containsPii:!1,correlationId:t||i.gT.EMPTY_STRING})},e.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:r.Warning,containsPii:!0,correlationId:t||i.gT.EMPTY_STRING})},e.prototype.info=function(e,t){this.logMessage(e,{logLevel:r.Info,containsPii:!1,correlationId:t||i.gT.EMPTY_STRING})},e.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:r.Info,containsPii:!0,correlationId:t||i.gT.EMPTY_STRING})},e.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:r.Verbose,containsPii:!1,correlationId:t||i.gT.EMPTY_STRING})},e.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:r.Verbose,containsPii:!0,correlationId:t||i.gT.EMPTY_STRING})},e.prototype.trace=function(e,t){this.logMessage(e,{logLevel:r.Trace,containsPii:!1,correlationId:t||i.gT.EMPTY_STRING})},e.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:r.Trace,containsPii:!0,correlationId:t||i.gT.EMPTY_STRING})},e.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},e}()},87346:function(e,t,n){"use strict";n.d(t,{G:function(){return s}});var r=n(43130),o=n(77275),i=n(49622),a=n(96977),s=function(){function e(t){if(this._urlString=t,
1i.x.isEmpty(this._urlString))throw r.r.createUrlEmptyError();i.x.isEmpty(this.getHash())&&(this._urlString=e.canonicalizeUri(t))}return Object.defineProperty(e.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),e.canonicalizeUri=function(e){if(e){var t=e.toLowerCase();return i.x.endsWith(t,"?")?t=t.slice(0,-1):i.x.endsWith(t,"?/")&&(t=t.slice(0,-2)),i.x.endsWith(t,"/")||(t+="/"),t}return e},e.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(t){throw r.r.createUrlParseError(t)}if(!e.HostNameAndPort||!e.PathSegments)throw r.r.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||"https:"!==e.Protocol.toLowerCase())throw r.r.createInsecureAuthorityUriError(this.urlString)},e.appendQueryString=function(e,t){return i.x.isEmpty(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t},e.removeHashFromUrl=function(t){return e.canonicalizeUri(t.split("#")[0])},e.prototype.replaceTenantPath=function(t){var n=this.getUrlComponents(),r=n.PathSegments;return!t||0===r.length||r[0]!==a.Nb.COMMON&&r[0]!==a.Nb.ORGANIZATIONS||(r[0]=t),e.constructAuthorityUriFromObject(n)},e.prototype.getHash=function(){return e.parseHash(this.urlString)},e.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw r.r.createUrlParseError("Given url string: "+this.urlString);var n={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]},o=n.AbsolutePath.split("/");return o=o.filter(function(e){return e&&e.length>0}),n.PathSegments=o,!i.x.isEmpty(n.QueryString)&&n.QueryString.endsWith("/")&&(n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)),n},e.getDomainFromUrl=function(e){var t=RegExp("^([^:/?#]+://)?([^/?#]*)"),n=e.match(t);if(!n)throw r.r.createUrlParseError("Given url string: "+e);return n[2]},e.getAbsoluteUrl=function(t,n){if(t[0]===a.gT.FORWARD_SLASH){var r=new e(n).getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+t}return t},e.parseHash=function(e){var t=e.indexOf("#"),n=e.indexOf("#/");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):a.gT.EMPTY_STRING},e.parseQueryString=function(e){var t=e.indexOf("?"),n=e.indexOf("/?");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):a.gT.EMPTY_STRING},e.constructAuthorityUriFromObject=function(t){return new e(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))},e.getDeserializedHash=function(t){if(i.x.isEmpty(t))return{};var n=e.parseHash(t),r=i.x.queryStringToObject(i.x.isEmpty(n)?t:n);if(!r)throw o.e.createHashNotDeserializedError(JSON.stringify(r));return r},e.getDeserializedQueryString=function(t){if(i.x.isEmpty(t))return{};var n=e.parseQueryString(t),r=i.x.queryStringToObject(i.x.isEmpty(n)?t:n);if(!r)throw o.e.createHashNotDeserializedError(JSON.stringify(r));return r},e.hashContainsKnownProperties=function(t){if(i.x.isEmpty(t)||t.indexOf("=")<0)return!1;var n=e.getDeserializedHash(t);return!!(n.code||n.error_description||n.error||n.state)},e}()},96977:function(e,t,n){"use strict";n.d(t,{Nb:function(){return i},Fo:function(){return a},dg:function(){return k},QU:function(){return E},hO:function(){return T},pQ:function(){return _},sR:function(){return S},iR:function(){return y},To:function(){return P},LL:function(){return b},As:function(){return s},VX:function(){return w},gT:function(){return c},d3:function(){return g},D1:function(){return j},qJ:function(){return m},SZ:function(){return r},L:function(){return M},f_:function(){return l},$f:function(){return f},Ge:function(){return O},Vi:function(){return o},NJ:function(){return d},ki:function(){return I},W:function(){return R},YY:function(){return A},vw:function(){return p},HN:function(){return x},VO:function(){return h},Bv:function(){return v},ch:function(){return C},bb:function(){return N}});var r,o,i,a,s,u=n(68114),c={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",REGIONAL_AUTH_NON_MSI_QUERY_STRING:"allowestsrnonmsi=true",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},l=[c.OPENID_SCOPE,c.PROFILE_SCOPE,c.OFFLINE_ACCESS_SCOPE],f=(0,u.pr)(l,[c.EMAIL_SCOPE]);!function(e){e.CONTENT_TYPE="Content-Type",e.RETRY_AFTER="Retry-After",e.CCS_HEADER="X-AnchorMailbox",e.WWWAuthenticate="WWW-Authenticate",e.AuthenticationInfo="Authentication-Info",e.X_MS_REQUEST_ID="x-ms-request-id",e.X_MS_HTTP_VERSION="x-ms-httpver"}(r||(r={})),function(e){e.ID_TOKEN="idtoken",e.CLIENT_INFO="client.info",e.ADAL_ID_TOKEN="adal.idtoken",e.ERROR="error",e.E
1RROR_DESC="error.description",e.ACTIVE_ACCOUNT="active-account",e.ACTIVE_ACCOUNT_FILTERS="active-account-filters"}(o||(o={})),function(e){e.COMMON="common",e.ORGANIZATIONS="organizations",e.CONSUMERS="consumers"}(i||(i={})),function(e){e.CLIENT_ID="client_id",e.REDIRECT_URI="redirect_uri",e.RESPONSE_TYPE="response_type",e.RESPONSE_MODE="response_mode",e.GRANT_TYPE="grant_type",e.CLAIMS="claims",e.SCOPE="scope",e.ERROR="error",e.ERROR_DESCRIPTION="error_description",e.ACCESS_TOKEN="access_token",e.ID_TOKEN="id_token",e.REFRESH_TOKEN="refresh_token",e.EXPIRES_IN="expires_in",e.STATE="state",e.NONCE="nonce",e.PROMPT="prompt",e.SESSION_STATE="session_state",e.CLIENT_INFO="client_info",e.CODE="code",e.CODE_CHALLENGE="code_challenge",e.CODE_CHALLENGE_METHOD="code_challenge_method",e.CODE_VERIFIER="code_verifier",e.CLIENT_REQUEST_ID="client-request-id",e.X_CLIENT_SKU="x-client-SKU",e.X_CLIENT_VER="x-client-VER",e.X_CLIENT_OS="x-client-OS",e.X_CLIENT_CPU="x-client-CPU",e.X_CLIENT_CURR_TELEM="x-client-current-telemetry",e.X_CLIENT_LAST_TELEM="x-client-last-telemetry",e.X_MS_LIB_CAPABILITY="x-ms-lib-capability",e.X_APP_NAME="x-app-name",e.X_APP_VER="x-app-ver",e.POST_LOGOUT_URI="post_logout_redirect_uri",e.ID_TOKEN_HINT="id_token_hint",e.DEVICE_CODE="device_code",e.CLIENT_SECRET="client_secret",e.CLIENT_ASSERTION="client_assertion",e.CLIENT_ASSERTION_TYPE="client_assertion_type",e.TOKEN_TYPE="token_type",e.REQ_CNF="req_cnf",e.OBO_ASSERTION="assertion",e.REQUESTED_TOKEN_USE="requested_token_use",e.ON_BEHALF_OF="on_behalf_of",e.FOCI="foci",e.CCS_HEADER="X-AnchorMailbox",e.RETURN_SPA_CODE="return_spa_code",e.NATIVE_BROKER="nativebroker",e.LOGOUT_HINT="logout_hint"}(a||(a={})),function(e){e.ACCESS_TOKEN="access_token",e.XMS_CC="xms_cc"}(s||(s={}));var h,d={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"};!function(e){e.ACCOUNT="account",e.SID="sid",e.LOGIN_HINT="login_hint",e.ID_TOKEN="id_token",e.DOMAIN_HINT="domain_hint",e.ORGANIZATIONS="organizations",e.CONSUMERS="consumers",e.ACCOUNT_ID="accountIdentifier",e.HOMEACCOUNT_ID="homeAccountIdentifier"}(h||(h={}));var p,m,y,v,g,b,w={PLAIN:"plain",S256:"S256"};!function(e){e.QUERY="query",e.FRAGMENT="fragment",e.FORM_POST="form_post"}(p||(p={})),function(e){e.IMPLICIT_GRANT="implicit",e.AUTHORIZATION_CODE_GRANT="authorization_code",e.CLIENT_CREDENTIALS_GRANT="client_credentials",e.RESOURCE_OWNER_PASSWORD_GRANT="password",e.REFRESH_TOKEN_GRANT="refresh_token",e.DEVICE_CODE_GRANT="device_code",e.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"}(m||(m={})),function(e){e.MSSTS_ACCOUNT_TYPE="MSSTS",e.ADFS_ACCOUNT_TYPE="ADFS",e.MSAV1_ACCOUNT_TYPE="MSA",e.GENERIC_ACCOUNT_TYPE="Generic"}(y||(y={})),function(e){e.CACHE_KEY_SEPARATOR="-",e.CLIENT_INFO_SEPARATOR="."}(v||(v={})),function(e){e.ID_TOKEN="IdToken",e.ACCESS_TOKEN="AccessToken",e.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",e.REFRESH_TOKEN="RefreshToken"}(g||(g={})),function(e){e[e.ADFS=1001]="ADFS",e[e.MSA=1002]="MSA",e[e.MSSTS=1003]="MSSTS",e[e.GENERIC=1004]="GENERIC",e[e.ACCESS_TOKEN=2001]="ACCESS_TOKEN",e[e.REFRESH_TOKEN=2002]="REFRESH_TOKEN",e[e.ID_TOKEN=2003]="ID_TOKEN",e[e.APP_METADATA=3001]="APP_METADATA",e[e.UNDEFINED=9999]="UNDEFINED"}(b||(b={}));var _,k="appmetadata",S="client_info",C="1",E={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:86400};!function(e){e.CONFIG="config",e.CACHE="cache",e.NETWORK="network",e.HARDCODED_VALUES="hardcoded_values"}(_||(_={}));var T,x={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"};!function(e){e.BEARER="Bearer",e.POP="pop",e.SSH="ssh-cert"}(T||(T={}));var O,A,R,I,P,M,N={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},j={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"};!function(e){e.username="username",e.password="password"}(O||(O={})),function(e){e[e.httpSuccess=200]="httpSuccess",e[e.httpBadRequest=400]="httpBadRequest"}(A||(A={})),function(e){e.FAILED_AUTO_DETECTION="1",e.INTERNAL_CACHE="2",e.ENVIRONMENT_VARIABLE="3",e.IMDS="4"}(R||(R={})),function(e){e.CONFIGURED_MATCHES_DETECTED="1",e.CONFIGURED_NO_AUTO_DETECTION="2",e.CONFIGURED_NOT_DETECTED="3",e.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",e.AUTO_DETECTION_REQUESTED_FAILED="5"}(I||(I={})),function(e){e.NO_CACHE_HIT="0",e.FORCE_REFRESH="1",e.NO_CACHED_ACCESS_TOKEN="2",e.CACHED_ACCESS_TOKEN_EXPIRED="3",e.REFRESH_CACHED_ACCESS_TOKEN="4"}(P||(P={})),function(e){e.Jwt="JWT",e.Jwk="JWK",e.Pop="pop"}(M||(M={}))},49622:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var r=n(77275),o=function(){function e(){}return e.decodeAuthToken=function(t){if(e.isEmpty(t))throw r.e.createTokenNullOrEmptyError(t);var n=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(t);if(!n||n.length<4)throw r.e.createTokenParsingError("Given token is malformed: "+JSON.stringify(t));return{header:n[1],JWSPayload:n[2],JWSSig:n[3]}},e.isEmpty=function(e){return void 0===e||!e||0===e.length},e.isEmptyObj=function(t){if(t&&!e.isEmpty(t))try{var n=JSON.parse(t);return 0===Object.keys(n).length}catch(r){}return!0},e.startsWith=function(e,t){return 0===e.indexOf(t)},e.endsWith=function(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length},e.queryStringToObject=function(e){var t={},n=e.split("&"),r=function(e){return decodeURIComponent(e.replace(/\+/g," "))};
1return n.forEach(function(e){if(e.trim()){var n=e.split(/=(.+)/g,2),o=n[0],i=n[1];o&&i&&(t[r(o)]=r(i))}}),t},e.trimArrayEntries=function(e){return e.map(function(e){return e.trim()})},e.removeEmptyStringsFromArray=function(t){return t.filter(function(t){return!e.isEmpty(t)})},e.jsonParseHelper=function(e){try{return JSON.parse(e)}catch(t){return null}},e.matchPattern=function(e,t){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(t)},e}()},82250:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(64762),o=n(38024),i=n(35366),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.copy=function(e){return(0,o.DM)(this,"copy",{},arguments)},t.prototype.paste=function(){return(0,o.DM)(this,"paste",{},arguments)},t.prototype.clear=function(){return(0,o.DM)(this,"clear",{},arguments)},t.pluginName="Clipboard",t.plugin="cordova-clipboard",t.pluginRef="cordova.plugins.clipboard",t.repo="https://github.com/ihadeed/cordova-clipboard",t.platforms=["Android","iOS","Windows Phone 8"],t.\u0275fac=function(e){return(n||(n=i.n5z(t)))(e||t)},t.\u0275prov=i.Yz7({token:t,factory:function(e){return t.\u0275fac(e)}}),t;var n}(o.KY)}
1,38024:function(e,t,n){"use strict";n.d(t,{KY:function(){return y},DM:function(){return v},J2:function(){return g},Iq:function(){return b}});var r=n(71784),o=n(87254),i={error:"cordova_not_available"},a={error:"plugin_not_installed"};function s(e){if("undefined"!=typeof window&&window.angular){var t=window.document,n=window.angular.element(t.querySelector("[ng-app]")||t.body).injector();if(n)return n.get("$q")(function(t,n){e(t,n)});console.warn("Angular 1 was detected but $q couldn't be retrieved. This is usually when the app is not bootstrapped on the html or body tag. Falling back to native promises which won't trigger an automatic digest when promises resolve.")}return function(){if(Promise)return new Promise(function(t,n){e(t,n)});console.error("No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.")}()}function u(e,t,n,r){var o,i;void 0===r&&(r={});var a=s(function(a,s){o=r.destruct?d(e,t,n,r,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a(e)},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}):d(e,t,n,r,a,s),i=s});return o&&o.error&&(a.catch(function(){}),"function"==typeof i&&i(o.error)),a}function c(e,t,n,r){return void 0===r&&(r={}),s(function(o,i){var a=d(e,t,n,r);a?a.error?i(a.error):a.then&&a.then(o).catch(i):i({error:"unexpected_error"})})}function l(e,t,n,o){return void 0===o&&(o={}),new r.y(function(r){var i;return(i=o.destruct?d(e,t,n,o,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.next(e)},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.error(e)}):d(e,t,n,o,r.next.bind(r),r.error.bind(r)))&&i.error&&(r.error(i.error),r.complete()),function(){try{if(o.clearFunction)return o.clearWithArgs?d(e,o.clearFunction,n,o,r.next.bind(r),r.error.bind(r)):d(e,o.clearFunction,[])}catch(i){console.warn("Unable to clear the previous observable watch for",e.constructor.getPluginName(),t),console.warn(i)}}})}function f(e,t){return t="undefined"!=typeof window&&t?m(window,t):t||("undefined"!=typeof window?window:{}),(0,o.R)(t,e)}function h(e,t,n){var r,o,s;return"string"==typeof e?r=e:(r=e.constructor.getPluginRef(),n=e.constructor.getPluginName(),s=e.constructor.getPluginInstallName()),!(!(o=p(r))||t&&void 0===o[t])||("undefined"!=typeof window&&window.cordova?(function(e,t,n){n?console.warn("Native: tried calling "+e+"."+n+", but the "+e+" plugin is not installed."):console.warn("Native: tried accessing the "+e+" plugin but it's not installed."),t&&console.warn("Install the "+e+" plugin: 'ionic cordova plugin add "+t+"'")}(n,s,t),a):(function(e,t){"undefined"==typeof process&&(t?console.warn("Native: tried calling "+e+"."+t+", but Cordova is not available. Make sure to include cordova.js or run in a device/simulator"):console.warn("Native: tried accessing the "+e+" plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator"))}(n,t),i))}function d(e,t,n,r,o,i){void 0===r&&(r={}),n=function(e,t,n,r){if(void 0===t&&(t={}),t.sync)return e;if("reverse"===t.callbackOrder)e.unshift(r),e.unshift(n);else if("node"===t.callbackStyle)e.push(function(e,t){e?r(e):n(t)});else if("object"===t.callbackStyle&&t.successName&&t.errorName){var o={};o[t.successName]=n,o[t.errorName]=r,e.push(o)}else if(void 0!==t.successIndex||void 0!==t.errorIndex){var i=function(){t.successIndex>e.length?e[t.successIndex]=n:e.splice(t.successIndex,0,n)},a=function(){t.errorIndex>e.length?e[t.errorIndex]=r:e.splice(t.errorIndex,0,r)};t.successIndex>t.errorIndex?(a(),i()):(i(),a())}else e.push(n),e.push(r);return e}(n,r,o,i);var a=h(e,t);if(!0===a){var s=p(e.constructor.getPluginRef());return s[t].apply(s,n)}return a}function p(e){return"undefined"!=typeof window?m(window,e):null}function m(e,t){for(var n=t.split("."),r=e,o=0;o<n.length;o++){if(!r)return null;r=r[n[o]]}return r}var y=function(){function e(){}return e.installed=function(){return!0===h(this.pluginRef)},e.getPlugin=function(){return"undefined"!=typeof window?function(e,t){for(var n=t.split("."),r=e,o=0;o<n.length;o++){if(!r)return null;r=r[n[o]]}return r}(window,this.pluginRef):null},e.getPluginName=function(){return this.pluginName},e.getPluginRef=function(){return this.pluginRef},e.getPluginInstallName=function(){return this.plugin}
1,e.getSupportedPlatforms=function(){return this.platforms},e.pluginName="",e.pluginRef="",e.plugin="",e.repo="",e.platforms=[],e.install="",e}();function v(e,t,n,r){return function(e,t,n){return void 0===n&&(n={}),function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n.sync?d(e,t,r,n):n.observable?l(e,t,r,n):n.eventObservable&&n.event?f(n.event,n.element):n.otherPromise?c(e,t,r,n):u(e,t,r,n)}}(e,t,n).apply(this,r)}function g(e,t){return!0===h(e,t)?p(e.constructor.getPluginRef())[t]:null}function b(e,t,n){!0===h(e,t)&&(p(e.constructor.getPluginRef())[t]=n)}!function(){if("undefined"==typeof process){var e="undefined"!=typeof window?window:{},t=Date.now(),n=!1;e.document.addEventListener("deviceready",function(){console.log("Ionic Native: deviceready event fired after "+(Date.now()-t)+" ms"),n=!0}),setTimeout(function(){!n&&e.cordova&&console.warn("Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.")},5e3)}}()},71290:function(e,t,n){"use strict";n.d(t,{Br:function(){return yt},w:function(){return q},dr:function(){return te},oU:function(){return ne},cs:function(){return pt},yp:function(){return re},YG:function(){return oe},Sm:function(){return ie},PM:function(){return ae},FN:function(){return se},Zi:function(){return ue},tO:function(){return ce},gZ:function(){return le},nz:function(){return fe},hM:function(){return he},wI:function(){return de},W2:function(){return pe},IJ:function(){return me},W4:function(){return ye},zq:function(){return ve},fr:function(){return ge},jY:function(){return be},Gu:function(){return we},gu:function(){return _e},ju:function(){return ke},MB:function(){return Se},pK:function(){return Ce},Ie:function(){return Ee},Ub:function(){return Te},Q$:function(){return xe},q_:function(){return Oe},yh:function(){return Ae},z0:function(){return Re},uN:function(){return Ie},jP:function(){return ht},Nd:function(){return Pe},VI:function(){return Me},cJ:function(){return Ne},GO:function(){return je},t9:function(){return De},n0:function(){return Le},Hr:function(){return Fe},PQ:function(){return Be},jI:function(){return Ue},yW:function(){return qe},g2:function(){return He},wd:function(){return ze},ho:function(){return Ge},sr:function(){return Ve},Pc:function(){return Ct},r4:function(){return kt},HT:function(){return vt},_q:function(){return gt},IN:function(){return bt},SH:function(){return Y},X1:function(){return We},as:function(){return H},t4:function(){return V},Dh:function(){return wt},QI:function(){return z},j9:function(){return G},yF:function(){return _t}});var o,i,a,u,c=n(64762),l=n(35366),h=n(11462),p=n(61116),m=n(26239),y=(n(10114),n(33897),n(88520),n(47505)),g=n(71843),_=n(13730),k=n(64378),S=n(71558),C=(n(6953),n(52322)),E=n(55959),T=n(87254),x=n(78512),O=n(96673),A=function(){function e(t,n){w(this,e),this.compare=t,this.keySelector=n}return b(e,[{key:"call",value:function(e,t){return t.subscribe(new R(e,this.compare,this.keySelector))}}]),e}(),R=function(e){f(n,e);var t=d(n);function n(e,r,o){var i;return w(this,n),(i=t.call(this,e)).keySelector=o,i.hasKey=!1,"function"==typeof r&&(i.compare=r),i}return b(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(o){return this.destination.error(o)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(o){return this.destination.error(o)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))}}]),n}(O.L),I=n(43835),P=n(44689),M=y.i,N=["*"],j=function(e){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e)},D=function(){var e=function(){function e(t,n){w(this,e),this.injector=t,this.el=n,this.onChange=function(){},this.onTouched=function(){}}return b(e,[{key:"writeValue",value:function(e){this.el.nativeElement.value=this.lastValue=null==e?"":e,L(this.el)}},{key:"handleChangeEvent",value:function(e,t){e===this.el.nativeElement&&(t!==this.lastValue&&(this.lastValue=t,this.onChange(t)),L(this.el))}},{key:"_handleBlurEvent",value:function(e){e===this.el.nativeElement&&(this.onTouched(),L(this.el))}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.el.nativeElement.disabled=e}},{key:"ngOnDestroy",value:function(){this.statusChanges&&this.statusChanges.unsubscribe()}},{key:"ngAfterViewInit",value:function(){var e,t=this;try{e=this.injector.get(h.a5)}catch(r){}if(e){e.statusChanges&&(this.statusChanges=e.statusChanges.subscribe(function(){return L(t.el)}));var n=e.control;n&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(function(e){if(n[e]){var r=n[e].bind(n);n[e]=function(){r.apply(void 0,arguments),L(t.el)}}})}}}]),e}();return e.\u0275fac=function(e){l.$Z()},e.\u0275dir=l.lG2({type:e,hostBindings:function(e,t){1&e&&l.NdJ("ionBlur",function(e){return t._handleBlurEvent(e.target)})}}),e}(),L=function(e){j(function(){var t=e.nativeElement,n=F(t);B(t,n);var r=t.closest("ion-item");r&&B(r,n)})},F=function(e){for(var t=e.classList,n=[],r=0;r<t.length;r++){var o=t.item(r);null!==o&&U(o,"ng-")&&n.push("ion-".concat(o.substr(3)))}return n},B=function(e,t){var n=e.classList;["ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"].forEach(function(e){return n.remove(e)}),t.forEach(function(e){return n.add(e)})},U=function(e,t){return e.substr(0,t.length)===t},q=function(){var e=o=function(e){f(n,e);var t=d(n);function n(e,r){return w(this,n),t.call(this,e,r)}return b(n,[{key:"writeValue",value:function(e){this.el.nativeElement.checked=this.lastValue=null!=e&&e,L(this.el)}},{key:"_handleIonChange",value:function(e){this.handleChangeEvent(e,e.checked)}}]),n}(D);return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.zs3),l.Y36(l.SBq))},e.\u0275dir=l.lG2({type:e,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(e,t){1&e&&l.NdJ("ionChange",function(e){return t._handleIonChange(e.target)})},features:[l._Bn([{provide:h.JU,useExisting:o,multi:!0}]),l.qOj]}),e}(),H=function(){var e=i=function(e){f(n,e);var t=d(n);function n(e,r){return w(this,n),t.call(this,e,r)}return b(n,[{key:"_handleIonChange",value:function(e){this.handleChangeEvent(e,e.value)}},{key:"registerOnChange",value:function(e){r(v(n.prototype),"registerOnChange",this).call(this,function(t){e(""===t?null:parseFloat(t))})}}]),n}(D);return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.zs3),l.Y36(l.SBq))},e.\u0275dir=l.lG2({type:e,selectors:[["ion-input","type","number"]],hostBindings:function(e,t){1&e&&l.NdJ("ionChange",function(e){return t._handleIonChange(e.target)})},features:[l._Bn([{provide:h.JU,useExisting:i,multi:!0}]),l.qOj]}),e}(),z=function(){var e=a=function(e){f(n,e);var t=d(n);function n(e,r){return w(this,n),t.call(this,e,r)}return b(n,[{key:"_handleChangeEvent",value:function(e){this.handleChangeEvent(e,e.value)}}]),n}(D);return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.zs3),l.Y36(l.SBq))},e.\u0275dir=l.lG2({type:e,selectors:[["ion-range"],["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(e,t){1&e&&l.NdJ("ionChange",function(e){return t._handleChangeEvent(e.target)})},features:[l._Bn([{provide:h.JU,useExisting:a,multi:!0}]),l.qOj]}),e}(),G=function(){var e=u=function(e){f(n,e);var t=d(n);function n(e,r){return w(this,n),t.call(this,e,r)}return b(n,[{key:"_handleInputEvent",value:function(e){this.handleChangeEvent(e,e.value)}}]),n}(D);return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.zs3),l.Y36(l.SBq))},e.\u0275dir=l.lG2({type:e,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(e,t){1&e&&l.NdJ("ionChange",function(e){return t._handleInputEvent(e.target)})},features:[l._Bn([{provide:h.JU,useExisting:u,multi:!0}]),l.qOj]}),e}(),V=function(){var e=function(){function e(t,n){var r=this;w(this,e),this.doc=t,this.backButton=new E.xQ,this.keyboardDidShow=new E.xQ,this.keyboardDidHide=new E.xQ,this.pause=new E.xQ,this.resume=new E.xQ,this.resize=new E.xQ,n.run(function(){var e;r.win=t.defaultView,r.backButton.subscribeWithPriority=function(e,t){return this.subscribe(function(r){return r.register(e,function(e){return n.run(function(){return t(e)})})})},K(r.pause,t,"pause"),K(r.resume,t,"resume"),K(r.backButton,t,"ionBackButton"),K(r.resize,r.win,"resize"),K(r.keyboardDidShow,r.win,"ionKeyboardDidShow"),K(r.keyboardDidHide,r.win,"ionKeyboardDidHide"),r._readyPromise=new Promise(function(t){e=t}
1),r.win&&r.win.cordova?t.addEventListener("deviceready",function(){e("cordova")},{once:!0}):e("dom")})}return b(e,[{key:"is",value:function(e){return(0,y.a)(this.win,e)}},{key:"platforms",value:function(){return(0,y.g)(this.win)}},{key:"ready",value:function(){return this._readyPromise}},{key:"isRTL",get:function(){return"rtl"===this.doc.dir}},{key:"getQueryParam",value:function(e){return $(this.win.location.href,e)}},{key:"isLandscape",value:function(){return!this.isPortrait()}},{key:"isPortrait",value:function(){return this.win.matchMedia&&this.win.matchMedia("(orientation: portrait)").matches}},{key:"testUserAgent",value:function(e){var t=this.win.navigator;return!!(t&&t.userAgent&&t.userAgent.indexOf(e)>=0)}},{key:"url",value:function(){return this.win.location.href}},{key:"width",value:function(){return this.win.innerWidth}},{key:"height",value:function(){return this.win.innerHeight}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.LFG(p.K0),l.LFG(l.R0b))},e.\u0275prov=l.Yz7({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=(0,l.Yz7)({factory:function(){return new e((0,l.LFG)(p.K0),(0,l.LFG)(l.R0b))},token:e,providedIn:"root"}),e=(0,c.gn)([(0,c.fM)(0,(0,l.tBr)(p.K0))],e)}(),$=function(e,t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null},K=function(e,t,n){t&&t.addEventListener(n,function(t){e.next(null!=t?t.detail:void 0)})},Y=function(){var e=function(){function e(t,n,r,o){var i=this;w(this,e),this.location=n,this.serializer=r,this.router=o,this.direction=X,this.animated=Z,this.guessDirection="forward",this.lastNavId=-1,o&&o.events.subscribe(function(e){if(e instanceof m.OD){var t=e.restoredState?e.restoredState.navigationId:e.id;i.guessDirection=t<i.lastNavId?"back":"forward",i.guessAnimation=e.restoredState?void 0:i.guessDirection,i.lastNavId="forward"===i.guessDirection?e.id:t}}),t.backButton.subscribeWithPriority(0,function(e){i.pop(),e()})}return b(e,[{key:"navigateForward",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDirection("forward",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}},{key:"navigateBack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDirection("back",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}},{key:"navigateRoot",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDirection("root",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}},{key:"back",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{animated:!0,animationDirection:"back"};return this.setDirection("back",e.animated,e.animationDirection,e.animation),this.location.back()}},{key:"pop",value:function(){return(0,c.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=this.topOutlet;case 1:if(e.t0=t,!e.t0){e.next=6;break}return e.next=5,t.pop();case 5:e.t0=!e.sent;case 6:if(!e.t0){e.next=10;break}t=t.parentOutlet;case 8:e.next=1;break;case 10:case"end":return e.stop()}},e,this)}))}},{key:"setDirection",value:function(e,t,n,r){this.direction=e,this.animated=W(e,t,n),this.animationBuilder=r}},{key:"setTopOutlet",value:function(e){this.topOutlet=e}},{key:"consumeTransition",value:function(){var e,t="root",n=this.animationBuilder;return"auto"===this.direction?(t=this.guessDirection,e=this.guessAnimation):(e=this.animated,t=this.direction),this.direction=X,this.animated=Z,this.animationBuilder=void 0,{direction:t,animation:e,animationBuilder:n}}},{key:"navigate",value:function(e,t){if(Array.isArray(e))return this.router.navigate(e,t);var n=this.serializer.parse(e.toString());return void 0!==t.queryParams&&(n.queryParams=Object.assign({},t.queryParams)),void 0!==t.fragment&&(n.fragment=t.fragment),this.router.navigateByUrl(n,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.LFG(V),l.LFG(p.Ye),l.LFG(m.Hx),l.LFG(m.F0,8))},e.\u0275prov=l.Yz7({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=(0,l.Yz7)({factory:function(){return new e((0,l.LFG)(V),(0,l.LFG)(p.Ye),(0,l.LFG)(m.Hx),(0,l.LFG)(m.F0,8))},token:e,providedIn:"root"}),e=(0,c.gn)([(0,c.fM)(3,(0,l.FiY)())],e)}(),W=function(e,t,n){if(!1!==t)return void 0!==n?n:"forward"===e||"back"===e?e:"root"===e&&!0===t?"forward":void 0}
1,X="auto",Z=void 0,J=function(e,t,n){n.forEach(function(n){return e[n]=(0,T.R)(t,n)})};function Q(e){return function(t){return e.inputs&&(n=t,r=e.inputs,o=n.prototype,r.forEach(function(e){Object.defineProperty(o,e,{get:function(){return this.el[e]},set:function(t){var n=this;this.z.runOutsideAngular(function(){return n.el[e]=t})}})})),e.methods&&function(e,t){var n=e.prototype;t.forEach(function(e){n[e]=function(){var t=this,n=arguments;return this.z.runOutsideAngular(function(){return t.el[e].apply(t.el,n)})}})}(t,e.methods),t;var n,r,o}}var ee,te=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-app"]],ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e}(),ne=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-back-button"]],inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"]})],e)}(),re=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-badge"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["color","mode"]})],e)}(),oe=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement,J(this,this.el,["ionFocus","ionBlur"])};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["buttonType","color","disabled","download","expand","fill","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],e)}(),ie=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["collapse"]})],e)}(),ae=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],e)}(),se=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}
1),e=(0,c.gn)([Q({inputs:["mode"]})],e)}(),ue=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["color","mode","translucent"]})],e)}(),ce=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["color","mode"]})],e)}(),le=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["color","mode"]})],e)}(),fe=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement,J(this,this.el,["ionChange","ionFocus","ionBlur"])};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-checkbox"]],inputs:{checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",mode:"mode",name:"name",value:"value"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["checked","color","disabled","indeterminate","mode","name","value"]})],e)}(),he=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["color","disabled","mode","outline"]})],e)}(),de=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],e)}(),pe=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement,J(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}
1),e=(0,c.gn)([Q({inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],e)}(),me=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],e)}(),ye=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement,J(this,this.el,["ionFocus","ionBlur"])};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-fab-button"]],inputs:{activated:"activated",closeIcon:"closeIcon",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",show:"show",size:"size",target:"target",translucent:"translucent",type:"type"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],e)}(),ve=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-fab-list"]],inputs:{activated:"activated",side:"side"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["activated","side"]})],e)}(),ge=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-footer"]],inputs:{mode:"mode",translucent:"translucent"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["mode","translucent"]})],e)}(),be=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["fixed"]})],e)}(),we=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["collapse","mode","translucent"]})],e)}(),_e=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-icon"]],inputs:{ariaHidden:"ariaHidden",ariaLabel:"ariaLabel",color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["ariaHidden","ariaLabel","color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],e)}(),ke=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement,J(this,this.el,["ionInfinite"])};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-infinite-scroll"]],inputs:{disabled:"disabled",position:"position",threshold:"threshold"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}
1),e=(0,c.gn)([Q({inputs:["disabled","position","threshold"],methods:["complete"]})],e)}(),Se=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-infinite-scroll-content"]],inputs:{loadingSpinner:"loadingSpinner",loadingText:"loadingText"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["loadingSpinner","loadingText"]})],e)}(),Ce=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement,J(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-input"]],inputs:{accept:"accept",autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearOnEdit:"clearOnEdit",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",size:"size",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","debounce","disabled","enterkeyhint","inputmode","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","size","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],e)}(),Ee=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],e)}(),Te=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-item-group"]],ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e}(),xe=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["color","mode","position"]})],e)}(),Oe=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],e)}(),Ae=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-list-header"]],inputs:{color:"color",lines:"lines",mode:"mode"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}
1),e=(0,c.gn)([Q({inputs:["color","lines","mode"]})],e)}(),Re=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement,J(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],e)}(),Ie=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-note"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["color","mode"]})],e)}(),Pe=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-row"]],ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e}(),Me=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement,J(this,this.el,["ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus"])};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-searchbar"]],inputs:{animated:"animated",autocomplete:"autocomplete",autocorrect:"autocorrect",cancelButtonIcon:"cancelButtonIcon",cancelButtonText:"cancelButtonText",clearIcon:"clearIcon",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",mode:"mode",placeholder:"placeholder",searchIcon:"searchIcon",showCancelButton:"showCancelButton",showClearButton:"showClearButton",spellcheck:"spellcheck",type:"type",value:"value"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],e)}(),Ne=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement,J(this,this.el,["ionChange"])};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["color","disabled","mode","scrollable","swipeGesture","value"]})],e)}(),je=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["disabled","layout","mode","type","value"]})],e)}(),De=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement,J(this,this.el,["ionChange","ionCancel","ionFocus","ionBlur"])};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",compareWith:"compareWith",disabled:"disabled",interface:"interface",interfaceOptions:"interfaceOptions",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",value:"value"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}
1),e=(0,c.gn)([Q({inputs:["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"],methods:["open"]})],e)}(),Le=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["disabled","value"]})],e)}(),Fe=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement,J(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-slides"]],inputs:{mode:"mode",options:"options",pager:"pager",scrollbar:"scrollbar"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["mode","options","pager","scrollbar"],methods:["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]})],e)}(),Be=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-spinner"]],inputs:{color:"color",duration:"duration",name:"name",paused:"paused"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["color","duration","name","paused"]})],e)}(),Ue=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement,J(this,this.el,["ionSplitPaneVisible"])};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["contentId","disabled","when"]})],e)}(),qe=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-text"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["color","mode"]})],e)}(),He=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement,J(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-textarea"]],inputs:{autoGrow:"autoGrow",autocapitalize:"autocapitalize",autofocus:"autofocus",clearOnEdit:"clearOnEdit",color:"color",cols:"cols",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",maxlength:"maxlength",minlength:"minlength",mode:"mode",name:"name",placeholder:"placeholder",readonly:"readonly",required:"required",rows:"rows",spellcheck:"spellcheck",value:"value",wrap:"wrap"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","debounce","disabled","enterkeyhint","inputmode","maxlength","minlength","mode","name","placeholder","readonly","required","rows","spellcheck","value","wrap"],methods:["setFocus","getIn
1putElement"]})],e)}(),ze=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["color","size"]})],e)}(),Ge=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement,J(this,this.el,["ionChange","ionFocus","ionBlur"])};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-toggle"]],inputs:{checked:"checked",color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["checked","color","disabled","mode","name","value"]})],e)}(),Ve=function(){var e=function e(t,n,r){w(this,e),this.z=r,t.detach(),this.el=n.nativeElement};return e.\u0275fac=function(t){return new(t||e)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.R0b))},e.\u0275cmp=l.Xpm({type:e,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:N,decls:1,vars:0,template:function(e,t){1&e&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),e=(0,c.gn)([Q({inputs:["color","mode"]})],e)}(),$e=function(){var e=function(){function e(){w(this,e)}return b(e,[{key:"get",value:function(e,t){var n=Ye();return n?n.get(e,t):null}},{key:"getBoolean",value:function(e,t){var n=Ye();return!!n&&n.getBoolean(e,t)}},{key:"getNumber",value:function(e,t){var n=Ye();return n?n.getNumber(e,t):0}},{key:"set",value:function(e,t){console.warn("[DEPRECATION][Config]: The Config.set() method is deprecated and will be removed in Ionic Framework 6.0. Please see https://ionicframework.com/docs/angular/config for alternatives.");var n=Ye();n&&n.set(e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=l.Yz7({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=(0,l.Yz7)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Ke=new l.OlP("USERCONFIG"),Ye=function(){if("undefined"!=typeof window){var e=window.Ionic;if(e&&e.config)return e.config}return null},We=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};w(this,e),this.data=t}return b(e,[{key:"get",value:function(e){return this.data[e]}}]),e}(),Xe=function(){var e=function(){function e(t,n){w(this,e),this.zone=t,this.appRef=n}return b(e,[{key:"create",value:function(e,t,n){return new Ze(e,t,n,this.appRef,this.zone)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.LFG(l.R0b),l.LFG(l.z2F))},e.\u0275prov=l.Yz7({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),Ze=function(){function e(t,n,r,o,i){w(this,e),this.resolver=t,this.injector=n,this.location=r,this.appRef=o,this.zone=i,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}return b(e,[{key:"attachViewToDom",value:function(e,t,n,r){var o=this;return this.zone.run(function(){return new Promise(function(i){i(Je(o.zone,o.resolver,o.injector,o.location,o.appRef,o.elRefMap,o.elEventsMap,e,t,n,r))})})}},{key:"removeViewFromDom",value:function(e,t){var n=this;return this.zone.run(function(){return new Promise(function(e){var r=n.elRefMap.get(t);if(r){r.destroy(),n.elRefMap.delete(t);var o=n.elEventsMap.get(t);o&&(o(),n.elEventsMap.delete(t))}e()})})}}]),e}(),Je=function(e,t,n,r,o,i,a,u,c,f,h){var d=t.resolveComponentFactory(c),p=l.zs3.create({providers:nt(f),parent:n}),m=r?r.createComponent(d,r.length,p):d.create(p),y=m.instance,v=m.location.nativeElement;if(f&&Object.assign(y,f),h){var g,b=s(h);try{for(b.s();!(g=b.n()).done;){var w=g.value;v.classList.add(w)}}catch(k){b.e(k)}finally{b.f()}}var _=et(e,y,v);return u.appendChild(v),r||o.attachView(m.hostView),m.changeDetectorRef.reattach(),i.set(v,m),a.set(v,_),v},Qe=[_.L,_.a,_.b,_.c,_.d],et=function(e,t,n){return e.run(function(){var e=Qe.filter(function(e){return"function"==typeof t[e]}
1).map(function(e){var r=function(n){return t[e](n.detail)};return n.addEventListener(e,r),function(){return n.removeEventListener(e,r)}});return function(){return e.forEach(function(e){return e()})}})},tt=new l.OlP("NavParamsToken"),nt=function(e){return[{provide:tt,useValue:e},{provide:We,useFactory:rt,deps:[tt]}]},rt=function(e){return new We(e)},ot=function(e,t){return(e=e.filter(function(e){return e.stackId!==t.stackId})).push(t),e},it=function(e,t){var n=e.createUrlTree(["."],{relativeTo:t});return e.serializeUrl(n)},at=function(e,t){if(e)for(var n=st(t),r=0;r<n.length;r++){if(r>=e.length)return n[r];if(n[r]!==e[r])return}},st=function(e){return e.split("/").map(function(e){return e.trim()}).filter(function(e){return""!==e})},ut=function(e){e&&(e.ref.destroy(),e.unlistenEvents())},ct=function(){function e(t,n,r,o,i,a){w(this,e),this.containerEl=n,this.router=r,this.navCtrl=o,this.zone=i,this.location=a,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==t?st(t):void 0}return b(e,[{key:"createView",value:function(e,t){var n=it(this.router,t),r=e&&e.location&&e.location.nativeElement,o=et(this.zone,e.instance,r);return{id:this.nextId++,stackId:at(this.tabsPrefix,n),unlistenEvents:o,element:r,ref:e,url:n}}},{key:"getExistingView",value:function(e){var t=it(this.router,e),n=this.views.find(function(e){return e.url===t});return n&&n.ref.changeDetectorRef.reattach(),n}},{key:"setActive",value:function(e){var t=this,n=this.navCtrl.consumeTransition(),r=n.direction,o=n.animation,i=n.animationBuilder,a=this.activeView,s=function(e,t){return!t||e.stackId!==t.stackId}(e,a);s&&(r="back",o=void 0);var u,c=this.views.slice(),l=this.router;l.getCurrentNavigation?u=l.getCurrentNavigation():l.navigations&&l.navigations.value&&(u=l.navigations.value),u&&u.extras&&u.extras.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);var f=this.views.includes(e),h=this.insertView(e,r);f||e.ref.changeDetectorRef.detectChanges();var d=e.animationBuilder;return void 0!==i||"back"!==r||s||void 0===d||(i=d),a&&(a.animationBuilder=i),this.zone.runOutsideAngular(function(){return t.wait(function(){return a&&a.ref.changeDetectorRef.detach(),e.ref.changeDetectorRef.reattach(),t.transition(e,a,o,t.canGoBack(1),!1,i).then(function(){return lt(e,h,c,t.location)}).then(function(){return{enteringView:e,direction:r,animation:o,tabSwitch:s}})})})}},{key:"canGoBack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getActiveStackId();return this.getStack(t).length>e}},{key:"pop",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getActiveStackId();return this.zone.run(function(){var r=t.getStack(n);if(r.length<=e)return Promise.resolve(!1);var o=r[r.length-e-1],i=o.url,a=o.savedData;if(a){var s=a.get("primary");s&&s.route&&s.route._routerState&&s.route._routerState.snapshot&&s.route._routerState.snapshot.url&&(i=s.route._routerState.snapshot.url)}var u=t.navCtrl.consumeTransition().animationBuilder;return t.navCtrl.navigateBack(i,Object.assign({},o.savedExtras,{animation:u})).then(function(){return!0})})}},{key:"startBackTransition",value:function(){var e=this,t=this.activeView;if(t){var n=this.getStack(t.stackId),r=n[n.length-2],o=r.animationBuilder;return this.wait(function(){return e.transition(r,t,"back",e.canGoBack(2),!0,o)})}return Promise.resolve()}},{key:"endBackTransition",value:function(e){e?(this.skipTransition=!0,this.pop(1)):this.activeView&&ft(this.activeView,this.views,this.views,this.location)}},{key:"getLastUrl",value:function(e){var t=this.getStack(e);return t.length>0?t[t.length-1]:void 0}},{key:"getRootUrl",value:function(e){var t=this.getStack(e);return t.length>0?t[0]:void 0}},{key:"getActiveStackId",value:function(){return this.activeView?this.activeView.stackId:void 0}},{key:"hasRunningTask",value:function(){return void 0!==this.runningTask}},{key:"destroy",value:function(){this.containerEl=void 0,this.views.forEach(ut),this.activeView=void 0,this.views=[]}},{key:"getStack",value:function(e){return this.views.filter(function(t){return t.stackId===e})}},{key:"insertView",value:function(e,t){return this.activeView=e,this.views=function(e,t,n){return"root"===n?ot(e,t):"forward"===n?function(e,t){return e.indexOf(t)>=0?e=e.filter(function(e){return e.stackId!==t.stackId||e.id<=t.id}):e.push(t),e}(e,t):function(e,t){return e.indexOf(t)>=0?e.filter(function(e){return e.stackId!==t.stackId||e.id<=t.id}):ot(e,t)}(e,t)}(this.views,e,t),this.views.slice()}}
1,{key:"transition",value:function(e,t,n,r,o,i){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(t===e)return Promise.resolve(!1);var a=e?e.element:void 0,s=t?t.element:void 0,u=this.containerEl;return a&&a!==s&&(a.classList.add("ion-page"),a.classList.add("ion-page-invisible"),a.parentElement!==u&&u.appendChild(a),u.commit)?u.commit(a,s,{deepWait:!0,duration:void 0===n?0:void 0,direction:n,showGoBack:r,progressAnimation:o,animationBuilder:i}):Promise.resolve(!1)}},{key:"wait",value:function(e){return(0,c.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,r=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=void 0!==this.runningTask,!t.t0){t.next=5;break}return t.next=4,this.runningTask;case 4:this.runningTask=void 0;case 5:return n=this.runningTask=e(),t.abrupt("return",(n.finally(function(){return r.runningTask=void 0}),n));case 7:case"end":return t.stop()}},t,this)}))}}]),e}(),lt=function(e,t,n,r){return"function"==typeof requestAnimationFrame?new Promise(function(o){requestAnimationFrame(function(){ft(e,t,n,r),o()})}):Promise.resolve()},ft=function(e,t,n,r){n.filter(function(e){return!t.includes(e)}).forEach(ut),t.forEach(function(t){var n=r.path().split("?")[0].split("#")[0];if(t!==e&&t.url!==n){var o=t.element;o.setAttribute("aria-hidden","true"),o.classList.add("ion-page-hidden"),t.ref.changeDetectorRef.detach()}})},ht=function(){var e=function(){function e(t,n,r,o,i,a,s,u,c,f,h,d,p){w(this,e),this.parentContexts=t,this.location=n,this.resolver=r,this.config=a,this.navCtrl=s,this.parentOutlet=p,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new x.X(null),this.stackEvents=new l.vpe,this.activateEvents=new l.vpe,this.deactivateEvents=new l.vpe,this.nativeEl=c.nativeElement,this.name=o||m.eC,this.tabsPrefix="true"===i?it(f,d):void 0,this.stackCtrl=new ct(this.tabsPrefix,this.nativeEl,f,s,h,u),t.onChildOutletCreated(this.name,this)}return b(e,[{key:"animation",set:function(e){this.nativeEl.animation=e}},{key:"animated",set:function(e){this.nativeEl.animated=e}},{key:"swipeGesture",set:function(e){var t=this;this._swipeGesture=e,this.nativeEl.swipeHandler=e?{canStart:function(){return t.stackCtrl.canGoBack(1)&&!t.stackCtrl.hasRunningTask()},onStart:function(){return t.stackCtrl.startBackTransition()},onEnd:function(e){return t.stackCtrl.endBackTransition(e)}}:void 0}},{key:"ngOnDestroy",value:function(){this.stackCtrl.destroy()}},{key:"getContext",value:function(){return this.parentContexts.getContext(this.name)}},{key:"ngOnInit",value:function(){var e=this;if(!this.activated){var t=this.getContext();t&&t.route&&this.activateWith(t.route,t.resolver||null)}new Promise(function(t){return(0,g.c)(e.nativeEl,t)}).then(function(){void 0===e._swipeGesture&&(e.swipeGesture=e.config.getBoolean("swipeBackEnabled","ios"===e.nativeEl.mode))})}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){throw new Error("incompatible reuse strategy")}},{key:"attach",value:function(e,t){throw new Error("incompatible reuse strategy")}},{key:"deactivate",value:function(){if(this.activated){if(this.activatedView){var e=this.getContext();this.activatedView.savedData=new Map(e.children.contexts);var t=this.activatedView.savedData.get("primary");if(t&&e.route&&(t.route=Object.assign({},e.route)),this.activatedView.savedExtras={},e.route){var n=e.route.snapshot;this.activatedView.savedExtras.queryParams=n.queryParams,this.activatedView.savedExtras.fragment=n.fragment}}var r=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r)}}},{key:"activateWith",value:function(e,t){var n,r=this;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var o=this.stackCtrl.getExistingView(e);if(o){n=this.activated=o.ref;var i=o.savedData;i&&(this.getContext().children.contexts=i),this.updateActivatedRouteProxy(n.instance,e)}else{var a=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,u=new x.X(null),c=this.createActivatedRouteProxy(u,e),l=new dt(c,s,this.location.injector);n=this.activated=this.location.createComponent(a,this.location.length,l),u.next(n.instance),o=this.stackCtrl.createView(this.activated,e),this.proxyMap.set(n.instance,c),this.currentActivatedRoute$.next({component:n.instance,activatedRoute:e})}this.activatedView=o,this.stackCtrl.setActive(o).then(function(e){r.navCtrl.setTopOutlet(r),r.activateEvents.emit(n.instance),r.stackEvents.emit(e)})}},{key:"canGoBack",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0;return this.stackCtrl.canGoBack(e,t)}},{key:"pop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0;return this.stackCtrl.pop(e,t)}},{key:"getLastUrl",value:function(e){var t=this.stackCtrl.getLastUrl(e);return t?t.url:void 0}},{key:"getLastRouteView",value:function(e){return this.stackCtrl.getLastUrl(e)}},{key:"getRootView",value:function(e){return this.stackCtrl.getRootUrl(e)}},{key:"getActiveStackId",value:function(){return this.stackCtrl.getActiveStackId()}},{key:"createActivatedRouteProxy",value:function(e,t){var n=new m.gz;return n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,n._paramMap=this.proxyObservable(e,"paramMap"),n._queryParamMap=this.proxyObservable(e,"queryParamMap"),n.url=this.proxyObservable(e,"url"),n.params=this.proxyObservable(e,"params"),n.queryParams=this.proxyObservable(e,"queryParams"),n.fragment=this.proxyObservable(e,"fragment"),n.data=this.proxyObservable(e,"data"),n}},{key:"proxyObservable",value:function(e,t){var n=this;return e.pipe((0,I.h)(function(e){return!!e}),(0,P.w)(function(e){return n.currentActivatedRoute$.pipe((0,I.h)(function(t){return null!==t&&t.component===e}),(0,P.w)(function(e){return e&&e.activatedRoute[t]}),function(e){return e.lift(new A(void 0,void 0))})}))}},{key:"updateActivatedRouteProxy",value:function(e,t){var n=this.proxyMap.get(e);if(!n)throw new Error("Could not find activated route proxy for view");n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,this.currentActivatedRoute$.next({component:e,activatedRoute:t})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Y36(m.y6),l.Y36(l.s_b),l.Y36(l._Vd),l.$8M("name"),l.$8M("tabs"),l.Y36($e),l.Y36(Y),l.Y36(p.Ye),l.Y36(l.SBq),l.Y36(m.F0),l.Y36(l.R0b),l.Y36(m.gz),l.Y36(e,12))},e.\u0275dir=l.lG2({type:e,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",swipeGesture:"swipeGesture"},outputs:{stackEvents:"stackEvents",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e=(0,c.gn)([(0,c.fM)(3,(0,l.ahi)("name")),(0,c.fM)(4,(0,l.FiY)()),(0,c.fM)(4,(0,l.ahi)("tabs")),(0,c.fM)(12,(0,l.tp0)()),(0,c.fM)(12,(0,l.FiY)())],e)}(),dt=function(){function e(t,n,r){w(this,e),this.route=t,this.childContexts=n,this.parent=r}return b(e,[{key:"get",value:function(e,t){return e===m.gz?this.route:e===m.y6?this.childContexts:this.parent.get(e,t)}}]),e}(),pt=function(){var e=function(){function e(t,n,r){w(this,e),this.routerOutlet=t,this.navCtrl=n,this.config=r}return b(e,[{key:"onClick",value:function(e){var t=this.defaultHref||this.config.get("backButtonDefaultHref");this.routerOutlet&&this.routerOutlet.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),e.preventDefault()):null!=t&&(this.navCtrl.navigateBack(t,{animation:this.routerAnimation}),e.preventDefault())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Y36(ht,8),l.Y36(Y),l.Y36($e))},e.\u0275dir=l.lG2({type:e,selectors:[["ion-back-button"]],hostBindings:function(e,t){1&e&&l.NdJ("click",function(e){return t.onClick(e)})},inputs:{defaultHref:"defaultHref",routerAnimation:"routerAnimation"}}),e=(0,c.gn)([(0,c.fM)(0,(0,l.FiY)())],e)}(),mt=function(){function e(t){w(this,e),this.ctrl=t}return b(e,[{key:"create",value:function(e){return this.ctrl.create(e||{})}},{key:"dismiss",value:function(e,t,n){return this.ctrl.dismiss(e,t,n)}},{key:"getTop",value:function(){return this.ctrl.getTop()}}]),e}(),yt=function(){var e=function(e){f(n,e);var t=d(n);function n(){return w(this,n),t.call(this,S.a)}return n}(mt);return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=l.Yz7({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=(0,l.Yz7)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),vt=function(){var e=function(e){f(n,e);var t=d(n);function n(){return w(this,n),t.call(this,S.l)}return n}(mt);return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=l.Yz7({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=(0,l.Yz7)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),gt=function(){var e=function(){function e(){w(this,e)}return b(e,[{key:"open",value:function(e){return k.m.open(e)}},{key:"close",value:function(e){return k.m.close(e)}},{key:"toggle",value:function(e){return k.m.toggle(e)}},{key:"enable",value:function(e,t){return k.m.enable(e,t)}},{key:"swipeGesture",value:function(e,t){return k.m.swipeGesture(e,t)}},{key:"isOpen",value:function(e){return k.m.isOpen(e)}},{key:"isEnabled",value:function(e){return k.m.isEnabled(e)}},{key:"get",value:function(e){return k.m.get(e)}},{key:"getOpen",value:function(){return k.m.getOpen()}},{key:"getMenus",value:function(){return k.m.getMenus()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=l.Yz7({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=(0,l.Yz7)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),bt=function(){var e=function(e){f(n,e);var t=d(n);function n(e,r,o){var i;return w(this,n),(i=t.call(this,S.m)).angularDelegate=e,i.resolver=r,i.injector=o,i}return b(n,[{key:"create",value:function(e){return r(v(n.prototype),"create",this).call(this,Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}}]),n}(mt);
1return e.\u0275fac=function(t){return new(t||e)(l.LFG(Xe),l.LFG(l._Vd),l.LFG(l.zs3))},e.\u0275prov=l.Yz7({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),wt=function(){var e=function(e){f(n,e);var t=d(n);function n(e,r,o){var i;return w(this,n),(i=t.call(this,S.c)).angularDelegate=e,i.resolver=r,i.injector=o,i}return b(n,[{key:"create",value:function(e){return r(v(n.prototype),"create",this).call(this,Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}}]),n}(mt);return e.\u0275fac=function(t){return new(t||e)(l.LFG(Xe),l.LFG(l._Vd),l.LFG(l.zs3))},e.\u0275prov=l.Yz7({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),_t=function(){var e=function(e){f(n,e);var t=d(n);function n(){return w(this,n),t.call(this,S.t)}return n}(mt);return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=l.Yz7({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=(0,l.Yz7)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),kt=function(){function e(){w(this,e)}return b(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"shouldAttach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){if(e.routeConfig!==t.routeConfig)return!1;var n=e.params,r=t.params,o=Object.keys(n),i=Object.keys(r);if(o.length!==i.length)return!1;for(var a=0,s=o;a<s.length;a++){var u=s[a];if(r[u]!==n[u])return!1}return!0}}]),e}(),St=function(e,t,r){return function(){var o=t.defaultView;if(o&&"undefined"!=typeof window){(o.Ionic=o.Ionic||{}).config=Object.assign({},e,{_zoneGate:function(e){return r.run(e)}});var i="__zone_symbol__addEventListener"in t.body?"__zone_symbol__addEventListener":"addEventListener";return function(){var e=[];if("undefined"!=typeof window){var t=window;t.customElements&&(!t.Element||t.Element.prototype.closest&&t.Element.prototype.matches&&t.Element.prototype.remove&&t.Element.prototype.getRootNode)||e.push(n.e(6748).then(n.t.bind(n,11255,23))),"function"==typeof Object.assign&&Object.entries&&Array.prototype.find&&Array.prototype.includes&&String.prototype.startsWith&&String.prototype.endsWith&&(!t.NodeList||t.NodeList.prototype.forEach)&&t.fetch&&function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()&&"undefined"!=typeof WeakMap||e.push(n.e(2214).then(n.t.bind(n,29227,23)))}return Promise.all(e)}().then(function(){return e={exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:j,jmp:function(e){return r.runOutsideAngular(e)},ael:function(e,t,n,r){e[i](t,n,r)},rel:function(e,t,n,r){e.removeEventListener(t,n,r)}},"undefined"==typeof window?Promise.resolve():(C.C&&C.C.supports&&C.C.supports("color","var(--c)")?(0,C.a)():n.e(1843).then(n.t.bind(n,92463,23)).then(function(){return(C.p.$cssShim$=C.w.__cssshim)?C.p.$cssShim$.i():0})).then(function(){return M(),(0,C.b)(JSON.parse('[["ion-select_3",[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]],[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["ion-menu_3",[[33,"ion-menu-button",{"color":[1],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[1],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["ion-back-button",[[33,"ion-back-button",{"color":[1],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[1],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-card_5",[[33,"ion-card",{"color":[1],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[1],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[1]}],[33,"ion-card-title",{"color":[1]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[1],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}],[33,"ion-segment",{"color":[1],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"activated":[32]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[1],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["ion-chip",[[33,"ion-chip",{"color":[1],"outline":[4],"disabled":[4]}]]],["ion-modal",[[34,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-popover",[[34,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[1],"animated":[4],"autocomplete":[
11],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-app_8",[[0,"ion-app"],[34,"ion-buttons",{"collapse":[4]}],[1,"ion-content",{"color":[1],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[2,"click","onClick"]]],[36,"ion-footer",{"translucent":[4]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[33,"ion-title",{"color":[1],"size":[1]}],[33,"ion-toolbar",{"color":[1]},[[0,"ionStyle","childrenStyle"]]]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[1]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-slide_2",[[0,"ion-slide"],[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[1],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["ion-input",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[
11],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[1]}]]],["ion-range",[[33,"ion-range",{"color":[1],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[1]}]]],["ion-textarea",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[1],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["ion-datetime_3",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[33,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[1],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["ion-spinner",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[1],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[1],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[1],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[1]}],[1,"ion-skeleton-text",{"animated":[4]}],[49,"ion-item",{"color":[1],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]}
1,[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[1],"position":[1],"noAnimate":[32]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[1],"lines":[1]}]]]]'),e)});var e})}}},Ct=function(){var e=ee=function(){function e(){w(this,e)}return b(e,null,[{key:"forRoot",value:function(e){return{ngModule:ee,providers:[{provide:Ke,useValue:e},{provide:l.ip1,useFactory:St,multi:!0,deps:[Ke,p.K0,l.R0b]}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.oAB({type:e}),e.\u0275inj=l.cJS({providers:[Xe,bt,wt],imports:[[p.ez]]}),e}()},69691:function(e,t,r){"use strict";r.d(t,{c:function(){return d}});var o,i=r(71843),u=function(e){if(void 0===o){var t=void 0!==e.style.webkitAnimationName;o=void 0===e.style.animationName&&t?"-webkit-":""}return o},c=function(e,t,n){var r=t.startsWith("animation")?u(e):"";e.style.setProperty(r+t,n)},l=function(e,t){var n=t.startsWith("animation")?u(e):"";e.style.removeProperty(n+t)},f=[],h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(void 0!==t){var n=Array.isArray(t)?t:[t];return[].concat(a(e),a(n))}return e},d=function(e){var t,r,o,d,p,m,y,v,g,b,w,_,k,S=[],C=[],E=[],T=!1,x={},O=[],A=[],R={},I=0,P=!1,M=!1,N=!0,j=!1,D=!0,L=e,F=[],B=[],U=[],q=[],H=[],z=[],G=[],V=[],$=[],K=[],Y="function"==typeof AnimationEffect||"function"==typeof window.AnimationEffect,W="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Y,X=function(e,t){return(t&&t.oneTimeCallback?B:F).push({c:e,o:t}),k},Z=function(){if(W)K.forEach(function(e){e.cancel()}),K.length=0;else{var e=U.slice();(0,i.r)(function(){e.forEach(function(e){l(e,"animation-name"),l(e,"animation-duration"),l(e,"animation-timing-function"),l(e,"animation-iteration-count"),l(e,"animation-delay"),l(e,"animation-play-state"),l(e,"animation-fill-mode"),l(e,"animation-direction")})})}},J=function(){H.forEach(function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}),H.length=0},Q=function(){return void 0!==p?p:y?y.getFill():"both"},ee=function(){return void 0!==g?g:void 0!==m?m:y?y.getDirection():"normal"},te=function(){return P?"linear":void 0!==o?o:y?y.getEasing():"linear"},ne=function(){return M?0:void 0!==b?b:void 0!==r?r:y?y.getDuration():0},re=function(){return void 0!==d?d:y?y.getIterations():1},oe=function(){return void 0!==w?w:void 0!==t?t:y?y.getDelay():0},ie=function(){0!==I&&(0===--I&&(function(){de(),V.forEach(function(e){return e()}),$.forEach(function(e){return e()});var e=N?1:0,t=O,n=A,r=R;U.forEach(function(e){var o=e.classList;for(var i in t.forEach(function(e){return o.add(e)}),n.forEach(function(e){return o.remove(e)}),r)r.hasOwnProperty(i)&&c(e,i,r[i])}),F.forEach(function(t){return t.c(e,k)}),B.forEach(function(t){return t.c(e,k)}),B.length=0,D=!0,N&&(j=!0),N=!0}(),y&&y.animationFinish()))},ae=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(function(){z.forEach(function(e){return e()}),G.forEach(function(e){return e()});var e=C,t=E,n=x;U.forEach(function(r){var o=r.classList;for(var i in e.forEach(function(e){return o.add(e)}),t.forEach(function(e){return o.remove(e)}),n)n.hasOwnProperty(i)&&c(r,i,n[i])})})(),S.length>0&&(W?(U.forEach(function(e){var t=e.animate(S,{id:L,delay:oe(),duration:ne(),easing:te(),iterations:re(),fill:Q(),direction:ee()});t.pause(),K.push(t)}),K.length>0&&(K[0].onfinish=function(){ie()})):function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];J();var n,r=((n=S).forEach(function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];if("easing"===t)e["animation-timing-function"]=n,delete e[t];else{var r=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();r!==t&&(e[r]=n,delete e[t])}}}),n);U.forEach(function(n){if(r.length>0){var o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(function(e){var t=e.offset,n=[];for(var r in e)e.hasOwnProperty(r)&&"offset"!==r&&n.push("".concat(r,": ").concat(e[r],";"));return"".concat(100*t,"% { ").concat(n.join(" ")," }")}).join(" ")}(r),a=function(e,t,n){var r=function(e){var t=e.getRootNode();return t.head||t}(n),o=u(n),i=r.querySelector("#"+e);if(i)return i;var a=(n.ownerDocument||document).createElement("style");return a.id=e,a.textContent="@".concat(o,"keyframes ").concat(e," { ").concat(t," } @").concat(o,"keyframes ").concat(e,"-alt { ").concat(t," }"),r.appendChild(a),a}(_=void 0!==e?e:function(e){var t=f.indexOf(e);return t<0&&(t=f.push(e)-1),"ion-animation-".concat(t)}(o),o,n);H.push(a),c(n,"animation-duration","".concat(ne(),"ms")),c(n,"animation-timing-function",te()),c(n,"animation-delay","".concat(oe(),"ms")),c(n,"animation-fill-mode",Q()),c(n,"animation-direction",ee());var s=re()===1/0?"infinite":re().toString();c(n,"animation-iteration-count",s),c(n,"animation-play-state","paused"),t&&c(n,"animation-name","".concat(a.id,"-alt")),(0,i.r)(function(){c(n,"animation-name",a.id||null)})}})}(t)),T=!0},se=function(e){if(e=Math.min(Math.max(e,0),.9999),W)K.forEach(function(t){t.currentTime=t.effect.getComputedTiming().delay+ne()*e,t.pause()});else{var t="-".concat(ne()*e,"ms");
1U.forEach(function(e){S.length>0&&(c(e,"animation-delay",t),c(e,"animation-play-state","paused"))})}},ue=function(e){K.forEach(function(e){e.effect.updateTiming({delay:oe(),duration:ne(),easing:te(),iterations:re(),fill:Q(),direction:ee()})}),void 0!==e&&se(e)},ce=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;(0,i.r)(function(){U.forEach(function(n){c(n,"animation-name",_||null),c(n,"animation-duration","".concat(ne(),"ms")),c(n,"animation-timing-function",te()),c(n,"animation-delay",void 0!==t?"-".concat(t*ne(),"ms"):"".concat(oe(),"ms")),c(n,"animation-fill-mode",Q()||null),c(n,"animation-direction",ee()||null);var r=re()===1/0?"infinite":re().toString();c(n,"animation-iteration-count",r),e&&c(n,"animation-name","".concat(_,"-alt")),(0,i.r)(function(){c(n,"animation-name",_||null)})})})},le=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;return e&&q.forEach(function(r){r.update(e,t,n)}),W?ue(n):ce(t,n),k},fe=function(){T&&(W?K.forEach(function(e){e.pause()}):U.forEach(function(e){c(e,"animation-play-state","paused")}))},he=function(){v=void 0,ie()},de=function(){v&&clearTimeout(v)},pe=function(e){return new Promise(function(t){e&&e.sync&&(M=!0,X(function(){return M=!1},{oneTimeCallback:!0})),T||ae(),j&&(W?(se(0),ue()):ce(),j=!1),D&&(I=q.length+1,D=!1),X(function(){return t()},{oneTimeCallback:!0}),q.forEach(function(e){e.play()}),W?(K.forEach(function(e){e.play()}),0!==S.length&&0!==U.length||ie()):function(){if(de(),(0,i.r)(function(){U.forEach(function(e){S.length>0&&c(e,"animation-play-state","running")})}),0===S.length||0===U.length)ie();else{var e=oe()||0,t=ne()||0,n=re()||1;isFinite(n)&&(v=setTimeout(he,e+t*n+100)),function(e,t){var n,r={passive:!0},o=function(t){e===t.target&&(n&&n(),de(),(0,i.r)(function(){U.forEach(function(e){l(e,"animation-duration"),l(e,"animation-delay"),l(e,"animation-play-state")}),(0,i.r)(ie)}))};e&&(e.addEventListener("webkitAnimationEnd",o,r),e.addEventListener("animationend",o,r),n=function(){e.removeEventListener("webkitAnimationEnd",o,r),e.removeEventListener("animationend",o,r)})}(U[0])}}()})},me=function(e,t){var r=S[0];return void 0===r||void 0!==r.offset&&0!==r.offset?S=[n({offset:0},e,t)].concat(a(S)):r[e]=t,k};return k={parentAnimation:y,elements:U,childAnimations:q,id:L,animationFinish:ie,from:me,to:function(e,t){var r=S[S.length-1];return void 0===r||void 0!==r.offset&&1!==r.offset?S=[].concat(a(S),[n({offset:1},e,t)]):r[e]=t,k},fromTo:function(e,t,n){return me(e,t).to(e,n)},parent:function(e){return y=e,k},play:pe,pause:function(){return q.forEach(function(e){e.pause()}),fe(),k},stop:function(){q.forEach(function(e){e.stop()}),T&&(Z(),T=!1),P=!1,M=!1,D=!0,g=void 0,b=void 0,w=void 0,I=0,j=!1,N=!0},destroy:function(e){return q.forEach(function(t){t.destroy(e)}),function(e){Z(),e&&J()}(e),U.length=0,q.length=0,S.length=0,F.length=0,B.length=0,T=!1,D=!0,k},keyframes:function(e){return S=e,k},addAnimation:function(e){if(null!=e)if(Array.isArray(e)){var t,n=s(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.parent(k),q.push(r)}}catch(o){n.e(o)}finally{n.f()}}else e.parent(k),q.push(e);return k},addElement:function(e){if(null!=e)if(1===e.nodeType)U.push(e);else if(e.length>=0)for(var t=0;t<e.length;t++)U.push(e[t]);else console.error("Invalid addElement value");return k},update:le,fill:function(e){return p=e,le(!0),k},direction:function(e){return m=e,le(!0),k},iterations:function(e){return d=e,le(!0),k},duration:function(e){return W||0!==e||(e=1),r=e,le(!0),k},easing:function(e){return o=e,le(!0),k},delay:function(e){return t=e,le(!0),k},getWebAnimations:function(){return K},getKeyframes:function(){return S},getFill:Q,getDirection:ee,getDelay:oe,getIterations:re,getEasing:te,getDuration:ne,afterAddRead:function(e){return V.push(e),k},afterAddWrite:function(e){return $.push(e),k},afterClearStyles:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=s(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;R[r]=""}}catch(o){n.e(o)}finally{n.f()}return k},afterStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return R=e,k},afterRemoveClass:function(e){return A=h(A,e),k},afterAddClass:function(e){return O=h(O,e),k},beforeAddRead:function(e){return z.push(e),k},beforeAddWrite:function(e){return G.push(e),k},beforeClearStyles:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=s(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;x[r]=""}}catch(o){n.e(o)}finally{n.f()}return k},beforeStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return x=e,k},beforeRemoveClass:function(e){return E=h(E,e),k},beforeAddClass:function(e){return C=h(C,e),k},onFinish:X,progressStart:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return q.forEach(function(n){n.progressStart(e,t)}),fe(),P=e,T?le(!1,!0,t):ae(),k},progressStep:function(e){return q.forEach(function(t){t.progressStep(e)}),se(e),k},progressEnd:function(e,t,n){return P=!1,q.forEach(function(r){r.progressEnd(e,t,n
1)}),void 0!==n&&(b=n),j=!1,N=!0,0===e?("reverse"===(g="reverse"===ee()?"normal":"reverse")&&(N=!1),W?(le(),se(1-t)):(w=(1-t)*ne()*-1,le(!1,!1))):1===e&&(W?(le(),se(t)):(w=t*ne()*-1,le(!1,!1))),void 0!==e&&(X(function(){b=void 0,g=void 0,w=void 0},{oneTimeCallback:!0}),y||pe()),k}}}},6953:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=function(){function e(t,n,r,o,i){w(this,e),this.id=n,this.name=r,this.disableScroll=i,this.priority=1e6*o+n,this.ctrl=t}return b(e,[{key:"canStart",value:function(){return!!this.ctrl&&this.ctrl.canStart(this.name)}},{key:"start",value:function(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}},{key:"capture",value:function(){if(!this.ctrl)return!1;var e=this.ctrl.capture(this.name,this.id,this.priority);return e&&this.disableScroll&&this.ctrl.disableScroll(this.id),e}},{key:"release",value:function(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}},{key:"destroy",value:function(){this.release(),this.ctrl=void 0}}]),e}(),o=function(){function e(t,n,r,o){w(this,e),this.id=n,this.disable=r,this.disableScroll=o,this.ctrl=t}return b(e,[{key:"block",value:function(){if(this.ctrl){if(this.disable){var e,t=s(this.disable);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.ctrl.disableGesture(n,this.id)}}catch(r){t.e(r)}finally{t.f()}}this.disableScroll&&this.ctrl.disableScroll(this.id)}}},{key:"unblock",value:function(){if(this.ctrl){if(this.disable){var e,t=s(this.disable);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.ctrl.enableGesture(n,this.id)}}catch(r){t.e(r)}finally{t.f()}}this.disableScroll&&this.ctrl.enableScroll(this.id)}}},{key:"destroy",value:function(){this.unblock(),this.ctrl=void 0}}]),e}(),i=new(function(){function e(){w(this,e),this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}return b(e,[{key:"createGesture",value:function(e){return new r(this,this.newID(),e.name,e.priority||0,!!e.disableScroll)}},{key:"createBlocker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new o(this,this.newID(),e.disable,!!e.disableScroll)}},{key:"start",value:function(e,t,n){return this.canStart(e)?(this.requestedStart.set(t,n),!0):(this.requestedStart.delete(t),!1)}},{key:"capture",value:function(e,t,n){if(!this.start(e,t,n))return!1;var r=this.requestedStart,o=-1e4;if(r.forEach(function(e){o=Math.max(o,e)}),o===n){this.capturedId=t,r.clear();var i=new CustomEvent("ionGestureCaptured",{detail:{gestureName:e}});return document.dispatchEvent(i),!0}return r.delete(t),!1}},{key:"release",value:function(e){this.requestedStart.delete(e),this.capturedId===e&&(this.capturedId=void 0)}},{key:"disableGesture",value:function(e,t){var n=this.disabledGestures.get(e);void 0===n&&(n=new Set,this.disabledGestures.set(e,n)),n.add(t)}},{key:"enableGesture",value:function(e,t){var n=this.disabledGestures.get(e);void 0!==n&&n.delete(t)}},{key:"disableScroll",value:function(e){this.disabledScroll.add(e),1===this.disabledScroll.size&&document.body.classList.add("backdrop-no-scroll")}},{key:"enableScroll",value:function(e){this.disabledScroll.delete(e),0===this.disabledScroll.size&&document.body.classList.remove("backdrop-no-scroll")}},{key:"canStart",value:function(e){return void 0===this.capturedId&&!this.isDisabled(e)}},{key:"isCaptured",value:function(){return void 0!==this.capturedId}},{key:"isScrollDisabled",value:function(){return this.disabledScroll.size>0}},{key:"isDisabled",value:function(e){var t=this.disabledGestures.get(e);return!!(t&&t.size>0)}},{key:"newID",value:function(){return this.gestureId++,this.gestureId}}]),e}())},4641:function(e,n,r){"use strict";r.r(n),r.d(n,{MENU_BACK_BUTTON_PRIORITY:function(){return s},OVERLAY_BACK_BUTTON_PRIORITY:function(){return a},blockHardwareBackButton:function(){return o},startHardwareBackButton:function(){return i}});var o=function(){document.addEventListener("backbutton",function(){})},i=function(){var e=document,n=!1;e.addEventListener("backbutton",function(){if(!n){var r=0,o=[],i=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register:function(e,t){o.push({priority:e,handler:t,id:r++})}}});e.dispatchEvent(i);!function e(){if(o.length>0){var r={priority:Number.MIN_SAFE_INTEGER,handler:function(){},id:-1};o.forEach(function(e){e.priority>=r.priority&&(r=e)}),n=!0,o=o.filter(function(e){return e.id!==r.id}),(i=t(regeneratorRuntime.mark(function t(n){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!n||!n.handler){t.next=7;break}if(r=n.handler(e),t.t0=null!=r,!t.t0){t.next=7;break}return t.next=7,r;case 7:t.next=12;break;case 9:t.prev=9,t.t1=t.catch(0),console.error(t.t1);case 12:case"end":return t.stop()}},t,null,[[0,9]])})),function(e){return i.apply(this,arguments)})(r).then(function(){return n=!1})}var i}()}})},a=100,s=99},71843:function(e,t,n){"use strict";n.d(t,{a:function(){return i},b:function(){return a},c:function(){return r},d:function(){return f},e:function(){return h},f:function(){return g},g:function(){return s},h:function(){return l},i:function(){return o},j:function(){return d},k:function(){return c},l:function(){return p},m:function(){return v},n:function(){return b},o:function(){return m},p:function(){return y},r:function(){return u}});var r=function(e,t){e.componentOnReady?e.componentOnReady().then(function(e){return t(e)}):u(function(){return t(e)})},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return t.forEach(function(t){e.hasAttribute(t)&&(null!==e.getAttribute(t)&&(n[t]=e.getAttribute(t)),e.removeAttribute(t))}),n},i=function(e,t,n,r){if("undefined"!=typeof window){var o=window,i=o&&o.Ionic&&o.Ionic.config;if(i){var a=i.get("_ael");
1if(a)return a(e,t,n,r);if(i._ael)return i._ael(e,t,n,r)}}return e.addEventListener(t,n,r)},a=function(e,t,n,r){if("undefined"!=typeof window){var o=window,i=o&&o.Ionic&&o.Ionic.config;if(i){var a=i.get("_rel");if(a)return a(e,t,n,r);if(i._rel)return i._rel(e,t,n,r)}}return e.removeEventListener(t,n,r)},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return e.shadowRoot||t},u=function(e){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e)},c=function(e){return!!e.shadowRoot&&!!e.attachShadow},l=function(e){var t=e.closest("ion-item");return t?t.querySelector("ion-label"):null},f=function(e,t){var n,r=e.getAttribute("aria-labelledby"),o=e.id,i=null!==r&&""!==r.trim()?r:t+"-lbl",a=null!==r&&""!==r.trim()?document.getElementById(r):l(e);return a?(null===r&&(a.id=i),n=a.textContent,a.setAttribute("aria-hidden","true")):""!==o.trim()&&((a=document.querySelector('label[for="'.concat(o,'"]')))&&(""!==a.id?i=a.id:a.id=i="".concat(o,"-lbl"),n=a.textContent)),{label:a,labelId:i,labelText:n}},h=function(e,t,n,r,o){if(e||c(t)){var i=t.querySelector("input.aux-input");i||((i=t.ownerDocument.createElement("input")).type="hidden",i.classList.add("aux-input"),t.appendChild(i)),i.disabled=o,i.name=n,i.value=r||""}},d=function(e,t,n){return Math.max(e,Math.min(t,n))},p=function(e,t){if(!e){var n="ASSERT: "+t;throw console.error(n),new Error(n)}},m=function(e){return e.timeStamp||Date.now()},y=function(e){if(e){var t=e.changedTouches;if(t&&t.length>0){var n=t[0];return{x:n.clientX,y:n.clientY}}if(void 0!==e.pageX)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}},v=function(e){var t="rtl"===document.dir;switch(e){case"start":return t;case"end":return!t;default:throw new Error('"'.concat(e,'" is not a valid value for [side]. Use "start" or "end" instead.'))}},g=function(e,t){var n=e._original||e;return{_original:e,emit:b(n.emit.bind(n),t)}},b=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];clearTimeout(t),t=setTimeout.apply(void 0,[e,n].concat(o))}}},64378:function(e,n,r){"use strict";r.d(n,{m:function(){return P}});var o,i,a,s,u,c,l,f,h,d,p,m,y,v,g,b,w,_,k,S,C=r(4641),E=r(71843),T=r(47505),x=r(69691),O=function(e){return(0,x.c)().duration(e?400:300)},A=function(e){var t,n,r=e.width+8,o=(0,x.c)(),i=(0,x.c)();e.isEndSide?(t=r+"px",n="0px"):(t=-r+"px",n="0px"),o.addElement(e.menuInnerEl).fromTo("transform","translateX(".concat(t,")"),"translateX(".concat(n,")"));var a="ios"===(0,T.b)(e),s=a?.2:.25;return i.addElement(e.backdropEl).fromTo("opacity",.01,s),O(a).addAnimation([o,i])},R=function(e){var t,n,r=(0,T.b)(e),o=e.width;e.isEndSide?(t=-o+"px",n=o+"px"):(t=o+"px",n=-o+"px");var i=(0,x.c)().addElement(e.menuInnerEl).fromTo("transform","translateX(".concat(n,")"),"translateX(0px)"),a=(0,x.c)().addElement(e.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(t,")")),s=(0,x.c)().addElement(e.backdropEl).fromTo("opacity",.01,.32);return O("ios"===r).addAnimation([i,a,s])},I=function(e){var t=(0,T.b)(e),n=e.width*(e.isEndSide?-1:1)+"px",r=(0,x.c)().addElement(e.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(n,")"));return O("ios"===t).addAnimation(r)},P=(p=new Map,m=[],y=function(){var e=t(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S();case 2:return e.abrupt("return","start"===t||"end"===t?k(function(e){return e.side===t&&!e.disabled})||k(function(e){return e.side===t}):null!=t?k(function(e){return e.menuId===t}):k(function(e){return!e.disabled})||(m.length>0?m[0].el:void 0));case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=t(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S();case 2:return e.abrupt("return",w());case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),b=function(e){var t=e.side;m.filter(function(n){return n.side===t&&n!==e}
1).forEach(function(e){return e.disabled=!0})},w=function(){return k(function(e){return e._isOpen})},_=function(){return m.some(function(e){return e.isAnimating})},k=function(e){var t=m.find(e);if(void 0!==t)return t.el},S=function(){return Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(function(e){return new Promise(function(t){return(0,E.c)(e,t)})}))},(g=function(e,t){p.set(e,t)})("reveal",I),g("push",R),g("overlay",A),"undefined"!=typeof document&&document.addEventListener("ionBackButton",function(e){var t=w();t&&e.detail.register(C.MENU_BACK_BUTTON_PRIORITY,function(){return t.close()})}),{registerAnimation:g,get:y,getMenus:(d=t(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S();case 2:return e.abrupt("return",m.map(function(e){return e.el}));case 3:case"end":return e.stop()}},e)})),function(){return d.apply(this,arguments)}),getOpen:v,isEnabled:(h=t(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y(t);case 2:return n=e.sent,e.abrupt("return",!!n&&!n.disabled);case 4:case"end":return e.stop()}},e)})),function(e){return h.apply(this,arguments)}),swipeGesture:(f=t(regeneratorRuntime.mark(function e(t,n){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y(n);case 2:return r=e.sent,e.abrupt("return",(r&&(r.swipeGesture=t),r));case 4:case"end":return e.stop()}},e)})),function(e,t){return f.apply(this,arguments)}),isAnimating:(l=t(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S();case 2:return e.abrupt("return",_());case 3:case"end":return e.stop()}},e)})),function(){return l.apply(this,arguments)}),isOpen:(c=t(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null==t){e.next=5;break}return e.next=3,y(t);case 3:return n=e.sent,e.abrupt("return",void 0!==n&&n.isOpen());case 5:return e.t0=void 0,e.next=8,v();case 8:return e.t1=e.sent,e.abrupt("return",e.t0!==e.t1);case 10:case"end":return e.stop()}},e)})),function(e){return c.apply(this,arguments)}),enable:(u=t(regeneratorRuntime.mark(function e(t,n){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y(n);case 2:return r=e.sent,e.abrupt("return",(r&&(r.disabled=!t),r));case 4:case"end":return e.stop()}},e)})),function(e,t){return u.apply(this,arguments)}),toggle:(s=t(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y(t);case 2:return n=e.sent,e.abrupt("return",!!n&&n.toggle());case 4:case"end":return e.stop()}},e)})),function(e){return s.apply(this,arguments)}),close:(a=t(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,void 0!==t?y(t):v();case 2:return n=e.sent,e.abrupt("return",void 0!==n&&n.close());case 4:case"end":return e.stop()}},e)})),function(e){return a.apply(this,arguments)}),open:(i=t(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y(t);case 2:return n=e.sent,e.abrupt("return",!!n&&n.open());case 4:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)}),_getOpenSync:w,_createAnimation:function(e,t){var n=p.get(e);if(!n)throw new Error("animation not registered");return n(t)},_register:function(e){m.indexOf(e)<0&&(e.disabled||b(e),m.push(e))},_unregister:function(e){var t=m.indexOf(e);t>-1&&m.splice(t,1)},_setOpen:(o=t(regeneratorRuntime.mark(function e(t,n,r){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!_()){e.next=2;break}return e.abrupt("return",!1);case 2:if(!n){e.next=10;break}return e.next=5,v();case 5:if(o=e.sent,e.t0=o&&t.el!==o,!e.t0){e.next=10;break}return e.next=10,o.setOpen(!1,!1);case 10:return e.abrupt("return",t._setOpen(n,r));case 11:case"end":return e.stop()}},e)})),function(e,t,n){return o.apply(this,arguments)}),_setActiveMenu:b})},52322:function(e,n,r){"use strict";r.d(n,{B:function(){return We},C:function(){return _},H:function(){return H},a:function(){return E},b:function(){return Ae},c:function(){return Ye},e:function(){return le},f:function(){return Ke},g:function(){return L},h:function(){return U},i:function(){return ce},j:function(){return ge},k:function(){return Re},p:function(){return S},r:function(){return Me},s:function(){return D},w:function(){return g}});var i,s,c,l=!1,h=!1,p=!1,y=!1,v=!1,g="undefined"!=typeof window?window:{},_=g.CSS,k=g.document||{head:{}},S={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,r){return e.addEventListener(t,n,r)},rel:function(e,t,n,r){return e.removeEventListener(t,n,r)},ce:function(e,t){return new CustomEvent(e,t)}},C=(k.head.attachShadow+"").indexOf("[native")>-1,E=function(e){return Promise.resolve(e)},T=function(){try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1}(),x=function(e,t,n,r){n&&n.map(function(n){var r=u(n,3),o=r[0],i=r[1],a=r[2],s=A(e,o),c=O(t,a),l=R(o);S.ael(s,i,c,l),(t.$rmListeners$=t.$rmListeners$||[]).push(function(){return S.rel(s,i,c,l)})})},O=function(e,t){return function(n){try{256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(r){De(r)}}},A=function(e,t){return 4&t?k:8&t?g:16&t?k.body:e},R=function(e){return 0!=(2&e)},I="http://www.w3.org/1999/xlink",P=new WeakMap,M=function(e,t,n){var r=Be.get(e);T&&n?(r=r||new CSSStyleSheet).replace(t):r=t,Be.set(e,r)},N=function(e,t,n,r){var o=j(t,n),i=Be.get(o);if(e=11===e.nodeType?e:k,i)if("string"==typeof i){var s,u=P.get(e=e.head||e);if(u||P.set(e,u=new Set),!u.has(o)){if(e.host&&(s=e.querySelector('[sty-id="'.concat(o,'"]'))))s.innerHTML=i;else{if(S.$cssShim$){var c=(s=S.$cssShim$.createHostStyle(r,o,i,!!(10&t.$flags$)))["s-sc"];c&&(o=c,u=null)}else(s=k.createElement("style")).innerHTML=i;e.insertBefore(s,e.querySelector("link"))}u&&u.add(o)}}else e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[].concat(a(e.adoptedStyleSheets),[i]));return o},j=function(e,t){return"sc-"+(t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$)},D=function(e){return Ue.push(e)},L=function(e){return Pe(e).$modeName$},F={},B=function(e){return"object"==(e=typeof e)||"function"===e},U=function(e,t){for(var n=null,r=null,o=null,i=!1,a=!1,s=[],u=function t(r){for(var o=0;o<r.length;o++)n=r[o],Array.isArray(n)?t(n):null!=n&&"boolean"!=typeof n&&((i="function"!=typeof e&&!B(n))&&(n=String(n)),i&&a?s[s.length-1].$text$+=n:s.push(i?q(null,n):n),a=i)},c=arguments.length,l=new Array(c>2?c-2:0),f=2;f<c;f++)l[f-2]=arguments[f];if(u(l),t){t.key&&(r=t.key),t.name&&(o=t.name);var h=t.className||t.class;h&&(t.class="object"!=typeof h?h:Object.keys(h).filter(function(e){return h[e]}).join(" "))}if("function"==typeof e)return e(null===t?{}:t,s,z);var d=q(e,null);return d.$attrs$=t,s.length>0&&(d.$children$=s),d.$key$=r,d.$name$=o,d},q=function(e,t){return{$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}},H={},z={forEach:function(e,t){return e.map(G).forEach(t)},map:function(e,t){return e.map(G).map(t).map(V)}},G=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}},V=function(e){if("function"==typeof e.vtag){var t=Object.assign({},e.vattrs);
1return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),U.apply(void 0,[e.vtag,t].concat(a(e.vchildren||[])))}var n=q(e.vtag,e.vtext);return n.$attrs$=e.vattrs,n.$children$=e.vchildren,n.$key$=e.vkey,n.$name$=e.vname,n},$=function(e,t,n,r,o,i){if(n!==r){var s=je(e,t),u=t.toLowerCase();if("class"===t){var c=e.classList,l=Y(n),f=Y(r);c.remove.apply(c,a(l.filter(function(e){return e&&!f.includes(e)}))),c.add.apply(c,a(f.filter(function(e){return e&&!l.includes(e)})))}else if("style"===t){for(var h in n)r&&null!=r[h]||(h.includes("-")?e.style.removeProperty(h):e.style[h]="");for(var d in r)n&&r[d]===n[d]||(d.includes("-")?e.style.setProperty(d,r[d]):e.style[d]=r[d])}else if("key"===t);else if("ref"===t)r&&r(e);else if(s||"o"!==t[0]||"n"!==t[1]){var p=B(r);if((s||p&&null!==r)&&!o)try{if(e.tagName.includes("-"))e[t]=r;else{var m=null==r?"":r;"list"===t?s=!1:null!=n&&e[t]==m||(e[t]=m)}}catch(v){}var y=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(t=u,y=!0),null==r||!1===r?!1===r&&""!==e.getAttribute(t)||(y?e.removeAttributeNS(I,t):e.removeAttribute(t)):(!s||4&i||o)&&!p&&(r=!0===r?"":r,y?e.setAttributeNS(I,t,r):e.setAttribute(t,r))}else t="-"===t[2]?t.slice(3):je(g,u)?u.slice(2):u[2]+t.slice(3),n&&S.rel(e,t,n,!1),r&&S.ael(e,t,r,!1)}},K=/\s/,Y=function(e){return e?e.split(K):[]},W=function(e,t,n,r){var o=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||F,a=t.$attrs$||F;for(r in i)r in a||$(o,r,i[r],void 0,n,t.$flags$);for(r in a)$(o,r,i[r],a[r],n,t.$flags$)},X=function e(t,n,r,o){var a,u,f,h=n.$children$[r],d=0;if(l||(p=!0,"slot"===h.$tag$&&(i&&o.classList.add(i+"-s"),h.$flags$|=h.$children$?2:1)),null!==h.$text$)a=h.$elm$=k.createTextNode(h.$text$);else if(1&h.$flags$)a=h.$elm$=k.createTextNode("");else{if(y||(y="svg"===h.$tag$),a=h.$elm$=k.createElementNS(y?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&h.$flags$?"slot-fb":h.$tag$),y&&"foreignObject"===h.$tag$&&(y=!1),W(null,h,y),null!=i&&a["s-si"]!==i&&a.classList.add(a["s-si"]=i),h.$children$)for(d=0;d<h.$children$.length;++d)(u=e(t,h,d,a))&&a.appendChild(u);"svg"===h.$tag$?y=!1:"foreignObject"===a.tagName&&(y=!0)}return a["s-hn"]=c,3&h.$flags$&&(a["s-sr"]=!0,a["s-cr"]=s,a["s-sn"]=h.$name$||"",(f=t&&t.$children$&&t.$children$[r])&&f.$tag$===h.$tag$&&t.$elm$&&Z(t.$elm$,!1)),a},Z=function e(t,n){S.$flags$|=1;for(var r=t.childNodes,o=r.length-1;o>=0;o--){var i=r[o];i["s-hn"]!==c&&i["s-ol"]&&(ne(i).insertBefore(i,te(i)),i["s-ol"].remove(),i["s-ol"]=void 0,p=!0),n&&e(i,n)}S.$flags$&=-2},J=function(e,t,n,r,o,i){var a,s=e["s-cr"]&&e["s-cr"].parentNode||e;for(s.shadowRoot&&s.tagName===c&&(s=s.shadowRoot);o<=i;++o)r[o]&&((a=X(null,n,o,e))&&(r[o].$elm$=a,s.insertBefore(a,te(t))))},Q=function(e,t,n,r,o){for(;t<=n;++t)(r=e[t])&&(o=r.$elm$,ue(r),h=!0,o["s-ol"]?o["s-ol"].remove():Z(o,!0),o.remove())},ee=function(e,t){return e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$)},te=function(e){return e&&e["s-ol"]||e},ne=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode},re=function e(t,n){var r,o=n.$elm$=t.$elm$,i=t.$children$,a=n.$children$,s=n.$tag$,u=n.$text$;null===u?(y="svg"===s||"foreignObject"!==s&&y,"slot"===s||W(t,n,y),null!==i&&null!==a?function(t,n,r,o){for(var i,a,s=0,u=0,c=0,l=0,f=n.length-1,h=n[0],d=n[f],p=o.length-1,m=o[0],y=o[p];s<=f&&u<=p;)if(null==h)h=n[++s];else if(null==d)d=n[--f];else if(null==m)m=o[++u];else if(null==y)y=o[--p];else if(ee(h,m))e(h,m),h=n[++s],m=o[++u];else if(ee(d,y))e(d,y),d=n[--f],y=o[--p];else if(ee(h,y))"slot"!==h.$tag$&&"slot"!==y.$tag$||Z(h.$elm$.parentNode,!1),e(h,y),t.insertBefore(h.$elm$,d.$elm$.nextSibling),h=n[++s],y=o[--p];else if(ee(d,m))"slot"!==h.$tag$&&"slot"!==y.$tag$||Z(d.$elm$.parentNode,!1),e(d,m),t.insertBefore(d.$elm$,h.$elm$),d=n[--f],m=o[++u];else{for(c=-1,l=s;l<=f;++l)if(n[l]&&null!==n[l].$key$&&n[l].$key$===m.$key$){c=l;break}c>=0?((a=n[c]).$tag$!==m.$tag$?i=X(n&&n[u],r,c,t):(e(a,m),n[c]=void 0,i=a.$elm$),m=o[++u]):(i=X(n&&n[u],r,u,t),m=o[++u]),i&&ne(h.$elm$).insertBefore(i,te(h.$elm$))}s>f?J(t,null==o[p+1]?null:o[p+1].$elm$,r,o,u,p):u>p&&Q(n,s,f)}(o,i,n,a):null!==a?(null!==t.$text$&&(o.textContent=""),J(o,null,n,a,0,a.length-1)):null!==i&&Q(i,0,i.length-1),y&&"svg"===s&&(y=!1)):(r=o["s-cr"])?r.parentNode.textContent=u:t.$text$!==u&&(
1o.data=u)},oe=function e(t){var n,r,o,i,a,s,u=t.childNodes;for(r=0,o=u.length;r<o;r++)if(1===(n=u[r]).nodeType){if(n["s-sr"])for(a=n["s-sn"],n.hidden=!1,i=0;i<o;i++)if(s=u[i].nodeType,u[i]["s-hn"]!==n["s-hn"]||""!==a){if(1===s&&a===u[i].getAttribute("slot")){n.hidden=!0;break}}else if(1===s||3===s&&""!==u[i].textContent.trim()){n.hidden=!0;break}e(n)}},ie=[],ae=function e(t){for(var n,r,o,i,a,s,u=0,c=t.childNodes,l=c.length;u<l;u++){if((n=c[u])["s-sr"]&&(r=n["s-cr"])&&r.parentNode)for(o=r.parentNode.childNodes,i=n["s-sn"],s=o.length-1;s>=0;s--)(r=o[s])["s-cn"]||r["s-nr"]||r["s-hn"]===n["s-hn"]||(se(r,i)?(a=ie.find(function(e){return e.$nodeToRelocate$===r}),h=!0,r["s-sn"]=r["s-sn"]||i,a?a.$slotRefNode$=n:ie.push({$slotRefNode$:n,$nodeToRelocate$:r}),r["s-sr"]&&ie.map(function(e){se(e.$nodeToRelocate$,r["s-sn"])&&((a=ie.find(function(e){return e.$nodeToRelocate$===r}))&&!e.$slotRefNode$&&(e.$slotRefNode$=a.$slotRefNode$))})):ie.some(function(e){return e.$nodeToRelocate$===r})||ie.push({$nodeToRelocate$:r}));1===n.nodeType&&e(n)}},se=function(e,t){return 1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t},ue=function e(t){t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(e)},ce=function(e){return Pe(e).$hostElement$},le=function(e,t,n){var r=ce(e);
1return{emit:function(e){return fe(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}}},fe=function(e,t,n){var r=S.ce(t,n);return e.dispatchEvent(r),r},he=function(e,t){t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(function(t){return e.$onRenderResolve$=t}))},de=function(e,t){if(e.$flags$|=16,!(4&e.$flags$))return he(e,e.$ancestorComponent$),Ye(function(){return pe(e,t)});e.$flags$|=512},pe=function(e,t){var n,r=e.$lazyInstance$;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(function(e){var t=u(e,2),n=t[0],o=t[1];return we(r,n,o)}),e.$queuedListeners$=null),n=we(r,"componentWillLoad")),n=_e(n,function(){return we(r,"componentWillRender")}),_e(n,function(){return me(e,r,t)})},me=function(){var e=t(regeneratorRuntime.mark(function e(t,n,r){var o,i,a,s;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.$hostElement$,i=o["s-rc"],r&&function(e){var t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,o=N(C&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);10&r&&(n["s-sc"]=o,n.classList.add(o+"-h"),2&r&&n.classList.add(o+"-s"))}(t),ye(t,n),S.$cssShim$&&S.$cssShim$.updateHost(o),i&&(i.map(function(e){return e()}),o["s-rc"]=void 0),a=o["s-p"],s=function(){return ve(t)},0===a.length?s():(Promise.all(a).then(s),t.$flags$|=4,a.length=0);case 4:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),ye=function(e,t,n){try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,function(e,t){var n,r=e.$hostElement$,o=e.$cmpMeta$,a=e.$vnode$||q(null,null),f=(n=t)&&n.$tag$===H?t:U(null,null,t);if(c=r.tagName,o.$attrsToReflect$&&(f.$attrs$=f.$attrs$||{},o.$attrsToReflect$.map(function(e){var t=u(e,2),n=t[0],o=t[1];return f.$attrs$[o]=r[n]})),f.$tag$=null,f.$flags$|=4,e.$vnode$=f,f.$elm$=a.$elm$=r.shadowRoot||r,i=r["s-sc"],s=r["s-cr"],l=C&&0!=(1&o.$flags$),h=!1,re(a,f),S.$flags$|=1,p){var d,m,y,v,g,b;ae(f.$elm$);for(var w=0;w<ie.length;w++)(m=(d=ie[w]).$nodeToRelocate$)["s-ol"]||((y=k.createTextNode(""))["s-nr"]=m,m.parentNode.insertBefore(m["s-ol"]=y,m));for(w=0;w<ie.length;w++)if(m=(d=ie[w]).$nodeToRelocate$,d.$slotRefNode$){for(v=d.$slotRefNode$.parentNode,g=d.$slotRefNode$.nextSibling,y=m["s-ol"];y=y.previousSibling;)if((b=y["s-nr"])&&b["s-sn"]===m["s-sn"]&&v===b.parentNode&&(!(b=b.nextSibling)||!b["s-nr"])){g=b;break}(!g&&v!==m.parentNode||m.nextSibling!==g)&&m!==g&&(!m["s-hn"]&&m["s-ol"]&&(m["s-hn"]=m["s-ol"].parentNode.nodeName),v.insertBefore(m,g))}else 1===m.nodeType&&(m.hidden=!0)}h&&oe(f.$elm$),S.$flags$&=-2,ie.length=0}(e,t)}catch(r){De(r,e.$hostElement$)}return null},ve=function(e){var t=e.$hostElement$,n=e.$lazyInstance$,r=e.$ancestorComponent$;64&e.$flags$?we(n,"componentDidUpdate"):(e.$flags$|=64,ke(t),we(n,"componentDidLoad"),e.$onReadyResolve$(t),r||be()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&$e(function(){return de(e,!1)}),e.$flags$&=-517},ge=function(e){var t=Pe(e),n=t.$hostElement$.isConnected;return n&&2==(18&t.$flags$)&&de(t,!1),n},be=function(e){ke(k.documentElement),$e(function(){return fe(g,"appload",{detail:{namespace:"ionic"}})})},we=function(e,t,n){if(e&&e[t])try{return e[t](n)}catch(r){De(r)}},_e=function(e,t){return e&&e.then?e.then(t):t()},ke=function(e){return e.classList.add("hydrated")},Se=function e(t,n,r,o,i,a,s){var u,c,l,f;if(1===a.nodeType){for((u=a.getAttribute("c-id"))&&((c=u.split("."))[0]!==s&&"0"!==c[0]||(l={$flags$:0,$hostId$:c[0],$nodeId$:c[1],$depth$:c[2],$index$:c[3],$tag$:a.tagName.toLowerCase(),$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},n.push(l),a.removeAttribute("c-id"),t.$children$||(t.$children$=[]),t.$children$[l.$index$]=l,t=l,o&&"0"===l.$depth$&&(o[l.$index$]=l.$elm$))),f=a.childNodes.length-1;f>=0;f--)e(t,n,r,o,i,a.childNodes[f],s);if(a.shadowRoot)for(f=a.shadowRoot.childNodes.length-1;f>=0;f--)e(t,n,r,o,i,a.shadowRoot.childNodes[f],s)}else if(8===a.nodeType)(c=a.nodeValue.split("."))[1]!==s&&"0"!==c[1]||(u=c[0],l={$flags$:0,$hostId$:c[1],$nodeId$:c[2],$depth$:c[3],$index$:c[4],$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===u?(l.$elm$=a.nextSibling,l.$elm$&&3===l.$elm$.nodeType&&(l.$text$=l.$elm$.textContent,n.push(l),a.remove(),t.$children$||(t.$children$=[]),t.$children$[l.$index$]=l,o&&"0"===l.$depth$&&(o[l.$index$]=l.$elm$))):l.$hostId$===s&&("s"===u?(l.$tag$="slot",a["s-sn"]=c[5]?l.$name$=c[5]:"",a["s-sr"]=!0,o&&(l.$elm$=k.createElement(l.$tag$),l.$name$&&l.$elm$.setAttribute("name",l.$name$),a.parentNode.insertBefore(l.$elm$,a),a.remove(),"0"===l.$depth$&&(o[l.$index$]=l.$elm$)),r.push(l),t.$children$||(t.$children$=[]),t.$children$[l.$index$]=l):"r"===u&&(o?a.remove():(i["s-cr"]=a,a["s-cn"]=!0))));else if(t&&"style"===t.$tag$){var h=q(null,a.textContent);
1h.$elm$=a,h.$index$="0",t.$children$=[h]}},Ce=function e(t,n){if(1===t.nodeType){for(var r=0;r<t.childNodes.length;r++)e(t.childNodes[r],n);if(t.shadowRoot)for(r=0;r<t.shadowRoot.childNodes.length;r++)e(t.shadowRoot.childNodes[r],n)}else if(8===t.nodeType){var o=t.nodeValue.split(".");"o"===o[0]&&(n.set(o[1]+"."+o[2],t),t.nodeValue="",t["s-en"]=o[3])}},Ee=function(e,t,n){if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);var r=Object.entries(t.$members$),o=e.prototype;if(r.map(function(e){var r=u(e,2),i=r[0],a=u(r[1],1)[0];31&a||2&n&&32&a?Object.defineProperty(o,i,{get:function(){return e=i,Pe(this).$instanceValues$.get(e);var e},set:function(e){var n=this;!function(e,t,r,o){var i,a,s=Pe(n),u=s.$hostElement$,c=s.$instanceValues$.get(t),l=s.$flags$,f=s.$lazyInstance$;if(a=o.$members$[t][0],r=null==(i=r)||B(i)?i:4&a?"false"!==i&&(""===i||!!i):2&a?parseFloat(i):1&a?String(i):i,!(8&l&&void 0!==c||r===c)&&(s.$instanceValues$.set(t,r),f)){if(o.$watchers$&&128&l){var h=o.$watchers$[t];h&&h.map(function(e){try{f[e](r,c,t)}catch(n){De(n,u)}})}2==(18&l)&&de(s,!1)}}(0,i,e,t)},configurable:!0,enumerable:!0}):1&n&&64&a&&Object.defineProperty(o,i,{value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Pe(this);return r.$onInstancePromise$.then(function(){var e;return(e=r.$lazyInstance$)[i].apply(e,t)})}})}),1&n){var i=new Map;o.attributeChangedCallback=function(e,t,n){var r=this;S.jmp(function(){var t=i.get(e);r[t]=(null!==n||"boolean"!=typeof r[t])&&n})},e.observedAttributes=r.filter(function(e){var t=u(e,2);t[0];return 15&t[1][0]}).map(function(e){var n=u(e,2),r=n[0],o=n[1],a=o[1]||r;return i.set(a,r),512&o[0]&&t.$attrsToReflect$.push([r,a]),a})}}return e},Te=function(e){we(e,"connectedCallback")},xe=function(e){if(0==(1&S.$flags$)){var n=Pe(e),o=n.$cmpMeta$;if(1&n.$flags$)x(e,n,o.$listeners$),Te(n.$lazyInstance$);else{var i;if(n.$flags$|=1,i=e.getAttribute("s-id")){if(C&&1&o.$flags$){var a=N(e.shadowRoot,o,e.getAttribute("s-mode"));e.classList.remove(a+"-h",a+"-s")}!function(e,t,n,r){var o=e.shadowRoot,i=[],a=o?[]:null,s=r.$vnode$=q(t,null);S.$orgLocNodes$||Ce(k.body,S.$orgLocNodes$=new Map),e["s-id"]=n,e.removeAttribute("s-id"),Se(s,i,[],a,e,e,n),i.map(function(e){var n=e.$hostId$+"."+e.$nodeId$,r=S.$orgLocNodes$.get(n),i=e.$elm$;r&&C&&""===r["s-en"]&&r.parentNode.insertBefore(i,r.nextSibling),o||(i["s-hn"]=t,r&&(i["s-ol"]=r,i["s-ol"]["s-nr"]=i)),S.$orgLocNodes$.delete(n)}),o&&a.map(function(e){e&&o.appendChild(e)})}(e,o.$tagName$,i,n)}i||12&o.$flags$&&Oe(e);for(var s=e;s=s.parentNode||s.host;)if(1===s.nodeType&&s.hasAttribute("s-id")&&s["s-p"]||s["s-p"]){he(n,n.$ancestorComponent$=s);break}o.$members$&&Object.entries(o.$members$).map(function(t){var n=u(t,2),r=n[0];if(31&u(n[1],1)[0]&&e.hasOwnProperty(r)){var o=e[r];delete e[r],e[r]=o}}),$e(function(){return(i=t(regeneratorRuntime.mark(function e(t,n,o,i,a){var s,u,c,l,f,h;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!=(32&n.$flags$)){e.next=25;break}if(n.$flags$|=32,!(a=Fe(o)).then){e.next=7;break}return s=function(){},e.next=5,a;case 5:a=e.sent,s();case 7:a.isProxied||(o.$watchers$=a.watchers,Ee(a,o,2),a.isProxied=!0),n.$flags$|=8;try{new a(n)}catch(i){De(i)}if(n.$flags$&=-9,n.$flags$|=128,Te(n.$lazyInstance$),!a.style){e.next=25;break}if("string"!=typeof(u=a.style)&&(u=u[n.$modeName$=function(e){return Ue.map(function(t){return t(e)}).find(function(e){return!!e})}(t)]),c=j(o,n.$modeName$),Be.has(c)){e.next=25;break}if(l=function(){},e.t0=8&o.$flags$,!e.t0){e.next=23;break}return e.next=22,r.e(2369).then(r.bind(r,2369)).then(function(e){return e.scopeCss(u,c,!1)});case 22:u=e.sent;case 23:M(c,u,!!(1&o.$flags$)),l();case 25:f=n.$ancestorComponent$,h=function(){return de(n,!0)},f&&f["s-rc"]?f["s-rc"].push(h):h();case 27:case"end":return e.stop()}},e)})),function(e,t,n,r,o){return i.apply(this,arguments)})(e,n,o);var i})}}},Oe=function(e){var t=e["s-cr"]=k.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},Ae=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],i=n.exclude||[],a=g.customElements,s=k.head,u=s.querySelector("meta[charset]"),c=k.createElement("style"),l=[],h=k.querySelectorAll("[sty-id]"),p=!0,y=0;for(Object.assign(S,n),S.$resourcesUrl$=new URL(n.resourcesUrl||"./",k.baseURI).href,S.$flags$|=2;y<h.length;y++)M(h[y].getAttribute("sty-id"),h[y].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0);e.map(function(e){return e[1].map(function(n){var s={$flags$:n[0],$tagName$:n[1],$members$:n[2],$listeners$:n[3]};s.$members$=n[2],s.$listeners$=n[3],s.$attrsToReflect$=[],s.$watchers$={},!C&&1&s.$flags$&&(s.$flags$|=8);var u=s.$tagName$,c=function(e){f(r,e);var n=d(r);function r(e){var t;return w(this,r),t=n.call(this,e),Ne(e=m(t),s),1&s.$flags$&&(C?e.attachShadow({mode:"open",delegatesFocus:!!(16&s.$flags$)}):"shadowRoot"in e||(e.shadowRoot=e)),t}
1return b(r,[{key:"connectedCallback",value:function(){var e=this;t&&(clearTimeout(t),t=null),p?l.push(this):S.jmp(function(){return xe(e)})}},{key:"disconnectedCallback",value:function(){var e=this;S.jmp(function(){return function(e){if(0==(1&S.$flags$)){var t=Pe(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(function(e){return e()}),t.$rmListeners$=void 0),S.$cssShim$&&S.$cssShim$.removeHost(e),we(n,"disconnectedCallback")}}(e)})}},{key:"componentOnReady",value:function(){return Pe(this).$onReadyPromise$}}]),r}(o(HTMLElement));s.$lazyBundleId$=e[0],i.includes(u)||a.get(u)||(r.push(u),a.define(u,Ee(c,s,1)))})}),c.innerHTML=r+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),s.insertBefore(c,u?u.nextSibling:s.firstChild),p=!1,l.length?l.map(function(e){return e.connectedCallback()}):S.jmp(function(){return t=setTimeout(be,30)})},Re=function(e){var t=new URL(e,S.$resourcesUrl$);return t.origin!==g.location.origin?t.href:t.pathname},Ie=new WeakMap,Pe=function(e){return Ie.get(e)},Me=function(e,t){return Ie.set(t.$lazyInstance$=e,t)},Ne=function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(function(e){return n.$onInstanceResolve$=e}),n.$onReadyPromise$=new Promise(function(e){return n.$onReadyResolve$=e}),e["s-p"]=[],e["s-rc"]=[],x(e,n,t.$listeners$),Ie.set(e,n)},je=function(e,t){return t in e},De=function(e,t){return(0,console.error)(e,t)},Le=new Map,Fe=function(e,t,n){var o=e.$tagName$.replace(/-/g,"_"),i=e.$lazyBundleId$,a=Le.get(i);return a?a[o]:r(50863)("./".concat(i,".entry.js")).then(function(e){return Le.set(i,e),e[o]},De)},Be=new Map,Ue=[],qe=[],He=[],ze=function(e,t){return function(n){e.push(n),v||(v=!0,t&&4&S.$flags$?$e(Ve):S.raf(Ve))}},Ge=function(e){for(var t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){De(n)}e.length=0},Ve=function e(){Ge(qe),Ge(He),(v=qe.length>0)&&S.raf(e)},$e=function(e){return E().then(e)},Ke=ze(qe,!1),Ye=ze(He,!0),We={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},13730:function(e,n,r){"use strict";r.d(n,{L:function(){return a},a:function(){return s},b:function(){return u},c:function(){return c},d:function(){return l},e:function(){return E},g:function(){return O},l:function(){return S},s:function(){return T},t:function(){return f}});var o=r(52322),i=r(71843),a="ionViewWillEnter",s="ionViewDidEnter",u="ionViewWillLeave",c="ionViewDidLeave",l="ionViewWillUnload",f=function(e){return new Promise(function(t,n){(0,o.c)(function(){h(e),d(e).then(function(n){n.animation&&n.animation.destroy(),p(e),t(n)},function(t){p(e),n(t)})})})},h=function(e){var t=e.enteringEl,n=e.leavingEl;x(t,n,e.direction),e.showGoBack?t.classList.add("can-go-back"):t.classList.remove("can-go-back"),T(t,!1),n&&T(n,!1)},d=function(){var e=t(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m(t);case 2:return n=e.sent,e.abrupt("return",n&&o.B.isBrowser?y(n,t):v(t));case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),p=function(e){var t=e.leavingEl;e.enteringEl.classList.remove("ion-page-invisible"),void 0!==t&&t.classList.remove("ion-page-invisible")},m=function(){var e=t(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.leavingEl||!t.animated||0===t.duration){e.next=16;break}if(!t.animationBuilder){e.next=5;break}e.t0=t.animationBuilder,e.next=15;break;case 5:if("ios"!==t.mode){e.next=11;break}return e.next=8,Promise.resolve().then(r.bind(r,10114));case 8:e.t1=e.sent.iosTransitionAnimation,e.next=14;break;case 11:return e.next=13,Promise.resolve().then(r.bind(r,33897));case 13:e.t1=e.sent.mdTransitionAnimation;case 14:e.t0=e.t1;case 15:return e.abrupt("return",e.t0);case 16:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),y=function(){var e=t(regeneratorRuntime.mark(function e(t,n){var r,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(n,!0);case 2:return r=t(n.baseEl,n),_(n.enteringEl,n.leavingEl),e.next=6,w(r,n);case 6:return o=e.sent,e.abrupt("return",(n.progressCallback&&n.progressCallback(void 0),o&&k(n.enteringEl,n.leavingEl),{hasCompleted:o,animation:r}));case 8:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),v=function(){var e=t(regeneratorRuntime.mark(function e(t){var n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.enteringEl,r=t.leavingEl,e.next=3,g(t,!1);case 3:return _(n,r),k(n,r),e.abrupt("return",{hasCompleted:!0});case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=t(regeneratorRuntime.mark(function e(t,n){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=(void 0!==t.deepWait?t.deepWait:n)?[E(t.enteringEl),E(t.leavingEl)]:[C(t.enteringEl),C(t.leavingEl)],e.next=3,Promise.all(r);case 3:return e.next=5,b(t.viewIsReady,t.enteringEl);case 5:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),b=function(){var e=t(regeneratorRuntime.mark(function e(t,n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=t,!e.t0){e.next=4;break}return e.next=4,t(n);case 4:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),w=function(e,t){var n=t.progressCallback,r=new Promise(function(t){e.onFinish(function(e){return t(1===e)})});return n?(e.progressStart(!0),n(e)):e.play(),r},_=function(e,t){S(t,u),S(e,a)},k=function(e,t){S(e,s),S(t,c)},S=function(e,t){if(e){var n=new CustomEvent(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(n)}},C=function(e){return e?new Promise(function(t){return(0,i.c)(e,t)}):Promise.resolve()},E=function(){var e=t(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t)){e.next=12;break}if(e.t0=null!=n.componentOnReady,!e.t0){e.next=8;break}return e.next=6,n.componentOnReady();case 6:e.t1=e.sent,e.t0=null!=e.t1;case 8:if(!e.t0){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,Promise.all(Array.from(n.children).map(E));case 12:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),T=function(e,t){t?(e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden")):(e.hidden=!1,e.removeAttribute("aria-hidden"),e.classList.remove("ion-page-hidden"))},x=function(e,t,n){void 0!==e&&(e.style.zIndex="back"===n?"99":"101"),void 0!==t&&(t.style.zIndex="100")},O=function(e){return e.classList.contains("ion-page")?e:e.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||e}},88520:function(e,t,n){"use strict";n.r(t),n.d(t,{GESTURE_CONTROLLER:function(){return o.G},createGesture:function(){return u}});var r,o=n(6953),i=function(e,t,n,r){var o,i,s=a(e)?{capture:!!r.capture,passive:!!r.passive}:!!r.capture;return e.__zone_symbol__addEventListener?(o="__zone_symbol__addEventListener",i="__zone_symbol__removeEventListener"):(o="addEventListener",i="removeEventListener"),e[o](t,n,s),function(){e[i](t,n,s)}},a=function(e){if(void 0===r)try{var t=Object.defineProperty({},"passive",{get:function(){r=!0}});e.addEventListener("optsTest",function(){},t)}catch(n){r=!1}return!!r},s=function(e){return e instanceof Document?e:e.ownerDocument},u=function(e){var t=!1,n=!1,r=!0,a=!1,u=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},e),h=u.canStart,d=u.onWillStart,p=u.onStart,m=u.onEnd,y=u.notCaptured,v=u.onMove,g=u.threshold,b=u.passive,w=u.blurOnStart,_={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},k=function(e,t,n){var r=n*(Math.PI/180),o="x"===e,i=Math.cos(r),a=t*t,s=0,u=0,c=!1,l=0;return{start:function(e,t){s=e,u=t,l=0,c=!0},detect:function(e,t){if(!c)return!1;var n=e-s,r=t-u,f=n*n+r*r;if(f<a)return!1;var h=Math.sqrt(f),d=(o?n:r)/h;return l=d>i?1:d<-i?-1:0,c=!1,!0},isGesture:function(){return 0!==l},getDirection:function(){return l}}}
1(u.direction,u.threshold,u.maxAngle),S=o.G.createGesture({name:e.gestureName,priority:e.gesturePriority,disableScroll:e.disableScroll}),C=function(){t&&(a=!1,v&&v(_))},E=function(){return!(S&&!S.capture()||(t=!0,r=!1,_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime,d?d(_).then(T):T(),0))},T=function(){w&&function(){if("undefined"!=typeof document){var e=document.activeElement;null!==e&&e.blur&&e.blur()}}(),p&&p(_),r=!0},x=function(){t=!1,n=!1,a=!1,r=!0,S.release()},O=function(e){var n=t,o=r;x(),o&&(c(_,e),n?m&&m(_):y&&y(_))},A=function(e,t,n,r,o){var a,u,c,l,f,h,d,p=0,m=function(r){p=Date.now()+2e3,t(r)&&(!u&&n&&(u=i(e,"touchmove",n,o)),c||(c=i(e,"touchend",v,o)),l||(l=i(e,"touchcancel",v,o)))},y=function(r){p>Date.now()||t(r)&&(!h&&n&&(h=i(s(e),"mousemove",n,o)),d||(d=i(s(e),"mouseup",g,o)))},v=function(e){b(),r&&r(e)},g=function(e){w(),r&&r(e)},b=function(){u&&u(),c&&c(),l&&l(),u=c=l=void 0},w=function(){h&&h(),d&&d(),h=d=void 0},_=function(){b(),w()},k=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t?(a||(a=i(e,"touchstart",m,o)),f||(f=i(e,"mousedown",y,o))):(a&&a(),f&&f(),a=f=void 0,_())};return{enable:k,stop:_,destroy:function(){k(!1),r=n=t=void 0}}}(u.el,function(e){var t=f(e);return!(n||!r)&&(l(e,_),_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime=t,_.velocityX=_.velocityY=_.deltaX=_.deltaY=0,_.event=e,(!h||!1!==h(_))&&(S.release(),!!S.start()&&(n=!0,0===g?E():(k.start(_.startX,_.startY),!0))))},function(e){t?!a&&r&&(a=!0,c(_,e),requestAnimationFrame(C)):(c(_,e),k.detect(_.currentX,_.currentY)&&(k.isGesture()&&E()||R()))},O,{capture:!1,passive:b}),R=function(){x(),A.stop(),y&&y(_)};return{enable:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e||(t&&O(void 0),x()),A.enable(e)},destroy:function(){S.destroy(),A.destroy()}}},c=function(e,t){if(t){var n=e.currentX,r=e.currentY,o=e.currentTime;l(t,e);var i=e.currentX,a=e.currentY,s=(e.currentTime=f(t))-o;if(s>0&&s<100){var u=(a-r)/s;e.velocityX=(i-n)/s*.7+.3*e.velocityX,e.velocityY=.7*u+.3*e.velocityY}e.deltaX=i-e.startX,e.deltaY=a-e.startY,e.event=t}},l=function(e,t){var n=0,r=0;if(e){var o=e.changedTouches;if(o&&o.length>0){var i=o[0];n=i.clientX,r=i.clientY}else void 0!==e.pageX&&(n=e.pageX,r=e.pageY)}t.currentX=n,t.currentY=r},f=function(e){return e.timeStamp||Date.now()}},47505:function(e,t,n){"use strict";n.d(t,{a:function(){return a},b:function(){return k},c:function(){return _},g:function(){return i},i:function(){return S}});var r,o=n(52322),i=function(e){return s(e)},a=function(e,t){return"string"==typeof e&&(t=e,e=void 0),i(e).includes(t)},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if(void 0===e)return[];e.Ionic=e.Ionic||{};var t=e.Ionic.platforms;return null==t&&(t=e.Ionic.platforms=c(e)).forEach(function(t){return e.document.documentElement.classList.add("plt-".concat(t))}),t},c=function(e){return Object.keys(g).filter(function(t){return g[t](e)})},l=function(e){return!!y(e,/iPad/i)||!(!y(e,/Macintosh/i)||!h(e))},f=function(e){return y(e,/android|sink/i)},h=function(e){return v(e,"(any-pointer:coarse)")},d=function(e){return p(e)||m(e)},p=function(e){return!!(e.cordova||e.phonegap||e.PhoneGap)},m=function(e){var t=e.Capacitor;return!(!t||!t.isNative)},y=function(e,t){return t.test(e.navigator.userAgent)},v=function(e,t){return e.matchMedia(t).matches},g={ipad:l,iphone:function(e){return y(e,/iPhone/i)},ios:function(e){return y(e,/iPhone|iPod/i)||l(e)},android:f,phablet:function(e){var t=e.innerWidth,n=e.innerHeight,r=Math.min(t,n),o=Math.max(t,n);return r>390&&r<520&&o>620&&o<800},tablet:function(e){var t=e.innerWidth,n=e.innerHeight,r=Math.min(t,n),o=Math.max(t,n);return l(e)||function(e){return f(e)&&!y(e,/mobile/i)}(e)||r>460&&r<820&&o>780&&o<1400},cordova:p,capacitor:m,electron:function(e){return y(e,/electron/i)},pwa:function(e){return!(!e.matchMedia("(display-mode: standalone)").matches&&!e.navigator.standalone)},mobile:h,mobileweb:function(e){return h(e)&&!d(e)},desktop:function(e){return!h(e)},hybrid:d},_=new(function(){function e(){w(this,e),this.m=new Map}return b(e,[{key:"reset",value:function(e){this.m=new Map(Object.entries(e))}},{key:"get",value:function(e,t){var n=this.m.get(e);return void 0!==n?n:t}},{key:"getBoolean",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.m.get(e);return void 0===n?t:"string"==typeof n?"true"===n:!!n}},{key:"getNumber",value:function(e,t){var n=parseFloat(this.m.get(e));return isNaN(n)?void 0!==t?t:NaN:n}},{key:"set",value:function(e,t){this.m.set(e,t)}}]),e}()),k=function(e){return e&&(0,o.g)(e)||r},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"!=typeof window){var t=window.document,n=window,i=n.Ionic=n.Ionic||{};s(n);var c=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},function(e){try{var t=e.sessionStorage.getItem("ionic-persist-config");return null!==t?JSON.parse(t):{}}catch(n){return{}}}
1(n)),{persistConfig:!1}),i.config),function(e){var t={};return e.location.search.slice(1).split("&").map(function(e){return e.split("=")}).map(function(e){var t=u(e,2),n=t[0],r=t[1];return[decodeURIComponent(n),decodeURIComponent(r)]}).filter(function(e){return"ionic:"===u(e,1)[0].substr(0,"ionic:".length)}).map(function(e){var t=u(e,2),n=t[0],r=t[1];return[n.slice("ionic:".length),r]}).forEach(function(e){var n=u(e,2),r=n[0],o=n[1];t[r]=o}),t}(n)),e);_.reset(c),_.getBoolean("persistConfig")&&function(e,t){try{e.sessionStorage.setItem("ionic-persist-config",JSON.stringify(t))}catch(n){return}}(n,c),i.config=_,i.mode=r=_.get("mode",t.documentElement.getAttribute("mode")||(a(n,"ios")?"ios":"md")),_.set("mode",r),t.documentElement.setAttribute("mode",r),t.documentElement.classList.add(r),_.getBoolean("_testing")&&_.set("animated",!1);var l=function(e){return e.tagName&&e.tagName.startsWith("ION-")},f=function(e){return["ios","md"].includes(e)};(0,o.s)(function(e){for(;e;){var t=e.mode||e.getAttribute("mode");if(t){if(f(t))return t;l(e)&&console.warn('Invalid ionic mode: "'+t+'", expected: "ios" or "md"')}e=e.parentElement}return r})}}},10114:function(e,t,r){"use strict";r.r(t),r.d(t,{iosTransitionAnimation:function(){return d},shadow:function(){return u}});var o=r(69691),i=r(13730);r(52322);var a=function(e){return document.querySelector("".concat(e,".ion-cloned-element"))},u=function(e){return e.shadowRoot||e},c=function(e){var t="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),n="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=t){var r=t.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=r?r.querySelector(n):null}return e.querySelector(n)},l=function(e,t){var n="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),r=[];if(null!=n){var o=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=o&&(r=o.querySelectorAll("ion-buttons"))}else r=e.querySelectorAll("ion-buttons");var i,a=s(r);try{for(a.s();!(i=a.n()).done;){var u=i.value,c=u.closest("ion-header"),l=c&&!c.classList.contains("header-collapse-condense-inactive"),f=u.querySelector("ion-back-button"),h=u.classList.contains("buttons-collapse"),d="start"===u.slot||""===u.slot;if(null!==f&&d&&(h&&l&&t||!h))return f}}catch(p){a.e(p)}finally{a.f()}return null},f=function(e,t,n,r,i,s){var c=t?"calc(100% - ".concat(s.right+4,"px)"):s.left-4+"px",l=t?"7px":"-7px",f=t?"-4px":"4px",h=t?"-4px":"4px",d=t?"right":"left",p=t?"left":"right",m=n?[{offset:0,opacity:1,transform:"translate3d(".concat(f,", ").concat(s.top-46,"px, 0) scale(1)")},{offset:.6,opacity:0},{offset:1,opacity:0,transform:"translate3d(".concat(l,", ").concat(i.top-40,"px, 0) scale(2.1)")}]:[{offset:0,opacity:0,transform:"translate3d(".concat(l,", ").concat(i.top-40,"px, 0) scale(2.1)")},{offset:1,opacity:1,transform:"translate3d(".concat(f,", ").concat(s.top-46,"px, 0) scale(1)")}],y=n?[{offset:0,opacity:1,transform:"translate3d(".concat(h,", ").concat(s.top-46,"px, 0) scale(1)")},{offset:.2,opacity:0,transform:"translate3d(".concat(h,", ").concat(s.top-41,"px, 0) scale(0.6)")},{offset:1,opacity:0,transform:"translate3d(".concat(h,", ").concat(s.top-41,"px, 0) scale(0.6)")}]:[{offset:0,opacity:0,transform:"translate3d(".concat(h,", ").concat(s.top-41,"px, 0) scale(0.6)")},{offset:1,opacity:1,transform:"translate3d(".concat(h,", ").concat(s.top-46,"px, 0) scale(1)")}],v=(0,o.c)(),g=(0,o.c)(),b=a("ion-back-button"),w=u(b).querySelector(".button-text"),_=u(b).querySelector("ion-icon");b.text=r.text,b.mode=r.mode,b.icon=r.icon,b.color=r.color,b.disabled=r.disabled,b.style.setProperty("display","block"),b.style.setProperty("position","fixed"),g.addElement(_),v.addElement(w),v.beforeStyles({"transform-origin":"".concat(d," center")}).beforeAddWrite(function(){r.style.setProperty("display","none"),b.style.setProperty(d,c)}).afterAddWrite(function(){r.style.setProperty("display",""),b.style.setProperty("display","none"),b.style.removeProperty(d)}).keyframes(m),g.beforeStyles({"transform-origin":"".concat(p," center")}).keyframes(y),e.addAnimation([v,g])},h=function(e,t,r,i,s,u){var c=t?"calc(100% - ".concat(s.right,"px)"):"".concat(s.left,"px"),l=t?"-18px":"18px",f=t?"right":"left",h=r?[{offset:0,opacity:0,transform:"translate3d(".concat(l,", ").concat(u.top-4,"px, 0) scale(0.49)")},{offset:.1,opacity:0}
1,{offset:1,opacity:1,transform:"translate3d(0, ".concat(s.top-2,"px, 0) scale(1)")}]:[{offset:0,opacity:.99,transform:"translate3d(0, ".concat(s.top-2,"px, 0) scale(1)")},{offset:.6,opacity:0},{offset:1,opacity:0,transform:"translate3d(".concat(l,", ").concat(u.top-4,"px, 0) scale(0.5)")}],d=a("ion-title"),p=(0,o.c)();d.innerText=i.innerText,d.size=i.size,d.color=i.color,p.addElement(d),p.beforeStyles(n({"transform-origin":"".concat(f," center"),height:"46px",display:"",position:"relative"},f,c)).beforeAddWrite(function(){i.style.setProperty("display","none")}).afterAddWrite(function(){i.style.setProperty("display",""),d.style.setProperty("display","none")}).keyframes(h),e.addAnimation(p)},d=function(e,t){try{var n="opacity",r="transform",a="0%",s="rtl"===e.ownerDocument.dir,d=s?"-99.5%":"99.5%",p=s?"33%":"-33%",m=t.enteringEl,y=t.leavingEl,v="back"===t.direction,g=m.querySelector(":scope > ion-content"),b=m.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),w=m.querySelectorAll(":scope > ion-header > ion-toolbar"),_=(0,o.c)(),k=(0,o.c)();if(_.addElement(m).duration(t.duration||540).easing(t.easing||"cubic-bezier(0.32,0.72,0,1)").fill("both").beforeRemoveClass("ion-page-invisible"),y&&e){var S=(0,o.c)();S.addElement(e),_.addAnimation(S)}if(g||0!==w.length||0!==b.length?(k.addElement(g),k.addElement(b)):k.addElement(m.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),_.addAnimation(k),v?k.beforeClearStyles([n]).fromTo("transform","translateX(".concat(p,")"),"translateX(".concat(a,")")).fromTo(n,.8,1):k.beforeClearStyles([n]).fromTo("transform","translateX(".concat(d,")"),"translateX(".concat(a,")")),g){var C=u(g).querySelector(".transition-effect");if(C){var E=C.querySelector(".transition-cover"),T=C.querySelector(".transition-shadow"),x=(0,o.c)(),O=(0,o.c)(),A=(0,o.c)();x.addElement(C).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),O.addElement(E).beforeClearStyles([n]).fromTo(n,0,.1),A.addElement(T).beforeClearStyles([n]).fromTo(n,.03,.7),x.addAnimation([O,A]),k.addAnimation([x])}}var R=m.querySelector("ion-header.header-collapse-condense"),I=function(e,t,n,r,o){var i=l(r,n),a=c(o),s=c(r),u=l(o,n),d=null!==i&&null!==a&&!n,p=null!==s&&null!==u&&n;if(d){var m=a.getBoundingClientRect(),y=i.getBoundingClientRect();h(e,t,n,a,m,y),f(e,t,n,i,m,y)}else if(p){var v=s.getBoundingClientRect(),g=u.getBoundingClientRect();h(e,t,n,s,v,g),f(e,t,n,u,v,g)}return{forward:d,backward:p}}(_,s,v,m,y),P=I.forward,M=I.backward;if(w.forEach(function(e){var t=(0,o.c)();t.addElement(e),_.addAnimation(t);var r=(0,o.c)();r.addElement(e.querySelector("ion-title"));var i,c=(0,o.c)(),l=Array.from(e.querySelectorAll("ion-buttons,[menuToggle]")),f=e.closest("ion-header"),h=f&&f.classList.contains("header-collapse-condense-inactive");i=l.filter(v?function(e){var t=e.classList.contains("buttons-collapse");return t&&!h||!t}:function(e){return!e.classList.contains("buttons-collapse")}),c.addElement(i);var m=(0,o.c)();m.addElement(e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));var y=(0,o.c)();y.addElement(u(e).querySelector(".toolbar-background"));var g=(0,o.c)(),b=e.querySelector("ion-back-button");if(b&&g.addElement(b),t.addAnimation([r,c,m,y,g]),c.fromTo(n,.01,1),m.fromTo(n,.01,1),v)h||r.fromTo("transform","translateX(".concat(p,")"),"translateX(".concat(a,")")).fromTo(n,.01,1),m.fromTo("transform","translateX(".concat(p,")"),"translateX(".concat(a,")")),g.fromTo(n,.01,1);else if(R||r.fromTo("transform","translateX(".concat(d,")"),"translateX(".concat(a,")")).fromTo(n,.01,1),m.fromTo("transform","translateX(".concat(d,")"),"translateX(".concat(a,")")),y.beforeClearStyles([n,"transform"]),(null==f?void 0:f.translucent)?y.fromTo("transform",s?"translateX(-100%)":"translateX(100%)","translateX(0px)"):y.fromTo(n,.01,"var(--opacity)"),P||g.fromTo(n,.01,1),b&&!P){var w=(0,o.c)();w.addElement(u(b).querySelector(".button-text")).fromTo("transform",s?"translateX(-100px)":"translateX(100px)","translateX(0px)"),t.addAnimation(w)}}),y){var N=(0,o.c)(),j=y.querySelector(":scope > ion-content"),D=y.querySelectorAll(":scope > ion-header > ion-toolbar"),L=y.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(j||0!==D.length||0!==L.length?(N.addElement(j),N.addElement(L)):N.addElement(y.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),_.addAnimation(N),v){N.beforeClearStyles([n]).fromTo("transform","translateX(".concat(a,")"),s?"translateX(-100%)":"translateX(100%)");var F=(0,i.g)(y);_.afterAddWrite(function(){"normal"===_.getDirection()&&F.style.setProperty("display","none")})}else N.fromTo("transform","translateX(".concat(a,")"),"translateX(".concat(p,")")).fromTo(n,1,.8);if(j){var B=u(j).querySelector(".transition-effect");if(B){var U=B.querySelector(".transition-cover"),q=B.querySelector(".transition-shadow"),H=(0,o.c)(),z=(0,o.c)(),G=(0,o.c)();H.addElement(B).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}
1),z.addElement(U).beforeClearStyles([n]).fromTo(n,.1,0),G.addElement(q).beforeClearStyles([n]).fromTo(n,.7,.03),H.addAnimation([z,G]),N.addAnimation([H])}}D.forEach(function(e){var t=(0,o.c)();t.addElement(e);var i=(0,o.c)();i.addElement(e.querySelector("ion-title"));var c=(0,o.c)(),l=e.querySelectorAll("ion-buttons,[menuToggle]"),f=e.closest("ion-header"),h=f&&f.classList.contains("header-collapse-condense-inactive"),d=Array.from(l).filter(function(e){var t=e.classList.contains("buttons-collapse");return t&&!h||!t});c.addElement(d);var m=(0,o.c)(),y=e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");y.length>0&&m.addElement(y);var g=(0,o.c)();g.addElement(u(e).querySelector(".toolbar-background"));var b=(0,o.c)(),w=e.querySelector("ion-back-button");if(w&&b.addElement(w),t.addAnimation([i,c,m,b,g]),_.addAnimation(t),b.fromTo(n,.99,0),c.fromTo(n,.99,0),m.fromTo(n,.99,0),v){if(h||i.fromTo("transform","translateX(".concat(a,")"),s?"translateX(-100%)":"translateX(100%)").fromTo(n,.99,0),m.fromTo("transform","translateX(".concat(a,")"),s?"translateX(-100%)":"translateX(100%)"),g.beforeClearStyles([n,"transform"]),(null==f?void 0:f.translucent)?g.fromTo("transform","translateX(0px)",s?"translateX(-100%)":"translateX(100%)"):g.fromTo(n,"var(--opacity)",0),w&&!M){var k=(0,o.c)();k.addElement(u(w).querySelector(".button-text")).fromTo("transform","translateX(".concat(a,")"),"translateX(".concat((s?-124:124)+"px",")")),t.addAnimation(k)}}else h||i.fromTo("transform","translateX(".concat(a,")"),"translateX(".concat(p,")")).fromTo(n,.99,0).afterClearStyles([r,n]),m.fromTo("transform","translateX(".concat(a,")"),"translateX(".concat(p,")")).afterClearStyles([r,n]),b.afterClearStyles([n]),i.afterClearStyles([n]),c.afterClearStyles([n])})}return _}catch(V){throw V}}},33897:function(e,t,n){"use strict";n.r(t),n.d(t,{mdTransitionAnimation:function(){return i}});var r=n(69691),o=n(13730);n(52322);var i=function(e,t){var n="back"===t.direction,i=t.leavingEl,a=(0,o.g)(t.enteringEl),s=a.querySelector("ion-toolbar"),u=(0,r.c)();if(u.addElement(a).fill("both").beforeRemoveClass("ion-page-invisible"),n?u.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):u.duration(t.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),s){var c=(0,r.c)();c.addElement(s),u.addAnimation(c)}if(i&&n){u.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");var l=(0,r.c)();l.addElement((0,o.g)(i)).onFinish(function(e){1===e&&l.elements.length>0&&l.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),u.addAnimation(l)}return u}},71558:function(e,n,r){"use strict";r.d(n,{B:function(){return D},a:function(){return f},b:function(){return h},c:function(){return y},d:function(){return T},e:function(){return g},f:function(){return O},g:function(){return I},h:function(){return c},i:function(){return M},l:function(){return d},m:function(){return p},p:function(){return m},s:function(){return j},t:function(){return v}});var o=r(47505),i=r(4641),s=r(71843),u=0,c=new WeakMap,l=function(e){return{create:function(t){return b(e,t)},dismiss:function(t,n,r){return S(document,t,n,e,r)},getTop:(n=t(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",C(document,e));case 1:case"end":return t.stop()}},t)})),function(){return n.apply(this,arguments)})};var n},f=l("ion-alert"),h=l("ion-action-sheet"),d=l("ion-loading"),p=l("ion-modal"),m=l("ion-picker"),y=l("ion-popover"),v=l("ion-toast"),g=function(e){"undefined"!=typeof document&&k(document);var t=u++;e.overlayIndex=t,e.hasAttribute("id")||(e.id="ion-overlay-".concat(t))},b=function(e,t){return"undefined"!=typeof customElements?customElements.whenDefined(e).then(function(){var n=document.createElement(e);return n.classList.add("overlay-hidden"),Object.assign(n,t),A(document).appendChild(n),new Promise(function(e){return(0,s.c)(n,e)})}):Promise.resolve()}
1,w='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',_="input:not([type=hidden]), textarea, button, select",k=function(e){0===u&&(u=1,e.addEventListener("focus",function(t){return function(e,t){var n,r,o,i=C(t),a=e.target;if(i&&a)if(i===a)i.lastFocus=void 0;else{var u=(0,s.g)(i);if(!u.contains(a))return;var c=u.querySelector(".ion-overlay-wrapper");if(!c)return;if(c.contains(a))i.lastFocus=a;else{var l=i.lastFocus;n=i,r=c.querySelector(w),(o=r&&r.shadowRoot)&&(r=o.querySelector(_)||r),r?r.focus():n.focus(),l===t.activeElement&&function(e,t){var n=Array.from(e.querySelectorAll(w)),r=n.length>0?n[n.length-1]:null,o=r&&r.shadowRoot;o&&(r=o.querySelector(_)||r),r?r.focus():t.focus()}(c,i),i.lastFocus=t.activeElement}}}(t,e)},!0),e.addEventListener("ionBackButton",function(t){var n=C(e);n&&n.backdropDismiss&&t.detail.register(i.OVERLAY_BACK_BUTTON_PRIORITY,function(){return n.dismiss(void 0,D)})}),e.addEventListener("keyup",function(t){if("Escape"===t.key){var n=C(e);n&&n.backdropDismiss&&n.dismiss(void 0,D)}}))},S=function(e,t,n,r,o){var i=C(e,r,o);return i?i.dismiss(t,n):Promise.reject("overlay does not exist")},C=function(e,t,n){var r=function(e,t){return void 0===t&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter(function(e){return e.overlayIndex>0})}(e,t);return void 0===n?r[r.length-1]:r.find(function(e){return e.id===n})},E=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=A(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))},T=function(){var e=t(regeneratorRuntime.mark(function e(t,n,r,i,a){var s,u;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.presented){e.next=2;break}return e.abrupt("return");case 2:return E(!0),t.presented=!0,t.willPresent.emit(),s=(0,o.b)(t),u=t.enterAnimation?t.enterAnimation:o.c.get(n,"ios"===s?r:i),e.next=6,R(t,u,t.el,a);case 6:if(e.t0=e.sent,!e.t0){e.next=9;break}t.didPresent.emit();case 9:"ION-TOAST"!==t.el.tagName&&x(t.el),t.keyboardClose&&t.el.focus();case 11:case"end":return e.stop()}},e)}));return function(t,n,r,o,i){return e.apply(this,arguments)}}(),x=function(){var e=t(regeneratorRuntime.mark(function e(t){var n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=document.activeElement){e.next=3;break}return e.abrupt("return");case 3:return(r=n&&n.shadowRoot)&&(n=r.querySelector(_)||n),e.next=7,t.onDidDismiss();case 7:n.focus();case 8:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),O=function(){var e=t(regeneratorRuntime.mark(function e(t,n,r,i,a,s,u){var l,f;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.presented){e.next=2;break}return e.abrupt("return",!1);case 2:if(E(!1),t.presented=!1,e.prev=3,t.el.style.setProperty("pointer-events","none"),t.willDismiss.emit({data:n,role:r}),l=(0,o.b)(t),f=t.leaveAnimation?t.leaveAnimation:o.c.get(i,"ios"===l?a:s),e.t0="gesture"!==r,!e.t0){e.next=10;break}return e.next=10,R(t,f,t.el,u);case 10:t.didDismiss.emit({data:n,role:r}),c.delete(t),e.next=17;break;case 14:e.prev=14,e.t1=e.catch(3),console.error(e.t1);case 17:return e.abrupt("return",(t.el.remove(),!0));case 18:case"end":return e.stop()}},e,null,[[3,14]])}));return function(t,n,r,o,i,a,s){return e.apply(this,arguments)}}(),A=function(e){return e.querySelector("ion-app")||e.body},R=function(){var e=t(regeneratorRuntime.mark(function e(t,n,r,i){var s,u;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.classList.remove("overlay-hidden"),s=n(r.shadowRoot||t.el,i),t.animated&&o.c.getBoolean("animated",!0)||s.duration(0),t.keyboardClose&&s.beforeAddWrite(function(){var e=r.ownerDocument.activeElement;e&&e.matches("input, ion-input, ion-textarea")&&e.blur()}),u=c.get(t)||[],c.set(t,[].concat(a(u),[s])),e.next=7,s.play();case 7:return e.abrupt("return",!0);case 8:case"end":return e.stop()}},e)}));return function(t,n,r,o){return e.apply(this,arguments)}}(),I=function(e,t){var n,r=new Promise(function(e){return n=e});return P(e,t,function(e){n(e.detail)}),r},P=function(e,t,n){(0,s.a)(e,t,function r(o){(0,s.b)(e,t,r),n(o)})},M=function(e){return"cancel"===e||e===D},N=function(e){return e()},j=function(e,t){if("function"==typeof e)return o.c.get("_zoneGate",N)(function(){try{return e(t)}catch(n){console.error(n)}})},D="backdrop"},11653:function(e,t,n){"use strict";n.d(t,{Fw:function(){return h},Ke:function(){return c}});var r,o=n(64762),i=n(35366),a=n(61116),s=n(83179),u=n(76792),c=function(){var e=function(){function e(t,n){var r=this;w(this,e),this.platformId=n,this._driver=null,this._dbPromise=new Promise(function(e,n){if((0,a.PM)(r.platformId)){var o={getItem:i=function(){},setItem:i,removeItem:i,clear:i,length:function(){return 0},keys:function(){return[]},iterate:i};e(o)}else{var i,c,l=Object.assign({name:"_ionicstorage",storeName:"_ionickv",dbKey:"_ionickey",driverOrder:["sqlite","indexeddb","websql","localstorage"]},t||{});(0,s.defineDriver)(u).then(function(){c=(0,s.createInstance)(l)}).then(function(){return c.setDriver(r._getDriverOrder(l.driverOrder))}).then(function(){r._driver=c.driver(),e(c)}).catch(function(e){return n(e)})}})}return b(e,[{key:"driver",get:function(){return this._driver}},{key:"ready",value:function(){return this._dbPromise}},{key:"_getDriverOrder",value:function(e){return e.map(function(e){switch(e){case"sqlite":return u._driver;case"indexeddb":return s.INDEXEDDB;case"websql":return s.WEBSQL;case"localstorage":return s.LOCALSTORAGE}})}},{key:"get",value:function(e){return this._dbPromise.then(function(t){return t.getItem(e)})}},{key:"set",value:function(e,t){return this._dbPromise.then(function(n){return n.setItem(e,t)})}},{key:"remove",value:function(e){return this._dbPromise.then(function(t){return t.removeItem(e)})}},{key:"clear",value:function(){return this._dbPromise.then(function(e){return e.clear()})}},{key:"length",value:function(){return this._dbPromise.then(function(e){return e.length()})}},{key:"keys",value:function(){return this._dbPromise.then(function(e){return e.keys()})}}
1,{key:"forEach",value:function(e){return this._dbPromise.then(function(t){return t.iterate(e)})}}]),e}();return e=(0,o.gn)([(0,o.fM)(1,(0,i.tBr)(i.Lbi))],e)}(),l=new i.OlP("STORAGE_CONFIG_TOKEN");function f(e,t){return new c(e||{name:"_ionicstorage",storeName:"_ionickv",dbKey:"_ionickey",driverOrder:["sqlite","indexeddb","websql","localstorage"]},t)}var h=function(){var e=r=function(){function e(){w(this,e)}return b(e,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{ngModule:r,providers:[{provide:l,useValue:e},{provide:c,useFactory:f,deps:[l,i.Lbi]}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({}),e}()},28302:function(e,t,r){"use strict";r.d(t,{Zw:function(){return S},aw:function(){return U},X$:function(){return B},sK:function(){return F}});var o=r(35366),i=r(40878),a=r(31906),u=r(71784),c=r(47930),l=r(2023),h=r(4991),p=r(7768),m=r(36541);function y(e,t,n){return 0===n?[t]:(e.push(t),e)}var v=r(90611),g=r(1055),_=r(79996),k=r(44689),S=function e(){w(this,e)},C=function(){var e,t=function(e){f(n,e);var t=d(n);function n(){return w(this,n),t.apply(this,arguments)}return b(n,[{key:"getTranslation",value:function(e){return(0,i.of)({})}}]),n}(S);return t.\u0275fac=function(n){return(e||(e=o.n5z(t)))(n||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t}(),E=function e(){w(this,e)},T=function(){var e=function(){function e(){w(this,e)}return b(e,[{key:"handle",value:function(e){return e.key}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac}),e}(),x=function e(){w(this,e)},O=function(){var e,t=function(e){f(n,e);var t=d(n);function n(){return w(this,n),t.apply(this,arguments)}return b(n,[{key:"compile",value:function(e,t){return e}},{key:"compileTranslations",value:function(e,t){return e}}]),n}(x);return t.\u0275fac=function(n){return(e||(e=o.n5z(t)))(n||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t}();function A(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,r,o,i=typeof e;if(i==typeof t&&"object"==i){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(r in o=Object.create(null),e){if(!A(e[r],t[r]))return!1;o[r]=!0}for(r in t)if(!(r in o)&&void 0!==t[r])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(r=0;r<n;r++)if(!A(e[r],t[r]))return!1;return!0}}return!1}function R(e){return null!=e}function I(e){return e&&"object"==typeof e&&!Array.isArray(e)}function P(e,t){var r=Object.assign({},e);return I(e)&&I(t)&&Object.keys(t).forEach(function(o){I(t[o])&&o in e?r[o]=P(e[o],t[o]):Object.assign(r,n({},o,t[o]))}),r}var M=function e(){w(this,e)},N=function(){var e,t=function(e){f(n,e);var t=d(n);function n(){var e;return w(this,n),(e=t.apply(this,arguments)).templateMatcher=/{{\s?([^{}\s]*)\s?}}/g,e}return b(n,[{key:"interpolate",value:function(e,t){return"string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e}},{key:"getValue",value:function(e,t){var n=t.split(".");t="";do{t+=n.shift(),!R(e)||!R(e[t])||"object"!=typeof e[t]&&n.length?n.length?t+=".":e=void 0:(e=e[t],t="")}while(n.length);return e}},{key:"interpolateFunction",value:function(e,t){return e(t)}},{key:"interpolateString",value:function(e,t){var n=this;return t?e.replace(this.templateMatcher,function(e,r){var o=n.getValue(t,r);return R(o)?o:e}):e}}]),n}(M);return t.\u0275fac=function(n){return(e||(e=o.n5z(t)))(n||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t}(),j=function e(){w(this,e),this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new o.vpe,this.onLangChange=new o.vpe,this.onDefaultLangChange=new o.vpe},D=new o.OlP("USE_STORE"),L=new o.OlP("USE_DEFAULT_LANG"),F=function(){var e=function(){function e(t,n,r,i,a){var s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];w(this,e),this.store=t,this.currentLoader=n,this.compiler=r,this.parser=i,this.missingTranslationHandler=a,this.useDefaultLang=s,this.isolate=u,this.pending=!1,this._onTranslationChange=new o.vpe,this._onLangChange=new o.vpe,this._onDefaultLangChange=new o.vpe,this._langs=[],this._translations={},this._translationRequests={}}return b(e,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations}
1,set:function(e){this.isolate?this._translations=e:this.store.translations=e}},{key:"setDefaultLang",value:function(e){var t=this;if(e!==this.defaultLang){var n=this.retrieveTranslations(e);void 0!==n?(this.defaultLang||(this.defaultLang=e),n.pipe((0,v.q)(1)).subscribe(function(n){t.changeDefaultLang(e)})):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var t=this;if(e===this.currentLang)return(0,i.of)(this.translations[e]);var n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe((0,v.q)(1)).subscribe(function(n){t.changeLang(e)}),n):(this.changeLang(e),(0,i.of)(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var t;return void 0===this.translations[e]&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}},{key:"getTranslation",value:function(e){var t=this;this.pending=!0;var n=this.currentLoader.getTranslation(e).pipe((0,g.B)());return this.loadingTranslations=n.pipe((0,v.q)(1),(0,_.U)(function(n){return t.compiler.compileTranslations(n,e)}),(0,g.B)()),this.loadingTranslations.subscribe(function(n){t.translations[e]=n,t.updateLangs(),t.pending=!1},function(e){t.pending=!1}),n}},{key:"setTranslation",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=this.compiler.compileTranslations(t,e),this.translations[e]=n&&this.translations[e]?P(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var t=this;e.forEach(function(e){-1===t.langs.indexOf(e)&&t.langs.push(e)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,t,n){var r;if(t instanceof Array){var o,u={},c=!1,f=s(t);try{for(f.s();!(o=f.n()).done;){var d=o.value;u[d]=this.getParsedResult(e,d,n),"function"==typeof u[d].subscribe&&(c=!0)}}catch(C){f.e(C)}finally{f.f()}if(c){var v,g,b=s(t);try{for(b.s();!(g=b.n()).done;){var w=g.value,k="function"==typeof u[w].subscribe?u[w]:(0,i.of)(u[w]);v=void 0===v?k:(0,a.T)(v,k)}}catch(C){b.e(C)}finally{b.f()}return v.pipe(function(e,t){return arguments.length>=2?function(n){return(0,m.z)((0,l.R)(e,t),(0,h.h)(1),(0,p.d)(t))(n)}:function(t){return(0,m.z)((0,l.R)(function(t,n,r){return e(t,n,r+1)}),(0,h.h)(1))(t)}}(y,[]),(0,_.U)(function(e){var n={};return e.forEach(function(e,r){n[t[r]]=e}),n}))}return u}if(e&&(r=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===r&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===r){var S={key:t,translateService:this};void 0!==n&&(S.interpolateParams=n),r=this.missingTranslationHandler.handle(S)}return void 0!==r?r:t}},{key:"get",value:function(e,t){var n=this;if(!R(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return u.y.create(function(r){var o=function(e){r.next(e),r.complete()},i=function(e){r.error(e)};n.loadingTranslations.subscribe(function(r){"function"==typeof(r=n.getParsedResult(r,e,t)).subscribe?r.subscribe(o,i):o(r)},i)});var r=this.getParsedResult(this.translations[this.currentLang],e,t);return"function"==typeof r.subscribe?r:(0,i.of)(r)}},{key:"stream",value:function(e,t){var n=this;if(!R(e)||!e.length)throw new Error('Parameter "key" required');return(0,c.z)(this.get(e,t),this.onLangChange.pipe((0,k.w)(function(r){var o=n.getParsedResult(r.translations,e,t);return"function"==typeof o.subscribe?o:(0,i.of)(o)})))}},{key:"instant",value:function(e,t){if(!R(e)||!e.length)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],e,t);if(void 0!==n.subscribe){if(e instanceof Array){var r={};return e.forEach(function(t,n){r[e[n]]=e[n]}),r}return e}return n}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang||this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return-1!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage).indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.LFG(j),o.LFG(S),o.LFG(x),o.LFG(M),o.LFG(E),o.LFG(L),o.LFG(D))},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac}),e}(),B=function(){var e=function(){function e(t,n){w(this,e),this.translate=t,this._ref=n,this.value=""}
1return b(e,[{key:"updateValue",value:function(e,t,n){var r=this,o=function(t){r.value=void 0!==t?t:e,r.lastKey=e,r._ref.markForCheck()};if(n){var i=this.translate.getParsedResult(n,e,t);"function"==typeof i.subscribe?i.subscribe(o):o(i)}this.translate.get(e,t).subscribe(o)}},{key:"transform",value:function(e){var t,n=this;if(!e||0===e.length)return e;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];if(A(e,this.lastKey)&&A(o,this.lastParams))return this.value;if(R(o[0])&&o.length)if("string"==typeof o[0]&&o[0].length){var a=o[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{t=JSON.parse(a)}catch(s){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: ".concat(o[0]))}}else"object"!=typeof o[0]||Array.isArray(o[0])||(t=o[0]);return this.lastKey=e,this.lastParams=o,this.updateValue(e,t),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(function(r){n.lastKey&&r.lang===n.translate.currentLang&&(n.lastKey=null,n.updateValue(e,t,r.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(function(r){n.lastKey&&(n.lastKey=null,n.updateValue(e,t,r.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(function(){n.lastKey&&(n.lastKey=null,n.updateValue(e,t))})),this.value}},{key:"_dispose",value:function(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}},{key:"ngOnDestroy",value:function(){this._dispose()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(F,16),o.Y36(o.sBO,16))},e.\u0275pipe=o.Yjl({name:"translate",type:e,pure:!1}),e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac}),e}(),U=function(){var e=function(){function e(){w(this,e)}return b(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:S,useClass:C},t.compiler||{provide:x,useClass:O},t.parser||{provide:M,useClass:N},t.missingTranslationHandler||{provide:E,useClass:T},j,{provide:D,useValue:t.isolate},{provide:L,useValue:t.useDefaultLang},F]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:S,useClass:C},t.compiler||{provide:x,useClass:O},t.parser||{provide:M,useClass:N},t.missingTranslationHandler||{provide:E,useClass:T},{provide:D,useValue:t.isolate},{provide:L,useValue:t.useDefaultLang},F]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({}),e}()},62707:function(e){e.exports=function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){return o(t[a][1][e]||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,u,"next",e)}function u(e){o(a,r,i,s,u,"throw",e)}s(void 0)})}}var a=e("fs"),s=e("fast-csv"),u=e("dayjs/plugin/customParseFormat"),c=e("dayjs/plugin/utc"),l=e("dayjs").extend(u).extend(c),f=e("../utils/stream-buf"),h=e("../utils/utils").fs.exists,d={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"}
1,"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}},p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.workbook=t,this.worksheet=null}var t,n,o,u;return t=e,(n=[{key:"readFile",value:(u=i(regeneratorRuntime.mark(function e(t,n){var r,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=n||{},e.next=3,h(t);case 3:if(e.sent){e.next=5;break}throw new Error("File not found: ".concat(t));case 5:return r=a.createReadStream(t),e.next=8,this.read(r,n);case 8:return o=e.sent,r.close(),e.abrupt("return",o);case 11:case"end":return e.stop()}},e,this)})),function(e,t){return u.apply(this,arguments)})},{key:"read",value:function(e,t){var n=this;return t=t||{},new Promise(function(r,o){var i=n.workbook.addWorksheet(t.sheetName),a=t.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],u=t.map||function(e){if(""===e)return null;var t=Number(e);if(!Number.isNaN(t)&&t!==1/0)return t;var n=a.reduce(function(t,n){if(t)return t;var r=l(e,n,!0);return r.isValid()?r:null},null);if(n)return new Date(n.valueOf());var r=d[e];return void 0!==r?r:e},c=s.parse(t.parserOptions).on("data",function(e){i.addRow(e.map(u))}).on("end",function(){c.emit("worksheet",i)});c.on("worksheet",r).on("error",o),e.pipe(c)})}},{key:"createInputStream",value:function(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}},{key:"write",value:function(e,t){var n=this;return new Promise(function(o,i){var a=n.workbook.getWorksheet((t=t||{}).sheetName||t.sheetId),u=s.format(t.formatterOptions);e.on("finish",function(){o()}),u.on("error",i),u.pipe(e);var c=t.dateFormat,f=t.dateUTC,h=t.map||function(e){if(e){if(e.text||e.hyperlink)return e.hyperlink||e.text||"";if(e.formula||e.result)return e.result||"";if(e instanceof Date)return c?f?l.utc(e).format(c):l(e).format(c):f?l.utc(e).format():l(e).format();if(e.error)return e.error;if("object"===r(e))return JSON.stringify(e)}return e},d=void 0===t.includeEmptyRows||t.includeEmptyRows,p=1;a&&a.eachRow(function(e,t){if(d)for(;p++<t-1;)u.write([]);var n=e.values;n.shift(),u.write(n.map(h)),p=t}),u.end()})}},{key:"writeFile",value:function(e,t){var n={encoding:(t=t||{}).encoding||"utf8"},r=a.createWriteStream(e,n);return this.write(r,t)}},{key:"writeBuffer",value:(o=i(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=new f,e.next=3,this.write(n,t);case 3:return e.abrupt("return",n.read());case 4:case"end":return e.stop()}},e,this)})),function(e){return o.apply(this,arguments)})}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),e}();t.exports=p},{"../utils/stream-buf":23,"../utils/utils":26,dayjs:336,"dayjs/plugin/customParseFormat":337,"dayjs/plugin/utc":338,"fast-csv":369,fs:215}],2:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=e("../utils/col-cache"),a=function(){function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r(this,e),n)if("string"==typeof n){var a=i.decodeAddress(n);this.nativeCol=a.col+o,this.nativeColOff=0,this.nativeRow=a.row+o,this.nativeRowOff=0}else void 0!==n.nativeCol?(this.nativeCol=n.nativeCol||0,this.nativeColOff=n.nativeColOff||0,this.nativeRow=n.nativeRow||0,this.nativeRowOff=n.nativeRowOff||0):void 0!==n.col?(this.col=n.col+o,this.row=n.row+o):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0;this.worksheet=t}var t,n,a;return t=e,a=[{key:"asInstance",value:function(t){return t instanceof e||null==t?t:new e(t)}}],(n=[{key:"col",get:function(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}
vendor: 16,786 bytes, line 1
1,set:function(e){this.nativeCol=Math.floor(e),this.nativeColOff=Math.floor((e-this.nativeCol)*this.colWidth)}},{key:"row",get:function(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight},set:function(e){this.nativeRow=Math.floor(e),this.nativeRowOff=Math.floor((e-this.nativeRow)*this.rowHeight)}},{key:"colWidth",get:function(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}},{key:"rowHeight",get:function(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}},{key:"model",get:function(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}},set:function(e){this.nativeCol=e.nativeCol,this.nativeColOff=e.nativeColOff,this.nativeRow=e.nativeRow,this.nativeRowOff=e.nativeRowOff}}])&&o(t.prototype,n),a&&o(t,a),e}();t.exports=a},{"../utils/col-cache":19}],3:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}var a=e("../utils/col-cache"),s=e("../utils/under-dash"),u=e("./enums"),c=e("../utils/shared-formula").slideFormula,l=e("./note"),f=function(){function e(t,n,o){if(r(this,e),!t||!n)throw new Error("A Cell needs a Row");this._row=t,this._column=n,a.validateAddress(o),this._address=o,this._value=C.create(e.Types.Null,this),this.style=this._mergeStyle(t.style,n.style,{}),this._mergeCount=0}return i(e,[{key:"destroy",value:function(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}},{key:"_mergeStyle",value:function(e,t,n){var r=e&&e.numFmt||t&&t.numFmt;r&&(n.numFmt=r);var o=e&&e.font||t&&t.font;o&&(n.font=o);var i=e&&e.alignment||t&&t.alignment;i&&(n.alignment=i);var a=e&&e.border||t&&t.border;a&&(n.border=a);var s=e&&e.fill||t&&t.fill;s&&(n.fill=s);var u=e&&e.protection||t&&t.protection;return u&&(n.protection=u),n}},{key:"toCsvString",value:function(){return this._value.toCsvString()}},{key:"addMergeRef",value:function(){this._mergeCount++}},{key:"releaseMergeRef",value:function(){this._mergeCount--}},{key:"merge",value:function(t,n){this._value.release(),this._value=C.create(e.Types.Merge,this,t),n||(this.style=t.style)}},{key:"unmerge",value:function(){this.type===e.Types.Merge&&(this._value.release(),this._value=C.create(e.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}},{key:"isMergedTo",value:function(t){return this._value.type===e.Types.Merge&&this._value.isMergedTo(t)}},{key:"toString",value:function(){return this.text}},{key:"_upgradeToHyperlink",value:function(t){this.type===e.Types.String&&(this._value=C.create(e.Types.Hyperlink,this,{text:this._value.value,hyperlink:t}))}},{key:"addName",value:function(e){this.workbook.definedNames.addEx(this.fullAddress,e)}},{key:"removeName",value:function(e){this.workbook.definedNames.removeEx(this.fullAddress,e)}},{key:"removeAllNames",value:function(){this.workbook.definedNames.removeAllNames(this.fullAddress)}},{key:"worksheet",get:function(){return this._row.worksheet}},{key:"workbook",get:function(){return this._row.worksheet.workbook}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(e){this.style.numFmt=e}},{key:"font",get:function(){return this.style.font},set:function(e){this.style.font=e}},{key:"alignment",get:function(){return this.style.alignment},set:function(e){this.style.alignment=e}},{key:"border",get:function(){return this.style.border},set:function(e){this.style.border=e}},{key:"fill",get:function(){return this.style.fill},set:function(e){this.style.fill=e}},{key:"protection",get:function(){return this.style.protection},set:function(e){this.style.protection=e}},{key:"address",get:function(){return this._address}},{key:"row",get:function(){return this._row.number}},{key:"col",get:function(){return this._column.number}},{key:"$col$row",get:function(){return"$".concat(this._column.letter,"$").concat(this.row)}},{key:"type",get:function(){return this._value.type}},{key:"effectiveType",get:function(){return this._value.effectiveType}},{key:"isMerged",get:function(){return this._mergeCount>0||this.type===e.Types.Merge}},{key:"master",get:function(){return this.type===e.Types.Merge?this._value.master:this}},{key:"isHyperlink",get:function(){return this._value.type===e.Types.Hyperlink}},{key:"hyperlink",get:function(){return this._value.hyperlink}},{key:"value",get:function(){return this._value.value},set:function(t){this.type!==e.Types.Merge?(this._value.release(),this._value=C.create(C.getType(t),this,t)):this._value.master.value=t}},{key:"note",get:function(){return this._comment&&this._comment.note},set:function(e){this._comment=new l(e)}},{key:"text",get:function(){return this._value.toString()}},{key:"html",get:function(){return s.escapeHtml(this.text)}},{key:"formula",get:function(){return this._value.formula}},{key:"result",get:function(){return this._value.result}},{key:"formulaType",get:function(){return this._value.formulaType}},{key:"fullAddress",get:function(){return{sheetName:this._row.worksheet.name,address:this.address,row:this.row,col:this.col}}},{key:"name",get:function(){return this.names[0]},set:function(e){this.names=[e]}},{key:"names",get:function(){return this.workbook.definedNames.getNamesEx(this.fullAddress)},set:function(e){var t=this,n=this.workbook.definedNames;n.removeAllNames(this.fullAddress),e.forEach(function(e){n.addEx(t.fullAddress,e)})}},{key:"_dataValidations",get:function(){return this.worksheet.dataValidations}},{key:"dataValidation",get:function(){return this._dataValidations.find(this.address)},set:function(e){this._dataValidations.add(this.address,e)}},{key:"model",get:function(){var e=this._value.model;return e.style=this.style,this._comment&&(e.comment=this._comment.model),e},set:function(e){if(this._value.release(),this._value=C.create(e.type,this),this._value.model=e,e.comment)switch(e.comment.type){case"note":this._comment=l.fromModel(e.comment)}this.style=e.style?e.style:{}}}]),e}();f.Types=u.ValueType;var h=function(){function e(t){r(this,e),this.model={address:t.address,type:f.Types.Null}}return i(e,[{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){}},{key:"toString",value:function(){return""}},{key:"value",get:function(){return null},set:function(e){}},{key:"type",get:function(){return f.Types.Null}},{key:"effectiveType",get:function(){return f.Types.Null}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),d=function(){function e(t,n){r(this,e),this.model={address:t.address,type:f.Types.Number,value:n}}return i(e,[{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return f.Types.Number}},{key:"effectiveType",get:function(){return f.Types.Number}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),p=function(){function e(t,n){r(this,e),this.model={address:t.address,type:f.Types.String,value:n}}return i(e,[{key:"toCsvString",value:function(){return'"'.concat(this.model.value.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return f.Types.String}},{key:"effectiveType",get:function(){return f.Types.String}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),m=function(){function e(t,n){r(this,e),this.model={address:t.address,type:f.Types.String,value:n}}return i(e,[{key:"toString",value:function(){return this.model.value.richText.map(function(e){return e.text}).join("")}},{key:"toCsvString",value:function(){return'"'.concat(this.text.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return f.Types.RichText}},{key:"effectiveType",get:function(){return f.Types.RichText}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),y=function(){function e(t,n){r(this,e),this.model={address:t.address,type:f.Types.Date,value:n}}return i(e,[{key:"toCsvString",value:function(){return this.model.value.toISOString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return f.Types.Date}},{key:"effectiveType",get:function(){return f.Types.Date}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),v=function(){function e(t,n){r(this,e),this.model={address:t.address,type:f.Types.Hyperlink,text:n?n.text:void 0,hyperlink:n?n.hyperlink:void 0},n&&n.tooltip&&(this.model.tooltip=n.tooltip)}return i(e,[{key:"toCsvString",value:function(){return this.model.hyperlink}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.text}},{key:"value",get:function(){var e={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(e.tooltip=this.model.tooltip),e},set:function(e){this.model={text:e.text,hyperlink:e.hyperlink},e.tooltip&&(this.model.tooltip=e.tooltip)}},{key:"text",get:function(){return this.model.text},set:function(e){this.model.text=e}},{key:"hyperlink",get:function(){return this.model.hyperlink},set:function(e){this.model.hyperlink=e}},{key:"type",get:function(){return f.Types.Hyperlink}},{key:"effectiveType",get:function(){return f.Types.Hyperlink}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),g=function(){function e(t,n){r(this,e),this.model={address:t.address,type:f.Types.Merge,master:n?n.address:void 0},this._master=n,n&&n.addMergeRef()}return i(e,[{key:"isMergedTo",value:function(e){return e===this._master}},{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){this._master.releaseMergeRef()}},{key:"toString",value:function(){return this.value.toString()}},{key:"value",get:function(){return this._master.value},set:function(e){e instanceof f?(this._master&&this._master.releaseMergeRef(),e.addMergeRef(),this._master=e):this._master.value=e}},{key:"master",get:function(){return this._master}},{key:"type",get:function(){return f.Types.Merge}},{key:"effectiveType",get:function(){return this._master.effectiveType}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),b=function(){function e(t,n){r(this,e),this.cell=t,this.model={address:t.address,type:f.Types.Formula,shareType:n?n.shareType:void 0,ref:n?n.ref:void 0,formula:n?n.formula:void 0,sharedFormula:n?n.sharedFormula:void 0,result:n?n.result:void 0}}return i(e,[{key:"_copyModel",value:function(e){var t={},n=function(n){var r=e[n];r&&(t[n]=r)};return n("formula"),n("result"),n("ref"),n("shareType"),n("sharedFormula"),t}},{key:"validate",value:function(e){switch(C.getType(e)){case f.Types.Null:case f.Types.String:case f.Types.Number:case f.Types.Date:break;case f.Types.Hyperlink:case f.Types.Formula:default:throw new Error("Cannot process that type of result value")}}},{key:"_getTranslatedFormula",value:function(){if(!this._translatedFormula&&this.model.sharedFormula){var e=this.cell.worksheet.findCell(this.model.sharedFormula);this._translatedFormula=e&&c(e.formula,e.address,this.model.address)}return this._translatedFormula}},{key:"toCsvString",value:function(){return"".concat(this.model.result||"")}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.result?this.model.result.toString():""}},{key:"value",get:function(){return this._copyModel(this.model)},set:function(e){this.model=this._copyModel(e)}},{key:"dependencies",get:function(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}},{key:"formula",get:function(){return this.model.formula||this._getTranslatedFormula()},set:function(e){this.model.formula=e}},{key:"formulaType",get:function(){return this.model.formula?u.FormulaType.Master:this.model.sharedFormula?u.FormulaType.Shared:u.FormulaType.None}},{key:"result",get:function(){return this.model.result},set:function(e){this.model.result=e}},{key:"type",get:function(){return f.Types.Formula}},{key:"effectiveType",get:function(){var e=this.model.result;return null==e?u.ValueType.Null:e instanceof String||"string"==typeof e?u.ValueType.String:"number"==typeof e?u.ValueType.Number:e instanceof Date?u.ValueType.Date:e.text&&e.hyperlink?u.ValueType.Hyperlink:e.formula?u.ValueType.Formula:u.ValueType.Null}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),w=function(){function e(t,n){r(this,e),this.model={address:t.address,type:f.Types.SharedString,value:n}}return i(e,[{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return f.Types.SharedString}},{key:"effectiveType",get:function(){return f.Types.SharedString}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),_=function(){function e(t,n){r(this,e),this.model={address:t.address,type:f.Types.Boolean,value:n}}return i(e,[{key:"toCsvString",value:function(){return this.model.value?1:0}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return f.Types.Boolean}},{key:"effectiveType",get:function(){return f.Types.Boolean}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),k=function(){function e(t,n){r(this,e),this.model={address:t.address,type:f.Types.Error,value:n}}return i(e,[{key:"toCsvString",value:function(){return this.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.error.toString()}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return f.Types.Error}},{key:"effectiveType",get:function(){return f.Types.Error}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),S=function(){function e(t,n){r(this,e),this.model={address:t.address,type:f.Types.String,value:JSON.stringify(n),rawValue:n}}return i(e,[{key:"toCsvString",value:function(){return this.model.value}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}},{key:"value",get:function(){return this.model.rawValue},set:function(e){this.model.rawValue=e,this.model.value=JSON.stringify(e)}},{key:"type",get:function(){return f.Types.String}},{key:"effectiveType",get:function(){return f.Types.String}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),C={getType:function(e){return null==e?f.Types.Null:e instanceof String||"string"==typeof e?f.Types.String:"number"==typeof e?f.Types.Number:"boolean"==typeof e?f.Types.Boolean:e instanceof Date?f.Types.Date:e.text&&e.hyperlink?f.Types.Hyperlink:e.formula||e.sharedFormula?f.Types.Formula:e.richText?f.Types.RichText:e.sharedString?f.Types.SharedString:e.error?f.Types.Error:f.Types.JSON},types:[{t:f.Types.Null,f:h},{t:f.Types.Number,f:d},{t:f.Types.String,f:p},{t:f.Types.Date,f:y},{t:f.Types.Hyperlink,f:v},{t:f.Types.Formula,f:b},{t:f.Types.Merge,f:g},{t:f.Types.JSON,f:S},{t:f.Types.SharedString,f:w},{t:f.Types.RichText,f:m},{t:f.Types.Boolean,f:_},{t:f.Types.Error,f:k}].reduce(function(e,t){return e[t.t]=t.f,e}
1,[]),create:function(e,t,n){var r=this.types[e];if(!r)throw new Error("Could not create Value of type ".concat(e));return new r(t,n)}};t.exports=f},{"../utils/col-cache":19,"../utils/shared-formula":22,"../utils/under-dash":25,"./enums":7,"./note":9}],4:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=e("../utils/under-dash"),i=e("./enums"),a=e("../utils/col-cache"),s=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._worksheet=t,this._number=n,!1!==r&&(this.defn=r)}var t,n,s;return t=e,s=[{key:"toModel",value:function(e){var t=[],n=null;return e&&e.forEach(function(e,r){e.isDefault?n&&(n=null):n&&e.equivalentTo(n)?n.max=r+1:t.push(n={min:r+1,max:r+1,width:void 0!==e.width?e.width:9,style:e.style,isCustomWidth:e.isCustomWidth,hidden:e.hidden,outlineLevel:e.outlineLevel,collapsed:e.collapsed})}),t.length?t:void 0}},{key:"fromModel",value:function(t,n){n=n||[];for(var r=[],o=1,i=0;i<n.length;){for(var a=n[i++];o<a.min;)r.push(new e(t,o++));for(;o<=a.max;)r.push(new e(t,o++,a))}return r.length?r:null}}],(n=[{key:"toString",value:function(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}},{key:"equivalentTo",value:function(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&o.isEqual(this.style,e.style)}},{key:"eachCell",value:function(e,t){var n=this.number;t||(t=e,e=null),this._worksheet.eachRow(e,function(e,r){t(e.getCell(n),r)})}},{key:"_applyStyle",value:function(e,t){return this.style[e]=t,this.eachCell(function(n){n[e]=t}),t}},{key:"number",get:function(){return this._number}},{key:"worksheet",get:function(){return this._worksheet}},{key:"letter",get:function(){return a.n2l(this._number)}},{key:"isCustomWidth",get:function(){return void 0!==this.width&&9!==this.width}},{key:"defn",get:function(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}},set:function(e){e?(this.key=e.key,this.width=void 0!==e.width?e.width:9,this.outlineLevel=e.outlineLevel,this.style=e.style?e.style:{},this.header=e.header,this._hidden=!!e.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}},{key:"headers",get:function(){return this._header&&this._header instanceof Array?this._header:[this._header]}},{key:"header",get:function(){return this._header},set:function(e){var t=this;void 0!==e?(this._header=e,this.headers.forEach(function(e,n){t._worksheet.getCell(n+1,t.number).value=e})):this._header=void 0}},{key:"key",get:function(){return this._key},set:function(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)}},{key:"hidden",get:function(){return!!this._hidden},set:function(e){this._hidden=e}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(e){this._outlineLevel=e}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}},{key:"isDefault",get:function(){if(this.isCustomWidth)return!1;if(this.hidden)return!1;if(this.outlineLevel)return!1;var e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}},{key:"headerCount",get:function(){return this.headers.length}},{key:"values",get:function(){var e=[];return this.eachCell(function(t,n){t&&t.type!==i.ValueType.Null&&(e[n]=t.value)}),e},set:function(e){var t=this;if(e){var n=this.number,r=0;e.hasOwnProperty("0")&&(r=1),e.forEach(function(e,o){t._worksheet.getCell(o+r,n).value=e})}}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(e){this._applyStyle("numFmt",e)}},{key:"font",get:function(){return this.style.font},set:function(e){this._applyStyle("font",e)}},{key:"alignment",get:function(){return this.style.alignment},set:function(e){this._applyStyle("alignment",e)}},{key:"protection",get:function(){return this.style.protection},set:function(e){this._applyStyle("protection",e)}},{key:"border",get:function(){return this.style.border},set:function(e){this._applyStyle("border",e)}},{key:"fill",get:function(){return this.style.fill},set:function(e){this._applyStyle("fill",e)}
vendor: 4,579 bytes, line 1
1}])&&r(t.prototype,n),s&&r(t,s),e}();t.exports=s},{"../utils/col-cache":19,"../utils/under-dash":25,"./enums":7}],5:[function(e,t,n){"use strict";var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.model=t||{}}var t;return(t=[{key:"add",value:function(e,t){return this.model[e]=t}},{key:"find",value:function(e){return this.model[e]}},{key:"remove",value:function(e){this.model[e]=void 0}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();t.exports=r},{}],6:[function(e,t,n){"use strict";var r=e("../utils/under-dash"),o=e("../utils/col-cache"),i=e("../utils/cell-matrix"),a=e("./range"),s=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.matrixMap={}}var t;return(t=[{key:"getMatrix",value:function(e){return this.matrixMap[e]||(this.matrixMap[e]=new i)}},{key:"add",value:function(e,t){var n=o.decodeEx(e);this.addEx(n,t)}},{key:"addEx",value:function(e,t){var n=this.getMatrix(t);if(e.top)for(var r=e.left;r<=e.right;r++)for(var i=e.top;i<=e.bottom;i++){var a={sheetName:e.sheetName,address:o.n2l(r)+i,row:i,col:r};n.addCellEx(a)}else n.addCellEx(e)}},{key:"remove",value:function(e,t){var n=o.decodeEx(e);this.removeEx(n,t)}},{key:"removeEx",value:function(e,t){this.getMatrix(t).removeCellEx(e)}},{key:"removeAllNames",value:function(e){r.each(this.matrixMap,function(t){t.removeCellEx(e)})}},{key:"forEach",value:function(e){r.each(this.matrixMap,function(t,n){t.forEach(function(t){e(n,t)})})}},{key:"getNames",value:function(e){return this.getNamesEx(o.decodeEx(e))}},{key:"getNamesEx",value:function(e){return r.map(this.matrixMap,function(t,n){return t.findCellEx(e)&&n}).filter(Boolean)}},{key:"_explore",value:function(e,t){t.mark=!1;var n,r,o=t.sheetName,i=new a(t.row,t.col,t.row,t.col,o);function s(n,r){var a=e.findCellAt(o,n,t.col);return!(!a||!a.mark||(i[r]=n,a.mark=!1,0))}for(r=t.row-1;s(r,"top");r--);for(r=t.row+1;s(r,"bottom");r++);function u(t,n){var a=[];for(r=i.top;r<=i.bottom;r++){var s=e.findCellAt(o,r,t);if(!s||!s.mark)return!1;a.push(s)}i[n]=t;for(var u=0;u<a.length;u++)a[u].mark=!1;return!0}for(n=t.col-1;u(n,"left");n--);for(n=t.col+1;u(n,"right");n++);return i}},{key:"getRanges",value:function(e,t){var n=this;return(t=t||this.matrixMap[e])?(t.forEach(function(e){e.mark=!0}),{name:e,ranges:t.map(function(e){return e.mark&&n._explore(t,e)}).filter(Boolean).map(function(e){return e.$shortRange})}):{name:e,ranges:[]}}},{key:"normaliseMatrix",value:function(e,t){e.forEachInSheet(t,function(e,t,n){e&&(e.row===t&&e.col===n||(e.row=t,e.col=n,e.address=o.n2l(n)+t))})}},{key:"spliceRows",value:function(e,t,n,o){var i=this;r.each(this.matrixMap,function(r){r.spliceRows(e,t,n,o),i.normaliseMatrix(r,e)})}},{key:"spliceColumns",value:function(e,t,n,o){var i=this;r.each(this.matrixMap,function(r){r.spliceColumns(e,t,n,o),i.normaliseMatrix(r,e)})}},{key:"model",get:function(){var e=this;return r.map(this.matrixMap,function(t,n){return e.getRanges(n,t)}).filter(function(e){return e.ranges.length})},set:function(e){var t=this.matrixMap={};e.forEach(function(e){var n=t[e.name]=new i;e.ranges.forEach(function(e){s.test(e.split("!").pop()||"")&&n.addCell(e)})})}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();t.exports=u},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":25,"./range":10}],7:[function(e,t,n){"use strict";t.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,t,n){"use strict";var r=e("../utils/col-cache"),o=e("./anchor"),i=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.worksheet=t,this.model=n}var t;return(t=[{key:"model",get:function(){switch(this.type){case"background":return{type:this.t
1ype,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}},set:function(e){var t=e.type,n=e.imageId,i=e.range,a=e.hyperlinks;if(this.type=t,this.imageId=n,"image"===t)if("string"==typeof i){var s=r.decode(i);this.range={tl:new o(this.worksheet,{col:s.left,row:s.top},-1),br:new o(this.worksheet,{col:s.right,row:s.bottom},0),editAs:"oneCell"}}else this.range={tl:new o(this.worksheet,i.tl,0),br:i.br&&new o(this.worksheet,i.br,0),ext:i.ext,editAs:i.editAs,hyperlinks:a||i.hyperlinks}}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();t.exports=i},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=e("../utils/under-dash"),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.note=t}var t,n,a;return t=e,a=[{key:"fromModel",value:function(t){var n=new e;return n.model=t,n}}],(n=[{key:"model",get:function(){var t=null;switch(r(this.note)){case"string":t={type:"note",note:{texts:[{text:this.note}]}};break;default:t={type:"note",note:this.note}}return i.deepMerge({},e.DEFAULT_CONFIGS,t)},set:function(e){var t=e.note,n=t.texts;this.note=1===n.length&&1===Object.keys(n[0]).length?n[0].text:t}}])&&o(t.prototype,n),a&&o(t,a),e}();a.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},t.exports=a},{"../utils/under-dash":25}],10:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=e("../utils/col-cache"),i=function(){function e(){r(this,e),this.decode(arguments)}var t;return(t=[{key:"setTLBR",value:function(e,t,n,r,i){if(arguments.length<4){var a=o.decodeAddress(e),s=o.decodeAddress(t);this.model={top:Math.min(a.row,s.row),left:Math.min(a.col,s.col),bottom:Math.max(a.row,s.row),right:Math.max(a.col,s.col),sheetName:n},this.setTLBR(a.row,a.col,s.row,s.col,i)}else this.model={top:Math.min(e,n),left:Math.min(t,r),bottom:Math.max(e,n),right:Math.max(t,r),sheetName:i}}},{key:"decode",value:function(t){switch(t.length){case 5:this.setTLBR(t[0],t[1],t[2],t[3],t[4]);break;case 4:this.setTLBR(t[0],t[1],t[2],t[3]);break;case 3:this.setTLBR(t[0],t[1],t[2]);break;case 2:this.setTLBR(t[0],t[1]);break;case 1:var n=t[0];if(n instanceof e)this.model={top:n.model.top,left:n.model.left,bottom:n.model.bottom,right:n.model.right,sheetName:n.sheetName};else if(n instanceof Array)this.decode(n);else if(n.top&&n.left&&n.bottom&&n.right)this.model={top:n.top,left:n.left,bottom:n.bottom,right:n.right,sheetName:n.sheetName};else{var r=o.decodeEx(n);this.model=r.top?{top:r.top,left:r.left,bottom:r.bottom,right:r.right,sheetName:r.sheetName}:{top:r.row,left:r.col,bottom:r.row,right:r.col,sheetName:r.sheetName}}break;case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - ".concat(t.length))}}},{key:"expand",value:function(e,t,n,r){(!this.model.top||e<this.top)&&(this.top=e),(!this.model.left||t<this.left)&&(this.left=t),(!this.model.bottom||n>this.bottom)&&(this.bottom=n),(!this.model.right||r>this.right)&&(this.right=r)}},{key:"expandRow",value:function(e){if(e){var t=e.dimensions,n=e.number;t&&this.expand(n,t.min,n,t.max)}}},{key:"expandToAddress",value:function(e){var t=o.decodeEx(e);this.expand(t.row,t.col,t.row,t.col)}},{key:"toString",value:function(){return this.range}},{key:"intersects",value:function(e){return!(e.sheetName&&this.sheetName&&e.sheetName!==this.sheetName||e.bottom<this.top||e.top>this.bottom||e.right<this.left||e.left>this.right)}},{key:"contains",value:function(e){var t=o.decodeEx(e);return this.containsEx(t)}},{key:"containsEx",value:function(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&e.row>=this.top&&e.row<=this.bottom&&e.col>=this.left&&e.col<=this.right}}
vendor: 4,789 bytes, line 1
1,{key:"forEachAddress",value:function(e){for(var t=this.left;t<=this.right;t++)for(var n=this.top;n<=this.bottom;n++)e(o.encodeAddress(n,t),n,t)}},{key:"top",get:function(){return this.model.top||1},set:function(e){this.model.top=e}},{key:"left",get:function(){return this.model.left||1},set:function(e){this.model.left=e}},{key:"bottom",get:function(){return this.model.bottom||1},set:function(e){this.model.bottom=e}},{key:"right",get:function(){return this.model.right||1},set:function(e){this.model.right=e}},{key:"sheetName",get:function(){return this.model.sheetName},set:function(e){this.model.sheetName=e}},{key:"_serialisedSheetName",get:function(){var e=this.model.sheetName;return e?/^[a-zA-Z0-9]*$/.test(e)?"".concat(e,"!"):"'".concat(e,"'!"):""}},{key:"tl",get:function(){return o.n2l(this.left)+this.top}},{key:"$t$l",get:function(){return"$".concat(o.n2l(this.left),"$").concat(this.top)}},{key:"br",get:function(){return o.n2l(this.right)+this.bottom}},{key:"$b$r",get:function(){return"$".concat(o.n2l(this.right),"$").concat(this.bottom)}},{key:"range",get:function(){return"".concat(this._serialisedSheetName+this.tl,":").concat(this.br)}},{key:"$range",get:function(){return"".concat(this._serialisedSheetName+this.$t$l,":").concat(this.$b$r)}},{key:"shortRange",get:function(){return this.count>1?this.range:this._serialisedSheetName+this.tl}},{key:"$shortRange",get:function(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}},{key:"count",get:function(){return(1+this.bottom-this.top)*(1+this.right-this.left)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();t.exports=i},{"../utils/col-cache":19}],11:[function(e,t,n){"use strict";var r=e("../utils/under-dash"),o=e("./enums"),i=e("../utils/col-cache"),a=e("./cell"),s=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._worksheet=t,this._number=n,this._cells=[],this.style={},this.outlineLevel=0}var t;return(t=[{key:"commit",value:function(){this._worksheet._commitRow(this)}},{key:"destroy",value:function(){delete this._worksheet,delete this._cells,delete this.style}},{key:"findCell",value:function(e){return this._cells[e-1]}},{key:"getCellEx",value:function(e){var t=this._cells[e.col-1];if(!t){var n=this._worksheet.getColumn(e.col);t=new a(this,n,e.address),this._cells[e.col-1]=t}return t}},{key:"getCell",value:function(e){if("string"==typeof e){var t=this._worksheet.getColumnKey(e);e=t?t.number:i.l2n(e)}return this._cells[e-1]||this.getCellEx({address:i.encodeAddress(this._number,e),row:this._number,col:e})}},{key:"splice",value:function(e,t){for(var n=e+t,r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];var a,s,u,c=o.length-t,l=this._cells.length;if(c<0)for(a=e+o.length;a<=l;a++)u=this._cells[a-1],(s=this._cells[a-c-1])?((u=this.getCell(a)).value=s.value,u.style=s.style,u._comment=s._comment):u&&(u.value=null,u.style={},u._comment=void 0);else if(c>0)for(a=l;a>=n;a--)(s=this._cells[a-1])?((u=this.getCell(a+c)).value=s.value,u.style=s.style,u._comment=s._comment):this._cells[a+c-1]=void 0;for(a=0;a<o.length;a++)(u=this.getCell(e+a)).value=o[a],u.style={},u._comment=void 0}},{key:"eachCell",value:function(e,t){if(t||(t=e,e=null),e&&e.includeEmpty)for(var n=this._cells.length,r=1;r<=n;r++)t(this.getCell(r),r);else this._cells.forEach(function(e,n){e&&e.type!==o.ValueType.Null&&t(e,n+1)})}},{key:"addPageBreak",value:function(e,t){var n=this._worksheet,r=Math.max(0,e-1)||0,o=Math.max(0,t-1)||16838,i={id:this._number,max:o,man:1};r&&(i.min=r),n.rowBreaks.push(i)}},{key:"_applyStyle",value:function(e,t){return this.style[e]=t,this._cells.forEach(function(n){n&&(n[e]=t)}),t}},{key:"number",get:function(){return this._number}},{key:"worksheet",get:function(){return this._worksheet}},{key:"values",get:function(){var e=[];return this._cells.forEach(function(t){t&&t.type!==o.ValueType.Null&&(e[t.col]=t.value)}),e},set:function(e){var t=this;if(this._cells=[],e)if(e instanceof Array){var n=0;e.hasOwnProperty("0")&&(n=1),e.forEach(function(e,r){void 0!==e&&(t.getCellEx({address:i.encodeAddress(t._number,r+n),row:t._number,col:r+n}).value=e)})}else this._worksheet.eachColumnKey(function(n,r){void 0!==e[r]&&(t.getCellEx({address:i.encodeAddress(t._number,n.number),row:t._number,col:n.number}).value=e[r])})}},{key:"hasValues",get:function(){return r.some(this._cells,function(e){return e&&e.type!==o.ValueType.Null})}},{key:"cellCount",get:function(){return this._cells.length}},{key:"actualCellCount",get:function(){var e=0;return this.eachCell(function(){e++}),e}},{key:"dimensions",get:function(){var e=0,t=0;
1return this._cells.forEach(function(n){n&&n.type!==o.ValueType.Null&&((!e||e>n.col)&&(e=n.col),t<n.col&&(t=n.col))}),e>0?{min:e,max:t}:null}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(e){this._applyStyle("numFmt",e)}},{key:"font",get:function(){return this.style.font},set:function(e){this._applyStyle("font",e)}},{key:"alignment",get:function(){return this.style.alignment},set:function(e){this._applyStyle("alignment",e)}},{key:"protection",get:function(){return this.style.protection},set:function(e){this._applyStyle("protection",e)}},{key:"border",get:function(){return this.style.border},set:function(e){this._applyStyle("border",e)}},{key:"fill",get:function(){return this.style.fill},set:function(e){this._applyStyle("fill",e)}},{key:"hidden",get:function(){return!!this._hidden},set:function(e){this._hidden=e}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(e){this._outlineLevel=e}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}},{key:"model",get:function(){var e=[],t=0,n=0;return this._cells.forEach(function(r){if(r){var o=r.model;o&&((!t||t>r.col)&&(t=r.col),n<r.col&&(n=r.col),e.push(o))}}),this.height||e.length?{cells:e,number:this.number,min:t,max:n,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null},set:function(e){var t,n=this;if(e.number!==this._number)throw new Error("Invalid row number in model");this._cells=[],e.cells.forEach(function(e){switch(e.type){case a.Types.Merge:break;default:var r;if(e.address)r=i.decodeAddress(e.address);else if(t){var o=t.row,s=t.col+1;r={row:o,col:s,address:i.encodeAddress(o,s),$col$row:"$".concat(i.n2l(s),"$").concat(o)}}t=r,n.getCellEx(r).model=e}}),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();t.exports=s},{"../utils/col-cache":19,"../utils/under-dash":25,"./cell":3,"./enums":7}],12:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}var a=e("../utils/col-cache"),s=function(){function e(t,n,o){r(this,e),this.table=t,this.column=n,this.index=o}return i(e,[{key:"_set",value:function(e,t){this.table.cacheState(),this.column[e]=t}},{key:"name",get:function(){return this.column.name},set:function(e){this._set("name",e)}},{key:"filterButton",get:function(){return this.column.filterButton},set:function(e){this.column.filterButton=e}},{key:"style",get:function(){return this.column.style},set:function(e){this.column.style=e}},{key:"totalsRowLabel",get:function(){return this.column.totalsRowLabel},set:function(e){this._set("totalsRowLabel",e)}},{key:"totalsRowFunction",get:function(){return this.column.totalsRowFunction},set:function(e){this._set("totalsRowFunction",e)}},{key:"totalsRowResult",get:function(){return this.column.totalsRowResult},set:function(e){this._set("totalsRowResult",e)}},{key:"totalsRowFormula",get:function(){return this.column.totalsRowFormula},set:function(e){this._set("totalsRowFormula",e)}}]),e}(),u=function(){function e(t,n){r(this,e),this.worksheet=t,n&&(this.table=n,this.validate(),this.store())}return i(e,[{key:"getFormula",value:function(e){switch(e.totalsRowFunction){case"none":return null;case"average":return"SUBTOTAL(101,".concat(this.table.name,"[").concat(e.name,"])");case"countNums":return"SUBTOTAL(102,".concat(this.table.name,"[").concat(e.name,"])");case"count":return"SUBTOTAL(103,".concat(this.table.name,"[").concat(e.name,"])");case"max":return"SUBTOTAL(104,".concat(this.table.name,"[").concat(e.name,"])");case"min":return"SUBTOTAL(105,".concat(this.table.name,"[").concat(e.name,"])");case"stdDev":return"SUBTOTAL(106,".concat(this.table.name,"[").concat(e.name,"])");case"var":return"SUBTOTAL(107,".concat(this.table.name,"[").concat(e.name,"])");case"sum":return"SUBTOTAL(109,".concat(this.table.name,"[").concat(e.name,"])");
1case"custom":return e.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: ".concat(e.totalsRowFunction))}}},{key:"validate",value:function(){var e=this,t=this.table,n=function(e,t,n){void 0===e[t]&&(e[t]=n)};n(t,"headerRow",!0),n(t,"totalsRow",!1),n(t,"style",{}),n(t.style,"theme","TableStyleMedium2"),n(t.style,"showFirstColumn",!1),n(t.style,"showLastColumn",!1),n(t.style,"showRowStripes",!1),n(t.style,"showColumnStripes",!1);var r=function(e,t){if(!e)throw new Error(t)};r(t.ref,"Table must have ref"),r(t.columns,"Table must have column definitions"),r(t.rows,"Table must have row definitions"),t.tl=a.decodeAddress(t.ref);var o=t.tl,i=o.row,s=o.col;r(i>0,"Table must be on valid row"),r(s>0,"Table must be on valid col");var u=this.width,c=this.tableHeight;t.autoFilterRef=a.encode(i,s,i+this.filterHeight-1,s+u-1),t.tableRef=a.encode(i,s,i+c-1,s+u-1),t.columns.forEach(function(t,o){r(t.name,"Column ".concat(o," must have a name")),0===o?n(t,"totalsRowLabel","Total"):(n(t,"totalsRowFunction","none"),t.totalsRowFormula=e.getFormula(t))})}},{key:"store",value:function(){var e=this,t=function(e,t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})},n=this.worksheet,r=this.table,o=r.tl,i=o.row,a=o.col,s=0;if(r.headerRow){var u=n.getRow(i+s++);r.columns.forEach(function(e,n){var r=e.style,o=e.name,i=u.getCell(a+n);i.value=o,t(i,r)})}if(r.rows.forEach(function(e){var o=n.getRow(i+s++);e.forEach(function(e,n){var i=o.getCell(a+n);i.value=e,t(i,r.columns[n].style)})}),r.totalsRow){var c=n.getRow(i+s++);r.columns.forEach(function(n,r){var o=c.getCell(a+r);if(0===r)o.value=n.totalsRowLabel;else{var i=e.getFormula(n);o.value=i?{formula:n.totalsRowFormula,result:n.totalsRowResult}:null}t(o,n.style)})}}},{key:"load",value:function(e){var t=this,n=this.table,r=n.tl,o=r.row,i=r.col,a=0;if(n.headerRow){var s=e.getRow(o+a++);n.columns.forEach(function(e,t){s.getCell(i+t).value=e.name})}if(n.rows.forEach(function(t){var n=e.getRow(o+a++);t.forEach(function(e,t){n.getCell(i+t).value=e})}),n.totalsRow){var u=e.getRow(o+a++);n.columns.forEach(function(e,n){var r=u.getCell(i+n);0===n?r.value=e.totalsRowLabel:t.getFormula(e)&&(r.value={formula:e.totalsRowFormula,result:e.totalsRowResult})})}}},{key:"cacheState",value:function(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}},{key:"commit",value:function(){if(this._cache){this.validate();var e=a.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(var t=0;t<this._cache.tableHeight;t++)for(var n=this.worksheet.getRow(e.row+t),r=0;r<this._cache.width;r++)n.getCell(e.col+r).value=null;else{for(var o=this.tableHeight;o<this._cache.tableHeight;o++)for(var i=this.worksheet.getRow(e.row+o),s=0;s<this._cache.width;s++)i.getCell(e.col+s).value=null;for(var u=0;u<this.tableHeight;u++)for(var c=this.worksheet.getRow(e.row+u),l=this.width;l<this._cache.width;l++)c.getCell(e.col+l).value=null}this.store()}}},{key:"addRow",value:function(e,t){this.cacheState(),void 0===t?this.table.rows.push(e):this.table.rows.splice(t,0,e)}},{key:"removeRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.rows.splice(e,t)}},{key:"getColumn",value:function(e){return new s(this,this.table.columns[e],e)}},{key:"addColumn",value:function(e,t,n){this.cacheState(),void 0===n?(this.table.columns.push(e),this.table.rows.forEach(function(e,n){e.push(t[n])})):(this.table.columns.splice(n,0,e),this.table.rows.forEach(function(e,r){e.splice(n,0,t[r])}))}},{key:"removeColumns",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.columns.splice(e,t),this.table.rows.forEach(function(n){n.splice(e,t)})}},{key:"_assign",value:function(e,t,n){this.cacheState(),e[t]=n}},{key:"width",get:function(){return this.table.columns.length}},{key:"height",get:function(){return this.table.rows.length}},{key:"filterHeight",get:function(){return this.height+(this.table.headerRow?1:0)}},{key:"tableHeight",get:function(){return this.filterHeight+(this.table.totalsRow?1:0)}},{key:"model",get:function(){return this.table},set:function(e){this.table=e}},{key:"ref",get:function(){return this.table.ref},set:function(e){this._assign(this.table,"ref",e)}},{key:"name",get:function(){return this.table.name},set:function(e){this.table.name=e}},{key:"displayName",get:function(){return this.table.displyName||this.table.name}},{key:"displayNamename",set:function(e){this.table.displayName=e}},{key:"headerRow",get:function(){return this.table.headerRow},set:function(e){this._assign(this.table,"headerRow",e)}},{key:"totalsRow",get:function(){return this.table.totalsRow},set:function(e){this._assign(this.table,"totalsRow",e)}},{key:"theme",get:function(){return this.table.style.name},set:function(e){this.table.style.name=e}},{key:"showFirstColumn",get:function(){return this.table.style.showFirstColumn},set:function(e){this.table.style.showFirstColumn=e}},{key:"showLastColumn",get:function(){return this.table.style.showLastColumn},set:function(e){this.table.style.showLastColumn=e}},{key:"showRowStripes",get:function(){return this.table.style.showRowStripes},set:function(e){this.table.style.showRowStripes=e}},{key:"showColumnStripes",get:function(){return this.table.style.showColumnStripes},set:function(e){this.table.style.showColumnStripes=e}}]),e}();t.exports=u},{"../utils/col-cache":19}],13:[function(e,t,n){"use strict";var r=e("./worksheet"),o=e("./defined-names"),i=e("../xlsx/xlsx"),a=e("../csv/csv"),s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.created=new Date,this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.views=[],this.media=[],this._definedNames=new o}var t;return(t=[{key:"addWorksheet",value:function(e,t){var n=this.nextId;if(e&&e.length>31&&console.warn("Worksheet name ".concat(e," exceeds 31 chars. This will be truncated")),/[*?:/\\[\]]/.test(e))throw new Error("Worksheet name ".concat(e," cannot include any of the following characters: * ? : \\ / [ ]"));if(/(^')|('$)/.test(e))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: ".concat(e));if(e=(e||"sheet".concat(n)).substring(0,31),this._worksheets.find(function(t){return t&&t.name.toLowerCase()===e.toLowerCase()}))throw new Error("Worksheet name already exists: ".concat(e));t&&("string"==typeof t?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),t={properties:{tabColor:{argb:t}}}):(t.argb||t.theme||t.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),t={properties:{tabColor:t}}));var o=this._worksheets.reduce(function(e,t){return(t&&t.orderNo)>e?t.orderNo:e},0),i=Object.assign({},t,{id:n,name:e,orderNo:o+1,workbook:this}),a=new r(i);return this._worksheets[n]=a,a}},{key:"removeWorksheetEx",value:function(e){delete this._worksheets[e.id]}},{key:"removeWorksheet",value:function(e){var t=this.getWorksheet(e);t&&t.destroy()}},{key:"getWorksheet",value:function(e){return void 0===e?this._worksheets.find(Boolean):"number"==typeof e?this._worksheets[e]:"string"==typeof e?this._worksheets.find(function(t){return t&&t.name===e}):void 0}}
1,{key:"eachSheet",value:function(e){this.worksheets.forEach(function(t){e(t,t.id)})}},{key:"clearThemes",value:function(){this._themes=void 0}},{key:"addImage",value:function(e){var t=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),t}},{key:"getImage",value:function(e){return this.media[e]}},{key:"xlsx",get:function(){return this._xlsx||(this._xlsx=new i(this)),this._xlsx}},{key:"csv",get:function(){return this._csv||(this._csv=new a(this)),this._csv}},{key:"nextId",get:function(){for(var e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}},{key:"worksheets",get:function(){return this._worksheets.slice(1).sort(function(e,t){return e.orderNo-t.orderNo}).filter(Boolean)}},{key:"definedNames",get:function(){return this._definedNames}},{key:"model",get:function(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(function(e){return e.model}),sheets:this.worksheets.map(function(e){return e.model}).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}},set:function(e){var t=this;this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach(function(n){var o=n.id,i=n.name,a=n.state,s=e.sheets&&e.sheets.findIndex(function(e){return e.id===o});(t._worksheets[o]=new r({id:o,name:i,orderNo:s,state:a,workbook:t})).model=n}),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();t.exports=s},{"../csv/csv":1,"../xlsx/xlsx":141,"./defined-names":6,"./worksheet":14}],14:[function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u=e("../utils/under-dash"),c=e("../utils/col-cache"),l=e("./range"),f=e("./row"),h=e("./column"),d=e("./enums"),p=e("./image"),m=e("./table"),y=e("./data-validations"),v=e("../utils/encryptor"),g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=(t=t||{}).id,this.orderNo=t.orderNo,this.name=t.name||"Sheet".concat(this.id
vendor: 10,471 bytes, line 1
1),this.state=t.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this._workbook=t.workbook,this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},t.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!t.pageSetup||!t.pageSetup.fitToWidth&&!t.pageSetup.fitToHeight||t.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},t.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},t.headerFooter),this.dataValidations=new y,this.views=t.views||[],this.autoFilter=t.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}var t;return(t=[{key:"destroy",value:function(){this._workbook.removeWorksheetEx(this)}},{key:"getColumnKey",value:function(e){return this._keys[e]}},{key:"setColumnKey",value:function(e,t){this._keys[e]=t}},{key:"deleteColumnKey",value:function(e){delete this._keys[e]}},{key:"eachColumnKey",value:function(e){u.each(this._keys,e)}},{key:"getColumn",value:function(e){if("string"==typeof e){var t=this._keys[e];if(t)return t;e=c.l2n(e)}if(this._columns||(this._columns=[]),e>this._columns.length)for(var n=this._columns.length+1;n<=e;)this._columns.push(new h(this,n++));return this._columns[e-1]}},{key:"spliceColumns",value:function(e,t){for(var n=this,r=this._rows.length,o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];if(i.length>0)for(var s=function(r){var o=[e,t];i.forEach(function(e){o.push(e[r]||null)});var a=n.getRow(r+1);a.splice.apply(a,o)},u=0;u<r;u++)s(u);else this._rows.forEach(function(n){n&&n.splice(e,t)});var c=i.length-t,l=e+t,f=this._columns.length;if(c<0)for(var h=e+i.length;h<=f;h++)this.getColumn(h).defn=this.getColumn(h-c).defn;else if(c>0)for(var d=f;d>=l;d--)this.getColumn(d+c).defn=this.getColumn(d).defn;for(var p=e;p<e+i.length;p++)this.getColumn(p).defn=null;this.workbook.definedNames.spliceColumns(this.name,e,t,i.length)}},{key:"_commitRow",value:function(){}},{key:"findRow",value:function(e){return this._rows[e-1]}},{key:"findRows",value:function(e,t){return this._rows.slice(e-1,e-1+t)}},{key:"getRow",value:function(e){var t=this._rows[e-1];return t||(t=this._rows[e-1]=new f(this,e)),t}},{key:"getRows",value:function(e,t){if(!(t<1)){for(var n=[],r=e;r<e+t;r++)n.push(this.getRow(r));return n}}},{key:"addRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n",n=this._nextRow,r=this.getRow(n);return r.values=e,this._setStyleOption(n,"i"===t[0]?t:"n"),r}},{key:"addRows",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n",r=[];return e.forEach(function(e){r.push(t.addRow(e,n))}),r}},{key:"insertRow",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";return this.spliceRows(e,0,t),this._setStyleOption(e,n),this.getRow(e)}},{key:"insertRows",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";if(this.spliceRows.apply(this,[e,0].concat(a(t))),"n"!==n)for(var r=0;r<t.length;r++)"o"===n[0]&&void 0!==this.findRow(t.length+e+r)?this._copyStyle(t.length+e+r,e+r,"+"===n[1]):"i"===n[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e+r,"+"===n[1]);return this.getRows(e,t.length)}},{key:"_setStyleOption",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";"o"===t[0]&&void 0!==this.findRow(e+1)?this._copyStyle(e+1,e,"+"===t[1]):"i"===t[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e,"+"===t[1])}},{key:"_copyStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getRow(e),i=this.getRow(t);i.style=Object.freeze(o({},r.style)),r.eachCell({includeEmpty:n},function(e,t){i.getCell(t).style=Object.freeze(o({},e.style))}),i.height=r.height}},{key:"duplicateRow",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=this._rows[e-1],i=new Array(t).fill(o.values);this.spliceRows.apply(this,[e+1,r?0:t].concat(a(i)));for(var s=function(t){var r=n._rows[e+t];r.style=o.style,r.height=o.height,o.eachCell({includeEmpty:!0},function(e,t){r.getCell(t).style=e.style})},u=0;u<t;u++)s(u)}},{key:"spliceRows",value:function(e,t){for(var n=this,r=e+t,o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];var s,u,c=i.length,l=c-t,f=this._rows.length;if(l<0)for(s=r;s<=f;s++)(u=this._rows[s-1])?function(){var e=n.getRow(s+l);e.values=u.values,e.style=u.style,e.height=u.height,u.eachCell({includeEmpty:!0},function(t,n){e.getCell(n).style=t.style}),n._rows[s-1]=void 0}():this._rows[s+l-1]=void 0;else if(l>0)for(s=f;s>=r;s--)(u=this._rows[s-1])?function(){var e=n.getRow(s+l);e.values=u.values,e.style=u.style,e.height=u.height,u.eachCell({includeEmpty:!0},function(t,r){if(e.getCell(r).style=t.style,"MergeValue"===t._value.constructor.name){var o=n.getRow(t._row._number+c).getCell(r),i=t._value._master,a=n.getRow(i._row._number+c).getCell(i._column._number);o.merge(a)}})}():this._rows[s+l-1]=void 0;for(s=0;s<c;s++){var h=this.getRow(e+s);h.style={},h.values=i[s]}this.workbook.definedNames.spliceRows(this.name,e,t,c)}},{key:"eachRow",value:function(e,t){if(t||(t=e,e=void 0),e&&e.includeEmpty)for(var n=this._rows.length,r=1;r<=n;r++)t(this.getRow(r),r);else this._rows.forEach(function(e){e&&e.hasValues&&t(e,e.number)})}},{key:"getSheetValues",value:function(){var e=[];return this._rows.forEach(function(t){t&&(e[t.number]=t.values)}),e}},{key:"findCell",value:function(e,t){var n=c.getAddress(e,t),r=this._rows[n.row-1];return r?r.findCell(n.col):void 0}},{key:"getCell",value:function(e,t){var n=c.getAddress(e,t);return this.getRow(n.row).getCellEx(n)}},{key:"mergeCells",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new l(t);this._mergeCellsInternal(r)}},{key:"mergeCellsWithoutStyle",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new l(t);this._mergeCellsInternal(r,!0)}},{key:"_mergeCellsInternal",value:function(e,t){u.each(this._merges,function(t){if(t.intersects(e))throw new Error("Cannot merge already merged cells")});for(var n=this.getCell(e.top,e.left),r=e.top;r<=e.bottom;r++)for(var o=e.left;o<=e.right;o++)(r>e.top||o>e.left)&&this.getCell(r,o).merge(n,t);this._merges[n.address]=e}},{key:"_unMergeMaster",value:function(e){var t=this._merges[e.address];if(t){for(var n=t.top;n<=t.bottom;n++)for(var r=t.left;r<=t.right;r++)this.getCell(n,r).unmerge();delete this._merges[e.address]}}},{key:"unMergeCells",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=new l(t),o=r.top;o<=r.bottom;o++)for(var i=r.left;i<=r.right;i++){var a=this.findCell(o,i);a&&(a.type===d.ValueType.Merge?this._unMergeMaster(a.master):this._merges[a.address]&&this._unMergeMaster(a))}}},{key:"fillFormula",value:function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"shared",i=c.decode(e),a=i.top,s=i.left,u=i.bottom,l=i.right,f=l-s+1,h=c.encodeAddress(a,s),d="shared"===o;r="function"==typeof n?n:Array.isArray(n)?Array.isArray(n[0])?function(e,t){return n[e-a][t-s]}:function(e,t){return n[(e-a)*f+(t-s)]}:function(){};for(var p=!0,m=a;m<=u;m++)for(var y=s;y<=l;y++)p?(this.getCell(m,y).value={shareType:o,formula:t,ref:e,result:r(m,y)},p=!1):this.getCell(m,y).value=d?{sharedFormula:h,result:r(m,y)}:r(m,y)}},{key:"addImage",value:function(e,t){this._media.push(new p(this,{type:"image",imageId:e,range:t}))}},{key:"getImages",value:function(){return this._media.filter(function(e){return"image"===e.type})}},{key:"addBackgroundImage",value:function(e){this._media.push(new p(this,{type:"background",imageId:e}))}},{key:"getBackgroundImageId",value:function(){var e=this._media.find(function(e){return"background"===e.type});return e&&e.imageId}},{key:"protect",value:function(e,t){var n=this;return new Promise(function(r){n.sheetProtection={sheet:!0},t&&"spinCount"in t&&(t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5),e&&(n.sheetProtection.algorithmName="SHA-512",n.sheetProtection.saltValue=v.randomBytes(16).toString("base64"),n.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5,n.sheetProtection.hashValue=v.convertPasswordToHash(e,"SHA512",n.sheetProtection.saltValue,n.sheetProtection.spinCount)),t&&(n.sheetProtection=Object.assign(n.sheetProtection,t),!e&&"spinCount"in t&&delete n.sheetProtection.spinCount),r()})}},{key:"unprotect",value:function(){this.sheetProtection=null}},{key:"addTable",value:function(e){var t=new m(this,e);return this.tables[e.name]=t,t}},{key:"getTable",value:function(e){return this.tables[e]}},{key:"removeTable",value:function(e){delete this.tables[e]}},{key:"getTables",value:function(){return Object.values(this.tables)}},{key:"addConditionalFormatting",value:function(e){this.conditionalFormattings.push(e)}},{key:"removeConditionalFormatting",value:function(e){"number"==typeof e?this.conditionalFormattings.splice(e,1):this.conditionalFormattings=e instanceof Function?this.conditionalFormattings.filter(e):[]}},{key:"_parseRows",value:function(e){var t=this;this._rows=[],e.rows.forEach(function(e){var n=new f(t,e.number);t._rows[n.number-1]=n,n.model=e})}},{key:"_parseMergeCells",value:function(e){var t=this;u.each(e.mergeCells,function(e){t.mergeCellsWithoutStyle(e)})}},{key:"workbook",get:function(){return this._workbook}},{key:"dimensions",get:function(){var e=new l;return this._rows.forEach(function(t){if(t){var n=t.dimensions;n&&e.expand(t.number,n.min,t.number,n.max)}}),e}},{key:"columns",get:function(){return this._columns},set:function(e){var t=this;this._headerRowCount=e.reduce(function(e,t){return Math.max(e,(t.header?1:t.headers&&t.headers.length)||0)},0);var n=1,r=this._columns=[];e.forEach(function(e){var o=new h(t,n++,!1);r.push(o),o.defn=e})}},{key:"lastColumn",get:function(){return this.getColumn(this.columnCount)}},{key:"columnCount",get:function(){var e=0;
1return this.eachRow(function(t){e=Math.max(e,t.cellCount)}),e}},{key:"actualColumnCount",get:function(){var e=[],t=0;return this.eachRow(function(n){n.eachCell(function(n){var r=n.col;e[r]||(e[r]=!0,t++)})}),t}},{key:"_lastRowNumber",get:function(){for(var e=this._rows,t=e.length;t>0&&void 0===e[t-1];)t--;return t}},{key:"_nextRow",get:function(){return this._lastRowNumber+1}},{key:"lastRow",get:function(){if(this._rows.length)return this._rows[this._rows.length-1]}},{key:"rowCount",get:function(){return this._lastRowNumber}},{key:"actualRowCount",get:function(){var e=0;return this.eachRow(function(){e++}),e}},{key:"hasMerges",get:function(){return u.some(this._merges,Boolean)}},{key:"tabColor",get:function(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor},set:function(e){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=e}},{key:"model",get:function(){var e={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(function(e){return e.model}),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(function(e){return e.model}),conditionalFormattings:this.conditionalFormattings};e.cols=h.toModel(this.columns);var t=e.rows=[],n=e.dimensions=new l;return this._rows.forEach(function(e){var r=e&&e.model;r&&(n.expand(r.number,r.min,r.number,r.max),t.push(r))}),e.merges=[],u.each(this._merges,function(t){e.merges.push(t.range)}),e},set:function(e){var t=this;this.name=e.name,this._columns=h.fromModel(this,e.cols),this._parseRows(e),this._parseMergeCells(e),this.dataValidations=new y(e.dataValidations),this.properties=e.properties,this.pageSetup=e.pageSetup,this.headerFooter=e.headerFooter,this.views=e.views,this.autoFilter=e.autoFilter,this._media=e.media.map(function(e){return new p(t,e)}),this.sheetProtection=e.sheetProtection,this.tables=e.tables.reduce(function(e,t){var n=new m;return n.model=t,e[t.name]=n,e},{}),this.conditionalFormattings=e.conditionalFormattings}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();t.exports=g},{"../utils/col-cache":19,"../utils/encryptor":20,"../utils/under-dash":25,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,t,n){"use strict";e("core-js/modules/es.promise"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");var r={Workbook:e("./doc/workbook")},o=e("./doc/enums");Object.keys(o).forEach(function(e){r[e]=o[e]}),t.exports=r},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":316,"core-js/modules/es.array.find-index":315,"core-js/modules/es.array.includes":317,"core-js/modules/es.array.iterator":318,"core-js/modules/es.number.is-nan":319,"core-js/modules/es.object.assign":320,"core-js/modules/es.object.keys":321,"core-js/modules/es.object.values":322,"core-js/modules/es.promise":323,"core-js/modules/es.string.from-code-point":324,"core-js/modules/es.string.includes":325,"core-js/modules/es.symbol":327,"core-js/modules/es.symbol.async-iterator":326,"regenerator-runtime/runtime":492}],16:[function(e,t,n){"use strict";var r="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");n.bufferToString=function(e){return"string"==typeof e?e:r?r.decode(e):e.toString()}},{}],17:[function(e,t,n){"use strict";var r="undefined"==typeof TextEncoder?null:new TextEncoder("utf-8"),o=e("buffer").Buffer;n.stringToBuffer=function(e){return"string"!=typeof e?e:o.from(r?r.encode(e).buffer:e)}},{buffer:216}],18:[function(e,t,n){"use strict";var r=e("./under-dash"),o=e("./col-cache"),i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.template=t,this.sheets={}}var t;return(t=[{key:"addCell",value:function(e){this.addCellEx(o.decodeEx(e))}},{key:"getCell",value:function(e){return this.findCellEx(o.decodeEx(e),!0)}},{key:"findCell",value:function(e){return this.findCellEx(o.decodeEx(e),!1)}},{key:"findCellAt",value:function(e,t,n){var r=this.sheets[e],o=r&&r[t];return o&&o[n]}},{key:"addCellEx",value:function(e){if(e.top)for(var t=e.top;t<=e.bottom;t++)for(var n=e.left;n<=e.right;n++)this.getCellAt(e.sheetName,t,n);else this.findCellEx(e,!0)}},{key:"getCellEx",value:function(e){return this.findCellEx(e,!0)}},{key:"findCellEx",value:function(e,t){var n=this.findSheet(e,t),r=this.findSheetRow(n,e,t);return this.findRowCell(r,e,t)}},{key:"getCellAt",value:function(e,t,n){var r=this.sheets[e]||(this.sheets[e]=[]),i=r[t]||(r[t]=[]);return i[n]||(i[n]={sheetName:e,address:o.n2l(n)+t,row:t,col:n})}},{key:"removeCellEx",value:function(e){var t=this.findSheet(e);if(t){var n=this.findSheetRow(t,e);n&&delete n[e.col]}}}
1,{key:"forEachInSheet",value:function(e,t){var n=this.sheets[e];n&&n.forEach(function(e,n){e&&e.forEach(function(e,r){e&&t(e,n,r)})})}},{key:"forEach",value:function(e){var t=this;r.each(this.sheets,function(n,r){t.forEachInSheet(r,e)})}},{key:"map",value:function(e){var t=[];return this.forEach(function(n){t.push(e(n))}),t}},{key:"findSheet",value:function(e,t){var n=e.sheetName;return this.sheets[n]?this.sheets[n]:t?this.sheets[n]=[]:void 0}},{key:"findSheetRow",value:function(e,t,n){var r=t.row;return e&&e[r]?e[r]:n?e[r]=[]:void 0}},{key:"findRowCell",value:function(e,t,n){var r=t.col;return e&&e[r]?e[r]:n?e[r]=this.template?Object.assign(t,JSON.parse(JSON.stringify(this.template))):t:void 0}},{key:"spliceRows",value:function(e,t,n,r){var o=this.sheets[e];if(o){for(var i=[],a=0;a<r;a++)i.push([]);o.splice.apply(o,[t,n].concat(i))}}},{key:"spliceColumns",value:function(e,t,n,o){var i=this.sheets[e];if(i){for(var a=[],s=0;s<o;s++)a.push(null);r.each(i,function(e){e.splice.apply(e,[t,n].concat(a))})}}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();t.exports=i},{"./col-cache":19,"./under-dash":25}],19:[function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=/^[A-Z]+\d+$/,u={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:function(e){return e<=26?1:e<=676?2:3},_fill:function(e){var t,n,r,o,i,a=1;if(e>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&e>=1){for(;a<=26;)this._n2l[a]=t=this._dictionary[a-1],this._l2n[t]=a,a++;this._l2nFill=1}if(this._l2nFill<2&&e>=2){for(a=27;a<=702;)r=(n=a-27)%26,o=Math.floor(n/26),this._n2l[a]=t=this._dictionary[o]+this._dictionary[r],this._l2n[t]=a,a++;this._l2nFill=2}if(this._l2nFill<3&&e>=3){for(a=703;a<=16384;)r=(n=a-703)%26,o=Math.floor(n/26)%26,i=Math.floor(n/676),this._n2l[a]=t=this._dictionary[i]+this._dictionary[o]+this._dictionary[r],this._l2n[t]=a,a++;this._l2nFill=3}},l2n:function(e){if(this._l2n[e]||this._fill(e.length),!this._l2n[e])throw new Error("Out of bounds. Invalid column letter: ".concat(e));return this._l2n[e]},n2l:function(e){if(e<1||e>16384)throw new Error("".concat(e," is out of bounds. Excel supports columns from 1 to 16384"));return this._n2l[e]||this._fill(this._level(e)),this._n2l[e]},_hash:{},validateAddress:function(e){if(!s.test(e))throw new Error("Invalid Address: ".concat(e));return!0},decodeAddress:function(e){var t=e.length<5&&this._hash[e];if(t)return t;for(var n,r=!1,o="",i=0,a=!1,s="",u=0,c=0;c<e.length;c++)if(n=e.charCodeAt(c),!a&&n>=65&&n<=90)r=!0,o+=e[c],i=26*i+n-64;else if(n>=48&&n<=57)a=!0,s+=e[c],u=10*u+n-48;else if(a&&r&&36!==n)break;if(r){if(i>16384)throw new Error("Out of bounds. Invalid column letter: ".concat(o))}else i=void 0;a||(u=void 0);var l={address:e=o+s,col:i,row:u,$col$row:"$".concat(o,"$").concat(s)};return i<=100&&u<=100&&(this._hash[e]=l,this._hash[l.$col$row]=l),l},getAddress:function(e,t){if(t){var n=this.n2l(t)+e;return this.decodeAddress(n)}return this.decodeAddress(e)},decode:function(e){var t=e.split(":");if(2===t.length){var n=this.decodeAddress(t[0]),r=this.decodeAddress(t[1]),o={top:Math.min(n.row,r.row),left:Math.min(n.col,r.col),bottom:Math.max(n.row,r.row),right:Math.max(n.col,r.col)};return o.tl=this.n2l(o.left)+o.top,o.br=this.n2l(o.right)+o.bottom,o.dimensions="".concat(o.tl,":").concat(o.br),o}return this.decodeAddress(e)},decodeEx:function(e){var t=e.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),n=t[1]||t[2],r=t[3],o=r.split(":");if(o.length>1){var s=this.decodeAddress(o[0]),u=this.decodeAddress(o[1]),c=Math.min(s.row,u.row),l=Math.min(s.col,u.col),f=Math.max(s.row,u.row),h=Math.max(s.col,u.col);return s=this.n2l(l)+c,u=this.n2l(h)+f,{top:c,left:l,bottom:f,right:h,sheetName:n,tl:{address:s,col:l,row:c,$col$row:"$".concat(this.n2l(l),"$").concat(c),sheetName:n},br:{address:u,col:h,row:f,$col$row:"$".concat(this.n2l(h),"$").concat(f),sheetName:n},dimensions:"".concat(s,":").concat(u)}}if(r.startsWith("#"))return n?{sheetName:n,error:r}:{error:r};var d=this.decodeAddress(r);return n?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?i(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({sheetName:n},d):d},encodeAddress:function(e,t){return u.n2l(t)+e},encode:function(){switch(arguments.length){case 2:return u.encodeAddress(arguments[0],arguments[1]);case 4:return"".concat(u.encodeAddress(arguments[0],arguments[1]),":").concat(u.encodeAddress(arguments[2],arguments[3]));default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange:function(e,t){var n=r(e,5),o=n[0],i=n[1],a=n[3],s=n[4],u=r(t,2),c=u[0],l=u[1];return c>=o&&c<=a&&l>=i&&l<=s}};t.exports=u},{}],20:[function(e,t,n){(function(n){"use strict";var r=e("crypto"),o={hash:function(e){for(var t=r.createHash(e),o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return t.update(n.concat(i)),t.digest()},convertPasswordToHash:function(e,t,o,i){if(t=t.toLowerCase(),r.getHashes().indexOf(t)<0)throw new Error("Hash algorithm '".concat(t,"' not supported!"));for(var a=n.from(e,"utf16le"),s=this.hash(t,n.from(o,"base64"),a),u=0;u<i;u++){var c=n.alloc(4);c.writeUInt32LE(u,0),s=this.hash(t,s,c)}return s.toString("base64")},randomBytes:function(e){return r.randomBytes(e)}};t.exports=o}).call(this,e("buffer").Buffer)},{buffer:216,crypto:335}],21:[function(e,t,n){"use strict";function r(e){return new i(e)}function o(e){var t,n;function r(t,n){try{var a=e[t](n),s=a.value,u=s instanceof i;Promise.resolve(u?s.wrapped:s).then(function(e){u?r("return"===t?"return":"next",e):o(a.done?"return":"normal",e)},function(e){r("throw",e)})}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise(function(i,a){var s={key:e,arg:o,resolve:i,reject:a,next:null};n?n=n.next=s:(t=n=s,r(e,o))})},"function"!=typeof e.return&&(this.return=void 0)}function i(e){this.wrapped=e}function a(e){var t;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(t=e[Symbol.asyncIterator]))return t.call(e);if(Symbol.iterator&&null!=(t=e[Symbol.iterator]))return t.call(e)}throw new TypeError("Object is not async iterable")}"function"==typeof Symbol&&Symbol.asyncIterator&&(o.prototype[Symbol.asyncIterator]=function(){return this}),o.prototype.next=function(e){return this._invoke("next",e)},o.prototype.throw=function(e){return this._invoke("throw",e)},o.prototype.return=function(e){return this._invoke("return",e)};var s=e("saxes").SaxesParser,u=e("readable-stream").PassThrough,c=e("./browser-buffer-decode").bufferToString;t.exports=function(){var e,t=(e=regeneratorRuntime.mark(function e(t){var n,o,i,l,f,h,d,p,m;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.pipe&&!t[Symbol.asyncIterator]&&(t=t.pipe(new u)),(n=new s).on("error",function(e){o=e}),i=[],n.on("opentag",function(e){return i.push({eventType:"opentag",value:e})}),n.on("text",function(e){return i.push({eventType:"text",value:e})}),n.on("closetag",function(e){return i.push({eventType:"closetag",value:e})}),l=!0,f=!1,e.prev=9,d=a(t);case 11:return e.next=13,r(d.next());case 13:return l=(p=e.sent).done,e.next=17,r(p.value);case 17:if(m=e.sent,l){e.next=29;break}if(n.write(c(m)),!o){e.next=23;break}throw o;case 23:return e.next=25,i;case 25:i=[];case 26:l=!0,e.next=11;break;case 29:e.next=35;break;case 31:e.prev=31,e.t0=e.catch(9),f=!0,h=e.t0;case 35:if(e.prev=35,e.prev=36,l||null==d.return){e.next=40;break}return e.next=40,r(d.return());case 40:if(e.prev=40,!f){e.next=43;break}throw h;case 43:return e.finish(40);case 44:return e.finish(35);case 45:case"end":return e.stop()}},e,null,[[9,31,35,45],[36,,40,44]])}),function(){return new o(e.apply(this,arguments))});return function(e){return t.apply(this,arguments)}}()},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],22:[function(e,t,n){"use strict";var r=e("./col-cache"),o=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,i=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;t.exports={slideFormula:function(e,t,n){var a=r.decode(t),s=r.decode(n);return e.replace(o,function(e,t,n,o,u){if(u)return e;var c=i.exec(o);if(c){var l=c[1],f=c[2].toUpperCase(),h=c[3],d=c[4];if(f.length>3||3===f.length&&f>"XFD")return e;var p=r.l2n(f),m=parseInt(d,10);return l||(p+=s.col-a.col),h||(m+=s.row-a.row),(t||"")+(l||"")+r.n2l(p)+(h||"")+m}return e})}}},{"./col-cache":19}],23:[function(e,t,n){(function(n,r){"use strict";function o(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,u,"next",e)}function u(e){o(a,r,i,s,u,"throw",e)}s(void 0)})}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}var c=e("readable-stream"),l=e("./utils"),f=e("./string-buf"),h=function(){function e(t,n){a(this,e),this._data=t,this._encoding=n}
1return u(e,[{key:"copy",value:function(e,t,n,r){return this.toBuffer().copy(e,t,n,r)}},{key:"toBuffer",value:function(){return this._buffer||(this._buffer=r.from(this._data,this._encoding)),this._buffer}},{key:"length",get:function(){return this.toBuffer().length}}]),e}(),d=function(){function e(t){a(this,e),this._data=t}return u(e,[{key:"copy",value:function(e,t,n,r){return this._data._buf.copy(e,t,n,r)}},{key:"toBuffer",value:function(){return this._data.toBuffer()}},{key:"length",get:function(){return this._data.length}}]),e}(),p=function(){function e(t){a(this,e),this._data=t}return u(e,[{key:"copy",value:function(e,t,n,r){this._data.copy(e,t,n,r)}},{key:"toBuffer",value:function(){return this._data}},{key:"length",get:function(){return this._data.length}}]),e}(),m=function(){function e(t){a(this,e),this.size=t,this.buffer=r.alloc(t),this.iRead=0,this.iWrite=0}return u(e,[{key:"toBuffer",value:function(){if(0===this.iRead&&this.iWrite===this.size)return this.buffer;var e=r.alloc(this.iWrite-this.iRead);return this.buffer.copy(e,0,this.iRead,this.iWrite),e}},{key:"read",value:function(e){var t;return 0===e?null:void 0===e||e>=this.length?(t=this.toBuffer(),this.iRead=this.iWrite,t):(t=r.alloc(e),this.buffer.copy(t,0,this.iRead,e),this.iRead+=e,t)}},{key:"write",value:function(e,t,n){var r=Math.min(n,this.size-this.iWrite);return e.copy(this.buffer,this.iWrite,t,t+r),this.iWrite+=r,r}},{key:"length",get:function(){return this.iWrite-this.iRead}},{key:"eod",get:function(){return this.iRead===this.iWrite}},{key:"full",get:function(){return this.iWrite===this.size}}]),e}(),y=function(e){this.bufSize=(e=e||{}).bufSize||1048576,this.buffers=[],this.batch=e.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};l.inherits(y,c.Duplex,{toBuffer:function(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return r.concat(this.buffers.map(function(e){return e.toBuffer()}))}},_getWritableBuffer:function(){if(this.buffers.length){var e=this.buffers[this.buffers.length-1];if(!e.full)return e}var t=new m(this.bufSize);return this.buffers.push(t),t},_pipe:function(e){var t=this;return i(regeneratorRuntime.mark(function n(){var r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=function(t){return new Promise(function(n){t.write(e.toBuffer(),function(){n()})})},n.next=3,Promise.all(t.pipes.map(r));case 3:case"end":return n.stop()}},n)}))()},_writeToBuffers:function(e){for(var t=0,n=e.length;t<n;)t+=this._getWritableBuffer().write(e,t,n-t)},write:function(e,t,o){var a=this;return i(regeneratorRuntime.mark(function i(){var s;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(t instanceof Function&&(o=t,t="utf8"),o=o||l.nop,!(e instanceof f)){i.next=6;break}s=new d(e),i.next=15;break;case 6:if(!(e instanceof r)){i.next=10;break}s=new p(e),i.next=15;break;case 10:if(!("string"==typeof e||e instanceof String||e instanceof ArrayBuffer)){i.next=14;break}s=new h(e,t),i.next=15;break;case 14:throw new Error("Chunk must be one of type String, Buffer or StringBuf.");case 15:if(!a.pipes.length){i.next=31;break}if(!a.batch){i.next=21;break}for(a._writeToBuffers(s);!a.corked&&a.buffers.length>1;)a._pipe(a.buffers.shift());i.next=29;break;case 21:if(a.corked){i.next=27;break}return i.next=24,a._pipe(s);case 24:o(),i.next=29;break;case 27:a._writeToBuffers(s),n.nextTick(o);case 29:i.next=34;break;case 31:a.paused||a.emit("data",s.toBuffer()),a._writeToBuffers(s),a.emit("readable");case 34:return i.abrupt("return",!0);case 35:case"end":return i.stop()}},i)}))()},cork:function(){this.corked=!0},_flush:function(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork:function(){this.corked=!1,this._flush()},end:function(e,t,n){var r=this,o=function(e){e?n(e):(r._flush(),r.pipes.forEach(function(e){e.end()}),r.emit("finish"))};e?this.write(e,t,o):o()},read:function(e){var t;if(e){for(t=[];e&&this.buffers.length&&!this.buffers[0].eod;){var n=this.buffers[0],o=n.read(e);e-=o.length,t.push(o),n.eod&&n.full&&this.buffers.shift()}return r.concat(t)}return t=this.buffers.map(function(e){return e.toBuffer()}
1).filter(Boolean),this.buffers=[],r.concat(t)},setEncoding:function(e){this.encoding=e},pause:function(){this.paused=!0},resume:function(){this.paused=!1},isPaused:function(){return!!this.paused},pipe:function(e){this.pipes.push(e),!this.paused&&this.buffers.length&&this.end()},unpipe:function(e){this.pipes=this.pipes.filter(function(t){return t!==e})},unshift:function(){throw new Error("Not Implemented")},wrap:function(){throw new Error("Not Implemented")}}),t.exports=y}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":24,"./utils":26,_process:467,buffer:216,"readable-stream":491}],24:[function(e,t,n){(function(e){"use strict";var n=function(){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._buf=e.alloc(n&&n.size||16384),this._encoding=n&&n.encoding||"utf8",this._inPos=0,this._buffer=void 0}var n;return(n=[{key:"toBuffer",value:function(){return this._buffer||(this._buffer=e.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}},{key:"reset",value:function(e){e=e||0,this._buffer=void 0,this._inPos=e}},{key:"_grow",value:function(t){for(var n=2*this._buf.length;n<t;)n*=2;var r=e.alloc(n);this._buf.copy(r,0),this._buf=r}},{key:"addText",value:function(e){this._buffer=void 0;for(var t=this._inPos+this._buf.write(e,this._inPos,this._encoding);t>=this._buf.length-4;)this._grow(this._inPos+e.length),t=this._inPos+this._buf.write(e,this._inPos,this._encoding);this._inPos=t}},{key:"addStringBuf",value:function(e){e.length&&(this._buffer=void 0,this.length+e.length>this.capacity&&this._grow(this.length+e.length),e._buf.copy(this._buf,this._inPos,0,e.length),this._inPos+=e.length)}},{key:"length",get:function(){return this._inPos}},{key:"capacity",get:function(){return this._buf.length}},{key:"buffer",get:function(){return this._buf}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}();t.exports=n}).call(this,e("buffer").Buffer)},{buffer:216}],25:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=Object.prototype.toString,i=/["&<>]/,a={each:function(e,t){e&&(Array.isArray(e)?e.forEach(t):Object.keys(e).forEach(function(n){t(e[n],n)}))},some:function(e,t){return!!e&&(Array.isArray(e)?e.some(t):Object.keys(e).some(function(n){return t(e[n],n)}))},every:function(e,t){return!e||(Array.isArray(e)?e.every(t):Object.keys(e).every(function(n){return t(e[n],n)}))},map:function(e,t){return e?Array.isArray(e)?e.map(t):Object.keys(e).map(function(n){return t(e[n],n)}):[]},keyBy:function(e,t){return e.reduce(function(e,n){return e[n[t]]=n,e},{})},isEqual:function(e,t){var n=r(e),o=r(t),i=Array.isArray(e),s=Array.isArray(t);if(n!==o)return!1;switch(r(e)){case"object":return i||s?!(!i||!s)&&e.length===t.length&&e.every(function(e,n){return a.isEqual(e,t[n])}):a.every(e,function(e,n){return a.isEqual(e,t[n])});default:return e===t}},escapeHtml:function(e){var t=i.exec(e);if(!t)return e;for(var n="",r="",o=0,a=t.index;a<e.length;a++){switch(e.charAt(a)){case'"':r=""";break;case"&":r="&";break;case"'":r="'";break;case"<":r="<";break;case">":r=">";break;default:continue}o!==a&&(n+=e.substring(o,a)),o=a+1,n+=r}return o!==a?n+e.substring(o,a):n},strcmp:function(e,t){return e<t?-1:e>t?1:0},isUndefined:function(e){return"[object Undefined]"===o.call(e)},isObject:function(e){return"[object Object]"===o.call(e)},deepMerge:function(){var e,t,n,r=arguments[0]||{},o=arguments.length;function i(o,i){e=r[i],n=Array.isArray(o),a.isObject(o)||n?(n?(n=!1,t=e&&Array.isArray(e)?e:[]):t=e&&a.isObject(e)?e:{},r[i]=a.deepMerge(t,o)):a.isUndefined(o)||(r[i]=o)}for(var s=0;s<o;s++)a.each(arguments[s],i);return r}};t.exports=a},{}],26:[function(e,t,n){(function(n,r){"use strict";var o=e("fs"),i=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,a={nop:function(){},promiseImmediate:function(e){return new Promise(function(t){n.setImmediate?r(function(){t(e)}):setTimeout(function(){t(e)},1)})},inherits:function(e,t,n,r){e.super_=t,r||(r=n,n=null),n&&Object.keys(n).forEac
1h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))});var o={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};r&&Object.keys(r).forEach(function(e){o[e]=Object.getOwnPropertyDescriptor(r,e)}),e.prototype=Object.create(t.prototype,o)},dateToExcel:function(e,t){return 25569+e.getTime()/864e5-(t?1462:0)},excelToDate:function(e,t){var n=Math.round(24*(e-25569+(t?1462:0))*3600*1e3);return new Date(n)},parsePath:function(e){var t=e.lastIndexOf("/");return{path:e.substring(0,t),name:e.substring(t+1)}},getRelsPath:function(e){var t=a.parsePath(e);return"".concat(t.path,"/_rels/").concat(t.name,".rels")},xmlEncode:function(e){var t=i.exec(e);if(!t)return e;for(var n="",r="",o=0,a=t.index;a<e.length;a++){var s=e.charCodeAt(a);switch(s){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;case 127:r="";break;default:if(s<=31&&(s<=8||s>=11&&13!==s)){r="";break}continue}o!==a&&(n+=e.substring(o,a)),o=a+1,r&&(n+=r)}return o!==a?n+e.substring(o,a):n},xmlDecode:function(e){return e.replace(/&([a-z]*);/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return e}})},validInt:function(e){var t=parseInt(e,10);return Number.isNaN(t)?0:t},isDateFmt:function(e){return!!e&&null!==(e=(e=e.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)},fs:{exists:function(e){return new Promise(function(t){o.access(e,o.constants.F_OK,function(e){t(!e)})})}},toIsoDateString:function(e){return e.toIsoString().subsstr(0,10)}};t.exports=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{fs:215,timers:521}],27:[function(e,t,n){"use strict";var r=e("./under-dash"),o=e("./utils");function i(e,t,n){e.push(" "),e.push(t),e.push('="'),e.push(o.xmlEncode(n.toString())),e.push('"')}function a(e,t){t&&r.each(t,function(t,n){void 0!==t&&i(e,n,t)})}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._xml=[],this._stack=[],this._rollbacks=[]}var t;return(t=[{key:"openXml",value:function(e){var t=this._xml;t.push("<?xml"),a(t,e),t.push("?>\n")}},{key:"openNode",value:function(e,t){var n=this._xml;this.tos&&this.open&&n.push(">"),this._stack.push(e),n.push("<"),n.push(e),a(n,t),this.leaf=!0,this.open=!0}},{key:"addAttribute",value:function(e,t){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");void 0!==t&&i(this._xml,e,t)}},{key:"addAttributes",value:function(e){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");a(this._xml,e)}},{key:"writeText",value:function(e){var t=this._xml;this.open&&(t.push(">"),this.open=!1),this.leaf=!1,t.push(o.xmlEncode(e.toString()))}},{key:"writeXml",value:function(e){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(e)}},{key:"closeNode",value:function(){var e=this._stack.pop(),t=this._xml;this.leaf?t.push("/>"):(t.push("</"),t.push(e),t.push(">")),this.open=!1,this.leaf=!1}},{key:"leafNode",value:function(e,t,n){this.openNode(e,t),void 0!==n&&this.writeText(n),this.closeNode()}},{key:"closeAll",value:function(){for(;this._stack.length;)this.closeNode()}},{key:"addRollback",value:function(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}},{key:"commit",value:function(){this._rollbacks.pop()}},{key:"rollback",value:function(){var e=this._rollbacks.pop();this._xml.length>e.xml&&this._xml.splice(e.xml,this._xml.length-e.xml),this._stack.length>e.stack&&this._stack.splice(e.stack,this._stack.length-e.stack),this.leaf=e.leaf,this.open=e.open}},{key:"tos",get:function(){return this._stack.length?this._stack[this._stack.length-1]:void 0}},{key:"cursor",get:function(){return this._xml.length}},{key:"xml",get:function(){return this.closeAll(),this._xml.join("")}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();s.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},t.exports=s},{"./under-dash":25,"./utils":26}],28:[function(e,t,n){(function(n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("events"),l=e("jszip"),f=e("./stream-buf"),h=e("./browser-buffer-encode").stringToBuffer,d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(d,e);var t,r,s,u,c=a(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(t=c.call(this)).options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},e),t.zip=new l,t.stream=new f,t}return t=d,(r=[{key:"append",value:function(e,t){t.hasOwnProperty("base64")&&t.base64?this.zip.file(t.name,e,{base64:!0}):(n.browser&&"string"==typeof e&&(e=h(e)),this.zip.file(t.name,e))}},{key:"finalize",value:(s=regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.zip.generateAsync(this.options);case 2:this.stream.end(e.sent),this.emit("finish");case 5:case"end":return e.stop()}},e,this)}),u=function(){var e=this,t=arguments;return new Promise(function(n,r){var i=s.apply(e,t);function a(e){o(i,n,r,a,u,"next",e)}function u(e){o(i,n,r,a,u,"throw",e)}a(void 0)})},function(){return u.apply(this,arguments)})},{key:"read",value:function(e){return this.stream.read(e)}},{key:"setEncoding",value:function(e){return this.stream.setEncoding(e)}},{key:"pause",value:function(){return this.stream.pause()}},{key:"resume",value:function(){return this.stream.resume()}},{key:"isPaused",value:function(){return this.stream.isPaused()}},{key:"pipe",value:function(e,t){return this.stream.pipe(e,t)}},{key:"unpipe",value:function(e){return this.stream.unpipe(e)}},{key:"unshift",value:function(e){return this.stream.unshift(e)}},{key:"wrap",value:function(e){return this.stream.wrap(e)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,r),d}(c.EventEmitter);t.exports={ZipWriter:d}}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":23,_process:467,events:367,jszip:399}],29:[function(e,t,n){"use strict";t.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},28:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'yyyy"\u5e74"m"\u6708"d"\u65e5"',"ja-jp":'yyyy"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":'yyyy"\ub144" mm"\uc6d4" dd"\uc77c"'},32:{"zh-tw":'hh"\u6642"mm"\u5206"',"zh-cn":'h"\u65f6"mm"\u5206"',"ja-jp":'h"\u6642"mm"\u5206"',"ko-kr":'h"\uc2dc" mm"\ubd84"'},33:{"zh-tw":'hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'h"\u65f6"mm"\u5206"ss"\u79d2"',"ja-jp":'h"\u6642"mm"\u5206"ss"\u79d2"',"ko-kr":'h"\uc2dc" mm"\ubd84" ss"\ucd08"'},34:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"',"ja-jp":'yyyy"\u5e74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"ss"\u79d2"',"ja-jp":'m"\u6708"d"\u65e5"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},51:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},52:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":'yyyy"\u5e74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'m"\u6708"d"\u65e5"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},55:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"',"ja-jp":'yyyy"\u5e74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"ss"\u79d2"',"ja-jp":'m"\u6708"d"\u65e5"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},58:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],30:[function(e,t,n){"use strict";
1t.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],31:[function(e,t,n){"use strict";function r(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,u,"next",e)}function u(e){i(a,r,o,s,u,"throw",e)}s(void 0)})}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e){var t;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(t=e[Symbol.asyncIterator]))return t.call(e);if(Symbol.iterator&&null!=(t=e[Symbol.iterator]))return t.call(e)}throw new TypeError("Object is not async iterable")}var c=e("../../utils/parse-sax"),l=e("../../utils/xml-stream"),f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o,i,f;return t=e,n=[{key:"prepare",value:function(){}},{key:"render",value:function(){}},{key:"parseOpen",value:function(e){}},{key:"parseText",value:function(e){}},{key:"parseClose",value:function(e){}},{key:"reconcile",value:function(e,t){}},{key:"reset",value:function(){this.model=null,this.map&&Object.values(this.map).forEach(function(t){t instanceof e?t.reset():t.xform&&t.xform.reset()})}},{key:"mergeModel",value:function(e){this.model=Object.assign(this.model||{},e)}},{key:"parse",value:(f=a(regeneratorRuntime.mark(function e(t){var n,o,i,a,s,c,l,f,h,d,p;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=!0,o=!1,e.prev=2,a=u(t);case 4:return e.next=6,a.next();case 6:return n=(s=e.sent).done,e.next=10,s.value;case 10:if(c=e.sent,n){e.next=42;break}l=r(c),e.prev=14,l.s();case 16:if((f=l.n()).done){e.next=31;break}if(p=(h=f.value).value,"opentag"!==(d=h.eventType)){e.next=22;break}this.parseOpen(p),e.next=29;break;case 22:if("text"!==d){e.next=26;break}this.parseText(p),e.next=29;break;case 26:if("closetag"!==d){e.next=29;break}if(this.parseClose(p.name)){e.next=29;break}return e.abrupt("return",this.model);case 29:e.next=16;break;case 31:e.next=36;break;case 33:e.prev=33,e.t0=e.catch(14),l.e(e.t0);case 36:return e.prev=36,l.f(),e.finish(36);case 39:n=!0,e.next=4;break;case 42:e.next=48;break;case 44:e.prev=44,e.t1=e.catch(2),o=!0,i=e.t1;case 48:if(e.prev=48,e.prev=49,n||null==a.return){e.next=53;break}return e.next=53,a.return();case 53:if(e.prev=53,!o){e.next=56;break}throw i;case 56:return e.finish(53);case 57:return e.finish(48);case 58:return e.abrupt("return",this.model);case 59:case"end":return e.stop()}},e,this,[[2,44,48,58],[14,33,36,39],[49,,53,57]])})),function(e){return f.apply(this,arguments)})},{key:"parseStream",value:(i=a(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.parse(c(t)));case 1:case"end":return e.stop()}},e,this)})),function(e){return i.apply(this,arguments)})},{key:"toXml",value:function(e){var t=new l;return this.render(t,e),t.xml}},{key:"xml",get:function(){return this.toXml(this.model)}}],o=[{key:"toAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(n)return t}else if(n||e!==t)return e.toString()}},{key:"toStringAttribute",value:function(t,n){return e.toAttribute(t,n,arguments.length>2&&void 0!==arguments[2]&&arguments[2])}},{key:"toStringValue",value:function(e,t){return void 0===e?t:e}},{key:"toBoolAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(n)return t}else if(n||e!==t)return e?"1":"0"}},{key:"toBoolValue",value:function(e,t){return void 0===e?t:"1"===e}},{key:"toIntAttribute",value:function(t,n){return e.toAttribute(t,n,arguments.length>2&&void 0!==arguments[2]&&arguments[2])}},{key:"toIntValue",value:function(e,t){return void 0===e?t:parseInt(e,10)}},{key:"toFloatAttribute",value:function(t,n){return e.toAttribute(t,n,arguments.length>2&&void 0!==arguments[2]&&arguments[2])}},{key:"toFloatValue",value:function(e,t){return void 0===e?t:parseFloat(e)}}],n&&s(t.prototype,n),o&&s(t,o),e}();t.exports=f},{"../../utils/parse-sax":21,"../../utils/xml-stream":27}],32:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../base-xform"),l=e("../../../utils/col-cache"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.openNode("definedName",{name:t.name,localSheetId:t.localSheetId}),e.writeText(t.ranges.join(",")),e.closeNode()}},{key:"parseOpen",value:function(e){switch(e.name){case"definedName":return this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}},{key:"parseText",value:function(e){this._parsedText.push(e)}},{key:"parseClose",value:function(){return this.model={name:this._parsedName,ranges:d(this._parsedText.join(""))},void 0!==this._parsedLocalSheetId&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(c);function h(e){try{return l.decodeEx(e),!0}catch(e){return!1}}function d(e){var t=[],n=!1,r="";return e.split(",").forEach(function(e){if(e){var o=(e.match(/'/g)||[]).length;if(o){var i=o%2==0;!n&&i&&h(e)?t.push(e):n&&!i?(n=!1,h(r+e)&&t.push(r+e),r=""):(n=!0,r+="".concat(e,","))}else n?r+="".concat(e,","):h(e)&&t.push(e)}}),t}t.exports=f},{"../../../utils/col-cache":19,"../base-xform":31}],33:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../../utils/utils"),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.leafNode("sheet",{sheetId:t.id,name:t.name,state:t.state,"r:id":t.rId})}},{key:"parseOpen",value:function(e){return"sheet"===e.name&&(this.model={name:c.xmlDecode(e.attributes.name),id:parseInt(e.attributes.sheetId,10),state:e.attributes.state,rId:e.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=l},{"../../../utils/utils":26,"../base-xform":31}],34:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:t.fullCalcOnLoad?1:void 0})}},{key:"parseOpen",value:function(e){return"calcPr"===e.name&&(this.model={},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],35:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.leafNode("workbookPr",{date1904:t.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}},{key:"parseOpen",value:function(e){return"workbookPr"===e.name&&(this.model={date1904:"1"===e.attributes.date1904},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],36:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){var n={xWindow:t.x||0,yWindow:t.y||0,windowWidth:t.width||12e3,windowHeight:t.height||24e3,firstSheet:t.firstSheet,activeTab:t.activeTab};t.visibility&&"visible"!==t.visibility&&(n.visibility=t.visibility),e.leafNode("workbookView",n)}},{key:"parseOpen",value:function(e){if("workbookView"===e.name){var t=this.model={},n=function(e,n,r){var o=void 0!==n?t[e]=parseInt(n,10):r;void 0!==o&&(t[e]=o)};return n("x",e.attributes.xWindow,0),n("y",e.attributes.yWindow,0),n("width",e.attributes.windowWidth,25e3),n("height",e.attributes.windowHeight,1e4),r="visibility",void 0!==(i=void 0!==(o=e.attributes.visibility)?t[r]=o:"visible")&&(t[r]=i),n("activeTab",e.attributes.activeTab,void 0),n("firstSheet",e.attributes.firstSheet,void 0),!0}var r,o,i;return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],37:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../../utils/under-dash"),c=e("../../../utils/col-cache"),l=e("../../../utils/xml-stream"),f=e("../base-xform"),h=e("../static-xform"),d=e("../list-xform"),p=e("./defined-name-xform"),m=e("./sheet-xform"),y=e("./workbook-view-xform"),v=e("./workbook-properties-xform"),g=e("./workbook-calc-properties-xform"),b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={fileVersion:r.STATIC_XFORMS.fileVersion,workbookPr:new v,bookViews:new d({tag:"bookViews",count:!1,childXform:new y}),sheets:new d({tag:"sheets",count:!1,childXform:new m}),definedNames:new d({tag:"definedNames",count:!1,childXform:new p}),calcPr:new g},e}return(t=[{key:"prepare",value:function(e){e.sheets=e.worksheets;var t=[],n=0;
1e.sheets.forEach(function(e){if(e.pageSetup&&e.pageSetup.printArea&&e.pageSetup.printArea.split("&&").forEach(function(r){var o=r.split(":"),i={name:"_xlnm.Print_Area",ranges:["'".concat(e.name,"'!$").concat(o[0],":$").concat(o[1])],localSheetId:n};t.push(i)}),e.pageSetup&&(e.pageSetup.printTitlesRow||e.pageSetup.printTitlesColumn)){var r=[];if(e.pageSetup.printTitlesColumn){var o=e.pageSetup.printTitlesColumn.split(":");r.push("'".concat(e.name,"'!$").concat(o[0],":$").concat(o[1]))}if(e.pageSetup.printTitlesRow){var i=e.pageSetup.printTitlesRow.split(":");r.push("'".concat(e.name,"'!$").concat(i[0],":$").concat(i[1]))}t.push({name:"_xlnm.Print_Titles",ranges:r,localSheetId:n})}n++}),t.length&&(e.definedNames=e.definedNames.concat(t)),(e.media||[]).forEach(function(e,t){e.name=e.type+(t+1)})}},{key:"render",value:function(e,t){e.openXml(l.StdDocAttributes),e.openNode("workbook",r.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(e),this.map.workbookPr.render(e,t.properties),this.map.bookViews.render(e,t.views),this.map.sheets.render(e,t.sheets),this.map.definedNames.render(e,t.definedNames),this.map.calcPr.render(e,t.calcProperties),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"workbook":return!0;default:return this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"workbook":return this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1;default:return!0}}},{key:"reconcile",value:function(e){var t,n=(e.workbookRels||[]).reduce(function(e,t){return e[t.Id]=t,e},{}),r=[],o=0;(e.sheets||[]).forEach(function(i){var a=n[i.rId];a&&(t=e.worksheetHash["xl/".concat(a.Target.replace(/^(\s|\/xl\/)+/,""))])&&(t.name=i.name,t.id=i.id,t.state=i.state,r[o++]=t)});var i=[];u.each(e.definedNames,function(e){if("_xlnm.Print_Area"===e.name){if(t=r[e.localSheetId]){t.pageSetup||(t.pageSetup={});var n=c.decodeEx(e.ranges[0]);t.pageSetup.printArea=t.pageSetup.printArea?"".concat(t.pageSetup.printArea,"&&").concat(n.dimensions):n.dimensions}}else if("_xlnm.Print_Titles"===e.name){if(t=r[e.localSheetId]){t.pageSetup||(t.pageSetup={});var o=e.ranges.join(","),a=/\$/g,s=o.match(/\$\d+:\$\d+/);s&&s.length&&(t.pageSetup.printTitlesRow=s[0].replace(a,""));var u=o.match(/\$[A-Z]+:\$[A-Z]+/);u&&u.length&&(t.pageSetup.printTitlesColumn=u[0].replace(a,""))}}else i.push(e)}),e.definedNames=i,e.media.forEach(function(e,t){e.index=t})}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(f);b.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},b.STATIC_XFORMS={fileVersion:new h({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},t.exports=b},{"../../../utils/col-cache":19,"../../../utils/under-dash":25,"../../../utils/xml-stream":27,"../base-xform":31,"../list-xform":70,"../static-xform":119,"./defined-name-xform":32,"./sheet-xform":33,"./workbook-calc-properties-xform":34,"./workbook-properties-xform":35,"./workbook-view-xform":36}],38:[function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=e("../strings/rich-text-xform"),a=e("../../../utils/utils"),s=e("../base-xform"),u=t.exports=function(e){this.model=e};a.inherits(u,s,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new i),this._richTextXform},render:function(e,t){var n=this;e.openNode("comment",{ref:(t=t||this.model).ref,authorId:0}),e.openNode("text"),t&&t.note&&t.note.texts&&t.note.texts.forEac
1h(function(t){n.richTextXform.render(e,t)}),e.closeNode(),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"comment":return this.model=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({type:"note",note:{texts:[]}},e.attributes),!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){switch(e){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":26,"../base-xform":31,"../strings/rich-text-xform":121}],39:[function(e,t,n){"use strict";var r=e("../../../utils/xml-stream"),o=e("../../../utils/utils"),i=e("../base-xform"),a=e("./comment-xform"),s=t.exports=function(){this.map={comment:new a}};o.inherits(s,i,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render:function(e,t){var n=this;t=t||this.model,e.openXml(r.StdDocAttributes),e.openNode("comments",s.COMMENTS_ATTRIBUTES),e.openNode("authors"),e.leafNode("author",null,"Author"),e.closeNode(),e.openNode("commentList"),t.comments.forEach(function(t){n.map.comment.render(e,t)}),e.closeNode(),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(e),!0;default:return!1}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){switch(e){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":26,"../../../utils/xml-stream":27,"../base-xform":31,"./comment-xform":38}],40:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this))._model=e,t}return(t=[{key:"render",value:function(e,t,n){(t===n[2]||"x:SizeWithCells"===this.tag&&t===n[1])&&e.leafNode(this.tag)}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return this._model&&this._model.tag}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../../base-xform"));t.exports=u},{"../../base-xform":31}],41:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this))._model=e,t}return(t=[{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.text="",!0;default:return!1}}},{key:"parseText",value:function(e){this.text=e}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return this._model&&this._model.tag}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../../base-xform"));t.exports=u},{"../../base-xform":31}],42:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"getAnchorRect",value:function(e){var t=Math.floor(e.left),n=Math.floor(68*(e.left-t)),r=Math.floor(e.top),o=Math.floor(18*(e.top-r)),i=Math.floor(e.right),a=Math.floor(68*(e.right-i)),s=Math.floor(e.bottom);return[t,n,r,o,i,a,s,Math.floor(18*(e.bottom-s))]}},{key:"getDefaultRect",value:function(e){var t=e.col,n=Math.max(e.row-2,0);return[t,6,n,14,t+2,2,n+4,16]}},{key:"render",value:function(e,t){var n=t.anchor?this.getAnchorRect(t.anchor):this.getDefaultRect(t.refAddress);e.leafNode("x:Anchor",null,n.join(", "))}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.text="",!0;default:return!1}}},{key:"parseText",value:function(e){this.text=e}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"x:Anchor"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],43:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../base-xform"),c=e("./vml-anchor-xform"),l=e("./style/vml-protection-xform"),f=e("./style/vml-position-xform"),h=["twoCells","oneCells","absolute"],d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={"x:Anchor":new c,"x:Locked":new l({tag:"x:Locked"}),"x:LockText":new l({tag:"x:LockText"}),"x:SizeWithCells":new f({tag:"x:SizeWithCells"}),"x:MoveWithCells":new f({tag:"x:MoveWithCells"})},e}return(t=[{key:"render",value:function(e,t){var n=t.note,r=n.protection,o=n.editAs;e.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(e,o,h),this.map["x:SizeWithCells"].render(e,o,h),this.map["x:Anchor"].render(e,t),this.map["x:Locked"].render(e,r.locked),e.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(e,r.lockText),e.leafNode("x:Row",null,t.refAddress.row-1),e.leafNode("x:Column",null,t.refAddress.col-1),e.closeNode()}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.normalizeModel(),!1;default:return!0}}},{key:"normalizeModel",value:function(){var e=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),t=Object.keys(e).length;this.model.editAs=h[t],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}},{key:"tag",get:function(){return"x:ClientData"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=d},{"../base-xform":31,"./style/vml-position-xform":40,"./style/vml-protection-xform":41,"./vml-anchor-xform":42}],44:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}
1function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../../utils/xml-stream"),c=e("../base-xform"),l=e("./vml-shape-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={"v:shape":new l},e}return(t=[{key:"render",value:function(e,t){var n=this;e.openXml(u.StdDocAttributes),e.openNode(this.tag,r.DRAWING_ATTRIBUTES),e.openNode("o:shapelayout",{"v:ext":"edit"}),e.leafNode("o:idmap",{"v:ext":"edit",data:1}),e.closeNode(),e.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),e.leafNode("v:stroke",{joinstyle:"miter"}),e.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),e.closeNode(),t.comments.forEach(function(t,r){n.map["v:shape"].render(e,t,r)}),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}},{key:"reconcile",value:function(e,t){var n=this;e.anchors.forEach(function(e){e.br?n.map["xdr:twoCellAnchor"].reconcile(e,t):n.map["xdr:oneCellAnchor"].reconcile(e,t)})}},{key:"tag",get:function(){return"xml"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(c);f.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},t.exports=f},{"../../../utils/xml-stream":27,"../base-xform":31,"./vml-shape-xform":45}],45:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../base-xform"),c=e("./vml-textbox-xform"),l=e("./vml-client-data-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={"v:textbox":new c,"x:ClientData":new l},e}return(t=[{key:"render",value:function(e,t,n){e.openNode("v:shape",r.V_SHAPE_ATTRIBUTES(t,n)),e.leafNode("v:fill",{color2:"infoBackgroun
1d [80]"}),e.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),e.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(e,t),this.map["x:ClientData"].render(e,t),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={margins:{insetmode:e.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}},{key:"tag",get:function(){return"v:shape"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);f.V_SHAPE_ATTRIBUTES=function(e,t){return{id:"_x0000_s".concat(1025+t),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":e.note.margins&&e.note.margins.insetmode}},t.exports=f},{"../base-xform":31,"./vml-client-data-xform":43,"./vml-textbox-xform":46}],46:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"conversionUnit",value:function(e,t,n){return"".concat(parseFloat(e)*t.toFixed(2)).concat(n)}},{key:"reverseConversionUnit",value:function(e){var t=this;return(e||"").split(",").map(function(e){return Number(parseFloat(t.conversionUnit(parseFloat(e),.1,"")).toFixed(2))})}},{key:"render",value:function(e,t){var n=this,r={style:"mso-direction-alt:auto"};if(t&&t.note){var o=(t.note&&t.note.margins).inset;Array.isArray(o)&&(o=o.map(function(e){return n.conversionUnit(e,10,"mm")}).join(",")),o&&(r.inset=o)}e.openNode("v:textbox",r),e.leafNode("div",{style:"text-align:left"}),e.closeNode()}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={inset:this.reverseConversionUnit(e.attributes.inset)},!0;default:return!0}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){switch(e){case this.tag:return!1;default:return!0}}},{key:"tag",get:function(){return"v:textbox"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],47:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"createNewModel",value:function(e){return{}}},{key:"parseOpen",value:function(e){return this.parser=this.parser||this.map[e.name],this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag&&(this.model=this.createNewModel(e),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"onParserClose",value:function(e,t){this.model[e]=t.model}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.onParserClose(e,this.parser),this.parser=void 0),!0):e!==this.tag}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("./base-xform"));t.exports=c},{"./base-xform":31}],48:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.openNode("HeadingPairs"),e.openNode("vt:vector",{size:2,baseType:"variant"}),e.openNode("vt:variant"),e.leafNode("vt:lpstr",void 0,"Worksheets"),e.closeNode(),e.openNode("vt:variant"),e.leafNode("vt:i4",void 0,t.length),e.closeNode(),e.closeNode(),e.closeNode()}},{key:"parseOpen",value:function(e){return"HeadingPairs"===e.name}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return"HeadingPairs"!==e}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],49:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.openNode("TitlesOfParts"),e.openNode("vt:vector",{size:t.length,baseType:"lpstr"}),t.forEach(function(t){e.leafNode("vt:lpstr",void 0,t.name)}),e.closeNode(),e.closeNode()}},{key:"parseOpen",value:function(e){return"TitlesOfParts"===e.name}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return"TitlesOfParts"!==e}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],50:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../../utils/xml-stream"),c=e("../base-xform"),l=e("../simple/string-xform"),f=e("./app-heading-pairs-xform"),h=e("./app-titles-of-parts-xform"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={Company:new l({tag:"Company"}),Manager:new l({tag:"Manager"}),HeadingPairs:new f,TitleOfParts:new h},e}return(t=[{key:"render",value:function(e,t){e.openXml(u.StdDocAttributes),e.openNode("Properties",r.PROPERTY_ATTRIBUTES),e.leafNode("Application",void 0,"Microsoft Excel"),e.leafNode("DocSecurity",void 0,"0"),e.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(e,t.worksheets),this.map.TitleOfParts.render(e,t.worksheets),this.map.Company.render(e,t.company||""),this.map.Manager.render(e,t.manager),e.leafNode("LinksUpToDate",void 0,"false"),e.leafNode("SharedDoc",void 0,"false"),e.leafNode("HyperlinksChanged",void 0,"false"),e.leafNode("AppVersion",void 0,"16.0300"),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"Properties":return!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(c);d.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3,6}/,"")},d.DateAttrs={"xsi:type":"dcterms:W3CDTF"},d.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},t.exports=d},{"../../../utils/xml-stream":27,"../base-xform":31,"../simple/string-xform":118,"./app-heading-pairs-xform":48,"./app-titles-of-parts-xform":49}],51:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../../utils/xml-stream"),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.openXml(c.StdDocAttributes),e.openNode("Types",r.PROPERTY_ATTRIBUTES);var n={};(t.media||[]).forEach(function(t){if("image"===t.type){var r=t.extension;n[r]||(n[r]=!0,e.leafNode("Default",{Extension:r,ContentType:"image/".concat(r)}))}}),e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),t.worksheets.forEach(function(t){var n="/xl/worksheets/sheet".concat(t.id,".xml");e.leafNode("Override",{PartName:n,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),t.sharedStrings&&t.sharedStrings.count&&e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),t.tables&&t.tables.forEach(function(t){e.leafNode("Override",{PartName:"/xl/tables/".concat(t.target),ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),t.drawings&&t.drawings.forEach(function(t){e.leafNode("Override",{PartName:"/xl/drawings/".concat(t.name,".xml"),ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),t.commentRefs&&(e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),t.commentRefs.forEach(function(t){e.leafNode("Override",{PartName:"/xl/".concat(t.commentName,".xml"),ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),e.closeNode()}},{key:"parseOpen",value:function(){return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));l.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},t.exports=l},{"../../../utils/xml-stream":27,"../base-xform":31}],52:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../../utils/xml-stream"),c=e("../base-xform"),l=e("../simple/date-xform"),f=e("../simple/string-xform"),h=e("../simple/integer-xform"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={"dc:creator":new f({tag:"dc:creator"}),"dc:title":new f({tag:"dc:title"}),"dc:subject":new f({tag:"dc:subject"}),"dc:description":new f({tag:"dc:description"}),"dc:identifier":new f({tag:"dc:identifier"}),"dc:language":new f({tag:"dc:language"}),"cp:keywords":new f({tag:"cp:keywords"}),"cp:category":new f({tag:"cp:category"}),"cp:lastModifiedBy":new f({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new l({tag:"cp:lastPrinted",format:r.DateFormat}),"cp:revision":new h({tag:"cp:revision"}),"cp:version":new f({tag:"cp:version"}),"cp:contentStatus":new f({tag:"cp:contentStatus"}),"cp:contentType":new f({tag:"cp:contentType"}),"dcterms:created":new l({tag:"dcterms:created",attrs:r.DateAttrs,format:r.DateFormat}),"dcterms:modified":new l({tag:"dcterms:modified",attrs:r.DateAttrs,format:r.DateFormat})},e}return(t=[{key:"render",value:function(e,t){e.openXml(u.StdDocAttributes),e.openNode("cp:coreProperties",r.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(e,t.creator),this.map["dc:title"].render(e,t.title),this.map["dc:subject"].render(e,t.subject),this.map["dc:description"].render(e,t.description),this.map["dc:identifier"].render(e,t.identifier),this.map["dc:language"].render(e,t.language),this.map["cp:keywords"].render(e,t.keywords),this.map["cp:category"].render(e,t.category),this.map["cp:lastModifiedBy"].render(e,t.lastModifiedBy),this.map["cp:lastPrinted"].render(e,t.lastPrinted),this.map["cp:revision"].render(e,t.revision),this.map["cp:version"].render(e,t.version),this.map["cp:contentStatus"].render(e,t.contentStatus),this.map["cp:contentType"].render(e,t.contentType),this.map["dcterms:created"].render(e,t.created),this.map["dcterms:modified"].render(e,t.modified),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(e)))}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: ".concat(e))}}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(c);d.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3}/,"")},d.DateAttrs={"xsi:type":"dcterms:W3CDTF"},d.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"}
1,t.exports=d},{"../../../utils/xml-stream":27,"../base-xform":31,"../simple/date-xform":116,"../simple/integer-xform":117,"../simple/string-xform":118}],53:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.leafNode("Relationship",t)}},{key:"parseOpen",value:function(e){switch(e.name){case"Relationship":return this.model=e.attributes,!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],54:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../../utils/xml-stream"),c=e("../base-xform"),l=e("./relationship-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={Relationship:new l},e}return(t=[{key:"render",value:function(e,t){var n=this;t=t||this._values,e.openXml(u.StdDocAttributes),e.openNode("Relationships",r.RELATIONSHIPS_ATTRIBUTES),t.forEach(function(t){n.map.Relationship.render(e,t)}),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(e)))}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(e){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: ".concat(e))}}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(c);f.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},t.exports=f},{"../../../utils/xml-stream":27,"../base-xform":31,"./relationship-xform":53}],55:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={range:{editAs:e.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"reconcilePicture",value:function(e,t){if(e&&e.rId){var n=t.rels[e.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(n)return t.media[t.mediaIndex[n[1]]]}}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],56:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../base-xform"),c=e("./blip-xform"),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={"a:blip":new c},e}return(t=[{key:"render",value:function(e,t){e.openNode(this.tag),this.map["a:blip"].render(e,t),e.openNode("a:stretch"),e.leafNode("a:fillRect"),e.closeNode(),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}},{key:"tag",get:function(){return"xdr:blipFill"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=l},{"../base-xform":31,"./blip-xform":57}],57:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":t.rId,cstate:"print"})}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={rId:e.attributes["r:embed"]},!0;default:return!0}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){switch(e){case this.tag:return!1;default:return!0}}},{key:"tag",get:function(){return"a:blip"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],58:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e){e.openNode(this.tag),e.leafNode("a:picLocks",{noChangeAspect:"1"}),e.closeNode()}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:default:return!0}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){switch(e){case this.tag:return!1;default:return!0}}},{key:"tag",get:function(){return"xdr:cNvPicPr"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],59:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../base-xform"),c=e("./hlink-click-xform"),l=e("./ext-lst-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={"a:hlinkClick":new c,"a:extLst":new l},e}return(t=[{key:"render",value:function(e,t){e.openNode(this.tag,{id:t.index,name:"Picture ".concat(t.index)}),this.map["a:hlinkClick"].render(e,t),this.map["a:extLst"].render(e,t),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}},{key:"tag",get:function(){return"xdr:cNvPr"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=f},{"../base-xform":31,"./ext-lst-xform":62,"./hlink-click-xform":64}],60:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../base-xform"),c=e("../simple/integer-xform"),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this)).tag=e.tag,t.map={"xdr:col":new c({tag:"xdr:col",zero:!0}),"xdr:colOff":new c({tag:"xdr:colOff",zero:!0}),"xdr:row":new c({tag:"xdr:row",zero:!0}),"xdr:rowOff":new c({tag:"xdr:rowOff",zero:!0})},t}return(t=[{key:"render",value:function(e,t){e.openNode(this.tag),this.map["xdr:col"].render(e,t.nativeCol),this.map["xdr:colOff"].render(e,t.nativeColOff),this.map["xdr:row"].render(e,t.nativeRow),this.map["xdr:rowOff"].render(e,t.nativeRowOff),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=l},{"../base-xform":31,"../simple/integer-xform":117}],61:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../../utils/col-cache"),c=e("../../../utils/xml-stream"),l=e("../base-xform"),f=e("./two-cell-anchor-xform"),h=e("./one-cell-anchor-xform"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={"xdr:twoCellAnchor":new f,"xdr:oneCellAnchor":new h},e}return(t=[{key:"prepare",value:function(e){var t=this;e.anchors.forEach(function(e,n){e.anchorType=function(e){return("string"==typeof e.range?u.decode(e.range):e.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(e),t.map[e.anchorType].prepare(e,{index:n})})}},{key:"render",value:function(e,t){var n=this;e.openXml(c.StdDocAttributes),e.openNode(this.tag,r.DRAWING_ATTRIBUTES),t.anchors.forEach(function(t){n.map[t.anchorType].render(e,t)}),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}},{key:"reconcile",value:function(e,t){var n=this;e.anchors.forEach(function(e){e.br?n.map["xdr:twoCellAnchor"].reconcile(e,t):n.map["xdr:oneCellAnchor"].reconcile(e,t)})}},{key:"tag",get:function(){return"xdr:wsDr"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(l);d.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},t.exports=d},{"../../../utils/col-cache":19,"../../../utils/xml-stream":27,"../base-xform":31,"./one-cell-anchor-xform":66,"./two-cell-anchor-xform":69}],62:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e){e.openNode(this.tag),e.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),e.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),e.closeNode(),e.closeNode()}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:default:return!0}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){switch(e){case this.tag:return!1;default:return!0}}},{key:"tag",get:function(){return"a:extLst"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],63:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this)).tag=e.tag,t.map={},t}return(t=[{key:"render",value:function(e,t){e.openNode(this.tag);var n=Math.floor(9525*t.width),r=Math.floor(9525*t.height);e.addAttribute("cx",n),e.addAttribute("cy",r),e.closeNode()}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={width:parseInt(e.attributes.cx||"0",10)/9525,height:parseInt(e.attributes.cy||"0",10)/9525},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=u},{"../base-xform":31}],64:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){t.hyperlinks&&t.hyperlinks.rId&&e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":t.hyperlinks.rId,tooltip:t.hyperlinks.tooltip})}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={hyperlinks:{rId:e.attributes["r:id"],tooltip:e.attributes.tooltip}},!0;default:return!0}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"a:hlinkClick"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],65:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../base-xform"),c=e("./c-nv-pr-xform"),l=e("./c-nv-pic-pr-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={"xdr:cNvPr":new c,"xdr:cNvPicPr":new l},e}return(t=[{key:"render",value:function(e,t){e.openNode(this.tag),this.map["xdr:cNvPr"].render(e,t),this.map["xdr:cNvPicPr"].render(e,t),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}},{key:"tag",get:function(){return"xdr:nvPicPr"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=f},{"../base-xform":31,"./c-nv-pic-pr-xform":58,"./c-nv-pr-xform":59}],66:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("./base-cell-anchor-xform"),c=e("../static-xform"),l=e("./cell-position-xform"),f=e("./ext-xform"),h=e("./pic-xform"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={"xdr:from":new l({tag:"xdr:from"}),"xdr:ext":new f({tag:"xdr:ext"}),"xdr:pic":new h,"xdr:clientData":new c({tag:"xdr:clientData"})},e}return(t=[{key:"prepare",value:function(e,t){this.map["xdr:pic"].prepare(e.picture,t)}},{key:"render",value:function(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:ext"].render(e,t.range.ext),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}},{key:"reconcile",value:function(e,t){e.medium=this.reconcilePicture(e.picture,t)}},{key:"tag",get:function(){return"xdr:oneCellAnchor"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=d},{"../static-xform":119,"./base-cell-anchor-xform":55,"./cell-position-xform":60,"./ext-xform":63,"./pic-xform":67}],67:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../base-xform"),c=e("../static-xform"),l=e("./blip-fill-xform"),f=e("./nv-pic-pr-xform"),h=e("./sp-pr"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={"xdr:nvPicPr":new f,"xdr:blipFill":new l,"xdr:spPr":new c(h)},e}return(t=[{key:"prepare",value:function(e,t){e.index=t.index+1}},{key:"render",value:function(e,t){e.openNode(this.tag),this.map["xdr:nvPicPr"].render(e,t),this.map["xdr:blipFill"].render(e,t),this.map["xdr:spPr"].render(e,t),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}},{key:"tag",get:function(){return"xdr:pic"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=d},{"../base-xform":31,"../static-xform":119,"./blip-fill-xform":56,"./nv-pic-pr-xform":65,"./sp-pr":68}],68:[function(e,t,n){"use strict";t.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],69:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("./base-cell-anchor-xform"),c=e("../static-xform"),l=e("./cell-position-xform"),f=e("./pic-xform"),h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={"xdr:from":new l({tag:"xdr:from"}),"xdr:to":new l({tag:"xdr:to"}),"xdr:pic":new f,"xdr:clientData":new c({tag:"xdr:clientData"})},e}return(t=[{key:"prepare",value:function(e,t){this.map["xdr:pic"].prepare(e.picture,t)}},{key:"render",value:function(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:to"].render(e,t.range.br),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}},{key:"reconcile",value:function(e,t){e.medium=this.reconcilePicture(e.picture,t)}},{key:"tag",get:function(){return"xdr:twoCellAnchor"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=h},{"../static-xform":119,"./base-cell-anchor-xform":55,"./cell-position-xform":60,"./pic-xform":67}],70:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this)).tag=e.tag,t.always=!!e.always,t.count=e.count,t.empty=e.empty,t.$count=e.$count||"count",t.$=e.$,t.childXform=e.childXform,t.maxItems=e.maxItems,t}return(t=[{key:"prepare",value:function(e,t){var n=this.childXform;e&&e.forEach(function(e,r){t.index=r,n.prepare(e,t)})}},{key:"render",value:function(e,t){if(this.always||t&&t.length){e.openNode(this.tag,this.$),this.count&&e.addAttribute(this.$count,t&&t.length||0);var n=this.childXform;(t||[]).forEach(function(t,r){n.render(e,t,r)}),e.closeNode()}else this.empty&&e.leafNode(this.tag)}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(e)&&(this.parser=this.childXform,!0)}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser){if(!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error("Max ".concat(this.childXform.tag," count (").concat(this.maxItems,") exceeded"));return!0}return!1}},{key:"reconcile",value:function(e,t){if(e){var n=this.childXform;e.forEach(function(e){n.reconcile(e,t)})}}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("./base-xform"));t.exports=u},{"./base-xform":31}],71:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../../utils/col-cache"),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){if(t)if("string"==typeof t)e.leafNode("autoFilter",{ref:t});else{var n=function(e){return"string"==typeof e?e:c.getAddress(e.row,e.column).address},r=n(t.from),o=n(t.to);r&&o&&e.leafNode("autoFilter",{ref:"".concat(r,":").concat(o)})}}},{key:"parseOpen",value:function(e){"autoFilter"===e.name&&(this.model=e.attributes.ref)}},{key:"tag",get:function(){return"autoFilter"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=l},{"../../../utils/col-cache":19,"../base-xform":31}],72:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?o(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=e("../../../utils/utils"),f=e("../base-xform"),h=e("../../../doc/range"),d=e("../../../doc/enums"),p=e("../strings/rich-text-xform");function m(e){if(null==e)return d.ValueType.Null;if(e instanceof String||"string"==typeof e)return d.ValueType.String;if("number"==typeof e)return d.ValueType.Number;if("boolean"==typeof e)return d.ValueType.Boolean;if(e instanceof Date)return d.ValueType.Date;if(e.text&&e.hyperlink)return d.ValueType.Hyperlink;if(e.formula)return d.ValueType.Formula;if(e.error)return d.ValueType.Error;throw new Error("I could not understand type of value")}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(r,e);var t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).richTextXForm=new p,e}return(t=[{key:"prepare",value:function(e,t){var n=t.styles.addStyleModel(e.style||{},function(e){switch(e.type){case d.ValueType.Formula:return m(e.result);default:return e.type}}(e));switch(n&&(e.styleId=n),e.comment&&t.comments.push(i(i({},e.comment),{},{ref:e.address})),e.type){case d.ValueType.String:case d.ValueType.RichText:t.sharedStrings&&(e.ssId=t.sharedStrings.add(e.value));break;case d.ValueType.Date:t.date1904&&(e.date1904=!0);break;case d.ValueType.Hyperlink:t.sharedStrings&&null!=e.text&&(e.ssId=t.sharedStrings.add(e.text)),t.hyperlinks.push({address:e.address,target:e.hyperlink,tooltip:e.tooltip});break;case d.ValueType.Merge:t.merges.add(e);break;case d.ValueType.Formula:if(t.date1904&&(e.date1904=!0),"shared"===e.shareType&&(e.si=t.siFormulae++),e.formula)t.formulae[e.address]=e;else if(e.sharedFormula){var r=t.formulae[e.sharedFormula];if(!r)throw new Error("Shared Formula master must exist above and or left of clone for cell ".concat(e.address));void 0===r.si?(r.shareType="shared",r.si=t.siFormulae++,r.range=new h(r.address,e.address)):r.range&&r.range.expandToAddress(e.address),e.si=r.si}}}},{key:"renderFormula",value:function(e,t){var n=null;switch(t.shareType){case"shared":n={t:"shared",ref:t.ref||t.range.range,si:t.si};break;case"array":n={t:"array",ref:t.ref};break;default:void 0!==t.si&&(n={t:"shared",si:t.si})}switch(m(t.result)){case d.ValueType.Null:e.leafNode("f",n,t.formula);break;case d.ValueType.String:e.addAttribute("t","str"),e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result);break;case d.ValueType.Number:e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result);break;case d.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result?1:0);break;case d.ValueType.Error:e.addAttribute("t","e"),e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result.error);break;case d.ValueType.Date:e.leafNode("f",n,t.formula),e.leafNode("v",null,l.dateToExcel(t.result,t.date1904));break;default:throw new Error("I could not understand type of value")}}},{key:"render",value:function(e,t){var n=this;
1if(t.type!==d.ValueType.Null||t.styleId){switch(e.openNode("c"),e.addAttribute("r",t.address),t.styleId&&e.addAttribute("s",t.styleId),t.type){case d.ValueType.Null:break;case d.ValueType.Number:e.leafNode("v",null,t.value);break;case d.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("v",null,t.value?"1":"0");break;case d.ValueType.Error:e.addAttribute("t","e"),e.leafNode("v",null,t.value.error);break;case d.ValueType.String:case d.ValueType.RichText:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):t.value&&t.value.richText?(e.addAttribute("t","inlineStr"),e.openNode("is"),t.value.richText.forEach(function(t){n.richTextXForm.render(e,t)}),e.closeNode("is")):(e.addAttribute("t","str"),e.leafNode("v",null,t.value));break;case d.ValueType.Date:e.leafNode("v",null,l.dateToExcel(t.value,t.date1904));break;case d.ValueType.Hyperlink:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):(e.addAttribute("t","str"),e.leafNode("v",null,t.text));break;case d.ValueType.Formula:this.renderFormula(e,t)}e.closeNode()}}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"c":return this.model={address:e.attributes.r},this.t=e.attributes.t,e.attributes.s&&(this.model.styleId=parseInt(e.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=e.attributes.si,this.model.shareType=e.attributes.t,this.model.ref=e.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){if(this.parser)this.parser.parseText(e);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+e:e;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+e:e:this.model.value=this.model.value?this.model.value+e:e}}},{key:"parseClose",value:function(e){switch(e){case"c":var t=this.model;if(t.formula||t.shareType)t.type=d.ValueType.Formula,t.value&&(t.result="str"===this.t?l.xmlDecode(t.value):"b"===this.t?0!==parseInt(t.value,10):"e"===this.t?{error:t.value}:parseFloat(t.value),t.value=void 0);else if(void 0!==t.value)switch(this.t){case"s":t.type=d.ValueType.String,t.value=parseInt(t.value,10);break;case"str":t.type=d.ValueType.String,t.value=l.xmlDecode(t.value);break;case"inlineStr":t.type=d.ValueType.String;break;case"b":t.type=d.ValueType.Boolean,t.value=0!==parseInt(t.value,10);break;case"e":t.type=d.ValueType.Error,t.value={error:t.value};break;default:t.type=d.ValueType.Number,t.value=parseFloat(t.value)}else t.type=t.styleId?d.ValueType.Null:d.ValueType.Merge;return!1;case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(e),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(e),!0)}}},{key:"reconcile",value:function(e,t){var n=e.styleId&&t.styles&&t.styles.getStyleModel(e.styleId);switch(n&&(e.style=n),void 0!==e.styleId&&(e.styleId=void 0),e.type){case d.ValueType.String:"number"==typeof e.value&&t.sharedStrings&&(e.value=t.sharedStrings.getString(e.value)),e.value.richText&&(e.type=d.ValueType.RichText);break;case d.ValueType.Number:n&&l.isDateFmt(n.numFmt)&&(e.type=d.ValueType.Date,e.value=l.excelToDate(e.value,t.date1904));break;case d.ValueType.Formula:void 0!==e.result&&n&&l.isDateFmt(n.numFmt)&&(e.result=l.excelToDate(e.result,t.date1904)),"shared"===e.shareType&&(e.ref?t.formulae[e.si]=e.address:(e.sharedFormula=t.formulae[e.si],delete e.shareType),delete e.si)}var r=t.hyperlinkMap[e.address];r&&(e.type===d.ValueType.Formula?(e.text=e.result,e.result=void 0):(e.text=e.value,e.value=void 0),e.type=d.ValueType.Hyperlink,e.hyperlink=r);var o=t.commentsMap&&t.commentsMap[e.address];o&&(e.comment=o)}},{key:"tag",get:function(){return"c"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(f);t.exports=y},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":26,"../base-xform":31,"../strings/rich-text-xform":121}],73:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../base-xform"),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.leafNode(this.tag,{iconSet:t.iconSet,iconId:t.iconId})}},{key:"parseOpen",value:function(e){var t=e.attributes;this.model={iconSet:t.iconSet,iconId:c.toIntValue(t.iconId)}}},{key:"parseClose",value:function(e){return e!==this.tag}},{key:"tag",get:function(){return"x14:cfIcon"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(c);t.exports=l},{"../../base-xform":31}],74:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("uuid").v4,l=e("../../base-xform"),f=e("../../composite-xform"),h=e("./databar-ext-xform"),d=e("./icon-set-ext-xform"),p={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(u,e);var t,n,r,s=a(u);function u(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(e=s.call(this)).map={"x14:dataBar":e.databarXform=new h,"x14:iconSet":e.iconSetXform=new d},e}return t=u,r=[{key:"isExt",value:function(e){return"dataBar"===e.type?h.isExt(e):!("iconSet"!==e.type||!e.custom&&!p[e.iconSet])}}],(n=[{key:"prepare",value:function(e){u.isExt(e)&&(e.x14Id="{".concat(c(),"}").toUpperCase())}},{key:"render",value:function(e,t){if(u.isExt(t))switch(t.type){case"dataBar":this.renderDataBar(e,t);break;case"iconSet":this.renderIconSet(e,t)}}},{key:"renderDataBar",value:function(e,t){e.openNode(this.tag,{type:"dataBar",id:t.x14Id}),this.databarXform.render(e,t),e.closeNode()}},{key:"renderIconSet",value:function(e,t){e.openNode(this.tag,{type:"iconSet",priority:t.priority,id:t.x14Id||"{".concat(c(),"}")}),this.iconSetXform.render(e,t),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return{type:t.type,x14Id:t.id,priority:l.toIntValue(t.priority)}}},{key:"onParserClose",value:function(e,t){Object.assign(this.model,t.model)}
1},{key:"tag",get:function(){return"x14:cfRule"}}])&&o(t.prototype,n),r&&o(t,r),u}(f);t.exports=m},{"../../base-xform":31,"../../composite-xform":47,"./databar-ext-xform":78,"./icon-set-ext-xform":80,uuid:526}],75:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../composite-xform"),c=e("./f-ext-xform"),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={"xm:f":e.fExtXform=new c},e}return(t=[{key:"render",value:function(e,t){e.openNode(this.tag,{type:t.type}),void 0!==t.value&&this.fExtXform.render(e,t.value),e.closeNode()}},{key:"createNewModel",value:function(e){return{type:e.attributes.type}}},{key:"onParserClose",value:function(e,t){switch(e){case"xm:f":this.model.value=t.model?parseFloat(t.model):0}}},{key:"tag",get:function(){return"x14:cfvo"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=l},{"../../composite-xform":47,"./f-ext-xform":79}],76:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../composite-xform"),c=e("./sqref-ext-xform"),l=e("./cf-rule-ext-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={"xm:sqref":e.sqRef=new c,"x14:cfRule":e.cfRule=new l},e}return(t=[{key:"prepare",value:function(e,t){var n=this;
1e.rules.forEach(function(e){n.cfRule.prepare(e,t)})}},{key:"render",value:function(e,t){var n=this;t.rules.some(l.isExt)&&(e.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),t.rules.filter(l.isExt).forEach(function(t){return n.cfRule.render(e,t)}),this.sqRef.render(e,t.ref),e.closeNode())}},{key:"createNewModel",value:function(){return{rules:[]}}},{key:"onParserClose",value:function(e,t){switch(e){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model)}}},{key:"tag",get:function(){return"x14:conditionalFormatting"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=f},{"../../composite-xform":47,"./cf-rule-ext-xform":74,"./sqref-ext-xform":81}],77:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../composite-xform"),c=e("./cf-rule-ext-xform"),l=e("./conditional-formatting-ext-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={"x14:conditionalFormatting":e.cfXform=new l},e}return(t=[{key:"hasContent",value:function(e){return void 0===e.hasExtContent&&(e.hasExtContent=e.some(function(e){return e.rules.some(c.isExt)})),e.hasExtContent}},{key:"prepare",value:function(e,t){var n=this;e.forEach(function(e){n.cfXform.prepare(e,t)})}},{key:"render",value:function(e,t){var n=this;this.hasContent(t)&&(e.openNode(this.tag),t.forEach(function(t){return n.cfXform.render(e,t)}),e.closeNode())}},{key:"createNewModel",value:function(){return[]}},{key:"onParserClose",value:function(e,t){this.model.push(t.model)}},{key:"tag",get:function(){return"x14:conditionalFormattings"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=f},{"../../composite-xform":47,"./cf-rule-ext-xform":74,"./conditional-formatting-ext-xform":76}],78:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}
1(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=e("../../base-xform"),h=e("../../composite-xform"),d=e("../../style/color-xform"),p=e("./cfvo-ext-xform"),m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(c,e);var t,n,r,i=u(c);function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(e=i.call(this)).map={"x14:cfvo":e.cfvoXform=new p,"x14:borderColor":e.borderColorXform=new d("x14:borderColor"),"x14:negativeBorderColor":e.negativeBorderColorXform=new d("x14:negativeBorderColor"),"x14:negativeFillColor":e.negativeFillColorXform=new d("x14:negativeFillColor"),"x14:axisColor":e.axisColorXform=new d("x14:axisColor")},e}return t=c,r=[{key:"isExt",value:function(e){return!e.gradient}}],(n=[{key:"render",value:function(e,t){var n=this;e.openNode(this.tag,{minLength:f.toIntAttribute(t.minLength,0,!0),maxLength:f.toIntAttribute(t.maxLength,100,!0),border:f.toBoolAttribute(t.border,!1),gradient:f.toBoolAttribute(t.gradient,!0),negativeBarColorSameAsPositive:f.toBoolAttribute(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:f.toBoolAttribute(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:f.toAttribute(t.axisPosition,"auto"),direction:f.toAttribute(t.direction,"leftToRight")}),t.cfvo.forEach(function(t){n.cfvoXform.render(e,t)}),this.borderColorXform.render(e,t.borderColor),this.negativeBorderColorXform.render(e,t.negativeBorderColor),this.negativeFillColorXform.render(e,t.negativeFillColor),this.axisColorXform.render(e,t.axisColor),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return{cfvo:[],minLength:f.toIntValue(t.minLength,0),maxLength:f.toIntValue(t.maxLength,100),border:f.toBoolValue(t.border,!1),gradient:f.toBoolValue(t.gradient,!0),negativeBarColorSameAsPositive:f.toBoolValue(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:f.toBoolValue(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:f.toStringValue(t.axisPosition,"auto"),direction:f.toStringValue(t.direction,"leftToRight")}}},{key:"onParserClose",value:function(e,t){var n=o(e.split(":"),2)[1];switch(n){case"cfvo":this.model.cfvo.push(t.model);break;default:this.model[n]=t.model}}},{key:"tag",get:function(){return"x14:dataBar"}}])&&a(t.prototype,n),r&&a(t,r),c}(h);t.exports=m},{"../../base-xform":31,"../../composite-xform":47,"../../style/color-xform":127,"./cfvo-ext-xform":75}],79:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(e){this.model+=e}},{key:"parseClose",value:function(e){return e!==this.tag}},{key:"tag",get:function(){return"xm:f"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../../base-xform"));t.exports=c},{"../../base-xform":31}],80:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=e("../../base-xform"),f=e("../../composite-xform"),h=e("./cfvo-ext-xform"),d=e("./cf-icon-ext-xform"),p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(r,e);var t,n=s(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={"x14:cfvo":e.cfvoXform=new h,"x14:cfIcon":e.cfIconXform=new d},e}return(t=[{key:"render",value:function(e,t){var n=this;e.openNode(this.tag,{iconSet:l.toStringAttribute(t.iconSet),reverse:l.toBoolAttribute(t.reverse,!1),showValue:l.toBoolAttribute(t.showValue,!0),custom:l.toBoolAttribute(t.icons,!1)}),t.cfvo.forEach(function(t){n.cfvoXform.render(e,t)}),t.icons&&t.icons.forEach(function(t,r){t.iconId=r,n.cfIconXform.render(e,t)}),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return{cfvo:[],iconSet:l.toStringValue(t.iconSet,"3TrafficLights"),reverse:l.toBoolValue(t.reverse,!1),showValue:l.toBoolValue(t.showValue,!0)}}},{key:"onParserClose",value:function(e,t){var n=o(e.split(":"),2)[1];switch(n){case"cfvo":this.model.cfvo.push(t.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(t.model);break;default:this.model[n]=t.model}}},{key:"tag",get:function(){return"x14:iconSet"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(f);t.exports=p},{"../../base-xform":31,"../../composite-xform":47,"./cf-icon-ext-xform":73,"./cfvo-ext-xform":75}],81:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(e){this.model+=e}},{key:"parseClose",value:function(e){return e!==this.tag}},{key:"tag",get:function(){return"xm:sqref"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../../base-xform"));t.exports=c},{"../../base-xform":31}],82:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=e("../../base-xform"),h=e("../../composite-xform"),d=e("../../../../doc/range"),p=e("./databar-xform"),m=e("./ext-lst-ref-xform"),y=e("./formula-xform"),v=e("./color-scale-xform"),g=e("./icon-set-xform"),b={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(a,e);var t,n,r,o=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this)).map={dataBar:e.databarXform=new p,extLst:e.extLstRefXform=new m,formula:e.formulaXform=new y,colorScale:e.colorScaleXform=new v,iconSet:e.iconSetXform=new g},e}return t=a,r=[{key:"isPrimitive",value:function(e){return"iconSet"!==e.type||!e.custom&&!b[e.iconSet]}
vendor: 5,178 bytes, line 1
1}],(n=[{key:"render",value:function(e,t){switch(t.type){case"expression":this.renderExpression(e,t);break;case"cellIs":this.renderCellIs(e,t);break;case"top10":this.renderTop10(e,t);break;case"aboveAverage":this.renderAboveAverage(e,t);break;case"dataBar":this.renderDataBar(e,t);break;case"colorScale":this.renderColorScale(e,t);break;case"iconSet":this.renderIconSet(e,t);break;case"containsText":this.renderText(e,t);break;case"timePeriod":this.renderTimePeriod(e,t)}}},{key:"renderExpression",value:function(e,t){e.openNode(this.tag,{type:"expression",dxfId:t.dxfId,priority:t.priority}),this.formulaXform.render(e,t.formulae[0]),e.closeNode()}},{key:"renderCellIs",value:function(e,t){var n=this;e.openNode(this.tag,{type:"cellIs",dxfId:t.dxfId,priority:t.priority,operator:t.operator}),t.formulae.forEach(function(t){n.formulaXform.render(e,t)}),e.closeNode()}},{key:"renderTop10",value:function(e,t){e.leafNode(this.tag,{type:"top10",dxfId:t.dxfId,priority:t.priority,percent:f.toBoolAttribute(t.percent,!1),bottom:f.toBoolAttribute(t.bottom,!1),rank:f.toIntValue(t.rank,10,!0)})}},{key:"renderAboveAverage",value:function(e,t){e.leafNode(this.tag,{type:"aboveAverage",dxfId:t.dxfId,priority:t.priority,aboveAverage:f.toBoolAttribute(t.aboveAverage,!0)})}},{key:"renderDataBar",value:function(e,t){e.openNode(this.tag,{type:"dataBar",priority:t.priority}),this.databarXform.render(e,t),this.extLstRefXform.render(e,t),e.closeNode()}},{key:"renderColorScale",value:function(e,t){e.openNode(this.tag,{type:"colorScale",priority:t.priority}),this.colorScaleXform.render(e,t),e.closeNode()}},{key:"renderIconSet",value:function(e,t){a.isPrimitive(t)&&(e.openNode(this.tag,{type:"iconSet",priority:t.priority}),this.iconSetXform.render(e,t),e.closeNode())}},{key:"renderText",value:function(e,t){e.openNode(this.tag,{type:t.operator,dxfId:t.dxfId,priority:t.priority,operator:f.toStringAttribute(t.operator,"containsText")});var n=function(e){if(e.formulae&&e.formulae[0])return e.formulae[0];var t=new d(e.ref).tl;switch(e.operator){case"containsText":return'NOT(ISERROR(SEARCH("'.concat(e.text,'",').concat(t,")))");case"containsBlanks":return"LEN(TRIM(".concat(t,"))=0");case"notContainsBlanks":return"LEN(TRIM(".concat(t,"))>0");case"containsErrors":return"ISERROR(".concat(t,")");case"notContainsErrors":return"NOT(ISERROR(".concat(t,"))");default:return}}(t);n&&this.formulaXform.render(e,n),e.closeNode()}},{key:"renderTimePeriod",value:function(e,t){e.openNode(this.tag,{type:"timePeriod",dxfId:t.dxfId,priority:t.priority,timePeriod:t.timePeriod});var n=function(e){if(e.formulae&&e.formulae[0])return e.formulae[0];var t=new d(e.ref).tl;switch(e.timePeriod){case"thisWeek":return"AND(TODAY()-ROUNDDOWN(".concat(t,",0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(").concat(t,",0)-TODAY()<=7-WEEKDAY(TODAY()))");case"lastWeek":return"AND(TODAY()-ROUNDDOWN(".concat(t,",0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(").concat(t,",0)<(WEEKDAY(TODAY())+7))");case"nextWeek":return"AND(ROUNDDOWN(".concat(t,",0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(").concat(t,",0)-TODAY()<(15-WEEKDAY(TODAY())))");case"yesterday":return"FLOOR(".concat(t,",1)=TODAY()-1");case"today":return"FLOOR(".concat(t,",1)=TODAY()");case"tomorrow":return"FLOOR(".concat(t,",1)=TODAY()+1");case"last7Days":return"AND(TODAY()-FLOOR(".concat(t,",1)<=6,FLOOR(").concat(t,",1)<=TODAY())");case"lastMonth":return"AND(MONTH(".concat(t,")=MONTH(EDATE(TODAY(),0-1)),YEAR(").concat(t,")=YEAR(EDATE(TODAY(),0-1)))");case"thisMonth":return"AND(MONTH(".concat(t,")=MONTH(TODAY()),YEAR(").concat(t,")=YEAR(TODAY()))");case"nextMonth":return"AND(MONTH(".concat(t,")=MONTH(EDATE(TODAY(),0+1)),YEAR(").concat(t,")=YEAR(EDATE(TODAY(),0+1)))");default:return}}(t);n&&this.formulaXform.render(e,n),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return i(i({},function(e){var t=e.type,n=e.operator;switch(t){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:t};default:return{type:t,operator:n}}}(t)),{},{dxfId:f.toIntValue(t.dxfId),priority:f.toIntValue(t.priority),timePeriod:t.timePeriod,percent:f.toBoolValue(t.percent),bottom:f.toBoolValue(t.bottom),rank:f.toIntValue(t.rank),aboveAverage:f.toBoolValue(t.aboveAverage)})}},{key:"onParserClose",value:function(e,t){switch(e){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,t.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(t.model)}}},{key:"tag",get:function(){return"cfRule"}}])&&s(t.prototype,n),r&&s(t,r),a}(h);t.exports=w},{"../../../../doc/range":10,"../../base-xform":31,"../../composite-xform":47,"./color-scale-xform":84,"./databar-xform":87,"./ext-lst-ref-xform":88,"./formula-xform":89,"./icon-set-xform":90}],83:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../base-xform"),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.leafNode(this.tag,{type:t.type,val:t.value})}},{key:"parseOpen",value:function(e){this.model={type:e.attributes.type,value:c.toFloatValue(e.attributes.val)}}},{key:"parseClose",value:function(e){return e!==this.tag}},{key:"tag",get:function(){return"cfvo"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(c);t.exports=l},{"../../base-xform":31}],84:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../composite-xform"),c=e("../../style/color-xform"),l=e("./cfvo-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={cfvo:e.cfvoXform=new l,color:e.colorXform=new c},e}return(t=[{key:"render",value:function(e,t){var n=this;e.openNode(this.tag),t.cfvo.forEach(function(t){n.cfvoXform.render(e,t)}),t.color.forEach(function(t){n.colorXform.render(e,t)}),e.closeNode()}},{key:"createNewModel",value:function(e){return{cfvo:[],color:[]}}},{key:"onParserClose",value:function(e,t){this.model[e].push(t.model)}},{key:"tag",get:function(){return"colorScale"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=f},{"../../composite-xform":47,"../../style/color-xform":127,"./cfvo-xform":83}],85:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../composite-xform"),c=e("./cf-rule-xform"),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={cfRule:new c},e}return(t=[{key:"render",value:function(e,t){var n=this;t.rules.some(c.isPrimitive)&&(e.openNode(this.tag,{sqref:t.ref}
1),t.rules.forEach(function(r){c.isPrimitive(r)&&(r.ref=t.ref,n.map.cfRule.render(e,r))}),e.closeNode())}},{key:"createNewModel",value:function(e){return{ref:e.attributes.sqref,rules:[]}}},{key:"onParserClose",value:function(e,t){this.model.rules.push(t.model)}},{key:"tag",get:function(){return"conditionalFormatting"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=l},{"../../composite-xform":47,"./cf-rule-xform":82}],86:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=e("../../base-xform"),f=e("./conditional-formatting-xform"),h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(r,e);var t,n=s(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).cfXform=new f,e}return(t=[{key:"reset",value:function(){this.model=[]}},{key:"prepare",value:function(e,t){var n=e.reduce(function(e,t){return Math.max.apply(Math,[e].concat(o(t.rules.map(function(e){return e.priority||0}))))},1);
1e.forEach(function(e){e.rules.forEach(function(e){e.priority||(e.priority=n++),e.style&&(e.dxfId=t.styles.addDxfStyle(e.style))})})}},{key:"render",value:function(e,t){var n=this;t.forEach(function(t){n.cfXform.render(e,t)})}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return!(!this.parser||!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,1))}},{key:"reconcile",value:function(e,t){e.forEach(function(e){e.rules.forEach(function(e){void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId),delete e.dxfId)})})}},{key:"tag",get:function(){return"conditionalFormatting"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(l);t.exports=h},{"../../base-xform":31,"./conditional-formatting-xform":85}],87:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../composite-xform"),c=e("../../style/color-xform"),l=e("./cfvo-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={cfvo:e.cfvoXform=new l,color:e.colorXform=new c},e}return(t=[{key:"render",value:function(e,t){var n=this;e.openNode(this.tag),t.cfvo.forEach(function(t){n.cfvoXform.render(e,t)}),this.colorXform.render(e,t.color),e.closeNode()}},{key:"createNewModel",value:function(){return{cfvo:[]}}},{key:"onParserClose",value:function(e,t){switch(e){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model}}},{key:"tag",get:function(){return"dataBar"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=f},{"../../composite-xform":47,"../../style/color-xform":127,"./cfvo-xform":83}],88:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=f(e);
1if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=e("../../base-xform"),d=e("../../composite-xform"),p=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return a(n,[{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(e){this.model+=e}},{key:"parseClose",value:function(e){return e!==this.tag}},{key:"tag",get:function(){return"x14:id"}}]),n}(h),m=function(e){s(n,e);var t=c(n);function n(){var e;return o(this,n),(e=t.call(this)).map={"x14:id":e.idXform=new p},e}return a(n,[{key:"render",value:function(e,t){e.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(e,t.x14Id),e.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(e,t){this.model.x14Id=t.model}},{key:"tag",get:function(){return"ext"}}]),n}(d),y=function(e){s(n,e);var t=c(n);function n(){var e;return o(this,n),(e=t.call(this)).map={ext:new m},e}return a(n,[{key:"render",value:function(e,t){e.openNode(this.tag),this.map.ext.render(e,t),e.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(e,t){Object.assign(this.model,t.model)}},{key:"tag",get:function(){return"extLst"}}]),n}(d);t.exports=y},{"../../base-xform":31,"../../composite-xform":47}],89:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(e){this.model+=e}},{key:"parseClose",value:function(e){return e!==this.tag}},{key:"tag",get:function(){return"formula"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../../base-xform"));t.exports=c},{"../../base-xform":31}],90:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../base-xform"),c=e("../../composite-xform"),l=e("./cfvo-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={cfvo:e.cfvoXform=new l},e}return(t=[{key:"render",value:function(e,t){var n=this;e.openNode(this.tag,{iconSet:u.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:u.toBoolAttribute(t.reverse,!1),showValue:u.toBoolAttribute(t.showValue,!0)}),t.cfvo.forEach(function(t){n.cfvoXform.render(e,t)}),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return{iconSet:u.toStringValue(t.iconSet,"3TrafficLights"),reverse:u.toBoolValue(t.reverse),showValue:u.toBoolValue(t.showValue),cfvo:[]}}},{key:"onParserClose",value:function(e,t){this.model[e].push(t.model)}},{key:"tag",get:function(){return"iconSet"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(c);t.exports=f},{"../../base-xform":31,"../../composite-xform":47,"./cfvo-xform":83}],91:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"prepare",value:function(e,t){var n=t.styles.addStyleModel(e.style||{});n&&(e.styleId=n)}},{key:"render",value:function(e,t){e.openNode("col"),e.addAttribute("min",t.min),e.addAttribute("max",t.max),t.width&&e.addAttribute("width",t.width),t.styleId&&e.addAttribute("style",t.styleId),t.hidden&&e.addAttribute("hidden","1"),t.bestFit&&e.addAttribute("bestFit","1"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1"),e.addAttribute("customWidth","1"),e.closeNode()}},{key:"parseOpen",value:function(e){if("col"===e.name){var t=this.model={min:parseInt(e.attributes.min||"0",10),max:parseInt(e.attributes.max||"0",10),width:void 0===e.attributes.width?void 0:parseFloat(e.attributes.width||"0")};return e.attributes.style&&(t.styleId=parseInt(e.attributes.style,10)),!0!==e.attributes.hidden&&"true"!==e.attributes.hidden&&1!==e.attributes.hidden&&"1"!==e.attributes.hidden||(t.hidden=!0),e.attributes.bestFit&&(t.bestFit=!0),e.attributes.outlineLevel&&(t.outlineLevel=parseInt(e.attributes.outlineLevel,10)),e.attributes.collapsed&&(t.collapsed=!0),!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"reconcile",value:function(e,t){e.styleId&&(e.style=t.styles.getStyleModel(e.styleId))}},{key:"tag",get:function(){return"col"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],92:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=e("../../../utils/under-dash"),d=e("../../../utils/utils"),p=e("../../../utils/col-cache"),m=e("../base-xform"),y=e("../../../doc/range");function v(e,t,n,r){var o=t[n];void 0!==o?e[n]=o:void 0!==r&&(e[n]=r)}function g(e,t,n,r){var o=t[n];void 0!==o?e[n]=function(e){switch(e){case"1":case"true":return!0;default:return!1}}(o):void 0!==r&&(e[n]=r)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){var n=function(e){var t=h.map(e,function(e,t){return{address:t,dataValidation:e,marked:!1}}).sort(function(e,t){return h.strcmp(e.address,t.address)}),n=h.keyBy(t,"address"),r=function(t,n,r){for(var o=0;o<n;o++){var i=p.encodeAddress(t.row+o,r);if(!e[i]||!h.isEqual(e[t.address],e[i]))return!1}return!0};return t.map(function(t){if(!t.marked){var o=p.decodeEx(t.address);if(o.dimensions)return n[o.dimensions].marked=!0,l(l({},t.dataValidation),{},{sqref:t.address});for(var i=1,a=p.encodeAddress(o.row+i,o.col);e[a]&&h.isEqual(t.dataValidation,e[a]);)i++,a=p.encodeAddress(o.row+i,o.col);for(var s=1;r(o,i,o.col+s);)s++;for(var u=0;u<i;u++)for(var c=0;c<s;c++)a=p.encodeAddress(o.row+u,o.col+c),n[a].marked=!0;if(i>1||s>1){var f=o.row+(i-1),d=o.col+(s-1);return l(l({},t.dataValidation),{},{sqref:"".concat(t.address,":").concat(p.encodeAddress(f,d))})}return l(l({},t.dataValidation),{},{sqref:t.address})}return null}).filter(Boolean)}(t);n.length&&(e.openNode("dataValidations",{count:n.length}),n.forEach(function(t){e.openNode("dataValidation"),"any"!==t.type&&(e.addAttribute("type",t.type),t.operator&&"list"!==t.type&&"between"!==t.operator&&e.addAttribute("operator",t.operator),t.allowBlank&&e.addAttribute("allowBlank","1")),t.showInputMessage&&e.addAttribute("showInputMessage","1"),t.promptTitle&&e.addAttribute("promptTitle",t.promptTitle),t.prompt&&e.addAttribute("prompt",t.prompt),t.showErrorMessage&&e.addAttribute("showErrorMessage","1"),t.errorStyle&&e.addAttribute("errorStyle",t.errorStyle),t.errorTitle&&e.addAttribute("errorTitle",t.errorTitle),t.error&&e.addAttribute("error",t.error),e.addAttribute("sqref",t.sqref),(t.formulae||[]).forEach(function(n,r){e.openNode("formula".concat(r+1)),e.writeText("date"===t.type?d.dateToExcel(new Date(n)):n),e.closeNode()}),e.closeNode()}),e.closeNode())}},{key:"parseOpen",value:function(e){switch(e.name){case"dataValidations":return this.model={},!0;case"dataValidation":this._address=e.attributes.sqref;var t={type:e.attributes.type||"any",formulae:[]};switch(e.attributes.type&&g(t,e.attributes,"allowBlank"),g(t,e.attributes,"showInputMessage"),g(t,e.attributes,"showErrorMessage"),t.type){case"any":case"list":case"custom"
1:break;default:v(t,e.attributes,"operator","between")}return v(t,e.attributes,"promptTitle"),v(t,e.attributes,"prompt"),v(t,e.attributes,"errorStyle"),v(t,e.attributes,"errorTitle"),v(t,e.attributes,"error"),this._dataValidation=t,!0;case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}},{key:"parseText",value:function(e){this._formula&&this._formula.push(e)}},{key:"parseClose",value:function(e){var t=this;switch(e){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(function(e){e.includes(":")?new y(e).forEachAddress(function(e){t.model[e]=t._dataValidation}):t.model[e]=t._dataValidation}),!0;case"formula1":case"formula2":var n=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":n=parseInt(n,10);break;case"decimal":n=parseFloat(n);break;case"date":n=d.excelToDate(parseFloat(n))}return this._dataValidation.formulae.push(n),this._formula=void 0,!0;default:return!0}}},{key:"tag",get:function(){return"dataValidations"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(m);t.exports=b},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":25,"../../../utils/utils":26,"../base-xform":31}],93:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){t&&e.leafNode("dimension",{ref:t})}},{key:"parseOpen",value:function(e){return"dimension"===e.name&&(this.model=e.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"dimension"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],94:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={rId:e.attributes["r:id"]},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"drawing"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],95:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=f(e);
1if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=e("../composite-xform"),d=e("./cf-ext/conditional-formattings-ext-xform"),p=function(e){s(n,e);var t=c(n);function n(){var e;return o(this,n),(e=t.call(this)).map={"x14:conditionalFormattings":e.conditionalFormattings=new d},e}return a(n,[{key:"hasContent",value:function(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}},{key:"prepare",value:function(e,t){this.conditionalFormattings.prepare(e.conditionalFormattings,t)}},{key:"render",value:function(e,t){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(e,t.conditionalFormattings),e.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(e,t){this.model[e]=t.model}},{key:"tag",get:function(){return"ext"}}]),n}(h),m=function(e){s(n,e);var t=c(n);function n(){var e;return o(this,n),(e=t.call(this)).map={ext:e.ext=new p},e}return a(n,[{key:"prepare",value:function(e,t){this.ext.prepare(e,t)}},{key:"hasContent",value:function(e){return this.ext.hasContent(e)}},{key:"render",value:function(e,t){this.hasContent(t)&&(e.openNode("extLst"),this.ext.render(e,t),e.closeNode())}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(e,t){Object.assign(this.model,t.model)}},{key:"tag",get:function(){return"extLst"}}]),n}(h);t.exports=m},{"../composite-xform":47,"./cf-ext/conditional-formattings-ext-xform":77}],96:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){if(t){e.addRollback();var n=!1;e.openNode("headerFooter"),t.differentFirst&&(e.addAttribute("differentFirst","1"),n=!0),t.differentOddEven&&(e.addAttribute("differentOddEven","1"),n=!0),t.oddHeader&&"string"==typeof t.oddHeader&&(e.leafNode("oddHeader",null,t.oddHeader),n=!0),t.oddFooter&&"string"==typeof t.oddFooter&&(e.leafNode("oddFooter",null,t.oddFooter),n=!0),t.evenHeader&&"string"==typeof t.evenHeader&&(e.leafNode("evenHeader",null,t.evenHeader),n=!0),t.evenFooter&&"string"==typeof t.evenFooter&&(e.leafNode("evenFooter",null,t.evenFooter),n=!0),t.firstHeader&&"string"==typeof t.firstHeader&&(e.leafNode("firstHeader",null,t.firstHeader),n=!0),t.firstFooter&&"string"==typeof t.firstFooter&&(e.leafNode("firstFooter",null,t.firstFooter),n=!0),n?(e.closeNode(),e.commit()):e.rollback()}}},{key:"parseOpen",value:function(e){switch(e.name){case"headerFooter":return this.model={},e.attributes.differentFirst&&(this.model.differentFirst=1===parseInt(e.attributes.differentFirst,0)),e.attributes.differentOddEven&&(this.model.differentOddEven=1===parseInt(e.attributes.differentOddEven,0)),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;
1case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}},{key:"parseText",value:function(e){switch(this.currentNode){case"oddHeader":this.model.oddHeader=e;break;case"oddFooter":this.model.oddFooter=e;break;case"evenHeader":this.model.evenHeader=e;break;case"evenFooter":this.model.evenFooter=e;break;case"firstHeader":this.model.firstHeader=e;break;case"firstFooter":this.model.firstFooter=e}}},{key:"parseClose",value:function(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}},{key:"tag",get:function(){return"headerFooter"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],97:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip})}},{key:"parseOpen",value:function(e){return"hyperlink"===e.name&&(this.model={address:e.attributes.ref,rId:e.attributes["r:id"],tooltip:e.attributes.tooltip},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"hyperlink"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],98:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.leafNode("mergeCell",{ref:t})}},{key:"parseOpen",value:function(e){return"mergeCell"===e.name&&(this.model=e.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"mergeCell"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],99:[function(e,t,n){"use strict";var r=e("../../../utils/under-dash"),o=e("../../../doc/range"),i=e("../../../utils/col-cache"),a=e("../../../doc/enums"),s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.merges={}}var t;return(t=[{key:"add",value:function(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{var t="".concat(e.master,":").concat(e.address);this.merges[e.master]=new o(t)}}},{key:"reconcile",value:function(e,t){r.each(e,function(e){for(var n=i.decode(e),r=n.top;r<=n.bottom;r++)for(var o=t[r-1],s=n.left;s<=n.right;s++){var u=o.cells[s-1];u?u.type===a.ValueType.Merge&&(u.master=n.tl):o.cells[s]={type:a.ValueType.Null,address:i.encodeAddress(r,s)}}})}},{key:"getMasterAddress",value:function(e){var t=this.hash[e];return t&&t.tl}},{key:"mergeCells",get:function(){return r.map(this.merges,function(e){return e.range})}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();t.exports=s},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":25}],100:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../base-xform"),l=function(e){return void 0!==e},f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){return!(!t||!l(t.summaryBelow)&&!l(t.summaryRight)||(e.leafNode(this.tag,{summaryBelow:l(t.summaryBelow)?Number(t.summaryBelow):void 0,summaryRight:l(t.summaryRight)?Number(t.summaryRight):void 0}),0))}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={summaryBelow:l(e.attributes.summaryBelow)?Boolean(Number(e.attributes.summaryBelow)):void 0,summaryRight:l(e.attributes.summaryRight)?Boolean(Number(e.attributes.summaryRight)):void 0},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"outlinePr"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(c);t.exports=f},{"../base-xform":31}],101:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.leafNode("brk",t)}},{key:"parseOpen",value:function(e){return"brk"===e.name&&(this.model=e.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"brk"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],102:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../../utils/under-dash"),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){if(t){var n={left:t.left,right:t.right,top:t.top,bottom:t.bottom,header:t.header,footer:t.footer};c.some(n,function(e){return void 0!==e})&&e.leafNode(this.tag,n)}}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={left:parseFloat(e.attributes.left||.7),right:parseFloat(e.attributes.right||.7),top:parseFloat(e.attributes.top||.75),bottom:parseFloat(e.attributes.bottom||.75),header:parseFloat(e.attributes.header||.3),footer:parseFloat(e.attributes.footer||.3)},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"pageMargins"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=l},{"../../../utils/under-dash":25,"../base-xform":31}],103:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){return!(!t||!t.fitToPage||(e.leafNode(this.tag,{fitToPage:t.fitToPage?"1":void 0}),0))}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={fitToPage:"1"===e.attributes.fitToPage},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"pageSetUpPr"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],104:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../../utils/under-dash");function l(e){return e?"1":void 0}function f(e){switch(e){case"overThenDown":return e;default:return}}function h(e){switch(e){case"atEnd":case"asDisplyed":return e;default:return}}function d(e){switch(e){case"dash":case"blank":case"NA":return e;default:return}}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){if(t){var n={paperSize:t.paperSize,orientation:t.orientation,horizontalDpi:t.horizontalDpi,verticalDpi:t.verticalDpi,pageOrder:f(t.pageOrder),blackAndWhite:l(t.blackAndWhite),draft:l(t.draft),cellComments:h(t.cellComments),errors:d(t.errors),scale:t.scale,fitToWidth:t.fitToWidth,fitToHeight:t.fitToHeight,firstPageNumber:t.firstPageNumber,useFirstPageNumber:l(t.firstPageNumber),usePrinterDefaults:l(t.usePrinterDefaults),copies:t.copies};c.some(n,function(e){return void 0!==e})&&e.leafNode(this.tag,n)}}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={paperSize:(t=e.attributes.paperSize,void 0!==t?parseInt(t,10):void 0),orientation:e.attributes.orientation||"portrait",horizontalDpi:parseInt(e.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(e.attributes.verticalDpi||"4294967295",10),pageOrder:e.attributes.pageOrder||"downThenOver",blackAndWhite:"1"===e.attributes.blackAndWhite,draft:"1"===e.attributes.draft,cellComments:e.attributes.cellComments||"None",errors:e.attributes.errors||"displayed",scale:parseInt(e.attributes.scale||"100",10),fitToWidth:parseInt(e.attributes.fitToWidth||"1",10),fitToHeight:parseInt(e.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(e.attributes.firstPageNumber||"1",10),useFirstPageNumber:"1"===e.attributes.useFirstPageNumber,usePrinterDefaults:"1"===e.attributes.usePrinterDefaults,copies:parseInt(e.attributes.copies||"1",10)},!0;default:return!1}var t}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"pageSetup"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=p},{"../../../utils/under-dash":25,"../base-xform":31}],105:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={rId:e.attributes["r:id"]},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"picture"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],106:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../../utils/under-dash");function l(e){return e?"1":void 0}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){if(t){var n={headings:l(t.showRowColHeaders),gridLines:l(t.showGridLines),horizontalCentered:l(t.horizontalCentered),verticalCentered:l(t.verticalCentered)};c.some(n,function(e){return void 0!==e})&&e.leafNode(this.tag,n)}}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={showRowColHeaders:"1"===e.attributes.headings,showGridLines:"1"===e.attributes.gridLines,horizontalCentered:"1"===e.attributes.horizontalCentered,verticalCentered:"1"===e.attributes.verticalCentered},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"printOptions"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=f},{"../../../utils/under-dash":25,"../base-xform":31}],107:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("./page-breaks-xform"),c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var e={tag:"rowBreaks",count:!0,childXform:new u};return n.call(this,e)}return(t=[{key:"render",value:function(e,t){if(t&&t.length){e.openNode(this.tag,this.$),this.count&&(e.addAttribute(this.$count,t.length),e.addAttribute("manualBreakCount",t.length));var n=this.childXform;t.forEach(function(t){n.render(e,t)}),e.closeNode()}else this.empty&&e.leafNode(this.tag)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../list-xform"));t.exports=c},{"../list-xform":70,"./page-breaks-xform":101}],108:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../base-xform"),c=e("./cell-xform"),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this)).maxItems=e&&e.maxItems,t.map={c:new c},t}return(t=[{key:"prepare",value:function(e,t){var n=t.styles.addStyleModel(e.style);n&&(e.styleId=n);var r=this.map.c;e.cells.forEach(function(e){r.prepare(e,t)})}},{key:"render",value:function(e,t,n){e.openNode("row"),e.addAttribute("r",t.number),t.height&&(e.addAttribute("ht",t.height),e.addAttribute("customHeight","1")),t.hidden&&e.addAttribute("hidden","1"),t.min>0&&t.max>0&&t.min<=t.max&&e.addAttribute("spans","".concat(t.min,":").concat(t.max)),t.styleId&&(e.addAttribute("s",t.styleId),e.addAttribute("customFormat","1")),e.addAttribute("x14ac:dyDescent","0.25"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1");var r=this.map.c;t.cells.forEach(function(t){r.render(e,t,n)}),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if("row"===e.name){this.numRowsSeen+=1;var t=e.attributes.spans?e.attributes.spans.split(":").map(function(e){return parseInt(e,10)}):[void 0,void 0],n=this.model={number:parseInt(e.attributes.r,10),min:t[0],max:t[1],cells:[]};return e.attributes.s&&(n.styleId=parseInt(e.attributes.s,10)),!0!==e.attributes.hidden&&"true"!==e.attributes.hidden&&1!==e.attributes.hidden&&"1"!==e.attributes.hidden||(n.hidden=!0),e.attributes.bestFit&&(n.bestFit=!0),e.attributes.ht&&(n.height=parseFloat(e.attributes.ht)),e.attributes.outlineLevel&&(n.outlineLevel=parseInt(e.attributes.outlineLevel,10)),e.attributes.collapsed&&(n.collapsed=!0),!0}return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error("Max column count (".concat(this.maxItems,") exceeded"));this.parser=void 0}return!0}return!1}},{key:"reconcile",value:function(e,t){e.style=e.styleId?t.styles.getStyleModel(e.styleId):{},void 0!==e.styleId&&(e.styleId=void 0);var n=this.map.c;e.cells.forEach(function(e){n.reconcile(e,t)})}},{key:"tag",get:function(){return"row"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=l},{"../base-xform":31,"./cell-xform":72}],109:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../../utils/under-dash"),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){if(t){var n={defaultRowHeight:t.defaultRowHeight,outlineLevelRow:t.outlineLevelRow,outlineLevelCol:t.outlineLevelCol,"x14ac:dyDescent":t.dyDescent};t.defaultColWidth&&(n.defaultColWidth=t.defaultColWidth),t.defaultRowHeight&&15===t.defaultRowHeight||(n.customHeight="1"),c.some(n,function(e){return void 0!==e})&&e.leafNode("sheetFormatPr",n)}}},{key:"parseOpen",value:function(e){return"sheetFormatPr"===e.name&&(this.model={defaultRowHeight:parseFloat(e.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(e.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(e.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(e.attributes.outlineLevelCol||"0",10)},e.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(e.attributes.defaultColWidth)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"sheetFormatPr"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=l},{"../../../utils/under-dash":25,"../base-xform":31}],110:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../base-xform"),c=e("../style/color-xform"),l=e("./page-setup-properties-xform"),f=e("./outline-properties-xform"),h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={tabColor:new c("tabColor"),pageSetUpPr:new l,outlinePr:new f},e}return(t=[{key:"render",value:function(e,t){if(t){e.addRollback(),e.openNode("sheetPr");var n=!1;n=this.map.tabColor.render(e,t.tabColor)||n,n=this.map.pageSetUpPr.render(e,t.pageSetup)||n,(n=this.map.outlinePr.render(e,t.outlineProperties)||n)?(e.closeNode(),e.commit()):e.rollback()}}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}},{key:"parseText",value:function(e){return!!this.parser&&(this.parser.parseText(e),!0)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}},{key:"tag",get:function(){return"sheetPr"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=h},{"../base-xform":31,"../style/color-xform":127,"./outline-properties-xform":100,"./page-setup-properties-xform":103}],111:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../../utils/under-dash");function l(e,t){return e?t:void 0}function f(e,t){return e===t||void 0}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){if(t){var n={sheet:l(t.sheet,"1"),selectLockedCells:!1===t.selectLockedCells?"1":void 0,selectUnlockedCells:!1===t.selectUnlockedCells?"1":void 0,formatCells:l(t.formatCells,"0"),formatColumns:l(t.formatColumns,"0"),formatRows:l(t.formatRows,"0"),insertColumns:l(t.insertColumns,"0"),insertRows:l(t.insertRows,"0"),insertHyperlinks:l(t.insertHyperlinks,"0"),deleteColumns:l(t.deleteColumns,"0"),deleteRows:l(t.deleteRows,"0"),sort:l(t.sort,"0"),autoFilter:l(t.autoFilter,"0"),pivotTables:l(t.pivotTables,"0")};t.sheet&&(n.algorithmName=t.algorithmName,n.hashValue=t.hashValue,n.saltValue=t.saltValue,n.spinCount=t.spinCount,n.objects=l(!1===t.objects,"1"),n.scenarios=l(!1===t.scenarios,"1")),c.some(n,function(e){return void 0!==e})&&e.leafNode(this.tag,n)}}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={sheet:f(e.attributes.sheet,"1"),objects:"1"!==e.attributes.objects&&void 0,scenarios:"1"!==e.attributes.scenarios&&void 0,selectLockedCells:"1"!==e.attributes.selectLockedCells&&void 0,selectUnlockedCells:"1"!==e.attributes.selectUnlockedCells&&void 0,formatCells:f(e.attributes.formatCells,"0"),formatColumns:f(e.attributes.formatColumns,"0"),formatRows:f(e.attributes.formatRows,"0"),insertColumns:f(e.attributes.insertColumns,"0"),insertRows:f(e.attributes.insertRows,"0"),insertHyperlinks:f(e.attributes.insertHyperlinks,"0"),deleteColumns:f(e.attributes.deleteColumns,"0"),deleteRows:f(e.attributes.deleteRows,"0"),sort:f(e.attributes.sort,"0"),autoFilter:f(e.attributes.autoFilter,"0"),pivotTables:f(e.attributes.pivotTables,"0")},e.attributes.algorithmName&&(this.model.algorithmName=e.attributes.algorithmName,this.model.hashValue=e.attributes.hashValue,this.model.saltValue=e.attributes.saltValue,this.model.spinCount=parseInt(e.attributes.spinCount,10)),!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"sheetProtection"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=h},{"../../../utils/under-dash":25,"../base-xform":31}],112:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../../utils/col-cache"),l=e("../base-xform"),f={frozen:"frozen",frozenSplit:"frozen",split:"split"},h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"prepare",value:function(e){switch(e.state){case"frozen":case"split":break;default:e.state="normal"}}},{key:"render",value:function(e,t){e.openNode("sheetView",{workbookViewId:t.workbookViewId||0});var n,r,o=function(t,n,r){r&&e.addAttribute(t,n)};switch(o("rightToLeft","1",!0===t.rightToLeft),o("tabSelected","1",t.tabSelected),o("showRuler","0",!1===t.showRuler),o("showRowColHeaders","0",!1===t.showRowColHeaders),o("showGridLines","0",!1===t.showGridLines),o("zoomScale",t.zoomScale,t.zoomScale),o("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal),o("view",t.style,t.style),t.state){case"frozen":n=t.topLeftCell||c.getAddress((t.ySplit||0)+1,(t.xSplit||0)+1).address,e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:n,activePane:r=(t.xSplit&&t.ySplit?"bottomRight":t.xSplit&&"topRight")||"bottomLeft",state:"frozen"}),e.leafNode("selection",{pane:r,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":"topLeft"===t.activePane&&(t.activePane=void 0),e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),e.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":t.activeCell&&e.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}e.closeNode()}},{key:"parseOpen",value:function(e){switch(e.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(e.attributes.workbookViewId,10),rightToLeft:"1"===e.attributes.rightToLeft,tabSelected:"1"===e.attributes.tabSelected,showRuler:!("0"===e.attributes.showRuler),showRowColHeaders:!("0"===e.attributes.showRowColHeaders),showGridLines:!("0"===e.attributes.showGridLines),zoomScale:parseInt(e.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(e.attributes.zoomScaleNormal||"100",10),style:e.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(e.attributes.xSplit||"0",10),ySplit:parseInt(e.attributes.ySplit||"0",10),topLeftCell:e.attributes.topLeftCell,activePane:e.attributes.activePane||"topLeft",state:e.attributes.state},!0;case"selection":var t=e.attributes.pane||"topLeft";return this.selections[t]={pane:t,activeCell:e.attributes.activeCell},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){var t,n;switch(e){case"sheetView":return this.sheetView&&this.pane?(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:f[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},"split"===this.model.state&&(t.activePane=this.pane.activePane),(n=this.selections[this.pane.activePane])&&n.activeCell&&(t.activeCell=n.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)):(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},(n=this.selections.topLeft)&&n.activeCell&&(t.activeCell=n.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)),!1;default:return!0}}},{key:"reconcile",value:function(){}},{key:"tag",get:function(){return"sheetView"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(l);t.exports=h},{"../../../utils/col-cache":19,"../base-xform":31}],113:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={rId:e.attributes["r:id"]},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"tablePart"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],114:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../../utils/under-dash"),c=e("../../../utils/col-cache"),l=e("../../../utils/xml-stream"),f=e("../../rel-type"),h=e("./merges"),d=e("../base-xform"),p=e("../list-xform"),m=e("./row-xform"),y=e("./col-xform"),v=e("./dimension-xform"),g=e("./hyperlink-xform"),b=e("./merge-cell-xform"),w=e("./data-validations-xform"),_=e("./sheet-properties-xform"),k=e("./sheet-format-properties-xform"),S=e("./sheet-view-xform"),C=e("./sheet-protection-xform"),E=e("./page-margins-xform"),T=e("./page-setup-xform"),x=e("./print-options-xform"),O=e("./auto-filter-xform"),A=e("./picture-xform"),R=e("./drawing-xform"),I=e("./table-part-xform"),P=e("./row-breaks-xform"),M=e("./header-footer-xform"),N=e("./cf/conditional-formattings-xform"),j=e("./ext-lst-xform"),D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),t=n.call(this);var o=e||{},i=o.maxRows,a=o.maxCols;return t.map={sheetPr:new _,dimension:new v,sheetViews:new p({tag:"sheetViews",count:!1,childXform:new S}),sheetFormatPr:new k,cols:new p({tag:"cols",count:!1,childXform:new y}),sheetData:new p({tag:"sheetData",count:!1,empty:!0,childXform:new m({maxItems:a}),maxItems:i}),autoFilter:new O,mergeCells:new p({tag:"mergeCells",count:!0,childXform:new b}),rowBreaks:new P,hyperlinks:new p({tag:"hyperlinks",count:!1,childXform:new g}),pageMargins:new E,dataValidations:new w,pageSetup:new T,headerFooter:new M,printOptions:new x,picture:new A,drawing:new R,sheetProtection:new C,tableParts:new p({tag:"tableParts",count:!0,childXform:new I}),conditionalFormatting:new N,extLst:new j},t}return(t=[{key:"prepare",value:function(e,t){var n=this;t.merges=new h,e.hyperlinks=t.hyperlinks=[],e.comments=t.comments=[],t.formulae={},t.siFormulae=0,this.map.cols.prepare(e.cols,t),this.map.sheetData.prepare(e.rows,t),this.map.conditionalFormatting.prepare(e.conditionalFormattings,t),e.mergeCells=t.merges.mergeCells;var r=e.rels=[];function o(e){return"rId".concat(e.length+1)}if(e.hyperlinks.forEach(function(e){var t=o(r);e.rId=t,r.push({Id:t,Type:f.Hyperlink,Target:e.target,TargetMode:"External"})}),e.comments.length>0){var i={Id:o(r),Type:f.Comments,Target:"../comments".concat(e.id,".xml")};r.push(i);var a={Id:o(r),Type:f.VmlDrawing,Target:"../drawings/vmlDrawing".concat(e.id,".vml")};
1r.push(a),e.comments.forEach(function(e){e.refAddress=c.decodeAddress(e.ref)}),t.commentRefs.push({commentName:"comments".concat(e.id),vmlDrawing:"vmlDrawing".concat(e.id)})}var s,u=[];e.media.forEach(function(i){if("background"===i.type){var a=o(r);r.push({Id:a,Type:f.Image,Target:"../media/".concat((s=t.media[i.imageId]).name,".").concat(s.extension)}),e.background={rId:a},e.image=t.media[i.imageId]}else if("image"===i.type){var c=e.drawing;s=t.media[i.imageId],c||(c=e.drawing={rId:o(r),name:"drawing".concat(++t.drawingsCount),anchors:[],rels:[]},t.drawings.push(c),r.push({Id:c.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:"../drawings/".concat(c.name,".xml")}));var l=n.preImageId===i.imageId?u[i.imageId]:u[c.rels.length];l||(l=o(c.rels),u[c.rels.length]=l,c.rels.push({Id:l,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:"../media/".concat(s.name,".").concat(s.extension)}));var h={picture:{rId:l},range:i.range};if(i.hyperlinks&&i.hyperlinks.hyperlink){var d=o(c.rels);u[c.rels.length]=d,h.picture.hyperlinks={tooltip:i.hyperlinks.tooltip,rId:d},c.rels.push({Id:d,Type:f.Hyperlink,Target:i.hyperlinks.hyperlink,TargetMode:"External"})}n.preImageId=i.imageId,c.anchors.push(h)}}),e.tables.forEach(function(e){var n=o(r);e.rId=n,r.push({Id:n,Type:f.Table,Target:"../tables/".concat(e.target)}),e.columns.forEach(function(e){var n=e.style;n&&(e.dxfId=t.styles.addDxfStyle(n))})}),this.map.extLst.prepare(e,t)}},{key:"render",value:function(e,t){e.openXml(l.StdDocAttributes),e.openNode("worksheet",r.WORKSHEET_ATTRIBUTES);var n=t.properties?{defaultRowHeight:t.properties.defaultRowHeight,dyDescent:t.properties.dyDescent,outlineLevelCol:t.properties.outlineLevelCol,outlineLevelRow:t.properties.outlineLevelRow}:void 0;t.properties&&t.properties.defaultColWidth&&(n.defaultColWidth=t.properties.defaultColWidth);var o=t.pageSetup&&t.pageSetup.margins,i={showRowColHeaders:t.pageSetup&&t.pageSetup.showRowColHeaders,showGridLines:t.pageSetup&&t.pageSetup.showGridLines,horizontalCentered:t.pageSetup&&t.pageSetup.horizontalCentered,verticalCentered:t.pageSetup&&t.pageSetup.verticalCentered},a=t.sheetProtection;this.map.sheetPr.render(e,{outlineProperties:t.properties&&t.properties.outlineProperties,tabColor:t.properties&&t.properties.tabColor,pageSetup:t.pageSetup&&t.pageSetup.fitToPage?{fitToPage:t.pageSetup.fitToPage}:void 0}),this.map.dimension.render(e,t.dimensions),this.map.sheetViews.render(e,t.views),this.map.sheetFormatPr.render(e,n),this.map.cols.render(e,t.cols),this.map.sheetData.render(e,t.rows),this.map.sheetProtection.render(e,a),this.map.autoFilter.render(e,t.autoFilter),this.map.mergeCells.render(e,t.mergeCells),this.map.conditionalFormatting.render(e,t.conditionalFormattings),this.map.dataValidations.render(e,t.dataValidations),this.map.hyperlinks.render(e,t.hyperlinks),this.map.printOptions.render(e,i),this.map.pageMargins.render(e,o),this.map.pageSetup.render(e,t.pageSetup),this.map.headerFooter.render(e,t.headerFooter),this.map.rowBreaks.render(e,t.rowBreaks),this.map.drawing.render(e,t.drawing),this.map.picture.render(e,t.background),this.map.tableParts.render(e,t.tables),this.map.extLst.render(e,t),t.rels&&t.rels.forEach(function(t){t.Type===f.VmlDrawing&&e.leafNode("legacyDrawing",{"r:id":t.Id})}),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):"worksheet"===e.name?(u.each(this.map,function(e){e.reset()}),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"worksheet":var t=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(t.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(t.outlineProperties=this.map.sheetPr.model.outlineProperties);var n=Object.assign({fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},this.map.pageSetup.model,this.map.printOptions.model),r=function(e,t){if(!t||!t.length)return e;if(!e||!e.length)return t;var n={},r={};
1return e.forEach(function(e){n[e.ref]=e,e.rules.forEach(function(e){var t=e.x14Id;t&&(r[t]=e)})}),t.forEach(function(t){t.rules.forEach(function(o){var i=r[o.x14Id];i?function(e,t){Object.keys(t).forEach(function(n){var r=t[n];void 0===e[n]&&void 0!==r&&(e[n]=r)})}(i,o):n[t.ref]?n[t.ref].rules.push(o):e.push({ref:t.ref,rules:[o]})})}),e}(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:t,views:this.map.sheetViews.model,pageSetup:n,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:r},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1;default:return!0}}},{key:"reconcile",value:function(e,t){var n=(e.relationships||[]).reduce(function(n,r){if(n[r.Id]=r,r.Type===f.Comments&&(e.comments=t.comments[r.Target].comments),r.Type===f.VmlDrawing&&e.comments&&e.comments.length){var o=t.vmlDrawings[r.Target].comments;e.comments.forEach(function(e,t){e.note=Object.assign({},e.note,o[t])})}return n},{});if(t.commentsMap=(e.comments||[]).reduce(function(e,t){return t.ref&&(e[t.ref]=t),e},{}),t.hyperlinkMap=(e.hyperlinks||[]).reduce(function(e,t){return t.rId&&(e[t.address]=n[t.rId].Target),e},{}),t.formulae={},e.rows=e.rows&&e.rows.filter(Boolean)||[],e.rows.forEach(function(e){e.cells=e.cells&&e.cells.filter(Boolean)||[]}),this.map.cols.reconcile(e.cols,t),this.map.sheetData.reconcile(e.rows,t),this.map.conditionalFormatting.reconcile(e.conditionalFormattings,t),e.media=[],e.drawing){var r=n[e.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);r&&t.drawings[r[1]].anchors.forEach(function(t){t.medium&&e.media.push({type:"image",imageId:t.medium.index,range:t.range,hyperlinks:t.picture.hyperlinks})})}var o=e.background&&n[e.background.rId];if(o){var i=o.Target.split("/media/")[1],a=t.mediaIndex&&t.mediaIndex[i];void 0!==a&&e.media.push({type:"background",imageId:a})}e.tables=(e.tables||[]).map(function(e){return t.tables[n[e.rId].Target]}),delete e.relationships,delete e.hyperlinks,delete e.comments}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(d);D.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},t.exports=D},{"../../../utils/col-cache":19,"../../../utils/under-dash":25,"../../../utils/xml-stream":27,"../../rel-type":30,"../base-xform":31,"../list-xform":70,"./auto-filter-xform":71,"./cf/conditional-formattings-xform":86,"./col-xform":91,"./data-validations-xform":92,"./dimension-xform":93,"./drawing-xform":94,"./ext-lst-xform":95,"./header-footer-xform":96,"./hyperlink-xform":97,"./merge-cell-xform":98,"./merges":99,"./page-margins-xform":102,"./page-setup-xform":104,"./picture-xform":105,"./print-options-xform":106,"./row-breaks-xform":107,"./row-xform":108,"./sheet-format-properties-xform":109,"./sheet-properties-xform":110,"./sheet-protection-xform":111,"./sheet-view-xform":112,"./table-part-xform":113}],115:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}
1function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this)).tag=e.tag,t.attr=e.attr,t}return(t=[{key:"render",value:function(e,t){t&&(e.openNode(this.tag),e.closeNode())}},{key:"parseOpen",value:function(e){e.name===this.tag&&(this.model=!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=u},{"../base-xform":31}],116:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this)).tag=e.tag,t.attr=e.attr,t.attrs=e.attrs,t._format=e.format||function(e){try{return Number.isNaN(e.getTime())?"":e.toISOString()}catch(e){return""}},t._parse=e.parse||function(e){return new Date(e)},t}return(t=[{key:"render",value:function(e,t){t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,this._format(t)):e.writeText(this._format(t)),e.closeNode())}},{key:"parseOpen",value:function(e){e.name===this.tag&&(this.attr?this.model=this._parse(e.attributes[this.attr]):this.text=[])}},{key:"parseText",value:function(e){this.attr||this.text.push(e)}},{key:"parseClose",value:function(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=u},{"../base-xform":31}],117:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}
1function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this)).tag=e.tag,t.attr=e.attr,t.attrs=e.attrs,t.zero=e.zero,t}return(t=[{key:"render",value:function(e,t){(t||this.zero)&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.attr?this.model=parseInt(e.attributes[this.attr],10):this.text=[],!0)}},{key:"parseText",value:function(e){this.attr||this.text.push(e)}},{key:"parseClose",value:function(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=u},{"../base-xform":31}],118:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this)).tag=e.tag,t.attr=e.attr,t.attrs=e.attrs,t}return(t=[{key:"render",value:function(e,t){void 0!==t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}},{key:"parseOpen",value:function(e){e.name===this.tag&&(this.attr?this.model=e.attributes[this.attr]:this.text=[])}},{key:"parseText",value:function(e){this.attr||this.text.push(e)}},{key:"parseClose",value:function(){return this.attr||(this.model=this.text.join("")),!1}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=u},{"../base-xform":31}],119:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}
1function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("./base-xform"),c=e("../../utils/xml-stream"),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this))._model=e,t}return(t=[{key:"render",value:function(e){if(!this._xml){var t=new c;!function e(t,n){t.openNode(n.tag,n.$),n.c&&n.c.forEach(function(n){e(t,n)}),n.t&&t.writeText(n.t),t.closeNode()}(t,this._model),this._xml=t.xml}e.writeXml(this._xml)}},{key:"parseOpen",value:function(){return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){switch(e){case this._model.tag:return!1;default:return!0}}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=l},{"../../utils/xml-stream":27,"./base-xform":31}],120:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("./text-xform"),c=e("./rich-text-xform"),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={r:new c,t:new u},e}return(t=[{key:"render",value:function(e,t){if(e.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty("richText")&&t.richText){var n=this.map.r;t.richText.forEach(function(t){n.render(e,t)})}else t&&this.map.t.render(e,t.text);e.closeNode()}},{key:"parseOpen",value:function(e){var t=e.name;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={sb:parseInt(e.attributes.sb,10),eb:parseInt(e.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":var t=this.model.richText;t||(t=this.model.richText=[]),t.push(this.parser.model);break;case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(e){case this.tag:return!1;default:return!0}}},{key:"tag",get:function(){return"rPh"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=l},{"../base-xform":31,"./rich-text-xform":121,"./text-xform":124}],121:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("./text-xform"),c=e("../style/font-xform"),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this)).model=e,t}return(t=[{key:"render",value:function(e,t){t=t||this.model,e.openNode("r"),t.font&&this.fontXform.render(e,t.font),this.textXform.render(e,t.text),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(e),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){switch(e){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}},{key:"tag",get:function(){return"r"}},{key:"textXform",get:function(){return this._textXform||(this._textXform=new u)}},{key:"fontXform",get:function(){return this._fontXform||(this._fontXform=new c(r.FONT_OPTIONS))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));l.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},t.exports=l},{"../base-xform":31,"../style/font-xform":130,"./text-xform":124}],122:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("./text-xform"),c=e("./rich-text-xform"),l=e("./phonetic-text-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this)).model=e,t.map={r:new c,t:new u,rPh:new l},t}return(t=[{key:"render",value:function(e,t){var n=this;e.openNode(this.tag),t&&t.hasOwnProperty("richText")&&t.richText?t.richText.length?t.richText.forEach(function(t){n.map.r.render(e,t)}):this.map.t.render(e,""):null!=t&&this.map.t.render(e,t),e.closeNode()}},{key:"parseOpen",value:function(e){var t=e.name;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":var t=this.model.richText;t||(t=this.model.richText=[]),t.push(this.parser.model);break;case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(e){case this.tag:return!1;default:return!0}}},{key:"tag",get:function(){return"si"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=f},{"../base-xform":31,"./phonetic-text-xform":120,"./rich-text-xform":121,"./text-xform":124}],123:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../../utils/xml-stream"),c=e("../base-xform"),l=e("./shared-string-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this)).model=e||{values:[],count:0},t.hash=Object.create(null),t.rich=Object.create(null),t}return(t=[{key:"getString",value:function(e){return this.model.values[e]}},{key:"add",value:function(e){return e.richText?this.addRichText(e):this.addText(e)}},{key:"addText",value:function(e){var t=this.hash[e];return void 0===t&&(t=this.hash[e]=this.model.values.length,this.model.values.push(e)),this.model.count++,t}},{key:"addRichText",value:function(e){var t=this.sharedStringXform.toXml(e),n=this.rich[t];return void 0===n&&(n=this.rich[t]=this.model.values.length,this.model.values.push(e)),this.model.count++,n}},{key:"render",value:function(e,t){t=t||this._values,e.openXml(u.StdDocAttributes),e.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});var n=this.sharedStringXform;t.values.forEach(function(t){n.render(e,t)}),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(e),!0;default:throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(e)))}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(e){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: ".concat(e))}}},{key:"sharedStringXform",get:function(){return this._sharedStringXform||(this._sharedStringXform=new l)}},{key:"values",get:function(){return this.model.values}},{key:"uniqueCount",get:function(){return this.model.values.length}},{key:"count",get:function(){return this.model.count}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(c);t.exports=f},{"../../../utils/xml-stream":27,"../base-xform":31,"./shared-string-xform":122}],124:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.openNode("t"),/^\s|\n|\s$/.test(t)&&e.addAttribute("xml:space","preserve"),e.writeText(t),e.closeNode()}},{key:"parseOpen",value:function(e){switch(e.name){case"t":return this._text=[],!0;default:return!1}}},{key:"parseText",value:function(e){this._text.push(e)}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"t"}},{key:"model",get:function(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,function(e,t){return String.fromCharCode(parseInt(t,16))})}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],125:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../../doc/enums"),l=e("../../../utils/utils"),f=e("../base-xform"),h={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce(function(e,t){return e[t]=!0,e},{}),horizontal:function(e){return this.horizontalValues[e]?e:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce(function(e,t){return e[t]=!0,e},{}),vertical:function(e){return"middle"===e?"center":this.verticalValues[e]?e:void 0},wrapText:function(e){return!!e||void 0},shrinkToFit:function(e){return!!e||void 0},textRotation:function(e){switch(e){case"vertical":return e;default:return(e=l.validInt(e))>=-90&&e<=90?e:void 0}},indent:function(e){return e=l.validInt(e),Math.max(0,e)},readingOrder:function(e){switch(e){case"ltr":return c.ReadingOrder.LeftToRight;case"rtl":return c.ReadingOrder.RightToLeft;default:return}}},d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.addRollback(),e.openNode("alignment");var n=!1;function r(t,r){r&&(e.addAttribute(t,r),n=!0)}r("horizontal",h.horizontal(t.horizontal)),r("vertical",h.vertical(t.vertical)),r("wrapText",!!h.wrapText(t.wrapText)&&"1"),r("shrinkToFit",!!h.shrinkToFit(t.shrinkToFit)&&"1"),r("indent",h.indent(t.indent)),r("textRotation",function(e){if(e=h.textRotation(e)){if("vertical"===e)return 255;var t=Math.round(e);if(t>=0&&t<=90)return t;if(t<0&&t>=-90)return 90-t}}(t.textRotation)),r("readingOrder",h.readingOrder(t.readingOrder)),e.closeNode(),n?e.commit():e.rollback()}},{key:"parseOpen",value:function(e){var t={},n=!1;function r(e,r,o){e&&(t[r]=o,n=!0)}r(e.attributes.horizontal,"horizontal",e.attributes.horizontal),r(e.attributes.vertical,"vertical","center"===e.attributes.vertical?"middle":e.attributes.vertical),r(e.attributes.wrapText,"wrapText",!!e.attributes.wrapText),r(e.attributes.shrinkToFit,"shrinkToFit",!!e.attributes.shrinkToFit),r(e.attributes.indent,"indent",parseInt(e.attributes.indent,10)),r(e.attributes.textRotation,"textRotation",function(e){var t=l.validInt(e);if(void 0!==t){if(255===t)return"vertical";if(t>=0&&t<=90)return t;if(t>90&&t<=180)return 90-t}}(e.attributes.textRotation)),r(e.attributes.readingOrder,"readingOrder","2"===e.attributes.readingOrder?"rtl":"ltr"),this.model=n?t:null}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"alignment"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(f);t.exports=d},{"../../../doc/enums":7,"../../../utils/utils":26,"../base-xform":31}],126:[function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?r(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=e("../base-xform"),y=e("./color-xform"),v=function(e){l(n,e);var t=h(n);function n(e){var r;return s(this,n),(r=t.call(this)).name=e,r.map={color:new y},r}return c(n,[{key:"render",value:function(e,t,n){var r=t&&t.color||n||this.defaultColor;e.openNode(this.name),t&&t.style&&(e.addAttribute("style",t.style),r&&this.map.color.render(e,r)),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.name:var t=e.attributes.style;return this.model=t?{style:t}:void 0,!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(e===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}},{key:"validStyle",value:function(e){return n.validStyleValues[e]}},{key:"tag",get:function(){return this.name}}]),n}(m);v.validStyleValues=["thin","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce(function(e,t){return e[t]=!0,e},{});var g=function(e){l(n,e);var t=h(n);function n(){var e;return s(this,n),(e=t.call(this)).map={top:new v("top"),left:new v("left"),bottom:new v("bottom"),right:new v("right"),diagonal:new v("diagonal")},e}return c(n,[{key:"render",value:function(e,t){var n=t.color;function r(r,i){r&&!r.color&&t.color&&(r=o(o({},r),{},{color:t.color})),i.render(e,r,n)}e.openNode("border"),t.diagonal&&t.diagonal.style&&(t.diagonal.up&&e.addAttribute("diagonalUp","1"),t.diagonal.down&&e.addAttribute("diagonalDown","1")),r(t.left,this.map.left),r(t.right,this.map.right),r(t.top,this.map.top),r(t.bottom,this.map.bottom),r(t.diagonal,this.map.diagonal),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"border":return this.reset(),this.diagonalUp=!!e.attributes.diagonalUp,this.diagonalDown=!!e.attributes.diagonalDown,!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("border"===e){var t=this.model={},n=function(e,n,r){n&&(r&&Object.assign(n,r),t[e]=n)};n("left",this.map.left.model),n("right",this.map.right.model),n("top",this.map.top.model),n("bottom",this.map.bottom.model),n("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown}
1)}return!1}}]),n}(m);t.exports=g},{"../base-xform":31,"./color-xform":127}],127:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this)).name=e||"color",t}return(t=[{key:"render",value:function(e,t){return!!t&&(e.openNode(this.name),t.argb?e.addAttribute("rgb",t.argb):void 0!==t.theme?(e.addAttribute("theme",t.theme),void 0!==t.tint&&e.addAttribute("tint",t.tint)):void 0!==t.indexed?e.addAttribute("indexed",t.indexed):e.addAttribute("auto","1"),e.closeNode(),!0)}},{key:"parseOpen",value:function(e){return e.name===this.name&&(e.attributes.rgb?this.model={argb:e.attributes.rgb}:e.attributes.theme?(this.model={theme:parseInt(e.attributes.theme,10)},e.attributes.tint&&(this.model.tint=parseFloat(e.attributes.tint))):this.model=e.attributes.indexed?{indexed:parseInt(e.attributes.indexed,10)}:void 0,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return this.name}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=u},{"../base-xform":31}],128:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../base-xform"),c=e("./alignment-xform"),l=e("./border-xform"),f=e("./fill-xform"),h=e("./font-xform"),d=e("./numfmt-xform"),p=e("./protection-xform"),m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1(this,r),(e=n.call(this)).map={alignment:new c,border:new l,fill:new f,font:new h,numFmt:new d,protection:new p},e}return(t=[{key:"render",value:function(e,t){e.openNode(this.tag),t.alignment&&this.map.alignment.render(e,t.alignment),t.border&&this.map.border.render(e,t.border),t.fill&&this.map.fill.render(e,t.fill),t.font&&this.map.font.render(e,t.font),t.numFmt&&this.map.numFmt.render(e,t.numFmt),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}},{key:"tag",get:function(){return"dxf"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=m},{"../base-xform":31,"./alignment-xform":125,"./border-xform":126,"./fill-xform":129,"./font-xform":130,"./numfmt-xform":131,"./protection-xform":132}],129:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=e("../base-xform"),d=e("./color-xform"),p=function(e){s(n,e);var t=c(n);function n(){var e;return o(this,n),(e=t.call(this)).map={color:new d},e}return a(n,[{key:"render",value:function(e,t){e.openNode("stop"),e.addAttribute("position",t.position),this.map.color.render(e,t.color),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"stop":return this.model={position:parseFloat(e.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.color=this.parser.model,this.parser=void 0),!0)}},{key:"tag",get:function(){return"stop"}}]),n}(h),m=function(e){s(n,e);var t=c(n);function n(){var e;return o(this,n),(e=t.call(this)).map={fgColor:new d("fgColor"),bgColor:new d("bgColor")},e}return a(n,[{key:"render",value:function(e,t){e.openNode("patternFill"),e.addAttribute("patternType",t.pattern),t.fgColor&&this.map.fgColor.render(e,t.fgColor),t.bgColor&&this.map.bgColor.render(e,t.bgColor),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"patternFill":return this.model={type:"pattern",pattern:e.attributes.patternType},!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.parser.model&&(this.model[e]=this.parser.model),this.parser=void 0),!0)}},{key:"name",get:function(){return"pattern"}},{key:"tag",get:function(){return"patternFill"}}]),n}(h),y=function(e){s(n,e);var t=c(n);function n(){var e;return o(this,n),(e=t.call(this)).map={stop:new p},e}return a(n,[{key:"render",value:function(e,t){switch(e.openNode("gradientFill"),t.gradient){case"angle":e.addAttribute("degree",t.degree);break;case"path":e.addAttribute("type","path"),t.center.left&&(e.addAttribute("left",t.center.left),void 0===t.center.right&&e.addAttribute("right",t.center.left)),t.center.right&&e.addAttribute("right",t.center.right),t.center.top&&(e.addAttribute("top",t.center.top),void 0===t.center.bottom&&e.addAttribute("bottom",t.center.top)),t.center.bottom&&e.addAttribute("bottom",t.center.bottom)}var n=this.map.stop;t.stops.forEach(function(t){n.render(e,t)}),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"gradientFill":var t=this.model={stops:[]};return e.attributes.degree?(t.gradient="angle",t.degree=parseInt(e.attributes.degree,10)):"path"===e.attributes.type&&(t.gradient="path",t.center={left:e.attributes.left?parseFloat(e.attributes.left):0,top:e.attributes.top?parseFloat(e.attributes.top):0},e.attributes.right!==e.attributes.left&&(t.center.right=e.attributes.right?parseFloat(e.attributes.right):0),e.attributes.bottom!==e.attributes.top&&(t.center.bottom=e.attributes.bottom?parseFloat(e.attributes.bottom):0)),!0;case"stop":return this.parser=this.map.stop,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}},{key:"name",get:function(){return"gradient"}},{key:"tag",get:function(){return"gradientFill"}}]),n}(h),v=function(e){s(n,e);var t=c(n);function n(){var e;return o(this,n),(e=t.call(this)).map={patternFill:new m,gradientFill:new y},e}return a(n,[{key:"render",value:function(e,t){switch(e.addRollback(),e.openNode("fill"),t.type){case"pattern":this.map.patternFill.render(e,t);break;case"gradient":this.map.gradientFill.render(e,t);break;default:return void e.rollback()}e.closeNode(),e.commit()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"fill":return this.model={},!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model=this.parser.model,this.model.type=this.parser.n
1ame,this.parser=void 0),!0)}},{key:"validStyle",value:function(e){return n.validPatternValues[e]}},{key:"tag",get:function(){return"fill"}}]),n}(h);v.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce(function(e,t){return e[t]=!0,e},{}),v.StopXform=p,v.PatternFillXform=m,v.GradientFillXform=y,t.exports=v},{"../base-xform":31,"./color-xform":127}],130:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("./color-xform"),c=e("../simple/boolean-xform"),l=e("../simple/integer-xform"),f=e("../simple/string-xform"),h=e("./underline-xform"),d=e("../../../utils/under-dash"),p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this)).options=e||r.OPTIONS,t.map={b:{prop:"bold",xform:new c({tag:"b",attr:"val"})},i:{prop:"italic",xform:new c({tag:"i",attr:"val"})},u:{prop:"underline",xform:new h},charset:{prop:"charset",xform:new l({tag:"charset",attr:"val"})},color:{prop:"color",xform:new u},condense:{prop:"condense",xform:new c({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new c({tag:"extend",attr:"val"})},family:{prop:"family",xform:new l({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new c({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new f({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new f({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new c({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new c({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new l({tag:"sz",attr:"val"})}},t.map[t.options.fontNameTag]={prop:"name",xform:new f({tag:t.options.fontNameTag,attr:"val"})},t}return(t=[{key:"render",value:function(e,t){var n=this.map;e.openNode(this.options.tagName),d.each(this.map,function(r,o){n[o].xform.render(e,t[r.prop])}),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if(this.map[e.name])return this.parser=this.map[e.name].xform,this.parser.parseOpen(e);switch(e.name){case this.options.tagName:return this.model={},!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser&&!this.parser.parseClose(e))return this.parser.model&&(this.model[this.map[e].prop]=this.parser.model),this.parser=void 0,!0;switch(e){case this.options.tagName:return!1;default:return!0}}},{key:"tag",get:function(){return this.options.tagName}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));p.OPTIONS={tagName:"font",fontNameTag:"name"}
1,t.exports=p},{"../../../utils/under-dash":25,"../base-xform":31,"../simple/boolean-xform":115,"../simple/integer-xform":117,"../simple/string-xform":118,"./color-xform":127,"./underline-xform":135}],131:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u,c=e("../../../utils/under-dash"),l=e("../../defaultnumformats"),f=e("../base-xform"),h=(u={},c.each(l,function(e,t){e.f&&(u[e.f]=parseInt(t,10))}),u),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e,t){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(o=n.call(this)).id=e,o.formatCode=t,o}return(t=[{key:"render",value:function(e,t){e.leafNode("numFmt",{numFmtId:t.id,formatCode:t.formatCode})}},{key:"parseOpen",value:function(e){switch(e.name){case"numFmt":return this.model={id:parseInt(e.attributes.numFmtId,10),formatCode:e.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"numFmt"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(f);d.getDefaultFmtId=function(e){return h[e]},d.getDefaultFmtCode=function(e){return l[e]&&l[e].f},t.exports=d},{"../../../utils/under-dash":25,"../../defaultnumformats":29,"../base-xform":31}],132:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../base-xform"),l=function(e,t){return void 0===e?t:e},f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){e.addRollback(),e.openNode("protection");var n=!1;function r(t,r){void 0!==r&&(e.addAttribute(t,r),n=!0)}r("locked",l(t.locked,!0)?void 0:"0"),r("hidden",l(t.hidden,!1)?"1":void 0),e.closeNode(),n?e.commit():e.rollback()}},{key:"parseOpen",value:function(e){var t={locked:!("0"===e.attributes.locked),hidden:"1"===e.attributes.hidden};this.model=!t.locked||t.hidden?t:null}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"protection"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(c);t.exports=f},{"../base-xform":31}],133:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../base-xform"),c=e("./alignment-xform"),l=e("./protection-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this)).xfId=!(!e||!e.xfId),t.map={alignment:new c,protection:new l},t}return(t=[{key:"render",value:function(e,t){e.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&e.addAttribute("xfId",t.xfId||0),t.numFmtId&&e.addAttribute("applyNumberFormat","1"),t.fontId&&e.addAttribute("applyFont","1"),t.fillId&&e.addAttribute("applyFill","1"),t.borderId&&e.addAttribute("applyBorder","1"),t.alignment&&e.addAttribute("applyAlignment","1"),t.protection&&e.addAttribute("applyProtection","1"),t.alignment&&this.map.alignment.render(e,t.alignment),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"xf":return this.model={numFmtId:parseInt(e.attributes.numFmtId,10),fontId:parseInt(e.attributes.fontId,10),fillId:parseInt(e.attributes.fillId,10),borderId:parseInt(e.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(e.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(e),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):"xf"!==e}},{key:"tag",get:function(){return"xf"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=f},{"../base-xform":31,"./alignment-xform":125,"./protection-xform":132}],134:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=f(e);
1if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=e("../../../doc/enums"),d=e("../../../utils/xml-stream"),p=e("../base-xform"),m=e("../static-xform"),y=e("../list-xform"),v=e("./font-xform"),g=e("./fill-xform"),b=e("./border-xform"),w=e("./numfmt-xform"),_=e("./style-xform"),k=e("./dxf-xform"),S=function(e){s(n,e);var t=c(n);function n(e){var r;return o(this,n),(r=t.call(this)).map={numFmts:new y({tag:"numFmts",count:!0,childXform:new w}),fonts:new y({tag:"fonts",count:!0,childXform:new v,$:{"x14ac:knownFonts":1}}),fills:new y({tag:"fills",count:!0,childXform:new g}),borders:new y({tag:"borders",count:!0,childXform:new b}),cellStyleXfs:new y({tag:"cellStyleXfs",count:!0,childXform:new _}),cellXfs:new y({tag:"cellXfs",count:!0,childXform:new _({xfId:!0})}),dxfs:new y({tag:"dxfs",always:!0,count:!0,childXform:new k}),numFmt:new w,font:new v,fill:new g,border:new b,style:new _({xfId:!0}),cellStyles:n.STATIC_XFORMS.cellStyles,tableStyles:n.STATIC_XFORMS.tableStyles,extLst:n.STATIC_XFORMS.extLst},e&&r.init(),r}return a(n,[{key:"initIndex",value:function(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}},{key:"init",value:function(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}},{key:"render",value:function(e,t){t=t||this.model,e.openXml(d.StdDocAttributes),e.openNode("styleSheet",n.STYLESHEET_ATTRIBUTES),this.index?(t.numFmts&&t.numFmts.length&&(e.openNode("numFmts",{count:t.numFmts.length}),t.numFmts.forEach(function(t){e.writeXml(t)}),e.closeNode()),t.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),e.openNode("fonts",{count:t.fonts.length,"x14ac:knownFonts":1}),t.fonts.forEach(function(t){e.writeXml(t)}),e.closeNode(),e.openNode("fills",{count:t.fills.length}),t.fills.forEach(function(t){e.writeXml(t)}),e.closeNode(),e.openNode("borders",{count:t.borders.length}),t.borders.forEach(function(t){e.writeXml(t)}),e.closeNode(),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),e.openNode("cellXfs",{count:t.styles.length}),t.styles.forEach(function(t){e.writeXml(t)}),e.closeNode()):(this.map.numFmts.render(e,t.numFmts),this.map.fonts.render(e,t.fonts),this.map.fills.render(e,t.fills),this.map.borders.render(e,t.borders),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(e,t.styles)),n.STATIC_XFORMS.cellStyles.render(e),this.map.dxfs.render(e,t.dxfs),n.STATIC_XFORMS.tableStyles.render(e),n.STATIC_XFORMS.extLst.render(e),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){var t=this;if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"styleSheet":this.model={};
1var n=function(e,n){n.model&&n.model.length&&(t.model[e]=n.model)};if(n("numFmts",this.map.numFmts),n("fonts",this.map.fonts),n("fills",this.map.fills),n("borders",this.map.borders),n("styles",this.map.cellXfs),n("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){var r=this.index.numFmt;this.model.numFmts.forEach(function(e){r[e.id]=e.formatCode})}return!1;default:return!0}}},{key:"addStyleModel",value:function(e,t){if(!e)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(e))return this.weakMap.get(e);var n={};if(t=t||h.ValueType.Number,e.numFmt)n.numFmtId=this._addNumFmtStr(e.numFmt);else switch(t){case h.ValueType.Number:n.numFmtId=this._addNumFmtStr("General");break;case h.ValueType.Date:n.numFmtId=this._addNumFmtStr("mm-dd-yy")}e.font&&(n.fontId=this._addFont(e.font)),e.border&&(n.borderId=this._addBorder(e.border)),e.fill&&(n.fillId=this._addFill(e.fill)),e.alignment&&(n.alignment=e.alignment),e.protection&&(n.protection=e.protection);var r=this._addStyle(n);return this.weakMap&&this.weakMap.set(e,r),r}},{key:"getStyleModel",value:function(e){var t=this.model.styles[e];if(!t)return null;var n=this.index.model[e];if(n)return n;if(n=this.index.model[e]={},t.numFmtId){var r=this.index.numFmt[t.numFmtId]||w.getDefaultFmtCode(t.numFmtId);r&&(n.numFmt=r)}function o(e,t,r){if(r||0===r){var o=t[r];o&&(n[e]=o)}}return o("font",this.model.fonts,t.fontId),o("border",this.model.borders,t.borderId),o("fill",this.model.fills,t.fillId),t.alignment&&(n.alignment=t.alignment),t.protection&&(n.protection=t.protection),n}},{key:"addDxfStyle",value:function(e){return this.model.dxfs.push(e),this.model.dxfs.length-1}},{key:"getDxfStyle",value:function(e){return this.model.dxfs[e]}},{key:"_addStyle",value:function(e){var t=this.map.style.toXml(e),n=this.index.style[t];return void 0===n&&(n=this.index.style[t]=this.model.styles.length,this.model.styles.push(t)),n}},{key:"_addNumFmtStr",value:function(e){var t=w.getDefaultFmtId(e);if(void 0!==t)return t;if(void 0!==(t=this.index.numFmt[e]))return t;t=this.index.numFmt[e]=164+this.model.numFmts.length;var n=this.map.numFmt.toXml({id:t,formatCode:e});return this.model.numFmts.push(n),t}},{key:"_addFont",value:function(e){var t=this.map.font.toXml(e),n=this.index.font[t];return void 0===n&&(n=this.index.font[t]=this.model.fonts.length,this.model.fonts.push(t)),n}},{key:"_addBorder",value:function(e){var t=this.map.border.toXml(e),n=this.index.border[t];return void 0===n&&(n=this.index.border[t]=this.model.borders.length,this.model.borders.push(t)),n}},{key:"_addFill",value:function(e){var t=this.map.fill.toXml(e),n=this.index.fill[t];return void 0===n&&(n=this.index.fill[t]=this.model.fills.length,this.model.fills.push(t)),n}}]),n}(p);S.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},S.STATIC_XFORMS={cellStyles:new m({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new m({tag:"dxfs",$:{count:0}}),tableStyles:new m({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new m({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})};var C=function(e){s(n,e);var t=c(n);function n(){var e;return o(this,n),(e=t.call(this)).model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]},e}return a(n,[{key:"parseStream",value:function(e){return e.autodrain(),Promise.resolve()}},{key:"addStyleModel",value:function(e,t){switch(t){case h.ValueType.Date:return this.dateStyleId;default:return 0}}},{key:"getStyleModel",value:function(){return{}}},{key:"dateStyleId",get:function(){if(!this._dateStyleId){var e={numFmtId:w.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(e)}return this._dateStyleId}}]),n}(S);
1S.Mock=C,t.exports=S},{"../../../doc/enums":7,"../../../utils/xml-stream":27,"../base-xform":31,"../list-xform":70,"../static-xform":119,"./border-xform":126,"./dxf-xform":128,"./fill-xform":129,"./font-xform":130,"./numfmt-xform":131,"./style-xform":133}],135:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this)).model=e,t}return(t=[{key:"render",value:function(e,t){if(!0===(t=t||this.model))e.leafNode("u");else{var n=r.Attributes[t];n&&e.leafNode("u",n)}}},{key:"parseOpen",value:function(e){"u"===e.name&&(this.model=e.attributes.val||!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"u"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));u.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},t.exports=u},{"../base-xform":31}],136:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../base-xform"),c=e("./filter-column-xform"),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e);var t,n=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={filterColumn:new c},e}return(t=[{key:"prepare",value:function(e){var t=this;e.columns.forEach(function(e,n){t.map.filterColumn.prepare(e,{index:n})})}},{key:"render",value:function(e,t){var n=this;return e.openNode(this.tag,{ref:t.autoFilterRef}),t.columns.forEach(function(t){n.map.filterColumn.render(e,t)}),e.closeNode(),!0}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:return this.model={autoFilterRef:e.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(e)))}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: ".concat(e))}}},{key:"tag",get:function(){return"autoFilter"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(u);t.exports=l},{"../base-xform":31,"./filter-column-xform":137}],137:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"prepare",value:function(e,t){e.colId=t.index.toString()}},{key:"render",value:function(e,t){return e.leafNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),!0}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={filterButton:"0"===e.attributes.hiddenButton},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"filterColumn"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],138:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"prepare",value:function(e,t){e.id=t.index+1}},{key:"render",value:function(e,t){return e.leafNode(this.tag,{id:t.id.toString(),name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId}),!0}},{key:"parseOpen",value:function(e){if(e.name===this.tag){var t=e.attributes;return this.model={name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId},!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"tableColumn"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],139:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t,n=a(r);function r(){return o(this,r),n.apply(this,arguments)}return(t=[{key:"render",value:function(e,t){return e.leafNode(this.tag,{name:t.theme?t.theme:void 0,showFirstColumn:t.showFirstColumn?"1":"0",showLastColumn:t.showLastColumn?"1":"0",showRowStripes:t.showRowStripes?"1":"0",showColumnStripes:t.showColumnStripes?"1":"0"}),!0}},{key:"parseOpen",value:function(e){if(e.name===this.tag){var t=e.attributes;return this.model={theme:t.name?t.name:null,showFirstColumn:"1"===t.showFirstColumn,showLastColumn:"1"===t.showLastColumn,showRowStripes:"1"===t.showRowStripes,showColumnStripes:"1"===t.showColumnStripes},!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"tableStyleInfo"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(e("../base-xform"));t.exports=c},{"../base-xform":31}],140:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=e("../../../utils/xml-stream"),f=e("../base-xform"),h=e("../list-xform"),d=e("./auto-filter-xform"),p=e("./table-column-xform"),m=e("./table-style-info-xform"),y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(r,e);var t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=n.call(this)).map={autoFilter:new d,tableColumns:new h({tag:"tableColumns",count:!0,empty:!0,childXform:new p}),tableStyleInfo:new m},e}return(t=[{key:"prepare",value:function(e,t){this.map.autoFilter.prepare(e),this.map.tableColumns.prepare(e.columns,t)}},{key:"render",value:function(e,t){e.openXml(l.StdDocAttributes),e.openNode(this.tag,i(i({},r.TABLE_ATTRIBUTES),{},{id:t.id,name:t.name,displayName:t.displayName||t.name,ref:t.tableRef,totalsRowCount:t.totalsRow?"1":void 0,totalsRowShown:t.totalsRow?void 0:"1",headerRowCount:t.headerRow?"1":"0"})),this.map.autoFilter.render(e,t),this.map.tableColumns.render(e,t.columns),this.map.tableStyleInfo.render(e,t.style),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;var t=e.attributes;switch(e.name){case this.tag:this.reset(),this.model={name:t.name,displayName:t.displayName||t.name,tableRef:t.ref,totalsRow:"1"===t.totalsRowCount,headerRow:"1"===t.headerRowCount};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){var t=this;if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach(function(e,n){t.model.columns[n].filterButton=e.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}},{key:"reconcile",value:function(e,t){e.columns.forEach(function(e){void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId))})}},{key:"tag",get:function(){return"table"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(f);y.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"}
1,t.exports=y},{"../../../utils/xml-stream":27,"../base-xform":31,"../list-xform":70,"./auto-filter-xform":136,"./table-column-xform":138,"./table-style-info-xform":139}],141:[function(e,t,n){(function(n,r){"use strict";function o(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,u,"next",e)}function u(e){o(a,r,i,s,u,"throw",e)}s(void 0)})}}function a(e){var t;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(t=e[Symbol.asyncIterator]))return t.call(e);if(Symbol.iterator&&null!=(t=e[Symbol.iterator]))return t.call(e)}throw new TypeError("Object is not async iterable")}var s=e("fs"),u=e("jszip"),c=e("readable-stream").PassThrough,l=e("../utils/zip-stream"),f=e("../utils/stream-buf"),h=e("../utils/utils"),d=e("../utils/xml-stream"),p=e("../utils/browser-buffer-decode").bufferToString,m=e("./xform/style/styles-xform"),y=e("./xform/core/core-xform"),v=e("./xform/strings/shared-strings-xform"),g=e("./xform/core/relationships-xform"),b=e("./xform/core/content-types-xform"),w=e("./xform/core/app-xform"),_=e("./xform/book/workbook-xform"),k=e("./xform/sheet/worksheet-xform"),S=e("./xform/drawing/drawing-xform"),C=e("./xform/table/table-xform"),E=e("./xform/comment/comments-xform"),T=e("./xform/comment/vml-notes-xform"),x=e("./xml/theme1.js");function O(e,t){return new Promise(function(n,r){s.readFile(e,t,function(e,t){e?r(e):n(t)})})}var A=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.workbook=t}var t,o,A,R,I,P,M,N,j,D,L,F,B,U,q,H,z,G,V,$,K,Y,W,X,Z,J,Q;return t=e,(o=[{key:"readFile",value:(Q=i(regeneratorRuntime.mark(function e(t,n){var r,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.fs.exists(t);case 2:if(e.sent){e.next=4;break}throw new Error("File not found: ".concat(t));case 4:return r=s.createReadStream(t),e.prev=5,e.next=8,this.read(r,n);case 8:return o=e.sent,r.close(),e.abrupt("return",o);case 13:throw e.prev=13,e.t0=e.catch(5),r.close(),e.t0;case 17:case"end":return e.stop()}},e,this,[[5,13]])})),function(e,t){return Q.apply(this,arguments)})},{key:"parseRels",value:function(e){return(new g).parseStream(e)}},{key:"parseWorkbook",value:function(e){return(new _).parseStream(e)}},{key:"parseSharedStrings",value:function(e){return(new v).parseStream(e)}},{key:"reconcile",value:function(e,t){var n=new _,r=new k(t),o=new S,i=new C;n.reconcile(e);var a={media:e.media,mediaIndex:e.mediaIndex};Object.keys(e.drawings).forEach(function(t){var n=e.drawings[t],r=e.drawingRels[t];r&&(a.rels=r.reduce(function(e,t){return e[t.Id]=t,e},{}),(n.anchors||[]).forEach(function(e){var t=e.picture&&e.picture.hyperlinks;t&&a.rels[t.rId]&&(t.hyperlink=a.rels[t.rId].Target,delete t.rId)}),o.reconcile(n,a))});var s={styles:e.styles};Object.values(e.tables).forEach(function(e){i.reconcile(e,s)});var u={styles:e.styles,sharedStrings:e.sharedStrings,media:e.media,mediaIndex:e.mediaIndex,date1904:e.properties&&e.properties.date1904,drawings:e.drawings,comments:e.comments,tables:e.tables,vmlDrawings:e.vmlDrawings};e.worksheets.forEach(function(t){t.relationships=e.worksheetRels[t.sheetNo],r.reconcile(t,u)}),delete e.worksheetHash,delete e.worksheetRels,delete e.globalRels,delete e.sharedStrings,delete e.workbookRels,delete e.sheetDefs,delete e.styles,delete e.mediaIndex,delete e.drawings,delete e.drawingRels,delete e.vmlDrawings}},{key:"_processWorksheetEntry",value:(J=i(regeneratorRuntime.mark(function e(t,n,r,o,i){var a,s;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=new k(o),e.next=3,a.parseStream(t);case 3:(s=e.sent).sheetNo=r,n.worksheetHash[i]=s,n.worksheets.push(s);case 7:case"end":return e.stop()}},e)})),function(e,t,n,r,o){return J.apply(this,arguments)})},{key:"_processCommentEntry",value:(Z=i(regeneratorRuntime.mark(function e(t,n,r){var o,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=new E,e.next=3,o.parseStream(t);case 3:i=e.sent,n.comments["../".concat(r,".xml")]=i;case 5:case"end":return e.stop()}},e)})),function(e,t,n){return Z.apply(this,arguments)})},{key:"_processTableEntry",value:(X=i(regeneratorRuntime.mark(function e(t,n,r){var o,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=new C,e.next=3,o.parseStream(t);case 3:i=e.sent,n.tables["../tables/".concat(r,".xml")]=i;case 5:case"end":return e.stop()}},e)})),function(e,t,n){return X.apply(this,arguments)})},{key:"_processWorksheetRelsEntry",value:(W=i(regeneratorRuntime.mark(function e(t,n,r){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=new g,e.next=3,o.parseStream(t);case 3:n.worksheetRels[r]=e.sent;case 5:case"end":return e.stop()}},e)})),function(e,t,n){return W.apply(this,arguments)})},{key:"_processMediaEntry",value:(Y=i(regeneratorRuntime.mark(function e(t,n,r){var o,i,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!((o=r.lastIndexOf("."))>
1=1)){e.next=6;break}return i=r.substr(o+1),a=r.substr(0,o),e.next=6,new Promise(function(e,o){var s=new f;s.on("finish",function(){n.mediaIndex[r]=n.media.length,n.mediaIndex[a]=n.media.length;var t={type:"image",name:a,extension:i,buffer:s.toBuffer()};n.media.push(t),e()}),t.on("error",function(e){o(e)}),t.pipe(s)});case 6:case"end":return e.stop()}},e)})),function(e,t,n){return Y.apply(this,arguments)})},{key:"_processDrawingEntry",value:(K=i(regeneratorRuntime.mark(function e(t,n,r){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=new S,e.next=3,o.parseStream(t);case 3:n.drawings[r]=e.sent;case 5:case"end":return e.stop()}},e)})),function(e,t,n){return K.apply(this,arguments)})},{key:"_processDrawingRelsEntry",value:($=i(regeneratorRuntime.mark(function e(t,n,r){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=new g,e.next=3,o.parseStream(t);case 3:n.drawingRels[r]=e.sent;case 5:case"end":return e.stop()}},e)})),function(e,t,n){return $.apply(this,arguments)})},{key:"_processVmlDrawingEntry",value:(V=i(regeneratorRuntime.mark(function e(t,n,r){var o,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=new T,e.next=3,o.parseStream(t);case 3:i=e.sent,n.vmlDrawings["../drawings/".concat(r,".vml")]=i;case 5:case"end":return e.stop()}},e)})),function(e,t,n){return V.apply(this,arguments)})},{key:"_processThemeEntry",value:(G=i(regeneratorRuntime.mark(function e(t,n,r){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise(function(e,o){var i=new f;t.on("error",o),i.on("error",o),i.on("finish",function(){n.themes[r]=i.read().toString(),e()}),t.pipe(i)});case 2:case"end":return e.stop()}},e)})),function(e,t,n){return G.apply(this,arguments)})},{key:"createInputStream",value:function(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}},{key:"read",value:(z=i(regeneratorRuntime.mark(function e(t,n){var o,i,s,u,l,f,h;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:!t[Symbol.asyncIterator]&&t.pipe&&(t=t.pipe(new c)),o=[],i=!0,s=!1,e.prev=4,l=a(t);case 6:return e.next=8,l.next();case 8:return i=(f=e.sent).done,e.next=12,f.value;case 12:if(h=e.sent,i){e.next=19;break}o.push(h);case 16:i=!0,e.next=6;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e.catch(4),s=!0,u=e.t0;case 25:if(e.prev=25,e.prev=26,i||null==l.return){e.next=30;break}return e.next=30,l.return();case 30:if(e.prev=30,!s){e.next=33;break}throw u;case 33:return e.finish(30);case 34:return e.finish(25);case 35:return e.abrupt("return",this.load(r.concat(o),n));case 36:case"end":return e.stop()}},e,this,[[4,21,25,35],[26,,30,34]])})),function(e,t){return z.apply(this,arguments)})},{key:"load",value:(H=i(regeneratorRuntime.mark(function e(t,o){var i,a,s,l,f,h,d,g,b,_,k,S,C,E;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=o&&o.base64?r.from(t.toString(),"base64"):t,a={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},e.next=4,u.loadAsync(i);case 4:s=0,l=Object.values(e.sent.files);case 6:if(!(s<l.length)){e.next=126;break}if((f=l[s]).dir){e.next=123;break}if("/"===(h=f.name)[0]&&(h=h.substr(1)),d=void 0,!h.match(/xl\/media\//)&&!h.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/)){e.next=21;break}return d=new c,e.t0=d,e.next=17,f.async("nodebuffer");case 17:e.t1=e.sent,e.t0.write.call(e.t0,e.t1),e.next=36;break;case 21:if(d=new c({writableObjectMode:!0,readableObjectMode:!0}),g=void 0,!n.browser){e.next=31;break}return e.t2=p,e.next=27,f.async("nodebuffer");case 27:e.t3=e.sent,g=(0,e.t2)(e.t3),e.next=34;break;case 31:return e.next=33,f.async("string");case 33:g=e.sent;case 34:for(b=0;b<g.length;b+=16384)d.write(g.substring(b,b+16384));case 36:d.end(),e.t4=h,e.next="_rels/.rels"===e.t4?40:"xl/workbook.xml"===e.t4?44:"xl/_rels/workbook.xml.rels"===e.t4?53:"xl/s
1haredStrings.xml"===e.t4?57:"xl/styles.xml"===e.t4?61:"docProps/app.xml"===e.t4?65:"docProps/core.xml"===e.t4?72:78;break;case 40:return e.next=42,this.parseRels(d);case 42:return a.globalRels=e.sent,e.abrupt("break",123);case 44:return e.next=46,this.parseWorkbook(d);case 46:return a.sheets=(_=e.sent).sheets,a.definedNames=_.definedNames,a.views=_.views,a.properties=_.properties,a.calcProperties=_.calcProperties,e.abrupt("break",123);case 53:return e.next=55,this.parseRels(d);case 55:return a.workbookRels=e.sent,e.abrupt("break",123);case 57:return a.sharedStrings=new v,e.next=60,a.sharedStrings.parseStream(d);case 60:return e.abrupt("break",123);case 61:return a.styles=new m,e.next=64,a.styles.parseStream(d);case 64:return e.abrupt("break",123);case 65:return k=new w,e.next=68,k.parseStream(d);case 68:return a.company=(S=e.sent).company,a.manager=S.manager,e.abrupt("break",123);case 72:return C=new y,e.next=75,C.parseStream(d);case 75:return Object.assign(a,e.sent),e.abrupt("break",123);case 78:if(!(E=h.match(/xl\/worksheets\/sheet(\d+)[.]xml/))){e.next=83;break}return e.next=82,this._processWorksheetEntry(d,a,E[1],o,h);case 82:return e.abrupt("break",123);case 83:if(!(E=h.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/))){e.next=88;break}return e.next=87,this._processWorksheetRelsEntry(d,a,E[1]);case 87:return e.abrupt("break",123);case 88:if(!(E=h.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))){e.next=93;break}return e.next=92,this._processThemeEntry(d,a,E[1]);case 92:return e.abrupt("break",123);case 93:if(!(E=h.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/))){e.next=98;break}return e.next=97,this._processMediaEntry(d,a,E[1]);case 97:return e.abrupt("break",123);case 98:if(!(E=h.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/))){e.next=103;break}return e.next=102,this._processDrawingEntry(d,a,E[1]);case 102:return e.abrupt("break",123);case 103:if(!(E=h.match(/xl\/(comments\d+)[.]xml/))){e.next=108;break}return e.next=107,this._processCommentEntry(d,a,E[1]);case 107:return e.abrupt("break",123);case 108:if(!(E=h.match(/xl\/tables\/(table\d+)[.]xml/))){e.next=113;break}return e.next=112,this._processTableEntry(d,a,E[1]);case 112:return e.abrupt("break",123);case 113:if(!(E=h.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/))){e.next=118;break}return e.next=117,this._processDrawingRelsEntry(d,a,E[1]);case 117:return e.abrupt("break",123);case 118:if(!(E=h.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/))){e.next=123;break}return e.next=122,this._processVmlDrawingEntry(d,a,E[1]);case 122:return e.abrupt("break",123);case 123:s++,e.next=6;break;case 126:return this.reconcile(a,o),this.workbook.model=a,e.abrupt("return",this.workbook);case 129:case"end":return e.stop()}},e,this)})),function(e,t){return H.apply(this,arguments)})},{key:"addMedia",value:(q=i(regeneratorRuntime.mark(function e(t,n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(n.media.map(function(){var e=i(regeneratorRuntime.mark(function e(n){var r,o,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("image"!==n.type){e.next=13;break}if(r="xl/media/".concat(n.name,".").concat(n.extension),!n.filename){e.next=7;break}return e.next=5,O(n.filename);case 5:return e.abrupt("return",t.append(e.sent,{name:r}));case 7:if(!n.buffer){e.next=9;break}return e.abrupt("return",t.append(n.buffer,{name:r}));case 9:if(!n.base64){e.next=13;break}return i=(o=n.base64).substring(o.indexOf(",")+1),e.abrupt("return",t.append(i,{name:r,base64:!0}));case 13:throw new Error("Unsupported media");case 14:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}},e)})),function(e,t){return q.apply(this,arguments)})},{key:"addDrawings",value:function(e,t){var n=new S,r=new g;t.worksheets.forEach(function(t){var o=t.drawing;if(o){n.prepare(o,{});var i=n.toXml(o);e.append(i,{name:"xl/drawings/".concat(o.name,".xml")}),i=r.toXml(o.rels),e.append(i,{name:"xl/drawings/_rels/".concat(o.name,".xml.rels")})}})}},{key:"addTables",value:function(e,t){var n=new C;
1t.worksheets.forEach(function(t){t.tables.forEach(function(t){n.prepare(t,{});var r=n.toXml(t);e.append(r,{name:"xl/tables/".concat(t.target)})})})}},{key:"addContentTypes",value:(U=i(regeneratorRuntime.mark(function e(t,n){var r,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=new b,o=r.toXml(n),t.append(o,{name:"[Content_Types].xml"});case 3:case"end":return e.stop()}},e)})),function(e,t){return U.apply(this,arguments)})},{key:"addApp",value:(B=i(regeneratorRuntime.mark(function e(t,n){var r,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=new w,o=r.toXml(n),t.append(o,{name:"docProps/app.xml"});case 3:case"end":return e.stop()}},e)})),function(e,t){return B.apply(this,arguments)})},{key:"addCore",value:(F=i(regeneratorRuntime.mark(function e(t,n){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=new y,t.append(r.toXml(n),{name:"docProps/core.xml"});case 2:case"end":return e.stop()}},e)})),function(e,t){return F.apply(this,arguments)})},{key:"addThemes",value:(L=i(regeneratorRuntime.mark(function e(t,n){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=n.themes||{theme1:x},Object.keys(r).forEach(function(e){var n=r[e],o="xl/theme/".concat(e,".xml");t.append(n,{name:o})});case 2:case"end":return e.stop()}},e)})),function(e,t){return L.apply(this,arguments)})},{key:"addOfficeRels",value:(D=i(regeneratorRuntime.mark(function t(n){var r,o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=new g,o=r.toXml([{Id:"rId1",Type:e.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:e.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:e.RelType.ExtenderProperties,Target:"docProps/app.xml"}]),n.append(o,{name:"_rels/.rels"});case 3:case"end":return t.stop()}},t)})),function(e){return D.apply(this,arguments)})},{key:"addWorkbookRels",value:(j=i(regeneratorRuntime.mark(function t(n,r){var o,i,a,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o=1,i=[{Id:"rId".concat(o++),Type:e.RelType.Styles,Target:"styles.xml"},{Id:"rId".concat(o++),Type:e.RelType.Theme,Target:"theme/theme1.xml"}],r.sharedStrings.count&&i.push({Id:"rId".concat(o++),Type:e.RelType.SharedStrings,Target:"sharedStrings.xml"}),r.worksheets.forEach(function(t){t.rId="rId".concat(o++),i.push({Id:t.rId,Type:e.RelType.Worksheet,Target:"worksheets/sheet".concat(t.id,".xml")})}),a=new g,s=a.toXml(i),n.append(s,{name:"xl/_rels/workbook.xml.rels"});case 7:case"end":return t.stop()}},t)})),function(e,t){return j.apply(this,arguments)})},{key:"addSharedStrings",value:(N=i(regeneratorRuntime.mark(function e(t,n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.sharedStrings&&n.sharedStrings.count&&t.append(n.sharedStrings.xml,{name:"xl/sharedStrings.xml"});case 1:case"end":return e.stop()}},e)})),function(e,t){return N.apply(this,arguments)})},{key:"addStyles",value:(M=i(regeneratorRuntime.mark(function e(t,n){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(r=n.styles.xml)&&t.append(r,{name:"xl/styles.xml"});case 2:case"end":return e.stop()}},e)})),function(e,t){return M.apply(this,arguments)})},{key:"addWorkbook",value:(P=i(regeneratorRuntime.mark(function e(t,n){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=new _,t.append(r.toXml(n),{name:"xl/workbook.xml"});case 2:case"end":return e.stop()}},e)})),function(e,t){return P.apply(this,arguments)})},{key:"addWorksheets",value:(I=i(regeneratorRuntime.mark(function e(t,n){var r,o,i,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=new k,o=new g,i=new E,a=new T,n.worksheets.forEach(function(e){var n=new d;r.render(n,e),t.append(n.xml,{name:"xl/worksheets/sheet".concat(e.id,".xml")}),e.rels&&e.rels.length&&(n=new d,o.render(n,e.rels),t.append(n.xml,{name:"xl/worksheets/_rels/sheet".concat(e.id,".xml.rels")})),e.comments.length>0&&(n=new d,i.render(n,e),t.append(n.xml,{name:"xl/comments".concat(e.id,".xml")}),n=new d,a.render(n,e),t.append(n.xml,{name:"xl/drawings/vmlDrawing".concat(e.id,".vml")}))});case 5:case"end":return e.stop()}},e)})),function(e,t){return I.apply(this,arguments)})},{key:"_finalize",value:function(e){var t=this;return new Promise(function(n,r){e.on("finish",function(){n(t)}),e.on("error",r),e.finalize()})}},{key:"prepareModel",value:function(e,t){e.creator=e.creator||"ExcelJS",e.lastModifiedBy=e.lastModifiedBy||"ExcelJS",e.created=e.created||new Date,e.modified=e.modified||new Date,e.useSharedStrings=void 0===t.useSharedStrings||t.useSharedStrings,e.useStyles=void 0===t.useStyles||t.useStyles,e.sharedStrings=new v,e.styles=e.useStyles?new m(!0):new m.Mock;var n=new _,r=new k;n.prepare(e);var o={sharedStrings:e.sharedStrings,styles:e.styles,date1904:e.properties.date1904,drawingsCount:0,media:e.media};o.drawings=e.drawings=[],o.commentRefs=e.commentRefs=[];var i=0;
1e.tables=[],e.worksheets.forEach(function(t){t.tables.forEach(function(t){i++,t.target="table".concat(i,".xml"),t.id=i,e.tables.push(t)}),r.prepare(t,o)})}},{key:"write",value:(R=i(regeneratorRuntime.mark(function e(t,n){var r,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.workbook.model,(o=new l.ZipWriter((n=n||{}).zip)).pipe(t),this.prepareModel(r,n),e.next=7,this.addContentTypes(o,r);case 7:return e.next=9,this.addOfficeRels(o,r);case 9:return e.next=11,this.addWorkbookRels(o,r);case 11:return e.next=13,this.addWorksheets(o,r);case 13:return e.next=15,this.addSharedStrings(o,r);case 15:return e.next=17,this.addDrawings(o,r);case 17:return e.next=19,this.addTables(o,r);case 19:return e.next=21,Promise.all([this.addThemes(o,r),this.addStyles(o,r)]);case 21:return e.next=23,this.addMedia(o,r);case 23:return e.next=25,Promise.all([this.addApp(o,r),this.addCore(o,r)]);case 25:return e.next=27,this.addWorkbook(o,r);case 27:return e.abrupt("return",this._finalize(o));case 28:case"end":return e.stop()}},e,this)})),function(e,t){return R.apply(this,arguments)})},{key:"writeFile",value:function(e,t){var n=this,r=s.createWriteStream(e);return new Promise(function(e,o){r.on("finish",function(){e()}),r.on("error",function(e){o(e)}),n.write(r,t).then(function(){r.end()})})}},{key:"writeBuffer",value:(A=i(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=new f,e.next=3,this.write(n,t);case 3:return e.abrupt("return",n.read());case 4:case"end":return e.stop()}},e,this)})),function(e){return A.apply(this,arguments)})}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,o),e}();A.RelType=e("./rel-type"),t.exports=A}).call(this,e("_process"),e("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":23,"../utils/utils":26,"../utils/xml-stream":27,"../utils/zip-stream":28,"./rel-type":30,"./xform/book/workbook-xform":37,"./xform/comment/comments-xform":39,"./xform/comment/vml-notes-xform":44,"./xform/core/app-xform":50,"./xform/core/content-types-xform":51,"./xform/core/core-xform":52,"./xform/core/relationships-xform":54,"./xform/drawing/drawing-xform":61,"./xform/sheet/worksheet-xform":114,"./xform/strings/shared-strings-xform":123,"./xform/style/styles-xform":134,"./xform/table/table-xform":140,"./xml/theme1.js":142,_process:467,buffer:216,fs:215,jszip:399,"readable-stream":491}],142:[function(e,t,n
vendor: 8,099 bytes, line 1
1){"use strict";t.exports='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/> <a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/> <a:font script="Hans" typeface="\u5b8b\u4f53"/> <a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/> <a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/> <a:font script="Hans" typeface="\u5b8b\u4f53"/> <a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>'},{}],14
13:[function(e,t,n){(function(t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.CsvFormatterStream=void 0;var u=e("stream"),c=e("./formatter"),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(a,e);var n,r=i(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=r.call(this,{writableObjectMode:e.objectMode})).hasWrittenBOM=!1,t.formatterOptions=e,t.rowFormatter=new c.RowFormatter(e),t.hasWrittenBOM=!e.writeBOM,t}return(n=[{key:"transform",value:function(e){return this.rowFormatter.rowTransform=e,this}},{key:"_transform",value:function(e,n,r){var o=this,i=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(e,function(e,n){return e?(i=!0,r(e)):(n&&n.forEac
1h(function(e){o.push(t.from(e,"utf8"))}),i=!0,r())})}catch(e){if(i)throw e;r(e)}}},{key:"_flush",value:function(e){var n=this;this.rowFormatter.finish(function(r,o){return r?e(r):(o&&o.forEach(function(e){n.push(t.from(e,"utf8"))}),e())})}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(a.prototype,n),a}(u.Transform);n.CsvFormatterStream=l}).call(this,e("buffer").Buffer)},{"./formatter":147,buffer:216,stream:506}],144:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0}),n.FormatterOptions=void 0,n.FormatterOptions=function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),this.objectMode=!0,this.delimiter=",",this.rowDelimiter="\n",this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\ufeff",this.alwaysWriteHeaders=!1,Object.assign(this,n||{}),void 0===(null==n?void 0:n.quoteHeaders)&&(this.quoteHeaders=this.quoteColumns),!0===(null==n?void 0:n.quote)?this.quote='"':!1===(null==n?void 0:n.quote)&&(this.quote=""),"string"!=typeof(null==n?void 0:n.escape)&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&(null===(t=n.writeHeaders)||void 0===t||t),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote="".concat(this.escape).concat(this.quote)}},{}],145:[function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.FieldFormatter=void 0;var o=r(e("lodash.isboolean")),i=r(e("lodash.isnil")),a=r(e("lodash.escaperegexp")),s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._headers=null,this.formatterOptions=t,null!==t.headers&&(this.headers=t.headers),this.REPLACE_REGEXP=new RegExp(t.quote,"g");var n="[".concat(t.delimiter).concat(a.default(t.rowDelimiter),"|\r|\n']");this.ESCAPE_REGEXP=new RegExp(n)}var t;return(t=[{key:"shouldQuote",value:function(e,t){var n=t?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return o.default(n)?n:Array.isArray(n)?n[e]:null!==this._headers&&n[this._headers[e]]}},{key:"format",value:function(e,t,n){var r="".concat(i.default(e)?"":e).replace(/\0/g,""),o=this.formatterOptions;return""!==o.quote&&-1!==r.indexOf(o.quote)?this.quoteField(r.replace(this.REPLACE_REGEXP,o.escapedQuote)):-1!==r.search(this.ESCAPE_REGEXP)||this.shouldQuote(t,n)?this.quoteField(r):r}},{key:"quoteField",value:function(e){var t=this.formatterOptions.quote;return"".concat(t).concat(e).concat(t)}},{key:"headers",set:function(e){this._headers=e}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();n.FieldFormatter=s},{"lodash.escaperegexp":426,"lodash.isboolean":428,"lodash.isnil":431}],146:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.RowFormatter=void 0;var i=o(e("lodash.isfunction")),a=o(e("lodash.isequal")),s=e("./FieldFormatter"),u=e("../types"),c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.rowCount=0,this.formatterOptions=t,this.fieldFormatter=new s.FieldFormatter(t),this.headers=t.headers,this.shouldWriteHeaders=t.shouldWriteHeaders,this.hasWrittenHeaders=!1,null!==this.headers&&(this.fieldFormatter.headers=this.headers),t.transform&&(this.rowTransform=t.transform)}var t,n,o;return t=e,o=[{key:"isHashArray",value:function(e){return!!Array.isArray(e)&&Array.isArray(e[0])&&2===e[0].length}},{key:"gatherHeaders",value:function(t){return e.isHashArray(t)?t.map(function(e){return e[0]}):Array.isArray(t)?t:Object.keys(t)}},{key:"createTransform",value:function(e){return u.isSyncTransform(e)?function(t,n){var r=null;try{r=e(t)}catch(e){return n(e)}return n(null,r)}:function(t,n){e(t,n)}}}],(n=[{key:"format",value:function(e,t){var n=this;this.callTransformer(e,function(r,o){if(r)return t(r);if(!e)return t(null);var i=[];if(o){var a=n.checkHeaders(o),s=a.shouldFormatColumns,u=a.headers;if(n.shouldWriteHeaders&&u&&!n.hasWrittenHeaders&&(i.push(n.formatColumns(u,!0)),n.hasWrittenHeaders=!0),s){var c=n.gatherColumns(o);i.push(n.formatColumns(c,!1))}}return t(null,i)})}},{key:"finish",value:function(e){var t=[];if(this.formatterOptions.alwaysWriteHeaders&&0===this.rowCount){if(!this.headers)return e(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));t.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&t.push(this.formatterOptions.rowDelimiter),e(null,t)}},{key:"checkHeaders",value:function(t){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};var n=e.gatherHeaders(t);return this.headers=n,this.fieldFormatter.headers=n,this.shouldWriteHeaders?{shouldFormatColumns:!a.default(n,t),headers:n}:{shouldFormatColumns:!0,headers:null}}},{key:"gatherColumns",value:function(t){if(null===this.headers)throw new Error("Headers is currently null");return Array.isArray(t)?e.isHashArray(t)?this.headers.map(function(e,n){var r=t[n];return r?r[1]:""}):this.headers.map(function(e,n){return t[n]}):this.headers.map(function(e){return t[e]})}},{key:"callTransformer",value:function(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}},{key:"formatColumns",value:function(e,t){var n=this,r=e.map(function(e,r){return n.fieldFormatter.format(e,r,t)}).join(this.formatterOptions.delimiter),o=this.rowCount;return this.rowCount+=1,o?[this.formatterOptions.rowDelimiter,r].join(""):r}},{key:"rowTransform",set:function(t){if(!i.default(t))throw new TypeError("The transform should be a function");this._rowTransform=e.createTransform(t)}}])&&r(t.prototype,n),o&&r(t,o),e}();n.RowFormatter=c},{"../types":149,"./FieldFormatter":145,"lodash.isequal":429,"lodash.isfunction":430}],147:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./RowFormatter");Object.defineProperty(n,"RowFormatter",{enumerable:!0,get:function(){return r.RowFormatter}});var o=e("./FieldFormatter");Object.defineProperty(n,"FieldFormatter",{enumerable:!0,get:function(){return o.FieldFormatter}})},{"./FieldFormatter":145,"./RowFormatter":146}],148:[function(e,t,n){(function(t){"use strict";var r=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(n,"__esModule",{value:!0}),n.writeToPath=n.writeToString=n.writeToBuffer=n.writeToStream=n.write=n.format=void 0;
1var i=e("util"),a=e("stream"),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(e("fs")),u=e("./FormatterOptions"),c=e("./CsvFormatterStream");!function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)}(e("./types"),n);var l=e("./CsvFormatterStream");Object.defineProperty(n,"CsvFormatterStream",{enumerable:!0,get:function(){return l.CsvFormatterStream}});var f=e("./FormatterOptions");Object.defineProperty(n,"FormatterOptions",{enumerable:!0,get:function(){return f.FormatterOptions}}),n.format=function(e){return new c.CsvFormatterStream(new u.FormatterOptions(e))},n.write=function(e,t){var r=n.format(t),o=i.promisify(function(e,t){r.write(e,void 0,t)});return e.reduce(function(e,t){return e.then(function(){return o(t)})},Promise.resolve()).then(function(){return r.end()}).catch(function(e){r.emit("error",e)}),r},n.writeToStream=function(e,t,r){return n.write(t,r).pipe(e)},n.writeToBuffer=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[],i=new a.Writable({write:function(e,t,n){o.push(e),n()}});return new Promise(function(a,s){i.on("error",s).on("finish",function(){return a(t.concat(o))}),n.write(e,r).pipe(i)})},n.writeToString=function(e,t){return n.writeToBuffer(e,t).then(function(e){return e.toString()})},n.writeToPath=function(e,t,r){var o=s.createWriteStream(e,{encoding:"utf8"});return n.write(t,r).pipe(o)}}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":143,"./FormatterOptions":144,"./types":149,buffer:216,fs:215,stream:506,util:525}],149:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isSyncTransform=void 0,n.isSyncTransform=function(e){return 1===e.length}},{}],150:[function(e,t,n){(function(t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,n){return(o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=s(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.CsvParserStream=void 0;var u=e("string_decoder"),c=e("stream"),l=e("./transforms"),f=e("./parser"),h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(c,e);var n,r=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=r.call(this,{objectMode:e.objectMode})).lines="",t.rowCount=0,t.parsedRowCount=0,t.parsedLineCount=0,t.endEmitted=!1,t.headersEmitted=!1,t.parserOptions=e,t.parser=new f.Parser(e),t.headerTransformer=new l.HeaderTransformer(e),t.decoder=new u.StringDecoder(e.encoding),t.rowTransformerValidator=new l.RowTransformerValidator,t}return(n=[{key:"transform",value:function(e){return this.rowTransformerValidator.rowTransform=e,this}},{key:"validate",value:function(e){return this.rowTransformerValidator.rowValidator=e,this}},{key:"emit",value:function(e){var t;if("end"===e)return this.endEmitted||(this.endEmitted=!0,o(s(c.prototype),"emit",this).call(this,"end",this.rowCount)),!1;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=o(s(c.prototype),"emit",this)).call.apply(t,[this,e].concat(r))}},{key:"_transform",value:function(e,t,n){if(this.hasHitRowLimit)return n();try{var r=this.lines+this.decoder.write(e),o=this.parse(r,!0);return this.processRows(o,n)}catch(e){return n(e)}}},{key:"_flush",value:function(e){if(this.hasHitRowLimit)return e();try{var t=this.lines+this.decoder.end(),n=this.parse(t,!1);return this.processRows(n,e)}catch(t){return e(t)}}},{key:"parse",value:function(e,t){if(!e)return[];var n=this.parser.parse(e,t),r=n.rows;return this.lines=n.line,r}},{key:"processRows",value:function(e,n){var r=this,o=e.length;!function i(a){var s=function(e){return e?n(e):a%100!=0?i(a+1):void t(function(){return i(a+1)})};if(r.checkAndEmitHeaders(),a>=o||r.hasHitRowLimit)return n();if(r.parsedLineCount+=1,r.shouldSkipLine)return s();var u=e[a];r.rowCount+=1,r.parsedRowCount+=1;var c=r.rowCount;return r.transformRow(u,function(e,t){if(e)return r.rowCount-=1,s(e);if(!t)return s(new Error("expected transform result"));if(t.isValid){if(t.row)return r.pushRow(t.row,s)}else r.emit("data-invalid",t.row,c,t.reason);return s()})}(0)}},{key:"transformRow",value:function(e,t){var n=this;try{this.headerTransformer.transform(e,function(r,o){return r?t(r):o?o.isValid?o.row?n.shouldEmitRows?n.rowTransformerValidator.transformAndValidate(o.row,t):n.skipRow(t):(n.rowCount-=1,n.parsedRowCount-=1,t(null,{row:null,isValid:!0})):n.shouldEmitRows?t(null,{isValid:!1,row:e}):n.skipRow(t):t(new Error("Expected result from header transform"))})}catch(e){t(e)}}},{key:"checkAndEmitHeaders",value:function(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit
1("headers",this.headerTransformer.headers))}},{key:"skipRow",value:function(e){return this.rowCount-=1,e(null,{row:null,isValid:!0})}},{key:"pushRow",value:function(e,t){try{this.push(this.parserOptions.objectMode?e:JSON.stringify(e)),t()}catch(e){t(e)}}},{key:"hasHitRowLimit",get:function(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}},{key:"shouldEmitRows",get:function(){return this.parsedRowCount>this.parserOptions.skipRows}},{key:"shouldSkipLine",get:function(){return this.parsedLineCount<=this.parserOptions.skipLines}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(c.prototype,n),c}(c.Transform);n.CsvParserStream=h}).call(this,e("timers").setImmediate)},{"./parser":162,"./transforms":165,stream:506,string_decoder:520,timers:521}],151:[function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.ParserOptions=void 0;var o=r(e("lodash.escaperegexp")),i=r(e("lodash.isnil"));n.ParserOptions=function e(t){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,t||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=o.default(this.delimiter),this.escapeChar=null!==(n=this.escape)&&void 0!==n?n:this.quote,this.supportsComments=!i.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp("([^\\s]|\\r\\n|\\n|\\r|".concat(this.escapedDelimiter,")")),this.maxRows>0&&(this.limitRows=!0)}},{"lodash.escaperegexp":426,"lodash.isnil":431}],152:[function(e,t,n){"use strict";var r=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(n,"__esModule",{value:!0}),n.parseString=n.parseFile=n.parseStream=n.parse=void 0;var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(e("fs")),a=e("stream"),s=e("./ParserOptions"),u=e("./CsvParserStream");!function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)}(e("./types"),n);var c=e("./CsvParserStream");Object.defineProperty(n,"CsvParserStream",{enumerable:!0,get:function(){return c.CsvParserStream}});var l=e("./ParserOptions");Object.defineProperty(n,"ParserOptions",{enumerable:!0,get:function(){return l.ParserOptions}}),n.parse=function(e){return new u.CsvParserStream(new s.ParserOptions(e))},n.parseStream=function(e,t){return e.pipe(new u.CsvParserStream(new s.ParserOptions(t)))},n.parseFile=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.createReadStream(e).pipe(new u.CsvParserStream(new s.ParserOptions(t)))},n.parseString=function(e,t){var n=new a.Readable;return n.push(e),n.push(null),n.pipe(new u.CsvParserStream(new s.ParserOptions(t)))}},{"./CsvParserStream":150,"./ParserOptions":151,"./types":166,fs:215,stream:506}],153:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0}),n.Parser=void 0;var o=e("./Scanner"),i=e("./RowParser"),a=e("./Token"),s=/^\s*(?:''|"")?\s*(?:,\s*(?:''|"")?\s*)*$/,u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parserOptions=t,this.rowParser=new i.RowParser(this.parserOptions)}var t,n,u;return t=e,u=[{key:"removeBOM",value:function(e){return e&&65279===e.charCodeAt(0)?e.slice(1):e}}],(n=[{key:"parse",value:function(t,n){var r=new o.Scanner({line:e.removeBOM(t),parserOptions:this.parserOptions,hasMoreData:n});return this.parserOptions.supportsComments?this.parseWithComments(r):this.parseWithoutComments(r)}},{key:"parseWithoutComments",value:function(e){for(var t=[],n=!0;n;)n=this.parseRow(e,t);return{line:e.line,rows:t}}},{key:"parseWithComments",value:function(e){for(var t=this.parserOptions,n=[],r=e.nextCharacterToken;null!==r;
1r=e.nextCharacterToken)if(a.Token.isTokenComment(r,t)){if(null===e.advancePastLine())return{line:e.lineFromCursor,rows:n};if(!e.hasMoreCharacters)return{line:e.lineFromCursor,rows:n};e.truncateToCursor()}else if(!this.parseRow(e,n))break;return{line:e.line,rows:n}}},{key:"parseRow",value:function(e,t){if(!e.nextNonSpaceToken)return!1;var n=this.rowParser.parse(e);return null!==n&&(this.parserOptions.ignoreEmpty&&s.test(n.join(""))||t.push(n),!0)}}])&&r(t.prototype,n),u&&r(t,u),e}();n.Parser=u},{"./RowParser":154,"./Scanner":155,"./Token":156}],154:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.RowParser=void 0;var r=e("./column"),o=e("./Token").Token,i=o.isTokenRowDelimiter,a=o.isTokenCarriageReturn,s=o.isTokenDelimiter,u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parserOptions=t,this.columnParser=new r.ColumnParser(t)}var t;return(t=[{key:"parse",value:function(e){for(var t=this.parserOptions,n=e.hasMoreData,r=e,o=[],s=this.getStartToken(r,o);s;){if(i(s))return r.advancePastToken(s),!r.hasMoreCharacters&&a(s,t)&&n?null:(r.truncateToCursor(),o);if(!this.shouldSkipColumnParse(r,s,o)){var u=this.columnParser.parse(r);if(null===u)return null;o.push(u)}s=r.nextNonSpaceToken}return n?null:(r.truncateToCursor(),o)}},{key:"getStartToken",value:function(e,t){var n=e.nextNonSpaceToken;return null!==n&&s(n,this.parserOptions)?(t.push(""),e.nextNonSpaceToken):n}},{key:"shouldSkipColumnParse",value:function(e,t,n){var r=this.parserOptions;if(s(t,r)){e.advancePastToken(t);var o=e.nextCharacterToken;if(!e.hasMoreCharacters||null!==o&&i(o))return n.push(""),!0;if(null!==o&&s(o,r))return n.push(""),!0}return!1}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();n.RowParser=u},{"./Token":156,"./column":161}],155:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Scanner=void 0;var r=e("./Token"),o=/((?:\r\n)|\n|\r)/,i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cursor=0,this.line=t.line,this.lineLength=this.line.length,this.parserOptions=t.parserOptions,this.hasMoreData=t.hasMoreData,this.cursor=t.cursor||0}var t;return(t=[{key:"advancePastLine",value:function(){var e=o.exec(this.lineFromCursor);return e?(this.cursor+=(e.index||0)+e[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}},{key:"advanceTo",value:function(e){return this.cursor=e,this}},{key:"advanceToToken",value:function(e){return this.cursor=e.startCursor,this}},{key:"advancePastToken",value:function(e){return this.cursor=e.endCursor+1,this}},{key:"truncateToCursor",value:function(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}},{key:"hasMoreCharacters",get:function(){return this.lineLength>this.cursor}},{key:"nextNonSpaceToken",get:function(){var e=this.lineFromCursor,t=this.parserOptions.NEXT_TOKEN_REGEXP;if(-1===e.search(t))return null;var n=t.exec(e);if(null==n)return null;var o=n[1],i=this.cursor+(n.index||0);return new r.Token({token:o,startCursor:i,endCursor:i+o.length-1})}},{key:"nextCharacterToken",get:function(){var e=this.cursor;return this.lineLength<=e?null:new r.Token({token:this.line[e],startCursor:e,endCursor:e})}},{key:"lineFromCursor",get:function(){return this.line.substr(this.cursor)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();n.Scanner=i},{"./Token":156}],156:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Token=void 0;var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.token=t.token,this.startCursor=t.startCursor,this.endCursor=t.endCursor}var t;return(t=[{key:"isTokenRowDelimiter",value:function(e){var t=e.token;return"\r"===t||"\n"===t||"\r\n"===t}},{key:"isTokenCarriageReturn",value:function(e,t){return e.token===t.carriageReturn}},{key:"isTokenComment",value:function(e,t){return t.supportsComments&&!!e&&e.token===t.comment}},{key:"isTokenEscapeCharacter",value:function(e,t){return e.token===t.escapeChar}},{key:"isTokenQuote",value:function(e,t){return e.token===t.quote}},{key:"isTokenDelimiter",value:function(e,t){return e.token===t.delimiter}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e,t),e}();n.Token=r},{}],157:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ColumnFormatter=void 0,n.ColumnFormatter=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.format=t.trim?function(e){return e.trim()}:t.ltrim?function(e){return e.trimLeft()}:t.rtrim?function(e){return e.trimRight()}:function(e){return e}}},{}],158:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ColumnParser=void 0;var r=e("./NonQuotedColumnParser"),o=e("./QuotedColumnParser"),i=e("../Token"),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parserOptions=t,this.quotedColumnParser=new o.QuotedColumnParser(t),this.nonQuotedColumnParser=new r.NonQuotedColumnParser(t)}var t;return(t=[{key:"parse",value:function(e){var t=e.nextNonSpaceToken;return null!==t&&i.Token.isTokenQuote(t,this.parserOptions)?(e.advanceToToken(t),this.quotedColumnParser.parse(e)):this.nonQuotedColumnParser.parse(e)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();n.ColumnParser=a},{"../Token":156,"./NonQuotedColumnParser":159,"./QuotedColumnParser":160}],159:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NonQuotedColumnParser=void 0;var r=e("./ColumnFormatter"),o=e("../Token").Token,i=o.isTokenDelimiter,a=o.isTokenRowDelimiter,s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parserOptions=t,this.columnFormatter=new r.ColumnFormatter(t)}var t;return(t=[{key:"parse",value:function(e){if(!e.hasMoreCharacters)return null;for(var t=this.parserOptions,n=[],r=e.nextCharacterToken;r&&!i(r,t)&&!a(r);r=e.nextCharacterToken)n.push(r.token),e.advancePastToken(r);return this.columnFormatter.format(n.join(""))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();n.NonQuotedColumnParser=s},{"../Token":156,"./ColumnFormatter":157}],160:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.QuotedColumnParser=void 0;var r=e("./ColumnFormatter"),o=e("../Token").Token,i=o.isTokenDelimiter,a=o.isTokenRowDelimiter,s=o.isTokenEscapeCharacter,u=o.isTokenQuote,c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parserOptions=t,this.columnFormatter=new r.ColumnFormatter(t)}var t;return(t=[{key:"parse",value:function(e){if(!e.hasMoreCharacters)return null;
1var t=e.cursor,n=this.gatherDataBetweenQuotes(e),r=n.col;if(!n.foundClosingQuote){if(e.advanceTo(t),!e.hasMoreData)throw new Error("Parse Error: missing closing: '".concat(this.parserOptions.quote||"","' in line: at '").concat(e.lineFromCursor.replace(/[\r\n]/g,"\\n'"),"'"));return null}return this.checkForMalformedColumn(e),r}},{key:"gatherDataBetweenQuotes",value:function(e){for(var t=this.parserOptions,n=!1,r=!1,o=[],i=e.nextCharacterToken;!r&&null!==i;i=e.nextCharacterToken){var a=u(i,t);if(!n&&a)n=!0;else if(n)if(s(i,t)){e.advancePastToken(i);var c=e.nextCharacterToken;null!==c&&(u(c,t)||s(c,t))?(o.push(c.token),i=c):a?r=!0:o.push(i.token)}else a?r=!0:o.push(i.token);e.advancePastToken(i)}return{col:this.columnFormatter.format(o.join("")),foundClosingQuote:r}}},{key:"checkForMalformedColumn",value:function(e){var t=this.parserOptions,n=e.nextNonSpaceToken;if(n){var r=i(n,t),o=a(n);if(!r&&!o){var s=e.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error("Parse Error: expected: '".concat(t.escapedDelimiter,"' OR new line got: '").concat(n.token,"'. at '").concat(s))}e.advanceToToken(n)}else e.hasMoreData||e.advancePastLine()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();n.QuotedColumnParser=c},{"../Token":156,"./ColumnFormatter":157}],161:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./ColumnParser");Object.defineProperty(n,"ColumnParser",{enumerable:!0,get:function(){return r.ColumnParser}});var o=e("./NonQuotedColumnParser");Object.defineProperty(n,"NonQuotedColumnParser",{enumerable:!0,get:function(){return o.NonQuotedColumnParser}});var i=e("./QuotedColumnParser");Object.defineProperty(n,"QuotedColumnParser",{enumerable:!0,get:function(){return i.QuotedColumnParser}});var a=e("./ColumnFormatter");Object.defineProperty(n,"ColumnFormatter",{enumerable:!0,get:function(){return a.ColumnFormatter}})},{"./ColumnFormatter":157,"./ColumnParser":158,"./NonQuotedColumnParser":159,"./QuotedColumnParser":160}],162:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./Parser");Object.defineProperty(n,"Parser",{enumerable:!0,get:function(){return r.Parser}});var o=e("./RowParser");Object.defineProperty(n,"RowParser",{enumerable:!0,get:function(){return o.RowParser}});var i=e("./Scanner");Object.defineProperty(n,"Scanner",{enumerable:!0,get:function(){return i.Scanner}});var a=e("./Token");Object.defineProperty(n,"Token",{enumerable:!0,get:function(){return a.Token}});var s=e("./column");Object.defineProperty(n,"ColumnParser",{enumerable:!0,get:function(){return s.ColumnParser}}),Object.defineProperty(n,"NonQuotedColumnParser",{enumerable:!0,get:function(){return s.NonQuotedColumnParser}}),Object.defineProperty(n,"QuotedColumnParser",{enumerable:!0,get:function(){return s.QuotedColumnParser}})},{"./Parser":153,"./RowParser":154,"./Scanner":155,"./Token":156,"./column":161}],163:[function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.HeaderTransformer=void 0;var o=r(e("lodash.isundefined")),i=r(e("lodash.isfunction")),a=r(e("lodash.uniq")),s=r(e("lodash.groupby")),u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=t,!0===t.headers?this.shouldUseFirstRow=!0:Array.isArray(t.headers)?this.setHeaders(t.headers):i.default(t.headers)&&(this.headersTransform=t.headers)}var t;return(t=[{key:"transform",value:function(e,t){return this.shouldMapRow(e)?t(null,this.processRow(e)):t(null,{row:null,isValid:!0})}},{key:"shouldMapRow",value:function(e){if(!this.headersTransform&&this.parserOptions.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(e)){if(this.headersTransform)this.setHeaders(this.headersTransform(e));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(e)}return!1}return!0}},{key:"processRow",value:function(e){if(!this.headers)return{row:e,isValid:!0};var t=this.parserOptions;if(!t.discardUnmappedColumns&&e.length>this.headersLength){if(!t.strictColumnHandling)throw new Error("Unexpected Error: column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(e.length));return{row:e,isValid:!1,reason:"Column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(e.length)}}return t.strictColumnHandling&&e.length<this.headersLength?{row:e,isValid:!1,reason:"Column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(e.length)}:{row:this.mapHeaders(e),isValid:!0}}},{key:"mapHeaders",value:function(e){for(var t={}
1,n=this.headers,r=this.headersLength,i=0;i<r;i+=1){var a=n[i];if(!o.default(a)){var s=e[i];t[a]=o.default(s)?"":s}}return t}},{key:"setHeaders",value:function(e){var t,n=e.filter(function(e){return!!e});if(a.default(n).length!==n.length){var r=s.default(n),o=Object.keys(r).filter(function(e){return r[e].length>1});throw new Error("Duplicate headers found ".concat(JSON.stringify(o)))}this.headers=e,this.receivedHeaders=!0,this.headersLength=(null===(t=this.headers)||void 0===t?void 0:t.length)||0}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();n.HeaderTransformer=u},{"lodash.groupby":427,"lodash.isfunction":430,"lodash.isundefined":432,"lodash.uniq":433}],164:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0}),n.RowTransformerValidator=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(e("lodash.isfunction")),i=e("../types"),a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._rowTransform=null,this._rowValidator=null}var t,n,a;return t=e,a=[{key:"createTransform",value:function(e){return i.isSyncTransform(e)?function(t,n){var r=null;try{r=e(t)}catch(e){return n(e)}return n(null,r)}:e}},{key:"createValidator",value:function(e){return i.isSyncValidate(e)?function(t,n){n(null,{row:t,isValid:e(t)})}:function(t,n){e(t,function(e,r,o){return e?n(e):n(null,r?{row:t,isValid:r,reason:o}:{row:t,isValid:!1,reason:o})})}}}],(n=[{key:"transformAndValidate",value:function(e,t){var n=this;return this.callTransformer(e,function(e,r){return e?t(e):r?n.callValidator(r,function(e,n){return e?t(e):t(null,n&&!n.isValid?{row:r,isValid:!1,reason:n.reason}:{row:r,isValid:!0})}):t(null,{row:null,isValid:!0})})}},{key:"callTransformer",value:function(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}},{key:"callValidator",value:function(e,t){return this._rowValidator?this._rowValidator(e,t):t(null,{row:e,isValid:!0})}},{key:"rowTransform",set:function(t){if(!o.default(t))throw new TypeError("The transform should be a function");this._rowTransform=e.createTransform(t)}},{key:"rowValidator",set:function(t){if(!o.default(t))throw new TypeError("The validate should be a function");this._rowValidator=e.createValidator(t)}}])&&r(t.prototype,n),a&&r(t,a),e}();n.RowTransformerValidator=a},{"../types":166,"lodash.isfunction":430}],165:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./RowTransformerValidator");Object.defineProperty(n,"RowTransformerValidator",{enumerable:!0,get:function(){return r.RowTransformerValidator}});var o=e("./HeaderTransformer");Object.defineProperty(n,"HeaderTransformer",{enumerable:!0,get:function(){return o.HeaderTransformer}})},{"./HeaderTransformer":163,"./RowTransformerValidator":164}],166:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isSyncValidate=n.isSyncTransform=void 0,n.isSyncTransform=function(e){return 1===e.length},n.isSyncValidate=function(e){return 1===e.length}},{}],167:[function(e,t,n){"use strict";var r=n;
vendor: 25,185 bytes, line 1
1r.bignum=e("bn.js"),r.define=e("./asn1/api").define,r.base=e("./asn1/base"),r.constants=e("./asn1/constants"),r.decoders=e("./asn1/decoders"),r.encoders=e("./asn1/encoders")},{"./asn1/api":168,"./asn1/base":170,"./asn1/constants":174,"./asn1/decoders":176,"./asn1/encoders":179,"bn.js":181}],168:[function(e,t,n){"use strict";var r=e("./encoders"),o=e("./decoders"),i=e("inherits");function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}n.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){var t=this.name;function n(e){this._initNamed(e,t)}return i(n,e),n.prototype._initNamed=function(t,n){e.call(this,t,n)},new n(this)},a.prototype._getDecoder=function(e){return this.decoders.hasOwnProperty(e=e||"der")||(this.decoders[e]=this._createNamed(o[e])),this.decoders[e]},a.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},a.prototype._getEncoder=function(e){return this.encoders.hasOwnProperty(e=e||"der")||(this.encoders[e]=this._createNamed(r[e])),this.encoders[e]},a.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},{"./decoders":176,"./encoders":179,inherits:387}],169:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=e("inherits"),i=e("../base/reporter").Reporter,a=e("safer-buffer").Buffer;function s(e,t){i.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function u(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return u.isEncoderBuffer(e)||(e=new u(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+r(e));this.value=e,this.length=e.length}}o(s,i),n.DecoderBuffer=s,s.isDecoderBuffer=function(e){return e instanceof s||"object"===r(e)&&a.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},s.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},s.prototype.restore=function(e){var t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var n=new s(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},n.EncoderBuffer=u,u.isEncoderBuffer=function(e){return e instanceof u||"object"===r(e)&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},u.prototype.join=function(e,t){return e||(e=a.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,t),t+=n.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{"../base/reporter":172,inherits:387,"safer-buffer":495}],170:[function(e,t,n){"use strict";var r=n;r.Reporter=e("./reporter").Reporter,r.DecoderBuffer=e("./buffer").DecoderBuffer,r.EncoderBuffer=e("./buffer").EncoderBuffer,r.Node=e("./node")},{"./buffer":169,"./node":171,"./reporter":172}],171:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=e("../base/reporter").Reporter,i=e("../base/buffer").EncoderBuffer,a=e("../base/buffer").DecoderBuffer,s=e("minimalistic-assert"),u=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(u);function l(e,t,n){var r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=l;var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){var e=this._baseState,t={};f.forEach(function(n){t[n]=e[n]});var n=new this.constructor(t.parent);return n._baseState=t,n},l.prototype._wrap=function(){var e=this._baseState;c.forEach(function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}},this)},l.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),s.equal(t.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(e){var t=this._baseState,n=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==n.length&&(s(null===t.children),t.children=n,n.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!==r(e)||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(n){n==(0|n)&&(n|=0),t[e[n]]=n}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){l.prototype[e]=function(){throw new Error(e+" not implemented for encoding: "+this._baseState.enc)}}),u.forEach(function(e){l.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(n),this}}),l.prototype.use=function(e){s(e);var t=this._baseState;return s(null===t.use),t.use=e,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(e){var t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},l.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},l.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},l.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},l.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},l.prototype.contains=function(e){var t=this._baseState;return s(null===t.use),t.contains=e,this},l.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r,o=n.default,i=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var u=null;if(null!==n.explicit?u=n.explicit:null!==n.implicit?u=n.implicit:null!==n.tag&&(u=n.tag),null!==u||n.any){if(i=this._peekTag(e,u,n.any),e.isError(i))return i}else{var c=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),i=!0}catch(e){i=!1}e.restore(c)}}if(n.obj&&i&&(r=e.enterObject()),i){if(null!==n.explicit){var l=this._decodeTag(e,n.explicit);if(e.isError(l))return l;e=l}var f=e.offset;if(null===n.use&&null===n.choice){var h;n.any&&(h=e.save());var d=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(d))return d;n.any?o=e.raw(h):e=d}if(t&&t.track&&null!==n.tag&&t.track(e.path(),f,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(o=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(o))return o;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(n){n._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var p=new a(o);o=this._getUse(n.contains,e._reporterState.obj)._decode(p,t)}}return n.obj&&i&&(o=e.leaveObject(r)),null===n.key||null===o&&!0!==i?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,o),o},l.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},l.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),s(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},l.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,o=!1;return Object.keys(n.choice).some(function(i){var a=e.save(),s=n.choice[i];try{var u=s._decode(e,t);if(e.isError(u))return!1;r={type:i,value:u},o=!0}catch(t){return e.restore(a),!1}return!0},this),o?r:e.error("Choice not matched")},l.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},l.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var o=this._encodeValue(e,t,n);if(void 0!==o&&!this._skipDefault(o,t,n))return o}},l.prototype._encodeValue=function(e,t,n){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new o);var a=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var s=null,u=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,t);else if(i.contains)s=this._getUse(i.contains,n)._encode(e,t),u=!0;else if(i.children)s=i.children.map(function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var o=t.enterKey(n._baseState.key);if("object"!==r(e))return t.error("Child expected, but input is not object");var i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(o),i},this).filter(function(e){return e}),s=this._createEncoderBuffer(s);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(n){return this._getUse(this._baseState.args[0],e)._encode(n,t)},c))}else null!==i.use?a=this._getUse(i.use,n)._encode(e,t):(s=this._encodePrimitive(i.tag,e),u=!0);if(!i.any&&null===i.choice){var l=null!==i.implicit?i.implicit:i.tag,f=null===i.implicit?"universal":"context";null===l?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(a=this._encodeComposite(l,u,f,s))}return null!==i.explicit&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a},l.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},l.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},l.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},l.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"../base/buffer":169,"../base/reporter":172,"minimalistic-assert":437}],172:[function(e,t,n){"use strict";var r=e("inherits");function o(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function i(e,t){this.path=e,this.rethrow(t)}n.Reporter=o,o.prototype.isError=function(e){return e instanceof i},o.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},o.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},o.prototype.enterKey=function(e){return this._reporterState.path.push(e)},o.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},o.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},o.prototype.path=function(){return this._reporterState.path.join("/")},o.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},o.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},o.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof i;if(t=r?e:new i(n.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},o.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(i,Error),i.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,i),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:387}],173:[function(e,t,n){"use strict";function r(e){var t={};return Object.keys(e).forEach(function(n){(0|n)==n&&(n|=0),t[e[n]]=n}),t}n.tagClass={0:"universal",1:"application",2:"context",3:"private"},n.tagClassByName=r(n.tagClass),n.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},n.tagByName=r(n.tag)},{}],174:[function(e,t,n){"use strict";var r=n;r._reverse=function(e){var t={};return Object.keys(e).forEach(function(n){(0|n)==n&&(n|=0),t[e[n]]=n}),t},r.der=e("./der")},{"./der":173}],175:[function(e,t,n){"use strict";var r=e("inherits"),o=e("bn.js"),i=e("../base/buffer").DecoderBuffer,a=e("../base/node"),s=e("../constants/der");function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.call(this,"der",e)}function l(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=s.tagClass[n>>6],o=0==(32&n);if(31==(31&n)){var i=n;for(n=0;128==(128&i);){if(i=e.readUInt8(t),e.isError(i))return i;n<<=7,n|=127&i}}else n&=31;return{cls:r,primitive:o,tag:n,tagStr:s.tag[n]}}function f(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;var o=127&r;if(o>4)return e.error("length octect is too long");r=0;for(var i=0;i<o;i++){r<<=8;var a=e.readUInt8(n);if(e.isError(a))return a;r|=a}return r}t.exports=u,u.prototype.decode=function(e,t){return i.isDecoderBuffer(e)||(e=new i(e,t)),this.tree._decode(e,t)},r(c,a),c.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;var r=e.save(),o=l(e,'Failed to peek tag: "'+t+'"');return e.isError(o)?o:(e.restore(r),o.tag===t||o.tagStr===t||o.tagStr+"of"===t||n)},c.prototype._decodeTag=function(e,t,n){var r=l(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;var o=f(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(o))return o;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==o)return e.skip(o,'Failed to match body of: "'+t+'"');var i=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(o=e.offset-i.offset,e.restore(i),e.skip(o,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var n=l(e,t);if(e.isError(n))return n;var r,o=f(e,n.primitive,t);if(e.isError(o))return o;if(r=n.primitive||null!==o?e.skip(o):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===n.tagStr)break}},c.prototype._decodeList=function(e,t,n,r){for(var o=[];!e.isEmpty();){var i=this._peekTag(e,"end");if(e.isError(i))return i;var a=n.decode(e,"der",r);if(e.isError(a)&&i)break;o.push(a)}return o},c.prototype._decodeStr=function(e,t){if("bitstr"===t){var n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}if("bmpstr"===t){var r=e.raw();if(r.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var o="",i=0;i<r.length/2;i++)o+=String.fromCharCode(r.readUInt16BE(2*i));return o}if("numstr"===t){var a=e.raw().toString("ascii");return this._isNumstr(a)?a:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,n){for(var r,o=[],i=0,a=0;!e.isEmpty();)i<<=7,i|=127&(a=e.readUInt8()),0==(128&a)&&(o.push(i),i=0);if(128&a&&o.push(i),r=n?o:[o[0]/40|0,o[0]%40].concat(o.slice(1)),t){var s=t[r.join(" ")];void 0===s&&(s=t[r.join(".")]),void 0!==s&&(r=s)}return r},c.prototype._decodeTime=function(e,t){var n,r,o,i,a,s,u=e.raw().toString();if("gentime"===t)n=0|u.slice(0,4),r=0|u.slice(4,6),o=0|u.slice(6,8),i=0|u.slice(8,10),a=0|u.slice(10,12),s=0|u.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|u.slice(0,2),r=0|u.slice(2,4),o=0|u.slice(4,6),i=0|u.slice(6,8),a=0|u.slice(8,10),s=0|u.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,r-1,o,i,a,s,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var n=e.raw(),r=new o(n);return t&&(r=t[r.toString(10)]||r),r},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},{"../base/buffer":169,"../base/node":171,"../constants/der":173,"bn.js":181,inherits:387}],176:[function(e,t,n){"use strict";var r=n;r.der=e("./der"),r.pem=e("./pem")},{"./der":175,"./pem":177}],177:[function(e,t,n){"use strict";var r=e("inherits"),o=e("safer-buffer").Buffer,i=e("./der");function a(e){i.call(this,e),this.enc="pem"}r(a,i),t.exports=a,a.prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,u=-1,c=0;c<n.length;c++){var l=n[c].match(a);if(null!==l&&l[2]===r){if(-1!==s){if("END"!==l[1])break;u=c;break}if("BEGIN"!==l[1])break;s=c}}if(-1===s||-1===u)throw new Error("PEM section not found for: "+r);var f=n.slice(s+1,u).join("");f.replace(/[^a-z0-9+/=]+/gi,"");var h=o.from(f,"base64");return i.prototype.decode.call(this,h,t)}},{"./der":175,inherits:387,"safer-buffer":495}],178:[function(e,t,n){"use strict";var r=e("inherits"),o=e("safer-buffer").Buffer,i=e("../base/node"),a=e("../constants/der");function s(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){i.call(this,"der",e)}function c(e){return e<10?"0"+e:e}t.exports=s,s.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(u,i),u.prototype._encodeComposite=function(e,t,n,r){var i=function(e,t,n,r){var o;if("seqof"===e?e="seq":"setof"===e&&(e="set"),a.tagByName.hasOwnProperty(e))o=a.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);o=e}return o>=31?r.error("Multi-octet tag encoding unsupported"):(t||(o|=32),o|a.tagClassByName[n||"universal"]<<6)}(e,t,n,this.reporter);if(r.length<128){var s=o.alloc(2);return s[0]=i,s[1]=r.length,this._createEncoderBuffer([s,r])}for(var u=1,c=r.length;c>=256;c>>=8)u++;var l=o.alloc(2+u);l[0]=i,l[1]=128|u;for(var f=1+u,h=r.length;h>0;f--,h>>=8)l[f]=255&h;return this._createEncoderBuffer([l,r])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=o.alloc(2*e.length),r=0;r<e.length;r++)n.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(n)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},u.prototype._encodeObjid=function(e,t,n){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(var r=0;r<e.length;r++)e[r]|=0}else if(Array.isArray(e)){e=e.slice();for(var i=0;i<e.length;i++)e[i]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var a=0,s=0;s<e.length;s++){var u=e[s];for(a++;u>=128;u>>=7)a++}for(var c=o.alloc(a),l=c.length-1,f=e.length-1;f>=0;f--){var h=e[f];for(c[l--]=127&h;(h>>=7)>0;)c[l--]=128|127&h}return this._createEncoderBuffer(c)},u.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[c(r.getUTCFullYear()),c(r.getUTCMonth()+1),c(r.getUTCDate()),c(r.getUTCHours()),c(r.getUTCMinutes()),c(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[c(r.getUTCFullYear()%100),c(r.getUTCMonth()+1),c(r.getUTCDate()),c(r.getUTCHours()),c(r.getUTCMinutes()),c(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!o.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=o.from(n)}if(o.isBuffer(e)){var r=e.length;0===e.length&&r++;var i=o.alloc(r);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var a=1,s=e;s>=256;s>>=8)a++;for(var u=new Array(a),c=u.length-1;c>=0;c--)u[c]=255&e,e>>=8;return 128&u[0]&&u.unshift(0),this._createEncoderBuffer(o.from(u))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,n){var r,o=this._baseState;if(null===o.default)return!1;var i=e.join();if(void 0===o.defaultBuffer&&(o.defaultBuffer=this._encodeValue(o.default,t,n).join()),i.length!==o.defaultBuffer.length)return!1;for(r=0;r<i.length;r++)if(i[r]!==o.defaultBuffer[r])return!1;return!0}},{"../base/node":171,"../constants/der":173,inherits:387,"safer-buffer":495}],179:[function(e,t,n){"use strict";var r=n;r.der=e("./der"),r.pem=e("./pem")},{"./der":178,"./pem":180}],180:[function(e,t,n){"use strict";var r=e("inherits"),o=e("./der");
1function i(e){o.call(this,e),this.enc="pem"}r(i,o),t.exports=i,i.prototype.encode=function(e,t){for(var n=o.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"],i=0;i<n.length;i+=64)r.push(n.slice(i,i+64));return r.push("-----END "+t.label+"-----"),r.join("\n")}},{"./der":178,inherits:387}],181:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(t,n){function o(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var s;"object"===r(t)?t.exports=a:(void 0).BN=a,a.BN=a,a.wordSize=26;try{s=e("buffer").Buffer}catch(e){}function u(e,t,n){for(var r=0,o=Math.min(e.length,n),i=t;i<o;i++){var a=e.charCodeAt(i)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function c(e,t,n,r){for(var o=0,i=Math.min(e.length,n),a=t;a<i;a++){var s=e.charCodeAt(a)-48;o*=r,o+=s>=49?s-49+10:s>=17?s-17+10:s}return o}a.isBN=function(e){return e instanceof a||null!==e&&"object"===r(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"===r(e))return this._initArray(e,t,n);"hex"===t&&(t=16),o(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(o(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(o("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,a,s=0;if("be"===n)for(r=e.length-1,i=0;r>=0;r-=3)this.words[i]|=(a=e[r]|e[r-1]<<8|e[r-2]<<16)<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(r=0,i=0;r<e.length;r+=3)this.words[i]|=(a=e[r]|e[r+1]<<8|e[r+2]<<16)<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o,i=0;for(n=e.length-6,r=0;n>=t;n-=6)o=u(e,n,n+6),this.words[r]|=o<<i&67108863,this.words[r+1]|=o>>>26-i&4194303,(i+=24)>=26&&(i-=26,r++);n+6!==t&&(o=u(e,t,n+6),this.words[r]|=o<<i&67108863,this.words[r+1]|=o>>>26-i&4194303),this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,o=1;o<=67108863;o*=t)r++;r--,o=o/t|0;for(var i=e.length-n,a=i%r,s=Math.min(i,i-a)+n,u=0,l=n;l<s;l+=r)u=c(e,l,l+r,t),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(e,l,e.length,t),l=0;l<a;l++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 6,137 bytes, line 1
1777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var o=0|e.words[0],i=0|t.words[0],a=o*i,s=a/67108864|0;n.words[0]=67108863&a;for(var u=1;u<r;u++){for(var c=s>>>26,l=67108863&s,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++)c+=(a=(o=0|e.words[u-h|0])*(i=0|t.words[h])+l)/67108864|0,l=67108863&a;n.words[u]=0|l,s=0|c}return 0!==s?n.words[u]=0|s:n.length--,n.strip()}a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var r=0,i=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<r|i)).toString(16);n=0!=(i=s>>>24-r&16777215)||a!==this.length-1?l[6-u.length]+u+n:u+n,(r+=2)>=26&&(r-=26,a--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=f[e],d=h[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(e);n=(p=p.idivn(d)).isZero()?m+n:l[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return o(void 0!==s),this.toArrayLike(s,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var r=this.byteLength(),i=n||Math.max(1,r);o(r<=i,"byte array longer than desired length"),o(i>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,c=new e(i),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s<i;s++)c[s]=0}else{for(s=0;s<i-r;s++)c[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[i-s-1]=a}return c},a.prototype._countBits=Math.clz32?function(e){return 32-Math.clz32(e)}:function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},a.prototype.ior=function(e){return o(0==(this.negative|e.negative)),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},a.prototype.iand=function(e){return o(0==(this.negative|e.negative)),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},a.prototype.ixor=function(e){return o(0==(this.negative|e.negative)),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){o("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return n>0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){o("number"==typeof e&&e>=0);var n=e/26|0,r=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<r:this.words[n]&~(1<<r),this.strip()},a.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var o=0,i=0;i<r.length;i++)this.words[i]=67108863&(t=(0|n.words[i])+(0|r.words[i])+o),o=t>>>26;for(;0!==o&&i<n.length;i++)this.words[i]=67108863&(t=(0|n.words[i])+o),o=t>>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;i<n.length;i++)this.words[i]=n.words[i];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;
vendor: 5,560 bytes, line 1
1var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)i=(t=(0|n.words[a])-(0|r.words[a])+i)>>26,this.words[a]=67108863&t;for(;0!==i&&a<n.length;a++)i=(t=(0|n.words[a])+i)>>26,this.words[a]=67108863&t;if(0===i&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,n){var r,o,i,a=e.words,s=t.words,u=n.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,d=0|a[1],p=8191&d,m=d>>>13,y=0|a[2],v=8191&y,g=y>>>13,b=0|a[3],w=8191&b,_=b>>>13,k=0|a[4],S=8191&k,C=k>>>13,E=0|a[5],T=8191&E,x=E>>>13,O=0|a[6],A=8191&O,R=O>>>13,I=0|a[7],P=8191&I,M=I>>>13,N=0|a[8],j=8191&N,D=N>>>13,L=0|a[9],F=8191&L,B=L>>>13,U=0|s[0],q=8191&U,H=U>>>13,z=0|s[1],G=8191&z,V=z>>>13,$=0|s[2],K=8191&$,Y=$>>>13,W=0|s[3],X=8191&W,Z=W>>>13,J=0|s[4],Q=8191&J,ee=J>>>13,te=0|s[5],ne=8191&te,re=te>>>13,oe=0|s[6],ie=8191&oe,ae=oe>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,he=le>>>13,de=0|s[9],pe=8191&de,me=de>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(c+(r=Math.imul(f,q))|0)+((8191&(o=(o=Math.imul(f,H))+Math.imul(h,q)|0))<<13)|0;c=((i=Math.imul(h,H))+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(p,q),o=(o=Math.imul(p,H))+Math.imul(m,q)|0,i=Math.imul(m,H);var ve=(c+(r=r+Math.imul(f,G)|0)|0)+((8191&(o=(o=o+Math.imul(f,V)|0)+Math.imul(h,G)|0))<<13)|0;c=((i=i+Math.imul(h,V)|0)+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,q),o=(o=Math.imul(v,H))+Math.imul(g,q)|0,i=Math.imul(g,H),r=r+Math.imul(p,G)|0,o=(o=o+Math.imul(p,V)|0)+Math.imul(m,G)|0,i=i+Math.imul(m,V)|0;var ge=(c+(r=r+Math.imul(f,K)|0)|0)+((8191&(o=(o=o+Math.imul(f,Y)|0)+Math.imul(h,K)|0))<<13)|0;c=((i=i+Math.imul(h,Y)|0)+(o>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(w,q),o=(o=Math.imul(w,H))+Math.imul(_,q)|0,i=Math.imul(_,H),r=r+Math.imul(v,G)|0,o=(o=o+Math.imul(v,V)|0)+Math.imul(g,G)|0,i=i+Math.imul(g,V)|0,r=r+Math.imul(p,K)|0,o=(o=o+Math.imul(p,Y)|0)+Math.imul(m,K)|0,i=i+Math.imul(m,Y)|0;var be=(c+(r=r+Math.imul(f,X)|0)|0)+((8191&(o=(o=o+Math.imul(f,Z)|0)+Math.imul(h,X)|0))<<13)|0;c=((i=i+Math.imul(h,Z)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(S,q),o=(o=Math.imul(S,H))+Math.imul(C,q)|0,i=Math.imul(C,H),r=r+Math.imul(w,G)|0,o=(o=o+Math.imul(w,V)|0)+Math.imul(_,G)|0,i=i+Math.imul(_,V)|0,r=r+Math.imul(v,K)|0,o=(o=o+Math.imul(v,Y)|0)+Math.imul(g,K)|0,i=i+Math.imul(g,Y)|0,r=r+Math.imul(p,X)|0,o=(o=o+Math.imul(p,Z)|0)+Math.imul(m,X)|0,i=i+Math.imul(m,Z)|0;var we=(c+(r=r+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,ee)|0)+Math.imul(h,Q)|0))<<13)|0;c=((i=i+Math.imul(h,ee)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,q),o=(o=Math.imul(T,H))+Math.imul(x,q)|0,i=Math.imul(x,H),r=r+Math.imul(S,G)|0,o=(o=o+Math.imul(S,V)|0)+Math.imul(C,G)|0,i=i+Math.imul(C,V)|0,r=r+Math.imul(w,K)|0,o=(o=o+Math.imul(w,Y)|0)+Math.imul(_,K)|0,i=i+Math.imul(_,Y)|0,r=r+Math.imul(v,X)|0,o=(o=o+Math.imul(v,Z)|0)+Math.imul(g,X)|0,i=i+Math.imul(g,Z)|0,r=r+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,i=i+Math.imul(m,ee)|0;var _e=(c+(r=r+Math.imul(f,ne)|0)|0)+((8191&(o=(o=o+Math.imul(f,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((i=i+Math.imul(h,re)|0)+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(A,q),o=(o=Math.imul(A,H))+Math.imul(R,q)|0,i=Math.imul(R,H),r=r+Math.imul(T,G)|0,o=(o=o+Math.imul(T,V)|0)+Math.imul(x,G)|0,i=i+Math.imul(x,V)|0,r=r+Math.imul(S,K)|0,o=(o=o+Math.imul(S,Y)|0)+Math.imul(C,K)|0,i=i+Math.imul(C,Y)|0,r=r+Math.imul(w,X)|0,o=(o=o+Math.imul(w,Z)|0)+Math.imul(_,X)|0,i=i+Math.imul(_,Z)|0,r=r+Math.imul(v,Q)|0,o=(o=o+Math.imul(v,ee)|0)+Math.imul(g,Q)|0,i=i+Math.imul(g,ee)|0,r=r+Math.imul(p,ne)|0,o=(o=o+Math.imul(p,re)|0)+Math.imul(m,ne)|0,i=i+Math.imul(m,re)|0;var ke=(c+(r=r+Math.imul(f,ie)|0)|0)+((8191&(o=(o=o+Math.imul(f,ae)|0)+Math.imul(h,ie)|0))<<13)|0;c=((i=i+Math.imul(h,ae)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(P,q),o=(o=Math.imul(P,H))+Math.imul(M,q)|0,i=Math.imul(M,H),r=r+Math.imul(A,G)|0,o=(o=o+Math.imul(A,V)|0)+Math.imul(R,G)|0,i=i+Math.imul(R,V)|0,r=r+Math.imul(T,K)|0,o=(o=o+Math.imul(T,Y)|0)+Math.imul(x,K)|0,i=i+Math.imul(x,Y)|0,r=r+Math.imul(S,X)|0,o=(o=o+Math.imul(S,Z)|0)+Math.imul(C,X)|0,i=i+Math.imul(C,Z)|0,r=r+Math.imul(w,Q)|0,o=(o=o+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,ee)|0,r=r+Math.imul(v,ne)|0,o=(o=o+Math.imul(v,re)|0)+Math.imul(g,ne)|0,i=i+Math.imul(g,re)|0,r=r+Math.imul(p,ie)|0,o=(o=o+Math.imul(p,ae)|0)+Math.imul(m,ie)|0,i=i+Math.imul(m,ae)|0;var Se=(c+(r=r+Math.imul(f,ue)|0)|0)+((8191&(o=(o=o+Math.imul(f,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((i=i+Math.imul(h,ce)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,q),o=(o=Math.imul(j,H))+Math.imul(D,q)|0,i=Math.imul(D,H),r=r+Math.imul(P,G)|0,o=(o=o+Math.imul(P,V)|0)+Math.imul(M,G)|0,i=i+Math.imul(M,V)|0,r=r+Math.imul(A,K)|0,o=(o=o+Math.imul(A,Y)|0)+Math.imul(R,K)|0,i=i+Math.imul(R,Y)|0,r=r+Math.imul(T,X)|0,o=(o=o+Math.imul(T,Z)|0)+Math.imul(x,X)|0,i=i+Math.imul(x,Z)|0,r=r+Math.imul(S,Q)|0,o=(o=o+Math.imul(S,ee)|0)+Math.imul(C,Q)|0,i=i+Math.imul(C,ee)|0,r=r+Math.imul(w,ne)|0,o=(o=o+Math.imul(w,re)|0)+Math.imul(_,ne)|0,i=i+Math.imul(_,re)|0,r=r+Math.imul(v,ie)|0,o=(o=o+Math.imul(v,ae)|0)+Math.imul(g,ie)|0,i=i+Math.imul(g,ae)|0,r=r+Math.imul(p,ue)|0,o=(o=o+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,i=i+Math.imul(m,ce)|0;
vendor: 2,663 bytes, line 1
1var Ce=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(o=(o=o+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0;c=((i=i+Math.imul(h,he)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(F,q),o=(o=Math.imul(F,H))+Math.imul(B,q)|0,i=Math.imul(B,H),r=r+Math.imul(j,G)|0,o=(o=o+Math.imul(j,V)|0)+Math.imul(D,G)|0,i=i+Math.imul(D,V)|0,r=r+Math.imul(P,K)|0,o=(o=o+Math.imul(P,Y)|0)+Math.imul(M,K)|0,i=i+Math.imul(M,Y)|0,r=r+Math.imul(A,X)|0,o=(o=o+Math.imul(A,Z)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,Z)|0,r=r+Math.imul(T,Q)|0,o=(o=o+Math.imul(T,ee)|0)+Math.imul(x,Q)|0,i=i+Math.imul(x,ee)|0,r=r+Math.imul(S,ne)|0,o=(o=o+Math.imul(S,re)|0)+Math.imul(C,ne)|0,i=i+Math.imul(C,re)|0,r=r+Math.imul(w,ie)|0,o=(o=o+Math.imul(w,ae)|0)+Math.imul(_,ie)|0,i=i+Math.imul(_,ae)|0,r=r+Math.imul(v,ue)|0,o=(o=o+Math.imul(v,ce)|0)+Math.imul(g,ue)|0,i=i+Math.imul(g,ce)|0,r=r+Math.imul(p,fe)|0,o=(o=o+Math.imul(p,he)|0)+Math.imul(m,fe)|0,i=i+Math.imul(m,he)|0;var Ee=(c+(r=r+Math.imul(f,pe)|0)|0)+((8191&(o=(o=o+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0;c=((i=i+Math.imul(h,me)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(F,G),o=(o=Math.imul(F,V))+Math.imul(B,G)|0,i=Math.imul(B,V),r=r+Math.imul(j,K)|0,o=(o=o+Math.imul(j,Y)|0)+Math.imul(D,K)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(P,X)|0,o=(o=o+Math.imul(P,Z)|0)+Math.imul(M,X)|0,i=i+Math.imul(M,Z)|0,r=r+Math.imul(A,Q)|0,o=(o=o+Math.imul(A,ee)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,ee)|0,r=r+Math.imul(T,ne)|0,o=(o=o+Math.imul(T,re)|0)+Math.imul(x,ne)|0,i=i+Math.imul(x,re)|0,r=r+Math.imul(S,ie)|0,o=(o=o+Math.imul(S,ae)|0)+Math.imul(C,ie)|0,i=i+Math.imul(C,ae)|0,r=r+Math.imul(w,ue)|0,o=(o=o+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,i=i+Math.imul(_,ce)|0,r=r+Math.imul(v,fe)|0,o=(o=o+Math.imul(v,he)|0)+Math.imul(g,fe)|0,i=i+Math.imul(g,he)|0;var Te=(c+(r=r+Math.imul(p,pe)|0)|0)+((8191&(o=(o=o+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((i=i+Math.imul(m,me)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(F,K),o=(o=Math.imul(F,Y))+Math.imul(B,K)|0,i=Math.imul(B,Y),r=r+Math.imul(j,X)|0,o=(o=o+Math.imul(j,Z)|0)+Math.imul(D,X)|0,i=i+Math.imul(D,Z)|0,r=r+Math.imul(P,Q)|0,o=(o=o+Math.imul(P,ee)|0)+Math.imul(M,Q)|0,i=i+Math.imul(M,ee)|0,r=r+Math.imul(A,ne)|0,o=(o=o+Math.imul(A,re)|0)+Math.imul(R,ne)|0,i=i+Math.imul(R,re)|0,r=r+Math.imul(T,ie)|0,o=(o=o+Math.imul(T,ae)|0)+Math.imul(x,ie)|0,i=i+Math.imul(x,ae)|0,r=r+Math.imul(S,ue)|0,o=(o=o+Math.imul(S,ce)|0)+Math.imul(C,ue)|0,i=i+Math.imul(C,ce)|0,r=r+Math.imul(w,fe)|0,o=(o=o+Math.imul(w,he)|0)+Math.imul(_,fe)|0,i=i+Math.imul(_,he)|0;var xe=(c+(r=r+Math.imul(v,pe)|0)|0)+((8191&(o=(o=o+Math.imul(v,me)|0)+Math.imul(g,pe)|0))<<13)|0;c=((i=i+Math.imul(g,me)|0)+(o>>>13)|0)+(xe>>>
vendor: 7,428 bytes, line 1
126)|0,xe&=67108863,r=Math.imul(F,X),o=(o=Math.imul(F,Z))+Math.imul(B,X)|0,i=Math.imul(B,Z),r=r+Math.imul(j,Q)|0,o=(o=o+Math.imul(j,ee)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(P,ne)|0,o=(o=o+Math.imul(P,re)|0)+Math.imul(M,ne)|0,i=i+Math.imul(M,re)|0,r=r+Math.imul(A,ie)|0,o=(o=o+Math.imul(A,ae)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,ae)|0,r=r+Math.imul(T,ue)|0,o=(o=o+Math.imul(T,ce)|0)+Math.imul(x,ue)|0,i=i+Math.imul(x,ce)|0,r=r+Math.imul(S,fe)|0,o=(o=o+Math.imul(S,he)|0)+Math.imul(C,fe)|0,i=i+Math.imul(C,he)|0;var Oe=(c+(r=r+Math.imul(w,pe)|0)|0)+((8191&(o=(o=o+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0;c=((i=i+Math.imul(_,me)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(F,Q),o=(o=Math.imul(F,ee))+Math.imul(B,Q)|0,i=Math.imul(B,ee),r=r+Math.imul(j,ne)|0,o=(o=o+Math.imul(j,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(P,ie)|0,o=(o=o+Math.imul(P,ae)|0)+Math.imul(M,ie)|0,i=i+Math.imul(M,ae)|0,r=r+Math.imul(A,ue)|0,o=(o=o+Math.imul(A,ce)|0)+Math.imul(R,ue)|0,i=i+Math.imul(R,ce)|0,r=r+Math.imul(T,fe)|0,o=(o=o+Math.imul(T,he)|0)+Math.imul(x,fe)|0,i=i+Math.imul(x,he)|0;var Ae=(c+(r=r+Math.imul(S,pe)|0)|0)+((8191&(o=(o=o+Math.imul(S,me)|0)+Math.imul(C,pe)|0))<<13)|0;c=((i=i+Math.imul(C,me)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(F,ne),o=(o=Math.imul(F,re))+Math.imul(B,ne)|0,i=Math.imul(B,re),r=r+Math.imul(j,ie)|0,o=(o=o+Math.imul(j,ae)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,ae)|0,r=r+Math.imul(P,ue)|0,o=(o=o+Math.imul(P,ce)|0)+Math.imul(M,ue)|0,i=i+Math.imul(M,ce)|0,r=r+Math.imul(A,fe)|0,o=(o=o+Math.imul(A,he)|0)+Math.imul(R,fe)|0,i=i+Math.imul(R,he)|0;var Re=(c+(r=r+Math.imul(T,pe)|0)|0)+((8191&(o=(o=o+Math.imul(T,me)|0)+Math.imul(x,pe)|0))<<13)|0;c=((i=i+Math.imul(x,me)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(F,ie),o=(o=Math.imul(F,ae))+Math.imul(B,ie)|0,i=Math.imul(B,ae),r=r+Math.imul(j,ue)|0,o=(o=o+Math.imul(j,ce)|0)+Math.imul(D,ue)|0,i=i+Math.imul(D,ce)|0,r=r+Math.imul(P,fe)|0,o=(o=o+Math.imul(P,he)|0)+Math.imul(M,fe)|0,i=i+Math.imul(M,he)|0;var Ie=(c+(r=r+Math.imul(A,pe)|0)|0)+((8191&(o=(o=o+Math.imul(A,me)|0)+Math.imul(R,pe)|0))<<13)|0;c=((i=i+Math.imul(R,me)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(F,ue),o=(o=Math.imul(F,ce))+Math.imul(B,ue)|0,i=Math.imul(B,ce),r=r+Math.imul(j,fe)|0,o=(o=o+Math.imul(j,he)|0)+Math.imul(D,fe)|0,i=i+Math.imul(D,he)|0;var Pe=(c+(r=r+Math.imul(P,pe)|0)|0)+((8191&(o=(o=o+Math.imul(P,me)|0)+Math.imul(M,pe)|0))<<13)|0;c=((i=i+Math.imul(M,me)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(F,fe),o=(o=Math.imul(F,he))+Math.imul(B,fe)|0,i=Math.imul(B,he);var Me=(c+(r=r+Math.imul(j,pe)|0)|0)+((8191&(o=(o=o+Math.imul(j,me)|0)+Math.imul(D,pe)|0))<<13)|0;c=((i=i+Math.imul(D,me)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863;var Ne=(c+(r=Math.imul(F,pe))|0)+((8191&(o=(o=Math.imul(F,me))+Math.imul(B,pe)|0))<<13)|0;return c=((i=Math.imul(B,me))+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ye,u[1]=ve,u[2]=ge,u[3]=be,u[4]=we,u[5]=_e,u[6]=ke,u[7]=Se,u[8]=Ce,u[9]=Ee,u[10]=Te,u[11]=xe,u[12]=Oe,u[13]=Ae,u[14]=Re,u[15]=Ie,u[16]=Pe,u[17]=Me,u[18]=Ne,0!==c&&(u[19]=c,n.length++),n};function m(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=d),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?d(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,o=0,i=0;i<n.length-1;i++){var a=o;o=0;for(var s=67108863&r,u=Math.min(i,t.length-1),c=Math.max(0,i-e.length+1);c<=u;c++){var l=(0|e.words[i-c])*(0|t.words[c]),f=67108863&l;s=67108863&(f=f+s|0),o+=(a=(a=a+(l/67108864|0)|0)+(f>>>26)|0)>>>26,a&=67108863}n.words[i]=s,r=a,a=o}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):m(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},y.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,o=0;o<t;o++)r|=(1&e)<<t-o-1,e>>=1;return r},y.prototype.permute=function(e,t,n,r,o,i){for(var a=0;a<i;a++)r[a]=t[e[a]],o[a]=n[e[a]]},y.prototype.transform=function(e,t,n,r,o,i){this.permute(i,e,t,n,r,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<o;l+=s)for(var f=u,h=c,d=0;d<a;d++){var p=n[l+d],m=r[l+d],y=n[l+d+a],v=r[l+d+a],g=f*y-h*v;v=f*v+h*y,n[l+d]=p+(y=g),r[l+d]=m+v,n[l+d+a]=p-y,r[l+d+a]=m-v,d!==s&&(g=u*f-c*h,h=u*h+c*f,f=g)}},y.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,o=0;for(n=n/2|0;n;n>>>=1)o++;return 1<<o+1+r},y.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var o=e[r];e[r]=e[n-r-1],e[n-r-1]=o,o=t[r],t[r]=-t[n-r-1],t[n-r-1]=-o}},y.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var o=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&o,n=o<67108864?0:o/67108864|0}return e},y.prototype.convert13b=function(e,t,n,r){for(var i=0,a=0;a<t;a++)n[2*a]=8191&(i+=0|e[a]),n[2*a+1]=8191&(i>>>=13),i>>>=13;for(a=2*t;a<r;++a)n[a]=0;o(0===i),o(0==(-8192&i))},y.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},y.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),o=this.makeRBT(r),i=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),c=new Array(r),l=new Array(r),f=new Array(r),h=n.words;h.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,c,r),this.transform(a,i,s,u,r,o),this.transform(c,i,l,f,r,o);for(var d=0;d<r;d++){var p=s[d]*l[d]-u[d]*f[d];u[d]=s[d]*f[d]+u[d]*l[d],s[d]=p}return this.conjugate(s,u,r),this.transform(s,u,h,i,r,o),this.conjugate(h,i,r),this.normalize13b(h,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),m(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){o("number"==typeof e),o(e<67108864);for(var t=0,n=0;n<this.length;n++){var r=(0|this.words[n])*e,i=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n%26;t[n]=(e.words[n/26|0]&1<<r)>>>r}return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var o=n.sqr();r<t.length;r++,o=o.sqr())0!==t[r]&&(n=n.mul(o));return n},a.prototype.iushln=function(e){o("number"==typeof e&&e>=0);var t,n=e%26,r=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&i;this.words[t]=(0|this.words[t])-s<<n|a,a=s>>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this.strip()},a.prototype.ishln=function(e){return o(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,n){var r;o("number"==typeof e&&e>=0),r=t?(t-t%26)/26:0;var i=e%26,a=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<<i,u=n;
vendor: 16,384 bytes, line 1
1if(r-=a,r=Math.max(0,r),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=r);c--){var f=0|this.words[c];this.words[c]=l<<26-i|f>>>i,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return o(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){o("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;return!(this.length<=n||!(this.words[n]&1<<t))},a.prototype.imaskn=function(e){o("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;return o(0===this.negative,"imaskn works only with positive numbers"),this.length<=n?this:(0!==t&&n++,this.length=Math.min(n,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<<t),this.strip())},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return o("number"==typeof e),o(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(o("number"==typeof e),o(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,n){var r,i;this._expand(e.length+n);var a=0;for(r=0;r<e.length;r++){i=(0|this.words[r+n])+a;var s=(0|e.words[r])*t;a=((i-=67108863&s)>>26)-(s/67108864|0),this.words[r+n]=67108863&i}for(;r<this.length-n;r++)a=(i=(0|this.words[r+n])+a)>>26,this.words[r+n]=67108863&i;if(0===a)return this.strip();for(o(-1===a),a=0,r=0;r<this.length;r++)a=(i=-(0|this.words[r])+a)>>26,this.words[r]=67108863&i;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var n,r=this.clone(),o=e,i=0|o.words[o.length-1];0!=(n=26-this._countBits(i))&&(o=o.ushln(n),r.iushln(n),i=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==t){(s=new a(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var l=r.clone()._ishlnsubmul(o,1,u);0===l.negative&&(r=l,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var h=67108864*(0|r.words[o.length+f])+(0|r.words[o.length+f-1]);for(h=Math.min(h/i|0,67108863),r._ishlnsubmul(o,h,f);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(o,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){return o(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(r=s.div.neg()),"div"!==t&&(i=s.mod.neg(),n&&0!==i.negative&&i.iadd(e)),{div:r,mod:i}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(r=s.div.neg()),{div:r,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(i=s.mod.neg(),n&&0!==i.negative&&i.isub(e)),{div:s.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,i,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),o=e.andln(1),i=n.cmp(r);return i<0||1===o&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){o(e<=67108863);for(var t=(1<<26)%e,n=0,r=this.length-1;r>=0;r--)n=(t*n+(0|this.words[r]))%e;return n},a.prototype.idivn=function(e){o(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*t;this.words[n]=r/e|0,t=r%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){o(0===e.negative),o(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new a(1),i=new a(0),s=new a(0),u=new a(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var l=n.clone(),f=t.clone();!t.isZero();){for(var h=0,d=1;0==(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(r.isOdd()||i.isOdd())&&(r.iadd(l),i.isub(f)),r.iushrn(1),i.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(n)>=0?(t.isub(n),r.isub(s),i.isub(u)):(n.isub(t),s.isub(r),u.isub(i))}return{a:s,b:u,gcd:n.iushln(c)}},a.prototype._invmp=function(e){o(0===e.negative),o(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,i=new a(1),s=new a(0),u=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)i.isOdd()&&i.iadd(u),i.iushrn(1);for(var f=0,h=1;0==(n.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s)):(n.isub(t),s.isub(i))}return(r=0===t.cmpn(1)?i:s).cmpn(0)<0&&r.iadd(e),r},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=t.cmp(n);if(o<0){var i=t;t=n,n=i}else if(0===o||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){o("number"==typeof e);var t=e%26,n=(e-t)/26,r=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=r,this;for(var i=r,a=n;0!==i&&a<this.length;a++){var s=0|this.words[a];i=(s+=i)>>>26,this.words[a]=s&=67108863}return 0!==i&&(this.words[a]=i,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),o(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],o=0|e.words[n];if(r!==o){r<o?t=-1:r>o&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new S(e)},a.prototype.toRed=function(e){return o(!this.red,"Already a number in reduction context"),o(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return o(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return o(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else o(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},i(b,g),b.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=4194303&o,r=10;r<e.length;r++){var i=0|e.words[r];e.words[r-10]=(4194303&i)<<4|o>>>22,o=i}e.words[r-10]=o>>>=22,e.length-=0===o&&e.length>10?10:9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];e.words[n]=67108863&(t+=977*r),t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,g),i(_,g),i(k,g),k.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,o=67108863&r;r>>>=26,e.words[n]=o,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new k}return v[e]=t,t},S.prototype._verify1=function(e){o(0===e.negative,"red works only with positives"),o(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){o(0==(e.negative|t.negative),"red works only with positives"),o(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(o(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var r=this.m.subn(1),i=0;!r.isZero()&&0===r.andln(1);)i++,r.iushrn(1);o(!r.isZero());var s=new a(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new a(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,r),h=this.pow(e,r.addn(1).iushrn(1)),d=this.pow(e,r),p=i;0!==d.cmp(s);){for(var m=d,y=0;0!==m.cmp(s);y++)m=m.redSqr();o(y<p);var v=this.pow(f,new a(1).iushln(p-y-1));h=h.redMul(v),f=v.redSqr(),d=d.redMul(f),p=y}return h},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new a(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var o=n[0],i=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],l=u-1;l>=0;l--){var f=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==f||0!==i?(i<<=1,i|=f,(4==++s||0===r&&0===l)&&(o=this.mul(o,n[i]),s=0,i=0)):s=0}u=26}return o},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new C(e)},i(C,S),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero
1())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},C.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:185}],182:[function(e,t,n){"use strict";n.byteLength=function(e){var t=c(e),n=t[1];return 3*(t[0]+n)/4-n},n.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,u[l++]=255&t),1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},n.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(l(e,a,a+16383>s?s:a+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i=[],a=t;a<n;a+=3)i.push(r[(o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],183:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(t,n){function o(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var s;"object"===r(t)?t.exports=a:(void 0).BN=a,a.BN=a,a.wordSize=26;try{s=e("buffer").Buffer}catch(e){}function u(e,t,n){for(var r=0,i=Math.min(e.length,n),a=0,s=t;s<i;s++){var u,c=e.charCodeAt(s)-48;r<<=4,r|=u=c>=49&&c<=54?c-49+10:c>=17&&c<=22?c-17+10:c,a|=u}return o(!(240&a),"Invalid character in "+e),r}function c(e,t,n,r){for(var i=0,a=0,s=Math.min(e.length,n),u=t;u<s;u++){var c=e.charCodeAt(u)-48;i*=r,a=c>=49?c-49+10:c>=17?c-17+10:c,o(c>=0&&a<r,"Invalid character"),i+=a}return i}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(a.isBN=function(e){return e instanceof a||null!==e&&"object"===r(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"===r(e))return this._initArray(e,t,n);"hex"===t&&(t=16),o(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this._strip(),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(o(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(o("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,a,s=0;if("be"===n)for(r=e.length-1,i=0;r>=0;r-=3)this.words[i]|=(a=e[r]|e[r-1]<<8|e[r-2]<<16)<<s&67108863,this.words[i+1]=a>>>
vendor: 9,097 bytes, line 1
126-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(r=0,i=0;r<e.length;r+=3)this.words[i]|=(a=e[r]|e[r+1]<<8|e[r+2]<<16)<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this._strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o,i=0;for(n=e.length-6,r=0;n>=t;n-=6)o=u(e,n,n+6),this.words[r]|=o<<i&67108863,this.words[r+1]|=o>>>26-i&4194303,(i+=24)>=26&&(i-=26,r++);n+6!==t&&(o=u(e,t,n+6),this.words[r]|=o<<i&67108863,this.words[r+1]|=o>>>26-i&4194303),this._strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,o=1;o<=67108863;o*=t)r++;r--,o=o/t|0;for(var i=e.length-n,a=i%r,s=Math.min(i,i-a)+n,u=0,l=n;l<s;l+=r)u=c(e,l,l+r,t),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(e,l,e.length,t),l=0;l<a;l++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype._move=function(e){l(e,this)},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(e){a.prototype.inspect=f}else a.prototype.inspect=f;function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var o=0|e.words[0],i=0|t.words[0],a=o*i,s=a/67108864|0;n.words[0]=67108863&a;for(var u=1;u<r;u++){for(var c=s>>>26,l=67108863&s,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++)c+=(a=(o=0|e.words[u-h|0])*(i=0|t.words[h])+l)/67108864|0,l=67108863&a;n.words[u]=0|l,s=0|c}return 0!==s?n.words[u]=0|s:n.length--,n._strip()}a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var r=0,i=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<r|i)).toString(16);n=0!=(i=s>>>24-r&16777215)||a!==this.length-1?h[6-u.length]+u+n:u+n,(r+=2)>=26&&(r-=26,a--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=d[e],l=p[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modrn(l).toString(e);n=(f=f.idivn(l)).isZero()?m+n:h[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}o(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},s&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(s,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){this._strip();var r=this.byteLength(),i=n||Math.max(1,r);o(r<=i,"byte array longer than desired length"),o(i>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,r),a},a.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,o=0,i=0;o<this.length;o++){var a=this.words[o]<<i|r;e[n++]=255&a,n<e.length&&(e[n++]=a>>8&255),n<e.length&&(e[n++]=a>>16&255),6===i?(n<e.length&&(e[n++]=a>>24&255),r=0,i=0):(r=a>>>24,i+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},a.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,o=0,i=0;o<this.length;o++){var a=this.words[o]<<i|r;e[n--]=255&a,n>=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===i?(n>=0&&(e[n--]=a>>24&255),r=0,i=0):(r=a>>>24,i+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},a.prototype._countBits=Math.clz32?function(e){return 32-Math.clz32(e)}:function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},a.prototype.ior=function(e){return o(0==(this.negative|e.negative)),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},a.prototype.iand=function(e){return o(0==(this.negative|e.negative)),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},a.prototype.ixor=function(e){return o(0==(this.negative|e.negative)),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){o("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return n>0&&(this.words[r]=~this.words[r]&67108863>>26-n),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){o("number"==typeof e&&e>=0);var n=e/26|0,r=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<r:this.words[n]&~(1<<r),this._strip()},a.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var o=0,i=0;i<r.length;i++)this.words[i]=67108863&(t=(0|n.words[i])+(0|r.words[i])+o),o=t>>>26;for(;0!==o&&i<n.length;i++)this.words[i]=67108863&(t=(0|n.words[i])+o),o=t>>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;i<n.length;i++)this.words[i]=n.words[i];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;
vendor: 5,561 bytes, line 1
1var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)i=(t=(0|n.words[a])-(0|r.words[a])+i)>>26,this.words[a]=67108863&t;for(;0!==i&&a<n.length;a++)i=(t=(0|n.words[a])+i)>>26,this.words[a]=67108863&t;if(0===i&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var y=function(e,t,n){var r,o,i,a=e.words,s=t.words,u=n.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,d=0|a[1],p=8191&d,m=d>>>13,y=0|a[2],v=8191&y,g=y>>>13,b=0|a[3],w=8191&b,_=b>>>13,k=0|a[4],S=8191&k,C=k>>>13,E=0|a[5],T=8191&E,x=E>>>13,O=0|a[6],A=8191&O,R=O>>>13,I=0|a[7],P=8191&I,M=I>>>13,N=0|a[8],j=8191&N,D=N>>>13,L=0|a[9],F=8191&L,B=L>>>13,U=0|s[0],q=8191&U,H=U>>>13,z=0|s[1],G=8191&z,V=z>>>13,$=0|s[2],K=8191&$,Y=$>>>13,W=0|s[3],X=8191&W,Z=W>>>13,J=0|s[4],Q=8191&J,ee=J>>>13,te=0|s[5],ne=8191&te,re=te>>>13,oe=0|s[6],ie=8191&oe,ae=oe>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,he=le>>>13,de=0|s[9],pe=8191&de,me=de>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(c+(r=Math.imul(f,q))|0)+((8191&(o=(o=Math.imul(f,H))+Math.imul(h,q)|0))<<13)|0;c=((i=Math.imul(h,H))+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(p,q),o=(o=Math.imul(p,H))+Math.imul(m,q)|0,i=Math.imul(m,H);var ve=(c+(r=r+Math.imul(f,G)|0)|0)+((8191&(o=(o=o+Math.imul(f,V)|0)+Math.imul(h,G)|0))<<13)|0;c=((i=i+Math.imul(h,V)|0)+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,q),o=(o=Math.imul(v,H))+Math.imul(g,q)|0,i=Math.imul(g,H),r=r+Math.imul(p,G)|0,o=(o=o+Math.imul(p,V)|0)+Math.imul(m,G)|0,i=i+Math.imul(m,V)|0;var ge=(c+(r=r+Math.imul(f,K)|0)|0)+((8191&(o=(o=o+Math.imul(f,Y)|0)+Math.imul(h,K)|0))<<13)|0;c=((i=i+Math.imul(h,Y)|0)+(o>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(w,q),o=(o=Math.imul(w,H))+Math.imul(_,q)|0,i=Math.imul(_,H),r=r+Math.imul(v,G)|0,o=(o=o+Math.imul(v,V)|0)+Math.imul(g,G)|0,i=i+Math.imul(g,V)|0,r=r+Math.imul(p,K)|0,o=(o=o+Math.imul(p,Y)|0)+Math.imul(m,K)|0,i=i+Math.imul(m,Y)|0;var be=(c+(r=r+Math.imul(f,X)|0)|0)+((8191&(o=(o=o+Math.imul(f,Z)|0)+Math.imul(h,X)|0))<<13)|0;c=((i=i+Math.imul(h,Z)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(S,q),o=(o=Math.imul(S,H))+Math.imul(C,q)|0,i=Math.imul(C,H),r=r+Math.imul(w,G)|0,o=(o=o+Math.imul(w,V)|0)+Math.imul(_,G)|0,i=i+Math.imul(_,V)|0,r=r+Math.imul(v,K)|0,o=(o=o+Math.imul(v,Y)|0)+Math.imul(g,K)|0,i=i+Math.imul(g,Y)|0,r=r+Math.imul(p,X)|0,o=(o=o+Math.imul(p,Z)|0)+Math.imul(m,X)|0,i=i+Math.imul(m,Z)|0;var we=(c+(r=r+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,ee)|0)+Math.imul(h,Q)|0))<<13)|0;c=((i=i+Math.imul(h,ee)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,q),o=(o=Math.imul(T,H))+Math.imul(x,q)|0,i=Math.imul(x,H),r=r+Math.imul(S,G)|0,o=(o=o+Math.imul(S,V)|0)+Math.imul(C,G)|0,i=i+Math.imul(C,V)|0,r=r+Math.imul(w,K)|0,o=(o=o+Math.imul(w,Y)|0)+Math.imul(_,K)|0,i=i+Math.imul(_,Y)|0,r=r+Math.imul(v,X)|0,o=(o=o+Math.imul(v,Z)|0)+Math.imul(g,X)|0,i=i+Math.imul(g,Z)|0,r=r+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,i=i+Math.imul(m,ee)|0;var _e=(c+(r=r+Math.imul(f,ne)|0)|0)+((8191&(o=(o=o+Math.imul(f,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((i=i+Math.imul(h,re)|0)+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(A,q),o=(o=Math.imul(A,H))+Math.imul(R,q)|0,i=Math.imul(R,H),r=r+Math.imul(T,G)|0,o=(o=o+Math.imul(T,V)|0)+Math.imul(x,G)|0,i=i+Math.imul(x,V)|0,r=r+Math.imul(S,K)|0,o=(o=o+Math.imul(S,Y)|0)+Math.imul(C,K)|0,i=i+Math.imul(C,Y)|0,r=r+Math.imul(w,X)|0,o=(o=o+Math.imul(w,Z)|0)+Math.imul(_,X)|0,i=i+Math.imul(_,Z)|0,r=r+Math.imul(v,Q)|0,o=(o=o+Math.imul(v,ee)|0)+Math.imul(g,Q)|0,i=i+Math.imul(g,ee)|0,r=r+Math.imul(p,ne)|0,o=(o=o+Math.imul(p,re)|0)+Math.imul(m,ne)|0,i=i+Math.imul(m,re)|0;var ke=(c+(r=r+Math.imul(f,ie)|0)|0)+((8191&(o=(o=o+Math.imul(f,ae)|0)+Math.imul(h,ie)|0))<<13)|0;c=((i=i+Math.imul(h,ae)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(P,q),o=(o=Math.imul(P,H))+Math.imul(M,q)|0,i=Math.imul(M,H),r=r+Math.imul(A,G)|0,o=(o=o+Math.imul(A,V)|0)+Math.imul(R,G)|0,i=i+Math.imul(R,V)|0,r=r+Math.imul(T,K)|0,o=(o=o+Math.imul(T,Y)|0)+Math.imul(x,K)|0,i=i+Math.imul(x,Y)|0,r=r+Math.imul(S,X)|0,o=(o=o+Math.imul(S,Z)|0)+Math.imul(C,X)|0,i=i+Math.imul(C,Z)|0,r=r+Math.imul(w,Q)|0,o=(o=o+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,ee)|0,r=r+Math.imul(v,ne)|0,o=(o=o+Math.imul(v,re)|0)+Math.imul(g,ne)|0,i=i+Math.imul(g,re)|0,r=r+Math.imul(p,ie)|0,o=(o=o+Math.imul(p,ae)|0)+Math.imul(m,ie)|0,i=i+Math.imul(m,ae)|0;var Se=(c+(r=r+Math.imul(f,ue)|0)|0)+((8191&(o=(o=o+Math.imul(f,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((i=i+Math.imul(h,ce)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,q),o=(o=Math.imul(j,H))+Math.imul(D,q)|0,i=Math.imul(D,H),r=r+Math.imul(P,G)|0,o=(o=o+Math.imul(P,V)|0)+Math.imul(M,G)|0,i=i+Math.imul(M,V)|0,r=r+Math.imul(A,K)|0,o=(o=o+Math.imul(A,Y)|0)+Math.imul(R,K)|0,i=i+Math.imul(R,Y)|0,r=r+Math.imul(T,X)|0,o=(o=o+Math.imul(T,Z)|0)+Math.imul(x,X)|0,i=i+Math.imul(x,Z)|0,r=r+Math.imul(S,Q)|0,o=(o=o+Math.imul(S,ee)|0)+Math.imul(C,Q)|0,i=i+Math.imul(C,ee)|0,r=r+Math.imul(w,ne)|0,o=(o=o+Math.imul(w,re)|0)+Math.imul(_,ne)|0,i=i+Math.imul(_,re)|0,r=r+Math.imul(v,ie)|0,o=(o=o+Math.imul(v,ae)|0)+Math.imul(g,ie)|0,i=i+Math.imul(g,ae)|0,r=r+Math.imul(p,ue)|0,o=(o=o+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,i=i+Math.imul(m,ce)|0;
vendor: 2,663 bytes, line 1
1var Ce=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(o=(o=o+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0;c=((i=i+Math.imul(h,he)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(F,q),o=(o=Math.imul(F,H))+Math.imul(B,q)|0,i=Math.imul(B,H),r=r+Math.imul(j,G)|0,o=(o=o+Math.imul(j,V)|0)+Math.imul(D,G)|0,i=i+Math.imul(D,V)|0,r=r+Math.imul(P,K)|0,o=(o=o+Math.imul(P,Y)|0)+Math.imul(M,K)|0,i=i+Math.imul(M,Y)|0,r=r+Math.imul(A,X)|0,o=(o=o+Math.imul(A,Z)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,Z)|0,r=r+Math.imul(T,Q)|0,o=(o=o+Math.imul(T,ee)|0)+Math.imul(x,Q)|0,i=i+Math.imul(x,ee)|0,r=r+Math.imul(S,ne)|0,o=(o=o+Math.imul(S,re)|0)+Math.imul(C,ne)|0,i=i+Math.imul(C,re)|0,r=r+Math.imul(w,ie)|0,o=(o=o+Math.imul(w,ae)|0)+Math.imul(_,ie)|0,i=i+Math.imul(_,ae)|0,r=r+Math.imul(v,ue)|0,o=(o=o+Math.imul(v,ce)|0)+Math.imul(g,ue)|0,i=i+Math.imul(g,ce)|0,r=r+Math.imul(p,fe)|0,o=(o=o+Math.imul(p,he)|0)+Math.imul(m,fe)|0,i=i+Math.imul(m,he)|0;var Ee=(c+(r=r+Math.imul(f,pe)|0)|0)+((8191&(o=(o=o+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0;c=((i=i+Math.imul(h,me)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(F,G),o=(o=Math.imul(F,V))+Math.imul(B,G)|0,i=Math.imul(B,V),r=r+Math.imul(j,K)|0,o=(o=o+Math.imul(j,Y)|0)+Math.imul(D,K)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(P,X)|0,o=(o=o+Math.imul(P,Z)|0)+Math.imul(M,X)|0,i=i+Math.imul(M,Z)|0,r=r+Math.imul(A,Q)|0,o=(o=o+Math.imul(A,ee)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,ee)|0,r=r+Math.imul(T,ne)|0,o=(o=o+Math.imul(T,re)|0)+Math.imul(x,ne)|0,i=i+Math.imul(x,re)|0,r=r+Math.imul(S,ie)|0,o=(o=o+Math.imul(S,ae)|0)+Math.imul(C,ie)|0,i=i+Math.imul(C,ae)|0,r=r+Math.imul(w,ue)|0,o=(o=o+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,i=i+Math.imul(_,ce)|0,r=r+Math.imul(v,fe)|0,o=(o=o+Math.imul(v,he)|0)+Math.imul(g,fe)|0,i=i+Math.imul(g,he)|0;var Te=(c+(r=r+Math.imul(p,pe)|0)|0)+((8191&(o=(o=o+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((i=i+Math.imul(m,me)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(F,K),o=(o=Math.imul(F,Y))+Math.imul(B,K)|0,i=Math.imul(B,Y),r=r+Math.imul(j,X)|0,o=(o=o+Math.imul(j,Z)|0)+Math.imul(D,X)|0,i=i+Math.imul(D,Z)|0,r=r+Math.imul(P,Q)|0,o=(o=o+Math.imul(P,ee)|0)+Math.imul(M,Q)|0,i=i+Math.imul(M,ee)|0,r=r+Math.imul(A,ne)|0,o=(o=o+Math.imul(A,re)|0)+Math.imul(R,ne)|0,i=i+Math.imul(R,re)|0,r=r+Math.imul(T,ie)|0,o=(o=o+Math.imul(T,ae)|0)+Math.imul(x,ie)|0,i=i+Math.imul(x,ae)|0,r=r+Math.imul(S,ue)|0,o=(o=o+Math.imul(S,ce)|0)+Math.imul(C,ue)|0,i=i+Math.imul(C,ce)|0,r=r+Math.imul(w,fe)|0,o=(o=o+Math.imul(w,he)|0)+Math.imul(_,fe)|0,i=i+Math.imul(_,he)|0;var xe=(c+(r=r+Math.imul(v,pe)|0)|0)+((8191&(o=(o=o+Math.imul(v,me)|0)+Math.imul(g,pe)|0))<<13)|0;c=((i=i+Math.imul(g,me)|0)+(o>>>13)|0)+(xe>>>
vendor: 7,444 bytes, line 1
126)|0,xe&=67108863,r=Math.imul(F,X),o=(o=Math.imul(F,Z))+Math.imul(B,X)|0,i=Math.imul(B,Z),r=r+Math.imul(j,Q)|0,o=(o=o+Math.imul(j,ee)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(P,ne)|0,o=(o=o+Math.imul(P,re)|0)+Math.imul(M,ne)|0,i=i+Math.imul(M,re)|0,r=r+Math.imul(A,ie)|0,o=(o=o+Math.imul(A,ae)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,ae)|0,r=r+Math.imul(T,ue)|0,o=(o=o+Math.imul(T,ce)|0)+Math.imul(x,ue)|0,i=i+Math.imul(x,ce)|0,r=r+Math.imul(S,fe)|0,o=(o=o+Math.imul(S,he)|0)+Math.imul(C,fe)|0,i=i+Math.imul(C,he)|0;var Oe=(c+(r=r+Math.imul(w,pe)|0)|0)+((8191&(o=(o=o+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0;c=((i=i+Math.imul(_,me)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(F,Q),o=(o=Math.imul(F,ee))+Math.imul(B,Q)|0,i=Math.imul(B,ee),r=r+Math.imul(j,ne)|0,o=(o=o+Math.imul(j,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(P,ie)|0,o=(o=o+Math.imul(P,ae)|0)+Math.imul(M,ie)|0,i=i+Math.imul(M,ae)|0,r=r+Math.imul(A,ue)|0,o=(o=o+Math.imul(A,ce)|0)+Math.imul(R,ue)|0,i=i+Math.imul(R,ce)|0,r=r+Math.imul(T,fe)|0,o=(o=o+Math.imul(T,he)|0)+Math.imul(x,fe)|0,i=i+Math.imul(x,he)|0;var Ae=(c+(r=r+Math.imul(S,pe)|0)|0)+((8191&(o=(o=o+Math.imul(S,me)|0)+Math.imul(C,pe)|0))<<13)|0;c=((i=i+Math.imul(C,me)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(F,ne),o=(o=Math.imul(F,re))+Math.imul(B,ne)|0,i=Math.imul(B,re),r=r+Math.imul(j,ie)|0,o=(o=o+Math.imul(j,ae)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,ae)|0,r=r+Math.imul(P,ue)|0,o=(o=o+Math.imul(P,ce)|0)+Math.imul(M,ue)|0,i=i+Math.imul(M,ce)|0,r=r+Math.imul(A,fe)|0,o=(o=o+Math.imul(A,he)|0)+Math.imul(R,fe)|0,i=i+Math.imul(R,he)|0;var Re=(c+(r=r+Math.imul(T,pe)|0)|0)+((8191&(o=(o=o+Math.imul(T,me)|0)+Math.imul(x,pe)|0))<<13)|0;c=((i=i+Math.imul(x,me)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(F,ie),o=(o=Math.imul(F,ae))+Math.imul(B,ie)|0,i=Math.imul(B,ae),r=r+Math.imul(j,ue)|0,o=(o=o+Math.imul(j,ce)|0)+Math.imul(D,ue)|0,i=i+Math.imul(D,ce)|0,r=r+Math.imul(P,fe)|0,o=(o=o+Math.imul(P,he)|0)+Math.imul(M,fe)|0,i=i+Math.imul(M,he)|0;var Ie=(c+(r=r+Math.imul(A,pe)|0)|0)+((8191&(o=(o=o+Math.imul(A,me)|0)+Math.imul(R,pe)|0))<<13)|0;c=((i=i+Math.imul(R,me)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(F,ue),o=(o=Math.imul(F,ce))+Math.imul(B,ue)|0,i=Math.imul(B,ce),r=r+Math.imul(j,fe)|0,o=(o=o+Math.imul(j,he)|0)+Math.imul(D,fe)|0,i=i+Math.imul(D,he)|0;var Pe=(c+(r=r+Math.imul(P,pe)|0)|0)+((8191&(o=(o=o+Math.imul(P,me)|0)+Math.imul(M,pe)|0))<<13)|0;c=((i=i+Math.imul(M,me)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(F,fe),o=(o=Math.imul(F,he))+Math.imul(B,fe)|0,i=Math.imul(B,he);var Me=(c+(r=r+Math.imul(j,pe)|0)|0)+((8191&(o=(o=o+Math.imul(j,me)|0)+Math.imul(D,pe)|0))<<13)|0;c=((i=i+Math.imul(D,me)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863;var Ne=(c+(r=Math.imul(F,pe))|0)+((8191&(o=(o=Math.imul(F,me))+Math.imul(B,pe)|0))<<13)|0;return c=((i=Math.imul(B,me))+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ye,u[1]=ve,u[2]=ge,u[3]=be,u[4]=we,u[5]=_e,u[6]=ke,u[7]=Se,u[8]=Ce,u[9]=Ee,u[10]=Te,u[11]=xe,u[12]=Oe,u[13]=Ae,u[14]=Re,u[15]=Ie,u[16]=Pe,u[17]=Me,u[18]=Ne,0!==c&&(u[19]=c,n.length++),n};function v(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,o=0,i=0;i<n.length-1;i++){var a=o;o=0;for(var s=67108863&r,u=Math.min(i,t.length-1),c=Math.max(0,i-e.length+1);c<=u;c++){var l=(0|e.words[i-c])*(0|t.words[c]),f=67108863&l;s=67108863&(f=f+s|0),o+=(a=(a=a+(l/67108864|0)|0)+(f>>>26)|0)>>>26,a&=67108863}n.words[i]=s,r=a,a=o}return 0!==r?n.words[i]=r:n.length--,n._strip()}function g(e,t,n){return v(e,t,n)}function b(e,t){this.x=e,this.y=t}Math.imul||(y=m),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):n<63?m(this,e,t):n<1024?v(this,e,t):g(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},b.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,o=0;o<t;o++)r|=(1&e)<<t-o-1,e>>=1;return r},b.prototype.permute=function(e,t,n,r,o,i){for(var a=0;a<i;a++)r[a]=t[e[a]],o[a]=n[e[a]]},b.prototype.transform=function(e,t,n,r,o,i){this.permute(i,e,t,n,r,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<o;l+=s)for(var f=u,h=c,d=0;d<a;d++){var p=n[l+d],m=r[l+d],y=n[l+d+a],v=r[l+d+a],g=f*y-h*v;v=f*v+h*y,n[l+d]=p+(y=g),r[l+d]=m+v,n[l+d+a]=p-y,r[l+d+a]=m-v,d!==s&&(g=u*f-c*h,h=u*h+c*f,f=g)}},b.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,o=0;for(n=n/2|0;n;n>>>=1)o++;return 1<<o+1+r},b.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var o=e[r];e[r]=e[n-r-1],e[n-r-1]=o,o=t[r],t[r]=-t[n-r-1],t[n-r-1]=-o}},b.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var o=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&o,n=o<67108864?0:o/67108864|0}return e},b.prototype.convert13b=function(e,t,n,r){for(var i=0,a=0;a<t;a++)n[2*a]=8191&(i+=0|e[a]),n[2*a+1]=8191&(i>>>=13),i>>>=13;for(a=2*t;a<r;++a)n[a]=0;o(0===i),o(0==(-8192&i))},b.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},b.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),o=this.makeRBT(r),i=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),c=new Array(r),l=new Array(r),f=new Array(r),h=n.words;h.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,c,r),this.transform(a,i,s,u,r,o),this.transform(c,i,l,f,r,o);for(var d=0;d<r;d++){var p=s[d]*l[d]-u[d]*f[d];u[d]=s[d]*f[d]+u[d]*l[d],s[d]=p}return this.conjugate(s,u,r),this.transform(s,u,h,i,r,o),this.conjugate(h,i,r),this.normalize13b(h,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n._strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),g(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){var t=e<0;t&&(e=-e),o("number"==typeof e),o(e<67108864);for(var n=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,a=(67108863&i)+(67108863&n);n>>=26,n+=i/67108864|0,n+=a>>>26,this.words[r]=67108863&a}return 0!==n&&(this.words[r]=n,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++)t[n]=e.words[n/26|0]>>>n%26&1;return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var o=n.sqr();r<t.length;r++,o=o.sqr())0!==t[r]&&(n=n.mul(o));return n},a.prototype.iushln=function(e){o("number"==typeof e&&e>=0);var t,n=e%26,r=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&i;this.words[t]=(0|this.words[t])-s<<n|a,a=s>>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this._strip()},a.prototype.ishln=function(e){return o(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,n){var r;o("number"==typeof e&&e>=0),r=t?(t-t%26)/26:0;var i=e%26,a=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<<i,u=n;
vendor: 16,384 bytes, line 1
1if(r-=a,r=Math.max(0,r),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=r);c--){var f=0|this.words[c];this.words[c]=l<<26-i|f>>>i,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,n){return o(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){o("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;return!(this.length<=n||!(this.words[n]&1<<t))},a.prototype.imaskn=function(e){o("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;return o(0===this.negative,"imaskn works only with positive numbers"),this.length<=n?this:(0!==t&&n++,this.length=Math.min(n,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<<t),this._strip())},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return o("number"==typeof e),o(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(o("number"==typeof e),o(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,n){var r,i;this._expand(e.length+n);var a=0;for(r=0;r<e.length;r++){i=(0|this.words[r+n])+a;var s=(0|e.words[r])*t;a=((i-=67108863&s)>>26)-(s/67108864|0),this.words[r+n]=67108863&i}for(;r<this.length-n;r++)a=(i=(0|this.words[r+n])+a)>>26,this.words[r+n]=67108863&i;if(0===a)return this._strip();for(o(-1===a),a=0,r=0;r<this.length;r++)a=(i=-(0|this.words[r])+a)>>26,this.words[r]=67108863&i;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var n,r=this.clone(),o=e,i=0|o.words[o.length-1];0!=(n=26-this._countBits(i))&&(o=o.ushln(n),r.iushln(n),i=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==t){(s=new a(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var l=r.clone()._ishlnsubmul(o,1,u);0===l.negative&&(r=l,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var h=67108864*(0|r.words[o.length+f])+(0|r.words[o.length+f-1]);for(h=Math.min(h/i|0,67108863),r._ishlnsubmul(o,h,f);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(o,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=h)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){return o(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(r=s.div.neg()),"div"!==t&&(i=s.mod.neg(),n&&0!==i.negative&&i.iadd(e)),{div:r,mod:i}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(r=s.div.neg()),{div:r,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(i=s.mod.neg(),n&&0!==i.negative&&i.isub(e)),{div:s.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t);var r,i,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),o=e.andln(1),i=n.cmp(r);return i<0||1===o&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),o(e<=67108863);for(var n=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(n*r+(0|this.words[i]))%e;return t?-r:r},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),o(e<=67108863);for(var n=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*n;this.words[r]=i/e|0,n=i%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){o(0===e.negative),o(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new a(1),i=new a(0),s=new a(0),u=new a(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var l=n.clone(),f=t.clone();!t.isZero();){for(var h=0,d=1;0==(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(r.isOdd()||i.isOdd())&&(r.iadd(l),i.isub(f)),r.iushrn(1),i.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(n)>=0?(t.isub(n),r.isub(s),i.isub(u)):(n.isub(t),s.isub(r),u.isub(i))}return{a:s,b:u,gcd:n.iushln(c)}},a.prototype._invmp=function(e){o(0===e.negative),o(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,i=new a(1),s=new a(0),u=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)i.isOdd()&&i.iadd(u),i.iushrn(1);for(var f=0,h=1;0==(n.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s)):(n.isub(t),s.isub(i))}return(r=0===t.cmpn(1)?i:s).cmpn(0)<0&&r.iadd(e),r},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=t.cmp(n);if(o<0){var i=t;t=n,n=i}else if(0===o||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){o("number"==typeof e);var t=e%26,n=(e-t)/26,r=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=r,this;for(var i=r,a=n;0!==i&&a<this.length;a++){var s=0|this.words[a];i=(s+=i)>>>26,this.words[a]=s&=67108863}return 0!==i&&(this.words[a]=i,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),o(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],o=0|e.words[n];if(r!==o){r<o?t=-1:r>o&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new T(e)},a.prototype.toRed=function(e){return o(!this.red,"Already a number in reduction context"),o(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return o(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return o(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else o(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){T.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(k,_),k.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=4194303&o,r=10;r<e.length;r++){var i=0|e.words[r];e.words[r-10]=(4194303&i)<<4|o>>>22,o=i}e.words[r-10]=o>>>=22,e.length-=0===o&&e.length>10?10:9},k.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];e.words[n]=67108863&(t+=977*r),t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(S,_),i(C,_),i(E,_),E.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,o=67108863&r;r>>>=26,e.words[n]=o,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new k;else if("p224"===e)t=new S;else if("p192"===e)t=new C;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return w[e]=t,t},T.prototype._verify1=function(e){o(0===e.negative,"red works only with positives"),o(e.red,"red works only with red numbers")},T.prototype._verify2=function(e,t){o(0==(e.negative|t.negative),"red works only with positives"),o(e.red&&e.red===t.red,"red works only with red numbers")},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},T.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},T.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},T.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},T.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},T.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},T.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},T.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(o(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var r=this.m.subn(1),i=0;!r.isZero()&&0===r.andln(1);)i++,r.iushrn(1);o(!r.isZero());var s=new a(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new a(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,r),h=this.pow(e,r.addn(1).iushrn(1)),d=this.pow(e,r),p=i;0!==d.cmp(s);){for(var m=d,y=0;0!==m.cmp(s);y++)m=m.redSqr();o(y<p);var v=this.pow(f,new a(1).iushln(p-y-1));h=h.redMul(v),f=v.redSqr(),d=d.redMul(f),p=y}return h},T.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},T.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new a(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var o=n[0],i=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],l=u-1;l>=0;l--){var f=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==f||0!==i?(i<<=1,i|=f,(4==++s||0===r&&0===l)&&(o=this.mul(o,n[i]),s=0,i=0)):s=0}u=26}return o},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new x(e)},i(x,T),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),i=o;return o
vendor: 2,557 bytes, line 1
1.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:185}],184:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;function i(e){this.rand=e}if(t.exports=function(e){return o||(o=new i(null)),o.generate(e)},t.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"===("undefined"==typeof self?"undefined":r(self)))self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"===("undefined"==typeof window?"undefined":r(window))&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=e("crypto");if("function"!=typeof a.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return a.randomBytes(e)}}catch(e){}},{crypto:185}],185:[function(e,t,n){},{}],186:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer;function o(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),o=0;o<t;o++)n[o]=e.readUInt32BE(4*o);return n}function i(e){for(;0<e.length;e++)e[0]=0}function a(e,t,n,r,o){for(var i,a,s,u,c=n[0],l=n[1],f=n[2],h=n[3],d=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],y=e[3]^t[3],v=4,g=1;g<o;g++)i=c[d>>>24]^l[p>>>16&255]^f[m>>>8&255]^h[255&y]^t[v++],a=c[p>>>24]^l[m>>>16&255]^f[y>>>8&255]^h[255&d]^t[v++],s=c[m>>>24]^l[y>>>16&255]^f[d>>>8&255]^h[255&p]^t[v++],u=c[y>>>24]^l[d>>>16&255]^f[p>>>8&255]^h[255&m]^t[v++],d=i,p=a,m=s,y=u;return i=(r[d>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&y])^t[v++],a=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[y>>>8&255]<<8|r[255&d])^t[v++],s=(r[m>>>24]<<24|r[y>>>16&255]<<16|r[d>
1>>8&255]<<8|r[255&p])^t[v++],u=(r[y>>>24]<<24|r[d>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^t[v++],[i>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],o=[[],[],[],[]],i=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;n[a]=c=c>>>8^255&c^99,r[c]=a;var l=e[a],f=e[l],h=e[f],d=257*e[c]^16843008*c;o[0][a]=d<<24|d>>>8,o[1][a]=d<<16|d>>>16,o[2][a]=d<<8|d>>>24,o[3][a]=d,i[0][c]=(d=16843009*h^65537*f^257*l^16843008*a)<<24|d>>>8,i[1][c]=d<<16|d>>>16,i[2][c]=d<<8|d>>>24,i[3][c]=d,0===a?a=s=1:(a=l^e[e[e[h^l]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:o,INV_SUB_MIX:i}}();function c(e){this._key=o(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),o=[],i=0;i<t;i++)o[i]=e[i];for(i=t;i<r;i++){var a=o[i-1];i%t==0?(a=u.SBOX[(a=a<<8|a>>>24)>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[i/t|0]<<24):t>6&&i%t==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),o[i]=o[i-t]^a}for(var c=[],l=0;l<r;l++){var f=r-l,h=o[f-(l%4?0:4)];c[l]=l<4||f<=4?h:u.INV_SUB_MIX[0][u.SBOX[h>>>24]]^u.INV_SUB_MIX[1][u.SBOX[h>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[h>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&h]]}this._nRounds=n,this._keySchedule=o,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return a(e=o(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},c.prototype.decryptBlock=function(e){var t=(e=o(e))[1];e[1]=e[3],e[3]=t;var n=a(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),i=r.allocUnsafe(16);return i.writeUInt32BE(n[0],0),i.writeUInt32BE(n[3],4),i.writeUInt32BE(n[2],8),i.writeUInt32BE(n[1],12),i},c.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},t.exports.AES=c},{"safe-buffer":494}],187:[function(e,t,n){"use strict";var r=e("./aes"),o=e("safe-buffer").Buffer,i=e("cipher-base"),a=e("inherits"),s=e("./ghash"),u=e("buffer-xor"),c=e("./incr32");function l(e,t,n,a){i.call(this);var u=o.alloc(4,0);this._cipher=new r.AES(t);var l=this._cipher.encryptBlock(u);this._ghash=new s(l),n=function(e,t,n){if(12===t.length)return e._finID=o.c
vendor: 12,337 bytes, line 1
1oncat([t,o.from([0,0,0,1])]),o.concat([t,o.from([0,0,0,2])]);var r=new s(n),i=t.length,a=i%16;r.update(t),a&&r.update(o.alloc(a=16-a,0)),r.update(o.alloc(8,0));var u=8*i,l=o.alloc(8);l.writeUIntBE(u,0,8),r.update(l),e._finID=r.state;var f=o.from(e._finID);return c(f),f}(this,n,l),this._prev=o.from(n),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(l,i),l.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=o.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._ghash.update(this._decrypt?e:n),this._len+=e.length,n},l.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),o=0;o<r;++o)n+=e[o]^t[o];return n}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},l.prototype.getAuthTag=function(){if(this._decrypt||!o.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},l.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},l.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},t.exports=l},{"./aes":186,"./ghash":191,"./incr32":192,"buffer-xor":217,"cipher-base":218,inherits:387,"safe-buffer":494}],188:[function(e,t,n){"use strict";var r=e("./encrypter"),o=e("./decrypter"),i=e("./modes/list.json");n.createCipher=n.Cipher=r.createCipher,n.createCipheriv=n.Cipheriv=r.createCipheriv,n.createDecipher=n.Decipher=o.createDecipher,n.createDecipheriv=n.Decipheriv=o.createDecipheriv,n.listCiphers=n.getCiphers=function(){return Object.keys(i)}},{"./decrypter":189,"./encrypter":190,"./modes/list.json":200}],189:[function(e,t,n){"use strict";var r=e("./authCipher"),o=e("safe-buffer").Buffer,i=e("./modes"),a=e("./streamCipher"),s=e("cipher-base"),u=e("./aes"),c=e("evp_bytestokey");function l(e,t,n){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new u.AES(t),this._prev=o.from(n),this._mode=e,this._autopadding=!0}function f(){this.cache=o.allocUnsafe(0)}function h(e,t,n){var s=i[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=o.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,n,!0):"auth"===s.type?new r(s.module,t,n,!0):new l(s.module,t,n)}e("inherits")(l,s),l.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return o.concat(r)},l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var n=-1;++n<t;)if(e[n+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=o.concat([this.cache,e])},f.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},n.createDecipher=function(e,t){var n=i[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=c(t,!1,n.key,n.iv);return h(e,r.key,r.iv)},n.createDecipheriv=h},{"./aes":186,"./authCipher":187,"./modes":199,"./streamCipher":202,"cipher-base":218,evp_bytestokey:368,inherits:387,"safe-buffer":494}],190:[function(e,t,n){"use strict";var r=e("./modes"),o=e("./authCipher"),i=e("safe-buffer").Buffer,a=e("./streamCipher"),s=e("cipher-base"),u=e("./aes"),c=e("evp_bytestokey");function l(e,t,n){s.call(this),this._cache=new h,this._cipher=new u.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}e("inherits")(l,s),l.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return i.concat(r)};var f=i.alloc(16,16);function h(){this.cache=i.allocUnsafe(0)}function d(e,t,n){var s=r[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=i.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new a(s.module,t,n):"auth"===s.type?new o(s.module,t,n):new l(s.module,t,n)}l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=i.concat([this.cache,e])},h.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=i.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return i.concat([this.cache,t])},n.createCipheriv=d,n.createCipher=function(e,t){var n=r[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var o=c(t,!1,n.key,n.iv);return d(e,o.key,o.iv)}},{"./aes":186,"./authCipher":187,"./modes":199,"./streamCipher":202,"cipher-base":218,evp_bytestokey:368,inherits:387,"safe-buffer":494}],191:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,o=r.alloc(16,0);function i(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},a.prototype._multiply=function(){for(var e,t,n,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],o=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(o[0]^=r[0],o[1]^=r[1],o[2]^=r[2],o[3]^=r[3]),n=0!=(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=i(o)},a.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,o],16)),this.ghash(i([0,e,0,t])),this.state},t.exports=a},{"safe-buffer":494}],192:[function(e,t,n){"use strict";t.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},{}],193:[function(e,t,n){"use strict";var r=e("buffer-xor");n.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},n.decrypt=function(e,t){var n=e._prev;e._prev=t;var o=e._cipher.decryptBlock(t);return r(o,n)}},{"buffer-xor":217}],194:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,o=e("buffer-xor");function i(e,t,n){var i=t.length,a=o(t,e._cache);return e._cache=e._cache.slice(i),e._prev=r.concat([e._prev,n?t:a]),a}n.encrypt=function(e,t,n){for(var o,a=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){a=r.concat([a,i(e,t,n)]);break}a=r.concat([a,i(e,t.slice(0,o=e._cache.length),n)]),t=t.slice(o)}return a}},{"buffer-xor":217,"safe-buffer":494}],195:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer;function o(e,t,n){for(var r,o,a=-1,s=0;++a<8;)r=t&1<<7-a?128:0,s+=(128&(o=e._cipher.encryptBlock(e._prev)[0]^r))>>a%8,e._prev=i(e._prev,n?r:o);return s}function i(e,t){var n=e.length,o=-1,i=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++o<n;)i[o]=e[o]<<1|e[o+1]>>7;return i}n.encrypt=function(e,t,n){for(var i=t.length,a=r.allocUnsafe(i),s=-1;++s<i;)a[s]=o(e,t[s],n);return a}},{"safe-buffer":494}],196:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer;function o(e,t,n){var o=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([n?t:o])]),o}n.encrypt=function(e,t,n){for(var i=t.length,a=r.allocUnsafe(i),s=-1;++s<i;)a[s]=o(e,t[s],n);return a}},{"safe-buffer":494}],197:[function(e,t,n){"use strict";var r=e("buffer-xor"),o=e("safe-buffer").Buffer,i=e("../incr32");function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return i(e._prev),t}n.encrypt=function(e,t){var n=Math.ceil(t.length/16),i=e._cache.length;e._cache=o.concat([e._cache,o.allocUnsafe(16*n)]);for(var s=0;s<n;s++){var u=a(e),c=i+16*s;e._cache.writeUInt32BE(u[0],c+0),e._cache.writeUInt32BE(u[1],c+4),e._cache.writeUInt32BE(u[2],c+8),e._cache.writeUInt32BE(u[3],c+12)}var l=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,l)}},{"../incr32":192,"buffer-xor":217,"safe-buffer":494}],198:[function(e,t,n){"use strict";n.encrypt=function(e,t){return e._cipher.encryptBlock(t)},n.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],199:[function(e,t,n){"use strict";var r={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},o=e("./list.json");for(var i in o)o[i].module=r[o[i].mode];t.exports=o},{"./cbc":193,"./cfb":194,"./cfb1":195,"./cfb8":196,"./ctr":197,"./ecb":198,"./list.json":200,"./ofb":201}],200:[function(e,t,n){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],201:[function(e,t,n){(function(t){"use strict";var r=e("buffer-xor");function o(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}n.encrypt=function(e,n){for(;e._cache.length<n.length;)e._cache=t.concat([e._cache,o(e)]);var i=e._cache.slice(0,n.length);return e._cache=e._cache.slice(n.length),r(n,i)}}).call(this,e("buffer").Buffer)}
1,{buffer:216,"buffer-xor":217}],202:[function(e,t,n){"use strict";var r=e("./aes"),o=e("safe-buffer").Buffer,i=e("cipher-base");function a(e,t,n,a){i.call(this),this._cipher=new r.AES(t),this._prev=o.from(n),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=a,this._mode=e}e("inherits")(a,i),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},t.exports=a},{"./aes":186,"cipher-base":218,inherits:387,"safe-buffer":494}],203:[function(e,t,n){"use strict";var r=e("browserify-des"),o=e("browserify-aes/browser"),i=e("browserify-aes/modes"),a=e("browserify-des/modes"),s=e("evp_bytestokey");function u(e,t,n){if(e=e.toLowerCase(),i[e])return o.createCipheriv(e,t,n);if(a[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function c(e,t,n){if(e=e.toLowerCase(),i[e])return o.createDecipheriv(e,t,n);if(a[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}n.createCipher=n.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),i[e])n=i[e].key,r=i[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");n=8*a[e].key,r=a[e].iv}var o=s(t,!1,n,r);return u(e,o.key,o.iv)},n.createCipheriv=n.Cipheriv=u,n.createDecipher=n.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),i[e])n=i[e].key,r=i[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");n=8*a[e].key,r=a[e].iv}var o=s(t,!1,n,r);return c(e,o.key,o.iv)},n.createDecipheriv=n.Decipheriv=c,n.listCiphers=n.getCiphers=function(){return Object.keys(a).concat(o.getCiphers())}},{"browserify-aes/browser":188,"browserify-aes/modes":199,"browserify-des":204,"browserify-des/modes":205,evp_bytestokey:368}],204:[function(e,t,n){"use strict";var r=e("cipher-base"),o=e("des.js"),i=e("inherits"),a=e("safe-buffer").Buffer,s={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};function u(e){r.call(this);var t,n=e.mode.toLowerCase(),o=s[n];t=e.decrypt?"decrypt":"encrypt";var i=e.key;a.isBuffer(i)||(i=a.from(i)),"des-ede"!==n&&"des-ede-cbc"!==n||(i=a.concat([i,i.slice(0,8)]));var u=e.iv;a.isBuffer(u)||(u=a.from(u)),this._des=o.create({key:i,iv:u,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=u,i(u,r),u.prototype._update=function(e){return a.from(this._des.update(e))},u.prototype._final=function(){return a.from(this._des.final())}},{"cipher-base":218,"des.js":339,inherits:387,"safe-buffer":494}],205:[function(e,t,n){"use strict";n["des-ecb"]={key:8,iv:0},n["des-cbc"]=n.des={key:8,iv:8},n["des-ede3-cbc"]=n.des3={key:24,iv:8},n["des-ede3"]={key:24,iv:0},n["des-ede-cbc"]={key:16,iv:8},n["des-ede"]={key:16,iv:0}},{}],206:[function(e,t,n){(function(n){"use strict";var r=e("bn.js"),o=e("randombytes");function i(e,t){var o=function(e){var t=a(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),i=t.modulus.byteLength(),s=(r.mont(t.modulus),new r(e).mul(o.blinder).umod(t.modulus)),u=s.toRed(r.mont(t.prime1)),c=s.toRed(r.mont(t.prime2)),l=t.coefficient,f=t.prime1,h=t.prime2,d=u.redPow(t.exponent1),p=c.redPow(t.exponent2);d=d.fromRed(),p=p.fromRed();var m=d.isub(p).imul(l).umod(f);return m.imul(h),p.iadd(m),new n(p.imul(o.unblinder).umod(t.modulus).toArray(!1,i))}function a(e){for(var t=e.modulus.byteLength(),n=new r(o(t));n.cmp(e.modulus)>=0||!n.umod(e.prime1)||!n.umod(e.prime2);)n=new r(o(t));return n}t.exports=i,i.getr=a}).call(this,e("buffer").Buffer)},{"bn.js":207,buffer:216,randombytes:475}],207:[function(e,t,n){arguments[4][181][0].apply(n,arguments)},{buffer:185,dup:181}],208:[function(e,t,n){"use strict";t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":209}],209:[function(e,t,n){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""}
1,DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],210:[function(e,t,n){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],211:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,o=e("create-hash"),i=e("readable-stream"),a=e("inherits"),s=e("./sign"),u=e("./verify"),c=e("./algorithms.json");function l(e){i.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");
vendor: 6,298 bytes, line 1
1this._hashType=t.hash,this._hash=o(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){i.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hash=o(t.hash),this._tag=t.id,this._signType=t.sign}function h(e){return new l(e)}function d(e){return new f(e)}Object.keys(c).forEach(function(e){c[e].id=r.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]}),a(l,i.Writable),l.prototype._write=function(e,t,n){this._hash.update(e),n()},l.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},l.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=s(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},a(f,i.Writable),f.prototype._write=function(e,t,n){this._hash.update(e),n()},f.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},f.prototype.verify=function(e,t,n){"string"==typeof t&&(t=r.from(t,n)),this.end();var o=this._hash.digest();return u(t,o,e,this._signType,this._tag)},t.exports={Sign:h,Verify:d,createSign:h,createVerify:d}},{"./algorithms.json":209,"./sign":212,"./verify":213,"create-hash":331,inherits:387,"readable-stream":491,"safe-buffer":214}],212:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,o=e("create-hmac"),i=e("browserify-rsa"),a=e("elliptic").ec,s=e("bn.js"),u=e("parse-asn1"),c=e("./curves.json");function l(e,t,n,i){if((e=r.from(e.toArray())).length<t.byteLength()){var a=r.alloc(t.byteLength()-e.length);e=r.concat([a,e])}var s=n.length,u=function(e,t){e=(e=f(e,t)).mod(t);var n=r.from(e.toArray());if(n.length<t.byteLength()){var o=r.alloc(t.byteLength()-n.length);n=r.concat([o,n])}return n}(n,t),c=r.alloc(s);c.fill(1);var l=r.alloc(s);return l=o(i,l).update(c).update(r.from([0])).update(e).update(u).digest(),c=o(i,l).update(c).digest(),{k:l=o(i,l).update(c).update(r.from([1])).update(e).update(u).digest(),v:c=o(i,l).update(c).digest()}}function f(e,t){var n=new s(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function h(e,t,n){var i,a;do{for(i=r.alloc(0);8*i.length<e.bitLength();)t.v=o(n,t.k).update(t.v).digest(),i=r.concat([i,t.v]);a=f(i,e),t.k=o(n,t.k).update(t.v).update(r.from([0])).digest(),t.v=o(n,t.k).update(t.v).digest()}while(-1!==a.cmp(e));return a}function d(e,t,n,r){return e.toRed(s.mont(n)).redPow(t).fromRed().mod(r)}t.exports=function(e,t,n,o,p){var m=u(t);if(m.curve){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");return function(e,t){var n=c[t.curve.join(".")];if(!n)throw new Error("unknown curve "+t.curve.join("."));var o=new a(n).keyFromPrivate(t.privateKey).sign(e);return r.from(o.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==o)throw new Error("wrong private key type");return function(e,t,n){for(var o,i=t.params.priv_key,a=t.params.p,u=t.params.q,c=t.params.g,p=new s(0),m=f(e,u).mod(u),y=!1,v=l(i,u,e,n);!1===y;)p=d(c,o=h(u,v,n),a,u),0===(y=o.invm(u).imul(m.add(i.mul(p))).mod(u)).cmpn(0)&&(y=!1,p=new s(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var n=[48,e.length+t.length+4,2,e.length];return n=n.concat(e,[2,t.length],t),r.from(n)}(p,y)}(e,m,n)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");e=r.concat([p,e]);for(var y=m.modulus.byteLength(),v=[0,1];e.length+v.length+1<y;)v.push(255);v.push(0);for(var g=-1;++g<e.length;)v.push(e[g]);return i(v,m)},t.exports.getKey=l,t.exports.makeKey=h},{"./curves.json":210,"bn.js":183,"browserify-rsa":206,"create-hmac":333,elliptic:350,"parse-asn1":459,"safe-buffer":214}],213:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,o=e("bn.js"),i=e("elliptic").ec,a=e("parse-asn1"),s=e("./curves.json");function u(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}t.exports=function(e,t,n,c,l){var f=a(n);if("ec"===f.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,n){var r=s[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));return new i(r).verify(t,e,n.data.subjectPrivateKey.data)}(e,t,f)}if("dsa"===f.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,n){var r=n.data.p,i=n.data.q,s=n.data.g,c=n.data.pub_key,l=a.signature.decode(e,"der"),f=l.s,h=l.r;u(f,i),u(h,i);var d=o.mont(r),p=f.invm(i);return 0===s.toRed(d).redPow(new o(t).mul(p).mod(i)).fromRed().mul(c.toRed(d).redPow(h.mul(p).mod(i)).fromRed()).mod(r).mod(i).cmp(h)}(e,t,f)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");t=r.concat([l,t]);for(var h=f.modulus.byteLength(),d=[1],p=0;t.length+d.length+2<h;)d.push(255),p++;d.push(0);for(var m=-1;++m<t.length;)d.push(t[m]);d=r.from(d);var y=o.mont(f.modulus);e=(e=new o(e).toRed(y)).redPow(new o(f.publicExponent)),e=r.from(e.fromRed().toArray());var v=p<8?1:0;for(h=Math.min(e.length,d.length),e.length!==d.length&&(v=1),m=-1;++m<h;)v|=e[m]^d[m];return 0===v}},{"./curves.json":210,"bn.js":183,elliptic:350,"parse-asn1":459,"safe-buffer":214}],214:[function(e,t,n){"use strict";var r=e("buffer"),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=r:(i(r,n),n.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:216}],215:[function(e,t,n){arguments[4][185][0].apply(n,arguments)},{dup:185}],216:[function(e,t,n){(function(t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=e("base64-js"),i=e("ieee754");function a(e){if(e>
vendor: 18,736 bytes, line 1
12147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=new Uint8Array(e);return n.__proto__=t.prototype,n}function t(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,n)}function s(e,n,o){if("string"==typeof e)return function(e,n){if("string"==typeof n&&""!==n||(n="utf8"),!t.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var r=0|h(e,n),o=a(r),i=o.write(e,n);return i!==r&&(o=o.slice(0,i)),o}(e,n);if(ArrayBuffer.isView(e))return l(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+r(e));if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer))return function(e,n,r){if(n<0||e.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<n+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return(o=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r)).__proto__=t.prototype,o}(e,n,o);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return t.from(i,n,o);var s=function(e){if(t.isBuffer(e)){var n=0|f(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||U(e.length)?a(0):l(e):"Buffer"===e.type&&Array.isArray(e.data)?l(e.data):void 0}(e);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return t.from(e[Symbol.toPrimitive]("string"),n,o);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+r(e))}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|f(e))}function l(e){for(var t=e.length<0?0:0|f(e.length),n=a(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function h(e,n){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+r(e));var o=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===o)return 0;for(var a=!1;;)switch(n){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":return D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return L(e).length;default:if(a)return i?-1:D(e).length;n=(""+n).toLowerCase(),a=!0}}function d(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function p(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,n,r,o,i){if(0===e.length)return-1;if("string"==typeof r?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),U(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof n&&(n=t.from(n,o)),t.isBuffer(n))return 0===n.length?-1:y(e,n,r,o,i);if("number"==typeof n)return n&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,n,r):Uint8Array.prototype.lastIndexOf.call(e,n,r):y(e,[n],r,o,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,o){var i,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+u>s&&(n=s-u),i=n;i>=0;i--){for(var f=!0,h=0;h<u;h++)if(c(e,i+h)!==c(t,h)){f=!1;break}if(f)return i}return-1}function v(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(U(s))return a;e[n+a]=s}return a}function g(e,t,n,r){return F(D(t,e.length-n),e,n,r)}function b(e,t,n,r){return F(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return b(e,t,n,r)}function _(e,t,n,r){return F(L(t),e,n,r)}function k(e,t,n,r){return F(function(e,t){for(var n,r,o=[],i=0;i<e.length&&!((t-=2)<0);++i)r=(n=e.charCodeAt(i))>>8,o.push(n%256),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return o.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,u,c=e[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:a=e[o+2],128==(192&(i=e[o+1]))&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:a=e[o+2],s=e[o+3],128==(192&(i=e[o+1]))&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(r.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function E(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function T(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function x(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=j(e[i]);return o}function O(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function A(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,n,r,o,i,a){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>i||n<a)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(e,t,n,r,o){return t=+t,n>>>=0,o||I(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,o){return t=+t,n>>>=0,o||I(e,0,n,8),i.write(e,t,n,r,52,8),n+8}n.Buffer=t,n.SlowBuffer=function(e){return+e!=e&&(e=0),t.alloc(+e)},n.INSPECT_MAX_BYTES=50,n.kMaxLength=2147483647,(t.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.buffer}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),t.poolSize=8192,t.from=function(e,t,n){return s(e,t,n)},t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,t.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}(e,t,n)},t.allocUnsafe=function(e){return c(e)},t.allocUnsafeSlow=function(e){return c(e)},t.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==t.prototype},t.compare=function(e,n){if(B(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),B(n,Uint8Array)&&(n=t.from(n,n.offset,n.byteLength)),!t.isBuffer(e)||!t.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===n)return 0;for(var r=e.length,o=n.length,i=0,a=Math.min(r,o);i<a;++i)if(e[i]!==n[i]){r=e[i],o=n[i];break}return r<o?-1:o<r?1:0},t.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(e,n){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return t.alloc(0);var r;if(void 0===n)for(n=0,r=0;r<e.length;++r)n+=e[r].length;var o=t.allocUnsafe(n),i=0;for(r=0;r<e.length;++r){var a=e[r];if(B(a,Uint8Array)&&(a=t.from(a)),!t.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,i),i+=a.length}return o},t.byteLength=h,t.prototype._isBuffer=!0,t.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)p(this,t,t+1);return this},t.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)p(this,t,t+3),p(this,t+1,t+2);return this},t.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},t.prototype.toLocaleString=t.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?C(this,0,e):d.apply(this,arguments)},t.prototype.equals=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===t.compare(this,e)},t.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},t.prototype.compare=function(e,n,o,i,a){if(B(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),!t.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+r(e));if(void 0===n&&(n=0),void 0===o&&(o=e?e.length:0),void 0===i&&(i=0),void 0===a&&(a=this.length),n<0||o>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&n>=o)return 0;if(i>=a)return-1;if(n>=o)return 1;if(this===e)return 0;for(var s=(a>>>=0)-(i>>>=0),u=(o>>>=0)-(n>>>=0),c=Math.min(s,u),l=this.slice(i,a),f=e.slice(n,o),h=0;h<c;++h)if(l[h]!==f[h]){s=l[h],u=f[h];break}return s<u?-1:u<s?1:0},t.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},t.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},t.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},t.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return g(this,e,t,n);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return _(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},t.prototype.slice=function(e,n){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(n=void 0===n?r:~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),n<e&&(n=e);var o=this.subarray(e,n);return o.__proto__=t.prototype,o},t.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},t.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},t.prototype.readUInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),this[e]},t.prototype.readUInt16LE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]|this[e+1]<<8},t.prototype.readUInt16BE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]<<8|this[e+1]},t.prototype.readUInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},t.prototype.readUInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},t.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},t.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},t.prototype.readInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},t.prototype.readInt16LE=function(e,t){e>>>=0,t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt16BE=function(e,t){e>>>=0,t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},t.prototype.readInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},t.prototype.readFloatLE=function(e,t){return e>>>=0,t||A(e,4,this.length),i.read(this,e,!0,23,4)},t.prototype.readFloatBE=function(e,t){return e>>>=0,t||A(e,4,this.length),i.read(this,e,!1,23,4)},t.prototype.readDoubleLE=function(e,t){return e>>>=0,t||A(e,8,this.length),i.read(this,e,!0,52,8)},t.prototype.readDoubleBE=function(e,t){return e>>>=0,t||A(e,8,this.length),i.read(this,e,!1,52,8)},t.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},t.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},t.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=255&e,t+1},t.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},t.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},t.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},t.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},t.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},t.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeFloatLE=function(e,t,n){return P(this,e,t,!0,n)},t.prototype.writeFloatBE=function(e,t,n){return P(this,e,t,!1,n)},t.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},t.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},t.prototype.copy=function(e,n,r,o){if(!t.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),o||0===o||(o=this.length),n>=e.length&&(n=e.length),n||(n=0),o>0&&o<r&&(o=r),o===r)return 0;if(0===e.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-n<o-r&&(o=e.length-n+r);var i=o-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(n,r,o);else if(this===e&&r<n&&n<o)for(var a=i-1;a>=0;--a)e[a+n]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,o),n);return i},t.prototype.fill=function(e,n,r,o){if("string"==typeof e){if("string"==typeof n?(o=n,n=0,r=this.length):"string"==typeof r&&(o=r,r=this.length),void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!t.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===e.length){var i=e.charCodeAt(0);("utf8"===o&&i<128||"latin1"===o)&&(e=i)}}else"number"==typeof e&&(e&=255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;var a;if(n>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=n;a<r;++a)this[a]=e;else{var s=t.isBuffer(e)?e:t.from(e,o),u=s.length;
1if(0===u)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-n;++a)this[a+n]=s[a%u]}return this};var N=/[^+/0-9A-Za-z-_]/g;function j(e){return e<16?"0"+e.toString(16):e.toString(16)}function D(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function L(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function F(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function B(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function U(e){return e!=e}}).call(this,e("buffer").Buffer)},{"base64-js":182,buffer:216,ieee754:385}],217:[function(e,t,n){(function(e){"use strict";t.exports=function(t,n){for(var r=Math.min(t.length,n.length),o=new e(r),i=0;i<r;++i)o[i]=t[i]^n[i];return o}}).call(this,e("buffer").Buffer)},{buffer:216}],218:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,o=e("stream").Transform,i=e("string_decoder").StringDecoder;function a(e){o.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(a,o),a.prototype.update=function(e,t,n){"string"==typeof e&&(e=r.from(e,t));var o=this._update(e);return this.hashMode?this:(n&&(o=this._toString(o,n)),o)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new i(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},t.exports=a},{inherits:387,"safe-buffer":494,stream:506,string_decoder:520}],219:[function(e,t,n){t.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},{}],220:[function(e,t,n){var r=e("../internals/is-object");t.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},{"../internals/is-object":263}],221:[function(e,t,n){var r=e("../internals/well-known-symbol"),o=e("../internals/object-create"),i=e("../internals/object-define-property"),a=r("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),t.exports=function(e){s[a][e]=!0}},{"../internals/object-create":276,"../internals/object-define-property":278,"../internals/well-known-symbol":314}],222:[function(e,t,n){t.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},{}],223:[function(e,t,n){var r=e("../internals/is-object");t.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},{"../internals/is-object":263}],224:[function(e,t,n){var r=e("../internals/to-indexed-object"),o=e("../internals/to-length"),i=e("../internals/to-absolute-index"),a=function(e){return function(t,n,a){var s,u=r(t),c=o(u.length),l=i(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},{"../internals/to-absolute-index":304,"../internals/to-indexed-object":305,"../internals/to-length":307}],225:[function(e,t,n){var r=e("../internals/function-bind-context"),o=e("../internals/indexed-object"),i=e("../internals/to-object"),a=e("../internals/to-length"),s=e("../internals/array-species-create"),u=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,l=4==e,f=6==e,h=5==e||f;return function(d,p,m,y){for(var v,g,b=i(d),w=o(b),_=r(p,m,3),k=a(w.length),S=0,C=y||s,E=t?C(d,k):n?C(d,0
1):void 0;k>S;S++)if((h||S in w)&&(g=_(v=w[S],S,b),e))if(t)E[S]=g;else if(g)switch(e){case 3:return!0;case 5:return v;case 6:return S;case 2:u.call(E,v)}else if(l)return!1;return f?-1:c||l?l:E}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},{"../internals/array-species-create":227,"../internals/function-bind-context":248,"../internals/indexed-object":257,"../internals/to-length":307,"../internals/to-object":308}],226:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/fails"),i=e("../internals/has"),a=Object.defineProperty,s={},u=function(e){throw e};t.exports=function(e,t){if(i(s,e))return s[e];t||(t={});var n=[][e],c=!!i(t,"ACCESSORS")&&t.ACCESSORS,l=i(t,0)?t[0]:u,f=i(t,1)?t[1]:void 0;return s[e]=!!n&&!o(function(){if(c&&!r)return!0;var e={length:-1};c?a(e,1,{enumerable:!0,get:u}):e[1]=1,n.call(e,l,f)})}},{"../internals/descriptors":240,"../internals/fails":247,"../internals/has":252}],227:[function(e,t,n){var r=e("../internals/is-object"),o=e("../internals/is-array"),i=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},{"../internals/is-array":261,"../internals/is-object":263,"../internals/well-known-symbol":314}],228:[function(e,t,n){var r=e("../internals/an-object");t.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},{"../internals/an-object":223}],229:[function(e,t,n){var r=e("../internals/well-known-symbol")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}t.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},{"../internals/well-known-symbol":314}],230:[function(e,t,n){var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],231:[function(e,t,n){var r=e("../internals/to-string-tag-support"),o=e("../internals/classof-raw"),i=e("../internals/well-known-symbol")("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},{"../internals/classof-raw":230,"../internals/to-string-tag-support":310,"../internals/well-known-symbol":314}],232:[function(e,t,n){var r=e("../internals/has"),o=e("../internals/own-keys"),i=e("../internals/object-get-own-property-descriptor"),a=e("../internals/object-define-property");t.exports=function(e,t){for(var n=o(t),s=a.f,u=i.f,c=0;c<n.length;c++){var l=n[c];r(e,l)||s(e,l,u(t,l))}}},{"../internals/has":252,"../internals/object-define-property":278,"../internals/object-get-own-property-descriptor":279,"../internals/own-keys":289}],233:[function(e,t,n){var r=e("../internals/well-known-symbol")("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},{"../internals/well-known-symbol":314}],234:[function(e,t,n){var r=e("../internals/fails");t.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},{"../internals/fails":247}],235:[function(e,t,n){"use strict";var r=e("../internals/iterators-core").IteratorPrototype,o=e("../internals/object-create"),i=e("../internals/create-property-descriptor"),a=e("../internals/set-to-string-tag"),s=e("../internals/iterators"),u=function(){return this};t.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,c,!1,!0),s[c]=u,e}},{"../internals/create-property-descriptor":237,"../internals/iterators":268,"../internals/iterators-core":267,"../internals/object-create":276,"../internals/set-to-string-tag":298}],236:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/object-define-property"),i=e("../internals/create-property-descriptor");t.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},{"../internals/create-property-descriptor":237,"../internals/descriptors":240,"../internals/object-define-property":278}],237:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],238:[function(e,t,n){"use strict";var r=e("../internals/export"),o=e("../internals/create-iterator-constructor"),i=e("../internals/object-get-prototype-of"),a=e("../internals/object-set-prototype-of"),s=e("../internals/set-to-string-tag"),u=e("../internals/create-non-enumerable-property"),c=e("../internals/redefine"),l=e("../internals/well-known-symbol"),f=e("../internals/is-pure"),h=e("../internals/iterators"),d=e("../internals/iterators-core"),p=d.IteratorPrototype,m=d.BUGGY_SAFARI_ITERATORS,y=l("iterator"),v=function(){return this};t.exports=function(e,t,n,l,d,g,b){o(n,t,l);var w,_,k,S=function(e){if(e===d&&O)return O;if(!m&&e in T)return T[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},C=t+" Iterator",E=!1,T=e.prototype,x=T[y]||T["@@iterator"]||d&&T[d],O=!m&&x||S(d),A="Array"==t&&T.entries||x;if(A&&(w=i(A.call(new e)),p!==Object.prototype&&w.next&&(f||i(w)===p||(a?a(w,p):"function"!=typeof w[y]&&u(w,y,v)),s(w,C,!0,!0),f&&(h[C]=v))),"values"==d&&x&&"values"!==x.name&&(E=!0,O=function(){return x.call(this)}),f&&!b||T[y]===O||u(T,y,O),h[t]=O,d)if(_={values:S("values"),keys:g?O:S("keys"),entries:S("entries")},b)for(k in _)(m||E||!(k in T))&&c(T,k,_[k]);else r({target:t,proto:!0,forced:m||E},_);return _}},{"../internals/create-iterator-constructor":235,"../internals/create-non-enumerable-property":236,"../internals/export":246,"../internals/is-pure":264,"../internals/iterators":268,"../internals/iterators-core":267,"../internals/object-get-prototype-of":283,"../internals/object-set-prototype-of":287,"../internals/redefine":294,"../internals/set-to-string-tag":298,"../internals/well-known-symbol":314}],239:[function(e,t,n){var r=e("../internals/path"),o=e("../internals/has"),i=e("../internals/well-known-symbol-wrapped"),a=e("../internals/object-define-property").f;
1t.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},{"../internals/has":252,"../internals/object-define-property":278,"../internals/path":290,"../internals/well-known-symbol-wrapped":313}],240:[function(e,t,n){var r=e("../internals/fails");t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},{"../internals/fails":247}],241:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/is-object"),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(e){return a?i.createElement(e):{}}},{"../internals/global":251,"../internals/is-object":263}],242:[function(e,t,n){var r=e("../internals/engine-user-agent");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},{"../internals/engine-user-agent":243}],243:[function(e,t,n){var r=e("../internals/get-built-in");t.exports=r("navigator","userAgent")||""},{"../internals/get-built-in":249}],244:[function(e,t,n){var r,o,i=e("../internals/global"),a=e("../internals/engine-user-agent"),s=i.process,u=s&&s.versions,c=u&&u.v8;c?o=(r=c.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},{"../internals/engine-user-agent":243,"../internals/global":251}],245:[function(e,t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],246:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/object-get-own-property-descriptor").f,i=e("../internals/create-non-enumerable-property"),a=e("../internals/redefine"),s=e("../internals/set-global"),u=e("../internals/copy-constructor-properties"),c=e("../internals/is-forced");t.exports=function(e,t){var n,l,f,h,d,p=e.target,m=e.global,y=e.stat;if(n=m?r:y?r[p]||s(p,{}):(r[p]||{}).prototype)for(l in t){if(h=t[l],f=e.noTargetGet?(d=o(n,l))&&d.value:n[l],!c(m?l:p+(y?".":"#")+l,e.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(e.sham||f&&f.sham)&&i(h,"sham",!0),a(n,l,h,e)}}},{"../internals/copy-constructor-properties":232,"../internals/create-non-enumerable-property":236,"../internals/global":251,"../internals/is-forced":262,"../internals/object-get-own-property-descriptor":279,"../internals/redefine":294,"../internals/set-global":296}],247:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],248:[function(e,t,n){var r=e("../internals/a-function");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},{"../internals/a-function":219}],249:[function(e,t,n){var r=e("../internals/path"),o=e("../internals/global"),i=function(e){return"function"==typeof e?e:void 0};t.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},{"../internals/global":251,"../internals/path":290}],250:[function(e,t,n){var r=e("../internals/classof"),o=e("../internals/iterators"),i=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},{"../internals/classof":231,"../internals/iterators":268,"../internals/well-known-symbol":314}],251:[function(e,t,n){(function(e){var n=function(e){return e&&e.Math==Math&&e};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],252:[function(e,t,n){var r={}.hasOwnProperty;t.exports=function(e,t){return r.call(e,t)}},{}],253:[function(e,t,n){t.exports={}},{}],254:[function(e,t,n){var r=e("../internals/global");t.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},{"../internals/global":251}],255:[function(e,t,n){var r=e("../internals/get-built-in");t.exports=r("document","documentElement")},{"../internals/get-built-in":249}],256:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/fails"),i=e("../internals/document-create-element");t.exports=!r&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},{"../internals/descriptors":240,"../internals/document-create-element":241,"../internals/fails":247}],257:[function(e,t,n){var r=e("../internals/fails"),o=e("../internals/classof-raw"),i="".split;t.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},{"../internals/classof-raw":230,"../internals/fails":247}],258:[function(e,t,n){var r=e("../internals/shared-store"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),t.exports=r.inspectSource},{"../internals/shared-store":300}],259:[function(e,t,n){var r,o,i,a=e("../internals/native-weak-map"),s=e("../internals/global"),u=e("../internals/is-object"),c=e("../internals/create-non-enumerable-property"),l=e("../internals/has"),f=e("../internals/shared-key"),h=e("../internals/hidden-keys");if(a){var d=new(0,s.WeakMap),p=d.get,m=d.has,y=d.set;
1r=function(e,t){return y.call(d,e,t),t},o=function(e){return p.call(d,e)||{}},i=function(e){return m.call(d,e)}}else{var v=f("state");h[v]=!0,r=function(e,t){return c(e,v,t),t},o=function(e){return l(e,v)?e[v]:{}},i=function(e){return l(e,v)}}t.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},{"../internals/create-non-enumerable-property":236,"../internals/global":251,"../internals/has":252,"../internals/hidden-keys":253,"../internals/is-object":263,"../internals/native-weak-map":272,"../internals/shared-key":299}],260:[function(e,t,n){var r=e("../internals/well-known-symbol"),o=e("../internals/iterators"),i=r("iterator"),a=Array.prototype;t.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},{"../internals/iterators":268,"../internals/well-known-symbol":314}],261:[function(e,t,n){var r=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"==r(e)}},{"../internals/classof-raw":230}],262:[function(e,t,n){var r=e("../internals/fails"),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==c||n!=u&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i},{"../internals/fails":247}],263:[function(e,t,n){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],264:[function(e,t,n){t.exports=!1},{}],265:[function(e,t,n){var r=e("../internals/is-object"),o=e("../internals/classof-raw"),i=e("../internals/well-known-symbol")("match");t.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},{"../internals/classof-raw":230,"../internals/is-object":263,"../internals/well-known-symbol":314}],266:[function(e,t,n){var r=e("../internals/an-object"),o=e("../internals/is-array-iterator-method"),i=e("../internals/to-length"),a=e("../internals/function-bind-context"),s=e("../internals/get-iterator-method"),u=e("../internals/call-with-safe-iteration-closing"),c=function(e,t){this.stopped=e,this.result=t};(t.exports=function(e,t,n,l,f){var h,d,p,m,y,v,g,b=a(t,n,l?2:1);if(f)h=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(o(d)){for(p=0,m=i(e.length);m>p;p++)if((y=l?b(r(g=e[p])[0],g[1]):b(e[p]))&&y instanceof c)return y;return new c(!1)}h=d.call(e)}for(v=h.next;!(g=v.call(h)).done;)if("object"==typeof(y=u(h,b,g.value,l))&&y&&y instanceof c)return y;return new c(!1)}).stop=function(e){return new c(!0,e)}},{"../internals/an-object":223,"../internals/call-with-safe-iteration-closing":228,"../internals/function-bind-context":248,"../internals/get-iterator-method":250,"../internals/is-array-iterator-method":260,"../internals/to-length":307}],267:[function(e,t,n){"use strict";var r,o,i,a=e("../internals/object-get-prototype-of"),s=e("../internals/create-non-enumerable-property"),u=e("../internals/has"),c=e("../internals/well-known-symbol"),l=e("../internals/is-pure"),f=c("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):h=!0),null==r&&(r={}),l||u(r,f)||s(r,f,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},{"../internals/create-non-enumerable-property":236,"../internals/has":252,"../internals/is-pure":264,"../internals/object-get-prototype-of":283,"../internals/well-known-symbol":314}],268:[function(e,t,n){arguments[4][253][0].apply(n,arguments)},{dup:253}],269:[function(e,t,n){var r,o,i,a,s,u,c,l,f=e("../internals/global"),h=e("../internals/object-get-own-property-descriptor").f,d=e("../internals/classof-raw"),p=e("../internals/task").set,m=e("../internals/engine-is-ios"),y=f.MutationObserver||f.WebKitMutationObserver,v=f.process,g=f.Promise,b="process"==d(v),w=h(f,"queueMicrotask"),_=w&&w.value;_||(r=function(){var e,t;for(b&&(e=v.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},b?a=function(){v.nextTick(r)}:y&&!m?(s=!0,u=document.createTextNode(""),new y(r).observe(u,{characterData:!0}
1),a=function(){u.data=s=!s}):g&&g.resolve?(c=g.resolve(void 0),l=c.then,a=function(){l.call(c,r)}):a=function(){p.call(f,r)}),t.exports=_||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},{"../internals/classof-raw":230,"../internals/engine-is-ios":242,"../internals/global":251,"../internals/object-get-own-property-descriptor":279,"../internals/task":303}],270:[function(e,t,n){var r=e("../internals/global");t.exports=r.Promise},{"../internals/global":251}],271:[function(e,t,n){var r=e("../internals/fails");t.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},{"../internals/fails":247}],272:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/inspect-source"),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},{"../internals/global":251,"../internals/inspect-source":258}],273:[function(e,t,n){"use strict";var r=e("../internals/a-function"),o=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};t.exports.f=function(e){return new o(e)}},{"../internals/a-function":219}],274:[function(e,t,n){var r=e("../internals/is-regexp");t.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},{"../internals/is-regexp":265}],275:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),o=e("../internals/fails"),i=e("../internals/object-keys"),a=e("../internals/object-get-own-property-symbols"),s=e("../internals/object-property-is-enumerable"),u=e("../internals/to-object"),c=e("../internals/indexed-object"),l=Object.assign,f=Object.defineProperty;t.exports=!l||o(function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=i(l({},t)).join("")})?function(e,t){for(var n=u(e),o=arguments.length,l=1,f=a.f,h=s.f;o>l;)for(var d,p=c(arguments[l++]),m=f?i(p).concat(f(p)):i(p),y=m.length,v=0;y>v;)d=m[v++],r&&!h.call(p,d)||(n[d]=p[d]);return n}:l},{"../internals/descriptors":240,"../internals/fails":247,"../internals/indexed-object":257,"../internals/object-get-own-property-symbols":282,"../internals/object-keys":285,"../internals/object-property-is-enumerable":286,"../internals/to-object":308}],276:[function(e,t,n){var r,o=e("../internals/an-object"),i=e("../internals/object-define-properties"),a=e("../internals/enum-bug-keys"),s=e("../internals/hidden-keys"),u=e("../internals/html"),c=e("../internals/document-create-element"),l=e("../internals/shared-key")("IE_PROTO"),f=function(){},h=function(e){return"<script>"+e+"<\/script>"},d=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;d=r?function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete d.prototype[a[n]];return d()};s[l]=!0,t.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=o(e),n=new f,f.prototype=null,n[l]=e):n=d(),void 0===t?n:i(n,t)}},{"../internals/an-object":223,"../internals/document-create-element":241,"../internals/enum-bug-keys":245,"../internals/hidden-keys":253,"../internals/html":255,"../internals/object-define-properties":277,"../internals/shared-key":299}],277:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/object-define-property"),i=e("../internals/an-object"),a=e("../internals/object-keys");t.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),s=r.length,u=0;s>u;)o.f(e,n=r[u++],t[n]);return e}},{"../internals/an-object":223,"../internals/descriptors":240,"../internals/object-define-property":278,"../internals/object-keys":285}],278:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/ie8-dom-define"),i=e("../internals/an-object"),a=e("../internals/to-primitive"),s=Object.defineProperty;n.f=r?s:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},{"../internals/an-object":223,"../internals/descriptors":240,"../internals/ie8-d
1om-define":256,"../internals/to-primitive":309}],279:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/object-property-is-enumerable"),i=e("../internals/create-property-descriptor"),a=e("../internals/to-indexed-object"),s=e("../internals/to-primitive"),u=e("../internals/has"),c=e("../internals/ie8-dom-define"),l=Object.getOwnPropertyDescriptor;n.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(u(e,t))return i(!o.f.call(e,t),e[t])}},{"../internals/create-property-descriptor":237,"../internals/descriptors":240,"../internals/has":252,"../internals/ie8-dom-define":256,"../internals/object-property-is-enumerable":286,"../internals/to-indexed-object":305,"../internals/to-primitive":309}],280:[function(e,t,n){var r=e("../internals/to-indexed-object"),o=e("../internals/object-get-own-property-names").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},{"../internals/object-get-own-property-names":281,"../internals/to-indexed-object":305}],281:[function(e,t,n){var r=e("../internals/object-keys-internal"),o=e("../internals/enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},{"../internals/enum-bug-keys":245,"../internals/object-keys-internal":284}],282:[function(e,t,n){n.f=Object.getOwnPropertySymbols},{}],283:[function(e,t,n){var r=e("../internals/has"),o=e("../internals/to-object"),i=e("../internals/shared-key"),a=e("../internals/correct-prototype-getter"),s=i("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},{"../internals/correct-prototype-getter":234,"../internals/has":252,"../internals/shared-key":299,"../internals/to-object":308}],284:[function(e,t,n){var r=e("../internals/has"),o=e("../internals/to-indexed-object"),i=e("../internals/array-includes").indexOf,a=e("../internals/hidden-keys");t.exports=function(e,t){var n,s=o(e),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~i(c,n)||c.push(n));return c}},{"../internals/array-includes":224,"../internals/has":252,"../internals/hidden-keys":253,"../internals/to-indexed-object":305}],285:[function(e,t,n){var r=e("../internals/object-keys-internal"),o=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return r(e,o)}},{"../internals/enum-bug-keys":245,"../internals/object-keys-internal":284}],286:[function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},{}],287:[function(e,t,n){var r=e("../internals/an-object"),o=e("../internals/a-possible-prototype");
1t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},{"../internals/a-possible-prototype":220,"../internals/an-object":223}],288:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/object-keys"),i=e("../internals/to-indexed-object"),a=e("../internals/object-property-is-enumerable").f,s=function(e){return function(t){for(var n,s=i(t),u=o(s),c=u.length,l=0,f=[];c>l;)n=u[l++],r&&!a.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}};t.exports={entries:s(!0),values:s(!1)}},{"../internals/descriptors":240,"../internals/object-keys":285,"../internals/object-property-is-enumerable":286,"../internals/to-indexed-object":305}],289:[function(e,t,n){var r=e("../internals/get-built-in"),o=e("../internals/object-get-own-property-names"),i=e("../internals/object-get-own-property-symbols"),a=e("../internals/an-object");t.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},{"../internals/an-object":223,"../internals/get-built-in":249,"../internals/object-get-own-property-names":281,"../internals/object-get-own-property-symbols":282}],290:[function(e,t,n){var r=e("../internals/global");t.exports=r},{"../internals/global":251}],291:[function(e,t,n){t.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},{}],292:[function(e,t,n){var r=e("../internals/an-object"),o=e("../internals/is-object"),i=e("../internals/new-promise-capability");t.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},{"../internals/an-object":223,"../internals/is-object":263,"../internals/new-promise-capability":273}],293:[function(e,t,n){var r=e("../internals/redefine");t.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},{"../internals/redefine":294}],294:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/create-non-enumerable-property"),i=e("../internals/has"),a=e("../internals/set-global"),s=e("../internals/inspect-source"),u=e("../internals/internal-state"),c=u.get,l=u.enforce,f=String(String).split("String");(t.exports=function(e,t,n,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),l(n).source=f.join("string"==typeof t?t:"")),e!==r?(u?!h&&e[t]&&(c=!0):delete e[t],c?e[t]=n:o(e,t,n)):c?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||s(this)})},{"../internals/create-non-enumerable-property":236,"../internals/global":251,"../internals/has":252,"../internals/inspect-source":258,"../internals/internal-state":259,"../internals/set-global":296}],295:[function(e,t,n){t.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},{}],296:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/create-non-enumerable-property");t.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},{"../internals/create-non-enumerable-property":236,"../internals/global":251}],297:[function(e,t,n){"use strict";var r=e("../internals/get-built-in"),o=e("../internals/object-define-property"),i=e("../internals/well-known-symbol"),a=e("../internals/descriptors"),s=i("species");t.exports=function(e){var t=r(e);a&&t&&!t[s]&&(0,o.f)(t,s,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":240,"../internals/get-built-in":249,"../internals/object-define-property":278,"../internals/well-known-symbol":314}],298:[function(e,t,n){var r=e("../internals/object-define-property").f,o=e("../internals/has"),i=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},{"../internals/has":252,"../internals/object-define-property":278,"../internals/well-known-symbol":314}],299:[function(e,t,n){var r=e("../internals/shared"),o=e("../internals/uid"),i=r("keys");t.exports=function(e){return i[e]||(i[e]=o(e))}},{"../internals/shared":301,"../internals/uid":311}],300:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/set-global"),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},{"../internals/global":251,"../internals/set-global":296}],301:[function(e,t,n){var r=e("../internals/is-pure"),o=e("../internals/shared-store");(t.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},{"../internals/is-pure":264,"../internals/shared-store":300}],302:[function(e,t,n){var r=e("../internals/an-object"),o=e("../internals/a-function"),i=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},{"../internals/a-function":219,"../internals/an-object":223,"../internals/well-known-symbol":314}],303:[function(e,t,n){var r,o,i,a=e("../internals/global"),s=e("../internals/fails"),u=e("../internals/classof-raw"),c=e("../internals/function-bind-context"),l=e("../internals/html"),f=e("../internals/document-create-element"),h=e("../internals/engine-is-ios"),d=a.location,p=a.setImmediate,m=a.clearImmediate,y=a.process,v=a.MessageChannel,g=a.Dispatch,b=0,w={},_=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},k=function(e){return function(){_(e)}},S=function(e){_(e.data)},C=function(e){a.postMessage(e+"",d.protocol+"//"+d.host)};p&&m||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return w[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},m=function(e){delete w[e]},"process"==u(y)?r=function(e){y.nextTick(k(e))}:g&&g.now?r=function(e){g.now(k(e))}:v&&!h?(i=(o=new v).port2,o.port1.onmessage=S,r=c(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(C)||"file:"===d.protocol?r="onreadystatechange"in f("script")?function(e){l.appendChild(f("script")).onreadystatechange=function(){l.removeChild(this),_(e)}}:function(e){setTimeout(k(e),0)}:(r=C,a.addEventListener("message",S,!1))),t.exports={set:p,clear:m}},{"../internals/classof-raw":230,"../internals/document-create-element":241,"../internals/engine-is-ios":242,"../internals/fails":247,"../internals/function-bind-context":248,"../internals/global":251,"../internals/html":255}],304:[function(e,t,n){var r=e("../internals/to-integer"),o=Math.max,i=Math.min;t.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},{"../internals/to-integer":306}],305:[function(e,t,n){var r=e("../internals/indexed-object"),o=e("../internals/require-object-coercible");t.exports=function(e){return r(o(e))}},{"../internals/indexed-object":257,"../internals/require-object-coercible":295}],306:[function(e,t,n){var r=Math.ceil,o=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?o:r)(e)}},{}],307:[function(e,t,n){var r=e("../internals/to-integer"),o=Math.min;t.exports=function(e){return e>0?o(r(e),9007199254740991):0}},{"../internals/to-integer":306}],308:[function(e,t,n){var r=e("../internals/require-object-coercible");t.exports=function(e){return Object(r(e))}},{"../internals/require-object-coercible":295}],309:[function(e,t,n){var r=e("../internals/is-object");t.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},{"../internals/is-object":263}],310:[function(e,t,n){var r={};r[e("../internals/well-known-symbol")("toStringTag")]="z",t.exports="[object z]"===String(r)},{"../internals/well-known-symbol":314}],311:[function(e,t,n){var r=0,o=Math.random();t.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+o).toString(36)}},{}],312:[function(e,t,n){var r=e("../internals/native-symbol");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/native-symbol":271}],313:[function(e,t,n){var r=e("../internals/well-known-symbol");n.f=r},{"../internals/well-known-symbol":314}],314:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/shared"),i=e("../internals/has"),a=e("../internals/uid"),s=e("../internals/native-symbol"),u=e("../internals/use-symbol-as-uid"),c=o("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||a;t.exports=function(e){return i(c,e)||(c[e]=s&&i(l,e)?l[e]:f("Symbol."+e)),c[e]}},{"../internals/global":251,"../internals/has":252,"../internals/native-symbol":271,"../internals/shared":301,"../internals/uid":311,"../internals/use-symbol-as-uid":312}],315:[function(e,t,n){"use strict";var r=e("../internals/export"),o=e("../internals/array-iteration").findIndex,i=e("../internals/a
1dd-to-unscopables"),a=e("../internals/array-method-uses-to-length"),s=!0,u=a("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){s=!1}),r({target:"Array",proto:!0,forced:s||!u},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},{"../internals/add-to-unscopables":221,"../internals/array-iteration":225,"../internals/array-method-uses-to-length":226,"../internals/export":246}],316:[function(e,t,n){"use strict";var r=e("../internals/export"),o=e("../internals/array-iteration").find,i=e("../internals/add-to-unscopables"),a=e("../internals/array-method-uses-to-length"),s=!0,u=a("find");"find"in[]&&Array(1).find(function(){s=!1}),r({target:"Array",proto:!0,forced:s||!u},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},{"../internals/add-to-unscopables":221,"../internals/array-iteration":225,"../internals/array-method-uses-to-length":226,"../internals/export":246}],317:[function(e,t,n){"use strict";var r=e("../internals/export"),o=e("../internals/array-includes").includes,i=e("../internals/add-to-unscopables");r({target:"Array",proto:!0,forced:!e("../internals/array-method-uses-to-length")("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},{"../internals/add-to-unscopables":221,"../internals/array-includes":224,"../internals/array-method-uses-to-length":226,"../internals/export":246}],318:[function(e,t,n){"use strict";var r=e("../internals/to-indexed-object"),o=e("../internals/add-to-unscopables"),i=e("../internals/iterators"),a=e("../internals/internal-state"),s=e("../internals/define-iterator"),u=a.set,c=a.getterFor("Array Iterator");t.exports=s(Array,"Array",function(e,t){u(this,{type:"Array Iterator",target:r(e),index:0,kind:t})},function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},{"../internals/add-to-unscopables":221,"../internals/define-iterator":238,"../internals/internal-state":259,"../internals/iterators":268,"../internals/to-indexed-object":305}],319:[function(e,t,n){e("../internals/export")({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},{"../internals/export":246}],320:[function(e,t,n){var r=e("../internals/export"),o=e("../internals/object-assign");r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},{"../internals/export":246,"../internals/object-assign":275}],321:[function(e,t,n){var r=e("../internals/export"),o=e("../internals/to-object"),i=e("../internals/object-keys");r({target:"Object",stat:!0,forced:e("../internals/fails")(function(){i(1)})},{keys:function(e){return i(o(e))}})},{"../internals/export":246,"../internals/fails":247,"../internals/object-keys":285,"../internals/to-object":308}],322:[function(e,t,n){var r=e("../internals/export"),o=e("../internals/object-to-array").values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},{"../internals/export":246,"../internals/object-to-array":288}],323:[function(e,t,n){"use strict";var r,o,i,a,s=e("../internals/export"),u=e("../internals/is-pure"),c=e("../internals/global"),l=e("../internals/get-built-in"),f=e("../internals/native-promise-constructor"),h=e("../internals/redefine"),d=e("../internals/redefine-all"),p=e("../internals/set-to-string-tag"),m=e("../internals/set-species"),y=e("../internals/is-object"),v=e("../internals/a-function"),g=e("../internals/an-instance"),b=e("../internals/classof-raw"),w=e("../internals/inspect-source"),_=e("../internals/iterate"),k=e("../internals/check-correctness-of-iteration"),S=e("../internals/species-constructor"),C=e("../internals/task").set,E=e("../internals/microtask"),T=e("../internals/promise-resolve"),x=e("../internals/host-report-errors"),O=e("../internals/new-promise-capability"),A=e("../internals/perform"),R=e("../internals/internal-state"),I=e("../internals/is-forced"),P=e("../internals/well-known-symbol"),M=e("../internals/engine-v8-version"),N=P("species"),j="Promise",D=R.get,L=R.set,F=R.getterFor(j),B=f,U=c.TypeError,q=c.document,H=c.process,z=l("fetch"),G=O.f,V=G,$="process"==b(H),K=!!(q&&q.createEvent&&c.dispatchEvent),Y=I(j,function(){if(w(B)===String(B)){if(66===M)return!0;
1if(!$&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!B.prototype.finally)return!0;if(M>=51&&/native code/.test(B))return!1;var e=B.resolve(1),t=function(e){e(function(){},function(){})};return(e.constructor={})[N]=t,!(e.then(function(){})instanceof t)}),W=Y||!k(function(e){B.all(e).catch(function(){})}),X=function(e){var t;return!(!y(e)||"function"!=typeof(t=e.then))&&t},Z=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;E(function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var s,u,c,l=r[a++],f=i?l.ok:l.fail,h=l.resolve,d=l.reject,p=l.domain;try{f?(i||(2===t.rejection&&te(e,t),t.rejection=1),!0===f?s=o:(p&&p.enter(),s=f(o),p&&(p.exit(),c=!0)),s===l.promise?d(U("Promise-chain cycle")):(u=X(s))?u.call(s,h,d):h(s)):d(o)}catch(e){p&&!c&&p.exit(),d(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Q(e,t)})}},J=function(e,t,n){var r,o;K?((r=q.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},(o=c["on"+e])?o(r):"unhandledrejection"===e&&x("Unhandled promise rejection",n)},Q=function(e,t){C.call(c,function(){var n,r=t.value;if(ee(t)&&(n=A(function(){$?H.emit("unhandledRejection",r,e):J("unhandledrejection",e,r)}),t.rejection=$||ee(t)?2:1,n.error))throw n.value})},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){C.call(c,function(){$?H.emit("rejectionHandled",e):J("rejectionhandled",e,t.value)})},ne=function(e,t,n,r){return function(o){e(t,n,o,r)}},re=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Z(e,t,!0))},oe=function e(t,n,r,o){if(!n.done){n.done=!0,o&&(n=o);try{if(t===r)throw U("Promise can't be resolved itself");var i=X(r);i?E(function(){var o={done:!1};try{i.call(r,ne(e,t,o,n),ne(re,t,o,n))}catch(r){re(t,o,r,n)}}):(n.value=r,n.state=1,Z(t,n,!1))}catch(r){re(t,{done:!1},r,n)}}};Y&&(B=function(e){g(this,B,j),v(e),r.call(this);var t=D(this);try{e(ne(oe,this,t),ne(re,this,t))}catch(e){re(this,t,e)}},(r=function(e){L(this,{type:j,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(B.prototype,{then:function(e,t){var n=F(this),r=G(S(this,B));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=$?H.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Z(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=D(e);this.promise=e,this.resolve=ne(oe,e,t),this.reject=ne(re,e,t)},O.f=G=function(e){return e===B||e===i?new o(e):V(e)},u||"function"!=typeof f||(a=f.prototype.then,h(f.prototype,"then",function(e,t){var n=this;return new B(function(e,t){a.call(n,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof z&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return T(B,z.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:Y},{Promise:B}),p(B,j,!1,!0),m(j),i=l(j),s({target:j,stat:!0,forced:Y},{reject:function(e){var t=G(this);return t.reject.call(void 0,e),t.promise}}),s({target:j,stat:!0,forced:u||Y},{resolve:function(e){return T(u&&this===i?B:this,e)}}),s({target:j,stat:!0,forced:W},{all:function(e){var t=this,n=G(t),r=n.resolve,o=n.reject,i=A(function(){var n=v(t.resolve),i=[],a=0,s=1;_(e,function(e){var u=a++,c=!1;i.push(void 0),s++,n.call(t,e).then(function(e){c||(c=!0,i[u]=e,--s||r(i))},o)}),--s||r(i)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=G(t),r=n.reject,o=A(function(){var o=v(t.resolve);_(e,function(e){o.call(t,e).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}})},{"../internals/a-function":219,"../internals/an-instance":222,"../internals/check-correctness-of-iteration":229,"../internals/classof-raw":230,"../internals/engine-v8-version":244,"../internals/export":246,"../internals/get-built-in":249,"../internals/global":251,"../internals/host-report-errors":254,"../internals/inspect-source":258,"../internals/internal-state":259,"../internals/is-forced":262,"../internals/is-object":263,"../internals/is-pure":264,"../internals/iterate":266,"../internals/microtask":269,"../internals/native-promise-constructor":270,"../internals/new-promise-capability":273,"../internals/perform":291,"../internals/promise-resolve":292,"../internals/redefine":294,"../internals/redefine-all":293,"../internals/set-species":297,"../internals/set-to-string-tag":298,"../internals/species-constructor":302,"../internals/task":303,"../internals/well-known-symbol":314}],324:[function(e,t,n){var r=e("../internals/export"),o=e("../internals/to-absolute-index"),i=String.fromCharCode,a=String.fromCodePoint;r({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},{"../internals/export":246,"../internals/to-absolute-index":304}],325:[function(e,t,n){"use strict";var r=e("../internals/export"),o=e("../internals/not-a-regexp"),i=e("../internals/require-object-coercible");r({target:"String",proto:!0,forced:!e("../internals/correct-is-regexp-logic")("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":233,"../internals/export":246,"../internals/not-a-regexp":274,"../internals/require-object-coercible":295}],326:[function(e,t,n){e("../internals/define-well-known-symbol")("asyncIterator")},{"../internals/define-well-known-symbol":239}],327:[function(e,t,n){"use strict";var r=e("../internals/export"),o=e("../internals/global"),i=e("../internals/get-built-in"),a=e("../internals/is-pure"),s=e("../internals/descriptors"),u=e("../internals/native-symbol"),c=e("../internals/use-symbol-as-uid"),l=e("../internals/fails"),f=e("../internals/has"),h=e("../internals/is-array"),d=e("../internals/is-object"),p=e("../internals/an-object"),m=e("../internals/to-object"),y=e("../internals/to-indexed-object"),v=e("../internals/to-primitive"),g=e("../internals/create-property-descriptor"),b=e("../internals/object-create"),w=e("../internals/object-keys"),_=e("../internals/object-get-own-property-names"),k=e("../internals/object-get-own-property-names-external"),S=e("../internals/object-get-own-property-symbol
1s"),C=e("../internals/object-get-own-property-descriptor"),E=e("../internals/object-define-property"),T=e("../internals/object-property-is-enumerable"),x=e("../internals/create-non-enumerable-property"),O=e("../internals/redefine"),A=e("../internals/shared"),R=e("../internals/shared-key"),I=e("../internals/hidden-keys"),P=e("../internals/uid"),M=e("../internals/well-known-symbol"),N=e("../internals/well-known-symbol-wrapped"),j=e("../internals/define-well-known-symbol"),D=e("../internals/set-to-string-tag"),L=e("../internals/internal-state"),F=e("../internals/array-iteration").forEach,B=R("hidden"),U=M("toPrimitive"),q=L.set,H=L.getterFor("Symbol"),z=Object.prototype,G=o.Symbol,V=i("JSON","stringify"),$=C.f,K=E.f,Y=k.f,W=T.f,X=A("symbols"),Z=A("op-symbols"),J=A("string-to-symbol-registry"),Q=A("symbol-to-string-registry"),ee=A("wks"),te=o.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&l(function(){return 7!=b(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=$(z,t);r&&delete z[t],K(e,t,n),r&&e!==z&&K(z,t,r)}:K,oe=function(e,t){var n=X[e]=b(G.prototype);return q(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},ie=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof G},ae=function e(t,n,r){t===z&&e(Z,n,r),p(t);var o=v(n,!0);return p(r),f(X,o)?(r.enumerable?(f(t,B)&&t[B][o]&&(t[B][o]=!1),r=b(r,{enumerable:g(0,!1)})):(f(t,B)||K(t,B,g(1,{})),t[B][o]=!0),re(t,o,r)):K(t,o,r)},se=function(e,t){p(e);var n=y(t),r=w(n).concat(fe(n));return F(r,function(t){s&&!ue.call(n,t)||ae(e,t,n[t])}),e},ue=function(e){var t=v(e,!0),n=W.call(this,t);return!(this===z&&f(X,t)&&!f(Z,t))&&(!(n||!f(this,t)||!f(X,t)||f(this,B)&&this[B][t])||n)},ce=function(e,t){var n=y(e),r=v(t,!0);if(n!==z||!f(X,r)||f(Z,r)){var o=$(n,r);return!o||!f(X,r)||f(n,B)&&n[B][r]||(o.enumerable=!0),o}},le=function(e){var t=Y(y(e)),n=[];return F(t,function(e){f(X,e)||f(I,e)||n.push(e)}),n},fe=function(e){var t=e===z,n=Y(t?Z:y(e)),r=[];return F(n,function(e){!f(X,e)||t&&!f(z,e)||r.push(X[e])}),r};u||(O((G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=P(e),n=function e(n){this===z&&e.call(Z,n),f(this,B)&&f(this[B],t)&&(this[B][t]=!1),re(this,t,g(1,n))};return s&&ne&&re(z,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",function(){return H(this).tag}),O(G,"withoutSetter",function(e){return oe(P(e),e)}),T.f=ue,E.f=ae,C.f=ce,_.f=k.f=le,S.f=fe,N.f=function(e){return oe(M(e),e)},s&&(K(G.prototype,"description",{configurable:!0,get:function(){return H(this).description}}),a||O(z,"propertyIsEnumerable",ue,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:G}),F(w(ee),function(e){j(e)}),r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=String(e);if(f(J,t))return J[t];var n=G(t);return J[t]=n,Q[n]=t,n},keyFor:function(e){if(!ie(e))throw TypeError(e+" is not a symbol");if(f(Q,e))return Q[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(e,t){return void 0===t?b(e):se(b(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:ce}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:le,getOwnPropertySymbols:fe}),r({target:"Object",stat:!0,forced:l(function(){S.f(1)})},{getOwnPropertySymbols:function(e){return S.f(m(e))}}),V&&r({target:"JSON",stat:!0,forced:!u||l(function(){var e=G();return"[null]"!=V([e])||"{}"!=V({a:e})||"{}"!=V(Object(e))})},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(d(t)||void 0!==e)&&!ie(e))return h(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ie(t))return t}),o[1]=t,V.apply(null,o)}}),G.prototype[U]||x(G.prototype,U,G.prototype.valueOf),D(G,"Symbol"),I[B]=!0},{"../internals/an-object":223,"../internals/array-iteration":225,"../internals/create-non-enumerable-property":236,"../internals/create-property-descriptor":237,"../internals/define-well-known-symbol":239,"../internals/descriptors":240,"../internals/export":246,"../internals/fails":247,"../internals/get-built-in":249,"../internals/global":251,"../internals/has":252,"../internals/hidden-keys":253,"../internals/internal-state":259,"../internals/is-array":261,"../internals/is-object":263,"../internals/is-pure":264,"../internals/native-symbol":271,"../internals/object-create":276,"../internals/object-define-property":278,"../internals/object-get-own-property-descriptor":279,"../internals/object-get-own-property-names":281,"../internals/object-get-own-property-names-external":280,"../internals/object-get-own-property-symbol
1s":282,"../internals/object-keys":285,"../internals/object-property-is-enumerable":286,"../internals/redefine":294,"../internals/set-to-string-tag":298,"../internals/shared":301,"../internals/shared-key":299,"../internals/to-indexed-object":305,"../internals/to-object":308,"../internals/to-primitive":309,"../internals/uid":311,"../internals/use-symbol-as-uid":312,"../internals/well-known-symbol":314,"../internals/well-known-symbol-wrapped":313}],328:[function(e,t,n){(function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return Object.prototype.toString.call(e)}n.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},n.isBoolean=function(e){return"boolean"==typeof e},n.isNull=function(e){return null===e},n.isNullOrUndefined=function(e){return null==e},n.isNumber=function(e){return"number"==typeof e},n.isString=function(e){return"string"==typeof e},n.isSymbol=function(e){return"symbol"===t(e)},n.isUndefined=function(e){return void 0===e},n.isRegExp=function(e){return"[object RegExp]"===r(e)},n.isObject=function(e){return"object"===t(e)&&null!==e},n.isDate=function(e){return"[object Date]"===r(e)},n.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},n.isFunction=function(e){return"function"==typeof e},n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===t(e)||void 0===e},n.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":388}],329:[function(e,t,n){(function(n){"use strict";var r=e("elliptic"),o=e("bn.js");t.exports=function(e){return new a(e)};var i={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(e){this.curveType=i[e],this.curveType||(this.curveType={name:e}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function s(e,t,r){Array.isArray(e)||(e=e.toArray());var o=new n(e);if(r&&o.length<r){var i=new n(r-o.length);i.fill(0),o=n.concat([i,o])}return t?o.toString(t):o}i.p224=i.secp224r1,i.p256=i.secp256r1=i.prime256v1,i.p192=i.secp192r1=i.prime192v1,i.p384=i.secp384r1,i.p521=i.secp521r1,a.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},a.prototype.computeSecret=function(e,t,r){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},a.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[0]=n[n.length-1]%2?7:6),s(n,e)},a.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},a.prototype.setPublicKey=function(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this.keys._importPublic(e),this},a.prototype.setPrivateKey=function(e,t){t=t||"utf8",n.isBuffer(e)||(e=new n(e,t));var r=new o(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,e("buffer").Buffer)},{"bn.js":330,buffer:216,elliptic:350}],330:[function(e,t,n){arguments[4][181][0].apply(n,arguments)},{buffer:185,dup:181}],331:[function(e,t,n){"use strict";var r=e("inherits"),o=e("md5.js"),i=e("ripemd160"),a=e("sha.js"),s=e("cipher-base");function u(e){s.call(this,"digest"),this._hash=e}r(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new o:"rmd160"===e||"ripemd160"===e?new i:new u(a(e))}},{"cipher-base":218,inherits:387,"md5.js":434,ripemd160:493,"sha.js":499}],332:[function(e,t,n){"use strict";var r=e("md5.js");t.exports=function(e){return(new r).update(e).digest()}},{"md5.js":434}],333:[function(e,t,n){"use strict";var r=e("inherits"),o=e("./legacy"),i=e("cipher-base"),a=e("safe-buffer").Buffer,s=e("create-hash/md5"),u=e("ripemd160"),c=e("sha.js"),l=a.alloc(128);function f(e,t){i.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var n="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>n?t=("rmd160"===e?new u:c(e)).update(t).digest():t.length<n&&(t=a.concat([t,l],n));for(var r=this._ipad=a.allocUnsafe(n),o=this._opad=a.allocUnsafe(n),s=0;s<n;s++)r[s]=54^t[s],o[s]=92^t[s];this._hash="rmd160"===e?new u:c(e),this._hash.update(r)}r(f,i),f.prototype._update=function(e){this._hash.update(e)},f.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new u:c(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new f("rmd160",t):"md5"===e?new o(s,t):new f(e,t)}},{"./legacy":334,"cipher-base":218,"create-hash/md5":332,inherits:387,ripemd160:493,"safe-buffer":494,"sha.js":499}],334:[function(e,t,n){"use strict";var r=e("inherits"),o=e("safe-buffer").Buffer,i=e("cipher-base"),a=o.alloc(128);function s(e,t){i.call(this,"digest"),"string"==typeof t&&(t=o.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=o.concat([t,a],64));for(var n=this._ipad=o.allocUnsafe(64),r=this._opad=o.allocUnsafe(64),s=0;s<64;s++)n[s]=54^t[s],r[s]=92^t[s];this._hash=[n]}r(s,i),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,e]))},t.exports=s},{"cipher-base":218,inherits:387,"safe-buffer":494}],335:[function(e,t,n){"use strict";n.randomBytes=n.rng=n.pseudoRandomBytes=n.prng=e("randombytes"),n.createHash=n.Hash=e("create-hash"),n.createHmac=n.Hmac=e("create-hmac");var r=e("browserify-sign/algos"),o=Object.keys(r),i=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);n.getHashes=function(){return i};var a=e("pbkdf2");n.pbkdf2=a.pbkdf2,n.pbkdf2Sync=a.pbkdf2Sync;var s=e("browserify-cipher");
1n.Cipher=s.Cipher,n.createCipher=s.createCipher,n.Cipheriv=s.Cipheriv,n.createCipheriv=s.createCipheriv,n.Decipher=s.Decipher,n.createDecipher=s.createDecipher,n.Decipheriv=s.Decipheriv,n.createDecipheriv=s.createDecipheriv,n.getCiphers=s.getCiphers,n.listCiphers=s.listCiphers;var u=e("diffie-hellman");n.DiffieHellmanGroup=u.DiffieHellmanGroup,n.createDiffieHellmanGroup=u.createDiffieHellmanGroup,n.getDiffieHellman=u.getDiffieHellman,n.createDiffieHellman=u.createDiffieHellman,n.DiffieHellman=u.DiffieHellman;var c=e("browserify-sign");n.createSign=c.createSign,n.Sign=c.Sign,n.createVerify=c.createVerify,n.Verify=c.Verify,n.createECDH=e("create-ecdh");var l=e("public-encrypt");n.publicEncrypt=l.publicEncrypt,n.privateEncrypt=l.privateEncrypt,n.publicDecrypt=l.publicDecrypt,n.privateDecrypt=l.privateDecrypt;var f=e("randomfill");n.randomFill=f.randomFill,n.randomFillSync=f.randomFillSync,n.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},n.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":203,"browserify-sign":211,"browserify-sign/algos":208,"create-ecdh":329,"create-hash":331,"create-hmac":333,"diffie-hellman":345,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],336:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;o=function(){var e="millisecond",t="second",n="minute",o="hour",i="day",a="week",s="month",u="quarter",c="year",l="date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,h=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},p={s:d,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+d(r,2,"0")+":"+d(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.add(r,s),i=n-o<0,a=t.add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(r){return{M:s,y:c,w:a,d:i,D:l,h:o,m:n,s:t,ms:e,Q:u}[r]||String(r||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y="en",v={};v[y]=m;var g=function(e){return e instanceof k},b=function(e,t,n){var r;if(!e)return y;if("string"==typeof e)v[e]&&(r=e),t&&(v[e]=t,r=e);else{var o=e.name;v[o]=e,r=o}return!n&&r&&(y=r),r||!n&&y},w=function(e,t){if(g(e))return e.clone();var n="object"==r(t)?t:{};return n.date=e,n.args=arguments,new k(n)},_=p;_.l=b,_.i=g,_.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,$offset:t.$offset})};var k=function(){function r(e){this.$L=this.$L||b(e.locale,null,!0),this.parse(e)}var d=r.prototype;return d.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},d.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},d.$utils=function(){return _},d.isValid=function(){return!("Invalid Date"===this.$d.toString())},d.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},d.isAfter=function(e,t){return w(e)<this.startOf(t)},d.isBefore=function(e,t){return this.endOf(t)<w(e)},d.$g=function(e,t,n){return _.u(e)?this[t]:this.set(n,e)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(e,r){var u=this,f=!!_.u(r)||r,h=_.p(e),d=function(e,t){var n=_.w(u.$u?Date.UTC(u.$y,t,e):new Date(u.$y,t,e),u);return f?n:n.endOf(i)},p=function(e,t){return _.w(u.toDate()[e].apply(u.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(t)),u)},m=this.$W,y=this.$M,v=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case c:return f?d(1,0):d(31,11);case s:return f?d(1,y):d(0,y+1);case a:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return d(f?v-w:v+(6-w),y);case i:case l:return p(g+"Hours",0);case o:return p(g+"Minutes",1);case n:return p(g+"Seconds",2);case t:return p(g+"Milliseconds",3);default:return this.clone()}},d.endOf=function(e){return this.startOf(e,!1)},d.$set=function(r,a){var u,f=_.p(r),h="set"+(this.$u?"UTC":""),d=(u={},u[i]=h+"Date",u[l]=h+"Date",u[s]=h+"Month",u[c]=h+"FullYear",u[o]=h+"Hours",u[n]=h+"Minutes",u[t]=h+"Seconds",u[e]=h+"Milliseconds",u)[f],p=f===i?this.$D+(a-this.$W):a;if(f===s||f===c){var m=this.clone().set(l,1);
1m.$d[d](p),m.init(),this.$d=m.set(l,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},d.set=function(e,t){return this.clone().$set(e,t)},d.get=function(e){return this[_.p(e)]()},d.add=function(e,r){var u,l=this;e=Number(e);var f=_.p(r),h=function(t){var n=w(l);return _.w(n.date(n.date()+Math.round(t*e)),l)};if(f===s)return this.set(s,this.$M+e);if(f===c)return this.set(c,this.$y+e);if(f===i)return h(1);if(f===a)return h(7);var d=(u={},u[n]=6e4,u[o]=36e5,u[t]=1e3,u)[f]||1,p=this.$d.getTime()+e*d;return _.w(p,this)},d.subtract=function(e,t){return this.add(-1*e,t)},d.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var n=e||"YYYY-MM-DDTHH:mm:ssZ",r=_.z(this),o=this.$locale(),i=this.$H,a=this.$m,s=this.$M,u=o.weekdays,c=o.months,l=function(e,r,o,i){return e&&(e[r]||e(t,n))||o[r].substr(0,i)},f=function(e){return _.s(i%12||12,e,"0")},d=o.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:_.s(s+1,2,"0"),MMM:l(o.monthsShort,s,c,3),MMMM:l(c,s),D:this.$D,DD:_.s(this.$D,2,"0"),d:String(this.$W),dd:l(o.weekdaysMin,this.$W,u,2),ddd:l(o.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:_.s(i,2,"0"),h:f(1),hh:f(2),a:d(i,a,!0),A:d(i,a,!1),m:String(a),mm:_.s(a,2,"0"),s:String(this.$s),ss:_.s(this.$s,2,"0"),SSS:_.s(this.$ms,3,"0"),Z:r};return n.replace(h,function(e,t){return t||p[e]||r.replace(":","")})},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(e,r,l){var f,h=_.p(r),d=w(e),p=6e4*(d.utcOffset()-this.utcOffset()),m=this-d,y=_.m(this,d);return y=(f={},f[c]=y/12,f[s]=y,f[u]=y/3,f[a]=(m-p)/6048e5,f[i]=(m-p)/864e5,f[o]=m/36e5,f[n]=m/6e4,f[t]=m/1e3,f)[h]||m,l?y:_.a(y)},d.daysInMonth=function(){return this.endOf(s).$D},d.$locale=function(){return v[this.$L]},d.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=b(e,t,!0);return r&&(n.$L=r),n},d.clone=function(){return _.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},r}(),S=k.prototype;return w.prototype=S,[["$ms",e],["$s",t],["$m",n],["$H",o],["$W",i],["$M",s],["$y",c],["$D",l]].forEach(function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),w.extend=function(e,t){return e(t,k,w),w},w.locale=b,w.isDayjs=g,w.unix=function(e){return w(1e3*e)},w.en=v[y],w.Ls=v,w},"object"==(void 0===n?"undefined":r(n))&&void 0!==t?t.exports=o():(void 0).dayjs=o()},{}],337:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;o=function(){var e,t=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^\s\d-:/()]+/,i=function(e){return function(t){this[e]=+t}},a=[/[+-]\d\d:?\d\d/,function(e){var t,n;(this.zone||(this.zone={})).offset=0==(n=60*(t=e.match(/([+-]|\d\d)/g))[1]+ +t[2])?0:"+"===t[0]?-n:n}],s=function(t){var n=e[t];return n&&(n.indexOf?n:n.s.concat(n.f))},u={A:[/[AP]M/,function(e){this.afternoon="PM"===e}],a:[/[ap]m/,function(e){this.afternoon="pm"===e}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,i("seconds")],ss:[r,i("seconds")],m:[r,i("minutes")],mm:[r,i("minutes")],H:[r,i("hours")],h:[r,i("hours")],HH:[r,i("hours")],hh:[r,i("hours")],D:[r,i("day")],DD:[n,i("day")],Do:[o,function(t){var n=e.ordinal,r=t.match(/\d+/);if(this.day=r[0],n)for(var o=1;o<=31;o+=1)n(o).replace(/\[|\]/g,"")===t&&(this.day=o)}],M:[r,i("month")],MM:[n,i("month")],MMM:[o,function(e){var t=s("months"),n=(s("monthsShort")||t.map(function(e){return e.substr(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=s("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,i("year")],YY:[n,function(e){this.year=(e=+e)+(e>68?1900:2e3)}],YYYY:[/\d{4}/,i("year")],Z:a,ZZ:a},c=function(e,n,r){try{var o=function(e){for(var n=e.match(t),r=n.length,o=0;o<r;o+=1){var i=n[o],a=u[i],s=a&&a[1];n[o]=s?{regex:a&&a[0],parser:s}:i.replace(/^\[|\]$/g,"")}return function(e){for(var t={},o=0,i=0;o<r;o+=1){var a=n[o];if("string"==typeof a)i+=a.length;else{var s=a.regex,u=a.parser,c=e.substr(i),l=s.exec(c)[0];u.call(t,l),e=e.replace(l,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}(n)(e),i=o.year,a=o.month,s=o.day,c=o.hours,l=o.minutes,f=o.seconds,h=o.milliseconds,d=o.zone,p=new Date,m=s||(i||a?1:p.getDate()),y=i||p.getFullYear(),v=0;i&&!a||(v=a>0?a-1:p.getMonth());var g=c||0,b=l||0,w=f||0,_=h||0;return d?new Date(Date.UTC(y,v,m,g,b,w,_+60*d.offset*1e3)):r?new Date(Date.UTC(y,v,m,g,b,w,_)):new Date(y,v,m,g,b,w,_)}catch(e){return new Date("")}};return function(t,n,r){var o=n.prototype,i=o.parse;o.parse=function(t){var n=t.date,o=t.utc,a=t.args;this.$u=o;var s=a[1];if("string"==typeof s){var u=!0===a[2],l=!0===a[3],f=u||l,h=a[2];l&&(h=a[2]),u||(e=h?r.Ls[h]:this.$locale()),this.$d=c(n,s,o),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),f&&n!==this.format(s)&&(this.$d=new Date(""))}else if(s instanceof Array)for(var d=s.length,p=1;p<=d;p+=1){a[1]=s[p-1];var m=r.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}p===d&&(this.$d=new Date(""))}else i.call(this,t)}}},"object"==(void 0===n?"undefined":r(n))&&void 0!==t?t.exports=o():(void 0).dayjs_plugin_customParseFormat=o()},{}],338:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;o=function(){return function(e,t,n){var r=(new Date).getTimezoneOffset(),o=t.prototype;n.utc=function(e){return new t({date:e,utc:!0,args:arguments})},o.utc=function(){return n(this.toDate(),{locale:this.$L,utc:!0})},o.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var i=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),i.call(this,e)};var a=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else a.call(this)};var s=o.utcOffset;o.utcOffset=function(e,t){var n=this.$utils().u;if(n(e))return this.$u?0:n(this.$offset)?s.call(this):this.$offset;var o=Math.abs(e)<=16?60*e:e,i=this;return t?(i.$offset=o,i.$u=0===e,i):(0!==e?(i=this.local().add(o+r,"minute")).$offset=o:i=this.utc(),i)};var u=o.format;o.format=function(e){return u.call(this,e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+r;return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var c=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var l=o.diff;o.diff=function(e,t,r){var o=this.local(),i=n(e).local();return l.call(o,i,t,r)}}},"object"==(void 0===n?"undefined":r(n))&&void 0!==t?t.exports=o():(void 0).dayjs_plugin_utc=o()},{}],339:[function(e,t,n){"use strict";n.utils=e("./des/utils"),n.Cipher=e("./des/cipher"),n.DES=e("./des/des"),n.CBC=e("./des/cbc"),n.EDE=e("./des/ede")},{"./des/cbc":340,"./des/cipher":341,"./des/des":342,"./des/ede":343,"./des/utils":344}],340:[function(e,t,n){"use strict";var r=e("minimalistic-assert"),o=e("inherits"),i={};function a(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}n.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}o(t,e);for(var n=Object.keys(i),r=0;r<n.length;r++){var a=n[r];t.prototype[a]=i[a]}return t.create=function(e){return new t(e)},t},i._cbcInit=function(){var e=new a(this.options.iv);this._cbcState=e},i._update=function(e,t,n,r){var o=this.constructor.super_.prototype,i=this._cbcState.iv;if("encrypt"===this.type){for(var a=0;a<this.blockSize;a++)i[a]^=e[t+a];for(o._update.call(this,i,0,n,r),a=0;a<this.blockSize;a++)i[a]=n[r+a]}else{for(o._update.call(this,e,t,n,r),a=0;a<this.blockSize;a++)n[r+a]^=i[a];for(a=0;a<this.blockSize;a++)i[a]=e[t+a]}}},{inherits:387,"minimalistic-assert":437}],341:[function(e,t,n){"use strict";var r=e("minimalistic-assert");function o(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=o,o.prototype._init=function(){},o.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},o.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=n,n},o.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},o.prototype._updateEncrypt=function(e){var t=0,n=0,r=new Array(((this.bufferOff+e.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(r,n)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,r,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return r},o.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,o=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(o,n);return t+=this._buffer(e,t),o},o.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},o.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},o.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},o.prototype._unpad=function(e){return e},o.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":437}],342:[function(e,t,n){"use strict";var r=e("minimalistic-assert"),o=e("inherits"),i=e("./utils"),a=e("./cipher");function s(){this.tmp=new Array(2),this.keys=null}function u(e){a.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}o(u,a),t.exports=u,u.create=function(e){return new u(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(e,t){e.keys=new Array(32),r.equal(t.length,this.blockSize,"Invalid key length");var n=i.readUInt32BE(t,0),o=i.readUInt32BE(t,4);i.pc1(n,o,e.tmp,0),n=e.tmp[0],o=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=c[a>>>1];n=i.r28shl(n,s),o=i.r28shl(o,s),i.pc2(n,o,e.keys,a)}},u.prototype._update=function(e,t,n,r){var o=this._desState,a=i.readUInt32BE(e,t),s=i.readUInt32BE(e,t+4);i.ip(a,s,o.tmp,0),a=o.tmp[0],s=o.tmp[1],"encrypt"===this.type?this._encrypt
vendor: 8,156 bytes, line 1
1(o,a,s,o.tmp,0):this._decrypt(o,a,s,o.tmp,0),s=o.tmp[1],i.writeUInt32BE(n,a=o.tmp[0],r),i.writeUInt32BE(n,s,r+4)},u.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},u.prototype._unpad=function(e){for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)r.equal(e[n],t);return e.slice(0,e.length-t)},u.prototype._encrypt=function(e,t,n,r,o){for(var a=t,s=n,u=0;u<e.keys.length;u+=2){var c=e.keys[u],l=e.keys[u+1];i.expand(s,e.tmp,0);var f=i.substitute(c^=e.tmp[0],l^=e.tmp[1]),h=s;s=(a^i.permute(f))>>>0,a=h}i.rip(s,a,r,o)},u.prototype._decrypt=function(e,t,n,r,o){for(var a=n,s=t,u=e.keys.length-2;u>=0;u-=2){var c=e.keys[u],l=e.keys[u+1];i.expand(a,e.tmp,0);var f=i.substitute(c^=e.tmp[0],l^=e.tmp[1]),h=a;a=(s^i.permute(f))>>>0,s=h}i.rip(a,s,r,o)}},{"./cipher":341,"./utils":344,inherits:387,"minimalistic-assert":437}],343:[function(e,t,n){"use strict";var r=e("minimalistic-assert"),o=e("inherits"),i=e("./cipher"),a=e("./des");function s(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),o=t.slice(8,16),i=t.slice(16,24);this.ciphers="encrypt"===e?[a.create({type:"encrypt",key:n}),a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i})]:[a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o}),a.create({type:"decrypt",key:n})]}function u(e){i.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}o(u,i),t.exports=u,u.create=function(e){return new u(e)},u.prototype._update=function(e,t,n,r){var o=this._edeState;o.ciphers[0]._update(e,t,n,r),o.ciphers[1]._update(n,r,n,r),o.ciphers[2]._update(n,r,n,r)},u.prototype._pad=a.prototype._pad,u.prototype._unpad=a.prototype._unpad},{"./cipher":341,"./des":342,inherits:387,"minimalistic-assert":437}],344:[function(e,t,n){"use strict";n.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},n.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},n.ip=function(e,t,n,r){for(var o=0,i=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)o<<=1,o|=t>>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)i<<=1,i|=t>>>s+a&1;for(s=1;s<=25;s+=8)i<<=1,i|=e>>>s+a&1}n[r+0]=o>>>0,n[r+1]=i>>>0},n.rip=function(e,t,n,r){for(var o=0,i=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;n[r+0]=o>>>0,n[r+1]=i>>>0},n.pc1=function(e,t,n,r){for(var o=0,i=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;n[r+0]=o>>>0,n[r+1]=i>>>0},n.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];n.pc2=function(e,t,n,o){for(var i=0,a=0,s=r.length>>>1,u=0;u<s;u++)i<<=1,i|=e>>>r[u]&1;for(u=s;u<r.length;u++)a<<=1,a|=t>>>r[u]&1;n[o+0]=i>>>0,n[o+1]=a>>>0},n.expand=function(e,t,n){var r=0,o=0;r=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)r<<=6,r|=e>>>i&63;for(i=11;i>=3;i-=4)o|=e>>>i&63,o<<=6;o|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=o>>>0};var o=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];n.substitute=function(e,t){for(var n=0,r=0;r<4;r++)n<<=4,n|=o[64*r+(e>>>18-6*r&63)];for(r=0;r<4;r++)n<<=4,n|=o[256+64*r+(t>>>18-6*r&63)];return n>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];n.permute=function(e){for(var t=0,n=0;n<i.length;n++)t<<=1,t|=e>>>i[n]&1;return t>>>0},n.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var o=[],i=0;i<t;i+=n)o.push(r.slice(i,i+n));return o.join(" ")}},{}],345:[function(e,t,n){(function(t){"use strict";var r=e("./lib/generatePrime"),o=e("./lib/primes.json"),i=e("./lib/dh"),a={binary:!0,hex:!0,base64:!0};n.DiffieHellmanGroup=n.createDiffieHellmanGroup=n.getDiffieHellman=function(e){var n=new t(o[e].prime,"hex"),r=new t(o[e].gen,"hex");return new i(n,r)},n.createDiffieHellman=n.DiffieHellman=function e(n,o,s,u){return t.isBuffer(o)||void 0===a[o]?e(n,"binary",o,s):(o=o||"binary",u=u||"binary",s=s||new t([2]),t.isBuffer(s)||(s=new t(s,u)),"number"==typeof n?new i(r(n,s),s,!0):(t.isBuffer(n)||(n=new t(n,o)),new i(n,s,!0)))}}).call(this,e("buffer").Buffer)},{"./lib/dh":346,"./lib/generatePrime":347,"./lib/primes.json":348,buffer:216}],346:[function(e,t,n){(function(n){"use strict";var r=e("bn.js"),o=new(e("miller-rabin")),i=new r(24),a=new r(11),s=new r(10),u=new r(3),c=new r(7),l=e("./generatePrime"),f=e("randombytes");function h(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._pub=new r(e),this}function d(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._priv=new r(e),this}t.exports=m;var p={};function m(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=h,this.setPrivateKey=d):this._primeCode=8}function y(e,t){var r=new n(e.toArray());return t?r.toString(t):r}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in p)return p[r];var f,h=0;if(e.isEven()||!l.simpleSieve||!l.fermatTest(e)||!o.test(e))return h+=1,p[r]=h+="02"===n||"05"===n?8:4,h;switch(o.test(e.shrn(1))||(h+=2),n){case"02":e.mod(i).cmp(a)&&(h+=8);break;case"05":(f=e.mod(s)).cmp(u)&&f.cmp(c)&&(h+=8);break;default:h+=4}return p[r]=h,h}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new r(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var t=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),o=new n(t.toArray()),i=this.getPrime();if(o.length<i.length){var a=new n(i.length-o.length);a.fill(0),o=n.concat([a,o])}return o},m.prototype.getPublicKey=function(e){return y(this._pub,e)},m.prototype.getPrivateKey=function(e){return y(this._priv,e)},m.prototype.getPrime=function(e){return y(this.__prime,e)},m.prototype.getGenerator=function(e){return y(this._gen,e)},m.prototype.setGenerator=function(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this.__gen=e,this._gen=new r(e),this}}).call(this,e("buffer").Buffer)},{"./generatePrime":347,"bn.js":349,buffer:216,"miller-rabin":435,randombytes:475}],347:[function(e,t,n){"use strict";var r=e("randombytes");t.exports=v,v.simpleSieve=m,v.fermatTest=y;var o=e("bn.js"),i=new o(24),a=new(e("miller-rabin")),s=new o(1),u=new o(2),c=new o(5),l=(new o(16),new o(8),new o(10)),f=new o(3),h=(new o(7),new o(11)),d=new o(4),p=(new o(12),null);function m(e){for(var t=function(){if(null!==p)return p;var e=[];e[0]=2;
vendor: 5,399 bytes, line 1
1for(var t=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),o=0;o<t&&e[o]<=r&&n%e[o]!=0;o++);t!==o&&e[o]<=r||(e[t++]=n)}return p=e,e}(),n=0;n<t.length;n++)if(0===e.modn(t[n]))return 0===e.cmpn(t[n]);return!0}function y(e){var t=o.mont(e);return 0===u.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function v(e,t){if(e<16)return new o(2===t||5===t?[140,123]:[140,39]);var n,p;for(t=new o(t);;){for(n=new o(r(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(u),t.cmp(u)){if(!t.cmp(c))for(;n.mod(l).cmp(f);)n.iadd(d)}else for(;n.mod(i).cmp(h);)n.iadd(d);if(m(p=n.shrn(1))&&m(n)&&y(p)&&y(n)&&a.test(p)&&a.test(n))return n}}},{"bn.js":349,"miller-rabin":435,randombytes:475}],348:[function(e,t,n){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd4
107b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],349:[function(e,t,n){arguments[4][181][0].apply(n,arguments)},{buffer:185,dup:181}],350:[function(e,t,n){"use strict";var r=n;r.version=e("../package.json").version,r.utils=e("./elliptic/utils"),r.rand=e("brorand"),r.curve=e("./elliptic/curve"),r.curves=e("./elliptic/curves"),r.ec=e("./elliptic/ec"),r.eddsa=e("./elliptic/eddsa")},{"../package.json":366,"./elliptic/curve":353,"./elliptic/curves":356,"./elliptic/ec":357,"./elliptic/eddsa":360,"./elliptic/utils":364,brorand:184}],351:[function(e,t,n){"use strict";var r=e("bn.js"),o=e("../utils"),i=o.getNAF,a=o.getJSF,s=o.assert;function u(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=i(t,1,this._bitLength),o=(1<<n.step+1)-(n.step%2==0?2:1);o/=3;for(var a=[],u=0;u<r.length;u+=n.step){var c=0;for(t=u+n.step-1;t>=u;t--)c=(c<<1)+r[t];a.push(c)}for(var l=this.jpoint(null,null,null),f=this.jpoint(null,null,null),h=o;h>0;h--){for(u=0;u<a.length;u++)(c=a[u])===h?f=f.mixedAdd(n.points[u]):c===-h&&(f=f.mixedAdd(n.points[u].neg()));l=l.add(f)}return l.toP()},u.prototype._wnafMul=function(e,t){for(var n=4,r=e._getNAFPoints(n),o=r.points,a=i(t,n=r.wnd,this._bitLength),u=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(t=0;c>=0&&0===a[c];c--)t++;if(c>=0&&t++,u=u.dblp(t),c<0)break;var l=a[c];s(0!==l),u="affine"===e.type?u.mixedAdd(l>0?o[l-1>>1]:o[-l-1>>1].neg()):u.add(l>0?o[l-1>>1]:o[-l-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,n,r,o){for(var s=this._wnafT1,u=this._wnafT2,c=this._wnafT3,l=0,f=0;f<r;f++){var h=(S=t[f])._getNAFPoints(e);s[f]=h.wnd,u[f]=h.points}for(f=r-1;f>=1;f-=2){var d=f-1,p=f;if(1===s[d]&&1===s[p]){var m=[t[d],null,null,t[p]];
vendor: 9,829 bytes, line 1
10===t[d].y.cmp(t[p].y)?(m[1]=t[d].add(t[p]),m[2]=t[d].toJ().mixedAdd(t[p].neg())):0===t[d].y.cmp(t[p].y.redNeg())?(m[1]=t[d].toJ().mixedAdd(t[p]),m[2]=t[d].add(t[p].neg())):(m[1]=t[d].toJ().mixedAdd(t[p]),m[2]=t[d].toJ().mixedAdd(t[p].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=a(n[d],n[p]);l=Math.max(v[0].length,l),c[d]=new Array(l),c[p]=new Array(l);for(var g=0;g<l;g++)c[d][g]=y[3*(1+(0|v[0][g]))+(1+(0|v[1][g]))],c[p][g]=0,u[d]=m}else c[d]=i(n[d],s[d],this._bitLength),c[p]=i(n[p],s[p],this._bitLength),l=Math.max(c[d].length,l),l=Math.max(c[p].length,l)}var b=this.jpoint(null,null,null),w=this._wnafT4;for(f=l;f>=0;f--){for(var _=0;f>=0;){var k=!0;for(g=0;g<r;g++)w[g]=0|c[g][f],0!==w[g]&&(k=!1);if(!k)break;_++,f--}if(f>=0&&_++,b=b.dblp(_),f<0)break;for(g=0;g<r;g++){var S,C=w[g];0!==C&&(C>0?S=u[g][C-1>>1]:C<0&&(S=u[g][-C-1>>1].neg()),b="affine"===S.type?b.mixedAdd(S):b.add(S))}}for(f=0;f<r;f++)u[f]=null;return o?b:b.toP()},u.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(e,t){e=o.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return o.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,o=0;o<t;o+=e){for(var i=0;i<e;i++)r=r.dbl();n.push(r)}return{step:e,points:n}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),o=1;o<n;o++)t[o]=t[o-1].add(r);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},{"../utils":364,"bn.js":365}],352:[function(e,t,n){"use strict";var r=e("../utils"),o=e("bn.js"),i=e("inherits"),a=e("./base"),s=r.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,n,r,i){a.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(n,16),this.z=r?new o(r,16):this.curve.one,this.t=i&&new o(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}i(u,a),t.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),a=r.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),a=r.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),o=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(o)},i(c,a.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,n,r){return new c(this,e,t,n,r)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),o=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i=r.redAdd(t),a=i.redSub(n),s=r.redSub(t),u=o.redMul(a),c=i.redMul(s),l=o.redMul(s),f=a.redMul(i);return this.curve.point(u,c,f,l)},c.prototype._projDbl=function(){var e,t,n,r=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),i=this.y.redSqr();if(this.curve.twisted){var a=(c=this.curve._mulA(o)).redAdd(i);if(this.zOne)e=r.redSub(o).redSub(i).redMul(a.redSub(this.curve.two)),t=a.redMul(c.redSub(i)),n=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=r.redSub(o).redISub(i).redMul(u),t=a.redMul(c.redSub(i)),n=a.redMul(u)}}else{var c=o.redAdd(i);s=this.curve._mulC(this.z).redSqr(),u=c.redSub(s).redSub(s),e=this.curve._mulC(r.redISub(c)).redMul(u),t=this.curve._mulC(c).redMul(o.redISub(i)),n=c.redMul(u)}return this.curve.point(e,t,n)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),o=this.z.redMul(e.z.redAdd(e.z)),i=n.redSub(t),a=o.redSub(r),s=o.redAdd(r),u=n.redAdd(t),c=i.redMul(a),l=s.redMul(u),f=i.redMul(u),h=a.redMul(s);return this.curve.point(c,l,h,f)},c.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),o=r.redSqr(),i=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(i).redMul(a),u=o.redSub(s),c=o.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(a),f=r.redMul(u).redMul(l);return this.curve.twisted?(t=r.redMul(c).redMul(a.redSub(this.curve._mulA(i))),n=u.redMul(c)):(t=r.redMul(c).redMul(a.redSub(i)),n=this.curve._mulC(u).redMul(c)),this.curve.point(f,t,n)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},c.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},{"../utils":364,"./base":351,"bn.js":365,inherits:387}],353:[function(e,t,n){"use strict";var r=n;r.base=e("./base"),r.short=e("./short"),r.mont=e("./mont"),r.edwards=e("./edwards")},{"./base":351,"./edwards":352,"./mont":354,"./short":355}],354:[function(e,t,n){"use strict";var r=e("bn.js"),o=e("inherits"),i=e("./base"),a=e("../utils");function s(e){i.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,n){i.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(s,i),t.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r
vendor: 5,765 bytes, line 1
1=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},o(u,i.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new u(this,e,t)},s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),o=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,o)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),o=e.x.redAdd(e.z),i=e.x.redSub(e.z).redMul(n),a=o.redMul(r),s=t.z.redMul(i.redAdd(a).redSqr()),u=t.x.redMul(i.redISub(a).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var i=o.length-1;i>=0;i--)0===o[i]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":364,"./base":351,"bn.js":365,inherits:387}],355:[function(e,t,n){"use strict";var r=e("../utils"),o=e("bn.js"),i=e("inherits"),a=e("./base"),s=r.assert;function u(e){a.call(this,"short",e),this.a=new o(e.a,16).toRed(this.red),this.b=new o(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,n,r){a.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(t,16),this.y=new o(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(e,t,n,r){a.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(t,16),this.y=new o(n,16),this.z=new o(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}i(u,a),t.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new o(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new o(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?n=i[0]:s(0===this.g.mul(n=i[1]).x.cmp(this.g.x.redMul(t)))}return{beta:t,lambda:n,basis:e.basis?e.basis.map(function(e){return{a:new o(e.a,16),b:new o(e.b,16)}}):this._getEndoBasis(n)}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:o.mont(e),n=new o(2).toRed(t).redInvm(),r=n.redNeg(),i=new o(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(i).fromRed(),r.redSub(i).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,n,r,i,a,s,u,c,l,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,d=this.n.clone(),p=new o(1),m=new o(0),y=new o(0),v=new o(1),g=0;0!==h.cmpn(0);){var b=d.div(h);c=d.sub(b.mul(h)),l=y.sub(b.mul(p));var w=v.sub(b.mul(m));if(!r&&c.cmp(f)<0)t=u.neg(),n=p,r=c.neg(),i=l;else if(r&&2==++g)break;u=c,d=h,h=c,y=p,p=l,v=m,m=w}a=c.neg(),s=l;var _=r.sqr().add(i.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=n),r.negative&&(r=r.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:r,b:i},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],o=r.b.mul(e).divRound(this.n),i=n.b.neg().mul(e).divRound(this.n),a=o.mul(n.a),s=i.mul(r.a),u=o.mul(n.b),c=i.mul(r.b);return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},u.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),o=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(o).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,o=this._endoWnafT2,i=0;i<e.length;i++){var a=this._endoSplit(t[i]),s=e[i],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),r[2*i]=s,r[2*i+1]=u,o[2*i]=a.k1,o[2*i+1]=a.k2}for(var c=this._wnafMulAdd(1,r,o,2*i,n),l=0;l<2*i;l++)r[l]=null,o[l]=null;return c},i(c,a.BasePoint),u.prototype.point=function(e,t,n){return new c(this,e,t,n)},u.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.prec
vendor: 25,193 bytes, line 1
1omputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function o(t){return e.point(t[0],t[1],n)}var i=t[2];return r.precomputed={beta:null,doubles:i.doubles&&{step:i.doubles.step,points:[r].concat(i.doubles.points.map(o))},naf:i.naf&&{wnd:i.naf.wnd,points:[r].concat(i.naf.points.map(o))}},r},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),o=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),i=o.redSqr().redISub(this.x.redAdd(this.x)),a=o.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new o(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,n){var r=[this,t],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o):this.curve._wnafMulAdd(1,r,o,2)},c.prototype.jmulAdd=function(e,t,n){var r=[this,t],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o,!0):this.curve._wnafMulAdd(1,r,o,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},i(l,a.BasePoint),u.prototype.jpoint=function(e,t,n){return new l(this,e,t,n)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),o=e.x.redMul(n),i=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(o),u=i.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),f=r.redMul(c),h=u.redSqr().redIAdd(l).redISub(f).redISub(f),d=u.redMul(f.redISub(h)).redISub(i.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,d,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),o=this.y,i=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=o.redSub(i);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),l=n.redMul(u),f=s.redSqr().redIAdd(c).redISub(l).redISub(l),h=s.redMul(l.redISub(f)).redISub(o.redMul(c)),d=this.z.redMul(a);return this.curve.jpoint(f,h,d)},l.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}var r=this.curve.a,o=this.curve.tinv,i=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(n=0;n<e;n++){var l=i.redSqr(),f=c.redSqr(),h=f.redSqr(),d=l.redAdd(l).redIAdd(l).redIAdd(r.redMul(u)),p=i.redMul(f),m=d.redSqr().redISub(p.redAdd(p)),y=p.redISub(m),v=d.redMul(y);v=v.redIAdd(v).redISub(h);var g=c.redMul(s);n+1<e&&(u=u.redMul(h)),i=m,s=g,c=v}return this.curve.jpoint(i,c.redMul(o),s)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),o=this.y.redSqr(),i=o.redSqr(),a=this.x.redAdd(o).redSqr().redISub(r).redISub(i);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r),u=s.redSqr().redISub(a).redISub(a),c=i.redIAdd(i);c=(c=c.redIAdd(c)).redIAdd(c),e=u,t=s.redMul(a.redISub(u)).redISub(c),n=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),f=this.y.redSqr(),h=f.redSqr(),d=this.x.redAdd(f).redSqr().redISub(l).redISub(h);d=d.redIAdd(d);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),y=h.redIAdd(h);y=(y=y.redIAdd(y)).redIAdd(y),e=m.redISub(d).redISub(d),t=p.redMul(d.redISub(e)).redISub(y),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},l.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),o=this.y.redSqr(),i=o.redSqr(),a=this.x.redAdd(o).redSqr().redISub(r).redISub(i);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);e=u;var c=i.redIAdd(i);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(u)).redISub(c),n=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),f=this.y.redSqr(),h=this.x.redMul(f),d=this.x.redSub(l).redMul(this.x.redAdd(l));d=d.redAdd(d).redIAdd(d);var p=h.redIAdd(h),m=(p=p.redIAdd(p)).redAdd(p);e=d.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(f).redISub(l);var y=f.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),t=d.redMul(p.redISub(e)).redISub(y)}return this.curve.jpoint(e,t,n)},l.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,o=r.redSqr().redSqr(),i=t.redSqr(),a=n.redSqr(),s=i.redAdd(i).redIAdd(i).redIAdd(e.redMul(o)),u=t.redAdd(t),c=(u=u.redIAdd(u)).redMul(a),l=s.redSqr().redISub(c.redAdd(c)),f=c.redISub(l),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=s.redMul(f).redISub(h),p=n.redAdd(n).redMul(r);return this.curve.jpoint(l,d,p)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),o=e.redAdd(e).redIAdd(e),i=o.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(i)).redSqr(),u=r.redIAdd(r);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=o.redIAdd(a).redSqr().redISub(i).redISub(s).redISub(u),l=t.redMul(c);l=(l=l.redIAdd(l)).redIAdd(l);var f=this.x.redMul(s).redISub(l);f=(f=f.redIAdd(f)).redIAdd(f);var h=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=this.z.redAdd(a).redSqr().redISub(n).redISub(s);return this.curve.jpoint(f,h,d)},l.prototype.mul=function(e,t){return e=new o(e,t),this.curve._wnafMul(this,e)},l.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),o=n.redMul(e.z);return 0===this.y.redMul(o).redISub(e.y.redMul(r)).cmpn(0)},l.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),o=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(o),0===this.x.cmp(n))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":364,"./base":351,"bn.js":365,inherits:387}],356:[function(e,t,n){"use strict";var r,o=n,i=e("hash.js"),a=e("./curve"),s=e("./utils").assert;function u(e){this.curve="short"===e.type?new a.short(e):"edwards"===e.type?new a.edwards(e):new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(o,e,{configurable:!0,enumerable:!0,get:function(){var n=new u(t);return Object.defineProperty(o,e,{configurable:!0,enumerable:!0,value:n}),n}})}o.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=e("./precomputed/secp256k1")}catch(e){r=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},{"./curve":353,"./precomputed/secp256k1":363,"./utils":364,"hash.js":372}],357:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=e("bn.js"),i=e("hmac-drbg"),a=e("../utils"),s=e("../curves"),u=e("brorand"),c=a.assert,l=e("./key"),f=e("./signature");function h(e){if(!(this instanceof h))return new h(e);"string"==typeof e&&(c(s.hasOwnProperty(e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}t.exports=h,h.prototype.keyPair=function(e){return new l(this,e)},h.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},h.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},h.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||u(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new o(2));;){var a=new o(t.generate(n));if(!(a.cmp(r)>0))return a.iaddn(1),this.keyFromPrivate(a)}},h.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},h.prototype.sign=function(e,t,n,a){"object"===r(n)&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new o(e,16));for(var s=this.n.byteLength(),u=t.getPrivate().toArray("be",s),c=e.toArray("be",s),l=new i({hash:this.hash,entropy:u,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"}),h=this.n.sub(new o(1)),d=0;;d++){var p=a.k?a.k(d):new o(l.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(h)>=0)){var m=this.g.mul(p);if(!m.isInfinity()){var y=m.getX(),v=y.umod(this.n);if(0!==v.cmpn(0)){var g=p.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var b=(m.getY().isOdd()?1:0)|(0!==y.cmp(v)?2:0);return a.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),b^=1),new f({r:v,s:g,recoveryParam:b})}}}}}},h.prototype.verify=function(e,t,n,r){e=this._truncateToN(new o(e,16)),n=this.keyFromPublic(n,r);var i=(t=new f(t,"hex")).r,a=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),l=u.mul(i).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,n.getPublic(),l)).isInfinity()&&s.eqXToP(i):!(s=this.g.mulAdd(c,n.getPublic(),l)).isInfinity()&&0===s.getX().umod(this.n).cmp(i)},h.prototype.recoverPubKey=function(e,t,n,r){c((3&n)===n,"The recovery param is more than two bits"),t=new f(t,r);var i=this.n,a=new o(e),s=t.r,u=t.s,l=1&n,h=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");s=this.curve.pointFromX(h?s.add(this.curve.n):s,l);var d=t.r.invm(i),p=i.sub(a).mul(d).umod(i),m=u.mul(d).umod(i);return this.g.mulAdd(p,s,m)},h.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new f(t,r)).recoveryParam)return t.recoveryParam;for(var o=0;o<4;o++){var i;try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(n))return o}throw new Error("Unable to find valid recovery factor")}},{"../curves":356,"../utils":364,"./key":358,"./signature":359,"bn.js":365,brorand:184,"hmac-drbg":384}],358:[function(e,t,n){"use strict";var r=e("bn.js"),o=e("../utils").assert;function i(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=i,i.fromPublic=function(e,t,n){return t instanceof i?t:new i(e,{pub:t,pubEnc:n})},i.fromPrivate=function(e,t,n){return t instanceof i?t:new i(e,{priv:t,privEnc:n})},i.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},i.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},i.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},i.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},i.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?o(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},i.prototype.derive=function(e){return e.mul(this.priv).getX()},i.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},i.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},i.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":364,"bn.js":365}],359:[function(e,t,n){"use strict";var r=e("bn.js"),o=e("../utils"),i=o.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(i(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),this.recoveryParam=void 0===e.recoveryParam?null:e.recoveryParam)}function s(){this.place=0}function u(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var o=0,i=0,a=t.place;i<r;i++,a++)o<<=8,o|=e[a],o>>>=0;return!(o<=127)&&(t.place=a,o)}function c(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function l(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}t.exports=a,a.prototype._importDER=function(e,t){e=o.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;var i=u(e,n);if(!1===i)return!1;if(i+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var a=u(e,n);if(!1===a)return!1;var c=e.slice(n.place,a+n.place);if(n.place+=a,2!==e[n.place++])return!1;var l=u(e,n);if(!1===l)return!1;if(e.length!==l+n.place)return!1;var f=e.slice(n.place,l+n.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new r(c),this.s=new r(f),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=c(t),n=c(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];l(r,t.length),(r=r.concat(t)).push(2),l(r,n.length);var i=r.concat(n),a=[48];return l(a,i.length),a=a.concat(i),o.encode(a,e)}},{"../utils":364,"bn.js":365}],360:[function(e,t,n){"use strict";var r=e("hash.js"),o=e("../curves"),i=e("../utils"),a=i.assert,s=i.parseBytes,u=e("./key"),c=e("./signature");function l(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e);this.curve=e=o[e].curve,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}t.exports=l,l.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),o=this.g.mul(r),i=this.encodePoint(o),a=this.hashInt(i,n.pubBytes(),e).mul(n.priv()),u=r.add(a).umod(this.curve.n);return this.makeSignature({R:o,S:u,Rencoded:i})},l.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),o=this.hashInt(t.Rencoded(),r.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(r.pub().mul(o)).eq(i)},l.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return i.intFromLE(e.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},l.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},l.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},l.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},l.prototype.decodePoint=function(e){var t=(e=i.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),o=i.intFromLE(n);return this.curve.pointFromY(o,r)},l.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(e){return i.intFromLE(e)},l.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../curves":356,"../utils":364,"./key":361,"./signature":362,"hash.js":372}],361:[function(e,t,n){"use strict";var r=e("../utils"),o=r.assert,i=r.parseBytes,a=r.cachedProperty;function s(e,t){this.eddsa=e,this._secret=i(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=i(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r}),a(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return o(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},s.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},t.exports=s},{"../utils":364}],362:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=e("bn.js"),i=e("../utils"),a=i.assert,s=i.cachedProperty,u=i.parseBytes;function c(e,t){this.eddsa=e,"object"!==r(t)&&(t=u(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof o&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(c,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(c,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),s(c,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(c,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=c},{"../utils":364,"bn.js":365}],363:[function(e,t,n
vendor: 4,893 bytes, line 1
1){"use strict";t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1d
vendor: 13,526 bytes, line 1
1adf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0
vendor: 7,738 bytes, line 1
1a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],
1364:[function(e,t,n){"use strict";var r=n,o=e("bn.js"),i=e("minimalistic-assert"),a=e("minimalistic-crypto-utils");r.assert=i,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var o=1<<t+1,i=e.clone(),a=0;a<r.length;a++){var s,u=i.andln(o-1);i.isOdd()?i.isubn(s=u>(o>>1)-1?(o>>1)-u:u):s=0,r[a]=s,i.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,o=0;e.cmpn(-r)>0||t.cmpn(-o)>0;){var i,a,s,u=e.andln(3)+r&3,c=t.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),i=0==(1&u)?0:3!=(s=e.andln(7)+r&7)&&5!==s||2!==c?u:-u,n[0].push(i),a=0==(1&c)?0:3!=(s=t.andln(7)+o&7)&&5!==s||2!==u?c:-c,n[1].push(a),2*r===i+1&&(r=1-r),2*o===a+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new o(e,"hex","le")}},{"bn.js":365,"minimalistic-assert":437,"minimalistic-crypto-utils":438}],365:[function(e,t,n){arguments[4][181][0].apply(n,arguments)},{buffer:185,dup:181}],366:[function(e,t,n){t.exports={_from:"elliptic@^6.5.3",_id:"[email protected]",_inBundle:!1,_integrity:"sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==",_location:"/elliptic",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"elliptic@^6.5.3",name:"elliptic",escapedName:"elliptic",rawSpec:"^6.5.3",saveSpec:null,fetchSpec:"^6.5.3"},_requiredBy:["/browserify-sign","/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz",_shasum:"cb59eb2efdaf73a0bd78ccd701
15a62ad6e0f93d6",_spec:"elliptic@^6.5.3",_where:"/mnt/d/dev/git/exceljs/node_modules/browserify-sign",author:{name:"Fedor Indutny",email:"[email protected]"},bugs:{url:"https://github.com/indutny/elliptic/issues"},bundleDependencies:!1,dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},deprecated:!1,description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^3.0.8",grunt:"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.2",jscs:"^3.0.7",jshint:"^2.10.3",mocha:"^6.2.2"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://[email protected]/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.5.3"}},{}],367:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=Object.create||function(e){var t=function(){};return t.prototype=e,new t},i=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n},a=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function s(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=o(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._maxListeners=void 0;var u,c=10;try{var l={};Object.defineProperty&&Object.defineProperty(l,"x",{value:0}),u=0===l.x}catch(e){u=!1}function f(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function h(e,t,n){if(t)e.call(n);else for(var r=e.length,o=k(e,r),i=0;i<r;++i)o[i].call(n)}function d(e,t,n,r){if(t)e.call(n,r);else for(var o=e.length,i=k(e,o),a=0;a<o;++a)i[a].call(n,r)}function p(e,t,n,r,o){if(t)e.call(n,r,o);else for(var i=e.length,a=k(e,i),s=0;s<i;++s)a[s].call(n,r,o)}function m(e,t,n,r,o,i){if(t)e.call(n,r,o,i);else for(var a=e.length,s=k(e,a),u=0;u<a;++u)s[u].call(n,r,o,i)}function y(e,t,n,r){if(t)e.apply(n,r);else for(var o=e.length,i=k(e,o),a=0;a<o;++a)i[a].apply(n,r)}function v(e,t,n,i){var a,s,u;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((s=e._events)?(s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),u=s[t]):(s=e._events=o(null),e._eventsCount=0),u){if("function"==typeof u?u=s[t]=i?[n,u]:[u,n]:i?u.unshift(n):u.push(n),!u.warned&&(a=f(e))&&a>0&&u.length>a){u.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+u.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=u.length,"object"===("undefined"==typeof console?"undefined":r(console))&&console.warn&&console.warn("%s: %s",c.name,c.message)}}else u=s[t]=n,++e._eventsCount;return e}function g(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function b(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=a.call(g,r);return o.listener=n,r.wrapFn=o,o}function w(e,t,n){var r=e._events;if(!r)return[];var o=r[t];return o?"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):k(o,o.length):[]}function _(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function k(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}u?Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');c=e}}):s.defaultMaxListeners=c,s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return f(this)},s.prototype.emit=function(e){var t,n,r,o,i,a,s="error"===e;if(a=this._events)s=s&&null==a.error;else if(!s)return!1;if(s){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var u=new Error('Unhandled "error" event. ('+t+")");throw u.context=t,u}if(!(n=a[e]))return!1;var c="function"==typeof n;switch(r=arguments.length){case 1:h(n,c,this);break;case 2:d(n,c,this,arguments[1]);break;case 3:p(n,c,this,arguments[1],arguments[2]);break;case 4:m(n,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];y(n,c,this,o)}return!0},s.prototype.on=s.prototype.addListener=function(e,t){return v(this,e,t,!1)},s.prototype.prependListener=function(e,t){return v(this,e,t,!0)},s.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,b(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,b(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=o(null):(delete r[e],r.removeListener&&this.emit
vendor: 21,002 bytes, line 1
1("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){s=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),r.removeListener&&this.emit("removeListener",e,s||t)}return this},s.prototype.removeAllListeners=function(e){var t,n,r;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=o(null),this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=o(null):delete n[e]),this;if(0===arguments.length){var a,s=i(n);for(r=0;r<s.length;++r)"removeListener"!==(a=s[r])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=o(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return w(this,e,!0)},s.prototype.rawListeners=function(e){return w(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):_.call(e,t)},s.prototype.listenerCount=_,s.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],368:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,o=e("md5.js");t.exports=function(e,t,n,i){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,s=r.alloc(a),u=r.alloc(i||0),c=r.alloc(0);a>0||i>0;){var l=new o;l.update(c),l.update(e),t&&l.update(t),c=l.digest();var f=0;if(a>0){var h=s.length-a;f=Math.min(a,c.length),c.copy(s,h,0,f),a-=f}if(f<c.length&&i>0){var d=u.length-i,p=Math.min(i,c.length-f);c.copy(u,d,f,f+p),i-=p}}return c.fill(0),{key:s,iv:u}}},{"md5.js":434,"safe-buffer":494}],369:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("@fast-csv/format");Object.defineProperty(n,"format",{enumerable:!0,get:function(){return r.format}}),Object.defineProperty(n,"write",{enumerable:!0,get:function(){return r.write}}),Object.defineProperty(n,"writeToStream",{enumerable:!0,get:function(){return r.writeToStream}}),Object.defineProperty(n,"writeToBuffer",{enumerable:!0,get:function(){return r.writeToBuffer}}),Object.defineProperty(n,"writeToString",{enumerable:!0,get:function(){return r.writeToString}}),Object.defineProperty(n,"writeToPath",{enumerable:!0,get:function(){return r.writeToPath}}),Object.defineProperty(n,"CsvFormatterStream",{enumerable:!0,get:function(){return r.CsvFormatterStream}}),Object.defineProperty(n,"FormatterOptions",{enumerable:!0,get:function(){return r.FormatterOptions}});var o=e("@fast-csv/parse");Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return o.parse}}),Object.defineProperty(n,"parseString",{enumerable:!0,get:function(){return o.parseString}}),Object.defineProperty(n,"parseStream",{enumerable:!0,get:function(){return o.parseStream}}),Object.defineProperty(n,"parseFile",{enumerable:!0,get:function(){return o.parseFile}}),Object.defineProperty(n,"ParserOptions",{enumerable:!0,get:function(){return o.ParserOptions}}),Object.defineProperty(n,"CsvParserStream",{enumerable:!0,get:function(){return o.CsvParserStream}})},{"@fast-csv/format":148,"@fast-csv/parse":152}],370:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,o=e("readable-stream").Transform;function i(e){o.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(i,o),i.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},i.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},i.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer")}(e),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,o=0;this._blockOffset+e.length-o>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)n[i++]=e[o++];this._update(),this._blockOffset=0}for(;o<e.length;)n[this._blockOffset++]=e[o++];for(var a=0,s=8*e.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=i},{inherits:387,"readable-stream":491,"safe-buffer":371}],371:[function(e,t,n){arguments[4][214][0].apply(n,arguments)},{buffer:216,dup:214}],372:[function(e,t,n){"use strict";var r=n;r.utils=e("./hash/utils"),r.common=e("./hash/common"),r.sha=e("./hash/sha"),r.ripemd=e("./hash/ripemd"),r.hmac=e("./hash/hmac"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"./hash/common":373,"./hash/hmac":374,"./hash/ripemd":375,"./hash/sha":376,"./hash/utils":383}],373:[function(e,t,n){"use strict";var r=e("./utils"),o=e("minimalistic-assert");function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}n.BlockHash=i,i.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending=this.pending?this.pending.concat(e):e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var o=0;o<e.length;o+=this._delta32)this._update(e,o,o+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)r[o++]=0;r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=e>>>24&255,r[o++]=e>>>16&255,r[o++]=e>>>8&255,r[o++]=255&e}else for(r[o++]=255&e,r[o++]=e>>>8&255,r[o++]=e>>>16&255,r[o++]=e>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;i<this.padLength;i++)r[o++]=0;return r}},{"./utils":383,"minimalistic-assert":437}],374:[function(e,t,n){"use strict";var r=e("./utils"),o=e("minimalistic-assert");function i(e,t,n){if(!(this instanceof i))return new i(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}t.exports=i,i.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),o(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},i.prototype.update=function(e,t){return this.inner.update(e,t),this},i.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":383,"minimalistic-assert":437}],375:[function(e,t,n){"use strict";var r=e("./utils"),o=e("./common"),i=r.rotl32,a=r.sum32,s=r.sum32_3,u=r.sum32_4,c=o.BlockHash;function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function d(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(l,c),n.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],o=this.h[2],c=this.h[3],l=this.h[4],g=n,b=r,w=o,_=c,k=l,S=0;S<80;S++){var C=a(i(u(n,f(S,r,o,c),e[p[S]+t],h(S)),y[S]),l);n=l,l=c,c=i(o,10),o=r,r=C,C=a(i(u(g,f(79-S,b,w,_),e[m[S]+t],d(S)),v[S]),k),g=k,k=_,_=i(w,10),w=b,b=C}C=s(this.h[1],o,_),this.h[1]=s(this.h[2],c,k),this.h[2]=s(this.h[3],l,g),this.h[3]=s(this.h[4],n,b),this.h[4]=s(this.h[0],r,w),this.h[0]=C},l.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],v=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":373,"./utils":383}],376:[function(e,t,n){"use strict";n.sha1=e("./sha/1"),n.sha224=e("./sha/224"),n.sha256=e("./sha/256"),n.sha384=e("./sha/384"),n.sha512=e("./sha/512")},{"./sha/1":377,"./sha/224":378,"./sha/256":379,"./sha/384":380,"./sha/512":381}],377:[function(e,t,n){"use strict";var r=e("../utils"),o=e("../common"),i=e("./common"),a=r.rotl32,s=r.sum32,u=r.sum32_5,c=i.ft_1,l=o.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(h,l),t.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var o=this.h[0],i=this.h[1],l=this.h[2],h=this.h[3],d=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),m=u(a(o,5),c(p,i,l,h),d,n[r],f[p]);d=h,h=l,l=a(i,30),i=o,o=m}this.h[0]=s(this.h[0],o),this.h[1]=s(this.h[1],i),this.h[2]=s(this.h[2],l),this.h[3]=s(this.h[3],h),this.h[4]=s(this.h[4],d)},h.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":373,"../utils":383,"./common":382}],378:[function(e,t,n){"use strict";var r=e("../utils"),o=e("./256");function i(){if(!(this instanceof i))return new i;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(i,o),t.exports=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},{"../utils":383,"./256":379}],379:[function(e,t,n){"use strict";var r=e("../utils"),o=e("../common"),i=e("./common"),a=e("minimalistic-assert"),s=r.sum32,u=r.sum32_4,c=r.sum32_5,l=i.ch32,f=i.maj32,h=i.s0_256,d=i.s1_256,p=i.g0_256,m=i.g1_256,y=o.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function g(){if(!(this instanceof g))return new g;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(g,y),t.exports=g,g.blockSize=512,g.outSize=256,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=u(m(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],y=this.h[2],v=this.h[3],g=this.h[4],b=this.h[5],w=this.h[6],_=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var k=c(_,d(g),l(g,b,w),this.k[r],n[r]),S=s(h(o),f(o,i,y));_=w,w=b,b=g,g=s(v,k),v=y,y=i,i=o,o=s(k,S)}this.h[0]=s(this.h[0],o),this.h[1]=s(this.h[1],i),this.h[2]=s(this.h[2],y),this.h[3]=s(this.h[3],v),this.h[4]=s(this.h[4],g),this.h[5]=s(this.h[5],b),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},g.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":373,"../utils":383,"./common":382,"minimalistic-assert":437}],380:[function(e,t,n){"use strict";var r=e("../utils"),o=e("./512");function i(){if(!(this instanceof i))return new i;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(i,o),t.exports=i,i.blockSize=1024,i.outSize=384,i.hmacStrength=192,i.padLength=128,i.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},{"../utils":383,"./512":381}],381:[function(e,t,n){"use strict";var r=e("../utils"),o=e("../common"),i=e("minimalistic-assert"),a=r.rotr64_hi,s=r.rotr64_lo,u=r.shr64_hi,c=r.shr64_lo,l=r.sum64,f=r.sum64_hi,h=r.sum64_lo,d=r.sum64_4_hi,p=r.sum64_4_lo,m=r.sum64_5_hi,y=r.sum64_5_lo,v=o.BlockHash,g=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=g,this.W=new Array(160)}function w(e,t,n,r,o){var i=e&n^~e&o;return i<0&&(i+=4294967296),i}function _(e,t,n,r,o,i){var a=t&r^~t&i;return a<0&&(a+=4294967296),a}function k(e,t,n,r,o){var i=e&n^e&o^n&o;return i<0&&(i+=4294967296),i}function S(e,t,n,r,o,i){var a=t&r^t&i^r&i;return a<0&&(a+=4294967296),a}function C(e,t){var n=a(e,t,28)^a(t,e,2)^a(t,e,7);return n<0&&(n+=4294967296),n}function E(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function T(e,t){var n=a(e,t,14)^a(e,t,18)^a(t,e,9);return n<0&&(n+=4294967296),n}function x(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function O(e,t){var n=a(e,t,1)^a(e,t,8)^u(e,t,7);return n<0&&(n+=4294967296),n}function A(e,t){var n=s(e,t,1)^s(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function R(e,t){var n=a(e,t,19)^a(t,e,29)^u(e,t,6);return n<0&&(n+=4294967296),n}function I(e,t){var n=s(e,t,19)^s(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(b,v),t.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var o=R(n[r-4],n[r-3]),i=I(n[r-4],n[r-3]),a=n[r-14],s=n[r-13],u=O(n[r-30],n[r-29]),c=A(n[r-30],n[r-29]),l=n[r-32],f=n[r-31];n[r]=d(o,i,a,s,u,c,l,f),n[r+1]=p(o,i,a,s,u,c,l,f)}},b.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],c=this.h[5],d=this.h[6],p=this.h[7],v=this.h[8],g=this.h[9],b=this.h[10],O=this.h[11],A=this.h[12],R=this.h[13],I=this.h[14],P=this.h[15];i(this.k.length===n.length);for(var M=0;M<n.length;M+=2){var N=I,j=P,D=T(v,g),L=x(v,g),F=w(v,0,b,0,A),B=_(0,g,0,O,0,R),U=this.k[M],q=this.k[M+1],H=n[M],z=n[M+1],G=m(N,j,D,L,F,B,U,q,H,z),V=y(N,j,D,L,F,B,U,q,H,z);N=C(r,o),j=E(r,o),D=k(r,0,a,0,u),L=S(0,o,0,s,0,c);var $=f(N,j,D,L),K=h(N,j,D,L);I=A,P=R,A=b,R=O,b=v,O=g,v=f(d,p,G,V),g=h(p,p,G,V),d=u,p=c,u=a,c=s,a=r,s=o,r=f(G,V,$,K),o=h(G,V,$,K)}l(this.h,0,r,o),l(this.h,2,a,s),l(this.h,4,u,c),l(this.h,6,d,p),l(this.h,8,v,g),l(this.h,10,b,O),l(this.h,12,A,R),l(this.h,14,I,P)},b.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":373,"../utils":383,"minimalistic-assert":437}],382:[function(e,t,n){"use strict";var r=e("../utils").rotr32;function o(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}n.ft_1=function(e,t,n,r){return 0===e?o(t,n,r):1===e||3===e?a(t,n,r):2===e?i(t,n,r):void 0},n.ch32=o,n.maj32=i,n.p32=a,n.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},n.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},n.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},n.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},{"../utils":383}],383:[function(e,t,n){"use strict";var r=e("minimalistic-assert"),o=e("inherits");function i(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}n.inherits=o,n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var r=0,o=0;o<e.length;o++){var a=e.charCodeAt(o);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=63&a|128):i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(o=0;o<e.length;o++)n[o]=0|e[o];return n},n.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},n.htonl=a,n.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e[r];"little"===t&&(o=a(o)),n+=u(o.toString(16))}return n},n.zero2=s,n.zero8=u,n.join32=function(e,t,n,o){var i=n-t;r(i%4==0);for(var a=new Array(i/4),s=0,u=t;s<a.length;s++,u+=4)a[s]=("big"===o?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u])>>>0;return a},n.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r<e.length;r++,o+=4){var i=e[r];"big"===t?(n[o]=i>>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},n.rotr32=function(e,t){return e>>>t|e<<32-t},n.rotl32=function(e,t){return e<<t|e>>>32-t},n.sum32=function(e,t){return e+t>>>0},n.sum32_3=function(e,t,n){return e+t+n>>>0},n.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},n.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},n.sum64=function(e,t,n,r){var o=r+e[t+1]>>>0;e[t]=(o<r?1:0)+n+e[t]>>>
vendor: 4,528 bytes, line 1
10,e[t+1]=o},n.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},n.sum64_lo=function(e,t,n,r){return t+r>>>0},n.sum64_4_hi=function(e,t,n,r,o,i,a,s){var u=0,c=t;return u+=(c=c+r>>>0)<t?1:0,u+=(c=c+i>>>0)<i?1:0,e+n+o+a+(u+=(c=c+s>>>0)<s?1:0)>>>0},n.sum64_4_lo=function(e,t,n,r,o,i,a,s){return t+r+i+s>>>0},n.sum64_5_hi=function(e,t,n,r,o,i,a,s,u,c){var l=0,f=t;return l+=(f=f+r>>>0)<t?1:0,l+=(f=f+i>>>0)<i?1:0,l+=(f=f+s>>>0)<s?1:0,e+n+o+a+u+(l+=(f=f+c>>>0)<c?1:0)>>>0},n.sum64_5_lo=function(e,t,n,r,o,i,a,s,u,c){return t+r+i+s+c>>>0},n.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},n.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},n.shr64_hi=function(e,t,n){return e>>>n},n.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},{inherits:387,"minimalistic-assert":437}],384:[function(e,t,n){"use strict";var r=e("hash.js"),o=e("minimalistic-crypto-utils"),i=e("minimalistic-assert");function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=o.toArray(e.entropy,e.entropyEnc||"hex"),n=o.toArray(e.nonce,e.nonceEnc||"hex"),r=o.toArray(e.pers,e.persEnc||"hex");i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}t.exports=a,a.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o<this.V.length;o++)this.K[o]=0,this.V[o]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=o.toArray(e,t),n=o.toArray(n,r),i(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},a.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=o.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var a=i.slice(0,e);return this._update(n),this._reseed++,o.encode(a,t)}},{"hash.js":372,"minimalistic-assert":437,"minimalistic-crypto-utils":438}],385:[function(e,t,n){"use strict";n.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?o-1:0,h=n?-1:1,d=e[t+f];for(f+=h,i=d&(1<<-l)-1,d>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=h,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=h,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=c}return(d?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+d]=255&s,d+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+d]=255&a,d+=p,a/=256,c-=8);e[n+d-p]|=128*m}},{}],386:[function(e,t,n){(function(e){"use strict";var n,r,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var i=0,a=new o(l),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var u=new e.MessageChannel;u.port1.onmessage=l,n=function(){u.port2.postMessage(0)}}var c=[];function l(){var e,t;r=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}r=!1}t.exports=function(e){1!==c.push(e)||r||n()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],387:[function(e,t,n){"use strict";
1t.exports="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},{}],388:[function(e,t,n){"use strict";function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(r(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))}(e)||!!e._isBuffer)}},{}],389:[function(e,t,n){"use strict";var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],390:[function(e,t,n){"use strict";var r=e("./utils"),o=e("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,o,a,s,u,c=[],l=0,f=e.length,h=f,d="string"!==r.getTypeOf(e);l<e.length;)h=f-l,d?(t=e[l++],n=l<f?e[l++]:0,o=l<f?e[l++]:0):(t=e.charCodeAt(l++),n=l<f?e.charCodeAt(l++):0,o=l<f?e.charCodeAt(l++):0),a=(3&t)<<4|n>>4,s=h>1?(15&n)<<2|o>>6:64,u=h>2?63&o:64,c.push(i.charAt(t>>2)+i.charAt(a)+i.charAt(s)+i.charAt(u));return c.join("")},n.decode=function(e){var t,n,r,a,s,u,c=0,l=0;if("data:"===e.substr(0,"data:".length))throw new Error("Invalid base64 input, it looks like a data url.");var f,h=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===i.charAt(64)&&h--,e.charAt(e.length-2)===i.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=o.uint8array?new Uint8Array(0|h):new Array(0|h);c<e.length;)t=i.indexOf(e.charAt(c++))<<2|(a=i.indexOf(e.charAt(c++)))>>4,n=(15&a)<<4|(s=i.indexOf(e.charAt(c++)))>>2,r=(3&s)<<6|(u=i.indexOf(e.charAt(c++))),f[l++]=t,64!==s&&(f[l++]=n),64!==u&&(f[l++]=r);return f}},{"./support":419,"./utils":421}],391:[function(e,t,n){"use strict";var r=e("./external"),o=e("./stream/DataWorker"),i=e("./stream/DataLengthProbe"),a=e("./stream/Crc32Probe");function s(e,t,n,r,o){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=o}i=e("./stream/DataLengthProbe"),s.prototype={getContentWorker:function(){var e=new o(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new o(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new i("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new i("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":395,"./stream/Crc32Probe":414,"./stream/DataLengthProbe":415,"./stream/DataWorker":416}],392:[function(e,t,n){"use strict";var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(e){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":396,"./stream/GenericWorker":417}],393:[function(e,t,n){"use strict";var r=e("./utils"),o=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var i=o,a=0+n;e^=-1;for(var s=0;s<a;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}(0|t,e,e.length):function(e,t,n,r){var i=o,a=0+n;e^=-1;for(var s=0;s<a;s++)e=e>>>8^i[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length):0}},{"./utils":421}],394:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],395:[function(e,t,n){"use strict";var r;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:425}],396:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,o=e("pako"),i=e("./utils"),a=e("./stream/GenericWorker"),s=r?"uint8array":"array";function u(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",i.inherits(u,a),u.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(i.transformTo(s,e.data),!1)},u.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)}
vendor: 6,804 bytes, line 1
1,u.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new u("Deflate",e)},n.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":417,"./utils":421,pako:439}],397:[function(e,t,n){"use strict";var r=e("../utils"),o=e("../stream/GenericWorker"),i=e("../utf8"),a=e("../crc32"),s=e("../signature"),u=function(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r},c=function(e,t,n,o,c,l){var f,h,d=e.file,p=e.compression,m=l!==i.utf8encode,y=r.transformTo("string",l(d.name)),v=r.transformTo("string",i.utf8encode(d.name)),g=d.comment,b=r.transformTo("string",l(g)),w=r.transformTo("string",i.utf8encode(g)),_=v.length!==d.name.length,k=w.length!==g.length,S="",C="",E="",T=d.dir,x=d.date,O={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(O.crc32=e.crc32,O.compressedSize=e.compressedSize,O.uncompressedSize=e.uncompressedSize);var A=0;t&&(A|=8),m||!_&&!k||(A|=2048);var R,I,P=0,M=0;T&&(P|=16),"UNIX"===c?(M=798,P|=(I=R=d.unixPermissions,R||(I=T?16893:33204),(65535&I)<<16)):(M=20,P|=63&(d.dosPermissions||0)),f=x.getUTCHours(),f<<=6,f|=x.getUTCMinutes(),f<<=5,f|=x.getUTCSeconds()/2,h=x.getUTCFullYear()-1980,h<<=4,h|=x.getUTCMonth()+1,h<<=5,h|=x.getUTCDate(),_&&(C=u(1,1)+u(a(y),4)+v,S+="up"+u(C.length,2)+C),k&&(E=u(1,1)+u(a(b),4)+w,S+="uc"+u(E.length,2)+E);var N="";return N+="\n\0",N+=u(A,2),N+=p.magic,N+=u(f,2),N+=u(h,2),N+=u(O.crc32,4),N+=u(O.compressedSize,4),N+=u(O.uncompressedSize,4),N+=u(y.length,2),N+=u(S.length,2),{fileRecord:s.LOCAL_FILE_HEADER+N+y+S,dirRecord:s.CENTRAL_FILE_HEADER+u(M,2)+N+u(b.length,2)+"\0\0\0\0"+u(P,4)+u(o,4)+y+S+b}},l=function(e){return s.DATA_DESCRIPTOR+u(e.crc32,4)+u(e.compressedSize,4)+u(e.uncompressedSize,4)};function f(e,t,n,r){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(f,o),f.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},f.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=c(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=c(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:l(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=function(e,t,n,o,i){var a=r.transformTo("string",i(o));return s.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(e,2)+u(e,2)+u(t,4)+u(n,4)+u(a.length,2)+a}(this.dirRecords.length,this.bytesWritten-e,e,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},f.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},f.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=f},{"../crc32":393,"../signature":412,"../stream/GenericWorker":417,"../utf8":420,"../utils":421}],398:[function(e,t,n){"use strict";var r=e("../compressions"),o=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var i=new o(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach(function(e,n){a++;var o=function(e,t){var n=e||t,o=r[n];if(!o)throw new Error(n+" is not a valid compression method !");return o}(n.options.compression,t.compression),s=n.dir,u=n.date;n._compressWorker(o,n.options.compressionOptions||t.compressionOptions||{}).withStreamInfo("file",{name:e,dir:s,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(i)}),i.entriesCount=a}catch(e){i.error(e)}return i}},{"../compressions":392,"./ZipFileWorker":397}],399:[function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.5.0",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":394,"./external":395,"./load":400,"./object":404,"./support":419}],400:[function(e,t,n){"use strict";var r=e("./utils"),o=e("./external"),i=e("./utf8"),a=(r=e("./utils"),e("./zipEntries")),s=e("./stream/Crc32Probe"),u=e("./nodejsUtils");function c(e){return new o.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",function(e){n(e)}).on("end",function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),u.isNode&&u.isStream(e)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip f
1ile",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new a(t);return n.load(e),n}).then(function(e){var n=[o.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var i=0;i<r.length;i++)n.push(c(r[i]));return o.Promise.all(n)}).then(function(e){for(var r=e.shift(),o=r.files,i=0;i<o.length;i++){var a=o[i];n.file(a.fileNameStr,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:t.createFolders})}return r.zipComment.length&&(n.comment=r.zipComment),n})}},{"./external":395,"./nodejsUtils":403,"./stream/Crc32Probe":414,"./utf8":420,"./utils":421,"./zipEntries":422}],401:[function(e,t,n){"use strict";var r=e("../utils"),o=e("../stream/GenericWorker");function i(e,t){o.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(i,o),i.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},i.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=i},{"../stream/GenericWorker":417,"../utils":421}],402:[function(e,t,n){"use strict";var r=e("readable-stream").Readable;function o(e,t,n){r.call(this,t),this._helper=e;var o=this;e.on("data",function(e,t){o.push(e)||o._helper.pause(),n&&n(t)}).on("error",function(e){o.emit("error",e)}).on("end",function(){o.push(null)})}e("../utils").inherits(o,r),o.prototype._read=function(){this._helper.resume()},t.exports=o},{"../utils":421,"readable-stream":405}],403:[function(e,t,n){(function(e){"use strict";t.exports={isNode:void 0!==e,newBufferFrom:function(t,n){if(e.from&&e.from!==Uint8Array.from)return e.from(t,n);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new e(t,n)},allocBuffer:function(t){if(e.alloc)return e.alloc(t);var n=new e(t);return n.fill(0),n},isBuffer:function(t){return e.isBuffer(t)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}}).call(this,e("buffer").Buffer)},{buffer:216}],404:[function(e,t,n){"use strict";var r=e("./utf8"),o=e("./utils"),i=e("./stream/GenericWorker"),a=e("./stream/StreamHelper"),s=e("./defaults"),u=e("./compressedObject"),c=e("./zipObject"),l=e("./generate"),f=e("./nodejsUtils"),h=e("./nodejs/NodejsStreamInputAdapter"),d=function(e,t,n){var r,a,l=o.getTypeOf(t),d=o.extend(n||{},s);d.date=d.date||new Date,null!==d.compression&&(d.compression=d.compression.toUpperCase()),"string"==typeof d.unixPermissions&&(d.unixPermissions=parseInt(d.unixPermissions,8)),d.unixPermissions&&16384&d.unixPermissions&&(d.dir=!0),d.dosPermissions&&16&d.dosPermissions&&(d.dir=!0),d.dir&&(e=m(e)),d.createFolders&&(r=p(e))&&y.call(this,r,!0),n&&void 0!==n.binary||(d.binary=!("string"===l&&!1===d.binary&&!1===d.base64)),(t instanceof u&&0===t.uncompressedSize||d.dir||!t||0===t.length)&&(d.base64=!1,d.binary=!0,t="",d.compression="STORE",l="string"),a=t instanceof u||t instanceof i?t:f.isNode&&f.isStream(t)?new h(e,t):o.prepareContent(e,t,d.binary,d.optimizedBinaryString,d.base64);var v=new c(e,a,d);this.files[e]=v},p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},y=function(e,t){return t=void 0!==t?t:s.createFolders,e=m(e),this.files[e]||d.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var g={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)this.files.hasOwnProperty(t)&&(r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r))},filter:function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(r)}),t},file:function(e,t,n){if(1===arguments.length){if(v(e)){var r=e;return this.filter(function(e,t){return!t.dir&&r.test(e)})}var o=this.files[this.root+e];return o&&!o.dir?o:null}return d.call(this,e=this.root+e,t,n),this},folder:function(e){if(!e)return this;if(v(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=y.call(this,this.root+e),n=this.clone();return n.root=t.name,n},remove:function(e){var t=this.files[e=this.root+e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(e){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")}
vendor: 4,217 bytes, line 1
1,generateInternalStream:function(e){var t,n={};try{if((n=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS"),t=l.generateWorker(this,n,n.comment||this.comment||"")}catch(e){(t=new i("error")).error(e)}return new a(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=g},{"./compressedObject":391,"./defaults":394,"./generate":398,"./nodejs/NodejsStreamInputAdapter":401,"./nodejsUtils":403,"./stream/GenericWorker":417,"./stream/StreamHelper":418,"./utf8":420,"./utils":421,"./zipObject":424}],405:[function(e,t,n){"use strict";t.exports=e("stream")},{stream:506}],406:[function(e,t,n){"use strict";var r=e("./DataReader");function o(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(o,r),o.prototype.byteAt=function(e){return this.data[this.zero+e]},o.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),o=e.charCodeAt(3),i=this.length-4;i>=0;--i)if(this.data[i]===t&&this.data[i+1]===n&&this.data[i+2]===r&&this.data[i+3]===o)return i-this.zero;return-1},o.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),o=e.charCodeAt(3),i=this.readData(4);return t===i[0]&&n===i[1]&&r===i[2]&&o===i[3]},o.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":421,"./DataReader":407}],407:[function(e,t,n){"use strict";var r=e("../utils");function o(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=o},{"../utils":421}],408:[function(e,t,n){"use strict";var r=e("./Uint8ArrayReader");function o(e){r.call(this,e)}e("../utils").inherits(o,r),o.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":421,"./Uint8ArrayReader":410}],409:[function(e,t,n){"use strict";var r=e("./DataReader");function o(e){r.call(this,e)}e("../utils").inherits(o,r),o.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},o.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},o.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},o.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":421,"./DataReader":407}],410:[function(e,t,n){"use strict";var r=e("./ArrayReader");function o(e){r.call(this,e)}e("../utils").inherits(o,r),o.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t}
vendor: 1,565 bytes, line 1
1,t.exports=o},{"../utils":421,"./ArrayReader":406}],411:[function(e,t,n){"use strict";var r=e("../utils"),o=e("../support"),i=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),u=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||o.uint8array?"nodebuffer"===t?new s(e):o.uint8array?new u(r.transformTo("uint8array",e)):new i(r.transformTo("array",e)):new a(e)}},{"../support":419,"../utils":421,"./ArrayReader":406,"./NodeBufferReader":408,"./StringReader":409,"./Uint8ArrayReader":410}],412:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK\x03\x04",n.CENTRAL_FILE_HEADER="PK\x01\x02",n.CENTRAL_DIRECTORY_END="PK\x05\x06",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",n.DATA_DESCRIPTOR="PK\x07\b"},{}],413:[function(e,t,n){"use strict";var r=e("./GenericWorker"),o=e("../utils");function i(e){r.call(this,"ConvertWorker to "+e),this.destType=e}o.inherits(i,r),i.prototype.processChunk=function(e){this.push({data:o.transformTo(this.destType,e.data),meta:e.meta})},t.exports=i},{"../utils":421,"./GenericWorker":417}],414:[function(e,t,n){"use strict";var r=e("./GenericWorker"),o=e("../crc32");function i(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(i,r),i.prototype.processChunk=function(e){this.streamInfo.crc32=o(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=i},{"../crc32":393,"../utils":421,"./GenericWorker":417}],415:[function(e,t,n){"use strict";var r=e("../utils"),o=e("./GenericWorker");
vendor: 9,119 bytes, line 1
1function i(e){o.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(i,o),i.prototype.processChunk=function(e){e&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+e.data.length),o.prototype.processChunk.call(this,e)},t.exports=i},{"../utils":421,"./GenericWorker":417}],416:[function(e,t,n){"use strict";var r=e("../utils"),o=e("./GenericWorker");function i(e){o.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(i,o),i.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=i},{"../utils":421,"./GenericWorker":417}],417:[function(e,t,n){"use strict";function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],418:[function(e,t,n){(function(n){"use strict";var r=e("../utils"),o=e("./ConvertWorker"),i=e("./GenericWorker"),a=e("../base64"),s=e("../support"),u=e("../external"),c=null;if(s.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function l(e,t,n){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=n,r.checkSupport(a),this._worker=e.pipe(new o(a)),e.lock()}catch(e){this._worker=new i("error"),this._worker.error(e)}}l.prototype={accumulate:function(e){return function(e,t){return new u.Promise(function(o,i){var s=[],u=e._internalType,c=e._outputType,l=e._mimeType;e.on("data",function(e,n){s.push(e),t&&t(n)}).on("error",function(e){s=[],i(e)}).on("end",function(){try{var e=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return a.encode(t);default:return r.transformTo(e,t)}}(c,function(e,t){var r,o=0,i=null,a=0;for(r=0;r<t.length;r++)a+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(a),r=0;r<t.length;r++)i.set(t[r],o),o+=t[r].length;return i;case"nodebuffer":return n.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(u,s),l);o(e)}catch(e){i(e)}s=[]}).resume()})}(this,e)},on:function(e,t){var n=this;return this._worker.on(e,"data"===e?function(e){t.call(n,e.data,e.meta)}:function(){r.delay(t,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=l}).call(this,e("buffer").Buffer)},{"../base64":390,"../external":395,"../nodejs/NodejsStreamOutputAdapter":402,"../support":419,"../utils":421,"./ConvertWorker":413,"./GenericWorker":417,buffer:216}],419:[function(e,t,n){(function(t){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer=void 0!==t,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch(e){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(r),n.blob=0===o.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}}).call(this,e("buffer").Buffer)},{buffer:216,"readable-stream":405}],420:[function(e,t,n){"use strict";for(var r=e("./utils"),o=e("./support"),i=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),u=0;u<256;u++)s[u]=u>=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function l(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return o.nodebuffer?i.newBufferFrom(e,"utf-8"):function(e){var t,n,r,i,a,s=e.length,u=0;for(i=0;i<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),u+=n<128?1:n<2048?2:n<65536?3:4;for(t=o.uint8array?new Uint8Array(u):new Array(u),a=0,i=0;a<u;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return o.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,o,i,a=e.length,u=new Array(2*a);for(n=0,t=0;t<a;)if((o=e[t++])<128)u[n++]=o;else if((i=s[o])>4)u[n++]=65533,t+=i-1;else{for(o&=2===i?31:3===i?15:7;i>1&&t<a;)o=o<<6|63&e[t++],i--;i>1?u[n++]=65533:o<65536?u[n++]=o:(u[n++]=55296|(o-=65536)>>10&1023,u[n++]=56320|1023&o)}return u.length!==n&&(u.subarray?u=u.subarray(0,n):u.length=n),r.applyFromCharCode(u)}(e=r.transformTo(o.uint8array?"uint8array":"array",e))},r.inherits(c,a),c.prototype.processChunk=function(e){var t=r.transformTo(o.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var i=t;(t=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),t.set(i,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),u=t;a!==t.length&&(o.uint8array?(u=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(u=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(u),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,r.inherits(l,a),l.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=l},{"./nodejsUtils":403,"./stream/GenericWorker":417,"./support":419,"./ut
1ils":421}],421:[function(e,t,n){"use strict";var r=e("./support"),o=e("./base64"),i=e("./nodejsUtils"),a=e("set-immediate-shim"),s=e("./external");function u(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(n){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(e,t,n){var r=[],o=0,i=e.length;if(i<=n)return String.fromCharCode.apply(null,e);for(;o<i;)r.push(String.fromCharCode.apply(null,"array"===t||"nodebuffer"===t?e.slice(o,Math.min(o+n,i)):e.subarray(o,Math.min(o+n,i)))),o+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,i.allocBuffer(1)).length}catch(e){return!1}}()}};function f(e){var t=65536,r=n.getTypeOf(e),o=!0;if("uint8array"===r?o=l.applyCanBeUsed.uint8array:"nodebuffer"===r&&(o=l.applyCanBeUsed.nodebuffer),o)for(;t>1;)try{return l.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return l.stringifyByChar(e)}function h(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=f;var d={};d.string={string:u,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return d.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,i.allocBuffer(e.length))}},d.array={string:f,array:u,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i.newBufferFrom(e)}},d.arraybuffer={string:function(e){return f(new Uint8Array(e))},array:function(e){return h(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:u,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i.newBufferFrom(new Uint8Array(e))}},d.uint8array={string:f,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:u,nodebuffer:function(e){return i.newBufferFrom(e)}},d.nodebuffer={string:f,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return d.nodebuffer.uint8array(e).buffer},uint8array:function(e){return h(e,new Uint8Array(e.length))},nodebuffer:u},n.transformTo=function(e,t){if(t||(t=""),!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return d[r][e](t)},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&i.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){a(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,i,a,u){return s.Promise.resolve(t).then(function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new s.Promise(function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)}):e}).then(function(t){var l,f=n.getTypeOf(t);return f?("arraybuffer"===f?t=n.transformTo("uint8array",t):"string"===f&&(u?t=o.decode(t):i&&!0!==a&&(t=c(l=t,r.uint8array?new Uint8Array(l.length):new Array(l.length)))),t):s.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":390,"./external":395,"./nodejsUtils":403,"./support":419,"set-immediate-shim"
vendor: 9,456 bytes, line 1
1:497}],422:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),o=e("./utils"),i=e("./signature"),a=e("./zipEntry"),s=(e("./utf8"),e("./support"));function u(e){this.files=[],this.loadOptions=e}u.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(t)+", expected "+o.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=o.transformTo(s.uint8array?"uint8array":"array",e);this.zipComment=this.loadOptions.decodeFileName(t)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)this.reader.setIndex((t=this.files[e]).localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,i.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(r>0)this.isSignature(t,i.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=u},{"./reader/readerFor":411,"./signature":412,"./support":419,"./utf8":420,"./utils":421,"./zipEntry":423}],423:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),o=e("./utils"),i=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),u=e("./compressions"),c=e("./support");function l(e,t){this.options=e,this.loadOptions=t}l.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in u)if(u.hasOwnProperty(t)&&u[t].magic===e)return u[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===e&&(this.dosPermissions=63&this.externalFileAttributes),3===e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,n,r,o=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<o;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(o)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=o.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var i=o.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=l},{"./compressedObject":391,"./compressions":392,"./crc32":393,"./reader/readerFor":411,"./support":419,"./utf8":420,"./utils":421}],424:[function(e,t,n){"use strict";var r=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),i=e("./utf8"),a=e("./compressedObject"),s=e("./stream/GenericWorker"),u=function(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}};u.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var o="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!o&&(t=t.pipe(new i.Utf8EncodeWorker)),!a&&o&&(t=t.pipe(new i.Utf8DecodeWorker))}catch(e){(t=new s("error")).error(e)}return new r(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)}
vendor: 4,784 bytes, line 1
1,nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof a&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new i.Utf8EncodeWorker)),a.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof s?this._data:new o(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],l=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<c.length;f++)u.prototype[c[f]]=l;t.exports=u},{"./compressedObject":391,"./stream/DataWorker":416,"./stream/GenericWorker":417,"./stream/StreamHelper":418,"./utf8":420}],425:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=e("immediate");function i(){}var a={},s=["REJECTED"],u=["FULFILLED"],c=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function f(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(e,t,n){o(function(){var r;try{r=t(n)}catch(t){return a.reject(e,t)}r===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,r)})}function d(e){var t=e&&e.then;if(e&&("object"===r(e)||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,a.reject(e,t))}function o(t){n||(n=!0,a.resolve(e,t))}var i=m(function(){t(o,r)});"error"===i.status&&r(i.value)}function m(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}t.exports=l,l.prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===u||"function"!=typeof t&&this.state===s)return this;var n=new this.constructor(i);return this.state!==c?h(n,this.state===u?e:t,this.outcome):this.queue.push(new f(n,e,t)),n},f.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},f.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},f.prototype.callRejected=function(e){a.reject(this.promise,e)},f.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=m(d,t);if("error"===n.status)return a.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=u,e.outcome=t;for(var o=-1,i=e.queue.length;++o<i;)e.queue[o].callFulfilled(t)}return e},a.reject=function(e,t){e.state=s,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return a.reject(t,e)},l.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=new Array(n),s=0,u=-1,c=new this(i);++u<n;)l(e[u],u);return c;function l(e,i){t.resolve(e).then(function(e){o[i]=e,++s!==n||r||(r=!0,a.resolve(c,o))},function(e){r||(r=!0,a.reject(c,e))})}},l.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,n=!1;if(!t)return this.resolve([]);for(var r=-1,o=new this(i);++r<t;)this.resolve(e[r]).then(function(e){n||(n=!0,a.resolve(o,e))},function(e){n||(n=!0,a.reject(o,e))});return o}},{immediate:386}],426:[function(e,t,n){(function(e){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=/[\\^$.*+?()[\]{}|]/g,o=RegExp(r.source),i="object"==(void 0===e?"undefined":n(e))&&e&&e.Object===Object&&e,a="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,s=i||a||Function("return this")(),u=Object.prototype.toString,c=s.Symbol,l=c?c.prototype:void 0,f=l?l.toString:void 0;t.exports=function(e){var t;
1return(e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==n(e)||function(e){return!!e&&"object"==n(e)}(e)&&"[object Symbol]"==u.call(e)}(e))return f?f.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t))&&o.test(e)?e.replace(r,"\\$&"):e}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],427:[function(e,t,n){(function(e){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o="[object Arguments]",i="[object Map]",a="[object Object]",s="[object Set]",u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,l=/^\./,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[o]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m["[object Function]"]=m[i]=m["[object Number]"]=m[a]=m["[object RegExp]"]=m[s]=m["[object String]"]=m["[object WeakMap]"]=!1;var y="object"==(void 0===e?"undefined":r(e))&&e&&e.Object===Object&&e,v="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,g=y||v||Function("return this")(),b="object"==(void 0===n?"undefined":r(n))&&n&&!n.nodeType&&n,w=b&&"object"==(void 0===t?"undefined":r(t))&&t&&!t.nodeType&&t,_=w&&w.exports===b&&y.process,k=function(){try{return _&&_.binding("util")}catch(e){}}(),S=k&&k.isTypedArray;function C(e,t,n,r){for(var o=-1,i=e?e.length:0;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function E(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function T(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function x(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function O(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var A,R,I,P=Array.prototype,M=Function.prototype,N=Object.prototype,j=g["__core-js_shared__"],D=(A=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",L=M.toString,F=N.hasOwnProperty,B=N.toString,U=RegExp("^"+L.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=g.Symbol,H=g.Uint8Array,z=N.propertyIsEnumerable,G=P.splice,V=(R=Object.keys,I=Object,function(e){return R(I(e))}),$=ke(g,"DataView"),K=ke(g,"Map"),Y=ke(g,"Promise"),W=ke(g,"Set"),X=ke(g,"WeakMap"),Z=ke(Object,"create"),J=Re($),Q=Re(K),ee=Re(Y),te=Re(W),ne=Re(X),re=q?q.prototype:void 0,oe=re?re.valueOf:void 0,ie=re?re.toString:void 0;function ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ue(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ce(e){var t=-1,n=e?e.length:0;for(this.__data__=new ue;++t<n;)this.add(e[t])}function le(e){this.__data__=new se(e)}function fe(e,t){for(var n=e.length;n--;)if(Ne(e[n][0],t))return n;return-1}function he(e,t,n,r){return pe(e,function(e,o,i){t(r,e,n(e),i)}),r}ae.prototype.clear=function(){this.__data__=Z?Z(null):{}},ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ae.prototype.get=function(e){var t=this.__data__;if(Z){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return F.call(t,e)?t[e]:void 0},ae.prototype.has=function(e){var t=this.__data__;return Z?void 0!==t[e]:F.call(t,e)},ae.prototype.set=function(e,t){return this.__data__[e]=Z&&void 0===t?"__lodash_hash_undefined__":t,this},se.prototype.clear=function(){this.__data__=[]},se.prototype.delete=function(e){var t=this.__data__,n=fe(t,e);return!(n<0||(n==t.length-1?t.pop():G.call(t,n,1),0))},se.prototype.get=function(e){var t=this.__data__,n=fe(t,e);return n<0?void 0:t[n][1]},se.prototype.has=function(e){return fe(this.__data__,e)>-1},se.prototype.set=function(e,t){var n=this.__data__,r=fe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ue.prototype.clear=function(){this.__data__={hash:new ae,map:new(K||se),string:new ae}},ue.prototype.delete=function(e){return _e(this,e).delete(e)},ue.prototype.get=function(e){return _e(this,e).get(e)},ue.prototype.has=function(e){return _e(this,e).has(e)},ue.prototype.set=function(e,t){return _e(this,e).set(e,t),this},ce.prototype.add=ce.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ce.prototype.has=function(e){return this.__data__.has(e)},le.prototype.clear=function(){this.__data__=new se},le.prototype.delete=function(e){return this.__data__.delete(e)},le.prototype.get=function(e){return this.__data__.get(e)},le.prototype.has=function(e){return this.__data__.has(e)},le.prototype.set=function(e,t){var n=this.__data__;if(n instanceof se){var r=n.__data__;if(!K||r.length<199)return r.push([e,t]),this;n=this.__data__=new ue(r)}return n.set(e,t),this};var de,pe=(de=function(e,t){return e&&me(e,t,Ge)},function(e,t){if(null==e)return e;if(!Le(e))return de(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),me=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[++r];if(!1===t(o[s],s,o))break}return e};function ye(e,t){for(var n=0,r=(t=Ee(t,e)?[t]:be(t)).length;null!=e&&n<r;)e=e[Ae(t[n++])];return n&&n==r?e:void 0}function ve(e,t){return null!=e&&t in Object(e)}function ge(e,t,n,r,u){return e===t||(null==e||null==t||!Ue(e)&&!qe(t)?e!=e&&t!=t:function(e,t,n,r,u,c){var l=De(e),f=De(t),h="[object Array]",d="[object Array]";l||(h=(h=Se(e))==o?a:h),f||(d=(d=Se(t))==o?a:d);var p=h==a&&!T(e),m=d==a&&!T(t),y=h==d;if(y&&!p)return c||(c=new le),l||ze(e)?we(e,t,n,r,u,c):function(e,t,n,r,o,a,u){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new H(e),new H(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ne(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case i:var c=x;case s:if(c||(c=O),e.size!=t.size&&!(2&a))return!1;var l=u.get(e);if(l)return l==t;a|=1,u.set(e,t);var f=we(c(e),c(t),r,o,a,u);return u.delete(e),f;case"[object Symbol]":if(oe)return oe.call(e)==oe.call(t)}return!1}(e,t,h,n,r,u,c);if(!(2&u)){var v=p&&F.call(e,"__wrapped__"),g=m&&F.call(t,"__wrapped__");
1if(v||g){var b=v?e.value():e,w=g?t.value():t;return c||(c=new le),n(b,w,r,u,c)}}return!!y&&(c||(c=new le),function(e,t,n,r,o,i){var a=2&o,s=Ge(e),u=s.length;if(u!=Ge(t).length&&!a)return!1;for(var c=u;c--;){var l=s[c];if(!(a?l in t:F.call(t,l)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var h=!0;i.set(e,t),i.set(t,e);for(var d=a;++c<u;){var p=e[l=s[c]],m=t[l];if(r)var y=a?r(m,p,l,t,e,i):r(p,m,l,e,t,i);if(!(void 0===y?p===m||n(p,m,r,o,i):y)){h=!1;break}d||(d="constructor"==l)}if(h&&!d){var v=e.constructor,g=t.constructor;v==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof g&&g instanceof g||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,r,u,c))}(e,t,ge,n,r,u))}function be(e){return De(e)?e:Oe(e)}function we(e,t,n,r,o,i){var a=2&o,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var l=-1,f=!0,h=1&o?new ce:void 0;for(i.set(e,t),i.set(t,e);++l<s;){var d=e[l],p=t[l];if(r)var m=a?r(p,d,l,t,e,i):r(d,p,l,e,t,i);if(void 0!==m){if(m)continue;f=!1;break}if(h){if(!E(t,function(e,t){if(!h.has(t)&&(d===e||n(d,e,r,o,i)))return h.add(t)})){f=!1;break}}else if(d!==p&&!n(d,p,r,o,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function _e(e,t){var n,o,i=e.__data__;return("string"==(o=r(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ke(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ue(e)||function(e){return!!D&&D in e}(e))&&(Fe(e)||T(e)?U:d).test(Re(e))}(n)?n:void 0}var Se=function(e){return B.call(e)};function Ce(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||p.test(e))&&e>-1&&e%1==0&&e<t}function Ee(e,t){if(De(e))return!1;var n=r(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!He(e))||c.test(e)||!u.test(e)||null!=t&&e in Object(t)}function Te(e){return e==e&&!Ue(e)}function xe(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}($&&"[object DataView]"!=Se(new $(new ArrayBuffer(1)))||K&&Se(new K)!=i||Y&&"[object Promise]"!=Se(Y.resolve())||W&&Se(new W)!=s||X&&"[object WeakMap]"!=Se(new X))&&(Se=function(e){var t=B.call(e),n=t==a?e.constructor:void 0,r=n?Re(n):void 0;if(r)switch(r){case J:return"[object DataView]";case Q:return i;case ee:return"[object Promise]";case te:return s;case ne:return"[object WeakMap]"}return t});var Oe=Me(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(He(e))return ie?ie.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return l.test(e)&&n.push(""),e.replace(f,function(e,t,r,o){n.push(r?o.replace(h,"$1"):t||e)}),n});function Ae(e){if("string"==typeof e||He(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Re(e){if(null!=e){try{return L.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Ie,Pe=(Ie=function(e,t,n){F.call(e,n)?e[n].push(t):e[n]=[t]},function(e,t){return(De(e)?C:he)(e,Ie,function(e){return"function"==typeof e?e:null==e?Ve:"object"==r(e)?De(e)?function(e,t){return Ee(e)&&Te(t)?xe(Ae(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:ye(e,t);return void 0===r?void 0:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){for(var r,o=-1,i=(t=Ee(t,e)?[t]:be(t)).length;++o<i;){var a=Ae(t[o]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}return r||!!(i=e?e.length:0)&&Be(i)&&Ce(a,i)&&(De(e)||je(e))}(e,t,ve)}(n,e):ge(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=Ge(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Te(o)]}return t}(e);return 1==t.length&&t[0][2]?xe(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var o=n.length,i=o;if(null==e)return!i;for(e=Object(e);o--;){var a=n[o];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){var s=(a=n[o])[0],u=e[s];if(a[2]){if(void 0===u&&!(s in e))return!1}else if(!ge(a[1],u,void 0,3,new le))return!1}return!0}(n,0,t)}}(e):Ee(t=e)?(n=Ae(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return ye(t,e)}}(t);var t,n}(t),{})});function Me(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(Me.Cache||ue),n}function Ne(e,t){return e===t||e!=e&&t!=t}function je(e){return function(e){return qe(e)&&Le(e)}(e)&&F.call(e,"callee")&&(!z.call(e,"callee")||B.call(e)==o)}Me.Cache=ue;var De=Array.isArray;function Le(e){return null!=e&&Be(e.length)&&!Fe(e)}function Fe(e){var t=Ue(e)?B.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ue(e){var t=r(e);return!!e&&("object"==t||"function"==t)}function qe(e){return!!e&&"object"==r(e)}function He(e){return"symbol"==r(e)||qe(e)&&"[object Symbol]"==B.call(e)}var ze=S?function(e){return function(t){return e(t)}}(S):function(e){return qe(e)&&Be(e.length)&&!!m[B.call(e)]};function Ge(e){return Le(e)?function(e,t){var n=De(e)||je(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!F.call(e,i)||o&&("length"==i||Ce(i,r))||n.push(i);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||N))return V(e);var t,n,r=[];for(var o in Object(e))F.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function Ve(e){return e}t.exports=Pe}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],428:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=Object.prototype.toString;t.exports=function(e){return!0===e||!1===e||function(e){return!!e&&"object"==r(e)}(e)&&"[object Boolean]"==o.call(e)}},{}],429:[function(e,t,n){(function(e){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o="[object Arguments]",i="[object Map]",a="[object Object]",s="[object Set]",u=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,l={};
1l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l[o]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l["[object Function]"]=l[i]=l["[object Number]"]=l[a]=l["[object RegExp]"]=l[s]=l["[object String]"]=l["[object WeakMap]"]=!1;var f="object"==(void 0===e?"undefined":r(e))&&e&&e.Object===Object&&e,h="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,d=f||h||Function("return this")(),p="object"==(void 0===n?"undefined":r(n))&&n&&!n.nodeType&&n,m=p&&"object"==(void 0===t?"undefined":r(t))&&t&&!t.nodeType&&t,y=m&&m.exports===p,v=y&&f.process,g=function(){try{return v&&v.binding&&v.binding("util")}catch(e){}}(),b=g&&g.isTypedArray;function w(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function _(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function k(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var S,C,E,T=Array.prototype,x=Object.prototype,O=d["__core-js_shared__"],A=Function.prototype.toString,R=x.hasOwnProperty,I=(S=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"",P=x.toString,M=RegExp("^"+A.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N=y?d.Buffer:void 0,j=d.Symbol,D=d.Uint8Array,L=x.propertyIsEnumerable,F=T.splice,B=j?j.toStringTag:void 0,U=Object.getOwnPropertySymbols,q=N?N.isBuffer:void 0,H=(C=Object.keys,E=Object,function(e){return C(E(e))}),z=pe(d,"DataView"),G=pe(d,"Map"),V=pe(d,"Promise"),$=pe(d,"Set"),K=pe(d,"WeakMap"),Y=pe(Object,"create"),W=ge(z),X=ge(G),Z=ge(V),J=ge($),Q=ge(K),ee=j?j.prototype:void 0,te=ee?ee.valueOf:void 0;function ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function oe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ie(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new oe;++t<n;)this.add(e[t])}function ae(e){var t=this.__data__=new re(e);this.size=t.size}function se(e,t){for(var n=e.length;n--;)if(be(e[n][0],t))return n;return-1}function ue(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B&&B in Object(e)?function(e){var t=R.call(e,B),n=e[B];try{e[B]=void 0;var r=!0}catch(e){}var o=P.call(e);return r&&(t?e[B]=n:delete e[B]),o}(e):function(e){return P.call(e)}(e)}function ce(e){return Te(e)&&ue(e)==o}function le(e,t,n,r,u){return e===t||(null==e||null==t||!Te(e)&&!Te(t)?e!=e&&t!=t:function(e,t,n,r,u,c){var l=_e(e),f=_e(t),h=l?"[object Array]":ye(e),d=f?"[object Array]":ye(t),p=(h=h==o?a:h)==a,m=(d=d==o?a:d)==a,y=h==d;if(y&&ke(e)){if(!ke(t))return!1;l=!0,p=!1}if(y&&!p)return c||(c=new ae),l||xe(e)?fe(e,t,n,r,u,c):function(e,t,n,r,o,a,u){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new D(e),new D(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return be(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case i:var c=_;case s:if(c||(c=k),e.size!=t.size&&!(1&r))return!1;var l=u.get(e);if(l)return l==t;r|=2,u.set(e,t);var f=fe(c(e),c(t),r,o,a,u);return u.delete(e),f;case"[object Symbol]":if(te)return te.call(e)==te.call(t)}return!1}(e,t,h,n,r,u,c);if(!(1&n)){var v=p&&R.call(e,"__wrapped__"),g=m&&R.call(t,"__wrapped__");
1if(v||g){var b=v?e.value():e,w=g?t.value():t;return c||(c=new ae),u(b,w,n,r,c)}}return!!y&&(c||(c=new ae),function(e,t,n,r,o,i){var a=1&n,s=he(e),u=s.length;if(u!=he(t).length&&!a)return!1;for(var c=u;c--;){var l=s[c];if(!(a?l in t:R.call(t,l)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var h=!0;i.set(e,t),i.set(t,e);for(var d=a;++c<u;){var p=e[l=s[c]],m=t[l];if(r)var y=a?r(m,p,l,t,e,i):r(p,m,l,e,t,i);if(!(void 0===y?p===m||o(p,m,n,r,i):y)){h=!1;break}d||(d="constructor"==l)}if(h&&!d){var v=e.constructor,g=t.constructor;v==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof g&&g instanceof g||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,r,u,c))}(e,t,n,r,le,u))}function fe(e,t,n,r,o,i){var a=1&n,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var l=-1,f=!0,h=2&n?new ie:void 0;for(i.set(e,t),i.set(t,e);++l<s;){var d=e[l],p=t[l];if(r)var m=a?r(p,d,l,t,e,i):r(d,p,l,e,t,i);if(void 0!==m){if(m)continue;f=!1;break}if(h){if(!w(t,function(e,t){if(!h.has(t)&&(d===e||o(d,e,n,r,i)))return h.push(t)})){f=!1;break}}else if(d!==p&&!o(d,p,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function he(e){return function(e,t,n){var r=t(e);return _e(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Oe,me)}function de(e,t){var n,o,i=e.__data__;return("string"==(o=r(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function pe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ee(e)||function(e){return!!I&&I in e}(e))&&(Se(e)?M:u).test(ge(e))}(n)?n:void 0}ne.prototype.clear=function(){this.__data__=Y?Y(null):{},this.size=0},ne.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ne.prototype.get=function(e){var t=this.__data__;if(Y){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return R.call(t,e)?t[e]:void 0},ne.prototype.has=function(e){var t=this.__data__;return Y?void 0!==t[e]:R.call(t,e)},ne.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Y&&void 0===t?"__lodash_hash_undefined__":t,this},re.prototype.clear=function(){this.__data__=[],this.size=0},re.prototype.delete=function(e){var t=this.__data__,n=se(t,e);return!(n<0||(n==t.length-1?t.pop():F.call(t,n,1),--this.size,0))},re.prototype.get=function(e){var t=this.__data__,n=se(t,e);return n<0?void 0:t[n][1]},re.prototype.has=function(e){return se(this.__data__,e)>-1},re.prototype.set=function(e,t){var n=this.__data__,r=se(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},oe.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(G||re),string:new ne}},oe.prototype.delete=function(e){var t=de(this,e).delete(e);return this.size-=t?1:0,t},oe.prototype.get=function(e){return de(this,e).get(e)},oe.prototype.has=function(e){return de(this,e).has(e)},oe.prototype.set=function(e,t){var n=de(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ie.prototype.add=ie.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ie.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.clear=function(){this.__data__=new re,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var r=n.__data__;if(!G||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new oe(r)}return n.set(e,t),this.size=n.size,this};var me=U?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(U(e),function(t){return L.call(e,t)}))}:function(){return[]},ye=ue;function ve(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||c.test(e))&&e>-1&&e%1==0&&e<t}function ge(e){if(null!=e){try{return A.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function be(e,t){return e===t||e!=e&&t!=t}(z&&"[object DataView]"!=ye(new z(new ArrayBuffer(1)))||G&&ye(new G)!=i||V&&"[object Promise]"!=ye(V.resolve())||$&&ye(new $)!=s||K&&"[object WeakMap]"!=ye(new K))&&(ye=function(e){var t=ue(e),n=t==a?e.constructor:void 0,r=n?ge(n):"";if(r)switch(r){case W:return"[object DataView]";case X:return i;case Z:return"[object Promise]";case J:return s;case Q:return"[object WeakMap]"}return t});var we=ce(function(){return arguments}())?ce:function(e){return Te(e)&&R.call(e,"callee")&&!L.call(e,"callee")},_e=Array.isArray,ke=q||function(){return!1};function Se(e){if(!Ee(e))return!1;var t=ue(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ce(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ee(e){var t=r(e);return null!=e&&("object"==t||"function"==t)}function Te(e){return null!=e&&"object"==r(e)}var xe=b?function(e){return function(t){return e(t)}}(b):function(e){return Te(e)&&Ce(e.length)&&!!l[ue(e)]};function Oe(e){return null!=(t=e)&&Ce(t.length)&&!Se(t)?function(e,t){var n=_e(e),r=!n&&we(e),o=!n&&!r&&ke(e),i=!n&&!r&&!o&&xe(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=s.length;for(var c in e)!R.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ve(c,u))||s.push(c);return s}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||x))return H(e);var t,n,r=[];for(var o in Object(e))R.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}t.exports=function(e,t){return le(e,t)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],430:[function(e,t,n){(function(e){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r="object"==(void 0===e?"undefined":n(e))&&e&&e.Object===Object&&e,o="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,i=r||o||Function("return this")(),a=Object.prototype,s=a.hasOwnProperty,u=a.toString,c=i.Symbol,l=c?c.toStringTag:void 0;t.exports=function(e){if(!function(e){var t=n(e);return null!=e&&("object"==t||"function"==t)}(e))return!1;
1var t=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?function(e){var t=s.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=u.call(e);return r&&(t?e[l]=n:delete e[l]),o}(e):function(e){return u.call(e)}(e)}(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],431:[function(e,t,n){"use strict";t.exports=function(e){return null==e}},{}],432:[function(e,t,n){"use strict";t.exports=function(e){return void 0===e}},{}],433:[function(e,t,n){(function(e){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=/^\[object .+?Constructor\]$/,o="object"==(void 0===e?"undefined":n(e))&&e&&e.Object===Object&&e,i="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,a=o||i||Function("return this")();function s(e,t){return!(!e||!e.length)&&function(e,t,n){if(t!=t)return function(e,t,n,r){for(var o=e.length,i=-1;++i<o;)if(t(e[i],i,e))return i;return-1}(e,u);for(var r=-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t)>-1}function u(e){return e!=e}function c(e,t){return e.has(t)}function l(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var f,h=Array.prototype,d=Function.prototype,p=Object.prototype,m=a["__core-js_shared__"],y=(f=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"",v=d.toString,g=p.hasOwnProperty,b=p.toString,w=RegExp("^"+v.call(g).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_=h.splice,k=P(a,"Map"),S=P(a,"Set"),C=P(Object,"create");function E(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function T(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function x(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function O(e){var t=-1,n=e?e.length:0;for(this.__data__=new x;++t<n;)this.add(e[t])}function A(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}E.prototype.clear=function(){this.__data__=C?C(null):{}},E.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},E.prototype.get=function(e){var t=this.__data__;if(C){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return g.call(t,e)?t[e]:void 0},E.prototype.has=function(e){var t=this.__data__;return C?void 0!==t[e]:g.call(t,e)},E.prototype.set=function(e,t){return this.__data__[e]=C&&void 0===t?"__lodash_hash_undefined__":t,this},T.prototype.clear=function(){this.__data__=[]},T.prototype.delete=function(e){var t=this.__data__,n=A(t,e);return!(n<0||(n==t.length-1?t.pop():_.call(t,n,1),0))},T.prototype.get=function(e){var t=this.__data__,n=A(t,e);return n<0?void 0:t[n][1]},T.prototype.has=function(e){return A(this.__data__,e)>-1},T.prototype.set=function(e,t){var n=this.__data__,r=A(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},x.prototype.clear=function(){this.__data__={hash:new E,map:new(k||T),string:new E}},x.prototype.delete=function(e){return I(this,e).delete(e)},x.prototype.get=function(e){return I(this,e).get(e)},x.prototype.has=function(e){return I(this,e).has(e)},x.prototype.set=function(e,t){return I(this,e).set(e,t),this},O.prototype.add=O.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},O.prototype.has=function(e){return this.__data__.has(e)};var R=S&&1/l(new S([,-0]))[1]==1/0?function(e){return new S(e)}:function(){};function I(e,t){var r,o,i=e.__data__;return("string"==(o=n(r=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function P(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!M(e)||(t=e,y&&y in t))&&(function(e){var t=M(e)?b.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?w:r).test(function(e){if(null!=e){try{return v.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(n)?n:void 0}function M(e){var t=n(e);return!!e&&("object"==t||"function"==t)}t.exports=function(e){return e&&e.length?function(e,t,n){var r=-1,o=s,i=e.length,a=!0,u=[],f=u;if(i>=200){var h=R(e);if(h)return l(h);a=!1,o=c,f=new O}else f=u;e:for(;++r<i;){var d=e[r],p=d;if(d=0!==d?d:0,a&&p==p){for(var m=f.length;m--;)if(f[m]===p)continue e;u.push(d)}else o(f,p,void 0)||(f!==u&&f.push(p),u.push(d))}return u}(e):[]}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],434:[function(e,t,n){"use strict";var r=e("inherits"),o=e("hash-base"),i=e("safe-buffer").Buffer,a=new Array(16);function s(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<<t|e>>>32-t}function c(e,t,n,r,o,i,a){return u(e+(t&n|~t&r)+o+i|0,a)+t|0}function l(e,t,n,r,o,i,a){return u(e+(t&r|n&~r)+o+i|0,a)+t|0}function f(e,t,n,r,o,i,a){return u(e+(t^n^r)+o+i|0,a)+t|0}function h(e,t,n,r,o,i,a){return u(e+(n^(t|~r))+o+i|0,a)+t|0}r(s,o),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,o=this._c,i=this._d;n=c(n,r,o,i,e[0],3614090360,7),i=c(i,n,r,o,e[1],3905402710,12),o=c(o,i,n,r,e[2],606105819,17),r=c(r,o,i,n,e[3],3250441966,22),n=c(n,r,o,i,e[4],4118548399,7),i=c(i,n,r,o,e[5],1200080426,12),o=c(o,i,n,r,e[6],2821735955,17),r=c(r,o,i,n,e[7],4249261313,22),n=c(n,r,o,i,e[8],1770035416,7),i=c(i,n,r,o,e[9],2336552879,12),o=c(o,i,n,r,e[10],4294925233,17),r=c(r,o,i,n,e[11],2304563134,22),n=c(n,r,o,i,e[12],1804603682,7),i=c(i,n,r,o,e[13],4254626195,12),o=c(o,i,n,r,e[14],2792965006,17),n=l(n,r=c(r,o,i,n,e[15],1236535329,22),o,i,e[1],4129170786,5),i=l(i,n,r,o,e[6],3225465664,9),o=l(o,i,n,r,e[11],643717713,14),r=l(r,o,i,n,e[0],3921069994,20),n=l(n,r,o,i,e[5],3593408605,5),i=l(i,n,r,o,e[10],38016083,9),o=l(o,i,n,r,e[15],3634488961,14),r=l(r,o,i,n,e[4],3889429448,20),n=l(n,r,o,i,e[9],568446438,5),i=l(i,n,r,o,e[14],3275163606,9),o=l(o,i,n,r,e[3],4107603335,14),r=l(r,o,i,n,e[8],1163531501,20),n=l(n,r,o,i,e[13],2850285829,5),i=l(i,n,r,o,e[2],4243563512,9),o=l(o,i,n,r,e[7],1735328473,14),n=f(n,r=l(r,o,i,n,e[12],2368359562,20),o,i,e[5],4294588738,4),i=f(i,n,r,o,e[8],2272392833,11),o=f(o,i,n,r,e[11],1839030562,16),r=f(r,o,i,n,e[14],4259657740,23),n=f(n,r,o,i,e[1],2763975236,4),i=f(i,n,r,o,e[4],1272893353,11),o=f(o,i,n,r,e[7],4139469664,16),r=f(r,o,i,n,e[10],3200236656,23),n=f(n,r,o,i,e[13],681279174,4),i=f(i,n,r,o,e[0],3936430074,11),o=f(o,i,n,r,e[3],3572445317,16),r=f(r,o,i,n,e[6],76029189,23),n=f(n,r,o,i,e[9],3654602809,4),i=f(i,n,r,o,e[12],3873151461,11),o=f(o,i,n,r,e[15],530742520,16),n=h(n,r=f(r,o,i,n,e[2],3299628645,23),o,i,e[0],4096336452,6),i=h(i,n,r,o,e[7],1126891415,10),o=h(o,i,n,r,e[14],2878612391,15),r=h(r,o,i,n,e[5],4237533241,21),n=h(n,r,o,i,e[12],1700485571,6),i=h(i,n,r,o,e[3],2399980690,10),o=h(o,i,n,r,e[10],4293915773,15),r
vendor: 5,008 bytes, line 1
1=h(r,o,i,n,e[1],2240044497,21),n=h(n,r,o,i,e[8],1873313359,6),i=h(i,n,r,o,e[15],4264355552,10),o=h(o,i,n,r,e[6],2734768916,15),r=h(r,o,i,n,e[13],1309151649,21),n=h(n,r,o,i,e[4],4149444226,6),i=h(i,n,r,o,e[11],3174756917,10),o=h(o,i,n,r,e[2],718787259,15),r=h(r,o,i,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+o|0,this._d=this._d+i|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=s},{"hash-base":370,inherits:387,"safe-buffer":494}],435:[function(e,t,n){"use strict";var r=e("bn.js"),o=e("brorand");function i(e){this.rand=e||new o.Rand}t.exports=i,i.create=function(e){return new i(e)},i.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var o=new r(this.rand.generate(n))}while(o.cmp(e)>=0);return o},i.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},i.prototype.test=function(e,t,n){var o=e.bitLength(),i=r.mont(e),a=new r(1).toRed(i);t||(t=Math.max(1,o/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var c=e.shrn(u),l=s.toRed(i);t>0;t--){var f=this._randrange(new r(2),s);n&&n(f);var h=f.toRed(i).redPow(c);if(0!==h.cmp(a)&&0!==h.cmp(l)){for(var d=1;d<u;d++){if(0===(h=h.redSqr()).cmp(a))return!1;if(0===h.cmp(l))break}if(d===u)return!1}}return!0},i.prototype.getDivisor=function(e,t){var n=e.bitLength(),o=r.mont(e),i=new r(1).toRed(o);t||(t=Math.max(1,n/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var u=e.shrn(s),c=a.toRed(o);t>0;t--){var l=this._randrange(new r(2),a),f=e.gcd(l);if(0!==f.cmpn(1))return f;var h=l.toRed(o).redPow(u);if(0!==h.cmp(i)&&0!==h.cmp(c)){for(var d=1;d<s;d++){if(0===(h=h.redSqr()).cmp(i))return h.fromRed().subn(1).gcd(e);if(0===h.cmp(c))break}if(d===s)return(h=h.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":436,brorand:184}],436:[function(e,t,n){arguments[4][181][0].apply(n,arguments)},{buffer:185,dup:181}],437:[function(e,t,n){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}t.exports=r,r.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},{}],438:[function(e,t,n){"use strict";var r=n;function o(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",n=0;n<e.length;n++)t+=o(e[n].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16));else for(r=0;r<e.length;r++){var o=e.charCodeAt(r),i=o>>8,a=255&o;i?n.push(i,a):n.push(a)}return n},r.zero2=o,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},{}],439:[function(e,t,n){"use strict";var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":440,"./lib/inflate":441,"./lib/utils/common":442,"./lib/zlib/constants":445}],440:[function(e,t,n){"use strict";var r=e("./zlib/deflate"),o=e("./utils/common"),i=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),u=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=o.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var l;if(l="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,l)))throw new Error(a[n]);this._dict_set=!0}}function l(e,t){var n=new c(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}c.prototype.push=function(e,t){var n,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,s.input="string"==typeof e?i.string2buf(e):"[object ArrayBuffer]"===u.call(e)?new Uint8Array(e):e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new o.Buf8(c),s.next_out=0,s.avail_out=c),1!==(n=r.deflate(s,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||this.onData("string"===this.options.to?i.buf2binstring(o.shrinkBuf(s.output,s.next_out)):o.shrinkBuf(s.output,s.next_out))}while((s.avail_in>
vendor: 6,612 bytes, line 1
10||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),s.avail_out=0,!0)},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){0===e&&(this.result="string"===this.options.to?this.chunks.join(""):o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=c,n.deflate=l,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,l(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,l(e,t)}},{"./utils/common":442,"./utils/strings":443,"./zlib/deflate":447,"./zlib/messages":452,"./zlib/zstream":454}],441:[function(e,t,n){"use strict";var r=e("./zlib/inflate"),o=e("./utils/common"),i=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),u=e("./zlib/zstream"),c=e("./zlib/gzheader"),l=Object.prototype.toString;function f(e){if(!(this instanceof f))return new f(e);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);if(this.header=new c,r.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=i.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=r.inflateSetDictionary(this.strm,t.dictionary))!==a.Z_OK))throw new Error(s[n])}function h(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}f.prototype.push=function(e,t){var n,s,u,c,f,h=this.strm,d=this.options.chunkSize,p=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,h.input="string"==typeof e?i.binstring2buf(e):"[object ArrayBuffer]"===l.call(e)?new Uint8Array(e):e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new o.Buf8(d),h.next_out=0,h.avail_out=d),(n=r.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(n=r.inflateSetDictionary(this.strm,p)),n===a.Z_BUF_ERROR&&!0===m&&(n=a.Z_OK,m=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&n!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=i.utf8border(h.output,h.next_out),c=h.next_out-u,f=i.buf2string(h.output,u),h.next_out=c,h.avail_out=d-c,c&&o.arraySet(h.output,h.output,u,c,0),this.onData(f)):this.onData(o.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(m=!0)}while((h.avail_in>0||0===h.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),h.avail_out=0,!0)},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===a.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=f,n.inflate=h,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},n.ungzip=h},{"./utils/common":442,"./utils/strings":443,"./zlib/constants":445,"./zlib/gzheader":448,"./zlib/inflate":450,"./zlib/messages":452,"./zlib/zstream":454}],442:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!==r(n))throw new TypeError(n+"must be non-object");for(var o in n)i(n,o)&&(e[o]=n[o])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,n,r,o){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),o);else for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){var t,n,r,o,i,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),o=0,t=0,n=e.length;t<n;t++)a.set(i=e[t],o),o+=i.length;return a}},s={arraySet:function(e,t,n,r,o){for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,a)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,s))},n.setTyped(o)},{}],443:[function(e,t,n){"use strict";var r=e("./common"),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(e){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){i=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(e,t){if(t<65534&&(e.subarray&&i||!e.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,o,i,a,s=e.length,u=0;for(i=0;i<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(o=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),u+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(u),a=0,i=0;a<u;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(o=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},n.buf2binstring=function(e){return u(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,o=t.length;n<o;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,o,i,s=t||e.length,c=new Array(2*s);for(r=0,n=0;n<s;)if((o=e[n++])<128)c[r++]=o;else if((i=a[o])>4)c[r++]=65533,n+=i-1;else{for(o&=2===i?31:3===i?15:7;i>1&&n<s;)o=o<<6|63&e[n++],i--;i>1?c[r++]=65533:o<65536?c[r++]=o:(c[r++]=55296|(o-=65536)>>10&1023,c[r++]=56320|1023&o)}return u(c,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":442}],444:[function(e,t,n){"use strict";
vendor: 4,112 bytes, line 1
1t.exports=function(e,t,n,r){for(var o=65535&e|0,i=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{i=i+(o=o+t[r++]|0)|0}while(--a);o%=65521,i%=65521}return o|i<<16|0}},{}],445:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],446:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,o){var i=r,a=o+n;e^=-1;for(var s=o;s<a;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}},{}],447:[function(e,t,n){"use strict";var r,o=e("../utils/common"),i=e("./trees"),a=e("./adler32"),s=e("./crc32"),u=e("./messages");function c(e,t){return e.msg=u[t],t}function l(e){return(e<<1)-(e>4?9:0)}function f(e){for(var t=e.length;--t>=0;)e[t]=0}function h(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(o.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function d(e,t){i._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,h(e.strm)}function p(e,t){e.pending_buf[e.pending++]=t}function m(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function y(e,t){var n,r,o=e.max_chain_length,i=e.strstart,a=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,c=e.window,l=e.w_mask,f=e.prev,h=e.strstart+258,d=c[i+a-1],p=c[i+a];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===p&&c[n+a-1]===d&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<h);if(r=258-(h-i),i=h-258,r>a){if(e.match_start=t,a=r,r>=s)break;d=c[i+a-1],p=c[i+a]}}}while((t=f[t&l])>u&&0!=--o);return a<=e.lookahead?a:e.lookahead}function v(e){var t,n,r,i,u,c,l,f,h,d,p=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-262)){o.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=p?r-p:0}while(--n);t=n=p;do{r=e.prev[--t],e.prev[t]=r>=p?r-p:0}while(--n);i+=p}if(0===e.strm.avail_in)break;if(l=e.window,f=e.strstart+e.lookahead,d=void 0,(d=(c=e.strm).avail_in)>(h=i)&&(d=h),n=0===d?0:(c.avail_in-=d,o.arraySet(l,c.input,c.next_in,d,f),1===c.state.wrap?c.adler=a(c.adler,l,d,f):2===c.state.wrap&&(c.adler=s(c.adler,l,d,f)),c.next_in+=d,c.total_in+=d,d),e.lookahead+=n,e.lookahead+e.insert>=3)for(e.ins_h=e.window[u=e.strstart-e.insert],e.ins_h=(e.ins_h<<e.hash_shift^e.window[u+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[u+3-1])&e.hash_mask,e.prev[u&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=u,u++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)}function g(e,t){for(var n,r;;){if(e.lookahead<262){if(v(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-262&&(e.match_length=y(e,n)),e.match_length>=3)if(r=i._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;
vendor: 6,666 bytes, line 1
1else r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}function b(e,t){for(var n,r,o;;){if(e.lookahead<262){if(v(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-262&&(e.match_length=y(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-3,r=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(d(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=i._tr_tally(e,0,e.window[e.strstart-1]))&&d(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}function w(e,t,n,r,o){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=o}function _(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(1146),this.dyn_dtree=new o.Buf16(122),this.bl_tree=new o.Buf16(78),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(16),this.heap=new o.Buf16(573),f(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(573),f(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function k(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,i._tr_init(t),0):c(e,-2)}function S(e){var t,n=k(e);return 0===n&&((t=e.state).window_size=2*t.w_size,f(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function C(e,t,n,r,i,a){if(!e)return-2;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),i<1||i>9||8!==n||r<8||r>15||t<0||t>9||a<0||a>4)return c(e,-2);8===r&&(r=9);var u=new _;return e.state=u,u.strm=e,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=i+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new o.Buf8(2*u.w_size),u.head=new o.Buf16(u.hash_size),u.prev=new o.Buf16(u.w_size),u.lit_bufsize=1<<i+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new o.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=a,u.method=n,S(e)}r=[new w(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(v(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,d(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(d(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&d(e,!1),1)}),new w(4,4,8,4,g),new w(4,5,16,8,g),new w(4,6,32,32,g),new w(4,4,16,16,b),new w(8,16,32,32,b),new w(8,16,128,128,b),new w(8,32,128,256,b),new w(32,128,258,1024,b),new w(32,258,258,4096,b)],n.deflateInit=function(e,t){return C(e,t,8,15,8,0)},n.deflateInit2=C,n.deflateReset=S,n.deflateResetKeep=k,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?-2:(e.state.gzhead=t,0):-2},n.deflate=function(e,t){var n,o,a,u;if(!e||!e.state||t>5||t<0)return e?c(e,-2):-2;if(o=e.state,!e.output||!e.input&&0!==e.avail_in||666===o.status&&4!==t)return c(e,0===e.avail_out?-5:-2);if(o.strm=e,n=o.last_flush,o.last_flush=t,42===o.status)if(2===o.wrap)e.adler=0,p(o,31),p(o,139),p(o,8),o.gzhead?(p(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),p(o,255&o.gzhead.time),p(o,o.gzhead.time>>8&255),p(o,o.gzhead.time>>16&255),p(o,o.gzhead.time>>24&255),p(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),p(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(p(o,255&o.gzhead.extra.length),p(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=s(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(p(o,0),p(o,0),p(o,0),p(o,0),p(o,0),p(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),p(o,3),o.status=113);else{var y=8+(o.w_bits-8<<4)<<8;y|=(o.strategy>=2||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(y|=32),y+=31-y%31,o.status=113,m(o,y),0!==o.strstart&&(m(o,e.adler>>>16),m(o,65535&e.adler)),e.adler=1}if(69===o.status)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),h(e),a=o.pending,o.pending!==o.pending_buf_size));)p(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;
vendor: 4,262 bytes, line 1
1if(73===o.status)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),h(e),a=o.pending,o.pending===o.pending_buf_size)){u=1;break}u=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,p(o,u)}while(0!==u);o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),0===u&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),h(e),a=o.pending,o.pending===o.pending_buf_size)){u=1;break}u=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,p(o,u)}while(0!==u);o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),0===u&&(o.status=103)}else o.status=103;if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&h(e),o.pending+2<=o.pending_buf_size&&(p(o,255&e.adler),p(o,e.adler>>8&255),e.adler=0,o.status=113)):o.status=113),0!==o.pending){if(h(e),0===e.avail_out)return o.last_flush=-1,0}else if(0===e.avail_in&&l(t)<=l(n)&&4!==t)return c(e,-5);if(666===o.status&&0!==e.avail_in)return c(e,-5);if(0!==e.avail_in||0!==o.lookahead||0!==t&&666!==o.status){var g=2===o.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(v(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}(o,t):3===o.strategy?function(e,t){for(var n,r,o,a,s=e.window;;){if(e.lookahead<=258){if(v(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[o=e.strstart-1])===s[++o]&&r===s[++o]&&r===s[++o]){a=e.strstart+258;do{}while(r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&o<a);e.match_length=258-(a-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=i._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}(o,t):r[o.level].func(o,t);if(3!==g&&4!==g||(o.status=666),1===g||3===g)return 0===e.avail_out&&(o.last_flush=-1),0;if(2===g&&(1===t?i._tr_align(o):5!==t&&(i._tr_stored_block(o,0,0,!1),3===t&&(f(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),h(e),0===e.avail_out))return o.last_flush=-1,0}return 4!==t?0:o.wrap<=0?1:(2===o.wrap?(p(o,255&e.adler),p(o,e.adler>>8&255),p(o,e.adler>>16&255),p(o,e.adler>>24&255),p(o,255&e.total_in),p(o,e.total_in>>8&255),p(o,e.total_in>>16&255),p(o,e.total_in>>24&255)):(m(o,e.adler>>>16),m(o,65535&e.adler)),h(e),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?0:1)},n.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?c(e,-2):(e.state=null,113===t?c(e,-3):0):-2},n.deflateSetDictionary=function(e,t){var n,r,i,s,u,c,l,h,d=t.length;if(!e||!e.state)return-2;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return-2;for(1===s&&(e.adler=a(e.adler,t,d,0)),n.wrap=0,d>=n.w_size&&(0===s&&(f(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new o.Buf8(n.w_size),o.arraySet(h,t,d-n.w_size,n.w_size,0),t=h,d=n.w_size),u=e.avail_in,c=e.next_in,l=e.input,e.avail_in=d,e.next_in=0,e.input=t,v(n);n.lookahead>=3;){r=n.strstart,i=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=2,v(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=c,e.input=l,e.avail_in=u,n.wrap=s,0},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":442,"./adler32":444,"./crc32":446,"./messages":452,"./trees":453}],448:[function(e,t,n){"use strict";
vendor: 4,530 bytes, line 1
1t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],449:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,o,i,a,s,u,c,l,f,h,d,p,m,y,v,g,b,w,_,k,S,C,E,T;E=e.input,o=(r=e.next_in)+(e.avail_in-5),T=e.output,a=(i=e.next_out)-(t-e.avail_out),s=i+(e.avail_out-257),u=(n=e.state).dmax,c=n.wsize,l=n.whave,f=n.wnext,h=n.window,d=n.hold,p=n.bits,m=n.lencode,y=n.distcode,v=(1<<n.lenbits)-1,g=(1<<n.distbits)-1;e:do{p<15&&(d+=E[r++]<<p,d+=E[r++]<<(p+=8),p+=8),b=m[d&v];t:for(;;){if(d>>>=w=b>>>24,p-=w,0==(w=b>>>16&255))T[i++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=m[(65535&b)+(d&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}_=65535&b,(w&=15)&&(p<w&&(d+=E[r++]<<p,p+=8),_+=d&(1<<w)-1,d>>>=w,p-=w),p<15&&(d+=E[r++]<<p,d+=E[r++]<<(p+=8),p+=8),b=y[d&g];n:for(;;){if(d>>>=w=b>>>24,p-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=y[(65535&b)+(d&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(k=65535&b,p<(w&=15)&&(d+=E[r++]<<p,(p+=8)<w&&(d+=E[r++]<<p,p+=8)),(k+=d&(1<<w)-1)>u){e.msg="invalid distance too far back",n.mode=30;break e}if(d>>>=w,p-=w,k>(w=i-a)){if((w=k-w)>l&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=0,C=h,0===f){if(S+=c-w,w<_){_-=w;do{T[i++]=h[S++]}while(--w);S=i-k,C=T}}else if(f<w){if(S+=c+f-w,(w-=f)<_){_-=w;do{T[i++]=h[S++]}while(--w);if(S=0,f<_){_-=w=f;do{T[i++]=h[S++]}while(--w);S=i-k,C=T}}}else if(S+=f-w,w<_){_-=w;do{T[i++]=h[S++]}while(--w);S=i-k,C=T}for(;_>2;)T[i++]=C[S++],T[i++]=C[S++],T[i++]=C[S++],_-=3;_&&(T[i++]=C[S++],_>1&&(T[i++]=C[S++]))}else{S=i-k;do{T[i++]=T[S++],T[i++]=T[S++],T[i++]=T[S++],_-=3}while(_>2);_&&(T[i++]=T[S++],_>1&&(T[i++]=T[S++]))}break}}break}}while(r<o&&i<s);r-=_=p>>3,d&=(1<<(p-=_<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=r<o?o-r+5:5-(r-o),e.avail_out=i<s?s-i+257:257-(i-s),n.hold=d,n.bits=p}},{}],450:[function(e,t,n){"use strict";var r=e("../utils/common"),o=e("./adler32"),i=e("./crc32"),a=e("./inffast"),s=e("./inftrees");function u(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function l(e){var t;return e&&e.state?(e.total_in=e.total_out=(t=e.state).total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):-2}function f(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,l(e)):-2}function h(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?-2:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,f(e))):-2}function d(e,t){var n,r;return e?(r=new c,e.state=r,r.window=null,0!==(n=h(e,t))&&(e.state=null),n):-2}var p,m,y=!0;function v(e){if(y){var t;for(p=new r.Buf32(512),m=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,p,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,m,0,e.work,{bits:5}),y=!1}e.lencode=p,e.lenbits=9,e.distcode=m,e.distbits=5}function g(e,t,n,o){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),o>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>o&&(i=o),r.arraySet(a.window,t,n-o,i,a.wnext),(o-=i)?(r.arraySet(a.window,t,n-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}n.inflateReset=f,n.inflateReset2=h,n.inflateResetKeep=l,n.inflateInit=function(e){return d(e,15)},n.inflateInit2=d,n.inflate=function(e,t){var n,c,l,f,h,d,p,m,y,b,w,_,k,S,C,E,T,x,O,A,R,I,P,M,N=0,j=new r.Buf8(4),D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(n=e.state).mode&&(n.mode=13),h=e.next_out,l=e.output,f=e.next_in,
vendor: 4,485 bytes, line 1
1c=e.input,m=n.hold,y=n.bits,b=d=e.avail_in,w=p=e.avail_out,I=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;y<16;){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}if(2&n.wrap&&35615===m){n.check=0,j[0]=255&m,j[1]=m>>>8&255,n.check=i(n.check,j,2,0),m=0,y=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&m)<<8)+(m>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&m)){e.msg="unknown compression method",n.mode=30;break}if(y-=4,R=8+(15&(m>>>=4)),0===n.wbits)n.wbits=R;else if(R>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<R,e.adler=n.check=1,n.mode=512&m?10:12,m=0,y=0;break;case 2:for(;y<16;){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}if(n.flags=m,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=m>>8&1),512&n.flags&&(j[0]=255&m,j[1]=m>>>8&255,n.check=i(n.check,j,2,0)),m=0,y=0,n.mode=3;case 3:for(;y<32;){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}n.head&&(n.head.time=m),512&n.flags&&(j[0]=255&m,j[1]=m>>>8&255,j[2]=m>>>16&255,j[3]=m>>>24&255,n.check=i(n.check,j,4,0)),m=0,y=0,n.mode=4;case 4:for(;y<16;){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}n.head&&(n.head.xflags=255&m,n.head.os=m>>8),512&n.flags&&(j[0]=255&m,j[1]=m>>>8&255,n.check=i(n.check,j,2,0)),m=0,y=0,n.mode=5;case 5:if(1024&n.flags){for(;y<16;){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}n.length=m,n.head&&(n.head.extra_len=m),512&n.flags&&(j[0]=255&m,j[1]=m>>>8&255,n.check=i(n.check,j,2,0)),m=0,y=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((_=n.length)>d&&(_=d),_&&(n.head&&(R=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,c,f,_,R)),512&n.flags&&(n.check=i(n.check,c,_,f)),d-=_,f+=_,n.length-=_),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===d)break e;_=0;do{R=c[f+_++],n.head&&R&&n.length<65536&&(n.head.name+=String.fromCharCode(R))}while(R&&_<d);if(512&n.flags&&(n.check=i(n.check,c,_,f)),d-=_,f+=_,R)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===d)break e;_=0;do{R=c[f+_++],n.head&&R&&n.length<65536&&(n.head.comment+=String.fromCharCode(R))}while(R&&_<d);if(512&n.flags&&(n.check=i(n.check,c,_,f)),d-=_,f+=_,R)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;y<16;){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}if(m!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}m=0,y=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;y<32;){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}e.adler=n.check=u(m),m=0,y=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=h,e.avail_out=p,e.next_in=f,e.avail_in=d,n.hold=m,n.bits=y,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){m>>>=7&y,y-=7&y,n.mode=27;break}for(;y<3;){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}switch(n.last=1&m,y-=1,3&(m>>>=1)){case 0:n.mode=14;break;case 1:if(v(n),n.mode=20,6===t){m>>>=2,y-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}m>>>=2,y-=2;break;case 14:for(m>>>=7&y,y-=7&y;y<32;){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}if((65535&m)!=(m>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&m,m=0,y=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(_=n.length){if(_>d&&(_=d),_>p&&(_=p),0===_)break e;r.arraySet(l,c,f,_,h),d-=_,f+=_,p-=_,h+=_,n.length-=_;break}n.mode=12;break;case 17:for(;y<14;){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}if(n.nlen=257+(31&m),y-=5,n.ndist=1+(31&(m>>>=5)),y-=5,n.ncode=4+(15&(m>>>=5)),m>>>=4,y-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;y<3;){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}n.lens[D[n.have++]]=7&m,m>>>=3,y-=3}for(;n.have<19;)n.lens[D[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,I=s(0,n.lens,0,19,n.lencode,0,n.work,P={bits:n.lenbits}),n.lenbits=P.bits,I){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;E=(N=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,T=65535&N,!((C=N>>>24)<=y);){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}if(T<16)m>>>=C,y-=C,n.lens[n.have++]=T;else{if(16===T){for(M=C+2;y<M;){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}if(m>>>=C,y-=C,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}R=n.lens[n.have-1],_=3+(3&m),m>>
vendor: 5,931 bytes, line 1
1>=2,y-=2}else if(17===T){for(M=C+3;y<M;){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}y-=C,R=0,_=3+(7&(m>>>=C)),m>>>=3,y-=3}else{for(M=C+7;y<M;){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}y-=C,R=0,_=11+(127&(m>>>=C)),m>>>=7,y-=7}if(n.have+_>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;_--;)n.lens[n.have++]=R}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,I=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,P={bits:n.lenbits}),n.lenbits=P.bits,I){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,I=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,P={bits:n.distbits}),n.distbits=P.bits,I){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(d>=6&&p>=258){e.next_out=h,e.avail_out=p,e.next_in=f,e.avail_in=d,n.hold=m,n.bits=y,a(e,w),h=e.next_out,l=e.output,p=e.avail_out,f=e.next_in,c=e.input,d=e.avail_in,m=n.hold,y=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;E=(N=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,T=65535&N,!((C=N>>>24)<=y);){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}if(E&&0==(240&E)){for(x=C,O=E,A=T;E=(N=n.lencode[A+((m&(1<<x+O)-1)>>x)])>>>16&255,T=65535&N,!(x+(C=N>>>24)<=y);){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}m>>>=x,y-=x,n.back+=x}if(m>>>=C,y-=C,n.back+=C,n.length=T,0===E){n.mode=26;break}if(32&E){n.back=-1,n.mode=12;break}if(64&E){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&E,n.mode=22;case 22:if(n.extra){for(M=n.extra;y<M;){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}n.length+=m&(1<<n.extra)-1,m>>>=n.extra,y-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;E=(N=n.distcode[m&(1<<n.distbits)-1])>>>16&255,T=65535&N,!((C=N>>>24)<=y);){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}if(0==(240&E)){for(x=C,O=E,A=T;E=(N=n.distcode[A+((m&(1<<x+O)-1)>>x)])>>>16&255,T=65535&N,!(x+(C=N>>>24)<=y);){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}m>>>=x,y-=x,n.back+=x}if(m>>>=C,y-=C,n.back+=C,64&E){e.msg="invalid distance code",n.mode=30;break}n.offset=T,n.extra=15&E,n.mode=24;case 24:if(n.extra){for(M=n.extra;y<M;){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}n.offset+=m&(1<<n.extra)-1,m>>>=n.extra,y-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===p)break e;if(n.offset>(_=w-p)){if((_=n.offset-_)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}k=_>n.wnext?n.wsize-(_-=n.wnext):n.wnext-_,_>n.length&&(_=n.length),S=n.window}else S=l,k=h-n.offset,_=n.length;_>p&&(_=p),p-=_,n.length-=_;do{l[h++]=S[k++]}while(--_);0===n.length&&(n.mode=21);break;case 26:if(0===p)break e;l[h++]=n.length,p--,n.mode=21;break;case 27:if(n.wrap){for(;y<32;){if(0===d)break e;d--,m|=c[f++]<<y,y+=8}if(e.total_out+=w-=p,n.total+=w,w&&(e.adler=n.check=n.flags?i(n.check,l,w,h-w):o(n.check,l,w,h-w)),w=p,(n.flags?m:u(m))!==n.check){e.msg="incorrect data check",n.mode=30;break}m=0,y=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;y<32;){if(0===d)break e;d--,m+=c[f++]<<y,y+=8}if(m!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}m=0,y=0}n.mode=29;case 29:I=1;break e;case 30:I=-3;break e;case 31:return-4;case 32:default:return-2}return e.next_out=h,e.avail_out=p,e.next_in=f,e.avail_in=d,n.hold=m,n.bits=y,(n.wsize||w!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&g(e,e.output,e.next_out,w-e.avail_out)?(n.mode=31,-4):(w-=e.avail_out,e.total_in+=b-=e.avail_in,e.total_out+=w,n.total+=w,n.wrap&&w&&(e.adler=n.check=n.flags?i(n.check,l,w,e.next_out-w):o(n.check,l,w,e.next_out-w)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===b&&0===w||4===t)&&0===I&&(I=-5),I)},n.inflateEnd=function(e){if(!e||!e.state)return-2;var t=e.state;return t.window&&(t.window=null),e.state=null,0},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?-2:(n.head=t,t.done=!1,0):-2},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?-2:11===n.mode&&o(1,t,r,0)!==n.check?-3:g(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":442,"./adler32":444,"./crc32":446,"./inffast":449,"./inftrees":451}],451:[function(e,t,n){"use strict";var r=e("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,u,c,l,f,h){var d,p,m,y,v,g,b,w,_,k=h.bits,S=0,C=0,E=0,T=0,x=0,O=0,A=0,R=0,I=0,P=0,M=null,N=0,j=new r.Buf16(16),D=new r.Buf16(16),L=null,F=0;for(S=0;S<=15;S++)j[S]=0;for(C=0;C<u;C++)j[t[n+C]]++;for(x=k,T=15;T>=1&&0===j[T];T--);if(x>T&&(x=T),0===T)return c[l++]=20971520,c[l++]=20971520,h.bits=1,0;for(E=1;E<T&&0===j[E];E++);for(x<E&&(x=E),R=1,S=1;S<=15;S++)if(R<<=1,(R-=j[S])<0)return-1;if(R>0&&(0===e||1!==T))return-1;for(D[1]=0,S=1;S<15;S++)D[S+1]=D[S]+j[S];for(C=0;C<u;C++)0!==t[n+C]&&(f[D[t[n+C]]++]=C);if(0===e?(M=L=f,g=19):1===e?(M=o,N-=257,L=i,F-=257,g=256):(M=a,L=s,g=-1),P=0,C=0,S=E,v=l,O=x,A=0,m=-1,y=(I=1<<x)-1,1===e&&I>852||2===e&&I>592)return 1;for(;;){b=S-A,f[C]<g?(w=0,_=f[C]):f[C]>g?(w=L[F+f[C]],_=M[N+f[C]]):(w=96,_=0),d=1<<S-A,E=p=1<<O;do{c[v+(P>>A)+(p-=d)]=b<<24|w<<16|_|0}while(0!==p);for(d=1<<S-1;P&d;)d>>=1;if(0!==d?(P&=d-1,P+=d):P=0,C++,0==--j[S]){if(S===T)break;S=t[n+f[C]]}if(S>x&&(P&y)!==m){for(0===A&&(A=x),v+=E,R=1<<(O=S-A);O+A<T&&!((R-=j[O+A])<=0);)O++,R<<=1;if(I+=1<<O,1===e&&I>852||2===e&&I>592)return 1;c[m=P&y]=x<<24|O<<16|v-l|0}}return 0!==P&&(c[v+P]=S-A<<24|64<<16|0),h.bits=x,0}},{"../utils/common":442}],452:[function(e,t,n){"use strict";
vendor: 4,958 bytes, line 1
1t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],453:[function(e,t,n){"use strict";var r=e("../utils/common");function o(e){for(var t=e.length;--t>=0;)e[t]=0}var i=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);o(c);var l=new Array(60);o(l);var f=new Array(512);o(f);var h=new Array(256);o(h);var d=new Array(29);o(d);var p,m,y,v=new Array(30);function g(e,t,n,r,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}function b(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?f[e]:f[256+(e>>>7)]}function _(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function k(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,_(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function S(e,t,n){k(e,n[2*t],n[2*t+1])}function C(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function E(e,t,n){var r,o,i=new Array(16),a=0;for(r=1;r<=15;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];0!==s&&(e[2*o]=C(i[s]++,s))}}function T(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function x(e){e.bi_valid>8?_(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function O(e,t,n,r){var o=2*t,i=2*n;return e[o]<e[i]||e[o]===e[i]&&r[t]<=r[n]}function A(e,t,n){for(var r=e.heap[n],o=n<<1;o<=e.heap_len&&(o<e.heap_len&&O(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!O(t,r,e.heap[o],e.depth));)e.heap[n]=e.heap[o],n=o,o<<=1;e.heap[n]=r}function R(e,t,n){var r,o,s,u,c=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],o=e.pending_buf[e.l_buf+c],c++,0===r?S(e,o,t):(S(e,(s=h[o])+256+1,t),0!==(u=i[s])&&k(e,o-=d[s],u),S(e,s=w(--r),n),0!==(u=a[s])&&k(e,r-=v[s],u))}while(c<e.last_lit);S(e,256,t)}function I(e,t){var n,r,o,i=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==i[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):i[2*n+1]=0;for(;e.heap_len<2;)i[2*(o=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[o]=0,e.opt_len--,s&&(e.static_len-=a[2*o+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)A(e,i,n);o=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],A(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*o]=i[2*n]+i[2*r],e.depth[o]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=o,e.heap[1]=o++,A(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,o,i,a,s,u=t.dyn_tree,c=t.max_code,l=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(i=0;i<=15;i++)e.bl_count[i]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(i=u[2*u[2*(r=e.heap[n])+1]+1]+1)>p&&(i=p,m++),u[2*r+1]=i,r>c||(e.bl_count[i]++,a=0,r>=d&&(a=h[r-d]),e.opt_len+=(s=u[2*r])*(i+a),f&&(e.static_len+=s*(l[2*r+1]+a)));if(0!==m){do{for(i=p-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(i=p;0!==i;i--)for(r=e.bl_count[i];0!==r;)(o=e.heap[--n])>c||(u[2*o+1]!==i&&(e.opt_len+=(i-u[2*o+1])*u[2*o],u[2*o+1]=i),r--)}}(e,t),E(i,c,e.bl_count)}function P(e,t,n){var r,o,i=-1,a=t[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)o=a,a=t[2*(r+1)+1],++s<u&&o===a||(s<c?e.bl_tree[2*o]+=s:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,i=o,0===a?(u=138,c=3):o===a?(u=6,c=3):(u=7,c=4))}function M(e,t,n){var r,o,i=-1,a=t[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),r=0;r<=n;r++)if(o=a,a=t[2*(r+1)+1],!(++s<u&&o===a)){if(s<c)do{S(e,o,e.bl_tree)}while(0!=--s);else 0!==o?(o!==i&&(S(e,o,e.bl_tree),s--),S(e,16,e.bl_tree),k(e,s-3,2)):s<=10?(S(e,17,e.bl_tree),k(e,s-3,3)):(S(e,18,e.bl_tree),k(e,s-11,7));s=0,i=o,0===a?(u=138,c=3):o===a?(u=6,c=3):(u=7,c=4)}}o(v);var N=!1;function j(e,t,n,o){k(e,0+(o?1:0),3),function(e,t,n,o){x(e),_(e,n),_(e,~n),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}n._tr_init=function(e){N||(function(){var e,t,n,r,o,u=new Array(16);for(n=0,r=0;r<28;r++)for(d[r]=n,e=0;e<1<<i[r];e++)h[n++]=r;for(h[n-1]=r,o=0,r=0;r<16;r++)for(v[r]=o,e=0;e<1<<a[r];e++)f[o++]=r;for(o>>=7;r<30;r++)for(v[r]=o<<7,e=0;e<1<<a[r]-7;e++)f[256+o++]=r;for(t=0;t<=15;t++)u[t]=0;for(e=0;e<=143;)c[2*e+1]=8,e++,u[8]++;for(;e<=255;)c[2*e+1]=9,e++,u[9]++;for(;e<=279;)c[2*e+1]=7,e++,u[7]++;for(;e<=287;)c[2*e+1]=8,e++,u[8]++;for(E(c,287,u),e=0;e<30;
1e++)l[2*e+1]=5,l[2*e]=C(e,5);p=new g(c,i,257,286,15),m=new g(l,a,0,30,15),y=new g(new Array(0),s,0,19,7)}(),N=!0),e.l_desc=new b(e.dyn_ltree,p),e.d_desc=new b(e.dyn_dtree,m),e.bl_desc=new b(e.bl_tree,y),e.bi_buf=0,e.bi_valid=0,T(e)},n._tr_stored_block=j,n._tr_flush_block=function(e,t,n,r){var o,i,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),I(e,e.l_desc),I(e,e.d_desc),a=function(e){var t;for(P(e,e.dyn_ltree,e.l_desc.max_code),P(e,e.dyn_dtree,e.d_desc.max_code),I(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*u[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),(i=e.static_len+3+7>>>3)<=(o=e.opt_len+3+7>>>3)&&(o=i)):o=i=n+5,n+4<=o&&-1!==t?j(e,t,n,r):4===e.strategy||i===o?(k(e,2+(r?1:0),3),R(e,c,l)):(k(e,4+(r?1:0),3),function(e,t,n,r){var o;for(k(e,t-257,5),k(e,n-1,5),k(e,r-4,4),o=0;o<r;o++)k(e,e.bl_tree[2*u[o]+1],3);M(e,e.dyn_ltree,t-1),M(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),R(e,e.dyn_ltree,e.dyn_dtree)),T(e),r&&x(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(h[n]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){k(e,2,3),S(e,256,c),function(e){16===e.bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":442}],454:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],455:[function(e,t,n){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(e,t,n){"use strict";var r=e("asn1.js");n.certificate=e("./certificate");var o=r.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});n.RSAPrivateKey=o;var i=r.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});n.RSAPublicKey=i;var a=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});n.PublicKey=a;var s=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),u=r.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});n.PrivateKey=u;var c=r.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});n.EncryptedPrivateKey=c;var l=r.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});n.DSAPrivateKey=l,n.DSAparam=r.define("DSAparam",function(){this.int()});var f=r.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())});n.ECPrivateKey=f;var h=r.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});n.signature=r.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":457,"asn1.js":167}],457:[function(e,t,n){"use strict";var r=e("asn1.js"),o=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),i=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),a=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),u=r.define("RelativeDistinguishedName",function(){this.setof(i)}),c=r.define("RDNSequence",function(){this.seqof(u)}),l=r.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),f=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(o),this.key("notAfter").use(o))}),h=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=r.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(l),this.key("validity").use(f),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())}
1),p=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())});t.exports=p},{"asn1.js":167}],458:[function(e,t,n){"use strict";var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=e("evp_bytestokey"),s=e("browserify-aes"),u=e("safe-buffer").Buffer;t.exports=function(e,t){var n,c=e.toString(),l=c.match(r);if(l){var f="aes"+l[1],h=u.from(l[2],"hex"),d=u.from(l[3].replace(/[\r\n]/g,""),"base64"),p=a(t,h.slice(0,8),parseInt(l[1],10)).key,m=[],y=s.createDecipheriv(f,p,h);m.push(y.update(d)),m.push(y.final()),n=u.concat(m)}else{var v=c.match(i);n=u.from(v[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(o)[1],data:n}}},{"browserify-aes":188,evp_bytestokey:368,"safe-buffer":494}],459:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=e("./asn1"),i=e("./aesid.json"),a=e("./fixProc"),s=e("browserify-aes"),u=e("pbkdf2"),c=e("safe-buffer").Buffer;function l(e){var t;"object"!==r(e)||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=c.from(e));var n,l,f=a(e,t),h=f.tag,d=f.data;switch(h){case"CERTIFICATE":l=o.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(l||(l=o.PublicKey.decode(d,"der")),n=l.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return o.RSAPublicKey.decode(l.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return l.subjectPrivateKey=l.subjectPublicKey,{type:"ec",data:l};case"1.2.840.10040.4.1":return l.algorithm.params.pub_key=o.DSAparam.decode(l.subjectPublicKey.data,"der"),{type:"dsa",data:l.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":d=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],a=e.algorithm.decrypt.cipher.iv,l=e.subjectPrivateKey,f=parseInt(o.split("-")[1],10)/8,h=u.pbkdf2Sync(t,n,r,f,"sha1"),d=s.createDecipheriv(o,h,a),p=[];return p.push(d.update(l)),p.push(d.final()),c.concat(p)}(d=o.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(n=(l=o.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return o.RSAPrivateKey.decode(l.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:l.algorithm.curve,privateKey:o.ECPrivateKey.decode(l.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return l.algorithm.params.priv_key=o.DSAparam.decode(l.subjectPrivateKey,"der"),{type:"dsa",params:l.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return o.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return o.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:o.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=o.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+h)}}t.exports=l,l.signature=o.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":188,pbkdf2:460,"safe-buffer":494}],460:[function(e,t,n){"use strict";n.pbkdf2=e("./lib/async"),n.pbkdf2Sync=e("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(e,t,n){(function(n,r){"use strict";var o,i=e("safe-buffer").Buffer,a=e("./precondition"),s=e("./default-encoding"),u=e("./sync"),c=e("./to-buffer"),l=r.crypto&&r.crypto.subtle,f={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function d(e,t,n,r,o){return l.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return l.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:o}},e,r<<3)}).then(function(e){return i.from(e)})}t.exports=function(e,t,p,m,y,v){"function"==typeof y&&(v=y,y=void 0);var g=f[(y=y||"sha1").toLowerCase()];if(!g||"function"!=typeof r.Promise)return n.nextTick(function(){var n;try{n=u(e,t,p,m,y)}catch(e){return v(e)}v(null,n)});if(a(p,m),e=c(e,s,"Password"),t=c(t,s,"Salt"),"function"!=typeof v)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then(function(e){n.nextTick(function(){t(null,e)})},function(e){n.nextTick(function(){t(e)})})}(function(e){if(r.process&&!r.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==h[e])return h[e];var t=d(o=o||i.alloc(8),o,10,128,e).then(function(){return!0}).catch(function(){return!1});return h[e]=t,t}(g).then(function(n){return n?d(e,t,p,m,g):u(e,t,p,m,y)}),v)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,_process:467,"safe-buffer":494}],462:[function(e,t,n){(function(e){"use strict";var n;n=e.browser?"utf-8":e.version?parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=n}).call(this,e("_process"))},{_process:467}],463:[function(e,t,n){"use strict";var r=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");
vendor: 6,651 bytes, line 1
1if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>r||t!=t)throw new TypeError("Bad key length")}},{}],464:[function(e,t,n){"use strict";var r=e("create-hash/md5"),o=e("ripemd160"),i=e("sha.js"),a=e("safe-buffer").Buffer,s=e("./precondition"),u=e("./default-encoding"),c=e("./to-buffer"),l=a.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,n){var s=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new o).update(e).digest()}:"md5"===e?r:function(t){return i(e).update(t).digest()}}(e),u="sha512"===e||"sha384"===e?128:64;t.length>u?t=s(t):t.length<u&&(t=a.concat([t,l],u));for(var c=a.allocUnsafe(u+f[e]),h=a.allocUnsafe(u+f[e]),d=0;d<u;d++)c[d]=54^t[d],h[d]=92^t[d];var p=a.allocUnsafe(u+n+4);c.copy(p,0,0,u),this.ipad1=p,this.ipad2=c,this.opad=h,this.alg=e,this.blocksize=u,this.hash=s,this.size=f[e]}h.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(e,t,n,r,o){s(n,r);var i=new h(o=o||"sha1",e=c(e,u,"Password"),(t=c(t,u,"Salt")).length),l=a.allocUnsafe(r),d=a.allocUnsafe(t.length+4);t.copy(d,0,0,t.length);for(var p=0,m=f[o],y=Math.ceil(r/m),v=1;v<=y;v++){d.writeUInt32BE(v,t.length);for(var g=i.run(d,i.ipad1),b=g,w=1;w<n;w++){b=i.run(b,i.ipad2);for(var _=0;_<m;_++)g[_]^=b[_]}g.copy(l,p),p+=m}return l}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":332,ripemd160:493,"safe-buffer":494,"sha.js":499}],465:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer;t.exports=function(e,t,n){if(r.isBuffer(e))return e;if("string"==typeof e)return r.from(e,t);if(ArrayBuffer.isView(e))return r.from(e.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(e,t,n){(function(e){"use strict";t.exports=void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?{nextTick:function(t,n,r,o){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,n)});case 3:return e.nextTick(function(){t.call(null,n,r)});case 4:return e.nextTick(function(){t.call(null,n,r,o)});default:for(i=new Array(s-1),a=0;a<i.length;)i[a++]=arguments[a];return e.nextTick(function(){t.apply(null,i)})}}}:e}).call(this,e("_process"))},{_process:467}],467:[function(e,t,n){"use strict";var r,o,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(e){o=s}}();var c,l=[],f=!1,h=-1;function d(){f&&c&&(f=!1,c.length?l=c.concat(l):h=-1,l.length&&p())}function p(){if(!f){var e=u(d);f=!0;for(var t=l.length;t;){for(c=l,l=[];++h<t;)c&&c[h].run();h=-1,t=l.length}c=null,f=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===s||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new m(e,t)),1!==l.length||f||u(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],468:[function(e,t,n){"use strict";n.publicEncrypt=e("./publicEncrypt"),n.privateDecrypt=e("./privateDecrypt"),n.privateEncrypt=function(e,t){return n.publicEncrypt(e,t,!0)},n.publicDecrypt=function(e,t){return n.privateDecrypt(e,t,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(e,t,n){"use strict";var r=e("create-hash"),o=e("safe-buffer").Buffer;function i(e){var t=o.allocUnsafe(4);return t.writeUInt32BE(e,0),t}t.exports=function(e,t){for(var n,a=o.alloc(0),s=0;a.length<t;)n=i(s++),a=o.concat([a,r("sha1").update(e).update(n).digest()]);return a.slice(0,t)}},{"create-hash":331,"safe-buffer":494}],470:[function(e,t,n){arguments[4][181][0].apply(n,arguments)},{buffer:185,dup:181}],471:[function(e,t,n){"use strict";var r=e("parse-asn1"),o=e("./mgf"),i=e("./xor"),a=e("bn.js"),s=e("browserify-rsa"),u=e("create-hash"),c=e("./withPublic"),l=e("safe-buffer").Buffer;t.exports=function(e,t,n){var f;f=e.padding?e.padding:n?1:4;var h,d=r(e),p=d.modulus.byteLength();if(t.length>p||new a(t).cmp(d.modulus)>=0)throw new Error("decryption error");h=n?c(new a(t),d):s(t,d);var m=l.alloc(p-h.length);if(h=l.concat([m,h],p),4===f)return function(e,t){var n=e.modulus.byteLength(),r=u("sha1").update(l.alloc(0)).digest(),a=r.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),c=t.slice(a+1),f=i(s,o(c,a)),h=i(c,o(f,n-a-1));if(function(e,t){e=l.from(e),t=l.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));for(var o=-1;++o<r;)n+=e[o]^t[o];return n}(r,h.slice(0,a)))throw new Error("decryption error");for(var d=a;0===h[d];)d++;if(1!==h[d++])throw new Error("decryption error");return h.slice(d)}(d,h);if(1===f)return function(e,t,n){for(var r=t.slice(0,2),o=2,i=0;0!==t[o++];)if(o>=t.length){i++;break}var a=t.slice(2,o-1);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&i++,a.length<8&&i++,i)throw new Error("decryption error");return t.slice(o)}(0,h,n);if(3===f)return h;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":206,"create-hash":331,"parse-asn1":459,"safe-buffer":494}],472:[function(e,t,n){"use strict";var r=e("parse-asn1"),o=e("randombytes"),i=e("create-hash"),a=e("./mgf"),s=e("./xor"),u=e("bn.js"),c=e("./withPublic"),l=e("browserify-rsa"),f=e("safe-buffer").Buffer;t.exports=function(e,t,n){var h;h=e.padding?e.padding:n?1:4;var d,p=r(e);
1if(4===h)d=function(e,t){var n=e.modulus.byteLength(),r=t.length,c=i("sha1").update(f.alloc(0)).digest(),l=c.length,h=2*l;if(r>n-h-2)throw new Error("message too long");var d=f.alloc(n-r-h-2),p=n-l-1,m=o(l),y=s(f.concat([c,d,f.alloc(1,1),t],p),a(m,p)),v=s(m,a(y,l));return new u(f.concat([f.alloc(1),v,y],n))}(p,t);else if(1===h)d=function(e,t,n){var r,i=t.length,a=e.modulus.byteLength();if(i>a-11)throw new Error("message too long");return r=n?f.alloc(a-i-3,255):function(e){for(var t,n=f.allocUnsafe(e),r=0,i=o(2*e),a=0;r<e;)a===i.length&&(i=o(2*e),a=0),(t=i[a++])&&(n[r++]=t);return n}(a-i-3),new u(f.concat([f.from([0,n?1:2]),r,f.alloc(1),t],a))}(p,t,n);else{if(3!==h)throw new Error("unknown padding");if((d=new u(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return n?l(d,p):c(d,p)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":206,"create-hash":331,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(e,t,n){"use strict";var r=e("bn.js"),o=e("safe-buffer").Buffer;t.exports=function(e,t){return o.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(e,t,n){"use strict";t.exports=function(e,t){for(var n=e.length,r=-1;++r<n;)e[r]^=t[r];return e}},{}],475:[function(e,t,n){(function(n,r){"use strict";var o=e("safe-buffer").Buffer,i=r.crypto||r.msCrypto;t.exports=i&&i.getRandomValues?function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var r=o.allocUnsafe(e);if(e>0)if(e>65536)for(var a=0;a<e;a+=65536)i.getRandomValues(r.slice(a,a+65536));else i.getRandomValues(r);return"function"==typeof t?n.nextTick(function(){t(null,r)}):r}:function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,"safe-buffer":494}],476:[function(e,t,n){(function(t,r){"use strict";function o(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var i=e("safe-buffer"),a=e("randombytes"),s=i.Buffer,u=i.kMaxLength,c=r.crypto||r.msCrypto,l=Math.pow(2,32)-1;function f(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>l||e<0)throw new TypeError("offset must be a uint32");if(e>u||e>t)throw new RangeError("offset out of range")}function h(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>l||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>u)throw new RangeError("buffer too small")}function d(e,n,r,o){if(t.browser){var i=new Uint8Array(e.buffer,n,r);return c.getRandomValues(i),o?void t.nextTick(function(){o(null,e)}):e}if(!o)return a(r).copy(e,n),e;a(r,function(t,r){if(t)return o(t);r.copy(e,n),o(null,e)})}c&&c.getRandomValues||!t.browser?(n.randomFill=function(e,t,n,o){if(!(s.isBuffer(e)||e instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)o=t,t=0,n=e.length;else if("function"==typeof n)o=n,n=e.length-t;else if("function"!=typeof o)throw new TypeError('"cb" argument must be a function');return f(t,e.length),h(n,t,e.length),d(e,t,n,o)},n.randomFillSync=function(e,t,n){if(void 0===t&&(t=0),!(s.isBuffer(e)||e instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return f(t,e.length),void 0===n&&(n=e.length-t),h(n,t,e.length),d(e,t,n)}):(n.randomFill=o,n.randomFillSync=o)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o={};function i(e,t,n){n||(n=Error);var r=function(e){var n,r;function o(n,r,o){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,o))||this}return r=e,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,o}(n);r.prototype.name=n.name,r.prototype.code=e,o[e]=r}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invali
1d for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,t,n){var o,i;if("string"==typeof t&&"not "===t.substr(0,"not ".length)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))i="The ".concat(e," ").concat(o," ").concat(a(t,"type"));else{var s=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+".".length>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";i='The "'.concat(e,'" ').concat(s," ").concat(o," ").concat(a(t,"type"))}return i+". Received type ".concat(r(n))},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=o},{}],478:[function(e,t,n){(function(n){"use strict";var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var o=e("./_stream_readable"),i=e("./_stream_writable");e("inherits")(c,o);for(var a=r(i.prototype),s=0;s<a.length;s++){var u=a[s];c.prototype[u]||(c.prototype[u]=i.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,e("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:387}],479:[function(e,t,n){"use strict";t.exports=o;var r=e("./_stream_transform");function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}e("inherits")(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":481,inherits:387}],480:[function(e,t,n){(function(n,r){"use strict";var o;t.exports=E,E.ReadableState=C,e("events");var i,a=function(e,t){return e.listeners(t).length},s=e("./internal/streams/stream"),u=e("buffer").Buffer,c=r.Uint8Array||function(){},l=e("util");i=l&&l.debuglog?l.debuglog("stream"):function(){};var f,h,d,p=e("./internal/streams/buffer_list"),m=e("./internal/streams/destroy"),y=e("./internal/streams/state").getHighWaterMark,v=e("../errors").codes,g=v.ERR_INVALID_ARG_TYPE,b=v.ERR_STREAM_PUSH_AFTER_EOF,w=v.ERR_METHOD_NOT_IMPLEMENTED,_=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(E,s);var k=m.errorOrDestroy,S=["error","close","destroy","pause","resume"];function C(t,n,r){o=o||e("./_stream_duplex"),"boolean"!=typeof r&&(r=n instanceof o),this.objectMode=!!(t=t||{}).objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=y(this,t,"readableHighWaterMark",r),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=e("string_decoder/").StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function E(t){if(o=o||e("./_stream_duplex"),!(this instanceof E))return new E(t);this._readableState=new C(t,this,this instanceof o),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function T(e,t,n,r,o){i("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?A(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,R(e)))}}(e,s);else if(o||(a=function(e,t){var n,r;return u.isBuffer(r=t)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new g("chunk",["string","Buffer","Uint8Array"],t)),n}(s,t)),a)k(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r)s.endEmitted?k(e,new _):x(e,s,t,!0);else if(s.ended)k(e,new b);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?x(e,s,t,!1):I(e,s)):x(e,s,t,!1)}else r||(s.reading=!1,I(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function x(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&A(e)),I(e,t)}function O(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(R,e))}function R(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function I(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(i("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function M(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){i("readable nexttick read 0"),e.read(0)}function j(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function F(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(B,t,e))}function B(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function U(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=m.destroy,E.prototype._undestroy=m.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),T(this,e,t,!1,n)},E.prototype.unshift=function(e){return T(this,e,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(t){f||(f=e("string_decoder/").StringDecoder);var n=new f(t);this._readableState.decoder=n,this._readableState.encoding=this._readableState.decoder.encoding;
vendor: 2,635 bytes, line 1
1for(var r=this._readableState.buffer.head,o="";null!==r;)o+=n.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this},E.prototype.read=function(e){i("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):A(this),null;if(0===(e=O(e,t))&&t.ended)return 0===t.length&&F(this),null;var r,o=t.needReadable;return i("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&i("length less than watermark",o=!0),t.ended||t.reading?i("reading or ended",o=!1):o&&(i("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=O(n,t))),null===(r=e>0?L(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&F(this)),null!==r&&this.emit("data",r),r},E.prototype._read=function(e){k(this,new w("_read()"))},E.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,i("pipe count=%d opts=%j",o.pipesCount,t);var s=t&&!1===t.end||e===n.stdout||e===n.stderr?m:u;function u(){i("onend"),e.end()}o.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",function t(n,a){i("onunpipe"),n===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,i("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",m),r.removeListener("data",f),l=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||c())});var c=function(e){return function(){var t=e._readableState;i("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,D(e))}}(r);e.on("drain",c);var l=!1;function f(t){i("ondata");var n=e.write(t);i("dest.write",n),!1===n&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==U(o.pipes,e))&&!l&&(i("false write response, pause",o.awaitDrain),o.awaitDrain++),r.pause())}function h(t){i("onerror",t),m(),e.removeListener("error",h),0===a(e,"error")&&k(e,t)}function d(){e.removeListener("finish",p),m()}function p(){i("onfinish"),e.removeListener("close",d),m()}function m(){i("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prepe
vendor: 9,082 bytes, line 1
1ndListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",h),e.once("close",d),e.once("finish",p),e.emit("pipe",r),o.flowing||(i("pipe resume"),r.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=U(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},E.prototype.addListener=E.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,i("on readable",o.length,o.reading),o.length?A(this):o.reading||n.nextTick(N,this))),r},E.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(M,this),r},E.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(M,this),t},E.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(j,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var o in e.on("end",function(){if(i("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){i("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o||(n.objectMode||o&&o.length)&&(t.push(o)||(r=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a<S.length;a++)e.on(S[a],this.emit.bind(this,S[a]));return this._read=function(t){i("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(E.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=e("./internal/streams/async_iterator")),h(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),E._fromList=L,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(E.from=function(t,n){return void 0===d&&(d=e("./internal/streams/from")),d(E,t,n)})}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:216,events:367,inherits:387,"string_decoder/":520,util:185}],481:[function(e,t,n){"use strict";t.exports=l;var r=e("../errors").codes,o=r.ERR_METHOD_NOT_IMPLEMENTED,i=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=e("./_stream_duplex");function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new i);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,n){h(e,t,n)})}function h(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}e("inherits")(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,n){n(new o("_transform()"))},l.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},{"../errors":477,"./_stream_duplex":478,inherits:387}],482:[function(e,t,n){(function(n,r){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var o=r.callback;t.pendingcb--,o(void 0),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var i;t.exports=E,E.WritableState=C;var a,s={deprecate:e("util-deprecate")},u=e("./internal/streams/stream"),c=e("buffer").Buffer,l=r.Uint8Array||function(){},f=e("./internal/streams/destroy"),h=e("./internal/streams/state").getHighWaterMark,d=e("../errors").codes,p=d.ERR_INVALID_ARG_TYPE,m=d.ERR_METHOD_NOT_IMPLEMENTED,y=d.ERR_MULTIPLE_CALLBACK,v=d.ERR_STREAM_CANNOT_PIPE,g=d.ERR_STREAM_DESTROYED,b=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,k=f.errorOrDestroy;function S(){}function C(t,r,a){i=i||e("./_stream_duplex"),"boolean"!=typeof a&&(a=r instanceof i),this.objectMode=!!(t=t||{}).objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=h(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===t.decodeStrings),this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,o=r.sync,i=r.writecb;if("function"!=typeof i)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,o,i){--t.pendingcb,r?(n.nextTick(i,o),n.nextTick(I,e,t),e._writableState.errorEmitted=!0,k(e,o)):(i(o),e._writableState.errorEmitted=!0,k(e,o),I(e,t))}(e,r,o,t,i);else{var a=A(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||O(e,r),o?n.nextTick(x,e,r,a,i):x(e,r,a,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function E(t){var n=this instanceof(i=i||e("./_stream_duplex"));if(!n&&!a.call(E,this))return new E(t);this._writableState=new C(t,this,n),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),u.call(this)}function T(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function x(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),I(e,t)}function O(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=new Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=n;for(var a=0,s=!0;n;)r[a]=n,n.isBuf||(s=!1),n=n.next,a+=1;r.allBuffers=s,T(e,t,!0,t.length,r,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk;
vendor: 4,284 bytes, line 1
1if(T(e,t,!1,t.objectMode?1:u.length,u,n.encoding,n.callback),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function A(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function R(e,t){e._final(function(n){t.pendingcb--,n&&k(e,n),t.prefinished=!0,e.emit("prefinish"),I(e,t)})}function I(e,t){var r=A(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(R,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var o=e._readableState;(!o||o.autoDestroy&&o.endEmitted)&&e.destroy()}return r}e("inherits")(E,u),C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(C.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===E&&e&&e._writableState instanceof C}})):a=function(e){return e instanceof this},E.prototype.pipe=function(){k(this,new v)},E.prototype.write=function(e,t,r){var o,i=this._writableState,a=!1,s=!i.objectMode&&(c.isBuffer(o=e)||o instanceof l);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=S),i.ending?function(e,t){var r=new w;k(e,r),n.nextTick(t,r)}(this,r):(s||function(e,t,r,o){var i;return null===r?i=new b:"string"==typeof r||t.objectMode||(i=new p("chunk",["string","Buffer"],r)),!i||(k(e,i),n.nextTick(o,i),!1)}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,n,r,o,i){if(!n){var a=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,n)),t}(t,r,o);r!==a&&(n=!0,o="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:i,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else T(e,t,!1,s,r,o,i);return u}(this,i,s,e,t,r)),a},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},E.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,n){n(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,r){var o=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||function(e,t,r){t.ending=!0,I(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,o,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})}
1,{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:216,inherits:387,"util-deprecate":522}],483:[function(e,t,n){(function(n){"use strict";var r;function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=e("./end-of-stream"),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function d(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var n=e[h].read();null!==n&&(e[l]=null,e[a]=null,e[s]=null,t(d(n,!1)))}}function m(e){n.nextTick(p,e)}var y=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((o(r={get stream(){return this[h]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise(function(t,r){n.nextTick(function(){e[u]?r(e[u]):t(d(void 0,!0))})});var r,o=this[l];if(o)r=new Promise(function(e,t){return function(n,r){e.then(function(){t[c]?n(d(void 0,!0)):t[f](n,r)},r)}}(o,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(d(i,!1));r=new Promise(this[f])}return this[l]=r,r}},Symbol.asyncIterator,function(){return this}),o(r,"return",function(){var e=this;return new Promise(function(t,n){e[h].destroy(null,function(e){e?n(e):t(d(void 0,!0))})})}),r),y);t.exports=function(e){var t,n=Object.create(v,(o(t={},h,{value:e,writable:!0}),o(t,a,{value:null,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,c,{value:e._readableState.endEmitted,writable:!0}),o(t,f,{value:function(e,t){var r=n[h].read();r?(n[l]=null,n[a]=null,n[s]=null,e(d(r,!1))):(n[a]=e,n[s]=t)},writable:!0}),t));return n[l]=null,i(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[s];return null!==t&&(n[l]=null,n[a]=null,n[s]=null,t(e)),void(n[u]=e)}var r=n[a];null!==r&&(n[l]=null,n[a]=null,n[s]=null,r(d(void 0,!0))),n[c]=!0}),e.on("readable",m.bind(null,n)),n}}).call(this,e("_process"))},{"./end-of-stream":486,_process:467}],484:[function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=e("buffer").Buffer,a=e("util").inspect,s=a&&a.custom||"inspect";t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t;return(t=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return i.alloc(0);for(var t=i.allocUnsafe(e>>>0),n=this.head,r=0;n;)i.prototype.copy.call(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var o=t.data,i=e>o.length?o.length:e;if(r+=i===o.length?o:o.slice(0,e),0==(e-=i)){i===o.length?(++n,this.head=t.next?t.next:this.tail=null):(this.head=t,t.data=o.slice(i));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=i.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0==(e-=a)){a===o.length?(++r,this.head=n.next?n.next:this.tail=null):(this.head=n,n.data=o.slice(a));break}++r}return this.length-=r,t}},{key:s,value:function(e,t){return a(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?r(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{depth:0,customInspect:!1}))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}()},{buffer:216,util:185}],485:[function(e,t,n){(function(e){"use strict";function n(e,t){o(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}t.exports={destroy:function(t,i){var a=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(i?i(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(o,this,t)):e.nextTick(o,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!i&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(r,a):(a._writableState.errorEmitted=!0,e.nextTick(n,a,t)):e.nextTick(n,a,t):i?(e.nextTick(r,a),i(t)):e.nextTick(r,a)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,e("_process"))},{_process:467}],486:[function(e,t,n){"use strict";var r=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}t.exports=function e(t,n,i){if("function"==typeof n)return e(t,null,n);n||(n={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r)}}}(i||o);var a=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,u=function(){t.writable||l()},c=t._writableState&&t._writableState.finished,l=function(){s=!1,c=!0,a||i.call(t)},f=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,f=!0,s||i.call(t)},d=function(e){i.call(t,e)},p=function(){var e;return a&&!f?(t._readableState&&t._readableState.ended||(e=new r),i.call(t,e)):s&&!c?(t._writableState&&t._writableState.ended||(e=new r),i.call(t,e)):void 0},m=function(){t.req.on("finish",l)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",l),t.on("abort",p),t.req?m():t.on("request",m)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",h),t.on("finish",l),!1!==n.error&&t.on("error",d),t.on("close",p),function(){t.removeListener("complete",l),t.removeListener("abort",p),t.removeListener("request",m),t.req&&t.req.removeListener("finish",l),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",l),t.removeListener("end",h),t.removeListener("error",d),t.removeListener("close",p)}}},{"../../../errors":477}],487:[function(e,t,n){"use strict";t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(e,t,n){"use strict";var r,o=e("../../../errors").codes,i=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(t,n,o,i){i=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(i);var s=!1;t.on("close",function(){s=!0}),void 0===r&&(r=e("./end-of-stream")),r(t,{readable:n,writable:o},function(e){if(e)return i(e);s=!0,i()});var u=!1;return function(e){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void i(e||new a("pipe"))}}function c(e){e()}function l(e,t){return e.pipe(t)}function f(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}t.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new i("streams");var a=t.map(function(e,n){var i=n<t.length-1;return u(e,i,n>
10,function(e){r||(r=e),e&&a.forEach(c),i||(a.forEach(c),o(r))})});return t.reduce(l)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(e,t,n){"use strict";var r=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,n,o){var i=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,o,n);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new r(o?n:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}}},{"../../../errors":477}],490:[function(e,t,n){"use strict";t.exports=e("events").EventEmitter},{events:367}],491:[function(e,t,n){"use strict";(n=t.exports=e("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js"),n.finished=e("./lib/internal/streams/end-of-stream.js"),n.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=function(e){var t=Object.prototype,n=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=Object.create((t&&t.prototype instanceof h?t:h).prototype),i=new C(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,i),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function h(){}function d(){}function p(){}var m={};m[i]=function(){return this};var y=Object.getPrototypeOf,v=y&&y(y(E([])));v&&v!==t&&n.call(v,i)&&(m=v);var g=p.prototype=h.prototype=Object.create(m);function b(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var o;this._invoke=function(i,a){function s(){return new t(function(o,s){!function o(i,a,s,u){var c=l(e[i],e,a);if("throw"!==c.type){var f=c.arg,h=f.value;return h&&"object"===r(h)&&n.call(h,"__await")?t.resolve(h.__await).then(function(e){o("next",e,s,u)},function(e){o("throw",e,s,u)}):t.resolve(h).then(function(e){f.value=e,s(f)},function(e){return o("throw",e,s,u)})}u(c.arg)}(i,a,o,s)})}return o=o?o.then(s,s):s()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);
vendor: 8,120 bytes, line 1
1if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=g.constructor=p,p.constructor=d,d.displayName=u(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,u(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),w.prototype[a]=function(){return this},e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},b(g),u(g,s,"Generator"),g[i]=function(){return this},g.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}("object"===(void 0===t?"undefined":r(t))?t.exports:{});try{regeneratorRuntime=o}catch(e){Function("r","regeneratorRuntime = r")(o)}},{}],493:[function(e,t,n){"use strict";var r=e("buffer").Buffer,o=e("inherits"),i=e("hash-base"),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function d(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function m(e,t,n,r,o,i,a,s){return p(e+(t^n^r)+i+a|0,s)+o|0}function y(e,t,n,r,o,i,a,s){return p(e+(t&n|~t&r)+i+a|0,s)+o|0}function v(e,t,n,r,o,i,a,s){return p(e+((t|~n)^r)+i+a|0,s)+o|0}function g(e,t,n,r,o,i,a,s){return p(e+(t&r|n&~r)+i+a|0,s)+o|0}function b(e,t,n,r,o,i,a,s){return p(e+(t^(n|~r))+i+a|0,s)+o|0}o(d,i),d.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,o=0|this._c,i=0|this._d,d=0|this._e,w=0|this._a,_=0|this._b,k=0|this._c,S=0|this._d,C=0|this._e,E=0;E<80;E+=1){var T,x;E<16?(T=m(n,r,o,i,d,e[s[E]],f[0],c[E]),x=b(w,_,k,S,C,e[u[E]],h[0],l[E])):E<32?(T=y(n,r,o,i,d,e[s[E]],f[1],c[E]),x=g(w,_,k,S,C,e[u[E]],h[1],l[E])):E<48?(T=v(n,r,o,i,d,e[s[E]],f[2],c[E]),x=v(w,_,k,S,C,e[u[E]],h[2],l[E])):E<64?(T=g(n,r,o,i,d,e[s[E]],f[3],c[E]),x=y(w,_,k,S,C,e[u[E]],h[3],l[E])):(T=b(n,r,o,i,d,e[s[E]],f[4],c[E]),x=m(w,_,k,S,C,e[u[E]],h[4],l[E])),n=d,d=i,i=p(o,10),o=r,r=T,w=C,C=S,S=p(k,10),k=_,_=x}var O=this._b+o+S|0;this._b=this._c+i+C|0,this._c=this._d+d+w|0,this._d=this._e+n+_|0,this._e=this._a+r+k|0,this._a=O},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=d},{buffer:216,"hash-base":370,inherits:387}],494:[function(e,t,n){"use strict";var r=e("buffer"),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=r:(i(r,n),n.Buffer=a),i(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:216}],495:[function(e,t,n){(function(n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,i=e("buffer"),a=i.Buffer,s={};for(o in i)i.hasOwnProperty(o)&&"SlowBuffer"!==o&&"Buffer"!==o&&(s[o]=i[o]);var u=s.Buffer={};for(o in a)a.hasOwnProperty(o)&&"allocUnsafe"!==o&&"allocUnsafeSlow"!==o&&(u[o]=a[o]);if(s.Buffer.prototype=a.prototype,u.from&&u.from!==Uint8Array.from||(u.from=function(e,t,n){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+r(e));if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+r(e));return a(e,t,n)}),u.alloc||(u.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+r(e));if(e<0||e>
1=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=a(e);return t&&0!==t.length?"string"==typeof n?o.fill(t,n):o.fill(t):o.fill(0),o}),!s.kStringMaxLength)try{s.kStringMaxLength=n.binding("buffer").kStringMaxLength}catch(e){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),t.exports=s}).call(this,e("_process"))},{_process:467,buffer:216}],496:[function(e,t,n){"use strict";function r(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw i}}}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(n,"__esModule",{value:!0});var u=e("xmlchars/xml/1.0/ed5"),c=e("xmlchars/xml/1.1/ed2"),l=e("xmlchars/xmlns/1.0/ed3"),f=u.isS,h=u.isChar,d=u.isNameStartChar,p=u.isNameChar,m=u.S_LIST,y=u.NAME_RE,v=c.isChar,g=l.isNCNameStartChar,b=l.isNCNameChar,w=l.NC_NAME_RE,_="http://www.w3.org/XML/1998/namespace",k="http://www.w3.org/2000/xmlns/",S={__proto__:null,xml:_,xmlns:k},C={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},E=61,T=63,x=function(e){return 34===e||39===e},O=[34,39],A=[].concat(O,[91,62]),R=[].concat(O,[60,93]),I=[E,T].concat(i(m)),P=[].concat(i(m),[62,38,60]);function M(e,t,n){switch(t){case"xml":n!==_&&e.fail("xml prefix must be bound to ".concat(_,"."));break;case"xmlns":n!==k&&e.fail("xmlns prefix must be bound to ".concat(k,"."))}switch(n){case k:e.fail(""===t?"the default namespace may not be set to ".concat(n,"."):'may not assign a prefix (even "xmlns") to the URI '.concat(k,"."));break;case _:switch(t){case"xml":break;case"":e.fail("the default namespace may not be set to ".concat(n,"."));break;default:e.fail("may not assign the xml namespace to another prefix.")}}}var N=function(e){return w.test(e)},j=function(e){return y.test(e)};n.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];var D={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"},L=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.opt=null!=t?t:{},this.fragmentOpt=!!this.opt.fragment;var n=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,n){this.nameStartCheck=g,this.nameCheck=b,this.isName=N,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},S);var r=this.opt.additionalNamespaces;null!=r&&(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];M(e,o,t[o])}}(this,r),Object.assign(this.ns,r))}else this.nameStartCheck=d,this.nameCheck=p,this.isName=j,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}var t;return(t=[{key:"_init",value:function(){var e;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];var t=this.fragmentOpt;this.state=t?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;var n=this.opt.defaultXMLVersion;if(void 0===n){if(!0===this.opt.forceXMLVersion)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");n="1.0"}this.setXMLVersion(n),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(C),null===(e=this.readyHandler)||void 0===e||e.call(this)}},{key:"on",value:function(e,t){this[D[e]]=t}},{key:"off",value:function(e){this[D[e]]=void 0}},{key:"makeError",value:function(e){var t,n=null!==(t=this.fileName)&&void 0!==t?t:"";return this.trackPosition&&(n.length>0&&(n+=":"),n+="".concat(this.line,":").concat(this.column)),n.length>0&&(n+=": "),new Error(n+e)}},{key:"fail",value:function(e){var t=this.makeError(e),n=this.errorHandler;if(void 0===n)throw t;return n(t),this}},{key:"write",value:function(e){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");var t=!1;null===e?(t=!0,e=""):"object"===o(e)&&(e=e.toString()),void 0!==this.carriedFromPrevious&&(e="".concat(this.carriedFromPrevious).concat(e),this.carriedFromPrevious=void 0);var n=e.length,r=e.charCodeAt(n-1);!t&&(13===r||r>=55296&&r<=56319)&&(this.carriedFromPrevious=e[n-1],n--,e=e.slice(0,n));var i=this.stateTable;for(this.chunk=e,this.i=0;this.i<n;)i[this.state].call(this);return this.chunkPosition+=n,t?this.end():this}},{key:"close",value:function(){return this.write(null)}},{key:"getCode10",value:function(){var e=this.chunk,t=this.i;if(this.prevI=t,this.i=t+1,t>=e.length)return-1;var n=e.charCodeAt(t);if(this.column++,n<55296){if(n>=32||9===n)return n;switch(n){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return 10===e.charCodeAt(t+1)&&(this.i=t+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),n}}if(n>56319)return n>
1=57344&&n<=65533||this.fail("disallowed character."),n;var r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail("disallowed character."),r}},{key:"getCode11",value:function(){var e=this.chunk,t=this.i;if(this.prevI=t,this.i=t+1,t>=e.length)return-1;var n=e.charCodeAt(t);if(this.column++,n<55296){if(n>31&&n<127||n>159&&8232!==n||9===n)return n;switch(n){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:var r=e.charCodeAt(t+1);10!==r&&133!==r||(this.i=t+2);case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),n}}if(n>56319)return n>=57344&&n<=65533||this.fail("disallowed character."),n;var o=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,o>1114111&&this.fail("disallowed character."),o}},{key:"getCodeNorm",value:function(){var e=this.getCode();return-2===e?10:e}},{key:"unget",value:function(){this.i=this.prevI,this.column--}},{key:"captureTo",value:function(e){for(var t=this.i,n=this.chunk;;){var r=this.getCode(),o=-2===r,i=o?10:r;if(-1===i||e.includes(i))return this.text+=n.slice(t,this.prevI),i;o&&(this.text+="".concat(n.slice(t,this.prevI),"\n"),t=this.i)}}},{key:"captureToChar",value:function(e){for(var t=this.i,n=this.chunk;;){var r=this.getCode();switch(r){case-2:this.text+="".concat(n.slice(t,this.prevI),"\n"),t=this.i,r=10;break;case-1:return this.text+=n.slice(t),!1}if(r===e)return this.text+=n.slice(t,this.prevI),!0}}},{key:"captureNameChars",value:function(){for(var e=this.chunk,t=this.i;;){var n=this.getCode();if(-1===n)return this.name+=e.slice(t),-1;if(!p(n))return this.name+=e.slice(t,this.prevI),-2===n?10:n}}},{key:"skipSpaces",value:function(){for(;;){var e=this.getCodeNorm();if(-1===e||!f(e))return e}}},{key:"setXMLVersion",value:function(e){this.currentXMLVersion=e,"1.0"===e?(this.isChar=h,this.getCode=this.getCode10):(this.isChar=v,this.getCode=this.getCode11)}},{key:"sBegin",value:function(){65279===this.chunk.charCodeAt(0)&&(this.i++,this.column++),this.state=1}},{key:"sBeginWhitespace",value:function(){var e=this.i,t=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),t){case 60:if(this.state=15,0!==this.text.length)throw new Error("no-empty text at start");break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}},{key:"sDoctype",value:function(){var e,t=this.captureTo(A);switch(t){case 62:null===(e=this.doctypeHandler)||void 0===e||e.call(this,this.text),this.text="",this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(t),91===t?this.state=4:x(t)&&(this.state=3,this.q=t)}}},{key:"sDoctypeQuote",value:function(){var e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=2)}},{key:"sDTD",value:function(){var e=this.captureTo(R);-1!==e&&(this.text+=String.fromCodePoint(e),93===e?this.state=2:60===e?this.state=6:x(e)&&(this.state=5,this.q=e))}},{key:"sDTDQuoted",value:function(){var e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=4,this.q=null)}},{key:"sDTDOpenWaka",value:function(){var e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case 33:this.state=7,this.openWakaBang="";break;case T:this.state=11;break;default:this.state=4}}},{key:"sDTDOpenWakaBang",value:function(){var e=String.fromCodePoint(this.getCodeNorm()),t=this.openWakaBang+=e;this.text+=e,"-"!==t&&(this.state="--"===t?8:4,this.openWakaBang="")}},{key:"sDTDComment",value:function(){this.captureToChar(45)&&(this.text+="-",this.state=9)}},{key:"sDTDCommentEnding",value:function(){var e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=45===e?10:8}},{key:"sDTDCommentEnded",value:function(){var e=this.getCodeNorm();this.text+=String.fromCodePoint(e),62===e?this.state=4:(this.fail("malformed comment."),this.state=8)}},{key:"sDTDPI",value:function(){this.captureToChar(T)&&(this.text+="?",this.state=12)}},{key:"sDTDPIEnding",value:function(){var e=this.getCodeNorm();this.text+=String.fromCodePoint(e),62===e&&(this.state=4)}},{key:"sText",value:function(){0!==this.tags.length?this.handleTextInRoot():this.handleTextOutsideRoot()}},{key:"sEntity",value:function(){var e=this.i,t=this.chunk;e:for(;;)switch(this.getCode()){case-2:this.entity+="".concat(t.slice(e,this.prevI),"\n"),e=this.i;break;case 59:var n=this.entityReturnState,r=this.entity+t.slice(e,this.prevI);this.state=n;var o=void 0;""===r?(this.fail("empty entity name."),o="&;"):(o=this.parseEntity(r),this.entity=""),13===n&&void 0===this.textHandler||(this.text+=o);break e;case-1:this.entity+=t.slice(e);break e}}},{key:"sOpenWaka",value:function(){var e=this.getCode();if(d(e))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(e){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case T:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=13,this.xmlDeclPossible=!1}}},{key:"sOpenWakaBang",value:function(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}},{key:"sComment",value:function(){this.captureToChar(45)&&(this.state=18)}},{key:"sCommentEnding",value:function(){var e,t=this.getCodeNorm();45===t?(this.state=19,null===(e=this.commentHandler)||void 0===e||e.call(this,this.text),this.text=""):(this.text+="-".concat(String.fromCodePoint(t)),this.state=17)}},{key:"sCommentEnded",value:function(){var e=this.getCodeNorm();62!==e?(this.fail("malformed comment."),this.text+="--".concat(String.fromCodePoint(e)),this.state=17):this.state=13}},{key:"sCData",value:function(){this.captureToChar(93)&&(this.state=21)}},{key:"sCDataEnding",value:function(){var e=this.getCodeNorm();93===e?this.state=22:(this.text+="]".concat(String.fromCodePoint(e)),this.state=20)}},{key:"sCDataEnding2",value:function(){var e,t=this.getCodeNorm();switch(t){case 62:null===(e=this.cdataHandler)||void 0===e||e.call(this,this.text),this.text="",this.state=13;break;case 93:this.text+="]";break;default:this.text+="]]".concat(String.fromCodePoint(t)),this.state=20}}},{key:"sPIFirstChar",value:function(){var e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=24):e===T||f(e)?(this.fail("processing instruction without a target."),this.state=e===T?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(e),this.state=24)}},{key:"sPIRest",value:function(){for(var e=this.chunk,t=this.i;;){var n=this.getCodeNorm();if(-1===n)return void(this.piTarget+=e.slice(t));if(!this.nameCheck(n)){this.piTarget+=e.slice(t,this.prevI);var r=n===T;r||f(n)?"xml"===this.piTarget?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=r?33:27):this.state=r?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(n));break}}}},{key:"sPIBody",value:function(){if(0===this.text.length){var e=this.getCodeNorm();e===T?this.state=26:f(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(T)&&(this.state=26)}},{key:"sPIEnding",value:function(){var e,t=this.getCodeNorm();if(62===t){var n=this.piTarget;"xml"===n.toLowerCase()&&this.fail("the XML declaration must appear at the start of the document."),null===(e=this.piHandler)||void 0===e||e.call(this,{target:n,body:this.text}),this.piTarget=this.text="",this.state=13}else t===T?this.text+="?":(this.text+="?".concat(String.fromCodePoint(t)),this.state=25);this.xmlDeclPossible=!1}},{key:"sXMLDeclNameStart",value:function(){var e=this.skipSpaces();e!==T?-1!==e&&(this.state=28,this.name=String.fromCodePoint(e)):this.state=33}},{key:"sXMLDeclName",value:function(){var e=this.captureTo(I);if(e===T)return this.state=33,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(f(e)||e===E){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail("expected the name ".concat(this.xmlDeclExpects[0],"."));break;default:this.fail("expected one of ".concat(this.xmlDeclExpects.join(", ")))}this.state=e===E?30:29}}},{key:"sXMLDeclEq",value:function(){var e=this.getCodeNorm();if(e===T)return this.state=33,void this.fail("XML declaration is incomplete.");f(e)||(e!==E&&this.fail("value required."),this.state=30)}},{key:"sXMLDeclValueStart",value:function(){var e=this.getCodeNorm();if(e===T)return this.state=33,void this.fail("XML declaration is incomplete.");f(e)||(x(e)?this.q=e:(this.fail("value must be quoted."),this.q=32),this.state=31)}},{key:"sXMLDeclValue",value:function(){var e=this.captureTo([this.q,T]);if(e===T)return this.state=33,this.text="",void this.fail("XML declaration is incomplete.");if(-1!==e){var t=this.text;switch(this.text="",this.name){case"version":this.xmlDeclExpects=["encoding","standalone"];var n=t;this.xmlDecl.version=n,/^1\.[0-9]+$/.test(n)?this.opt.forceXMLVersion||this.setXMLVersion(n):this.fail("version number must match /^1\\.[0-9]+$/.");break;case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(t)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=t;break;case"standalone":"yes"!==t&&"no"!==t&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=t}this.name="",this.state=32}}},{key:"sXMLDeclSeparator",value:function(){var e=this.getCodeNorm();e!==T?(f(e)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=33}},{key:"sXMLDeclEnding",value:function(){var e;62===this.getCodeNorm()?("xml"!==this.piTarget?this.fail("processing instructions are not allowed before root."):"version"!==this.name&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),null===(e=this.xmldeclHandler)||void 0===e||e.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=13):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}},{key:"sOpenTag",value:function(){var e,t=this.captureNameChars();if(-1!==t){var n=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=n.ns=Object.create(null)),null===(e=this.openTagStartHandler)||void 0===e||e.call(this,n),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case 62:this.openTag();break;case 47:this.state=35;break;default:f(t)||this.fail("disallowed character in tag name."),this.state=36}}}},{key:"sOpenTagSlash",value:function(){62===this.getCode()?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}},{key:"sAttrib",value:function(){var e=this.skipSpaces();-1!==e&&(d(e)?(this.unget(),this.state=37):62===e?this.openTag():47===e?this.state=35:this.fail("disallowed character in attribute name."))}},{key:"sAttribName",value:function(){var e=this.captureNameChars();e===E?this.state=39:f(e)?this.state=38:62===e?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):-1!==e&&this.fail("disallowed character in attribute name.")}},{key:"sAttribNameSawWhite",value:function(){var e=this.skipSpaces();switch(e){case-1:return;case E:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",62===e?this.openTag():d(e)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}},{key:"sAttribValue",value:function(){var e=this.getCodeNorm();x(e)?(this.q=e,this.state=40):f(e)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}},{key:"sAttribValueQuoted",value:function(){for(var e=this.q,t=this.chunk,n=this.i;;)switch(this.getCode()){case e:return this.pushAttrib(this.name,this.text+t.slice(n,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=t.slice(n,this.prevI),this.state=14,void(this.entityReturnState=40);case 10:case-2:case 9:this.text+="".concat(t.slice(n,this.prevI)," "),n=this.i;break;case 60:return this.text+=t.slice(n,this.prevI),void this.fail("disallowed character.");case-1:return void(this.text+=t.slice(n))}}},{key:"sAttribValueClosed",value:function(){var e=this.getCodeNorm();f(e)?this.state=36:62===e?this.openTag():47===e?this.state=35:d(e)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}},{key:"sAttribValueUnquoted",value:function(){var e=this.captureTo(P);switch(e){case 38:this.state=14,this.entityReturnState=42;break;case 60:this.fail("disallowed character.");break;case-1:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",62===e?this.openTag():this.state=36}}},{key:"sCloseTag",value:function(){var e=this.captureNameChars();62===e?this.closeTag():f(e)?this.state=44:-1!==e&&this.fail("disallowed character in closing tag.")}},{key:"sCloseTagSawWhite",value:function(){switch(this.skipSpaces()){case 62:this.closeTag();break;case-1:break;default:this.fail("disallowed character in closing tag.")}}},{key:"handleTextInRoot",value:function(){var e=this.i,t=this.forbiddenState,n=this.chunk,r=this.textHandler;e:for(;;)switch(this.getCode()){case 60:if(this.state=15,void 0!==r){var o=this.text,i=n.slice(e,this.prevI);0!==o.length?(r(o+i),this.text=""):0!==i.length&&r(i)}t=0;break e;case 38:this.state=14,this.entityReturnState=13,void 0!==r&&(this.text+=n.slice(e,this.prevI)),t=0;break e;case 93:switch(t){case 0:t=1;break;case 1:t=2;break;case 2:break;default:throw new Error("impossible state")}break;case 62:2===t&&this.fail('the string "]]>" is disallowed in char data.'),t=0;break;case-2:void 0!==r&&(this.text+="".concat(n.slice(e,this.prevI),"\n")),e=this.i,t=0;break;case-1:void 0!==r&&(this.text+=n.slice(e));break e;default:t=0}this.forbiddenState=t}},{key:"handleTextOutsideRoot",value:function(){var e=this.i,t=this.chunk,n=this.textHandler,r=!1;e:for(;;){var o=this.getCode();switch(o){case 60:if(this.state=15,void 0!==n){var i=this.text,a=t.slice(e,this.prevI);0!==i.length?(n(i+a),this.text=""):0!==a.length&&n(a)}break e;case 38:this.state=14,this.entityReturnState=13,void 0!==n&&(this.text+=t.slice(e,this.prevI)),r=!0;break e;case-2:void 0!==n&&(this.text+="".concat(t.slice(e,this.prevI),"\n")),e=this.i;break;case-1:void 0!==n&&(this.text+=t.slice(e));break e;default:f(o)||(r=!0)}}r&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}},{key:"pushAttribNS",value:function(e,t){var n,r=this.qname(e),o=r.prefix,i=r.local,a={name:e,prefix:o,local:i,value:t};if(this.attribList.push(a),null===(n=this.attributeHandler)||void 0===n||n.call(this,a),"xmlns"===o){var s=t.trim();"1.0"===this.currentXMLVersion&&""===s&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[i]=s,M(this,i,s)}else if("xmlns"===e){var u=t.trim();this.topNS[""]=u,M(this,"",u)}}},{key:"pushAttribPlain",value:function(e,t){var n,r={name:e,value:t};this.attribList.push(r),null===(n=this.attributeHandler)||void 0===n||n.call(this,r)}},{key:"end",value:function(){var e,t;this.sawRoot||this.fail("document must contain a root element.");for(var n=this.tags;n.length>0;){var r=n.pop();this.fail("unclosed tag: ".concat(r.name))}0!==this.state&&13!==this.state&&this.fail("unexpected end.");var o=this.text;re
vendor: 9,037 bytes, line 1
1turn 0!==o.length&&(null===(e=this.textHandler)||void 0===e||e.call(this,o),this.text=""),this._closed=!0,null===(t=this.endHandler)||void 0===t||t.call(this),this._init(),this}},{key:"resolve",value:function(e){var t,n,r=this.topNS[e];if(void 0!==r)return r;for(var o=this.tags,i=o.length-1;i>=0;i--)if(void 0!==(r=o[i].ns[e]))return r;return void 0!==(r=this.ns[e])?r:null===(n=(t=this.opt).resolvePrefix)||void 0===n?void 0:n.call(t,e)}},{key:"qname",value:function(e){var t=e.indexOf(":");if(-1===t)return{prefix:"",local:e};var n=e.slice(t+1),r=e.slice(0,t);return(""===r||""===n||n.includes(":"))&&this.fail("malformed name: ".concat(e,".")),{prefix:r,local:n}}},{key:"processAttribsNS",value:function(){var e,t=this.attribList,n=this.tag,o=this.qname(n.name),i=o.prefix,a=o.local;n.prefix=i,n.local=a;var s=n.uri=null!==(e=this.resolve(i))&&void 0!==e?e:"";if(""!==i&&("xmlns"===i&&this.fail('tags may not have "xmlns" as prefix.'),""===s&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(i),".")),n.uri=i)),0!==t.length){var u,c=n.attributes,l=new Set,f=r(t);try{for(f.s();!(u=f.n()).done;){var h=u.value,d=h.name,p=h.prefix,m=h.local,y=void 0,v=void 0;""===p?(y="xmlns"===d?k:"",v=d):(void 0===(y=this.resolve(p))&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(p),".")),y=p),v="{".concat(y,"}").concat(m)),l.has(v)&&this.fail("duplicate attribute: ".concat(v,".")),l.add(v),h.uri=y,c[d]=h}}catch(e){f.e(e)}finally{f.f()}this.attribList=[]}}},{key:"processAttribsPlain",value:function(){var e,t=this.tag.attributes,n=r(this.attribList);try{for(n.s();!(e=n.n()).done;){var o=e.value,i=o.name,a=o.value;void 0!==t[i]&&this.fail("duplicate attribute: ".concat(i,".")),t[i]=a}}catch(e){n.e(e)}finally{n.f()}this.attribList=[]}},{key:"openTag",value:function(){var e;this.processAttribs();var t=this.tags,n=this.tag;n.isSelfClosing=!1,null===(e=this.openTagHandler)||void 0===e||e.call(this,n),t.push(n),this.state=13,this.name=""}},{key:"openSelfClosingTag",value:function(){var e,t,n;this.processAttribs();var r=this.tags,o=this.tag;o.isSelfClosing=!0,null===(e=this.openTagHandler)||void 0===e||e.call(this,o),null===(t=this.closeTagHandler)||void 0===t||t.call(this,o),null===(this.tag=null!==(n=r[r.length-1])&&void 0!==n?n:null)&&(this.closedRoot=!0),this.state=13,this.name=""}},{key:"closeTag",value:function(){var e=this.tags,t=this.name;if(this.state=13,this.name="",""===t)return this.fail("weird empty close tag."),void(this.text+="</>");for(var n=this.closeTagHandler,r=e.length;r-- >0;){var o=this.tag=e.pop();if(this.topNS=o.ns,null==n||n(o),o.name===t)break;this.fail("unexpected close tag.")}0===r?this.closedRoot=!0:r<0&&(this.fail("unmatched closing tag: ".concat(t,".")),this.text+="</".concat(t,">"))}},{key:"parseEntity",value:function(e){if("#"!==e[0]){var t=this.ENTITIES[e];return void 0!==t?t:(this.fail(this.isName(e)?"undefined entity.":"disallowed character in entity name."),"&".concat(e,";"))}var n=NaN;return"x"===e[1]&&/^#x[0-9a-f]+$/i.test(e)?n=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(n=parseInt(e.slice(1),10)),this.isChar(n)?String.fromCodePoint(n):(this.fail("malformed character entity."),"&".concat(e,";"))}},{key:"closed",get:function(){return this._closed}},{key:"position",get:function(){return this.chunkPosition+this.i}},{key:"columnIndex",get:function(){return this.position-this.positionAtNewLine}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();n.SaxesParser=L},{"xmlchars/xml/1.0/ed5":541,"xmlchars/xml/1.1/ed2":542,"xmlchars/xmlns/1.0/ed3":543}],497:[function(e,t,n){(function(e){"use strict";t.exports="function"==typeof e?e:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}}).call(this,e("timers").setImmediate)},{timers:521}],498:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer;function o(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}o.prototype.update=function(e,t){"string"==typeof e&&(e=r.from(e,t=t||"utf8"));for(var n=this._block,o=this._blockSize,i=e.length,a=this._len,s=0;s<i;){for(var u=a%o,c=Math.min(i-s,o-u),l=0;l<c;l++)n[u+l]=e[s+l];s+=c,(a+=c)%o==0&&this._update(n)}return this._len+=i,this},o.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0;this._block.writeUInt32BE((n-r)/4294967296,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=o},{"safe-buffer":494}],499:[function(e,t,n){"use strict";var r=t.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};r.sha=e("./sha"),r.sha1=e("./sha1"),r.sha224=e("./sha224"),r.sha256=e("./sha256"),r.sha384=e("./sha384"),r.sha512=e("./sha512")},{"./sha":500,"./sha1":501,"./sha224":502,"./sha256":503,"./sha384":504,"./sha512":505}],500:[function(e,t,n){"use strict";var r=e("inherits"),o=e("./hash"),i=e("safe-buffer").Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,o.call(this,64,56)}function c(e){return e<<30|e>>>2}function l(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(u,o),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,s=0|this._d,u=0|this._e,f=0;f<16;++f)n[f]=e.readInt32BE(4*f);for(;f<80;++f)n[f]=n[f-3]^n[f-8]^n[f-14]^n[f-16];for(var h=0;h<80;++h){var d=~~(h/20),p=0|((t=r)<<5|t>>>27)+l(d,o,i,s)+u+n[h]+a[d];u=s,s=i,i=c(o),o=r,r=p}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=u},{"./hash":498,inherits:387,"safe-buffer":494}],501:[function(e,t,n){"use strict";var r=e("inherits"),o=e("./hash"),i=e("safe-buffer").Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,o.call(this,64,56)}function c(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function f(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(u,o),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)n[h]=e.readInt32BE(4*h);for(;h<80;++h)n[h]=(t=n[h-3]^n[h-8]^n[h-14]^n[h-16])<<1|t>>>31;for(var d=0;d<80;++d){var p=~~(d/20),m=c(r)+f(p,o,i,s)+u+n[d]+a[p]|0;u=s,s=i,i=l(o),o=r,r=m}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=u},{"./hash":498,inherits:387,"safe-buffer":494}],502:[function(e,t,n){"use strict";var r=e("inherits"),o=e("./sha256"),i=e("./hash"),a=e("safe-buffer").Buffer,s=new Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}r(u,o),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=u},{"./hash":498,"./sha256":503,inherits:387,"safe-buffer":494}],503:[function(e,t,n){"use strict";var r=e("inherits"),o=e("./hash"),i=e("safe-buffer").Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
vendor: 8,154 bytes, line 1
1734187,3204031479,3329325298],s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}function c(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(u,o),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,m=0|this._g,y=0|this._h,v=0;v<16;++v)n[v]=e.readInt32BE(4*v);for(;v<64;++v)n[v]=0|(((t=n[v-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[v-7]+d(n[v-15])+n[v-16];for(var g=0;g<64;++g){var b=y+h(u)+c(u,p,m)+a[g]+n[g]|0,w=f(r)+l(r,o,i)|0;y=m,m=p,p=u,u=s+b|0,s=i,i=o,o=r,r=b+w|0}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=y+this._h|0},u.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=u},{"./hash":498,inherits:387,"safe-buffer":494}],504:[function(e,t,n){"use strict";var r=e("inherits"),o=e("./sha512"),i=e("./hash"),a=e("safe-buffer").Buffer,s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}r(u,o),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=u},{"./hash":498,"./sha512":505,inherits:387,"safe-buffer":494}],505:[function(e,t,n){"use strict";var r=e("inherits"),o=e("./hash"),i=e("safe-buffer").Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}function c(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return e>>>0<t>>>0?1:0}r(u,o),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,o=0|this._ch,i=0|this._dh,s=0|this._eh,u=0|this._fh,g=0|this._gh,b=0|this._hh,w=0|this._al,_=0|this._bl,k=0|this._cl,S=0|this._dl,C=0|this._el,E=0|this._fl,T=0|this._gl,x=0|this._hl,O=0;O<32;O+=2)t[O]=e.readInt32BE(4*O),t[O+1]=e.readInt32BE(4*O+4);for(;O<160;O+=2){var A=t[O-30],R=t[O-30+1],I=d(A,R),P=p(R,A),M=m(A=t[O-4],R=t[O-4+1]),N=y(R,A),j=t[O-32],D=t[O-32+1],L=P+t[O-14+1]|0,F=I+t[O-14]+v(L,P)|0;F=(F=F+M+v(L=L+N|0,N)|0)+j+v(L=L+D|0,D)|0,t[O]=F,t[O+1]=L}for(var B=0;B<160;B+=2){F=t[B],L=t[B+1];var U=l(n,r,o),q=l(w,_,k),H=f(n,w),z=f(w,n),G=h(s,C),V=h(C,s),$=a[B],K=a[B+1],Y=c(s,u,g),W=c(C,E,T),X=x+V|0,Z=b+G+v(X,x)|0;Z=(Z=(Z=Z+Y+v(X=X+W|0,W)|0)+$+v(X=X+K|0,K)|0)+F+v(X=X+L|0,L)|0;var J=z+q|0,Q=H+U+v(J,z)|0;b=g,x=T,g=u,T=E,u=s,E=C,s=i+Z+v(C=S+X|0,S)|0,i=o,S=k,o=r,k=_,r=n,_=w,n=Z+Q+v(w=X+J|0,X)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+k|0,this._dl=this._dl+S|0,this._el=this._el+C|0,this._fl=this._fl+E|0,this._gl=this._gl+T|0,this._hl=this._hl+x|0,this._ah=this._ah+n+v(this._al,w)|0,this._bh=this._bh+r+v(this._bl,_)|0,this._ch=this._ch+o+v(this._cl,k)|0,this._dh=this._dh+i+v(this._dl,S)|0,this._eh=this._eh+s+v(this._el,C)|0,this._fh=this._fh+u+v(this._fl,E)|0,this._gh=this._gh+g+v(this._gl,T)|0,this._hh=this._hh+b+v(this._hl,x)|0},u.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=u},{"./hash":498,inherits:387,"safe-buffer":494}],506:[function(e,t,n){"use strict";t.exports=o;var r=e("events").EventEmitter;function o(){r.call(this)}e("inherits")(o,r),o.Readable=e("readable-stream/readable.js"),o.Writable=e("readable-stream/writable.js"),o.Duplex=e("readable-stream/duplex.js"),o.Transform=e("readable-stream/transform.js"),o.PassThrough=e("readable-stream/passthrough.js"),o.Stream=o,o.prototype.pipe=function(e,t){var n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(l(),0===r.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",o),e.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",u),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",c),e.on("error",c),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e}},{events:367,inherits:387,"readable-stream/duplex.js":507,"readable-stream/passthrough.js":516,"readable-stream/readable.js":517,"readable-stream/transform.js":518,"readable-stream/writable.js":519}],507:[function(e,t,n){"use strict";
vendor: 10,132 bytes, line 1
1t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(e,t,n){"use strict";var r=e("process-nextick-args"),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=f;var i=Object.create(e("core-util-is"));i.inherits=e("inherits");var a=e("./_stream_readable"),s=e("./_stream_writable");i.inherits(f,a);for(var u=o(s.prototype),c=0;c<u.length;c++){var l=u[c];f.prototype[l]||(f.prototype[l]=s.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":328,inherits:387,"process-nextick-args":466}],509:[function(e,t,n){"use strict";t.exports=i;var r=e("./_stream_transform"),o=Object.create(e("core-util-is"));function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}o.inherits=e("inherits"),o.inherits(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":511,"core-util-is":328,inherits:387}],510:[function(e,t,n){(function(n,r){"use strict";var o=e("process-nextick-args");t.exports=b;var i,a=e("isarray");b.ReadableState=g,e("events");var s=function(e,t){return e.listeners(t).length},u=e("./internal/streams/stream"),c=e("safe-buffer").Buffer,l=r.Uint8Array||function(){},f=Object.create(e("core-util-is"));f.inherits=e("inherits");var h=e("util"),d=void 0;d=h&&h.debuglog?h.debuglog("stream"):function(){};var p,m=e("./internal/streams/BufferList"),y=e("./internal/streams/destroy");f.inherits(b,u);var v=["error","close","destroy","pause","resume"];function g(t,n){t=t||{};var r=n instanceof(i=i||e("./_stream_duplex"));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var o=t.highWaterMark,a=t.readableHighWaterMark;this.highWaterMark=o||0===o?o:r&&(a||0===a)?a:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function b(t){if(i=i||e("./_stream_duplex"),!(this instanceof b))return new b(t);this._readableState=new g(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function w(e,t,n,r,o){var i,a=e._readableState;return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,S(e)}}(e,a)):(o||(i=function(e,t){var n,r;return c.isBuffer(r=t)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(a,t)),i?e.emit("error",i):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):E(e,a)):_(e,a,t,!1))):r||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function _(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&S(e)),E(e,t)}function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(C,e):C(e))}function C(e){d("emit readable"),e.emit("readable"),A(e)}function E(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(T,e,t))}function T(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function x(e){d("readable nexttick read 0"),e.read(0)}function O(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),A(e),t.flowing&&!t.reading&&e.read(0)}function A(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function R(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,o=n.data;for(e-=o.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(o+=a===i.length?i:i.slice(0,e),0==(e-=a)){a===i.length?(++r,t.head=n.next?n.next:t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,o=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),0==(e-=a)){a===i.length?(++o,t.head=r.next?r.next:t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function I(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(P,t,e))}function P(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function M(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=y.destroy,b.prototype._undestroy=y.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),w(this,e,t,!1,n)},b.prototype.unshift=function(e){return w(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(t){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this},b.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):S(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&I(this),null;var r,o=t.needReadable;return d("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",o=!0),t.ended||t.reading?d("reading or ended",o=!1):o&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),null===(r=e>0?R(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&I(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,d("pipe count=%d opts=%j",i.pipesCount,t);var u=t&&!1===t.end||e===n.stdout||e===n.stderr?g:c;function c(){d("onend"),e.end()}i.endEmitted?o.nextTick(u):r.once("end",u),e.on("unpipe",function t(n,o){d("onunpipe"),n===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,d("cleanup"),e.removeListener("close",y),e.removeListener("finish",v),e.removeListener("drain",l),e.removeListener("error",m),e.removeListener("unpipe",t),r.removeListener("end",c),r.removeListener("end",g),r.removeListener("data",p),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())});var l=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,A(e))}}(r);e.on("drain",l);var f=!1,h=!1;function p(t){d("ondata"),h=!1,!1!==e.write(t)||h||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==M(i.pipes,e))&&!f&&(d("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,h=!0),r.pause())}function m(t){d("onerror",t),g(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",v),g()}function v(){d("onfinish"),e.removeListener("close",y),g()}function g(){d("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,n){if("function"==typeof e.prependListener)return e.prepe
vendor: 9,863 bytes, line 1
1ndListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",y),e.once("finish",v),e.emit("pipe",r),i.flowing||(d("pipe resume"),r.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,n);return this}var a=M(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},b.prototype.addListener=b.prototype.on=function(e,t){var n=u.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&S(this):o.nextTick(x,this))}return n},b.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(O,e,t))}(this,e)),this},b.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var o in e.on("end",function(){if(d("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){d("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o||(n.objectMode||o&&o.length)&&(t.push(o)||(r=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<v.length;i++)e.on(v[i],this.emit.bind(this,v[i]));return this._read=function(t){d("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=R}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":328,events:367,inherits:387,isarray:389,"process-nextick-args":466,"safe-buffer":494,"string_decoder/":520,util:185}],511:[function(e,t,n){"use strict";t.exports=a;var r=e("./_stream_duplex"),o=Object.create(e("core-util-is"));function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush(function(t,n){u(e,t,n)}):u(this,null,null)}function u(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}o.inherits=e("inherits"),o.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},{"./_stream_duplex":508,"core-util-is":328,inherits:387}],512:[function(e,t,n){(function(n,r,o){"use strict";var i=e("process-nextick-args");function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var o=r.callback;t.pendingcb--,o(void 0),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}t.exports=g;var s,u=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?o:i.nextTick;g.WritableState=v;var c=Object.create(e("core-util-is"));c.inherits=e("inherits");var l,f={deprecate:e("util-deprecate")},h=e("./internal/streams/stream"),d=e("safe-buffer").Buffer,p=r.Uint8Array||function(){},m=e("./internal/streams/destroy");function y(){}function v(t,n){s=s||e("./_stream_duplex");var r=n instanceof s;this.objectMode=!!(t=t||{}).objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var o=t.highWaterMark,c=t.writableHighWaterMark;this.highWaterMark=o||0===o?o:r&&(c||0===c)?c:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===t.decodeStrings),this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(C,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),C(e,t))}(e,n,r,t,o);else{var a=k(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||_(e,n),r?u(w,e,n,a,o):w(e,n,a,o)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function g(t){if(s=s||e("./_stream_duplex"),!(l.call(g,this)||this instanceof s))return new g(t);this._writableState=new v(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),h.call(this)}function b(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function w(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),C(e,t)}function _(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=new Array(t.bufferedRequestCount),o=t.corkedRequestsFree;o.entry=n;for(var i=0,s=!0;n;)r[i]=n,n.isBuf||(s=!1),n=n.next,i+=1;r.allBuffers=s,b(e,t,!0,t.length,r,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk;if(b(e,t,!1,t.objectMode?1:u.length,u,n.encoding,n.callback),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),C(e,t)})}function C(e,t){var n=k(t);return n&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(S,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(g,h),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:f.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===g&&e&&e._writableState instanceof v}})):l=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,s=!o.objectMode&&(d.isBuffer(r=e)||r instanceof p);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=y),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}
1(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,o,i){if(!n){var a=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,n)),t}(t,r,o);r!==a&&(n=!0,o="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,r,o,i);return u}(this,o,s,e,t,n)),a},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e))},g.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,C(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=m.destroy,g.prototype._undestroy=m.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":328,inherits:387,"process-nextick-args":466,"safe-buffer":494,timers:521,"util-deprecate":522}],513:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,o=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t=r.allocUnsafe(e>>>0),n=this.head,o=0;n;)n.data.copy(t,o),o+=n.data.length,n=n.next;return t},e}(),o&&o.inspect&&o.inspect.custom&&(t.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":494,util:185}],514:[function(e,t,n){"use strict";var r=e("process-nextick-args");function o(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var n=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(o,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(r.nextTick(o,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":466}],515:[function(e,t,n){arguments[4][490][0].apply(n,arguments)},{dup:490,events:367}],516:[function(e,t,n){"use strict";
vendor: 5,243 bytes, line 1
1t.exports=e("./readable").PassThrough},{"./readable":517}],517:[function(e,t,n){"use strict";(n=t.exports=e("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":508,"./lib/_stream_passthrough.js":509,"./lib/_stream_readable.js":510,"./lib/_stream_transform.js":511,"./lib/_stream_writable.js":512}],518:[function(e,t,n){"use strict";t.exports=e("./readable").Transform},{"./readable":517}],519:[function(e,t,n){"use strict";t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}n.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\ufffd":t},i.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var o=a(t[r]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--r<n||-2===o?0:(o=a(t[r]))>=0?(o>0&&(e.lastNeed=o-2),o):--r<n||-2===o?0:(o=a(t[r]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":494}],521:[function(e,t,n){(function(t,r){"use strict";var o=e("process/browser.js").nextTick,i=Function.prototype.apply,a=Array.prototype.slice,s={},u=0;function c(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new c(i.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new c(i.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n.setImmediate="function"==typeof t?t:function(e){var t=u++,r=!(arguments.length<2)&&a.call(arguments,1
1);return s[t]=!0,o(function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))}),t},n.clearImmediate="function"==typeof r?r:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":467,timers:521}],522:[function(e,t,n){(function(e){"use strict";function n(t){try{if(!e.localStorage)return!1}catch(e){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],523:[function(e,t,n){"use strict";t.exports="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],524:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.exports=function(e){return e&&"object"===r(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],525:[function(e,t,n){(function(t,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=/%[sdj%]/g;n.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n<o;s=r[++n])y(s)||!_(s)?a+=" "+s:a+=" "+u(s);return a},n.deprecate=function(e,o){if(b(r.process))return function(){return n.deprecate(e,o).apply(this,arguments)};if(!0===t.noDeprecation)return e;var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(o);t.traceDeprecation?console.trace(o):console.error(o),i=!0}return e.apply(this,arguments)}};var a,s={};function u(e,t){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(t)?r.showHidden=t:t&&n._extend(r,t),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),f(r,e,r.depth)}function c(e,t){var n=u.styles[t];return n?"\x1b["+u.colors[n][0]+"m"+e+"\x1b["+u.colors[n][1]+"m":e}function l(e,t){return e}function f(e,t,r){if(e.customInspect&&t&&C(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(r,e);return g(o)||(o=f(e,o,r)),o}var i=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,t);if(i)return i;var a=Object.keys(t),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),S(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(t);if(0===a.length){if(C(t))return e.stylize("[Function"+(t.name?": "+t.name:"")+"]","special");if(w(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(k(t))return e.stylize(Date.prototype.toString.call(t),"date");if(S(t))return h(t)}var u,c="",l=!1,_=["{","}"];return p(t)&&(l=!0,_=["[","]"]),C(t)&&(c=" [Function"+(t.name?": "+t.name:"")+"]"),w(t)&&(c=" "+RegExp.prototype.toString.call(t)),k(t)&&(c=" "+Date.prototype.toUTCString.call(t)),S(t)&&(c=" "+h(t)),0!==a.length||l&&0!=t.length?r<0?w(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=l?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)A(t,String(a))?i.push(d(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(d(e,t,n,r,o,!0))}),i}(e,t,r,s,a):a.map(function(n){return d(e,t,r,s,n,l)}),e.seen.pop(),function(e,t,n){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,c,_)):_[0]+c+_[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=e.stylize(u.set?"[Getter/Setter]":"[Getter]","special"):u.set&&(s=e.stylize("[
1Setter]","special")),A(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(u.value)<0?(s=y(n)?f(e,u.value,null):f(e,u.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function g(e){return"string"==typeof e}function b(e){return void 0===e}function w(e){return _(e)&&"[object RegExp]"===E(e)}function _(e){return"object"===o(e)&&null!==e}function k(e){return _(e)&&"[object Date]"===E(e)}function S(e){return _(e)&&("[object Error]"===E(e)||e instanceof Error)}function C(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(b(a)&&(a=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(a)){var r=t.pid;s[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else s[e]=function(){};return s[e]},n.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=p,n.isBoolean=m,n.isNull=y,n.isNullOrUndefined=function(e){return null==e},n.isNumber=v,n.isString=g,n.isSymbol=function(e){return"symbol"===o(e)},n.isUndefined=b,n.isRegExp=w,n.isObject=_,n.isDate=k,n.isError=S,n.isFunction=C,n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===o(e)||void 0===e},n.isBuffer=e("./support/isBuffer");var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),x[e.getMonth()],t].join(" ")}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){console.log("%s - %s",O(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!_(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":524,_process:467,inherits:523}],526:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"version",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return f.default}});var r=h(e("./v1.js")),o=h(e("./v3.js")),i=h(e("./v4.js")),a=h(e("./v5.js")),s=h(e("./nil.js")),u=h(e("./version.js")),c=h(e("./validate.js")),l=h(e("./stringify.js")),f=h(e("./parse.js"));function h(e){return e&&e.__esModule?e:{default:e}}},{"./nil.js":528,"./parse.js":529,"./stringify.js":533,"./v1.js":534,"./v3.js":535,"./v4.js":537,"./v5.js":538,"./validate.js":539,"./version.js":540}],527:[function(e,t,n){"use strict";function r(e){return 14+(e+64>>>9<<4)+1}function o(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,r,i,a){return o((s=o(o(t,e),o(r,a)))<<(u=i)|s>>>32-u,n);var s,u}function a(e,t,n,r,o,a,s){return i(t&n|~t&r,e,t,o,a,s)}function s(e,t,n,r,o,a,s){return i(t&r|n&~r,e,t,o,a,s)}function u(e,t,n,r,o,a,s){return i(t^n^r,e,t,o,a,s)}function c(e,t,n,r,o,a,s){return i(n^(t|~r),e,t,o,a,s)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,i=parseInt("0123456789abcdef".charAt(o>>>4&15)+"0123456789abcdef".charAt(15&o),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[r(t)-1]=t;
1for(var n=1732584193,i=-271733879,l=-1732584194,f=271733878,h=0;h<e.length;h+=16){var d=n,p=i,m=l,y=f;n=a(n,i,l,f,e[h],7,-680876936),f=a(f,n,i,l,e[h+1],12,-389564586),l=a(l,f,n,i,e[h+2],17,606105819),i=a(i,l,f,n,e[h+3],22,-1044525330),n=a(n,i,l,f,e[h+4],7,-176418897),f=a(f,n,i,l,e[h+5],12,1200080426),l=a(l,f,n,i,e[h+6],17,-1473231341),i=a(i,l,f,n,e[h+7],22,-45705983),n=a(n,i,l,f,e[h+8],7,1770035416),f=a(f,n,i,l,e[h+9],12,-1958414417),l=a(l,f,n,i,e[h+10],17,-42063),i=a(i,l,f,n,e[h+11],22,-1990404162),n=a(n,i,l,f,e[h+12],7,1804603682),f=a(f,n,i,l,e[h+13],12,-40341101),l=a(l,f,n,i,e[h+14],17,-1502002290),n=s(n,i=a(i,l,f,n,e[h+15],22,1236535329),l,f,e[h+1],5,-165796510),f=s(f,n,i,l,e[h+6],9,-1069501632),l=s(l,f,n,i,e[h+11],14,643717713),i=s(i,l,f,n,e[h],20,-373897302),n=s(n,i,l,f,e[h+5],5,-701558691),f=s(f,n,i,l,e[h+10],9,38016083),l=s(l,f,n,i,e[h+15],14,-660478335),i=s(i,l,f,n,e[h+4],20,-405537848),n=s(n,i,l,f,e[h+9],5,568446438),f=s(f,n,i,l,e[h+14],9,-1019803690),l=s(l,f,n,i,e[h+3],14,-187363961),i=s(i,l,f,n,e[h+8],20,1163531501),n=s(n,i,l,f,e[h+13],5,-1444681467),f=s(f,n,i,l,e[h+2],9,-51403784),l=s(l,f,n,i,e[h+7],14,1735328473),n=u(n,i=s(i,l,f,n,e[h+12],20,-1926607734),l,f,e[h+5],4,-378558),f=u(f,n,i,l,e[h+8],11,-2022574463),l=u(l,f,n,i,e[h+11],16,1839030562),i=u(i,l,f,n,e[h+14],23,-35309556),n=u(n,i,l,f,e[h+1],4,-1530992060),f=u(f,n,i,l,e[h+4],11,1272893353),l=u(l,f,n,i,e[h+7],16,-155497632),i=u(i,l,f,n,e[h+10],23,-1094730640),n=u(n,i,l,f,e[h+13],4,681279174),f=u(f,n,i,l,e[h],11,-358537222),l=u(l,f,n,i,e[h+3],16,-722521979),i=u(i,l,f,n,e[h+6],23,76029189),n=u(n,i,l,f,e[h+9],4,-640364487),f=u(f,n,i,l,e[h+12],11,-421815835),l=u(l,f,n,i,e[h+15],16,530742520),n=c(n,i=u(i,l,f,n,e[h+2],23,-995338651),l,f,e[h],6,-198630844),f=c(f,n,i,l,e[h+7],10,1126891415),l=c(l,f,n,i,e[h+14],15,-1416354905),i=c(i,l,f,n,e[h+5],21,-57434055),n=c(n,i,l,f,e[h+12],6,1700485571),f=c(f,n,i,l,e[h+3],10,-1894986606),l=c(l,f,n,i,e[h+10],15,-1051523),i=c(i,l,f,n,e[h+1],21,-2054922799),n=c(n,i,l,f,e[h+8],6,1873313359),f=c(f,n,i,l,e[h+15],10,-30611744),l=c(l,f,n,i,e[h+6],15,-1560198380),i=c(i,l,f,n,e[h+13],21,1309151649),n=c(n,i,l,f,e[h+4],6,-145523070),f=c(f,n,i,l,e[h+11],10,-1120210379),l=c(l,f,n,i,e[h+2],15,718787259),i=c(i,l,f,n,e[h+9],21,-343485551),n=o(n,d),i=o(i,p),l=o(l,m),f=o(f,y)}return[n,i,l,f]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(r(t)),o=0;o<t;o+=8)n[o>>5]|=(255&e[o/8])<<o%32;return n}(e),8*e.length))}},{}],528:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default="00000000-0000-0000-0000-000000000000"},{}],529:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e("./validate.js"))&&r.__esModule?r:{default:r};n.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},{"./validate.js":539}],530:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{}],531:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)};var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),o=new Uint8Array(16)},{}],532:[function(e,t,n){"use strict";function r(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function o(e,t){return e<<t|e>>>32-t}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var a=0;a<i.length;++a)e.push(i.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=Math.ceil((e.length/4+2)/16),u=new Array(s),c=0;c<s;++c){for(var l=new Uint32Array(16),f=0;f<16;++f)l[f]=e[64*c+4*f]<<24|e[64*c+4*f+1]<<16|e[64*c+4*f+2]<<8|e[64*c+4*f+3];u[c]=l}u[s-1][14]=8*(e.length-1)/Math.pow(2,32),u[s-1][14]=Math.floor(u[s-1][14]),u[s-1][15]=8*(e.length-1)&4294967295;for(var h=0;h<s;++h){for(var d=new Uint32Array(80),p=0;p<16;++p)d[p]=u[h][p];for(var m=16;m<80;++m)d[m]=o(d[m-3]^d[m-8]^d[m-14]^d[m-16],1);for(var y=n[0],v=n[1],g=n[2],b=n[3],w=n[4],_=0;_<80;++_){var k=Math.floor(_/20),S=o(y,5)+r(k,v,g,b)+w+t[k]+d[_]>>>0;w=b,b=g,g=o(v,30)>>>0,v=y,y=S}n[0]=n[0]+y>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+b>>>0,n[4]=n[4]+w>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>
1>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}},{}],533:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;for(var r,o=(r=e("./validate.js"))&&r.__esModule?r:{default:r},i=[],a=0;a<256;++a)i.push((a+256).toString(16).substr(1));n.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,o.default)(n))throw TypeError("Stringified UUID is invalid");return n}},{"./validate.js":539}],534:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o,i=s(e("./rng.js")),a=s(e("./stringify.js"));function s(e){return e&&e.__esModule?e:{default:e}}var u=0,c=0;n.default=function(e,t,n){var s=t&&n||0,l=t||new Array(16),f=(e=e||{}).node||r,h=void 0!==e.clockseq?e.clockseq:o;if(null==f||null==h){var d=e.random||(e.rng||i.default)();null==f&&(f=r=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==h&&(h=o=16383&(d[6]<<8|d[7]))}var p=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:c+1,y=p-u+(m-c)/1e4;if(y<0&&void 0===e.clockseq&&(h=h+1&16383),(y<0||p>u)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=p,c=m,o=h;var v=(1e4*(268435455&(p+=122192928e5))+m)%4294967296;l[s++]=v>>>24&255,l[s++]=v>>>16&255,l[s++]=v>>>8&255,l[s++]=255&v;var g=p/4294967296*1e4&268435455;l[s++]=g>>>8&255,l[s++]=255&g,l[s++]=g>>>24&15|16,l[s++]=g>>>16&255,l[s++]=h>>>8|128,l[s++]=255&h;for(var b=0;b<6;++b)l[s+b]=f[b];return t||(0,a.default)(l)}},{"./rng.js":531,"./stringify.js":533}],535:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(e("./v35.js")),o=i(e("./md5.js"));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v3",48,o.default);n.default=a},{"./md5.js":527,"./v35.js":536}],536:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,n){function i(e,i,a,s){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof i&&(i=(0,o.default)(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+e.length);if(u.set(i),u.set(e,i.length),(u=n(u))[6]=15&u[6]|t,u[8]=63&u[8]|128,a){s=s||0;for(var c=0;c<16;++c)a[s+c]=u[c];return a}return(0,r.default)(u)}try{i.name=e}catch(e){}return i.DNS=a,i.URL=s,i},n.URL=n.DNS=void 0;var r=i(e("./stringify.js")),o=i(e("./parse.js"));function i(e){return e&&e.__esModule?e:{default:e}}var a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";n.DNS=a;var s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";n.URL=s},{"./parse.js":529,"./stringify.js":533}],537:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(e("./rng.js")),o=i(e("./stringify.js"));function i(e){return e&&e.__esModule?e:{default:e}}n.default=function(e,t,n){var i=(e=e||{}).random||(e.rng||r.default)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=i[a];return t}return(0,o.default)(i)}},{"./rng.js":531,"./stringify.js":533}],538:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(e("./v35.js")),o=i(e("./sha1.js"));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v5",80,o.default);n.default=a},{"./sha1.js":532,"./v35.js":536}],539:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e("./regex.js"))&&r.__esModule?r:{default:r};n.default=function(e){return"string"==typeof e&&o.default.test(e)}},{"./regex.js":530}],540:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e("./validate.js"))&&r.__esModule?r:{default:r};n.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},{"./validate.js":539}],541:[function(e,t,n){"use strict";function r(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(n,"__esModule",{value:!0}),n.CHAR="\t\n\r -\ud7ff\ue000-\ufffd\ud800\udc00-\udbff\udfff",n.S=" \t\r\n",n.NAME_START_CHAR=":A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\ud800\udc00-\udb7f\udfff",n.NAME_CHAR="-"+n.NAME_START_CHAR+".0-9\xb7\u0300-\u036f\u203f-\u2040",n.CHAR_RE=new RegExp("^["+n.CHAR+"]$","u"),n.S_RE=new RegExp("^["+n.S+"]+$","u"),n.NAME_START_CHAR_RE=new RegExp("^["+n.NAME_START_CHAR+"]$","u"),n.NAME_CHAR_RE=new RegExp("^["+n.NAME_CHAR+"]$","u"),n.NAME_RE=new RegExp("^["+n.NAME_START_CHAR+"]["+n.NAME_CHAR+"]*$","u"),n.NMTOKEN_RE=new RegExp("^["+n.NAME_CHAR+"]+$","u"),n.S_LIST=[32,10,13,9],n.isChar=function(e){return e>=32&&e<=55295||10===e||13===e||9===e||e>=57344&&e<=65533||e>=65536&&e<=1114111},n.isS=function(e){return 32===e||10===e||13===e||9===e},n.isNameStartChar=r,n.isNameChar=function(e){return r(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}],542:[function(e,t,n){"use strict";function r(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(n,"__esModule",{value:!0}),n.CHAR="\x01-\ud7ff\ue000-\ufffd\ud800\udc00-\udbff\udfff",n.RESTRICTED_CHAR="\x01-\b\v\f\x0e-\x1f\x7f-\x84\x86-\x9f",n.S=" \t\r\n",n.NAME_START_CHAR=":A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\ud800\udc00-\udb7f\udfff",n.NAME_CHAR="-"+n.NAME_START_CHAR+".0-9\xb7\u0300-\u036f\u203f-\u2040",n.CHAR_RE=new RegExp("^["+n.CHAR+"]$","u"),n.RESTRICTED_CHAR_RE=new RegExp("^["+n.RESTRICTED_CHAR+"]$","u"),n.S_RE=new RegExp("^["+n.S+"]+$","u"),n.NAME_START_CHAR_RE=new RegExp("^["+n.NAME_START_CHAR+"]$","u"),n.NAME_CHAR_RE=new RegExp("^["+n.NAME_CHAR+"]$","u"),n.NAME_RE=new RegExp("^["+n.NAME_START_CHAR+"]["+n.NAME_CHAR+"]*$","u"),n.NMTOKEN_RE=new RegExp("^["+n.NAME_CHAR+"]+$","u"),n.S_LIST=[32,10,13,9],n.isChar=function(e){return e>=1&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},n.isRestrictedChar=function(e){return e>=1&&e<=8||11===e||12===e||e>=14&&e<=31||e>=127&&e<=132||e>=134&&e<=159},n.isCharAndNotRestricted=function(e){return 9===e||10===e||13===e||e>31&&e<127||133===e||e>159&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},n.isS=function(e){return 32===e||10===e||13===e||9===e},n.isNameStartChar=r,n.isNameChar=function(e){return r(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}],543:[function(e,t,n){"use strict";function r(e){return e>=65&&e<=90||95===e||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(n,"__esModule",{value:!0}),n.NC_NAME_START_CHAR="A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\ud800\udc00-\udb7f\udfff",n.NC_NAME_CHAR="-"+n.NC_NAME_START_CHAR+".0-9\xb7\u0300-\u036f\u203f-\u2040",n.NC_NAME_START_CHAR_RE=new RegExp("^["+n.NC_NAME_START_CHAR+"]$","u"),n.NC_NAME_CHAR_RE=new RegExp("^["+n.NC_NAME_CHAR+"]$","u"),n.NC_NAME_RE=new RegExp("^["+n.NC_NAME_START_CHAR+"]["+n.NC_NAME_CHAR+"]*$","u"),n.isNCNameStartChar=r,n.isNCNameChar=function(e){return r(e)||45===e||46===e||e>=48&&e<=57||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}]},{},[15])(15)},76792:function(e){e.exports=function(){"use strict";function e(t){return e.result?e.result:t&&"function"==typeof t.getSerializer?e.result=t.getSerializer():Promise.reject(new Error("localforage.getSerializer() was not available! localforage v1.4+ is required!"))}function t(e,n){return(t.result=t.result||{})[n]?t.result[n]:e&&"function"==typeof e.getDriver?t.result[n]=e.getDriver(n):Promise.reject(new Error("localforage.getDriver() was not available! localforage v1.4+ is required!"))}function n(e){return t(e,e.WEBSQL)}
1var r=new Promise(function(e,t){"undefined"!=typeof sqlitePlugin?e():"undefined"==typeof cordova?t(new Error("cordova is not defined.")):document.addEventListener("deviceready",function(){return e()},!1)}).catch(function(){return Promise.resolve()});function o(){return r.then(function(){if("undefined"!=typeof sqlitePlugin&&"function"==typeof sqlitePlugin.openDatabase)return sqlitePlugin.openDatabase;throw new Error("SQLite plugin is not present.")})}var i={_driver:"cordovaSQLiteDriver",_initStorage:function(t){var r=this,i={db:null};if(t)for(var a in t)i[a]="string"!=typeof t[a]?t[a].toString():t[a];var s=o().then(function(e){return new Promise(function(t,n){try{i.location=i.location||"default",i.db=e({name:i.name,version:String(i.version),description:i.description,size:i.size,key:i.dbKey,location:i.location})}catch(o){n(o)}i.db.transaction(function(e){e.executeSql("CREATE TABLE IF NOT EXISTS "+i.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){r._dbInfo=i,t()},function(e,t){n(t)})})})}),u=e(r),c=n(r);return Promise.all([u,c,s]).then(function(e){return i.serializer=e[0],s})},_support:function(){return o().then(function(e){return!!e}).catch(function(){return!1})}};return function(e){var t=["clear","getItem","iterate","key","keys","length","removeItem","setItem"];function r(e,t){e[t]=function(){var e=this,r=arguments;return n(e).then(function(n){return n[t].apply(e,r)})}}for(var o=0,i=t.length;o<i;o++)r(e,t[o])}(i),i}()},83179:function(e){e.exports=function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){return o(t[a][1][e]||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){(function(e){"use strict";var n,r,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var i=0,a=new o(l),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var u=new e.MessageChannel;u.port1.onmessage=l,n=function(){u.port2.postMessage(0)}}var c=[];function l(){var e,t;r=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}r=!1}t.exports=function(e){1!==c.push(e)||r||n()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var r=e(1);function o(){}var i={},a=["REJECTED"],s=["FULFILLED"],u=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,e!==o&&d(this,e)}function l(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function f(e,t,n){r(function(){var r;try{r=t(n)}catch(o){return i.reject(e,o)}r===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,r)})}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(e,t){var n=!1;function r(t){n||(n=!0,i.reject(e,t))}function o(t){n||(n=!0,i.resolve(e,t))}var a=p(function(){t(o,r)});"error"===a.status&&r(a.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(r){n.status="error",n.value=r}return n}t.exports=c,c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(o);return this.state!==u?f(n,this.state===s?e:t,this.outcome):this.queue.push(new l(n,e,t)),n},l.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},l.prototype.otherCallFulfilled=function(e){f(this.promise,this.onFulfilled,e)},l.prototype.callRejected=function(e){i.reject(this.promise,e)},l.prototype.otherCallRejected=function(e){f(this.promise,this.onRejected,e)},i.resolve=function(e,t){var n=p(h,t);if("error"===n.status)return i.reject(e,n.value);var r=n.value;if(r)d(e,r);else{e.state=s,e.outcome=t;for(var o=-1,a=e.queue.length;++o<a;)e.queue[o].callFulfilled(t)}return e},i.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:i.resolve(new this(o),e)},c.reject=function(e){var t=new this(o);return i.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,u=-1,c=new this(o);++u<n;)l(e[u],u);return c;function l(e,o){t.resolve(e).then(function(e){a[o]=e,++s!==n||r||(r=!0,i.resolve(c,a))},function(e){r||(r=!0,i.reject(c,e))})}},c.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,n=!1;if(!t)return this.resolve([]);for(var r=-1,a=new this(o);++r<t;)this.resolve(e[r]).then(function(e){n||(n=!0,i.resolve(a,e))},function(e){n||(n=!0,i.reject(a,e))});return a}},{1:1}],3:[function(e,t,n){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function i(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(o){if("TypeError"!==o.name)throw o;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var a=Promise;function s(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function u(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function c(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function l(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var f=void 0,h={},d=Object.prototype.toString;function p(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),o=0;o<t;o++)r[o]=e.charCodeAt(o);return n}function m(e){var t=h[e.name],n={};n.promise=new a(function(e,t){n.resolve=e,n.reject=t}),t.deferredOperations.push(n),t.dbReady=t.dbReady?t.dbReady.then(function(){return n.promise}):n.promise}function y(e){var t=h[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function v(e,t){var n=h[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function g(e,t){return new a(function(n,r){if(h[e.name]=h[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);m(e),e.db.close()}var i=[e.name];t&&i.push(e.version);var a=o.open.apply(o,i);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore("local-forage-detect-blob-support")}catch(r){if("ConstraintError"!==r.name)throw r;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){n(a.result),y(e)}})}function b(e){return g(e,!1)}function w(e){return g(e,!0)}function _(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version>e.db.version;if(e.version<e.db.version&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),r||n){if(n){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function k(e){return i([p(atob(e.data))],{type:e.type})}function S(e){return e&&e.__local_forage_encoded_blob}function C(e){var t=this,n=t._initReady().then(function(){var e=h[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady});return u(n,e,e),n}function E(e,t,n,r){void 0===r&&(r=1);try{var o=e.db.transaction(e.storeName,t);n(null,o)}catch(i){if(r>0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return a.resolve().then(function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),w(e)}).then(function(){return function(e){m(e);for(var t=h[e.name],n=t.forages,r=0;r<n.length;r++){var o=n[r];o._dbInfo.db&&(o._dbInfo.db.close(),o._dbInfo.db=null)}return e.db=null,b(e).then(function(t){return e.db=t,_(e)?w(e):t}).then(function(r){e.db=t.db=r;
1for(var o=0;o<n.length;o++)n[o]._dbInfo.db=r}).catch(function(t){throw v(e,t),t})}(e).then(function(){E(e,t,n,r-1)})}).catch(n);n(i)}}var T={_driver:"asyncStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var o=h[n.name];o||(h[n.name]=o={forages:[],db:null,dbReady:null,deferredOperations:[]}),o.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=C);var i=[];function s(){return a.resolve()}for(var u=0;u<o.forages.length;u++){var c=o.forages[u];c!==t&&i.push(c._initReady().catch(s))}var l=o.forages.slice(0);return a.all(i).then(function(){return n.db=o.db,b(n)}).then(function(e){return n.db=e,_(n,t._defaultConfig.version)?w(n):e}).then(function(e){n.db=o.db=e,t._dbInfo=n;for(var r=0;r<l.length;r++){var i=l[r];i!==t&&(i._dbInfo.db=n.db,i._dbInfo.version=n.version)}})},_support:function(){try{if(!o)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(n){return!1}}(),iterate:function(e,t){var n=this,r=new a(function(t,r){n.ready().then(function(){E(n._dbInfo,"readonly",function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName).openCursor(),s=1;a.onsuccess=function(){var n=a.result;if(n){var r=n.value;S(r)&&(r=k(r));var o=e(r,n.key,s++);void 0!==o?t(o):n.continue()}else t()},a.onerror=function(){r(a.error)}}catch(u){r(u)}})}).catch(r)});return s(r,t),r},getItem:function(e,t){var n=this;e=c(e);var r=new a(function(t,r){n.ready().then(function(){E(n._dbInfo,"readonly",function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),S(e)&&(e=k(e)),t(e)},a.onerror=function(){r(a.error)}}catch(s){r(s)}})}).catch(r)});return s(r,t),r},setItem:function(e,t,n){var r=this;e=c(e);var o=new a(function(n,o){var s;r.ready().then(function(){return s=r._dbInfo,"[object Blob]"===d.call(t)?function(e){return"boolean"==typeof f?a.resolve(f):function(e){return new a(function(t){var n=e.transaction("local-forage-detect-blob-support","readwrite"),r=i([""]);n.objectStore("local-forage-detect-blob-support").put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1})}(e).then(function(e){return f=e})}(s.db).then(function(e){return e?t:(n=t,new a(function(e,t){var r=new FileReader;r.onerror=t,r.onloadend=function(t){var r=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:r,type:n.type})},r.readAsBinaryString(n)}));var n}):t}).then(function(t){E(r._dbInfo,"readwrite",function(i,a){if(i)return o(i);try{var s=a.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var u=s.put(t,e);a.oncomplete=function(){void 0===t&&(t=null),n(t)},a.onabort=a.onerror=function(){o(u.error?u.error:u.transaction.error)}}catch(c){o(c)}})}).catch(o)});return s(o,n),o},removeItem:function(e,t){var n=this;e=c(e);var r=new a(function(t,r){n.ready().then(function(){E(n._dbInfo,"readwrite",function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName).delete(e);i.oncomplete=function(){t()},i.onerror=function(){r(a.error)},i.onabort=function(){r(a.error?a.error:a.transaction.error)}}catch(s){r(s)}})}).catch(r)});return s(r,t),r},clear:function(e){var t=this,n=new a(function(e,n){t.ready().then(function(){E(t._dbInfo,"readwrite",function(r,o){if(r)return n(r);try{var i=o.objectStore(t._dbInfo.storeName).clear();o.oncomplete=function(){e()},o.onabort=o.onerror=function(){n(i.error?i.error:i.transaction.error)}}catch(a){n(a)}})}).catch(n)});return s(n,e),n},length:function(e){var t=this,n=new a(function(e,n){t.ready().then(function(){E(t._dbInfo,"readonly",function(r,o){if(r)return n(r);try{var i=o.objectStore(t._dbInfo.storeName).count();i.onsuccess=function(){e(i.result)},i.onerror=function(){n(i.error)}}catch(a){n(a)}})}).catch(n)});return s(n,e),n},key:function(e,t){var n=this,r=new a(function(t,r){e<0?t(null):n.ready().then(function(){E(n._dbInfo,"readonly",function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName),s=!1,u=a.openCursor();u.onsuccess=function(){var n=u.result;n?0===e||s?t(n.key):(s=!0,n.advance(e)):t(null)},u.onerror=function(){r(u.error)}}catch(c){r(c)}})}).catch(r)});return s(r,t),r},keys:function(e){var t=this,n=new a(function(e,n){t.ready().then(function(){E(t._dbInfo,"readonly",function(r,o){if(r)return n(r);try{var i=o.objectStore(t._dbInfo.storeName).openCursor(),a=[];i.onsuccess=function(){var t=i.result;t?(a.push(t.key),t.continue()):e(a)},i.onerror=function(){n(i.error)}}catch(s){n(s)}})}).catch(n)});return s(n,e),n},dropInstance:function(e,t){t=l.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;if(e.name){var u=e.name===n.name&&i._dbInfo.db?a.resolve(i._dbInfo.db):b(e).then(function(t){var n=h[e.name],r=n.forages;n.db=t;for(var o=0;o<r.length;o++)r[o]._dbInfo.db=t;return t});r=u.then(e.storeName?function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.ver
1sion+1;m(e);var r=h[e.name],i=r.forages;t.close();for(var s=0;s<i.length;s++){var u=i[s];u._dbInfo.db=null,u._dbInfo.version=n}return new a(function(t,r){var i=o.open(e.name,n);i.onerror=function(e){i.result.close(),r(e)},i.onupgradeneeded=function(){i.result.deleteObjectStore(e.storeName)},i.onsuccess=function(){var e=i.result;e.close(),t(e)}}).then(function(e){r.db=e;for(var t=0;t<i.length;t++){var n=i[t];n._dbInfo.db=e,y(n._dbInfo)}}).catch(function(t){throw(v(e,t)||a.resolve()).catch(function(){}),t})}}:function(t){m(e);var n=h[e.name],r=n.forages;t.close();for(var i=0;i<r.length;i++)r[i]._dbInfo.db=null;return new a(function(t,n){var r=o.deleteDatabase(e.name);r.onerror=r.onblocked=function(e){var t=r.result;t&&t.close(),n(e)},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}}).then(function(e){n.db=e;for(var t=0;t<r.length;t++)y(r[t]._dbInfo)}).catch(function(t){throw(v(e,t)||a.resolve()).catch(function(){}),t})})}else r=a.reject("Invalid arguments");return s(r,t),r}},x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=/^~~local_forage_type~([^~]+)~/,A="__lfsc__:".length,R=A+"arbf".length,I=Object.prototype.toString;function P(e){var t,n,r,o,i,a=.75*e.length,s=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var c=new ArrayBuffer(a),l=new Uint8Array(c);for(t=0;t<s;t+=4)n=x.indexOf(e[t]),r=x.indexOf(e[t+1]),o=x.indexOf(e[t+2]),i=x.indexOf(e[t+3]),l[u++]=n<<2|r>>4,l[u++]=(15&r)<<4|o>>2,l[u++]=(3&o)<<6|63&i;return c}function M(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=x[n[t]>>2],r+=x[(3&n[t])<<4|n[t+1]>>4],r+=x[(15&n[t+1])<<2|n[t+2]>>6],r+=x[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var N={serialize:function(e,t){var n="";if(e&&(n=I.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===I.call(e.buffer))){var r,o="__lfsc__:";e instanceof ArrayBuffer?(r=e,o+="arbf"):(r=e.buffer,"[object Int8Array]"===n?o+="si08":"[object Uint8Array]"===n?o+="ui08":"[object Uint8ClampedArray]"===n?o+="uic8":"[object Int16Array]"===n?o+="si16":"[object Uint16Array]"===n?o+="ur16":"[object Int32Array]"===n?o+="si32":"[object Uint32Array]"===n?o+="ui32":"[object Float32Array]"===n?o+="fl32":"[object Float64Array]"===n?o+="fl64":t(new Error("Failed to get type for BinaryArray"))),t(o+M(r))}else if("[object Blob]"===n){var i=new FileReader;i.onload=function(){var n="~~local_forage_type~"+e.type+"~"+M(this.result);t("__lfsc__:blob"+n)},i.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(a){console.error("Couldn't convert value into a JSON string: ",e),t(null,a)}},deserialize:function(e){if("__lfsc__:"!==e.substring(0,A))return JSON.parse(e);var t,n=e.substring(R),r=e.substring(A,R);if("blob"===r&&O.test(n)){var o=n.match(O);t=o[1],n=n.substring(o[0].length)}var a=P(n);switch(r){case"arbf":return a;case"blob":return i([a],{type:t});case"si08":return new Int8Array(a);case"ui08":return new Uint8Array(a);case"uic8":return new Uint8ClampedArray(a);case"si16":return new Int16Array(a);case"ur16":return new Uint16Array(a);case"si32":return new Int32Array(a);case"ui32":return new Uint32Array(a);case"fl32":return new Float32Array(a);case"fl64":return new Float64Array(a);default:throw new Error("Unkown type: "+r)}},stringToBuffer:P,bufferToString:M};function j(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function D(e,t,n,r,o,i){e.executeSql(n,r,o,function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[name],function(e,s){s.rows.length?i(e,a):j(e,t,function(){e.executeSql(n,r,o,i)},i)},i):i(e,a)},i)}function L(e,t,n,r){var o=this;e=c(e);var i=new a(function(i,a){o.ready().then(function(){void 0===t&&(t=null);var s=t,u=o._dbInfo;u.serializer.serialize(t,function(t,c){c?a(c):u.db.transaction(function(n){D(n,u,"INSERT OR REPLACE INTO "+u.storeName+" (key, value) VALUES (?, ?)",[e,t],function(){i(s)},function(e,t){a(t)})},function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void i(L.apply(o,[e,s,n,r-1]));a(t)}})})}).catch(a)});return s(i,n),i}function F(e){return new a(function(t,n){e.transaction(function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(n,r){for(var o=[],i=0;i<r.rows.length;i++)o.push(r.rows.item(i).name);t({db:e,storeNames:o})},function(e,t){n(t)})},function(e){n(e)})})}var B={_driver:"webSQLStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var o=new a(function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(o){return r(o)}n.db.transaction(function(o){j(o,n,function(){t._dbInfo=n,e()},function(e,t){r(t)})},r)});
vendor: 8,541 bytes, line 1
1return n.serializer=N,o},_support:"function"==typeof openDatabase,iterate:function(e,t){var n=this,r=new a(function(t,r){n.ready().then(function(){var o=n._dbInfo;o.db.transaction(function(n){D(n,o,"SELECT * FROM "+o.storeName,[],function(n,r){for(var i=r.rows,a=i.length,s=0;s<a;s++){var u=i.item(s),c=u.value;if(c&&(c=o.serializer.deserialize(c)),void 0!==(c=e(c,u.key,s+1)))return void t(c)}t()},function(e,t){r(t)})})}).catch(r)});return s(r,t),r},getItem:function(e,t){var n=this;e=c(e);var r=new a(function(t,r){n.ready().then(function(){var o=n._dbInfo;o.db.transaction(function(n){D(n,o,"SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[e],function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=o.serializer.deserialize(r)),t(r)},function(e,t){r(t)})})}).catch(r)});return s(r,t),r},setItem:function(e,t,n){return L.apply(this,[e,t,n,1])},removeItem:function(e,t){var n=this;e=c(e);var r=new a(function(t,r){n.ready().then(function(){var o=n._dbInfo;o.db.transaction(function(n){D(n,o,"DELETE FROM "+o.storeName+" WHERE key = ?",[e],function(){t()},function(e,t){r(t)})})}).catch(r)});return s(r,t),r},clear:function(e){var t=this,n=new a(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){D(t,r,"DELETE FROM "+r.storeName,[],function(){e()},function(e,t){n(t)})})}).catch(n)});return s(n,e),n},length:function(e){var t=this,n=new a(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){D(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],function(t,n){var r=n.rows.item(0).c;e(r)},function(e,t){n(t)})})}).catch(n)});return s(n,e),n},key:function(e,t){var n=this,r=new a(function(t,r){n.ready().then(function(){var o=n._dbInfo;o.db.transaction(function(n){D(n,o,"SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)},function(e,t){r(t)})})}).catch(r)});return s(r,t),r},keys:function(e){var t=this,n=new a(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){D(t,r,"SELECT key FROM "+r.storeName,[],function(t,n){for(var r=[],o=0;o<n.rows.length;o++)r.push(n.rows.item(o).key);e(r)},function(e,t){n(t)})})}).catch(n)});return s(n,e),n},dropInstance:function(e,t){t=l.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,o=this;return s(r=e.name?new a(function(t){var r;r=e.name===n.name?o._dbInfo.db:openDatabase(e.name,"","",0),t(e.storeName?{db:r,storeNames:[e.storeName]}:F(r))}).then(function(e){return new a(function(t,n){e.db.transaction(function(r){function o(e){return new a(function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],function(){t()},function(e,t){n(t)})})}for(var i=[],s=0,u=e.storeNames.length;s<u;s++)i.push(o(e.storeNames[s]));a.all(i).then(function(){t()}).catch(function(e){n(e)})},function(e){n(e)})})}):a.reject("Invalid arguments"),t),r}};function U(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}var q={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=U(e,this._defaultConfig),!function(){try{return localStorage.setItem("_localforage_support_test",!0),localStorage.removeItem("_localforage_support_test"),!1}catch(e){return!0}}()||localStorage.length>0?(this._dbInfo=t,t.serializer=N,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then(function(){for(var t=n._dbInfo,r=t.keyPrefix,o=r.length,i=localStorage.length,a=1,s=0;s<i;s++){var u=localStorage.key(s);if(0===u.indexOf(r)){var c=localStorage.getItem(u);if(c&&(c=t.serializer.deserialize(c)),void 0!==(c=e(c,u.substring(o),a++)))return c}}});return s(r,t),r},getItem:function(e,t){var n=this;e=c(e);var r=n.ready().then(function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r});return s(r,t),r},setItem:function(e,t,n){var r=this;e=c(e);var o=r.ready().then(function(){void 0===t&&(t=null);var n=t;return new a(function(o,i){var a=r._dbInfo;a.serializer.serialize(t,function(t,r){if(r)i(r);else try{localStorage.setItem(a.keyPrefix+e,t),o(n)}catch(s){"QuotaExceededError"!==s.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==s.name||i(s),i(s)}})})});return s(o,n),o},removeItem:function(e,t){var n=this;e=c(e);var r=n.ready().then(function(){localStorage.removeItem(n._dbInfo.keyPrefix+e)});return s(r,t),r},clear:function(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}});return s(n,e),n},length:function(e){var t=this.keys().then(function(e){return e.length});return s(t,e),t},key:function(e,t){var n=this,r=n.ready().then(function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(o){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t});return s(r,t),r},keys:function(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo,n=localStorage.length,r=[],o=0;o<n;o++){var i=localStorage.key(o);0===i.indexOf(e.keyPrefix)&&r.push(i.substring(e.keyPrefix.length))}return r});return s(n,e),n},dropInstance:function(e,t){if(t=l.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,o=this;return s(r=e.name?new a(function(t){t(e.storeName?U(e,o._defaultConfig):e.name+"/")}).then(function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}}):a.reject("Invalid arguments"),t),r}},H=function(e,t){for(var n=e.length,r=0;r<n;){if((o=e[r])===(i=t)||"number"==typeof o&&"number"==typeof i&&isNaN(o)&&isNaN(i))return!0;r++}var o,i;return!1},z=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},G={},V={},$={INDEXEDDB:T,WEBSQL:B,LOCALSTORAGE:q},K=[$.INDEXEDDB._driver,$.WEBSQL._driver,$.LOCALSTORAGE._driver],Y=["dropInstance"],W=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Y),X={description:"",driver:K.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Z(e,t){e[t]=function(){var n=arguments;return e.ready().then(function(){return e[t].apply(e,n)})}}function J(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(arguments[0][n]=z(t[n])?t[n].slice():t[n])}return arguments[0]}var Q=new(function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),$)if($.hasOwnProperty(n)){var r=$[n],o=r._driver;this[n]=o,G[o]||this.defineDriver(r)}this._defaultConfig=J({},X),this._config=J({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new a(function(t,n){try{var r=e._driver,o=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(o);for(var i=W.concat("_initStorage"),u=0,c=i.length;u<c;u++){var l=i[u];if((!H(Y,l)||e[l])&&"function"!=typeof e[l])return void n(o)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=a.reject(t);return s(n,arguments[arguments.length-1]),n}},n=0,r=Y.length;n<r;n++){var o=Y[n];e[o]||(e[o]=t(o))}}();var f=function(n){G[r]&&console.info("Redefining LocalForage driver: "+r),G[r]=e,V[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(f,n):f(!!e._support):f(!0)}catch(h){n(h)}});return u(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=G[e]?a.resolve(G[e]):a.reject(new Error("Driver not found."));return u(r,t,n),r}
1,e.prototype.getSerializer=function(e){var t=a.resolve(N);return u(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then(function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready});return u(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;z(e)||(e=[e]);var o=this._getSupportedDrivers(e);function i(){r._config.driver=r.driver()}function s(e){return r._extend(e),i(),r._ready=r._initStorage(r._config),r._ready}var c=null!==this._driverSet?this._driverSet.catch(function(){return a.resolve()}):a.resolve();return this._driverSet=c.then(function(){var e=o[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then(function(e){r._driver=e._driver,i(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(e){return function(){var t=0;return function n(){for(;t<e.length;){var o=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(o).then(s).catch(n)}i();var u=new Error("No available storage method found.");return r._driverSet=a.reject(u),r._driverSet}()}}(o)})}).catch(function(){i();var e=new Error("No available storage method found.");return r._driverSet=a.reject(e),r._driverSet}),u(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!V[e]},e.prototype._extend=function(e){J(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e[n];this.supports(o)&&t.push(o)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=W.length;e<t;e++)Z(this,W[e])},e.prototype.createInstance=function(t){return new e(t)},e}());t.exports=Q},{3:3}]},{},[4])(4)},78512:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var o=n(55959),i=n(13895),a=function(e){f(n,e);var t=d(n);function n(e){var r;return w(this,n),(r=t.call(this))._value=e,r}return b(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=r(v(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.N;return this._value}},{key:"next",value:function(e){r(v(n.prototype),"next",this).call(this,this._value=e)}}]),n}(o.xQ)},99867:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});var r=function(e){f(n,e);var t=d(n);function n(e,r,o){var i;return w(this,n),(i=t.call(this)).parent=e,i.outerValue=r,i.outerIndex=o,i.index=0,i}return b(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(n(96673).L)},71784:function(e,t,n){"use strict";n.d(t,{y:function(){return c}});var r=n(96673),o=n(55331),i=n(57498),a=n(56197),s=n(36541),u=n(51484),c=function(){var e=function(){function e(t){w(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return b(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var a=this.operator,s=function(e,t,n){if(e){if(e instanceof r.L)return e;if(e[o.b])return e[o.b]()}return e||t||n?new r.L(e,t,n):new r.L(i.c)}(e,t,n);if(s.add(a?a.call(s,this.source):this.source||u.v.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),u.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){u.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,o=t.destination,i=t.isStopped;if(n||i)return!1;e=o&&o instanceof r.L?o:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=l(t))(function(t,r){var o;o=n.subscribe(function(t){try{e(t)}catch(n){r(n),o&&o.unsubscribe()}},r,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:a.L,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:(0,s.U)(t)(this)}},{key:"toPromise",value:function(e){var t=this;return new(e=l(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})}}]),e}();return e.create=function(t){return new e(t)},e}();function l(e){if(e||(e=u.v.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},57498:function(e,t,n){"use strict";n.d(t,{c:function(){return i}});var r=n(51484),o=n(14294),i={closed:!0,next:function(e){},error:function(e){if(r.v.useDeprecatedSynchronousErrorHandling)throw e;(0,o.z)(e)},complete:function(){}}},59829:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r=function(e){f(n,e);var t=d(n);function n(){return w(this,n),t.apply(this,arguments)}return b(n,[{key:"notifyNext",value:function(e,t,n,r,o){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(n(96673).L)},74156:function(e,t,n){"use strict";n.d(t,{t:function(){return k}});var o=n(55959),i=function(e){f(n,e);var t=d(n);function n(e,r){var o;
1return w(this,n),(o=t.call(this,e,r)).scheduler=e,o.work=r,o}return b(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?r(v(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?r(v(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0||null===o&&this.delay>0?r(v(n.prototype),"requestAsyncId",this).call(this,e,t,o):e.flush(this)}}]),n}(n(8277).o),a=new(function(e){f(n,e);var t=d(n);function n(){return w(this,n),t.apply(this,arguments)}return n}(n(91098).v))(i),s=n(87570),u=n(96673),c=n(70653),l=n(40878),h=n(31225),p=function(){var e=function(){function e(t,n,r){w(this,e),this.kind=t,this.value=n,this.error=r,this.hasValue="N"===t}return b(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,l.of)(this.value);case"E":return(0,h._)(this.error);case"C":return(0,c.c)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}(),m=function(e){f(n,e);var t=d(n);function n(e,r){var o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return w(this,n),(o=t.call(this,e)).scheduler=r,o.delay=i,o}return b(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new y(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(p.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(p.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(p.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(u.L),y=function e(t,n){w(this,e),this.notification=t,this.destination=n},g=n(13895),_=n(19291),k=function(e){f(n,e);var t=d(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,i=arguments.length>2?arguments[2]:void 0;
1return w(this,n),(e=t.call(this)).scheduler=i,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=r<1?1:r,e._windowTime=o<1?1:o,o===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return b(n,[{key:"nextInfiniteTimeWindow",value:function(e){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),r(v(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this._events.push(new S(this._getNow(),e)),this._trimBufferThenGetEvents(),r(v(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=r.length;if(this.closed)throw new g.N;if(this.isStopped||this.hasError?t=s.w.EMPTY:(this.observers.push(e),t=new _.W(this,e)),o&&e.add(e=new m(e,o)),n)for(var a=0;a<i&&!e.closed;a++)e.next(r[a]);else for(var u=0;u<i&&!e.closed;u++)e.next(r[u].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||a).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,o=r.length,i=0;i<o&&!(e-r[i].time<n);)i++;return o>t&&(i=Math.max(i,o-t)),i>0&&r.splice(0,i),r}}]),n}(o.xQ),S=function e(t,n){w(this,e),this.time=t,this.value=n}},55959:function(e,t,n){"use strict";n.d(t,{Yc:function(){return l},xQ:function(){return h}});var o=n(71784),i=n(96673),a=n(87570),s=n(13895),u=n(19291),c=n(55331),l=function(e){f(n,e);var t=d(n);function n(e){var r;return w(this,n),(r=t.call(this,e)).destination=e,r}return n}(i.L),h=function(){var e=function(e){f(n,e);var t=d(n);function n(){var e;return w(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return b(n,[{key:c.b,value:function(){return new l(this)}},{key:"lift",value:function(e){var t=new p(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new s.N;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)}},{key:"error",value:function(e){if(this.closed)throw new s.N;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new s.N;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new s.N;return r(v(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new s.N;return this.hasError?(e.error(this.thrownError),a.w.EMPTY):this.isStopped?(e.complete(),a.w.EMPTY):(this.observers.push(e),new u.W(this,e))}},{key:"asObservable",value:function(){var e=new o.y;return e.source=this,e}}]),n}(o.y);return e.create=function(e,t){return new p(e,t)},e}(),p=function(e){f(n,e);var t=d(n);function n(e,r){var o;return w(this,n),(o=t.call(this)).destination=e,o.source=r,o}return b(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):a.w.EMPTY}}]),n}(h)},19291:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});var r=function(e){f(n,e);var t=d(n);function n(e,r){var o;return w(this,n),(o=t.call(this)).subject=e,o.subscriber=r,o.closed=!1,o}return b(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(n(87570).w)},96673:function(e,t,n){"use strict";n.d(t,{L:function(){return l}});var o=n(85024),i=n(57498),a=n(87570),s=n(55331),u=n(51484),c=n(14294),l=function(e){f(n,e);var t=d(n);function n(e,r,o){var a;switch(w(this,n),(a=t.call(this)).syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=i.c;break;case 1:if(!e){a.destination=i.c;break}if("object"==typeof e){e instanceof n?(a.syncErrorThrowable=e.syncErrorThrowable,a.destination=e,e.add(m(a))):(a.syncErrorThrowable=!0,a.destination=new h(m(a),e));break}default:a.syncErrorThrowable=!0,a.destination=new h(m(a),e,r,o)}return a}return b(n,[{key:s.b,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,r(v(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,r){var o=new n(e,t,r);return o.syncErrorThrowable=!1,o}}]),n}(a.w),h=function(e){f(n,e);var t=d(n);function n(e,r,a,s){var u,c;w(this,n),(u=t.call(this))._parentSubscriber=e;var l=m(u);return(0,o.m)(r)?c=r:r&&(c=r.next,a=r.error,s=r.complete,r!==i.c&&(l=Object.create(r),(0,o.m)(l.unsubscribe)&&u.add(l.unsubscribe.bind(l)),l.unsubscribe=u.unsubscribe.bind(m(u)))),u._context=l,u._next=c,u._error=a,u._complete=s,u}return b(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;u.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=u.v.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):(0,c.z)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;(0,c.z)(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};u.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),u.v.useDeprecatedSynchronousErrorHandling)throw n;(0,c.z)(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!u.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return u.v.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):((0,c.z)(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(l)},87570:function(e,t,n){"use strict";n.d(t,{w:function(){return s}});var r=n(98470),o=n(82056),i=n(85024),a=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map(function(e,t){return"".concat(t+1,") ").concat(e.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),s=function(){var e,t=function(){function e(t){w(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return b(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,s=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var l=0;l<n.length;++l)n[l].remove(this);if((0,i.m)(s))try{s.call(this)}catch(p){t=p instanceof a?u(p.errors):[p]}if((0,r.k)(c))for(var f=-1,h=c.length;++f<h;){var d=c[f];if((0,o.K)(d))try{d.unsubscribe()}catch(p){t=t||[],p instanceof a?t=t.concat(u(p.errors)):t.push(p)}}if(t)throw new a(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof e){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}();return t.EMPTY=((e=new t).closed=!0,e),t}();function u(e){return e.reduce(function(e,t){return e.concat(t instanceof a?t.errors:t)},[])}},51484:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var r=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior b
1y code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},42875:function(e,t,n){"use strict";n.d(t,{c:function(){return c},N:function(){return l}});var o,i=n(55959),a=n(71784),s=n(87570),u=n(21564),c=function(e){f(n,e);var t=d(n);function n(e,r){var o;return w(this,n),(o=t.call(this)).source=e,o.subjectFactory=r,o._refCount=0,o._isComplete=!1,o}return b(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new s.w).add(this.source.subscribe(new h(this.getSubject(),this))),e.closed&&(this._connection=null,e=s.w.EMPTY)),e}},{key:"refCount",value:function(){return(0,u.x)()(this)}}]),n}(a.y),l={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(o=c.prototype)._subscribe},_isComplete:{value:o._isComplete,writable:!0},getSubject:{value:o.getSubject},connect:{value:o.connect},refCount:{value:o.refCount}},h=function(e){f(n,e);var t=d(n);function n(e,r){var o;return w(this,n),(o=t.call(this,e)).connectable=r,o}return b(n,[{key:"_error",value:function(e){this._unsubscribe(),r(v(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),r(v(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(i.Yc)},31305:function(e,t,n){"use strict";n.d(t,{aj:function(){return c}});var r=n(76163),o=n(98470),i=n(59829),a=n(6268),s=n(99342),u={};function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=null,a=null;return(0,r.K)(t[t.length-1])&&(a=t.pop()),"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&(0,o.k)(t[0])&&(t=t[0]),(0,s.n)(t,a).lift(new l(i))}var l=function(){function e(t){w(this,e),this.resultSelector=t}return b(e,[{key:"call",value:function(e,t){return t.subscribe(new h(e,this.resultSelector))}}]),e}(),h=function(e){f(n,e);var t=d(n);function n(e,r){var o;return w(this,n),(o=t.call(this,e)).resultSelector=r,o.active=0,o.values=[],o.observables=[],o}return b(n,[{key:"_next",value:function(e){this.values.push(u),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add((0,a.D)(this,r,r,n))}}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n,r,o){var i=this.values,a=this.toRespond?i[n]===u?--this.toRespond:this.toRespond:0;i[n]=t,0===a&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(i.L)},47930:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(40878),o=n(97471);function i(){return(0,o.J)(1)(r.of.apply(void 0,arguments))}},70653:function(e,t,n){"use strict";n.d(t,{E:function(){return o},c:function(){return i}});var r=n(71784),o=new r.y(function(e){return e.complete()});function i(e){return e?function(e){return new r.y(function(t){return e.schedule(function(){return t.complete()})})}(e):o}},19764:function(e,t,n){"use strict";n.d(t,{D:function(){return f}});var r=n(71784),o=n(16015),i=n(87570),a=n(56197),s=n(62570),u=n(25686),c=n(5168),l=n(59653);function f(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[a.L]}(e))return function(e,t){return new r.y(function(n){var r=new i.w;return r.add(t.schedule(function(){var o=e[a.L]();r.add(o.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}
1))}}))})),r})}(e,t);if((0,c.t)(e))return function(e,t){return new r.y(function(n){var r=new i.w;return r.add(t.schedule(function(){return e.then(function(e){r.add(t.schedule(function(){n.next(e),r.add(t.schedule(function(){return n.complete()}))}))},function(e){r.add(t.schedule(function(){return n.error(e)}))})})),r})}(e,t);if((0,l.z)(e))return(0,s.r)(e,t);if(function(e){return e&&"function"==typeof e[u.hZ]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.y(function(n){var r,o=new i.w;return o.add(function(){r&&"function"==typeof r.return&&r.return()}),o.add(t.schedule(function(){r=e[u.hZ](),o.add(t.schedule(function(){if(!n.closed){var e,t;try{var o=r.next();e=o.value,t=o.done}catch(i){return void n.error(i)}t?n.complete():(n.next(e),this.schedule())}}))})),o})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof r.y?e:new r.y((0,o.s)(e))}},99342:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var r=n(71784),o=n(30625),i=n(62570);function a(e,t){return t?(0,i.r)(e,t):new r.y((0,o.V)(e))}},87254:function(e,t,n){"use strict";n.d(t,{R:function(){return u}});var r=n(71784),o=n(98470),i=n(85024),s=n(79996);function u(e,t,n,l){return(0,i.m)(n)&&(l=n,n=void 0),l?u(e,t,n).pipe((0,s.U)(function(e){return(0,o.k)(e)?l.apply(void 0,a(e)):l(e)})):new r.y(function(r){c(e,t,function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},r,n)})}function c(e,t,n,r,o){var i;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,o),i=function(){return a.removeEventListener(t,n,o)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),i=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var u=e;e.addListener(t,n),i=function(){return u.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,f=e.length;l<f;l++)c(e[l],t,n,r,o)}r.add(i)}},31906:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var r=n(71784),o=n(76163),i=n(97471),a=n(99342);function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var s=Number.POSITIVE_INFINITY,u=null,c=t[t.length-1];return(0,o.K)(c)?(u=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(s=t.pop())):"number"==typeof c&&(s=t.pop()),null===u&&1===t.length&&t[0]instanceof r.y?t[0]:(0,i.J)(s)((0,a.n)(t,u))}},40878:function(e,t,n){"use strict";n.d(t,{of:function(){return a}});var r=n(76163),o=n(99342),i=n(62570);function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t[t.length-1];return(0,r.K)(a)?(t.pop(),(0,i.r)(t,a)):(0,o.n)(t)}},31225:function(e,t,n){"use strict";n.d(t,{_:function(){return o}});var r=n(71784);function o(e,t){return new r.y(t?function(n){return t.schedule(i,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function i(e){var t=e.error;e.subscriber.error(t)}},47727:function(e,t,n){"use strict";n.d(t,{K:function(){return s}});var o=n(59829),i=n(99867),a=n(6268);function s(e){return function(t){var n=new u(e),r=t.lift(n);return n.caught=r}}var u=function(){function e(t){w(this,e),this.selector=t}return b(e,[{key:"call",value:function(e,t){return t.subscribe(new c(e,this.selector,this.caught))}}]),e}(),c=function(e){f(n,e);var t=d(n);function n(e,r,o){var i;return w(this,n),(i=t.call(this,e)).selector=r,i.caught=o,i}return b(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(u){return void r(v(n.prototype),"error",this).call(this,u)}this._unsubscribeAndRecycle();var o=new i.d(this,void 0,void 0);this.add(o);var s=(0,a.D)(this,t,void 0,void 0,o);s!==o&&this.add(s)}}}]),n}(o.L)},436:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(73982);function o(e,t){return(0,r.zg)(e,t,1)}},7768:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});var r=n(96673);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new i(e))}}var i=function(){function e(t){w(this,e),this.defaultValue=t}return b(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.defaultValue))}}]),e}(),a=function(e){f(n,e);var t=d(n);function n(e,r){var o;return w(this,n),(o=t.call(this,e)).defaultValue=r,o.isEmpty=!0,o}return b(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(r.L)},43835:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(96673);function o(e,t){return function(n){return n.lift(new i(e,t))}}var i=function(){function e(t,n){w(this,e),this.predicate=t,this.thisArg=n}return b(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))}}]),e}(),a=function(e){f(n,e);var t=d(n);function n(e,r,o){var i;return w(this,n),(i=t.call(this,e)).predicate=r,i.thisArg=o,i.count=0,i}return b(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(r.L)},79996:function(e,t,n){"use strict";n.d(t,{U:function(){return o}});var r=n(96673);function o(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new i(e,t))}}var i=function(){function e(t,n){w(this,e),this.project=t,this.thisArg=n}return b(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))}}]),e}(),a=function(e){f(n,e);var t=d(n);function n(e,r,o){var i;return w(this,n),(i=t.call(this,e)).project=r,i.count=0,i.thisArg=o||m(i),i}return b(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(r.L)},97471:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(73982),o=n(13392);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,r.zg)(o.y,e)}},73982:function(e,t,n){"use strict";n.d(t,{zg:function(){return u}});var r=n(6268),o=n(59829),i=n(99867),a=n(79996),s=n(19764);function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(r){return r.pipe(u(function(n,r){return(0,s.D)(e(n,r)).pipe((0,a.U)(function(e,o){return t(n,e,r,o)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new c(e,n))})}var c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;w(this,e),this.project=t,this.concurrent=n}return b(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.project,this.concurrent))}}]),e}(),l=function(e){f(n,e);var t=d(n);function n(e,r){var o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return w(this,n),(o=t.call(this,e)).project=r,o.concurrent=i,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return b(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)}},{key:"_innerSub",value:function(e,t,n){var o=new i.d(this,t,n),a=this.destination;a.add(o);var s=(0,r.D)(this,e,void 0,void 0,o);s!==o&&a.add(s)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e,t,n,r,o){this.destination.next(t)}},{key:"notifyComplete",value:function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(o.L)},21564:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var r=n(96673);function o(){return function(e){return e.lift(new i(e))}}var i=function(){function e(t){w(this,e),this.connectable=t}return b(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new a(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o}}]),e}(),a=function(e){f(n,e);var t=d(n);function n(e,r){var o;return w(this,n),(o=t.call(this,e)).connectable=r,o}return b(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;
1if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(r.L)},2023:function(e,t,n){"use strict";n.d(t,{R:function(){return o}});var r=n(96673);function o(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new i(e,t,n))}}var i=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];w(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return b(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),a=function(e){f(n,e);var t=d(n);function n(e,r,o,i){var a;return w(this,n),(a=t.call(this,e)).accumulator=r,a._seed=o,a.hasSeed=i,a.index=0,a}return b(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}}]),n}(r.L)},1055:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});var r=n(42875),o=n(21564),i=n(55959);function a(){return new i.xQ}function s(){return function(e){return(0,o.x)()((t=a,function(e){var n;n="function"==typeof t?t:function(){return t};var o=Object.create(e,r.N);return o.source=e,o.subjectFactory=n,o})(e));var t}}},56238:function(e,t,n){"use strict";n.d(t,{O:function(){return i}});var r=n(47930),o=n(76163);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return(0,o.K)(i)?(t.pop(),function(e){return(0,r.z)(t,e,i)}):function(e){return(0,r.z)(t,e)}}},44689:function(e,t,n){"use strict";n.d(t,{w:function(){return c}});var o=n(59829),i=n(99867),a=n(6268),s=n(79996),u=n(19764);function c(e,t){return"function"==typeof t?function(n){return n.pipe(c(function(n,r){return(0,u.D)(e(n,r)).pipe((0,s.U)(function(e,o){return t(n,e,r,o)}))}))}:function(t){return t.lift(new l(e))}}var l=function(){function e(t){w(this,e),this.project=t}return b(e,[{key:"call",value:function(e,t){return t.subscribe(new h(e,this.project))}}]),e}(),h=function(e){f(n,e);var t=d(n);function n(e,r){var o;return w(this,n),(o=t.call(this,e)).project=r,o.index=0,o}return b(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)}},{key:"_innerSub",value:function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new i.d(this,t,n),s=this.destination;s.add(o),this.innerSubscription=(0,a.D)(this,e,void 0,void 0,o),this.innerSubscription!==o&&s.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||r(v(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&r(v(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t,n,r,o){this.destination.next(t)}}]),n}(o.L)},90611:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(96673),o=n(98402),i=n(70653);function a(e){return function(t){return 0===e?(0,i.c)():t.lift(new s(e))}}var s=function(){function e(t){if(w(this,e),this.total=t,this.total<0)throw new o.W}return b(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.total))}}]),e}(),u=function(e){f(n,e);var t=d(n);function n(e,r){var o;return w(this,n),(o=t.call(this,e)).total=r,o.count=0,o}return b(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(r.L)},4991:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(96673),o=n(98402),i=n(70653);function a(e){return function(t){return 0===e?(0,i.c)():t.lift(new s(e))}}var s=function(){function e(t){if(w(this,e),this.total=t,this.total<0)throw new o.W}return b(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.total))}}]),e}(),u=function(e){f(n,e);var t=d(n);function n(e,r){var o;return w(this,n),(o=t.call(this,e)).total=r,o.ring=new Array,o.count=0,o}return b(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o<n;o++){var i=t++%n;e.next(r[i])}e.complete()}}]),n}(r.L)},66599:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(96673);function o(){}var i=n(85024);function a(e,t,n){return function(r){return r.lift(new s(e,t,n))}}var s=function(){function e(t,n,r){w(this,e),this.nextOrObserver=t,this.error=n,this.complete=r}return b(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),u=function(e){f(n,e);var t=d(n);function n(e,r,a,s){var u;return w(this,n),(u=t.call(this,e))._tapNext=o,u._tapError=o,u._tapComplete=o,u._tapError=a||o,u._tapComplete=s||o,(0,i.m)(r)?(u._context=m(u),u._tapNext=r):r&&(u._context=r,u._tapNext=r.next||o,u._tapError=r.error||o,u._tapComplete=r.complete||o),u}return b(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(r.L)},62570:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(71784),o=n(87570);function i(e,t){return new r.y(function(n){var r=new o.w,i=0;return r.add(t.schedule(function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()}
1)),r})}},8277:function(e,t,n){"use strict";n.d(t,{o:function(){return r}});var r=function(e){f(n,e);var t=d(n);function n(e,r){var o;return w(this,n),(o=t.call(this,e,r)).scheduler=e,o.work=r,o.pending=!1,o}return b(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,r=!1;try{this.work(e)}catch(o){r=!0,n=!!o&&o||new Error(o)}if(r)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){f(n,e);var t=d(n);function n(e,r){return w(this,n),t.call(this)}return b(n,[{key:"schedule",value:function(e){return this}}]),n}(n(87570).w))},91098:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var o=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;w(this,e),this.SchedulerAction=t,this.now=n}return b(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),i=function(e){f(n,e);var t=d(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.now;return w(this,n),(r=t.call(this,e,function(){return n.delegate&&n.delegate!==m(r)?n.delegate.now():i()})).actions=[],r.active=!1,r.scheduled=void 0,r}return b(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,o):r(v(n.prototype),"schedule",this).call(this,e,t,o)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(o)},25686:function(e,t,n){"use strict";n.d(t,{hZ:function(){return r}});var r="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},56197:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},55331:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},98402:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});var r=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},13895:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});var r=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},14294:function(e,t,n){"use strict";function r(e){setTimeout(function(){throw e},0)}n.d(t,{z:function(){return r}})},13392:function(e,t,n){"use strict";function r(e){return e}n.d(t,{y:function(){return r}})},98470:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});var r=Array.isArray||function(e){return e&&"number"==typeof e.length}},59653:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});var r=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},85024:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,{m:function(){return r}})},82056:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,{K:function(){return r}})},5168:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,{t:function(){return r}})},76163:function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,{K:function(){return r}})},36541:function(e,t,n){"use strict";n.d(t,{z:function(){return o},U:function(){return i}});var r=n(13392);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i(t)}function i(e){return 0===e.length?r.y:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}},16015:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});var r=n(30625),o=n(14294),i=n(25686),a=n(56197),s=n(59653),u=n(5168),c=n(82056),l=function(e){if(e&&"function"==typeof e[a.L])return l=e,function(e){var t=l[a.L]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if((0,s.z)(e))return(0,r.V)(e);if((0,u.t)(e))return n=e,function(e){return n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,o.z),e};if(e&&"function"==typeof e[i.hZ])return t=e,function(e){for(var n=t[i.hZ]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};
1var t,n,l,f=(0,c.K)(e)?"an invalid object":"'".concat(e,"'");throw new TypeError("You provided ".concat(f," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}},30625:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var r=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}}},6268:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});var r=n(99867),o=n(16015),i=n(71784);function a(e,t,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new r.d(e,n,a);if(!s.closed)return t instanceof i.y?t.subscribe(s):(0,o.s)(t)(s)}},18172:function(e,t,n){"use strict";n.d(t,{e:function(){return y}});var r=n(42693),o=n(78512),i=n(74156),a=n(40878),s=n(66599),u=n(47727),c=n(2139),l=function e(t,n){w(this,e),this.Content=t,this.TokenExpiration=n},f=function e(t,n){w(this,e),this.Username=t,this.Password=n},h=n(529),d=n(35366),p=n(71290),m=n(32488),y=function(){var e=function(){function e(t,n,c,l){var f=this;w(this,e),this.dataSvc=t,this.http=n,this.navCtrl=c,this.msal=l,this.tokenSource=new o.X(null),this.tokenObservable=this.tokenSource.asObservable(),this.usernameSource=new i.t(1),this.username$=this.usernameSource.asObservable(),this.loadingStatusSource=new o.X(!0),this.loadingStatus=this.loadingStatusSource.asObservable(),this._redirectURL="/home",this.loadUserData=function(e){var t={headers:f.dataSvc.HTTP_HEADERS,params:new r.LE({fromObject:{username:e}})};return f.http.get(f.URL+"/login/GetUserData",t).pipe((0,s.b)(function(e){try{e&&e.Object&&(f.userLoaded=e.Object)}catch(t){f.userLoaded=null}return e}))},this.fetchEmployee=function(e){var t={headers:f.dataSvc.HTTP_HEADERS,params:new r.LE({fromObject:{emplId:e}})};return f.http.get(f.URL+"/employee",t).pipe((0,s.b)(function(e){try{if(e&&e.Object){var t=e.Object;"string"==typeof t&&(t=JSON.parse(t)),f.changeEmployee(t)}}catch(n){console.error("[fetchEmployee] Error parseando employee",n),f.dataSvc.employee||f.changeEmployee(null)}return e}),(0,u.K)(function(e){return console.error("[fetchEmployee] HTTP error",e),(0,a.of)(null)}))},this.getUsername(),this.getToken(),this.checkTokenExpiration(),this.dataSvc.URL.subscribe(function(e){f.URL=e}),this.tokenObservable.subscribe(function(e){f.token=e,f.dataSvc.setToken(e)})}return b(e,[{key:"username",get:function(){return this._username},set:function(e){this._username=e}},{key:"redirectURL",get:function(){return this._redirectURL},set:function(e){this._redirectURL=e}},{key:"resetEmplId",get:function(){return this._resetEmplId},set:function(e){this._resetEmplId=e}},{key:"resetPwdHash",get:function(){return this._resetPwdHash},set:function(e){this._resetPwdHash=e}},{key:"checkTokenExpiration",value:function(){this.token&&new Date}},{key:"hasActiveAccount",value:function(){try{return null!=this.msal.instance.getActiveAccount()||this.msal.instance.getAllAccounts().length>0}catch(e){return!1}}},{key:"loginRedirect",value:function(){this.msal.loginRedirect({scopes:h.N.adal.scopes})}},{key:"getLoginGuid",value:function(e){var t="".concat(this.dataSvc.urlSource.getValue(),"/login/GetLoginGuid"),n=(new r.LE).set("guid",e);return this.http.get(t,{params:n})}},{key:"login",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&t){var i=new f(e,t);return new r.WM({}),this.changeloadingStatus(!0),this.http.post(this.URL+"/login/authenticate",i).pipe((0,s.b)(function(t){if(!t||!t.Token)return n.token;try{n.username=i.Username;var r=new Date(t.TokenExpiration);n.token=new l(t.Token,r)}catch(a){}o&&(n.storeToken(n.token),n.storeUsername(i.Username)),n.loadUserData(e).toPromise();try{n.changeToken(n.token),n.changeUsername(i.Username),n.fetchEmployee(i.Username).subscribe(),n.setUsername(i.Username),n.dataSvc.synchronizeEnvironment(n.token).subscribe(function(e){},function(e){})}catch(s){}return n.token},function(e){return n.changeloadingStatus(!1)}),(0,u.K)(function(e){return e}))}}},{key:"storeToken",value:function(e){localStorage.setItem("token",JSON.stringify(e))}},{key:"storeUsername",value:function(e){localStorage.setItem("username",e)}},{key:"isLoggedIn",value:function(){var e,t,n,r;try{return(null===(t=null===(e=this.token)||void 0===e?void 0:e.Content)||void 0===t?void 0:t.trim())&&(null===(r=null===(n=this.token)||void 0===n?void 0:n.TokenExpiration)||void 0===r?void 0:r.getTime())>=(new Date).getTime()}catch(o){return!1}}},{key:"logout",value:function(){this.changeToken(null),this.storeToken(null),this.storeUsername(""),this.changeUsername(""),this.changeEmployee(null),this.msal.logout()}},{key:"changeToken",value:function(e){this.tokenSource.next(e)}},{key:"getTokenObservable",value:function(){return this.tokenObservable}},{key:"changeUsername",value:function(e){this.usernameSource.next(e),this.dataSvc.changeUser(e)}},{key:"getUsernameObservable",value:function(){return this.username$}},{key:"getToken",value:function(){try{this.token=JSON.parse(localStorage.getItem("token")),this.token.TokenExpiration=new Date(this.token.TokenExpiration),this.changeToken(this.token)}catch(e){return null}return this.token}},{key:"logoutAndRedirect",value:function(){this.logout(),this.navCtrl.navigateRoot("/auth/login")}},{key:"getEmployeeObservable",value:function(){return this.dataSvc.employeeSource.asObservable()}},{key:"changeEmployee",value:function(e){e&&(null==e?void 0:e.Language)&&this._changeLanguageByEmployee(null==e?void 0:e.Language),this.dataSvc.changeEmployee(e)}},{key:"_changeLanguageByEmployee",value:function(e){this.dataSvc.changeLanguageId(e.toLocaleLowerCase())}},{key:"onDeniedAccess",value:function(){this.dataSvc.changeLoadingStatus(!1),this.msal.instance.getAllAccounts().length>0?this.navCtrl.navigateRoot("/"):this.msal.loginRedirect()}},{key:"getUsername",value:function(){try{var e=localStorage.getItem("username");e&&(this.username=e,this.changeUsername(e))}catch(t){return console.error("Error getting data from localStorage",t),null}return this.username}},{key:"getPassword",value:function(){return this.password}},{key:"setUsername",value:function(e){this.username=e}},{key:"setPassword",value:function(e){this.password=e}},{key:"changeloadingStatus",value:function(e){this.loadingStatusSource.next(e)}},{key:"getLoadingStatusObservable",value:function(){return this.loadingStatus}},{key:"RequestPasswordReset",value:function(e){var t=new f(e);return this.changeloadingStatus(!0),this.http.post(this.URL+"/Auth/RequestPasswordReset",t).pipe((0,s.b)(function(e){return e},function(e){}))}},{key:"ResetPassword",value:function(e){var t={headers:this.dataSvc.HTTP_HEADERS};return e.Username=this.username,this.http.put(this.URL+"/Auth/ResetPassword",e,t).pipe((0,s.b)(function(e){return e},function(e){return e}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.LFG(c.D),d.LFG(r.eN),d.LFG(p.SH),d.LFG(m.W2))},e.\u0275prov=d.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},68161:function(e,t,n){"use strict";n.r(t),n.d(t,{SettingsPageModule:function(){return I}});var r=n(61116),o=n(11462),i=n(26239),a=n(71290),s=n(64762),c=n(31305),l=n(40878),f=n(44689),h=n(18172),d=n(2139),p=function e(t,n,r,o){w(this,e),this.DataAreaId=t,this.Images=n,this.Name=r,this.CompanyColors=o},m=n(31063),y=n(35366),v=n(28302),g=n(32488),_=function(e){return{p1:e}};function k(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"ion-list"),y.TgZ(1,"ion-list-header"),y.TgZ(2,"ion-label",2),y.TgZ(3,"strong"),y._uU(4),y.ALo(5,"translate"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(6,"ion-item",17),y.NdJ("
1click",function(){return y.CHM(n),y.oxw().onLogOut()}),y.TgZ(7,"ion-label",18),y._uU(8),y.ALo(9,"translate"),y.qZA(),y.qZA(),y.qZA()}if(2&e){var r=y.oxw();y.xp6(4),y.hij("",y.xi3(5,2,"AUTH.ACCOUNT",y.VKq(7,_,r.accountEmail))," "),y.xp6(4),y.Oqu(y.lcZ(9,5,"AUTH.LOG_OUT"))}}function S(e,t){1&e&&(y.TgZ(0,"ion-item",19),y.TgZ(1,"ion-label",20),y._uU(2),y.ALo(3,"translate"),y.qZA(),y._UZ(4,"ion-input",21),y.qZA()),2&e&&(y.Q6J("disabled",!0),y.xp6(2),y.Oqu(y.lcZ(3,2,"GLOBAL.COMPANY")))}function C(e,t){if(1&e&&(y.TgZ(0,"div",25),y.TgZ(1,"ion-select-option",26),y._uU(2),y.qZA(),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.s9C("value",n.Id),y.xp6(1),y.Oqu(n.Id+" - "+n.Label)}}function E(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"ion-item",22),y.TgZ(1,"ion-label",20),y._uU(2),y.ALo(3,"translate"),y.qZA(),y.TgZ(4,"ion-select",23),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().lang=e})("ionChange",function(e){return y.CHM(n),y.oxw().langSelectionChanged(e)}),y.YNc(5,C,3,2,"div",24),y.qZA(),y.qZA()}if(2&e){var r=y.oxw();y.xp6(2),y.Oqu(y.lcZ(3,3,"GLOBAL.LANGUAGE")),y.xp6(2),y.Q6J("ngModel",r.lang),y.xp6(1),y.Q6J("ngForOf",r.dataSvc.languages)}}var T,x=function(){var e=function(){function e(t,n,r,o,i,a,s,u,c){var l=this;w(this,e),this.authSvc=t,this.dataSvc=n,this.router=r,this.loadingController=o,this.translateSvc=i,this.toastController=a,this.modalCtrl=s,this.navCtrl=u,this.msalSvc=c,this.apiURL="",this.objectKeys=Object.keys,this._saveIcon="save",this._savedIcon="checkmark",this._apiUrlStatusIcon=this.savedIcon,this._API_URL_CONTROL_NAME="apiUrl",this.fetchCompaniesCallback=function(){},this.selectInternalReceptionCompanyCallback=function(e){l.selectedCompany=e,l.companyForm.get("company").setValue(l.selectedCompany.DataAreaId),l.dataSvc.saveCompany(e.DataAreaId),l.dismissModalLookup()},this.dismissModalLookup=function(){l.modalCtrl.dismiss()}}return b(e,[{key:"saveIcon",get:function(){return this._saveIcon}},{key:"savedIcon",get:function(){return this._savedIcon}},{key:"apiUrlStatusIcon",get:function(){return this._apiUrlStatusIcon}},{key:"API_URL_CONTROL_NAME",get:function(){return this._API_URL_CONTROL_NAME}},{key:"ngOnInit",value:function(){this.companyForm=new o.cw({company:new o.NI("")}),this.registerSubscriptions()}},{key:"ngOnDestroy",value:function(){m.F.unsubscribe(this._apiURLUsernameEmployeeSubscription),m.F.unsubscribe(this._companiesSubscription),m.F.unsubscribe(this._selectedCompanySubscription),m.F.unsubscribe(this._selectedLanguageSubscription),m.F.unsubscribe(this._colorsSubscription),m.F.unsubscribe(this._aosSubscription)}},{key:"ngAfterViewInit",value:function(){}},{key:"getCmpImageSrc",value:function(e){return e&&e.Images&&e.Images.length?this.dataSvc.str64ToImgSrc(e.Images[this.dataSvc.SMALL_CMP_IMAGE_IDX]):""}},{key:"registerSubscriptions",value:function(){this.apiURLFormControlInitAndSubscription(),this.apiURLUserEmployeeSubscription(),this.companiesSubscription(),this.selectedCompanySubscription(),this.selectedLanguageSubscription(),this.colorsSubscription(),this.aosSubscription()}},{key:"onLogOut",value:function(){this.authSvc.logout(),this.router.navigate(["/auth/login"])}},{key:"apiURLFormControlInitAndSubscription",value:function(){var e=this;this.apiUrlControl=new o.NI("");var t={};t[this.API_URL_CONTROL_NAME]=this.apiUrlControl,this.apiUrlControl.valueChanges.subscribe(function(t){e._apiUrlStatusIcon=t!==e.oldApiUrl?e._saveIcon:e._savedIcon,e.apiURL=t}),this.apiForm=new o.cw(t)}},{key:"apiURLUserEmployeeSubscription",value:function(){var e,t=this,n=this.authSvc.username$,r=this.dataSvc.gertApiURLObservable();this._apiURLUsernameEmployeeSubscription=(0,c.aj)([r,n]).pipe((0,f.w)(function(n){var r=u(n,2),o=r[0],i=r[1];if((t.oldApiUrl=o,o)&&(t.apiForm.get(t.API_URL_CONTROL_NAME).setValue(o),e!==(e=i)&&e))return t.authSvc.fetchEmployee(i);return(0,l.of)(null)})).subscribe(),this.dataSvc.displayNameObservable().subscribe(function(e){e&&(t.username=e);var n=t.msalSvc.instance.getActiveAccount()||t.msalSvc.instance.getAllAccounts()[0];t.accountEmail=(null==n?void 0:n.username)||t.username})}},{key:"companiesSubscription",value:function(){var e=this;this._companiesSubscription=this.dataSvc.getCompaniesObservable().subscribe(function(t){e.companies=t})}},{key:"selectedCompanySubscription",value:function(){var e=this;this._selectedCompanySubscription=this.dataSvc.selectedCompany.subscribe(function(t){e.selectedCompany=t,e.selectedCompany||(e.selectedCompany=new p(e.dataSvc.DEFAULT_CMP)),e.companyForm.get("company").setValue(e.selectedCompany.DataAreaId),e.cmpImageSrc=e.getCmpImageSrc(t)})}},{key:"selectedLanguageSubscription",value:function(){var e=this;this._selectedLanguageSubscription=this.dataSvc.getselectedLanguageObservable().subscribe(function(t){t&&(e.lang=t.Id)})}},{key:"colorsSubscription",value:function(){var e=this;this._colorsSubscription=this.dataSvc.getColorsObservable().subscribe(function(t){t&&(e.colors=t)})}},{key:"aosSubscription",value:function(){var e=this;this._aosSubscription=this.dataSvc.getAOSObservable().subscribe(function(t){t&&(e.aos=t)})}},{key:"showToast",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"dark",o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function i(){var a,s;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:for(a="",s=0;s<e.length;s++)a+=e[s],(s+1)%50==0&&(a+="\n");return i.next=4,this.toastController.create({message:a,duration:t,position:n,color:r,translucent:o});case 4:i.sent.present();case 5:case"end":return i.stop()}},i,this)}))}},{key:"changeLoadingStatus",value:function(e){e&&!this.loadingStatus?this.presentLoading():e||this.hideLoading(),this.loadingStatus=e}},{key:"presentLoading",value:function(){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.loadingStatus=!0,e.next=3,this.loadingController.create({spinner:"crescent",message:this.translateSvc.instant("GLOBAL.LOADING_TEXT"),translucent:!0,cssClass:"loading-pane"}).then(function(e){e.present().then(function(){t.loadingStatus||e.dismiss().then(function(){})})});case 3:case"end":return e.stop()}},e,this)}))}},{key:"hideLoading",value:function(){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.loadingStatus=!1,e.prev=1,e.next=4,this.loadingController.getTop();case 4:e.sent.dismiss().then(function(){}),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(1);case 9:case"end":return e.stop()}},e,this,[[1,7]])}))}},{key:"onClearMetadata",value:function(){try{this.dataSvc.clearMetaData(),this.dataSvc.setApiURL(""),this.dataSvc.saveCompany(this.dataSvc.DEFAULT_CMP),this.showToast(this.translateSvc.instant("SETTINGS.METADATA_CLEARED"),2e3,"")}catch(e){}}},{key:"cmpSelectionChanged",value:function(e){this.dataSvc.saveCompany(e.target.value)}},{key:"langSelectionChanged",value:function(e){this.lang=e.target.value,this.dataSvc.changeLanguageId(this.lang)}},{key:"onSelectFocused",value:function(e){document.querySelectorAll(".alert-radio-label.sc-ion-alert-md")}},{key:"onColorChange",value:function(e){e.initRGB(),this.saveColors()}},{key:"saveColors",value:function(){this.dataSvc.changeColors(this.colors)}},{key:"updateImage",value:function(e){document.querySelectorAll(".alert-radio-label.sc-ion-alert-md").forEach(function(e,t){})}},{key:"presentCompaniesLookup",value:function(e){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)}))}},{key:"onSaveApiURL",value:function(){var e=this.apiForm.get(this.API_URL_CONTROL_NAME).value;this._apiUrlStatusIcon=this._savedIcon,this.dataSvc.setApiURL(e)}},{key:"onGoBack",value:function(){this.navCtrl.navigateForward("/")}},{key:"ionViewWillEnter",value:function(){this.dataSvc.changeTitle("SETTINGS.SETTINGS")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.Y36(h.e),y.Y36(d.D),y.Y36(i.F0),y.Y36(a.HT),y.Y36(v.sK),y.Y36(a.yF),y.Y36(a.IN),y.Y36(a.SH),y.Y36(g.W2))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-settings"]],decls:32,vars:21,consts:[[1,"ion-padding"],[4,"ngIf"],["color","dark"],[3,"formGroup"],["class","company",3,"disabled",4,"ngIf"],[1,"api-url"],["position","stacked",1,"btn-action","logout-btn"],["type","text","clearInput","",3,"formControlName","placeholder"],["slot","end",1,"centered-btns"],[3,"disabled","click"],["color","primary",3,"name"],[1,"metadata",3,"click"],["color","primary",1,"btn-action","logout-btn"],["class","lang",4,"ngIf"],[1,"bottom-btns-container"],[3,"click"],["name","arrow-back"],[1,"account",3,"click"],["color","danger",1,"btn-action","logout-btn"],[1,"company",3,"disabled"],["position","floating"],["formControlName","company","type","text","clearInput",""],[1,"lang"],["color","primary","ok-text","Aceptar","cancel-text","Cancelar",3,"ngModel","ngModelChange","ionChange"],["class","ion-select-option-container",4,"ngFor","ngForOf"],[1,"ion-select-option-container"],[3,"value"]],template:function(e,t){1&e&&(y.TgZ(0,"ion-content",0),y.YNc(1,k,10,9,"ion-list",1),y.TgZ(2,"ion-list"),y.TgZ(3,"ion-list-header"),y.TgZ(4,"ion-label",2),y.TgZ(5,"strong"),y._uU(6),y.qZA(),y.qZA(),y.qZA(),y.TgZ(7,"form",3),y.YNc(8,S,5,4,"ion-item",4),y.qZA(),y.TgZ(9,"form",3),y.TgZ(10,"ion-item",5),y.TgZ(11,"ion-label",6),y._uU(12),y.ALo(13,"translate"),y.qZA(),y._UZ(14,"ion-input",7),y.ALo(15,"translate"),y.TgZ(16,"ion-buttons",8),y.TgZ(17,"ion-button",9),y.NdJ("
1click",function(){return t.onSaveApiURL()}),y._UZ(18,"ion-icon",10),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(19,"ion-item",11),y.NdJ("click",function(){return t.onClearMetadata()}),y.TgZ(20,"ion-label",12),y._uU(21),y.ALo(22,"translate"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(23,"ion-list"),y.YNc(24,E,6,5,"ion-item",13),y.qZA(),y.TgZ(25,"div",14),y.TgZ(26,"ion-buttons"),y.TgZ(27,"ion-button",15),y.NdJ("click",function(){return t.onGoBack()}),y._UZ(28,"ion-icon",16),y.TgZ(29,"ion-label"),y._uU(30),y.ALo(31,"translate"),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.Q6J("ngIf",t.username),y.xp6(5),y.hij("Axapta ",t.aos?" - "+t.aos:"",""),y.xp6(1),y.Q6J("formGroup",t.companyForm),y.xp6(1),y.Q6J("ngIf",t.selectedCompany),y.xp6(1),y.Q6J("formGroup",t.apiForm),y.xp6(3),y.hij(" ",y.lcZ(13,13,"SETTINGS.API_URL"),""),y.xp6(2),y.s9C("placeholder",y.lcZ(15,15,"SETTINGS.API_URL")),y.Q6J("formControlName",t.API_URL_CONTROL_NAME),y.xp6(3),y.Q6J("disabled",t.apiUrlStatusIcon==t.savedIcon),y.xp6(1),y.Q6J("name",t.apiUrlStatusIcon),y.xp6(3),y.Oqu(y.lcZ(22,17,"SETTINGS.CLEAR_METADATA")),y.xp6(3),y.Q6J("ngIf",t.lang),y.xp6(6),y.Oqu(y.lcZ(31,19,"GLOBAL.GO_BACK")))},directives:[a.W2,r.O5,a.q_,a.yh,a.Q$,o._Y,o.JL,o.sg,a.Ie,a.pK,a.j9,o.JJ,o.u,a.Sm,a.YG,a.gu,a.t9,a.QI,o.On,r.sg,a.n0],pipes:[v.X$],styles:[".logout-btn[_ngcontent-%COMP%]{max-width:10rem}.logout-btn[_ngcontent-%COMP%]:hover{cursor:pointer}.logo-preview[_ngcontent-%COMP%]{max-width:5rem;height:auto;max-height:2rem;position:absolute;top:2rem}.color[_ngcontent-%COMP%]{display:flex;align-items:center}.color[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{width:4rem}.color[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-left:4rem}.centered-btns[_ngcontent-%COMP%]{height:100%}.bottom-btns-container[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0;padding:.5rem}"]}),e}(),O=n(75425),A=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[r.ez,o.UX,a.Pc,O.m]]}),e}(),R=[{path:"",children:[{path:"",component:x,pathMatch:"full"},{path:"log",loadChildren:function(){return n.e(4045).then(n.bind(n,74045)).then(function(e){return e.EAXLogPageModule})}}]}],I=((T=function e(){w(this,e)}).\u0275fac=function(e){return new(e||T)},T.\u0275mod=y.oAB({type:T}),T.\u0275inj=y.cJS({imports:[[r.ez,o.UX,o.u5,a.Pc,O.m,A,i.Bz.forChild(R)]]}),T)},88123:function(e,t,n){"use strict";n.d(t,{t:function(){return f}});var r=n(35366),o=n(71290),i=n(61116),a=n(28302);function s(e,t){if(1&e&&(r.TgZ(0,"ion-note"),r._UZ(1,"ion-icon",8),r.qZA()),2&e){var n=r.oxw(2).$implicit;r.xp6(1),r.s9C("name",n.Icon),r.Q6J("color",n.Color)}}var u=function(e){return{"no-border":e}};function c(e,t){if(1&e){var n=r.EpF();r.TgZ(0,"ion-item",4),r.NdJ("click",function(e){return r.CHM(n),r.oxw().$implicit.Callback(e)}),r.TgZ(1,"ion-label",5),r.YNc(2,s,2,2,"ion-note",6),r.TgZ(3,"span",7),r._uU(4),r.ALo(5,"translate"),r.qZA(),r.qZA(),r.qZA()}if(2&e){var o=r.oxw().$implicit,i=r.oxw();r.Gre("option ",o.CssClass,""),r.Q6J("ngClass",r.VKq(8,u,1==i.options.length)),r.xp6(2),r.Q6J("ngIf",o.Icon),r.xp6(2),r.Oqu(r.lcZ(5,6,o.Label))}}function l(e,t){if(1&e&&(r.TgZ(0,"div",2),r.YNc(1,c,6,10,"ion-item",3),r.qZA()),2&e){var n=t.$implicit;r.xp6(1),r.Q6J("ngIf",n.Active)}}var f=function(){var e=function(){function e(t){w(this,e),this.navParams=t,this.objectKeys=Object.keys}return b(e,[{key:"ngOnInit",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(o.X1))},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-eax-options"]],inputs:{options:"options"},decls:2,vars:1,consts:[[1,"eax-list"],["class","option-container",4,"ngFor","ngForOf"],[1,"option-container"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"],[1,"label"],[4,"ngIf"],[1,"text"],[1,"icon",3,"color","name"]],template:function(e,t){1&e&&(r.TgZ(0,"ion-list",0),r.YNc(1,l,2,1,"div",1),r.qZA()),2&e&&(r.xp6(1),r.Q6J("ngForOf",t.options))},directives:[o.q_,i.sg,i.O5,o.Ie,i.mk,o.Q$,o.uN,o.gu],pipes:[a.X$],styles:[".eax-list[_ngcontent-%COMP%]{padding:0}.eax-list[_ngcontent-%COMP%] .option-container[_ngcontent-%COMP%]:last-child .option[_ngcontent-%COMP%]{--border-width:0}.eax-list[_ngcontent-%COMP%] .option-container[_ngcontent-%COMP%] .option[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:flex;align-items:center}.eax-list[_ngcontent-%COMP%] .option-container[_ngcontent-%COMP%] .option[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}.eax-list[_ngcontent-%COMP%] .option-container[_ngcontent-%COMP%] .option[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:1rem;margin-right:.5rem}.eax-list[_ngcontent-%COMP%] .option-container[_ngcontent-%COMP%] .option[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:smaller}"]}),e}()},2139:function(e,t,n){"use strict";n.d(t,{D:function(){return j}});var r=n(64762),o=n(42693),i=n(35366),a=n(82250),u=n(62707),c=n(78512),l=n(74156),f=n(40878),h=n(19764),d=n(31305),p=n(66599),m=n(56238),y=n(44689),v=n(47727),g=n(43835),_=n(90611),k=n(79996),S=n(529),C=n(31063),E=function(){function e(t,n,r,o){w(this,e),this.Hex=t,this.R=n,this.G=r,this.B=o,this.initRGB()}return b(e,[{key:"initRGB",value:function(){if(this.Hex){var e=C.F.hexToRGB(this.Hex);this.R=e[0],this.G=e[1],this.B=e[2]}
1}},{key:"rgba",value:function(e){return this.R+","+this.G+","+this.B+","}}]),e}(),T=function e(t,n,r,o,i){w(this,e),this.Name=t,this.Icon=n,this.Label=r,this.Url=o,this.Roles=i},x=function e(t,n,r){w(this,e),this.Main=t,this.Contrast=n,this.Label=r},O=function e(t,n){w(this,e),this.Id=t,this.Label=n},A=function e(t,n,r){w(this,e),this.TimeStamp=t,this.Message=n,this.Type=r},R=n(40002),I=n(71290),P=n(28302),M=n(11653),N=n(99624),j=function(){var e=function(){function e(t,n,a,s,u,f,h,d){var m=this;w(this,e),this.http=t,this.loadingController=n,this.toastController=a,this.alertController=s,this.translateSvc=u,this.storage=f,this.clipboard=h,this.sanitizer=d,this.loginEmit=new i.vpe,this.debugModeEnabled=!0,this.API_URL_KEY="API_URL",this.QTY_FORMAT_KEY="EAXGQtyFormat",this.SMALL_CMP_IMAGE_IDX=0,this.NEGATIVE_SMALL_CMP_IMAGE_IDX=1,this.BIG_CMP_IMAGE_IDX=2,this.INVENT_NON_CONFORMANCE_TYPE="InventNonConformanceType",this.enumNames=[this.INVENT_NON_CONFORMANCE_TYPE],this.DEFAULT_CMP="ABC",this.urlSource=new c.X(S.N.defaultApiUrl),this.userSource=new l.t(1),this.enumsSource=new c.X(null),this.companiesSource=new c.X([]),this.selectedCompanySource=new c.X(null),this.languageSource=new c.X(null),this.colorsSource=new c.X(null),this.aosSource=new c.X(""),this.unitsSource=new c.X(null),this._displayNameSource=new c.X(""),this._employeeSource=new c.X(void 0),this._titleSrc=new c.X(void 0),this._menuActionsSrc=new c.X(void 0),this._loadingText="",this._LOADING_TEXT_LABEL="GLOBAL.LOADING_TEXT",this._languages=[new O("es","Espa\xf1ol"),new O("en-gb","Ingl\xe9s"),new O("fr","Franc\xe9s")],this._entities=[new T("home","home","GLOBAL.HOME","/home"),new T("service-orders","paper","REQUESTS.SUPPLIES","/service-orders"),new T("request","nutrition","REQUESTS.REQUESTS","/request")],this.URL=this.urlSource.asObservable(),this.selectedCompany=this.selectedCompanySource.asObservable(),this.getAPIURL=function(){return(0,r.mG)(m,void 0,void 0,regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.urlSource||!this.urlSource.value){e.next=2;break}return e.abrupt("return",this.urlSource.value);case 2:return e.prev=2,e.next=5,this.urlSource.toPromise();case 5:t=e.sent,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),t="";case 11:return e.abrupt("return",t);case 12:case"end":return e.stop()}},e,this,[[2,8]])}))},this.synchronizeEnvironment=function(e){var t={networkAlias:m.username};e&&m.setToken(e);var n={headers:m.HTTP_HEADERS,params:new o.LE({fromObject:t})};return m.http.get(m.urlSource.getValue()+"/metadata/syncenvironment",n).pipe((0,p.b)(m.loadMetadata,function(e){return console.log(e)}))},this.storeMetadata=function(e){m.storage.set("metadata",m.metadata).then(function(e){})},this.clearMetaData=function(){m.storage.clear()},this.loadMetadata=function(e){return m.metadata=e,!m.metadata.cmp&&m.languageSource.getValue()&&m.setLanguage(m.languageSource.getValue().Id),m.metadata.cmp||m.setSelectedCompany(m.selectedCompanySource.getValue()?m.selectedCompanySource.getValue().DataAreaId:m.DEFAULT_CMP),m.metadata.aos&&m.changeAOS(m.metadata.aos),m.metadata.units&&m.changeUnits(m.metadata.units),m.updateHttpHeaders(),m.changeCompanies(m.metadata.cmpList),m.defineEnumRules(m.metadata.enumList),m.loadLanguage(m.metadata.lang),m.loadCompany(m.metadata.cmp),m.initColors(),m.storage.set("metadata",m.metadata).then(),m.getEnumsObservable()},this.onHttpError=function(e){m.addLogMessage(C.F.stringify(e),"danger")},this.logWarning=function(e){return m.addLogMessage(e,"danger")},this.logInfo=function(e){return m.addLogMessage(e,"info")},this.logError=function(e){return m.addLogMessage(e,"danger")},this.addLogMessage=function(e,t){return e=C.F.stringify(e),m.logs||(m.logs=[]),m.logs.push(new A(new Date,e,t)),m.storeLogMessage()},this.showGlobalErrorToast=function(){m.showToast("GLOBAL.ERROR.ERROR_HAS_OCCURRED",3e3,"bottom","danger",!0)},this.showAccessDenied=function(){m.showWarningToast("GLOBAL.DENIED_ACCESS")},this.showWarningToast=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];m.showToast(e,6e3,"bottom","warning",!0,n)},this.showSuccessToast=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3;m.showToast(e,t,"bottom","success",!0)},this.showErrorToast=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.shift();m.showToast(r,3e3,"bottom","danger",!0,t)},this.showToast=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"dark",i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0;return(0,r.mG)(m,void 0,void 0,regeneratorRuntime.mark(function r(){var s;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return s=C.F.arr2TranslationObject(a),r.next=3,this.toastController.create({message:this.translateSvc.instant(e,s),duration:t,position:n,color:o,translucent:i,cssClass:"eax-toast "+o,animated:!0,buttons:[{text:this.translateSvc.instant("GLOBAL.CLOSE"),cssClass:"eax-toast-btn",handler:function(){}}]});case 3:r.sent.present();case 4:case"end":return r.stop()}},r,this)}))},this.changeApiURL=function(e){m.urlSource.next(m.normalizeApiUrl(e))},this.onAPIURLInit=function(e){return e||(e=S.N.defaultApiUrl),m.changeApiURL(e),e},this.getMenuActionsObservable=function(){return m._menuActionsSrc.asObservable()},this.changeMenuActions=function(e){return m._menuActionsSrc.next(e)},this.getTitleObservable=function(){return m._titleSrc.asObservable()},this.changeTitle=function(e){return m._titleSrc.next(e)},this.getEmployeeObservable=function(){return m._employeeSource.asObservable()},this.emitLogin=function(){m.loginEmit.emit(!0)},this.getEmittedLogin=function(){return m.loginEmit},this._employeeSource.subscribe(function(e){m._employee=e,m._employee&&m._employee.EmplId.toUpperCase()})}return b(e,[{key:"employeeSource",get:function(){return this._employeeSource}},{key:"employee",get:function(){return this._employee}},{key:"languages",get:function(){return this._languages}},{key:"entities",get:function(){return this._entities}},{key:"isMobile",get:function(){return this._isMobile},set:function(e){this._isMobile=e}},{key:"user$",value:function(){var e=this;return this.userSource.pipe((0,m.O)(null),(0,y.w)(function(t){var n;return t?(e.username=t,n=t):n="",(0,f.of)(n)}),(0,v.K)(function(e){return(0,f.of)("")}))}},{key:"whenUsernameReady",value:function(e){return this.userSource.pipe((0,g.h)(function(e){return!!e}),(0,_.q)(1),(0,y.w)(e))}},{key:"apiURL$",value:function(){var e=this,t=this.getApiURL();return(0,h.D)(t).pipe((0,y.w)(function(t){return(0,f.of)(e.onAPIURLInit(t))}),(0,v.K)(function(e){return(0,f.of)("")}))}},{key:"metadataFromStorage$",value:function(){var e=this,t=this.storage.get("metadata");return(0,h.D)(t).pipe((0,y.w)(function(t){return t?e.loadMetadata(t).pipe((0,y.w)(function(e){return(0,f.of)(null)})):e.username?e.synchronizeEnvironment().pipe((0,y.w)(function(e){return(0,f.of)(null)})):(0,f.of)(null)}),(0,v.K)(function(e){return(0,f.of)("")}))}},{key:"selectedCompany$",value:function(){var e=this;return this.selectedCompany.pipe((0,k.U)(function(t){t&&e.metadata&&(e.setSelectedCompany(t.DataAreaId),e.storeMetadata(e.metadata),e.setGlobalCompanyInfo(t),e.metadata.cmp=t.DataAreaId,e.updateHttpHeaders())})).pipe((0,v.K)(function(e){return(0,f.of)("")}))}},{key:"languageSrc$",value:function(){var e=this;return this.languageSource.pipe((0,p.b)(function(t){return(0,r.mG)(e,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=t&&this.metadata,!e.t0){e.next=12;break}if(this.setLanguage(t.Id),this.storeMetadata(this.metadata),this.translateSvc.use(t.Id),this.metadata.lang=t.Id,this.updateHttpHeaders(),e.t1=this.prevLangId&&t.Id&&this.prevLangId!==t.Id,!e.t1){e.next=11;break}return e.next=11,this.synchronizeEnvironment().toPromise();case 11:this.prevLangId=t.Id;case 12:case"end":return e.stop()}},e,this)}))})).pipe((0,v.K)(function(e){return console.error(e),(0,f.of)("")}))}},{key:"colorsSrc$",value:function(){var e=this;return this.colorsSource.pipe((0,k.U)(function(t){t&&(e.storeColors(t),e.setColors(t))})).pipe((0,v.K)(function(e){return(0,f.of)("")}))}},{key:"InitApp",value:function(){this.initLanguageSettings();var e=[this.user$(),this.apiURL$(),this.metadataFromStorage$(),this.selectedCompany$(),this.languageSrc$()];return(0,d.aj)(e).pipe((0,v.K)(function(e){return(0,f.of)("")}))}},{key:"changeEmployee",value:function(e){this.employeeSource.next(e)}},{key:"setLanguage",value:function(e){this.metadata.lang=e}},{key:"setSelectedCompany",value:function(e){this.metadata.cmp=e}},{key:"readLocalMetadata",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.storage.get("metadata").then(function(n){n?e.loadMetadata(n).subscribe(function(){},function(e){}):t&&e.synchronizeEnvironment().toPromise()},function(e){})}},{key:"defineEnumRules",value:function(e){if(!e)return"";this.changeEnums(e)}},{key:"changeEnums",value:function(e){this.enumsSource.next(e)}},{key:"changeCompanies",value:function(e){this.companiesSource.next(e)}},{key:"changeAOS",value:function(e){this.aosSource.next(e)}},{key:"changeUnits",value:function(e){this.unitsSource.next(e)}},{key:"changeLanguage",value:function(e){this.languageSource.next(e)}},{key:"changeLanguageId",value:function(e){var t=this.findLanguage(e);t&&t.Id&&this.changeLanguage(t)}},{key:"changeNavStatus",value:function(e){this.navStatus!==e&&(this.navStatus=e)}},{key:"getNavStatus",value:function(){return this.navStatus}},{key:"getEnumsObservable",value:function(){return this.enumsSource.asObservable()}},{key:"getCompaniesObservable",value:function(){return this.companiesSource.asObservable()}},{key:"getselectedLanguageObservable",value:function(){return this.languageSource.asObservable()}},{key:"getColorsObservable",value:function(){return this.colorsSource.asObservable()}},{key:"getAOSObservable",value:function(){return this.aosSource.asObservable()}},{key:"getUnitsObservable",value:function(){return this.unitsSource.asObservable()}},{key:"setColor",value:function(e,t,n,r){var o=document.querySelector(":root");o.style.setProperty(e,t.Hex),o.style.setProperty(e+"-rgb",t.R+", "+t.G+", "+t.B),o.style.setProperty(e+"-contrast",n.Hex),o.style.setProperty(e+"-contrast-rgb",n.R+", "+n.G+", "+n.B)}},{key:"setColors",value:function(e){var t=this;Object.keys(e).map(function(n){var r=e[n];t.setColor(n,r.Main,r.Contrast,1)})}},{key:"initColors",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=e,t.t0){t.next=5;break}return t.next=4,this.loadColors();case 4:e=t.sent;case 5:e||((e={})["--ion-color-primary"]=new x(new E("#ff7900"),new E("#ffffff"),"SETTINGS.COLORS.MAIN"),e["--ion-color-secondary"]=new x(new E("#009b48"),new E("#ffffff"),"SETTINGS.COLORS.SECONDARY")),this.changeColors(e);case 7:case"end":return t.stop()}},t,this)}))}},{key:"saveCompany",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.DEFAULT_CMP,t=this.companiesSource.value,n=this.findCompany(e);n||(n=t[0]),this.changeSelectedCompany(n)}},{key:"loadColors",value:function(){try{return this.storage.get("cmp_colors").then(function(e){var t;return e&&(t={},Object.keys(e).map(function(n){var r=e[n],o=new E(r.Main.Hex,r.Main.R,r.Main.G,r.Main.B),i=new E(r.Contrast.Hex,r.Contrast.R,r.Contrast.G,r.Contrast.B);t[n]=new x(o,i,r.Label)})),t},function(e){return console.error("Trying to read colors config.")})}catch(e){}}},{key:"changeURL",value:function(e){this.urlSource.next(e)}},{key:"changeUser",value:function(e){this.userSource.next(e)}},{key:"usernameObservable",value:function(){return this.userSource.asObservable()}},{key:"displayNameObservable",value:function(){return this._displayNameSource.asObservable()}},{key:"changeDisplayName",value:function(e){this._displayNameSource.next(e)}},{key:"changeSelectedCompany",value:function(e){e&&this.selectedCompanySource.next(e)}},{key:"changeColors",value:function(e){e&&this.colorsSource.next(e)}},{key:"setToken",value:function(e){this.TOKEN=e,this.updateHttpHeaders()}},{key:"updateHttpHeaders",value:function(){this.HTTP_HEADERS=new o.WM({"Content-Type":"application/json",cmp:this.metadata&&this.metadata.cmp?this.metadata.cmp:"",lang:this.metadata&&this.metadata.lang?this.metadata.lang:"",Authorization:this.TOKEN?this.TOKEN.Content:""})}},{key:"storeColors",value:function(e){try{return this.storage.set("cmp_colors",e)}catch(t){}}},{key:"str64ToImgSrc",value:function(e){var t=this.base64ToArrayBuffer(e);return this.sanitizer.bypassSecurityTrustResourceUrl(window.URL.createObjectURL(new Blob([t])))}},{key:"base64ToArrayBuffer",value:function(e){for(var t=window.atob(e),n=t.length,r=new Uint8Array(n),o=0;o<n;o++)r[o]=t.charCodeAt(o);return r.buffer}},{key:"findCompany",value:function(e){if(this.companiesSource.value){var t,n=s(this.companiesSource.value);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.DataAreaId===e)return r}}catch(o){n.e(o)}finally{n.f()}}return null}},{key:"loadCompany",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.DEFAULT_CMP,t=this.companiesSource.value;if(t){var n=this.findCompany(e);n||(n=t[0]),n&&this.changeSelectedCompany(n)}}},{key:"initLanguageSettings",value:function(){this.translateSvc.setDefaultLang(e.DEFAULT_LANG)}},{key:"loadLanguage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.DEFAULT_LANG,n=this.findLanguage(t);n||(n=this._languages[0]),n&&this.changeLanguage(n)}},{key:"findLanguage",value:function(e){var t,n=s(this._languages);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.Id===e)return r}}catch(o){n.e(o)}finally{n.f()}return null}},{key:"setGlobalCompanyInfo",value:function(e){document.querySelector("#global_title").innerHTML=e.Name}},{key:"storeLogMessage",value:function(){return this.storage.set("msg_log",this.logs)}},{key:"readLogMessage",value:function(){var e=this;this.storage.get("msg_log").then(function(t){e.logs=t})}},{key:"getLogMessages",value:function(){return this.logs}},{key:"changeLoadingStatus",value:function(e,t){e&&!this._loadingStatus?(this._loadingStatus=e,this.presentLoading(t)):!e&&this._loadingStatus&&(this._loadingStatus=e,this.hideLoading())}},{key:"presentLoading",value:function(e){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this._loadingText,t.t0){t.next=4;break}return t.next=4,this.translateSvc.get(this._LOADING_TEXT_LABEL).toPromise().then(function(e){return n._loadingText=e},function(e){});case 4:return t.next=6,this.loadingController.create({spinner:"crescent",message:this._loadingText?this._loadingText:this.translateSvc.instant(this._LOADING_TEXT_LABEL),translucent:!0,cssClass:"loading-pane",duration:e}).then(function(e){e.present().then(function(){n._loadingStatus||e.dismiss().then(function(){})})});case 6:case"end":return t.stop()}},t,this)}))}},{key:"hideLoading",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.loadingController.getTop();case 3:e.sent.dismiss(),e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:case"end":return e.stop()}},e,this,[[0,6]])}))}},{key:"confirm",value:function(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new R.B("GLOBAL.ACCEPT"),a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new R.B("GLOBAL.CANCEL"),s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7?arguments[7]:void 0;return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function r(){var c,l,f;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return c=[{text:this.translateSvc.instant(a.Label,a.Params),role:"cancel",cssClass:"eax-bold modal-cancel-btn",handler:o},{text:this.translateSvc.instant(i.Label,i.Params),handler:n,cssClass:"modal-accept-btn"}],s&&(c=c.reverse()),u&&(l={text:this.transl
1ateSvc.instant(u.Label,u.Params),handler:function(){return!0},cssClass:"modal-dismiss-btn"},c.unshift(l)),r.next=4,this.alertController.create({header:this.translateSvc.instant(e.Label,C.F.arr2TranslationObject(e.Params)),message:this.translateSvc.instant(t.Label,C.F.arr2TranslationObject(t.Params)),cssClass:"eax-modal-confirmation",buttons:c});case 4:return f=r.sent,r.next=7,f.present();case 7:case"end":return r.stop()}},r,this)}))}},{key:"getApiURL",value:function(){return this.storage.get(this.API_URL_KEY)}},{key:"gertApiURLObservable",value:function(){return this.urlSource.asObservable()}},{key:"setApiURL",value:function(e){if(this.urlSource)return e||(e=S.N.defaultApiUrl),this.changeApiURL(e),this.storage.set(this.API_URL_KEY,e)}},{key:"canMakeHttpRequests",value:function(){return this.urlSource.pipe((0,k.U)(function(e){return""!==e}))}},{key:"normalizeApiUrl",value:function(e){return(e||"").replace(/\/+$/,"")}},{key:"isUrlAllowed",value:function(e){if(this._employee&&this._employee.modules&&this._employee.modules.length>=1){var t,n=s(this._employee.modules);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.url===e)return!0;if(r.pages&&0===r.pages.length){var o=e.split("/");if(o&&o.length>=1&&o[0]===r.url)return!0}else if(r.pages){var i,a=s(r.pages);try{for(a.s();!(i=a.n()).done;){if(i.value.url===e)return!0}}catch(u){a.e(u)}finally{a.f()}}}}catch(u){n.e(u)}finally{n.f()}return!1}return!1}},{key:"copyToClipboard",value:function(e){if(this._isMobile)this.clipboard.copy(e);else{var t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}}},{key:"downloadRecordsAsExcel",value:function(e,t,n){this.exportExcel({title:n,data:e,headers:t})}},{key:"downloadRecordsAsCSV",value:function(e,t,n){this.exportCSV({title:n,data:e,headers:t})}},{key:"mapRecordFields",value:function(e,t){var n=this,r={};return t.forEach(function(t){t.enumType||t.enumLabelType?t.enumType&&t.enumLabelType?r[t.property]=n.translateSvc.instant(t.enumLabelType[t.enumType[e[t.property]]]):t.enumType&&!t.enumLabelType&&(r[t.property]=n.translateSvc.instant(t.enumType[e[t.property]])):r[t.property]=e[t.property]}),r}},{key:"tableHeadersToExcel",value:function(e){var t=this.translateSvc.instant(e.label);return e.suffix?"".concat(t," (").concat(e.suffix.trim(),")"):t}},{key:"exportExcel",value:function(e){var t=this,n=e.title,r=e.headers.map(this.tableHeadersToExcel.bind(this)),o=e.data,i=new u.Workbook,a=i.addWorksheet(n);a.addRow(r).eachCell(function(e,t){e.fill={type:"pattern",pattern:"solid",fgColor:{argb:"6DB33F"},bgColor:{argb:""}},e.font={bold:!0,color:{argb:"FFFFFF"},size:12},e.alignment={vertical:"middle",horizontal:"center"}}),o.forEach(function(n){var r=t.mapRecordFields(n,e.headers),o=Object.values(r);a.addRow(o)}),a.addRow(),i.xlsx.writeBuffer().then(function(e){C.F.downloadArrayBuffer(n+".xlsx",e)})}},{key:"exportCSV",value:function(e){var t=this,n=new u.Workbook,r=e.title,o=e.headers.map(this.tableHeadersToExcel.bind(this)),i=e.data,a=n.addWorksheet(r);a.addRow(o).eachCell(function(e,t){e.alignment={vertical:"middle",horizontal:"center"}}),i.forEach(function(n){var r=t.mapRecordFields(n,e.headers),o=Object.values(r);a.addRow(o)}),a.addRow(),n.csv.writeBuffer().then(function(e){C.F.downloadArrayBuffer(r+".csv",e)})}}],[{key:"NOTE_EAX_LIST_MODE",get:function(){return 1}},{key:"FIELDS_EAX_LIST_MODE",get:function(){return 2}}]),e}();return e.DEFAULT_LANG="es",e.\u0275fac=function(t){return new(t||e)(i.LFG(o.eN),i.LFG(I.HT),i.LFG(I.yF),i.LFG(I.Br),i.LFG(P.sK),i.LFG(M.Ke),i.LFG(a.T),i.LFG(N.H7))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},76054:function(e,t,n){"use strict";n.d(t,{Q:function(){return o}});var r=n(16984),o=function e(){w(this,e),this.RenderType=r.n.File}},16984:function(e,t,n){"use strict";n.d(t,{n:function(){return r}});var r=function(e){return e[e.File=0]="File",e[e.Note=1]="Note",e}({})},70689:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});var r=function(e){return e[e.ArrayBuffer=0]="ArrayBuffer",e[e.UTF8Data=1]="UTF8Data",e[e.Base64=2]="Base64",e}({})},59648:function(e,t,n){"use strict";n.d(t,{K:function(){return r}});var r=function(e){return e.readAsArrayBuffer="readAsArrayBuffer",e.readAsD
1ataURL="readAsDataURL",e.readAsText="readAsText",e.readAsBinaryString="readAsBinaryString",e}({})},31063:function(e,t,n){"use strict";n.d(t,{F:function(){return l}});var r=n(64762),o=n(42693),i=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";w(this,e),this.http=t,this.prefix=n,this.suffix=r}return b(e,[{key:"getTranslation",value:function(e){return this.http.get("".concat(this.prefix).concat(e).concat(this.suffix))}}]),e}(),s=n(70689),u=n(59648),c=n(76054),l=function(){var e=function(){function e(){w(this,e)}return b(e,null,[{key:"objEquals",value:function(e,t){var n;return!(null===(n=Object.keys(e).filter(function(n){return e[n]!==t[n]}))||void 0===n?void 0:n.length)}},{key:"objEqualsArr",value:function(t,n){var r;try{if(!t||!n&&t!=n)return!1;if(t.length!=n.length)throw"Error";return!(null===(r=t.filter(function(t,r){return!e.objEquals(t,n[r])}))||void 0===r?void 0:r.length)}catch(o){console.log(o)}return!1}},{key:"addByPosition",value:function(t,n,r,o){var i,a;try{i=e.calculateSumStepByPosition(t,n,r),a=parseFloat(t)}catch(s){return t}return e.sumNumbers(a,i,o)}},{key:"addByDecimalCount",value:function(t,n,r){var o=e.calculateSumStep(n,r);return e.sumNumbers(t,o,r)}},{key:"HttpLoaderFactory",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t&&(t+="/"),new i(e,"./assets/lang/".concat(t),".json")}},{key:"enumStrKeys",value:function(e){return Object.keys(e).map(function(t){return e[t]}).filter(function(e){return"string"==typeof e})}},{key:"base64ToBlob",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:512;e=e.replace(/\s/g,"");for(var r=atob(e),o=[],i=0;i<r.length;i+=n){for(var a=r.slice(i,i+n),s=new Array(a.length),u=0;u<a.length;u++)s[u]=a.charCodeAt(u);var c=new Uint8Array(s);o.push(c)}return new Blob(o,{type:t})}},{key:"createBase64URL",value:function(e,t){return"data:".concat(t,";base64,").concat(e)}},{key:"downloadBase64",value:function(t,n,r){var o=document.createElement("a"),i=r?e.createBase64URL(n,r):n;o.setAttribute("href",i),o.setAttribute("download",t),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)}},{key:"downloadArrayBuffer",value:function(t,n){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function r(){var o;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.convertToBase64(n);case 2:return o=r.sent,r.abrupt("return",e.downloadBase64(t,o));case 4:case"end":return r.stop()}},r)}))}},{key:"cloneHttpHeaders",value:function(e){var t={};return e.keys().map(function(n){return t[n]=e.get(n)}),new o.WM(t)}},{key:"getHeaderByProperty",value:function(e,t){return e.find(function(e){return e.property==t})}},{key:"removeDuplicates",value:function(e){return a(new Set(e))}},{key:"getObjectUniqueValues",value:function(t){var n=e.clone(t),r=[];return Object.keys(n).map(function(e){r.includes(n[e])||r.push(n[e])}),r}},{key:"readFile",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.K.readAsArrayBuffer;return new Promise(function(n,r){var o=new FileReader;t===u.K.readAsText?o[t](e,"UTF-8"):o[t](e),o.onload=function(){return n(o.result)},o.onerror=function(e){return r(e)}})}},{key:"arrayBufferToBase64",value:function(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,o=0;o<r;o++)t+=String.fromCharCode(n[o]);return window.btoa(t)}},{key:"file2Document",value:function(t){var n=new c.Q,r=t.name.split("."),o=r.pop(),i=r.join("."),a=e.fileByteLength(null==t?void 0:t.size);return n.SizeStr=a,n.DocumentName=i,n.DocExtension=o,n.ContentType=null==t?void 0:t.type,n}},{key:"fileByteLength",value:function(t,n){if(0===t)return"0 Bytes";var r=n<=0?0:n||2,o=Math.floor(Math.log(t)/Math.log(e.kbBytes));return parseFloat((t/Math.pow(e.kbBytes,o)).toFixed(r))+" "+e.fileUnits[o]}},{key:"readFiles2Documents",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.O.Base64,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.K.readAsArrayBuffer;return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function r(){var i;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i=t.map(function(t){return e.readFile(t,o)}),r.next=3,Promise.all(i);case 3:return r.abrupt("return",r.sent.map(function(r,o){var i=e.file2Document(t[o]);switch(n){case s.O.Base64:i.B64Data=e.arrayBufferToBase64(r);break;case s.O.UTF8Data:i.UTF8Data=r;break;case s.O.ArrayBuffer:i.ByteArrData=r}return i}));case 4:case"end":return r.stop()}},r)}))}},{key:"getURLSegment",value:function(t){return e.clone(t.snapshot._urlSegment.segments)}}]),e}();return e.fileUnits=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],e.kbBytes=1024,e.firstLetterStr=function(e){try{return e.charAt(0)}catch(t){throw"Invalid input."}},e.first=function(e){for(var t in e)return e[t]},e.formatDate=function(e){return new Date(e)}
1,e.isValidDate=function(e){return!isNaN(e)&&e instanceof Date},e.formatNum=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e.round(t,n);if(r){var i=e.forceDecimal(o,n);return e.num2Str(i)}return e.num2Str(o)},e.formatSpanishNum=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return e.formatNum(t,n,r)},e.strPoint2StrWithDecimals=function(e,t){return Number(e.replace(",",".")).toFixed(t).toString().replace(".",",")},e.date2Str=function(e){return(1==e.getDate().toString().length?"0"+e.getDate().toString():e.getDate().toString())+"/"+(1==(e.getMonth()+1).toString().length?"0"+(e.getMonth()+1):e.getMonth()+1)+"/"+e.getFullYear()},e.reverseString=function(e){try{return e.split("").reverse().join("")}catch(t){}return""},e.removeUselessZerosIntDec=function(t,n){t+="",n&&(t=e.reverseString(t));for(var r=t,o=0;o<t.length;o++)"0"===t[o]?r=r.substring(1):t="";return n&&(r=e.reverseString(r)),r&&!isNaN(r)||(r=n?"":"0"),r},e.removeUselessZeros=function(t){var n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=t+="",i=t.split("."),a="";return!i||1!=i.length&&2!=i.length?t:(n=e.removeUselessZerosIntDec(i[0]),2==i.length&&(a=r?"."+i[1]:"."+e.removeUselessZerosIntDec(i[1],!0)),(o=n+a)&&!isNaN(o)||(o="0"),o)},e.date2StrDateTime=function(e){return e.toLocaleString()},e.formatQty=function(e){return e?e.toString().replace(".",","):""},e.nullableDate2Str=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1900,r=e.formatDate(t);return r&&r.getFullYear()>n?e.date2Str(r):""},e.str2Date=function(e,t){var n=e.split(t);return new Date(n[0],n[1]-1,n[2])},e.date2FormattedString=function(e){return e.getFullYear().toString()+"-"+(((e.getMonth()+1).toString().length<2?"0":"")+(e.getMonth()+1)).toString()+"-"+(e.getDate().toString().length<2?"0":"")+e.getDate().toString()},e.objEqualsReduce=function(e,t){return""==Object.keys(e).reduce(function(n,r){return n+(e[r]==t[r])?"":e[r]+t[r]})},e.num2Str=function(e){return e.toString().replace(".",",")},e.popStr=function(e){return e.substring(0,e.length-1)},e.lastCharOfStr=function(e){return e[e.length-1]},e.firstCharOfStr=function(e){return e[0]},e.replaceLastChar=function(e,t){return e.replace(/.$/g,t)},e.removeHeadAddTail=function(e,t){return e.substr(1,e.length-1)+t},e.replaceLastSpecificChar=function(e,t,n){var r=new RegExp(n+"$","g");return e.replace(r,t)},e.recursivelyReplaceLastSpecificChar=function(t,n,r){for(var o,i=t;;){o=i.length;var a=e.replaceLastSpecificChar(t,n,r);if(o===a.length)return i;i=a}return i},e.parse=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t||e&&"string"==typeof e?JSON.parse(e):e},e.stringify=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t||e&&"string"!=typeof e?JSON.stringify(e):e},e.clone=function(t){return e.parse(e.stringify(t,!0),!0)},e.assign=function(e,t){return Object.assign(e,t)},e.findLastIntDigitPositionIdx=function(e){var t,n=e+"";try{if(!n.length)throw"Wrong input.";if(!(t=n.split("."))||1!=t.length&&2!=t.length)throw"Wrong input.";if(1===t.length)return n.length-1;if(2===t.length){var r=t[0];if(isNaN(r)||0==r.length)throw"Wrong input.";return r.length-1}}catch(o){throw"Wrong input."}return 0},e.forceDecimal=function(e,t){var n,r,o,i=e+"";try{if(!(n=i.split("."))||1!=n.length&&2!=n.length)throw"Wrong input.";1==n.length&&t>=1?(i+=".",r=0):r=2==n.length?n[n.length-1].length:0;var a=t-r;if(isNaN(a)||a<0)throw"Wrong input.";for(var s=0;s<a;s++)i+="0";o=i}catch(u){throw"Wrong input."}return o},e.decimalCount=function(t){var n,r=t+"",o=e.lastCharOfStr(r),i=r.split(".");if("."===o)n=0;else if(i)if(2==i.length)n=i[i.length-1].length;else{if(i.length>2)throw"Invalid str";n=0}return n},e.calculateSumStep=function(e,t){return e/Math.pow(10,t)},e.calculateSumStepByPosition=function(e,t,n){var r=e+"",o="",i=0,a=t>0?1:-1;try{t=Math.abs(t);for(var s=0;s<r.length;s++)if("."!==r[s]){if(s==n)return o+=t,parseFloat(o)*a;o+="0"}else{if(s==n){var u=o.split("");return u.pop(),o=u.join(),o+=t,parseFloat(o)*a}o+="."}i=parseFloat(o)*a}catch(c){i=0}return i},e.sumNumbers=function(){try{for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.pop();if(n&&n.length>=1){var i=n.reduce(function(e,t){return e+t});return e.round(i,o)}}catch(a){throw"Invalid args. Enter numbers"}throw"Invalid args. Enter numbers"},e.round=function(e,t){return Number(Math.round(e+"e"+t)+"e-"+t)}
1,e.hexToRGB=function(e){var t;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(e))return 3==(t=e.substring(1).split("")).length&&(t=[t[0],t[0],t[1],t[1],t[2],t[2]]),[(t="0x"+t.join(""))>>16&255,t>>8&255,255&t];throw new Error("Wrong hex code")},e.isMultipleOf=function(e,t){return e%t==0},e.isInteger=function(e){return e===parseInt(e,10)},e.findInList=function(e,t,n){try{e.map(function(e){if(e[t]==n)return e})}catch(r){}},e.paginatedList2List=function(e){var t=[];try{Object.keys(e).map(function(n){return e[n].map(function(e){return t.push(e)})})}catch(n){throw"Wrong input"}return t},e.arr2TranslationObject=function(e){var t={};try{e.map(function(e){return t.p1=e})}catch(n){t=void 0}return t},e.unsubscribe=function(e){e&&!e.closed&&e.unsubscribe()},e.parseFloat=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.round(t,n)},e.convertToBase64=function(e){var t=new Blob([e]),n=new FileReader;return new Promise(function(e,r){n.readAsDataURL(t),n.onloadend=function(){try{e(n.result)}catch(t){r("Error")}}})},e}()},39832:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});var r=function e(t,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"clear",c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"";w(this,e),this.Label=t,this.Value=n,this.Callback=r,this.Active=o,this.Icon=i,this.CssClass=a,this.Color=s,this.Fill=u,this.tooltip=c}},40002:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});var r=function e(t,n){w(this,e),this.Label=t,this.Params=n}},75425:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var r=n(61116),o=n(11462),i=n(71290),a=n(28302),s=n(35366),u=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=s.oAB({type:e}),e.\u0275inj=s.cJS({imports:[[r.ez,a.aw,o.u5,o.UX,i.Pc],a.aw]}),e}()},73479:function(e,t,n){"use strict";n.d(t,{k:function(){return u}});var r=n(64762),o=n(18172),i=n(78512),a=n(35366),s=n(26239),u=function(){var e=function(){function e(t,n){w(this,e),this.authSvc=t,this.router=n,this._bootstrapped=!1,this._userData$=new i.X(null),this.userData$=this._userData$.asObservable(),this._loginCandidates$=new i.X(null),this.loginCandidates$=this._loginCandidates$.asObservable(),this._redirectUrl=null,this._bootstrapError$=new i.X(null),this.bootstrapError$=this._bootstrapError$.asObservable(),this._bootstrapPromise=null,this.navigatingToError=!1,this._failed=!1}return b(e,[{key:"isBootstrapped",value:function(){return this._bootstrapped}},{key:"getUserDataSnapshot",value:function(){return this._userData$.getValue()}},{key:"failBootstrap",value:function(e){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(console.error("[BOOTSTRAP]",e),this._bootstrapError$.next(e),this._failed=!0,this._bootstrapped=!1,this._userData$.next(null),this._loginCandidates$.next(null),this._redirectUrl=null,this.router.navigate(["/auth/error"]),!1));case 1:case"end":return t.stop()}},t,this)}))}},{key:"runBootstrap",value:function(e){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,r,o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.authSvc.msal.instance.getAllAccounts().length){t.next=2;break}return t.abrupt("return",!1);case 2:if(!this._failed){t.next=4;break}return t.abrupt("return",!1);case 4:if(!this._bootstrapped||!this._userData$.value){t.next=6;break}return t.abrupt("return",!0);case 6:if(n=this.authSvc.guid){t.next=9;break}return t.abrupt("return",this.failBootstrap("No se pudo iniciar sesi\xf3n (GUID no encontrado)."));case 9:return t.prev=9,t.next=12,this.authSvc.getLoginGuid(n).toPromise();case 12:r=t.sent,t.next=18;break;case 15:return t.prev=15,t.t0=t.catch(9),t.abrupt("return",this.failBootstrap("No autorizado o error de servidor."));case 18:if(o=(null==r?void 0:r.Object)||[],!Array.isArray(o)||0===o.length){t.next=33;break}if(1!==o.length){t.next=29;break}return t.next=23,this.bootstrapWithUser(o[0]);case 23:if(t.t3=!!t.sent,t.t3){t.next=26;break}t.t3=this.failBootstrap("Error cargando perfil de usuario. Contacte al administrador.");case 26:t.t2=t.t3,t.next=30;break;case 29:t.t2=(this._loginCandidates$.next(o),this._redirectUrl=e||"/",this.router.navigate(["/auth/select-user"]),!1);case 30:t.t1=t.t2,t.next=34;break;case 33:t.t1=this.failBootstrap("No tienes usuarios asociados.");case 34:return t.abrupt("return",t.t1);case 35:case"end":return t.stop()}},t,this,[[9,15]])}))}},{key:"bootstrapWithUser",value:function(e){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,r,o,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=e.WebUserId,console.error("usuario",n),t.next=5,this.authSvc.loadUserData(n).toPromise();case 5:if(r=t.sent,o=(null==r?void 0:r.Object)||r){t.next=9;break}return t.abrupt("return",(console.error("[BOOTSTRAP] loadUserData no devolvi\xf3 usuario v\xe1lido"),!1));case 9:return this._userData$.next(o),this.authSvc.userLoaded=o,this.authSvc.changeUsername(n),this.authSvc.setUsername(n),t.next=15,this.authSvc.fetchEmployee(n).toPromise();case 15:return i=this.authSvc.dataSvc.employee,t.abrupt("return",i?(this.authSvc.dataSvc.changeDisplayName((null==e?void 0:e.Name)||i.Name||(null==o?void 0:o.Name)||(null==e?void 0:e.WebMail)||n),this._bootstrapped=!0,console.log("[BOOTSTRAP] Usuario cargado correctamente:",n),!0):(console.error("[BOOTSTRAP] Employee not found for",n),!1));case 19:return t.prev=19,t.t0=t.catch(0),t.abrupt("return",(console.error("[BOOTSTRAP ERROR]",t.t0),this._bootstrapped=!1,!1));case 22:case"end":return t.stop()}},t,this,[[0,19]])}))}},{key:"completeBootstrapFromSelection",value:function(e){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.bootstrapWithUser(e);case 2:if(t.sent){t.next=6;break}return t.next=5,this.failBootstrap("No se pudo completar el login con el usuario seleccionado.");case 5:return t.abrupt("return",void t.sent);case 6:n=this._redirectUrl||"/",this._redirectUrl=null,this._loginCandidates$.next(null),this.router.navigateByUrl(n);case 8:case"end":return t.stop()}},t,this)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(o.e),a.LFG(s.F0))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},529:function(e,t,n){"use strict";n.d(t,{N:function(){return a}});var r=n(31002),o=n(83987),i=window.navigator.userAgent.indexOf("MSIE ")>-1||window.navigator.userAgent.indexOf("Trident/")>-1,a={production:!0,defaultApiUrl:"https://service.abc-compressors.com/api",adal:{auth:{clientId:"bf5bec94-7321-4c2e-aef9-fc0c588f775b",authority:"https://login.microsoftonline.com/556e6b1f-b49d-4278-8baf-db06eeefc8e9",redirectUri:"/app/home",postLogoutRedirectUri:"/app/home",knownAuthorities:["https://login.microsoftonline.com/556e6b1f-b49d-4278-8baf-db06eeefc8e9","https://login.microsoftonline.com"]},cache:{cacheLocation:r.Ix.LocalStorage,storeAuthStateInCookie:i},system:{loggerOptions:{loggerCallback:function(e,t){console.log(t)},logLevel:o.i.Error,piiLoggingEnabled:!1}},protectedResourceMap:[{url:"http://localhost:52835",scopes:["api://e6db5e1b-09a3-4a2d-8263-699334ae0dac/Api.Read"]},{url:"https://localhost:52835",scopes:["api://e6db5e1b-09a3-4a2d-8263-699334ae0dac/Api.Read"]},{url:"https://service.abc-compressors.com/api",scopes:["api://e6db5e1b-09a3-4a2d-8263-699334ae0dac/Api.Read"]}],scopes:["api://e6db5e1b-09a3-4a2d-8263-699334ae0dac/Api.Read"]}}},41624:function(e,t,n){"use strict";var r=n(99624),o=n(35366),i=n(42693),a=n(26239),u=n(82250),c=n(64762),l=n(38024),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,c.ZT)(t,e),t.prototype.show=function(){return(0,l.DM)(this,"show",{sync:!0},arguments)},t.prototype.hide=function(){return(0,l.DM)(this,"hide",{sync:!0},arguments)},t.pluginName="SplashScreen",t.plugin="cordova-plugin-splashscreen",t.pluginRef="navigator.splashscreen",t.repo="https://github.com/apache/cordova-plugin-splashscreen",t.platforms=["Amazon Fire OS","Android","iOS","Windows"],t.\u0275fac=function(e){return(n||(n=o.n5z(t)))(e||t)},t.\u0275prov=o.Yz7({token:t,factory:function(e){return t.\u0275fac(e)}}),t;var n}(l.KY),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,c.ZT)(t,e),t.prototype.overlaysWebView=function(e){return(0,l.DM)(this,"overlaysWebView",{sync:!0},arguments)},t.prototype.styleDefault=function(){return(0,l.DM)(this,"styleDefault",{sync:!0},arguments)},t.prototype.styleLightContent=function(){return(0,l.DM)(this,"styleLightContent",{sync:!0},arguments)},t.prototype.styleBlackTranslucent=function(){return(0,l.DM)(this,"styleBlackTranslucent",{sync:!0},arguments)},t.prototype.styleBlackOpaque=function(){return(0,l.DM)(this,"styleBlackOpaque",{sync:!0},arguments)},t.prototype.backgroundColorByName=function(e){return(0,l.DM)(this,"backgroundColorByName",{sync:!0},arguments)},t.prototype.backgroundColorByHexString=function(e){return(0,l.DM)(this,"backgroundColorByHexString",{sync:!0},arguments)},t.prototype.hide=function(){return(0,l.DM)(this,"hide",{sync:!0},arguments)},t.prototype.show=function(){return(0,l.DM)(this,"show",{sync:!0},arguments)}
1,Object.defineProperty(t.prototype,"isVisible",{get:function(){return(0,l.J2)(this,"isVisible")},set:function(e){(0,l.Iq)(this,"isVisible",e)},enumerable:!1,configurable:!0}),t.pluginName="StatusBar",t.plugin="cordova-plugin-statusbar",t.pluginRef="StatusBar",t.repo="https://github.com/apache/cordova-plugin-statusbar",t.platforms=["Android","iOS","Windows"],t.\u0275fac=function(e){return(n||(n=o.n5z(t)))(e||t)},t.\u0275prov=o.Yz7({token:t,factory:function(e){return t.\u0275fac(e)}}),t;var n}(l.KY),d=n(71290),p=n(11653),m=n(28302),y=n(32488),v=n(18172),g=n(2139),_=n(73479),k=function(){var e=function(){function e(t,n,r,o,i){w(this,e),this.dataSvc=t,this.translateSvc=n,this.authSvc=r,this.bootstrapSvc=o,this.router=i}return b(e,[{key:"canActivate",value:function(e,t){var n=t.url;return!!n.startsWith("/auth")||this.checkEmplAccessLevel(n)}},{key:"canActivateChild",value:function(e,t){var n=t.url;return!!n.startsWith("/auth")||this.checkEmplAccessLevel(n)}},{key:"canLoad",value:function(e){return(0,c.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.path||"",t.abrupt("return",!!n.startsWith("auth")||this.checkEmplAccessLevel(n));case 2:case"end":return t.stop()}},t,this)}))}},{key:"checkEmplAccessLevel",value:function(e){return(0,c.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.bootstrapSvc.runBootstrap(e);case 3:if(t.t0=!!t.sent,!t.t0){t.next=6;break}t.t0=this.checkAccess(e);case 6:return t.abrupt("return",t.t0);case 9:return t.prev=9,t.t1=t.catch(0),t.abrupt("return",(console.error("[GlobalGuard] error en checkEmplAccessLevel",t.t1),this.router.navigate(["/auth/error"]),!1));case 12:case"end":return t.stop()}},t,this,[[0,9]])}))}},{key:"checkAccess",value:function(e){return(0,c.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=e.startsWith("/")?e.substring(1):e,t.abrupt("return",this.dataSvc.employee?this.dataSvc.isUrlAllowed(n):(console.warn("[GlobalGuard] employee vac\xedo en checkAccess para",n),!1));case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return",(console.error("[GlobalGuard] error en checkAccess",t.t0),!1));case 8:case"end":return t.stop()}},t,this,[[0,5]])}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.LFG(g.D),o.LFG(m.sK),o.LFG(v.e),o.LFG(_.k),o.LFG(a.F0))},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),S=[{path:"",canActivate:[y.RQ,k],canActivateChild:[y.RQ,k],canLoad:[k],children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",loadChildren:function(){return Promise.all([n.e(2534),n.e(2457),n.e(6966)]).then(n.bind(n,16966)).then(function(e){return e.HomePageModule})}},{path:"purch-orders",loadChildren:function(){return Promise.all([n.e(5883),n.e(3655),n.e(2534),n.e(6369),n.e(3629),n.e(8592),n.e(3159)]).then(n.bind(n,43629)).then(function(e){return e.PurchOrdersPageModule})}},{path:"purchases",loadChildren:function(){return Promise.all([n.e(2534),n.e(2457),n.e(8592),n.e(9209)]).then(n.bind(n,9209)).then(function(e){return e.PurchasesPageModule})}},{path:"offer-orders",loadChildren:function(){return Promise.all([n.e(5883),n.e(3655),n.e(2534),n.e(6369),n.e(2457),n.e(1641),n.e(8592)]).then(n.bind(n,41641)).then(function(e){return e.OfferOrdersPageModule})}},{path:"stock/articles-master",loadChildren:function(){return Promise.all([n.e(5883),n.e(4101),n.e(2890),n.e(8592),n.e(5901)]).then(n.bind(n,34404)).then(function(e){return e.ArticlesMasterPageModule})}},{path:"stock",loadChildren:function(){return Promise.all([n.e(5883),n.e(3655),n.e(4101),n.e(2534),n.e(8892),n.e(2890),n.e(9841),n.e(8592),n.e(3362)]).then(n.bind(n,89841)).then(function(e){return e.ItemsModule})}},{path:"sat",loadChildren:function(){return n.e(6087).then(n.bind(n,56087)).then(function(e){return e.SatModule})}},{path:"com",loadChildren:function(){return n.e(8579).then(n.bind(n,78579)).then(function(e){return e.ComModule})}},{path:"customers",loadChildren:function(){return n.e(9134).then(n.bind(n,19134)).then(function(e){return e.CustomersModule})}},{path:"settings",loadChildren:function(){return Promise.resolve().then(n.bind(n,68161)).then(function(e){return e.SettingsPageModule})}}]},{path:"auth",loadChildren:function(){return n.e(4719).then(n.bind(n,74719)).then(function(e){return e.AuthModule})}},{path:"eax-keyboard",loadChildren:function(){return Promise.all([n.e(8892),n.e(9946)]).then(n.bind(n,89946)
1).then(function(e){return e.EAxKeyboardPageModule})}},{path:"**",redirectTo:""}],C=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({imports:[[a.Bz.forRoot(S,{preloadingStrategy:a.wm})],a.Bz]}),e}(),E=n(88123),T=n(39832),x=n(34357),O=n(31002),A=n(43835),R=n(90611),I=n(61116);function P(e,t){if(1&e){var n=o.EpF();o.TgZ(0,"ion-item",20),o.NdJ("click",function(){var e=o.CHM(n).$implicit;return o.oxw(3).goTo(e.url)}),o._UZ(1,"ion-icon",21),o.TgZ(2,"span",13),o._uU(3),o.ALo(4,"translate"),o.qZA(),o.qZA()}if(2&e){var r=t.$implicit,i=o.oxw(3);o.Q6J("ngClass",i.checkActivePage(r)?"active":"noactive"),o.xp6(1),o.Q6J("color",i.checkActivePage(r)?"primary":"")("name",r.icon),o.xp6(2),o.hij(" ",o.lcZ(4,4,r.label)," ")}}function M(e,t){if(1&e&&(o.TgZ(0,"ion-item-group"),o.YNc(1,P,5,6,"ion-item",19),o.qZA()),2&e){var n=o.oxw().$implicit;o.xp6(1),o.Q6J("ngForOf",n.pages)}}var N=function(e){return{"selected-module":e}};function j(e,t){if(1&e){var n=o.EpF();o.TgZ(0,"ion-row",16),o.TgZ(1,"ion-col",11),o.TgZ(2,"ion-item",12),o.NdJ("click",function(){var e=o.CHM(n).$implicit;return o.oxw().goTo(e.url)}),o._UZ(3,"ion-icon",17),o.TgZ(4,"span",13),o._uU(5),o.ALo(6,"translate"),o.qZA(),o.qZA(),o.YNc(7,M,2,1,"ion-item-group",18),o.qZA(),o.qZA()}if(2&e){var r=t.$implicit,i=o.oxw();o.Q6J("ngClass",o.VKq(7,N,i.checkActiveModule(r))),o.xp6(3),o.Q6J("color",i.checkActiveModule(r)?"primary":"")("name",r.icon),o.xp6(2),o.hij(" ",o.lcZ(6,5,r.label)," "),o.xp6(2),o.Q6J("ngIf",r.pages.length>0)}}var D=function(){var e=function(){function e(t,n,r,o){w(this,e),this.authSvc=t,this.navCtrl=n,this.router=r,this.dataSvc=o,this.modules=[]}return b(e,[{key:"username",get:function(){return this._username},set:function(e){this._username=e}},{key:"ngOnInit",value:function(){var e=this;this.dataSvc.displayNameObservable().subscribe(function(t){t&&(e.username=t)}),this.dataSvc.employeeSource.subscribe(function(t){t&&(e.employee=t,e.modules=[],e.employee.modules.filter(function(e){return!e.hideOnMenu&&e.pageOrder}).sort(function(e,t){return e.pageOrder-t.pageOrder}).forEach(function(t){"HM"===t.id?e.modules.push({id:"HM",permissionId:"HM",description:"Inicio",label:"GLOBAL.HOME",icon:"eax-brain-book",url:"home",hideOnPage:!0,hideOnMenu:!1,skipModulesPage:!1,badge:{Text:"",CssClass:""},pageOrder:1,pages:[]}):"PUR"===t.id?e.modules.push({id:"PUR",permissionId:"PUR",description:"M\xf3dulo de Compras",label:"PURCH_ORDERS.PURCHASES",icon:"eax-purchase",url:"purchases",hideOnPage:!1,hideOnMenu:!1,skipModulesPage:!1,badge:{Text:"",CssClass:"qty-badge"},pageOrder:2,pages:[]}):"STO"===t.id?e.modules.push({id:"STO",permissionId:"STO",description:"M\xf3dulo de Stock",label:"STOCK.STOCK",icon:"eax-stock",url:"stock",hideOnPage:!1,hideOnMenu:!1,skipModulesPage:!1,badge:{Text:"",CssClass:"qty-badge"},pageOrder:3,pages:[{id:"STO",parentId:"STO",description:"Inventario",label:"STOCK.INVENTORY",icon:"list-outline",url:"/stock/view",hideOnPage:!1,hideOnMenu:!1},{id:"MAA",parentId:"STO",description:"Maestro de art\xedculos",label:"STOCK.ARTICLES_MASTER",icon:"cog-outline",url:"/stock/articles-master",hideOnPage:!1,hideOnMenu:!1}]}):"SAT"===t.id?e.modules.push({id:"SAT",permissionId:"SAT",description:"M\xf3dulo de SAT",label:"SAT.SAT",icon:"eax-sat",url:"sat",hideOnPage:!1,hideOnMenu:!1,skipModulesPage:!1,badge:{Text:"",CssClass:"qty-badge"},pageOrder:4,pages:[{id:"SAT",parentId:"SAT",description:"Pedidos de servicio",label:"SAT.SERVICE_ORDERS",icon:"git-pull-request-outline",url:"/sat/orders",hideOnPage:!1,hideOnMenu:!1},{id:"MAS",parentId:"SAT",description:"Maestro de compresores",label:"SAT.COMPRESSOR_MASTER",icon:"cog-outline",url:"/sat/compressor-master",hideOnPage:!1,hideOnMenu:!1}]}):"SAL"===t.id?e.modules.push({id:"SAL",permissionId:"SAL",description:"M\xf3dulo de Ventas",label:"SALES.SALES",icon:"bag-outline",url:"sales",hideOnPage:!1,hideOnMenu:!1,skipModulesPage:!1,badge:{Text:"",CssClass:"qty-sales"},pageOrder:5,pages:[{id:"ORD",parentId:"SAL",description:"Pedidos de venta",label:"SALES.ORDERS",icon:"list-outline",url:"/sales/orders",hideOnPage:!1,hideOnMenu:!1},{id:"MAS",parentId:"SAL",description:"Maestro de compresores",label:"SALES.COMPRESSOR_MASTER",icon:"cog-outline",url:"/customers/compressor-master",hideOnPage:!1,hideOnMenu:!1}]}):"COM"===t.id&&e.modules.push({id:"COM",permissionId:"COM",description:"M\xf3dulo de compresor",label:"COM.COM",icon:"cog-outline",url:"com",hideOnPage:!1,hideOnMenu:!1,skipModulesPage:!1,badge:{Text:"",CssClass:"qty-badge"},pageOrder:6,pages:[]})}),e.load(e.authSvc.username).then())})}},{key:"ngOnDestroy",value:function(){this.modules=[]}},{key:"load",value:function(e){return(0,c.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.authSvc.loadUserData(e).toProm
1ise();case 2:(n=t.sent)&&(this.user=n.Object);case 4:case"end":return t.stop()}},t,this)}))}},{key:"goTo",value:function(e){this.navCtrl.navigateForward([e]).then()}},{key:"logOut",value:function(){this.authSvc.logoutAndRedirect()}},{key:"checkActiveModule",value:function(e){var t=this;return this.router.url.match(".*"+e.url+".*")||e.pages.filter(function(e){return e.url===t.router.url}).length}},{key:"checkActivePage",value:function(e){return e.url===this.router.url}},{key:"checkActiveSettings",value:function(e){return this.router.url.match(".*"+e+".*")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(v.e),o.Y36(d.SH),o.Y36(a.F0),o.Y36(g.D))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-eax-module-list"]],decls:29,vars:14,consts:[[1,"eax-main-menu-content","eax-white-bg"],[1,"eax-grid","content-grid"],[1,"eax-row","title-row"],[1,"header"],["src","assets/img/logo-negativo.png",1,"logo_negativo"],["lines","none"],[1,"navigation-label"],["class","eax-row moduleList","class","module-btn-content",3,"ngClass",4,"ngFor","ngForOf"],[1,"eax-top-separator"],[1,"username"],[1,"eax-row","moduleList","module-btn-content",3,"ngClass"],[1,"module-btn-col"],["lines","none",1,"module-item",3,"click"],[1,"btn-text"],[1,"eax-row","moduleList","module-btn-content"],["color","danger"],[1,"module-btn-content",3,"ngClass"],[1,"module-btn-icon",2,"zoom","1.5",3,"color","name"],[4,"ngIf"],["class","page-item",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"page-item",3,"ngClass","click"],[1,"page-btn-icon",2,"zoom","1.5",3,"color","name"]],template:function(e,t){1&e&&(o.TgZ(0,"ion-content",0),o.TgZ(1,"ion-grid",1),o.TgZ(2,"ion-row",2),o.TgZ(3,"div",3),o._UZ(4,"img",4),o.qZA(),o.qZA(),o.TgZ(5,"ion-row"),o.TgZ(6,"ion-col"),o.TgZ(7,"ion-item",5),o.TgZ(8,"ion-label",6),o._uU(9),o.ALo(10,"translate"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.YNc(11,j,8,9,"ion-row",7),o.TgZ(12,"ion-row",8),o.TgZ(13,"ion-col"),o.TgZ(14,"ion-item",5),o.TgZ(15,"span",9),o._uU(16),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(17,"ion-row",10),o.TgZ(18,"ion-col",11),o.TgZ(19,"ion-item",12),o.NdJ("click",function(){return t.goTo("settings")}),o.TgZ(20,"ion-label",13),o._uU(21),o.ALo(22,"translate"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(23,"ion-row",14),o.TgZ(24,"ion-col",11),o.TgZ(25,"ion-item",12),o.NdJ("click",function(){return t.logOut()}),o.TgZ(26,"ion-label",15),o._uU(27),o.ALo(28,"translate"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(9),o.hij(" ",o.lcZ(10,6,"GLOBAL.NAVIGATION")," "),o.xp6(2),o.Q6J("ngForOf",t.modules),o.xp6(5),o.Oqu(t.username),o.xp6(1),o.Q6J("ngClass",o.VKq(12,N,t.checkActiveSettings("settings"))),o.xp6(4),o.hij(" ",o.lcZ(22,8,"SETTINGS.SETTINGS")," "),o.xp6(6),o.hij(" ",o.lcZ(28,10,"AUTH.LOG_OUT")," "))},directives:[d.W2,d.jY,d.Nd,d.wI,d.Ie,d.Q$,I.sg,I.mk,d.gu,I.O5,d.Ub],pipes:[m.X$],styles:[".eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%]{height:100%;display:flex;flex-flow:column;padding:0}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .title-row[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;background-color:var(--ion-color-primary);width:100%;height:var(--eax-top-toolbar-height);box-shadow:0 0 30px 0 rgba(0,0,0,.08)}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .title-row[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .logo_negativo[_ngcontent-%COMP%]{margin:auto}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .navigation-label[_ngcontent-%COMP%]{letter-spacing:.24px;color:#2b2b2b;cursor:default}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .module-btn-content[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .module-btn-content[_ngcontent-%COMP%] .module-btn-col[_ngcontent-%COMP%]{padding:0}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .module-btn-content[_ngcontent-%COMP%]:hover{cursor:pointer}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .module-btn-content.selected-module[_ngcontent-%COMP%]{--ion-item-background:rgba(109,179,63,0.1);border-left:4px solid #6db33f;cursor:pointer}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .module-btn-content.selected-module[_ngcontent-%COMP%] .module-btn-icon[_ngcontent-%COMP%]{color:#6db33f}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .module-btn-content.selected-module[_ngcontent-%COMP%] .module-item[_ngcontent-%COMP%], .eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .module-btn-content.selected-module[_ngcontent-%COMP%] .page-item[_ngcontent-%COMP%]{font-weight:700;color:#6db33f}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .module-btn-content[_ngcontent-%COMP%] .module-btn-icon[_ngcontent-%COMP%]{margin-bottom:.35rem}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .keyboard-wrapper[_ngcontent-%COMP%]{display:grid;grid-template-columns:33% 33% 33%;height:100%}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .keyboard-wrapper[_ngcontent-%COMP%] .module-btn[_ngcontent-%COMP%]{margin:.35rem;height:4rem;--border-radius:2px}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .keyboard-wrapper.selected-module[_ngcontent-%COMP%]{--background:var(--ion-color-primary-shade)}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .client-data-container[_ngcontent-%COMP%]{background-color:#f5f5f5;flex:1}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .client-data-container[_ngcontent-%COMP%] .eax-col[_ngcontent-%COMP%]{padding:0}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .client-data-container[_ngcontent-%COMP%] .eax-col[_ngcontent-%COMP%] .clientData[_ngcontent-%COMP%]{background-color:#2f373e;color:#fff;text-align:center;padding:.1rem 0}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .client-data-container[_ngcontent-%COMP%] .eax-col[_ngcontent-%COMP%] .cient-data-wrapper[_ngcontent-%COMP%]{padding:0 1rem}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .client-data-container[_ngcontent-%COMP%] .eax-col[_ngcontent-%COMP%] .cient-data-wrapper[_ngcontent-%COMP%] .header-field[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .client-data-container[_ngcontent-%COMP%] .eax-col[_ngcontent-%COMP%] .cient-data-wrapper[_ngcontent-%COMP%] .header-field.divider[_ngcontent-%COMP%]{border-bottom:var(--eax-border)}.eax-main-menu-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%] .client-data-container[_ngcontent-%COMP%] .eax-col[_ngcontent-%COMP%] .cient-data-wrapper[_ngcontent-%COMP%] .header-field[_ngcontent-%COMP%] .header-label[_ngcontent-%COMP%], .logout-text[_ngcontent-%COMP%]{font-weight:700}.logout-text[_ngcontent-%COMP%]{color:red}.username[_ngcontent-%COMP%]{font-weight:700;cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:block;font-size:.85rem}
1.eax-top-separator[_ngcontent-%COMP%]{border-top:1px solid grey}"]}),e}();function L(e,t){if(1&e&&(o.TgZ(0,"ion-toolbar",7),o.TgZ(1,"ion-grid",8),o.TgZ(2,"ion-row",9),o.TgZ(3,"ion-col",10),o.TgZ(4,"ion-grid",11),o.TgZ(5,"ion-row",12),o.TgZ(6,"ion-col",13),o._UZ(7,"ion-buttons",14),o.TgZ(8,"ion-label",15),o._uU(9),o.ALo(10,"translate"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e){var n=o.oxw();o.xp6(9),o.hij(" ",o.lcZ(10,1,n.title)," ")}}var F,B,U=function(e){return{hidden:e}},q=function(e){return{content:e}},H=function(){var e=function(){function e(t,n,r,o,i,a,s,u,l,f,h,d){var p=this;w(this,e),this.platform=t,this.dataSvc=n,this.splashScreen=r,this.statusBar=o,this.router=i,this.authSvc=a,this.menu=s,this.popoverCtrl=u,this.navCtrl=l,this.msalSvc=f,this.msalBroadcastSvc=h,this.bootstrapSvc=d,this.selectedCmpImageSrc="assets/img/logo-top.png",this.window=window,this.onDebugModeEnabled=function(){var e,t;p.dataSvc.debugModeEnabled&&(t=console.log,console.log=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n&&n.length&&(p.dataSvc.addLogMessage(n+"\n","warning").then(function(){p.dataSvc.readLogMessage()}),t.apply(console,n))},e=console.error,console.error=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n&&n.length&&(p.dataSvc.addLogMessage(n+"\n","danger").then(function(){p.dataSvc.readLogMessage()}),e.apply(console,n))})},this.onAvatar=function(e){p.showActions(e)},this.logout=function(){p.authSvc.logoutAndRedirect();try{p.popoverCtrl.dismiss()}catch(e){}},this.settings=function(){p.navCtrl.navigateForward("settings");try{p.popoverCtrl.dismiss()}catch(e){}},this.showActions=function(e){return(0,c.mG)(p,void 0,void 0,regeneratorRuntime.mark(function t(){var n,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=[new T.J("SETTINGS.SETTINGS",1,this.settings,!0,"settings","settings eax-hoverable-option no-border-fix",""),new T.J("AUTH.LOG_OUT",1,this.logout,!0,"log-out","eax-item-danger eax-hoverable-option","danger")],t.next=3,this.popoverCtrl.create({component:E.t,componentProps:{options:n},event:e,translucent:!0,cssClass:"eax-picking-order-line-actions-popover",showBackdrop:!1});case 3:return(r=t.sent).onWillDismiss().then(function(){}),t.next=7,r.present();case 7:return t.abrupt("return",t.sent);case 8:case"end":return t.stop()}},t,this)}))},console.log("0.0.14"),this.menu.toggle("settings").then(),this.initializeApp(),this.dataSvc.displayNameObservable().subscribe(function(e){return p.username=e}),this.dataSvc.selectedCompany.subscribe(function(e){e&&(p.selectedCompany=e,e.Images&&e.Images.length&&(p.selectedCmpImageSrc=p.dataSvc.str64ToImgSrc(e.Images.length>p.dataSvc.NEGATIVE_SMALL_CMP_IMAGE_IDX?e.Images[p.dataSvc.NEGATIVE_SMALL_CMP_IMAGE_IDX]:e.Images[p.dataSvc.SMALL_CMP_IMAGE_IDX])))})}return b(e,[{key:"initializeApp",value:function(){var e=this;this.window.pdfWorkerSrc="../assets/js/libs/pdf.worker.min.js",this.dataSvc.isMobile=this.platform.is("cordova"),this.checkVersionAndClearCache(),this.platform.ready().then(function(){e.menu.open("first"),e.statusBar.show();try{e.dataSvc.InitApp().subscribe(function(){},function(e){return console.error("[InitApp] error",e)})}catch(t){console.error(t)}}),this.initializeMsalGuid(),this.initializeSubscriptions()}},{key:"initializeSubscriptions",value:function(){var e=this;this.dataSvc.getMenuActionsObservable().subscribe(function(t){return e.menuActions=t}),this.dataSvc.getEmployeeObservable().subscribe(function(t){e.employee=t,t&&e.menu.enable(!0,"first")}),this.dataSvc.getTitleObservable().subscribe(function(t){return e.title=t})}},{key:"initializeMsalGuid",value:function(){var e=this;this.startBootstrapFromMsal(),this.msalBroadcastSvc.msalSubject$.pipe((0,A.h)(function(e){return e.eventType===x.t.LOGIN_SUCCESS}),(0,R.q)(1)).subscribe(function(){e.startBootstrapFromMsal()}),this.msalBroadcastSvc.inProgress$.pipe((0,A.h)(function(e){return e===O.$H.None}),(0,R.q)(1)).subscribe(function(){e.startBootstrapFromMsal()})}},{key:"startBootstrapFromMsal",value:function(){var e;return(0,c.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,r,o,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.msalSvc.instance.getAllAccounts(),r=n&&n[0]){t.next=3;break}return t.abrupt("return",void console.warn("[MSAL] No hay cuenta activa; no se puede bootstraper a\xfan"));case 3:if(!(o=null===(e=r.idTokenClaims)||void 0===e?void 0:e.oid)){t.next=14;break}if(this.authSvc.guid=o,console.log("[MSAL] guid establecido:",o),this.bootstrapSvc.isBootstrapped&&this.bootstrapSvc.isBootstrapped()){t.next=12;break}return i=this.router.url&&"/"!==this.router.url?this.router.url:"/home",t.next=9,this.bootstrapSvc.runBootstrap(i);case 9:if(t.t0=t.sent,t.t0){t.next=12;break}console.warn("[MSAL] runBootstrap no se complet\xf3 desde AppComponent (puede ser multiusuario o error).");case 12:t.next=15;break;case 14:console.warn("[MSAL] La cuenta activa no tiene oid; no se puede establecer guid");case 15:case"end":return t.stop()}},t,this)}))}},{key:"checkVersionAndClearCache",value:function(){try{var e=localStorage.getItem("app_version");"0.0.14"!==e&&(console.log("[VERSION] ".concat(e," \u2192 0.0.14. Limpiando cache...")),this.dataSvc.clearMetaData(),localStorage.clear(),localStorage.setItem("app_version","0.0.14"))}catch(t){console.error("[VERSION] Error limpiando cache",t)}}},{key:"onSessionOut",value:function(){}},{key:"checkActive",value:function(e){return this.router.url.includes(e.url)}},{key:"checkActiveModule",value:function(e){var t=this;return this.router.url.match(".*"+e.url+".*")||e.pages.filter(function(e){return e.url==t.router.url}).length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(d.t4),o.Y36(g.D),o.Y36(f),o.Y36(h),o.Y36(a.F0),o.Y36(v.e),o.Y36(d._q),o.Y36(d.Dh),o.Y36(d.SH),o.Y36(y.W2),o.Y36(y.J$),o.Y36(_.k))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-root"]],decls:10,vars:7,consts:[["contentId","main","when","xl",1,"ion-split-pane"],["side","start","menuId","first","contentId","main",1,"main-menu",3,"ngClass"],[1,"left-panel-content"],[1,"eax-main-menu"],["id","main",1,"content-div"],["class","eax-toolbar",4,"ngIf"],[3,"ngClass"],[1,"eax-toolbar"],[1,"eax-grid","toolbar-grid"],[1,"eax-row","full-row"],[1,"full-row-col"],[1,"eax-grid","toolbars-grid"],[1,"title-row"],[1,"title-col"],["slot","start"],[1,"title-label"]],template:function(e,t){1&e&&(o.TgZ(0,"ion-app"),o.TgZ(1,"ion-content"),o.TgZ(2,"ion-split-pane",0),o.TgZ(3,"ion-menu",1),o.TgZ(4,"ion-content",2),o._UZ(5,"app-eax-module-list",3),o.qZA(),o.qZA(),o.TgZ(6,"div",4),o.YNc(7,L,11,3,"ion-toolbar",5),o.TgZ(8,"ion-content"),o._UZ(9,"ion-router-outlet",6),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(3),o.Q6J("ngClass",o.VKq(3,U,!t.employee)),o.xp6(4),o.Q6J("ngIf",t.employee),o.xp6(2),o.Q6J("ngClass",o.VKq(5,q,t.employee)))},directives:[d.dr,d.W2,d.jI,d.z0,I.mk,D,I.O5,d.jP,d.sr,d.jY,d.Nd,d.wI,d.Sm,d.Q$],pipes:[m.X$],styles:[".ion-s
1plit-pane[_ngcontent-%COMP%]{--side-min-width:1rem;--side-width:16rem;--border:none}.logo-top[_ngcontent-%COMP%]{width:7.5rem}.main-menu[_ngcontent-%COMP%]{--max-width:16rem}.center-col[_ngcontent-%COMP%]{display:flex;align-items:center}.toolbars-grid[_ngcontent-%COMP%]{padding:0;display:flex;flex-flow:column}.toolbars-grid[_ngcontent-%COMP%] .options-row[_ngcontent-%COMP%]{flex:1;--ion-background-color:#fff;background-color:#fff}.title-row[_ngcontent-%COMP%]{background-color:var(--ion-color-secondary-shade)}.title-row[_ngcontent-%COMP%] .title-label[_ngcontent-%COMP%]{color:#fff;font-weight:900;line-height:2.45;letter-spacing:.22px;margin-left:2rem}.avatar-col[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center}.avatar-col[_ngcontent-%COMP%] .eax-avatar[_ngcontent-%COMP%]{width:3rem;height:3rem;cursor:default}.avatar-col[_ngcontent-%COMP%] .username[_ngcontent-%COMP%]{margin-left:1rem;margin-right:1rem;color:#6a707e;font-size:16px;line-height:1.25}.avatar-col[_ngcontent-%COMP%] .userOptions[_ngcontent-%COMP%]{width:1.75rem;height:1.75rem;color:var(--ion-color-primary)}.content-div[_ngcontent-%COMP%]{width:100%;display:flex;flex-flow:column}.content-div[_ngcontent-%COMP%] .eax-toolbar[_ngcontent-%COMP%] .toolbar-grid[_ngcontent-%COMP%]{height:100%;padding:0;min-height:4rem;display:flex;flex-flow:column}.content-div[_ngcontent-%COMP%] .eax-toolbar[_ngcontent-%COMP%] .toolbar-grid[_ngcontent-%COMP%] .full-row[_ngcontent-%COMP%]{flex:1}.content-div[_ngcontent-%COMP%] .eax-toolbar[_ngcontent-%COMP%] .toolbar-grid[_ngcontent-%COMP%] .full-row[_ngcontent-%COMP%] .full-row-col[_ngcontent-%COMP%]{padding:0;display:flex}.content-div[_ngcontent-%COMP%] .eax-toolbar[_ngcontent-%COMP%] .toolbar-grid[_ngcontent-%COMP%] .full-row[_ngcontent-%COMP%] .full-row-col[_ngcontent-%COMP%] .logo-col[_ngcontent-%COMP%]{min-width:21rem;margin-left:-.3rem;background-color:var(--ion-color-primary)}.content-div[_ngcontent-%COMP%] .eax-toolbar[_ngcontent-%COMP%] .toolbar-grid[_ngcontent-%COMP%] .full-row[_ngcontent-%COMP%] .full-row-col[_ngcontent-%COMP%] .logo-col[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;width:100%;height:10rem}.content-div[_ngcontent-%COMP%] .eax-toolbar[_ngcontent-%COMP%] .toolbar-grid[_ngcontent-%COMP%] .full-row[_ngcontent-%COMP%] .full-row-col[_ngcontent-%COMP%] .logo-col[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .logo_negativo[_ngcontent-%COMP%]{margin:auto}"]}),e}(),z=n(68161),G=n(31225),V=n(47727),$=function(){var e=function(){function e(t){w(this,e),this.dataSvc=t}return b(e,[{key:"intercept",value:function(e,t){var n=this;return t.handle(e).pipe((0,V.K)(function(e){return n.dataSvc.logError(e),(0,G._)(e.message)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.LFG(g.D))},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac}),e}(),K=n(31063),Y=n(75425),W=n(12437),X=n.n(W),Z=n(59827),J=n.n(Z),Q=n(87132);!function(e){e.AcquireTokenByCode="acquireTokenByCode",e.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",e.AcquireTokenSilent="acquireTokenSilent",e.AcquireTokenSilentAsync="acquireTokenSilentAsync",e.AcquireTokenPopup="acquireTokenPopup",e.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",e.CryptoOptsSignJwt="cryptoOptsSignJwt",e.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",e.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",e.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",e.SsoSilent="ssoSilent",e.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",e.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",e.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",e.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",e.BrokerHandhshake="brokerHandshake",e.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",e.AcquireTokenByBroker="acquireTokenByBroker",e.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",e.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",e.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken",e.RefreshTokenClientAcquireTokenByRefreshToken="refreshTokenClientAcquireTokenByRefreshToken",e.RefreshTokenClientCreateTokenRequestBody="refreshTokenClientCreateTokenRequestBody",e.AcquireTokenFromCache="acquireTokenFromCache",e.AcquireTokenBySilentIframe="acquireTokenBySilentIframe",e.InitializeBaseRequest="initializeBaseRequest",e.InitializeSilentRequest="initializeSilentRequest",e.InitializeClientApplication="initializeClientApplication",e.SilentIframeClientTokenHelper="silentIframeClientTokenHelper",e.SilentHandlerInitiateAuthRequest="silentHandlerInitiateAuthRequest",e.SilentHandlerMonitorIframeForHash="silentHandlerMonitorIframeForHash",e.SilentHandlerLoadFrame="silentHandlerLoadFrame",e.StandardInteractionClientCreateAuthCodeClient="standardInteractionClientCreateAuthCodeClient",e.StandardInteractionClientGetClientConfiguration="standardInteractionClientGetClientConfiguration",e.StandardInteractionClientInitializeAuthorizationRequest="standardInteractionClientInitializeAuthorizationRequest",e.StandardInteractionClientInitializeAuthorizationCodeRequest="standardInteractionClientInitializeAuthorizationCodeRequest",e.GetAuthCodeUrl="getAuthCodeUrl",e.HandleCodeResponseFromServer="handleCodeResponseFromServer",e.HandleCodeResponseFromHash="handleCodeResponseFromHash",e.UpdateTokenEndpointAuthority="updateTokenEndpointAuthority",e.AuthClientAcquireToken="authClientAcquireToken",e.AuthClientExecuteTokenRequest="authClientExecuteTokenRequest",e.AuthClientCreateTokenRequestBody="authClientCreateTokenRequestBody",e.AuthClientCreateQueryString="authClientCreateQueryString",e.PopTokenGenerateCnf="popTokenGenerateCnf",e.PopTokenGenerateKid="popTokenGenerateKid",e.HandleServerTokenResponse="handleServerTokenResponse",e.AuthorityFactoryCreateDiscoveredInstance="authorityFactoryCreateDiscoveredInstance",e.AuthorityResolveEndpointsAsync="authorityResolveEndpointsAsync",e.AuthorityGetCloudDiscoveryMetadataFromNetwork="authorityGetCloudDiscoveryMetadataFromNetwork",e.AuthorityUpdateCloudDiscoveryMetadata="authorityUpdateCloudDiscoveryMetadata",e.AuthorityGetEndpointMetadataFromNetwork="authorityGetEndpointMetadataFromNetwork",e.AuthorityUpdateEndpointMetadata="authorityUpdateEndpointMetadata",e.AuthorityUpdateMetadataWithRegionalInformation="authorityUpdateMetadataWithRegionalInformation",e.RegionDiscoveryDetectRegion="regionDiscoveryDetectRegion",e.RegionDiscoveryGetRegionFromIMDS="regionDiscoveryGetRegionFromIMDS",e.RegionDiscoveryGetCurrentVersion="regionDiscoveryGetCurrentVersion",e.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",e.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",e.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",e.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",e.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",e.UsernamePasswordCl
1ientAcquireToken="usernamePasswordClientAcquireToken",e.NativeMessageHandlerHandshake="nativeMessageHandlerHandshake"}(F||(F={})),function(e){e[e.NotStarted=0]="NotStarted",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"}(B||(B={}));var ee,te=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]),ne=n(96977),re=n(68114),oe=n(83424),ie=function(e){function t(n,r,o){var i=e.call(this,n,r,o)||this;return i.name="ServerError",Object.setPrototypeOf(i,t.prototype),i}return(0,re.ZT)(t,e),t}(oe.l),ae=["interaction_required","consent_required","login_required"],se=["message_only","additional_action","basic_action","user_password_expired","consent_required"],ue=function(e){function t(n,r,o,i,a,s,u){var c=e.call(this,n,r,o)||this;return Object.setPrototypeOf(c,t.prototype),c.timestamp=i||ne.gT.EMPTY_STRING,c.traceId=a||ne.gT.EMPTY_STRING,c.correlationId=s||ne.gT.EMPTY_STRING,c.claims=u||ne.gT.EMPTY_STRING,c.name="InteractionRequiredAuthError",c}return(0,re.ZT)(t,e),t.isInteractionRequiredError=function(e,t,n){var r=!!e&&ae.indexOf(e)>-1,o=!!n&&se.indexOf(n)>-1,i=!!t&&ae.some(function(e){return t.indexOf(e)>-1});return r||i||o},t.createNoTokensFoundError=function(){return new t("no_tokens_found","No refresh token found in the cache. Please sign-in.")},t.createNativeAccountUnavailableError=function(){return new t("native_account_unavailable","The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.")},t}(oe.l),ce=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.name="JoseHeaderError",Object.setPrototypeOf(o,t.prototype),o}return(0,re.ZT)(t,e),t.createMissingKidError=function(){return new t("missing_kid_error","The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.")},t.createMissingAlgError=function(){return new t("missing_alg_error","The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided.")},t}(oe.l),le=function(){function e(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return e.getShrHeaderString=function(t){if(!t.kid)throw ce.createMissingKidError();if(!t.alg)throw ce.createMissingAlgError();var n=new e({typ:t.typ||ne.L.Pop,kid:t.kid,alg:t.alg});return JSON.stringify(n)},e}(),fe=function(){function e(){}return e.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},e}(),he=function(){function e(e){this.cryptoObj=e}return e.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,fe.decimalToHex(e[0])+fe.decimalToHex(e[1])+fe.decimalToHex(e[2])+fe.decimalToHex(e[3])+"-"+fe.decimalToHex(e[4])+fe.decimalToHex(e[5])+"-"+fe.decimalToHex(e[6])+fe.decimalToHex(e[7])+"-"+fe.decimalToHex(e[8])+fe.decimalToHex(e[9])+"-"+fe.decimalToHex(e[10])+fe.decimalToHex(e[11])+fe.decimalToHex(e[12])+fe.decimalToHex(e[13])+fe.decimalToHex(e[14])+fe.decimalToHex(e[15])}catch(a){for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",r=0,o=ne.gT.EMPTY_STRING,i=0;i<36;i++)"-"!==t[i]&&"4"!==t[i]&&(r=16*Math.random()|0),"x"===t[i]?o+=n[r]:"y"===t[i]?(r&=3,o+=n[r|=8]):o+=t[i];return o}},e.prototype.isGuid=function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)},e}(),de=function(){function e(){}return e.stringToUtf8Arr=function(e){for(var t,n=0,r=e.length,o=0;o<r;o++)n+=(t=e.charCodeAt(o))<128?1:t<2048?2:t<65536?3:t<2097152?4:t<67108864?5:6;for(var i=new Uint8Array(n),a=0,s=0;a<n;s++)(t=e.charCodeAt(s))<128?i[a++]=t:t<2048?(i[a++]=192+(t>>>6),i[a++]=128+(63&t)):t<65536?(i[a++]=224+(t>>>12),i[a++]=128+(t>>>6&63),i[a++]=128+(63&t)):t<2097152?(i[a++]=240+(t>>>18),i[a++]=128+(t>>>12&63),i[a++]=128+(t>>>6&63),i[a++]=128+(63&t)):t<67108864?(i[a++]=248+(t>>>24),i[a++]=128+(t>>>18&63),i[a++]=128+(t>>>12&63),i[a++]=128+(t>>>6&63),i[a++]=128+(63&t)):(i[a++]=252+(t>>>30),i[a++]=128+(t>>>24&63),i[a++]=128+(t>>>18&63),i[a++]=128+(t>>>12&63),i[a++]=128+(t>>>6&63),i[a++]=128+(63&t));return i},e.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return t},e.utf8ArrToString=function(e){for(var t=ne.gT.EMPTY_STRING,n=void 0,r=e.length,o=0;o<r;o++)n=e[o],t+=String.fromCharCode(n>
1251&&n<254&&o+5<r?1073741824*(n-252)+(e[++o]-128<<24)+(e[++o]-128<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:n>247&&n<252&&o+4<r?(n-248<<24)+(e[++o]-128<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:n>239&&n<248&&o+3<r?(n-240<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:n>223&&n<240&&o+2<r?(n-224<<12)+(e[++o]-128<<6)+e[++o]-128:n>191&&n<224&&o+1<r?(n-192<<6)+e[++o]-128:n);return t},e.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},e}(),pe=function(){function e(){}return e.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,ne.gT.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},e.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,ne.gT.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},e.prototype.encode=function(e){var t=de.stringToUtf8Arr(e);return this.base64EncArr(t)},e.prototype.base64EncArr=function(e){for(var t=(3-e.length%3)%3,n=ne.gT.EMPTY_STRING,r=void 0,o=e.length,i=0,a=0;a<o;a++)i|=e[a]<<(16>>>(r=a%3)&24),2!==r&&e.length-a!=1||(n+=String.fromCharCode(this.uint6ToB64(i>>>18&63),this.uint6ToB64(i>>>12&63),this.uint6ToB64(i>>>6&63),this.uint6ToB64(63&i)),i=0);return 0===t?n:n.substring(0,n.length-t)+(1===t?"=":"==")},e.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:62===e?43:63===e?47:65},e}(),me=function(){function e(){}return e.prototype.decode=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Invalid base64 string")}var n=this.base64DecToArr(t);return de.utf8ArrToString(n)},e.prototype.base64DecToArr=function(e,t){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,ne.gT.EMPTY_STRING),r=n.length,o=t?Math.ceil((3*r+1>>>2)/t)*t:3*r+1>>>2,i=new Uint8Array(o),a=void 0,s=void 0,u=0,c=0,l=0;l<r;l++)if(s=3&l,u|=this.b64ToUint6(n.charCodeAt(l))<<18-6*s,3===s||r-l==1){for(a=0;a<3&&c<o;a++,c++)i[c]=u>>>(16>>>a&24)&255;u=0}return i},e.prototype.b64ToUint6=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:43===e?62:47===e?63:0},e}(),ye=n(91818),ve=function(){function e(e){this.base64Encode=new pe,this.cryptoObj=e}return e.prototype.generateCodes=function(){return(0,Q.mG)(this,void 0,void 0,function(){var e,t;return(0,Q.Jh)(this,function(n){switch(n.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=n.sent(),[2,{verifier:e,challenge:t}]}})})},e.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(32);return this.cryptoObj.getRandomValues(e),this.base64Encode.urlEncodeArr(e)}catch(t){throw ye.U.createPkceNotGeneratedError(t)}},e.prototype.generateCodeChallengeFromVerifier=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n;return(0,Q.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=r.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw n=r.sent(),ye.U.createPkceNotGeneratedError(n);case 3:return[2]}})})},e}(),ge=function(){function e(){}return e.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(r){return[2,window.crypto.subtle.generateKey(e,t,n)]})})},e.prototype.exportKey=function(e){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(t){return[2,window.crypto.subtle.exportKey(O.Mm,e)]})})},e.prototype.importKey=function(e,t,n,r){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(o){return[2,window.crypto.subtle.importKey(O.Mm,e,t,n,r)]})})},e.prototype.sign=function(e,t,n){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(r){return[2,window.crypto.subtle.sign(e,t,n)]})})},e.prototype.digest=function(e,t){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(n){return[2,window.crypto.subtle.digest(e,t)]})})},e}(),be=function(){function e(){}return e.prototype.initPrng=function(e){return window.msrCrypto.initPrng((0,Q.fl)(e))},e.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(r){return[2,window.msrCrypto.subtle.generateKey(e,t,n)]})})}
1,e.prototype.exportKey=function(e){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(t){return[2,window.msrCrypto.subtle.exportKey(O.Mm,e)]})})},e.prototype.importKey=function(e,t,n,r){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(o){return[2,window.msrCrypto.subtle.importKey(O.Mm,e,t,n,r)]})})},e.prototype.sign=function(e,t,n){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(r){return[2,window.msrCrypto.subtle.sign(e,t,n)]})})},e.prototype.digest=function(e,t){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(n){return[2,window.msrCrypto.subtle.digest(e,t)]})})},e}(),we=function(){function e(){}return e.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(r){return[2,new Promise(function(r,o){var i=window.msCrypto.subtle.generateKey(e,t,n);i.addEventListener("complete",function(e){r(e.target.result)}),i.addEventListener("error",function(e){o(e)})})]})})},e.prototype.exportKey=function(e){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(t){return[2,new Promise(function(t,n){var r=window.msCrypto.subtle.exportKey(O.Mm,e);r.addEventListener("complete",function(e){var r=de.utf8ArrToString(new Uint8Array(e.target.result)).replace(/\r/g,ne.gT.EMPTY_STRING).replace(/\n/g,ne.gT.EMPTY_STRING).replace(/\t/g,ne.gT.EMPTY_STRING).split(" ").join(ne.gT.EMPTY_STRING).replace("\0",ne.gT.EMPTY_STRING);try{t(JSON.parse(r))}catch(e){n(e)}}),r.addEventListener("error",function(e){n(e)})})]})})},e.prototype.importKey=function(e,t,n,r){return(0,Q.mG)(this,void 0,void 0,function(){var o,i;return(0,Q.Jh)(this,function(a){return o=de.getSortedObjectString(e),i=de.stringToArrayBuffer(o),[2,new Promise(function(e,o){var a=window.msCrypto.subtle.importKey(O.Mm,i,t,n,r);a.addEventListener("complete",function(t){e(t.target.result)}),a.addEventListener("error",function(e){o(e)})})]})})},e.prototype.sign=function(e,t,n){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(r){return[2,new Promise(function(r,o){var i=window.msCrypto.subtle.sign(e,t,n);i.addEventListener("complete",function(e){r(e.target.result)}),i.addEventListener("error",function(e){o(e)})})]})})},e.prototype.digest=function(e,t){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(n){return[2,new Promise(function(n,r){var o=window.msCrypto.subtle.digest(e,t.buffer);o.addEventListener("complete",function(e){n(e.target.result)}),o.addEventListener("error",function(e){r(e)})})]})})},e}(),_e=n(79459),ke=new Uint8Array([1,0,1]),Se=function(){function e(e,t){var n,r;if(this.logger=e,this.cryptoOptions=t,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new ge;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new we;else{if(!this.hasMsrCrypto()||!(null===(n=this.cryptoOptions)||void 0===n?void 0:n.useMsrCrypto))throw this.hasMsrCrypto()&&this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"),this.logger.error("BrowserCrypto: No crypto interfaces available."),ye.U.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new be}if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(null===(r=this.cryptoOptions)||void 0===r?void 0:r.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),_e.W.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:"RSASSA-PKCS1-v1_5",hash:"SHA-256",modulusLength:2048,publicExponent:ke}}return e.prototype.hasIECrypto=function(){return"msCrypto"in window},e.prototype.hasBrowserCrypto=function(){return"crypto"in window},e.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},e.prototype.sha256Digest=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t;return(0,Q.Jh)(this,function(n){return t=de.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:"SHA-256"},t)]})})},e.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},e.prototype.generateKeyPair=function(e,t){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]})})}
vendor: 8,715 bytes, line 1
1,e.prototype.exportJwk=function(e){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(t){return[2,this.subtleCrypto.exportKey(e)]})})},e.prototype.importJwk=function(e,t,n){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(r){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,n)]})})},e.prototype.sign=function(e,t){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]})})},e}(),Ce=function(){function e(){this.dbName=O.H4,this.version=O.kd,this.tableName=O.Gv,this.dbOpen=!1}return e.prototype.open=function(){return(0,Q.mG)(this,void 0,void 0,function(){var e=this;return(0,Q.Jh)(this,function(t){return[2,new Promise(function(t,n){var r=window.indexedDB.open(e.dbName,e.version);r.addEventListener("upgradeneeded",function(t){t.target.result.createObjectStore(e.tableName)}),r.addEventListener("success",function(n){e.db=n.target.result,e.dbOpen=!0,t()}),r.addEventListener("error",function(){return n(ye.U.createDatabaseUnavailableError())})})]})})},e.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},e.prototype.validateDbIsOpen=function(){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}})})},e.prototype.getItem=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t=this;return(0,Q.Jh)(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(n,r){if(!t.db)return r(ye.U.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readonly").objectStore(t.tableName).get(e);o.addEventListener("success",function(e){var r=e;t.closeConnection(),n(r.target.result)}),o.addEventListener("error",function(e){t.closeConnection(),r(e)})})]}})})},e.prototype.setItem=function(e,t){return(0,Q.mG)(this,void 0,void 0,function(){var n=this;return(0,Q.Jh)(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(r,o){if(!n.db)return o(ye.U.createDatabaseNotOpenError());var i=n.db.transaction([n.tableName],"readwrite").objectStore(n.tableName).put(t,e);i.addEventListener("success",function(){n.closeConnection(),r()}),i.addEventListener("error",function(e){n.closeConnection(),o(e)})})]}})})},e.prototype.removeItem=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t=this;return(0,Q.Jh)(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(n,r){if(!t.db)return r(ye.U.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readwrite").objectStore(t.tableName).delete(e);o.addEventListener("success",function(){t.closeConnection(),n()}),o.addEventListener("error",function(e){t.closeConnection(),r(e)})})]}})})},e.prototype.getKeys=function(){return(0,Q.mG)(this,void 0,void 0,function(){var e=this;return(0,Q.Jh)(this,function(t){switch(t.label){case 0:return[4,this.validateDbIsOpen()];case 1:return t.sent(),[2,new Promise(function(t,n){if(!e.db)return n(ye.U.createDatabaseNotOpenError());var r=e.db.transaction([e.tableName],"readonly").objectStore(e.tableName).getAllKeys();r.addEventListener("success",function(n){var r=n;e.closeConnection(),t(r.target.result)}),r.addEventListener("error",function(t){e.closeConnection(),n(t)})})]}})})},e.prototype.containsKey=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t=this;return(0,Q.Jh)(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(n,r){if(!t.db)return r(ye.U.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readonly").objectStore(t.tableName).count(e);o.addEventListener("success",function(e){var r=e;t.closeConnection(),n(1===r.target.result)}),o.addEventListener("error",function(e){t.closeConnection(),r(e)})})]}})})},e.prototype.deleteDatabase=function(){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(e,t){var n=window.indexedDB.deleteDatabase(O.H4);n.addEventListener("success",function(){return e(!0)}),n.addEventListener("blocked",function(){return e(!0)}),n.addEventListener("error",function(){return t(!1)})})]})})},e}(),Ee=function(){function e(){this.cache=new Map}return e.prototype.getItem=function(e){return this.cache.get(e)||null},e.prototype.setItem=function(e,t){this.cache.set(e,t)},e.prototype.removeItem=function(e){this.cache.delete(e)},e.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(t,n){e.push(n)}),e},e.prototype.containsKey=function(e){return this.cache.has(e)},e.prototype.clear=function(){this.cache.clear()},e}(),Te=function(){function e(e,t){this.inMemoryCache=new Ee,this.indexedDBCache=new Ce,this.logger=e,this.storeName=t}return e.prototype.handleDatabaseAccessError=function(e){if(!(e instanceof ye.U&&e.errorCode===ye.n.databaseUnavailable.code))throw e;this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.")},e.prototype.getItem=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n;return(0,Q.Jh)(this,function(r){switch(r.label){case 0:if(t=this.inMemoryCache.getItem(e))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(e)];case 2:return[2,r.sent()];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}})})},e.prototype.setItem=function(e,t){return(0,Q.mG)(this,void 0,void 0,function(){var n;return(0,Q.Jh)(this,function(r){switch(r.label){case 0:this.inMemoryCache.setItem(e,t),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,t)];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2]}})})},e.prototype.removeItem=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t;return(0,Q.Jh)(this,function(n){switch(n.label){case 0:this.inMemoryCache.removeItem(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2]}})})},e.prototype.getKeys=function(){return(0,Q.mG)(this,void 0,void 0,function(){var e,t;return(0,Q.Jh)(this,function(n){switch(n.label){case 0:if(0!==(e=this.inMemoryCache.getKeys()).length)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,n.sent()];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2,e]}})})},e.prototype.containsKey=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n;return(0,Q.Jh)(this,function(r){switch(r.label){case 0:if(t=this.inMemoryCache.containsKey(e))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(e)];case 2:return[2,r.sent()];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}})})},e.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},e.prototype.clearPersistent=function(){return(0,Q.mG)(this,void 0,void 0,function(){var e,t;return(0,Q.Jh)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return(e=n.sent())&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return t=n.sent(),this.handleDatabaseAccessError(t),[2,!1];case 3:return[2]}})})},e}();!function(e){e.asymmetricKeys="asymmetricKeys",e.symmetricKeys="symmetricKeys"}(ee||(ee={}));var xe,Oe=function(){function e(e){this.logger=e,this.asymmetricKeys=new Te(this.logger,ee.asymmetricKeys),this.symmetricKeys=new Te(this.logger,ee.symmetricKeys)}return e.prototype.clear=function(){return(0,Q.mG)(this,void 0,void 0,function(){var e;return(0,Q.Jh)(this,function(t){switch(t.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent
1()];case 2:return t.sent(),[2,!0];case 3:return(e=t.sent())instanceof Error?this.logger.error("Clearing keystore failed with error: "+e.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},e}(),Ae=function(){function e(e,t,n){this.logger=e,this.browserCrypto=new Se(this.logger,n),this.b64Encode=new pe,this.b64Decode=new me,this.guidGenerator=new he(this.browserCrypto),this.pkceGenerator=new ve(this.browserCrypto),this.cache=new Oe(this.logger),this.performanceClient=t}return e.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},e.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},e.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},e.prototype.generatePkceCodes=function(){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},e.prototype.getPublicKeyThumbprint=function(t){var n;return(0,Q.mG)(this,void 0,void 0,function(){var r,o,i,a,s,u,c;return(0,Q.Jh)(this,function(l){switch(l.label){case 0:return r=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(F.CryptoOptsGetPublicKeyThumbprint,t.correlationId),[4,this.browserCrypto.generateKeyPair(e.EXTRACTABLE,e.POP_KEY_USAGES)];case 1:return o=l.sent(),[4,this.browserCrypto.exportJwk(o.publicKey)];case 2:return i=l.sent(),a=de.getSortedObjectString({e:i.e,kty:i.kty,n:i.n}),[4,this.hashString(a)];case 3:return s=l.sent(),[4,this.browserCrypto.exportJwk(o.privateKey)];case 4:return u=l.sent(),[4,this.browserCrypto.importJwk(u,!1,["sign"])];case 5:return c=l.sent(),[4,this.cache.asymmetricKeys.setItem(s,{privateKey:c,publicKey:o.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri})];case 6:return l.sent(),r&&r.endMeasurement({success:!0}),[2,s]}})})},e.prototype.removeTokenBindingKey=function(e){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(t){switch(t.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return t.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return[2,!t.sent()]}})})},e.prototype.clearKeystore=function(){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}})})},e.prototype.signJwt=function(e,t,n){var r;return(0,Q.mG)(this,void 0,void 0,function(){var o,i,a,s,u,c,l,f,h,d,p,m,y;return(0,Q.Jh)(this,function(v){switch(v.label){case 0:return o=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(F.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(!(i=v.sent()))throw ye.U.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(i.publicKey)];case 2:return a=v.sent(),s=de.getSortedObjectString(a),u=this.b64Encode.urlEncode(JSON.stringify({kid:t})),c=le.getShrHeaderString({kid:u,alg:a.alg}),l=this.b64Encode.urlEncode(c),e.cnf={jwk:JSON.parse(s)},f=this.b64Encode.urlEncode(JSON.stringify(e)),d=de.stringToArrayBuffer(h=l+"."+f),[4,this.browserCrypto.sign(i.privateKey,d)];case 3:return p=v.sent(),m=this.b64Encode.urlEncodeArr(new Uint8Array(p)),y=h+"."+m,o&&o.endMeasurement({success:!0}),[2,y]}})})},e.prototype.hashString=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n;return(0,Q.Jh)(this,function(r){switch(r.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return t=r.sent(),n=new Uint8Array(t),[2,this.b64Encode.urlEncodeArr(n)]}})})},e.POP_KEY_USAGES=["sign","verify"],e.EXTRACTABLE=!0,e}(),Re=n(83987),Ie=function(){function e(e,t,n,r,o,i){this.authority=t,this.libraryName=r,this.libraryVersion=o,this.applicationTelemetry=i,this.clientId=e,this.logger=n,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return e.prototype.startPerformanceMeasurement=function(e,t){return{}},e.prototype.startPerformanceMeasuremeant=function(e,t){return{}},e.prototype.getIntFields=function(){return te},e.prototype.getPreQueueTime=function(e,t){var n=this.preQueueTimeByCorrelationId.get(t);if(n){if(n.name===e)return n.time;this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+e+", unable to add queue measurement")}else this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: "+t+", unable to add queue measurement")},e.prototype.calculateQueuedTime=function(e,t){return e<1?(this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not "+e),0):t<1?(this.logger.trace("PerformanceClient: currentTime should be a positive integer and not "+t),
10):t<e?(this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"),0):t-e},e.prototype.addQueueMeasurement=function(e,t,n,r){if(t){if(0===n)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+e+" is "+n);else if(!n)return void this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+e);var o={eventName:e,queueTime:n,manuallyCompleted:r},i=this.queueMeasurements.get(t);i?(i.push(o),this.queueMeasurements.set(t,i)):(this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+t+" to queue measurements"),this.queueMeasurements.set(t,[o])),this.preQueueTimeByCorrelationId.delete(t)}else this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+e+", cannot add queue measurement")},e.prototype.startMeasurement=function(e,t){var n,r,o=this,i=t||this.generateId();t||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",i),this.logger.trace("PerformanceClient: Performance measurement started for "+e,i);var a=this.startPerformanceMeasuremeant(e,i);a.startMeasurement();var s={eventId:this.generateId(),status:B.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:i,appName:null===(n=this.applicationTelemetry)||void 0===n?void 0:n.appName,appVersion:null===(r=this.applicationTelemetry)||void 0===r?void 0:r.appVersion};return this.cacheEventByCorrelationId(s),{endMeasurement:function(e){return o.endMeasurement((0,re.pi)((0,re.pi)({},s),e),a)},discardMeasurement:function(){return o.discardMeasurements(s.correlationId)},addStaticFields:function(e){return o.addStaticFields(e,s.correlationId)},increment:function(e){return o.increment(e,s.correlationId)},measurement:a,event:s}},e.prototype.endMeasurement=function(e,t){var n,r,o=this,i=this.eventsByCorrelationId.get(e.correlationId);if(!i)return this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId),null;var a=e.eventId===i.eventId,s={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};a?(s=this.getQueueInfo(e.correlationId),this.discardCache(i.correlationId)):null===(n=i.incompleteSubMeasurements)||void 0===n||n.delete(e.eventId),null==t||t.endMeasurement();var u=null==t?void 0:t.flushMeasurement();if(!u)return this.logger.trace("PerformanceClient: Performance measurement not taken",i.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+u+" ms",e.correlationId),!a)return i[e.name+"DurationMs"]=Math.floor(u),(0,re.pi)({},i);var c=(0,re.pi)((0,re.pi)({},i),e),l=0;return null===(r=c.incompleteSubMeasurements)||void 0===r||r.forEach(function(t){o.logger.trace("PerformanceClient: Incomplete submeasurement "+t.name+" found for "+e.name,c.correlationId),l++}),c.incompleteSubMeasurements=void 0,c=(0,re.pi)((0,re.pi)({},c),{durationMs:Math.round(u),queuedTimeMs:s.totalQueueTime,queuedCount:s.totalQueueCount,queuedManuallyCompletedCount:s.manuallyCompletedCount,status:B.Completed,incompleteSubsCount:l}),this.truncateIntegralFields(c,this.getIntFields()),this.emitEvents([c],e.correlationId),c},e.prototype.addStaticFields=function(e,t){this.logger.trace("PerformanceClient: Updating static fields");var n=this.eventsByCorrelationId.get(t);n?this.eventsByCorrelationId.set(t,(0,re.pi)((0,re.pi)({},n),e)):this.logger.trace("PerformanceClient: Event not found for",t)},e.prototype.increment=function(e,t){this.logger.trace("PerformanceClient: Updating counters");var n=this.eventsByCorrelationId.get(t);if(n)for(var r in e)n.hasOwnProperty(r)||(n[r]=0),n[r]+=e[r];else this.logger.trace("PerformanceClient: Event not found for",t)},e.prototype.cacheEventByCorrelationId=function(e){var t=this.eventsByCorrelationId.get(e.correlationId);t?(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" added/updated",e.correlationId),t.incompleteSubMeasurements=t.incompleteSubMeasurements||new Map,t.incompleteSubMeasurements.set(e.eventId,{name:e.name,startTimeMs:e.startTimeMs})):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,(0,re.pi)({},e)))},e.prototype.getQueueInfo=function(e){var t=this.queueMeasurements.get(e);t||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+e);var n=0,r=0,o=0;return null==t||t.forEach(function(e){n+=e.queueTime,r++,o+=e.manuallyCompleted?1:0}),{totalQueueTime:n,totalQueueCount:r,manuallyCompletedCount:o}},e.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},e.prototype.discardCache=function(e){this.discardMeasurements(e),this.logger.trace("PerformanceClient: QueueMeasurements discarded",e),this.queueMeasurements.delete(e),this.logger.trace("PerformanceClient: Pre-queue times discarded",e),this.preQueueTimeByCorrelationId.delete(e)},e.prototype.addPerformanceCallback=function(e){var t=this.generateId();return this.callbacks.set(t,e),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+t),t},e.prototype.removePerformanceCallback=function(e){var t=this.callbacks.delete(e);return this.logger.verbose(t?"PerformanceClient: Performance callback "+e+" removed.":"PerformanceClient: Performance callback "+e+" not removed."),t},e.prototype.emitEvents=function(e,t){var n=this;this.logger.verbose("PerformanceClient: Emitting performance events",t),this.callbacks.forEach(function(r,o){n.logger.trace("PerformanceClient: Emitting event to callback "+o,t),r.apply(null,[e])})},e.prototype.truncateIntegralFields=function(e,t){t.forEach(function(t){t in e&&"number"==typeof e[t]&&(e[t]=Math.floor(e[t]))})},e}(),Pe=function(){function e(){}return e.prototype.startMeasurement=function(){},e.prototype.endMeasurement=function(){},e.prototype.flushMeasurement=function(){return null},e}(),Me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,re.ZT)(t,e),t.prototype.generateId=function(){return"callback-id"},t.prototype.startPerformanceMeasuremeant=function(){return new Pe},t.prototype.startPerformanceMeasurement=function(){return new Pe},t.prototype.calculateQueuedTime=function(e,t){return 0},t.prototype.addQueueMeasurement=function(e,t,n){},t.prototype.setPreQueueTime=function(e,t){},t}(Ie),Ne={createNewGuid:function(){throw oe.l.createUnexpectedError("Crypto interface - createNewGuid() has not been implemented")},base64Decode:function(){throw oe.l.createUnexpectedError("Crypto interface - base64Decode() has not been implemented")},base64Encode:function(){throw oe.l.createUnexpectedError("Crypto interface - base64Encode() has not been implemented")},generatePkceCodes:function(){return(0,re.mG)(this,void 0,void 0,function(){return(0,re.Jh)(this,function(e){throw oe.l.createUnexpectedError("Crypto interface - generatePkceCodes() has not been implemented")})})},getPublicKeyThumbprint:function(){return(0,re.mG)(this,void 0,void 0,function(){return(0,re.Jh)(this,function(e){throw oe.l.createUnexpectedError("Crypto interface - getPublicKeyThumbprint() has not been implemented")})})},removeTokenBindingKey:function(){return(0,re.mG)(this,void 0,void 0,function(){return(0,re.Jh)(this,function(e){throw oe.l.createUnexpectedError("Crypto interface - removeTokenBindingKey() has not been implemented")})})},clearKeystore:function(){return(0,re.mG)(this,void 0,void 0,function(){return(0,re.Jh)(this,function(e){throw oe.l.createUnexpectedError("Crypto interface - clearKeystore() has not been implemented")})})},signJwt:function(){return(0,re.mG)(this,void 0,void 0,function(){return(0,re.Jh)(this,function(e){throw oe.l.createUnexpectedError("Crypto interface - signJwt() has not been implemented")})})},hashString:function(){return(0,re.mG)(this,void 0,void 0,function(){return(0,re.Jh)(this,function(e){throw oe.l.createUnexpectedError("Crypto interface - hashString() has not been implemented")})})}},je=n(77275),De=function(){function e(){}return e.prototype.generateAccountId=function(){return e.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},e.prototype.generateCredentialId=function(){return e.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},e.prototype.generateTarget=function(){return e.generateTargetForCacheKey(this.target)},e.prototype.generateCredentialKey=function(){return e.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},e.prototype.generateType=function(){switch(this.credentialType){case ne.d3.ID_TOKEN:return ne.LL.ID_TOKEN;case ne.d3.ACCESS_TOKEN:case ne.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME:return ne.LL.ACCESS_TOKEN;case ne.d3.REFRESH_TOKEN:return ne.LL.REFRESH_TOKEN;default:throw je.e.createUnexpectedCredentialTypeError()}},e.generateCredentialCacheKey=function(e,t,n,r,o,i,a,s,u){return[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(n,r,o,a),this.generateTargetForCacheKey(i),this.generateClaimsHashForCacheKey(u),this.generateSchemeForCacheKey(s)].join(ne.Bv.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateAccountIdForCacheKey=function(e,t){return[e,t].join(ne.Bv.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateCredentialIdForCacheKey=function(e,t,n,r){return[e,e===ne.d3.REFRESH_TOKEN&&r||t,n||ne.gT.EMPTY_STRING].join(ne.Bv.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateTargetForCacheKey=function(e){return(e||ne.gT.EMPTY_STRING).toLowerCase()},e.generateClaimsHashForCacheKey=function(e){return(e||ne.gT.EMPTY_STRING).toLowerCase()},e.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==ne.hO.BEARER.toLowerCase()?e.toLowerCase():ne.gT.EMPTY_STRING},e}(),Le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,re.ZT)(t,e),t.createIdTokenEntity=function(e,n,r,o,i){var a=new t;return a.credentialType=ne.d3.ID_TOKEN,a.homeAccountId=e,a.environment=n,a.clientId=o,a.secret=r,a.realm=i,a},t.isIdTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===ne.d3.ID_TOKEN},t}(De),Fe=n(43130),Be=n(49622),Ue=function(){function e(e){var t=this,n=e?Be.x.trimArrayEntries((0,re.pr)(e)):[],r=n?Be.x.removeEmptyStringsFromArray(n):[];this.validateInputScopes(r),this.scopes=new Set,r.forEach(function(e){return t.scopes.add(e)})}return e.fromString=function(t){return new e((t||ne.gT.EMPTY_STRING).split(" "))},e.createSearchScopes=function(t){var n=new e(t);return n.containsOnlyOIDCScopes()?n.removeScope(ne.gT.OFFLINE_ACCESS_SCOPE):n.removeOIDCScopes(),n},e.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw Fe.r.createEmptyScopesArrayError()},e.prototype.containsScope=function(t){var n=new e(this.printScopesLowerCase().split(" "));return!Be.x.isEmpty(t)&&n.scopes.has(t.toLowerCase())},e.prototype.containsScopeSet=function(e){var t=this;return!(!e||e.scopes.size<=0)&&this.scopes.size>=e.scopes.size&&e.asArray().every(function(e){return t.containsScope(e)})},e.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return ne.$f.forEach(function(n){e.containsScope(n)&&(t+=1)}),this.scopes.size===t},e.prototype.appendScope=function(e){Be.x.isEmpty(e)||this.scopes.add(e.trim())},e.prototype.appendScopes=function(e){var t=this;try{e.forEach(function(e){return t.appendScope(e)})}catch(n){throw je.e.createAppendScopeSetError(n)}},e.prototype.removeScope=function(e){if(Be.x.isEmpty(e))throw je.e.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},e.prototype.removeOIDCScopes=function(){var e=this;ne.$f.forEach(function(t){e.scopes.delete(t)})},e.prototype.unionScopeSets=function(e){if(!e)throw je.e.createEmptyInputScopeSetError();var t=new Set;
1return e.scopes.forEach(function(e){return t.add(e.toLowerCase())}),this.scopes.forEach(function(e){return t.add(e.toLowerCase())}),t},e.prototype.intersectingScopeSets=function(e){if(!e)throw je.e.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var t=this.unionScopeSets(e),n=e.getScopeCount(),r=this.getScopeCount();return t.size<r+n},e.prototype.getScopeCount=function(){return this.scopes.size},e.prototype.asArray=function(){var e=[];return this.scopes.forEach(function(t){return e.push(t)}),e},e.prototype.printScopes=function(){return this.scopes?this.asArray().join(" "):ne.gT.EMPTY_STRING},e.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},e}();function qe(e,t){if(Be.x.isEmpty(e))throw je.e.createClientInfoEmptyError();try{var n=t.base64Decode(e);return JSON.parse(n)}catch(r){throw je.e.createClientInfoDecodingError(r.message)}}function He(e){if(Be.x.isEmpty(e))throw je.e.createClientInfoDecodingError("Home account ID was empty.");var t=e.split(ne.Bv.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?ne.gT.EMPTY_STRING:t[1]}}!function(e){e[e.Default=0]="Default",e[e.Adfs=1]="Adfs",e[e.Dsts=2]="Dsts",e[e.Ciam=3]="Ciam"}(xe||(xe={}));var ze,Ge=function(){function e(){}return e.prototype.generateAccountId=function(){return[this.homeAccountId,this.environment].join(ne.Bv.CACHE_KEY_SEPARATOR).toLowerCase()},e.prototype.generateAccountKey=function(){return e.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},e.prototype.generateType=function(){switch(this.authorityType){case ne.iR.ADFS_ACCOUNT_TYPE:return ne.LL.ADFS;case ne.iR.MSAV1_ACCOUNT_TYPE:return ne.LL.MSA;case ne.iR.MSSTS_ACCOUNT_TYPE:return ne.LL.MSSTS;
1case ne.iR.GENERIC_ACCOUNT_TYPE:return ne.LL.GENERIC;default:throw je.e.createUnexpectedAccountTypeError()}},e.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId}},e.generateAccountCacheKey=function(e){return[e.homeAccountId,e.environment||ne.gT.EMPTY_STRING,e.tenantId||ne.gT.EMPTY_STRING].join(ne.Bv.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAccount=function(t,n,r,o,i,a,s,u){var c,l,f,h,d,p,m=new e;m.authorityType=ne.iR.MSSTS_ACCOUNT_TYPE,m.clientInfo=t,m.homeAccountId=n,m.nativeAccountId=u;var y=s||o&&o.getPreferredCache();if(!y)throw je.e.createInvalidCacheEnvironmentError();if(m.environment=y,m.realm=(null===(c=null==r?void 0:r.claims)||void 0===c?void 0:c.tid)||ne.gT.EMPTY_STRING,r){m.idTokenClaims=r.claims,m.localAccountId=(null===(l=null==r?void 0:r.claims)||void 0===l?void 0:l.oid)||(null===(f=null==r?void 0:r.claims)||void 0===f?void 0:f.sub)||ne.gT.EMPTY_STRING;var v=null===(h=null==r?void 0:r.claims)||void 0===h?void 0:h.preferred_username,g=(null===(d=null==r?void 0:r.claims)||void 0===d?void 0:d.emails)?r.claims.emails[0]:null;m.username=v||g||ne.gT.EMPTY_STRING,m.name=null===(p=null==r?void 0:r.claims)||void 0===p?void 0:p.name}return m.cloudGraphHostName=i,m.msGraphHost=a,m},e.createGenericAccount=function(t,n,r,o,i,a){var s,u,c,l,f=new e;f.authorityType=r&&r.authorityType===xe.Adfs?ne.iR.ADFS_ACCOUNT_TYPE:ne.iR.GENERIC_ACCOUNT_TYPE,f.homeAccountId=t,f.realm=ne.gT.EMPTY_STRING;var h=a||r&&r.getPreferredCache();if(!h)throw je.e.createInvalidCacheEnvironmentError();return n&&(f.localAccountId=(null===(s=null==n?void 0:n.claims)||void 0===s?void 0:s.oid)||(null===(u=null==n?void 0:n.claims)||void 0===u?void 0:u.sub)||ne.gT.EMPTY_STRING,f.username=(null===(c=null==n?void 0:n.claims)||void 0===c?void 0:c.upn)||ne.gT.EMPTY_STRING,f.name=(null===(l=null==n?void 0:n.claims)||void 0===l?void 0:l.name)||ne.gT.EMPTY_STRING,f.idTokenClaims=null==n?void 0:n.claims),f.environment=h,f.cloudGraphHostName=o,f.msGraphHost=i,f},e.generateHomeAccountId=function(e,t,n,r,o){var i,a=(null===(i=null==o?void 0:o.claims)||void 0===i?void 0:i.sub)?o.claims.sub:ne.gT.EMPTY_STRING;if(t===xe.Adfs||t===xe.Dsts)return a;if(e)try{var s=qe(e,r);if(!Be.x.isEmpty(s.uid)&&!Be.x.isEmpty(s.utid))return""+s.uid+ne.Bv.CLIENT_INFO_SEPARATOR+s.utid}catch(u){}return n.verbose("No client info in response"),a},e.isAccountEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType")},e.accountInfoIsEqual=function(e,t,n){if(!e||!t)return!1;var r=!0;if(n){var o=e.idTokenClaims||{},i=t.idTokenClaims||{};r=o.iat===i.iat&&o.nonce===i.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&r},e}(),Ve=function(){function e(t,n){if(Be.x.isEmpty(t))throw je.e.createTokenNullOrEmptyError(t);this.rawToken=t,this.claims=e.extractTokenClaims(t,n)}return e.extractTokenClaims=function(e,t){var n=Be.x.decodeAuthToken(e);try{var r=t.base64Decode(n.JWSPayload);return JSON.parse(r)}catch(o){throw je.e.createTokenParsingError(o)}},e.checkMaxAge=function(e,t){if(0===t||Date.now()-3e5>e+t)throw je.e.createMaxAgeTranspiredError()},e}(),$e=function(){function e(e,t,n){this.clientId=e,this.cryptoImpl=t,this.commonLogger=n.clone("@azure/msal-common","13.0.0")}return e.prototype.getAllAccounts=function(){var e=this,t=this.getAccountKeys();if(t.length<1)return[];var n=t.reduce(function(t,n){var r=e.getAccount(n);return r?(t.push(r),t):t},[]);return n.length<1?[]:n.map(function(t){return e.getAccountInfoFromEntity(t)})},e.prototype.getAccountInfoFilteredBy=function(e){var t=this.getAccountsFilteredBy(e);return t.length>0?this.getAccountInfoFromEntity(t[0]):null},e.prototype.getAccountInfoFromEntity=function(e){var t=e.getAccountInfo(),n=this.getIdToken(t);return n&&(t.idToken=n.secret,t.idTokenClaims=new Ve(n.secret,this.cryptoImpl).claims),t},e.prototype.saveCacheRecord=function(e){return(0,re.mG)(this,void 0,void 0,function(){return(0,re.Jh)(this,function(t){switch(t.label){case 0:if(!e)throw je.e.createNullOrUndefinedCacheRecord();return e.account&&this.setAccount(e.account),e.idToken&&this.setIdTokenCredential(e.idToken),e.accessToken?[4,this.saveAcce
1ssToken(e.accessToken)]:[3,2];case 1:t.sent(),t.label=2;case 2:return e.refreshToken&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata),[2]}})})},e.prototype.saveAccessToken=function(e){return(0,re.mG)(this,void 0,void 0,function(){var t,n,r,o,i=this;return(0,re.Jh)(this,function(a){switch(a.label){case 0:return t={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},n=this.getTokenKeys(),r=Ue.fromString(e.target),o=[],n.accessToken.forEach(function(e){if(i.accessTokenKeyMatchesFilter(e,t,!1)){var n=i.getAccessTokenCredential(e);n&&i.credentialMatchesFilter(n,t)&&Ue.fromString(n.target).intersectingScopeSets(r)&&o.push(i.removeAccessToken(e))}}),[4,Promise.all(o)];case 1:return a.sent(),this.setAccessTokenCredential(e),[2]}})})},e.prototype.getAccountsFilteredBy=function(e){var t=this,n=this.getAccountKeys(),r=[];return n.forEach(function(n){if(t.isAccountKey(n,e.homeAccountId,e.realm)){var o=t.getAccount(n);o&&(e.homeAccountId&&!t.matchHomeAccountId(o,e.homeAccountId)||e.localAccountId&&!t.matchLocalAccountId(o,e.localAccountId)||e.username&&!t.matchUsername(o,e.username)||e.environment&&!t.matchEnvironment(o,e.environment)||e.realm&&!t.matchRealm(o,e.realm)||e.nativeAccountId&&!t.matchNativeAccountId(o,e.nativeAccountId)||r.push(o))}}),r},e.prototype.isAccountKey=function(e,t,n){return!(e.split(ne.Bv.CACHE_KEY_SEPARATOR).length<3||t&&!e.toLowerCase().includes(t.toLowerCase())||n&&!e.toLowerCase().includes(n.toLowerCase()))},e.prototype.isCredentialKey=function(e){if(e.split(ne.Bv.CACHE_KEY_SEPARATOR).length<6)return!1;var t=e.toLowerCase();if(-1===t.indexOf(ne.d3.ID_TOKEN.toLowerCase())&&-1===t.indexOf(ne.d3.ACCESS_TOKEN.toLowerCase())&&-1===t.indexOf(ne.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())&&-1===t.indexOf(ne.d3.REFRESH_TOKEN.toLowerCase()))return!1;if(t.indexOf(ne.d3.REFRESH_TOKEN.toLowerCase())>-1){var n=""+ne.d3.REFRESH_TOKEN+ne.Bv.CACHE_KEY_SEPARATOR+ne.ch+ne.Bv.CACHE_KEY_SEPARATOR;if(-1===t.indexOf((""+ne.d3.REFRESH_TOKEN+ne.Bv.CACHE_KEY_SEPARATOR+this.clientId+ne.Bv.CACHE_KEY_SEPARATOR).toLowerCase())&&-1===t.indexOf(n.toLowerCase()))return!1}else if(-1===t.indexOf(this.clientId.toLowerCase()))return!1;return!0},e.prototype.credentialMatchesFilter=function(e,t){if(t.clientId&&!this.matchClientId(e,t.clientId))return!1;if(t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash))return!1;if("string"==typeof t.homeAccountId&&!this.matchHomeAccountId(e,t.homeAccountId))return!1;if(t.environment&&!this.matchEnvironment(e,t.environment))return!1;if(t.realm&&!this.matchRealm(e,t.realm))return!1;if(t.credentialType&&!this.matchCredentialType(e,t.credentialType))return!1;if(t.familyId&&!this.matchFamilyId(e,t.familyId))return!1;if(t.target&&!this.matchTarget(e,t.target))return!1;if((t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash)return!1;if(e.credentialType===ne.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME){if(t.tokenType&&!this.matchTokenType(e,t.tokenType))return!1;if(t.tokenType===ne.hO.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId))return!1}return!0},e.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},e.prototype.getAppMetadataFilteredByInternal=function(e,t){var n=this,r=this.getKeys(),o={};return r.forEach(function(r){if(n.isAppMetadata(r)){var i=n.getAppMetadata(r);i&&(e&&!n.matchEnvironment(i,e)||t&&!n.matchClientId(i,t)||(o[r]=i))}}),o},e.prototype.getAuthorityMetadataByAlias=function(e){var t=this,n=this.getAuthorityMetadataKeys(),r=null;return n.forEach(function(n){if(t.isAuthorityMetadata(n)&&-1!==n.indexOf(t.clientId)){var o=t.getAuthorityMetadata(n);
1o&&-1!==o.aliases.indexOf(e)&&(r=o)}}),r},e.prototype.removeAllAccounts=function(){return(0,re.mG)(this,void 0,void 0,function(){var e,t,n=this;return(0,re.Jh)(this,function(r){switch(r.label){case 0:return e=this.getAccountKeys(),t=[],e.forEach(function(e){t.push(n.removeAccount(e))}),[4,Promise.all(t)];case 1:return r.sent(),[2]}})})},e.prototype.removeAccount=function(e){return(0,re.mG)(this,void 0,void 0,function(){var t;return(0,re.Jh)(this,function(n){switch(n.label){case 0:if(!(t=this.getAccount(e)))throw je.e.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return n.sent(),this.removeItem(e),[2]}})})},e.prototype.removeAccountContext=function(e){return(0,re.mG)(this,void 0,void 0,function(){var t,n,r,o=this;return(0,re.Jh)(this,function(i){switch(i.label){case 0:return t=this.getTokenKeys(),n=e.generateAccountId(),r=[],t.idToken.forEach(function(e){0===e.indexOf(n)&&o.removeIdToken(e)}),t.accessToken.forEach(function(e){0===e.indexOf(n)&&r.push(o.removeAccessToken(e))}),t.refreshToken.forEach(function(e){0===e.indexOf(n)&&o.removeRefreshToken(e)}),[4,Promise.all(r)];case 1:return i.sent(),[2]}})})},e.prototype.removeAccessToken=function(e){return(0,re.mG)(this,void 0,void 0,function(){var t,n;return(0,re.Jh)(this,function(r){switch(r.label){case 0:if(!(t=this.getAccessTokenCredential(e)))return[2];if(t.credentialType.toLowerCase()!==ne.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(t.tokenType!==ne.hO.POP)return[3,4];if(!(n=t.keyId))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(n)];case 2:return r.sent(),[3,4];case 3:throw r.sent(),je.e.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(e)]}})})},e.prototype.removeAppMetadata=function(){var e=this;return this.getKeys().forEach(function(t){e.isAppMetadata(t)&&e.removeItem(t)}),!0},e.prototype.readCacheRecord=function(e,t,n){var r=this.getTokenKeys(),o=this.readAccountFromCache(e),i=this.getIdToken(e,r),a=this.getAccessToken(e,t,r),s=this.getRefreshToken(e,!1,r),u=this.readAppMetadataFromCache(n);return o&&i&&(o.idTokenClaims=new Ve(i.secret,this.cryptoImpl).claims),{account:o,idToken:i,accessToken:a,refreshToken:s,appMetadata:u}},e.prototype.readAccountFromCache=function(e){var t=Ge.generateAccountCacheKey(e);return this.getAccount(t)},e.prototype.getIdToken=function(e,t){this.commonLogger.trace("CacheManager - getIdToken called");var n=this.getIdTokensByFilter({homeAccountId:e.homeAccountId,environment:e.environment,credentialType:ne.d3.ID_TOKEN,clientId:this.clientId,realm:e.tenantId},t),r=n.length;if(r<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(r>1)throw je.e.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getIdToken - Returning id token"),n[0]},e.prototype.getIdTokensByFilter=function(e,t){var n=this,r=t&&t.idToken||this.getTokenKeys().idToken,o=[];return r.forEach(function(t){if(n.idTokenKeyMatchesFilter(t,(0,re.pi)({clientId:n.clientId},e))){var r=n.getIdTokenCredential(t);r&&n.credentialMatchesFilter(r,e)&&o.push(r)}}),o},e.prototype.idTokenKeyMatchesFilter=function(e,t){var n=e.toLowerCase();return!(t.clientId&&-1===n.indexOf(t.clientId.toLowerCase())||t.homeAccountId&&-1===n.indexOf(t.homeAccountId.toLowerCase()))},e.prototype.removeIdToken=function(e){this.removeItem(e)},e.prototype.removeRefreshToken=function(e){this.removeItem(e)},e.prototype.getAccessToken=function(e,t,n){var r=this;this.commonLogger.trace("CacheManager - getAccessToken called");var o=Ue.createSearchScopes(t.scopes),i=t.authenticationScheme||ne.hO.BEARER,a=i&&i.toLowerCase()!==ne.hO.BEARER.toLowerCase()?ne.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME:ne.d3.ACCESS_TOKEN,s={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:a,clientId:this.clientId,realm:e.tenantId,target:o,tokenType:i,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},u=n&&n.accessToken||this.getTokenKeys().accessToken,c=[];u.forEach(function(e){if(r.accessTokenKeyMatchesFilter(e,s,!0)){var t=r.getAccessTokenCredential(e);t&&r.credentialMatchesFilter(t,s)&&c.push(t)}});var l=c.length;if(l<1)return this.commonLogger.info("CacheManager:getAccessToken - No token found"),null;if(l>1)throw je.e.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),c[0]},e.prototype.accessTokenKeyMatchesFilter=function(e,t,n){var r=e.toLowerCase();if(t.clientId&&-1===r.indexOf(t.clientId.toLowerCase()))return!1;if(t.homeAccountId&&-1===r.indexOf(t.homeAccountId.toLowerCase()))return!1;if(t.realm&&-1===r.indexOf(t.realm.toLowerCase()))return!1;if(t.requestedClaimsHash&&-1===r.indexOf(t.requestedClaimsHash.toLowerCase()))return!1;if(t.target)for(var o=t.target.asArray(),i=0;i<o.length;i++){if(n&&!r.includes(o[i].toLowerCase()))return!1;if(!n&&r.includes(o[i].toLowerCase()))return!0}return!0},e.prototype.getAccessTokensByFilter=function(e){var t=this,n=this.getTokenKeys(),r=[];
1return n.accessToken.forEach(function(n){if(t.accessTokenKeyMatchesFilter(n,e,!0)){var o=t.getAccessTokenCredential(n);o&&t.credentialMatchesFilter(o,e)&&r.push(o)}}),r},e.prototype.getRefreshToken=function(e,t,n){var r=this;this.commonLogger.trace("CacheManager - getRefreshToken called");var o={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:ne.d3.REFRESH_TOKEN,clientId:this.clientId,familyId:t?ne.ch:void 0},i=n&&n.refreshToken||this.getTokenKeys().refreshToken,a=[];return i.forEach(function(e){if(r.refreshTokenKeyMatchesFilter(e,o)){var t=r.getRefreshTokenCredential(e);t&&r.credentialMatchesFilter(t,o)&&a.push(t)}}),a.length<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),a[0])},e.prototype.refreshTokenKeyMatchesFilter=function(e,t){var n=e.toLowerCase();return!(t.familyId&&-1===n.indexOf(t.familyId.toLowerCase())||!t.familyId&&t.clientId&&-1===n.indexOf(t.clientId.toLowerCase())||t.homeAccountId&&-1===n.indexOf(t.homeAccountId.toLowerCase()))},e.prototype.readAppMetadataFromCache=function(e){var t=this.getAppMetadataFilteredBy({environment:e,clientId:this.clientId}),n=Object.keys(t).map(function(e){return t[e]}),r=n.length;if(r<1)return null;if(r>1)throw je.e.createMultipleMatchingAppMetadataInCacheError();return n[0]},e.prototype.isAppMetadataFOCI=function(e){var t=this.readAppMetadataFromCache(e);return!(!t||t.familyId!==ne.ch)},e.prototype.matchHomeAccountId=function(e,t){return!("string"!=typeof e.homeAccountId||t!==e.homeAccountId)},e.prototype.matchLocalAccountId=function(e,t){return!("string"!=typeof e.localAccountId||t!==e.localAccountId)},e.prototype.matchUsername=function(e,t){return!("string"!=typeof e.username||t.toLowerCase()!==e.username.toLowerCase())},e.prototype.matchUserAssertionHash=function(e,t){return!(!e.userAssertionHash||t!==e.userAssertionHash)},e.prototype.matchEnvironment=function(e,t){var n=this.getAuthorityMetadataByAlias(t);return!!(n&&n.aliases.indexOf(e.environment)>-1)},e.prototype.matchCredentialType=function(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()},e.prototype.matchClientId=function(e,t){return!(!e.clientId||t!==e.clientId)},e.prototype.matchFamilyId=function(e,t){return!(!e.familyId||t!==e.familyId)},e.prototype.matchRealm=function(e,t){return!(!e.realm||t!==e.realm)},e.prototype.matchNativeAccountId=function(e,t){return!(!e.nativeAccountId||t!==e.nativeAccountId)},e.prototype.matchTarget=function(e,t){return!(e.credentialType!==ne.d3.ACCESS_TOKEN&&e.credentialType!==ne.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target)&&Ue.fromString(e.target).containsScopeSet(t)},e.prototype.matchTokenType=function(e,t){return!(!e.tokenType||e.tokenType!==t)},e.prototype.matchKeyId=function(e,t){return!(!e.keyId||e.keyId!==t)},e.prototype.isAppMetadata=function(e){return-1!==e.indexOf(ne.dg)},e.prototype.isAuthorityMetadata=function(e){return-1!==e.indexOf(ne.QU.CACHE_KEY)},e.prototype.generateAuthorityMetadataCacheKey=function(e){return ne.QU.CACHE_KEY+"-"+this.clientId+"-"+e},e.toObject=function(e,t){for(var n in t)e[n]=t[n];return e},e}(),Ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,re.ZT)(t,e),t.prototype.setAccount=function(){throw oe.l.createUnexpectedError("Storage interface - setAccount() has not been implemented for the cacheStorage interface.")},t.prototype.getAccount=function(){throw oe.l.createUnexpectedError("Storage interface - getAccount() has not been implemented for the cacheStorage interface.")},t.prototype.setIdTokenCredential=function(){throw oe.l.createUnexpectedError("Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getIdTokenCredential=function(){throw oe.l.createUnexpectedError("Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAccessTokenCredential=function(){throw oe.l.createUnexpectedError("Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getAccessTokenCredential=function(){throw oe.l.createUnexpectedError("Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setRefreshTokenCredential=function(){throw oe.l.createUnexpectedError("Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getRefreshTokenCredential=function(){throw oe.l.createUnexpectedError("Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAppMetadata=function(){throw oe.l.createUnexpectedError("Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAppMetadata=function(){throw oe.l.createUnexpectedError("Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.setServerTelemetry=function(){throw oe.l.createUnexpectedError("Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.getServerTelemetry=function(){throw oe.l.createUnexpectedError("Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.setAuthorityMetadata=function(){throw oe.l.createUnexpectedError("Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadata=function(){throw oe.l.createUnexpectedError("Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadataKeys=function(){throw oe.l.createUnexpectedError("Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.")},t.prototype.setThrottlingCache=function(){throw oe.l.createUnexpectedError("Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.getThrottlingCache=function(){throw oe.l.createUnexpectedError("Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.removeItem=function(){throw oe.l.createUnexpectedError("Storage interface - removeItem() has not been implemented for the cacheStorage interface.")},t.prototype.containsKey=function(){throw oe.l.createUnexpectedError("Storage interface - containsKey() has not been implemented for the cacheStorage interface.")},t.prototype.getKeys=function(){throw oe.l.createUnexpectedError("Storage interface - getKeys() has not been implemented for the cacheStorage interface.")},t.prototype.getAccountKeys=function(){throw oe.l.createUnexpectedError("Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.")},t.prototype.getTokenKeys=function(){throw oe.l.createUnexpectedError("Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.")},t.prototype.clear=function(){return(0,re.mG)(this,void 0,void 0,function(){return(0,re.Jh)(this,function(e){throw oe.l.createUnexpectedError("Storage interface - clear() has not been implemented for the cacheStorage interface.")})})},t.prototype.updateCredentialCacheKey=function(){throw oe.l.createUnexpectedError("Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.")},t}($e),Ye=function(){function e(){}return e.nowSeconds=function(){return Math.round((new Date).getTime()/1e3)},e.isTokenExpired=function(t,n){var r=Number(t)||0;return e.nowSeconds()+n>r},e.wasClockTurnedBack=function(t){return Number(t)>e.nowSeconds()},e.delay=function(e,t){return new Promise(function(n){return setTimeout(function(){return n(t)},e)})},e}(),We=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,re.ZT)(t,e),t.createAccessTokenEntity=function(e,n,r,o,i,a,s,u,c,l,f,h,d,p,m){var y,v,g=new t;g.homeAccountId=e,g.credentialType=ne.d3.ACCESS_TOKEN,g.secret=r;var b=Ye.nowSeconds();if(g.cachedAt=b.toString(),g.expiresOn=s.toString(),g.extendedExpiresOn=u.toString(),l&&(g.refreshOn=l.toString()),g.environment=n,g.clientId=o,g.realm=i,g.target=a,g.userAssertionHash=h,g.tokenType=Be.x.isEmpty(f)?ne.hO.BEARER:f,p&&(g.requestedClaims=p,g.requestedClaimsHash=m),(null===(y=g.tokenType)||void 0===y?void 0:y.toLowerCase())!==ne.hO.BEARER.toLowerCase())switch(g.credentialType=ne.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME,g.tokenType){case ne.hO.POP:var w=Ve.extractTokenClaims(r,c);if(!(null===(v=null==w?void 0:w.cnf)||void 0===v?void 0:v.kid))throw je.e.createTokenClaimsRequiredError();g.keyId=w.cnf.kid;break;case ne.hO.SSH:g.keyId=d}return g},t.isAccessTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.hasOwnProperty("target")&&(e.credentialType===ne.d3.ACCESS_TOKEN||e.credentialType===ne.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME)},t}(De),Xe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,re.ZT)(t,e),t.createRefreshTokenEntity=function(e,n,r,o,i,a){var s=new t;return s.clientId=o,s.credentialType=ne.d3.REFRESH_TOKEN,s.environment=n,s.homeAccountId=e,s.secret=r,s.userAssertionHash=a,i&&(s.familyId=i),s},t.isRefreshTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===ne.d3.REFRESH_TOKEN},t}(De),Ze=function(){function e(){}return e.prototype.generateAppMetadataKey=function(){return e.generateAppMetadataCacheKey(this.environment,this.clientId)},e.generateAppMetadataCacheKey=function(e,t){return[ne.dg,e,t].join(ne.Bv.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAppMetadataEntity=function(t,n,r){var o=new e;return o.clientId=t,o.environment=n,r&&(o.familyId=r),o},e.isAppMetadataEntity=function(e,t){return!!t&&0===e.indexOf(ne.dg)&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment")},e}(),Je=function(){function e(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return e.isServerTelemetryEntity=function(e,t){var n=0===e.indexOf(ne.HN.CACHE_KEY),r=!0;return t&&(r=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&r},e}(),Qe=function(){function e(){this.expiresAt=Ye.nowSeconds()+ne.QU.REFRESH_TIME_SECONDS}return e.prototype.updateCloudDiscoveryMetadata=function(e,t){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=t},e.prototype.updateEndpointMetadata=function(e,t){this.authorization_endpoint=e.authorization_endpoint,this.token_endpoint=e.token_endpoint,this.end_session_endpoint=e.end_session_endpoint,this.issuer=e.issuer,this.endpointsFromNetwork=t,this.jwks_uri=e.jwks_uri},e.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},e.prototype.resetExpiresAt=function(){this.expiresAt=Ye.nowSeconds()+ne.QU.REFRESH_TIME_SECONDS},e.prototype.isExpired=function(){return this.expiresAt<=Ye.nowSeconds()},e.isAuthorityMetadataEntity=function(e,t){return!!t&&0===e.indexOf(ne.QU.CACHE_KEY)&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri")},e}(),et=function(){function e(){}return e.isThrottlingEntity=function(e,t){var n=!1;e&&(n=0===e.indexOf(ne.bb.THROTTLING_PREFIX));var r=!0;return t&&(r=t.hasOwnProperty("throttleTime")),n&&r},e}(),tt=function(){function e(){}return e.setRequestState=function(t,n,r){var o=e.generateLibraryState(t,r);return Be.x.isEmpty(n)?o:""+o+ne.gT.RESOURCE_DELIM+n},e.generateLibraryState=function(e,t){if(!e)throw je.e.createNoCryptoObjectError("generateLibraryState");var n={id:e.createNewGuid()};t&&(n.meta=t);var r=JSON.stringify(n);return e.base64Encode(r)},e.parseRequestState=function(e,t){if(!e)throw je.e.createNoCryptoObjectError("parseRequestState");if(Be.x.isEmpty(t))throw je.e.createInvalidStateError(t,"Null, undefined or empty state");try{var n=t.split(ne.gT.RESOURCE_DELIM),r=n[0],o=n.length>1?n.slice(1).join(ne.gT.RESOURCE_DELIM):ne.gT.EMPTY_STRING,i=e.base64Decode(r),a=JSON.parse(i);return{userRequestState:Be.x.isEmpty(o)?ne.gT.EMPTY_STRING:o,libraryState:a}}catch(s){throw je.e.createInvalidStateError(t,s)}},e}();!function(e){e.HOME_ACCOUNT_ID="home_account_id",e.UPN="UPN"}(ze||(ze={}));var nt,rt,ot=function(){function e(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return e.prototype.validateWindowStorage=function(e){if(e!==O.Ix.LocalStorage&&e!==O.Ix.SessionStorage)throw _e.W.createStorageNotSupportedError(e);
1if(!window[e])throw _e.W.createStorageNotSupportedError(e)},e.prototype.getItem=function(e){return this.windowStorage.getItem(e)},e.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},e.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},e.prototype.getKeys=function(){return Object.keys(this.windowStorage)},e.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},e}(),it=n(87346),at=function(){function e(){}return e.extractBrowserRequestState=function(e,t){if(Be.x.isEmpty(t))return null;try{return tt.parseRequestState(e,t).libraryState.meta}catch(n){throw je.e.createInvalidStateError(t,n)}},e.parseServerResponseFromHash=function(e){if(!e)return{};var t=new it.G(e);return it.G.getDeserializedHash(t.getHash())},e}(),st=function(e){function t(t,n,r,o){var i=e.call(this,t,r,o)||this;return i.COOKIE_LIFE_MULTIPLIER=864e5,i.cacheConfig=n,i.logger=o,i.internalStorage=new Ee,i.browserStorage=i.setupBrowserStorage(i.cacheConfig.cacheLocation),i.temporaryCacheStorage=i.setupTemporaryCacheStorage(i.cacheConfig.temporaryCacheLocation,i.cacheConfig.cacheLocation),n.cacheMigrationEnabled&&(i.migrateCacheEntries(),i.createKeyMaps()),i}return(0,Q.ZT)(t,e),t.prototype.setupBrowserStorage=function(e){switch(e){case O.Ix.LocalStorage:case O.Ix.SessionStorage:try{return new ot(e)}catch(t){this.logger.verbose(t);break}}return this.cacheConfig.cacheLocation=O.Ix.MemoryStorage,new Ee},t.prototype.setupTemporaryCacheStorage=function(e,t){switch(t){case O.Ix.LocalStorage:case O.Ix.SessionStorage:try{return new ot(e||O.Ix.SessionStorage)}catch(n){return this.logger.verbose(n),this.internalStorage}case O.Ix.MemoryStorage:default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var e=this,t=ne.gT.CACHE_PREFIX+"."+ne.Vi.CLIENT_INFO,n=ne.gT.CACHE_PREFIX+"."+ne.Vi.ERROR,r=ne.gT.CACHE_PREFIX+"."+ne.Vi.ERROR_DESC,o=[this.browserStorage.getItem(ne.gT.CACHE_PREFIX+"."+ne.Vi.ID_TOKEN),this.browserStorage.getItem(t),this.browserStorage.getItem(n),this.browserStorage.getItem(r)];[ne.Vi.ID_TOKEN,ne.Vi.CLIENT_INFO,ne.Vi.ERROR,ne.Vi.ERROR_DESC].forEach(function(t,n){return e.migrateCacheEntry(t,o[n])})},t.prototype.migrateCacheEntry=function(e,t){t&&this.setTemporaryCache(e,t,!0)},t.prototype.createKeyMaps=function(){var e=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var t=this.getItem(O.Oq.ACCOUNT_KEYS),n=this.getItem(O.Oq.TOKEN_KEYS+"."+this.clientId);t&&n?this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration."):this.browserStorage.getKeys().forEach(function(t){var n;if(e.isCredentialKey(t)&&(n=e.getItem(t))){var r=e.validateAndParseJson(n);if(r&&r.hasOwnProperty("credentialType"))switch(r.credentialType){case ne.d3.ID_TOKEN:if(Le.isIdTokenEntity(r)){e.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+t+" found, saving key to token key map");var o=$e.toObject(new Le,r),i=e.updateCredentialCacheKey(t,o);return void e.addTokenKey(i,ne.d3.ID_TOKEN)}e.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),e.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+t);break;case ne.d3.ACCESS_TOKEN:case ne.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(We.isAccessTokenEntity(r)){e.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+t+" found, saving key to token key map");var a=$e.toObject(new We,r);return i=e.updateCredentialCacheKey(t,a),void e.addTokenKey(i,ne.d3.ACCESS_TOKEN)}e.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),e.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+t);break;case ne.d3.REFRESH_TOKEN:if(Xe.isRefreshTokenEntity(r)){e.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+t+" found, saving key to token key map");var s=$e.toObject(new Xe,r);
1return i=e.updateCredentialCacheKey(t,s),void e.addTokenKey(i,ne.d3.REFRESH_TOKEN)}e.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),e.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+t)}}if(e.isAccountKey(t)&&(n=e.getItem(t))){var u=e.validateAndParseJson(n);u&&Ge.isAccountEntity(u)&&(e.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+t+" found, saving key to account key map"),e.addAccountKeyToMap(t))}})},t.prototype.validateAndParseJson=function(e){try{var t=JSON.parse(e);return t&&"object"==typeof t?t:null}catch(n){return null}},t.prototype.getItem=function(e){return this.browserStorage.getItem(e)},t.prototype.setItem=function(e,t){this.browserStorage.setItem(e,t)},t.prototype.getAccount=function(e){this.logger.trace("BrowserCacheManager.getAccount called");var t=this.getItem(e);if(!t)return this.removeAccountKeyFromMap(e),null;var n=this.validateAndParseJson(t);return n&&Ge.isAccountEntity(n)?$e.toObject(new Ge,n):(this.removeAccountKeyFromMap(e),null)},t.prototype.setAccount=function(e){this.logger.trace("BrowserCacheManager.setAccount called");var t=e.generateAccountKey();this.setItem(t,JSON.stringify(e)),this.addAccountKeyToMap(t)},t.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var e=this.getItem(O.Oq.ACCOUNT_KEYS);return e?JSON.parse(e):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},t.prototype.addAccountKeyToMap=function(e){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+e);var t=this.getAccountKeys();-1===t.indexOf(e)?(t.push(e),this.setItem(O.Oq.ACCOUNT_KEYS,JSON.stringify(t)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},t.prototype.removeAccountKeyFromMap=function(e){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+e);var t=this.getAccountKeys(),n=t.indexOf(e);n>-1?(t.splice(n,1),this.setItem(O.Oq.ACCOUNT_KEYS,JSON.stringify(t)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")},t.prototype.removeAccount=function(t){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(n){return e.prototype.removeAccount.call(this,t),this.removeAccountKeyFromMap(t),[2]})})},t.prototype.removeIdToken=function(t){e.prototype.removeIdToken.call(this,t),this.removeTokenKey(t,ne.d3.ID_TOKEN)},t.prototype.removeAccessToken=function(t){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(n){return e.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,ne.d3.ACCESS_TOKEN),[2]})})},t.prototype.removeRefreshToken=function(t){e.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,ne.d3.REFRESH_TOKEN)},t.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var e=this.getItem(O.Oq.TOKEN_KEYS+"."+this.clientId);if(e){var t=this.validateAndParseJson(e);if(t&&t.hasOwnProperty("idToken")&&t.hasOwnProperty("accessToken")&&t.hasOwnProperty("refreshToken"))return t;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}},t.prototype.addTokenKey=function(e,t){this.logger.trace("BrowserCacheManager addTokenKey called");var n=this.getTokenKeys();switch(t){case ne.d3.ID_TOKEN:-1===n.idToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),n.idToken.push(e));break;case ne.d3.ACCESS_TOKEN:-1===n.accessToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),n.accessToken.push(e));break;case ne.d3.REFRESH_TOKEN:-1===n.refreshToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),n.refreshToken.push(e));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invali
1d. CredentialType: "+t),je.e.createUnexpectedCredentialTypeError()}this.setItem(O.Oq.TOKEN_KEYS+"."+this.clientId,JSON.stringify(n))},t.prototype.removeTokenKey=function(e,t){this.logger.trace("BrowserCacheManager removeTokenKey called");var n=this.getTokenKeys();switch(t){case ne.d3.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+e+" from map");var r=n.idToken.indexOf(e);r>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),n.idToken.splice(r,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case ne.d3.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+e+" from map");var o=n.accessToken.indexOf(e);o>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),n.accessToken.splice(o,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case ne.d3.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+e+" from map");var i=n.refreshToken.indexOf(e);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),n.refreshToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: "+t),je.e.createUnexpectedCredentialTypeError()}this.setItem(O.Oq.TOKEN_KEYS+"."+this.clientId,JSON.stringify(n))},t.prototype.getIdTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,ne.d3.ID_TOKEN),null;var n=this.validateAndParseJson(t);return n&&Le.isIdTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),$e.toObject(new Le,n)):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,ne.d3.ID_TOKEN),null)},t.prototype.setIdTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,ne.d3.ID_TOKEN)},t.prototype.getAccessTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,ne.d3.ACCESS_TOKEN),null;var n=this.validateAndParseJson(t);return n&&We.isAccessTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),$e.toObject(new We,n)):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,ne.d3.ACCESS_TOKEN),null)},t.prototype.setAccessTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,ne.d3.ACCESS_TOKEN)},t.prototype.getRefreshTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,ne.d3.REFRESH_TOKEN),null;var n=this.validateAndParseJson(t);return n&&Xe.isRefreshTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),$e.toObject(new Xe,n)):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,ne.d3.REFRESH_TOKEN),null)},t.prototype.setRefreshTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,ne.d3.REFRESH_TOKEN)},t.prototype.getAppMetadata=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var n=this.validateAndParseJson(t);
1return n&&Ze.isAppMetadataEntity(e,n)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),$e.toObject(new Ze,n)):(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null)},t.prototype.setAppMetadata=function(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");var t=e.generateAppMetadataKey();this.setItem(t,JSON.stringify(e))},t.prototype.getServerTelemetry=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&Je.isServerTelemetryEntity(e,n)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),$e.toObject(new Je,n)):(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null)},t.prototype.setServerTelemetry=function(e,t){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(t))},t.prototype.getAuthorityMetadata=function(e){var t=this.internalStorage.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&Qe.isAuthorityMetadataEntity(e,n)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),$e.toObject(new Qe,n)):null},t.prototype.getAuthorityMetadataKeys=function(){var e=this;return this.internalStorage.getKeys().filter(function(t){return e.isAuthorityMetadata(t)})},t.prototype.setWrapperMetadata=function(e,t){this.internalStorage.setItem(O.Bs.WRAPPER_SKU,e),this.internalStorage.setItem(O.Bs.WRAPPER_VER,t)},t.prototype.getWrapperMetadata=function(){return[this.internalStorage.getItem(O.Bs.WRAPPER_SKU)||ne.gT.EMPTY_STRING,this.internalStorage.getItem(O.Bs.WRAPPER_VER)||ne.gT.EMPTY_STRING]},t.prototype.setAuthorityMetadata=function(e,t){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(t))},t.prototype.getActiveAccount=function(){var e=this.generateCacheKey(ne.Vi.ACTIVE_ACCOUNT_FILTERS),t=this.getItem(e);if(!t){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var n=this.generateCacheKey(ne.Vi.ACTIVE_ACCOUNT),r=this.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var o=this.getAccountInfoByFilter({localAccountId:r})[0]||null;return o?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(o),o):null}var i=this.validateAndParseJson(t);return i?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:i.homeAccountId,localAccountId:i.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},t.prototype.setActiveAccount=function(e){var t=this.generateCacheKey(ne.Vi.ACTIVE_ACCOUNT_FILTERS),n=this.generateCacheKey(ne.Vi.ACTIVE_ACCOUNT);e?(this.logger.verbose("setActiveAccount: Active account set"),this.browserStorage.setItem(t,JSON.stringify({homeAccountId:e.homeAccountId,localAccountId:e.localAccountId})),this.browserStorage.setItem(n,e.localAccountId)):(this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(t),this.browserStorage.removeItem(n))},t.prototype.getAccountInfoByFilter=function(e){var t=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+t.length+" accounts found"),t.filter(function(t){return!(e.username&&e.username.toLowerCase()!==t.username.toLowerCase()||e.homeAccountId&&e.homeAccountId!==t.homeAccountId||e.localAccountId&&e.localAccountId!==t.localAccountId||e.tenantId&&e.tenantId!==t.tenantId||e.environment&&e.environment!==t.environment)})},t.prototype.getAccountInfoByHints=function(e,t){var n=this.getAllAccounts().filter(function(n){return t?t===(n.idTokenClaims&&n.idTokenClaims.sid):!!e&&e===n.username});if(1===n.length)return n[0];if(n.length>1)throw je.e.createMultipleMatchingAccountsInCacheError();return null},t.prototype.getThrottlingCache=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var n=this.validateAndParseJson(t);
1return n&&et.isThrottlingEntity(e,n)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),$e.toObject(new et,n)):(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null)},t.prototype.setThrottlingCache=function(e,t){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(t))},t.prototype.getTemporaryCache=function(e,t){var n=t?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){var r=this.getItemCookie(n);if(r)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),r}var o=this.temporaryCacheStorage.getItem(n);if(!o){if(this.cacheConfig.cacheLocation===O.Ix.LocalStorage){var i=this.browserStorage.getItem(n);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),i}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),o},t.prototype.setTemporaryCache=function(e,t,n){var r=n?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(r,t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(r,t))},t.prototype.removeItem=function(e){this.browserStorage.removeItem(e),this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(e))},t.prototype.containsKey=function(e){return this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e)},t.prototype.getKeys=function(){return(0,Q.fl)(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},t.prototype.clear=function(){return(0,Q.mG)(this,void 0,void 0,function(){var e=this;return(0,Q.Jh)(this,function(t){switch(t.label){case 0:return[4,this.removeAllAccounts()];case 1:return t.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(t){!e.browserStorage.containsKey(t)&&!e.temporaryCacheStorage.containsKey(t)||-1===t.indexOf(ne.gT.CACHE_PREFIX)&&-1===t.indexOf(e.clientId)||e.removeItem(t)}),this.internalStorage.clear(),[2]}})})},t.prototype.setItemCookie=function(e,t,n){var r=encodeURIComponent(e)+"="+encodeURIComponent(t)+";path=/;SameSite=Lax;";n&&(r+="expires="+this.getCookieExpirationTime(n)+";"),this.cacheConfig.secureCookies&&(r+="Secure;"),document.cookie=r},t.prototype.getItemCookie=function(e){for(var t=encodeURIComponent(e)+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return ne.gT.EMPTY_STRING},t.prototype.clearMsalCookies=function(){var e=this,t=ne.gT.CACHE_PREFIX+"."+this.clientId;document.cookie.split(";").forEach(function(n){for(;" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(t)){var r=n.split("=")[0];e.clearItemCookie(r)}})}
1,t.prototype.clearItemCookie=function(e){this.setItemCookie(e,ne.gT.EMPTY_STRING,-1)},t.prototype.getCookieExpirationTime=function(e){var t=new Date;return new Date(t.getTime()+e*this.COOKIE_LIFE_MULTIPLIER).toUTCString()},t.prototype.getCache=function(){return this.browserStorage},t.prototype.setCache=function(){},t.prototype.generateCacheKey=function(e){return this.validateAndParseJson(e)?JSON.stringify(e):Be.x.startsWith(e,ne.gT.CACHE_PREFIX)||Be.x.startsWith(e,ne.Vi.ADAL_ID_TOKEN)?e:ne.gT.CACHE_PREFIX+"."+this.clientId+"."+e},t.prototype.generateAuthorityKey=function(e){var t=tt.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(O.c4.AUTHORITY+"."+t)},t.prototype.generateNonceKey=function(e){var t=tt.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(O.c4.NONCE_IDTOKEN+"."+t)},t.prototype.generateStateKey=function(e){var t=tt.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(O.c4.REQUEST_STATE+"."+t)},t.prototype.getCachedAuthority=function(e){var t=this.generateStateKey(e),n=this.getTemporaryCache(t);if(!n)return null;var r=this.generateAuthorityKey(n);return this.getTemporaryCache(r)},t.prototype.updateCacheEntries=function(e,t,n,r,o){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var i=this.generateStateKey(e);this.setTemporaryCache(i,e,!1);var a=this.generateNonceKey(e);this.setTemporaryCache(a,t,!1);var s=this.generateAuthorityKey(e);if(this.setTemporaryCache(s,n,!1),o){var u={credential:o.homeAccountId,type:ze.HOME_ACCOUNT_ID};this.setTemporaryCache(O.c4.CCS_CREDENTIAL,JSON.stringify(u),!0)}else Be.x.isEmpty(r)||(u={credential:r,type:ze.UPN},this.setTemporaryCache(O.c4.CCS_CREDENTIAL,JSON.stringify(u),!0))},t.prototype.resetRequestCache=function(e){var t=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),Be.x.isEmpty(e)||this.getKeys().forEach(function(n){-1!==n.indexOf(e)&&t.removeItem(n)}),e&&(this.removeItem(this.generateStateKey(e)),this.removeItem(this.generateNonceKey(e)),this.removeItem(this.generateAuthorityKey(e))),this.removeItem(this.generateCacheKey(O.c4.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(O.c4.ORIGIN_URI)),this.removeItem(this.generateCacheKey(O.c4.URL_HASH)),this.removeItem(this.generateCacheKey(O.c4.CORRELATION_ID)),this.removeItem(this.generateCacheKey(O.c4.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(O.c4.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},t.prototype.cleanRequestByState=function(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){var t=this.generateStateKey(e),n=this.temporaryCacheStorage.getItem(t);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+n),this.resetRequestCache(n||ne.gT.EMPTY_STRING)}this.clearMsalCookies()},t.prototype.cleanRequestByInteractionType=function(e){var t=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(n){if(-1!==n.indexOf(O.c4.REQUEST_STATE)){var r=t.temporaryCacheStorage.getItem(n);if(r){var o=at.extractBrowserRequestState(t.cryptoImpl,r);o&&o.interactionType===e&&(t.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+r),t.resetRequestCache(r))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},t.prototype.cacheCodeRequest=function(e,t){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var n=t.base64Encode(JSON.stringify(e));this.setTemporaryCache(O.c4.REQUEST_PARAMS,n,!0)},t.prototype.getCachedRequest=function(e,t){this.logger.trace("BrowserCacheManager.getCachedRequest called");var n=this.getTemporaryCache(O.c4.REQUEST_PARAMS,!0);if(!n)throw ye.U.createNoTokenRequestCacheError();var r=this.validateAndParseJson(t.base64Decode(n));if(!r)throw ye.U.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(O.c4.REQUEST_PARAMS)),Be.x.isEmpty(r.authority)){var o=this.generateAuthorityKey(e),i=this.getTemporaryCache(o);if(!i)throw ye.U.createNoCachedAuthorityError();r.authority=i}return r},t.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var e=this.getTemporaryCache(O.c4.NATIVE_REQUEST,!0);return e?this.validateAndParseJson(e)||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null):(this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null)},t.prototype.isInteractionInProgress=function(e){var t=this.getInteractionInProgress();return e?t===this.clientId:!!t},t.prototype.getInteractionInProgress=function(){return this.getTemporaryCache(ne.gT.CACHE_PREFIX+"."+O.c4.INTERACTION_STATUS_KEY,!1)},t.prototype.setInteractionInProgress=function(e){var t=ne.gT.CACHE_PREFIX+"."+O.c4.INTERACTION_STATUS_KEY;if(e){if(this.getInteractionInProgress())throw ye.U.createInteractionInProgressError();this.setTemporaryCache(t,this.clientId,!1)}else e||this.getInteractionInProgress()!==this.clientId||this.removeItem(t)},t.prototype.getLegacyLoginHint=function(){var e=this.getTemporaryCache(ne.Vi.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(ne.Vi.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var t=this.getTemporaryCache(ne.Vi.ID_TOKEN,!0);t&&(this.removeItem(this.generateCacheKey(ne.Vi.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var n=t||e;if(n){var r=new Ve(n,this.cryptoImpl);if(r.claims&&r.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL
1/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),r.claims.preferred_username;if(r.claims&&r.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),r.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},t.prototype.updateCredentialCacheKey=function(e,t){var n=t.generateCredentialKey();if(e!==n){var r=this.getItem(e);if(r)return this.removeItem(e),this.setItem(n,r),this.logger.verbose("Updated an outdated "+t.credentialType+" cache key"),n;this.logger.error("Attempted to update an outdated "+t.credentialType+" cache key but no item matching the outdated key was found in storage")}return e},t.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(O.c4.REDIRECT_CONTEXT,!0)},t.prototype.setRedirectRequestContext=function(e){this.setTemporaryCache(O.c4.REDIRECT_CONTEXT,e,!0)},t}($e);!function(e){e.AAD="AAD",e.OIDC="OIDC"}(nt||(nt={})),function(e){e[e.None=0]="None",e.AzurePublic="https://login.microsoftonline.com",e.AzurePpe="https://login.windows-ppe.net",e.AzureChina="https://login.chinacloudapi.cn",e.AzureGermany="https://login.microsoftonline.de",e.AzureUsGovernment="https://login.microsoftonline.us"}(rt||(rt={}));var ut,ct={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1},lt={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Re.i.Info,correlationId:ne.gT.EMPTY_STRING},ft={sendGetRequestAsync:function(){return(0,re.mG)(this,void 0,void 0,function(){return(0,re.Jh)(this,function(e){throw oe.l.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented")})})},sendPostRequestAsync:function(){return(0,re.mG)(this,void 0,void 0,function(){return(0,re.Jh)(this,function(e){throw oe.l.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented")})})}},ht={sku:ne.gT.SKU,version:"13.0.0",cpu:ne.gT.EMPTY_STRING,os:ne.gT.EMPTY_STRING},dt={clientSecret:ne.gT.EMPTY_STRING,clientAssertion:void 0},pt={azureCloudInstance:rt.None,tenant:""+ne.gT.DEFAULT_COMMON_TENANT},mt={application:{appName:"",appVersion:""}},yt={sendGetRequestAsync:function(){return Promise.reject(oe.l.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented for the Network interface."))},sendPostRequestAsync:function(){return Promise.reject(oe.l.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented for the Network interface."))}},vt=n(95179),gt=function(){function e(){}return e.prototype.navigateInternal=function(t,n){return e.defaultNavigateWindow(t,n)},e.prototype.navigateExternal=function(t,n){return e.defaultNavigateWindow(t,n)},e.defaultNavigateWindow=function(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(function(e){setTimeout(function(){e(!0)},t.timeout)})},e}(),bt=function(){function e(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return e.prototype.addEventCallback=function(e){if("undefined"!=typeof window){var t=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(t,e),this.logger.verbose("Event callback registered with id: "+t),t}return null},e.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},e.prototype.enableAccountStorageEvents=function(){"undefined"!=typeof window&&(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},e.prototype.disableAccountStorageEvents=function(){"undefined"!=typeof window&&(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},e.prototype.emitEvent=function(e,t,n,r){var o=this;if("undefined"!=typeof window){var i={eventType:e,interactionType:t||null,payload:n||null,error:r||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach(function(t,n){o.logger.verbose("Emitting event to callback "+n+": "+e),t.apply(null,[i])})}},e.prototype.handleAccountCacheChange=function(e){try{var t=e.newValue||e.oldValue;if(!t)return;var n=JSON.parse(t);if("object"!=typeof n||!Ge.isAccountEntity(n))return;var r=$e.toObject(new Ge,n).getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(x.t.ACCOUNT_ADDED,void 0,r)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(x.t.ACCOUNT_REMOVED,void 0,r))}catch(e){return}},e}(),wt=function(){function e(){}return e.generateThrottlingStorageKey=function(e){return ne.bb.THROTTLING_PREFIX+"."+JSON.stringify(e)},e.preProcess=function(t,n){var r,o=e.generateThrottlingStorageKey(n),i=t.getThrottlingCache(o);if(i){if(i.throttleTime<Date.now())return void t.removeItem(o);throw new ie((null===(r=i.errorCodes)||void 0===r?void 0:r.join(" "))||ne.gT.EMPTY_STRING,i.errorMessage,i.subError)}},e.postProcess=function(t,n,r){if(e.checkResponseStatus(r)||e.checkResponseForRetryAfter(r)){var o={throttleTime:e.calculateThrottleTime(parseInt(r.headers[ne.SZ.RETRY_AFTER])),error:r.body.error,errorCodes:r.body.error_codes,errorMessage:r.body.error_description,subError:r.body.suberror};t.setThrottlingCache(e.generateThrottlingStorageKey(n),o)}},e.checkResponseStatus=function(e){return 429===e.status||e.status>=500&&e.status<600},e.checkResponseForRetryAfter=function(e){return!!e.headers&&e.headers.hasOwnProperty(ne.SZ.RETRY_AFTER)&&(e.status<200||e.status>=300)},e.calculateThrottleTime=function(e){var t=e<=0?0:e,n=Date.now()/1e3;return Math.floor(1e3*Math.min(n+(t||ne.bb.DEFAULT_THROTTLE_TIME_SECONDS),n+ne.bb.DEFAULT_MAX_THROTTLE_TIME_SECONDS))},e.removeThrottle=function(e,t,n,r){var o=this.generateThrottlingStorageKey({clientId:t,authority:n.authority,scopes:n.scopes,homeAccountIdentifier:r,claims:n.
1claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid});e.removeItem(o)},e}(),_t=function(){function e(e,t){this.networkClient=e,this.cacheManager=t}return e.prototype.sendPostRequest=function(e,t,n){return(0,re.mG)(this,void 0,void 0,function(){var r,o;return(0,re.Jh)(this,function(i){switch(i.label){case 0:wt.preProcess(this.cacheManager,e),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,n)];case 2:return r=i.sent(),[3,4];case 3:throw(o=i.sent())instanceof oe.l?o:je.e.createNetworkError(t,o);case 4:return wt.postProcess(this.cacheManager,e,r),[2,r]}})})},e}(),kt=function(){function e(){}return e.validateRedirectUri=function(e){if(Be.x.isEmpty(e))throw Fe.r.createRedirectUriEmptyError()},e.validatePrompt=function(e){var t=[];for(var n in ne.NJ)t.push(ne.NJ[n]);if(t.indexOf(e)<0)throw Fe.r.createInvalidPromptError(e)},e.validateClaims=function(e){try{JSON.parse(e)}catch(t){throw Fe.r.createInvalidClaimsRequestError()}},e.validateCodeChallengeParams=function(e,t){if(Be.x.isEmpty(e)||Be.x.isEmpty(t))throw Fe.r.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},e.validateCodeChallengeMethod=function(e){if([ne.VX.PLAIN,ne.VX.S256].indexOf(e)<0)throw Fe.r.createInvalidCodeChallengeMethodError()},e.sanitizeEQParams=function(e,t){return e?(t.forEach(function(t,n){e[n]&&delete e[n]}),Object.fromEntries(Object.entries(e).filter(function(e){return""!==e[1]}))):{}},e}(),St=function(){function e(){this.parameters=new Map}return e.prototype.addResponseTypeCode=function(){this.parameters.set(ne.Fo.RESPONSE_TYPE,encodeURIComponent(ne.gT.CODE_RESPONSE_TYPE))},e.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(ne.Fo.RESPONSE_TYPE,encodeURIComponent(ne.gT.TOKEN_RESPONSE_TYPE+" "+ne.gT.ID_TOKEN_RESPONSE_TYPE))},e.prototype.addResponseMode=function(e){this.parameters.set(ne.Fo.RESPONSE_MODE,encodeURIComponent(e||ne.vw.QUERY))},e.prototype.addNativeBroker=function(){this.parameters.set(ne.Fo.NATIVE_BROKER,encodeURIComponent("1"))},e.prototype.addScopes=function(e,t){void 0===t&&(t=!0);var n=t?(0,re.pr)(e||[],ne.f_):e||[],r=new Ue(n);this.parameters.set(ne.Fo.SCOPE,encodeURIComponent(r.printScopes()))},e.prototype.addClientId=function(e){this.parameters.set(ne.Fo.CLIENT_ID,encodeURIComponent(e))},e.prototype.addRedirectUri=function(e){kt.validateRedirectUri(e),this.parameters.set(ne.Fo.REDIRECT_URI,encodeURIComponent(e))},e.prototype.addPostLogoutRedirectUri=function(e){kt.validateRedirectUri(e),this.parameters.set(ne.Fo.POST_LOGOUT_URI,encodeURIComponent(e))},e.prototype.addIdTokenHint=function(e){this.parameters.set(ne.Fo.ID_TOKEN_HINT,encodeURIComponent(e))},e.prototype.addDomainHint=function(e){this.parameters.set(ne.VO.DOMAIN_HINT,encodeURIComponent(e))},e.prototype.addLoginHint=function(e){this.parameters.set(ne.VO.LOGIN_HINT,encodeURIComponent(e))},e.prototype.addCcsUpn=function(e){this.parameters.set(ne.SZ.CCS_HEADER,encodeURIComponent("UPN:"+e))},e.prototype.addCcsOid=function(e){this.parameters.set(ne.SZ.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},e.prototype.addSid=function(e){this.parameters.set(ne.VO.SID,encodeURIComponent(e))},e.prototype.addClaims=function(e,t){var n=this.addClientCapabilitiesToClaims(e,t);kt.validateClaims(n),this.parameters.set(ne.Fo.CLAIMS,encodeURIComponent(n))},e.prototype.addCorrelationId=function(e){this.parameters.set(ne.Fo.CLIENT_REQUEST_ID,encodeURIComponent(e))},e.prototype.addLibraryInfo=function(e){this.parameters.set(ne.Fo.X_CLIENT_SKU,e.sku),this.parameters.set(ne.Fo.X_CLIENT_VER,e.version),e.os&&this.parameters.set(ne.Fo.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(ne.Fo.X_CLIENT_CPU,e.cpu)},e.prototype.addApplicationTelemetry=function(e){(null==e?void 0:e.appName)&&this.parameters.set(ne.Fo.X_APP_NAME,e.appName),(null==e?void 0:e.appVersion)&&this.parameters.set(ne.Fo.X_APP_VER,e.appVersion)},e.prototype.addPrompt=function(e){kt.validatePrompt(e),this.parameters.set(""+ne.Fo.PROMPT,encodeURIComponent(e))},e.prototype.addState=function(e){Be.x.isEmpty(e)||this.parameters.set(ne.Fo.STATE,encodeURIComponent(e))},e.prototype.addNonce=function(e){this.parameters.set(ne.Fo.NONCE,encodeURIComponent(e))},e.prototype.addCodeChallengeParams=function(e,t){if(kt.validateCodeChallengeParams(e,t),!e||!t)throw Fe.r.createInvalidCodeChallengeParamsError();this.parameters.set(ne.Fo.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(ne.Fo.CODE_CHALLENGE_METHOD,encodeURIComponent(t))},e.prototype.addAuthorizationCode=function(e){this.parameters.set(ne.Fo.CODE,encodeURIComponent(e))},e.prototype.addDeviceCode=function(e){this.parameters.set(ne.Fo.DEVICE_CODE,encodeURIComponent(e))},e.prototype.addRefreshToken=function(e){this.parameters.set(ne.Fo.REFRESH_TOKEN,encodeURIComponent(e))},e.prototype.addCodeVerifier=function(e){this.parameters.set(ne.Fo.CODE_VERIFIER,encodeURIComponent(e))},e.prototype.addClientSecret=function(e){this.parameters.set(ne.Fo.CLIENT_SECRET,encodeURIComponent(e))},e.prototype.addClientAssertion=function(e){Be.x.isEmpty(e)||this.parameters.set(ne.Fo.CLIENT_ASSERTION,encodeURIComponent(e))},e.prototype.addClientAssertionType=function(e){Be.x.isEmpty(e)||this.parameters.set(ne.Fo.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},e.prototype.addOboAssertion=function(e){this.parameters.set(ne.Fo.OBO_ASSERTION,encodeURIComponent(e))},e.prototype.addRequestTokenUse=function(e){this.parameters.set(ne.Fo.REQUESTED_TOKEN_USE,encodeURIComponent(e))},e.prototype.addGrantType=function(e){this.parameters.set(ne.Fo.GRANT_TYPE,encodeURIComponent(e))},e.prototype.addClientInfo=function(){this.parameters.set(ne.sR,"1")},e.prototype.addExtraQueryParameters=function(e){var t=this,n=kt.sanitizeEQParams(e,this.parameters);
1Object.keys(n).forEach(function(n){t.parameters.set(n,e[n])})},e.prototype.addClientCapabilitiesToClaims=function(e,t){var n;if(e)try{n=JSON.parse(e)}catch(r){throw Fe.r.createInvalidClaimsRequestError()}else n={};return t&&t.length>0&&(n.hasOwnProperty(ne.As.ACCESS_TOKEN)||(n[ne.As.ACCESS_TOKEN]={}),n[ne.As.ACCESS_TOKEN][ne.As.XMS_CC]={values:t}),JSON.stringify(n)},e.prototype.addUsername=function(e){this.parameters.set(ne.Ge.username,encodeURIComponent(e))},e.prototype.addPassword=function(e){this.parameters.set(ne.Ge.password,encodeURIComponent(e))},e.prototype.addPopToken=function(e){Be.x.isEmpty(e)||(this.parameters.set(ne.Fo.TOKEN_TYPE,ne.hO.POP),this.parameters.set(ne.Fo.REQ_CNF,encodeURIComponent(e)))},e.prototype.addSshJwk=function(e){Be.x.isEmpty(e)||(this.parameters.set(ne.Fo.TOKEN_TYPE,ne.hO.SSH),this.parameters.set(ne.Fo.REQ_CNF,encodeURIComponent(e)))},e.prototype.addServerTelemetry=function(e){this.parameters.set(ne.Fo.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(ne.Fo.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},e.prototype.addThrottling=function(){this.parameters.set(ne.Fo.X_MS_LIB_CAPABILITY,ne.bb.X_MS_LIB_CAPABILITY_VALUE)},e.prototype.addLogoutHint=function(e){this.parameters.set(ne.Fo.LOGOUT_HINT,encodeURIComponent(e))},e.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach(function(t,n){e.push(n+"="+t)}),e.join("&")},e}(),Ct=function(){function e(e,t){var n,r,o,i,a,s,u,c,l,f,h,d,p,m,y;this.config=(o=(n=e).authOptions,i=n.systemOptions,a=n.loggerOptions,s=n.storageInterface,u=n.networkInterface,c=n.cryptoInterface,l=n.clientCredentials,f=n.libraryInfo,h=n.telemetry,d=n.serverTelemetryManager,p=n.persistencePlugin,m=n.serializableCache,y=(0,re.pi)((0,re.pi)({},lt),a),{authOptions:(r=o,(0,re.pi)({clientCapabilities:[],azureCloudOptions:pt,skipAuthorityMetadataCache:!1},r)),systemOptions:(0,re.pi)((0,re.pi)({},ct),i),loggerOptions:y,storageInterface:s||new Ke(o.clientId,Ne,new Re.Y(y)),networkInterface:u||ft,cryptoInterface:c||Ne,clientCredentials:l||dt,libraryInfo:(0,re.pi)((0,re.pi)({},ht),f),telemetry:(0,re.pi)((0,re.pi)({},mt),h),serverTelemetryManager:d||null,persistencePlugin:p||null,serializableCache:m||null}),this.logger=new Re.Y(this.config.loggerOptions,"@azure/msal-common","13.0.0"),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new _t(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}return e.prototype.createTokenRequestHeaders=function(e){var t={};if(t[ne.SZ.CONTENT_TYPE]=ne.gT.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case ze.HOME_ACCOUNT_ID:try{var n=He(e.credential);t[ne.SZ.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case ze.UPN:t[ne.SZ.CCS_HEADER]="UPN: "+e.credential}return t},e.prototype.executePostToTokenEndpoint=function(e,t,n,r){return(0,re.mG)(this,void 0,void 0,function(){var o;return(0,re.Jh)(this,function(i){switch(i.label){case 0:return[4,this.networkManager.sendPostRequest(r,e,{body:t,headers:n})];case 1:return o=i.sent(),this.config.serverTelemetryManager&&o.status<500&&429!==o.status&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,o]}})})},e.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw je.e.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},e.prototype.createTokenQueryParameters=function(e){var t=new St;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},e}(),Et=function(e,t,n,r,o){this.account=e||null,this.idToken=t||null,this.accessToken=n||null,this.refreshToken=r||null,this.appMetadata=o||null};!function(e){e.SW="sw",e.UHW="uhw"}(ut||(ut={}));var Tt=function(){function e(e,t){this.cryptoUtils=e,this.performanceClient=t}return e.prototype.generateCnf=function(e){var t,n;return(0,re.mG)(this,void 0,void 0,function(){var r,o,i;return(0,re.Jh)(this,function(a){switch(a.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(F.PopTokenGenerateCnf,e.correlationId),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(F.PopTokenGenerateKid,e.correlationId),[4,this.generateKid(e)];case 1:return r=a.sent(),o=this.cryptoUtils.base64Encode(JSON.stringify(r)),i={kid:r.kid,reqCnfString:o},[4,this.cryptoUtils.hashString(o)];case 2:return[2,(i.reqCnfHash=a.sent(),i)]}})})},e.prototype.generateKid=function(e){var t;return(0,re.mG)(this,void 0,void 0,function(){return(0,re.Jh)(this,function(n){switch(n.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(F.PopTokenGenerateKid,e.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(e)];
1case 1:return[2,{kid:n.sent(),xms_ksl:ut.SW}]}})})},e.prototype.signPopToken=function(e,t,n){return(0,re.mG)(this,void 0,void 0,function(){return(0,re.Jh)(this,function(r){return[2,this.signPayload(e,t,n)]})})},e.prototype.signPayload=function(e,t,n,r){return(0,re.mG)(this,void 0,void 0,function(){var o,i,a,s,u,c;return(0,re.Jh)(this,function(l){switch(l.label){case 0:return o=n.resourceRequestMethod,a=n.shrClaims,s=n.shrNonce,u=(i=n.resourceRequestUri)?new it.G(i):void 0,c=null==u?void 0:u.getUrlComponents(),[4,this.cryptoUtils.signJwt((0,re.pi)({at:e,ts:Ye.nowSeconds(),m:null==o?void 0:o.toUpperCase(),u:null==c?void 0:c.HostNameAndPort,nonce:s||this.cryptoUtils.createNewGuid(),p:null==c?void 0:c.AbsolutePath,q:(null==c?void 0:c.QueryString)?[[],c.QueryString]:void 0,client_claims:a||void 0},r),t,n.correlationId)];case 1:return[2,l.sent()]}})})},e}(),xt=function(){function e(e,t){this.cache=e,this.hasChanged=t}return Object.defineProperty(e.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),e}(),Ot=function(){function e(e,t,n,r,o,i,a){this.clientId=e,this.cacheStorage=t,this.cryptoObj=n,this.logger=r,this.serializableCache=o,this.persistencePlugin=i,this.performanceClient=a}return e.prototype.validateServerAuthorizationCodeResponse=function(e,t,n){if(!e.state||!t)throw je.e.createStateNotFoundError(e.state?"Cached State":"Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw je.e.createStateMismatchError();if(e.error||e.error_description||e.suberror){if(ue.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new ue(e.error||ne.gT.EMPTY_STRING,e.error_description,e.suberror,e.timestamp||ne.gT.EMPTY_STRING,e.trace_id||ne.gT.EMPTY_STRING,e.correlation_id||ne.gT.EMPTY_STRING,e.claims||ne.gT.EMPTY_STRING);throw new ie(e.error||ne.gT.EMPTY_STRING,e.error_description,e.suberror)}e.client_info&&qe(e.client_info,n)},e.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(ue.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new ue(e.error,e.error_description,e.suberror,e.timestamp||ne.gT.EMPTY_STRING,e.trace_id||ne.gT.EMPTY_STRING,e.correlation_id||ne.gT.EMPTY_STRING,e.claims||ne.gT.EMPTY_STRING);throw new ie(e.error,e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id,e.suberror)}},e.prototype.handleServerTokenResponse=function(t,n,r,o,i,a,s,u,c){var l;return(0,re.mG)(this,void 0,void 0,function(){var f,h,d,p,m,y;return(0,re.Jh)(this,function(v){switch(v.label){case 0:if(null===(l=this.performanceClient)||void 0===l||l.addQueueMeasurement(F.HandleServerTokenResponse,t.correlation_id),t.id_token){if(f=new Ve(t.id_token||ne.gT.EMPTY_STRING,this.cryptoObj),i&&!Be.x.isEmpty(i.nonce)&&f.claims.nonce!==i.nonce)throw je.e.createNonceMismatchError();if(o.maxAge||0===o.maxAge){if(!(h=f.claims.auth_time))throw je.e.createAuthTimeNotFoundError();Ve.checkMaxAge(h,o.maxAge)}}this.homeAccountIdentifier=Ge.generateHomeAccountId(t.client_info||ne.gT.EMPTY_STRING,n.authorityType,this.logger,this.cryptoObj,f),i&&i.state&&(d=tt.parseRequestState(this.cryptoObj,i.state)),t.key_id=t.key_id||o.sshKid||void 0,p=this.generateCacheRecord(t,n,r,o,f,a,i),v.label=1;case 1:return v.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),m=new xt(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(m)]):[3,3];case 2:v.sent(),v.label=3;case 3:return!s||u||!p.account||(y=p.account.generateAccountKey(),this.cacheStorage.getAccount(y))?[4,this.cacheStorage.saveCacheRecord(p)]:(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,e.generateAuthenticationResult(this.cryptoObj,n,p,!1,o,f,d,void 0,c)]);case 4:return v.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&m?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(m)]):[3,7];case 6:v.sent(),v.label=7;
1case 7:return[7];case 8:return[2,e.generateAuthenticationResult(this.cryptoObj,n,p,!1,o,f,d,t,c)]}})})},e.prototype.generateCacheRecord=function(e,t,n,r,o,i,a){var s,u,c=t.getPreferredCache();if(Be.x.isEmpty(c))throw je.e.createInvalidCacheEnvironmentError();!Be.x.isEmpty(e.id_token)&&o&&(s=Le.createIdTokenEntity(this.homeAccountIdentifier,c,e.id_token||ne.gT.EMPTY_STRING,this.clientId,o.claims.tid||ne.gT.EMPTY_STRING),u=this.generateAccountEntity(e,o,t,a));var l=null;if(!Be.x.isEmpty(e.access_token)){var f=e.scope?Ue.fromString(e.scope):new Ue(r.scopes||[]),h=("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,d=("string"==typeof e.ext_expires_in?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,p=("string"==typeof e.refresh_in?parseInt(e.refresh_in,10):e.refresh_in)||void 0,m=n+h,y=m+d,v=p&&p>0?n+p:void 0;l=We.createAccessTokenEntity(this.homeAccountIdentifier,c,e.access_token||ne.gT.EMPTY_STRING,this.clientId,o?o.claims.tid||ne.gT.EMPTY_STRING:t.tenant,f.printScopes(),m,y,this.cryptoObj,v,e.token_type,i,e.key_id,r.claims,r.requestedClaimsHash)}var g=null;Be.x.isEmpty(e.refresh_token)||(g=Xe.createRefreshTokenEntity(this.homeAccountIdentifier,c,e.refresh_token||ne.gT.EMPTY_STRING,this.clientId,e.foci,i));var b=null;return Be.x.isEmpty(e.foci)||(b=Ze.createAppMetadataEntity(this.clientId,c,e.foci)),new Et(u,s,l,g,b)},e.prototype.generateAccountEntity=function(e,t,n,r){var o=r?r.cloud_graph_host_name:ne.gT.EMPTY_STRING,i=r?r.msgraph_host:ne.gT.EMPTY_STRING;if(n.authorityType===xe.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),Ge.createGenericAccount(this.homeAccountIdentifier,t,n,o,i);if(Be.x.isEmpty(e.client_info)&&"AAD"===n.protocolMode)throw je.e.createClientInfoEmptyError();return e.client_info?Ge.createAccount(e.client_info,this.homeAccountIdentifier,t,n,o,i):Ge.createGenericAccount(this.homeAccountIdentifier,t,n,o,i)},e.generateAuthenticationResult=function(e,t,n,r,o,i,a,s,u){var c,l,f;return(0,re.mG)(this,void 0,void 0,function(){var h,d,p,m,y,v,g,b,w,_,k;return(0,re.Jh)(this,function(S){switch(S.label){case 0:if(h=ne.gT.EMPTY_STRING,d=[],p=null,y=ne.gT.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==ne.hO.POP)return[3,2];if(v=new Tt(e),b=(g=n.accessToken).secret,!(w=g.keyId))throw je.e.createKeyIdMissingError();return[4,v.signPopToken(b,w,o)];case 1:return h=S.sent(),[3,3];case 2:h=n.accessToken.secret,S.label=3;case 3:d=Ue.fromString(n.accessToken.target).asArray(),p=new Date(1e3*Number(n.accessToken.expiresOn)),m=new Date(1e3*Number(n.accessToken.extendedExpiresOn)),S.label=4;case 4:return n.appMetadata&&(y=n.appMetadata.familyId===ne.ch?ne.ch:ne.gT.EMPTY_STRING),_=(null==i?void 0:i.claims.oid)||(null==i?void 0:i.claims.sub)||ne.gT.EMPTY_STRING,k=(null==i?void 0:i.claims.tid)||ne.gT.EMPTY_STRING,(null==s?void 0:s.spa_accountid)&&n.account&&(n.account.nativeAccountId=null==s?void 0:s.spa_accountid),[2,{authority:t.canonicalAuthority,uniqueId:_,tenantId:k,scopes:d,account:n.account?n.account.getAccountInfo():null,idToken:i?i.rawToken:ne.gT.EMPTY_STRING,idTokenClaims:i?i.claims:{},accessToken:h,fromCache:r,expiresOn:p,correlationId:o.correlationId,requestId:u||ne.gT.EMPTY_STRING,extExpiresOn:m,familyId:y,tokenType:(null===(c=n.accessToken)||void 0===c?void 0:c.tokenType)||ne.gT.EMPTY_STRING,state:a?a.userRequestState:ne.gT.EMPTY_STRING,cloudGraphHostName:(null===(l=n.account)||void 0===l?void 0:l.cloudGraphHostName)||ne.gT.EMPTY_STRING,msGraphHost:(null===(f=n.account)||void 0===f?void 0:f.msGraphHost)||ne.gT.EMPTY_STRING,code:null==s?void 0:s.spa_code,fromNativeBroker:!1}]}})})},e}(),At=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.includeRedirectUri=!0,r}return(0,re.ZT)(t,e),t.prototype.getAuthCodeUrl=function(e){var t,n;return(0,re.mG)(this,void 0,void 0,function(){var r;return(0,re.Jh)(this,function(o){switch(o.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(F.GetAuthCodeUrl,e.correlationId),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(F.AuthClientCreateQueryString,e.correlationId),[4,this.createAuthCodeUrlQueryString(e)];case 1:return r=o.sent(),[2,it.G.appendQueryString(this.authority.authorizationEndpoint,r)]}})})},t.prototype.acquireToken=function(e,t){var n,r,o,i,a,s;return(0,re.mG)(this,void 0,void 0,function(){var u,c,l,f,h,d,p=this;return(0,re.Jh)(this,function(m){switch(m.label){case 0:if(!e||!e.code)throw je.e.createTokenRequestCannotBeMadeError();return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(F.AuthClientAcquireToken,e.correlationId),u=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement("AuthCodeClientAcquireToken",e.correlationId),this.logger.info("in acquireToken call in auth-code client"),c=Ye.nowSeconds(),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(F.AuthClientExecuteTokenRequest,e.correlationId),[4,this.executeTokenRequest(this.authority,e)];case 1:return l=m.sent(),f=null===(i=l.headers)||void 0===i?void 0:i[ne.SZ.X_MS_REQUEST_ID],(h=null===(a=l.headers)||void 0===a?void 0:a[ne.SZ.X_MS_HTTP_VERSION])&&(null==u||u.addStaticFields({httpVerAuthority:h})),(d=new Ot(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient)).validateTokenResponse(l.body),null===(s=this.performanceClient)||void 0===s||s.setPreQueueTime(F.HandleServerTokenResponse,e.correlationId),[2,d.handleServerTokenResponse(l.body,this.authority,c,e,t,void 0,void 0,void 0,f).then(function(e){return null==u||u.endMeasurement({success:!0}),e}).catch(function(t){throw p.logger.verbose("Error in fetching token in ACC",e.correlationId),null==u||u.endMeasurement({errorCode:t.errorCode,subErrorCode:t.subError,success:!1}),t})]}})})},t.prototype.handleFragmentResponse=function(e,t){var n=new Ot(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),r=new it.G(e),o=it.G.getDeserializedHash(r.getHash());if(n.validateServerAuthorizationCodeResponse(o,t,this.cryptoUtils),!o.code)throw je.e.createNoAuthCodeInServerResponseError();return(0,re.pi)((0,re.pi)({},o),{code:o.code})},t.prototype.getLogoutUri=function(e){if(!e)throw Fe.r.createEmptyLogoutRequestError();var t=this.createLogoutUrlQueryString(e);return it.G.appendQueryString(this.authority.endSessionEndpoint,t)},t.prototype.executeTokenRequest=function(e,t){var n,r;return(0,re.mG)(this,void 0,void 0,function(){var o,i,a,s,u,c;return(0,re.Jh)(this,function(l){switch(l.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(F.AuthClientExecuteTokenRequest,t.correlationId),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(F.AuthClientCreateTokenRequestBody,t.correlationId),o=this.createTokenQueryParameters(t),i=it.G.appendQueryString(e.tokenEndpoint,o),[4,this.createTokenRequestBody(t)];case 1:if(a=l.sent(),s=void 0,t.clientInfo)try{u=qe(t.clientInfo,this.cryptoUtils),s={credential:""+u.uid+ne.Bv.CLIENT_INFO_SEPARATOR+u.utid,type:ze.HOME_ACCOUNT_ID}}catch(f){this.logger.verbose("Could not parse client info for CCS Header: "+f)}return c=this.createTokenRequestHeaders(s||t.ccsCredential),[2,this.executePostToTokenEndpoint(i,a,c,{clientId:this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid})]}})})},t.prototype.createTokenRequestBody=function(e){var t,n;return(0,re.mG)(this,void 0,void 0,function(){var r,o,i,a,s,u,c,l;return(0,re.Jh)(this,function(f){switch(f.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(F.AuthClientCreateTokenRequestBody,e.correlationId),(r=new St).addClientId(this.config.authOptions.clientId),this.includeRedirectUri?r.addRedirectUri(e.redirectUri):kt.validateRedirectUri(e.redirectUri),r.addScopes(e.scopes),r.addAuthorizationCode(e.code),r.addLibraryInfo(this.config.libraryInfo),r.addApplicationTelemetry(this.config.telemetry.application),r.addThrottling(),this.serverTelemetryManager&&r.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&r.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&r.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(r.addClientAssertion((o=this.config.clientCredentials.clientAssertion).assertion),r.addClientAssertionType(o.assertionType)),r.addGrantType(ne.qJ.AUTHORIZATION_CODE_GRANT),r.addClientInfo(),e.authenticationScheme!==ne.hO.POP?[3,2]:(i=new Tt(this.cryptoUtils,this.performanceClient),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(F.PopTokenGenerateCnf,e.correlationId),[4,i.generateCnf(e)]);case 1:return a=f.sent(),r.addPopToken(a.reqCnfString),[3,3];case 2:if(e.authenticationScheme===ne.hO.SSH){if(!e.sshJwk)throw Fe.r.createMissingSshJwkError();r.addSshJwk(e.sshJwk)}f.label=3;case 3:if(s=e.correlationId||this.config.cryptoInterface.createNewGuid(),r.addCorrelationId(s),(!Be.x.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities),u=void 0,e.clientInfo)try{c=qe(e.clientInfo,this.cryptoUtils),u={credential:""+c.uid+ne.Bv.CLIENT_INFO_SEPARATOR+c.utid,type:ze.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}else u=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&u)switch(u.type){case ze.HOME_ACCOUNT_ID:try{c=He(u.credential),r.addCcsOid(c)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case ze.UPN:r.addCcsUpn(u.credential)}return e.tokenBodyParameters&&r.addExtraQueryParameters(e.tokenBodyParameters),!e.enableSpaAuthorizationCode||e.tokenBodyParameters&&e.tokenBodyParameters[ne.Fo.RETURN_SPA_CODE]||r.addExtraQueryParameters(((l={})[ne.Fo.RETURN_SPA_CODE]="1",l)),[2,r.createQueryString()]}})})},t.prototype.createAuthCodeUrlQueryString=function(e){var t;return(0,re.mG)(this,void 0,void 0,function(){var n,r,o,i,a,s,u;return(0,re.Jh)(this,function(c){switch(c.label){case 0:if(null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(F.AuthClientCreateQueryString,e.correlationId),(n=new St).addClientId(this.config.authOptions.clientId),r
1=(0,re.pr)(e.scopes||[],e.extraScopesToConsent||[]),n.addScopes(r),n.addRedirectUri(e.redirectUri),o=e.correlationId||this.config.cryptoInterface.createNewGuid(),n.addCorrelationId(o),n.addResponseMode(e.responseMode),n.addResponseTypeCode(),n.addLibraryInfo(this.config.libraryInfo),n.addApplicationTelemetry(this.config.telemetry.application),n.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&n.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&n.addPrompt(e.prompt),e.domainHint&&n.addDomainHint(e.domainHint),e.prompt!==ne.NJ.SELECT_ACCOUNT)if(e.sid&&e.prompt===ne.NJ.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),n.addSid(e.sid);else if(e.account){if(i=this.extractAccountSid(e.account),a=this.extractLoginHint(e.account)){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),n.addLoginHint(a);try{s=He(e.account.homeAccountId),n.addCcsOid(s)}catch(l){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(i&&e.prompt===ne.NJ.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),n.addSid(i);try{s=He(e.account.homeAccountId),n.addCcsOid(s)}catch(l){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),n.addLoginHint(e.loginHint),n.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),n.addLoginHint(e.account.username);try{s=He(e.account.homeAccountId),n.addCcsOid(s)}catch(l){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),n.addLoginHint(e.loginHint),n.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return e.nonce&&n.addNonce(e.nonce),e.state&&n.addState(e.state),(!Be.x.isEmpty(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.extraQueryParameters&&n.addExtraQueryParameters(e.extraQueryParameters),e.nativeBroker?(n.addNativeBroker(),e.authenticationScheme!==ne.hO.POP?[3,2]:[4,new Tt(this.cryptoUtils).generateCnf(e)]):[3,2];case 1:u=c.sent(),n.addPopToken(u.reqCnfHash),c.label=2;case 2:return[2,n.createQueryString()]}})})},t.prototype.createLogoutUrlQueryString=function(e){var t=new St;return e.postLogoutRedirectUri&&t.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&t.addCorrelationId(e.correlationId),e.idTokenHint&&t.addIdTokenHint(e.idTokenHint),e.state&&t.addState(e.state),e.logoutHint&&t.addLogoutHint(e.logoutHint),e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters),t.createQueryString()},t.prototype.extractAccountSid=function(e){var t;return(null===(t=e.idTokenClaims)||void 0===t?void 0:t.sid)||null},t.prototype.extractLoginHint=function(e){var t;return(null===(t=e.idTokenClaims)||void 0===t?void 0:t.login_hint)||null},t}(Ct);function Rt(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("jwks_uri")}var It,Pt
vendor: 14,220 bytes, line 1
1={"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},
1Mt={"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}},Nt=function(){function e(e,t,n){this.networkInterface=e,this.performanceClient=t,this.correlationId=n}return e.prototype.detectRegion=function(t,n){var r,o,i,a;return(0,re.mG)(this,void 0,void 0,function(){var s,u,c,l,f;return(0,re.Jh)(this,function(h){switch(h.label){case 0:if(null===(r=this.performanceClient)||void 0===r||r.addQueueMeasurement(F.RegionDiscoveryDetectRegion,this.correlationId),s=t)return[3,8];u=e.IMDS_OPTIONS,h.label=1;case 1:return h.trys.push([1,6,,7]),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(F.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(ne.gT.IMDS_VERSION,u)];case 2:return(c=h.sent()).status===ne.YY.httpSuccess&&(s=c.body,n.region_source=ne.W.IMDS),c.status!==ne.YY.httpBadRequest?[3,5]:(null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(F.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(u)]);case 3:return(l=h.sent())?(null===(a=this.performanceClient)||void 0===a||a.setPreQueueTime(F.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(l,u)]):(n.region_source=ne.W.FAILED_AUTO_DETECTION,[2,null]);case 4:(f=h.sent()).status===ne.YY.httpSuccess&&(s=f.body,n.region_source=ne.W.IMDS),h.label=5;case 5:return[3,7];case 6:return h.sent(),n.region_source=ne.W.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:n.region_source=ne.W.ENVIRONMENT_VARIABLE,h.label=9;case 9:return s||(n.region_source=ne.W.FAILED_AUTO_DETECTION),[2,s||null]}})})},e.prototype.getRegionFromIMDS=function(e,t){var n;return(0,re.mG)(this,void 0,void 0,function(){return(0,re.Jh)(this,function(r){return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(F.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(ne.gT.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t,ne.gT.IMDS_TIMEOUT)]})})},e.prototype.getCurrentVersion=function(e){var t;return(0,re.mG)(this,void 0,void 0,function(){var n;return(0,re.Jh)(this,function(r){switch(r.label){case 0:null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(F.RegionDiscoveryGetCurrentVersion,this.correlationId),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(ne.gT.IMDS_ENDPOINT+"?format=json",e)];
1case 2:return(n=r.sent()).status===ne.YY.httpBadRequest&&n.body&&n.body["newest-versions"]&&n.body["newest-versions"].length>0?[2,n.body["newest-versions"][0]]:[2,null];case 3:return r.sent(),[2,null];case 4:return[2]}})})},e.IMDS_OPTIONS={headers:{Metadata:"true"}},e}(),jt=function(){function e(e,t,n,r,o,i,a){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=n,this.authorityOptions=r,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=o,this.performanceClient=i,this.correlationId=a,this.regionDiscovery=new Nt(t,this.performanceClient,this.correlationId)}return Object.defineProperty(e.prototype,"authorityType",{get:function(){if(this.canonicalAuthorityUrlComponents.HostNameAndPort.endsWith(ne.gT.CIAM_AUTH_URL))return xe.Ciam;var e=this.canonicalAuthorityUrlComponents.PathSegments;if(e.length)switch(e[0].toLowerCase()){case ne.gT.ADFS:return xe.Adfs;case ne.gT.DSTS:return xe.Dsts}return xe.Default},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new it.G(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.authorization_endpoint);return this.replaceTenant(e)}throw je.e.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint);return this.replaceTenant(e)}throw je.e.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));return this.replaceTenant(e)}throw je.e.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw je.e.createLogoutNotSupportedError();var e=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(e)}throw je.e.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.issuer);return this.replaceTenant(e)}throw je.e.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"jwksUri",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.jwks_uri);return this.replaceTenant(e)}throw je.e.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),e.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},e.prototype.replacePath=function(e){var t=e,n=new it.G(this.metadata.canonical_authority).getUrlComponents().PathSegments;
1return this.canonicalAuthorityUrlComponents.PathSegments.forEach(function(e,r){var o=n[r];e!==o&&(t=t.replace("/"+o+"/","/"+e+"/"))}),t},Object.defineProperty(e.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===xe.Adfs||this.authorityType===xe.Dsts||this.protocolMode===nt.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),e.prototype.discoveryComplete=function(){return!!this.metadata},e.prototype.resolveEndpointsAsync=function(){var e,t,n;return(0,re.mG)(this,void 0,void 0,function(){var r,o,i,a;return(0,re.Jh)(this,function(s){switch(s.label){case 0:return null===(e=this.performanceClient)||void 0===e||e.addQueueMeasurement(F.AuthorityResolveEndpointsAsync,this.correlationId),(r=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort))||(r=new Qe).updateCanonicalAuthority(this.canonicalAuthority),null===(t=this.performanceClient)||void 0===t||t.setPreQueueTime(F.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(r)];case 1:return o=s.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,r.preferred_network),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(F.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(r)];case 2:return i=s.sent(),o!==ne.pQ.CACHE&&i!==ne.pQ.CACHE&&(r.resetExpiresAt(),r.updateCanonicalAuthority(this.canonicalAuthority)),a=this.cacheManager.generateAuthorityMetadataCacheKey(r.preferred_cache),this.cacheManager.setAuthorityMetadata(a,r),this.metadata=r,[2]}})})},e.prototype.updateEndpointMetadata=function(e){var t,n,r,o,i,a;return(0,re.mG)(this,void 0,void 0,function(){var s,u;return(0,re.Jh)(this,function(c){switch(c.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(F.AuthorityUpdateEndpointMetadata,this.correlationId),(s=this.getEndpointMetadataFromConfig())?(e.updateEndpointMetadata(s,!1),[2,ne.pQ.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,ne.pQ.CACHE]:(null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(F.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return(s=c.sent())?(null===(r=this.authorityOptions.azureRegionConfiguration)||void 0===r?void 0:r.azureRegion)?(null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(F.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(s)]):[3,3]:[3,4];case 2:s=c.sent(),c.label=3;case 3:return e.updateEndpointMetadata(s,!0),[2,ne.pQ.NETWORK];case 4:return!(u=this.getEndpointMetadataFromHardcodedValues())||this.authorityOptions.skipAuthorityMetadataCache?[3,7]:(null===(i=this.authorityOptions.azureRegionConfiguration)||void 0===i?void 0:i.azureRegion)?(null===(a=this.performanceClient)||void 0===a||a.setPreQueueTime(F.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(u)]):[3,6];case 5:u=c.sent(),c.label=6;case 6:return e.updateEndpointMetadata(u,!1),[2,ne.pQ.HARDCODED_VALUES];case 7:throw je.e.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},e.prototype.isAuthoritySameType=function(e){return new it.G(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length},e.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch(e){throw Fe.r.createInvalidAuthorityMetadataError()}return null},e.prototype.getEndpointMetadataFromNetwork=function(){var e;return(0,re.mG)(this,void 0,void 0,function(){var t,n;return(0,re.Jh)(this,function(r){switch(r.label){case 0:null===(e=this.performanceClient)||void 0===e||e.addQueueMeasurement(F.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),t={},r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,t)];case 2:return[2,Rt((n=r.sent()).body)?n.body:null];case 3:return r.sent(),[2,null];case 4:return[2]}})})},e.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in Pt?Pt[this.canonicalAuthority]:null},e.prototype.updateMetadataWithRegionalInformation=function(t){var n,r,o,i,a,s,u;return(0,re.mG)(this,void 0,void 0,function(){var c,l;return(0,re.Jh)(this,function(f){switch(f.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(F.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(F.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion(null===(o=this.authorityOptions.azureRegionConfiguration)||void 0===o?void 0:o.environmentRegion,this.regionDiscoveryMetadata)];case 1:return c=f.sent(),l=(null===(i=this.authorityOptions.azureRegionConfiguration)||void 0===i?void 0:i.azureRegion)===ne.gT.AZURE_REGION_AUTO_DISCOVER_FLAG?c:null===(a=this.authorityOptions.azureRegionConfiguration)||void 0===a?void 0:a.azureRegion,this.regionDiscoveryMetadata.region_outcome=(null===(s=this.authorityOptions.azureRegionConfiguration)||void 0===s?void 0:s.azureRegion)===ne.gT.AZURE_REGION_AUTO_DISCOVER_FLAG?c?ne.ki.AUTO_DETECTION_REQUESTED_SUCCESSFUL:ne.ki.AUTO_DETECTION_REQUESTED_FAILED:c?(null===(u=this.authorityOptions.azureRegionConfiguration)||void 0===u?void 0:u.azureRegion)===c?ne.ki.CONFIGURED_MATCHES_DETECTED:ne.ki.CONFIGURED_NOT_DETECTED:ne.ki.CONFIGURED_NO_AUTO_DETECTION,l?(this.regionDiscoveryMetadata.region_used=l,[2,e.replaceWithRegionalInformation(t,l)]):[2,t]}})})},e.prototype.updateCloudDiscoveryMetadata=function(e){var t,n;return(0,re.mG)(this,void 0,void 0,function(){var r,o,i;return(0,re.Jh)(this,function(a){switch(a.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(F.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||ne.gT.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||ne.gT.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||ne.gT.NOT_APPLICABLE)),(r=this.getCloudDiscoveryMetadataFromConfig())?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(r,!1),[2,ne.pQ.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),o=e.isExpired(),this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!o?(this.logger.verbose("Found metadata in the cache."),[2,ne.pQ.CACHE]):(o&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(F.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(r=a.sent())return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(r,!0),[2,ne.pQ.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),(i=this.getCloudDiscoveryMetadataFromHarcodedValues())&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(i,!1),[2,ne.pQ.HARDCODED_VALUES];
1throw this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."),Fe.r.createUntrustedAuthorityError()}})})},e.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===xe.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");var t=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),n=e.getCloudDiscoveryMetadataFromNetworkResponse(t.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),n)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),n;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch(r){throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),Fe.r.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},e.prototype.getCloudDiscoveryMetadataFromNetwork=function(){var t;return(0,re.mG)(this,void 0,void 0,function(){var n,r,o,i,a,s,u,c;return(0,re.Jh)(this,function(l){switch(l.label){case 0:null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(F.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),n=""+ne.gT.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",r={},o=null,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(n,r)];case 2:if(i=l.sent(),a=void 0,s=void 0,function(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")}(i.body))s=(a=i.body).metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+a.tenant_discovery_endpoint);else{if(!function(e){return e.hasOwnProperty("error")&&e.hasOwnProperty("error_description")}(i.body))return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+i.status),(a=i.body).error===ne.gT.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+a.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+a.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),s=[]}return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),o=e.getCloudDiscoveryMetadataFromNetworkResponse(s,this.hostnameAndPort),[3,4];case 3:return u=l.sent(),this.logger.error(u instanceof oe.l?"There was a network error while attempting to get the cloud discovery instance metadata.\nError: "+u.errorCode+"\nError Description: "+u.errorMessage:"A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.\nError: "+(c=u).name+"\nError Description: "+c.message),[2,null];case 4:return o||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),o=e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,o]}})})},e.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in Mt?Mt[this.canonicalAuthority]:null},e.prototype.isInKnownAuthorities=function(){var e=this;return this.authorityOptions.knownAuthorities.filter(function(t){return it.G.getDomainFromUrl(t).toLowerCase()===e.hostnameAndPort}).length>0},e.generateAuthority=function(e,t){var n;return t&&t.azureCloudInstance!==rt.None&&(n=t.azureCloudInstance+"/"+(t.tenant?t.tenant:ne.gT.DEFAULT_COMMON_TENANT)+"/"),n||e},e.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},e.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.aliases.indexOf(t)>-1)return r}return null},e.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw je.e.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},e.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},e.isPublicCloudAuthority=function(e){return ne.gT.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},e.buildRegionalAuthorityString=function(e,t,n){var r=new it.G(e);r.validateAsUri();var o=r.getUrlComponents(),i=t+"."+o.HostNameAndPort;this.isPublicCloudAuthority(o.HostNameAndPort)&&(i=t+"."+ne.gT.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var a=it.G.constructAuthorityUriFromObject((0,re.pi)((0,re.pi)({},r.getUrlComponents()),{HostNameAndPort:i})).urlString;return n?a+"?"+n:a},e.replaceWithRegionalInformation=function(t,n){return t.authorization_endpoint=e.buildRegionalAuthorityString(t.authorization_endpoint,n),t.token_endpoint=e.buildRegionalAuthorityString(t.token_endpoint,n,ne.gT.REGIONAL_AUTH_NON_MSI_QUERY_STRING),t.end_session_endpoint&&(t.end_session_endpoint=e.buildRegionalAuthorityString(t.end_session_endpoint,n)),t},e.transformCIAMAuthority=function(e){var t=e.endsWith(ne.gT.FORWARD_SLASH)?e:""+e+ne.gT.FORWARD_SLASH,n=new it.G(e).getUrlComponents();return 0===n.PathSegments.length&&n.HostNameAndPort.endsWith(ne.gT.CIAM_AUTH_URL)&&(t=""+t+n.HostNameAndPort.split(".")[0]+ne.gT.AAD_TENANT_DOMAIN_SUFFIX),t},e}(),Dt=function(){function e(){}return e.createDiscoveredInstance=function(t,n,r,o,i,a,s){return(0,re.mG)(this,void 0,void 0,function(){var u,c,l;return(0,re.Jh)(this,function(f){switch(f.label){case 0:null==a||a.addQueueMeasurement(F.AuthorityFactoryCreateDiscoveredInstance,s),u=jt.transformCIAMAuthority(t),
1c=e.createInstance(u,n,r,o,i,a,s),f.label=1;case 1:return f.trys.push([1,3,,4]),null==a||a.setPreQueueTime(F.AuthorityResolveEndpointsAsync,s),[4,c.resolveEndpointsAsync()];case 2:return f.sent(),[2,c];case 3:throw l=f.sent(),je.e.createEndpointDiscoveryIncompleteError(l);case 4:return[2]}})})},e.createInstance=function(e,t,n,r,o,i,a){if(Be.x.isEmpty(e))throw Fe.r.createUrlEmptyError();return new jt(e,t,n,r,o,i,a)},e}(),Lt=function(){function e(e,t){this.cacheOutcome=ne.To.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||ne.gT.EMPTY_STRING,this.wrapperVer=e.wrapperVer||ne.gT.EMPTY_STRING,this.telemetryCacheKey=ne.HN.CACHE_KEY+ne.Bv.CACHE_KEY_SEPARATOR+e.clientId}return e.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+ne.HN.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(ne.HN.VALUE_SEPARATOR),n=[e,this.getRegionDiscoveryFields()].join(ne.HN.VALUE_SEPARATOR);return[ne.HN.SCHEMA_VERSION,n,t].join(ne.HN.CATEGORY_SEPARATOR)},e.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t),r=t.failedRequests.slice(0,2*n).join(ne.HN.VALUE_SEPARATOR),o=t.errors.slice(0,n).join(ne.HN.VALUE_SEPARATOR),i=t.errors.length,a=[i,n<i?ne.HN.OVERFLOW_TRUE:ne.HN.OVERFLOW_FALSE].join(ne.HN.VALUE_SEPARATOR);return[ne.HN.SCHEMA_VERSION,t.cacheHits,r,o,a].join(ne.HN.CATEGORY_SEPARATOR)},e.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=ne.HN.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),Be.x.isEmpty(e.subError)?Be.x.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(ne.HN.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},e.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},e.prototype.getLastRequests=function(){var e=new Je;return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e},e.prototype.clearTelemetryCache=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t);if(n===t.errors.length)this.cacheManager.removeItem(this.telemetryCacheKey);else{var r=new Je;r.failedRequests=t.failedRequests.slice(2*n),r.errors=t.errors.slice(n),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)}},e.maxErrorsToSend=function(e){var t,n=0,r=0,o=e.errors.length;for(t=0;t<o;t++){var i=e.failedRequests[2*t+1]||ne.gT.EMPTY_STRING,a=e.errors[t]||ne.gT.EMPTY_STRING;if(!((r+=(e.failedRequests[2*t]||ne.gT.EMPTY_STRING).toString().length+i.toString().length+a.length+3)<ne.HN.MAX_LAST_HEADER_BYTES))break;n+=1}return n},e.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||ne.gT.EMPTY_STRING),e.push(this.regionSource||ne.gT.EMPTY_STRING),e.push(this.regionOutcome||ne.gT.EMPTY_STRING),e.join(",")},e.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},e.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},e}(),Ft=function(){function e(e,t,n,r,o,i,a,s,u){this.config=e,this.browserStorage=t,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=o,this.navigationClient=i,this.nativeMessageHandler=s,this.correlationId=u||this.browserCrypto.createNewGuid(),this.logger=r.clone(O.qx.MSAL_SKU,"2.37.0",this.correlationId),this.performanceClient=a}return e.prototype.clearCacheOnLogout=function(e){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(t){switch(t.label){case 0:if(!e)return[3,5];Ge.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(Ge.generateAccountCacheKey(e))];case 2:return t.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return t.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return t.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return t.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return t.sent(),[3,9];case 8:return t.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},e.prototype.initializeBaseRequest=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n,r,o;return(0,Q.Jh)(this,function(i){switch(i.label){case 0:if(this.performanceClient.addQueueMeasurement(F.InitializeBaseRequest,e.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),t=e.authority||this.config.auth.authority,n=(0,Q.fl)(e&&e.scopes||[]),(r=(0,Q.pi)((0,Q.pi)({},e),{correlationId:this.correlationId,authority:t,scopes:n})).authenticationScheme){if(r.authenticationScheme===ne.hO.SSH){if(!e.sshJwk)throw Fe.r.createMissingSshJwkError();if(!e.sshKid)throw Fe.r.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+r.authenticationScheme+'" as configured in Auth request')}else r.authenticationScheme=ne.hO.BEARER,this.logger.verbose('Authentication Scheme wasn\'t explicitly set in request, defaulting to "Bearer" request');return!e.claims||Be.x.isEmpty(e.claims)?[3,2]:(o=r,[4,this.browserCrypto.hashString(e.claims)]);case 1:o.requestedClaimsHash=i.sent(),i.label=2;case 2:return[2,r]}})})},e.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var t=e||this.config.auth.redirectUri||vt.M.getCurrentUri();return it.G.getAbsoluteUrl(t,vt.M.getCurrentUri())},e.prototype.initializeServerTelemetryManager=function(e,t){this.logger.verbose("initializeServerTelemetryManager called");var n={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new Lt(n,this.browserStorage)},e.prototype.getDiscoveredAuthority=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t;return(0,Q.Jh)(this,function(n){switch(n.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),t={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},e?(this.logger.verbose("Creating discovered authority with request authority"),[4,Dt.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,t,this.logger)]):[3,2];case 1:return[2,n.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,Dt.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)];case 3:return[2,n.sent()]}})})},e}(),Bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Q.ZT)(t,e),t.prototype.initializeAuthorizationCodeRequest=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n;return(0,Q.Jh)(this,function(r){switch(r.label){case 0:return this.performanceClient.addQueueMeasurement(F.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),this.logger.verbose("initializeAuthorizationRequest called",e.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return t=r.sent(),n=(0,Q.pi)((0,Q.pi)({},e),{redirectUri:e.redirectUri,code:ne.gT.EMPTY_STRING,codeVerifier:t.verifier}),e.codeChallenge=t.challenge,e.codeChallengeMethod=ne.gT.S256_CODE_CHALLENGE_METHOD,[2,n]}})})},t.prototype.initializeLogoutRequest=function(e){this.logger.verbose("initializeLogoutRequest called",null==e?void 0:e.correlationId);var t=(0,Q.pi)({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},e);if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){var n=this.getLogoutHintFromIdTokenClaims(e.account);n&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),t.logoutHint=n)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return e&&null===e.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",t.correlationId):e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",t.correlationId),t.postLogoutRedirectUri=it.G.getAbsoluteUrl(e.postLogoutRedirectUri,vt.M.getCurrentUri())
1):null===this.config.auth.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",t.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",t.correlationId),t.postLogoutRedirectUri=it.G.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,vt.M.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",t.correlationId),t.postLogoutRedirectUri=it.G.getAbsoluteUrl(vt.M.getCurrentUri(),vt.M.getCurrentUri())),t},t.prototype.getLogoutHintFromIdTokenClaims=function(e){var t=e.idTokenClaims;if(t){if(t.login_hint)return t.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null},t.prototype.createAuthCodeClient=function(e,t,n){return(0,Q.mG)(this,void 0,void 0,function(){var r;return(0,Q.Jh)(this,function(o){switch(o.label){case 0:return this.performanceClient.addQueueMeasurement(F.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(F.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return r=o.sent(),[2,new At(r,this.performanceClient)]}})})},t.prototype.getClientConfiguration=function(e,t,n){return(0,Q.mG)(this,void 0,void 0,function(){var r,o;return(0,Q.Jh)(this,function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(F.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(F.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(t,n)];case 1:return r=i.sent(),[2,{authOptions:{clientId:this.config.auth.clientId,authority:r,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:(o=this.config.system.loggerOptions).loggerCallback,piiLoggingEnabled:o.piiLoggingEnabled,logLevel:o.logLevel,correlationId:this.correlationId},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:e,libraryInfo:{sku:O.qx.MSAL_SKU,version:"2.37.0",cpu:ne.gT.EMPTY_STRING,os:ne.gT.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},t.prototype.validateAndExtractStateFromHash=function(e,t,n){if(this.logger.verbose("validateAndExtractStateFromHash called",n),!e.state)throw ye.U.createHashDoesNotContainStateError();var r=at.extractBrowserRequestState(this.browserCrypto,e.state);if(!r)throw ye.U.createUnableToParseStateError();if(r.interactionType!==t)throw ye.U.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",n),e.state},t.prototype.getDiscoveredAuthority=function(e,t){var n;return(0,Q.mG)(this,void 0,void 0,function(){var r,o,i;return(0,Q.Jh)(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(F.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),r=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(F.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),o={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},i=jt.generateAuthority(e||this.config.auth.authority,t||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(F.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,Dt.createDiscoveredInstance(i,this.config.system.networkClient,this.browserStorage,o,this.logger,this.performanceClient,this.correlationId).then(function(e){return r.endMeasurement({success:!0}),e}).catch(function(e){throw r.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})];case 1:return[2,a.sent()]}})})},t.prototype.initializeAuthorizationRequest=function(e,t){return(0,Q.mG)(this,void 0,void 0,function(){var n,r,o,i,a,s;return(0,Q.Jh)(this,function(u){switch(u.label){case 0:return this.performanceClient.addQueueMeasurement(F.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),n=this.getRedirectUri(e.redirectUri),r=tt.setRequestState(this.browserCrypto,e&&e.state||ne.gT.EMPTY_STRING,{interactionType:t}),this.performanceClient.setPreQueueTime(F.InitializeBaseRequest,this.correlationId),i=[{}
1],[4,this.initializeBaseRequest(e)];case 1:return o=Q.pi.apply(void 0,[Q.pi.apply(void 0,i.concat([u.sent()])),{redirectUri:n,state:r,nonce:e.nonce||this.browserCrypto.createNewGuid(),responseMode:ne.vw.FRAGMENT}]),(a=e.account||this.browserStorage.getActiveAccount())&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+a.homeAccountId,this.correlationId),o.account=a),Be.x.isEmpty(o.loginHint)&&!a&&(s=this.browserStorage.getLegacyLoginHint())&&(o.loginHint=s),[2,o]}})})},t}(Ft);!function(e){e.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",e.USER_CANCEL="USER_CANCEL",e.NO_NETWORK="NO_NETWORK",e.TRANSIENT_ERROR="TRANSIENT_ERROR",e.PERSISTENT_ERROR="PERSISTENT_ERROR",e.DISABLED="DISABLED",e.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"}(It||(It={}));var Ut=function(e){function t(n,r,o){var i=e.call(this,n,r)||this;return Object.setPrototypeOf(i,t.prototype),i.name="NativeAuthError",i.ext=o,i}return(0,Q.ZT)(t,e),t.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===It.PERSISTENT_ERROR||this.ext.status===It.DISABLED))return!0;switch(this.errorCode){case"ContentError":return!0;default:return!1}},t.createError=function(e,n,r){if(r&&r.status)switch(r.status){case It.ACCOUNT_UNAVAILABLE:return ue.createNativeAccountUnavailableError();case It.USER_INTERACTION_REQUIRED:return new ue(e,n);case It.USER_CANCEL:return ye.U.createUserCancelledError();case It.NO_NETWORK:return ye.U.createNoNetworkConnectivityError()}return new t(e,n,r)},t.createUserSwitchError=function(){return new t("user_switch","User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again.")},t.createTokensNotFoundInCacheError=function(){return new t("tokens_not_found_in_internal_memory_cache","Tokens not cached in MSAL JS internal memory, please make the WAM request")},t}(oe.l),qt=function(e){function t(t,n){return e.call(this,t,n)||this}return(0,re.ZT)(t,e),t.prototype.acquireToken=function(e){var t,n,r,o,i,a,s;return(0,re.mG)(this,void 0,void 0,function(){var u,c,l,f,h,d,p=this;return(0,re.Jh)(this,function(m){switch(m.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(F.RefreshTokenClientAcquireToken,e.correlationId),u=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(F.RefreshTokenClientAcquireToken,e.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",e.correlationId),c=Ye.nowSeconds(),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(F.RefreshTokenClientExecuteTokenRequest,e.correlationId),[4,this.executeTokenRequest(e,this.authority)];case 1:return l=m.sent(),f=null===(o=l.headers)||void 0===o?void 0:o[ne.SZ.X_MS_HTTP_VERSION],null==u||u.addStaticFields({refreshTokenSize:(null===(i=l.body.refresh_token)||void 0===i?void 0:i.length)||0}),f&&(null==u||u.addStaticFields({httpVerToken:f})),h=null===(a=l.headers)||void 0===a?void 0:a[ne.SZ.X_MS_REQUEST_ID],(d=new Ot(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(l.body),null===(s=this.performanceClient)||void 0===s||s.setPreQueueTime(F.HandleServerTokenResponse,e.correlationId),[2,d.handleServerTokenResponse(l.body,this.authority,c,e,void 0,void 0,!0,e.forceCache,h).then(function(e){return null==u||u.endMeasurement({success:!0}),e}).catch(function(t){throw p.logger.verbose("Error in fetching refresh token",e.correlationId),null==u||u.endMeasurement({errorCode:t.errorCode,subErrorCode:t.subError,success:!1}),t})]}})})},t.prototype.acquireTokenByRefreshToken=function(e){var t,n,r,o;return(0,re.mG)(this,void 0,void 0,function(){var i;return(0,re.Jh)(this,function(a){if(!e)throw Fe.r.createEmptyTokenRequestError();if(null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(F.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw je.e.createNoAccountInSilentRequestError();if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(F.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!0)]}catch(s){if(i=s instanceof ie&&s.errorCode===ne.D1.INVALID_GRANT_ERROR&&s.subError===ne.D1.CLIENT_MISMATCH_ERROR,s instanceof ue&&"no_tokens_found"===s.errorCode||i)return null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(F.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!1)];throw s}return null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(F.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!1)]})})},t.prototype.acquireTokenWithCachedRefreshToken=function(e,t){var n,r,o;return(0,re.mG)(this,void 0,void 0,function(){var i,a,s;return(0,re.Jh)(this,function(u){if(null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(F.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),i=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(F.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",e.correlationId),!(a=this.cacheManager.getRefreshToken(e.account,t)))throw null==i||i.discardMeasurement(),ue.createNoTokensFoundError();return null==i||i.endMeasurement({success:!0}),s=(0,re.pi)((0,re.pi)({},e),{refreshToken:a.secret,authenticationScheme:e.authenticationScheme||ne.hO.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:ze.HOME_ACCOUNT_ID}}),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(F.RefreshTokenClientAcquireToken,e.correlationId),[2,this.acquireToken(s)]})})},t.prototype.executeTokenRequest=function(e,t){var n,r,o;return(0,re.mG)(this,void 0,void 0,function(){var i,a,s,u,c;return(0,re.Jh)(this,function(l){switch(l.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(F.RefreshTokenClientExecuteTokenRequest,e.correlationId),i=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(F.RefreshTokenClientExecuteTokenRequest,e.correlationId),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(F.RefreshTokenClientCreateTokenRequestBody,e.correlationId),a=this.createTokenQueryParameters(e),s=it.G.appendQueryString(t.tokenEndpoint,a),[4,this.createTokenRequestBody(e)];case 1:return u=l.sent(),c=this.createTokenRequestHeaders(e.ccsCredential),[2,this.executePostToTokenEndpoint(s,u,c,{clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid}).then(function(e){return null==i||i.endMeasurement({success:!0}),e}).catch(function(e){throw null==i||i.endMeasurement({success:!1}),e})]}})})},t.prototype.createTokenRequestBody=function(e){var t,n,r;return(0,re.mG)(this,void 0,void 0,function(){var o,i,a,s,u,c,l;return(0,re.Jh)(this,function(f){switch(f.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(F.RefreshTokenClientCreateTokenRequestBody,e.correlationId),o=e.correlationId,i=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(F.BaseClientCreateTokenRequestHeaders,o),(a=new St).addClientId(this.config.authOptions.clientId),a.addScopes(e.scopes),a.addGrantType(ne.qJ.REFRESH_TOKEN_GRANT),a.addClientInfo(),a.addLibraryInfo(this.config.libraryInfo),a.addApplicationTelemetry(this.config.telemetry.application),a.addThrottling(),this.serverTelemetryManager&&a.addServerTelemetry(this.serverTelemetryManager),a.addCorrelationId(o),a.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&a.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(a.addClientAssertion((s=this.config.clientCredentials.clientAssertion).assertion),a.addClientAssertionType(s.assertionType)),e.authenticationScheme!==ne.hO.POP?[3,2]:(u=new Tt(this.cryptoUtils,this.performanceClient),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(F.PopTokenGenerateCnf,e.correlationId),[4,u.generateCnf(e)]);case 1:return c=f.sent(),a.addPopToken(c.reqCnfString),[3,3];case 2:if(e.authenticationScheme===ne.hO.SSH){if(!e.sshJwk)throw null==i||i.endMeasurement({success:!1}),Fe.r.createMissingSshJwkError();a.addSshJwk(e.sshJwk)}f.label=3;case 3:if((!Be.x.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&a.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case ze.HOME_ACCOUNT_ID:try{l=He(e.ccsCredential.credential),a.addCcsOid(l)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case ze.UPN:a.addCcsUpn(e.ccsCredential.credential)}return null==i||i.endMeasurement({success:!0}),[2,a.createQueryString()]}})})},t}(Ct),Ht=function(e){function t(t,n){return e.call(this,t,n)||this}return(0,re.ZT)(t,e),t.prototype.acquireToken=function(e){return(0,re.mG)(this,void 0,void 0,function(){var t;return(0,re.Jh)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.acquireCachedToken(e)];case 1:return[2,n.sent()];case 2:if((t=n.sent())instanceof je.e&&t.errorCode===je.A.tokenRefreshRequired.code)return[2,new qt(this.config,this.performanceClient).acquireTokenByRefreshToken(e)];throw t;case 3:return[2]}})})},t.prototype.acquireCachedToken=function(e){var t,n,r,o;return(0,re.mG)(this,void 0,void 0,function(){var i,a;return(0,re.Jh)(this,function(s){switch(s.label){case 0:if(!e)throw Fe.r.createEmptyTokenRequestError();if(e.forceRefresh)throw null===(t=this.serverTelemetryManager)||void 0===t||t.setCacheOutcome(ne.To.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),je.e.createRefreshRequiredError();if(!e.account)throw je.e.createNoAccountInSilentRequestError();if(i=e.authority||this.authority.getPreferredCache(),!(a=this.cacheManager.readCacheRecord(e.account,e,i)).accessToken)throw null===(n=this.serverTelemetryManager)||void 0===n||n.setCacheOutcome(ne.To.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),je.e.createRefreshRequiredError();if(Ye.wasClockTurnedBack(a.accessToken.cachedAt)||Ye.isTokenExpired(a.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null===(r=this.serverTelemetryManager)||void 0===r||r.setCacheOutcome(ne.To.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),je.e.createRefreshRequiredError();if(a.accessToken.refreshOn&&Ye.isTokenExpired(a.accessToken.refreshOn,0))throw null===(o=this.serverTelemetryManager)||void 0===o||o.setCacheOutcome(ne.To.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),je.e.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(a,e)];case 1:return[2,s.sent()]}})})},t.prototype.generateResultFromCacheRecord=function(e,t){return(0,re.mG)(this,void 0,void 0,function(){var n,r;return(0,re.Jh)(this,function(o){switch(o.label){case 0:if(e.idToken&&(n=new Ve(e.idToken.secret,this.config.cryptoInterface)),t.maxAge||0===t.maxAge){if(!(r=null==n?void 0:n.claims.auth_time))throw je.e.createAuthTimeNotFoundError();Ve.checkMaxAge(r,t.maxAge)}return[4,Ot.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,n)];case 1:return[2,o.sent()]}})})},t}(Ct),zt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Q.ZT)(t,e),t.prototype.acquireToken=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n,r,o,i;return(0,Q.Jh)(this,function(a){switch(a.label){case 0:return t=this.performanceClient.startMeasurement(F.SilentCacheClientAcquireToken,e.correlationId),n=this.initializeServerTelemetryManager(O.WN.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(n,e.authority,e.azureCloudOptions)];case 1:r=a.sent(),this.logger.verbose("Silent auth client created"),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,r.acquireCachedToken(e)];case 3:return o=a.sent(),t.endMeasurement({success:!0,fromCache:!0}),[2,o];case 4:throw(i=a.sent())instanceof ye.U&&i.errorCode===ye.n.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),t.endMeasurement({errorCode:i instanceof oe.l&&i.errorCode||void 0,subErrorCode:i instanceof oe.l&&i.subError||void 0,success:!1}),i;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(ye.U.createSilentLogoutUnsupportedError())},t.prototype.createSilentFlowClient=function(e,t,n){return(0,Q.mG)(this,void 0,void 0,function(){var r;return(0,Q.Jh)(this,function(o){switch(o.label){case 0:return this.performanceClient.setPreQueueTime(F.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return r=o.sent(),[2,new Ht(r,this.performanceClient)]}})})},t.prototype.initializeSilentRequest=function(e,t){return(0,Q.mG)(this,void 0,void 0,function(){var n;return(0,Q.Jh)(this,function(r){switch(r.label){case 0:return this.performanceClient.addQueueMeasurement(F.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(F.InitializeBaseRequest,this.correlationId),n=[(0,Q.pi)({}
1,e)],[4,this.initializeBaseRequest(e)];case 1:return[2,Q.pi.apply(void 0,[Q.pi.apply(void 0,n.concat([r.sent()])),{account:t,forceRefresh:e.forceRefresh||!1}])]}})})},t}(Bt),Gt=function(e){function t(t,n,r,o,i,a,s,u,c,l,f,h){var d=e.call(this,t,n,r,o,i,a,u,c,h)||this;return d.apiId=s,d.accountId=l,d.nativeMessageHandler=c,d.nativeStorageManager=f,d.silentCacheClient=new zt(t,d.nativeStorageManager,r,o,i,a,u,c,h),d}return(0,Q.ZT)(t,e),t.prototype.acquireToken=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n,r,o,i,a;return(0,Q.Jh)(this,function(s){switch(s.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),t=this.performanceClient.startMeasurement(F.NativeInteractionClientAcquireToken,e.correlationId),n=Ye.nowSeconds(),[4,this.initializeNativeRequest(e)];case 1:r=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,r)];case 3:return o=s.sent(),t.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,o];case 4:return s.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return[4,this.nativeMessageHandler.sendMessage({method:O.Ky.GetToken,request:r})];case 6:return i=s.sent(),a=this.validateNativeResponse(i),[2,this.handleNativeResponse(a,r,n).then(function(e){return t.endMeasurement({success:!0,isNativeBroker:!0,requestId:e.requestId}),e}).catch(function(e){throw t.endMeasurement({success:!1,errorCode:e.errorCode,subErrorCode:e.subError,isNativeBroker:!0}),e})]}})})},t.prototype.createSilentCacheRequest=function(e,t){return{authority:e.authority,correlationId:this.correlationId,scopes:Ue.fromString(e.scope).asArray(),account:t,forceRefresh:!1}},t.prototype.acquireTokensFromCache=function(e,t){return(0,Q.mG)(this,void 0,void 0,function(){var n,r;return(0,Q.Jh)(this,function(o){switch(o.label){case 0:if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),je.e.createNoAccountFoundError();if(!(n=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:e})))throw je.e.createNoAccountFoundError();o.label=1;case 1:return o.trys.push([1,3,,4]),r=this.createSilentCacheRequest(t,n),[4,this.silentCacheClient.acquireToken(r)];case 2:return[2,o.sent()];case 3:throw o.sent();case 4:return[2]}})})},t.prototype.acquireTokenRedirect=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n,r,o,i,a;return(0,Q.Jh)(this,function(s){switch(s.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(e)];case 1:t=s.sent(),n={method:O.Ky.GetToken,request:t},s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(n)];case 3:return r=s.sent(),this.validateNativeResponse(r),[3,5];case 4:if((o=s.sent())instanceof Ut&&o.isFatal())throw o;return[3,5];case 5:return this.browserStorage.setTemporaryCache(O.c4.NATIVE_REQUEST,JSON.stringify(t),!0),i={apiId:O.WN.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},a=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri),[4,this.navigationClient.navigateExternal(a,i)];case 6:return s.sent(),[2]}})})},t.prototype.handleRedirectPromise=function(){return(0,Q.mG)(this,void 0,void 0,function(){var e,t,n,r,o,i,a,s;return(0,Q.Jh)(this,function(u){switch(u.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(!(e=this.browserStorage.getCachedNativeRequest()))return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];t=e.prompt,n=(0,Q._T)(e,["prompt"]),t&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(O.c4.NATIVE_REQUEST)),r={method:O.Ky.GetToken,request:n},o=Ye.nowSeconds(),u.label=1;case 1:return u.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(r)];case 2:return i=u.sent(),this.validateNativeResponse(i),a=this.handleNativeResponse(i,n,o),this.browserStorage.setInteractionInProgress(!1),[2,a];case 3:throw s=u.sent(),this.browserStorage.setInteractionInProgress(!1),s;case 4:return[2]}})})},t.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},t.prototype.handleNativeResponse=function(e,t,n){return(0,Q.mG)(this,void 0,void 0,function(){var r,o,i,a,s,u;return(0,Q.Jh)(this,function(c){switch(c.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==t.accountId)throw Ut.createUserSwitchError();return[4,this.getDiscoveredAuthority(t.authority)];case 1:return r=c.sent(),o=r.getPreferredCache(),i=this.createIdTokenObj(e),a=this.createHomeAccountIdentifier(e,i),s=this.createAccountEntity(e,a,i,o),[4,this.generateAuthenticationResult(e,t,i,s,r.canonicalAuthority,n)];case 2:return u=c.sent(),this.cacheAccount(s),this.cacheNativeTokens(e,t,a,i,u.accessToken,u.tenantId,n),[2,u]}})})},t.prototype.createIdTokenObj=function(e){return new Ve(e.id_token||ne.gT.EMPTY_STRING,this.browserCrypto)},t.prototype.createHomeAccountIdentifier=function(e,t){return Ge.generateHomeAccountId(e.client_info||ne.gT.EMPTY_STRING,xe.Default,this.logger,this.browserCrypto,t)},t.prototype.createAccountEntity=function(e,t,n,r){return Ge.createAccount(e.client_info,t,n,void 0,void 0,void 0,r,e.account.id)},t.prototype.generateScopes=function(e,t){return Ue.fromString(e.scope?e.scope:t.scope)},t.prototype.generatePopAccessToken=function(e,t){return(0,Q.mG)(this,void 0,void 0,function(){var n,r;return(0,Q.Jh)(this,function(o){switch(o.label){case 0:if(t.tokenType!==ne.hO.POP)return[3,2];if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,e.shr];if(n=new Tt(this.browserCrypto),r={resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,shrNonce:t.shrNonce},!t.keyId)throw je.e.createKeyIdMissingError();return[4,n.signPopToken(e.access_token,t.keyId,r)];case 1:return[2,o.sent()];case 2:return[2,e.access_token]}})})},t.prototype.generateAuthenticationResult=function(e,t,n,r,o,i){return(0,Q.mG)(this,void 0,void 0,function(){var a,s,u,c,l,f,h;return(0,Q.Jh)(this,function(d){switch(d.label){case 0:return a=this.addTelemetryFromNativeResponse(e),s=Ue.fromString(e.scope?e.scope:t.scope),c=(u=e.account.properties||{}).UID||n.claims.oid||n.claims.sub||ne.gT.EMPTY_STRING,l=u.TenantId||n.claims.tid||ne.gT.EMPTY_STRING,[4,this.generatePopAccessToken(e,t)];case 1:return f=d.sent(),h=t.tokenType===ne.hO.POP?ne.hO.POP:ne.hO.BEARER,[2,{authority:o,uniqueId:c,tenantId:l,scopes:s.asArray(),account:r.getAccountInfo(),idToken:e.id_token,idTokenClaims:n.
1claims,accessToken:f,fromCache:!!a&&this.isResponseFromCache(a),expiresOn:new Date(1e3*Number(i+e.expires_in)),tokenType:h,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0}]}})})},t.prototype.cacheAccount=function(e){var t=this;this.browserStorage.setAccount(e),this.browserStorage.removeAccountContext(e).catch(function(e){t.logger.error("Error occurred while removing account context from browser storage. "+e)})},t.prototype.cacheNativeTokens=function(e,t,n,r,o,i,a){var s=Le.createIdTokenEntity(n,t.authority,e.id_token||ne.gT.EMPTY_STRING,t.clientId,r.claims.tid||ne.gT.EMPTY_STRING);this.nativeStorageManager.setIdTokenCredential(s);var u=a+(t.tokenType===ne.hO.POP?ne.gT.SHR_NONCE_VALIDITY:("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0),c=this.generateScopes(e,t),l=We.createAccessTokenEntity(n,t.authority,o,t.clientId,i,c.printScopes(),u,0,this.browserCrypto);this.nativeStorageManager.setAccessTokenCredential(l)},t.prototype.addTelemetryFromNativeResponse=function(e){var t=this.getMATSFromResponse(e);return t?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:t.broker_version,matsAccountJoinOnStart:t.account_join_on_start,matsAccountJoinOnEnd:t.account_join_on_end,matsDeviceJoin:t.device_join,matsPromptBehavior:t.prompt_behavior,matsApiErrorCode:t.api_error_code,matsUiVisible:t.ui_visible,matsSilentCode:t.silent_code,matsSilentBiSubCode:t.silent_bi_sub_code,matsSilentMessage:t.silent_message,matsSilentStatus:t.silent_status,matsHttpStatus:t.http_status,matsHttpEventCount:t.http_event_count},this.correlationId),t):null},t.prototype.validateNativeResponse=function(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw Ut.createUnexpectedError("Response missing expected properties.")},t.prototype.getMATSFromResponse=function(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch(t){this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},t.prototype.isResponseFromCache=function(e){return void 0===e.is_cached?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached},t.prototype.initializeNativeRequest=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n,r,o,i,a,s,u,c=this;return(0,Q.Jh)(this,function(l){switch(l.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),(t=new it.G(e.authority||this.config.auth.authority)).validateAsUri(),n=e.scopes,r=(0,Q._T)(e,["scopes"]),(o=new Ue(n||[])).appendScopes(ne.f_),i=function(){switch(c.apiId){case O.WN.ssoSilent:case O.WN.acquireTokenSilent_silentFlow:return c.logger.trace("initializeNativeRequest: silent request sets prompt to none"),ne.NJ.NONE}if(e.prompt)switch(e.prompt){case ne.NJ.NONE:case ne.NJ.CONSENT:case ne.NJ.LOGIN:return c.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw c.logger.trace("initializeNativeRequest: prompt = "+e.prompt+" is not compatible with native flow"),ye.U.createNativePromptParameterNotSupportedError()}else c.logger.trace("initializeNativeRequest: prompt was not provided")},a=(0,Q.pi)((0,Q.pi)({},r),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:t.urlString,scope:o.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:i(),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:(0,Q.pi)((0,Q.pi)((0,Q.pi)({},e.extraQueryParameters),e.tokenQueryParameters),{telemetry:O.BD.MATS_TELEMETRY}),extendedExpiryToken:!1}),e.authenticationScheme!==ne.hO.POP?[3,2]:(s={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},[4,new Tt(this.browserCrypto).generateCnf(s)]);case 1:u=l.sent(),a.reqCnf=u.reqCnfHash,a.keyId=u.kid,l.label=2;case 2:return[2,a]}})})},t}(Ft),Vt=function(){function e(e,t,n,r){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=r,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=n,this.handshakeEvent=n.startMeasurement(F.NativeMessageHandlerHandshake)}return e.prototype.sendMessage=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n=this;return(0,Q.Jh)(this,function(r){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:O.BD.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:e},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(t)),this.messageChannel.port1.postMessage(t),[2,new Promise(function(e,r){n.resolvers.set(t.responseId,{resolve:e,reject:r})})]})})},e.createProvider=function(t,n,r){return(0,Q.mG)(this,void 0,void 0,function(){var o,i;return(0,Q.Jh)(this,function(a){switch(a.label){case 0:t.trace("NativeMessageHandler - createProvider called."),a.label=1;case 1:return a.trys.push([1,3,,5]),[4,(o=new e(t,n,r,O.BD.PREFERRED_EXTENSION_ID)).sendHandshakeRequest
1()];case 2:return a.sent(),[2,o];case 3:return a.sent(),[4,(i=new e(t,n,r)).sendHandshakeRequest()];case 4:return a.sent(),[2,i];case 5:return[2]}})})},e.prototype.sendHandshakeRequest=function(){return(0,Q.mG)(this,void 0,void 0,function(){var e,t=this;return(0,Q.Jh)(this,function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:O.BD.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:O.Ky.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(e){t.onChannelMessage(e)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise(function(n,r){t.handshakeResolvers.set(e.responseId,{resolve:n,reject:r}),t.timeoutId=window.setTimeout(function(){window.removeEventListener("message",t.windowListener,!1),t.messageChannel.port1.close(),t.messageChannel.port2.close(),t.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),r(ye.U.createNativeHandshakeTimeoutError()),t.handshakeResolvers.delete(e.responseId)},t.handshakeTimeoutMs)})]})})},e.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var t=e.data;if(t.channel&&t.channel===O.BD.CHANNEL_ID&&(!t.extensionId||t.extensionId===this.extensionId)&&t.body.method===O.Ky.HandshakeRequest){this.logger.verbose(t.extensionId?"Extension with id: "+t.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var n=this.handshakeResolvers.get(t.responseId);n&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),n.reject(ye.U.createNativeExtensionNotInstalledError()))}}},e.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var t=e.data,n=this.resolvers.get(t.responseId),r=this.handshakeResolvers.get(t.responseId);try{var o=t.body.method;if(o===O.Ky.Response){if(!n)return;var i=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(i)),"Success"!==i.status)n.reject(Ut.createError(i.code,i.description,i.ext));else{if(!i.result)throw oe.l.createUnexpectedError("Event does not contain result.");i.result.code&&i.result.description?n.reject(Ut.createError(i.result.code,i.result.description,i.result.ext)):n.resolve(i.result)}this.resolvers.delete(t.responseId)}else if(o===O.Ky.HandshakeResponse){if(!r)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),r.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(a){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+a.toString()),this.logger.errorPii("Unable to parse "+e),n?n.reject(a):r&&r.reject(a)}},e.prototype.getExtensionId=function(){return this.extensionId},e.prototype.getExtensionVersion=function(){return this.extensionVersion},e.isNativeAvailable=function(e,t,n,r){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!n)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(r)switch(r){case ne.hO.BEARER:case ne.hO.POP:return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},e}(),$t=function(){function e(e,t,n,r,o){this.authModule=e,this.browserStorage=t,this.authCodeRequest=n,this.logger=r,this.performanceClient=o}return e.prototype.handleCodeResponseFromHash=function(e,t,n,r){return(0,Q.mG)(this,void 0,void 0,function(){var o,i,a;return(0,Q.Jh)(this,function(s){if(this.performanceClient.addQueueMeasurement(F.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),Be.x.isEmpty(e))throw ye.U.createEmptyHashError(e);
1if(o=this.browserStorage.generateStateKey(t),!(i=this.browserStorage.getTemporaryCache(o)))throw je.e.createStateNotFoundError("Cached State");try{a=this.authModule.handleFragmentResponse(e,i)}catch(u){throw u instanceof ie&&u.subError===ye.n.userCancelledError.code?ye.U.createUserCancelledError():u}return this.performanceClient.setPreQueueTime(F.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(a,t,n,r)]})})},e.prototype.handleCodeResponseFromServer=function(e,t,n,r,o){return void 0===o&&(o=!0),(0,Q.mG)(this,void 0,void 0,function(){var i,a,s,u,c,l;return(0,Q.Jh)(this,function(f){switch(f.label){case 0:if(this.performanceClient.addQueueMeasurement(F.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),i=this.browserStorage.generateStateKey(t),!(a=this.browserStorage.getTemporaryCache(i)))throw je.e.createStateNotFoundError("Cached State");return s=this.browserStorage.generateNonceKey(a),u=this.browserStorage.getTemporaryCache(s),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(F.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,n,r)]):[3,2];case 1:f.sent(),f.label=2;case 2:return o&&(e.nonce=u||void 0),e.state=a,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(c=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=c),this.performanceClient.setPreQueueTime(F.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return l=f.sent(),this.browserStorage.cleanRequestByState(t),[2,l]}})})},e.prototype.updateTokenEndpointAuthority=function(e,t,n){return(0,Q.mG)(this,void 0,void 0,function(){var r;return(0,Q.Jh)(this,function(o){switch(o.label){case 0:return this.performanceClient.addQueueMeasurement(F.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,Dt.createDiscoveredInstance("https://"+e+"/"+t.tenant+"/",n,this.browserStorage,t.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return r=o.sent(),this.authModule.updateAuthority(r),[2]}})})},e.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(O.c4.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch(t){this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},e}(),Kt=function(e){function t(t,n,r,o,i,a,s,u,c,l){var f=e.call(this,t,n,r,o,i,a,s,c,l)||this;return f.unloadWindow=f.unloadWindow.bind(f),f.nativeStorage=u,f}return(0,Q.ZT)(t,e),t.prototype.acquireToken=function(e){try{var t=this.generatePopupName(e.scopes||ne.f_,e.authority||this.config.auth.authority),n=e.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,t,n);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var r=this.openSizedPopup("about:blank",t,n);return this.acquireTokenPopupAsync(e,t,n,r)}catch(o){return Promise.reject(o)}},t.prototype.logout=function(e){try{this.logger.verbose("logoutPopup called");var t=this.initializeLogoutRequest(e),n=this.generateLogoutPopupName(t),r=e&&e.authority,o=e&&e.mainWindowRedirectUri,i=(null==e?void 0:e.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(t,n,i,r,void 0,o);this.logger.verbose("asyncPopup set to false, opening popup");var a=this.openSizedPopup("about:blank",n,i);return this.logoutPopupAsync(t,n,i,r,a,o)}catch(s){return Promise.reject(s)}},t.prototype.acquireTokenPopupAsync=function(e,t,n,r){return(0,Q.mG)(this,void 0,void 0,function(){var o,i,a,s,u,c,l,f,h,d,p,m,y,v,g,b=this;return(0,Q.Jh)(this,function(w){switch(w.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),o=this.initializeServerTelemetryManager(O.WN.acquireTokenPopup),this.performanceClient.setPreQueueTime(F.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,O.s_.Popup)];case 1:i=w.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||ne.gT.EMPTY_STRING,i.account||null),w.label=2;case 2:return w.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(F.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),[4,this.initializeAuthorizationCodeRequest
1(i)];case 3:return a=w.sent(),this.performanceClient.setPreQueueTime(F.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(o,i.authority,i.azureCloudOptions)];case 4:return s=w.sent(),this.logger.verbose("Auth code client created"),u=Vt.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme),c=void 0,u&&(c=this.performanceClient.startMeasurement(F.FetchAccountIdWithNativeBroker,e.correlationId)),[4,s.getAuthCodeUrl((0,Q.pi)((0,Q.pi)({},i),{nativeBroker:u}))];case 5:return l=w.sent(),f=new $t(s,this.browserStorage,a,this.logger,this.performanceClient),h=this.initiateAuthRequest(l,{popup:r,popupName:t,popupWindowAttributes:n}),this.eventHandler.emitEvent(x.t.POPUP_OPENED,O.s_.Popup,{popupWindow:h},null),[4,this.monitorPopupForHash(h)];case 6:if(d=w.sent(),p=it.G.getDeserializedHash(d),m=this.validateAndExtractStateFromHash(p,O.s_.Popup,i.correlationId),wt.removeThrottle(this.browserStorage,this.config.auth.clientId,a),p.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),c&&c.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw ye.U.createNativeConnectionNotEstablishedError();return y=new Gt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,O.WN.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,p.accountId,this.nativeStorage,i.correlationId),v=tt.parseRequestState(this.browserCrypto,m).userRequestState,[2,y.acquireToken((0,Q.pi)((0,Q.pi)({},i),{state:v,prompt:void 0})).finally(function(){b.browserStorage.cleanRequestByState(m)})]}return[4,f.handleCodeResponseFromHash(d,m,s.authority,this.networkClient)];case 7:return[2,w.sent()];case 8:throw g=w.sent(),r&&r.close(),g instanceof oe.l&&g.setCorrelationId(this.correlationId),o.cacheFailedRequest(g),this.browserStorage.cleanRequestByState(i.state),g;case 9:return[2]}})})},t.prototype.logoutPopupAsync=function(e,t,n,r,o,i){return(0,Q.mG)(this,void 0,void 0,function(){var a,s,u,c,l,f,h;return(0,Q.Jh)(this,function(d){switch(d.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(x.t.LOGOUT_START,O.s_.Popup,e),a=this.initializeServerTelemetryManager(O.WN.logoutPopup),d.label=1;case 1:return d.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(e.account)];case 2:return d.sent(),this.performanceClient.setPreQueueTime(F.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(a,r)];case 3:return s=d.sent(),this.logger.verbose("Auth code client created"),u=s.getLogoutUri(e),this.eventHandler.emitEvent(x.t.LOGOUT_SUCCESS,O.s_.Popup,e),c=this.openPopup(u,{popupName:t,popupWindowAttributes:n,popup:o}),this.eventHandler.emitEvent(x.t.POPUP_OPENED,O.s_.Popup,{popupWindow:c},null),[4,this.waitForLogoutPopup(c)];case 4:return d.sent(),i?(l={apiId:O.WN.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=it.G.getAbsoluteUrl(i,vt.M.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+f),this.navigationClient.navigateInternal(f,l)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw h=d.sent(),o&&o.close(),h instanceof oe.l&&h.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(x.t.LOGOUT_FAILURE,O.s_.Popup,null,h),this.eventHandler.emitEvent(x.t.LOGOUT_END,O.s_.Popup),a.cacheFailedRequest(h),h;case 6:return this.eventHandler.emitEvent(x.t.LOGOUT_END,O.s_.Popup),[2]}})})},t.prototype.initiateAuthRequest=function(e,t){if(Be.x.isEmpty(e))throw this.logger.error("Navigate url is empty"),ye.U.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+e),this.openPopup(e,t)},t.prototype.monitorPopupForHash=function(e){var t=this;return new Promise(function(n,r){var o=t.config.system.windowHashTimeout/t.config.system.pollIntervalMilliseconds,i=0;t.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var a=setInterval(function(){if(e.closed)return t.logger.error("PopupHandler.monitorPopupForHash - window closed"),t.cleanPopup(),clearInterval(a),void r(ye.U.createUserCancelledError());var s=ne.gT.EMPTY_STRING,u=ne.gT.EMPTY_STRING;try{s=e.location.href,u=e.location.hash}catch(c){}Be.x.isEmpty(s)||"about:blank"===s||(t.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),i++,u?(t.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(a),t.cleanPopup(e),it.G.hashContainsKnownProperties(u)?(t.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),n(u)):(t.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."),t.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+u),r(ye.U.createHashDoesNotContainKnownPropertiesError()))):i>o&&(t.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(a),r(ye.U.createMonitorPopupTimeoutError())))},t.config.system.pollIntervalMilliseconds)})},t.prototype.waitForLogoutPopup=function(e){var t=this;return new Promise(function(n){t.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var r=setInterval(function(){e.closed&&(t.logger.error("PopupHandler.waitForLogoutPopup - window closed"),t.cleanPopup(),clearInterval(r),n());var o=ne.gT.EMPTY_STRING;try{o=e.location.href}catch(i){}Be.x.isEmpty(o)||"about:blank"===o||(t.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(r),t.cleanPopup(e),n())},t.config.system.pollIntervalMilliseconds)})},t.prototype.openPopup=function(e,t){try{var n=void 0;if(t.popup?(n=t.popup,this.logger.verbosePii("Navigating popup window to: "+e),n.location.assign(e)):void 0===t.popup&&(this.logger.verbosePii("Opening popup window to: "+e),n=this.openSizedPopup(e,t.popupName,t.popupWindowAttributes)),!n)throw ye.U.createEmptyWindowCreatedError();return n.focus&&n.focus(),this.currentWindow=n,window.addEventListener("beforeunload",this.unloadWindow),n}catch(r){throw this.logger.error("error opening popup "+r.message),this.browserStorage.setInteractionInProgress(!1),ye.U.createPopupWindowError(r.toString())}},t.prototype.openSizedPopup=function(e,t,n){var r,o,i,a,s=window.screenLeft?window.screenLeft:window.screenX,u=window.screenTop?window.screenTop:window.screenY,c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,l=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,f=null===(r=n.popupSize)||void 0===r?void 0:r.width,h=null===(o=n.popupSize)||void 0===o?void 0:o.height,d=null===(i=n.popupPosition)||void 0===i?void 0:i.top,p=null===(a=n.popupPosition)||void 0===a?void 0:a.left;return(!f||f<0||f>c)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),f=O.qx.POPUP_WIDTH),(!h||h<0||h>l)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),h=O.qx.POPUP_HEIGHT),(!d||d<0||d>l)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),d=Math.max(0,l/2-O.qx.POPUP_HEIGHT/2+u)),(!p||p<0||p>c)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),p=Math.max(0,c/2-O.qx.POPUP_WIDTH/2+s)),window.open(e,t,"width="+f+", height="+h+", top="+
1d+", left="+p+", scrollbars=yes")},t.prototype.unloadWindow=function(e){this.browserStorage.cleanRequestByInteractionType(O.s_.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()},t.prototype.cleanPopup=function(e){e&&e.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},t.prototype.generatePopupName=function(e,t){return O.qx.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+e.join("-")+"."+t+"."+this.correlationId},t.prototype.generateLogoutPopupName=function(e){return O.qx.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+(e.account&&e.account.homeAccountId)+"."+this.correlationId},t}(Bt),Yt=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,r,o,a)||this;return s.browserCrypto=i,s}return(0,Q.ZT)(t,e),t.prototype.initiateAuthRequest=function(e,t){return(0,Q.mG)(this,void 0,void 0,function(){var n;return(0,Q.Jh)(this,function(r){switch(r.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),Be.x.isEmpty(e)?[3,7]:(t.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(O.c4.ORIGIN_URI,t.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(O.c4.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+e),n={apiId:O.WN.acquireTokenRedirect,timeout:t.redirectTimeout,noHistory:!1},"function"!=typeof t.onRedirectNavigate?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),!1===t.onRedirectNavigate(e)?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,t.navigationClient.navigateExternal(e,n)])));case 1:return r.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,t.navigationClient.navigateExternal(e,n)];case 5:return r.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),ye.U.createEmptyNavigationUriError();case 8:return[2]}})})},t.prototype.handleCodeResponseFromHash=function(e,t,n,r){return(0,Q.mG)(this,void 0,void 0,function(){var o,i,a,s,u,c,l;return(0,Q.Jh)(this,function(f){switch(f.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),Be.x.isEmpty(e))throw ye.U.createEmptyHashError(e);if(this.browserStorage.setInteractionInProgress(!1),o=this.browserStorage.generateStateKey(t),!(i=this.browserStorage.getTemporaryCache(o)))throw je.e.createStateNotFoundError("Cached State");try{a=this.authModule.handleFragmentResponse(e,i)}catch(h){throw h instanceof ie&&h.subError===ye.n.userCancelledError.code?ye.U.createUserCancelledError():h}return s=this.browserStorage.generateNonceKey(i),u=this.browserStorage.getTemporaryCache(s),this.authCodeRequest.code=a.code,a.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(a.cloud_instance_host_name,n,r)]:[3,2];case 1:f.sent(),f.label=2;case 2:return a.nonce=u||void 0,a.state=i,a.client_info?this.authCodeRequest.clientInfo=a.client_info:(c=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=c),[4,this.authModule.acquireToken(this.authCodeRequest,a)];case 3:return l=f.sent(),this.browserStorage.cleanRequestByState(t),[2,l]}})})},t}($t),Wt=function(e){function t(t,n,r,o,i,a,s,u,c,l){var f=e.call(this,t,n,r,o,i,a,s,c,l)||this;return f.nativeStorage=u,f}return(0,Q.ZT)(t,e),t.prototype.acquireToken=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n,r,o,i,a,s,u,c,l=this;return(0,Q.Jh)(this,function(f){switch(f.label){case 0:return this.performanceClient.setPreQueueTime(F.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,O.s_.Redirect)];case 1:t=f.sent(),this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||ne.gT.EMPTY_STRING,t.account||null),n=this.initializeServerTelemetryManager(O.WN.acquireTokenRedirect),r=function(e){e.persisted&&(l.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),l.browserStorage.cleanRequestByState(t.state))},f.label=2;case 2:return f.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(F.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),[4,this.initializeAuthorizationCodeRequest
1(t)];case 3:return o=f.sent(),this.performanceClient.setPreQueueTime(F.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(n,t.authority,t.azureCloudOptions)];case 4:return i=f.sent(),this.logger.verbose("Auth code client created"),a=new Yt(i,this.browserStorage,o,this.logger,this.browserCrypto,this.performanceClient),[4,i.getAuthCodeUrl((0,Q.pi)((0,Q.pi)({},t),{nativeBroker:Vt.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}))];case 5:return s=f.sent(),u=this.getRedirectStartPage(e.redirectStartPage),this.logger.verbosePii("Redirect start page: "+u),window.addEventListener("pageshow",r),[4,a.initiateAuthRequest(s,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:u,onRedirectNavigate:e.onRedirectNavigate})];case 6:return[2,f.sent()];case 7:throw(c=f.sent())instanceof oe.l&&c.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",r),n.cacheFailedRequest(c),this.browserStorage.cleanRequestByState(t.state),c;case 8:return[2]}})})},t.prototype.handleRedirectPromise=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n,r,o,i,a,s,u,c,l,f,h;return(0,Q.Jh)(this,function(d){switch(d.label){case 0:t=this.initializeServerTelemetryManager(O.WN.handleRedirectPromise),d.label=1;case 1:if(d.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(!(n=this.getRedirectResponseHash(e||window.location.hash)))return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(O.s_.Redirect),[2,null];r=void 0;try{o=it.G.getDeserializedHash(n),r=this.validateAndExtractStateFromHash(o,O.s_.Redirect),this.logger.verbose("State extracted from hash")}catch(p){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+p),this.browserStorage.cleanRequestByInteractionType(O.s_.Redirect),[2,null]}return i=this.browserStorage.getTemporaryCache(O.c4.ORIGIN_URI,!0)||ne.gT.EMPTY_STRING,a=it.G.removeHashFromUrl(i),s=it.G.removeHashFromUrl(window.location.href),a===s&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(n,r,t)]):[3,3];case 2:return u=d.sent(),i.indexOf("#")>-1&&vt.M.replaceHash(i),[2,u];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(n,r,t)]);case 4:return vt.M.isInIframe()&&!this.config.system.allowRedirectInIframe?[3,9]:(this.browserStorage.setTemporaryCache(O.c4.URL_HASH,n,!0),c={apiId:O.WN.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},l=!0,i&&"null"!==i?[3,6]:(f=vt.M.getHomepage(),this.browserStorage.setTemporaryCache(O.c4.ORIGIN_URI,f,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(f,c)]));case 5:return l=d.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+i),[4,this.navigationClient.navigateInternal(i,c)];case 7:l=d.sent(),d.label=8;case 8:if(!l)return[2,this.handleHash(n,r,t)];d.label=9;case 9:return[2,null];case 10:throw(h=d.sent())instanceof oe.l&&h.setCorrelationId(this.correlationId),t.cacheFailedRequest(h),this.browserStorage.cleanRequestByInteractionType(O.s_.Redirect),h;case 11:return[2]}})})},t.prototype.getRedirectResponseHash=function(e){if(this.logger.verbose("getRedirectResponseHash called"),it.G.hashContainsKnownProperties(e))return vt.M.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),e;var t=this.browserStorage.getTemporaryCache(O.c4.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(O.c4.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning c
1ached hash"),t},t.prototype.handleHash=function(e,t,n){return(0,Q.mG)(this,void 0,void 0,function(){var r,o,i,a,s,u,c=this;return(0,Q.Jh)(this,function(l){switch(l.label){case 0:if(r=this.browserStorage.getCachedRequest(t,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),(o=it.G.getDeserializedHash(e)).accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw ye.U.createNativeConnectionNotEstablishedError();return i=new Gt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,O.WN.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,o.accountId,this.browserStorage,r.correlationId),a=tt.parseRequestState(this.browserCrypto,t).userRequestState,[2,i.acquireToken((0,Q.pi)((0,Q.pi)({},r),{state:a,prompt:void 0})).finally(function(){c.browserStorage.cleanRequestByState(t)})]}if(!(s=this.browserStorage.getCachedAuthority(t)))throw ye.U.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(F.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(n,s)];case 1:return u=l.sent(),this.logger.verbose("Auth code client created"),wt.removeThrottle(this.browserStorage,this.config.auth.clientId,r),[4,new Yt(u,this.browserStorage,r,this.logger,this.browserCrypto,this.performanceClient).handleCodeResponseFromHash(e,t,u.authority,this.networkClient)];case 2:return[2,l.sent()]}})})},t.prototype.logout=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n,r,o,i,a;return(0,Q.Jh)(this,function(s){switch(s.label){case 0:this.logger.verbose("logoutRedirect called"),t=this.initializeLogoutRequest(e),n=this.initializeServerTelemetryManager(O.WN.logout),s.label=1;case 1:return s.trys.push([1,10,,11]),this.eventHandler.emitEvent(x.t.LOGOUT_START,O.s_.Redirect,e),[4,this.clearCacheOnLogout(t.account)];case 2:return s.sent(),r={apiId:O.WN.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(F.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(n,e&&e.authority)];case 3:return o=s.sent(),this.logger.verbose("Auth code client created"),i=o.getLogoutUri(t),this.eventHandler.emitEvent(x.t.LOGOUT_SUCCESS,O.s_.Redirect,t),e&&"function"==typeof e.onRedirectNavigate?!1===e.onRedirectNavigate(i)?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(i,r)]):[3,7];case 4:return s.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),s.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(i,r)];case 8:return s.sent(),[2];case 9:return[3,11];case 10:throw(a=s.sent())instanceof oe.l&&a.setCorrelationId(this.correlationId),n.cacheFailedRequest(a),this.eventHandler.emitEvent(x.t.LOGOUT_FAILURE,O.s_.Redirect,null,a),this.eventHandler.emitEvent(x.t.LOGOUT_END,O.s_.Redirect),a;case 11:return this.eventHandler.emitEvent(x.t.LOGOUT_END,O.s_.Redirect),[2]}})})},t.prototype.getRedirectStartPage=function(e){var t=e||window.location.href;return it.G.getAbsoluteUrl(t,vt.M.getCurrentUri())},t}(Bt),Xt=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,r,o,a)||this;return s.navigateFrameWait=i.navigateFrameWait,s.pollIntervalMilliseconds=i.pollIntervalMilliseconds,s}return(0,Q.ZT)(t,e),t.prototype.initiateAuthRequest=function(e){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(t){switch(t.label){case 0:if(this.performanceClient.addQueueMeasurement(F.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),Be.x.isEmpty(e))throw this.logger.info("Navigate url is empty"),ye.U.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(F.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(e)]):[3,2];case 1:return[2,t.sent()];case 2:return[2,this.loadFrameSync(e)]}})})},t.prototype.monitorIframeForHash=function(e,t){var n=this;return this.performanceClient.addQueueMeasurement(F.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise(function(r,o){t<6e3&&n.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+t+"ms) than the default (6000ms). This may result in timeouts.");var i=window.performance.now()+t,a=setInterval(function(){if(window.performance.now()>i)return n.removeHiddenIframe(e),clearInterval(a),void o(ye.U.createMonitorIframeTimeoutError());var t=ne.gT.EMPTY_STRING,s=e.contentWindow;try{t=s?s.location.href:ne.gT.EMPTY_STRING}catch(c){}if(!Be.x.isEmpty(t)){var u=s?s.location.hash:ne.gT.EMPTY_STRING;return it.G.hashContainsKnownProperties(u)?(n.removeHiddenIframe(e),clearInterval(a),void r(u)):void 0}},n.pollIntervalMilliseconds)})},t.prototype.loadFrame=function(e){var t=this;return this.performanceClient.addQueueMeasurement(F.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise(function(n,r){var o=t.createHiddenIframe();setTimeout(function(){o?(o.src=e,n(o)):r("Unable to load iframe")},t.navigateFrameWait)})},t.prototype.loadFrameSync=function(e){var t=this.createHiddenIframe();return t.src=e,t},t.prototype.createHiddenIframe=function(){var e=document.createElement("iframe");return e.style.visibility="hidden",e.style.position="absolute",e.style.width=e.style.height="0",e.style.border="0",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(e),e},t.prototype.removeHiddenIframe=function(e){document.body===e.parentNode&&document.body.removeChild(e)},t}($t),Zt=function(e){function t(t,n,r,o,i,a,s,u,c,l,f){var h=e.call(this,t,n,r,o,i,a,u,l,f)||this;return h.apiId=s,h.nativeStorage=c,h}return(0,Q.ZT)(t,e),t.prototype.acquireToken=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n,r,o,i;return(0,Q.Jh)(this,function(a){switch(a.label){case 0:if(this.performanceClient.addQueueMeasurement(F.SilentIframeClientAcquireToken,e.correlationId),this.logger.verbose("acquireTokenByIframe called"),t=this.performanceClient.startMeasurement(F.SilentIframeClientAcquireToken,e.correlationId),Be.x.isEmpty(e.loginHint)&&Be.x.isEmpty(e.sid)&&(!e.account||Be.x.isEmpty(e.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),e.prompt&&e.prompt!==ne.NJ.NONE&&e.prompt!==ne.NJ.NO_SESSION)throw t.endMeasurement({success:!1}),ye.U.createSilentPromptValueError(e.prompt);return this.performanceClient.setPreQueueTime(F.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest((0,Q.pi)((0,Q.pi)({},e),{prompt:e.prompt||ne.NJ.NONE}),O.s_.Silent)];case 1:n=a.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||ne.gT.EMPTY_STRING,n.account||null),r=this.initializeServerTelemetryManager(this.apiId),a.label=2;case 2:return a.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(F.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(r,n.authority,n.azureCloudOptions)];case 3:return o=a.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(F.SilentIframeClientTokenHelper,e.correlationId),[4,this.silentTokenHelper(o,n).then(function(e){return t.endMeasurement({success:!0,fromCache:!1,requestId:e.requestId}),e})];case 4:return[2,a.sent()];case 5:throw(i=a.sent())instanceof oe.l&&i.setCorrelationId(this.correlationId),r.cacheFailedRequest(i),this.browserStorage.cleanRequestByState(n.state),t.endMeasurement({errorCode:i instanceof oe.l&&i.errorCode||void 0,subErrorCode:i instanceof oe.l&&i.subError||void 0,success:!1}),i;case 6:return[2]}})})},t.prototype.logout=function(){return Promise.reject(ye.U.createSilentLogoutUnsupportedError())},t.prototype.silentTokenHelper=function(e,t){return(0,Q.mG)(this,void 0,void 0,function(){var n,r,o,i,a,s,u,c,l,f=this;return(0,Q.Jh)(this,function(h){switch(h.label){case 0:return this.performanceClient.addQueueMeasurement(F.SilentIframeClientTokenHelper,t.correlationId),this.performanceClient.setPreQueueTime(F.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest
1(t)];case 1:return n=h.sent(),this.performanceClient.setPreQueueTime(F.GetAuthCodeUrl,t.correlationId),[4,e.getAuthCodeUrl((0,Q.pi)((0,Q.pi)({},t),{nativeBroker:Vt.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 2:return r=h.sent(),o=new Xt(e,this.browserStorage,n,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(F.SilentHandlerInitiateAuthRequest,t.correlationId),[4,o.initiateAuthRequest(r)];case 3:return i=h.sent(),this.performanceClient.setPreQueueTime(F.SilentHandlerMonitorIframeForHash,t.correlationId),[4,o.monitorIframeForHash(i,this.config.system.iframeHashTimeout)];case 4:if(a=h.sent(),s=it.G.getDeserializedHash(a),u=this.validateAndExtractStateFromHash(s,O.s_.Silent,n.correlationId),s.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw ye.U.createNativeConnectionNotEstablishedError();return c=new Gt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,s.accountId,this.browserStorage,this.correlationId),l=tt.parseRequestState(this.browserCrypto,u).userRequestState,[2,c.acquireToken((0,Q.pi)((0,Q.pi)({},t),{state:l,prompt:t.prompt||ne.NJ.NONE})).finally(function(){f.browserStorage.cleanRequestByState(u)})]}return this.performanceClient.setPreQueueTime(F.HandleCodeResponseFromHash,t.correlationId),[2,o.handleCodeResponseFromHash(a,u,e.authority,this.networkClient)]}})})},t}(Bt),Jt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Q.ZT)(t,e),t.prototype.acquireToken=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n,r,o,i,a=this;return(0,Q.Jh)(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(F.SilentRefreshClientAcquireToken,e.correlationId),this.performanceClient.setPreQueueTime(F.InitializeBaseRequest,e.correlationId),n=[(0,Q.pi)({},e)],[4,this.initializeBaseRequest(e)];case 1:return t=Q.pi.apply(void 0,n.concat([s.sent()])),r=this.performanceClient.startMeasurement(F.SilentRefreshClientAcquireToken,t.correlationId),o=this.initializeServerTelemetryManager(O.WN.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(o,t.authority,t.azureCloudOptions)];case 2:return i=s.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(F.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),[2,i.acquireTokenByRefreshToken(t).then(function(e){return r.endMeasurement({success:!0,fromCache:e.fromCache,requestId:e.requestId}),e}).catch(function(e){throw e instanceof oe.l&&e.setCorrelationId(a.correlationId),o.cacheFailedRequest(e),r.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})]}})})},t.prototype.logout=function(){return Promise.reject(ye.U.createSilentLogoutUnsupportedError())},t.prototype.createRefreshTokenClient=function(e,t,n){return(0,Q.mG)(this,void 0,void 0,function(){var r;return(0,Q.Jh)(this,function(o){switch(o.label){case 0:return this.performanceClient.setPreQueueTime(F.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return r=o.sent(),[2,new qt(r,this.performanceClient)]}})})},t}(Bt),Qt=function(){function e(e,t,n,r){this.isBrowserEnvironment="undefined"!=typeof window,this.config=e,this.storage=t,this.logger=n,this.cryptoObj=r}return e.prototype.loadExternalTokens=function(e,t,n){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw ye.U.createUnableToLoadTokenError("Please ensure server response includes id token.");var r,o,i=new Ve(t.id_token,this.cryptoObj);if(e.account){var a=this.loadAccount(i,e.account.environment,void 0,void 0,e.account.homeAccountId);r=new Et(a,this.loadIdToken(i,a.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,t,a.homeAccountId,e.account.environment,e.account.tenantId,n),this.loadRefreshToken(e,t,a.homeAccountId,e.account.environment))}else{if(!e.authority)throw ye.U.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");var s=jt.generateAuthority(e.authority,e.azureCloudOptions);if(o=new jt(s,this.config.system.networkClient,this.storage,{protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},this.logger),n.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),a=this.loadAccount(i,o.hostnameAndPort,n.clientInfo,o.authorityType),r=new Et(a,this.loadIdToken(i,a.homeAccountId,o.hostnameAndPort,o.tenant),this.loadAccessToken(e,t,a.homeAccountId,o.hostnameAndPort,o.tenant,n),this.loadRefreshToken(e,t,a.homeAccountId,o.hostnameAndPort));else{if(!t.client_info)throw ye.U.createUnableToLoadTokenError("Please provide clientInfo in the response or options.");this.logger.trace("TokenCache - homeAccountId from response"),a=this.loadAccount(i,o.hostnameAndPort,t.client_info,o.authorityType),r=new Et(a,this.loadIdToken(i,a.homeAccountId,o.hostnameAndPort,o.tenant),this.loadAccessToken(e,t,a.homeAccountId,o.hostnameAndPort,o.tenant,n),this.loadRefreshToken(e,t,a.homeAccountId,o.hostnameAndPort))}}return this.generateAuthenticationResult(e,i,r,o)},e.prototype.loadAccount=function(e,t,n,r,o){var i;if(o?i=o:void 0!==r&&n&&(i=Ge.generateHomeAccountId(n,r,this.logger,this.cryptoObj,e)),!i)throw ye.U.createUnableToLoadTokenError("Unexpected missing homeAccountId");var a=n?Ge.createAccount(n,i,e,void 0,void 0,void 0,t):Ge.createGenericAccount(i,e,void 0,void 0,void 0,t);
1if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(a),a;throw ye.U.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadIdToken=function(e,t,n,r){var o=Le.createIdTokenEntity(t,n,e.rawToken,this.config.auth.clientId,r);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(o),o;throw ye.U.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadAccessToken=function(e,t,n,r,o,i){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw ye.U.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!i.extendedExpiresOn)throw ye.U.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var a=new Ue(e.scopes).printScopes(),s=i.expiresOn||t.expires_in+(new Date).getTime()/1e3,u=We.createAccessTokenEntity(n,r,t.access_token,this.config.auth.clientId,o,a,s,i.extendedExpiresOn,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw ye.U.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadRefreshToken=function(e,t,n,r){if(!t.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var o=Xe.createRefreshTokenEntity(n,r,t.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(o),o;throw ye.U.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.generateAuthenticationResult=function(e,t,n,r){var o,i,a,s,u=ne.gT.EMPTY_STRING,c=[],l=null;return(null==n?void 0:n.accessToken)&&(u=n.accessToken.secret,c=Ue.fromString(n.accessToken.target).asArray(),l=new Date(1e3*Number(n.accessToken.expiresOn)),s=new Date(1e3*Number(n.accessToken.extendedExpiresOn))),{authority:r?r.canonicalAuthority:ne.gT.EMPTY_STRING,uniqueId:(null==t?void 0:t.claims.oid)||(null==t?void 0:t.claims.sub)||ne.gT.EMPTY_STRING,tenantId:(null==t?void 0:t.claims.tid)||ne.gT.EMPTY_STRING,scopes:c,account:(null==n?void 0:n.account)?n.account.getAccountInfo():null,idToken:t?t.rawToken:ne.gT.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:u,fromCache:!0,expiresOn:l,correlationId:e.correlationId||ne.gT.EMPTY_STRING,requestId:ne.gT.EMPTY_STRING,extExpiresOn:s,familyId:ne.gT.EMPTY_STRING,tokenType:(null===(o=null==n?void 0:n.accessToken)||void 0===o?void 0:o.tokenType)||ne.gT.EMPTY_STRING,state:ne.gT.EMPTY_STRING,cloudGraphHostName:(null===(i=null==n?void 0:n.account)||void 0===i?void 0:i.cloudGraphHostName)||ne.gT.EMPTY_STRING,msGraphHost:(null===(a=null==n?void 0:n.account)||void 0===a?void 0:a.msGraphHost)||ne.gT.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},e}(),en=function(e){function t(t){var n=e.call(this,t)||this;return n.includeRedirectUri=!1,n}return(0,Q.ZT)(t,e),t}(At),tn=function(e){function t(t,n,r,o,i,a,s,u,c,l){var f=e.call(this,t,n,r,o,i,a,u,c,l)||this;return f.apiId=s,f}return(0,Q.ZT)(t,e),t.prototype.acquireToken=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n,r,o,i,a;return(0,Q.Jh)(this,function(s){switch(s.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!e.code)throw ye.U.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(F.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,O.s_.Silent)];case 1:t=s.sent(),this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||ne.gT.EMPTY_STRING,t.account||null),n=this.initializeServerTelemetryManager(this.apiId),s.label=2;case 2:return s.trys.push([2,4,,5]),r=(0,Q.pi)((0,Q.pi)({},t),{code:e.code}),this.performanceClient.setPreQueueTime(F.StandardInteractionClientGetClientConfiguration,e.correlationId),[4,this.getClientConfiguration(n,t.authority)];case 3:return o=s.sent(),i=new en(o),this.logger.verbose("Auth code client created"),[2,new Xt(i,this.browserStorage,r,this.logger,this.config.system,this.performanceClient).handleCodeResponseFromServer({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},t.state,i.authority,this.networkClient,!1)];case 4:throw(a=s.sent())instanceof oe.l&&a.setCorrelationId(this.correlationId),n.cacheFailedRequest(a),this.browserStorage.cleanRequestByState(t.state),a;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(ye.U.createSilentLogoutUnsupportedError())},t}(Bt),nn=function(){function e(t,n){this.correlationId=n,this.measureName=e.makeMeasureName(t,n),this.startMark=e.makeStartMark(t,n),this.endMark=e.makeEndMark(t,n)}return e.makeMeasureName=function(e,t){return"msal.measure."+e+"."+t},e.makeStartMark=function(e,t){return"msal.start."+e+"."+t},e.makeEndMark=function(e,t){return"msal.end."+e+"."+t},e.supportsBrowserPerformance=function(){return"undefined"!=typeof window&&void 0!==window.performance&&"function"==typeof window.performance.mark&&"function"==typeof window.performance.measure&&"function"==typeof window.performance.clearMarks&&"function"==typeof window.performance.clearMeasures&&"function"==typeof window.performance.getEntriesByName},e.flushMeasurements=function(t,n){if(e.supportsBrowserPerformance())try{n.forEac
1h(function(n){var r=e.makeMeasureName(n.name,t);window.performance.getEntriesByName(r,"measure").length>0&&(window.performance.clearMeasures(r),window.performance.clearMarks(e.makeStartMark(r,t)),window.performance.clearMarks(e.makeEndMark(r,t)))})}catch(r){}},e.prototype.startMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch(t){}},e.prototype.endMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch(t){}},e.prototype.flushMeasurement=function(){if(e.supportsBrowserPerformance())try{var t=window.performance.getEntriesByName(this.measureName,"measure");if(t.length>0){var n=t[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),n}}catch(r){}return null},e}(),rn=function(e){function t(t,n,r,o,i,a,s){var u=e.call(this,t,n,r,o,i,a)||this;return u.browserCrypto=new Se(u.logger,s),u.guidGenerator=new he(u.browserCrypto),u}return(0,Q.ZT)(t,e),t.prototype.startPerformanceMeasuremeant=function(e,t){return new nn(e,t)},t.prototype.generateId=function(){return this.guidGenerator.generateGuid()},t.prototype.getPageVisibility=function(){var e;return(null===(e=document.visibilityState)||void 0===e?void 0:e.toString())||null},t.prototype.deleteIncompleteSubMeasurements=function(e){var t=this.eventsByCorrelationId.get(e.event.correlationId),n=[];t&&t.eventId===e.event.eventId&&(null==t?void 0:t.incompleteSubMeasurements)&&t.incompleteSubMeasurements.forEach(function(e){n.push((0,Q.pi)({},e))}),n.length>0&&nn.flushMeasurements(e.event.correlationId,n)},t.prototype.supportsBrowserPerformanceNow=function(){return"undefined"!=typeof window&&void 0!==window.performance&&"function"==typeof window.performance.now},t.prototype.startMeasurement=function(t,n){var r=this,o=this.getPageVisibility(),i=e.prototype.startMeasurement.call(this,t,n);return(0,Q.pi)((0,Q.pi)({},i),{endMeasurement:function(e){var t=i.endMeasurement((0,Q.pi)({startPageVisibility:o,endPageVisibility:r.getPageVisibility()},e));return r.deleteIncompleteSubMeasurements(i),t},discardMeasurement:function(){i.discardMeasurement(),r.deleteIncompleteSubMeasurements(i),i.measurement.flushMeasurement()}})},t.prototype.setPreQueueTime=function(e,t){if(this.supportsBrowserPerformanceNow())if(t){var n=this.preQueueTimeByCorrelationId.get(t);n&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+n.name+" found",t),this.addQueueMeasurement(n.name,t,void 0,!0)),this.preQueueTimeByCorrelationId.set(t,{name:e,time:window.performance.now()})}else this.logger.trace("BrowserPerformanceClient: correlationId for "+e+" not provided, unable to set telemetry queue time");else this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+e)},t.prototype.addQueueMeasurement=function(t,n,r,o){if(this.supportsBrowserPerformanceNow())if(n){var i=e.prototype.getPreQueueTime.call(this,t,n);if(i){var a=window.performance.now(),s=r||e.prototype.calculateQueuedTime.call(this,i,a);return e.prototype.addQueueMeasurement.call(this,t,n,s,o)}}else this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to add queue measurement");else this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+t)},t}(Ie),on=function(e){function t(t){var n=e.call(this,t)||this;return n.astsAsyncMeasurement=void 0,n.activeSilentTokenRequests=new Map,n.trackPageVisibility=n.trackPageVisibility.bind(n),n}return(0,Q.ZT)(t,e),t.prototype.loginRedirect=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t;return(0,Q.Jh)(this,function(n){return t=this.getRequestCorrelationId(e),this.logger.verbose("loginRedirect called",t),[2,this.acquireTokenRedirect((0,Q.pi)({correlationId:t},e||O.yo))]})})},t.prototype.loginPopup=function(e){var t=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",t),this.acquireTokenPopup((0,Q.pi)({correlationId:t},e||O.yo))},t.prototype.acquireTokenSilent=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n,r,o,i,a,s=this;return(0,Q.Jh)(this,function(u){if(t=this.getRequestCorrelationId(e),(n=this.performanceClient.startMeasurement(F.AcquireTokenSilent,t)).addStaticFields({cacheLookupPolicy:e.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(O.s_.Silent),this.logger.verbose("acquireTokenSilent called",t),!(r=e.account||this.getActiveAccount()))throw ye.U.createNoAccountError();return o=JSON.stringify({clientId:this.config.auth.clientId,authority:e.authority||ne.gT.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:r.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid}),void 0===(i=this.activeSilentTokenRequests.get(o))?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",t),this.performanceClient.setPreQueueTime(F.AcquireTokenSilentAsync,t),a=this.acquireTokenSilentAsync((0,Q.pi)((0,Q.pi)({},e),{correlationId:t}),r).then(function(t){return s.activeSilentTokenRequests.delete(o),n.addStaticFields({accessTokenSize:t.accessToken.length,idTokenSize:t.idToken.length}),n.endMeasurement({success:!0,fromCache:t.fromCache,isNativeBroker:t.fromNativeBroker,cacheLookupPolicy:e.cacheLookupPolicy,requestId:t.requestId}),t}).catch(function(e){throw s.activeSilentTokenRequests.delete(o),n.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}),this.activeSilentTokenRequests.set(o,a),[2,a]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",t),n.discardMeasurement(),[2,i])})})},t.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},t.prototype.acquireTokenSilentAsync=function(e,t){var n;return(0,Q.mG)(this,void 0,void 0,function(){var r,o,i,a,s,u=this;return(0,Q.Jh)(this,function(c){switch(c.label){case 0:return this.performanceClient.addQueueMeasurement(F.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(x.t.ACQUIRE_TOKEN_START,O.s_.Silent,e),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(F.AcquireTokenSilentAsync,e.correlationId),null===(n=this.astsAsyncMeasurement)||void 0===n||n.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),Vt.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&t.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),o=(0,Q.pi)((0,Q.pi)({},e),{account:t}),r=this.acquireTokenNative(o,O.WN.acquireTokenSilent_silentFlow).catch(function(t){return(0,Q.mG)(u,void 0,void 0,function(){return(0,Q.Jh)(this,function(n){if(t instanceof Ut&&t.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,[2,this.createSilentIframeClient(e.correlationId).acquireToken(e)];throw t})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),i=this.createSilentCacheClient(e.correlationId),this.performanceClient.setPreQueueTime(F.InitializeSilentRequest,e.correlationId),[4,i.initializeSilentRequest(e,t)];case 2:a=c.sent(),s=(0,Q.pi)((0,Q.pi)({},e),{cacheLookupPolicy:e.cacheLookupPolicy||O.lu.Default}),this.performanceClient.setPreQueueTime(F.AcquireTokenFromCache,a.correlationId),r=this.acquireTokenFromCache(i,a,s).catch(function(t){if(s.cacheLookupPolicy===O.lu.AccessToken)throw t;return vt.M.blockReloadInHiddenIframes(),u.eventHandler.emitEvent(x.t.ACQUIRE_TOKEN_NETWORK_START,O.s_.Silent,a),u.performanceClient.setPreQueueTime(F.AcquireTokenByRefreshToken,a.correlationId),u.acquireTokenByRefreshToken(a,s).catch(function(t){if((!(t instanceof ie)||t.errorCode!==O.qx.INVALID_GRANT_ERROR||t instanceof ue||s.cacheLookupPolicy===O.lu.AccessTokenAndRefreshToken||s.cacheLookupPolicy===O.lu.RefreshToken)&&s.cacheLookupPolicy!==O.lu.Skip)throw t;return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",e.correlationId),u.performanceClient.setPreQueueTime(F.AcquireTokenBySilentIframe,a.correlationId),u.acquireTokenBySilentIframe(a)})}),c.label=3;case 3:return[2,r.then(function(e){var t;return u.eventHandler.emitEvent(x.t.ACQUIRE_TOKEN_SUCCESS,O.s_.Silent,e),null===(t=u.astsAsyncMeasurement)||void 0===t||t.endMeasurement({success:!0,fromCache:e.fromCache,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e}).catch(function(e){var t;throw u.eventHandler.emitEvent(x.t.ACQUIRE_TOKEN_FAILURE,O.s_.Silent,null,e),null===(t=u.astsAsyncMeasurement)||void 0===t||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}).finally(function(){document.removeEventListener("visibilitychange",u.trackPageVisibility)})]}})})},t}(function(){function e(e){this.isBrowserEnvironment="undefined"!=typeof window,this.config=function(e,t){var n=e.auth,r=e.cac
1he,o=e.system,i=e.telemetry,a={clientId:ne.gT.EMPTY_STRING,authority:""+ne.gT.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:ne.gT.EMPTY_STRING,authorityMetadata:ne.gT.EMPTY_STRING,redirectUri:ne.gT.EMPTY_STRING,postLogoutRedirectUri:ne.gT.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:nt.AAD,azureCloudOptions:{azureCloudInstance:rt.None,tenant:ne.gT.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:O.Ix.SessionStorage,temporaryCacheLocation:O.Ix.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!(!r||r.cacheLocation!==O.Ix.LocalStorage)},u={loggerCallback:function(){},logLevel:Re.i.Info,piiLoggingEnabled:!1},c=(0,Q.pi)((0,Q.pi)({},ct),{loggerOptions:u,networkClient:t?vt.M.getBrowserNetworkClient():yt,navigationClient:new gt,loadFrameTimeout:0,windowHashTimeout:(null==o?void 0:o.loadFrameTimeout)||6e4,iframeHashTimeout:(null==o?void 0:o.loadFrameTimeout)||6e3,navigateFrameWait:t&&vt.M.detectIEOrEdge()?500:0,redirectNavigationTimeout:3e4,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(null==o?void 0:o.nativeBrokerHandshakeTimeout)||2e3,pollIntervalMilliseconds:O.qx.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),l=(0,Q.pi)((0,Q.pi)({},o),{loggerOptions:(null==o?void 0:o.loggerOptions)||u}),f={application:{appName:ne.gT.EMPTY_STRING,appVersion:ne.gT.EMPTY_STRING}};return{auth:(0,Q.pi)((0,Q.pi)({},a),n),cache:(0,Q.pi)((0,Q.pi)({},s),r),system:(0,Q.pi)((0,Q.pi)({},c),l),telemetry:(0,Q.pi)((0,Q.pi)({},f),i)}}(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new Re.Y(this.config.system.loggerOptions,"@azure/msal-browser","2.37.0"),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new rn(this.config.auth.clientId,this.config.auth.authority,this.logger,"@azure/msal-browser","2.37.0",this.config.telemetry.application,this.config.system.cryptoOptions):new Me(this.config.auth.clientId,this.config.auth.authority,this.logger,"@azure/msal-browser","2.37.0",this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new Ae(this.logger,this.performanceClient,this.config.system.cryptoOptions):Ne,this.eventHandler=new bt(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new st(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):new st(this.config.auth.clientId,{cacheLocation:O.Ix.MemoryStorage,temporaryCacheLocation:O.Ix.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1},Ne,this.logger),this.nativeInternalStorage=new st(this.config.auth.clientId,{cacheLocation:O.Ix.MemoryStorage,temporaryCacheLocation:O.Ix.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1},this.browserCrypto,this.logger),this.tokenCache=new Qt(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return e.prototype.initialize=function(){return(0,Q.mG)(this,void 0,void 0,function(){var e,t,n,r;return(0,Q.Jh)(this,function(o){switch(o.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(e=this.config.system.allowNativeBroker,t=this.performanceClient.startMeasurement(F.InitializeClientApplication),this.eventHandler.emitEvent(x.t.INITIALIZE_START),!e)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),n=this,[4,Vt.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return n.nativeExtensionProvider=o.sent(),[3,4];case 3:return r=o.sent(),this.logger.verbose(r),[3,4];case 4:return this.initialized=!0,this.eventHandler.emitEvent(x.t.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}})})},e.prototype.handleRedirectPromise=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n,r,o,i,a,s,u,c=this;return(0,Q.Jh)(this,function(l){return this.logger.verbose("handleRedirectPromise called"),vt.M.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(void 0===(r=this.redirectResponse.get(n=e||ne.gT.EMPTY_STRING))?(this.eventHandler.emitEvent(x.t.HANDLE_REDIRECT_START,O.s_.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),o=this.browserStorage.getCachedNativeRequest(),i=void 0,o&&Vt.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a=new Gt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,O.WN.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,o.accountId,this.nativeInternalStorage,o.correlationId),i=a.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),s=this.browserStorage.getTemporaryCache(O.c4.CORRELATION_ID,!0)||ne.gT.EMPTY_STRING,u=this.createRedirectClient(s),i=u.handleRedirectPromise(e)),r=i.then(function(e){return e&&(t.length<c.getAllAccounts().length?(c.eventHandler.emitEvent(x.t.LOGIN_SUCCESS,O.s_.Redirect,e),c.logger.verbose("handleRedirectResponse returned result, login success")):(c.eventHandler.emitEvent(x.t.ACQUIRE_TOKEN_SUCCESS,O.s_.Redirect,e),c.logger.verbose("handleRedirectResponse returned result, acquire token success"))),c.eventHandler.emitEvent(x.t.HANDLE_REDIRECT_END,O.s_.Redirect),e}).catch(function(e){throw c.eventHandler.emitEvent(t.length>0?x.t.ACQUIRE_TOKEN_FAILURE:x.t.LOGIN_FAILURE,O.s_.Redirect,null,e),c.eventHandler.emitEvent(x.t.HANDLE_REDIRECT_END,O.s_.Redirect),e}),this.redirectResponse.set(n,r)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,r]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},e.prototype.acquireTokenRedirect=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n,r,o,i,a=this;return(0,Q.Jh)(this,function(s){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(O.s_.Redirect),n=this.getAllAccounts().length>0,this.eventHandler.emitEvent(n?x.t.ACQUIRE_TOKEN_START:x.t.LOGIN_START,O.s_.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(o=new Gt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,O.WN.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),r=o.acquireTokenRedirect(e).catch(function(t){if(t instanceof Ut&&t.isFatal())return a.nativeExtensionProvider=void 0,a.createRedirectClient(e.correlationId).acquireToken(e);if(t instanceof ue)return a.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),a.createRedirectClient(e.correlationId).acquireToken(e);throw a.browserStorage.setInteractionInProgress(!1),t})):(i=this.createRedirectClient(e.correlationId),r=i.acquireToken(e)),[2,r.catch(function(e){throw a.eventHandler.emitEvent(n?x.t.ACQUIRE_TOKEN_FAILURE:x.t.LOGIN_FAILURE,O.s_.Redirect,null,e),e})]})})},e.prototype.acquireTokenPopup=function(e){var t=this,n=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(F.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(O.s_.Popup)}catch(i){return Promise.reject(i)}var o=this.getAllAccounts();return this.eventHandler.emitEvent(o.length>0?x.t.ACQUIRE_TOKEN_START:x.t.LOGIN_START,O.s_.Popup,e),(this.canUseNative(e)?this.acquireTokenNative(e,O.WN.acquireTokenPopup).then(function(e){return t.browserStorage.setInteractionInProgress(!1),r.endMeasurement({success:!0,isNativeBroker:!0,requestId:e.requestId}),e}).catch(function(n){if(n instanceof Ut&&n.isFatal())return t.nativeExtensionProvider=void 0,t.createPopupClient(e.correlationId).acquireToken(e);if(n instanceof ue)return t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),t.createPopupClient(e.correlationId).acquireToken(e);throw t.browserStorage.setInteractionInProgress(!1),n}):this.createPopupClient(e.correlationId).acquireToken(e)).then(function(e){var n=o.length<t.getAllAccounts().length;return t.eventHandler.emitEvent(n?x.t.LOGIN_SUCCESS:x.t.ACQUIRE_TOKEN_SUCCESS,O.s_.Popup,e),r.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),r.endMeasurement({success:!0,requestId:e.requestId}),e}).catch(function(e){return t.eventHandler.emitEvent(o.length>0?x.t.ACQUIRE_TOKEN_FAILURE:x.t.LOGIN_FAILURE,O.s_.Popup,null,e),r.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),Promise.reject(e)})},e.prototype.trackPageVisibilityWithMeasurement=function(){var e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))},e.prototype.ssoSilent=function(e){var t;return(0,Q.mG)(this,void 0,void 0,function(){var n,r,o,i,a=this;return(0,Q.Jh)(this,function(s){return n=this.getRequestCorrelationId(e),r=(0,Q.pi)((0,Q.pi)({},e),{prompt:e.prompt,correlationId:n}),this.preflightBrowserEnvironmentCheck(O.s_.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(F.SsoSilent,n),null===(t=this.ssoSilentMeasurement)||void 0===t||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",n),this.eventHandler.emitEvent(x.t.SSO_SILENT_START,O.s_.Silent,r),this.canUseNative(r)?o=this.acquireTokenNative(r,O.WN.ssoSilent).catch(function(e){if(e instanceof Ut&&e.
1isFatal())return a.nativeExtensionProvider=void 0,a.createSilentIframeClient(r.correlationId).acquireToken(r);throw e}):(i=this.createSilentIframeClient(r.correlationId),o=i.acquireToken(r)),[2,o.then(function(e){var t,n;return a.eventHandler.emitEvent(x.t.SSO_SILENT_SUCCESS,O.s_.Silent,e),null===(t=a.ssoSilentMeasurement)||void 0===t||t.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),null===(n=a.ssoSilentMeasurement)||void 0===n||n.endMeasurement({success:!0,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e}).catch(function(e){var t;throw a.eventHandler.emitEvent(x.t.SSO_SILENT_FAILURE,O.s_.Silent,null,e),null===(t=a.ssoSilentMeasurement)||void 0===t||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}).finally(function(){document.removeEventListener("visibilitychange",a.trackPageVisibilityWithMeasurement)})]})})},e.prototype.acquireTokenByCode=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t,n,r,o,i=this;return(0,Q.Jh)(this,function(a){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(O.s_.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(x.t.ACQUIRE_TOKEN_BY_CODE_START,O.s_.Silent,e),n=this.performanceClient.startMeasurement(F.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw ye.U.createSpaCodeAndNativeAccountIdPresentError();if(e.code)return(o=this.hybridAuthCodeResponses.get(r=e.code))?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),n.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),o=this.acquireTokenByCodeAsync((0,Q.pi)((0,Q.pi)({},e),{correlationId:t})).then(function(e){return i.eventHandler.emitEvent(x.t.ACQUIRE_TOKEN_BY_CODE_SUCCESS,O.s_.Silent,e),i.hybridAuthCodeResponses.delete(r),n.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),n.endMeasurement({success:!0,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e}).catch(function(e){throw i.hybridAuthCodeResponses.delete(r),i.eventHandler.emitEvent(x.t.ACQUIRE_TOKEN_BY_CODE_FAILURE,O.s_.Silent,null,e),n.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}),this.hybridAuthCodeResponses.set(r,o)),[2,o];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,O.WN.acquireTokenByCode,e.nativeAccountId).catch(function(e){throw e instanceof Ut&&e.isFatal()&&(i.nativeExtensionProvider=void 0),e})];throw ye.U.createUnableToAcquireTokenFromNativePlatformError()}throw ye.U.createAuthCodeOrNativeAccountIdRequiredError()}catch(s){throw this.eventHandler.emitEvent(x.t.ACQUIRE_TOKEN_BY_CODE_FAILURE,O.s_.Silent,null,s),n.endMeasurement({errorCode:s instanceof oe.l&&s.errorCode||void 0,subErrorCode:s instanceof oe.l&&s.subError||void 0,success:!1}),s}return[2]})})},e.prototype.acquireTokenByCodeAsync=function(e){var t;return(0,Q.mG)(this,void 0,void 0,function(){var n=this;return(0,Q.Jh)(this,function(r){switch(r.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(F.AcquireTokenByCodeAsync,e.correlationId),null===(t=this.acquireTokenByCodeAsyncMeasurement)||void 0===t||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),[4,this.createSilentAuthCodeClient(e.correlationId).acquireToken(e).then(function(e){var t;return null===(t=n.acquireTokenByCodeAsyncMeasurement)||void 0===t||t.endMeasurement({success:!0,fromCache:e.fromCache,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e}).catch(function(e){var t;throw null===(t=n.acquireTokenByCodeAsyncMeasurement)||void 0===t||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}).finally(function(){document.removeEventListener("visibilitychange",n.trackPageVisibilityWithMeasurement)})];case 1:return[2,r.sent()]}})})},e.prototype.acquireTokenFromCache=function(e,t,n){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(r){switch(this.performanceClient.addQueueMeasurement(F.AcquireTokenFromCache,t.correlationId),n.cacheLookupPolicy){case O.lu.Default:case O.lu.AccessToken:case O.lu.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw je.e.createRefreshRequiredError()}return[2]})})},e.prototype.acquireTokenByRefreshToken=function(e,t){return(0,Q.mG)(this,void 0,void 0,function(){var n;return(0,Q.Jh)(this,function(r){switch(this.performanceClient.addQueueMeasurement(F.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case O.lu.Default:case O.lu.AccessTokenAndRefreshToken:case O.lu.RefreshToken:case O.lu.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(F.SilentRefreshClientAcquireToken,e.correlationId),[2,n.acquireToken(e)];default:throw je.e.createRefreshRequiredError()}return[2]})})},e.prototype.acquireTokenBySilentIframe=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t;return(0,Q.Jh)(this,function(n){return this.performanceClient.addQueueMeasurement(F.AcquireTokenBySilentIframe,e.correlationId),t=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(F.SilentIframeClientAcquireToken,e.correlationId),[2,t.acquireToken(e)]})})},e.prototype.logout=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t;return(0,Q.Jh)(this,function(n){return t=this.getRequestCorrelationId(e),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),[2,this.logoutRedirect((0,Q.pi)({correlationId:t},e))]})})},e.prototype.logoutRedirect=function(e){return(0,Q.mG)(this,void 0,void 0,function(){var t;return(0,Q.Jh)(this,function(n){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(O.s_.Redirect),[2,this.createRedirectClient(t).logout(e)]})})},e.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);return this.preflightBrowserEnvironmentCheck(O.s_.Popup),this.createPopupClient(t).logout(e)}catch(n){return Promise.reject(n)}},e.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},e.prototype.getAccountByUsername=function(e){if(this.logger.trace("getAccountByUsername called"),!e)return this.logger.warning("getAccountByUsername: No username provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({username:e});return t?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+e),t):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},e.prototype.getAccountByHomeId=function(e){if(this.logger.trace("getAccountByHomeId called"),!e)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e});return t?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+e),t):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},e.prototype.getAccountByLocalId=function(e){if(this.logger.trace("getAccountByLocalId called"),!e)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e});return t?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+e),t):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},e.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},e.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},e.prototype.preflightBrowserEnvironmentCheck=function(e,t){if(void 0===t&&(t=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),vt.M.blockNonBrowserEnvironment(this.isBrowserEnvironment),vt.M.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),vt.M.blockReloadInHiddenIframes(),vt.M.blockAcquireTokenInPopups(),vt.M.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===O.
1s_.Redirect&&this.config.cache.cacheLocation===O.Ix.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw _e.W.createInMemoryRedirectUnavailableError();e!==O.s_.Redirect&&e!==O.s_.Popup||this.preflightInteractiveRequest(t)},e.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),vt.M.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},e.prototype.acquireTokenNative=function(e,t,n){return(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(r){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw ye.U.createNativeConnectionNotEstablishedError();return[2,new Gt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId).acquireToken(e)]})})},e.prototype.canUseNative=function(e,t){if(this.logger.trace("canUseNative called"),!Vt.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case ne.NJ.NONE:case ne.NJ.CONSENT:case ne.NJ.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+e.prompt+" is not compatible with native flow, returning false"),!1}return!(!t&&!this.getNativeAccountId(e)&&(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),1))},e.prototype.getNativeAccountId=function(e){var t=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return t&&t.nativeAccountId||""},e.prototype.createPopupClient=function(e){return new Kt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},e.prototype.createRedirectClient=function(e){return new Wt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},e.prototype.createSilentIframeClient=function(e){return new Zt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,O.WN.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},e.prototype.createSilentCacheClient=function(e){return new zt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.createSilentRefreshClient=function(e){return new Jt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.createSilentAuthCodeClient=function(e){return new tn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,O.WN.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},e.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},e.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},e.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},e.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},e.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},e.prototype.getTokenCache=function(){return this.tokenCache},e.prototype.getLogger=function(){return this.logger},e.prototype.setLogger=function(e){this.logger=e},e.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},e.prototype.setNavigationClient=function(e){this.navigationClient=e},e.prototype.getConfiguration=function(){return this.config},e.prototype.getRequestCorrelationId=function(e){return(null==e?void 0:e.correlationId)?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():ne.gT.EMPTY_STRING},e}()),an=n(529);function sn(e){return K.F.HttpLoaderFactory(e)}function un(){return new on(an.N.adal)}function cn(){var e,t=new Map,n=s(an.N.adal.protectedResourceMap);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.set(r.url,r.scopes)}}catch(o){n.e(o)}finally{n.f()}return{interactionType:O.s_.Redirect,protectedResourceMap:t}}function ln(){return{interactionType:O.s_.Redirect,authRequest:{scopes:an.N.adal.scopes}}}(0,I.qS)(J()),(0,I.qS)(X());var fn=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e,bootstrap:[H]}),e.\u0275inj=o.cJS({providers:[h,f,u.T,I.uU,I.JJ,{provide:a.wN,useClass:d.r4},{provide:i.TP,useClass:$,multi:!0},{provide:o.soG,useValue:"es-*"},{provide:i.TP,useClass:y.CH,multi:!0},{provide:y.sK,useFactory:un},{provide:y.S9,useFactory:ln},{provide:y.ge,useFactory:cn},y.W2,y.RQ,y.J$],imports:[[r.b2,C,i.JF,m.aw.forRoot({loader:{provide:m.Zw,useFactory:sn,deps:[i.eN]},useDefaultLang:!0,isolate:!1}),p.Fw.forRoot(),Y.m,d.Pc.forRoot(),z.SettingsPageModule]]}),e}();an.N.production&&(0,o.G48)(),r.q6().bootstrapModule(fn).catch(function(e){return console.log(e)})},50863:function(e,t,n){var r={"./ion-action-sheet.entry.js":[32756,8592,2756],"./ion-alert.entry.js":[24558,8592,4558],"./ion-app_8.entry.js":[96503,8592,6503],"./ion-avatar_3.entry.js":[10608,8592,608],"./ion-back-button.entry.js":[1229,8592,1229],"./ion-backdrop.entry.js":[59561,9561],"./ion-button_2.entry.js":[8013,8592,8013],"./ion-card_5.entry.js":[87355,8592,7355],"./ion-checkbox.entry.js":[68377,8592,8377],"./ion-chip.entry.js":[2899,8592,2899],"./ion-col_3.entry.js":[99690,9690],"./ion-datetime_3.entry.js":[50648,8592,648],"./ion-fab_3.entry.js":[75102,8592,5102],"./ion-img.entry.js":[14054,4054],"./ion-infinite-scroll_2.entry.js":[25269,8592,5269],"./ion-input.entry.js":[20845,8592,845],"./ion-item-option_3.entry.js":[87438,8592,7438],"./ion-item_8.entry.js":[30497,8592,497],"./ion-loading.entry.js":[97701,8592,7701],"./ion-menu_3.entry.js":[82441,8592,2441],"./ion-modal.entry.js":[49238,8592,9238],"./ion-nav_2.entry.js":[45798,8592,5798],"./ion-popover.entry.js":[48082,8592,8082],"./ion-progress-bar.entry.js":[51864,8592,1864],"./ion-radio_2.entry.js":[20202,8592,202],"./ion-range.entry.js":[71988,8592,1988],"./ion-refresher_2.entry.js":[35643,8592,5643],"./ion-reorder_2.entry.js":[4473,8592,4473],"./ion-ripple-effect.entry.js":[78588,8588],"./ion-route_4.entry.js":[2981,8592,2981],"./ion-searchbar.entry.js":[6726,8592,6726],"./ion-segment_2.entry.js":[50134,8592,134],"./ion-select_3.entry.js":[48955,8592,8955],"./ion-slide_2.entry.js":[20966,966],"./ion-spinner.entry.js":[15737,8592,5737],"./ion-split-pane.entry.js":[31761,1761],"./ion-tab-bar_2.entry.js":[92099,8592,2099],"./ion-tab_2.entry.js":[85670,8592,5670],"./ion-text.entry.js":[59605,8592,9605],"./ion-textarea.entry.js":[47809,8592,7809],"./ion-toast.entry.js":[77132,8592,7132],"./ion-toggle.entry.js":[84468,8592,4468],"./ion-virtual-scroll.entry.js":[20172,172]};function o(e){if(!n.o(r,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then(function(){return n(o)})}o.keys=function(){return Object.keys(r)},o.id=50863,e.exports=o},64762:function(e,t,n){"use strict";n.d(t,{ZT:function(){return o},gn:function(){return i},fM:function(){return a},mG:function(){return s}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function i(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function a(e,t){return function(n,r){t(n,r,e)}}
1function s(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}}},function(e){"use strict";e(e.s=41624)}])}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.